Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Last active September 12, 2017 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolanlawson/133fb5072be4c3adabb6d9f63df3d9ac to your computer and use it in GitHub Desktop.
Save nolanlawson/133fb5072be4c3adabb6d9f63df3d9ac to your computer and use it in GitHub Desktop.
Big JS demo
This file has been truncated, but you can view the full file.
try{if(function(e){"use strict";function t(e){if(!v(e))return sn;b(e.objectMaxDepth)&&(sn.objectMaxDepth=f(e.objectMaxDepth)?e.objectMaxDepth:NaN)}function f(e){return x(e)&&0<e}function n(e,t){return t=t||Error,function(){var f,n=arguments[0];for(f="["+(e?e+":":"")+n+"] http://errors.angularjs.org/1.6.6/"+(e?e+"/":"")+n,n=1;n<arguments.length;n++){f=f+(1==n?"?":"&")+"p"+(n-1)+"=";var i;f+=encodeURIComponent(i="function"==typeof(i=arguments[n])?i.toString().replace(/ \{[\s\S]*$/,""):void 0===i?"undefined":"string"!=typeof i?JSON.stringify(i):i)}return new t(f)}}function i(e){if(null==e||M(e))return!1;if(kn(e)||k(e)||an&&e instanceof an)return!0;var t="length"in Object(e)&&e.length;return x(t)&&(0<=t&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function a(e,t,f){var n,r;if(e)if(T(e))for(n in e)"prototype"!==n&&"length"!==n&&"name"!==n&&e.hasOwnProperty(n)&&t.call(f,e[n],n,e);else if(kn(e)||i(e)){var o="object"!=typeof e;for(n=0,r=e.length;n<r;n++)(o||n in e)&&t.call(f,e[n],n,e)}else if(e.forEach&&e.forEach!==a)e.forEach(t,f,e);else if(w(e))for(n in e)t.call(f,e[n],n,e);else if("function"==typeof e.hasOwnProperty)for(n in e)e.hasOwnProperty(n)&&t.call(f,e[n],n,e);else for(n in e)cn.call(e,n)&&t.call(f,e[n],n,e);return e}function r(e,t,f){for(var n=Object.keys(e).sort(),i=0;i<n.length;i++)t.call(f,e[n[i]],n[i]);return n}function o(e){return function(t,f){e(f,t)}}function s(){return++vn}function d(e,t,f){for(var n=e.$$hashKey,i=0,a=t.length;i<a;++i){var r=t[i];if(v(r)||T(r))for(var o=Object.keys(r),s=0,c=o.length;s<c;s++){var u=o[s],l=r[u];f&&v(l)?q(l)?e[u]=new Date(l.valueOf()):S(l)?e[u]=new RegExp(l):l.nodeName?e[u]=l.cloneNode(!0):R(l)?e[u]=l.clone():(v(e[u])||(e[u]=kn(l)?[]:{}),d(e[u],[l],!0)):e[u]=l}}return n?e.$$hashKey=n:delete e.$$hashKey,e}function c(e){return d(e,_n.call(arguments,1),!1)}function u(e){return d(e,_n.call(arguments,1),!0)}function l(e){return parseInt(e,10)}function _(e,t){return c(Object.create(e),t)}function m(){}function h(e){return e}function p(e){return function(){return e}}function g(e){return T(e.toString)&&e.toString!==pn}function y(e){return void 0===e}function b(e){return void 0!==e}function v(e){return null!==e&&"object"==typeof e}function w(e){return null!==e&&"object"==typeof e&&!gn(e)}function k(e){return"string"==typeof e}function x(e){return"number"==typeof e}function q(e){return"[object Date]"===pn.call(e)}function E(e){switch(pn.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function T(e){return"function"==typeof e}function S(e){return"[object RegExp]"===pn.call(e)}function M(e){return e&&e.window===e}function C(e){return e&&e.$evalAsync&&e.$watch}function A(e){return"boolean"==typeof e}function O(e){return e&&x(e.length)&&xn.test(pn.call(e))}function R(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function P(e){var t={};e=e.split(",");var f;for(f=0;f<e.length;f++)t[e[f]]=!0;return t}function N(e){return un(e.nodeName||e[0]&&e[0].nodeName)}function L(e,t){var f=e.indexOf(t);return 0<=f&&e.splice(f,1),f}function j(e,t,n){function i(e,t,f){if(0>--f)return"...";var n,i=t.$$hashKey;if(kn(e)){n=0;for(var a=e.length;n<a;n++)t.push(r(e[n],f))}else if(w(e))for(n in e)t[n]=r(e[n],f);else if(e&&"function"==typeof e.hasOwnProperty)for(n in e)e.hasOwnProperty(n)&&(t[n]=r(e[n],f));else for(n in e)cn.call(e,n)&&(t[n]=r(e[n],f));return i?t.$$hashKey=i:delete t.$$hashKey,t}function r(e,t){if(!v(e))return e;if(-1!==(f=s.indexOf(e)))return d[f];if(M(e)||C(e))throw yn("cpws");var f=!1,n=o(e);return void 0===n&&(n=kn(e)?[]:Object.create(gn(e)),f=!0),s.push(e),d.push(n),f?i(e,n,t):n}function o(e){switch(pn.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(r(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":return t=new RegExp(e.source,e.toString().match(/[^/]*$/)[0]),t.lastIndex=e.lastIndex,t;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(T(e.cloneNode))return e.cloneNode(!0)}var s=[],d=[];if(n=f(n)?n:NaN,t){if(O(t)||"[object ArrayBuffer]"===pn.call(t))throw yn("cpta");if(e===t)throw yn("cpi");return kn(t)?t.length=0:a(t,function(e,f){"$$hashKey"!==f&&delete t[f]}),s.push(e),d.push(t),i(e,t,n)}return r(e,n)}function $(e,t){return e===t||e!==e&&t!==t}function D(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var f,n=typeof e;if(n===typeof t&&"object"===n){if(!kn(e)){if(q(e))return!!q(t)&&$(e.getTime(),t.getTime());if(S(e))return!!S(t)&&e.toString()===t.toString();if(C(e)||C(t)||M(e)||M(t)||kn(t)||q(t)||S(t))return!1;n=de();for(f in e)if("$"!==f.charAt(0)&&!T(e[f])){if(!D(e[f],t[f]))return!1;n[f]=!0}for(f in t)if(!(f in n)&&"$"!==f.charAt(0)&&b(t[f])&&!T(t[f]))return!1;return!0}if(!kn(t))return!1;if((n=e.length)===t.length){for(f=0;f<n;f++)if(!D(e[f],t[f]))return!1;return!0}}return!1}function I(e,t,f){return e.concat(_n.call(t,f))}function U(e,t){var f=2<arguments.length?_n.call(arguments,2):[];return!T(t)||t instanceof RegExp?t:f.length?function(){return arguments.length?t.apply(e,I(f,arguments,0)):t.apply(e,f)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function F(t,f){var n=f;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:M(f)?n="$WINDOW":f&&e.document===f?n="$DOCUMENT":C(f)&&(n="$SCOPE"),n}function z(e,t){if(!y(e))return x(t)||(t=t?2:null),JSON.stringify(e,F,t)}function B(e){return k(e)?JSON.parse(e):e}function H(e,t){e=e.replace(Mn,"");var f=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return wn(f)?t:f}function V(e,t,f){f=f?-1:1;var n=e.getTimezoneOffset();return t=H(t,n),f*=t-n,(e=new Date(e.getTime())).setMinutes(e.getMinutes()+f),e}function G(e){e=an(e).clone().empty();var t=an("<div>").append(e).html();try{return e[0].nodeType===Pn?un(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+un(t)})}catch(e){return un(t)}}function W(e){try{return decodeURIComponent(e)}catch(e){}}function X(e){var t={};return a((e||"").split("&"),function(e){var f,n,i;e&&(n=e=e.replace(/\+/g,"%20"),-1!==(f=e.indexOf("="))&&(n=e.substring(0,f),i=e.substring(f+1)),n=W(n),b(n)&&(i=!b(i)||W(i),cn.call(t,n)?kn(t[n])?t[n].push(i):t[n]=[t[n],i]:t[n]=i))}),t}function Y(e){var t=[];return a(e,function(e,f){kn(e)?a(e,function(e){t.push(J(f,!0)+(!0===e?"":"="+J(e,!0)))}):t.push(J(f,!0)+(!0===e?"":"="+J(e,!0)))}),t.length?t.join("&"):""}function K(e){return J(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function J(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function Q(e,t){var f,n,i=Cn.length;for(n=0;n<i;++n)if(f=Cn[n]+t,k(f=e.getAttribute(f)))return f;return null}function Z(t,f){var n,i,r={};a(Cn,function(e){e+="app",!n&&t.hasAttribute&&t.hasAttribute(e)&&(n=t,i=t.getAttribute(e))}),a(Cn,function(e){e+="app";var f;!n&&(f=t.querySelector("["+e.replace(":","\\:")+"]"))&&(n=f,i=f.getAttribute(e))}),n&&(An?(r.strictDi=null!==Q(n,"strict-di"),f(n,i?[i]:[],r)):e.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function ee(t,f,n){v(n)||(n={}),n=c({strictDi:!1},n);var i=function(){if((t=an(t)).injector()){var i=t[0]===e.document?"document":G(t);throw yn("btstrpd",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}return(f=f||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),n.debugInfoEnabled&&f.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),f.unshift("ng"),(i=He(f,n.strictDi)).invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,f,n){e.$apply(function(){t.data("$injector",n),f(t)(e)})}]),i},r=/^NG_ENABLE_DEBUG_INFO!/,o=/^NG_DEFER_BOOTSTRAP!/;if(e&&r.test(e.name)&&(n.debugInfoEnabled=!0,e.name=e.name.replace(r,"")),e&&!o.test(e.name))return i();e.name=e.name.replace(o,""),bn.resumeBootstrap=function(e){return a(e,function(e){f.push(e)}),i()},T(bn.resumeDeferredBootstrap)&&bn.resumeDeferredBootstrap()}function te(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function fe(e){if(!(e=bn.element(e).injector()))throw yn("test");return e.get("$$testability")}function ne(e,t){return t=t||"_",e.replace(On,function(e,f){return(f?t:"")+e.toLowerCase()})}function ie(e,t,f){if(!e)throw yn("areq",t||"?",f||"required");return e}function ae(e,t,f){return f&&kn(e)&&(e=e[e.length-1]),ie(T(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function re(e,t){if("hasOwnProperty"===e)throw yn("badname",t)}function oe(e,t,f){if(!t)return e;for(var n,i=e,a=(t=t.split(".")).length,r=0;r<a;r++)n=t[r],e&&(e=(i=e)[n]);return!f&&T(e)?U(i,e):e}function se(e){for(var t,f=e[0],n=e[e.length-1],i=1;f!==n&&(f=f.nextSibling);i++)(t||e[i]!==f)&&(t||(t=an(_n.call(e,0,i))),t.push(f));return t||e}function de(){return Object.create(null)}function ce(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!g(e)||kn(e)||q(e)?z(e):e.toString()}return e}function ue(e){function t(e,t,f){return e[t]||(e[t]=f())}var f=n("$injector"),i=n("ng");return e=t(e,"angular",Object),e.$$minErr=e.$$minErr||n,t(e,"module",function(){var e={};return function(n,a,r){var o={};if("hasOwnProperty"===n)throw i("badname","module");return a&&e.hasOwnProperty(n)&&(e[n]=null),t(e,n,function(){function e(e,t,f,n){return n||(n=s),function(){return n[f||"push"]([e,t,arguments]),l}}function t(e,t,f){return f||(f=s),function(i,a){return a&&T(a)&&(a.$$moduleName=n),f.push([e,t,arguments]),l}}if(!a)throw f("nomod",n);var s=[],d=[],c=[],u=e("$injector","invoke","push",d),l={_invokeQueue:s,_configBlocks:d,_runBlocks:c,info:function(e){if(b(e)){if(!v(e))throw i("aobj","value");return o=e,this}return o},requires:a,name:n,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:t("$provide","decorator",d),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),component:t("$compileProvider","component"),config:u,run:function(e){return c.push(e),this}};return r&&u(r),l})}})}function le(e,t){if(kn(e)){t=t||[];for(var f=0,n=e.length;f<n;f++)t[f]=e[f]}else if(v(e))for(f in t=t||{},e)"$"===f.charAt(0)&&"$"===f.charAt(1)||(t[f]=e[f]);return t||e}function _e(e,t){var n=[];return f(t)&&(e=bn.copy(e,null,t)),JSON.stringify(e,function(e,t){if(t=F(e,t),v(t)){if(0<=n.indexOf(t))return"...";n.push(t)}return t})}function me(e,t){return t.toUpperCase()}function he(e){return e.replace($n,me)}function pe(e){return 1===(e=e.nodeType)||!e||9===e}function ge(e,t){var f,n,i=t.createDocumentFragment(),r=[];if(zn.test(e)){for(f=i.appendChild(t.createElement("div")),n=(Bn.exec(e)||["",""])[1].toLowerCase(),n=Vn[n]||Vn._default,f.innerHTML=n[1]+e.replace(Hn,"<$1></$2>")+n[2],n=n[0];n--;)f=f.lastChild;r=I(r,f.childNodes),(f=i.firstChild).textContent=""}else r.push(t.createTextNode(e));return i.textContent="",i.innerHTML="",a(r,function(e){i.appendChild(e)}),i}function ye(t){if(t instanceof ye)return t;var f;if(k(t)&&(t=qn(t),f=!0),!(this instanceof ye)){if(f&&"<"!==t.charAt(0))throw Un("nosel");return new ye(t)}if(f){f=e.document;var n;Me(this,t=(n=Fn.exec(t))?[f.createElement(n[1])]:(n=ge(t,f))?n.childNodes:[])}else T(t)?Ne(t):Me(this,t)}function be(e){return e.cloneNode(!0)}function ve(e,t){!t&&pe(e)&&an.cleanData([e]),e.querySelectorAll&&an.cleanData(e.querySelectorAll("*"))}function we(e,t,f,n){if(b(n))throw Un("offargs");var i=(n=xe(e))&&n.events,r=n&&n.handle;if(r)if(t){var o=function(t){var n=i[t];b(f)&&L(n||[],f),b(f)&&n&&0<n.length||(e.removeEventListener(t,r),delete i[t])};a(t.split(" "),function(e){o(e),In[e]&&o(In[e])})}else for(t in i)"$destroy"!==t&&e.removeEventListener(t,r),delete i[t]}function ke(e,t){var f=e.ng339,n=f&&Ln[f];n&&(t?delete n.data[t]:(n.handle&&(n.events.$destroy&&n.handle({},"$destroy"),we(e)),delete Ln[f],e.ng339=void 0))}function xe(e,t){var f=(f=e.ng339)&&Ln[f];return t&&!f&&(e.ng339=f=++jn,f=Ln[f]={events:{},data:{},handle:void 0}),f}function qe(e,t,f){if(pe(e)){var n,i=b(f),a=!i&&t&&!v(t),r=!t;if(e=(e=xe(e,!a))&&e.data,i)e[he(t)]=f;else{if(r)return e;if(a)return e&&e[he(t)];for(n in t)e[he(n)]=t[n]}}}function Ee(e,t){return!!e.getAttribute&&-1<(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")}function Te(e,t){t&&e.setAttribute&&a(t.split(" "),function(t){e.setAttribute("class",qn((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+qn(t)+" "," ")))})}function Se(e,t){if(t&&e.setAttribute){var f=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");a(t.split(" "),function(e){e=qn(e),-1===f.indexOf(" "+e+" ")&&(f+=e+" ")}),e.setAttribute("class",qn(f))}}function Me(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var f=t.length;if("number"==typeof f&&t.window!==t){if(f)for(var n=0;n<f;n++)e[e.length++]=t[n]}else e[e.length++]=t}}function Ce(e,t){return Ae(e,"$"+(t||"ngController")+"Controller")}function Ae(e,t,f){for(9===e.nodeType&&(e=e.documentElement),t=kn(t)?t:[t];e;){for(var n=0,i=t.length;n<i;n++)if(b(f=an.data(e,t[n])))return f;e=e.parentNode||11===e.nodeType&&e.host}}function Oe(e){for(ve(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Re(e,t){t||ve(e);var f=e.parentNode;f&&f.removeChild(e)}function Pe(t,f){"complete"===(f=f||e).document.readyState?f.setTimeout(t):an(f).on("load",t)}function Ne(t){function f(){e.document.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",f),e.addEventListener("load",f))}function Le(e,t){var f=Xn[t.toLowerCase()];return f&&Yn[N(e)]&&f}function je(e,t){var f=function(f,n){f.isDefaultPrevented=function(){return f.defaultPrevented};var i=t[n||f.type],a=i?i.length:0;if(a){if(y(f.immediatePropagationStopped)){var r=f.stopImmediatePropagation;f.stopImmediatePropagation=function(){f.immediatePropagationStopped=!0,f.stopPropagation&&f.stopPropagation(),r&&r.call(f)}}f.isImmediatePropagationStopped=function(){return!0===f.immediatePropagationStopped};var o=i.specialHandlerWrapper||$e;1<a&&(i=le(i));for(var s=0;s<a;s++)f.isImmediatePropagationStopped()||o(e,f,i[s])}};return f.elem=e,f}function $e(e,t,f){f.call(e,t)}function De(e,t,f){var n=t.relatedTarget;n&&(n===e||Gn.call(e,n))||f.call(e,t)}function Ie(){this.$get=function(){return c(ye,{hasClass:function(e,t){return e.attr&&(e=e[0]),Ee(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Se(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Te(e,t)}})}}function Ue(e,t){var f=e&&e.$$hashKey;return f?("function"==typeof f&&(f=e.$$hashKey()),f):(f=typeof e,f="function"===f||"object"===f&&null!==e?e.$$hashKey=f+":"+(t||s)():f+":"+e)}function Fe(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function ze(e){return(e=Function.prototype.toString.call(e).replace(ii,"")).match(ei)||e.match(ti)}function Be(e){return(e=ze(e))?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function He(e,t){function f(e){return function(t,f){if(!v(t))return e(t,f);a(t,o(e))}}function n(e,t){if(re(e,"service"),(T(t)||kn(t))&&(t=m.instantiate(t)),!t.$get)throw ai("pget",e);return _[e+"Provider"]=t}function i(e,t){return function(){var f=b.invoke(t,this);if(y(f))throw ai("undef",e);return f}}function r(e,t,f){return n(e,{$get:!1!==f?i(e,t):t})}function s(e){ie(y(e)||kn(e),"modulesToLoad","not an array");var t,f=[];return a(e,function(e){function n(e){var t,f;for(t=0,f=e.length;t<f;t++){var n=e[t],i=m.get(n[0]);i[n[1]].apply(i,n[2])}}if(!l.get(e)){l.set(e,!0);try{k(e)?(t=on(e),b.modules[e]=t,f=f.concat(s(t.requires)).concat(t._runBlocks),n(t._invokeQueue),n(t._configBlocks)):T(e)?f.push(m.invoke(e)):kn(e)?f.push(m.invoke(e)):ae(e,"module")}catch(t){throw kn(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),ai("modulerr",e,t.stack||t.message||t)}}}),f}function d(e,f){function n(t,n){if(e.hasOwnProperty(t)){if(e[t]===c)throw ai("cdep",t+" <- "+u.join(" <- "));return e[t]}try{return u.unshift(t),e[t]=c,e[t]=f(t,n),e[t]}catch(f){throw e[t]===c&&delete e[t],f}finally{u.shift()}}function i(e,f,i){for(var a=[],r=0,o=(e=He.$$annotate(e,t,i)).length;r<o;r++){var s=e[r];if("string"!=typeof s)throw ai("itkn",s);a.push(f&&f.hasOwnProperty(s)?f[s]:n(s,i))}return a}return{invoke:function(e,t,f,n){if("string"==typeof f&&(n=f,f=null),f=i(e,f,n),kn(e)&&(e=e[e.length-1]),n=e,nn||"function"!=typeof n)n=!1;else{var a=n.$$ngIsClass;A(a)||(a=n.$$ngIsClass=/^(?:class\b|constructor\()/.test(Function.prototype.toString.call(n))),n=a}return n?(f.unshift(null),new(Function.prototype.bind.apply(e,f))):e.apply(t,f)},instantiate:function(e,t,f){var n=kn(e)?e[e.length-1]:e;return(e=i(e,t,f)).unshift(null),new(Function.prototype.bind.apply(n,e))},get:n,annotate:He.$$annotate,has:function(t){return _.hasOwnProperty(t+"Provider")||e.hasOwnProperty(t)}}}t=!0===t;var c={},u=[],l=new Qn,_={$provide:{provider:f(n),factory:f(r),service:f(function(e,t){return r(e,["$injector",function(e){return e.instantiate(t)}])}),value:f(function(e,t){return r(e,p(t),!1)}),constant:f(function(e,t){re(e,"constant"),_[e]=t,h[e]=t}),decorator:function(e,t){var f=m.get(e+"Provider"),n=f.$get;f.$get=function(){var e=b.invoke(n,f);return b.invoke(t,null,{$delegate:e})}}}},m=_.$injector=d(_,function(e,t){throw bn.isString(t)&&u.push(t),ai("unpr",u.join(" <- "))}),h={},g=d(h,function(e,t){var f=m.get(e+"Provider",t);return b.invoke(f.$get,f,void 0,e)}),b=g;_.$injectorProvider={$get:p(g)},b.modules=m.modules=de();var w=s(e);return(b=g.get("$injector")).strictDi=t,a(w,function(e){e&&b.invoke(e)}),b}function Ve(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,f,n){function i(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===N(e))return t=e,!0}),t}function a(e){if(e){e.scrollIntoView();var f;T(f=r.yOffset)?f=f():R(f)?(f=f[0],f="fixed"!==t.getComputedStyle(f).position?0:f.getBoundingClientRect().bottom):x(f)||(f=0),f&&(e=e.getBoundingClientRect().top,t.scrollBy(0,e-f))}else t.scrollTo(0,0)}function r(e){var t;(e=k(e)?e:x(e)?e.toString():f.hash())?(t=o.getElementById(e))?a(t):(t=i(o.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var o=t.document;return e&&n.$watch(function(){return f.hash()},function(e,t){e===t&&""===e||Pe(function(){n.$evalAsync(r)})}),r}]}function Ge(e,t){return e||t?e?t?(kn(e)&&(e=e.join(" ")),kn(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function We(e){k(e)&&(e=e.split(" "));var t=de();return a(e,function(e){e.length&&(t[e]=!0)}),t}function Xe(e){return v(e)?e:{}}function Ye(e,t,f,n){function i(e){try{e.apply(null,_n.call(arguments,1))}finally{if(0==--p)for(;g.length;)try{g.pop()()}catch(e){f.error(e)}}}function r(){x=null,s()}function o(){b=q(),D(b=y(b)?null:b,S)&&(b=S),v=S=b}function s(){var e=v;o(),w===d.url()&&e===b||(w=d.url(),v=b,a(E,function(e){e(d.url(),b)}))}var d=this,c=e.location,u=e.history,l=e.setTimeout,_=e.clearTimeout,h={};d.isMock=!1;var p=0,g=[];d.$$completeOutstandingRequest=i,d.$$incOutstandingRequestCount=function(){p++},d.notifyWhenNoOutstandingRequests=function(e){0===p?e():g.push(e)};var b,v,w=c.href,k=t.find("base"),x=null,q=n.history?function(){try{return u.state}catch(e){}}:m;o(),d.url=function(t,f,i){if(y(i)&&(i=null),c!==e.location&&(c=e.location),u!==e.history&&(u=e.history),t){var a=v===i;if(w===t&&(!n.history||a))return d;var r=w&&St(w)===St(t);return w=t,v=i,!n.history||r&&a?(r||(x=t),f?c.replace(t):r?(f=c,i=t.indexOf("#"),i=-1===i?"":t.substr(i),f.hash=i):c.href=t,c.href!==t&&(x=t)):(u[f?"replaceState":"pushState"](i,"",t),o()),x&&(x=t),d}return x||c.href.replace(/%27/g,"'")},d.state=function(){return b};var E=[],T=!1,S=null;d.onUrlChange=function(t){return T||(n.history&&an(e).on("popstate",r),an(e).on("hashchange",r),T=!0),E.push(t),t},d.$$applicationDestroyed=function(){an(e).off("hashchange popstate",r)},d.$$checkUrlChange=s,d.baseHref=function(){var e=k.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},d.defer=function(e,t){var f;return p++,f=l(function(){delete h[f],i(e)},t||0),h[f]=!0,f},d.defer.cancel=function(e){return!!h[e]&&(delete h[e],_(e),i(m),!0)}}function Ke(){this.$get=["$window","$log","$sniffer","$document",function(e,t,f,n){return new Ye(e,n,t,f)}]}function Je(){this.$get=function(){function e(e,f){function i(e){e!==l&&(_?_===e&&(_=e.n):_=e,a(e.n,e.p),a(e,l),l=e,l.n=null)}function a(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw n("$cacheFactory")("iid",e);var r=0,o=c({},f,{id:e}),s=de(),d=f&&f.capacity||Number.MAX_VALUE,u=de(),l=null,_=null;return t[e]={put:function(e,t){if(!y(t))return d<Number.MAX_VALUE&&i(u[e]||(u[e]={key:e})),e in s||r++,s[e]=t,r>d&&this.remove(_.key),t},get:function(e){if(d<Number.MAX_VALUE){var t=u[e];if(!t)return;i(t)}return s[e]},remove:function(e){if(d<Number.MAX_VALUE){var t=u[e];if(!t)return;t===l&&(l=t.p),t===_&&(_=t.n),a(t.n,t.p),delete u[e]}e in s&&(delete s[e],r--)},removeAll:function(){s=de(),r=0,u=de(),l=_=null},destroy:function(){u=o=s=null,delete t[e]},info:function(){return c({},o,{size:r})}}}var t={};return e.info=function(){var e={};return a(t,function(t,f){e[f]=t.info()}),e},e.get=function(e){return t[e]},e}}function Qe(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function Ze(t,f){function n(e,t,f){var n=/^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/,i=de();return a(e,function(e,a){if(e in x)i[a]=x[e];else{var r=e.match(n);if(!r)throw _i("iscp",t,a,e,f?"controller bindings definition":"isolate scope definition");i[a]={mode:r[1][0],collection:"*"===r[2],optional:"?"===r[3],attrName:r[4]||a},r[4]&&(x[e]=i[a])}}),i}function i(e){var t=e.charAt(0);if(!t||t!==un(t))throw _i("baddir",e);if(e!==e.trim())throw _i("baddir",e)}function r(e){var t=e.require||e.controller&&e.name;return!kn(t)&&v(t)&&a(t,function(e,f){var n=e.match(g);e.substring(n[0].length)||(t[f]=n[0]+f)}),t}var s={},d=/^\s*directive:\s*([\w-]+)\s+(.*)$/,u=/(([\w-]+)(?::([^;]+))?;?)/,l=P("ngSrc,ngSrcset,src,srcset"),g=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,w=/^(on[a-z]+|formaction)$/,x=de();this.directive=function e(f,n){return ie(f,"name"),re(f,"directive"),k(f)?(i(f),ie(n,"directiveFactory"),s.hasOwnProperty(f)||(s[f]=[],t.factory(f+"Directive",["$injector","$exceptionHandler",function(e,t){var n=[];return a(s[f],function(i,a){try{var o=e.invoke(i);T(o)?o={compile:p(o)}:!o.compile&&o.link&&(o.compile=p(o.link)),o.priority=o.priority||0,o.index=a,o.name=o.name||f,o.require=r(o);var s=o,d=o.restrict;if(d&&(!k(d)||!/[EACM]/.test(d)))throw _i("badrestrict",d,f);s.restrict=d||"EA",o.$$moduleName=i.$$moduleName,n.push(o)}catch(e){t(e)}}),n}])),s[f].push(n)):a(f,o(e)),this},this.component=function e(t,f){function n(e){function t(t){return T(t)||kn(t)?function(f,n){return e.invoke(t,this,{$element:f,$attrs:n})}:t}var n=f.template||f.templateUrl?f.template:"",r={controller:i,controllerAs:it(f.controller)||f.controllerAs||"$ctrl",template:t(n),templateUrl:t(f.templateUrl),transclude:f.transclude,scope:{},bindToController:f.bindings||{},restrict:"E",require:f.require};return a(f,function(e,t){"$"===t.charAt(0)&&(r[t]=e)}),r}if(!k(t))return a(t,o(U(this,e))),this;var i=f.controller||function(){};return a(f,function(e,t){"$"===t.charAt(0)&&(n[t]=e,T(i)&&(i[t]=e))}),n.$inject=["$injector"],this.directive(t,n)},this.aHrefSanitizationWhitelist=function(e){return b(e)?(f.aHrefSanitizationWhitelist(e),this):f.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return b(e)?(f.imgSrcSanitizationWhitelist(e),this):f.imgSrcSanitizationWhitelist()};var q=!0;this.debugInfoEnabled=function(e){return b(e)?(q=e,this):q};var S=!1;this.preAssignBindingsEnabled=function(e){return b(e)?(S=e,this):S};var M=!1;this.strictComponentBindingsEnabled=function(e){return b(e)?(M=e,this):M};var O=10;this.onChangesTtl=function(e){return arguments.length?(O=e,this):O};var R=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(R=e,this):R};var j=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(j=e,this):j},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,f,i,r,o,p,x,P,I,F){function z(){try{if(!--Ae)throw Ee=void 0,_i("infchng",O);x.$apply(function(){for(var e=[],t=0,f=Ee.length;t<f;++t)try{Ee[t]()}catch(t){e.push(t)}if(Ee=void 0,e.length)throw e})}finally{Ae++}}function B(e,t){if(t){var f,n,i,a=Object.keys(t);for(f=0,n=a.length;f<n;f++)i=a[f],this[i]=t[i]}else this.$attr={};this.$$element=e}function H(e,t,f){Se.innerHTML="<span "+t+">";var n=(t=Se.firstChild.attributes)[0];t.removeNamedItem(n.name),n.value=f,e.attributes.setNamedItem(n)}function V(e,t){try{e.addClass(t)}catch(e){}}function W(e,t,f,n,i){e instanceof an||(e=an(e));var a=X(e,t,e,f,n,i);W.$$addScopeClass(e);var r=null;return function(t,f,n){if(!e)throw _i("multilink");ie(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new());var o=(n=n||{}).parentBoundTranscludeFn,s=n.transcludeControllers;if(n=n.futureParentElement,o&&o.$$boundTransclude&&(o=o.$$boundTransclude),r||(r=(n=n&&n[0])&&"foreignobject"!==N(n)&&pn.call(n).match(/SVG/)?"svg":"html"),n="html"!==r?an(pe(r,an("<div>").append(e).html())):f?Wn.clone.call(e):e,s)for(var d in s)n.data("$"+d+"Controller",s[d].instance);return W.$$addScopeInfo(n,t),f&&f(n,t),a&&a(t,n,n,o),f||(e=a=null),n}}function X(e,t,f,n,i,a){for(var r,o,s,d,c,u=[],l=kn(e)||e instanceof an,_=0;_<e.length;_++)r=new B,11===nn&&Y(e,_,l),(a=(o=J(e[_],[],r,0===_?n:void 0,i)).length?fe(o,e[_],r,t,f,null,[],[],a):null)&&a.scope&&W.$$addScopeClass(r.$$element),r=a&&a.terminal||!(s=e[_].childNodes)||!s.length?null:X(s,a?(a.transcludeOnThisElement||!a.templateOnThisElement)&&a.transclude:t),(a||r)&&(u.push(_,a,r),d=!0,c=c||a),a=null;return d?function(e,f,n,i){var a,r,o,s,d,l,_;if(c)for(_=Array(f.length),s=0;s<u.length;s+=3)a=u[s],_[a]=f[a];else _=f;for(s=0,d=u.length;s<d;)r=_[u[s++]],f=u[s++],a=u[s++],f?(f.scope?(o=e.$new(),W.$$addScopeInfo(an(r),o)):o=e,l=f.transcludeOnThisElement?K(e,f.transclude,i):!f.templateOnThisElement&&i?i:!i&&t?K(e,t):null,f(a,o,r,n,l)):a&&a(e,r.childNodes,void 0,i)}:null}function Y(e,t,f){var n,i=e[t],a=i.parentNode;if(i.nodeType===Pn)for(;(n=a?i.nextSibling:e[t+1])&&n.nodeType===Pn;)i.nodeValue+=n.nodeValue,n.parentNode&&n.parentNode.removeChild(n),f&&n===e[t+1]&&e.splice(t+1,1)}function K(e,t,f){function n(n,i,a,r,o){return n||(n=e.$new(!1,o),n.$$transcluded=!0),t(n,i,{parentBoundTranscludeFn:f,transcludeControllers:a,futureParentElement:r})}var i,a=n.$$slots=de();for(i in t.$$slots)a[i]=t.$$slots[i]?K(e,t.$$slots[i],f):null;return n}function J(e,t,f,n,i){var a,r=f.$attr;switch(e.nodeType){case 1:se(t,tt(a=N(e)),"E",n,i);for(var o,s,d,c,l=e.attributes,_=0,m=l&&l.length;_<m;_++){var h=!1,p=!1;s=(o=l[_]).name,d=o.value,o=tt(s),(c=Ne.test(o))&&(s=s.replace(hi,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()})),(o=o.match(je))&&ce(o[1])&&(h=s,p=s.substr(0,s.length-5)+"end",s=s.substr(0,s.length-6)),r[o=tt(s.toLowerCase())]=s,!c&&f.hasOwnProperty(o)||(f[o]=d,Le(e,o)&&(f[o]=!0)),ye(e,t,d,o,c),se(t,o,"A",n,i,h,p)}if("input"===a&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!Ce)break;if(r=e.className,v(r)&&(r=r.animVal),k(r)&&""!==r)for(;e=u.exec(r);)o=tt(e[2]),se(t,o,"C",n,i)&&(f[o]=qn(e[3])),r=r.substr(e.index+e[0].length);break;case Pn:he(t,e.nodeValue);break;case 8:if(!Me)break;Q(e,t,f,n,i)}return t.sort(_e),t}function Q(e,t,f,n,i){try{var a=d.exec(e.nodeValue);if(a){var r=tt(a[1]);se(t,r,"M",n,i)&&(f[r]=qn(a[2]))}}catch(e){}}function Z(e,t,f){var n=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw _i("uterdir",t,f);1===e.nodeType&&(e.hasAttribute(t)&&i++,e.hasAttribute(f)&&i--),n.push(e),e=e.nextSibling}while(0<i);else n.push(e);return an(n)}function ee(e,t,f){return function(n,i,a,r,o){return i=Z(i[0],t,f),e(n,i,a,r,o)}}function te(e,t,f,n,i,a){var r;return e?W(t,f,n,i,a):function(){return r||(r=W(t,f,n,i,a),t=f=a=null),r.apply(this,arguments)}}function fe(e,t,f,n,r,o,s,d,u){function l(e,t,f,n){e&&(f&&(e=ee(e,f,n)),e.require=m.require,e.directiveName=h,(q===m||m.$$isolateScope)&&(e=we(e,{isolateScope:!0})),s.push(e)),t&&(f&&(t=ee(t,f,n)),t.require=m.require,t.directiveName=h,(q===m||m.$$isolateScope)&&(t=we(t,{isolateScope:!0})),d.push(t))}function _(e,n,r,o,u){var l,_,m,h,p,g,b,w;t===r?(o=f,w=f.$$element):(w=an(r),o=new B(w,f)),p=n,q?h=n.$new(!0):k&&(p=n.$parent),u&&(b=function(e,t,f,n){var i;if(C(e)||(n=f,f=t,t=e,e=void 0),R&&(i=g),f||(f=R?w.parent():w),!n)return u(e,t,i,f,O);var a=u.$$slots[n];if(a)return a(e,t,i,f,O);if(y(a))throw _i("noslot",n,G(w))},b.$$boundTransclude=u,b.isSlotFilled=function(e){return!!u.$$slots[e]}),x&&(g=re(w,o,b,x,h,n,q)),q&&(W.$$addScopeInfo(w,h,!0,!(E&&(E===q||E===q.$$originalDirective))),W.$$addScopeClass(w,!0),h.$$isolateBindings=q.$$isolateBindings,(_=qe(n,o,h,h.$$isolateBindings,q)).removeWatches&&h.$on("$destroy",_.removeWatches));for(l in g){_=x[l],m=g[l];var M=_.$$bindings.bindToController;if(S){m.bindingInfo=M?qe(p,o,m.instance,M,_):{};var A=m();A!==m.instance&&(m.instance=A,w.data("$"+_.name+"Controller",A),m.bindingInfo.removeWatches&&m.bindingInfo.removeWatches(),m.bindingInfo=qe(p,o,m.instance,M,_))}else m.instance=m(),w.data("$"+_.name+"Controller",m.instance),m.bindingInfo=qe(p,o,m.instance,M,_)}for(a(x,function(e,t){var f=e.require;e.bindToController&&!kn(f)&&v(f)&&c(g[t].instance,ae(t,f,w,g))}),a(g,function(e){var t=e.instance;if(T(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){i(e)}if(T(t.$onInit))try{t.$onInit()}catch(e){i(e)}T(t.$doCheck)&&(p.$watch(function(){t.$doCheck()}),t.$doCheck()),T(t.$onDestroy)&&p.$on("$destroy",function(){t.$onDestroy()})}),l=0,_=s.length;l<_;l++)m=s[l],ke(m,m.isolateScope?h:n,w,o,m.require&&ae(m.directiveName,m.require,w,g),b);var O=n;for(q&&(q.template||null===q.templateUrl)&&(O=h),e&&e(O,r.childNodes,void 0,u),l=d.length-1;0<=l;l--)m=d[l],ke(m,m.isolateScope?h:n,w,o,m.require&&ae(m.directiveName,m.require,w,g),b);a(g,function(e){T((e=e.instance).$postLink)&&e.$postLink()})}u=u||{};for(var m,h,p,g,b,w=-Number.MAX_VALUE,k=u.newScopeDirective,x=u.controllerDirectives,q=u.newIsolateScopeDirective,E=u.templateDirective,M=u.nonTlbTranscludeDirective,A=!1,O=!1,R=u.hasElementTranscludeDirective,P=f.$$element=an(t),L=n,j=!1,$=!1,D=0,I=e.length;D<I;D++){var F=(m=e[D]).$$start,z=m.$$end;if(F&&(P=Z(t,F,z)),p=void 0,w>m.priority)break;if((b=m.scope)&&(m.templateUrl||(v(b)?(me("new/isolated scope",q||k,m,P),q=m):me("new/isolated scope",q,m,P)),k=k||m),h=m.name,!j&&(m.replace&&(m.templateUrl||m.template)||m.transclude&&!m.$$tlb)){for(b=D+1;j=e[b++];)if(j.transclude&&!j.$$tlb||j.replace&&(j.templateUrl||j.template)){$=!0;break}j=!0}if(!m.templateUrl&&m.controller&&(x=x||de(),me("'"+h+"' controller",x[h],m,P),x[h]=m),b=m.transclude)if(A=!0,m.$$tlb||(me("transclusion",M,m,P),M=m),"element"===b)R=!0,w=m.priority,p=P,P=f.$$element=an(W.$$createComment(h,f[h])),t=P[0],ve(r,_n.call(p,0),t),p[0].$$parentNode=p[0].parentNode,L=te($,p,n,w,o&&o.name,{nonTlbTranscludeDirective:M});else{var H=de();if(v(b)){p=[];var V=de(),X=de();a(b,function(e,t){var f="?"===e.charAt(0);e=f?e.substring(1):e,V[e]=t,H[t]=null,X[t]=f}),a(P.contents(),function(e){var t=V[tt(N(e))];t?(X[t]=!0,H[t]=H[t]||[],H[t].push(e)):p.push(e)}),a(X,function(e,t){if(!e)throw _i("reqslot",t)});for(var Y in H)H[Y]&&(H[Y]=te($,H[Y],n))}else p=an(be(t)).contents();P.empty(),(L=te($,p,n,void 0,void 0,{needsNewScope:m.$$isolateScope||m.$$newScope})).$$slots=H}if(m.template)if(O=!0,me("template",E,m,P),E=m,b=T(m.template)?m.template(P,f):m.template,b=Pe(b),m.replace){if(o=m,p=zn.test(b)?nt(pe(m.templateNamespace,qn(b))):[],t=p[0],1!==p.length||1!==t.nodeType)throw _i("tplrt",h,"");ve(r,P,t),b=J(t,[],I={$attr:{}});var K=e.splice(D+1,e.length-(D+1));(q||k)&&oe(b,q,k),e=e.concat(b).concat(K),ue(f,I),I=e.length}else P.html(b);if(m.templateUrl)O=!0,me("template",E,m,P),E=m,m.replace&&(o=m),_=le(e.splice(D,e.length-D),P,f,r,A&&L,s,d,{controllerDirectives:x,newScopeDirective:k!==m&&k,newIsolateScopeDirective:q,templateDirective:E,nonTlbTranscludeDirective:M}),I=e.length;else if(m.compile)try{g=m.compile(P,f,L);var Q=m.$$originalDirective||m;T(g)?l(null,U(Q,g),F,z):g&&l(U(Q,g.pre),U(Q,g.post),F,z)}catch(e){i(e,G(P))}m.terminal&&(_.terminal=!0,w=Math.max(w,m.priority))}return _.scope=k&&!0===k.scope,_.transcludeOnThisElement=A,_.templateOnThisElement=O,_.transclude=L,u.hasElementTranscludeDirective=R,_}function ae(e,t,f,n){var i;if(k(t)){o=t.match(g);t=t.substring(o[0].length);var r=o[1]||o[3],o="?"===o[2];if("^^"===r?f=f.parent():i=(i=n&&n[t])&&i.instance,!i){var s="$"+t+"Controller";i=r?f.inheritedData(s):f.data(s)}if(!i&&!o)throw _i("ctreq",t,e)}else if(kn(t))for(i=[],r=0,o=t.length;r<o;r++)i[r]=ae(e,t[r],f,n);else v(t)&&(i={},a(t,function(t,a){i[a]=ae(e,t,f,n)}));return i||null}function re(e,t,f,n,i,a,r){var o,s=de();for(o in n){var d=n[o],c={$scope:d===r||d.$$isolateScope?i:a,$element:e,$attrs:t,$transclude:f},u=d.controller;"@"===u&&(u=t[d.name]),c=p(u,c,!0,d.controllerAs),s[d.name]=c,e.data("$"+d.name+"Controller",c.instance)}return s}function oe(e,t,f){for(var n=0,i=e.length;n<i;n++)e[n]=_(e[n],{$$isolateScope:t,$$newScope:f})}function se(e,f,i,a,r,o,d){if(f===r)return null;var c=null;if(s.hasOwnProperty(f))for(var u=0,l=(r=t.get(f+"Directive")).length;u<l;u++)if(f=r[u],(y(a)||a>f.priority)&&-1!==f.restrict.indexOf(i)){if(o&&(f=_(f,{$$start:o,$$end:d})),!f.$$bindings){var m=c=f,h=f.name,p={isolateScope:null,bindToController:null};if(v(m.scope)&&(!0===m.bindToController?(p.bindToController=n(m.scope,h,!0),p.isolateScope={}):p.isolateScope=n(m.scope,h,!1)),v(m.bindToController)&&(p.bindToController=n(m.bindToController,h,!0)),p.bindToController&&!m.controller)throw _i("noctrl",h);v((c=c.$$bindings=p).isolateScope)&&(f.$$isolateBindings=c.isolateScope)}e.push(f),c=f}return c}function ce(e){if(s.hasOwnProperty(e))for(var f=t.get(e+"Directive"),n=0,i=f.length;n<i;n++)if((e=f[n]).multiElement)return!0;return!1}function ue(e,t){var f=t.$attr,n=e.$attr;a(e,function(n,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==n&&(n=n.length?n+("style"===i?";":" ")+t[i]:t[i]),e.$set(i,n,!0,f[i]))}),a(t,function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(n[i]=f[i]))})}function le(e,t,f,n,o,s,d,c){var u,l,m=[],h=t[0],p=e.shift(),g=_(p,{templateUrl:null,transclude:null,replace:null,$$originalDirective:p}),y=T(p.templateUrl)?p.templateUrl(t,f):p.templateUrl,b=p.templateNamespace;return t.empty(),r(y).then(function(i){var r,_;if(i=Pe(i),p.replace){if(i=zn.test(i)?nt(pe(b,qn(i))):[],r=i[0],1!==i.length||1!==r.nodeType)throw _i("tplrt",p.name,y);i={$attr:{}},ve(n,t,r);x=J(r,[],i);v(p.scope)&&oe(x,!0),e=x.concat(e),ue(f,i)}else r=h,t.html(i);for(e.unshift(g),u=fe(e,r,f,o,t,p,s,d,c),a(n,function(e,f){e===r&&(n[f]=t[0])}),l=X(t[0].childNodes,o);m.length;){i=m.shift(),_=m.shift();var w=m.shift(),k=m.shift(),x=t[0];if(!i.$$destroyed){if(_!==h){var q=_.className;c.hasElementTranscludeDirective&&p.replace||(x=be(r)),ve(w,an(_),x),V(an(x),q)}_=u.transcludeOnThisElement?K(i,u.transclude,k):k,u(l,i,x,n,_)}}m=null}).catch(function(e){E(e)&&i(e)}),function(e,t,f,n,i){e=i,t.$$destroyed||(m?m.push(t,f,n,e):(u.transcludeOnThisElement&&(e=K(t,u.transclude,i)),u(l,t,f,n,e)))}}function _e(e,t){var f=t.priority-e.priority;return 0!==f?f:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function me(e,t,f,n){function i(e){return e?" (module: "+e+")":""}if(t)throw _i("multidir",t.name,i(t.$$moduleName),f.name,i(f.$$moduleName),e,G(n))}function he(e,t){var n=f(t,!0);n&&e.push({priority:0,compile:function(e){var t=!!(e=e.parent()).length;return t&&W.$$addBindingClass(e),function(e,f){var i=f.parent();t||W.$$addBindingClass(i),W.$$addBindingInfo(i,n.expressions),e.$watch(n,function(e){f[0].nodeValue=e})}}})}function pe(t,f){switch(t=un(t||"html")){case"svg":case"math":var n=e.document.createElement("div");return n.innerHTML="<"+t+">"+f+"</"+t+">",n.childNodes[0].childNodes;default:return f}}function ge(e,t){if("srcdoc"===t)return P.HTML;var f=N(e);if("src"===t||"ngSrc"===t){if(-1===["img","video","audio","source","track"].indexOf(f))return P.RESOURCE_URL}else if("xlinkHref"===t||"form"===f&&"action"===t||"link"===f&&"href"===t)return P.RESOURCE_URL}function ye(e,t,n,i,a){var r=ge(e,i),o=l[i]||a,s=f(n,!a,r,o);if(s){if("multiple"===i&&"select"===N(e))throw _i("selmulti",G(e));if(w.test(i))throw _i("nodomevents");t.push({priority:100,compile:function(){return{pre:function(e,t,a){t=a.$$observers||(a.$$observers=de());var d=a[i];d!==n&&(s=d&&f(d,!0,r,o),n=d),s&&(a[i]=s(e),(t[i]||(t[i]=[])).$$inter=!0,(a.$$observers&&a.$$observers[i].$$scope||e).$watch(s,function(e,t){"class"===i&&e!==t?a.$updateClass(e,t):a.$set(i,e)}))}}}})}}function ve(t,f,n){var i,a,r=f[0],o=f.length,s=r.parentNode;if(t)for(i=0,a=t.length;i<a;i++)if(t[i]===r){t[i++]=n,a=i+o-1;for(var d=t.length;i<d;i++,a++)a<d?t[i]=t[a]:delete t[i];t.length-=o-1,t.context===r&&(t.context=n);break}for(s&&s.replaceChild(n,r),t=e.document.createDocumentFragment(),i=0;i<o;i++)t.appendChild(f[i]);for(an.hasData(r)&&(an.data(n,an.data(r)),an(r).off("$destroy")),an.cleanData(t.querySelectorAll("*")),i=1;i<o;i++)delete f[i];f[0]=n,f.length=1}function we(e,t){return c(function(){return e.apply(null,arguments)},e,t)}function ke(e,t,f,n,a,r){try{e(t,f,n,a,r)}catch(e){i(e,G(f))}}function xe(e,t){if(M)throw _i("missingattr",e,t)}function qe(e,t,n,i,r){function s(t,f,i){T(n.$onChanges)&&!$(f,i)&&(Ee||(e.$$postDigest(z),Ee=[]),c||(c={},Ee.push(d)),c[t]&&(i=c[t].previousValue),c[t]=new et(i,f))}function d(){n.$onChanges(c),c=void 0}var c,u=[],l={};return a(i,function(i,a){var d,c,_,h,p=i.attrName,g=i.optional;switch(i.mode){case"@":g||cn.call(t,p)||(xe(p,r.name),n[a]=t[p]=void 0),g=t.$observe(p,function(e){(k(e)||A(e))&&(s(a,e,n[a]),n[a]=e)}),t.$$observers[p].$$scope=e,k(d=t[p])?n[a]=f(d)(e):A(d)&&(n[a]=d),l[a]=new et(mi,n[a]),u.push(g);break;case"=":if(!cn.call(t,p)){if(g)break;xe(p,r.name),t[p]=void 0}if(g&&!t[p])break;c=o(t[p]),h=c.literal?D:$,_=c.assign||function(){throw d=n[a]=c(e),_i("nonassign",t[p],p,r.name)},d=n[a]=c(e),(g=function(t){return h(t,n[a])||(h(t,d)?_(e,t=n[a]):n[a]=t),d=t}).$stateful=!0,g=i.collection?e.$watchCollection(t[p],g):e.$watch(o(t[p],g),null,c.literal),u.push(g);break;case"<":if(!cn.call(t,p)){if(g)break;xe(p,r.name),t[p]=void 0}if(g&&!t[p])break;var y=(c=o(t[p])).literal,b=n[a]=c(e);l[a]=new et(mi,n[a]),g=e.$watch(c,function(e,t){if(t===e){if(t===b||y&&D(t,b))return;t=b}s(a,e,t),n[a]=e},y),u.push(g);break;case"&":if(g||cn.call(t,p)||xe(p,r.name),(c=t.hasOwnProperty(p)?o(t[p]):m)===m&&g)break;n[a]=function(t){return c(e,t)}}}),{initialChanges:l,removeWatches:u.length&&function(){for(var e=0,t=u.length;e<t;++e)u[e]()}}}var Ee,Te=/^\w/,Se=e.document.createElement("div"),Me=R,Ce=j,Ae=O;B.prototype={$normalize:tt,$addClass:function(e){e&&0<e.length&&I.addClass(this.$$element,e)},$removeClass:function(e){e&&0<e.length&&I.removeClass(this.$$element,e)},$updateClass:function(e,t){var f=ft(e,t);f&&f.length&&I.addClass(this.$$element,f),(f=ft(t,e))&&f.length&&I.removeClass(this.$$element,f)},$set:function(e,t,f,n){var r=Le(this.$$element[0],e),o=Kn[e],s=e;if(r?(this.$$element.prop(e,t),n=r):o&&(this[o]=t,s=o),this[e]=t,n?this.$attr[e]=n:(n=this.$attr[e])||(this.$attr[e]=n=ne(e,"-")),"a"===(r=N(this.$$element))&&("href"===e||"xlinkHref"===e)||"img"===r&&"src"===e)this[e]=t=F(t,"src"===e);else if("img"===r&&"srcset"===e&&b(t)){for(var r="",o=qn(t),d=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,d=/\s/.test(o)?d:/(,)/,o=o.split(d),d=Math.floor(o.length/2),c=0;c<d;c++)var u=2*c,r=r+F(qn(o[u]),!0),r=r+" "+qn(o[u+1]);o=qn(o[2*c]).split(/\s/),r+=F(qn(o[0]),!0),2===o.length&&(r+=" "+qn(o[1])),this[e]=t=r}!1!==f&&(null===t||y(t)?this.$$element.removeAttr(n):Te.test(n)?this.$$element.attr(n,t):H(this.$$element[0],n,t)),(e=this.$$observers)&&a(e[s],function(e){try{e(t)}catch(e){i(e)}})},$observe:function(e,t){var f=this,n=f.$$observers||(f.$$observers=de()),i=n[e]||(n[e]=[]);return i.push(t),x.$evalAsync(function(){i.$$inter||!f.hasOwnProperty(e)||y(f[e])||t(f[e])}),function(){L(i,t)}}};var Oe=f.startSymbol(),Re=f.endSymbol(),Pe="{{"===Oe&&"}}"===Re?h:function(e){return e.replace(/\{\{/g,Oe).replace(/}}/g,Re)},Ne=/^ngAttr[A-Z]/,je=/^(.+)Start$/;return W.$$addBindingInfo=q?function(e,t){var f=e.data("$binding")||[];kn(t)?f=f.concat(t):f.push(t),e.data("$binding",f)}:m,W.$$addBindingClass=q?function(e){V(e,"ng-binding")}:m,W.$$addScopeInfo=q?function(e,t,f,n){e.data(f?n?"$isolateScopeNoTemplate":"$isolateScope":"$scope",t)}:m,W.$$addScopeClass=q?function(e,t){V(e,t?"ng-isolate-scope":"ng-scope")}:m,W.$$createComment=function(t,f){var n="";return q&&(n=" "+(t||"")+": ",f&&(n+=f+" ")),e.document.createComment(n)},W}]}function et(e,t){this.previousValue=e,this.currentValue=t}function tt(e){return e.replace(hi,"").replace(pi,me)}function ft(e,t){var f="",n=e.split(/\s+/),i=t.split(/\s+/),a=0;e:for(;a<n.length;a++){for(var r=n[a],o=0;o<i.length;o++)if(r===i[o])continue e;f+=(0<f.length?" ":"")+r}return f}function nt(e){var t=(e=an(e)).length;if(1>=t)return e;for(;t--;){var f=e[t];(8===f.nodeType||f.nodeType===Pn&&""===f.nodeValue.trim())&&mn.call(e,t,1)}return e}function it(e,t){if(t&&k(t))return t;if(k(e)){var f=yi.exec(e);if(f)return f[3]}}function at(){var e={},t=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,f){re(t,"controller"),v(t)?c(e,t):e[t]=f},this.allowGlobals=function(){t=!0},this.$get=["$injector","$window",function(f,i){function a(e,t,f,i){if(!e||!v(e.$scope))throw n("$controller")("noscp",i,t);e.$scope[t]=f}return function(n,r,o,s){var d,u,l;if(o=!0===o,s&&k(s)&&(l=s),k(n)){if(!(s=n.match(yi)))throw gi("ctrlfmt",n);if(u=s[1],l=l||s[3],!(n=e.hasOwnProperty(u)?e[u]:oe(r.$scope,u,!0)||(t?oe(i,u,!0):void 0)))throw gi("ctrlreg",u);ae(n,u,!0)}return o?(o=(kn(n)?n[n.length-1]:n).prototype,d=Object.create(o||null),l&&a(r,l,d,u||n.name),c(function(){var e=f.invoke(n,d,r,u);return e!==d&&(v(e)||T(e))&&(d=e,l&&a(r,l,d,u||n.name)),d},{instance:d,identifier:l})):(d=f.instantiate(n,r,u),l&&a(r,l,d,u||n.name),d)}}]}function rt(){this.$get=["$window",function(e){return an(e.document)}]}function ot(){this.$get=["$document","$rootScope",function(e,t){function f(){i=n.hidden}var n=e[0],i=n&&n.hidden;return e.on("visibilitychange",f),t.$on("$destroy",function(){e.off("visibilitychange",f)}),function(){return i}}]}function st(){this.$get=["$log",function(e){return function(t,f){e.error.apply(e,arguments)}}]}function dt(e){return v(e)?q(e)?e.toISOString():z(e):e}function ct(){this.$get=function(){return function(e){if(!e)return"";var t=[];return r(e,function(e,f){null===e||y(e)||T(e)||(kn(e)?a(e,function(e){t.push(J(f)+"="+J(dt(e)))}):t.push(J(f)+"="+J(dt(e))))}),t.join("&")}}}function ut(){this.$get=function(){return function(e){function t(e,n,i){null===e||y(e)||(kn(e)?a(e,function(e,f){t(e,n+"["+(v(e)?f:"")+"]")}):v(e)&&!q(e)?r(e,function(e,f){t(e,n+(i?"":"[")+f+(i?"":"]"))}):f.push(J(n)+"="+J(dt(e))))}if(!e)return"";var f=[];return t(e,"",!0),f.join("&")}}}function lt(e,t){if(k(e)){var f=e.replace(qi,"").trim();if(f){var n,i=t("Content-Type");if((n=i=i&&0===i.indexOf(vi))||(n=(n=f.match(ki))&&xi[n[0]].test(f)),n)try{e=B(f)}catch(t){if(!i)return e;throw Ei("baddata",e,t)}}}return e}function _t(e){var t,f=de();return k(e)?a(e.split("\n"),function(e){t=e.indexOf(":");var n=un(qn(e.substr(0,t)));e=qn(e.substr(t+1)),n&&(f[n]=f[n]?f[n]+", "+e:e)}):v(e)&&a(e,function(e,t){var n=un(t),i=qn(e);n&&(f[n]=f[n]?f[n]+", "+i:i)}),f}function mt(e){var t;return function(f){return t||(t=_t(e)),f?(void 0===(f=t[un(f)])&&(f=null),f):t}}function ht(e,t,f,n){return T(n)?n(e,t,f):(a(n,function(n){e=n(e,t,f)}),e)}function pt(){var e=this.defaults={transformResponse:[lt],transformRequest:[function(e){return v(e)&&"[object File]"!==pn.call(e)&&"[object Blob]"!==pn.call(e)&&"[object FormData]"!==pn.call(e)?z(e):e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:le(wi),put:le(wi),patch:le(wi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},t=!1;this.useApplyAsync=function(e){return b(e)?(t=!!e,this):t};var f=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(i,r,o,s,d,u,l,_){function h(t){function f(e,t){for(var f=0,n=t.length;f<n;){var i=t[f++],a=t[f++];e=e.then(i,a)}return t.length=0,e}function r(e,t){var f,n={};return a(e,function(e,i){T(e)?null!=(f=e(t))&&(n[i]=f):n[i]=e}),n}function o(e){var t=c({},e);return t.data=ht(e.data,e.headers,e.status,s.transformResponse),200<=(e=e.status)&&300>e?t:u.reject(t)}if(!v(t))throw n("$http")("badreq",t);if(!k(_.valueOf(t.url)))throw n("$http")("badreq",t.url);var s=c({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},t);s.headers=function(t){var f,n,i,a=e.headers,o=c({},t.headers),a=c({},a.common,a[un(t.method)]);e:for(f in a){n=un(f);for(i in o)if(un(i)===n)continue e;o[f]=a[f]}return r(o,le(t))}(t),s.method=ln(s.method),s.paramSerializer=k(s.paramSerializer)?l.get(s.paramSerializer):s.paramSerializer,i.$$incOutstandingRequestCount();var d=[],h=[];return t=u.resolve(s),a(q,function(e){(e.request||e.requestError)&&d.unshift(e.request,e.requestError),(e.response||e.responseError)&&h.push(e.response,e.responseError)}),t=f(t,d),t=t.then(function(t){var f=t.headers,n=ht(t.data,mt(f),void 0,t.transformRequest);return y(n)&&a(f,function(e,t){"content-type"===un(t)&&delete f[t]}),y(t.withCredentials)&&!y(e.withCredentials)&&(t.withCredentials=e.withCredentials),p(t,n).then(o,o)}),t=f(t,h),t=t.finally(function(){i.$$completeOutstandingRequest(m)})}function p(f,n){function i(e){if(e){var f={};return a(e,function(e,n){f[n]=function(f){function n(){e(f)}t?d.$applyAsync(n):d.$$phase?n():d.$apply(n)}}),f}}function s(e,t,n,i,a){(200<=(t=-1<=t?t:0)&&300>t?q.resolve:q.reject)({data:e,status:t,headers:mt(n),config:f,statusText:i,xhrStatus:a})}function c(e){s(e.data,e.status,le(e.headers()),e.statusText,e.xhrStatus)}function l(){var e=h.pendingRequests.indexOf(f);-1!==e&&h.pendingRequests.splice(e,1)}var m,p,q=u.defer(),E=q.promise,S=f.headers,M="jsonp"===un(f.method),C=f.url;return M?C=_.getTrustedResourceUrl(C):k(C)||(C=_.valueOf(C)),C=g(C,f.paramSerializer(f.params)),M&&(C=w(C,f.jsonpCallbackParam)),h.pendingRequests.push(f),E.then(l,l),!f.cache&&!e.cache||!1===f.cache||"GET"!==f.method&&"JSONP"!==f.method||(m=v(f.cache)?f.cache:v(e.cache)?e.cache:x),m&&(p=m.get(C),b(p)?p&&T(p.then)?p.then(c,c):kn(p)?s(p[1],p[0],le(p[2]),p[3],p[4]):s(p,200,{},"OK","complete"):m.put(C,E)),y(p)&&((p=uf(f.url)?o()[f.xsrfCookieName||e.xsrfCookieName]:void 0)&&(S[f.xsrfHeaderName||e.xsrfHeaderName]=p),r(f.method,C,n,function(e,f,n,i,a){function r(){s(f,e,n,i,a)}m&&(200<=e&&300>e?m.put(C,[e,f,_t(n),i,a]):m.remove(C)),t?d.$applyAsync(r):(r(),d.$$phase||d.$apply())},S,f.timeout,f.withCredentials,f.responseType,i(f.eventHandlers),i(f.uploadEventHandlers))),E}function g(e,t){return 0<t.length&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}function w(e,t){if(/[&?][^=]+=JSON_CALLBACK/.test(e))throw Ei("badjsonp",e);if(new RegExp("[&?]"+t+"=").test(e))throw Ei("badjsonp",t,e);return e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}var x=s("$http");e.paramSerializer=k(e.paramSerializer)?l.get(e.paramSerializer):e.paramSerializer;var q=[];return a(f,function(e){q.unshift(k(e)?l.get(e):l.invoke(e))}),h.pendingRequests=[],function(e){a(arguments,function(e){h[e]=function(t,f){return h(c({},f||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){a(arguments,function(e){h[e]=function(t,f,n){return h(c({},n||{},{method:e,url:t,data:f}))}})}("post","put","patch"),h.defaults=e,h}]}function gt(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function yt(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,f,n){return bt(e,n,e.defer,t,f[0])}]}function bt(e,t,f,n,i){function r(e,t,f){e=e.replace("JSON_CALLBACK",t);var a=i.createElement("script"),r=null;return a.type="text/javascript",a.src=e,a.async=!0,r=function(e){a.removeEventListener("load",r),a.removeEventListener("error",r),i.body.removeChild(a),a=null;var o=-1,s="unknown";e&&("load"!==e.type||n.wasCalled(t)||(e={type:"error"}),s=e.type,o="error"===e.type?404:200),f&&f(o,s)},a.addEventListener("load",r),a.addEventListener("error",r),i.body.appendChild(a),r}return function(i,o,s,d,c,u,l,_,m,h){function p(){w&&w(),k&&k.abort()}function g(e,t,n,i,a,r){b(x)&&f.cancel(x),w=k=null,e(t,n,i,a,r)}if(o=o||e.url(),"jsonp"===un(i))var v=n.createCallback(o),w=r(o,v,function(e,t){var f=200===e&&n.getResponse(v);g(d,e,f,"",t,"complete"),n.removeCallback(v)});else{var k=t(i,o);if(k.open(i,o,!0),a(c,function(e,t){b(e)&&k.setRequestHeader(t,e)}),k.onload=function(){var e=k.statusText||"",t="response"in k?k.response:k.responseText,f=1223===k.status?204:k.status;0===f&&(f=t?200:"file"===cf(o).protocol?404:0),g(d,f,t,k.getAllResponseHeaders(),e,"complete")},k.onerror=function(){g(d,-1,null,null,"","error")},k.onabort=function(){g(d,-1,null,null,"","abort")},k.ontimeout=function(){g(d,-1,null,null,"","timeout")},a(m,function(e,t){k.addEventListener(t,e)}),a(h,function(e,t){k.upload.addEventListener(t,e)}),l&&(k.withCredentials=!0),_)try{k.responseType=_}catch(e){if("json"!==_)throw e}k.send(y(s)?null:s)}if(0<u)var x=f(p,u);else u&&T(u.then)&&u.then(p)}}function vt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(f,n,i){function a(e){return"\\\\\\"+e}function r(f){return f.replace(l,e).replace(_,t)}function o(e,t,f,n){var i=e.$watch(function(e){return i(),n(e)},t,f);return i}function s(a,s,l,_){if(!a.length||-1===a.indexOf(e)){var m;return s||(s=r(a),m=p(s),m.exp=a,m.expressions=[],m.$$watchDelegate=o),m}_=!!_;var h,g,v=0,w=[],k=[];m=a.length;for(var x=[],q=[];v<m;){if(-1===(h=a.indexOf(e,v))||-1===(g=a.indexOf(t,h+d))){v!==m&&x.push(r(a.substring(v)));break}v!==h&&x.push(r(a.substring(v,h))),v=a.substring(h+d,g),w.push(v),k.push(f(v,function(e){try{var t=e;return e=l?i.getTrusted(l,t):i.valueOf(t),_&&!b(e)?e:ce(e)}catch(e){n(Ti.interr(a,e))}})),v=g+u,q.push(x.length),x.push("")}if(l&&1<x.length&&Ti.throwNoconcat(a),!s||w.length){var E=function(e){for(var t=0,f=w.length;t<f;t++){if(_&&y(e[t]))return;x[q[t]]=e[t]}return x.join("")};return c(function(e){var t=0,f=w.length,i=Array(f);try{for(;t<f;t++)i[t]=k[t](e);return E(i)}catch(e){n(Ti.interr(a,e))}},{exp:a,expressions:w,$$watchDelegate:function(e,t){var f;return e.$watchGroup(k,function(n,i){var a=E(n);T(t)&&t.call(this,a,n!==i?f:a,e),f=a})}})}}var d=e.length,u=t.length,l=new RegExp(e.replace(/./g,a),"g"),_=new RegExp(t.replace(/./g,a),"g");return s.startSymbol=function(){return e},s.endSymbol=function(){return t},s}]}function wt(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,f,n,i){function a(a,o,s,d){function c(){u?a.apply(null,l):a(h)}var u=4<arguments.length,l=u?_n.call(arguments,4):[],_=t.setInterval,m=t.clearInterval,h=0,p=b(d)&&!d,g=(p?n:f).defer(),y=g.promise;return s=b(s)?s:0,y.$$intervalId=_(function(){p?i.defer(c):e.$evalAsync(c),g.notify(h++),0<s&&h>=s&&(g.resolve(h),m(y.$$intervalId),delete r[y.$$intervalId]),p||e.$apply()},o),r[y.$$intervalId]=g,y}var r={};return a.cancel=function(e){return!!(e&&e.$$intervalId in r)&&(r[e.$$intervalId].promise.$$state.pur=!0,r[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete r[e.$$intervalId],!0)},a}]}function kt(e){for(var t=(e=e.split("/")).length;t--;)e[t]=K(e[t]);return e.join("/")}function xt(e,t){var f=cf(e);t.$$protocol=f.protocol,t.$$host=f.hostname,t.$$port=l(f.port)||Ci[f.protocol]||null}function qt(e,t){if(Oi.test(e))throw Ai("badpath",e);var f="/"!==e.charAt(0);f&&(e="/"+e);var n=cf(e);t.$$path=decodeURIComponent(f&&"/"===n.pathname.charAt(0)?n.pathname.substring(1):n.pathname),t.$$search=X(n.search),t.$$hash=decodeURIComponent(n.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Et(e,t){return e.slice(0,t.length)===t}function Tt(e,t){if(Et(t,e))return t.substr(e.length)}function St(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function Mt(e){return e.replace(/(#.+)|#$/,"$1")}function Ct(e,t,f){this.$$html5=!0,f=f||"",xt(e,this),this.$$parse=function(e){var f=Tt(t,e);if(!k(f))throw Ai("ipthprfx",e,t);qt(f,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=Y(this.$$search),f=this.$$hash?"#"+K(this.$$hash):"";this.$$url=kt(this.$$path)+(e?"?"+e:"")+f,this.$$absUrl=t+this.$$url.substr(1),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(n,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var a,r;return b(a=Tt(e,n))?(r=a,r=f&&b(a=Tt(f,a))?t+(Tt("/",a)||a):e+r):b(a=Tt(t,n))?r=t+a:t===n+"/"&&(r=t),r&&this.$$parse(r),!!r}}function At(e,t,f){xt(e,this),this.$$parse=function(n){var i,a=Tt(e,n)||Tt(t,n);y(a)||"#"!==a.charAt(0)?this.$$html5?i=a:(i="",y(a)&&(e=n,this.replace())):(i=Tt(f,a),y(i)&&(i=a)),qt(i,this),n=this.$$path;var r=/^\/[A-Z]:(\/.*)/;Et(i,a=e)&&(i=i.replace(a,"")),r.exec(i)||(n=(i=r.exec(n))?i[1]:n),this.$$path=n,this.$$compose()},this.$$compose=function(){var t=Y(this.$$search),n=this.$$hash?"#"+K(this.$$hash):"";this.$$url=kt(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+(this.$$url?f+this.$$url:""),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(t,f){return St(e)===St(t)&&(this.$$parse(t),!0)}}function Ot(e,t,f){this.$$html5=!0,At.apply(this,arguments),this.$$parseLinkUrl=function(n,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var a,r;return e===St(n)?a=n:(r=Tt(t,n))?a=e+f+r:t===n+"/"&&(a=t),a&&this.$$parse(a),!!a},this.$$compose=function(){var t=Y(this.$$search),n=this.$$hash?"#"+K(this.$$hash):"";this.$$url=kt(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+f+this.$$url,this.$$urlUpdatedByLocation=!0}}function Rt(e){return function(){return this[e]}}function Pt(e,t){return function(f){return y(f)?this[e]:(this[e]=t(f),this.$$compose(),this)}}function Nt(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return b(t)?(e=t,this):e},this.html5Mode=function(e){return A(e)?(t.enabled=e,this):v(e)?(A(e.enabled)&&(t.enabled=e.enabled),A(e.requireBase)&&(t.requireBase=e.requireBase),(A(e.rewriteLinks)||k(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(f,n,i,a,r){function o(e,t,f){var i=d.url(),a=d.$$state;try{n.url(e,t,f),d.$$state=n.state()}catch(e){throw d.url(i),d.$$state=a,e}}function s(e,t){f.$broadcast("$locationChangeSuccess",d.absUrl(),e,d.$$state,t)}var d,c;c=n.baseHref();var u,l=n.url();if(t.enabled){if(!c&&t.requireBase)throw Ai("nobase");u=l.substring(0,l.indexOf("/",l.indexOf("//")+2))+(c||"/"),c=i.history?Ct:Ot}else u=St(l),c=At;var _=u.substr(0,St(u).lastIndexOf("/")+1);(d=new c(u,_,"#"+e)).$$parseLinkUrl(l,l),d.$$state=n.state();var m=/^\s*(javascript|mailto):/i;a.on("click",function(e){if((o=t.rewriteLinks)&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var i=an(e.target);"a"!==N(i[0]);)if(i[0]===a[0]||!(i=i.parent())[0])return;if(!k(o)||!y(i.attr(o))){var o=i.prop("href"),s=i.attr("href")||i.attr("xlink:href");v(o)&&"[object SVGAnimatedString]"===o.toString()&&(o=cf(o.animVal).href),m.test(o)||!o||i.attr("target")||e.isDefaultPrevented()||!d.$$parseLinkUrl(o,s)||(e.preventDefault(),d.absUrl()!==n.url()&&(f.$apply(),r.angular["ff-684208-preventDefault"]=!0))}}}),Mt(d.absUrl())!==Mt(l)&&n.url(d.absUrl(),!0);var h=!0;return n.onUrlChange(function(e,t){Et(e,_)?(f.$evalAsync(function(){var n,i=d.absUrl(),a=d.$$state;e=Mt(e),d.$$parse(e),d.$$state=t,n=f.$broadcast("$locationChangeStart",e,i,t,a).defaultPrevented,d.absUrl()===e&&(n?(d.$$parse(i),d.$$state=a,o(i,!1,a)):(h=!1,s(i,a)))}),f.$$phase||f.$digest()):r.location.href=e}),f.$watch(function(){if(h||d.$$urlUpdatedByLocation){d.$$urlUpdatedByLocation=!1;var e=Mt(n.url()),t=Mt(d.absUrl()),a=n.state(),r=d.$$replace,c=e!==t||d.$$html5&&i.history&&a!==d.$$state;(h||c)&&(h=!1,f.$evalAsync(function(){var t=d.absUrl(),n=f.$broadcast("$locationChangeStart",t,e,d.$$state,a).defaultPrevented;d.absUrl()===t&&(n?(d.$$parse(e),d.$$state=a):(c&&o(t,r,a===d.$$state?null:d.$$state),s(e,a)))}))}d.$$replace=!1}),d}]}function Lt(){var e=!0,t=this;this.debugEnabled=function(t){return b(t)?(e=t,this):e},this.$get=["$window",function(f){function n(e){return E(e)&&(e.stack&&r?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=f.console||{},i=t[e]||t.log||m;return function(){var e=[];return a(arguments,function(t){e.push(n(t))}),Function.prototype.apply.call(i,t,e)}}var r=nn||/\bEdge\//.test(f.navigator&&f.navigator.userAgent);return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var f=i("debug");return function(){e&&f.apply(t,arguments)}}()}}]}function jt(e){return e+""}function $t(e,t){return void 0!==e?e:t}function Dt(e,t){return void 0===e?t:void 0===t?e:e+t}function It(e,t){switch(e.type){case Di.MemberExpression:if(e.computed)return!1;break;case Di.UnaryExpression:return 1;case Di.BinaryExpression:return"+"!==e.operator&&1;case Di.CallExpression:return!1}return void 0===t?Ii:t}function Ut(e,t,f){var n,i,r=e.isPure=It(e,f);switch(e.type){case Di.Program:n=!0,a(e.body,function(e){Ut(e.expression,t,r),n=n&&e.expression.constant}),e.constant=n;break;case Di.Literal:e.constant=!0,e.toWatch=[];break;case Di.UnaryExpression:Ut(e.argument,t,r),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case Di.BinaryExpression:Ut(e.left,t,r),Ut(e.right,t,r),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Di.LogicalExpression:Ut(e.left,t,r),Ut(e.right,t,r),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Di.ConditionalExpression:Ut(e.test,t,r),Ut(e.alternate,t,r),Ut(e.consequent,t,r),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Di.Identifier:e.constant=!1,e.toWatch=[e];break;case Di.MemberExpression:Ut(e.object,t,r),e.computed&&Ut(e.property,t,r),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case Di.CallExpression:n=f=!!e.filter&&!t(e.callee.name).$stateful,i=[],a(e.arguments,function(e){Ut(e,t,r),n=n&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=f?i:[e];break;case Di.AssignmentExpression:Ut(e.left,t,r),Ut(e.right,t,r),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Di.ArrayExpression:n=!0,i=[],a(e.elements,function(e){Ut(e,t,r),n=n&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=i;break;case Di.ObjectExpression:n=!0,i=[],a(e.properties,function(e){Ut(e.value,t,r),n=n&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(Ut(e.key,t,!1),n=n&&e.key.constant,i.push.apply(i,e.key.toWatch))}),e.constant=n,e.toWatch=i;break;case Di.ThisExpression:e.constant=!1,e.toWatch=[];break;case Di.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Ft(e){if(1===e.length){var t=(e=e[0].expression).toWatch;return 1!==t.length?t:t[0]!==e?t:void 0}}function zt(e){return e.type===Di.Identifier||e.type===Di.MemberExpression}function Bt(e){if(1===e.body.length&&zt(e.body[0].expression))return{type:Di.AssignmentExpression,left:e.body[0].expression,right:{type:Di.NGValueParameter},operator:"="}}function Ht(e){this.$filter=e}function Vt(e){this.$filter=e}function Gt(e,t,f){this.ast=new Di(e,f),this.astCompiler=f.csp?new Vt(t):new Ht(t)}function Wt(e){return T(e.valueOf)?e.valueOf():Ni.call(e)}function Xt(){var e,t,f=de(),n={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){n[e]=t},this.setIdentifierFns=function(f,n){return e=f,t=n,this},this.$get=["$filter",function(i){function r(e,t,f){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=Wt(e))&&!f)&&(e===t||e!==e&&t!==t)}function o(e,t,f,n,i){var a;if(1===(s=n.inputs).length){var o=r,s=s[0];return e.$watch(function(e){var t=s(e);return r(t,o,s.isPure)||(a=n(e,void 0,void 0,[t]),o=t&&Wt(t)),a},t,f,i)}for(var d=[],c=[],u=0,l=s.length;u<l;u++)d[u]=r,c[u]=null;return e.$watch(function(e){for(var t=!1,f=0,i=s.length;f<i;f++){var o=s[f](e);(t||(t=!r(o,d[f],s[f].isPure)))&&(c[f]=o,d[f]=o&&Wt(o))}return t&&(a=n(e,void 0,void 0,c)),a},t,f,i)}function s(e,t,f,n,i){function a(e,f,n){s=e,T(t)&&t(e,f,n),b(e)&&n.$$postDigest(function(){b(s)&&r()})}var r,s;return r=n.inputs?o(e,a,f,n,i):e.$watch(function(e){return n(e)},a,f)}function d(e,t,f,n){function i(e){var t=!0;return a(e,function(e){b(e)||(t=!1)}),t}var r,o;return r=e.$watch(function(e){return n(e)},function(e,f,n){o=e,T(t)&&t(e,f,n),i(e)&&n.$$postDigest(function(){i(o)&&r()})},f)}function c(e,t,f,n){var i=e.$watch(function(e){return i(),n(e)},t,f);return i}function u(e,t){if(!t)return e;var f=e.$$watchDelegate,n=!1,i=f!==d&&f!==s?function(f,i,a,r){return a=n&&r?r[0]:e(f,i,a,r),t(a,f,i)}:function(f,n,i,a){return i=e(f,n,i,a),f=t(i,f,n),b(i)?f:i},n=!e.inputs;return f&&f!==o?(i.$$watchDelegate=f,i.inputs=e.inputs):t.$stateful||(i.$$watchDelegate=o,i.inputs=e.inputs?e.inputs:[e]),i.inputs&&(i.inputs=i.inputs.map(function(e){return e.isPure===Ii?function(t){return e(t)}:e})),i}var l={csp:Tn().noUnsafeEval,literals:j(n),isIdentifierStart:T(e)&&e,isIdentifierContinue:T(t)&&t};return function(e,t){var n,a,r;switch(typeof e){case"string":return r=e=e.trim(),(n=f[r])||(":"===e.charAt(0)&&":"===e.charAt(1)&&(a=!0,e=e.substring(2)),n=new $i(l),(n=new Gt(n,i,l).parse(e)).constant?n.$$watchDelegate=c:a?n.$$watchDelegate=n.literal?d:s:n.inputs&&(n.$$watchDelegate=o),f[r]=n),u(n,t);case"function":return u(e,t);default:return u(m,t)}}}]}function Yt(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,f){return Jt(function(e){t.$evalAsync(e)},f,e)}],this.errorOnUnhandledRejections=function(t){return b(t)?(e=t,this):e}}function Kt(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,f){return Jt(function(e){t.defer(e)},f,e)}],this.errorOnUnhandledRejections=function(t){return b(t)?(e=t,this):e}}function Jt(e,t,f){function i(){return new r}function r(){var e=this.promise=new o;this.resolve=function(t){u(e,t)},this.reject=function(t){_(e,t)},this.notify=function(t){h(e,t)}}function o(){this.$$state={status:0}}function s(){for(;!x&&q.length;){var e=q.shift();if(!e.pur){e.pur=!0;var f="Possibly unhandled rejection: "+("function"==typeof(f=e.value)?f.toString().replace(/ \{[\s\S]*$/,""):y(f)?"undefined":"string"!=typeof f?_e(f,void 0):f);E(e.value)?t(e.value,f):t(f)}}}function d(t){!f||t.pending||2!==t.status||t.pur||(0===x&&0===q.length&&e(s),q.push(t)),!t.processScheduled&&t.pending&&(t.processScheduled=!0,++x,e(function(){var n,i,a;a=t.pending,t.processScheduled=!1,t.pending=void 0;try{for(var r=0,o=a.length;r<o;++r){t.pur=!0,i=a[r][0],n=a[r][t.status];try{T(n)?u(i,n(t.value)):1===t.status?u(i,t.value):_(i,t.value)}catch(e){_(i,e)}}}finally{--x,f&&0===x&&e(s)}}))}function u(e,t){e.$$state.status||(t===e?m(e,k("qcycle",t)):l(e,t))}function l(e,t){function f(t){i||(i=!0,m(e,t))}var n,i=!1;try{(v(t)||T(t))&&(n=t.then),T(n)?(e.$$state.status=-1,n.call(t,function(t){i||(i=!0,l(e,t))},f,function(t){h(e,t)})):(e.$$state.value=t,e.$$state.status=1,d(e.$$state))}catch(e){f(e)}}function _(e,t){e.$$state.status||m(e,t)}function m(e,t){e.$$state.value=t,e.$$state.status=2,d(e.$$state)}function h(f,n){var i=f.$$state.pending;0>=f.$$state.status&&i&&i.length&&e(function(){for(var e,f,a=0,r=i.length;a<r;a++){f=i[a][0],e=i[a][3];try{h(f,T(e)?e(n):n)}catch(e){t(e)}}})}function p(e){var t=new o;return _(t,e),t}function g(e,t,f){var n=null;try{T(f)&&(n=f())}catch(e){return p(e)}return n&&T(n.then)?n.then(function(){return t(e)},p):t(e)}function b(e,t,f,n){var i=new o;return u(i,e),i.then(t,f,n)}function w(e){if(!T(e))throw k("norslvr",e);var t=new o;return e(function(e){u(t,e)},function(e){_(t,e)}),t}var k=n("$q",TypeError),x=0,q=[];c(o.prototype,{then:function(e,t,f){if(y(e)&&y(t)&&y(f))return this;var n=new o;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([n,e,t,f]),0<this.$$state.status&&d(this.$$state),n},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return g(t,S,e)},function(t){return g(t,p,e)},t)}});var S=b;return w.prototype=o.prototype,w.defer=i,w.reject=p,w.when=b,w.resolve=S,w.all=function(e){var t=new o,f=0,n=kn(e)?[]:{};return a(e,function(e,i){f++,b(e).then(function(e){n[i]=e,--f||u(t,n)},function(e){_(t,e)})}),0===f&&u(t,n),t},w.race=function(e){var t=i();return a(e,function(e){b(e).then(t.resolve,t.reject)}),t.promise},w}function Qt(){this.$get=["$window","$timeout",function(e,t){var f=e.requestAnimationFrame||e.webkitRequestAnimationFrame,n=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!f,a=i?function(e){var t=f(e);return function(){n(t)}}:function(e){var f=t(e,16.66,!1);return function(){t.cancel(f)}};return a.supported=i,a}]}function Zt(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++vn,this.$$ChildScope=null}return t.prototype=e,t}var t=10,f=n("$rootScope"),r=null,o=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$exceptionHandler","$parse","$browser",function(n,s,d){function c(e){e.currentScope.$$destroyed=!0}function u(e){9===nn&&(e.$$childHead&&u(e.$$childHead),e.$$nextSibling&&u(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function l(){this.$id=++vn,this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function _(e){if(k.$$phase)throw f("inprog",k.$$phase);k.$$phase=e}function h(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function p(e,t,f){do{e.$$listenerCount[f]-=t,0===e.$$listenerCount[f]&&delete e.$$listenerCount[f]}while(e=e.$parent)}function g(){}function b(){for(;E.length;)try{E.shift()()}catch(e){n(e)}o=null}function w(){null===o&&(o=d.defer(function(){k.$apply(b)}))}l.prototype={constructor:l,$new:function(t,f){var n;return f=f||this,t?(n=new l,n.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),n=new this.$$ChildScope),n.$parent=f,n.$$prevSibling=f.$$childTail,f.$$childHead?(f.$$childTail.$$nextSibling=n,f.$$childTail=n):f.$$childHead=f.$$childTail=n,(t||f!==this)&&n.$on("$destroy",c),n},$watch:function(e,t,f,n){var i=s(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,f,i,e);var a=this,o=a.$$watchers,d={fn:t,last:g,get:i,exp:n||e,eq:!!f};return r=null,T(t)||(d.fn=m),o||(o=a.$$watchers=[],o.$$digestWatchIndex=-1),o.unshift(d),o.$$digestWatchIndex++,h(this,1),function(){var e=L(o,d);0<=e&&(h(a,-1),e<o.$$digestWatchIndex&&o.$$digestWatchIndex--),r=null}},$watchGroup:function(e,t){function f(){s=!1,d?(d=!1,t(i,i,o)):t(i,n,o)}var n=Array(e.length),i=Array(e.length),r=[],o=this,s=!1,d=!0;if(!e.length){var c=!0;return o.$evalAsync(function(){c&&t(i,i,o)}),function(){c=!1}}return 1===e.length?this.$watch(e[0],function(e,f,a){i[0]=e,n[0]=f,t(i,e===f?i:n,a)}):(a(e,function(e,t){var a=o.$watch(e,function(e,a){i[t]=e,n[t]=a,s||(s=!0,o.$evalAsync(f))});r.push(a)}),function(){for(;r.length;)r.shift()()})},$watchCollection:function(e,t){function f(e){var t,f,r;if(!y(n=e)){if(v(n))if(i(n))for(a!==l&&(a=l,h=a.length=0,c++),e=n.length,h!==e&&(c++,a.length=h=e),t=0;t<e;t++)r=a[t],f=n[t],r!==r&&f!==f||r===f||(c++,a[t]=f);else{a!==_&&(a=_={},h=0,c++),e=0;for(t in n)cn.call(n,t)&&(e++,f=n[t],r=a[t],t in a?r!==r&&f!==f||r===f||(c++,a[t]=f):(h++,a[t]=f,c++));if(h>e)for(t in c++,a)cn.call(n,t)||(h--,delete a[t])}else a!==n&&(a=n,c++);return c}}f.$stateful=!0;var n,a,r,o=this,d=1<t.length,c=0,u=s(e,f),l=[],_={},m=!0,h=0;return this.$watch(u,function(){if(m?(m=!1,t(n,n,o)):t(n,r,o),d)if(v(n))if(i(n)){r=Array(n.length);for(var e=0;e<n.length;e++)r[e]=n[e]}else for(e in r={},n)cn.call(n,e)&&(r[e]=n[e]);else r=n})},$digest:function(){var e,i,a,s,c,u,l,m,h,p=t,y=[];_("$digest"),d.$$checkUrlChange(),this===k&&null!==o&&(d.defer.cancel(o),b()),r=null;do{for(u=!1,l=this,c=0;c<x.length;c++){try{(0,(h=x[c]).fn)(h.scope,h.locals)}catch(e){n(e)}r=null}x.length=0;e:do{if(c=l.$$watchers)for(c.$$digestWatchIndex=c.length;c.$$digestWatchIndex--;)try{if(e=c[c.$$digestWatchIndex])if(s=e.get,(i=s(l))===(a=e.last)||(e.eq?D(i,a):wn(i)&&wn(a))){if(e===r){u=!1;break e}}else u=!0,r=e,e.last=e.eq?j(i,null):i,(0,e.fn)(i,a===g?i:a,l),5>p&&(m=4-p,y[m]||(y[m]=[]),y[m].push({msg:T(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:i,oldVal:a}))}catch(e){n(e)}if(!(c=l.$$watchersCount&&l.$$childHead||l!==this&&l.$$nextSibling))for(;l!==this&&!(c=l.$$nextSibling);)l=l.$parent}while(l=c);if((u||x.length)&&!p--)throw k.$$phase=null,f("infdig",t,y)}while(u||x.length);for(k.$$phase=null;S<q.length;)try{q[S++]()}catch(e){n(e)}q.length=S=0,d.$$checkUrlChange()},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===k&&d.$$applicationDestroyed(),h(this,-this.$$watchersCount);for(var t in this.$$listenerCount)p(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=m,this.$on=this.$watch=this.$watchGroup=function(){return m},this.$$listeners={},this.$$nextSibling=null,u(this)}},$eval:function(e,t){return s(e)(this,t)},$evalAsync:function(e,t){k.$$phase||x.length||d.defer(function(){x.length&&k.$digest()}),x.push({scope:this,fn:s(e),locals:t})},$$postDigest:function(e){q.push(e)},$apply:function(e){try{_("$apply");try{return this.$eval(e)}finally{k.$$phase=null}}catch(e){n(e)}finally{try{k.$digest()}catch(e){throw n(e),e}}},$applyAsync:function(e){var t=this;e&&E.push(function(){t.$eval(e)}),e=s(e),w()},$on:function(e,t){var f=this.$$listeners[e];f||(this.$$listeners[e]=f=[]),f.push(t);var n=this;do{n.$$listenerCount[e]||(n.$$listenerCount[e]=0),n.$$listenerCount[e]++}while(n=n.$parent);var i=this;return function(){var n=f.indexOf(t);-1!==n&&(f[n]=null,p(i,1,e))}},$emit:function(e,t){var f,i,a,r=[],o=this,s=!1,d={name:e,targetScope:o,stopPropagation:function(){s=!0},preventDefault:function(){d.defaultPrevented=!0},defaultPrevented:!1},c=I([d],arguments,1);do{for(f=o.$$listeners[e]||r,d.currentScope=o,i=0,a=f.length;i<a;i++)if(f[i])try{f[i].apply(null,c)}catch(e){n(e)}else f.splice(i,1),i--,a--;if(s)return d.currentScope=null,d;o=o.$parent}while(o);return d.currentScope=null,d},$broadcast:function(e,t){var f=this,i=this,a={name:e,targetScope:this,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[e])return a;for(var r,o,s=I([a],arguments,1);f=i;){for(a.currentScope=f,r=0,o=(i=f.$$listeners[e]||[]).length;r<o;r++)if(i[r])try{i[r].apply(null,s)}catch(e){n(e)}else i.splice(r,1),r--,o--;if(!(i=f.$$listenerCount[e]&&f.$$childHead||f!==this&&f.$$nextSibling))for(;f!==this&&!(i=f.$$nextSibling);)f=f.$parent}return a.currentScope=null,a}};var k=new l,x=k.$$asyncQueue=[],q=k.$$postDigestQueue=[],E=k.$$applyAsyncQueue=[],S=0;return k}]}function ef(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return b(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return b(e)?(t=e,this):t},this.$get=function(){return function(f,n){var i,a=n?t:e;return""===(i=cf(f).href)||i.match(a)?f:"unsafe:"+i}}}function tf(e){if("self"===e)return e;if(k(e)){if(-1<e.indexOf("***"))throw Ui("iwcard",e);return e=En(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(S(e))return new RegExp("^"+e.source+"$");throw Ui("imatcher")}function ff(e){var t=[];return b(e)&&a(e,function(e){t.push(tf(e))}),t}function nf(){this.SCE_CONTEXTS=Fi;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=ff(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=ff(e)),t},this.$get=["$injector",function(f){function n(e,t){return"self"===e?uf(t):!!e.exec(t.href)}function i(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var a=function(e){throw Ui("unsafe")};f.has("$sanitize")&&(a=f.get("$sanitize"));var r=i(),o={};return o[Fi.HTML]=i(r),o[Fi.CSS]=i(r),o[Fi.URL]=i(r),o[Fi.JS]=i(r),o[Fi.RESOURCE_URL]=i(o[Fi.URL]),{trustAs:function(e,t){var f=o.hasOwnProperty(e)?o[e]:null;if(!f)throw Ui("icontext",e,t);if(null===t||y(t)||""===t)return t;if("string"!=typeof t)throw Ui("itype",e);return new f(t)},getTrusted:function(f,i){if(null===i||y(i)||""===i)return i;if((d=o.hasOwnProperty(f)?o[f]:null)&&i instanceof d)return i.$$unwrapTrustedValue();if(f===Fi.RESOURCE_URL){var r,s,d=cf(i.toString()),c=!1;for(r=0,s=e.length;r<s;r++)if(n(e[r],d)){c=!0;break}if(c)for(r=0,s=t.length;r<s;r++)if(n(t[r],d)){c=!1;break}if(c)return i;throw Ui("insecurl",i.toString())}if(f===Fi.HTML)return a(i);throw Ui("unsafe")},valueOf:function(e){return e instanceof r?e.$$unwrapTrustedValue():e}}}]}function af(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,f){if(e&&8>nn)throw Ui("iequirks");var n=le(Fi);n.isEnabled=function(){return e},n.trustAs=f.trustAs,n.getTrusted=f.getTrusted,n.valueOf=f.valueOf,e||(n.trustAs=n.getTrusted=function(e,t){return t},n.valueOf=h),n.parseAs=function(e,f){var i=t(f);return i.literal&&i.constant?i:t(f,function(t){return n.getTrusted(e,t)})};var i=n.parseAs,r=n.getTrusted,o=n.trustAs;return a(Fi,function(e,t){var f=un(t);n[("parse_as_"+f).replace(zi,me)]=function(t){return i(e,t)},n[("get_trusted_"+f).replace(zi,me)]=function(t){return r(e,t)},n[("trust_as_"+f).replace(zi,me)]=function(t){return o(e,t)}}),n}]}function rf(){this.$get=["$window","$document",function(e,t){var f={},n=!((!e.nw||!e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,i=l((/android (\d+)/.exec(un((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),r=t[0]||{},o=r.body&&r.body.style,s=!1,d=!1;return o&&(s=!!("transition"in o||"webkitTransition"in o),d=!!("animation"in o||"webkitAnimation"in o)),{history:!(!n||4>i||a),hasEvent:function(e){if("input"===e&&nn)return!1;if(y(f[e])){var t=r.createElement("div");f[e]="on"+e in t}return f[e]},csp:Tn(),transitions:s,animations:d,android:i}}]}function of(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,f,n,i,a){function r(o,s){r.totalPendingRequests++,k(o)&&!y(f.get(o))||(o=a.getTrustedResourceUrl(o));var d=n.defaults&&n.defaults.transformResponse;return kn(d)?d=d.filter(function(e){return e!==lt}):d===lt&&(d=null),n.get(o,c({cache:f,transformResponse:d},e)).finally(function(){r.totalPendingRequests--}).then(function(e){return f.put(o,e.data),e.data},function(e){return s||(e=Bi("tpload",o,e.status,e.statusText),t(e)),i.reject(e)})}return r.totalPendingRequests=0,r}]}function sf(){this.$get=["$rootScope","$browser","$location",function(e,t,f){return{findBindings:function(e,t,f){var n=[];return a(e=e.getElementsByClassName("ng-binding"),function(e){var i=bn.element(e).data("$binding");i&&a(i,function(i){f?new RegExp("(^|\\s)"+En(t)+"(\\s|\\||$)").test(i)&&n.push(e):-1!==i.indexOf(t)&&n.push(e)})}),n},findModels:function(e,t,f){for(var n=["ng-","data-ng-","ng\\:"],i=0;i<n.length;++i){var a=e.querySelectorAll("["+n[i]+"model"+(f?"=":"*=")+'"'+t+'"]');if(a.length)return a}},getLocation:function(){return f.url()},setLocation:function(t){t!==f.url()&&(f.url(t),e.$digest())},whenStable:function(e){t.notifyWhenNoOutstandingRequests(e)}}}]}function df(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,f,n,i){function a(a,o,s){T(a)||(s=o,o=a,a=m);var d,c=_n.call(arguments,3),u=b(s)&&!s,l=(u?n:f).defer(),_=l.promise;return d=t.defer(function(){try{l.resolve(a.apply(null,c))}catch(e){l.reject(e),i(e)}finally{delete r[_.$$timeoutId]}u||e.$apply()},o),_.$$timeoutId=d,r[d]=l,_}var r={};return a.cancel=function(e){return!!(e&&e.$$timeoutId in r)&&(r[e.$$timeoutId].promise.$$state.pur=!0,r[e.$$timeoutId].reject("canceled"),delete r[e.$$timeoutId],t.defer.cancel(e.$$timeoutId))},a}]}function cf(e){return nn&&(Hi.setAttribute("href",e),e=Hi.href),Hi.setAttribute("href",e),{href:Hi.href,protocol:Hi.protocol?Hi.protocol.replace(/:$/,""):"",host:Hi.host,search:Hi.search?Hi.search.replace(/^\?/,""):"",hash:Hi.hash?Hi.hash.replace(/^#/,""):"",hostname:Hi.hostname,port:Hi.port,pathname:"/"===Hi.pathname.charAt(0)?Hi.pathname:"/"+Hi.pathname}}function uf(e){return(e=k(e)?cf(e):e).protocol===Vi.protocol&&e.host===Vi.host}function lf(){this.$get=p(e)}function _f(e){function t(e){try{return decodeURIComponent(e)}catch(t){return e}}var f=e[0]||{},n={},i="";return function(){var e,a,r,o,s;try{e=f.cookie||""}catch(t){e=""}if(e!==i)for(i=e,e=i.split("; "),n={},r=0;r<e.length;r++)a=e[r],0<(o=a.indexOf("="))&&(s=t(a.substring(0,o)),y(n[s])&&(n[s]=t(a.substring(o+1))));return n}}function mf(){this.$get=_f}function hf(e){function t(f,n){if(v(f)){var i={};return a(f,function(e,f){i[f]=t(f,e)}),i}return e.factory(f+"Filter",n)}this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+"Filter")}}],t("currency",vf),t("date",Of),t("filter",pf),t("json",Rf),t("limitTo",Pf),t("lowercase",Qi),t("number",wf),t("orderBy",Lf),t("uppercase",Zi)}function pf(){return function(e,t,f,a){if(!i(e)){if(null==e)return e;throw n("filter")("notarray",e)}a=a||"$";var r;switch(bf(t)){case"function":break;case"boolean":case"null":case"number":case"string":r=!0;case"object":t=gf(t,f,a,r);break;default:return e}return Array.prototype.filter.call(e,t)}}function gf(e,t,f,n){var i=v(e)&&f in e;return!0===t?t=D:T(t)||(t=function(e,t){return!y(e)&&(null===e||null===t?e===t:!(v(t)||v(e)&&!g(e))&&(e=un(""+e),t=un(""+t),-1!==e.indexOf(t)))}),function(a){return i&&!v(a)?yf(a,e[f],t,f,!1):yf(a,e,t,f,n)}}function yf(e,t,f,n,i,a){var r=bf(e),o=bf(t);if("string"===o&&"!"===t.charAt(0))return!yf(e,t.substring(1),f,n,i);if(kn(e))return e.some(function(e){return yf(e,t,f,n,i)});switch(r){case"object":var s;if(i){for(s in e)if(s.charAt&&"$"!==s.charAt(0)&&yf(e[s],t,f,n,!0))return!0;return!a&&yf(e,t,f,n,!1)}if("object"===o){for(s in t)if(a=t[s],!T(a)&&!y(a)&&(r=s===n,!yf(r?e:e[s],a,f,n,r,r)))return!1;return!0}return f(e,t);case"function":return!1;default:return f(e,t)}}function bf(e){return null===e?"null":typeof e}function vf(e){var t=e.NUMBER_FORMATS;return function(e,f,n){return y(f)&&(f=t.CURRENCY_SYM),y(n)&&(n=t.PATTERNS[1].maxFrac),null==e?e:qf(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,n).replace(/\u00A4/g,f)}}function wf(e){var t=e.NUMBER_FORMATS;return function(e,f){return null==e?e:qf(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,f)}}function kf(e){var t,f,n,i,a,r=0;for(-1<(f=e.indexOf(Wi))&&(e=e.replace(Wi,"")),0<(n=e.search(/e/i))?(0>f&&(f=n),f+=+e.slice(n+1),e=e.substring(0,n)):0>f&&(f=e.length),n=0;e.charAt(n)===Xi;n++);if(n===(a=e.length))t=[0],f=1;else{for(a--;e.charAt(a)===Xi;)a--;for(f-=n,t=[],i=0;n<=a;n++,i++)t[i]=+e.charAt(n)}return f>Gi&&(t=t.splice(0,Gi-1),r=f-1,f=1),{d:t,e:r,i:f}}function xf(e,t,f,n){var i=e.d,a=i.length-e.i;if(t=y(t)?Math.min(Math.max(f,a),n):+t,f=t+e.i,n=i[f],0<f){i.splice(Math.max(e.i,f));for(var r=f;r<i.length;r++)i[r]=0}else for(a=Math.max(0,a),e.i=1,i.length=Math.max(1,f=t+1),i[0]=0,r=1;r<f;r++)i[r]=0;if(5<=n)if(0>f-1){for(n=0;n>f;n--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[f-1]++;for(;a<Math.max(0,t);a++)i.push(0);(t=i.reduceRight(function(e,t,f,n){return t+=e,n[f]=t%10,Math.floor(t/10)},0))&&(i.unshift(t),e.i++)}function qf(e,t,f,n,i){if(!k(e)&&!x(e)||isNaN(e))return"";var a=!isFinite(e),r=!1,o=Math.abs(e)+"",s="";if(a)s="∞";else{for(xf(r=kf(o),i,t.minFrac,t.maxFrac),s=r.d,o=r.i,i=r.e,a=[],r=s.reduce(function(e,t){return e&&!t},!0);0>o;)s.unshift(0),o++;for(0<o?a=s.splice(o,s.length):(a=s,s=[0]),o=[],s.length>=t.lgSize&&o.unshift(s.splice(-t.lgSize,s.length).join(""));s.length>t.gSize;)o.unshift(s.splice(-t.gSize,s.length).join(""));s.length&&o.unshift(s.join("")),s=o.join(f),a.length&&(s+=n+a.join("")),i&&(s+="e+"+i)}return 0>e&&!r?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf}function Ef(e,t,f,n){var i="";for((0>e||n&&0>=e)&&(n?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e=Xi+e;return f&&(e=e.substr(e.length-t)),i+e}function Tf(e,t,f,n,i){return f=f||0,function(a){return a=a["get"+e](),(0<f||a>-f)&&(a+=f),0===a&&-12===f&&(a=12),Ef(a,t,n,i)}}function Sf(e,t,f){return function(n,i){var a=n["get"+e]();return i[ln((f?"STANDALONE":"")+(t?"SHORT":"")+e)][a]}}function Mf(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(4>=t?5:12)-t)}function Cf(e){return function(t){var f=Mf(t.getFullYear());return t=+new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))-+f,t=1+Math.round(t/6048e5),Ef(t,e)}}function Af(e,t){return 0>=e.getFullYear()?t.ERAS[0]:t.ERAS[1]}function Of(e){function t(e){var t;if(t=e.match(f)){e=new Date(0);var n=0,i=0,a=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=l(t[9]+t[10]),i=l(t[9]+t[11])),a.call(e,l(t[1]),l(t[2])-1,l(t[3])),n=l(t[4]||0)-n,i=l(t[5]||0)-i,a=l(t[6]||0),t=Math.round(1e3*parseFloat("0."+(t[7]||0))),r.call(e,n,i,a,t)}return e}var f=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(f,n,i){var r,o,s="",d=[];if(n=n||"mediumDate",n=e.DATETIME_FORMATS[n]||n,k(f)&&(f=Ji.test(f)?l(f):t(f)),x(f)&&(f=new Date(f)),!q(f)||!isFinite(f.getTime()))return f;for(;n;)(o=Ki.exec(n))?(d=I(d,o,1),n=d.pop()):(d.push(n),n=null);var c=f.getTimezoneOffset();return i&&(c=H(i,c),f=V(f,i,!0)),a(d,function(t){r=Yi[t],s+=r?r(f,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function Rf(){return function(e,t){return y(t)&&(t=2),z(e,t)}}function Pf(){return function(e,t,f){return t=1/0===Math.abs(Number(t))?Number(t):l(t),wn(t)?e:(x(e)&&(e=e.toString()),i(e)?(f=!f||isNaN(f)?0:l(f),f=0>f?Math.max(0,e.length+f):f,0<=t?Nf(e,f,f+t):0===f?Nf(e,t,e.length):Nf(e,Math.max(0,f+t),f)):e)}}function Nf(e,t,f){return k(e)?e.slice(t,f):_n.call(e,t,f)}function Lf(e){function t(t){return t.map(function(t){var f=1,n=h;if(T(t))n=t;else if(k(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(f="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(n=e(t)).constant))var i=n(),n=function(e){return e[i]};return{get:n,descending:f}})}function f(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function a(e,t){var f=0,n=e.type;if(n===(i=t.type)){var i=e.value,a=t.value;"string"===n?(i=i.toLowerCase(),a=a.toLowerCase()):"object"===n&&(v(i)&&(i=e.index),v(a)&&(a=t.index)),i!==a&&(f=i<a?-1:1)}else f=n<i?-1:1;return f}return function(e,r,o,s){if(null==e)return e;if(!i(e))throw n("orderBy")("notarray",e);kn(r)||(r=[r]),0===r.length&&(r=["+"]);var d=t(r),c=o?-1:1,u=T(s)?s:a;return(e=Array.prototype.map.call(e,function(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:d.map(function(n){var i=n.get(e);return n=typeof i,null===i?(n="string",i="null"):"object"===n&&(T(i.valueOf)&&(i=i.valueOf(),f(i))||g(i)&&(i=i.toString(),f(i))),{value:i,type:n,index:t}})}})).sort(function(e,t){for(var f=0,n=d.length;f<n;f++){var i=u(e.predicateValues[f],t.predicateValues[f]);if(i)return i*d[f].descending*c}return(u(e.tieBreaker,t.tieBreaker)||a(e.tieBreaker,t.tieBreaker))*c}),e=e.map(function(e){return e.value})}}function jf(e){return T(e)&&(e={link:e}),e.restrict=e.restrict||"AC",p(e)}function $f(e,t,f,n,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(t.name||t.ngForm||"")(f),this.$dirty=!1,this.$valid=this.$pristine=!0,this.$submitted=this.$invalid=!1,this.$$parentForm=fa,this.$$element=e,this.$$animate=n,Df(this)}function Df(e){e.$$classCache={},e.$$classCache[$a]=!(e.$$classCache[ja]=e.$$element.hasClass(ja))}function If(e){function t(e,t,f){f&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!f&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function f(e,f,n){f=f?"-"+ne(f,"-"):"",t(e,ja+f,!0===n),t(e,$a+f,!1===n)}var n=e.set,i=e.unset;e.clazz.prototype.$setValidity=function(e,a,r){y(a)?(this.$pending||(this.$pending={}),n(this.$pending,e,r)):(this.$pending&&i(this.$pending,e,r),Uf(this.$pending)&&(this.$pending=void 0)),A(a)?a?(i(this.$error,e,r),n(this.$$success,e,r)):(n(this.$error,e,r),i(this.$$success,e,r)):(i(this.$error,e,r),i(this.$$success,e,r)),this.$pending?(t(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,f(this,"",null)):(t(this,"ng-pending",!1),this.$valid=Uf(this.$error),this.$invalid=!this.$valid,f(this,"",this.$valid)),f(this,e,a=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,a,this)}}function Uf(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function Ff(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function zf(e,t,f,n,i,a){var r=un(t[0].type);if(!i.android){var o=!1;t.on("compositionstart",function(){o=!0}),t.on("compositionend",function(){o=!1,d()})}var s,d=function(e){if(s&&(a.defer.cancel(s),s=null),!o){var i=t.val();e=e&&e.type,"password"===r||f.ngTrim&&"false"===f.ngTrim||(i=qn(i)),(n.$viewValue!==i||""===i&&n.$$hasNativeValidators)&&n.$setViewValue(i,e)}};if(i.hasEvent("input"))t.on("input",d);else{var c=function(e,t,f){s||(s=a.defer(function(){s=null,t&&t.value===f||d(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&19>t||37<=t&&40>=t||c(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",c)}t.on("change",d),ha[r]&&n.$$hasNativeValidators&&r===f.type&&t.on("keydown wheel mousedown",function(e){if(!s){var t=this.validity,f=t.badInput,n=t.typeMismatch;s=a.defer(function(){s=null,t.badInput===f&&t.typeMismatch===n||d(e)})}}),n.$render=function(){var e=n.$isEmpty(n.$viewValue)?"":n.$viewValue;t.val()!==e&&t.val(e)}}function Bf(e,t){return function(f,n){var i,r;if(q(f))return f;if(k(f)){if('"'===f.charAt(0)&&'"'===f.charAt(f.length-1)&&(f=f.substring(1,f.length-1)),ra.test(f))return new Date(f);if(e.lastIndex=0,i=e.exec(f))return i.shift(),r=n?{yyyy:n.getFullYear(),MM:n.getMonth()+1,dd:n.getDate(),HH:n.getHours(),mm:n.getMinutes(),ss:n.getSeconds(),sss:n.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},a(i,function(e,f){f<t.length&&(r[t[f]]=+e)}),new Date(r.yyyy,r.MM-1,r.dd,r.HH,r.mm,r.ss||0,1e3*r.sss||0)}return NaN}}function Hf(e,t,f,n){return function(i,a,r,o,s,d,c){function u(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function l(e){return b(e)&&!q(e)?f(e)||void 0:e}Vf(i,a,r,o),zf(i,a,r,o,s,d);var _,m=o&&o.$options.getOption("timezone");if(o.$$parserName=e,o.$parsers.push(function(e){return o.$isEmpty(e)?null:t.test(e)?(e=f(e,_),m&&(e=V(e,m)),e):void 0}),o.$formatters.push(function(e){if(e&&!q(e))throw Ua("datefmt",e);return u(e)?((_=e)&&m&&(_=V(_,m,!0)),c("date")(e,n,m)):(_=null,"")}),b(r.min)||r.ngMin){var h;o.$validators.min=function(e){return!u(e)||y(h)||f(e)>=h},r.$observe("min",function(e){h=l(e),o.$validate()})}if(b(r.max)||r.ngMax){var p;o.$validators.max=function(e){return!u(e)||y(p)||f(e)<=p},r.$observe("max",function(e){p=l(e),o.$validate()})}}}function Vf(e,t,f,n){(n.$$hasNativeValidators=v(t[0].validity))&&n.$parsers.push(function(e){var f=t.prop("validity")||{};return f.badInput||f.typeMismatch?void 0:e})}function Gf(e){e.$$parserName="number",e.$parsers.push(function(t){return e.$isEmpty(t)?null:da.test(t)?parseFloat(t):void 0}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!x(t))throw Ua("numfmt",t);t=t.toString()}return t})}function Wf(e){return b(e)&&!x(e)&&(e=parseFloat(e)),wn(e)?void 0:e}function Xf(e){var t=e.toString(),f=t.indexOf(".");return-1===f?-1<e&&1>e&&(e=/e-(\d+)$/.exec(t))?Number(e[1]):0:t.length-f-1}function Yf(e,t,f){var n=(0|(e=Number(e)))!==e,i=(0|t)!==t,a=(0|f)!==f;if(n||i||a){var r=n?Xf(e):0,o=i?Xf(t):0,s=a?Xf(f):0,r=Math.max(r,o,s);e*=r=Math.pow(10,r),t*=r,f*=r,n&&(e=Math.round(e)),i&&(t=Math.round(t)),a&&(f=Math.round(f))}return 0==(e-t)%f}function Kf(e,t,f,n,i){if(b(n)){if(!(e=e(n)).constant)throw Ua("constexpr",f,n);return e(t)}return i}function Jf(e,t){function f(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var f=[],n=0;e:for(;n<e.length;n++){for(var i=e[n],a=0;a<t.length;a++)if(i===t[a])continue e;f.push(i)}return f}function n(e){var t=e;return kn(e)?t=e.map(n).join(" "):v(e)&&(t=Object.keys(e).filter(function(t){return e[t]}).join(" ")),t}function i(e){f=e;if(kn(e))f=e.map(i);else if(v(e)){var t=!1,f=Object.keys(e).filter(function(f){return f=e[f],!t&&y(f)&&(t=!0),f});t&&f.push(void 0)}return f}e="ngClass"+e;var r;return["$parse",function(o){return{restrict:"AC",link:function(s,d,c){function u(e,t){var f=[];return a(e,function(e){(0<t||g[e])&&(g[e]=(g[e]||0)+t,g[e]===+(0<t)&&f.push(e))}),f.join(" ")}function l(e){if(y===t){var n=_&&_.split(" "),i=e&&e.split(" "),a=f(n,i),n=f(i,n),a=u(a,-1),n=u(n,1);c.$addClass(n),c.$removeClass(a)}_=e}var _,m=":"===(h=c[e].trim()).charAt(0)&&":"===h.charAt(1),h=o(h,m?i:n),p=m?function(e){(e=n(e))!==_&&l(e)}:l,g=d.data("$classCounts"),y=!0;g||(g=de(),d.data("$classCounts",g)),"ngClass"!==e&&(r||(r=o("$index",function(e){return 1&e})),s.$watch(r,function(e){if(e===t){var f=u((f=_)&&f.split(" "),1);c.$addClass(f)}else f=_,f=u(f&&f.split(" "),-1),c.$removeClass(f);y=e})),s.$watch(h,p,m)}}}]}function Qf(e,t,f,n,i,a,r,o,s){this.$modelValue=this.$viewValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=s(f.name||"",!1)(e),this.$$parentForm=fa,this.$options=Fa,this.$$parsedNgModel=i(f.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$currentValidationRunId=0,Object.defineProperty(this,"$$scope",{value:e}),this.$$attr=f,this.$$element=n,this.$$animate=a,this.$$timeout=r,this.$$parse=i,this.$$q=o,this.$$exceptionHandler=t,Df(this),Zf(this)}function Zf(e){e.$$scope.$watch(function(t){if((t=e.$$ngModelGet(t))!==e.$modelValue&&(e.$modelValue===e.$modelValue||t===t)){e.$modelValue=e.$$rawModelValue=t,e.$$parserValid=void 0;for(var f=e.$formatters,n=f.length,i=t;n--;)i=f[n](i);e.$viewValue!==i&&(e.$$updateEmptyClasses(i),e.$viewValue=e.$$lastCommittedViewValue=i,e.$render(),e.$$runValidators(e.$modelValue,e.$viewValue,m))}return t})}function en(e){this.$$options=e}function tn(e,t){a(t,function(t,f){b(e[f])||(e[f]=t)})}function fn(e,t){e.prop("selected",t),e.attr("selected",t)}var nn,an,rn,on,sn={objectMaxDepth:5},dn=/^\/(.+)\/([a-z]*)$/,cn=Object.prototype.hasOwnProperty,un=function(e){return k(e)?e.toLowerCase():e},ln=function(e){return k(e)?e.toUpperCase():e},_n=[].slice,mn=[].splice,hn=[].push,pn=Object.prototype.toString,gn=Object.getPrototypeOf,yn=n("ng"),bn=e.angular||(e.angular={}),vn=0;nn=e.document.documentMode;var wn=Number.isNaN||function(e){return e!==e};m.$inject=[],h.$inject=[];var kn=Array.isArray,xn=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,qn=function(e){return k(e)?e.trim():e},En=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Tn=function(){if(!b(Tn.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var f=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");Tn.rules={noUnsafeEval:!f||-1!==f.indexOf("no-unsafe-eval"),noInlineStyle:!f||-1!==f.indexOf("no-inline-style")}}else{t=Tn;try{new Function(""),f=!1}catch(e){f=!0}t.rules={noUnsafeEval:f,noInlineStyle:!1}}}return Tn.rules},Sn=function(){if(b(Sn.name_))return Sn.name_;var t,f,n,i,a=Cn.length;for(f=0;f<a;++f)if(n=Cn[f],t=e.document.querySelector("["+n.replace(":","\\:")+"jq]")){i=t.getAttribute(n+"jq");break}return Sn.name_=i},Mn=/:/g,Cn=["ng-","data-ng-","ng:","x-ng-"],An=function(t){var f=t.currentScript;return!f||(f instanceof e.HTMLScriptElement||f instanceof e.SVGScriptElement)&&(f=f.attributes,[f.getNamedItem("src"),f.getNamedItem("href"),f.getNamedItem("xlink:href")].every(function(e){if(!e)return!0;if(!e.value)return!1;var f=t.createElement("a");if(f.href=e.value,t.location.origin===f.origin)return!0;switch(f.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}))}(e.document),On=/[A-Z]/g,Rn=!1,Pn=3,Nn={full:"1.6.6",major:1,minor:6,dot:6,codeName:"interdimensional-cable"};ye.expando="ng339";var Ln=ye.cache={},jn=1;ye._data=function(e){return this.cache[e[this.expando]]||{}};var $n=/-([a-z])/g,Dn=/^-ms-/,In={mouseleave:"mouseout",mouseenter:"mouseover"},Un=n("jqLite"),Fn=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,zn=/<|&#?\w+;/,Bn=/<([\w:-]+)/,Hn=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Vn={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Vn.optgroup=Vn.option,Vn.tbody=Vn.tfoot=Vn.colgroup=Vn.caption=Vn.thead,Vn.th=Vn.td;var Gn=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Wn=ye.prototype={ready:Ne,toString:function(){var e=[];return a(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return an(0<=e?this[e]:this[this.length+e])},length:0,push:hn,sort:[].sort,splice:[].splice},Xn={};a("multiple selected checked disabled readOnly required open".split(" "),function(e){Xn[un(e)]=e});var Yn={};a("input select option textarea button form details".split(" "),function(e){Yn[e]=!0});var Kn={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};a({data:qe,removeData:ke,hasData:function(e){for(var t in Ln[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,f=e.length;t<f;t++)ke(e[t])}},function(e,t){ye[t]=e}),a({data:qe,inheritedData:Ae,scope:function(e){return an.data(e,"$scope")||Ae(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return an.data(e,"$isolateScope")||an.data(e,"$isolateScopeNoTemplate")},controller:Ce,injector:function(e){return Ae(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Ee,css:function(e,t,f){if(t=he(t.replace(Dn,"ms-")),!b(f))return e.style[t];e.style[t]=f},attr:function(e,t,f){if((n=e.nodeType)!==Pn&&2!==n&&8!==n&&e.getAttribute){var n=un(t),i=Xn[n];if(!b(f))return e=e.getAttribute(t),i&&null!==e&&(e=n),null===e?void 0:e;null===f||!1===f&&i?e.removeAttribute(t):e.setAttribute(t,i?n:f)}},prop:function(e,t,f){if(!b(f))return e[t];e[t]=f},text:function(){function e(e,t){if(y(t)){var f=e.nodeType;return 1===f||f===Pn?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(y(t)){if(e.multiple&&"select"===N(e)){var f=[];return a(e.options,function(e){e.selected&&f.push(e.value||e.text)}),f}return e.value}e.value=t},html:function(e,t){if(y(t))return e.innerHTML;ve(e,!0),e.innerHTML=t},empty:Oe},function(e,t){ye.prototype[t]=function(t,f){var n,i,a=this.length;if(e!==Oe&&y(2===e.length&&e!==Ee&&e!==Ce?t:f)){if(v(t)){for(n=0;n<a;n++)if(e===qe)e(this[n],t);else for(i in t)e(this[n],i,t[i]);return this}for(a=y(n=e.$dv)?Math.min(a,1):a,i=0;i<a;i++){var r=e(this[i],t,f);n=n?n+r:r}return n}for(n=0;n<a;n++)e(this[n],t,f);return this}}),a({removeData:ke,on:function(e,t,f,n){if(b(n))throw Un("onargs");if(pe(e)){var i=(n=xe(e,!0)).events,a=n.handle;a||(a=n.handle=je(e,i));for(var r=(n=0<=t.indexOf(" ")?t.split(" "):[t]).length,o=function(t,n,r){var o=i[t];o||(o=i[t]=[],o.specialHandlerWrapper=n,"$destroy"===t||r||e.addEventListener(t,a)),o.push(f)};r--;)t=n[r],In[t]?(o(In[t],De),o(t,void 0,!0)):o(t)}},off:we,one:function(e,t,f){(e=an(e)).on(t,function n(){e.off(t,f),e.off(t,n)}),e.on(t,f)},replaceWith:function(e,t){var f,n=e.parentNode;ve(e),a(new ye(t),function(t){f?n.insertBefore(t,f.nextSibling):n.replaceChild(t,e),f=t})},children:function(e){var t=[];return a(e.childNodes,function(e){1===e.nodeType&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){if(1===(f=e.nodeType)||11===f)for(var f=0,n=(t=new ye(t)).length;f<n;f++)e.appendChild(t[f])},prepend:function(e,t){if(1===e.nodeType){var f=e.firstChild;a(new ye(t),function(t){e.insertBefore(t,f)})}},wrap:function(e,t){var f=an(t).eq(0).clone()[0],n=e.parentNode;n&&n.replaceChild(f,e),f.appendChild(e)},remove:Re,detach:function(e){Re(e,!0)},after:function(e,t){var f=e,n=e.parentNode;if(n)for(var i=0,a=(t=new ye(t)).length;i<a;i++){var r=t[i];n.insertBefore(r,f.nextSibling),f=r}},addClass:Se,removeClass:Te,toggleClass:function(e,t,f){t&&a(t.split(" "),function(t){var n=f;y(n)&&(n=!Ee(e,t)),(n?Se:Te)(e,t)})},parent:function(e){return(e=e.parentNode)&&11!==e.nodeType?e:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:be,triggerHandler:function(e,t,f){var n,i,r=t.type||t,o=xe(e);(o=(o=o&&o.events)&&o[r])&&(n={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:m,type:r,target:e},t.type&&(n=c(n,t)),t=le(o),i=f?[n].concat(f):[n],a(t,function(t){n.isImmediatePropagationStopped()||t.apply(e,i)}))}},function(e,t){ye.prototype[t]=function(t,f,n){for(var i,a=0,r=this.length;a<r;a++)y(i)?(i=e(this[a],t,f,n),b(i)&&(i=an(i))):Me(i,e(this[a],t,f,n));return b(i)?i:this}}),ye.prototype.bind=ye.prototype.on,ye.prototype.unbind=ye.prototype.off;var Jn=Object.create(null);Fe.prototype={_idx:function(e){return e===this._lastKey?this._lastIndex:(this._lastKey=e,this._lastIndex=this._keys.indexOf(e))},_transformKey:function(e){return wn(e)?Jn:e},get:function(e){if(e=this._transformKey(e),-1!==(e=this._idx(e)))return this._values[e]},set:function(e,t){e=this._transformKey(e);var f=this._idx(e);-1===f&&(f=this._lastIndex=this._keys.length),this._keys[f]=e,this._values[f]=t},delete:function(e){return e=this._transformKey(e),-1!==(e=this._idx(e))&&(this._keys.splice(e,1),this._values.splice(e,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Qn=Fe,Zn=[function(){this.$get=[function(){return Qn}]}],ei=/^([^(]+?)=>/,ti=/^[^(]*\(\s*([^)]*)\)/m,fi=/,/,ni=/^\s*(_?)(\S+?)\1\s*$/,ii=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,ai=n("$injector");He.$$annotate=function(e,t,f){var n;if("function"==typeof e){if(!(n=e.$inject)){if(n=[],e.length){if(t)throw k(f)&&f||(f=e.name||Be(e)),ai("strictdi",f);a((t=ze(e))[1].split(fi),function(e){e.replace(ni,function(e,t,f){n.push(f)})})}e.$inject=n}}else kn(e)?(t=e.length-1,ae(e[t],"fn"),n=e.slice(0,t)):ae(e,"fn",!0);return n};var ri=n("$animate"),oi=function(){this.$get=m},si=function(){var e=new Qn,t=[];this.$get=["$$AnimateRunner","$rootScope",function(f,n){function i(e,t,f){var n=!1;return t&&(t=k(t)?t.split(" "):kn(t)?t:[],a(t,function(t){t&&(n=!0,e[t]=f)})),n}function r(){a(t,function(t){var f=e.get(t);if(f){var n=We(t.attr("class")),i="",r="";a(f,function(e,t){e!==!!n[t]&&(e?i+=(i.length?" ":"")+t:r+=(r.length?" ":"")+t)}),a(t,function(e){i&&Se(e,i),r&&Te(e,r)}),e.delete(t)}}),t.length=0}return{enabled:m,on:m,off:m,pin:m,push:function(a,o,s,d){return d&&d(),(s=s||{}).from&&a.css(s.from),s.to&&a.css(s.to),(s.addClass||s.removeClass)&&(o=s.addClass,d=s.removeClass,s=e.get(a)||{},o=i(s,o,!0),d=i(s,d,!1),(o||d)&&(e.set(a,s),t.push(a),1===t.length&&n.$$postDigest(r))),(a=new f).complete(),a}}}]},di=["$provide",function(e){var t=this,f=null,n=null;this.$$registeredAnimations=Object.create(null),this.register=function(f,n){if(f&&"."!==f.charAt(0))throw ri("notcsel",f);var i=f+"-animation";t.$$registeredAnimations[f.substr(1)]=i,e.factory(i,n)},this.customFilter=function(e){return 1===arguments.length&&(n=T(e)?e:null),n},this.classNameFilter=function(e){if(1===arguments.length&&(f=e instanceof RegExp?e:null)&&/[(\s|\/)]ng-animate[(\s|\/)]/.test(f.toString()))throw f=null,ri("nongcls","ng-animate");return f},this.$get=["$$animateQueue",function(e){function t(e,t,f){if(f){var n;e:{for(n=0;n<f.length;n++){var i=f[n];if(1===i.nodeType){n=i;break e}}n=void 0}!n||n.parentNode||n.previousElementSibling||(f=null)}f?f.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(f,n,i,a){return n=n&&an(n),i=i&&an(i),n=n||i.parent(),t(f,n,i),e.push(f,"enter",Xe(a))},move:function(f,n,i,a){return n=n&&an(n),i=i&&an(i),n=n||i.parent(),t(f,n,i),e.push(f,"move",Xe(a))},leave:function(t,f){return e.push(t,"leave",Xe(f),function(){t.remove()})},addClass:function(t,f,n){return n=Xe(n),n.addClass=Ge(n.addclass,f),e.push(t,"addClass",n)},removeClass:function(t,f,n){return n=Xe(n),n.removeClass=Ge(n.removeClass,f),e.push(t,"removeClass",n)},setClass:function(t,f,n,i){return i=Xe(i),i.addClass=Ge(i.addClass,f),i.removeClass=Ge(i.removeClass,n),e.push(t,"setClass",i)},animate:function(t,f,n,i,a){return a=Xe(a),a.from=a.from?c(a.from,f):f,a.to=a.to?c(a.to,n):n,a.tempClasses=Ge(a.tempClasses,i||"ng-inline-animate"),e.push(t,"animate",a)}}}]}],ci=function(){this.$get=["$$rAF",function(e){function t(t){f.push(t),1<f.length||e(function(){for(var e=0;e<f.length;e++)f[e]();f=[]})}var f=[];return function(){var e=!1;return t(function(){e=!0}),function(f){e?f():t(f)}}}]},ui=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,f,n,i){function r(e){this.setHost(e);var t=f();this._doneCallbacks=[],this._tick=function(e){n()?i(e,0,!1):t(e)},this._state=0}return r.chain=function(e,t){function f(){n===e.length?t(!0):e[n](function(e){!1===e?t(!1):(n++,f())})}var n=0;f()},r.all=function(e,t){function f(f){i=i&&f,++n===e.length&&t(i)}var n=0,i=!0;a(e,function(e){e.done(f)})},r.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:m,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,f){t.done(function(t){!1===t?f():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(a(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},r}]},li=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,f){return function(t,n){function i(){return e(function(){a.addClass&&(t.addClass(a.addClass),a.addClass=null),a.removeClass&&(t.removeClass(a.removeClass),a.removeClass=null),a.to&&(t.css(a.to),a.to=null),r||o.complete(),r=!0}),o}var a=n||{};a.$$prepared||(a=j(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(t.css(a.from),a.from=null);var r,o=new f;return{start:i,end:i}}}]},_i=n("$compile"),mi=new function(){};Ze.$inject=["$provide","$$sanitizeUriProvider"],et.prototype.isFirstChange=function(){return this.previousValue===mi};var hi=/^((?:x|data)[:\-_])/i,pi=/[:\-_]+(.)/g,gi=n("$controller"),yi=/^(\S+)(\s+as\s+([\w$]+))?$/,bi=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof an&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},vi="application/json",wi={"Content-Type":vi+";charset=utf-8"},ki=/^\[|^\{(?!\{)/,xi={"[":/]$/,"{":/}$/},qi=/^\)]\}',?\n/,Ei=n("$http"),Ti=bn.$interpolateMinErr=n("$interpolate");Ti.throwNoconcat=function(e){throw Ti("noconcat",e)},Ti.interr=function(e,t){return Ti("interr",e,t.toString())};var Si=function(){this.$get=function(){function e(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}var t=bn.callbacks,f={};return{createCallback:function(n){var i="angular.callbacks."+(n="_"+(t.$$counter++).toString(36)),a=e(n);return f[i]=t[n]=a,i},wasCalled:function(e){return f[e].called},getResponse:function(e){return f[e].data},removeCallback:function(e){delete t[f[e].id],delete f[e]}}}},Mi=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Ci={http:80,https:443,ftp:21},Ai=n("$location"),Oi=/^\s*[\\/]{2,}/,Ri={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:Rt("$$absUrl"),url:function(e){if(y(e))return this.$$url;var t=Mi.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:Rt("$$protocol"),host:Rt("$$host"),port:Rt("$$port"),path:Pt("$$path",function(e){return"/"===(e=null!==e?e.toString():"").charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(k(e)||x(e))e=e.toString(),this.$$search=X(e);else{if(!v(e))throw Ai("isrcharg");a(e=j(e,{}),function(t,f){null==t&&delete e[f]}),this.$$search=e}break;default:y(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:Pt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};a([Ot,At,Ct],function(e){e.prototype=Object.create(Ri),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==Ct||!this.$$html5)throw Ai("nostate");return this.$$state=y(t)?null:t,this.$$urlUpdatedByLocation=!0,this}});var Pi=n("$parse"),Ni={}.constructor.prototype.valueOf,Li=de();a("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){Li[e]=!0});var ji={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},$i=function(e){this.options=e};$i.prototype={constructor:$i,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;)if('"'===(e=this.text.charAt(this.index))||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var t=e+this.peek(),f=t+this.peek(2),n=Li[t],i=Li[f];Li[e]||n||i?(e=i?f:n?t:e,this.tokens.push({index:this.index,text:e,operator:!0}),this.index+=e.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){return e=e||1,this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(e){return"0"<=e&&"9">=e&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&"z">=e||"A"<=e&&"Z">=e||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var f=e.charCodeAt(0),n=t.charCodeAt(0);return 55296<=f&&56319>=f&&56320<=n&&57343>=n?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,f){throw f=f||this.index,t=b(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,f)+"]":" "+f,Pi("lexerr",e,t,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var f=un(this.text.charAt(this.index));if("."===f||this.isNumber(f))e+=f;else{var n=this.peek();if("e"===f&&this.isExpOperator(n))e+=f;else if(this.isExpOperator(f)&&n&&this.isNumber(n)&&"e"===e.charAt(e.length-1))e+=f;else{if(!this.isExpOperator(f)||n&&this.isNumber(n)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var f="",n=e,i=!1;this.index<this.text.length;){var a=this.text.charAt(this.index),n=n+a;if(i)"u"===a?((i=this.text.substring(this.index+1,this.index+5)).match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+i+"]"),this.index+=4,f+=String.fromCharCode(parseInt(i,16))):f+=ji[a]||a,i=!1;else if("\\"===a)i=!0;else{if(a===e)return this.index++,void this.tokens.push({index:t,text:n,constant:!0,value:f});f+=a}this.index++}this.throwError("Unterminated quote",t)}};var Di=function(e,t){this.lexer=e,this.options=t};Di.Program="Program",Di.ExpressionStatement="ExpressionStatement",Di.AssignmentExpression="AssignmentExpression",Di.ConditionalExpression="ConditionalExpression",Di.LogicalExpression="LogicalExpression",Di.BinaryExpression="BinaryExpression",Di.UnaryExpression="UnaryExpression",Di.CallExpression="CallExpression",Di.MemberExpression="MemberExpression",Di.Identifier="Identifier",Di.Literal="Literal",Di.ArrayExpression="ArrayExpression",Di.Property="Property",Di.ObjectExpression="ObjectExpression",Di.ThisExpression="ThisExpression",Di.LocalsExpression="LocalsExpression",Di.NGValueParameter="NGValueParameter",Di.prototype={ast:function(e){return this.text=e,this.tokens=this.lexer.lex(e),e=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var e=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:Di.Program,body:e}},expressionStatement:function(){return{type:Di.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!zt(e))throw Pi("lval");e={type:Di.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,f=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:Di.ConditionalExpression,test:f,alternate:e,consequent:t}):f},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:Di.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:Di.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:Di.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:Di.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Di.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Di.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Di.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=j(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:Di.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:Di.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Di.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Di.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){e=[e];for(var t={type:Di.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return t},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:Di.Identifier,name:e.text}},constant:function(){return{type:Di.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:Di.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Di.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:Di.ObjectExpression,properties:t}},throwError:function(e,t){throw Pi("syntax",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw Pi("ueoe",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw Pi("ueoe",this.text);return this.tokens[0]},peek:function(e,t,f,n){return this.peekAhead(0,e,t,f,n)},peekAhead:function(e,t,f,n,i){if(this.tokens.length>e){var a=(e=this.tokens[e]).text;if(a===t||a===f||a===n||a===i||!(t||f||n||i))return e}return!1},expect:function(e,t,f,n){return!!(e=this.peek(e,t,f,n))&&(this.tokens.shift(),e)},selfReferential:{this:{type:Di.ThisExpression},$locals:{type:Di.LocalsExpression}}};var Ii=2;Ht.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Ut(e,t.$filter);var f,n="";return this.stage="assign",(f=Bt(e))&&(this.state.computing="assign",n=this.nextId(),this.recurse(f,n),this.return_(n),n="fn.assign="+this.generateFunction("assign","s,v,l")),f=Ft(e.body),t.stage="inputs",a(f,function(e,f){var n="fn"+f;t.state[n]={vars:[],body:[],own:{}},t.state.computing=n;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push({name:n,isPure:e.isPure}),e.watchId=f}),this.state.computing="fn",this.stage="main",this.recurse(e),e='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+n+this.watchFns()+"return fn;",e=new Function("$filter","getStringValue","ifDefined","plus",e)(this.$filter,jt,$t,Dt),this.state=this.stage=void 0,e},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,f=this;return a(t,function(t){e.push("var "+t.name+"="+f.generateFunction(t.name,"s")),t.isPure&&e.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")}),t.length&&e.push("fn.inputs=["+t.map(function(e){return e.name}).join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return a(this.state.filters,function(f,n){e.push(f+"=$filter("+t.escape(n)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,f,n,i,r){var o,s,d,c,u,l=this;if(n=n||m,!r&&b(e.watchId))t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,f,n,i,!0));else switch(e.type){case Di.Program:a(e.body,function(t,f){l.recurse(t.expression,void 0,void 0,function(e){s=e}),f!==e.body.length-1?l.current().body.push(s,";"):l.return_(s)});break;case Di.Literal:c=this.escape(e.value),this.assign(t,c),n(t||c);break;case Di.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){s=e}),c=e.operator+"("+this.ifDefined(s,0)+")",this.assign(t,c),n(c);break;case Di.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){o=e}),this.recurse(e.right,void 0,void 0,function(e){s=e}),c="+"===e.operator?this.plus(o,s):"-"===e.operator?this.ifDefined(o,0)+e.operator+this.ifDefined(s,0):"("+o+")"+e.operator+"("+s+")",this.assign(t,c),n(c);break;case Di.LogicalExpression:t=t||this.nextId(),l.recurse(e.left,t),l.if_("&&"===e.operator?t:l.not(t),l.lazyRecurse(e.right,t)),n(t);break;case Di.ConditionalExpression:t=t||this.nextId(),l.recurse(e.test,t),l.if_(t,l.lazyRecurse(e.alternate,t),l.lazyRecurse(e.consequent,t)),n(t);break;case Di.Identifier:t=t||this.nextId(),f&&(f.context="inputs"===l.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),f.computed=!1,f.name=e.name),l.if_("inputs"===l.stage||l.not(l.getHasOwnProperty("l",e.name)),function(){l.if_("inputs"===l.stage||"s",function(){i&&1!==i&&l.if_(l.isNull(l.nonComputedMember("s",e.name)),l.lazyAssign(l.nonComputedMember("s",e.name),"{}")),l.assign(t,l.nonComputedMember("s",e.name))})},t&&l.lazyAssign(t,l.nonComputedMember("l",e.name))),n(t);break;case Di.MemberExpression:o=f&&(f.context=this.nextId())||this.nextId(),t=t||this.nextId(),l.recurse(e.object,o,void 0,function(){l.if_(l.notNull(o),function(){e.computed?(s=l.nextId(),l.recurse(e.property,s),l.getStringValue(s),i&&1!==i&&l.if_(l.not(l.computedMember(o,s)),l.lazyAssign(l.computedMember(o,s),"{}")),c=l.computedMember(o,s),l.assign(t,c),f&&(f.computed=!0,f.name=s)):(i&&1!==i&&l.if_(l.isNull(l.nonComputedMember(o,e.property.name)),l.lazyAssign(l.nonComputedMember(o,e.property.name),"{}")),c=l.nonComputedMember(o,e.property.name),l.assign(t,c),f&&(f.computed=!1,f.name=e.property.name))},function(){l.assign(t,"undefined")}),n(t)},!!i);break;case Di.CallExpression:t=t||this.nextId(),e.filter?(s=l.filter(e.callee.name),d=[],a(e.arguments,function(e){var t=l.nextId();l.recurse(e,t),d.push(t)}),c=s+"("+d.join(",")+")",l.assign(t,c),n(t)):(s=l.nextId(),o={},d=[],l.recurse(e.callee,s,o,function(){l.if_(l.notNull(s),function(){a(e.arguments,function(t){l.recurse(t,e.constant?void 0:l.nextId(),void 0,function(e){d.push(e)})}),c=o.name?l.member(o.context,o.name,o.computed)+"("+d.join(",")+")":s+"("+d.join(",")+")",l.assign(t,c)},function(){l.assign(t,"undefined")}),n(t)}));break;case Di.AssignmentExpression:s=this.nextId(),o={},this.recurse(e.left,void 0,o,function(){l.if_(l.notNull(o.context),function(){l.recurse(e.right,s),c=l.member(o.context,o.name,o.computed)+e.operator+s,l.assign(t,c),n(t||c)})},1);break;case Di.ArrayExpression:d=[],a(e.elements,function(t){l.recurse(t,e.constant?void 0:l.nextId(),void 0,function(e){d.push(e)})}),c="["+d.join(",")+"]",this.assign(t,c),n(t||c);break;case Di.ObjectExpression:d=[],u=!1,a(e.properties,function(e){e.computed&&(u=!0)}),u?(t=t||this.nextId(),this.assign(t,"{}"),a(e.properties,function(e){e.computed?(o=l.nextId(),l.recurse(e.key,o)):o=e.key.type===Di.Identifier?e.key.name:""+e.key.value,s=l.nextId(),l.recurse(e.value,s),l.assign(l.member(t,o,e.computed),s)})):(a(e.properties,function(t){l.recurse(t.value,e.constant?void 0:l.nextId(),void 0,function(e){d.push(l.escape(t.key.type===Di.Identifier?t.key.name:""+t.key.value)+":"+e)})}),c="{"+d.join(",")+"}",this.assign(t,c)),n(t||c);break;case Di.ThisExpression:this.assign(t,"s"),n(t||"s");break;case Di.LocalsExpression:this.assign(t,"l"),n(t||"l");break;case Di.NGValueParameter:this.assign(t,"v"),n(t||"v")}},getHasOwnProperty:function(e,t){var f=e+"."+t,n=this.current().own;return n.hasOwnProperty(f)||(n[f]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),n[f]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,f){if(!0===e)t();else{var n=this.current().body;n.push("if(",e,"){"),t(),n.push("}"),f&&(n.push("else{"),f(),n.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var f=/[^$_a-zA-Z0-9]/g;return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(f,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,f){return f?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,f,n,i,a){var r=this;return function(){r.recurse(e,t,f,n,i,a)}},lazyAssign:function(e,t){var f=this;return function(){f.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(k(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw Pi("esc")},nextId:function(e,t){var f="v"+this.state.nextId++;return e||this.current().vars.push(f+(t?"="+t:"")),f},current:function(){return this.state[this.state.computing]}},Vt.prototype={compile:function(e){var t=this;Ut(e,t.$filter);var f,n;(f=Bt(e))&&(n=this.recurse(f));var i;(f=Ft(e.body))&&(i=[],a(f,function(e,f){var n=t.recurse(e);n.isPure=e.isPure,e.input=n,i.push(n),e.watchId=f}));var r=[];return a(e.body,function(e){r.push(t.recurse(e.expression))}),e=0===e.body.length?m:1===e.body.length?r[0]:function(e,t){var f;return a(r,function(n){f=n(e,t)}),f},n&&(e.assign=function(e,t,f){return n(e,f,t)}),i&&(e.inputs=i),e},recurse:function(e,t,f){var n,i,r,o=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case Di.Literal:return this.value(e.value,t);case Di.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case Di.BinaryExpression:case Di.LogicalExpression:return n=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](n,i,t);case Di.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case Di.Identifier:return o.identifier(e.name,t,f);case Di.MemberExpression:return n=this.recurse(e.object,!1,!!f),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(n,i,t,f):this.nonComputedMember(n,i,t,f);case Di.CallExpression:return r=[],a(e.arguments,function(e){r.push(o.recurse(e))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,f,n,a){for(var o=[],s=0;s<r.length;++s)o.push(r[s](e,f,n,a));return e=i.apply(void 0,o,a),t?{context:void 0,name:void 0,value:e}:e}:function(e,f,n,a){var o,s=i(e,f,n,a);if(null!=s.value){o=[];for(var d=0;d<r.length;++d)o.push(r[d](e,f,n,a));o=s.value.apply(s.context,o)}return t?{value:o}:o};case Di.AssignmentExpression:return n=this.recurse(e.left,!0,1),i=this.recurse(e.right),function(e,f,a,r){var o=n(e,f,a,r);return e=i(e,f,a,r),o.context[o.name]=e,t?{value:e}:e};case Di.ArrayExpression:return r=[],a(e.elements,function(e){r.push(o.recurse(e))}),function(e,f,n,i){for(var a=[],o=0;o<r.length;++o)a.push(r[o](e,f,n,i));return t?{value:a}:a};case Di.ObjectExpression:return r=[],a(e.properties,function(e){e.computed?r.push({key:o.recurse(e.key),computed:!0,value:o.recurse(e.value)}):r.push({key:e.key.type===Di.Identifier?e.key.name:""+e.key.value,computed:!1,value:o.recurse(e.value)})}),function(e,f,n,i){for(var a={},o=0;o<r.length;++o)r[o].computed?a[r[o].key(e,f,n,i)]=r[o].value(e,f,n,i):a[r[o].key]=r[o].value(e,f,n,i);return t?{value:a}:a};case Di.ThisExpression:return function(e){return t?{value:e}:e};case Di.LocalsExpression:return function(e,f){return t?{value:f}:f};case Di.NGValueParameter:return function(e,f,n){return t?{value:n}:n}}},"unary+":function(e,t){return function(f,n,i,a){return f=e(f,n,i,a),f=b(f)?+f:0,t?{value:f}:f}},"unary-":function(e,t){return function(f,n,i,a){return f=e(f,n,i,a),f=b(f)?-f:-0,t?{value:f}:f}},"unary!":function(e,t){return function(f,n,i,a){return f=!e(f,n,i,a),t?{value:f}:f}},"binary+":function(e,t,f){return function(n,i,a,r){var o=e(n,i,a,r);return n=t(n,i,a,r),o=Dt(o,n),f?{value:o}:o}},"binary-":function(e,t,f){return function(n,i,a,r){var o=e(n,i,a,r);return n=t(n,i,a,r),o=(b(o)?o:0)-(b(n)?n:0),f?{value:o}:o}},"binary*":function(e,t,f){return function(n,i,a,r){return n=e(n,i,a,r)*t(n,i,a,r),f?{value:n}:n}},"binary/":function(e,t,f){return function(n,i,a,r){return n=e(n,i,a,r)/t(n,i,a,r),f?{value:n}:n}},"binary%":function(e,t,f){return function(n,i,a,r){return n=e(n,i,a,r)%t(n,i,a,r),f?{value:n}:n}},"binary===":function(e,t,f){return function(n,i,a,r){return n=e(n,i,a,r)===t(n,i,a,r),f?{value:n}:n}},"binary!==":function(e,t,f){return function(n,i,a,r){return n=e(n,i,a,r)!==t(n,i,a,r),f?{value:n}:n}},"binary==":function(e,t,f){return function(n,i,a,r){return n=e(n,i,a,r)==t(n,i,a,r),f?{value:n}:n}},"binary!=":function(e,t,f){return function(n,i,a,r){return n=e(n,i,a,r)!=t(n,i,a,r),f?{value:n}:n}},"binary<":function(e,t,f){return function(n,i,a,r){return n=e(n,i,a,r)<t(n,i,a,r),f?{value:n}:n}},"binary>":function(e,t,f){return function(n,i,a,r){return n=e(n,i,a,r)>t(n,i,a,r),f?{value:n}:n}},"binary<=":function(e,t,f){return function(n,i,a,r){return n=e(n,i,a,r)<=t(n,i,a,r),f?{value:n}:n}},"binary>=":function(e,t,f){return function(n,i,a,r){return n=e(n,i,a,r)>=t(n,i,a,r),f?{value:n}:n}},"binary&&":function(e,t,f){return function(n,i,a,r){return n=e(n,i,a,r)&&t(n,i,a,r),f?{value:n}:n}},"binary||":function(e,t,f){return function(n,i,a,r){return n=e(n,i,a,r)||t(n,i,a,r),f?{value:n}:n}},"ternary?:":function(e,t,f,n){return function(i,a,r,o){return i=e(i,a,r,o)?t(i,a,r,o):f(i,a,r,o),n?{value:i}:i}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,f){return function(n,i,a,r){return n=i&&e in i?i:n,f&&1!==f&&n&&null==n[e]&&(n[e]={}),i=n?n[e]:void 0,t?{context:n,name:e,value:i}:i}},computedMember:function(e,t,f,n){return function(i,a,r,o){var s,d,c=e(i,a,r,o);return null!=c&&(s=t(i,a,r,o),s+="",n&&1!==n&&c&&!c[s]&&(c[s]={}),d=c[s]),f?{context:c,name:s,value:d}:d}},nonComputedMember:function(e,t,f,n){return function(i,a,r,o){return i=e(i,a,r,o),n&&1!==n&&i&&null==i[t]&&(i[t]={}),a=null!=i?i[t]:void 0,f?{context:i,name:t,value:a}:a}},inputs:function(e,t){return function(f,n,i,a){return a?a[t]:e(f,n,i)}}},Gt.prototype={constructor:Gt,parse:function(e){e=this.ast.ast(e);var t=this.astCompiler.compile(e);return t.literal=0===e.body.length||1===e.body.length&&(e.body[0].expression.type===Di.Literal||e.body[0].expression.type===Di.ArrayExpression||e.body[0].expression.type===Di.ObjectExpression),t.constant=e.constant,t}};var Ui=n("$sce"),Fi={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},zi=/_([a-z])/g,Bi=n("$compile"),Hi=e.document.createElement("a"),Vi=cf(e.location.href);_f.$inject=["$document"],hf.$inject=["$provide"];var Gi=22,Wi=".",Xi="0";vf.$inject=["$locale"],wf.$inject=["$locale"];var Yi={yyyy:Tf("FullYear",4,0,!1,!0),yy:Tf("FullYear",2,0,!0,!0),y:Tf("FullYear",1,0,!1,!0),MMMM:Sf("Month"),MMM:Sf("Month",!0),MM:Tf("Month",2,1),M:Tf("Month",1,1),LLLL:Sf("Month",!1,!0),dd:Tf("Date",2),d:Tf("Date",1),HH:Tf("Hours",2),H:Tf("Hours",1),hh:Tf("Hours",2,-12),h:Tf("Hours",1,-12),mm:Tf("Minutes",2),m:Tf("Minutes",1),ss:Tf("Seconds",2),s:Tf("Seconds",1),sss:Tf("Milliseconds",3),EEEE:Sf("Day"),EEE:Sf("Day",!0),a:function(e,t){return 12>e.getHours()?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,f){return e=-1*f,e=(0<=e?"+":"")+(Ef(Math[0<e?"floor":"ceil"](e/60),2)+Ef(Math.abs(e%60),2))},ww:Cf(2),w:Cf(1),G:Af,GG:Af,GGG:Af,GGGG:function(e,t){return 0>=e.getFullYear()?t.ERANAMES[0]:t.ERANAMES[1]}},Ki=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Ji=/^-?\d+$/;Of.$inject=["$locale"];var Qi=p(un),Zi=p(ln);Lf.$inject=["$parse"];var ea=p({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var f="[object SVGAnimatedString]"===pn.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(f)||e.preventDefault()})}}}}),ta={};a(Xn,function(e,t){function f(e,f,i){e.$watch(i[n],function(e){i.$set(t,!!e)})}if("multiple"!==e){var n=tt("ng-"+t),i=f;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[n]&&f(e,0,i)}),ta[n]=function(){return{restrict:"A",priority:100,link:i}}}}),a(Kn,function(e,t){ta[t]=function(){return{priority:100,link:function(e,f,n){"ngPattern"===t&&"/"===n.ngPattern.charAt(0)&&(f=n.ngPattern.match(dn))?n.$set("ngPattern",new RegExp(f[1],f[2])):e.$watch(n[t],function(e){n.$set(t,e)})}}}}),a(["src","srcset","href"],function(e){var t=tt("ng-"+e);ta[t]=function(){return{priority:99,link:function(f,n,i){var a=e,r=e;"href"===e&&"[object SVGAnimatedString]"===pn.call(n.prop("href"))&&(r="xlinkHref",i.$attr[r]="xlink:href",a=null),i.$observe(t,function(t){t?(i.$set(r,t),nn&&a&&n.prop(a,i[r])):"href"===e&&i.$set(r,null)})}}}});var fa={$addControl:m,$$renameControl:function(e,t){e.$name=t},$removeControl:m,$setValidity:m,$setDirty:m,$setPristine:m,$setSubmitted:m};$f.$inject=["$element","$attrs","$scope","$animate","$interpolate"],$f.prototype={$rollbackViewValue:function(){a(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){a(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){re(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$$renameControl:function(e,t){var f=e.$name;this[f]===e&&delete this[f],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],a(this.$pending,function(t,f){this.$setValidity(f,null,e)},this),a(this.$error,function(t,f){this.$setValidity(f,null,e)},this),a(this.$$success,function(t,f){this.$setValidity(f,null,e)},this),L(this.$$controls,e),e.$$parentForm=fa},$setDirty:function(){this.$$animate.removeClass(this.$$element,Da),this.$$animate.addClass(this.$$element,Ia),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Da,Ia+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,a(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){a(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,this.$$parentForm.$setSubmitted()}},If({clazz:$f,set:function(e,t,f){var n=e[t];n?-1===n.indexOf(f)&&n.push(f):e[t]=[f]},unset:function(e,t,f){var n=e[t];n&&(L(n,f),0===n.length&&delete e[t])}});var na=function(e){return["$timeout","$parse",function(t,f){function n(e){return""===e?f('this[""]').assign:f(e).assign||m}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:$f,compile:function(f,i){f.addClass(Da).addClass(ja);var a=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,f,i,r){var o=r[0];if(!("action"in i)){var s=function(t){e.$apply(function(){o.$commitViewValue(),o.$setSubmitted()}),t.preventDefault()};f[0].addEventListener("submit",s),f.on("$destroy",function(){t(function(){f[0].removeEventListener("submit",s)},0,!1)})}(r[1]||o.$$parentForm).$addControl(o);var d=a?n(o.$name):m;a&&(d(e,o),i.$observe(a,function(t){o.$name!==t&&(d(e,void 0),o.$$parentForm.$$renameControl(o,t),(d=n(o.$name))(e,o))})),f.on("$destroy",function(){o.$$parentForm.$removeControl(o),d(e,void 0),c(o,fa)})}}}}}]},ia=na(),aa=na(!0),ra=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,oa=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,sa=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,da=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,ca=/^(\d{4,})-(\d{2})-(\d{2})$/,ua=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,la=/^(\d{4,})-W(\d\d)$/,_a=/^(\d{4,})-(\d\d)$/,ma=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ha=de();a(["date","datetime-local","month","time","week"],function(e){ha[e]=!0});var pa={text:function(e,t,f,n,i,a){zf(e,t,f,n,i,a),Ff(n)},date:Hf("date",ca,Bf(ca,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Hf("datetimelocal",ua,Bf(ua,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:Hf("time",ma,Bf(ma,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Hf("week",la,function(e,t){if(q(e))return e;if(k(e)){la.lastIndex=0;var f=la.exec(e);if(f){var n=+f[1],i=+f[2],a=f=0,r=0,o=0,s=Mf(n),i=7*(i-1);return t&&(f=t.getHours(),a=t.getMinutes(),r=t.getSeconds(),o=t.getMilliseconds()),new Date(n,0,s.getDate()+i,f,a,r,o)}}return NaN},"yyyy-Www"),month:Hf("month",_a,Bf(_a,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,f,n,i,a){Vf(0,t,0,n),Gf(n),zf(e,t,f,n,i,a);var r,o;if((b(f.min)||f.ngMin)&&(n.$validators.min=function(e){return n.$isEmpty(e)||y(r)||e>=r},f.$observe("min",function(e){r=Wf(e),n.$validate()})),(b(f.max)||f.ngMax)&&(n.$validators.max=function(e){return n.$isEmpty(e)||y(o)||e<=o},f.$observe("max",function(e){o=Wf(e),n.$validate()})),b(f.step)||f.ngStep){var s;n.$validators.step=function(e,t){return n.$isEmpty(t)||y(s)||Yf(t,r||0,s)},f.$observe("step",function(e){s=Wf(e),n.$validate()})}},url:function(e,t,f,n,i,a){zf(e,t,f,n,i,a),Ff(n),n.$$parserName="url",n.$validators.url=function(e,t){var f=e||t;return n.$isEmpty(f)||oa.test(f)}},email:function(e,t,f,n,i,a){zf(e,t,f,n,i,a),Ff(n),n.$$parserName="email",n.$validators.email=function(e,t){var f=e||t;return n.$isEmpty(f)||sa.test(f)}},radio:function(e,t,f,n){var i=!f.ngTrim||"false"!==qn(f.ngTrim);y(f.name)&&t.attr("name",++vn),t.on("click",function(e){var a;t[0].checked&&(a=f.value,i&&(a=qn(a)),n.$setViewValue(a,e&&e.type))}),n.$render=function(){var e=f.value;i&&(e=qn(e)),t[0].checked=e===n.$viewValue},f.$observe("value",n.$render)},range:function(e,t,f,n,i,a){function r(e,n){t.attr(e,f[e]),f.$observe(e,n)}Vf(0,t,0,n),Gf(n),zf(e,t,f,n,i,a);var o=n.$$hasNativeValidators&&"range"===t[0].type,s=o?0:void 0,d=o?100:void 0,c=o?1:void 0,u=t[0].validity;e=b(f.min),i=b(f.max),a=b(f.step);var l=n.$render;n.$render=o&&b(u.rangeUnderflow)&&b(u.rangeOverflow)?function(){l(),n.$setViewValue(t.val())}:l,e&&(n.$validators.min=o?function(){return!0}:function(e,t){return n.$isEmpty(t)||y(s)||t>=s},r("min",function(e){s=Wf(e),wn(n.$modelValue)||(o?(e=t.val(),s>e&&(e=s,t.val(e)),n.$setViewValue(e)):n.$validate())})),i&&(n.$validators.max=o?function(){return!0}:function(e,t){return n.$isEmpty(t)||y(d)||t<=d},r("max",function(e){d=Wf(e),wn(n.$modelValue)||(o?(e=t.val(),d<e&&(t.val(d),e=d<s?s:d),n.$setViewValue(e)):n.$validate())})),a&&(n.$validators.step=o?function(){return!u.stepMismatch}:function(e,t){return n.$isEmpty(t)||y(c)||Yf(t,s||0,c)},r("step",function(e){c=Wf(e),wn(n.$modelValue)||(o&&n.$viewValue!==t.val()?n.$setViewValue(t.val()):n.$validate())}))},checkbox:function(e,t,f,n,i,a,r,o){var s=Kf(o,e,"ngTrueValue",f.ngTrueValue,!0),d=Kf(o,e,"ngFalseValue",f.ngFalseValue,!1);t.on("click",function(e){n.$setViewValue(t[0].checked,e&&e.type)}),n.$render=function(){t[0].checked=n.$viewValue},n.$isEmpty=function(e){return!1===e},n.$formatters.push(function(e){return D(e,s)}),n.$parsers.push(function(e){return e?s:d})},hidden:m,button:m,submit:m,reset:m,file:m},ga=["$browser","$sniffer","$filter","$parse",function(e,t,f,n){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,a,r,o){o[0]&&(pa[un(r.type)]||pa.text)(i,a,r,o[0],t,e,f,n)}}}}],ya=/^(true|false|\d+)$/,ba=function(){function e(e,t,f){var n=b(f)?f:9===nn?"":null;e.prop("value",n),t.$set("value",f)}return{restrict:"A",priority:100,compile:function(t,f){return ya.test(f.ngValue)?function(t,f,n){e(f,n,t=t.$eval(n.ngValue))}:function(t,f,n){t.$watch(n.ngValue,function(t){e(f,n,t)})}}}},va=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,f,n){e.$$addBindingInfo(f,n.ngBind),f=f[0],t.$watch(n.ngBind,function(e){f.textContent=ce(e)})}}}}],wa=["$interpolate","$compile",function(e,t){return{compile:function(f){return t.$$addBindingClass(f),function(f,n,i){f=e(n.attr(i.$attr.ngBindTemplate)),t.$$addBindingInfo(n,f.expressions),n=n[0],i.$observe("ngBindTemplate",function(e){n.textContent=y(e)?"":e})}}}}],ka=["$sce","$parse","$compile",function(e,t,f){return{restrict:"A",compile:function(n,i){var a=t(i.ngBindHtml),r=t(i.ngBindHtml,function(t){return e.valueOf(t)});return f.$$addBindingClass(n),function(t,n,i){f.$$addBindingInfo(n,i.ngBindHtml),t.$watch(r,function(){var f=a(t);n.html(e.getTrustedHtml(f)||"")})}}}}],xa=p({restrict:"A",require:"ngModel",link:function(e,t,f,n){n.$viewChangeListeners.push(function(){e.$eval(f.ngChange)})}}),qa=Jf("",!0),Ea=Jf("Odd",0),Ta=Jf("Even",1),Sa=jf({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Ma=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Ca={},Aa={blur:!0,focus:!0};a("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=tt("ng-"+e);Ca[t]=["$parse","$rootScope",function(f,n){return{restrict:"A",compile:function(i,a){var r=f(a[t]);return function(t,f){f.on(e,function(f){var i=function(){r(t,{$event:f})};Aa[e]&&n.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var Oa=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(f,n,i,a,r){var o,s,d;f.$watch(i.ngIf,function(f){f?s||r(function(f,a){s=a,f[f.length++]=t.$$createComment("end ngIf",i.ngIf),o={clone:f},e.enter(f,n.parent(),n)}):(d&&(d.remove(),d=null),s&&(s.$destroy(),s=null),o&&(d=se(o.clone),e.leave(d).done(function(e){!1!==e&&(d=null)}),o=null))})}}}],Ra=["$templateRequest","$anchorScroll","$animate",function(e,t,f){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:bn.noop,compile:function(n,i){var a=i.ngInclude||i.src,r=i.onload||"",o=i.autoscroll;return function(n,i,s,d,c){var u,l,_,m=0,h=function(){l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),_&&(f.leave(_).done(function(e){!1!==e&&(l=null)}),l=_,_=null)};n.$watch(a,function(a){var s=function(e){!1===e||!b(o)||o&&!n.$eval(o)||t()},l=++m;a?(e(a,!0).then(function(e){if(!n.$$destroyed&&l===m){var t=n.$new();d.template=e,e=c(t,function(e){h(),f.enter(e,null,i).done(s)}),_=e,(u=t).$emit("$includeContentLoaded",a),n.$eval(r)}},function(){n.$$destroyed||l!==m||(h(),n.$emit("$includeContentError",a))}),n.$emit("$includeContentRequested",a)):(h(),d.template=null)})}}}}],Pa=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(f,n,i,a){pn.call(n[0]).match(/SVG/)?(n.empty(),t(ge(a.template,e.document).childNodes)(f,function(e){n.append(e)},{futureParentElement:n})):(n.html(a.template),t(n.contents())(f))}}}],Na=jf({priority:450,compile:function(){return{pre:function(e,t,f){e.$eval(f.ngInit)}}}}),La=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,f,n){var i=f.ngList||", ",r="false"!==f.ngTrim,o=r?qn(i):i;n.$parsers.push(function(e){if(!y(e)){var t=[];return e&&a(e.split(o),function(e){e&&t.push(r?qn(e):e)}),t}}),n.$formatters.push(function(e){if(kn(e))return e.join(i)}),n.$isEmpty=function(e){return!e||!e.length}}}},ja="ng-valid",$a="ng-invalid",Da="ng-pristine",Ia="ng-dirty",Ua=n("ngModel");Qf.$inject="$scope $exceptionHandler $attrs $element $parse $animate $timeout $q $interpolate".split(" "),Qf.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var f=this.$$parsedNgModel(t);return T(f)&&(f=e(t)),f},this.$$ngModelSet=function(e,f){T(this.$$parsedNgModel(e))?t(e,{$$$p:f}):this.$$parsedNgModelAssign(e,f)}}else if(!this.$$parsedNgModel.assign)throw Ua("nonassign",this.$$attr.ngModel,G(this.$$element))},$render:m,$isEmpty:function(e){return y(e)||""===e||null===e||e!==e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Ia),this.$$animate.addClass(this.$$element,Da)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Da),this.$$animate.addClass(this.$$element,Ia),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!wn(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,f=this.$valid,n=this.$modelValue,i=this.$options.getOption("allowInvalid"),a=this;this.$$runValidators(t,e,function(e){i||f===e||(a.$modelValue=e?t:void 0,a.$modelValue!==n&&a.$$writeModelToScope())})}},$$runValidators:function(e,t,f){function n(e,t){r===o.$$currentValidationRunId&&o.$setValidity(e,t)}function i(e){r===o.$$currentValidationRunId&&f(e)}var r=++this.$$currentValidationRunId,o=this;!function(){var e=o.$$parserName||"parse";return y(o.$$parserValid)?(n(e,null),!0):(o.$$parserValid||(a(o.$validators,function(e,t){n(t,null)}),a(o.$asyncValidators,function(e,t){n(t,null)})),n(e,o.$$parserValid),o.$$parserValid)}()?i(!1):function(){var f=!0;return a(o.$validators,function(i,a){var r=Boolean(i(e,t));f=f&&r,n(a,r)}),!!f||(a(o.$asyncValidators,function(e,t){n(t,null)}),!1)}()?function(){var f=[],r=!0;a(o.$asyncValidators,function(i,a){var o=i(e,t);if(!o||!T(o.then))throw Ua("nopromise",o);n(a,void 0),f.push(o.then(function(){n(a,!0)},function(){r=!1,n(a,!1)}))}),f.length?o.$$q.all(f).then(function(){i(r)},m):i(!0)}():i(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var e=this.$$lastCommittedViewValue,t=this;if(this.$$parserValid=!y(e)||void 0)for(var f=0;f<this.$parsers.length;f++)if(e=this.$parsers[f](e),y(e)){this.$$parserValid=!1;break}wn(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var n=this.$modelValue,i=this.$options.getOption("allowInvalid");this.$$rawModelValue=e,i&&(this.$modelValue=e,t.$modelValue!==n&&t.$$writeModelToScope()),this.$$runValidators(e,this.$$lastCommittedViewValue,function(f){i||(t.$modelValue=f?e:void 0,t.$modelValue!==n&&t.$$writeModelToScope())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),a(this.$viewChangeListeners,function(e){try{e()}catch(e){this.$$exceptionHandler(e)}},this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");x(t[e])?t=t[e]:x(t.default)&&(t=t.default),this.$$timeout.cancel(this.$$pendingDebounce);var f=this;0<t?this.$$pendingDebounce=this.$$timeout(function(){f.$commitViewValue()},t):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){f.$commitViewValue()})},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e)}},If({clazz:Qf,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var Fa,za=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Qf,priority:1,compile:function(t){return t.addClass(Da).addClass("ng-untouched").addClass(ja),{pre:function(e,t,f,n){var i=n[0];t=n[1]||i.$$parentForm,(n=n[2])&&(i.$options=n.$options),i.$$initGetterSetters(),t.$addControl(i),f.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,f,n,i){function a(){r.$setTouched()}var r=i[0];r.$options.getOption("updateOn")&&f.on(r.$options.getOption("updateOn"),function(e){r.$$debounceViewValueCommit(e&&e.type)}),f.on("blur",function(){r.$touched||(e.$$phase?t.$evalAsync(a):t.$apply(a))})}}}}}],Ba=/(\s+|^)default(\s+|$)/;en.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return e=c({},e),a(e,function(f,n){"$inherit"===f?"*"===n?t=!0:(e[n]=this.$$options[n],"updateOn"===n&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===n&&(e.updateOnDefault=!1,e[n]=qn(f.replace(Ba,function(){return e.updateOnDefault=!0," "})))},this),t&&(delete e["*"],tn(e,this.$$options)),tn(e,Fa.$$options),new en(e)}},Fa=new en({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var Ha=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:Fa,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}},Va=jf({terminal:!0,priority:1e3}),Ga=n("ngOptions"),Wa=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Xa=["$compile","$document","$parse",function(t,f,n){function r(e,t,f){function a(e,t,f,n,i){this.selectValue=e,this.viewValue=t,this.label=f,this.group=n,this.disabled=i}function r(e){var t;if(!d&&i(e))t=e;else{t=[];for(var f in e)e.hasOwnProperty(f)&&"$"!==f.charAt(0)&&t.push(f)}return t}var o=e.match(Wa);if(!o)throw Ga("iexp",e,G(t));var s=o[5]||o[7],d=o[6];e=/ as /.test(o[0])&&o[1];var c=o[9];t=n(o[2]?o[1]:s);var u=e&&n(e)||t,l=c&&n(c),_=c?function(e,t){return l(f,t)}:function(e){return Ue(e)},m=function(e,t){return _(e,v(e,t))},h=n(o[2]||o[1]),p=n(o[3]||""),g=n(o[4]||""),y=n(o[8]),b={},v=d?function(e,t){return b[d]=t,b[s]=e,b}:function(e){return b[s]=e,b};return{trackBy:c,getTrackByValue:m,getWatchables:n(y,function(e){for(var t=[],n=r(e=e||[]),i=n.length,a=0;a<i;a++){var s=e[d=e===n?a:n[a]],d=v(s,d),s=_(s,d);t.push(s),(o[2]||o[1])&&(s=h(f,d),t.push(s)),o[4]&&(d=g(f,d),t.push(d))}return t}),getOptions:function(){for(var e=[],t={},n=y(f)||[],i=r(n),o=i.length,s=0;s<o;s++){var d=n===i?s:i[s],l=v(n[d],d),b=u(f,l),b=new a(d=_(b,l),b,h(f,l),p(f,l),l=g(f,l));e.push(b),t[d]=b}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[m(e)]},getViewValueFromOption:function(e){return c?j(e.viewValue):e.viewValue}}}}}var o=e.document.createElement("option"),s=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,f,n){n[0].registerOption=m},post:function(e,n,i,d){function c(e){var t=(e=g.getOptionFromViewValue(e))&&e.element;return t&&!t.selected&&(t.selected=!0),e}function u(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),t.value=e.selectValue}var l=d[0],_=d[1],m=i.multiple;d=0;for(var h=n.children(),p=h.length;d<p;d++)if(""===h[d].value){l.hasEmptyOption=!0,l.emptyOption=h.eq(d);break}n.empty(),d=!!l.emptyOption,an(o.cloneNode(!1)).val("?");var g,y=r(i.ngOptions,n,e),v=f[0].createDocumentFragment();l.generateUnknownOptionValue=function(e){return"?"},m?(l.writeValue=function(e){if(g){var t=e&&e.map(c)||[];g.items.forEach(function(e){e.element.selected&&-1===Array.prototype.indexOf.call(t,e)&&(e.element.selected=!1)})}},l.readValue=function(){var e=[];return a(n.val()||[],function(t){(t=g.selectValueMap[t])&&!t.disabled&&e.push(g.getViewValueFromOption(t))}),e},y.trackBy&&e.$watchCollection(function(){if(kn(_.$viewValue))return _.$viewValue.map(function(e){return y.getTrackByValue(e)})},function(){_.$render()})):(l.writeValue=function(e){if(g){var t=n[0].options[n[0].selectedIndex],f=g.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),f?(n[0].value!==f.selectValue&&(l.removeUnknownOption(),n[0].value=f.selectValue,f.element.selected=!0),f.element.setAttribute("selected","selected")):l.selectUnknownOrEmptyOption(e)}},l.readValue=function(){var e=g.selectValueMap[n.val()];return e&&!e.disabled?(l.unselectEmptyOption(),l.removeUnknownOption(),g.getViewValueFromOption(e)):null},y.trackBy&&e.$watch(function(){return y.getTrackByValue(_.$viewValue)},function(){_.$render()})),d&&(t(l.emptyOption)(e),n.prepend(l.emptyOption),8===l.emptyOption[0].nodeType?(l.hasEmptyOption=!1,l.registerOption=function(e,t){""===t.val()&&(l.hasEmptyOption=!0,l.emptyOption=t,l.emptyOption.removeClass("ng-scope"),_.$render(),t.on("$destroy",function(){var e=l.$isEmptyOptionSelected();l.hasEmptyOption=!1,l.emptyOption=void 0,e&&_.$render()}))}):l.emptyOption.removeClass("ng-scope")),e.$watchCollection(y.getWatchables,function(){var e=g&&l.readValue();if(g)for(var t=g.items.length-1;0<=t;t--){var f=g.items[t];Re(b(f.group)?f.element.parentNode:f.element)}var i={};(g=y.getOptions()).items.forEach(function(e){var t;if(b(e.group)){(t=i[e.group])||(t=s.cloneNode(!1),v.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t);var f=o.cloneNode(!1);t.appendChild(f),u(e,f)}else t=o.cloneNode(!1),v.appendChild(t),u(e,t)}),n[0].appendChild(v),_.$render(),_.$isEmpty(e)||(t=l.readValue(),(y.trackBy||m?D(e,t):e===t)||(_.$setViewValue(t),_.$render()))})}}}}],Ya=["$locale","$interpolate","$log",function(e,t,f){var n=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(r,o,s){function d(e){o.text(e||"")}var c,u=s.count,l=s.$attr.when&&o.attr(s.$attr.when),_=s.offset||0,h=r.$eval(l)||{},p={},g=t.startSymbol(),b=t.endSymbol(),v=g+u+"-"+_+b,w=bn.noop;a(s,function(e,t){var f=i.exec(t);f&&(f=(f[1]?"-":"")+un(f[2]),h[f]=o.attr(s.$attr[t]))}),a(h,function(e,f){p[f]=t(e.replace(n,v))}),r.$watch(u,function(t){var n=parseFloat(t),i=wn(n);i||n in h||(n=e.pluralCat(n-_)),n===c||i&&wn(c)||(w(),i=p[n],y(i)?(null!=t&&f.debug("ngPluralize: no rule defined for '"+n+"' in "+l),w=m,d()):w=r.$watch(i,d),c=n)})}}}],Ka=["$parse","$animate","$compile",function(e,t,f){var r=n("ngRepeat"),o=function(e,t,f,n,i,a,r){e[f]=n,i&&(e[i]=a),e.$index=t,e.$first=0===t,e.$last=t===r-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(n,s){var d=s.ngRepeat,c=f.$$createComment("end ngRepeat",d),u=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!u)throw r("iexp",d);var l=u[1],_=u[2],m=u[3],h=u[4];if(!(u=l.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw r("iidexp",l);var p=u[3]||u[1],g=u[2];if(m&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(m)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(m)))throw r("badident",m);var y,b,v,w,k={$id:Ue};return h?y=e(h):(v=function(e,t){return Ue(t)},w=function(e){return e}),function(e,f,n,s,u){y&&(b=function(t,f,n){return g&&(k[g]=t),k[p]=f,k.$index=n,y(e,k)});var l=de();e.$watchCollection(_,function(n){var s,_,h,y,k,x,q,E,T,S,M=f[0],C=de();if(m&&(e[m]=n),i(n))E=n,_=b||v;else for(S in _=b||w,E=[],n)cn.call(n,S)&&"$"!==S.charAt(0)&&E.push(S);for(y=E.length,S=Array(y),s=0;s<y;s++)if(k=n===E?s:E[s],x=n[k],q=_(k,x,s),l[q])T=l[q],delete l[q],C[q]=T,S[s]=T;else{if(C[q])throw a(S,function(e){e&&e.scope&&(l[e.id]=e)}),r("dupes",d,q,x);S[s]={id:q,scope:void 0,clone:void 0},C[q]=!0}for(h in l){if(T=l[h],q=se(T.clone),t.leave(q),q[0].parentNode)for(s=0,_=q.length;s<_;s++)q[s].$$NG_REMOVED=!0;T.scope.$destroy()}for(s=0;s<y;s++)if(k=n===E?s:E[s],x=n[k],(T=S[s]).scope){h=M;do{h=h.nextSibling}while(h&&h.$$NG_REMOVED);T.clone[0]!==h&&t.move(se(T.clone),null,M),M=T.clone[T.clone.length-1],o(T.scope,s,p,x,g,k,y)}else u(function(e,f){T.scope=f;var n=c.cloneNode(!1);e[e.length++]=n,t.enter(e,null,M),M=n,T.clone=e,C[T.id]=T,o(T.scope,s,p,x,g,k,y)});l=C})}}}}],Ja=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,f,n){t.$watch(n.ngShow,function(t){e[t?"removeClass":"addClass"](f,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Qa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,f,n){t.$watch(n.ngHide,function(t){e[t?"addClass":"removeClass"](f,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Za=jf(function(e,t,f){e.$watch(f.ngStyle,function(e,f){f&&e!==f&&a(f,function(e,f){t.css(f,"")}),e&&t.css(e)},!0)}),er=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(f,n,i,r){var o=[],s=[],d=[],c=[],u=function(e,t){return function(f){!1!==f&&e.splice(t,1)}};f.$watch(i.ngSwitch||i.on,function(f){for(var n,i;d.length;)e.cancel(d.pop());for(n=0,i=c.length;n<i;++n){var l=se(s[n].clone);c[n].$destroy(),(d[n]=e.leave(l)).done(u(d,n))}s.length=0,c.length=0,(o=r.cases["!"+f]||r.cases["?"])&&a(o,function(f){f.transclude(function(n,i){c.push(i);var a=f.element;n[n.length++]=t.$$createComment("end ngSwitchWhen"),s.push({clone:n}),e.enter(n,a.parent(),a)})})})}}}],tr=jf({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,f,n,i){a(f.ngSwitchWhen.split(f.ngSwitchWhenSeparator).sort().filter(function(e,t,f){return f[t-1]!==e}),function(e){n.cases["!"+e]=n.cases["!"+e]||[],n.cases["!"+e].push({transclude:i,element:t})})}}),fr=jf({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,f,n,i){n.cases["?"]=n.cases["?"]||[],n.cases["?"].push({transclude:i,element:t})}}),nr=n("ngTransclude"),ir=["$compile",function(e){return{restrict:"EAC",terminal:!0,compile:function(t){var f=e(t.contents());return t.empty(),function(e,t,n,i,a){function r(){f(e,function(e){t.append(e)})}if(!a)throw nr("orphan",G(t));n.ngTransclude===n.$attr.ngTransclude&&(n.ngTransclude=""),a(function(e,f){var n;if(n=e.length)e:{n=0;for(var i=e.length;n<i;n++){var a=e[n];if(a.nodeType!==Pn||a.nodeValue.trim()){n=!0;break e}}n=void 0}n?t.append(e):(r(),f.$destroy())},null,n=n.ngTransclude||n.ngTranscludeSlot),n&&!a.isSlotFilled(n)&&r()}}}}],ar=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,f){"text/ng-template"===f.type&&e.put(f.id,t[0].text)}}}],rr={$setViewValue:m,$render:m},or=["$element","$scope",function(t,f){function n(){o||(o=!0,f.$$postDigest(function(){o=!1,a.ngModelCtrl.$render()}))}function i(e){s||(s=!0,f.$$postDigest(function(){f.$$destroyed||(s=!1,a.ngModelCtrl.$setViewValue(a.readValue()),e&&a.ngModelCtrl.$render())}))}var a=this,r=new Qn;a.selectValueMap={},a.ngModelCtrl=rr,a.multiple=!1,a.unknownOption=an(e.document.createElement("option")),a.hasEmptyOption=!1,a.emptyOption=void 0,a.renderUnknownOption=function(e){e=a.generateUnknownOptionValue(e),a.unknownOption.val(e),t.prepend(a.unknownOption),fn(a.unknownOption,!0),t.val(e)},a.updateUnknownOption=function(e){e=a.generateUnknownOptionValue(e),a.unknownOption.val(e),fn(a.unknownOption,!0),t.val(e)},a.generateUnknownOptionValue=function(e){return"? "+Ue(e)+" ?"},a.removeUnknownOption=function(){a.unknownOption.parent()&&a.unknownOption.remove()},a.selectEmptyOption=function(){a.emptyOption&&(t.val(""),fn(a.emptyOption,!0))},a.unselectEmptyOption=function(){a.hasEmptyOption&&fn(a.emptyOption,!1)},f.$on("$destroy",function(){a.renderUnknownOption=m}),a.readValue=function(){var e=(e=t.val())in a.selectValueMap?a.selectValueMap[e]:e;return a.hasOption(e)?e:null},a.writeValue=function(e){var f=t[0].options[t[0].selectedIndex];f&&fn(an(f),!1),a.hasOption(e)?(a.removeUnknownOption(),f=Ue(e),t.val(f in a.selectValueMap?f:e),fn(an(t[0].options[t[0].selectedIndex]),!0)):a.selectUnknownOrEmptyOption(e)},a.addOption=function(e,t){if(8!==t[0].nodeType){re(e,'"option value"'),""===e&&(a.hasEmptyOption=!0,a.emptyOption=t);var f=r.get(e)||0;r.set(e,f+1),n()}},a.removeOption=function(e){var t=r.get(e);t&&(1===t?(r.delete(e),""===e&&(a.hasEmptyOption=!1,a.emptyOption=void 0)):r.set(e,t-1))},a.hasOption=function(e){return!!r.get(e)},a.$hasEmptyOption=function(){return a.hasEmptyOption},a.$isUnknownOptionSelected=function(){return t[0].options[0]===a.unknownOption[0]},a.$isEmptyOptionSelected=function(){return a.hasEmptyOption&&t[0].options[t[0].selectedIndex]===a.emptyOption[0]},a.selectUnknownOrEmptyOption=function(e){null==e&&a.emptyOption?(a.removeUnknownOption(),a.selectEmptyOption()):a.unknownOption.parent().length?a.updateUnknownOption(e):a.renderUnknownOption(e)};var o=!1,s=!1;a.registerOption=function(e,t,f,r,o){if(f.$attr.ngValue){var s,d=NaN;f.$observe("value",function(e){var f,n=t.prop("selected");b(d)&&(a.removeOption(s),delete a.selectValueMap[d],f=!0),d=Ue(e),s=e,a.selectValueMap[d]=e,a.addOption(e,t),t.attr("value",d),f&&n&&i()})}else r?f.$observe("value",function(e){a.readValue();var f,n=t.prop("selected");b(s)&&(a.removeOption(s),f=!0),s=e,a.addOption(e,t),f&&n&&i()}):o?e.$watch(o,function(e,n){f.$set("value",e);var r=t.prop("selected");n!==e&&a.removeOption(n),a.addOption(e,t),n&&r&&i()}):a.addOption(f.value,t);f.$observe("disabled",function(e){("true"===e||e&&t.prop("selected"))&&(a.multiple?i(!0):(a.ngModelCtrl.$setViewValue(null),a.ngModelCtrl.$render()))}),t.on("$destroy",function(){var e=a.readValue(),t=f.value;a.removeOption(t),n(),(a.multiple&&e&&-1!==e.indexOf(t)||e===t)&&i(!0)})}}],sr=function(){return{restrict:"E",require:["select","?ngModel"],controller:or,priority:1,link:{pre:function(e,t,f,n){var i=n[0],r=n[1];if(r){if(i.ngModelCtrl=r,t.on("change",function(){i.removeUnknownOption(),e.$apply(function(){r.$setViewValue(i.readValue())})}),f.multiple){i.multiple=!0,i.readValue=function(){var e=[];return a(t.find("option"),function(t){t.selected&&!t.disabled&&(t=t.value,e.push(t in i.selectValueMap?i.selectValueMap[t]:t))}),e},i.writeValue=function(e){a(t.find("option"),function(t){var f=!!e&&(-1!==Array.prototype.indexOf.call(e,t.value)||-1!==Array.prototype.indexOf.call(e,i.selectValueMap[t.value]));f!==t.selected&&fn(an(t),f)})};var o,s=NaN;e.$watch(function(){s!==r.$viewValue||D(o,r.$viewValue)||(o=le(r.$viewValue),r.$render()),s=r.$viewValue}),r.$isEmpty=function(e){return!e||0===e.length}}}else i.registerOption=m},post:function(e,t,f,n){var i=n[1];if(i){var a=n[0];i.$render=function(){a.writeValue(i.$viewValue)}}}}}},dr=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,f){var n,i;return b(f.ngValue)||(b(f.value)?n=e(f.value,!0):(i=e(t.text(),!0))||f.$set("value",t.text())),function(e,t,f){var a=t.parent();(a=a.data("$selectController")||a.parent().data("$selectController"))&&a.registerOption(e,t,f,n,i)}}}}],cr=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,f,n){n&&(f.required=!0,n.$validators.required=function(e,t){return!f.required||!n.$isEmpty(t)},f.$observe("required",function(){n.$validate()}))}}},ur=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,f,i){if(i){var a,r=f.ngPattern||f.pattern;f.$observe("pattern",function(e){if(k(e)&&0<e.length&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw n("ngPattern")("noregexp",r,e,G(t));a=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||y(a)||a.test(t)}}}}},lr=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,f,n){if(n){var i=-1;f.$observe("maxlength",function(e){e=l(e),i=wn(e)?-1:e,n.$validate()}),n.$validators.maxlength=function(e,t){return 0>i||n.$isEmpty(t)||t.length<=i}}}}},_r=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,f,n){if(n){var i=0;f.$observe("minlength",function(e){i=l(e)||0,n.$validate()}),n.$validators.minlength=function(e,t){return n.$isEmpty(t)||t.length>=i}}}}};e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load angular more than once."):(function(){var t;if(!Rn){var f=Sn();(rn=y(f)?e.jQuery:f?e[f]:void 0)&&rn.fn.on?(an=rn,c(rn.fn,{scope:Wn.scope,isolateScope:Wn.isolateScope,controller:Wn.controller,injector:Wn.injector,inheritedData:Wn.inheritedData}),t=rn.cleanData,rn.cleanData=function(e){for(var f,n,i=0;null!=(n=e[i]);i++)(f=rn._data(n,"events"))&&f.$destroy&&rn(n).triggerHandler("$destroy");t(e)}):an=ye,bn.element=an,Rn=!0}}(),function(f){c(f,{errorHandlingConfig:t,bootstrap:ee,copy:j,extend:c,merge:u,equals:D,element:an,forEach:a,injector:He,noop:m,bind:U,toJson:z,fromJson:B,identity:h,isUndefined:y,isDefined:b,isString:k,isFunction:T,isObject:v,isNumber:x,isElement:R,isArray:kn,version:Nn,isDate:q,lowercase:un,uppercase:ln,callbacks:{$$counter:0},getTestability:fe,reloadWithDebugInfo:te,$$minErr:n,$$csp:Tn,$$encodeUriSegment:K,$$encodeUriQuery:J,$$stringify:ce}),(on=ue(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:ef}),e.provider("$compile",Ze).directive({a:ea,input:ga,textarea:ga,form:ia,script:ar,select:sr,option:dr,ngBind:va,ngBindHtml:ka,ngBindTemplate:wa,ngClass:qa,ngClassEven:Ta,ngClassOdd:Ea,ngCloak:Sa,ngController:Ma,ngForm:aa,ngHide:Qa,ngIf:Oa,ngInclude:Ra,ngInit:Na,ngNonBindable:Va,ngPluralize:Ya,ngRepeat:Ka,ngShow:Ja,ngStyle:Za,ngSwitch:er,ngSwitchWhen:tr,ngSwitchDefault:fr,ngOptions:Xa,ngTransclude:ir,ngModel:za,ngList:La,ngChange:xa,pattern:ur,ngPattern:ur,required:cr,ngRequired:cr,minlength:_r,ngMinlength:_r,maxlength:lr,ngMaxlength:lr,ngValue:ba,ngModelOptions:Ha}).directive({ngInclude:Pa}).directive(ta).directive(Ca),e.provider({$anchorScroll:Ve,$animate:di,$animateCss:li,$$animateJs:oi,$$animateQueue:si,$$AnimateRunner:ui,$$animateAsyncRun:ci,$browser:Ke,$cacheFactory:Je,$controller:at,$document:rt,$$isDocumentHidden:ot,$exceptionHandler:st,$filter:hf,$$forceReflow:bi,$interpolate:vt,$interval:wt,$http:pt,$httpParamSerializer:ct,$httpParamSerializerJQLike:ut,$httpBackend:yt,$xhrFactory:gt,$jsonpCallbacks:Si,$location:Nt,$log:Lt,$parse:Xt,$rootScope:Zt,$q:Yt,$$q:Kt,$sce:af,$sceDelegate:nf,$sniffer:rf,$templateCache:Qe,$templateRequest:of,$$testability:sf,$timeout:df,$window:lf,$$rAF:Qt,$$jqLite:Ie,$$Map:Zn,$$cookieReader:mf})}]).info({angularVersion:"1.6.6"})}(bn),bn.module("ngLocale",[],["$provide",function(e){function t(e){var t=(e+="").indexOf(".");return-1==t?0:e.length-t-1}e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,f){var n=0|e,i=f;return void 0===i&&(i=Math.min(t(e),3)),Math.pow(10,i),1==n&&0==i?"one":"other"}})}]),an(function(){Z(e.document,ee)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(e){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var f in t)if(void 0!==e.style[f])return{end:t[f]};return!1}e.fn.emulateTransitionEnd=function(t){var f=!1,n=this;e(this).one("bsTransitionEnd",function(){f=!0});return setTimeout(function(){f||e(n).trigger(e.support.transition.end)},t),this},e(function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',f=function(f){e(f).on("click",t,this.close)};f.VERSION="3.3.7",f.TRANSITION_DURATION=150,f.prototype.close=function(t){function n(){r.detach().trigger("closed.bs.alert").remove()}var i=e(this),a=i.attr("data-target");a||(a=i.attr("href"),a=a&&a.replace(/.*(?=#[^\s]*$)/,""));var r=e("#"===a?[]:a);t&&t.preventDefault(),r.length||(r=i.closest(".alert")),r.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",n).emulateTransitionEnd(f.TRANSITION_DURATION):n())};var n=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var n=e(this),i=n.data("bs.alert");i||n.data("bs.alert",i=new f(this)),"string"==typeof t&&i[t].call(n)})},e.fn.alert.Constructor=f,e.fn.alert.noConflict=function(){return e.fn.alert=n,this},e(document).on("click.bs.alert.data-api",t,f.prototype.close)}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var n=e(this),i=n.data("bs.button"),a="object"==typeof t&&t;i||n.data("bs.button",i=new f(this,a)),"toggle"==t?i.toggle():t&&i.setState(t)})}var f=function(t,n){this.$element=e(t),this.options=e.extend({},f.DEFAULTS,n),this.isLoading=!1};f.VERSION="3.3.7",f.DEFAULTS={loadingText:"loading..."},f.prototype.setState=function(t){var f="disabled",n=this.$element,i=n.is("input")?"val":"html",a=n.data();t+="Text",null==a.resetText&&n.data("resetText",n[i]()),setTimeout(e.proxy(function(){n[i](null==a[t]?this.options[t]:a[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(f).attr(f,f).prop(f,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(f).removeAttr(f).prop(f,!1))},this),0)},f.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var f=this.$element.find("input");"radio"==f.prop("type")?(f.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==f.prop("type")&&(f.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),f.prop("checked",this.$element.hasClass("active")),e&&f.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=t,e.fn.button.Constructor=f,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(f){var n=e(f.target).closest(".btn");t.call(n,"toggle"),e(f.target).is('input[type="radio"], input[type="checkbox"]')||(f.preventDefault(),n.is("input,button")?n.trigger("focus"):n.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var n=e(this),i=n.data("bs.carousel"),a=e.extend({},f.DEFAULTS,n.data(),"object"==typeof t&&t),r="string"==typeof t?t:a.slide;i||n.data("bs.carousel",i=new f(this,a)),"number"==typeof t?i.to(t):r?i[r]():a.interval&&i.pause().cycle()})}var f=function(t,f){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=f,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};f.VERSION="3.3.7",f.TRANSITION_DURATION=600,f.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},f.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},f.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},f.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},f.prototype.getItemForDirection=function(e,t){var f=this.getItemIndex(t);if(("prev"==e&&0===f||"next"==e&&f==this.$items.length-1)&&!this.options.wrap)return t;var n=(f+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(n)},f.prototype.to=function(e){var t=this,f=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):f==e?this.pause().cycle():this.slide(e>f?"next":"prev",this.$items.eq(e))},f.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},f.prototype.next=function(){if(!this.sliding)return this.slide("next")},f.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},f.prototype.slide=function(t,n){var i=this.$element.find(".item.active"),a=n||this.getItemForDirection(t,i),r=this.interval,o="next"==t?"left":"right",s=this;if(a.hasClass("active"))return this.sliding=!1;var d=a[0],c=e.Event("slide.bs.carousel",{relatedTarget:d,direction:o});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=e(this.$indicators.children()[this.getItemIndex(a)]);u&&u.addClass("active")}var l=e.Event("slid.bs.carousel",{relatedTarget:d,direction:o});return e.support.transition&&this.$element.hasClass("slide")?(a.addClass(t),a[0].offsetWidth,i.addClass(o),a.addClass(o),i.one("bsTransitionEnd",function(){a.removeClass([t,o].join(" ")).addClass("active"),i.removeClass(["active",o].join(" ")),s.sliding=!1,setTimeout(function(){s.$element.trigger(l)},0)}).emulateTransitionEnd(f.TRANSITION_DURATION)):(i.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger(l)),r&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=f,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this};var i=function(f){var n,i=e(this),a=e(i.attr("data-target")||(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(a.hasClass("carousel")){var r=e.extend({},a.data(),i.data()),o=i.attr("data-slide-to");o&&(r.interval=!1),t.call(a,r),o&&a.data("bs.carousel").to(o),f.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var f=e(this);t.call(f,f.data())})})}(jQuery),function(e){"use strict";function t(t){var f,n=t.attr("data-target")||(f=t.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"");return e(n)}function f(t){return this.each(function(){var f=e(this),i=f.data("bs.collapse"),a=e.extend({},n.DEFAULTS,f.data(),"object"==typeof t&&t);!i&&a.toggle&&/show|hide/.test(t)&&(a.toggle=!1),i||f.data("bs.collapse",i=new n(this,a)),"string"==typeof t&&i[t]()})}var n=function(t,f){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,f),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.7",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(t=i.data("bs.collapse"))&&t.transitioning)){var a=e.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){i&&i.length&&(f.call(i,"hide"),t||i.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return o.call(this);var s=e.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",e.proxy(o,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[r](this.$element[0][s])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var f=this.dimension();this.$element[f](this.$element[f]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return e.support.transition?void this.$element[f](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(n.TRANSITION_DURATION):i.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(f,n){var i=e(n);this.addAriaAndCollapsedClass(t(i),i)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(e,t){var f=e.hasClass("in");e.attr("aria-expanded",f),t.toggleClass("collapsed",!f).attr("aria-expanded",f)};var i=e.fn.collapse;e.fn.collapse=f,e.fn.collapse.Constructor=n,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var i=e(this);i.attr("data-target")||n.preventDefault();var a=t(i),r=a.data("bs.collapse")?"toggle":i.data();f.call(a,r)})}(jQuery),function(e){"use strict";function t(t){var f=t.attr("data-target");f||(f=t.attr("href"),f=f&&/#[A-Za-z]/.test(f)&&f.replace(/.*(?=#[^\s]*$)/,""));var n=f&&e(f);return n&&n.length?n:t.parent()}function f(f){f&&3===f.which||(e(n).remove(),e(i).each(function(){var n=e(this),i=t(n),a={relatedTarget:this};i.hasClass("open")&&(f&&"click"==f.type&&/input|textarea/i.test(f.target.tagName)&&e.contains(i[0],f.target)||(i.trigger(f=e.Event("hide.bs.dropdown",a)),f.isDefaultPrevented()||(n.attr("aria-expanded","false"),i.removeClass("open").trigger(e.Event("hidden.bs.dropdown",a)))))}))}var n=".dropdown-backdrop",i='[data-toggle="dropdown"]',a=function(t){e(t).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.7",a.prototype.toggle=function(n){var i=e(this);if(!i.is(".disabled, :disabled")){var a=t(i),r=a.hasClass("open");if(f(),!r){"ontouchstart"in document.documentElement&&!a.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",f);var o={relatedTarget:this};if(a.trigger(n=e.Event("show.bs.dropdown",o)),n.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),a.toggleClass("open").trigger(e.Event("shown.bs.dropdown",o))}return!1}},a.prototype.keydown=function(f){if(/(38|40|27|32)/.test(f.which)&&!/input|textarea/i.test(f.target.tagName)){var n=e(this);if(f.preventDefault(),f.stopPropagation(),!n.is(".disabled, :disabled")){var a=t(n),r=a.hasClass("open");if(!r&&27!=f.which||r&&27==f.which)return 27==f.which&&a.find(i).trigger("focus"),n.trigger("click");var o=a.find(".dropdown-menu li:not(.disabled):visible a");if(o.length){var s=o.index(f.target);38==f.which&&s>0&&s--,40==f.which&&s<o.length-1&&s++,~s||(s=0),o.eq(s).trigger("focus")}}}};var r=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var f=e(this),n=f.data("bs.dropdown");n||f.data("bs.dropdown",n=new a(this)),"string"==typeof t&&n[t].call(f)})},e.fn.dropdown.Constructor=a,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=r,this},e(document).on("click.bs.dropdown.data-api",f).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",i,a.prototype.toggle).on("keydown.bs.dropdown.data-api",i,a.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",a.prototype.keydown)}(jQuery),function(e){"use strict";function t(t,n){return this.each(function(){var i=e(this),a=i.data("bs.modal"),r=e.extend({},f.DEFAULTS,i.data(),"object"==typeof t&&t);a||i.data("bs.modal",a=new f(this,r)),"string"==typeof t?a[t](n):r.show&&a.show(n)})}var f=function(t,f){this.options=f,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};f.VERSION="3.3.7",f.TRANSITION_DURATION=300,f.BACKDROP_TRANSITION_DURATION=150,f.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},f.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},f.prototype.show=function(t){var n=this,i=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){n.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(n.$element)&&(n.ignoreBackdropClick=!0)})}),this.backdrop(function(){var i=e.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),i&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var a=e.Event("shown.bs.modal",{relatedTarget:t});i?n.$dialog.one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(a)}).emulateTransitionEnd(f.TRANSITION_DURATION):n.$element.trigger("focus").trigger(a)}))},f.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(f.TRANSITION_DURATION):this.hideModal())},f.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},f.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},f.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},f.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},f.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},f.prototype.backdrop=function(t){var n=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var a=e.support.transition&&i;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),a&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;a?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(f.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){n.removeBackdrop(),t&&t()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(f.BACKDROP_TRANSITION_DURATION):r()}else t&&t()},f.prototype.handleUpdate=function(){this.adjustDialog()},f.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},f.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},f.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},f.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},f.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},f.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var n=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=f,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(f){var n=e(this),i=n.attr("href"),a=e(n.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),r=a.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(i)&&i},a.data(),n.data());n.is("a")&&f.preventDefault(),a.one("show.bs.modal",function(e){e.isDefaultPrevented()||a.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),t.call(a,r,this)})}(jQuery),function(e){"use strict";var t=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};t.VERSION="3.3.7",t.TRANSITION_DURATION=150,t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,f,n){if(this.enabled=!0,this.type=t,this.$element=e(f),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),a=i.length;a--;){var r=i[a];if("click"==r)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=r){var o="hover"==r?"mouseenter":"focusin",s="hover"==r?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},f=this.getDefaults();return this._options&&e.each(this._options,function(e,n){f[e]!=n&&(t[e]=n)}),t},t.prototype.enter=function(t){var f=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return f||(f=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,f)),t instanceof e.Event&&(f.inState["focusin"==t.type?"focus":"hover"]=!0),f.tip().hasClass("in")||"in"==f.hoverState?void(f.hoverState="in"):(clearTimeout(f.timeout),f.hoverState="in",f.options.delay&&f.options.delay.show?void(f.timeout=setTimeout(function(){"in"==f.hoverState&&f.show()},f.options.delay.show)):f.show())},t.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},t.prototype.leave=function(t){var f=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(f||(f=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,f)),t instanceof e.Event&&(f.inState["focusout"==t.type?"focus":"hover"]=!1),!f.isInStateTrue())return clearTimeout(f.timeout),f.hoverState="out",f.options.delay&&f.options.delay.hide?void(f.timeout=setTimeout(function(){"out"==f.hoverState&&f.hide()},f.options.delay.hide)):f.hide()},t.prototype.show=function(){var f=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(f);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(f.isDefaultPrevented()||!n)return;var i=this,a=this.tip(),r=this.getUID(this.type);this.setContent(),a.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&a.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,d=s.test(o);d&&(o=o.replace(s,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?a.appendTo(this.options.container):a.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),u=a[0].offsetWidth,l=a[0].offsetHeight;if(d){var _=o,m=this.getPosition(this.$viewport);o="bottom"==o&&c.bottom+l>m.bottom?"top":"top"==o&&c.top-l<m.top?"bottom":"right"==o&&c.right+u>m.width?"left":"left"==o&&c.left-u<m.left?"right":o,a.removeClass(_).addClass(o)}var h=this.getCalculatedOffset(o,c,u,l);this.applyPlacement(h,o);var p=function(){var e=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==e&&i.leave(i)};e.support.transition&&this.$tip.hasClass("fade")?a.one("bsTransitionEnd",p).emulateTransitionEnd(t.TRANSITION_DURATION):p()}},t.prototype.applyPlacement=function(t,f){var n=this.tip(),i=n[0].offsetWidth,a=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),o=parseInt(n.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(o)&&(o=0),t.top+=r,t.left+=o,e.offset.setOffset(n[0],e.extend({using:function(e){n.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),n.addClass("in");var s=n[0].offsetWidth,d=n[0].offsetHeight;"top"==f&&d!=a&&(t.top=t.top+a-d);var c=this.getViewportAdjustedDelta(f,t,s,d);c.left?t.left+=c.left:t.top+=c.top;var u=/top|bottom/.test(f),l=u?2*c.left-i+s:2*c.top-a+d,_=u?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(l,n[0][_],u)},t.prototype.replaceArrow=function(e,t,f){this.arrow().css(f?"left":"top",50*(1-e/t)+"%").css(f?"top":"left","")},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},t.prototype.hide=function(f){function n(){"in"!=i.hoverState&&a.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),f&&f()}var i=this,a=e(this.$tip),r=e.Event("hide.bs."+this.type);if(this.$element.trigger(r),!r.isDefaultPrevented())return a.removeClass("in"),e.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",n).emulateTransitionEnd(t.TRANSITION_DURATION):n(),this.hoverState=null,this},t.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(t){var f=(t=t||this.$element)[0],n="BODY"==f.tagName,i=f.getBoundingClientRect();null==i.width&&(i=e.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var a=window.SVGElement&&f instanceof window.SVGElement,r=n?{top:0,left:0}:a?null:t.offset(),o={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},s=n?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},i,o,s,r)},t.prototype.getCalculatedOffset=function(e,t,f,n){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-f/2}:"top"==e?{top:t.top-n,left:t.left+t.width/2-f/2}:"left"==e?{top:t.top+t.height/2-n/2,left:t.left-f}:{top:t.top+t.height/2-n/2,left:t.left+t.width}},t.prototype.getViewportAdjustedDelta=function(e,t,f,n){var i={top:0,left:0};if(!this.$viewport)return i;var a=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(e)){var o=t.top-a-r.scroll,s=t.top+a-r.scroll+n;o<r.top?i.top=r.top-o:s>r.top+r.height&&(i.top=r.top+r.height-s)}else{var d=t.left-a,c=t.left+a+f;d<r.left?i.left=r.left-d:c>r.right&&(i.left=r.left+r.width-c)}return i},t.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},t.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},t.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var f=this;t&&((f=e(t.currentTarget).data("bs."+this.type))||(f=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,f))),t?(f.inState.click=!f.inState.click,f.isInStateTrue()?f.enter(f):f.leave(f)):f.tip().hasClass("in")?f.leave(f):f.enter(f)},t.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})};var f=e.fn.tooltip;e.fn.tooltip=function(f){return this.each(function(){var n=e(this),i=n.data("bs.tooltip"),a="object"==typeof f&&f;!i&&/destroy|hide/.test(f)||(i||n.data("bs.tooltip",i=new t(this,a)),"string"==typeof f&&i[f]())})},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=f,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.7",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),f=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof f?"html":"append":"text"](f),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var f=e.fn.popover;e.fn.popover=function(f){return this.each(function(){var n=e(this),i=n.data("bs.popover"),a="object"==typeof f&&f;!i&&/destroy|hide/.test(f)||(i||n.data("bs.popover",i=new t(this,a)),"string"==typeof f&&i[f]())})},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=f,this}}(jQuery),function(e){"use strict";function t(f,n){this.$body=e(document.body),this.$scrollElement=e(e(f).is(document.body)?window:f),this.options=e.extend({},t.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function f(f){return this.each(function(){var n=e(this),i=n.data("bs.scrollspy"),a="object"==typeof f&&f;i||n.data("bs.scrollspy",i=new t(this,a)),"string"==typeof f&&i[f]()})}t.VERSION="3.3.7",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,f="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(f="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),i=t.data("target")||t.attr("href"),a=/^#./.test(i)&&e(i);return a&&a.length&&a.is(":visible")&&[[a[f]().top+n,i]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),n=this.options.offset+f-this.$scrollElement.height(),i=this.offsets,a=this.targets,r=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),t>=n)return r!=(e=a[a.length-1])&&this.activate(e);if(r&&t<i[0])return this.activeTarget=null,this.clear();for(e=i.length;e--;)r!=a[e]&&t>=i[e]&&(void 0===i[e+1]||t<i[e+1])&&this.activate(a[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var f=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(f).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=e.fn.scrollspy;e.fn.scrollspy=f,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);f.call(t,t.data())})})}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var n=e(this),i=n.data("bs.tab");i||n.data("bs.tab",i=new f(this)),"string"==typeof t&&i[t]()})}var f=function(t){this.element=e(t)};f.VERSION="3.3.7",f.TRANSITION_DURATION=150,f.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),n=t.data("target");if(n||(n=t.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var i=f.find(".active:last a"),a=e.Event("hide.bs.tab",{relatedTarget:t[0]}),r=e.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(a),t.trigger(r),!r.isDefaultPrevented()&&!a.isDefaultPrevented()){var o=e(n);this.activate(t.closest("li"),f),this.activate(o,o.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},f.prototype.activate=function(t,n,i){function a(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}var r=n.find("> .active"),o=i&&e.support.transition&&(r.length&&r.hasClass("fade")||!!n.find("> .fade").length);r.length&&o?r.one("bsTransitionEnd",a).emulateTransitionEnd(f.TRANSITION_DURATION):a(),r.removeClass("in")};var n=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=f,e.fn.tab.noConflict=function(){return e.fn.tab=n,this};var i=function(f){f.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var n=e(this),i=n.data("bs.affix"),a="object"==typeof t&&t;i||n.data("bs.affix",i=new f(this,a)),"string"==typeof t&&i[t]()})}var f=function(t,n){this.options=e.extend({},f.DEFAULTS,n),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};f.VERSION="3.3.7",f.RESET="affix affix-top affix-bottom",f.DEFAULTS={offset:0,target:window},f.prototype.getState=function(e,t,f,n){var i=this.$target.scrollTop(),a=this.$element.offset(),r=this.$target.height();if(null!=f&&"top"==this.affixed)return i<f&&"top";if("bottom"==this.affixed)return null!=f?!(i+this.unpin<=a.top)&&"bottom":!(i+r<=e-n)&&"bottom";var o=null==this.affixed,s=o?i:a.top,d=o?r:t;return null!=f&&i<=f?"top":null!=n&&s+d>=e-n&&"bottom"},f.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(f.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},f.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},f.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),n=this.options.offset,i=n.top,a=n.bottom,r=Math.max(e(document).height(),e(document.body).height());"object"!=typeof n&&(a=i=n),"function"==typeof i&&(i=n.top(this.$element)),"function"==typeof a&&(a=n.bottom(this.$element));var o=this.getState(r,t,i,a);if(this.affixed!=o){null!=this.unpin&&this.$element.css("top","");var s="affix"+(o?"-"+o:""),d=e.Event(s+".bs.affix");if(this.$element.trigger(d),d.isDefaultPrevented())return;this.affixed=o,this.unpin="bottom"==o?this.getPinnedOffset():null,this.$element.removeClass(f.RESET).addClass(s).trigger(s.replace("affix","affixed")+".bs.affix")}"bottom"==o&&this.$element.offset({top:r-t-a})}};var n=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=f,e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var f=e(this),n=f.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),t.call(f,n)})})}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.d3=e.d3||{})}(this,function(e){"use strict";function t(e){return function(t,f){return cd(e(t),f)}}function f(e,t){return[e,t]}function n(e,t,f){var n=(t-e)/Math.max(0,f),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i>=0?(a>=Ed?10:a>=Td?5:a>=Sd?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Ed?10:a>=Td?5:a>=Sd?2:1)}function i(e,t,f){var n=Math.abs(t-e)/Math.max(0,f),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a>=Ed?i*=10:a>=Td?i*=5:a>=Sd&&(i*=2),t<e?-i:i}function a(e){return e.length}function r(e){return"translate("+(e+.5)+",0)"}function o(e){return"translate(0,"+(e+.5)+")"}function s(e){return function(t){return+e(t)}}function d(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(f){return+e(f)+t}}function c(){return!this.__axis}function u(e,t){function f(f){var r=null==i?t.ticks?t.ticks.apply(t,n):t.domain():i,o=null==a?t.tickFormat?t.tickFormat.apply(t,n):Ld:a,g=Math.max(u,0)+_,y=t.range(),b=+y[0]+.5,v=+y[y.length-1]+.5,w=(t.bandwidth?d:s)(t.copy()),k=f.selection?f.selection():f,x=k.selectAll(".domain").data([null]),q=k.selectAll(".tick").data(r,t).order(),E=q.exit(),T=q.enter().append("g").attr("class","tick"),S=q.select("line"),M=q.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),q=q.merge(T),S=S.merge(T.append("line").attr("stroke","#000").attr(h+"2",m*u)),M=M.merge(T.append("text").attr("fill","#000").attr(h,m*g).attr("dy",e===jd?"0em":e===Dd?"0.71em":"0.32em")),f!==k&&(x=x.transition(f),q=q.transition(f),S=S.transition(f),M=M.transition(f),E=E.transition(f).attr("opacity",Ud).attr("transform",function(e){return isFinite(e=w(e))?p(e):this.getAttribute("transform")}),T.attr("opacity",Ud).attr("transform",function(e){var t=this.parentNode.__axis;return p(t&&isFinite(t=t(e))?t:w(e))})),E.remove(),x.attr("d",e===Id||e==$d?"M"+m*l+","+b+"H0.5V"+v+"H"+m*l:"M"+b+","+m*l+"V0.5H"+v+"V"+m*l),q.attr("opacity",1).attr("transform",function(e){return p(w(e))}),S.attr(h+"2",m*u),M.attr(h,m*g).text(o),k.filter(c).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===$d?"start":e===Id?"end":"middle"),k.each(function(){this.__axis=w})}var n=[],i=null,a=null,u=6,l=6,_=3,m=e===jd||e===Id?-1:1,h=e===Id||e===$d?"x":"y",p=e===jd||e===Dd?r:o;return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Nd.call(arguments),f},f.tickArguments=function(e){return arguments.length?(n=null==e?[]:Nd.call(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(i=null==e?null:Nd.call(e),f):i&&i.slice()},f.tickFormat=function(e){return arguments.length?(a=e,f):a},f.tickSize=function(e){return arguments.length?(u=l=+e,f):u},f.tickSizeInner=function(e){return arguments.length?(u=+e,f):u},f.tickSizeOuter=function(e){return arguments.length?(l=+e,f):l},f.tickPadding=function(e){return arguments.length?(_=+e,f):_},f}function l(){for(var e,t=0,f=arguments.length,n={};t<f;++t){if(!(e=arguments[t]+"")||e in n)throw new Error("illegal type: "+e);n[e]=[]}return new _(n)}function _(e){this._=e}function m(e,t){return e.trim().split(/^|\s+/).map(function(e){var f="",n=e.indexOf(".");if(n>=0&&(f=e.slice(n+1),e=e.slice(0,n)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:f}})}function h(e,t){for(var f,n=0,i=e.length;n<i;++n)if((f=e[n]).name===t)return f.value}function p(e,t,f){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=Fd,e=e.slice(0,n).concat(e.slice(n+1));break}return null!=f&&e.push({name:t,value:f}),e}function g(e){return function(){var t=this.ownerDocument,f=this.namespaceURI;return f===zd&&t.documentElement.namespaceURI===zd?t.createElement(e):t.createElementNS(f,e)}}function y(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function b(){return new v}function v(){this._="@"+(++Gd).toString(36)}function w(e,t,f){return e=k(e,t,f),function(t){var f=t.relatedTarget;f&&(f===this||8&f.compareDocumentPosition(this))||e.call(this,t)}}function k(t,f,n){return function(i){var a=e.event;e.event=i;try{t.call(this,this.__data__,f,n)}finally{e.event=a}}}function x(e){return e.trim().split(/^|\s+/).map(function(e){var t="",f=e.indexOf(".");return f>=0&&(t=e.slice(f+1),e=e.slice(0,f)),{type:e,name:t}})}function q(e){return function(){var t=this.__on;if(t){for(var f,n=0,i=-1,a=t.length;n<a;++n)f=t[n],e.type&&f.type!==e.type||f.name!==e.name?t[++i]=f:this.removeEventListener(f.type,f.listener,f.capture);++i?t.length=i:delete this.__on}}}function E(e,t,f){var n=Jd.hasOwnProperty(e.type)?w:k;return function(i,a,r){var o,s=this.__on,d=n(t,a,r);if(s)for(var c=0,u=s.length;c<u;++c)if((o=s[c]).type===e.type&&o.name===e.name)return this.removeEventListener(o.type,o.listener,o.capture),this.addEventListener(o.type,o.listener=d,o.capture=f),void(o.value=t);this.addEventListener(e.type,d,f),o={type:e.type,name:e.name,value:t,listener:d,capture:f},s?s.push(o):this.__on=[o]}}function T(t,f,n,i){var a=e.event;t.sourceEvent=e.event,e.event=t;try{return f.apply(n,i)}finally{e.event=a}}function S(){}function M(){return[]}function C(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function A(e,t,f,n,i,a){for(var r,o=0,s=t.length,d=a.length;o<d;++o)(r=t[o])?(r.__data__=a[o],n[o]=r):f[o]=new C(e,a[o]);for(;o<s;++o)(r=t[o])&&(i[o]=r)}function O(e,t,f,n,i,a,r){var o,s,d,c={},u=t.length,l=a.length,_=new Array(u);for(o=0;o<u;++o)(s=t[o])&&(_[o]=d=ac+r.call(s,s.__data__,o,t),d in c?i[o]=s:c[d]=s);for(o=0;o<l;++o)(s=c[d=ac+r.call(e,a[o],o,a)])?(n[o]=s,s.__data__=a[o],c[d]=null):f[o]=new C(e,a[o]);for(o=0;o<u;++o)(s=t[o])&&c[_[o]]===s&&(i[o]=s)}function R(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function P(e){return function(){this.removeAttribute(e)}}function N(e){return function(){this.removeAttributeNS(e.space,e.local)}}function L(e,t){return function(){this.setAttribute(e,t)}}function j(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function $(e,t){return function(){var f=t.apply(this,arguments);null==f?this.removeAttribute(e):this.setAttribute(e,f)}}function D(e,t){return function(){var f=t.apply(this,arguments);null==f?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,f)}}function I(e){return function(){this.style.removeProperty(e)}}function U(e,t,f){return function(){this.style.setProperty(e,t,f)}}function F(e,t,f){return function(){var n=t.apply(this,arguments);null==n?this.style.removeProperty(e):this.style.setProperty(e,n,f)}}function z(e,t){return e.style.getPropertyValue(t)||rc(e).getComputedStyle(e,null).getPropertyValue(t)}function B(e){return function(){delete this[e]}}function H(e,t){return function(){this[e]=t}}function V(e,t){return function(){var f=t.apply(this,arguments);null==f?delete this[e]:this[e]=f}}function G(e){return e.trim().split(/^|\s+/)}function W(e){return e.classList||new X(e)}function X(e){this._node=e,this._names=G(e.getAttribute("class")||"")}function Y(e,t){for(var f=W(e),n=-1,i=t.length;++n<i;)f.add(t[n])}function K(e,t){for(var f=W(e),n=-1,i=t.length;++n<i;)f.remove(t[n])}function J(e){return function(){Y(this,e)}}function Q(e){return function(){K(this,e)}}function Z(e,t){return function(){(t.apply(this,arguments)?Y:K)(this,e)}}function ee(){this.textContent=""}function te(e){return function(){this.textContent=e}}function fe(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function ne(){this.innerHTML=""}function ie(e){return function(){this.innerHTML=e}}function ae(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function re(){this.nextSibling&&this.parentNode.appendChild(this)}function oe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function se(){return null}function de(){var e=this.parentNode;e&&e.removeChild(this)}function ce(e,t,f){var n=rc(e),i=n.CustomEvent;"function"==typeof i?i=new i(t,f):(i=n.document.createEvent("Event"),f?(i.initEvent(t,f.bubbles,f.cancelable),i.detail=f.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function ue(e,t){return function(){return ce(this,e,t)}}function le(e,t){return function(){return ce(this,e,t.apply(this,arguments))}}function _e(e,t){this._groups=e,this._parents=t}function me(){return new _e([[document.documentElement]],oc)}function he(){e.event.stopImmediatePropagation()}function pe(e,t){var f=e.document.documentElement,n=sc(e).on("dragstart.drag",null);t&&(n.on("click.drag",cc,!0),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in f?n.on("selectstart.drag",null):(f.style.MozUserSelect=f.__noselect,delete f.__noselect)}function ge(e,t,f,n,i,a,r,o,s,d){this.target=e,this.type=t,this.subject=f,this.identifier=n,this.active=i,this.x=a,this.y=r,this.dx=o,this.dy=s,this._=d}function ye(){return!e.event.button}function be(){return this.parentNode}function ve(t){return null==t?{x:e.event.x,y:e.event.y}:t}function we(){return"ontouchstart"in this}function ke(e,t){var f=Object.create(e.prototype);for(var n in t)f[n]=t[n];return f}function xe(){}function qe(e){var t;return e=(e+"").trim().toLowerCase(),(t=gc.exec(e))?(t=parseInt(t[1],16),new Ce(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1)):(t=yc.exec(e))?Ee(parseInt(t[1],16)):(t=bc.exec(e))?new Ce(t[1],t[2],t[3],1):(t=vc.exec(e))?new Ce(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=wc.exec(e))?Te(t[1],t[2],t[3],t[4]):(t=kc.exec(e))?Te(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xc.exec(e))?Ae(t[1],t[2]/100,t[3]/100,1):(t=qc.exec(e))?Ae(t[1],t[2]/100,t[3]/100,t[4]):Ec.hasOwnProperty(e)?Ee(Ec[e]):"transparent"===e?new Ce(NaN,NaN,NaN,0):null}function Ee(e){return new Ce(e>>16&255,e>>8&255,255&e,1)}function Te(e,t,f,n){return n<=0&&(e=t=f=NaN),new Ce(e,t,f,n)}function Se(e){return e instanceof xe||(e=qe(e)),e?(e=e.rgb(),new Ce(e.r,e.g,e.b,e.opacity)):new Ce}function Me(e,t,f,n){return 1===arguments.length?Se(e):new Ce(e,t,f,null==n?1:n)}function Ce(e,t,f,n){this.r=+e,this.g=+t,this.b=+f,this.opacity=+n}function Ae(e,t,f,n){return n<=0?e=t=f=NaN:f<=0||f>=1?e=t=NaN:t<=0&&(e=NaN),new Pe(e,t,f,n)}function Oe(e){if(e instanceof Pe)return new Pe(e.h,e.s,e.l,e.opacity);if(e instanceof xe||(e=qe(e)),!e)return new Pe;if(e instanceof Pe)return e;var t=(e=e.rgb()).r/255,f=e.g/255,n=e.b/255,i=Math.min(t,f,n),a=Math.max(t,f,n),r=NaN,o=a-i,s=(a+i)/2;return o?(r=t===a?(f-n)/o+6*(f<n):f===a?(n-t)/o+2:(t-f)/o+4,o/=s<.5?a+i:2-a-i,r*=60):o=s>0&&s<1?0:r,new Pe(r,o,s,e.opacity)}function Re(e,t,f,n){return 1===arguments.length?Oe(e):new Pe(e,t,f,null==n?1:n)}function Pe(e,t,f,n){this.h=+e,this.s=+t,this.l=+f,this.opacity=+n}function Ne(e,t,f){return 255*(e<60?t+(f-t)*e/60:e<180?f:e<240?t+(f-t)*(240-e)/60:t)}function Le(e){if(e instanceof $e)return new $e(e.l,e.a,e.b,e.opacity);if(e instanceof He){var t=e.h*Tc;return new $e(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Ce||(e=Se(e));var f=Fe(e.r),n=Fe(e.g),i=Fe(e.b),a=De((.4124564*f+.3575761*n+.1804375*i)/Mc),r=De((.2126729*f+.7151522*n+.072175*i)/Cc);return new $e(116*r-16,500*(a-r),200*(r-De((.0193339*f+.119192*n+.9503041*i)/Ac)),e.opacity)}function je(e,t,f,n){return 1===arguments.length?Le(e):new $e(e,t,f,null==n?1:n)}function $e(e,t,f,n){this.l=+e,this.a=+t,this.b=+f,this.opacity=+n}function De(e){return e>Nc?Math.pow(e,1/3):e/Pc+Oc}function Ie(e){return e>Rc?e*e*e:Pc*(e-Oc)}function Ue(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Fe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ze(e){if(e instanceof He)return new He(e.h,e.c,e.l,e.opacity);e instanceof $e||(e=Le(e));var t=Math.atan2(e.b,e.a)*Sc;return new He(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Be(e,t,f,n){return 1===arguments.length?ze(e):new He(e,t,f,null==n?1:n)}function He(e,t,f,n){this.h=+e,this.c=+t,this.l=+f,this.opacity=+n}function Ve(e){if(e instanceof We)return new We(e.h,e.s,e.l,e.opacity);e instanceof Ce||(e=Se(e));var t=e.r/255,f=e.g/255,n=e.b/255,i=(Fc*n+Ic*t-Uc*f)/(Fc+Ic-Uc),a=n-i,r=(Dc*(f-i)-jc*a)/$c,o=Math.sqrt(r*r+a*a)/(Dc*i*(1-i)),s=o?Math.atan2(r,a)*Sc-120:NaN;return new We(s<0?s+360:s,o,i,e.opacity)}function Ge(e,t,f,n){return 1===arguments.length?Ve(e):new We(e,t,f,null==n?1:n)}function We(e,t,f,n){this.h=+e,this.s=+t,this.l=+f,this.opacity=+n}function Xe(e,t,f,n,i){var a=e*e,r=a*e;return((1-3*e+3*a-r)*t+(4-6*a+3*r)*f+(1+3*e+3*a-3*r)*n+r*i)/6}function Ye(e,t){return function(f){return e+f*t}}function Ke(e,t,f){return e=Math.pow(e,f),t=Math.pow(t,f)-e,f=1/f,function(n){return Math.pow(e+n*t,f)}}function Je(e,t){var f=t-e;return f?Ye(e,f>180||f<-180?f-360*Math.round(f/360):f):Kc(isNaN(e)?t:e)}function Qe(e){return 1==(e=+e)?Ze:function(t,f){return f-t?Ke(t,f,e):Kc(isNaN(t)?f:t)}}function Ze(e,t){var f=t-e;return f?Ye(e,f):Kc(isNaN(e)?t:e)}function et(e){return function(t){var f,n,i=t.length,a=new Array(i),r=new Array(i),o=new Array(i);for(f=0;f<i;++f)n=Me(t[f]),a[f]=n.r||0,r[f]=n.g||0,o[f]=n.b||0;return a=e(a),r=e(r),o=e(o),n.opacity=1,function(e){return n.r=a(e),n.g=r(e),n.b=o(e),n+""}}}function tt(e){return function(){return e}}function ft(e){return function(t){return e(t)+""}}function nt(e,t,f,n){function i(e){return e.length?e.pop()+" ":""}function a(e,n,i,a,r,o){if(e!==i||n!==a){var s=r.push("translate(",null,t,null,f);o.push({i:s-4,x:fu(e,i)},{i:s-2,x:fu(n,a)})}else(i||a)&&r.push("translate("+i+t+a+f)}function r(e,t,f,a){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:f.push(i(f)+"rotate(",null,n)-2,x:fu(e,t)})):t&&f.push(i(f)+"rotate("+t+n)}function o(e,t,f,a){e!==t?a.push({i:f.push(i(f)+"skewX(",null,n)-2,x:fu(e,t)}):t&&f.push(i(f)+"skewX("+t+n)}function s(e,t,f,n,a,r){if(e!==f||t!==n){var o=a.push(i(a)+"scale(",null,",",null,")");r.push({i:o-4,x:fu(e,f)},{i:o-2,x:fu(t,n)})}else 1===f&&1===n||a.push(i(a)+"scale("+f+","+n+")")}return function(t,f){var n=[],i=[];return t=e(t),f=e(f),a(t.translateX,t.translateY,f.translateX,f.translateY,n,i),r(t.rotate,f.rotate,n,i),o(t.skewX,f.skewX,n,i),s(t.scaleX,t.scaleY,f.scaleX,f.scaleY,n,i),t=f=null,function(e){for(var t,f=-1,a=i.length;++f<a;)n[(t=i[f]).i]=t.x(e);return n.join("")}}}function it(e){return((e=Math.exp(e))+1/e)/2}function at(e){return((e=Math.exp(e))-1/e)/2}function rt(e){return((e=Math.exp(2*e))-1)/(e+1)}function ot(e){return function(t,f){var n=e((t=Re(t)).h,(f=Re(f)).h),i=Ze(t.s,f.s),a=Ze(t.l,f.l),r=Ze(t.opacity,f.opacity);return function(e){return t.h=n(e),t.s=i(e),t.l=a(e),t.opacity=r(e),t+""}}}function st(e){return function(t,f){var n=e((t=Be(t)).h,(f=Be(f)).h),i=Ze(t.c,f.c),a=Ze(t.l,f.l),r=Ze(t.opacity,f.opacity);return function(e){return t.h=n(e),t.c=i(e),t.l=a(e),t.opacity=r(e),t+""}}}function dt(e){return function t(f){function n(t,n){var i=e((t=Ge(t)).h,(n=Ge(n)).h),a=Ze(t.s,n.s),r=Ze(t.l,n.l),o=Ze(t.opacity,n.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=r(Math.pow(e,f)),t.opacity=o(e),t+""}}return f=+f,n.gamma=t,n}(1)}function ct(){return Su||(Au(ut),Su=Cu.now()+Mu)}function ut(){Su=0}function lt(){this._call=this._time=this._next=null}function _t(e,t,f){var n=new lt;return n.restart(e,t,f),n}function mt(){ct(),++ku;for(var e,t=Gc;t;)(e=Su-t._time)>=0&&t._call.call(null,e),t=t._next;--ku}function ht(){Su=(Tu=Cu.now())+Mu,ku=xu=0;try{mt()}finally{ku=0,gt(),Su=0}}function pt(){var e=Cu.now(),t=e-Tu;t>Eu&&(Mu-=t,Tu=e)}function gt(){for(var e,t,f=Gc,n=1/0;f;)f._call?(n>f._time&&(n=f._time),e=f,f=f._next):(t=f._next,f._next=null,f=e?e._next=t:Gc=t);Wc=e,yt(n)}function yt(e){ku||(xu&&(xu=clearTimeout(xu)),e-Su>24?(e<1/0&&(xu=setTimeout(ht,e-Cu.now()-Mu)),qu&&(qu=clearInterval(qu))):(qu||(Tu=Cu.now(),qu=setInterval(pt,Eu)),ku=1,Au(ht)))}function bt(e,t){var f=e.__transition;if(!f||!(f=f[t])||f.state>Nu)throw new Error("too late");return f}function vt(e,t){var f=e.__transition;if(!f||!(f=f[t])||f.state>ju)throw new Error("too late");return f}function wt(e,t){var f=e.__transition;if(!f||!(f=f[t]))throw new Error("too late");return f}function kt(e,t,f){function n(s){var d,c,u,l;if(f.state!==Lu)return a();for(d in o)if((l=o[d]).name===f.name){if(l.state===$u)return Ou(n);l.state===Du?(l.state=Uu,l.timer.stop(),l.on.call("interrupt",e,e.__data__,l.index,l.group),delete o[d]):+d<t&&(l.state=Uu,l.timer.stop(),delete o[d])}if(Ou(function(){f.state===$u&&(f.state=Du,f.timer.restart(i,f.delay,f.time),i(s))}),f.state=ju,f.on.call("start",e,e.__data__,f.index,f.group),f.state===ju){for(f.state=$u,r=new Array(u=f.tween.length),d=0,c=-1;d<u;++d)(l=f.tween[d].value.call(e,e.__data__,f.index,f.group))&&(r[++c]=l);r.length=c+1}}function i(t){for(var n=t<f.duration?f.ease.call(null,t/f.duration):(f.timer.restart(a),f.state=Iu,1),i=-1,o=r.length;++i<o;)r[i].call(null,n);f.state===Iu&&(f.on.call("end",e,e.__data__,f.index,f.group),a())}function a(){f.state=Uu,f.timer.stop(),delete o[t];for(var n in o)return;delete e.__transition}var r,o=e.__transition;o[t]=f,f.timer=_t(function(e){f.state=Lu,f.timer.restart(n,f.delay,f.time),f.delay<=e&&n(e-f.delay)},0,f.time)}function xt(e,t){var f,n;return function(){var i=vt(this,e),a=i.tween;if(a!==f)for(var r=0,o=(n=f=a).length;r<o;++r)if(n[r].name===t){(n=n.slice()).splice(r,1);break}i.tween=n}}function qt(e,t,f){var n,i;if("function"!=typeof f)throw new Error;return function(){var a=vt(this,e),r=a.tween;if(r!==n){i=(n=r).slice();for(var o={name:t,value:f},s=0,d=i.length;s<d;++s)if(i[s].name===t){i[s]=o;break}s===d&&i.push(o)}a.tween=i}}function Et(e,t,f){var n=e._id;return e.each(function(){var e=vt(this,n);(e.value||(e.value={}))[t]=f.apply(this,arguments)}),function(e){return wt(e,n).value[t]}}function Tt(e){return function(){this.removeAttribute(e)}}function St(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Mt(e,t,f){var n,i;return function(){var a=this.getAttribute(e);return a===f?null:a===n?i:i=t(n=a,f)}}function Ct(e,t,f){var n,i;return function(){var a=this.getAttributeNS(e.space,e.local);return a===f?null:a===n?i:i=t(n=a,f)}}function At(e,t,f){var n,i,a;return function(){var r,o=f(this);if(null!=o)return(r=this.getAttribute(e))===o?null:r===n&&o===i?a:a=t(n=r,i=o);this.removeAttribute(e)}}function Ot(e,t,f){var n,i,a;return function(){var r,o=f(this);if(null!=o)return(r=this.getAttributeNS(e.space,e.local))===o?null:r===n&&o===i?a:a=t(n=r,i=o);this.removeAttributeNS(e.space,e.local)}}function Rt(e,t){function f(){var f=this,n=t.apply(f,arguments);return n&&function(t){f.setAttributeNS(e.space,e.local,n(t))}}return f._value=t,f}function Pt(e,t){function f(){var f=this,n=t.apply(f,arguments);return n&&function(t){f.setAttribute(e,n(t))}}return f._value=t,f}function Nt(e,t){return function(){bt(this,e).delay=+t.apply(this,arguments)}}function Lt(e,t){return t=+t,function(){bt(this,e).delay=t}}function jt(e,t){return function(){vt(this,e).duration=+t.apply(this,arguments)}}function $t(e,t){return t=+t,function(){vt(this,e).duration=t}}function Dt(e,t){if("function"!=typeof t)throw new Error;return function(){vt(this,e).ease=t}}function It(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}function Ut(e,t,f){var n,i,a=It(t)?bt:vt;return function(){var r=a(this,e),o=r.on;o!==n&&(i=(n=o).copy()).on(t,f),r.on=i}}function Ft(e){return function(){var t=this.parentNode;for(var f in this.__transition)if(+f!==e)return;t&&t.removeChild(this)}}function zt(e,t){var f,n,i;return function(){var a=z(this,e),r=(this.style.removeProperty(e),z(this,e));return a===r?null:a===f&&r===n?i:i=t(f=a,n=r)}}function Bt(e){return function(){this.style.removeProperty(e)}}function Ht(e,t,f){var n,i;return function(){var a=z(this,e);return a===f?null:a===n?i:i=t(n=a,f)}}function Vt(e,t,f){var n,i,a;return function(){var r=z(this,e),o=f(this);return null==o&&(this.style.removeProperty(e),o=z(this,e)),r===o?null:r===n&&o===i?a:a=t(n=r,i=o)}}function Gt(e,t,f){function n(){var n=this,i=t.apply(n,arguments);return i&&function(t){n.style.setProperty(e,i(t),f)}}return n._value=t,n}function Wt(e){return function(){this.textContent=e}}function Xt(e){return function(){var t=e(this);this.textContent=null==t?"":t}}function Yt(e,t,f,n){this._groups=e,this._parents=t,this._name=f,this._id=n}function Kt(e){return me().transition(e)}function Jt(){return++Vu}function Qt(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function Zt(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}function ef(e){return(1-Math.cos(Ku*e))/2}function tf(e){return((e*=2)<=1?Math.pow(2,10*e-10):2-Math.pow(2,10-10*e))/2}function ff(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}function nf(e){return(e=+e)<Qu?ol*e*e:e<el?ol*(e-=Zu)*e+tl:e<nl?ol*(e-=fl)*e+il:ol*(e-=al)*e+rl}function af(e,t){for(var f;!(f=e.__transition)||!(f=f[t]);)if(!(e=e.parentNode))return hl.time=ct(),hl;return f}function rf(){e.event.stopImmediatePropagation()}function of(e){return{type:e}}function sf(){return!e.event.button}function df(){var e=this.ownerSVGElement||this;return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function cf(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function uf(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function lf(t){function f(e){var f=e.property("__brush",o).selectAll(".overlay").data([of("overlay")]);f.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Sl.overlay).merge(f).each(function(){var e=cf(this).extent;sc(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])}),e.selectAll(".selection").data([of("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Sl.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=e.selectAll(".handle").data(t.handles,function(e){return e.type});i.exit().remove(),i.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return Sl[e.type]}),e.each(n).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",r)}function n(){var e=sc(this),t=cf(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",function(e){return"e"===e.type[e.type.length-1]?t[1][0]-_/2:t[0][0]-_/2}).attr("y",function(e){return"s"===e.type[0]?t[1][1]-_/2:t[0][1]-_/2}).attr("width",function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+_:_}).attr("height",function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+_:_})):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function i(e,t){return e.__brush.emitter||new a(e,t)}function a(e,t){this.that=e,this.args=t,this.state=e.__brush,this.active=0}function r(){function f(){var e=ec(k);!N||v||w||(Math.abs(e[0]-j[0])>Math.abs(e[1]-j[1])?w=!0:v=!0),j=e,b=!0,bl(),a()}function a(){var e;switch(g=j[0]-L[0],y=j[1]-L[1],q){case wl:case vl:E&&(g=Math.max(A-o,Math.min(R-_,g)),d=o+g,m=_+g),T&&(y=Math.max(O-u,Math.min(P-h,y)),l=u+y,p=h+y);break;case kl:E<0?(g=Math.max(A-o,Math.min(R-o,g)),d=o+g,m=_):E>0&&(g=Math.max(A-_,Math.min(R-_,g)),d=o,m=_+g),T<0?(y=Math.max(O-u,Math.min(P-u,y)),l=u+y,p=h):T>0&&(y=Math.max(O-h,Math.min(P-h,y)),l=u,p=h+y);break;case xl:E&&(d=Math.max(A,Math.min(R,o-g*E)),m=Math.max(A,Math.min(R,_+g*E))),T&&(l=Math.max(O,Math.min(P,u-y*T)),p=Math.max(O,Math.min(P,h+y*T)))}m<d&&(E*=-1,e=o,o=_,_=e,e=d,d=m,m=e,x in Ml&&I.attr("cursor",Sl[x=Ml[x]])),p<l&&(T*=-1,e=u,u=h,h=e,e=l,l=p,p=e,x in Cl&&I.attr("cursor",Sl[x=Cl[x]])),S.selection&&(C=S.selection),v&&(d=C[0][0],m=C[1][0]),w&&(l=C[0][1],p=C[1][1]),C[0][0]===d&&C[0][1]===l&&C[1][0]===m&&C[1][1]===p||(S.selection=[[d,l],[m,p]],n.call(k),$.brush())}function r(){if(rf(),e.event.touches){if(e.event.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500),D.on("touchmove.brush touchend.brush touchcancel.brush",null)}else pe(e.event.view,b),U.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);D.attr("pointer-events","all"),I.attr("cursor",Sl.overlay),S.selection&&(C=S.selection),uf(C)&&(S.selection=null,n.call(k)),$.end()}if(e.event.touches){if(e.event.changedTouches.length<e.event.touches.length)return bl()}else if(s)return;if(c.apply(this,arguments)){var o,d,u,l,_,m,h,p,g,y,b,v,w,k=this,x=e.event.target.__data__.type,q="selection"===(e.event.metaKey?x="overlay":x)?vl:e.event.altKey?xl:kl,E=t===El?null:Al[x],T=t===ql?null:Ol[x],S=cf(k),M=S.extent,C=S.selection,A=M[0][0],O=M[0][1],R=M[1][0],P=M[1][1],N=E&&T&&e.event.shiftKey,L=ec(k),j=L,$=i(k,arguments).beforestart();"overlay"===x?S.selection=C=[[o=t===El?A:L[0],u=t===ql?O:L[1]],[_=t===El?R:o,h=t===ql?P:u]]:(o=C[0][0],u=C[0][1],_=C[1][0],h=C[1][1]),d=o,l=u,m=_,p=h;var D=sc(k).attr("pointer-events","none"),I=D.selectAll(".overlay").attr("cursor",Sl[x]);if(e.event.touches)D.on("touchmove.brush",f,!0).on("touchend.brush touchcancel.brush",r,!0);else{var U=sc(e.event.view).on("keydown.brush",function(){switch(e.event.keyCode){case 16:N=E&&T;break;case 18:q===kl&&(E&&(_=m-g*E,o=d+g*E),T&&(h=p-y*T,u=l+y*T),q=xl,a());break;case 32:q!==kl&&q!==xl||(E<0?_=m-g:E>0&&(o=d-g),T<0?h=p-y:T>0&&(u=l-y),q=wl,I.attr("cursor",Sl.selection),a());break;default:return}bl()},!0).on("keyup.brush",function(){switch(e.event.keyCode){case 16:N&&(v=w=N=!1,a());break;case 18:q===xl&&(E<0?_=m:E>0&&(o=d),T<0?h=p:T>0&&(u=l),q=kl,a());break;case 32:q===wl&&(e.event.altKey?(E&&(_=m-g*E,o=d+g*E),T&&(h=p-y*T,u=l+y*T),q=xl):(E<0?_=m:E>0&&(o=d),T<0?h=p:T>0&&(u=l),q=kl),I.attr("cursor",Sl[x]),a());break;default:return}bl()},!0).on("mousemove.brush",f,!0).on("mouseup.brush",r,!0);uc(e.event.view)}rf(),zu(k),n.call(k),$.start()}}function o(){var e=this.__brush||{selection:null};return e.extent=d.apply(this,arguments),e.dim=t,e}var s,d=df,c=sf,u=l(f,"start","brush","end"),_=6;return f.move=function(e,f){e.selection?e.on("start.brush",function(){i(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){i(this,arguments).end()}).tween("brush",function(){function e(e){r.selection=1===e&&uf(d)?null:c(e),n.call(a),o.brush()}var a=this,r=a.__brush,o=i(a,arguments),s=r.selection,d=t.input("function"==typeof f?f.apply(this,arguments):f,r.extent),c=ou(s,d);return s&&d?e:e(1)}):e.each(function(){var e=this,a=arguments,r=e.__brush,o=t.input("function"==typeof f?f.apply(e,a):f,r.extent),s=i(e,a).beforestart();zu(e),r.selection=null==o||uf(o)?null:o,n.call(e),s.start().brush().end()})},a.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){T(new yl(f,e,t.output(this.state.selection)),u.apply,u,[e,this.that,this.args])}},f.extent=function(e){return arguments.length?(d="function"==typeof e?e:gl([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),f):d},f.filter=function(e){return arguments.length?(c="function"==typeof e?e:gl(!!e),f):c},f.handleSize=function(e){return arguments.length?(_=+e,f):_},f.on=function(){var e=u.on.apply(u,arguments);return e===u?f:e},f}function _f(e){return function(t,f){return e(t.source.value+t.target.value,f.source.value+f.target.value)}}function mf(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function hf(){return new mf}function pf(e){return e.source}function gf(e){return e.target}function yf(e){return e.radius}function bf(e){return e.startAngle}function vf(e){return e.endAngle}function wf(){}function kf(e,t){var f=new wf;if(e instanceof wf)e.each(function(e,t){f.set(t,e)});else if(Array.isArray(e)){var n,i=-1,a=e.length;if(null==t)for(;++i<a;)f.set(i,e[i]);else for(;++i<a;)f.set(t(n=e[i],i,e),n)}else if(e)for(var r in e)f.set(r,e[r]);return f}function xf(){return{}}function qf(e,t,f){e[t]=f}function Ef(){return kf()}function Tf(e,t,f){e.set(t,f)}function Sf(){}function Mf(e,t){var f=new Sf;if(e instanceof Sf)e.each(function(e){f.add(e)});else if(e){var n=-1,i=e.length;if(null==t)for(;++n<i;)f.add(e[n]);else for(;++n<i;)f.add(t(e[n],n,e))}return f}function Cf(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}")}function Af(e,t){var f=Cf(e);return function(n,i){return t(f(n),i,e)}}function Of(e){var t=Object.create(null),f=[];return e.forEach(function(e){for(var n in e)n in t||f.push(t[n]=n)}),f}function Rf(e,t,f,n){if(isNaN(t)||isNaN(f))return e;var i,a,r,o,s,d,c,u,l,_=e._root,m={data:n},h=e._x0,p=e._y0,g=e._x1,y=e._y1;if(!_)return e._root=m,e;for(;_.length;)if((d=t>=(a=(h+g)/2))?h=a:g=a,(c=f>=(r=(p+y)/2))?p=r:y=r,i=_,!(_=_[u=c<<1|d]))return i[u]=m,e;if(o=+e._x.call(null,_.data),s=+e._y.call(null,_.data),t===o&&f===s)return m.next=_,i?i[u]=m:e._root=m,e;do{i=i?i[u]=new Array(4):e._root=new Array(4),(d=t>=(a=(h+g)/2))?h=a:g=a,(c=f>=(r=(p+y)/2))?p=r:y=r}while((u=c<<1|d)==(l=(s>=r)<<1|o>=a));return i[l]=_,i[u]=m,e}function Pf(e){return e[0]}function Nf(e){return e[1]}function Lf(e,t,f){var n=new jf(null==t?Pf:t,null==f?Nf:f,NaN,NaN,NaN,NaN);return null==e?n:n.addAll(e)}function jf(e,t,f,n,i,a){this._x=e,this._y=t,this._x0=f,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function $f(e){for(var t={data:e.data},f=t;e=e.next;)f=f.next={data:e.data};return t}function Df(e){return e.x+e.vx}function If(e){return e.y+e.vy}function Uf(e){return e.index}function Ff(e,t){var f=e.get(t);if(!f)throw new Error("missing: "+t);return f}function zf(e){return e.x}function Bf(e){return e.y}function Hf(e){return new Vf(e)}function Vf(e){if(!(t=b_.exec(e)))throw new Error("invalid format: "+e);var t,f=t[1]||" ",n=t[2]||">",i=t[3]||"-",a=t[4]||"",r=!!t[5],o=t[6]&&+t[6],s=!!t[7],d=t[8]&&+t[8].slice(1),c=t[9]||"";"n"===c?(s=!0,c="g"):y_[c]||(c=""),(r||"0"===f&&"="===n)&&(r=!0,f="0",n="="),this.fill=f,this.align=n,this.sign=i,this.symbol=a,this.zero=r,this.width=o,this.comma=s,this.precision=d,this.type=c}function Gf(t){return v_=x_(t),e.format=v_.format,e.formatPrefix=v_.formatPrefix,v_}function Wf(){this.reset()}function Xf(e,t,f){var n=e.s=t+f,i=n-t,a=n-i;e.t=t-a+(f-i)}function Yf(e){return e>1?0:e<-1?om:Math.acos(e)}function Kf(e){return e>1?sm:e<-1?-sm:Math.asin(e)}function Jf(e){return(e=wm(e/2))*e}function Qf(){}function Zf(e,t){e&&Tm.hasOwnProperty(e.type)&&Tm[e.type](e,t)}function en(e,t,f){var n,i=-1,a=e.length-f;for(t.lineStart();++i<a;)n=e[i],t.point(n[0],n[1],n[2]);t.lineEnd()}function tn(e,t){var f=-1,n=e.length;for(t.polygonStart();++f<n;)en(e[f],t,1);t.polygonEnd()}function fn(){Am.point=an}function nn(){rn(M_,C_)}function an(e,t){Am.point=rn,M_=e,C_=t,A_=e*=lm,O_=pm(t=(t*=lm)/2+dm),R_=wm(t)}function rn(e,t){t=(t*=lm)/2+dm;var f=(e*=lm)-A_,n=f>=0?1:-1,i=n*f,a=pm(t),r=wm(t),o=R_*r,s=O_*a+o*pm(i),d=o*n*wm(i);Mm.add(hm(d,s)),A_=e,O_=a,R_=r}function on(e){return[hm(e[1],e[0]),Kf(e[2])]}function sn(e){var t=e[0],f=e[1],n=pm(f);return[n*pm(t),n*wm(t),wm(f)]}function dn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function cn(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function un(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function ln(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function _n(e){var t=xm(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function mn(e,t){F_.push(z_=[P_=e,L_=e]),t<N_&&(N_=t),t>j_&&(j_=t)}function hn(e,t){var f=sn([e*lm,t*lm]);if(U_){var n=cn(U_,f),i=cn([n[1],-n[0],0],n);_n(i),i=on(i);var a,r=e-$_,o=r>0?1:-1,s=i[0]*um*o,d=_m(r)>180;d^(o*$_<s&&s<o*e)?(a=i[1]*um)>j_&&(j_=a):(s=(s+360)%360-180,d^(o*$_<s&&s<o*e)?(a=-i[1]*um)<N_&&(N_=a):(t<N_&&(N_=t),t>j_&&(j_=t))),d?e<$_?wn(P_,e)>wn(P_,L_)&&(L_=e):wn(e,L_)>wn(P_,L_)&&(P_=e):L_>=P_?(e<P_&&(P_=e),e>L_&&(L_=e)):e>$_?wn(P_,e)>wn(P_,L_)&&(L_=e):wn(e,L_)>wn(P_,L_)&&(P_=e)}else F_.push(z_=[P_=e,L_=e]);t<N_&&(N_=t),t>j_&&(j_=t),U_=f,$_=e}function pn(){Rm.point=hn}function gn(){z_[0]=P_,z_[1]=L_,Rm.point=mn,U_=null}function yn(e,t){if(U_){var f=e-$_;Om.add(_m(f)>180?f+(f>0?360:-360):f)}else D_=e,I_=t;Am.point(e,t),hn(e,t)}function bn(){Am.lineStart()}function vn(){yn(D_,I_),Am.lineEnd(),_m(Om)>rm&&(P_=-(L_=180)),z_[0]=P_,z_[1]=L_,U_=null}function wn(e,t){return(t-=e)<0?t+360:t}function kn(e,t){return e[0]-t[0]}function xn(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function qn(e,t){e*=lm;var f=pm(t*=lm);En(f*pm(e),f*wm(e),wm(t))}function En(e,t,f){V_+=(e-V_)/++B_,G_+=(t-G_)/B_,W_+=(f-W_)/B_}function Tn(){Pm.point=Sn}function Sn(e,t){e*=lm;var f=pm(t*=lm);fm=f*pm(e),nm=f*wm(e),im=wm(t),Pm.point=Mn,En(fm,nm,im)}function Mn(e,t){e*=lm;var f=pm(t*=lm),n=f*pm(e),i=f*wm(e),a=wm(t),r=hm(xm((r=nm*a-im*i)*r+(r=im*n-fm*a)*r+(r=fm*i-nm*n)*r),fm*n+nm*i+im*a);H_+=r,X_+=r*(fm+(fm=n)),Y_+=r*(nm+(nm=i)),K_+=r*(im+(im=a)),En(fm,nm,im)}function Cn(){Pm.point=qn}function An(){Pm.point=Rn}function On(){Pn(em,tm),Pm.point=qn}function Rn(e,t){em=e,tm=t,e*=lm,t*=lm,Pm.point=Pn;var f=pm(t);fm=f*pm(e),nm=f*wm(e),im=wm(t),En(fm,nm,im)}function Pn(e,t){e*=lm;var f=pm(t*=lm),n=f*pm(e),i=f*wm(e),a=wm(t),r=nm*a-im*i,o=im*n-fm*a,s=fm*i-nm*n,d=xm(r*r+o*o+s*s),c=Kf(d),u=d&&-c/d;J_+=u*r,Q_+=u*o,Z_+=u*s,H_+=c,X_+=c*(fm+(fm=n)),Y_+=c*(nm+(nm=i)),K_+=c*(im+(im=a)),En(fm,nm,im)}function Nn(e,t){return[e>om?e-cm:e<-om?e+cm:e,t]}function Ln(e,t,f){return(e%=cm)?t||f?Lm($n(e),Dn(t,f)):$n(e):t||f?Dn(t,f):Nn}function jn(e){return function(t,f){return t+=e,[t>om?t-cm:t<-om?t+cm:t,f]}}function $n(e){var t=jn(e);return t.invert=jn(-e),t}function Dn(e,t){function f(e,t){var f=pm(t),o=pm(e)*f,s=wm(e)*f,d=wm(t),c=d*n+o*i;return[hm(s*a-c*r,o*n-d*i),Kf(c*a+s*r)]}var n=pm(e),i=wm(e),a=pm(t),r=wm(t);return f.invert=function(e,t){var f=pm(t),o=pm(e)*f,s=wm(e)*f,d=wm(t),c=d*a-s*r;return[hm(s*a+d*r,o*n+c*i),Kf(c*n-o*i)]},f}function In(e,t,f,n,i,a){if(f){var r=pm(t),o=wm(t),s=n*f;null==i?(i=t+n*cm,a=t-s/2):(i=Un(r,i),a=Un(r,a),(n>0?i<a:i>a)&&(i+=n*cm));for(var d,c=i;n>0?c>a:c<a;c-=s)d=on([r,-o*pm(c),-o*wm(c)]),e.point(d[0],d[1])}}function Un(e,t){(t=sn(t))[0]-=e,_n(t);var f=Yf(-t[1]);return((-t[2]<0?-f:f)+cm-rm)%cm}function Fn(e,t,f,n){this.x=e,this.z=t,this.o=f,this.e=n,this.v=!1,this.n=this.p=null}function zn(e){if(t=e.length){for(var t,f,n=0,i=e[0];++n<t;)i.n=f=e[n],f.p=i,i=f;i.n=f=e[0],f.p=i}}function Bn(e,t,f,n){function i(i,a){return e<=i&&i<=f&&t<=a&&a<=n}function a(i,a,o,d){var c=0,u=0;if(null==i||(c=r(i,o))!==(u=r(a,o))||s(i,a)<0^o>0)do{d.point(0===c||3===c?e:f,c>1?n:t)}while((c=(c+o+4)%4)!==u);else d.point(a[0],a[1])}function r(n,i){return _m(n[0]-e)<rm?i>0?0:3:_m(n[0]-f)<rm?i>0?2:1:_m(n[1]-t)<rm?i>0?1:0:i>0?3:2}function o(e,t){return s(e.x,t.x)}function s(e,t){var f=r(e,1),n=r(t,1);return f!==n?f-n:0===f?t[1]-e[1]:1===f?e[0]-t[0]:2===f?e[1]-t[1]:t[0]-e[0]}return function(r){function s(e,t){i(e,t)&&k.point(e,t)}function d(){for(var t=0,f=0,i=l.length;f<i;++f)for(var a,r,o=l[f],s=1,d=o.length,c=o[0],u=c[0],_=c[1];s<d;++s)a=u,r=_,u=(c=o[s])[0],_=c[1],r<=n?_>n&&(u-a)*(n-r)>(_-r)*(e-a)&&++t:_<=n&&(u-a)*(n-r)<(_-r)*(e-a)&&--t;return t}function c(a,r){var o=i(a,r);if(l&&_.push([a,r]),v)m=a,h=r,p=o,v=!1,o&&(k.lineStart(),k.point(a,r));else if(o&&b)k.point(a,r);else{var s=[g=Math.max(Zm,Math.min(Qm,g)),y=Math.max(Zm,Math.min(Qm,y))],d=[a=Math.max(Zm,Math.min(Qm,a)),r=Math.max(Zm,Math.min(Qm,r))];Ym(s,d,e,t,f,n)?(b||(k.lineStart(),k.point(s[0],s[1])),k.point(d[0],d[1]),o||k.lineEnd(),w=!1):o&&(k.lineStart(),k.point(a,r),w=!1)}g=a,y=r,b=o}var u,l,_,m,h,p,g,y,b,v,w,k=r,x=Xm(),q={point:s,lineStart:function(){q.point=c,l&&l.push(_=[]),v=!0,b=!1,g=y=NaN},lineEnd:function(){u&&(c(m,h),p&&b&&x.rejoin(),u.push(x.result())),q.point=s,b&&k.lineEnd()},polygonStart:function(){k=x,u=[],l=[],w=!0},polygonEnd:function(){var e=d(),t=w&&e,f=(u=Od(u)).length;(t||f)&&(r.polygonStart(),t&&(r.lineStart(),a(null,null,1,r),r.lineEnd()),f&&Jm(u,o,e,a,r),r.polygonEnd()),k=r,u=l=_=null}};return q}}function Hn(){nh.point=nh.lineEnd=Qf}function Vn(e,t){jm=e*=lm,$m=wm(t*=lm),Dm=pm(t),nh.point=Gn}function Gn(e,t){e*=lm;var f=wm(t*=lm),n=pm(t),i=_m(e-jm),a=pm(i),r=n*wm(i),o=Dm*f-$m*n*a,s=$m*f+Dm*n*a;fh.add(hm(xm(r*r+o*o),s)),jm=e,$m=f,Dm=n}function Wn(e,t){return!(!e||!dh.hasOwnProperty(e.type))&&dh[e.type](e,t)}function Xn(e,t){return 0===oh(e,t)}function Yn(e,t){var f=oh(e[0],e[1]);return oh(e[0],t)+oh(t,e[1])<=f+rm}function Kn(e,t){return!!th(e.map(Jn),Qn(t))}function Jn(e){return(e=e.map(Qn)).pop(),e}function Qn(e){return[e[0]*lm,e[1]*lm]}function Zn(e,t,f){var n=qd(e,t-rm,f).concat(t);return function(e){return n.map(function(t){return[e,t]})}}function ei(e,t,f){var n=qd(e,t-rm,f).concat(t);return function(e){return n.map(function(t){return[t,e]})}}function ti(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return qd(gm(a/p)*p,i,p).map(l).concat(qd(gm(d/g)*g,s,g).map(_)).concat(qd(gm(n/m)*m,f,m).filter(function(e){return _m(e%p)>rm}).map(c)).concat(qd(gm(o/h)*h,r,h).filter(function(e){return _m(e%g)>rm}).map(u))}var f,n,i,a,r,o,s,d,c,u,l,_,m=10,h=m,p=90,g=360,y=2.5;return e.lines=function(){return t().map(function(e){return{type:"LineString",coordinates:e}})},e.outline=function(){return{type:"Polygon",coordinates:[l(a).concat(_(s).slice(1),l(i).reverse().slice(1),_(d).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.extentMajor(t).extentMinor(t):e.extentMinor()},e.extentMajor=function(t){return arguments.length?(a=+t[0][0],i=+t[1][0],d=+t[0][1],s=+t[1][1],a>i&&(t=a,a=i,i=t),d>s&&(t=d,d=s,s=t),e.precision(y)):[[a,d],[i,s]]},e.extentMinor=function(t){return arguments.length?(n=+t[0][0],f=+t[1][0],o=+t[0][1],r=+t[1][1],n>f&&(t=n,n=f,f=t),o>r&&(t=o,o=r,r=t),e.precision(y)):[[n,o],[f,r]]},e.step=function(t){return arguments.length?e.stepMajor(t).stepMinor(t):e.stepMinor()},e.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],e):[p,g]},e.stepMinor=function(t){return arguments.length?(m=+t[0],h=+t[1],e):[m,h]},e.precision=function(t){return arguments.length?(y=+t,c=Zn(o,r,90),u=ei(n,f,y),l=Zn(d,s,90),_=ei(a,i,y),e):y},e.extentMajor([[-180,-90+rm],[180,90-rm]]).extentMinor([[-180,-80-rm],[180,80+rm]])}function fi(){_h.point=ni}function ni(e,t){_h.point=ii,Im=Fm=e,Um=zm=t}function ii(e,t){lh.add(zm*e-Fm*t),Fm=e,zm=t}function ai(){ii(Im,Um)}function ri(e,t){bh+=e,vh+=t,++wh}function oi(){Mh.point=si}function si(e,t){Mh.point=di,ri(Vm=e,Gm=t)}function di(e,t){var f=e-Vm,n=t-Gm,i=xm(f*f+n*n);kh+=i*(Vm+e)/2,xh+=i*(Gm+t)/2,qh+=i,ri(Vm=e,Gm=t)}function ci(){Mh.point=ri}function ui(){Mh.point=_i}function li(){mi(Bm,Hm)}function _i(e,t){Mh.point=mi,ri(Bm=Vm=e,Hm=Gm=t)}function mi(e,t){var f=e-Vm,n=t-Gm,i=xm(f*f+n*n);kh+=i*(Vm+e)/2,xh+=i*(Gm+t)/2,qh+=i,Eh+=(i=Gm*e-Vm*t)*(Vm+e),Th+=i*(Gm+t),Sh+=3*i,ri(Vm=e,Gm=t)}function hi(e){this._context=e}function pi(e,t){Lh.point=gi,Ah=Rh=e,Oh=Ph=t}function gi(e,t){Rh-=e,Ph-=t,Nh.add(xm(Rh*Rh+Ph*Ph)),Rh=e,Ph=t}function yi(){this._string=[]}function bi(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function vi(e){return e.length>1}function wi(e,t){return((e=e.x)[0]<0?e[1]-sm-rm:sm-e[1])-((t=t.x)[0]<0?t[1]-sm-rm:sm-t[1])}function ki(e,t,f,n){var i,a,r=wm(e-f);return _m(r)>rm?mm((wm(t)*(a=pm(n))*wm(f)-wm(n)*(i=pm(t))*wm(e))/(i*a*r)):(t+n)/2}function xi(e){return function(t){var f=new qi;for(var n in e)f[n]=e[n];return f.stream=t,f}}function qi(){}function Ei(e,t,f){var n=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=e.clipExtent&&e.clipExtent();e.scale(150).translate([0,0]),null!=a&&e.clipExtent(null),Sm(f,e.stream(yh));var r=yh.result(),o=Math.min(n/(r[1][0]-r[0][0]),i/(r[1][1]-r[0][1])),s=+t[0][0]+(n-o*(r[1][0]+r[0][0]))/2,d=+t[0][1]+(i-o*(r[1][1]+r[0][1]))/2;return null!=a&&e.clipExtent(a),e.scale(150*o).translate([s,d])}function Ti(e,t,f){return Ei(e,[[0,0],t],f)}function Si(e){return xi({point:function(t,f){t=e(t,f),this.stream.point(t[0],t[1])}})}function Mi(e,t){function f(n,i,a,r,o,s,d,c,u,l,_,m,h,p){var g=d-n,y=c-i,b=g*g+y*y;if(b>4*t&&h--){var v=r+l,w=o+_,k=s+m,x=xm(v*v+w*w+k*k),q=Kf(k/=x),E=_m(_m(k)-1)<rm||_m(a-u)<rm?(a+u)/2:hm(w,v),T=e(E,q),S=T[0],M=T[1],C=S-n,A=M-i,O=y*C-g*A;(O*O/b>t||_m((g*C+y*A)/b-.5)>.3||r*l+o*_+s*m<Uh)&&(f(n,i,a,r,o,s,S,M,E,v/=x,w/=x,k,h,p),p.point(S,M),f(S,M,E,v,w,k,d,c,u,l,_,m,h,p))}}return function(t){function n(f,n){f=e(f,n),t.point(f[0],f[1])}function i(){g=NaN,k.point=a,t.lineStart()}function a(n,i){var a=sn([n,i]),r=e(n,i);f(g,y,p,b,v,w,g=r[0],y=r[1],p=n,b=a[0],v=a[1],w=a[2],Ih,t),t.point(g,y)}function r(){k.point=n,t.lineEnd()}function o(){i(),k.point=s,k.lineEnd=d}function s(e,t){a(c=e,t),u=g,l=y,_=b,m=v,h=w,k.point=a}function d(){f(g,y,p,b,v,w,u,l,c,_,m,h,Ih,t),k.lineEnd=r,r()}var c,u,l,_,m,h,p,g,y,b,v,w,k={point:n,lineStart:i,lineEnd:r,polygonStart:function(){t.polygonStart(),k.lineStart=o},polygonEnd:function(){t.polygonEnd(),k.lineStart=i}};return k}}function Ci(e){return Ai(function(){return e})()}function Ai(e){function t(e){return e=c(e[0]*lm,e[1]*lm),[e[0]*p+o,s-e[1]*p]}function f(e){return(e=c.invert((e[0]-o)/p,(s-e[1])/p))&&[e[0]*um,e[1]*um]}function n(e,t){return e=r(e,t),[e[0]*p+o,s-e[1]*p]}function i(){c=Lm(d=Ln(w,k,x),r);var e=r(b,v);return o=g-e[0]*p,s=y+e[1]*p,a()}function a(){return m=h=null,t}var r,o,s,d,c,u,l,_,m,h,p=150,g=480,y=250,b=0,v=0,w=0,k=0,x=0,q=null,E=$h,T=null,S=ch,M=.5,C=Fh(n,M);return t.stream=function(e){return m&&h===e?m:m=zh(E(d,C(S(h=e))))},t.clipAngle=function(e){return arguments.length?(E=+e?Dh(q=e*lm,6*lm):(q=null,$h),a()):q*um},t.clipExtent=function(e){return arguments.length?(S=null==e?(T=u=l=_=null,ch):Bn(T=+e[0][0],u=+e[0][1],l=+e[1][0],_=+e[1][1]),a()):null==T?null:[[T,u],[l,_]]},t.scale=function(e){return arguments.length?(p=+e,i()):p},t.translate=function(e){return arguments.length?(g=+e[0],y=+e[1],i()):[g,y]},t.center=function(e){return arguments.length?(b=e[0]%360*lm,v=e[1]%360*lm,i()):[b*um,v*um]},t.rotate=function(e){return arguments.length?(w=e[0]%360*lm,k=e[1]%360*lm,x=e.length>2?e[2]%360*lm:0,i()):[w*um,k*um,x*um]},t.precision=function(e){return arguments.length?(C=Fh(n,M=e*e),a()):xm(M)},t.fitExtent=function(e,f){return Ei(t,e,f)},t.fitSize=function(e,f){return Ti(t,e,f)},function(){return r=e.apply(this,arguments),t.invert=r.invert&&f,i()}}function Oi(e){var t=0,f=om/3,n=Ai(e),i=n(t,f);return i.parallels=function(e){return arguments.length?n(t=e[0]*lm,f=e[1]*lm):[t*um,f*um]},i}function Ri(e){function t(e,t){return[e*f,wm(t)/f]}var f=pm(e);return t.invert=function(e,t){return[e/f,Kf(t*f)]},t}function Pi(e,t){function f(e,t){var f=xm(a-2*i*wm(t))/i;return[f*wm(e*=i),r-f*pm(e)]}var n=wm(e),i=(n+wm(t))/2;if(_m(i)<rm)return Ri(e);var a=1+n*(2*i-n),r=xm(a)/i;return f.invert=function(e,t){var f=r-t;return[hm(e,_m(f))/i*km(f),Kf((a-(e*e+f*f)*i*i)/(2*i))]},f}function Ni(e){var t=e.length;return{point:function(f,n){for(var i=-1;++i<t;)e[i].point(f,n)},sphere:function(){for(var f=-1;++f<t;)e[f].sphere()},lineStart:function(){for(var f=-1;++f<t;)e[f].lineStart()},lineEnd:function(){for(var f=-1;++f<t;)e[f].lineEnd()},polygonStart:function(){for(var f=-1;++f<t;)e[f].polygonStart()},polygonEnd:function(){for(var f=-1;++f<t;)e[f].polygonEnd()}}}function Li(e){return function(t,f){var n=pm(t),i=pm(f),a=e(n*i);return[a*i*wm(t),a*wm(f)]}}function ji(e){return function(t,f){var n=xm(t*t+f*f),i=e(n),a=wm(i),r=pm(i);return[hm(t*a,n*r),Kf(n&&f*a/n)]}}function $i(e,t){return[e,bm(qm((sm+t)/2))]}function Di(e){function t(){var t=om*o(),r=a(Wm(a.rotate()).invert([0,0]));return d(null==c?[[r[0]-t,r[1]-t],[r[0]+t,r[1]+t]]:e===$i?[[Math.max(r[0]-t,c),f],[Math.min(r[0]+t,n),i]]:[[c,Math.max(r[1]-t,f)],[n,Math.min(r[1]+t,i)]])}var f,n,i,a=Ci(e),r=a.center,o=a.scale,s=a.translate,d=a.clipExtent,c=null;return a.scale=function(e){return arguments.length?(o(e),t()):o()},a.translate=function(e){return arguments.length?(s(e),t()):s()},a.center=function(e){return arguments.length?(r(e),t()):r()},a.clipExtent=function(e){return arguments.length?(null==e?c=f=n=i=null:(c=+e[0][0],f=+e[0][1],n=+e[1][0],i=+e[1][1]),t()):null==c?null:[[c,f],[n,i]]},t()}function Ii(e){return qm((sm+e)/2)}function Ui(e,t){function f(e,t){a>0?t<-sm+rm&&(t=-sm+rm):t>sm-rm&&(t=sm-rm);var f=a/vm(Ii(t),i);return[f*wm(i*e),a-f*pm(i*e)]}var n=pm(e),i=e===t?wm(e):bm(n/pm(t))/bm(Ii(t)/Ii(e)),a=n*vm(Ii(e),i)/i;return i?(f.invert=function(e,t){var f=a-t,n=km(i)*xm(e*e+f*f);return[hm(e,_m(f))/i*km(f),2*mm(vm(a/n,1/i))-sm]},f):$i}function Fi(e,t){return[e,t]}function zi(e,t){function f(e,t){var f=a-t,n=i*e;return[f*wm(n),a-f*pm(n)]}var n=pm(e),i=e===t?wm(e):(n-pm(t))/(t-e),a=n/i+e;return _m(i)<rm?Fi:(f.invert=function(e,t){var f=a-t;return[hm(e,_m(f))/i*km(f),a-km(i)*xm(e*e+f*f)]},f)}function Bi(e,t){var f=pm(t),n=pm(e)*f;return[f*wm(e)/n,wm(t)/n]}function Hi(e,t,f,n){return 1===e&&1===t&&0===f&&0===n?ch:xi({point:function(i,a){this.stream.point(i*e+f,a*t+n)}})}function Vi(e,t){return[pm(t)*wm(e),wm(t)]}function Gi(e,t){var f=pm(t),n=1+pm(e)*f;return[f*wm(e)/n,wm(t)/n]}function Wi(e,t){return[bm(qm((sm+t)/2)),-e]}function Xi(e,t){return e.parent===t.parent?1:2}function Yi(e){return e.reduce(Ki,0)/e.length}function Ki(e,t){return e+t.x}function Ji(e){return 1+e.reduce(Qi,0)}function Qi(e,t){return Math.max(e,t.y)}function Zi(e){for(var t;t=e.children;)e=t[0];return e}function ea(e){for(var t;t=e.children;)e=t[t.length-1];return e}function ta(e){var t=0,f=e.children,n=f&&f.length;if(n)for(;--n>=0;)t+=f[n].value;else t=1;e.value=t}function fa(e,t){if(e===t)return e;var f=e.ancestors(),n=t.ancestors(),i=null;for(e=f.pop(),t=n.pop();e===t;)i=e,e=f.pop(),t=n.pop();return i}function na(e,t){var f,n,i,a,r,o=new oa(e),s=+e.value&&(o.value=e.value),d=[o];for(null==t&&(t=ia);f=d.pop();)if(s&&(f.value=+f.data.value),(i=t(f.data))&&(r=i.length))for(f.children=new Array(r),a=r-1;a>=0;--a)d.push(n=f.children[a]=new oa(i[a])),n.parent=f,n.depth=f.depth+1;return o.eachBefore(ra)}function ia(e){return e.children}function aa(e){e.data=e.data.data}function ra(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function oa(e){this.data=e,this.depth=this.height=0,this.parent=null}function sa(e){for(var t,f,n=e.length;n;)f=Math.random()*n--|0,t=e[n],e[n]=e[f],e[f]=t;return e}function da(e,t){var f,n;if(la(t,e))return[t];for(f=0;f<e.length;++f)if(ca(t,e[f])&&la(ha(e[f],t),e))return[e[f],t];for(f=0;f<e.length-1;++f)for(n=f+1;n<e.length;++n)if(ca(ha(e[f],e[n]),t)&&ca(ha(e[f],t),e[n])&&ca(ha(e[n],t),e[f])&&la(pa(e[f],e[n],t),e))return[e[f],e[n],t];throw new Error}function ca(e,t){var f=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return f<0||f*f<n*n+i*i}function ua(e,t){var f=e.r-t.r+1e-6,n=t.x-e.x,i=t.y-e.y;return f>0&&f*f>n*n+i*i}function la(e,t){for(var f=0;f<t.length;++f)if(!ua(e,t[f]))return!1;return!0}function _a(e){switch(e.length){case 1:return ma(e[0]);case 2:return ha(e[0],e[1]);case 3:return pa(e[0],e[1],e[2])}}function ma(e){return{x:e.x,y:e.y,r:e.r}}function ha(e,t){var f=e.x,n=e.y,i=e.r,a=t.x,r=t.y,o=t.r,s=a-f,d=r-n,c=o-i,u=Math.sqrt(s*s+d*d);return{x:(f+a+s/u*c)/2,y:(n+r+d/u*c)/2,r:(u+i+o)/2}}function pa(e,t,f){var n=e.x,i=e.y,a=e.r,r=t.x,o=t.y,s=t.r,d=f.x,c=f.y,u=f.r,l=n-r,_=n-d,m=i-o,h=i-c,p=s-a,g=u-a,y=n*n+i*i-a*a,b=y-r*r-o*o+s*s,v=y-d*d-c*c+u*u,w=_*m-l*h,k=(m*v-h*b)/(2*w)-n,x=(h*p-m*g)/w,q=(_*b-l*v)/(2*w)-i,E=(l*g-_*p)/w,T=x*x+E*E-1,S=2*(a+k*x+q*E),M=k*k+q*q-a*a,C=-(T?(S+Math.sqrt(S*S-4*T*M))/(2*T):M/S);return{x:n+k+x*C,y:i+q+E*C,r:C}}function ga(e,t,f){var n=e.x,i=e.y,a=t.r+f.r,r=e.r+f.r,o=t.x-n,s=t.y-i,d=o*o+s*s;if(d){var c=.5+((r*=r)-(a*=a))/(2*d),u=Math.sqrt(Math.max(0,2*a*(r+d)-(r-=d)*r-a*a))/(2*d);f.x=n+c*o+u*s,f.y=i+c*s-u*o}else f.x=n+r,f.y=i}function ya(e,t){var f=t.x-e.x,n=t.y-e.y,i=e.r+t.r;return i*i-1e-6>f*f+n*n}function ba(e){var t=e._,f=e.next._,n=t.r+f.r,i=(t.x*f.r+f.x*t.r)/n,a=(t.y*f.r+f.y*t.r)/n;return i*i+a*a}function va(e){this._=e,this.next=null,this.previous=null}function wa(e){if(!(i=e.length))return 0;var t,f,n,i,a,r,o,s,d,c,u;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(f=e[1],t.x=-f.r,f.x=t.r,f.y=0,!(i>2))return t.r+f.r;ga(f,t,n=e[2]),t=new va(t),f=new va(f),n=new va(n),t.next=n.previous=f,f.next=t.previous=n,n.next=f.previous=t;e:for(o=3;o<i;++o){ga(t._,f._,n=e[o]),n=new va(n),s=f.next,d=t.previous,c=f._.r,u=t._.r;do{if(c<=u){if(ya(s._,n._)){f=s,t.next=f,f.previous=t,--o;continue e}c+=s._.r,s=s.next}else{if(ya(d._,n._)){(t=d).next=f,f.previous=t,--o;continue e}u+=d._.r,d=d.previous}}while(s!==d.next);for(n.previous=t,n.next=f,t.next=f.previous=f=n,a=ba(t);(n=n.next)!==f;)(r=ba(n))<a&&(t=n,a=r);f=t.next}for(t=[f._],n=f;(n=n.next)!==f;)t.push(n._);for(n=Xh(t),o=0;o<i;++o)t=e[o],t.x-=n.x,t.y-=n.y;return n.r}function ka(e){return null==e?null:xa(e)}function xa(e){if("function"!=typeof e)throw new Error;return e}function qa(){return 0}function Ea(e){return Math.sqrt(e.value)}function Ta(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Sa(e,t){return function(f){if(n=f.children){var n,i,a,r=n.length,o=e(f)*t||0;if(o)for(i=0;i<r;++i)n[i].r+=o;if(a=wa(n),o)for(i=0;i<r;++i)n[i].r-=o;f.r=a+o}}}function Ma(e){return function(t){var f=t.parent;t.r*=e,f&&(t.x=f.x+e*t.x,t.y=f.y+e*t.y)}}function Ca(e){return e.id}function Aa(e){return e.parentId}function Oa(e,t){return e.parent===t.parent?1:2}function Ra(e){var t=e.children;return t?t[0]:e.t}function Pa(e){var t=e.children;return t?t[t.length-1]:e.t}function Na(e,t,f){var n=f/(t.i-e.i);t.c-=n,t.s+=f,e.c+=n,t.z+=f,t.m+=f}function La(e){for(var t,f=0,n=0,i=e.children,a=i.length;--a>=0;)(t=i[a]).z+=f,t.m+=f,f+=t.s+(n+=t.c)}function ja(e,t,f){return e.a.parent===t.parent?e.a:f}function $a(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function Da(e){for(var t,f,n,i,a,r=new $a(e,0),o=[r];t=o.pop();)if(n=t._.children)for(t.children=new Array(a=n.length),i=a-1;i>=0;--i)o.push(f=t.children[i]=new $a(n[i],i)),f.parent=t;return(r.parent=new $a(null,0)).children=[r],r}function Ia(e,t,f,n,i,a){for(var r,o,s,d,c,u,l,_,m,h,p,g=[],y=t.children,b=0,v=0,w=y.length,k=t.value;b<w;){s=i-f,d=a-n;do{c=y[v++].value}while(!c&&v<w);for(u=l=c,p=c*c*(h=Math.max(d/s,s/d)/(k*e)),m=Math.max(l/p,p/u);v<w;++v){if(c+=o=y[v].value,o<u&&(u=o),o>l&&(l=o),p=c*c*h,(_=Math.max(l/p,p/u))>m){c-=o;break}m=_}g.push(r={value:c,dice:s<d,children:y.slice(b,v)}),r.dice?Jh(r,f,n,i,k?n+=d*c/k:a):tp(r,f,n,k?f+=s*c/k:i,a),k-=c,b=v}return g}function Ua(e,t){return e[0]-t[0]||e[1]-t[1]}function Fa(e){for(var t=e.length,f=[0,1],n=2,i=2;i<t;++i){for(;n>1&&ap(e[f[n-2]],e[f[n-1]],e[i])<=0;)--n;f[n++]=i}return f.slice(0,n)}function za(e){this._size=e,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function Ba(e){if(!e._start)try{Ha(e)}catch(t){if(e._tasks[e._ended+e._active-1])Ga(e,t);else if(!e._data)throw t}}function Ha(e){for(;e._start=e._waiting&&e._active<e._size;){var t=e._ended+e._active,f=e._tasks[t],n=f.length-1,i=f[n];f[n]=Va(e,t),--e._waiting,++e._active,f=i.apply(null,f),e._tasks[t]&&(e._tasks[t]=f||op)}}function Va(e,t){return function(f,n){e._tasks[t]&&(--e._active,++e._ended,e._tasks[t]=null,null==e._error&&(null!=f?Ga(e,f):(e._data[t]=n,e._waiting?Ba(e):Wa(e))))}}function Ga(e,t){var f,n=e._tasks.length;for(e._error=t,e._data=void 0,e._waiting=NaN;--n>=0;)if((f=e._tasks[n])&&(e._tasks[n]=null,f.abort))try{f.abort()}catch(t){}e._active=NaN,Wa(e)}function Wa(e){if(!e._active&&e._call){var t=e._data;e._data=void 0,e._call(e._error,t)}}function Xa(e){if(null==e)e=1/0;else if(!((e=+e)>=1))throw new Error("invalid concurrency");return new za(e)}function Ya(e){return function(t,f){e(null==t?f:null)}}function Ka(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}function Ja(e,t){return function(f){return e(f.responseText,t)}}function Qa(e){function t(t){var a=t+"",r=f.get(a);if(!r){if(i!==Sp)return i;f.set(a,r=n.push(t))}return e[(r-1)%e.length]}var f=kf(),n=[],i=Sp;return e=null==e?[]:Tp.call(e),t.domain=function(e){if(!arguments.length)return n.slice();n=[],f=kf();for(var i,a,r=-1,o=e.length;++r<o;)f.has(a=(i=e[r])+"")||f.set(a,n.push(i));return t},t.range=function(f){return arguments.length?(e=Tp.call(f),t):e.slice()},t.unknown=function(e){return arguments.length?(i=e,t):i},t.copy=function(){return Qa().domain(n).range(e).unknown(i)},t}function Za(){function e(){var e=i().length,n=r[1]<r[0],u=r[n-0],l=r[1-n];t=(l-u)/Math.max(1,e-s+2*d),o&&(t=Math.floor(t)),u+=(l-u-t*(e-s))*c,f=t*(1-s),o&&(u=Math.round(u),f=Math.round(f));var _=qd(e).map(function(e){return u+t*e});return a(n?_.reverse():_)}var t,f,n=Qa().unknown(void 0),i=n.domain,a=n.range,r=[0,1],o=!1,s=0,d=0,c=.5;return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),e()):i()},n.range=function(t){return arguments.length?(r=[+t[0],+t[1]],e()):r.slice()},n.rangeRound=function(t){return r=[+t[0],+t[1]],o=!0,e()},n.bandwidth=function(){return f},n.step=function(){return t},n.round=function(t){return arguments.length?(o=!!t,e()):o},n.padding=function(t){return arguments.length?(s=d=Math.max(0,Math.min(1,t)),e()):s},n.paddingInner=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),e()):s},n.paddingOuter=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),e()):d},n.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),e()):c},n.copy=function(){return Za().domain(i()).range(r).round(o).paddingInner(s).paddingOuter(d).align(c)},e()}function er(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return er(t())},e}function tr(e,t){return(t-=e=+e)?function(f){return(f-e)/t}:Mp(t)}function fr(e){return function(t,f){var n=e(t=+t,f=+f);return function(e){return e<=t?0:e>=f?1:n(e)}}}function nr(e){return function(t,f){var n=e(t=+t,f=+f);return function(e){return e<=0?t:e>=1?f:n(e)}}}function ir(e,t,f,n){var i=e[0],a=e[1],r=t[0],o=t[1];return a<i?(i=f(a,i),r=n(o,r)):(i=f(i,a),r=n(r,o)),function(e){return r(i(e))}}function ar(e,t,f,n){var i=Math.min(e.length,t.length)-1,a=new Array(i),r=new Array(i),o=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<i;)a[o]=f(e[o],e[o+1]),r[o]=n(t[o],t[o+1]);return function(t){var f=_d(e,t,1,i)-1;return r[f](a[f](t))}}function rr(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function or(e,t){function f(){return i=Math.min(o.length,s.length)>2?ar:ir,a=r=null,n}function n(t){return(a||(a=i(o,s,c?fr(e):e,d)))(+t)}var i,a,r,o=Ap,s=Ap,d=ou,c=!1;return n.invert=function(e){return(r||(r=i(s,o,tr,c?nr(t):t)))(+e)},n.domain=function(e){return arguments.length?(o=Ep.call(e,Cp),f()):o.slice()},n.range=function(e){return arguments.length?(s=Tp.call(e),f()):s.slice()},n.rangeRound=function(e){return s=Tp.call(e),d=su,f()},n.clamp=function(e){return arguments.length?(c=!!e,f()):c},n.interpolate=function(e){return arguments.length?(d=e,f()):d},f()}function sr(e){var t=e.domain;return e.ticks=function(e){var f=t();return Md(f[0],f[f.length-1],null==e?10:e)},e.tickFormat=function(e,f){return Op(t(),e,f)},e.nice=function(f){null==f&&(f=10);var i,a=t(),r=0,o=a.length-1,s=a[r],d=a[o];return d<s&&(i=s,s=d,d=i,i=r,r=o,o=i),(i=n(s,d,f))>0?i=n(s=Math.floor(s/i)*i,d=Math.ceil(d/i)*i,f):i<0&&(i=n(s=Math.ceil(s*i)/i,d=Math.floor(d*i)/i,f)),i>0?(a[r]=Math.floor(s/i)*i,a[o]=Math.ceil(d/i)*i,t(a)):i<0&&(a[r]=Math.ceil(s*i)/i,a[o]=Math.floor(d*i)/i,t(a)),e},e}function dr(){var e=or(tr,fu);return e.copy=function(){return rr(e,dr())},sr(e)}function cr(){function e(e){return+e}var t=[0,1];return e.invert=e,e.domain=e.range=function(f){return arguments.length?(t=Ep.call(f,Cp),e):t.slice()},e.copy=function(){return cr().domain(t)},sr(e)}function ur(e,t){return(t=Math.log(t/e))?function(f){return Math.log(f/e)/t}:Mp(t)}function lr(e,t){return e<0?function(f){return-Math.pow(-t,f)*Math.pow(-e,1-f)}:function(f){return Math.pow(t,f)*Math.pow(e,1-f)}}function _r(e){return isFinite(e)?+("1e"+e):e<0?0:e}function mr(e){return 10===e?_r:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function hr(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function pr(e){return function(t){return-e(-t)}}function gr(){function t(){return a=hr(i),r=mr(i),n()[0]<0&&(a=pr(a),r=pr(r)),f}var f=or(ur,lr).domain([1,10]),n=f.domain,i=10,a=hr(10),r=mr(10);return f.base=function(e){return arguments.length?(i=+e,t()):i},f.domain=function(e){return arguments.length?(n(e),t()):n()},f.ticks=function(e){var t,f=n(),o=f[0],s=f[f.length-1];(t=s<o)&&(l=o,o=s,s=l);var d,c,u,l=a(o),_=a(s),m=null==e?10:+e,h=[];if(!(i%1)&&_-l<m){if(l=Math.round(l)-1,_=Math.round(_)+1,o>0){for(;l<_;++l)for(c=1,d=r(l);c<i;++c)if(!((u=d*c)<o)){if(u>s)break;h.push(u)}}else for(;l<_;++l)for(c=i-1,d=r(l);c>=1;--c)if(!((u=d*c)<o)){if(u>s)break;h.push(u)}}else h=Md(l,_,Math.min(_-l,m)).map(r);return t?h.reverse():h},f.tickFormat=function(t,n){if(null==n&&(n=10===i?".0e":","),"function"!=typeof n&&(n=e.format(n)),t===1/0)return n;null==t&&(t=10);var o=Math.max(1,i*t/f.ticks().length);return function(e){var t=e/r(Math.round(a(e)));return t*i<i-.5&&(t*=i),t<=o?n(e):""}},f.nice=function(){return n(Rp(n(),{floor:function(e){return r(Math.floor(a(e)))},ceil:function(e){return r(Math.ceil(a(e)))}}))},f.copy=function(){return rr(f,gr().base(i))},f}function yr(e,t){return e<0?-Math.pow(-e,t):Math.pow(e,t)}function br(){var e=1,t=or(function(t,f){return(f=yr(f,e)-(t=yr(t,e)))?function(n){return(yr(n,e)-t)/f}:Mp(f)},function(t,f){return f=yr(f,e)-(t=yr(t,e)),function(n){return yr(t+f*n,1/e)}}),f=t.domain;return t.exponent=function(t){return arguments.length?(e=+t,f(f())):e},t.copy=function(){return rr(t,br().exponent(e))},sr(t)}function vr(){function e(){var e=0,a=Math.max(1,n.length);for(i=new Array(a-1);++e<a;)i[e-1]=Ad(f,e/a);return t}function t(e){if(!isNaN(e=+e))return n[_d(i,e)]}var f=[],n=[],i=[];return t.invertExtent=function(e){var t=n.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:f[0],t<i.length?i[t]:f[f.length-1]]},t.domain=function(t){if(!arguments.length)return f.slice();f=[];for(var n,i=0,a=t.length;i<a;++i)null==(n=t[i])||isNaN(n=+n)||f.push(n);return f.sort(cd),e()},t.range=function(t){return arguments.length?(n=Tp.call(t),e()):n.slice()},t.quantiles=function(){return i.slice()},t.copy=function(){return vr().domain(f).range(n)},t}function wr(){function e(e){if(e<=e)return r[_d(a,e,0,i)]}function t(){var t=-1;for(a=new Array(i);++t<i;)a[t]=((t+1)*n-(t-i)*f)/(i+1);return e}var f=0,n=1,i=1,a=[.5],r=[0,1];return e.domain=function(e){return arguments.length?(f=+e[0],n=+e[1],t()):[f,n]},e.range=function(e){return arguments.length?(i=(r=Tp.call(e)).length-1,t()):r.slice()},e.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:t<1?[f,a[0]]:t>=i?[a[i-1],n]:[a[t-1],a[t]]},e.copy=function(){return wr().domain([f,n]).range(r)},sr(e)}function kr(){function e(e){if(e<=e)return f[_d(t,e,0,n)]}var t=[.5],f=[0,1],n=1;return e.domain=function(i){return arguments.length?(t=Tp.call(i),n=Math.min(t.length,f.length-1),e):t.slice()},e.range=function(i){return arguments.length?(f=Tp.call(i),n=Math.min(t.length,f.length-1),e):f.slice()},e.invertExtent=function(e){var n=f.indexOf(e);return[t[n-1],t[n]]},e.copy=function(){return kr().domain(t).range(f)},e}function xr(e,t,f,n){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(f){return e(f=new Date(f-1)),t(f,1),e(f),f},i.round=function(e){var t=i(e),f=i.ceil(e);return e-t<f-e?t:f},i.offset=function(e,f){return t(e=new Date(+e),null==f?1:Math.floor(f)),e},i.range=function(f,n,a){var r=[];if(f=i.ceil(f),a=null==a?1:Math.floor(a),!(f<n&&a>0))return r;do{r.push(new Date(+f))}while(t(f,a),e(f),f<n);return r},i.filter=function(f){return xr(function(t){if(t>=t)for(;e(t),!f(t);)t.setTime(t-1)},function(e,n){if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!f(e););else for(;--n>=0;)for(;t(e,1),!f(e););})},f&&(i.count=function(t,n){return Pp.setTime(+t),Np.setTime(+n),e(Pp),e(Np),Math.floor(f(Pp,Np))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(n?function(t){return n(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}function qr(e){return xr(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*$p)/Dp})}function Er(e){return xr(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/Dp})}function Tr(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Sr(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Mr(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function Cr(e){function t(e,t){return function(f){var n,i,a,r=[],o=-1,s=0,d=e.length;for(f instanceof Date||(f=new Date(+f));++o<d;)37===e.charCodeAt(o)&&(r.push(e.slice(s,o)),null!=(i=jg[n=e.charAt(++o)])?n=e.charAt(++o):i="e"===n?" ":"0",(a=t[n])&&(n=a(f,i)),r.push(n),s=o+1);return r.push(e.slice(s,o)),r.join("")}}function f(e,t){return function(f){var i=Mr(1900);if(n(i,e,f+="",0)!=f.length)return null;if("p"in i&&(i.H=i.H%12+12*i.p),"W"in i||"U"in i){"w"in i||(i.w="W"in i?1:0);var a="Z"in i?Sr(Mr(i.y)).getUTCDay():t(Mr(i.y)).getDay();i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(a+5)%7:i.w+7*i.U-(a+6)%7}return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Sr(i)):t(i)}}function n(e,t,f,n){for(var i,a,r=0,o=t.length,s=f.length;r<o;){if(n>=s)return-1;if(37===(i=t.charCodeAt(r++))){if(i=t.charAt(r++),!(a=q[i in jg?t.charAt(r++):i])||(n=a(e,f,n))<0)return-1}else if(i!=f.charCodeAt(n++))return-1}return n}var i=e.dateTime,a=e.date,r=e.time,o=e.periods,s=e.days,d=e.shortDays,c=e.months,u=e.shortMonths,l=Rr(o),_=Pr(o),m=Rr(s),h=Pr(s),p=Rr(d),g=Pr(d),y=Rr(c),b=Pr(c),v=Rr(u),w=Pr(u),k={a:function(e){return d[e.getDay()]},A:function(e){return s[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:Xr,e:Xr,H:Yr,I:Kr,j:Jr,L:Qr,m:Zr,M:eo,p:function(e){return o[+(e.getHours()>=12)]},S:to,U:fo,w:no,W:io,x:null,X:null,y:ao,Y:ro,Z:oo,"%":xo},x={a:function(e){return d[e.getUTCDay()]},A:function(e){return s[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:so,e:so,H:co,I:uo,j:lo,L:_o,m:mo,M:ho,p:function(e){return o[+(e.getUTCHours()>=12)]},S:po,U:go,w:yo,W:bo,x:null,X:null,y:vo,Y:wo,Z:ko,"%":xo},q={a:function(e,t,f){var n=p.exec(t.slice(f));return n?(e.w=g[n[0].toLowerCase()],f+n[0].length):-1},A:function(e,t,f){var n=m.exec(t.slice(f));return n?(e.w=h[n[0].toLowerCase()],f+n[0].length):-1},b:function(e,t,f){var n=v.exec(t.slice(f));return n?(e.m=w[n[0].toLowerCase()],f+n[0].length):-1},B:function(e,t,f){var n=y.exec(t.slice(f));return n?(e.m=b[n[0].toLowerCase()],f+n[0].length):-1},c:function(e,t,f){return n(e,i,t,f)},d:Fr,e:Fr,H:Br,I:Br,j:zr,L:Gr,m:Ur,M:Hr,p:function(e,t,f){var n=l.exec(t.slice(f));return n?(e.p=_[n[0].toLowerCase()],f+n[0].length):-1},S:Vr,U:Lr,w:Nr,W:jr,x:function(e,t,f){return n(e,a,t,f)},X:function(e,t,f){return n(e,r,t,f)},y:Dr,Y:$r,Z:Ir,"%":Wr};return k.x=t(a,k),k.X=t(r,k),k.c=t(i,k),x.x=t(a,x),x.X=t(r,x),x.c=t(i,x),{format:function(e){var f=t(e+="",k);return f.toString=function(){return e},f},parse:function(e){var t=f(e+="",Tr);return t.toString=function(){return e},t},utcFormat:function(e){var f=t(e+="",x);return f.toString=function(){return e},f},utcParse:function(e){var t=f(e,Sr);return t.toString=function(){return e},t}}}function Ar(e,t,f){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<f?new Array(f-a+1).join(t)+i:i)}function Or(e){return e.replace(Ig,"\\$&")}function Rr(e){return new RegExp("^(?:"+e.map(Or).join("|")+")","i")}function Pr(e){for(var t={},f=-1,n=e.length;++f<n;)t[e[f].toLowerCase()]=f;return t}function Nr(e,t,f){var n=$g.exec(t.slice(f,f+1));return n?(e.w=+n[0],f+n[0].length):-1}function Lr(e,t,f){var n=$g.exec(t.slice(f));return n?(e.U=+n[0],f+n[0].length):-1}function jr(e,t,f){var n=$g.exec(t.slice(f));return n?(e.W=+n[0],f+n[0].length):-1}function $r(e,t,f){var n=$g.exec(t.slice(f,f+4));return n?(e.y=+n[0],f+n[0].length):-1}function Dr(e,t,f){var n=$g.exec(t.slice(f,f+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),f+n[0].length):-1}function Ir(e,t,f){var n=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(t.slice(f,f+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),f+n[0].length):-1}function Ur(e,t,f){var n=$g.exec(t.slice(f,f+2));return n?(e.m=n[0]-1,f+n[0].length):-1}function Fr(e,t,f){var n=$g.exec(t.slice(f,f+2));return n?(e.d=+n[0],f+n[0].length):-1}function zr(e,t,f){var n=$g.exec(t.slice(f,f+3));return n?(e.m=0,e.d=+n[0],f+n[0].length):-1}function Br(e,t,f){var n=$g.exec(t.slice(f,f+2));return n?(e.H=+n[0],f+n[0].length):-1}function Hr(e,t,f){var n=$g.exec(t.slice(f,f+2));return n?(e.M=+n[0],f+n[0].length):-1}function Vr(e,t,f){var n=$g.exec(t.slice(f,f+2));return n?(e.S=+n[0],f+n[0].length):-1}function Gr(e,t,f){var n=$g.exec(t.slice(f,f+3));return n?(e.L=+n[0],f+n[0].length):-1}function Wr(e,t,f){var n=Dg.exec(t.slice(f,f+1));return n?f+n[0].length:-1}function Xr(e,t){return Ar(e.getDate(),t,2)}function Yr(e,t){return Ar(e.getHours(),t,2)}function Kr(e,t){return Ar(e.getHours()%12||12,t,2)}function Jr(e,t){return Ar(1+Vp.count(dg(e),e),t,3)}function Qr(e,t){return Ar(e.getMilliseconds(),t,3)}function Zr(e,t){return Ar(e.getMonth()+1,t,2)}function eo(e,t){return Ar(e.getMinutes(),t,2)}function to(e,t){return Ar(e.getSeconds(),t,2)}function fo(e,t){return Ar(Wp.count(dg(e),e),t,2)}function no(e){return e.getDay()}function io(e,t){return Ar(Xp.count(dg(e),e),t,2)}function ao(e,t){return Ar(e.getFullYear()%100,t,2)}function ro(e,t){return Ar(e.getFullYear()%1e4,t,4)}function oo(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ar(t/60|0,"0",2)+Ar(t%60,"0",2)}function so(e,t){return Ar(e.getUTCDate(),t,2)}function co(e,t){return Ar(e.getUTCHours(),t,2)}function uo(e,t){return Ar(e.getUTCHours()%12||12,t,2)}function lo(e,t){return Ar(1+hg.count(Pg(e),e),t,3)}function _o(e,t){return Ar(e.getUTCMilliseconds(),t,3)}function mo(e,t){return Ar(e.getUTCMonth()+1,t,2)}function ho(e,t){return Ar(e.getUTCMinutes(),t,2)}function po(e,t){return Ar(e.getUTCSeconds(),t,2)}function go(e,t){return Ar(gg.count(Pg(e),e),t,2)}function yo(e){return e.getUTCDay()}function bo(e,t){return Ar(yg.count(Pg(e),e),t,2)}function vo(e,t){return Ar(e.getUTCFullYear()%100,t,2)}function wo(e,t){return Ar(e.getUTCFullYear()%1e4,t,4)}function ko(){return"+0000"}function xo(){return"%"}function qo(t){return Ng=Cr(t),e.timeFormat=Ng.format,e.timeParse=Ng.parse,e.utcFormat=Ng.utcFormat,e.utcParse=Ng.utcParse,Ng}function Eo(e){return new Date(e)}function To(e){return e instanceof Date?+e:+new Date(+e)}function So(e,t,f,n,a,r,o,s,d){function c(i){return(o(i)<i?h:r(i)<i?p:a(i)<i?g:n(i)<i?y:t(i)<i?f(i)<i?b:v:e(i)<i?w:k)(i)}function u(t,f,n,a){if(null==t&&(t=10),"number"==typeof t){var r=Math.abs(n-f)/t,o=ud(function(e){return e[2]}).right(x,r);o===x.length?(a=i(f/Xg,n/Xg,t),t=e):o?(a=(o=x[r/x[o-1][2]<x[o][2]/r?o-1:o])[1],t=o[0]):(a=i(f,n,t),t=s)}return null==a?t:t.every(a)}var l=or(tr,fu),_=l.invert,m=l.domain,h=d(".%L"),p=d(":%S"),g=d("%I:%M"),y=d("%I %p"),b=d("%a %d"),v=d("%b %d"),w=d("%B"),k=d("%Y"),x=[[o,1,zg],[o,5,5*zg],[o,15,15*zg],[o,30,30*zg],[r,1,Bg],[r,5,5*Bg],[r,15,15*Bg],[r,30,30*Bg],[a,1,Hg],[a,3,3*Hg],[a,6,6*Hg],[a,12,12*Hg],[n,1,Vg],[n,2,2*Vg],[f,1,Gg],[t,1,Wg],[t,3,3*Wg],[e,1,Xg]];return l.invert=function(e){return new Date(_(e))},l.domain=function(e){return arguments.length?m(Ep.call(e,To)):m().map(Eo)},l.ticks=function(e,t){var f,n=m(),i=n[0],a=n[n.length-1],r=a<i;return r&&(f=i,i=a,a=f),f=u(e,i,a,t),f=f?f.range(i,a+1):[],r?f.reverse():f},l.tickFormat=function(e,t){return null==t?c:d(t)},l.nice=function(e,t){var f=m();return(e=u(e,f[0],f[f.length-1],t))?m(Rp(f,e)):l},l.copy=function(){return rr(l,So(e,t,f,n,a,r,o,s,d))},l}function Mo(e){var t=e.length;return function(f){return e[Math.max(0,Math.min(t-1,Math.floor(f*t)))]}}function Co(e){function t(t){var a=(t-f)/(n-f);return e(i?Math.max(0,Math.min(1,a)):a)}var f=0,n=1,i=!1;return t.domain=function(e){return arguments.length?(f=+e[0],n=+e[1],t):[f,n]},t.clamp=function(e){return arguments.length?(i=!!e,t):i},t.interpolator=function(f){return arguments.length?(e=f,t):e},t.copy=function(){return Co(e).domain([f,n]).clamp(i)},sr(t)}function Ao(e){return e>1?0:e<-1?gy:Math.acos(e)}function Oo(e){return e>=1?yy:e<=-1?-yy:Math.asin(e)}function Ro(e){return e.innerRadius}function Po(e){return e.outerRadius}function No(e){return e.startAngle}function Lo(e){return e.endAngle}function jo(e){return e&&e.padAngle}function $o(e,t,f,n,i,a,r,o){var s=f-e,d=n-t,c=r-i,u=o-a,l=(c*(t-a)-u*(e-i))/(u*s-c*d);return[e+l*s,t+l*d]}function Do(e,t,f,n,i,a,r){var o=e-f,s=t-n,d=(r?a:-a)/hy(o*o+s*s),c=d*s,u=-d*o,l=e+c,_=t+u,m=f+c,h=n+u,p=(l+m)/2,g=(_+h)/2,y=m-l,b=h-_,v=y*y+b*b,w=i-a,k=l*h-m*_,x=(b<0?-1:1)*hy(ly(0,w*w*v-k*k)),q=(k*b-y*x)/v,E=(-k*y-b*x)/v,T=(k*b+y*x)/v,S=(-k*y+b*x)/v,M=q-p,C=E-g,A=T-p,O=S-g;return M*M+C*C>A*A+O*O&&(q=T,E=S),{cx:q,cy:E,x01:-c,y01:-u,x11:q*(i/w-1),y11:E*(i/w-1)}}function Io(e){this._context=e}function Uo(e){return e[0]}function Fo(e){return e[1]}function zo(e){this._curve=e}function Bo(e){function t(t){return new zo(e(t))}return t._curve=e,t}function Ho(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(Bo(e)):t()._curve},e}function Vo(e){return e.source}function Go(e){return e.target}function Wo(e){function t(){var t,o=Cy.call(arguments),s=f.apply(this,o),d=n.apply(this,o);if(r||(r=t=hf()),e(r,+i.apply(this,(o[0]=s,o)),+a.apply(this,o),+i.apply(this,(o[0]=d,o)),+a.apply(this,o)),t)return r=null,t+""||null}var f=Vo,n=Go,i=Uo,a=Fo,r=null;return t.source=function(e){return arguments.length?(f=e,t):f},t.target=function(e){return arguments.length?(n=e,t):n},t.x=function(e){return arguments.length?(i="function"==typeof e?e:sy(+e),t):i},t.y=function(e){return arguments.length?(a="function"==typeof e?e:sy(+e),t):a},t.context=function(e){return arguments.length?(r=null==e?null:e,t):r},t}function Xo(e,t,f,n,i){e.moveTo(t,f),e.bezierCurveTo(t=(t+n)/2,f,t,i,n,i)}function Yo(e,t,f,n,i){e.moveTo(t,f),e.bezierCurveTo(t,f=(f+i)/2,n,f,n,i)}function Ko(e,t,f,n,i){var a=My(t,f),r=My(t,f=(f+i)/2),o=My(n,f),s=My(n,i);e.moveTo(a[0],a[1]),e.bezierCurveTo(r[0],r[1],o[0],o[1],s[0],s[1])}function Jo(e,t,f){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+f)/6)}function Qo(e){this._context=e}function Zo(e){this._context=e}function es(e){this._context=e}function ts(e,t){this._basis=new Qo(e),this._beta=t}function fs(e,t,f){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-f),e._x2,e._y2)}function ns(e,t){this._context=e,this._k=(1-t)/6}function is(e,t){this._context=e,this._k=(1-t)/6}function as(e,t){this._context=e,this._k=(1-t)/6}function rs(e,t,f){var n=e._x1,i=e._y1,a=e._x2,r=e._y2;if(e._l01_a>py){var o=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,i=(i*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>py){var d=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*d+e._x1*e._l23_2a-t*e._l12_2a)/c,r=(r*d+e._y1*e._l23_2a-f*e._l12_2a)/c}e._context.bezierCurveTo(n,i,a,r,e._x2,e._y2)}function os(e,t){this._context=e,this._alpha=t}function ss(e,t){this._context=e,this._alpha=t}function ds(e,t){this._context=e,this._alpha=t}function cs(e){this._context=e}function us(e){return e<0?-1:1}function ls(e,t,f){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),r=(f-e._y1)/(i||n<0&&-0),o=(a*i+r*n)/(n+i);return(us(a)+us(r))*Math.min(Math.abs(a),Math.abs(r),.5*Math.abs(o))||0}function _s(e,t){var f=e._x1-e._x0;return f?(3*(e._y1-e._y0)/f-t)/2:t}function ms(e,t,f){var n=e._x0,i=e._y0,a=e._x1,r=e._y1,o=(a-n)/3;e._context.bezierCurveTo(n+o,i+o*t,a-o,r-o*f,a,r)}function hs(e){this._context=e}function ps(e){this._context=new gs(e)}function gs(e){this._context=e}function ys(e){this._context=e}function bs(e){var t,f,n=e.length-1,i=new Array(n),a=new Array(n),r=new Array(n);for(i[0]=0,a[0]=2,r[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,r[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,r[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)f=i[t]/a[t-1],a[t]-=f,r[t]-=f*r[t-1];for(i[n-1]=r[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(r[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function vs(e,t){this._context=e,this._t=t}function ws(e,t){return e[t]}function ks(e){for(var t,f=0,n=-1,i=e.length;++n<i;)(t=+e[n][1])&&(f+=t);return f}function xs(e){return e[0]}function qs(e){return e[1]}function Es(){this._=null}function Ts(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Ss(e,t){var f=t,n=t.R,i=f.U;i?i.L===f?i.L=n:i.R=n:e._=n,n.U=i,f.U=n,f.R=n.L,f.R&&(f.R.U=f),n.L=f}function Ms(e,t){var f=t,n=t.L,i=f.U;i?i.L===f?i.L=n:i.R=n:e._=n,n.U=i,f.U=n,f.L=n.R,f.L&&(f.L.U=f),n.R=f}function Cs(e){for(;e.L;)e=e.L;return e}function As(e,t,f,n){var i=[null,null],a=cb.push(i)-1;return i.left=e,i.right=t,f&&Rs(i,e,t,f),n&&Rs(i,t,e,n),sb[e.index].halfedges.push(a),sb[t.index].halfedges.push(a),i}function Os(e,t,f){var n=[t,f];return n.left=e,n}function Rs(e,t,f,n){e[0]||e[1]?e.left===f?e[1]=n:e[0]=n:(e[0]=n,e.left=t,e.right=f)}function Ps(e,t,f,n,i){var a,r=e[0],o=e[1],s=r[0],d=r[1],c=0,u=1,l=o[0]-s,_=o[1]-d;if(a=t-s,l||!(a>0)){if(a/=l,l<0){if(a<c)return;a<u&&(u=a)}else if(l>0){if(a>u)return;a>c&&(c=a)}if(a=n-s,l||!(a<0)){if(a/=l,l<0){if(a>u)return;a>c&&(c=a)}else if(l>0){if(a<c)return;a<u&&(u=a)}if(a=f-d,_||!(a>0)){if(a/=_,_<0){if(a<c)return;a<u&&(u=a)}else if(_>0){if(a>u)return;a>c&&(c=a)}if(a=i-d,_||!(a<0)){if(a/=_,_<0){if(a>u)return;a>c&&(c=a)}else if(_>0){if(a<c)return;a<u&&(u=a)}return!(c>0||u<1)||(c>0&&(e[0]=[s+c*l,d+c*_]),u<1&&(e[1]=[s+u*l,d+u*_]),!0)}}}}}function Ns(e,t,f,n,i){var a=e[1];if(a)return!0;var r,o,s=e[0],d=e.left,c=e.right,u=d[0],l=d[1],_=c[0],m=c[1],h=(u+_)/2,p=(l+m)/2;if(m===l){if(h<t||h>=n)return;if(u>_){if(s){if(s[1]>=i)return}else s=[h,f];a=[h,i]}else{if(s){if(s[1]<f)return}else s=[h,i];a=[h,f]}}else if(r=(u-_)/(m-l),o=p-r*h,r<-1||r>1)if(u>_){if(s){if(s[1]>=i)return}else s=[(f-o)/r,f];a=[(i-o)/r,i]}else{if(s){if(s[1]<f)return}else s=[(i-o)/r,i];a=[(f-o)/r,f]}else if(l<m){if(s){if(s[0]>=n)return}else s=[t,r*t+o];a=[n,r*n+o]}else{if(s){if(s[0]<t)return}else s=[n,r*n+o];a=[t,r*t+o]}return e[0]=s,e[1]=a,!0}function Ls(e,t,f,n){for(var i,a=cb.length;a--;)Ns(i=cb[a],e,t,f,n)&&Ps(i,e,t,f,n)&&(Math.abs(i[0][0]-i[1][0])>_b||Math.abs(i[0][1]-i[1][1])>_b)||delete cb[a]}function js(e){return sb[e.index]={site:e,halfedges:[]}}function $s(e,t){var f=e.site,n=t.left,i=t.right;return f===i&&(i=n,n=f),i?Math.atan2(i[1]-n[1],i[0]-n[0]):(f===n?(n=t[1],i=t[0]):(n=t[0],i=t[1]),Math.atan2(n[0]-i[0],i[1]-n[1]))}function Ds(e,t){return t[+(t.left!==e.site)]}function Is(e,t){return t[+(t.left===e.site)]}function Us(){for(var e,t,f,n,i=0,a=sb.length;i<a;++i)if((e=sb[i])&&(n=(t=e.halfedges).length)){var r=new Array(n),o=new Array(n);for(f=0;f<n;++f)r[f]=f,o[f]=$s(e,cb[t[f]]);for(r.sort(function(e,t){return o[t]-o[e]}),f=0;f<n;++f)o[f]=t[r[f]];for(f=0;f<n;++f)t[f]=o[f]}}function Fs(e,t,f,n){var i,a,r,o,s,d,c,u,l,_,m,h,p=sb.length,g=!0;for(i=0;i<p;++i)if(a=sb[i]){for(r=a.site,o=(s=a.halfedges).length;o--;)cb[s[o]]||s.splice(o,1);for(o=0,d=s.length;o<d;)m=(_=Is(a,cb[s[o]]))[0],h=_[1],u=(c=Ds(a,cb[s[++o%d]]))[0],l=c[1],(Math.abs(m-u)>_b||Math.abs(h-l)>_b)&&(s.splice(o,0,cb.push(Os(r,_,Math.abs(m-e)<_b&&n-h>_b?[e,Math.abs(u-e)<_b?l:n]:Math.abs(h-n)<_b&&f-m>_b?[Math.abs(l-n)<_b?u:f,n]:Math.abs(m-f)<_b&&h-t>_b?[f,Math.abs(u-f)<_b?l:t]:Math.abs(h-t)<_b&&m-e>_b?[Math.abs(l-t)<_b?u:e,t]:null))-1),++d);d&&(g=!1)}if(g){var y,b,v,w=1/0;for(i=0,g=null;i<p;++i)(a=sb[i])&&(v=(y=(r=a.site)[0]-e)*y+(b=r[1]-t)*b)<w&&(w=v,g=a);if(g){var k=[e,t],x=[e,n],q=[f,n],E=[f,t];g.halfedges.push(cb.push(Os(r=g.site,k,x))-1,cb.push(Os(r,x,q))-1,cb.push(Os(r,q,E))-1,cb.push(Os(r,E,k))-1)}}for(i=0;i<p;++i)(a=sb[i])&&(a.halfedges.length||delete sb[i])}function zs(){Ts(this),this.x=this.y=this.arc=this.site=this.cy=null}function Bs(e){var t=e.P,f=e.N;if(t&&f){var n=t.site,i=e.site,a=f.site;if(n!==a){var r=i[0],o=i[1],s=n[0]-r,d=n[1]-o,c=a[0]-r,u=a[1]-o,l=2*(s*u-d*c);if(!(l>=-mb)){var _=s*s+d*d,m=c*c+u*u,h=(u*_-d*m)/l,p=(s*m-c*_)/l,g=ub.pop()||new zs;g.arc=e,g.site=i,g.x=h+r,g.y=(g.cy=p+o)+Math.sqrt(h*h+p*p),e.circle=g;for(var y=null,b=db._;b;)if(g.y<b.y||g.y===b.y&&g.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}db.insert(y,g),y||(rb=g)}}}}function Hs(e){var t=e.circle;t&&(t.P||(rb=t.N),db.remove(t),ub.push(t),Ts(t),e.circle=null)}function Vs(){Ts(this),this.edge=this.site=this.circle=null}function Gs(e){var t=lb.pop()||new Vs;return t.site=e,t}function Ws(e){Hs(e),ob.remove(e),lb.push(e),Ts(e)}function Xs(e){var t=e.circle,f=t.x,n=t.cy,i=[f,n],a=e.P,r=e.N,o=[e];Ws(e);for(var s=a;s.circle&&Math.abs(f-s.circle.x)<_b&&Math.abs(n-s.circle.cy)<_b;)a=s.P,o.unshift(s),Ws(s),s=a;o.unshift(s),Hs(s);for(var d=r;d.circle&&Math.abs(f-d.circle.x)<_b&&Math.abs(n-d.circle.cy)<_b;)r=d.N,o.push(d),Ws(d),d=r;o.push(d),Hs(d);var c,u=o.length;for(c=1;c<u;++c)d=o[c],s=o[c-1],Rs(d.edge,s.site,d.site,i);s=o[0],(d=o[u-1]).edge=As(s.site,d.site,null,i),Bs(s),Bs(d)}function Ys(e){for(var t,f,n,i,a=e[0],r=e[1],o=ob._;o;)if((n=Ks(o,r)-a)>_b)o=o.L;else{if(!((i=a-Js(o,r))>_b)){n>-_b?(t=o.P,f=o):i>-_b?(t=o,f=o.N):t=f=o;break}if(!o.R){t=o;break}o=o.R}js(e);var s=Gs(e);if(ob.insert(t,s),t||f){if(t===f)return Hs(t),f=Gs(t.site),ob.insert(s,f),s.edge=f.edge=As(t.site,s.site),Bs(t),void Bs(f);if(f){Hs(t),Hs(f);var d=t.site,c=d[0],u=d[1],l=e[0]-c,_=e[1]-u,m=f.site,h=m[0]-c,p=m[1]-u,g=2*(l*p-_*h),y=l*l+_*_,b=h*h+p*p,v=[(p*y-_*b)/g+c,(l*b-h*y)/g+u];Rs(f.edge,d,m,v),s.edge=As(d,e,null,v),f.edge=As(e,m,null,v),Bs(t),Bs(f)}else s.edge=As(t.site,s.site)}}function Ks(e,t){var f=e.site,n=f[0],i=f[1],a=i-t;if(!a)return n;var r=e.P;if(!r)return-1/0;var o=(f=r.site)[0],s=f[1],d=s-t;if(!d)return o;var c=o-n,u=1/a-1/d,l=c/d;return u?(-l+Math.sqrt(l*l-2*u*(c*c/(-2*d)-s+d/2+i-a/2)))/u+n:(n+o)/2}function Js(e,t){var f=e.N;if(f)return Ks(f,t);var n=e.site;return n[1]===t?n[0]:1/0}function Qs(e,t,f){return(e[0]-f[0])*(t[1]-e[1])-(e[0]-t[0])*(f[1]-e[1])}function Zs(e,t){return t[1]-e[1]||t[0]-e[0]}function ed(e,t){var f,n,i,a=e.sort(Zs).pop();for(cb=[],sb=new Array(e.length),ob=new Es,db=new Es;;)if(i=rb,a&&(!i||a[1]<i.y||a[1]===i.y&&a[0]<i.x))a[0]===f&&a[1]===n||(Ys(a),f=a[0],n=a[1]),a=e.pop();else{if(!i)break;Xs(i.arc)}if(Us(),t){var r=+t[0][0],o=+t[0][1],s=+t[1][0],d=+t[1][1];Ls(r,o,s,d),Fs(r,o,s,d)}this.edges=cb,this.cells=sb,ob=db=cb=sb=null}function td(e,t,f){this.target=e,this.type=t,this.transform=f}function fd(e,t,f){this.k=e,this.x=t,this.y=f}function nd(e){return e.__zoom||pb}function id(){e.event.stopImmediatePropagation()}function ad(){return!e.event.button}function rd(){var e,t,f=this;return f instanceof SVGElement?(e=(f=f.ownerSVGElement||f).width.baseVal.value,t=f.height.baseVal.value):(e=f.clientWidth,t=f.clientHeight),[[0,0],[e,t]]}function od(){return this.__zoom||pb}function sd(){return-e.event.deltaY*(e.event.deltaMode?120:1)/500}function dd(){return"ontouchstart"in this}var cd=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},ud=function(e){return 1===e.length&&(e=t(e)),{left:function(t,f,n,i){for(null==n&&(n=0),null==i&&(i=t.length);n<i;){var a=n+i>>>1;e(t[a],f)<0?n=a+1:i=a}return n},right:function(t,f,n,i){for(null==n&&(n=0),null==i&&(i=t.length);n<i;){var a=n+i>>>1;e(t[a],f)>0?i=a:n=a+1}return n}}},ld=ud(cd),_d=ld.right,md=ld.left,hd=function(e){return null===e?NaN:+e},pd=function(e,t){var f,n,i=e.length,a=0,r=-1,o=0,s=0;if(null==t)for(;++r<i;)isNaN(f=hd(e[r]))||(s+=(n=f-o)*(f-(o+=n/++a)));else for(;++r<i;)isNaN(f=hd(t(e[r],r,e)))||(s+=(n=f-o)*(f-(o+=n/++a)));if(a>1)return s/(a-1)},gd=function(e,t){var f=pd(e,t);return f?Math.sqrt(f):f},yd=function(e,t){var f,n,i,a=e.length,r=-1;if(null==t){for(;++r<a;)if(null!=(f=e[r])&&f>=f)for(n=i=f;++r<a;)null!=(f=e[r])&&(n>f&&(n=f),i<f&&(i=f))}else for(;++r<a;)if(null!=(f=t(e[r],r,e))&&f>=f)for(n=i=f;++r<a;)null!=(f=t(e[r],r,e))&&(n>f&&(n=f),i<f&&(i=f));return[n,i]},bd=Array.prototype,vd=bd.slice,wd=bd.map,kd=function(e){return function(){return e}},xd=function(e){return e},qd=function(e,t,f){e=+e,t=+t,f=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+f;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/f)),a=new Array(i);++n<i;)a[n]=e+n*f;return a},Ed=Math.sqrt(50),Td=Math.sqrt(10),Sd=Math.sqrt(2),Md=function(e,t,f){var i,a,r,o=t<e,s=-1;if(o&&(i=e,e=t,t=i),0===(r=n(e,t,f))||!isFinite(r))return[];if(r>0)for(e=Math.ceil(e/r),t=Math.floor(t/r),a=new Array(i=Math.ceil(t-e+1));++s<i;)a[s]=(e+s)*r;else for(e=Math.floor(e*r),t=Math.ceil(t*r),a=new Array(i=Math.ceil(e-t+1));++s<i;)a[s]=(e-s)/r;return o&&a.reverse(),a},Cd=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1},Ad=function(e,t,f){if(null==f&&(f=hd),n=e.length){if((t=+t)<=0||n<2)return+f(e[0],0,e);if(t>=1)return+f(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),r=+f(e[a],a,e);return r+(+f(e[a+1],a+1,e)-r)*(i-a)}},Od=function(e){for(var t,f,n,i=e.length,a=-1,r=0;++a<i;)r+=e[a].length;for(f=new Array(r);--i>=0;)for(t=(n=e[i]).length;--t>=0;)f[--r]=n[t];return f},Rd=function(e,t){var f,n,i=e.length,a=-1;if(null==t){for(;++a<i;)if(null!=(f=e[a])&&f>=f)for(n=f;++a<i;)null!=(f=e[a])&&n>f&&(n=f)}else for(;++a<i;)if(null!=(f=t(e[a],a,e))&&f>=f)for(n=f;++a<i;)null!=(f=t(e[a],a,e))&&n>f&&(n=f);return n},Pd=function(e){if(!(i=e.length))return[];for(var t=-1,f=Rd(e,a),n=new Array(f);++t<f;)for(var i,r=-1,o=n[t]=new Array(i);++r<i;)o[r]=e[r][t];return n},Nd=Array.prototype.slice,Ld=function(e){return e},jd=1,$d=2,Dd=3,Id=4,Ud=1e-6,Fd={value:function(){}};_.prototype=l.prototype={constructor:_,on:function(e,t){var f,n=this._,i=m(e+"",n),a=-1,r=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++a<r;)if(f=(e=i[a]).type)n[f]=p(n[f],e.name,t);else if(null==t)for(f in n)n[f]=p(n[f],e.name,null);return this}for(;++a<r;)if((f=(e=i[a]).type)&&(f=h(n[f],e.name)))return f},copy:function(){var e={},t=this._;for(var f in t)e[f]=t[f].slice();return new _(e)},call:function(e,t){if((f=arguments.length-2)>0)for(var f,n,i=new Array(f),a=0;a<f;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=0,f=(n=this._[e]).length;a<f;++a)n[a].value.apply(t,i)},apply:function(e,t,f){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,a=n.length;i<a;++i)n[i].value.apply(t,f)}};var zd="http://www.w3.org/1999/xhtml",Bd={svg:"http://www.w3.org/2000/svg",xhtml:zd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Hd=function(e){var t=e+="",f=t.indexOf(":");return f>=0&&"xmlns"!==(t=e.slice(0,f))&&(e=e.slice(f+1)),Bd.hasOwnProperty(t)?{space:Bd[t],local:e}:e},Vd=function(e){var t=Hd(e);return(t.local?y:g)(t)},Gd=0;v.prototype=b.prototype={constructor:v,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var Wd=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Xd=document.documentElement;if(!Xd.matches){var Yd=Xd.webkitMatchesSelector||Xd.msMatchesSelector||Xd.mozMatchesSelector||Xd.oMatchesSelector;Wd=function(e){return function(){return Yd.call(this,e)}}}}var Kd=Wd,Jd={};e.event=null,"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Jd={mouseenter:"mouseover",mouseleave:"mouseout"}));var Qd=function(){for(var t,f=e.event;t=f.sourceEvent;)f=t;return f},Zd=function(e,t){var f=e.ownerSVGElement||e;if(f.createSVGPoint){var n=f.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n=n.matrixTransform(e.getScreenCTM().inverse()),[n.x,n.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]},ec=function(e){var t=Qd();return t.changedTouches&&(t=t.changedTouches[0]),Zd(e,t)},tc=function(e){return null==e?S:function(){return this.querySelector(e)}},fc=function(e){return null==e?M:function(){return this.querySelectorAll(e)}},nc=function(e){return new Array(e.length)};C.prototype={constructor:C,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var ic=function(e){return function(){return e}},ac="$",rc=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};X.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var oc=[null];_e.prototype=me.prototype={constructor:_e,select:function(e){"function"!=typeof e&&(e=tc(e));for(var t=this._groups,f=t.length,n=new Array(f),i=0;i<f;++i)for(var a,r,o=t[i],s=o.length,d=n[i]=new Array(s),c=0;c<s;++c)(a=o[c])&&(r=e.call(a,a.__data__,c,o))&&("__data__"in a&&(r.__data__=a.__data__),d[c]=r);return new _e(n,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=fc(e));for(var t=this._groups,f=t.length,n=[],i=[],a=0;a<f;++a)for(var r,o=t[a],s=o.length,d=0;d<s;++d)(r=o[d])&&(n.push(e.call(r,r.__data__,d,o)),i.push(r));return new _e(n,i)},filter:function(e){"function"!=typeof e&&(e=Kd(e));for(var t=this._groups,f=t.length,n=new Array(f),i=0;i<f;++i)for(var a,r=t[i],o=r.length,s=n[i]=[],d=0;d<o;++d)(a=r[d])&&e.call(a,a.__data__,d,r)&&s.push(a);return new _e(n,this._parents)},data:function(e,t){if(!e)return _=new Array(this.size()),d=-1,this.each(function(e){_[++d]=e}),_;var f=t?O:A,n=this._parents,i=this._groups;"function"!=typeof e&&(e=ic(e));for(var a=i.length,r=new Array(a),o=new Array(a),s=new Array(a),d=0;d<a;++d){var c=n[d],u=i[d],l=u.length,_=e.call(c,c&&c.__data__,d,n),m=_.length,h=o[d]=new Array(m),p=r[d]=new Array(m);f(c,u,h,p,s[d]=new Array(l),_,t);for(var g,y,b=0,v=0;b<m;++b)if(g=h[b]){for(b>=v&&(v=b+1);!(y=p[v])&&++v<m;);g._next=y||null}}return r=new _e(r,n),r._enter=o,r._exit=s,r},enter:function(){return new _e(this._enter||this._groups.map(nc),this._parents)},exit:function(){return new _e(this._exit||this._groups.map(nc),this._parents)},merge:function(e){for(var t=this._groups,f=e._groups,n=t.length,i=f.length,a=Math.min(n,i),r=new Array(n),o=0;o<a;++o)for(var s,d=t[o],c=f[o],u=d.length,l=r[o]=new Array(u),_=0;_<u;++_)(s=d[_]||c[_])&&(l[_]=s);for(;o<n;++o)r[o]=t[o];return new _e(r,this._parents)},order:function(){for(var e=this._groups,t=-1,f=e.length;++t<f;)for(var n,i=e[t],a=i.length-1,r=i[a];--a>=0;)(n=i[a])&&(r&&r!==n.nextSibling&&r.parentNode.insertBefore(n,r),r=n);return this},sort:function(e){e||(e=R);for(var t=this._groups,f=t.length,n=new Array(f),i=0;i<f;++i){for(var a,r=t[i],o=r.length,s=n[i]=new Array(o),d=0;d<o;++d)(a=r[d])&&(s[d]=a);s.sort(function(t,f){return t&&f?e(t.__data__,f.__data__):!t-!f})}return new _e(n,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e},node:function(){for(var e=this._groups,t=0,f=e.length;t<f;++t)for(var n=e[t],i=0,a=n.length;i<a;++i){var r=n[i];if(r)return r}return null},size:function(){var e=0;return this.each(function(){++e}),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,f=0,n=t.length;f<n;++f)for(var i,a=t[f],r=0,o=a.length;r<o;++r)(i=a[r])&&e.call(i,i.__data__,r,a);return this},attr:function(e,t){var f=Hd(e);if(arguments.length<2){var n=this.node();return f.local?n.getAttributeNS(f.space,f.local):n.getAttribute(f)}return this.each((null==t?f.local?N:P:"function"==typeof t?f.local?D:$:f.local?j:L)(f,t))},style:function(e,t,f){return arguments.length>1?this.each((null==t?I:"function"==typeof t?F:U)(e,t,null==f?"":f)):z(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?B:"function"==typeof t?V:H)(e,t)):this.node()[e]},classed:function(e,t){var f=G(e+"");if(arguments.length<2){for(var n=W(this.node()),i=-1,a=f.length;++i<a;)if(!n.contains(f[i]))return!1;return!0}return this.each(("function"==typeof t?Z:t?J:Q)(f,t))},text:function(e){return arguments.length?this.each(null==e?ee:("function"==typeof e?fe:te)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?ne:("function"==typeof e?ae:ie)(e)):this.node().innerHTML},raise:function(){return this.each(re)},lower:function(){return this.each(oe)},append:function(e){var t="function"==typeof e?e:Vd(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var f="function"==typeof e?e:Vd(e),n=null==t?se:"function"==typeof t?t:tc(t);return this.select(function(){return this.insertBefore(f.apply(this,arguments),n.apply(this,arguments)||null)})},remove:function(){return this.each(de)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,f){var n,i,a=x(e+""),r=a.length;if(!(arguments.length<2)){for(o=t?E:q,null==f&&(f=!1),n=0;n<r;++n)this.each(o(a[n],t,f));return this}var o=this.node().__on;if(o)for(var s,d=0,c=o.length;d<c;++d)for(n=0,s=o[d];n<r;++n)if((i=a[n]).type===s.type&&i.name===s.name)return s.value},dispatch:function(e,t){return this.each(("function"==typeof t?le:ue)(e,t))}};var sc=function(e){return"string"==typeof e?new _e([[document.querySelector(e)]],[document.documentElement]):new _e([[e]],oc)},dc=function(e,t,f){arguments.length<3&&(f=t,t=Qd().changedTouches);for(var n,i=0,a=t?t.length:0;i<a;++i)if((n=t[i]).identifier===f)return Zd(e,n);return null},cc=function(){e.event.preventDefault(),e.event.stopImmediatePropagation()},uc=function(e){var t=e.document.documentElement,f=sc(e).on("dragstart.drag",cc,!0);"onselectstart"in t?f.on("selectstart.drag",cc,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")},lc=function(e){return function(){return e}};ge.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var _c=function(e,t,f){e.prototype=t.prototype=f,f.constructor=e},mc="\\s*([+-]?\\d+)\\s*",hc="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",pc="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gc=/^#([0-9a-f]{3})$/,yc=/^#([0-9a-f]{6})$/,bc=new RegExp("^rgb\\("+[mc,mc,mc]+"\\)$"),vc=new RegExp("^rgb\\("+[pc,pc,pc]+"\\)$"),wc=new RegExp("^rgba\\("+[mc,mc,mc,hc]+"\\)$"),kc=new RegExp("^rgba\\("+[pc,pc,pc,hc]+"\\)$"),xc=new RegExp("^hsl\\("+[hc,pc,pc]+"\\)$"),qc=new RegExp("^hsla\\("+[hc,pc,pc,hc]+"\\)$"),Ec={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};_c(xe,qe,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),_c(Ce,Me,ke(xe,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),_c(Pe,Re,ke(xe,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Pe(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Pe(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,f=this.l,n=f+(f<.5?f:1-f)*t,i=2*f-n;return new Ce(Ne(e>=240?e-240:e+120,i,n),Ne(e,i,n),Ne(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Tc=Math.PI/180,Sc=180/Math.PI,Mc=.95047,Cc=1,Ac=1.08883,Oc=4/29,Rc=6/29,Pc=3*Rc*Rc,Nc=Rc*Rc*Rc;_c($e,je,ke(xe,{brighter:function(e){return new $e(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new $e(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,f=isNaN(this.b)?e:e-this.b/200;return e=Cc*Ie(e),t=Mc*Ie(t),f=Ac*Ie(f),new Ce(Ue(3.2404542*t-1.5371385*e-.4985314*f),Ue(-.969266*t+1.8760108*e+.041556*f),Ue(.0556434*t-.2040259*e+1.0572252*f),this.opacity)}})),_c(He,Be,ke(xe,{brighter:function(e){return new He(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new He(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Le(this).rgb()}}));var Lc=1.78277,jc=-.29227,$c=-.90649,Dc=1.97294,Ic=Dc*$c,Uc=Dc*Lc,Fc=Lc*jc- -.14861*$c;_c(We,Ge,ke(xe,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new We(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new We(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Tc,t=+this.l,f=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new Ce(255*(t+f*(-.14861*n+Lc*i)),255*(t+f*(jc*n+$c*i)),255*(t+f*(Dc*n)),this.opacity)}}));var zc,Bc,Hc,Vc,Gc,Wc,Xc=function(e){var t=e.length-1;return function(f){var n=f<=0?f=0:f>=1?(f=1,t-1):Math.floor(f*t),i=e[n],a=e[n+1],r=n>0?e[n-1]:2*i-a,o=n<t-1?e[n+2]:2*a-i;return Xe((f-n/t)*t,r,i,a,o)}},Yc=function(e){var t=e.length;return function(f){var n=Math.floor(((f%=1)<0?++f:f)*t),i=e[(n+t-1)%t],a=e[n%t],r=e[(n+1)%t],o=e[(n+2)%t];return Xe((f-n/t)*t,i,a,r,o)}},Kc=function(e){return function(){return e}},Jc=function e(t){function f(e,t){var f=n((e=Me(e)).r,(t=Me(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),r=Ze(e.opacity,t.opacity);return function(t){return e.r=f(t),e.g=i(t),e.b=a(t),e.opacity=r(t),e+""}}var n=Qe(t);return f.gamma=e,f}(1),Qc=et(Xc),Zc=et(Yc),eu=function(e,t){var f,n=t?t.length:0,i=e?Math.min(n,e.length):0,a=new Array(n),r=new Array(n);for(f=0;f<i;++f)a[f]=ou(e[f],t[f]);for(;f<n;++f)r[f]=t[f];return function(e){for(f=0;f<i;++f)r[f]=a[f](e);return r}},tu=function(e,t){var f=new Date;return e=+e,t-=e,function(n){return f.setTime(e+t*n),f}},fu=function(e,t){return e=+e,t-=e,function(f){return e+t*f}},nu=function(e,t){var f,n={},i={};null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={});for(f in t)f in e?n[f]=ou(e[f],t[f]):i[f]=t[f];return function(e){for(f in n)i[f]=n[f](e);return i}},iu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,au=new RegExp(iu.source,"g"),ru=function(e,t){var f,n,i,a=iu.lastIndex=au.lastIndex=0,r=-1,o=[],s=[];for(e+="",t+="";(f=iu.exec(e))&&(n=au.exec(t));)(i=n.index)>a&&(i=t.slice(a,i),o[r]?o[r]+=i:o[++r]=i),(f=f[0])===(n=n[0])?o[r]?o[r]+=n:o[++r]=n:(o[++r]=null,s.push({i:r,x:fu(f,n)})),a=au.lastIndex;return a<t.length&&(i=t.slice(a),o[r]?o[r]+=i:o[++r]=i),o.length<2?s[0]?ft(s[0].x):tt(t):(t=s.length,function(e){for(var f,n=0;n<t;++n)o[(f=s[n]).i]=f.x(e);return o.join("")})},ou=function(e,t){var f,n=typeof t;return null==t||"boolean"===n?Kc(t):("number"===n?fu:"string"===n?(f=qe(t))?(t=f,Jc):ru:t instanceof qe?Jc:t instanceof Date?tu:Array.isArray(t)?eu:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?nu:fu)(e,t)},su=function(e,t){return e=+e,t-=e,function(f){return Math.round(e+t*f)}},du=180/Math.PI,cu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},uu=function(e,t,f,n,i,a){var r,o,s;return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(s=e*f+t*n)&&(f-=e*s,n-=t*s),(o=Math.sqrt(f*f+n*n))&&(f/=o,n/=o,s/=o),e*n<t*f&&(e=-e,t=-t,s=-s,r=-r),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*du,skewX:Math.atan(s)*du,scaleX:r,scaleY:o}},lu=nt(function(e){return"none"===e?cu:(zc||(zc=document.createElement("DIV"),Bc=document.documentElement,Hc=document.defaultView),zc.style.transform=e,e=Hc.getComputedStyle(Bc.appendChild(zc),null).getPropertyValue("transform"),Bc.removeChild(zc),e=e.slice(7,-1).split(","),uu(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))},"px, ","px)","deg)"),_u=nt(function(e){return null==e?cu:(Vc||(Vc=document.createElementNS("http://www.w3.org/2000/svg","g")),Vc.setAttribute("transform",e),(e=Vc.transform.baseVal.consolidate())?(e=e.matrix,uu(e.a,e.b,e.c,e.d,e.e,e.f)):cu)},", ",")",")"),mu=Math.SQRT2,hu=function(e,t){var f,n,i=e[0],a=e[1],r=e[2],o=t[0],s=t[1],d=t[2],c=o-i,u=s-a,l=c*c+u*u;if(l<1e-12)n=Math.log(d/r)/mu,f=function(e){return[i+e*c,a+e*u,r*Math.exp(mu*e*n)]};else{var _=Math.sqrt(l),m=(d*d-r*r+4*l)/(2*r*2*_),h=(d*d-r*r-4*l)/(2*d*2*_),p=Math.log(Math.sqrt(m*m+1)-m),g=Math.log(Math.sqrt(h*h+1)-h);n=(g-p)/mu,f=function(e){var t=e*n,f=it(p),o=r/(2*_)*(f*rt(mu*t+p)-at(p));return[i+o*c,a+o*u,r*f/it(mu*t+p)]}}return f.duration=1e3*n,f},pu=ot(Je),gu=ot(Ze),yu=st(Je),bu=st(Ze),vu=dt(Je),wu=dt(Ze),ku=0,xu=0,qu=0,Eu=1e3,Tu=0,Su=0,Mu=0,Cu="object"==typeof performance&&performance.now?performance:Date,Au="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};lt.prototype=_t.prototype={constructor:lt,restart:function(e,t,f){if("function"!=typeof e)throw new TypeError("callback is not a function");f=(null==f?ct():+f)+(null==t?0:+t),this._next||Wc===this||(Wc?Wc._next=this:Gc=this,Wc=this),this._call=e,this._time=f,yt()},stop:function(){this._call&&(this._call=null,this._time=1/0,yt())}};var Ou=function(e,t,f){var n=new lt;return t=null==t?0:+t,n.restart(function(f){n.stop(),e(f+t)},t,f),n},Ru=l("start","end","interrupt"),Pu=[],Nu=0,Lu=1,ju=2,$u=3,Du=4,Iu=5,Uu=6,Fu=function(e,t,f,n,i,a){var r=e.__transition;if(r){if(f in r)return}else e.__transition={};kt(e,f,{name:t,index:n,group:i,on:Ru,tween:Pu,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Nu})},zu=function(e,t){var f,n,i,a=e.__transition,r=!0;if(a){t=null==t?null:t+"";for(i in a)(f=a[i]).name===t?(n=f.state>ju&&f.state<Iu,f.state=Uu,f.timer.stop(),n&&f.on.call("interrupt",e,e.__data__,f.index,f.group),delete a[i]):r=!1;r&&delete e.__transition}},Bu=function(e,t){var f;return("number"==typeof t?fu:t instanceof qe?Jc:(f=qe(t))?(t=f,Jc):ru)(e,t)},Hu=me.prototype.constructor,Vu=0,Gu=me.prototype;Yt.prototype=Kt.prototype={constructor:Yt,select:function(e){var t=this._name,f=this._id;"function"!=typeof e&&(e=tc(e));for(var n=this._groups,i=n.length,a=new Array(i),r=0;r<i;++r)for(var o,s,d=n[r],c=d.length,u=a[r]=new Array(c),l=0;l<c;++l)(o=d[l])&&(s=e.call(o,o.__data__,l,d))&&("__data__"in o&&(s.__data__=o.__data__),u[l]=s,Fu(u[l],t,f,l,u,wt(o,f)));return new Yt(a,this._parents,t,f)},selectAll:function(e){var t=this._name,f=this._id;"function"!=typeof e&&(e=fc(e));for(var n=this._groups,i=n.length,a=[],r=[],o=0;o<i;++o)for(var s,d=n[o],c=d.length,u=0;u<c;++u)if(s=d[u]){for(var l,_=e.call(s,s.__data__,u,d),m=wt(s,f),h=0,p=_.length;h<p;++h)(l=_[h])&&Fu(l,t,f,h,_,m);a.push(_),r.push(s)}return new Yt(a,r,t,f)},filter:function(e){"function"!=typeof e&&(e=Kd(e));for(var t=this._groups,f=t.length,n=new Array(f),i=0;i<f;++i)for(var a,r=t[i],o=r.length,s=n[i]=[],d=0;d<o;++d)(a=r[d])&&e.call(a,a.__data__,d,r)&&s.push(a);return new Yt(n,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,f=e._groups,n=t.length,i=f.length,a=Math.min(n,i),r=new Array(n),o=0;o<a;++o)for(var s,d=t[o],c=f[o],u=d.length,l=r[o]=new Array(u),_=0;_<u;++_)(s=d[_]||c[_])&&(l[_]=s);for(;o<n;++o)r[o]=t[o];return new Yt(r,this._parents,this._name,this._id)},selection:function(){return new Hu(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,f=Jt(),n=this._groups,i=n.length,a=0;a<i;++a)for(var r,o=n[a],s=o.length,d=0;d<s;++d)if(r=o[d]){var c=wt(r,t);Fu(r,e,f,d,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Yt(n,this._parents,e,f)},call:Gu.call,nodes:Gu.nodes,node:Gu.node,size:Gu.size,empty:Gu.empty,each:Gu.each,on:function(e,t){var f=this._id;return arguments.length<2?wt(this.node(),f).on.on(e):this.each(Ut(f,e,t))},attr:function(e,t){var f=Hd(e),n="transform"===f?_u:Bu;return this.attrTween(e,"function"==typeof t?(f.local?Ot:At)(f,n,Et(this,"attr."+e,t)):null==t?(f.local?St:Tt)(f):(f.local?Ct:Mt)(f,n,t+""))},attrTween:function(e,t){var f="attr."+e;if(arguments.length<2)return(f=this.tween(f))&&f._value;if(null==t)return this.tween(f,null);if("function"!=typeof t)throw new Error;var n=Hd(e);return this.tween(f,(n.local?Rt:Pt)(n,t))},style:function(e,t,f){var n="transform"==(e+="")?lu:Bu;return null==t?this.styleTween(e,zt(e,n)).on("end.style."+e,Bt(e)):this.styleTween(e,"function"==typeof t?Vt(e,n,Et(this,"style."+e,t)):Ht(e,n,t+""),f)},styleTween:function(e,t,f){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,Gt(e,t,null==f?"":f))},text:function(e){return this.tween("text","function"==typeof e?Xt(Et(this,"text",e)):Wt(null==e?"":e+""))},remove:function(){return this.on("end.remove",Ft(this._id))},tween:function(e,t){var f=this._id;if(e+="",arguments.length<2){for(var n,i=wt(this.node(),f).tween,a=0,r=i.length;a<r;++a)if((n=i[a]).name===e)return n.value;return null}return this.each((null==t?xt:qt)(f,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Nt:Lt)(t,e)):wt(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?jt:$t)(t,e)):wt(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(Dt(t,e)):wt(this.node(),t).ease}};var Wu=function e(t){function f(e){return Math.pow(e,t)}return t=+t,f.exponent=e,f}(3),Xu=function e(t){function f(e){return 1-Math.pow(1-e,t)}return t=+t,f.exponent=e,f}(3),Yu=function e(t){function f(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,f.exponent=e,f}(3),Ku=Math.PI,Ju=Ku/2,Qu=4/11,Zu=6/11,el=8/11,tl=.75,fl=9/11,nl=10/11,il=.9375,al=21/22,rl=63/64,ol=1/Qu/Qu,sl=function e(t){function f(e){return e*e*((t+1)*e-t)}return t=+t,f.overshoot=e,f}(1.70158),dl=function e(t){function f(e){return--e*e*((t+1)*e+t)+1}return t=+t,f.overshoot=e,f}(1.70158),cl=function e(t){function f(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,f.overshoot=e,f}(1.70158),ul=2*Math.PI,ll=function e(t,f){function n(e){return t*Math.pow(2,10*--e)*Math.sin((i-e)/f)}var i=Math.asin(1/(t=Math.max(1,t)))*(f/=ul);return n.amplitude=function(t){return e(t,f*ul)},n.period=function(f){return e(t,f)},n}(1,.3),_l=function e(t,f){function n(e){return 1-t*Math.pow(2,-10*(e=+e))*Math.sin((e+i)/f)}var i=Math.asin(1/(t=Math.max(1,t)))*(f/=ul);return n.amplitude=function(t){return e(t,f*ul)},n.period=function(f){return e(t,f)},n}(1,.3),ml=function e(t,f){function n(e){return((e=2*e-1)<0?t*Math.pow(2,10*e)*Math.sin((i-e)/f):2-t*Math.pow(2,-10*e)*Math.sin((i+e)/f))/2}var i=Math.asin(1/(t=Math.max(1,t)))*(f/=ul);return n.amplitude=function(t){return e(t,f*ul)},n.period=function(f){return e(t,f)},n}(1,.3),hl={time:null,delay:0,duration:250,ease:Zt};me.prototype.interrupt=function(e){return this.each(function(){zu(this,e)})},me.prototype.transition=function(e){var t,f;e instanceof Yt?(t=e._id,e=e._name):(t=Jt(),(f=hl).time=ct(),e=null==e?null:e+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var r,o=n[a],s=o.length,d=0;d<s;++d)(r=o[d])&&Fu(r,e,t,d,o,f||af(r,t));return new Yt(n,this._parents,e,t)};var pl=[null],gl=function(e){return function(){return e}},yl=function(e,t,f){this.target=e,this.type=t,this.selection=f},bl=function(){e.event.preventDefault(),e.event.stopImmediatePropagation()},vl={name:"drag"},wl={name:"space"},kl={name:"handle"},xl={name:"center"},ql={name:"x",handles:["e","w"].map(of),input:function(e,t){return e&&[[e[0],t[0][1]],[e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},El={name:"y",handles:["n","s"].map(of),input:function(e,t){return e&&[[t[0][0],e[0]],[t[1][0],e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},Tl={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(of),input:function(e){return e},output:function(e){return e}},Sl={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ml={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Cl={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Al={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ol={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},Rl=Math.cos,Pl=Math.sin,Nl=Math.PI,Ll=Nl/2,jl=2*Nl,$l=Math.max,Dl=Array.prototype.slice,Il=function(e){return function(){return e}},Ul=Math.PI,Fl=2*Ul,zl=Fl-1e-6;mf.prototype=hf.prototype={constructor:mf,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,f,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+f)+","+(this._y1=+n)},bezierCurveTo:function(e,t,f,n,i,a){this._+="C"+ +e+","+ +t+","+ +f+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(e,t,f,n,i){e=+e,t=+t,f=+f,n=+n,i=+i;var a=this._x1,r=this._y1,o=f-e,s=n-t,d=a-e,c=r-t,u=d*d+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(u>1e-6)if(Math.abs(c*o-s*d)>1e-6&&i){var l=f-a,_=n-r,m=o*o+s*s,h=l*l+_*_,p=Math.sqrt(m),g=Math.sqrt(u),y=i*Math.tan((Ul-Math.acos((m+u-h)/(2*p*g)))/2),b=y/g,v=y/p;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*d)+","+(t+b*c)),this._+="A"+i+","+i+",0,0,"+ +(c*l>d*_)+","+(this._x1=e+v*o)+","+(this._y1=t+v*s)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,f,n,i,a){e=+e,t=+t;var r=(f=+f)*Math.cos(n),o=f*Math.sin(n),s=e+r,d=t+o,c=1^a,u=a?n-i:i-n;if(f<0)throw new Error("negative radius: "+f);null===this._x1?this._+="M"+s+","+d:(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-d)>1e-6)&&(this._+="L"+s+","+d),f&&(u<0&&(u=u%Fl+Fl),u>zl?this._+="A"+f+","+f+",0,1,"+c+","+(e-r)+","+(t-o)+"A"+f+","+f+",0,1,"+c+","+(this._x1=s)+","+(this._y1=d):u>1e-6&&(this._+="A"+f+","+f+",0,"+ +(u>=Ul)+","+c+","+(this._x1=e+f*Math.cos(i))+","+(this._y1=t+f*Math.sin(i))))},rect:function(e,t,f,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +f+"v"+ +n+"h"+-f+"Z"},toString:function(){return this._}},wf.prototype=kf.prototype={constructor:wf,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var Bl=kf.prototype;Sf.prototype=Mf.prototype={constructor:Sf,has:Bl.has,add:function(e){return e+="",this["$"+e]=e,this},remove:Bl.remove,clear:Bl.clear,values:Bl.keys,size:Bl.size,empty:Bl.empty,each:Bl.each};var Hl={},Vl={},Gl=34,Wl=10,Xl=13,Yl=function(e){function t(e,t){function f(){if(d)return Vl;if(c)return c=!1,Hl;var t,f,n=o;if(e.charCodeAt(n)===Gl){for(;o++<r&&e.charCodeAt(o)!==Gl||e.charCodeAt(++o)===Gl;);return(t=o)>=r?d=!0:(f=e.charCodeAt(o++))===Wl?c=!0:f===Xl&&(c=!0,e.charCodeAt(o)===Wl&&++o),e.slice(n+1,t-1).replace(/""/g,'"')}for(;o<r;){if((f=e.charCodeAt(t=o++))===Wl)c=!0;else if(f===Xl)c=!0,e.charCodeAt(o)===Wl&&++o;else if(f!==a)continue;return e.slice(n,t)}return d=!0,e.slice(n,r)}var n,i=[],r=e.length,o=0,s=0,d=r<=0,c=!1;for(e.charCodeAt(r-1)===Wl&&--r,e.charCodeAt(r-1)===Xl&&--r;(n=f())!==Vl;){for(var u=[];n!==Hl&&n!==Vl;)u.push(n),n=f();t&&null==(u=t(u,s++))||i.push(u)}return i}function f(t){return t.map(n).join(e)}function n(e){return null==e?"":i.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}var i=new RegExp('["'+e+"\n\r]"),a=e.charCodeAt(0);return{parse:function(e,f){var n,i,a=t(e,function(e,t){if(n)return n(e,t-1);i=e,n=f?Af(e,f):Cf(e)});return a.columns=i,a},parseRows:t,format:function(t,f){return null==f&&(f=Of(t)),[f.map(n).join(e)].concat(t.map(function(t){return f.map(function(e){return n(t[e])}).join(e)})).join("\n")},formatRows:function(e){return e.map(f).join("\n")}}},Kl=Yl(","),Jl=Kl.parse,Ql=Kl.parseRows,Zl=Kl.format,e_=Kl.formatRows,t_=Yl("\t"),f_=t_.parse,n_=t_.parseRows,i_=t_.format,a_=t_.formatRows,r_=function(e){return function(){return e}},o_=function(){return 1e-6*(Math.random()-.5)},s_=function(e,t,f,n,i){this.node=e,this.x0=t,this.y0=f,this.x1=n,this.y1=i},d_=Lf.prototype=jf.prototype;d_.copy=function(){var e,t,f=new jf(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return f;if(!n.length)return f._root=$f(n),f;for(e=[{source:n,target:f._root=new Array(4)}];n=e.pop();)for(var i=0;i<4;++i)(t=n.source[i])&&(t.length?e.push({source:t,target:n.target[i]=new Array(4)}):n.target[i]=$f(t));return f},d_.add=function(e){var t=+this._x.call(null,e),f=+this._y.call(null,e);return Rf(this.cover(t,f),t,f,e)},d_.addAll=function(e){var t,f,n,i,a=e.length,r=new Array(a),o=new Array(a),s=1/0,d=1/0,c=-1/0,u=-1/0;for(f=0;f<a;++f)isNaN(n=+this._x.call(null,t=e[f]))||isNaN(i=+this._y.call(null,t))||(r[f]=n,o[f]=i,n<s&&(s=n),n>c&&(c=n),i<d&&(d=i),i>u&&(u=i));for(c<s&&(s=this._x0,c=this._x1),u<d&&(d=this._y0,u=this._y1),this.cover(s,d).cover(c,u),f=0;f<a;++f)Rf(this,r[f],o[f],e[f]);return this},d_.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var f=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(f))i=(f=Math.floor(e))+1,a=(n=Math.floor(t))+1;else{if(!(f>e||e>i||n>t||t>a))return this;var r,o,s=i-f,d=this._root;switch(o=(t<(n+a)/2)<<1|e<(f+i)/2){case 0:do{(r=new Array(4))[o]=d,d=r}while(s*=2,i=f+s,a=n+s,e>i||t>a);break;case 1:do{(r=new Array(4))[o]=d,d=r}while(s*=2,f=i-s,a=n+s,f>e||t>a);break;case 2:do{(r=new Array(4))[o]=d,d=r}while(s*=2,i=f+s,n=a-s,e>i||n>t);break;case 3:do{(r=new Array(4))[o]=d,d=r}while(s*=2,f=i-s,n=a-s,f>e||n>t)}this._root&&this._root.length&&(this._root=d)}return this._x0=f,this._y0=n,this._x1=i,this._y1=a,this},d_.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},d_.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},d_.find=function(e,t,f){var n,i,a,r,o,s,d,c=this._x0,u=this._y0,l=this._x1,_=this._y1,m=[],h=this._root;for(h&&m.push(new s_(h,c,u,l,_)),null==f?f=1/0:(c=e-f,u=t-f,l=e+f,_=t+f,f*=f);s=m.pop();)if(!(!(h=s.node)||(i=s.x0)>l||(a=s.y0)>_||(r=s.x1)<c||(o=s.y1)<u))if(h.length){var p=(i+r)/2,g=(a+o)/2;m.push(new s_(h[3],p,g,r,o),new s_(h[2],i,g,p,o),new s_(h[1],p,a,r,g),new s_(h[0],i,a,p,g)),(d=(t>=g)<<1|e>=p)&&(s=m[m.length-1],m[m.length-1]=m[m.length-1-d],m[m.length-1-d]=s)}else{var y=e-+this._x.call(null,h.data),b=t-+this._y.call(null,h.data),v=y*y+b*b;if(v<f){var w=Math.sqrt(f=v);c=e-w,u=t-w,l=e+w,_=t+w,n=h.data}}return n},d_.remove=function(e){if(isNaN(a=+this._x.call(null,e))||isNaN(r=+this._y.call(null,e)))return this;var t,f,n,i,a,r,o,s,d,c,u,l,_=this._root,m=this._x0,h=this._y0,p=this._x1,g=this._y1;if(!_)return this;if(_.length)for(;;){if((d=a>=(o=(m+p)/2))?m=o:p=o,(c=r>=(s=(h+g)/2))?h=s:g=s,t=_,!(_=_[u=c<<1|d]))return this;if(!_.length)break;(t[u+1&3]||t[u+2&3]||t[u+3&3])&&(f=t,l=u)}for(;_.data!==e;)if(n=_,!(_=_.next))return this;return(i=_.next)&&delete _.next,n?(i?n.next=i:delete n.next,this):t?(i?t[u]=i:delete t[u],(_=t[0]||t[1]||t[2]||t[3])&&_===(t[3]||t[2]||t[1]||t[0])&&!_.length&&(f?f[l]=_:this._root=_),this):(this._root=i,this)},d_.removeAll=function(e){for(var t=0,f=e.length;t<f;++t)this.remove(e[t]);return this},d_.root=function(){return this._root},d_.size=function(){var e=0;return this.visit(function(t){if(!t.length)do{++e}while(t=t.next)}),e},d_.visit=function(e){var t,f,n,i,a,r,o=[],s=this._root;for(s&&o.push(new s_(s,this._x0,this._y0,this._x1,this._y1));t=o.pop();)if(!e(s=t.node,n=t.x0,i=t.y0,a=t.x1,r=t.y1)&&s.length){var d=(n+a)/2,c=(i+r)/2;(f=s[3])&&o.push(new s_(f,d,c,a,r)),(f=s[2])&&o.push(new s_(f,n,c,d,r)),(f=s[1])&&o.push(new s_(f,d,i,a,c)),(f=s[0])&&o.push(new s_(f,n,i,d,c))}return this},d_.visitAfter=function(e){var t,f=[],n=[];for(this._root&&f.push(new s_(this._root,this._x0,this._y0,this._x1,this._y1));t=f.pop();){var i=t.node;if(i.length){var a,r=t.x0,o=t.y0,s=t.x1,d=t.y1,c=(r+s)/2,u=(o+d)/2;(a=i[0])&&f.push(new s_(a,r,o,c,u)),(a=i[1])&&f.push(new s_(a,c,o,s,u)),(a=i[2])&&f.push(new s_(a,r,u,c,d)),(a=i[3])&&f.push(new s_(a,c,u,s,d))}n.push(t)}for(;t=n.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},d_.x=function(e){return arguments.length?(this._x=e,this):this._x},d_.y=function(e){return arguments.length?(this._y=e,this):this._y};var c_,u_=10,l_=Math.PI*(3-Math.sqrt(5)),__=function(e,t){if((f=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var f,n=e.slice(0,f);return[n.length>1?n[0]+n.slice(2):n,+e.slice(f+1)]},m_=function(e){return(e=__(Math.abs(e)))?e[1]:NaN},h_=function(e,t){return function(f,n){for(var i=f.length,a=[],r=0,o=e[0],s=0;i>0&&o>0&&(s+o+1>n&&(o=Math.max(1,n-s)),a.push(f.substring(i-=o,i+o)),!((s+=o+1)>n));)o=e[r=(r+1)%e.length];return a.reverse().join(t)}},p_=function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}},g_=function(e,t){var f=__(e,t);if(!f)return e+"";var n=f[0],i=f[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")},y_={"":function(e,t){e:for(var f,n=(e=e.toPrecision(t)).length,i=1,a=-1;i<n;++i)switch(e[i]){case".":a=f=i;break;case"0":0===a&&(a=i),f=i;break;case"e":break e;default:a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(f+1):e},"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return g_(100*e,t)},r:g_,s:function(e,t){var f=__(e,t);if(!f)return e+"";var n=f[0],i=f[1],a=i-(c_=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,r=n.length;return a===r?n:a>r?n+new Array(a-r+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+__(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},b_=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;Hf.prototype=Vf.prototype,Vf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var v_,w_=function(e){return e},k_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],x_=function(e){function t(e){function t(e){var t,n,r,c=p,v=g;if("c"===h)v=y(e)+v,e="";else{var w=(e=+e)<0;if(e=y(Math.abs(e),m),w&&0==+e&&(w=!1),c=(w?"("===d?d:"-":"-"===d||"("===d?"":d)+c,v=v+("s"===h?k_[8+c_/3]:"")+(w&&"("===d?")":""),b)for(t=-1,n=e.length;++t<n;)if(48>(r=e.charCodeAt(t))||r>57){v=(46===r?i+e.slice(t+1):e.slice(t))+v,e=e.slice(0,t);break}}_&&!u&&(e=f(e,1/0));var k=c.length+e.length+v.length,x=k<l?new Array(l-k+1).join(o):"";switch(_&&u&&(e=f(x+e,x.length?l-v.length:1/0),x=""),s){case"<":e=c+e+v+x;break;case"=":e=c+x+e+v;break;case"^":e=x.slice(0,k=x.length>>1)+c+e+v+x.slice(k);break;default:e=x+c+e+v}return a(e)}var o=(e=Hf(e)).fill,s=e.align,d=e.sign,c=e.symbol,u=e.zero,l=e.width,_=e.comma,m=e.precision,h=e.type,p="$"===c?n[0]:"#"===c&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",g="$"===c?n[1]:/[%p]/.test(h)?r:"",y=y_[h],b=!h||/[defgprs%]/.test(h);return m=null==m?h?6:12:/[gprs]/.test(h)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),t.toString=function(){return e+""},t}var f=e.grouping&&e.thousands?h_(e.grouping,e.thousands):w_,n=e.currency,i=e.decimal,a=e.numerals?p_(e.numerals):w_,r=e.percent||"%";return{format:t,formatPrefix:function(e,f){var n=t((e=Hf(e),e.type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(m_(f)/3))),a=Math.pow(10,-i),r=k_[8+i/3];return function(e){return n(a*e)+r}}}};Gf({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var q_=function(e){return Math.max(0,-m_(Math.abs(e)))},E_=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(m_(t)/3)))-m_(Math.abs(e)))},T_=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,m_(t)-m_(e))+1},S_=function(){return new Wf};Wf.prototype={constructor:Wf,reset:function(){this.s=this.t=0},add:function(e){Xf(am,e,this.t),Xf(this,am.s,this.s),this.s?this.t+=am.t:this.s=am.t},valueOf:function(){return this.s}};var M_,C_,A_,O_,R_,P_,N_,L_,j_,$_,D_,I_,U_,F_,z_,B_,H_,V_,G_,W_,X_,Y_,K_,J_,Q_,Z_,em,tm,fm,nm,im,am=new Wf,rm=1e-6,om=Math.PI,sm=om/2,dm=om/4,cm=2*om,um=180/om,lm=om/180,_m=Math.abs,mm=Math.atan,hm=Math.atan2,pm=Math.cos,gm=Math.ceil,ym=Math.exp,bm=Math.log,vm=Math.pow,wm=Math.sin,km=Math.sign||function(e){return e>0?1:e<0?-1:0},xm=Math.sqrt,qm=Math.tan,Em={Feature:function(e,t){Zf(e.geometry,t)},FeatureCollection:function(e,t){for(var f=e.features,n=-1,i=f.length;++n<i;)Zf(f[n].geometry,t)}},Tm={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var f=e.coordinates,n=-1,i=f.length;++n<i;)e=f[n],t.point(e[0],e[1],e[2])},LineString:function(e,t){en(e.coordinates,t,0)},MultiLineString:function(e,t){for(var f=e.coordinates,n=-1,i=f.length;++n<i;)en(f[n],t,0)},Polygon:function(e,t){tn(e.coordinates,t)},MultiPolygon:function(e,t){for(var f=e.coordinates,n=-1,i=f.length;++n<i;)tn(f[n],t)},GeometryCollection:function(e,t){for(var f=e.geometries,n=-1,i=f.length;++n<i;)Zf(f[n],t)}},Sm=function(e,t){e&&Em.hasOwnProperty(e.type)?Em[e.type](e,t):Zf(e,t)},Mm=S_(),Cm=S_(),Am={point:Qf,lineStart:Qf,lineEnd:Qf,polygonStart:function(){Mm.reset(),Am.lineStart=fn,Am.lineEnd=nn},polygonEnd:function(){var e=+Mm;Cm.add(e<0?cm+e:e),this.lineStart=this.lineEnd=this.point=Qf},sphere:function(){Cm.add(cm)}},Om=S_(),Rm={point:mn,lineStart:pn,lineEnd:gn,polygonStart:function(){Rm.point=yn,Rm.lineStart=bn,Rm.lineEnd=vn,Om.reset(),Am.polygonStart()},polygonEnd:function(){Am.polygonEnd(),Rm.point=mn,Rm.lineStart=pn,Rm.lineEnd=gn,Mm<0?(P_=-(L_=180),N_=-(j_=90)):Om>rm?j_=90:Om<-rm&&(N_=-90),z_[0]=P_,z_[1]=L_}},Pm={sphere:Qf,point:qn,lineStart:Tn,lineEnd:Cn,polygonStart:function(){Pm.lineStart=An,Pm.lineEnd=On},polygonEnd:function(){Pm.lineStart=Tn,Pm.lineEnd=Cn}},Nm=function(e){return function(){return e}},Lm=function(e,t){function f(f,n){return f=e(f,n),t(f[0],f[1])}return e.invert&&t.invert&&(f.invert=function(f,n){return(f=t.invert(f,n))&&e.invert(f[0],f[1])}),f};Nn.invert=Nn;var jm,$m,Dm,Im,Um,Fm,zm,Bm,Hm,Vm,Gm,Wm=function(e){function t(t){return t=e(t[0]*lm,t[1]*lm),t[0]*=um,t[1]*=um,t}return e=Ln(e[0]*lm,e[1]*lm,e.length>2?e[2]*lm:0),t.invert=function(t){return t=e.invert(t[0]*lm,t[1]*lm),t[0]*=um,t[1]*=um,t},t},Xm=function(){var e,t=[];return{point:function(t,f){e.push([t,f])},lineStart:function(){t.push(e=[])},lineEnd:Qf,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var f=t;return t=[],e=null,f}}},Ym=function(e,t,f,n,i,a){var r,o=e[0],s=e[1],d=0,c=1,u=t[0]-o,l=t[1]-s;if(r=f-o,u||!(r>0)){if(r/=u,u<0){if(r<d)return;r<c&&(c=r)}else if(u>0){if(r>c)return;r>d&&(d=r)}if(r=i-o,u||!(r<0)){if(r/=u,u<0){if(r>c)return;r>d&&(d=r)}else if(u>0){if(r<d)return;r<c&&(c=r)}if(r=n-s,l||!(r>0)){if(r/=l,l<0){if(r<d)return;r<c&&(c=r)}else if(l>0){if(r>c)return;r>d&&(d=r)}if(r=a-s,l||!(r<0)){if(r/=l,l<0){if(r>c)return;r>d&&(d=r)}else if(l>0){if(r<d)return;r<c&&(c=r)}return d>0&&(e[0]=o+d*u,e[1]=s+d*l),c<1&&(t[0]=o+c*u,t[1]=s+c*l),!0}}}}},Km=function(e,t){return _m(e[0]-t[0])<rm&&_m(e[1]-t[1])<rm},Jm=function(e,t,f,n,i){var a,r,o=[],s=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,f,n=e[0],r=e[t];if(Km(n,r)){for(i.lineStart(),a=0;a<t;++a)i.point((n=e[a])[0],n[1]);i.lineEnd()}else o.push(f=new Fn(n,e,null,!0)),s.push(f.o=new Fn(n,null,f,!1)),o.push(f=new Fn(r,e,null,!1)),s.push(f.o=new Fn(r,null,f,!0))}}),o.length){for(s.sort(t),zn(o),zn(s),a=0,r=s.length;a<r;++a)s[a].e=f=!f;for(var d,c,u=o[0];;){for(var l=u,_=!0;l.v;)if((l=l.n)===u)return;d=l.z,i.lineStart();do{if(l.v=l.o.v=!0,l.e){if(_)for(a=0,r=d.length;a<r;++a)i.point((c=d[a])[0],c[1]);else n(l.x,l.n.x,1,i);l=l.n}else{if(_)for(d=l.p.z,a=d.length-1;a>=0;--a)i.point((c=d[a])[0],c[1]);else n(l.x,l.p.x,-1,i);l=l.p}d=(l=l.o).z,_=!_}while(!l.v);i.lineEnd()}}},Qm=1e9,Zm=-Qm,eh=S_(),th=function(e,t){var f=t[0],n=t[1],i=[wm(f),-pm(f),0],a=0,r=0;eh.reset();for(var o=0,s=e.length;o<s;++o)if(c=(d=e[o]).length)for(var d,c,u=d[c-1],l=u[0],_=u[1]/2+dm,m=wm(_),h=pm(_),p=0;p<c;++p,l=y,m=v,h=w,u=g){var g=d[p],y=g[0],b=g[1]/2+dm,v=wm(b),w=pm(b),k=y-l,x=k>=0?1:-1,q=x*k,E=q>om,T=m*v;if(eh.add(hm(T*x*wm(q),h*w+T*pm(q))),a+=E?k+x*cm:k,E^l>=f^y>=f){var S=cn(sn(u),sn(g));_n(S);var M=cn(i,S);_n(M);var C=(E^k>=0?-1:1)*Kf(M[2]);(n>C||n===C&&(S[0]||S[1]))&&(r+=E^k>=0?1:-1)}}return(a<-rm||a<rm&&eh<-rm)^1&r},fh=S_(),nh={sphere:Qf,point:Qf,lineStart:function(){nh.point=Vn,nh.lineEnd=Hn},lineEnd:Qf,polygonStart:Qf,polygonEnd:Qf},ih=function(e){return fh.reset(),Sm(e,nh),+fh},ah=[null,null],rh={type:"LineString",coordinates:ah},oh=function(e,t){return ah[0]=e,ah[1]=t,ih(rh)},sh={Feature:function(e,t){return Wn(e.geometry,t)},FeatureCollection:function(e,t){for(var f=e.features,n=-1,i=f.length;++n<i;)if(Wn(f[n].geometry,t))return!0;return!1}},dh={Sphere:function(){return!0},Point:function(e,t){return Xn(e.coordinates,t)},MultiPoint:function(e,t){for(var f=e.coordinates,n=-1,i=f.length;++n<i;)if(Xn(f[n],t))return!0;return!1},LineString:function(e,t){return Yn(e.coordinates,t)},MultiLineString:function(e,t){for(var f=e.coordinates,n=-1,i=f.length;++n<i;)if(Yn(f[n],t))return!0;return!1},Polygon:function(e,t){return Kn(e.coordinates,t)},MultiPolygon:function(e,t){for(var f=e.coordinates,n=-1,i=f.length;++n<i;)if(Kn(f[n],t))return!0;return!1},GeometryCollection:function(e,t){for(var f=e.geometries,n=-1,i=f.length;++n<i;)if(Wn(f[n],t))return!0;return!1}},ch=function(e){return e},uh=S_(),lh=S_(),_h={point:Qf,lineStart:Qf,lineEnd:Qf,polygonStart:function(){_h.lineStart=fi,_h.lineEnd=ai},polygonEnd:function(){_h.lineStart=_h.lineEnd=_h.point=Qf,uh.add(_m(lh)),lh.reset()},result:function(){var e=uh/2;return uh.reset(),e}},mh=1/0,hh=mh,ph=-mh,gh=ph,yh={point:function(e,t){e<mh&&(mh=e),e>ph&&(ph=e),t<hh&&(hh=t),t>gh&&(gh=t)},lineStart:Qf,lineEnd:Qf,polygonStart:Qf,polygonEnd:Qf,result:function(){var e=[[mh,hh],[ph,gh]];return ph=gh=-(hh=mh=1/0),e}},bh=0,vh=0,wh=0,kh=0,xh=0,qh=0,Eh=0,Th=0,Sh=0,Mh={point:ri,lineStart:oi,lineEnd:ci,polygonStart:function(){Mh.lineStart=ui,Mh.lineEnd=li},polygonEnd:function(){Mh.point=ri,Mh.lineStart=oi,Mh.lineEnd=ci},result:function(){var e=Sh?[Eh/Sh,Th/Sh]:qh?[kh/qh,xh/qh]:wh?[bh/wh,vh/wh]:[NaN,NaN];return bh=vh=wh=kh=xh=qh=Eh=Th=Sh=0,e}};hi.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,cm)}},result:Qf};var Ch,Ah,Oh,Rh,Ph,Nh=S_(),Lh={point:Qf,lineStart:function(){Lh.point=pi},lineEnd:function(){Ch&&gi(Ah,Oh),Lh.point=Qf},polygonStart:function(){Ch=!0},polygonEnd:function(){Ch=null},result:function(){var e=+Nh;return Nh.reset(),e}};yi.prototype={_radius:4.5,_circle:bi(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=bi(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var jh=function(e,t,f,n){return function(i,a){function r(t,f){var n=i(t,f);e(t=n[0],f=n[1])&&a.point(t,f)}function o(e,t){var f=i(e,t);p.point(f[0],f[1])}function s(){w.point=o,p.lineStart()}function d(){w.point=r,p.lineEnd()}function c(e,t){h.push([e,t]);var f=i(e,t);b.point(f[0],f[1])}function u(){b.lineStart(),h=[]}function l(){c(h[0][0],h[0][1]),b.lineEnd();var e,t,f,n,i=b.clean(),r=y.result(),o=r.length;if(h.pop(),_.push(h),h=null,o)if(1&i){if(f=r[0],(t=f.length-1)>0){for(v||(a.polygonStart(),v=!0),a.lineStart(),e=0;e<t;++e)a.point((n=f[e])[0],n[1]);a.lineEnd()}}else o>1&&2&i&&r.push(r.pop().concat(r.shift())),m.push(r.filter(vi))}var _,m,h,p=t(a),g=i.invert(n[0],n[1]),y=Xm(),b=t(y),v=!1,w={point:r,lineStart:s,lineEnd:d,polygonStart:function(){w.point=c,w.lineStart=u,w.lineEnd=l,m=[],_=[]},polygonEnd:function(){w.point=r,w.lineStart=s,w.lineEnd=d,m=Od(m);var e=th(_,g);m.length?(v||(a.polygonStart(),v=!0),Jm(m,wi,e,f,a)):e&&(v||(a.polygonStart(),v=!0),a.lineStart(),f(null,null,1,a),a.lineEnd()),v&&(a.polygonEnd(),v=!1),m=_=null},sphere:function(){a.polygonStart(),a.lineStart(),f(null,null,1,a),a.lineEnd(),a.polygonEnd()}};return w}},$h=jh(function(){return!0},function(e){var t,f=NaN,n=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(a,r){var o=a>0?om:-om,s=_m(a-f);_m(s-om)<rm?(e.point(f,n=(n+r)/2>0?sm:-sm),e.point(i,n),e.lineEnd(),e.lineStart(),e.point(o,n),e.point(a,n),t=0):i!==o&&s>=om&&(_m(f-i)<rm&&(f-=i*rm),_m(a-o)<rm&&(a-=o*rm),n=ki(f,n,a,r),e.point(i,n),e.lineEnd(),e.lineStart(),e.point(o,n),t=0),e.point(f=a,n=r),i=o},lineEnd:function(){e.lineEnd(),f=n=NaN},clean:function(){return 2-t}}},function(e,t,f,n){var i;if(null==e)i=f*sm,n.point(-om,i),n.point(0,i),n.point(om,i),n.point(om,0),n.point(om,-i),n.point(0,-i),n.point(-om,-i),n.point(-om,0),n.point(-om,i);else if(_m(e[0]-t[0])>rm){var a=e[0]<t[0]?om:-om;i=f*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(t[0],t[1])},[-om,-sm]),Dh=function(e,t){function f(e,t){return pm(e)*pm(t)>a}function n(e,t,f){var n=[1,0,0],i=cn(sn(e),sn(t)),r=dn(i,i),o=i[0],s=r-o*o;if(!s)return!f&&e;var d=a*r/s,c=-a*o/s,u=cn(n,i),l=ln(n,d);un(l,ln(i,c));var _=u,m=dn(l,_),h=dn(_,_),p=m*m-h*(dn(l,l)-1);if(!(p<0)){var g=xm(p),y=ln(_,(-m-g)/h);if(un(y,l),y=on(y),!f)return y;var b,v=e[0],w=t[0],k=e[1],x=t[1];w<v&&(b=v,v=w,w=b);var q=w-v,E=_m(q-om)<rm,T=E||q<rm;if(!E&&x<k&&(b=k,k=x,x=b),T?E?k+x>0^y[1]<(_m(y[0]-v)<rm?k:x):k<=y[1]&&y[1]<=x:q>om^(v<=y[0]&&y[0]<=w)){var S=ln(_,(-m+g)/h);return un(S,l),[y,on(S)]}}}function i(t,f){var n=r?e:om-e,i=0;return t<-n?i|=1:t>n&&(i|=2),f<-n?i|=4:f>n&&(i|=8),i}var a=pm(e),r=a>0,o=_m(a)>rm;return jh(f,function(e){var t,a,s,d,c;return{lineStart:function(){d=s=!1,c=1},point:function(u,l){var _,m=[u,l],h=f(u,l),p=r?h?0:i(u,l):h?i(u+(u<0?om:-om),l):0;if(!t&&(d=s=h)&&e.lineStart(),h!==s&&(!(_=n(t,m))||Km(t,_)||Km(m,_))&&(m[0]+=rm,m[1]+=rm,h=f(m[0],m[1])),h!==s)c=0,h?(e.lineStart(),_=n(m,t),e.point(_[0],_[1])):(_=n(t,m),e.point(_[0],_[1]),e.lineEnd()),t=_;else if(o&&t&&r^h){var g;p&a||!(g=n(m,t,!0))||(c=0,r?(e.lineStart(),e.point(g[0][0],g[0][1]),e.point(g[1][0],g[1][1]),e.lineEnd()):(e.point(g[1][0],g[1][1]),e.lineEnd(),e.lineStart(),e.point(g[0][0],g[0][1])))}!h||t&&Km(t,m)||e.point(m[0],m[1]),t=m,s=h,a=p},lineEnd:function(){s&&e.lineEnd(),t=null},clean:function(){return c|(d&&s)<<1}}},function(f,n,i,a){In(a,e,t,i,f,n)},r?[0,-e]:[-om,e-om])};qi.prototype={constructor:qi,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Ih=16,Uh=pm(30*lm),Fh=function(e,t){return+t?Mi(e,t):Si(e)},zh=xi({point:function(e,t){this.stream.point(e*lm,t*lm)}}),Bh=function(){return Oi(Pi).scale(155.424).center([0,33.6442])},Hh=function(){return Bh().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},Vh=Li(function(e){return xm(2/(1+e))});Vh.invert=ji(function(e){return 2*Kf(e/2)});var Gh=Li(function(e){return(e=Yf(e))&&e/wm(e)});Gh.invert=ji(function(e){return e}),$i.invert=function(e,t){return[e,2*mm(ym(t))-sm]},Fi.invert=Fi,Bi.invert=ji(mm),Vi.invert=ji(Kf),Gi.invert=ji(function(e){return 2*mm(e)}),Wi.invert=function(e,t){return[-t,2*mm(ym(e))-sm]},oa.prototype=na.prototype={constructor:oa,count:function(){return this.eachAfter(ta)},each:function(e){var t,f,n,i,a=this,r=[a];do{for(t=r.reverse(),r=[];a=t.pop();)if(e(a),f=a.children)for(n=0,i=f.length;n<i;++n)r.push(f[n])}while(r.length);return this},eachAfter:function(e){for(var t,f,n,i=this,a=[i],r=[];i=a.pop();)if(r.push(i),t=i.children)for(f=0,n=t.length;f<n;++f)a.push(t[f]);for(;i=r.pop();)e(i);return this},eachBefore:function(e){for(var t,f,n=this,i=[n];n=i.pop();)if(e(n),t=n.children)for(f=t.length-1;f>=0;--f)i.push(t[f]);return this},sum:function(e){return this.eachAfter(function(t){for(var f=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)f+=n[i].value;t.value=f})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,f=fa(t,e),n=[t];t!==f;)t=t.parent,n.push(t);for(var i=n.length;e!==f;)n.splice(i,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each(function(t){e.push(t)}),e},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(f){f!==e&&t.push({source:f.parent,target:f})}),t},copy:function(){return na(this).eachBefore(aa)}};var Wh=Array.prototype.slice,Xh=function(e){for(var t,f,n=0,i=(e=sa(Wh.call(e))).length,a=[];n<i;)t=e[n],f&&ua(f,t)?++n:(f=_a(a=da(a,t)),n=0);return f},Yh=function(e){return function(){return e}},Kh=function(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)},Jh=function(e,t,f,n,i){for(var a,r=e.children,o=-1,s=r.length,d=e.value&&(n-t)/e.value;++o<s;)(a=r[o]).y0=f,a.y1=i,a.x0=t,a.x1=t+=a.value*d},Qh="$",Zh={depth:-1},ep={};$a.prototype=Object.create(oa.prototype);var tp=function(e,t,f,n,i){for(var a,r=e.children,o=-1,s=r.length,d=e.value&&(i-f)/e.value;++o<s;)(a=r[o]).x0=t,a.x1=n,a.y0=f,a.y1=f+=a.value*d},fp=(1+Math.sqrt(5))/2,np=function e(t){function f(e,f,n,i,a){Ia(t,e,f,n,i,a)}return f.ratio=function(t){return e((t=+t)>1?t:1)},f}(fp),ip=function e(t){function f(e,f,n,i,a){if((r=e._squarify)&&r.ratio===t)for(var r,o,s,d,c,u=-1,l=r.length,_=e.value;++u<l;){for(s=(o=r[u]).children,d=o.value=0,c=s.length;d<c;++d)o.value+=s[d].value;o.dice?Jh(o,f,n,i,n+=(a-n)*o.value/_):tp(o,f,n,f+=(i-f)*o.value/_,a),_-=o.value}else e._squarify=r=Ia(t,e,f,n,i,a),r.ratio=t}return f.ratio=function(t){return e((t=+t)>1?t:1)},f}(fp),ap=function(e,t,f){return(t[0]-e[0])*(f[1]-e[1])-(t[1]-e[1])*(f[0]-e[0])},rp=[].slice,op={};za.prototype=Xa.prototype={constructor:za,defer:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var t=rp.call(arguments,1);return t.push(e),++this._waiting,this._tasks.push(t),Ba(this),this},abort:function(){return null==this._error&&Ga(this,new Error("abort")),this},await:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(t,f){e.apply(null,[t].concat(f))},Wa(this),this},awaitAll:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=e,Wa(this),this}};var sp=function(){return Math.random()},dp=function e(t){function f(e,f){return e=null==e?0:+e,f=null==f?1:+f,1===arguments.length?(f=e,e=0):f-=e,function(){return t()*f+e}}return f.source=e,f}(sp),cp=function e(t){function f(e,f){var n,i;return e=null==e?0:+e,f=null==f?1:+f,function(){var a;if(null!=n)a=n,n=null;else do{n=2*t()-1,a=2*t()-1,i=n*n+a*a}while(!i||i>1);return e+f*a*Math.sqrt(-2*Math.log(i)/i)}}return f.source=e,f}(sp),up=function e(t){function f(){var e=cp.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return f.source=e,f}(sp),lp=function e(t){function f(e){return function(){for(var f=0,n=0;n<e;++n)f+=t();return f}}return f.source=e,f}(sp),_p=function e(t){function f(e){var f=lp.source(t)(e);return function(){return f()/e}}return f.source=e,f}(sp),mp=function e(t){function f(e){return function(){return-Math.log(1-t())/e}}return f.source=e,f}(sp),hp=function(e,t){function f(e){var t,f=d.status;if(!f&&Ka(d)||f>=200&&f<300||304===f){if(a)try{t=a.call(n,d)}catch(e){return void o.call("error",n,e)}else t=d;o.call("load",n,t)}else o.call("error",n,e)}var n,i,a,r,o=l("beforesend","progress","load","error"),s=kf(),d=new XMLHttpRequest,c=null,u=null,_=0;if("undefined"==typeof XDomainRequest||"withCredentials"in d||!/^(http(s)?:)?\/\//.test(e)||(d=new XDomainRequest),"onload"in d?d.onload=d.onerror=d.ontimeout=f:d.onreadystatechange=function(e){d.readyState>3&&f(e)},d.onprogress=function(e){o.call("progress",n,e)},n={header:function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s.get(e):(null==t?s.remove(e):s.set(e,t+""),n)},mimeType:function(e){return arguments.length?(i=null==e?null:e+"",n):i},responseType:function(e){return arguments.length?(r=e,n):r},timeout:function(e){return arguments.length?(_=+e,n):_},user:function(e){return arguments.length<1?c:(c=null==e?null:e+"",n)},password:function(e){return arguments.length<1?u:(u=null==e?null:e+"",n)},response:function(e){return a=e,n},get:function(e,t){return n.send("GET",e,t)},post:function(e,t){return n.send("POST",e,t)},send:function(t,f,a){return d.open(t,e,!0,c,u),null==i||s.has("accept")||s.set("accept",i+",*/*"),d.setRequestHeader&&s.each(function(e,t){d.setRequestHeader(t,e)}),null!=i&&d.overrideMimeType&&d.overrideMimeType(i),null!=r&&(d.responseType=r),_>0&&(d.timeout=_),null==a&&"function"==typeof f&&(a=f,f=null),null!=a&&1===a.length&&(a=Ya(a)),null!=a&&n.on("error",a).on("load",function(e){a(null,e)}),o.call("beforesend",n,d),d.send(null==f?null:f),n},abort:function(){return d.abort(),n},on:function(){var e=o.on.apply(o,arguments);return e===o?n:e}},null!=t){if("function"!=typeof t)throw new Error("invalid callback: "+t);return n.get(t)}return n},pp=function(e,t){return function(f,n){var i=hp(f).mimeType(e).response(t);if(null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return i.get(n)}return i}},gp=pp("text/html",function(e){return document.createRange().createContextualFragment(e.responseText)}),yp=pp("application/json",function(e){return JSON.parse(e.responseText)}),bp=pp("text/plain",function(e){return e.responseText}),vp=pp("application/xml",function(e){var t=e.responseXML;if(!t)throw new Error("parse error");return t}),wp=function(e,t){return function(f,n,i){arguments.length<3&&(i=n,n=null);var a=hp(f).mimeType(e);return a.row=function(e){return arguments.length?a.response(Ja(t,n=e)):n},a.row(n),i?a.get(i):a}},kp=wp("text/csv",Jl),xp=wp("text/tab-separated-values",f_),qp=Array.prototype,Ep=qp.map,Tp=qp.slice,Sp={name:"implicit"},Mp=function(e){return function(){return e}},Cp=function(e){return+e},Ap=[0,1],Op=function(t,f,n){var a,r=t[0],o=t[t.length-1],s=i(r,o,null==f?10:f);switch((n=Hf(null==n?",f":n)).type){case"s":var d=Math.max(Math.abs(r),Math.abs(o));return null!=n.precision||isNaN(a=E_(s,d))||(n.precision=a),e.formatPrefix(n,d);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(a=T_(s,Math.max(Math.abs(r),Math.abs(o))))||(n.precision=a-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(a=q_(s))||(n.precision=a-2*("%"===n.type))}return e.format(n)},Rp=function(e,t){var f,n=0,i=(e=e.slice()).length-1,a=e[n],r=e[i];return r<a&&(f=n,n=i,i=f,f=a,a=r,r=f),e[n]=t.floor(a),e[i]=t.ceil(r),e},Pp=new Date,Np=new Date,Lp=xr(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Lp.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?xr(function(t){t.setTime(Math.floor(t/e)*e)},function(t,f){t.setTime(+t+f*e)},function(t,f){return(f-t)/e}):Lp:null};var jp=Lp.range,$p=6e4,Dp=6048e5,Ip=xr(function(e){e.setTime(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),Up=Ip.range,Fp=xr(function(e){e.setTime(Math.floor(e/$p)*$p)},function(e,t){e.setTime(+e+t*$p)},function(e,t){return(t-e)/$p},function(e){return e.getMinutes()}),zp=Fp.range,Bp=xr(function(e){var t=e.getTimezoneOffset()*$p%36e5;t<0&&(t+=36e5),e.setTime(36e5*Math.floor((+e-t)/36e5)+t)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()}),Hp=Bp.range,Vp=xr(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*$p)/864e5},function(e){return e.getDate()-1}),Gp=Vp.range,Wp=qr(0),Xp=qr(1),Yp=qr(2),Kp=qr(3),Jp=qr(4),Qp=qr(5),Zp=qr(6),eg=Wp.range,tg=Xp.range,fg=Yp.range,ng=Kp.range,ig=Jp.range,ag=Qp.range,rg=Zp.range,og=xr(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),sg=og.range,dg=xr(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});dg.every=function(e){return isFinite(e=Math.floor(e))&&e>0?xr(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,f){t.setFullYear(t.getFullYear()+f*e)}):null};var cg=dg.range,ug=xr(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*$p)},function(e,t){return(t-e)/$p},function(e){return e.getUTCMinutes()}),lg=ug.range,_g=xr(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()}),mg=_g.range,hg=xr(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1}),pg=hg.range,gg=Er(0),yg=Er(1),bg=Er(2),vg=Er(3),wg=Er(4),kg=Er(5),xg=Er(6),qg=gg.range,Eg=yg.range,Tg=bg.range,Sg=vg.range,Mg=wg.range,Cg=kg.range,Ag=xg.range,Og=xr(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),Rg=Og.range,Pg=xr(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Pg.every=function(e){return isFinite(e=Math.floor(e))&&e>0?xr(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,f){t.setUTCFullYear(t.getUTCFullYear()+f*e)}):null};var Ng,Lg=Pg.range,jg={"-":"",_:" ",0:"0"},$g=/^\s*\d+/,Dg=/^%/,Ig=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;qo({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ug=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),Fg=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),zg=1e3,Bg=60*zg,Hg=60*Bg,Vg=24*Hg,Gg=7*Vg,Wg=30*Vg,Xg=365*Vg,Yg=function(e){return e.match(/.{6}/g).map(function(e){return"#"+e})},Kg=Yg("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Jg=Yg("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Qg=Yg("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Zg=Yg("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),ey=wu(Ge(300,.5,0),Ge(-240,.5,1)),ty=wu(Ge(-100,.75,.35),Ge(80,1.5,.8)),fy=wu(Ge(260,.75,.35),Ge(80,1.5,.8)),ny=Ge(),iy=Mo(Yg("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),ay=Mo(Yg("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ry=Mo(Yg("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),oy=Mo(Yg("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),sy=function(e){return function(){return e}},dy=Math.abs,cy=Math.atan2,uy=Math.cos,ly=Math.max,_y=Math.min,my=Math.sin,hy=Math.sqrt,py=1e-12,gy=Math.PI,yy=gy/2,by=2*gy;Io.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var vy=function(e){return new Io(e)},wy=function(){function e(e){var o,s,d,c=e.length,u=!1;for(null==i&&(r=a(d=hf())),o=0;o<=c;++o)!(o<c&&n(s=e[o],o,e))===u&&((u=!u)?r.lineStart():r.lineEnd()),u&&r.point(+t(s,o,e),+f(s,o,e));if(d)return r=null,d+""||null}var t=Uo,f=Fo,n=sy(!0),i=null,a=vy,r=null;return e.x=function(f){return arguments.length?(t="function"==typeof f?f:sy(+f),e):t},e.y=function(t){return arguments.length?(f="function"==typeof t?t:sy(+t),e):f},e.defined=function(t){return arguments.length?(n="function"==typeof t?t:sy(!!t),e):n},e.curve=function(t){return arguments.length?(a=t,null!=i&&(r=a(i)),e):a},e.context=function(t){return arguments.length?(null==t?i=r=null:r=a(i=t),e):i},e},ky=function(){function e(e){var t,c,u,l,_,m=e.length,h=!1,p=new Array(m),g=new Array(m);for(null==o&&(d=s(_=hf())),t=0;t<=m;++t){if(!(t<m&&r(l=e[t],t,e))===h)if(h=!h)c=t,d.areaStart(),d.lineStart();else{for(d.lineEnd(),d.lineStart(),u=t-1;u>=c;--u)d.point(p[u],g[u]);d.lineEnd(),d.areaEnd()}h&&(p[t]=+f(l,t,e),g[t]=+i(l,t,e),d.point(n?+n(l,t,e):p[t],a?+a(l,t,e):g[t]))}if(_)return d=null,_+""||null}function t(){return wy().defined(r).curve(s).context(o)}var f=Uo,n=null,i=sy(0),a=Fo,r=sy(!0),o=null,s=vy,d=null;return e.x=function(t){return arguments.length?(f="function"==typeof t?t:sy(+t),n=null,e):f},e.x0=function(t){return arguments.length?(f="function"==typeof t?t:sy(+t),e):f},e.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:sy(+t),e):n},e.y=function(t){return arguments.length?(i="function"==typeof t?t:sy(+t),a=null,e):i},e.y0=function(t){return arguments.length?(i="function"==typeof t?t:sy(+t),e):i},e.y1=function(t){return arguments.length?(a=null==t?null:"function"==typeof t?t:sy(+t),e):a},e.lineX0=e.lineY0=function(){return t().x(f).y(i)},e.lineY1=function(){return t().x(f).y(a)},e.lineX1=function(){return t().x(n).y(i)},e.defined=function(t){return arguments.length?(r="function"==typeof t?t:sy(!!t),e):r},e.curve=function(t){return arguments.length?(s=t,null!=o&&(d=s(o)),e):s},e.context=function(t){return arguments.length?(null==t?o=d=null:d=s(o=t),e):o},e},xy=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},qy=function(e){return e},Ey=Bo(vy);zo.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Ty=function(){return Ho(wy().curve(Ey))},Sy=function(){var e=ky().curve(Ey),t=e.curve,f=e.lineX0,n=e.lineX1,i=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Ho(f())},delete e.lineX0,e.lineEndAngle=function(){return Ho(n())},delete e.lineX1,e.lineInnerRadius=function(){return Ho(i())},delete e.lineY0,e.lineOuterRadius=function(){return Ho(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t(Bo(e)):t()._curve},e},My=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},Cy=Array.prototype.slice,Ay={draw:function(e,t){var f=Math.sqrt(t/gy);e.moveTo(f,0),e.arc(0,0,f,0,by)}},Oy={draw:function(e,t){var f=Math.sqrt(t/5)/2;e.moveTo(-3*f,-f),e.lineTo(-f,-f),e.lineTo(-f,-3*f),e.lineTo(f,-3*f),e.lineTo(f,-f),e.lineTo(3*f,-f),e.lineTo(3*f,f),e.lineTo(f,f),e.lineTo(f,3*f),e.lineTo(-f,3*f),e.lineTo(-f,f),e.lineTo(-3*f,f),e.closePath()}},Ry=Math.sqrt(1/3),Py=2*Ry,Ny={draw:function(e,t){var f=Math.sqrt(t/Py),n=f*Ry;e.moveTo(0,-f),e.lineTo(n,0),e.lineTo(0,f),e.lineTo(-n,0),e.closePath()}},Ly=Math.sin(gy/10)/Math.sin(7*gy/10),jy=Math.sin(by/10)*Ly,$y=-Math.cos(by/10)*Ly,Dy={draw:function(e,t){var f=Math.sqrt(.8908130915292852*t),n=jy*f,i=$y*f;e.moveTo(0,-f),e.lineTo(n,i);for(var a=1;a<5;++a){var r=by*a/5,o=Math.cos(r),s=Math.sin(r);e.lineTo(s*f,-o*f),e.lineTo(o*n-s*i,s*n+o*i)}e.closePath()}},Iy={draw:function(e,t){var f=Math.sqrt(t),n=-f/2;e.rect(n,n,f,f)}},Uy=Math.sqrt(3),Fy={draw:function(e,t){var f=-Math.sqrt(t/(3*Uy));e.moveTo(0,2*f),e.lineTo(-Uy*f,-f),e.lineTo(Uy*f,-f),e.closePath()}},zy=-.5,By=Math.sqrt(3)/2,Hy=1/Math.sqrt(12),Vy=3*(Hy/2+1),Gy={draw:function(e,t){var f=Math.sqrt(t/Vy),n=f/2,i=f*Hy,a=n,r=f*Hy+f,o=-a,s=r;e.moveTo(n,i),e.lineTo(a,r),e.lineTo(o,s),e.lineTo(zy*n-By*i,By*n+zy*i),e.lineTo(zy*a-By*r,By*a+zy*r),e.lineTo(zy*o-By*s,By*o+zy*s),e.lineTo(zy*n+By*i,zy*i-By*n),e.lineTo(zy*a+By*r,zy*r-By*a),e.lineTo(zy*o+By*s,zy*s-By*o),e.closePath()}},Wy=[Ay,Oy,Ny,Iy,Dy,Fy,Gy],Xy=function(){};Qo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Jo(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Jo(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Zo.prototype={areaStart:Xy,areaEnd:Xy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Jo(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},es.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var f=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(f,n):this._context.moveTo(f,n);break;case 3:this._point=4;default:Jo(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ts.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,f=e.length-1;if(f>0)for(var n,i=e[0],a=t[0],r=e[f]-i,o=t[f]-a,s=-1;++s<=f;)n=s/f,this._basis.point(this._beta*e[s]+(1-this._beta)*(i+n*r),this._beta*t[s]+(1-this._beta)*(a+n*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Yy=function e(t){function f(e){return 1===t?new Qo(e):new ts(e,t)}return f.beta=function(t){return e(+t)},f}(.85);ns.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:fs(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:fs(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ky=function e(t){function f(e){return new ns(e,t)}return f.tension=function(t){return e(+t)},f}(0);is.prototype={areaStart:Xy,areaEnd:Xy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:fs(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Jy=function e(t){function f(e){return new is(e,t)}return f.tension=function(t){return e(+t)},f}(0);as.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:fs(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Qy=function e(t){function f(e){return new as(e,t)}return f.tension=function(t){return e(+t)},f}(0);os.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var f=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(f*f+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:rs(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Zy=function e(t){function f(e){return t?new os(e,t):new ns(e,0)}return f.alpha=function(t){return e(+t)},f}(.5);ss.prototype={areaStart:Xy,areaEnd:Xy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var f=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(f*f+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:rs(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var eb=function e(t){function f(e){return t?new ss(e,t):new is(e,0)}return f.alpha=function(t){return e(+t)},f}(.5);ds.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var f=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(f*f+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:rs(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var tb=function e(t){function f(e){return t?new ds(e,t):new as(e,0)}return f.alpha=function(t){return e(+t)},f}(.5);cs.prototype={areaStart:Xy,areaEnd:Xy,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},hs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ms(this,this._t0,_s(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var f=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ms(this,_s(this,f=ls(this,e,t)),f);break;default:ms(this,this._t0,f=ls(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=f}}},(ps.prototype=Object.create(hs.prototype)).point=function(e,t){hs.prototype.point.call(this,t,e)},gs.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,f,n,i,a){this._context.bezierCurveTo(t,e,n,f,a,i)}},ys.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,f=e.length;if(f)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===f)this._context.lineTo(e[1],t[1]);else for(var n=bs(e),i=bs(t),a=0,r=1;r<f;++a,++r)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[r],t[r]);(this._line||0!==this._line&&1===f)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},vs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var f=this._x*(1-this._t)+e*this._t;this._context.lineTo(f,this._y),this._context.lineTo(f,t)}}this._x=e,this._y=t}};var fb=function(e,t){if((i=e.length)>1)for(var f,n,i,a=1,r=e[t[0]],o=r.length;a<i;++a)for(n=r,r=e[t[a]],f=0;f<o;++f)r[f][1]+=r[f][0]=isNaN(n[f][1])?n[f][0]:n[f][1]},nb=function(e){for(var t=e.length,f=new Array(t);--t>=0;)f[t]=t;return f},ib=function(e){var t=e.map(ks);return nb(e).sort(function(e,f){return t[e]-t[f]})},ab=function(e){return function(){return e}};Es.prototype={constructor:Es,insert:function(e,t){var f,n,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;f=e}else this._?(e=Cs(this._),t.P=null,t.N=e,e.P=e.L=t,f=e):(t.P=t.N=null,this._=t,f=null);for(t.L=t.R=null,t.U=f,t.C=!0,e=t;f&&f.C;)f===(n=f.U).L?(i=n.R)&&i.C?(f.C=i.C=!1,n.C=!0,e=n):(e===f.R&&(Ss(this,f),f=(e=f).U),f.C=!1,n.C=!0,Ms(this,n)):(i=n.L)&&i.C?(f.C=i.C=!1,n.C=!0,e=n):(e===f.L&&(Ms(this,f),f=(e=f).U),f.C=!1,n.C=!0,Ss(this,n)),f=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,f,n,i=e.U,a=e.L,r=e.R;if(f=a?r?Cs(r):a:r,i?i.L===e?i.L=f:i.R=f:this._=f,a&&r?(n=f.C,f.C=e.C,f.L=a,a.U=f,f!==r?(i=f.U,f.U=e.U,e=f.R,i.L=e,f.R=r,r.U=f):(f.U=i,i=f,e=f.R)):(n=e.C,e=f),e&&(e.U=i),!n)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,Ss(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,Ms(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,Ss(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,Ms(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Ss(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,Ms(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};var rb,ob,sb,db,cb,ub=[],lb=[],_b=1e-6,mb=1e-12;ed.prototype={constructor:ed,polygons:function(){var e=this.edges;return this.cells.map(function(t){var f=t.halfedges.map(function(f){return Ds(t,e[f])});return f.data=t.site.data,f})},triangles:function(){var e=[],t=this.edges;return this.cells.forEach(function(f,n){if(a=(i=f.halfedges).length)for(var i,a,r,o=f.site,s=-1,d=t[i[a-1]],c=d.left===o?d.right:d.left;++s<a;)r=c,c=(d=t[i[s]]).left===o?d.right:d.left,r&&c&&n<r.index&&n<c.index&&Qs(o,r,c)<0&&e.push([o.data,r.data,c.data])}),e},links:function(){return this.edges.filter(function(e){return e.right}).map(function(e){return{source:e.left.data,target:e.right.data}})},find:function(e,t,f){for(var n,i,a=this,r=a._found||0,o=a.cells.length;!(i=a.cells[r]);)if(++r>=o)return null;var s=e-i.site[0],d=t-i.site[1],c=s*s+d*d;do{i=a.cells[n=r],r=null,i.halfedges.forEach(function(f){var n=a.edges[f],o=n.left;if(o!==i.site&&o||(o=n.right)){var s=e-o[0],d=t-o[1],u=s*s+d*d;u<c&&(c=u,r=o.index)}})}while(null!==r);return a._found=n,null==f||c<=f*f?i.site:null}};var hb=function(e){return function(){return e}};fd.prototype={constructor:fd,scale:function(e){return 1===e?this:new fd(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new fd(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var pb=new fd(1,0,0);nd.prototype=fd.prototype;var gb=function(){e.event.preventDefault(),e.event.stopImmediatePropagation()};e.version="4.10.2",e.bisect=_d,e.bisectRight=_d,e.bisectLeft=md,e.ascending=cd,e.bisector=ud,e.cross=function(e,t,n){var i,a,r,o,s=e.length,d=t.length,c=new Array(s*d);for(null==n&&(n=f),i=r=0;i<s;++i)for(o=e[i],a=0;a<d;++a,++r)c[r]=n(o,t[a]);return c},e.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},e.deviation=gd,e.extent=yd,e.histogram=function(){function e(e){var a,r,o=e.length,s=new Array(o);for(a=0;a<o;++a)s[a]=t(e[a],a,e);var d=f(s),c=d[0],u=d[1],l=n(s,c,u);Array.isArray(l)||(l=i(c,u,l),l=qd(Math.ceil(c/l)*l,Math.floor(u/l)*l,l));for(var _=l.length;l[0]<=c;)l.shift(),--_;for(;l[_-1]>u;)l.pop(),--_;var m,h=new Array(_+1);for(a=0;a<=_;++a)(m=h[a]=[]).x0=a>0?l[a-1]:c,m.x1=a<_?l[a]:u;for(a=0;a<o;++a)c<=(r=s[a])&&r<=u&&h[_d(l,r,0,_)].push(e[a]);return h}var t=xd,f=yd,n=Cd;return e.value=function(f){return arguments.length?(t="function"==typeof f?f:kd(f),e):t},e.domain=function(t){return arguments.length?(f="function"==typeof t?t:kd([t[0],t[1]]),e):f},e.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:kd(Array.isArray(t)?vd.call(t):t),e):n},e},e.thresholdFreedmanDiaconis=function(e,t,f){return e=wd.call(e,hd).sort(cd),Math.ceil((f-t)/(2*(Ad(e,.75)-Ad(e,.25))*Math.pow(e.length,-1/3)))},e.thresholdScott=function(e,t,f){return Math.ceil((f-t)/(3.5*gd(e)*Math.pow(e.length,-1/3)))},e.thresholdSturges=Cd,e.max=function(e,t){var f,n,i=e.length,a=-1;if(null==t){for(;++a<i;)if(null!=(f=e[a])&&f>=f)for(n=f;++a<i;)null!=(f=e[a])&&f>n&&(n=f)}else for(;++a<i;)if(null!=(f=t(e[a],a,e))&&f>=f)for(n=f;++a<i;)null!=(f=t(e[a],a,e))&&f>n&&(n=f);return n},e.mean=function(e,t){var f,n=e.length,i=n,a=-1,r=0;if(null==t)for(;++a<n;)isNaN(f=hd(e[a]))?--i:r+=f;else for(;++a<n;)isNaN(f=hd(t(e[a],a,e)))?--i:r+=f;if(i)return r/i},e.median=function(e,t){var f,n=e.length,i=-1,a=[];if(null==t)for(;++i<n;)isNaN(f=hd(e[i]))||a.push(f);else for(;++i<n;)isNaN(f=hd(t(e[i],i,e)))||a.push(f);return Ad(a.sort(cd),.5)},e.merge=Od,e.min=Rd,e.pairs=function(e,t){null==t&&(t=f);for(var n=0,i=e.length-1,a=e[0],r=new Array(i<0?0:i);n<i;)r[n]=t(a,a=e[++n]);return r},e.permute=function(e,t){for(var f=t.length,n=new Array(f);f--;)n[f]=e[t[f]];return n},e.quantile=Ad,e.range=qd,e.scan=function(e,t){if(f=e.length){var f,n,i=0,a=0,r=e[a];for(null==t&&(t=cd);++i<f;)(t(n=e[i],r)<0||0!==t(r,r))&&(r=n,a=i);return 0===t(r,r)?a:void 0}},e.shuffle=function(e,t,f){for(var n,i,a=(null==f?e.length:f)-(t=null==t?0:+t);a;)i=Math.random()*a--|0,n=e[a+t],e[a+t]=e[i+t],e[i+t]=n;return e},e.sum=function(e,t){var f,n=e.length,i=-1,a=0;if(null==t)for(;++i<n;)(f=+e[i])&&(a+=f);else for(;++i<n;)(f=+t(e[i],i,e))&&(a+=f);return a},e.ticks=Md,e.tickIncrement=n,e.tickStep=i,e.transpose=Pd,e.variance=pd,e.zip=function(){return Pd(arguments)},e.axisTop=function(e){return u(jd,e)},e.axisRight=function(e){return u($d,e)},e.axisBottom=function(e){return u(Dd,e)},e.axisLeft=function(e){return u(Id,e)},e.brush=function(){return lf(Tl)},e.brushX=function(){return lf(ql)},e.brushY=function(){return lf(El)},e.brushSelection=function(e){var t=e.__brush;return t?t.dim.output(t.selection):null},e.chord=function(){function e(e){var a,r,o,s,d,c,u=e.length,l=[],_=qd(u),m=[],h=[],p=h.groups=new Array(u),g=new Array(u*u);for(a=0,d=-1;++d<u;){for(r=0,c=-1;++c<u;)r+=e[d][c];l.push(r),m.push(qd(u)),a+=r}for(f&&_.sort(function(e,t){return f(l[e],l[t])}),n&&m.forEach(function(t,f){t.sort(function(t,i){return n(e[f][t],e[f][i])})}),s=(a=$l(0,jl-t*u)/a)?t:jl/u,r=0,d=-1;++d<u;){for(o=r,c=-1;++c<u;){var y=_[d],b=m[y][c],v=e[y][b],w=r,k=r+=v*a;g[b*u+y]={index:y,subindex:b,startAngle:w,endAngle:k,value:v}}p[y]={index:y,startAngle:o,endAngle:r,value:l[y]},r+=s}for(d=-1;++d<u;)for(c=d-1;++c<u;){var x=g[c*u+d],q=g[d*u+c];(x.value||q.value)&&h.push(x.value<q.value?{source:q,target:x}:{source:x,target:q})}return i?h.sort(i):h}var t=0,f=null,n=null,i=null;return e.padAngle=function(f){return arguments.length?(t=$l(0,f),e):t},e.sortGroups=function(t){return arguments.length?(f=t,e):f},e.sortSubgroups=function(t){return arguments.length?(n=t,e):n},e.sortChords=function(t){return arguments.length?(null==t?i=null:(i=_f(t))._=t,e):i&&i._},e},e.ribbon=function(){function e(){var e,o=Dl.call(arguments),s=t.apply(this,o),d=f.apply(this,o),c=+n.apply(this,(o[0]=s,o)),u=i.apply(this,o)-Ll,l=a.apply(this,o)-Ll,_=c*Rl(u),m=c*Pl(u),h=+n.apply(this,(o[0]=d,o)),p=i.apply(this,o)-Ll,g=a.apply(this,o)-Ll;if(r||(r=e=hf()),r.moveTo(_,m),r.arc(0,0,c,u,l),u===p&&l===g||(r.quadraticCurveTo(0,0,h*Rl(p),h*Pl(p)),r.arc(0,0,h,p,g)),r.quadraticCurveTo(0,0,_,m),r.closePath(),e)return r=null,e+""||null}var t=pf,f=gf,n=yf,i=bf,a=vf,r=null;return e.radius=function(t){return arguments.length?(n="function"==typeof t?t:Il(+t),e):n},e.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Il(+t),e):i},e.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:Il(+t),e):a},e.source=function(f){return arguments.length?(t=f,e):t},e.target=function(t){return arguments.length?(f=t,e):f},e.context=function(t){return arguments.length?(r=null==t?null:t,e):r},e},e.nest=function(){function e(t,i,r,o){if(i>=a.length)return null!=f&&t.sort(f),null!=n?n(t):t;for(var s,d,c,u=-1,l=t.length,_=a[i++],m=kf(),h=r();++u<l;)(c=m.get(s=_(d=t[u])+""))?c.push(d):m.set(s,[d]);return m.each(function(t,f){o(h,f,e(t,i,r,o))}),h}function t(e,f){if(++f>a.length)return e;var i,o=r[f-1];return null!=n&&f>=a.length?i=e.entries():(i=[],e.each(function(e,n){i.push({key:n,values:t(e,f)})})),null!=o?i.sort(function(e,t){return o(e.key,t.key)}):i}var f,n,i,a=[],r=[];return i={object:function(t){return e(t,0,xf,qf)},map:function(t){return e(t,0,Ef,Tf)},entries:function(f){return t(e(f,0,Ef,Tf),0)},key:function(e){return a.push(e),i},sortKeys:function(e){return r[a.length-1]=e,i},sortValues:function(e){return f=e,i},rollup:function(e){return n=e,i}}},e.set=Mf,e.map=kf,e.keys=function(e){var t=[];for(var f in e)t.push(f);return t},e.values=function(e){var t=[];for(var f in e)t.push(e[f]);return t},e.entries=function(e){var t=[];for(var f in e)t.push({key:f,value:e[f]});return t},e.color=qe,e.rgb=Me,e.hsl=Re,e.lab=je,e.hcl=Be,e.cubehelix=Ge,e.dispatch=l,e.drag=function(){function t(e){e.on("mousedown.drag",f).filter(we).on("touchstart.drag",a).on("touchmove.drag",r).on("touchend.drag touchcancel.drag",o).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){if(!_&&m.apply(this,arguments)){var t=s("mouse",h.apply(this,arguments),ec,this,arguments);t&&(sc(e.event.view).on("mousemove.drag",n,!0).on("mouseup.drag",i,!0),uc(e.event.view),he(),u=!1,d=e.event.clientX,c=e.event.clientY,t("start"))}}function n(){if(cc(),!u){var t=e.event.clientX-d,f=e.event.clientY-c;u=t*t+f*f>v}g.mouse("drag")}function i(){sc(e.event.view).on("mousemove.drag mouseup.drag",null),pe(e.event.view,u),cc(),g.mouse("end")}function a(){if(m.apply(this,arguments)){var t,f,n=e.event.changedTouches,i=h.apply(this,arguments),a=n.length;for(t=0;t<a;++t)(f=s(n[t].identifier,i,dc,this,arguments))&&(he(),f("start"))}}function r(){var t,f,n=e.event.changedTouches,i=n.length;for(t=0;t<i;++t)(f=g[n[t].identifier])&&(cc(),f("drag"))}function o(){var t,f,n=e.event.changedTouches,i=n.length;for(_&&clearTimeout(_),_=setTimeout(function(){_=null},500),t=0;t<i;++t)(f=g[n[t].identifier])&&(he(),f("end"))}function s(f,n,i,a,r){var o,s,d,c=i(n,f),u=y.copy();if(T(new ge(t,"beforestart",o,f,b,c[0],c[1],0,0,u),function(){return null!=(e.event.subject=o=p.apply(a,r))&&(s=o.x-c[0]||0,d=o.y-c[1]||0,!0)}))return function e(l){var _,m=c;switch(l){case"start":g[f]=e,_=b++;break;case"end":delete g[f],--b;case"drag":c=i(n,f),_=b}T(new ge(t,l,o,f,_,c[0]+s,c[1]+d,c[0]-m[0],c[1]-m[1],u),u.apply,u,[l,a,r])}}var d,c,u,_,m=ye,h=be,p=ve,g={},y=l("start","drag","end"),b=0,v=0;return t.filter=function(e){return arguments.length?(m="function"==typeof e?e:lc(!!e),t):m},t.container=function(e){return arguments.length?(h="function"==typeof e?e:lc(e),t):h},t.subject=function(e){return arguments.length?(p="function"==typeof e?e:lc(e),t):p},t.on=function(){var e=y.on.apply(y,arguments);return e===y?t:e},t.clickDistance=function(e){return arguments.length?(v=(e=+e)*e,t):Math.sqrt(v)},t},e.dragDisable=uc,e.dragEnable=pe,e.dsvFormat=Yl,e.csvParse=Jl,e.csvParseRows=Ql,e.csvFormat=Zl,e.csvFormatRows=e_,e.tsvParse=f_,e.tsvParseRows=n_,e.tsvFormat=i_,e.tsvFormatRows=a_,e.easeLinear=function(e){return+e},e.easeQuad=Qt,e.easeQuadIn=function(e){return e*e},e.easeQuadOut=function(e){return e*(2-e)},e.easeQuadInOut=Qt,e.easeCubic=Zt,e.easeCubicIn=function(e){return e*e*e},e.easeCubicOut=function(e){return--e*e*e+1},e.easeCubicInOut=Zt,e.easePoly=Yu,e.easePolyIn=Wu,e.easePolyOut=Xu,e.easePolyInOut=Yu,e.easeSin=ef,e.easeSinIn=function(e){return 1-Math.cos(e*Ju)},e.easeSinOut=function(e){return Math.sin(e*Ju)},e.easeSinInOut=ef,e.easeExp=tf,e.easeExpIn=function(e){return Math.pow(2,10*e-10)},e.easeExpOut=function(e){return 1-Math.pow(2,-10*e)},e.easeExpInOut=tf,e.easeCircle=ff,e.easeCircleIn=function(e){return 1-Math.sqrt(1-e*e)},e.easeCircleOut=function(e){return Math.sqrt(1- --e*e)},e.easeCircleInOut=ff,e.easeBounce=nf,e.easeBounceIn=function(e){return 1-nf(1-e)},e.easeBounceOut=nf,e.easeBounceInOut=function(e){return((e*=2)<=1?1-nf(1-e):nf(e-1)+1)/2},e.easeBack=cl,e.easeBackIn=sl,e.easeBackOut=dl,e.easeBackInOut=cl,e.easeElastic=_l,e.easeElasticIn=ll,e.easeElasticOut=_l,e.easeElasticInOut=ml,e.forceCenter=function(e,t){function f(){var f,i,a=n.length,r=0,o=0;for(f=0;f<a;++f)r+=(i=n[f]).x,o+=i.y;for(r=r/a-e,o=o/a-t,f=0;f<a;++f)(i=n[f]).x-=r,i.y-=o}var n;return null==e&&(e=0),null==t&&(t=0),f.initialize=function(e){n=e},f.x=function(t){return arguments.length?(e=+t,f):e},f.y=function(e){return arguments.length?(t=+e,f):t},f},e.forceCollide=function(e){function t(){for(var e,t,n,s,d,c,u,l=i.length,_=0;_<o;++_)for(t=Lf(i,Df,If).visitAfter(f),e=0;e<l;++e)n=i[e],c=a[n.index],u=c*c,s=n.x+n.vx,d=n.y+n.vy,t.visit(function(e,t,f,i,a){var o=e.data,l=e.r,_=c+l;if(!o)return t>s+_||i<s-_||f>d+_||a<d-_;if(o.index>n.index){var m=s-o.x-o.vx,h=d-o.y-o.vy,p=m*m+h*h;p<_*_&&(0===m&&(m=o_(),p+=m*m),0===h&&(h=o_(),p+=h*h),p=(_-(p=Math.sqrt(p)))/p*r,n.vx+=(m*=p)*(_=(l*=l)/(u+l)),n.vy+=(h*=p)*_,o.vx-=m*(_=1-_),o.vy-=h*_)}})}function f(e){if(e.data)return e.r=a[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function n(){if(i){var t,f,n=i.length;for(a=new Array(n),t=0;t<n;++t)f=i[t],a[f.index]=+e(f,t,i)}}var i,a,r=1,o=1;return"function"!=typeof e&&(e=r_(null==e?1:+e)),t.initialize=function(e){i=e,n()},t.iterations=function(e){return arguments.length?(o=+e,t):o},t.strength=function(e){return arguments.length?(r=+e,t):r},t.radius=function(f){return arguments.length?(e="function"==typeof f?f:r_(+f),n(),t):e},t},e.forceLink=function(e){function t(t){for(var f=0,n=e.length;f<_;++f)for(var i,o,s,c,u,l,m,h=0;h<n;++h)o=(i=e[h]).source,c=(s=i.target).x+s.vx-o.x-o.vx||o_(),u=s.y+s.vy-o.y-o.vy||o_(),c*=l=((l=Math.sqrt(c*c+u*u))-r[h])/l*t*a[h],u*=l,s.vx-=c*(m=d[h]),s.vy-=u*m,o.vx+=c*(m=1-m),o.vy+=u*m}function f(){if(o){var t,f,u=o.length,l=e.length,_=kf(o,c);for(t=0,s=new Array(u);t<l;++t)(f=e[t]).index=t,"object"!=typeof f.source&&(f.source=Ff(_,f.source)),"object"!=typeof f.target&&(f.target=Ff(_,f.target)),s[f.source.index]=(s[f.source.index]||0)+1,s[f.target.index]=(s[f.target.index]||0)+1;for(t=0,d=new Array(l);t<l;++t)f=e[t],d[t]=s[f.source.index]/(s[f.source.index]+s[f.target.index]);a=new Array(l),n(),r=new Array(l),i()}}function n(){if(o)for(var t=0,f=e.length;t<f;++t)a[t]=+u(e[t],t,e)}function i(){if(o)for(var t=0,f=e.length;t<f;++t)r[t]=+l(e[t],t,e)}var a,r,o,s,d,c=Uf,u=function(e){return 1/Math.min(s[e.source.index],s[e.target.index])},l=r_(30),_=1;return null==e&&(e=[]),t.initialize=function(e){o=e,f()},t.links=function(n){return arguments.length?(e=n,f(),t):e},t.id=function(e){return arguments.length?(c=e,t):c},t.iterations=function(e){return arguments.length?(_=+e,t):_},t.strength=function(e){return arguments.length?(u="function"==typeof e?e:r_(+e),n(),t):u},t.distance=function(e){return arguments.length?(l="function"==typeof e?e:r_(+e),i(),t):l},t},e.forceManyBody=function(){function e(e){var t,o=i.length,s=Lf(i,zf,Bf).visitAfter(f);for(r=e,t=0;t<o;++t)a=i[t],s.visit(n)}function t(){if(i){var e,t,f=i.length;for(o=new Array(f),e=0;e<f;++e)t=i[e],o[t.index]=+s(t,e,i)}}function f(e){var t,f,n,i,a,r=0;if(e.length){for(n=i=a=0;a<4;++a)(t=e[a])&&(f=t.value)&&(r+=f,n+=f*t.x,i+=f*t.y);e.x=n/r,e.y=i/r}else{(t=e).x=t.data.x,t.y=t.data.y;do{r+=o[t.data.index]}while(t=t.next)}e.value=r}function n(e,t,f,n){if(!e.value)return!0;var i=e.x-a.x,s=e.y-a.y,l=n-t,_=i*i+s*s;if(l*l/u<_)return _<c&&(0===i&&(i=o_(),_+=i*i),0===s&&(s=o_(),_+=s*s),_<d&&(_=Math.sqrt(d*_)),a.vx+=i*e.value*r/_,a.vy+=s*e.value*r/_),!0;if(!(e.length||_>=c)){(e.data!==a||e.next)&&(0===i&&(i=o_(),_+=i*i),0===s&&(s=o_(),_+=s*s),_<d&&(_=Math.sqrt(d*_)));do{e.data!==a&&(l=o[e.data.index]*r/_,a.vx+=i*l,a.vy+=s*l)}while(e=e.next)}}var i,a,r,o,s=r_(-30),d=1,c=1/0,u=.81;return e.initialize=function(e){i=e,t()},e.strength=function(f){return arguments.length?(s="function"==typeof f?f:r_(+f),t(),e):s},e.distanceMin=function(t){return arguments.length?(d=t*t,e):Math.sqrt(d)},e.distanceMax=function(t){return arguments.length?(c=t*t,e):Math.sqrt(c)},e.theta=function(t){return arguments.length?(u=t*t,e):Math.sqrt(u)},e},e.forceSimulation=function(e){function t(){f(),m.call("tick",a),r<o&&(_.stop(),m.call("end",a))}function f(){var t,f,n=e.length;for(r+=(d-r)*s,u.each(function(e){e(r)}),t=0;t<n;++t)null==(f=e[t]).fx?f.x+=f.vx*=c:(f.x=f.fx,f.vx=0),null==f.fy?f.y+=f.vy*=c:(f.y=f.fy,f.vy=0)}function n(){for(var t,f=0,n=e.length;f<n;++f){if(t=e[f],t.index=f,isNaN(t.x)||isNaN(t.y)){var i=u_*Math.sqrt(f),a=f*l_;t.x=i*Math.cos(a),t.y=i*Math.sin(a)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function i(t){return t.initialize&&t.initialize(e),t}var a,r=1,o=.001,s=1-Math.pow(o,1/300),d=0,c=.6,u=kf(),_=_t(t),m=l("tick","end");return null==e&&(e=[]),n(),a={tick:f,restart:function(){return _.restart(t),a},stop:function(){return _.stop(),a},nodes:function(t){return arguments.length?(e=t,n(),u.each(i),a):e},alpha:function(e){return arguments.length?(r=+e,a):r},alphaMin:function(e){return arguments.length?(o=+e,a):o},alphaDecay:function(e){return arguments.length?(s=+e,a):+s},alphaTarget:function(e){return arguments.length?(d=+e,a):d},velocityDecay:function(e){return arguments.length?(c=1-e,a):1-c},force:function(e,t){return arguments.length>1?(null==t?u.remove(e):u.set(e,i(t)),a):u.get(e)},find:function(t,f,n){var i,a,r,o,s,d=0,c=e.length;for(null==n?n=1/0:n*=n,d=0;d<c;++d)(r=(i=t-(o=e[d]).x)*i+(a=f-o.y)*a)<n&&(s=o,n=r);return s},on:function(e,t){return arguments.length>1?(m.on(e,t),a):m.on(e)}}},e.forceX=function(e){function t(e){for(var t,f=0,r=n.length;f<r;++f)(t=n[f]).vx+=(a[f]-t.x)*i[f]*e}function f(){if(n){var t,f=n.length;for(i=new Array(f),a=new Array(f),t=0;t<f;++t)i[t]=isNaN(a[t]=+e(n[t],t,n))?0:+r(n[t],t,n)}}var n,i,a,r=r_(.1);return"function"!=typeof e&&(e=r_(null==e?0:+e)),t.initialize=function(e){n=e,f()},t.strength=function(e){return arguments.length?(r="function"==typeof e?e:r_(+e),f(),t):r},t.x=function(n){return arguments.length?(e="function"==typeof n?n:r_(+n),f(),t):e},t},e.forceY=function(e){function t(e){for(var t,f=0,r=n.length;f<r;++f)(t=n[f]).vy+=(a[f]-t.y)*i[f]*e}function f(){if(n){var t,f=n.length;for(i=new Array(f),a=new Array(f),t=0;t<f;++t)i[t]=isNaN(a[t]=+e(n[t],t,n))?0:+r(n[t],t,n)}}var n,i,a,r=r_(.1);return"function"!=typeof e&&(e=r_(null==e?0:+e)),t.initialize=function(e){n=e,f()},t.strength=function(e){return arguments.length?(r="function"==typeof e?e:r_(+e),f(),t):r},t.y=function(n){return arguments.length?(e="function"==typeof n?n:r_(+n),f(),t):e},t},e.formatDefaultLocale=Gf,e.formatLocale=x_,e.formatSpecifier=Hf,e.precisionFixed=q_,e.precisionPrefix=E_,e.precisionRound=T_,e.geoArea=function(e){return Cm.reset(),Sm(e,Am),2*Cm},e.geoBounds=function(e){var t,f,n,i,a,r,o;if(j_=L_=-(P_=N_=1/0),F_=[],Sm(e,Rm),f=F_.length){for(F_.sort(kn),t=1,a=[n=F_[0]];t<f;++t)xn(n,(i=F_[t])[0])||xn(n,i[1])?(wn(n[0],i[1])>wn(n[0],n[1])&&(n[1]=i[1]),wn(i[0],n[1])>wn(n[0],n[1])&&(n[0]=i[0])):a.push(n=i);for(r=-1/0,t=0,n=a[f=a.length-1];t<=f;n=i,++t)i=a[t],(o=wn(n[1],i[0]))>r&&(r=o,P_=i[0],L_=n[1])}return F_=z_=null,P_===1/0||N_===1/0?[[NaN,NaN],[NaN,NaN]]:[[P_,N_],[L_,j_]]},e.geoCentroid=function(e){B_=H_=V_=G_=W_=X_=Y_=K_=J_=Q_=Z_=0,Sm(e,Pm);var t=J_,f=Q_,n=Z_,i=t*t+f*f+n*n;return i<1e-12&&(t=X_,f=Y_,n=K_,H_<rm&&(t=V_,f=G_,n=W_),(i=t*t+f*f+n*n)<1e-12)?[NaN,NaN]:[hm(f,t)*um,Kf(n/xm(i))*um]},e.geoCircle=function(){function e(){var e=n.apply(this,arguments),o=i.apply(this,arguments)*lm,s=a.apply(this,arguments)*lm;return t=[],f=Ln(-e[0]*lm,-e[1]*lm,0).invert,In(r,o,s,1),e={type:"Polygon",coordinates:[t]},t=f=null,e}var t,f,n=Nm([0,0]),i=Nm(90),a=Nm(6),r={point:function(e,n){t.push(e=f(e,n)),e[0]*=um,e[1]*=um}};return e.center=function(t){return arguments.length?(n="function"==typeof t?t:Nm([+t[0],+t[1]]),e):n},e.radius=function(t){return arguments.length?(i="function"==typeof t?t:Nm(+t),e):i},e.precision=function(t){return arguments.length?(a="function"==typeof t?t:Nm(+t),e):a},e},e.geoClipExtent=function(){var e,t,f,n=0,i=0,a=960,r=500;return f={stream:function(f){return e&&t===f?e:e=Bn(n,i,a,r)(t=f)},extent:function(o){return arguments.length?(n=+o[0][0],i=+o[0][1],a=+o[1][0],r=+o[1][1],e=t=null,f):[[n,i],[a,r]]}}},e.geoContains=function(e,t){return(e&&sh.hasOwnProperty(e.type)?sh[e.type]:Wn)(e,t)},e.geoDistance=oh,e.geoGraticule=ti,e.geoGraticule10=function(){return ti()()},e.geoInterpolate=function(e,t){var f=e[0]*lm,n=e[1]*lm,i=t[0]*lm,a=t[1]*lm,r=pm(n),o=wm(n),s=pm(a),d=wm(a),c=r*pm(f),u=r*wm(f),l=s*pm(i),_=s*wm(i),m=2*Kf(xm(Jf(a-n)+r*s*Jf(i-f))),h=wm(m),p=m?function(e){var t=wm(e*=m)/h,f=wm(m-e)/h,n=f*c+t*l,i=f*u+t*_,a=f*o+t*d;return[hm(i,n)*um,hm(a,xm(n*n+i*i))*um]}:function(){return[f*um,n*um]};return p.distance=m,p},e.geoLength=ih,e.geoPath=function(e,t){function f(e){return e&&("function"==typeof a&&i.pointRadius(+a.apply(this,arguments)),Sm(e,n(i))),i.result()}var n,i,a=4.5;return f.area=function(e){return Sm(e,n(_h)),_h.result()},f.measure=function(e){return Sm(e,n(Lh)),Lh.result()},f.bounds=function(e){return Sm(e,n(yh)),yh.result()},f.centroid=function(e){return Sm(e,n(Mh)),Mh.result()},f.projection=function(t){return arguments.length?(n=null==t?(e=null,ch):(e=t).stream,f):e},f.context=function(e){return arguments.length?(i=null==e?(t=null,new yi):new hi(t=e),"function"!=typeof a&&i.pointRadius(a),f):t},f.pointRadius=function(e){return arguments.length?(a="function"==typeof e?e:(i.pointRadius(+e),+e),f):a},f.projection(e).context(t)},e.geoAlbers=Hh,e.geoAlbersUsa=function(){function e(e){var t=e[0],f=e[1];return o=null,i.point(t,f),o||(a.point(t,f),o)||(r.point(t,f),o)}function t(){return f=n=null,e}var f,n,i,a,r,o,s=Hh(),d=Bh().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Bh().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(e,t){o=[e,t]}};return e.invert=function(e){var t=s.scale(),f=s.translate(),n=(e[0]-f[0])/t,i=(e[1]-f[1])/t;return(i>=.12&&i<.234&&n>=-.425&&n<-.214?d:i>=.166&&i<.234&&n>=-.214&&n<-.115?c:s).invert(e)},e.stream=function(e){return f&&n===e?f:f=Ni([s.stream(n=e),d.stream(e),c.stream(e)])},e.precision=function(e){return arguments.length?(s.precision(e),d.precision(e),c.precision(e),t()):s.precision()},e.scale=function(t){return arguments.length?(s.scale(t),d.scale(.35*t),c.scale(t),e.translate(s.translate())):s.scale()},e.translate=function(e){if(!arguments.length)return s.translate();var f=s.scale(),n=+e[0],o=+e[1];return i=s.translate(e).clipExtent([[n-.455*f,o-.238*f],[n+.455*f,o+.238*f]]).stream(u),a=d.translate([n-.307*f,o+.201*f]).clipExtent([[n-.425*f+rm,o+.12*f+rm],[n-.214*f-rm,o+.234*f-rm]]).stream(u),r=c.translate([n-.205*f,o+.212*f]).clipExtent([[n-.214*f+rm,o+.166*f+rm],[n-.115*f-rm,o+.234*f-rm]]).stream(u),t()},e.fitExtent=function(t,f){return Ei(e,t,f)},e.fitSize=function(t,f){return Ti(e,t,f)},e.scale(1070)},e.geoAzimuthalEqualArea=function(){return Ci(Vh).scale(124.75).clipAngle(179.999)},e.geoAzimuthalEqualAreaRaw=Vh,e.geoAzimuthalEquidistant=function(){return Ci(Gh).scale(79.4188).clipAngle(179.999)},e.geoAzimuthalEquidistantRaw=Gh,e.geoConicConformal=function(){return Oi(Ui).scale(109.5).parallels([30,30])},e.geoConicConformalRaw=Ui,e.geoConicEqualArea=Bh,e.geoConicEqualAreaRaw=Pi,e.geoConicEquidistant=function(){return Oi(zi).scale(131.154).center([0,13.9389])},e.geoConicEquidistantRaw=zi,e.geoEquirectangular=function(){return Ci(Fi).scale(152.63)},e.geoEquirectangularRaw=Fi,e.geoGnomonic=function(){return Ci(Bi).scale(144.049).clipAngle(60)},e.geoGnomonicRaw=Bi,e.geoIdentity=function(){function e(){return i=a=null,r}var t,f,n,i,a,r,o=1,s=0,d=0,c=1,u=1,l=ch,_=null,m=ch;return r={stream:function(e){return i&&a===e?i:i=l(m(a=e))},clipExtent:function(i){return arguments.length?(m=null==i?(_=t=f=n=null,ch):Bn(_=+i[0][0],t=+i[0][1],f=+i[1][0],n=+i[1][1]),e()):null==_?null:[[_,t],[f,n]]},scale:function(t){return arguments.length?(l=Hi((o=+t)*c,o*u,s,d),e()):o},translate:function(t){return arguments.length?(l=Hi(o*c,o*u,s=+t[0],d=+t[1]),e()):[s,d]},reflectX:function(t){return arguments.length?(l=Hi(o*(c=t?-1:1),o*u,s,d),e()):c<0},reflectY:function(t){return arguments.length?(l=Hi(o*c,o*(u=t?-1:1),s,d),e()):u<0},fitExtent:function(e,t){return Ei(r,e,t)},fitSize:function(e,t){return Ti(r,e,t)}}},e.geoProjection=Ci,e.geoProjectionMutator=Ai,e.geoMercator=function(){return Di($i).scale(961/cm)},e.geoMercatorRaw=$i,e.geoOrthographic=function(){return Ci(Vi).scale(249.5).clipAngle(90+rm)},e.geoOrthographicRaw=Vi,e.geoStereographic=function(){return Ci(Gi).scale(250).clipAngle(142)},e.geoStereographicRaw=Gi,e.geoTransverseMercator=function(){var e=Di(Wi),t=e.center,f=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return arguments.length?f([e[0],e[1],e.length>2?e[2]+90:90]):(e=f(),[e[0],e[1],e[2]-90])},f([0,0,90]).scale(159.155)},e.geoTransverseMercatorRaw=Wi,e.geoRotation=Wm,e.geoStream=Sm,e.geoTransform=function(e){return{stream:xi(e)}},e.cluster=function(){function e(e){var a,r=0;e.eachAfter(function(e){var f=e.children;f?(e.x=Yi(f),e.y=Ji(f)):(e.x=a?r+=t(e,a):0,e.y=0,a=e)});var o=Zi(e),s=ea(e),d=o.x-t(o,s)/2,c=s.x+t(s,o)/2;return e.eachAfter(i?function(t){t.x=(t.x-e.x)*f,t.y=(e.y-t.y)*n}:function(t){t.x=(t.x-d)/(c-d)*f,t.y=(1-(e.y?t.y/e.y:1))*n})}var t=Xi,f=1,n=1,i=!1;return e.separation=function(f){return arguments.length?(t=f,e):t},e.size=function(t){return arguments.length?(i=!1,f=+t[0],n=+t[1],e):i?null:[f,n]},e.nodeSize=function(t){return arguments.length?(i=!0,f=+t[0],n=+t[1],e):i?[f,n]:null},e},e.hierarchy=na,e.pack=function(){function e(e){return e.x=f/2,e.y=n/2,t?e.eachBefore(Ta(t)).eachAfter(Sa(i,.5)).eachBefore(Ma(1)):e.eachBefore(Ta(Ea)).eachAfter(Sa(qa,1)).eachAfter(Sa(i,e.r/Math.min(f,n))).eachBefore(Ma(Math.min(f,n)/(2*e.r))),e}var t=null,f=1,n=1,i=qa;return e.radius=function(f){return arguments.length?(t=ka(f),e):t},e.size=function(t){return arguments.length?(f=+t[0],n=+t[1],e):[f,n]},e.padding=function(t){return arguments.length?(i="function"==typeof t?t:Yh(+t),e):i},e},e.packSiblings=function(e){return wa(e),e},e.packEnclose=Xh,e.partition=function(){function e(e){var r=e.height+1;return e.x0=e.y0=i,e.x1=f,e.y1=n/r,e.eachBefore(t(n,r)),a&&e.eachBefore(Kh),e}function t(e,t){return function(f){f.children&&Jh(f,f.x0,e*(f.depth+1)/t,f.x1,e*(f.depth+2)/t);var n=f.x0,a=f.y0,r=f.x1-i,o=f.y1-i;r<n&&(n=r=(n+r)/2),o<a&&(a=o=(a+o)/2),f.x0=n,f.y0=a,f.x1=r,f.y1=o}}var f=1,n=1,i=0,a=!1;return e.round=function(t){return arguments.length?(a=!!t,e):a},e.size=function(t){return arguments.length?(f=+t[0],n=+t[1],e):[f,n]},e.padding=function(t){return arguments.length?(i=+t,e):i},e},e.stratify=function(){function e(e){var n,i,a,r,o,s,d,c=e.length,u=new Array(c),l={};for(i=0;i<c;++i)n=e[i],o=u[i]=new oa(n),null!=(s=t(n,i,e))&&(s+="")&&(l[d=Qh+(o.id=s)]=d in l?ep:o);for(i=0;i<c;++i)if(o=u[i],null!=(s=f(e[i],i,e))&&(s+="")){if(!(r=l[Qh+s]))throw new Error("missing: "+s);if(r===ep)throw new Error("ambiguous: "+s);r.children?r.children.push(o):r.children=[o],o.parent=r}else{if(a)throw new Error("multiple roots");a=o}if(!a)throw new Error("no root");if(a.parent=Zh,a.eachBefore(function(e){e.depth=e.parent.depth+1,--c}).eachBefore(ra),a.parent=null,c>0)throw new Error("cycle");return a}var t=Ca,f=Aa;return e.id=function(f){return arguments.length?(t=xa(f),e):t},e.parentId=function(t){return arguments.length?(f=xa(t),e):f},e},e.tree=function(){function e(e){var n=Da(e);if(n.eachAfter(t),n.parent.m=-n.z,n.eachBefore(f),s)e.eachBefore(i);else{var d=e,c=e,u=e;e.eachBefore(function(e){e.x<d.x&&(d=e),e.x>c.x&&(c=e),e.depth>u.depth&&(u=e)});var l=d===c?1:a(d,c)/2,_=l-d.x,m=r/(c.x+l+_),h=o/(u.depth||1);e.eachBefore(function(e){e.x=(e.x+_)*m,e.y=e.depth*h})}return e}function t(e){var t=e.children,f=e.parent.children,i=e.i?f[e.i-1]:null;if(t){La(e);var r=(t[0].z+t[t.length-1].z)/2;i?(e.z=i.z+a(e._,i._),e.m=e.z-r):e.z=r}else i&&(e.z=i.z+a(e._,i._));e.parent.A=n(e,i,e.parent.A||f[0])}function f(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function n(e,t,f){if(t){for(var n,i=e,r=e,o=t,s=i.parent.children[0],d=i.m,c=r.m,u=o.m,l=s.m;o=Pa(o),i=Ra(i),o&&i;)s=Ra(s),(r=Pa(r)).a=e,(n=o.z+u-i.z-d+a(o._,i._))>0&&(Na(ja(o,e,f),e,n),d+=n,c+=n),u+=o.m,d+=i.m,l+=s.m,c+=r.m;o&&!Pa(r)&&(r.t=o,r.m+=u-c),i&&!Ra(s)&&(s.t=i,s.m+=d-l,f=e)}return f}function i(e){e.x*=r,e.y=e.depth*o}var a=Oa,r=1,o=1,s=null;return e.separation=function(t){return arguments.length?(a=t,e):a},e.size=function(t){return arguments.length?(s=!1,r=+t[0],o=+t[1],e):s?null:[r,o]},e.nodeSize=function(t){return arguments.length?(s=!0,r=+t[0],o=+t[1],e):s?[r,o]:null},e},e.treemap=function(){function e(e){return e.x0=e.y0=0,e.x1=i,e.y1=a,e.eachBefore(t),r=[0],n&&e.eachBefore(Kh),e}function t(e){var t=r[e.depth],n=e.x0+t,i=e.y0+t,a=e.x1-t,l=e.y1-t;a<n&&(n=a=(n+a)/2),l<i&&(i=l=(i+l)/2),e.x0=n,e.y0=i,e.x1=a,e.y1=l,e.children&&(t=r[e.depth+1]=o(e)/2,n+=u(e)-t,i+=s(e)-t,a-=d(e)-t,l-=c(e)-t,a<n&&(n=a=(n+a)/2),l<i&&(i=l=(i+l)/2),f(e,n,i,a,l))}var f=np,n=!1,i=1,a=1,r=[0],o=qa,s=qa,d=qa,c=qa,u=qa;return e.round=function(t){return arguments.length?(n=!!t,e):n},e.size=function(t){return arguments.length?(i=+t[0],a=+t[1],e):[i,a]},e.tile=function(t){return arguments.length?(f=xa(t),e):f},e.padding=function(t){return arguments.length?e.paddingInner(t).paddingOuter(t):e.paddingInner()},e.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:Yh(+t),e):o},e.paddingOuter=function(t){return arguments.length?e.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):e.paddingTop()},e.paddingTop=function(t){return arguments.length?(s="function"==typeof t?t:Yh(+t),e):s},e.paddingRight=function(t){return arguments.length?(d="function"==typeof t?t:Yh(+t),e):d},e.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:Yh(+t),e):c},e.paddingLeft=function(t){return arguments.length?(u="function"==typeof t?t:Yh(+t),e):u},e},e.treemapBinary=function(e,t,f,n,i){function a(e,t,f,n,i,r,o){if(e>=t-1){var d=s[e];return d.x0=n,d.y0=i,d.x1=r,void(d.y1=o)}for(var u=c[e],l=f/2+u,_=e+1,m=t-1;_<m;){var h=_+m>>>1;c[h]<l?_=h+1:m=h}l-c[_-1]<c[_]-l&&e+1<_&&--_;var p=c[_]-u,g=f-p;if(r-n>o-i){var y=(n*g+r*p)/f;a(e,_,p,n,i,y,o),a(_,t,g,y,i,r,o)}else{var b=(i*g+o*p)/f;a(e,_,p,n,i,r,b),a(_,t,g,n,b,r,o)}}var r,o,s=e.children,d=s.length,c=new Array(d+1);for(c[0]=o=r=0;r<d;++r)c[r+1]=o+=s[r].value;a(0,d,e.value,t,f,n,i)},e.treemapDice=Jh,e.treemapSlice=tp,e.treemapSliceDice=function(e,t,f,n,i){(1&e.depth?tp:Jh)(e,t,f,n,i)},e.treemapSquarify=np,e.treemapResquarify=ip,e.interpolate=ou,e.interpolateArray=eu,e.interpolateBasis=Xc,e.interpolateBasisClosed=Yc,e.interpolateDate=tu,e.interpolateNumber=fu,e.interpolateObject=nu,e.interpolateRound=su,e.interpolateString=ru,e.interpolateTransformCss=lu,e.interpolateTransformSvg=_u,e.interpolateZoom=hu,e.interpolateRgb=Jc,e.interpolateRgbBasis=Qc,e.interpolateRgbBasisClosed=Zc,e.interpolateHsl=pu,e.interpolateHslLong=gu,e.interpolateLab=function(e,t){var f=Ze((e=je(e)).l,(t=je(t)).l),n=Ze(e.a,t.a),i=Ze(e.b,t.b),a=Ze(e.opacity,t.opacity);return function(t){return e.l=f(t),e.a=n(t),e.b=i(t),e.opacity=a(t),e+""}},e.interpolateHcl=yu,e.interpolateHclLong=bu,e.interpolateCubehelix=vu,e.interpolateCubehelixLong=wu,e.quantize=function(e,t){for(var f=new Array(t),n=0;n<t;++n)f[n]=e(n/(t-1));return f},e.path=hf,e.polygonArea=function(e){for(var t,f=-1,n=e.length,i=e[n-1],a=0;++f<n;)t=i,i=e[f],a+=t[1]*i[0]-t[0]*i[1];return a/2},e.polygonCentroid=function(e){for(var t,f,n=-1,i=e.length,a=0,r=0,o=e[i-1],s=0;++n<i;)t=o,o=e[n],s+=f=t[0]*o[1]-o[0]*t[1],a+=(t[0]+o[0])*f,r+=(t[1]+o[1])*f;return s*=3,[a/s,r/s]},e.polygonHull=function(e){if((f=e.length)<3)return null;var t,f,n=new Array(f),i=new Array(f);for(t=0;t<f;++t)n[t]=[+e[t][0],+e[t][1],t];for(n.sort(Ua),t=0;t<f;++t)i[t]=[n[t][0],-n[t][1]];var a=Fa(n),r=Fa(i),o=r[0]===a[0],s=r[r.length-1]===a[a.length-1],d=[];for(t=a.length-1;t>=0;--t)d.push(e[n[a[t]][2]]);for(t=+o;t<r.length-s;++t)d.push(e[n[r[t]][2]]);return d},e.polygonContains=function(e,t){for(var f,n,i=e.length,a=e[i-1],r=t[0],o=t[1],s=a[0],d=a[1],c=!1,u=0;u<i;++u)f=(a=e[u])[0],(n=a[1])>o!=d>o&&r<(s-f)*(o-n)/(d-n)+f&&(c=!c),s=f,d=n;return c},e.polygonLength=function(e){for(var t,f,n=-1,i=e.length,a=e[i-1],r=a[0],o=a[1],s=0;++n<i;)t=r,f=o,t-=r=(a=e[n])[0],f-=o=a[1],s+=Math.sqrt(t*t+f*f);return s},e.quadtree=Lf,e.queue=Xa,e.randomUniform=dp,e.randomNormal=cp,e.randomLogNormal=up,e.randomBates=_p,e.randomIrwinHall=lp,e.randomExponential=mp,e.request=hp,e.html=gp,e.json=yp,e.text=bp,e.xml=vp,e.csv=kp,e.tsv=xp,e.scaleBand=Za,e.scalePoint=function(){return er(Za().paddingInner(1))},e.scaleIdentity=cr,e.scaleLinear=dr,e.scaleLog=gr,e.scaleOrdinal=Qa,e.scaleImplicit=Sp,e.scalePow=br,e.scaleSqrt=function(){return br().exponent(.5)},e.scaleQuantile=vr,e.scaleQuantize=wr,e.scaleThreshold=kr,e.scaleTime=function(){return So(dg,og,Wp,Vp,Bp,Fp,Ip,Lp,e.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},e.scaleUtc=function(){return So(Pg,Og,gg,hg,_g,ug,Ip,Lp,e.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},e.schemeCategory10=Kg,e.schemeCategory20b=Jg,e.schemeCategory20c=Qg,e.schemeCategory20=Zg,e.interpolateCubehelixDefault=ey,e.interpolateRainbow=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return ny.h=360*e-100,ny.s=1.5-1.5*t,ny.l=.8-.9*t,ny+""},e.interpolateWarm=ty,e.interpolateCool=fy,e.interpolateViridis=iy,e.interpolateMagma=ay,e.interpolateInferno=ry,e.interpolatePlasma=oy,e.scaleSequential=Co,e.creator=Vd,e.local=b,e.matcher=Kd,e.mouse=ec,e.namespace=Hd,e.namespaces=Bd,e.select=sc,e.selectAll=function(e){return"string"==typeof e?new _e([document.querySelectorAll(e)],[document.documentElement]):new _e([null==e?[]:e],oc)},e.selection=me,e.selector=tc,e.selectorAll=fc,e.style=z,e.touch=dc,e.touches=function(e,t){null==t&&(t=Qd().touches);for(var f=0,n=t?t.length:0,i=new Array(n);f<n;++f)i[f]=Zd(e,t[f]);return i},e.window=rc,e.customEvent=T,e.arc=function(){function e(){var e,d,c=+t.apply(this,arguments),u=+f.apply(this,arguments),l=a.apply(this,arguments)-yy,_=r.apply(this,arguments)-yy,m=dy(_-l),h=_>l;if(s||(s=e=hf()),u<c&&(d=u,u=c,c=d),u>py)if(m>by-py)s.moveTo(u*uy(l),u*my(l)),s.arc(0,0,u,l,_,!h),c>py&&(s.moveTo(c*uy(_),c*my(_)),s.arc(0,0,c,_,l,h));else{var p,g,y=l,b=_,v=l,w=_,k=m,x=m,q=o.apply(this,arguments)/2,E=q>py&&(i?+i.apply(this,arguments):hy(c*c+u*u)),T=_y(dy(u-c)/2,+n.apply(this,arguments)),S=T,M=T;if(E>py){var C=Oo(E/c*my(q)),A=Oo(E/u*my(q));(k-=2*C)>py?(C*=h?1:-1,v+=C,w-=C):(k=0,v=w=(l+_)/2),(x-=2*A)>py?(A*=h?1:-1,y+=A,b-=A):(x=0,y=b=(l+_)/2)}var O=u*uy(y),R=u*my(y),P=c*uy(w),N=c*my(w);if(T>py){var L=u*uy(b),j=u*my(b),$=c*uy(v),D=c*my(v);if(m<gy){var I=k>py?$o(O,R,$,D,L,j,P,N):[P,N],U=O-I[0],F=R-I[1],z=L-I[0],B=j-I[1],H=1/my(Ao((U*z+F*B)/(hy(U*U+F*F)*hy(z*z+B*B)))/2),V=hy(I[0]*I[0]+I[1]*I[1]);S=_y(T,(c-V)/(H-1)),M=_y(T,(u-V)/(H+1))}}x>py?M>py?(p=Do($,D,O,R,u,M,h),g=Do(L,j,P,N,u,M,h),s.moveTo(p.cx+p.x01,p.cy+p.y01),M<T?s.arc(p.cx,p.cy,M,cy(p.y01,p.x01),cy(g.y01,g.x01),!h):(s.arc(p.cx,p.cy,M,cy(p.y01,p.x01),cy(p.y11,p.x11),!h),s.arc(0,0,u,cy(p.cy+p.y11,p.cx+p.x11),cy(g.cy+g.y11,g.cx+g.x11),!h),s.arc(g.cx,g.cy,M,cy(g.y11,g.x11),cy(g.y01,g.x01),!h))):(s.moveTo(O,R),s.arc(0,0,u,y,b,!h)):s.moveTo(O,R),c>py&&k>py?S>py?(p=Do(P,N,L,j,c,-S,h),g=Do(O,R,$,D,c,-S,h),s.lineTo(p.cx+p.x01,p.cy+p.y01),S<T?s.arc(p.cx,p.cy,S,cy(p.y01,p.x01),cy(g.y01,g.x01),!h):(s.arc(p.cx,p.cy,S,cy(p.y01,p.x01),cy(p.y11,p.x11),!h),s.arc(0,0,c,cy(p.cy+p.y11,p.cx+p.x11),cy(g.cy+g.y11,g.cx+g.x11),h),s.arc(g.cx,g.cy,S,cy(g.y11,g.x11),cy(g.y01,g.x01),!h))):s.arc(0,0,c,w,v,h):s.lineTo(P,N)}else s.moveTo(0,0);if(s.closePath(),e)return s=null,e+""||null}var t=Ro,f=Po,n=sy(0),i=null,a=No,r=Lo,o=jo,s=null;return e.centroid=function(){var e=(+t.apply(this,arguments)+ +f.apply(this,arguments))/2,n=(+a.apply(this,arguments)+ +r.apply(this,arguments))/2-gy/2;return[uy(n)*e,my(n)*e]},e.innerRadius=function(f){return arguments.length?(t="function"==typeof f?f:sy(+f),e):t},e.outerRadius=function(t){return arguments.length?(f="function"==typeof t?t:sy(+t),e):f},e.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:sy(+t),e):n},e.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:sy(+t),e):i},e.startAngle=function(t){return arguments.length?(a="function"==typeof t?t:sy(+t),e):a},e.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:sy(+t),e):r},e.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:sy(+t),e):o},e.context=function(t){return arguments.length?(s=null==t?null:t,e):s},e},e.area=ky,e.line=wy,e.pie=function(){function e(e){var o,s,d,c,u,l=e.length,_=0,m=new Array(l),h=new Array(l),p=+i.apply(this,arguments),g=Math.min(by,Math.max(-by,a.apply(this,arguments)-p)),y=Math.min(Math.abs(g)/l,r.apply(this,arguments)),b=y*(g<0?-1:1);for(o=0;o<l;++o)(u=h[m[o]=o]=+t(e[o],o,e))>0&&(_+=u);for(null!=f?m.sort(function(e,t){return f(h[e],h[t])}):null!=n&&m.sort(function(t,f){return n(e[t],e[f])}),o=0,d=_?(g-l*b)/_:0;o<l;++o,p=c)s=m[o],c=p+((u=h[s])>0?u*d:0)+b,h[s]={data:e[s],index:o,value:u,startAngle:p,endAngle:c,padAngle:y};return h}var t=qy,f=xy,n=null,i=sy(0),a=sy(by),r=sy(0);return e.value=function(f){return arguments.length?(t="function"==typeof f?f:sy(+f),e):t},e.sortValues=function(t){return arguments.length?(f=t,n=null,e):f},e.sort=function(t){return arguments.length?(n=t,f=null,e):n},e.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:sy(+t),e):i},e.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:sy(+t),e):a},e.padAngle=function(t){return arguments.length?(r="function"==typeof t?t:sy(+t),e):r},e},e.areaRadial=Sy,e.radialArea=Sy,e.lineRadial=Ty,e.radialLine=Ty,e.pointRadial=My,e.linkHorizontal=function(){return Wo(Xo)},e.linkVertical=function(){return Wo(Yo)},e.linkRadial=function(){var e=Wo(Ko);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},e.symbol=function(){function e(){var e;if(n||(n=e=hf()),t.apply(this,arguments).draw(n,+f.apply(this,arguments)),e)return n=null,e+""||null}var t=sy(Ay),f=sy(64),n=null;return e.type=function(f){return arguments.length?(t="function"==typeof f?f:sy(f),e):t},e.size=function(t){return arguments.length?(f="function"==typeof t?t:sy(+t),e):f},e.context=function(t){return arguments.length?(n=null==t?null:t,e):n},e},e.symbols=Wy,e.symbolCircle=Ay,e.symbolCross=Oy,e.symbolDiamond=Ny,e.symbolSquare=Iy,e.symbolStar=Dy,e.symbolTriangle=Fy,e.symbolWye=Gy,e.curveBasisClosed=function(e){return new Zo(e)},e.curveBasisOpen=function(e){return new es(e)},e.curveBasis=function(e){return new Qo(e)},e.curveBundle=Yy,e.curveCardinalClosed=Jy,e.curveCardinalOpen=Qy,e.curveCardinal=Ky,e.curveCatmullRomClosed=eb,e.curveCatmullRomOpen=tb,e.curveCatmullRom=Zy,e.curveLinearClosed=function(e){return new cs(e)},e.curveLinear=vy,e.curveMonotoneX=function(e){return new hs(e)},e.curveMonotoneY=function(e){return new ps(e)},e.curveNatural=function(e){return new ys(e)},e.curveStep=function(e){return new vs(e,.5)},e.curveStepAfter=function(e){return new vs(e,1)},e.curveStepBefore=function(e){return new vs(e,0)},e.stack=function(){function e(e){var a,r,o=t.apply(this,arguments),s=e.length,d=o.length,c=new Array(d);for(a=0;a<d;++a){for(var u,l=o[a],_=c[a]=new Array(s),m=0;m<s;++m)_[m]=u=[0,+i(e[m],l,m,e)],u.data=e[m];_.key=l}for(a=0,r=f(c);a<d;++a)c[r[a]].index=a;return n(c,r),c}var t=sy([]),f=nb,n=fb,i=ws;return e.keys=function(f){return arguments.length?(t="function"==typeof f?f:sy(Cy.call(f)),e):t},e.value=function(t){return arguments.length?(i="function"==typeof t?t:sy(+t),e):i},e.order=function(t){return arguments.length?(f=null==t?nb:"function"==typeof t?t:sy(Cy.call(t)),e):f},e.offset=function(t){return arguments.length?(n=null==t?fb:t,e):n},e},e.stackOffsetExpand=function(e,t){if((n=e.length)>0){for(var f,n,i,a=0,r=e[0].length;a<r;++a){for(i=f=0;f<n;++f)i+=e[f][a][1]||0;if(i)for(f=0;f<n;++f)e[f][a][1]/=i}fb(e,t)}},e.stackOffsetDiverging=function(e,t){if((o=e.length)>1)for(var f,n,i,a,r,o,s=0,d=e[t[0]].length;s<d;++s)for(a=r=0,f=0;f<o;++f)(i=(n=e[t[f]][s])[1]-n[0])>=0?(n[0]=a,n[1]=a+=i):i<0?(n[1]=r,n[0]=r+=i):n[0]=a},e.stackOffsetNone=fb,e.stackOffsetSilhouette=function(e,t){if((f=e.length)>0){for(var f,n=0,i=e[t[0]],a=i.length;n<a;++n){for(var r=0,o=0;r<f;++r)o+=e[r][n][1]||0;i[n][1]+=i[n][0]=-o/2}fb(e,t)}},e.stackOffsetWiggle=function(e,t){if((i=e.length)>0&&(n=(f=e[t[0]]).length)>0){for(var f,n,i,a=0,r=1;r<n;++r){for(var o=0,s=0,d=0;o<i;++o){for(var c=e[t[o]],u=c[r][1]||0,l=(u-(c[r-1][1]||0))/2,_=0;_<o;++_){var m=e[t[_]];l+=(m[r][1]||0)-(m[r-1][1]||0)}s+=u,d+=l*u}f[r-1][1]+=f[r-1][0]=a,s&&(a-=d/s)}f[r-1][1]+=f[r-1][0]=a,fb(e,t)}},e.stackOrderAscending=ib,e.stackOrderDescending=function(e){return ib(e).reverse()},e.stackOrderInsideOut=function(e){var t,f,n=e.length,i=e.map(ks),a=nb(e).sort(function(e,t){return i[t]-i[e]}),r=0,o=0,s=[],d=[];for(t=0;t<n;++t)f=a[t],r<o?(r+=i[f],s.push(f)):(o+=i[f],d.push(f));return d.reverse().concat(s)},e.stackOrderNone=nb,e.stackOrderReverse=function(e){return nb(e).reverse()},e.timeInterval=xr,e.timeMillisecond=Lp,e.timeMilliseconds=jp,e.utcMillisecond=Lp,e.utcMilliseconds=jp,e.timeSecond=Ip,e.timeSeconds=Up,e.utcSecond=Ip,e.utcSeconds=Up,e.timeMinute=Fp,e.timeMinutes=zp,e.timeHour=Bp,e.timeHours=Hp,e.timeDay=Vp,e.timeDays=Gp,e.timeWeek=Wp,e.timeWeeks=eg,e.timeSunday=Wp,e.timeSundays=eg,e.timeMonday=Xp,e.timeMondays=tg,e.timeTuesday=Yp,e.timeTuesdays=fg,e.timeWednesday=Kp,e.timeWednesdays=ng,e.timeThursday=Jp,e.timeThursdays=ig,e.timeFriday=Qp,e.timeFridays=ag,e.timeSaturday=Zp,e.timeSaturdays=rg,e.timeMonth=og,e.timeMonths=sg,e.timeYear=dg,e.timeYears=cg,e.utcMinute=ug,e.utcMinutes=lg,e.utcHour=_g,e.utcHours=mg,e.utcDay=hg,e.utcDays=pg,e.utcWeek=gg,e.utcWeeks=qg,e.utcSunday=gg,e.utcSundays=qg,e.utcMonday=yg,e.utcMondays=Eg,e.utcTuesday=bg,e.utcTuesdays=Tg,e.utcWednesday=vg,e.utcWednesdays=Sg,e.utcThursday=wg,e.utcThursdays=Mg,e.utcFriday=kg,e.utcFridays=Cg,e.utcSaturday=xg,e.utcSaturdays=Ag,e.utcMonth=Og,e.utcMonths=Rg,e.utcYear=Pg,e.utcYears=Lg,e.timeFormatDefaultLocale=qo,e.timeFormatLocale=Cr,e.isoFormat=Ug,e.isoParse=Fg,e.now=ct,e.timer=_t,e.timerFlush=mt,e.timeout=Ou,e.interval=function(e,t,f){var n=new lt,i=t;return null==t?(n.restart(e,t,f),n):(t=+t,f=null==f?ct():+f,n.restart(function a(r){r+=i,n.restart(a,i+=t,f),e(r)},t,f),n)},e.transition=Kt,e.active=function(e,t){var f,n,i=e.__transition;if(i){t=null==t?null:t+"";for(n in i)if((f=i[n]).state>Lu&&f.name===t)return new Yt([[e]],pl,t,+n)}return null},e.interrupt=zu,e.voronoi=function(){function e(e){return new ed(e.map(function(n,i){var a=[Math.round(t(n,i,e)/_b)*_b,Math.round(f(n,i,e)/_b)*_b];return a.index=i,a.data=n,a}),n)}var t=xs,f=qs,n=null;return e.polygons=function(t){return e(t).polygons()},e.links=function(t){return e(t).links()},e.triangles=function(t){return e(t).triangles()},e.x=function(f){return arguments.length?(t="function"==typeof f?f:ab(+f),e):t},e.y=function(t){return arguments.length?(f="function"==typeof t?t:ab(+t),e):f},e.extent=function(t){return arguments.length?(n=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],e):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},e.size=function(t){return arguments.length?(n=null==t?null:[[0,0],[+t[0],+t[1]]],e):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},e},e.zoom=function(){function t(e){e.property("__zoom",od).on("wheel.zoom",d).on("mousedown.zoom",c).on("dblclick.zoom",u).filter(dd).on("touchstart.zoom",_).on("touchmove.zoom",m).on("touchend.zoom touchcancel.zoom",h).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(e,t){return(t=Math.max(w,Math.min(k,t)))===e.k?e:new fd(t,e.x,e.y)}function n(e,t,f){var n=t[0]-f[0]*e.k,i=t[1]-f[1]*e.k;return n===e.x&&i===e.y?e:new fd(e.k,n,i)}function i(e,t){var f=e.invertX(t[0][0])-x,n=e.invertX(t[1][0])-q,i=e.invertY(t[0][1])-E,a=e.invertY(t[1][1])-S;return e.translate(n>f?(f+n)/2:Math.min(0,f)||Math.max(0,n),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function a(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function r(e,t,f){e.on("start.zoom",function(){o(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){o(this,arguments).end()}).tween("zoom",function(){var e=this,n=arguments,i=o(e,n),r=b.apply(e,n),s=f||a(r),d=Math.max(r[1][0]-r[0][0],r[1][1]-r[0][1]),c=e.__zoom,u="function"==typeof t?t.apply(e,n):t,l=C(c.invert(s).concat(d/c.k),u.invert(s).concat(d/u.k));return function(e){if(1===e)e=u;else{var t=l(e),f=d/t[2];e=new fd(f,s[0]-t[0]*f,s[1]-t[1]*f)}i.zoom(null,e)}})}function o(e,t){for(var f,n=0,i=A.length;n<i;++n)if((f=A[n]).that===e)return f;return new s(e,t)}function s(e,t){this.that=e,this.args=t,this.index=-1,this.active=0,this.extent=b.apply(e,t)}function d(){if(y.apply(this,arguments)){var e=o(this,arguments),t=this.__zoom,a=Math.max(w,Math.min(k,t.k*Math.pow(2,v.apply(this,arguments)))),r=ec(this);if(e.wheel)e.mouse[0][0]===r[0]&&e.mouse[0][1]===r[1]||(e.mouse[1]=t.invert(e.mouse[0]=r)),clearTimeout(e.wheel);else{if(t.k===a)return;e.mouse=[r,t.invert(r)],zu(this),e.start()}gb(),e.wheel=setTimeout(function(){e.wheel=null,e.end()},P),e.zoom("mouse",i(n(f(t,a),e.mouse[0],e.mouse[1]),e.extent))}}function c(){if(!g&&y.apply(this,arguments)){var t=o(this,arguments),f=sc(e.event.view).on("mousemove.zoom",function(){if(gb(),!t.moved){var f=e.event.clientX-r,a=e.event.clientY-s;t.moved=f*f+a*a>N}t.zoom("mouse",i(n(t.that.__zoom,t.mouse[0]=ec(t.that),t.mouse[1]),t.extent))},!0).on("mouseup.zoom",function(){f.on("mousemove.zoom mouseup.zoom",null),pe(e.event.view,t.moved),gb(),t.end()},!0),a=ec(this),r=e.event.clientX,s=e.event.clientY;uc(e.event.view),id(),t.mouse=[a,this.__zoom.invert(a)],zu(this),t.start()}}function u(){if(y.apply(this,arguments)){var a=this.__zoom,o=ec(this),s=a.invert(o),d=i(n(f(a,a.k*(e.event.shiftKey?.5:2)),o,s),b.apply(this,arguments));gb(),M>0?sc(this).transition().duration(M).call(r,d,o):sc(this).call(t.transform,d)}}function _(){if(y.apply(this,arguments)){var t,f,n,i,a=o(this,arguments),r=e.event.changedTouches,s=r.length;for(id(),f=0;f<s;++f)n=r[f],i=[i=dc(this,r,n.identifier),this.__zoom.invert(i),n.identifier],a.touch0?a.touch1||(a.touch1=i):(a.touch0=i,t=!0);if(p&&(p=clearTimeout(p),!a.touch1))return a.end(),void((i=sc(this).on("dblclick.zoom"))&&i.apply(this,arguments));t&&(p=setTimeout(function(){p=null},R),zu(this),a.start())}}function m(){var t,a,r,s,d=o(this,arguments),c=e.event.changedTouches,u=c.length;for(gb(),p&&(p=clearTimeout(p)),t=0;t<u;++t)a=c[t],r=dc(this,c,a.identifier),d.touch0&&d.touch0[2]===a.identifier?d.touch0[0]=r:d.touch1&&d.touch1[2]===a.identifier&&(d.touch1[0]=r);if(a=d.that.__zoom,d.touch1){var l=d.touch0[0],_=d.touch0[1],m=d.touch1[0],h=d.touch1[1],g=(g=m[0]-l[0])*g+(g=m[1]-l[1])*g,y=(y=h[0]-_[0])*y+(y=h[1]-_[1])*y;a=f(a,Math.sqrt(g/y)),r=[(l[0]+m[0])/2,(l[1]+m[1])/2],s=[(_[0]+h[0])/2,(_[1]+h[1])/2]}else{if(!d.touch0)return;r=d.touch0[0],s=d.touch0[1]}d.zoom("touch",i(n(a,r,s),d.extent))}function h(){var t,f,n=o(this,arguments),i=e.event.changedTouches,a=i.length;for(id(),g&&clearTimeout(g),g=setTimeout(function(){g=null},R),t=0;t<a;++t)f=i[t],n.touch0&&n.touch0[2]===f.identifier?delete n.touch0:n.touch1&&n.touch1[2]===f.identifier&&delete n.touch1;n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0?n.touch0[1]=this.__zoom.invert(n.touch0[0]):n.end()}var p,g,y=ad,b=rd,v=sd,w=0,k=1/0,x=-k,q=k,E=x,S=q,M=250,C=hu,A=[],O=l("start","zoom","end"),R=500,P=150,N=0;return t.transform=function(e,t){var f=e.selection?e.selection():e;f.property("__zoom",od),e!==f?r(e,t):f.interrupt().each(function(){o(this,arguments).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},t.scaleBy=function(e,f){t.scaleTo(e,function(){return this.__zoom.k*("function"==typeof f?f.apply(this,arguments):f)})},t.scaleTo=function(e,r){t.transform(e,function(){var e=b.apply(this,arguments),t=this.__zoom,o=a(e),s=t.invert(o);return i(n(f(t,"function"==typeof r?r.apply(this,arguments):r),o,s),e)})},t.translateBy=function(e,f,n){t.transform(e,function(){return i(this.__zoom.translate("function"==typeof f?f.apply(this,arguments):f,"function"==typeof n?n.apply(this,arguments):n),b.apply(this,arguments))})},t.translateTo=function(e,f,n){t.transform(e,function(){var e=b.apply(this,arguments),t=this.__zoom,r=a(e);return i(pb.translate(r[0],r[1]).scale(t.k).translate("function"==typeof f?-f.apply(this,arguments):-f,"function"==typeof n?-n.apply(this,arguments):-n),e)})},s.prototype={start:function(){return 1==++this.active&&(this.index=A.push(this)-1,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(A.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(e){T(new td(t,e,this.that.__zoom),O.apply,O,[e,this.that,this.args])}},t.wheelDelta=function(e){return arguments.length?(v="function"==typeof e?e:hb(+e),t):v},t.filter=function(e){return arguments.length?(y="function"==typeof e?e:hb(!!e),t):y},t.extent=function(e){return arguments.length?(b="function"==typeof e?e:hb([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),t):b},t.scaleExtent=function(e){return arguments.length?(w=+e[0],k=+e[1],t):[w,k]},t.translateExtent=function(e){return arguments.length?(x=+e[0][0],q=+e[1][0],E=+e[0][1],S=+e[1][1],t):[[x,E],[q,S]]},t.duration=function(e){return arguments.length?(M=+e,t):M},t.interpolate=function(e){return arguments.length?(C=e,t):C},t.on=function(){var e=O.on.apply(O,arguments);return e===O?t:e},t.clickDistance=function(e){return arguments.length?(N=(e=+e)*e,t):Math.sqrt(N)},t},e.zoomTransform=nd,e.zoomIdentity=pb,Object.defineProperty(e,"__esModule",{value:!0})}),function(){var e,t,f,n=this;(function(){function n(e,t){throw t?new Error("Could not find module "+e+" required by: "+t):new Error("Could not find module "+e)}function i(e,f){var o=e,s=a[o];s||(o+="/index",s=a[o]);var d=r[o];if(void 0!==d)return d;d=r[o]={},s||n(e,f);for(var c=s.deps,u=s.callback,l=new Array(c.length),_=0;_<c.length;_++)"exports"===c[_]?l[_]=d:"require"===c[_]?l[_]=t:l[_]=i(c[_],o);return u.apply(this,l),d}if("undefined"==typeof window&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||(f=this.Ember=this.Ember||{}),void 0===f&&(f={}),void 0===f.__loader){var a={},r={};e=function(e,t,f){var n={};f?(n.deps=t,n.callback=f):(n.deps=[],n.callback=t),a[e]=n},(t=function(e){return i(e,null)}).default=t,t.has=function(e){return!!a[e]||!!a[e+"/index"]},t._eak_seen=a,f.__loader={define:e,require:t,registry:a}}else e=f.__loader.define,t=f.__loader.require})(),e("@glimmer/node",["exports","@glimmer/runtime"],function(e,t){"use strict";function f(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):f(e,t))}e.NodeDOMTreeConstruction=void 0;var r=function(e){function f(t){return n(this,f),i(this,e.call(this,t))}return a(f,e),f.prototype.setupUselessElement=function(){},f.prototype.insertHTMLBefore=function(e,f,n){var i=f?f.previousSibling:e.lastChild,a=this.document.createRawHTMLSection(n);e.insertBefore(a,f);var r=i?i.nextSibling:e.firstChild,o=f?f.previousSibling:e.lastChild;return new t.ConcreteBounds(e,r,o)},f.prototype.createElement=function(e){return this.document.createElement(e)},f.prototype.setAttribute=function(e,t,f){e.setAttribute(t,f)},f}(t.DOMTreeConstruction);e.NodeDOMTreeConstruction=r}),e("@glimmer/reference",["exports","@glimmer/util"],function(e,t){"use strict";function f(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):f(e,t))}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){var t=h.length;h.push(function(e){return e.value()}),p.push(function(e,t){return e.validate(t)}),e.id=t}function o(e){switch(e.length){case 0:return y;case 1:return e[0];case 2:return q.create(e[0],e[1]);default:return E.create(e)}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):d(e,t))}e.isModified=e.ReferenceCache=e.map=e.CachedReference=e.UpdatableTag=e.CachedTag=e.combine=e.combineSlice=e.combineTagged=e.DirtyableTag=e.CURRENT_TAG=e.VOLATILE_TAG=e.CONSTANT_TAG=e.TagWrapper=e.RevisionTag=e.VOLATILE=e.INITIAL=e.CONSTANT=e.IteratorSynchronizer=e.ReferenceIterator=e.IterationArtifacts=e.referenceFromParts=e.ListItem=e.isConst=e.ConstReference=void 0;var _=1,m=function(){function e(){a(this,e)}return e.prototype.validate=function(e){return this.value()===e},e}();m.id=0;var h=[],p=[],g=function(){function e(t,f){a(this,e),this.type=t,this.inner=f}return e.prototype.value=function(){return(0,h[this.type])(this.inner)},e.prototype.validate=function(e){return(0,p[this.type])(this.inner,e)},e}();h.push(function(){return 0}),p.push(function(e,t){return 0===t});var y=new g(0,null);h.push(function(){return NaN}),p.push(function(e,t){return NaN===t});var b=new g(1,null);h.push(function(){return w}),p.push(function(e,t){return t===w});var v=new g(2,null),w=_,k=function(e){function t(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w;a(this,t);var i=n(this,e.call(this));return i.revision=f,i}return i(t,e),t.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w;return new g(this.id,new t(e))},t.prototype.value=function(){return this.revision},t.prototype.dirty=function(){this.revision=++w},t}(m);r(k);var x=function(e){function t(){a(this,t);var f=n(this,e.apply(this,arguments));return f.lastChecked=null,f.lastValue=null,f}return i(t,e),t.prototype.value=function(){var e=this.lastChecked;this.lastValue;return e!==w&&(this.lastChecked=w,this.lastValue=this.compute()),this.lastValue},t.prototype.invalidate=function(){this.lastChecked=null},t}(m),q=function(e){function t(f,i){a(this,t);var r=n(this,e.call(this));return r.first=f,r.second=i,r}return i(t,e),t.create=function(e,f){return new g(this.id,new t(e,f))},t.prototype.compute=function(){return Math.max(this.first.value(),this.second.value())},t}(x);r(q);var E=function(e){function t(f){a(this,t);var i=n(this,e.call(this));return i.tags=f,i}return i(t,e),t.create=function(e){return new g(this.id,new t(e))},t.prototype.compute=function(){var e,t,f=this.tags,n=-1;for(e=0;e<f.length;e++)t=f[e].value(),n=Math.max(t,n);return n},t}(x);r(E);var T=function(e){function t(f){a(this,t);var i=n(this,e.call(this));return i.tag=f,i.lastUpdated=_,i}return i(t,e),t.create=function(e){return new g(this.id,new t(e))},t.prototype.compute=function(){return Math.max(this.lastUpdated,this.tag.value())},t.prototype.update=function(e){e!==this.tag&&(this.tag=e,this.lastUpdated=w,this.invalidate())},t}(x);r(T);var S,M=function(){function e(){a(this,e),this.lastRevision=null,this.lastValue=null}return e.prototype.value=function(){var e=this.tag,t=this.lastRevision,f=this.lastValue;return t&&e.validate(t)||(f=this.lastValue=this.compute(),this.lastRevision=e.value()),f},e.prototype.invalidate=function(){this.lastRevision=null},e}(),C=function(e){function t(f,i){a(this,t);var r=n(this,e.call(this));return r.tag=f.tag,r.reference=f,r.mapper=i,r}return i(t,e),t.prototype.compute=function(){var e=this.reference;return(0,this.mapper)(e.value())},t}(M),A=function(){function e(t){a(this,e),this.lastValue=null,this.lastRevision=null,this.initialized=!1,this.tag=t.tag,this.reference=t}return e.prototype.peek=function(){return this.initialized?this.lastValue:this.initialize()},e.prototype.revalidate=function(){if(!this.initialized)return this.initialize();var e=this.reference,t=this.lastRevision,f=e.tag;if(f.validate(t))return O;this.lastRevision=f.value();var n=this.lastValue,i=e.value();return i===n?O:(this.lastValue=i,i)},e.prototype.initialize=function(){var e=this.reference,t=this.lastValue=e.value();return this.lastRevision=e.tag.value(),this.initialized=!0,t},e}(),O="adb3b78e-3d22-4e4b-877a-6317c2c5c145",R=function(){function e(t){s(this,e),this.inner=t,this.tag=y}return e.prototype.value=function(){return this.inner},e}(),P=function(e){function t(f,n){c(this,t);var i=u(this,e.call(this,f.valueReferenceFor(n)));return i.retained=!1,i.seen=!1,i.key=n.key,i.iterable=f,i.memo=f.memoReferenceFor(n),i}return l(t,e),t.prototype.update=function(e){this.retained=!0,this.iterable.updateValueReference(this.value,e),this.iterable.updateMemoReference(this.memo,e)},t.prototype.shouldRemove=function(){return!this.retained},t.prototype.reset=function(){this.retained=!1,this.seen=!1},t}(t.ListNode),N=function(){function e(f){c(this,e),this.map=(0,t.dict)(),this.list=new t.LinkedList,this.tag=f.tag,this.iterable=f}return e.prototype.isEmpty=function(){return(this.iterator=this.iterable.iterate()).isEmpty()},e.prototype.iterate=function(){var e=this.iterator||this.iterable.iterate();return this.iterator=null,e},e.prototype.has=function(e){return!!this.map[e]},e.prototype.get=function(e){return this.map[e]},e.prototype.wasSeen=function(e){var t=this.map[e];return t&&t.seen},e.prototype.append=function(e){var t=this.map,f=this.list,n=this.iterable,i=t[e.key]=new P(n,e);return f.append(i),i},e.prototype.insertBefore=function(e,t){var f=this.map,n=this.list,i=this.iterable,a=f[e.key]=new P(i,e);return a.retained=!0,n.insertBefore(a,t),a},e.prototype.move=function(e,t){var f=this.list;e.retained=!0,f.remove(e),f.insertBefore(e,t)},e.prototype.remove=function(e){this.list.remove(e),delete this.map[e.key]},e.prototype.nextNode=function(e){return this.list.nextNode(e)},e.prototype.head=function(){return this.list.head()},e}(),L=function(){function e(t){c(this,e),this.iterator=null;var f=new N(t);this.artifacts=f}return e.prototype.next=function(){var e=this.artifacts,t=(this.iterator=this.iterator||e.iterate()).next();return t?e.append(t):null},e}();!function(e){e[e.Append=0]="Append",e[e.Prune=1]="Prune",e[e.Done=2]="Done"}(S||(S={}));var j=function(){function e(t){var f=t.target,n=t.artifacts;c(this,e),this.target=f,this.artifacts=n,this.iterator=n.iterate(),this.current=n.head()}return e.prototype.sync=function(){for(var e=S.Append;;)switch(e){case S.Append:e=this.nextAppend();break;case S.Prune:e=this.nextPrune();break;case S.Done:return void this.nextDone()}},e.prototype.advanceToKey=function(e){for(var t=this.current,f=this.artifacts,n=t;n&&n.key!==e;)n.seen=!0,n=f.nextNode(n);this.current=n&&f.nextNode(n)},e.prototype.nextAppend=function(){var e=this.iterator,t=this.current,f=this.artifacts,n=e.next();if(null===n)return this.startPrune();var i=n.key;return t&&t.key===i?this.nextRetain(n):f.has(i)?this.nextMove(n):this.nextInsert(n),S.Append},e.prototype.nextRetain=function(e){var t=this.artifacts,f=this.current;(f=f).update(e),this.current=t.nextNode(f),this.target.retain(e.key,f.value,f.memo)},e.prototype.nextMove=function(e){var t=this.current,f=this.artifacts,n=this.target,i=e.key,a=f.get(e.key);a.update(e),f.wasSeen(e.key)?(f.move(a,t),n.move(a.key,a.value,a.memo,t?t.key:null)):this.advanceToKey(i)},e.prototype.nextInsert=function(e){var t=this.artifacts,f=this.target,n=this.current,i=t.insertBefore(e,n);f.insert(i.key,i.value,i.memo,n?n.key:null)},e.prototype.startPrune=function(){return this.current=this.artifacts.head(),S.Prune},e.prototype.nextPrune=function(){var e=this.artifacts,t=this.target,f=this.current;if(null===f)return S.Done;var n=f;return this.current=e.nextNode(n),n.shouldRemove()?(e.remove(n),t.delete(n.key)):n.reset(),S.Prune},e.prototype.nextDone=function(){this.target.done()},e}();e.ConstReference=R,e.isConst=function(e){return e.tag===y},e.ListItem=P,e.referenceFromParts=function(e,t){var f,n=e;for(f=0;f<t.length;f++)n=n.get(t[f]);return n},e.IterationArtifacts=N,e.ReferenceIterator=L,e.IteratorSynchronizer=j,e.CONSTANT=0,e.INITIAL=_,e.VOLATILE=NaN,e.RevisionTag=m,e.TagWrapper=g,e.CONSTANT_TAG=y,e.VOLATILE_TAG=b,e.CURRENT_TAG=v,e.DirtyableTag=k,e.combineTagged=function(e){var t,f,n,i=[];for(t=0,f=e.length;t<f;t++){if((n=e[t].tag)===b)return b;n!==y&&i.push(n)}return o(i)},e.combineSlice=function(e){for(var t,f=[],n=e.head();null!==n;){if((t=n.tag)===b)return b;t!==y&&f.push(t),n=e.nextNode(n)}return o(f)},e.combine=function(e){var t,f,n,i=[];for(t=0,f=e.length;t<f;t++){if((n=e[t])===b)return b;n!==y&&i.push(n)}return o(i)},e.CachedTag=x,e.UpdatableTag=T,e.CachedReference=M,e.map=function(e,t){return new C(e,t)},e.ReferenceCache=A,e.isModified=function(e){return e!==O}}),e("@glimmer/runtime",["exports","@glimmer/util","@glimmer/reference","@glimmer/wire-format"],function(e,t,f,n){"use strict";function i(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):i(e,t))}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):s(e,t))}function l(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):l(e,t))}function p(e){return"function"!=typeof e.toString?"":String(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):y(e,t))}function k(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function x(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function q(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):k(e,t))}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e){var t,f,n=[];for(t=0;t<e.length;t++)!1!==(f=e[t].value())&&null!==f&&void 0!==f&&n.push(f);return 0===n.length?null:n.join(" ")}function S(e){return JSON.stringify("<"+e.tagName.toLowerCase()+" />")}function M(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function O(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):M(e,t))}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){return new hf(e,t)}function N(e,t){for(var f,n=e.parentElement(),i=e.firstNode(),a=e.lastNode(),r=i;r;){if(f=r.nextSibling,n.insertBefore(r,t),r===a)return f;r=f}return null}function L(e){for(var t,f=e.parentElement(),n=e.firstNode(),i=e.lastNode(),a=n;a;){if(t=a.nextSibling,f.removeChild(a),a===i)return t;a=t}return null}function j(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function $(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function D(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):j(e,t))}function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e){return"object"==typeof e&&null!==e&&e[qf]}function z(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function B(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):z(e,t))}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e){return"object"==typeof e&&null!==e&&"function"==typeof e.toHTML}function W(e){return"object"==typeof e&&null!==e&&"number"==typeof e.nodeType}function X(e){return"string"==typeof e}function Y(e,f,n){if(X(n))return Tf.insert(e,f,n);if(G(n))return Mf.insert(e,f,n);if(W(n))return Cf.insert(e,f,n);throw(0,t.unreachable)()}function K(e,f,n){if(X(n))return Sf.insert(e,f,n);if(W(n))return Cf.insert(e,f,n);throw(0,t.unreachable)()}function J(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function Q(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function Z(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):J(e,t))}function ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function te(e){return null===e||void 0===e||"function"!=typeof e.toString}function fe(e){return te(e)?"":String(e)}function ne(e){return te(e)?"":X(e)?e:G(e)?e.toHTML():W(e)?e:String(e)}function ie(e){return te(e)?"":X(e)?e:G(e)||W(e)?e:String(e)}function ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(e,t){console.info("Use `context`, and `get(<path>)` to debug this template."),t("this")}function oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ce(e,t){return new Zf(e,t)}function ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function le(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function _e(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function me(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):le(e,t))}function he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pe(e){return"object"==typeof e&&null!==e&&"function"==typeof e.compile}function ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ye(e,t,f){var n=e[1],i=e[2],a=e[3];be(i,f),a?f.dynamicAttrNS(n,a,t):f.dynamicAttr(n,t)}function be(e,t){Array.isArray(e)?dn.compile(e,t):t.primitive(e)}function ve(e,t){var f;if(!e)return 0;for(f=0;f<e.length;f++)be(e[f],t);return e.length}function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ln,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new mn;return e.add("if",function(e,t,f,n,i){if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #if requires a single argument");i.startLabels(),i.pushFrame(),i.returnTo("END"),be(e[0],i),i.test("environment"),i.enter(1),i.jumpUnless("ELSE"),i.invokeStatic(f),n?(i.jump("EXIT"),i.label("ELSE"),i.invokeStatic(n),i.label("EXIT"),i.exit(),i.return()):(i.label("ELSE"),i.exit(),i.return()),i.label("END"),i.popFrame(),i.stopLabels()}),e.add("unless",function(e,t,f,n,i){if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #unless requires a single argument");i.startLabels(),i.pushFrame(),i.returnTo("END"),be(e[0],i),i.test("environment"),i.enter(1),i.jumpIf("ELSE"),i.invokeStatic(f),n?(i.jump("EXIT"),i.label("ELSE"),i.invokeStatic(n),i.label("EXIT"),i.exit(),i.return()):(i.label("ELSE"),i.exit(),i.return()),i.label("END"),i.popFrame(),i.stopLabels()}),e.add("with",function(e,t,f,n,i){if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #with requires a single argument");i.startLabels(),i.pushFrame(),i.returnTo("END"),be(e[0],i),i.dup(),i.test("environment"),i.enter(2),i.jumpUnless("ELSE"),i.invokeStatic(f,1),n?(i.jump("EXIT"),i.label("ELSE"),i.invokeStatic(n),i.label("EXIT"),i.exit(),i.return()):(i.label("ELSE"),i.exit(),i.return()),i.label("END"),i.popFrame(),i.stopLabels()}),e.add("each",function(e,t,f,n,i){i.startLabels(),i.pushFrame(),i.returnTo("END"),t&&"key"===t[0][0]?be(t[1][0],i):i.primitive(null),be(e[0],i),i.enter(2),i.putIterator(),i.jumpUnless("ELSE"),i.pushFrame(),i.returnTo("ITER"),i.dup(At.fp,1),i.enterList("BODY"),i.label("ITER"),i.iterate("BREAK"),i.label("BODY"),i.invokeStatic(f,2),i.pop(2),i.exit(),i.return(),i.label("BREAK"),i.exitList(),i.popFrame(),n?(i.jump("EXIT"),i.label("ELSE"),i.invokeStatic(n),i.label("EXIT"),i.exit(),i.return()):(i.label("ELSE"),i.exit(),i.return()),i.label("END"),i.popFrame(),i.stopLabels()}),e.add("-in-element",function(e,t,f,n,i){var a,r;if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #-in-element requires a single argument");if(i.startLabels(),i.pushFrame(),i.returnTo("END"),t&&t[0].length){if(a=t[0],r=t[1],1!==a.length||"nextSibling"!==a[0])throw new Error("SYNTAX ERROR: #-in-element does not take a `"+a[0]+"` option");be(r[0],i)}else be(null,i);be(e[0],i),i.dup(),i.test("simple"),i.enter(3),i.jumpUnless("ELSE"),i.pushRemoteElement(),i.invokeStatic(f),i.popRemoteElement(),i.label("ELSE"),i.exit(),i.return(),i.label("END"),i.popFrame(),i.stopLabels()}),e.add("-with-dynamic-vars",function(e,t,f,n,i){var a,r;t?(a=t[0],r=t[1],ve(r,i),i.pushDynamicScope(),i.bindDynamicScope(a),i.invokeStatic(f),i.popDynamicScope()):i.invokeStatic(f)}),{blocks:e,inlines:t}}function ke(e,t){nn.compile(e,t)}function xe(e,t,f){var n,i=new Zf(f,t);for(n=0;n<e.length;n++)ke(e[n],i);return i}function qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){var f,n,i,a=e[2],r=e[4];for(f=0;f<a.length;f++)t.push(a[f]);if(t.push([pn.FlushElement]),r)for(n=r.statements,i=0;i<n.length;i++)t.push(n[i]);t.push([pn.CloseElement])}function Se(e,f,n,i){var a=f.push(tn);i.push([pn.ClientSideStatement,Uf.OpenComponentElement,e]),i.push([pn.ClientSideStatement,Uf.DidCreateElement]),i.push([pn.Yield,a,t.EMPTY_ARRAY]),i.push.apply(i,n)}function Me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){return-1!==e.indexOf(t)}function Ae(e,t){return(null===e||Ce(vn,e))&&Ce(kn,t)}function Oe(e,t){return null!==e&&Ce(wn,e)&&Ce(xn,t)}function Re(e,t){return Ae(e,t)||Oe(e,t)}function Pe(e,t,f,n){var i,a=null;if(null===n||void 0===n)return n;if(G(n))return n.toHTML();a=t?t.tagName.toUpperCase():null;var r=fe(n);return Ae(a,f)&&(i=e.protocolForURL(r),Ce(bn,i))?"unsafe:"+r:Oe(a,f)?"unsafe:"+r:r}function Ne(e,t){var f,n=void 0,i=void 0;return t in e?(i=t,n="prop"):(f=t.toLowerCase())in e?(n="prop",i=f):(n="attr",i=t),"prop"!==n||"style"!==i.toLowerCase()&&!Le(e.tagName,i)||(n="attr"),{normalized:i,type:n}}function Le(e,t){var f=qn[e.toUpperCase()];return f&&f[t.toLowerCase()]||!1}function je(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function $e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function De(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function Ie(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):je(e,t))}function Ue(e,t){if(!e)return t;if(!ze(e))return t;var f=e.createElement("div");return function(e){function t(){return $e(this,t),De(this,e.apply(this,arguments))}return Ie(t,e),t.prototype.insertHTMLBefore=function(t,n,i){if(null===i||""===i)return e.prototype.insertHTMLBefore.call(this,t,n,i);var a=t.tagName.toLowerCase(),r=En[a];return void 0===r?e.prototype.insertHTMLBefore.call(this,t,n,i):Fe(t,r,f,i,n)},t}(t)}function Fe(e,t,f,n,i){var a,r=t.before+n+t.after;f.innerHTML=r;var o=f;for(a=0;a<t.depth;a++)o=o.childNodes[0];var s=rt(o,e,i),d=s[0],c=s[1];return new mf(e,d,c)}function ze(e){var t=e.createElement("table");try{t.innerHTML="<tbody></tbody>"}catch(e){}finally{if(0!==t.childNodes.length)return!1}return!0}function Be(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function He(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ve(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function Ge(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):Be(e,t))}function We(e,t,f){if(!e)return t;if(!Ye(e,f))return t;var n=e.createElement("div");return function(e){function t(){return He(this,t),Ve(this,e.apply(this,arguments))}return Ge(t,e),t.prototype.insertHTMLBefore=function(t,i,a){return null===a||""===a?e.prototype.insertHTMLBefore.call(this,t,i,a):t.namespaceURI!==f?e.prototype.insertHTMLBefore.call(this,t,i,a):Xe(t,n,a,i)},t}(t)}function Xe(e,t,f,n){t.innerHTML="<svg>"+f+"</svg>";var i=rt(t.firstChild,e,n),a=i[0],r=i[1];return new mf(e,a,r)}function Ye(e,t){var f=e.createElementNS(t,"svg");try{f.insertAdjacentHTML("beforeend","<circle></circle>")}catch(e){}finally{return 1!==f.childNodes.length||"http://www.w3.org/2000/svg"!==f.firstChild.namespaceURI}}function Ke(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function Ze(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):Ke(e,t))}function et(e,t){return e&&tt(e)?function(e){function t(f){Je(this,t);var n=Qe(this,e.call(this,f));return n.uselessComment=n.createComment(""),n}return Ze(t,e),t.prototype.insertHTMLBefore=function(t,f,n){if(null===n)return e.prototype.insertHTMLBefore.call(this,t,f,n);var i=!1,a=f?f.previousSibling:t.lastChild;a&&a instanceof Text&&(i=!0,t.insertBefore(this.uselessComment,f));var r=e.prototype.insertHTMLBefore.call(this,t,f,n);return i&&t.removeChild(this.uselessComment),r},t}(t):t}function tt(e){var t=e.createElement("div");return t.innerHTML="first",t.insertAdjacentHTML("beforeend","second"),2!==t.childNodes.length}function ft(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function nt(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function it(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):ft(e,t))}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rt(e,t,f){for(var n=e.firstChild,i=null,a=n;a;)i=a,a=a.nextSibling,t.insertBefore(i,f);return[n,i]}function ot(e,t,f,n){var i=t,a=e,r=f,o=r?r.previousSibling:i.lastChild,s=void 0;if(null===n||""===n)return new mf(i,null,null);null===r?(i.insertAdjacentHTML("beforeend",n),s=i.lastChild):r instanceof HTMLElement?(r.insertAdjacentHTML("beforebegin",n),s=r.previousSibling):(i.insertBefore(a,r),a.insertAdjacentHTML("beforebegin",n),s=a.previousSibling,i.removeChild(a));var d=o?o.nextSibling:i.firstChild;return new mf(i,d,s)}function st(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function dt(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function ct(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function ut(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):dt(e,t))}function lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _t(e,t){var f=e.tagName;if(e.namespaceURI===Tn)return ht(f,t);var n=Ne(e,t),i=n.type,a=n.normalized;return"attr"===i?ht(f,a):mt(f,a)}function mt(e,t){return Re(e,t)?new Un(t):yt(e,t)?Fn:bt(e,t)?zn:new In(t)}function ht(e,t){return Re(e,t)?new Bn(t):new Dn(t)}function pt(e){return!1===e||void 0===e||null===e?null:!0===e?"":"function"==typeof e?null:String(e)}function gt(e){return null===e||void 0===e}function yt(e,t){return("INPUT"===e||"TEXTAREA"===e)&&"value"===t}function bt(e,t){return"OPTION"===e&&"selected"===t}function vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wt(e,t){var f,n,i,a=Object.getOwnPropertyNames(t);for(f=0;f<a.length;f++)n=a[f],(i=Object.getOwnPropertyDescriptor(t,n))&&i.configurable&&void 0===e[n]&&Object.defineProperty(e,n,i);return e}function kt(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function xt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):wt(e,t))}function qt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function St(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.ConcreteBounds=e.ElementStack=e.insertHTMLBefore=e.isWhitespace=e.DOMTreeConstruction=e.IDOMChanges=e.DOMChanges=e.isComponentDefinition=e.ComponentDefinition=e.PartialDefinition=e.Environment=e.Scope=e.isSafeString=e.RenderResult=e.UpdatingVM=e.compileExpression=e.compileList=e.InlineMacros=e.BlockMacros=e.getDynamicVar=e.resetDebuggerCallback=e.setDebuggerCallback=e.normalizeTextValue=e.debugSlice=e.Register=e.readDOMAttr=e.defaultPropertyManagers=e.defaultAttributeManagers=e.defaultManagers=e.INPUT_VALUE_PROPERTY_MANAGER=e.PropertyManager=e.AttributeManager=e.IAttributeManager=e.CompiledDynamicTemplate=e.CompiledStaticTemplate=e.compileLayout=e.OpcodeBuilderDSL=e.ConditionalReference=e.PrimitiveReference=e.UNDEFINED_REFERENCE=e.NULL_REFERENCE=e.templateFactory=e.Simple=void 0;var At;!function(e){e[e.pc=0]="pc",e[e.ra=1]="ra",e[e.fp=2]="fp",e[e.sp=3]="sp",e[e.s0=4]="s0",e[e.s1=5]="s1",e[e.t0=6]="t0",e[e.t1=7]="t1"}(At||(e.Register=At={}));var Ot=new(function(){function e(){o(this,e),this.evaluateOpcode=(0,t.fillNulls)(72).slice()}return e.prototype.add=function(e,t){this.evaluateOpcode[e]=t},e.prototype.evaluate=function(e,t,f){(0,this.evaluateOpcode[f])(e,t)},e}()),Rt=function(e){function t(){o(this,t);var f=a(this,e.apply(this,arguments));return f.next=null,f.prev=null,f}return r(t,e),t}(function(){function e(){o(this,e),(0,t.initializeGuid)(this)}return e.prototype.toJSON=function(){return{guid:this._guid,type:this.type}},e}()),Pt=function(e){function t(f){return d(this,t),c(this,e.call(this,f))}return u(t,e),t.create=function(e){return void 0===e?jt:null===e?$t:!0===e?Dt:!1===e?It:"number"==typeof e?new Lt(e):new Nt(e)},t.prototype.get=function(){return jt},t}(f.ConstReference),Nt=function(e){function t(){d(this,t);var f=c(this,e.apply(this,arguments));return f.lengthReference=null,f}return u(t,e),t.prototype.get=function(t){var f;return"length"===t?(null===(f=this.lengthReference)&&(f=this.lengthReference=new Lt(this.inner.length)),f):e.prototype.get.call(this,t)},t}(Pt),Lt=function(e){function t(f){return d(this,t),c(this,e.call(this,f))}return u(t,e),t}(Pt),jt=new Lt(void 0),$t=new Lt(null),Dt=new Lt(!0),It=new Lt(!1),Ut=function(){function e(t){d(this,e),this.inner=t,this.tag=t.tag}return e.prototype.value=function(){return this.toBool(this.inner.value())},e.prototype.toBool=function(e){return!!e},e}(),Ft=function(e){function t(n){_(this,t);var i=m(this,e.call(this));return i.parts=n,i.tag=(0,f.combineTagged)(n),i}return h(t,e),t.prototype.compute=function(){var e,t,f=new Array;for(e=0;e<this.parts.length;e++)null!==(t=this.parts[e].value())&&void 0!==t&&(f[e]=p(t));return f.length>0?f.join(""):null},t}(f.CachedReference);Ot.add(1,function(e,t){var f=t.op1,n=e.stack,i=e.constants.getFunction(f),a=n.pop(),r=i(e,a);a.clear(),e.stack.push(r)}),Ot.add(2,function(e,t){var f=t.op1,n=e.constants.getFunction(f);e.stack.push(n(e))}),Ot.add(5,function(e,t){var f=t.op1,n=e.referenceForSymbol(f);e.stack.push(n)}),Ot.add(4,function(e,t){var f=t.op1,n=e.stack.pop();e.scope().bindSymbol(f,n)}),Ot.add(70,function(e,t){var f=t.op1,n=e.constants.getString(f),i=e.scope().getPartialMap()[n];void 0===i&&(i=e.getSelf().get(n)),e.stack.push(i)}),Ot.add(19,function(e,t){var f=t.op1,n=t.op2;e.pushRootScope(f,!!n)}),Ot.add(6,function(e,t){var f=t.op1,n=e.constants.getString(f),i=e.stack.pop();e.stack.push(i.get(n))}),Ot.add(7,function(e,t){var f=t.op1,n=f?e.constants.getBlock(f):null;e.stack.push(n)}),Ot.add(8,function(e,t){var f=t.op1;e.stack.push(e.scope().getBlock(f))}),Ot.add(9,function(e,t){var f=t.op1,n=!!e.scope().getBlock(f);e.stack.push(n?Dt:It)}),Ot.add(10,function(e,t){var f=t.op1,n=e.scope().getBlock(f),i=n&&n.symbolTable.parameters.length;e.stack.push(i?Dt:It)}),Ot.add(11,function(e,t){var f,n=[];for(f=t.op1;f>0;f--)n.push(e.stack.pop());e.stack.push(new Ft(n.reverse()))});var zt=function(){function e(e,t){var f,n;for(f=0;f<t.length;f++)n=t[f],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,f,n){return f&&e(t.prototype,f),n&&e(t,n),t}}(),Bt=function(){function e(){g(this,e),this.stack=null,this.positional=new Ht,this.named=new Gt}return e.prototype.empty=function(){return this.setup(null,!0),this},e.prototype.setup=function(e,t){this.stack=e;var f=e.fromTop(0),n=f.length,i=e.fromTop(n+1);this.positional.setup(e,i+n+2,i),this.named.setup(e,n,f,t)},e.prototype.at=function(e){return this.positional.at(e)},e.prototype.get=function(e){return this.named.get(e)},e.prototype.capture=function(){return{tag:this.tag,length:this.length,positional:this.positional.capture(),named:this.named.capture()}},e.prototype.clear=function(){var e=this.stack,t=this.length;e.pop(t+2)},zt(e,[{key:"tag",get:function(){return(0,f.combineTagged)([this.positional,this.named])}},{key:"length",get:function(){return this.positional.length+this.named.length}}]),e}(),Ht=function(){function e(){g(this,e),this.length=0,this.stack=null,this.start=0,this._tag=null,this._references=null}return e.prototype.setup=function(e,t,f){this.stack=e,this.start=t,this.length=f,this._tag=null,this._references=null},e.prototype.at=function(e){var t=this.start,f=this.length;return e<0||e>=f?jt:this.stack.fromTop(t-e-1)},e.prototype.capture=function(){return new Vt(this.tag,this.references)},zt(e,[{key:"tag",get:function(){var e=this._tag;return e||(e=this._tag=(0,f.combineTagged)(this.references)),e}},{key:"references",get:function(){var e,t,f=this._references;if(!f)for(e=this.length,f=this._references=new Array(e),t=0;t<e;t++)f[t]=this.at(t);return f}}]),e}(),Vt=function(){function e(t,f){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.length;g(this,e),this.tag=t,this.references=f,this.length=n}return e.prototype.at=function(e){return this.references[e]},e.prototype.value=function(){return this.references.map(this.valueOf)},e.prototype.get=function(e){var t,f=this.references,n=this.length;return"length"===e?Pt.create(n):(t=parseInt(e,10))<0||t>=n?jt:f[t]},e.prototype.valueOf=function(e){return e.value()},e}(),Gt=function(){function e(){g(this,e),this.length=0,this._tag=null,this._references=null,this._names=null,this._realNames=t.EMPTY_ARRAY}return e.prototype.setup=function(e,f,n,i){this.stack=e,this.length=f,this._tag=null,this._references=null,i?(this._names=n,this._realNames=t.EMPTY_ARRAY):(this._names=null,this._realNames=n)},e.prototype.has=function(e){return-1!==this.names.indexOf(e)},e.prototype.get=function(e){var t=this.names,f=this.length,n=t.indexOf(e);return-1===n?jt:this.stack.fromTop(f-n)},e.prototype.capture=function(){return new Wt(this.tag,this.names,this.references)},e.prototype.sliceName=function(e){return e.slice(1)},zt(e,[{key:"tag",get:function(){return(0,f.combineTagged)(this.references)}},{key:"names",get:function(){var e=this._names;return e||(e=this._names=this._realNames.map(this.sliceName)),e}},{key:"references",get:function(){var e,t,f,n=this._references;if(!n)for(e=this.names,t=this.length,n=this._references=[],f=0;f<t;f++)n[f]=this.get(e[f]);return n}}]),e}(),Wt=function(){function e(t,f,n){g(this,e),this.tag=t,this.names=f,this.references=n,this.length=f.length,this._map=null}return e.prototype.has=function(e){return-1!==this.names.indexOf(e)},e.prototype.get=function(e){var t=this.names,f=this.references,n=t.indexOf(e);return-1===n?jt:f[n]},e.prototype.value=function(){var e,f,n=this.names,i=this.references,a=(0,t.dict)();for(e=0;e<n.length;e++)f=n[e],a[f]=i[e].value();return a},zt(e,[{key:"map",get:function(){var e,f,n,i,a=this._map;if(!a)for(e=this.names,f=this.references,a=this._map=(0,t.dict)(),n=0;n<e.length;n++)i=e[n],a[i]=f[n];return a}}]),e}(),Xt=new Bt;Ot.add(20,function(e){return e.pushChildScope()}),Ot.add(21,function(e){return e.popScope()}),Ot.add(39,function(e){return e.pushDynamicScope()}),Ot.add(40,function(e){return e.popDynamicScope()}),Ot.add(12,function(e,t){var f=t.op1;e.stack.push(f)}),Ot.add(13,function(e,t){var f=t.op1;e.stack.push(e.constants.getOther(f))}),Ot.add(14,function(e,t){var f=t.op1,n=e.stack,i=f&~(3<<30);switch((f&3<<30)>>>30){case 0:n.push(Pt.create(i));break;case 1:n.push(Pt.create(e.constants.getFloat(i)));break;case 2:n.push(Pt.create(e.constants.getString(i)));break;case 3:switch(i){case 0:n.push(It);break;case 1:n.push(Dt);break;case 2:n.push($t);break;case 3:n.push(jt)}}}),Ot.add(15,function(e,t){var f=t.op1,n=t.op2,i=e.fetchValue(f)-n;e.stack.dup(i)}),Ot.add(16,function(e,t){var f=t.op1;return e.stack.pop(f)}),Ot.add(17,function(e,t){var f=t.op1;return e.load(f)}),Ot.add(18,function(e,t){var f=t.op1;return e.fetch(f)}),Ot.add(38,function(e,t){var f=t.op1,n=e.constants.getArray(f);e.bindDynamicScope(n)}),Ot.add(47,function(e){return e.pushFrame()}),Ot.add(48,function(e){return e.popFrame()}),Ot.add(49,function(e,t){var f=t.op1;return e.enter(f)}),Ot.add(50,function(e){return e.exit()}),Ot.add(41,function(e){var t=e.stack,f=t.pop();t.push(f?f.compileDynamic(e.env):null)}),Ot.add(42,function(e,t){var f=t.op1,n=e.constants.getBlock(f).compileStatic(e.env);e.call(n.handle)}),Ot.add(43,function(e,t){var f=t.op1,n=e.constants.getOther(f),i=e.stack.pop();n.invoke(e,i)}),Ot.add(44,function(e,t){var f=t.op1;return e.goto(f)}),Ot.add(45,function(e,t){var n,i=t.op1,a=e.stack.pop();(0,f.isConst)(a)?a.value()&&e.goto(i):((n=new f.ReferenceCache(a)).peek()&&e.goto(i),e.updateWith(new Qt(n)))}),Ot.add(46,function(e,t){var n,i=t.op1,a=e.stack.pop();(0,f.isConst)(a)?a.value()||e.goto(i):((n=new f.ReferenceCache(a)).peek()||e.goto(i),e.updateWith(new Qt(n)))}),Ot.add(22,function(e){return e.return()}),Ot.add(23,function(e,t){var f=t.op1;e.returnTo(f)});var Yt=function(e){return new f.ConstReference(!!e.value())},Kt=function(e){return e},Jt=function(e,t){return t.toConditionalReference(e)};Ot.add(51,function(e,t){var f=t.op1,n=e.stack,i=n.pop(),a=e.constants.getFunction(f);n.push(a(i,e.env))});var Qt=function(e){function t(f){b(this,t);var n=v(this,e.call(this));return n.type="assert",n.tag=f.tag,n.cache=f,n}return w(t,e),t.prototype.evaluate=function(e){var t=this.cache;(0,f.isModified)(t.revalidate())&&e.throw()},t.prototype.toJSON=function(){var e=this.type,t=this._guid,f=this.cache,n=void 0;try{n=JSON.stringify(f.peek())}catch(e){n=String(f.peek())}return{args:[],details:{expected:n},guid:t,type:e}},t}(Rt),Zt=function(e){function t(f,n){b(this,t);var i=v(this,e.call(this));return i.target=n,i.type="jump-if-not-modified",i.tag=f,i.lastRevision=f.value(),i}return w(t,e),t.prototype.evaluate=function(e){var t=this.tag,f=this.target,n=this.lastRevision;!e.alwaysRevalidate&&t.validate(n)&&e.goto(f)},t.prototype.didModify=function(){this.lastRevision=this.tag.value()},t.prototype.toJSON=function(){return{args:[JSON.stringify(this.target.inspect())],guid:this._guid,type:this.type}},t}(Rt),ef=function(e){function t(n){b(this,t);var i=v(this,e.call(this));return i.target=n,i.type="did-modify",i.tag=f.CONSTANT_TAG,i}return w(t,e),t.prototype.evaluate=function(){this.target.didModify()},t}(Rt),tf=function(){function e(n){b(this,e),this.tag=f.CONSTANT_TAG,this.type="label",this.label=null,this.prev=null,this.next=null,(0,t.initializeGuid)(this),this.label=n}return e.prototype.evaluate=function(){},e.prototype.inspect=function(){return this.label+" ["+this._guid+"]"},e.prototype.toJSON=function(){return{args:[JSON.stringify(this.inspect())],guid:this._guid,type:this.type}},e}();Ot.add(24,function(e,t){var f=t.op1;e.elements().appendText(e.constants.getString(f))}),Ot.add(25,function(e,t){var f=t.op1;e.elements().appendComment(e.constants.getString(f))}),Ot.add(27,function(e,t){var f=t.op1;e.elements().openElement(e.constants.getString(f))}),Ot.add(28,function(e,t){var f=t.op1,n=e.constants.getString(f),i=e.stack.pop();e.elements().openElement(n,i)}),Ot.add(29,function(e){var t=e.stack.pop(),f=e.stack.pop().value();e.elements().openElement(f,t)}),Ot.add(36,function(e){var t,n,i=e.stack.pop(),a=e.stack.pop(),r=void 0,o=void 0;(0,f.isConst)(i)?r=i.value():(t=new f.ReferenceCache(i),r=t.peek(),e.updateWith(new Qt(t))),(0,f.isConst)(a)?o=a.value():(n=new f.ReferenceCache(a),o=n.peek(),e.updateWith(new Qt(n))),e.elements().pushRemoteElement(r,o)}),Ot.add(37,function(e){return e.elements().popRemoteElement()});var ff=function(){function e(){E(this,e),this.list=null,this.isConst=!0}return e.prototype.append=function(e){var t=this.list,n=this.isConst;null===t&&(t=this.list=[]),t.push(e),this.isConst=n&&(0,f.isConst)(e)},e.prototype.toReference=function(){var e=this.list,t=this.isConst;return e?t?Pt.create(T(e)):new nf(e):$t},e}(),nf=function(e){function t(n){E(this,t);var i=x(this,e.call(this));return i.list=[],i.tag=(0,f.combineTagged)(n),i.list=n,i}return q(t,e),t.prototype.compute=function(){return T(this.list)},t}(f.CachedReference),af=function(){function e(t){E(this,e),this.env=t,this.opcodes=null,this.classList=null}return e.prototype.addStaticAttribute=function(e,t,f){"class"===t?this.addClass(Pt.create(f)):this.env.getAppendOperations().setAttribute(e,t,f)},e.prototype.addStaticAttributeNS=function(e,t,f,n){this.env.getAppendOperations().setAttribute(e,f,n,t)},e.prototype.addDynamicAttribute=function(e,t,f,n){var i,a;"class"===t?this.addClass(f):(i=this.env.attributeFor(e,t,n),a=new df(e,i,t,f),this.addAttribute(a))},e.prototype.addDynamicAttributeNS=function(e,t,f,n,i){var a=this.env.attributeFor(e,f,i,t),r=new df(e,a,f,n,t);this.addAttribute(r)},e.prototype.flush=function(e,t){var f,n,i,a,r=t.env,o=this.opcodes,s=this.classList;for(f=0;o&&f<o.length;f++)t.updateWith(o[f]);s&&(n=r.attributeFor(e,"class",!1),i=new df(e,n,"class",s.toReference()),(a=i.flush(r))&&t.updateWith(a)),this.opcodes=null,this.classList=null},e.prototype.addClass=function(e){var t=this.classList;t||(t=this.classList=new ff),t.append(e)},e.prototype.addAttribute=function(e){var t,f=e.flush(this.env);f&&((t=this.opcodes)||(t=this.opcodes=[]),t.push(f))},e}(),rf=function(){function e(t){E(this,e),this.env=t,this.attributeNames=null,this.attributes=null,this.classList=null}return e.prototype.addStaticAttribute=function(e,t,f){"class"===t?this.addClass(Pt.create(f)):this.shouldAddAttribute(t)&&this.addAttribute(t,new sf(e,t,f))},e.prototype.addStaticAttributeNS=function(e,t,f,n){this.shouldAddAttribute(f)&&this.addAttribute(f,new sf(e,f,n,t))},e.prototype.addDynamicAttribute=function(e,t,f,n){var i,a;"class"===t?this.addClass(f):this.shouldAddAttribute(t)&&(i=this.env.attributeFor(e,t,n),a=new df(e,i,t,f),this.addAttribute(t,a))},e.prototype.addDynamicAttributeNS=function(e,t,f,n,i){var a,r;this.shouldAddAttribute(f)&&(a=this.env.attributeFor(e,f,i,t),r=new df(e,a,f,n,t),this.addAttribute(f,r))},e.prototype.flush=function(e,t){var f,n,i,a,r,o=this.env,s=this.attributes,d=this.classList;for(f=0;s&&f<s.length;f++)(n=s[f].flush(o))&&t.updateWith(n);d&&(i=o.attributeFor(e,"class",!1),a=new df(e,i,"class",d.toReference()),(r=a.flush(o))&&t.updateWith(r))},e.prototype.shouldAddAttribute=function(e){return!this.attributeNames||-1===this.attributeNames.indexOf(e)},e.prototype.addClass=function(e){var t=this.classList;t||(t=this.classList=new ff),t.append(e)},e.prototype.addAttribute=function(e,t){var f=this.attributeNames,n=this.attributes;f||(f=this.attributeNames=[],n=this.attributes=[]),f.push(e),n.push(t)},e}();Ot.add(33,function(e){var t=e.elements(),f="FlushElementOpcode#evaluate";t.expectOperations(f).flush(t.expectConstructing(f),e),t.flushElement()}),Ot.add(34,function(e){return e.elements().closeElement()}),Ot.add(30,function(e,t){var f,n=t.op1,i=t.op2,a=t.op3,r=e.constants.getString(n),o=e.constants.getString(i);a?(f=e.constants.getString(a),e.elements().setStaticAttributeNS(f,r,o)):e.elements().setStaticAttribute(r,o)}),Ot.add(35,function(e,t){var f=t.op1,n=e.constants.getOther(f),i=e.stack.pop(),a=i.tag,r=e.elements(),o=r.constructing,s=r.updateOperations,d=e.dynamicScope(),c=n.create(o,i,d,s);i.clear(),e.env.scheduleInstallModifier(c,n);var u=n.getDestructor(c);u&&e.newDestroyable(u),e.updateWith(new of(a,n,c))});var of=function(e){function t(f,n,i){E(this,t);var a=x(this,e.call(this));return a.tag=f,a.manager=n,a.modifier=i,a.type="update-modifier",a.lastUpdated=f.value(),a}return q(t,e),t.prototype.evaluate=function(e){var t=this.manager,f=this.modifier,n=this.tag,i=this.lastUpdated;n.validate(i)||(e.env.scheduleUpdateModifier(f,t),this.lastUpdated=n.value())},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type}},t}(Rt),sf=function(){function e(t,f,n,i){E(this,e),this.element=t,this.name=f,this.value=n,this.namespace=i}return e.prototype.flush=function(e){return e.getAppendOperations().setAttribute(this.element,this.name,this.value,this.namespace),null},e}(),df=function(){function e(t,f,n,i,a){E(this,e),this.element=t,this.attributeManager=f,this.name=n,this.reference=i,this.namespace=a,this.cache=null,this.tag=i.tag}return e.prototype.patch=function(e){var t=this.element,n=this.cache.revalidate();(0,f.isModified)(n)&&this.attributeManager.updateAttribute(e,t,n,this.namespace)},e.prototype.flush=function(e){var t,n,i,a=this.reference,r=this.element;return(0,f.isConst)(a)?(t=a.value(),this.attributeManager.setAttribute(e,r,t,this.namespace),null):(n=this.cache=new f.ReferenceCache(a),i=n.peek(),this.attributeManager.setAttribute(e,r,i,this.namespace),new cf(this))},e.prototype.toJSON=function(){var e=this.element,t=this.namespace,f=this.name,n=this.cache,i=S(e),a=n.peek();return t?{element:i,lastValue:a,name:f,namespace:t,type:"attribute"}:{element:i,lastValue:a,name:f,namespace:void 0===t?null:t,type:"attribute"}},e}();Ot.add(32,function(e,t){var f=t.op1,n=t.op2,i=t.op3,a=e.constants.getString(f),r=e.constants.getString(n),o=e.stack.pop();e.elements().setDynamicAttributeNS(r,a,o,!!i)}),Ot.add(31,function(e,t){var f=t.op1,n=t.op2,i=e.constants.getString(f),a=e.stack.pop();e.elements().setDynamicAttribute(i,a,!!n)});var cf=function(e){function t(f){E(this,t);var n=x(this,e.call(this));return n.type="patch-element",n.tag=f.tag,n.operation=f,n}return q(t,e),t.prototype.evaluate=function(e){this.operation.patch(e.env)},t.prototype.toJSON=function(){var e=this._guid,t=this.type;return{details:this.operation.toJSON(),guid:e,type:t}},t}(Rt);Ot.add(56,function(e,t){var f=t.op1,n=e.constants.getOther(f);e.stack.push({definition:n,manager:n.manager,component:null})}),Ot.add(57,function(e){var t=e.stack,n=t.pop(),i=(0,f.isConst)(n)?void 0:new f.ReferenceCache(n),a=i?i.peek():n.value();t.push({definition:a,manager:a.manager,component:null}),i&&e.updateWith(new Qt(i))}),Ot.add(58,function(e,t){var f=t.op1,n=e.stack;Xt.setup(n,!!f),n.push(Xt)}),Ot.add(59,function(e,t){var f,n,i,a,r,o,s,d,c,u,l=t.op1,_=e.stack,m=e.fetchValue(l),h=m.definition,p=m.manager,g=_.pop(),y=p.prepareArgs(h,g);if(y){for(g.clear(),f=y.positional,n=y.named,i=f.length,a=0;a<i;a++)_.push(f[a]);for(_.push(i),o=(r=Object.keys(n)).length,s=[],d=0;d<o;d++)c=n[r[d]],u="@"+r[d],_.push(c),s.push(u);_.push(s),g.setup(_,!1)}_.push(g)}),Ot.add(60,function(e,t){var f,n=t.op1,i=t.op2,a=void 0,r=void 0,o=e.stack.pop(),s=e.dynamicScope(),d=(f=e.fetchValue(i),a=f.definition,r=f.manager,f),c=r.create(e.env,a,o,s,e.getSelf(),!!(1&n));d.component=c,e.updateWith(new uf(o.tag,a.name,c,r,s))}),Ot.add(61,function(e,t){var f=t.op1,n=e.fetchValue(f),i=n.manager,a=n.component,r=i.getDestructor(a);r&&e.newDestroyable(r)}),Ot.add(65,function(e){e.beginCacheGroup(),e.elements().pushSimpleBlock()}),Ot.add(62,function(e){e.stack.push(new rf(e.env))}),Ot.add(67,function(e,t){var f=t.op1,n=e.fetchValue(f),i=n.manager,a=n.component,r="DidCreateElementOpcode#evaluate";i.didCreateElement(a,e.elements().expectConstructing(r),e.elements().expectOperations(r))}),Ot.add(63,function(e,t){var f=t.op1,n=e.fetchValue(f);e.stack.push(n.manager.getSelf(n.component))}),Ot.add(64,function(e,t){var f=t.op1,n=e.fetchValue(f),i=n.manager,a=n.definition,r=n.component;e.stack.push(i.layoutFor(a,r,e.env))}),Ot.add(68,function(e,t){var f=t.op1,n=e.fetchValue(f),i=n.manager,a=n.component,r=e.elements().popBlock();i.didRenderLayout(a,r),e.env.didCreate(a,i),e.updateWith(new lf(i,a,r))}),Ot.add(66,function(e){return e.commitCacheGroup()});var uf=function(e){function t(n,i,a,r,o){C(this,t);var s=A(this,e.call(this));s.name=i,s.component=a,s.manager=r,s.dynamicScope=o,s.type="update-component";var d=r.getTag(a);return s.tag=d?(0,f.combine)([n,d]):n,s}return O(t,e),t.prototype.evaluate=function(){var e=this.component,t=this.manager,f=this.dynamicScope;t.update(e,f)},t.prototype.toJSON=function(){return{args:[JSON.stringify(this.name)],guid:this._guid,type:this.type}},t}(Rt),lf=function(e){function t(n,i,a){C(this,t);var r=A(this,e.call(this));return r.manager=n,r.component=i,r.bounds=a,r.type="did-update-layout",r.tag=f.CONSTANT_TAG,r}return O(t,e),t.prototype.evaluate=function(e){var t=this.manager,f=this.component,n=this.bounds;t.didUpdateLayout(f,n),e.env.didUpdate(f,t)},t}(Rt),_f=function e(t,f){R(this,e),this.element=t,this.nextSibling=f},mf=function(){function e(t,f,n){R(this,e),this.parentNode=t,this.first=f,this.last=n}return e.prototype.parentElement=function(){return this.parentNode},e.prototype.firstNode=function(){return this.first},e.prototype.lastNode=function(){return this.last},e}(),hf=function(){function e(t,f){R(this,e),this.parentNode=t,this.node=f}return e.prototype.parentElement=function(){return this.parentNode},e.prototype.firstNode=function(){return this.node},e.prototype.lastNode=function(){return this.node},e}(),pf=function(){function e(t){I(this,e),this.node=t}return e.prototype.firstNode=function(){return this.node},e}(),gf=function(){function e(t){I(this,e),this.node=t}return e.prototype.lastNode=function(){return this.node},e}(),yf=function(){function e(t){I(this,e),this.bounds=t}return e.prototype.parentElement=function(){return this.bounds.parentElement()},e.prototype.firstNode=function(){return this.bounds.firstNode()},e.prototype.lastNode=function(){return this.bounds.lastNode()},e.prototype.update=function(e){this.bounds=e},e}(),bf=function(){function e(f,n,i){I(this,e),this.constructing=null,this.operations=null,this.elementStack=new t.Stack,this.nextSiblingStack=new t.Stack,this.blockStack=new t.Stack,this.env=f,this.dom=f.getAppendOperations(),this.updateOperations=f.getDOM(),this.element=n,this.nextSibling=i,this.defaultOperations=new af(f),this.pushSimpleBlock(),this.elementStack.push(this.element),this.nextSiblingStack.push(this.nextSibling)}return e.forInitialRender=function(t,f,n){return new e(t,f,n)},e.resume=function(t,f,n){var i=new e(t,f.parentElement(),n);return i.pushBlockTracker(f),i},e.prototype.expectConstructing=function(){return this.constructing},e.prototype.expectOperations=function(){return this.operations},e.prototype.block=function(){return this.blockStack.current},e.prototype.popElement=function(){var e=this.elementStack,t=this.nextSiblingStack,f=e.pop();return t.pop(),this.element=e.current,this.nextSibling=t.current,f},e.prototype.pushSimpleBlock=function(){var e=new vf(this.element);return this.pushBlockTracker(e),e},e.prototype.pushUpdatableBlock=function(){var e=new kf(this.element);return this.pushBlockTracker(e),e},e.prototype.pushBlockTracker=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],f=this.blockStack.current;return null!==f&&(f.newDestroyable(e),t||f.newBounds(e)),this.blockStack.push(e),e},e.prototype.pushBlockList=function(e){var t=new xf(this.element,e),f=this.blockStack.current;return null!==f&&(f.newDestroyable(t),f.newBounds(t)),this.blockStack.push(t),t},e.prototype.popBlock=function(){return this.block().finalize(this),this.blockStack.pop()},e.prototype.openElement=function(e,t){var f=void 0===t?this.defaultOperations:t,n=this.dom.createElement(e,this.element);return this.constructing=n,this.operations=f,n},e.prototype.flushElement=function(){var e=this.element,t=this.constructing;this.dom.insertBefore(e,t,this.nextSibling),this.constructing=null,this.operations=null,this.pushElement(t,null),this.block().openElement(t)},e.prototype.pushRemoteElement=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.pushElement(e,t);var f=new wf(e);this.pushBlockTracker(f,!0)},e.prototype.popRemoteElement=function(){this.popBlock(),this.popElement()},e.prototype.pushElement=function(e,t){this.element=e,this.elementStack.push(e),this.nextSibling=t,this.nextSiblingStack.push(t)},e.prototype.newDestroyable=function(e){this.block().newDestroyable(e)},e.prototype.newBounds=function(e){this.block().newBounds(e)},e.prototype.appendText=function(e){var t=this.dom,f=t.createTextNode(e);return t.insertBefore(this.element,f,this.nextSibling),this.block().newNode(f),f},e.prototype.appendComment=function(e){var t=this.dom,f=t.createComment(e);return t.insertBefore(this.element,f,this.nextSibling),this.block().newNode(f),f},e.prototype.setStaticAttribute=function(e,t){this.expectOperations("setStaticAttribute").addStaticAttribute(this.expectConstructing("setStaticAttribute"),e,t)},e.prototype.setStaticAttributeNS=function(e,t,f){this.expectOperations("setStaticAttributeNS").addStaticAttributeNS(this.expectConstructing("setStaticAttributeNS"),e,t,f)},e.prototype.setDynamicAttribute=function(e,t,f){this.expectOperations("setDynamicAttribute").addDynamicAttribute(this.expectConstructing("setDynamicAttribute"),e,t,f)},e.prototype.setDynamicAttributeNS=function(e,t,f,n){this.expectOperations("setDynamicAttributeNS").addDynamicAttributeNS(this.expectConstructing("setDynamicAttributeNS"),e,t,f,n)},e.prototype.closeElement=function(){this.block().closeElement(),this.popElement()},e}(),vf=function(){function e(t){I(this,e),this.parent=t,this.first=null,this.last=null,this.destroyables=null,this.nesting=0}return e.prototype.destroy=function(){var e,t=this.destroyables;if(t&&t.length)for(e=0;e<t.length;e++)t[e].destroy()},e.prototype.parentElement=function(){return this.parent},e.prototype.firstNode=function(){return this.first&&this.first.firstNode()},e.prototype.lastNode=function(){return this.last&&this.last.lastNode()},e.prototype.openElement=function(e){this.newNode(e),this.nesting++},e.prototype.closeElement=function(){this.nesting--},e.prototype.newNode=function(e){0===this.nesting&&(this.first||(this.first=new pf(e)),this.last=new gf(e))},e.prototype.newBounds=function(e){0===this.nesting&&(this.first||(this.first=e),this.last=e)},e.prototype.newDestroyable=function(e){this.destroyables=this.destroyables||[],this.destroyables.push(e)},e.prototype.finalize=function(e){this.first||e.appendComment("")},e}(),wf=function(e){function t(){return I(this,t),$(this,e.apply(this,arguments))}return D(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),L(this)},t}(vf),kf=function(e){function t(){return I(this,t),$(this,e.apply(this,arguments))}return D(t,e),t.prototype.reset=function(e){var t,f=this.destroyables;if(f&&f.length)for(t=0;t<f.length;t++)e.didDestroy(f[t]);var n=L(this);return this.first=null,this.last=null,this.destroyables=null,this.nesting=0,n},t}(vf),xf=function(){function e(t,f){I(this,e),this.parent=t,this.boundList=f,this.parent=t,this.boundList=f}return e.prototype.destroy=function(){this.boundList.forEachNode(function(e){return e.destroy()})},e.prototype.parentElement=function(){return this.parent},e.prototype.firstNode=function(){var e=this.boundList.head();return e&&e.firstNode()},e.prototype.lastNode=function(){var e=this.boundList.tail();return e&&e.lastNode()},e.prototype.openElement=function(){(0,t.assert)(!1,"Cannot openElement directly inside a block list")},e.prototype.closeElement=function(){(0,t.assert)(!1,"Cannot closeElement directly inside a block list")},e.prototype.newNode=function(){(0,t.assert)(!1,"Cannot create a new node directly inside a block list")},e.prototype.newBounds=function(){},e.prototype.newDestroyable=function(){},e.prototype.finalize=function(){},e}(),qf="COMPONENT DEFINITION [id=e59c754e-61eb-4392-8c4a-2c0ac72bfcd4]",Ef=function e(t){V(this,e),this.bounds=t},Tf=function(e){function t(f,n){V(this,t);var i=B(this,e.call(this,f));return i.textNode=n,i}return H(t,e),t.insert=function(e,f,n){var i=e.createTextNode(n);return e.insertBefore(f.element,i,f.nextSibling),new t(new hf(f.element,i),i)},t.prototype.update=function(e,t){var f;return!!X(t)&&(f=this.textNode,f.nodeValue=t,!0)},t}(Ef),Sf=function(e){function t(){return V(this,t),B(this,e.apply(this,arguments))}return H(t,e),t.insert=function(e,f,n){return new t(e.insertHTMLBefore(f.element,f.nextSibling,n))},t.prototype.update=function(e,t){var f,n,i;return!!X(t)&&(f=this.bounds,n=f.parentElement(),i=L(f),this.bounds=e.insertHTMLBefore(n,i,t),!0)},t}(Ef),Mf=function(e){function t(f,n){V(this,t);var i=B(this,e.call(this,f));return i.lastStringValue=n,i}return H(t,e),t.insert=function(e,f,n){var i=n.toHTML();return new t(e.insertHTMLBefore(f.element,f.nextSibling,i),i)},t.prototype.update=function(e,t){var f,n,i,a;return!!G(t)&&((f=t.toHTML())!==this.lastStringValue&&(n=this.bounds,i=n.parentElement(),a=L(n),this.bounds=e.insertHTMLBefore(i,a,f),this.lastStringValue=f),!0)},t}(Ef),Cf=function(e){function t(){return V(this,t),B(this,e.apply(this,arguments))}return H(t,e),t.insert=function(e,f,n){return e.insertBefore(f.element,n,f.nextSibling),new t(P(f.element,n))},t.prototype.update=function(e,t){var f,n,i;return!!W(t)&&(f=this.bounds,n=f.parentElement(),i=L(f),this.bounds=e.insertNodeBefore(n,t,i),!0)},t}(Ef);Ot.add(26,function(e,t){var f=t.op1;e.constants.getOther(f).evaluate(e)});var Af=function(){function e(){ee(this,e)}return e.prototype.evaluate=function(e){var t=e.stack.pop(),n=this.normalize(t),i=void 0,a=void 0;(0,f.isConst)(t)?i=n.value():(a=new f.ReferenceCache(n),i=a.peek());var r=e.elements(),o=this.insert(e.env.getAppendOperations(),r,i),s=new yf(o.bounds);r.newBounds(s),a&&e.updateWith(this.updateWith(e,t,a,s,o))},e}(),Of=function(e){function t(){return ee(this,t),Q(this,e.apply(this,arguments))}return Z(t,e),t.create=function(e){return new t(e)},t.prototype.toBool=function(e){return F(e)},t}(Ut),Rf=function(e){function t(f,n,i){ee(this,t);var a=Q(this,e.call(this));return a.cache=f,a.bounds=n,a.upsert=i,a.tag=f.tag,a}return Z(t,e),t.prototype.evaluate=function(e){var t,n,i,a,r=this.cache.revalidate();(0,f.isModified)(r)&&(t=this.bounds,n=this.upsert,i=e.dom,this.upsert.update(i,r)||(a=new _f(t.parentElement(),L(t)),n=this.upsert=this.insert(e.env.getAppendOperations(),a,r)),t.update(n.bounds))},t.prototype.toJSON=function(){var e=this._guid,t=this.type,f=this.cache;return{details:{lastValue:JSON.stringify(f.peek())},guid:e,type:t}},t}(Rt),Pf=function(e){function t(){ee(this,t);var f=Q(this,e.apply(this,arguments));return f.type="optimized-cautious-append",f}return Z(t,e),t.prototype.normalize=function(e){return(0,f.map)(e,ie)},t.prototype.insert=function(e,t,f){return Y(e,t,f)},t.prototype.updateWith=function(e,t,f,n,i){return new Nf(f,n,i)},t}(Af),Nf=function(e){function t(){ee(this,t);var f=Q(this,e.apply(this,arguments));return f.type="optimized-cautious-update",f}return Z(t,e),t.prototype.insert=function(e,t,f){return Y(e,t,f)},t}(Rf),Lf=function(e){function t(){ee(this,t);var f=Q(this,e.apply(this,arguments));return f.type="optimized-trusting-append",f}return Z(t,e),t.prototype.normalize=function(e){return(0,f.map)(e,ne)},t.prototype.insert=function(e,t,f){return K(e,t,f)},t.prototype.updateWith=function(e,t,f,n,i){return new jf(f,n,i)},t}(Af),jf=function(e){function t(){ee(this,t);var f=Q(this,e.apply(this,arguments));return f.type="optimized-trusting-update",f}return Z(t,e),t.prototype.insert=function(e,t,f){return K(e,t,f)},t}(Rf),$f=re,Df=function(){function e(f,n,i){var a,r,o,s;for(ae(this,e),this.scope=f,this.locals=(0,t.dict)(),a=0;a<i.length;a++)r=i[a],o=n[r-1],s=f.getSymbol(r),this.locals[o]=s}return e.prototype.get=function(e){var t=this.scope,f=this.locals,n=e.split("."),i=e.split("."),a=i[0],r=i.slice(1),o=t.getEvalScope(),s=void 0;return"this"===a?s=t.getSelf():f[a]?s=f[a]:0===a.indexOf("@")&&o[a]?s=o[a]:(s=this.scope.getSelf(),r=n),r.reduce(function(e,t){return e.get(t)},s)},e}();Ot.add(71,function(e,t){var f=t.op1,n=t.op2,i=e.constants.getOther(f),a=e.constants.getArray(n),r=new Df(e.scope(),i,a);$f(e.getSelf().value(),function(e){return r.get(e).value()})}),Ot.add(69,function(e){var t=e.stack,f=t.pop();t.push(f.value().template.asPartial())});var If=function(){function e(t){oe(this,e),this.tag=t.tag,this.artifacts=t}return e.prototype.value=function(){return!this.artifacts.isEmpty()},e}();Ot.add(54,function(e){var t=e.stack,n=t.pop(),i=t.pop(),a=e.env.iterableFor(n,i.value()),r=new f.ReferenceIterator(a);t.push(r),t.push(new If(r.artifacts))}),Ot.add(52,function(e,t){var f=t.op1;e.enterList(f)}),Ot.add(53,function(e){return e.exitList()}),Ot.add(55,function(e,t){var f,n=t.op1,i=e.stack.peek().next();i?(f=e.iterate(i.memo,i.value),e.enterItem(i.key,f)):e.goto(n)});var Uf;!function(e){e[e.OpenComponentElement=0]="OpenComponentElement",e[e.DidCreateElement=1]="DidCreateElement",e[e.DidRenderLayout=2]="DidRenderLayout",e[e.FunctionExpression=3]="FunctionExpression"}(Uf||(Uf={}));var Ff=function e(t){se(this,e),this.handle=t},zf=function e(t,f){se(this,e),this.handle=t,this.symbolTable=f},Bf=function(){function e(e,t){var f,n;for(f=0;f<t.length;f++)n=t[f],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,f,n){return f&&e(t.prototype,f),n&&e(t,n),t}}(),Hf=function(){function e(t){de(this,e),this.env=t}return e.prototype.wrapLayout=function(e){this.inner=new Vf(this.env,e)},e.prototype.fromLayout=function(e,t){this.inner=new Gf(this.env,e,t)},e.prototype.compile=function(){return this.inner.compile()},Bf(e,[{key:"tag",get:function(){return this.inner.tag}},{key:"attrs",get:function(){return this.inner.attrs}}]),e}(),Vf=function(){function e(t,f){de(this,e),this.env=t,this.layout=f,this.tag=new Wf,this.attrs=new Xf}return e.prototype.compile=function(){var e,t,f=this.env,n=this.layout,i={templateMeta:n.meta,symbols:n.symbols,asPartial:!1},a=this.tag.getDynamic(),r=this.tag.getStatic(),o=ce(f,i);if(o.startLabels(),a?(o.fetch(At.s1),be(a,o),o.dup(),o.load(At.s1),o.test("simple"),o.jumpUnless("BODY"),o.fetch(At.s1),o.pushComponentOperations(),o.openDynamicElement()):r&&(o.pushComponentOperations(),o.openElementWithOperations(r)),a||r){for(o.didCreateElement(At.s0),e=this.attrs.buffer,t=0;t<e.length;t++)ke(e[t],o);o.flushElement()}o.label("BODY"),o.invokeStatic(n.asBlock()),a?(o.fetch(At.s1),o.test("simple"),o.jumpUnless("END"),o.closeElement()):r&&o.closeElement(),o.label("END"),o.didRenderLayout(At.s0),a&&o.load(At.s1),o.stopLabels();var s=o.start;return o.finalize(),new zf(s,{meta:i,hasEval:n.hasEval,symbols:n.symbols.concat([tn])})},e}(),Gf=function(){function e(t,f,n){de(this,e),this.env=t,this.componentName=f,this.layout=n,this.attrs=new Xf}return e.prototype.compile=function(){var e=this.env;return this.layout.asLayout(this.componentName,this.attrs.buffer).compileDynamic(e)},Bf(e,[{key:"tag",get:function(){throw new Error("BUG: Cannot call `tag` on an UnwrappedBuilder")}}]),e}(),Wf=function(){function e(){de(this,e),this.isDynamic=null,this.isStatic=null,this.staticTagName=null,this.dynamicTagName=null}return e.prototype.getDynamic=function(){if(this.isDynamic)return this.dynamicTagName},e.prototype.getStatic=function(){if(this.isStatic)return this.staticTagName},e.prototype.static=function(e){this.isStatic=!0,this.staticTagName=e},e.prototype.dynamic=function(e){this.isDynamic=!0,this.dynamicTagName=[n.Ops.ClientSideExpression,Uf.FunctionExpression,e]},e}(),Xf=function(){function e(){de(this,e),this.buffer=[]}return e.prototype.static=function(e,t){this.buffer.push([n.Ops.StaticAttr,e,t,null])},e.prototype.dynamic=function(e,t){this.buffer.push([n.Ops.DynamicAttr,e,[n.Ops.ClientSideExpression,Uf.FunctionExpression,t],null])},e}(),Yf=function(){function e(t){de(this,e),this.builder=t,this.env=t.env}return e.prototype.static=function(e,t){var f=t[0],n=t[1],i=t[2],a=t[3],r=this.builder;r.pushComponentManager(e),r.invokeComponent(null,f,n,i,a)},e.prototype.dynamic=function(e,t,f){var n=f[0],i=f[1],a=f[2],r=f[3],o=this.builder;if(!e||0===e.length)throw new Error("Dynamic syntax without an argument");var s=this.builder.meta.templateMeta;o.startLabels(),o.pushFrame(),o.returnTo("END"),o.compileArgs(e[0],e[1],!0),o.helper(function(e,f){return t(e,f,s)}),o.dup(),o.test("simple"),o.enter(2),o.jumpUnless("ELSE"),o.pushDynamicComponentManager(),o.invokeComponent(null,n,i,a,r),o.label("ELSE"),o.exit(),o.return(),o.label("END"),o.popFrame(),o.stopLabels()},e}(),Kf=function(){function e(t,f,n){ue(this,e),this.meta=t,this.statements=f,this.parameters=n}return e.prototype.scan=function(){return new hn(this.statements,{parameters:this.parameters,meta:this.meta})},e}(),Jf=function(){function e(e,t){var f,n;for(f=0;f<t.length;f++)n=t[f],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,f,n){return f&&e(t.prototype,f),n&&e(t,n),t}}(),Qf=function(){function e(){he(this,e),this.labels=(0,t.dict)(),this.targets=[]}return e.prototype.label=function(e,t){this.labels[e]=t},e.prototype.target=function(e,t,f){this.targets.push({at:e,Target:t,target:f})},e.prototype.patch=function(e){var t,f,n,i,a,r=this.targets,o=this.labels;for(t=0;t<r.length;t++)f=r[t],n=f.at,i=f.target,a=o[i]-n,e.heap.setbyaddr(n+1,a)},e}(),Zf=function(e){function f(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.program;he(this,f);var a=_e(this,e.call(this,t,n,i));return a.component=new Yf(a),a}return me(f,e),f.prototype.compileArgs=function(e,f,n){var i,a,r,o=0;if(e){for(i=0;i<e.length;i++)be(e[i],this);o=e.length}this.pushImmediate(o);var s=t.EMPTY_ARRAY;if(f)for(s=f[0],a=f[1],r=0;r<a.length;r++)be(a[r],this);this.pushImmediate(s),this.pushArgs(n)},f.prototype.compile=function(e){return pe(e)?e.compile(this):e},f.prototype.guardedAppend=function(e,t){this.startLabels(),this.pushFrame(),this.returnTo("END"),be(e,this),this.dup(),this.test(function(e){return Of.create(e)}),this.enter(2),this.jumpUnless("ELSE"),this.pushDynamicComponentManager(),this.invokeComponent(null,null,null,null,null),this.exit(),this.return(),this.label("ELSE"),t?this.trustingAppend():this.cautiousAppend(),this.exit(),this.return(),this.label("END"),this.popFrame(),this.stopLabels()},f.prototype.invokeComponent=function(e,t,f,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;this.fetch(At.s0),this.dup(At.sp,1),this.load(At.s0),this.pushBlock(n),this.pushBlock(i),this.compileArgs(t,f,!1),this.prepareArgs(At.s0),this.beginComponentTransaction(),this.pushDynamicScope(),this.createComponent(At.s0,null!==n,null!==i),this.registerComponentDestructor(At.s0),this.getComponentSelf(At.s0),this.getComponentLayout(At.s0),this.invokeDynamic(new rn(e&&e.scan())),this.popFrame(),this.popScope(),this.popDynamicScope(),this.commitComponentTransaction(),this.load(At.s0)},f.prototype.template=function(e){return e?new Kf(this.meta,e.statements,e.parameters):null},f}(function(){function e(f,n,i){he(this,e),this.env=f,this.meta=n,this.program=i,this.labelsStack=new t.Stack,this.constants=i.constants,this.heap=i.heap,this.start=this.heap.malloc()}return e.prototype.upvars=function(e){return(0,t.fillNulls)(e)},e.prototype.reserve=function(e){this.push(e,0,0,0)},e.prototype.push=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.heap.push(e),this.heap.push(t),this.heap.push(f),this.heap.push(n)},e.prototype.finalize=function(){return this.push(22),this.heap.finishMalloc(this.start),this.start},e.prototype.pushArgs=function(e){this.push(58,!0===e?1:0)},e.prototype.startLabels=function(){this.labelsStack.push(new Qf)},e.prototype.stopLabels=function(){this.labelsStack.pop().patch(this.program)},e.prototype.pushComponentManager=function(e){this.push(56,this.other(e))},e.prototype.pushDynamicComponentManager=function(){this.push(57)},e.prototype.prepareArgs=function(e){this.push(59,e)},e.prototype.createComponent=function(e,t,f){var n=(!0===t?1:0)|(!0===f?1:0)<<1;this.push(60,n,e)},e.prototype.registerComponentDestructor=function(e){this.push(61,e)},e.prototype.beginComponentTransaction=function(){this.push(65)},e.prototype.commitComponentTransaction=function(){this.push(66)},e.prototype.pushComponentOperations=function(){this.push(62)},e.prototype.getComponentSelf=function(e){this.push(63,e)},e.prototype.getComponentLayout=function(e){this.push(64,e)},e.prototype.didCreateElement=function(e){this.push(67,e)},e.prototype.didRenderLayout=function(e){this.push(68,e)},e.prototype.getPartialTemplate=function(){this.push(69)},e.prototype.resolveMaybeLocal=function(e){this.push(70,this.string(e))},e.prototype.debugger=function(e,t){this.push(71,this.constants.other(e),this.constants.array(t))},e.prototype.dynamicContent=function(e){this.push(26,this.other(e))},e.prototype.cautiousAppend=function(){this.dynamicContent(new Pf)},e.prototype.trustingAppend=function(){this.dynamicContent(new Lf)},e.prototype.text=function(e){this.push(24,this.constants.string(e))},e.prototype.openPrimitiveElement=function(e){this.push(27,this.constants.string(e))},e.prototype.openElementWithOperations=function(e){this.push(28,this.constants.string(e))},e.prototype.openDynamicElement=function(){this.push(29)},e.prototype.flushElement=function(){this.push(33)},e.prototype.closeElement=function(){this.push(34)},e.prototype.staticAttr=function(e,t,f){var n=this.constants.string(e),i=t?this.constants.string(t):0,a=this.constants.string(f);this.push(30,n,a,i)},e.prototype.dynamicAttrNS=function(e,t,f){var n=this.constants.string(e),i=this.constants.string(t);this.push(32,n,i,!0===f?1:0)},e.prototype.dynamicAttr=function(e,t){var f=this.constants.string(e);this.push(31,f,!0===t?1:0)},e.prototype.comment=function(e){var t=this.constants.string(e);this.push(25,t)},e.prototype.modifier=function(e){this.push(35,this.other(e))},e.prototype.putIterator=function(){this.push(54)},e.prototype.enterList=function(e){this.reserve(52),this.labels.target(this.pos,52,e)},e.prototype.exitList=function(){this.push(53)},e.prototype.iterate=function(e){this.reserve(55),this.labels.target(this.pos,55,e)},e.prototype.setVariable=function(e){this.push(4,e)},e.prototype.getVariable=function(e){this.push(5,e)},e.prototype.getProperty=function(e){this.push(6,this.string(e))},e.prototype.getBlock=function(e){this.push(8,e)},e.prototype.hasBlock=function(e){this.push(9,e)},e.prototype.hasBlockParams=function(e){this.push(10,e)},e.prototype.concat=function(e){this.push(11,e)},e.prototype.function=function(e){this.push(2,this.func(e))},e.prototype.load=function(e){this.push(17,e)},e.prototype.fetch=function(e){this.push(18,e)},e.prototype.dup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:At.sp,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.push(15,e,t)},e.prototype.pop=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.push(16,e)},e.prototype.pushRemoteElement=function(){this.push(36)},e.prototype.popRemoteElement=function(){this.push(37)},e.prototype.label=function(e){this.labels.label(e,this.nextPos)},e.prototype.pushRootScope=function(e,t){this.push(19,e,t?1:0)},e.prototype.pushChildScope=function(){this.push(20)},e.prototype.popScope=function(){this.push(21)},e.prototype.returnTo=function(e){this.reserve(23),this.labels.target(this.pos,23,e)},e.prototype.pushDynamicScope=function(){this.push(39)},e.prototype.popDynamicScope=function(){this.push(40)},e.prototype.pushImmediate=function(e){this.push(13,this.other(e))},e.prototype.primitive=function(e){var t=0,f=void 0;switch(typeof e){case"number":e%1==0&&e>0?f=e:(f=this.float(e),t=1);break;case"string":f=this.string(e),t=2;break;case"boolean":f=0|e,t=3;break;case"object":f=2,t=3;break;case"undefined":f=3,t=3;break;default:throw new Error("Invalid primitive passed to pushPrimitive")}this.push(14,t<<30|f)},e.prototype.helper=function(e){this.push(1,this.func(e))},e.prototype.pushBlock=function(e){this.push(7,this.block(e))},e.prototype.bindDynamicScope=function(e){this.push(38,this.names(e))},e.prototype.enter=function(e){this.push(49,e)},e.prototype.exit=function(){this.push(50)},e.prototype.return=function(){this.push(22)},e.prototype.pushFrame=function(){this.push(47)},e.prototype.popFrame=function(){this.push(48)},e.prototype.compileDynamicBlock=function(){this.push(41)},e.prototype.invokeDynamic=function(e){this.push(43,this.other(e))},e.prototype.invokeStatic=function(e){var t,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.symbolTable.parameters,i=n.length,a=Math.min(f,i);if(this.pushFrame(),a)for(this.pushChildScope(),t=0;t<a;t++)this.dup(At.fp,f-t),this.setVariable(n[t]);var r=this.constants.block(e);this.push(42,r),a&&this.popScope(),this.popFrame()},e.prototype.test=function(e){var t=void 0;if("const"===e)t=Yt;else if("simple"===e)t=Kt;else if("environment"===e)t=Jt;else{if("function"!=typeof e)throw new Error("unreachable");t=e}var f=this.constants.function(t);this.push(51,f)},e.prototype.jump=function(e){this.reserve(44),this.labels.target(this.pos,44,e)},e.prototype.jumpIf=function(e){this.reserve(45),this.labels.target(this.pos,45,e)},e.prototype.jumpUnless=function(e){this.reserve(46),this.labels.target(this.pos,46,e)},e.prototype.string=function(e){return this.constants.string(e)},e.prototype.float=function(e){return this.constants.float(e)},e.prototype.names=function(e){var t,f,n=[];for(t=0;t<e.length;t++)f=e[t],n[t]=this.constants.string(f);return this.constants.array(n)},e.prototype.symbols=function(e){return this.constants.array(e)},e.prototype.other=function(e){return this.constants.other(e)},e.prototype.block=function(e){return e?this.constants.block(e):0},e.prototype.func=function(e){return this.constants.function(e)},Jf(e,[{key:"pos",get:function(){return(0,t.typePos)(this.heap.size())}},{key:"nextPos",get:function(){return this.heap.size()}},{key:"labels",get:function(){return this.labelsStack.current}}]),e}()),en=n.Ops,tn="&attrs",fn=function(){function e(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;ge(this,e),this.offset=f,this.names=(0,t.dict)(),this.funcs=[]}return e.prototype.add=function(e,t){this.funcs.push(t),this.names[e]=this.funcs.length-1},e.prototype.compile=function(e,f){var n=e[this.offset],i=this.names[n],a=this.funcs[i];(0,t.assert)(!!a,"expected an implementation for "+(0===this.offset?en[e[0]]:Uf[e[1]])),a(e,f)},e}(),nn=new fn,an=new fn(1);nn.add(en.Text,function(e,t){t.text(e[1])}),nn.add(en.Comment,function(e,t){t.comment(e[1])}),nn.add(en.CloseElement,function(e,t){t.closeElement()}),nn.add(en.FlushElement,function(e,t){t.flushElement()}),nn.add(en.Modifier,function(e,t){var f=t.env,n=t.meta,i=e[1],a=e[2],r=e[3];if(!f.hasModifier(i,n.templateMeta))throw new Error("Compile Error "+i+" is not a modifier: Helpers may not be used in the element form.");t.compileArgs(a,r,!0),t.modifier(f.lookupModifier(i,n.templateMeta))}),nn.add(en.StaticAttr,function(e,t){var f=e[1],n=e[2],i=e[3];t.staticAttr(f,i,n)}),nn.add(en.DynamicAttr,function(e,t){ye(e,!1,t)}),nn.add(en.TrustingAttr,function(e,t){ye(e,!0,t)}),nn.add(en.OpenElement,function(e,t){t.openPrimitiveElement(e[1])}),an.add(Uf.OpenComponentElement,function(e,t){t.pushComponentOperations(),t.openElementWithOperations(e[2])}),an.add(Uf.DidCreateElement,function(e,t){t.didCreateElement(At.s0)}),an.add(Uf.DidRenderLayout,function(e,t){t.didRenderLayout(At.s0)}),nn.add(en.Append,function(e,t){var f=e[1],n=e[2];if(!0!==(t.env.macros().inlines.compile(e,t)||f)){var i=un.isGet(f),a=un.isMaybeLocal(f);n?t.guardedAppend(f,!0):i||a?t.guardedAppend(f,!1):(be(f,t),t.cautiousAppend())}}),nn.add(en.Block,function(e,t){var f=e[1],n=e[2],i=e[3],a=e[4],r=e[5],o=t.template(a),s=t.template(r),d=o&&o.scan(),c=s&&s.scan();t.env.macros().blocks.compile(f,n,i,d,c,t)});var rn=function(){function e(t){ge(this,e),this.attrs=t}return e.prototype.invoke=function(e,f){var n,i,a,r=f.symbolTable,o=r.symbols,s=r.hasEval,d=e.stack,c=e.pushRootScope(o.length+1,!0);c.bindSelf(d.pop()),c.bindBlock(o.indexOf(tn)+1,this.attrs);var u=null;s&&(o.indexOf("$eval"),u=(0,t.dict)());var l=d.pop();for(n=l.length-1;n>=0;n--)i=o.indexOf(l[n]),a=d.pop(),-1!==i&&c.bindSymbol(i+1,a),s&&(u[l[n]]=a);var _=d.pop();(0,t.assert)("number"==typeof _,"[BUG] Incorrect value of positional argument count found during invoke-dynamic-layout."),d.pop(_);var m=o.indexOf("&inverse"),h=d.pop();-1!==m&&c.bindBlock(m+1,h),u&&(u["&inverse"]=h);var p=o.indexOf("&default"),g=d.pop();-1!==p&&c.bindBlock(p+1,g),u&&(u["&default"]=g),u&&c.bindEvalScope(u),e.pushFrame(),e.call(f.handle)},e.prototype.toJSON=function(){return{GlimmerDebug:"<invoke-dynamic-layout>"}},e}();nn.add(en.Component,function(e,f){var n,i,a,r,o,s,d=e[1],c=e[2],u=e[3],l=e[4];if(f.env.hasComponentDefinition(d,f.meta.templateMeta))n=f.template(l),i=new Kf(f.meta,c,t.EMPTY_ARRAY),a=f.env.getComponentDefinition(d,f.meta.templateMeta),f.pushComponentManager(a),f.invokeComponent(i,null,u,n&&n.scan());else{if(l&&l.parameters.length)throw new Error("Compile Error: Cannot find component "+d);for(f.openPrimitiveElement(d),r=0;r<c.length;r++)nn.compile(c[r],f);if(f.flushElement(),l)for(o=l.statements,s=0;s<o.length;s++)nn.compile(o[s],f);f.closeElement()}});var on=function(){function e(t,f){ge(this,e),this.outerSymbols=t,this.evalInfo=f}return e.prototype.invoke=function(e,f){var n,i,a,r,o,s,d,c,u=f,l=u.symbolTable.symbols,_=e.scope(),m=e.pushRootScope(l.length,!1);m.bindCallerScope(_.getCallerScope()),m.bindEvalScope(_.getEvalScope()),m.bindSelf(_.getSelf());var h=this.evalInfo,p=this.outerSymbols,g=(0,t.dict)();for(n=0;n<h.length;n++)i=h[n],a=p[i-1],r=_.getSymbol(i),g[a]=r;var y=_.getEvalScope();for(o=0;o<l.length;o++)s=l[o],d=o+1,void 0!==(c=y[s])&&m.bind(d,c);m.bindPartialMap(g),e.pushFrame(),e.call(u.handle)},e}();nn.add(en.Partial,function(e,n){var i=e[1],a=e[2],r=n.meta,o=r.templateMeta,s=r.symbols;n.startLabels(),n.pushFrame(),n.returnTo("END"),be(i,n),n.pushImmediate(1),n.pushImmediate(t.EMPTY_ARRAY),n.pushArgs(!0),n.helper(function(e,t){var n=e.env,i=t.positional.at(0);return(0,f.map)(i,function(e){if("string"==typeof e&&e){if(!n.hasPartial(e,o))throw new Error('Could not find a partial named "'+e+'"');return n.lookupPartial(e,o)}if(e)throw new Error('Could not find a partial named "'+String(e)+'"');return null})}),n.dup(),n.test("simple"),n.enter(2),n.jumpUnless("ELSE"),n.getPartialTemplate(),n.compileDynamicBlock(),n.invokeDynamic(new on(s,a)),n.popScope(),n.popFrame(),n.label("ELSE"),n.exit(),n.return(),n.label("END"),n.popFrame(),n.stopLabels()});var sn=function(){function e(t){ge(this,e),this.callerCount=t}return e.prototype.invoke=function(e,t){var f,n=this.callerCount,i=e.stack;if(!t)return e.pushFrame(),void e.pushCallerScope();var a=t.symbolTable.parameters,r=a?a.length:0,o=Math.min(n,r);e.pushFrame(),e.pushCallerScope(r>0);var s=e.scope();for(f=0;f<o;f++)s.bindSymbol(a[f],i.fromBase(n-f));e.call(t.handle)},e.prototype.toJSON=function(){return{GlimmerDebug:"<invoke-dynamic-yield caller-count="+this.callerCount+">"}},e}();nn.add(en.Yield,function(e,t){var f=e[1],n=ve(e[2],t);t.getBlock(f),t.compileDynamicBlock(),t.invokeDynamic(new sn(n)),t.popScope(),t.popFrame(),n&&t.pop(n)}),nn.add(en.Debugger,function(e,t){var f=e[1];t.debugger(t.meta.symbols,f)}),nn.add(en.ClientSideStatement,function(e,t){an.compile(e,t)});var dn=new fn,cn=new fn(1),un=n.Expressions;dn.add(en.Unknown,function(e,f){var n=e[1];f.env.hasHelper(n,f.meta.templateMeta)?dn.compile([en.Helper,n,t.EMPTY_ARRAY,null],f):f.meta.asPartial?f.resolveMaybeLocal(n):(f.getVariable(0),f.getProperty(n))}),dn.add(en.Concat,function(e,t){var f,n=e[1];for(f=0;f<n.length;f++)be(n[f],t);t.concat(n.length)}),cn.add(Uf.FunctionExpression,function(e,t){t.function(e[2])}),dn.add(en.Helper,function(e,t){var f=t.env,n=t.meta,i=e[1],a=e[2],r=e[3];if(!f.hasHelper(i,n.templateMeta))throw new Error("Compile Error: "+i+" is not a helper");t.compileArgs(a,r,!0),t.helper(f.lookupHelper(i,n.templateMeta))}),dn.add(en.Get,function(e,t){var f,n=e[1],i=e[2];for(t.getVariable(n),f=0;f<i.length;f++)t.getProperty(i[f])}),dn.add(en.MaybeLocal,function(e,t){var f,n,i=e[1];for(t.meta.asPartial?(f=i[0],i=i.slice(1),t.resolveMaybeLocal(f)):t.getVariable(0),n=0;n<i.length;n++)t.getProperty(i[n])}),dn.add(en.Undefined,function(e,t){return t.primitive(void 0)}),dn.add(en.HasBlock,function(e,t){t.hasBlock(e[1])}),dn.add(en.HasBlockParams,function(e,t){t.hasBlockParams(e[1])}),dn.add(en.ClientSideExpression,function(e,t){cn.compile(e,t)});var ln=function(){function e(){ge(this,e),this.names=(0,t.dict)(),this.funcs=[]}return e.prototype.add=function(e,t){this.funcs.push(t),this.names[e]=this.funcs.length-1},e.prototype.addMissing=function(e){this.missing=e},e.prototype.compile=function(e,f,n,i,a,r){var o,s,d=this.names[e];void 0===d?((0,t.assert)(!!this.missing,e+" not found, and no catch-all block handler was registered"),o=this.missing,s=o(e,f,n,i,a,r),(0,t.assert)(!!s,e+" not found, and the catch-all block handler didn't handle it")):(0,this.funcs[d])(f,n,i,a,r)},e}(),_n=new ln,mn=function(){function e(){ge(this,e),this.names=(0,t.dict)(),this.funcs=[]}return e.prototype.add=function(e,t){this.funcs.push(t),this.names[e]=this.funcs.length-1},e.prototype.addMissing=function(e){this.missing=e},e.prototype.compile=function(e,t){var f,n,i,a,r=e[1];if(!Array.isArray(r))return["expr",r];var o=void 0,s=void 0,d=void 0;if(r[0]===en.Helper)o=r[1],s=r[2],d=r[3];else{if(r[0]!==en.Unknown)return["expr",r];o=r[1],s=d=null}var c=this.names[o];return void 0===c&&this.missing?(f=this.missing,!1===(n=f(o,s,d,t))?["expr",r]:n):void 0!==c?(i=this.funcs[c],!1===(a=i(o,s,d,t))?["expr",r]:a):["expr",r]},e}();we(_n,new mn);var hn=function(){function e(t,f){qe(this,e),this.statements=t,this.symbolTable=f,this.compiledStatic=null,this.compiledDynamic=null}return e.prototype.compileStatic=function(e){var t,f,n=this.compiledStatic;return n||((t=xe(this.statements,this.symbolTable.meta,e)).finalize(),f=t.start,n=this.compiledStatic=new Ff(f)),n},e.prototype.compileDynamic=function(e){var t,f=this.compiledDynamic;return f||(t=this.compileStatic(e),f=new zf(t.handle,this.symbolTable)),f},e}(),pn=n.Ops,gn=function(){function e(t,f){Ee(this,e),this.block=t,this.env=f}return e.prototype.scanEntryPoint=function(e){var t=this.block,f=t.statements,n=t.symbols,i=t.hasEval;return new hn(f,{meta:e,symbols:n,hasEval:i})},e.prototype.scanBlock=function(e){var f=this.block.statements;return new hn(f,{meta:e,parameters:t.EMPTY_ARRAY})},e.prototype.scanLayout=function(e,t,f){var i,a,r,o=this.block,s=o.statements,d=o.symbols,c=o.hasEval,u=[],l=void 0,_=!1;for(i=0;i<s.length;i++)if(a=s[i],n.Statements.isComponent(a))r=a[1],this.env.hasComponentDefinition(r,e.templateMeta)?void 0===l&&r===f?(l=r,Se(r,d,t,u),Te(a,u)):u.push(a):(void 0!==l?u.push([pn.OpenElement,r]):(l=r,Se(r,d,t,u)),Te(a,u));else if(void 0===l&&n.Statements.isOpenElement(a))l=a[1],_=!0,Se(l,d,t,u);else{if(_)if(n.Statements.isFlushElement(a))_=!1;else if(n.Statements.isModifier(a))throw Error('Found modifier "'+a[1]+'" on the top-level element of "'+f+'". Modifiers cannot be on the top-level element');u.push(a)}return u.push([pn.ClientSideStatement,Uf.DidRenderLayout]),new hn(u,{meta:e,hasEval:c,symbols:d})},e}(),yn=function(){function e(){Me(this,e),this.references=[],this.strings=[],this.expressions=[],this.floats=[],this.arrays=[],this.blocks=[],this.functions=[],this.others=[]}return e.prototype.getReference=function(e){return this.references[e-1]},e.prototype.reference=function(e){var t=this.references.length;return this.references.push(e),t+1},e.prototype.getString=function(e){return this.strings[e-1]},e.prototype.getFloat=function(e){return this.floats[e-1]},e.prototype.float=function(e){return this.floats.push(e)},e.prototype.string=function(e){var t=this.strings.length;return this.strings.push(e),t+1},e.prototype.getExpression=function(e){return this.expressions[e-1]},e.prototype.getArray=function(e){return this.arrays[e-1]},e.prototype.getNames=function(e){var t,f,n=[],i=this.getArray(e);for(t=0;t<i.length;t++)f=i[t],n[t]=this.getString(f);return n},e.prototype.array=function(e){var t=this.arrays.length;return this.arrays.push(e),t+1},e.prototype.getBlock=function(e){return this.blocks[e-1]},e.prototype.block=function(e){var t=this.blocks.length;return this.blocks.push(e),t+1},e.prototype.getFunction=function(e){return this.functions[e-1]},e.prototype.function=function(e){var t=this.functions.length;return this.functions.push(e),t+1},e.prototype.getOther=function(e){return this.others[e-1]},e.prototype.other=function(e){var t=this.others.length;return this.others.push(e),t+1},e}(),bn=["javascript:","vbscript:"],vn=["A","BODY","LINK","IMG","IFRAME","BASE","FORM"],wn=["EMBED"],kn=["href","src","background","action"],xn=["src"],qn={BUTTON:{type:!0,form:!0},INPUT:{type:!0,form:!0,autocorrect:!0,list:!0},SELECT:{form:!0},OPTION:{form:!0},TEXTAREA:{form:!0},LABEL:{form:!0},FIELDSET:{form:!0},LEGEND:{form:!0},OBJECT:{form:!0}},En={colgroup:{depth:2,before:"<table><colgroup>",after:"</colgroup></table>"},table:{depth:1,before:"<table>",after:"</table>"},tbody:{depth:2,before:"<table><tbody>",after:"</tbody></table>"},tfoot:{depth:2,before:"<table><tfoot>",after:"</tfoot></table>"},thead:{depth:2,before:"<table><thead>",after:"</thead></table>"},tr:{depth:3,before:"<table><tbody><tr>",after:"</tr></tbody></table>"}},Tn="http://www.w3.org/2000/svg",Sn={foreignObject:1,desc:1,title:1},Mn=Object.create(null);["b","big","blockquote","body","br","center","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","head","hr","i","img","li","listing","main","meta","nobr","ol","p","pre","ruby","s","small","span","strong","strike","sub","sup","table","tt","u","ul","var"].forEach(function(e){return Mn[e]=1});var Cn,An=/[\t-\r \xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/,On="undefined"==typeof document?null:document,Rn=function(){function e(t){at(this,e),this.document=t,this.setupUselessElement()}return e.prototype.setupUselessElement=function(){this.uselessElement=this.document.createElement("div")},e.prototype.createElement=function(e,t){var f=void 0,n=void 0;if(t?(f=t.namespaceURI===Tn||"svg"===e,n=Sn[t.tagName]):(f="svg"===e,n=!1),f&&!n){if(Mn[e])throw new Error("Cannot create a "+e+" inside an SVG context");return this.document.createElementNS(Tn,e)}return this.document.createElement(e)},e.prototype.insertBefore=function(e,t,f){e.insertBefore(t,f)},e.prototype.insertHTMLBefore=function(e,t,f){return ot(this.uselessElement,e,t,f)},e.prototype.createTextNode=function(e){return this.document.createTextNode(e)},e.prototype.createComment=function(e){return this.document.createComment(e)},e}();!function(e){var t=function(e){function t(){return at(this,t),nt(this,e.apply(this,arguments))}return it(t,e),t.prototype.createElementNS=function(e,t){return this.document.createElementNS(e,t)},t.prototype.setAttribute=function(e,t,f,n){n?e.setAttributeNS(n,t,f):e.setAttribute(t,f)},t}(Rn);e.TreeConstruction=t;var f=t;f=et(On,f),f=Ue(On,f),f=We(On,f,Tn),e.DOMTreeConstruction=f}(Cn||(Cn={}));var Pn=function(e){function t(f){at(this,t);var n=nt(this,e.call(this,f));return n.document=f,n.namespace=null,n}return it(t,e),t.prototype.setAttribute=function(e,t,f){e.setAttribute(t,f)},t.prototype.setAttributeNS=function(e,t,f,n){e.setAttributeNS(t,f,n)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,f){e.removeAttributeNS(t,f)},t.prototype.insertNodeBefore=function(e,t,f){var n,i;return st(t)?(n=t.firstChild,i=t.lastChild,this.insertBefore(e,t,f),new mf(e,n,i)):(this.insertBefore(e,t,f),new hf(e,t))},t.prototype.insertTextBefore=function(e,t,f){var n=this.createTextNode(f);return this.insertBefore(e,n,t),n},t.prototype.insertBefore=function(e,t,f){e.insertBefore(t,f)},t.prototype.insertAfter=function(e,t,f){this.insertBefore(e,t,f.nextSibling)},t}(Rn),Nn=Pn;Nn=function(e,t){return e&&tt(e)?function(e){function t(f){Je(this,t);var n=Qe(this,e.call(this,f));return n.uselessComment=f.createComment(""),n}return Ze(t,e),t.prototype.insertHTMLBefore=function(t,f,n){if(null===n)return e.prototype.insertHTMLBefore.call(this,t,f,n);var i=!1,a=f?f.previousSibling:t.lastChild;a&&a instanceof Text&&(i=!0,t.insertBefore(this.uselessComment,f));var r=e.prototype.insertHTMLBefore.call(this,t,f,n);return i&&t.removeChild(this.uselessComment),r},t}(t):t}(On,Nn),Nn=function(e,t){if(!e)return t;if(!ze(e))return t;var f=e.createElement("div");return function(e){function t(){return $e(this,t),De(this,e.apply(this,arguments))}return Ie(t,e),t.prototype.insertHTMLBefore=function(t,n,i){if(null===i||""===i)return e.prototype.insertHTMLBefore.call(this,t,n,i);var a=t.tagName.toLowerCase(),r=En[a];return void 0===r?e.prototype.insertHTMLBefore.call(this,t,n,i):Fe(t,r,f,i,n)},t}(t)}(On,Nn);var Ln,jn=Nn=function(e,t,f){if(!e)return t;if(!Ye(e,f))return t;var n=e.createElement("div");return function(e){function t(){return He(this,t),Ve(this,e.apply(this,arguments))}return Ge(t,e),t.prototype.insertHTMLBefore=function(t,i,a){return null===a||""===a?e.prototype.insertHTMLBefore.call(this,t,i,a):t.namespaceURI!==f?e.prototype.insertHTMLBefore.call(this,t,i,a):Xe(t,n,a,i)},t}(t)}(On,Nn,Tn),$n=Cn.DOMTreeConstruction,Dn=function(){function e(t){lt(this,e),this.attr=t}return e.prototype.setAttribute=function(e,t,f,n){var i=e.getAppendOperations(),a=pt(f);gt(a)||i.setAttribute(t,this.attr,a,n)},e.prototype.updateAttribute=function(e,t,f,n){null===f||void 0===f||!1===f?n?e.getDOM().removeAttributeNS(t,n,this.attr):e.getDOM().removeAttribute(t,this.attr):this.setAttribute(e,t,f)},e}(),In=function(e){function t(){return lt(this,t),ct(this,e.apply(this,arguments))}return ut(t,e),t.prototype.setAttribute=function(e,t,f){gt(f)||(t[this.attr]=f)},t.prototype.removeAttribute=function(e,t,f){var n=this.attr;f?e.getDOM().removeAttributeNS(t,f,n):e.getDOM().removeAttribute(t,n)},t.prototype.updateAttribute=function(e,t,f,n){t[this.attr]=f,gt(f)&&this.removeAttribute(e,t,n)},t}(Dn),Un=function(e){function t(){return lt(this,t),ct(this,e.apply(this,arguments))}return ut(t,e),t.prototype.setAttribute=function(t,f,n){e.prototype.setAttribute.call(this,t,f,Pe(t,f,this.attr,n))},t.prototype.updateAttribute=function(t,f,n){e.prototype.updateAttribute.call(this,t,f,Pe(t,f,this.attr,n))},t}(In),Fn=new(function(e){function t(){return lt(this,t),ct(this,e.apply(this,arguments))}return ut(t,e),t.prototype.setAttribute=function(e,t,f){t.value=fe(f)},t.prototype.updateAttribute=function(e,t,f){var n=t,i=n.value,a=fe(f);i!==a&&(n.value=a)},t}(Dn))("value"),zn=new(function(e){function t(){return lt(this,t),ct(this,e.apply(this,arguments))}return ut(t,e),t.prototype.setAttribute=function(e,t,f){null!==f&&void 0!==f&&!1!==f&&(t.selected=!0)},t.prototype.updateAttribute=function(e,t,f){var n=t;n.selected=!!f},t}(In))("selected"),Bn=function(e){function t(){return lt(this,t),ct(this,e.apply(this,arguments))}return ut(t,e),t.prototype.setAttribute=function(t,f,n){e.prototype.setAttribute.call(this,t,f,Pe(t,f,this.attr,n))},t.prototype.updateAttribute=function(t,f,n){e.prototype.updateAttribute.call(this,t,f,Pe(t,f,this.attr,n))},t}(Dn),Hn=function(){function e(e,t){var f,n;for(f=0;f<t.length;f++)n=t[f],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,f,n){return f&&e(t.prototype,f),n&&e(t,n),t}}(),Vn=function(){function e(t,f,n,i){vt(this,e),this.slots=t,this.callerScope=f,this.evalScope=n,this.partialMap=i}return e.root=function(t){var f,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=new Array(n+1);for(f=0;f<=n;f++)i[f]=jt;return new e(i,null,null,null).init({self:t})},e.sized=function(){var t,f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=new Array(f+1);for(t=0;t<=f;t++)n[t]=jt;return new e(n,null,null,null)},e.prototype.init=function(e){var t=e.self;return this.slots[0]=t,this},e.prototype.getSelf=function(){return this.get(0)},e.prototype.getSymbol=function(e){return this.get(e)},e.prototype.getBlock=function(e){return this.get(e)},e.prototype.getEvalScope=function(){return this.evalScope},e.prototype.getPartialMap=function(){return this.partialMap},e.prototype.bind=function(e,t){this.set(e,t)},e.prototype.bindSelf=function(e){this.set(0,e)},e.prototype.bindSymbol=function(e,t){this.set(e,t)},e.prototype.bindBlock=function(e,t){this.set(e,t)},e.prototype.bindEvalScope=function(e){this.evalScope=e},e.prototype.bindPartialMap=function(e){this.partialMap=e},e.prototype.bindCallerScope=function(e){this.callerScope=e},e.prototype.getCallerScope=function(){return this.callerScope},e.prototype.child=function(){return new e(this.slots.slice(),this.callerScope,this.evalScope,this.partialMap)},e.prototype.get=function(e){if(e>=this.slots.length)throw new RangeError("BUG: cannot get $"+e+" from scope; length="+this.slots.length);return this.slots[e]},e.prototype.set=function(e,t){if(e>=this.slots.length)throw new RangeError("BUG: cannot get $"+e+" from scope; length="+this.slots.length);this.slots[e]=t},e}(),Gn=function(){function e(){vt(this,e),this.scheduledInstallManagers=[],this.scheduledInstallModifiers=[],this.scheduledUpdateModifierManagers=[],this.scheduledUpdateModifiers=[],this.createdComponents=[],this.createdManagers=[],this.updatedComponents=[],this.updatedManagers=[],this.destructors=[]}return e.prototype.didCreate=function(e,t){this.createdComponents.push(e),this.createdManagers.push(t)},e.prototype.didUpdate=function(e,t){this.updatedComponents.push(e),this.updatedManagers.push(t)},e.prototype.scheduleInstallModifier=function(e,t){this.scheduledInstallManagers.push(t),this.scheduledInstallModifiers.push(e)},e.prototype.scheduleUpdateModifier=function(e,t){this.scheduledUpdateModifierManagers.push(t),this.scheduledUpdateModifiers.push(e)},e.prototype.didDestroy=function(e){this.destructors.push(e)},e.prototype.commit=function(){var e,t,f,n,i,a,r,o,s,d,c,u=this.createdComponents,l=this.createdManagers;for(e=0;e<u.length;e++)t=u[e],l[e].didCreate(t);var _=this.updatedComponents,m=this.updatedManagers;for(f=0;f<_.length;f++)n=_[f],m[f].didUpdate(n);var h=this.destructors;for(i=0;i<h.length;i++)h[i].destroy();var p=this.scheduledInstallManagers,g=this.scheduledInstallModifiers;for(a=0;a<p.length;a++)r=p[a],o=g[a],r.install(o);var y=this.scheduledUpdateModifierManagers,b=this.scheduledUpdateModifiers;for(s=0;s<y.length;s++)d=y[s],c=b[s],d.update(c)},e}(),Wn=function(){function e(t){vt(this,e),this.heap=t,this.offset=0}return Hn(e,[{key:"type",get:function(){return this.heap.getbyaddr(this.offset)}},{key:"op1",get:function(){return this.heap.getbyaddr(this.offset+1)}},{key:"op2",get:function(){return this.heap.getbyaddr(this.offset+2)}},{key:"op3",get:function(){return this.heap.getbyaddr(this.offset+3)}}]),e}();!function(e){e[e.Allocated=0]="Allocated",e[e.Freed=1]="Freed",e[e.Purged=2]="Purged",e[e.Pointer=3]="Pointer"}(Ln||(Ln={}));var Xn,Yn=function(){function e(){vt(this,e),this.heap=[],this.offset=0,this.handle=0,this.table=[]}return e.prototype.push=function(e){this.heap[this.offset++]=e},e.prototype.getbyaddr=function(e){return this.heap[e]},e.prototype.setbyaddr=function(e,t){this.heap[e]=t},e.prototype.malloc=function(){this.table.push(this.offset,0,0);var e=this.handle;return this.handle+=3,e},e.prototype.finishMalloc=function(e){var t=this.table[e],f=this.offset;this.table[e+1]=f-t},e.prototype.size=function(){return this.offset},e.prototype.getaddr=function(e){return this.table[e]},e.prototype.gethandle=function(e){this.table.push(e,0,Ln.Pointer);var t=this.handle;return this.handle+=3,t},e.prototype.sizeof=function(){return-1},e.prototype.free=function(e){this.table[e+2]=1},e.prototype.compact=function(){var e,t,f,n,i,a=0,r=this.table,o=this.table.length,s=this.heap;for(e=0;e<o;e+=3)if(t=r[e],f=r[e+1],(n=r[e+2])!==Ln.Purged)if(n===Ln.Freed)r[e+2]=2,a+=f;else if(n===Ln.Allocated){for(i=t;i<=e+f;i++)s[i-a]=s[i];r[e]=t-a}else n===Ln.Pointer&&(r[e]=t-a);this.offset=this.offset-a},e}(),Kn=function(){function e(){vt(this,e),this.heap=new Yn,this._opcode=new Wn(this.heap),this.constants=new yn}return e.prototype.opcode=function(e){return this._opcode.offset=e,this._opcode},e}(),Jn=function(){function e(t){var f=t.appendOperations,n=t.updateOperations;vt(this,e),this._macros=null,this._transaction=null,this.program=new Kn,this.appendOperations=f,this.updateOperations=n}return e.prototype.toConditionalReference=function(e){return new Ut(e)},e.prototype.getAppendOperations=function(){return this.appendOperations},e.prototype.getDOM=function(){return this.updateOperations},e.prototype.getIdentity=function(e){return(0,t.ensureGuid)(e)+""},e.prototype.begin=function(){(0,t.assert)(!this._transaction,"a glimmer transaction was begun, but one already exists. You may have a nested transaction"),this._transaction=new Gn},e.prototype.didCreate=function(e,t){this.transaction.didCreate(e,t)},e.prototype.didUpdate=function(e,t){this.transaction.didUpdate(e,t)},e.prototype.scheduleInstallModifier=function(e,t){this.transaction.scheduleInstallModifier(e,t)},e.prototype.scheduleUpdateModifier=function(e,t){this.transaction.scheduleUpdateModifier(e,t)},e.prototype.didDestroy=function(e){this.transaction.didDestroy(e)},e.prototype.commit=function(){var e=this.transaction;this._transaction=null,e.commit()},e.prototype.attributeFor=function(e,t,f,n){return _t(e,t)},e.prototype.macros=function(){var e=this._macros;return e||(this._macros=e=this.populateBuiltins()),e},e.prototype.populateBuiltins=function(){return we()},Hn(e,[{key:"transaction",get:function(){return this._transaction}}]),e}(),Qn=function(){function e(e,t){var f,n;for(f=0;f<t.length;f++)n=t[f],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,f,n){return f&&e(t.prototype,f),n&&e(t,n),t}}(),Zn=function(){function e(f,n){var i=n.alwaysRevalidate,a=void 0!==i&&i;qt(this,e),this.frameStack=new t.Stack,this.env=f,this.constants=f.program.constants,this.dom=f.getDOM(),this.alwaysRevalidate=a}return e.prototype.execute=function(e,t){var f,n=this.frameStack;for(this.try(e,t);!n.isEmpty();)null!==(f=this.frame.nextStatement())?f.evaluate(this):this.frameStack.pop()},e.prototype.goto=function(e){this.frame.goto(e)},e.prototype.try=function(e,t){this.frameStack.push(new ii(this,e,t))},e.prototype.throw=function(){this.frame.handleException(),this.frameStack.pop()},e.prototype.evaluateOpcode=function(e){e.evaluate(this)},Qn(e,[{key:"frame",get:function(){return this.frameStack.current}}]),e}(),ei=function(e){function f(t,n,i,a){qt(this,f);var r=kt(this,e.call(this));r.start=t,r.type="block",r.next=null,r.prev=null;var o=n.env,s=n.scope,d=n.dynamicScope,c=n.stack;return r.children=a,r.env=o,r.scope=s,r.dynamicScope=d,r.stack=c,r.bounds=i,r}return xt(f,e),f.prototype.parentElement=function(){return this.bounds.parentElement()},f.prototype.firstNode=function(){return this.bounds.firstNode()},f.prototype.lastNode=function(){return this.bounds.lastNode()},f.prototype.evaluate=function(e){e.try(this.children,null)},f.prototype.destroy=function(){this.bounds.destroy()},f.prototype.didDestroy=function(){this.env.didDestroy(this.bounds)},f.prototype.toJSON=function(){var e=(0,t.dict)();return e.guid=""+this._guid,{guid:this._guid,type:this.type,details:e,children:this.children.toArray().map(function(e){return e.toJSON()})}},f}(Rt),ti=function(e){function n(t,i,a,r){qt(this,n);var o=kt(this,e.call(this,t,i,a,r));return o.type="try",o.tag=o._tag=f.UpdatableTag.create(f.CONSTANT_TAG),o}return xt(n,e),n.prototype.didInitializeChildren=function(){this._tag.inner.update((0,f.combineSlice)(this.children))},n.prototype.evaluate=function(e){e.try(this.children,this)},n.prototype.handleException=function(){var e=this,f=this.env,n=this.bounds,i=this.children,a=this.scope,r=this.dynamicScope,o=this.start,s=this.stack,d=this.prev,c=this.next;i.clear();var u=bf.resume(f,n,n.reset(f)),l=new si(f,a,r,u),_=new t.LinkedList;l.execute(o,function(t){t.stack=oi.restore(s),t.updatingOpcodeStack.push(_),t.updateWith(e),t.updatingOpcodeStack.push(i)}),this.prev=d,this.next=c},n.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this),f=t.details;return f||(f=t.details={}),e.prototype.toJSON.call(this)},n}(ei),fi=function(){function e(t,f){qt(this,e),this.opcode=t,this.marker=f,this.didInsert=!1,this.didDelete=!1,this.map=t.map,this.updating=t.children}return e.prototype.insert=function(e,f,n,i){var a=this.map,r=this.opcode,o=this.updating,s=null,d=null;i?(d=a[i],s=d.bounds.firstNode()):s=this.marker;var c=r.vmForInsertion(s),u=null,l=r.start;c.execute(l,function(i){a[e]=u=i.iterate(n,f),i.updatingOpcodeStack.push(new t.LinkedList),i.updateWith(u),i.updatingOpcodeStack.push(u.children)}),o.insertBefore(u,d),this.didInsert=!0},e.prototype.retain=function(){},e.prototype.move=function(e,t,f,n){var i=this.map,a=this.updating,r=i[e],o=i[n]||null;n?N(r,o.firstNode()):N(r,this.marker),a.remove(r),a.insertBefore(r,o)},e.prototype.delete=function(e){var t=this.map,f=t[e];f.didDestroy(),L(f),this.updating.remove(f),delete t[e],this.didDelete=!0},e.prototype.done=function(){this.opcode.didInitializeChildren(this.didInsert||this.didDelete)},e}(),ni=function(e){function n(i,a,r,o,s){qt(this,n);var d=kt(this,e.call(this,i,a,r,o));d.type="list-block",d.map=(0,t.dict)(),d.lastIterated=f.INITIAL,d.artifacts=s;var c=d._tag=f.UpdatableTag.create(f.CONSTANT_TAG);return d.tag=(0,f.combine)([s.tag,c]),d}return xt(n,e),n.prototype.didInitializeChildren=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.lastIterated=this.artifacts.tag.value(),e&&this._tag.inner.update((0,f.combineSlice)(this.children))},n.prototype.evaluate=function(t){var n,i,a,r,o=this.artifacts,s=this.lastIterated;o.tag.validate(s)||(n=this.bounds,i=t.dom,a=i.createComment(""),i.insertAfter(n.parentElement(),a,n.lastNode()),r=new fi(this,a),new f.IteratorSynchronizer({target:r,artifacts:o}).sync(),this.parentElement().removeChild(a)),e.prototype.evaluate.call(this,t)},n.prototype.vmForInsertion=function(e){var t=this.env,f=this.scope,n=this.dynamicScope,i=bf.forInitialRender(this.env,this.bounds.parentElement(),e);return new si(t,f,n,i)},n.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this),f=this.map,n=Object.keys(f).map(function(e){return JSON.stringify(e)+": "+f[e]._guid}).join(", "),i=t.details;return i||(i=t.details={}),i.map="{"+n+"}",t},n}(ei),ii=function(){function e(t,f,n){qt(this,e),this.vm=t,this.ops=f,this.exceptionHandler=n,this.vm=t,this.ops=f,this.current=f.head()}return e.prototype.goto=function(e){this.current=e},e.prototype.nextStatement=function(){var e=this.current,t=this.ops;return e&&(this.current=t.nextNode(e)),e},e.prototype.handleException=function(){this.exceptionHandler&&this.exceptionHandler.handleException()},e}(),ai=function(){function e(t,f,n){Et(this,e),this.env=t,this.updating=f,this.bounds=n}return e.prototype.rerender=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{alwaysRevalidate:!1}).alwaysRevalidate,t=void 0!==e&&e,f=this.env,n=this.updating;new Zn(f,{alwaysRevalidate:t}).execute(n,this)},e.prototype.parentElement=function(){return this.bounds.parentElement()},e.prototype.firstNode=function(){return this.bounds.firstNode()},e.prototype.lastNode=function(){return this.bounds.lastNode()},e.prototype.opcodes=function(){return this.updating},e.prototype.handleException=function(){throw"this should never happen"},e.prototype.destroy=function(){this.bounds.destroy(),L(this.bounds)},e}(),ri=function(){function e(e,t){var f,n;for(f=0;f<t.length;f++)n=t[f],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,f,n){return f&&e(t.prototype,f),n&&e(t,n),t}}(),oi=function(){function e(t,f,n){Tt(this,e),this.stack=t,this.fp=f,this.sp=n}return e.empty=function(){return new this([],0,-1)},e.restore=function(e){return new this(e.slice(),0,e.length-1)},e.prototype.isEmpty=function(){return-1===this.sp},e.prototype.push=function(e){this.stack[++this.sp]=e},e.prototype.dup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.sp;this.push(this.stack[e])},e.prototype.pop=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.stack[this.sp];return this.sp-=e,t},e.prototype.peek=function(){return this.stack[this.sp]},e.prototype.fromBase=function(e){return this.stack[this.fp-e]},e.prototype.fromTop=function(e){return this.stack[this.sp-e]},e.prototype.capture=function(e){var t=this.sp+1;return this.stack.slice(t-e,t)},e.prototype.reset=function(){this.stack.length=0},e.prototype.toArray=function(){return this.stack.slice(this.fp,this.sp+1)},e}(),si=function(){function e(f,n,i,a){Tt(this,e),this.env=f,this.elementStack=a,this.dynamicScopeStack=new t.Stack,this.scopeStack=new t.Stack,this.updatingOpcodeStack=new t.Stack,this.cacheGroups=new t.Stack,this.listBlockStack=new t.Stack,this.stack=oi.empty(),this.pc=-1,this.ra=-1,this.s0=null,this.s1=null,this.t0=null,this.t1=null,this.env=f,this.heap=f.program.heap,this.constants=f.program.constants,this.elementStack=a,this.scopeStack.push(n),this.dynamicScopeStack.push(i)}return e.prototype.fetch=function(e){this.stack.push(this[At[e]])},e.prototype.load=function(e){this[At[e]]=this.stack.pop()},e.prototype.fetchValue=function(e){return this[At[e]]},e.prototype.loadValue=function(e,t){this[At[e]]=t},e.prototype.pushFrame=function(){this.stack.push(this.ra),this.stack.push(this.fp),this.fp=this.sp-1},e.prototype.popFrame=function(){this.sp=this.fp-1,this.ra=this.stack.fromBase(0),this.fp=this.stack.fromBase(-1)},e.prototype.goto=function(e){this.pc=(0,t.typePos)(this.pc+e)},e.prototype.call=function(e){var t=this.heap.getaddr(e);this.ra=this.pc,this.pc=t},e.prototype.returnTo=function(e){this.ra=(0,t.typePos)(this.pc+e)},e.prototype.return=function(){this.pc=this.ra},e.initial=function(f,n,i,a,r){var o=new e(f,Vn.root(n,r.symbolTable.symbols.length),i,a);return o.pc=o.heap.getaddr(r.handle),o.updatingOpcodeStack.push(new t.LinkedList),o},e.prototype.capture=function(e){return{dynamicScope:this.dynamicScope(),env:this.env,scope:this.scope(),stack:this.stack.capture(e)}},e.prototype.beginCacheGroup=function(){this.cacheGroups.push(this.updating().tail())},e.prototype.commitCacheGroup=function(){var e=new tf("END"),n=this.updating(),i=this.cacheGroups.pop(),a=i?n.nextNode(i):n.head(),r=n.tail(),o=(0,f.combineSlice)(new t.ListSlice(a,r)),s=new Zt(o,e);n.insertBefore(s,a),n.append(new ef(s)),n.append(e)},e.prototype.enter=function(e){var f=new t.LinkedList,n=this.capture(e),i=this.elements().pushUpdatableBlock(),a=new ti(this.heap.gethandle(this.pc),n,i,f);this.didEnter(a)},e.prototype.iterate=function(e,f){var n=this.stack;n.push(f),n.push(e);var i=this.capture(2),a=this.elements().pushUpdatableBlock();return new ti(this.heap.gethandle(this.pc),i,a,new t.LinkedList)},e.prototype.enterItem=function(e,t){this.listBlock().map[e]=t,this.didEnter(t)},e.prototype.enterList=function(e){var f=new t.LinkedList,n=this.capture(0),i=this.elements().pushBlockList(f),a=this.stack.peek().artifacts,r=this.heap.gethandle((0,t.typePos)(this.pc+e)),o=new ni(r,n,i,f,a);this.listBlockStack.push(o),this.didEnter(o)},e.prototype.didEnter=function(e){this.updateWith(e),this.updatingOpcodeStack.push(e.children)},e.prototype.exit=function(){this.elements().popBlock(),this.updatingOpcodeStack.pop(),this.updating().tail().didInitializeChildren()},e.prototype.exitList=function(){this.exit(),this.listBlockStack.pop()},e.prototype.updateWith=function(e){this.updating().append(e)},e.prototype.listBlock=function(){return this.listBlockStack.current},e.prototype.updating=function(){return this.updatingOpcodeStack.current},e.prototype.elements=function(){return this.elementStack},e.prototype.scope=function(){return this.scopeStack.current},e.prototype.dynamicScope=function(){return this.dynamicScopeStack.current},e.prototype.pushChildScope=function(){this.scopeStack.push(this.scope().child())},e.prototype.pushCallerScope=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.scope().getCallerScope();this.scopeStack.push(e?t.child():t)},e.prototype.pushDynamicScope=function(){var e=this.dynamicScope().child();return this.dynamicScopeStack.push(e),e},e.prototype.pushRootScope=function(e,t){var f=Vn.sized(e);return t&&f.bindCallerScope(this.scope()),this.scopeStack.push(f),f},e.prototype.popScope=function(){this.scopeStack.pop()},e.prototype.popDynamicScope=function(){this.dynamicScopeStack.pop()},e.prototype.newDestroyable=function(e){this.elements().newDestroyable(e)},e.prototype.getSelf=function(){return this.scope().getSelf()},e.prototype.referenceForSymbol=function(e){return this.scope().getSymbol(e)},e.prototype.execute=function(e,t){this.pc=this.heap.getaddr(e),t&&t(this);for(var f=void 0;!(f=this.next()).done;);return f.value},e.prototype.next=function(){var e=this.env,t=this.updatingOpcodeStack,f=this.elementStack,n=this.nextStatement(e),i=void 0;return null!==n?(Ot.evaluate(this,n,n.type),i={done:!1,value:null}):(this.stack.reset(),i={done:!0,value:new ai(e,t.pop(),f.popBlock())}),i},e.prototype.nextStatement=function(e){var t=this.pc;if(-1===t)return null;var f=e.program;return this.pc+=4,f.opcode(t)},e.prototype.evaluateOpcode=function(e){Ot.evaluate(this,e,e.type)},e.prototype.bindDynamicScope=function(e){var t,f,n=this.dynamicScope();for(t=e.length-1;t>=0;t--)f=this.constants.getString(e[t]),n.set(f,this.stack.pop())},ri(e,[{key:"fp",get:function(){return this.stack.fp},set:function(e){this.stack.fp=e}},{key:"sp",get:function(){return this.stack.sp},set:function(e){this.stack.sp=e}}]),e}(),di=function(){function e(t){St(this,e),this.vm=t}return e.prototype.next=function(){return this.vm.next()},e}(),ci=0,ui=function(){function e(t,f,n,i){St(this,e),this.id=t,this.meta=f,this.env=n,this.entryPoint=null,this.layout=null,this.partial=null,this.block=null,this.scanner=new gn(i,n),this.symbols=i.symbols,this.hasEval=i.hasEval}return e.prototype.render=function(e,t,f){var n=this.env,i=bf.forInitialRender(n,t,null),a=this.asEntryPoint().compileDynamic(n),r=si.initial(n,e,f,i,a);return new di(r)},e.prototype.asEntryPoint=function(){return this.entryPoint||(this.entryPoint=this.scanner.scanEntryPoint(this.compilationMeta())),this.entryPoint},e.prototype.asLayout=function(e,f){return this.layout||(this.layout=this.scanner.scanLayout(this.compilationMeta(),f||t.EMPTY_ARRAY,e)),this.layout},e.prototype.asPartial=function(){return this.partial||(this.partial=this.scanner.scanEntryPoint(this.compilationMeta(!0))),this.partial},e.prototype.asBlock=function(){return this.block||(this.block=this.scanner.scanBlock(this.compilationMeta())),this.block},e.prototype.compilationMeta=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{templateMeta:this.meta,symbols:this.symbols,asPartial:e}},e}(),li=function(){function e(t,n){Mt(this,e),this.scope=t,this.nameRef=n;var i=this.varTag=f.UpdatableTag.create(f.CONSTANT_TAG);this.tag=(0,f.combine)([n.tag,i])}return e.prototype.value=function(){return this.getVar().value()},e.prototype.get=function(e){return this.getVar().get(e)},e.prototype.getVar=function(){var e=String(this.nameRef.value()),t=this.scope.get(e);return this.varTag.inner.update(t.tag),t},e}();!function(e){e[e.Element=0]="Element",e[e.Attribute=1]="Attribute",e[e.Text=2]="Text",e[e.CdataSection=3]="CdataSection",e[e.EntityReference=4]="EntityReference",e[e.Entity=5]="Entity",e[e.ProcessingInstruction=6]="ProcessingInstruction",e[e.Comment=7]="Comment",e[e.Document=8]="Document",e[e.DocumentType=9]="DocumentType",e[e.DocumentFragment=10]="DocumentFragment",e[e.Notation=11]="Notation"}(Xn||(Xn={}));var _i=Object.freeze({get NodeType(){return Xn}});e.Simple=_i,e.templateFactory=function(e){var f=e.id,n=e.meta,i=e.block,a=void 0,r=f||"client-"+ci++;return{id:r,meta:n,create:function(e,f){var o=f?(0,t.assign)({},f,n):n;return a||(a=JSON.parse(i)),new ui(r,o,e,a)}}},e.NULL_REFERENCE=$t,e.UNDEFINED_REFERENCE=jt,e.PrimitiveReference=Pt,e.ConditionalReference=Ut,e.OpcodeBuilderDSL=Zf,e.compileLayout=function(e,t){var f=new Hf(t);return e.compile(f),f.compile()},e.CompiledStaticTemplate=Ff,e.CompiledDynamicTemplate=zf,e.IAttributeManager=Dn,e.AttributeManager=Dn,e.PropertyManager=In,e.INPUT_VALUE_PROPERTY_MANAGER=Fn,e.defaultManagers=_t,e.defaultAttributeManagers=ht,e.defaultPropertyManagers=mt,e.readDOMAttr=function(e,t){var f=e.namespaceURI===Tn,n=Ne(e,t),i=n.type,a=n.normalized;return f?e.getAttribute(a):"attr"===i?e.getAttribute(a):e[a]},e.Register=At,e.debugSlice=function(){},e.normalizeTextValue=fe,e.setDebuggerCallback=function(e){$f=e},e.resetDebuggerCallback=function(){$f=re},e.getDynamicVar=function(e,t){var f=e.dynamicScope(),n=t.positional.at(0);return new li(f,n)},e.BlockMacros=ln,e.InlineMacros=mn,e.compileList=ve,e.compileExpression=be,e.UpdatingVM=Zn,e.RenderResult=ai,e.isSafeString=G,e.Scope=Vn,e.Environment=Jn,e.PartialDefinition=function e(t,f){Ct(this,e),this.name=t,this.template=f},e.ComponentDefinition=function e(t,f,n){U(this,e),this[qf]=!0,this.name=t,this.manager=f,this.ComponentClass=n},e.isComponentDefinition=F,e.DOMChanges=jn,e.IDOMChanges=Pn,e.DOMTreeConstruction=$n,e.isWhitespace=function(e){return An.test(e)},e.insertHTMLBefore=ot,e.ElementStack=bf,e.ConcreteBounds=mf}),e("@glimmer/util",["exports"],function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e){return e._guid=++b}function n(e){return e._guid||f(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(){}function r(){return new a}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s,d="http://www.w3.org/1999/xlink",c="http://www.w3.org/XML/1998/namespace",u="http://www.w3.org/2000/xmlns/",l={"xlink:actuate":d,"xlink:arcrole":d,"xlink:href":d,"xlink:role":d,"xlink:show":d,"xlink:title":d,"xlink:type":d,"xml:base":c,"xml:lang":c,"xml:space":c,xmlns:u,"xmlns:xlink":u};!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Warn=2]="Warn",e[e.Error=3]="Error"}(s||(e.LogLevel=s={}));var _=function(){function e(){t(this,e)}return e.prototype.log=function(){},e.prototype.warn=function(){},e.prototype.error=function(){},e.prototype.trace=function(){},e}(),m=void 0,h=function(){function e(f){var n=f.console,i=f.level;t(this,e),this.f=m,this.force=m,this.console=n,this.level=i}return e.prototype.skipped=function(e){return e<this.level},e.prototype.trace=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).stackTrace,f=void 0!==t&&t;this.skipped(s.Trace)||(this.console.log(e),f&&this.console.trace())},e.prototype.debug=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).stackTrace,f=void 0!==t&&t;this.skipped(s.Debug)||(this.console.log(e),f&&this.console.trace())},e.prototype.warn=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).stackTrace,f=void 0!==t&&t;this.skipped(s.Warn)||(this.console.warn(e),f&&this.console.trace())},e.prototype.error=function(e){this.skipped(s.Error)||this.console.error(e)},e}(),p="undefined"==typeof console?new _:console;m=new h({console:p,level:s.Trace});var g=new h({console:p,level:s.Debug}),y=Object.keys,b=0,v=Object.create(null,{constructor:{value:void 0,enumerable:!1,writable:!0}});a.prototype=v;var w=function(){function e(){i(this,e),this.dict=r()}return e.prototype.add=function(e){return"string"==typeof e?this.dict[e]=e:this.dict[n(e)]=e,this},e.prototype.delete=function(e){"string"==typeof e?delete this.dict[e]:e._guid&&delete this.dict[e._guid]},e.prototype.forEach=function(e){var t,f=this.dict,n=Object.keys(f);for(t=0;n.length;t++)e(f[n[t]])},e.prototype.toArray=function(){return Object.keys(this.dict)},e}(),k=function(){function e(){i(this,e),this.stack=[],this.current=null}return e.prototype.toArray=function(){return this.stack},e.prototype.push=function(e){this.current=e,this.stack.push(e)},e.prototype.pop=function(){var e=this.stack.pop(),t=this.stack.length;return this.current=0===t?null:this.stack[t-1],void 0===e?null:e},e.prototype.isEmpty=function(){return 0===this.stack.length},e}(),x=function(){function e(){o(this,e),this.clear()}return e.fromSlice=function(t){var f=new e;return t.forEachNode(function(e){return f.append(e.clone())}),f},e.prototype.head=function(){return this._head},e.prototype.tail=function(){return this._tail},e.prototype.clear=function(){this._head=this._tail=null},e.prototype.isEmpty=function(){return null===this._head},e.prototype.toArray=function(){var e=[];return this.forEachNode(function(t){return e.push(t)}),e},e.prototype.splice=function(e,t,f){var n=void 0;null===f?(n=this._tail,this._tail=t):(n=f.prev,t.next=f,f.prev=t),n&&(n.next=e,e.prev=n)},e.prototype.nextNode=function(e){return e.next},e.prototype.prevNode=function(e){return e.prev},e.prototype.forEachNode=function(e){for(var t=this._head;null!==t;)e(t),t=t.next},e.prototype.contains=function(e){for(var t=this._head;null!==t;){if(t===e)return!0;t=t.next}return!1},e.prototype.insertBefore=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null===t?this.append(e):(t.prev?t.prev.next=e:this._head=e,e.prev=t.prev,e.next=t,t.prev=e,e)},e.prototype.append=function(e){var t=this._tail;return t?(t.next=e,e.prev=t,e.next=null):this._head=e,this._tail=e},e.prototype.pop=function(){return this._tail?this.remove(this._tail):null},e.prototype.prepend=function(e){return this._head?this.insertBefore(e,this._head):this._head=this._tail=e},e.prototype.remove=function(e){return e.prev?e.prev.next=e.next:this._head=e.next,e.next?e.next.prev=e.prev:this._tail=e.prev,e},e}(),q=function(){function e(t,f){o(this,e),this._head=t,this._tail=f}return e.toList=function(e){var t=new x;return e.forEachNode(function(e){return t.append(e.clone())}),t},e.prototype.forEachNode=function(e){for(var t=this._head;null!==t;)e(t),t=this.nextNode(t)},e.prototype.contains=function(e){for(var t=this._head;null!==t;){if(t===e)return!0;t=t.next}return!1},e.prototype.head=function(){return this._head},e.prototype.tail=function(){return this._tail},e.prototype.toArray=function(){var e=[];return this.forEachNode(function(t){return e.push(t)}),e},e.prototype.nextNode=function(e){return e===this._tail?null:e.next},e.prototype.prevNode=function(e){return e===this._head?null:e.prev},e.prototype.isEmpty=function(){return!1},e}(),E=new q(null,null),T=function(){if(!("function"==typeof WeakMap))return!1;var e=new WeakMap;return"[object WeakMap]"===Object.prototype.toString.call(e)}(),S=void 0,M=S="undefined"!=typeof Uint32Array?Uint32Array:Array,C=T?Object.freeze([]):[];e.getAttrNamespace=function(e){return l[e]||null},e.assert=function(e,t){if(!e)throw new Error(t||"assertion failure")},e.LOGGER=g,e.Logger=h,e.LogLevel=s,e.assign=function(e){var t,f,n,i,a;for(t=1;t<arguments.length;t++)if(null!==(f=arguments[t])&&"object"==typeof f)for(n=y(f),i=0;i<n.length;i++)a=n[i],e[a]=f[a];return e},e.fillNulls=function(e){var t,f=new Array(e);for(t=0;t<e;t++)f[t]=null;return f},e.ensureGuid=n,e.initializeGuid=f,e.Stack=k,e.DictSet=w,e.dict=r,e.EMPTY_SLICE=E,e.LinkedList=x,e.ListNode=function e(t){o(this,e),this.next=null,this.prev=null,this.value=t},e.ListSlice=q,e.A=M,e.EMPTY_ARRAY=C,e.HAS_NATIVE_WEAKMAP=T,e.unwrap=function(e){if(null===e||void 0===e)throw new Error("Expected value to be present");return e},e.expect=function(e,t){if(null===e||void 0===e)throw new Error(t);return e},e.unreachable=function(){return new Error("unreachable")},e.typePos=function(e){return e-4}}),e("@glimmer/wire-format",["exports"],function(e){"use strict";function t(e){return function(t){return Array.isArray(t)&&t[0]===e}}var f;!function(e){e[e.Text=0]="Text",e[e.Append=1]="Append",e[e.Comment=2]="Comment",e[e.Modifier=3]="Modifier",e[e.Block=4]="Block",e[e.Component=5]="Component",e[e.OpenElement=6]="OpenElement",e[e.FlushElement=7]="FlushElement",e[e.CloseElement=8]="CloseElement",e[e.StaticAttr=9]="StaticAttr",e[e.DynamicAttr=10]="DynamicAttr",e[e.Yield=11]="Yield",e[e.Partial=12]="Partial",e[e.DynamicArg=13]="DynamicArg",e[e.StaticArg=14]="StaticArg",e[e.TrustingAttr=15]="TrustingAttr",e[e.Debugger=16]="Debugger",e[e.ClientSideStatement=17]="ClientSideStatement",e[e.Unknown=18]="Unknown",e[e.Get=19]="Get",e[e.MaybeLocal=20]="MaybeLocal",e[e.FixThisBeforeWeMerge=21]="FixThisBeforeWeMerge",e[e.HasBlock=22]="HasBlock",e[e.HasBlockParams=23]="HasBlockParams",e[e.Undefined=24]="Undefined",e[e.Helper=25]="Helper",e[e.Concat=26]="Concat",e[e.ClientSideExpression=27]="ClientSideExpression"}(f||(e.Ops=f={}));var n;!function(e){e.isUnknown=t(f.Unknown),e.isGet=t(f.Get),e.isConcat=t(f.Concat),e.isHelper=t(f.Helper),e.isHasBlock=t(f.HasBlock),e.isHasBlockParams=t(f.HasBlockParams),e.isUndefined=t(f.Undefined),e.isClientSide=t(f.ClientSideExpression),e.isMaybeLocal=t(f.MaybeLocal),e.isPrimitiveValue=function(e){return null===e||"object"!=typeof e}}(n||(e.Expressions=n={}));var i;(function(e){function n(e){return e[0]===f.StaticAttr||e[0]===f.DynamicAttr||e[0]===f.TrustingAttr}function i(e){return e[0]===f.StaticArg||e[0]===f.DynamicArg}e.isText=t(f.Text),e.isAppend=t(f.Append),e.isComment=t(f.Comment),e.isModifier=t(f.Modifier),e.isBlock=t(f.Block),e.isComponent=t(f.Component),e.isOpenElement=t(f.OpenElement),e.isFlushElement=t(f.FlushElement),e.isCloseElement=t(f.CloseElement),e.isStaticAttr=t(f.StaticAttr),e.isDynamicAttr=t(f.DynamicAttr),e.isYield=t(f.Yield),e.isPartial=t(f.Partial),e.isDynamicArg=t(f.DynamicArg),e.isStaticArg=t(f.StaticArg),e.isTrustingAttr=t(f.TrustingAttr),e.isDebugger=t(f.Debugger),e.isClientSide=t(f.ClientSideStatement),e.isAttribute=n,e.isArgument=i,e.isParameter=function(e){return n(e)||i(e)},e.getParameterName=function(e){return e[1]}})(i||(e.Statements=i={})),e.is=t,e.Expressions=n,e.Statements=i,e.Ops=f}),e("backburner",["exports"],function(e){"use strict";function t(e){return"string"==typeof e}function f(e){return"function"==typeof e}function n(e){return"number"==typeof e}function i(e){return n(e)&&e===e||u.test(e)}function a(e){throw new Error("You attempted to schedule an action in a queue ("+e+") that doesn't exist")}function r(e){throw new Error("You attempted to schedule an action in a queue ("+e+") for a method that doesn't exist")}function o(e){return e.onError||e.onErrorTarget&&e.onErrorTarget[e.onErrorMethod]}function s(e,t,f){var n,i,a=-1;for(n=0,i=f.length;n<i;n+=3)if(f[n]===e&&f[n+1]===t){a=n;break}return a}function d(e,t){var f,n=-1;for(f=2;f<t.length;f+=3)if(t[f]===e){n=f-2;break}return n}function c(e,t){for(var f=0,n=t.length-2,i=void 0,a=void 0;f<n;)a=(n-f)/2,i=f+a-a%2,e>=t[i]?f=i+2:n=i;return e>=t[f]?f+2:f}var u=/\d+/,l=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._queue=[],this._queueBeingFlushed=[],this.targetQueues=Object.create(null),this.index=0,this.name=e,this.options=t,this.globalOptions=f,this.globalOptions.onError=o(f)}return e.prototype.push=function(e,t,f,n){return this._queue.push(e,t,f,n),{queue:this,target:e,method:t}},e.prototype.pushUnique=function(e,t,f,n){var i=this.guidForTarget(e);return i?this.pushUniqueWithGuid(i,e,t,f,n):this.pushUniqueWithoutGuid(e,t,f,n),{queue:this,target:e,method:t}},e.prototype.flush=function(e){var t,f=this.options,n=f.before,i=f.after,a=void 0,r=void 0,o=void 0,s=void 0,d=this.globalOptions.onError,c=d?this.invokeWithOnError:this.invoke;this.targetQueues=Object.create(null);var u=void 0;for(this._queueBeingFlushed.length>0?u=this._queueBeingFlushed:(u=this._queueBeingFlushed=this._queue,this._queue=[]),n&&n(),t=this.index;t<u.length;t+=4)if(this.index+=4,a=u[t],r=u[t+1],o=u[t+2],s=u[t+3],null!==r&&c(a,r,o,d,s),this.index!==this._queueBeingFlushed.length&&this.globalOptions.mustYield&&this.globalOptions.mustYield())return 1;i&&i(),this._queueBeingFlushed.length=0,this.index=0,!1!==e&&this._queue.length>0&&this.flush(!0)},e.prototype.hasWork=function(){return this._queueBeingFlushed.length>0||this._queue.length>0},e.prototype.cancel=function(e){var t=e.target,f=e.method,n=this._queue,i=void 0,a=void 0,r=void 0,o=void 0,s=this.guidForTarget(t),d=s?this.targetQueues[s]:void 0;if(void 0!==d)for(r=0,o=d.length;r<o;r+=2)d[r]===f&&d.splice(r,1);for(r=0,o=n.length;r<o;r+=4)if(i=n[r],a=n[r+1],i===t&&a===f)return n.splice(r,4),!0;for(r=0,o=(n=this._queueBeingFlushed).length;r<o;r+=4)if(i=n[r],a=n[r+1],i===t&&a===f)return n[r+1]=null,!0;return!1},e.prototype.guidForTarget=function(e){if(e){var t=this.globalOptions.peekGuid;if(t)return t(e);var f=this.globalOptions.GUID_KEY;return f?e[f]:void 0}},e.prototype.pushUniqueWithoutGuid=function(e,t,f,n){var i,a,r,o,s=this._queue;for(i=0,a=s.length;i<a;i+=4)if(r=s[i],o=s[i+1],r===e&&o===t)return s[i+2]=f,void(s[i+3]=n);s.push(e,t,f,n)},e.prototype.targetQueue=function(e,t,f,n,i){var a,r,o,s=this._queue;for(a=0,r=e.length;a<r;a+=2)if(e[a]===f)return o=e[a+1],s[o+2]=n,void(s[o+3]=i);e.push(f,s.push(t,f,n,i)-4)},e.prototype.pushUniqueWithGuid=function(e,t,f,n,i){var a=this.targetQueues[e];void 0!==a?this.targetQueue(a,t,f,n,i):this.targetQueues[e]=[f,this._queue.push(t,f,n,i)-4]},e.prototype.invoke=function(e,t,f){f&&f.length>0?t.apply(e,f):t.call(e)},e.prototype.invokeWithOnError=function(e,t,f,n,i){try{f&&f.length>0?t.apply(e,f):t.call(e)}catch(e){n(e,i)}},e}(),_=function(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];this.queues={},this.queueNameIndex=0,this.queueNames=e,e.reduce(function(e,f){return e[f]=new l(f,t[f],t),e},this.queues)}return e.prototype.schedule=function(e,t,f,n,i,o){var s=this.queues[e];return s||a(e),f||r(e),i?s.pushUnique(t,f,n,o):s.push(t,f,n,o)},e.prototype.flush=function(){for(var e=void 0,t=void 0,f=this.queueNames.length;this.queueNameIndex<f;)if(t=this.queueNames[this.queueNameIndex],!1===(e=this.queues[t]).hasWork())this.queueNameIndex++;else{if(1===e.flush(!1))return 1;this.queueNameIndex=0}},e}(),m=function(e){for(var t=e(),f=t.next();!1===f.done;)f.value(),f=t.next()},h=Date.now,p=function(){},g=function(){function e(e){var t=this,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.DEBUG=!1,this.currentInstance=null,this._timerTimeoutId=null,this._autorun=null,this.queueNames=e,this.options=f,this.options.defaultQueue||(this.options.defaultQueue=e[0]),this.instanceStack=[],this._timers=[],this._debouncees=[],this._throttlers=[],this._eventCallbacks={end:[],begin:[]},this._onBegin=this.options.onBegin||p,this._onEnd=this.options.onEnd||p;var n=this.options._platform||{},i=Object.create(null);i.setTimeout=n.setTimeout||function(e,t){return setTimeout(e,t)},i.clearTimeout=n.clearTimeout||function(e){return clearTimeout(e)},i.next=n.next||function(e){return i.setTimeout(e,0)},i.clearNext=n.clearNext||i.clearTimeout,this._platform=i,this._boundRunExpiredTimers=function(){t._runExpiredTimers()},this._boundAutorunEnd=function(){t._autorun=null,t.end()}}return e.prototype.begin=function(){var e=this.options,t=this.currentInstance,f=void 0;return null!==this._autorun?(f=t,this._cancelAutorun()):(null!==t&&this.instanceStack.push(t),f=this.currentInstance=new _(this.queueNames,e),this._trigger("begin",f,t)),this._onBegin(f,t),f},e.prototype.end=function(){var e,t=this.currentInstance,f=null;if(null===t)throw new Error("end called without begin");var n=!1,i=void 0;try{i=t.flush()}finally{n||(n=!0,1===i?(e=this._platform.next,this._autorun=e(this._boundAutorunEnd)):(this.currentInstance=null,this.instanceStack.length>0&&(f=this.instanceStack.pop(),this.currentInstance=f),this._trigger("end",t,f),this._onEnd(t,f)))}},e.prototype.on=function(e,t){if("function"!=typeof t)throw new TypeError("Callback must be a function");var f=this._eventCallbacks[e];if(void 0===f)throw new TypeError("Cannot on() event "+e+" because it does not exist");f.push(t)},e.prototype.off=function(e,t){var f,n=this._eventCallbacks[e];if(!e||void 0===n)throw new TypeError("Cannot off() event "+e+" because it does not exist");var i=!1;if(t)for(f=0;f<n.length;f++)n[f]===t&&(i=!0,n.splice(f,1),f--);if(!i)throw new TypeError("Cannot off() callback that does not exist")},e.prototype.run=function(e,f){for(n=arguments.length,i=Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];var n,i,a,r=void 0,s=void 0;1===arguments.length?(r=e,s=null):(r=f,s=e,t(r)&&(r=s[r]));var d=o(this.options);if(this.begin(),d)try{return r.apply(s,i)}catch(e){d(e)}finally{this.end()}else try{return r.apply(s,i)}finally{this.end()}},e.prototype.join=function(){if(null===this.currentInstance)return this.run.apply(this,arguments);var e,f=arguments.length,n=void 0,i=void 0,a=void 0;if(1===f)n=arguments[0],i=null;else if(i=arguments[0],n=arguments[1],t(n)&&(n=i[n]),f>2)for(a=new Array(f-2),e=0;e<f-2;e++)a[e]=arguments[e+2];var r=o(this.options);if(!r)return n.apply(i,a);try{return n.apply(i,a)}catch(e){r(e)}},e.prototype.defer=function(){return this.schedule.apply(this,arguments)},e.prototype.schedule=function(e){var f,n=arguments.length,i=void 0,a=void 0,r=void 0;if(2===n)i=arguments[1],a=null;else if(a=arguments[1],i=arguments[2],t(i)&&(i=a[i]),n>3)for(r=new Array(n-3),f=3;f<n;f++)r[f-3]=arguments[f];var o=this.DEBUG?new Error:void 0;return this._ensureInstance().schedule(e,a,i,r,!1,o)},e.prototype.scheduleIterable=function(e,t){var f=this.DEBUG?new Error:void 0;return this._ensureInstance().schedule(e,null,m,[t],!1,f)},e.prototype.deferOnce=function(){return this.scheduleOnce.apply(this,arguments)},e.prototype.scheduleOnce=function(e){var f,n=arguments.length,i=void 0,a=void 0,r=void 0;if(2===n)i=arguments[1],a=null;else if(a=arguments[1],i=arguments[2],t(i)&&(i=a[i]),n>3)for(r=new Array(n-3),f=3;f<n;f++)r[f-3]=arguments[f];var o=this.DEBUG?new Error:void 0;return this._ensureInstance().schedule(e,a,i,r,!0,o)},e.prototype.setTimeout=function(){return this.later.apply(this,arguments)},e.prototype.later=function(){for(e=arguments.length,n=Array(e),a=0;a<e;a++)n[a]=arguments[a];var e,n,a,r,s=n.length,d=0,c=void 0,u=void 0,l=void 0,_=void 0,m=void 0;if(0!==s){1===s?c=n.shift():2===s?(l=n[0],_=n[1],f(_)?(u=n.shift(),c=n.shift()):null!==l&&t(_)&&_ in l?(u=n.shift(),c=u[n.shift()]):i(_)?(c=n.shift(),d=parseInt(n.shift(),10)):c=n.shift()):(r=n[n.length-1],i(r)&&(d=parseInt(n.pop(),10)),l=n[0],m=n[1],f(m)?(u=n.shift(),c=n.shift()):null!==l&&t(m)&&m in l?(u=n.shift(),c=u[n.shift()]):c=n.shift());var p=o(this.options),g=h()+d,y=void 0;return y=p?function(){try{c.apply(u,n)}catch(e){p(e)}}:function(){c.apply(u,n)},this._setTimeout(y,g)}},e.prototype.throttle=function(e,t){var f,n=this,a=new Array(arguments.length);for(f=0;f<arguments.length;f++)a[f]=arguments[f];var r=a.pop(),o=void 0,c=void 0,u=void 0,l=void 0;return i(r)?(c=r,o=!0):(c=a.pop(),o=!0===r),c=parseInt(c,10),(u=s(e,t,this._throttlers))>-1?this._throttlers[u+2]:(l=this._platform.setTimeout(function(){!1===o&&n.run.apply(n,a),(u=d(l,n._throttlers))>-1&&n._throttlers.splice(u,3)},c),o&&this.join.apply(this,a),this._throttlers.push(e,t,l),l)},e.prototype.debounce=function(e,t){var f,n,a=this,r=new Array(arguments.length);for(f=0;f<arguments.length;f++)r[f]=arguments[f];var o=r.pop(),c=void 0,u=void 0,l=void 0,_=void 0;return i(o)?(u=o,c=!1):(u=r.pop(),c=!0===o),u=parseInt(u,10),(l=s(e,t,this._debouncees))>-1&&(n=this._debouncees[l+2],this._debouncees.splice(l,3),this._platform.clearTimeout(n)),_=this._platform.setTimeout(function(){!1===c&&a.run.apply(a,r),(l=d(_,a._debouncees))>-1&&a._debouncees.splice(l,3)},u),c&&-1===l&&this.join.apply(this,r),this._debouncees.push(e,t,_),_},e.prototype.cancelTimers=function(){var e,t;for(e=2;e<this._throttlers.length;e+=3)this._platform.clearTimeout(this._throttlers[e]);for(this._throttlers=[],t=2;t<this._debouncees.length;t+=3)this._platform.clearTimeout(this._debouncees[t]);this._debouncees=[],this._clearTimerTimeout(),this._timers=[],this._cancelAutorun()},e.prototype.hasTimers=function(){return this._timers.length>0||this._debouncees.length>0||this._throttlers.length>0||null!==this._autorun},e.prototype.cancel=function(e){if(!e)return!1;var t=typeof e;return"number"===t||"string"===t?this._cancelItem(e,this._throttlers)||this._cancelItem(e,this._debouncees):"function"===t?this._cancelLaterTimer(e):!("object"!==t||!e.queue||!e.method)&&e.queue.cancel(e)},e.prototype.ensureInstance=function(){this._ensureInstance()},e.prototype._cancelAutorun=function(){null!==this._autorun&&(this._platform.clearNext(this._autorun),this._autorun=null)},e.prototype._setTimeout=function(e,t){if(0===this._timers.length)return this._timers.push(t,e),this._installTimerTimeout(),e;var f=c(t,this._timers);return this._timers.splice(f,0,t,e),0===f&&this._reinstallTimerTimeout(),e},e.prototype._cancelLaterTimer=function(e){var t;for(t=1;t<this._timers.length;t+=2)if(this._timers[t]===e)return t-=1,this._timers.splice(t,2),0===t&&this._reinstallTimerTimeout(),!0;return!1},e.prototype._cancelItem=function(e,t){var f=d(e,t);return f>-1&&(t.splice(f,3),this._platform.clearTimeout(e),!0)},e.prototype._trigger=function(e,t,f){var n,i=this._eventCallbacks[e];if(void 0!==i)for(n=0;n<i.length;n++)i[n](t,f)},e.prototype._runExpiredTimers=function(){this._timerTimeoutId=null,0!==this._timers.length&&(this.begin(),this._scheduleExpiredTimers(),this.end())},e.prototype._scheduleExpiredTimers=function(){for(var e,t=this._timers,f=t.length,n=0,i=this.options.defaultQueue,a=h();n<f&&t[n]<=a;n+=2)e=t[n+1],this.schedule(i,null,e);t.splice(0,n),this._installTimerTimeout()},e.prototype._reinstallTimerTimeout=function(){this._clearTimerTimeout(),this._installTimerTimeout()},e.prototype._clearTimerTimeout=function(){null!==this._timerTimeoutId&&(this._platform.clearTimeout(this._timerTimeoutId),this._timerTimeoutId=null)},e.prototype._installTimerTimeout=function(){if(0!==this._timers.length){var e=this._timers[0],t=h(),f=Math.max(0,e-t);this._timerTimeoutId=this._platform.setTimeout(this._boundRunExpiredTimers,f)}},e.prototype._ensureInstance=function(){var e,t=this.currentInstance;return null===t&&(t=this.begin(),e=this._platform.next,this._autorun=e(this._boundAutorunEnd)),t},e}();g.Queue=l,e.default=g}),e("container",["exports","ember-utils","ember-debug","ember-environment"],function(e,t,f){"use strict";function n(e){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.registry=e,this.owner=f.owner||null,this.cache=(0,t.dictionary)(f.cache||null),this.factoryManagerCache=(0,t.dictionary)(f.factoryManagerCache||null),this[q]=void 0,this.isDestroyed=!1}function i(e,t){return!1!==e.registry.getOption(t,"singleton")}function a(e,t){return!1!==e.registry.getOption(t,"instantiate")}function r(e,t){var f,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n.source){if(!(f=e.registry.expandLocalLookup(t,n)))return;t=f}var i=e._resolverCacheKey(t,n),a=e.cache[i];return void 0!==a&&!1!==n.singleton?a:u(e,t,n)}function o(e,t,f){var n=f.instantiate;return!1!==f.singleton&&!n&&i(e,t)&&!a(e,t)}function s(e,t,f){var n=f.instantiate;return!1!==f.singleton&&!1!==n&&i(e,t)&&a(e,t)}function d(e,t,f){var n=f.instantiate,r=f.singleton;return!(!1!==n||!1!==r&&i(e,t)||a(e,t))}function c(e,t,f){var n=f.instantiate,r=f.singleton;return!1!==n&&(!1!==r||i(e,t))&&a(e,t)}function u(e,t,f){var n=void 0;if(void 0!==(n=e.factoryFor(t))){var i=e._resolverCacheKey(t,f);if(s(e,t,f))return e.cache[i]=n.create();if(c(e,t,f))return n.create();if(o(e,t,f)||d(e,t,f))return n.class;throw new Error("Could not create factory")}}function l(e){e._dynamic=!0}function _(e){return!0!==e._dynamic}function m(){var e,t,f,n,a,o,s={};if(arguments.length>1){for(e=arguments[0],t=[],f=void 0,n=1;n<arguments.length;n++)arguments[n]&&(t=t.concat(arguments[n]));for(a=!1,o=0;o<t.length;o++)f=t[o],s[f.property]=r(e,f.fullName),a||(a=!i(e,f.fullName));a&&l(s)}return s}function h(e,t){var f=e.registry,n=t.split(":")[0];return m(e,f.getTypeInjections(n),f.getInjections(t))}function p(e){var t,f,n,i=e.cache,r=Object.keys(i);for(t=0;t<r.length;t++)f=r[t],n=i[f],a(e,f)&&n.destroy&&n.destroy()}function g(e){p(e),e.cache.dict=(0,t.dictionary)(null)}function y(e,t){var f=e.cache[t];delete e.factoryManagerCache[t],f&&(delete e.cache[t],f.destroy&&f.destroy())}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fallback=e.fallback||null,e.resolver&&(this.resolver=e.resolver,"function"==typeof this.resolver&&v(this)),this.registrations=(0,t.dictionary)(e.registrations||null),this._typeInjections=(0,t.dictionary)(null),this._injections=(0,t.dictionary)(null),this._localLookupCache=Object.create(null),this._normalizeCache=(0,t.dictionary)(null),this._resolveCache=(0,t.dictionary)(null),this._failCache=(0,t.dictionary)(null),this._options=(0,t.dictionary)(null),this._typeOptions=(0,t.dictionary)(null)}function v(e){e.resolver={resolve:e.resolver}}function w(e,t,f){var n=e._localLookupCache,i=n[t];i||(i=n[t]=Object.create(null));var a=i[f];if(void 0!==a)return a;var r=e.resolver.expandLocalLookup(t,f);return i[f]=r}function k(e,t,f){if(f&&f.source){if(!(n=e.expandLocalLookup(t,f)))return;t=n}var n,i=e.resolverCacheKey(t,f),a=e._resolveCache[i];if(void 0!==a)return a;if(!e._failCache[i]){var r=void 0;return e.resolver&&(r=e.resolver.resolve(t,f&&f.source)),void 0===r&&(r=e.registrations[t]),void 0===r?e._failCache[i]=!0:e._resolveCache[i]=r,r}}function x(e,t,f){return void 0!==e.resolve(t,{source:f})}e.Container=e.privatize=e.Registry=void 0;var q=(0,t.symbol)("CONTAINER_OVERRIDE");n.prototype={lookup:function(e,t){return r(this,this.registry.normalize(e),t)},destroy:function(){p(this),this.isDestroyed=!0},reset:function(e){void 0!==e?y(this,this.registry.normalize(e)):g(this)},ownerInjection:function(){var e;return e={},e[t.OWNER]=this.owner,e},_resolverCacheKey:function(e,t){return this.registry.resolverCacheKey(e,t)},factoryFor:function(e){var t,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.registry.normalize(e);if(f.source){if(!(t=this.registry.expandLocalLookup(e,f)))return;n=t}var i=this._resolverCacheKey(n,f),a=this.factoryManagerCache[i];if(void 0!==a)return a;var r=void 0;if(void 0!==(r=this.registry.resolve(n))){var o=new E(this,r,e,n);return this.factoryManagerCache[i]=o,o}}};var E=function(){function e(e,t,f,n){this.container=e,this.owner=e.owner,this.class=t,this.fullName=f,this.normalizedName=n,this.madeToString=void 0,this.injections=void 0}return e.prototype.toString=function(){return this.madeToString||(this.madeToString=this.container.registry.makeToString(this.class,this.fullName)),this.madeToString},e.prototype.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=this.injections;void 0===f&&(f=h(this.container,this.normalizedName),_(f)&&(this.injections=f));var n=(0,t.assign)({},f,e);if(!this.class.create)throw new Error("Failed to create an instance of '"+this.normalizedName+"'. Most likely an improperly defined class or an invalid module export.");return"function"==typeof this.class._initFactory?this.class._initFactory(this):(0,t.setOwner)(n,this.owner),this.class.create(n)},e}(),T=/^[^:]+:[^:]+$/;(b.prototype={fallback:null,resolver:null,registrations:null,_typeInjections:null,_injections:null,_normalizeCache:null,_resolveCache:null,_options:null,_typeOptions:null,container:function(e){return new n(this,e)},register:function(e,t){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(void 0===t)throw new TypeError("Attempting to register an unknown factory: '"+e+"'");var n=this.normalize(e);if(this._resolveCache[n])throw new Error("Cannot re-register: '"+e+"', as it has already been resolved.");delete this._failCache[n],this.registrations[n]=t,this._options[n]=f},unregister:function(e){var t=this.normalize(e);this._localLookupCache=Object.create(null),delete this.registrations[t],delete this._resolveCache[t],delete this._failCache[t],delete this._options[t]},resolve:function(e,t){var f,n=k(this,this.normalize(e),t);return void 0===n&&this.fallback&&(n=(f=this.fallback).resolve.apply(f,arguments)),n},describe:function(e){return this.resolver&&this.resolver.lookupDescription?this.resolver.lookupDescription(e):this.fallback?this.fallback.describe(e):e},normalizeFullName:function(e){return this.resolver&&this.resolver.normalize?this.resolver.normalize(e):this.fallback?this.fallback.normalizeFullName(e):e},normalize:function(e){return this._normalizeCache[e]||(this._normalizeCache[e]=this.normalizeFullName(e))},makeToString:function(e,t){return this.resolver&&this.resolver.makeToString?this.resolver.makeToString(e,t):this.fallback?this.fallback.makeToString(e,t):e.toString()},has:function(e,t){if(!this.isValidFullName(e))return!1;var f=t&&t.source&&this.normalize(t.source);return x(this,this.normalize(e),f)},optionsForType:function(e,t){this._typeOptions[e]=t},getOptionsForType:function(e){var t=this._typeOptions[e];return void 0===t&&this.fallback&&(t=this.fallback.getOptionsForType(e)),t},options:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=this.normalize(e);this._options[f]=t},getOptions:function(e){var t=this.normalize(e),f=this._options[t];return void 0===f&&this.fallback&&(f=this.fallback.getOptions(e)),f},getOption:function(e,t){var f=this._options[e];if(f&&void 0!==f[t])return f[t];var n=e.split(":")[0];return(f=this._typeOptions[n])&&void 0!==f[t]?f[t]:this.fallback?this.fallback.getOption(e,t):void 0},typeInjection:function(e,t,f){if(f.split(":")[0]===e)throw new Error("Cannot inject a '"+f+"' on other "+e+"(s).");(this._typeInjections[e]||(this._typeInjections[e]=[])).push({property:t,fullName:f})},injection:function(e,t,f){this.validateFullName(f);var n=this.normalize(f);if(-1===e.indexOf(":"))return this.typeInjection(e,t,n);var i=this.normalize(e);(this._injections[i]||(this._injections[i]=[])).push({property:t,fullName:n})},knownForType:function(e){var f,n,i=void 0,a=void 0,r=(0,t.dictionary)(null),o=Object.keys(this.registrations);for(f=0;f<o.length;f++)n=o[f],n.split(":")[0]===e&&(r[n]=!0);return this.fallback&&(i=this.fallback.knownForType(e)),this.resolver&&this.resolver.knownForType&&(a=this.resolver.knownForType(e)),(0,t.assign)({},i,r,a)},validateFullName:function(e){if(!this.isValidFullName(e))throw new TypeError("Invalid Fullname, expected: 'type:name' got: "+e);return!0},isValidFullName:function(e){return T.test(e)},normalizeInjectionsHash:function(e){var t=[];for(var f in e)e.hasOwnProperty(f)&&t.push({property:f,fullName:e[f]});return t},getInjections:function(e){var t=this._injections[e]||[];return this.fallback&&(t=t.concat(this.fallback.getInjections(e))),t},getTypeInjections:function(e){var t=this._typeInjections[e]||[];return this.fallback&&(t=t.concat(this.fallback.getTypeInjections(e))),t},resolverCacheKey:function(e){return e}}).expandLocalLookup=function(e,t){var f,n;return this.resolver&&this.resolver.expandLocalLookup?(f=this.normalize(e),n=this.normalize(t.source),w(this,f,n)):this.fallback?this.fallback.expandLocalLookup(e,t):null};var S=(0,t.dictionary)(null),M=(""+Math.random()+Date.now()).replace(".","");e.Registry=b,e.privatize=function(e){var f=e[0],n=S[f];if(n)return n;var i=f.split(":"),a=i[0],r=i[1];return S[f]=(0,t.intern)(a+":"+r+"-"+M)},e.Container=n}),e("dag-map",["exports"],function(e){"use strict";var t=function(){function e(){this._vertices=new f}return e.prototype.add=function(e,t,f,n){if(!e)throw new Error("argument `key` is required");var i=this._vertices,a=i.add(e);if(a.val=t,f)if("string"==typeof f)i.addEdge(a,i.add(f));else for(var r=0;r<f.length;r++)i.addEdge(a,i.add(f[r]));if(n)if("string"==typeof n)i.addEdge(i.add(n),a);else for(r=0;r<n.length;r++)i.addEdge(i.add(n[r]),a)},e.prototype.addEdges=function(e,t,f,n){this.add(e,t,f,n)},e.prototype.each=function(e){this._vertices.walk(e)},e.prototype.topsort=function(e){this.each(e)},e}();e.default=t;var f=function(){function e(){this.length=0,this.stack=new n,this.path=new n,this.result=new n}return e.prototype.add=function(e){if(!e)throw new Error("missing key");var t,f,n=0|this.length;for(t=0;t<n;t++)if((f=this[t]).key===e)return f;return this.length=n+1,this[n]={idx:n,key:e,val:void 0,out:!1,flag:!1,length:0}},e.prototype.addEdge=function(e,t){this.check(e,t.key);var f,n=0|t.length;for(f=0;f<n;f++)if(t[f]===e.idx)return;t.length=n+1,t[n]=e.idx,e.out=!0},e.prototype.walk=function(e){var t,f;for(this.reset(),t=0;t<this.length;t++)(f=this[t]).out||this.visit(f,"");this.each(this.result,e)},e.prototype.check=function(e,t){var f,n;if(e.key===t)throw new Error("cycle detected: "+t+" <- "+t);if(0!==e.length){for(f=0;f<e.length;f++)if(this[e[f]].key===t)throw new Error("cycle detected: "+t+" <- "+e.key+" <- "+t);if(this.reset(),this.visit(e,t),this.path.length>0)throw n="cycle detected: "+t,this.each(this.path,function(e){n+=" <- "+e}),new Error(n)}},e.prototype.reset=function(){var e,t;for(this.stack.length=0,this.path.length=0,this.result.length=0,e=0,t=this.length;e<t;e++)this[e].flag=!1},e.prototype.visit=function(e,t){var f,n,i=this,a=i.stack,r=i.path,o=i.result;for(a.push(e.idx);a.length;)if((f=0|a.pop())>=0){if((n=this[f]).flag)continue;if(n.flag=!0,r.push(f),t===n.key)break;a.push(~f),this.pushIncoming(n)}else r.pop(),o.push(~f)},e.prototype.pushIncoming=function(e){var t,f,n=this.stack;for(t=e.length-1;t>=0;t--)f=e[t],this[f].flag||n.push(f)},e.prototype.each=function(e,t){var f,n,i;for(f=0,n=e.length;f<n;f++)i=this[e[f]],t(i.key,i.val)},e}(),n=function(){function e(){this.length=0}return e.prototype.push=function(e){this[this.length++]=0|e},e.prototype.pop=function(){return 0|this[--this.length]},e}()}),e("ember-application/index",["exports","ember-application/system/application","ember-application/system/application-instance","ember-application/system/resolver","ember-application/system/engine","ember-application/system/engine-instance","ember-application/system/engine-parent","ember-application/initializers/dom-templates"],function(e,t,f,n,i,a,r){"use strict";e.setEngineParent=e.getEngineParent=e.EngineInstance=e.Engine=e.Resolver=e.ApplicationInstance=e.Application=void 0,Object.defineProperty(e,"Application",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"ApplicationInstance",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"Resolver",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Engine",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"EngineInstance",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"getEngineParent",{enumerable:!0,get:function(){return r.getEngineParent}}),Object.defineProperty(e,"setEngineParent",{enumerable:!0,get:function(){return r.setEngineParent}})}),e("ember-application/initializers/dom-templates",["require","ember-glimmer","ember-environment","ember-application/system/application"],function(e,t,f,n){"use strict";var i=function(){};n.default.initializer({name:"domTemplates",initialize:function(){var n="ember-template-compiler/system/bootstrap",a=void 0;f.environment.hasDOM&&(0,e.has)(n)&&(i=(0,e.default)(n).default,a=document),i({context:a,hasTemplate:t.hasTemplate,setTemplate:t.setTemplate})}})}),e("ember-application/system/application-instance",["exports","ember-utils","ember-debug","ember-metal","ember-runtime","ember-environment","ember-views","ember-application/system/engine-instance"],function(e,t,f,n,i,a,r,o){"use strict";var s=void 0,d=o.default.extend({application:null,customEvents:null,rootElement:null,init:function(){this._super.apply(this,arguments),this.register("-application-instance:main",this,{instantiate:!1})},_bootSync:function(e){var t;return this._booted?this:(e=new s(e),this.setupRegistry(e),e.rootElement?this.rootElement=e.rootElement:this.rootElement=this.application.rootElement,e.location&&(t=(0,n.get)(this,"router"),(0,n.set)(t,"location",e.location)),this.application.runInstanceInitializers(this),e.isInteractive&&this.setupEventDispatcher(),this._booted=!0,this)},setupRegistry:function(e){this.constructor.setupRegistry(this.__registry__,e)},router:(0,n.computed)(function(){return this.lookup("router:main")}).readOnly(),didCreateRootView:function(e){e.appendTo(this.rootElement)},startRouting:function(){(0,n.get)(this,"router").startRouting(),this._didSetupRouter=!0},setupRouter:function(){this._didSetupRouter||(this._didSetupRouter=!0,(0,n.get)(this,"router").setupRouter())},handleURL:function(e){var t=(0,n.get)(this,"router");return this.setupRouter(),t.handleURL(e)},setupEventDispatcher:function(){var e=this.lookup("event_dispatcher:main"),f=(0,n.get)(this.application,"customEvents"),i=(0,n.get)(this,"customEvents"),a=(0,t.assign)({},f,i);return e.setup(a,this.rootElement),e},getURL:function(){var e=(0,n.get)(this,"router");return(0,n.get)(e,"url")},visit:function(e){var t=this;this.setupRouter();var f=this.__container__.lookup("-environment:main"),a=(0,n.get)(this,"router"),r=function(){return f.options.shouldRender?new i.RSVP.Promise(function(e){n.run.schedule("afterRender",null,e,t)}):t},o=function(e){if(e.error)throw e.error;if("TransitionAborted"===e.name&&a._routerMicrolib.activeTransition)return a._routerMicrolib.activeTransition.then(r,o);throw"TransitionAborted"===e.name?new Error(e.message):e},s=(0,n.get)(a,"location");return s.setURL(e),a.handleURL(s.getURL()).then(r,o)}});d.reopenClass({setupRegistry:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.toEnvironment||(t=new s(t)),e.register("-environment:main",t.toEnvironment(),{instantiate:!1}),e.register("service:-document",t.document,{instantiate:!1}),this._super(e,t)}}),(s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.jQuery=r.jQuery,this.isInteractive=a.environment.hasDOM,void 0!==e.isBrowser?this.isBrowser=!!e.isBrowser:this.isBrowser=a.environment.hasDOM,this.isBrowser||(this.jQuery=null,this.isInteractive=!1,this.location="none"),void 0!==e.shouldRender?this.shouldRender=!!e.shouldRender:this.shouldRender=!0,this.shouldRender||(this.jQuery=null,this.isInteractive=!1),e.document?this.document=e.document:this.document="undefined"!=typeof document?document:null,e.rootElement&&(this.rootElement=e.rootElement),void 0!==e.location&&(this.location=e.location),void 0!==e.jQuery&&(this.jQuery=e.jQuery),void 0!==e.isInteractive&&(this.isInteractive=!!e.isInteractive)}).prototype.toEnvironment=function(){var e=(0,t.assign)({},a.environment);return e.hasDOM=this.isBrowser,e.isInteractive=this.isInteractive,e.options=this,e},Object.defineProperty(d.prototype,"registry",{configurable:!0,enumerable:!1,get:function(){return(0,i.buildFakeRegistryWithDeprecations)(this,"ApplicationInstance")}}),e.default=d}),e("ember-application/system/application",["exports","ember-babel","ember-utils","ember-environment","ember-debug","ember-metal","ember-runtime","ember-views","ember-routing","ember-application/system/application-instance","container","ember-application/system/engine","ember-glimmer"],function(e,t,f,n,i,a,r,o,s,d,c,u,l){"use strict";function _(e){e.register("router:main",s.Router.extend()),e.register("-view-registry:main",{create:function(){return(0,f.dictionary)(null)}}),e.register("route:basic",s.Route),e.register("event_dispatcher:main",o.EventDispatcher),e.injection("router:main","namespace","application:main"),e.register("location:auto",s.AutoLocation),e.register("location:hash",s.HashLocation),e.register("location:history",s.HistoryLocation),e.register("location:none",s.NoneLocation),e.register((0,c.privatize)(h),s.BucketCache),e.register("service:router",s.RouterService),e.injection("service:router","_router","router:main")}function m(){p||(p=!0,n.environment.hasDOM&&"function"==typeof o.jQuery&&a.libraries.registerCoreLibrary("jQuery",(0,o.jQuery)().jquery))}var h=(0,t.taggedTemplateLiteralLoose)(["-bucket-cache:main"],["-bucket-cache:main"]),p=!1,g=u.default.extend({rootElement:"body",eventDispatcher:null,customEvents:null,autoboot:!0,_globalsMode:!0,init:function(){this._super.apply(this,arguments),this.$||(this.$=o.jQuery),m(),this._readinessDeferrals=1,this._booted=!1,this.autoboot=this._globalsMode=!!this.autoboot,this._globalsMode&&this._prepareForGlobalsMode(),this.autoboot&&this.waitForDOMReady()},buildInstance:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.base=this,e.application=this,d.default.create(e)},_prepareForGlobalsMode:function(){this.Router=(this.Router||s.Router).extend(),this._buildDeprecatedInstance()},_buildDeprecatedInstance:function(){var e=this.buildInstance();this.__deprecatedInstance__=e,this.__container__=e.__container__},waitForDOMReady:function(){!this.$||this.$.isReady?a.run.schedule("actions",this,"domReady"):this.$().ready(a.run.bind(this,"domReady"))},domReady:function(){this.isDestroyed||this._bootSync()},deferReadiness:function(){this._readinessDeferrals++},advanceReadiness:function(){0==--this._readinessDeferrals&&a.run.once(this,this.didBecomeReady)},boot:function(){if(this._bootPromise)return this._bootPromise;try{this._bootSync()}catch(e){}return this._bootPromise},_bootSync:function(){if(!this._booted){var e=this._bootResolver=new r.RSVP.defer;this._bootPromise=e.promise;try{this.runInitializers(),(0,r.runLoadHooks)("application",this),this.advanceReadiness()}catch(t){throw e.reject(t),t}}},reset:function(){var e=this.__deprecatedInstance__;this._readinessDeferrals=1,this._bootPromise=null,this._bootResolver=null,this._booted=!1,a.run.join(this,function(){(0,a.run)(e,"destroy"),this._buildDeprecatedInstance(),a.run.schedule("actions",this,"_bootSync")})},didBecomeReady:function(){var e;try{(0,i.isTesting)()||(r.Namespace.processAll(),(0,r.setNamespaceSearchDisabled)(!0)),this.autoboot&&(e=void 0,(e=this._globalsMode?this.__deprecatedInstance__:this.buildInstance())._bootSync(),this.ready(),e.startRouting()),this._bootResolver.resolve(this),this._booted=!0}catch(e){throw this._bootResolver.reject(e),e}},ready:function(){return this},willDestroy:function(){this._super.apply(this,arguments),(0,r.setNamespaceSearchDisabled)(!1),this._booted=!1,this._bootPromise=null,this._bootResolver=null,r._loaded.application===this&&(r._loaded.application=void 0),this._globalsMode&&this.__deprecatedInstance__&&this.__deprecatedInstance__.destroy()},visit:function(e,t){var f=this;return this.boot().then(function(){var n=f.buildInstance();return n.boot(t).then(function(){return n.visit(e)}).catch(function(e){throw(0,a.run)(n,"destroy"),e})})}});Object.defineProperty(g.prototype,"registry",{configurable:!0,enumerable:!1,get:function(){return(0,r.buildFakeRegistryWithDeprecations)(this,"Application")}}),g.reopenClass({buildRegistry:function(){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var e=this._super.apply(this,arguments);return _(e),(0,l.setupApplicationRegistry)(e),e}}),e.default=g}),e("ember-application/system/engine-instance",["exports","ember-babel","ember-utils","ember-runtime","ember-debug","ember-metal","container","ember-application/system/engine-parent"],function(e,t,f,n,i,a,r,o){"use strict";var s=(0,t.taggedTemplateLiteralLoose)(["-bucket-cache:main"],["-bucket-cache:main"]),d=n.Object.extend(n.RegistryProxyMixin,n.ContainerProxyMixin,{base:null,init:function(){this._super.apply(this,arguments),(0,f.guidFor)(this);var e=this.base;e||(e=this.application,this.base=e);var t=this.__registry__=new r.Registry({fallback:e.__registry__});this.__container__=t.container({owner:this}),this._booted=!1},boot:function(e){var t=this;return this._bootPromise?this._bootPromise:(this._bootPromise=new n.RSVP.Promise(function(f){return f(t._bootSync(e))}),this._bootPromise)},_bootSync:function(e){return this._booted?this:(this.cloneParentDependencies(),this.setupRegistry(e),this.base.runInstanceInitializers(this),this._booted=!0,this)},setupRegistry:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.__container__.lookup("-environment:main");this.constructor.setupRegistry(this.__registry__,e)},unregister:function(e){this.__container__.reset(e),this._super.apply(this,arguments)},buildChildEngineInstance:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=this.lookup("engine:"+e);if(!f)throw new i.Error("You attempted to mount the engine '"+e+"', but it is not registered with its parent.");var n=f.buildInstance(t);return(0,o.setEngineParent)(n,this),n},cloneParentDependencies:function(){var e=this,t=(0,o.getEngineParent)(this);["route:basic","service:-routing","service:-glimmer-environment"].forEach(function(f){return e.register(f,t.resolveRegistration(f))});var f=t.lookup("-environment:main");this.register("-environment:main",f,{instantiate:!1}),["router:main",(0,r.privatize)(s),"-view-registry:main","renderer:-"+(f.isInteractive?"dom":"inert"),"service:-document","event_dispatcher:main"].forEach(function(f){return e.register(f,t.lookup(f),{instantiate:!1})}),this.inject("view","_environment","-environment:main"),this.inject("route","_environment","-environment:main")}});d.reopenClass({setupRegistry:function(e,t){t&&(e.injection("view","_environment","-environment:main"),e.injection("route","_environment","-environment:main"),t.isInteractive?(e.injection("view","renderer","renderer:-dom"),e.injection("component","renderer","renderer:-dom")):(e.injection("view","renderer","renderer:-inert"),e.injection("component","renderer","renderer:-inert")))}}),e.default=d}),e("ember-application/system/engine-parent",["exports","ember-utils"],function(e,t){"use strict";e.ENGINE_PARENT=void 0,e.getEngineParent=function(e){return e[f]},e.setEngineParent=function(e,t){e[f]=t};var f=e.ENGINE_PARENT=(0,t.symbol)("ENGINE_PARENT")}),e("ember-application/system/engine",["exports","ember-babel","ember-utils","ember-runtime","container","dag-map","ember-debug","ember-metal","ember-application/system/resolver","ember-application/system/engine-instance","ember-routing","ember-extension-support","ember-views","ember-glimmer"],function(e,t,f,n,i,a,r,o,s,d,c,u,l,_){"use strict";function m(e){var t=[];for(var f in e)t.push(f);return t}function h(e){return(e.get("Resolver")||s.default).create({namespace:e})}function p(e,t){return function(t){var f;void 0!==this.superclass[e]&&this.superclass[e]===this[e]&&(f={},f[e]=Object.create(this[e]),this.reopenClass(f)),this[e][t.name]=t}}function g(e){e.optionsForType("component",{singleton:!1}),e.optionsForType("view",{singleton:!1}),e.register("controller:basic",n.Controller,{instantiate:!1}),e.injection("view","_viewRegistry","-view-registry:main"),e.injection("renderer","_viewRegistry","-view-registry:main"),e.injection("event_dispatcher:main","_viewRegistry","-view-registry:main"),e.injection("route","_topLevelViewTemplate","template:-outlet"),e.injection("view:-outlet","namespace","application:main"),e.injection("controller","target","router:main"),e.injection("controller","namespace","application:main"),e.injection("router","_bucketCache",(0,i.privatize)(y)),e.injection("route","_bucketCache",(0,i.privatize)(y)),e.injection("route","router","router:main"),e.register("service:-routing",c.RoutingService),e.injection("service:-routing","router","router:main"),e.register("resolver-for-debugging:main",e.resolver,{instantiate:!1}),e.injection("container-debug-adapter:main","resolver","resolver-for-debugging:main"),e.injection("data-adapter:main","containerDebugAdapter","container-debug-adapter:main"),e.register("container-debug-adapter:main",u.ContainerDebugAdapter),e.register("component-lookup:main",l.ComponentLookup)}var y=(0,t.taggedTemplateLiteralLoose)(["-bucket-cache:main"],["-bucket-cache:main"]),b=n.Namespace.extend(n.RegistryProxyMixin,{init:function(){this._super.apply(this,arguments),this.buildRegistry()},_initializersRan:!1,ensureInitializers:function(){this._initializersRan||(this.runInitializers(),this._initializersRan=!0)},buildInstance:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.ensureInitializers(),e.base=this,d.default.create(e)},buildRegistry:function(){return this.__registry__=this.constructor.buildRegistry(this)},initializer:function(e){this.constructor.initializer(e)},instanceInitializer:function(e){this.constructor.instanceInitializer(e)},runInitializers:function(){var e=this;this._runInitializer("initializers",function(t,f){2===f.initialize.length?f.initialize(e.__registry__,e):f.initialize(e)})},runInstanceInitializers:function(e){this._runInitializer("instanceInitializers",function(t,f){f.initialize(e)})},_runInitializer:function(e,t){var f,n=(0,o.get)(this.constructor,e),i=m(n),r=new a.default,s=void 0;for(f=0;f<i.length;f++)s=n[i[f]],r.add(s.name,s,s.before,s.after);r.topsort(t)}});b.reopenClass({initializers:Object.create(null),instanceInitializers:Object.create(null),initializer:p("initializers"),instanceInitializer:p("instanceInitializers"),buildRegistry:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var t=new i.Registry({resolver:h(e)});return t.set=o.set,t.register("application:main",e,{instantiate:!1}),g(t),(0,_.setupEngineRegistry)(t),t},resolver:null,Resolver:null}),e.default=b}),e("ember-application/system/resolver",["exports","ember-utils","ember-metal","ember-debug","ember-runtime","ember-application/utils/validate-type","ember-glimmer"],function(e,t,f,n,i,a,r){"use strict";e.Resolver=void 0,e.Resolver=i.Object.extend({namespace:null,normalize:null,resolve:null,parseName:null,lookupDescription:null,makeToString:null,resolveOther:null,_logLookup:null}),e.default=i.Object.extend({namespace:null,init:function(){this._parseNameCache=(0,t.dictionary)(null)},normalize:function(e){var t,f=e.split(":",2),n=f[0],i=f[1];return"template"!==n?((t=i).indexOf(".")>-1&&(t=t.replace(/\.(.)/g,function(e){return e.charAt(1).toUpperCase()})),i.indexOf("_")>-1&&(t=t.replace(/_(.)/g,function(e){return e.charAt(1).toUpperCase()})),i.indexOf("-")>-1&&(t=t.replace(/-(.)/g,function(e){return e.charAt(1).toUpperCase()})),n+":"+t):e},resolve:function(e){var t=this.parseName(e),f=t.resolveMethodName,n=void 0;return this[f]&&(n=this[f](t)),(n=n||this.resolveOther(t))&&(0,a.default)(n,t),n},parseName:function(e){return this._parseNameCache[e]||(this._parseNameCache[e]=this._parseName(e))},_parseName:function(e){var t,n,a=e.split(":"),r=a[0],o=a[1],s=o,d=(0,f.get)(this,"namespace"),c=s.lastIndexOf("/"),u=-1!==c?s.slice(0,c):null;"template"!==r&&-1!==c&&(t=s.split("/"),s=t[t.length-1],n=i.String.capitalize(t.slice(0,-1).join(".")),d=i.Namespace.byName(n));var l="main"===o?"Main":i.String.classify(r);if(!s||!r)throw new TypeError("Invalid fullName: `"+e+"`, must be of the form `type:name` ");return{fullName:e,type:r,fullNameWithoutType:o,dirname:u,name:s,root:d,resolveMethodName:"resolve"+l}},lookupDescription:function(e){var t=this.parseName(e),f=void 0;return"template"===t.type?"template at "+t.fullNameWithoutType.replace(/\./g,"/"):(f=t.root+"."+i.String.classify(t.name).replace(/\./g,""),"model"!==t.type&&(f+=i.String.classify(t.type)),f)},makeToString:function(e){return e.toString()},useRouterNaming:function(e){e.name=e.name.replace(/\./g,"_"),"basic"===e.name&&(e.name="")},resolveTemplate:function(e){var t=e.fullNameWithoutType.replace(/\./g,"/");return(0,r.getTemplate)(t)||(0,r.getTemplate)(i.String.decamelize(t))},resolveView:function(e){return this.useRouterNaming(e),this.resolveOther(e)},resolveController:function(e){return this.useRouterNaming(e),this.resolveOther(e)},resolveRoute:function(e){return this.useRouterNaming(e),this.resolveOther(e)},resolveModel:function(e){var t=i.String.classify(e.name);return(0,f.get)(e.root,t)},resolveHelper:function(e){return this.resolveOther(e)},resolveOther:function(e){var t=i.String.classify(e.name)+i.String.classify(e.type);return(0,f.get)(e.root,t)},resolveMain:function(e){var t=i.String.classify(e.type);return(0,f.get)(e.root,t)},_logLookup:function(e,t){var f=void 0,i=void 0;f=e?"[✓]":"[ ]",i=t.fullName.length>60?".":new Array(60-t.fullName.length).join("."),(0,n.info)(f,t.fullName,i,this.lookupDescription(t.fullName))},knownForType:function(e){var n,a,r,o=(0,f.get)(this,"namespace"),s=i.String.classify(e),d=new RegExp(s+"$"),c=(0,t.dictionary)(null),u=Object.keys(o);for(n=0;n<u.length;n++)a=u[n],d.test(a)&&(r=this.translateToContainerFullname(e,a),c[r]=!0);return c},translateToContainerFullname:function(e,t){var f=i.String.classify(e),n=t.slice(0,-1*f.length);return e+":"+i.String.dasherize(n)}})}),e("ember-application/utils/validate-type",["exports","ember-debug"],function(e,t){"use strict";e.default=function(e,t){var n=f[t.type];n&&(n[0],n[1],n[2])};var f={route:["assert","isRouteFactory","Ember.Route"],component:["deprecate","isComponentFactory","Ember.Component"],view:["deprecate","isViewFactory","Ember.View"],service:["deprecate","isServiceFactory","Ember.Service"]}}),e("ember-babel",["exports"],function(e){"use strict";function t(e,t){for(var f=0;f<t.length;f++){var n=t[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){for(var f=Object.getOwnPropertyNames(t),n=0;n<f.length;n++){var i=f[n],a=Object.getOwnPropertyDescriptor(t,i);a&&a.configurable&&void 0===e[i]&&Object.defineProperty(e,i,a)}return e}e.inherits=function(e,t){e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):f(e,t))},e.taggedTemplateLiteralLoose=function(e,t){return e.raw=t,e},e.createClass=function(e,f,n){return f&&t(e.prototype,f),n&&t(e,n),e},e.defaults=f,e.possibleConstructorReturn=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?e:t},e.slice=Array.prototype.slice}),e("ember-console",["exports","ember-environment"],function(e,t){"use strict";function f(){}function n(e){var f=void 0;t.context.imports.console?f=t.context.imports.console:"undefined"!=typeof console&&(f=console);var n="object"==typeof f?f[e]:null;if("function"==typeof n)return"function"==typeof n.bind?n.bind(f):function(){n.apply(f,arguments)}}var i={log:n("log")||f,warn:n("warn")||f,error:n("error")||f,info:n("info")||f,debug:n("debug")||n("info")||f,assert:n("assert")||function(e,t){if(!e)try{throw new Error("assertion failed: "+t)}catch(e){setTimeout(function(){throw e},0)}}};e.default=i}),e("ember-debug/deprecate",["exports","ember-debug/error","ember-console","ember-environment","ember-debug/handlers"],function(e){"use strict";e.missingOptionsUntilDeprecation=e.missingOptionsIdDeprecation=e.missingOptionsDeprecation=e.registerHandler=void 0,e.default=void 0,e.registerHandler=function(){},e.missingOptionsDeprecation=void 0,e.missingOptionsIdDeprecation=void 0,e.missingOptionsUntilDeprecation=void 0}),e("ember-debug/error",["exports","ember-babel"],function(e,t){"use strict";var f=function(e){function f(n){var i,a=(0,t.possibleConstructorReturn)(this,e.call(this));if(!(a instanceof f))return i=new f(n),(0,t.possibleConstructorReturn)(a,i);var r=Error.call(a,n);return a.stack=r.stack,a.description=r.description,a.fileName=r.fileName,a.lineNumber=r.lineNumber,a.message=r.message,a.name=r.name,a.number=r.number,a.code=r.code,a}return(0,t.inherits)(f,e),f}(function(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}(Error));e.default=f}),e("ember-debug/features",["exports","ember-environment","ember/features"],function(e,t,f){"use strict";e.default=function(e){var f=n[e];return!0===f||!1===f||void 0===f?f:!!t.ENV.ENABLE_OPTIONAL_FEATURES};var n=f.FEATURES}),e("ember-debug/handlers",["exports"],function(e){"use strict";e.HANDLERS={},e.registerHandler=function(){},e.invoke=function(){}}),e("ember-debug/index",["exports","ember-debug/warn","ember-debug/deprecate","ember-debug/features","ember-debug/error","ember-debug/testing","ember-environment","ember-console","ember/features"],function(e,t,f,n,i,a,r,o,s){"use strict";e._warnIfUsingStrippedFeatureFlags=e.getDebugFunction=e.setDebugFunction=e.deprecateFunc=e.runInDebug=e.debugFreeze=e.debugSeal=e.deprecate=e.debug=e.warn=e.info=e.assert=e.setTesting=e.isTesting=e.Error=e.isFeatureEnabled=e.registerDeprecationHandler=e.registerWarnHandler=void 0,Object.defineProperty(e,"registerWarnHandler",{enumerable:!0,get:function(){return t.registerHandler}}),Object.defineProperty(e,"registerDeprecationHandler",{enumerable:!0,get:function(){return f.registerHandler}}),Object.defineProperty(e,"isFeatureEnabled",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Error",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"isTesting",{enumerable:!0,get:function(){return a.isTesting}}),Object.defineProperty(e,"setTesting",{enumerable:!0,get:function(){return a.setTesting}});var d=(s.DEFAULT_FEATURES,s.FEATURES,function(){});e.assert=d,e.info=d,e.warn=d,e.debug=d,e.deprecate=d,e.debugSeal=d,e.debugFreeze=d,e.runInDebug=d,e.deprecateFunc=function(){return arguments[arguments.length-1]},e.setDebugFunction=d,e.getDebugFunction=d,e._warnIfUsingStrippedFeatureFlags=void 0}),e("ember-debug/testing",["exports"],function(e){"use strict";e.isTesting=function(){return t},e.setTesting=function(e){t=!!e};var t=!1}),e("ember-debug/warn",["exports","ember-console","ember-debug/deprecate","ember-debug/handlers"],function(e){"use strict";e.missingOptionsDeprecation=e.missingOptionsIdDeprecation=e.registerHandler=void 0,e.default=function(){},e.registerHandler=function(){},e.missingOptionsIdDeprecation=void 0,e.missingOptionsDeprecation=void 0}),e("ember-environment",["exports"],function(e){"use strict";function t(e){return e&&e.Object===Object?e:void 0}function f(e){return!1!==e}function i(e){return!0===e}var a=t(function(e){return e&&void 0===e.nodeType?e:void 0}("object"==typeof global&&global))||t("object"==typeof self&&self)||t("object"==typeof window&&window)||n||new Function("return this")(),r="object"==typeof a.EmberENV&&a.EmberENV||"object"==typeof a.ENV&&a.ENV||{};r.ENABLE_ALL_FEATURES&&(r.ENABLE_OPTIONAL_FEATURES=!0),r.EXTEND_PROTOTYPES=function(e){return!1===e?{String:!1,Array:!1,Function:!1}:e&&!0!==e?{String:f(e.String),Array:f(e.Array),Function:f(e.Function)}:{String:!0,Array:!0,Function:!0}}(r.EXTEND_PROTOTYPES),r.LOG_STACKTRACE_ON_DEPRECATION=f(r.LOG_STACKTRACE_ON_DEPRECATION),r.LOG_VERSION=f(r.LOG_VERSION),r.LOG_BINDINGS=i(r.LOG_BINDINGS),r.RAISE_ON_DEPRECATION=i(r.RAISE_ON_DEPRECATION);var o="undefined"!=typeof window&&window===a&&window.document&&window.document.createElement&&!r.disableBrowserEnvironment,s=a.Ember||{},d={imports:s.imports||a,exports:s.exports||a,lookup:s.lookup||a},c=o?{hasDOM:!0,isChrome:!!window.chrome&&!window.opera,isFirefox:"undefined"!=typeof InstallTrigger,isPhantom:!!window.callPhantom,location:window.location,history:window.history,userAgent:window.navigator.userAgent,window:window}:{hasDOM:!1,isChrome:!1,isFirefox:!1,isPhantom:!1,location:null,history:null,userAgent:"Lynx (textmode)",window:null};e.ENV=r,e.context=d,e.environment=c}),e("ember-extension-support/container_debug_adapter",["exports","ember-metal","ember-runtime"],function(e,t,f){"use strict";e.default=f.Object.extend({resolver:null,canCatalogEntriesByType:function(e){return"model"!==e&&"template"!==e},catalogEntriesByType:function(e){var n=(0,f.A)(f.Namespace.NAMESPACES),i=(0,f.A)(),a=new RegExp(f.String.classify(e)+"$");return n.forEach(function(e){var n;if(e!==t.default)for(var r in e)e.hasOwnProperty(r)&&a.test(r)&&(n=e[r],"class"===(0,f.typeOf)(n)&&i.push(f.String.dasherize(r.replace(a,""))))}),i}})}),e("ember-extension-support/data_adapter",["exports","ember-utils","ember-metal","ember-runtime"],function(e,t,f,n){"use strict";e.default=n.Object.extend({init:function(){this._super.apply(this,arguments),this.releaseMethods=(0,n.A)()},containerDebugAdapter:void 0,attributeLimit:3,acceptsModelName:!0,releaseMethods:(0,n.A)(),getFilters:function(){return(0,n.A)()},watchModelTypes:function(e,t){var f=this,i=this.getModelTypes(),a=(0,n.A)();e(i.map(function(e){var n=e.klass,i=f.wrapModelType(n,e.name);return a.push(f.observeModelType(e.name,t)),i}));var r=function(){a.forEach(function(e){return e()}),f.releaseMethods.removeObject(r)};return this.releaseMethods.pushObject(r),r},_nameToClass:function(e){var f,n;return"string"==typeof e&&(f=(0,t.getOwner)(this),n=f.factoryFor("model:"+e),e=n&&n.class),e},watchRecords:function(e,t,f,i){function a(e){f([e])}var r=this,o=(0,n.A)(),s=this._nameToClass(e),d=this.getRecords(s,e),c=void 0,u=d.map(function(e){return o.push(r.observeRecord(e,a)),r.wrapRecord(e)}),l={didChange:function(e,f,s,d){var c,u,l;for(c=f;c<f+d;c++)u=(0,n.objectAt)(e,c),l=r.wrapRecord(u),o.push(r.observeRecord(u,a)),t([l]);s&&i(f,s)},willChange:function(){return this}};return(0,n.addArrayObserver)(d,this,l),c=function(){o.forEach(function(e){return e()}),(0,n.removeArrayObserver)(d,r,l),r.releaseMethods.removeObject(c)},t(u),this.releaseMethods.pushObject(c),c},willDestroy:function(){this._super.apply(this,arguments),this.releaseMethods.forEach(function(e){return e()})},detect:function(){return!1},columnsForType:function(){return(0,n.A)()},observeModelType:function(e,t){function i(){t([this.wrapModelType(r,e)])}var a=this,r=this._nameToClass(e),o=this.getRecords(r,e),s={didChange:function(){f.run.scheduleOnce("actions",this,i)},willChange:function(){return this}};return(0,n.addArrayObserver)(o,this,s),function(){return(0,n.removeArrayObserver)(o,a,s)}},wrapModelType:function(e,t){var n=this.getRecords(e,t);return{name:t,count:(0,f.get)(n,"length"),columns:this.columnsForType(e),object:e}},getModelTypes:function(){var e=this,t=this.get("containerDebugAdapter"),f=void 0;return f=t.canCatalogEntriesByType("model")?t.catalogEntriesByType("model"):this._getObjectsOnNamespaces(),f=(0,n.A)(f).map(function(t){return{klass:e._nameToClass(t),name:t}}),f=(0,n.A)(f).filter(function(t){return e.detect(t.klass)}),(0,n.A)(f)},_getObjectsOnNamespaces:function(){var e=this,t=(0,n.A)(n.Namespace.NAMESPACES),f=(0,n.A)();return t.forEach(function(t){var i;for(var a in t)t.hasOwnProperty(a)&&e.detect(t[a])&&(i=n.String.dasherize(a),f.push(i))}),f},getRecords:function(){return(0,n.A)()},wrapRecord:function(e){var t={object:e};return t.columnValues=this.getRecordColumnValues(e),t.searchKeywords=this.getRecordKeywords(e),t.filterValues=this.getRecordFilterValues(e),t.color=this.getRecordColor(e),t},getRecordColumnValues:function(){return{}},getRecordKeywords:function(){return(0,n.A)()},getRecordFilterValues:function(){return{}},getRecordColor:function(){return null},observeRecord:function(){return function(){}}})}),e("ember-extension-support/index",["exports","ember-extension-support/data_adapter","ember-extension-support/container_debug_adapter"],function(e,t,f){"use strict";Object.defineProperty(e,"DataAdapter",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"ContainerDebugAdapter",{enumerable:!0,get:function(){return f.default}})}),e("ember-glimmer/component-managers/abstract",["exports"],function(e){"use strict";var t=function(){function e(){this.debugStack=void 0}return e.prototype.prepareArgs=function(){return null},e.prototype.create=function(){},e.prototype.layoutFor=function(){},e.prototype.getSelf=function(e){return e},e.prototype.didCreateElement=function(){},e.prototype.didRenderLayout=function(){},e.prototype.didCreate=function(){},e.prototype.getTag=function(){return null},e.prototype.update=function(){},e.prototype.didUpdateLayout=function(){},e.prototype.didUpdate=function(){},e.prototype.getDestructor=function(){},e}();e.default=t}),e("ember-glimmer/component-managers/curly",["exports","ember-babel","ember-utils","@glimmer/reference","@glimmer/runtime","ember-debug","ember-glimmer/component","ember-glimmer/utils/bindings","ember-metal","ember-glimmer/utils/process-args","ember-views","container","ember-glimmer/component-managers/abstract","ember-glimmer/utils/curly-component-state-bucket","ember-glimmer/utils/references"],function(e,t,f,n,i,a,r,o,s,d,c,u,l,_,m){"use strict";function h(e,t){e.named.has("id")&&(t.elementId=t.id)}function p(e,t,f,n){for(var i,a,r,s=[],d=t.length-1;-1!==d;)i=t[d],a=o.AttributeBinding.parse(i),r=a[1],-1===s.indexOf(r)&&(s.push(r),o.AttributeBinding.install(e,f,a,n)),d--;-1===s.indexOf("id")&&n.addStaticAttribute(e,"id",f.elementId),-1===s.indexOf("style")&&o.IsVisibleBinding.install(e,f,n)}function g(e){var t=e.dynamicScope().view.tagName;return i.PrimitiveReference.create(""===t?null:t||"div")}function y(e){return e.getSelf().get("ariaRole")}function b(e){return e.instrumentDetails({initialRender:!0})}function v(e){return e.instrumentDetails({initialRender:!1})}e.CurlyComponentDefinition=e.PositionalArgumentReference=void 0,e.validatePositionalParameters=function(){},e.processComponentInitializationAssertions=function(e,t){},e.initialRenderInstrumentDetails=b,e.rerenderInstrumentDetails=v;var w=(0,t.taggedTemplateLiteralLoose)(["template:components/-default"],["template:components/-default"]),k=(0,u.privatize)(w),x=function(){function e(e){this.template=e}return e.prototype.compile=function(e){e.wrapLayout(this.template),e.tag.dynamic(g),e.attrs.dynamic("role",y),e.attrs.static("class","ember-view")},e}();x.id="curly";var q=e.PositionalArgumentReference=function(){function e(e){this.tag=(0,n.combineTagged)(e),this._references=e}return e.prototype.value=function(){return this._references.map(function(e){return e.value()})},e.prototype.get=function(e){return m.PropertyReference.create(this,e)},e}(),E=function(e){function n(){return(0,t.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,t.inherits)(n,e),n.prototype.prepareArgs=function(e,t){var n,i,a,r,o,s=e.ComponentClass.class.positionalParams,d="string"==typeof s,c=d||s.length>0,u=c&&0!==t.positional.length,l=e.args;if(!u&&!l)return null;var _=t.capture(),m=_.positional.references,h=void 0;e.args&&(n=e.args.positional.slice(m.length),m=m.concat(n),h=e.args.named);var p=void 0;if(d)i={},i[s]=new q(m),p=i,m=[];else if(c)for(p={},a=Math.min(m.length,s.length),r=0;r<a;r++)o=s[r],p[o]=m[r];return{positional:m,named:(0,f.assign)({},h,p,_.named.map)}},n.prototype.create=function(e,t,f,n,i,a){var o=n.view,c=t.ComponentClass,u=f.named.capture(),l=(0,d.processComponentArgs)(u);h(f,l),l.parentView=o,l[r.HAS_BLOCK]=a,l._targetObject=i.value();var m=c.create(l),p=(0,s._instrumentStart)("render.component",b,m);n.view=m,null!==o&&o.appendChild(m),""===m.tagName&&(e.isInteractive&&m.trigger("willRender"),m._transitionTo("hasElement"),e.isInteractive&&m.trigger("willInsertElement"));var g=new _.default(e,m,u,p);return f.named.has("class")&&(g.classRef=f.named.get("class")),e.isInteractive&&""!==m.tagName&&m.trigger("willRender"),g},n.prototype.layoutFor=function(e,t,f){var n,i=e.template;return i||(n=t.component,i=this.templateFor(n,f)),f.getCompiledBlock(x,i)},n.prototype.templateFor=function(e,t){var n,i=(0,s.get)(e,"layout"),a=e[f.OWNER];if(i)return t.getTemplate(i,a);var r=(0,s.get)(e,"layoutName");return r&&(n=a.lookup("template:"+r))?n:a.lookup(k)},n.prototype.getSelf=function(e){return e.component[r.ROOT_REF]},n.prototype.didCreateElement=function(e,t,f){var n=e.component,i=e.classRef,a=e.environment;(0,c.setViewElement)(n,t);var r=n.attributeBindings,s=n.classNames,d=n.classNameBindings;r&&r.length?p(t,r,n,f):(f.addStaticAttribute(t,"id",n.elementId),o.IsVisibleBinding.install(t,n,f)),i&&f.addDynamicAttribute(t,"class",i),s&&s.length&&s.forEach(function(e){f.addStaticAttribute(t,"class",e)}),d&&d.length&&d.forEach(function(e){o.ClassNameBinding.install(t,n,e,f)}),n._transitionTo("hasElement"),a.isInteractive&&n.trigger("willInsertElement")},n.prototype.didRenderLayout=function(e,t){e.component[r.BOUNDS]=t,e.finalize()},n.prototype.getTag=function(e){return e.component[r.DIRTY_TAG]},n.prototype.didCreate=function(e){var t=e.component;e.environment.isInteractive&&(t._transitionTo("inDOM"),t.trigger("didInsertElement"),t.trigger("didRender"))},n.prototype.update=function(e){var t,f=e.component,n=e.args,i=e.argsRevision,a=e.environment;e.finalizer=(0,s._instrumentStart)("render.component",v,f),n.tag.validate(i)||(t=(0,d.processComponentArgs)(n),e.argsRevision=n.tag.value(),f[r.IS_DISPATCHING_ATTRS]=!0,f.setProperties(t),f[r.IS_DISPATCHING_ATTRS]=!1,f.trigger("didUpdateAttrs"),f.trigger("didReceiveAttrs")),a.isInteractive&&(f.trigger("willUpdate"),f.trigger("willRender"))},n.prototype.didUpdateLayout=function(e){e.finalize()},n.prototype.didUpdate=function(e){var t=e.component;e.environment.isInteractive&&(t.trigger("didUpdate"),t.trigger("didRender"))},n.prototype.getDestructor=function(e){return e},n}(l.default);e.default=E;var T=new E;e.CurlyComponentDefinition=function(e){function f(f,n,i,a,r){var o=(0,t.possibleConstructorReturn)(this,e.call(this,f,r||T,n));return o.template=i,o.args=a,o}return(0,t.inherits)(f,e),f}(i.ComponentDefinition)}),e("ember-glimmer/component-managers/mount",["exports","ember-babel","@glimmer/runtime","@glimmer/reference","ember-glimmer/utils/references","ember-glimmer/component-managers/outlet","ember-glimmer/component-managers/abstract","ember-routing"],function(e,t,f,n,i,a,r,o){"use strict";e.MountDefinition=void 0;var s=new(function(e){function f(){return(0,t.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,t.inherits)(f,e),f.prototype.prepareArgs=function(){return null},f.prototype.create=function(e,t,f,i){var a=t.name;i.outletState=n.UNDEFINED_REFERENCE;var r=e.owner.buildChildEngineInstance(a);r.boot();var o={engine:r};return o.modelReference=f.named.get("model"),o},f.prototype.layoutFor=function(e,t,f){var n=t.engine.lookup("template:application");return f.getCompiledBlock(a.OutletLayoutCompiler,n)},f.prototype.getSelf=function(e){var t=e.engine,f=e.modelReference,n=t.factoryFor("controller:application")||(0,o.generateControllerFactory)(t,"application"),a=e.controller=n.create(),r=f.value();return e.modelRevision=f.tag.value(),a.set("model",r),new i.RootReference(a)},f.prototype.getDestructor=function(e){return e.engine},f.prototype.didRenderLayout=function(){},f.prototype.update=function(e){var t,f=e.controller,n=e.modelReference,i=e.modelRevision;n.tag.validate(i)||(t=n.value(),e.modelRevision=n.tag.value(),f.set("model",t))},f}(r.default));e.MountDefinition=function(e){function f(f){return(0,t.possibleConstructorReturn)(this,e.call(this,f,s,null))}return(0,t.inherits)(f,e),f}(f.ComponentDefinition)}),e("ember-glimmer/component-managers/outlet",["exports","ember-babel","ember-utils","@glimmer/runtime","ember-metal","ember-glimmer/utils/references","ember-glimmer/component-managers/abstract"],function(e,t,f,n,i,a,r){"use strict";function o(e){var t=e.render;return{object:t.name+":"+t.outlet}}function s(){}e.OutletLayoutCompiler=e.OutletComponentDefinition=e.TopLevelOutletComponentDefinition=void 0;var d=function(){function e(e){this.outletState=e,this.instrument()}return e.prototype.instrument=function(){this.finalizer=(0,i._instrumentStart)("render.outlet",o,this.outletState)},e.prototype.finalize=function(){(0,this.finalizer)(),this.finalizer=s},e}(),c=function(e){function f(){return(0,t.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,t.inherits)(f,e),f.prototype.create=function(e,t,f,n){var i=(n.outletState=n.outletState.get("outlets").get(t.outletName)).value();return new d(i)},f.prototype.layoutFor=function(e,t,f){return f.getCompiledBlock(m,e.template)},f.prototype.getSelf=function(e){var t=e.outletState;return new a.RootReference(t.render.controller)},f.prototype.didRenderLayout=function(e){e.finalize()},f}(r.default),u=new c,l=new(function(e){function f(){return(0,t.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,t.inherits)(f,e),f.prototype.create=function(e,t,f,n){return new d(n.outletState.value())},f.prototype.layoutFor=function(e,t,f){return f.getCompiledBlock(_,e.template)},f}(c));e.TopLevelOutletComponentDefinition=function(e){function n(n){var i=(0,t.possibleConstructorReturn)(this,e.call(this,"outlet",l,n));return i.template=n.template,(0,f.generateGuid)(i),i}return(0,t.inherits)(n,e),n}(n.ComponentDefinition);var _=function(){function e(e){this.template=e}return e.prototype.compile=function(e){e.wrapLayout(this.template),e.tag.static("div"),e.attrs.static("id",(0,f.guidFor)(this)),e.attrs.static("class","ember-view")},e}();_.id="top-level-outlet",e.OutletComponentDefinition=function(e){function n(n,i){var a=(0,t.possibleConstructorReturn)(this,e.call(this,"outlet",u,null));return a.outletName=n,a.template=i,(0,f.generateGuid)(a),a}return(0,t.inherits)(n,e),n}(n.ComponentDefinition);var m=e.OutletLayoutCompiler=function(){function e(e){this.template=e}return e.prototype.compile=function(e){e.wrapLayout(this.template)},e}();m.id="outlet"}),e("ember-glimmer/component-managers/render",["exports","ember-babel","@glimmer/runtime","ember-debug","ember-glimmer/utils/references","ember-routing","ember-glimmer/component-managers/outlet","ember-glimmer/component-managers/abstract"],function(e,t,f,n,i,a,r,o){"use strict";e.RenderDefinition=e.NON_SINGLETON_RENDER_MANAGER=e.SINGLETON_RENDER_MANAGER=e.AbstractRenderManager=void 0;var s=e.AbstractRenderManager=function(e){function f(){return(0,t.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,t.inherits)(f,e),f.prototype.layoutFor=function(e,t,f){return f.getCompiledBlock(r.OutletLayoutCompiler,e.template)},f.prototype.getSelf=function(e){var t=e.controller;return new i.RootReference(t)},f}(o.default),d=function(e){function f(){return(0,t.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,t.inherits)(f,e),f.prototype.create=function(e,t,f,n){var i=t.name,r=t.env,o=r.owner.lookup("controller:"+i)||(0,a.generateController)(r.owner,i);return n.rootOutletState&&(n.outletState=n.rootOutletState.getOrphan(i)),{controller:o}},f}(s);e.SINGLETON_RENDER_MANAGER=new d;var c=function(e){function f(){return(0,t.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,t.inherits)(f,e),f.prototype.create=function(e,t,f,n){var i=t.name,r=t.env,o=f.positional.at(0),s=(r.owner.factoryFor("controller:"+i)||(0,a.generateControllerFactory)(r.owner,i)).create({model:o.value()});return n.rootOutletState&&(n.outletState=n.rootOutletState.getOrphan(i)),{controller:s,model:o}},f.prototype.update=function(e){var t=e.controller,f=e.model;t.set("model",f.value())},f.prototype.getDestructor=function(e){return e.controller},f}(s);e.NON_SINGLETON_RENDER_MANAGER=new c,e.RenderDefinition=function(e){function f(f,n,i,a){var r=(0,t.possibleConstructorReturn)(this,e.call(this,"render",a,null));return r.name=f,r.template=n,r.env=i,r}return(0,t.inherits)(f,e),f}(f.ComponentDefinition)}),e("ember-glimmer/component-managers/root",["exports","ember-babel","@glimmer/runtime","ember-metal","ember-debug","ember-glimmer/utils/curly-component-state-bucket","ember-glimmer/component-managers/curly"],function(e,t,f,n,i,a,r){"use strict";e.RootComponentDefinition=void 0;var o=new(function(e){function f(){return(0,t.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,t.inherits)(f,e),f.prototype.create=function(e,t,f,i){var o=t.ComponentClass.create(),s=(0,n._instrumentStart)("render.component",r.initialRenderInstrumentDetails,o);return i.view=o,""===o.tagName&&(e.isInteractive&&o.trigger("willRender"),o._transitionTo("hasElement"),e.isInteractive&&o.trigger("willInsertElement")),new a.default(e,o,f.named.capture(),s)},f}(r.default));e.RootComponentDefinition=function(e){function f(f){var n=(0,t.possibleConstructorReturn)(this,e.call(this,"-root",o,{class:f.constructor,create:function(){return f}}));return n.template=void 0,n.args=void 0,n}return(0,t.inherits)(f,e),f}(f.ComponentDefinition)}),e("ember-glimmer/component",["exports","ember-utils","ember-views","ember-runtime","ember-debug","ember-metal","ember-glimmer/utils/references","@glimmer/reference","@glimmer/runtime"],function(e,t,f,n,i,a,r,o,s){"use strict";e.BOUNDS=e.HAS_BLOCK=e.IS_DISPATCHING_ATTRS=e.ROOT_REF=e.ARGS=e.DIRTY_TAG=void 0;var d,c=e.DIRTY_TAG=(0,t.symbol)("DIRTY_TAG"),u=e.ARGS=(0,t.symbol)("ARGS"),l=e.ROOT_REF=(0,t.symbol)("ROOT_REF"),_=e.IS_DISPATCHING_ATTRS=(0,t.symbol)("IS_DISPATCHING_ATTRS");e.HAS_BLOCK=(0,t.symbol)("HAS_BLOCK");var m=e.BOUNDS=(0,t.symbol)("BOUNDS"),h=f.CoreView.extend(f.ChildViewsSupport,f.ViewStateSupport,f.ClassNamesSupport,n.TargetActionSupport,f.ActionSupport,f.ViewMixin,(d={isComponent:!0,init:function(){this._super.apply(this,arguments),this[_]=!1,this[c]=new o.DirtyableTag,this[l]=new r.RootReference(this),this[m]=null,this.defaultLayout&&!this.layout&&(this.layout=this.defaultLayout)},rerender:function(){this[c].dirty(),this._super()},__defineNonEnumerable:function(e){this[e.name]=e.descriptor.value}},d[a.PROPERTY_DID_CHANGE]=function(e){if(!this[_]){var t=void 0,f=void 0;(t=this[u])&&(f=t[e])&&f[r.UPDATE]&&f[r.UPDATE]((0,a.get)(this,e))}},d.getAttr=function(e){return this.get(e)},d.readDOMAttr=function(e){var t=(0,f.getViewElement)(this);return(0,s.readDOMAttr)(t,e)},d));h[t.NAME_KEY]="Ember.Component",h.reopenClass({isComponentFactory:!0,positionalParams:[]}),e.default=h}),e("ember-glimmer/components/checkbox",["exports","ember-metal","ember-glimmer/component","ember-glimmer/templates/empty"],function(e,t,f,n){"use strict";e.default=f.default.extend({layout:n.default,classNames:["ember-checkbox"],tagName:"input",attributeBindings:["type","checked","indeterminate","disabled","tabindex","name","autofocus","required","form"],type:"checkbox",disabled:!1,indeterminate:!1,didInsertElement:function(){this._super.apply(this,arguments),(0,t.get)(this,"element").indeterminate=!!(0,t.get)(this,"indeterminate")},change:function(){(0,t.set)(this,"checked",this.$().prop("checked"))}})}),e("ember-glimmer/components/link-to",["exports","ember-console","ember-debug","ember-metal","ember-runtime","ember-views","ember-glimmer/templates/link-to","ember-glimmer/component"],function(e,t,f,n,i,a,r,o){"use strict";var s=o.default.extend({layout:r.default,tagName:"a",currentWhen:(0,i.deprecatingAlias)("current-when",{id:"ember-routing-view.deprecated-current-when",until:"3.0.0"}),"current-when":null,title:null,rel:null,tabindex:null,target:null,activeClass:"active",loadingClass:"loading",disabledClass:"disabled",_isDisabled:!1,replace:!1,attributeBindings:["href","title","rel","tabindex","target"],classNameBindings:["active","loading","disabled","transitioningIn","transitioningOut"],eventName:"click",init:function(){this._super.apply(this,arguments);var e=(0,n.get)(this,"eventName");this.on(e,this,this._invoke)},_routing:i.inject.service("-routing"),disabled:(0,n.computed)({get:function(){return!1},set:function(e,t){return void 0!==t&&this.set("_isDisabled",t),!!t&&(0,n.get)(this,"disabledClass")}}),_computeActive:function(e){if((0,n.get)(this,"loading"))return!1;var t,f=(0,n.get)(this,"_routing"),i=(0,n.get)(this,"models"),a=(0,n.get)(this,"resolvedQueryParams"),r=(0,n.get)(this,"current-when");if("boolean"==typeof r)return!!r&&(0,n.get)(this,"activeClass");var o=!!r;for(r=(r=r||(0,n.get)(this,"qualifiedRouteName")).split(" "),t=0;t<r.length;t++)if(f.isActiveForRoute(i,a,r[t],e,o))return(0,n.get)(this,"activeClass");return!1},active:(0,n.computed)("attrs.params","_routing.currentState",function(){var e=(0,n.get)(this,"_routing.currentState");return!!e&&this._computeActive(e)}),willBeActive:(0,n.computed)("_routing.targetState",function(){var e=(0,n.get)(this,"_routing"),t=(0,n.get)(e,"targetState");if((0,n.get)(e,"currentState")!==t)return!!this._computeActive(t)}),transitioningIn:(0,n.computed)("active","willBeActive",function(){return!0===(0,n.get)(this,"willBeActive")&&!(0,n.get)(this,"active")&&"ember-transitioning-in"}),transitioningOut:(0,n.computed)("active","willBeActive",function(){return!(!1!==(0,n.get)(this,"willBeActive")||!(0,n.get)(this,"active"))&&"ember-transitioning-out"}),_invoke:function(e){if(!(0,a.isSimpleClick)(e))return!0;var f=(0,n.get)(this,"preventDefault"),i=(0,n.get)(this,"target");if(!1!==f&&(i&&"_self"!==i||e.preventDefault()),!1===(0,n.get)(this,"bubbles")&&e.stopPropagation(),(0,n.get)(this,"_isDisabled"))return!1;if((0,n.get)(this,"loading"))return t.default.warn("This link-to is in an inactive loading state because at least one of its parameters presently has a null/undefined value, or the provided route name is invalid."),!1;if(i&&"_self"!==i)return!1;var r=(0,n.get)(this,"qualifiedRouteName"),o=(0,n.get)(this,"models"),s=(0,n.get)(this,"queryParams.values"),d=(0,n.get)(this,"replace"),c={queryParams:s,routeName:r};(0,n.flaggedInstrument)("interaction.link-to",c,this._generateTransition(c,r,o,s,d))},_generateTransition:function(e,t,f,i,a){var r=(0,n.get)(this,"_routing");return function(){e.transition=r.transitionTo(t,f,i,a)}},queryParams:null,qualifiedRouteName:(0,n.computed)("targetRouteName","_routing.currentState",function(){var e=(0,n.get)(this,"params").slice(),t=e[e.length-1];return t&&t.isQueryParams&&e.pop(),(this[o.HAS_BLOCK]?0===e.length:1===e.length)?(0,n.get)(this,"_routing.currentRouteName"):(0,n.get)(this,"targetRouteName")}),resolvedQueryParams:(0,n.computed)("queryParams",function(){var e={},t=(0,n.get)(this,"queryParams");if(!t)return e;var f=t.values;for(var i in f)f.hasOwnProperty(i)&&(e[i]=f[i]);return e}),href:(0,n.computed)("models","qualifiedRouteName",function(){if("a"===(0,n.get)(this,"tagName")){var e=(0,n.get)(this,"qualifiedRouteName"),t=(0,n.get)(this,"models");if((0,n.get)(this,"loading"))return(0,n.get)(this,"loadingHref");var f=(0,n.get)(this,"_routing"),i=(0,n.get)(this,"queryParams.values");return f.generateURL(e,t,i)}}),loading:(0,n.computed)("_modelsAreLoaded","qualifiedRouteName",function(){var e=(0,n.get)(this,"qualifiedRouteName");if(!(0,n.get)(this,"_modelsAreLoaded")||null==e)return(0,n.get)(this,"loadingClass")}),_modelsAreLoaded:(0,n.computed)("models",function(){var e,t=(0,n.get)(this,"models");for(e=0;e<t.length;e++)if(null==t[e])return!1;return!0}),_getModels:function(e){var t,f,n=e.length-1,a=new Array(n);for(t=0;t<n;t++){for(f=e[t+1];i.ControllerMixin.detect(f);)f=f.get("model");a[t]=f}return a},loadingHref:"#",didReceiveAttrs:function(){var e=void 0,t=(0,n.get)(this,"params");t&&(t=t.slice());var f=(0,n.get)(this,"disabledWhen");void 0!==f&&this.set("disabled",f),this[o.HAS_BLOCK]||this.set("linkTitle",t.shift()),this.set("targetRouteName",t[0]);var i=t[t.length-1];e=i&&i.isQueryParams?t.pop():{values:{}},this.set("queryParams",e),t.length>1?this.set("models",this._getModels(t)):this.set("models",[])}});s.toString=function(){return"LinkComponent"},s.reopenClass({positionalParams:"params"}),e.default=s}),e("ember-glimmer/components/text_area",["exports","ember-glimmer/component","ember-views","ember-glimmer/templates/empty"],function(e,t,f,n){"use strict";e.default=t.default.extend(f.TextSupport,{classNames:["ember-text-area"],layout:n.default,tagName:"textarea",attributeBindings:["rows","cols","name","selectionEnd","selectionStart","wrap","lang","dir","value"],rows:null,cols:null})}),e("ember-glimmer/components/text_field",["exports","ember-metal","ember-environment","ember-glimmer/component","ember-glimmer/templates/empty","ember-views"],function(e,t,f,n,i,a){"use strict";function r(e){if(e in o)return o[e];if(!f.environment.hasDOM)return o[e]=e,e;var t=document.createElement("input");try{t.type=e}catch(e){}return o[e]=t.type===e}var o=Object.create(null);e.default=n.default.extend(a.TextSupport,{layout:i.default,classNames:["ember-text-field"],tagName:"input",attributeBindings:["accept","autocomplete","autosave","dir","formaction","formenctype","formmethod","formnovalidate","formtarget","height","inputmode","lang","list","max","min","multiple","name","pattern","size","step","type","value","width"],value:"",type:(0,t.computed)({get:function(){return"text"},set:function(e,t){var f="text";return r(t)&&(f=t),f}}),size:null,pattern:null,min:null,max:null})}),e("ember-glimmer/dom",["exports","@glimmer/runtime","@glimmer/node"],function(e,t,f){"use strict";Object.defineProperty(e,"DOMChanges",{enumerable:!0,get:function(){return t.DOMChanges}}),Object.defineProperty(e,"DOMTreeConstruction",{enumerable:!0,get:function(){return t.DOMTreeConstruction}}),Object.defineProperty(e,"NodeDOMTreeConstruction",{enumerable:!0,get:function(){return f.NodeDOMTreeConstruction}})}),e("ember-glimmer/environment",["exports","ember-babel","ember-utils","ember-metal","ember-debug","ember-views","@glimmer/runtime","ember-glimmer/component-managers/curly","ember-glimmer/syntax","ember-glimmer/utils/iterable","ember-glimmer/utils/references","ember-glimmer/utils/debug-stack","ember-glimmer/helpers/if-unless","ember-glimmer/helpers/action","ember-glimmer/helpers/component","ember-glimmer/helpers/concat","ember-glimmer/helpers/get","ember-glimmer/helpers/hash","ember-glimmer/helpers/loc","ember-glimmer/helpers/log","ember-glimmer/helpers/mut","ember-glimmer/helpers/readonly","ember-glimmer/helpers/unbound","ember-glimmer/helpers/-class","ember-glimmer/helpers/-input-type","ember-glimmer/helpers/query-param","ember-glimmer/helpers/each-in","ember-glimmer/helpers/-normalize-class","ember-glimmer/helpers/-html-safe","ember-glimmer/protocol-for-url","ember-glimmer/modifiers/action","ember/features"],function(e,t,f,n,i,a,r,o,s,d,c,u,l,_,m,h,p,g,y,b,v,w,k,x,q,E,T,S,M,C,A){"use strict";function O(e){return{object:"component:"+e}}var R=function(e){function i(i){var s=i[f.OWNER],d=(0,t.possibleConstructorReturn)(this,e.apply(this,arguments));return d.owner=s,d.isInteractive=s.lookup("-environment:main").isInteractive,d.destroyedComponents=[],(0,C.default)(d),d._definitionCache=new n.Cache(2e3,function(e){var t=e.name,f=e.source,n=e.owner,i=(0,a.lookupComponent)(n,t,{source:f}),r=i.component,s=i.layout;if(r||s)return new o.CurlyComponentDefinition(t,r,s,void 0,void 0)},function(e){var t=e.name,n=e.source,i=e.owner,a=n&&d._resolveLocalLookupName(t,n,i)||t;return(0,f.guidFor)(i)+"|"+a}),d._templateCache=new n.Cache(1e3,function(e){var t,n=e.Template,i=e.owner;return n.create?n.create((t={env:d},t[f.OWNER]=i,t)):n},function(e){var t=e.Template,n=e.owner;return(0,f.guidFor)(n)+"|"+t.id}),d._compilerCache=new n.Cache(10,function(e){return new n.Cache(2e3,function(t){var f=new e(t);return(0,r.compileLayout)(f,d)},function(e){var t=e.meta.owner;return(0,f.guidFor)(t)+"|"+e.id})},function(e){return e.id}),d.builtInModifiers={action:new A.default},d.builtInHelpers={if:l.inlineIf,action:_.default,concat:h.default,get:p.default,hash:g.default,loc:y.default,log:b.default,mut:v.default,"query-params":E.default,readonly:w.default,unbound:k.default,unless:l.inlineUnless,"-class":x.default,"-each-in":T.default,"-input-type":q.default,"-normalize-class":S.default,"-html-safe":M.default,"-get-dynamic-var":r.getDynamicVar},d}return(0,t.inherits)(i,e),i.create=function(e){return new i(e)},i.prototype._resolveLocalLookupName=function(e,t,f){return f._resolveLocalLookupName(e,t)},i.prototype.macros=function(){var t=e.prototype.macros.call(this);return(0,s.populateMacros)(t.blocks,t.inlines),t},i.prototype.hasComponentDefinition=function(){return!1},i.prototype.getComponentDefinition=function(e,t){var f=t.owner,i=t.moduleName,a=(0,n._instrumentStart)("render.getComponentDefinition",O,e),r=this._definitionCache.get({name:e,source:i&&"template:"+i,owner:f});return a(),r},i.prototype.getTemplate=function(e,t){return this._templateCache.get({Template:e,owner:t})},i.prototype.getCompiledBlock=function(e,t){return this._compilerCache.get(e).get(t)},i.prototype.hasPartial=function(e,t){var f=t.owner;return(0,a.hasPartial)(e,f)},i.prototype.lookupPartial=function(e,t){var f=t.owner,n={template:(0,a.lookupPartial)(e,f)};if(n.template)return n;throw new Error(e+" is not a partial")},i.prototype.hasHelper=function(e,t){var f=t.owner,n=t.moduleName;return!("component"!==e&&!this.builtInHelpers[e])||f.hasRegistration("helper:"+e,{source:"template:"+n})||f.hasRegistration("helper:"+e)},i.prototype.lookupHelper=function(e,t){if("component"===e)return function(e,f){return(0,m.default)(e,f,t)};var f=t.owner,n=t.moduleName,i=this.builtInHelpers[e];if(i)return i;var a=f.factoryFor("helper:"+e,n&&{source:"template:"+n}||{})||f.factoryFor("helper:"+e);if(a.class.isHelperInstance)return function(e,t){return c.SimpleHelperReference.create(a.class.compute,t.capture())};if(a.class.isHelperFactory)return function(e,t){return c.ClassBasedHelperReference.create(a,e,t.capture())};throw new Error(e+" is not a helper")},i.prototype.hasModifier=function(e){return!!this.builtInModifiers[e]},i.prototype.lookupModifier=function(e){var t=this.builtInModifiers[e];if(t)return t;throw new Error(e+" is not a modifier")},i.prototype.toConditionalReference=function(e){return c.ConditionalReference.create(e)},i.prototype.iterableFor=function(e,t){return(0,d.default)(e,t)},i.prototype.scheduleInstallModifier=function(){var t;this.isInteractive&&(t=e.prototype.scheduleInstallModifier).call.apply(t,[this].concat(Array.prototype.slice.call(arguments)))},i.prototype.scheduleUpdateModifier=function(){var t;this.isInteractive&&(t=e.prototype.scheduleUpdateModifier).call.apply(t,[this].concat(Array.prototype.slice.call(arguments)))},i.prototype.didDestroy=function(e){e.destroy()},i.prototype.begin=function(){this.inTransaction=!0,e.prototype.begin.call(this)},i.prototype.commit=function(){var t,f=this.destroyedComponents;for(this.destroyedComponents=[],t=0;t<f.length;t++)f[t].destroy();e.prototype.commit.call(this),this.inTransaction=!1},i}(r.Environment);e.default=R}),e("ember-glimmer/helper",["exports","ember-utils","ember-runtime","@glimmer/reference"],function(e,t,f,n){"use strict";e.RECOMPUTE_TAG=void 0,e.helper=function(e){return{isHelperInstance:!0,compute:e}};var i=e.RECOMPUTE_TAG=(0,t.symbol)("RECOMPUTE_TAG"),a=f.FrameworkObject.extend({isHelperInstance:!0,init:function(){this._super.apply(this,arguments),this[i]=new n.DirtyableTag},recompute:function(){this[i].dirty()}});a.reopenClass({isHelperFactory:!0}),e.default=a}),e("ember-glimmer/helpers/-class",["exports","ember-glimmer/utils/references","ember-runtime"],function(e,t,f){"use strict";function n(e){var t=e.positional,n=t.at(0),i=t.length,a=n.value();return!0===a?i>1?f.String.dasherize(t.at(1).value()):null:!1===a?i>2?f.String.dasherize(t.at(2).value()):null:a}e.default=function(e,f){return new t.InternalHelperReference(n,f.capture())}}),e("ember-glimmer/helpers/-html-safe",["exports","ember-glimmer/utils/references","ember-glimmer/utils/string"],function(e,t,f){"use strict";function n(e){var t=e.positional.at(0);return new f.SafeString(t.value())}e.default=function(e,f){return new t.InternalHelperReference(n,f.capture())}}),e("ember-glimmer/helpers/-input-type",["exports","ember-glimmer/utils/references"],function(e,t){"use strict";function f(e){var t=e.positional;return"checkbox"===(e.named,t.at(0).value())?"-checkbox":"-text-field"}e.default=function(e,n){return new t.InternalHelperReference(f,n.capture())}}),e("ember-glimmer/helpers/-normalize-class",["exports","ember-glimmer/utils/references","ember-runtime"],function(e,t,f){"use strict";function n(e){var t=e.positional,n=(e.named,t.at(0).value().split(".")),i=n[n.length-1],a=t.at(1).value();return!0===a?f.String.dasherize(i):a||0===a?String(a):""}e.default=function(e,f){return new t.InternalHelperReference(n,f.capture())}}),e("ember-glimmer/helpers/action",["exports","ember-utils","ember-metal","ember-glimmer/utils/references","@glimmer/reference","ember-debug"],function(e,t,f,n,i,a){"use strict";function r(e){return e}function o(e,t){var n=null;t.length>0&&(n=function(e){return t.map(function(e){return e.value()}).concat(e)});var i=null;return e&&(i=function(t){var n=e.value();return n&&t.length>0&&(t[0]=(0,f.get)(t[0],n)),t}),n&&i?function(e){return i(n(e))}:n||i||r}function s(e,t,f,n,i){return function(){return d(e,t.value(),f.value(),n,i).apply(void 0,arguments)}}function d(e,t,n,i,a){var r,o=void 0,s=void 0;return"function"==typeof n[c]?(o=n,s=n[c]):"string"==(r=typeof n)?(o=t,s=t.actions&&t.actions[n]):"function"===r&&(o=e,s=n),function(){for(e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var e,t,n,a={target:o,args:t,label:"@glimmer/closure-action"};return(0,f.flaggedInstrument)("interaction.ember-action",a,function(){return f.run.join.apply(f.run,[o,s].concat(i(t)))})}}e.ACTION=e.INVOKE=void 0,e.default=function(e,t){var f=t.named,a=t.positional.capture();a.references;var r=a.references,l=r[0],_=r[1],m=r.slice(2),h=_._propertyKey,p=f.has("target")?f.get("target"):l,g=o(f.has("value")&&f.get("value"),m),y=void 0;return y="function"==typeof _[c]?d(_,_,_[c],g):(0,i.isConst)(p)&&(0,i.isConst)(_)?d(l.value(),p.value(),_.value(),g):s(l.value(),p,_,g,h),y[u]=!0,new n.UnboundReference(y)};var c=e.INVOKE=(0,t.symbol)("INVOKE"),u=e.ACTION=(0,t.symbol)("ACTION")}),e("ember-glimmer/helpers/component",["exports","ember-babel","ember-utils","ember-glimmer/utils/references","ember-glimmer/component-managers/curly","@glimmer/runtime","ember-debug"],function(e,t,f,n,i,a,r){"use strict";function o(e,t){var f=s(e,t);return new i.CurlyComponentDefinition(e.name,e.ComponentClass,e.template,f)}function s(e,t){var n,a,r,o=e.args,s=e.ComponentClass.class.positionalParams,d=t.positional.references.slice(1);s&&d.length&&(0,i.validatePositionalParameters)(t.named,d,s);var c={};if("string"!=typeof s&&s.length>0){for(n=Math.min(s.length,d.length),a=0;a<n;a++)r=s[a],c[r]=d[a];d.length=0}var u=o&&o.named||{},l=o&&o.positional||[],_=new Array(Math.max(l.length,d.length));return _.splice.apply(_,[0,l.length].concat(l)),_.splice.apply(_,[0,d.length].concat(d)),{positional:_,named:(0,f.assign)({},u,c,t.named.map)}}e.ClosureComponentReference=void 0,e.default=function(e,t,f){return d.create(t.capture(),f,e.env)};var d=e.ClosureComponentReference=function(e){function f(f,n,i){var a=(0,t.possibleConstructorReturn)(this,e.call(this)),r=f.positional.at(0);return a.defRef=r,a.tag=r.tag,a.args=f,a.meta=n,a.env=i,a.lastDefinition=void 0,a.lastName=void 0,a}return(0,t.inherits)(f,e),f.create=function(e,t,n){return new f(e,t,n)},f.prototype.compute=function(){var e=this.args,t=this.defRef,f=this.env,n=this.meta,i=this.lastDefinition,r=this.lastName,s=t.value(),d=null;if(s&&s===r)return i;if(this.lastName=s,"string"==typeof s)d=f.getComponentDefinition(s,n);else{if(!(0,a.isComponentDefinition)(s))return null;d=s}var c=o(d,e);return this.lastDefinition=c,c},f}(n.CachedReference)}),e("ember-glimmer/helpers/concat",["exports","ember-glimmer/utils/references","@glimmer/runtime"],function(e,t,f){"use strict";function n(e){return e.positional.value().map(f.normalizeTextValue).join("")}e.default=function(e,f){return new t.InternalHelperReference(n,f.capture())}}),e("ember-glimmer/helpers/each-in",["exports","ember-utils"],function(e,t){"use strict";e.isEachIn=function(e){return e&&e[f]},e.default=function(e,t){var n=Object.create(t.positional.at(0));return n[f]=!0,n};var f=(0,t.symbol)("EACH_IN")}),e("ember-glimmer/helpers/get",["exports","ember-babel","ember-metal","ember-glimmer/utils/references","@glimmer/reference"],function(e,t,f,n,i){"use strict";e.default=function(e,t){return a.create(t.positional.at(0),t.positional.at(1))};var a=function(e){function a(f,n){var a=(0,t.possibleConstructorReturn)(this,e.call(this));a.sourceReference=f,a.pathReference=n,a.lastPath=null,a.innerReference=null;var r=a.innerTag=new i.UpdatableTag(i.CONSTANT_TAG);return a.tag=(0,i.combine)([f.tag,n.tag,r]),a}return(0,t.inherits)(a,e),a.create=function(e,t){var f;return(0,i.isConst)(t)?(f=t.value().split("."),(0,i.referenceFromParts)(e,f)):new a(e,t)},a.prototype.compute=function(){var e,t=this.lastPath,f=this.innerReference,n=this.innerTag,a=this.lastPath=this.pathReference.value();return a!==t&&(a?("string"===(e=typeof a)?f=this.innerReference=(0,i.referenceFromParts)(this.sourceReference,a.split(".")):"number"===e&&(f=this.innerReference=this.sourceReference.get(""+a)),n.update(f.tag)):(f=this.innerReference=null,n.update(i.CONSTANT_TAG))),f?f.value():null},a.prototype[n.UPDATE]=function(e){(0,f.set)(this.sourceReference.value(),this.pathReference.value(),e)},a}(n.CachedReference)}),e("ember-glimmer/helpers/hash",["exports"],function(e){"use strict";e.default=function(e,t){return t.named.capture()}}),e("ember-glimmer/helpers/if-unless",["exports","ember-babel","ember-debug","ember-glimmer/utils/references","@glimmer/reference"],function(e,t,f,n,i){"use strict";e.inlineIf=function(e,t){var f=t.positional;switch(f.length){case 2:return a.create(f.at(0),f.at(1),null);case 3:return a.create(f.at(0),f.at(1),f.at(2))}},e.inlineUnless=function(e,t){var f=t.positional;switch(f.length){case 2:return a.create(f.at(0),null,f.at(1));case 3:return a.create(f.at(0),f.at(2),f.at(1))}};var a=function(e){function f(f,n,a){var r=(0,t.possibleConstructorReturn)(this,e.call(this));return r.branchTag=new i.UpdatableTag(i.CONSTANT_TAG),r.tag=(0,i.combine)([f.tag,r.branchTag]),r.cond=f,r.truthy=n,r.falsy=a,r}return(0,t.inherits)(f,e),f.create=function(e,t,a){var r=n.ConditionalReference.create(e),o=t||n.UNDEFINED_REFERENCE,s=a||n.UNDEFINED_REFERENCE;return(0,i.isConst)(r)?r.value()?o:s:new f(r,o,s)},f.prototype.compute=function(){var e=this.cond,t=this.truthy,f=this.falsy,n=e.value()?t:f;return this.branchTag.update(n.tag),n.value()},f}(n.CachedReference)}),e("ember-glimmer/helpers/loc",["exports","ember-glimmer/utils/references","ember-runtime"],function(e,t,f){"use strict";function n(e){var t=e.positional;return f.String.loc.apply(null,t.value())}e.default=function(e,f){return new t.InternalHelperReference(n,f.capture())}}),e("ember-glimmer/helpers/log",["exports","ember-glimmer/utils/references","ember-console"],function(e,t,f){"use strict";function n(e){var t=e.positional;f.default.log.apply(null,t.value())}e.default=function(e,f){return new t.InternalHelperReference(n,f.capture())}}),e("ember-glimmer/helpers/mut",["exports","ember-utils","ember-debug","ember-glimmer/utils/references","ember-glimmer/helpers/action"],function(e,t,f,n,i){"use strict";function a(e){return e&&e[r]}e.isMut=a,e.unMut=function(e){return e[o]||e},e.default=function(e,t){var f=t.positional.at(0);if(a(f))return f;var s=Object.create(f);return s[o]=f,s[i.INVOKE]=f[n.UPDATE],s[r]=!0,s};var r=(0,t.symbol)("MUT"),o=(0,t.symbol)("SOURCE")}),e("ember-glimmer/helpers/query-param",["exports","ember-utils","ember-glimmer/utils/references","ember-debug","ember-routing"],function(e,t,f,n,i){"use strict";function a(e){var f=(e.positional,e.named);return i.QueryParams.create({values:(0,t.assign)({},f.value())})}e.default=function(e,t){return new f.InternalHelperReference(a,t.capture())}}),e("ember-glimmer/helpers/readonly",["exports","ember-glimmer/utils/references","ember-glimmer/helpers/mut"],function(e,t,f){"use strict";e.default=function(e,n){var i=(0,f.unMut)(n.positional.at(0)),a=Object.create(i);return a[t.UPDATE]=void 0,a}}),e("ember-glimmer/helpers/unbound",["exports","ember-debug","ember-glimmer/utils/references"],function(e,t,f){"use strict";e.default=function(e,t){return f.UnboundReference.create(t.positional.at(0).value())}}),e("ember-glimmer/index",["exports","ember-glimmer/helpers/action","ember-glimmer/templates/root","ember-glimmer/template","ember-glimmer/components/checkbox","ember-glimmer/components/text_field","ember-glimmer/components/text_area","ember-glimmer/components/link-to","ember-glimmer/component","ember-glimmer/helper","ember-glimmer/environment","ember-glimmer/utils/string","ember-glimmer/renderer","ember-glimmer/template_registry","ember-glimmer/setup-registry","ember-glimmer/dom","ember-glimmer/syntax","ember-glimmer/component-managers/abstract"],function(e,t,f,n,i,a,r,o,s,d,c,u,l,_,m,h,p,g){"use strict";Object.defineProperty(e,"INVOKE",{enumerable:!0,get:function(){return t.INVOKE}}),Object.defineProperty(e,"RootTemplate",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"template",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Checkbox",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"TextField",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"TextArea",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"LinkComponent",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Helper",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"helper",{enumerable:!0,get:function(){return d.helper}}),Object.defineProperty(e,"Environment",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"SafeString",{enumerable:!0,get:function(){return u.SafeString}}),Object.defineProperty(e,"escapeExpression",{enumerable:!0,get:function(){return u.escapeExpression}}),Object.defineProperty(e,"htmlSafe",{enumerable:!0,get:function(){return u.htmlSafe}}),Object.defineProperty(e,"isHTMLSafe",{enumerable:!0,get:function(){return u.isHTMLSafe}}),Object.defineProperty(e,"_getSafeString",{enumerable:!0,get:function(){return u.getSafeString}}),Object.defineProperty(e,"Renderer",{enumerable:!0,get:function(){return l.Renderer}}),Object.defineProperty(e,"InertRenderer",{enumerable:!0,get:function(){return l.InertRenderer}}),Object.defineProperty(e,"InteractiveRenderer",{enumerable:!0,get:function(){return l.InteractiveRenderer}}),Object.defineProperty(e,"_resetRenderers",{enumerable:!0,get:function(){return l._resetRenderers}}),Object.defineProperty(e,"getTemplate",{enumerable:!0,get:function(){return _.getTemplate}}),Object.defineProperty(e,"setTemplate",{enumerable:!0,get:function(){return _.setTemplate}}),Object.defineProperty(e,"hasTemplate",{enumerable:!0,get:function(){return _.hasTemplate}}),Object.defineProperty(e,"getTemplates",{enumerable:!0,get:function(){return _.getTemplates}}),Object.defineProperty(e,"setTemplates",{enumerable:!0,get:function(){return _.setTemplates}}),Object.defineProperty(e,"setupEngineRegistry",{enumerable:!0,get:function(){return m.setupEngineRegistry}}),Object.defineProperty(e,"setupApplicationRegistry",{enumerable:!0,get:function(){return m.setupApplicationRegistry}}),Object.defineProperty(e,"DOMChanges",{enumerable:!0,get:function(){return h.DOMChanges}}),Object.defineProperty(e,"NodeDOMTreeConstruction",{enumerable:!0,get:function(){return h.NodeDOMTreeConstruction}}),Object.defineProperty(e,"DOMTreeConstruction",{enumerable:!0,get:function(){return h.DOMTreeConstruction}}),Object.defineProperty(e,"_registerMacros",{enumerable:!0,get:function(){return p.registerMacros}}),Object.defineProperty(e,"_experimentalMacros",{enumerable:!0,get:function(){return p.experimentalMacros}}),Object.defineProperty(e,"AbstractComponentManager",{enumerable:!0,get:function(){return g.default}})}),e("ember-glimmer/modifiers/action",["exports","ember-utils","ember-metal","ember-debug","ember-views","ember-glimmer/helpers/action"],function(e,t,f,n,i,a){"use strict";function r(e,t){var f;if(null===t||void 0===t){if(s.test(e.type))return(0,i.isSimpleClick)(e);t=""}if(t.indexOf("any")>=0)return!0;for(f=0;f<o.length;f++)if(e[o[f]+"Key"]&&-1===t.indexOf(o[f]))return!1;return!0}e.ActionState=e.ActionHelper=void 0;var o=["alt","shift","meta","ctrl"],s=/^click|mouse|touch/,d=e.ActionHelper={registeredActions:i.ActionManager.registeredActions,registerAction:function(e){var t=e.actionId;return i.ActionManager.registeredActions[t]=e,t},unregisterAction:function(e){var t=e.actionId;delete i.ActionManager.registeredActions[t]}},c=e.ActionState=function(){function e(e,t,f,n,i,a,r,o){this.element=e,this.actionId=t,this.actionName=f,this.actionArgs=n,this.namedArgs=i,this.positional=a,this.implicitTarget=r,this.dom=o,this.eventName=this.getEventName()}return e.prototype.getEventName=function(){return this.namedArgs.get("on").value()||"click"},e.prototype.getActionArgs=function(){var e,t=new Array(this.actionArgs.length);for(e=0;e<this.actionArgs.length;e++)t[e]=this.actionArgs[e].value();return t},e.prototype.getTarget=function(){var e=this.implicitTarget,t=this.namedArgs;return t.has("target")?t.get("target").value():e.value()},e.prototype.handler=function(e){var t=this,n=this.actionName,i=this.namedArgs,o=i.get("bubbles"),s=i.get("preventDefault"),d=i.get("allowedKeys"),c=this.getTarget();return!r(e,d.value())||(!1!==s.value()&&e.preventDefault(),!1===o.value()&&e.stopPropagation(),void(0,f.run)(function(){var e=t.getActionArgs(),i={args:e,target:c};return"function"==typeof n[a.INVOKE]?void(0,f.flaggedInstrument)("interaction.ember-action",i,function(){n[a.INVOKE].apply(n,e)}):"function"==typeof n?void(0,f.flaggedInstrument)("interaction.ember-action",i,function(){n.apply(c,e)}):(i.name=n,void(c.send?(0,f.flaggedInstrument)("interaction.ember-action",i,function(){c.send.apply(c,[n].concat(e))}):(0,f.flaggedInstrument)("interaction.ember-action",i,function(){c[n].apply(c,e)})))}))},e.prototype.destroy=function(){d.unregisterAction(this)},e}(),u=function(){function e(){}return e.prototype.create=function(e,f,n,i){var r,o=f.capture(),s=o.named,d=o.positional,u=void 0,l=void 0,_=void 0;d.length>1&&(u=d.at(0),(_=d.at(1))[a.INVOKE]?l=_:(_._propertyKey,l=_.value()));var m=[];for(r=2;r<d.length;r++)m.push(d.at(r));var h=(0,t.uuid)();return new c(e,h,l,m,s,d,u,i)},e.prototype.install=function(e){var t=e.dom,f=e.element,n=e.actionId;d.registerAction(e),t.setAttribute(f,"data-ember-action",""),t.setAttribute(f,"data-ember-action-"+n,n)},e.prototype.update=function(e){var t=e.positional.at(1);t[a.INVOKE]||(e.actionName=t.value()),e.eventName=e.getEventName()},e.prototype.getDestructor=function(e){return e},e}();e.default=u}),e("ember-glimmer/protocol-for-url",["exports","ember-environment","node-module"],function(e,t,f){"use strict";function n(e){return r||(r=document.createElement("a")),r.href=e,r.protocol}function i(e){var t=null;return"string"==typeof e&&(t=a.parse(e).protocol),null===t?":":t}e.default=function(e){var r=void 0;if(t.environment.hasDOM&&(r=n.call(e,"foobar:baz")),"foobar:"===r)e.protocolForURL=n;else if("object"==typeof URL)a=URL,e.protocolForURL=i;else{if(!f.IS_NODE)throw new Error("Could not find valid URL parsing mechanism for URL Sanitization");a=(0,f.require)("url"),e.protocolForURL=i}};var a=void 0,r=void 0}),e("ember-glimmer/renderer",["exports","ember-babel","ember-glimmer/utils/references","ember-metal","@glimmer/reference","ember-views","ember-glimmer/component","ember-glimmer/component-managers/root","ember-glimmer/component-managers/outlet","ember-debug"],function(e,t,f,n,i,a,r,o,s,d){"use strict";function c(e){p.push(e)}function u(e){var t=p.indexOf(e);p.splice(t,1)}function l(){}e.InteractiveRenderer=e.InertRenderer=void 0,e._resetRenderers=function(){p.length=0};var _=n.run.backburner,m=function(){function e(e,t,f){this.view=e,this.outletState=t,this.rootOutletState=f}return e.prototype.child=function(){return new e(this.view,this.outletState,this.rootOutletState)},e.prototype.get=function(e){return this.outletState},e.prototype.set=function(e,t){return this.outletState=t,t},e}(),h=function(){function e(e,t,f,n,i,r){var o=this;this.id=(0,a.getViewId)(e),this.env=t,this.root=e,this.result=void 0,this.shouldReflush=!1,this.destroyed=!1,this._removing=!1;var s=this.options={alwaysRevalidate:!1};this.render=function(){var e=f.render(n,i,r),t=void 0;do{t=e.next()}while(!t.done);var a=o.result=t.value;o.render=function(){return a.rerender(s)}}}return e.prototype.isFor=function(e){return this.root===e},e.prototype.destroy=function(){var e,t=this.result,f=this.env;this.destroyed=!0,this.env=null,this.root=null,this.result=null,this.render=null,t&&((e=!f.inTransaction)&&f.begin(),t.destroy(),e&&f.commit())},e}(),p=[];(0,n.setHasViews)(function(){return p.length>0});var g=0;_.on("begin",function(){var e;for(e=0;e<p.length;e++)p[e]._scheduleRevalidate()}),_.on("end",function(){var e;for(e=0;e<p.length;e++)if(!p[e]._isValid()){if(g>10)throw g=0,p[e].destroy(),new Error("infinite rendering invalidation detected");return g++,_.join(null,l)}g=0});var y=function(){function e(e,t){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.fallbackViewRegistry,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this._env=e,this._rootTemplate=t,this._viewRegistry=f,this._destinedForDOM=n,this._destroyed=!1,this._roots=[],this._lastRevision=null,this._isRenderingRoots=!1,this._removedRoots=[]}return e.prototype.appendOutletView=function(e,t){var f=new s.TopLevelOutletComponentDefinition(e),n=e.toReference(),i=e.outletState.render.controller;this._appendDefinition(e,f,t,n,i)},e.prototype.appendTo=function(e,t){var f=new o.RootComponentDefinition(e);this._appendDefinition(e,f,t)},e.prototype._appendDefinition=function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i.UNDEFINED_REFERENCE,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=new f.RootReference(t),s=new m(null,a,a,!0,r),d=new h(e,this._env,this._rootTemplate,o,n,s);this._renderRoot(d)},e.prototype.rerender=function(){this._scheduleRevalidate()},e.prototype.register=function(e){var t=(0,a.getViewId)(e);this._viewRegistry[t]=e},e.prototype.unregister=function(e){delete this._viewRegistry[(0,a.getViewId)(e)]},e.prototype.remove=function(e){e._transitionTo("destroying"),this.cleanupRootFor(e),(0,a.setViewElement)(e,null),this._destinedForDOM&&e.trigger("didDestroyElement"),e.isDestroying||e.destroy()},e.prototype.cleanupRootFor=function(e){if(!this._destroyed)for(var t,f=this._roots,n=this._roots.length;n--;)(t=f[n]).isFor(e)&&(t.destroy(),f.splice(n,1))},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._clearAllRoots())},e.prototype.getElement=function(){},e.prototype.getBounds=function(e){var t=e[r.BOUNDS];return{parentElement:t.parentElement(),firstNode:t.firstNode(),lastNode:t.lastNode()}},e.prototype.createElement=function(e){return this._env.getAppendOperations().createElement(e)},e.prototype._renderRoot=function(e){var t=this._roots;t.push(e),1===t.length&&c(this),this._renderRootsTransaction()},e.prototype._renderRoots=function(){var e,t,f,a,r,o=this._roots,s=this._env,d=this._removedRoots,c=void 0,l=void 0;do{for(s.begin(),l=o.length,c=!1,e=0;e<o.length;e++)(t=o[e]).destroyed?d.push(t):(f=t.shouldReflush,e>=l&&!f||(t.options.alwaysRevalidate=f,f=t.shouldReflush=(0,n.runInTransaction)(t,"render"),c=c||f));this._lastRevision=i.CURRENT_TAG.value(),s.commit()}while(c||o.length>l);for(;d.length;)a=d.pop(),r=o.indexOf(a),o.splice(r,1);0===this._roots.length&&u(this)},e.prototype._renderRootsTransaction=function(){if(!this._isRenderingRoots){this._isRenderingRoots=!0;var e=!1;try{this._renderRoots(),e=!0}finally{e||(this._lastRevision=i.CURRENT_TAG.value()),this._isRenderingRoots=!1}}},e.prototype._clearAllRoots=function(){var e,t=this._roots;for(e=0;e<t.length;e++)t[e].destroy();this._removedRoots.length=0,this._roots=null,t.length&&u(this)},e.prototype._scheduleRevalidate=function(){_.scheduleOnce("render",this,this._revalidate)},e.prototype._isValid=function(){return this._destroyed||0===this._roots.length||i.CURRENT_TAG.validate(this._lastRevision)},e.prototype._revalidate=function(){this._isValid()||this._renderRootsTransaction()},e}();e.InertRenderer=function(e){function f(){return(0,t.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,t.inherits)(f,e),f.create=function(e){return new this(e.env,e.rootTemplate,e._viewRegistry,!1)},f.prototype.getElement=function(){throw new Error("Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).")},f}(y),e.InteractiveRenderer=function(e){function f(){return(0,t.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,t.inherits)(f,e),f.create=function(e){return new this(e.env,e.rootTemplate,e._viewRegistry,!0)},f.prototype.getElement=function(e){return(0,a.getViewElement)(e)},f}(y)}),e("ember-glimmer/setup-registry",["exports","ember-babel","ember-environment","container","ember-glimmer/renderer","ember-glimmer/dom","ember-glimmer/views/outlet","ember-glimmer/components/text_field","ember-glimmer/components/text_area","ember-glimmer/components/checkbox","ember-glimmer/components/link-to","ember-glimmer/component","ember-glimmer/templates/component","ember-glimmer/templates/root","ember-glimmer/templates/outlet","ember-glimmer/environment"],function(e,t,f,n,i,a,r,o,s,d,c,u,l,_,m,h){"use strict";e.setupApplicationRegistry=function(e){e.injection("service:-glimmer-environment","appendOperations","service:-dom-tree-construction"),e.injection("renderer","env","service:-glimmer-environment"),e.register((0,n.privatize)(p),_.default),e.injection("renderer","rootTemplate",(0,n.privatize)(p)),e.register("renderer:-dom",i.InteractiveRenderer),e.register("renderer:-inert",i.InertRenderer),f.environment.hasDOM&&e.injection("service:-glimmer-environment","updateOperations","service:-dom-changes"),e.register("service:-dom-changes",{create:function(e){var t=e.document;return new a.DOMChanges(t)}}),e.register("service:-dom-tree-construction",{create:function(e){var t=e.document;return new(f.environment.hasDOM?a.DOMTreeConstruction:a.NodeDOMTreeConstruction)(t)}})},e.setupEngineRegistry=function(e){e.register("view:-outlet",r.default),e.register("template:-outlet",m.default),e.injection("view:-outlet","template","template:-outlet"),e.injection("service:-dom-changes","document","service:-document"),e.injection("service:-dom-tree-construction","document","service:-document"),e.register((0,n.privatize)(g),l.default),e.register("service:-glimmer-environment",h.default),e.injection("template","env","service:-glimmer-environment"),e.optionsForType("helper",{instantiate:!1}),e.register("component:-text-field",o.default),e.register("component:-text-area",s.default),e.register("component:-checkbox",d.default),e.register("component:link-to",c.default),e.register((0,n.privatize)(y),u.default)};var p=(0,t.taggedTemplateLiteralLoose)(["template:-root"],["template:-root"]),g=(0,t.taggedTemplateLiteralLoose)(["template:components/-default"],["template:components/-default"]),y=(0,t.taggedTemplateLiteralLoose)(["component:-default"],["component:-default"])}),e("ember-glimmer/syntax",["exports","ember-glimmer/syntax/render","ember-glimmer/syntax/outlet","ember-glimmer/syntax/mount","ember-glimmer/syntax/dynamic-component","ember-glimmer/utils/bindings","ember-glimmer/syntax/input","ember-glimmer/syntax/-text-area","ember-glimmer/syntax/utils","ember-debug"],function(e,t,f,n,i,a,r,o,s,d){"use strict";function c(e,t,f,n){var i=void 0;return e.indexOf("-")>-1&&(i=n.env.getComponentDefinition(e,n.meta.templateMeta)),!!i&&((0,a.wrapComponentClassAttribute)(f),n.component.static(i,[t,(0,s.hashToArgs)(f),null,null]),!0)}function u(e,t,f,n,i,r){if(-1===e.indexOf("-"))return!1;var o=r.meta.templateMeta,d=void 0;return e.indexOf("-")>-1&&(d=r.env.getComponentDefinition(e,o)),!!d&&((0,a.wrapComponentClassAttribute)(f),r.component.static(d,[t,(0,s.hashToArgs)(f),n,i]),!0)}e.experimentalMacros=void 0,e.registerMacros=function(e){l.push(e)},e.populateMacros=function(e,a){var s;for(a.add("outlet",f.outletMacro),a.add("component",i.inlineComponentMacro),a.add("render",t.renderMacro),a.add("mount",n.mountMacro),a.add("input",r.inputMacro),a.add("textarea",o.textAreaMacro),a.addMissing(c),e.add("component",i.blockComponentMacro),e.addMissing(u),s=0;s<l.length;s++)(0,l[s])(e,a);return{blocks:e,inlines:a}};var l=e.experimentalMacros=[]}),e("ember-glimmer/syntax/-text-area",["exports","ember-glimmer/utils/bindings","ember-glimmer/syntax/utils"],function(e,t,f){"use strict";e.textAreaMacro=function(e,n,i,a){var r=a.env.getComponentDefinition("-text-area",a.meta.templateMeta);return(0,t.wrapComponentClassAttribute)(i),a.component.static(r,[n,(0,f.hashToArgs)(i),null,null]),!0}}),e("ember-glimmer/syntax/dynamic-component",["exports","@glimmer/runtime","@glimmer/reference","ember-debug","ember-glimmer/syntax/utils"],function(e,t,f,n,i){"use strict";function a(e,t,f){var n=e.env,i=t.positional.at(0);return new r({nameRef:i,env:n,meta:f})}e.dynamicComponentMacro=function(e,t,f,n,r){var o=[e.slice(0,1),null,null,null],s=[e.slice(1),(0,i.hashToArgs)(t),null,null];return r.component.dynamic(o,a,s),!0},e.blockComponentMacro=function(e,t,f,n,r){var o=[e.slice(0,1),null,null,null],s=[e.slice(1),(0,i.hashToArgs)(t),f,n];return r.component.dynamic(o,a,s),!0},e.inlineComponentMacro=function(e,t,f,n){var r=[t.slice(0,1),null,null,null],o=[t.slice(1),(0,i.hashToArgs)(f),null,null];return n.component.dynamic(r,a,o),!0};var r=function(){function e(e){var t=e.nameRef,f=e.env,n=e.meta,i=e.args;this.tag=t.tag,this.nameRef=t,this.env=f,this.meta=n,this.args=i}return e.prototype.value=function(){var e=this.env,f=this.nameRef,n=this.meta,i=f.value();return"string"==typeof i?e.getComponentDefinition(i,n):(0,t.isComponentDefinition)(i)?i:null},e.prototype.get=function(){return f.UNDEFINED_REFERENCE},e}()}),e("ember-glimmer/syntax/input",["exports","ember-debug","ember-glimmer/utils/bindings","ember-glimmer/syntax/dynamic-component","ember-glimmer/syntax/utils"],function(e,t,f,n,i){"use strict";function a(e,t,f){var n=f.env.getComponentDefinition("-text-field",f.meta.templateMeta);return f.component.static(n,[e,(0,i.hashToArgs)(t),null,null]),!0}e.inputMacro=function(e,t,r,o){var s,d,c=void 0,u=void 0,l=-1;return r&&(c=r[0],u=r[1],l=c.indexOf("type"),c.indexOf("value")),t||(t=[]),l>-1?(s=u[l],Array.isArray(s)?(0,n.dynamicComponentMacro)(t,r,null,null,o):"checkbox"===s?((0,f.wrapComponentClassAttribute)(r),d=o.env.getComponentDefinition("-checkbox",o.meta.templateMeta),o.component.static(d,[t,(0,i.hashToArgs)(r),null,null]),!0):a(t,r,o)):a(t,r,o)}}),e("ember-glimmer/syntax/mount",["exports","ember-debug","ember-glimmer/syntax/utils","ember-glimmer/component-managers/mount"],function(e,t,f,n){"use strict";function i(e,t,f){var n=e.env,i=t.positional.at(0);return new a({nameRef:i,env:n,meta:f})}e.mountMacro=function(e,t,n,a){var r=[t.slice(0,1),null,null,null],o=[null,(0,f.hashToArgs)(n),null,null];return a.component.dynamic(r,i,o),!0};var a=function(){function e(e){var t=e.nameRef,f=e.env,n=e.meta;this.tag=t.tag,this.nameRef=t,this.env=f,this.meta=n,this._lastName=void 0,this._lastDef=void 0}return e.prototype.value=function(){var e=this.env,t=this.nameRef.value();return"string"==typeof t?this._lastName===t?this._lastDef:e.owner.hasRegistration("engine:"+t)?(this._lastName=t,this._lastDef=new n.MountDefinition(t),this._lastDef):null:null},e}()}),e("ember-glimmer/syntax/outlet",["exports","@glimmer/reference","ember-glimmer/component-managers/outlet"],function(e,t,f){"use strict";function n(e,t,f){return t||f?!t&&f||t&&!f?null:f.render.template===t.render.template&&f.render.controller===t.render.controller?e:null:e}function i(e,f){var n=e.dynamicScope().outletState,i=void 0;return i=0===f.positional.length?new t.ConstReference("main"):f.positional.at(0),new a(i,n)}e.outletMacro=function(e,t,f,n){t||(t=[]);var a=[t.slice(0,1),null,null,null];return n.component.dynamic(a,i,[[],null,null,null]),!0};var a=function(){function e(e,f){this.outletNameRef=e,this.parentOutletStateRef=f,this.definition=null,this.lastState=null;var n=this.outletStateTag=new t.UpdatableTag(f.tag);this.tag=(0,t.combine)([n.tag,e.tag])}return e.prototype.value=function(){var e=this.outletNameRef,t=this.parentOutletStateRef,i=this.definition,a=this.lastState,r=e.value(),o=t.get("outlets").get(r),s=this.lastState=o.value();this.outletStateTag.update(o.tag),i=n(i,a,s);var d=s&&s.render.template;return i||(this.definition=d?new f.OutletComponentDefinition(r,s.render.template):null)},e}()}),e("ember-glimmer/syntax/render",["exports","@glimmer/reference","ember-debug","ember-glimmer/syntax/utils","ember-glimmer/component-managers/render"],function(e,t,f,n,i){"use strict";function a(e,f){var n,a=e.env,r=f.positional.at(0).value(),o=a.owner.lookup("template:"+r),s=void 0;return f.named.has("controller")?(n=f.named.get("controller"),s=n.value()):s=r,1===f.positional.length?new t.ConstReference(new i.RenderDefinition(s,o,a,i.SINGLETON_RENDER_MANAGER)):new t.ConstReference(new i.RenderDefinition(s,o,a,i.NON_SINGLETON_RENDER_MANAGER))}e.renderMacro=function(e,t,f,i){t||(t=[]);var r=[t.slice(0),f,null,null],o=[t.slice(1),(0,n.hashToArgs)(f),null,null];return i.component.dynamic(r,a,o),!0}}),e("ember-glimmer/syntax/utils",["exports"],function(e){"use strict";e.hashToArgs=function(e){return null===e?null:[e[0].map(function(e){return"@"+e}),e[1]]}}),e("ember-glimmer/template",["exports","ember-utils","@glimmer/runtime"],function(e,t,f){"use strict";e.default=function(e){var n=(0,f.templateFactory)(e);return{id:n.id,meta:n.meta,create:function(e){return n.create(e.env,{owner:e[t.OWNER]})}}}}),e("ember-glimmer/template_registry",["exports"],function(e){"use strict";e.setTemplates=function(e){t=e},e.getTemplates=function(){return t},e.getTemplate=function(e){if(t.hasOwnProperty(e))return t[e]},e.hasTemplate=function(e){return t.hasOwnProperty(e)},e.setTemplate=function(e,f){return t[e]=f};var t={}}),e("ember-glimmer/templates/component",["exports","ember-glimmer/template"],function(e,t){"use strict";e.default=(0,t.default)({id:"mvSJ6iUj",block:'{"symbols":["&default"],"statements":[[11,1]],"hasEval":false}',meta:{moduleName:"ember-glimmer/templates/component.hbs"}})}),e("ember-glimmer/templates/empty",["exports","ember-glimmer/template"],function(e,t){"use strict";e.default=(0,t.default)({id:"EPhvcwzD",block:'{"symbols":[],"statements":[],"hasEval":false}',meta:{moduleName:"ember-glimmer/templates/empty.hbs"}})}),e("ember-glimmer/templates/link-to",["exports","ember-glimmer/template"],function(e,t){"use strict";e.default=(0,t.default)({id:"+G5dMm85",block:'{"symbols":["&default"],"statements":[[4,"if",[[19,0,["linkTitle"]]],null,{"statements":[[1,[18,"linkTitle"],false]],"parameters":[]},{"statements":[[11,1]],"parameters":[]}]],"hasEval":false}',meta:{moduleName:"ember-glimmer/templates/link-to.hbs"}})}),e("ember-glimmer/templates/outlet",["exports","ember-glimmer/template"],function(e,t){"use strict";e.default=(0,t.default)({id:"NblF8298",block:'{"symbols":[],"statements":[[1,[18,"outlet"],false]],"hasEval":false}',meta:{moduleName:"ember-glimmer/templates/outlet.hbs"}})}),e("ember-glimmer/templates/root",["exports","ember-glimmer/template"],function(e,t){"use strict";e.default=(0,t.default)({id:"Jhwo1zmY",block:'{"symbols":[],"statements":[[1,[25,"component",[[19,0,[]]],null],false]],"hasEval":false}',meta:{moduleName:"ember-glimmer/templates/root.hbs"}})}),e("ember-glimmer/utils/bindings",["exports","ember-babel","@glimmer/reference","@glimmer/wire-format","ember-debug","ember-metal","ember-runtime","ember-glimmer/component","ember-glimmer/utils/string"],function(e,t,f,n,i,a,r,o,s){"use strict";function d(e,t){return e[o.ROOT_REF].get(t)}function c(e,t){return"attrs"===t[0]&&(t.shift(),1===t.length)?d(e,t[0]):(0,f.referenceFromParts)(e[o.ROOT_REF],t)}e.ClassNameBinding=e.IsVisibleBinding=e.AttributeBinding=void 0,e.wrapComponentClassAttribute=function(e){if(!e)return e;var t,f,i,a,r=e[0],o=e[1],s=r.indexOf("class");return-1!==s&&(t=o[s],t[0]===n.Ops.Get&&(f=o[s],i=f[2],a=i[i.length-1],e[1][s]=[n.Ops.Helper,["-class"],[f,a]])),e},e.AttributeBinding={parse:function(e){var t,f,n=e.indexOf(":");return-1===n?[e,e,!0]:(t=e.substring(0,n),f=e.substring(n+1),[t,f,!1])},install:function(e,t,f,n){var i,r=f[0],o=f[1];if(f[2],"id"===o)return void 0!==(i=(0,a.get)(t,r))&&null!==i||(i=t.elementId),void n.addStaticAttribute(e,"id",i);var s=r.indexOf(".")>-1?c(t,r.split(".")):d(t,r);"style"===o&&(s=new _(s,d(t,"isVisible"))),n.addDynamicAttribute(e,o,s)}};var u="display: none;",l=(0,s.htmlSafe)(u),_=function(e){function n(n,i){var a=(0,t.possibleConstructorReturn)(this,e.call(this));return a.tag=(0,f.combine)([n.tag,i.tag]),a.inner=n,a.isVisible=i,a}return(0,t.inherits)(n,e),n.prototype.compute=function(){var e,t=this.inner.value();return!1!==this.isVisible.value()?t:t||0===t?(e=t+" "+u,(0,s.isHTMLSafe)(t)?(0,s.htmlSafe)(e):e):l},n}(f.CachedReference);e.IsVisibleBinding={install:function(e,t,n){n.addDynamicAttribute(e,"style",(0,f.map)(d(t,"isVisible"),this.mapStyleValue))},mapStyleValue:function(e){return!1===e?l:null}},e.ClassNameBinding={install:function(e,t,f,n){var i,a,r,o,s=f.split(":"),u=s[0],l=s[1],_=s[2];""===u?n.addStaticAttribute(e,"class",l):(i=u.indexOf(".")>-1,a=i&&u.split("."),r=i?c(t,a):d(t,u),o=void 0,o=void 0===l?new m(r,i?a[a.length-1]:u):new h(r,l,_),n.addDynamicAttribute(e,"class",o))}};var m=function(e){function f(f,n){var i=(0,t.possibleConstructorReturn)(this,e.call(this));return i.tag=f.tag,i.inner=f,i.path=n,i.dasherizedPath=null,i}return(0,t.inherits)(f,e),f.prototype.compute=function(){var e,t=this.inner.value();return!0===t?(e=this.path,this.dasherizedPath||(this.dasherizedPath=r.String.dasherize(e))):t||0===t?t:null},f}(f.CachedReference),h=function(e){function f(f,n,i){var a=(0,t.possibleConstructorReturn)(this,e.call(this));return a.tag=f.tag,a.inner=f,a.truthy=n||null,a.falsy=i||null,a}return(0,t.inherits)(f,e),f.prototype.compute=function(){var e=this.inner,t=this.truthy,f=this.falsy;return e.value()?t:f},f}(f.CachedReference)}),e("ember-glimmer/utils/curly-component-state-bucket",["exports"],function(e){"use strict";function t(){}var f=function(){function e(e,t,f,n){this.environment=e,this.component=t,this.classRef=null,this.args=f,this.argsRevision=f.tag.value(),this.finalizer=n}return e.prototype.destroy=function(){var e=this.component,t=this.environment;t.isInteractive&&(e.trigger("willDestroyElement"),e.trigger("willClearRender")),t.destroyedComponents.push(e)},e.prototype.finalize=function(){(0,this.finalizer)(),this.finalizer=t},e}();e.default=f}),e("ember-glimmer/utils/debug-stack",["exports"],function(e){"use strict";e.default=void 0}),e("ember-glimmer/utils/iterable",["exports","ember-babel","ember-utils","ember-metal","ember-runtime","ember-glimmer/utils/references","ember-glimmer/helpers/each-in","@glimmer/reference"],function(e,t,f,n,i,a,r,o){"use strict";function s(e){switch(e){case"@index":case void 0:case null:return c;case"@identity":return u;default:return function(t){return(0,n.get)(t,e)}}}function d(e){switch(e){case"@index":return c;case"@identity":case void 0:case null:return u;default:return function(t){return(0,n.get)(t,e)}}}function c(e,t){return String(t)}function u(e){switch(typeof e){case"string":case"number":return String(e);default:return(0,f.guidFor)(e)}}function l(e,t){var f=e[t];return f>0?(e[t]++,t+"be277757-bbbe-4620-9fcb-213ef433cca2"+f):(e[t]=1,t)}e.default=function(e,t){return(0,r.isEachIn)(e)?new g(e,s(t)):new y(e,d(t))};var _=function(){function e(e,t){this.array=e,this.length=e.length,this.keyFor=t,this.position=0,this.seen=Object.create(null)}return e.prototype.isEmpty=function(){return!1},e.prototype.getMemo=function(e){return e},e.prototype.getValue=function(e){return this.array[e]},e.prototype.next=function(){var e=this.length,t=this.keyFor,f=this.position,n=this.seen;if(f>=e)return null;var i=this.getValue(f),a=this.getMemo(f),r=l(n,t(i,a));return this.position++,{key:r,value:i,memo:a}},e}(),m=function(e){function f(f,i){var a=(0,t.possibleConstructorReturn)(this,e.call(this,f,i));return a.length=(0,n.get)(f,"length"),a}return(0,t.inherits)(f,e),f.prototype.getValue=function(e){return(0,i.objectAt)(this.array,e)},f}(_),h=function(e){function f(f,n,i){var a=(0,t.possibleConstructorReturn)(this,e.call(this,n,i));return a.keys=f,a.length=f.length,a}return(0,t.inherits)(f,e),f.prototype.getMemo=function(e){return this.keys[e]},f.prototype.getValue=function(e){return this.array[e]},f}(_),p=new(function(){function e(){}return e.prototype.isEmpty=function(){return!0},e.prototype.next=function(){throw new Error("Cannot call next() on an empty iterator")},e}()),g=function(){function e(e,t){this.ref=e,this.keyFor=t;var f=this.valueTag=new o.UpdatableTag(o.CONSTANT_TAG);this.tag=(0,o.combine)([e.tag,f])}return e.prototype.iterate=function(){var e,t,f=this.ref,i=this.keyFor,a=this.valueTag,r=f.value();a.update((0,n.tagFor)(r)),(0,n.isProxy)(r)&&(r=(0,n.get)(r,"content"));var o=typeof r;return!r||"object"!==o&&"function"!==o?p:(e=Object.keys(r),t=e.map(function(e){return r[e]}),e.length>0?new h(e,t,i):p)},e.prototype.valueReferenceFor=function(e){return new a.UpdatablePrimitiveReference(e.memo)},e.prototype.updateValueReference=function(e,t){e.update(t.memo)},e.prototype.memoReferenceFor=function(e){return new a.UpdatableReference(e.value)},e.prototype.updateMemoReference=function(e,t){e.update(t.value)},e}(),y=function(){function e(e,t){this.ref=e,this.keyFor=t;var f=this.valueTag=new o.UpdatableTag(o.CONSTANT_TAG);this.tag=(0,o.combine)([e.tag,f])}return e.prototype.iterate=function(){var e,t=this.ref,f=this.keyFor,a=this.valueTag,r=t.value();return a.update((0,n.tagForProperty)(r,"[]")),r&&"object"==typeof r?Array.isArray(r)?r.length>0?new _(r,f):p:(0,i.isEmberArray)(r)?(0,n.get)(r,"length")>0?new m(r,f):p:"function"==typeof r.forEach?(e=[],r.forEach(function(t){e.push(t)}),e.length>0?new _(e,f):p):p:p},e.prototype.valueReferenceFor=function(e){return new a.UpdatableReference(e.value)},e.prototype.updateValueReference=function(e,t){e.update(t.value)},e.prototype.memoReferenceFor=function(e){return new a.UpdatablePrimitiveReference(e.memo)},e.prototype.updateMemoReference=function(e,t){e.update(t.memo)},e}()}),e("ember-glimmer/utils/process-args",["exports","ember-utils","ember-glimmer/component","ember-glimmer/utils/references","ember-views","ember-glimmer/helpers/action"],function(e,t,f,n,i,a){"use strict";e.processComponentArgs=function(e){var t,i,r,s,d=e.names,c=e.value(),u=Object.create(null),l=Object.create(null);for(u[f.ARGS]=l,t=0;t<d.length;t++)i=d[t],r=e.get(i),"function"==typeof(s=c[i])&&s[a.ACTION]?c[i]=s:r[n.UPDATE]&&(c[i]=new o(r,s)),l[i]=r,u[i]=s;return u.attrs=c,u};var r=(0,t.symbol)("REF"),o=function(){function e(e,t){this[i.MUTABLE_CELL]=!0,this[r]=e,this.value=t}return e.prototype.update=function(e){this[r][n.UPDATE](e)},e}()}),e("ember-glimmer/utils/references",["exports","@glimmer/runtime","ember-babel","ember-utils","ember-metal","@glimmer/reference","ember-glimmer/utils/to-bool","ember-glimmer/helper"],function(e,t,f,n,i,a,r,o){"use strict";e.UnboundReference=e.InternalHelperReference=e.ClassBasedHelperReference=e.SimpleHelperReference=e.ConditionalReference=e.UpdatablePrimitiveReference=e.UpdatableReference=e.NestedPropertyReference=e.RootPropertyReference=e.PropertyReference=e.RootReference=e.CachedReference=e.UNDEFINED_REFERENCE=e.NULL_REFERENCE=e.UPDATE=void 0,Object.defineProperty(e,"NULL_REFERENCE",{enumerable:!0,get:function(){return t.NULL_REFERENCE}}),Object.defineProperty(e,"UNDEFINED_REFERENCE",{enumerable:!0,get:function(){return t.UNDEFINED_REFERENCE}});var s=e.UPDATE=(0,n.symbol)("UPDATE"),d=function(){function e(){}return e.prototype.get=function(e){return l.create(this,e)},e}(),c=e.CachedReference=function(e){function t(){var t=(0,f.possibleConstructorReturn)(this,e.call(this));return t._lastRevision=null,t._lastValue=null,t}return(0,f.inherits)(t,e),t.prototype.value=function(){var e=this.tag,t=this._lastRevision,f=this._lastValue;return t&&e.validate(t)||(f=this._lastValue=this.compute(),this._lastRevision=e.value()),f},t}(d),u=e.RootReference=function(e){function t(t){var n=(0,f.possibleConstructorReturn)(this,e.call(this,t));return n.children=Object.create(null),n}return(0,f.inherits)(t,e),t.prototype.get=function(e){var t=this.children[e];return t||(t=this.children[e]=new _(this.inner,e)),t},t}(a.ConstReference),l=e.PropertyReference=function(e){function t(){return(0,f.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,f.inherits)(t,e),t.create=function(e,t){return(0,a.isConst)(e)?new _(e.value(),t):new m(e,t)},t.prototype.get=function(e){return new m(this,e)},t}(c),_=e.RootPropertyReference=function(e){function t(t,n){var a=(0,f.possibleConstructorReturn)(this,e.call(this));return a._parentValue=t,a._propertyKey=n,a.tag=(0,i.tagForProperty)(t,n),a}return(0,f.inherits)(t,e),t.prototype.compute=function(){var e=this._parentValue,t=this._propertyKey;return(0,i.get)(e,t)},t.prototype[s]=function(e){(0,i.set)(this._parentValue,this._propertyKey,e)},t}(l),m=e.NestedPropertyReference=function(e){function t(t,n){var i=(0,f.possibleConstructorReturn)(this,e.call(this)),r=t.tag,o=new a.UpdatableTag(a.CONSTANT_TAG);return i._parentReference=t,i._parentObjectTag=o,i._propertyKey=n,i.tag=(0,a.combine)([r,o]),i}return(0,f.inherits)(t,e),t.prototype.compute=function(){var e=this._parentReference,t=this._parentObjectTag,f=this._propertyKey,n=e.value();t.update((0,i.tagForProperty)(n,f));var a=typeof n;return"string"===a&&"length"===f?n.length:"object"===a&&null!==n||"function"===a?(0,i.get)(n,f):void 0},t.prototype[s]=function(e){var t=this._parentReference.value();(0,i.set)(t,this._propertyKey,e)},t}(l),h=e.UpdatableReference=function(e){function t(t){var n=(0,f.possibleConstructorReturn)(this,e.call(this));return n.tag=new a.DirtyableTag,n._value=t,n}return(0,f.inherits)(t,e),t.prototype.value=function(){return this._value},t.prototype.update=function(e){e!==this._value&&(this.tag.dirty(),this._value=e)},t}(d);e.UpdatablePrimitiveReference=function(e){function n(){return(0,f.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,f.inherits)(n,e),n.prototype.get=function(){return t.UNDEFINED_REFERENCE},n}(h),e.ConditionalReference=function(e){function n(t){var n=(0,f.possibleConstructorReturn)(this,e.call(this,t));return n.objectTag=new a.UpdatableTag(a.CONSTANT_TAG),n.tag=(0,a.combine)([t.tag,n.objectTag]),n}return(0,f.inherits)(n,e),n.create=function(e){var f;return(0,a.isConst)(e)?(f=e.value(),(0,i.isProxy)(f)?new _(f,"isTruthy"):t.PrimitiveReference.create((0,r.default)(f))):new n(e)},n.prototype.toBool=function(e){return(0,i.isProxy)(e)?(this.objectTag.update((0,i.tagForProperty)(e,"isTruthy")),(0,i.get)(e,"isTruthy")):(this.objectTag.update((0,i.tagFor)(e)),(0,r.default)(e))},n}(t.ConditionalReference),e.SimpleHelperReference=function(e){function n(t,n){var i=(0,f.possibleConstructorReturn)(this,e.call(this));return i.tag=n.tag,i.helper=t,i.args=n,i}return(0,f.inherits)(n,e),n.create=function(e,f){var i,r,o,s,d;return(0,a.isConst)(f)?(i=f.positional,r=f.named,o=i.value(),s=r.value(),null===(d=e(o,s))?t.NULL_REFERENCE:void 0===d?t.UNDEFINED_REFERENCE:"object"==typeof d||"function"==typeof d?new u(d):t.PrimitiveReference.create(d)):new n(e,f)},n.prototype.compute=function(){var e=this.helper,t=this.args,f=t.positional,n=t.named;return e(f.value(),n.value())},n}(c),e.ClassBasedHelperReference=function(e){function t(t,n){var i=(0,f.possibleConstructorReturn)(this,e.call(this));return i.tag=(0,a.combine)([t[o.RECOMPUTE_TAG],n.tag]),i.instance=t,i.args=n,i}return(0,f.inherits)(t,e),t.create=function(e,f,n){var i=e.create();return f.newDestroyable(i),new t(i,n)},t.prototype.compute=function(){var e=this.instance,t=this.args,f=t.positional,n=t.named,i=f.value(),a=n.value();return e.compute(i,a)},t}(c),e.InternalHelperReference=function(e){function t(t,n){var i=(0,f.possibleConstructorReturn)(this,e.call(this));return i.tag=n.tag,i.helper=t,i.args=n,i}return(0,f.inherits)(t,e),t.prototype.compute=function(){return(0,this.helper)(this.args)},t}(c),e.UnboundReference=function(e){function n(){return(0,f.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,f.inherits)(n,e),n.create=function(e){return null===e?t.NULL_REFERENCE:void 0===e?t.UNDEFINED_REFERENCE:"object"==typeof e||"function"==typeof result?new n(e):t.PrimitiveReference.create(e)},n.prototype.get=function(e){return new n((0,i.get)(this.inner,e))},n}(a.ConstReference)}),e("ember-glimmer/utils/string",["exports","ember-debug"],function(e,t){"use strict";function f(e){return i[e]}e.SafeString=void 0,e.getSafeString=function(){return n},e.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return a.test(e)?e.replace(r,f):e},e.htmlSafe=function(e){return null===e||void 0===e?e="":"string"!=typeof e&&(e=""+e),new n(e)},e.isHTMLSafe=function(e){return e&&"function"==typeof e.toHTML};var n=e.SafeString=function(){function e(e){this.string=e}return e.prototype.toString=function(){return""+this.string},e.prototype.toHTML=function(){return this.toString()},e}(),i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},a=/[&<>"'`=]/,r=/[&<>"'`=]/g}),e("ember-glimmer/utils/to-bool",["exports","ember-runtime","ember-metal"],function(e,t,f){"use strict";e.default=function(e){return!(!e||!0!==e&&(0,t.isArray)(e)&&0===(0,f.get)(e,"length"))}}),e("ember-glimmer/views/outlet",["exports","ember-babel","ember-utils","@glimmer/reference","ember-environment","ember-metal"],function(e,t,f,n,i,a){"use strict";var r=function(){function e(e){this.outletView=e,this.tag=e._tag}return e.prototype.get=function(e){return new s(this,e)},e.prototype.value=function(){return this.outletView.outletState},e.prototype.getOrphan=function(e){return new o(this,e)},e.prototype.update=function(e){this.outletView.setOutletState(e)},e}(),o=function(e){function f(f,n){var i=(0,t.possibleConstructorReturn)(this,e.call(this,f.outletView));return i.root=f,i.name=n,i}return(0,t.inherits)(f,e),f.prototype.value=function(){var e=this.root.value().outlets.main.outlets.__ember_orphans__;if(!e)return null;var t=e.outlets[this.name];if(!t)return null;var f=Object.create(null);return f[t.render.outlet]=t,t.wasUsed=!0,{outlets:f}},f}(r),s=function(){function e(e,t){this.parent=e,this.key=t,this.tag=e.tag}return e.prototype.get=function(t){return new e(this,t)},e.prototype.value=function(){return this.parent.value()[this.key]},e}(),d=function(){function e(e,t,f,i){this._environment=e,this.renderer=t,this.owner=f,this.template=i,this.outletState=null,this._tag=new n.DirtyableTag}return e.extend=function(n){return function(e){function i(){return(0,t.possibleConstructorReturn)(this,e.apply(this,arguments))}return(0,t.inherits)(i,e),i.create=function(t){return t?e.create.call(this,(0,f.assign)({},n,t)):e.create.call(this,n)},i}(e)},e.reopenClass=function(e){(0,f.assign)(this,e)},e.create=function(t){var n=t._environment,i=t.renderer,a=t.template;return new e(n,i,t[f.OWNER],a)},e.prototype.appendTo=function(e){var t=void 0;t=(this._environment||i.environment).hasDOM&&"string"==typeof e?document.querySelector(e):e,a.run.schedule("render",this.renderer,"appendOutletView",this,t)},e.prototype.rerender=function(){},e.prototype.setOutletState=function(e){this.outletState={outlets:{main:e},render:{owner:void 0,into:void 0,outlet:"main",name:"-top-level",controller:void 0,ViewClass:void 0,template:void 0}},this._tag.dirty()},e.prototype.toReference=function(){return new r(this)},e.prototype.destroy=function(){},e}();e.default=d}),e("ember-metal",["exports","ember-environment","ember-utils","ember-debug","ember-babel","@glimmer/reference","require","ember-console","backburner"],function(e,t,f,n,i,a,r,o,s){"use strict";function d(e,t,f){var n,i=t[f+1],a=t[f+2];for(n=0;n<e.length;n+=3)if(e[n]===i&&e[n+1]===a)return;e.push(i,a,t[f+3])}function c(e,t,f){var n,i=-1;for(n=e.length-3;n>=0;n-=3)if(t===e[n]&&f===e[n+1]){i=n;break}return i}function u(t,f,n){var i,a,r,o,s=e.peekMeta(t);if(s){var d=s.matchingListeners(f);if(void 0!==d){var u=[];for(i=d.length-3;i>=0;i-=3)a=d[i],r=d[i+1],o=d[i+2],-1===c(n,a,r)&&(n.push(a,r,o),u.push(a,r,o));return u}}}function l(e,t,f,n,i){n||"function"!=typeof f||(n=f,f=null);var a=0;i&&(a|=yt),Q(e).addToListeners(t,f,n,a),"function"==typeof e.didAddListener&&e.didAddListener(t,f,n)}function _(e,t,f,n){n||"function"!=typeof f||(n=f,f=null);var i="function"==typeof e.didRemoveListener?e.didRemoveListener.bind(e):function(){};Q(e).removeFromListeners(t,f,n,i)}function m(e,t,f,n,i){return h(e,[t],f,n,i)}function h(e,t,f,n,i){return n||"function"!=typeof f||(n=f,f=null),Q(e).suspendListeners(t,f,n,i)}function p(t,n,i,a,r){var o,s,d,c,u;if(void 0===a&&(o=r||e.peekMeta(t),a="object"==typeof o&&null!==o&&o.matchingListeners(n)),void 0===a||0===a.length)return!1;for(s=a.length-3;s>=0;s-=3)d=a[s],c=a[s+1],u=a[s+2],c&&(u&bt||(u&yt&&_(t,n,d,c),d||(d=t),"string"==typeof c?i?f.applyStr(d,c,i):d[c]():i?c.apply(d,i):c.call(d)));return!0}function g(t,f){var n,i,a,r=[],o=e.peekMeta(t),s=o&&o.matchingListeners(f);if(!s)return r;for(n=0;n<s.length;n+=3)i=s[n],a=s[n+1],r.push([i,a]);return r}function y(){return new a.DirtyableTag}function b(e,t){return"object"==typeof e&&null!==e?(t||Q(e)).writableTag(y):a.CONSTANT_TAG}function v(e,t){var f=e.readableTag();void 0!==f&&f.dirty();var n=e.readableTags(),i=void 0!==n?n[t]:void 0;void 0!==i&&i.dirty(),"content"===t&&e.isProxy()&&e.getTag().contentDidChange(),void 0===f&&void 0===i||w()}function w(){void 0===kt&&(kt=r("ember-metal").run),wt()&&kt.backburner.ensureInstance()}function k(t,f,n){var i=n||e.peekMeta(t);if(!i||i.isInitialized(t)){var a=i&&i.peekWatching(f)>0,r=t[f];null!==r&&"object"==typeof r&&r.isDescriptor&&r.willChange&&r.willChange(t,f),a&&(q(t,f,i),S(t,f,i),P(t,f,i))}}function x(t,f,n){var i=n||e.peekMeta(t),a=!!i;if(!a||i.isInitialized(t)){var r=t[f];if(null!==r&&"object"==typeof r&&r.isDescriptor&&r.didChange&&r.didChange(t,f),a&&i.peekWatching(f)>0&&(i.hasDeps(f)&&!i.isSourceDestroying()&&E(t,f,i),M(t,f,i),N(t,f,i)),t[qt]&&t[qt](f),a){if(i.isSourceDestroying())return;v(i,f)}}}function q(e,t,f){var n,i;f.isSourceDestroying()||f.hasDeps(t)&&(n=Mt,(i=!n)&&(n=Mt={}),T(k,e,t,n,f),i&&(Mt=null))}function E(e,t,f){var n=Ct,i=!n;i&&(n=Ct={}),T(x,e,t,n,f),i&&(Ct=null)}function T(e,t,n,i,a){var r=void 0,o=void 0,s=f.guidFor(t),d=i[s];d||(d=i[s]={}),d[n]||(d[n]=!0,a.forEachInDeps(n,function(f,n){n&&(r=t[f],(o=null!==r&&"object"==typeof r&&r.isDescriptor)&&r._suspended===t||e(t,f,a))}))}function S(e,t,f){var n=f.readableChainWatchers();n&&n.notify(t,!1,k)}function M(e,t,f){var n=f.readableChainWatchers();n&&n.notify(t,!0,x)}function C(e,t,f){var n=f.readableChainWatchers();n&&n.revalidate(t)}function A(){St++}function O(){--St<=0&&(Et.clear(),Tt.flush())}function R(e,t){A();try{e.call(t)}finally{O.call(t)}}function P(e,t,f){if(!f.isSourceDestroying()){var n=t+":before",i=void 0,a=void 0;St?(i=Et.add(e,t,n),a=u(e,n,i),p(e,n,[e,t],a)):p(e,n,[e,t])}}function N(e,t,f){if(!f.isSourceDestroying()){var n=t+":change",i=void 0;St?(i=Tt.add(e,t,n),u(e,n,i)):p(e,n,[e,t])}}function L(){this.isDescriptor=!0}function j(e,t,f,n,i){i||(i=Q(e));var a=i.peekWatching(t),r=void 0!==a&&a>0,o=e[t];null!==o&&"object"==typeof o&&o.isDescriptor&&o.teardown(e,t,i);var s=void 0;return f instanceof L?(s=f,e[t]=s,$(e.constructor),"function"==typeof f.setup&&f.setup(e,t)):void 0===f||null===f?(s=n,e[t]=n):(s=f,Object.defineProperty(e,t,f)),r&&C(e,t,i),"function"==typeof e.didDefineProperty&&e.didDefineProperty(e,t,s),this}function $(e){if(!1!==At){var t=Q(e).readableCache();t&&void 0!==t._computedProperties&&(t._computedProperties=void 0)}}function D(e,t,f){if("object"==typeof e&&null!==e){var n,i=f||Q(e),a=i.peekWatching(t)||0;i.writeWatching(t,a+1),0===a&&(n=e[t],null!==n&&"object"==typeof n&&n.isDescriptor&&n.willWatch&&n.willWatch(e,t),"function"==typeof e.willWatchProperty&&e.willWatchProperty(t))}}function I(t,f,n){if("object"==typeof t&&null!==t){var i,a=n||e.peekMeta(t);if(a&&!a.isSourceDestroyed()){var r=a.peekWatching(f);1===r?(a.writeWatching(f,0),i=t[f],null!==i&&"object"==typeof i&&i.isDescriptor&&i.didUnwatch&&i.didUnwatch(t,f),"function"==typeof t.didUnwatchProperty&&t.didUnwatchProperty(f)):r>1&&a.writeWatching(f,r-1)}}}function U(e,t){return(t||Q(e)).writableChains(F)}function F(e){return new Pt(null,null,e)}function z(e,t,f){if("object"==typeof e&&null!==e){var n=f||Q(e),i=n.peekWatching(t)||0;n.writeWatching(t,i+1),0===i&&U(e,n).add(t)}}function B(t,f,n){if("object"==typeof t&&null!==t){var i=n||e.peekMeta(t);if(void 0!==i){var a=i.peekWatching(f)||0;1===a?(i.writeWatching(f,0),U(t,i).remove(f)):a>1&&i.writeWatching(f,a-1)}}}function H(e){return e.match(Ot)[0]}function V(e){return"object"==typeof e&&null!==e}function G(e){return!(V(e)&&e.isDescriptor&&!1===e._volatile)}function W(){return new Rt}function X(e,t,f){var n=Q(e);n.writableChainWatchers(W).add(t,f),D(e,t,n)}function Y(t,f,n,i){if(V(t)){var a=i||e.peekMeta(t);a&&a.readableChainWatchers()&&((a=Q(t)).readableChainWatchers().remove(f,n),I(t,f,a))}}function K(t,f){if(V(t)){var n,i=e.peekMeta(t);if(void 0===i||i.proto!==t)return G(t[f])?ne(t,f):void 0!==(n=i.readableCache())?pe.get(n,f):void 0}}function J(t){var f=e.peekMeta(t);void 0!==f&&f.destroy()}function Q(t){var f=e.peekMeta(t),n=void 0;if(void 0!==f){if(f.source===t)return f;n=f}var i=new $t(t,n);return Ft(t,i),i}function Z(e){return Gt.get(e)}function ee(e){return-1!==Wt.get(e)}function te(e){return Xt.get(e)}function fe(e){return Yt.get(e)}function ne(e,t){var f=e[t];return null!==f&&"object"==typeof f&&f.isDescriptor?f.get(e,t):ee(t)?ie(e,t):void 0!==f||"object"!=typeof e||t in e||"function"!=typeof e.unknownProperty?f:e.unknownProperty(t)}function ie(e,t){var f,n=e,i=t.split(".");for(f=0;f<i.length;f++){if(!ae(n))return;if((n=ne(n,i[f]))&&n.isDestroyed)return}return n}function ae(e){return void 0!==e&&null!==e&&Kt[typeof e]}function re(t,f,n,i){if(ee(f))return oe(t,f,n,i);var a,r=t[f];return null!==r&&"object"==typeof r&&r.isDescriptor?r.set(t,f,n):!t.setUnknownProperty||void 0!==r||f in t?r!==n&&(a=e.peekMeta(t),k(t,f,a),t[f]=n,x(t,f,a)):t.setUnknownProperty(f,n),n}function oe(e,t,f,i){var a=t.slice(t.lastIndexOf(".")+1);if("this"!==(t=t===a?a:t.slice(0,t.length-(a.length+1)))&&(e=ie(e,t)),!a||0===a.length)throw new n.Error("Property set failed: You passed an empty path");if(!e){if(i)return;throw new n.Error('Property set failed: object in path "'+t+'" could not be found or was destroyed.')}return re(e,a,f)}function se(e,t,f){return re(e,t,f,!0)}function de(e,t){var f=e.indexOf("{");f<0?t(e.replace(Jt,".[]")):ce("",e,f,t)}function ce(e,t,f,n){var i=t.indexOf("}"),a=0,r=void 0,o=void 0,s=t.substring(f+1,i).split(","),d=t.substring(i+1);for(e+=t.substring(0,f),o=s.length;a<o;)(r=d.indexOf("{"))<0?n((e+s[a++]+d).replace(Jt,".[]")):ce(e+s[a++],d,r,n)}function ue(e,t,f){ee(t)?z(e,t,f):D(e,t,f)}function le(e,t,f){ee(t)?B(e,t,f):I(e,t,f)}function _e(e,t,f,n){var i=void 0,a=void 0,r=e._dependentKeys;if(r)for(i=0;i<r.length;i++)a=r[i],n.writeDeps(a,f,(n.peekDeps(a,f)||0)+1),ue(t,a,n)}function me(e,t,f,n){var i,a,r=e._dependentKeys;if(r)for(i=0;i<r.length;i++)a=r[i],n.writeDeps(a,f,(n.peekDeps(a,f)||0)-1),le(t,a,n)}function he(e,t){this.isDescriptor=!0,"function"==typeof e?this._getter=e:(this._getter=e.get,this._setter=e.set),this._suspended=void 0,this._meta=void 0,this._volatile=!1,this._dependentKeys=t&&t.dependentKeys,this._readOnly=!1}function pe(t,f){var n=e.peekMeta(t),i=n&&n.source===t&&n.readableCache(),a=i&&i[f];if(a!==Nt)return a}function ge(e,t){throw new n.Error("Cannot set read-only property '"+t+"' on object: "+f.inspect(e))}function ye(e,t,f){return j(e,t,null),re(e,t,f)}function be(e){var t,f=[],n=void 0;for(t=0;t<tf.length;t++)(n=tf[t]).regex.test(e)&&f.push(n.object);return ff[e]=f,f}function ve(e,t,f,n){var i=void 0;try{i=e.call(n)}catch(e){f.exception=e,i=f}finally{t()}return i}function we(){}function ke(e,f,n){if(0===tf.length)return we;var i=ff[e];if(i||(i=be(e)),0===i.length)return we;var a=f(n),r=t.ENV.STRUCTURED_PROFILE,o=void 0;r&&(o=e+": "+a.object,console.time(o));var s=new Array(i.length),d=void 0,c=void 0,u=nf();for(d=0;d<i.length;d++)c=i[d],s[d]=c.before(e,u,a);return function(){var t=void 0,f=void 0,n=nf();for(t=0;t<i.length;t++)"function"==typeof(f=i[t]).after&&f.after(e,n,a,s[t]);r&&console.timeEnd(o)}}function xe(e){rf=e}function qe(e){of?of(e):Ee(e)}function Ee(e){if(n.isTesting())throw e;rf?rf(e):o.error(af(e))}function Te(e){return"object"==typeof e&&null!==e||"function"==typeof e}function Se(e){var t,n,i,a;if(!(this instanceof Se))throw new TypeError("Constructor WeakMap requires 'new'");if(this._id=f.GUID_KEY+sf++,null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("The weak map constructor polyfill only supports an array argument");for(t=0;t<e.length;t++)n=e[t],i=n[0],a=n[1],this.set(i,a)}}function Me(e){return null===e||void 0===e}function Ce(e){var t,f,n=Me(e);if(n)return n;if("number"==typeof e.size)return!e.size;var i=typeof e;return"object"===i&&"number"==typeof(t=ne(e,"size"))?!t:"number"==typeof e.length&&"function"!==i?!e.length:"object"===i&&"number"==typeof(f=ne(e,"length"))&&!f}function Ae(e){return Ce(e)||"string"==typeof e&&!1===/\S/.test(e)}function Oe(){return cf.run.apply(cf,arguments)}function Re(e){throw new TypeError(Object.prototype.toString.call(e)+" is not a function")}function Pe(e){throw new TypeError("Constructor "+e+" requires 'new'")}function Ne(e){var t=Object.create(null);for(var f in e)t[f]=e[f];return t}function Le(e,t){var f=e._keys.copy(),n=Ne(e._values);return t._keys=f,t._values=n,t.size=e.size,t}function je(){this instanceof je?this.clear():Pe("OrderedSet")}function $e(){this instanceof $e?(this._keys=je.create(),this._values=Object.create(null),this.size=0):Pe("Map")}function De(e){this._super$constructor(),this.defaultValue=e.defaultValue}function Ie(e){return e+":change"}function Ue(e){return e+":before"}function Fe(e,t,f,n){return l(e,Ie(t),f,n),ue(e,t),this}function ze(e,t,f,n){return le(e,t),_(e,Ie(t),f,n),this}function Be(e,t,f,n){return l(e,Ue(t),f,n),ue(e,t),this}function He(e,t,f,n,i){return m(e,Ie(t),f,n,i)}function Ve(e,t,f,n){return le(e,t),_(e,Ue(t),f,n),this}function Ge(e,t,f,n,i,a){}function We(e){return"function"==typeof e&&!1!==e.isMethod&&e!==Boolean&&e!==Object&&e!==Number&&e!==Array&&e!==Date&&e!==String}function Xe(e,t){var n=void 0;return t instanceof gf?(n=f.guidFor(t),e.peekMixins(n)?pf:(e.writeMixins(n,t),t.properties)):t}function Ye(e,t,f,n){var i=f[e]||n[e];return t[e]&&(i=i?mf.call(i,t[e]):t[e]),i}function Ke(e,t,n,i,a,r){var o,s,d=void 0;return void 0===i[t]&&(d=a[t]),d||(o=r[t],s=null!==o&&"object"==typeof o&&o.isDescriptor?o:void 0,d=s),void 0!==d&&d instanceof he?(n=Object.create(n),n._getter=f.wrap(n._getter,d._getter),d._setter&&(n._setter?n._setter=f.wrap(n._setter,d._setter):n._setter=d._setter),n):n}function Je(e,t,n,i,a){var r=void 0;return void 0===a[t]&&(r=i[t]),void 0===(r=r||e[t])||"function"!=typeof r?n:f.wrap(n,r)}function Qe(e,t,n,i){var a=i[t]||e[t];return null===a||void 0===a?f.makeArray(n):hf(a)?null===n||void 0===n?a:mf.call(a,n):mf.call(f.makeArray(a),n)}function Ze(e,t,n,i){var a,r=i[t]||e[t];if(!r)return n;var o=f.assign({},r),s=!1;for(var d in n)n.hasOwnProperty(d)&&(a=n[d],We(a)?(s=!0,o[d]=Je(e,d,a,r,{})):o[d]=a);return s&&(o._super=f.ROOT),o}function et(e,t,f,n,i,a,r,o){if(f instanceof L){if(f===vf&&i[t])return pf;f._getter&&(f=Ke(n,t,f,a,i,e)),i[t]=f,a[t]=void 0}else r&&r.indexOf(t)>=0||"concatenatedProperties"===t||"mergedProperties"===t?f=Qe(e,t,f,a):o&&o.indexOf(t)>=0?f=Ze(e,t,f,a):We(f)&&(f=Je(e,t,f,a,i)),i[t]=void 0,a[t]=f}function tt(e,t,f,n,i,a){var r,o=void 0,s=void 0,d=void 0,c=void 0,u=void 0;for(r=0;r<e.length;r++)if(o=e[r],(s=Xe(t,o))!==pf)if(s){i.willMergeMixin&&i.willMergeMixin(s),c=Ye("concatenatedProperties",s,n,i),u=Ye("mergedProperties",s,n,i);for(d in s)s.hasOwnProperty(d)&&(a.push(d),et(i,d,s[d],t,f,n,c,u));s.hasOwnProperty("toString")&&(i.toString=s.toString)}else o.mixins&&(tt(o.mixins,t,f,n,i,a),o._without&&o._without.forEach(function(e){delete f[e],delete n[e]}))}function ft(e){var t=e.length;return t>7&&66===e.charCodeAt(t-7)&&-1!==e.indexOf("inding",t-6)}function nt(e,t){t.forEachBindings(function(t,f){var n;f&&(n=t.slice(0,-7),f instanceof _f?(f=f.copy()).to(n):f=new _f(n,f),f.connect(e),e[t]=f)}),t.clearBindings()}function it(e,t){return nt(e,t||Q(e)),e}function at(e,t,f,n){var i=t.methodName,a=void 0,r=void 0;return f[i]||n[i]?(a=n[i],t=f[i]):(r=e[i])&&null!==r&&"object"==typeof r&&r.isDescriptor?(t=r,a=void 0):(t=void 0,a=e[i]),{desc:t,value:a}}function rt(e,t,f,n,i){var a,r=f[n];if(r)for(a=0;a<r.length;a++)i(e,r[a],null,t)}function ot(e,t,f){var n=e[t];"function"==typeof n&&(rt(e,t,n,"__ember_observesBefore__",Ve),rt(e,t,n,"__ember_observes__",ze),rt(e,t,n,"__ember_listens__",_)),"function"==typeof f&&(rt(e,t,f,"__ember_observesBefore__",Be),rt(e,t,f,"__ember_observes__",Fe),rt(e,t,f,"__ember_listens__",l))}function st(e,t,n){var i,a,r={},o={},s=Q(e),d=[],c=void 0,u=void 0,l=void 0;for(e._super=f.ROOT,tt(t,s,r,o,e,d),i=0;i<d.length;i++)if("constructor"!==(c=d[i])&&o.hasOwnProperty(c)&&(l=r[c],u=o[c],l!==vf)){for(;l&&l instanceof ut;)a=at(e,l,r,o),l=a.desc,u=a.value;void 0===l&&void 0===u||(ot(e,c,u),ft(c)&&s.writeBindings(c,u),j(e,c,l,u,s))}return n||it(e,s),e}function dt(e,t,n){var i=f.guidFor(e);if(n[i])return!1;if(n[i]=!0,e===t)return!0;for(var a=e.mixins,r=a?a.length:0;--r>=0;)if(dt(a[r],t,n))return!0;return!1}function ct(e,t,n){var i,a,r;if(!n[f.guidFor(t)])if(n[f.guidFor(t)]=!0,t.properties)for(i=Object.keys(t.properties),a=0;a<i.length;a++)r=i[a],e[r]=!0;else t.mixins&&t.mixins.forEach(function(t){return ct(e,t,n)})}function ut(e){this.isDescriptor=!0,this.methodName=e}function lt(){var e,t,f,n,i=void 0,a=void 0;for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];"function"!=typeof t[t.length-1]?(a=t.shift(),i=t):(a=t.pop(),i=t);var r=[];for(n=0;n<i.length;++n)de(i[n],function(e){return r.push(e)});return a.__ember_observes__=r,a}function _t(e,t){this.type=e,this.name=t,this._super$Constructor(mt),xf.oneWay.call(this)}function mt(e){var t=this[e];return(f.getOwner(this)||this.container).lookup(t.type+":"+(t.name||e))}r="default"in r?r.default:r,o="default"in o?o.default:o,s="default"in s?s.default:s;var ht,pt,gt="object"==typeof t.context.imports.Ember&&t.context.imports.Ember||{};gt.isNamespace=!0,gt.toString=function(){return"Ember"};var yt=1,bt=2,vt={addToListeners:function(e,t,f,n){void 0===this._listeners&&(this._listeners=[]),this._listeners.push(e,t,f,n)},_finalizeListeners:function(){if(!this._listenersFinalized){void 0===this._listeners&&(this._listeners=[]);for(var e,t=this.parent;void 0!==t&&(void 0!==(e=t._listeners)&&(this._listeners=this._listeners.concat(e)),!t._listenersFinalized);)t=t.parent;this._listenersFinalized=!0}},removeFromListeners:function(e,t,f,n){for(var i,a,r=this;void 0!==r;){if(void 0!==(i=r._listeners))for(a=i.length-4;a>=0;a-=4)if(i[a]===e&&(!f||i[a+1]===t&&i[a+2]===f)){if(r!==this)return this._finalizeListeners(),this.removeFromListeners(e,t,f);"function"==typeof n&&n(e,t,i[a+2]),i.splice(a,4)}if(r._listenersFinalized)break;r=r.parent}},matchingListeners:function(e){for(var t,f,n,i,a=this,r=void 0;void 0!==a;){if(void 0!==(t=a._listeners))for(f=0;f<t.length;f+=4)t[f]===e&&(r=r||[],d(r,t,f));if(a._listenersFinalized)break;a=a.parent}var o=this._suspendedListeners;if(void 0!==o&&void 0!==r)for(n=0;n<o.length;n+=3)if(e===o[n])for(i=0;i<r.length;i+=3)r[i]===o[n+1]&&r[i+1]===o[n+2]&&(r[i+2]|=bt);return r},suspendListeners:function(e,t,f,n){var i,a,r=this._suspendedListeners;for(void 0===r&&(r=this._suspendedListeners=[]),i=0;i<e.length;i++)r.push(e[i],t,f);try{return n.call(t)}finally{if(r.length===e.length)this._suspendedListeners=void 0;else for(a=r.length-3;a>=0;a-=3)r[a+1]===t&&r[a+2]===f&&-1!==e.indexOf(r[a])&&r.splice(a,3)}},watchedEvents:function(){for(var e,t,f=this,n={};void 0!==f;){if(void 0!==(e=f._listeners))for(t=0;t<e.length;t+=4)n[e[t]]=!0;if(f._listenersFinalized)break;f=f.parent}return Object.keys(n)}},wt=function(){return!1},kt=void 0,xt=function(){function e(){this.clear()}return e.prototype.add=function(e,t,n){var i=this.observerSet,a=this.observers,r=f.guidFor(e),o=i[r],s=void 0;return o||(i[r]=o={}),void 0===(s=o[t])&&(s=a.push({sender:e,keyName:t,eventName:n,listeners:[]})-1,o[t]=s),a[s].listeners},e.prototype.flush=function(){var e=this.observers,t=void 0,f=void 0,n=void 0;for(this.clear(),t=0;t<e.length;++t)f=e[t],(n=f.sender).isDestroying||n.isDestroyed||p(n,f.eventName,[n,f.keyName],f.listeners)},e.prototype.clear=function(){this.observerSet={},this.observers=[]},e}();e.runInTransaction=void 0,e.runInTransaction=function(e,t){return e[t](),!1};var qt=f.symbol("PROPERTY_DID_CHANGE"),Et=new xt,Tt=new xt,St=0,Mt=void 0,Ct=void 0;!function(){var e=Object.create(Object.prototype,{prop:{configurable:!0,value:1}});Object.defineProperty(e,"prop",{configurable:!0,value:2}),e.prop}();var At=!1,Ot=/^([^\.]+)/,Rt=function(){function e(){this.chains=Object.create(null)}return e.prototype.add=function(e,t){var f=this.chains[e];void 0===f?this.chains[e]=[t]:f.push(t)},e.prototype.remove=function(e,t){var f,n=this.chains[e];if(void 0!==n)for(f=0;f<n.length;f++)if(n[f]===t){n.splice(f,1);break}},e.prototype.has=function(e,t){var f,n=this.chains[e];if(void 0!==n)for(f=0;f<n.length;f++)if(n[f]===t)return!0;return!1},e.prototype.revalidateAll=function(){for(var e in this.chains)this.notify(e,!0,void 0)},e.prototype.revalidate=function(e){this.notify(e,!0,void 0)},e.prototype.notify=function(e,t,f){var n,i,a,r,o=this.chains[e];if(void 0!==o&&0!==o.length){var s=void 0;for(f&&(s=[]),n=0;n<o.length;n++)o[n].notify(t,s);if(void 0!==f)for(i=0;i<s.length;i+=2)a=s[i],r=s[i+1],f(a,r)}},e}(),Pt=function(){function e(e,t,f){this._parent=e,this._key=t;var n,i=this._watching=void 0===f;if(this._chains=void 0,this._object=void 0,this.count=0,this._value=f,this._paths=void 0,i){if(n=e.value(),!V(n))return;this._object=n,X(this._object,this._key,this)}}return e.prototype.value=function(){var e;return void 0===this._value&&this._watching&&(e=this._parent.value(),this._value=K(e,this._key)),this._value},e.prototype.destroy=function(){this._watching&&(Y(this._object,this._key,this),this._watching=!1)},e.prototype.copy=function(t){var f=new e(null,null,t),n=this._paths,i=void 0;if(void 0!==n)for(i in n)n[i]<=0||f.add(i);return f},e.prototype.add=function(e){var t=this._paths||(this._paths={});t[e]=(t[e]||0)+1;var f=H(e),n=e.slice(f.length+1);this.chain(f,n)},e.prototype.remove=function(e){var t=this._paths;if(void 0!==t){t[e]>0&&t[e]--;var f=H(e),n=e.slice(f.length+1);this.unchain(f,n)}},e.prototype.chain=function(t,f){var n=this._chains,i=void 0;void 0===n?n=this._chains=Object.create(null):i=n[t],void 0===i&&(i=n[t]=new e(this,t,void 0)),i.count++,f&&(t=H(f),f=f.slice(t.length+1),i.chain(t,f))},e.prototype.unchain=function(e,t){var f,n,i=this._chains,a=i[e];t&&t.length>1&&(f=H(t),n=t.slice(f.length+1),a.unchain(f,n)),a.count--,a.count<=0&&(i[a._key]=void 0,a.destroy())},e.prototype.notify=function(e,t){e&&this._watching&&((f=this._parent.value())!==this._object&&(Y(this._object,this._key,this),V(f)?(this._object=f,X(f,this._key,this)):this._object=void 0),this._value=void 0);var f,n=this._chains,i=void 0;if(void 0!==n)for(var a in n)void 0!==(i=n[a])&&i.notify(e,t);t&&this._parent&&this._parent.populateAffected(this._key,1,t)},e.prototype.populateAffected=function(e,t,f){this._key&&(e=this._key+"."+e),this._parent?this._parent.populateAffected(e,t+1,f):t>1&&f.push(this.value(),e)},e}(),Nt=f.symbol("undefined"),Lt="__ember_meta__",jt=[],$t=function(){function t(e,t){this._cache=void 0,this._weak=void 0,this._watching=void 0,this._mixins=void 0,this._bindings=void 0,this._values=void 0,this._deps=void 0,this._chainWatchers=void 0,this._chains=void 0,this._tag=void 0,this._tags=void 0,this._factory=void 0,this._flags=0,this.source=e,this.proto=void 0,this.parent=t,this._listeners=void 0,this._listenersFinalized=!1,this._suspendedListeners=void 0}return t.prototype.isInitialized=function(e){return this.proto!==e},t.prototype.setTag=function(e){this._tag=e},t.prototype.getTag=function(){return this._tag},t.prototype.destroy=function(){if(!this.isMetaDestroyed()){var t,f=void 0,n=void 0,i=void 0,a=this.readableChains();if(a)for(jt.push(a);jt.length>0;){if(a=jt.pop(),f=a._chains)for(n in f)void 0!==f[n]&&jt.push(f[n]);a._watching&&(i=a._object)&&(t=e.peekMeta(i))&&!t.isSourceDestroying()&&Y(i,a._key,a,t)}this.setMetaDestroyed()}},t.prototype.isSourceDestroying=function(){return 0!=(2&this._flags)},t.prototype.setSourceDestroying=function(){this._flags|=2},t.prototype.isSourceDestroyed=function(){return 0!=(4&this._flags)},t.prototype.setSourceDestroyed=function(){this._flags|=4},t.prototype.isMetaDestroyed=function(){return 0!=(8&this._flags)},t.prototype.setMetaDestroyed=function(){this._flags|=8},t.prototype.isProxy=function(){return 0!=(16&this._flags)},t.prototype.setProxy=function(){this._flags|=16},t.prototype._getOrCreateOwnMap=function(e){return this[e]||(this[e]=Object.create(null))},t.prototype._getInherited=function(e){for(var t,f=this;void 0!==f;){if(void 0!==(t=f[e]))return t;f=f.parent}},t.prototype._findInherited=function(e,t){for(var f,n,i=this;void 0!==i;){if(void 0!==(f=i[e])&&void 0!==(n=f[t]))return n;i=i.parent}},t.prototype.writeDeps=function(e,t,f){var n=this._getOrCreateOwnMap("_deps"),i=n[e];void 0===i&&(i=n[e]=Object.create(null)),i[t]=f},t.prototype.peekDeps=function(e,t){for(var f,n,i,a=this;void 0!==a;){if(void 0!==(f=a._deps)&&void 0!==(n=f[e])&&void 0!==(i=n[t]))return i;a=a.parent}},t.prototype.hasDeps=function(e){for(var t,f=this;void 0!==f;){if(void 0!==(t=f._deps)&&void 0!==t[e])return!0;f=f.parent}return!1},t.prototype.forEachInDeps=function(e,t){return this._forEachIn("_deps",e,t)},t.prototype._forEachIn=function(e,t,f){for(var n,i,a,r=this,o=void 0,s=void 0;void 0!==r;){if(void 0!==(n=r[e])&&void 0!==(i=n[t]))for(var d in i)void 0===(o=o||Object.create(null))[d]&&(o[d]=!0,(s=s||[]).push(d,i[d]));r=r.parent}if(void 0!==s)for(a=0;a<s.length;a+=2)f(s[a],s[a+1])},t.prototype.writableCache=function(){return this._getOrCreateOwnMap("_cache")},t.prototype.readableCache=function(){return this._cache},t.prototype.writableWeak=function(){return this._getOrCreateOwnMap("_weak")},t.prototype.readableWeak=function(){return this._weak},t.prototype.writableTags=function(){return this._getOrCreateOwnMap("_tags")},t.prototype.readableTags=function(){return this._tags},t.prototype.writableTag=function(e){var t=this._tag;return void 0===t&&(t=this._tag=e(this.source)),t},t.prototype.readableTag=function(){return this._tag},t.prototype.writableChainWatchers=function(e){var t=this._chainWatchers;return void 0===t&&(t=this._chainWatchers=e(this.source)),t},t.prototype.readableChainWatchers=function(){return this._chainWatchers},t.prototype.writableChains=function(e){var t=this._chains;return void 0===t&&(t=this.parent?this._chains=this.parent.writableChains(e).copy(this.source):this._chains=e(this.source)),t},t.prototype.readableChains=function(){return this._getInherited("_chains")},t.prototype.writeWatching=function(e,t){this._getOrCreateOwnMap("_watching")[e]=t},t.prototype.peekWatching=function(e){return this._findInherited("_watching",e)},t.prototype.writeMixins=function(e,t){this._getOrCreateOwnMap("_mixins")[e]=t},t.prototype.peekMixins=function(e){return this._findInherited("_mixins",e)},t.prototype.forEachMixins=function(e){for(var t,f=this,n=void 0;void 0!==f;){if(void 0!==(t=f._mixins))for(var i in t)void 0===(n=n||Object.create(null))[i]&&(n[i]=!0,e(i,t[i]));f=f.parent}},t.prototype.writeBindings=function(e,t){this._getOrCreateOwnMap("_bindings")[e]=t},t.prototype.peekBindings=function(e){return this._findInherited("_bindings",e)},t.prototype.forEachBindings=function(e){for(var t,f=this,n=void 0;void 0!==f;){if(void 0!==(t=f._bindings))for(var i in t)void 0===(n=n||Object.create(null))[i]&&(n[i]=!0,e(i,t[i]));f=f.parent}},t.prototype.clearBindings=function(){this._bindings=void 0},t.prototype.writeValues=function(e,t){this._getOrCreateOwnMap("_values")[e]=t},t.prototype.peekValues=function(e){return this._findInherited("_values",e)},t.prototype.deleteFromValues=function(e){delete this._getOrCreateOwnMap("_values")[e]},i.createClass(t,[{key:"factory",set:function(e){this._factory=e},get:function(){return this._factory}}]),t}();for(var Dt in vt)$t.prototype[Dt]=vt[Dt];var It={writable:!0,configurable:!0,enumerable:!1,value:null},Ut={name:Lt,descriptor:It},Ft=void 0;e.peekMeta=void 0,f.HAS_NATIVE_WEAKMAP?(ht=Object.getPrototypeOf,pt=new WeakMap,Ft=function(e,t){pt.set(e,t)},e.peekMeta=function(e){for(var t=e,f=void 0;void 0!==t&&null!==t;){if(void 0!==(f=pt.get(t)))return f;t=ht(t)}}):(Ft=function(e,t){e.__defineNonEnumerable?e.__defineNonEnumerable(Ut):Object.defineProperty(e,Lt,It),e[Lt]=t},e.peekMeta=function(e){return e[Lt]});var zt=function(){function e(e,t,f,n){this.size=0,this.misses=0,this.hits=0,this.limit=e,this.func=t,this.key=f,this.store=n||new Bt}return e.prototype.get=function(e){var t=void 0===this.key?e:this.key(e),f=this.store.get(t);return void 0===f?(this.misses++,f=this._set(t,this.func(e))):f===Nt?(this.hits++,f=void 0):this.hits++,f},e.prototype.set=function(e,t){var f=void 0===this.key?e:this.key(e);return this._set(f,t)},e.prototype._set=function(e,t){return this.limit>this.size&&(this.size++,void 0===t?this.store.set(e,Nt):this.store.set(e,t)),t},e.prototype.purge=function(){this.store.clear(),this.size=0,this.hits=0,this.misses=0},e}(),Bt=function(){function e(){this.data=Object.create(null)}return e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){this.data[e]=t},e.prototype.clear=function(){this.data=Object.create(null)},e}(),Ht=/^[A-Z$]/,Vt=/^[A-Z$].*[\.]/;new zt(1e3,function(e){return Ht.test(e)});var Gt=new zt(1e3,function(e){return Vt.test(e)}),Wt=(new zt(1e3,function(e){return 0===e.lastIndexOf("this.",0)}),new zt(1e3,function(e){return e.indexOf(".")})),Xt=new zt(1e3,function(e){var t=Wt.get(e);return-1===t?e:e.slice(0,t)}),Yt=new zt(1e3,function(e){var t=Wt.get(e);if(-1!==t)return e.slice(t+1)}),Kt={object:!0,function:!0,string:!0},Jt=/\.@each$/;he.prototype=new L,he.prototype.constructor=he;var Qt=he.prototype;Qt.volatile=function(){return this._volatile=!0,this},Qt.readOnly=function(){return this._readOnly=!0,this},Qt.property=function(){var e,t=[];for(e=0;e<arguments.length;e++)de(arguments[e],function(e){t.push(e)});return this._dependentKeys=t,this},Qt.meta=function(e){return 0===arguments.length?this._meta||{}:(this._meta=e,this)},Qt.didChange=function(t,f){if(!this._volatile&&this._suspended!==t){var n=e.peekMeta(t);if(n&&n.source===t){var i=n.readableCache();i&&void 0!==i[f]&&(i[f]=void 0,me(this,t,f,n))}}},Qt.get=function(e,t){if(this._volatile)return this._getter.call(e,t);var f=Q(e),n=f.writableCache(),i=n[t];if(i!==Nt){if(void 0!==i)return i;var a=this._getter.call(e,t);n[t]=void 0===a?Nt:a;var r=f.readableChainWatchers();return r&&r.revalidate(t),_e(this,e,t,f),a}},Qt.set=function(e,t,f){return this._readOnly&&this._throwReadOnlyError(e,t),this._setter?this._volatile?this.volatileSet(e,t,f):this.setWithSuspend(e,t,f):this.clobberSet(e,t,f)},Qt._throwReadOnlyError=function(e,t){throw new n.Error('Cannot set read-only property "'+t+'" on object: '+f.inspect(e))},Qt.clobberSet=function(e,t,f){return j(e,t,null,pe(e,t)),re(e,t,f),f},Qt.volatileSet=function(e,t,f){return this._setter.call(e,t,f)},Qt.setWithSuspend=function(e,t,f){var n=this._suspended;this._suspended=e;try{return this._set(e,t,f)}finally{this._suspended=n}},Qt._set=function(e,t,f){var n=Q(e),i=n.writableCache(),a=!1,r=void 0;void 0!==i[t]&&(i[t]!==Nt&&(r=i[t]),a=!0);var o=this._setter.call(e,t,f,r);return a&&r===o?o:(k(e,t,n),a?i[t]=void 0:_e(this,e,t,n),i[t]=void 0===o?Nt:o,x(e,t,n),o)},Qt.teardown=function(e,t,f){if(!this._volatile){var n=f.readableCache();void 0!==n&&void 0!==n[t]&&(me(this,e,t,f),n[t]=void 0)}},pe.set=function(e,t,f){e[t]=void 0===f?Nt:f},pe.get=function(e,t){var f=e[t];if(f!==Nt)return f},pe.remove=function(e,t){e[t]=void 0};var Zt={},ef=function(e){function t(t){var f=i.possibleConstructorReturn(this,e.call(this));return f.isDescriptor=!0,f.altKey=t,f._dependentKeys=[t],f}return i.inherits(t,e),t.prototype.setup=function(e,t){var f=Q(e);f.peekWatching(t)&&_e(this,e,t,f)},t.prototype.teardown=function(e,t,f){f&&f.peekWatching(t)&&me(this,e,t,f)},t.prototype.willWatch=function(e,t){_e(this,e,t,Q(e))},t.prototype.didUnwatch=function(e,t){me(this,e,t,Q(e))},t.prototype.get=function(e,t){var f=ne(e,this.altKey),n=Q(e),i=n.writableCache();return i[t]!==Zt&&(i[t]=Zt,_e(this,e,t,n)),f},t.prototype.set=function(e,t,f){return re(e,this.altKey,f)},t.prototype.readOnly=function(){return this.set=ge,this},t.prototype.oneWay=function(){return this.set=ye,this},t}(L);ef.prototype._meta=void 0,ef.prototype.meta=he.prototype.meta;var tf=[],ff={},nf=function(){var e="undefined"!=typeof window?window.performance||{}:{},t=e.now||e.mozNow||e.webkitNow||e.msNow||e.oNow;return t?t.bind(e):function(){return+new Date}}();e.flaggedInstrument=void 0,e.flaggedInstrument=function(e,t,f){return f()};var af=function(e){var t=e.stack,f=e.message;return t&&-1===t.indexOf(f)&&(t=f+"\n"+t),t},rf=void 0,of=void 0,sf=0;Se.prototype.get=function(t){if(Te(t)){var f,n=e.peekMeta(t);if(n&&(f=n.readableWeak())){if(f[this._id]===Nt)return;return f[this._id]}}},Se.prototype.set=function(e,t){if(!Te(e))throw new TypeError("Invalid value used as weak map key");return void 0===t&&(t=Nt),Q(e).writableWeak()[this._id]=t,this},Se.prototype.has=function(t){if(!Te(t))return!1;var f,n=e.peekMeta(t);return!(!n||!(f=n.readableWeak()))&&void 0!==f[this._id]},Se.prototype.delete=function(e){return!!this.has(e)&&(delete Q(e).writableWeak()[this._id],!0)},Se.prototype.toString=function(){return"[object WeakMap]"};var df={get onerror(){return qe},set onerror(e){return xe(e)}},cf=new s(["sync","actions","destroy"],{GUID_KEY:f.GUID_KEY,sync:{before:A,after:O},defaultQueue:"actions",onBegin:function(e){Oe.currentRunLoop=e},onEnd:function(e,t){Oe.currentRunLoop=t},onErrorTarget:df,onErrorMethod:"onerror"});Oe.join=function(){return cf.join.apply(cf,arguments)},Oe.bind=function(){var e,t,f;for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];return function(){var e,f,n;for(e=arguments.length,f=Array(e),n=0;n<e;n++)f[n]=arguments[n];return Oe.join.apply(Oe,t.concat(f))}},Oe.backburner=cf,Oe.currentRunLoop=null,Oe.queues=cf.queueNames,Oe.begin=function(){cf.begin()},Oe.end=function(){cf.end()},Oe.schedule=function(){return cf.schedule.apply(cf,arguments)},Oe.hasScheduledTimers=function(){return cf.hasTimers()},Oe.cancelTimers=function(){cf.cancelTimers()},Oe.sync=function(){cf.currentInstance&&cf.currentInstance.queues.sync.flush()},Oe.later=function(){return cf.later.apply(cf,arguments)},Oe.once=function(){var e,t,f;for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];return t.unshift("actions"),cf.scheduleOnce.apply(cf,t)},Oe.scheduleOnce=function(){return cf.scheduleOnce.apply(cf,arguments)},Oe.next=function(){var e,t,f;for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];return t.push(1),cf.later.apply(cf,t)},Oe.cancel=function(e){return cf.cancel(e)},Oe.debounce=function(){return cf.debounce.apply(cf,arguments)},Oe.throttle=function(){return cf.throttle.apply(cf,arguments)},Oe._addQueue=function(e,t){-1===Oe.queues.indexOf(e)&&Oe.queues.splice(Oe.queues.indexOf(t)+1,0,e)};var uf=function(){function e(){this._registry=[],this._coreLibIndex=0}return e.prototype.isRegistered=function(e){return!!this._getLibraryByName(e)},e}();uf.prototype={constructor:uf,_getLibraryByName:function(e){var t,f=this._registry,n=f.length;for(t=0;t<n;t++)if(f[t].name===e)return f[t]},register:function(e,t,f){var n=this._registry.length;this._getLibraryByName(e)||(f&&(n=this._coreLibIndex++),this._registry.splice(n,0,{name:e,version:t}))},registerCoreLibrary:function(e,t){this.register(e,t,!0)},deRegister:function(e){var t=this._getLibraryByName(e),f=void 0;t&&(f=this._registry.indexOf(t),this._registry.splice(f,1))}};var lf=new uf;je.create=function(){return new this},je.prototype={constructor:je,clear:function(){this.presenceSet=Object.create(null),this.list=[],this.size=0},add:function(e,t){var n=t||f.guidFor(e),i=this.presenceSet,a=this.list;return!0!==i[n]&&(i[n]=!0,this.size=a.push(e)),this},delete:function(e,t){var n,i=t||f.guidFor(e),a=this.presenceSet,r=this.list;return!0===a[i]&&(delete a[i],(n=r.indexOf(e))>-1&&r.splice(n,1),this.size=r.length,!0)},isEmpty:function(){return 0===this.size},has:function(e){if(0===this.size)return!1;var t=f.guidFor(e);return!0===this.presenceSet[t]},forEach:function(e){if("function"!=typeof e&&Re(e),0!==this.size){var t,f,n=this.list;if(2===arguments.length)for(t=0;t<n.length;t++)e.call(arguments[1],n[t]);else for(f=0;f<n.length;f++)e(n[f])}},toArray:function(){return this.list.slice()},copy:function(){var e=new(0,this.constructor);return e.presenceSet=Ne(this.presenceSet),e.list=this.toArray(),e.size=this.size,e}},$e.create=function(){return new this},$e.prototype={constructor:$e,size:0,get:function(e){if(0!==this.size)return this._values[f.guidFor(e)]},set:function(e,t){var n=this._keys,i=this._values,a=f.guidFor(e),r=-0===e?0:e;return n.add(r,a),i[a]=t,this.size=n.size,this},delete:function(e){if(0===this.size)return!1;var t=this._keys,n=this._values,i=f.guidFor(e);return!!t.delete(e,i)&&(delete n[i],this.size=t.size,!0)},has:function(e){return this._keys.has(e)},forEach:function(e){if("function"!=typeof e&&Re(e),0!==this.size){var t=this,f=void 0,n=void 0;2===arguments.length?(n=arguments[1],f=function(f){return e.call(n,t.get(f),f,t)}):f=function(f){return e(t.get(f),f,t)},this._keys.forEach(f)}},clear:function(){this._keys.clear(),this._values=Object.create(null),this.size=0},copy:function(){return Le(this,new $e)}},De.create=function(e){return e?new De(e):new $e},(De.prototype=Object.create($e.prototype)).constructor=De,De.prototype._super$constructor=$e,De.prototype._super$get=$e.prototype.get,De.prototype.get=function(e){var t;return this.has(e)?this._super$get(e):(t=this.defaultValue(e),this.set(e,t),t)},De.prototype.copy=function(){return Le(this,new(0,this.constructor)({defaultValue:this.defaultValue}))};var _f=function(){function e(e,t){this._from=t,this._to=e,this._oneWay=void 0,this._direction=void 0,this._readyToSync=void 0,this._fromObj=void 0,this._fromPath=void 0,this._toObj=void 0}return e.prototype.copy=function(){var t=new e(this._to,this._from);return this._oneWay&&(t._oneWay=!0),t},e.prototype.from=function(e){return this._from=e,this},e.prototype.to=function(e){return this._to=e,this},e.prototype.oneWay=function(){return this._oneWay=!0,this},e.prototype.toString=function(){var e=this._oneWay?"[oneWay]":"";return"Ember.Binding<"+f.guidFor(this)+">("+this._from+" -> "+this._to+")"+e},e.prototype.connect=function(e){var f,n=void 0,i=void 0,a=void 0;return Z(this._from)&&(f=te(this._from),(a=t.context.lookup[f])&&(n=a,i=fe(this._from))),void 0===n&&(n=e,i=this._from),se(e,this._to,ne(n,i)),Fe(n,i,this,"fromDidChange"),this._oneWay||Fe(e,this._to,this,"toDidChange"),l(e,"willDestroy",this,"disconnect"),Ge(0,this._to,this._from,0,this._oneWay,!a&&this._oneWay),this._readyToSync=!0,this._fromObj=n,this._fromPath=i,this._toObj=e,this},e.prototype.disconnect=function(){return ze(this._fromObj,this._fromPath,this,"fromDidChange"),this._oneWay||ze(this._toObj,this._to,this,"toDidChange"),this._readyToSync=!1,this},e.prototype.fromDidChange=function(){this._scheduleSync("fwd")},e.prototype.toDidChange=function(){this._scheduleSync("back")},e.prototype._scheduleSync=function(e){var t=this._direction;void 0===t&&(Oe.schedule("sync",this,"_sync"),this._direction=e),"back"===t&&"fwd"===e&&(this._direction="fwd")},e.prototype._sync=function(){var e,f,n=t.ENV.LOG_BINDINGS,i=this._toObj;if(!i.isDestroyed&&this._readyToSync){var a=this._direction,r=this._fromObj,s=this._fromPath;this._direction=void 0,"fwd"===a?(e=ne(r,s),n&&o.log(" ",this.toString(),"->",e,r),this._oneWay?se(i,this._to,e):He(i,this._to,this,"toDidChange",function(){se(i,this._to,e)})):"back"===a&&(f=ne(i,this._to),n&&o.log(" ",this.toString(),"<-",f,i),He(r,s,this,"fromDidChange",function(){se(r,s,f)}))}},e}();!function(e,t){for(var f in t)t.hasOwnProperty(f)&&(e[f]=t[f])}(_f,{from:function(e){return new this(void 0,e)},to:function(e){return new this(e,void 0)}});var mf=Array.prototype.concat,hf=Array.isArray,pf={};ft("notbound"),ft("fooBinding");var gf=function(){function t(e,i){this.properties=i;var a,r,o,s=e&&e.length;if(s>0){for(a=new Array(s),r=0;r<s;r++)o=e[r],a[r]=o instanceof t?o:new t(void 0,o);this.mixins=a}else this.mixins=void 0;this.ownerConstructor=void 0,this._without=void 0,this[f.GUID_KEY]=null,this[f.NAME_KEY]=null,n.debugSeal(this)}return t.applyPartial=function(e){var t,f,n;for(t=arguments.length,f=Array(t>1?t-1:0),n=1;n<t;n++)f[n-1]=arguments[n];return st(e,f,!0)},t.create=function(){yf=!0;var e,t,f,n=this;for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];return new n(t,void 0)},t.mixins=function(t){var f=e.peekMeta(t),n=[];return f?(f.forEachMixins(function(e,t){t.properties||n.push(t)}),n):n},t}();gf._apply=st,gf.finishPartial=it;var yf=!1,bf=gf.prototype;bf.reopen=function(){var e=void 0;this.properties?(e=new gf(void 0,this.properties),this.properties=void 0,this.mixins=[e]):this.mixins||(this.mixins=[]);var t=this.mixins,f=void 0;for(f=0;f<arguments.length;f++)(e=arguments[f])instanceof gf?t.push(e):t.push(new gf(void 0,e));return this},bf.apply=function(e){return st(e,[this],!1)},bf.applyPartial=function(e){return st(e,[this],!0)},bf.toString=Object.toString,bf.detect=function(t){if("object"!=typeof t||null===t)return!1;if(t instanceof gf)return dt(t,this,{});var n=e.peekMeta(t);return!!n&&!!n.peekMixins(f.guidFor(this))},bf.without=function(){var e,t,f,n=new gf([this]);for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];return n._without=t,n},bf.keys=function(){var e={};return ct(e,this,{}),Object.keys(e)},n.debugSeal(bf);var vf=new L;vf.toString=function(){return"(Required Property)"},ut.prototype=new L;var wf=_t.prototype=Object.create(L.prototype),kf=he.prototype,xf=ef.prototype;wf._super$Constructor=he,wf.get=kf.get,wf.readOnly=kf.readOnly,wf.teardown=kf.teardown;var qf=Array.prototype.splice,Ef=function(e){function t(t){var f=i.possibleConstructorReturn(this,e.call(this));return f.desc=t,f}return i.inherits(t,e),t.prototype.setup=function(e,t){Object.defineProperty(e,t,this.desc)},t.prototype.teardown=function(){},t}(L);e.default=gt,e.computed=function(){for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];var e,t,f,n=new he(t.pop());return t.length>0&&n.property.apply(n,t),n},e.cacheFor=pe,e.ComputedProperty=he,e.alias=function(e){return new ef(e)},e.merge=function(e,t){if(!t||"object"!=typeof t)return e;var f,n=Object.keys(t),i=void 0;for(f=0;f<n.length;f++)i=n[f],e[i]=t[i];return e},e.deprecateProperty=function(e,t,f,n){function i(){}Object.defineProperty(e,t,{configurable:!0,enumerable:!1,set:function(e){i(),re(this,f,e)},get:function(){return i(),ne(this,f)}})},e.instrument=function(e,t,f,n){if(arguments.length<=3&&"function"==typeof t&&(n=f,f=t,t=void 0),0===tf.length)return f.call(n);var i=t||{},a=ke(e,function(){return i});return a?ve(f,a,i,n):f.call(n)},e._instrumentStart=ke,e.instrumentationReset=function(){tf.length=0,ff={}},e.instrumentationSubscribe=function(e,t){var f,n=e.split("."),i=void 0,a=[];for(f=0;f<n.length;f++)"*"===(i=n[f])?a.push("[^\\.]*"):a.push(i);a=a.join("\\."),a+="(\\..*)?";var r={pattern:e,regex:new RegExp("^"+a+"$"),object:t};return tf.push(r),ff={},r},e.instrumentationUnsubscribe=function(e){var t,f=void 0;for(t=0;t<tf.length;t++)tf[t]===e&&(f=t);tf.splice(f,1),ff={}},e.getOnerror=function(){return rf},e.setOnerror=xe,e.dispatchError=qe,e.setDispatchOverride=function(e){of=e},e.getDispatchOverride=function(){return of},e.META_DESC=It,e.meta=Q,e.Cache=zt,e._getPath=ie,e.get=ne,e.getWithDefault=function(e,t,f){var n=ne(e,t);return void 0===n?f:n},e.set=re,e.trySet=se,e.WeakMap=Se,e.accumulateListeners=u,e.addListener=l,e.hasListeners=function(t,f){var n=e.peekMeta(t);if(!n)return!1;var i=n.matchingListeners(f);return void 0!==i&&i.length>0},e.listenersFor=g,e.on=function(){for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];var e,t,f,n=t.pop();return n.__ember_listens__=t,n},e.removeListener=_,e.sendEvent=p,e.suspendListener=m,e.suspendListeners=h,e.watchedEvents=function(t){var f=e.peekMeta(t);return f&&f.watchedEvents()||[]},e.isNone=Me,e.isEmpty=Ce,e.isBlank=Ae,e.isPresent=function(e){return!Ae(e)},e.run=Oe,e.ObserverSet=xt,e.beginPropertyChanges=A,e.changeProperties=R,e.endPropertyChanges=O,e.overrideChains=C,e.propertyDidChange=x,e.propertyWillChange=k,e.PROPERTY_DID_CHANGE=qt,e.defineProperty=j,e.Descriptor=L,e._hasCachedComputedProperties=function(){At=!0},e.watchKey=D,e.unwatchKey=I,e.ChainNode=Pt,e.finishChains=function(e){var t=e.readableChainWatchers();void 0!==t&&t.revalidateAll(),void 0!==e.readableChains()&&e.writableChains(F)},e.removeChainWatcher=Y,e.watchPath=z,e.unwatchPath=B,e.destroy=function(e){J(e)},e.isWatching=function(t,f){if("object"!=typeof t||null===t)return!1;var n=e.peekMeta(t);return(n&&n.peekWatching(f))>0},e.unwatch=le,e.watch=ue,e.watcherCount=function(t,f){var n=e.peekMeta(t);return n&&n.peekWatching(f)||0},e.libraries=lf,e.Libraries=uf,e.Map=$e,e.MapWithDefault=De,e.OrderedSet=je,e.getProperties=function(e){var t={},f=arguments,n=1;for(2===arguments.length&&Array.isArray(arguments[1])&&(n=0,f=arguments[1]);n<f.length;n++)t[f[n]]=ne(e,f[n]);return t},e.setProperties=function(e,t){return t&&"object"==typeof t?(R(function(){var f,n=Object.keys(t),i=void 0;for(f=0;f<n.length;f++)i=n[f],re(e,i,t[i])}),t):t},e.expandProperties=de,e._suspendObserver=He,e._suspendObservers=function(e,t,f,n,i){return h(e,t.map(Ie),f,n,i)},e.addObserver=Fe,e.observersFor=function(e,t){return g(e,Ie(t))},e.removeObserver=ze,e._addBeforeObserver=Be,e._removeBeforeObserver=Ve,e.Mixin=gf,e.aliasMethod=function(e){return new ut(e)},e._immediateObserver=function(){var e;for(e=0;e<arguments.length;e++)arguments[e];return lt.apply(this,arguments)},e._beforeObserver=function(){for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];var e,t,f,i,a=t[t.length-1],r=void 0,o=t.slice(0,-1);for("function"!=typeof a&&(a=t[0],o=t.slice(1)),r=[],i=0;i<o.length;++i)de(o[i],function(e){r.push(e)});if("function"!=typeof a)throw new n.EmberError("_beforeObserver called without a function");return a.__ember_observesBefore__=r,a},e.mixin=function(e){var t,f,n;for(t=arguments.length,f=Array(t>1?t-1:0),n=1;n<t;n++)f[n-1]=arguments[n];return st(e,f,!1),e},e.observer=lt,e.required=function(){return vf},e.REQUIRED=vf,e.hasUnprocessedMixins=function(){return yf},e.clearUnprocessedMixins=function(){yf=!1},e.detectBinding=ft,e.Binding=_f,e.bind=function(e,t,f){return new _f(t,f).connect(e)},e.isGlobalPath=Z,e.InjectedProperty=_t,e.setHasViews=function(e){wt=e},e.tagForProperty=function(e,t,f){if("object"!=typeof e||null===e)return a.CONSTANT_TAG;var n=f||Q(e);if(n.isProxy())return b(e,n);var i=n.writableTags(),r=i[t];return r||(i[t]=y())},e.tagFor=b,e.markObjectAsDirty=v,e.replace=function(e,t,f,n){for(var i=[].concat(n),a=[],r=6e4,o=t,s=f,d=void 0,c=void 0;i.length;)(d=s>r?r:s)<=0&&(d=0),c=i.splice(0,r),c=[o,d].concat(c),o+=r,s-=d,a=a.concat(qf.apply(e,c));return a},e.didRender=void 0,e.assertNotRendered=void 0,e.isProxy=function(t){var f;return"object"==typeof t&&null!==t&&(f=e.peekMeta(t))&&f.isProxy()},e.descriptor=function(e){return new Ef(e)},Object.defineProperty(e,"__esModule",{value:!0})}),e("ember-routing/ext/controller",["exports","ember-metal","ember-runtime","ember-routing/utils"],function(e,t,f,n){"use strict";f.ControllerMixin.reopen({concatenatedProperties:["queryParams"],queryParams:null,_qpDelegate:null,_qpChanged:function(e,f){var n=f.substr(0,f.length-3);(0,e._qpDelegate)(n,(0,t.get)(e,n))},transitionToRoute:function(){var e,f,i,a=(0,t.get)(this,"target"),r=a.transitionToRoute||a.transitionTo;for(e=arguments.length,f=Array(e),i=0;i<e;i++)f[i]=arguments[i];return r.apply(a,(0,n.prefixRouteNameArg)(this,f))},replaceRoute:function(){var e,f,i,a=(0,t.get)(this,"target"),r=a.replaceRoute||a.replaceWith;for(e=arguments.length,f=Array(e),i=0;i<e;i++)f[i]=arguments[i];return r.apply(a,(0,n.prefixRouteNameArg)(this,f))}}),e.default=f.ControllerMixin}),e("ember-routing/ext/run_loop",["ember-metal"],function(e){"use strict";e.run._addQueue("routerTransitions","actions")}),e("ember-routing/index",["exports","ember-routing/location/api","ember-routing/location/none_location","ember-routing/location/hash_location","ember-routing/location/history_location","ember-routing/location/auto_location","ember-routing/system/generate_controller","ember-routing/system/controller_for","ember-routing/system/dsl","ember-routing/system/router","ember-routing/system/route","ember-routing/system/query_params","ember-routing/services/routing","ember-routing/services/router","ember-routing/system/cache","ember-routing/ext/run_loop","ember-routing/ext/controller"],function(e,t,f,n,i,a,r,o,s,d,c,u,l,_,m){"use strict";e.BucketCache=e.RouterService=e.RoutingService=e.QueryParams=e.Route=e.Router=e.RouterDSL=e.controllerFor=e.generateControllerFactory=e.generateController=e.AutoLocation=e.HistoryLocation=e.HashLocation=e.NoneLocation=e.Location=void 0,Object.defineProperty(e,"Location",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"NoneLocation",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"HashLocation",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"HistoryLocation",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"AutoLocation",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"generateController",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"generateControllerFactory",{enumerable:!0,get:function(){return r.generateControllerFactory}}),Object.defineProperty(e,"controllerFor",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"RouterDSL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Router",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"Route",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"QueryParams",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"RoutingService",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"RouterService",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"BucketCache",{enumerable:!0,get:function(){return m.default}})}),e("ember-routing/location/api",["exports","ember-debug","ember-environment","ember-routing/location/util"],function(e,t,f,n){"use strict";e.default={create:function(e){var t=e&&e.implementation,f=this.implementations[t];return f.create.apply(f,arguments)},implementations:{},_location:f.environment.location,_getHash:function(){return(0,n.getHash)(this.location)}}}),e("ember-routing/location/auto_location",["exports","ember-utils","ember-metal","ember-debug","ember-runtime","ember-environment","ember-routing/location/util"],function(e,t,f,n,i,a,r){"use strict";function o(e){return function(){var n,i,a,r=(0,f.get)(this,"concreteImplementation");for(n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];return(0,t.tryInvoke)(r,e,i)}}function s(e){var t,f,n=e.location,i=e.userAgent,a=e.history,o=e.documentMode,s=e.global,u=e.rootURL,l="none",_=!1,m=(0,r.getFullPath)(n);if((0,r.supportsHistory)(i,a)){if(t=d(u,n),m===t)return"history";"/#"===m.substr(0,2)?(a.replaceState({path:t},null,t),l="history"):(_=!0,(0,r.replacePath)(n,t))}else(0,r.supportsHashChange)(o,s)&&(f=c(u,n),m===f||"/"===m&&"/#/"===f?l="hash":(_=!0,(0,r.replacePath)(n,f)));return!_&&l}function d(e,t){var f=(0,r.getPath)(t),n=(0,r.getHash)(t),i=(0,r.getQuery)(t),a=void f.indexOf(e),o=void 0;return"#/"===n.substr(0,2)?(o=n.substr(1).split("#"),a=o.shift(),"/"===f.charAt(f.length-1)&&(a=a.substr(1)),f+=a+i,o.length&&(f+="#"+o.join("#"))):f+=i+n,f}function c(e,t){var f=e,n=d(e,t).substr(e.length);return""!==n&&("/"!==n[0]&&(n="/"+n),f+="#"+n),f}e.getHistoryPath=d,e.getHashPath=c,e.default=i.Object.extend({location:a.environment.location,history:a.environment.history,global:a.environment.window,userAgent:a.environment.userAgent,cancelRouterSetup:!1,rootURL:"/",detect:function(){var e=this.rootURL,n=s({location:this.location,history:this.history,userAgent:this.userAgent,rootURL:e,documentMode:this.documentMode,global:this.global});!1===n&&((0,f.set)(this,"cancelRouterSetup",!0),n="none");var i=(0,t.getOwner)(this).lookup("location:"+n);(0,f.set)(i,"rootURL",e),(0,f.set)(this,"concreteImplementation",i)},initState:o("initState"),getURL:o("getURL"),setURL:o("setURL"),replaceURL:o("replaceURL"),onUpdateURL:o("onUpdateURL"),formatURL:o("formatURL"),willDestroy:function(){var e=(0,f.get)(this,"concreteImplementation");e&&e.destroy()}})}),e("ember-routing/location/hash_location",["exports","ember-metal","ember-runtime","ember-routing/location/api"],function(e,t,f,n){"use strict";e.default=f.Object.extend({implementation:"hash",init:function(){(0,t.set)(this,"location",(0,t.get)(this,"_location")||window.location),this._hashchangeHandler=void 0},getHash:n.default._getHash,getURL:function(){var e=this.getHash().substr(1),t=e;return"/"!==t[0]&&(t="/",e&&(t+="#"+e)),t},setURL:function(e){(0,t.get)(this,"location").hash=e,(0,t.set)(this,"lastSetURL",e)},replaceURL:function(e){(0,t.get)(this,"location").replace("#"+e),(0,t.set)(this,"lastSetURL",e)},onUpdateURL:function(e){this._removeEventListener(),this._hashchangeHandler=t.run.bind(this,function(){var f=this.getURL();(0,t.get)(this,"lastSetURL")!==f&&((0,t.set)(this,"lastSetURL",null),e(f))}),window.addEventListener("hashchange",this._hashchangeHandler)},formatURL:function(e){return"#"+e},willDestroy:function(){this._removeEventListener()},_removeEventListener:function(){this._hashchangeHandler&&window.removeEventListener("hashchange",this._hashchangeHandler)}})}),e("ember-routing/location/history_location",["exports","ember-metal","ember-runtime","ember-routing/location/api"],function(e,t,f,n){"use strict";function i(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t;return t=16*Math.random()|0,("x"===e?t:3&t|8).toString(16)})}var a=!1;e.default=f.Object.extend({implementation:"history",init:function(){this._super.apply(this,arguments);var e=document.querySelector("base"),f="";e&&(f=e.getAttribute("href")),(0,t.set)(this,"baseURL",f),(0,t.set)(this,"location",(0,t.get)(this,"location")||window.location),this._popstateHandler=void 0},initState:function(){var e=(0,t.get)(this,"history")||window.history;(0,t.set)(this,"history",e),e&&"state"in e&&(this.supportsHistory=!0),this.replaceState(this.formatURL(this.getURL()))},rootURL:"/",getURL:function(){var e=(0,t.get)(this,"location"),f=e.pathname,n=(0,t.get)(this,"rootURL"),i=(0,t.get)(this,"baseURL");n=n.replace(/\/$/,""),i=i.replace(/\/$/,"");var a=f.replace(new RegExp("^"+i+"(?=/|$)"),"").replace(new RegExp("^"+n+"(?=/|$)"),"").replace(/\/\/$/g,"/");return a+=(e.search||"")+this.getHash()},setURL:function(e){var t=this.getState();e=this.formatURL(e),t&&t.path===e||this.pushState(e)},replaceURL:function(e){var t=this.getState();e=this.formatURL(e),t&&t.path===e||this.replaceState(e)},getState:function(){return this.supportsHistory?(0,t.get)(this,"history").state:this._historyState},pushState:function(e){var f={path:e,uuid:i()};(0,t.get)(this,"history").pushState(f,null,e),this._historyState=f,this._previousURL=this.getURL()},replaceState:function(e){var f={path:e,uuid:i()};(0,t.get)(this,"history").replaceState(f,null,e),this._historyState=f,this._previousURL=this.getURL()},onUpdateURL:function(e){var t=this;this._removeEventListener(),this._popstateHandler=function(){(a||(a=!0,t.getURL()!==t._previousURL))&&e(t.getURL())},window.addEventListener("popstate",this._popstateHandler)},formatURL:function(e){var f=(0,t.get)(this,"rootURL"),n=(0,t.get)(this,"baseURL");return""!==e?(f=f.replace(/\/$/,""),n=n.replace(/\/$/,"")):"/"===n[0]&&"/"===f[0]&&(n=n.replace(/\/$/,"")),n+f+e},willDestroy:function(){this._removeEventListener()},getHash:n.default._getHash,_removeEventListener:function(){this._popstateHandler&&window.removeEventListener("popstate",this._popstateHandler)}})}),e("ember-routing/location/none_location",["exports","ember-metal","ember-debug","ember-runtime"],function(e,t,f,n){"use strict";e.default=n.Object.extend({implementation:"none",path:"",detect:function(){this.rootURL},rootURL:"/",getURL:function(){var e=(0,t.get)(this,"path"),f=(0,t.get)(this,"rootURL");return f=f.replace(/\/$/,""),e.replace(new RegExp("^"+f+"(?=/|$)"),"")},setURL:function(e){(0,t.set)(this,"path",e)},onUpdateURL:function(e){this.updateCallback=e},handleURL:function(e){(0,t.set)(this,"path",e),this.updateCallback(e)},formatURL:function(e){var f=(0,t.get)(this,"rootURL");return""!==e&&(f=f.replace(/\/$/,"")),f+e}})}),e("ember-routing/location/util",["exports"],function(e){"use strict";function t(e){var t=e.pathname;return"/"!==t[0]&&(t="/"+t),t}function f(e){return e.search}function n(e){var t=e.href,f=t.indexOf("#");return-1===f?"":t.substr(f)}function i(e){var t=e.origin;return t||(t=e.protocol+"//"+e.hostname,e.port&&(t+=":"+e.port)),t}e.getPath=t,e.getQuery=f,e.getHash=n,e.getFullPath=function(e){return t(e)+f(e)+n(e)},e.getOrigin=i,e.supportsHashChange=function(e,t){return"onhashchange"in t&&(void 0===e||e>7)},e.supportsHistory=function(e,t){return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&!!(t&&"pushState"in t)},e.replacePath=function(e,t){e.replace(i(e)+t)}}),e("ember-routing/services/router",["exports","ember-runtime","ember-utils","ember-routing/system/dsl"],function(e,t){"use strict";function f(e,t){var f=void 0;for(f in e)if(e.hasOwnProperty(f)&&e[f]!==t[f])return!1;for(f in t)if(t.hasOwnProperty(f)&&e[f]!==t[f])return!1;return!0}function n(e){return"string"==typeof e&&(""===e||"/"===e[0])}var i=t.Service.extend({currentRouteName:(0,t.readOnly)("_router.currentRouteName"),currentURL:(0,t.readOnly)("_router.currentURL"),location:(0,t.readOnly)("_router.location"),rootURL:(0,t.readOnly)("_router.rootURL"),_router:null,transitionTo:function(){var e,t,f,i=void 0;for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];var a=t[0];if(n(a))return this._router._doURLTransition("transitionTo",a);var r=t[t.length-1];i=r&&r.hasOwnProperty("queryParams")?t.pop().queryParams:{};var o=t.shift(),s=this._router._doTransition(o,t,i,!0);return s._keepDefaultQueryParamValues=!0,s},replaceWith:function(){return this.transitionTo.apply(this,arguments).method("replace")},urlFor:function(){var e;return(e=this._router).generate.apply(e,arguments)},isActive:function(){var e=this._extractArguments.apply(this,arguments),t=e.routeName,n=e.models,i=e.queryParams,a=this._router._routerMicrolib,r=a.state;return!!a.isActiveIntent(t,n,null)&&(!(Object.keys(i).length>0)||(this._router._prepareQueryParams(t,n,i,!0),f(i,r.queryParams)))},_extractArguments:function(e){for(t=arguments.length,f=Array(t>1?t-1:0),n=1;n<t;n++)f[n-1]=arguments[n];var t,f,n,i,a=f[f.length-1],r={};return a&&a.hasOwnProperty("queryParams")&&(i=f.pop(),r=i.queryParams),{routeName:e,models:f,queryParams:r}}});e.default=i}),e("ember-routing/services/routing",["exports","ember-utils","ember-runtime","ember-metal","ember-routing/utils"],function(e,t,f,n,i){"use strict";function a(e,t){var f,n=0;for(f=0;f<t.length&&(n+=t[f].names.length,t[f].handler!==e);f++);return n}e.default=f.Service.extend({router:null,targetState:(0,f.readOnly)("router.targetState"),currentState:(0,f.readOnly)("router.currentState"),currentRouteName:(0,f.readOnly)("router.currentRouteName"),currentPath:(0,f.readOnly)("router.currentPath"),hasRoute:function(e){return(0,n.get)(this,"router").hasRoute(e)},transitionTo:function(e,t,f,i){var a=(0,n.get)(this,"router")._doTransition(e,t,f);return i&&a.method("replace"),a},normalizeQueryParams:function(e,t,f){(0,n.get)(this,"router")._prepareQueryParams(e,t,f)},generateURL:function(e,f,a){var r=(0,n.get)(this,"router");if(r._routerMicrolib){var o={};(0,t.assign)(o,a),this.normalizeQueryParams(e,f,o);var s=(0,i.routeArgs)(e,f,o);return r.generate.apply(r,s)}},isActiveForRoute:function(e,t,f,i,r){var o=(0,n.get)(this,"router")._routerMicrolib.recognizer.handlersFor(f),s=o[o.length-1].handler,d=a(f,o);return e.length>d&&(f=s),i.isActiveIntent(f,e,t,!r)}})}),e("ember-routing/system/cache",["exports","ember-runtime"],function(e,t){"use strict";e.default=t.Object.extend({init:function(){this.cache=Object.create(null)},has:function(e){return!!this.cache[e]},stash:function(e,t,f){var n=this.cache[e];n||(n=this.cache[e]=Object.create(null)),n[t]=f},lookup:function(e,t,f){var n=this.cache;if(!this.has(e))return f;var i=n[e];return t in i&&void 0!==i[t]?i[t]:f}})}),e("ember-routing/system/controller_for",["exports"],function(e){"use strict";e.default=function(e,t,f){return e.lookup("controller:"+t,f)}}),e("ember-routing/system/dsl",["exports","ember-utils","ember-debug"],function(e,t,f){"use strict";function n(e){return"application"!==e.parent}function i(e,t,f){return n(e)&&!0!==f?e.parent+"."+t:t}function a(e,t){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments[3],a=i(e,t,f.resetNamespace);"string"!=typeof f.path&&(f.path="/"+t),e.push(f.path,a,n,f.serialize)}var r=0,o=function(){function e(e,t){this.parent=e,this.enableLoadingSubstates=t&&t.enableLoadingSubstates,this.matches=[],this.explicitIndex=void 0,this.options=t}return e.prototype.route=function(t){var f,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments[2],s="/_unused_dummy_error_path_route_"+t+"/:error";2===arguments.length&&"function"==typeof r&&(o=r,r={}),this.enableLoadingSubstates&&(a(this,t+"_loading",{resetNamespace:r.resetNamespace}),a(this,t+"_error",{resetNamespace:r.resetNamespace,path:s})),o?(f=i(this,t,r.resetNamespace),n=new e(f,this.options),a(n,"loading"),a(n,"error",{path:s}),o.call(n),a(this,t,r,n.generate())):a(this,t,r)},e.prototype.push=function(e,f,n,i){var a,r,o=f.split(".");if(this.options.engineInfo)a=f.slice(this.options.engineInfo.fullName.length+1),r=(0,t.assign)({localFullName:a},this.options.engineInfo),i&&(r.serializeMethod=i),this.options.addRouteForEngine(f,r);else if(i)throw new Error("Defining a route serializer on route '"+f+"' outside an Engine is not allowed.");""!==e&&"/"!==e&&"index"!==o[o.length-1]||(this.explicitIndex=!0),this.matches.push(e,f,n)},e.prototype.resource=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=arguments[2];2===arguments.length&&"function"==typeof t&&(f=t,t={}),t.resetNamespace=!0,this.route(e,t,f)},e.prototype.generate=function(){var e=this.matches;return this.explicitIndex||this.route("index",{path:"/"}),function(t){var f;for(f=0;f<e.length;f+=3)t(e[f]).to(e[f+1],e[f+2])}},e.prototype.mount=function(f){var n,o,s,d,c,u,l,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=this.options.resolveRouteMap(f),h=f;_.as&&(h=_.as);var p=i(this,h,_.resetNamespace),g={name:f,instanceId:r++,mountPoint:p,fullName:p},y=_.path;"string"!=typeof y&&(y="/"+h);var b=void 0,v="/_unused_dummy_error_path_route_"+h+"/:error";m&&(n=!1,(o=this.options.engineInfo)&&(n=!0,this.options.engineInfo=g),s=(0,t.assign)({engineInfo:g},this.options),d=new e(p,s),a(d,"loading"),a(d,"error",{path:v}),m.class.call(d),b=d.generate(),n&&(this.options.engineInfo=o));var w=(0,t.assign)({localFullName:"application"},g);this.enableLoadingSubstates&&(c=h+"_loading",u="application_loading",l=(0,t.assign)({localFullName:u},g),a(this,c,{resetNamespace:_.resetNamespace}),this.options.addRouteForEngine(c,l),c=h+"_error",u="application_error",l=(0,t.assign)({localFullName:u},g),a(this,c,{resetNamespace:_.resetNamespace,path:v}),this.options.addRouteForEngine(c,l)),this.options.addRouteForEngine(p,w),this.push(y,p,b)},e}();e.default=o,o.map=function(e){var t=new o;return e.call(t),t}}),e("ember-routing/system/generate_controller",["exports","ember-metal","ember-debug"],function(e){"use strict";function t(e,t){var f=e.factoryFor("controller:basic").class;return f=f.extend({toString:function(){return"(generated "+t+" controller)"}}),e.register("controller:"+t,f),f}e.generateControllerFactory=t,e.default=function(e,f){return t(e,f),e.lookup("controller:"+f)}}),e("ember-routing/system/query_params",["exports","ember-runtime"],function(e,t){"use strict";e.default=t.Object.extend({isQueryParams:!0,values:null})}),e("ember-routing/system/route",["exports","ember-utils","ember-metal","ember-debug","ember-runtime","ember-routing/system/generate_controller","ember-routing/utils"],function(e,t,f,n,i,a,r){"use strict";function o(){return this}function s(e,t){if(!(t.length<1)&&e){var n=t[0],i={};return 1===t.length?n in e?i[n]=(0,f.get)(e,n):/_id$/.test(n)&&(i[n]=(0,f.get)(e,"id")):i=(0,f.getProperties)(e,t),i}}function d(e){var t=c(e,e.router._routerMicrolib.state.handlerInfos,-1);return t&&t.handler}function c(e,t){var f,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t){for(f=0;f<t.length;f++)if(t[f].handler===e)return t[f+n]}}function u(e,f,n,i){var a,r=(0,t.getOwner)(e),o=void 0,s=void 0,c=void 0,u=void 0,l=void 0,_=void 0;i&&(c=i.into&&i.into.replace(/\//g,"."),u=i.outlet,l=i.controller,_=i.model),u=u||"main",f?(o=e.routeName,s=e.templateName||o):(o=n.replace(/\//g,"."),s=o),l||(l=f?e.controllerName||r.lookup("controller:"+o):r.lookup("controller:"+o)||e.controllerName||e.routeName),"string"==typeof l&&(a=l,l=r.lookup("controller:"+a)),_&&l.set("model",_);var m=r.lookup("template:"+s),h=void 0;return c&&(h=d(e))&&c===h.routeName&&(c=void 0),{owner:r,into:c,outlet:u,name:o,controller:l,template:m||e._topLevelViewTemplate,ViewClass:void 0}}function l(e,f){return f.fullQueryParams?f.fullQueryParams:(f.fullQueryParams={},(0,t.assign)(f.fullQueryParams,f.queryParams),e._deserializeQueryParams(f.handlerInfos,f.fullQueryParams),f.fullQueryParams)}function _(e,t){t.queryParamsFor=t.queryParamsFor||{};var n,i,a,r=e.fullRouteName;if(t.queryParamsFor[r])return t.queryParamsFor[r];var o=l(e.router,t),s=t.queryParamsFor[r]={},d=(0,f.get)(e,"_qp").qps;for(n=0;n<d.length;++n)i=d[n],a=i.prop in o,s[i.prop]=a?o[i.prop]:m(i.defaultValue);return s}function m(e){return Array.isArray(e)?(0,i.A)(e.slice()):e}function h(e,f){var n,i,a={},r={defaultValue:!0,type:!0,scope:!0,as:!0};for(var o in e)e.hasOwnProperty(o)&&(n={},(0,t.assign)(n,e[o],f[o]),a[o]=n,r[o]=!0);for(var s in f)f.hasOwnProperty(s)&&!r[s]&&(i={},(0,t.assign)(i,f[s],e[s]),a[s]=i);return a}function p(e,t){t.forEach(function(t){e.addObserver(t+".[]",e,e._qpChanged)})}function g(e,t){var f;return e.routable?(f=e.mountPoint,"application"===t?f:f+"."+t):t}e.defaultSerialize=s,e.hasDefaultSerialize=function(e){return!!e.serialize[y]};var y=(0,t.symbol)("DEFAULT_SERIALIZE");s[y]=!0;var b=i.Object.extend(i.ActionHandler,i.Evented,{queryParams:{},_setRouteName:function(e){this.routeName=e,this.fullRouteName=g((0,t.getOwner)(this),e)},_qp:(0,f.computed)(function(){var e,n,o,s,d,c,u,l,_,m,p,g=this,y=void 0,b=this.controllerName||this.routeName,v=(0,t.getOwner)(this),w=v.lookup("controller:"+b),k=(0,f.get)(this,"queryParams"),x=Object.keys(k).length>0;w?(e=(0,f.get)(w,"queryParams")||{},n=(0,r.normalizeControllerQueryParams)(e),y=h(n,k)):x&&(w=(0,a.default)(v,b),y=k);var q=[],E={},T=[];for(var S in y)y.hasOwnProperty(S)&&"unknownProperty"!==S&&"_super"!==S&&(o=y[S],s=o.scope||"model",d=void 0,"controller"===s&&(d=[]),c=o.as||this.serializeQueryParamKey(S),u=(0,f.get)(w,S),Array.isArray(u)&&(u=(0,i.A)(u.slice())),l=o.type||(0,i.typeOf)(u),_=this.serializeQueryParam(u,c,l),m=b+":"+S,p={undecoratedDefaultValue:(0,f.get)(w,S),defaultValue:u,serializedDefaultValue:_,serializedValue:_,type:l,urlKey:c,prop:S,scopedPropertyName:m,controllerName:b,route:this,parts:d,values:null,scope:s},E[S]=E[c]=E[m]=p,q.push(p),T.push(S));return{qps:q,map:E,propertyNames:T,states:{inactive:function(e,t){var f=E[e];g._qpChanged(e,t,f)},active:function(e,t){var f=E[e];return g._qpChanged(e,t,f),g._activeQPChanged(f,t)},allowOverrides:function(e,t){var f=E[e];return g._qpChanged(e,t,f),g._updatingQPChanged(f)}}}}),_names:null,_stashNames:function(e,t){if(!this._names){var n,i,a,r=this._names=e._names;r.length||(e=t,r=e&&e._names||[]);var o=(0,f.get)(this,"_qp.qps"),s=new Array(r.length);for(n=0;n<r.length;++n)s[n]=e.name+"."+r[n];for(i=0;i<o.length;++i)"model"===(a=o[i]).scope&&(a.parts=s)}},_activeQPChanged:function(e,t){this.router._activeQPChanged(e.scopedPropertyName,t)},_updatingQPChanged:function(e){this.router._updatingQPChanged(e.urlKey)},mergedProperties:["queryParams"],paramsFor:function(e){var f=(0,t.getOwner)(this).lookup("route:"+e);if(!f)return{};var n=this.router._routerMicrolib.activeTransition,i=n?n.state:this.router._routerMicrolib.state,a=f.fullRouteName,r=(0,t.assign)({},i.params[a]),o=_(f,i);return Object.keys(o).reduce(function(e,t){return e[t]=o[t],e},r)},serializeQueryParamKey:function(e){return e},serializeQueryParam:function(e,t,f){return this.router._serializeQueryParam(e,f)},deserializeQueryParam:function(e,t,f){return this.router._deserializeQueryParam(e,f)},_optionsForQueryParam:function(e){return(0,f.get)(this,"queryParams."+e.urlKey)||(0,f.get)(this,"queryParams."+e.prop)||{}},resetController:o,exit:function(){this.deactivate(),this.trigger("deactivate"),this.teardownViews()},_reset:function(e,t){var n=this.controller;n._qpDelegate=(0,f.get)(this,"_qp.states.inactive"),this.resetController(n,e,t)},enter:function(){this.connections=[],this.activate(),this.trigger("activate")},templateName:null,controllerName:null,actions:{queryParamsDidChange:function(e,t,n){var i,a,r=(0,f.get)(this,"_qp").map,o=Object.keys(e).concat(Object.keys(n));for(i=0;i<o.length;++i)if((a=r[o[i]])&&(0,f.get)(this._optionsForQueryParam(a),"refreshModel")&&this.router.currentState){this.refresh();break}return!0},finalizeQueryParamChange:function(e,t,n){if("application"!==this.fullRouteName)return!0;if(n){var i,a,o,s,d,c,u,l,_,h=n.state.handlerInfos,p=this.router,g=p._queryParamsFor(h),y=p._qpUpdates,b=void 0;for((0,r.stashParamNames)(p,h),i=0;i<g.qps.length;++i)a=g.qps[i],o=a.route,s=o.controller,d=a.urlKey in e&&a.urlKey,c=void 0,u=void 0,y&&a.urlKey in y?(c=(0,f.get)(s,a.prop),u=o.serializeQueryParam(c,a.urlKey,a.type)):d?(u=e[d],c=o.deserializeQueryParam(u,a.urlKey,a.type)):(u=a.serializedDefaultValue,c=m(a.defaultValue)),s._qpDelegate=(0,f.get)(o,"_qp.states.inactive"),u!==a.serializedValue&&(n.queryParamsOnly&&!1!==b&&(l=o._optionsForQueryParam(a),(_=(0,f.get)(l,"replace"))?b=!0:!1===_&&(b=!1)),(0,f.set)(s,a.prop,c)),a.serializedValue=u,a.serializedDefaultValue===u&&!n._keepDefaultQueryParamValues||t.push({value:u,visible:!0,key:d||a.urlKey});b&&n.method("replace"),g.qps.forEach(function(e){var t=(0,f.get)(e.route,"_qp");e.route.controller._qpDelegate=(0,f.get)(t,"states.active")}),p._qpUpdates=null}}},deactivate:o,activate:o,transitionTo:function(){var e;return(e=this.router).transitionTo.apply(e,(0,r.prefixRouteNameArg)(this,arguments))},intermediateTransitionTo:function(){var e;(e=this.router).intermediateTransitionTo.apply(e,(0,r.prefixRouteNameArg)(this,arguments))},refresh:function(){return this.router._routerMicrolib.refresh(this)},replaceWith:function(){var e;return(e=this.router).replaceWith.apply(e,(0,r.prefixRouteNameArg)(this,arguments))},send:function(){var e,t,f,i,a,r;for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];if(this.router&&this.router._routerMicrolib||!(0,n.isTesting)())(i=this.router).send.apply(i,t);else if(a=t.shift(),r=this.actions[a])return r.apply(this,t)},setup:function(e,t){var n,i,a,o,s,d=void 0,c=this.controllerName||this.routeName,u=this.controllerFor(c,!0);d=u||this.generateController(c),this.controller||(n=(0,f.get)(this,"_qp.propertyNames"),p(d,n),this.controller=d);var l=(0,f.get)(this,"_qp"),m=l.states;d._qpDelegate=m.allowOverrides,t&&((0,r.stashParamNames)(this.router,t.state.handlerInfos),i=t.params,a=l.propertyNames,o=this._bucketCache,a.forEach(function(e){var t,n=l.map[e];n.values=i;var a=(0,r.calculateCacheKey)(n.route.fullRouteName,n.parts,n.values);o&&(t=o.lookup(a,e,n.undecoratedDefaultValue),(0,f.set)(d,e,t))}),s=_(this,t.state),(0,f.setProperties)(d,s)),this.setupController(d,e,t),this._environment.options.shouldRender&&this.renderTemplate(d,e)},_qpChanged:function(e,t,f){if(f){var n=(0,r.calculateCacheKey)(f.route.fullRouteName,f.parts,f.values),i=this._bucketCache;i&&i.stash(n,e,t)}},beforeModel:o,afterModel:o,redirect:o,contextDidChange:function(){this.currentModel=this.context},model:function(e,t){var n,a=void 0,r=void 0,o=void 0,s=(0,f.get)(this,"_qp.map");for(var d in e)"queryParams"===d||s&&d in s||(null!==(n=d.match(/^(.*)_id$/))&&(a=n[1],o=e[d]),r=!0);if(!a){if(r)return(0,i.copy)(e);if(t.resolveIndex<1)return;return t.state.handlerInfos[t.resolveIndex-1].context}return this.findModel(a,o)},deserialize:function(e,t){return this.model(this.paramsFor(this.routeName),t)},findModel:function(){var e;return(e=(0,f.get)(this,"store")).find.apply(e,arguments)},store:(0,f.computed)(function(){var e=(0,t.getOwner)(this);return this.routeName,(0,f.get)(this,"router.namespace"),{find:function(t,f){var n=e.factoryFor("model:"+t);if(n)return(n=n.class).find(f)}}}),serialize:s,setupController:function(e,t){e&&void 0!==t&&(0,f.set)(e,"model",t)},controllerFor:function(e,f){var n=(0,t.getOwner)(this),i=n.lookup("route:"+e);return i&&i.controllerName&&(e=i.controllerName),n.lookup("controller:"+e)},generateController:function(e){var f=(0,t.getOwner)(this);return(0,a.default)(f,e)},modelFor:function(e){var f,n=void 0,i=(0,t.getOwner)(this),a=this.router?this.router._routerMicrolib.activeTransition:null;n=i.routable&&null!==a?g(i,e):e;var r=i.lookup("route:"+n);return null!==a&&(f=r&&r.routeName||n,a.resolvedModels.hasOwnProperty(f))?a.resolvedModels[f]:r&&r.currentModel},renderTemplate:function(){this.render()},render:function(e,t){var n=void 0,i=!0;arguments.length>0&&(i=(0,f.isEmpty)(e),"object"!=typeof e||t?n=e:(n=this.templateName||this.routeName,t=e));var a=u(this,i,n,t);this.connections.push(a),f.run.once(this.router,"_setOutlets")},disconnectOutlet:function(e){var t,f=void 0,n=void 0;e&&("string"==typeof e?f=e:(f=e.outlet,n=e.parentView?e.parentView.replace(/\//g,"."):void 0)),f=f||"main",this._disconnectOutlet(f,n);var i=this.router._routerMicrolib.currentHandlerInfos;for(t=0;t<i.length;t++)i[t].handler._disconnectOutlet(f,n)},_disconnectOutlet:function(e,t){var n,i,a=d(this);for(a&&t===a.routeName&&(t=void 0),n=0;n<this.connections.length;n++)(i=this.connections[n]).outlet===e&&i.into===t&&(this.connections[n]={owner:i.owner,into:i.into,outlet:i.outlet,name:i.name,controller:void 0,template:void 0,ViewClass:void 0},f.run.once(this.router,"_setOutlets"))},willDestroy:function(){this.teardownViews()},teardownViews:function(){this.connections&&this.connections.length>0&&(this.connections=[],f.run.once(this.router,"_setOutlets"))}});(0,i.deprecateUnderscoreActions)(b),b.reopenClass({isRouteFactory:!0}),e.default=b}),e("ember-routing/system/router",["exports","ember-utils","ember-console","ember-metal","ember-debug","ember-runtime","ember-routing/system/route","ember-routing/system/dsl","ember-routing/location/api","ember-routing/utils","ember-routing/system/router_state","router"],function(e,t,f,n,i,a,r,o,s,d,c,u){"use strict";function l(){return this}function _(e,t,f){var n,i,a,r=!1;for(n=t.length-1;n>=0;--n)if(i=t[n],a=i.handler,e===a&&(r=!0),r&&!0!==f(a))return}function m(e,t){var n=[],i=void 0;i=e&&"object"==typeof e&&"object"==typeof e.errorThrown?e.errorThrown:e,t&&n.push(t),i&&(i.message&&n.push(i.message),i.stack&&n.push(i.stack),"string"==typeof i&&n.push(i)),f.default.error.apply(this,n)}function h(e,f){var n=(0,t.getOwner)(e),i=e.routeName,a=e.fullRouteName+"_"+f;return g(n,e.router,i+"_"+f,a)?a:""}function p(e,f){var n=(0,t.getOwner)(e),i=e.routeName,a=e.fullRouteName,r=e.router,o="application"===i?f:i+"."+f,s="application"===a?f:a+"."+f;return g(n,r,o,s)?s:""}function g(e,t,f,n){var i=t.hasRoute(n),a=e.hasRegistration("template:"+f)||e.hasRegistration("route:"+f);return i&&a}function y(e,f,n){var a,r,o=n.shift();if(!e){if(f)return;throw new i.Error("Can't trigger action '"+o+"' because your app hasn't finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call `.send()` on the `Transition` object passed to the `model/beforeModel/afterModel` hooks.")}var s=!1,d=void 0,c=void 0,u=void 0;for(a=e.length-1;a>=0;a--)if(d=e[a],c=d.handler,u=c&&c.actions&&c.actions[o]){if(!0!==u.apply(c,n))return void("error"===o&&(r=(0,t.guidFor)(n[0]),c.router._markErrorAsHandled(r)));s=!0}var l=A[o];if(l)l.apply(null,n);else if(!s&&!f)throw new i.Error("Nothing handled the action '"+o+"'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.")}function b(e,t,f){var n,i,a=e._routerMicrolib.applyIntent(t,f),r=a.handlerInfos,o=a.params;for(n=0;n<r.length;++n)(i=r[n]).isResolved?o[i.name]=i.params:o[i.name]=i.serialize(i.context);return a}function v(e){var f=e._routerMicrolib.currentHandlerInfos;if(0!==f.length){var i=C._routePath(f),a=f[f.length-1].name,r=e.get("location").getURL();(0,n.set)(e,"currentPath",i),(0,n.set)(e,"currentRouteName",a),(0,n.set)(e,"currentURL",r);var o=(0,t.getOwner)(e).lookup("controller:application");o&&("currentPath"in o||(0,n.defineProperty)(o,"currentPath"),(0,n.set)(o,"currentPath",i),"currentRouteName"in o||(0,n.defineProperty)(o,"currentRouteName"),(0,n.set)(o,"currentRouteName",a))}}function w(e,f){var n=c.default.create({emberRouter:f,routerJs:f._routerMicrolib,routerJsState:e.state});f.currentState||f.set("currentState",n),f.set("targetState",n),e.promise=e.catch(function(e){var n=(0,t.guidFor)(e);if(!f._isErrorHandled(n))throw e;f._clearHandledError(n)})}function k(e){return"string"==typeof e&&(""===e||"/"===e[0])}function x(e,t,f,n){var i,a,r=e._queryParamsFor(t);for(var o in f)f.hasOwnProperty(o)&&(i=f[o],a=r.map[o],n(o,i,a))}function q(e,t){if(e)for(var f,n,i=[e];i.length>0;){if((f=i.shift()).render.name===t)return f;n=f.outlets;for(var a in n)i.push(n[a])}}function E(e,t,f){var i=void 0,a={render:f,outlets:Object.create(null),wasUsed:!1};return(i=f.into?q(e,f.into):t)?(0,n.set)(i.outlets,f.outlet,a):f.into?T(e,f.into,a):e=a,{liveRoutes:e,ownState:a}}function T(e,t,f){e.outlets.__ember_orphans__||(e.outlets.__ember_orphans__={render:{name:"__ember_orphans__"},outlets:Object.create(null)}),e.outlets.__ember_orphans__.outlets[t]=f,n.run.schedule("afterRender",function(){})}function S(e,t,f){var n=q(e,f.routeName);return n||(t.outlets.main={render:{name:f.routeName,outlet:"main"},outlets:{}},t)}e.triggerEvent=y;var M=Array.prototype.slice,C=a.Object.extend(a.Evented,{location:"hash",rootURL:"/",_initRouterJs:function(){var e=this._routerMicrolib=new u.default;e.triggerEvent=y,e._triggerWillChangeContext=l,e._triggerWillLeave=l;var t=this.constructor.dslCallbacks||[l],f=this._buildDSL();f.route("application",{path:"/",resetNamespace:!0,overrideNameAssertion:!0},function(){var e;for(e=0;e<t.length;e++)t[e].call(this)}),e.map(f.generate())},_buildDSL:function(){var e={enableLoadingSubstates:!!this._hasModuleBasedResolver()},f=(0,t.getOwner)(this),n=this;return e.resolveRouteMap=function(e){return f.factoryFor("route-map:"+e)},e.addRouteForEngine=function(e,t){n._engineInfoByRoute[e]||(n._engineInfoByRoute[e]=t)},new o.default(null,e)},init:function(){this._super.apply(this,arguments),this.currentURL=null,this.currentRouteName=null,this.currentPath=null,this._qpCache=Object.create(null),this._resetQueuedQueryParameterChanges(),this._handledErrors=(0,t.dictionary)(null),this._engineInstances=Object.create(null),this._engineInfoByRoute=Object.create(null)},_resetQueuedQueryParameterChanges:function(){this._queuedQPChanges={}},url:(0,n.computed)(function(){return(0,n.get)(this,"location").getURL()}),_hasModuleBasedResolver:function(){var e=(0,t.getOwner)(this);if(!e)return!1;var f=e.application&&e.application.__registry__&&e.application.__registry__.resolver;return!!f&&!!f.moduleBasedResolver},startRouting:function(){var e,t=(0,n.get)(this,"initialURL");if(this.setupRouter()&&(void 0===t&&(t=(0,n.get)(this,"location").getURL()),(e=this.handleURL(t))&&e.error))throw e.error},setupRouter:function(){var e=this;this._initRouterJs(),this._setupLocation();var t=(0,n.get)(this,"location");return!(0,n.get)(t,"cancelRouterSetup")&&(this._setupRouter(t),t.onUpdateURL(function(t){e.handleURL(t)}),!0)},didTransition:function(){v(this),this._cancelSlowTransitionTimer(),this.notifyPropertyChange("url"),this.set("currentState",this.targetState),n.run.once(this,this.trigger,"didTransition")},_setOutlets:function(){if(!this.isDestroying&&!this.isDestroyed){var e,f,n,i,a,r,o,s=this._routerMicrolib.currentHandlerInfos,d=void 0,c=void 0,u=null;if(s){for(e=0;e<s.length;e++){for(f=(d=s[e].handler).connections,n=void 0,i=0;i<f.length;i++)a=E(u,c,f[i]),u=a.liveRoutes,a.ownState.render.name!==d.routeName&&"main"!==a.ownState.render.outlet||(n=a.ownState);0===f.length&&(n=S(u,c,d)),c=n}u&&(this._toplevelView?this._toplevelView.setOutletState(u):(r=(0,t.getOwner)(this),o=r.factoryFor("view:-outlet"),this._toplevelView=o.create(),this._toplevelView.setOutletState(u),r.lookup("-application-instance:main").didCreateRootView(this._toplevelView)))}}},willTransition:function(e,t,f){n.run.once(this,this.trigger,"willTransition",f)},handleURL:function(e){var t=e.split(/#(.+)?/)[0];return this._doURLTransition("handleURL",t)},_doURLTransition:function(e,t){var f=this._routerMicrolib[e](t||"/");return w(f,this),f},transitionTo:function(){var e,t,f,n=void 0;for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];var i=t[0];if(k(i))return this._doURLTransition("transitionTo",i);var a=t[t.length-1];n=a&&a.hasOwnProperty("queryParams")?t.pop().queryParams:{};var r=t.shift();return this._doTransition(r,t,n)},intermediateTransitionTo:function(){var e;(e=this._routerMicrolib).intermediateTransitionTo.apply(e,arguments),v(this)},replaceWith:function(){return this.transitionTo.apply(this,arguments).method("replace")},generate:function(){var e,t=(e=this._routerMicrolib).generate.apply(e,arguments);return this.location.formatURL(t)},isActive:function(){var e;return(e=this._routerMicrolib).isActive.apply(e,arguments)},isActiveIntent:function(e,t,f){return this.currentState.isActiveIntent(e,t,f)},send:function(){var e;(e=this._routerMicrolib).trigger.apply(e,arguments)},hasRoute:function(e){return this._routerMicrolib.hasRoute(e)},reset:function(){this._routerMicrolib&&this._routerMicrolib.reset()},willDestroy:function(){this._toplevelView&&(this._toplevelView.destroy(),this._toplevelView=null),this._super.apply(this,arguments),this.reset();var e=this._engineInstances;for(var t in e)for(var f in e[t])(0,n.run)(e[t][f],"destroy")},_activeQPChanged:function(e,t){this._queuedQPChanges[e]=t,n.run.once(this,this._fireQueryParamTransition)},_updatingQPChanged:function(e){this._qpUpdates||(this._qpUpdates={}),this._qpUpdates[e]=!0},_fireQueryParamTransition:function(){this.transitionTo({queryParams:this._queuedQPChanges}),this._resetQueuedQueryParameterChanges()},_setupLocation:function(){var e,f,i=(0,n.get)(this,"location"),a=(0,n.get)(this,"rootURL"),r=(0,t.getOwner)(this);"string"==typeof i&&r&&(void 0!==(e=r.lookup("location:"+i))?i=(0,n.set)(this,"location",e):(f={implementation:i},i=(0,n.set)(this,"location",s.default.create(f)))),null!==i&&"object"==typeof i&&(a&&(0,n.set)(i,"rootURL",a),"function"==typeof i.detect&&i.detect(),"function"==typeof i.initState&&i.initState())},_getHandlerFunction:function(){var e=this,f=Object.create(null),n=(0,t.getOwner)(this);return function(t){var i,a,o=t,s=n,d=e._engineInfoByRoute[o];d&&(i=e._getEngineInstance(d),s=i,o=d.localFullName);var c="route:"+o,u=s.lookup(c);if(f[t])return u;if(f[t]=!0,u||(a=s.factoryFor("route:basic").class,s.register(c,a.extend()),u=s.lookup(c)),u._setRouteName(o),d&&!(0,r.hasDefaultSerialize)(u))throw new Error("Defining a custom serialize method on an Engine route is not supported.");return u}},_getSerializerFunction:function(){var e=this;return function(t){var f=e._engineInfoByRoute[t];if(f)return f.serializeMethod||r.defaultSerialize}},_setupRouter:function(e){var t,f=this,i=void 0,a=this._routerMicrolib;a.getHandler=this._getHandlerFunction(),a.getSerializer=this._getSerializerFunction();var r=function(){e.setURL(i),(0,n.set)(f,"currentURL",i)};a.updateURL=function(e){i=e,n.run.once(r)},e.replaceURL&&(t=function(){e.replaceURL(i),(0,n.set)(f,"currentURL",i)},a.replaceURL=function(e){i=e,n.run.once(t)}),a.didTransition=function(e){f.didTransition(e)},a.willTransition=function(e,t,n){f.willTransition(e,t,n)}},_serializeQueryParams:function(e,t){var f=this;x(this,e,t,function(e,n,i){i?(delete t[e],t[i.urlKey]=i.route.serializeQueryParam(n,i.urlKey,i.type)):void 0===n||(t[e]=f._serializeQueryParam(n,(0,a.typeOf)(n)))})},_serializeQueryParam:function(e,t){return"array"===t?JSON.stringify(e):""+e},_deserializeQueryParams:function(e,t){x(this,e,t,function(e,f,n){n&&(delete t[e],t[n.prop]=n.route.deserializeQueryParam(f,n.urlKey,n.type))})},_deserializeQueryParam:function(e,t){return"boolean"===t?"true"===e:"number"===t?Number(e).valueOf():"array"===t?(0,a.A)(JSON.parse(e)):e},_pruneDefaultQueryParamValues:function(e,t){var f,n=this._queryParamsFor(e);for(var i in t)(f=n.map[i])&&f.serializedDefaultValue===t[i]&&delete t[i]},_doTransition:function(e,f,n,i){var a,r=e||(0,d.getActiveTargetName)(this._routerMicrolib),o={};this._processActiveTransitionQueryParams(r,f,o,n),(0,t.assign)(o,n),this._prepareQueryParams(r,f,o,i);var s=(0,d.routeArgs)(r,f,o),c=(a=this._routerMicrolib).transitionTo.apply(a,s);return w(c,this),c},_processActiveTransitionQueryParams:function(e,f,n,i){if(this._routerMicrolib.activeTransition){var a={},r=this._qpUpdates||{},o=this._routerMicrolib.activeTransition.queryParams;for(var s in o)r[s]||(a[s]=o[s]);this._fullyScopeQueryParams(e,f,i),this._fullyScopeQueryParams(e,f,a),(0,t.assign)(n,a)}},_prepareQueryParams:function(e,t,f,n){var i=b(this,e,t);this._hydrateUnsuppliedQueryParams(i,f,n),this._serializeQueryParams(i.handlerInfos,f),n||this._pruneDefaultQueryParamValues(i.handlerInfos,f)},_getQPMeta:function(e){var t=e.handler;return t&&(0,n.get)(t,"_qp")},_queryParamsFor:function(e){var f,n,i,a,r,o,s=e.length,d=e[s-1].name,c=this._qpCache[d];if(c)return c;var u=!0,l={},_={},m=[];for(f=0;f<s;++f)if(n=this._getQPMeta(e[f])){for(i=0;i<n.qps.length;i++)a=n.qps[i],r=a.urlKey,(o=l[r])&&o.controllerName!==a.controllerName&&l[r],l[r]=a,m.push(a);(0,t.assign)(_,n.map)}else u=!1;var h={qps:m,map:_};return u&&(this._qpCache[d]=h),h},_fullyScopeQueryParams:function(e,t,f){var n,i,a,r,o,s,d,c=b(this,e,t).handlerInfos;for(n=0,i=c.length;n<i;++n)if(a=this._getQPMeta(c[n]))for(r=0,o=a.qps.length;r<o;++r)s=a.qps[r],(d=s.prop in f&&s.prop||s.scopedPropertyName in f&&s.scopedPropertyName||s.urlKey in f&&s.urlKey)&&d!==s.scopedPropertyName&&(f[s.scopedPropertyName]=f[d],delete f[d])},_hydrateUnsuppliedQueryParams:function(e,t,f){var n,i,a,r,o,s,c,u=e.handlerInfos,l=this._bucketCache;for(n=0;n<u.length;++n)if(i=this._getQPMeta(u[n]))for(a=0,r=i.qps.length;a<r;++a)o=i.qps[a],(s=o.prop in t&&o.prop||o.scopedPropertyName in t&&o.scopedPropertyName||o.urlKey in t&&o.urlKey)?s!==o.scopedPropertyName&&(t[o.scopedPropertyName]=t[s],delete t[s]):(c=(0,d.calculateCacheKey)(o.route.fullRouteName,o.parts,e.params),t[o.scopedPropertyName]=l.lookup(c,o.prop,o.defaultValue))},_scheduleLoadingEvent:function(e,t){this._cancelSlowTransitionTimer(),this._slowTransitionTimer=n.run.scheduleOnce("routerTransitions",this,"_handleSlowTransition",e,t)},currentState:null,targetState:null,_handleSlowTransition:function(e,t){this._routerMicrolib.activeTransition&&(this.set("targetState",c.default.create({emberRouter:this,routerJs:this._routerMicrolib,routerJsState:this._routerMicrolib.activeTransition.state})),e.trigger(!0,"loading",e,t))},_cancelSlowTransitionTimer:function(){this._slowTransitionTimer&&n.run.cancel(this._slowTransitionTimer),this._slowTransitionTimer=null},_markErrorAsHandled:function(e){this._handledErrors[e]=!0},_isErrorHandled:function(e){return this._handledErrors[e]},_clearHandledError:function(e){delete this._handledErrors[e]},_getEngineInstance:function(e){var f,n=e.name,i=e.instanceId,a=e.mountPoint,r=this._engineInstances;r[n]||(r[n]=Object.create(null));var o=r[n][i];return o||(f=(0,t.getOwner)(this),(o=f.buildChildEngineInstance(n,{routable:!0,mountPoint:a})).boot(),r[n][i]=o),o}}),A={willResolveModel:function(e,t){t.router._scheduleLoadingEvent(e,t)},error:function(e,t,f){var n=t.state.handlerInfos,i=f.router;_(f,n,function(t){if(f!==t&&(n=p(t,"error")))return i.intermediateTransitionTo(n,e),!1;var n,a=h(t,"error");return!a||(i.intermediateTransitionTo(a,e),!1)}),m(e,"Error while processing route: "+t.targetName)},loading:function(e,t){var f=e.state.handlerInfos,n=t.router;_(t,f,function(f){if(t!==f&&(i=p(f,"loading")))return n.intermediateTransitionTo(i),!1;var i,a=h(f,"loading");return a?(n.intermediateTransitionTo(a),!1):e.pivotHandler!==f})}};C.reopenClass({router:null,map:function(e){return this.dslCallbacks||(this.dslCallbacks=[],this.reopenClass({dslCallbacks:this.dslCallbacks})),this.dslCallbacks.push(e),this},_routePath:function(e){var t,f=[],n=void 0,i=void 0;for(t=1;t<e.length;t++){for(n=e[t].name.split("."),i=M.call(f);i.length&&!function(e,t){var f;for(f=0;f<e.length;++f)if(e[f]!==t[f])return!1;return!0}(i,n);)i.shift();f.push.apply(f,n.slice(i.length))}return f.join(".")}}),(0,n.deprecateProperty)(C.prototype,"router","_routerMicrolib",{id:"ember-router.router",until:"2.16",url:"https://emberjs.com/deprecations/v2.x/#toc_ember-router-router-renamed-to-ember-router-_routermicrolib"}),e.default=C}),e("ember-routing/system/router_state",["exports","ember-utils","ember-metal","ember-runtime"],function(e,t,f,n){"use strict";function i(e,t){var f=void 0;for(f in e)if(e.hasOwnProperty(f)&&e[f]!==t[f])return!1;for(f in t)if(t.hasOwnProperty(f)&&e[f]!==t[f])return!1;return!0}e.default=n.Object.extend({emberRouter:null,routerJs:null,routerJsState:null,isActiveIntent:function(e,n,a,r){var o,s=this.routerJsState;if(!this.routerJs.isActiveIntent(e,n,null,s))return!1;var d=(0,f.isEmpty)(Object.keys(a));return!(r&&!d)||(o={},(0,t.assign)(o,a),this.emberRouter._prepareQueryParams(e,n,o),i(o,s.queryParams))}})}),e("ember-routing/utils",["exports","ember-utils","ember-metal","ember-debug"],function(e,t,f,n){"use strict";function i(e,t){var f,n,i=e.split("."),a="";for(f=0;f<i.length&&(n=i.slice(0,f+1).join("."),0===t.indexOf(n));f++)a=n;return a}function a(e,f){var n,i=e,a=void 0;"string"==typeof i&&(a={},a[i]={as:null},i=a);for(var r in i){if(!i.hasOwnProperty(r))return;"string"==typeof(n=i[r])&&(n={as:n}),a=f[r]||{as:null,scope:"model"},(0,t.assign)(a,n),f[r]=a}}function r(e){return"string"==typeof e&&(""===e||"/"===e.charAt(0))}e.routeArgs=function(e,t,f){var n=[];return"string"==typeof e&&n.push(""+e),n.push.apply(n,t),n.push({queryParams:f}),n},e.getActiveTargetName=function(e){var t=e.activeTransition?e.activeTransition.state.handlerInfos:e.state.handlerInfos;return t[t.length-1].name},e.stashParamNames=function(e,t){if(!t._namesStashed){var f,n,i,a=t[t.length-1].name,r=e._routerMicrolib.recognizer.handlersFor(a),o=null;for(f=0;f<t.length;++f)n=t[f],(i=r[f].names).length&&(o=n),n._names=i,n.handler._stashNames(n,o);t._namesStashed=!0}},e.calculateCacheKey=function(e){var t,n,a,r,s,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=arguments[2],u="";for(t=0;t<d.length;++t)n=d[t],a=i(e,n),r=void 0,c&&(a&&a in c?(s=0===n.indexOf(a)?n.substr(a.length+1):n,r=(0,f.get)(c[a],s)):r=(0,f.get)(c,n)),u+="::"+n+":"+r;return e+u.replace(o,"-")},e.normalizeControllerQueryParams=function(e){var t,f={};for(t=0;t<e.length;++t)a(e[t],f);return f},e.prefixRouteNameArg=function(e,f){var i=f[0],a=(0,t.getOwner)(e),o=a.mountPoint;if(a.routable&&"string"==typeof i){if(r(i))throw new n.Error("Programmatic transitions by URL cannot be used within an Engine. Please use the route name instead.");i=o+"."+i,f[0]=i}return f};var o=/\./g}),e("ember-runtime/compare",["exports","ember-runtime/utils","ember-runtime/mixins/comparable"],function(e,t,f){"use strict";function n(e,t){var f=e-t;return(f>0)-(f<0)}function i(e,r){if(e===r)return 0;var o,s,d,c,u,l=(0,t.typeOf)(e),_=(0,t.typeOf)(r);if(f.default){if("instance"===l&&f.default.detect(e)&&e.constructor.compare)return e.constructor.compare(e,r);if("instance"===_&&f.default.detect(r)&&r.constructor.compare)return-1*r.constructor.compare(r,e)}var m=n(a[l],a[_]);if(0!==m)return m;switch(l){case"boolean":case"number":return n(e,r);case"string":return n(e.localeCompare(r),0);case"array":for(o=e.length,s=r.length,d=Math.min(o,s),c=0;c<d;c++)if(0!==(u=i(e[c],r[c])))return u;return n(o,s);case"instance":return f.default&&f.default.detect(e)?e.compare(e,r):0;case"date":return n(e.getTime(),r.getTime());default:return 0}}e.default=i;var a={undefined:0,null:1,boolean:2,number:3,string:4,array:5,object:6,instance:7,function:8,class:9,date:10}}),e("ember-runtime/computed/computed_macros",["exports","ember-metal","ember-debug"],function(e,t,f){"use strict";function n(e,f){var n,i,a=[];for(n=0;n<f.length;n++)i=f[n],(0,t.expandProperties)(i,function(e){a.push(e)});return a}function i(e,f){return function(){for(i=arguments.length,a=Array(i),r=0;r<i;r++)a[r]=arguments[r];var i,a,r,o=n(e,a),s=(0,t.computed)(function(){var e,n,i=o.length-1;for(e=0;e<i;e++)if(n=(0,t.get)(this,o[e]),!f(n))return n;return(0,t.get)(this,o[i])});return s.property.apply(s,o)}}e.or=e.and=void 0,e.empty=function(e){return(0,t.computed)(e+".length",function(){return(0,t.isEmpty)((0,t.get)(this,e))})},e.notEmpty=function(e){return(0,t.computed)(e+".length",function(){return!(0,t.isEmpty)((0,t.get)(this,e))})},e.none=function(e){return(0,t.computed)(e,function(){return(0,t.isNone)((0,t.get)(this,e))})},e.not=function(e){return(0,t.computed)(e,function(){return!(0,t.get)(this,e)})},e.bool=function(e){return(0,t.computed)(e,function(){return!!(0,t.get)(this,e)})},e.match=function(e,f){return(0,t.computed)(e,function(){var n=(0,t.get)(this,e);return"string"==typeof n&&f.test(n)})},e.equal=function(e,f){return(0,t.computed)(e,function(){return(0,t.get)(this,e)===f})},e.gt=function(e,f){return(0,t.computed)(e,function(){return(0,t.get)(this,e)>f})},e.gte=function(e,f){return(0,t.computed)(e,function(){return(0,t.get)(this,e)>=f})},e.lt=function(e,f){return(0,t.computed)(e,function(){return(0,t.get)(this,e)<f})},e.lte=function(e,f){return(0,t.computed)(e,function(){return(0,t.get)(this,e)<=f})},e.oneWay=function(e){return(0,t.alias)(e).oneWay()},e.readOnly=function(e){return(0,t.alias)(e).readOnly()},e.deprecatingAlias=function(e,f){return(0,t.computed)(e,{get:function(f){return(0,t.get)(this,e)},set:function(f,n){return(0,t.set)(this,e,n),n}})},e.and=i("and",function(e){return e}),e.or=i("or",function(e){return!e})}),e("ember-runtime/computed/reduce_computed_macros",["exports","ember-utils","ember-debug","ember-metal","ember-runtime/compare","ember-runtime/utils","ember-runtime/system/native_array"],function(e,t,f,n,i,a,r){"use strict";function o(e,t,f){return(0,n.computed)(e+".[]",function(){var i=this,a=(0,n.get)(this,e);return null===a||"object"!=typeof a?f:a.reduce(function(e,f,n,a){return t.call(i,e,f,n,a)},f)}).readOnly()}function s(e,t){var f=void 0;return/@each/.test(e)?f=e.replace(/\.@each.*$/,""):(f=e,e+=".[]"),(0,n.computed)(e,function(){var e=(0,n.get)(this,f);return(0,a.isArray)(e)?(0,r.A)(t.call(this,e)):(0,r.A)()}).readOnly()}function d(e,t){var f=e.map(function(e){return e+".[]"});return f.push(function(){return(0,r.A)(t.call(this,e))}),n.computed.apply(this,f).readOnly()}function c(e,t){return s(e,function(e){return e.map(t,this)})}function u(e,t){return s(e,function(e){return e.filter(t,this)})}function l(){var e,t,f;for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];return d(t,function(e){var t=this,f=(0,r.A)();return e.forEach(function(e){var i=(0,n.get)(t,e);(0,a.isArray)(i)&&i.forEach(function(e){-1===f.indexOf(e)&&f.push(e)})}),f})}function _(e,t){return s(e,function(e){var f=this;return e.slice().sort(function(e,n){return t.call(f,e,n)})})}function m(e,t){var f=new n.ComputedProperty(function(i){function o(){this.notifyPropertyChange(i)}var s=this,d="@this"===e,c=h((0,n.get)(this,t)),u=f._activeObserverMap||(f._activeObserverMap=new n.WeakMap),l=u.get(this);l&&l.forEach(function(e){return n.removeObserver.apply(void 0,e)}),l=c.map(function(t){var f=t[0],i=[s,d?"@each."+f:e+".@each."+f,o];return n.addObserver.apply(void 0,i),i}),u.set(this,l);var _=d?this:(0,n.get)(this,e);return(0,a.isArray)(_)?p(_,c):(0,r.A)()});return f._activeObserverMap=void 0,f.property(t+".[]").readOnly()}function h(e){return e.map(function(e){var t=e.split(":"),f=t[0],n=t[1];return n=n||"asc",[f,n]})}function p(e,t){return(0,r.A)(e.slice().sort(function(e,f){var a,r,o,s,d;for(a=0;a<t.length;a++)if(r=t[a],o=r[0],s=r[1],0!==(d=(0,i.default)((0,n.get)(e,o),(0,n.get)(f,o))))return"desc"===s?-1*d:d;return 0}))}e.union=void 0,e.sum=function(e){return o(e,function(e,t){return e+t},0)},e.max=function(e){return o(e,function(e,t){return Math.max(e,t)},-1/0)},e.min=function(e){return o(e,function(e,t){return Math.min(e,t)},1/0)},e.map=c,e.mapBy=function(e,t){return c(e+".@each."+t,function(e){return(0,n.get)(e,t)})},e.filter=u,e.filterBy=function(e,t,f){var i=void 0;return i=2===arguments.length?function(e){return(0,n.get)(e,t)}:function(e){return(0,n.get)(e,t)===f},u(e+".@each."+t,i)},e.uniq=l,e.uniqBy=function(e,f){return(0,n.computed)(e+".[]",function(){var i=(0,r.A)(),o=Object.create(null),s=(0,n.get)(this,e);return(0,a.isArray)(s)&&s.forEach(function(e){var a=(0,t.guidFor)((0,n.get)(e,f));a in o||(o[a]=!0,i.push(e))}),i}).readOnly()},e.intersect=function(){var e,t,f;for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];return d(t,function(e){var t=this,f=e.map(function(e){var f=(0,n.get)(t,e);return(0,a.isArray)(f)?f:[]}),i=f.pop().filter(function(e){var t,n,i,a;for(t=0;t<f.length;t++){for(n=!1,i=f[t],a=0;a<i.length;a++)if(i[a]===e){n=!0;break}if(!1===n)return!1}return!0});return(0,r.A)(i)})},e.setDiff=function(e,t){return(0,n.computed)(e+".[]",t+".[]",function(){var f=this.get(e),n=this.get(t);return(0,a.isArray)(f)?(0,a.isArray)(n)?f.filter(function(e){return-1===n.indexOf(e)}):(0,r.A)(f):(0,r.A)()}).readOnly()},e.collect=function(){var e,t,f;for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];return d(t,function(){var e=(0,n.getProperties)(this,t),f=(0,r.A)();for(var i in e)e.hasOwnProperty(i)&&(void 0===e[i]?f.push(null):f.push(e[i]));return f})},e.sort=function(e,t){return"function"==typeof t?_(e,t):m(e,t)},e.union=l}),e("ember-runtime/controllers/controller",["exports","ember-debug","ember-runtime/system/object","ember-runtime/mixins/controller","ember-runtime/inject","ember-runtime/mixins/action_handler"],function(e,t,f,n,i,a){"use strict";var r=f.default.extend(n.default);(0,a.deprecateUnderscoreActions)(r),(0,i.createInjectionHelper)("controller",function(e){}),e.default=r}),e("ember-runtime/copy",["exports","ember-debug","ember-runtime/system/object","ember-runtime/mixins/copyable"],function(e,t,f,n){"use strict";function i(e,t,f,a){var r=void 0,o=void 0,s=void 0;if("object"!=typeof e||null===e)return e;if(t&&(o=f.indexOf(e))>=0)return a[o];if(Array.isArray(e)){if(r=e.slice(),t)for(o=r.length;--o>=0;)r[o]=i(r[o],t,f,a)}else if(n.default&&n.default.detect(e))r=e.copy(t,f,a);else if(e instanceof Date)r=new Date(e.getTime());else{r={};for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&"__"!==s.substring(0,2)&&(r[s]=t?i(e[s],t,f,a):e[s])}return t&&(f.push(e),a.push(r)),r}e.default=function(e,t){return"object"!=typeof e||null===e?e:n.default&&n.default.detect(e)?e.copy(t):i(e,t,t?[]:null,t?[]:null)}}),e("ember-runtime/ext/function",["ember-environment","ember-metal","ember-debug"],function(e,t,f){"use strict";var n=Array.prototype.slice,i=Function.prototype;e.ENV.EXTEND_PROTOTYPES.Function&&(i.property=function(){var e=(0,t.computed)(this);return e.property.apply(e,arguments)},i.observes=function(){var e,f,n;for(e=arguments.length,f=Array(e),n=0;n<e;n++)f[n]=arguments[n];return f.push(this),t.observer.apply(this,f)},i._observesImmediately=function(){return this.observes.apply(this,arguments)},i.observesImmediately=(0,f.deprecateFunc)("Function#observesImmediately is deprecated. Use Function#observes instead",{id:"ember-runtime.ext-function",until:"3.0.0"},i._observesImmediately),i.on=function(){var e=n.call(arguments);return this.__ember_listens__=e,this})}),e("ember-runtime/ext/rsvp",["exports","rsvp","ember-metal","ember-debug"],function(e,t,f,n){"use strict";function i(e){var t=a(e);t&&(0,f.dispatchError)(t)}function a(e){if(e){if(e.errorThrown)return r(e);if("UnrecognizedURLError"!==e.name&&"TransitionAborted"!==e.name)return e}}function r(e){var t=e.errorThrown;return"string"==typeof t&&(t=new Error(t)),Object.defineProperty(t,"__reason_with_error_thrown__",{value:e,enumerable:!1}),t}e.onerrorDefault=i;var o=f.run.backburner;f.run._addQueue("rsvpAfter","destroy"),t.configure("async",function(e,t){o.schedule("actions",null,e,t)}),t.configure("after",function(e){o.schedule("rsvpAfter",null,e)}),t.on("error",i),e.default=t}),e("ember-runtime/ext/string",["ember-environment","ember-runtime/system/string"],function(e,t){"use strict";var f=String.prototype;e.ENV.EXTEND_PROTOTYPES.String&&(f.fmt=function(){var e,f,n;for(e=arguments.length,f=Array(e),n=0;n<e;n++)f[n]=arguments[n];return(0,t.fmt)(this,f)},f.w=function(){return(0,t.w)(this)},f.loc=function(){var e,f,n;for(e=arguments.length,f=Array(e),n=0;n<e;n++)f[n]=arguments[n];return(0,t.loc)(this,f)},f.camelize=function(){return(0,t.camelize)(this)},f.decamelize=function(){return(0,t.decamelize)(this)},f.dasherize=function(){return(0,t.dasherize)(this)},f.underscore=function(){return(0,t.underscore)(this)},f.classify=function(){return(0,t.classify)(this)},f.capitalize=function(){return(0,t.capitalize)(this)})}),e("ember-runtime/index",["exports","ember-runtime/system/object","ember-runtime/system/string","ember-runtime/mixins/registry_proxy","ember-runtime/mixins/container_proxy","ember-runtime/copy","ember-runtime/inject","ember-runtime/compare","ember-runtime/is-equal","ember-runtime/mixins/array","ember-runtime/mixins/comparable","ember-runtime/system/namespace","ember-runtime/system/array_proxy","ember-runtime/system/object_proxy","ember-runtime/system/core_object","ember-runtime/system/native_array","ember-runtime/mixins/action_handler","ember-runtime/mixins/copyable","ember-runtime/mixins/enumerable","ember-runtime/mixins/freezable","ember-runtime/mixins/-proxy","ember-runtime/system/lazy_load","ember-runtime/mixins/observable","ember-runtime/mixins/mutable_enumerable","ember-runtime/mixins/mutable_array","ember-runtime/mixins/target_action_support","ember-runtime/mixins/evented","ember-runtime/mixins/promise_proxy","ember-runtime/computed/computed_macros","ember-runtime/computed/reduce_computed_macros","ember-runtime/controllers/controller","ember-runtime/mixins/controller","ember-runtime/system/service","ember-runtime/ext/rsvp","ember-runtime/utils","ember-runtime/string_registry","ember-runtime/ext/string","ember-runtime/ext/function"],function(e,t,f,n,i,a,r,o,s,d,c,u,l,_,m,h,p,g,y,b,v,w,k,x,q,E,T,S,M,C,A,O,R,P,N,L){"use strict";e.setStrings=e.getStrings=e.typeOf=e.isArray=e.onerrorDefault=e.RSVP=e.Service=e.ControllerMixin=e.Controller=e.collect=e.intersect=e.union=e.uniqBy=e.uniq=e.filterBy=e.filter=e.mapBy=e.setDiff=e.sort=e.map=e.max=e.min=e.sum=e.or=e.and=e.deprecatingAlias=e.readOnly=e.oneWay=e.lte=e.lt=e.gte=e.gt=e.equal=e.match=e.bool=e.not=e.none=e.notEmpty=e.empty=e.PromiseProxyMixin=e.Evented=e.TargetActionSupport=e.removeAt=e.MutableArray=e.MutableEnumerable=e.Observable=e._loaded=e.runLoadHooks=e.onLoad=e._ProxyMixin=e.FROZEN_ERROR=e.Freezable=e.Enumerable=e.Copyable=e.deprecateUnderscoreActions=e.ActionHandler=e.A=e.NativeArray=e.CoreObject=e.ObjectProxy=e.ArrayProxy=e.setNamespaceSearchDisabled=e.isNamespaceSearchDisabled=e.Namespace=e.Comparable=e.removeArrayObserver=e.addArrayObserver=e.isEmberArray=e.objectAt=e.Array=e.isEqual=e.compare=e.inject=e.copy=e.ContainerProxyMixin=e.buildFakeRegistryWithDeprecations=e.RegistryProxyMixin=e.String=e.FrameworkObject=e.Object=void 0,Object.defineProperty(e,"Object",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"FrameworkObject",{enumerable:!0,get:function(){return t.FrameworkObject}}),Object.defineProperty(e,"String",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"RegistryProxyMixin",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"buildFakeRegistryWithDeprecations",{enumerable:!0,get:function(){return n.buildFakeRegistryWithDeprecations}}),Object.defineProperty(e,"ContainerProxyMixin",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"copy",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"inject",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"compare",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Array",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"objectAt",{enumerable:!0,get:function(){return d.objectAt}}),Object.defineProperty(e,"isEmberArray",{enumerable:!0,get:function(){return d.isEmberArray}}),Object.defineProperty(e,"addArrayObserver",{enumerable:!0,get:function(){return d.addArrayObserver}}),Object.defineProperty(e,"removeArrayObserver",{enumerable:!0,get:function(){return d.removeArrayObserver}}),Object.defineProperty(e,"Comparable",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"Namespace",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"isNamespaceSearchDisabled",{enumerable:!0,get:function(){return u.isSearchDisabled}}),Object.defineProperty(e,"setNamespaceSearchDisabled",{enumerable:!0,get:function(){return u.setSearchDisabled}}),Object.defineProperty(e,"ArrayProxy",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"ObjectProxy",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"CoreObject",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"NativeArray",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"A",{enumerable:!0,get:function(){return h.A}}),Object.defineProperty(e,"ActionHandler",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"deprecateUnderscoreActions",{enumerable:!0,get:function(){return p.deprecateUnderscoreActions}}),Object.defineProperty(e,"Copyable",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"Enumerable",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"Freezable",{enumerable:!0,get:function(){return b.Freezable}}),Object.defineProperty(e,"FROZEN_ERROR",{enumerable:!0,get:function(){return b.FROZEN_ERROR}}),Object.defineProperty(e,"_ProxyMixin",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"onLoad",{enumerable:!0,get:function(){return w.onLoad}}),Object.defineProperty(e,"runLoadHooks",{enumerable:!0,get:function(){return w.runLoadHooks}}),Object.defineProperty(e,"_loaded",{enumerable:!0,get:function(){return w._loaded}}),Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"MutableEnumerable",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"MutableArray",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"removeAt",{enumerable:!0,get:function(){return q.removeAt}}),Object.defineProperty(e,"TargetActionSupport",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"Evented",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"PromiseProxyMixin",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return M.empty}}),Object.defineProperty(e,"notEmpty",{enumerable:!0,get:function(){return M.notEmpty}}),Object.defineProperty(e,"none",{enumerable:!0,get:function(){return M.none}}),Object.defineProperty(e,"not",{enumerable:!0,get:function(){return M.not}}),Object.defineProperty(e,"bool",{enumerable:!0,get:function(){return M.bool}}),Object.defineProperty(e,"match",{enumerable:!0,get:function(){return M.match}}),Object.defineProperty(e,"equal",{enumerable:!0,get:function(){return M.equal}}),Object.defineProperty(e,"gt",{enumerable:!0,get:function(){return M.gt}}),Object.defineProperty(e,"gte",{enumerable:!0,get:function(){return M.gte}}),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return M.lt}}),Object.defineProperty(e,"lte",{enumerable:!0,get:function(){return M.lte}}),Object.defineProperty(e,"oneWay",{enumerable:!0,get:function(){return M.oneWay}}),Object.defineProperty(e,"readOnly",{enumerable:!0,get:function(){return M.readOnly}}),Object.defineProperty(e,"deprecatingAlias",{enumerable:!0,get:function(){return M.deprecatingAlias}}),Object.defineProperty(e,"and",{enumerable:!0,get:function(){return M.and}}),Object.defineProperty(e,"or",{enumerable:!0,get:function(){return M.or}}),Object.defineProperty(e,"sum",{enumerable:!0,get:function(){return C.sum}}),Object.defineProperty(e,"min",{enumerable:!0,get:function(){return C.min}}),Object.defineProperty(e,"max",{enumerable:!0,get:function(){return C.max}}),Object.defineProperty(e,"map",{enumerable:!0,get:function(){return C.map}}),Object.defineProperty(e,"sort",{enumerable:!0,get:function(){return C.sort}}),Object.defineProperty(e,"setDiff",{enumerable:!0,get:function(){return C.setDiff}}),Object.defineProperty(e,"mapBy",{enumerable:!0,get:function(){return C.mapBy}}),Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return C.filter}}),Object.defineProperty(e,"filterBy",{enumerable:!0,get:function(){return C.filterBy}}),Object.defineProperty(e,"uniq",{enumerable:!0,get:function(){return C.uniq}}),Object.defineProperty(e,"uniqBy",{enumerable:!0,get:function(){return C.uniqBy}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return C.union}}),Object.defineProperty(e,"intersect",{enumerable:!0,get:function(){return C.intersect}}),Object.defineProperty(e,"collect",{enumerable:!0,get:function(){return C.collect}}),Object.defineProperty(e,"Controller",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"ControllerMixin",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"Service",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"RSVP",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"onerrorDefault",{enumerable:!0,get:function(){return P.onerrorDefault}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return N.isArray}}),Object.defineProperty(e,"typeOf",{enumerable:!0,get:function(){return N.typeOf}}),Object.defineProperty(e,"getStrings",{enumerable:!0,get:function(){return L.getStrings}}),Object.defineProperty(e,"setStrings",{enumerable:!0,get:function(){return L.setStrings}})}),e("ember-runtime/inject",["exports","ember-metal","ember-debug"],function(e,t,f){"use strict";function n(){}e.default=n,e.createInjectionHelper=function(e,f){i[e]=f,n[e]=function(f){return new t.InjectedProperty(e,f)}},e.validatePropertyInjections=function(e){var f,n,a,r=e.proto(),o=[];for(var s in r)(f=r[s])instanceof t.InjectedProperty&&-1===o.indexOf(f.type)&&o.push(f.type);if(o.length)for(n=0;n<o.length;n++)"function"==typeof(a=i[o[n]])&&a(e);return!0};var i={}}),e("ember-runtime/is-equal",["exports"],function(e){"use strict";e.default=function(e,t){return e&&"function"==typeof e.isEqual?e.isEqual(t):e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t}}),e("ember-runtime/mixins/-proxy",["exports","ember-babel","@glimmer/reference","ember-metal","ember-debug","ember-runtime/computed/computed_macros"],function(e,t,f,n,i,a){"use strict";function r(e,t){var f=t.slice(8);f in this||(0,n.propertyWillChange)(this,f)}function o(e,t){var f=t.slice(8);f in this||(0,n.propertyDidChange)(this,f)}var s=function(e){function i(i){var a=(0,t.possibleConstructorReturn)(this,e.call(this)),r=(0,n.get)(i,"content");return a.proxy=i,a.proxyWrapperTag=new f.DirtyableTag,a.proxyContentTag=new f.UpdatableTag((0,n.tagFor)(r)),a}return(0,t.inherits)(i,e),i.prototype.compute=function(){return Math.max(this.proxyWrapperTag.value(),this.proxyContentTag.value())},i.prototype.dirty=function(){this.proxyWrapperTag.dirty()},i.prototype.contentDidChange=function(){var e=(0,n.get)(this.proxy,"content");this.proxyContentTag.update((0,n.tagFor)(e))},i}(f.CachedTag);e.default=n.Mixin.create({content:null,init:function(){this._super.apply(this,arguments);var e=(0,n.meta)(this);e.setProxy(),e.setTag(new s(this))},isTruthy:(0,a.bool)("content"),willWatchProperty:function(e){var t="content."+e;(0,n._addBeforeObserver)(this,t,null,r),(0,n.addObserver)(this,t,null,o)},didUnwatchProperty:function(e){var t="content."+e;(0,n._removeBeforeObserver)(this,t,null,r),(0,n.removeObserver)(this,t,null,o)},unknownProperty:function(e){var t=(0,n.get)(this,"content");if(t)return(0,n.get)(t,e)},setUnknownProperty:function(e,t){if((0,n.meta)(this).proto===this)return(0,n.defineProperty)(this,e,null,t),t;var f=(0,n.get)(this,"content");return(0,n.set)(f,e,t)}})}),e("ember-runtime/mixins/action_handler",["exports","ember-metal","ember-debug"],function(e,t,f){"use strict";e.deprecateUnderscoreActions=function(e){Object.defineProperty(e.prototype,"_actions",{configurable:!0,enumerable:!1,set:function(){},get:function(){return(0,t.get)(this,"actions")}})};var n=t.Mixin.create({mergedProperties:["actions"],send:function(e){for(f=arguments.length,n=Array(f>1?f-1:0),i=1;i<f;i++)n[i-1]=arguments[i];if(!this.actions||!this.actions[e]||!0===this.actions[e].apply(this,n)){var f,n,i,a=(0,t.get)(this,"target");a&&a.send.apply(a,arguments)}},willMergeMixin:function(e){e._actions&&(e.actions=e._actions,delete e._actions)}});e.default=n}),e("ember-runtime/mixins/array",["exports","ember-utils","ember-metal","ember-debug","ember-runtime/mixins/enumerable"],function(e,t,f,n,i){"use strict";function a(e,t,n,i,a){var r=n&&n.willChange||"arrayWillChange",o=n&&n.didChange||"arrayDidChange",s=(0,f.get)(e,"hasArrayObservers");return s===a&&(0,f.propertyWillChange)(e,"hasArrayObservers"),i(e,"@array:before",t,r),i(e,"@array:change",t,o),s===a&&(0,f.propertyDidChange)(e,"hasArrayObservers"),e}function r(e,t,n){return a(e,t,n,f.addListener,!1)}function o(e,t,n){return a(e,t,n,f.removeListener,!0)}function s(e,t){return e.objectAt?e.objectAt(t):e[t]}function d(e,t,n,i){var a,r=void 0,o=void 0;if(void 0===t?(t=0,n=i=-1):(void 0===n&&(n=-1),void 0===i&&(i=-1)),e.__each&&e.__each.arrayWillChange(e,t,n,i),(0,f.sendEvent)(e,"@array:before",[e,t,n,i]),t>=0&&n>=0&&(0,f.get)(e,"hasEnumerableObservers"))for(r=[],o=t+n,a=t;a<o;a++)r.push(s(e,a));else r=n;return e.enumerableContentWillChange(r,i),e}function c(e,t,n,i){void 0===t?(t=0,n=i=-1):(void 0===n&&(n=-1),void 0===i&&(i=-1));var a,r,o,d,c,u,l,_=void 0;if(t>=0&&i>=0&&(0,f.get)(e,"hasEnumerableObservers"))for(_=[],a=t+i,r=t;r<a;r++)_.push(s(e,r));else _=i;e.enumerableContentDidChange(n,_),e.__each&&e.__each.arrayDidChange(e,t,n,i),(0,f.sendEvent)(e,"@array:change",[e,t,n,i]);var m=(0,f.peekMeta)(e),h=m&&m.readableCache();return void 0!==h&&(o=(0,f.get)(e,"length"),d=-1===i?0:i,c=-1===n?0:n,u=o-(d-c),l=t<0?u+t:t,void 0!==h.firstObject&&0===l&&((0,f.propertyWillChange)(e,"firstObject"),(0,f.propertyDidChange)(e,"firstObject")),void 0!==h.lastObject&&u-1<l+c&&((0,f.propertyWillChange)(e,"lastObject"),(0,f.propertyDidChange)(e,"lastObject"))),e}function u(e){this._content=e,this._keys=void 0,(0,f.meta)(this)}function l(e,t,n,i,a){for(var r;--a>=i;)(r=s(e,a))&&((0,f._addBeforeObserver)(r,t,n,"contentKeyWillChange"),(0,f.addObserver)(r,t,n,"contentKeyDidChange"))}function _(e,t,n,i,a){for(var r;--a>=i;)(r=s(e,a))&&((0,f._removeBeforeObserver)(r,t,n,"contentKeyWillChange"),(0,f.removeObserver)(r,t,n,"contentKeyDidChange"))}e.addArrayObserver=r,e.removeArrayObserver=o,e.objectAt=s,e.arrayContentWillChange=d,e.arrayContentDidChange=c,e.isEmberArray=function(e){return e&&!!e[h]};var m,h=(0,t.symbol)("EMBER_ARRAY"),p=f.Mixin.create(i.default,(m={},m[h]=!0,m.length=null,m.objectAt=function(e){if(!(e<0||e>=(0,f.get)(this,"length")))return(0,f.get)(this,e)},m.objectsAt=function(e){var t=this;return e.map(function(e){return s(t,e)})},m.nextObject=function(e){return s(this,e)},m["[]"]=(0,f.computed)({get:function(){return this},set:function(e,t){return this.replace(0,(0,f.get)(this,"length"),t),this}}),m.firstObject=(0,f.computed)(function(){return s(this,0)}).readOnly(),m.lastObject=(0,f.computed)(function(){return s(this,(0,f.get)(this,"length")-1)}).readOnly(),m.contains=function(e){return this.indexOf(e)>=0},m.slice=function(e,t){var n=f.default.A(),i=(0,f.get)(this,"length");for((0,f.isNone)(e)&&(e=0),((0,f.isNone)(t)||t>i)&&(t=i),e<0&&(e=i+e),t<0&&(t=i+t);e<t;)n[n.length]=s(this,e++);return n},m.indexOf=function(e,t){var n,i=(0,f.get)(this,"length");for(void 0===t&&(t=0),t<0&&(t+=i),n=t;n<i;n++)if(s(this,n)===e)return n;return-1},m.lastIndexOf=function(e,t){var n,i=(0,f.get)(this,"length");for((void 0===t||t>=i)&&(t=i-1),t<0&&(t+=i),n=t;n>=0;n--)if(s(this,n)===e)return n;return-1},m.addArrayObserver=function(e,t){return r(this,e,t)},m.removeArrayObserver=function(e,t){return o(this,e,t)},m.hasArrayObservers=(0,f.computed)(function(){return(0,f.hasListeners)(this,"@array:change")||(0,f.hasListeners)(this,"@array:before")}),m.arrayContentWillChange=function(e,t,f){return d(this,e,t,f)},m.arrayContentDidChange=function(e,t,f){return c(this,e,t,f)},m.includes=function(e,t){var n,i,a=(0,f.get)(this,"length");for(void 0===t&&(t=0),t<0&&(t+=a),n=t;n<a;n++)if(i=s(this,n),e===i||e!==e&&i!==i)return!0;return!1},m["@each"]=(0,f.computed)(function(){return this.__each||(this.__each=new u(this)),this.__each}).volatile().readOnly(),m));u.prototype={__defineNonEnumerable:function(e){this[e.name]=e.descriptor.value},arrayWillChange:function(e,t,n){var i=this._keys,a=n>0?t+n:-1,r=void 0;for(var o in i)r=r||(0,f.peekMeta)(this),a>0&&_(e,o,this,t,a),(0,f.propertyWillChange)(this,o,r)},arrayDidChange:function(e,t,n,i){var a=this._keys,r=i>0?t+i:-1,o=void 0;for(var s in a)o=o||(0,f.peekMeta)(this),r>0&&l(e,s,this,t,r),(0,f.propertyDidChange)(this,s,o)},willWatchProperty:function(e){this.beginObservingContentKey(e)},didUnwatchProperty:function(e){this.stopObservingContentKey(e)},beginObservingContentKey:function(e){var t,n,i=this._keys;i||(i=this._keys=Object.create(null)),i[e]?i[e]++:(i[e]=1,t=this._content,n=(0,f.get)(t,"length"),l(t,e,this,0,n))},stopObservingContentKey:function(e){var t,n,i=this._keys;i&&i[e]>0&&--i[e]<=0&&(t=this._content,n=(0,f.get)(t,"length"),_(t,e,this,0,n))},contentKeyWillChange:function(e,t){(0,f.propertyWillChange)(this,t)},contentKeyDidChange:function(e,t){(0,f.propertyDidChange)(this,t)}},e.default=p}),e("ember-runtime/mixins/comparable",["exports","ember-metal"],function(e,t){"use strict";e.default=t.Mixin.create({compare:null})}),e("ember-runtime/mixins/container_proxy",["exports","ember-metal"],function(e,t){"use strict";e.default=t.Mixin.create({__container__:null,ownerInjection:function(){return this.__container__.ownerInjection()},lookup:function(e,t){return this.__container__.lookup(e,t)},_resolveLocalLookupName:function(e,t){return this.__container__.registry.expandLocalLookup("component:"+e,{source:t})},willDestroy:function(){this._super.apply(this,arguments),this.__container__&&(0,t.run)(this.__container__,"destroy")},factoryFor:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.__container__.factoryFor(e,t)}})}),e("ember-runtime/mixins/controller",["exports","ember-metal","ember-runtime/mixins/action_handler","ember-runtime/mixins/controller_content_model_alias_deprecation"],function(e,t,f,n){"use strict";e.default=t.Mixin.create(f.default,n.default,{isController:!0,target:null,store:null,model:null,content:(0,t.alias)("model")})}),e("ember-runtime/mixins/controller_content_model_alias_deprecation",["exports","ember-metal","ember-debug"],function(e,t,f){"use strict";e.default=t.Mixin.create({willMergeMixin:function(e){this._super.apply(this,arguments);var t=!!e.model;e.content&&!t&&(e.model=e.content,delete e.content)}})}),e("ember-runtime/mixins/copyable",["exports","ember-metal","ember-debug","ember-runtime/mixins/freezable"],function(e,t,f,n){"use strict";e.default=t.Mixin.create({copy:null,frozenCopy:function(){if(n.Freezable&&n.Freezable.detect(this))return(0,t.get)(this,"isFrozen")?this:this.copy().freeze();throw new f.Error(this+" does not support freezing")}})}),e("ember-runtime/mixins/enumerable",["exports","ember-utils","ember-metal","ember-debug","ember-runtime/compare","require"],function(e,t,f,n,i,a){"use strict";function r(){return(c||(c=(0,a.default)("ember-runtime/system/native_array").A))()}function o(){return 0===u.length?{}:u.pop()}function s(e){return u.push(e),null}function d(e,t){var n=2===arguments.length;return function(i){var a=(0,f.get)(i,e);return n?t===a:!!a}}var c=void 0,u=[],l=f.Mixin.create({nextObject:null,firstObject:(0,f.computed)("[]",function(){if(0!==(0,f.get)(this,"length")){var e=o(),t=this.nextObject(0,null,e);return s(e),t}}).readOnly(),lastObject:(0,f.computed)("[]",function(){if(0!==(0,f.get)(this,"length")){var e=o(),t=0,n=null,i=void 0;do{n=i,i=this.nextObject(t++,n,e)}while(void 0!==i);return s(e),n}}).readOnly(),contains:function(e){return void 0!==this.find(function(t){return t===e})},forEach:function(e,t){if("function"!=typeof e)throw new TypeError;var n,i,a=o(),r=(0,f.get)(this,"length"),d=null;for(void 0===t&&(t=null),n=0;n<r;n++)i=this.nextObject(n,d,a),e.call(t,i,n,this),d=i;return d=null,a=s(a),this},getEach:(0,f.aliasMethod)("mapBy"),setEach:function(e,t){return this.forEach(function(n){return(0,f.set)(n,e,t)})},map:function(e,t){var f=r();return this.forEach(function(n,i,a){return f[i]=e.call(t,n,i,a)}),f},mapBy:function(e){return this.map(function(t){return(0,f.get)(t,e)})},filter:function(e,t){var f=r();return this.forEach(function(n,i,a){e.call(t,n,i,a)&&f.push(n)}),f},reject:function(e,t){return this.filter(function(){return!e.apply(t,arguments)})},filterBy:function(){return this.filter(d.apply(this,arguments))},rejectBy:function(e,t){var n=2===arguments.length?function(n){return(0,f.get)(n,e)===t}:function(t){return!!(0,f.get)(t,e)};return this.reject(n)},find:function(e,t){var n,i=(0,f.get)(this,"length");void 0===t&&(t=null);var a=o(),r=!1,d=null,c=void 0,u=void 0;for(n=0;n<i&&!r;n++)c=this.nextObject(n,d,a),(r=e.call(t,c,n,this))&&(u=c),d=c;return c=d=null,a=s(a),u},findBy:function(){return this.find(d.apply(this,arguments))},every:function(e,t){return!this.find(function(f,n,i){return!e.call(t,f,n,i)})},isEvery:function(){return this.every(d.apply(this,arguments))},any:function(e,t){var n,i=(0,f.get)(this,"length"),a=o(),r=!1,d=null,c=void 0;for(void 0===t&&(t=null),n=0;n<i&&!r;n++)c=this.nextObject(n,d,a),r=e.call(t,c,n,this),d=c;return c=d=null,a=s(a),r},isAny:function(){return this.any(d.apply(this,arguments))},reduce:function(e,t,f){if("function"!=typeof e)throw new TypeError;var n=t;return this.forEach(function(t,i){n=e(n,t,i,this,f)},this),n},invoke:function(e){for(t=arguments.length,f=Array(t>1?t-1:0),n=1;n<t;n++)f[n-1]=arguments[n];var t,f,n,i=r();return this.forEach(function(t,n){var a=t&&t[e];"function"==typeof a&&(i[n]=f?a.apply(t,f):t[e]())},this),i},toArray:function(){var e=r();return this.forEach(function(t,f){return e[f]=t}),e},compact:function(){return this.filter(function(e){return null!=e})},without:function(e){if(!this.includes(e))return this;var t=r();return this.forEach(function(f){f===e||f!==f&&e!==e||(t[t.length]=f)}),t},uniq:function(){var e=r();return this.forEach(function(t){e.indexOf(t)<0&&e.push(t)}),e},"[]":(0,f.computed)({get:function(){return this}}),addEnumerableObserver:function(e,t){var n=t&&t.willChange||"enumerableWillChange",i=t&&t.didChange||"enumerableDidChange",a=(0,f.get)(this,"hasEnumerableObservers");return a||(0,f.propertyWillChange)(this,"hasEnumerableObservers"),(0,f.addListener)(this,"@enumerable:before",e,n),(0,f.addListener)(this,"@enumerable:change",e,i),a||(0,f.propertyDidChange)(this,"hasEnumerableObservers"),this},removeEnumerableObserver:function(e,t){var n=t&&t.willChange||"enumerableWillChange",i=t&&t.didChange||"enumerableDidChange",a=(0,f.get)(this,"hasEnumerableObservers");return a&&(0,f.propertyWillChange)(this,"hasEnumerableObservers"),(0,f.removeListener)(this,"@enumerable:before",e,n),(0,f.removeListener)(this,"@enumerable:change",e,i),a&&(0,f.propertyDidChange)(this,"hasEnumerableObservers"),this},hasEnumerableObservers:(0,f.computed)(function(){return(0,f.hasListeners)(this,"@enumerable:change")||(0,f.hasListeners)(this,"@enumerable:before")}),enumerableContentWillChange:function(e,t){var n=void 0,i=void 0,a=void 0;return n="number"==typeof e?e:e?(0,f.get)(e,"length"):e=-1,i="number"==typeof t?t:t?(0,f.get)(t,"length"):t=-1,a=i<0||n<0||i-n!=0,-1===e&&(e=null),-1===t&&(t=null),(0,f.propertyWillChange)(this,"[]"),a&&(0,f.propertyWillChange)(this,"length"),(0,f.sendEvent)(this,"@enumerable:before",[this,e,t]),this},enumerableContentDidChange:function(e,t){var n=void 0,i=void 0,a=void 0;return n="number"==typeof e?e:e?(0,f.get)(e,"length"):e=-1,i="number"==typeof t?t:t?(0,f.get)(t,"length"):t=-1,a=i<0||n<0||i-n!=0,-1===e&&(e=null),-1===t&&(t=null),(0,f.sendEvent)(this,"@enumerable:change",[this,e,t]),a&&(0,f.propertyDidChange)(this,"length"),(0,f.propertyDidChange)(this,"[]"),this},sortBy:function(){var e=arguments;return this.toArray().sort(function(t,n){var a,r,o,s,d;for(a=0;a<e.length;a++)if(r=e[a],o=(0,f.get)(t,r),s=(0,f.get)(n,r),d=(0,i.default)(o,s))return d;return 0})},uniqBy:function(e){var n=r(),i=Object.create(null);return this.forEach(function(a){var r=(0,t.guidFor)((0,f.get)(a,e));r in i||(i[r]=!0,n.push(a))}),n},includes:function(e){var t=(0,f.get)(this,"length"),n=void 0,i=void 0,a=null,r=!1,d=o();for(n=0;n<t&&!r;n++)i=this.nextObject(n,a,d),r=e===i||e!==e&&i!==i,a=i;return i=a=null,d=s(d),r}});e.default=l}),e("ember-runtime/mixins/evented",["exports","ember-metal"],function(e,t){"use strict";e.default=t.Mixin.create({on:function(e,f,n){return(0,t.addListener)(this,e,f,n),this},one:function(e,f,n){return n||(n=f,f=null),(0,t.addListener)(this,e,f,n,!0),this},trigger:function(e){var f,n,i;for(f=arguments.length,n=Array(f>1?f-1:0),i=1;i<f;i++)n[i-1]=arguments[i];(0,t.sendEvent)(this,e,n)},off:function(e,f,n){return(0,t.removeListener)(this,e,f,n),this},has:function(e){return(0,t.hasListeners)(this,e)}})}),e("ember-runtime/mixins/freezable",["exports","ember-metal","ember-debug"],function(e,t,f){"use strict";e.FROZEN_ERROR=e.Freezable=void 0,e.Freezable=t.Mixin.create({init:function(){this._super.apply(this,arguments)},isFrozen:!1,freeze:function(){return(0,t.get)(this,"isFrozen")?this:((0,t.set)(this,"isFrozen",!0),this)}}),e.FROZEN_ERROR="Frozen object cannot be modified."}),e("ember-runtime/mixins/mutable_array",["exports","ember-metal","ember-runtime/mixins/array","ember-runtime/mixins/mutable_enumerable","ember-runtime/mixins/enumerable","ember-debug"],function(e,t,f,n,i,a){"use strict";function r(e,f,n){if("number"==typeof f){if(f<0||f>=(0,t.get)(e,"length"))throw new a.Error(o);void 0===n&&(n=1),e.replace(f,n,s)}return e}e.removeAt=r;var o="Index out of range",s=[];e.default=t.Mixin.create(f.default,n.default,{replace:null,clear:function(){var e=(0,t.get)(this,"length");return 0===e?this:(this.replace(0,e,s),this)},insertAt:function(e,f){if(e>(0,t.get)(this,"length"))throw new a.Error(o);return this.replace(e,0,[f]),this},removeAt:function(e,t){return r(this,e,t)},pushObject:function(e){return this.insertAt((0,t.get)(this,"length"),e),e},pushObjects:function(e){if(!i.default.detect(e)&&!Array.isArray(e))throw new TypeError("Must pass Ember.Enumerable to Ember.MutableArray#pushObjects");return this.replace((0,t.get)(this,"length"),0,e),this},popObject:function(){var e=(0,t.get)(this,"length");if(0===e)return null;var n=(0,f.objectAt)(this,e-1);return this.removeAt(e-1,1),n},shiftObject:function(){if(0===(0,t.get)(this,"length"))return null;var e=(0,f.objectAt)(this,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=(0,t.get)(this,"length");if(0===e)return this;var f=this.toArray().reverse();return this.replace(0,e,f),this},setObjects:function(e){if(0===e.length)return this.clear();var f=(0,t.get)(this,"length");return this.replace(0,f,e),this},removeObject:function(e){for(var n=(0,t.get)(this,"length")||0;--n>=0;)(0,f.objectAt)(this,n)===e&&this.removeAt(n);return this},addObject:function(e){return this.includes(e)||this.pushObject(e),this}})}),e("ember-runtime/mixins/mutable_enumerable",["exports","ember-runtime/mixins/enumerable","ember-metal"],function(e,t,f){"use strict";e.default=f.Mixin.create(t.default,{addObject:null,addObjects:function(e){var t=this;return(0,f.beginPropertyChanges)(this),e.forEach(function(e){return t.addObject(e)}),(0,f.endPropertyChanges)(this),this},removeObject:null,removeObjects:function(e){var t;for((0,f.beginPropertyChanges)(this),t=e.length-1;t>=0;t--)this.removeObject(e[t]);return(0,f.endPropertyChanges)(this),this}})}),e("ember-runtime/mixins/observable",["exports","ember-metal","ember-debug"],function(e,t,f){"use strict";e.default=t.Mixin.create({get:function(e){return(0,t.get)(this,e)},getProperties:function(){var e,f,n;for(e=arguments.length,f=Array(e),n=0;n<e;n++)f[n]=arguments[n];return t.getProperties.apply(void 0,[this].concat(f))},set:function(e,f){return(0,t.set)(this,e,f)},setProperties:function(e){return(0,t.setProperties)(this,e)},beginPropertyChanges:function(){return(0,t.beginPropertyChanges)(),this},endPropertyChanges:function(){return(0,t.endPropertyChanges)(),this},propertyWillChange:function(e){return(0,t.propertyWillChange)(this,e),this},propertyDidChange:function(e){return(0,t.propertyDidChange)(this,e),this},notifyPropertyChange:function(e){return this.propertyWillChange(e),this.propertyDidChange(e),this},addObserver:function(e,f,n){(0,t.addObserver)(this,e,f,n)},removeObserver:function(e,f,n){(0,t.removeObserver)(this,e,f,n)},hasObserverFor:function(e){return(0,t.hasListeners)(this,e+":change")},getWithDefault:function(e,f){return(0,t.getWithDefault)(this,e,f)},incrementProperty:function(e,f){return(0,t.isNone)(f)&&(f=1),(0,t.set)(this,e,(parseFloat((0,t.get)(this,e))||0)+f)},decrementProperty:function(e,f){return(0,t.isNone)(f)&&(f=1),(0,t.set)(this,e,((0,t.get)(this,e)||0)-f)},toggleProperty:function(e){return(0,t.set)(this,e,!(0,t.get)(this,e))},cacheFor:function(e){return(0,t.cacheFor)(this,e)},observersForKey:function(e){return(0,t.observersFor)(this,e)}})}),e("ember-runtime/mixins/promise_proxy",["exports","ember-metal","ember-debug","ember-runtime/computed/computed_macros"],function(e,t,f,n){"use strict";function i(e,f){return(0,t.setProperties)(e,{isFulfilled:!1,isRejected:!1}),f.then(function(f){return e.isDestroyed||e.isDestroying||(0,t.setProperties)(e,{content:f,isFulfilled:!0}),f},function(f){throw e.isDestroyed||e.isDestroying||(0,t.setProperties)(e,{reason:f,isRejected:!0}),f},"Ember: PromiseProxy")}function a(e){return function(){var f=(0,t.get)(this,"promise");return f[e].apply(f,arguments)}}e.default=t.Mixin.create({reason:null,isPending:(0,n.not)("isSettled").readOnly(),isSettled:(0,n.or)("isRejected","isFulfilled").readOnly(),isRejected:!1,isFulfilled:!1,promise:(0,t.computed)({get:function(){throw new f.Error("PromiseProxy's promise must be set")},set:function(e,t){return i(this,t)}}),then:a("then"),catch:a("catch"),finally:a("finally")})}),e("ember-runtime/mixins/registry_proxy",["exports","ember-metal","ember-debug"],function(e,t,f){"use strict";function n(e){return function(){var t;return(t=this.__registry__)[e].apply(t,arguments)}}function i(e,t,f,n){return function(){return e[n].apply(e,arguments)}}e.buildFakeRegistryWithDeprecations=function(e,t){var f={},n={resolve:"resolveRegistration",register:"register",unregister:"unregister",has:"hasRegistration",option:"registerOption",options:"registerOptions",getOptions:"registeredOptions",optionsForType:"registerOptionsForType",getOptionsForType:"registeredOptionsForType",injection:"inject"};for(var a in n)f[a]=i(e,0,0,n[a]);return f},e.default=t.Mixin.create({__registry__:null,resolveRegistration:n("resolve"),register:n("register"),unregister:n("unregister"),hasRegistration:n("has"),registeredOption:n("getOption"),registerOptions:n("options"),registeredOptions:n("getOptions"),registerOptionsForType:n("optionsForType"),registeredOptionsForType:n("getOptionsForType"),inject:n("injection")})}),e("ember-runtime/mixins/target_action_support",["exports","ember-environment","ember-metal","ember-debug"],function(e,t,f,n){"use strict";function i(e){var n,i=(0,f.get)(e,"targetObject");return i||(e._targetObject?e._targetObject:(i=(0,f.get)(e,"target"))?"string"==typeof i?(void 0===(n=(0,f.get)(e,i))&&(n=(0,f.get)(t.context.lookup,i)),n):i:null)}e.default=f.Mixin.create({target:null,action:null,actionContext:null,actionContextObject:(0,f.computed)("actionContext",function(){var e,n=(0,f.get)(this,"actionContext");return"string"==typeof n?(void 0===(e=(0,f.get)(this,n))&&(e=(0,f.get)(t.context.lookup,n)),e):n}),triggerAction:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=n.action,r=n.target,o=n.actionContext;return a=a||(0,f.get)(this,"action"),r=r||i(this),void 0===o&&(o=(0,f.get)(this,"actionContextObject")||this),!(!r||!a||(void 0,!1===(r.send?(e=r).send.apply(e,[a].concat(o)):(t=r)[a].apply(t,[].concat(o)))))}})}),e("ember-runtime/string_registry",["exports"],function(e){"use strict";e.setStrings=function(e){t=e},e.getStrings=function(){return t},e.get=function(e){return t[e]};var t={}}),e("ember-runtime/system/application",["exports","ember-runtime/system/namespace"],function(e,t){"use strict";e.default=t.default.extend()}),e("ember-runtime/system/array_proxy",["exports","ember-metal","ember-runtime/utils","ember-runtime/system/object","ember-runtime/mixins/mutable_array","ember-runtime/mixins/enumerable","ember-runtime/mixins/array","ember-debug"],function(e,t,f,n,i,a,r,o){"use strict";function s(){return this}var d="Index out of range",c=[];e.default=n.default.extend(i.default,{content:null,arrangedContent:(0,t.alias)("content"),objectAtContent:function(e){return(0,r.objectAt)((0,t.get)(this,"arrangedContent"),e)},replaceContent:function(e,f,n){(0,t.get)(this,"content").replace(e,f,n)},_contentWillChange:(0,t._beforeObserver)("content",function(){this._teardownContent()}),_teardownContent:function(){var e=(0,t.get)(this,"content");e&&(0,r.removeArrayObserver)(e,this,{willChange:"contentArrayWillChange",didChange:"contentArrayDidChange"})},contentArrayWillChange:s,contentArrayDidChange:s,_contentDidChange:(0,t.observer)("content",function(){(0,t.get)(this,"content"),this._setupContent()}),_setupContent:function(){var e=(0,t.get)(this,"content");e&&(0,r.addArrayObserver)(e,this,{willChange:"contentArrayWillChange",didChange:"contentArrayDidChange"})},_arrangedContentWillChange:(0,t._beforeObserver)("arrangedContent",function(){var e=(0,t.get)(this,"arrangedContent"),f=e?(0,t.get)(e,"length"):0;this.arrangedContentArrayWillChange(this,0,f,void 0),this.arrangedContentWillChange(this),this._teardownArrangedContent(e)}),_arrangedContentDidChange:(0,t.observer)("arrangedContent",function(){var e=(0,t.get)(this,"arrangedContent"),f=e?(0,t.get)(e,"length"):0;this._setupArrangedContent(),this.arrangedContentDidChange(this),this.arrangedContentArrayDidChange(this,0,void 0,f)}),_setupArrangedContent:function(){var e=(0,t.get)(this,"arrangedContent");e&&(0,r.addArrayObserver)(e,this,{willChange:"arrangedContentArrayWillChange",didChange:"arrangedContentArrayDidChange"})},_teardownArrangedContent:function(){var e=(0,t.get)(this,"arrangedContent");e&&(0,r.removeArrayObserver)(e,this,{willChange:"arrangedContentArrayWillChange",didChange:"arrangedContentArrayDidChange"})},arrangedContentWillChange:s,arrangedContentDidChange:s,objectAt:function(e){return(0,t.get)(this,"content")&&this.objectAtContent(e)},length:(0,t.computed)(function(){var e=(0,t.get)(this,"arrangedContent");return e?(0,t.get)(e,"length"):0}),_replace:function(e,f,n){return(0,t.get)(this,"content")&&this.replaceContent(e,f,n),this},replace:function(){if((0,t.get)(this,"arrangedContent")!==(0,t.get)(this,"content"))throw new o.Error("Using replace on an arranged ArrayProxy is not allowed.");this._replace.apply(this,arguments)},_insertAt:function(e,f){if(e>(0,t.get)(this,"content.length"))throw new o.Error(d);return this._replace(e,0,[f]),this},insertAt:function(e,f){if((0,t.get)(this,"arrangedContent")===(0,t.get)(this,"content"))return this._insertAt(e,f);throw new o.Error("Using insertAt on an arranged ArrayProxy is not allowed.")},removeAt:function(e,f){var n,i,a,s,u;if("number"==typeof e){if(n=(0,t.get)(this,"content"),i=(0,t.get)(this,"arrangedContent"),a=[],e<0||e>=(0,t.get)(this,"length"))throw new o.Error(d);for(void 0===f&&(f=1),s=e;s<e+f;s++)a.push(n.indexOf((0,r.objectAt)(i,s)));for(a.sort(function(e,t){return t-e}),(0,t.beginPropertyChanges)(),u=0;u<a.length;u++)this._replace(a[u],1,c);(0,t.endPropertyChanges)()}return this},pushObject:function(e){return this._insertAt((0,t.get)(this,"content.length"),e),e},pushObjects:function(e){if(!a.default.detect(e)&&!(0,f.isArray)(e))throw new TypeError("Must pass Ember.Enumerable to Ember.MutableArray#pushObjects");return this._replace((0,t.get)(this,"length"),0,e),this},setObjects:function(e){if(0===e.length)return this.clear();var f=(0,t.get)(this,"length");return this._replace(0,f,e),this},unshiftObject:function(e){return this._insertAt(0,e),e},unshiftObjects:function(e){return this._replace(0,0,e),this},slice:function(){var e=this.toArray();return e.slice.apply(e,arguments)},arrangedContentArrayWillChange:function(e,t,f,n){this.arrayContentWillChange(t,f,n)},arrangedContentArrayDidChange:function(e,t,f,n){this.arrayContentDidChange(t,f,n)},init:function(){this._super.apply(this,arguments),this._setupContent(),this._setupArrangedContent()},willDestroy:function(){this._teardownArrangedContent(),this._teardownContent()}})}),e("ember-runtime/system/core_object",["exports","ember-babel","ember-utils","ember-metal","ember-runtime/mixins/action_handler","ember-runtime/inject","ember-debug"],function(e,t,f,n,i,a,r){"use strict";function o(){var e=!1,t=void 0,i=void 0,a=function(){function a(){e||a.proto(),arguments.length>0&&(t=[arguments[0]]),this.__defineNonEnumerable(f.GUID_KEY_PROPERTY);var r,o,s,d,c,u,_,h,p,g,y,b,v,w=(0,n.meta)(this),k=w.proto;if(w.proto=this,i&&(w.factory=i,i=null),t)for(r=t,t=null,o=this.concatenatedProperties,s=this.mergedProperties,d=o&&o.length>0,c=s&&s.length>0,u=0;u<r.length;u++)if(_=r[u])for(h=Object.keys(_),p=0;p<h.length;p++)g=h[p],y=_[g],(0,n.detectBinding)(g)&&w.writeBindings(g,y),b=this[g],v=null!==b&&"object"==typeof b&&b.isDescriptor,d&&o.indexOf(g)>-1&&(y=b?(0,f.makeArray)(b).concat(y):(0,f.makeArray)(y)),c&&s.indexOf(g)>-1&&(y=(0,f.assign)({},b,y)),v?b.set(this,g,y):"function"!=typeof this.setUnknownProperty||g in this?this[g]=y:this.setUnknownProperty(g,y);l(this,w),this.init.apply(this,arguments),this[m](),w.proto=k,(0,n.finishChains)(w),(0,n.sendEvent)(this,"init",void 0,void 0,void 0,w)}return a.willReopen=function(){e&&(a.PrototypeMixin=n.Mixin.create(a.PrototypeMixin)),e=!1},a._initProperties=function(e){t=e},a._initFactory=function(e){i=e},a.proto=function(){var t=a.superclass;return t&&t.proto(),e||(e=!0,a.PrototypeMixin.applyPartial(a.prototype)),this.prototype},a}();return a.toString=n.Mixin.prototype.toString,a}e.POST_INIT=void 0;var s,d,c=((0,t.taggedTemplateLiteralLoose)(["."],["."]),n.run.schedule),u=n.Mixin._apply,l=n.Mixin.finishPartial,_=n.Mixin.prototype.reopen,m=e.POST_INIT=(0,f.symbol)("POST_INIT"),h=o();h.toString=function(){return"Ember.CoreObject"},h.PrototypeMixin=n.Mixin.create((s={reopen:function(){var e,t,f;for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];return u(this,t,!0),this},init:function(){}},s[m]=function(){},s.__defineNonEnumerable=function(e){Object.defineProperty(this,e.name,e.descriptor)},s.concatenatedProperties=null,s.mergedProperties=null,s.isDestroyed=(0,n.descriptor)({get:function(){return(0,n.meta)(this).isSourceDestroyed()},set:function(e){null!==e&&"object"==typeof e&&e.isDescriptor}}),s.isDestroying=(0,n.descriptor)({get:function(){return(0,n.meta)(this).isSourceDestroying()},set:function(e){null!==e&&"object"==typeof e&&e.isDescriptor}}),s.destroy=function(){var e=(0,n.meta)(this);if(!e.isSourceDestroying())return e.setSourceDestroying(),c("actions",this,this.willDestroy),c("destroy",this,this._scheduledDestroy,e),this},s.willDestroy=function(){},s._scheduledDestroy=function(e){e.isSourceDestroyed()||((0,n.destroy)(this),e.setSourceDestroyed())},s.bind=function(e,t){return t instanceof n.Binding||(t=n.Binding.from(t)),t.to(e).connect(this),t},s.toString=function(){var e="function"==typeof this.toStringExtension?":"+this.toStringExtension():"";return"<"+(this[f.NAME_KEY]||(0,n.meta)(this).factory||this.constructor.toString())+":"+(0,f.guidFor)(this)+e+">"},s)),h.PrototypeMixin.ownerConstructor=h,h.__super__=null;var p=(d={ClassMixin:n.REQUIRED,PrototypeMixin:n.REQUIRED,isClass:!0,isMethod:!1},d[f.NAME_KEY]=null,d[f.GUID_KEY]=null,d.extend=function(){var e=o(),t=void 0;return e.ClassMixin=n.Mixin.create(this.ClassMixin),e.PrototypeMixin=n.Mixin.create(this.PrototypeMixin),e.ClassMixin.ownerConstructor=e,e.PrototypeMixin.ownerConstructor=e,_.apply(e.PrototypeMixin,arguments),e.superclass=this,e.__super__=this.prototype,t=e.prototype=Object.create(this.prototype),t.constructor=e,(0,f.generateGuid)(t),(0,n.meta)(t).proto=t,e.ClassMixin.apply(e),e},d.create=function(){var e,t,f,n=this;for(e=arguments.length,t=Array(e),f=0;f<e;f++)t[f]=arguments[f];return t.length>0&&this._initProperties(t),new n},d.reopen=function(){return this.willReopen(),_.apply(this.PrototypeMixin,arguments),this},d.reopenClass=function(){return _.apply(this.ClassMixin,arguments),u(this,arguments,!1),this},d.detect=function(e){if("function"!=typeof e)return!1;for(;e;){if(e===this)return!0;e=e.superclass}return!1},d.detectInstance=function(e){return e instanceof this},d.metaForProperty=function(e){return this.proto()[e]._meta||{}},d._computedProperties=(0,n.computed)(function(){(0,n._hasCachedComputedProperties)();var e=this.proto(),t=void 0,f=[];for(var i in e)null!==(t=e[i])&&"object"==typeof t&&t.isDescriptor&&f.push({name:i,meta:t._meta});return f}).readOnly(),d.eachComputedProperty=function(e,t){var f,i=void 0,a={},r=(0,n.get)(this,"_computedProperties");for(f=0;f<r.length;f++)i=r[f],e.call(t||this,i.name,i.meta||a)},d);p._lazyInjections=function(){var e={},t=this.proto(),f=void 0,i=void 0;for(f in t)(i=t[f])instanceof n.InjectedProperty&&(e[f]=i.type+":"+(i.name||f));return e};var g=n.Mixin.create(p);g.ownerConstructor=h,h.ClassMixin=g,g.apply(h),e.default=h}),e("ember-runtime/system/lazy_load",["exports","ember-environment"],function(e,t){"use strict";e._loaded=void 0,e.onLoad=function(e,t){var i=n[e];f[e]=f[e]||[],f[e].push(t),i&&t(i)},e.runLoadHooks=function(e,i){n[e]=i;var a,r=t.environment.window;r&&"function"==typeof CustomEvent&&(a=new CustomEvent(e,{detail:i,name:e}),r.dispatchEvent(a)),f[e]&&f[e].forEach(function(e){return e(i)})};var f=t.ENV.EMBER_LOAD_HOOKS||{},n={};e._loaded=n}),e("ember-runtime/system/namespace",["exports","ember-utils","ember-metal","ember-environment","ember-runtime/system/object"],function(e,t,f,n,i){"use strict";function a(e,f,n){var i,r=e.length;h[e.join(".")]=f;for(var o in f)if(p.call(f,o))if(i=f[o],e[r]=o,i&&i.toString===u&&!i[t.NAME_KEY])i[t.NAME_KEY]=e.join(".");else if(i&&i.isNamespace){if(n[(0,t.guidFor)(i)])continue;n[(0,t.guidFor)(i)]=!0,a(e,i,n)}e.length=r}function r(e){return e>=65&&e<=90}function o(e,t){var f;try{return(f=e[t])&&f.isNamespace&&f}catch(e){}}function s(){if(!m.PROCESSED){var e,f,i,a=n.context.lookup,s=Object.keys(a);for(e=0;e<s.length;e++)f=s[e],r(f.charCodeAt(0))&&(i=o(a,f))&&(i[t.NAME_KEY]=f)}}function d(e){var f=e.superclass;if(f)return f[t.NAME_KEY]?f[t.NAME_KEY]:d(f)}function c(e){var f=void 0;if(!_){if(l(),f=e[t.NAME_KEY])return f;f=(f=d(e))?"(subclass of "+f+")":f}return f||"(unknown mixin)"}function u(){var e=this[t.NAME_KEY];return e||(this[t.NAME_KEY]=c(this))}function l(){var e,t,n,i=!m.PROCESSED,r=(0,f.hasUnprocessedMixins)();if(i&&(s(),m.PROCESSED=!0),i||r){for(e=m.NAMESPACES,t=void 0,n=0;n<e.length;n++)t=e[n],a([t.toString()],t,{});(0,f.clearUnprocessedMixins)()}}e.isSearchDisabled=function(){return _},e.setSearchDisabled=function(e){_=!!e};var _=!1,m=i.default.extend({isNamespace:!0,init:function(){m.NAMESPACES.push(this),m.PROCESSED=!1},toString:function(){var e=(0,f.get)(this,"name")||(0,f.get)(this,"modulePrefix");return e||(s(),this[t.NAME_KEY])},nameClasses:function(){a([this.toString()],this,{})},destroy:function(){var e=m.NAMESPACES,t=this.toString();t&&(n.context.lookup[t]=void 0,delete m.NAMESPACES_BY_ID[t]),e.splice(e.indexOf(this),1),this._super.apply(this,arguments)}});m.reopenClass({NAMESPACES:[f.default],NAMESPACES_BY_ID:{Ember:f.default},PROCESSED:!1,processAll:l,byName:function(e){return _||l(),h[e]}});var h=m.NAMESPACES_BY_ID,p={}.hasOwnProperty;f.Mixin.prototype.toString=u,e.default=m}),e("ember-runtime/system/native_array",["exports","ember-metal","ember-environment","ember-runtime/mixins/array","ember-runtime/mixins/mutable_array","ember-runtime/mixins/observable","ember-runtime/mixins/copyable","ember-runtime/mixins/freezable","ember-runtime/copy"],function(e,t,f,n,i,a,r,o,s){"use strict";e.NativeArray=e.A=void 0;var d,c=t.Mixin.create(i.default,a.default,r.default,{get:function(e){return"number"==typeof e?this[e]:this._super(e)},objectAt:function(e){return this[e]},replace:function(e,f,i){if(this.isFrozen)throw o.FROZEN_ERROR;var a=i?(0,t.get)(i,"length"):0;return(0,n.arrayContentWillChange)(this,e,f,a),0===a?this.splice(e,f):(0,t.replace)(this,e,f,i),(0,n.arrayContentDidChange)(this,e,f,a),this},unknownProperty:function(e,t){var f=void 0;return void 0!==t&&void 0===f&&(f=this[e]=t),f},indexOf:Array.prototype.indexOf,lastIndexOf:Array.prototype.lastIndexOf,copy:function(e){return e?this.map(function(e){return(0,s.default)(e,!0)}):this.slice()}}),u=["length"];c.keys().forEach(function(e){Array.prototype[e]&&u.push(e)}),e.NativeArray=c=(d=c).without.apply(d,u);var l=void 0;f.ENV.EXTEND_PROTOTYPES.Array?(c.apply(Array.prototype),e.A=l=function(e){return e||[]}):e.A=l=function(e){return e||(e=[]),n.default.detect(e)?e:c.apply(e)},t.default.A=l,e.A=l,e.NativeArray=c,e.default=c}),e("ember-runtime/system/object",["exports","ember-utils","ember-metal","ember-runtime/system/core_object","ember-runtime/mixins/observable","ember-debug"],function(e,t,f,n,i){"use strict";e.FrameworkObject=void 0;var a,r=(0,t.symbol)("OVERRIDE_CONTAINER_KEY"),o=(0,t.symbol)("OVERRIDE_OWNER"),s=n.default.extend(i.default,(a={_debugContainerKey:(0,f.descriptor)({enumerable:!1,get:function(){if(this[r])return this[r];var e=(0,f.meta)(this).factory;return e&&e.fullName}})},a[t.OWNER]=(0,f.descriptor)({enumerable:!1,get:function(){if(this[o])return this[o];var e=(0,f.meta)(this).factory;return e&&e.owner},set:function(e){this[o]=e}}),a));s.toString=function(){return"Ember.Object"},e.FrameworkObject=s,e.default=s}),e("ember-runtime/system/object_proxy",["exports","ember-runtime/system/object","ember-runtime/mixins/-proxy"],function(e,t,f){"use strict";e.default=t.default.extend(f.default)}),e("ember-runtime/system/service",["exports","ember-runtime/system/object","ember-runtime/inject"],function(e,t,f){"use strict";(0,f.createInjectionHelper)("service");var n=t.default.extend();n.reopenClass({isServiceFactory:!0}),e.default=n}),e("ember-runtime/system/string",["exports","ember-metal","ember-debug","ember-utils","ember-runtime/utils","ember-runtime/string_registry"],function(e,t,f,n,i,a){"use strict";function r(e,t){var f,a=t;if(!(0,i.isArray)(a)||arguments.length>2)for(a=new Array(arguments.length-1),f=1;f<arguments.length;f++)a[f-1]=arguments[f];var r=0;return e.replace(/%@([0-9]+)?/g,function(e,t){return t=t?parseInt(t,10)-1:r++,null===(e=a[t])?"(null)":void 0===e?"":(0,n.inspect)(e)})}function o(){return r.apply(void 0,arguments)}function s(e,t){return(!(0,i.isArray)(t)||arguments.length>2)&&(t=Array.prototype.slice.call(arguments,1)),e=(0,a.get)(e)||e,r(e,t)}function d(e){return e.split(/\s+/)}function c(e){return O.get(e)}function u(e){return g.get(e)}function l(e){return v.get(e)}function _(e){return q.get(e)}function m(e){return S.get(e)}function h(e){return C.get(e)}e.capitalize=e.underscore=e.classify=e.camelize=e.dasherize=e.decamelize=e.w=e.loc=e.fmt=void 0;var p=/[ _]/g,g=new t.Cache(1e3,function(e){return c(e).replace(p,"-")}),y=/(\-|\_|\.|\s)+(.)?/g,b=/(^|\/)([A-Z])/g,v=new t.Cache(1e3,function(e){return e.replace(y,function(e,t,f){return f?f.toUpperCase():""}).replace(b,function(e){return e.toLowerCase()})}),w=/^(\-|_)+(.)?/,k=/(.)(\-|\_|\.|\s)+(.)?/g,x=/(^|\/|\.)([a-z])/g,q=new t.Cache(1e3,function(e){var t,f=e.split("/");for(t=0;t<f.length;t++)f[t]=f[t].replace(w,function(e,t,f){return f?"_"+f.toUpperCase():""}).replace(k,function(e,t,f,n){return t+(n?n.toUpperCase():"")});return f.join("/").replace(x,function(e){return e.toUpperCase()})}),E=/([a-z\d])([A-Z]+)/g,T=/\-|\s+/g,S=new t.Cache(1e3,function(e){return e.replace(E,"$1_$2").replace(T,"_").toLowerCase()}),M=/(^|\/)([a-z])/g,C=new t.Cache(1e3,function(e){return e.replace(M,function(e){return e.toUpperCase()})}),A=/([a-z\d])([A-Z])/g,O=new t.Cache(1e3,function(e){return e.replace(A,"$1_$2").toLowerCase()});e.default={fmt:o,loc:s,w:d,decamelize:c,dasherize:u,camelize:l,classify:_,underscore:m,capitalize:h},e.fmt=o,e.loc=s,e.w=d,e.decamelize=c,e.dasherize=u,e.camelize=l,e.classify=_,e.underscore=m,e.capitalize=h}),e("ember-runtime/utils",["exports","ember-runtime/mixins/array","ember-runtime/system/object"],function(e,t,f){"use strict";function n(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=i[a.call(e)]||"object";return"function"===t?f.default.detect(e)&&(t="class"):"object"===t&&(e instanceof Error?t="error":e instanceof f.default?t="instance":e instanceof Date&&(t="date")),t}e.isArray=function(e){if(!e||e.setInterval)return!1;if(Array.isArray(e))return!0;if(t.default.detect(e))return!0;var f=n(e);if("array"===f)return!0;var i=e.length;return"number"==typeof i&&i===i&&"object"===f},e.typeOf=n;var i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object FileList]":"filelist"},a=Object.prototype.toString}),e("ember-utils",["exports"],function(e){"use strict";function t(e){var t={};t[e]=1;for(var f in t)if(f===e)return f;return e}function f(){return++l}function n(e){return t("__"+e+"__ [id="+(p+Math.floor(Math.random()*new Date))+"]")}function i(e){var t,f,n,i,a;for(t=1;t<arguments.length;t++)if(f=arguments[t])for(n=Object.keys(f),i=0;i<n.length;i++)a=n[i],e[a]=f[a];return e}function a(){}function r(e){return void 0===e.__hasSuper&&(e.__hasSuper=x(e)),e.__hasSuper}function o(e,t){function f(){var f=this._super;this._super=t;var n=e.apply(this,arguments);return this._super=f,n}return f.wrappedFunction=e,f.__ember_observes__=e.__ember_observes__,f.__ember_observesBefore__=e.__ember_observesBefore__,f.__ember_listens__=e.__ember_listens__,f}function s(e,t,f){var n=f&&f.length;if(!f||!n)return e[t]();switch(n){case 1:return e[t](f[0]);case 2:return e[t](f[0],f[1]);case 3:return e[t](f[0],f[1],f[2]);case 4:return e[t](f[0],f[1],f[2],f[3]);case 5:return e[t](f[0],f[1],f[2],f[3],f[4]);default:return e[t].apply(e,f)}}function d(e,t){return!(!e||"function"!=typeof e[t])}function c(e){return null===e||void 0===e}function u(e){var t,f,n;if("string"==typeof e)return e;if(Array.isArray(e)){for(t=e.length,f="",n=0;n<t;n++)n>0&&(f+=","),c(e[n])||(f+=u(e[n]));return f}return null!=e&&"function"==typeof e.toString?e.toString():S.call(e)}var l=0,_="ember",m=[],h={},p=t("__ember"+ +new Date),g={writable:!0,configurable:!0,enumerable:!1,value:null},y={name:p,descriptor:{configurable:!0,writable:!0,enumerable:!1,value:null}},b=n("OWNER"),v=Object.assign||i,w=/\.(_super|call\(this|apply\(this)/,k=Function.prototype.toString,x=k.call(function(){return this}).indexOf("return this")>-1?function(e){return w.test(k.call(e))}:function(){return!0};a.__hasSuper=!1;var q=Object.prototype.toString,E=Array.isArray,T=n("NAME_KEY"),S=Object.prototype.toString,M=function(){if(!("function"==typeof WeakMap))return!1;var e=new WeakMap;return"[object WeakMap]"===Object.prototype.toString.call(e)}(),C="function"==typeof Proxy;e.symbol=n,e.getOwner=function(e){return e[b]},e.setOwner=function(e,t){e[b]=t},e.OWNER=b,e.assign=v,e.assignPolyfill=i,e.dictionary=function(e){var t=Object.create(e);return t._dict=null,delete t._dict,t},e.uuid=f,e.GUID_KEY=p,e.GUID_DESC=g,e.GUID_KEY_PROPERTY=y,e.generateGuid=function(e,t){t||(t=_);var n=t+f();return e&&(null===e[p]?e[p]=n:(g.value=n,e.__defineNonEnumerable?e.__defineNonEnumerable(y):Object.defineProperty(e,p,g))),n},e.guidFor=function(e){var t=typeof e;if(("object"===t&&null!==e||"function"===t)&&e[p])return e[p];if(void 0===e)return"(undefined)";if(null===e)return"(null)";var n=void 0;switch(t){case"number":return(n=m[e])||(n=m[e]="nu"+e),n;case"string":return(n=h[e])||(n=h[e]="st"+f()),n;case"boolean":return e?"(true)":"(false)";default:return e===Object?"(Object)":e===Array?"(Array)":(n=_+f(),null===e[p]?e[p]=n:(g.value=n,e.__defineNonEnumerable?e.__defineNonEnumerable(y):Object.defineProperty(e,p,g)),n)}},e.intern=t,e.checkHasSuper=x,e.ROOT=a,e.wrap=function(e,t){return r(e)?!t.wrappedFunction&&r(t)?o(e,o(t,a)):o(e,t):e},e.inspect=function(e){if(null===e)return"null";if(void 0===e)return"undefined";if(Array.isArray(e))return"["+e+"]";var t=typeof e;if("object"!==t&&"symbol"!==t)return""+e;if("function"==typeof e.toString&&e.toString!==q)return e.toString();var f=void 0,n=[];for(var i in e)if(e.hasOwnProperty(i)){if("toString"===(f=e[i]))continue;"function"==typeof f&&(f="function() { ... }"),f&&"function"!=typeof f.toString?n.push(i+": "+q.call(f)):n.push(i+": "+f)}return"{"+n.join(", ")+"}"},e.lookupDescriptor=function(e,t){for(var f,n=e;n;){if(f=Object.getOwnPropertyDescriptor(n,t))return f;n=Object.getPrototypeOf(n)}return null},e.canInvoke=d,e.tryInvoke=function(e,t,f){if(d(e,t))return f?s(e,t,f):s(e,t)},e.makeArray=function(e){return null===e||void 0===e?[]:E(e)?e:[e]},e.applyStr=s,e.NAME_KEY=T,e.toString=u,e.HAS_NATIVE_WEAKMAP=M,e.HAS_NATIVE_PROXY=C}),e("ember-views/compat/attrs",["exports","ember-utils"],function(e,t){"use strict";e.MUTABLE_CELL=void 0,e.MUTABLE_CELL=(0,t.symbol)("MUTABLE_CELL")}),e("ember-views/compat/fallback-view-registry",["exports","ember-utils"],function(e,t){"use strict";e.default=(0,t.dictionary)(null)}),e("ember-views/component_lookup",["exports","ember-debug","ember-runtime"],function(e,t,f){"use strict";e.default=f.Object.extend({componentFor:function(e,t,f){return t.factoryFor("component:"+e,f)},layoutFor:function(e,t,f){return t.lookup("template:components/"+e,f)}})}),e("ember-views/index",["exports","ember-views/system/jquery","ember-views/system/utils","ember-views/system/event_dispatcher","ember-views/component_lookup","ember-views/mixins/text_support","ember-views/views/core_view","ember-views/mixins/class_names_support","ember-views/mixins/child_views_support","ember-views/mixins/view_state_support","ember-views/mixins/view_support","ember-views/mixins/action_support","ember-views/compat/attrs","ember-views/system/lookup_partial","ember-views/utils/lookup-component","ember-views/system/action_manager","ember-views/compat/fallback-view-registry","ember-views/system/ext"],function(e,t,f,n,i,a,r,o,s,d,c,u,l,_,m,h,p){"use strict";e.fallbackViewRegistry=e.ActionManager=e.lookupComponent=e.hasPartial=e.lookupPartial=e.MUTABLE_CELL=e.ActionSupport=e.ViewMixin=e.ViewStateSupport=e.ChildViewsSupport=e.ClassNamesSupport=e.CoreView=e.TextSupport=e.ComponentLookup=e.EventDispatcher=e.constructStyleDeprecationMessage=e.setViewElement=e.getViewElement=e.getViewId=e.getChildViews=e.getRootViews=e.getViewBoundingClientRect=e.getViewClientRects=e.getViewBounds=e.isSimpleClick=e.jQuery=void 0,Object.defineProperty(e,"jQuery",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isSimpleClick",{enumerable:!0,get:function(){return f.isSimpleClick}}),Object.defineProperty(e,"getViewBounds",{enumerable:!0,get:function(){return f.getViewBounds}}),Object.defineProperty(e,"getViewClientRects",{enumerable:!0,get:function(){return f.getViewClientRects}}),Object.defineProperty(e,"getViewBoundingClientRect",{enumerable:!0,get:function(){return f.getViewBoundingClientRect}}),Object.defineProperty(e,"getRootViews",{enumerable:!0,get:function(){return f.getRootViews}}),Object.defineProperty(e,"getChildViews",{enumerable:!0,get:function(){return f.getChildViews}}),Object.defineProperty(e,"getViewId",{enumerable:!0,get:function(){return f.getViewId}}),Object.defineProperty(e,"getViewElement",{enumerable:!0,get:function(){return f.getViewElement}}),Object.defineProperty(e,"setViewElement",{enumerable:!0,get:function(){return f.setViewElement}}),Object.defineProperty(e,"constructStyleDeprecationMessage",{enumerable:!0,get:function(){return f.constructStyleDeprecationMessage}}),Object.defineProperty(e,"EventDispatcher",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"ComponentLookup",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"TextSupport",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"CoreView",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"ClassNamesSupport",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"ChildViewsSupport",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"ViewStateSupport",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"ViewMixin",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"ActionSupport",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MUTABLE_CELL",{enumerable:!0,get:function(){return l.MUTABLE_CELL}}),Object.defineProperty(e,"lookupPartial",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"hasPartial",{enumerable:!0,get:function(){return _.hasPartial}}),Object.defineProperty(e,"lookupComponent",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"ActionManager",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"fallbackViewRegistry",{enumerable:!0,get:function(){return p.default}})}),e("ember-views/mixins/action_support",["exports","ember-utils","ember-metal","ember-debug","ember-views/compat/attrs"],function(e,t,f,n,i){"use strict";function a(e,t){return t&&t[i.MUTABLE_CELL]&&(t=t.value),t}e.default=f.Mixin.create({sendAction:function(e){for(t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var t,n,i,r=void 0;void 0===e&&(e="action"),void 0!==(r=a(0,r=(0,f.get)(this,"attrs."+e)||(0,f.get)(this,e)))&&("function"==typeof r?r.apply(void 0,n):this.triggerAction({action:r,actionContext:n}))},send:function(e){for(t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var t,n,i,a=this.actions&&this.actions[e];if(!a||!0===a.apply(this,n)){var r=(0,f.get)(this,"target");r&&r.send.apply(r,arguments)}}})}),e("ember-views/mixins/child_views_support",["exports","ember-utils","ember-metal","ember-views/system/utils"],function(e,t,f,n){"use strict";e.default=f.Mixin.create({init:function(){this._super.apply(this,arguments),(0,n.initChildViews)(this)},childViews:(0,f.descriptor)({configurable:!1,enumerable:!1,get:function(){return(0,n.getChildViews)(this)}}),appendChild:function(e){this.linkChild(e),(0,n.addChildView)(this,e)},linkChild:function(e){(0,t.getOwner)(e)||(0,t.setOwner)(e,(0,t.getOwner)(this))}})}),e("ember-views/mixins/class_names_support",["exports","ember-metal","ember-debug"],function(e,t,f){"use strict";var n=Object.freeze([]);e.default=t.Mixin.create({concatenatedProperties:["classNames","classNameBindings"],init:function(){this._super.apply(this,arguments)},classNames:n,classNameBindings:n})}),e("ember-views/mixins/text_support",["exports","ember-metal","ember-runtime"],function(e,t,f){"use strict";function n(e,f,n){var i=(0,t.get)(f,"attrs."+e)||(0,t.get)(f,e),a=(0,t.get)(f,"onEvent"),r=(0,t.get)(f,"value");(a===e||"keyPress"===a&&"key-press"===e)&&f.sendAction("action",r),f.sendAction(e,r),(i||a===e)&&((0,t.get)(f,"bubbles")||n.stopPropagation())}var i={13:"insertNewline",27:"cancel"};e.default=t.Mixin.create(f.TargetActionSupport,{value:"",attributeBindings:["autocapitalize","autocorrect","autofocus","disabled","form","maxlength","minlength","placeholder","readonly","required","selectionDirection","spellcheck","tabindex","title"],placeholder:null,disabled:!1,maxlength:null,init:function(){this._super.apply(this,arguments),this.on("paste",this,this._elementValueDidChange),this.on("cut",this,this._elementValueDidChange),this.on("input",this,this._elementValueDidChange)},action:null,onEvent:"enter",bubbles:!1,interpretKeyEvents:function(e){var t=i[e.keyCode];if(this._elementValueDidChange(),t)return this[t](e)},_elementValueDidChange:function(){(0,t.set)(this,"value",this.element.value)},change:function(e){this._elementValueDidChange(e)},insertNewline:function(e){n("enter",this,e),n("insert-newline",this,e)},cancel:function(e){n("escape-press",this,e)},focusIn:function(e){n("focus-in",this,e)},focusOut:function(e){this._elementValueDidChange(e),n("focus-out",this,e)},keyPress:function(e){n("key-press",this,e)},keyUp:function(e){this.interpretKeyEvents(e),this.sendAction("key-up",(0,t.get)(this,"value"),e)},keyDown:function(e){this.sendAction("key-down",(0,t.get)(this,"value"),e)}})}),e("ember-views/mixins/view_state_support",["exports","ember-metal"],function(e,t){"use strict";e.default=t.Mixin.create({_transitionTo:function(e){var t=this._currentState,f=this._currentState=this._states[e];this._state=e,t&&t.exit&&t.exit(this),f.enter&&f.enter(this)}})}),e("ember-views/mixins/view_support",["exports","ember-utils","ember-metal","ember-debug","ember-environment","ember-views/system/utils","ember-runtime/system/core_object","ember-views/system/jquery"],function(e,t,f,n,i,a,r,o){"use strict";function s(){return this}var d;e.default=f.Mixin.create((d={concatenatedProperties:["attributeBindings"]},d[r.POST_INIT]=function(){this.trigger("didInitAttrs"),this.trigger("didReceiveAttrs")},d.nearestOfType=function(e){for(var t=this.parentView,n=e instanceof f.Mixin?function(t){return e.detect(t)}:function(t){return e.detect(t.constructor)};t;){if(n(t))return t;t=t.parentView}},d.nearestWithProperty=function(e){for(var t=this.parentView;t;){if(e in t)return t;t=t.parentView}},d.rerender=function(){return this._currentState.rerender(this)},d.element=(0,f.descriptor)({configurable:!1,enumerable:!1,get:function(){return this.renderer.getElement(this)}}),d.$=function(e){if(this.element)return e?(0,o.default)(e,this.element):(0,o.default)(this.element)},d.appendTo=function(e){var t=void 0;return t=(this._environment||i.environment).hasDOM&&"string"==typeof e?document.querySelector(e):e,this.renderer.appendTo(this,t),this},d.append=function(){return this.appendTo(document.body)},d.elementId=null,d.findElementInParentElement=function(e){var t="#"+this.elementId;return(0,o.default)(t)[0]||(0,o.default)(t,e)[0]},d.willInsertElement=s,d.didInsertElement=s,d.willClearRender=s,d.destroy=function(){this._super.apply(this,arguments),this._currentState.destroy(this)},d.willDestroyElement=s,d.parentViewDidChange=s,d.tagName=null,d.init=function(){var e,f;this._super.apply(this,arguments),this.elementId||""===this.tagName||(this.elementId=(0,t.guidFor)(this)),this.eventManager&&(e=(0,t.getOwner)(this),!(f=e&&e.lookup("event_dispatcher:main"))||"canDispatchToEventManager"in f||(f.canDispatchToEventManager=!0))},d.__defineNonEnumerable=function(e){this[e.name]=e.descriptor.value},d.handleEvent=function(e,t){return this._currentState.handleEvent(this,e,t)},d))}),e("ember-views/system/action_manager",["exports"],function(e){"use strict";function t(){}e.default=t,t.registeredActions={}}),e("ember-views/system/event_dispatcher",["exports","ember-utils","ember-debug","ember-metal","ember-runtime","ember-views/system/jquery","ember-views/system/action_manager","ember-environment","ember-views/compat/fallback-view-registry"],function(e,t,f,n,i,a,r,o,s){"use strict";var d="ember-application";e.default=i.Object.extend({events:{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"},rootElement:"body",init:function(){this._super()},setup:function(e,f){var i=void 0,r=this._finalEvents=(0,t.assign)({},(0,n.get)(this,"events"),e);if((0,n.isNone)(f)?f=(0,n.get)(this,"rootElement"):(0,n.set)(this,"rootElement",f),(f=(0,a.default)(f)).addClass(d),!f.is(".ember-application"))throw new TypeError("Unable to add '"+d+"' class to root element ("+(f.selector||f[0].tagName)+"). Make sure you set rootElement to the body or an element in the body.");var o=this._getViewRegistry();for(i in r)r.hasOwnProperty(i)&&this.setupHandler(f,i,r[i],o)},setupHandler:function(e,t,f,n){var i=this;null!==f&&(e.on(t+".ember",".ember-view",function(e,t){var a=n[this.id],r=!0,o=i.canDispatchToEventManager?i._findNearestEventManager(a,f):null;return o&&o!==t?r=i._dispatchEvent(o,e,f,a):a&&(r=i._bubbleEvent(a,e,f)),r}),e.on(t+".ember","[data-ember-action]",function(e){var t,n,i,a=e.currentTarget.attributes,o=[];for(t=0;t<a.length;t++)n=a.item(t),-1!==n.name.lastIndexOf("data-ember-action-",0)&&(i=r.default.registeredActions[n.value])&&i.eventName===f&&-1===o.indexOf(i)&&(i.handler(e),o.push(i))}))},_getViewRegistry:function(){var e=(0,t.getOwner)(this);return e&&e.lookup("-view-registry:main")||s.default},_findNearestEventManager:function(e,t){for(var f=null;e&&(!(f=(0,n.get)(e,"eventManager"))||!f[t]);)e=(0,n.get)(e,"parentView");return f},_dispatchEvent:function(e,t,f,i){var a=!0,r=e[f];return"function"==typeof r?(a=(0,n.run)(e,r,t,i),t.stopPropagation()):a=this._bubbleEvent(i,t,f),a},_bubbleEvent:function(e,t,f){return e.handleEvent(f,t)},destroy:function(){var e=(0,n.get)(this,"rootElement");return(0,a.default)(e).off(".ember","**").removeClass(d),this._super.apply(this,arguments)},toString:function(){return"(EventDispatcher)"}})}),e("ember-views/system/ext",["ember-metal"],function(e){"use strict";e.run._addQueue("render","actions"),e.run._addQueue("afterRender","render")}),e("ember-views/system/jquery",["exports","ember-environment"],function(e,t){"use strict";var f=void 0;t.environment.hasDOM&&(f=t.context.imports.jQuery)&&(f.event.addProp?f.event.addProp("dataTransfer"):["dragstart","drag","dragenter","dragleave","dragover","drop","dragend"].forEach(function(e){f.event.fixHooks[e]={props:["dataTransfer"]}})),e.default=f}),e("ember-views/system/lookup_partial",["exports","ember-debug"],function(e,t){"use strict";function f(e){var t=e.split("/"),f=t[t.length-1];return t[t.length-1]="_"+f,t.join("/")}function n(e,f,n){if(n){if(!e)throw new t.Error("Container was not found when looking up a views template. This is most likely due to manually instantiating an Ember.View. See: http://git.io/EKPpnA");return e.lookup("template:"+f)||e.lookup("template:"+n)}}e.default=function(e,t){if(null!=e)return n(t,f(e),e)},e.hasPartial=function(e,n){if(!n)throw new t.Error("Container was not found when looking up a views template. This is most likely due to manually instantiating an Ember.View. See: http://git.io/EKPpnA");return n.hasRegistration("template:"+f(e))||n.hasRegistration("template:"+e)}}),e("ember-views/system/utils",["exports","ember-utils"],function(e,t){"use strict";function f(e){return""===e.tagName?(0,t.guidFor)(e):e.elementId||(0,t.guidFor)(e)}function n(e,t){var f=[],n=[];return e[o].forEach(function(e){var i=t[e];!i||i.isDestroying||i.isDestroyed||-1!==f.indexOf(e)||(f.push(e),n.push(i))}),e[o]=f,n}function i(e){return e.renderer.getBounds(e)}function a(e){var t=i(e),f=document.createRange();return f.setStartBefore(t.firstNode),f.setEndAfter(t.lastNode),f}e.elMatches=void 0,e.isSimpleClick=function(e){var t=e.shiftKey||e.metaKey||e.altKey||e.ctrlKey,f=e.which>1;return!t&&!f},e.constructStyleDeprecationMessage=function(e){return'Binding style attributes may introduce cross-site scripting vulnerabilities; please ensure that values being bound are properly escaped. For more information, including how to disable this warning, see https://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes. Style affected: "'+e+'"'},e.getRootViews=function(e){var t=e.lookup("-view-registry:main"),f=[];return Object.keys(t).forEach(function(e){var n=t[e];null===n.parentView&&f.push(n)}),f},e.getViewId=f,e.getViewElement=function(e){return e[r]},e.initViewElement=function(e){e[r]=null},e.setViewElement=function(e,t){return e[r]=t},e.getChildViews=function(e){return n(e,(0,t.getOwner)(e).lookup("-view-registry:main"))},e.initChildViews=function(e){e[o]=[]},e.addChildView=function(e,t){e[o].push(f(t))},e.collectChildViews=n,e.getViewBounds=i,e.getViewRange=a,e.getViewClientRects=function(e){return a(e).getClientRects()},e.getViewBoundingClientRect=function(e){return a(e).getBoundingClientRect()},e.matches=function(e,t){return s.call(e,t)};var r=(0,t.symbol)("VIEW_ELEMENT"),o=(0,t.symbol)("CHILD_VIEW_IDS"),s=e.elMatches="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector)}),e("ember-views/utils/lookup-component",["exports","ember-babel","container"],function(e,t,f){"use strict";function n(e,t,n,a){var r=e.componentFor(n,t,a),o=e.layoutFor(n,t,a),s={layout:o,component:r};return o&&!r&&(s.component=t.factoryFor((0,f.privatize)(i))),s}e.default=function(e,t,f){var i,a=e.lookup("component-lookup:main");return f&&f.source&&((i=n(a,e,t,f)).component||i.layout)?i:n(a,e,t)};var i=(0,t.taggedTemplateLiteralLoose)(["component:-default"],["component:-default"])}),e("ember-views/views/core_view",["exports","ember-runtime","ember-views/system/utils","ember-views/views/states"],function(e,t,f,n){"use strict";var i=t.FrameworkObject.extend(t.Evented,t.ActionHandler,{isView:!0,_states:(0,n.cloneStates)(n.states),init:function(){if(this._super.apply(this,arguments),this._state="preRender",this._currentState=this._states.preRender,(0,f.initViewElement)(this),!this.renderer)throw new Error("Cannot instantiate a component without a renderer. Please ensure that you are creating "+this+" with a proper container/registry.")},parentView:null,instrumentDetails:function(e){return e.object=this.toString(),e.containerKey=this._debugContainerKey,e.view=this,e},trigger:function(){this._super.apply(this,arguments);var e,t,f=this[arguments[0]];if("function"==typeof f){for(e=new Array(arguments.length-1),t=1;t<arguments.length;t++)e[t-1]=arguments[t];return f.apply(this,e)}},has:function(e){return"function"==typeof this[e]||this._super(e)}});(0,t.deprecateUnderscoreActions)(i),i.reopenClass({isViewFactory:!0}),e.default=i}),e("ember-views/views/states",["exports","ember-utils","ember-views/views/states/default","ember-views/views/states/pre_render","ember-views/views/states/has_element","ember-views/views/states/in_dom","ember-views/views/states/destroying"],function(e,t,f,n,i,a,r){"use strict";e.states=void 0,e.cloneStates=function(e){var f={};f._default={},f.preRender=Object.create(f._default),f.destroying=Object.create(f._default),f.hasElement=Object.create(f._default),f.inDOM=Object.create(f.hasElement);for(var n in e)e.hasOwnProperty(n)&&(0,t.assign)(f[n],e[n]);return f},e.states={_default:f.default,preRender:n.default,inDOM:a.default,hasElement:i.default,destroying:r.default}}),e("ember-views/views/states/default",["exports","ember-debug"],function(e,t){"use strict";e.default={appendChild:function(){throw new t.EmberError("You can't use appendChild outside of the rendering process")},handleEvent:function(){return!0},rerender:function(){},destroy:function(){}}}),e("ember-views/views/states/destroying",["exports","ember-utils","ember-debug","ember-views/views/states/default"],function(e,t,f,n){"use strict";var i=Object.create(n.default);(0,t.assign)(i,{appendChild:function(){throw new f.Error("You can't call appendChild on a view being destroyed")},rerender:function(){throw new f.Error("You can't call rerender on a view being destroyed")}}),e.default=i}),e("ember-views/views/states/has_element",["exports","ember-utils","ember-views/views/states/default","ember-metal"],function(e,t,f,n){"use strict";var i=Object.create(f.default);(0,t.assign)(i,{rerender:function(e){e.renderer.rerender(e)},destroy:function(e){e.renderer.remove(e)},handleEvent:function(e,t,f){return!e.has(t)||(0,n.flaggedInstrument)("interaction."+t,{event:f,view:e},function(){return n.run.join(e,e.trigger,t,f)})}}),e.default=i}),e("ember-views/views/states/in_dom",["exports","ember-utils","ember-metal","ember-debug","ember-views/views/states/has_element"],function(e,t,f,n,i){"use strict";var a=Object.create(i.default);(0,t.assign)(a,{enter:function(e){e.renderer.register(e)},exit:function(e){e.renderer.unregister(e)}}),e.default=a}),e("ember-views/views/states/pre_render",["exports","ember-views/views/states/default"],function(e,t){"use strict";e.default=Object.create(t.default)}),e("ember/features",["exports","ember-environment","ember-utils"],function(e,t,f){"use strict";e.FEATURES=e.DEFAULT_FEATURES=void 0;var n=e.DEFAULT_FEATURES={"features-stripped-test":!1,"ember-libraries-isregistered":!1,"ember-improved-instrumentation":!1,"ember-metal-weakmap":!1,"ember-glimmer-allow-backtracking-rerender":!1,"ember-routing-router-service":!0,"ember-engines-mount-params":!0,"ember-module-unification":!1,"glimmer-custom-component-manager":!1,"mandatory-setter":!1,"ember-glimmer-detect-backtracking-rerender":!1};e.FEATURES=(0,f.assign)(n,t.ENV.FEATURES)}),e("ember/index",["exports","require","ember-environment","node-module","ember-utils","container","ember-metal","ember/features","ember-debug","backburner","ember-console","ember-runtime","ember-glimmer","ember/version","ember-views","ember-routing","ember-application","ember-extension-support"],function(e,t,f,n,i,a,r,o,s,d,c,u,l,_,m,h,p,g){"use strict";function y(){return this}e.VERSION=void 0,r.default.getOwner=i.getOwner,r.default.setOwner=i.setOwner,r.default.generateGuid=i.generateGuid,r.default.GUID_KEY=i.GUID_KEY,r.default.guidFor=i.guidFor,r.default.inspect=i.inspect,r.default.makeArray=i.makeArray,r.default.canInvoke=i.canInvoke,r.default.tryInvoke=i.tryInvoke,r.default.wrap=i.wrap,r.default.applyStr=i.applyStr,r.default.uuid=i.uuid,r.default.assign=i.assign,r.default.Container=a.Container,r.default.Registry=a.Registry;var b,v=r.computed;v.alias=r.alias,r.default.computed=v,r.default.ComputedProperty=r.ComputedProperty,r.default.cacheFor=r.cacheFor,r.default.assert=s.assert,r.default.warn=s.warn,r.default.debug=s.debug,r.default.deprecate=s.deprecate,r.default.deprecateFunc=s.deprecateFunc,r.default.runInDebug=s.runInDebug,r.default.Debug={registerDeprecationHandler:s.registerDeprecationHandler,registerWarnHandler:s.registerWarnHandler},r.default.merge=r.merge,r.default.instrument=r.instrument,r.default.subscribe=r.instrumentationSubscribe,r.default.Instrumentation={instrument:r.instrument,subscribe:r.instrumentationSubscribe,unsubscribe:r.instrumentationUnsubscribe,reset:r.instrumentationReset},r.default.Error=s.Error,r.default.META_DESC=r.META_DESC,r.default.meta=r.meta,r.default.get=r.get,r.default.getWithDefault=r.getWithDefault,r.default._getPath=r._getPath,r.default.set=r.set,r.default.trySet=r.trySet,r.default.FEATURES=o.FEATURES,r.default.FEATURES.isEnabled=s.isFeatureEnabled,r.default._Cache=r.Cache,r.default.on=r.on,r.default.addListener=r.addListener,r.default.removeListener=r.removeListener,r.default._suspendListener=r.suspendListener,r.default._suspendListeners=r.suspendListeners,r.default.sendEvent=r.sendEvent,r.default.hasListeners=r.hasListeners,r.default.watchedEvents=r.watchedEvents,r.default.listenersFor=r.listenersFor,r.default.accumulateListeners=r.accumulateListeners,r.default.isNone=r.isNone,r.default.isEmpty=r.isEmpty,r.default.isBlank=r.isBlank,r.default.isPresent=r.isPresent,r.default.run=r.run,r.default._ObserverSet=r.ObserverSet,r.default.propertyWillChange=r.propertyWillChange,r.default.propertyDidChange=r.propertyDidChange,r.default.overrideChains=r.overrideChains,r.default.beginPropertyChanges=r.beginPropertyChanges,r.default.endPropertyChanges=r.endPropertyChanges,r.default.changeProperties=r.changeProperties,r.default.platform={defineProperty:!0,hasPropertyAccessors:!0},r.default.defineProperty=r.defineProperty,r.default.watchKey=r.watchKey,r.default.unwatchKey=r.unwatchKey,r.default.removeChainWatcher=r.removeChainWatcher,r.default._ChainNode=r.ChainNode,r.default.finishChains=r.finishChains,r.default.watchPath=r.watchPath,r.default.unwatchPath=r.unwatchPath,r.default.watch=r.watch,r.default.isWatching=r.isWatching,r.default.unwatch=r.unwatch,r.default.destroy=r.destroy,r.default.libraries=r.libraries,r.default.OrderedSet=r.OrderedSet,r.default.Map=r.Map,r.default.MapWithDefault=r.MapWithDefault,r.default.getProperties=r.getProperties,r.default.setProperties=r.setProperties,r.default.expandProperties=r.expandProperties,r.default.NAME_KEY=i.NAME_KEY,r.default.addObserver=r.addObserver,r.default.observersFor=r.observersFor,r.default.removeObserver=r.removeObserver,r.default._suspendObserver=r._suspendObserver,r.default._suspendObservers=r._suspendObservers,r.default.required=r.required,r.default.aliasMethod=r.aliasMethod,r.default.observer=r.observer,r.default.immediateObserver=r._immediateObserver,r.default.mixin=r.mixin,r.default.Mixin=r.Mixin,r.default.bind=r.bind,r.default.Binding=r.Binding,r.default.isGlobalPath=r.isGlobalPath,Object.defineProperty(r.default,"ENV",{get:function(){return f.ENV},enumerable:!1}),Object.defineProperty(r.default,"lookup",{get:function(){return f.context.lookup},set:function(e){f.context.lookup=e},enumerable:!1}),r.default.EXTEND_PROTOTYPES=f.ENV.EXTEND_PROTOTYPES,Object.defineProperty(r.default,"LOG_STACKTRACE_ON_DEPRECATION",{get:function(){return f.ENV.LOG_STACKTRACE_ON_DEPRECATION},set:function(e){f.ENV.LOG_STACKTRACE_ON_DEPRECATION=!!e},enumerable:!1}),Object.defineProperty(r.default,"LOG_VERSION",{get:function(){return f.ENV.LOG_VERSION},set:function(e){f.ENV.LOG_VERSION=!!e},enumerable:!1}),Object.defineProperty(r.default,"LOG_BINDINGS",{get:function(){return f.ENV.LOG_BINDINGS},set:function(e){f.ENV.LOG_BINDINGS=!!e},enumerable:!1}),Object.defineProperty(r.default,"onerror",{get:r.getOnerror,set:r.setOnerror,enumerable:!1}),Object.defineProperty(r.default,"K",{get:function(){return y}}),Object.defineProperty(r.default,"testing",{get:s.isTesting,set:s.setTesting,enumerable:!1}),r.default._Backburner=d.default,r.default.Logger=c.default,r.default.String=u.String,r.default.Object=u.Object,r.default._RegistryProxyMixin=u.RegistryProxyMixin,r.default._ContainerProxyMixin=u.ContainerProxyMixin,r.default.compare=u.compare,r.default.copy=u.copy,r.default.isEqual=u.isEqual,r.default.inject=u.inject,r.default.Array=u.Array,r.default.Comparable=u.Comparable,r.default.Enumerable=u.Enumerable,r.default.ArrayProxy=u.ArrayProxy,r.default.ObjectProxy=u.ObjectProxy,r.default.ActionHandler=u.ActionHandler,r.default.CoreObject=u.CoreObject,r.default.NativeArray=u.NativeArray,r.default.Copyable=u.Copyable,r.default.Freezable=u.Freezable,r.default.FROZEN_ERROR=u.FROZEN_ERROR,r.default.MutableEnumerable=u.MutableEnumerable,r.default.MutableArray=u.MutableArray,r.default.TargetActionSupport=u.TargetActionSupport,r.default.Evented=u.Evented,r.default.PromiseProxyMixin=u.PromiseProxyMixin,r.default.Observable=u.Observable,r.default.typeOf=u.typeOf,r.default.isArray=u.isArray,r.default.Object=u.Object,r.default.onLoad=u.onLoad,r.default.runLoadHooks=u.runLoadHooks,r.default.Controller=u.Controller,r.default.ControllerMixin=u.ControllerMixin,r.default.Service=u.Service,r.default._ProxyMixin=u._ProxyMixin,r.default.RSVP=u.RSVP,r.default.Namespace=u.Namespace,v.empty=u.empty,v.notEmpty=u.notEmpty,v.none=u.none,v.not=u.not,v.bool=u.bool,v.match=u.match,v.equal=u.equal,v.gt=u.gt,v.gte=u.gte,v.lt=u.lt,v.lte=u.lte,v.oneWay=u.oneWay,v.reads=u.oneWay,v.readOnly=u.readOnly,v.deprecatingAlias=u.deprecatingAlias,v.and=u.and,v.or=u.or,v.any=u.any,v.sum=u.sum,v.min=u.min,v.max=u.max,v.map=u.map,v.sort=u.sort,v.setDiff=u.setDiff,v.mapBy=u.mapBy,v.filter=u.filter,v.filterBy=u.filterBy,v.uniq=u.uniq,v.uniqBy=u.uniqBy,v.union=u.union,v.intersect=u.intersect,v.collect=u.collect,Object.defineProperty(r.default,"STRINGS",{configurable:!1,get:u.getStrings,set:u.setStrings}),Object.defineProperty(r.default,"BOOTED",{configurable:!1,enumerable:!1,get:u.isNamespaceSearchDisabled,set:u.setNamespaceSearchDisabled}),r.default.Component=l.Component,l.Helper.helper=l.helper,r.default.Helper=l.Helper,r.default.Checkbox=l.Checkbox,r.default.TextField=l.TextField,r.default.TextArea=l.TextArea,r.default.LinkComponent=l.LinkComponent,f.ENV.EXTEND_PROTOTYPES.String&&(String.prototype.htmlSafe=function(){return(0,l.htmlSafe)(this)});var w=r.default.Handlebars=r.default.Handlebars||{},k=r.default.HTMLBars=r.default.HTMLBars||{},x=w.Utils=w.Utils||{};Object.defineProperty(w,"SafeString",{get:l._getSafeString}),k.template=w.template=l.template,x.escapeExpression=l.escapeExpression,u.String.htmlSafe=l.htmlSafe,u.String.isHTMLSafe=l.isHTMLSafe,Object.defineProperty(r.default,"TEMPLATES",{get:l.getTemplates,set:l.setTemplates,configurable:!1,enumerable:!1}),e.VERSION=_.default,r.default.VERSION=_.default,r.libraries.registerCoreLibrary("Ember",_.default),r.default.$=m.jQuery,r.default.ViewTargetActionSupport=m.ViewTargetActionSupport,r.default.ViewUtils={isSimpleClick:m.isSimpleClick,getViewElement:m.getViewElement,getViewBounds:m.getViewBounds,getViewClientRects:m.getViewClientRects,getViewBoundingClientRect:m.getViewBoundingClientRect,getRootViews:m.getRootViews,getChildViews:m.getChildViews},r.default.TextSupport=m.TextSupport,r.default.ComponentLookup=m.ComponentLookup,r.default.EventDispatcher=m.EventDispatcher,r.default.Location=h.Location,r.default.AutoLocation=h.AutoLocation,r.default.HashLocation=h.HashLocation,r.default.HistoryLocation=h.HistoryLocation,r.default.NoneLocation=h.NoneLocation,r.default.controllerFor=h.controllerFor,r.default.generateControllerFactory=h.generateControllerFactory,r.default.generateController=h.generateController,r.default.RouterDSL=h.RouterDSL,r.default.Router=h.Router,r.default.Route=h.Route,r.default.Application=p.Application,r.default.ApplicationInstance=p.ApplicationInstance,r.default.Engine=p.Engine,r.default.EngineInstance=p.EngineInstance,r.default.DefaultResolver=r.default.Resolver=p.Resolver,(0,u.runLoadHooks)("Ember.Application",p.Application),r.default.DataAdapter=g.DataAdapter,r.default.ContainerDebugAdapter=g.ContainerDebugAdapter,(0,t.has)("ember-template-compiler")&&(0,t.default)("ember-template-compiler"),(0,t.has)("ember-testing")&&(b=(0,t.default)("ember-testing"),r.default.Test=b.Test,r.default.Test.Adapter=b.Adapter,r.default.Test.QUnitAdapter=b.QUnitAdapter,r.default.setupForTesting=b.setupForTesting),(0,u.runLoadHooks)("Ember"),e.default=r.default,n.IS_NODE?n.module.exports=r.default:f.context.exports.Ember=f.context.exports.Em=r.default}),e("ember/version",["exports"],function(e){"use strict";e.default="2.15.0"}),e("node-module",["exports"],function(e){var t="object"==typeof module&&"function"==typeof module.require;t?(e.require=module.require,e.module=module,e.IS_NODE=t):(e.require=null,e.module=null,e.IS_NODE=t)}),e("route-recognizer",["exports"],function(e){"use strict";function t(){var e=p(null);return e.__=void 0,delete e.__,e}function f(e,t,n){return function(i,a){var r=e+i;return a?void a(f(r,t,n)):new g(r,t,n)}}function n(e,t,f){var n,i=0;for(n=0;n<e.length;n++)i+=e[n].path.length;var a={path:t=t.substr(i),handler:f};e.push(a)}function i(e,t,f,a){var r,o,s,d,c=t.routes,u=Object.keys(c);for(r=0;r<u.length;r++)o=u[r],s=e.slice(),n(s,o,c[o]),(d=t.children[o])?i(s,d,f,a):f.call(a,s)}function a(e){return e.split("/").map(r).join("/")}function r(e){return e.length<3||-1===e.indexOf("%")?e:decodeURIComponent(e).replace(b,encodeURIComponent)}function o(e){return encodeURIComponent(e).replace(v,decodeURIComponent)}function s(e,t){if("object"!=typeof e||null===e)throw new Error("You must pass an object as the second argument to `generate`.");if(!x.call(e,t))throw new Error("You must provide param `"+t+"` to `generate`.");var f=e[t],n="string"==typeof f?f:""+f;if(0===n.length)throw new Error("You must provide a param `"+t+"`.");return n}function d(e,t,f){t.length>0&&47===t.charCodeAt(0)&&(t=t.substr(1));var n,i,a,o,s=t.split("/"),d=void 0,c=void 0;for(n=0;n<s.length;n++)i=s[n],a=0,o=0,o=""===i?4:58===i.charCodeAt(0)?1:42===i.charCodeAt(0)?2:0,12&(a=2<<o)&&(i=i.slice(1),(d=d||[]).push(i),(c=c||[]).push(0!=(4&a))),14&a&&f[o]++,e.push({type:o,value:r(i)});return{names:d||M,shouldDecodes:c||M}}function c(e,t,f){return e.char===t&&e.negate===f}function u(e,t){return e.negate?e.char!==t&&-1!==e.char:e.char===t||-1===e.char}function l(e){return e.sort(function(e,t){var f=e.types||[0,0,0],n=f[0],i=f[1],a=f[2],r=t.types||[0,0,0],o=r[0],s=r[1],d=r[2];if(a!==d)return a-d;if(a){if(n!==o)return o-n;if(i!==s)return s-i}return i!==s?i-s:n!==o?o-n:0})}function _(e,t){var f,n,i,a=[];for(f=0,n=e.length;f<n;f++)i=e[f],a=a.concat(i.match(t));return a}function m(e,t,f){var n,i,a,r,o,s,d,c,u,l=e.handlers,_=e.regex();if(!_||!l)throw new Error("state not initialized");var m=t.match(_),h=1,p=new A(f);for(p.length=l.length,n=0;n<l.length;n++){if(i=l[n],a=i.names,r=i.shouldDecodes,o=S,s=!1,a!==M&&r!==M)for(d=0;d<a.length;d++)s=!0,c=a[d],u=m&&m[h++],o===S&&(o={}),O.ENCODE_AND_DECODE_PATH_SEGMENTS&&r[d]?o[c]=u&&decodeURIComponent(u):o[c]=u;p[n]={handler:i.handler,params:o,isDynamic:s}}return p}function h(e){e=e.replace(/\+/gm,"%20");var t;try{t=decodeURIComponent(e)}catch(e){t=""}return t}var p=Object.create,g=function(e,t,f){this.path=e,this.matcher=t,this.delegate=f};g.prototype.to=function(e,t){var f=this.delegate;if(f&&f.willAddRoute&&(e=f.willAddRoute(this.matcher.target,e)),this.matcher.add(this.path,e),t){if(0===t.length)throw new Error("You must have an argument in the function passed to `to`");this.matcher.addChild(this.path,e,t,this.delegate)}};var y=function(e){this.routes=t(),this.children=t(),this.target=e};y.prototype.add=function(e,t){this.routes[e]=t},y.prototype.addChild=function(e,t,n,i){var a=new y(t);this.children[e]=a;var r=f(e,a,i);i&&i.contextEntered&&i.contextEntered(t,r),n(r)};var b=/%|\//g,v=/%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g,w=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\)/g,k=Array.isArray,x=Object.prototype.hasOwnProperty,q=[];q[0]=function(e,t){var f,n,i=t,a=e.value;for(f=0;f<a.length;f++)n=a.charCodeAt(f),i=i.put(n,!1,!1);return i},q[1]=function(e,t){return t.put(47,!0,!0)},q[2]=function(e,t){return t.put(-1,!1,!0)},q[4]=function(e,t){return t};var E=[];E[0]=function(e){return e.value.replace(w,"\\$1")},E[1]=function(){return"([^/]+)"},E[2]=function(){return"(.+)"},E[4]=function(){return""};var T=[];T[0]=function(e){return e.value},T[1]=function(e,t){var f=s(t,e.value);return O.ENCODE_AND_DECODE_PATH_SEGMENTS?o(f):f},T[2]=function(e,t){return s(t,e.value)},T[4]=function(){return""};var S=Object.freeze({}),M=Object.freeze([]),C=function(e,t,f,n,i){this.states=e,this.id=t,this.char=f,this.negate=n,this.nextStates=i?t:null,this.pattern="",this._regex=void 0,this.handlers=void 0,this.types=void 0};C.prototype.regex=function(){return this._regex||(this._regex=new RegExp(this.pattern)),this._regex},C.prototype.get=function(e,t){var f,n,i,a=this,r=this.nextStates;if(null!==r)if(k(r)){for(f=0;f<r.length;f++)if(n=a.states[r[f]],c(n,e,t))return n}else if(i=this.states[r],c(i,e,t))return i},C.prototype.put=function(e,t,f){var n;if(n=this.get(e,t))return n;var i=this.states;return n=new C(i,i.length,e,t,f),i[i.length]=n,null==this.nextStates?this.nextStates=n.id:k(this.nextStates)?this.nextStates.push(n.id):this.nextStates=[this.nextStates,n.id],n},C.prototype.match=function(e){var t,f,n,i=this,a=this.nextStates;if(!a)return[];var r=[];if(k(a))for(t=0;t<a.length;t++)f=i.states[a[t]],u(f,e)&&r.push(f);else n=this.states[a],u(n,e)&&r.push(n);return r};var A=function(e){this.length=0,this.queryParams=e||{}};A.prototype.splice=Array.prototype.splice,A.prototype.slice=Array.prototype.slice,A.prototype.push=Array.prototype.push;var O=function(){this.names=t();var e=[],f=new C(e,0,-1,!0,!1);e[0]=f,this.states=e,this.rootState=f};O.prototype.add=function(e,t){var f,n,i,a,r,o,s=this.rootState,c="^",u=[0,0,0],l=new Array(e.length),_=[],m=!0,h=0;for(f=0;f<e.length;f++){for(a=(i=d(_,(n=e[f]).path,u)).names,r=i.shouldDecodes;h<_.length;h++)4!==(o=_[h]).type&&(m=!1,s=s.put(47,!1,!1),c+="/",s=q[o.type](o,s),c+=E[o.type](o));l[f]={handler:n.handler,names:a,shouldDecodes:r}}m&&(s=s.put(47,!1,!1),c+="/"),s.handlers=l,s.pattern=c+"$",s.types=u;var p;"object"==typeof t&&null!==t&&t.as&&(p=t.as),p&&(this.names[p]={segments:_,handlers:l})},O.prototype.handlersFor=function(e){var t,f,n=this.names[e];if(!n)throw new Error("There is no route named "+e);var i=new Array(n.handlers.length);for(t=0;t<n.handlers.length;t++)f=n.handlers[t],i[t]=f;return i},O.prototype.hasRoute=function(e){return!!this.names[e]},O.prototype.generate=function(e,t){var f,n,i=this.names[e],a="";if(!i)throw new Error("There is no route named "+e);var r=i.segments;for(f=0;f<r.length;f++)4!==(n=r[f]).type&&(a+="/",a+=T[n.type](n,t));return"/"!==a.charAt(0)&&(a="/"+a),t&&t.queryParams&&(a+=this.generateQueryString(t.queryParams)),a},O.prototype.generateQueryString=function(e){var t,f,n,i,a,r,o=[],s=Object.keys(e);for(s.sort(),t=0;t<s.length;t++)if(f=s[t],null!=(n=e[f]))if(i=encodeURIComponent(f),k(n))for(a=0;a<n.length;a++)r=f+"[]="+encodeURIComponent(n[a]),o.push(r);else i+="="+encodeURIComponent(n),o.push(i);return 0===o.length?"":"?"+o.join("&")},O.prototype.parseQueryString=function(e){var t,f,n,i,a,r,o=e.split("&"),s={};for(t=0;t<o.length;t++)f=o[t].split("="),n=h(f[0]),i=n.length,a=!1,r=void 0,1===f.length?r="true":(i>2&&"[]"===n.slice(i-2)&&(a=!0,n=n.slice(0,i-2),s[n]||(s[n]=[])),r=f[1]?h(f[1]):""),a?s[n].push(r):s[n]=r;return s},O.prototype.recognize=function(e){var t,f,n,i,r=[this.rootState],o={},s=!1,d=e.indexOf("#");-1!==d&&(e=e.substr(0,d));var c=e.indexOf("?");-1!==c&&(f=e.substr(c+1,e.length),e=e.substr(0,c),o=this.parseQueryString(f)),"/"!==e.charAt(0)&&(e="/"+e);var u=e;O.ENCODE_AND_DECODE_PATH_SEGMENTS?e=a(e):(e=decodeURI(e),u=decodeURI(u));var h=e.length;for(h>1&&"/"===e.charAt(h-1)&&(e=e.substr(0,h-1),u=u.substr(0,u.length-1),s=!0),n=0;n<e.length&&(r=_(r,e.charCodeAt(n))).length;n++);var p=[];for(i=0;i<r.length;i++)r[i].handlers&&p.push(r[i]);r=l(p);var g=p[0];return g&&g.handlers&&(s&&g.pattern&&"(.+)$"===g.pattern.slice(-5)&&(u+="/"),t=m(g,u,o)),t},O.VERSION="0.3.3",O.ENCODE_AND_DECODE_PATH_SEGMENTS=!0,O.Normalizer={normalizeSegment:r,normalizePath:a,encodePathSegment:o},O.prototype.map=function(e,t){var n=new y;e(f("",n,this.delegate)),i([],n,function(e){t?t(this,e):this.add(e)},this)},e.default=O}),e("router",["exports","route-recognizer","rsvp"],function(e,t,f){"use strict";function n(e){return("object"==typeof e&&null!==e||"function"==typeof e)&&"function"==typeof e.then}function i(e,t){for(var f in t)t.hasOwnProperty(f)&&(e[f]=t[f])}function a(e){var t,f,n=e&&e.length;return n&&n>0&&e[n-1]&&e[n-1].hasOwnProperty("queryParams")?(f=e[n-1].queryParams,t=B.call(e,0,n-1),[t,f]):[e,null]}function r(e){var t,f;for(var n in e)if("number"==typeof e[n])e[n]=""+e[n];else if(H(e[n]))for(t=0,f=e[n].length;t<f;t++)e[n][t]=""+e[n][t]}function o(e,t,f){e.log&&(3===arguments.length?e.log("Transition #"+t+": "+f):(f=t,e.log(f)))}function s(e,t){var f=arguments;return function(n){var i=B.call(f,2);return i.push(n),t.apply(e,i)}}function d(e){return"string"==typeof e||e instanceof String||"number"==typeof e||e instanceof Number}function c(e,t){var f,n;for(f=0,n=e.length;f<n&&!1!==t(e[f]);f++);}function u(e,t,f,n){if(e.triggerEvent)e.triggerEvent(t,f,n);else{var i,a,r,o=n.shift();if(!t){if(f)return;throw new Error("Could not trigger event '"+o+"'. There are no active handlers")}var d=!1;for(i=t.length-1;i>=0;i--)if(a=t[i],r=a.handler){if(r.events&&r.events[o]){if(!0!==r.events[o].apply(r,n))return;d=!0}}else a.handlerPromise.then(s(null,function(e,t,f){f.events[e].apply(f,t)},o,n));if("error"===o&&"UnrecognizedURLError"===n[0].name)throw n[0];if(!d&&!f)throw new Error("Nothing handled the event '"+o+"'.")}}function l(e,t){var f,n,a={all:{},changed:{},removed:{}};i(a.all,t);var o=!1;r(e),r(t);for(var s in e)e.hasOwnProperty(s)&&(t.hasOwnProperty(s)||(o=!0,a.removed[s]=e[s]));for(s in t)if(t.hasOwnProperty(s))if(H(e[s])&&H(t[s]))if(e[s].length!==t[s].length)a.changed[s]=t[s],o=!0;else for(f=0,n=e[s].length;f<n;f++)e[s][f]!==t[s][f]&&(a.changed[s]=t[s],o=!0);else e[s]!==t[s]&&(a.changed[s]=t[s],o=!0);return o&&a}function _(e){return"Router: "+e}function m(e,t){function f(t){e.call(this,t||{})}return f.prototype=V(e.prototype),i(f.prototype,t),f}function h(e,t){if(e){var f="_"+t;return e[f]&&f||e[t]&&t}}function p(e,t,f,n){var i=h(e,t);return i&&e[i].call(e,f,n)}function g(e,t,f){var n=h(e,t);if(n)return 0===f.length?e[n].call(e):1===f.length?e[n].call(e,f[0]):2===f.length?e[n].call(e,f[0],f[1]):e[n].apply(e,f)}function y(){this.handlerInfos=[],this.queryParams={},this.params={}}function b(e){if(!(this instanceof b))return new b(e);var t=Error.call(this,e);Error.captureStackTrace?Error.captureStackTrace(this,b):this.stack=t.stack,this.description=t.description,this.fileName=t.fileName,this.lineNumber=t.lineNumber,this.message=t.message||"TransitionAborted",this.name="TransitionAborted",this.number=t.number,this.code=t.code}function v(e,t,n,i,a){var r,o,s,d=this;if(this.state=n||e.state,this.intent=t,this.router=e,this.data=this.intent&&this.intent.data||{},this.resolvedModels={},this.queryParams={},this.promise=void 0,this.error=void 0,this.params=void 0,this.handlerInfos=void 0,this.targetName=void 0,this.pivotHandler=void 0,this.sequence=void 0,this.isAborted=!1,this.isActive=!0,i)return this.promise=f.Promise.reject(i),void(this.error=i);if(this.isCausedByAbortingTransition=!!a,this.isCausedByInitialTransition=a&&(a.isCausedByInitialTransition||0===a.sequence),n){for(this.params=n.params,this.queryParams=n.queryParams,this.handlerInfos=n.handlerInfos,(r=n.handlerInfos.length)&&(this.targetName=n.handlerInfos[r-1].name),o=0;o<r&&(s=n.handlerInfos[o]).isResolved;++o)this.pivotHandler=s.handler;this.sequence=e.currentSequence++,this.promise=n.resolve(function(){if(d.isAborted)return f.Promise.reject(void 0,_("Transition aborted - reject"))},this).catch(w(d),_("Handle Abort"))}else this.promise=f.Promise.resolve(this.state),this.params={}}function w(e){return function(t){return t.wasAborted||e.isAborted?f.Promise.reject(k(e)):(e.trigger("error",t.error,e,t.handlerWithError),e.abort(),f.Promise.reject(t.error))}}function k(e){return o(e.router,e.sequence,"detected abort."),new b}function x(e){this.initialize(e),this.data=this.data||{}}function q(e){var t,a=e||{};this._handler=G,a.handler&&(t=a.name,this.handlerPromise=f.Promise.resolve(a.handler),n(a.handler)?(this.handlerPromise=this.handlerPromise.then(s(this,this.updateHandler)),a.handler=void 0):a.handler&&(a.handler._handlerName=t)),i(this,a),this.initialize(a)}function E(e,t){if(!e^!t)return!1;if(!e)return!0;for(var f in e)if(e.hasOwnProperty(f)&&e[f]!==t[f])return!1;return!0}function T(e,t){var f=new(0,T.klasses[e])(t||{});return f.factory=T,f}function S(e){if(!(this instanceof S))return new S(e);var t=Error.call(this,e);Error.captureStackTrace?Error.captureStackTrace(this,S):this.stack=t.stack,this.description=t.description,this.fileName=t.fileName,this.lineNumber=t.lineNumber,this.message=t.message||"UnrecognizedURL",this.name="UnrecognizedURLError",this.number=t.number,this.code=t.code}function M(e){var f=e||{};this.getHandler=f.getHandler||this.getHandler,this.getSerializer=f.getSerializer||this.getSerializer,this.updateURL=f.updateURL||this.updateURL,this.replaceURL=f.replaceURL||this.replaceURL,this.didTransition=f.didTransition||this.didTransition,this.willTransition=f.willTransition||this.willTransition,this.delegate=f.delegate||this.delegate,this.triggerEvent=f.triggerEvent||this.triggerEvent,this.log=f.log||this.log,this.dslCallBacks=[],this.state=void 0,this.activeTransition=void 0,this._changedQueryParams=void 0,this.oldState=void 0,this.currentHandlerInfos=void 0,this.state=void 0,this.currentSequence=0,this.recognizer=new t.default,this.reset()}function C(e,t){var f,n=!!this.activeTransition,i=n?this.activeTransition.state:this.state,a=e.applyToState(i,this.recognizer,this.getHandler,t,this.getSerializer),r=l(i.queryParams,a.queryParams);return $(a.handlerInfos,i.handlerInfos)?r&&(f=this.queryParamsTransition(r,n,i,a))?(f.queryParamsOnly=!0,f):this.activeTransition||new v(this):t?void O(this,a):(f=new v(this,e,a,void 0,this.activeTransition),D(a.handlerInfos,i.handlerInfos)&&(f.queryParamsOnly=!0),this.activeTransition&&this.activeTransition.abort(),this.activeTransition=f,f.promise=f.promise.then(function(e){return L(f,e.state)},null,_("Settle transition promise when transition is finalized")),n||F(this,a,f),A(this,a,r),f)}function A(e,t,f){f&&(e._changedQueryParams=f.all,u(e,t.handlerInfos,!0,["queryParamsDidChange",f.changed,f.all,f.removed]),e._changedQueryParams=null)}function O(e,t,f){var n,i,a,r=P(e.state,t);for(n=0,i=r.exited.length;n<i;n++)a=r.exited[n].handler,delete a.context,p(a,"reset",!0,f),p(a,"exit",f);var o=e.oldState=e.state;e.state=t;var s=e.currentHandlerInfos=r.unchanged.slice();try{for(n=0,i=r.reset.length;n<i;n++)a=r.reset[n].handler,p(a,"reset",!1,f);for(n=0,i=r.updatedContext.length;n<i;n++)R(s,r.updatedContext[n],!1,f);for(n=0,i=r.entered.length;n<i;n++)R(s,r.entered[n],!0,f)}catch(t){throw e.state=o,e.currentHandlerInfos=o.handlerInfos,t}e.state.queryParams=U(e,s,t.queryParams,f)}function R(e,t,f,n){function i(i){if(f&&p(i,"enter",n),n&&n.isAborted)throw new b;if(i.context=r,p(i,"contextDidChange"),p(i,"setup",r,n),n&&n.isAborted)throw new b;e.push(t)}var a=t.handler,r=t.context;return a?i(a):t.handlerPromise=t.handlerPromise.then(i),!0}function P(e,t){var f,n,i,a,r,o=e.handlerInfos,s=t.handlerInfos,d={updatedContext:[],exited:[],entered:[],unchanged:[],reset:void 0},c=!1;for(a=0,r=s.length;a<r;a++)f=o[a],n=s[a],f&&f.handler===n.handler||(i=!0),i?(d.entered.push(n),f&&d.exited.unshift(f)):c||f.context!==n.context?(c=!0,d.updatedContext.push(n)):d.unchanged.push(f);for(a=s.length,r=o.length;a<r;a++)d.exited.unshift(o[a]);return d.reset=d.updatedContext.slice(),d.reset.reverse(),d}function N(e,t){var f,n,a,r,o,s,d=e.urlMethod;if(d){var c=e.router,u=t.handlerInfos,l=u[u.length-1].name,_={};for(f=u.length-1;f>=0;--f)n=u[f],i(_,n.params),n.handler.inaccessibleByURL&&(d=null);d&&(_.queryParams=e._visibleQueryParams||t.queryParams,a=c.recognizer.generate(l,_),r=e.isCausedByInitialTransition,o="replace"===d&&!e.isCausedByAbortingTransition,s=e.queryParamsOnly&&"replace"===d,r||o||s?c.replaceURL(a):c.updateURL(a))}}function L(e,t){var n,i,a;try{return o(e.router,e.sequence,"Resolved all models on destination route; finalizing transition."),n=e.router,i=t.handlerInfos,O(n,t,e),e.isAborted?(n.state.handlerInfos=n.currentHandlerInfos,f.Promise.reject(k(e))):(N(e,t,e.intent.url),e.isActive=!1,n.activeTransition=null,u(n,n.currentHandlerInfos,!0,["didTransition"]),n.didTransition&&n.didTransition(n.currentHandlerInfos),o(n,e.sequence,"TRANSITION COMPLETE."),i[i.length-1].handler)}catch(t){throw t instanceof b||(a=e.state.handlerInfos,e.trigger(!0,"error",t,e,a[a.length-1].handler),e.abort()),t}}function j(e,t,f){var n,i=t[0]||"/",a=t[t.length-1],r={};a&&a.hasOwnProperty("queryParams")&&(r=Q.call(t).queryParams);var s;return 0===t.length?(o(e,"Updating query params"),n=e.state.handlerInfos,s=new K({name:n[n.length-1].name,contexts:[],queryParams:r})):"/"===i.charAt(0)?(o(e,"Attempting URL transition to "+i),s=new J({url:i})):(o(e,"Attempting transition to "+i),s=new K({name:t[0],contexts:B.call(t,1),queryParams:r})),e.transitionByIntent(s,f)}function $(e,t){var f,n;if(e.length!==t.length)return!1;for(f=0,n=e.length;f<n;++f)if(e[f]!==t[f])return!1;return!0}function D(e,t){var f,n;if(e.length!==t.length)return!1;for(f=0,n=e.length;f<n;++f){if(e[f].name!==t[f].name)return!1;if(!I(e[f].params,t[f].params))return!1}return!0}function I(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var f,n,i,a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(f=0,n=a.length;f<n;++f)if(i=a[f],e[i]!==t[i])return!1;return!0}function U(e,t,f,n){for(var i in f)f.hasOwnProperty(i)&&null===f[i]&&delete f[i];var a,r,o,s=[];u(e,t,!0,["finalizeQueryParamChange",f,s,n]),n&&(n._visibleQueryParams={});var d={};for(a=0,r=s.length;a<r;++a)o=s[a],d[o.key]=o.value,n&&!1!==o.visible&&(n._visibleQueryParams[o.key]=o.value);return d}function F(e,t,f){var n,i,a,r,o=e.state.handlerInfos,s=[],d=null;for(i=o.length,n=0;n<i;n++){if(a=o[n],!(r=t.handlerInfos[n])||a.name!==r.name){d=n;break}r.isResolved||s.push(a)}null!==d&&o.slice(d,i),u(e,o,!0,["willTransition",f]),e.willTransition&&e.willTransition(o,t.handlerInfos,f)}e.Transition=void 0;var z,B=Array.prototype.slice,H=z=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},V=Object.create||function(e){function t(){}return t.prototype=e,new t};y.prototype={promiseLabel:function(e){var t="";return c(this.handlerInfos,function(e){""!==t&&(t+="."),t+=e.name}),_("'"+t+"': "+e)},resolve:function(e,t){function n(){return f.Promise.resolve(e(),o.promiseLabel("Check if should continue")).catch(function(e){return s=!0,f.Promise.reject(e)},o.promiseLabel("Handle abort"))}function i(e){var f,i=o.handlerInfos[t.resolveIndex].isResolved;return o.handlerInfos[t.resolveIndex++]=e,i||(f=e.handler,p(f,"redirect",e.context,t)),n().then(a,null,o.promiseLabel("Resolve handler"))}function a(){return t.resolveIndex===o.handlerInfos.length?{error:null,state:o}:o.handlerInfos[t.resolveIndex].resolve(n,t).then(i,null,o.promiseLabel("Proceed"))}var r=this.params;c(this.handlerInfos,function(e){r[e.name]=e.params||{}}),(t=t||{}).resolveIndex=0;var o=this,s=!1;return f.Promise.resolve(null,this.promiseLabel("Start transition")).then(a,null,this.promiseLabel("Resolve handler")).catch(function(e){var n=o.handlerInfos,i=t.resolveIndex>=n.length?n.length-1:t.resolveIndex;return f.Promise.reject({error:e,handlerWithError:o.handlerInfos[i].handler,wasAborted:s,state:o})},this.promiseLabel("Handle error"))}},b.prototype=V(Error.prototype),v.prototype={targetName:null,urlMethod:"update",intent:null,pivotHandler:null,resolveIndex:0,resolvedModels:null,state:null,queryParamsOnly:!1,isTransition:!0,isExiting:function(e){var t,f,n,i=this.handlerInfos;for(t=0,f=i.length;t<f;++t)if((n=i[t]).name===e||n.handler===e)return!1;return!0},promise:null,data:null,then:function(e,t,f){return this.promise.then(e,t,f)},catch:function(e,t){return this.promise.catch(e,t)},finally:function(e,t){return this.promise.finally(e,t)},abort:function(){return this.isAborted?this:(o(this.router,this.sequence,this.targetName+": transition was aborted"),this.intent.preTransitionState=this.router.state,this.isAborted=!0,this.isActive=!1,this.router.activeTransition=null,this)},retry:function(){this.abort();var e=this.router.transitionByIntent(this.intent,!1);return null!==this.urlMethod&&e.method(this.urlMethod),e},method:function(e){return this.urlMethod=e,this},trigger:function(e){var t=B.call(arguments);"boolean"==typeof e?t.shift():e=!1,u(this.router,this.state.handlerInfos.slice(0,this.resolveIndex+1),e,t)},followRedirects:function(){var e=this.router;return this.promise.catch(function(t){return e.activeTransition?e.activeTransition.followRedirects():f.Promise.reject(t)})},toString:function(){return"Transition (sequence "+this.sequence+")"},log:function(e){o(this.router,this.sequence,e)}},v.prototype.send=v.prototype.trigger,x.prototype={initialize:null,applyToState:null};var G=Object.freeze({});q.prototype={name:null,getHandler:function(){},fetchHandler:function(){var e=this.getHandler(this.name);if(this.handlerPromise=f.Promise.resolve(e),n(e))this.handlerPromise=this.handlerPromise.then(s(this,this.updateHandler));else if(e)return e._handlerName=this.name,this.handler=e;return this.handler=void 0},_handlerPromise:void 0,params:null,context:null,factory:null,initialize:function(){},log:function(e,t){e.log&&e.log(this.name+": "+t)},promiseLabel:function(e){return _("'"+this.name+"' "+e)},getUnresolved:function(){return this},serialize:function(){return this.params||{}},updateHandler:function(e){return e._handlerName=this.name,this.handler=e},resolve:function(e,t){var n=s(this,this.checkForAbort,e),i=s(this,this.runBeforeModelHook,t),a=s(this,this.getModel,t),r=s(this,this.runAfterModelHook,t),o=s(this,this.becomeResolved,t),d=this;return f.Promise.resolve(this.handlerPromise,this.promiseLabel("Start handler")).then(function(e){return f.Promise.resolve(e).then(n,null,d.promiseLabel("Check for abort")).then(i,null,d.promiseLabel("Before model")).then(n,null,d.promiseLabel("Check if aborted during 'beforeModel' hook")).then(a,null,d.promiseLabel("Model")).then(n,null,d.promiseLabel("Check if aborted in 'model' hook")).then(r,null,d.promiseLabel("After model")).then(n,null,d.promiseLabel("Check if aborted in 'afterModel' hook")).then(o,null,d.promiseLabel("Become resolved"))},function(e){throw e})},runBeforeModelHook:function(e){return e.trigger&&e.trigger(!0,"willResolveModel",e,this.handler),this.runSharedModelHook(e,"beforeModel",[])},runAfterModelHook:function(e,t){var f=this.name;return this.stashResolvedModel(e,t),this.runSharedModelHook(e,"afterModel",[t]).then(function(){return e.resolvedModels[f]},null,this.promiseLabel("Ignore fulfillment value and return model value"))},runSharedModelHook:function(e,t,n){this.log(e,"calling "+t+" hook"),this.queryParams&&n.push(this.queryParams),n.push(e);var i=g(this.handler,t,n);return i&&i.isTransition&&(i=null),f.Promise.resolve(i,this.promiseLabel("Resolve value returned from one of the model hooks"))},getModel:null,checkForAbort:function(e,t){return f.Promise.resolve(e(),this.promiseLabel("Check for abort")).then(function(){return t},null,this.promiseLabel("Ignore fulfillment value and continue"))},stashResolvedModel:function(e,t){e.resolvedModels=e.resolvedModels||{},e.resolvedModels[this.name]=t},becomeResolved:function(e,t){var f=this.serialize(t);return e&&(this.stashResolvedModel(e,t),e.params=e.params||{},e.params[this.name]=f),this.factory("resolved",{context:t,name:this.name,handler:this.handler,params:f})},shouldSupercede:function(e){if(!e)return!0;var t=e.context===this.context;return e.name!==this.name||this.hasOwnProperty("context")&&!t||this.hasOwnProperty("params")&&!E(this.params,e.params)}},Object.defineProperty(q.prototype,"handler",{get:function(){return this._handler!==G?this._handler:this.fetchHandler()},set:function(e){return this._handler=e}}),Object.defineProperty(q.prototype,"handlerPromise",{get:function(){return this._handlerPromise?this._handlerPromise:(this.fetchHandler(),this._handlerPromise)},set:function(e){return this._handlerPromise=e}});var W=m(q,{resolve:function(e,t){return t&&t.resolvedModels&&(t.resolvedModels[this.name]=this.context),f.Promise.resolve(this,this.promiseLabel("Resolve"))},getUnresolved:function(){return this.factory("param",{name:this.name,handler:this.handler,params:this.params})},isResolved:!0}),X=m(q,{getModel:function(e){return this.log(e,this.name+": resolving provided model"),f.Promise.resolve(this.context)},initialize:function(e){this.names=e.names||[],this.context=e.context},serialize:function(e){var t=e||this.context,f=this.names,n=this.serializer||this.handler&&this.handler.serialize,i={};if(d(t))return i[f[0]]=t,i;if(n)return n(t,f);if(1===f.length){var a=f[0];return/_id$/.test(a)?i[a]=t.id:i[a]=t,i}}}),Y=m(q,{initialize:function(e){this.params=e.params||{}},getModel:function(e){var t=this.params;e&&e.queryParams&&(t={},i(t,this.params),t.queryParams=e.queryParams);var f=this.handler,n=h(f,"deserialize")||h(f,"model");return this.runSharedModelHook(e,n,[t])}});T.klasses={resolved:W,param:Y,object:X};var K=m(x,{name:null,pivotHandler:null,contexts:null,queryParams:null,initialize:function(e){this.name=e.name,this.pivotHandler=e.pivotHandler,this.contexts=e.contexts||[],this.queryParams=e.queryParams},applyToState:function(e,t,f,n,i){var r=a([this.name].concat(this.contexts))[0],o=t.handlersFor(r[0]),s=o[o.length-1].handler;return this.applyToHandlers(e,o,f,s,n,null,i)},applyToHandlers:function(e,t,f,n,a,r,o){var s,d,c,u,l,_,m,h,p,g=new y,b=this.contexts.slice(0),v=t.length;if(this.pivotHandler)for(s=0,d=t.length;s<d;++s)if(t[s].handler===this.pivotHandler._handlerName){v=s;break}for(s=t.length-1;s>=0;--s)c=t[s],u=c.handler,l=e.handlerInfos[s],_=null,c.names.length>0?s>=v?_=this.createParamHandlerInfo(u,f,c.names,b,l):(m=o(u),_=this.getHandlerInfoForDynamicSegment(u,f,c.names,b,l,n,s,m)):_=this.createParamHandlerInfo(u,f,c.names,b,l),r&&(_=_.becomeResolved(null,_.context),h=l&&l.context,c.names.length>0&&_.context===h&&(_.params=l&&l.params),_.context=h),p=l,(s>=v||_.shouldSupercede(l))&&(v=Math.min(s,v),p=_),a&&!r&&(p=p.becomeResolved(null,p.context)),g.handlerInfos.unshift(p);if(b.length>0)throw new Error("More context objects were passed than there are dynamic segments for the route: "+n);return a||this.invalidateChildren(g.handlerInfos,v),i(g.queryParams,this.queryParams||{}),g},invalidateChildren:function(e,t){var f,n,i;for(f=t,n=e.length;f<n;++f)i=e[f],e[f]=i.getUnresolved()},getHandlerInfoForDynamicSegment:function(e,t,f,n,i,a,r,o){var s,c;if(n.length>0){if(s=n[n.length-1],d(s))return this.createParamHandlerInfo(e,t,f,n,i);n.pop()}else{if(i&&i.name===e)return i;if(!this.preTransitionState)return i;s=(c=this.preTransitionState.handlerInfos[r])&&c.context}return T("object",{name:e,getHandler:t,serializer:o,context:s,names:f})},createParamHandlerInfo:function(e,t,f,n,i){for(var a,r,o,s={},c=f.length;c--;)if(a=i&&e===i.name&&i.params||{},r=n[n.length-1],o=f[c],d(r))s[o]=""+n.pop();else{if(!a.hasOwnProperty(o))throw new Error("You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route "+e);s[o]=a[o]}return T("param",{name:e,getHandler:t,params:s})}});S.prototype=V(Error.prototype);var J=m(x,{url:null,initialize:function(e){this.url=e.url},applyToState:function(e,t,f){function n(e){if(e&&e.inaccessibleByURL)throw new S(h);return e}var a,r,o,s,d,c,u,l=new y,_=t.recognize(this.url);if(!_)throw new S(this.url);var m=!1,h=this.url;for(c=0,u=_.length;c<u;++c)a=_[c],r=a.handler,o=T("param",{name:r,getHandler:f,params:a.params}),(s=o.handler)?n(s):o.handlerPromise=o.handlerPromise.then(n),d=e.handlerInfos[c],m||o.shouldSupercede(d)?(m=!0,l.handlerInfos[c]=o):l.handlerInfos[c]=d;return i(l.queryParams,_.queryParams),l}}),Q=Array.prototype.pop;M.prototype={map:function(e){this.recognizer.delegate=this.delegate,this.recognizer.map(e,function(e,t){var f,n,i;for(f=t.length-1,n=!0;f>=0&&n;--f)i=t[f],e.add(t,{as:i.handler}),n="/"===i.path||""===i.path||".index"===i.handler.slice(-6)})},hasRoute:function(e){return this.recognizer.hasRoute(e)},getHandler:function(){},getSerializer:function(){},queryParamsTransition:function(e,t,f,n){var i,a=this;return A(this,n,e),!t&&this.activeTransition?this.activeTransition:(i=new v(this),i.queryParamsOnly=!0,f.queryParams=U(this,n.handlerInfos,n.queryParams,i),i.promise=i.promise.then(function(e){return N(i,f,!0),a.didTransition&&a.didTransition(a.currentHandlerInfos),e},null,_("Transition complete")),i)},transitionByIntent:function(e){try{return C.apply(this,arguments)}catch(t){return new v(this,e,null,t)}},reset:function(){this.state&&c(this.state.handlerInfos.slice().reverse(),function(e){p(e.handler,"exit")}),this.oldState=void 0,this.state=new y,this.currentHandlerInfos=null},activeTransition:null,handleURL:function(e){var t=B.call(arguments);return"/"!==e.charAt(0)&&(t[0]="/"+e),j(this,t).method(null)},updateURL:function(){throw new Error("updateURL is not implemented")},replaceURL:function(e){this.updateURL(e)},transitionTo:function(){return j(this,arguments)},intermediateTransitionTo:function(){return j(this,arguments,!0)},refresh:function(e){var t,f,n,i=this.activeTransition,a=i?i.state:this.state,r=a.handlerInfos,s={};for(t=0,f=r.length;t<f;++t)n=r[t],s[n.name]=n.params||{};o(this,"Starting a refresh transition");var d=new K({name:r[r.length-1].name,pivotHandler:e||r[0].handler,contexts:[],queryParams:this._changedQueryParams||a.queryParams||{}}),c=this.transitionByIntent(d,!1);return i&&"replace"===i.urlMethod&&c.method(i.urlMethod),c},replaceWith:function(){return j(this,arguments).method("replace")},generate:function(e){var t,f,n,r,o=a(B.call(arguments,1)),s=o[0],d=o[1],c=new K({name:e,contexts:s}).applyToState(this.state,this.recognizer,this.getHandler,null,this.getSerializer),u={};for(t=0,f=c.handlerInfos.length;t<f;++t)n=c.handlerInfos[t],r=n.serialize(),i(u,r);return u.queryParams=d,this.recognizer.generate(e,u)},applyIntent:function(e,t){var f=new K({name:e,contexts:t}),n=this.activeTransition&&this.activeTransition.state||this.state;return f.applyToState(n,this.recognizer,this.getHandler,null,this.getSerializer)},isActiveIntent:function(e,t,f,n){var a,r=n||this.state,o=r.handlerInfos;if(!o.length)return!1;var s=o[o.length-1].name,d=this.recognizer.handlersFor(s),c=0;for(a=d.length;c<a&&o[c].name!==e;++c);if(c===d.length)return!1;var u=new y;u.handlerInfos=o.slice(0,c+1),d=d.slice(0,c+1);var _=$(new K({name:s,contexts:t}).applyToHandlers(u,d,this.getHandler,s,!0,!0,this.getSerializer).handlerInfos,u.handlerInfos);if(!f||!_)return _;var m={};i(m,f);var h=r.queryParams;for(var p in h)h.hasOwnProperty(p)&&m.hasOwnProperty(p)&&(m[p]=h[p]);return _&&!l(m,f)},isActive:function(e){var t=a(B.call(arguments,1));return this.isActiveIntent(e,t[0],t[1])},trigger:function(){var e=B.call(arguments);u(this,this.currentHandlerInfos,!1,e)},log:null},e.Transition=v,e.default=M}),e("rsvp",["exports","ember-babel","node-module"],function(e,t,f){"use strict";function n(e,t){var f,n;for(f=0,n=e.length;f<n;f++)if(e[f]===t)return f;return-1}function i(e){var t=e._promiseCallbacks;return t||(t=e._promiseCallbacks={}),t}function a(e,t){return 2!==arguments.length?le[e]:void(le[e]=t)}function r(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function o(e){return"function"==typeof e}function s(e){return null!==e&&"object"==typeof e}function d(e){return null!==e&&"object"==typeof e}function c(){setTimeout(function(){var e,t,f;for(e=0;e<pe.length;e++)t=pe[e],f=t.payload,f.guid=f.key+f.id,f.childGuid=f.key+f.childId,f.error&&(f.stack=f.error.stack),le.trigger(t.name,t.payload);pe.length=0},50)}function u(e,t,f){1===pe.push({name:e,payload:{key:t._guidKey,id:t._id,eventName:e,detail:t._result,childId:f&&f._id,label:t._label,timeStamp:he(),error:le["instrument-with-stack"]?new Error(t._label):null}})&&c()}function l(e,t){var f=this;if(e&&"object"==typeof e&&e.constructor===f)return e;var n=new f(m,t);return v(n,e),n}function _(){return new TypeError("A promises callback cannot return that same promise.")}function m(){}function h(e){try{return e.then}catch(e){return ve.error=e,ve}}function p(e,t,f,n){try{e.call(t,f,n)}catch(e){return e}}function g(e,t,f){le.async(function(e){var n=!1,i=p(f,t,function(f){n||(n=!0,t!==f?v(e,f,void 0):k(e,f))},function(t){n||(n=!0,x(e,t))},"Settle: "+(e._label||" unknown promise"));!n&&i&&(n=!0,x(e,i))},e)}function y(e,t){t._state===ye?k(e,t._result):t._state===be?(t._onError=null,x(e,t._result)):q(t,void 0,function(f){t!==f?v(e,f,void 0):k(e,f)},function(t){return x(e,t)})}function b(e,t,f){t.constructor===e.constructor&&f===A&&e.constructor.resolve===l?y(e,t):f===ve?(x(e,ve.error),ve.error=null):o(f)?g(e,t,f):k(e,t)}function v(e,t){e===t?k(e,t):r(t)?b(e,t,h(t)):k(e,t)}function w(e){e._onError&&e._onError(e._result),E(e)}function k(e,t){e._state===ge&&(e._result=t,e._state=ye,0===e._subscribers.length?le.instrument&&u("fulfilled",e):le.async(E,e))}function x(e,t){e._state===ge&&(e._state=be,e._result=t,le.async(w,e))}function q(e,t,f,n){var i=e._subscribers,a=i.length;e._onError=null,i[a]=t,i[a+ye]=f,i[a+be]=n,0===a&&e._state&&le.async(E,e)}function E(e){var t,f=e._subscribers,n=e._state;if(le.instrument&&u(n===ye?"fulfilled":"rejected",e),0!==f.length){var i=void 0,a=void 0,r=e._result;for(t=0;t<f.length;t+=3)i=f[t],a=f[t+n],i?M(n,i,a,r):a(r);e._subscribers.length=0}}function T(){this.error=null}function S(e,t){try{return e(t)}catch(e){return we.error=e,we}}function M(e,t,f,n){var i=o(f),a=void 0,r=void 0;if(i){if((a=S(f,n))===we)r=a.error,a.error=null;else if(a===t)return void x(t,_())}else a=n;t._state!==ge||(i&&void 0===r?v(t,a):void 0!==r?x(t,r):e===ye?k(t,a):e===be&&x(t,a))}function C(e,t){var f=!1;try{t(function(t){f||(f=!0,v(e,t))},function(t){f||(f=!0,x(e,t))})}catch(t){x(e,t)}}function A(e,t,f){var n,i=this,a=i._state;if(a===ye&&!e||a===be&&!t)return le.instrument&&u("chained",i,i),i;i._onError=null;var r=new i.constructor(m,f),o=i._result;return le.instrument&&u("chained",i,r),a===ge?q(i,r,e,t):(n=a===ye?e:t,le.async(function(){return M(a,r,n,o)})),r}function O(e,t,f){return e===ye?{state:"fulfilled",value:f}:{state:"rejected",reason:f}}function R(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function P(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function N(){this.value=void 0}function L(e){try{return e.then}catch(e){return Te.value=e,Te}}function j(e,t,f){try{e.apply(t,f)}catch(e){return Te.value=e,Te}}function $(e,t){var f,n,i,a={},r=e.length,o=new Array(r);for(f=0;f<r;f++)o[f]=e[f];for(n=0;n<t.length;n++)i=t[n],a[i]=o[n+1];return a}function D(e){var t,f=e.length,n=new Array(f-1);for(t=1;t<f;t++)n[t-1]=e[t];return n}function I(e,t){return{then:function(f,n){return e.call(t,f,n)}}}function U(e,f){var n=function(){var t,n,i,a=this,r=arguments.length,o=new Array(r+1),s=!1;for(t=0;t<r;++t){if(n=arguments[t],!s){if((s=B(n))===Se)return i=new Ee(m),x(i,Se.value),i;s&&!0!==s&&(n=I(s,n))}o[t]=n}var d=new Ee(m);return o[r]=function(e,t){e?x(d,e):void 0===f?v(d,t):!0===f?v(d,D(arguments)):me(f)?v(d,$(arguments,f)):v(d,t)},s?z(d,o,e,a):F(d,o,e,a)};return(0,t.defaults)(n,e),n}function F(e,t,f,n){var i=j(f,n,t);return i===Te&&x(e,i.value),e}function z(e,t,f,n){return Ee.all(t).then(function(t){var i=j(f,n,t);return i===Te&&x(e,i.value),e})}function B(e){return!(!e||"object"!=typeof e)&&(e.constructor===Ee||L(e))}function H(e,t){return Ee.all(e,t)}function V(e,t){return me(e)?new Me(Ee,e,t).promise:Ee.reject(new TypeError("Promise.allSettled must be called with an array"),t)}function G(e,t){return Ee.race(e,t)}function W(e,t){return s(e)?new Ae(Ee,e,t).promise:Ee.reject(new TypeError("Promise.hash must be called with an object"),t)}function X(e,t){return s(e)?new Oe(Ee,e,!1,t).promise:Ee.reject(new TypeError("RSVP.hashSettled must be called with an object"),t)}function Y(e){throw setTimeout(function(){throw e}),e}function K(e){var t={resolve:void 0,reject:void 0};return t.promise=new Ee(function(e,f){t.resolve=e,t.reject=f},e),t}function J(e,t,f){return me(e)?o(t)?Ee.all(e,f).then(function(e){var n,i=e.length,a=new Array(i);for(n=0;n<i;n++)a[n]=t(e[n]);return Ee.all(a,f)}):Ee.reject(new TypeError("RSVP.map expects a function as a second argument"),f):Ee.reject(new TypeError("RSVP.map must be called with an array"),f)}function Q(e,t){return Ee.resolve(e,t)}function Z(e,t){return Ee.reject(e,t)}function ee(e,t){return Ee.all(e,t)}function te(e,t){return Ee.resolve(e,t).then(function(e){return ee(e,t)})}function fe(e,t,f){return me(e)||s(e)&&void 0!==e.then?o(t)?(me(e)?ee(e,f):te(e,f)).then(function(e){var n,i=e.length,a=new Array(i);for(n=0;n<i;n++)a[n]=t(e[n]);return ee(a,f).then(function(t){var f,n=new Array(i),a=0;for(f=0;f<i;f++)t[f]&&(n[a]=e[f],a++);return n.length=a,n})}):Ee.reject(new TypeError("RSVP.filter expects function as a second argument"),f):Ee.reject(new TypeError("RSVP.filter must be called with an array or promise"),f)}function ne(e,t){Ie[Re]=e,Ie[Re+1]=t,2===(Re+=2)&&Ue()}function ie(){return void 0!==Pe?function(){Pe(re)}:ae()}function ae(){return function(){return setTimeout(re,1)}}function re(){var e,t,f;for(e=0;e<Re;e+=2)t=Ie[e],f=Ie[e+1],t(f),Ie[e]=void 0,Ie[e+1]=void 0;Re=0}function oe(){le.on.apply(le,arguments)}function se(){le.off.apply(le,arguments)}e.filter=e.async=e.map=e.reject=e.resolve=e.off=e.on=e.configure=e.denodeify=e.defer=e.rethrow=e.hashSettled=e.hash=e.race=e.allSettled=e.all=e.EventTarget=e.Promise=e.cast=e.asap=void 0;var de,ce,ue={mixin:function(e){return e.on=this.on,e.off=this.off,e.trigger=this.trigger,e._promiseCallbacks=void 0,e},on:function(e,t){if("function"!=typeof t)throw new TypeError("Callback must be a function");var f=i(this),a=void 0;(a=f[e])||(a=f[e]=[]),-1===n(a,t)&&a.push(t)},off:function(e,t){var f=i(this),a=void 0,r=void 0;return t?(a=f[e],void(-1!==(r=n(a,t))&&a.splice(r,1))):void(f[e]=[])},trigger:function(e,t,f){var n,a=void 0;if(a=i(this)[e])for(n=0;n<a.length;n++)(0,a[n])(t,f)}},le={instrument:!1};ue.mixin(le);var _e=void 0,me=_e=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},he=Date.now||function(){return(new Date).getTime()},pe=[],ge=void 0,ye=1,be=2,ve=new T,we=new T,ke=function(){function e(e,t,f,n){this._instanceConstructor=e,this.promise=new e(m,n),this._abortOnReject=f,this._init.apply(this,arguments)}return e.prototype._init=function(e,t){var f=t.length||0;this.length=f,this._remaining=f,this._result=new Array(f),this._enumerate(t),0===this._remaining&&k(this.promise,this._result)},e.prototype._enumerate=function(e){var t,f=this.length,n=this.promise;for(t=0;n._state===ge&&t<f;t++)this._eachEntry(e[t],t)},e.prototype._settleMaybeThenable=function(e,t){var f,n,i=this._instanceConstructor,a=i.resolve;a===l?(f=h(e))===A&&e._state!==ge?(e._onError=null,this._settledAt(e._state,t,e._result)):"function"!=typeof f?(this._remaining--,this._result[t]=this._makeResult(ye,t,e)):i===Ee?(n=new i(m),b(n,e,f),this._willSettleAt(n,t)):this._willSettleAt(new i(function(t){return t(e)}),t):this._willSettleAt(a(e),t)},e.prototype._eachEntry=function(e,t){d(e)?this._settleMaybeThenable(e,t):(this._remaining--,this._result[t]=this._makeResult(ye,t,e))},e.prototype._settledAt=function(e,t,f){var n=this.promise;n._state===ge&&(this._abortOnReject&&e===be?x(n,f):(this._remaining--,this._result[t]=this._makeResult(e,t,f),0===this._remaining&&k(n,this._result)))},e.prototype._makeResult=function(e,t,f){return f},e.prototype._willSettleAt=function(e,t){var f=this;q(e,void 0,function(e){return f._settledAt(ye,t,e)},function(e){return f._settledAt(be,t,e)})},e}(),xe="rsvp_"+he()+"-",qe=0,Ee=function(){function e(t,f){this._id=qe++,this._label=f,this._state=void 0,this._result=void 0,this._subscribers=[],le.instrument&&u("created",this),m!==t&&("function"!=typeof t&&R(),this instanceof e?C(this,t):P())}return e.prototype._onError=function(e){var t=this;le.after(function(){t._onError&&le.trigger("error",e,t._label)})},e.prototype.catch=function(e,t){return this.then(void 0,e,t)},e.prototype.finally=function(e,t){var f=this,n=f.constructor;return f.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){throw t})},t)},e}();Ee.cast=l,Ee.all=function(e,t){return me(e)?new ke(this,e,!0,t).promise:this.reject(new TypeError("Promise.all must be called with an array"),t)},Ee.race=function(e,t){var f,n=this,i=new n(m,t);if(!me(e))return x(i,new TypeError("Promise.race must be called with an array")),i;for(f=0;i._state===ge&&f<e.length;f++)q(n.resolve(e[f]),void 0,function(e){return v(i,e)},function(e){return x(i,e)});return i},Ee.resolve=l,Ee.reject=function(e,t){var f=new this(m,t);return x(f,e),f},Ee.prototype._guidKey=xe,Ee.prototype.then=A;var Te=new N,Se=new N,Me=function(e){function f(f,n,i){return(0,t.possibleConstructorReturn)(this,e.call(this,f,n,!1,i))}return(0,t.inherits)(f,e),f}(ke);Me.prototype._makeResult=O;var Ce=Object.prototype.hasOwnProperty,Ae=function(e){function f(f,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments[3];return(0,t.possibleConstructorReturn)(this,e.call(this,f,n,i,a))}return(0,t.inherits)(f,e),f.prototype._init=function(e,t){this._result={},this._enumerate(t),0===this._remaining&&k(this.promise,this._result)},f.prototype._enumerate=function(e){var t,f=this.promise,n=[];for(var i in e)Ce.call(e,i)&&n.push({position:i,entry:e[i]});var a=n.length;this._remaining=a;var r=void 0;for(t=0;f._state===ge&&t<a;t++)r=n[t],this._eachEntry(r.entry,r.position)},f}(ke),Oe=function(e){function f(f,n,i){return(0,t.possibleConstructorReturn)(this,e.call(this,f,n,!1,i))}return(0,t.inherits)(f,e),f}(Ae);Oe.prototype._makeResult=O;var Re=0,Pe=void 0,Ne="undefined"!=typeof window?window:void 0,Le=Ne||{},je=Le.MutationObserver||Le.WebKitMutationObserver,$e="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),De="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Ie=new Array(1e3),Ue=void 0;if(Ue=$e?function(){var e=process.nextTick,t=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);return Array.isArray(t)&&"0"===t[1]&&"10"===t[2]&&(e=setImmediate),function(){return e(re)}}():je?function(){var e=0,t=new je(re),f=document.createTextNode("");return t.observe(f,{characterData:!0}),function(){return f.data=e=++e%2}}():De?function(){var e=new MessageChannel;return e.port1.onmessage=re,function(){return e.port2.postMessage(0)}}():void 0===Ne&&"function"==typeof f.require?function(){var e,t;try{return e=f.require,t=e("vertx"),Pe=t.runOnLoop||t.runOnContext,ie()}catch(e){return ae()}}():ae(),"object"==typeof self)self;else{if("object"!=typeof global)throw new Error("no global: `self` or `global` found");global}le.async=ne,le.after=function(e){return setTimeout(e,0)};var Fe=Q,ze=function(e,t){return le.async(e,t)};if("undefined"!=typeof window&&"object"==typeof window.__PROMISE_INSTRUMENTATION__){ce=window.__PROMISE_INSTRUMENTATION__,a("instrument",!0);for(var Be in ce)ce.hasOwnProperty(Be)&&oe(Be,ce[Be])}var He=(de={asap:ne,cast:Fe,Promise:Ee,EventTarget:ue,all:H,allSettled:V,race:G,hash:W,hashSettled:X,rethrow:Y,defer:K,denodeify:U,configure:a,on:oe,off:se,resolve:Q,reject:Z,map:J},de.async=ze,de.filter=fe,de);e.asap=ne,e.cast=Fe,e.Promise=Ee,e.EventTarget=ue,e.all=H,e.allSettled=V,e.race=G,e.hash=W,e.hashSettled=X,e.rethrow=Y,e.defer=K,e.denodeify=U,e.configure=a,e.on=oe,e.off=se,e.resolve=Q,e.reject=Z,e.map=J,e.async=ze,e.filter=fe,e.default=He}),t("ember")}();var theEmoji={"1f600":{name:"grinning face",unicode_version:6.1,category:"people",order:1,display:1,shortname:":grinning:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f600",fully_qualified:"1f600",non_fully_qualified:"1f600",output:"1f600",default_matches:["1f600"],greedy_matches:["1f600"],decimal:""},keywords:["face","grin"]},"1f603":{name:"smiling face with open mouth",unicode_version:6,category:"people",order:2,display:1,shortname:":smiley:",shortname_alternates:[],ascii:[":D",":-D","=D"],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f603",fully_qualified:"1f603",non_fully_qualified:"1f603",output:"1f603",default_matches:["1f603"],greedy_matches:["1f603"],decimal:""},keywords:["face","mouth","open","smile"]},"1f604":{name:"smiling face with open mouth & smiling eyes",unicode_version:6,category:"people",order:3,display:1,shortname:":smile:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f604",fully_qualified:"1f604",non_fully_qualified:"1f604",output:"1f604",default_matches:["1f604"],greedy_matches:["1f604"],decimal:""},keywords:["eye","face","mouth","open","smile"]},"1f601":{name:"grinning face with smiling eyes",unicode_version:6,category:"people",order:4,display:1,shortname:":grin:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f601",fully_qualified:"1f601",non_fully_qualified:"1f601",output:"1f601",default_matches:["1f601"],greedy_matches:["1f601"],decimal:""},keywords:["eye","face","grin","smile"]},"1f606":{name:"smiling face with open mouth & closed eyes",unicode_version:6,category:"people",order:5,display:1,shortname:":laughing:",shortname_alternates:[":satisfied:"],ascii:[">:)",">;)",">:-)",">=)"],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f606",fully_qualified:"1f606",non_fully_qualified:"1f606",output:"1f606",default_matches:["1f606"],greedy_matches:["1f606"],decimal:""},keywords:["face","laugh","mouth","open","satisfied","smile"]},"1f605":{name:"smiling face with open mouth & cold sweat",unicode_version:6,category:"people",order:6,display:1,shortname:":sweat_smile:",shortname_alternates:[],ascii:["':)","':-)","'=)","':D","':-D","'=D"],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f605",fully_qualified:"1f605",non_fully_qualified:"1f605",output:"1f605",default_matches:["1f605"],greedy_matches:["1f605"],decimal:""},keywords:["cold","face","open","smile","sweat"]},"1f602":{name:"face with tears of joy",unicode_version:6,category:"people",order:7,display:1,shortname:":joy:",shortname_alternates:[],ascii:[":')",":'-)"],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f602",fully_qualified:"1f602",non_fully_qualified:"1f602",output:"1f602",default_matches:["1f602"],greedy_matches:["1f602"],decimal:""},keywords:["face","joy","laugh","tear"]},"1f923":{name:"rolling on the floor laughing",unicode_version:9,category:"people",order:8,display:1,shortname:":rofl:",shortname_alternates:[":rolling_on_the_floor_laughing:"],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f923",fully_qualified:"1f923",non_fully_qualified:"1f923",output:"1f923",default_matches:["1f923"],greedy_matches:["1f923"],decimal:""},keywords:["face","floor","laugh","rolling"]},"263a":{name:"smiling face",unicode_version:1.1,category:"people",order:9,display:1,shortname:":relaxed:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"263a",fully_qualified:"263a-fe0f",non_fully_qualified:"263a",output:"263a-fe0f",default_matches:["263a-fe0f","263a"],greedy_matches:["263a-fe0f","263a"],decimal:""},keywords:["face","outlined","relaxed","smile"]},"1f60a":{name:"smiling face with smiling eyes",unicode_version:6,category:"people",order:10,display:1,shortname:":blush:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f60a",fully_qualified:"1f60a",non_fully_qualified:"1f60a",output:"1f60a",default_matches:["1f60a"],greedy_matches:["1f60a"],decimal:""},keywords:["blush","eye","face","smile"]},"1f607":{name:"smiling face with halo",unicode_version:6,category:"people",order:11,display:1,shortname:":innocent:",shortname_alternates:[],ascii:["O:-)","0:-3","0:3","0:-)","0:)","0;^)","O:)","O;-)","O=)","0;-)","O:-3","O:3"],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f607",fully_qualified:"1f607",non_fully_qualified:"1f607",output:"1f607",default_matches:["1f607"],greedy_matches:["1f607"],decimal:""},keywords:["angel","face","fairy tale","fantasy","halo","innocent","smile"]},"1f642":{name:"slightly smiling face",unicode_version:7,category:"people",order:12,display:1,shortname:":slight_smile:",shortname_alternates:[":slightly_smiling_face:"],ascii:[":)",":-)","=]","=)",":]"],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f642",fully_qualified:"1f642",non_fully_qualified:"1f642",output:"1f642",default_matches:["1f642"],greedy_matches:["1f642"],decimal:""},keywords:["face","smile"]},"1f643":{name:"upside-down face",unicode_version:8,category:"people",order:13,display:1,shortname:":upside_down:",shortname_alternates:[":upside_down_face:"],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f643",fully_qualified:"1f643",non_fully_qualified:"1f643",output:"1f643",default_matches:["1f643"],greedy_matches:["1f643"],decimal:""},keywords:["face","upside-down"]},"1f609":{name:"winking face",unicode_version:6,category:"people",order:14,display:1,shortname:":wink:",shortname_alternates:[],ascii:[";)",";-)","*-)","*)",";-]",";]",";D",";^)"],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f609",fully_qualified:"1f609",non_fully_qualified:"1f609",output:"1f609",default_matches:["1f609"],greedy_matches:["1f609"],decimal:""},keywords:["face","wink"]},"1f60c":{name:"relieved face",unicode_version:6,category:"people",order:15,display:1,shortname:":relieved:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f60c",fully_qualified:"1f60c",non_fully_qualified:"1f60c",output:"1f60c",default_matches:["1f60c"],greedy_matches:["1f60c"],decimal:""},keywords:["face","relieved"]},"1f60d":{name:"smiling face with heart-eyes",unicode_version:6,category:"people",order:16,display:1,shortname:":heart_eyes:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f60d",fully_qualified:"1f60d",non_fully_qualified:"1f60d",output:"1f60d",default_matches:["1f60d"],greedy_matches:["1f60d"],decimal:""},keywords:["eye","face","love","smile"]},"1f618":{name:"face blowing a kiss",unicode_version:6,category:"people",order:17,display:1,shortname:":kissing_heart:",shortname_alternates:[],ascii:[":*",":-*","=*",":^*"],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f618",fully_qualified:"1f618",non_fully_qualified:"1f618",output:"1f618",default_matches:["1f618"],greedy_matches:["1f618"],decimal:""},keywords:["face","kiss"]},"1f617":{name:"kissing face",unicode_version:6.1,category:"people",order:18,display:1,shortname:":kissing:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f617",fully_qualified:"1f617",non_fully_qualified:"1f617",output:"1f617",default_matches:["1f617"],greedy_matches:["1f617"],decimal:""},keywords:["face","kiss"]},"1f619":{name:"kissing face with smiling eyes",unicode_version:6.1,category:"people",order:19,display:1,shortname:":kissing_smiling_eyes:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f619",fully_qualified:"1f619",non_fully_qualified:"1f619",output:"1f619",default_matches:["1f619"],greedy_matches:["1f619"],decimal:""},keywords:["eye","face","kiss","smile"]},"1f61a":{name:"kissing face with closed eyes",unicode_version:6,category:"people",order:20,display:1,shortname:":kissing_closed_eyes:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f61a",fully_qualified:"1f61a",non_fully_qualified:"1f61a",output:"1f61a",default_matches:["1f61a"],greedy_matches:["1f61a"],decimal:""},keywords:["closed","eye","face","kiss"]},"1f60b":{name:"face savouring delicious food",unicode_version:6,category:"people",order:21,display:1,shortname:":yum:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f60b",fully_qualified:"1f60b",non_fully_qualified:"1f60b",output:"1f60b",default_matches:["1f60b"],greedy_matches:["1f60b"],decimal:""},keywords:["delicious","face","savouring","smile","um","yum"]},"1f61c":{name:"face with stuck-out tongue & winking eye",unicode_version:6,category:"people",order:22,display:1,shortname:":stuck_out_tongue_winking_eye:",shortname_alternates:[],ascii:[">:P","X-P"],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f61c",fully_qualified:"1f61c",non_fully_qualified:"1f61c",output:"1f61c",default_matches:["1f61c"],greedy_matches:["1f61c"],decimal:""},keywords:["eye","face","joke","tongue","wink"]},"1f61d":{name:"face with stuck-out tongue & closed eyes",unicode_version:6,category:"people",order:23,display:1,shortname:":stuck_out_tongue_closed_eyes:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f61d",fully_qualified:"1f61d",non_fully_qualified:"1f61d",output:"1f61d",default_matches:["1f61d"],greedy_matches:["1f61d"],decimal:""},keywords:["eye","face","horrible","taste","tongue"]},"1f61b":{name:"face with stuck-out tongue",unicode_version:6.1,category:"people",order:24,display:1,shortname:":stuck_out_tongue:",shortname_alternates:[],ascii:[":P",":-P","=P",":-Þ",":Þ",":-b",":b"],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f61b",fully_qualified:"1f61b",non_fully_qualified:"1f61b",output:"1f61b",default_matches:["1f61b"],greedy_matches:["1f61b"],decimal:""},keywords:["face","tongue"]},"1f911":{name:"money-mouth face",unicode_version:8,category:"people",order:25,display:1,shortname:":money_mouth:",shortname_alternates:[":money_mouth_face:"],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f911",fully_qualified:"1f911",non_fully_qualified:"1f911",output:"1f911",default_matches:["1f911"],greedy_matches:["1f911"],decimal:""},keywords:["face","money","mouth"]},"1f917":{name:"hugging face",unicode_version:8,category:"people",order:26,display:1,shortname:":hugging:",shortname_alternates:[":hugging_face:"],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f917",fully_qualified:"1f917",non_fully_qualified:"1f917",output:"1f917",default_matches:["1f917"],greedy_matches:["1f917"],decimal:""},keywords:["face","hug","hugging"]},"1f913":{name:"nerd face",unicode_version:8,category:"people",order:27,display:1,shortname:":nerd:",shortname_alternates:[":nerd_face:"],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f913",fully_qualified:"1f913",non_fully_qualified:"1f913",output:"1f913",default_matches:["1f913"],greedy_matches:["1f913"],decimal:""},keywords:["face","geek","nerd"]},"1f60e":{name:"smiling face with sunglasses",unicode_version:6,category:"people",order:28,display:1,shortname:":sunglasses:",shortname_alternates:[],ascii:["B-)","B)","8)","8-)","B-D","8-D"],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f60e",fully_qualified:"1f60e",non_fully_qualified:"1f60e",output:"1f60e",default_matches:["1f60e"],greedy_matches:["1f60e"],decimal:""},keywords:["bright","cool","eye","eyewear","face","glasses","smile","sun","sunglasses"]},"1f921":{name:"clown face",unicode_version:9,category:"people",order:29,display:1,shortname:":clown:",shortname_alternates:[":clown_face:"],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f921",fully_qualified:"1f921",non_fully_qualified:"1f921",output:"1f921",default_matches:["1f921"],greedy_matches:["1f921"],decimal:""},keywords:["clown","face"]},"1f920":{name:"cowboy hat face",unicode_version:9,category:"people",order:30,display:1,shortname:":cowboy:",shortname_alternates:[":face_with_cowboy_hat:"],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f920",fully_qualified:"1f920",non_fully_qualified:"1f920",output:"1f920",default_matches:["1f920"],greedy_matches:["1f920"],decimal:""},keywords:["cowboy","cowgirl","face","hat"]},"1f60f":{name:"smirking face",unicode_version:6,category:"people",order:31,display:1,shortname:":smirk:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f60f",fully_qualified:"1f60f",non_fully_qualified:"1f60f",output:"1f60f",default_matches:["1f60f"],greedy_matches:["1f60f"],decimal:""},keywords:["face","smirk"]},"1f612":{name:"unamused face",unicode_version:6,category:"people",order:32,display:1,shortname:":unamused:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f612",fully_qualified:"1f612",non_fully_qualified:"1f612",output:"1f612",default_matches:["1f612"],greedy_matches:["1f612"],decimal:""},keywords:["face","unamused","unhappy"]},"1f61e":{name:"disappointed face",unicode_version:6,category:"people",order:33,display:1,shortname:":disappointed:",shortname_alternates:[],ascii:[">:[",":-(",":(",":-[",":[","=("],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f61e",fully_qualified:"1f61e",non_fully_qualified:"1f61e",output:"1f61e",default_matches:["1f61e"],greedy_matches:["1f61e"],decimal:""},keywords:["disappointed","face"]},"1f614":{name:"pensive face",unicode_version:6,category:"people",order:34,display:1,shortname:":pensive:",shortname_alternates:[],ascii:[],diversity:null,diversities:[],gender:null,genders:[],code_points:{base:"1f614",fully_qualified:"1f6
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment