text: function setup_timer(e,n,t){t.on("clear",function(){e.timer=-1}),function t(){n(function(){e.timer++,t()},1e3)}()}function advanced_terminal(t,e){var n=[],r=document.getElementById("terminal"),i='<span class="prompt">root@eduroam.cz:~$ </span>';t.on("log_ok",function(t){n.length==e&&n.splice(0,1),n.push(i+'<span class="ok">'+t+"</span>"),r.innerHTML=n.join("\n")}),t.on("log_fail",function(t){n.length==e&&n.splice(0,1),n.push(i+'<span class="fail">'+t+"</span>"),r.innerHTML=n.join("\n")})}function graph_pres_new(t,e,n,r){var i=80,o=0,a=220,s=70,u=$(window).width()/2-100,c=680-i-a,f=["#4682b4","#ea3933"],l=d3.scaleBand().range([0,u]).padding(.1),h=d3.scaleLinear().range([c,0]),p=d3.select(e);(p=p.attr("width",u+s+o).attr("height",c+i+a).append("g").attr("transform","translate("+s+","+i+")")).append("text").attr("x",u/2-5).attr("y",0-i/2).attr("text-anchor","middle").style("font-size","36px").style("fill","white").text(t),p.append("text").attr("transform","rotate(-90)").attr("y",0-s).attr("x",0-c/2).attr("dy","1em").style("font-size","24px").style("fill","white").style("text-anchor","middle").text("počet autentizací");p.append("g").attr("transform","translate(0,"+c+")").attr("class","x axis").style("fill","white").style("font-size","18px"),p.append("g").attr("class","y axis").style("fill","white").style("font-size","18px");var d=p.append("g").attr("transform","translate(0,530)").attr("class","legend").attr("width",200).attr("height",110).selectAll(".legend").data([0,1]).enter().append("g");d.append("rect").attr("width",40).attr("height",40).attr("y",function(t,e){return 45*e-10}).attr("x",function(t,e){return 0}).style("fill",function(t,e){return f[e]}).style("opacity","0.8"),d.append("text").attr("width",40).attr("height",40).attr("y",function(t,e){return 40*e+18}).attr("x",function(t,e){return 45}).style("font-size","24px").style("fill","white").text(function(t){return 0==t?"úspěšné autentizace":"neúspěšné autentizace"}),r.on(n,function(t){var e=p.transition().duration(400),n=function(t,e){return 30*e},r=d3.transition().duration(400);l.domain(t.map(function(t){return t[0]})),h.domain([0,d3.max(t,function(t){return t[1].ok+t[1].fail})]);var i=p.selectAll(".bar").data(t,function(t){return t[0]});i.exit().attr("class","remove").selectAll("rect").transition(r).attr("y",h(0)).attr("height",0).remove(),i.exit().transition(r).remove(),(i=i.enter().append("g").attr("class","bar")).append("rect").attr("class","blue").attr("y",function(t){return h(0)}).attr("width",l.bandwidth()).attr("x",function(t){return l(t[0])}),i.append("rect").attr("class","red").attr("y",function(t){return h(t[1].fail)}).attr("width",l.bandwidth()).attr("x",function(t){return l(t[0])}),i=i.merge(i),p.selectAll(".bar").selectAll(".blue").data(function(t){return[t]}),p.selectAll(".bar").selectAll(".red").data(function(t){return[t]}),e.selectAll(".bar rect").delay(n).attr("width",l.bandwidth()).attr("x",function(t){return l(t[0])}),e.selectAll(".blue").delay(n).attr("y",function(t){return h(t[1].ok)}).attr("height",function(t){return h(0)-h(t[1].ok)}),e.selectAll(".red").delay(n).attr("y",function(t){return 0+h(t[1].ok)-h(0)+h(t[1].fail)}).attr("height",function(t){return h(0)-h(t[1].fail)}),e.select(".x.axis").call(d3.axisBottom(l)).selectAll("text").attr("dy",".35em").attr("y",20).attr("x",0).attr("transform","rotate(45)").style("text-anchor","start").delay(n),e.select(".y.axis").call(d3.axisLeft(h).tickSize(-u,0,0).tickFormat(d3.format("d"))).delay(n)})}!function(D){"use strict";function h(r){return function(){var t,e=arguments[0];for(t="["+(r?r+":":"")+e+"] http://errors.angularjs.org/1.5.8/"+(r?r+"/":"")+e,e=1;e<arguments.length;e++){var n;t=t+(1==e?"?":"&")+"p"+(e-1)+"=",t+=encodeURIComponent(n="function"==typeof(n=arguments[e])?n.toString().replace(/ \{[\s\S]*$/,""):void 0===n?"undefined":"string"!=typeof n?JSON.stringify(n):n)}return Error(t)}}function A(t){if(null==t||u(t))return!1;if(Hn(t)||ut(t)||En&&t instanceof En)return!0;var e="length"in Object(t)&&t.length;return b(e)&&(0<=e&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function it(t,e,n){var r,i;if(t)if(ct(t))for(r in t)"prototype"==r||"length"==r||"name"==r||t.hasOwnProperty&&!t.hasOwnProperty(r)||e.call(n,t[r],r,t);else if(Hn(t)||A(t)){var o="object"!=typeof t;for(r=0,i=t.length;r<i;r++)(o||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==it)t.forEach(e,n,t);else if(s(t))for(r in t)e.call(n,t[r],r,t);else if("function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else for(r in t)On.call(t,r)&&e.call(n,t[r],r,t);return t}function o(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function v(n){return function(t,e){n(e,t)}}function p(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var a=e[i];if(st(a)||ct(a))for(var s=Object.keys(a),u=0,c=s.length;u<c;u++){var f=s[u],l=a[f];n&&st(l)?y(l)?t[f]=new Date(l.valueOf()):g(l)?t[f]=new RegExp(l):l.nodeName?t[f]=l.cloneNode(!0):m(l)?t[f]=l.clone():(st(t[f])||(t[f]=Hn(l)?[]:{}),p(t[f],[l],!0)):t[f]=l}}return r?t.$$hashKey=r:delete t.$$hashKey,t}function ot(t){return p(t,jn.call(arguments,1),!1)}function t(t){return p(t,jn.call(arguments,1),!0)}function d(t){return parseInt(t,10)}function R(t,e){return ot(Object.create(t),e)}function j(){}function L(t){return t}function _(t){return function(){return t}}function f(t){return ct(t.toString)&&t.toString!==Bn}function at(t){return void 0===t}function q(t){return void 0!==t}function st(t){return null!==t&&"object"==typeof t}function s(t){return null!==t&&"object"==typeof t&&!Fn(t)}function ut(t){return"string"==typeof t}function b(t){return"number"==typeof t}function y(t){return"[object Date]"===Bn.call(t)}function ct(t){return"function"==typeof t}function g(t){return"[object RegExp]"===Bn.call(t)}function u(t){return t&&t.window===t}function ft(t){return t&&t.$evalAsync&&t.$watch}function lt(t){return"boolean"==typeof t}function m(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function ht(t){return Dn(t.nodeName||t[0]&&t[0].nodeName)}function pt(t,e){var n=t.indexOf(e);return 0<=n&&t.splice(n,1),n}function k(t,n){function r(t,e){var n,r=e.$$hashKey;if(Hn(t)){n=0;for(var i=t.length;n<i;n++)e.push(o(t[n]))}else if(s(t))for(n in t)e[n]=o(t[n]);else if(t&&"function"==typeof t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&(e[n]=o(t[n]));else for(n in t)On.call(t,n)&&(e[n]=o(t[n]));return r?e.$$hashKey=r:delete e.$$hashKey,e}function o(t){if(!st(t))return t;if(-1!==(e=i.indexOf(t)))return a[e];if(u(t)||ft(t))throw In("cpws");var e=!1,n=function(t){switch(Bn.call(t)){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 t.constructor(o(t.buffer),t.byteOffset,t.length);case"[object ArrayBuffer]":if(t.slice)return t.slice(0);var e=new ArrayBuffer(t.byteLength);return new Uint8Array(e).set(new Uint8Array(t)),e;case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":return(e=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0])).lastIndex=t.lastIndex,e;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(ct(t.cloneNode))return t.cloneNode(!0)}(t);return void 0===n&&(n=Hn(t)?[]:Object.create(Fn(t)),e=!0),i.push(t),a.push(n),e?r(t,n):n}var e,i=[],a=[];if(n){if((e=n)&&b(e.length)&&Vn.test(Bn.call(e))||"[object ArrayBuffer]"===Bn.call(n))throw In("cpta");if(t===n)throw In("cpi");return Hn(n)?n.length=0:it(n,function(t,e){"$$hashKey"!==e&&delete n[e]}),i.push(t),a.push(n),r(t,n)}return o(t)}function dt(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var n,r=typeof t;if(r==typeof e&&"object"==r){if(!Hn(t)){if(y(t))return!!y(e)&&dt(t.getTime(),e.getTime());if(g(t))return!!g(e)&&t.toString()==e.toString();if(ft(t)||ft(e)||u(t)||u(e)||Hn(e)||y(e)||g(e))return!1;for(n in r=bt(),t)if("$"!==n.charAt(0)&&!ct(t[n])){if(!dt(t[n],e[n]))return!1;r[n]=!0}for(n in e)if(!(n in r)&&"$"!==n.charAt(0)&&q(e[n])&&!ct(e[n]))return!1;return!0}if(!Hn(e))return!1;if((r=t.length)==e.length){for(n=0;n<r;n++)if(!dt(t[n],e[n]))return!1;return!0}}return!1}function S(t,e,n){return t.concat(jn.call(e,n))}function gt(t,e){var n=2<arguments.length?jn.call(arguments,2):[];return!ct(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,S(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function n(t,e){var n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:u(e)?n="$WINDOW":e&&D.document===e?n="$DOCUMENT":ft(e)&&(n="$SCOPE"),n}function C(t,e){if(!at(t))return b(e)||(e=e?2:null),JSON.stringify(t,n,e)}function i(t){return ut(t)?JSON.parse(t):t}function l(t,e){t=t.replace(Jn,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function x(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return n*=(e=l(e,r))-r,(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}function vt(t){t=En(t).clone();try{t.empty()}catch(t){}var e=En("<div>").append(t).html();try{return t[0].nodeType===tr?Dn(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Dn(e)})}catch(t){return Dn(e)}}function a(t){try{return decodeURIComponent(t)}catch(t){}}function c(t){var i={};return it((t||"").split("&"),function(t){var e,n,r;t&&(n=t=t.replace(/\+/g,"%20"),-1!==(e=t.indexOf("="))&&(n=t.substring(0,e),r=t.substring(e+1)),q(n=a(n))&&(r=!q(r)||a(r),On.call(i,n)?Hn(i[n])?i[n].push(r):i[n]=[i[n],r]:i[n]=r))}),i}function r(t){var n=[];return it(t,function(t,e){Hn(t)?it(t,function(t){n.push(w(e,!0)+(!0===t?"":"="+w(t,!0)))}):n.push(w(e,!0)+(!0===t?"":"="+w(t,!0)))}),n.length?n.join("&"):""}function $(t){return w(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function w(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function e(n,t){var r,i,e={};it(Zn,function(t){t+="app",!r&&n.hasAttribute&&n.hasAttribute(t)&&(i=(r=n).getAttribute(t))}),it(Zn,function(t){var e;t+="app",!r&&(e=n.querySelector("["+t.replace(":","\\:")+"]"))&&(i=(r=e).getAttribute(t))}),r&&(e.strictDi=null!==function(t,e){var n,r,i=Zn.length;for(r=0;r<i;++r)if(n=Zn[r]+e,ut(n=t.getAttribute(n)))return n;return null}(r,"strict-di"),t(r,i?[i]:[],e))}function M(e,n,r){st(r)||(r={}),r=ot({strictDi:!1},r);var i=function(){if((e=En(e)).injector()){var t=e[0]===D.document?"document":vt(e);throw In("btstrpd",t.replace(/</,"&lt;").replace(/>/,"&gt;"))}return(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng"),(t=Et(n,r.strictDi)).invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),t},t=/^NG_ENABLE_DEBUG_INFO!/,o=/^NG_DEFER_BOOTSTRAP!/;if(D&&t.test(D.name)&&(r.debugInfoEnabled=!0,D.name=D.name.replace(t,"")),D&&!o.test(D.name))return i();D.name=D.name.replace(o,""),Un.resumeBootstrap=function(t){return it(t,function(t){n.push(t)}),i()},ct(Un.resumeDeferredBootstrap)&&Un.resumeDeferredBootstrap()}function E(){D.name="NG_ENABLE_DEBUG_INFO!"+D.name,D.location.reload()}function T(t){if(!(t=Un.element(t).injector()))throw In("test");return t.get("$$testability")}function yt(t,n){return n=n||"_",t.replace(Kn,function(t,e){return(e?n:"")+t.toLowerCase()})}function mt(t,e,n){if(!t)throw In("areq",e||"?",n||"required");return t}function N(t,e,n){return n&&Hn(t)&&(t=t[t.length-1]),mt(ct(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function B(t,e){if("hasOwnProperty"===t)throw In("badname",e)}function P(t,e,n){if(!e)return t;for(var r,i=t,o=(e=e.split(".")).length,a=0;a<o;a++)r=e[a],t&&(t=(i=t)[r]);return!n&&ct(t)?gt(i,t):t}function O(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(e||t[i]!==n)&&(e||(e=En(jn.call(t,0,i))),e.push(n));return e||t}function bt(){return Object.create(null)}function F(t,e){if(Hn(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(st(t))for(n in e=e||{},t)"$"===n.charAt(0)&&"$"===n.charAt(1)||(e[n]=t[n]);return e||t}function I(t){return t.replace(ir,function(t,e,n,r){return r?n.toUpperCase():n}).replace(or,"Moz$1")}function U(t){return 1===(t=t.nodeType)||!t||9===t}function z(t,e){var n,r,i=e.createDocumentFragment(),o=[];if(cr.test(t)){for(n=i.appendChild(e.createElement("div")),r=(fr.exec(t)||["",""])[1].toLowerCase(),r=hr[r]||hr._default,n.innerHTML=r[1]+t.replace(lr,"<$1></$2>")+r[2],r=r[0];r--;)n=n.lastChild;o=S(o,n.childNodes),(n=i.firstChild).textContent=""}else o.push(e.createTextNode(t));return i.textContent="",i.innerHTML="",it(o,function(t){i.appendChild(t)}),i}function xt(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}function H(t){if(t instanceof H)return t;var e,n;if(ut(t)&&(t=Wn(t),e=!0),!(this instanceof H)){if(e&&"<"!=t.charAt(0))throw sr("nosel");return new H(t)}e&&(e=D.document,t=(n=ur.exec(t))?[e.createElement(n[1])]:(n=z(t,e))?n.childNodes:[]);Q(this,t)}function $t(t){return t.cloneNode(!0)}function V(t,e){if(e||Y(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r<i;r++)Y(n[r])}function W(n,t,r,e){if(q(e))throw sr("offargs");var i=(e=X(n))&&e.events,o=e&&e.handle;if(o)if(t){var a=function(t){var e=i[t];q(r)&&pt(e||[],r),q(r)&&e&&0<e.length||(n.removeEventListener(t,o,!1),delete i[t])};it(t.split(" "),function(t){a(t),ar[t]&&a(ar[t])})}else for(t in i)"$destroy"!==t&&n.removeEventListener(t,o,!1),delete i[t]}function Y(t,e){var n=t.ng339,r=n&&nr[n];r&&(e?delete r.data[e]:(r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),W(t)),delete nr[n],t.ng339=void 0))}function X(t,e){var n=(n=t.ng339)&&nr[n];return e&&!n&&(t.ng339=n=++rr,n=nr[n]={events:{},data:{},handle:void 0}),n}function G(t,e,n){if(U(t)){var r=q(n),i=!r&&e&&!st(e),o=!e;if(t=(t=X(t,!i))&&t.data,r)t[e]=n;else{if(o)return t;if(i)return t&&t[e];ot(t,e)}}}function J(t,e){return!!t.getAttribute&&-1<(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")}function Z(e,t){t&&e.setAttribute&&it(t.split(" "),function(t){e.setAttribute("class",Wn((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Wn(t)+" "," ")))})}function K(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");it(e.split(" "),function(t){t=Wn(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",Wn(n))}}function Q(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function tt(t,e){return et(t,"$"+(e||"ngController")+"Controller")}function et(t,e,n){for(9==t.nodeType&&(t=t.documentElement),e=Hn(e)?e:[e];t;){for(var r=0,i=e.length;r<i;r++)if(q(n=En.data(t,e[r])))return n;t=t.parentNode||11===t.nodeType&&t.host}}function nt(t){for(V(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function rt(t,e){e||V(t);var n=t.parentNode;n&&n.removeChild(t)}function wt(t,e){var n=gr[e.toLowerCase()];return n&&vr[ht(t)]&&n}function _t(t,e,n){n.call(t,e)}function Ct(t,e,n){var r=e.relatedTarget;r&&(r===t||pr.call(t,r))||n.call(t,e)}function kt(){this.$get=function(){return ot(H,{hasClass:function(t,e){return t.attr&&(t=t[0]),J(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),K(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),Z(t,e)}})}}function St(t,e){var n=t&&t.$$hashKey;return n?("function"==typeof n&&(n=t.$$hashKey()),n):"function"==(n=typeof t)||"object"==n&&null!==t?t.$$hashKey=n+":"+(e||function(){return++zn})():n+":"+t}function Mt(t,e){if(e){var n=0;this.nextUid=function(){return++n}}it(t,this.put,this)}function At(t){return(t=(Function.prototype.toString.call(t)+" ").replace(_r,"")).match(br)||t.match(xr)}function Et(t,u){function e(n){return function(t,e){if(!st(t))return n(t,e);it(t,v(n))}}function o(t,e){if(B(t,"service"),(ct(e)||Hn(e))&&(e=l.instantiate(e)),!e.$get)throw Cr("pget",t);return f[t+"Provider"]=e}function n(t,e,n){return o(t,{$get:!1!==n?(r=t,i=e,function(){var t=p.invoke(i,this);if(at(t))throw Cr("undef",r);return t}):e});var r,i}function r(n,r){function s(e,t){if(n.hasOwnProperty(e)){if(n[e]===a)throw Cr("cdep",e+" <- "+c.join(" <- "));return n[e]}try{return c.unshift(e),n[e]=a,n[e]=r(e,t)}catch(t){throw n[e]===a&&delete n[e],t}finally{c.shift()}}function i(t,e,n){for(var r=[],i=0,o=(t=Et.$$annotate(t,u,n)).length;i<o;i++){var a=t[i];if("string"!=typeof a)throw Cr("itkn",a);r.push(e&&e.hasOwnProperty(a)?e[a]:s(a,n))}return r}return{invoke:function(t,e,n,r){return"string"==typeof n&&(r=n,n=null),n=i(t,n,r),Hn(t)&&(t=t[t.length-1]),(r=!(An<=11)&&("function"==typeof t&&/^(?:class\b|constructor\()/.test(Function.prototype.toString.call(t)+" ")))?(n.unshift(null),new(Function.prototype.bind.apply(t,n))):t.apply(e,n)},instantiate:function(t,e,n){var r=Hn(t)?t[t.length-1]:t;return(t=i(t,e,n)).unshift(null),new(Function.prototype.bind.apply(r,t))},get:s,annotate:Et.$$annotate,has:function(t){return f.hasOwnProperty(t+"Provider")||n.hasOwnProperty(t)}}}u=!0===u;var a={},c=[],s=new Mt([],!0),f={$provide:{provider:e(o),factory:e(n),service:e(function(t,e){return n(t,["$injector",function(t){return t.instantiate(e)}])}),value:e(function(t,e){return n(t,_(e),!1)}),constant:e(function(t,e){B(t,"constant"),f[t]=e,i[t]=e}),decorator:function(t,e){var n=l.get(t+"Provider"),r=n.$get;n.$get=function(){var t=p.invoke(r,n);return p.invoke(e,null,{$delegate:t})}}}},l=f.$injector=r(f,function(t,e){throw Un.isString(e)&&c.push(e),Cr("unpr",c.join(" <- "))}),i={},h=r(i,function(t,e){var n=l.get(t+"Provider",e);return p.invoke(n.$get,n,void 0,t)}),p=h;f.$injectorProvider={$get:_(h)};var d=function n(t){mt(at(t)||Hn(t),"modulesToLoad","not an array");var r,i=[];return it(t,function(e){function t(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=l.get(r[0]);i[r[1]].apply(i,r[2])}}if(!s.get(e)){s.put(e,!0);try{ut(e)?(r=Nn(e),i=i.concat(n(r.requires)).concat(r._runBlocks),t(r._invokeQueue),t(r._configBlocks)):ct(e)?i.push(l.invoke(e)):Hn(e)?i.push(l.invoke(e)):N(e,"module")}catch(t){throw Hn(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1==t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Cr("modulerr",e,t.stack||t.message||t)}}}),i}(t);return(p=h.get("$injector")).strictDi=u,it(d,function(t){t&&p.invoke(t)}),p}function Tt(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(n,i,o){function a(t){var e;t?(t.scrollIntoView(),ct(e=s.yOffset)?e=e():m(e)?(e=e[0],e="fixed"!==n.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom):b(e)||(e=0),e&&(t=t.getBoundingClientRect().top,n.scrollBy(0,t-e))):n.scrollTo(0,0)}function s(t){var e,n,r;(t=ut(t)?t:i.hash())?(e=u.getElementById(t))?a(e):(n=u.getElementsByName(t),r=null,Array.prototype.some.call(n,function(t){if("a"===ht(t))return r=t,!0}),(e=r)?a(e):"top"===t&&a(null)):a(null)}var u=n.document;return t&&o.$watch(function(){return i.hash()},function(t,e){var n,r;t===e&&""===t||(n=function(){o.$evalAsync(s)},"complete"===(r=r||D).document.readyState?r.setTimeout(n):En(r).on("load",n))}),s}]}function Nt(t,e){return t||e?t?e?(Hn(t)&&(t=t.join(" ")),Hn(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function Pt(t){return st(t)?t:{}}function Ot(o,t,e,a){function r(t){try{t.apply(null,jn.call(arguments,1))}finally{if(0===--d)for(;g.length;)try{g.pop()()}catch(t){e.error(t)}}}function n(){x=null,s(),i()}function s(){dt(v=at(v=$())?null:v,C)&&(v=C),C=v}function i(){m===u.url()&&y===v||(m=u.url(),y=v,it(w,function(t){t(u.url(),v)}))}var u=this,c=o.location,f=o.history,l=o.setTimeout,h=o.clearTimeout,p={};u.isMock=!1;var d=0,g=[];u.$$completeOutstandingRequest=r,u.$$incOutstandingRequestCount=function(){d++},u.notifyWhenNoOutstandingRequests=function(t){0===d?t():g.push(t)};var v,y,m=c.href,b=t.find("base"),x=null,$=a.history?function(){try{return f.state}catch(t){}}:j;s(),y=v,u.url=function(t,e,n){if(at(n)&&(n=null),c!==o.location&&(c=o.location),f!==o.history&&(f=o.history),t){var r=y===n;if(m===t&&(!a.history||r))return u;var i=m&&ue(m)===ue(t);return m=t,y=n,!a.history||i&&r?(i||(x=t),e?c.replace(t):i?(e=c,n=-1===(n=t.indexOf("#"))?"":t.substr(n),e.hash=n):c.href=t,c.href!==t&&(x=t)):(f[e?"replaceState":"pushState"](n,"",t),s(),y=v),x&&(x=t),u}return x||c.href.replace(/%27/g,"'")},u.state=function(){return v};var w=[],_=!1,C=null;u.onUrlChange=function(t){return _||(a.history&&En(o).on("popstate",n),En(o).on("hashchange",n),_=!0),w.push(t),t},u.$$applicationDestroyed=function(){En(o).off("hashchange popstate",n)},u.$$checkUrlChange=i,u.baseHref=function(){var t=b.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},u.defer=function(t,e){var n;return d++,n=l(function(){delete p[n],r(t)},e||0),p[n]=!0,n},u.defer.cancel=function(t){return!!p[t]&&(delete p[t],h(t),r(j),!0)}}function Dt(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new Ot(t,r,e,n)}]}function Rt(){this.$get=function(){function t(t,e){function n(t){t!=c&&(f?f==t&&(f=t.n):f=t,r(t.n,t.p),r(t,c),(c=t).n=null)}function r(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in l)throw h("$cacheFactory")("iid",t);var i=0,o=ot({},e,{id:t}),a=bt(),s=e&&e.capacity||Number.MAX_VALUE,u=bt(),c=null,f=null;return l[t]={put:function(t,e){if(!at(e)){if(s<Number.MAX_VALUE)n(u[t]||(u[t]={key:t}));return t in a||i++,a[t]=e,s<i&&this.remove(f.key),e}},get:function(t){if(s<Number.MAX_VALUE){var e=u[t];if(!e)return;n(e)}return a[t]},remove:function(t){if(s<Number.MAX_VALUE){var e=u[t];if(!e)return;e==c&&(c=e.p),e==f&&(f=e.n),r(e.n,e.p),delete u[t]}t in a&&(delete a[t],i--)},removeAll:function(){a=bt(),i=0,u=bt(),c=f=null},destroy:function(){u=o=a=null,delete l[t]},info:function(){return ot({},o,{size:i})}}}var l={};return t.info=function(){var n={};return it(l,function(t,e){n[e]=t.info()}),n},t.get=function(t){return l[t]},t}}function jt(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function Lt(n,e){function E(t,r,i){var o=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,a=bt();return it(t,function(t,e){if(t in s)a[e]=s[t];else{var n=t.match(o);if(!n)throw Pr("iscp",r,e,t,i?"controller bindings definition":"isolate scope definition");a[e]={mode:n[1][0],collection:"*"===n[2],optional:"?"===n[3],attrName:n[4]||e},n[4]&&(s[t]=a[e])}}),a}var T={},N=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,P=/(([\w\-]+)(?:\:([^;]+))?;?)/,c=function(t){var e,n={};for(t=t.split(","),e=0;e<t.length;e++)n[t[e]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),p=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,d=/^(on[a-z]+|formaction)$/,s=bt();this.directive=function t(u,e){return B(u,"directive"),ut(u)?(function(t){var e=t.charAt(0);if(!e||e!==Dn(e))throw Pr("baddir",t);if(t!==t.trim())throw Pr("baddir",t)}(u),mt(e,"directiveFactory"),T.hasOwnProperty(u)||(T[u]=[],n.factory(u+"Directive",["$injector","$exceptionHandler",function(o,a){var s=[];return it(T[u],function(t,e){try{var n=o.invoke(t);ct(n)?n={compile:_(n)}:!n.compile&&n.link&&(n.compile=_(n.link)),n.priority=n.priority||0,n.index=e,n.name=n.name||u,n.require=(i=(r=n).require||r.controller&&r.name,!Hn(i)&&st(i)&&it(i,function(t,e){var n=t.match(p);t.substring(n[0].length)||(i[e]=n[0]+e)}),i),n.restrict=n.restrict||"EA",n.$$moduleName=t.$$moduleName,s.push(n)}catch(t){a(t)}var r,i}),s}])),T[u].push(e)):it(u,v(t)),this},this.component=function(t,i){function n(r){function t(n){return ct(n)||Hn(n)?function(t,e){return r.invoke(n,this,{$element:t,$attrs:e})}:n}var e=i.template||i.templateUrl?i.template:"",n={controller:o,controllerAs:Ut(i.controller)||i.controllerAs||"$ctrl",template:t(e),templateUrl:t(i.templateUrl),transclude:i.transclude,scope:{},bindToController:i.bindings||{},restrict:"E",require:i.require};return it(i,function(t,e){"$"===e.charAt(0)&&(n[e]=t)}),n}var o=i.controller||function(){};return it(i,function(t,e){"$"===e.charAt(0)&&(n[e]=t,ct(o)&&(o[e]=t))}),n.$inject=["$injector"],this.directive(t,n)},this.aHrefSanitizationWhitelist=function(t){return q(t)?(e.aHrefSanitizationWhitelist(t),this):e.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return q(t)?(e.imgSrcSanitizationWhitelist(t),this):e.imgSrcSanitizationWhitelist()};var g=!0;this.debugInfoEnabled=function(t){return q(t)?(g=t,this):g};var O=10;this.onChangesTtl=function(t){return arguments.length?(O=t,this):O},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(y,m,B,t,v,F,o,r,i,f){function a(){try{if(!--e)throw s=void 0,Pr("infchng",O);o.$apply(function(){for(var e=[],t=0,n=s.length;t<n;++t)try{s[t]()}catch(t){e.push(t)}if(s=void 0,e.length)throw e})}finally{e++}}function I(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=e[i]}else this.$attr={};this.$$element=t}function _(t,e){try{t.addClass(e)}catch(t){}}function U(a,t,e,n,s){a instanceof En||(a=En(a));for(var r=/\S+/,i=0,o=a.length;i<o;i++){var u=a[i];u.nodeType===tr&&u.nodeValue.match(r)&&xt(u,a[i]=D.document.createElement("span"))}var c=C(a,t,a,e,n,s);U.$$addScopeClass(a);var f=null;return function(t,e,n){mt(t,"scope"),s&&s.needsNewScope&&(t=t.$parent.$new());var r=(n=n||{}).parentBoundTranscludeFn,i=n.transcludeControllers;if(n=n.futureParentElement,r&&r.$$boundTransclude&&(r=r.$$boundTransclude),f||(f=(n=n&&n[0])&&"foreignobject"!==ht(n)&&Bn.call(n).match(/SVG/)?"svg":"html"),n="html"!==f?En(K(f,En("<div>").append(a).html())):e?dr.clone.call(a):a,i)for(var o in i)n.data("$"+o+"Controller",i[o].instance);return U.$$addScopeInfo(n,t),e&&e(n,t),c&&c(t,n,n,r),n}}function C(t,f,e,n,r,i){for(var o,a,s,u,l,h=[],c=0;c<t.length;c++)o=new I,(i=(a=z(t[c],[],o,0===c?n:void 0,r)).length?S(a,t[c],o,f,e,null,[],[],i):null)&&i.scope&&U.$$addScopeClass(o.$$element),o=i&&i.terminal||!(s=t[c].childNodes)||!s.length?null:C(s,i?(i.transcludeOnThisElement||!i.templateOnThisElement)&&i.transclude:f),(i||o)&&(h.push(c,i,o),u=!0,l=l||i),i=null;return u?function(t,e,n,r){var i,o,a,s,u,c;if(l)for(c=Array(e.length),s=0;s<h.length;s+=3)c[i=h[s]]=e[i];else c=e;for(s=0,u=h.length;s<u;)o=c[h[s++]],e=h[s++],i=h[s++],e?(e.scope?(a=t.$new(),U.$$addScopeInfo(En(o),a)):a=t,e(i,a,o,n,e.transcludeOnThisElement?k(t,e.transclude,r):!e.templateOnThisElement&&r?r:!r&&f?k(t,f):null)):i&&i(t,o.childNodes,void 0,r)}:null}function k(o,a,s){function t(t,e,n,r,i){return t||((t=o.$new(!1,i)).$$transcluded=!0),a(t,e,{parentBoundTranscludeFn:s,transcludeControllers:n,futureParentElement:r})}var e,n=t.$$slots=bt();for(e in a.$$slots)n[e]=a.$$slots[e]?k(o,a.$$slots[e],s):null;return t}function z(t,e,n,r,i){var o,a,s,u=n.$attr;switch(t.nodeType){case 1:b(e,Bt(ht(t)),"E",r,i);for(var c,f,l,h,p=t.attributes,d=0,g=p&&p.length;d<g;d++){var v=!1,y=!1;f=(c=p[d]).name,l=Wn(c.value),c=Bt(f),(h=M.test(c))&&(f=f.replace(Dr,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()})),(c=c.match(A))&&x(c[1])&&(y=(v=f).substr(0,f.length-5)+"end",f=f.substr(0,f.length-6)),u[c=Bt(f.toLowerCase())]=f,!h&&n.hasOwnProperty(c)||(n[c]=l,wt(t,c)&&(n[c]=!0)),w(t,e,l,c,h),b(e,c,"A",r,i,v,y)}if(st(u=t.className)&&(u=u.animVal),ut(u)&&""!==u)for(;t=P.exec(u);)b(e,c=Bt(t[2]),"C",r,i)&&(n[c]=Wn(t[3])),u=u.substr(t.index+t[0].length);break;case tr:if(11===An)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===tr;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);o=e,a=t.nodeValue,(s=m(a,!0))&&o.push({priority:0,compile:function(t){var r=!!(t=t.parent()).length;return r&&U.$$addBindingClass(t),function(t,e){var n=e.parent();r||U.$$addBindingClass(n),U.$$addBindingInfo(n,s.expressions),t.$watch(s,function(t){e[0].nodeValue=t})}}});break;case 8:!function(t,e,n,r,i){try{var o=N.exec(t.nodeValue);if(o){var a=Bt(o[1]);b(e,a,"M",r,i)&&(n[a]=Wn(o[2]))}}catch(t){}}(t,e,n,r,i)}return e.sort($),e}function H(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw Pr("uterdir",e,n);1==t.nodeType&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(0<i);else r.push(t);return En(r)}function V(o,a,s){return function(t,e,n,r,i){return e=H(e[0],a,s),o(t,e,n,r,i)}}function W(t,e,n,r,i,o){var a;return t?U(e,n,r,i,o):function(){return a||(a=U(e,n,r,i,o),e=n=o=null),a.apply(this,arguments)}}function S(t,v,y,e,n,r,m,b,i){function o(t,e,n,r){t&&(n&&(t=V(t,n,r)),t.require=s.require,t.directiveName=u,(w===s||s.$$isolateScope)&&(t=tt(t,{isolateScope:!0})),m.push(t)),e&&(n&&(e=V(e,n,r)),e.require=s.require,e.directiveName=u,(w===s||s.$$isolateScope)&&(e=tt(e,{isolateScope:!0})),b.push(e))}function a(t,e,n,r,a){var i,o,s,u,c,f,l,h;for(i in v===n?h=(r=y).$$element:r=new I(h=En(n),y),c=e,w?u=e.$new(!0):x&&(c=e.$parent),a&&((l=function(t,e,n,r){var i;if(ft(t)||(r=n,n=e,e=t,t=void 0),C&&(i=f),n||(n=C?h.parent():h),!r)return a(t,e,i,n,g);var o=a.$$slots[r];if(o)return o(t,e,i,n,g);if(at(o))throw Pr("noslot",r,vt(h))}).$$boundTransclude=a,l.isSlotFilled=function(t){return!!a.$$slots[t]}),$&&(f=function(t,e,n,r,i,o,a){var s,u=bt();for(s in r){var c=r[s],f={$scope:c===a||c.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},l=c.controller;"@"==l&&(l=e[c.name]),f=F(l,f,!0,c.controllerAs),u[c.name]=f,t.data("$"+c.name+"Controller",f.instance)}return u}(h,r,l,$,u,e,w)),w&&(U.$$addScopeInfo(h,u,!0,!(_&&(_===w||_===w.$$originalDirective))),U.$$addScopeClass(h,!0),u.$$isolateBindings=w.$$isolateBindings,(o=nt(e,r,u,u.$$isolateBindings,w)).removeWatches&&u.$on("$destroy",o.removeWatches)),f){o=$[i],s=f[i];var p=o.$$bindings.bindToController;s.bindingInfo=s.identifier&&p?nt(c,r,s.instance,p,o):{};var d=s();d!==s.instance&&(s.instance=d,h.data("$"+o.name+"Controller",d),s.bindingInfo.removeWatches&&s.bindingInfo.removeWatches(),s.bindingInfo=nt(c,r,s.instance,p,o))}for(it($,function(t,e){var n=t.require;t.bindToController&&!Hn(n)&&st(n)&&ot(f[e].instance,Y(e,n,h,f))}),it(f,function(t){var e=t.instance;if(ct(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){B(t)}if(ct(e.$onInit))try{e.$onInit()}catch(t){B(t)}ct(e.$doCheck)&&(c.$watch(function(){e.$doCheck()}),e.$doCheck()),ct(e.$onDestroy)&&c.$on("$destroy",function(){e.$onDestroy()})}),i=0,o=m.length;i<o;i++)et(s=m[i],s.isolateScope?u:e,h,r,s.require&&Y(s.directiveName,s.require,h,f),l);var g=e;for(w&&(w.template||null===w.templateUrl)&&(g=u),t&&t(g,n.childNodes,void 0,a),i=b.length-1;0<=i;i--)et(s=b[i],s.isolateScope?u:e,h,r,s.require&&Y(s.directiveName,s.require,h,f),l);it(f,function(t){ct((t=t.instance).$postLink)&&t.$postLink()})}i=i||{};for(var s,u,c,f,l,h=-Number.MAX_VALUE,x=i.newScopeDirective,$=i.controllerDirectives,w=i.newIsolateScopeDirective,_=i.templateDirective,p=i.nonTlbTranscludeDirective,d=!1,g=!1,C=i.hasElementTranscludeDirective,k=y.$$element=En(v),S=e,M=!1,A=!1,E=0,T=t.length;E<T;E++){var N=(s=t[E]).$$start,P=s.$$end;if(N&&(k=H(v,N,P)),c=void 0,h>s.priority)break;if((l=s.scope)&&(s.templateUrl||(st(l)?(Z("new/isolated scope",w||x,s,k),w=s):Z("new/isolated scope",w,s,k)),x=x||s),u=s.name,!M&&(s.replace&&(s.templateUrl||s.template)||s.transclude&&!s.$$tlb)){for(l=E+1;M=t[l++];)if(M.transclude&&!M.$$tlb||M.replace&&(M.templateUrl||M.template)){A=!0;break}M=!0}if(!s.templateUrl&&s.controller&&(l=s.controller,$=$||bt(),Z("'"+u+"' controller",$[u],s,k),$[u]=s),l=s.transclude)if(d=!0,s.$$tlb||(Z("transclusion",p,s,k),p=s),"element"==l)C=!0,h=s.priority,c=k,k=y.$$element=En(U.$$createComment(u,y[u])),v=k[0],Q(n,jn.call(c,0),v),c[0].$$parentNode=c[0].parentNode,S=W(A,c,e,h,r&&r.name,{nonTlbTranscludeDirective:p});else{var O=bt();if(c=En($t(v)).contents(),st(l)){c=[];var D=bt(),R=bt();for(var j in it(l,function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,D[t]=e,O[e]=null,R[e]=n}),it(k.contents(),function(t){var e=D[Bt(ht(t))];e?(R[e]=!0,O[e]=O[e]||[],O[e].push(t)):c.push(t)}),it(R,function(t,e){if(!t)throw Pr("reqslot",e)}),O)O[j]&&(O[j]=W(A,O[j],e))}k.empty(),(S=W(A,c,e,void 0,void 0,{needsNewScope:s.$$isolateScope||s.$$newScope})).$$slots=O}if(s.template)if(g=!0,Z("template",_,s,k),l=ct((_=s).template)?s.template(k,y):s.template,l=rt(l),s.replace){if(r=s,c=cr.test(l)?It(K(s.templateNamespace,Wn(l))):[],v=c[0],1!=c.length||1!==v.nodeType)throw Pr("tplrt",u,"");Q(n,k,v),l=z(v,[],T={$attr:{}});var L=t.splice(E+1,t.length-(E+1));(w||x)&&X(l,w,x),t=t.concat(l).concat(L),G(y,T),T=t.length}else k.html(l);if(s.templateUrl)g=!0,Z("template",_,s,k),(_=s).replace&&(r=s),a=J(t.splice(E,t.length-E),k,y,n,d&&S,m,b,{controllerDirectives:$,newScopeDirective:x!==s&&x,newIsolateScopeDirective:w,templateDirective:_,nonTlbTranscludeDirective:p}),T=t.length;else if(s.compile)try{f=s.compile(k,y,S);var q=s.$$originalDirective||s;ct(f)?o(null,gt(q,f),N,P):f&&o(gt(q,f.pre),gt(q,f.post),N,P)}catch(t){B(t,vt(k))}s.terminal&&(a.terminal=!0,h=Math.max(h,s.priority))}return a.scope=x&&!0===x.scope,a.transcludeOnThisElement=d,a.templateOnThisElement=g,a.transclude=S,i.hasElementTranscludeDirective=C,a}function Y(n,t,r,i){var o;if(ut(t)){var e=t.match(p);t=t.substring(e[0].length);var a=e[1]||e[3];e="?"===e[2];if("^^"===a?r=r.parent():o=(o=i&&i[t])&&o.instance,!o){var s="$"+t+"Controller";o=a?r.inheritedData(s):r.data(s)}if(!o&&!e)throw Pr("ctreq",t,n)}else if(Hn(t))for(o=[],a=0,e=t.length;a<e;a++)o[a]=Y(n,t[a],r,i);else st(t)&&(o={},it(t,function(t,e){o[e]=Y(n,t,r,i)}));return o||null}function X(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=R(t[r],{$$isolateScope:e,$$newScope:n})}function b(t,e,n,r,i,o,a){if(e===i)return null;if(i=null,T.hasOwnProperty(e))for(var s,u=0,c=(e=y.get(e+"Directive")).length;u<c;u++)try{if(s=e[u],(at(r)||r>s.priority)&&-1!=s.restrict.indexOf(n)){if(o&&(s=R(s,{$$start:o,$$end:a})),!s.$$bindings){var f=s,l=s,h=s.name,p={isolateScope:null,bindToController:null};if(st(l.scope)&&(!0===l.bindToController?(p.bindToController=E(l.scope,h,!0),p.isolateScope={}):p.isolateScope=E(l.scope,h,!1)),st(l.bindToController)&&(p.bindToController=E(l.bindToController,h,!0)),st(p.bindToController)){var d=l.controller,g=l.controllerAs;if(!d)throw Pr("noctrl",h);if(!Ut(d,g))throw Pr("noident",h)}var v=f.$$bindings=p;st(v.isolateScope)&&(s.$$isolateBindings=v.isolateScope)}t.push(s),i=s}}catch(t){B(t)}return i}function x(t){if(T.hasOwnProperty(t))for(var e=y.get(t+"Directive"),n=0,r=e.length;n<r;n++)if((t=e[n]).multiElement)return!0;return!1}function G(n,r){var i=r.$attr,o=n.$attr;it(n,function(t,e){"$"!=e.charAt(0)&&(r[e]&&r[e]!==t&&(t+=("style"===e?";":" ")+r[e]),n.$set(e,t,!0,i[e]))}),it(r,function(t,e){n.hasOwnProperty(e)||"$"===e.charAt(0)||(n[e]=t,"class"!==e&&"style"!==e&&(o[e]=i[e]))})}function J(s,u,c,f,l,h,p,d){var g,v,y=[],m=u[0],b=s.shift(),x=R(b,{templateUrl:null,transclude:null,replace:null,$$originalDirective:b}),$=ct(b.templateUrl)?b.templateUrl(u,c):b.templateUrl,w=b.templateNamespace;return u.empty(),t($).then(function(t){var n,e;if(t=rt(t),b.replace){if(t=cr.test(t)?It(K(w,Wn(t))):[],n=t[0],1!=t.length||1!==n.nodeType)throw Pr("tplrt",b.name,$);t={$attr:{}},Q(f,u,n);var r=z(n,[],t);st(b.scope)&&X(r,!0),s=r.concat(s),G(c,t)}else n=m,u.html(t);for(s.unshift(x),g=S(s,n,c,l,u,b,h,p,d),it(f,function(t,e){t==n&&(f[e]=u[0])}),v=C(u[0].childNodes,l);y.length;){t=y.shift(),e=y.shift();var i=y.shift(),o=y.shift();r=u[0];if(!t.$$destroyed){if(e!==m){var a=e.className;d.hasElementTranscludeDirective&&b.replace||(r=$t(n)),Q(i,En(e),r),_(En(r),a)}e=g.transcludeOnThisElement?k(t,g.transclude,o):o,g(v,t,r,f,e)}}y=null}),function(t,e,n,r,i){t=i,e.$$destroyed||(y?y.push(e,n,r,t):(g.transcludeOnThisElement&&(t=k(e,g.transclude,i)),g(v,e,n,r,t)))}}function $(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function Z(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw Pr("multidir",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,vt(r))}function K(t,e){switch(t=Dn(t||"html")){case"svg":case"math":var n=D.document.createElement("div");return n.innerHTML="<"+t+">"+e+"</"+t+">",n.childNodes[0].childNodes;default:return e}}function w(t,e,i,o,a){var s=function(t,e){if("srcdoc"==e)return r.HTML;var n=ht(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?r.RESOURCE_URL:void 0}(t,o);a=c[o]||a;var u=m(i,!0,s,a);if(u){if("multiple"===o&&"select"===ht(t))throw Pr("selmulti",vt(t));e.push({priority:100,compile:function(){return{pre:function(t,e,n){if(e=n.$$observers||(n.$$observers=bt()),d.test(o))throw Pr("nodomevents");var r=n[o];r!==i&&(u=r&&m(r,!0,s,a),i=r),u&&(n[o]=u(t),(e[o]||(e[o]=[])).$$inter=!0,(n.$$observers&&n.$$observers[o].$$scope||t).$watch(u,function(t,e){"class"===o&&t!=e?n.$updateClass(t,e):n.$set(o,t)}))}}}})}}function Q(t,e,n){var r,i,o=e[0],a=e.length,s=o.parentNode;if(t)for(r=0,i=t.length;r<i;r++)if(t[r]==o){t[r++]=n,i=r+a-1;for(var u=t.length;r<u;r++,i++)i<u?t[r]=t[i]:delete t[r];t.length-=a-1,t.context===o&&(t.context=n);break}for(s&&s.replaceChild(n,o),t=D.document.createDocumentFragment(),r=0;r<a;r++)t.appendChild(e[r]);for(En.hasData(o)&&(En.data(n,En.data(o)),En(o).off("$destroy")),En.cleanData(t.querySelectorAll("*")),r=1;r<a;r++)delete e[r];e[0]=n,e.length=1}function tt(t,e){return ot(function(){return t.apply(null,arguments)},t,e)}function et(t,e,n,r,i,o){try{t(e,n,r,i,o)}catch(t){B(t,vt(n))}}function nt(c,f,l,t,h){function p(t,e,n){ct(l.$onChanges)&&e!==n&&(s||(c.$$postDigest(a),s=[]),i||(i={},s.push(r)),i[t]&&(n=i[t].previousValue),i[t]=new qt(n,e))}function r(){l.$onChanges(i),i=void 0}var i,d=[],g={};return it(t,function(t,n){var e,r,i,o,a=t.attrName,s=t.optional;switch(t.mode){case"@":s||On.call(f,a)||(l[n]=f[a]=void 0),f.$observe(a,function(t){(ut(t)||lt(t))&&(p(n,t,l[n]),l[n]=t)}),f.$$observers[a].$$scope=c,ut(e=f[a])?l[n]=m(e)(c):lt(e)&&(l[n]=e),g[n]=new qt(Or,l[n]);break;case"=":if(!On.call(f,a)){if(s)break;f[a]=void 0}if(s&&!f[a])break;r=v(f[a]),o=r.literal?dt:function(t,e){return t===e||t!=t&&e!=e},i=r.assign||function(){throw e=l[n]=r(c),Pr("nonassign",f[a],a,h.name)},e=l[n]=r(c),(s=function(t){return o(t,l[n])||(o(t,e)?i(c,t=l[n]):l[n]=t),e=t}).$stateful=!0,s=t.collection?c.$watchCollection(f[a],s):c.$watch(v(f[a],s),null,r.literal),d.push(s);break;case"<":if(!On.call(f,a)){if(s)break;f[a]=void 0}if(s&&!f[a])break;r=v(f[a]);var u=l[n]=r(c);g[n]=new qt(Or,l[n]),s=c.$watch(r,function(t,e){if(e===t){if(e===u)return;e=u}p(n,t,e),l[n]=t},r.literal),d.push(s);break;case"&":if((r=f.hasOwnProperty(a)?v(f[a]):j)===j&&s)break;l[n]=function(t){return r(c,t)}}}),{initialChanges:g,removeWatches:d.length&&function(){for(var t=0,e=d.length;t<e;++t)d[t]()}}}var s,l=/^\w/,h=D.document.createElement("div"),e=O;I.prototype={$normalize:Bt,$addClass:function(t){t&&0<t.length&&i.addClass(this.$$element,t)},$removeClass:function(t){t&&0<t.length&&i.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=Ft(t,e);n&&n.length&&i.addClass(this.$$element,n),(n=Ft(e,t))&&n.length&&i.removeClass(this.$$element,n)},$set:function(t,e,n,r){var i=wt(this.$$element[0],t),o=yr[t],a=t;if(i?(this.$$element.prop(t,e),r=i):o&&(this[o]=e,a=o),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=yt(t,"-")),"a"===(i=ht(this.$$element))&&("href"===t||"xlinkHref"===t)||"img"===i&&"src"===t)this[t]=e=f(e,"src"===t);else if("img"===i&&"srcset"===t&&q(e)){i="",o=Wn(e);for(var s=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,u=(s=/\s/.test(o)?s:/(,)/,o=o.split(s),s=Math.floor(o.length/2),0);u<s;u++){var c=2*u;i=(i=i+f(Wn(o[c]),!0))+" "+Wn(o[c+1])}o=Wn(o[2*u]).split(/\s/),i+=f(Wn(o[0]),!0),2===o.length&&(i+=" "+Wn(o[1])),this[t]=e=i}!1!==n&&(null===e||at(e)?this.$$element.removeAttr(r):l.test(r)?this.$$element.attr(r,e):function(t,e,n){h.innerHTML="<span "+e+">";var r=(e=h.firstChild.attributes)[0];e.removeNamedItem(r.name),r.value=n,t.attributes.setNamedItem(r)}(this.$$element[0],r,e)),(t=this.$$observers)&&it(t[a],function(t){try{t(e)}catch(t){B(t)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=bt()),i=r[t]||(r[t]=[]);return i.push(e),o.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||at(n[t])||e(n[t])}),function(){pt(i,e)}}};var n=m.startSymbol(),u=m.endSymbol(),rt="{{"==n&&"}}"==u?L:function(t){return t.replace(/\{\{/g,n).replace(/}}/g,u)},M=/^ngAttr[A-Z]/,A=/^(.+)Start$/;return U.$$addBindingInfo=g?function(t,e){var n=t.data("$binding")||[];Hn(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:j,U.$$addBindingClass=g?function(t){_(t,"ng-binding")}:j,U.$$addScopeInfo=g?function(t,e,n,r){t.data(n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope",e)}:j,U.$$addScopeClass=g?function(t,e){_(t,e?"ng-isolate-scope":"ng-scope")}:j,U.$$createComment=function(t,e){var n="";return g&&(n=" "+(t||"")+": ",e&&(n+=e+" ")),D.document.createComment(n)},U}]}function qt(t,e){this.previousValue=t,this.currentValue=e}function Bt(t){return I(t.replace(Dr,""))}function Ft(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/),o=0;t:for(;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue t;n+=(0<n.length?" ":"")+a}return n}function It(t){var e=(t=En(t)).length;if(e<=1)return t;for(;e--;)8===t[e].nodeType&&Ln.call(t,e,1);return t}function Ut(t,e){if(e&&ut(e))return e;if(ut(t)){var n=jr.exec(t);if(n)return n[3]}}function zt(){var f={},l=!1;this.has=function(t){return f.hasOwnProperty(t)},this.register=function(t,e){B(t,"controller"),st(t)?ot(f,t):f[t]=e},this.allowGlobals=function(){l=!0},this.$get=["$injector","$window",function(s,u){function c(t,e,n,r){if(!t||!st(t.$scope))throw h("$controller")("noscp",r,e);t.$scope[e]=n}return function(e,n,t,r){var i,o,a;if(t=!0===t,r&&ut(r)&&(a=r),ut(e)){if(!(r=e.match(jr)))throw Rr("ctrlfmt",e);o=r[1],a=a||r[3],N(e=f.hasOwnProperty(o)?f[o]:P(n.$scope,o,!0)||(l?P(u,o,!0):void 0),o,!0)}return t?(t=(Hn(e)?e[e.length-1]:e).prototype,i=Object.create(t||null),a&&c(n,a,i,o||e.name),ot(function(){var t=s.invoke(e,i,n,o);return t!==i&&(st(t)||ct(t))&&(i=t,a&&c(n,a,i,o||e.name)),i},{instance:i,identifier:a})):(i=s.instantiate(e,n,o),a&&c(n,a,i,o||e.name),i)}}]}function Ht(){this.$get=["$window",function(t){return En(t.document)}]}function Vt(){this.$get=["$log",function(n){return function(t,e){n.error.apply(n,arguments)}}]}function Wt(t){return st(t)?y(t)?t.toISOString():C(t):t}function Yt(){this.$get=function(){return function(t){if(!t)return"";var n=[];return o(t,function(t,e){null===t||at(t)||(Hn(t)?it(t,function(t){n.push(w(e)+"="+w(Wt(t)))}):n.push(w(e)+"="+w(Wt(t))))}),n.join("&")}}}function Xt(){this.$get=function(){return function(t){if(!t)return"";var e=[];return function n(t,r,i){null===t||at(t)||(Hn(t)?it(t,function(t,e){n(t,r+"["+(st(t)?e:"")+"]")}):st(t)&&!y(t)?o(t,function(t,e){n(t,r+(i?"":"[")+e+(i?"":"]"))}):e.push(w(r)+"="+w(Wt(t))))}(t,"",!0),e.join("&")}}}function Gt(t,e){if(ut(t)){var n=t.replace(Ur,"").trim();if(n){var r=e("Content-Type");(r=r&&0===r.indexOf(qr))||(r=(r=n.match(Fr))&&Ir[r[0]].test(n)),r&&(t=i(n))}}return t}function Jt(t){var n,i=bt();return ut(t)?it(t.split("\n"),function(t){n=t.indexOf(":");var e=Dn(Wn(t.substr(0,n)));t=Wn(t.substr(n+1)),e&&(i[e]=i[e]?i[e]+", "+t:t)}):st(t)&&it(t,function(t,e){var n=Dn(e),r=Wn(t);n&&(i[n]=i[n]?i[n]+", "+r:r)}),i}function Zt(e){var n;return function(t){return n||(n=Jt(e)),t?(void 0===(t=n[Dn(t)])&&(t=null),t):n}}function Kt(e,n,r,t){return ct(t)?t(e,n,r):(it(t,function(t){e=t(e,n,r)}),e)}function Qt(){var x=this.defaults={transformResponse:[Gt],transformRequest:[function(t){return st(t)&&"[object File]"!==Bn.call(t)&&"[object Blob]"!==Bn.call(t)&&"[object FormData]"!==Bn.call(t)?C(t):t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:F(Br),put:F(Br),patch:F(Br)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},$=!1;this.useApplyAsync=function(t){return q(t)?($=!!t,this):$};var c=!0;this.useLegacyPromiseExtensions=function(t){return q(t)?(c=!!t,this):c};var e=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(d,g,t,v,y,s){function m(t){function e(t,e){for(var n=0,r=e.length;n<r;){var i=e[n++],o=e[n++];t=t.then(i,o)}return e.length=0,t}function r(t){var e=ot({},t);return e.data=Kt(t.data,t.headers,t.status,n.transformResponse),200<=(t=t.status)&&t<300?e:y.reject(e)}if(!st(t))throw h("$http")("badreq",t);if(!ut(t.url))throw h("$http")("badreq",t.url);var n=ot({method:"get",transformRequest:x.transformRequest,transformResponse:x.transformResponse,paramSerializer:x.paramSerializer},t);n.headers=function(t){var e,n,r,i,o,a,s,u=x.headers,c=ot({},t.headers);u=ot({},u.common,u[Dn(t.method)]);t:for(e in u){for(r in n=Dn(e),c)if(Dn(r)===n)continue t;c[e]=u[e]}return i=c,o=F(t),s={},it(i,function(t,e){ct(t)?null!=(a=t(o))&&(s[e]=a):s[e]=t}),s}(t),n.method=Rn(n.method),n.paramSerializer=ut(n.paramSerializer)?s.get(n.paramSerializer):n.paramSerializer;var i=[],o=[],a=y.when(n);return it(u,function(t){(t.request||t.requestError)&&i.unshift(t.request,t.requestError),(t.response||t.responseError)&&o.push(t.response,t.responseError)}),(a=e(a=(a=e(a,i)).then(function(t){var n=t.headers,e=Kt(t.data,Zt(n),void 0,t.transformRequest);return at(e)&&it(n,function(t,e){"content-type"===Dn(e)&&delete n[e]}),at(t.withCredentials)&&!at(x.withCredentials)&&(t.withCredentials=x.withCredentials),function(i,t){function e(t){if(t){var e={};return it(t,function(n,t){e[t]=function(t){function e(){n(t)}$?v.$applyAsync(e):v.$$phase?e():v.$apply(e)}}),e}}function o(t,e,n,r){(200<=(e=-1<=e?e:0)&&e<300?u.resolve:u.reject)({data:t,status:e,headers:Zt(n),config:i,statusText:r})}function n(t){o(t.data,t.status,F(t.headers()),t.statusText)}function r(){var t=m.pendingRequests.indexOf(i);-1!==t&&m.pendingRequests.splice(t,1)}var a,s,u=y.defer(),c=u.promise,f=i.headers,l=(h=i.url,p=i.paramSerializer(i.params),0<p.length&&(h+=(-1==h.indexOf("?")?"?":"&")+p),h);var h,p;return m.pendingRequests.push(i),c.then(r,r),!i.cache&&!x.cache||!1===i.cache||"GET"!==i.method&&"JSONP"!==i.method||(a=st(i.cache)?i.cache:st(x.cache)?x.cache:b),a&&(q(s=a.get(l))?s&&ct(s.then)?s.then(n,n):Hn(s)?o(s[1],s[0],F(s[2]),s[3]):o(s,200,{},"OK"):a.put(l,c)),at(s)&&((s=Xe(i.url)?g()[i.xsrfCookieName||x.xsrfCookieName]:void 0)&&(f[i.xsrfHeaderName||x.xsrfHeaderName]=s),d(i.method,l,t,function(t,e,n,r){function i(){o(e,t,n,r)}a&&(200<=t&&t<300?a.put(l,[t,e,Jt(n),r]):a.remove(l)),$?v.$applyAsync(i):(i(),v.$$phase||v.$apply())},f,i.timeout,i.withCredentials,i.responseType,e(i.eventHandlers),e(i.uploadEventHandlers))),c}(t,e).then(r,r)}),o)).error=c?(a.success=function(e){return N(e,"fn"),a.then(function(t){e(t.data,t.status,t.headers,n)}),a},function(e){return N(e,"fn"),a.then(null,function(t){e(t.data,t.status,t.headers,n)}),a}):(a.success=Hr("success"),Hr("error")),a}var b=t("$http");x.paramSerializer=ut(x.paramSerializer)?s.get(x.paramSerializer):x.paramSerializer;var u=[];return it(e,function(t){u.unshift(ut(t)?s.get(t):s.invoke(t))}),m.pendingRequests=[],function(t){it(arguments,function(n){m[n]=function(t,e){return m(ot({},e||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(t){it(arguments,function(r){m[r]=function(t,e,n){return m(ot({},n||{},{method:r,url:t,data:e}))}})}("post","put","patch"),m.defaults=x,m}]}function te(){this.$get=function(){return function(){return new D.XMLHttpRequest}}}function ee(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(t,e,n,r){return y=r,m=(v=t).defer,b=e,x=n[0],function(t,r,e,i,n,o,a,s,u,c){function f(){p&&p(),d&&d.abort()}function l(t,e,n,r,i){q(g)&&m.cancel(g),p=d=null,t(e,n,r,i),v.$$completeOutstandingRequest(j)}if(v.$$incOutstandingRequestCount(),r=r||v.url(),"jsonp"===Dn(t))var h=b.createCallback(r),p=function(t,r,i){t=t.replace("JSON_CALLBACK",r);var o=x.createElement("script"),a=null;return o.type="text/javascript",o.src=t,o.async=!0,a=function(t){o.removeEventListener("load",a,!1),o.removeEventListener("error",a,!1),x.body.removeChild(o),o=null;var e=-1,n="unknown";t&&("load"!==t.type||b.wasCalled(r)||(t={type:"error"}),n=t.type,e="error"===t.type?404:200),i&&i(e,n)},o.addEventListener("load",a,!1),o.addEventListener("error",a,!1),x.body.appendChild(o),a}(r,h,function(t,e){var n=200===t&&b.getResponse(h);l(i,t,n,"",e),b.removeCallback(h)});else{var d=y(t,r);if(d.open(t,r,!0),it(n,function(t,e){q(t)&&d.setRequestHeader(e,t)}),d.onload=function(){var t=d.statusText||"",e="response"in d?d.response:d.responseText,n=1223===d.status?204:d.status;0===n&&(n=e?200:"file"==Ye(r).protocol?404:0),l(i,n,e,d.getAllResponseHeaders(),t)},t=function(){l(i,-1,null,null,"")},d.onerror=t,d.onabort=t,it(u,function(t,e){d.addEventListener(e,t)}),it(c,function(t,e){d.upload.addEventListener(e,t)}),a&&(d.withCredentials=!0),s)try{d.responseType=s}catch(t){if("json"!==s)throw t}d.send(at(e)?null:e)}if(0<o)var g=m(f,o);else o&&ct(o.then)&&o.then(f)};var v,y,m,b,x}]}function ne(){var $="{{",w="}}";this.startSymbol=function(t){return t?($=t,this):$},this.endSymbol=function(t){return t?(w=t,this):w},this.$get=["$parse","$exceptionHandler","$sce",function(d,g,v){function t(t){return"\\\\\\"+t}function y(t){return t.replace(n,$).replace(r,w)}function m(t,e,n,r){var i;return i=t.$watch(function(t){return i(),r(t)},e,n)}function e(i,t,r,o){function e(t){try{var e,n=t;if(t=r?v.getTrusted(r,n):v.valueOf(n),o&&!q(t))e=t;else if(null==t)e="";else{switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=C(t)}e=t}return e}catch(t){g(Vr.interr(i,t))}}var n;if(!i.length||-1===i.indexOf($))return t||((n=_(t=y(i))).exp=i,n.expressions=[],n.$$watchDelegate=m),n;o=!!o;var a,s,u=0,c=[],f=[];n=i.length;for(var l=[],h=[];u<n;){if(-1==(a=i.indexOf($,u))||-1==(s=i.indexOf(w,a+b))){u!==n&&l.push(y(i.substring(u)));break}u!==a&&l.push(y(i.substring(u,a))),u=i.substring(a+b,s),c.push(u),f.push(d(u,e)),u=s+x,h.push(l.length),l.push("")}if(r&&1<l.length&&Vr.throwNoconcat(i),!t||c.length){var p=function(t){for(var e=0,n=c.length;e<n;e++){if(o&&at(t[e]))return;l[h[e]]=t[e]}return l.join("")};return ot(function(t){var e=0,n=c.length,r=Array(n);try{for(;e<n;e++)r[e]=f[e](t);return p(r)}catch(t){g(Vr.interr(i,t))}},{exp:i,expressions:c,$$watchDelegate:function(r,i){var o;return r.$watchGroup(f,function(t,e){var n=p(t);ct(i)&&i.call(this,n,t!==e?o:n,r),o=n})}})}}var b=$.length,x=w.length,n=new RegExp($.replace(/./g,t),"g"),r=new RegExp(w.replace(/./g,t),"g");return e.startSymbol=function(){return $},e.endSymbol=function(){return w},e}]}function re(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(p,d,g,v,y){function t(t,e,n,r){function i(){o?t.apply(null,a):t(c)}var o=4<arguments.length,a=o?jn.call(arguments,4):[],s=d.setInterval,u=d.clearInterval,c=0,f=q(r)&&!r,l=(f?v:g).defer(),h=l.promise;return n=q(n)?n:0,h.$$intervalId=s(function(){f?y.defer(i):p.$evalAsync(i),l.notify(c++),0<n&&n<=c&&(l.resolve(c),u(h.$$intervalId),delete m[h.$$intervalId]),f||p.$apply()},e),m[h.$$intervalId]=l,h}var m={};return t.cancel=function(t){return!!(t&&t.$$intervalId in m)&&(m[t.$$intervalId].reject("canceled"),d.clearInterval(t.$$intervalId),delete m[t.$$intervalId],!0)},t}]}function ie(t){for(var e=(t=t.split("/")).length;e--;)t[e]=$(t[e]);return t.join("/")}function oe(t,e){var n=Ye(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=d(n.port)||Xr[n.protocol]||null}function ae(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=Ye(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=c(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function se(t,e){if(0===e.lastIndexOf(t,0))return e.substr(t.length)}function ue(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function ce(t){return t.replace(/(#.+)|#$/,"$1")}function fe(i,o,a){this.$$html5=!0,a=a||"",oe(i,this),this.$$parse=function(t){var e=se(o,t);if(!ut(e))throw Gr("ipthprfx",t,o);ae(e,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=r(this.$$search),e=this.$$hash?"#"+$(this.$$hash):"";this.$$url=ie(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=o+this.$$url.substr(1)},this.$$parseLinkUrl=function(t,e){return e&&"#"===e[0]?(this.hash(e.slice(1)),!0):(q(n=se(i,t))?r=q(n=se(a,r=n))?o+(se("/",n)||n):i+r:q(n=se(o,t))?r=o+n:o==t+"/"&&(r=o),r&&this.$$parse(r),!!r);var n,r}}function le(i,o,a){oe(i,this),this.$$parse=function(t){var e;at(n=se(i,t)||se(o,t))||"#"!==n.charAt(0)?this.$$html5?e=n:(e="",at(n)&&(i=t,this.replace())):at(e=se(a,n))&&(e=n),ae(e,this),t=this.$$path;var n=i,r=/^\/[A-Z]:(\/.*)/;0===e.lastIndexOf(n,0)&&(e=e.replace(n,"")),r.exec(e)||(t=(e=r.exec(t))?e[1]:t),this.$$path=t,this.$$compose()},this.$$compose=function(){var t=r(this.$$search),e=this.$$hash?"#"+$(this.$$hash):"";this.$$url=ie(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=i+(this.$$url?a+this.$$url:"")},this.$$parseLinkUrl=function(t,e){return ue(i)==ue(t)&&(this.$$parse(t),!0)}}function he(i,o,a){this.$$html5=!0,le.apply(this,arguments),this.$$parseLinkUrl=function(t,e){return e&&"#"===e[0]?(this.hash(e.slice(1)),!0):(i==ue(t)?n=t:(r=se(o,t))?n=i+a+r:o===t+"/"&&(n=o),n&&this.$$parse(n),!!n);var n,r},this.$$compose=function(){var t=r(this.$$search),e=this.$$hash?"#"+$(this.$$hash):"";this.$$url=ie(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=i+a+this.$$url}}function pe(t){return function(){return this[t]}}function de(e,n){return function(t){return at(t)?this[e]:(this[e]=n(t),this.$$compose(),this)}}function ge(){var d="",g={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return q(t)?(d=t,this):d},this.html5Mode=function(t){return lt(t)?(g.enabled=t,this):st(t)?(lt(t.enabled)&&(g.enabled=t.enabled),lt(t.requireBase)&&(g.requireBase=t.requireBase),lt(t.rewriteLinks)&&(g.rewriteLinks=t.rewriteLinks),this):g},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(a,s,e,i,o){function u(t,e,n){var r=f.url(),i=f.$$state;try{s.url(t,e,n),f.$$state=s.state()}catch(t){throw f.url(r),f.$$state=i,t}}function c(t,e){a.$broadcast("$locationChangeSuccess",f.absUrl(),t,f.$$state,e)}var f,t;t=s.baseHref();var n,r=s.url();if(g.enabled){if(!t&&g.requireBase)throw Gr("nobase");n=r.substring(0,r.indexOf("/",r.indexOf("//")+2))+(t||"/"),t=e.history?fe:he}else n=ue(r),t=le;var l=n.substr(0,ue(n).lastIndexOf("/")+1);(f=new t(n,l,"#"+d)).$$parseLinkUrl(r,r),f.$$state=s.state();var h=/^\s*(javascript|mailto):/i;i.on("click",function(t){if(g.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var e=En(t.target);"a"!==ht(e[0]);)if(e[0]===i[0]||!(e=e.parent())[0])return;var n=e.prop("href"),r=e.attr("href")||e.attr("xlink:href");st(n)&&"[object SVGAnimatedString]"===n.toString()&&(n=Ye(n.animVal).href),h.test(n)||!n||e.attr("target")||t.isDefaultPrevented()||!f.$$parseLinkUrl(n,r)||(t.preventDefault(),f.absUrl()!=s.url()&&(a.$apply(),o.angular["ff-684208-preventDefault"]=!0))}}),ce(f.absUrl())!=ce(r)&&s.url(f.absUrl(),!0);var p=!0;return s.onUrlChange(function(r,i){at(se(l,r))?o.location.href=r:(a.$evalAsync(function(){var t,e=f.absUrl(),n=f.$$state;r=ce(r),f.$$parse(r),f.$$state=i,t=a.$broadcast("$locationChangeStart",r,e,i,n).defaultPrevented,f.absUrl()===r&&(t?(f.$$parse(e),u(e,!1,f.$$state=n)):(p=!1,c(e,n)))}),a.$$phase||a.$digest())}),a.$watch(function(){var n=ce(s.url()),t=ce(f.absUrl()),r=s.state(),i=f.$$replace,o=n!==t||f.$$html5&&e.history&&r!==f.$$state;(p||o)&&(p=!1,a.$evalAsync(function(){var t=f.absUrl(),e=a.$broadcast("$locationChangeStart",t,n,f.$$state,r).defaultPrevented;f.absUrl()===t&&(e?(f.$$parse(n),f.$$state=r):(o&&u(t,i,r===f.$$state?null:f.$$state),c(n,r)))})),f.$$replace=!1}),f}]}function ve(){var r=!0,i=this;this.debugEnabled=function(t){return q(t)?(r=t,this):r},this.$get=["$window",function(n){function t(t){var e=n.console||{},r=e[t]||e.log||j;t=!1;try{t=!!r.apply}catch(t){}return t?function(){var n=[];return it(arguments,function(t){var e;n.push(((e=t)instanceof Error&&(e.stack?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))}),r.apply(e,n)}:function(t,e){r(t,null==e?"":e)}}return{log:t("log"),info:t("info"),warn:t("warn"),error:t("error"),debug:(e=t("debug"),function(){r&&e.apply(i,arguments)})};var e}]}function ye(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw Zr("isecfld",e);return t}function me(t){return t+""}function be(t,e){if(t){if(t.constructor===t)throw Zr("isecfn",e);if(t.window===t)throw Zr("isecwindow",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw Zr("isecdom",e);if(t===Object)throw Zr("isecobj",e)}return t}function xe(t,e){if(t){if(t.constructor===t)throw Zr("isecfn",e);if(t===Kr||t===Qr||t===ti)throw Zr("isecff",e)}}function $e(t,e){if(t&&(t===(0).constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw Zr("isecaf",e)}function we(t,e){return void 0!==t?t:e}function _e(t,e){return void 0===t?e:void 0===e?t:t+e}function Ce(t,e){var n,r;switch(t.type){case ii.Program:n=!0,it(t.body,function(t){Ce(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case ii.Literal:t.constant=!0,t.toWatch=[];break;case ii.UnaryExpression:Ce(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case ii.BinaryExpression:Ce(t.left,e),Ce(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case ii.LogicalExpression:Ce(t.left,e),Ce(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case ii.ConditionalExpression:Ce(t.test,e),Ce(t.alternate,e),Ce(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case ii.Identifier:t.constant=!1,t.toWatch=[t];break;case ii.MemberExpression:Ce(t.object,e),t.computed&&Ce(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case ii.CallExpression:n=!!t.filter&&!e(t.callee.name).$stateful,r=[],it(t.arguments,function(t){Ce(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&!e(t.callee.name).$stateful?r:[t];break;case ii.AssignmentExpression:Ce(t.left,e),Ce(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case ii.ArrayExpression:n=!0,r=[],it(t.elements,function(t){Ce(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=r;break;case ii.ObjectExpression:n=!0,r=[],it(t.properties,function(t){Ce(t.value,e),n=n&&t.value.constant&&!t.computed,t.value.constant||r.push.apply(r,t.value.toWatch)}),t.constant=n,t.toWatch=r;break;case ii.ThisExpression:t.constant=!1,t.toWatch=[];break;case ii.LocalsExpression:t.constant=!1,t.toWatch=[]}}function ke(t){if(1==t.length){var e=(t=t[0].expression).toWatch;return 1!==e.length?e:e[0]!==t?e:void 0}}function Se(t){return t.type===ii.Identifier||t.type===ii.MemberExpression}function Me(t){if(1===t.body.length&&Se(t.body[0].expression))return{type:ii.AssignmentExpression,left:t.body[0].expression,right:{type:ii.NGValueParameter},operator:"="}}function Ae(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===ii.Literal||t.body[0].expression.type===ii.ArrayExpression||t.body[0].expression.type===ii.ObjectExpression)}function Ee(t,e){this.astBuilder=t,this.$filter=e}function Te(t,e){this.astBuilder=t,this.$filter=e}function Ne(t){return"constructor"==t}function Pe(t){return ct(t.valueOf)?t.valueOf():ai.call(t)}function Oe(){var n,r,m=bt(),b=bt(),i={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(t,e){i[t]=e},this.setIdentifierFns=function(t,e){return n=t,r=e,this},this.$get=["$filter",function(u){function t(t,e,n){var r,i,o;switch(n=n||y,typeof t){case"string":o=t=t.trim();var a=n?b:m;if(!(r=a[o])){":"===t.charAt(0)&&":"===t.charAt(1)&&(i=!0,t=t.substring(2));var s=new ri(r=n?v:g);(r=new oi(s,u,r).parse(t)).constant?r.$$watchDelegate=p:i?r.$$watchDelegate=r.literal?l:f:r.inputs&&(r.$$watchDelegate=c),n&&(r=function t(o){function e(t,e,n,r){var i=y;y=!0;try{return o(t,e,n,r)}finally{y=i}}if(!o)return o;e.$$watchDelegate=o.$$watchDelegate;e.assign=t(o.assign);e.constant=o.constant;e.literal=o.literal;for(var n=0;o.inputs&&n<o.inputs.length;++n)o.inputs[n]=t(o.inputs[n]);e.inputs=o.inputs;return e}(r)),a[o]=r}return d(r,e);case"function":return d(t,e);default:return d(j,e)}}function h(t,e){return null==t||null==e?t===e:("object"!=typeof t||"object"!=typeof(t=Pe(t)))&&(t===e||t!=t&&e!=e)}function c(t,e,n,o,r){var a;if(1===(s=o.inputs).length){var i=h,s=s[0];return t.$watch(function(t){var e=s(t);return h(e,i)||(a=o(t,void 0,void 0,[e]),i=e&&Pe(e)),a},e,n,r)}for(var u=[],c=[],f=0,l=s.length;f<l;f++)u[f]=h,c[f]=null;return t.$watch(function(t){for(var e=!1,n=0,r=s.length;n<r;n++){var i=s[n](t);(e||(e=!h(i,u[n])))&&(c[n]=i,u[n]=i&&Pe(i))}return e&&(a=o(t,void 0,void 0,c)),a},e,n,r)}function f(t,r,e,n){var i,o;return i=t.$watch(function(t){return n(t)},function(t,e,n){o=t,ct(r)&&r.apply(this,arguments),q(t)&&n.$$postDigest(function(){q(o)&&i()})},e)}function l(t,r,e,n){function i(t){var e=!0;return it(t,function(t){q(t)||(e=!1)}),e}var o,a;return o=t.$watch(function(t){return n(t)},function(t,e,n){a=t,ct(r)&&r.call(this,t,e,n),i(t)&&n.$$postDigest(function(){i(a)&&o()})},e)}function p(t,e,n,r){var i;return i=t.$watch(function(t){return i(),r(t)},e,n)}function d(i,o){if(!o)return i;var t=i.$$watchDelegate,a=!1;t=t!==l&&t!==f?function(t,e,n,r){return n=a&&r?r[0]:i(t,e,n,r),o(n,t,e)}:function(t,e,n,r){return n=i(t,e,n,r),t=o(n,t,e),q(n)?t:n};return i.$$watchDelegate&&i.$$watchDelegate!==c?t.$$watchDelegate=i.$$watchDelegate:o.$stateful||(t.$$watchDelegate=c,a=!i.inputs,t.inputs=i.inputs?i.inputs:[i]),t}var e=Xn().noUnsafeEval,g={csp:e,expensiveChecks:!1,literals:k(i),isIdentifierStart:ct(n)&&n,isIdentifierContinue:ct(r)&&r},v={csp:e,expensiveChecks:!0,literals:k(i),isIdentifierStart:ct(n)&&n,isIdentifierContinue:ct(r)&&r},y=!1;return t.$$runningExpensiveChecks=function(){return y},t}]}function De(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return je(function(t){e.$evalAsync(t)},t)}]}function Re(){this.$get=["$browser","$exceptionHandler",function(e,t){return je(function(t){e.defer(t)},t)}]}function je(t,a){function e(){this.$$state={status:0}}function o(e,n){return function(t){n.call(e,t)}}function s(o){!o.processScheduled&&o.pending&&(o.processScheduled=!0,t(function(){var t,e,n;n=o.pending,o.processScheduled=!1,o.pending=void 0;for(var r=0,i=n.length;r<i;++r){e=n[r][0],t=n[r][o.status];try{ct(t)?e.resolve(t(o.value)):1===o.status?e.resolve(o.value):e.reject(o.value)}catch(t){e.reject(t),a(t)}}}))}function u(){this.promise=new e}var n=h("$q",TypeError),r=function(){var t=new u;return t.resolve=o(t,t.resolve),t.reject=o(t,t.reject),t.notify=o(t,t.notify),t};ot(e.prototype,{then:function(t,e,n){if(at(t)&&at(e)&&at(n))return this;var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),0<this.$$state.status&&s(this.$$state),r.promise},catch:function(t){return this.then(null,t)},finally:function(e,t){return this.then(function(t){return c(t,!0,e)},function(t){return c(t,!1,e)},t)}}),ot(u.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(n("qcycle",t)):this.$$resolve(t))},$$resolve:function(t){function e(t){i||(i=!0,r.$$reject(t))}var n,r=this,i=!1;try{(st(t)||ct(t))&&(n=t&&t.then),ct(n)?(this.promise.$$state.status=-1,n.call(t,function(t){i||(i=!0,r.$$resolve(t))},e,o(this,this.notify))):(this.promise.$$state.value=t,this.promise.$$state.status=1,s(this.promise.$$state))}catch(t){e(t),a(t)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,s(this.promise.$$state)},notify:function(i){var o=this.promise.$$state.pending;this.promise.$$state.status<=0&&o&&o.length&&t(function(){for(var t,e,n=0,r=o.length;n<r;n++){e=o[n][0],t=o[n][3];try{e.notify(ct(t)?t(i):i)}catch(t){a(t)}}})}});var i=function(t,e){var n=new u;return e?n.resolve(t):n.reject(t),n.promise},c=function(t,e,n){var r=null;try{ct(n)&&(r=n())}catch(t){return i(t,!1)}return r&&ct(r.then)?r.then(function(){return i(t,e)},function(t){return i(t,!1)}):i(t,e)},f=function(t,e,n,r){var i=new u;return i.resolve(t),i.promise.then(e,n,r)},l=function(t){if(!ct(t))throw n("norslvr",t);var e=new u;return t(function(t){e.resolve(t)},function(t){e.reject(t)}),e.promise};return l.prototype=e.prototype,l.defer=r,l.reject=function(t){var e=new u;return e.reject(t),e.promise},l.when=f,l.resolve=f,l.all=function(t){var n=new u,r=0,i=Hn(t)?[]:{};return it(t,function(t,e){r++,f(t).then(function(t){i.hasOwnProperty(e)||(i[e]=t,--r||n.resolve(i))},function(t){i.hasOwnProperty(e)||n.reject(t)})}),0===r&&n.resolve(i),n.promise},l.race=function(t){var e=r();return it(t,function(t){f(t).then(e.resolve,e.reject)}),e.promise},l}function Le(){this.$get=["$window","$timeout",function(t,n){var r=t.requestAnimationFrame||t.webkitRequestAnimationFrame,i=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,e=!!r,o=e?function(t){var e=r(t);return function(){i(e)}}:function(t){var e=n(t,16.66,!1);return function(){n.cancel(e)}};return o.supported=e,o}]}function qe(){var $=10,w=h("$rootScope"),_=null,C=null;this.digestTtl=function(t){return arguments.length&&($=t),$},this.$get=["$exceptionHandler","$parse","$browser",function(l,d,h){function r(t){t.currentScope.$$destroyed=!0}function i(){this.$id=++zn,this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,(this.$root=this).$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function p(t){if(y.$$phase)throw w("inprog",y.$$phase);y.$$phase=t}function u(t,e){for(;t.$$watchersCount+=e,t=t.$parent;);}function o(t,e,n){for(;t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n],t=t.$parent;);}function g(){}function v(){for(;n.length;)try{n.shift()()}catch(t){l(t)}C=null}i.prototype={constructor:i,$new:function(t,e){var n;return e=e||this,t?(n=new i).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++zn,this.$$ChildScope=null}return e.prototype=t,e}(this)),n=new this.$$ChildScope),n.$parent=e,n.$$prevSibling=e.$$childTail,e.$$childHead?(e.$$childTail.$$nextSibling=n,e.$$childTail=n):e.$$childHead=e.$$childTail=n,(t||e!=this)&&n.$on("$destroy",r),n},$watch:function(t,e,n,r){var i=d(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var o=this,a=o.$$watchers,s={fn:e,last:g,get:i,exp:r||t,eq:!!n};return _=null,ct(e)||(s.fn=j),a||(a=o.$$watchers=[]),a.unshift(s),u(this,1),function(){0<=pt(a,s)&&u(o,-1),_=null}},$watchGroup:function(t,r){function i(){c=!1,e?(e=!1,r(a,a,u)):r(a,o,u)}var o=Array(t.length),a=Array(t.length),s=[],u=this,c=!1,e=!0;if(t.length)return 1===t.length?this.$watch(t[0],function(t,e,n){a[0]=t,o[0]=e,r(a,t===e?a:o,n)}):(it(t,function(t,n){var e=u.$watch(t,function(t,e){a[n]=t,o[n]=e,c||(c=!0,u.$evalAsync(i))});s.push(e)}),function(){for(;s.length;)s.shift()()});var n=!0;return u.$evalAsync(function(){n&&r(a,a,u)}),function(){n=!1}},$watchCollection:function(t,e){function n(t){var e,n,r;if(!at(i=t)){if(st(i))if(A(i))for(o!==f&&(p=(o=f).length=0,u++),t=i.length,p!==t&&(u++,o.length=p=t),e=0;e<t;e++)r=o[e],n=i[e],r!=r&&n!=n||r===n||(u++,o[e]=n);else{for(e in o!==l&&(o=l={},p=0,u++),t=0,i)On.call(i,e)&&(t++,n=i[e],r=o[e],e in o?r!=r&&n!=n||r===n||(u++,o[e]=n):(p++,o[e]=n,u++));if(t<p)for(e in u++,o)On.call(i,e)||(p--,delete o[e])}else o!==i&&(o=i,u++);return u}}n.$stateful=!0;var i,o,r,a=this,s=1<e.length,u=0,c=d(t,n),f=[],l={},h=!0,p=0;return this.$watch(c,function(){if(h?(h=!1,e(i,i,a)):e(i,r,a),s)if(st(i))if(A(i)){r=Array(i.length);for(var t=0;t<i.length;t++)r[t]=i[t]}else for(t in r={},i)On.call(i,t)&&(r[t]=i[t]);else r=i})},$digest:function(){var t,e,n,r,i,o,a,s,u,c=$,f=[];p("$digest"),h.$$checkUrlChange(),this===y&&null!==C&&(h.defer.cancel(C),v()),_=null;do{for(o=!1,a=this,r=0;r<m.length;r++){try{(u=m[r]).scope.$eval(u.expression,u.locals)}catch(t){l(t)}_=null}m.length=0;t:do{if(r=a.$$watchers)for(i=r.length;i--;)try{if(t=r[i])if((e=(0,t.get)(a))===(n=t.last)||(t.eq?dt(e,n):"number"==typeof e&&"number"==typeof n&&isNaN(e)&&isNaN(n))){if(t===_){o=!1;break t}}else o=!0,(_=t).last=t.eq?k(e,null):e,(0,t.fn)(e,n===g?e:n,a),c<5&&(f[s=4-c]||(f[s]=[]),f[s].push({msg:ct(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:e,oldVal:n}))}catch(t){l(t)}if(!(r=a.$$watchersCount&&a.$$childHead||a!==this&&a.$$nextSibling))for(;a!==this&&!(r=a.$$nextSibling);)a=a.$parent}while(a=r);if((o||m.length)&&!c--)throw y.$$phase=null,w("infdig",$,f)}while(o||m.length);for(y.$$phase=null;x<b.length;)try{b[x++]()}catch(t){l(t)}b.length=x=0},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;for(var e in this.$broadcast("$destroy"),this.$$destroyed=!0,this===y&&h.$$applicationDestroyed(),u(this,-this.$$watchersCount),this.$$listenerCount)o(this,this.$$listenerCount[e],e);t&&t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail==this&&(t.$$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=j,this.$on=this.$watch=this.$watchGroup=function(){return j},this.$$listeners={},this.$$nextSibling=null,function t(e){9===An&&(e.$$childHead&&t(e.$$childHead),e.$$nextSibling&&t(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}(this)}},$eval:function(t,e){return d(t)(this,e)},$evalAsync:function(t,e){y.$$phase||m.length||h.defer(function(){m.length&&y.$digest()}),m.push({scope:this,expression:d(t),locals:e})},$$postDigest:function(t){b.push(t)},$apply:function(t){try{p("$apply");try{return this.$eval(t)}finally{y.$$phase=null}}catch(t){l(t)}finally{try{y.$digest()}catch(t){throw l(t),t}}},$applyAsync:function(t){var e=this;t&&n.push(function(){e.$eval(t)}),t=d(t),null===C&&(C=h.defer(function(){y.$apply(v)}))},$on:function(e,n){var r=this.$$listeners[e];r||(this.$$listeners[e]=r=[]),r.push(n);for(var t=this;t.$$listenerCount[e]||(t.$$listenerCount[e]=0),t.$$listenerCount[e]++,t=t.$parent;);var i=this;return function(){var t=r.indexOf(n);-1!==t&&(r[t]=null,o(i,1,e))}},$emit:function(t,e){var n,r,i,o=[],a=this,s=!1,u={name:t,targetScope:a,stopPropagation:function(){s=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=S([u],arguments,1);do{for(n=a.$$listeners[t]||o,u.currentScope=a,r=0,i=n.length;r<i;r++)if(n[r])try{n[r].apply(null,c)}catch(t){l(t)}else n.splice(r,1),r--,i--;if(s)return u.currentScope=null,u;a=a.$parent}while(a);return u.currentScope=null,u},$broadcast:function(t,e){var n=this,r=this,i={name:t,targetScope:this,preventDefault:function(){i.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[t])return i;for(var o,a,s=S([i],arguments,1);n=r;){for(o=0,a=(r=(i.currentScope=n).$$listeners[t]||[]).length;o<a;o++)if(r[o])try{r[o].apply(null,s)}catch(t){l(t)}else r.splice(o,1),o--,a--;if(!(r=n.$$listenerCount[t]&&n.$$childHead||n!==this&&n.$$nextSibling))for(;n!==this&&!(r=n.$$nextSibling);)n=n.$parent}return i.currentScope=null,i}};var y=new i,m=y.$$asyncQueue=[],b=y.$$postDigestQueue=[],n=y.$$applyAsyncQueue=[],x=0;return y}]}function Be(){var i=/^\s*(https?|ftp|mailto|tel|file):/,o=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return q(t)?(i=t,this):i},this.imgSrcSanitizationWhitelist=function(t){return q(t)?(o=t,this):o},this.$get=function(){return function(t,e){var n,r=e?o:i;return""===(n=Ye(t).href)||n.match(r)?t:"unsafe:"+n}}}function Fe(t){var e=[];return q(t)&&it(t,function(t){e.push(function(t){if("self"===t)return t;if(ut(t)){if(-1<t.indexOf("***"))throw si("iwcard",t);return t=Yn(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(g(t))return new RegExp("^"+t.source+"$");throw si("imatcher")}(t))}),e}function Ie(){this.SCE_CONTEXTS=ui;var c=["self"],f=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(c=Fe(t)),c},this.resourceUrlBlacklist=function(t){return arguments.length&&(f=Fe(t)),f},this.$get=["$injector",function(t){function a(t,e){return"self"===t?Xe(e):!!t.exec(e.href)}function e(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}var s=function(t){throw si("unsafe")};t.has("$sanitize")&&(s=t.get("$sanitize"));var n=e(),u={};return u[ui.HTML]=e(n),u[ui.CSS]=e(n),u[ui.URL]=e(n),u[ui.JS]=e(n),u[ui.RESOURCE_URL]=e(u[ui.URL]),{trustAs:function(t,e){var n=u.hasOwnProperty(t)?u[t]:null;if(!n)throw si("icontext",t,e);if(null===e||at(e)||""===e)return e;if("string"!=typeof e)throw si("itype",t);return new n(e)},getTrusted:function(t,e){if(null===e||at(e)||""===e)return e;if((i=u.hasOwnProperty(t)?u[t]:null)&&e instanceof i)return e.$$unwrapTrustedValue();if(t===ui.RESOURCE_URL){var n,r,i=Ye(e.toString()),o=!1;for(n=0,r=c.length;n<r;n++)if(a(c[n],i)){o=!0;break}if(o)for(n=0,r=f.length;n<r;n++)if(a(f[n],i)){o=!1;break}if(o)return e;throw si("insecurl",e.toString())}if(t===ui.HTML)return s(e);throw si("unsafe")},valueOf:function(t){return t instanceof n?t.$$unwrapTrustedValue():t}}}]}function Ue(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(r,t){if(e&&An<8)throw si("iequirks");var i=F(ui);i.isEnabled=function(){return e},i.trustAs=t.trustAs,i.getTrusted=t.getTrusted,i.valueOf=t.valueOf,e||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=L),i.parseAs=function(e,t){var n=r(t);return n.literal&&n.constant?n:r(t,function(t){return i.getTrusted(e,t)})};var o=i.parseAs,a=i.getTrusted,s=i.trustAs;return it(ui,function(e,t){var n=Dn(t);i[I("parse_as_"+n)]=function(t){return o(e,t)},i[I("get_trusted_"+n)]=function(t){return a(e,t)},i[I("trust_as_"+n)]=function(t){return s(e,t)}}),i}]}function ze(){this.$get=["$window","$document",function(t,e){var n,r={},i=!(t.chrome&&t.chrome.app&&t.chrome.app.runtime)&&t.history&&t.history.pushState,o=d((/android (\d+)/.exec(Dn((t.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((t.navigator||{}).userAgent),s=e[0]||{},u=/^(Moz|webkit|ms)(?=[A-Z])/,c=s.body&&s.body.style,f=!1,l=!1;if(c){for(var h in c)if(f=u.exec(h)){n=(n=f[0])[0].toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in c&&"webkit"),f=!!("transition"in c||n+"Transition"in c),l=!!("animation"in c||n+"Animation"in c),!o||f&&l||(f=ut(c.webkitTransition),l=ut(c.webkitAnimation))}return{history:!(!i||o<4||a),hasEvent:function(t){if("input"===t&&An<=11)return!1;if(at(r[t])){var e=s.createElement("div");r[t]="on"+t in e}return r[t]},csp:Xn(),vendorPrefix:n,transitions:f,animations:l,android:o}}]}function He(){var u;this.httpOptions=function(t){return t?(u=t,this):u},this.$get=["$templateCache","$http","$q","$sce",function(r,i,o,a){function s(e,n){s.totalPendingRequests++,ut(e)&&!at(r.get(e))||(e=a.getTrustedResourceUrl(e));var t=i.defaults&&i.defaults.transformResponse;return Hn(t)?t=t.filter(function(t){return t!==Gt}):t===Gt&&(t=null),i.get(e,ot({cache:r,transformResponse:t},u)).finally(function(){s.totalPendingRequests--}).then(function(t){return r.put(e,t.data),t.data},function(t){if(!n)throw ci("tpload",e,t.status,t.statusText);return o.reject(t)})}return s.totalPendingRequests=0,s}]}function Ve(){this.$get=["$rootScope","$browser","$location",function(e,n,r){return{findBindings:function(t,n,r){t=t.getElementsByClassName("ng-binding");var i=[];return it(t,function(e){var t=Un.element(e).data("$binding");t&&it(t,function(t){r?new RegExp("(^|\\s)"+Yn(n)+"(\\s|\\||$)").test(t)&&i.push(e):-1!=t.indexOf(n)&&i.push(e)})}),i},findModels:function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=t.querySelectorAll("["+r[i]+"model"+(n?"=":"*=")+'"'+e+'"]');if(o.length)return o}},getLocation:function(){return r.url()},setLocation:function(t){t!==r.url()&&(r.url(t),e.$digest())},whenStable:function(t){n.notifyWhenNoOutstandingRequests(t)}}}]}function We(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(u,c,f,l,h){function t(t,e,n){ct(t)||(n=e,e=t,t=j);var r,i=jn.call(arguments,3),o=q(n)&&!n,a=(o?l:f).defer(),s=a.promise;return r=c.defer(function(){try{a.resolve(t.apply(null,i))}catch(t){a.reject(t),h(t)}finally{delete p[s.$$timeoutId]}o||u.$apply()},e),s.$$timeoutId=r,p[r]=a,s}var p={};return t.cancel=function(t){return!!(t&&t.$$timeoutId in p)&&(p[t.$$timeoutId].reject("canceled"),delete p[t.$$timeoutId],c.defer.cancel(t.$$timeoutId))},t}]}function Ye(t){return An&&(fi.setAttribute("href",t),t=fi.href),fi.setAttribute("href",t),{href:fi.href,protocol:fi.protocol?fi.protocol.replace(/:$/,""):"",host:fi.host,search:fi.search?fi.search.replace(/^\?/,""):"",hash:fi.hash?fi.hash.replace(/^#/,""):"",hostname:fi.hostname,port:fi.port,pathname:"/"===fi.pathname.charAt(0)?fi.pathname:"/"+fi.pathname}}function Xe(t){return(t=ut(t)?Ye(t):t).protocol===li.protocol&&t.host===li.host}function Ge(){this.$get=_(D)}function Je(t){function o(e){try{return decodeURIComponent(e)}catch(t){return e}}var a=t[0]||{},s={},u="";return function(){var t,e,n,r,i;if((t=a.cookie||"")!==u)for(t=(u=t).split("; "),s={},n=0;n<t.length;n++)0<(r=(e=t[n]).indexOf("="))&&(i=o(e.substring(0,r)),at(s[i])&&(s[i]=o(e.substring(r+1))));return s}}function Ze(){this.$get=Je}function Ke(r){function i(t,e){if(st(t)){var n={};return it(t,function(t,e){n[e]=i(e,t)}),n}return r.factory(t+"Filter",e)}this.register=i,this.$get=["$injector",function(e){return function(t){return e.get(t+"Filter")}}],i("currency",nn),i("date",hn),i("filter",Qe),i("json",pn),i("limitTo",dn),i("lowercase",mi),i("number",rn),i("orderBy",vn),i("uppercase",bi)}function Qe(){return function(t,e,n,r){if(!A(t)){if(null==t)return t;throw h("filter")("notarray",t)}var i,o,a,s,u,c;switch(r=r||"$",en(e)){case"function":break;case"boolean":case"null":case"number":case"string":i=!0;case"object":a=n,s=r,u=i,c=st(o=e)&&s in o,!0===a?a=dt:ct(a)||(a=function(t,e){return!(at(t)||(null===t||null===e?t!==e:st(e)||st(t)&&!f(t)||(t=Dn(""+t),e=Dn(""+e),-1===t.indexOf(e))))}),e=function(t){return c&&!st(t)?tn(t,o[s],a,s,!1):tn(t,o,a,s,u)};break;default:return t}return Array.prototype.filter.call(t,e)}}function tn(t,e,n,r,i,o){var a=en(t),s=en(e);if("string"===s&&"!"===e.charAt(0))return!tn(t,e.substring(1),n,r,i);if(Hn(t))return t.some(function(t){return tn(t,e,n,r,i)});switch(a){case"object":var u;if(i){for(u in t)if("$"!==u.charAt(0)&&tn(t[u],e,n,r,!0))return!0;return!o&&tn(t,e,n,r,!1)}if("object"!==s)return n(t,e);for(u in e)if(!ct(o=e[u])&&!at(o)&&!tn((a=u===r)?t:t[u],o,n,r,a,a))return!1;return!0;case"function":return!1;default:return n(t,e)}}function en(t){return null===t?"null":typeof t}function nn(t){var r=t.NUMBER_FORMATS;return function(t,e,n){return at(e)&&(e=r.CURRENCY_SYM),at(n)&&(n=r.PATTERNS[1].maxFrac),null==t?t:on(t,r.PATTERNS[1],r.GROUP_SEP,r.DECIMAL_SEP,n).replace(/\u00A4/g,e)}}function rn(t){var n=t.NUMBER_FORMATS;return function(t,e){return null==t?t:on(t,n.PATTERNS[0],n.GROUP_SEP,n.DECIMAL_SEP,e)}}function on(t,e,n,r,i){if(!ut(t)&&!b(t)||isNaN(t))return"";var o=!isFinite(t),a=!1,s=Math.abs(t)+"",u="";if(o)u="∞";else{for(function(t,e,n,r){var i=t.d,o=i.length-t.i;if(r=i[n=(e=at(e)?Math.min(Math.max(n,o),r):+e)+t.i],0<n){i.splice(Math.max(t.i,n));for(var a=n;a<i.length;a++)i[a]=0}else for(o=Math.max(0,o),t.i=1,i.length=Math.max(1,n=e+1),i[0]=0,a=1;a<n;a++)i[a]=0;if(5<=r)if(n-1<0){for(r=0;n<r;r--)i.unshift(0),t.i++;i.unshift(1),t.i++}else i[n-1]++;for(;o<Math.max(0,e);o++)i.push(0);(e=i.reduceRight(function(t,e,n,r){return e+=t,r[n]=e%10,Math.floor(e/10)},0))&&(i.unshift(e),t.i++)}(a=function(t){var e,n,r,i,o,a=0;for(-1<(n=t.indexOf(pi))&&(t=t.replace(pi,"")),0<(r=t.search(/e/i))?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)==di;r++);if(r==(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)==di;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return hi<n&&(e=e.splice(0,hi-1),a=n-1,n=1),{d:e,e:a,i:n}}(s),i,e.minFrac,e.maxFrac),u=a.d,s=a.i,i=a.e,o=[],a=u.reduce(function(t,e){return t&&!e},!0);s<0;)u.unshift(0),s++;for(0<s?o=u.splice(s,u.length):(o=u,u=[0]),s=[],u.length>=e.lgSize&&s.unshift(u.splice(-e.lgSize,u.length).join(""));u.length>e.gSize;)s.unshift(u.splice(-e.gSize,u.length).join(""));u.length&&s.unshift(u.join("")),u=s.join(n),o.length&&(u+=r+o.join("")),i&&(u+="e+"+i)}return t<0&&!a?e.negPre+u+e.negSuf:e.posPre+u+e.posSuf}function an(t,e,n,r){var i="";for((t<0||r&&t<=0)&&(r?t=1-t:(t=-t,i="-")),t=""+t;t.length<e;)t=di+t;return n&&(t=t.substr(t.length-e)),i+t}function sn(e,n,r,i,o){return r=r||0,function(t){return t=t["get"+e](),(0<r||-r<t)&&(t+=r),0===t&&-12==r&&(t=12),an(t,n,i,o)}}function un(r,i,o){return function(t,e){var n=t["get"+r]();return e[Rn((o?"STANDALONE":"")+(i?"SHORT":"")+r)][n]}}function cn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function fn(n){return function(t){var e=cn(t.getFullYear());return t=+new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))-+e,an(t=1+Math.round(t/6048e5),n)}}function ln(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function hn(u){var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(e,t,n){var r,i,o="",a=[];if(t=t||"mediumDate",t=u.DATETIME_FORMATS[t]||t,ut(e)&&(e=yi.test(e)?d(e):function(t){var e;if(e=t.match(c)){t=new Date(0);var n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=d(e[9]+e[10]),r=d(e[9]+e[11])),i.call(t,d(e[1]),d(e[2])-1,d(e[3])),n=d(e[4]||0)-n,r=d(e[5]||0)-r,i=d(e[6]||0),e=Math.round(1e3*parseFloat("0."+(e[7]||0))),o.call(t,n,r,i,e)}return t}(e)),b(e)&&(e=new Date(e)),!y(e)||!isFinite(e.getTime()))return e;for(;t;)t=(i=vi.exec(t))?(a=S(a,i,1)).pop():(a.push(t),null);var s=e.getTimezoneOffset();return n&&(s=l(n,s),e=x(e,n,!0)),it(a,function(t){r=gi[t],o+=r?r(e,u.DATETIME_FORMATS,s):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),o}}function pn(){return function(t,e){return at(e)&&(e=2),C(t,e)}}function dn(){return function(t,e,n){return e=1/0===Math.abs(Number(e))?Number(e):d(e),isNaN(e)?t:(b(t)&&(t=t.toString()),A(t)?(n=(n=!n||isNaN(n)?0:d(n))<0?Math.max(0,t.length+n):n,0<=e?gn(t,n,n+e):0===n?gn(t,e,t.length):gn(t,Math.max(0,n+e),n)):t)}}function gn(t,e,n){return ut(t)?t.slice(e,n):jn.call(t,e,n)}function vn(i){function u(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function c(t,e){var n=0,r=t.type;if(r===(i=e.type)){var i=t.value,o=e.value;"string"===r?(i=i.toLowerCase(),o=o.toLowerCase()):"object"===r&&(st(i)&&(i=t.index),st(o)&&(o=e.index)),i!==o&&(n=i<o?-1:1)}else n=r<i?-1:1;return n}return function(t,e,n,r){if(null==t)return t;if(!A(t))throw h("orderBy")("notarray",t);Hn(e)||(e=[e]),0===e.length&&(e=["+"]);var o=e.map(function(t){var e=1,n=L;if(ct(t))n=t;else if(ut(t)&&("+"!=t.charAt(0)&&"-"!=t.charAt(0)||(e="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(n=i(t)).constant)){var r=n();n=function(t){return t[r]}}return{get:n,descending:e}}),a=n?-1:1,s=ct(r)?r:c;return(t=Array.prototype.map.call(t,function(n,r){return{value:n,tieBreaker:{value:r,type:"number",index:r},predicateValues:o.map(function(t){var e=t.get(n);return t=typeof e,null===e?(t="string",e="null"):"object"===t&&(ct(e.valueOf)&&u(e=e.valueOf())||f(e)&&u(e=e.toString())),{value:e,type:t,index:r}})}})).sort(function(t,e){for(var n=0,r=o.length;n<r;n++){var i=s(t.predicateValues[n],e.predicateValues[n]);if(i)return i*o[n].descending*a}return s(t.tieBreaker,e.tieBreaker)*a}),t.map(function(t){return t.value})}}function yn(t){return ct(t)&&(t={link:t}),t.restrict=t.restrict||"AC",_(t)}function mn(t,e,n,r,i){var o=this,a=[];o.$error={},o.$$success={},o.$pending=void 0,o.$name=i(e.name||e.ngForm||"")(n),o.$dirty=!1,o.$pristine=!0,o.$valid=!0,o.$invalid=!1,o.$submitted=!1,o.$$parentForm=wi,o.$rollbackViewValue=function(){it(a,function(t){t.$rollbackViewValue()})},o.$commitViewValue=function(){it(a,function(t){t.$commitViewValue()})},o.$addControl=function(t){B(t.$name,"input"),a.push(t),t.$name&&(o[t.$name]=t),t.$$parentForm=o},o.$$renameControl=function(t,e){var n=t.$name;o[n]===t&&delete o[n],(o[e]=t).$name=e},o.$removeControl=function(n){n.$name&&o[n.$name]===n&&delete o[n.$name],it(o.$pending,function(t,e){o.$setValidity(e,null,n)}),it(o.$error,function(t,e){o.$setValidity(e,null,n)}),it(o.$$success,function(t,e){o.$setValidity(e,null,n)}),pt(a,n),n.$$parentForm=wi},Sn({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];r?-1===r.indexOf(n)&&r.push(n):t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(pt(r,n),0===r.length&&delete t[e])},$animate:r}),o.$setDirty=function(){r.removeClass(t,io),r.addClass(t,oo),o.$dirty=!0,o.$pristine=!1,o.$$parentForm.$setDirty()},o.$setPristine=function(){r.setClass(t,io,oo+" ng-submitted"),o.$dirty=!1,o.$pristine=!0,o.$submitted=!1,it(a,function(t){t.$setPristine()})},o.$setUntouched=function(){it(a,function(t){t.$setUntouched()})},o.$setSubmitted=function(){r.addClass(t,"ng-submitted"),o.$submitted=!0,o.$$parentForm.$setSubmitted()}}function bn(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function xn(t,n,r,i,e,o){var a=Dn(n[0].type);if(!e.android){var s=!1;n.on("compositionstart",function(){s=!0}),n.on("compositionend",function(){s=!1,c()})}var u,c=function(t){if(u&&(o.defer.cancel(u),u=null),!s){var e=n.val();t=t&&t.type,"password"===a||r.ngTrim&&"false"===r.ngTrim||(e=Wn(e)),(i.$viewValue!==e||""===e&&i.$$hasNativeValidators)&&i.$setViewValue(e,t)}};if(e.hasEvent("input"))n.on("input",c);else{var f=function(t,e,n){u||(u=o.defer(function(){u=null,e&&e.value===n||c(t)}))};n.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||f(t,this,this.value)}),e.hasEvent("paste")&&n.on("paste cut",f)}n.on("change",c),Ri[a]&&i.$$hasNativeValidators&&a===r.type&&n.on("keydown wheel mousedown",function(t){if(!u){var e=this.validity,n=e.badInput,r=e.typeMismatch;u=o.defer(function(){u=null,e.badInput===n&&e.typeMismatch===r||c(t)})}}),i.$render=function(){var t=i.$isEmpty(i.$viewValue)?"":i.$viewValue;n.val()!==t&&n.val(t)}}function $n(i,o){return function(t,e){var n,r;if(y(t))return t;if(ut(t)){if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.substring(1,t.length-1)),Si.test(t))return new Date(t);if(i.lastIndex=0,n=i.exec(t))return n.shift(),r=e?{yyyy:e.getFullYear(),MM:e.getMonth()+1,dd:e.getDate(),HH:e.getHours(),mm:e.getMinutes(),ss:e.getSeconds(),sss:e.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},it(n,function(t,e){e<o.length&&(r[o[e]]=+t)}),new Date(r.yyyy,r.MM-1,r.dd,r.HH,r.mm,r.ss||0,1e3*r.sss||0)}return NaN}}function wn(p,d,g,v){return function(t,e,n,r,i,o,a){function s(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function u(t){return q(t)&&!y(t)?g(t)||void 0:t}_n(t,e,n,r),xn(0,e,n,r,i,o);var c,f,l,h=r&&r.$options&&r.$options.timezone;(r.$$parserName=p,r.$parsers.push(function(t){return r.$isEmpty(t)?null:d.test(t)?(t=g(t,c),h&&(t=x(t,h)),t):void 0}),r.$formatters.push(function(t){if(t&&!y(t))throw so("datefmt",t);return s(t)?((c=t)&&h&&(c=x(c,h,!0)),a("date")(t,v,h)):(c=null,"")}),q(n.min)||n.ngMin)&&(r.$validators.min=function(t){return!s(t)||at(f)||g(t)>=f},n.$observe("min",function(t){f=u(t),r.$validate()}));(q(n.max)||n.ngMax)&&(r.$validators.max=function(t){return!s(t)||at(l)||g(t)<=l},n.$observe("max",function(t){l=u(t),r.$validate()}))}}function _n(t,n,e,r){(r.$$hasNativeValidators=st(n[0].validity))&&r.$parsers.push(function(t){var e=n.prop("validity")||{};return e.badInput||e.typeMismatch?void 0:t})}function Cn(t,e,n,r,i){if(q(r)){if(!(t=t(r)).constant)throw so("constexpr",n,r);return t(e)}return i}function kn(o,g){return o="ngClass"+o,["$animate",function(h){function p(t,e){var n=[],r=0;t:for(;r<t.length;r++){for(var i=t[r],o=0;o<e.length;o++)if(i==e[o])continue t;n.push(i)}return n}function d(t){var n=[];return Hn(t)?(it(t,function(t){n=n.concat(d(t))}),n):ut(t)?t.split(" "):st(t)?(it(t,function(t,e){t&&(n=n.concat(e.split(" ")))}),n):t}return{restrict:"AC",link:function(s,u,i){function c(t){t=f(t,1),i.$addClass(t)}function f(t,e){var n=u.data("$classCounts")||bt(),r=[];return it(t,function(t){(0<e||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(0<e)&&r.push(t))}),u.data("$classCounts",n),r.join(" ")}function e(t){if(!0===g||(1&s.$index)===g){var e=d(t||[]);if(l){if(!dt(t,l)){var n=d(l);o=p(i=e,r=n),a=p(r,i),o=f(o,1),a=f(a,-1),o&&o.length&&h.addClass(u,o),a&&a.length&&h.removeClass(u,a)}}else c(e)}var r,i,o,a;l=Hn(t)?t.map(function(t){return F(t)}):F(t)}var l;s.$watch(i[o],e,!0),i.$observe("class",function(t){e(s.$eval(i[o]))}),"ngClass"!==o&&s.$watch("$index",function(t,e){var n=1&t;if(n!==(1&e)){var r=d(s.$eval(i[o]));n===g?c(r):(n=f(r,-1),i.$removeClass(n))}})}}}]}function Sn(t){function r(t,e){e&&!a[t]?(c.addClass(n,t),a[t]=!0):!e&&a[t]&&(c.removeClass(n,t),a[t]=!1)}function i(t,e){t=t?"-"+yt(t,"-"):"",r(no+t,!0===e),r(ro+t,!1===e)}var o=t.ctrl,n=t.$element,a={},s=t.set,u=t.unset,c=t.$animate;a[ro]=!(a[no]=n.hasClass(no)),o.$setValidity=function(t,e,n){at(e)?(o.$pending||(o.$pending={}),s(o.$pending,t,n)):(o.$pending&&u(o.$pending,t,n),Mn(o.$pending)&&(o.$pending=void 0)),lt(e)?e?(u(o.$error,t,n),s(o.$$success,t,n)):(s(o.$error,t,n),u(o.$$success,t,n)):(u(o.$error,t,n),u(o.$$success,t,n)),o.$pending?(r(ao,!0),o.$valid=o.$invalid=void 0,i("",null)):(r(ao,!1),o.$valid=Mn(o.$error),o.$invalid=!o.$valid,i("",o.$valid)),i(t,e=o.$pending&&o.$pending[t]?void 0:!o.$error[t]&&(!!o.$$success[t]||null)),o.$$parentForm.$setValidity(t,e,o)}}function Mn(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var An,En,Tn,Nn,Pn=/^\/(.+)\/([a-z]*)$/,On=Object.prototype.hasOwnProperty,Dn=function(t){return ut(t)?t.toLowerCase():t},Rn=function(t){return ut(t)?t.toUpperCase():t},jn=[].slice,Ln=[].splice,qn=[].push,Bn=Object.prototype.toString,Fn=Object.getPrototypeOf,In=h("ng"),Un=D.angular||(D.angular={}),zn=0;An=D.document.documentMode,j.$inject=[],L.$inject=[];var Hn=Array.isArray,Vn=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Wn=function(t){return ut(t)?t.trim():t},Yn=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Xn=function(){if(!q(Xn.rules)){var t=D.document.querySelector("[ng-csp]")||D.document.querySelector("[data-ng-csp]");if(t){var e=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");Xn.rules={noUnsafeEval:!e||-1!==e.indexOf("no-unsafe-eval"),noInlineStyle:!e||-1!==e.indexOf("no-inline-style")}}else{t=Xn;try{new Function(""),e=!1}catch(t){e=!0}t.rules={noUnsafeEval:e,noInlineStyle:!1}}}return Xn.rules},Gn=function(){if(q(Gn.name_))return Gn.name_;var t,e,n,r,i=Zn.length;for(e=0;e<i;++e)if(n=Zn[e],t=D.document.querySelector("["+n.replace(":","\\:")+"jq]")){r=t.getAttribute(n+"jq");break}return Gn.name_=r},Jn=/:/g,Zn=["ng-","data-ng-","ng:","x-ng-"],Kn=/[A-Z]/g,Qn=!1,tr=3,er={full:"1.5.8",major:1,minor:5,dot:8,codeName:"arbitrary-fallbacks"};H.expando="ng339";var nr=H.cache={},rr=1;H._data=function(t){return this.cache[t[this.expando]]||{}};var ir=/([\:\-\_]+(.))/g,or=/^moz([A-Z])/,ar={mouseleave:"mouseout",mouseenter:"mouseover"},sr=h("jqLite"),ur=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,cr=/<|&#?\w+;/,fr=/<([\w:-]+)/,lr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,hr={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,"",""]};hr.optgroup=hr.option,hr.tbody=hr.tfoot=hr.colgroup=hr.caption=hr.thead,hr.th=hr.td;var pr=D.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},dr=H.prototype={ready:function(t){function e(){n||(n=!0,t())}var n=!1;"complete"===D.document.readyState?D.setTimeout(e):(this.on("DOMContentLoaded",e),H(D).on("load",e))},toString:function(){var e=[];return it(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(t){return En(0<=t?this[t]:this[this.length+t])},length:0,push:qn,sort:[].sort,splice:[].splice},gr={};it("multiple selected checked disabled readOnly required open".split(" "),function(t){gr[Dn(t)]=t});var vr={};it("input select option textarea button form details".split(" "),function(t){vr[t]=!0});var yr={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};it({data:G,removeData:Y,hasData:function(t){for(var e in nr[t.ng339])return!0;return!1},cleanData:function(t){for(var e=0,n=t.length;e<n;e++)Y(t[e])}},function(t,e){H[e]=t}),it({data:G,inheritedData:et,scope:function(t){return En.data(t,"$scope")||et(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return En.data(t,"$isolateScope")||En.data(t,"$isolateScopeNoTemplate")},controller:tt,injector:function(t){return et(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:J,css:function(t,e,n){if(e=I(e),!q(n))return t.style[e];t.style[e]=n},attr:function(t,e,n){var r=t.nodeType;if(r!==tr&&2!==r&&8!==r)if(r=Dn(e),gr[r]){if(!q(n))return t[e]||(t.attributes.getNamedItem(e)||j).specified?r:void 0;n?(t[e]=!0,t.setAttribute(e,r)):(t[e]=!1,t.removeAttribute(r))}else if(q(n))t.setAttribute(e,n);else if(t.getAttribute)return null===(t=t.getAttribute(e,2))?void 0:t},prop:function(t,e,n){if(!q(n))return t[e];t[e]=n},text:function(){function t(t,e){if(at(e)){var n=t.nodeType;return 1===n||n===tr?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(at(e)){if(t.multiple&&"select"===ht(t)){var n=[];return it(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){if(at(e))return t.innerHTML;V(t,!0),t.innerHTML=e},empty:nt},function(a,t){H.prototype[t]=function(t,e){var n,r,i=this.length;if(a!==nt&&at(2==a.length&&a!==J&&a!==tt?t:e)){if(st(t)){for(n=0;n<i;n++)if(a===G)a(this[n],t);else for(r in t)a(this[n],r,t[r]);return this}for(i=at(n=a.$dv)?Math.min(i,1):i,r=0;r<i;r++){var o=a(this[r],t,e);n=n?n+o:o}return n}for(n=0;n<i;n++)a(this[n],t,e);return this}}),it({removeData:Y,on:function(i,t,o,e){if(q(e))throw sr("onargs");if(U(i)){var a=(e=X(i,!0)).events,s=e.handle;s||(s=e.handle=(c=a,(f=function(t,e){t.isDefaultPrevented=function(){return t.defaultPrevented};var n=c[e||t.type],r=n?n.length:0;if(r){if(at(t.immediatePropagationStopped)){var i=t.stopImmediatePropagation;t.stopImmediatePropagation=function(){t.immediatePropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),i&&i.call(t)}}t.isImmediatePropagationStopped=function(){return!0===t.immediatePropagationStopped};var o=n.specialHandlerWrapper||_t;1<r&&(n=F(n));for(var a=0;a<r;a++)t.isImmediatePropagationStopped()||o(u,t,n[a])}}).elem=u=i,f));for(var n=(e=0<=t.indexOf(" ")?t.split(" "):[t]).length,r=function(t,e,n){var r=a[t];r||((r=a[t]=[]).specialHandlerWrapper=e,"$destroy"===t||n||i.addEventListener(t,s,!1)),r.push(o)};n--;)t=e[n],ar[t]?(r(ar[t],Ct),r(t,void 0,!0)):r(t)}var u,c,f},off:W,one:function(e,n,r){(e=En(e)).on(n,function t(){e.off(n,r),e.off(n,t)}),e.on(n,r)},replaceWith:function(e,t){var n,r=e.parentNode;V(e),it(new H(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(t){var e=[];return it(t.childNodes,function(t){1===t.nodeType&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){if(1===(n=t.nodeType)||11===n)for(var n=0,r=(e=new H(e)).length;n<r;n++)t.appendChild(e[n])},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild;it(new H(t),function(t){e.insertBefore(t,n)})}},wrap:function(t,e){xt(t,En(e).eq(0).clone()[0])},remove:rt,detach:function(t){rt(t,!0)},after:function(t,e){for(var n=t,r=t.parentNode,i=0,o=(e=new H(e)).length;i<o;i++){var a=e[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:K,removeClass:Z,toggleClass:function(n,t,r){t&&it(t.split(" "),function(t){var e=r;at(e)&&(e=!J(n,t)),(e?K:Z)(n,t)})},parent:function(t){return(t=t.parentNode)&&11!==t.nodeType?t:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:$t,triggerHandler:function(e,t,n){var r,i,o=t.type||t,a=X(e);(a=(a=a&&a.events)&&a[o])&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:j,type:o,target:e},t.type&&(r=ot(r,t)),t=F(a),i=n?[r].concat(n):[r],it(t,function(t){r.isImmediatePropagationStopped()||t.apply(e,i)}))}},function(a,t){H.prototype[t]=function(t,e,n){for(var r,i=0,o=this.length;i<o;i++)at(r)?q(r=a(this[i],t,e,n))&&(r=En(r)):Q(r,a(this[i],t,e,n));return q(r)?r:this},H.prototype.bind=H.prototype.on,H.prototype.unbind=H.prototype.off}),Mt.prototype={put:function(t,e){this[St(t,this.nextUid)]=e},get:function(t){return this[St(t,this.nextUid)]},remove:function(t){var e=this[t=St(t,this.nextUid)];return delete this[t],e}};var mr=[function(){this.$get=[function(){return Mt}]}],br=/^([^\(]+?)=>/,xr=/^[^\(]*\(\s*([^\)]*)\)/m,$r=/,/,wr=/^\s*(_?)(\S+?)\1\s*$/,_r=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Cr=h("$injector");Et.$$annotate=function(t,e,n){var r,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw ut(n)&&n||(n=t.name||((i=At(i=t))?"function("+(i[1]||"").replace(/[\s\r\n]+/," ")+")":"fn")),Cr("strictdi",n);it((e=At(t))[1].split($r),function(t){t.replace(wr,function(t,e,n){r.push(n)})})}t.$inject=r}}else Hn(t)?(N(t[e=t.length-1],"fn"),r=t.slice(0,e)):N(t,"fn",!0);return r};var kr=h("$animate"),Sr=function(){this.$get=j},Mr=function(){var u=new Mt,c=[];this.$get=["$$AnimateRunner","$rootScope",function(i,o){function a(e,t,n){var r=!1;return t&&it(t=ut(t)?t.split(" "):Hn(t)?t:[],function(t){t&&(r=!0,e[t]=n)}),r}function s(){it(c,function(t){var e=u.get(t);if(e){var n=function(t){ut(t)&&(t=t.split(" "));var e=bt();return it(t,function(t){t.length&&(e[t]=!0)}),e}(t.attr("class")),r="",i="";it(e,function(t,e){t!==!!n[e]&&(t?r+=(r.length?" ":"")+e:i+=(i.length?" ":"")+e)}),it(t,function(t){r&&K(t,r),i&&Z(t,i)}),u.remove(t)}}),c.length=0}return{enabled:j,on:j,off:j,pin:j,push:function(t,e,n,r){return r&&r(),(n=n||{}).from&&t.css(n.from),n.to&&t.css(n.to),(n.addClass||n.removeClass)&&(e=n.addClass,r=n.removeClass,e=a(n=u.get(t)||{},e,!0),r=a(n,r,!1),(e||r)&&(u.put(t,n),c.push(t),1===c.length&&o.$$postDigest(s))),(t=new i).complete(),t}}}]},Ar=["$provide",function(r){var i=this;this.$$registeredAnimations=Object.create(null),this.register=function(t,e){if(t&&"."!==t.charAt(0))throw kr("notcsel",t);var n=t+"-animation";i.$$registeredAnimations[t.substr(1)]=n,r.factory(n,e)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null)&&/(\s+|\/)ng-animate(\s+|\/)/.test(this.$$classNameFilter.toString()))throw kr("nongcls","ng-animate");return this.$$classNameFilter},this.$get=["$$animateQueue",function(o){function i(t,e,n){if(n){var r;t:{for(r=0;r<n.length;r++){var i=n[r];if(1===i.nodeType){r=i;break t}}r=void 0}!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:o.on,off:o.off,pin:o.pin,enabled:o.enabled,cancel:function(t){t.end&&t.end()},enter:function(t,e,n,r){return e=e&&En(e),n=n&&En(n),i(t,e=e||n.parent(),n),o.push(t,"enter",Pt(r))},move:function(t,e,n,r){return e=e&&En(e),n=n&&En(n),i(t,e=e||n.parent(),n),o.push(t,"move",Pt(r))},leave:function(t,e){return o.push(t,"leave",Pt(e),function(){t.remove()})},addClass:function(t,e,n){return(n=Pt(n)).addClass=Nt(n.addclass,e),o.push(t,"addClass",n)},removeClass:function(t,e,n){return(n=Pt(n)).removeClass=Nt(n.removeClass,e),o.push(t,"removeClass",n)},setClass:function(t,e,n,r){return(r=Pt(r)).addClass=Nt(r.addClass,e),r.removeClass=Nt(r.removeClass,n),o.push(t,"setClass",r)},animate:function(t,e,n,r,i){return(i=Pt(i)).from=i.from?ot(i.from,e):e,i.to=i.to?ot(i.to,n):n,i.tempClasses=Nt(i.tempClasses,r||"ng-inline-animate"),o.push(t,"animate",i)}}}]}],Er=function(){this.$get=["$$rAF",function(e){function n(t){r.push(t),1<r.length||e(function(){for(var t=0;t<r.length;t++)r[t]();r=[]})}var r=[];return function(){var e=!1;return n(function(){e=!0}),function(t){e?t():n(t)}}}]},Tr=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(e,t,r,i,o){function n(t){this.setHost(t);var n=r();this._doneCallbacks=[],this._tick=function(t){var e=i[0];e&&e.hidden?o(t,0,!1):n(t)},this._state=0}return n.chain=function(t,n){var r=0;!function e(){r===t.length?n(!0):t[r](function(t){!1===t?n(!1):(r++,e())})}()},n.all=function(e,n){function r(t){o=o&&t,++i===e.length&&n(o)}var i=0,o=!0;it(e,function(t){t.done(r)})},n.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:j,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){!1===t?n():e()})})}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},catch:function(t){return this.getPromise().catch(t)},finally:function(t){return this.getPromise().finally(t)},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(t){var e=this;0===e._state&&(e._state=1,e._tick(function(){e._resolve(t)}))},_resolve:function(e){2!==this._state&&(it(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},n}]},Nr=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(a,t,s){return function(t,e){function n(){return a(function(){r.addClass&&(t.addClass(r.addClass),r.addClass=null),r.removeClass&&(t.removeClass(r.removeClass),r.removeClass=null),r.to&&(t.css(r.to),r.to=null),i||o.complete(),i=!0}),o}var r=e||{};r.$$prepared||(r=k(r)),r.cleanupStyles&&(r.from=r.to=null),r.from&&(t.css(r.from),r.from=null);var i,o=new s;return{start:n,end:n}}}]},Pr=h("$compile"),Or=new function(){};Lt.$inject=["$provide","$$sanitizeUriProvider"],qt.prototype.isFirstChange=function(){return this.previousValue===Or};var Dr=/^((?:x|data)[\:\-_])/i,Rr=h("$controller"),jr=/^(\S+)(\s+as\s+([\w$]+))?$/,Lr=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof En&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},qr="application/json",Br={"Content-Type":qr+";charset=utf-8"},Fr=/^\[|^\{(?!\{)/,Ir={"[":/]$/,"{":/}$/},Ur=/^\)\]\}',?\n/,zr=h("$http"),Hr=function(t){return function(){throw zr("legacy",t)}},Vr=Un.$interpolateMinErr=h("$interpolate");Vr.throwNoconcat=function(t){throw Vr("noconcat",t)},Vr.interr=function(t,e){return Vr("interr",t,e.toString())};var Wr=function(){this.$get=["$window",function(t){var i=t.angular.callbacks,o={};return{createCallback:function(t){var e,n="angular.callbacks."+(t="_"+(i.$$counter++).toString(36)),r=((e=function(t){e.data=t,e.called=!0}).id=t,e);return o[n]=i[t]=r,n},wasCalled:function(t){return o[t].called},getResponse:function(t){return o[t].data},removeCallback:function(t){delete i[o[t].id],delete o[t]}}}]},Yr=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Xr={http:80,https:443,ftp:21},Gr=h("$location"),Jr={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:pe("$$absUrl"),url:function(t){if(at(t))return this.$$url;var e=Yr.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:pe("$$protocol"),host:pe("$$host"),port:pe("$$port"),path:de("$$path",function(t){return"/"==(t=null!==t?t.toString():"").charAt(0)?t:"/"+t}),search:function(n,t){switch(arguments.length){case 0:return this.$$search;case 1:if(ut(n)||b(n))n=n.toString(),this.$$search=c(n);else{if(!st(n))throw Gr("isrcharg");it(n=k(n,{}),function(t,e){null==t&&delete n[e]}),this.$$search=n}break;default:at(t)||null===t?delete this.$$search[n]:this.$$search[n]=t}return this.$$compose(),this},hash:de("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};it([he,le,fe],function(e){e.prototype=Object.create(Jr),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==fe||!this.$$html5)throw Gr("nostate");return this.$$state=at(t)?null:t,this}});var Zr=h("$parse"),Kr=Function.prototype.call,Qr=Function.prototype.apply,ti=Function.prototype.bind,ei=bt();it("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){ei[t]=!0});var ni={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},ri=function(t){this.options=t};ri.prototype={constructor:ri,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;)if('"'===(t=this.text.charAt(this.index))||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var e=t+this.peek(),n=e+this.peek(2),r=ei[e],i=ei[n];ei[t]||r||i?(t=i?n:r?e:t,this.tokens.push({index:this.index,text:t,operator:!0}),this.index+=t.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){return t=t||1,this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t},isIdentifierStart:function(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isIdentifierContinue:function(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue:function(t,e){return this.isValidIdentifierStart(t,e)||this.isNumber(t)},codePointAt:function(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888},peekMultichar:function(){var t=this.text.charAt(this.index),e=this.peek();if(!e)return t;var n=t.charCodeAt(0),r=e.charCodeAt(0);return 55296<=n&&n<=56319&&56320<=r&&r<=57343?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){throw n=n||this.index,e=q(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n,Zr("lexerr",t,e,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=Dn(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){var t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var e=this.peekMultichar();if(!this.isIdentifierContinue(e))break;this.index+=e.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",r=t,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);r=r+o;if(i)"u"===o?((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,n+=String.fromCharCode(parseInt(i,16))):n+=ni[o]||o,i=!1;else if("\\"===o)i=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var ii=function(t,e){this.lexer=t,this.options=e};ii.Program="Program",ii.ExpressionStatement="ExpressionStatement",ii.AssignmentExpression="AssignmentExpression",ii.ConditionalExpression="ConditionalExpression",ii.LogicalExpression="LogicalExpression",ii.BinaryExpression="BinaryExpression",ii.UnaryExpression="UnaryExpression",ii.CallExpression="CallExpression",ii.MemberExpression="MemberExpression",ii.Identifier="Identifier",ii.Literal="Literal",ii.ArrayExpression="ArrayExpression",ii.Property="Property",ii.ObjectExpression="ObjectExpression",ii.ThisExpression="ThisExpression",ii.LocalsExpression="LocalsExpression",ii.NGValueParameter="NGValueParameter",ii.prototype={ast:function(t){return this.text=t,this.tokens=this.lexer.lex(t),t=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var t=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:ii.Program,body:t}},expressionStatement:function(){return{type:ii.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:ii.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:ii.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:ii.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:ii.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:ii.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:ii.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:ii.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:ii.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:ii.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=k(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:ii.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:ii.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:ii.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:ii.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){t=[t];for(var e={type:ii.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return e},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)for(;t.push(this.filterChain()),this.expect(","););return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:ii.Identifier,name:t.text}},constant:function(){return{type:ii.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:ii.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:ii.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:ii.ObjectExpression,properties:e}},throwError:function(t,e){throw Zr("syntax",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw Zr("ueoe",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw Zr("ueoe",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=(t=this.tokens[t]).text;if(o===e||o===n||o===r||o===i||!(e||n||r||i))return t}return!1},expect:function(t,e,n,r){return!!(t=this.peek(t,e,n,r))&&(this.tokens.shift(),t)},selfReferential:{this:{type:ii.ThisExpression},$locals:{type:ii.LocalsExpression}}},Ee.prototype={compile:function(t,e){var i=this,n=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Ce(n,i.$filter);var r,o="";return this.stage="assign",(r=Me(n))&&(this.state.computing="assign",o=this.nextId(),this.recurse(r,o),this.return_(o),o="fn.assign="+this.generateFunction("assign","s,v,l")),r=ke(n.body),i.stage="inputs",it(r,function(t,e){var n="fn"+e;i.state[n]={vars:[],body:[],own:{}},i.state.computing=n;var r=i.nextId();i.recurse(t,r),i.return_(r),i.state.inputs.push(n),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(n),o='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+o+this.watchFns()+"return fn;",o=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",o)(this.$filter,ye,be,xe,me,$e,we,_e,t),this.state=this.stage=void 0,o.literal=Ae(n),o.constant=n.constant,o},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return it(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var n=[],r=this;return it(this.state.filters,function(t,e){n.push(t+"=$filter("+r.escape(e)+")")}),n.length?"var "+n.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(n,e,t,r,i,o){var a,s,u,c,f,l=this;if(r=r||j,!o&&q(n.watchId))e=e||this.nextId(),this.if_("i",this.lazyAssign(e,this.computedMember("i",n.watchId)),this.lazyRecurse(n,e,t,r,i,!0));else switch(n.type){case ii.Program:it(n.body,function(t,e){l.recurse(t.expression,void 0,void 0,function(t){s=t}),e!==n.body.length-1?l.current().body.push(s,";"):l.return_(s)});break;case ii.Literal:c=this.escape(n.value),this.assign(e,c),r(c);break;case ii.UnaryExpression:this.recurse(n.argument,void 0,void 0,function(t){s=t}),c=n.operator+"("+this.ifDefined(s,0)+")",this.assign(e,c),r(c);break;case ii.BinaryExpression:this.recurse(n.left,void 0,void 0,function(t){a=t}),this.recurse(n.right,void 0,void 0,function(t){s=t}),c="+"===n.operator?this.plus(a,s):"-"===n.operator?this.ifDefined(a,0)+n.operator+this.ifDefined(s,0):"("+a+")"+n.operator+"("+s+")",this.assign(e,c),r(c);break;case ii.LogicalExpression:e=e||this.nextId(),l.recurse(n.left,e),l.if_("&&"===n.operator?e:l.not(e),l.lazyRecurse(n.right,e)),r(e);break;case ii.ConditionalExpression:e=e||this.nextId(),l.recurse(n.test,e),l.if_(e,l.lazyRecurse(n.alternate,e),l.lazyRecurse(n.consequent,e)),r(e);break;case ii.Identifier:e=e||this.nextId(),t&&(t.context="inputs"===l.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),t.computed=!1,t.name=n.name),ye(n.name),l.if_("inputs"===l.stage||l.not(l.getHasOwnProperty("l",n.name)),function(){l.if_("inputs"===l.stage||"s",function(){i&&1!==i&&l.if_(l.not(l.nonComputedMember("s",n.name)),l.lazyAssign(l.nonComputedMember("s",n.name),"{}")),l.assign(e,l.nonComputedMember("s",n.name))})},e&&l.lazyAssign(e,l.nonComputedMember("l",n.name))),(l.state.expensiveChecks||Ne(n.name))&&l.addEnsureSafeObject(e),r(e);break;case ii.MemberExpression:a=t&&(t.context=this.nextId())||this.nextId(),e=e||this.nextId(),l.recurse(n.object,a,void 0,function(){l.if_(l.notNull(a),function(){i&&1!==i&&l.addEnsureSafeAssignContext(a),n.computed?(s=l.nextId(),l.recurse(n.property,s),l.getStringValue(s),l.addEnsureSafeMemberName(s),i&&1!==i&&l.if_(l.not(l.computedMember(a,s)),l.lazyAssign(l.computedMember(a,s),"{}")),c=l.ensureSafeObject(l.computedMember(a,s)),l.assign(e,c),t&&(t.computed=!0,t.name=s)):(ye(n.property.name),i&&1!==i&&l.if_(l.not(l.nonComputedMember(a,n.property.name)),l.lazyAssign(l.nonComputedMember(a,n.property.name),"{}")),c=l.nonComputedMember(a,n.property.name),(l.state.expensiveChecks||Ne(n.property.name))&&(c=l.ensureSafeObject(c)),l.assign(e,c),t&&(t.computed=!1,t.name=n.property.name))},function(){l.assign(e,"undefined")}),r(e)},!!i);break;case ii.CallExpression:e=e||this.nextId(),n.filter?(s=l.filter(n.callee.name),u=[],it(n.arguments,function(t){var e=l.nextId();l.recurse(t,e),u.push(e)}),c=s+"("+u.join(",")+")",l.assign(e,c),r(e)):(s=l.nextId(),a={},u=[],l.recurse(n.callee,s,a,function(){l.if_(l.notNull(s),function(){l.addEnsureSafeFunction(s),it(n.arguments,function(t){l.recurse(t,l.nextId(),void 0,function(t){u.push(l.ensureSafeObject(t))})}),c=a.name?(l.state.expensiveChecks||l.addEnsureSafeObject(a.context),l.member(a.context,a.name,a.computed)+"("+u.join(",")+")"):s+"("+u.join(",")+")",c=l.ensureSafeObject(c),l.assign(e,c)},function(){l.assign(e,"undefined")}),r(e)}));break;case ii.AssignmentExpression:if(s=this.nextId(),a={},!Se(n.left))throw Zr("lval");this.recurse(n.left,void 0,a,function(){l.if_(l.notNull(a.context),function(){l.recurse(n.right,s),l.addEnsureSafeObject(l.member(a.context,a.name,a.computed)),l.addEnsureSafeAssignContext(a.context),c=l.member(a.context,a.name,a.computed)+n.operator+s,l.assign(e,c),r(e||c)})},1);break;case ii.ArrayExpression:u=[],it(n.elements,function(t){l.recurse(t,l.nextId(),void 0,function(t){u.push(t)})}),c="["+u.join(",")+"]",this.assign(e,c),r(c);break;case ii.ObjectExpression:f=!(u=[]),it(n.properties,function(t){t.computed&&(f=!0)}),f?(e=e||this.nextId(),this.assign(e,"{}"),it(n.properties,function(t){t.computed?(a=l.nextId(),l.recurse(t.key,a)):a=t.key.type===ii.Identifier?t.key.name:""+t.key.value,s=l.nextId(),l.recurse(t.value,s),l.assign(l.member(e,a,t.computed),s)})):(it(n.properties,function(e){l.recurse(e.value,n.constant?void 0:l.nextId(),void 0,function(t){u.push(l.escape(e.key.type===ii.Identifier?e.key.name:""+e.key.value)+":"+t)})}),c="{"+u.join(",")+"}",this.assign(e,c)),r(e||c);break;case ii.ThisExpression:this.assign(e,"s"),r("s");break;case ii.LocalsExpression:this.assign(e,"l"),r("l");break;case ii.NGValueParameter:this.assign(e,"v"),r("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(!0===t)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return/[$_a-zA-Z][$_a-zA-Z0-9]*/.test(e)?t+"."+e:t+'["'+e.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,r,i,o){var a=this;return function(){a.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(ut(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(b(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw Zr("esc")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},Te.prototype={compile:function(t,e){var n,r,i,o=this,a=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,Ce(a,o.$filter),(n=Me(a))&&(r=this.recurse(n)),(n=ke(a.body))&&(i=[],it(n,function(t,e){var n=o.recurse(t);t.input=n,i.push(n),t.watchId=e}));var s=[];return it(a.body,function(t){s.push(o.recurse(t.expression))}),n=0===a.body.length?j:1===a.body.length?s[0]:function(e,n){var r;return it(s,function(t){r=t(e,n)}),r},r&&(n.assign=function(t,e,n){return r(t,n,e)}),i&&(n.inputs=i),n.literal=Ae(a),n.constant=a.constant,n},recurse:function(t,s,e){var o,u,c,f=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case ii.Literal:return this.value(t.value,s);case ii.UnaryExpression:return u=this.recurse(t.argument),this["unary"+t.operator](u,s);case ii.BinaryExpression:case ii.LogicalExpression:return o=this.recurse(t.left),u=this.recurse(t.right),this["binary"+t.operator](o,u,s);case ii.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),s);case ii.Identifier:return ye(t.name,f.expression),f.identifier(t.name,f.expensiveChecks||Ne(t.name),s,e,f.expression);case ii.MemberExpression:return o=this.recurse(t.object,!1,!!e),t.computed||(ye(t.property.name,f.expression),u=t.property.name),t.computed&&(u=this.recurse(t.property)),t.computed?this.computedMember(o,u,s,e,f.expression):this.nonComputedMember(o,u,f.expensiveChecks,s,e,f.expression);case ii.CallExpression:return c=[],it(t.arguments,function(t){c.push(f.recurse(t))}),t.filter&&(u=this.$filter(t.callee.name)),t.filter||(u=this.recurse(t.callee,!0)),t.filter?function(t,e,n,r){for(var i=[],o=0;o<c.length;++o)i.push(c[o](t,e,n,r));return t=u.apply(void 0,i,r),s?{context:void 0,name:void 0,value:t}:t}:function(t,e,n,r){var i,o=u(t,e,n,r);if(null!=o.value){be(o.context,f.expression),xe(o.value,f.expression),i=[];for(var a=0;a<c.length;++a)i.push(be(c[a](t,e,n,r),f.expression));i=be(o.value.apply(o.context,i),f.expression)}return s?{value:i}:i};case ii.AssignmentExpression:return o=this.recurse(t.left,!0,1),u=this.recurse(t.right),function(t,e,n,r){var i=o(t,e,n,r);return t=u(t,e,n,r),be(i.value,f.expression),$e(i.context),i.context[i.name]=t,s?{value:t}:t};case ii.ArrayExpression:return c=[],it(t.elements,function(t){c.push(f.recurse(t))}),function(t,e,n,r){for(var i=[],o=0;o<c.length;++o)i.push(c[o](t,e,n,r));return s?{value:i}:i};case ii.ObjectExpression:return c=[],it(t.properties,function(t){t.computed?c.push({key:f.recurse(t.key),computed:!0,value:f.recurse(t.value)}):c.push({key:t.key.type===ii.Identifier?t.key.name:""+t.key.value,computed:!1,value:f.recurse(t.value)})}),function(t,e,n,r){for(var i={},o=0;o<c.length;++o)c[o].computed?i[c[o].key(t,e,n,r)]=c[o].value(t,e,n,r):i[c[o].key]=c[o].value(t,e,n,r);return s?{value:i}:i};case ii.ThisExpression:return function(t){return s?{value:t}:t};case ii.LocalsExpression:return function(t,e){return s?{value:e}:e};case ii.NGValueParameter:return function(t,e,n){return s?{value:n}:n}}},"unary+":function(i,o){return function(t,e,n,r){return t=q(t=i(t,e,n,r))?+t:0,o?{value:t}:t}},"unary-":function(i,o){return function(t,e,n,r){return t=q(t=i(t,e,n,r))?-t:0,o?{value:t}:t}},"unary!":function(i,o){return function(t,e,n,r){return t=!i(t,e,n,r),o?{value:t}:t}},"binary+":function(o,a,s){return function(t,e,n,r){var i=o(t,e,n,r);return i=_e(i,t=a(t,e,n,r)),s?{value:i}:i}},"binary-":function(o,a,s){return function(t,e,n,r){var i=o(t,e,n,r);return t=a(t,e,n,r),i=(q(i)?i:0)-(q(t)?t:0),s?{value:i}:i}},"binary*":function(i,o,a){return function(t,e,n,r){return t=i(t,e,n,r)*o(t,e,n,r),a?{value:t}:t}},"binary/":function(i,o,a){return function(t,e,n,r){return t=i(t,e,n,r)/o(t,e,n,r),a?{value:t}:t}},"binary%":function(i,o,a){return function(t,e,n,r){return t=i(t,e,n,r)%o(t,e,n,r),a?{value:t}:t}},"binary===":function(i,o,a){return function(t,e,n,r){return t=i(t,e,n,r)===o(t,e,n,r),a?{value:t}:t}},"binary!==":function(i,o,a){return function(t,e,n,r){return t=i(t,e,n,r)!==o(t,e,n,r),a?{value:t}:t}},"binary==":function(i,o,a){return function(t,e,n,r){return t=i(t,e,n,r)==o(t,e,n,r),a?{value:t}:t}},"binary!=":function(i,o,a){return function(t,e,n,r){return t=i(t,e,n,r)!=o(t,e,n,r),a?{value:t}:t}},"binary<":function(i,o,a){return function(t,e,n,r){return t=i(t,e,n,r)<o(t,e,n,r),a?{value:t}:t}},"binary>":function(i,o,a){return function(t,e,n,r){return t=i(t,e,n,r)>o(t,e,n,r),a?{value:t}:t}},"binary<=":function(i,o,a){return function(t,e,n,r){return t=i(t,e,n,r)<=o(t,e,n,r),a?{value:t}:t}},"binary>=":function(i,o,a){return function(t,e,n,r){return t=i(t,e,n,r)>=o(t,e,n,r),a?{value:t}:t}},"binary&&":function(i,o,a){return function(t,e,n,r){return t=i(t,e,n,r)&&o(t,e,n,r),a?{value:t}:t}},"binary||":function(i,o,a){return function(t,e,n,r){return t=i(t,e,n,r)||o(t,e,n,r),a?{value:t}:t}},"ternary?:":function(i,o,a,s){return function(t,e,n,r){return t=i(t,e,n,r)?o(t,e,n,r):a(t,e,n,r),s?{value:t}:t}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(i,o,a,s,u){return function(t,e,n,r){return t=e&&i in e?e:t,s&&1!==s&&t&&!t[i]&&(t[i]={}),e=t?t[i]:void 0,o&&be(e,u),a?{context:t,name:i,value:e}:e}},computedMember:function(s,u,c,f,l){return function(t,e,n,r){var i,o,a=s(t,e,n,r);return null!=a&&(i=u(t,e,n,r),ye(i+="",l),f&&1!==f&&($e(a),a&&!a[i]&&(a[i]={})),be(o=a[i],l)),c?{context:a,name:i,value:o}:o}},nonComputedMember:function(i,o,a,s,u,c){return function(t,e,n,r){return t=i(t,e,n,r),u&&1!==u&&($e(t),t&&!t[o]&&(t[o]={})),e=null!=t?t[o]:void 0,(a||Ne(o))&&be(e,c),s?{context:t,name:o,value:e}:e}},inputs:function(i,o){return function(t,e,n,r){return r?r[o]:i(t,e,n)}}};var oi=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new ii(t,n),this.astCompiler=n.csp?new Te(this.ast,e):new Ee(this.ast,e)};oi.prototype={constructor:oi,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var ai=Object.prototype.valueOf,si=h("$sce"),ui={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ci=h("$compile"),fi=D.document.createElement("a"),li=Ye(D.location.href);Je.$inject=["$document"],Ke.$inject=["$provide"];var hi=22,pi=".",di="0";nn.$inject=["$locale"];var gi={yyyy:sn("FullYear",4,0,!(rn.$inject=["$locale"]),!0),yy:sn("FullYear",2,0,!0,!0),y:sn("FullYear",1,0,!1,!0),MMMM:un("Month"),MMM:un("Month",!0),MM:sn("Month",2,1),M:sn("Month",1,1),LLLL:un("Month",!1,!0),dd:sn("Date",2),d:sn("Date",1),HH:sn("Hours",2),H:sn("Hours",1),hh:sn("Hours",2,-12),h:sn("Hours",1,-12),mm:sn("Minutes",2),m:sn("Minutes",1),ss:sn("Seconds",2),s:sn("Seconds",1),sss:sn("Milliseconds",3),EEEE:un("Day"),EEE:un("Day",!0),a:function(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){return(0<=(t=-1*n)?"+":"")+(an(Math[0<t?"floor":"ceil"](t/60),2)+an(Math.abs(t%60),2))},ww:fn(2),w:fn(1),G:ln,GG:ln,GGG:ln,GGGG:function(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}},vi=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,yi=/^\-?\d+$/;hn.$inject=["$locale"];var mi=_(Dn),bi=_(Rn);vn.$inject=["$parse"];var xi=_({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Bn.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),$i={};it(gr,function(t,r){function i(t,e,n){t.$watch(n[o],function(t){n.$set(r,!!t)})}if("multiple"!=t){var o=Bt("ng-"+r),e=i;"checked"===t&&(e=function(t,e,n){n.ngModel!==n[o]&&i(t,0,n)}),$i[o]=function(){return{restrict:"A",priority:100,link:e}}}}),it(yr,function(t,r){$i[r]=function(){return{priority:100,link:function(t,e,n){"ngPattern"===r&&"/"==n.ngPattern.charAt(0)&&(e=n.ngPattern.match(Pn))?n.$set("ngPattern",new RegExp(e[1],e[2])):t.$watch(n[r],function(t){n.$set(r,t)})}}}}),it(["src","srcset","href"],function(o){var a=Bt("ng-"+o);$i[a]=function(){return{priority:99,link:function(t,e,n){var r=o,i=o;"href"===o&&"[object SVGAnimatedString]"===Bn.call(e.prop("href"))&&(i="xlinkHref",n.$attr[i]="xlink:href",r=null),n.$observe(a,function(t){t?(n.$set(i,t),An&&r&&e.prop(r,n[i])):"href"===o&&n.$set(i,null)})}}}});var wi={$addControl:j,$$renameControl:function(t,e){t.$name=e},$removeControl:j,$setValidity:j,$setDirty:j,$setPristine:j,$setSubmitted:j};mn.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var _i=function(n){return["$timeout","$parse",function(u,e){function c(t){return""===t?e('this[""]').assign:e(t).assign||j}return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:mn,compile:function(t,e){t.addClass(io).addClass(no);var s=e.name?"name":!(!n||!e.ngForm)&&"ngForm";return{pre:function(e,t,n,r){var i=r[0];if(!("action"in n)){var o=function(t){e.$apply(function(){i.$commitViewValue(),i.$setSubmitted()}),t.preventDefault()};t[0].addEventListener("submit",o,!1),t.on("$destroy",function(){u(function(){t[0].removeEventListener("submit",o,!1)},0,!1)})}(r[1]||i.$$parentForm).$addControl(i);var a=s?c(i.$name):j;s&&(a(e,i),n.$observe(s,function(t){i.$name!==t&&(a(e,void 0),i.$$parentForm.$$renameControl(i,t),(a=c(i.$name))(e,i))})),t.on("$destroy",function(){i.$$parentForm.$removeControl(i),a(e,void 0),ot(i,wi)})}}}}}]},Ci=_i(),ki=_i(!0),Si=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Mi=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Ai=/^(?=.{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])?)*$/,Ei=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ti=/^(\d{4,})-(\d{2})-(\d{2})$/,Ni=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Pi=/^(\d{4,})-W(\d\d)$/,Oi=/^(\d{4,})-(\d\d)$/,Di=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Ri=bt();it(["date","datetime-local","month","time","week"],function(t){Ri[t]=!0});var ji={text:function(t,e,n,r,i,o){xn(0,e,n,r,i,o),bn(r)},date:wn("date",Ti,$n(Ti,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":wn("datetimelocal",Ni,$n(Ni,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:wn("time",Di,$n(Di,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:wn("week",Pi,function(t,e){if(y(t))return t;if(ut(t)){Pi.lastIndex=0;var n=Pi.exec(t);if(n){var r=+n[1],i=+n[2],o=n=0,a=0,s=0,u=cn(r);i=7*(i-1);return e&&(n=e.getHours(),o=e.getMinutes(),a=e.getSeconds(),s=e.getMilliseconds()),new Date(r,0,u.getDate()+i,n,o,a,s)}}return NaN},"yyyy-Www"),month:wn("month",Oi,$n(Oi,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,n,r,i,o){var a,s;(_n(0,e,0,r),xn(0,e,n,r,i,o),r.$$parserName="number",r.$parsers.push(function(t){return r.$isEmpty(t)?null:Ei.test(t)?parseFloat(t):void 0}),r.$formatters.push(function(t){if(!r.$isEmpty(t)){if(!b(t))throw so("numfmt",t);t=t.toString()}return t}),q(n.min)||n.ngMin)&&(r.$validators.min=function(t){return r.$isEmpty(t)||at(a)||a<=t},n.$observe("min",function(t){q(t)&&!b(t)&&(t=parseFloat(t)),a=b(t)&&!isNaN(t)?t:void 0,r.$validate()}));(q(n.max)||n.ngMax)&&(r.$validators.max=function(t){return r.$isEmpty(t)||at(s)||t<=s},n.$observe("max",function(t){q(t)&&!b(t)&&(t=parseFloat(t)),s=b(t)&&!isNaN(t)?t:void 0,r.$validate()}))},url:function(t,e,n,r,i,o){xn(0,e,n,r,i,o),bn(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Mi.test(n)}},email:function(t,e,n,r,i,o){xn(0,e,n,r,i,o),bn(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||Ai.test(n)}},radio:function(t,e,n,r){at(n.name)&&e.attr("name",++zn),e.on("click",function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)}),r.$render=function(){e[0].checked=n.value==r.$viewValue},n.$observe("value",r.$render)},checkbox:function(t,e,n,r,i,o,a,s){var u=Cn(s,t,"ngTrueValue",n.ngTrueValue,!0),c=Cn(s,t,"ngFalseValue",n.ngFalseValue,!1);e.on("click",function(t){r.$setViewValue(e[0].checked,t&&t.type)}),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push(function(t){return dt(t,u)}),r.$parsers.push(function(t){return t?u:c})},hidden:j,button:j,submit:j,reset:j,file:j},Li=["$browser","$sniffer","$filter","$parse",function(i,o,a,s){return{restrict:"E",require:["?ngModel"],link:{pre:function(t,e,n,r){r[0]&&(ji[Dn(n.type)]||ji.text)(t,e,n,r[0],o,i,a,s)}}}}],qi=/^(true|false|\d+)$/,Bi=function(){return{restrict:"A",priority:100,compile:function(t,e){return qi.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},Fi=["$compile",function(r){return{restrict:"AC",compile:function(t){return r.$$addBindingClass(t),function(t,e,n){r.$$addBindingInfo(e,n.ngBind),e=e[0],t.$watch(n.ngBind,function(t){e.textContent=at(t)?"":t})}}}}],Ii=["$interpolate","$compile",function(r,i){return{compile:function(t){return i.$$addBindingClass(t),function(t,e,n){t=r(e.attr(n.$attr.ngBindTemplate)),i.$$addBindingInfo(e,t.expressions),e=e[0],n.$observe("ngBindTemplate",function(t){e.textContent=at(t)?"":t})}}}}],Ui=["$sce","$parse","$compile",function(o,n,a){return{restrict:"A",compile:function(t,e){var r=n(e.ngBindHtml),i=n(e.ngBindHtml,function(t){return o.valueOf(t)});return a.$$addBindingClass(t),function(e,n,t){a.$$addBindingInfo(n,t.ngBindHtml),e.$watch(i,function(){var t=r(e);n.html(o.getTrustedHtml(t)||"")})}}}}],zi=_({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),Hi=kn("",!0),Vi=kn("Odd",0),Wi=kn("Even",1),Yi=yn({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),Xi=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Gi={},Ji={blur:!0,focus:!0};it("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(o){var a=Bt("ng-"+o);Gi[a]=["$parse","$rootScope",function(n,i){return{restrict:"A",compile:function(t,e){var r=n(e[a],null,!0);return function(n,t){t.on(o,function(t){var e=function(){r(n,{$event:t})};Ji[o]&&i.$$phase?n.$evalAsync(e):n.$apply(e)})}}}}]});var Zi=["$animate","$compile",function(u,c){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(t,n,r,e,i){var o,a,s;t.$watch(r.ngIf,function(t){t?a||i(function(t,e){a=e,t[t.length++]=c.$$createComment("end ngIf",r.ngIf),o={clone:t},u.enter(t,n.parent(),n)}):(s&&(s.remove(),s=null),a&&(a.$destroy(),a=null),o&&(s=O(o.clone),u.leave(s).then(function(){s=null}),o=null))})}}}],Ki=["$templateRequest","$anchorScroll","$animate",function(g,v,y){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Un.noop,compile:function(t,e){var n=e.ngInclude||e.src,p=e.onload||"",d=e.autoscroll;return function(o,a,t,s,u){var c,e,f,l=0,h=function(){e&&(e.remove(),e=null),c&&(c.$destroy(),c=null),f&&(y.leave(f).then(function(){e=null}),e=f,f=null)};o.$watch(n,function(n){var r=function(){!q(d)||d&&!o.$eval(d)||v()},i=++l;n?(g(n,!0).then(function(t){if(!o.$$destroyed&&i===l){var e=o.$new();s.template=t,t=u(e,function(t){h(),y.enter(t,null,a).then(r)}),f=t,(c=e).$emit("$includeContentLoaded",n),o.$eval(p)}},function(){o.$$destroyed||i!==l||(h(),o.$emit("$includeContentError",n))}),o.$emit("$includeContentRequested",n)):(h(),s.template=null)})}}}}],Qi=["$compile",function(i){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,e,n,r){Bn.call(e[0]).match(/SVG/)?(e.empty(),i(z(r.template,D.document).childNodes)(t,function(t){e.append(t)},{futureParentElement:e})):(e.html(r.template),i(e.contents())(t))}}}],to=yn({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),eo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,r){var i=e.attr(n.$attr.ngList)||", ",o="false"!==n.ngTrim,a=o?Wn(i):i;r.$parsers.push(function(t){if(!at(t)){var e=[];return t&&it(t.split(a),function(t){t&&e.push(o?Wn(t):t)}),e}}),r.$formatters.push(function(t){if(Hn(t))return t.join(i)}),r.$isEmpty=function(t){return!t||!t.length}}}},no="ng-valid",ro="ng-invalid",io="ng-pristine",oo="ng-dirty",ao="ng-pending",so=h("ngModel"),uo=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(i,e,o,a,s,n,r,u,f,t){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=t(o.name||"",!1)(i),this.$$parentForm=wi;var l,c=s(o.ngModel),h=c.assign,p=c,d=h,g=null,v=this;this.$$setOptions=function(t){if((v.$options=t)&&t.getterSetter){var n=s(o.ngModel+"()"),r=s(o.ngModel+"($$$p)");p=function(t){var e=c(t);return ct(e)&&(e=n(t)),e},d=function(t,e){ct(c(t))?r(t,{$$$p:e}):h(t,e)}}else if(!c.assign)throw so("nonassign",o.ngModel,vt(a))},this.$render=j,this.$isEmpty=function(t){return at(t)||""===t||null===t||t!=t},this.$$updateEmptyClasses=function(t){v.$isEmpty(t)?(n.removeClass(a,"ng-not-empty"),n.addClass(a,"ng-empty")):(n.removeClass(a,"ng-empty"),n.addClass(a,"ng-not-empty"))};var y=0;Sn({ctrl:this,$element:a,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:n}),this.$setPristine=function(){v.$dirty=!1,v.$pristine=!0,n.removeClass(a,oo),n.addClass(a,io)},this.$setDirty=function(){v.$dirty=!0,v.$pristine=!1,n.removeClass(a,io),n.addClass(a,oo),v.$$parentForm.$setDirty()},this.$setUntouched=function(){v.$touched=!1,v.$untouched=!0,n.setClass(a,"ng-untouched","ng-touched")},this.$setTouched=function(){v.$touched=!0,v.$untouched=!1,n.setClass(a,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){r.cancel(g),v.$viewValue=v.$$lastCommittedViewValue,v.$render()},this.$validate=function(){if(!b(v.$modelValue)||!isNaN(v.$modelValue)){var e=v.$$rawModelValue,n=v.$valid,r=v.$modelValue,i=v.$options&&v.$options.allowInvalid;v.$$runValidators(e,v.$$lastCommittedViewValue,function(t){i||n===t||(v.$modelValue=t?e:void 0,v.$modelValue!==r&&v.$$writeModelToScope())})}},this.$$runValidators=function(r,i,e){function o(t,e){c===y&&v.$setValidity(t,e)}function t(t){c===y&&e(t)}var a,s,u,n,c=++y;n=v.$$parserName||"parse",(at(l)?(o(n,null),1):(l||(it(v.$validators,function(t,e){o(e,null)}),it(v.$asyncValidators,function(t,e){o(e,null)})),o(n,l),l))?(u=!0,it(v.$validators,function(t,e){var n=t(r,i);u=u&&n,o(e,n)}),u||(it(v.$asyncValidators,function(t,e){o(e,null)}),0)?(a=[],s=!0,it(v.$asyncValidators,function(t,e){var n=t(r,i);if(!n||!ct(n.then))throw so("nopromise",n);o(e,void 0),a.push(n.then(function(){o(e,!0)},function(){o(e,s=!1)}))}),a.length?f.all(a).then(function(){t(s)},j):t(!0)):t(!1)):t(!1)},this.$commitViewValue=function(){var t=v.$viewValue;r.cancel(g),(v.$$lastCommittedViewValue!==t||""===t&&v.$$hasNativeValidators)&&(v.$$updateEmptyClasses(t),v.$$lastCommittedViewValue=t,v.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){var e=v.$$lastCommittedViewValue;if(l=!at(e)||void 0)for(var t=0;t<v.$parsers.length;t++)if(at(e=v.$parsers[t](e))){l=!1;break}b(v.$modelValue)&&isNaN(v.$modelValue)&&(v.$modelValue=p(i));var n=v.$modelValue,r=v.$options&&v.$options.allowInvalid;v.$$rawModelValue=e,r&&(v.$modelValue=e,v.$modelValue!==n&&v.$$writeModelToScope()),v.$$runValidators(e,v.$$lastCommittedViewValue,function(t){r||(v.$modelValue=t?e:void 0,v.$modelValue!==n&&v.$$writeModelToScope())})},this.$$writeModelToScope=function(){d(i,v.$modelValue),it(v.$viewChangeListeners,function(t){try{t()}catch(t){e(t)}})},this.$setViewValue=function(t,e){v.$viewValue=t,v.$options&&!v.$options.updateOnDefault||v.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(t){var e=0,n=v.$options;n&&q(n.debounce)&&(b(n=n.debounce)?e=n:b(n[t])?e=n[t]:b(n.default)&&(e=n.default)),r.cancel(g),e?g=r(function(){v.$commitViewValue()},e):u.$$phase?v.$commitViewValue():i.$apply(function(){v.$commitViewValue()})},i.$watch(function(){var t=p(i);if(t!==v.$modelValue&&(v.$modelValue==v.$modelValue||t==t)){v.$modelValue=v.$$rawModelValue=t,l=void 0;for(var e=v.$formatters,n=e.length,r=t;n--;)r=e[n](r);v.$viewValue!==r&&(v.$$updateEmptyClasses(r),v.$viewValue=v.$$lastCommittedViewValue=r,v.$render(),v.$$runValidators(t,r,j))}return t})}],co=["$rootScope",function(o){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:uo,priority:1,compile:function(t){return t.addClass(io).addClass("ng-untouched").addClass(no),{pre:function(t,e,n,r){var i=r[0];e=r[1]||i.$$parentForm,i.$$setOptions(r[2]&&r[2].$options),e.$addControl(i),n.$observe("name",function(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)}),t.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,e,n,r){var i=r[0];i.$options&&i.$options.updateOn&&e.on(i.$options.updateOn,function(t){i.$$debounceViewValueCommit(t&&t.type)}),e.on("blur",function(){i.$touched||(o.$$phase?t.$evalAsync(i.$setTouched):t.$apply(i.$setTouched))})}}}}}],fo=/(\s+|^)default(\s+|$)/,lo=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=k(t.$eval(e.ngModelOptions)),q(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Wn(this.$options.updateOn.replace(fo,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},ho=yn({terminal:!0,priority:1e3}),po=h("ngOptions"),go=/^\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]+?))?$/,vo=["$compile","$document","$parse",function(v,y,$){var m=D.document.createElement("option"),b=D.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=j},post:function(t,r,e,n){function i(){var t=p&&s.readValue();if(p)for(var e=p.items.length-1;0<=e;e--){var n=p.items[e];q(n.group)?rt(n.element.parentNode):rt(n.element)}p=d.getOptions();var o={};l&&r.prepend(a),p.items.forEach(function(t){var e,n,r;if(q(t.group)){(e=o[t.group])||(e=b.cloneNode(!1),g.appendChild(e),e.label=null===t.group?"null":t.group,o[t.group]=e);var i=m.cloneNode(!1)}else e=g,i=m.cloneNode(!1);e.appendChild(i),r=i,((n=t).element=r).disabled=n.disabled,n.label!==r.label&&(r.label=n.label,r.textContent=n.label),n.value!==r.value&&(r.value=n.selectValue)}),r[0].appendChild(g),u.$render(),u.$isEmpty(t)||(e=s.readValue(),(d.trackBy||c?dt(t,e):t===e)||(u.$setViewValue(e),u.$render()))}var a,s=n[0],u=n[1],c=e.multiple;n=0;for(var o=r.children(),f=o.length;n<f;n++)if(""===o[n].value){a=o.eq(n);break}var l=!!a,h=En(m.cloneNode(!1));h.val("?");var p,d=function(t,e,c){function f(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function l(t){var e;if(!r&&A(t))e=t;else for(var n in e=[],t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n);return e}var s=t.match(go);if(!s)throw po("iexp",t,vt(e));var n=s[5]||s[7],r=s[6];t=/ as /.test(s[0])&&s[1];var h=s[9];e=$(s[2]?s[1]:n);var p=t&&$(t)||e,i=h&&$(h),d=h?function(t,e){return i(c,e)}:function(t){return St(t)},g=function(t,e){return d(t,x(t,e))},v=$(s[2]||s[1]),y=$(s[3]||""),m=$(s[4]||""),b=$(s[8]),o={},x=r?function(t,e){return o[r]=e,o[n]=t,o}:function(t){return o[n]=t,o};return{trackBy:h,getTrackByValue:g,getWatchables:$(b,function(t){for(var e=[],n=l(t=t||[]),r=n.length,i=0;i<r;i++){var o=t[a=t===n?i:n[i]],a=x(o,a);o=d(o,a),e.push(o),(s[2]||s[1])&&(o=v(c,a),e.push(o)),s[4]&&(a=m(c,a),e.push(a))}return e}),getOptions:function(){for(var t=[],e={},n=b(c)||[],r=l(n),i=r.length,o=0;o<i;o++){var a=n===r?o:r[o],s=x(n[a],a),u=p(c,s);u=new f(a=d(u,s),u,v(c,s),y(c,s),s=m(c,s)),t.push(u),e[a]=u}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[g(t)]},getViewValueFromOption:function(t){return h?Un.copy(t.viewValue):t.viewValue}}}}}(e.ngOptions,r,t),g=y[0].createDocumentFragment();c?(u.$isEmpty=function(t){return!t||0===t.length},s.writeValue=function(t){p.items.forEach(function(t){t.element.selected=!1}),t&&t.forEach(function(t){(t=p.getOptionFromViewValue(t))&&(t.element.selected=!0)})},s.readValue=function(){var t=r.val()||[],e=[];return it(t,function(t){(t=p.selectValueMap[t])&&!t.disabled&&e.push(p.getViewValueFromOption(t))}),e},d.trackBy&&t.$watchCollection(function(){if(Hn(u.$viewValue))return u.$viewValue.map(function(t){return d.getTrackByValue(t)})},function(){u.$render()})):(s.writeValue=function(t){var e=p.getOptionFromViewValue(t);e?(r[0].value!==e.selectValue&&(h.remove(),l||a.remove(),r[0].value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):null===t||l?(h.remove(),l||r.prepend(a),r.val(""),a.prop("selected",!0),a.attr("selected",!0)):(l||a.remove(),r.prepend(h),r.val("?"),h.prop("selected",!0),h.attr("selected",!0))},s.readValue=function(){var t=p.selectValueMap[r.val()];return t&&!t.disabled?(l||a.remove(),h.remove(),p.getViewValueFromOption(t)):null},d.trackBy&&t.$watch(function(){return d.getTrackByValue(u.$viewValue)},function(){u.$render()})),l?(a.remove(),v(a)(t),a.removeClass("ng-scope")):a=En(m.cloneNode(!1)),r.empty(),i(),t.$watchCollection(d.getWatchables,i)}}}}],yo=["$locale","$interpolate","$log",function(d,g,v){var y=/{}/g,m=/^when(Minus)?(.+)$/;return{link:function(r,i,o){function a(t){i.text(t||"")}var s,t=o.count,u=o.$attr.when&&i.attr(o.$attr.when),c=o.offset||0,f=r.$eval(u)||{},l={},e=g.startSymbol(),n=g.endSymbol(),h=e+t+"-"+c+n,p=Un.noop;it(o,function(t,e){var n=m.exec(e);n&&(n=(n[1]?"-":"")+Dn(n[2]),f[n]=i.attr(o.$attr[e]))}),it(f,function(t,e){l[e]=g(t.replace(y,h))}),r.$watch(t,function(t){var e=parseFloat(t),n=isNaN(e);n||e in f||(e=d.pluralCat(e-c)),e===s||n&&b(s)&&isNaN(s)||(p(),at(n=l[e])?(null!=t&&v.debug("ngPluralize: no rule defined for '"+e+"' in "+u),p=j,a()):p=r.$watch(n,a),s=e)})}}}],mo=["$parse","$animate","$compile",function(u,k,c){var S=h("ngRepeat"),M=function(t,e,n,r,i,o,a){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0==(1&e))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,e){var y=e.ngRepeat,m=c.$$createComment("end ngRepeat",y);if(!(n=y.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/)))throw S("iexp",y);var n,r=n[1],i=n[2],b=n[3],o=n[4];if(!(n=r.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/)))throw S("iidexp",r);var x=n[3]||n[1],$=n[2];if(b&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(b)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(b)))throw S("badident",b);var a,w,_,C,s={$id:St};return o?a=u(o):(_=function(t,e){return St(e)},C=function(t){return t}),function(p,d,t,e,g){a&&(w=function(t,e,n){return $&&(s[$]=t),s[x]=e,s.$index=n,a(p,s)});var v=bt();p.$watchCollection(i,function(t){var r,e,n,i,o,a,s,u,c,f,l=d[0],h=bt();if(b&&(p[b]=t),A(t))u=t,e=w||_;else for(f in e=w||C,u=[],t)On.call(t,f)&&"$"!==f.charAt(0)&&u.push(f);for(i=u.length,f=Array(i),r=0;r<i;r++)if(o=t===u?r:u[r],a=t[o],s=e(o,a,r),v[s])c=v[s],delete v[s],h[s]=c,f[r]=c;else{if(h[s])throw it(f,function(t){t&&t.scope&&(v[t.id]=t)}),S("dupes",y,s,a);f[r]={id:s,scope:void 0,clone:void 0},h[s]=!0}for(n in v){if(s=O((c=v[n]).clone),k.leave(s),s[0].parentNode)for(r=0,e=s.length;r<e;r++)s[r].$$NG_REMOVED=!0;c.scope.$destroy()}for(r=0;r<i;r++)if(o=t===u?r:u[r],a=t[o],(c=f[r]).scope){for(n=l;(n=n.nextSibling)&&n.$$NG_REMOVED;);c.clone[0]!=n&&k.move(O(c.clone),null,l),l=c.clone[c.clone.length-1],M(c.scope,r,x,a,$,o,i)}else g(function(t,e){c.scope=e;var n=m.cloneNode(!1);t[t.length++]=n,k.enter(t,null,l),l=n,c.clone=t,h[c.id]=c,M(c.scope,r,x,a,$,o,i)});v=h})}}}}],bo=["$animate",function(r){return{restrict:"A",multiElement:!0,link:function(t,e,n){t.$watch(n.ngShow,function(t){r[t?"removeClass":"addClass"](e,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],xo=["$animate",function(r){return{restrict:"A",multiElement:!0,link:function(t,e,n){t.$watch(n.ngHide,function(t){r[t?"addClass":"removeClass"](e,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],$o=yn(function(t,n,e){t.$watch(e.ngStyle,function(t,e){e&&t!==e&&it(e,function(t,e){n.css(e,"")}),t&&n.css(t)},!0)}),wo=["$animate","$compile",function(f,l){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(t,e,n,i){var o=[],a=[],s=[],u=[],c=function(t,e){return function(){t.splice(e,1)}};t.$watch(n.ngSwitch||n.on,function(t){var e,n;for(e=0,n=s.length;e<n;++e)f.cancel(s[e]);for(e=s.length=0,n=u.length;e<n;++e){var r=O(a[e].clone);u[e].$destroy(),(s[e]=f.leave(r)).then(c(s,e))}a.length=0,u.length=0,(o=i.cases["!"+t]||i.cases["?"])&&it(o,function(r){r.transclude(function(t,e){u.push(e);var n=r.element;t[t.length++]=l.$$createComment("end ngSwitchWhen"),a.push({clone:t}),f.enter(t,n.parent(),n)})})})}}}],_o=yn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),Co=yn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),ko=h("ngTransclude"),So=["$compile",function(e){return{restrict:"EAC",terminal:!0,compile:function(t){var a=e(t.contents());return t.empty(),function(t,n,e,r,i){function o(){a(t,function(t){n.append(t)})}if(!i)throw ko("orphan",vt(n));e.ngTransclude===e.$attr.ngTransclude&&(e.ngTransclude=""),i(function(t,e){t.length?n.append(t):(o(),e.$destroy())},null,e=e.ngTransclude||e.ngTranscludeSlot),e&&!i.isSlotFilled(e)&&o()}}}}],Mo=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,e){"text/ng-template"==e.type&&n.put(e.id,t[0].text)}}}],Ao={$setViewValue:j,$render:j},Eo=["$element","$scope",function(e,t){var a=this,r=new Mt;a.ngModelCtrl=Ao,a.unknownOption=En(D.document.createElement("option")),a.renderUnknownOption=function(t){t="? "+St(t)+" ?",a.unknownOption.val(t),e.prepend(a.unknownOption),e.val(t)},t.$on("$destroy",function(){a.renderUnknownOption=j}),a.removeUnknownOption=function(){a.unknownOption.parent()&&a.unknownOption.remove()},a.readValue=function(){return a.removeUnknownOption(),e.val()},a.writeValue=function(t){a.hasOption(t)?(a.removeUnknownOption(),e.val(t),""===t&&a.emptyOption.prop("selected",!0)):null==t&&a.emptyOption?(a.removeUnknownOption(),e.val("")):a.renderUnknownOption(t)},a.addOption=function(t,e){if(8!==e[0].nodeType){B(t,'"option value"'),""===t&&(a.emptyOption=e);var n=r.get(t)||0;r.put(t,n+1),a.ngModelCtrl.$render(),e[0].hasAttribute("selected")&&(e[0].selected=!0)}},a.removeOption=function(t){var e=r.get(t);e&&(1===e?(r.remove(t),""===t&&(a.emptyOption=void 0)):r.put(t,e-1))},a.hasOption=function(t){return!!r.get(t)},a.registerOption=function(t,n,r,e,i){var o;e?r.$observe("value",function(t){q(o)&&a.removeOption(o),o=t,a.addOption(t,n)}):i?t.$watch(i,function(t,e){r.$set("value",t),e!==t&&a.removeOption(e),a.addOption(t,n)}):a.addOption(r.value,n);n.on("$destroy",function(){a.removeOption(r.value),a.ngModelCtrl.$render()})}}],To=function(){return{restrict:"E",require:["select","?ngModel"],controller:Eo,priority:1,link:{pre:function(t,n,e,r){var i=r[1];if(i){var o=r[0];if(o.ngModelCtrl=i,n.on("change",function(){t.$apply(function(){i.$setViewValue(o.readValue())})}),e.multiple){o.readValue=function(){var e=[];return it(n.find("option"),function(t){t.selected&&e.push(t.value)}),e},o.writeValue=function(t){var e=new Mt(t);it(n.find("option"),function(t){t.selected=q(e.get(t.value))})};var a,s=NaN;t.$watch(function(){s!==i.$viewValue||dt(a,i.$viewValue)||(a=F(i.$viewValue),i.$render()),s=i.$viewValue}),i.$isEmpty=function(t){return!t||0===t.length}}}},post:function(t,e,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}}},No=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(t,e){if(q(e.value))var i=n(e.value,!0);else{var o=n(t.text(),!0);o||e.$set("value",t.text())}return function(t,e,n){var r=e.parent();(r=r.data("$selectController")||r.parent().data("$selectController"))&&r.registerOption(t,e,n,i,o)}}}}],Po=_({restrict:"E",terminal:!1}),Oo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",function(){r.$validate()}))}}},Do=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i,o=n.ngPattern||n.pattern;n.$observe("pattern",function(t){if(ut(t)&&0<t.length&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw h("ngPattern")("noregexp",o,t,vt(e));i=t||void 0,r.$validate()}),r.$validators.pattern=function(t,e){return r.$isEmpty(e)||at(i)||i.test(e)}}}}},Ro=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){t=d(t),i=isNaN(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},jo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=d(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};D.angular.bootstrap?D.console&&console.log("WARNING: Tried to load angular more than once."):(function(){var i;if(!Qn){var t=Gn();(Tn=at(t)?D.jQuery:t?D[t]:void 0)&&Tn.fn.on?(ot((En=Tn).fn,{scope:dr.scope,isolateScope:dr.isolateScope,controller:dr.controller,injector:dr.injector,inheritedData:dr.inheritedData}),i=Tn.cleanData,Tn.cleanData=function(t){for(var e,n,r=0;null!=(n=t[r]);r++)(e=Tn._data(n,"events"))&&e.$destroy&&Tn(n).triggerHandler("$destroy");i(t)}):En=H,Un.element=En,Qn=!0}}(),ot(Un,{bootstrap:M,copy:k,extend:ot,merge:t,equals:dt,element:En,forEach:it,injector:Et,noop:j,bind:gt,toJson:C,fromJson:i,identity:L,isUndefined:at,isDefined:q,isString:ut,isFunction:ct,isObject:st,isNumber:b,isElement:m,isArray:Hn,version:er,isDate:y,lowercase:Dn,uppercase:Rn,callbacks:{$$counter:0},getTestability:T,$$minErr:h,$$csp:Xn,reloadWithDebugInfo:E}),(Nn=function(t){function e(t,e,n){return t[e]||(t[e]=n())}var f=h("$injector"),n=h("ng");return(t=e(t,"angular",Object)).$$minErr=t.$$minErr||h,e(t,"module",function(){var t={};return function(s,u,c){if("hasOwnProperty"===s)throw n("badname","module");return u&&t.hasOwnProperty(s)&&(t[s]=null),e(t,s,function(){function t(t,e,n,r){return r||(r=i),function(){return r[n||"push"]([t,e,arguments]),a}}function e(n,r){return function(t,e){return e&&ct(e)&&(e.$$moduleName=s),i.push([n,r,arguments]),a}}if(!u)throw f("nomod",s);var i=[],n=[],r=[],o=t("$injector","invoke","push",n),a={_invokeQueue:i,_configBlocks:n,_runBlocks:r,requires:u,name:s,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:e("$provide","decorator"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),component:e("$compileProvider","component"),config:o,run:function(t){return r.push(t),this}};return c&&o(c),a})}})}(D))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Be}),t.provider("$compile",Lt).directive({a:xi,input:Li,textarea:Li,form:Ci,script:Mo,select:To,style:Po,option:No,ngBind:Fi,ngBindHtml:Ui,ngBindTemplate:Ii,ngClass:Hi,ngClassEven:Wi,ngClassOdd:Vi,ngCloak:Yi,ngController:Xi,ngForm:ki,ngHide:xo,ngIf:Zi,ngInclude:Ki,ngInit:to,ngNonBindable:ho,ngPluralize:yo,ngRepeat:mo,ngShow:bo,ngStyle:$o,ngSwitch:wo,ngSwitchWhen:_o,ngSwitchDefault:Co,ngOptions:vo,ngTransclude:So,ngModel:co,ngList:eo,ngChange:zi,pattern:Do,ngPattern:Do,required:Oo,ngRequired:Oo,minlength:jo,ngMinlength:jo,maxlength:Ro,ngMaxlength:Ro,ngValue:Bi,ngModelOptions:lo}).directive({ngInclude:Qi}).directive($i).directive(Gi),t.provider({$anchorScroll:Tt,$animate:Ar,$animateCss:Nr,$$animateJs:Sr,$$animateQueue:Mr,$$AnimateRunner:Tr,$$animateAsyncRun:Er,$browser:Dt,$cacheFactory:Rt,$controller:zt,$document:Ht,$exceptionHandler:Vt,$filter:Ke,$$forceReflow:Lr,$interpolate:ne,$interval:re,$http:Qt,$httpParamSerializer:Yt,$httpParamSerializerJQLike:Xt,$httpBackend:ee,$xhrFactory:te,$jsonpCallbacks:Wr,$location:ge,$log:ve,$parse:Oe,$rootScope:qe,$q:De,$$q:Re,$sce:Ue,$sceDelegate:Ie,$sniffer:ze,$templateCache:jt,$templateRequest:He,$$testability:Ve,$timeout:We,$window:Ge,$$rAF:Le,$$jqLite:kt,$$HashMap:mr,$$cookieReader:Ze})}]),Un.module("ngLocale",[],["$provide",function(t){t.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(t,e){var n,r,i=0|t,o=e;return void 0===o&&(o=Math.min((n=t,-1==(r=(n+="").indexOf("."))?0:n.length-r-1),3)),Math.pow(10,o),1==i&&0==o?"one":"other"}})}]),En(D.document).ready(function(){e(D.document,M)}))}(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>'),function(){var b="__default";angular.module("angularUtils.directives.dirPagination",[]).directive("dirPaginate",["$compile","$parse","paginationService",function(v,y,m){return{terminal:!0,multiElement:!0,priority:100,compile:function(t,e){var d=e.dirPaginate,n=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),r=/\|\s*itemsPerPage\s*:\s*(.*\(\s*\w*\)|([^\)]*?(?=\s+as\s+))|[^\)]*)/;if(null===n[2].match(r))throw"pagination directive: the 'itemsPerPage' filter must be set.";var i=n[2].replace(r,""),g=y(i);o=t,angular.forEach(o,function(t){1===t.nodeType&&angular.element(t).attr("dir-paginate-no-compile",!0)});var o;var a=e.paginationId||b;return m.registerInstance(a),function(t,e,n){var r=y(n.paginationId)(t)||n.paginationId||b;m.registerInstance(r);var i,o,a,s,u,c,f,l=(c=r,f=!!(u=d).match(/(\|\s*itemsPerPage\s*:[^|]*:[^|]*)/),c===b||f?u:u.replace(/(\|\s*itemsPerPage\s*:\s*[^|\s]*)/,"$1 : '"+c+"'"));o=n,a=l,(i=e)[0].hasAttribute("dir-paginate-start")||i[0].hasAttribute("data-dir-paginate-start")?(o.$set("ngRepeatStart",a),i.eq(i.length-1).attr("ng-repeat-end",!0)):o.$set("ngRepeat",a),s=e,angular.forEach(s,function(t){1===t.nodeType&&angular.element(t).removeAttr("dir-paginate-no-compile")}),s.eq(0).removeAttr("dir-paginate-start").removeAttr("dir-paginate").removeAttr("data-dir-paginate-start").removeAttr("data-dir-paginate"),s.eq(s.length-1).removeAttr("dir-paginate-end").removeAttr("data-dir-paginate-end");var h=v(e),p=function(t,e,n){var r;if(e.currentPage)r=y(e.currentPage);else{var i=(n+"__currentPage").replace(/\W/g,"_");t[i]=1,r=y(i)}return r}(t,n,r);m.setCurrentPageParser(r,p,t),void 0!==n.totalItems?(m.setAsyncModeTrue(r),t.$watch(function(){return y(n.totalItems)(t)},function(t){0<=t&&m.setCollectionLength(r,t)})):(m.setAsyncModeFalse(r),t.$watchCollection(function(){return g(t)},function(t){if(t){var e=t instanceof Array?t.length:Object.keys(t).length;m.setCollectionLength(r,e)}})),h(t)}}}}]).directive("dirPaginateNoCompile",function(){return{priority:5e3,terminal:!0}}).directive("dirPaginationControls",["paginationService","paginationTemplate",function(l,n){var h=/^\d+$/,t={restrict:"AE",scope:{maxSize:"=?",onPageChange:"&?",paginationId:"=?",autoHide:"=?"},link:function(r,t,e){var n=e.paginationId||b,i=r.paginationId||e.paginationId||b;if(!l.isRegistered(i)&&!l.isRegistered(n)){var o=i!==b?" (id: "+i+") ":" ";window.console&&console.warn("Pagination directive: the pagination controls"+o+"cannot be used without the corresponding pagination directive, which was not found at link time.")}r.maxSize||(r.maxSize=9);r.autoHide=void 0===r.autoHide||r.autoHide,r.directionLinks=!angular.isDefined(e.directionLinks)||r.$parent.$eval(e.directionLinks),r.boundaryLinks=!!angular.isDefined(e.boundaryLinks)&&r.$parent.$eval(e.boundaryLinks);var a=Math.max(r.maxSize,5);function s(t){if(l.isRegistered(i)&&f(t)){var e=r.pagination.current;r.pages=p(t,l.getCollectionLength(i),l.getItemsPerPage(i),a),r.pagination.current=t,c(),r.onPageChange&&r.onPageChange({newPageNumber:t,oldPageNumber:e})}}function u(){if(l.isRegistered(i)){var t=parseInt(l.getCurrentPage(i))||1;r.pages=p(t,l.getCollectionLength(i),l.getItemsPerPage(i),a),r.pagination.current=t,r.pagination.last=r.pages[r.pages.length-1],r.pagination.last<r.pagination.current?r.setCurrent(r.pagination.last):c()}}function c(){if(l.isRegistered(i)){var t=l.getCurrentPage(i),e=l.getItemsPerPage(i),n=l.getCollectionLength(i);r.range.lower=(t-1)*e+1,r.range.upper=Math.min(t*e,n),r.range.total=n}}function f(t){return h.test(t)&&0<t&&t<=r.pagination.last}r.pages=[],r.pagination={last:1,current:1},r.range={lower:1,upper:1,total:1},r.$watch("maxSize",function(t){t&&(a=Math.max(r.maxSize,5),u())}),r.$watch(function(){if(l.isRegistered(i))return(l.getCollectionLength(i)+1)*l.getItemsPerPage(i)},function(t){0<t&&u()}),r.$watch(function(){if(l.isRegistered(i))return l.getItemsPerPage(i)},function(t,e){t!=e&&void 0!==e&&s(r.pagination.current)}),r.$watch(function(){if(l.isRegistered(i))return l.getCurrentPage(i)},function(t,e){t!=e&&s(t)}),r.setCurrent=function(t){l.isRegistered(i)&&f(t)&&(t=parseInt(t,10),l.setCurrentPage(i,t))},r.tracker=function(t,e){return t+"_"+e}}},e=n.getString();void 0!==e?t.template=e:t.templateUrl=function(t,e){return e.templateUrl||n.getPath()};return t;function p(t,e,n,r){var i,o=[],a=Math.ceil(e/n),s=Math.ceil(r/2);i=t<=s?"start":a-s<t?"end":"middle";for(var u=r<a,c=1;c<=a&&c<=r;){var f=d(c,t,r,a),l=2===c&&("middle"===i||"end"===i),h=c===r-1&&("middle"===i||"start"===i);u&&(l||h)?o.push("..."):o.push(f),c++}return o}function d(t,e,n,r){var i=Math.ceil(n/2);return t===n?r:1===t?t:n<r?r-i<e?r-n+t:i<e?e-i+t:t:t}}]).filter("itemsPerPage",["paginationService",function(a){return function(e,t,n){if(void 0===n&&(n=b),!a.isRegistered(n))throw"pagination directive: the itemsPerPage id argument (id: "+n+") does not match a registered pagination-id.";var r,i;if(angular.isObject(e)){if(t=parseInt(t)||9999999999,i=a.isAsyncMode(n)?0:(a.getCurrentPage(n)-1)*t,r=i+t,a.setItemsPerPage(n,t),e instanceof Array)return e.slice(i,r);var o={};return angular.forEach(function(t){{if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}}(e).slice(i,r),function(t){o[t]=e[t]}),o}return e}}]).service("paginationService",function(){var e,r={};this.registerInstance=function(t){void 0===r[t]&&(r[t]={asyncMode:!1},e=t)},this.deregisterInstance=function(t){delete r[t]},this.isRegistered=function(t){return void 0!==r[t]},this.getLastInstanceId=function(){return e},this.setCurrentPageParser=function(t,e,n){r[t].currentPageParser=e,r[t].context=n},this.setCurrentPage=function(t,e){r[t].currentPageParser.assign(r[t].context,e)},this.getCurrentPage=function(t){var e=r[t].currentPageParser;return e?e(r[t].context):1},this.setItemsPerPage=function(t,e){r[t].itemsPerPage=e},this.getItemsPerPage=function(t){return r[t].itemsPerPage},this.setCollectionLength=function(t,e){r[t].collectionLength=e},this.getCollectionLength=function(t){return r[t].collectionLength},this.setAsyncModeTrue=function(t){r[t].asyncMode=!0},this.setAsyncModeFalse=function(t){r[t].asyncMode=!1},this.isAsyncMode=function(t){return r[t].asyncMode}}).provider("paginationTemplate",function(){var e,n="angularUtils.directives.dirPagination.template";this.setPath=function(t){n=t},this.setString=function(t){e=t},this.$get=function(){return{getPath:function(){return n},getString:function(){return e}}}}).run(["$templateCache",function(t){t.put("angularUtils.directives.dirPagination.template",'<ul class="pagination" ng-if="1 < pages.length || !autoHide"><li ng-if="boundaryLinks" ng-class="{ disabled : pagination.current == 1 }"><a href="" ng-click="setCurrent(1)">&laquo;</a></li><li ng-if="directionLinks" ng-class="{ disabled : pagination.current == 1 }"><a href="" ng-click="setCurrent(pagination.current - 1)">&lsaquo;</a></li><li ng-repeat="pageNumber in pages track by tracker(pageNumber, $index)" ng-class="{ active : pagination.current == pageNumber, disabled : pageNumber == \'...\' || ( ! autoHide && pages.length === 1 ) }"><a href="" ng-click="setCurrent(pageNumber)">{{ pageNumber }}</a></li><li ng-if="directionLinks" ng-class="{ disabled : pagination.current == pagination.last }"><a href="" ng-click="setCurrent(pagination.current + 1)">&rsaquo;</a></li><li ng-if="boundaryLinks"  ng-class="{ disabled : pagination.current == pagination.last }"><a href="" ng-click="setCurrent(pagination.last)">&raquo;</a></li></ul>')}])}(),angular.module("etlog",[]),angular.module("etlog").controller("presenstation_controller",["$scope","$timeout",function(t,e){var n=io();t.timer=0,advanced_terminal(n,16),setup_timer(t,e,n),graph_pres_new("organizace nejvíce poskytující konektivitu","#most_provided","update_provided",n),graph_pres_new("organizace nejvíce využívající roaming","#most_used","update_used",n)}]),function(d,_){var n,e,y=typeof _,t=d.location,g=d.document,r=g.documentElement,i=d.jQuery,o=d.$,a={},s=[],v=s.concat,u=s.push,f=s.slice,c=s.indexOf,l=a.toString,m=a.hasOwnProperty,h="2.0.3".trim,xt=function(t,e){return new xt.fn.init(t,e,n)},p=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,C=/\S+/g,b=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,x=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,$=/^-ms-/,w=/-([\da-z])/gi,k=function(t,e){return e.toUpperCase()},S=function(){g.removeEventListener("DOMContentLoaded",S,!1),d.removeEventListener("load",S,!1),xt.ready()};function M(t){var e=t.length,n=xt.type(t);return!xt.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||"function"!==n&&(0===e||"number"==typeof e&&0<e&&e-1 in t)))}xt.fn=xt.prototype={jquery:"2.0.3",constructor:xt,init:function(t,e,n){var r,i;if(!t)return this;if("string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):xt.isFunction(t)?n.ready(t):(t.selector!==_&&(this.selector=t.selector,this.context=t.context),xt.makeArray(t,this));if(!(r="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:b.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof xt?e[0]:e,xt.merge(this,xt.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:g,!0)),x.test(r[1])&&xt.isPlainObject(e))for(r in e)xt.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=g.getElementById(r[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=g,this.selector=t,this},selector:"",length:0,toArray:function(){return f.call(this)},get:function(t){return null==t?this.toArray():t<0?this[this.length+t]:this[t]},pushStack:function(t){var e=xt.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return xt.each(this,t,e)},ready:function(t){return xt.ready.promise().done(t),this},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(0<=n&&n<e?[this[n]]:[])},map:function(n){return this.pushStack(xt.map(this,function(t,e){return n.call(t,e,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:u,sort:[].sort,splice:[].splice},xt.fn.init.prototype=xt.fn,xt.extend=xt.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[1]||{},s=2),"object"==typeof a||xt.isFunction(a)||(a={}),u===s&&(a=this,--s);s<u;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],a!==(r=t[e])&&(c&&r&&(xt.isPlainObject(r)||(i=xt.isArray(r)))?(o=i?(i=!1,n&&xt.isArray(n)?n:[]):n&&xt.isPlainObject(n)?n:{},a[e]=xt.extend(c,o,r)):r!==_&&(a[e]=r));return a},xt.extend({expando:"jQuery"+("2.0.3"+Math.random()).replace(/\D/g,""),noConflict:function(t){return d.$===xt&&(d.$=o),t&&d.jQuery===xt&&(d.jQuery=i),xt},isReady:!1,readyWait:1,holdReady:function(t){t?xt.readyWait++:xt.ready(!0)},ready:function(t){(!0===t?--xt.readyWait:xt.isReady)||((xt.isReady=!0)!==t&&0<--xt.readyWait||(e.resolveWith(g,[xt]),xt.fn.trigger&&xt(g).trigger("ready").off("ready")))},isFunction:function(t){return"function"===xt.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?a[l.call(t)]||"object":typeof t},isPlainObject:function(t){if("object"!==xt.type(t)||t.nodeType||xt.isWindow(t))return!1;try{if(t.constructor&&!m.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},error:function(t){throw Error(t)},parseHTML:function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||g;var r=x.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=xt.buildFragment([t],e,i),i&&xt(i).remove(),xt.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new DOMParser).parseFromString(t,"text/xml")}catch(t){e=_}return(!e||e.getElementsByTagName("parsererror").length)&&xt.error("Invalid XML: "+t),e},noop:function(){},globalEval:function(t){var e,n=eval;(t=xt.trim(t))&&(1===t.indexOf("use strict")?((e=g.createElement("script")).text=t,g.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace($,"ms-").replace(w,k)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r=0,i=t.length,o=M(t);if(n){if(o)for(;r<i&&!1!==e.apply(t[r],n);r++);else for(r in t)if(!1===e.apply(t[r],n))break}else if(o)for(;r<i&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":h.call(t)},makeArray:function(t,e){var n=e||[];return null!=t&&(M(Object(t))?xt.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:c.call(e,t,n)},merge:function(t,e){var n=e.length,r=t.length,i=0;if("number"==typeof n)for(;i<n;i++)t[r++]=e[i];else for(;e[i]!==_;)t[r++]=e[i++];return t.length=r,t},grep:function(t,e,n){var r=[],i=0,o=t.length;for(n=!!n;i<o;i++)n!==!!e(t[i],i)&&r.push(t[i]);return r},map:function(t,e,n){var r,i=0,o=t.length,a=[];if(M(t))for(;i<o;i++)null!=(r=e(t[i],i,n))&&(a[a.length]=r);else for(i in t)null!=(r=e(t[i],i,n))&&(a[a.length]=r);return v.apply([],a)},guid:1,proxy:function(t,e){var n,r,i;return"string"==typeof e&&(n=t[e],e=t,t=n),xt.isFunction(t)?(r=f.call(arguments,2),(i=function(){return t.apply(e||this,r.concat(f.call(arguments)))}).guid=t.guid=t.guid||xt.guid++,i):_},access:function(t,e,n,r,i,o,a){var s=0,u=t.length,c=null==n;if("object"===xt.type(n))for(s in i=!0,n)xt.access(t,e,s,n[s],!0,o,a);else if(r!==_&&(i=!0,xt.isFunction(r)||(a=!0),c&&(e=a?(e.call(t,r),null):(c=e,function(t,e,n){return c.call(xt(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:c?e.call(t):u?e(t[0],n):o},now:Date.now,swap:function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,r||[]),e)t.style[o]=a[o];return i}}),xt.ready.promise=function(t){return e||(e=xt.Deferred(),"complete"===g.readyState?setTimeout(xt.ready):(g.addEventListener("DOMContentLoaded",S,!1),d.addEventListener("load",S,!1))),e.promise(t)},xt.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){a["[object "+e+"]"]=e.toLowerCase()}),n=xt(g),function(n,i){var t,d,$,w,o,r,g,_,c,v,C,a,y,m,s,f,b,k="sizzle"+-new Date,x=n.document,S=0,l=0,u=it(),h=it(),p=it(),M=!1,A=function(t,e){return t===e&&(M=!0),0},E=typeof i,T={}.hasOwnProperty,e=[],N=e.pop,P=e.push,O=e.push,D=e.slice,R=e.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]===t)return e;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",q="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",B=q.replace("w","w#"),F="\\["+L+"*("+q+")"+L+"*(?:([*^$|!~]?=)"+L+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+B+")|)|)"+L+"*\\]",I=":("+q+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+F.replace(3,8)+")*)|.*)\\)|)",U=RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),z=RegExp("^"+L+"*,"+L+"*"),H=RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),V=RegExp(L+"*[+~]"),W=RegExp("="+L+"*([^\\]'\"]*)"+L+"*\\]","g"),Y=RegExp(I),X=RegExp("^"+B+"$"),G={ID:RegExp("^#("+q+")"),CLASS:RegExp("^\\.("+q+")"),TAG:RegExp("^("+q.replace("w","w*")+")"),ATTR:RegExp("^"+F),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:RegExp("^(?:"+j+")$","i"),needsContext:RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,tt=/'|\\/g,et=RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),nt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{O.apply(e=D.call(x.childNodes),x.childNodes),e[x.childNodes.length].nodeType}catch(t){O={apply:e.length?function(t,e){P.apply(t,D.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function rt(t,e,n,r){var i,o,a,s,u,c,f,l,h,p;if((e?e.ownerDocument||e:x)!==C&&v(e),n=n||[],!t||"string"!=typeof t)return n;if(1!==(s=(e=e||C).nodeType)&&9!==s)return[];if(y&&!r){if(i=Z.exec(t))if(a=i[1]){if(9===s){if(!(o=e.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&b(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return O.apply(n,e.getElementsByTagName(t)),n;if((a=i[3])&&d.getElementsByClassName&&e.getElementsByClassName)return O.apply(n,e.getElementsByClassName(a)),n}if(d.qsa&&(!m||!m.test(t))){if(l=f=k,h=e,p=9===s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(c=pt(t),(f=e.getAttribute("id"))?l=f.replace(tt,"\\$&"):e.setAttribute("id",l),l="[id='"+l+"'] ",u=c.length;u--;)c[u]=l+dt(c[u]);h=V.test(t)&&e.parentNode||e,p=c.join(",")}if(p)try{return O.apply(n,h.querySelectorAll(p)),n}catch(t){}finally{f||e.removeAttribute("id")}}}return function(t,e,n,r){var i,o,a,s,u,c=pt(t);if(!r&&1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&d.getById&&9===e.nodeType&&y&&w.relative[o[1].type]){if(!(e=(w.find.ID(a.matches[0].replace(et,nt),e)||[])[0]))return n;t=t.slice(o.shift().value.length)}for(i=G.needsContext.test(t)?0:o.length;i--&&(a=o[i],!w.relative[s=a.type]);)if((u=w.find[s])&&(r=u(a.matches[0].replace(et,nt),V.test(o[0].type)&&e.parentNode||e))){if(o.splice(i,1),!(t=r.length&&dt(o)))return O.apply(n,r),n;break}}return g(t,c)(r,e,!y,n,V.test(t)),n}(t.replace(U,"$1"),e,n,r)}function it(){var r=[];return function t(e,n){return r.push(e+=" ")>w.cacheLength&&delete t[r.shift()],t[e]=n}}function ot(t){return t[k]=!0,t}function at(t){var e=C.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function st(t,e){for(var n=t.split("|"),r=t.length;r--;)w.attrHandle[n[r]]=e}function ut(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ct(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ft(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function lt(a){return ot(function(o){return o=+o,ot(function(t,e){for(var n,r=a([],t.length,o),i=r.length;i--;)t[n=r[i]]&&(t[n]=!(e[n]=t[n]))})})}for(t in r=rt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},d=rt.support={},v=rt.setDocument=function(t){var u=t?t.ownerDocument||t:x,e=u.defaultView;return u!==C&&9===u.nodeType&&u.documentElement?(a=(C=u).documentElement,y=!r(u),e&&e.attachEvent&&e!==e.top&&e.attachEvent("onbeforeunload",function(){v()}),d.attributes=at(function(t){return t.className="i",!t.getAttribute("className")}),d.getElementsByTagName=at(function(t){return t.appendChild(u.createComment("")),!t.getElementsByTagName("*").length}),d.getElementsByClassName=at(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),d.getById=at(function(t){return a.appendChild(t).id=k,!u.getElementsByName||!u.getElementsByName(k).length}),d.getById?(w.find.ID=function(t,e){if(typeof e.getElementById!==E&&y){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},w.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var n=t.replace(et,nt);return function(t){var e=typeof t.getAttributeNode!==E&&t.getAttributeNode("id");return e&&e.value===n}}),w.find.TAG=d.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==E?e.getElementsByTagName(t):i}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},w.find.CLASS=d.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==E&&y?e.getElementsByClassName(t):i},s=[],m=[],(d.qsa=J.test(u.querySelectorAll))&&(at(function(t){t.innerHTML="<select><option selected=''></option></select>",t.querySelectorAll("[selected]").length||m.push("\\["+L+"*(?:value|"+j+")"),t.querySelectorAll(":checked").length||m.push(":checked")}),at(function(t){var e=u.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("t",""),t.querySelectorAll("[t^='']").length&&m.push("[*^$]="+L+"*(?:''|\"\")"),t.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(d.matchesSelector=J.test(f=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&at(function(t){d.disconnectedMatch=f.call(t,"div"),f.call(t,"[s!='']:x"),s.push("!=",I)}),m=m.length&&RegExp(m.join("|")),s=s.length&&RegExp(s.join("|")),b=J.test(a.contains)||a.compareDocumentPosition?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},A=a.compareDocumentPosition?function(t,e){if(t===e)return M=!0,0;var n=e.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(e);return n?1&n||!d.sortDetached&&e.compareDocumentPosition(t)===n?t===u||b(x,t)?-1:e===u||b(x,e)?1:c?R.call(c,t)-R.call(c,e):0:4&n?-1:1:t.compareDocumentPosition?-1:1}:function(t,e){var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(t===e)return M=!0,0;if(!i||!o)return t===u?-1:e===u?1:i?-1:o?1:c?R.call(c,t)-R.call(c,e):0;if(i===o)return ut(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ut(a[r],s[r]):a[r]===x?-1:s[r]===x?1:0},u):C},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==C&&v(t),e=e.replace(W,"='$1']"),!(!d.matchesSelector||!y||s&&s.test(e)||m&&m.test(e)))try{var n=f.call(t,e);if(n||d.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0<rt(e,C,null,[t]).length},rt.contains=function(t,e){return(t.ownerDocument||t)!==C&&v(t),b(t,e)},rt.attr=function(t,e){(t.ownerDocument||t)!==C&&v(t);var n=w.attrHandle[e.toLowerCase()],r=n&&T.call(w.attrHandle,e.toLowerCase())?n(t,e,!y):i;return r===i?d.attributes||!y?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null:r},rt.error=function(t){throw Error("Syntax error, unrecognized expression: "+t)},rt.uniqueSort=function(t){var e,n=[],r=0,i=0;if(M=!d.detectDuplicates,c=!d.sortStable&&t.slice(0),t.sort(A),M){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return t},o=rt.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r];r++)n+=o(e);return n},(w=rt.selectors={cacheLength:50,createPseudo:ot,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||rt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&rt.error(t[0]),t},PSEUDO:function(t){var e,n=!t[5]&&t[2];return G.CHILD.test(t[0])?null:(t[3]&&t[4]!==i?t[2]=t[4]:n&&Y.test(n)&&(e=pt(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=u[t+" "];return e||(e=RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&u(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==E&&t.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(t){var e=rt.attr(t,n);return null==e?"!="===r:!r||(e+="","="===r?e===i:"!="===r?e!==i:"^="===r?i&&0===e.indexOf(i):"*="===r?i&&-1<e.indexOf(i):"$="===r?i&&e.slice(-i.length)===i:"~="===r?-1<(" "+e+" ").indexOf(i):"|="===r&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,t,e,d,g){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),m="of-type"===t;return 1===d&&0===g?function(t){return!!t.parentNode}:function(t,e,n){var r,i,o,a,s,u,c=v!==y?"nextSibling":"previousSibling",f=t.parentNode,l=m&&t.nodeName.toLowerCase(),h=!n&&!m;if(f){if(v){for(;c;){for(o=t;o=o[c];)if(m?o.nodeName.toLowerCase()===l:1===o.nodeType)return!1;u=c="only"===p&&!u&&"nextSibling"}return!0}if(u=[y?f.firstChild:f.lastChild],y&&h){for(s=(r=(i=f[k]||(f[k]={}))[p]||[])[0]===S&&r[1],a=r[0]===S&&r[2],o=s&&f.childNodes[s];o=++s&&o&&o[c]||(a=s=0)||u.pop();)if(1===o.nodeType&&++a&&o===t){i[p]=[S,s,a];break}}else if(h&&(r=(t[k]||(t[k]={}))[p])&&r[0]===S)a=r[1];else for(;(o=++s&&o&&o[c]||(a=s=0)||u.pop())&&((m?o.nodeName.toLowerCase()!==l:1!==o.nodeType)||!++a||(h&&((o[k]||(o[k]={}))[p]=[S,a]),o!==t)););return(a-=g)===d||0==a%d&&0<=a/d}}},PSEUDO:function(t,o){var e,a=w.pseudos[t]||w.setFilters[t.toLowerCase()]||rt.error("unsupported pseudo: "+t);return a[k]?a(o):1<a.length?(e=[t,t,"",o],w.setFilters.hasOwnProperty(t.toLowerCase())?ot(function(t,e){for(var n,r=a(t,o),i=r.length;i--;)t[n=R.call(t,r[i])]=!(e[n]=r[i])}):function(t){return a(t,0,e)}):a}},pseudos:{not:ot(function(t){var r=[],i=[],s=g(t.replace(U,"$1"));return s[k]?ot(function(t,e,n,r){for(var i,o=s(t,null,r,[]),a=t.length;a--;)(i=o[a])&&(t[a]=!(e[a]=i))}):function(t,e,n){return r[0]=t,s(r,null,n,i),!i.pop()}}),has:ot(function(e){return function(t){return 0<rt(e,t).length}}),contains:ot(function(e){return function(t){return-1<(t.textContent||t.innerText||o(t)).indexOf(e)}}),lang:ot(function(n){return X.test(n||"")||rt.error("unsupported lang: "+n),n=n.replace(et,nt).toLowerCase(),function(t){var e;do{if(e=y?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===a},focus:function(t){return t===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if("@"<t.nodeName||3===t.nodeType||4===t.nodeType)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||e.toLowerCase()===t.type)},first:lt(function(){return[0]}),last:lt(function(t,e){return[e-1]}),eq:lt(function(t,e,n){return[n<0?n+e:n]}),even:lt(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:lt(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:lt(function(t,e,n){for(var r=n<0?n+e:n;0<=--r;)t.push(r);return t}),gt:lt(function(t,e,n){for(var r=n<0?n+e:n;e>++r;)t.push(r);return t})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[t]=ct(t);for(t in{submit:!0,reset:!0})w.pseudos[t]=ft(t);function ht(){}function pt(t,e){var n,r,i,o,a,s,u,c=h[t+" "];if(c)return e?0:c.slice(0);for(a=t,s=[],u=w.preFilter;a;){for(o in(!n||(r=z.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=H.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(U," ")}),a=a.slice(n.length)),w.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return e?a.length:a?rt.error(t):h(t,s).slice(0)}function dt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function gt(s,t,e){var u=t.dir,c=e&&"parentNode"===u,f=l++;return t.first?function(t,e,n){for(;t=t[u];)if(1===t.nodeType||c)return s(t,e,n)}:function(t,e,n){var r,i,o,a=S+" "+f;if(n){for(;t=t[u];)if((1===t.nodeType||c)&&s(t,e,n))return!0}else for(;t=t[u];)if(1===t.nodeType||c)if((i=(o=t[k]||(t[k]={}))[u])&&i[0]===a){if(!0===(r=i[1])||r===$)return!0===r}else if((i=o[u]=[a])[1]=s(t,e,n)||$,!0===i[1])return!0}}function vt(i){return 1<i.length?function(t,e,n){for(var r=i.length;r--;)if(!i[r](t,e,n))return!1;return!0}:i[0]}function yt(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,c=null!=e;s<u;s++)(o=t[s])&&(!n||n(o,r,i))&&(a.push(o),c&&e.push(s));return a}function mt(p,d,g,v,y,t){return v&&!v[k]&&(v=mt(v)),y&&!y[k]&&(y=mt(y,t)),ot(function(t,e,n,r){var i,o,a,s=[],u=[],c=e.length,f=t||function(t,e,n){for(var r=0,i=e.length;r<i;r++)rt(t,e[r],n);return n}(d||"*",n.nodeType?[n]:n,[]),l=!p||!t&&d?f:yt(f,s,p,n,r),h=g?y||(t?p:c||v)?[]:e:l;if(g&&g(l,h,n,r),v)for(i=yt(h,u),v(i,[],n,r),o=i.length;o--;)(a=i[o])&&(h[u[o]]=!(l[u[o]]=a));if(t){if(y||p){if(y){for(i=[],o=h.length;o--;)(a=h[o])&&i.push(l[o]=a);y(null,h=[],i,r)}for(o=h.length;o--;)(a=h[o])&&-1<(i=y?R.call(t,a):s[o])&&(t[i]=!(e[i]=a))}}else h=yt(h===e?h.splice(c,h.length):h),y?y(null,e,h,r):O.apply(e,h)})}function bt(t){for(var r,e,n,i=t.length,o=w.relative[t[0].type],a=o||w.relative[" "],s=o?1:0,u=gt(function(t){return t===r},a,!0),c=gt(function(t){return-1<R.call(r,t)},a,!0),f=[function(t,e,n){return!o&&(n||e!==_)||((r=e).nodeType?u(t,e,n):c(t,e,n))}];s<i;s++)if(e=w.relative[t[s].type])f=[gt(vt(f),e)];else{if((e=w.filter[t[s].type].apply(null,t[s].matches))[k]){for(n=++s;n<i&&!w.relative[t[n].type];n++);return mt(1<s&&vt(f),1<s&&dt(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(U,"$1"),e,s<n&&bt(t.slice(s,n)),n<i&&bt(t=t.slice(n)),n<i&&dt(t))}f.push(e)}return vt(f)}ht.prototype=w.filters=w.pseudos,w.setFilters=new ht,g=rt.compile=function(t,e){var n,v,y,m,b,x,r,i=[],o=[],a=p[t+" "];if(!a){for(e||(e=pt(t)),n=e.length;n--;)(a=bt(e[n]))[k]?i.push(a):o.push(a);a=p(t,(v=o,b=(m=0)<(y=i).length,x=0<v.length,r=function(t,e,n,r,i){var o,a,s,u=[],c=0,f="0",l=t&&[],h=null!=i,p=_,d=t||x&&w.find.TAG("*",i&&e.parentNode||e),g=S+=null==p?1:Math.random()||.1;for(h&&(_=e!==C&&e,$=m);null!=(o=d[f]);f++){if(x&&o){for(a=0;s=v[a++];)if(s(o,e,n)){r.push(o);break}h&&(S=g,$=++m)}b&&((o=!s&&o)&&c--,t&&l.push(o))}if(c+=f,b&&f!==c){for(a=0;s=y[a++];)s(l,u,e,n);if(t){if(0<c)for(;f--;)l[f]||u[f]||(u[f]=N.call(r));u=yt(u)}O.apply(r,u),h&&!t&&0<u.length&&1<c+y.length&&rt.uniqueSort(r)}return h&&(S=g,_=p),l},b?ot(r):r))}return a},d.sortStable=k.split("").sort(A).join("")===k,d.detectDuplicates=M,v(),d.sortDetached=at(function(t){return 1&t.compareDocumentPosition(C.createElement("div"))}),at(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||st("type|href|height|width",function(t,e,n){return n?i:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),d.attributes&&at(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||st("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?i:t.defaultValue}),at(function(t){return null==t.getAttribute("disabled")})||st(j,function(t,e,n){var r;return n?i:(r=t.getAttributeNode(e))&&r.specified?r.value:!0===t[e]?e.toLowerCase():null}),xt.find=rt,xt.expr=rt.selectors,xt.expr[":"]=xt.expr.pseudos,xt.unique=rt.uniqueSort,xt.text=rt.getText,xt.isXMLDoc=rt.isXML,xt.contains=rt.contains}(d);var A,E,T,N,P,O,D={};xt.Callbacks=function(i){var t,n;i="string"==typeof i?D[i]||(n=D[t=i]={},xt.each(t.match(C)||[],function(t,e){n[e]=!0}),n):xt.extend({},i);var e,r,o,a,s,u,c=[],f=!i.once&&[],l=function(t){for(e=i.memory&&t,r=!0,u=a||0,a=0,s=c.length,o=!0;c&&u<s;u++)if(!1===c[u].apply(t[0],t[1])&&i.stopOnFalse){e=!1;break}o=!1,c&&(f?f.length&&l(f.shift()):e?c=[]:h.disable())},h={add:function(){if(c){var t=c.length;(function r(t){xt.each(t,function(t,e){var n=xt.type(e);"function"===n?i.unique&&h.has(e)||c.push(e):e&&e.length&&"string"!==n&&r(e)})})(arguments),o?s=c.length:e&&(a=t,l(e))}return this},remove:function(){return c&&xt.each(arguments,function(t,e){for(var n;-1<(n=xt.inArray(e,c,n));)c.splice(n,1),o&&(n<=s&&s--,n<=u&&u--)}),this},has:function(t){return t?-1<xt.inArray(t,c):!(!c||!c.length)},empty:function(){return c=[],s=0,this},disable:function(){return c=f=e=_,this},disabled:function(){return!c},lock:function(){return f=_,e||h.disable(),this},locked:function(){return!f},fireWith:function(t,e){return!c||r&&!f||(e=[t,(e=e||[]).slice?e.slice():e],o?f.push(e):l(e)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},xt.extend({Deferred:function(t){var a=[["resolve","done",xt.Callbacks("once memory"),"resolved"],["reject","fail",xt.Callbacks("once memory"),"rejected"],["notify","progress",xt.Callbacks("memory")]],i="pending",s={state:function(){return i},always:function(){return u.done(arguments).fail(arguments),this},then:function(){var o=arguments;return xt.Deferred(function(i){xt.each(a,function(t,e){var n=e[0],r=xt.isFunction(o[t])&&o[t];u[e[1]](function(){var t=r&&r.apply(this,arguments);t&&xt.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[n+"With"](this===s?i.promise():this,r?[t]:arguments)})}),o=null}).promise()},promise:function(t){return null!=t?xt.extend(t,s):s}},u={};return s.pipe=s.then,xt.each(a,function(t,e){var n=e[2],r=e[3];s[e[1]]=n.add,r&&n.add(function(){i=r},a[1^t][2].disable,a[2][2].lock),u[e[0]]=function(){return u[e[0]+"With"](this===u?s:this,arguments),this},u[e[0]+"With"]=n.fireWith}),s.promise(u),t&&t.call(u,u),u},when:function(t){var i,e,n,r=0,o=f.call(arguments),a=o.length,s=1!==a||t&&xt.isFunction(t.promise)?a:0,u=1===s?t:xt.Deferred(),c=function(e,n,r){return function(t){n[e]=this,r[e]=1<arguments.length?f.call(arguments):t,r===i?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(1<a)for(i=Array(a),e=Array(a),n=Array(a);r<a;r++)o[r]&&xt.isFunction(o[r].promise)?o[r].promise().done(c(r,n,o)).fail(u.reject).progress(c(r,e,i)):--s;return s||u.resolveWith(n,o),u.promise()}}),xt.support=(A={},E=g.createElement("input"),T=g.createDocumentFragment(),N=g.createElement("div"),P=g.createElement("select"),O=P.appendChild(g.createElement("option")),E.type&&(E.type="checkbox",A.checkOn=""!==E.value,A.optSelected=O.selected,A.reliableMarginRight=!0,A.boxSizingReliable=!0,A.pixelPosition=!1,E.checked=!0,A.noCloneChecked=E.cloneNode(!0).checked,P.disabled=!0,A.optDisabled=!O.disabled,(E=g.createElement("input")).value="t",E.type="radio",A.radioValue="t"===E.value,E.setAttribute("checked","t"),E.setAttribute("name","t"),T.appendChild(E),A.checkClone=T.cloneNode(!0).cloneNode(!0).lastChild.checked,A.focusinBubbles="onfocusin"in d,N.style.backgroundClip="content-box",N.cloneNode(!0).style.backgroundClip="",A.clearCloneStyle="content-box"===N.style.backgroundClip,xt(function(){var t,e,n=g.getElementsByTagName("body")[0];n&&((t=g.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",n.appendChild(t).appendChild(N),N.innerHTML="",N.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",xt.swap(n,null!=n.style.zoom?{zoom:1}:{},function(){A.boxSizing=4===N.offsetWidth}),d.getComputedStyle&&(A.pixelPosition="1%"!==(d.getComputedStyle(N,null)||{}).top,A.boxSizingReliable="4px"===(d.getComputedStyle(N,null)||{width:"4px"}).width,(e=N.appendChild(g.createElement("div"))).style.cssText=N.style.cssText="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",e.style.marginRight=e.style.width="0",N.style.width="1px",A.reliableMarginRight=!parseFloat((d.getComputedStyle(e,null)||{}).marginRight)),n.removeChild(t))})),A);var R,j,L=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,q=/([A-Z])/g;function B(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=xt.expando+Math.random()}function F(t,e,n){var r;if(n===_&&1===t.nodeType)if(r="data-"+e.replace(q,"-$1").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:L.test(n)?JSON.parse(n):n)}catch(t){}R.set(t,e,n)}else n=_;return n}B.uid=1,B.accepts=function(t){return!t.nodeType||(1===t.nodeType||9===t.nodeType)},B.prototype={key:function(e){if(!B.accepts(e))return 0;var n={},r=e[this.expando];if(!r){r=B.uid++;try{n[this.expando]={value:r},Object.defineProperties(e,n)}catch(t){n[this.expando]=r,xt.extend(e,n)}}return this.cache[r]||(this.cache[r]={}),r},set:function(t,e,n){var r,i=this.key(t),o=this.cache[i];if("string"==typeof e)o[e]=n;else if(xt.isEmptyObject(o))xt.extend(this.cache[i],e);else for(r in e)o[r]=e[r];return o},get:function(t,e){var n=this.cache[this.key(t)];return e===_?n:n[e]},access:function(t,e,n){var r;return e===_||e&&"string"==typeof e&&n===_?(r=this.get(t,e))!==_?r:this.get(t,xt.camelCase(e)):(this.set(t,e,n),n!==_?n:e)},remove:function(t,e){var n,r,i,o=this.key(t),a=this.cache[o];if(e===_)this.cache[o]={};else{n=(r=xt.isArray(e)?e.concat(e.map(xt.camelCase)):(i=xt.camelCase(e),e in a?[e,i]:(r=i)in a?[r]:r.match(C)||[])).length;for(;n--;)delete a[r[n]]}},hasData:function(t){return!xt.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}},R=new B,j=new B,xt.extend({acceptData:B.accepts,hasData:function(t){return R.hasData(t)||j.hasData(t)},data:function(t,e,n){return R.access(t,e,n)},removeData:function(t,e){R.remove(t,e)},_data:function(t,e,n){return j.access(t,e,n)},_removeData:function(t,e){j.remove(t,e)}}),xt.fn.extend({data:function(r,t){var e,n,i=this[0],o=0,a=null;if(r!==_)return"object"==typeof r?this.each(function(){R.set(this,r)}):xt.access(this,function(e){var t,n=xt.camelCase(r);if(i&&e===_){if((t=R.get(i,r))!==_)return t;if((t=R.get(i,n))!==_)return t;if((t=F(i,n,_))!==_)return t}else this.each(function(){var t=R.get(this,n);R.set(this,n,e),-1!==r.indexOf("-")&&t!==_&&R.set(this,r,e)})},null,t,1<arguments.length,null,!0);if(this.length&&(a=R.get(i),1===i.nodeType&&!j.get(i,"hasDataAttrs"))){for(e=i.attributes;e.length>o;o++)0===(n=e[o].name).indexOf("data-")&&(n=xt.camelCase(n.slice(5)),F(i,n,a[n]));j.set(i,"hasDataAttrs",!0)}return a},removeData:function(t){return this.each(function(){R.remove(this,t)})}}),xt.extend({queue:function(t,e,n){var r;return t?(e=(e||"fx")+"queue",r=j.get(t,e),n&&(!r||xt.isArray(n)?r=j.access(t,e,xt.makeArray(n)):r.push(n)),r||[]):_},dequeue:function(t,e){e=e||"fx";var n=xt.queue(t,e),r=n.length,i=n.shift(),o=xt._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,function(){xt.dequeue(t,e)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return j.get(t,n)||j.access(t,n,{empty:xt.Callbacks("once memory").add(function(){j.remove(t,[e+"queue",n])})})}}),xt.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),t>arguments.length?xt.queue(this[0],e):n===_?this:this.each(function(){var t=xt.queue(this,e,n);xt._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&xt.dequeue(this,e)})},dequeue:function(t){return this.each(function(){xt.dequeue(this,t)})},delay:function(r,t){return r=xt.fx&&xt.fx.speeds[r]||r,t=t||"fx",this.queue(t,function(t,e){var n=setTimeout(t,r);e.stop=function(){clearTimeout(n)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=xt.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=_),t=t||"fx";a--;)(n=j.get(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var I,U=/[\t\r\n\f]/g,z=/\r/g,H=/^(?:input|select|textarea|button)$/i;xt.fn.extend({attr:function(t,e){return xt.access(this,xt.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){xt.removeAttr(this,t)})},prop:function(t,e){return xt.access(this,xt.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[xt.propFix[t]||t]})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,u="string"==typeof e&&e;if(xt.isFunction(e))return this.each(function(t){xt(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(C)||[];a<s;a++)if(r=1===(n=this[a]).nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");n.className=xt.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(xt.isFunction(e))return this.each(function(t){xt(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(C)||[];a<s;a++)if(r=1===(n=this[a]).nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){for(o=0;i=t[o++];)for(;0<=r.indexOf(" "+i+" ");)r=r.replace(" "+i+" "," ");n.className=e?xt.trim(r):""}return this},toggleClass:function(i,e){var o=typeof i;return"boolean"==typeof e&&"string"===o?e?this.addClass(i):this.removeClass(i):xt.isFunction(i)?this.each(function(t){xt(this).toggleClass(i.call(this,t,this.className,e),e)}):this.each(function(){if("string"===o)for(var t,e=0,n=xt(this),r=i.match(C)||[];t=r[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else(o===y||"boolean"===o)&&(this.className&&j.set(this,"__className__",this.className),this.className=this.className||!1===i?"":j.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&0<=(" "+this[n].className+" ").replace(U," ").indexOf(e))return!0;return!1},val:function(n){var r,t,i,e=this[0];return arguments.length?(i=xt.isFunction(n),this.each(function(t){var e;1===this.nodeType&&(null==(e=i?n.call(this,t,xt(this).val()):n)?e="":"number"==typeof e?e+="":xt.isArray(e)&&(e=xt.map(e,function(t){return null==t?"":t+""})),(r=xt.valHooks[this.type]||xt.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&r.set(this,e,"value")!==_||(this.value=e))})):e?(r=xt.valHooks[e.type]||xt.valHooks[e.nodeName.toLowerCase()])&&"get"in r&&(t=r.get(e,"value"))!==_?t:"string"==typeof(t=e.value)?t.replace(z,""):null==t?"":t:void 0}}),xt.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(!(!(n=r[u]).selected&&u!==i||(xt.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&xt.nodeName(n.parentNode,"optgroup"))){if(e=xt(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=xt.makeArray(e),a=i.length;a--;)((r=i[a]).selected=0<=xt.inArray(xt(r).val(),o))&&(n=!0);return n||(t.selectedIndex=-1),o}}},attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===y?xt.prop(t,e,n):(1===o&&xt.isXMLDoc(t)||(e=e.toLowerCase(),r=xt.attrHooks[e]||(xt.expr.match.bool.test(e)?I:void 0)),n===_?r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=xt.find.attr(t,e))?_:i:null!==n?r&&"set"in r&&(i=r.set(t,n,e))!==_?i:(t.setAttribute(e,n+""),n):(xt.removeAttr(t,e),_))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(C);if(o&&1===t.nodeType)for(;n=o[i++];)r=xt.propFix[n]||n,xt.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!xt.support.radioValue&&"radio"===e&&xt.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},propFix:{for:"htmlFor",class:"className"},prop:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return(1!==o||!xt.isXMLDoc(t))&&(e=xt.propFix[e]||e,i=xt.propHooks[e]),n!==_?i&&"set"in i&&(r=i.set(t,n,e))!==_?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||H.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),I={set:function(t,e,n){return!1===e?xt.removeAttr(t,n):t.setAttribute(n,n),n}},xt.each(xt.expr.match.bool.source.match(/\w+/g),function(t,e){var o=xt.expr.attrHandle[e]||xt.find.attr;xt.expr.attrHandle[e]=function(t,e,n){var r=xt.expr.attrHandle[e],i=n?_:(xt.expr.attrHandle[e]=_)!=o(t,e,n)?e.toLowerCase():null;return xt.expr.attrHandle[e]=r,i}}),xt.support.optSelected||(xt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),xt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){xt.propFix[this.toLowerCase()]=this}),xt.each(["radio","checkbox"],function(){xt.valHooks[this]={set:function(t,e){return xt.isArray(e)?t.checked=0<=xt.inArray(xt(t).val(),e):_}},xt.support.checkOn||(xt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var V=/^key/,W=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;function G(){return!0}function J(){return!1}function Z(){try{return g.activeElement}catch(t){}}xt.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,c,f,l,h,p,d,g,v=j.get(t);if(v){for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=xt.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||((a=v.handle=function(t){return typeof xt===y||t&&xt.event.triggered===t.type?_:xt.event.dispatch.apply(a.elem,arguments)}).elem=t),c=(e=(e||"").match(C)||[""]).length;c--;)p=g=(s=X.exec(e[c])||[])[1],d=(s[2]||"").split(".").sort(),p&&(l=xt.event.special[p]||{},p=(i?l.delegateType:l.bindType)||p,l=xt.event.special[p]||{},f=xt.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&xt.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=u[p])||((h=u[p]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,r,d,a)||t.addEventListener&&t.addEventListener(p,a,!1)),l.add&&(l.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,f):h.push(f),xt.event.global[p]=!0);t=null}},remove:function(t,e,n,r,i){var o,a,s,u,c,f,l,h,p,d,g,v=j.hasData(t)&&j.get(t);if(v&&(u=v.events)){for(c=(e=(e||"").match(C)||[""]).length;c--;)if(p=g=(s=X.exec(e[c])||[])[1],d=(s[2]||"").split(".").sort(),p){for(l=xt.event.special[p]||{},h=u[p=(r?l.delegateType:l.bindType)||p]||[],s=s[2]&&RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)f=h[o],!i&&g!==f.origType||n&&n.guid!==f.guid||s&&!s.test(f.namespace)||r&&r!==f.selector&&("**"!==r||!f.selector)||(h.splice(o,1),f.selector&&h.delegateCount--,l.remove&&l.remove.call(t,f));a&&!h.length&&(l.teardown&&!1!==l.teardown.call(t,d,v.handle)||xt.removeEvent(t,p,v.handle),delete u[p])}else for(p in u)xt.event.remove(t,p+e[c],n,r,!0);xt.isEmptyObject(u)&&(delete v.handle,j.remove(t,"events"))}},trigger:function(t,e,n,r){var i,o,a,s,u,c,f,l=[n||g],h=m.call(t,"type")?t.type:t,p=m.call(t,"namespace")?t.namespace.split("."):[];if(o=a=n=n||g,3!==n.nodeType&&8!==n.nodeType&&!Y.test(h+xt.event.triggered)&&(0<=h.indexOf(".")&&(h=(p=h.split(".")).shift(),p.sort()),u=h.indexOf(":")<0&&"on"+h,(t=t[xt.expando]?t:new xt.Event(h,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=p.join("."),t.namespace_re=t.namespace?RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=_,t.target||(t.target=n),e=null==e?[t]:xt.makeArray(e,[t]),f=xt.event.special[h]||{},r||!f.trigger||!1!==f.trigger.apply(n,e))){if(!r&&!f.noBubble&&!xt.isWindow(n)){for(s=f.delegateType||h,Y.test(s+h)||(o=o.parentNode);o;o=o.parentNode)l.push(o),a=o;a===(n.ownerDocument||g)&&l.push(a.defaultView||a.parentWindow||d)}for(i=0;(o=l[i++])&&!t.isPropagationStopped();)t.type=1<i?s:f.bindType||h,(c=(j.get(o,"events")||{})[t.type]&&j.get(o,"handle"))&&c.apply(o,e),(c=u&&o[u])&&xt.acceptData(o)&&c.apply&&!1===c.apply(o,e)&&t.preventDefault();return t.type=h,r||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(l.pop(),e)||!xt.acceptData(n)||u&&xt.isFunction(n[h])&&!xt.isWindow(n)&&((a=n[u])&&(n[u]=null),n[xt.event.triggered=h](),xt.event.triggered=_,a&&(n[u]=a)),t.result}},dispatch:function(t){t=xt.event.fix(t);var e,n,r,i,o,a=[],s=f.call(arguments),u=(j.get(this,"events")||{})[t.type]||[],c=xt.event.special[t.type]||{};if((s[0]=t).delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(a=xt.event.handlers.call(this,t,u),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(o.namespace))&&(t.handleObj=o,t.data=o.data,(r=((xt.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))!==_&&!1===(t.result=r)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!==this;u=u.parentNode||this)if(!0!==u.disabled||"click"!==t.type){for(r=[],n=0;n<s;n++)r[i=(o=e[n]).selector+" "]===_&&(r[i]=o.needsContext?0<=xt(i,this).index(u):xt.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return e.length>s&&a.push({elem:this,handlers:e.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(r=(n=t.target.ownerDocument||g).documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||o===_||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[xt.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=W.test(i)?this.mouseHooks:V.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new xt.Event(o),e=r.length;e--;)t[n=r[e]]=o[n];return t.target||(t.target=g),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==Z()&&this.focus?(this.focus(),!1):_},delegateType:"focusin"},blur:{trigger:function(){return this===Z()&&this.blur?(this.blur(),!1):_},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&xt.nodeName(this,"input")?(this.click(),!1):_},_default:function(t){return xt.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){t.result!==_&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=xt.extend(new xt.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?xt.event.trigger(i,null,e):xt.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},xt.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},xt.Event=function(t,e){return this instanceof xt.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.getPreventDefault&&t.getPreventDefault()?G:J):this.type=t,e&&xt.extend(this,e),this.timeStamp=t&&t.timeStamp||xt.now(),this[xt.expando]=!0,_):new xt.Event(t,e)},xt.Event.prototype={isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=G,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=G,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=G,this.stopPropagation()}},xt.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,i){xt.event.special[t]={delegateType:i,bindType:i,handle:function(t){var e,n=t.relatedTarget,r=t.handleObj;return(!n||n!==this&&!xt.contains(this,n))&&(t.type=r.origType,e=r.handler.apply(this,arguments),t.type=i),e}}}),xt.support.focusinBubbles||xt.each({focus:"focusin",blur:"focusout"},function(t,e){var n=0,r=function(t){xt.event.simulate(e,t.target,xt.event.fix(t),!0)};xt.event.special[e]={setup:function(){0==n++&&g.addEventListener(t,r,!0)},teardown:function(){0==--n&&g.removeEventListener(t,r,!0)}}}),xt.fn.extend({on:function(t,e,n,r,i){var o,a;if("object"==typeof t){for(a in"string"!=typeof e&&(n=n||e,e=_),t)this.on(a,e,n,t[a],i);return this}if(null==n&&null==r?(r=e,n=e=_):null==r&&("string"==typeof e?(r=n,n=_):(r=n,n=e,e=_)),!1===r)r=J;else if(!r)return this;return 1===i&&(o=r,(r=function(t){return xt().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=xt.guid++)),this.each(function(){xt.event.add(this,t,r,n,e)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,xt(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof t)return(!1===e||"function"==typeof e)&&(n=e,e=_),!1===n&&(n=J),this.each(function(){xt.event.remove(this,t,n,e)});for(i in t)this.off(i,e,t[i]);return this},trigger:function(t,e){return this.each(function(){xt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?xt.event.trigger(t,e,n,!0):_}});var K=/^.[^:#\[\.,]*$/,Q=/^(?:parents|prev(?:Until|All))/,tt=xt.expr.match.needsContext,et={children:!0,contents:!0,next:!0,prev:!0};function nt(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function rt(t,n,r){if(xt.isFunction(n))return xt.grep(t,function(t,e){return!!n.call(t,e,t)!==r});if(n.nodeType)return xt.grep(t,function(t){return t===n!==r});if("string"==typeof n){if(K.test(n))return xt.filter(n,t,r);n=xt.filter(n,t)}return xt.grep(t,function(t){return 0<=c.call(n,t)!==r})}xt.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if("string"!=typeof t)return this.pushStack(xt(t).filter(function(){for(e=0;e<i;e++)if(xt.contains(r[e],this))return!0}));for(e=0;e<i;e++)xt.find(t,r[e],n);return(n=this.pushStack(1<i?xt.unique(n):n)).selector=this.selector?this.selector+" "+t:t,n},has:function(t){var e=xt(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(xt.contains(this,e[t]))return!0})},not:function(t){return this.pushStack(rt(this,t||[],!0))},filter:function(t){return this.pushStack(rt(this,t||[],!1))},is:function(t){return!!rt(this,"string"==typeof t&&tt.test(t)?xt(t):t||[],!1).length},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=tt.test(t)||"string"!=typeof t?xt(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&xt.find.matchesSelector(n,t))){n=o.push(n);break}return this.pushStack(1<o.length?xt.unique(o):o)},index:function(t){return t?"string"==typeof t?c.call(xt(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){var n="string"==typeof t?xt(t,e):xt.makeArray(t&&t.nodeType?[t]:t),r=xt.merge(this.get(),n);return this.pushStack(xt.unique(r))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),xt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return xt.dir(t,"parentNode")},parentsUntil:function(t,e,n){return xt.dir(t,"parentNode",n)},next:function(t){return nt(t,"nextSibling")},prev:function(t){return nt(t,"previousSibling")},nextAll:function(t){return xt.dir(t,"nextSibling")},prevAll:function(t){return xt.dir(t,"previousSibling")},nextUntil:function(t,e,n){return xt.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return xt.dir(t,"previousSibling",n)},siblings:function(t){return xt.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return xt.sibling(t.firstChild)},contents:function(t){return t.contentDocument||xt.merge([],t.childNodes)}},function(r,i){xt.fn[r]=function(t,e){var n=xt.map(this,i,t);return"Until"!==r.slice(-5)&&(e=t),e&&"string"==typeof e&&(n=xt.filter(e,n)),1<this.length&&(et[r]||xt.unique(n),Q.test(r)&&n.reverse()),this.pushStack(n)}}),xt.extend({filter:function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?xt.find.matchesSelector(r,t)?[r]:[]:xt.find.matches(t,xt.grep(e,function(t){return 1===t.nodeType}))},dir:function(t,e,n){for(var r=[],i=n!==_;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&xt(t).is(n))break;r.push(t)}return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}});var it=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ot=/<([\w:]+)/,at=/<|&#?\w+;/,st=/<(?:script|style|link)/i,ut=/^(?:checkbox|radio)$/i,ct=/checked\s*(?:[^=]|=\s*.checked.)/i,ft=/^$|\/(?:java|ecma)script/i,lt=/^true\/(.*)/,ht=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,pt={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,"",""]};function dt(t,e){return xt.nodeName(t,"table")&&xt.nodeName(1===e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function gt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function vt(t){var e=lt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function yt(t,e){for(var n=t.length,r=0;r<n;r++)j.set(t[r],"globalEval",!e||j.get(e[r],"globalEval"))}function mt(t,e){var n,r,i,o,a,s,u,c;if(1===e.nodeType){if(j.hasData(t)&&(o=j.access(t),a=j.set(e,o),c=o.events))for(i in delete a.handle,a.events={},c)for(n=0,r=c[i].length;n<r;n++)xt.event.add(e,i,c[i][n]);R.hasData(t)&&(s=R.access(t),u=xt.extend({},s),R.set(e,u))}}function bt(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return e===_||e&&xt.nodeName(t,e)?xt.merge([t],n):n}pt.optgroup=pt.option,pt.tbody=pt.tfoot=pt.colgroup=pt.caption=pt.thead,pt.th=pt.td,xt.fn.extend({text:function(t){return xt.access(this,function(t){return t===_?xt.text(this):this.empty().append((this[0]&&this[0].ownerDocument||g).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||dt(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=dt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?xt.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||xt.cleanData(bt(n)),n.parentNode&&(e&&xt.contains(n.ownerDocument,n)&&yt(bt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(xt.cleanData(bt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return xt.clone(this,t,e)})},html:function(t){return xt.access(this,function(t){var e=this[0]||{},n=0,r=this.length;if(t===_&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!st.test(t)&&!pt[(ot.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(it,"<$1></$2>");try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(xt.cleanData(bt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var r=xt.map(this,function(t){return[t.nextSibling,t.parentNode]}),i=0;return this.domManip(arguments,function(t){var e=r[i++],n=r[i++];n&&(e&&e.parentNode!==n&&(e=this.nextSibling),xt(this).remove(),n.insertBefore(t,e))},!0),i?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(n,r,i){n=v.apply([],n);var t,e,o,a,s,u,c=0,f=this.length,l=this,h=f-1,p=n[0],d=xt.isFunction(p);if(d||!(f<=1||"string"!=typeof p||xt.support.checkClone)&&ct.test(p))return this.each(function(t){var e=l.eq(t);d&&(n[0]=p.call(this,t,e.html())),e.domManip(n,r,i)});if(f&&(e=(t=xt.buildFragment(n,this[0].ownerDocument,!1,!i&&this)).firstChild,1===t.childNodes.length&&(t=e),e)){for(a=(o=xt.map(bt(t,"script"),gt)).length;c<f;c++)s=t,c!==h&&(s=xt.clone(s,!0,!0),a&&xt.merge(o,bt(s,"script"))),r.call(this[c],s,c);if(a)for(u=o[o.length-1].ownerDocument,xt.map(o,vt),c=0;c<a;c++)s=o[c],ft.test(s.type||"")&&!j.access(s,"globalEval")&&xt.contains(u,s)&&(s.src?xt._evalUrl(s.src):xt.globalEval(s.textContent.replace(ht,"")))}return this}}),xt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){xt.fn[t]=function(t){for(var e,n=[],r=xt(t),i=r.length-1,o=0;o<=i;o++)e=o===i?this:this.clone(!0),xt(r[o])[a](e),u.apply(n,e.get());return this.pushStack(n)}}),xt.extend({clone:function(t,e,n){var r,i,o,a,s,u,c,f=t.cloneNode(!0),l=xt.contains(t.ownerDocument,t);if(!(xt.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||xt.isXMLDoc(t)))for(a=bt(f),r=0,i=(o=bt(t)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(c=u.nodeName.toLowerCase())&&ut.test(s.type)?u.checked=s.checked:("input"===c||"textarea"===c)&&(u.defaultValue=s.defaultValue);if(e)if(n)for(o=o||bt(t),a=a||bt(f),r=0,i=o.length;r<i;r++)mt(o[r],a[r]);else mt(t,f);return 0<(a=bt(f,"script")).length&&yt(a,!l&&bt(t,"script")),f},buildFragment:function(t,e,n,r){for(var i,o,a,s,u,c,f=0,l=t.length,h=e.createDocumentFragment(),p=[];f<l;f++)if((i=t[f])||0===i)if("object"===xt.type(i))xt.merge(p,i.nodeType?[i]:i);else if(at.test(i)){for(o=o||h.appendChild(e.createElement("div")),a=(ot.exec(i)||["",""])[1].toLowerCase(),s=pt[a]||pt._default,o.innerHTML=s[1]+i.replace(it,"<$1></$2>")+s[2],c=s[0];c--;)o=o.lastChild;xt.merge(p,o.childNodes),(o=h.firstChild).textContent=""}else p.push(e.createTextNode(i));for(h.textContent="",f=0;i=p[f++];)if((!r||-1===xt.inArray(i,r))&&(u=xt.contains(i.ownerDocument,i),o=bt(h.appendChild(i),"script"),u&&yt(o),n))for(c=0;i=o[c++];)ft.test(i.type||"")&&n.push(i);return h},cleanData:function(t){for(var e,n,r,i,o,a,s=xt.event.special,u=0;(n=t[u])!==_;u++){if(B.accepts(n)&&((o=n[j.expando])&&(e=j.cache[o]))){if((r=Object.keys(e.events||{})).length)for(a=0;(i=r[a])!==_;a++)s[i]?xt.event.remove(n,i):xt.removeEvent(n,i,e.handle);j.cache[o]&&delete j.cache[o]}delete R.cache[n[R.expando]]}},_evalUrl:function(t){return xt.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})}}),xt.fn.extend({wrapAll:function(e){var t;return xt.isFunction(e)?this.each(function(t){xt(this).wrapAll(e.call(this,t))}):(this[0]&&(t=xt(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(n){return xt.isFunction(n)?this.each(function(t){xt(this).wrapInner(n.call(this,t))}):this.each(function(){var t=xt(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=xt.isFunction(e);return this.each(function(t){xt(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){xt.nodeName(this,"body")||xt(this).replaceWith(this.childNodes)}).end()}});var $t,wt,_t=/^(none|table(?!-c[ea]).+)/,Ct=/^margin/,kt=RegExp("^("+p+")(.*)$","i"),St=RegExp("^("+p+")(?!px)[a-z%]+$","i"),Mt=RegExp("^([+-])=("+p+")","i"),At={BODY:"block"},Et={position:"absolute",visibility:"hidden",display:"block"},Tt={letterSpacing:0,fontWeight:400},Nt=["Top","Right","Bottom","Left"],Pt=["Webkit","O","Moz","ms"];function Ot(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),r=e,i=Pt.length;i--;)if((e=Pt[i]+n)in t)return e;return r}function Dt(t,e){return t=e||t,"none"===xt.css(t,"display")||!xt.contains(t.ownerDocument,t)}function Rt(t){return d.getComputedStyle(t,null)}function jt(t,e){for(var n,r,i,o,a,s,u=[],c=0,f=t.length;c<f;c++)(r=t[c]).style&&(u[c]=j.get(r,"olddisplay"),n=r.style.display,e?(u[c]||"none"!==n||(r.style.display=""),""===r.style.display&&Dt(r)&&(u[c]=j.access(r,"olddisplay",(o=r.nodeName,s=a=void 0,a=g,(s=At[o])||("none"!==(s=Ft(o,a))&&s||(wt=(wt||xt("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(a.documentElement),(a=(wt[0].contentWindow||wt[0].contentDocument).document).write("<!doctype html><html><body>"),a.close(),s=Ft(o,a),wt.detach()),At[o]=s),s)))):u[c]||(i=Dt(r),(n&&"none"!==n||!i)&&j.set(r,"olddisplay",i?n:xt.css(r,"display"))));for(c=0;c<f;c++)(r=t[c]).style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?u[c]||"":"none"));return t}function Lt(t,e,n){var r=kt.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function qt(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=xt.css(t,n+Nt[o],!0,i)),r?("content"===n&&(a-=xt.css(t,"padding"+Nt[o],!0,i)),"margin"!==n&&(a-=xt.css(t,"border"+Nt[o]+"Width",!0,i))):(a+=xt.css(t,"padding"+Nt[o],!0,i),"padding"!==n&&(a+=xt.css(t,"border"+Nt[o]+"Width",!0,i)));return a}function Bt(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Rt(t),a=xt.support.boxSizing&&"border-box"===xt.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(((i=$t(t,e,o))<0||null==i)&&(i=t.style[e]),St.test(i))return i;r=a&&(xt.support.boxSizingReliable||i===t.style[e]),i=parseFloat(i)||0}return i+qt(t,e,n||(a?"border":"content"),r,o)+"px"}function Ft(t,e){var n=xt(e.createElement(t)).appendTo(e.body),r=xt.css(n[0],"display");return n.remove(),r}xt.fn.extend({css:function(t,e){return xt.access(this,function(t,e,n){var r,i,o={},a=0;if(xt.isArray(e)){for(r=Rt(t),i=e.length;a<i;a++)o[e[a]]=xt.css(t,e[a],!1,r);return o}return n!==_?xt.style(t,e,n):xt.css(t,e)},t,e,1<arguments.length)},show:function(){return jt(this,!0)},hide:function(){return jt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Dt(this)?xt(this).show():xt(this).hide()})}}),xt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=$t(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=xt.camelCase(e),u=t.style;return e=xt.cssProps[s]||(xt.cssProps[s]=Ot(u,s)),a=xt.cssHooks[e]||xt.cssHooks[s],n===_?a&&"get"in a&&(i=a.get(t,!1,r))!==_?i:u[e]:("string"===(o=typeof n)&&(i=Mt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(xt.css(t,e)),o="number"),null==n||"number"===o&&isNaN(n)||("number"!==o||xt.cssNumber[s]||(n+="px"),xt.support.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&(n=a.set(t,n,r))===_||(u[e]=n)),_)}},css:function(t,e,n,r){var i,o,a,s=xt.camelCase(e);return e=xt.cssProps[s]||(xt.cssProps[s]=Ot(t.style,s)),(a=xt.cssHooks[e]||xt.cssHooks[s])&&"get"in a&&(i=a.get(t,!0,n)),i===_&&(i=$t(t,e,r)),"normal"===i&&e in Tt&&(i=Tt[e]),""===n||n?(o=parseFloat(i),!0===n||xt.isNumeric(o)?o||0:i):i}}),$t=function(t,e,n){var r,i,o,a=n||Rt(t),s=a?a.getPropertyValue(e)||a[e]:_,u=t.style;return a&&(""!==s||xt.contains(t.ownerDocument,t)||(s=xt.style(t,e)),St.test(s)&&Ct.test(e)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=s,s=a.width,u.width=r,u.minWidth=i,u.maxWidth=o)),s},xt.each(["height","width"],function(t,i){xt.cssHooks[i]={get:function(t,e,n){return e?0===t.offsetWidth&&_t.test(xt.css(t,"display"))?xt.swap(t,Et,function(){return Bt(t,i,n)}):Bt(t,i,n):_},set:function(t,e,n){var r=n&&Rt(t);return Lt(0,e,n?qt(t,i,n,xt.support.boxSizing&&"border-box"===xt.css(t,"boxSizing",!1,r),r):0)}}}),xt(function(){xt.support.reliableMarginRight||(xt.cssHooks.marginRight={get:function(t,e){return e?xt.swap(t,{display:"inline-block"},$t,[t,"marginRight"]):_}}),!xt.support.pixelPosition&&xt.fn.position&&xt.each(["top","left"],function(t,n){xt.cssHooks[n]={get:function(t,e){return e?(e=$t(t,n),St.test(e)?xt(t).position()[n]+"px":e):_}}})}),xt.expr&&xt.expr.filters&&(xt.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},xt.expr.filters.visible=function(t){return!xt.expr.filters.hidden(t)}),xt.each({margin:"",padding:"",border:"Width"},function(i,o){xt.cssHooks[i+o]={expand:function(t){for(var e=0,n={},r="string"==typeof t?t.split(" "):[t];e<4;e++)n[i+Nt[e]+o]=r[e]||r[e-2]||r[0];return n}},Ct.test(i)||(xt.cssHooks[i+o].set=Lt)});var It=/%20/g,Ut=/\[\]$/,zt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Vt=/^(?:input|select|textarea|keygen)/i;function Wt(n,t,r,i){var e;if(xt.isArray(t))xt.each(t,function(t,e){r||Ut.test(n)?i(n,e):Wt(n+"["+("object"==typeof e?t:"")+"]",e,r,i)});else if(r||"object"!==xt.type(t))i(n,t);else for(e in t)Wt(n+"["+e+"]",t[e],r,i)}xt.fn.extend({serialize:function(){return xt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=xt.prop(this,"elements");return t?xt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!xt(this).is(":disabled")&&Vt.test(this.nodeName)&&!Ht.test(t)&&(this.checked||!ut.test(t))}).map(function(t,e){var n=xt(this).val();return null==n?null:xt.isArray(n)?xt.map(n,function(t){return{name:e.name,value:t.replace(zt,"\r\n")}}):{name:e.name,value:n.replace(zt,"\r\n")}}).get()}}),xt.param=function(t,e){var n,r=[],i=function(t,e){e=xt.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(e===_&&(e=xt.ajaxSettings&&xt.ajaxSettings.traditional),xt.isArray(t)||t.jquery&&!xt.isPlainObject(t))xt.each(t,function(){i(this.name,this.value)});else for(n in t)Wt(n,t[n],e,i);return r.join("&").replace(It,"+")},xt.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,n){xt.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),xt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var Yt,Xt,Gt=xt.now(),Jt=/\?/,Zt=/#.*$/,Kt=/([?&])_=[^&]*/,Qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,te=/^(?:GET|HEAD)$/,ee=/^\/\//,ne=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,re=xt.fn.load,ie={},oe={},ae="*/".concat("*");try{Xt=t.href}catch(t){(Xt=g.createElement("a")).href="",Xt=Xt.href}function se(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,r=0,i=t.toLowerCase().match(C)||[];if(xt.isFunction(e))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(e)):(o[n]=o[n]||[]).push(e)}}function ue(e,i,o,a){var s={},u=e===oe;function c(t){var r;return s[t]=!0,xt.each(e[t]||[],function(t,e){var n=e(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):_:(i.dataTypes.unshift(n),c(n),!1)}),r}return c(i.dataTypes[0])||!s["*"]&&c("*")}function ce(t,e){var n,r,i=xt.ajaxSettings.flatOptions||{};for(n in e)e[n]!==_&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&xt.extend(!0,t,r),t}Yt=ne.exec(Xt.toLowerCase())||[],xt.fn.load=function(t,e,n){if("string"!=typeof t&&re)return re.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return 0<=s&&(r=t.slice(s),t=t.slice(0,s)),xt.isFunction(e)?(n=e,e=_):e&&"object"==typeof e&&(i="POST"),0<a.length&&xt.ajax({url:t,type:i,dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?xt("<div>").append(xt.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){a.each(n,o||[t.responseText,e,t])}),this},xt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){xt.fn[e]=function(t){return this.on(e,t)}}),xt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Xt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Yt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ae,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":xt.parseJSON,"text xml":xt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ce(ce(t,xt.ajaxSettings),e):ce(xt.ajaxSettings,t)},ajaxPrefilter:se(ie),ajaxTransport:se(oe),ajax:function(t,e){"object"==typeof t&&(e=t,t=_),e=e||{};var f,l,h,n,p,r,d,i,g=xt.ajaxSetup({},e),v=g.context||g,y=g.context&&(v.nodeType||v.jquery)?xt(v):xt.event,m=xt.Deferred(),b=xt.Callbacks("once memory"),x=g.statusCode||{},o={},a={},$=0,s="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===$){if(!n)for(n={};e=Qt.exec(h);)n[e[1].toLowerCase()]=e[2];e=n[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===$?h:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return $||(t=a[n]=a[n]||t,o[t]=e),this},overrideMimeType:function(t){return $||(g.mimeType=t),this},statusCode:function(t){var e;if(t)if($<2)for(e in t)x[e]=[x[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||s;return f&&f.abort(e),u(0,e),this}};if(m.promise(w).complete=b.add,w.success=w.done,w.error=w.fail,g.url=((t||g.url||Xt)+"").replace(Zt,"").replace(ee,Yt[1]+"//"),g.type=e.method||e.type||g.method||g.type,g.dataTypes=xt.trim(g.dataType||"*").toLowerCase().match(C)||[""],null==g.crossDomain&&(r=ne.exec(g.url.toLowerCase()),g.crossDomain=!(!r||r[1]===Yt[1]&&r[2]===Yt[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(Yt[3]||("http:"===Yt[1]?"80":"443")))),g.data&&g.processData&&"string"!=typeof g.data&&(g.data=xt.param(g.data,g.traditional)),ue(ie,g,e,w),2===$)return w;for(i in(d=g.global)&&0==xt.active++&&xt.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!te.test(g.type),l=g.url,g.hasContent||(g.data&&(l=g.url+=(Jt.test(l)?"&":"?")+g.data,delete g.data),!1===g.cache&&(g.url=Kt.test(l)?l.replace(Kt,"$1_="+Gt++):l+(Jt.test(l)?"&":"?")+"_="+Gt++)),g.ifModified&&(xt.lastModified[l]&&w.setRequestHeader("If-Modified-Since",xt.lastModified[l]),xt.etag[l]&&w.setRequestHeader("If-None-Match",xt.etag[l])),(g.data&&g.hasContent&&!1!==g.contentType||e.contentType)&&w.setRequestHeader("Content-Type",g.contentType),w.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+ae+"; q=0.01":""):g.accepts["*"]),g.headers)w.setRequestHeader(i,g.headers[i]);if(g.beforeSend&&(!1===g.beforeSend.call(v,w,g)||2===$))return w.abort();for(i in s="abort",{success:1,error:1,complete:1})w[i](g[i]);if(f=ue(oe,g,e,w)){w.readyState=1,d&&y.trigger("ajaxSend",[w,g]),g.async&&0<g.timeout&&(p=setTimeout(function(){w.abort("timeout")},g.timeout));try{$=1,f.send(o,u)}catch(t){if(!($<2))throw t;u(-1,t)}}else u(-1,"No Transport");function u(t,e,n,r){var i,o,a,s,u,c=e;2!==$&&($=2,p&&clearTimeout(p),f=_,h=r||"",w.readyState=0<t?4:0,i=200<=t&&t<300||304===t,n&&(s=function(t,e,n){var r,i,o,a,s=t.contents,u=t.dataTypes;for(;"*"===u[0];)u.shift(),r===_&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}return o?(o!==u[0]&&u.unshift(o),n[o]):_}(g,w,n)),s=function(t,e,n,r){var i,o,a,s,u,c={},f=t.dataTypes.slice();if(f[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];o=f.shift();for(;o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=f.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],f.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(g,s,w,i),i?(g.ifModified&&((u=w.getResponseHeader("Last-Modified"))&&(xt.lastModified[l]=u),(u=w.getResponseHeader("etag"))&&(xt.etag[l]=u)),204===t||"HEAD"===g.type?c="nocontent":304===t?c="notmodified":(c=s.state,o=s.data,i=!(a=s.error))):(a=c,(t||!c)&&(c="error",t<0&&(t=0))),w.status=t,w.statusText=(e||c)+"",i?m.resolveWith(v,[o,c,w]):m.rejectWith(v,[w,c,a]),w.statusCode(x),x=_,d&&y.trigger(i?"ajaxSuccess":"ajaxError",[w,g,i?o:a]),b.fireWith(v,[w,c]),d&&(y.trigger("ajaxComplete",[w,g]),--xt.active||xt.event.trigger("ajaxStop")))}return w},getJSON:function(t,e,n){return xt.get(t,e,n,"json")},getScript:function(t,e){return xt.get(t,_,e,"script")}}),xt.each(["get","post"],function(t,i){xt[i]=function(t,e,n,r){return xt.isFunction(e)&&(r=r||n,n=e,e=_),xt.ajax({url:t,type:i,dataType:r,data:e,success:n})}}),xt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return xt.globalEval(t),t}}}),xt.ajaxPrefilter("script",function(t){t.cache===_&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),xt.ajaxTransport("script",function(n){var r,i;if(n.crossDomain)return{send:function(t,e){r=xt("<script>").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",i=function(t){r.remove(),i=null,t&&e("error"===t.type?404:200,t.type)}),g.head.appendChild(r[0])},abort:function(){i&&i()}}});var fe=[],le=/(=)\?(?=&|$)|\?\?/;xt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=fe.pop()||xt.expando+"_"+Gt++;return this[t]=!0,t}}),xt.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,o,a=!1!==t.jsonp&&(le.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&le.test(t.data)&&"data");return a||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=xt.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(le,"$1"+r):!1!==t.jsonp&&(t.url+=(Jt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||xt.error(r+" was not called"),o[0]},t.dataTypes[0]="json",i=d[r],d[r]=function(){o=arguments},n.always(function(){d[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,fe.push(r)),o&&xt.isFunction(i)&&i(o[0]),o=i=_}),"script"):_}),xt.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var he=xt.ajaxSettings.xhr(),pe={0:200,1223:204},de=0,ge={};d.ActiveXObject&&xt(d).on("unload",function(){for(var t in ge)ge[t]();ge=_}),xt.support.cors=!!he&&"withCredentials"in he,xt.support.ajax=he=!!he,xt.ajaxTransport(function(o){var a;return xt.support.cors||he&&!o.crossDomain?{send:function(t,e){var n,r,i=o.xhr();if(i.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)i[n]=o.xhrFields[n];for(n in o.mimeType&&i.overrideMimeType&&i.overrideMimeType(o.mimeType),o.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);a=function(t){return function(){a&&(delete ge[r],a=i.onload=i.onerror=null,"abort"===t?i.abort():"error"===t?e(i.status||404,i.statusText):e(pe[i.status]||i.status,i.statusText,"string"==typeof i.responseText?{text:i.responseText}:_,i.getAllResponseHeaders()))}},i.onload=a(),i.onerror=a("error"),a=ge[r=de++]=a("abort"),i.send(o.hasContent&&o.data||null)},abort:function(){a&&a()}}:_});var ve,ye,me=/^(?:toggle|show|hide)$/,be=RegExp("^(?:([+-])=|)("+p+")([a-z%]*)$","i"),xe=/queueHooks$/,$e=[function(e,t,n){var r,i,o,a,s,u,c=this,f={},l=e.style,h=e.nodeType&&Dt(e),p=j.get(e,"fxshow");for(r in n.queue||(null==(s=xt._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,xt.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[l.overflow,l.overflowX,l.overflowY],"inline"===xt.css(e,"display")&&"none"===xt.css(e,"float")&&(l.display="inline-block")),n.overflow&&(l.overflow="hidden",c.always(function(){l.overflow=n.overflow[0],l.overflowX=n.overflow[1],l.overflowY=n.overflow[2]})),t)if(i=t[r],me.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!p||p[r]===_)continue;h=!0}f[r]=p&&p[r]||xt.style(e,r)}if(!xt.isEmptyObject(f))for(r in p?"hidden"in p&&(h=p.hidden):p=j.access(e,"fxshow",{}),o&&(p.hidden=!h),h?xt(e).show():c.done(function(){xt(e).hide()}),c.done(function(){var t;for(t in j.remove(e,"fxshow"),f)xt.style(e,t,f[t])}),f)a=Ce(h?p[r]:0,r,c),r in p||(p[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],we={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=be.exec(e),o=i&&i[3]||(xt.cssNumber[t]?"":"px"),a=(xt.cssNumber[t]||"px"!==o&&+r)&&be.exec(xt.css(n.elem,t)),s=1,u=20;if(a&&a[3]!==o)for(o=o||a[3],i=i||[],a=+r||1;a/=s=s||".5",xt.style(n.elem,t,a+o),s!==(s=n.cur()/r)&&1!==s&&--u;);return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function _e(){return setTimeout(function(){ve=_}),ve=xt.now()}function Ce(t,e,n){for(var r,i=(we[e]||[]).concat(we["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function ke(o,t,e){var n,a,r=0,i=$e.length,s=xt.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var t=ve||_e(),e=Math.max(0,c.startTime+c.duration-t),n=1-(e/c.duration||0),r=0,i=c.tweens.length;r<i;r++)c.tweens[r].run(n);return s.notifyWith(o,[c,n,e]),n<1&&i?e:(s.resolveWith(o,[c]),!1)},c=s.promise({elem:o,props:xt.extend({},t),opts:xt.extend(!0,{specialEasing:{}},e),originalProperties:t,originalOptions:e,startTime:ve||_e(),duration:e.duration,tweens:[],createTween:function(t,e){var n=xt.Tween(o,c.opts,t,e,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var e=0,n=t?c.tweens.length:0;if(a)return this;for(a=!0;e<n;e++)c.tweens[e].run(1);return t?s.resolveWith(o,[c,t]):s.rejectWith(o,[c,t]),this}}),f=c.props;for(function(t,e){var n,r,i,o,a;for(n in t)if(r=xt.camelCase(n),i=e[r],o=t[n],xt.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=xt.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(f,c.opts.specialEasing);r<i;r++)if(n=$e[r].call(c,o,f,c.opts))return n;return xt.map(f,Ce,c),xt.isFunction(c.opts.start)&&c.opts.start.call(o,c),xt.fx.timer(xt.extend(u,{elem:o,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function Se(t,e,n,r,i){return new Se.prototype.init(t,e,n,r,i)}function Me(t,e){var n,r={height:t},i=0;for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=Nt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function Ae(t){return xt.isWindow(t)?t:9===t.nodeType&&t.defaultView}xt.Animation=xt.extend(ke,{tweener:function(t,e){for(var n,r=0,i=(t=xt.isFunction(t)?(e=t,["*"]):t.split(" ")).length;r<i;r++)n=t[r],we[n]=we[n]||[],we[n].unshift(e)},prefilter:function(t,e){e?$e.unshift(t):$e.push(t)}}),((xt.Tween=Se).prototype={constructor:Se,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(xt.cssNumber[n]?"":"px")},cur:function(){var t=Se.propHooks[this.prop];return t&&t.get?t.get(this):Se.propHooks._default.get(this)},run:function(t){var e,n=Se.propHooks[this.prop];return this.pos=e=this.options.duration?xt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Se.propHooks._default.set(this),this}}).init.prototype=Se.prototype,(Se.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=xt.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){xt.fx.step[t.prop]?xt.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[xt.cssProps[t.prop]]||xt.cssHooks[t.prop])?xt.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}}).scrollTop=Se.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},xt.each(["toggle","show","hide"],function(t,r){var i=xt.fn[r];xt.fn[r]=function(t,e,n){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(Me(r,!0),t,e,n)}}),xt.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Dt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(e,t,n,r){var i=xt.isEmptyObject(e),o=xt.speed(t,n,r),a=function(){var t=ke(this,xt.extend({},e),o);(i||j.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,t,o){var a=function(t){var e=t.stop;delete t.stop,e(o)};return"string"!=typeof i&&(o=t,t=i,i=_),t&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var t=!0,e=null!=i&&i+"queueHooks",n=xt.timers,r=j.get(this);if(e)r[e]&&r[e].stop&&a(r[e]);else for(e in r)r[e]&&r[e].stop&&xe.test(e)&&a(r[e]);for(e=n.length;e--;)n[e].elem!==this||null!=i&&n[e].queue!==i||(n[e].anim.stop(o),t=!1,n.splice(e,1));(t||!o)&&xt.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=j.get(this),n=e[a+"queue"],r=e[a+"queueHooks"],i=xt.timers,o=n?n.length:0;for(e.finish=!0,xt.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===a&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),xt.each({slideDown:Me("show"),slideUp:Me("hide"),slideToggle:Me("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,r){xt.fn[t]=function(t,e,n){return this.animate(r,t,e,n)}}),xt.speed=function(t,e,n){var r=t&&"object"==typeof t?xt.extend({},t):{complete:n||!n&&e||xt.isFunction(t)&&t,duration:t,easing:n&&e||e&&!xt.isFunction(e)&&e};return r.duration=xt.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in xt.fx.speeds?xt.fx.speeds[r.duration]:xt.fx.speeds._default,(null==r.queue||!0===r.queue)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){xt.isFunction(r.old)&&r.old.call(this),r.queue&&xt.dequeue(this,r.queue)},r},xt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},xt.timers=[],xt.fx=Se.prototype.init,xt.fx.tick=function(){var t,e=xt.timers,n=0;for(ve=xt.now();e.length>n;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||xt.fx.stop(),ve=_},xt.fx.timer=function(t){t()&&xt.timers.push(t)&&xt.fx.start()},xt.fx.interval=13,xt.fx.start=function(){ye||(ye=setInterval(xt.fx.tick,xt.fx.interval))},xt.fx.stop=function(){clearInterval(ye),ye=null},xt.fx.speeds={slow:600,fast:200,_default:400},xt.fx.step={},xt.expr&&xt.expr.filters&&(xt.expr.filters.animated=function(e){return xt.grep(xt.timers,function(t){return e===t.elem}).length}),xt.fn.offset=function(e){if(arguments.length)return e===_?this:this.each(function(t){xt.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?(t=o.documentElement,xt.contains(t,r)?(typeof r.getBoundingClientRect!==y&&(i=r.getBoundingClientRect()),n=Ae(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},xt.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,c=xt.css(t,"position"),f=xt(t),l={};"static"===c&&(t.style.position="relative"),s=f.offset(),o=xt.css(t,"top"),u=xt.css(t,"left"),i=("absolute"===c||"fixed"===c)&&-1<(o+u).indexOf("auto")?(a=(r=f.position()).top,r.left):(a=parseFloat(o)||0,parseFloat(u)||0),xt.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(l.top=e.top-s.top+a),null!=e.left&&(l.left=e.left-s.left+i),"using"in e?e.using.call(t,l):f.css(l)}},xt.fn.extend({position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===xt.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),xt.nodeName(t[0],"html")||(r=t.offset()),r.top+=xt.css(t[0],"borderTopWidth",!0),r.left+=xt.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-xt.css(n,"marginTop",!0),left:e.left-r.left-xt.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||r;t&&!xt.nodeName(t,"html")&&"static"===xt.css(t,"position");)t=t.offsetParent;return t||r})}}),xt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var o="pageYOffset"===i;xt.fn[e]=function(t){return xt.access(this,function(t,e,n){var r=Ae(t);return n===_?r?r[i]:t[e]:(r?r.scrollTo(o?d.pageXOffset:n,o?n:d.pageYOffset):t[e]=n,_)},e,t,arguments.length,null)}}),xt.each({Height:"height",Width:"width"},function(o,a){xt.each({padding:"inner"+o,content:a,"":"outer"+o},function(r,t){xt.fn[t]=function(t,e){var n=arguments.length&&(r||"boolean"!=typeof t),i=r||(!0===t||!0===e?"margin":"border");return xt.access(this,function(t,e,n){var r;return xt.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+o],r["scroll"+o],t.body["offset"+o],r["offset"+o],r["client"+o])):n===_?xt.css(t,e,i):xt.style(t,e,n,i)},a,n?t:_,n,null)}})}),xt.fn.size=function(){return this.length},xt.fn.andSelf=xt.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=xt:"function"==typeof define&&define.amd&&define("jquery",[],function(){return xt}),"object"==typeof d&&"object"==typeof d.document&&(d.jQuery=d.$=xt)}(window),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.d3=t.d3||{})}(this,function(F){"use strict";function s(t,e){return t<e?-1:e<t?1:e<=t?0:NaN}function C(o){return 1===o.length&&(n=o,o=function(t,e){return s(n(t),e)}),{left:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n<r;){var i=n+r>>>1;o(t[i],e)<0?n=i+1:r=i}return n},right:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n<r;){var i=n+r>>>1;0<o(t[i],e)?r=i:n=i+1}return n}};var n}function f(t,e){return[t,e]}function c(t){return null===t?NaN:+t}function r(t,e){var n,r,i=t.length,o=0,a=-1,s=0,u=0;if(null==e)for(;++a<i;)isNaN(n=c(t[a]))||(u+=(r=n-s)*(n-(s+=r/++o)));else for(;++a<i;)isNaN(n=c(e(t[a],a,t)))||(u+=(r=n-s)*(n-(s+=r/++o)));if(1<o)return u/(o-1)}function i(t,e){var n=r(t,e);return n?Math.sqrt(n):n}function t(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a<o;)if(null!=(n=t[a])&&n<=n)for(r=i=n;++a<o;)null!=(n=t[a])&&(n<r&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=e(t[a],a,t))&&n<=n)for(r=i=n;++a<o;)null!=(n=e(t[a],a,t))&&(n<r&&(r=n),i<n&&(i=n));return[r,i]}function n(t){return function(){return t}}function o(t){return t}function k(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}function v(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)===(e=+e)&&0<n)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=l(t,e,n))||!isFinite(a))return[];if(0<a)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(t+s)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(t-s)/a;return r&&o.reverse(),o}function l(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return 0<=i?(Mc<=o?10:Ac<=o?5:Ec<=o?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(Mc<=o?10:Ac<=o?5:Ec<=o?2:1)}function S(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return Mc<=o?i*=10:Ac<=o?i*=5:Ec<=o&&(i*=2),e<t?-i:i}function a(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function u(t,e,n){if(null==n&&(n=c),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(1<=e)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function M(t){for(var e,n,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(n=new Array(a);0<=--i;)for(e=(r=t[i]).length;0<=--e;)n[--a]=r[e];return n}function h(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n<=n)for(r=n;++o<i;)null!=(n=t[o])&&n<r&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n<=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&n<r&&(r=n);return r}function e(t){if(!(i=t.length))return[];for(var e=-1,n=h(t,p),r=new Array(n);++e<n;)for(var i,o=-1,a=r[e]=new Array(i);++o<i;)a[o]=t[o][e];return r}function p(t){return t.length}function A(t){return t}function d(t){return"translate("+(t+.5)+",0)"}function E(t){return"translate(0,"+(t+.5)+")"}function T(){return!this.__axis}function g(g,v){function e(t){var e=null==m?v.ticks?v.ticks.apply(v,y):v.domain():m,n=null==b?v.tickFormat?v.tickFormat.apply(v,y):A:b,r=Math.max(x,0)+w,i=v.range(),o=+i[0]+.5,a=+i[i.length-1]+.5,s=(v.bandwidth?function(e){var n=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(n=Math.round(n)),function(t){return+e(t)+n}}:function(e){return function(t){return+e(t)}})(v.copy()),u=t.selection?t.selection():t,c=u.selectAll(".domain").data([null]),f=u.selectAll(".tick").data(e,v).order(),l=f.exit(),h=f.enter().append("g").attr("class","tick"),p=f.select("line"),d=f.select("text");c=c.merge(c.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),f=f.merge(h),p=p.merge(h.append("line").attr("stroke","#000").attr(C+"2",_*x)),d=d.merge(h.append("text").attr("fill","#000").attr(C,_*r).attr("dy",1===g?"0em":3===g?"0.71em":"0.32em")),t!==u&&(c=c.transition(t),f=f.transition(t),p=p.transition(t),d=d.transition(t),l=l.transition(t).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=s(t))?k(t):this.getAttribute("transform")}),h.attr("opacity",1e-6).attr("transform",function(t){var e=this.parentNode.__axis;return k(e&&isFinite(e=e(t))?e:s(t))})),l.remove(),c.attr("d",4===g||2==g?"M"+_*$+","+o+"H0.5V"+a+"H"+_*$:"M"+o+","+_*$+"V0.5H"+a+"V"+_*$),f.attr("opacity",1).attr("transform",function(t){return k(s(t))}),p.attr(C+"2",_*x),d.attr(C,_*r).text(n),u.filter(T).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===g?"start":4===g?"end":"middle"),u.each(function(){this.__axis=s})}var y=[],m=null,b=null,x=6,$=6,w=3,_=1===g||4===g?-1:1,C=4===g||2===g?"x":"y",k=1===g||3===g?d:E;return e.scale=function(t){return arguments.length?(v=t,e):v},e.ticks=function(){return y=Tc.call(arguments),e},e.tickArguments=function(t){return arguments.length?(y=null==t?[]:Tc.call(t),e):y.slice()},e.tickValues=function(t){return arguments.length?(m=null==t?null:Tc.call(t),e):m&&m.slice()},e.tickFormat=function(t){return arguments.length?(b=t,e):b},e.tickSize=function(t){return arguments.length?(x=$=+t,e):x},e.tickSizeInner=function(t){return arguments.length?(x=+t,e):x},e.tickSizeOuter=function(t){return arguments.length?($=+t,e):$},e.tickPadding=function(t){return arguments.length?(w=+t,e):w},e}function N(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new y(r)}function y(t){this._=t}function m(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Nc,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}function b(t){var e=t+="",n=e.indexOf(":");return 0<=n&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Oc.hasOwnProperty(e)?{space:Oc[e],local:t}:t}function x(t){var e=b(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(n){return function(){var t=this.ownerDocument,e=this.namespaceURI;return e===Pc&&t.documentElement.namespaceURI===Pc?t.createElement(n):t.createElementNS(e,n)}})(e)}function $(){}function w(t){return null==t?$:function(){return this.querySelector(t)}}function _(){return[]}function P(t){return null==t?_:function(){return this.querySelectorAll(t)}}function O(t){return new Array(t.length)}function D(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function R(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new D(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function j(t,e,n,r,i,o,a){var s,u,c,f={},l=e.length,h=o.length,p=new Array(l);for(s=0;s<l;++s)(u=e[s])&&(p[s]=c="$"+a.call(u,u.__data__,s,e),c in f?i[s]=u:f[c]=u);for(s=0;s<h;++s)(u=f[c="$"+a.call(t,o[s],s,o)])?((r[s]=u).__data__=o[s],f[c]=null):n[s]=new D(t,o[s]);for(s=0;s<l;++s)(u=e[s])&&f[p[s]]===u&&(i[s]=u)}function L(t,e){return t<e?-1:e<t?1:e<=t?0:NaN}function q(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function B(t,e){return t.style.getPropertyValue(e)||q(t).getComputedStyle(t,null).getPropertyValue(e)}function I(t){return t.trim().split(/^|\s+/)}function U(t){return t.classList||new z(t)}function z(t){this._node=t,this._names=I(t.getAttribute("class")||"")}function H(t,e){for(var n=U(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function V(t,e){for(var n=U(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function W(){this.textContent=""}function Y(){this.innerHTML=""}function X(){this.nextSibling&&this.parentNode.appendChild(this)}function G(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function J(){return null}function Z(){var t=this.parentNode;t&&t.removeChild(this)}function K(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Q(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}function tt(n,t,e){return n=et(n,t,e),function(t){var e=t.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||n.call(this,t)}}function et(n,r,i){return function(t){var e=F.event;F.event=t;try{n.call(this,this.__data__,r,i)}finally{F.event=e}}}function nt(o){return function(){var t=this.__on;if(t){for(var e,n=0,r=-1,i=t.length;n<i;++n)e=t[n],o.type&&e.type!==o.type||e.name!==o.name?t[++r]=e:this.removeEventListener(e.type,e.listener,e.capture);++r?t.length=r:delete this.__on}}}function rt(u,c,f){var l=qc.hasOwnProperty(u.type)?tt:et;return function(t,e,n){var r,i=this.__on,o=l(c,e,n);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===u.type&&r.name===u.name)return this.removeEventListener(r.type,r.listener,r.capture),this.addEventListener(r.type,r.listener=o,r.capture=f),void(r.value=c);this.addEventListener(u.type,o,f),r={type:u.type,name:u.name,value:c,listener:o,capture:f},i?i.push(r):this.__on=[r]}}function it(t,e,n,r){var i=F.event;t.sourceEvent=F.event,F.event=t;try{return e.apply(n,r)}finally{F.event=i}}function ot(t,e,n){var r=q(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function at(t,e){this._groups=t,this._parents=e}function st(){return new at([[document.documentElement]],Bc)}function ut(t){return"string"==typeof t?new at([[document.querySelector(t)]],[document.documentElement]):new at([[t]],Bc)}function ct(){return new ft}function ft(){this._="@"+(++Fc).toString(36)}function lt(){for(var t,e=F.event;t=e.sourceEvent;)e=t;return e}function ht(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}function pt(t){var e=lt();return e.changedTouches&&(e=e.changedTouches[0]),ht(t,e)}function dt(t,e,n){arguments.length<3&&(n=e,e=lt().changedTouches);for(var r,i=0,o=e?e.length:0;i<o;++i)if((r=e[i]).identifier===n)return ht(t,r);return null}function gt(){F.event.stopImmediatePropagation()}function vt(){F.event.preventDefault(),F.event.stopImmediatePropagation()}function yt(t){var e=t.document.documentElement,n=ut(t).on("dragstart.drag",vt,!0);"onselectstart"in e?n.on("selectstart.drag",vt,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function mt(t,e){var n=t.document.documentElement,r=ut(t).on("dragstart.drag",null);e&&(r.on("click.drag",vt,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function bt(t){return function(){return t}}function xt(t,e,n,r,i,o,a,s,u,c){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=a,this.dx=s,this.dy=u,this._=c}function $t(){return!F.event.button}function wt(){return this.parentNode}function _t(t){return null==t?{x:F.event.x,y:F.event.y}:t}function Ct(){return"ontouchstart"in this}function kt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function St(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Mt(){}function At(t){var e;return t=(t+"").trim().toLowerCase(),(e=Hc.exec(t))?new Ot((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=Vc.exec(t))?Et(parseInt(e[1],16)):(e=Wc.exec(t))?new Ot(e[1],e[2],e[3],1):(e=Yc.exec(t))?new Ot(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Xc.exec(t))?Tt(e[1],e[2],e[3],e[4]):(e=Gc.exec(t))?Tt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Jc.exec(t))?Dt(e[1],e[2]/100,e[3]/100,1):(e=Zc.exec(t))?Dt(e[1],e[2]/100,e[3]/100,e[4]):Kc.hasOwnProperty(t)?Et(Kc[t]):"transparent"===t?new Ot(NaN,NaN,NaN,0):null}function Et(t){return new Ot(t>>16&255,t>>8&255,255&t,1)}function Tt(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ot(t,e,n,r)}function Nt(t){return t instanceof Mt||(t=At(t)),t?new Ot((t=t.rgb()).r,t.g,t.b,t.opacity):new Ot}function Pt(t,e,n,r){return 1===arguments.length?Nt(t):new Ot(t,e,n,null==r?1:r)}function Ot(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Dt(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||1<=n?t=e=NaN:e<=0&&(t=NaN),new jt(t,e,n,r)}function Rt(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof jt)return new jt(t.h,t.s,t.l,t.opacity);if(t instanceof Mt||(t=At(t)),!t)return new jt;if(t instanceof jt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=0<u&&u<1?0:a,new jt(a,s,u,t.opacity)}(t):new jt(t,e,n,null==r?1:r)}function jt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Lt(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function qt(t){if(t instanceof Ft)return new Ft(t.l,t.a,t.b,t.opacity);if(t instanceof Wt){var e=t.h*Qc;return new Ft(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof Ot||(t=Nt(t));var n=Ht(t.r),r=Ht(t.g),i=Ht(t.b),o=It((.4124564*n+.3575761*r+.1804375*i)/ef),a=It((.2126729*n+.7151522*r+.072175*i)/nf);return new Ft(116*a-16,500*(o-a),200*(a-It((.0193339*n+.119192*r+.9503041*i)/rf)),t.opacity)}function Bt(t,e,n,r){return 1===arguments.length?qt(t):new Ft(t,e,n,null==r?1:r)}function Ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function It(t){return sf<t?Math.pow(t,1/3):t/af+of}function Ut(t){return 6/29<t?t*t*t:af*(t-of)}function zt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ht(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Vt(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Wt)return new Wt(t.h,t.c,t.l,t.opacity);t instanceof Ft||(t=qt(t));var e=Math.atan2(t.b,t.a)*tf;return new Wt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Wt(t,e,n,null==r?1:r)}function Wt(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Yt(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Xt)return new Xt(t.h,t.s,t.l,t.opacity);t instanceof Ot||(t=Nt(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(pf*r+lf*e-hf*n)/(pf+lf-hf),o=r-i,a=(ff*(n-i)-uf*o)/cf,s=Math.sqrt(a*a+o*o)/(ff*i*(1-i)),u=s?Math.atan2(a,o)*tf-120:NaN;return new Xt(u<0?u+360:u,s,i,t.opacity)}(t):new Xt(t,e,n,null==r?1:r)}function Xt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Gt(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function Jt(a){var s=a.length-1;return function(t){var e=t<=0?t=0:1<=t?s-(t=1):Math.floor(t*s),n=a[e],r=a[e+1],i=0<e?a[e-1]:2*n-r,o=e<s-1?a[e+2]:2*r-n;return Gt((t-e/s)*s,i,n,r,o)}}function Zt(a){var s=a.length;return function(t){var e=Math.floor(((t%=1)<0?++t:t)*s),n=a[(e+s-1)%s],r=a[e%s],i=a[(e+1)%s],o=a[(e+2)%s];return Gt((t-e/s)*s,n,r,i,o)}}function Kt(t){return function(){return t}}function Qt(e,n){return function(t){return e+t*n}}function te(t,e){var n=e-t;return n?Qt(t,180<n||n<-180?n-360*Math.round(n/360):n):Kt(isNaN(t)?e:t)}function ee(t,e){var n=e-t;return n?Qt(t,n):Kt(isNaN(t)?e:t)}function ne(s){return function(t){var e,n,r=t.length,i=new Array(r),o=new Array(r),a=new Array(r);for(e=0;e<r;++e)n=Pt(t[e]),i[e]=n.r||0,o[e]=n.g||0,a[e]=n.b||0;return i=s(i),o=s(o),a=s(a),n.opacity=1,function(t){return n.r=i(t),n.g=o(t),n.b=a(t),n+""}}}function re(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=ue(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function ie(e,n){var r=new Date;return n-=e=+e,function(t){return r.setTime(e+n*t),r}}function oe(e,n){return n-=e=+e,function(t){return e+n*t}}function ae(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=ue(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}function se(t,r){var e,n,i,o,a,s=_f.lastIndex=Cf.lastIndex=0,u=-1,c=[],f=[];for(t+="",r+="";(e=_f.exec(t))&&(n=Cf.exec(r));)(i=n.index)>s&&(i=r.slice(s,i),c[u]?c[u]+=i:c[++u]=i),(e=e[0])===(n=n[0])?c[u]?c[u]+=n:c[++u]=n:(c[++u]=null,f.push({i:u,x:oe(e,n)})),s=Cf.lastIndex;return s<r.length&&(i=r.slice(s),c[u]?c[u]+=i:c[++u]=i),c.length<2?f[0]?(a=f[0].x,function(t){return a(t)+""}):(o=r,function(){return o}):(r=f.length,function(t){for(var e,n=0;n<r;++n)c[(e=f[n]).i]=e.x(t);return c.join("")})}function ue(t,e){var n,r=typeof e;return null==e||"boolean"===r?Kt(e):("number"===r?oe:"string"===r?(n=At(e))?(e=n,xf):se:e instanceof At?xf:e instanceof Date?ie:Array.isArray(e)?re:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?ae:oe)(t,e)}function ce(e,n){return n-=e=+e,function(t){return Math.round(e+n*t)}}function fe(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*kf,skewX:Math.atan(u)*kf,scaleX:a,scaleY:s}}function le(f,l,h,p){function d(t){return t.length?t.pop()+" ":""}return function(t,e){var n,r,i,o,a,s,u=[],c=[];return t=f(t),e=f(e),function(t,e,n,r,i,o){if(t!==n||e!==r){var a=i.push("translate(",null,l,null,h);o.push({i:a-4,x:oe(t,n)},{i:a-2,x:oe(e,r)})}else(n||r)&&i.push("translate("+n+l+r+h)}(t.translateX,t.translateY,e.translateX,e.translateY,u,c),o=t.rotate,a=e.rotate,s=u,o!==a?(180<o-a?a+=360:180<a-o&&(o+=360),c.push({i:s.push(d(s)+"rotate(",null,p)-2,x:oe(o,a)})):a&&s.push(d(s)+"rotate("+a+p),n=t.skewX,r=e.skewX,i=u,n!==r?c.push({i:i.push(d(i)+"skewX(",null,p)-2,x:oe(n,r)}):r&&i.push(d(i)+"skewX("+r+p),function(t,e,n,r,i,o){if(t!==n||e!==r){var a=i.push(d(i)+"scale(",null,",",null,")");o.push({i:a-4,x:oe(t,n)},{i:a-2,x:oe(e,r)})}else 1===n&&1===r||i.push(d(i)+"scale("+n+","+r+")")}(t.scaleX,t.scaleY,e.scaleX,e.scaleY,u,c),t=e=null,function(t){for(var e,n=-1,r=c.length;++n<r;)u[(e=c[n]).i]=e.x(t);return u.join("")}}}function he(t){return((t=Math.exp(t))+1/t)/2}function pe(t,e){var n,a,s=t[0],u=t[1],c=t[2],r=e[0],i=e[1],o=e[2],f=r-s,l=i-u,h=f*f+l*l;if(h<1e-12)a=Math.log(o/c)/Ef,n=function(t){return[s+t*f,u+t*l,c*Math.exp(Ef*t*a)]};else{var p=Math.sqrt(h),d=(o*o-c*c+4*h)/(2*c*2*p),g=(o*o-c*c-4*h)/(2*o*2*p),v=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(g*g+1)-g);a=(y-v)/Ef,n=function(t){var e,n,r=t*a,i=he(v),o=c/(2*p)*(i*(n=Ef*r+v,((n=Math.exp(2*n))-1)/(n+1))-(e=v,((e=Math.exp(e))-1/e)/2));return[s+o*f,u+o*l,c*i/he(Ef*r+v)]}}return n.duration=1e3*a,n}function de(a){return function(e,t){var n=a((e=Rt(e)).h,(t=Rt(t)).h),r=ee(e.s,t.s),i=ee(e.l,t.l),o=ee(e.opacity,t.opacity);return function(t){return e.h=n(t),e.s=r(t),e.l=i(t),e.opacity=o(t),e+""}}}function ge(a){return function(e,t){var n=a((e=Vt(e)).h,(t=Vt(t)).h),r=ee(e.c,t.c),i=ee(e.l,t.l),o=ee(e.opacity,t.opacity);return function(t){return e.h=n(t),e.c=r(t),e.l=i(t),e.opacity=o(t),e+""}}}function ve(s){return function t(a){function e(e,t){var n=s((e=Yt(e)).h,(t=Yt(t)).h),r=ee(e.s,t.s),i=ee(e.l,t.l),o=ee(e.opacity,t.opacity);return function(t){return e.h=n(t),e.s=r(t),e.l=i(Math.pow(t,a)),e.opacity=o(t),e+""}}return a=+a,e.gamma=t,e}(1)}function ye(){return If||(Hf(me),If=zf.now()+Uf)}function me(){If=0}function be(){this._call=this._time=this._next=null}function xe(t,e,n){var r=new be;return r.restart(t,e,n),r}function $e(){ye(),++jf;for(var t,e=mf;e;)0<=(t=If-e._time)&&e._call.call(null,t),e=e._next;--jf}function we(){If=(Ff=zf.now())+Uf,jf=Lf=0;try{$e()}finally{jf=0,function(){for(var t,e,n=mf,r=1/0;n;)n=n._call?(r>n._time&&(r=n._time),(t=n)._next):(e=n._next,n._next=null,t?t._next=e:mf=e);bf=t,Ce(r)}(),If=0}}function _e(){var t=zf.now(),e=t-Ff;Bf<e&&(Uf-=e,Ff=t)}function Ce(t){jf||(Lf&&(Lf=clearTimeout(Lf)),24<t-If?(t<1/0&&(Lf=setTimeout(we,t-zf.now()-Uf)),qf&&(qf=clearInterval(qf))):(qf||(Ff=zf.now(),qf=setInterval(_e,Bf)),jf=1,Hf(we)))}function ke(e,n,t){var r=new be;return n=null==n?0:+n,r.restart(function(t){r.stop(),e(t+n)},n,t),r}function Se(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(o,a,s){function u(t){var e,n,r,i;if(s.state!==Xf)return f();for(e in h)if((i=h[e]).name===s.name){if(i.state===Jf)return ke(u);i.state===Zf?(i.state=Qf,i.timer.stop(),i.on.call("interrupt",o,o.__data__,i.index,i.group),delete h[e]):+e<a&&(i.state=Qf,i.timer.stop(),delete h[e])}if(ke(function(){s.state===Jf&&(s.state=Zf,s.timer.restart(c,s.delay,s.time),c(t))}),s.state=Gf,s.on.call("start",o,o.__data__,s.index,s.group),s.state===Gf){for(s.state=Jf,l=new Array(r=s.tween.length),e=0,n=-1;e<r;++e)(i=s.tween[e].value.call(o,o.__data__,s.index,s.group))&&(l[++n]=i);l.length=n+1}}function c(t){for(var e=t<s.duration?s.ease.call(null,t/s.duration):(s.timer.restart(f),s.state=Kf,1),n=-1,r=l.length;++n<r;)l[n].call(null,e);s.state===Kf&&(s.on.call("end",o,o.__data__,s.index,s.group),f())}function f(){for(var t in s.state=Qf,s.timer.stop(),delete h[a],h)return;delete o.__transition}var l,h=o.__transition;(h[a]=s).timer=xe(function(t){s.state=Xf,s.timer.restart(u,s.delay,s.time),s.delay<=t&&u(t-s.delay)},0,s.time)}(t,n,{name:e,index:r,group:i,on:Vf,tween:Wf,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Yf})}function Me(t,e){var n=Ee(t,e);if(n.state>Yf)throw new Error("too late; already scheduled");return n}function Ae(t,e){var n=Ee(t,e);if(n.state>Gf)throw new Error("too late; already started");return n}function Ee(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Te(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>Gf&&n.state<Kf,n.state=Qf,n.timer.stop(),r&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}function Ne(t,e,n){var r=t._id;return t.each(function(){var t=Ae(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Ee(t,r).value[e]}}function Pe(t,e){var n;return("number"==typeof e?oe:e instanceof At?xf:(n=At(e))?(e=n,xf):se)(t,e)}function Oe(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function De(t){return st().transition(t)}function Re(){return++el}function je(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Le(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function qe(t){return(1-Math.cos(al*t))/2}function Be(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function Fe(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function Ie(t){return(t=+t)<4/11?ul*t*t:t<8/11?ul*(t-=6/11)*t+.75:t<10/11?ul*(t-=9/11)*t+.9375:ul*(t-=21/22)*t+63/64}function Ue(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return vl.time=ye(),vl;return n}function ze(t){return function(){return t}}function He(){F.event.stopImmediatePropagation()}function Ve(){F.event.preventDefault(),F.event.stopImmediatePropagation()}function We(t){return{type:t}}function Ye(){return!F.event.button}function Xe(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Ge(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Je(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Ze(R){function e(t){var e=t.property("__brush",i).selectAll(".overlay").data([We("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",kl.overlay).merge(e).each(function(){var t=Ge(this).extent;ut(this).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])}),t.selectAll(".selection").data([We("selection")]).enter().append("rect").attr("class","selection").attr("cursor",kl.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var n=t.selectAll(".handle").data(R.handles,function(t){return t.type});n.exit().remove(),n.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return kl[t.type]}),t.each(j).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",r)}function j(){var t=ut(this),e=Ge(this).selection;e?(t.selectAll(".selection").style("display",null).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]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2}).attr("y",function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s}).attr("height",function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function L(t,e){return t.__brush.emitter||new n(t,e)}function n(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function r(){function t(){var t=pt(v);!A||d||g||(Math.abs(t[0]-T[0])>Math.abs(t[1]-T[1])?g=!0:d=!0),T=t,p=!0,Ve(),e()}function e(){var t;switch(l=T[0]-E[0],h=T[1]-E[1],m){case bl:case ml:b&&(l=Math.max(C-r,Math.min(S-s,l)),i=r+l,u=s+l),x&&(h=Math.max(k-o,Math.min(M-c,h)),a=o+h,f=c+h);break;case xl:b<0?(l=Math.max(C-r,Math.min(S-r,l)),i=r+l,u=s):0<b&&(l=Math.max(C-s,Math.min(S-s,l)),i=r,u=s+l),x<0?(h=Math.max(k-o,Math.min(M-o,h)),a=o+h,f=c):0<x&&(h=Math.max(k-c,Math.min(M-c,h)),a=o,f=c+h);break;case $l:b&&(i=Math.max(C,Math.min(S,r-l*b)),u=Math.max(C,Math.min(S,s+l*b))),x&&(a=Math.max(k,Math.min(M,o-h*x)),f=Math.max(k,Math.min(M,c+h*x)))}u<i&&(b*=-1,t=r,r=s,s=t,t=i,i=u,u=t,y in Sl&&O.attr("cursor",kl[y=Sl[y]])),f<a&&(x*=-1,t=o,o=c,c=t,t=a,a=f,f=t,y in Ml&&O.attr("cursor",kl[y=Ml[y]])),$.selection&&(_=$.selection),d&&(i=_[0][0],u=_[1][0]),g&&(a=_[0][1],f=_[1][1]),_[0][0]===i&&_[0][1]===a&&_[1][0]===u&&_[1][1]===f||($.selection=[[i,a],[u,f]],j.call(v),N.brush())}function n(){if(He(),F.event.touches){if(F.event.touches.length)return;q&&clearTimeout(q),q=setTimeout(function(){q=null},500),P.on("touchmove.brush touchend.brush touchcancel.brush",null)}else mt(F.event.view,p),D.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);P.attr("pointer-events","all"),O.attr("cursor",kl.overlay),$.selection&&(_=$.selection),Je(_)&&($.selection=null,j.call(v)),N.end()}if(F.event.touches){if(F.event.changedTouches.length<F.event.touches.length)return Ve()}else if(q)return;if(B.apply(this,arguments)){var r,i,o,a,s,u,c,f,l,h,p,d,g,v=this,y=F.event.target.__data__.type,m="selection"===(F.event.metaKey?y="overlay":y)?ml:F.event.altKey?$l:xl,b=R===_l?null:Al[y],x=R===wl?null:El[y],$=Ge(v),w=$.extent,_=$.selection,C=w[0][0],k=w[0][1],S=w[1][0],M=w[1][1],A=b&&x&&F.event.shiftKey,E=pt(v),T=E,N=L(v,arguments).beforestart();"overlay"===y?$.selection=_=[[r=R===_l?C:E[0],o=R===wl?k:E[1]],[s=R===_l?S:r,c=R===wl?M:o]]:(r=_[0][0],o=_[0][1],s=_[1][0],c=_[1][1]),i=r,a=o,u=s,f=c;var P=ut(v).attr("pointer-events","none"),O=P.selectAll(".overlay").attr("cursor",kl[y]);if(F.event.touches)P.on("touchmove.brush",t,!0).on("touchend.brush touchcancel.brush",n,!0);else{var D=ut(F.event.view).on("keydown.brush",function(){switch(F.event.keyCode){case 16:A=b&&x;break;case 18:m===xl&&(b&&(s=u-l*b,r=i+l*b),x&&(c=f-h*x,o=a+h*x),m=$l,e());break;case 32:m!==xl&&m!==$l||(b<0?s=u-l:0<b&&(r=i-l),x<0?c=f-h:0<x&&(o=a-h),m=bl,O.attr("cursor",kl.selection),e());break;default:return}Ve()},!0).on("keyup.brush",function(){switch(F.event.keyCode){case 16:A&&(d=g=A=!1,e());break;case 18:m===$l&&(b<0?s=u:0<b&&(r=i),x<0?c=f:0<x&&(o=a),m=xl,e());break;case 32:m===bl&&(m=F.event.altKey?(b&&(s=u-l*b,r=i+l*b),x&&(c=f-h*x,o=a+h*x),$l):(b<0?s=u:0<b&&(r=i),x<0?c=f:0<x&&(o=a),xl),O.attr("cursor",kl[y]),e());break;default:return}Ve()},!0).on("mousemove.brush",t,!0).on("mouseup.brush",n,!0);yt(F.event.view)}He(),Te(v),j.call(v),N.start()}}function i(){var t=this.__brush||{selection:null};return t.extent=o.apply(this,arguments),t.dim=R,t}var q,o=Xe,B=Ye,a=N(e,"start","brush","end"),s=6;return e.move=function(t,s){t.selection?t.on("start.brush",function(){L(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){L(this,arguments).end()}).tween("brush",function(){function t(t){n.selection=1===t&&Je(o)?null:a(t),j.call(e),r.brush()}var e=this,n=e.__brush,r=L(e,arguments),i=n.selection,o=R.input("function"==typeof s?s.apply(this,arguments):s,n.extent),a=ue(i,o);return i&&o?t:t(1)}):t.each(function(){var t=arguments,e=this.__brush,n=R.input("function"==typeof s?s.apply(this,t):s,e.extent),r=L(this,t).beforestart();Te(this),e.selection=null==n||Je(n)?null:n,j.call(this),r.start().brush().end()})},n.prototype={beforestart:function(){return 1==++this.active&&((this.state.emitter=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(t){it(new function(t,e,n){this.target=t,this.type=e,this.selection=n}(e,t,R.output(this.state.selection)),a.apply,a,[t,this.that,this.args])}},e.extent=function(t){return arguments.length?(o="function"==typeof t?t:ze([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),e):o},e.filter=function(t){return arguments.length?(B="function"==typeof t?t:ze(!!t),e):B},e.handleSize=function(t){return arguments.length?(s=+t,e):s},e.on=function(){var t=a.on.apply(a,arguments);return t===a?e:t},e}function Ke(t){return function(){return t}}function Qe(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function tn(){return new Qe}function en(t){return t.source}function nn(t){return t.target}function rn(t){return t.radius}function on(t){return t.startAngle}function an(t){return t.endAngle}function sn(){}function un(t,e){var n=new sn;if(t instanceof sn)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i<o;)n.set(i,t[i]);else for(;++i<o;)n.set(e(r=t[i],i,t),r)}else if(t)for(var a in t)n.set(a,t[a]);return n}function cn(){return{}}function fn(t,e,n){t[e]=n}function ln(){return un()}function hn(t,e,n){t.set(e,n)}function pn(){}function dn(t,e){var n=new pn;if(t instanceof pn)t.each(function(t){n.add(t)});else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}function gn(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}")}function vn(o){function n(r,t){function e(){if(u)return Ul;if(c)return c=!1,Il;var t,e,n=a;if(34===r.charCodeAt(n)){for(;a++<o&&34!==r.charCodeAt(a)||34===r.charCodeAt(++a););return(t=a)>=o?u=!0:10===(e=r.charCodeAt(a++))?c=!0:13===e&&(c=!0,10===r.charCodeAt(a)&&++a),r.slice(n+1,t-1).replace(/""/g,'"')}for(;a<o;){if(10===(e=r.charCodeAt(t=a++)))c=!0;else if(13===e)c=!0,10===r.charCodeAt(a)&&++a;else if(e!==l)continue;return r.slice(n,t)}return u=!0,r.slice(n,o)}var n,i=[],o=r.length,a=0,s=0,u=o<=0,c=!1;for(10===r.charCodeAt(o-1)&&--o,13===r.charCodeAt(o-1)&&--o;(n=e())!==Ul;){for(var f=[];n!==Il&&n!==Ul;)f.push(n),n=e();t&&null==(f=t(f,s++))||i.push(f)}return i}function e(t){return t.map(a).join(o)}function a(t){return null==t?"":r.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}var r=new RegExp('["'+o+"\n\r]"),l=o.charCodeAt(0);return{parse:function(t,o){var a,s,e=n(t,function(t,e){if(a)return a(t,e-1);var n,r,i;s=t,a=o?(r=o,i=gn(n=t),function(t,e){return r(i(t),e,n)}):gn(t)});return e.columns=s||[],e},parseRows:n,format:function(t,n){return null==n&&(e=t,r=Object.create(null),i=[],e.forEach(function(t){for(var e in t)e in r||i.push(r[e]=e)}),n=i),[n.map(a).join(o)].concat(t.map(function(e){return n.map(function(t){return a(e[t])}).join(o)})).join("\n");var e,r,i},formatRows:function(t){return t.map(e).join("\n")}}}function yn(t){return function(){return t}}function mn(){return 1e-6*(Math.random()-.5)}function bn(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,s,u,c,f,l,h,p=t._root,d={data:r},g=t._x0,v=t._y0,y=t._x1,m=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=e>=(o=(g+y)/2))?g=o:y=o,(f=n>=(a=(v+m)/2))?v=a:m=a,!(p=(i=p)[l=f<<1|c]))return i[l]=d,t;if(s=+t._x.call(null,p.data),u=+t._y.call(null,p.data),e===s&&n===u)return d.next=p,i?i[l]=d:t._root=d,t;for(;i=i?i[l]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+y)/2))?g=o:y=o,(f=n>=(a=(v+m)/2))?v=a:m=a,(l=f<<1|c)==(h=(a<=u)<<1|o<=s););return i[h]=p,i[l]=d,t}function xn(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function $n(t){return t[0]}function wn(t){return t[1]}function _n(t,e,n){var r=new Cn(null==e?$n:e,null==n?wn:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Cn(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function kn(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}function Sn(t){return t.x+t.vx}function Mn(t){return t.y+t.vy}function An(t){return t.index}function En(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function Tn(t){return t.x}function Nn(t){return t.y}function Pn(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[1<r.length?r[0]+r.slice(2):r,+t.slice(n+1)]}function On(t){return(t=Pn(Math.abs(t)))?t[1]:NaN}function Dn(t,e){var n=Pn(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}function Rn(t){return new jn(t)}function jn(t){if(!(e=rh.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",o=e[4]||"",a=!!e[5],s=e[6]&&+e[6],u=!!e[7],c=e[8]&&+e[8].slice(1),f=e[9]||"";"n"===f?(u=!0,f="g"):nh[f]||(f=""),(a||"0"===n&&"="===r)&&(a=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=o,this.zero=a,this.width=s,this.comma=u,this.precision=c,this.type=f}function Ln(t){return t}function qn(t){function a(t){function e(t){var e,n,r,i=y,o=m;if("c"===v)o=b(t)+o,t="";else{var a=(t=+t)<0;if(t=b(Math.abs(t),g),a&&0==+t&&(a=!1),i=(a?"("===l?l:"-":"-"===l||"("===l?"":l)+i,o=("s"===v?oh[8+th/3]:"")+o+(a&&"("===l?")":""),x)for(e=-1,n=t.length;++e<n;)if((r=t.charCodeAt(e))<48||57<r){o=(46===r?w+t.slice(e+1):t.slice(e))+o,t=t.slice(0,e);break}}d&&!h&&(t=$(t,1/0));var s=i.length+t.length+o.length,u=s<p?new Array(p-s+1).join(c):"";switch(d&&h&&(t=$(u+t,u.length?p-o.length:1/0),u=""),f){case"<":t=i+t+o+u;break;case"=":t=i+u+t+o;break;case"^":t=u.slice(0,s=u.length>>1)+i+t+o+u.slice(s);break;default:t=u+i+t+o}return _(t)}var c=(t=Rn(t)).fill,f=t.align,l=t.sign,n=t.symbol,h=t.zero,p=t.width,d=t.comma,g=t.precision,v=t.type,y="$"===n?r[0]:"#"===n&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",m="$"===n?r[1]:/[%p]/.test(v)?i:"",b=nh[v],x=!v||/[defgprs%]/.test(v);return g=null==g?v?6:12:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),e.toString=function(){return t+""},e}var e,s,u,$=t.grouping&&t.thousands?(s=t.grouping,u=t.thousands,function(t,e){for(var n=t.length,r=[],i=0,o=s[0],a=0;0<n&&0<o&&(e<a+o+1&&(o=Math.max(1,e-a)),r.push(t.substring(n-=o,n+o)),!((a+=o+1)>e));)o=s[i=(i+1)%s.length];return r.reverse().join(u)}):Ln,r=t.currency,w=t.decimal,_=t.numerals?(e=t.numerals,function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}):Ln,i=t.percent||"%";return{format:a,formatPrefix:function(t,e){var n=a(((t=Rn(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(On(e)/3))),i=Math.pow(10,-r),o=oh[8+r/3];return function(t){return n(i*t)+o}}}}function Bn(t){return ih=qn(t),F.format=ih.format,F.formatPrefix=ih.formatPrefix,ih}function Fn(t){return Math.max(0,-On(Math.abs(t)))}function In(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(On(e)/3)))-On(Math.abs(t)))}function Un(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,On(e)-On(t))+1}function zn(){return new Hn}function Hn(){this.reset()}function Vn(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}function Wn(t){return 1<t?0:t<-1?Bh:Math.acos(t)}function Yn(t){return 1<t?Fh:t<-1?-Fh:Math.asin(t)}function Xn(t){return(t=Qh(t/2))*t}function Gn(){}function Jn(t,e){t&&ip.hasOwnProperty(t.type)&&ip[t.type](t,e)}function Zn(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function Kn(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)Zn(t[n],e,1);e.polygonEnd()}function Qn(t,e){t&&rp.hasOwnProperty(t.type)?rp[t.type](t,e):Jn(t,e)}function tr(){sp.point=nr}function er(){rr(ah,sh)}function nr(t,e){sp.point=rr,ah=t,sh=e,uh=t*=Hh,ch=Xh(e=(e*=Hh)/2+Ih),fh=Qh(e)}function rr(t,e){e=(e*=Hh)/2+Ih;var n=(t*=Hh)-uh,r=0<=n?1:-1,i=r*n,o=Xh(e),a=Qh(e),s=fh*a,u=ch*o+s*Xh(i),c=s*r*Qh(i);op.add(Yh(c,u)),uh=t,ch=o,fh=a}function ir(t){return[Yh(t[1],t[0]),Yn(t[2])]}function or(t){var e=t[0],n=t[1],r=Xh(n);return[r*Xh(e),r*Qh(e),Qh(n)]}function ar(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function sr(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ur(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function cr(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function fr(t){var e=ep(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function lr(t,e){bh.push(xh=[lh=t,ph=t]),e<hh&&(hh=e),dh<e&&(dh=e)}function hr(t,e){var n=or([t*Hh,e*Hh]);if(mh){var r=sr(mh,n),i=sr([r[1],-r[0],0],r);fr(i),i=ir(i);var o,a=t-gh,s=0<a?1:-1,u=i[0]*zh*s,c=180<Vh(a);c^(s*gh<u&&u<s*t)?(o=i[1]*zh)>dh&&(dh=o):c^(s*gh<(u=(u+360)%360-180)&&u<s*t)?(o=-i[1]*zh)<hh&&(hh=o):(e<hh&&(hh=e),dh<e&&(dh=e)),c?t<gh?mr(lh,t)>mr(lh,ph)&&(ph=t):mr(t,ph)>mr(lh,ph)&&(lh=t):lh<=ph?(t<lh&&(lh=t),ph<t&&(ph=t)):gh<t?mr(lh,t)>mr(lh,ph)&&(ph=t):mr(t,ph)>mr(lh,ph)&&(lh=t)}else bh.push(xh=[lh=t,ph=t]);e<hh&&(hh=e),dh<e&&(dh=e),mh=n,gh=t}function pr(){cp.point=hr}function dr(){xh[0]=lh,xh[1]=ph,cp.point=lr,mh=null}function gr(t,e){if(mh){var n=t-gh;up.add(180<Vh(n)?n+(0<n?360:-360):n)}else vh=t,yh=e;sp.point(t,e),hr(t,e)}function vr(){sp.lineStart()}function yr(){gr(vh,yh),sp.lineEnd(),Vh(up)>qh&&(lh=-(ph=180)),xh[0]=lh,xh[1]=ph,mh=null}function mr(t,e){return(e-=t)<0?e+360:e}function br(t,e){return t[0]-e[0]}function xr(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function $r(t,e){t*=Hh;var n=Xh(e*=Hh);wr(n*Xh(t),n*Qh(t),Qh(e))}function wr(t,e,n){_h+=(t-_h)/++$h,Ch+=(e-Ch)/$h,kh+=(n-kh)/$h}function _r(){fp.point=Cr}function Cr(t,e){t*=Hh;var n=Xh(e*=Hh);Dh=n*Xh(t),Rh=n*Qh(t),jh=Qh(e),fp.point=kr,wr(Dh,Rh,jh)}function kr(t,e){t*=Hh;var n=Xh(e*=Hh),r=n*Xh(t),i=n*Qh(t),o=Qh(e),a=Yh(ep((a=Rh*o-jh*i)*a+(a=jh*r-Dh*o)*a+(a=Dh*i-Rh*r)*a),Dh*r+Rh*i+jh*o);wh+=a,Sh+=a*(Dh+(Dh=r)),Mh+=a*(Rh+(Rh=i)),Ah+=a*(jh+(jh=o)),wr(Dh,Rh,jh)}function Sr(){fp.point=$r}function Mr(){fp.point=Er}function Ar(){Tr(Ph,Oh),fp.point=$r}function Er(t,e){Ph=t,Oh=e,t*=Hh,e*=Hh,fp.point=Tr;var n=Xh(e);Dh=n*Xh(t),Rh=n*Qh(t),jh=Qh(e),wr(Dh,Rh,jh)}function Tr(t,e){t*=Hh;var n=Xh(e*=Hh),r=n*Xh(t),i=n*Qh(t),o=Qh(e),a=Rh*o-jh*i,s=jh*r-Dh*o,u=Dh*i-Rh*r,c=ep(a*a+s*s+u*u),f=Yn(c),l=c&&-f/c;Eh+=l*a,Th+=l*s,Nh+=l*u,wh+=f,Sh+=f*(Dh+(Dh=r)),Mh+=f*(Rh+(Rh=i)),Ah+=f*(jh+(jh=o)),wr(Dh,Rh,jh)}function Nr(t){return function(){return t}}function Pr(n,r){function t(t,e){return t=n(t,e),r(t[0],t[1])}return n.invert&&r.invert&&(t.invert=function(t,e){return(t=r.invert(t,e))&&n.invert(t[0],t[1])}),t}function Or(t,e){return[Bh<t?t-Uh:t<-Bh?t+Uh:t,e]}function Dr(t,e,n){return(t%=Uh)?e||n?Pr(jr(t),Lr(e,n)):jr(t):e||n?Lr(e,n):Or}function Rr(n){return function(t,e){return[Bh<(t+=n)?t-Uh:t<-Bh?t+Uh:t,e]}}function jr(t){var e=Rr(t);return e.invert=Rr(-t),e}function Lr(t,e){function n(t,e){var n=Xh(e),r=Xh(t)*n,i=Qh(t)*n,o=Qh(e),a=o*s+r*u;return[Yh(i*c-a*f,r*s-o*u),Yn(a*c+i*f)]}var s=Xh(t),u=Qh(t),c=Xh(e),f=Qh(e);return n.invert=function(t,e){var n=Xh(e),r=Xh(t)*n,i=Qh(t)*n,o=Qh(e),a=o*c-i*f;return[Yh(i*c+o*f,r*s+a*u),Yn(a*s-r*u)]},n}function qr(e){function t(t){return(t=e(t[0]*Hh,t[1]*Hh))[0]*=zh,t[1]*=zh,t}return e=Dr(e[0]*Hh,e[1]*Hh,2<e.length?e[2]*Hh:0),t.invert=function(t){return(t=e.invert(t[0]*Hh,t[1]*Hh))[0]*=zh,t[1]*=zh,t},t}function Br(t,e,n,r,i,o){if(n){var a=Xh(e),s=Qh(e),u=r*n;null==i?(i=e+r*Uh,o=e-u/2):(i=Fr(a,i),o=Fr(a,o),(0<r?i<o:o<i)&&(i+=r*Uh));for(var c,f=i;0<r?o<f:f<o;f-=u)c=ir([a,-s*Xh(f),-s*Qh(f)]),t.point(c[0],c[1])}}function Fr(t,e){(e=or(e))[0]-=t,fr(e);var n=Wn(-e[1]);return((-e[2]<0?-n:n)+Uh-qh)%Uh}function Ir(){var n,e=[];return{point:function(t,e){n.push([t,e])},lineStart:function(){e.push(n=[])},lineEnd:Gn,rejoin:function(){1<e.length&&e.push(e.pop().concat(e.shift()))},result:function(){var t=e;return e=[],n=null,t}}}function Ur(t,e){return Vh(t[0]-e[0])<qh&&Vh(t[1]-e[1])<qh}function zr(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Hr(t,e,n,r,o){var a,i,s=[],u=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],i=t[e];if(Ur(r,i)){for(o.lineStart(),a=0;a<e;++a)o.point((r=t[a])[0],r[1]);o.lineEnd()}else s.push(n=new zr(r,t,null,!0)),u.push(n.o=new zr(r,null,n,!1)),s.push(n=new zr(i,t,null,!1)),u.push(n.o=new zr(i,null,n,!0))}}),s.length){for(u.sort(e),Vr(s),Vr(u),a=0,i=u.length;a<i;++a)u[a].e=n=!n;for(var c,f,l=s[0];;){for(var h=l,p=!0;h.v;)if((h=h.n)===l)return;c=h.z,o.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(a=0,i=c.length;a<i;++a)o.point((f=c[a])[0],f[1]);else r(h.x,h.n.x,1,o);h=h.n}else{if(p)for(c=h.p.z,a=c.length-1;0<=a;--a)o.point((f=c[a])[0],f[1]);else r(h.x,h.p.x,-1,o);h=h.p}c=(h=h.o).z,p=!p}while(!h.v);o.lineEnd()}}}function Vr(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function Wr(t,e){var n=e[0],r=e[1],i=[Qh(n),-Xh(n),0],o=0,a=0;wp.reset();for(var s=0,u=t.length;s<u;++s)if(f=(c=t[s]).length)for(var c,f,l=c[f-1],h=l[0],p=l[1]/2+Ih,d=Qh(p),g=Xh(p),v=0;v<f;++v,h=m,d=x,g=$,l=y){var y=c[v],m=y[0],b=y[1]/2+Ih,x=Qh(b),$=Xh(b),w=m-h,_=0<=w?1:-1,C=_*w,k=Bh<C,S=d*x;if(wp.add(Yh(S*_*Qh(C),g*$+S*Xh(C))),o+=k?w+_*Uh:w,k^n<=h^n<=m){var M=sr(or(l),or(y));fr(M);var A=sr(i,M);fr(A);var E=(k^0<=w?-1:1)*Yn(A[2]);(E<r||r===E&&(M[0]||M[1]))&&(a+=k^0<=w?1:-1)}}return(o<-qh||o<qh&&wp<-qh)^1&a}function Yr(v,y,m,b){return function(s){function e(t,e){v(t,e)&&s.point(t,e)}function t(t,e){a.point(t,e)}function n(){g.point=t,a.lineStart()}function r(){g.point=e,a.lineEnd()}function u(t,e){l.push([t,e]),p.point(t,e)}function i(){p.lineStart(),l=[]}function o(){u(l[0][0],l[0][1]),p.lineEnd();var t,e,n,r,i=p.clean(),o=h.result(),a=o.length;if(l.pop(),c.push(l),l=null,a)if(1&i){if(0<(e=(n=o[0]).length-1)){for(d||(s.polygonStart(),d=!0),s.lineStart(),t=0;t<e;++t)s.point((r=n[t])[0],r[1]);s.lineEnd()}}else 1<a&&2&i&&o.push(o.pop().concat(o.shift())),f.push(o.filter(Xr))}var c,f,l,a=y(s),h=Ir(),p=y(h),d=!1,g={point:e,lineStart:n,lineEnd:r,polygonStart:function(){g.point=u,g.lineStart=i,g.lineEnd=o,f=[],c=[]},polygonEnd:function(){g.point=e,g.lineStart=n,g.lineEnd=r,f=M(f);var t=Wr(c,b);f.length?(d||(s.polygonStart(),d=!0),Hr(f,Gr,t,m,s)):t&&(d||(s.polygonStart(),d=!0),s.lineStart(),m(null,null,1,s),s.lineEnd()),d&&(s.polygonEnd(),d=!1),f=c=null},sphere:function(){s.polygonStart(),s.lineStart(),m(null,null,1,s),s.lineEnd(),s.polygonEnd()}};return g}}function Xr(t){return 1<t.length}function Gr(t,e){return((t=t.x)[0]<0?t[1]-Fh-qh:Fh-t[1])-((e=e.x)[0]<0?e[1]-Fh-qh:Fh-e[1])}function Jr(i){function p(t,e){return Xh(t)*Xh(e)>S}function d(t,e,n){var r=[1,0,0],i=sr(or(t),or(e)),o=ar(i,i),a=i[0],s=o-a*a;if(!s)return!n&&t;var u=S*o/s,c=-S*a/s,f=sr(r,i),l=cr(r,u);ur(l,cr(i,c));var h=f,p=ar(l,h),d=ar(h,h),g=p*p-d*(ar(l,l)-1);if(!(g<0)){var v=ep(g),y=cr(h,(-p-v)/d);if(ur(y,l),y=ir(y),!n)return y;var m,b=t[0],x=e[0],$=t[1],w=e[1];x<b&&(m=b,b=x,x=m);var _=x-b,C=Vh(_-Bh)<qh;if(!C&&w<$&&(m=$,$=w,w=m),C||_<qh?C?0<$+w^y[1]<(Vh(y[0]-b)<qh?$:w):$<=y[1]&&y[1]<=w:Bh<_^(b<=y[0]&&y[0]<=x)){var k=cr(h,(-p+v)/d);return ur(k,l),[y,ir(k)]}}}function g(t,e){var n=v?i:Bh-i,r=0;return t<-n?r|=1:n<t&&(r|=2),e<-n?r|=4:n<e&&(r|=8),r}var S=Xh(i),o=6*Hh,v=0<S,y=Vh(S)>qh;return Yr(p,function(s){var u,c,f,l,h;return{lineStart:function(){l=f=!1,h=1},point:function(t,e){var n,r=[t,e],i=p(t,e),o=v?i?0:g(t,e):i?g(t+(t<0?Bh:-Bh),e):0;if(!u&&(l=f=i)&&s.lineStart(),i!==f&&(!(n=d(u,r))||Ur(u,n)||Ur(r,n))&&(r[0]+=qh,r[1]+=qh,i=p(r[0],r[1])),i!==f)h=0,i?(s.lineStart(),n=d(r,u),s.point(n[0],n[1])):(n=d(u,r),s.point(n[0],n[1]),s.lineEnd()),u=n;else if(y&&u&&v^i){var a;o&c||!(a=d(r,u,!0))||(h=0,v?(s.lineStart(),s.point(a[0][0],a[0][1]),s.point(a[1][0],a[1][1]),s.lineEnd()):(s.point(a[1][0],a[1][1]),s.lineEnd(),s.lineStart(),s.point(a[0][0],a[0][1])))}!i||u&&Ur(u,r)||s.point(r[0],r[1]),u=r,f=i,c=o},lineEnd:function(){f&&s.lineEnd(),u=null},clean:function(){return h|(l&&f)<<1}}},function(t,e,n,r){Br(r,i,o,n,t,e)},v?[0,-i]:[-Bh,i-Bh])}function Zr(y,m,b,x){function $(t,e){return y<=t&&t<=b&&m<=e&&e<=x}function w(t,e,n,r){var i=0,o=0;if(null==t||(i=a(t,n))!==(o=a(e,n))||s(t,e)<0^0<n)for(;r.point(0===i||3===i?y:b,1<i?x:m),(i=(i+n+4)%4)!==o;);else r.point(e[0],e[1])}function a(t,e){return Vh(t[0]-y)<qh?0<e?0:3:Vh(t[0]-b)<qh?0<e?2:1:Vh(t[1]-m)<qh?0<e?1:0:0<e?3:2}function _(t,e){return s(t.x,e.x)}function s(t,e){var n=a(t,1),r=a(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(r){function t(t,e){$(t,e)&&g.point(t,e)}function e(t,e){var n=$(t,e);if(l&&o.push([t,e]),p)a=t,s=e,p=!1,(u=n)&&(g.lineStart(),g.point(t,e));else if(n&&h)g.point(t,e);else{var r=[c=Math.max(kp,Math.min(Cp,c)),f=Math.max(kp,Math.min(Cp,f))],i=[t=Math.max(kp,Math.min(Cp,t)),e=Math.max(kp,Math.min(Cp,e))];!function(t,e,n,r,i,o){var a,s=t[0],u=t[1],c=0,f=1,l=e[0]-s,h=e[1]-u;if(a=n-s,l||!(0<a)){if(a/=l,l<0){if(a<c)return;a<f&&(f=a)}else if(0<l){if(f<a)return;c<a&&(c=a)}if(a=i-s,l||!(a<0)){if(a/=l,l<0){if(f<a)return;c<a&&(c=a)}else if(0<l){if(a<c)return;a<f&&(f=a)}if(a=r-u,h||!(0<a)){if(a/=h,h<0){if(a<c)return;a<f&&(f=a)}else if(0<h){if(f<a)return;c<a&&(c=a)}if(a=o-u,h||!(a<0)){if(a/=h,h<0){if(f<a)return;c<a&&(c=a)}else if(0<h){if(a<c)return;a<f&&(f=a)}return 0<c&&(t[0]=s+c*l,t[1]=u+c*h),f<1&&(e[0]=s+f*l,e[1]=u+f*h),!0}}}}}(r,i,y,m,b,x)?n&&(g.lineStart(),g.point(t,e),d=!1):(h||(g.lineStart(),g.point(r[0],r[1])),g.point(i[0],i[1]),n||g.lineEnd(),d=!1)}c=t,f=e,h=n}var i,l,o,a,s,u,c,f,h,p,d,g=r,n=Ir(),v={point:t,lineStart:function(){v.point=e,l&&l.push(o=[]),h=!(p=!0),c=f=NaN},lineEnd:function(){i&&(e(a,s),u&&h&&n.rejoin(),i.push(n.result())),v.point=t,h&&g.lineEnd()},polygonStart:function(){g=n,i=[],l=[],d=!0},polygonEnd:function(){var t=function(){for(var t=0,e=0,n=l.length;e<n;++e)for(var r,i,o=l[e],a=1,s=o.length,u=o[0],c=u[0],f=u[1];a<s;++a)r=c,i=f,c=(u=o[a])[0],f=u[1],i<=x?x<f&&(f-i)*(y-r)<(c-r)*(x-i)&&++t:f<=x&&(c-r)*(x-i)<(f-i)*(y-r)&&--t;return t}(),e=d&&t,n=(i=M(i)).length;(e||n)&&(r.polygonStart(),e&&(r.lineStart(),w(null,null,1,r),r.lineEnd()),n&&Hr(i,_,t,w,r),r.polygonEnd()),g=r,i=l=o=null}};return v}}function Kr(){Mp.point=Mp.lineEnd=Gn}function Qr(t,e){lp=t*=Hh,hp=Qh(e*=Hh),pp=Xh(e),Mp.point=ti}function ti(t,e){t*=Hh;var n=Qh(e*=Hh),r=Xh(e),i=Vh(t-lp),o=Xh(i),a=r*Qh(i),s=pp*n-hp*r*o,u=hp*n+pp*r*o;Sp.add(Yh(ep(a*a+s*s),u)),lp=t,hp=n,pp=r}function ei(t){return Sp.reset(),Qn(t,Mp),+Sp}function ni(t,e){return Ap[0]=t,Ap[1]=e,ei(Ep)}function ri(t,e){return!(!t||!Np.hasOwnProperty(t.type))&&Np[t.type](t,e)}function ii(t,e){return 0===ni(t,e)}function oi(t,e){var n=ni(t[0],t[1]);return ni(t[0],e)+ni(e,t[1])<=n+qh}function ai(t,e){return!!Wr(t.map(si),ui(e))}function si(t){return(t=t.map(ui)).pop(),t}function ui(t){return[t[0]*Hh,t[1]*Hh]}function ci(t,e,n){var r=k(t,e-qh,n).concat(e);return function(e){return r.map(function(t){return[e,t]})}}function fi(t,e,n){var r=k(t,e-qh,n).concat(e);return function(e){return r.map(function(t){return[t,e]})}}function li(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return k(Gh(o/v)*v,i,v).map(h).concat(k(Gh(c/y)*y,u,y).map(p)).concat(k(Gh(r/d)*d,n,d).filter(function(t){return Vh(t%v)>qh}).map(f)).concat(k(Gh(s/g)*g,a,g).filter(function(t){return Vh(t%y)>qh}).map(l))}var n,r,i,o,a,s,u,c,f,l,h,p,d=10,g=d,v=90,y=360,m=2.5;return e.lines=function(){return t().map(function(t){return{type:"LineString",coordinates:t}})},e.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(p(u).slice(1),h(i).reverse().slice(1),p(c).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.extentMajor(t).extentMinor(t):e.extentMinor()},e.extentMajor=function(t){return arguments.length?(o=+t[0][0],i=+t[1][0],c=+t[0][1],u=+t[1][1],i<o&&(t=o,o=i,i=t),u<c&&(t=c,c=u,u=t),e.precision(m)):[[o,c],[i,u]]},e.extentMinor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],a=+t[1][1],n<r&&(t=r,r=n,n=t),a<s&&(t=s,s=a,a=t),e.precision(m)):[[r,s],[n,a]]},e.step=function(t){return arguments.length?e.stepMajor(t).stepMinor(t):e.stepMinor()},e.stepMajor=function(t){return arguments.length?(v=+t[0],y=+t[1],e):[v,y]},e.stepMinor=function(t){return arguments.length?(d=+t[0],g=+t[1],e):[d,g]},e.precision=function(t){return arguments.length?(m=+t,f=ci(s,a,90),l=fi(r,n,m),h=ci(c,u,90),p=fi(o,i,m),e):m},e.extentMajor([[-180,-90+qh],[180,90-qh]]).extentMinor([[-180,-80-qh],[180,80+qh]])}function hi(t){return t}function pi(){Dp.point=di}function di(t,e){Dp.point=gi,dp=vp=t,gp=yp=e}function gi(t,e){Op.add(yp*t-vp*e),vp=t,yp=e}function vi(){gi(dp,gp)}function yi(t,e){Fp+=t,Ip+=e,++Up}function mi(){Gp.point=bi}function bi(t,e){Gp.point=xi,yi(xp=t,$p=e)}function xi(t,e){var n=t-xp,r=e-$p,i=ep(n*n+r*r);zp+=i*(xp+t)/2,Hp+=i*($p+e)/2,Vp+=i,yi(xp=t,$p=e)}function $i(){Gp.point=yi}function wi(){Gp.point=Ci}function _i(){ki(mp,bp)}function Ci(t,e){Gp.point=ki,yi(mp=xp=t,bp=$p=e)}function ki(t,e){var n=t-xp,r=e-$p,i=ep(n*n+r*r);zp+=i*(xp+t)/2,Hp+=i*($p+e)/2,Vp+=i,Wp+=(i=$p*t-xp*e)*(xp+t),Yp+=i*($p+e),Xp+=3*i,yi(xp=t,$p=e)}function Si(t){this._context=t}function Mi(t,e){nd.point=Ai,Zp=Qp=t,Kp=td=e}function Ai(t,e){Qp-=t,td-=e,ed.add(ep(Qp*Qp+td*td)),Qp=t,td=e}function Ei(){this._string=[]}function Ti(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Ni(r){return function(t){var e=new Pi;for(var n in r)e[n]=r[n];return e.stream=t,e}}function Pi(){}function Oi(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Qn(n,t.stream(Bp)),e(Bp.result()),null!=r&&t.clipExtent(r),t}function Di(a,s,t){return Oi(a,function(t){var e=s[1][0]-s[0][0],n=s[1][1]-s[0][1],r=Math.min(e/(t[1][0]-t[0][0]),n/(t[1][1]-t[0][1])),i=+s[0][0]+(e-r*(t[1][0]+t[0][0]))/2,o=+s[0][1]+(n-r*(t[1][1]+t[0][1]))/2;a.scale(150*r).translate([i,o])},t)}function Ri(t,e,n){return Di(t,[[0,0],e],n)}function ji(o,a,t){return Oi(o,function(t){var e=+a,n=e/(t[1][0]-t[0][0]),r=(e-n*(t[1][0]+t[0][0]))/2,i=-n*t[0][1];o.scale(150*n).translate([r,i])},t)}function Li(o,a,t){return Oi(o,function(t){var e=+a,n=e/(t[1][1]-t[0][1]),r=-n*t[0][0],i=(e-n*(t[1][1]+t[0][1]))/2;o.scale(150*n).translate([r,i])},t)}function qi(t,e){return+e?function(E,T){function N(t,e,n,r,i,o,a,s,u,c,f,l,h,p){var d=a-t,g=s-e,v=d*d+g*g;if(4*T<v&&h--){var y=r+c,m=i+f,b=o+l,x=ep(y*y+m*m+b*b),$=Yn(b/=x),w=Vh(Vh(b)-1)<qh||Vh(n-u)<qh?(n+u)/2:Yh(m,y),_=E(w,$),C=_[0],k=_[1],S=C-t,M=k-e,A=g*S-d*M;(T<A*A/v||.3<Vh((d*S+g*M)/v-.5)||r*c+i*f+o*l<id)&&(N(t,e,n,r,i,o,C,k,w,y/=x,m/=x,b,h,p),p.point(C,k),N(C,k,w,y,m,b,a,s,u,c,f,l,h,p))}}return function(i){function t(t,e){t=E(t,e),i.point(t[0],t[1])}function e(){g=NaN,x.point=n,i.lineStart()}function n(t,e){var n=or([t,e]),r=E(t,e);N(g,v,d,y,m,b,g=r[0],v=r[1],d=t,y=n[0],m=n[1],b=n[2],rd,i),i.point(g,v)}function r(){x.point=t,i.lineEnd()}function o(){e(),x.point=a,x.lineEnd=s}function a(t,e){n(u=t,e),c=g,f=v,l=y,h=m,p=b,x.point=n}function s(){N(g,v,d,y,m,b,c,f,u,l,h,p,rd,i),(x.lineEnd=r)()}var u,c,f,l,h,p,d,g,v,y,m,b,x={point:t,lineStart:e,lineEnd:r,polygonStart:function(){i.polygonStart(),x.lineStart=o},polygonEnd:function(){i.polygonEnd(),x.lineStart=e}};return x}}(t,e):(n=t,Ni({point:function(t,e){t=n(t,e),this.stream.point(t[0],t[1])}}));var n}function Bi(t){return Fi(function(){return t})()}function Fi(t){function n(t){return[(t=c(t[0]*Hh,t[1]*Hh))[0]*g+a,s-t[1]*g]}function e(t,e){return[(t=o(t,e))[0]*g+a,s-t[1]*g]}function r(){c=Pr(u=Dr(x,$,w),o);var t=o(m,b);return a=v-t[0]*g,s=y+t[1]*g,i()}function i(){return p=d=null,n}var o,a,s,u,c,f,l,h,p,d,g=150,v=480,y=250,m=0,b=0,x=0,$=0,w=0,_=null,C=_p,k=null,S=hi,M=.5,A=qi(e,M);return n.stream=function(t){return p&&d===t?p:p=od((r=u,Ni({point:function(t,e){var n=r(t,e);return this.stream.point(n[0],n[1])}})(C(A(S(d=t))))));var r},n.preclip=function(t){return arguments.length?(C=t,_=void 0,i()):C},n.postclip=function(t){return arguments.length?(S=t,k=f=l=h=null,i()):S},n.clipAngle=function(t){return arguments.length?(C=+t?Jr(_=t*Hh):(_=null,_p),i()):_*zh},n.clipExtent=function(t){return arguments.length?(S=null==t?(k=f=l=h=null,hi):Zr(k=+t[0][0],f=+t[0][1],l=+t[1][0],h=+t[1][1]),i()):null==k?null:[[k,f],[l,h]]},n.scale=function(t){return arguments.length?(g=+t,r()):g},n.translate=function(t){return arguments.length?(v=+t[0],y=+t[1],r()):[v,y]},n.center=function(t){return arguments.length?(m=t[0]%360*Hh,b=t[1]%360*Hh,r()):[m*zh,b*zh]},n.rotate=function(t){return arguments.length?(x=t[0]%360*Hh,$=t[1]%360*Hh,w=2<t.length?t[2]%360*Hh:0,r()):[x*zh,$*zh,w*zh]},n.precision=function(t){return arguments.length?(A=qi(e,M=t*t),i()):ep(M)},n.fitExtent=function(t,e){return Di(n,t,e)},n.fitSize=function(t,e){return Ri(n,t,e)},n.fitWidth=function(t,e){return ji(n,t,e)},n.fitHeight=function(t,e){return Li(n,t,e)},function(){return o=t.apply(this,arguments),n.invert=o.invert&&function(t){return(t=c.invert((t[0]-a)/g,(s-t[1])/g))&&[t[0]*zh,t[1]*zh]},r()}}function Ii(t){var e=0,n=Bh/3,r=Fi(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Hh,n=t[1]*Hh):[e*zh,n*zh]},i}function Ui(r,t){function e(t,e){var n=ep(o-2*i*Qh(e))/i;return[n*Qh(t*=i),a-n*Xh(t)]}var n=Qh(r),i=(n+Qh(t))/2;if(Vh(i)<qh)return function(t){function e(t,e){return[t*n,Qh(e)/n]}var n=Xh(r);return e.invert=function(t,e){return[t/n,Yn(e*n)]},e}();var o=1+n*(2*i-n),a=ep(o)/i;return e.invert=function(t,e){var n=a-e;return[Yh(t,Vh(n))/i*tp(n),Yn((o-(t*t+n*n)*i*i)/(2*i))]},e}function zi(){return Ii(Ui).scale(155.424).center([0,33.6442])}function Hi(){return zi().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Vi(o){return function(t,e){var n=Xh(t),r=Xh(e),i=o(n*r);return[i*r*Qh(t),i*Qh(e)]}}function Wi(a){return function(t,e){var n=ep(t*t+e*e),r=a(n),i=Qh(r),o=Xh(r);return[Yh(t*i,n*o),Yn(n&&e*i/n)]}}function Yi(t,e){return[t,Zh(np((Fh+e)/2))]}function Xi(n){function e(){var t=Bh*u(),e=a(qr(a.rotate()).invert([0,0]));return f(null==l?[[e[0]-t,e[1]-t],[e[0]+t,e[1]+t]]:n===Yi?[[Math.max(e[0]-t,l),r],[Math.min(e[0]+t,i),o]]:[[l,Math.max(e[1]-t,r)],[i,Math.min(e[1]+t,o)]])}var r,i,o,a=Bi(n),s=a.center,u=a.scale,c=a.translate,f=a.clipExtent,l=null;return a.scale=function(t){return arguments.length?(u(t),e()):u()},a.translate=function(t){return arguments.length?(c(t),e()):c()},a.center=function(t){return arguments.length?(s(t),e()):s()},a.clipExtent=function(t){return arguments.length?(null==t?l=r=i=o=null:(l=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),e()):null==l?null:[[l,r],[i,o]]},e()}function Gi(t){return np((Fh+t)/2)}function Ji(t,e){function n(t,e){0<o?e<-Fh+qh&&(e=-Fh+qh):Fh-qh<e&&(e=Fh-qh);var n=o/Kh(Gi(e),i);return[n*Qh(i*t),o-n*Xh(i*t)]}var r=Xh(t),i=t===e?Qh(t):Zh(r/Xh(e))/Zh(Gi(e)/Gi(t)),o=r*Kh(Gi(t),i)/i;return i?(n.invert=function(t,e){var n=o-e,r=tp(i)*ep(t*t+n*n);return[Yh(t,Vh(n))/i*tp(n),2*Wh(Kh(o/r,1/i))-Fh]},n):Yi}function Zi(t,e){return[t,e]}function Ki(t,e){function n(t,e){var n=o-e,r=i*t;return[n*Qh(r),o-n*Xh(r)]}var r=Xh(t),i=t===e?Qh(t):(r-Xh(e))/(e-t),o=r/i+t;return Vh(i)<qh?Zi:(n.invert=function(t,e){var n=o-e;return[Yh(t,Vh(n))/i*tp(n),o-tp(i)*ep(t*t+n*n)]},n)}function Qi(t,e){var n=Xh(e),r=Xh(t)*n;return[n*Qh(t)/r,Qh(e)/r]}function to(n,r,i,o){return 1===n&&1===r&&0===i&&0===o?hi:Ni({point:function(t,e){this.stream.point(t*n+i,e*r+o)}})}function eo(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function no(t,e){return[Xh(e)*Qh(t),Qh(e)]}function ro(t,e){var n=Xh(e),r=1+Xh(t)*n;return[n*Qh(t)/r,Qh(e)/r]}function io(t,e){return[Zh(np((Fh+e)/2)),-t]}function oo(t,e){return t.parent===e.parent?1:2}function ao(t,e){return t+e.x}function so(t,e){return Math.max(t,e.y)}function uo(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;0<=--r;)e+=n[r].value;else e=1;t.value=e}function co(t,e){var n,r,i,o,a,s=new po(t),u=+t.value&&(s.value=t.value),c=[s];for(null==e&&(e=fo);n=c.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;0<=o;--o)c.push(r=n.children[o]=new po(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(ho)}function fo(t){return t.children}function lo(t){t.data=t.data.data}function ho(t){for(var e=0;t.height=e,(t=t.parent)&&t.height<++e;);}function po(t){this.data=t,this.depth=this.height=0,this.parent=null}function go(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(ud.call(t))).length,o=[];r<i;)e=t[r],n&&yo(n,e)?++r:(n=function(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return bo(t[0],t[1]);case 3:return xo(t[0],t[1],t[2])}var e}(o=function(t,e){var n,r;if(mo(e,t))return[e];for(n=0;n<t.length;++n)if(vo(e,t[n])&&mo(bo(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(vo(bo(t[n],t[r]),e)&&vo(bo(t[n],e),t[r])&&vo(bo(t[r],e),t[n])&&mo(xo(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}(o,e)),r=0);return n}function vo(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function yo(t,e){var n=t.r-e.r+1e-6,r=e.x-t.x,i=e.y-t.y;return 0<n&&r*r+i*i<n*n}function mo(t,e){for(var n=0;n<e.length;++n)if(!yo(t,e[n]))return!1;return!0}function bo(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,u=o-n,c=a-r,f=s-i,l=Math.sqrt(u*u+c*c);return{x:(n+o+u/l*f)/2,y:(r+a+c/l*f)/2,r:(l+i+s)/2}}function xo(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,u=e.r,c=n.x,f=n.y,l=n.r,h=r-a,p=r-c,d=i-s,g=i-f,v=u-o,y=l-o,m=r*r+i*i-o*o,b=m-a*a-s*s+u*u,x=m-c*c-f*f+l*l,$=p*d-h*g,w=(d*x-g*b)/(2*$)-r,_=(g*v-d*y)/$,C=(p*b-h*x)/(2*$)-i,k=(h*y-p*v)/$,S=_*_+k*k-1,M=2*(o+w*_+C*k),A=w*w+C*C-o*o,E=-(S?(M+Math.sqrt(M*M-4*S*A))/(2*S):A/M);return{x:r+w+_*E,y:i+C+k*E,r:E}}function $o(t,e,n){var r=t.x,i=t.y,o=e.r+n.r,a=t.r+n.r,s=e.x-r,u=e.y-i,c=s*s+u*u;if(c){var f=.5+((a*=a)-(o*=o))/(2*c),l=Math.sqrt(Math.max(0,2*o*(a+c)-(a-=c)*a-o*o))/(2*c);n.x=r+f*s+l*u,n.y=i+f*u-l*s}else n.x=r+a,n.y=i}function wo(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return n*n+r*r<i*i-1e-6}function _o(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function Co(t){this._=t,this.next=null,this.previous=null}function ko(t){if(!(i=t.length))return 0;var e,n,r,i,o,a,s,u,c,f,l;if((e=t[0]).x=0,e.y=0,!(1<i))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(2<i))return e.r+n.r;$o(n,e,r=t[2]),e=new Co(e),n=new Co(n),r=new Co(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){$o(e._,n._,r=t[s]),r=new Co(r),u=n.next,c=e.previous,f=n._.r,l=e._.r;do{if(f<=l){if(wo(u._,r._)){n=u,(e.next=n).previous=e,--s;continue t}f+=u._.r,u=u.next}else{if(wo(c._,r._)){((e=c).next=n).previous=e,--s;continue t}l+=c._.r,c=c.previous}}while(u!==c.next);for(r.previous=e,r.next=n,e.next=n.previous=n=r,o=_o(e);(r=r.next)!==n;)(a=_o(r))<o&&(e=r,o=a);n=e.next}for(e=[n._],r=n;(r=r.next)!==n;)e.push(r._);for(r=go(e),s=0;s<i;++s)(e=t[s]).x-=r.x,e.y-=r.y;return r.r}function So(t){if("function"!=typeof t)throw new Error;return t}function Mo(){return 0}function Ao(t){return function(){return t}}function Eo(t){return Math.sqrt(t.value)}function To(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function No(a,s){return function(t){if(e=t.children){var e,n,r,i=e.length,o=a(t)*s||0;if(o)for(n=0;n<i;++n)e[n].r+=o;if(r=ko(e),o)for(n=0;n<i;++n)e[n].r-=o;t.r=r+o}}}function Po(n){return function(t){var e=t.parent;t.r*=n,e&&(t.x=e.x+n*t.x,t.y=e.y+n*t.y)}}function Oo(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Do(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;++s<u;)(o=a[s]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*c}function Ro(t){return t.id}function jo(t){return t.parentId}function Lo(t,e){return t.parent===e.parent?1:2}function qo(t){var e=t.children;return e?e[0]:t.t}function Bo(t){var e=t.children;return e?e[e.length-1]:t.t}function Fo(t,e){this._=t,this.parent=null,this.children=null,this.A=null,(this.a=this).z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function Io(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,c=t.value&&(i-n)/t.value;++s<u;)(o=a[s]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*c}function Uo(t,e,n,r,i,o){for(var a,s,u,c,f,l,h,p,d,g,v,y=[],m=e.children,b=0,x=0,$=m.length,w=e.value;b<$;){for(u=i-n,c=o-r;!(f=m[x++].value)&&x<$;);for(l=h=f,v=f*f*(g=Math.max(c/u,u/c)/(w*t)),d=Math.max(h/v,v/l);x<$;++x){if(f+=s=m[x].value,s<l&&(l=s),h<s&&(h=s),v=f*f*g,(p=Math.max(h/v,v/l))>d){f-=s;break}d=p}y.push(a={value:f,dice:u<c,children:m.slice(b,x)}),a.dice?Do(a,n,r,i,w?r+=c*f/w:o):Io(a,n,r,w?n+=u*f/w:i,o),w-=f,b=x}return y}function zo(t,e){return t[0]-e[0]||t[1]-e[1]}function Ho(t){for(var e=t.length,n=[0,1],r=2,i=2;i<e;++i){for(;1<r&&(o=t[n[r-2]],a=t[n[r-1]],s=t[i],(a[0]-o[0])*(s[1]-o[1])-(a[1]-o[1])*(s[0]-o[0])<=0);)--r;n[r++]=i}var o,a,s;return n.slice(0,r)}function Vo(t){this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function Wo(t,e){var n,r=t._tasks.length;for(t._error=e,t._data=void 0,t._waiting=NaN;0<=--r;)if((n=t._tasks[r])&&(t._tasks[r]=null,n.abort))try{n.abort()}catch(e){}t._active=NaN,Yo(t)}function Yo(t){if(!t._active&&t._call){var e=t._data;t._data=void 0,t._call(t._error,e)}}function Xo(t){if(null==t)t=1/0;else if(!(1<=(t=+t)))throw new Error("invalid concurrency");return new Vo(t)}function Go(){return Math.random()}function Jo(i,t){function e(t){var e,n,r,i=l.status;if(!i&&((r=(n=l).responseType)&&"text"!==r?n.response:n.responseText)||200<=i&&i<300||304===i){if(s)try{e=s.call(o,l)}catch(t){return void c.call("error",o,t)}else e=l;c.call("load",o,e)}else c.call("error",o,t)}var o,a,s,u,c=N("beforesend","progress","load","error"),f=un(),l=new XMLHttpRequest,h=null,p=null,d=0;if("undefined"==typeof XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(i)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=l.ontimeout=e:l.onreadystatechange=function(t){3<l.readyState&&e(t)},l.onprogress=function(t){c.call("progress",o,t)},o={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?f.get(t):(null==e?f.remove(t):f.set(t,e+""),o)},mimeType:function(t){return arguments.length?(a=null==t?null:t+"",o):a},responseType:function(t){return arguments.length?(u=t,o):u},timeout:function(t){return arguments.length?(d=+t,o):d},user:function(t){return arguments.length<1?h:(h=null==t?null:t+"",o)},password:function(t){return arguments.length<1?p:(p=null==t?null:t+"",o)},response:function(t){return s=t,o},get:function(t,e){return o.send("GET",t,e)},post:function(t,e){return o.send("POST",t,e)},send:function(t,e,n){return l.open(t,i,!0,h,p),null==a||f.has("accept")||f.set("accept",a+",*/*"),l.setRequestHeader&&f.each(function(t,e){l.setRequestHeader(e,t)}),null!=a&&l.overrideMimeType&&l.overrideMimeType(a),null!=u&&(l.responseType=u),0<d&&(l.timeout=d),null==n&&"function"==typeof e&&(n=e,e=null),null!=n&&1===n.length&&(r=n,n=function(t,e){r(null==t?e:null)}),null!=n&&o.on("error",n).on("load",function(t){n(null,t)}),c.call("beforesend",o,l),l.send(null==e?null:e),o;var r},abort:function(){return l.abort(),o},on:function(){var t=c.on.apply(c,arguments);return t===c?o:t}},null==t)return o;if("function"!=typeof t)throw new Error("invalid callback: "+t);return o.get(t)}function Zo(r,i){return function(t,e){var n=Jo(t).mimeType(r).response(i);if(null==e)return n;if("function"!=typeof e)throw new Error("invalid callback: "+e);return n.get(e)}}function Ko(n,o){return function(t,r,e){arguments.length<3&&(e=r,r=null);var i=Jo(t).mimeType(n);return i.row=function(t){return arguments.length?i.response((e=o,n=r=t,function(t){return e(t.responseText,n)})):r;var e,n},i.row(r),e?i.get(e):i}}function Qo(r){function o(t){var e=t+"",n=a.get(e);if(!n){if(i!==Nd)return i;a.set(e,n=s.push(t))}return r[(n-1)%r.length]}var a=un(),s=[],i=Nd;return r=null==r?[]:Td.call(r),o.domain=function(t){if(!arguments.length)return s.slice();s=[],a=un();for(var e,n,r=-1,i=t.length;++r<i;)a.has(n=(e=t[r])+"")||a.set(n,s.push(e));return o},o.range=function(t){return arguments.length?(r=Td.call(t),o):r.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return Qo().domain(s).range(r).unknown(i)},o}function ta(){function e(){var t=s().length,e=c[1]<c[0],n=c[e-0],r=c[1-e];o=(r-n)/Math.max(1,t-l+2*h),f&&(o=Math.floor(o)),n+=(r-n-o*(t-l))*p,a=o*(1-l),f&&(n=Math.round(n),a=Math.round(a));var i=k(t).map(function(t){return n+o*t});return u(e?i.reverse():i)}var o,a,t=Qo().unknown(void 0),s=t.domain,u=t.range,c=[0,1],f=!1,l=0,h=0,p=.5;return delete t.unknown,t.domain=function(t){return arguments.length?(s(t),e()):s()},t.range=function(t){return arguments.length?(c=[+t[0],+t[1]],e()):c.slice()},t.rangeRound=function(t){return c=[+t[0],+t[1]],f=!0,e()},t.bandwidth=function(){return a},t.step=function(){return o},t.round=function(t){return arguments.length?(f=!!t,e()):f},t.padding=function(t){return arguments.length?(l=h=Math.max(0,Math.min(1,t)),e()):l},t.paddingInner=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),e()):l},t.paddingOuter=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),e()):h},t.align=function(t){return arguments.length?(p=Math.max(0,Math.min(1,t)),e()):p},t.copy=function(){return ta().domain(s()).range(c).round(f).paddingInner(l).paddingOuter(h).align(p)},e()}function ea(t){return function(){return t}}function na(t){return+t}function ra(e,n){return(n-=e=+e)?function(t){return(t-e)/n}:ea(n)}function ia(t,e,n,r){var i=t[0],o=t[1],a=e[0],s=e[1];return a=o<i?(i=n(o,i),r(s,a)):(i=n(i,o),r(a,s)),function(t){return a(i(t))}}function oa(n,t,e,r){var i=Math.min(n.length,t.length)-1,o=new Array(i),a=new Array(i),s=-1;for(n[i]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=e(n[s],n[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var e=wc(n,t,1,i)-1;return a[e](o[e](t))}}function aa(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function sa(e,n){function r(){return o=2<Math.min(u.length,c.length)?oa:ia,a=s=null,t}function t(t){return(a||(a=o(u,c,l?(i=e,function(e,n){var r=i(e=+e,n=+n);return function(t){return t<=e?0:n<=t?1:r(t)}}):e,f)))(+t);var i}var o,a,s,u=Pd,c=Pd,f=ue,l=!1;return t.invert=function(t){return(s||(s=o(c,u,ra,l?(i=n,function(e,n){var r=i(e=+e,n=+n);return function(t){return t<=0?e:1<=t?n:r(t)}}):n)))(+t);var i},t.domain=function(t){return arguments.length?(u=Ed.call(t,na),r()):u.slice()},t.range=function(t){return arguments.length?(c=Td.call(t),r()):c.slice()},t.rangeRound=function(t){return c=Td.call(t),f=ce,r()},t.clamp=function(t){return arguments.length?(l=!!t,r()):l},t.interpolate=function(t){return arguments.length?(f=t,r()):f},r()}function ua(s){var u=s.domain;return s.ticks=function(t){var e=u();return v(e[0],e[e.length-1],null==t?10:t)},s.tickFormat=function(t,e){return function(t,e,n){var r,i=t[0],o=t[t.length-1],a=S(i,o,null==e?10:e);switch((n=Rn(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=In(a,s))||(n.precision=r),F.formatPrefix(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=Un(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=Fn(a))||(n.precision=r-2*("%"===n.type))}return F.format(n)}(u(),t,e)},s.nice=function(t){null==t&&(t=10);var e,n=u(),r=0,i=n.length-1,o=n[r],a=n[i];return a<o&&(e=o,o=a,a=e,e=r,r=i,i=e),0<(e=l(o,a,t))?e=l(o=Math.floor(o/e)*e,a=Math.ceil(a/e)*e,t):e<0&&(e=l(o=Math.ceil(o*e)/e,a=Math.floor(a*e)/e,t)),0<e?(n[r]=Math.floor(o/e)*e,n[i]=Math.ceil(a/e)*e,u(n)):e<0&&(n[r]=Math.ceil(o*e)/e,n[i]=Math.floor(a*e)/e,u(n)),s},s}function ca(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}function fa(e,n){return(n=Math.log(n/e))?function(t){return Math.log(t/e)/n}:ea(n)}function la(e,n){return e<0?function(t){return-Math.pow(-n,t)*Math.pow(-e,1-t)}:function(t){return Math.pow(n,t)*Math.pow(e,1-t)}}function ha(t){return isFinite(t)?+("1e"+t):t<0?0:t}function pa(e){return 10===e?ha:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function da(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 ga(e){return function(t){return-e(-t)}}function va(t,e){return t<0?-Math.pow(-t,e):Math.pow(t,e)}function ya(){var r=1,t=sa(function(e,n){return(n=va(n,r)-(e=va(e,r)))?function(t){return(va(t,r)-e)/n}:ea(n)},function(e,n){return n=va(n,r)-(e=va(e,r)),function(t){return va(e+n*t,1/r)}}),e=t.domain;return t.exponent=function(t){return arguments.length?(r=+t,e(e())):r},t.copy=function(){return aa(t,ya().exponent(r))},ua(t)}function ma(o,a,n,r){function s(t){return o(t=new Date(+t)),t}return(s.floor=s).ceil=function(t){return o(t=new Date(t-1)),a(t,1),o(t),t},s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n},s.offset=function(t,e){return a(t=new Date(+t),null==e?1:Math.floor(e)),t},s.range=function(t,e,n){var r,i=[];if(t=s.ceil(t),n=null==n?1:Math.floor(n),!(t<e&&0<n))return i;for(;i.push(r=new Date(+t)),a(t,n),o(t),r<t&&t<e;);return i},s.filter=function(n){return ma(function(t){if(t<=t)for(;o(t),!n(t);)t.setTime(t-1)},function(t,e){if(t<=t)if(e<0)for(;++e<=0;)for(;a(t,-1),!n(t););else for(;0<=--e;)for(;a(t,1),!n(t););})},n&&(s.count=function(t,e){return Od.setTime(+t),Dd.setTime(+e),o(Od),o(Dd),Math.floor(n(Od,Dd))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&0<e?1<e?s.filter(r?function(t){return r(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}function ba(e){return ma(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}function xa(e){return ma(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}function $a(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function wa(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function _a(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Ca(t){function n(u,c){return function(t){var e,n,r,i=[],o=-1,a=0,s=u.length;for(t instanceof Date||(t=new Date(+t));++o<s;)37===u.charCodeAt(o)&&(i.push(u.slice(a,o)),null!=(n=Dg[e=u.charAt(++o)])?e=u.charAt(++o):n="e"===e?" ":"0",(r=c[e])&&(e=r(t,n)),i.push(e),a=o+1);return i.push(u.slice(a,o)),i.join("")}}function r(i,o){return function(t){var e,n,r=_a(1900);if(a(r,i,t+="",0)!=t.length)return null;if("Q"in r)return new Date(r.Q);if("p"in r&&(r.H=r.H%12+12*r.p),"V"in r){if(r.V<1||53<r.V)return null;"w"in r||(r.w=1),r.d="Z"in r?(e=4<(n=(e=wa(_a(r.y))).getUTCDay())||0===n?vg.ceil(e):vg(e),e=pg.offset(e,7*(r.V-1)),r.y=e.getUTCFullYear(),r.m=e.getUTCMonth(),e.getUTCDate()+(r.w+6)%7):(e=4<(n=(e=o(_a(r.y))).getDay())||0===n?Wd.ceil(e):Wd(e),e=zd.offset(e,7*(r.V-1)),r.y=e.getFullYear(),r.m=e.getMonth(),e.getDate()+(r.w+6)%7)}else("W"in r||"U"in r)&&("w"in r||(r.w="u"in r?r.u%7:"W"in r?1:0),n="Z"in r?wa(_a(r.y)).getUTCDay():o(_a(r.y)).getDay(),r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(n+5)%7:r.w+7*r.U-(n+6)%7);return"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,wa(r)):o(r)}}function a(t,e,n,r){for(var i,o,a=0,s=e.length,u=n.length;a<s;){if(u<=r)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=C[i in Dg?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}var i=t.dateTime,o=t.date,s=t.time,e=t.periods,u=t.days,c=t.shortDays,f=t.months,l=t.shortMonths,h=Ma(e),p=Aa(e),d=Ma(u),g=Aa(u),v=Ma(c),y=Aa(c),m=Ma(f),b=Aa(f),x=Ma(l),$=Aa(l),w={a:function(t){return c[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return f[t.getMonth()]},c:null,d:Xa,e:Xa,f:Qa,H:Ga,I:Ja,j:Za,L:Ka,m:ts,M:es,p:function(t){return e[+(12<=t.getHours())]},Q:Es,s:Ts,S:ns,u:rs,U:is,V:os,w:as,W:ss,x:null,X:null,y:us,Y:cs,Z:fs,"%":As},_={a:function(t){return c[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return f[t.getUTCMonth()]},c:null,d:ls,e:ls,f:vs,H:hs,I:ps,j:ds,L:gs,m:ys,M:ms,p:function(t){return e[+(12<=t.getUTCHours())]},Q:Es,s:Ts,S:bs,u:xs,U:$s,V:ws,w:_s,W:Cs,x:null,X:null,y:ks,Y:Ss,Z:Ms,"%":As},C={a:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.w=y[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=g[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=x.exec(e.slice(n));return r?(t.m=$[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=b[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,e,n){return a(t,i,e,n)},d:qa,e:qa,f:Ha,H:Fa,I:Fa,j:Ba,L:za,m:La,M:Ia,p:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.p=p[r[0].toLowerCase()],n+r[0].length):-1},Q:Wa,s:Ya,S:Ua,u:Ta,U:Na,V:Pa,w:Ea,W:Oa,x:function(t,e,n){return a(t,o,e,n)},X:function(t,e,n){return a(t,s,e,n)},y:Ra,Y:Da,Z:ja,"%":Va};return w.x=n(o,w),w.X=n(s,w),w.c=n(i,w),_.x=n(o,_),_.X=n(s,_),_.c=n(i,_),{format:function(t){var e=n(t+="",w);return e.toString=function(){return t},e},parse:function(t){var e=r(t+="",$a);return e.toString=function(){return t},e},utcFormat:function(t){var e=n(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=r(t,wa);return e.toString=function(){return t},e}}}function ka(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Sa(t){return t.replace(Lg,"\\$&")}function Ma(t){return new RegExp("^(?:"+t.map(Sa).join("|")+")","i")}function Aa(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function Ea(t,e,n){var r=Rg.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ta(t,e,n){var r=Rg.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Na(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Pa(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Oa(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Da(t,e,n){var r=Rg.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ra(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(68<+r[0]?1900:2e3),n+r[0].length):-1}function ja(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function La(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function qa(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Ba(t,e,n){var r=Rg.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Fa(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ia(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ua(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function za(t,e,n){var r=Rg.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ha(t,e,n){var r=Rg.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Va(t,e,n){var r=jg.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Wa(t,e,n){var r=Rg.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ya(t,e,n){var r=Rg.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function Xa(t,e){return ka(t.getDate(),e,2)}function Ga(t,e){return ka(t.getHours(),e,2)}function Ja(t,e){return ka(t.getHours()%12||12,e,2)}function Za(t,e){return ka(1+zd.count(sg(t),t),e,3)}function Ka(t,e){return ka(t.getMilliseconds(),e,3)}function Qa(t,e){return Ka(t,e)+"000"}function ts(t,e){return ka(t.getMonth()+1,e,2)}function es(t,e){return ka(t.getMinutes(),e,2)}function ns(t,e){return ka(t.getSeconds(),e,2)}function rs(t){var e=t.getDay();return 0===e?7:e}function is(t,e){return ka(Vd.count(sg(t),t),e,2)}function os(t,e){var n=t.getDay();return t=4<=n||0===n?Gd(t):Gd.ceil(t),ka(Gd.count(sg(t),t)+(4===sg(t).getDay()),e,2)}function as(t){return t.getDay()}function ss(t,e){return ka(Wd.count(sg(t),t),e,2)}function us(t,e){return ka(t.getFullYear()%100,e,2)}function cs(t,e){return ka(t.getFullYear()%1e4,e,4)}function fs(t){var e=t.getTimezoneOffset();return(0<e?"-":(e*=-1,"+"))+ka(e/60|0,"0",2)+ka(e%60,"0",2)}function ls(t,e){return ka(t.getUTCDate(),e,2)}function hs(t,e){return ka(t.getUTCHours(),e,2)}function ps(t,e){return ka(t.getUTCHours()%12||12,e,2)}function ds(t,e){return ka(1+pg.count(Ng(t),t),e,3)}function gs(t,e){return ka(t.getUTCMilliseconds(),e,3)}function vs(t,e){return gs(t,e)+"000"}function ys(t,e){return ka(t.getUTCMonth()+1,e,2)}function ms(t,e){return ka(t.getUTCMinutes(),e,2)}function bs(t,e){return ka(t.getUTCSeconds(),e,2)}function xs(t){var e=t.getUTCDay();return 0===e?7:e}function $s(t,e){return ka(gg.count(Ng(t),t),e,2)}function ws(t,e){var n=t.getUTCDay();return t=4<=n||0===n?bg(t):bg.ceil(t),ka(bg.count(Ng(t),t)+(4===Ng(t).getUTCDay()),e,2)}function _s(t){return t.getUTCDay()}function Cs(t,e){return ka(vg.count(Ng(t),t),e,2)}function ks(t,e){return ka(t.getUTCFullYear()%100,e,2)}function Ss(t,e){return ka(t.getUTCFullYear()%1e4,e,4)}function Ms(){return"+0000"}function As(){return"%"}function Es(t){return+t}function Ts(t){return Math.floor(+t/1e3)}function Ns(t){return Pg=Ca(t),F.timeFormat=Pg.format,F.timeParse=Pg.parse,F.utcFormat=Pg.utcFormat,F.utcParse=Pg.utcParse,Pg}function Ps(t){return new Date(t)}function Os(t){return t instanceof Date?+t:+new Date(+t)}function Ds(a,e,n,r,i,o,s,u,c){function f(t){return(s(t)<t?g:o(t)<t?v:i(t)<t?y:r(t)<t?m:e(t)<t?n(t)<t?b:x:a(t)<t?$:w)(t)}function l(t,e,n,r){if(null==t&&(t=10),"number"==typeof t){var i=Math.abs(n-e)/t,o=C(function(t){return t[2]}).right(_,i);t=o===_.length?(r=S(e/Yg,n/Yg,t),a):o?(r=(o=_[i/_[o-1][2]<_[o][2]/i?o-1:o])[1],o[0]):(r=Math.max(S(e,n,t),1),u)}return null==r?t:t.every(r)}var h=sa(ra,oe),p=h.invert,d=h.domain,g=c(".%L"),v=c(":%S"),y=c("%I:%M"),m=c("%I %p"),b=c("%a %d"),x=c("%b %d"),$=c("%B"),w=c("%Y"),_=[[s,1,Ig],[s,5,5*Ig],[s,15,15*Ig],[s,30,30*Ig],[o,1,Ug],[o,5,5*Ug],[o,15,15*Ug],[o,30,30*Ug],[i,1,zg],[i,3,3*zg],[i,6,6*zg],[i,12,12*zg],[r,1,Hg],[r,2,2*Hg],[n,1,Vg],[e,1,Wg],[e,3,3*Wg],[a,1,Yg]];return h.invert=function(t){return new Date(p(t))},h.domain=function(t){return arguments.length?d(Ed.call(t,Os)):d().map(Ps)},h.ticks=function(t,e){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=l(t,i,o,e))?n.range(i,o+1):[],a?n.reverse():n},h.tickFormat=function(t,e){return null==e?f:c(e)},h.nice=function(t,e){var n=d();return(t=l(t,n[0],n[n.length-1],e))?d(ca(n,t)):h},h.copy=function(){return aa(h,Ds(a,e,n,r,i,o,s,u,c))},h}function Rs(t){return t.match(/.{6}/g).map(function(t){return"#"+t})}function js(e){var n=e.length;return function(t){return e[Math.max(0,Math.min(n-1,Math.floor(t*n)))]}}function Ls(t){return function(){return t}}function qs(t){return 1<=t?gv:t<=-1?-gv:Math.asin(t)}function Bs(t){return t.innerRadius}function Fs(t){return t.outerRadius}function Is(t){return t.startAngle}function Us(t){return t.endAngle}function zs(t){return t&&t.padAngle}function Hs(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/hv(s*s+u*u),f=c*u,l=-c*s,h=t+f,p=e+l,d=n+f,g=r+l,v=(h+d)/2,y=(p+g)/2,m=d-h,b=g-p,x=m*m+b*b,$=i-o,w=h*g-d*p,_=(b<0?-1:1)*hv(cv(0,$*$*x-w*w)),C=(w*b-m*_)/x,k=(-w*m-b*_)/x,S=(w*b+m*_)/x,M=(-w*m+b*_)/x,A=C-v,E=k-y,T=S-v,N=M-y;return T*T+N*N<A*A+E*E&&(C=S,k=M),{cx:C,cy:k,x01:-f,y01:-l,x11:C*(i/$-1),y11:k*(i/$-1)}}function Vs(t){this._context=t}function Ws(t){return new Vs(t)}function Ys(t){return t[0]}function Xs(t){return t[1]}function Gs(){function e(t){var e,n,r,i=t.length,o=!1;for(null==c&&(l=f(r=tn())),e=0;e<=i;++e)!(e<i&&u(n=t[e],e,t))===o&&((o=!o)?l.lineStart():l.lineEnd()),o&&l.point(+a(n,e,t),+s(n,e,t));if(r)return l=null,r+""||null}var a=Ys,s=Xs,u=Ls(!0),c=null,f=Ws,l=null;return e.x=function(t){return arguments.length?(a="function"==typeof t?t:Ls(+t),e):a},e.y=function(t){return arguments.length?(s="function"==typeof t?t:Ls(+t),e):s},e.defined=function(t){return arguments.length?(u="function"==typeof t?t:Ls(!!t),e):u},e.curve=function(t){return arguments.length?(f=t,null!=c&&(l=f(c)),e):f},e.context=function(t){return arguments.length?(null==t?c=l=null:l=f(c=t),e):c},e}function Js(){function e(t){var e,n,r,i,o,a=t.length,s=!1,u=new Array(a),c=new Array(a);for(null==g&&(y=v(o=tn())),e=0;e<=a;++e){if(!(e<a&&d(i=t[e],e,t))===s)if(s=!s)n=e,y.areaStart(),y.lineStart();else{for(y.lineEnd(),y.lineStart(),r=e-1;n<=r;--r)y.point(u[r],c[r]);y.lineEnd(),y.areaEnd()}s&&(u[e]=+f(i,e,t),c[e]=+h(i,e,t),y.point(l?+l(i,e,t):u[e],p?+p(i,e,t):c[e]))}if(o)return y=null,o+""||null}function t(){return Gs().defined(d).curve(v).context(g)}var f=Ys,l=null,h=Ls(0),p=Xs,d=Ls(!0),g=null,v=Ws,y=null;return e.x=function(t){return arguments.length?(f="function"==typeof t?t:Ls(+t),l=null,e):f},e.x0=function(t){return arguments.length?(f="function"==typeof t?t:Ls(+t),e):f},e.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:Ls(+t),e):l},e.y=function(t){return arguments.length?(h="function"==typeof t?t:Ls(+t),p=null,e):h},e.y0=function(t){return arguments.length?(h="function"==typeof t?t:Ls(+t),e):h},e.y1=function(t){return arguments.length?(p=null==t?null:"function"==typeof t?t:Ls(+t),e):p},e.lineX0=e.lineY0=function(){return t().x(f).y(h)},e.lineY1=function(){return t().x(f).y(p)},e.lineX1=function(){return t().x(l).y(h)},e.defined=function(t){return arguments.length?(d="function"==typeof t?t:Ls(!!t),e):d},e.curve=function(t){return arguments.length?(v=t,null!=g&&(y=v(g)),e):v},e.context=function(t){return arguments.length?(null==t?g=y=null:y=v(g=t),e):g},e}function Zs(t,e){return e<t?-1:t<e?1:t<=e?0:NaN}function Ks(t){return t}function Qs(t){this._curve=t}function tu(e){function t(t){return new Qs(e(t))}return t._curve=e,t}function eu(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(tu(t)):e()._curve},t}function nu(){return eu(Gs().curve(yv))}function ru(){var t=Js().curve(yv),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return eu(n())},delete t.lineX0,t.lineEndAngle=function(){return eu(r())},delete t.lineX1,t.lineInnerRadius=function(){return eu(i())},delete t.lineY0,t.lineOuterRadius=function(){return eu(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(tu(t)):e()._curve},t}function iu(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}function ou(t){return t.source}function au(t){return t.target}function su(i){function e(){var t,e=mv.call(arguments),n=o.apply(this,e),r=a.apply(this,e);if(c||(c=t=tn()),i(c,+s.apply(this,(e[0]=n,e)),+u.apply(this,e),+s.apply(this,(e[0]=r,e)),+u.apply(this,e)),t)return c=null,t+""||null}var o=ou,a=au,s=Ys,u=Xs,c=null;return e.source=function(t){return arguments.length?(o=t,e):o},e.target=function(t){return arguments.length?(a=t,e):a},e.x=function(t){return arguments.length?(s="function"==typeof t?t:Ls(+t),e):s},e.y=function(t){return arguments.length?(u="function"==typeof t?t:Ls(+t),e):u},e.context=function(t){return arguments.length?(c=null==t?null:t,e):c},e}function uu(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function cu(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function fu(t,e,n,r,i){var o=iu(e,n),a=iu(e,n=(n+i)/2),s=iu(r,n),u=iu(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function lu(){}function hu(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function pu(t){this._context=t}function du(t){this._context=t}function gu(t){this._context=t}function vu(t,e){this._basis=new pu(t),this._beta=e}function yu(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function mu(t,e){this._context=t,this._k=(1-e)/6}function bu(t,e){this._context=t,this._k=(1-e)/6}function xu(t,e){this._context=t,this._k=(1-e)/6}function $u(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>pv){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>pv){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/f,a=(a*c+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function wu(t,e){this._context=t,this._alpha=e}function _u(t,e){this._context=t,this._alpha=e}function Cu(t,e){this._context=t,this._alpha=e}function ku(t){this._context=t}function Su(t){return t<0?-1:1}function Mu(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Su(o)+Su(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Au(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Eu(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function Tu(t){this._context=t}function Nu(t){this._context=new Pu(t)}function Pu(t){this._context=t}function Ou(t){this._context=t}function Du(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(o[i[0]=0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;0<=e;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function Ru(t,e){this._context=t,this._t=e}function ju(t,e){if(1<(i=t.length))for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Lu(t){for(var e=t.length,n=new Array(e);0<=--e;)n[e]=e;return n}function qu(t,e){return t[e]}function Bu(t){var n=t.map(Fu);return Lu(t).sort(function(t,e){return n[t]-n[e]})}function Fu(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}function Iu(t){return function(){return t}}function Uu(t){return t[0]}function zu(t){return t[1]}function Hu(){this._=null}function Vu(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Wu(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Yu(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function Xu(t){for(;t.L;)t=t.L;return t}function Gu(t,e,n,r){var i=[null,null],o=Yv.push(i)-1;return i.left=t,i.right=e,n&&Zu(i,t,e,n),r&&Zu(i,e,t,r),Vv[t.index].halfedges.push(o),Vv[e.index].halfedges.push(o),i}function Ju(t,e,n){var r=[e,n];return r.left=t,r}function Zu(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function Ku(t,e,n,r,i){var o,a=t[0],s=t[1],u=a[0],c=a[1],f=0,l=1,h=s[0]-u,p=s[1]-c;if(o=e-u,h||!(0<o)){if(o/=h,h<0){if(o<f)return;o<l&&(l=o)}else if(0<h){if(l<o)return;f<o&&(f=o)}if(o=r-u,h||!(o<0)){if(o/=h,h<0){if(l<o)return;f<o&&(f=o)}else if(0<h){if(o<f)return;o<l&&(l=o)}if(o=n-c,p||!(0<o)){if(o/=p,p<0){if(o<f)return;o<l&&(l=o)}else if(0<p){if(l<o)return;f<o&&(f=o)}if(o=i-c,p||!(o<0)){if(o/=p,p<0){if(l<o)return;f<o&&(f=o)}else if(0<p){if(o<f)return;o<l&&(l=o)}return!(0<f||l<1)||(0<f&&(t[0]=[u+f*h,c+f*p]),l<1&&(t[1]=[u+l*h,c+l*p]),!0)}}}}}function Qu(t,e,n,r,i){var o=t[1];if(o)return!0;var a,s,u=t[0],c=t.left,f=t.right,l=c[0],h=c[1],p=f[0],d=f[1],g=(l+p)/2,v=(h+d)/2;if(d===h){if(g<e||r<=g)return;if(p<l){if(u){if(u[1]>=i)return}else u=[g,n];o=[g,i]}else{if(u){if(u[1]<n)return}else u=[g,i];o=[g,n]}}else if(s=v-(a=(l-p)/(d-h))*g,a<-1||1<a)if(p<l){if(u){if(u[1]>=i)return}else u=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(u){if(u[1]<n)return}else u=[(i-s)/a,i];o=[(n-s)/a,n]}else if(h<d){if(u){if(u[0]>=r)return}else u=[e,a*e+s];o=[r,a*r+s]}else{if(u){if(u[0]<e)return}else u=[r,a*r+s];o=[e,a*e+s]}return t[0]=u,t[1]=o,!0}function tc(t,e){return e[+(e.left!==t.site)]}function ec(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var a=i[0],s=i[1],u=r[0]-a,c=r[1]-s,f=o[0]-a,l=o[1]-s,h=2*(u*l-c*f);if(!(-Zv<=h)){var p=u*u+c*c,d=f*f+l*l,g=(l*p-c*d)/h,v=(u*d-f*p)/h,y=Xv.pop()||new function(){Vu(this),this.x=this.y=this.arc=this.site=this.cy=null};y.arc=t,y.site=i,y.x=g+a,y.y=(y.cy=v+s)+Math.sqrt(g*g+v*v),t.circle=y;for(var m=null,b=Wv._;b;)if(y.y<b.y||y.y===b.y&&y.x<=b.x){if(!b.L){m=b.P;break}b=b.L}else{if(!b.R){m=b;break}b=b.R}Wv.insert(m,y),m||(zv=y)}}}}function nc(t){var e=t.circle;e&&(e.P||(zv=e.N),Wv.remove(e),Xv.push(e),Vu(e),t.circle=null)}function rc(t){var e=Gv.pop()||new function(){Vu(this),this.edge=this.site=this.circle=null};return e.site=t,e}function ic(t){nc(t),Hv.remove(t),Gv.push(t),Vu(t)}function oc(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],o=t.P,a=t.N,s=[t];ic(t);for(var u=o;u.circle&&Math.abs(n-u.circle.x)<Jv&&Math.abs(r-u.circle.cy)<Jv;)o=u.P,s.unshift(u),ic(u),u=o;s.unshift(u),nc(u);for(var c=a;c.circle&&Math.abs(n-c.circle.x)<Jv&&Math.abs(r-c.circle.cy)<Jv;)a=c.N,s.push(c),ic(c),c=a;s.push(c),nc(c);var f,l=s.length;for(f=1;f<l;++f)c=s[f],u=s[f-1],Zu(c.edge,u.site,c.site,i);u=s[0],(c=s[l-1]).edge=Gu(u.site,c.site,null,i),ec(u),ec(c)}function ac(t){for(var e,n,r,i,o=t[0],a=t[1],s=Hv._;s;)if((r=sc(s,a)-o)>Jv)s=s.L;else{if(!((i=o-function(t,e){var n=t.N;if(n)return sc(n,e);var r=t.site;return r[1]===e?r[0]:1/0}(s,a))>Jv)){-Jv<r?(e=s.P,n=s):-Jv<i?n=(e=s).N:e=n=s;break}if(!s.R){e=s;break}s=s.R}var u;Vv[(u=t).index]={site:u,halfedges:[]};var c=rc(t);if(Hv.insert(e,c),e||n){if(e===n)return nc(e),n=rc(e.site),Hv.insert(c,n),c.edge=n.edge=Gu(e.site,c.site),ec(e),void ec(n);if(n){nc(e),nc(n);var f=e.site,l=f[0],h=f[1],p=t[0]-l,d=t[1]-h,g=n.site,v=g[0]-l,y=g[1]-h,m=2*(p*y-d*v),b=p*p+d*d,x=v*v+y*y,$=[(y*b-d*x)/m+l,(p*x-v*b)/m+h];Zu(n.edge,f,g,$),c.edge=Gu(f,t,null,$),n.edge=Gu(t,g,null,$),ec(e),ec(n)}else c.edge=Gu(e.site,c.site)}}function sc(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(n=a.site)[0],u=n[1],c=u-e;if(!c)return s;var f=s-r,l=1/o-1/c,h=f/c;return l?(-h+Math.sqrt(h*h-2*l*(f*f/(-2*c)-u+c/2+i-o/2)))/l+r:(r+s)/2}function uc(t,e){return e[1]-t[1]||e[0]-t[0]}function cc(t,e){var n,r,i,o=t.sort(uc).pop();for(Yv=[],Vv=new Array(t.length),Hv=new Hu,Wv=new Hu;;)if(i=zv,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(ac(o),n=o[0],r=o[1]),o=t.pop();else{if(!i)break;oc(i.arc)}if(function(){for(var t,e,n,r,i=0,o=Vv.length;i<o;++i)if((t=Vv[i])&&(r=(e=t.halfedges).length)){var a=new Array(r),s=new Array(r);for(n=0;n<r;++n)a[n]=n,s[n]=(u=t,c=Yv[e[n]],h=l=void 0,f=u.site,l=c.left,h=c.right,f===h&&(h=l,l=f),h?Math.atan2(h[1]-l[1],h[0]-l[0]):(h=f===l?(l=c[1],c[0]):(l=c[0],c[1]),Math.atan2(l[0]-h[0],h[1]-l[1])));for(a.sort(function(t,e){return s[e]-s[t]}),n=0;n<r;++n)s[n]=e[a[n]];for(n=0;n<r;++n)e[n]=s[n]}var u,c,f,l,h}(),e){var a=+e[0][0],s=+e[0][1],u=+e[1][0],c=+e[1][1];(function(t,e,n,r){for(var i,o=Yv.length;o--;)Qu(i=Yv[o],t,e,n,r)&&Ku(i,t,e,n,r)&&(Math.abs(i[0][0]-i[1][0])>Jv||Math.abs(i[0][1]-i[1][1])>Jv)||delete Yv[o]})(a,s,u,c),function(t,e,n,r){var i,o,a,s,u,c,f,l,h,p,d,g,v,y,m=Vv.length,b=!0;for(i=0;i<m;++i)if(o=Vv[i]){for(a=o.site,s=(u=o.halfedges).length;s--;)Yv[u[s]]||u.splice(s,1);for(s=0,c=u.length;s<c;)d=(v=o,y=Yv[u[s]],p=y[+(y.left===v.site)])[0],g=p[1],l=(f=tc(o,Yv[u[++s%c]]))[0],h=f[1],(Math.abs(d-l)>Jv||Math.abs(g-h)>Jv)&&(u.splice(s,0,Yv.push(Ju(a,p,Math.abs(d-t)<Jv&&Jv<r-g?[t,Math.abs(l-t)<Jv?h:r]:Math.abs(g-r)<Jv&&Jv<n-d?[Math.abs(h-r)<Jv?l:n,r]:Math.abs(d-n)<Jv&&Jv<g-e?[n,Math.abs(l-n)<Jv?h:e]:Math.abs(g-e)<Jv&&Jv<d-t?[Math.abs(h-e)<Jv?l:t,e]:null))-1),++c);c&&(b=!1)}if(b){var x,$,w,_=1/0;for(i=0,b=null;i<m;++i)(o=Vv[i])&&(w=(x=(a=o.site)[0]-t)*x+($=a[1]-e)*$)<_&&(_=w,b=o);if(b){var C=[t,e],k=[t,r],S=[n,r],M=[n,e];b.halfedges.push(Yv.push(Ju(a=b.site,C,k))-1,Yv.push(Ju(a,k,S))-1,Yv.push(Ju(a,S,M))-1,Yv.push(Ju(a,M,C))-1)}}for(i=0;i<m;++i)(o=Vv[i])&&(o.halfedges.length||delete Vv[i])}(a,s,u,c)}this.edges=Yv,this.cells=Vv,Hv=Wv=Yv=Vv=null}function fc(t){return function(){return t}}function lc(t,e,n){this.k=t,this.x=e,this.y=n}function hc(t){return t.__zoom||Kv}function pc(){F.event.stopImmediatePropagation()}function dc(){F.event.preventDefault(),F.event.stopImmediatePropagation()}function gc(){return!F.event.button}function vc(){var t,e,n=this;return e=n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,n.height.baseVal.value):(t=n.clientWidth,n.clientHeight),[[0,0],[t,e]]}function yc(){return this.__zoom||Kv}function mc(){return-F.event.deltaY*(F.event.deltaMode?120:1)/500}function bc(){return"ontouchstart"in this}function xc(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(r<i?(r+i)/2:Math.min(0,r)||Math.max(0,i),o<a?(o+a)/2:Math.min(0,o)||Math.max(0,a))}var $c=C(s),wc=$c.right,_c=$c.left,Cc=Array.prototype,kc=Cc.slice,Sc=Cc.map,Mc=Math.sqrt(50),Ac=Math.sqrt(10),Ec=Math.sqrt(2),Tc=Array.prototype.slice,Nc={value:function(){}};y.prototype=N.prototype={constructor:y,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(0<=n&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),a=-1,s=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<s;)if(n=(t=o[a]).type)i[n]=m(i[n],t.name,e);else if(null==e)for(n in i)i[n]=m(i[n],t.name,null);return this}for(;++a<s;)if((n=(t=o[a]).type)&&(n=function(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new y(t)},call:function(t,e){if(0<(n=arguments.length-2))for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var Pc="http://www.w3.org/1999/xhtml",Oc={svg:"http://www.w3.org/2000/svg",xhtml:Pc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Dc=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Rc=document.documentElement;if(!Rc.matches){var jc=Rc.webkitMatchesSelector||Rc.msMatchesSelector||Rc.mozMatchesSelector||Rc.oMatchesSelector;Dc=function(t){return function(){return jc.call(this,t)}}}}var Lc=Dc;D.prototype={constructor:D,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};z.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);0<=e&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return 0<=this._names.indexOf(t)}};var qc={};F.event=null,"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(qc={mouseenter:"mouseover",mouseleave:"mouseout"}));var Bc=[null];at.prototype=st.prototype={constructor:at,select:function(t){"function"!=typeof t&&(t=w(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],u=s.length,c=r[i]=new Array(u),f=0;f<u;++f)(o=s[f])&&(a=t.call(o,o.__data__,f,s))&&("__data__"in o&&(a.__data__=o.__data__),c[f]=a);return new at(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=P(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],u=s.length,c=0;c<u;++c)(a=s[c])&&(r.push(t.call(a,a.__data__,c,s)),i.push(a));return new at(r,i)},filter:function(t){"function"!=typeof t&&(t=Lc(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&u.push(o);return new at(r,this._parents)},data:function(t,e){if(!t)return d=new Array(this.size()),f=-1,this.each(function(t){d[++f]=t}),d;var n,r=e?j:R,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,s=new Array(a),u=new Array(a),c=new Array(a),f=0;f<a;++f){var l=i[f],h=o[f],p=h.length,d=t.call(l,l&&l.__data__,f,i),g=d.length,v=u[f]=new Array(g),y=s[f]=new Array(g);r(l,h,v,y,c[f]=new Array(p),d,e);for(var m,b,x=0,$=0;x<g;++x)if(m=v[x]){for($<=x&&($=x+1);!(b=y[$])&&++$<g;);m._next=b||null}}return(s=new at(s,i))._enter=u,s._exit=c,s},enter:function(){return new at(this._enter||this._groups.map(O),this._parents)},exit:function(){return new at(this._exit||this._groups.map(O),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=e[s],f=n[s],l=c.length,h=a[s]=new Array(l),p=0;p<l;++p)(u=c[p]||f[p])&&(h[p]=u);for(;s<r;++s)a[s]=e[s];return new at(a,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];0<=--o;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(n){function t(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}n||(n=L);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a,s=e[o],u=s.length,c=i[o]=new Array(u),f=0;f<u;++f)(a=s[f])&&(c[f]=a);c.sort(t)}return new at(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=b(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(e,n){return function(){var t=n.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}:function(e,n){return function(){var t=n.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return 1<arguments.length?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(e,n,r){return function(){var t=n.apply(this,arguments);null==t?this.style.removeProperty(e):this.style.setProperty(e,t,r)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):B(this.node(),t)},property:function(t,e){return 1<arguments.length?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(e,n){return function(){var t=n.apply(this,arguments);null==t?delete this[e]:this[e]=t}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=I(t+"");if(arguments.length<2){for(var r=U(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?H:V)(this,t)}}:e?function(t){return function(){H(this,t)}}:function(t){return function(){V(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?W:("function"==typeof t?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Y:("function"==typeof t?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(X)},lower:function(){return this.each(G)},append:function(t){var e="function"==typeof t?t:x(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:x(t),r=null==e?J:"function"==typeof e?e:w(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Z)},clone:function(t){return this.select(t?Q:K)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return 0<=n&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),a=o.length;if(!(arguments.length<2)){for(s=e?rt:nt,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,f=s.length;c<f;++c)for(r=0,u=s[c];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return ot(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return ot(this,t,e)}})(t,e))}};var Fc=0;ft.prototype=ct.prototype={constructor:ft,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}},xt.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Ic="\\s*([+-]?\\d+)\\s*",Uc="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",zc="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hc=/^#([0-9a-f]{3})$/,Vc=/^#([0-9a-f]{6})$/,Wc=new RegExp("^rgb\\("+[Ic,Ic,Ic]+"\\)$"),Yc=new RegExp("^rgb\\("+[zc,zc,zc]+"\\)$"),Xc=new RegExp("^rgba\\("+[Ic,Ic,Ic,Uc]+"\\)$"),Gc=new RegExp("^rgba\\("+[zc,zc,zc,Uc]+"\\)$"),Jc=new RegExp("^hsl\\("+[Uc,zc,zc]+"\\)$"),Zc=new RegExp("^hsla\\("+[Uc,zc,zc,Uc]+"\\)$"),Kc={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};kt(Mt,At,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),kt(Ot,Pt,St(Mt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ot(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ot(this.r*t,this.g*t,this.b*t,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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}})),kt(jt,Rt,St(Mt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new jt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new jt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Ot(Lt(240<=t?t-240:t+120,i,r),Lt(t,i,r),Lt(t<120?t+240:t-120,i,r),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 Qc=Math.PI/180,tf=180/Math.PI,ef=.95047,nf=1,rf=1.08883,of=4/29,af=6/29*3*(6/29),sf=6/29*(6/29)*(6/29);kt(Ft,Bt,St(Mt,{brighter:function(t){return new Ft(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Ft(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=nf*Ut(t),new Ot(zt(3.2404542*(e=ef*Ut(e))-1.5371385*t-.4985314*(n=rf*Ut(n))),zt(-.969266*e+1.8760108*t+.041556*n),zt(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),kt(Wt,Vt,St(Mt,{brighter:function(t){return new Wt(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Wt(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return qt(this).rgb()}}));var uf=-.29227,cf=-.90649,ff=1.97294,lf=ff*cf,hf=1.78277*ff,pf=1.78277*uf- -.14861*cf;kt(Xt,Yt,St(Mt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Xt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Xt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Qc,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new Ot(255*(e+n*(-.14861*r+1.78277*i)),255*(e+n*(uf*r+cf*i)),255*(e+n*(ff*r)),this.opacity)}}));var df,gf,vf,yf,mf,bf,xf=function t(e){function n(e,t){var n=a((e=Pt(e)).r,(t=Pt(t)).r),r=a(e.g,t.g),i=a(e.b,t.b),o=ee(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=r(t),e.b=i(t),e.opacity=o(t),e+""}}var o,a=1==(o=+(o=e))?ee:function(t,e){return e-t?(n=t,r=e,i=o,n=Math.pow(n,i),r=Math.pow(r,i)-n,i=1/i,function(t){return Math.pow(n+t*r,i)}):Kt(isNaN(t)?e:t);var n,r,i};return n.gamma=t,n}(1),$f=ne(Jt),wf=ne(Zt),_f=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Cf=new RegExp(_f.source,"g"),kf=180/Math.PI,Sf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Mf=le(function(t){return"none"===t?Sf:(df||(df=document.createElement("DIV"),gf=document.documentElement,vf=document.defaultView),df.style.transform=t,t=vf.getComputedStyle(gf.appendChild(df),null).getPropertyValue("transform"),gf.removeChild(df),fe(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),Af=le(function(t){return null==t?Sf:(yf||(yf=document.createElementNS("http://www.w3.org/2000/svg","g")),yf.setAttribute("transform",t),(t=yf.transform.baseVal.consolidate())?fe((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Sf)},", ",")",")"),Ef=Math.SQRT2,Tf=de(te),Nf=de(ee),Pf=ge(te),Of=ge(ee),Df=ve(te),Rf=ve(ee),jf=0,Lf=0,qf=0,Bf=1e3,Ff=0,If=0,Uf=0,zf="object"==typeof performance&&performance.now?performance:Date,Hf="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};be.prototype=xe.prototype={constructor:be,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ye():+n)+(null==e?0:+e),this._next||bf===this||(bf?bf._next=this:mf=this,bf=this),this._call=t,this._time=n,Ce()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ce())}};var Vf=N("start","end","interrupt"),Wf=[],Yf=0,Xf=1,Gf=2,Jf=3,Zf=4,Kf=5,Qf=6,tl=st.prototype.constructor,el=0,nl=st.prototype;Oe.prototype=De.prototype={constructor:Oe,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=w(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,c=r[a],f=c.length,l=o[a]=new Array(f),h=0;h<f;++h)(s=c[h])&&(u=t.call(s,s.__data__,h,c))&&("__data__"in s&&(u.__data__=s.__data__),l[h]=u,Se(l[h],e,n,h,l,Ee(s,n)));return new Oe(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=P(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,c=r[s],f=c.length,l=0;l<f;++l)if(u=c[l]){for(var h,p=t.call(u,u.__data__,l,c),d=Ee(u,n),g=0,v=p.length;g<v;++g)(h=p[g])&&Se(h,e,n,g,p,d);o.push(p),a.push(u)}return new Oe(o,a,e,n)},filter:function(t){"function"!=typeof t&&(t=Lc(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&u.push(o);return new Oe(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=e[s],f=n[s],l=c.length,h=a[s]=new Array(l),p=0;p<l;++p)(u=c[p]||f[p])&&(h[p]=u);for(;s<r;++s)a[s]=e[s];return new Oe(a,this._parents,this._name,this._id)},selection:function(){return new tl(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Re(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)if(a=s[c]){var f=Ee(a,e);Se(a,t,n,c,s,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Oe(r,this._parents,t,n)},call:nl.call,nodes:nl.nodes,node:nl.node,size:nl.size,empty:nl.empty,each:nl.each,on:function(t,e){var n,r,i,o,a,s,u=this._id;return arguments.length<2?Ee(this.node(),u).on.on(t):this.each((n=u,i=e,s=((r=t)+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return 0<=e&&(t=t.slice(0,e)),!t||"start"===t})?Me:Ae,function(){var t=s(this,n),e=t.on;e!==o&&(a=(o=e).copy()).on(r,i),t.on=a}))},attr:function(t,e){var n=b(t),r="transform"===n?Af:Pe;return this.attrTween(t,"function"==typeof e?(n.local?function(n,r,i){var o,a,s;return function(){var t,e=i(this);if(null!=e)return(t=this.getAttributeNS(n.space,n.local))===e?null:t===o&&e===a?s:s=r(o=t,a=e);this.removeAttributeNS(n.space,n.local)}}:function(n,r,i){var o,a,s;return function(){var t,e=i(this);if(null!=e)return(t=this.getAttribute(n))===e?null:t===o&&e===a?s:s=r(o=t,a=e);this.removeAttribute(n)}})(n,r,Ne(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(e,n,r){var i,o;return function(){var t=this.getAttributeNS(e.space,e.local);return t===r?null:t===i?o:o=n(i=t,r)}}:function(e,n,r){var i,o;return function(){var t=this.getAttribute(e);return t===r?null:t===i?o:o=n(i=t,r)}})(n,r,e+""))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=b(t);return this.tween(n,(r.local?function(r,t){function e(){var e=this,n=t.apply(e,arguments);return n&&function(t){e.setAttributeNS(r.space,r.local,n(t))}}return e._value=t,e}:function(r,t){function e(){var e=this,n=t.apply(e,arguments);return n&&function(t){e.setAttribute(r,n(t))}}return e._value=t,e})(r,e))},style:function(t,e,n){var r,i,o,a,s,u,c,f,l,h,p,d,g,v,y,m,b,x="transform"==(t+="")?Mf:Pe;return null==e?this.styleTween(t,(g=t,v=x,function(){var t=B(this,g),e=(this.style.removeProperty(g),B(this,g));return t===e?null:t===y&&e===m?b:b=v(y=t,m=e)})).on("end.style."+t,(d=t,function(){this.style.removeProperty(d)})):this.styleTween(t,"function"==typeof e?(c=x,f=Ne(this,"style."+(u=t),e),function(){var t=B(this,u),e=f(this);return null==e&&(this.style.removeProperty(u),e=B(this,u)),t===e?null:t===l&&e===h?p:p=c(l=t,h=e)}):(r=t,i=x,o=e+"",function(){var t=B(this,r);return t===o?null:t===a?s:s=i(a=t,o)}),n)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(r,t,i){function e(){var e=this,n=t.apply(e,arguments);return n&&function(t){e.style.setProperty(r,n(t),i)}}return e._value=t,e}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?(n=Ne(this,"text",t),function(){var t=n(this);this.textContent=null==t?"":t}):(e=null==t?"":t+"",function(){this.textContent=e}));var e,n},remove:function(){return this.on("end.remove",(n=this._id,function(){var t=this.parentNode;for(var e in this.__transition)if(+e!==n)return;t&&t.removeChild(this)}));var n},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Ee(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?function(i,o){var a,s;return function(){var t=Ae(this,i),e=t.tween;if(e!==a)for(var n=0,r=(s=a=e).length;n<r;++n)if(s[n].name===o){(s=s.slice()).splice(n,1);break}t.tween=s}}:function(o,a,s){var u,c;if("function"!=typeof s)throw new Error;return function(){var t=Ae(this,o),e=t.tween;if(e!==u){c=(u=e).slice();for(var n={name:a,value:s},r=0,i=c.length;r<i;++r)if(c[r].name===a){c[r]=n;break}r===i&&c.push(n)}t.tween=c}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){Me(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){Me(this,t).delay=e}})(e,t)):Ee(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){Ae(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){Ae(this,t).duration=e}})(e,t)):Ee(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Ae(this,t).ease=e}}(e,t)):Ee(this.node(),e).ease}};var rl=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),il=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),ol=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),al=Math.PI,sl=al/2,ul=7.5625,cl=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),fl=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),ll=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),hl=2*Math.PI,pl=function e(n,r){function t(t){return n*Math.pow(2,10*--t)*Math.sin((i-t)/r)}var i=Math.asin(1/(n=Math.max(1,n)))*(r/=hl);return t.amplitude=function(t){return e(t,r*hl)},t.period=function(t){return e(n,t)},t}(1,.3),dl=function e(n,r){function t(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/r)}var i=Math.asin(1/(n=Math.max(1,n)))*(r/=hl);return t.amplitude=function(t){return e(t,r*hl)},t.period=function(t){return e(n,t)},t}(1,.3),gl=function e(n,r){function t(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((i-t)/r):2-n*Math.pow(2,-10*t)*Math.sin((i+t)/r))/2}var i=Math.asin(1/(n=Math.max(1,n)))*(r/=hl);return t.amplitude=function(t){return e(t,r*hl)},t.period=function(t){return e(n,t)},t}(1,.3),vl={time:null,delay:0,duration:250,ease:Le};st.prototype.interrupt=function(t){return this.each(function(){Te(this,t)})},st.prototype.transition=function(t){var e,n;t=t instanceof Oe?(e=t._id,t._name):(e=Re(),(n=vl).time=ye(),null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)(a=s[c])&&Se(a,t,e,c,s,n||Ue(a,e));return new Oe(r,this._parents,t,e)};var yl=[null],ml={name:"drag"},bl={name:"space"},xl={name:"handle"},$l={name:"center"},wl={name:"x",handles:["e","w"].map(We),input:function(t,e){return t&&[[t[0],e[0][1]],[t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},_l={name:"y",handles:["n","s"].map(We),input:function(t,e){return t&&[[e[0][0],t[0]],[e[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Cl={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(We),input:function(t){return t},output:function(t){return t}},kl={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"},Sl={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Ml={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},El={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},Tl=Math.cos,Nl=Math.sin,Pl=Math.PI,Ol=Pl/2,Dl=2*Pl,Rl=Math.max,jl=Array.prototype.slice,Ll=Math.PI,ql=2*Ll,Bl=ql-1e-6;Qe.prototype=tn.prototype={constructor:Qe,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-t,u=r-e,c=o-t,f=a-e,l=c*c+f*f;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(1e-6<l)if(1e-6<Math.abs(f*s-u*c)&&i){var h=n-o,p=r-a,d=s*s+u*u,g=h*h+p*p,v=Math.sqrt(d),y=Math.sqrt(l),m=i*Math.tan((Ll-Math.acos((d+l-g)/(2*v*y)))/2),b=m/y,x=m/v;1e-6<Math.abs(b-1)&&(this._+="L"+(t+b*c)+","+(e+b*f)),this._+="A"+i+","+i+",0,0,"+ +(c*p<f*h)+","+(this._x1=t+x*s)+","+(this._y1=e+x*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,o){t=+t,e=+e;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=t+a,c=e+s,f=1^o,l=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(1e-6<Math.abs(this._x1-u)||1e-6<Math.abs(this._y1-c))&&(this._+="L"+u+","+c),n&&(l<0&&(l=l%ql+ql),Bl<l?this._+="A"+n+","+n+",0,1,"+f+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+f+","+(this._x1=u)+","+(this._y1=c):1e-6<l&&(this._+="A"+n+","+n+",0,"+ +(Ll<=l)+","+f+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},sn.prototype=un.prototype={constructor:sn,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var Fl=un.prototype;pn.prototype=dn.prototype={constructor:pn,has:Fl.has,add:function(t){return this["$"+(t+="")]=t,this},remove:Fl.remove,clear:Fl.clear,values:Fl.keys,size:Fl.size,empty:Fl.empty,each:Fl.each};var Il={},Ul={},zl=vn(","),Hl=zl.parse,Vl=zl.parseRows,Wl=zl.format,Yl=zl.formatRows,Xl=vn("\t"),Gl=Xl.parse,Jl=Xl.parseRows,Zl=Xl.format,Kl=Xl.formatRows,Ql=_n.prototype=Cn.prototype;Ql.copy=function(){var t,e,n=new Cn(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=kn(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=kn(e));return n},Ql.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return bn(this.cover(e,n),e,n,t)},Ql.addAll=function(t){var e,n,r,i,o=t.length,a=new Array(o),s=new Array(o),u=1/0,c=1/0,f=-1/0,l=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||((a[n]=r)<u&&(u=r),f<r&&(f=r),(s[n]=i)<c&&(c=i),l<i&&(l=i));for(f<u&&(u=this._x0,f=this._x1),l<c&&(c=this._y0,l=this._y1),this.cover(u,c).cover(f,l),n=0;n<o;++n)bn(this,a[n],s[n],t[n]);return this},Ql.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{if(!(t<n||i<t||e<r||o<e))return this;var a,s,u=i-n,c=this._root;switch(s=(e<(r+o)/2)<<1|t<(n+i)/2){case 0:for(;(a=new Array(4))[s]=c,c=a,o=r+(u*=2),(i=n+u)<t||o<e;);break;case 1:for(;(a=new Array(4))[s]=c,c=a,o=r+(u*=2),t<(n=i-u)||o<e;);break;case 2:for(;(a=new Array(4))[s]=c,c=a,r=o-(u*=2),(i=n+u)<t||e<r;);break;case 3:for(;(a=new Array(4))[s]=c,c=a,r=o-(u*=2),t<(n=i-u)||e<r;);}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},Ql.data=function(){var e=[];return this.visit(function(t){if(!t.length)for(;e.push(t.data),t=t.next;);}),e},Ql.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Ql.find=function(t,e,n){var r,i,o,a,s,u,c,f=this._x0,l=this._y0,h=this._x1,p=this._y1,d=[],g=this._root;for(g&&d.push(new xn(g,f,l,h,p)),null==n?n=1/0:(f=t-n,l=e-n,h=t+n,p=e+n,n*=n);u=d.pop();)if(!(!(g=u.node)||(i=u.x0)>h||(o=u.y0)>p||(a=u.x1)<f||(s=u.y1)<l))if(g.length){var v=(i+a)/2,y=(o+s)/2;d.push(new xn(g[3],v,y,a,s),new xn(g[2],i,y,v,s),new xn(g[1],v,o,a,y),new xn(g[0],i,o,v,y)),(c=(y<=e)<<1|v<=t)&&(u=d[d.length-1],d[d.length-1]=d[d.length-1-c],d[d.length-1-c]=u)}else{var m=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),x=m*m+b*b;if(x<n){var $=Math.sqrt(n=x);f=t-$,l=e-$,h=t+$,p=e+$,r=g.data}}return r},Ql.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,r,i,o,a,s,u,c,f,l,h,p=this._root,d=this._x0,g=this._y0,v=this._x1,y=this._y1;if(!p)return this;if(p.length)for(;;){if((c=o>=(s=(d+v)/2))?d=s:v=s,(f=a>=(u=(g+y)/2))?g=u:y=u,!(p=(e=p)[l=f<<1|c]))return this;if(!p.length)break;(e[l+1&3]||e[l+2&3]||e[l+3&3])&&(n=e,h=l)}for(;p.data!==t;)if(!(p=(r=p).next))return this;return(i=p.next)&&delete p.next,r?i?r.next=i:delete r.next:e?(i?e[l]=i:delete e[l],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(n?n[h]=p:this._root=p)):this._root=i,this},Ql.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},Ql.root=function(){return this._root},Ql.size=function(){var e=0;return this.visit(function(t){if(!t.length)for(;++e,t=t.next;);}),e},Ql.visit=function(t){var e,n,r,i,o,a,s=[],u=this._root;for(u&&s.push(new xn(u,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(u=e.node,r=e.x0,i=e.y0,o=e.x1,a=e.y1)&&u.length){var c=(r+o)/2,f=(i+a)/2;(n=u[3])&&s.push(new xn(n,c,f,o,a)),(n=u[2])&&s.push(new xn(n,r,f,c,a)),(n=u[1])&&s.push(new xn(n,c,i,o,f)),(n=u[0])&&s.push(new xn(n,r,i,c,f))}return this},Ql.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new xn(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var o,a=e.x0,s=e.y0,u=e.x1,c=e.y1,f=(a+u)/2,l=(s+c)/2;(o=i[0])&&n.push(new xn(o,a,s,f,l)),(o=i[1])&&n.push(new xn(o,f,s,u,l)),(o=i[2])&&n.push(new xn(o,a,l,f,c)),(o=i[3])&&n.push(new xn(o,f,l,u,c))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Ql.x=function(t){return arguments.length?(this._x=t,this):this._x},Ql.y=function(t){return arguments.length?(this._y=t,this):this._y};var th,eh=Math.PI*(3-Math.sqrt(5)),nh={"":function(t,e){t:for(var n,r=(t=t.toPrecision(e)).length,i=1,o=-1;i<r;++i)switch(t[i]){case".":o=n=i;break;case"0":0===o&&(o=i),n=i;break;case"e":break t;default:0<o&&(o=0)}return 0<o?t.slice(0,o)+t.slice(n+1):t},"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Dn(100*t,e)},r:Dn,s:function(t,e){var n=Pn(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(th=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:a<o?r+new Array(o-a+1).join("0"):0<o?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Pn(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},rh=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;Rn.prototype=jn.prototype,jn.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 ih,oh=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Bn({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Hn.prototype={constructor:Hn,reset:function(){this.s=this.t=0},add:function(t){Vn(Lh,t,this.t),Vn(this,Lh.s,this.s),this.s?this.t+=Lh.t:this.s=Lh.t},valueOf:function(){return this.s}};var ah,sh,uh,ch,fh,lh,hh,ph,dh,gh,vh,yh,mh,bh,xh,$h,wh,_h,Ch,kh,Sh,Mh,Ah,Eh,Th,Nh,Ph,Oh,Dh,Rh,jh,Lh=new Hn,qh=1e-6,Bh=Math.PI,Fh=Bh/2,Ih=Bh/4,Uh=2*Bh,zh=180/Bh,Hh=Bh/180,Vh=Math.abs,Wh=Math.atan,Yh=Math.atan2,Xh=Math.cos,Gh=Math.ceil,Jh=Math.exp,Zh=Math.log,Kh=Math.pow,Qh=Math.sin,tp=Math.sign||function(t){return 0<t?1:t<0?-1:0},ep=Math.sqrt,np=Math.tan,rp={Feature:function(t,e){Jn(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)Jn(n[r].geometry,e)}},ip={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){Zn(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)Zn(n[r],e,0)},Polygon:function(t,e){Kn(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)Kn(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)Jn(n[r],e)}},op=zn(),ap=zn(),sp={point:Gn,lineStart:Gn,lineEnd:Gn,polygonStart:function(){op.reset(),sp.lineStart=tr,sp.lineEnd=er},polygonEnd:function(){var t=+op;ap.add(t<0?Uh+t:t),this.lineStart=this.lineEnd=this.point=Gn},sphere:function(){ap.add(Uh)}},up=zn(),cp={point:lr,lineStart:pr,lineEnd:dr,polygonStart:function(){cp.point=gr,cp.lineStart=vr,cp.lineEnd=yr,up.reset(),sp.polygonStart()},polygonEnd:function(){sp.polygonEnd(),cp.point=lr,cp.lineStart=pr,cp.lineEnd=dr,op<0?(lh=-(ph=180),hh=-(dh=90)):qh<up?dh=90:up<-qh&&(hh=-90),xh[0]=lh,xh[1]=ph}},fp={sphere:Gn,point:$r,lineStart:_r,lineEnd:Sr,polygonStart:function(){fp.lineStart=Mr,fp.lineEnd=Ar},polygonEnd:function(){fp.lineStart=_r,fp.lineEnd=Sr}};Or.invert=Or;var lp,hp,pp,dp,gp,vp,yp,mp,bp,xp,$p,wp=zn(),_p=Yr(function(){return!0},function(l){var h,p=NaN,d=NaN,g=NaN;return{lineStart:function(){l.lineStart(),h=1},point:function(t,e){var n,r,i,o,a,s,u,c=0<t?Bh:-Bh,f=Vh(t-p);Vh(f-Bh)<qh?(l.point(p,d=0<(d+e)/2?Fh:-Fh),l.point(g,d),l.lineEnd(),l.lineStart(),l.point(c,d),l.point(t,d),h=0):g!==c&&Bh<=f&&(Vh(p-g)<qh&&(p-=g*qh),Vh(t-c)<qh&&(t-=c*qh),r=d,o=e,u=Qh((n=p)-(i=t)),d=Vh(u)>qh?Wh((Qh(r)*(s=Xh(o))*Qh(i)-Qh(o)*(a=Xh(r))*Qh(n))/(a*s*u)):(r+o)/2,l.point(g,d),l.lineEnd(),l.lineStart(),l.point(c,d),h=0),l.point(p=t,d=e),g=c},lineEnd:function(){l.lineEnd(),p=d=NaN},clean:function(){return 2-h}}},function(t,e,n,r){var i;if(null==t)i=n*Fh,r.point(-Bh,i),r.point(0,i),r.point(Bh,i),r.point(Bh,0),r.point(Bh,-i),r.point(0,-i),r.point(-Bh,-i),r.point(-Bh,0),r.point(-Bh,i);else if(Vh(t[0]-e[0])>qh){var o=t[0]<e[0]?Bh:-Bh;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])},[-Bh,-Fh]),Cp=1e9,kp=-Cp,Sp=zn(),Mp={sphere:Gn,point:Gn,lineStart:function(){Mp.point=Qr,Mp.lineEnd=Kr},lineEnd:Gn,polygonStart:Gn,polygonEnd:Gn},Ap=[null,null],Ep={type:"LineString",coordinates:Ap},Tp={Feature:function(t,e){return ri(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(ri(n[r].geometry,e))return!0;return!1}},Np={Sphere:function(){return!0},Point:function(t,e){return ii(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(ii(n[r],e))return!0;return!1},LineString:function(t,e){return oi(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(oi(n[r],e))return!0;return!1},Polygon:function(t,e){return ai(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(ai(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(ri(n[r],e))return!0;return!1}},Pp=zn(),Op=zn(),Dp={point:Gn,lineStart:Gn,lineEnd:Gn,polygonStart:function(){Dp.lineStart=pi,Dp.lineEnd=vi},polygonEnd:function(){Dp.lineStart=Dp.lineEnd=Dp.point=Gn,Pp.add(Vh(Op)),Op.reset()},result:function(){var t=Pp/2;return Pp.reset(),t}},Rp=1/0,jp=Rp,Lp=-Rp,qp=Lp,Bp={point:function(t,e){t<Rp&&(Rp=t),Lp<t&&(Lp=t),e<jp&&(jp=e),qp<e&&(qp=e)},lineStart:Gn,lineEnd:Gn,polygonStart:Gn,polygonEnd:Gn,result:function(){var t=[[Rp,jp],[Lp,qp]];return Lp=qp=-(jp=Rp=1/0),t}},Fp=0,Ip=0,Up=0,zp=0,Hp=0,Vp=0,Wp=0,Yp=0,Xp=0,Gp={point:yi,lineStart:mi,lineEnd:$i,polygonStart:function(){Gp.lineStart=wi,Gp.lineEnd=_i},polygonEnd:function(){Gp.point=yi,Gp.lineStart=mi,Gp.lineEnd=$i},result:function(){var t=Xp?[Wp/Xp,Yp/Xp]:Vp?[zp/Vp,Hp/Vp]:Up?[Fp/Up,Ip/Up]:[NaN,NaN];return Fp=Ip=Up=zp=Hp=Vp=Wp=Yp=Xp=0,t}};Si.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,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(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Uh)}},result:Gn};var Jp,Zp,Kp,Qp,td,ed=zn(),nd={point:Gn,lineStart:function(){nd.point=Mi},lineEnd:function(){Jp&&Ai(Zp,Kp),nd.point=Gn},polygonStart:function(){Jp=!0},polygonEnd:function(){Jp=null},result:function(){var t=+ed;return ed.reset(),t}};Ei.prototype={_radius:4.5,_circle:Ti(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,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(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Ti(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Pi.prototype={constructor:Pi,point:function(t,e){this.stream.point(t,e)},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 rd=16,id=Xh(30*Hh),od=Ni({point:function(t,e){this.stream.point(t*Hh,e*Hh)}}),ad=Vi(function(t){return ep(2/(1+t))});ad.invert=Wi(function(t){return 2*Yn(t/2)});var sd=Vi(function(t){return(t=Wn(t))&&t/Qh(t)});sd.invert=Wi(function(t){return t}),Yi.invert=function(t,e){return[t,2*Wh(Jh(e))-Fh]},Zi.invert=Zi,Qi.invert=Wi(Wh),eo.invert=function(t,e){var n,r=e,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(Vh(n)>qh&&0<--i);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},no.invert=Wi(Yn),ro.invert=Wi(function(t){return 2*Wh(t)}),io.invert=function(t,e){return[-e,2*Wh(Jh(t))-Fh]},po.prototype=co.prototype={constructor:po,count:function(){return this.eachAfter(uo)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},eachAfter:function(t){for(var e,n,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n]);for(;i=a.pop();)t(i);return this},eachBefore:function(t){for(var e,n,r=this,i=[r];r=i.pop();)if(t(r),e=r.children)for(n=e.length-1;0<=n;--n)i.push(e[n]);return this},sum:function(i){return this.eachAfter(function(t){for(var e=+i(t.data)||0,n=t.children,r=n&&n.length;0<=--r;)e+=n[r].value;t.value=e})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},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,n=[];return e.each(function(t){t!==e&&n.push({source:t.parent,target:t})}),n},copy:function(){return co(this).eachBefore(lo)}};var ud=Array.prototype.slice,cd={depth:-1},fd={};Fo.prototype=Object.create(po.prototype);var ld=(1+Math.sqrt(5))/2,hd=function e(o){function t(t,e,n,r,i){Uo(o,t,e,n,r,i)}return t.ratio=function(t){return e(1<(t=+t)?t:1)},t}(ld),pd=function e(p){function t(t,e,n,r,i){if((o=t._squarify)&&o.ratio===p)for(var o,a,s,u,c,f=-1,l=o.length,h=t.value;++f<l;){for(s=(a=o[f]).children,u=a.value=0,c=s.length;u<c;++u)a.value+=s[u].value;a.dice?Do(a,e,n,r,n+=(i-n)*a.value/h):Io(a,e,n,e+=(r-e)*a.value/h,i),h-=a.value}else t._squarify=o=Uo(p,t,e,n,r,i),o.ratio=p}return t.ratio=function(t){return e(1<(t=+t)?t:1)},t}(ld),dd=[].slice,gd={};Vo.prototype=Xo.prototype={constructor:Vo,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var e=dd.call(arguments,1);return e.push(t),++this._waiting,this._tasks.push(e),function o(e){if(!e._start)try{!function(t){for(;t._start=t._waiting&&t._active<t._size;){var e=t._ended+t._active,n=t._tasks[e],r=n.length-1,i=n[r];n[r]=function(n,r){return function(t,e){n._tasks[r]&&(--n._active,++n._ended,(n._tasks[r]=null)==n._error&&(null!=t?Wo(n,t):(n._data[r]=e,n._waiting?o(n):Yo(n))))}}(t,e),--t._waiting,++t._active,n=i.apply(null,n),t._tasks[e]&&(t._tasks[e]=n||gd)}}(e)}catch(t){if(e._tasks[e._ended+e._active-1])Wo(e,t);else if(!e._data)throw t}}(this),this},abort:function(){return null==this._error&&Wo(this,new Error("abort")),this},await:function(n){if("function"!=typeof n)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(t,e){n.apply(null,[t].concat(e))},Yo(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,Yo(this),this}};var vd=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(Go),yd=function t(o){function e(e,n){var r,i;return e=null==e?0:+e,n=null==n?1:+n,function(){var t;if(null!=r)t=r,r=null;else for(;r=2*o()-1,t=2*o()-1,!(i=r*r+t*t)||1<i;);return e+n*t*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(Go),md=function t(e){function n(){var t=yd.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Go),bd=function t(r){function e(n){return function(){for(var t=0,e=0;e<n;++e)t+=r();return t}}return e.source=t,e}(Go),xd=function t(n){function e(t){var e=bd.source(n)(t);return function(){return e()/t}}return e.source=t,e}(Go),$d=function t(e){function n(t){return function(){return-Math.log(1-e())/t}}return n.source=t,n}(Go),wd=Zo("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),_d=Zo("application/json",function(t){return JSON.parse(t.responseText)}),Cd=Zo("text/plain",function(t){return t.responseText}),kd=Zo("application/xml",function(t){var e=t.responseXML;if(!e)throw new Error("parse error");return e}),Sd=Ko("text/csv",Hl),Md=Ko("text/tab-separated-values",Gl),Ad=Array.prototype,Ed=Ad.map,Td=Ad.slice,Nd={name:"implicit"},Pd=[0,1],Od=new Date,Dd=new Date,Rd=ma(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Rd.every=function(n){return n=Math.floor(n),isFinite(n)&&0<n?1<n?ma(function(t){t.setTime(Math.floor(t/n)*n)},function(t,e){t.setTime(+t+e*n)},function(t,e){return(e-t)/n}):Rd:null};var jd=Rd.range,Ld=ma(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),qd=Ld.range,Bd=ma(function(t){t.setTime(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getMinutes()}),Fd=Bd.range,Id=ma(function(t){var e=6e4*t.getTimezoneOffset()%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),Ud=Id.range,zd=ma(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1}),Hd=zd.range,Vd=ba(0),Wd=ba(1),Yd=ba(2),Xd=ba(3),Gd=ba(4),Jd=ba(5),Zd=ba(6),Kd=Vd.range,Qd=Wd.range,tg=Yd.range,eg=Xd.range,ng=Gd.range,rg=Jd.range,ig=Zd.range,og=ma(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),ag=og.range,sg=ma(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});sg.every=function(n){return isFinite(n=Math.floor(n))&&0<n?ma(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e*n)}):null};var ug=sg.range,cg=ma(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getUTCMinutes()}),fg=cg.range,lg=ma(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),hg=lg.range,pg=ma(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}),dg=pg.range,gg=xa(0),vg=xa(1),yg=xa(2),mg=xa(3),bg=xa(4),xg=xa(5),$g=xa(6),wg=gg.range,_g=vg.range,Cg=yg.range,kg=mg.range,Sg=bg.range,Mg=xg.range,Ag=$g.range,Eg=ma(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),Tg=Eg.range,Ng=ma(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Ng.every=function(n){return isFinite(n=Math.floor(n))&&0<n?ma(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e*n)}):null};var Pg,Og=Ng.range,Dg={"-":"",_:" ",0:"0"},Rg=/^\s*\d+/,jg=/^%/,Lg=/[\\^$*+?|[\]().{}]/g;Ns({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 qg="%Y-%m-%dT%H:%M:%S.%LZ",Bg=Date.prototype.toISOString?function(t){return t.toISOString()}:F.utcFormat(qg),Fg=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:F.utcParse(qg),Ig=1e3,Ug=60*Ig,zg=60*Ug,Hg=24*zg,Vg=7*Hg,Wg=30*Hg,Yg=365*Hg,Xg=Rs("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Gg=Rs("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Jg=Rs("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Zg=Rs("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Kg=Rf(Yt(300,.5,0),Yt(-240,.5,1)),Qg=Rf(Yt(-100,.75,.35),Yt(80,1.5,.8)),tv=Rf(Yt(260,.75,.35),Yt(80,1.5,.8)),ev=Yt(),nv=js(Rs("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),rv=js(Rs("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),iv=js(Rs("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ov=js(Rs("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),av=Math.abs,sv=Math.atan2,uv=Math.cos,cv=Math.max,fv=Math.min,lv=Math.sin,hv=Math.sqrt,pv=1e-12,dv=Math.PI,gv=dv/2,vv=2*dv;Vs.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var yv=tu(Ws);Qs.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var mv=Array.prototype.slice,bv={draw:function(t,e){var n=Math.sqrt(e/dv);t.moveTo(n,0),t.arc(0,0,n,0,vv)}},xv={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},$v=Math.sqrt(1/3),wv=2*$v,_v={draw:function(t,e){var n=Math.sqrt(e/wv),r=n*$v;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},Cv=Math.sin(dv/10)/Math.sin(7*dv/10),kv=Math.sin(vv/10)*Cv,Sv=-Math.cos(vv/10)*Cv,Mv={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=kv*n,i=Sv*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=vv*o/5,s=Math.cos(a),u=Math.sin(a);t.lineTo(u*n,-s*n),t.lineTo(s*r-u*i,u*r+s*i)}t.closePath()}},Av={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},Ev=Math.sqrt(3),Tv={draw:function(t,e){var n=-Math.sqrt(e/(3*Ev));t.moveTo(0,2*n),t.lineTo(-Ev*n,-n),t.lineTo(Ev*n,-n),t.closePath()}},Nv=Math.sqrt(3)/2,Pv=1/Math.sqrt(12),Ov=3*(Pv/2+1),Dv={draw:function(t,e){var n=Math.sqrt(e/Ov),r=n/2,i=n*Pv,o=r,a=n*Pv+n,s=-o,u=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,u),t.lineTo(-.5*r-Nv*i,Nv*r+-.5*i),t.lineTo(-.5*o-Nv*a,Nv*o+-.5*a),t.lineTo(-.5*s-Nv*u,Nv*s+-.5*u),t.lineTo(-.5*r+Nv*i,-.5*i-Nv*r),t.lineTo(-.5*o+Nv*a,-.5*a-Nv*o),t.lineTo(-.5*s+Nv*u,-.5*u-Nv*s),t.closePath()}},Rv=[bv,xv,_v,Av,Mv,Tv,Dv];pu.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:hu(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:hu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},du.prototype={areaStart:lu,areaEnd:lu,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:hu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},gu.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:hu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},vu.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(0<n)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*a),this._beta*e[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var jv=function e(n){function t(t){return 1===n?new pu(t):new vu(t,n)}return t.beta=function(t){return e(+t)},t}(.85);mu.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:yu(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:yu(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Lv=function e(n){function t(t){return new mu(t,n)}return t.tension=function(t){return e(+t)},t}(0);bu.prototype={areaStart:lu,areaEnd:lu,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:yu(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var qv=function e(n){function t(t){return new bu(t,n)}return t.tension=function(t){return e(+t)},t}(0);xu.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(t,e){switch(t=+t,e=+e,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:yu(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Bv=function e(n){function t(t){return new xu(t,n)}return t.tension=function(t){return e(+t)},t}(0);wu.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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:$u(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Fv=function e(n){function t(t){return n?new wu(t,n):new mu(t,0)}return t.alpha=function(t){return e(+t)},t}(.5);_u.prototype={areaStart:lu,areaEnd:lu,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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:$u(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Iv=function e(n){function t(t){return n?new _u(t,n):new bu(t,0)}return t.alpha=function(t){return e(+t)},t}(.5);Cu.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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:$u(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Uv=function e(n){function t(t){return n?new Cu(t,n):new xu(t,0)}return t.alpha=function(t){return e(+t)},t}(.5);ku.prototype={areaStart:lu,areaEnd:lu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Tu.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:Eu(this,this._t0,Au(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Eu(this,Au(this,n=Mu(this,t,e)),n);break;default:Eu(this,this._t0,n=Mu(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Nu.prototype=Object.create(Tu.prototype)).point=function(t,e){Tu.prototype.point.call(this,e,t)},Pu.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},Ou.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Du(t),i=Du(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Ru.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(),0<=this._line&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},Hu.prototype={constructor:Hu,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else n=this._?(t=Xu(this._),e.P=null,(e.N=t).P=t.L=e,t):(e.P=e.N=null,this._=e,null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(Wu(this,n),n=(t=n).U),n.C=!1,r.C=!0,Yu(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(Yu(this,n),n=(t=n).U),n.C=!1,r.C=!0,Wu(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,a=t.R;if(n=o?a?Xu(a):o:a,i?i.L===t?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=t.C,((n.L=o).U=n)!==a?(i=n.U,n.U=t.U,t=n.R,i.L=t,(n.R=a).U=n):(n.U=i,t=(i=n).R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,Wu(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Yu(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Wu(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,Yu(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Wu(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Yu(this,i),t=this._;break}e.C=!0,i=(t=i).U}while(!t.C);t&&(t.C=!1)}}};var zv,Hv,Vv,Wv,Yv,Xv=[],Gv=[],Jv=1e-6,Zv=1e-12;cc.prototype={constructor:cc,polygons:function(){var n=this.edges;return this.cells.map(function(e){var t=e.halfedges.map(function(t){return tc(e,n[t])});return t.data=e.site.data,t})},triangles:function(){var h=[],p=this.edges;return this.cells.forEach(function(t,e){if(r=(n=t.halfedges).length)for(var n,r,i,o=t.site,a=-1,s=p[n[r-1]],u=s.left===o?s.right:s.left;++a<r;)i=u,u=(s=p[n[a]]).left===o?s.right:s.left,i&&u&&e<i.index&&e<u.index&&(f=i,l=u,((c=o)[0]-l[0])*(f[1]-c[1])-(c[0]-f[0])*(l[1]-c[1])<0)&&h.push([o.data,i.data,u.data]);var c,f,l}),h},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(a,s,t){for(var e,u,c=this,f=c._found||0,n=c.cells.length;!(u=c.cells[f]);)if(++f>=n)return null;for(var r=a-u.site[0],i=s-u.site[1],l=r*r+i*i;u=c.cells[e=f],f=null,u.halfedges.forEach(function(t){var e=c.edges[t],n=e.left;if(n!==u.site&&n||(n=e.right)){var r=a-n[0],i=s-n[1],o=r*r+i*i;o<l&&(l=o,f=n.index)}}),null!==f;);return c._found=e,null==t||l<=t*t?u.site:null}},lc.prototype={constructor:lc,scale:function(t){return 1===t?this:new lc(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new lc(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Kv=new lc(1,0,0);hc.prototype=lc.prototype,F.version="4.13.0",F.bisect=wc,F.bisectRight=wc,F.bisectLeft=_c,F.ascending=s,F.bisector=C,F.cross=function(t,e,n){var r,i,o,a,s=t.length,u=e.length,c=new Array(s*u);for(null==n&&(n=f),r=o=0;r<s;++r)for(a=t[r],i=0;i<u;++i,++o)c[o]=n(a,e[i]);return c},F.descending=function(t,e){return e<t?-1:t<e?1:t<=e?0:NaN},F.deviation=i,F.extent=t,F.histogram=function(){function e(t){var e,n,r=t.length,i=new Array(r);for(e=0;e<r;++e)i[e]=h(t[e],e,t);var o=p(i),a=o[0],s=o[1],u=d(i,a,s);Array.isArray(u)||(u=S(a,s,u),u=k(Math.ceil(a/u)*u,Math.floor(s/u)*u,u));for(var c=u.length;u[0]<=a;)u.shift(),--c;for(;u[c-1]>s;)u.pop(),--c;var f,l=new Array(c+1);for(e=0;e<=c;++e)(f=l[e]=[]).x0=0<e?u[e-1]:a,f.x1=e<c?u[e]:s;for(e=0;e<r;++e)a<=(n=i[e])&&n<=s&&l[wc(u,n,0,c)].push(t[e]);return l}var h=o,p=t,d=a;return e.value=function(t){return arguments.length?(h="function"==typeof t?t:n(t),e):h},e.domain=function(t){return arguments.length?(p="function"==typeof t?t:n([t[0],t[1]]),e):p},e.thresholds=function(t){return arguments.length?(d="function"==typeof t?t:Array.isArray(t)?n(kc.call(t)):n(t),e):d},e},F.thresholdFreedmanDiaconis=function(t,e,n){return t=Sc.call(t,c).sort(s),Math.ceil((n-e)/(2*(u(t,.75)-u(t,.25))*Math.pow(t.length,-1/3)))},F.thresholdScott=function(t,e,n){return Math.ceil((n-e)/(3.5*i(t)*Math.pow(t.length,-1/3)))},F.thresholdSturges=a,F.max=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n<=n)for(r=n;++o<i;)null!=(n=t[o])&&r<n&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n<=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&r<n&&(r=n);return r},F.mean=function(t,e){var n,r=t.length,i=r,o=-1,a=0;if(null==e)for(;++o<r;)isNaN(n=c(t[o]))?--i:a+=n;else for(;++o<r;)isNaN(n=c(e(t[o],o,t)))?--i:a+=n;if(i)return a/i},F.median=function(t,e){var n,r=t.length,i=-1,o=[];if(null==e)for(;++i<r;)isNaN(n=c(t[i]))||o.push(n);else for(;++i<r;)isNaN(n=c(e(t[i],i,t)))||o.push(n);return u(o.sort(s),.5)},F.merge=M,F.min=h,F.pairs=function(t,e){null==e&&(e=f);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return o},F.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},F.quantile=u,F.range=k,F.scan=function(t,e){if(n=t.length){var n,r,i=0,o=0,a=t[o];for(null==e&&(e=s);++i<n;)(e(r=t[i],a)<0||0!==e(a,a))&&(a=r,o=i);return 0===e(a,a)?o:void 0}},F.shuffle=function(t,e,n){for(var r,i,o=(null==n?t.length:n)-(e=null==e?0:+e);o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t},F.sum=function(t,e){var n,r=t.length,i=-1,o=0;if(null==e)for(;++i<r;)(n=+t[i])&&(o+=n);else for(;++i<r;)(n=+e(t[i],i,t))&&(o+=n);return o},F.ticks=v,F.tickIncrement=l,F.tickStep=S,F.transpose=e,F.variance=r,F.zip=function(){return e(arguments)},F.axisTop=function(t){return g(1,t)},F.axisRight=function(t){return g(2,t)},F.axisBottom=function(t){return g(3,t)},F.axisLeft=function(t){return g(4,t)},F.brush=function(){return Ze(Cl)},F.brushX=function(){return Ze(wl)},F.brushY=function(){return Ze(_l)},F.brushSelection=function(t){var e=t.__brush;return e?e.dim.output(e.selection):null},F.chord=function(){function e(r){var t,e,n,i,o,a,s=r.length,u=[],c=k(s),f=[],l=[],h=l.groups=new Array(s),p=new Array(s*s);for(t=0,o=-1;++o<s;){for(e=0,a=-1;++a<s;)e+=r[o][a];u.push(e),f.push(k(s)),t+=e}for(w&&c.sort(function(t,e){return w(u[t],u[e])}),_&&f.forEach(function(t,n){t.sort(function(t,e){return _(r[n][t],r[n][e])})}),i=(t=Rl(0,Dl-$*s)/t)?$:Dl/s,e=0,o=-1;++o<s;){for(n=e,a=-1;++a<s;){var d=c[o],g=f[d][a],v=r[d][g],y=e,m=e+=v*t;p[g*s+d]={index:d,subindex:g,startAngle:y,endAngle:m,value:v}}h[d]={index:d,startAngle:n,endAngle:e,value:u[d]},e+=i}for(o=-1;++o<s;)for(a=o-1;++a<s;){var b=p[a*s+o],x=p[o*s+a];(b.value||x.value)&&l.push(b.value<x.value?{source:x,target:b}:{source:b,target:x})}return C?l.sort(C):l}var $=0,w=null,_=null,C=null;return e.padAngle=function(t){return arguments.length?($=Rl(0,t),e):$},e.sortGroups=function(t){return arguments.length?(w=t,e):w},e.sortSubgroups=function(t){return arguments.length?(_=t,e):_},e.sortChords=function(t){return arguments.length?(null==t?C=null:(n=t,C=function(t,e){return n(t.source.value+t.target.value,e.source.value+e.target.value)})._=t,e):C&&C._;var n},e},F.ribbon=function(){function e(){var t,e=jl.call(arguments),n=h.apply(this,e),r=p.apply(this,e),i=+d.apply(this,(e[0]=n,e)),o=g.apply(this,e)-Ol,a=v.apply(this,e)-Ol,s=i*Tl(o),u=i*Nl(o),c=+d.apply(this,(e[0]=r,e)),f=g.apply(this,e)-Ol,l=v.apply(this,e)-Ol;if(y||(y=t=tn()),y.moveTo(s,u),y.arc(0,0,i,o,a),o===f&&a===l||(y.quadraticCurveTo(0,0,c*Tl(f),c*Nl(f)),y.arc(0,0,c,f,l)),y.quadraticCurveTo(0,0,s,u),y.closePath(),t)return y=null,t+""||null}var h=en,p=nn,d=rn,g=on,v=an,y=null;return e.radius=function(t){return arguments.length?(d="function"==typeof t?t:Ke(+t),e):d},e.startAngle=function(t){return arguments.length?(g="function"==typeof t?t:Ke(+t),e):g},e.endAngle=function(t){return arguments.length?(v="function"==typeof t?t:Ke(+t),e):v},e.source=function(t){return arguments.length?(h=t,e):h},e.target=function(t){return arguments.length?(p=t,e):p},e.context=function(t){return arguments.length?(y=null==t?null:t,e):y},e},F.nest=function(){function h(t,n,r,i){if(n>=g.length)return null!=p&&t.sort(p),null!=d?d(t):t;for(var e,o,a,s=-1,u=t.length,c=g[n++],f=un(),l=r();++s<u;)(a=f.get(e=c(o=t[s])+""))?a.push(o):f.set(e,[o]);return f.each(function(t,e){i(l,e,h(t,n,r,i))}),l}var p,d,e,g=[],a=[];return e={object:function(t){return h(t,0,cn,fn)},map:function(t){return h(t,0,ln,hn)},entries:function(t){return function n(t,r){if(++r>g.length)return t;var i,o=a[r-1];return null!=d&&r>=g.length?i=t.entries():(i=[],t.each(function(t,e){i.push({key:e,values:n(t,r)})})),null!=o?i.sort(function(t,e){return o(t.key,e.key)}):i}(h(t,0,ln,hn),0)},key:function(t){return g.push(t),e},sortKeys:function(t){return a[g.length-1]=t,e},sortValues:function(t){return p=t,e},rollup:function(t){return d=t,e}}},F.set=dn,F.map=un,F.keys=function(t){var e=[];for(var n in t)e.push(n);return e},F.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},F.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},F.color=At,F.rgb=Pt,F.hsl=Rt,F.lab=Bt,F.hcl=Vt,F.cubehelix=Yt,F.dispatch=N,F.drag=function(){function d(t){t.on("mousedown.drag",e).filter(v).on("touchstart.drag",i).on("touchmove.drag",o).on("touchend.drag touchcancel.drag",a).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(){if(!l&&h.apply(this,arguments)){var t=s("mouse",p.apply(this,arguments),pt,this,arguments);t&&(ut(F.event.view).on("mousemove.drag",n,!0).on("mouseup.drag",r,!0),yt(F.event.view),gt(),f=!1,u=F.event.clientX,c=F.event.clientY,t("start"))}}function n(){if(vt(),!f){var t=F.event.clientX-u,e=F.event.clientY-c;f=x<t*t+e*e}y.mouse("drag")}function r(){ut(F.event.view).on("mousemove.drag mouseup.drag",null),mt(F.event.view,f),vt(),y.mouse("end")}function i(){if(h.apply(this,arguments)){var t,e,n=F.event.changedTouches,r=p.apply(this,arguments),i=n.length;for(t=0;t<i;++t)(e=s(n[t].identifier,r,dt,this,arguments))&&(gt(),e("start"))}}function o(){var t,e,n=F.event.changedTouches,r=n.length;for(t=0;t<r;++t)(e=y[n[t].identifier])&&(vt(),e("drag"))}function a(){var t,e,n=F.event.changedTouches,r=n.length;for(l&&clearTimeout(l),l=setTimeout(function(){l=null},500),t=0;t<r;++t)(e=y[n[t].identifier])&&(gt(),e("end"))}function s(i,o,a,s,u){var c,f,l,h=a(o,i),p=m.copy();if(it(new xt(d,"beforestart",c,i,b,h[0],h[1],0,0,p),function(){return null!=(F.event.subject=c=g.apply(s,u))&&(f=c.x-h[0]||0,l=c.y-h[1]||0,!0)}))return function t(e){var n,r=h;switch(e){case"start":y[i]=t,n=b++;break;case"end":delete y[i],--b;case"drag":h=a(o,i),n=b}it(new xt(d,e,c,i,n,h[0]+f,h[1]+l,h[0]-r[0],h[1]-r[1],p),p.apply,p,[e,s,u])}}var u,c,f,l,h=$t,p=wt,g=_t,v=Ct,y={},m=N("start","drag","end"),b=0,x=0;return d.filter=function(t){return arguments.length?(h="function"==typeof t?t:bt(!!t),d):h},d.container=function(t){return arguments.length?(p="function"==typeof t?t:bt(t),d):p},d.subject=function(t){return arguments.length?(g="function"==typeof t?t:bt(t),d):g},d.touchable=function(t){return arguments.length?(v="function"==typeof t?t:bt(!!t),d):v},d.on=function(){var t=m.on.apply(m,arguments);return t===m?d:t},d.clickDistance=function(t){return arguments.length?(x=(t=+t)*t,d):Math.sqrt(x)},d},F.dragDisable=yt,F.dragEnable=mt,F.dsvFormat=vn,F.csvParse=Hl,F.csvParseRows=Vl,F.csvFormat=Wl,F.csvFormatRows=Yl,F.tsvParse=Gl,F.tsvParseRows=Jl,F.tsvFormat=Zl,F.tsvFormatRows=Kl,F.easeLinear=function(t){return+t},F.easeQuad=je,F.easeQuadIn=function(t){return t*t},F.easeQuadOut=function(t){return t*(2-t)},F.easeQuadInOut=je,F.easeCubic=Le,F.easeCubicIn=function(t){return t*t*t},F.easeCubicOut=function(t){return--t*t*t+1},F.easeCubicInOut=Le,F.easePoly=ol,F.easePolyIn=rl,F.easePolyOut=il,F.easePolyInOut=ol,F.easeSin=qe,F.easeSinIn=function(t){return 1-Math.cos(t*sl)},F.easeSinOut=function(t){return Math.sin(t*sl)},F.easeSinInOut=qe,F.easeExp=Be,F.easeExpIn=function(t){return Math.pow(2,10*t-10)},F.easeExpOut=function(t){return 1-Math.pow(2,-10*t)},F.easeExpInOut=Be,F.easeCircle=Fe,F.easeCircleIn=function(t){return 1-Math.sqrt(1-t*t)},F.easeCircleOut=function(t){return Math.sqrt(1- --t*t)},F.easeCircleInOut=Fe,F.easeBounce=Ie,F.easeBounceIn=function(t){return 1-Ie(1-t)},F.easeBounceOut=Ie,F.easeBounceInOut=function(t){return((t*=2)<=1?1-Ie(1-t):Ie(t-1)+1)/2},F.easeBack=ll,F.easeBackIn=cl,F.easeBackOut=fl,F.easeBackInOut=ll,F.easeElastic=dl,F.easeElasticIn=pl,F.easeElasticOut=dl,F.easeElasticInOut=gl,F.forceCenter=function(o,a){function e(){var t,e,n=s.length,r=0,i=0;for(t=0;t<n;++t)r+=(e=s[t]).x,i+=e.y;for(r=r/n-o,i=i/n-a,t=0;t<n;++t)(e=s[t]).x-=r,e.y-=i}var s;return null==o&&(o=0),null==a&&(a=0),e.initialize=function(t){s=t},e.x=function(t){return arguments.length?(o=+t,e):o},e.y=function(t){return arguments.length?(a=+t,e):a},e},F.forceCollide=function(r){function e(){for(var t,e,l,h,p,d,g,n=o.length,r=0;r<s;++r)for(e=_n(o,Sn,Mn).visitAfter(i),t=0;t<n;++t)l=o[t],d=a[l.index],g=d*d,h=l.x+l.vx,p=l.y+l.vy,e.visit(function(t,e,n,r,i){var o=t.data,a=t.r,s=d+a;if(!o)return h+s<e||r<h-s||p+s<n||i<p-s;if(o.index>l.index){var u=h-o.x-o.vx,c=p-o.y-o.vy,f=u*u+c*c;f<s*s&&(0===u&&(f+=(u=mn())*u),0===c&&(f+=(c=mn())*c),f=(s-(f=Math.sqrt(f)))/f*v,l.vx+=(u*=f)*(s=(a*=a)/(g+a)),l.vy+=(c*=f)*s,o.vx-=u*(s=1-s),o.vy-=c*s)}})}function i(t){if(t.data)return t.r=a[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function n(){if(o){var t,e,n=o.length;for(a=new Array(n),t=0;t<n;++t)e=o[t],a[e.index]=+r(e,t,o)}}var o,a,v=1,s=1;return"function"!=typeof r&&(r=yn(null==r?1:+r)),e.initialize=function(t){o=t,n()},e.iterations=function(t){return arguments.length?(s=+t,e):s},e.strength=function(t){return arguments.length?(v=+t,e):v},e.radius=function(t){return arguments.length?(r="function"==typeof t?t:yn(+t),n(),e):r},e},F.forceLink=function(l){function e(t){for(var e=0,n=l.length;e<g;++e)for(var r,i,o,a,s,u,c,f=0;f<n;++f)i=(r=l[f]).source,a=(o=r.target).x+o.vx-i.x-i.vx||mn(),s=o.y+o.vy-i.y-i.vy||mn(),a*=u=((u=Math.sqrt(a*a+s*s))-p[f])/u*t*h[f],s*=u,o.vx-=a*(c=d[f]),o.vy-=s*c,i.vx+=a*(c=1-c),i.vy+=s*c}function n(){if(s){var t,e,n=s.length,r=l.length,i=un(s,c);for(t=0,u=new Array(n);t<r;++t)(e=l[t]).index=t,"object"!=typeof e.source&&(e.source=En(i,e.source)),"object"!=typeof e.target&&(e.target=En(i,e.target)),u[e.source.index]=(u[e.source.index]||0)+1,u[e.target.index]=(u[e.target.index]||0)+1;for(t=0,d=new Array(r);t<r;++t)e=l[t],d[t]=u[e.source.index]/(u[e.source.index]+u[e.target.index]);h=new Array(r),o(),p=new Array(r),a()}}function o(){if(s)for(var t=0,e=l.length;t<e;++t)h[t]=+r(l[t],t,l)}function a(){if(s)for(var t=0,e=l.length;t<e;++t)p[t]=+i(l[t],t,l)}var h,p,s,u,d,c=An,r=function(t){return 1/Math.min(u[t.source.index],u[t.target.index])},i=yn(30),g=1;return null==l&&(l=[]),e.initialize=function(t){s=t,n()},e.links=function(t){return arguments.length?(l=t,n(),e):l},e.id=function(t){return arguments.length?(c=t,e):c},e.iterations=function(t){return arguments.length?(g=+t,e):g},e.strength=function(t){return arguments.length?(r="function"==typeof t?t:yn(+t),o(),e):r},e.distance=function(t){return arguments.length?(i="function"==typeof t?t:yn(+t),a(),e):i},e},F.forceManyBody=function(){function e(t){var e,n=a.length,r=_n(a,Tn,Nn).visitAfter(i);for(c=t,e=0;e<n;++e)u=a[e],r.visit(o)}function n(){if(a){var t,e,n=a.length;for(f=new Array(n),t=0;t<n;++t)e=a[t],f[e.index]=+r(e,t,a)}}function i(t){var e,n,r,i,o,a=0,s=0;if(t.length){for(r=i=o=0;o<4;++o)(e=t[o])&&(n=Math.abs(e.value))&&(a+=e.value,s+=n,r+=n*e.x,i+=n*e.y);t.x=r/s,t.y=i/s}else for((e=t).x=e.data.x,e.y=e.data.y;a+=f[e.data.index],e=e.next;);t.value=a}function o(t,e,n,r){if(!t.value)return!0;var i=t.x-u.x,o=t.y-u.y,a=r-e,s=i*i+o*o;if(a*a/p<s)return s<h&&(0===i&&(s+=(i=mn())*i),0===o&&(s+=(o=mn())*o),s<l&&(s=Math.sqrt(l*s)),u.vx+=i*t.value*c/s,u.vy+=o*t.value*c/s),!0;if(!(t.length||h<=s))for((t.data!==u||t.next)&&(0===i&&(s+=(i=mn())*i),0===o&&(s+=(o=mn())*o),s<l&&(s=Math.sqrt(l*s)));t.data!==u&&(a=f[t.data.index]*c/s,u.vx+=i*a,u.vy+=o*a),t=t.next;);}var a,u,c,f,r=yn(-30),l=1,h=1/0,p=.81;return e.initialize=function(t){a=t,n()},e.strength=function(t){return arguments.length?(r="function"==typeof t?t:yn(+t),n(),e):r},e.distanceMin=function(t){return arguments.length?(l=t*t,e):Math.sqrt(l)},e.distanceMax=function(t){return arguments.length?(h=t*t,e):Math.sqrt(h)},e.theta=function(t){return arguments.length?(p=t*t,e):Math.sqrt(p)},e},F.forceRadial=function(n,u,c){function e(t){for(var e=0,n=f.length;e<n;++e){var r=f[e],i=r.x-u||1e-6,o=r.y-c||1e-6,a=Math.sqrt(i*i+o*o),s=(h[e]-a)*l[e]*t/a;r.vx+=i*s,r.vy+=o*s}}function r(){if(f){var t,e=f.length;for(l=new Array(e),h=new Array(e),t=0;t<e;++t)h[t]=+n(f[t],t,f),l[t]=isNaN(h[t])?0:+i(f[t],t,f)}}var f,l,h,i=yn(.1);return"function"!=typeof n&&(n=yn(+n)),null==u&&(u=0),null==c&&(c=0),e.initialize=function(t){f=t,r()},e.strength=function(t){return arguments.length?(i="function"==typeof t?t:yn(+t),r(),e):i},e.radius=function(t){return arguments.length?(n="function"==typeof t?t:yn(+t),r(),e):n},e.x=function(t){return arguments.length?(u=+t,e):u},e.y=function(t){return arguments.length?(c=+t,e):c},e},F.forceSimulation=function(f){function t(){e(),p.call("tick",i),o<a&&(h.stop(),p.call("end",i))}function e(){var t,e,n=f.length;for(o+=(u-o)*s,l.each(function(t){t(o)}),t=0;t<n;++t)null==(e=f[t]).fx?e.x+=e.vx*=c:(e.x=e.fx,e.vx=0),null==e.fy?e.y+=e.vy*=c:(e.y=e.fy,e.vy=0)}function n(){for(var t,e=0,n=f.length;e<n;++e){if((t=f[e]).index=e,isNaN(t.x)||isNaN(t.y)){var r=10*Math.sqrt(e),i=e*eh;t.x=r*Math.cos(i),t.y=r*Math.sin(i)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function r(t){return t.initialize&&t.initialize(f),t}var i,o=1,a=.001,s=1-Math.pow(a,1/300),u=0,c=.6,l=un(),h=xe(t),p=N("tick","end");return null==f&&(f=[]),n(),i={tick:e,restart:function(){return h.restart(t),i},stop:function(){return h.stop(),i},nodes:function(t){return arguments.length?(f=t,n(),l.each(r),i):f},alpha:function(t){return arguments.length?(o=+t,i):o},alphaMin:function(t){return arguments.length?(a=+t,i):a},alphaDecay:function(t){return arguments.length?(s=+t,i):+s},alphaTarget:function(t){return arguments.length?(u=+t,i):u},velocityDecay:function(t){return arguments.length?(c=1-t,i):1-c},force:function(t,e){return 1<arguments.length?(null==e?l.remove(t):l.set(t,r(e)),i):l.get(t)},find:function(t,e,n){var r,i,o,a,s,u=0,c=f.length;for(null==n?n=1/0:n*=n,u=0;u<c;++u)(o=(r=t-(a=f[u]).x)*r+(i=e-a.y)*i)<n&&(s=a,n=o);return s},on:function(t,e){return 1<arguments.length?(p.on(t,e),i):p.on(t)}}},F.forceX=function(n){function e(t){for(var e,n=0,r=i.length;n<r;++n)(e=i[n]).vx+=(a[n]-e.x)*o[n]*t}function r(){if(i){var t,e=i.length;for(o=new Array(e),a=new Array(e),t=0;t<e;++t)o[t]=isNaN(a[t]=+n(i[t],t,i))?0:+s(i[t],t,i)}}var i,o,a,s=yn(.1);return"function"!=typeof n&&(n=yn(null==n?0:+n)),e.initialize=function(t){i=t,r()},e.strength=function(t){return arguments.length?(s="function"==typeof t?t:yn(+t),r(),e):s},e.x=function(t){return arguments.length?(n="function"==typeof t?t:yn(+t),r(),e):n},e},F.forceY=function(n){function e(t){for(var e,n=0,r=i.length;n<r;++n)(e=i[n]).vy+=(a[n]-e.y)*o[n]*t}function r(){if(i){var t,e=i.length;for(o=new Array(e),a=new Array(e),t=0;t<e;++t)o[t]=isNaN(a[t]=+n(i[t],t,i))?0:+s(i[t],t,i)}}var i,o,a,s=yn(.1);return"function"!=typeof n&&(n=yn(null==n?0:+n)),e.initialize=function(t){i=t,r()},e.strength=function(t){return arguments.length?(s="function"==typeof t?t:yn(+t),r(),e):s},e.y=function(t){return arguments.length?(n="function"==typeof t?t:yn(+t),r(),e):n},e},F.formatDefaultLocale=Bn,F.formatLocale=qn,F.formatSpecifier=Rn,F.precisionFixed=Fn,F.precisionPrefix=In,F.precisionRound=Un,F.geoArea=function(t){return ap.reset(),Qn(t,sp),2*ap},F.geoBounds=function(t){var e,n,r,i,o,a,s;if(dh=ph=-(lh=hh=1/0),bh=[],Qn(t,cp),n=bh.length){for(bh.sort(br),e=1,o=[r=bh[0]];e<n;++e)xr(r,(i=bh[e])[0])||xr(r,i[1])?(mr(r[0],i[1])>mr(r[0],r[1])&&(r[1]=i[1]),mr(i[0],r[1])>mr(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(s=mr(r[1],i[0]))>a&&(a=s,lh=i[0],ph=r[1])}return bh=xh=null,lh===1/0||hh===1/0?[[NaN,NaN],[NaN,NaN]]:[[lh,hh],[ph,dh]]},F.geoCentroid=function(t){$h=wh=_h=Ch=kh=Sh=Mh=Ah=Eh=Th=Nh=0,Qn(t,fp);var e=Eh,n=Th,r=Nh,i=e*e+n*n+r*r;return i<1e-12&&(e=Sh,n=Mh,r=Ah,wh<qh&&(e=_h,n=Ch,r=kh),(i=e*e+n*n+r*r)<1e-12)?[NaN,NaN]:[Yh(n,e)*zh,Yn(r/ep(i))*zh]},F.geoCircle=function(){function e(){var t=o.apply(this,arguments),e=a.apply(this,arguments)*Hh,n=s.apply(this,arguments)*Hh;return r=[],i=Dr(-t[0]*Hh,-t[1]*Hh,0).invert,Br(u,e,n,1),t={type:"Polygon",coordinates:[r]},r=i=null,t}var r,i,o=Nr([0,0]),a=Nr(90),s=Nr(6),u={point:function(t,e){r.push(t=i(t,e)),t[0]*=zh,t[1]*=zh}};return e.center=function(t){return arguments.length?(o="function"==typeof t?t:Nr([+t[0],+t[1]]),e):o},e.radius=function(t){return arguments.length?(a="function"==typeof t?t:Nr(+t),e):a},e.precision=function(t){return arguments.length?(s="function"==typeof t?t:Nr(+t),e):s},e},F.geoClipAntimeridian=_p,F.geoClipCircle=Jr,F.geoClipExtent=function(){var e,n,r,i=0,o=0,a=960,s=500;return r={stream:function(t){return e&&n===t?e:e=Zr(i,o,a,s)(n=t)},extent:function(t){return arguments.length?(i=+t[0][0],o=+t[0][1],a=+t[1][0],s=+t[1][1],e=n=null,r):[[i,o],[a,s]]}}},F.geoClipRectangle=Zr,F.geoContains=function(t,e){return(t&&Tp.hasOwnProperty(t.type)?Tp[t.type]:ri)(t,e)},F.geoDistance=ni,F.geoGraticule=li,F.geoGraticule10=function(){return li()()},F.geoInterpolate=function(t,e){var n=t[0]*Hh,r=t[1]*Hh,i=e[0]*Hh,o=e[1]*Hh,a=Xh(r),s=Qh(r),u=Xh(o),c=Qh(o),f=a*Xh(n),l=a*Qh(n),h=u*Xh(i),p=u*Qh(i),d=2*Yn(ep(Xn(o-r)+a*u*Xn(i-n))),g=Qh(d),v=d?function(t){var e=Qh(t*=d)/g,n=Qh(d-t)/g,r=n*f+e*h,i=n*l+e*p,o=n*s+e*c;return[Yh(i,r)*zh,Yh(o,ep(r*r+i*i))*zh]}:function(){return[n*zh,r*zh]};return v.distance=d,v},F.geoLength=ei,F.geoPath=function(e,n){function r(t){return t&&("function"==typeof a&&o.pointRadius(+a.apply(this,arguments)),Qn(t,i(o))),o.result()}var i,o,a=4.5;return r.area=function(t){return Qn(t,i(Dp)),Dp.result()},r.measure=function(t){return Qn(t,i(nd)),nd.result()},r.bounds=function(t){return Qn(t,i(Bp)),Bp.result()},r.centroid=function(t){return Qn(t,i(Gp)),Gp.result()},r.projection=function(t){return arguments.length?(i=null==t?(e=null,hi):(e=t).stream,r):e},r.context=function(t){return arguments.length?(o=null==t?(n=null,new Ei):new Si(n=t),"function"!=typeof a&&o.pointRadius(a),r):n},r.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(o.pointRadius(+t),+t),r):a},r.projection(e).context(n)},F.geoAlbers=Hi,F.geoAlbersUsa=function(){function n(t){var e=t[0],n=t[1];return r=null,a.point(e,n),r||(s.point(e,n),r)||(u.point(e,n),r)}function i(){return e=o=null,n}var e,o,a,s,u,r,c=Hi(),f=zi().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=zi().rotate([157,0]).center([-3,19.9]).parallels([8,18]),h={point:function(t,e){r=[t,e]}};return n.invert=function(t){var e=c.scale(),n=c.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(.12<=i&&i<.234&&-.425<=r&&r<-.214?f:.166<=i&&i<.234&&-.214<=r&&r<-.115?l:c).invert(t)},n.stream=function(t){return e&&o===t?e:(r=[c.stream(o=t),f.stream(t),l.stream(t)],i=r.length,e={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},n.precision=function(t){return arguments.length?(c.precision(t),f.precision(t),l.precision(t),i()):c.precision()},n.scale=function(t){return arguments.length?(c.scale(t),f.scale(.35*t),l.scale(t),n.translate(c.translate())):c.scale()},n.translate=function(t){if(!arguments.length)return c.translate();var e=c.scale(),n=+t[0],r=+t[1];return a=c.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(h),s=f.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+qh,r+.12*e+qh],[n-.214*e-qh,r+.234*e-qh]]).stream(h),u=l.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+qh,r+.166*e+qh],[n-.115*e-qh,r+.234*e-qh]]).stream(h),i()},n.fitExtent=function(t,e){return Di(n,t,e)},n.fitSize=function(t,e){return Ri(n,t,e)},n.fitWidth=function(t,e){return ji(n,t,e)},n.fitHeight=function(t,e){return Li(n,t,e)},n.scale(1070)},F.geoAzimuthalEqualArea=function(){return Bi(ad).scale(124.75).clipAngle(179.999)},F.geoAzimuthalEqualAreaRaw=ad,F.geoAzimuthalEquidistant=function(){return Bi(sd).scale(79.4188).clipAngle(179.999)},F.geoAzimuthalEquidistantRaw=sd,F.geoConicConformal=function(){return Ii(Ji).scale(109.5).parallels([30,30])},F.geoConicConformalRaw=Ji,F.geoConicEqualArea=zi,F.geoConicEqualAreaRaw=Ui,F.geoConicEquidistant=function(){return Ii(Ki).scale(131.154).center([0,13.9389])},F.geoConicEquidistantRaw=Ki,F.geoEquirectangular=function(){return Bi(Zi).scale(152.63)},F.geoEquirectangularRaw=Zi,F.geoGnomonic=function(){return Bi(Qi).scale(144.049).clipAngle(60)},F.geoGnomonicRaw=Qi,F.geoIdentity=function(){function e(){return o=a=null,s}var n,r,i,o,a,s,u=1,c=0,f=0,l=1,h=1,p=hi,d=null,g=hi;return s={stream:function(t){return o&&a===t?o:o=p(g(a=t))},postclip:function(t){return arguments.length?(g=t,d=n=r=i=null,e()):g},clipExtent:function(t){return arguments.length?(g=null==t?(d=n=r=i=null,hi):Zr(d=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),e()):null==d?null:[[d,n],[r,i]]},scale:function(t){return arguments.length?(p=to((u=+t)*l,u*h,c,f),e()):u},translate:function(t){return arguments.length?(p=to(u*l,u*h,c=+t[0],f=+t[1]),e()):[c,f]},reflectX:function(t){return arguments.length?(p=to(u*(l=t?-1:1),u*h,c,f),e()):l<0},reflectY:function(t){return arguments.length?(p=to(u*l,u*(h=t?-1:1),c,f),e()):h<0},fitExtent:function(t,e){return Di(s,t,e)},fitSize:function(t,e){return Ri(s,t,e)},fitWidth:function(t,e){return ji(s,t,e)},fitHeight:function(t,e){return Li(s,t,e)}}},F.geoProjection=Bi,F.geoProjectionMutator=Fi,F.geoMercator=function(){return Xi(Yi).scale(961/Uh)},F.geoMercatorRaw=Yi,F.geoNaturalEarth1=function(){return Bi(eo).scale(175.295)},F.geoNaturalEarth1Raw=eo,F.geoOrthographic=function(){return Bi(no).scale(249.5).clipAngle(90+qh)},F.geoOrthographicRaw=no,F.geoStereographic=function(){return Bi(ro).scale(250).clipAngle(142)},F.geoStereographicRaw=ro,F.geoTransverseMercator=function(){var t=Xi(io),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],2<t.length?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)},F.geoTransverseMercatorRaw=io,F.geoRotation=qr,F.geoStream=Qn,F.geoTransform=function(t){return{stream:Ni(t)}},F.cluster=function(){function e(e){var r,i=0;e.eachAfter(function(t){var e,n=t.children;n?(t.x=(e=n).reduce(ao,0)/e.length,t.y=1+n.reduce(so,0)):(t.x=r?i+=s(t,r):0,t.y=0,r=t)});var t=function(t){for(var e;e=t.children;)t=e[0];return t}(e),n=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),o=t.x-s(t,n)/2,a=n.x+s(n,t)/2;return e.eachAfter(f?function(t){t.x=(t.x-e.x)*u,t.y=(e.y-t.y)*c}:function(t){t.x=(t.x-o)/(a-o)*u,t.y=(1-(e.y?t.y/e.y:1))*c})}var s=oo,u=1,c=1,f=!1;return e.separation=function(t){return arguments.length?(s=t,e):s},e.size=function(t){return arguments.length?(f=!1,u=+t[0],c=+t[1],e):f?null:[u,c]},e.nodeSize=function(t){return arguments.length?(f=!0,u=+t[0],c=+t[1],e):f?[u,c]:null},e},F.hierarchy=co,F.pack=function(){function e(t){return t.x=r/2,t.y=i/2,n?t.eachBefore(To(n)).eachAfter(No(o,.5)).eachBefore(Po(1)):t.eachBefore(To(Eo)).eachAfter(No(Mo,1)).eachAfter(No(o,t.r/Math.min(r,i))).eachBefore(Po(Math.min(r,i)/(2*t.r))),t}var n=null,r=1,i=1,o=Mo;return e.radius=function(t){return arguments.length?(n=null==t?null:So(t),e):n},e.size=function(t){return arguments.length?(r=+t[0],i=+t[1],e):[r,i]},e.padding=function(t){return arguments.length?(o="function"==typeof t?t:Ao(+t),e):o},e},F.packSiblings=function(t){return ko(t),t},F.packEnclose=go,F.partition=function(){function e(t){var o,a,e=t.height+1;return t.x0=t.y0=s,t.x1=n,t.y1=r/e,t.eachBefore((o=r,a=e,function(t){t.children&&Do(t,t.x0,o*(t.depth+1)/a,t.x1,o*(t.depth+2)/a);var e=t.x0,n=t.y0,r=t.x1-s,i=t.y1-s;r<e&&(e=r=(e+r)/2),i<n&&(n=i=(n+i)/2),t.x0=e,t.y0=n,t.x1=r,t.y1=i})),i&&t.eachBefore(Oo),t}var n=1,r=1,s=0,i=!1;return e.round=function(t){return arguments.length?(i=!!t,e):i},e.size=function(t){return arguments.length?(n=+t[0],r=+t[1],e):[n,r]},e.padding=function(t){return arguments.length?(s=+t,e):s},e},F.stratify=function(){function e(t){var e,n,r,i,o,a,s,u=t.length,c=new Array(u),f={};for(n=0;n<u;++n)e=t[n],o=c[n]=new po(e),null!=(a=l(e,n,t))&&(a+="")&&(f[s="$"+(o.id=a)]=s in f?fd:o);for(n=0;n<u;++n)if(o=c[n],null!=(a=h(t[n],n,t))&&(a+="")){if(!(i=f["$"+a]))throw new Error("missing: "+a);if(i===fd)throw new Error("ambiguous: "+a);i.children?i.children.push(o):i.children=[o],o.parent=i}else{if(r)throw new Error("multiple roots");r=o}if(!r)throw new Error("no root");if(r.parent=cd,r.eachBefore(function(t){t.depth=t.parent.depth+1,--u}).eachBefore(ho),r.parent=null,0<u)throw new Error("cycle");return r}var l=Ro,h=jo;return e.id=function(t){return arguments.length?(l=So(t),e):l},e.parentId=function(t){return arguments.length?(h=So(t),e):h},e},F.tree=function(){function e(u){var t=function(t){for(var e,n,r,i,o,a=new Fo(u,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;0<=i;--i)s.push(n=e.children[i]=new Fo(r[i],i)),n.parent=e;return(a.parent=new Fo(null,0)).children=[a],a}();if(t.eachAfter(c),t.parent.m=-t.z,t.eachBefore(f),d)u.eachBefore(l);else{var e=u,n=u,r=u;u.eachBefore(function(t){t.x<e.x&&(e=t),t.x>n.x&&(n=t),t.depth>r.depth&&(r=t)});var i=e===n?1:b(e,n)/2,o=i-e.x,a=h/(n.x+i+o),s=p/(r.depth||1);u.eachBefore(function(t){t.x=(t.x+o)*a,t.y=t.depth*s})}return u}function c(a){var t=a.children,e=a.parent.children,n=a.i?e[a.i-1]:null;if(t){!function(t){for(var e,n=0,r=0,i=a.children,o=i.length;0<=--o;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}();var r=(t[0].z+t[t.length-1].z)/2;n?(a.z=n.z+b(a._,n._),a.m=a.z-r):a.z=r}else n&&(a.z=n.z+b(a._,n._));a.parent.A=function(t,e,n){if(e){for(var r,i=t,o=t,a=e,s=i.parent.children[0],u=i.m,c=o.m,f=a.m,l=s.m;a=Bo(a),i=qo(i),a&&i;)s=qo(s),(o=Bo(o)).a=t,0<(r=a.z+f-i.z-u+b(a._,i._))&&(y=t,m=n,h=(v=a).a.parent===y.parent?v.a:m,void 0,g=(d=r)/((p=t).i-h.i),p.c-=g,p.s+=d,h.c+=g,p.z+=d,p.m+=d,u+=r,c+=r),f+=a.m,u+=i.m,l+=s.m,c+=o.m;a&&!Bo(o)&&(o.t=a,o.m+=f-c),i&&!qo(s)&&(s.t=i,s.m+=u-l,n=t)}var h,p,d,g,v,y,m;return n}(a,n,a.parent.A||e[0])}function f(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=h,t.y=t.depth*p}var b=Lo,h=1,p=1,d=null;return e.separation=function(t){return arguments.length?(b=t,e):b},e.size=function(t){return arguments.length?(d=!1,h=+t[0],p=+t[1],e):d?null:[h,p]},e.nodeSize=function(t){return arguments.length?(d=!0,h=+t[0],p=+t[1],e):d?[h,p]:null},e},F.treemap=function(){function e(t){return t.x0=t.y0=0,t.x1=i,t.y1=o,t.eachBefore(n),s=[0],r&&t.eachBefore(Oo),t}function n(t){var e=s[t.depth],n=t.x0+e,r=t.y0+e,i=t.x1-e,o=t.y1-e;i<n&&(n=i=(n+i)/2),o<r&&(r=o=(r+o)/2),t.x0=n,t.y0=r,t.x1=i,t.y1=o,t.children&&(e=s[t.depth+1]=u(t)/2,n+=h(t)-e,r+=c(t)-e,(i-=f(t)-e)<n&&(n=i=(n+i)/2),(o-=l(t)-e)<r&&(r=o=(r+o)/2),a(t,n,r,i,o))}var a=hd,r=!1,i=1,o=1,s=[0],u=Mo,c=Mo,f=Mo,l=Mo,h=Mo;return e.round=function(t){return arguments.length?(r=!!t,e):r},e.size=function(t){return arguments.length?(i=+t[0],o=+t[1],e):[i,o]},e.tile=function(t){return arguments.length?(a=So(t),e):a},e.padding=function(t){return arguments.length?e.paddingInner(t).paddingOuter(t):e.paddingInner()},e.paddingInner=function(t){return arguments.length?(u="function"==typeof t?t:Ao(+t),e):u},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?(c="function"==typeof t?t:Ao(+t),e):c},e.paddingRight=function(t){return arguments.length?(f="function"==typeof t?t:Ao(+t),e):f},e.paddingBottom=function(t){return arguments.length?(l="function"==typeof t?t:Ao(+t),e):l},e.paddingLeft=function(t){return arguments.length?(h="function"==typeof t?t:Ao(+t),e):h},e},F.treemapBinary=function(t,e,n,r,i){var o,a,m=t.children,s=m.length,b=new Array(s+1);for(b[0]=a=o=0;o<s;++o)b[o+1]=a+=m[o].value;!function t(e,n,r,i,o,a,s){if(n-1<=e){var u=m[e];return u.x0=i,u.y0=o,u.x1=a,void(u.y1=s)}for(var c=b[e],f=r/2+c,l=e+1,h=n-1;l<h;){var p=l+h>>>1;b[p]<f?l=p+1:h=p}f-b[l-1]<b[l]-f&&e+1<l&&--l;var d=b[l]-c,g=r-d;if(s-o<a-i){var v=(i*g+a*d)/r;t(e,l,d,i,o,v,s),t(l,n,g,v,o,a,s)}else{var y=(o*g+s*d)/r;t(e,l,d,i,o,a,y),t(l,n,g,i,y,a,s)}}(0,s,t.value,e,n,r,i)},F.treemapDice=Do,F.treemapSlice=Io,F.treemapSliceDice=function(t,e,n,r,i){(1&t.depth?Io:Do)(t,e,n,r,i)},F.treemapSquarify=hd,F.treemapResquarify=pd,F.interpolate=ue,F.interpolateArray=re,F.interpolateBasis=Jt,F.interpolateBasisClosed=Zt,F.interpolateDate=ie,F.interpolateNumber=oe,F.interpolateObject=ae,F.interpolateRound=ce,F.interpolateString=se,F.interpolateTransformCss=Mf,F.interpolateTransformSvg=Af,F.interpolateZoom=pe,F.interpolateRgb=xf,F.interpolateRgbBasis=$f,F.interpolateRgbBasisClosed=wf,F.interpolateHsl=Tf,F.interpolateHslLong=Nf,F.interpolateLab=function(e,t){var n=ee((e=Bt(e)).l,(t=Bt(t)).l),r=ee(e.a,t.a),i=ee(e.b,t.b),o=ee(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=i(t),e.opacity=o(t),e+""}},F.interpolateHcl=Pf,F.interpolateHclLong=Of,F.interpolateCubehelix=Df,F.interpolateCubehelixLong=Rf,F.quantize=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n},F.path=tn,F.polygonArea=function(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[1]*i[0]-e[0]*i[1];return o/2},F.polygonCentroid=function(t){for(var e,n,r=-1,i=t.length,o=0,a=0,s=t[i-1],u=0;++r<i;)e=s,s=t[r],u+=n=e[0]*s[1]-s[0]*e[1],o+=(e[0]+s[0])*n,a+=(e[1]+s[1])*n;return[o/(u*=3),a/u]},F.polygonHull=function(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e<n;++e)r[e]=[+t[e][0],+t[e][1],e];for(r.sort(zo),e=0;e<n;++e)i[e]=[r[e][0],-r[e][1]];var o=Ho(r),a=Ho(i),s=a[0]===o[0],u=a[a.length-1]===o[o.length-1],c=[];for(e=o.length-1;0<=e;--e)c.push(t[r[o[e]][2]]);for(e=+s;e<a.length-u;++e)c.push(t[r[a[e]][2]]);return c},F.polygonContains=function(t,e){for(var n,r,i=t.length,o=t[i-1],a=e[0],s=e[1],u=o[0],c=o[1],f=!1,l=0;l<i;++l)n=(o=t[l])[0],(r=o[1])>s!=s<c&&a<(u-n)*(s-r)/(c-r)+n&&(f=!f),u=n,c=r;return f},F.polygonLength=function(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],s=o[1],u=0;++r<i;)e=a,n=s,e-=a=(o=t[r])[0],n-=s=o[1],u+=Math.sqrt(e*e+n*n);return u},F.quadtree=_n,F.queue=Xo,F.randomUniform=vd,F.randomNormal=yd,F.randomLogNormal=md,F.randomBates=xd,F.randomIrwinHall=bd,F.randomExponential=$d,F.request=Jo,F.html=wd,F.json=_d,F.text=Cd,F.xml=kd,F.csv=Sd,F.tsv=Md,F.scaleBand=ta,F.scalePoint=function(){return function t(e){var n=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return t(n())},e}(ta().paddingInner(1))},F.scaleIdentity=function t(){function e(t){return+t}var n=[0,1];return(e.invert=e).domain=e.range=function(t){return arguments.length?(n=Ed.call(t,na),e):n.slice()},e.copy=function(){return t().domain(n)},ua(e)},F.scaleLinear=function t(){var e=sa(ra,oe);return e.copy=function(){return aa(e,t())},ua(e)},F.scaleLog=function t(){function e(){return d=da(p),g=pa(p),h()[0]<0&&(d=ga(d),g=ga(g)),i}var i=sa(fa,la).domain([1,10]),h=i.domain,p=10,d=da(10),g=pa(10);return i.base=function(t){return arguments.length?(p=+t,e()):p},i.domain=function(t){return arguments.length?(h(t),e()):h()},i.ticks=function(t){var e,n=h(),r=n[0],i=n[n.length-1];(e=i<r)&&(u=r,r=i,i=u);var o,a,s,u=d(r),c=d(i),f=null==t?10:+t,l=[];if(!(p%1)&&c-u<f){if(u=Math.round(u)-1,c=Math.round(c)+1,0<r){for(;u<c;++u)for(a=1,o=g(u);a<p;++a)if(!((s=o*a)<r)){if(i<s)break;l.push(s)}}else for(;u<c;++u)for(a=p-1,o=g(u);1<=a;--a)if(!((s=o*a)<r)){if(i<s)break;l.push(s)}}else l=v(u,c,Math.min(c-u,f)).map(g);return e?l.reverse():l},i.tickFormat=function(t,n){if(null==n&&(n=10===p?".0e":","),"function"!=typeof n&&(n=F.format(n)),t===1/0)return n;null==t&&(t=10);var r=Math.max(1,p*t/i.ticks().length);return function(t){var e=t/g(Math.round(d(t)));return e*p<p-.5&&(e*=p),e<=r?n(t):""}},i.nice=function(){return h(ca(h(),{floor:function(t){return g(Math.floor(d(t)))},ceil:function(t){return g(Math.ceil(d(t)))}}))},i.copy=function(){return aa(i,t().base(p))},i},F.scaleOrdinal=Qo,F.scaleImplicit=Nd,F.scalePow=ya,F.scaleSqrt=function(){return ya().exponent(.5)},F.scaleQuantile=function t(){function i(){var t=0,e=Math.max(1,r.length);for(a=new Array(e-1);++t<e;)a[t-1]=u(o,t/e);return n}function n(t){if(!isNaN(t=+t))return r[wc(a,t)]}var o=[],r=[],a=[];return n.invertExtent=function(t){var e=r.indexOf(t);return e<0?[NaN,NaN]:[0<e?a[e-1]:o[0],e<a.length?a[e]:o[o.length-1]]},n.domain=function(t){if(!arguments.length)return o.slice();o=[];for(var e,n=0,r=t.length;n<r;++n)null==(e=t[n])||isNaN(e=+e)||o.push(e);return o.sort(s),i()},n.range=function(t){return arguments.length?(r=Td.call(t),i()):r.slice()},n.quantiles=function(){return a.slice()},n.copy=function(){return t().domain(o).range(r)},n},F.scaleQuantize=function t(){function e(t){if(t<=t)return s[wc(a,t,0,o)]}function n(){var t=-1;for(a=new Array(o);++t<o;)a[t]=((t+1)*i-(t-o)*r)/(o+1);return e}var r=0,i=1,o=1,a=[.5],s=[0,1];return e.domain=function(t){return arguments.length?(r=+t[0],i=+t[1],n()):[r,i]},e.range=function(t){return arguments.length?(o=(s=Td.call(t)).length-1,n()):s.slice()},e.invertExtent=function(t){var e=s.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,a[0]]:o<=e?[a[o-1],i]:[a[e-1],a[e]]},e.copy=function(){return t().domain([r,i]).range(s)},ua(e)},F.scaleThreshold=function t(){function e(t){if(t<=t)return r[wc(n,t,0,i)]}var n=[.5],r=[0,1],i=1;return e.domain=function(t){return arguments.length?(n=Td.call(t),i=Math.min(n.length,r.length-1),e):n.slice()},e.range=function(t){return arguments.length?(r=Td.call(t),i=Math.min(n.length,r.length-1),e):r.slice()},e.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]},e.copy=function(){return t().domain(n).range(r)},e},F.scaleTime=function(){return Ds(sg,og,Vd,zd,Id,Bd,Ld,Rd,F.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},F.scaleUtc=function(){return Ds(Ng,Eg,gg,pg,lg,cg,Ld,Rd,F.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},F.schemeCategory10=Xg,F.schemeCategory20b=Gg,F.schemeCategory20c=Jg,F.schemeCategory20=Zg,F.interpolateCubehelixDefault=Kg,F.interpolateRainbow=function(t){(t<0||1<t)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return ev.h=360*t-100,ev.s=1.5-1.5*e,ev.l=.8-.9*e,ev+""},F.interpolateWarm=Qg,F.interpolateCool=tv,F.interpolateViridis=nv,F.interpolateMagma=rv,F.interpolateInferno=iv,F.interpolatePlasma=ov,F.scaleSequential=function t(n){function e(t){var e=(t-r)/(i-r);return n(o?Math.max(0,Math.min(1,e)):e)}var r=0,i=1,o=!1;return e.domain=function(t){return arguments.length?(r=+t[0],i=+t[1],e):[r,i]},e.clamp=function(t){return arguments.length?(o=!!t,e):o},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return t(n).domain([r,i]).clamp(o)},ua(e)},F.create=function(t){return ut(x(t).call(document.documentElement))},F.creator=x,F.local=ct,F.matcher=Lc,F.mouse=pt,F.namespace=b,F.namespaces=Oc,F.clientPoint=ht,F.select=ut,F.selectAll=function(t){return"string"==typeof t?new at([document.querySelectorAll(t)],[document.documentElement]):new at([null==t?[]:t],Bc)},F.selection=st,F.selector=w,F.selectorAll=P,F.style=B,F.touch=dt,F.touches=function(t,e){null==e&&(e=lt().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n<r;++n)i[n]=ht(t,e[n]);return i},F.window=q,F.customEvent=it,F.arc=function(){function e(){var t,e,n,r,i,o,a,s,u=+H.apply(this,arguments),c=+V.apply(this,arguments),f=X.apply(this,arguments)-gv,l=G.apply(this,arguments)-gv,h=av(l-f),p=f<l;if(Z||(Z=t=tn()),c<u&&(e=c,c=u,u=e),pv<c)if(vv-pv<h)Z.moveTo(c*uv(f),c*lv(f)),Z.arc(0,0,c,f,l,!p),pv<u&&(Z.moveTo(u*uv(l),u*lv(l)),Z.arc(0,0,u,l,f,p));else{var d,g,v=f,y=l,m=f,b=l,x=h,$=h,w=J.apply(this,arguments)/2,_=pv<w&&(Y?+Y.apply(this,arguments):hv(u*u+c*c)),C=fv(av(c-u)/2,+W.apply(this,arguments)),k=C,S=C;if(pv<_){var M=qs(_/u*lv(w)),A=qs(_/c*lv(w));(x-=2*M)>pv?(m+=M*=p?1:-1,b-=M):(x=0,m=b=(f+l)/2),($-=2*A)>pv?(v+=A*=p?1:-1,y-=A):($=0,v=y=(f+l)/2)}var E=c*uv(v),T=c*lv(v),N=u*uv(b),P=u*lv(b);if(pv<C){var O=c*uv(y),D=c*lv(y),R=u*uv(m),j=u*lv(m);if(h<dv){var L=pv<x?[E+(s=((o=N-O)*(T-D)-(a=P-D)*(E-O))/(a*(r=R-E)-o*(i=j-T)))*r,T+s*i]:[N,P],q=E-L[0],B=T-L[1],F=O-L[0],I=D-L[1],U=1/lv((1<(n=(q*F+B*I)/(hv(q*q+B*B)*hv(F*F+I*I)))?0:n<-1?dv:Math.acos(n))/2),z=hv(L[0]*L[0]+L[1]*L[1]);k=fv(C,(u-z)/(U-1)),S=fv(C,(c-z)/(U+1))}}pv<$?pv<S?(d=Hs(R,j,E,T,c,S,p),g=Hs(O,D,N,P,c,S,p),Z.moveTo(d.cx+d.x01,d.cy+d.y01),S<C?Z.arc(d.cx,d.cy,S,sv(d.y01,d.x01),sv(g.y01,g.x01),!p):(Z.arc(d.cx,d.cy,S,sv(d.y01,d.x01),sv(d.y11,d.x11),!p),Z.arc(0,0,c,sv(d.cy+d.y11,d.cx+d.x11),sv(g.cy+g.y11,g.cx+g.x11),!p),Z.arc(g.cx,g.cy,S,sv(g.y11,g.x11),sv(g.y01,g.x01),!p))):(Z.moveTo(E,T),Z.arc(0,0,c,v,y,!p)):Z.moveTo(E,T),pv<u&&pv<x?pv<k?(d=Hs(N,P,O,D,u,-k,p),g=Hs(E,T,R,j,u,-k,p),Z.lineTo(d.cx+d.x01,d.cy+d.y01),k<C?Z.arc(d.cx,d.cy,k,sv(d.y01,d.x01),sv(g.y01,g.x01),!p):(Z.arc(d.cx,d.cy,k,sv(d.y01,d.x01),sv(d.y11,d.x11),!p),Z.arc(0,0,u,sv(d.cy+d.y11,d.cx+d.x11),sv(g.cy+g.y11,g.cx+g.x11),p),Z.arc(g.cx,g.cy,k,sv(g.y11,g.x11),sv(g.y01,g.x01),!p))):Z.arc(0,0,u,b,m,p):Z.lineTo(N,P)}else Z.moveTo(0,0);if(Z.closePath(),t)return Z=null,t+""||null}var H=Bs,V=Fs,W=Ls(0),Y=null,X=Is,G=Us,J=zs,Z=null;return e.centroid=function(){var t=(+H.apply(this,arguments)+ +V.apply(this,arguments))/2,e=(+X.apply(this,arguments)+ +G.apply(this,arguments))/2-dv/2;return[uv(e)*t,lv(e)*t]},e.innerRadius=function(t){return arguments.length?(H="function"==typeof t?t:Ls(+t),e):H},e.outerRadius=function(t){return arguments.length?(V="function"==typeof t?t:Ls(+t),e):V},e.cornerRadius=function(t){return arguments.length?(W="function"==typeof t?t:Ls(+t),e):W},e.padRadius=function(t){return arguments.length?(Y=null==t?null:"function"==typeof t?t:Ls(+t),e):Y},e.startAngle=function(t){return arguments.length?(X="function"==typeof t?t:Ls(+t),e):X},e.endAngle=function(t){return arguments.length?(G="function"==typeof t?t:Ls(+t),e):G},e.padAngle=function(t){return arguments.length?(J="function"==typeof t?t:Ls(+t),e):J},e.context=function(t){return arguments.length?(Z=null==t?null:t,e):Z},e},F.area=Js,F.line=Gs,F.pie=function(){function e(n){var t,e,r,i,o,a=n.length,s=0,u=new Array(a),c=new Array(a),f=+y.apply(this,arguments),l=Math.min(vv,Math.max(-vv,m.apply(this,arguments)-f)),h=Math.min(Math.abs(l)/a,b.apply(this,arguments)),p=h*(l<0?-1:1);for(t=0;t<a;++t)0<(o=c[u[t]=t]=+d(n[t],t,n))&&(s+=o);for(null!=g?u.sort(function(t,e){return g(c[t],c[e])}):null!=v&&u.sort(function(t,e){return v(n[t],n[e])}),t=0,r=s?(l-a*p)/s:0;t<a;++t,f=i)e=u[t],i=f+(0<(o=c[e])?o*r:0)+p,c[e]={data:n[e],index:t,value:o,startAngle:f,endAngle:i,padAngle:h};return c}var d=Ks,g=Zs,v=null,y=Ls(0),m=Ls(vv),b=Ls(0);return e.value=function(t){return arguments.length?(d="function"==typeof t?t:Ls(+t),e):d},e.sortValues=function(t){return arguments.length?(g=t,v=null,e):g},e.sort=function(t){return arguments.length?(v=t,g=null,e):v},e.startAngle=function(t){return arguments.length?(y="function"==typeof t?t:Ls(+t),e):y},e.endAngle=function(t){return arguments.length?(m="function"==typeof t?t:Ls(+t),e):m},e.padAngle=function(t){return arguments.length?(b="function"==typeof t?t:Ls(+t),e):b},e},F.areaRadial=ru,F.radialArea=ru,F.lineRadial=nu,F.radialLine=nu,F.pointRadial=iu,F.linkHorizontal=function(){return su(uu)},F.linkVertical=function(){return su(cu)},F.linkRadial=function(){var t=su(fu);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},F.symbol=function(){function e(){var t;if(i||(i=t=tn()),n.apply(this,arguments).draw(i,+r.apply(this,arguments)),t)return i=null,t+""||null}var n=Ls(bv),r=Ls(64),i=null;return e.type=function(t){return arguments.length?(n="function"==typeof t?t:Ls(t),e):n},e.size=function(t){return arguments.length?(r="function"==typeof t?t:Ls(+t),e):r},e.context=function(t){return arguments.length?(i=null==t?null:t,e):i},e},F.symbols=Rv,F.symbolCircle=bv,F.symbolCross=xv,F.symbolDiamond=_v,F.symbolSquare=Av,F.symbolStar=Mv,F.symbolTriangle=Tv,F.symbolWye=Dv,F.curveBasisClosed=function(t){return new du(t)},F.curveBasisOpen=function(t){return new gu(t)},F.curveBasis=function(t){return new pu(t)},F.curveBundle=jv,F.curveCardinalClosed=qv,F.curveCardinalOpen=Bv,F.curveCardinal=Lv,F.curveCatmullRomClosed=Iv,F.curveCatmullRomOpen=Uv,F.curveCatmullRom=Fv,F.curveLinearClosed=function(t){return new ku(t)},F.curveLinear=Ws,F.curveMonotoneX=function(t){return new Tu(t)},F.curveMonotoneY=function(t){return new Nu(t)},F.curveNatural=function(t){return new Ou(t)},F.curveStep=function(t){return new Ru(t,.5)},F.curveStepAfter=function(t){return new Ru(t,1)},F.curveStepBefore=function(t){return new Ru(t,0)},F.stack=function(){function e(t){var e,n,r=l.apply(this,arguments),i=t.length,o=r.length,a=new Array(o);for(e=0;e<o;++e){for(var s,u=r[e],c=a[e]=new Array(i),f=0;f<i;++f)c[f]=s=[0,+d(t[f],u,f,t)],s.data=t[f];c.key=u}for(e=0,n=h(a);e<o;++e)a[n[e]].index=e;return p(a,n),a}var l=Ls([]),h=Lu,p=ju,d=qu;return e.keys=function(t){return arguments.length?(l="function"==typeof t?t:Ls(mv.call(t)),e):l},e.value=function(t){return arguments.length?(d="function"==typeof t?t:Ls(+t),e):d},e.order=function(t){return arguments.length?(h=null==t?Lu:"function"==typeof t?t:Ls(mv.call(t)),e):h},e.offset=function(t){return arguments.length?(p=null==t?ju:t,e):p},e},F.stackOffsetExpand=function(t,e){if(0<(r=t.length)){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}ju(t,e)}},F.stackOffsetDiverging=function(t,e){if(1<(s=t.length))for(var n,r,i,o,a,s,u=0,c=t[e[0]].length;u<c;++u)for(o=a=0,n=0;n<s;++n)0<=(i=(r=t[e[n]][u])[1]-r[0])?(r[0]=o,r[1]=o+=i):r[0]=i<0?(r[1]=a,a+=i):o},F.stackOffsetNone=ju,F.stackOffsetSilhouette=function(t,e){if(0<(n=t.length)){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=t[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}ju(t,e)}},F.stackOffsetWiggle=function(t,e){if(0<(i=t.length)&&0<(r=(n=t[e[0]]).length)){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,u=0,c=0;s<i;++s){for(var f=t[e[s]],l=f[a][1]||0,h=(l-(f[a-1][1]||0))/2,p=0;p<s;++p){var d=t[e[p]];h+=(d[a][1]||0)-(d[a-1][1]||0)}u+=l,c+=h*l}n[a-1][1]+=n[a-1][0]=o,u&&(o-=c/u)}n[a-1][1]+=n[a-1][0]=o,ju(t,e)}},F.stackOrderAscending=Bu,F.stackOrderDescending=function(t){return Bu(t).reverse()},F.stackOrderInsideOut=function(t){var e,n,r=t.length,i=t.map(Fu),o=Lu(t).sort(function(t,e){return i[e]-i[t]}),a=0,s=0,u=[],c=[];for(e=0;e<r;++e)n=o[e],a<s?(a+=i[n],u.push(n)):(s+=i[n],c.push(n));return c.reverse().concat(u)},F.stackOrderNone=Lu,F.stackOrderReverse=function(t){return Lu(t).reverse()},F.timeInterval=ma,F.timeMillisecond=Rd,F.timeMilliseconds=jd,F.utcMillisecond=Rd,F.utcMilliseconds=jd,F.timeSecond=Ld,F.timeSeconds=qd,F.utcSecond=Ld,F.utcSeconds=qd,F.timeMinute=Bd,F.timeMinutes=Fd,F.timeHour=Id,F.timeHours=Ud,F.timeDay=zd,F.timeDays=Hd,F.timeWeek=Vd,F.timeWeeks=Kd,F.timeSunday=Vd,F.timeSundays=Kd,F.timeMonday=Wd,F.timeMondays=Qd,F.timeTuesday=Yd,F.timeTuesdays=tg,F.timeWednesday=Xd,F.timeWednesdays=eg,F.timeThursday=Gd,F.timeThursdays=ng,F.timeFriday=Jd,F.timeFridays=rg,F.timeSaturday=Zd,F.timeSaturdays=ig,F.timeMonth=og,F.timeMonths=ag,F.timeYear=sg,F.timeYears=ug,F.utcMinute=cg,F.utcMinutes=fg,F.utcHour=lg,F.utcHours=hg,F.utcDay=pg,F.utcDays=dg,F.utcWeek=gg,F.utcWeeks=wg,F.utcSunday=gg,F.utcSundays=wg,F.utcMonday=vg,F.utcMondays=_g,F.utcTuesday=yg,F.utcTuesdays=Cg,F.utcWednesday=mg,F.utcWednesdays=kg,F.utcThursday=bg,F.utcThursdays=Sg,F.utcFriday=xg,F.utcFridays=Mg,F.utcSaturday=$g,F.utcSaturdays=Ag,F.utcMonth=Eg,F.utcMonths=Tg,F.utcYear=Ng,F.utcYears=Og,F.timeFormatDefaultLocale=Ns,F.timeFormatLocale=Ca,F.isoFormat=Bg,F.isoParse=Fg,F.now=ye,F.timer=xe,F.timerFlush=$e,F.timeout=ke,F.interval=function(n,r,i){var o=new be,a=r;return null==r?o.restart(n,r,i):(r=+r,i=null==i?ye():+i,o.restart(function t(e){e+=a,o.restart(t,a+=r,i),n(e)},r,i)),o},F.transition=De,F.active=function(t,e){var n,r,i=t.__transition;if(i)for(r in e=null==e?null:e+"",i)if((n=i[r]).state>Xf&&n.name===e)return new Oe([[t]],yl,e,+r);return null},F.interrupt=Te,F.voronoi=function(){function e(r){return new cc(r.map(function(t,e){var n=[Math.round(i(t,e,r)/Jv)*Jv,Math.round(o(t,e,r)/Jv)*Jv];return n.index=e,n.data=t,n}),n)}var i=Uu,o=zu,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(t){return arguments.length?(i="function"==typeof t?t:Iu(+t),e):i},e.y=function(t){return arguments.length?(o="function"==typeof t?t:Iu(+t),e):o},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},F.zoom=function(){function a(t){t.property("__zoom",yc).on("wheel.zoom",e).on("mousedown.zoom",n).on("dblclick.zoom",r).filter(x).on("touchstart.zoom",i).on("touchmove.zoom",u).on("touchend.zoom touchcancel.zoom",c).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(t,e){return(e=Math.max($[0],Math.min($[1],e)))===t.k?t:new lc(e,t.x,t.y)}function d(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new lc(t.k,r,i)}function f(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function o(t,u,c){t.on("start.zoom",function(){g(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){g(this,arguments).end()}).tween("zoom",function(){var t=arguments,r=g(this,t),e=y.apply(this,t),i=c||f(e),o=Math.max(e[1][0]-e[0][0],e[1][1]-e[0][1]),n=this.__zoom,a="function"==typeof u?u.apply(this,t):u,s=C(n.invert(i).concat(o/n.k),a.invert(i).concat(o/a.k));return function(t){if(1===t)t=a;else{var e=s(t),n=o/e[2];t=new lc(n,i[0]-e[0]*n,i[1]-e[1]*n)}r.zoom(null,t)}})}function g(t,e){for(var n,r=0,i=k.length;r<i;++r)if((n=k[r]).that===t)return n;return new s(t,e)}function s(t,e){this.that=t,this.args=e,this.index=-1,this.active=0,this.extent=y.apply(t,e)}function e(){if(h.apply(this,arguments)){var t=g(this,arguments),e=this.__zoom,n=Math.max($[0],Math.min($[1],e.k*Math.pow(2,b.apply(this,arguments)))),r=pt(this);if(t.wheel)t.mouse[0][0]===r[0]&&t.mouse[0][1]===r[1]||(t.mouse[1]=e.invert(t.mouse[0]=r)),clearTimeout(t.wheel);else{if(e.k===n)return;t.mouse=[r,e.invert(r)],Te(this),t.start()}dc(),t.wheel=setTimeout(function(){t.wheel=null,t.end()},A),t.zoom("mouse",m(d(p(e,n),t.mouse[0],t.mouse[1]),t.extent,w))}}function n(){if(!l&&h.apply(this,arguments)){var n=g(this,arguments),t=ut(F.event.view).on("mousemove.zoom",function(){if(dc(),!n.moved){var t=F.event.clientX-r,e=F.event.clientY-i;n.moved=E<t*t+e*e}n.zoom("mouse",m(d(n.that.__zoom,n.mouse[0]=pt(n.that),n.mouse[1]),n.extent,w))},!0).on("mouseup.zoom",function(){t.on("mousemove.zoom mouseup.zoom",null),mt(F.event.view,n.moved),dc(),n.end()},!0),e=pt(this),r=F.event.clientX,i=F.event.clientY;yt(F.event.view),pc(),n.mouse=[e,this.__zoom.invert(e)],Te(this),n.start()}}function r(){if(h.apply(this,arguments)){var t=this.__zoom,e=pt(this),n=t.invert(e),r=t.k*(F.event.shiftKey?.5:2),i=m(d(p(t,r),e,n),y.apply(this,arguments),w);dc(),0<_?ut(this).transition().duration(_).call(o,i,e):ut(this).call(a.transform,i)}}function i(){if(h.apply(this,arguments)){var t,e,n,r,i=g(this,arguments),o=F.event.changedTouches,a=o.length;for(pc(),e=0;e<a;++e)r=[r=dt(this,o,(n=o[e]).identifier),this.__zoom.invert(r),n.identifier],i.touch0?i.touch1||(i.touch1=r):(i.touch0=r,t=!0);if(v&&(v=clearTimeout(v),!i.touch1))return i.end(),void((r=ut(this).on("dblclick.zoom"))&&r.apply(this,arguments));t&&(v=setTimeout(function(){v=null},M),Te(this),i.start())}}function u(){var t,e,n,r,i=g(this,arguments),o=F.event.changedTouches,a=o.length;for(dc(),v&&(v=clearTimeout(v)),t=0;t<a;++t)n=dt(this,o,(e=o[t]).identifier),i.touch0&&i.touch0[2]===e.identifier?i.touch0[0]=n:i.touch1&&i.touch1[2]===e.identifier&&(i.touch1[0]=n);if(e=i.that.__zoom,i.touch1){var s=i.touch0[0],u=i.touch0[1],c=i.touch1[0],f=i.touch1[1],l=(l=c[0]-s[0])*l+(l=c[1]-s[1])*l,h=(h=f[0]-u[0])*h+(h=f[1]-u[1])*h;e=p(e,Math.sqrt(l/h)),n=[(s[0]+c[0])/2,(s[1]+c[1])/2],r=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!i.touch0)return;n=i.touch0[0],r=i.touch0[1]}i.zoom("touch",m(d(e,n,r),i.extent,w))}function c(){var t,e,n=g(this,arguments),r=F.event.changedTouches,i=r.length;for(pc(),l&&clearTimeout(l),l=setTimeout(function(){l=null},M),t=0;t<i;++t)e=r[t],n.touch0&&n.touch0[2]===e.identifier?delete n.touch0:n.touch1&&n.touch1[2]===e.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 v,l,h=gc,y=vc,m=xc,b=mc,x=bc,$=[0,1/0],w=[[-1/0,-1/0],[1/0,1/0]],_=250,C=pe,k=[],S=N("start","zoom","end"),M=500,A=150,E=0;return a.transform=function(t,e){var n=t.selection?t.selection():t;n.property("__zoom",yc),t!==n?o(t,e):n.interrupt().each(function(){g(this,arguments).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},a.scaleBy=function(t,e){a.scaleTo(t,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)})},a.scaleTo=function(t,o){a.transform(t,function(){var t=y.apply(this,arguments),e=this.__zoom,n=f(t),r=e.invert(n),i="function"==typeof o?o.apply(this,arguments):o;return m(d(p(e,i),n,r),t,w)})},a.translateBy=function(t,e,n){a.transform(t,function(){return m(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),y.apply(this,arguments),w)})},a.translateTo=function(t,r,i){a.transform(t,function(){var t=y.apply(this,arguments),e=this.__zoom,n=f(t);return m(Kv.translate(n[0],n[1]).scale(e.k).translate("function"==typeof r?-r.apply(this,arguments):-r,"function"==typeof i?-i.apply(this,arguments):-i),t,w)})},s.prototype={start:function(){return 1==++this.active&&(this.index=k.push(this)-1,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(k.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(t){it(new function(t,e,n){this.target=t,this.type=e,this.transform=n}(a,t,this.that.__zoom),S.apply,S,[t,this.that,this.args])}},a.wheelDelta=function(t){return arguments.length?(b="function"==typeof t?t:fc(+t),a):b},a.filter=function(t){return arguments.length?(h="function"==typeof t?t:fc(!!t),a):h},a.touchable=function(t){return arguments.length?(x="function"==typeof t?t:fc(!!t),a):x},a.extent=function(t){return arguments.length?(y="function"==typeof t?t:fc([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),a):y},a.scaleExtent=function(t){return arguments.length?($[0]=+t[0],$[1]=+t[1],a):[$[0],$[1]]},a.translateExtent=function(t){return arguments.length?(w[0][0]=+t[0][0],w[1][0]=+t[1][0],w[0][1]=+t[0][1],w[1][1]=+t[1][1],a):[[w[0][0],w[0][1]],[w[1][0],w[1][1]]]},a.constrain=function(t){return arguments.length?(m=t,a):m},a.duration=function(t){return arguments.length?(_=+t,a):_},a.interpolate=function(t){return arguments.length?(C=t,a):C},a.on=function(){var t=S.on.apply(S,arguments);return t===S?a:t},a.clickDistance=function(t){return arguments.length?(E=(t=+t)*t,a):Math.sqrt(E)},a},F.zoomTransform=hc,F.zoomIdentity=Kv,Object.defineProperty(F,"__esModule",{value:!0})}),function(t,e){if("function"==typeof define&&define.amd)define(["d3-collection","d3-selection"],e);else if("object"==typeof module&&module.exports){var n=require("d3-collection"),r=require("d3-selection");module.exports=e(n,r)}else{var i=t.d3;t.d3.tip=e(i,i)}}(this,function(o,m){return function(){var c=function(){return"n"},f=function(){return[0,0]},l=function(){return" "},h=document.body,n=t(),r=null,u=null,p=null;function d(t){var e;e=t.node(),(r=e?"svg"===e.tagName.toLowerCase()?e:e.ownerSVGElement:null)&&(u=r.createSVGPoint(),document.body.appendChild(n))}d.show=function(){var t=Array.prototype.slice.call(arguments);t[t.length-1]instanceof SVGElement&&(p=t.pop());var e,n=l.apply(this,t),r=f.apply(this,t),i=c.apply(this,t),o=y(),a=v.length,s=document.documentElement.scrollTop||h.scrollTop,u=document.documentElement.scrollLeft||h.scrollLeft;for(o.html(n).style("opacity",1).style("pointer-events","all");a--;)o.classed(v[a],!1);return e=g.get(i).apply(this),o.classed(i,!0).style("top",e.top+r[0]+s+"px").style("left",e.left+r[1]+u+"px"),d},d.hide=function(){return y().style("opacity",0).style("pointer-events","none"),d},d.attr=function(t,e){if(arguments.length<2&&"string"==typeof t)return y().attr(t);var n=Array.prototype.slice.call(arguments);return m.selection.prototype.attr.apply(y(),n),d},d.style=function(t,e){if(arguments.length<2&&"string"==typeof t)return y().style(t);var n=Array.prototype.slice.call(arguments);return m.selection.prototype.style.apply(y(),n),d},d.direction=function(t){return arguments.length?(c=null==t?t:i(t),d):c},d.offset=function(t){return arguments.length?(f=null==t?t:i(t),d):f},d.html=function(t){return arguments.length?(l=null==t?t:i(t),d):l},d.rootElement=function(t){return arguments.length?(h=null==t?t:i(t),d):h},d.destroy=function(){return n&&(y().remove(),n=null),d};var g=o.map({n:function(){var t=e();return{top:t.n.y-n.offsetHeight,left:t.n.x-n.offsetWidth/2}},s:function(){var t=e();return{top:t.s.y,left:t.s.x-n.offsetWidth/2}},e:function(){var t=e();return{top:t.e.y-n.offsetHeight/2,left:t.e.x}},w:function(){var t=e();return{top:t.w.y-n.offsetHeight/2,left:t.w.x-n.offsetWidth}},nw:function(){var t=e();return{top:t.nw.y-n.offsetHeight,left:t.nw.x-n.offsetWidth}},ne:function(){var t=e();return{top:t.ne.y-n.offsetHeight,left:t.ne.x}},sw:function(){var t=e();return{top:t.sw.y,left:t.sw.x-n.offsetWidth}},se:function(){var t=e();return{top:t.se.y,left:t.se.x}}}),v=g.keys();function t(){var t=m.select(document.createElement("div"));return t.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),t.node()}function y(){return null==n&&(n=t(),h.appendChild(n)),m.select(n)}function e(){for(var t=p||m.event.target;null==t.getScreenCTM&&null==t.parentNode;)t=t.parentNode;var e={},n=t.getScreenCTM(),r=t.getBBox(),i=r.width,o=r.height,a=r.x,s=r.y;return u.x=a,u.y=s,e.nw=u.matrixTransform(n),u.x+=i,e.ne=u.matrixTransform(n),u.y+=o,e.se=u.matrixTransform(n),u.x-=i,e.sw=u.matrixTransform(n),u.y-=o/2,e.w=u.matrixTransform(n),u.x+=i,e.e=u.matrixTransform(n),u.x-=i/2,u.y-=o/2,e.n=u.matrixTransform(n),u.y+=o,e.s=u.matrixTransform(n),e}function i(t){return"function"==typeof t?t:function(){return t}}return d}}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("d3-interpolate")):"function"==typeof define&&define.amd?define(["exports","d3-interpolate"],e):e(t.d3=t.d3||{},t.d3)}(this,function(t,e){"use strict";var n=function(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n},r=n("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),i=n("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),o=n("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),a=n("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),s=n("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),u=n("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),c=n("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),f=n("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),l=function(t){return e.interpolateRgbBasis(t[t.length-1])},h=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(n),p=l(h),d=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(n),g=l(d),v=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(n),y=l(v),m=new Array(3).concat("f1a340f7f7f7998ec3","e66101fdb863b2abd25e3c99","e66101fdb863f7f7f7b2abd25e3c99","b35806f1a340fee0b6d8daeb998ec3542788","b35806f1a340fee0b6f7f7f7d8daeb998ec3542788","b35806e08214fdb863fee0b6d8daebb2abd28073ac542788","b35806e08214fdb863fee0b6f7f7f7d8daebb2abd28073ac542788","7f3b08b35806e08214fdb863fee0b6d8daebb2abd28073ac5427882d004b","7f3b08b35806e08214fdb863fee0b6f7f7f7d8daebb2abd28073ac5427882d004b").map(n),b=l(m),x=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(n),$=l(x),w=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(n),_=l(w),C=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(n),k=l(C),S=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(n),M=l(S),A=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(n),E=l(A),T=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(n),N=l(T),P=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(n),O=l(P),D=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(n),R=l(D),j=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(n),L=l(j),q=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(n),B=l(q),F=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(n),I=l(F),U=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(n),z=l(U),H=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(n),V=l(H),W=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(n),Y=l(W),X=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(n),G=l(X),J=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(n),Z=l(J),K=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(n),Q=l(K),tt=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(n),et=l(tt),nt=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(n),rt=l(nt),it=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(n),ot=l(it),at=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(n),st=l(at),ut=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(n),ct=l(ut),ft=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(n),lt=l(ft);t.schemeAccent=r,t.schemeDark2=i,t.schemePaired=o,t.schemePastel1=a,t.schemePastel2=s,t.schemeSet1=u,t.schemeSet2=c,t.schemeSet3=f,t.interpolateBrBG=p,t.schemeBrBG=h,t.interpolatePRGn=g,t.schemePRGn=d,t.interpolatePiYG=y,t.schemePiYG=v,t.interpolatePuOr=b,t.schemePuOr=m,t.interpolateRdBu=$,t.schemeRdBu=x,t.interpolateRdGy=_,t.schemeRdGy=w,t.interpolateRdYlBu=k,t.schemeRdYlBu=C,t.interpolateRdYlGn=M,t.schemeRdYlGn=S,t.interpolateSpectral=E,t.schemeSpectral=A,t.interpolateBuGn=N,t.schemeBuGn=T,t.interpolateBuPu=O,t.schemeBuPu=P,t.interpolateGnBu=R,t.schemeGnBu=D,t.interpolateOrRd=L,t.schemeOrRd=j,t.interpolatePuBuGn=B,t.schemePuBuGn=q,t.interpolatePuBu=I,t.schemePuBu=F,t.interpolatePuRd=z,t.schemePuRd=U,t.interpolateRdPu=V,t.schemeRdPu=H,t.interpolateYlGnBu=Y,t.schemeYlGnBu=W,t.interpolateYlGn=G,t.schemeYlGn=X,t.interpolateYlOrBr=Z,t.schemeYlOrBr=J,t.interpolateYlOrRd=Q,t.schemeYlOrRd=K,t.interpolateBlues=et,t.schemeBlues=tt,t.interpolateGreens=rt,t.schemeGreens=nt,t.interpolateGreys=ot,t.schemeGreys=it,t.interpolatePurples=st,t.schemePurples=at,t.interpolateReds=ct,t.schemeReds=ut,t.interpolateOranges=lt,t.schemeOranges=ft,Object.defineProperty(t,"__esModule",{value:!0})}),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.io=e():t.io=e()}(this,function(){return function(n){function r(t){if(i[t])return i[t].exports;var e=i[t]={exports:{},id:t,loaded:!1};return n[t].call(e.exports,e,e.exports,r),e.loaded=!0,e.exports}var i={};return r.m=n,r.c=i,r.p="",r(0)}([function(t,e,n){"use strict";function r(t,e){"object"===(void 0===t?"undefined":u(t))&&(e=t,t=void 0),e=e||{};var n,r=c(t),i=r.source,o=r.id,a=r.path,s=h[o]&&a in h[o].nsps;return n=e.forceNew||e["force new connection"]||!1===e.multiplex||s?(l("ignoring socket cache for %s",i),f(i,e)):(h[o]||(l("new io instance for %s",i),h[o]=f(i,e)),h[o]),r.query&&!e.query&&(e.query=r.query),n.socket(r.path,e)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c=n(1),i=n(7),f=n(12),l=n(3)("socket.io-client");t.exports=e=r;var h=e.managers={};e.protocol=i.protocol,e.connect=r,e.Manager=n(12),e.Socket=n(36)},function(t,e,n){"use strict";var i=n(2),o=n(3)("socket.io-client:url");t.exports=function(t,e){var n=t;e=e||"undefined"!=typeof location&&location,null==t&&(t=e.protocol+"//"+e.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?e.protocol+t:e.host+t),/^(https?|wss?):\/\//.test(t)||(o("protocol-less url %s",t),t=void 0!==e?e.protocol+"//"+t:"https://"+t),o("parse %s",t),n=i(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var r=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+r+":"+n.port,n.href=n.protocol+"://"+r+(e&&e.port===n.port?"":":"+n.port),n}},function(t,e){var s=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,u=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,n=t.indexOf("["),r=t.indexOf("]");-1!=n&&-1!=r&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));for(var i=s.exec(t||""),o={},a=14;a--;)o[u[a]]=i[a]||"";return-1!=n&&-1!=r&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o}},function(n,o,r){(function(e){function t(){var t;try{t=o.storage.debug}catch(t){}return!t&&void 0!==e&&"env"in e&&(t=e.env.DEBUG),t}(o=n.exports=r(5)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},o.formatArgs=function(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+o.humanize(this.diff),e){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(r++,"%c"===t&&(i=r))}),t.splice(i,0,n)}},o.save=function(t){try{null==t?o.storage.removeItem("debug"):o.storage.debug=t}catch(t){}},o.load=t,o.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},o.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),o.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],o.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},o.enable(t())}).call(o,r(4))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(){d&&h&&(d=!1,h.length?p=h.concat(p):g=-1,p.length&&a())}function a(){if(!d){var t=i(o);d=!0;for(var e=p.length;e;){for(h=p,p=[];++g<e;)h&&h[g].run();g=-1,e=p.length}h=null,d=!1,function(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}(t)}}function s(t,e){this.fun=t,this.array=e}function u(){}var c,f,l=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var h,p=[],d=!1,g=-1;l.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new s(t,e)),1!==p.length||d||i(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=u,l.addListener=u,l.once=u,l.off=u,l.removeListener=u,l.removeAllListeners=u,l.emit=u,l.prependListener=u,l.prependOnceListener=u,l.listeners=function(t){return[]},l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,u,e){function n(t){function r(){if(r.enabled){var i=r,t=+new Date,e=t-(s||t);i.diff=e,i.prev=s,i.curr=t,s=t;for(var o=new Array(arguments.length),n=0;n<o.length;n++)o[n]=arguments[n];o[0]=u.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var a=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(t,e){if("%%"===t)return t;a++;var n=u.formatters[e];if("function"==typeof n){var r=o[a];t=n.call(i,r),o.splice(a,1),a--}return t}),u.formatArgs.call(i,o),(r.log||u.log||console.log.bind(console)).apply(i,o)}}var s;return r.namespace=t,r.enabled=u.enabled(t),r.useColors=u.useColors(),r.color=function(t){var e,n=0;for(e in t)n=(n<<5)-n+t.charCodeAt(e),n|=0;return u.colors[Math.abs(n)%u.colors.length]}(t),r.destroy=i,"function"==typeof u.init&&u.init(r),u.instances.push(r),r}function i(){var t=u.instances.indexOf(this);return-1!==t&&(u.instances.splice(t,1),!0)}(u=t.exports=n.debug=n.default=n).coerce=function(t){return t instanceof Error?t.stack||t.message:t},u.disable=function(){u.enable("")},u.enable=function(t){u.save(t),u.names=[],u.skips=[];var e,n=("string"==typeof t?t:"").split(/[\s,]+/),r=n.length;for(e=0;e<r;e++)n[e]&&("-"===(t=n[e].replace(/\*/g,".*?"))[0]?u.skips.push(new RegExp("^"+t.substr(1)+"$")):u.names.push(new RegExp("^"+t+"$")));for(e=0;e<u.instances.length;e++){var i=u.instances[e];i.enabled=u.enabled(i.namespace)}},u.enabled=function(t){if("*"===t[t.length-1])return!0;var e,n;for(e=0,n=u.skips.length;e<n;e++)if(u.skips[e].test(t))return!1;for(e=0,n=u.names.length;e<n;e++)if(u.names[e].test(t))return!0;return!1},u.humanize=e(6),u.instances=[],u.names=[],u.skips=[],u.formatters={}},function(t,e){function o(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}t.exports=function(t,e){e=e||{};var n,r,i=typeof t;if("string"===i&&0<t.length)return function(t){if(!(100<(t=String(t)).length)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return 864e5*n;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*n;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*n;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===i&&!1===isNaN(t))return e.long?o(r=t,864e5,"day")||o(r,36e5,"hour")||o(r,6e4,"minute")||o(r,1e3,"second")||r+" ms":864e5<=(n=t)?Math.round(n/864e5)+"d":36e5<=n?Math.round(n/36e5)+"h":6e4<=n?Math.round(n/6e4)+"m":1e3<=n?Math.round(n/1e3)+"s":n+"ms";throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,s,e){function n(){}function o(t){var e=""+t.type;if(s.BINARY_EVENT!==t.type&&s.BINARY_ACK!==t.type||(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data){var n=function(t){try{return JSON.stringify(t)}catch(t){return!1}}(t.data);if(!1===n)return d;e+=n}return c("encoded %j as %s",t,e),e}function r(){this.reconstructor=null}function i(t){var e=0,n={type:Number(t.charAt(0))};if(null==s.types[n.type])return u("unknown packet type "+n.type);if(s.BINARY_EVENT===n.type||s.BINARY_ACK===n.type){for(var r="";"-"!==t.charAt(++e)&&(r+=t.charAt(e),e!=t.length););if(r!=Number(r)||"-"!==t.charAt(e))throw new Error("Illegal attachments");n.attachments=Number(r)}if("/"===t.charAt(e+1))for(n.nsp="";++e;){if(","===(o=t.charAt(e)))break;if(n.nsp+=o,e===t.length)break}else n.nsp="/";var i=t.charAt(e+1);if(""!==i&&Number(i)==i){for(n.id="";++e;){var o;if(null==(o=t.charAt(e))||Number(o)!=o){--e;break}if(n.id+=t.charAt(e),e===t.length)break}n.id=Number(n.id)}if(t.charAt(++e)){var a=function(t){try{return JSON.parse(t)}catch(t){return!1}}(t.substr(e));if(!(!1!==a&&(n.type===s.ERROR||h(a))))return u("invalid payload");n.data=a}return c("decoded %s as %j",t,n),n}function a(t){this.reconPack=t,this.buffers=[]}function u(t){return{type:s.ERROR,data:"parser error: "+t}}var c=e(3)("socket.io-parser"),f=e(8),l=e(9),h=e(10),p=e(11);s.protocol=4,s.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],s.CONNECT=0,s.DISCONNECT=1,s.EVENT=2,s.ACK=3,s.ERROR=4,s.BINARY_EVENT=5,s.BINARY_ACK=6,s.Encoder=n,s.Decoder=r;var d=s.ERROR+'"encode error"';n.prototype.encode=function(t,e){var n,i;(c("encoding packet %j",t),s.BINARY_EVENT===t.type||s.BINARY_ACK===t.type)?(n=t,i=e,l.removeBlobs(n,function(t){var e=l.deconstructPacket(t),n=o(e.packet),r=e.buffers;r.unshift(n),i(r)})):e([o(t)])},f(r.prototype),r.prototype.add=function(t){var e;if("string"==typeof t)e=i(t),s.BINARY_EVENT===e.type||s.BINARY_ACK===e.type?(this.reconstructor=new a(e),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",e)):this.emit("decoded",e);else{if(!p(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(e=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",e))}},r.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},a.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length!==this.reconPack.attachments)return null;var e=l.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e},a.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e,n){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}(t.exports=r).prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,i=0;i<n.length;i++)if((r=n[i])===e||r.fn===e){n.splice(i,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n)for(var r=0,i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e);return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){var f=n(10),l=n(11),r=Object.prototype.toString,h="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===r.call(Blob),p="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===r.call(File);e.deconstructPacket=function(t){var e=[],n=t.data,r=t;return r.data=function t(e,n){if(!e)return e;if(l(e)){var r={_placeholder:!0,num:n.length};return n.push(e),r}if(f(e)){for(var i=new Array(e.length),o=0;o<e.length;o++)i[o]=t(e[o],n);return i}if("object"!=typeof e||e instanceof Date)return e;i={};for(var a in e)i[a]=t(e[a],n);return i}(n,e),r.attachments=e.length,{packet:r,buffers:e}},e.reconstructPacket=function(t,e){return t.data=function t(e,n){if(!e)return e;if(e&&e._placeholder)return n[e.num];if(f(e))for(var r=0;r<e.length;r++)e[r]=t(e[r],n);else if("object"==typeof e)for(var i in e)e[i]=t(e[i],n);return e}(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,s){var u=0,c=t;(function t(e,n,r){if(!e)return e;if(h&&e instanceof Blob||p&&e instanceof File){u++;var i=new FileReader;i.onload=function(){r?r[n]=this.result:c=this.result,--u||s(c)},i.readAsArrayBuffer(e)}else if(f(e))for(var o=0;o<e.length;o++)t(e[o],o,e);else if("object"==typeof e&&!l(e))for(var a in e)t(e[a],a,e)})(c),u||s(c)}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){t.exports=function(t){return n&&Buffer.isBuffer(t)||r&&(t instanceof ArrayBuffer||i(t))};var n="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,r="function"==typeof ArrayBuffer,i=function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer}},function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);t&&"object"===(void 0===t?"undefined":i(t))&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new p({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=e.parser||s;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=n(13),o=n(36),a=n(8),s=n(7),c=n(38),f=n(39),l=n(3)("socket.io-client:manager"),h=n(35),p=n(40),d=Object.prototype.hasOwnProperty;(t.exports=r).prototype.emitAll=function(){for(var t in this.emit.apply(this,arguments),this.nsps)d.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},r.prototype.updateSocketIds=function(){for(var t in this.nsps)d.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},r.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},a(r.prototype),r.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},r.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},r.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},r.prototype.open=r.prototype.connect=function(n,t){if(l("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;l("opening %s",this.uri),this.engine=u(this.uri,this.opts);var e=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var i=c(e,"open",function(){r.onopen(),n&&n()}),o=c(e,"error",function(t){if(l("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",t),n){var e=new Error("Connection error");e.data=t,n(e)}else r.maybeReconnectOnOpen()});if(!1!==this._timeout){var a=this._timeout;l("connect attempt will timeout after %d",a);var s=setTimeout(function(){l("connect attempt timed out after %d",a),i.destroy(),e.close(),e.emit("error","timeout"),r.emitAll("connect_timeout",a)},a);this.subs.push({destroy:function(){clearTimeout(s)}})}return this.subs.push(i),this.subs.push(o),this},r.prototype.onopen=function(){l("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(c(t,"data",f(this,"ondata"))),this.subs.push(c(t,"ping",f(this,"onping"))),this.subs.push(c(t,"pong",f(this,"onpong"))),this.subs.push(c(t,"error",f(this,"onerror"))),this.subs.push(c(t,"close",f(this,"onclose"))),this.subs.push(c(this.decoder,"decoded",f(this,"ondecoded")))},r.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},r.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},r.prototype.ondata=function(t){this.decoder.add(t)},r.prototype.ondecoded=function(t){this.emit("packet",t)},r.prototype.onerror=function(t){l("error",t),this.emitAll("error",t)},r.prototype.socket=function(t,e){function n(){~h(i.connecting,r)||i.connecting.push(r)}var r=this.nsps[t];if(!r){r=new o(this,t,e),this.nsps[t]=r;var i=this;r.on("connecting",n),r.on("connect",function(){r.id=i.generateId(t)}),this.autoConnect&&n()}return r},r.prototype.destroy=function(t){var e=h(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},r.prototype.packet=function(n){l("writing packet %j",n);var r=this;n.query&&0===n.type&&(n.nsp+="?"+n.query),r.encoding?r.packetBuffer.push(n):(r.encoding=!0,this.encoder.encode(n,function(t){for(var e=0;e<t.length;e++)r.engine.write(t[e],n.options);r.encoding=!1,r.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(0<this.packetBuffer.length&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},r.prototype.cleanup=function(){l("cleanup");for(var t=this.subs.length,e=0;e<t;e++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){l("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(t){l("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();l("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout(function(){e.skipReconnect||(l("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(l("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(l("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,n){t.exports=n(14),t.exports.parser=n(21)},function(t,e,n){function l(t,e){return this instanceof l?(e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=s(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=s(e.host).host),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=u.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=void 0===e.rejectUnauthorized||e.rejectUnauthorized,this.forceNode=!!e.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(e.extraHeaders&&0<Object.keys(e.extraHeaders).length&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,void this.open()):new l(t,e)}var r=n(15),i=n(8),h=n(3)("engine.io-client:socket"),o=n(35),a=n(21),s=n(2),u=n(29);(t.exports=l).priorWebsocketSuccess=!1,i(l.prototype),l.protocol=a.protocol,(l.Socket=l).Transport=n(20),l.transports=n(15),l.parser=n(21),l.prototype.createTransport=function(t){h('creating transport "%s"',t);var e=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(this.query);e.EIO=a.protocol,e.transport=t;var n=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new r[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},l.prototype.open=function(){var t;if(this.rememberUpgrade&&l.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},l.prototype.setTransport=function(t){h("setting transport %s",t.name);var e=this;this.transport&&(h("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),(this.transport=t).on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},l.prototype.probe=function(n){function t(){if(f.onlyBinaryUpgrades){var t=!this.supportsBinary&&f.transport.supportsBinary;c=c||t}c||(h('probe transport "%s" opened',n),u.send([{type:"ping",data:"probe"}]),u.once("packet",function(t){if(!c)if("pong"===t.type&&"probe"===t.data){if(h('probe transport "%s" pong',n),f.upgrading=!0,f.emit("upgrading",u),!u)return;l.priorWebsocketSuccess="websocket"===u.name,h('pausing current transport "%s"',f.transport.name),f.transport.pause(function(){c||"closed"!==f.readyState&&(h("changing transport and sending upgrade packet"),s(),f.setTransport(u),u.send([{type:"upgrade"}]),f.emit("upgrade",u),u=null,f.upgrading=!1,f.flush())})}else{h('probe transport "%s" failed',n);var e=new Error("probe error");e.transport=u.name,f.emit("upgradeError",e)}}))}function r(){c||(c=!0,s(),u.close(),u=null)}function e(t){var e=new Error("probe error: "+t);e.transport=u.name,r(),h('probe transport "%s" failed because of error: %s',n,t),f.emit("upgradeError",e)}function i(){e("transport closed")}function o(){e("socket closed")}function a(t){u&&t.name!==u.name&&(h('"%s" works - aborting "%s"',t.name,u.name),r())}function s(){u.removeListener("open",t),u.removeListener("error",e),u.removeListener("close",i),f.removeListener("close",o),f.removeListener("upgrading",a)}h('probing transport "%s"',n);var u=this.createTransport(n,{probe:1}),c=!1,f=this;l.priorWebsocketSuccess=!1,u.once("open",t),u.once("error",e),u.once("close",i),this.once("close",o),this.once("upgrading",a),u.open()},l.prototype.onOpen=function(){if(h("socket open"),this.readyState="open",l.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){h("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},l.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(h('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else h('packet received with socket readyState "%s"',this.readyState)},l.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},l.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!==e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},l.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){h("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},l.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})},l.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),(this.prevBufferLen=0)===this.writeBuffer.length?this.emit("drain"):this.flush()},l.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(h("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},l.prototype.write=l.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},l.prototype.sendPacket=function(t,e,n,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var i={type:t,data:e,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},l.prototype.close=function(){function t(){r.onClose("forced close"),h("socket closing - telling transport to close"),r.transport.close()}function e(){r.removeListener("upgrade",e),r.removeListener("upgradeError",e),t()}function n(){r.once("upgrade",e),r.once("upgradeError",e)}if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}return this},l.prototype.onError=function(t){h("socket error %j",t),l.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},l.prototype.onClose=function(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){h('socket close with reason: "%s"',t);clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),this.writeBuffer=[],this.prevBufferLen=0}},l.prototype.filterUpgrades=function(t){for(var e=[],n=0,r=t.length;n<r;n++)~o(this.transports,t[n])&&e.push(t[n]);return e}},function(t,e,n){var a=n(16),s=n(18),u=n(32),r=n(33);e.polling=function(t){var e=!1,n=!1,r=!1!==t.jsonp;if("undefined"!=typeof location){var i="https:"===location.protocol,o=location.port;o||(o=i?443:80),e=t.hostname!==location.hostname||o!==t.port,n=t.secure!==i}if(t.xdomain=e,t.xscheme=n,"open"in new a(t)&&!t.forceJSONP)return new s(t);if(!r)throw new Error("JSONP disabled");return new u(t)},e.websocket=r},function(t,e,n){var i=n(17);t.exports=function(t){var e=t.xdomain,n=t.xscheme,r=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||i))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!n&&r)return new XDomainRequest}catch(t){}if(!e)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}},function(e,t){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},function(t,e,n){function r(){}function i(t){if(u.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,"undefined"!=typeof location){var e="https:"===location.protocol,n=location.port;n||(n=e?443:80),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||n!==t.port,this.xs=t.secure!==e}}function o(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function a(){for(var t in o.requests)o.requests.hasOwnProperty(t)&&o.requests[t].abort()}var s=n(16),u=n(19),c=n(8),f=n(30),l=n(3)("engine.io-client:polling-xhr");if(t.exports=i,t.exports.Request=o,f(i,u),i.prototype.supportsBinary=!0,i.prototype.request=function(t){return(t=t||{}).uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new o(t)},i.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,r=this.request({method:"POST",data:t,isBinary:n}),i=this;r.on("success",e),r.on("error",function(t){i.onError("xhr post error",t)}),this.sendXhr=r},i.prototype.doPoll=function(){l("xhr poll");var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},c(o.prototype),o.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new s(t),n=this;try{l("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var r in e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(r)&&e.setRequestHeader(r,this.extraHeaders[r])}catch(t){}if("POST"===this.method)try{this.isBinary?e.setRequestHeader("Content-type","application/octet-stream"):e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{e.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in e&&(e.withCredentials=!0),this.requestTimeout&&(e.timeout=this.requestTimeout),this.hasXDR()?(e.onload=function(){n.onLoad()},e.onerror=function(){n.onError(e.responseText)}):e.onreadystatechange=function(){if(2===e.readyState)try{var t=e.getResponseHeader("Content-Type");n.supportsBinary&&"application/octet-stream"===t&&(e.responseType="arraybuffer")}catch(t){}4===e.readyState&&(200===e.status||1223===e.status?n.onLoad():setTimeout(function(){n.onError(e.status)},0))},l("xhr data %s",this.data),e.send(this.data)}catch(t){return void setTimeout(function(){n.onError(t)},0)}"undefined"!=typeof document&&(this.index=o.requestsCount++,o.requests[this.index]=this)},o.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},o.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},o.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},o.prototype.cleanup=function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete o.requests[this.index],this.xhr=null}},o.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(t){}t="application/octet-stream"===e&&this.xhr.response||this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},o.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},o.prototype.abort=function(){this.cleanup()},o.requestsCount=0,o.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",a);else if("function"==typeof addEventListener){var h="onpagehide"in self?"pagehide":"unload";addEventListener(h,a,!1)}},function(t,e,n){function r(t){var e=t&&t.forceBase64;f&&!e||(this.supportsBinary=!1),i.call(this,t)}var i=n(20),o=n(29),a=n(21),s=n(30),u=n(31),c=n(3)("engine.io-client:polling");t.exports=r;var f=null!=new(n(16))({xdomain:!1}).responseType;s(r,i),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(t){function e(){c("paused"),n.readyState="paused",t()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(c("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){c("pre-pause polling complete"),--r||e()})),this.writable||(c("we are currently writing - waiting to pause"),r++,this.once("drain",function(){c("pre-pause writing complete"),--r||e()}))}else e()},r.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(t){var r=this;c("polling got data %s",t);a.decodePayload(t,this.socket.binaryType,function(t,e,n){return"opening"===r.readyState&&r.onOpen(),"close"===t.type?(r.onClose(),!1):void r.onPacket(t)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function t(){c("writing close packet"),e.write([{type:"close"}])}var e=this;"open"===this.readyState?(c("transport open - closing"),t()):(c("transport not open - deferring close"),this.once("open",t))},r.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};a.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,n)})},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(t[this.timestampParam]=u()),this.supportsBinary||t.sid||(t.b64=1),t=o.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e,n){function r(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}var i=n(21);n(8)((t.exports=r).prototype),r.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},r.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},r.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(t){var e=i.decodePacket(t,this.socket.binaryType);this.onPacket(e)},r.prototype.onPacket=function(t){this.emit("packet",t)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,h,e){function s(t,e,n){if(!e)return h.encodeBase64Packet(t,n);if(l)return function(t,e,n){if(!e)return h.encodeBase64Packet(t,n);var r=new FileReader;return r.onload=function(){h.encodePacket({type:t.type,data:r.result},e,!0,n)},r.readAsArrayBuffer(t.data)}(t,e,n);var r=new Uint8Array(1);return r[0]=d[t.type],n(new y([r.buffer,t.data]))}function i(t,e,n){for(var i=new Array(t.length),r=u(t.length,n),o=function(n,t,r){e(t,function(t,e){i[n]=e,r(t,i)})},a=0;a<t.length;a++)o(a,t[a],r)}var o,n=e(22),a=e(23),p=e(24),u=e(25),c=e(26);"undefined"!=typeof ArrayBuffer&&(o=e(27));var r="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),f="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),l=r||f;h.protocol=3;var d=h.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},g=n(d),v={type:"error",data:"parser error"},y=e(28);h.encodePacket=function(t,e,n,r){"function"==typeof e&&(r=e,e=!1),"function"==typeof n&&(r=n,n=null);var i,o=void 0===t.data?void 0:t.data.buffer||t.data;if("undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer)return function(t,e,n){if(!e)return h.encodeBase64Packet(t,n);var r=t.data,i=new Uint8Array(r),o=new Uint8Array(1+r.byteLength);o[0]=d[t.type];for(var a=0;a<i.length;a++)o[a+1]=i[a];return n(o.buffer)}(t,e,r);if(void 0!==y&&o instanceof y)return s(t,e,r);if(o&&o.base64)return i=t,r("b"+h.packets[i.type]+i.data.data);var a=d[t.type];return void 0!==t.data&&(a+=n?c.encode(String(t.data),{strict:!1}):String(t.data)),r(""+a)},h.encodeBase64Packet=function(e,n){var r,i="b"+h.packets[e.type];if(void 0!==y&&e.data instanceof y){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];n(i+t)},o.readAsDataURL(e.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(t){for(var a=new Uint8Array(e.data),s=new Array(a.length),u=0;u<a.length;u++)s[u]=a[u];r=String.fromCharCode.apply(null,s)}return i+=btoa(r),n(i)},h.decodePacket=function(t,e,n){if(void 0===t)return v;if("string"==typeof t){if("b"===t.charAt(0))return h.decodeBase64Packet(t.substr(1),e);if(n&&!1===(t=function(t){try{t=c.decode(t,{strict:!1})}catch(t){return!1}return t}(t)))return v;var r=t.charAt(0);return Number(r)==r&&g[r]?1<t.length?{type:g[r],data:t.substring(1)}:{type:g[r]}:v}r=new Uint8Array(t)[0];var i=p(t,1);return y&&"blob"===e&&(i=new y([i])),{type:g[r],data:i}},h.decodeBase64Packet=function(t,e){var n=g[t.charAt(0)];if(!o)return{type:n,data:{base64:!0,data:t.substr(1)}};var r=o.decode(t.substr(1));return"blob"===e&&y&&(r=new y([r])),{type:n,data:r}},h.encodePayload=function(t,e,n){"function"==typeof e&&(n=e,e=null);var r=a(t);return e&&r?y&&!l?h.encodePayloadAsBlob(t,n):h.encodePayloadAsArrayBuffer(t,n):t.length?void i(t,function(t,n){h.encodePacket(t,!!r&&e,!1,function(t){var e;n(null,(e=t).length+":"+e)})},function(t,e){return n(e.join(""))}):n("0:")},h.decodePayload=function(t,e,n){if("string"!=typeof t)return h.decodePayloadAsBinary(t,e,n);var r;if("function"==typeof e&&(n=e,e=null),""===t)return n(v,0,1);for(var i,o,a="",s=0,u=t.length;s<u;s++){var c=t.charAt(s);if(":"===c){if(""===a||a!=(i=Number(a)))return n(v,0,1);if(a!=(o=t.substr(s+1,i)).length)return n(v,0,1);if(o.length){if(r=h.decodePacket(o,e,!1),v.type===r.type&&v.data===r.data)return n(v,0,1);if(!1===n(r,s+i,u))return}s+=i,a=""}else a+=c}return""!==a?n(v,0,1):void 0},h.encodePayloadAsArrayBuffer=function(t,r){return t.length?void i(t,function(t,e){h.encodePacket(t,!0,!0,function(t){return e(null,t)})},function(t,e){var n=e.reduce(function(t,e){var n;return t+(n="string"==typeof e?e.length:e.byteLength).toString().length+n+2},0),a=new Uint8Array(n),s=0;return e.forEach(function(t){var e="string"==typeof t,n=t;if(e){for(var r=new Uint8Array(t.length),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);n=r.buffer}a[s++]=e?0:1;var o=n.byteLength.toString();for(i=0;i<o.length;i++)a[s++]=parseInt(o[i]);a[s++]=255;for(r=new Uint8Array(n),i=0;i<r.length;i++)a[s++]=r[i]}),r(a.buffer)}):r(new ArrayBuffer(0))},h.encodePayloadAsBlob=function(t,n){i(t,function(t,s){h.encodePacket(t,!0,!0,function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var n=new Uint8Array(t.length),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);t=n.buffer,e[0]=0}var i=(t instanceof ArrayBuffer?t.byteLength:t.size).toString(),o=new Uint8Array(i.length+1);for(r=0;r<i.length;r++)o[r]=parseInt(i[r]);if(o[i.length]=255,y){var a=new y([e.buffer,o.buffer,t]);s(null,a)}})},function(t,e){return n(new y(e))})},h.decodePayloadAsBinary=function(t,n,r){"function"==typeof n&&(r=n,n=null);for(var e=t,i=[];0<e.byteLength;){for(var o=new Uint8Array(e),a=0===o[0],s="",u=1;255!==o[u];u++){if(310<s.length)return r(v,0,1);s+=o[u]}e=p(e,2+s.length),s=parseInt(s);var c=p(e,0,s);if(a)try{c=String.fromCharCode.apply(null,new Uint8Array(c))}catch(t){var f=new Uint8Array(c);c="";for(u=0;u<f.length;u++)c+=String.fromCharCode(f[u])}i.push(c),e=p(e,s)}var l=i.length;i.forEach(function(t,e){r(h.decodePacket(t,n,!0),e,l)})}},function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e}},function(t,e,n){var o=n(10),r=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===r.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===r.call(File);t.exports=function t(e){if(!e||"object"!=typeof e)return!1;if(o(e)){for(var n=0,r=e.length;n<r;n++)if(t(e[n]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(e)||"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||a&&e instanceof Blob||s&&e instanceof File)return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return t(e.toJSON(),!0);for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t(e[i]))return!0;return!1}},function(t,e){t.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(e<0&&(e+=r),n<0&&(n+=r),r<n&&(n=r),r<=e||n<=e||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(t),o=new Uint8Array(n-e),a=e,s=0;a<n;a++,s++)o[s]=i[a];return o.buffer}},function(t,e){function a(){}t.exports=function(t,n,r){function i(t,e){if(i.count<=0)throw new Error("after called too many times");--i.count,t?(o=!0,n(t),n=r):0!==i.count||o||n(null,e)}var o=!1;return r=r||a,0===(i.count=t)?n():i}},function(t,e){function s(t){for(var e,n,r=[],i=0,o=t.length;i<o;)55296<=(e=t.charCodeAt(i++))&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function r(t,e){if(55296<=t&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function i(t,e){return h(t>>e&63|128)}function u(t,e){if(0==(4294967168&t))return h(t);var n="";return 0==(4294965248&t)?n=h(t>>6&31|192):0==(4294901760&t)?(r(t,e)||(t=65533),n=h(t>>12&15|224),n+=i(t,6)):0==(4292870144&t)&&(n=h(t>>18&7|240),n+=i(t,12),n+=i(t,6)),n+h(63&t|128)}function o(){if(f<=l)throw Error("Invalid byte index");var t=255&c[l];if(l++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function a(t){var e,n;if(f<l)throw Error("Invalid byte index");if(l==f)return!1;if(e=255&c[l],l++,0==(128&e))return e;if(192==(224&e)){if(128<=(n=(31&e)<<6|o()))return n;throw Error("Invalid continuation byte")}if(224==(240&e)){if(2048<=(n=(15&e)<<12|o()<<6|o()))return r(n,t)?n:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(65536<=(n=(7&e)<<18|o()<<12|o()<<6|o())&&n<=1114111))return n;throw Error("Invalid UTF-8 detected")}var c,f,l,h=String.fromCharCode;t.exports={version:"2.1.2",encode:function(t,e){for(var n=!1!==(e=e||{}).strict,r=s(t),i=r.length,o=-1,a="";++o<i;)a+=u(r[o],n);return a},decode:function(t,e){var n=!1!==(e=e||{}).strict;c=s(t),f=c.length,l=0;for(var r,i=[];!1!==(r=a(n));)i.push(r);return function(t){for(var e,n=t.length,r=-1,i="";++r<n;)65535<(e=t[r])&&(i+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=h(e);return i}(i)}}},function(t,e){!function(){"use strict";for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=new Uint8Array(256),t=0;t<o.length;t++)l[o.charCodeAt(t)]=t;e.encode=function(t){var e,n=new Uint8Array(t),r=n.length,i="";for(e=0;e<r;e+=3)i+=o[n[e]>>2],i+=o[(3&n[e])<<4|n[e+1]>>4],i+=o[(15&n[e+1])<<2|n[e+2]>>6],i+=o[63&n[e+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i},e.decode=function(t){var e,n,r,i,o,a=.75*t.length,s=t.length,u=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var c=new ArrayBuffer(a),f=new Uint8Array(c);for(e=0;e<s;e+=4)n=l[t.charCodeAt(e)],r=l[t.charCodeAt(e+1)],i=l[t.charCodeAt(e+2)],o=l[t.charCodeAt(e+3)],f[u++]=n<<2|r>>4,f[u++]=(15&r)<<4|i>>2,f[u++]=(3&i)<<6|63&o;return c}}()},function(t,e){function r(t){return t.map(function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t})}function n(t,e){e=e||{};var n=new o;return r(t).forEach(function(t){n.append(t)}),e.type?n.getBlob(e.type):n.getBlob()}function i(t,e){return new Blob(r(t),e||{})}var o=void 0!==o?o:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,a=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),s=a&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),u=o&&o.prototype.append&&o.prototype.getBlob;"undefined"!=typeof Blob&&(n.prototype=Blob.prototype,i.prototype=Blob.prototype),t.exports=a?s?Blob:i:u?n:void 0},function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}},function(t,e){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){"use strict";function n(t){for(var e="";e=o[t%a]+e,0<(t=Math.floor(t/a)););return e}function r(){var t=n(+new Date);return t!==i?(u=0,i=t):t+"."+n(u++)}for(var i,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),a=64,s={},u=0,c=0;c<a;c++)s[o[c]]=c;r.encode=n,r.decode=function(t){var e=0;for(c=0;c<t.length;c++)e=e*a+s[t.charAt(c)];return e},t.exports=r},function(n,t,s){(function(r){function i(){}function t(t){if(o.call(this,t),this.query=this.query||{},!a){var e="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:{};a=e.___eio=e.___eio||[]}this.index=a.length;var n=this;a.push(function(t){n.onData(t)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=i)},!1)}var o=s(19),e=s(30);n.exports=t;var a,c=/\n/g,f=/\\n/g;e(t,o),t.prototype.supportsBinary=!1,t.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),o.prototype.doClose.call(this)},t.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},t.prototype.doWrite=function(t,e){function n(){r(),e()}function r(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(t){i.onError("jsonp polling iframe removal error",t)}try{var t='<iframe src="javascript:0" name="'+i.iframeId+'">';o=document.createElement(t)}catch(t){(o=document.createElement("iframe")).name=i.iframeId,o.src="javascript:0"}o.id=i.iframeId,i.form.appendChild(o),i.iframe=o}var i=this;if(!this.form){var o,a=document.createElement("form"),s=document.createElement("textarea"),u=this.iframeId="eio_iframe_"+this.index;a.className="socketio",a.style.position="absolute",a.style.top="-1000px",a.style.left="-1000px",a.target=u,a.method="POST",a.setAttribute("accept-charset","utf-8"),s.name="d",a.appendChild(s),document.body.appendChild(a),this.form=a,this.area=s}this.form.action=this.uri(),r(),t=t.replace(f,"\\\n"),this.area.value=t.replace(c,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===i.iframe.readyState&&n()}:this.iframe.onload=n}}).call(t,function(){return this}())},function(t,e,n){function r(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=i&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(h=o),a.call(this,t)}var i,o,a=n(20),s=n(21),u=n(29),c=n(30),f=n(31),l=n(3)("engine.io-client:websocket");if("undefined"==typeof self)try{o=n(34)}catch(t){}else i=self.WebSocket||self.MozWebSocket;var h=i||o;c(t.exports=r,a),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?e?new h(t,e):new h(t):new h(t,e,n)}catch(t){return this.emit("error",t)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},r.prototype.write=function(t){var r=this;this.writable=!1;for(var i=t.length,e=0,n=i;e<n;e++)!function(n){s.encodePacket(n,r.supportsBinary,function(t){if(!r.usingBrowserWebSocket){var e={};if(n.options&&(e.compress=n.options.compress),r.perMessageDeflate)("string"==typeof t?Buffer.byteLength(t):t.length)<r.perMessageDeflate.threshold&&(e.compress=!1)}try{r.usingBrowserWebSocket?r.ws.send(t):r.ws.send(t,e)}catch(t){l("websocket closed before onclose event")}--i||(r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0))})}(t[e])},r.prototype.onClose=function(){a.prototype.onClose.call(this)},r.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";return this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=f()),this.supportsBinary||(t.b64=1),(t=u.encode(t)).length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t},r.prototype.check=function(){return!(!h||"__initialize"in h&&this.name===r.prototype.name)}},function(t,e){},function(t,e){var r=[].indexOf;t.exports=function(t,e){if(r)return t.indexOf(e);for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}},function(t,e,n){"use strict";function r(t,e,n){this.io=t,this.nsp=e,(this.json=this).ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(7),a=n(8),s=n(37),u=n(38),c=n(39),f=n(3)("socket.io-client:socket"),l=n(29),h=n(23);t.exports=r;var p={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},d=a.prototype.emit;a(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[u(t,"open",c(this,"onopen")),u(t,"packet",c(this,"onpacket")),u(t,"close",c(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},r.prototype.send=function(){var t=s(arguments);return t.unshift("message"),this.emit.apply(this,t),this},r.prototype.emit=function(t){if(p.hasOwnProperty(t))return d.apply(this,arguments),this;var e=s(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:h(e))?o.BINARY_EVENT:o.EVENT,data:e,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(f("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},r.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},r.prototype.onopen=function(){if(f("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"===i(this.query)?l.encode(this.query):this.query;f("sending connect packet with query %s",t),this.packet({type:o.CONNECT,query:t})}else this.packet({type:o.CONNECT})},r.prototype.onclose=function(t){f("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},r.prototype.onpacket=function(t){var e=t.nsp===this.nsp,n=t.type===o.ERROR&&"/"===t.nsp;if(e||n)switch(t.type){case o.CONNECT:this.onconnect();break;case o.EVENT:case o.BINARY_EVENT:this.onevent(t);break;case o.ACK:case o.BINARY_ACK:this.onack(t);break;case o.DISCONNECT:this.ondisconnect();break;case o.ERROR:this.emit("error",t.data)}},r.prototype.onevent=function(t){var e=t.data||[];f("emitting event %j",e),null!=t.id&&(f("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?d.apply(this,e):this.receiveBuffer.push(e)},r.prototype.ack=function(e){var n=this,r=!1;return function(){if(!r){r=!0;var t=s(arguments);f("sending ack %j",t),n.packet({type:h(t)?o.BINARY_ACK:o.ACK,id:e,data:t})}}},r.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(f("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):f("bad ack %s",t.id)},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)d.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){f("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(f("performing disconnect (%s)",this.nsp),this.packet({type:o.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},r.prototype.compress=function(t){return this.flags.compress=t,this},r.prototype.binary=function(t){return this.flags.binary=t,this}},function(t,e){t.exports=function(t,e){for(var n=[],r=(e=e||0)||0;r<t.length;r++)n[r-e]=t[r];return n}},function(t,e){"use strict";t.exports=function(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}},function(t,e){var r=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var n=r.call(arguments,2);return function(){return e.apply(t,n.concat(r.call(arguments)))}}},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=0<t.jitter&&t.jitter<=1?t.jitter:0,this.attempts=0}(t.exports=n).prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}}])});