diff --git a/de.html b/de.html index 04927b9..c0662b7 100644 --- a/de.html +++ b/de.html @@ -41,8 +41,25 @@ + + + + + - + diff --git a/en.html b/en.html index b4c6540..23b009c 100644 --- a/en.html +++ b/en.html @@ -41,8 +41,25 @@ + + + + + - + diff --git a/fr.html b/fr.html index 2d771e5..90afc6a 100644 --- a/fr.html +++ b/fr.html @@ -41,8 +41,25 @@ + + + + + - + diff --git a/index.html b/index.html index b4c6540..23b009c 100644 --- a/index.html +++ b/index.html @@ -41,8 +41,25 @@ + + + + + - + diff --git a/main-28db931b42958900aab5.js b/main-28db931b42958900aab5.js new file mode 100644 index 0000000..986bb97 --- /dev/null +++ b/main-28db931b42958900aab5.js @@ -0,0 +1,101 @@ +webpackJsonp([0,1],[function(t,e,n){var r=n(2),i=n(25),a=n(12),o=n(13),s=n(26),u="prototype",c=function(t,e,n){var l,f,h,d,p=t&c.F,g=t&c.G,v=t&c.S,m=t&c.P,y=t&c.B,x=g?r:v?r[e]||(r[e]={}):(r[e]||{})[u],b=g?i:i[e]||(i[e]={}),_=b[u]||(b[u]={});g&&(n=e);for(l in n)f=!p&&x&&void 0!==x[l],h=(f?x:n)[l],d=y&&f?s(h,r):m&&"function"==typeof h?s(Function.call,h):h,x&&o(x,l,h,t&c.U),b[l]!=h&&a(b,l,d),m&&_[l]!=h&&(_[l]=h)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(59)("wks"),i=n(40),a=n(2).Symbol,o="function"==typeof a,s=t.exports=function(t){return r[t]||(r[t]=o&&a[t]||(o?a:i)("Symbol."+t))};s.store=r},function(t,e,n){t.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(1),i=n(98),a=n(24),o=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=a(e,!0),r(n),i)try{return o(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(31),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(19);t.exports=function(t){return Object(r(t))}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(7),i=n(30);t.exports=n(6)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(2),i=n(12),a=n(10),o=n(40)("src"),s="toString",u=Function[s],c=(""+u).split(s);n(25).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,s){var u="function"==typeof n;u&&(a(n,"name")||i(n,"name",e)),t[e]!==n&&(u&&(a(n,o)||i(n,o,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[o]||u.call(this)})},function(t,e,n){var r=n(0),i=n(3),a=n(19),o=/"/g,s=function(t,e,n,r){var i=String(a(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(o,""")+'"'),s+">"+i+""};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){var r=n(47),i=n(19);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(48),i=n(30),a=n(15),o=n(24),s=n(10),u=n(98),c=Object.getOwnPropertyDescriptor;e.f=n(6)?c:function(t,e){if(t=a(t),e=o(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(10),i=n(9),a=n(77)("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(3);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){(function(t,r){var i;(function(){function a(t,e){return t.set(e[0],e[1]),t}function o(t,e){return t.add(e),t}function s(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function u(t,e,n,r){for(var i=-1,a=null==t?0:t.length;++i-1}function p(t,e,n){for(var r=-1,i=null==t?0:t.length;++r-1;);return n}function V(t,e){for(var n=t.length;n--&&$(e,t[n],0)>-1;);return n}function N(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}function z(t){return"\\"+nr[t]}function G(t,e){return null==t?it:t[e]}function H(t){return qn.test(t)}function U(t){return Yn.test(t)}function B(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function W(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function q(t,e){return function(n){return t(e(n))}}function Y(t,e){for(var n=-1,r=t.length,i=0,a=[];++n>>1,zt=[["ary",$t],["bind",mt],["bindKey",yt],["curry",bt],["curryRight",_t],["flip",Tt],["partial",wt],["partialRight",St],["rearg",kt]],Gt="[object Arguments]",Ht="[object Array]",Ut="[object AsyncFunction]",Bt="[object Boolean]",Wt="[object Date]",qt="[object DOMException]",Yt="[object Error]",Xt="[object Function]",Kt="[object GeneratorFunction]",Zt="[object Map]",Qt="[object Number]",Jt="[object Null]",te="[object Object]",ee="[object Promise]",ne="[object Proxy]",re="[object RegExp]",ie="[object Set]",ae="[object String]",oe="[object Symbol]",se="[object Undefined]",ue="[object WeakMap]",ce="[object WeakSet]",le="[object ArrayBuffer]",fe="[object DataView]",he="[object Float32Array]",de="[object Float64Array]",pe="[object Int8Array]",ge="[object Int16Array]",ve="[object Int32Array]",me="[object Uint8Array]",ye="[object Uint8ClampedArray]",xe="[object Uint16Array]",be="[object Uint32Array]",_e=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$e=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Te=RegExp($e.source),Ae=RegExp(ke.source),Ce=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Pe=/<%=([\s\S]+?)%>/g,Ie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oe=/^\w*$/,Me=/^\./,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,De=RegExp(Le.source),je=/^\s+|\s+$/g,Fe=/^\s+/,Ve=/\s+$/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,Ge=/,? & /,He=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/\\(\\)?/g,Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,We=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,Ke=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,tn=/['\n\r\u2028\u2029\\]/g,en="\\ud800-\\udfff",nn="\\u0300-\\u036f",rn="\\ufe20-\\ufe2f",an="\\u20d0-\\u20ff",on=nn+rn+an,sn="\\u2700-\\u27bf",un="a-z\\xdf-\\xf6\\xf8-\\xff",cn="\\xac\\xb1\\xd7\\xf7",ln="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fn="\\u2000-\\u206f",hn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dn="A-Z\\xc0-\\xd6\\xd8-\\xde",pn="\\ufe0e\\ufe0f",gn=cn+ln+fn+hn,vn="['’]",mn="["+en+"]",yn="["+gn+"]",xn="["+on+"]",bn="\\d+",_n="["+sn+"]",wn="["+un+"]",Sn="[^"+en+gn+bn+sn+un+dn+"]",$n="\\ud83c[\\udffb-\\udfff]",kn="(?:"+xn+"|"+$n+")",Tn="[^"+en+"]",An="(?:\\ud83c[\\udde6-\\uddff]){2}",Cn="[\\ud800-\\udbff][\\udc00-\\udfff]",En="["+dn+"]",Pn="\\u200d",In="(?:"+wn+"|"+Sn+")",On="(?:"+En+"|"+Sn+")",Mn="(?:"+vn+"(?:d|ll|m|re|s|t|ve))?",Rn="(?:"+vn+"(?:D|LL|M|RE|S|T|VE))?",Ln=kn+"?",Dn="["+pn+"]?",jn="(?:"+Pn+"(?:"+[Tn,An,Cn].join("|")+")"+Dn+Ln+")*",Fn="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",Vn="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",Nn=Dn+Ln+jn,zn="(?:"+[_n,An,Cn].join("|")+")"+Nn,Gn="(?:"+[Tn+xn+"?",xn,An,Cn,mn].join("|")+")",Hn=RegExp(vn,"g"),Un=RegExp(xn,"g"),Bn=RegExp($n+"(?="+$n+")|"+Gn+Nn,"g"),Wn=RegExp([En+"?"+wn+"+"+Mn+"(?="+[yn,En,"$"].join("|")+")",On+"+"+Rn+"(?="+[yn,En+In,"$"].join("|")+")",En+"?"+In+"+"+Mn,En+"+"+Rn,Vn,Fn,bn,zn].join("|"),"g"),qn=RegExp("["+Pn+en+on+pn+"]"),Yn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Kn=-1,Zn={};Zn[he]=Zn[de]=Zn[pe]=Zn[ge]=Zn[ve]=Zn[me]=Zn[ye]=Zn[xe]=Zn[be]=!0,Zn[Gt]=Zn[Ht]=Zn[le]=Zn[Bt]=Zn[fe]=Zn[Wt]=Zn[Yt]=Zn[Xt]=Zn[Zt]=Zn[Qt]=Zn[te]=Zn[re]=Zn[ie]=Zn[ae]=Zn[ue]=!1;var Qn={};Qn[Gt]=Qn[Ht]=Qn[le]=Qn[fe]=Qn[Bt]=Qn[Wt]=Qn[he]=Qn[de]=Qn[pe]=Qn[ge]=Qn[ve]=Qn[Zt]=Qn[Qt]=Qn[te]=Qn[re]=Qn[ie]=Qn[ae]=Qn[oe]=Qn[me]=Qn[ye]=Qn[xe]=Qn[be]=!0,Qn[Yt]=Qn[Xt]=Qn[ue]=!1;var Jn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},tr={"&":"&","<":"<",">":">",'"':""","'":"'"},er={"&":"&","<":"<",">":">",""":'"',"'":"'"},nr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rr=parseFloat,ir=parseInt,ar="object"==typeof t&&t&&t.Object===Object&&t,or="object"==typeof self&&self&&self.Object===Object&&self,sr=ar||or||Function("return this")(),ur="object"==typeof e&&e&&!e.nodeType&&e,cr=ur&&"object"==typeof r&&r&&!r.nodeType&&r,lr=cr&&cr.exports===ur,fr=lr&&ar.process,hr=function(){try{return fr&&fr.binding&&fr.binding("util")}catch(t){}}(),dr=hr&&hr.isArrayBuffer,pr=hr&&hr.isDate,gr=hr&&hr.isMap,vr=hr&&hr.isRegExp,mr=hr&&hr.isSet,yr=hr&&hr.isTypedArray,xr=C("length"),br=E(Jn),_r=E(tr),wr=E(er),Sr=function t(e){function n(t){if(cu(t)&&!_h(t)&&!(t instanceof b)){if(t instanceof i)return t;if(bl.call(t,"__wrapped__"))return ao(t)}return new i(t)}function r(){}function i(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=it}function b(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ft,this.__views__=[]}function E(){var t=new b(this.__wrapped__);return t.__actions__=Ni(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ni(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ni(this.__views__),t}function Z(){if(this.__filtered__){var t=new b(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function et(){var t=this.__wrapped__.value(),e=this.__dir__,n=_h(t),r=e<0,i=n?t.length:0,a=Ea(0,i,this.__views__),o=a.start,s=a.end,u=s-o,c=r?s:o-1,l=this.__iteratees__,f=l.length,h=0,d=Kl(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return _i(t,this.__actions__);var p=[];t:for(;u--&&h-1}function fn(t,e){var n=this.__data__,r=Mn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function hn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Nn(t,e,n,r,i,a){var o,s=e&ht,u=e&dt,l=e&pt;if(n&&(o=i?n(t,r,i,a):n(t)),o!==it)return o;if(!uu(t))return t;var f=_h(t);if(f){if(o=Oa(t),!s)return Ni(t,o)}else{var h=If(t),d=h==Xt||h==Kt;if(Sh(t))return Ci(t,s);if(h==te||h==Gt||d&&!i){if(o=u||d?{}:Ma(t),!s)return u?Hi(t,Dn(o,t)):Gi(t,Ln(o,t))}else{if(!Qn[h])return i?t:{};o=Ra(t,h,Nn,s)}}a||(a=new _n);var p=a.get(t);if(p)return p;a.set(t,o);var g=l?u?_a:ba:u?Bu:Uu,v=f?it:g(t);return c(v||t,function(r,i){v&&(i=r,r=t[i]),On(o,i,Nn(r,e,n,i,t,a))}),o}function zn(t){var e=Uu(t);return function(n){return Gn(n,t,e)}}function Gn(t,e,n){var r=n.length;if(null==t)return!r;for(t=fl(t);r--;){var i=n[r],a=e[i],o=t[i];if(o===it&&!(i in t)||!a(o))return!1}return!0}function Bn(t,e,n){if("function"!=typeof t)throw new pl(ut);return Rf(function(){t.apply(it,n)},e)}function Wn(t,e,n,r){var i=-1,a=d,o=!0,s=t.length,u=[],c=e.length;if(!s)return u;n&&(e=g(e,L(n))),r?(a=p,o=!1):e.length>=ot&&(a=j,o=!1,e=new yn(e));t:for(;++ii?0:i+n),r=r===it||r>i?i:Tu(r),r<0&&(r+=i),r=n>r?0:Au(r);n0&&n(s)?e>1?er(s,e-1,n,r,i):v(i,s):r||(i[i.length]=s)}return i}function nr(t,e){return t&&_f(t,e,Uu)}function ar(t,e){return t&&wf(t,e,Uu)}function or(t,e){return h(e,function(e){return au(t[e])})}function ur(t,e){e=Ti(e,t);for(var n=0,r=e.length;null!=t&&ne}function xr(t,e){return null!=t&&bl.call(t,e)}function Sr(t,e){return null!=t&&e in fl(t)}function kr(t,e,n){return t>=Kl(e,n)&&t=120&&l.length>=120)?new yn(o&&l):it}l=t[0];var f=-1,h=s[0];t:for(;++f-1;)s!==t&&Rl.call(s,u,1),Rl.call(t,u,1);return t}function ei(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==a){var a=i;ja(i)?Rl.call(t,i,1):yi(t,i)}}return t}function ni(t,e){return t+Hl(Jl()*(e-t+1))}function ri(t,e,n,r){for(var i=-1,a=Xl(Gl((e-t)/(n||1)),0),o=ol(a);a--;)o[r?a:++i]=t,t+=n;return o}function ii(t,e){var n="";if(!t||e<1||e>Lt)return n;do e%2&&(n+=t),e=Hl(e/2),e&&(t+=t);while(e);return n}function ai(t,e){return Lf(Ka(t,e,Rc),t+"")}function oi(t){return Cn(rc(t))}function si(t,e){var n=rc(t);return eo(n,Vn(e,0,n.length))}function ui(t,e,n,r){if(!uu(t))return t;e=Ti(e,t);for(var i=-1,a=e.length,o=a-1,s=t;null!=s&&++ii?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=ol(i);++r>>1,o=t[a];null!==o&&!bu(o)&&(n?o<=e:o=ot){var c=e?null:Af(t);if(c)return X(c);o=!1,i=j,u=new yn}else u=e?[]:s;t:for(;++r=r?t:li(t,e,n)}function Ci(t,e){if(e)return t.slice();var n=t.length,r=Pl?Pl(n):new t.constructor(n);return t.copy(r),r}function Ei(t){var e=new t.constructor(t.byteLength);return new El(e).set(new El(t)),e}function Pi(t,e){var n=e?Ei(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Ii(t,e,n){var r=e?n(W(t),ht):W(t);return m(r,a,new t.constructor)}function Oi(t){var e=new t.constructor(t.source,We.exec(t));return e.lastIndex=t.lastIndex,e}function Mi(t,e,n){var r=e?n(X(t),ht):X(t);return m(r,o,new t.constructor)}function Ri(t){return vf?fl(vf.call(t)):{}}function Li(t,e){var n=e?Ei(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Di(t,e){if(t!==e){var n=t!==it,r=null===t,i=t===t,a=bu(t),o=e!==it,s=null===e,u=e===e,c=bu(e);if(!s&&!c&&!a&&t>e||a&&o&&u&&!s&&!c||r&&o&&u||!n&&u||!i)return 1;if(!r&&!a&&!c&&t=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return t.index-e.index}function Fi(t,e,n,r){for(var i=-1,a=t.length,o=n.length,s=-1,u=e.length,c=Xl(a-o,0),l=ol(u+c),f=!r;++s1?n[i-1]:it,o=i>2?n[2]:it;for(a=t.length>3&&"function"==typeof a?(i--,a):it,o&&Fa(n[0],n[1],o)&&(a=i<3?it:a,i=1),e=fl(e);++r-1?i[a?e[o]:o]:it}}function ta(t){return xa(function(e){var n=e.length,r=n,a=i.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if("function"!=typeof o)throw new pl(ut);if(a&&!s&&"wrapper"==wa(o))var s=new i([],!0)}for(r=s?r:n;++r1&&y.reverse(),f&&us))return!1;var c=a.get(t);if(c&&a.get(e))return c==e;var l=-1,f=!0,h=n&vt?new yn:it;for(a.set(t,e),a.set(e,t);++l1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Ne,"{\n/* [wrapped with "+e+"] */\n")}function Da(t){return _h(t)||bh(t)||!!(Ll&&t&&t[Ll])}function ja(t,e){return e=null==e?Lt:e,!!e&&("number"==typeof t||Ze.test(t))&&t>-1&&t%1==0&&t0){if(++e>=Et)return arguments[0]}else e=0;return t.apply(it,arguments)}}function eo(t,e){var n=-1,r=t.length,i=r-1;for(e=e===it?r:e;++n=this.__values__.length,e=t?it:this.__values__[this.__index__++];return{done:t,value:e}}function os(){return this}function ss(t){for(var e,n=this;n instanceof r;){var i=ao(n);i.__index__=0,i.__values__=it,e?a.__wrapped__=i:e=i;var a=i;n=n.__wrapped__}return a.__wrapped__=t,e}function us(){var t=this.__wrapped__;if(t instanceof b){var e=t;return this.__actions__.length&&(e=new b(this)),e=e.reverse(),e.__actions__.push({func:ns,args:[Oo],thisArg:it}),new i(e,this.__chain__)}return this.thru(Oo)}function cs(){return _i(this.__wrapped__,this.__actions__)}function ls(t,e,n){var r=_h(t)?f:qn;return n&&Fa(t,e,n)&&(e=it),r(t,$a(e,3))}function fs(t,e){var n=_h(t)?h:tr;return n(t,$a(e,3))}function hs(t,e){return er(ys(t,e),1)}function ds(t,e){return er(ys(t,e),Rt)}function ps(t,e,n){return n=n===it?1:Tu(n),er(ys(t,e),n)}function gs(t,e){var n=_h(t)?c:xf;return n(t,$a(e,3))}function vs(t,e){var n=_h(t)?l:bf;return n(t,$a(e,3))}function ms(t,e,n,r){t=Ks(t)?t:rc(t),n=n&&!r?Tu(n):0;var i=t.length;return n<0&&(n=Xl(i+n,0)),xu(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&$(t,e,n)>-1}function ys(t,e){var n=_h(t)?g:Ur;return n(t,$a(e,3))}function xs(t,e,n,r){return null==t?[]:(_h(e)||(e=null==e?[]:[e]),n=r?it:n,_h(n)||(n=null==n?[]:[n]),Kr(t,e,n))}function bs(t,e,n){var r=_h(t)?m:P,i=arguments.length<3;return r(t,$a(e,4),n,i,xf)}function _s(t,e,n){var r=_h(t)?y:P,i=arguments.length<3;return r(t,$a(e,4),n,i,bf)}function ws(t,e){var n=_h(t)?h:tr;return n(t,Ds($a(e,3)))}function Ss(t){var e=_h(t)?Cn:oi;return e(t)}function $s(t,e,n){e=(n?Fa(t,e,n):e===it)?1:Tu(e);var r=_h(t)?En:si;return r(t,e)}function ks(t){var e=_h(t)?Pn:ci;return e(t)}function Ts(t){if(null==t)return 0;if(Ks(t))return xu(t)?J(t):t.length;var e=If(t);return e==Zt||e==ie?t.size:zr(t).length}function As(t,e,n){var r=_h(t)?x:fi;return n&&Fa(t,e,n)&&(e=it),r(t,$a(e,3))}function Cs(t,e){if("function"!=typeof e)throw new pl(ut);return t=Tu(t),function(){if(--t<1)return e.apply(this,arguments)}}function Es(t,e,n){return e=n?it:e,e=t&&null==e?t.length:e,ha(t,$t,it,it,it,it,e)}function Ps(t,e){var n;if("function"!=typeof e)throw new pl(ut);return t=Tu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=it),n}}function Is(t,e,n){e=n?it:e;var r=ha(t,bt,it,it,it,it,it,e);return r.placeholder=Is.placeholder,r}function Os(t,e,n){e=n?it:e;var r=ha(t,_t,it,it,it,it,it,e);return r.placeholder=Os.placeholder,r}function Ms(t,e,n){function r(e){var n=h,r=d;return h=d=it,y=e,g=t.apply(r,n)}function i(t){return y=t,v=Rf(s,e),x?r(t):g}function a(t){var n=t-m,r=t-y,i=e-n;return b?Kl(i,p-r):i}function o(t){var n=t-m,r=t-y;return m===it||n>=e||n<0||b&&r>=p}function s(){var t=ch();return o(t)?u(t):void(v=Rf(s,a(t)))}function u(t){return v=it,_&&h?r(t):(h=d=it,g)}function c(){v!==it&&Tf(v),y=0,h=m=d=v=it}function l(){return v===it?g:u(ch())}function f(){var t=ch(),n=o(t);if(h=arguments,d=this,m=t,n){if(v===it)return i(m);if(b)return v=Rf(s,e),r(m)}return v===it&&(v=Rf(s,e)),g}var h,d,p,g,v,m,y=0,x=!1,b=!1,_=!0;if("function"!=typeof t)throw new pl(ut);return e=Cu(e)||0,uu(n)&&(x=!!n.leading,b="maxWait"in n,p=b?Xl(Cu(n.maxWait)||0,e):p,_="trailing"in n?!!n.trailing:_),f.cancel=c,f.flush=l,f}function Rs(t){return ha(t,Tt)}function Ls(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new pl(ut);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ls.Cache||hn),n}function Ds(t){if("function"!=typeof t)throw new pl(ut);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function js(t){return Ps(2,t)}function Fs(t,e){if("function"!=typeof t)throw new pl(ut);return e=e===it?e:Tu(e),ai(t,e)}function Vs(t,e){if("function"!=typeof t)throw new pl(ut);return e=null==e?0:Xl(Tu(e),0),ai(function(n){var r=n[e],i=Ai(n,0,e);return r&&v(i,r),s(t,this,i)})}function Ns(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new pl(ut);return uu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ms(t,e,{leading:r,maxWait:e,trailing:i})}function zs(t){return Es(t,1)}function Gs(t,e){return gh(ki(e),t)}function Hs(){if(!arguments.length)return[];var t=arguments[0];return _h(t)?t:[t]}function Us(t){return Nn(t,pt)}function Bs(t,e){return e="function"==typeof e?e:it,Nn(t,pt,e)}function Ws(t){return Nn(t,ht|pt)}function qs(t,e){return e="function"==typeof e?e:it,Nn(t,ht|pt,e)}function Ys(t,e){return null==e||Gn(t,e,Uu(e))}function Xs(t,e){return t===e||t!==t&&e!==e}function Ks(t){return null!=t&&su(t.length)&&!au(t)}function Zs(t){return cu(t)&&Ks(t)}function Qs(t){return t===!0||t===!1||cu(t)&&fr(t)==Bt}function Js(t){return cu(t)&&1===t.nodeType&&!mu(t)}function tu(t){if(null==t)return!0;if(Ks(t)&&(_h(t)||"string"==typeof t||"function"==typeof t.splice||Sh(t)||Ch(t)||bh(t)))return!t.length;var e=If(t);if(e==Zt||e==ie)return!t.size;if(Ha(t))return!zr(t).length;for(var n in t)if(bl.call(t,n))return!1;return!0}function eu(t,e){return Or(t,e)}function nu(t,e,n){n="function"==typeof n?n:it;var r=n?n(t,e):it;return r===it?Or(t,e,it,n):!!r}function ru(t){if(!cu(t))return!1;var e=fr(t);return e==Yt||e==qt||"string"==typeof t.message&&"string"==typeof t.name&&!mu(t)}function iu(t){return"number"==typeof t&&Wl(t)}function au(t){if(!uu(t))return!1;var e=fr(t);return e==Xt||e==Kt||e==Ut||e==ne}function ou(t){return"number"==typeof t&&t==Tu(t)}function su(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Lt}function uu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function cu(t){return null!=t&&"object"==typeof t}function lu(t,e){return t===e||Lr(t,e,Ta(e))}function fu(t,e,n){return n="function"==typeof n?n:it,Lr(t,e,Ta(e),n)}function hu(t){return vu(t)&&t!=+t}function du(t){if(Of(t))throw new ul(st);return Dr(t)}function pu(t){return null===t}function gu(t){return null==t}function vu(t){return"number"==typeof t||cu(t)&&fr(t)==Qt}function mu(t){if(!cu(t)||fr(t)!=te)return!1;var e=Il(t);if(null===e)return!0;var n=bl.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&xl.call(n)==$l}function yu(t){return ou(t)&&t>=-Lt&&t<=Lt}function xu(t){return"string"==typeof t||!_h(t)&&cu(t)&&fr(t)==ae}function bu(t){return"symbol"==typeof t||cu(t)&&fr(t)==oe}function _u(t){return t===it}function wu(t){return cu(t)&&If(t)==ue}function Su(t){return cu(t)&&fr(t)==ce}function $u(t){if(!t)return[];if(Ks(t))return xu(t)?tt(t):Ni(t);if(Dl&&t[Dl])return B(t[Dl]());var e=If(t),n=e==Zt?W:e==ie?X:rc;return n(t)}function ku(t){if(!t)return 0===t?t:0;if(t=Cu(t),t===Rt||t===-Rt){var e=t<0?-1:1;return e*Dt}return t===t?t:0}function Tu(t){var e=ku(t),n=e%1;return e===e?n?e-n:e:0}function Au(t){return t?Vn(Tu(t),0,Ft):0}function Cu(t){if("number"==typeof t)return t;if(bu(t))return jt;if(uu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=uu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(je,"");var n=Ye.test(t);return n||Ke.test(t)?ir(t.slice(2),n?2:8):qe.test(t)?jt:+t}function Eu(t){return zi(t,Bu(t))}function Pu(t){return t?Vn(Tu(t),-Lt,Lt):0===t?t:0}function Iu(t){return null==t?"":vi(t)}function Ou(t,e){var n=yf(t);return null==e?n:Ln(n,e)}function Mu(t,e){return w(t,$a(e,3),nr)}function Ru(t,e){return w(t,$a(e,3),ar)}function Lu(t,e){return null==t?t:_f(t,$a(e,3),Bu)}function Du(t,e){return null==t?t:wf(t,$a(e,3),Bu)}function ju(t,e){return t&&nr(t,$a(e,3))}function Fu(t,e){return t&&ar(t,$a(e,3))}function Vu(t){return null==t?[]:or(t,Uu(t))}function Nu(t){return null==t?[]:or(t,Bu(t))}function zu(t,e,n){var r=null==t?it:ur(t,e);return r===it?n:r}function Gu(t,e){return null!=t&&Ia(t,e,xr)}function Hu(t,e){return null!=t&&Ia(t,e,Sr)}function Uu(t){return Ks(t)?An(t):zr(t)}function Bu(t){return Ks(t)?An(t,!0):Gr(t)}function Wu(t,e){var n={};return e=$a(e,3),nr(t,function(t,r,i){jn(n,e(t,r,i),t)}),n}function qu(t,e){var n={};return e=$a(e,3),nr(t,function(t,r,i){jn(n,r,e(t,r,i))}),n}function Yu(t,e){return Xu(t,Ds($a(e)))}function Xu(t,e){if(null==t)return{};var n=g(_a(t),function(t){return[t]});return e=$a(e),Qr(t,n,function(t,n){return e(t,n[0])})}function Ku(t,e,n){e=Ti(e,t);var r=-1,i=e.length;for(i||(i=1,t=it);++re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Jl();return Kl(t+i*(e-t+rr("1e-"+((i+"").length-1))),e)}return ni(t,e)}function uc(t){return td(Iu(t).toLowerCase())}function cc(t){return t=Iu(t),t&&t.replace(Qe,br).replace(Un,"")}function lc(t,e,n){t=Iu(t),e=vi(e);var r=t.length;n=n===it?r:Vn(Tu(n),0,r);var i=n;return n-=e.length,n>=0&&t.slice(n,i)==e}function fc(t){return t=Iu(t),t&&Ae.test(t)?t.replace(ke,_r):t}function hc(t){return t=Iu(t),t&&De.test(t)?t.replace(Le,"\\$&"):t}function dc(t,e,n){t=Iu(t),e=Tu(e);var r=e?J(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return aa(Hl(i),n)+t+aa(Gl(i),n)}function pc(t,e,n){t=Iu(t),e=Tu(e);var r=e?J(t):0;return e&&r>>0)?(t=Iu(t),t&&("string"==typeof e||null!=e&&!Th(e))&&(e=vi(e),!e&&H(t))?Ai(tt(t),0,n):t.split(e,n)):[]}function bc(t,e,n){return t=Iu(t),n=null==n?0:Vn(Tu(n),0,t.length),e=vi(e),t.slice(n,n+e.length)==e}function _c(t,e,r){var i=n.templateSettings;r&&Fa(t,e,r)&&(e=it),t=Iu(t),e=Mh({},e,i,da);var a,o,s=Mh({},e.imports,i.imports,da),u=Uu(s),c=D(s,u),l=0,f=e.interpolate||Je,h="__p += '",d=hl((e.escape||Je).source+"|"+f.source+"|"+(f===Pe?Be:Je).source+"|"+(e.evaluate||Je).source+"|$","g"),p="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Kn+"]")+"\n";t.replace(d,function(e,n,r,i,s,u){return r||(r=i),h+=t.slice(l,u).replace(tn,z),n&&(a=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e}),h+="';\n";var g=e.variable;g||(h="with (obj) {\n"+h+"\n}\n"),h=(o?h.replace(_e,""):h).replace(we,"$1").replace(Se,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=ed(function(){return cl(u,p+"return "+h).apply(it,c)});if(v.source=h,ru(v))throw v;return v}function wc(t){return Iu(t).toLowerCase()}function Sc(t){return Iu(t).toUpperCase()}function $c(t,e,n){if(t=Iu(t),t&&(n||e===it))return t.replace(je,"");if(!t||!(e=vi(e)))return t;var r=tt(t),i=tt(e),a=F(r,i),o=V(r,i)+1;return Ai(r,a,o).join("")}function kc(t,e,n){if(t=Iu(t),t&&(n||e===it))return t.replace(Ve,"");if(!t||!(e=vi(e)))return t;var r=tt(t),i=V(r,tt(e))+1;return Ai(r,0,i).join("")}function Tc(t,e,n){if(t=Iu(t),t&&(n||e===it))return t.replace(Fe,"");if(!t||!(e=vi(e)))return t;var r=tt(t),i=F(r,tt(e));return Ai(r,i).join("")}function Ac(t,e){var n=At,r=Ct;if(uu(e)){var i="separator"in e?e.separator:i;n="length"in e?Tu(e.length):n,r="omission"in e?vi(e.omission):r}t=Iu(t);var a=t.length;if(H(t)){var o=tt(t);a=o.length}if(n>=a)return t;var s=n-J(r);if(s<1)return r;var u=o?Ai(o,0,s).join(""):t.slice(0,s);if(i===it)return u+r;if(o&&(s+=u.length-s),Th(i)){if(t.slice(s).search(i)){var c,l=u;for(i.global||(i=hl(i.source,Iu(We.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var f=c.index;u=u.slice(0,f===it?s:f)}}else if(t.indexOf(vi(i),s)!=s){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r}function Cc(t){return t=Iu(t),t&&Te.test(t)?t.replace($e,wr):t}function Ec(t,e,n){return t=Iu(t),e=n?it:e,e===it?U(t)?rt(t):_(t):t.match(e)||[]}function Pc(t){var e=null==t?0:t.length,n=$a();return t=e?g(t,function(t){if("function"!=typeof t[1])throw new pl(ut);return[n(t[0]),t[1]]}):[],ai(function(n){for(var r=-1;++rLt)return[];var n=Ft,r=Kl(t,Ft);e=$a(e),t-=Ft;for(var i=M(r,e);++n1?t[e-1]:it;return n="function"==typeof n?(t.pop(),n):it,Zo(t,n)}),th=xa(function(t){ +var e=t.length,n=e?t[0]:0,r=this.__wrapped__,a=function(e){return Fn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof b&&ja(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:ns,args:[a],thisArg:it}),new i(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(it),t})):this.thru(a)}),eh=Ui(function(t,e,n){bl.call(t,n)?++t[n]:jn(t,n,1)}),nh=Ji(go),rh=Ji(vo),ih=Ui(function(t,e,n){bl.call(t,n)?t[n].push(e):jn(t,n,[e])}),ah=ai(function(t,e,n){var r=-1,i="function"==typeof e,a=Ks(t)?ol(t.length):[];return xf(t,function(t){a[++r]=i?s(e,t,n):Cr(t,e,n)}),a}),oh=Ui(function(t,e,n){jn(t,n,e)}),sh=Ui(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),uh=ai(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Fa(t,e[0],e[1])?e=[]:n>2&&Fa(e[0],e[1],e[2])&&(e=[e[0]]),Kr(t,er(e,1),[])}),ch=Nl||function(){return sr.Date.now()},lh=ai(function(t,e,n){var r=mt;if(n.length){var i=Y(n,Sa(lh));r|=wt}return ha(t,r,e,n,i)}),fh=ai(function(t,e,n){var r=mt|yt;if(n.length){var i=Y(n,Sa(fh));r|=wt}return ha(e,r,t,n,i)}),hh=ai(function(t,e){return Bn(t,1,e)}),dh=ai(function(t,e,n){return Bn(t,Cu(e)||0,n)});Ls.Cache=hn;var ph=kf(function(t,e){e=1==e.length&&_h(e[0])?g(e[0],L($a())):g(er(e,1),L($a()));var n=e.length;return ai(function(r){for(var i=-1,a=Kl(r.length,n);++i=e}),bh=Er(function(){return arguments}())?Er:function(t){return cu(t)&&bl.call(t,"callee")&&!Ml.call(t,"callee")},_h=ol.isArray,wh=dr?L(dr):Pr,Sh=Bl||Bc,$h=pr?L(pr):Ir,kh=gr?L(gr):Rr,Th=vr?L(vr):jr,Ah=mr?L(mr):Fr,Ch=yr?L(yr):Vr,Eh=ua(Hr),Ph=ua(function(t,e){return t<=e}),Ih=Bi(function(t,e){if(Ha(e)||Ks(e))return void zi(e,Uu(e),t);for(var n in e)bl.call(e,n)&&On(t,n,e[n])}),Oh=Bi(function(t,e){zi(e,Bu(e),t)}),Mh=Bi(function(t,e,n,r){zi(e,Bu(e),t,r)}),Rh=Bi(function(t,e,n,r){zi(e,Uu(e),t,r)}),Lh=xa(Fn),Dh=ai(function(t){return t.push(it,da),s(Mh,it,t)}),jh=ai(function(t){return t.push(it,pa),s(Gh,it,t)}),Fh=na(function(t,e,n){t[e]=n},Oc(Rc)),Vh=na(function(t,e,n){bl.call(t,e)?t[e].push(n):t[e]=[n]},$a),Nh=ai(Cr),zh=Bi(function(t,e,n){qr(t,e,n)}),Gh=Bi(function(t,e,n,r){qr(t,e,n,r)}),Hh=xa(function(t,e){var n={};if(null==t)return n;var r=!1;e=g(e,function(e){return e=Ti(e,t),r||(r=e.length>1),e}),zi(t,_a(t),n),r&&(n=Nn(n,ht|dt|pt,ga));for(var i=e.length;i--;)yi(n,e[i]);return n}),Uh=xa(function(t,e){return null==t?{}:Zr(t,e)}),Bh=fa(Uu),Wh=fa(Bu),qh=Ki(function(t,e,n){return e=e.toLowerCase(),t+(n?uc(e):e)}),Yh=Ki(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Xh=Ki(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Kh=Xi("toLowerCase"),Zh=Ki(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Qh=Ki(function(t,e,n){return t+(n?" ":"")+td(e)}),Jh=Ki(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),td=Xi("toUpperCase"),ed=ai(function(t,e){try{return s(t,it,e)}catch(t){return ru(t)?t:new ul(t)}}),nd=xa(function(t,e){return c(e,function(e){e=no(e),jn(t,e,lh(t[e],t))}),t}),rd=ta(),id=ta(!0),ad=ai(function(t,e){return function(n){return Cr(n,t,e)}}),od=ai(function(t,e){return function(n){return Cr(t,n,e)}}),sd=ia(g),ud=ia(f),cd=ia(x),ld=sa(),fd=sa(!0),hd=ra(function(t,e){return t+e},0),dd=la("ceil"),pd=ra(function(t,e){return t/e},1),gd=la("floor"),vd=ra(function(t,e){return t*e},1),md=la("round"),yd=ra(function(t,e){return t-e},0);return n.after=Cs,n.ary=Es,n.assign=Ih,n.assignIn=Oh,n.assignInWith=Mh,n.assignWith=Rh,n.at=Lh,n.before=Ps,n.bind=lh,n.bindAll=nd,n.bindKey=fh,n.castArray=Hs,n.chain=ts,n.chunk=oo,n.compact=so,n.concat=uo,n.cond=Pc,n.conforms=Ic,n.constant=Oc,n.countBy=eh,n.create=Ou,n.curry=Is,n.curryRight=Os,n.debounce=Ms,n.defaults=Dh,n.defaultsDeep=jh,n.defer=hh,n.delay=dh,n.difference=jf,n.differenceBy=Ff,n.differenceWith=Vf,n.drop=co,n.dropRight=lo,n.dropRightWhile=fo,n.dropWhile=ho,n.fill=po,n.filter=fs,n.flatMap=hs,n.flatMapDeep=ds,n.flatMapDepth=ps,n.flatten=mo,n.flattenDeep=yo,n.flattenDepth=xo,n.flip=Rs,n.flow=rd,n.flowRight=id,n.fromPairs=bo,n.functions=Vu,n.functionsIn=Nu,n.groupBy=ih,n.initial=So,n.intersection=Nf,n.intersectionBy=zf,n.intersectionWith=Gf,n.invert=Fh,n.invertBy=Vh,n.invokeMap=ah,n.iteratee=Lc,n.keyBy=oh,n.keys=Uu,n.keysIn=Bu,n.map=ys,n.mapKeys=Wu,n.mapValues=qu,n.matches=Dc,n.matchesProperty=jc,n.memoize=Ls,n.merge=zh,n.mergeWith=Gh,n.method=ad,n.methodOf=od,n.mixin=Fc,n.negate=Ds,n.nthArg=zc,n.omit=Hh,n.omitBy=Yu,n.once=js,n.orderBy=xs,n.over=sd,n.overArgs=ph,n.overEvery=ud,n.overSome=cd,n.partial=gh,n.partialRight=vh,n.partition=sh,n.pick=Uh,n.pickBy=Xu,n.property=Gc,n.propertyOf=Hc,n.pull=Hf,n.pullAll=Co,n.pullAllBy=Eo,n.pullAllWith=Po,n.pullAt=Uf,n.range=ld,n.rangeRight=fd,n.rearg=mh,n.reject=ws,n.remove=Io,n.rest=Fs,n.reverse=Oo,n.sampleSize=$s,n.set=Zu,n.setWith=Qu,n.shuffle=ks,n.slice=Mo,n.sortBy=uh,n.sortedUniq=No,n.sortedUniqBy=zo,n.split=xc,n.spread=Vs,n.tail=Go,n.take=Ho,n.takeRight=Uo,n.takeRightWhile=Bo,n.takeWhile=Wo,n.tap=es,n.throttle=Ns,n.thru=ns,n.toArray=$u,n.toPairs=Bh,n.toPairsIn=Wh,n.toPath=Kc,n.toPlainObject=Eu,n.transform=Ju,n.unary=zs,n.union=Bf,n.unionBy=Wf,n.unionWith=qf,n.uniq=qo,n.uniqBy=Yo,n.uniqWith=Xo,n.unset=tc,n.unzip=Ko,n.unzipWith=Zo,n.update=ec,n.updateWith=nc,n.values=rc,n.valuesIn=ic,n.without=Yf,n.words=Ec,n.wrap=Gs,n.xor=Xf,n.xorBy=Kf,n.xorWith=Zf,n.zip=Qf,n.zipObject=Qo,n.zipObjectDeep=Jo,n.zipWith=Jf,n.entries=Bh,n.entriesIn=Wh,n.extend=Oh,n.extendWith=Mh,Fc(n,n),n.add=hd,n.attempt=ed,n.camelCase=qh,n.capitalize=uc,n.ceil=dd,n.clamp=ac,n.clone=Us,n.cloneDeep=Ws,n.cloneDeepWith=qs,n.cloneWith=Bs,n.conformsTo=Ys,n.deburr=cc,n.defaultTo=Mc,n.divide=pd,n.endsWith=lc,n.eq=Xs,n.escape=fc,n.escapeRegExp=hc,n.every=ls,n.find=nh,n.findIndex=go,n.findKey=Mu,n.findLast=rh,n.findLastIndex=vo,n.findLastKey=Ru,n.floor=gd,n.forEach=gs,n.forEachRight=vs,n.forIn=Lu,n.forInRight=Du,n.forOwn=ju,n.forOwnRight=Fu,n.get=zu,n.gt=yh,n.gte=xh,n.has=Gu,n.hasIn=Hu,n.head=_o,n.identity=Rc,n.includes=ms,n.indexOf=wo,n.inRange=oc,n.invoke=Nh,n.isArguments=bh,n.isArray=_h,n.isArrayBuffer=wh,n.isArrayLike=Ks,n.isArrayLikeObject=Zs,n.isBoolean=Qs,n.isBuffer=Sh,n.isDate=$h,n.isElement=Js,n.isEmpty=tu,n.isEqual=eu,n.isEqualWith=nu,n.isError=ru,n.isFinite=iu,n.isFunction=au,n.isInteger=ou,n.isLength=su,n.isMap=kh,n.isMatch=lu,n.isMatchWith=fu,n.isNaN=hu,n.isNative=du,n.isNil=gu,n.isNull=pu,n.isNumber=vu,n.isObject=uu,n.isObjectLike=cu,n.isPlainObject=mu,n.isRegExp=Th,n.isSafeInteger=yu,n.isSet=Ah,n.isString=xu,n.isSymbol=bu,n.isTypedArray=Ch,n.isUndefined=_u,n.isWeakMap=wu,n.isWeakSet=Su,n.join=$o,n.kebabCase=Yh,n.last=ko,n.lastIndexOf=To,n.lowerCase=Xh,n.lowerFirst=Kh,n.lt=Eh,n.lte=Ph,n.max=Qc,n.maxBy=Jc,n.mean=tl,n.meanBy=el,n.min=nl,n.minBy=rl,n.stubArray=Uc,n.stubFalse=Bc,n.stubObject=Wc,n.stubString=qc,n.stubTrue=Yc,n.multiply=vd,n.nth=Ao,n.noConflict=Vc,n.noop=Nc,n.now=ch,n.pad=dc,n.padEnd=pc,n.padStart=gc,n.parseInt=vc,n.random=sc,n.reduce=bs,n.reduceRight=_s,n.repeat=mc,n.replace=yc,n.result=Ku,n.round=md,n.runInContext=t,n.sample=Ss,n.size=Ts,n.snakeCase=Zh,n.some=As,n.sortedIndex=Ro,n.sortedIndexBy=Lo,n.sortedIndexOf=Do,n.sortedLastIndex=jo,n.sortedLastIndexBy=Fo,n.sortedLastIndexOf=Vo,n.startCase=Qh,n.startsWith=bc,n.subtract=yd,n.sum=il,n.sumBy=al,n.template=_c,n.times=Xc,n.toFinite=ku,n.toInteger=Tu,n.toLength=Au,n.toLower=wc,n.toNumber=Cu,n.toSafeInteger=Pu,n.toString=Iu,n.toUpper=Sc,n.trim=$c,n.trimEnd=kc,n.trimStart=Tc,n.truncate=Ac,n.unescape=Cc,n.uniqueId=Zc,n.upperCase=Jh,n.upperFirst=td,n.each=gs,n.eachRight=vs,n.first=_o,Fc(n,function(){var t={};return nr(n,function(e,r){bl.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION=at,c(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),c(["drop","take"],function(t,e){b.prototype[t]=function(n){n=n===it?1:Xl(Tu(n),0);var r=this.__filtered__&&!e?new b(this):this.clone();return r.__filtered__?r.__takeCount__=Kl(n,r.__takeCount__):r.__views__.push({size:Kl(n,Ft),type:t+(r.__dir__<0?"Right":"")}),r},b.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),c(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==It||n==Mt;b.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:$a(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),c(["head","last"],function(t,e){var n="take"+(e?"Right":"");b.prototype[t]=function(){return this[n](1).value()[0]}}),c(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");b.prototype[t]=function(){return this.__filtered__?new b(this):this[n](1)}}),b.prototype.compact=function(){return this.filter(Rc)},b.prototype.find=function(t){return this.filter(t).head()},b.prototype.findLast=function(t){return this.reverse().find(t)},b.prototype.invokeMap=ai(function(t,e){return"function"==typeof t?new b(this):this.map(function(n){return Cr(n,t,e)})}),b.prototype.reject=function(t){return this.filter(Ds($a(t)))},b.prototype.slice=function(t,e){t=Tu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new b(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==it&&(e=Tu(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},b.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},b.prototype.toArray=function(){return this.take(Ft)},nr(b.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),a=/^(?:head|last)$/.test(e),o=n[a?"take"+("last"==e?"Right":""):e],s=a||/^find/.test(e);o&&(n.prototype[e]=function(){var e=this.__wrapped__,u=a?[1]:arguments,c=e instanceof b,l=u[0],f=c||_h(e),h=function(t){var e=o.apply(n,v([t],u));return a&&d?e[0]:e};f&&r&&"function"==typeof l&&1!=l.length&&(c=f=!1);var d=this.__chain__,p=!!this.__actions__.length,g=s&&!d,m=c&&!p;if(!s&&f){e=m?e:new b(this);var y=t.apply(e,u);return y.__actions__.push({func:ns,args:[h],thisArg:it}),new i(y,d)}return g&&m?t.apply(this,u):(y=this.thru(h),g?a?y.value()[0]:y.value():y)})}),c(["pop","push","shift","sort","splice","unshift"],function(t){var e=gl[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var n=this.value();return e.apply(_h(n)?n:[],t)}return this[r](function(n){return e.apply(_h(n)?n:[],t)})}}),nr(b.prototype,function(t,e){var r=n[e];if(r){var i=r.name+"",a=cf[i]||(cf[i]=[]);a.push({name:e,func:r})}}),cf[ea(it,yt).name]=[{name:"wrapper",func:it}],b.prototype.clone=E,b.prototype.reverse=Z,b.prototype.value=et,n.prototype.at=th,n.prototype.chain=rs,n.prototype.commit=is,n.prototype.next=as,n.prototype.plant=ss,n.prototype.reverse=us,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=cs,n.prototype.first=n.prototype.head,Dl&&(n.prototype[Dl]=os),n},$r=Sr();sr._=$r,i=function(){return $r}.call(e,n,e,r),!(i!==it&&(r.exports=i))}).call(this)}).call(e,n(49),n(88)(t))},function(t,e,n){var r=n(26),i=n(47),a=n(9),o=n(8),s=n(146);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,h=5==t||f,d=e||s;return function(e,s,p){for(var g,v,m=a(e),y=i(m),x=r(s,p,3),b=o(y.length),_=0,w=n?d(e,b):u?d(e,0):void 0;b>_;_++)if((h||_ in y)&&(g=y[_],v=x(g,_,m),t))if(n)w[_]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return _;case 2:w.push(g)}else if(l)return!1;return f?-1:c||l?l:w}}},function(t,e,n){var r=n(0),i=n(25),a=n(3);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],o={};o[t]=e(n),r(r.S+r.F*a(function(){n(1)}),"Object",o)}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(11);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(114),i=n(0),a=n(59)("metadata"),o=a.store||(a.store=new(n(117))),s=function(t,e,n){var i=o.get(t);if(!i){if(!n)return;o.set(t,i=new r)}var a=i.get(e);if(!a){if(!n)return;i.set(e,a=new r)}return a},u=function(t,e,n){var r=s(e,n,!1);return void 0!==r&&r.has(t)},c=function(t,e,n){var r=s(e,n,!1);return void 0===r?void 0:r.get(t)},l=function(t,e,n,r){s(n,r,!0).set(t,e)},f=function(t,e){var n=s(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},h=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},d=function(t){i(i.S,"Reflect",t)};t.exports={store:o,map:s,has:u,get:c,set:l,keys:f,key:h,exp:d}},function(t,e,n){"use strict";if(n(6)){var r=n(33),i=n(2),a=n(3),o=n(0),s=n(60),u=n(84),c=n(26),l=n(32),f=n(30),h=n(12),d=n(37),p=n(31),g=n(8),v=n(39),m=n(24),y=n(10),x=n(111),b=n(46),_=n(4),w=n(9),S=n(69),$=n(34),k=n(17),T=n(35).f,A=n(86),C=n(40),E=n(5),P=n(22),I=n(50),O=n(78),M=n(87),R=n(43),L=n(56),D=n(38),j=n(62),F=n(91),V=n(7),N=n(16),z=V.f,G=N.f,H=i.RangeError,U=i.TypeError,B=i.Uint8Array,W="ArrayBuffer",q="Shared"+W,Y="BYTES_PER_ELEMENT",X="prototype",K=Array[X],Z=u.ArrayBuffer,Q=u.DataView,J=P(0),tt=P(2),et=P(3),nt=P(4),rt=P(5),it=P(6),at=I(!0),ot=I(!1),st=M.values,ut=M.keys,ct=M.entries,lt=K.lastIndexOf,ft=K.reduce,ht=K.reduceRight,dt=K.join,pt=K.sort,gt=K.slice,vt=K.toString,mt=K.toLocaleString,yt=E("iterator"),xt=E("toStringTag"),bt=C("typed_constructor"),_t=C("def_constructor"),wt=s.CONSTR,St=s.TYPED,$t=s.VIEW,kt="Wrong length!",Tt=P(1,function(t,e){return Ot(O(t,t[_t]),e)}),At=a(function(){return 1===new B(new Uint16Array([1]).buffer)[0]}),Ct=!!B&&!!B[X].set&&a(function(){new B(1).set({})}),Et=function(t,e){if(void 0===t)throw U(kt);var n=+t,r=g(t);if(e&&!x(n,r))throw H(kt);return r},Pt=function(t,e){var n=p(t);if(n<0||n%e)throw H("Wrong offset!");return n},It=function(t){if(_(t)&&St in t)return t;throw U(t+" is not a typed array!")},Ot=function(t,e){if(!(_(t)&&bt in t))throw U("It is not a typed array constructor!");return new t(e)},Mt=function(t,e){return Rt(O(t,t[_t]),e)},Rt=function(t,e){for(var n=0,r=e.length,i=Ot(t,r);r>n;)i[n]=e[n++];return i},Lt=function(t,e,n){z(t,e,{get:function(){return this._d[n]}})},Dt=function(t){var e,n,r,i,a,o,s=w(t),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,h=A(s);if(void 0!=h&&!S(h)){for(o=h.call(s),r=[],e=0;!(a=o.next()).done;e++)r.push(a.value);s=r}for(f&&u>2&&(l=c(l,arguments[2],2)),e=0,n=g(s.length),i=Ot(this,n);n>e;e++)i[e]=f?l(s[e],e):s[e];return i},jt=function(){for(var t=0,e=arguments.length,n=Ot(this,e);e>t;)n[t]=arguments[t++];return n},Ft=!!B&&a(function(){mt.call(new B(1))}),Vt=function(){return mt.apply(Ft?gt.call(It(this)):It(this),arguments)},Nt={copyWithin:function(t,e){return F.call(It(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(It(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return j.apply(It(this),arguments)},filter:function(t){return Mt(this,tt(It(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(It(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return it(It(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){J(It(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return ot(It(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return at(It(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return dt.apply(It(this),arguments)},lastIndexOf:function(t){return lt.apply(It(this),arguments)},map:function(t){return Tt(It(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ft.apply(It(this),arguments)},reduceRight:function(t){return ht.apply(It(this),arguments)},reverse:function(){for(var t,e=this,n=It(e).length,r=Math.floor(n/2),i=0;i1?arguments[1]:void 0)},sort:function(t){return pt.call(It(this),t)},subarray:function(t,e){var n=It(this),r=n.length,i=v(t,r);return new(O(n,n[_t]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,g((void 0===e?r:v(e,r))-i))}},zt=function(t,e){return Mt(this,gt.call(It(this),t,e))},Gt=function(t){It(this);var e=Pt(arguments[1],1),n=this.length,r=w(t),i=g(r.length),a=0;if(i+e>n)throw H(kt);for(;a255?255:255&r),i.v[p](n*e+i.o,r,At)},E=function(t,e){z(t,e,{get:function(){return A(this,e)},set:function(t){return C(this,e,t)},enumerable:!0})};x?(v=n(function(t,n,r,i){l(t,v,c,"_d");var a,o,s,u,f=0,d=0;if(_(n)){if(!(n instanceof Z||(u=b(n))==W||u==q))return St in n?Rt(v,n):Dt.call(v,n);a=n,d=Pt(r,e);var p=n.byteLength;if(void 0===i){if(p%e)throw H(kt);if(o=p-d,o<0)throw H(kt)}else if(o=g(i)*e,o+d>p)throw H(kt);s=o/e}else s=Et(n,!0),o=s*e,a=new Z(o);for(h(t,"_d",{b:a,o:d,l:o,e:s,v:new Q(a)});f0?r:n)(t)}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e){t.exports=!1},function(t,e,n){var r=n(1),i=n(104),a=n(65),o=n(77)("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=n(64)("iframe"),r=a.length,i="<",o=">";for(e.style.display="none",n(67).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+o+"document.F=Object"+i+"/script"+o),t.close(),c=t.F;r--;)delete c[u][a[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[o]=t):n=c(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(106),i=n(65).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(106),i=n(65);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(13);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){"use strict";var r=n(2),i=n(7),a=n(6),o=n(5)("species");t.exports=function(t){var e=r[t];a&&e&&!e[o]&&i.f(e,o,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(31),i=Math.max,a=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):a(t,e)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(5)("unscopables"),i=Array.prototype;void 0==i[r]&&n(12)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){var r=n(26),i=n(100),a=n(69),o=n(1),s=n(8),u=n(86),c={},l={},e=t.exports=function(t,e,n,f,h){var d,p,g,v,m=h?function(){return t}:u(t),y=r(n,f,e?2:1),x=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(a(m)){for(d=s(t.length);d>x;x++)if(v=e?y(o(p=t[x])[0],p[1]):y(t[x]),v===c||v===l)return v}else for(g=m.call(t);!(p=g.next()).done;)if(v=i(g,y,p.value,e),v===c||v===l)return v};e.BREAK=c,e.RETURN=l},function(t,e){t.exports={}},function(t,e,n){var r=n(7).f,i=n(10),a=n(5)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),i=n(19),a=n(3),o=n(82),s="["+o+"]",u="​…",c=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),f=function(t,e,n){var i={},s=a(function(){return!!o[t]()||u[t]()!=u}),c=i[t]=s?e(h):o[t];n&&(i[n]=c),r(r.P+r.F*s,"String",i)},h=f.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(l,"")),t};t.exports=f},function(t,e,n){var r=n(18),i=n(5)("toStringTag"),a="Arguments"==r(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=o(e=Object(t),i))?n:a?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var r=n(18);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(15),i=n(8),a=n(39);t.exports=function(t){return function(e,n,o){var s,u=r(e),c=i(u.length),l=a(o,c);if(t&&n!=n){for(;c>l;)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){"use strict";var r=n(2),i=n(0),a=n(13),o=n(37),s=n(29),u=n(42),c=n(32),l=n(4),f=n(3),h=n(56),d=n(44),p=n(68);t.exports=function(t,e,n,g,v,m){var y=r[t],x=y,b=v?"set":"add",_=x&&x.prototype,w={},S=function(t){var e=_[t];a(_,t,"delete"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof x&&(m||_.forEach&&!f(function(){(new x).entries().next()}))){var $=new x,k=$[b](m?{}:-0,1)!=$,T=f(function(){$.has(1)}),A=h(function(t){new x(t)}),C=!m&&f(function(){for(var t=new x,e=5;e--;)t[b](e,e);return!t.has(-0)});A||(x=e(function(e,n){c(e,x,t);var r=p(new y,e,x);return void 0!=n&&u(n,v,r[b],r),r}),x.prototype=_,_.constructor=x),(T||C)&&(S("delete"),S("has"),v&&S("get")),(C||k)&&S(b),m&&_.clear&&delete _.clear}else x=g.getConstructor(e,t,v,b),o(x.prototype,n),s.NEED=!0;return d(x,t),w[t]=x,i(i.G+i.W+i.F*(x!=y),w),m||g.setStrong(x,t,v),x}},function(t,e,n){"use strict";var r=n(12),i=n(13),a=n(3),o=n(19),s=n(5);t.exports=function(t,e,n){var u=s(t),c=n(o,u,""[t]),l=c[0],f=c[1];a(function(){var e={};return e[u]=function(){return 7},7!=""[t](e)})&&(i(String.prototype,t,l),r(RegExp.prototype,u,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)}))}},function(t,e,n){"use strict";var r=n(1);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(4),i=n(18),a=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(5)("iterator"),i=!1;try{var a=[7][r]();a.return=function(){i=!0},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var a=[7],o=a[r]();o.next=function(){return{done:n=!0}},a[r]=function(){return o},t(a)}catch(t){}return n}},function(t,e,n){t.exports=n(33)||!n(3)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n(2)[t]})},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(2),i="__core-js_shared__",a=r[i]||(r[i]={});t.exports=function(t){return a[t]||(a[t]={})}},function(t,e,n){for(var r,i=n(2),a=n(12),o=n(40),s=o("typed_array"),u=o("view"),c=!(!i.ArrayBuffer||!i.DataView),l=c,f=0,h=9,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(7),i=n(30);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(4),i=n(2).document,a=r(i)&&r(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){t.exports=n(2).document&&document.documentElement},function(t,e,n){var r=n(4),i=n(76).set;t.exports=function(t,e,n){var a,o=e.constructor;return o!==n&&"function"==typeof o&&(a=o.prototype)!==n.prototype&&r(a)&&i&&i(t,a),t}},function(t,e,n){var r=n(43),i=n(5)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[i]===t)}},function(t,e,n){var r=n(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(34),i=n(30),a=n(44),o={};n(12)(o,n(5)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(o,{next:i(1,n)}),a(t,e+" Iterator")}},function(t,e,n){"use strict";var r=n(33),i=n(0),a=n(13),o=n(12),s=n(10),u=n(43),c=n(71),l=n(44),f=n(17),h=n(5)("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",g="keys",v="values",m=function(){return this};t.exports=function(t,e,n,y,x,b,_){c(n,e,y);var w,S,$,k=function(t){if(!d&&t in E)return E[t];switch(t){case g:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},T=e+" Iterator",A=x==v,C=!1,E=t.prototype,P=E[h]||E[p]||x&&E[x],I=P||k(x),O=x?A?k("entries"):I:void 0,M="Array"==e?E.entries||P:P;if(M&&($=f(M.call(new t)),$!==Object.prototype&&(l($,T,!0),r||s($,h)||o($,h,m))),A&&P&&P.name!==v&&(C=!0,I=function(){return P.call(this)}),r&&!_||!d&&!C&&E[h]||o(E,h,I),u[e]=I,u[T]=m,x)if(w={values:A?I:k(v),keys:b?I:k(g),entries:O},_)for(S in w)S in E||a(E,S,w[S]);else i(i.P+i.F*(d||C),e,w);return w}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){var r=n(2),i=n(83).set,a=r.MutationObserver||r.WebKitMutationObserver,o=r.process,s=r.Promise,u="process"==n(18)(o);t.exports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=o.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){o.nextTick(c)};else if(a){var l=!0,f=document.createTextNode("");new a(c).observe(f,{characterData:!0}),n=function(){f.data=l=!l}}else if(s&&s.resolve){var h=s.resolve();n=function(){h.then(c)}}else n=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){var r=n(4),i=n(1),a=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(26)(Function.call,n(16).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:a}},function(t,e,n){var r=n(59)("keys"),i=n(40);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(1),i=n(11),a=n(5)("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},function(t,e,n){var r=n(31),i=n(19);t.exports=function(t){return function(e,n){var a,o,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(a=s.charCodeAt(u),a<55296||a>56319||u+1===c||(o=s.charCodeAt(u+1))<56320||o>57343?t?s.charAt(u):a:t?s.slice(u,u+2):(a-55296<<10)+(o-56320)+65536)}}},function(t,e,n){var r=n(55),i=n(19);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},function(t,e,n){"use strict";var r=n(31),i=n(19);t.exports=function(t){var e=String(i(this)),n="",a=r(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var r,i,a,o=n(26),s=n(54),u=n(67),c=n(64),l=n(2),f=l.process,h=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,g=0,v={},m="onreadystatechange",y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},x=function(t){y.call(t.data)};h&&d||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){s("function"==typeof t?t:Function(t),e)},r(g),g},d=function(t){delete v[t]},"process"==n(18)(f)?r=function(t){f.nextTick(o(y,t,1))}:p?(i=new p,a=i.port2,i.port1.onmessage=x,r=o(a.postMessage,a,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",x,!1)):r=m in c("script")?function(t){u.appendChild(c("script"))[m]=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(o(y,t,1),0)}),t.exports={set:h,clear:d}},function(t,e,n){"use strict";var r=n(2),i=n(6),a=n(33),o=n(60),s=n(12),u=n(37),c=n(3),l=n(32),f=n(31),h=n(8),d=n(35).f,p=n(7).f,g=n(62),v=n(44),m="ArrayBuffer",y="DataView",x="prototype",b="Wrong length!",_="Wrong index!",w=r[m],S=r[y],$=r.Math,k=r.RangeError,T=r.Infinity,A=w,C=$.abs,E=$.pow,P=$.floor,I=$.log,O=$.LN2,M="buffer",R="byteLength",L="byteOffset",D=i?"_b":M,j=i?"_l":R,F=i?"_o":L,V=function(t,e,n){ +var r,i,a,o=Array(n),s=8*n-e-1,u=(1<>1,l=23===e?E(2,-24)-E(2,-77):0,f=0,h=t<0||0===t&&1/t<0?1:0;for(t=C(t),t!=t||t===T?(i=t!=t?1:0,r=u):(r=P(I(t)/O),t*(a=E(2,-r))<1&&(r--,a*=2),t+=r+c>=1?l/a:l*E(2,1-c),t*a>=2&&(r++,a/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(t*a-1)*E(2,e),r+=c):(i=t*E(2,c-1)*E(2,e),r=0));e>=8;o[f++]=255&i,i/=256,e-=8);for(r=r<0;o[f++]=255&r,r/=256,s-=8);return o[--f]|=128*h,o},N=function(t,e,n){var r,i=8*n-e-1,a=(1<>1,s=i-7,u=n-1,c=t[u--],l=127&c;for(c>>=7;s>0;l=256*l+t[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=e;s>0;r=256*r+t[u],u--,s-=8);if(0===l)l=1-o;else{if(l===a)return r?NaN:c?-T:T;r+=E(2,e),l-=o}return(c?-1:1)*r*E(2,l-e)},z=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},G=function(t){return[255&t]},H=function(t){return[255&t,t>>8&255]},U=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},B=function(t){return V(t,52,8)},W=function(t){return V(t,23,4)},q=function(t,e,n){p(t[x],e,{get:function(){return this[n]}})},Y=function(t,e,n,r){var i=+n,a=f(i);if(i!=a||a<0||a+e>t[j])throw k(_);var o=t[D]._b,s=a+t[F],u=o.slice(s,s+e);return r?u:u.reverse()},X=function(t,e,n,r,i,a){var o=+n,s=f(o);if(o!=s||s<0||s+e>t[j])throw k(_);for(var u=t[D]._b,c=s+t[F],l=r(+i),h=0;htt;)(Z=J[tt++])in w||s(w,Z,A[Z]);a||(Q.constructor=w)}var et=new S(new w(2)),nt=S[x].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||u(S[x],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else w=function(t){var e=K(this,t);this._b=g.call(Array(e),0),this[j]=e},S=function(t,e,n){l(this,S,y),l(t,w,y);var r=t[j],i=f(e);if(i<0||i>r)throw k("Wrong offset!");if(n=void 0===n?r-i:h(n),i+n>r)throw k(b);this[D]=t,this[F]=i,this[j]=n},i&&(q(w,R,"_l"),q(S,M,"_b"),q(S,R,"_l"),q(S,L,"_o")),u(S[x],{getInt8:function(t){return Y(this,1,t)[0]<<24>>24},getUint8:function(t){return Y(this,1,t)[0]},getInt16:function(t){var e=Y(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Y(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return z(Y(this,4,t,arguments[1]))},getUint32:function(t){return z(Y(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return N(Y(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return N(Y(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){X(this,1,t,G,e)},setUint8:function(t,e){X(this,1,t,G,e)},setInt16:function(t,e){X(this,2,t,H,e,arguments[2])},setUint16:function(t,e){X(this,2,t,H,e,arguments[2])},setInt32:function(t,e){X(this,4,t,U,e,arguments[2])},setUint32:function(t,e){X(this,4,t,U,e,arguments[2])},setFloat32:function(t,e){X(this,4,t,W,e,arguments[2])},setFloat64:function(t,e){X(this,8,t,B,e,arguments[2])}});v(w,m),v(S,y),s(S[x],o.VIEW,!0),e[m]=w,e[y]=S},function(t,e,n){var r=n(2),i=n(25),a=n(33),o=n(113),s=n(7).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=a?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:o.f(t)})}},function(t,e,n){var r=n(46),i=n(5)("iterator"),a=n(43);t.exports=n(25).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||a[r(t)]}},function(t,e,n){"use strict";var r=n(41),i=n(101),a=n(43),o=n(15);t.exports=n(72)(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";(function(t){function e(t,e,n){t[e]||Object[r](t,e,{writable:!0,configurable:!0,value:n})}if(n(324),n(366),n(144),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var r="defineProperty";e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}).call(e,n(49))},function(t,e,n){var r=n(18);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){"use strict";var r=n(9),i=n(39),a=n(8);t.exports=[].copyWithin||function(t,e){var n=r(this),o=a(n.length),s=i(t,o),u=i(e,o),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?o:i(c,o))-u,o-s),f=1;for(u0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(t,e,n){var r=n(42);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){var r=n(11),i=n(9),a=n(47),o=n(8);t.exports=function(t,e,n,s,u){r(e);var c=i(t),l=a(c),f=o(c.length),h=u?f-1:0,d=u?-1:1;if(n<2)for(;;){if(h in l){s=l[h],h+=d;break}if(h+=d,u?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;u?h>=0:f>h;h+=d)h in l&&(s=e(s,l[h],h,c));return s}},function(t,e,n){"use strict";var r=n(11),i=n(4),a=n(54),o=[].slice,s={},u=function(t,e,n){if(!(e in s)){for(var r=[],i=0;i1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!v(this,t)}}),d&&r(f.prototype,"size",{get:function(){return u(this[g])}}),f},def:function(t,e,n){var r,i,a=v(t,e);return a?a.v=n:(t._l=a={i:i=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=a),r&&(r.n=a),t[g]++,"F"!==i&&(t._i[i]=a)),t},getEntry:v,setStrong:function(t,e,n){l(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?f(0,n.k):"values"==e?f(0,n.v):f(0,[n.k,n.v]):(t._t=void 0,f(1))},n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){var r=n(46),i=n(92);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,n){"use strict";var r=n(37),i=n(29).getWeak,a=n(1),o=n(4),s=n(32),u=n(42),c=n(22),l=n(10),f=c(5),h=c(6),d=0,p=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},v=function(t,e){return f(t.a,function(t){return t[0]===e})};g.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=h(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,a){var c=t(function(t,r){s(t,c,e,"_i"),t._i=d++,t._l=void 0,void 0!=r&&u(r,n,t[a],t)});return r(c.prototype,{delete:function(t){if(!o(t))return!1;var e=i(t);return e===!0?p(this).delete(t):e&&l(e,this._i)&&delete e[this._i]},has:function(t){if(!o(t))return!1;var e=i(t);return e===!0?p(this).has(t):e&&l(e,this._i)}}),c},def:function(t,e,n){var r=i(a(e),!0);return r===!0?p(t).set(e,n):r[t._i]=n,t},ufstore:p}},function(t,e,n){t.exports=!n(6)&&!n(3)(function(){return 7!=Object.defineProperty(n(64)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(4),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){var r=n(1);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&r(a.call(t)),e}}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(36),i=n(58),a=n(48),o=n(9),s=n(47),u=Object.assign;t.exports=!u||n(3)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=o(t),u=arguments.length,c=1,l=i.f,f=a.f;u>c;)for(var h,d=s(arguments[c++]),p=l?r(d).concat(l(d)):r(d),g=p.length,v=0;g>v;)f.call(d,h=p[v++])&&(n[h]=d[h]);return n}:u},function(t,e,n){var r=n(7),i=n(1),a=n(36);t.exports=n(6)?Object.defineProperties:function(t,e){i(t);for(var n,o=a(e),s=o.length,u=0;s>u;)r.f(t,n=o[u++],e[n]);return t}},function(t,e,n){var r=n(15),i=n(35).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return o.slice()}};t.exports.f=function(t){return o&&"[object Window]"==a.call(t)?s(t):i(r(t))}},function(t,e,n){var r=n(10),i=n(15),a=n(50)(!1),o=n(77)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~a(c,n)||c.push(n));return c}},function(t,e,n){var r=n(36),i=n(15),a=n(48).f;t.exports=function(t){return function(e){for(var n,o=i(e),s=r(o),u=s.length,c=0,l=[];u>c;)a.call(o,n=s[c++])&&l.push(t?[n,o[n]]:o[n]);return l}}},function(t,e,n){var r=n(35),i=n(58),a=n(1),o=n(2).Reflect;t.exports=o&&o.ownKeys||function(t){var e=r.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(2).parseFloat,i=n(45).trim;t.exports=1/r(n(82)+"-0")!==-(1/0)?function(t){var e=i(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(2).parseInt,i=n(45).trim,a=n(82),o=/^[\-+]?0[xX]/;t.exports=8!==r(a+"08")||22!==r(a+"0x16")?function(t,e){var n=i(String(t),3);return r(n,e>>>0||(o.test(n)?16:10))}:r},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},function(t,e,n){var r=n(8),i=n(81),a=n(19);t.exports=function(t,e,n,o){var s=String(a(t)),u=s.length,c=void 0===n?" ":String(n),l=r(e);if(l<=u||""==c)return s;var f=l-u,h=i.call(c,Math.ceil(f/c.length));return h.length>f&&(h=h.slice(0,f)),o?h+s:s+h}},function(t,e,n){e.f=n(5)},function(t,e,n){"use strict";var r=n(95);t.exports=n(51)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(this,t);return e&&e.v},set:function(t,e){return r.def(this,0===t?0:t,e)}},r,!0)},function(t,e,n){n(6)&&"g"!=/./g.flags&&n(7).f(RegExp.prototype,"flags",{configurable:!0,get:n(53)})},function(t,e,n){"use strict";var r=n(95);t.exports=n(51)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,i=n(22)(0),a=n(13),o=n(29),s=n(103),u=n(97),c=n(4),l=o.getWeak,f=Object.isExtensible,h=u.ufstore,d={},p=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(c(t)){var e=l(t);return e===!0?h(this).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(this,t,e)}},v=t.exports=n(51)("WeakMap",p,g,u,!0,!0);7!=(new v).set((Object.freeze||Object)(d),7).get(d)&&(r=u.getConstructor(p),s(r.prototype,g),o.NEED=!0,i(["delete","has","get","set"],function(t){var e=v.prototype,n=e[t];a(e,t,function(e,i){if(c(e)&&!f(e)){this._f||(this._f=new r);var a=this._f[t](e,i);return"set"==t?this:a}return n.call(this,e,i)})}))},function(t,e,n){var r,i;!function(){function a(t){return t&&(t.ownerDocument||t.document||t).documentElement}function o(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function s(t,e){return te?1:t>=e?0:NaN}function u(t){return null===t?NaN:+t}function c(t){return!isNaN(t)}function l(t){return{left:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}function f(t){return t.length}function h(t){for(var e=1;t*e%1;)e*=10;return e}function d(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function p(){this._=Object.create(null)}function g(t){return(t+="")===$o||t[0]===ko?ko+t:t}function v(t){return(t+="")[0]===ko?t.slice(1):t}function m(t){return g(t)in this._}function y(t){return(t=g(t))in this._&&delete this._[t]}function x(){var t=[];for(var e in this._)t.push(v(e));return t}function b(){var t=0;for(var e in this._)++t;return t}function _(){for(var t in this._)return!1;return!0}function w(){this._=Object.create(null)}function S(t){return t}function $(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function k(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,r=To.length;n=e&&(e=i+1);!(o=s[e])&&++e0&&(t=t.slice(0,s));var c=Do.get(t);return c&&(t=c,u=J),s?e?i:r:e?T:a}function Q(t,e){return function(n){var r=ho.event;ho.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{ho.event=r}}}function J(t,e){var n=Q(t,e);return function(t){var e=this,r=t.relatedTarget;r&&(r===e||8&r.compareDocumentPosition(e))||n.call(e,t)}}function tt(t){var e=".dragsuppress-"+ ++Fo,n="click"+e,r=ho.select(o(t)).on("touchmove"+e,E).on("dragstart"+e,E).on("selectstart"+e,E);if(null==jo&&(jo=!("onselectstart"in t)&&k(t.style,"userSelect")),jo){var i=a(t).style,s=i[jo];i[jo]="none"}return function(t){if(r.on(e,null),jo&&(i[jo]=s),t){var a=function(){r.on(n,null)};r.on(n,function(){E(),a()},!0),setTimeout(a,0)}}}function et(t,e){e.changedTouches&&(e=e.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();if(Vo<0){var i=o(t);if(i.scrollX||i.scrollY){n=ho.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var a=n[0][0].getScreenCTM();Vo=!(a.f||a.e),n.remove()}}return Vo?(r.x=e.pageX,r.y=e.pageY):(r.x=e.clientX,r.y=e.clientY),r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}function nt(){return ho.event.changedTouches[0].identifier}function rt(t){return t>0?1:t<0?-1:0}function it(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function at(t){return t>1?0:t<-1?Go:Math.acos(t)}function ot(t){return t>1?Bo:t<-1?-Bo:Math.asin(t)}function st(t){return((t=Math.exp(t))-1/t)/2}function ut(t){return((t=Math.exp(t))+1/t)/2}function ct(t){return((t=Math.exp(2*t))-1)/(t+1)}function lt(t){return(t=Math.sin(t/2))*t}function ft(){}function ht(t,e,n){return this instanceof ht?(this.h=+t,this.s=+e,void(this.l=+n)):arguments.length<2?t instanceof ht?new ht(t.h,t.s,t.l):Tt(""+t,At,ht):new ht(t,e,n)}function dt(t,e,n){function r(t){return t>360?t-=360:t<0&&(t+=360),t<60?a+(o-a)*t/60:t<180?o:t<240?a+(o-a)*(240-t)/60:a}function i(t){return Math.round(255*r(t))}var a,o;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:e<0?0:e>1?1:e,n=n<0?0:n>1?1:n,o=n<=.5?n*(1+e):n+e-n*e,a=2*n-o,new wt(i(t+120),i(t),i(t-120))}function pt(t,e,n){return this instanceof pt?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof pt?new pt(t.h,t.c,t.l):t instanceof vt?yt(t.l,t.a,t.b):yt((t=Ct((t=ho.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new pt(t,e,n)}function gt(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new vt(n,Math.cos(t*=Wo)*e,Math.sin(t)*e)}function vt(t,e,n){return this instanceof vt?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof vt?new vt(t.l,t.a,t.b):t instanceof pt?gt(t.h,t.c,t.l):Ct((t=wt(t)).r,t.g,t.b):new vt(t,e,n)}function mt(t,e,n){var r=(t+16)/116,i=r+e/500,a=r-n/200;return i=xt(i)*rs,r=xt(r)*is,a=xt(a)*as,new wt(_t(3.2404542*i-1.5371385*r-.4985314*a),_t(-.969266*i+1.8760108*r+.041556*a),_t(.0556434*i-.2040259*r+1.0572252*a))}function yt(t,e,n){return t>0?new pt(Math.atan2(n,e)*qo,Math.sqrt(e*e+n*n),t):new pt(NaN,NaN,t)}function xt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function bt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function _t(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function wt(t,e,n){return this instanceof wt?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof wt?new wt(t.r,t.g,t.b):Tt(""+t,wt,dt):new wt(t,e,n)}function St(t){return new wt(t>>16,t>>8&255,255&t)}function $t(t){return St(t)+""}function kt(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function Tt(t,e,n){var r,i,a,o=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(Pt(i[0]),Pt(i[1]),Pt(i[2]))}return(a=us.get(t))?e(a.r,a.g,a.b):(null==t||"#"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o|=o>>4,s=240&a,s|=s>>4,u=15&a,u|=u<<4):7===t.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,u=255&a)),e(o,s,u))}function At(t,e,n){var r,i,a=Math.min(t/=255,e/=255,n/=255),o=Math.max(t,e,n),s=o-a,u=(o+a)/2;return s?(i=u<.5?s/(o+a):s/(2-o-a),r=t==o?(e-n)/s+(e0&&u<1?0:r),new ht(r,i,u)}function Ct(t,e,n){t=Et(t),e=Et(e),n=Et(n);var r=bt((.4124564*t+.3575761*e+.1804375*n)/rs),i=bt((.2126729*t+.7151522*e+.072175*n)/is),a=bt((.0193339*t+.119192*e+.9503041*n)/as);return vt(116*i-16,500*(r-i),200*(i-a))}function Et(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Pt(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function It(t){return"function"==typeof t?t:function(){return t}}function Ot(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),Mt(e,n,t,r)}}function Mt(t,e,n,r){function i(){var t,e=u.status;if(!e&&Lt(u)||e>=200&&e<300||304===e){try{t=n.call(a,u)}catch(t){return void o.error.call(a,t)}o.load.call(a,t)}else o.error.call(a,u)}var a={},o=ho.dispatch("beforesend","progress","load","error"),s={},u=new XMLHttpRequest,c=null;return!this.XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(t)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=i:u.onreadystatechange=function(){u.readyState>3&&i()},u.onprogress=function(t){var e=ho.event;ho.event=t;try{o.progress.call(a,u)}finally{ho.event=e}},a.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?s[t]:(null==e?delete s[t]:s[t]=e+"",a)},a.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",a):e},a.responseType=function(t){return arguments.length?(c=t,a):c},a.response=function(t){return n=t,a},["get","post"].forEach(function(t){a[t]=function(){return a.send.apply(a,[t].concat(go(arguments)))}}),a.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),u.open(n,t,!0),null==e||"accept"in s||(s.accept=e+",*/*"),u.setRequestHeader)for(var l in s)u.setRequestHeader(l,s[l]);return null!=e&&u.overrideMimeType&&u.overrideMimeType(e),null!=c&&(u.responseType=c),null!=i&&a.on("error",i).on("load",function(t){i(null,t)}),o.beforesend.call(a,u),u.send(null==r?null:r),a},a.abort=function(){return u.abort(),a},ho.rebind(a,o,"on"),null==r?a:a.get(Rt(r))}function Rt(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}function Lt(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function Dt(t,e,n){var r=arguments.length;r<2&&(e=0),r<3&&(n=Date.now());var i=n+e,a={c:t,t:i,n:null};return ls?ls.n=a:cs=a,ls=a,fs||(hs=clearTimeout(hs),fs=1,ds(jt)),a}function jt(){var t=Ft(),e=Vt()-t;e>24?(isFinite(e)&&(clearTimeout(hs),hs=setTimeout(jt,e)),fs=0):(fs=1,ds(jt))}function Ft(){for(var t=Date.now(),e=cs;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Vt(){for(var t,e=cs,n=1/0;e;)e.c?(e.t8?function(t){return t/n}:function(t){return t*n},symbol:t}}function Gt(t){var e=t.decimal,n=t.thousands,r=t.grouping,i=t.currency,a=r&&n?function(t,e){for(var i=t.length,a=[],o=0,s=r[0],u=0;i>0&&s>0&&(u+s+1>e&&(s=Math.max(1,e-u)),a.push(t.substring(i-=s,i+s)),!((u+=s+1)>e));)s=r[o=(o+1)%r.length];return a.reverse().join(n)}:S;return function(t){var n=gs.exec(t),r=n[1]||" ",o=n[2]||">",s=n[3]||"-",u=n[4]||"",c=n[5],l=+n[6],f=n[7],h=n[8],d=n[9],p=1,g="",v="",m=!1,y=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===o)&&(c=r="0",o="="),d){case"n":f=!0,d="g";break;case"%":p=100,v="%",d="f";break;case"p":p=100,v="%",d="r";break;case"b":case"o":case"x":case"X":"#"===u&&(g="0"+d.toLowerCase());case"c":y=!1;case"d":m=!0,h=0;break;case"s":p=-1,d="r"}"$"===u&&(g=i[0],v=i[1]),"r"!=d||h||(d="g"),null!=h&&("g"==d?h=Math.max(1,Math.min(21,h)):"e"!=d&&"f"!=d||(h=Math.max(0,Math.min(20,h)))),d=vs.get(d)||Ht;var x=c&&f;return function(t){var n=v;if(m&&t%1)return"";var i=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===s?"":s;if(p<0){var u=ho.formatPrefix(t,h);t=u.scale(t),n=u.symbol+v}else t*=p;t=d(t,h);var b,_,w=t.lastIndexOf(".");if(w<0){var S=y?t.lastIndexOf("e"):-1;S<0?(b=t,_=""):(b=t.substring(0,S),_=t.substring(S))}else b=t.substring(0,w),_=e+t.substring(w+1);!c&&f&&(b=a(b,1/0));var $=g.length+b.length+_.length+(x?0:i.length),k=$"===o?k+i+t:"^"===o?k.substring(0,$>>=1)+i+t+k.substring($):i+(x?t:k+t))+n}}}function Ht(t){return t+""}function Ut(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Bt(t,e,n){function r(e){var n=t(e),r=a(n,1);return e-n1)for(;o=c)return-1;if(i=e.charCodeAt(s++),37===i){if(o=e.charAt(s++),a=E[o in bs?e.charAt(s++):o],!a||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function r(t,e,n){w.lastIndex=0;var r=w.exec(e.slice(n));return r?(t.w=S.get(r[0].toLowerCase()),n+r[0].length):-1}function i(t,e,n){b.lastIndex=0;var r=b.exec(e.slice(n));return r?(t.w=_.get(r[0].toLowerCase()),n+r[0].length):-1}function a(t,e,n){T.lastIndex=0;var r=T.exec(e.slice(n));return r?(t.m=A.get(r[0].toLowerCase()),n+r[0].length):-1}function o(t,e,n){$.lastIndex=0;var r=$.exec(e.slice(n));return r?(t.m=k.get(r[0].toLowerCase()),n+r[0].length):-1}function s(t,e,r){return n(t,C.c.toString(),e,r)}function u(t,e,r){return n(t,C.x.toString(),e,r)}function c(t,e,r){return n(t,C.X.toString(),e,r)}function l(t,e,n){var r=x.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)}var f=t.dateTime,h=t.date,d=t.time,p=t.periods,g=t.days,v=t.shortDays,m=t.months,y=t.shortMonths;e.utc=function(t){function n(t){try{ys=Ut;var e=new ys;return e._=t,r(e)}finally{ys=Date}}var r=e(t);return n.parse=function(t){try{ys=Ut;var e=r.parse(t);return e&&e._}finally{ys=Date}},n.toString=r.toString,n},e.multi=e.utc.multi=de;var x=ho.map(),b=Xt(g),_=Kt(g),w=Xt(v),S=Kt(v),$=Xt(m),k=Kt(m),T=Xt(y),A=Kt(y);p.forEach(function(t,e){x.set(t.toLowerCase(),e)});var C={a:function(t){return v[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return y[t.getMonth()]},B:function(t){return m[t.getMonth()]},c:e(f),d:function(t,e){return Yt(t.getDate(),e,2)},e:function(t,e){return Yt(t.getDate(),e,2)},H:function(t,e){return Yt(t.getHours(),e,2)},I:function(t,e){return Yt(t.getHours()%12||12,e,2)},j:function(t,e){return Yt(1+ms.dayOfYear(t),e,3)},L:function(t,e){return Yt(t.getMilliseconds(),e,3)},m:function(t,e){return Yt(t.getMonth()+1,e,2)},M:function(t,e){return Yt(t.getMinutes(),e,2)},p:function(t){return p[+(t.getHours()>=12)]},S:function(t,e){return Yt(t.getSeconds(),e,2)},U:function(t,e){return Yt(ms.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Yt(ms.mondayOfYear(t),e,2)},x:e(h),X:e(d),y:function(t,e){return Yt(t.getFullYear()%100,e,2)},Y:function(t,e){return Yt(t.getFullYear()%1e4,e,4)},Z:fe,"%":function(){return"%"}},E={a:r,A:i,b:a,B:o,c:s,d:ae,e:ae,H:se,I:se,j:oe,L:le,m:ie,M:ue,p:l,S:ce,U:Qt,w:Zt,W:Jt,x:u,X:c,y:ee,Y:te,Z:ne,"%":he};return e}function Yt(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3)}function ie(t,e,n){_s.lastIndex=0;var r=_s.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ae(t,e,n){_s.lastIndex=0;var r=_s.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function oe(t,e,n){_s.lastIndex=0;var r=_s.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function se(t,e,n){_s.lastIndex=0;var r=_s.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ue(t,e,n){_s.lastIndex=0;var r=_s.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ce(t,e,n){_s.lastIndex=0;var r=_s.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function le(t,e,n){_s.lastIndex=0;var r=_s.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function fe(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=So(e)/60|0,i=So(e)%60;return n+Yt(r,"0",2)+Yt(i,"0",2)}function he(t,e,n){ws.lastIndex=0;var r=ws.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function de(t){for(var e=t.length,n=-1;++n=0?1:-1,s=o*n,u=Math.cos(e),c=Math.sin(e),l=a*c,f=i*u+l*Math.cos(s),h=l*o*Math.sin(s);Cs.add(Math.atan2(h,f)),r=t,i=u,a=c}var e,n,r,i,a;Es.point=function(o,s){Es.point=t,r=(e=o)*Wo,i=Math.cos(s=(n=s)*Wo/2+Go/4),a=Math.sin(s)},Es.lineEnd=function(){t(e,n)}}function be(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function _e(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function we(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 Se(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function $e(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function ke(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Te(t){return[Math.atan2(t[1],t[0]),ot(t[2])]}function Ae(t,e){return So(t[0]-e[0])=0;--s)i.point((f=l[s])[0],f[1])}else r(d.x,d.p.x,-1,i);d=d.p}d=d.o,l=d.z,p=!p}while(!d.v);i.lineEnd()}}}function De(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r0){for(_||(a.polygonStart(),_=!0),a.lineStart();++o1&&2&e&&n.push(n.pop().concat(n.shift())),d.push(n.filter(Ve))}var d,p,g,v=e(a),m=i.invert(r[0],r[1]),y={point:o,lineStart:u,lineEnd:c,polygonStart:function(){y.point=l,y.lineStart=f,y.lineEnd=h,d=[],p=[]},polygonEnd:function(){y.point=o,y.lineStart=u,y.lineEnd=c,d=ho.merge(d);var t=Be(m,p);d.length?(_||(a.polygonStart(),_=!0),Le(d,ze,t,n,a)):t&&(_||(a.polygonStart(),_=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),_&&(a.polygonEnd(),_=!1),d=p=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}},x=Ne(),b=e(x),_=!1;return y}}function Ve(t){return t.length>1}function Ne(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:T,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function ze(t,e){return((t=t.x)[0]<0?t[1]-Bo-No:Bo-t[1])-((e=e.x)[0]<0?e[1]-Bo-No:Bo-e[1])}function Ge(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?Go:-Go,u=So(a-n);So(u-Go)0?Bo:-Bo),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(a,r),e=0):i!==s&&u>=Go&&(So(n-i)No?Math.atan((Math.sin(e)*(a=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(e))*Math.sin(t))/(i*a*o)):(e+r)/2}function Ue(t,e,n,r){var i;if(null==t)i=n*Bo,r.point(-Go,i),r.point(0,i),r.point(Go,i),r.point(Go,0),r.point(Go,-i),r.point(0,-i),r.point(-Go,-i),r.point(-Go,0),r.point(-Go,i);else if(So(t[0]-e[0])>No){var a=t[0]=0?1:-1,S=w*_,$=S>Go,k=p*x;if(Cs.add(Math.atan2(k*w*Math.sin(S),g*b+k*Math.cos(S))),a+=$?_+w*Ho:_,$^h>=n^m>=n){var T=we(be(f),be(t));ke(T);var A=we(i,T);ke(A);var C=($^_>=0?-1:1)*ot(A[2]);(r>C||r===C&&(T[0]||T[1]))&&(o+=$^_>=0?1:-1)}if(!v++)break;h=m,p=x,g=b,f=t}}return(a<-No||aa}function n(t){var n,a,u,c,l;return{lineStart:function(){c=u=!1,l=1},point:function(f,h){var d,p=[f,h],g=e(f,h),v=o?g?0:i(f,h):g?i(f+(f<0?Go:-Go),h):0;if(!n&&(c=u=g)&&t.lineStart(),g!==u&&(d=r(n,p),(Ae(n,d)||Ae(p,d))&&(p[0]+=No,p[1]+=No,g=e(p[0],p[1]))),g!==u)l=0,g?(t.lineStart(),d=r(p,n),t.point(d[0],d[1])):(d=r(n,p),t.point(d[0],d[1]),t.lineEnd()),n=d;else if(s&&n&&o^g){var m;v&a||!(m=r(p,n,!0))||(l=0,o?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!g||n&&Ae(n,p)||t.point(p[0],p[1]),n=p,u=g,a=v},lineEnd:function(){u&&t.lineEnd(),n=null},clean:function(){return l|(c&&u)<<1}}}function r(t,e,n){var r=be(t),i=be(e),o=[1,0,0],s=we(r,i),u=_e(s,s),c=s[0],l=u-c*c;if(!l)return!n&&t;var f=a*u/l,h=-a*c/l,d=we(o,s),p=$e(o,f),g=$e(s,h);Se(p,g);var v=d,m=_e(p,v),y=_e(v,v),x=m*m-y*(_e(p,p)-1);if(!(x<0)){var b=Math.sqrt(x),_=$e(v,(-m-b)/y);if(Se(_,p),_=Te(_),!n)return _;var w,S=t[0],$=e[0],k=t[1],T=e[1];$0^_[1]<(So(_[0]-S)Go^(S<=_[0]&&_[0]<=$)){var P=$e(v,(-m+b)/y);return Se(P,p),[_,Te(P)]}}}function i(e,n){var r=o?t:Go-t,i=0;return e<-r?i|=1:e>r&&(i|=2),n<-r?i|=4:n>r&&(i|=8),i}var a=Math.cos(t),o=a>0,s=So(a)>No,u=bn(t,6*Wo);return Fe(e,n,u,o?[0,-t]:[-Go,t-Go])}function qe(t,e,n,r){return function(i){var a,o=i.a,s=i.b,u=o.x,c=o.y,l=s.x,f=s.y,h=0,d=1,p=l-u,g=f-c;if(a=t-u,p||!(a>0)){if(a/=p,p<0){if(a0){if(a>d)return;a>h&&(h=a)}if(a=n-u,p||!(a<0)){if(a/=p,p<0){if(a>d)return;a>h&&(h=a)}else if(p>0){if(a0)){if(a/=g,g<0){if(a0){if(a>d)return;a>h&&(h=a)}if(a=r-c,g||!(a<0)){if(a/=g,g<0){if(a>d)return;a>h&&(h=a)}else if(g>0){if(a0&&(i.a={x:u+h*p,y:c+h*g}),d<1&&(i.b={x:u+d*p,y:c+d*g}),i}}}}}}function Ye(t,e,n,r){function i(r,i){return So(r[0]-t)0?0:3:So(r[0]-n)0?2:1:So(r[1]-e)0?1:0:i>0?3:2}function a(t,e){return o(t.x,e.x)}function o(t,e){var n=i(t,1),r=i(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(s){function u(t){for(var e=0,n=v.length,r=t[1],i=0;ir&&it(c,a,t)>0&&++e:a[1]<=r&&it(c,a,t)<0&&--e,c=a;return 0!==e}function c(a,s,u,c){var l=0,f=0;if(null==a||(l=i(a,u))!==(f=i(s,u))||o(a,s)<0^u>0){do c.point(0===l||3===l?t:n,l>1?r:e);while((l=(l+u+4)%4)!==f)}else c.point(s[0],s[1])}function l(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function f(t,e){l(t,e)&&s.point(t,e)}function h(){E.point=p,v&&v.push(m=[]),$=!0,S=!1,_=w=NaN}function d(){g&&(p(y,x),b&&S&&A.rejoin(),g.push(A.buffer())),E.point=f,S&&s.lineEnd()}function p(t,e){t=Math.max(-Hs,Math.min(Hs,t)),e=Math.max(-Hs,Math.min(Hs,e));var n=l(t,e);if(v&&m.push([t,e]),$)y=t,x=e,b=n,$=!1,n&&(s.lineStart(),s.point(t,e));else if(n&&S)s.point(t,e);else{var r={a:{x:_,y:w},b:{x:t,y:e}};C(r)?(S||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),k=!1):n&&(s.lineStart(),s.point(t,e),k=!1)}_=t,w=e,S=n}var g,v,m,y,x,b,_,w,S,$,k,T=s,A=Ne(),C=qe(t,e,n,r),E={point:f,lineStart:h,lineEnd:d,polygonStart:function(){s=A,g=[],v=[],k=!0},polygonEnd:function(){s=T,g=ho.merge(g);var e=u([t,r]),n=k&&e,i=g.length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),c(null,null,1,s),s.lineEnd()),i&&Le(g,a,e,c,s),s.polygonEnd()),g=v=m=null}};return E}}function Xe(t){var e=0,n=Go/3,r=hn(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Go/180,n=t[1]*Go/180):[e/Go*180,n/Go*180]},i}function Ke(t,e){function n(t,e){var n=Math.sqrt(a-2*i*Math.sin(e))/i;return[n*Math.sin(t*=i),o-n*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(e))/2,a=1+r*(2*i-r),o=Math.sqrt(a)/i;return n.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/i,ot((a-(t*t+n*n)*i*i)/(2*i))]},n}function Ze(){function t(t,e){Bs+=i*t-r*e,r=t,i=e}var e,n,r,i;Ks.point=function(a,o){Ks.point=t,e=r=a,n=i=o},Ks.lineEnd=function(){t(e,n)}}function Qe(t,e){tYs&&(Ys=t),eXs&&(Xs=e)}function Je(){function t(t,e){o.push("M",t,",",e,a)}function e(t,e){o.push("M",t,",",e),s.point=n}function n(t,e){o.push("L",t,",",e)}function r(){s.point=t}function i(){o.push("Z")}var a=tn(4.5),o=[],s={point:t,lineStart:function(){s.point=e},lineEnd:r,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=r,s.point=t},pointRadius:function(t){return a=tn(t),s},result:function(){if(o.length){var t=o.join("");return o=[],t}}};return s}function tn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function en(t,e){Os+=t,Ms+=e,++Rs}function nn(){function t(t,r){var i=t-e,a=r-n,o=Math.sqrt(i*i+a*a);Ls+=o*(e+t)/2,Ds+=o*(n+r)/2,js+=o,en(e=t,n=r)}var e,n;Qs.point=function(r,i){Qs.point=t,en(e=r,n=i)}}function rn(){Qs.point=en}function an(){function t(t,e){var n=t-r,a=e-i,o=Math.sqrt(n*n+a*a);Ls+=o*(r+t)/2,Ds+=o*(i+e)/2,js+=o,o=i*t-r*e,Fs+=o*(r+t),Vs+=o*(i+e),Ns+=3*o,en(r=t,i=e)}var e,n,r,i;Qs.point=function(a,o){Qs.point=t,en(e=r=a,n=i=o)},Qs.lineEnd=function(){t(e,n)}}function on(t){function e(e,n){t.moveTo(e+o,n),t.arc(e,n,o,0,Ho)}function n(e,n){t.moveTo(e,n),s.point=r}function r(e,n){t.lineTo(e,n)}function i(){s.point=e}function a(){t.closePath()}var o=4.5,s={point:e,lineStart:function(){s.point=n},lineEnd:i,polygonStart:function(){s.lineEnd=a},polygonEnd:function(){s.lineEnd=i,s.point=e},pointRadius:function(t){return o=t,s},result:T};return s}function sn(t){function e(t){return(s?r:n)(t)}function n(e){return ln(e,function(n,r){n=t(n,r),e.point(n[0],n[1])})}function r(e){function n(n,r){n=t(n,r),e.point(n[0],n[1])}function r(){x=NaN,$.point=a,e.lineStart()}function a(n,r){var a=be([n,r]),o=t(n,r);i(x,b,y,_,w,S,x=o[0],b=o[1],y=n,_=a[0],w=a[1],S=a[2],s,e),e.point(x,b)}function o(){$.point=n,e.lineEnd()}function u(){r(),$.point=c,$.lineEnd=l}function c(t,e){a(f=t,h=e),d=x,p=b,g=_,v=w,m=S,$.point=a}function l(){i(x,b,y,_,w,S,d,p,f,g,v,m,s,e),$.lineEnd=o,o()}var f,h,d,p,g,v,m,y,x,b,_,w,S,$={point:n,lineStart:r,lineEnd:o,polygonStart:function(){e.polygonStart(),$.lineStart=u},polygonEnd:function(){e.polygonEnd(),$.lineStart=r}};return $}function i(e,n,r,s,u,c,l,f,h,d,p,g,v,m){var y=l-e,x=f-n,b=y*y+x*x;if(b>4*a&&v--){var _=s+d,w=u+p,S=c+g,$=Math.sqrt(_*_+w*w+S*S),k=Math.asin(S/=$),T=So(So(S)-1)a||So((y*P+x*I)/b-.5)>.3||s*d+u*p+c*g0&&16,e):Math.sqrt(a)},e}function un(t){var e=sn(function(e,n){return t([e*qo,n*qo])});return function(t){return dn(e(t))}}function cn(t){this.stream=t}function ln(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function fn(t){return hn(function(){return t})()}function hn(t){function e(t){return t=s(t[0]*Wo,t[1]*Wo),[t[0]*h+u,c-t[1]*h]}function n(t){return t=s.invert((t[0]-u)/h,(c-t[1])/h),t&&[t[0]*qo,t[1]*qo]}function r(){s=Me(o=vn(m,y,x),a);var t=a(g,v);return u=d-t[0]*h,c=p+t[1]*h,i()}function i(){return l&&(l.valid=!1,l=null),e}var a,o,s,u,c,l,f=sn(function(t,e){return t=a(t,e),[t[0]*h+u,c-t[1]*h]}),h=150,d=480,p=250,g=0,v=0,m=0,y=0,x=0,b=Gs,_=S,w=null,$=null;return e.stream=function(t){return l&&(l.valid=!1),l=dn(b(o,f(_(t)))),l.valid=!0,l},e.clipAngle=function(t){return arguments.length?(b=null==t?(w=t,Gs):We((w=+t)*Wo),i()):w},e.clipExtent=function(t){return arguments.length?($=t,_=t?Ye(t[0][0],t[0][1],t[1][0],t[1][1]):S,i()):$},e.scale=function(t){return arguments.length?(h=+t,r()):h},e.translate=function(t){return arguments.length?(d=+t[0],p=+t[1],r()):[d,p]},e.center=function(t){return arguments.length?(g=t[0]%360*Wo,v=t[1]%360*Wo,r()):[g*qo,v*qo]},e.rotate=function(t){return arguments.length?(m=t[0]%360*Wo,y=t[1]%360*Wo,x=t.length>2?t[2]%360*Wo:0,r()):[m*qo,y*qo,x*qo]},ho.rebind(e,f,"precision"),function(){return a=t.apply(this,arguments),e.invert=a.invert&&n,r()}}function dn(t){return ln(t,function(e,n){t.point(e*Wo,n*Wo)})}function pn(t,e){return[t,e]}function gn(t,e){return[t>Go?t-Ho:t<-Go?t+Ho:t,e]}function vn(t,e,n){return t?e||n?Me(yn(t),xn(e,n)):yn(t):e||n?xn(e,n):gn}function mn(t){return function(e,n){return e+=t,[e>Go?e-Ho:e<-Go?e+Ho:e,n]}}function yn(t){var e=mn(t);return e.invert=mn(-t),e}function xn(t,e){function n(t,e){var n=Math.cos(e),s=Math.cos(t)*n,u=Math.sin(t)*n,c=Math.sin(e),l=c*r+s*i;return[Math.atan2(u*a-l*o,s*r-c*i),ot(l*a+u*o)]}var r=Math.cos(t),i=Math.sin(t),a=Math.cos(e),o=Math.sin(e);return n.invert=function(t,e){var n=Math.cos(e),s=Math.cos(t)*n,u=Math.sin(t)*n,c=Math.sin(e),l=c*a-u*o;return[Math.atan2(u*a+c*o,s*r+l*i),ot(l*r-s*i)]},n}function bn(t,e){var n=Math.cos(t),r=Math.sin(t);return function(i,a,o,s){var u=o*e;null!=i?(i=_n(n,i),a=_n(n,a),(o>0?ia)&&(i+=o*Ho)):(i=t+o*Ho,a=t-.5*u);for(var c,l=i;o>0?l>a:l0?e<-Bo+No&&(e=-Bo+No):e>Bo-No&&(e=Bo-No);var n=o/Math.pow(i(e),a);return[n*Math.sin(a*t),o-n*Math.cos(a*t)]}var r=Math.cos(t),i=function(t){return Math.tan(Go/4+t/2)},a=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(i(e)/i(t)),o=r*Math.pow(i(t),a)/a;return a?(n.invert=function(t,e){var n=o-e,r=rt(a)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/a,2*Math.atan(Math.pow(o/r,1/a))-Bo]},n):In}function Pn(t,e){function n(t,e){var n=a-e;return[n*Math.sin(i*t),a-n*Math.cos(i*t)]}var r=Math.cos(t),i=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),a=r/i+t;return So(i)1&&it(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function jn(t,e){return t[0]-e[0]||t[1]-e[1]}function Fn(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function Vn(t,e,n,r){var i=t[0],a=n[0],o=e[0]-i,s=r[0]-a,u=t[1],c=n[1],l=e[1]-u,f=r[1]-c,h=(s*(u-c)-f*(i-a))/(f*o-s*l);return[i+h*o,u+h*l]}function Nn(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}function zn(){ur(this),this.edge=this.site=this.circle=null}function Gn(t){var e=hu.pop()||new zn;return e.site=t,e}function Hn(t){Jn(t),cu.remove(t),hu.push(t),ur(t)}function Un(t){var e=t.circle,n=e.x,r=e.cy,i={x:n,y:r},a=t.P,o=t.N,s=[t];Hn(t);for(var u=a;u.circle&&So(n-u.circle.x)No)s=s.L;else{if(i=a-qn(s,o),!(i>No)){r>-No?(e=s.P,n=s):i>-No?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}var u=Gn(t);if(cu.insert(e,u),e||n){if(e===n)return Jn(e),n=Gn(e.site),cu.insert(u,n),u.edge=n.edge=rr(e.site,u.site),Qn(e),void Qn(n);if(!n)return void(u.edge=rr(e.site,u.site));Jn(e),Jn(n);var c=e.site,l=c.x,f=c.y,h=t.x-l,d=t.y-f,p=n.site,g=p.x-l,v=p.y-f,m=2*(h*v-d*g),y=h*h+d*d,x=g*g+v*v,b={x:(v*y-d*x)/m+l,y:(h*x-g*y)/m+f};ar(n.edge,c,p,b),u.edge=rr(c,t,null,b),n.edge=rr(t,p,null,b),Qn(e),Qn(n)}}function Wn(t,e){var n=t.site,r=n.x,i=n.y,a=i-e;if(!a)return r;var o=t.P;if(!o)return-(1/0);n=o.site;var s=n.x,u=n.y,c=u-e;if(!c)return s;var l=s-r,f=1/a-1/c,h=l/c;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*c)-u+c/2+i-a/2)))/f+r:(r+s)/2}function qn(t,e){var n=t.N;if(n)return Wn(n,e);var r=t.site;return r.y===e?r.x:1/0}function Yn(t){this.site=t,this.edges=[]}function Xn(t){for(var e,n,r,i,a,o,s,u,c,l,f=t[0][0],h=t[1][0],d=t[0][1],p=t[1][1],g=uu,v=g.length;v--;)if(a=g[v],a&&a.prepare())for(s=a.edges,u=s.length,o=0;oNo||So(i-n)>No)&&(s.splice(o,0,new or(ir(a.site,l,So(r-f)No?{x:f,y:So(e-f)No?{x:So(n-p)No?{x:h,y:So(e-h)No?{x:So(n-d)=-zo)){var d=u*u+c*c,p=l*l+f*f,g=(f*d-c*p)/h,v=(u*p-l*d)/h,f=v+s,m=du.pop()||new Zn;m.arc=t,m.site=i,m.x=g+o,m.y=f+Math.sqrt(g*g+v*v),m.cy=f,t.circle=m;for(var y=null,x=fu._;x;)if(m.y=s)return;if(h>p){if(a){if(a.y>=c)return}else a={x:v,y:u};n={x:v,y:c}}else{if(a){if(a.y1)if(h>p){if(a){if(a.y>=c)return}else a={x:(u-i)/r,y:u};n={x:(c-i)/r,y:c}}else{if(a){if(a.y=s)return}else a={x:o,y:r*o+i};n={x:s,y:r*s+i}}else{if(a){if(a.xa||f>o||h=b,S=n>=_,$=S<<1|w,k=$+4;$a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,u.push({i:o,x:wr(n,r)})),a=vu.lastIndex;return a=0&&!(n=ho.interpolators[r](t,e)););return n}function kr(t,e){var n,r=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(n=0;n=1?1:t(e)}}function Ar(t){return function(e){return 1-t(1-e)}}function Cr(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function Er(t){return t*t}function Pr(t){return t*t*t}function Ir(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}function Or(t){return function(e){return Math.pow(e,t)}}function Mr(t){return 1-Math.cos(t*Bo)}function Rr(t){return Math.pow(2,10*(t-1))}function Lr(t){return 1-Math.sqrt(1-t*t)}function Dr(t,e){var n;return arguments.length<2&&(e=.45),arguments.length?n=e/Ho*Math.asin(1/t):(t=1,n=e/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-n)*Ho/e)}}function jr(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function Fr(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Vr(t,e){t=ho.hcl(t),e=ho.hcl(e);var n=t.h,r=t.c,i=t.l,a=e.h-n,o=e.c-r,s=e.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?e.c:r),isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:a<-180&&(a+=360),function(t){return gt(n+a*t,r+o*t,i+s*t)+""}}function Nr(t,e){t=ho.hsl(t),e=ho.hsl(e);var n=t.h,r=t.s,i=t.l,a=e.h-n,o=e.s-r,s=e.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?e.s:r),isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:a<-180&&(a+=360),function(t){return dt(n+a*t,r+o*t,i+s*t)+""}}function zr(t,e){t=ho.lab(t),e=ho.lab(e);var n=t.l,r=t.a,i=t.b,a=e.l-n,o=e.a-r,s=e.b-i;return function(t){return mt(n+a*t,r+o*t,i+s*t)+""}}function Gr(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function Hr(t){var e=[t.a,t.b],n=[t.c,t.d],r=Br(e),i=Ur(e,n),a=Br(Wr(n,e,-i))||0;e[0]*n[1]180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(qr(n)+"rotate(",null,")")-2,x:wr(t,e)})):e&&n.push(qr(n)+"rotate("+e+")")}function Kr(t,e,n,r){t!==e?r.push({i:n.push(qr(n)+"skewX(",null,")")-2,x:wr(t,e)}):e&&n.push(qr(n)+"skewX("+e+")")}function Zr(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var i=n.push(qr(n)+"scale(",null,",",null,")");r.push({i:i-4,x:wr(t[0],e[0])},{i:i-2,x:wr(t[1],e[1])})}else 1===e[0]&&1===e[1]||n.push(qr(n)+"scale("+e+")")}function Qr(t,e){var n=[],r=[];return t=ho.transform(t),e=ho.transform(e),Yr(t.translate,e.translate,n,r),Xr(t.rotate,e.rotate,n,r),Kr(t.skew,e.skew,n,r),Zr(t.scale,e.scale,n,r),t=e=null,function(t){for(var e,i=-1,a=r.length;++i=0;)n.push(i[r])}function fi(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(a=t.children)&&(i=a.length))for(var i,a,o=-1;++oi&&(r=n,i=e);return r}function wi(t){return t.reduce(Si,0)}function Si(t,e){return t+e[1]}function $i(t,e){return ki(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function ki(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,a=[];++n<=e;)a[n]=i*n+r;return a}function Ti(t){return[ho.min(t),ho.max(t)]}function Ai(t,e){return t.value-e.value}function Ci(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function Ei(t,e){t._pack_next=e,e._pack_prev=t}function Pi(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return.999*i*i>n*n+r*r}function Ii(t){function e(t){l=Math.min(t.x-t.r,l),f=Math.max(t.x+t.r,f),h=Math.min(t.y-t.r,h),d=Math.max(t.y+t.r,d)}if((n=t.children)&&(c=n.length)){var n,r,i,a,o,s,u,c,l=1/0,f=-(1/0),h=1/0,d=-(1/0);if(n.forEach(Oi),r=n[0],r.x=-r.r,r.y=0,e(r),c>1&&(i=n[1],i.x=i.r,i.y=0,e(i),c>2))for(a=n[2],Li(r,i,a),e(a),Ci(r,a),r._pack_prev=a,Ci(a,i),i=r._pack_next,o=3;o=0;)e=i[a],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function zi(t,e,n){return t.a.parent===e.parent?t.a:n}function Gi(t){return 1+ho.max(t,function(t){return t.y})}function Hi(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function Ui(t){var e=t.children;return e&&e.length?Ui(e[0]):t}function Bi(t){var e,n=t.children;return n&&(e=n.length)?Bi(n[e-1]):t}function Wi(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function qi(t,e){var n=t.x+e[3],r=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i<0&&(n+=i/2,i=0),a<0&&(r+=a/2,a=0),{x:n,y:r,dx:i,dy:a}}function Yi(t){var e=t[0],n=t[t.length-1];return e2?Ji:Ki,u=r?ti:Jr;return o=i(t,e,u,n),s=i(e,t,u,$r),a}function a(t){return o(t)}var o,s;return a.invert=function(t){return s(t)},a.domain=function(e){return arguments.length?(t=e.map(Number),i()):t},a.range=function(t){return arguments.length?(e=t,i()):e},a.rangeRound=function(t){return a.range(t).interpolate(Gr)},a.clamp=function(t){return arguments.length?(r=t,i()):r},a.interpolate=function(t){return arguments.length?(n=t,i()):n},a.ticks=function(e){return ia(t,e)},a.tickFormat=function(e,n){return aa(t,e,n)},a.nice=function(e){return na(t,e),i()},a.copy=function(){return ta(t,e,n,r)},i()}function ea(t,e){return ho.rebind(t,e,"range","rangeRound","interpolate","clamp")}function na(t,e){return Zi(t,Qi(ra(t,e)[2])),Zi(t,Qi(ra(t,e)[2])),t}function ra(t,e){null==e&&(e=10);var n=Yi(t),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),a=e/r*i;return a<=.15?i*=10:a<=.35?i*=5:a<=.75&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function ia(t,e){return ho.range.apply(ho,ra(t,e))}function aa(t,e,n){var r=ra(t,e);if(n){var i=gs.exec(n);if(i.shift(),"s"===i[8]){var a=ho.formatPrefix(Math.max(So(r[0]),So(r[1])));return i[7]||(i[7]="."+oa(a.scale(r[2]))),i[8]="f",n=ho.format(i.join("")),function(t){return n(a.scale(t))+a.symbol}}i[7]||(i[7]="."+sa(i[8],r)),n=i.join("")}else n=",."+oa(r[2])+"f";return ho.format(n)}function oa(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function sa(t,e){var n=oa(e[2]);return t in Cu?Math.abs(n-oa(Math.max(So(e[0]),So(e[1]))))+ +("e"!==t):n-2*("%"===t)}function ua(t,e,n,r){function i(t){return(n?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function a(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function o(e){return t(i(e))}return o.invert=function(e){return a(t.invert(e))},o.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(i)),o):r},o.base=function(n){return arguments.length?(e=+n,t.domain(r.map(i)),o):e},o.nice=function(){var e=Zi(r.map(i),n?Math:Pu);return t.domain(e),r=e.map(a),o},o.ticks=function(){var t=Yi(r),o=[],s=t[0],u=t[1],c=Math.floor(i(s)),l=Math.ceil(i(u)),f=e%1?2:e;if(isFinite(l-c)){if(n){for(;c0;h--)o.push(a(c)*h);for(c=0;o[c]u;l--);o=o.slice(c,l)}return o},o.tickFormat=function(t,n){if(!arguments.length)return Eu;arguments.length<2?n=Eu:"function"!=typeof n&&(n=ho.format(n));var r=Math.max(1,e*t/o.ticks().length);return function(t){var o=t/a(Math.round(i(t)));return o*e0?i[n-1]:t[0],n0?0:1}function Sa(t,e,n,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?r:-r)/Math.sqrt(a*a+o*o),u=s*o,c=-s*a,l=t[0]+u,f=t[1]+c,h=e[0]+u,d=e[1]+c,p=(l+h)/2,g=(f+d)/2,v=h-l,m=d-f,y=v*v+m*m,x=n-r,b=l*d-h*f,_=(m<0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*m-v*_)/y,S=(-b*v-m*_)/y,$=(b*m+v*_)/y,k=(-b*v+m*_)/y,T=w-p,A=S-g,C=$-p,E=k-g;return T*T+A*A>C*C+E*E&&(w=$,S=k),[[w-u,S-c],[w*n/x,S*n/x]]}function $a(t){function e(e){function o(){c.push("M",a(t(l),s))}for(var u,c=[],l=[],f=-1,h=e.length,d=It(n),p=It(r);++f1?t.join("L"):t+"Z"}function Ta(t){return t.join("L")+"Z"}function Aa(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e1&&i.push("H",r[0]),i.join("")}function Ca(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e1){s=e[1],a=t[u],u++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1];for(var c=2;c9&&(i=3*e/Math.sqrt(i),o[s]=i*n,o[s+1]=i*r));for(s=-1;++s<=u;)i=(t[Math.min(u,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}function Ua(t){return t.length<3?ka(t):t[0]+Ma(t,Ha(t))}function Ba(t){for(var e,n,r,i=-1,a=t.length;++i0;)h[--s].call(t,o);if(a>=1)return g.event&&g.event.end.call(t,t.__data__,e),--d.count?delete d[r]:delete t[n],1}var u,c,l,f,h,d=t[n]||(t[n]={active:0,count:0}),g=d[r];g||(u=i.time,c=Dt(a,0,u),g=d[r]={tween:new p,time:u,timer:c,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++d.count)}function ao(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate("+(isFinite(r)?r:n(t))+",0)"})}function oo(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate(0,"+(isFinite(r)?r:n(t))+")"})}function so(t){return t.toISOString()}function uo(t,e,n){function r(e){return t(e)}function i(t,n){var r=t[1]-t[0],i=r/n,a=ho.bisect(ec,i);return a==ec.length?[e.year,ra(t.map(function(t){return t/31536e6}),n)[2]]:a?e[i/ec[a-1]1?{floor:function(e){for(;n(e=t.floor(e));)e=co(e-1);return e},ceil:function(e){for(;n(e=t.ceil(e));)e=co(+e+1);return e}}:t))},r.ticks=function(t,e){var n=Yi(r.domain()),a=null==t?i(n,10):"number"==typeof t?i(n,t):!t.range&&[{range:t},e];return a&&(t=a[0],e=a[1]),t.range(n[0],co(+n[1]+1),e<1?1:e)},r.tickFormat=function(){return n},r.copy=function(){return uo(t.copy(),e,n)},ea(r,t)}function co(t){return new Date(t)}function lo(t){return JSON.parse(t.responseText)}function fo(t){var e=vo.createRange();return e.selectNode(vo.body),e.createContextualFragment(t.responseText)}var ho={version:"3.5.17"},po=[].slice,go=function(t){return po.call(t)},vo=this.document;if(vo)try{go(vo.documentElement.childNodes)[0].nodeType}catch(t){go=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}if(Date.now||(Date.now=function(){return+new Date}),vo)try{vo.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var mo=this.Element.prototype,yo=mo.setAttribute,xo=mo.setAttributeNS,bo=this.CSSStyleDeclaration.prototype,_o=bo.setProperty;mo.setAttribute=function(t,e){yo.call(this,t,e+"")},mo.setAttributeNS=function(t,e,n){xo.call(this,t,e,n+"")},bo.setProperty=function(t,e,n){_o.call(this,t,e+"",n)}}ho.ascending=s,ho.descending=function(t,e){return et?1:e>=t?0:NaN},ho.min=function(t,e){var n,r,i=-1,a=t.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++ir&&(n=r)}else{for(;++i=r){n=r;break}for(;++ir&&(n=r)}return n},ho.max=function(t,e){var n,r,i=-1,a=t.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++in&&(n=r)}else{for(;++i=r){n=r;break}for(;++in&&(n=r)}return n},ho.extent=function(t,e){var n,r,i,a=-1,o=t.length;if(1===arguments.length){for(;++a=r){n=i=r;break}for(;++ar&&(n=r),i=r){n=i=r;break}for(;++ar&&(n=r),i1)return o/(l-1)},ho.deviation=function(){var t=ho.variance.apply(this,arguments);return t?Math.sqrt(t):t};var wo=l(s);ho.bisectLeft=wo.left,ho.bisect=ho.bisectRight=wo.right,ho.bisector=function(t){return l(1===t.length?function(e,n){return s(t(e),n)}:t)},ho.shuffle=function(t,e,n){(a=arguments.length)<3&&(n=t.length,a<2&&(e=0));for(var r,i,a=n-e;a;)i=Math.random()*a--|0,r=t[a+e],t[a+e]=t[i+e],t[i+e]=r;return t},ho.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},ho.pairs=function(t){for(var e,n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n=0;)for(r=t[i],e=r.length;--e>=0;)n[--o]=r[e];return n};var So=Math.abs;ho.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n===1/0)throw new Error("infinite range");var r,i=[],a=h(So(n)),o=-1;if(t*=a,e*=a,n*=a,n<0)for(;(r=t+n*++o)>e;)i.push(r/a);else for(;(r=t+n*++o)=a.length)return r?r.call(i,o):n?o.sort(n):o;for(var u,c,l,f,h=-1,d=o.length,g=a[s++],v=new p;++h=a.length)return t;var r=[],i=o[n++];return t.forEach(function(t,i){r.push({key:t,values:e(i,n)})}),i?r.sort(function(t,e){return i(t.key,e.key)}):r}var n,r,i={},a=[],o=[];return i.map=function(e,n){return t(n,e,0)},i.entries=function(n){return e(t(ho.map,n,0),0)},i.key=function(t){return a.push(t),i},i.sortKeys=function(t){return o[a.length-1]=t,i},i.sortValues=function(t){return n=t,i},i.rollup=function(t){return r=t,i},i},ho.set=function(t){var e=new w;if(t)for(var n=0,r=t.length;n=0&&(r=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},ho.event=null,ho.requote=function(t){return t.replace(Ao,"\\$&")};var Ao=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Co={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]},Eo=function(t,e){return e.querySelector(t)},Po=function(t,e){return e.querySelectorAll(t)},Io=function(t,e){var n=t.matches||t[k(t,"matchesSelector")];return(Io=function(t,e){return n.call(t,e)})(t,e)};"function"==typeof Sizzle&&(Eo=function(t,e){return Sizzle(t,e)[0]||null},Po=Sizzle,Io=Sizzle.matchesSelector),ho.selection=function(){return ho.select(vo.documentElement)};var Oo=ho.selection.prototype=[];Oo.select=function(t){var e,n,r,i,a=[];t=M(t);for(var o=-1,s=this.length;++o=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Ro.hasOwnProperty(n)?{space:Ro[n],local:t}:t}},Oo.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return t=ho.ns.qualify(t),t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(L(e,t[e]));return this}return this.each(L(t,e))},Oo.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=F(t)).length,i=-1;if(e=n.classList){for(;++i=0;)(n=r[i])&&(a&&a!==n.nextSibling&&a.parentNode.insertBefore(n,a),a=n);return this},Oo.sort=function(t){t=q.apply(this,arguments);for(var e=-1,n=this.length;++e0&&(e=e.transition().duration(A)),e.call(t.event)}function s(){_&&_.domain(b.range().map(function(t){return(t-$.x)/$.k}).map(b.invert)),S&&S.domain(w.range().map(function(t){return(t-$.y)/$.k}).map(w.invert))}function u(t){C++||t({type:"zoomstart"})}function c(t){s(),t({type:"zoom",scale:$.k,translate:[$.x,$.y]})}function l(t){--C||(t({type:"zoomend"}),v=null)}function f(){function t(){s=1,i(ho.mouse(r),h),c(a)}function n(){f.on(O,null).on(M,null),d(s),l(a)}var r=this,a=L.of(r,arguments),s=0,f=ho.select(o(r)).on(O,t).on(M,n),h=e(ho.mouse(r)),d=tt(r);Bu.call(r),u(a)}function h(){function t(){var t=ho.touches(p);return d=$.k,t.forEach(function(t){t.identifier in v&&(v[t.identifier]=e(t))}),t}function n(){var e=ho.event.target;ho.select(e).on(b,o).on(_,s),w.push(e); +for(var n=ho.event.changedTouches,r=0,i=n.length;r1){var l=u[0],f=u[1],h=l[0]-f[0],d=l[1]-f[1];m=h*h+d*d}}function o(){var t,e,n,a,o=ho.touches(p);Bu.call(p);for(var s=0,u=o.length;s=c)return o;if(i)return i=!1,a;var e=l;if(34===t.charCodeAt(e)){for(var n=e;n++=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,vs=ho.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=ho.round(t,Nt(t,e))).toFixed(Math.max(0,Math.min(20,Nt(t*(1+1e-15),e))))}}),ms=ho.time={},ys=Date;Ut.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){xs.setUTCDate.apply(this._,arguments)},setDay:function(){xs.setUTCDay.apply(this._,arguments)},setFullYear:function(){xs.setUTCFullYear.apply(this._,arguments)},setHours:function(){xs.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){xs.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){xs.setUTCMinutes.apply(this._,arguments)},setMonth:function(){xs.setUTCMonth.apply(this._,arguments)},setSeconds:function(){xs.setUTCSeconds.apply(this._,arguments)},setTime:function(){xs.setTime.apply(this._,arguments)}};var xs=Date.prototype;ms.year=Bt(function(t){return t=ms.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),ms.years=ms.year.range,ms.years.utc=ms.year.utc.range,ms.day=Bt(function(t){var e=new ys(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),ms.days=ms.day.range,ms.days.utc=ms.day.utc.range,ms.dayOfYear=function(t){var e=ms.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var n=ms[t]=Bt(function(t){return(t=ms.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var n=ms.year(t).getDay();return Math.floor((ms.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});ms[t+"s"]=n.range,ms[t+"s"].utc=n.utc.range,ms[t+"OfYear"]=function(t){var n=ms.year(t).getDay();return Math.floor((ms.dayOfYear(t)+(n+e)%7)/7)}}),ms.week=ms.sunday,ms.weeks=ms.sunday.range,ms.weeks.utc=ms.sunday.utc.range,ms.weekOfYear=ms.sundayOfYear;var bs={"-":"",_:" ",0:"0"},_s=/^\s*\d+/,ws=/^%/;ho.locale=function(t){return{numberFormat:Gt(t),timeFormat:qt(t)}};var Ss=ho.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",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"]});ho.format=Ss.numberFormat,ho.geo={},pe.prototype={s:0,t:0,add:function(t){ge(t,this.t,$s),ge($s.s,this.s,this),this.s?this.t+=$s.t:this.s=$s.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var $s=new pe;ho.geo.stream=function(t,e){t&&ks.hasOwnProperty(t.type)?ks[t.type](t,e):ve(t,e)};var ks={Feature:function(t,e){ve(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++rd&&(d=e)}function e(e,n){var r=be([e*Wo,n*Wo]);if(m){var i=we(m,r),a=[i[1],-i[0],0],o=we(a,i);ke(o),o=Te(o);var u=e-p,c=u>0?1:-1,g=o[0]*qo*c,v=So(u)>180;if(v^(c*pd&&(d=y)}else if(g=(g+360)%360-180,v^(c*pd&&(d=n);v?es(l,h)&&(h=e):s(e,h)>s(l,h)&&(l=e):h>=l?(eh&&(h=e)):e>p?s(l,e)>s(l,h)&&(h=e):s(e,h)>s(l,h)&&(l=e)}else t(e,n);m=r,p=e}function n(){_.point=e}function r(){b[0]=l,b[1]=h,_.point=t,m=null}function i(t,n){if(m){var r=t-p;y+=So(r)>180?r+(r>0?360:-360):r}else g=t,v=n;Es.point(t,n),e(t,n)}function a(){Es.lineStart()}function o(){i(g,v),Es.lineEnd(),So(y)>No&&(l=-(h=180)),b[0]=l,b[1]=h,m=null}function s(t,e){return(e-=t)<0?e+360:e}function u(t,e){return t[0]-e[0]}function c(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tNo?d=90:y<-No&&(f=-90),b[0]=l,b[1]=h}};return function(t){d=h=-(l=f=1/0),x=[],ho.geo.stream(t,_);var e=x.length;if(e){x.sort(u);for(var n,r=1,i=x[0],a=[i];rs(i[0],i[1])&&(i[1]=n[1]),s(n[0],i[1])>s(i[0],i[1])&&(i[0]=n[0])):a.push(i=n);for(var o,n,p=-(1/0),e=a.length-1,r=0,i=a[e];r<=e;i=n,++r)n=a[r],(o=s(i[1],n[0]))>p&&(p=o,l=n[0],h=i[1])}return x=b=null,l===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[l,f],[h,d]]}}(),ho.geo.centroid=function(t){Ps=Is=Os=Ms=Rs=Ls=Ds=js=Fs=Vs=Ns=0,ho.geo.stream(t,zs);var e=Fs,n=Vs,r=Ns,i=e*e+n*n+r*r;return i=.12&&i<.234&&r>=-.425&&r<-.214?o:i>=.166&&i<.234&&r>=-.214&&r<-.115?s:a).invert(t)},t.stream=function(t){var e=a.stream(t),n=o.stream(t),r=s.stream(t);return{point:function(t,i){e.point(t,i),n.point(t,i),r.point(t,i)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},t.precision=function(e){return arguments.length?(a.precision(e),o.precision(e),s.precision(e),t):a.precision()},t.scale=function(e){return arguments.length?(a.scale(e),o.scale(.35*e),s.scale(e),t.translate(a.translate())):a.scale()},t.translate=function(e){if(!arguments.length)return a.translate();var c=a.scale(),l=+e[0],f=+e[1];return n=a.translate(e).clipExtent([[l-.455*c,f-.238*c],[l+.455*c,f+.238*c]]).stream(u).point,r=o.translate([l-.307*c,f+.201*c]).clipExtent([[l-.425*c+No,f+.12*c+No],[l-.214*c-No,f+.234*c-No]]).stream(u).point,i=s.translate([l-.205*c,f+.212*c]).clipExtent([[l-.214*c+No,f+.166*c+No],[l-.115*c-No,f+.234*c-No]]).stream(u).point,t},t.scale(1070)};var Us,Bs,Ws,qs,Ys,Xs,Ks={point:T,lineStart:T,lineEnd:T,polygonStart:function(){Bs=0,Ks.lineStart=Ze},polygonEnd:function(){Ks.lineStart=Ks.lineEnd=Ks.point=T,Us+=So(Bs/2)}},Zs={point:Qe,lineStart:T,lineEnd:T,polygonStart:T,polygonEnd:T},Qs={point:en,lineStart:nn,lineEnd:rn,polygonStart:function(){Qs.lineStart=an},polygonEnd:function(){Qs.point=en,Qs.lineStart=nn,Qs.lineEnd=rn}};ho.geo.path=function(){function t(t){return t&&("function"==typeof s&&a.pointRadius(+s.apply(this,arguments)),o&&o.valid||(o=i(a)),ho.geo.stream(t,o)),a.result()}function e(){return o=null,t}var n,r,i,a,o,s=4.5;return t.area=function(t){return Us=0,ho.geo.stream(t,i(Ks)),Us},t.centroid=function(t){return Os=Ms=Rs=Ls=Ds=js=Fs=Vs=Ns=0,ho.geo.stream(t,i(Qs)),Ns?[Fs/Ns,Vs/Ns]:js?[Ls/js,Ds/js]:Rs?[Os/Rs,Ms/Rs]:[NaN,NaN]},t.bounds=function(t){return Ys=Xs=-(Ws=qs=1/0),ho.geo.stream(t,i(Zs)),[[Ws,qs],[Ys,Xs]]},t.projection=function(t){return arguments.length?(i=(n=t)?t.stream||un(t):S,e()):n},t.context=function(t){return arguments.length?(a=null==(r=t)?new Je:new on(t),"function"!=typeof s&&a.pointRadius(s),e()):r},t.pointRadius=function(e){return arguments.length?(s="function"==typeof e?e:(a.pointRadius(+e),+e),t):s},t.projection(ho.geo.albersUsa()).context(null)},ho.geo.transform=function(t){return{stream:function(e){var n=new cn(e);for(var r in t)n[r]=t[r];return n}}},cn.prototype={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()}},ho.geo.projection=fn,ho.geo.projectionMutator=hn,(ho.geo.equirectangular=function(){return fn(pn)}).raw=pn.invert=pn,ho.geo.rotation=function(t){function e(e){return e=t(e[0]*Wo,e[1]*Wo),e[0]*=qo,e[1]*=qo,e}return t=vn(t[0]%360*Wo,t[1]*Wo,t.length>2?t[2]*Wo:0),e.invert=function(e){return e=t.invert(e[0]*Wo,e[1]*Wo),e[0]*=qo,e[1]*=qo,e},e},gn.invert=pn,ho.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,e=vn(-t[0]*Wo,-t[1]*Wo,0).invert,i=[];return n(null,null,1,{point:function(t,n){i.push(t=e(t,n)),t[0]*=qo,t[1]*=qo}}),{type:"Polygon",coordinates:[i]}}var e,n,r=[0,0],i=6;return t.origin=function(e){return arguments.length?(r=e,t):r},t.angle=function(r){return arguments.length?(n=bn((e=+r)*Wo,i*Wo),t):e},t.precision=function(r){return arguments.length?(n=bn(e*Wo,(i=+r)*Wo),t):i},t.angle(90)},ho.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Wo,i=t[1]*Wo,a=e[1]*Wo,o=Math.sin(r),s=Math.cos(r),u=Math.sin(i),c=Math.cos(i),l=Math.sin(a),f=Math.cos(a);return Math.atan2(Math.sqrt((n=f*o)*n+(n=c*l-u*f*s)*n),u*l+c*f*s)},ho.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return ho.range(Math.ceil(a/v)*v,i,v).map(h).concat(ho.range(Math.ceil(c/m)*m,u,m).map(d)).concat(ho.range(Math.ceil(r/p)*p,n,p).filter(function(t){return So(t%v)>No}).map(l)).concat(ho.range(Math.ceil(s/g)*g,o,g).filter(function(t){return So(t%m)>No}).map(f))}var n,r,i,a,o,s,u,c,l,f,h,d,p=10,g=p,v=90,m=360,y=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[h(a).concat(d(u).slice(1),h(i).reverse().slice(1),d(c).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(a=+e[0][0],i=+e[1][0],c=+e[0][1],u=+e[1][1],a>i&&(e=a,a=i,i=e),c>u&&(e=c,c=u,u=e),t.precision(y)):[[a,c],[i,u]]},t.minorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],o=+e[1][1],r>n&&(e=r,r=n,n=e),s>o&&(e=s,s=o,o=e),t.precision(y)):[[r,s],[n,o]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(v=+e[0],m=+e[1],t):[v,m]},t.minorStep=function(e){return arguments.length?(p=+e[0],g=+e[1],t):[p,g]},t.precision=function(e){return arguments.length?(y=+e,l=wn(s,o,90),f=Sn(r,n,y),h=wn(c,u,90),d=Sn(a,i,y),t):y},t.majorExtent([[-180,-90+No],[180,90-No]]).minorExtent([[-180,-80-No],[180,80+No]])},ho.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||r.apply(this,arguments),n||i.apply(this,arguments)]}}var e,n,r=$n,i=kn;return t.distance=function(){return ho.geo.distance(e||r.apply(this,arguments),n||i.apply(this,arguments))},t.source=function(n){return arguments.length?(r=n,e="function"==typeof n?null:n,t):r},t.target=function(e){return arguments.length?(i=e,n="function"==typeof e?null:e,t):i},t.precision=function(){return arguments.length?t:0},t},ho.geo.interpolate=function(t,e){return Tn(t[0]*Wo,t[1]*Wo,e[0]*Wo,e[1]*Wo)},ho.geo.length=function(t){return Js=0,ho.geo.stream(t,tu),Js};var Js,tu={sphere:T,point:T,lineStart:An,lineEnd:T,polygonStart:T,polygonEnd:T},eu=Cn(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(ho.geo.azimuthalEqualArea=function(){return fn(eu)}).raw=eu;var nu=Cn(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},S);(ho.geo.azimuthalEquidistant=function(){return fn(nu)}).raw=nu,(ho.geo.conicConformal=function(){return Xe(En)}).raw=En,(ho.geo.conicEquidistant=function(){return Xe(Pn)}).raw=Pn;var ru=Cn(function(t){return 1/t},Math.atan);(ho.geo.gnomonic=function(){return fn(ru)}).raw=ru,In.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Bo]},(ho.geo.mercator=function(){return On(In)}).raw=In;var iu=Cn(function(){return 1},Math.asin);(ho.geo.orthographic=function(){return fn(iu)}).raw=iu;var au=Cn(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(ho.geo.stereographic=function(){return fn(au)}).raw=au,Mn.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Bo]},(ho.geo.transverseMercator=function(){var t=On(Mn),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90])}).raw=Mn,ho.geom={},ho.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,i=It(n),a=It(r),o=t.length,s=[],u=[];for(e=0;e=0;--e)d.push(t[s[c[e]][2]]);for(e=+f;e=r&&c.x<=a&&c.y>=i&&c.y<=o?[[r,o],[a,o],[a,i],[r,i]]:[];l.point=t[s]}),e}function n(t){return t.map(function(t,e){return{x:Math.round(a(t,e)/No)*No,y:Math.round(o(t,e)/No)*No,i:e}})}var r=Rn,i=Ln,a=r,o=i,s=pu;return t?e(t):(e.links=function(t){return hr(n(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return hr(n(t)).cells.forEach(function(n,r){for(var i,a,o=n.site,s=n.edges.sort(Kn),u=-1,c=s.length,l=s[c-1].edge,f=l.l===o?l.r:l.l;++u=c,h=r>=l,d=h<<1|f;t.leaf=!1,t=t.nodes[d]||(t.nodes[d]=mr()),f?i=c:s=c,h?o=l:u=l,a(t,e,n,r,i,o,s,u)}var l,f,h,d,p,g,v,m,y,x=It(s),b=It(u);if(null!=e)g=e,v=n,m=r,y=i;else if(m=y=-(g=v=1/0),f=[],h=[],p=t.length,o)for(d=0;dm&&(m=l.x),l.y>y&&(y=l.y),f.push(l.x),h.push(l.y);else for(d=0;dm&&(m=_),w>y&&(y=w),f.push(_),h.push(w)}var S=m-g,$=y-v;S>$?y=v+S:m=g+$;var k=mr();if(k.add=function(t){a(k,t,+x(t,++d),+b(t,d),g,v,m,y)},k.visit=function(t){yr(t,k,g,v,m,y)},k.find=function(t){return xr(k,t[0],t[1],g,v,m,y)},d=-1,null==e){for(;++d=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=yu.get(n)||mu,r=xu.get(r)||S,Tr(r(n.apply(null,po.call(arguments,1))))},ho.interpolateHcl=Vr,ho.interpolateHsl=Nr,ho.interpolateLab=zr,ho.interpolateRound=Gr,ho.transform=function(t){var e=vo.createElementNS(ho.ns.prefix.svg,"g");return(ho.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new Hr(n?n.matrix:bu)})(t)},Hr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var bu={a:1,b:0,c:0,d:1,e:0,f:0};ho.interpolateTransform=Qr,ho.layout={},ho.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n0?i=t:(n.c=null,n.t=NaN,n=null,c.end({type:"end",alpha:i=0})):t>0&&(c.start({type:"start",alpha:i=t}),n=Dt(u.tick)),u):i},u.start=function(){function t(t,r){if(!n){for(n=new Array(i),u=0;u=0;)o.push(l=c[u]),l.parent=a,l.depth=a.depth+1;r&&(a.value=0),a.children=c}else r&&(a.value=+r.call(t,a,a.depth)||0),delete a.children;return fi(i,function(t){var n,i;e&&(n=t.children)&&n.sort(e),r&&(i=t.parent)&&(i.value+=t.value)}),s}var e=pi,n=hi,r=di;return t.sort=function(n){return arguments.length?(e=n,t):e},t.children=function(e){return arguments.length?(n=e,t):n},t.value=function(e){return arguments.length?(r=e,t):r},t.revalue=function(e){return r&&(li(e,function(t){t.children&&(t.value=0)}),fi(e,function(e){var n;e.children||(e.value=+r.call(t,e,e.depth)||0),(n=e.parent)&&(n.value+=e.value)})),e},t},ho.layout.partition=function(){function t(e,n,r,i){var a=e.children;if(e.x=n,e.y=e.depth*i,e.dx=r,e.dy=i,a&&(o=a.length)){var o,s,u,c=-1;for(r=e.value?r/e.value:0;++cs&&(s=r),o.push(r)}for(n=0;n0)for(a=-1;++a=l[0]&&s<=l[1]&&(o=u[ho.bisect(f,s,1,d)-1],o.y+=p,o.push(t[a]));return u}var e=!0,n=Number,r=Ti,i=$i;return t.value=function(e){return arguments.length?(n=e,t):n},t.range=function(e){return arguments.length?(r=It(e),t):r},t.bins=function(e){return arguments.length?(i="number"==typeof e?function(t){return ki(t,e)}:It(e),t):i},t.frequency=function(n){return arguments.length?(e=!!n,t):e},t},ho.layout.pack=function(){function t(t,a){var o=n.call(this,t,a),s=o[0],u=i[0],c=i[1],l=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(s.x=s.y=0,fi(s,function(t){t.r=+l(t.value)}),fi(s,Ii),r){var f=r*(e?1:Math.max(2*s.r/u,2*s.r/c))/2;fi(s,function(t){t.r+=f}),fi(s,Ii),fi(s,function(t){t.r-=f})}return Ri(s,u/2,c/2,e?1:1/Math.max(2*s.r/u,2*s.r/c)),o}var e,n=ho.layout.hierarchy().sort(Ai),r=0,i=[1,1];return t.size=function(e){return arguments.length?(i=e,t):i},t.radius=function(n){return arguments.length?(e=null==n||"function"==typeof n?n:+n,t):e},t.padding=function(e){return arguments.length?(r=+e,t):r},ci(t,n)},ho.layout.tree=function(){function t(t,i){var l=o.call(this,t,i),f=l[0],h=e(f);if(fi(h,n),h.parent.m=-h.z,li(h,r),c)li(f,a);else{var d=f,p=f,g=f;li(f,function(t){t.xp.x&&(p=t),t.depth>g.depth&&(g=t)});var v=s(d,p)/2-d.x,m=u[0]/(p.x+s(p,d)/2+v),y=u[1]/(g.depth||1);li(f,function(t){t.x=(t.x+v)*m,t.y=t.depth*y})}return l}function e(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var i,a=e.children,o=0,s=a.length;o0&&(Vi(zi(o,t,n),t,r),c+=r,l+=r),f+=o.m,c+=i.m,h+=u.m,l+=a.m;o&&!Fi(a)&&(a.t=o,a.m+=f-l),i&&!ji(u)&&(u.t=i,u.m+=c-h,n=t)}return n}function a(t){t.x*=u[0],t.y=t.depth*u[1]}var o=ho.layout.hierarchy().sort(null).value(null),s=Di,u=[1,1],c=null;return t.separation=function(e){return arguments.length?(s=e,t):s},t.size=function(e){return arguments.length?(c=null==(u=e)?a:null,t):c?null:u},t.nodeSize=function(e){return arguments.length?(c=null==(u=e)?null:a,t):c?u:null},ci(t,o)},ho.layout.cluster=function(){function t(t,a){var o,s=e.call(this,t,a),u=s[0],c=0;fi(u,function(t){var e=t.children;e&&e.length?(t.x=Hi(e),t.y=Gi(e)):(t.x=o?c+=n(t,o):0,t.y=0,o=t)});var l=Ui(u),f=Bi(u),h=l.x-n(l,f)/2,d=f.x+n(f,l)/2;return fi(u,i?function(t){t.x=(t.x-u.x)*r[0],t.y=(u.y-t.y)*r[1]}:function(t){t.x=(t.x-h)/(d-h)*r[0],t.y=(1-(u.y?t.y/u.y:1))*r[1]}),s}var e=ho.layout.hierarchy().sort(null).value(null),n=Di,r=[1,1],i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(i=null==(r=e),t):i?null:r},t.nodeSize=function(e){return arguments.length?(i=null!=(r=e),t):i?r:null},ci(t,e)},ho.layout.treemap=function(){function t(t,e){for(var n,r,i=-1,a=t.length;++i0;)l.push(o=h[u-1]),l.area+=o.area,"squarify"!==d||(s=r(l,g))<=p?(h.pop(),p=s):(l.area-=l.pop().area,i(l,g,c,!1),g=Math.min(c.dx,c.dy),l.length=l.area=0,p=1/0);l.length&&(i(l,g,c,!0),l.length=l.area=0),a.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var a,o=f(e),s=r.slice(),u=[];for(t(s,o.dx*o.dy/e.value),u.area=0;a=s.pop();)u.push(a),u.area+=a.area,null!=a.z&&(i(u,a.z?o.dx:o.dy,o,!s.length),u.length=u.area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,i=0,a=1/0,o=-1,s=t.length;++oi&&(i=n));return r*=r,e*=e,r?Math.max(e*i*p/r,r/(e*a*p)):1/0}function i(t,e,n,r){var i,a=-1,o=t.length,s=n.x,c=n.y,l=e?u(t.area/e):0;if(e==n.dx){for((r||l>n.dy)&&(l=n.dy);++an.dx)&&(l=n.dx);++a1);return t+e*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=ho.random.normal.apply(ho,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=ho.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;nf?0:1;if(c=Uo)return e(c,d)+(t?e(t,1-d):"")+"Z";var p,g,v,m,y,x,b,_,w,S,$,k,T=0,A=0,C=[];if((m=(+u.apply(this,arguments)||0)/2)&&(v=a===Lu?Math.sqrt(t*t+c*c):+a.apply(this,arguments),d||(A*=-1),c&&(A=ot(v/c*Math.sin(m))),t&&(T=ot(v/t*Math.sin(m)))),c){y=c*Math.cos(l+A),x=c*Math.sin(l+A),b=c*Math.cos(f-A),_=c*Math.sin(f-A);var E=Math.abs(f-l-2*A)<=Go?0:1;if(A&&wa(y,x,b,_)===d^E){var P=(l+f)/2;y=c*Math.cos(P),x=c*Math.sin(P),b=_=null}}else y=x=0;if(t){w=t*Math.cos(f-T),S=t*Math.sin(f-T),$=t*Math.cos(l+T),k=t*Math.sin(l+T);var I=Math.abs(l-f+2*T)<=Go?0:1;if(T&&wa(w,S,$,k)===1-d^I){var O=(l+f)/2;w=t*Math.cos(O),S=t*Math.sin(O),$=k=null}}else w=S=0;if(h>No&&(p=Math.min(Math.abs(c-t)/2,+i.apply(this,arguments)))>.001){g=tGo)+",1 "+e}function i(t,e,n,r){return"Q 0,0 "+r}var a=$n,o=kn,s=qa,u=xa,c=ba;return t.radius=function(e){return arguments.length?(s=It(e),t):s},t.source=function(e){return arguments.length?(a=It(e),t):a},t.target=function(e){return arguments.length?(o=It(e),t):o},t.startAngle=function(e){return arguments.length?(u=It(e),t):u},t.endAngle=function(e){return arguments.length?(c=It(e),t):c},t},ho.svg.diagonal=function(){function t(t,i){var a=e.call(this,t,i),o=n.call(this,t,i),s=(a.y+o.y)/2,u=[a,{x:a.x,y:s},{x:o.x,y:s},o];return u=u.map(r),"M"+u[0]+"C"+u[1]+" "+u[2]+" "+u[3]}var e=$n,n=kn,r=Ya;return t.source=function(n){return arguments.length?(e=It(n),t):e},t.target=function(e){return arguments.length?(n=It(e),t):n},t.projection=function(e){return arguments.length?(r=e,t):r},t},ho.svg.diagonal.radial=function(){var t=ho.svg.diagonal(),e=Ya,n=t.projection;return t.projection=function(t){return arguments.length?n(Xa(e=t)):e},t},ho.svg.symbol=function(){function t(t,r){return(Nu.get(e.call(this,t,r))||Qa)(n.call(this,t,r))}var e=Za,n=Ka;return t.type=function(n){return arguments.length?(e=It(n),t):e},t.size=function(e){return arguments.length?(n=It(e),t):n},t};var Nu=ho.map({circle:Qa,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Gu)),n=e*Gu;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/zu),n=e*zu/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/zu),n=e*zu/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});ho.svg.symbolTypes=Nu.keys();var zu=Math.sqrt(3),Gu=Math.tan(30*Wo);Oo.transition=function(t){for(var e,n,r=Hu||++qu,i=ro(t),a=[],o=Uu||{time:Date.now(),ease:Ir,delay:0,duration:250},s=-1,u=this.length;++srect,.s>rect").attr("width",f[1]-f[0])}function r(t){t.select(".extent").attr("y",h[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function i(){function i(){32==ho.event.keyCode&&(C||(x=null,I[0]-=f[1],I[1]-=h[1],C=2),E())}function g(){32==ho.event.keyCode&&2==C&&(I[0]+=f[1],I[1]+=h[1],C=0,E())}function v(){var t=ho.mouse(_),i=!1;b&&(t[0]+=b[0],t[1]+=b[1]),C||(ho.event.altKey?(x||(x=[(f[0]+f[1])/2,(h[0]+h[1])/2]),I[0]=f[+(t[0]/g,">").replace(/"/g,""").replace(/'/g,"'")}function o(t){return t.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(t,e){return e=e.toLowerCase(),"colon"===e?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""})}function s(t,e){return t=t.source,e=e||"",function n(r,i){return r?(i=i.source||i,i=i.replace(/(^|[^\[])\^/g,"$1"),t=t.replace(r,i),n):new RegExp(t,e)}}function u(){}function c(t){for(var e,n,r=1;rAn error occured:

"+a(t.message+"",!0)+"
";throw t}}var f={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:u,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:u,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:u,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};f.bullet=/(?:[*+-]|\d+\.)/,f.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,f.item=s(f.item,"gm")(/bull/g,f.bullet)(),f.list=s(f.list)(/bull/g,f.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+f.def.source+")")(),f.blockquote=s(f.blockquote)("def",f.def)(),f._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",f.html=s(f.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,f._tag)(),f.paragraph=s(f.paragraph)("hr",f.hr)("heading",f.heading)("lheading",f.lheading)("blockquote",f.blockquote)("tag","<"+f._tag)("def",f.def)(),f.normal=c({},f),f.gfm=c({},f.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),f.gfm.paragraph=s(f.paragraph)("(?!","(?!"+f.gfm.fences.source.replace("\\1","\\2")+"|"+f.list.source.replace("\\1","\\3")+"|")(),f.tables=c({},f.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),e.rules=f,e.lex=function(t,n){var r=new e(n);return r.lex(t)},e.prototype.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(t,!0)},e.prototype.token=function(t,e,n){for(var r,i,a,o,s,u,c,l,h,t=t.replace(/^ +$/gm,"");t;)if((a=this.rules.newline.exec(t))&&(t=t.substring(a[0].length),a[0].length>1&&this.tokens.push({type:"space"})),a=this.rules.code.exec(t))t=t.substring(a[0].length),a=a[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?a:a.replace(/\n+$/,"")});else if(a=this.rules.fences.exec(t))t=t.substring(a[0].length),this.tokens.push({type:"code",lang:a[2],text:a[3]||""});else if(a=this.rules.heading.exec(t))t=t.substring(a[0].length),this.tokens.push({type:"heading",depth:a[1].length,text:a[2]});else if(e&&(a=this.rules.nptable.exec(t))){for(t=t.substring(a[0].length),u={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/\n$/,"").split("\n")},l=0;l ?/gm,""),this.token(a,e,!0),this.tokens.push({type:"blockquote_end"});else if(a=this.rules.list.exec(t)){for(t=t.substring(a[0].length),o=a[2],this.tokens.push({type:"list_start",ordered:o.length>1}),a=a[0].match(this.rules.item),r=!1,h=a.length,l=0;l1&&s.length>1||(t=a.slice(l+1).join("\n")+t,l=h-1)),i=r||/\n\n(?!\s*$)/.test(u),l!==h-1&&(r="\n"===u.charAt(u.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(u,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(a=this.rules.html.exec(t))t=t.substring(a[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===a[1]||"script"===a[1]||"style"===a[1]),text:a[0]});else if(!n&&e&&(a=this.rules.def.exec(t)))t=t.substring(a[0].length),this.tokens.links[a[1].toLowerCase()]={href:a[2],title:a[3]};else if(e&&(a=this.rules.table.exec(t))){for(t=t.substring(a[0].length),u={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/(?: *\| *)?\n$/,"").split("\n")},l=0;l])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:u,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:u,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,h.link=s(h.link)("inside",h._inside)("href",h._href)(),h.reflink=s(h.reflink)("inside",h._inside)(),h.normal=c({},h),h.pedantic=c({},h.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),h.gfm=c({},h.normal,{escape:s(h.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:s(h.text)("]|","~]|")("|","|https?://|")()}),h.breaks=c({},h.gfm,{br:s(h.br)("{2,}","*")(),text:s(h.gfm.text)("{2,}","*")()}),n.rules=h,n.output=function(t,e,r){var i=new n(e,r);return i.output(t)},n.prototype.output=function(t){for(var e,n,r,i,o="";t;)if(i=this.rules.escape.exec(t))t=t.substring(i[0].length),o+=i[1];else if(i=this.rules.autolink.exec(t))t=t.substring(i[0].length),"@"===i[2]?(n=":"===i[1].charAt(6)?this.mangle(i[1].substring(7)):this.mangle(i[1]),r=this.mangle("mailto:")+n):(n=a(i[1]),r=n),o+=this.renderer.link(r,null,n);else if(this.inLink||!(i=this.rules.url.exec(t))){if(i=this.rules.tag.exec(t))!this.inLink&&/^/i.test(i[0])&&(this.inLink=!1),t=t.substring(i[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):a(i[0]):i[0];else if(i=this.rules.link.exec(t))t=t.substring(i[0].length),this.inLink=!0,o+=this.outputLink(i,{href:i[2],title:i[3]}),this.inLink=!1;else if((i=this.rules.reflink.exec(t))||(i=this.rules.nolink.exec(t))){if(t=t.substring(i[0].length),e=(i[2]||i[1]).replace(/\s+/g," "),e=this.links[e.toLowerCase()],!e||!e.href){o+=i[0].charAt(0),t=i[0].substring(1)+t;continue}this.inLink=!0,o+=this.outputLink(i,e),this.inLink=!1}else if(i=this.rules.strong.exec(t))t=t.substring(i[0].length),o+=this.renderer.strong(this.output(i[2]||i[1]));else if(i=this.rules.em.exec(t))t=t.substring(i[0].length),o+=this.renderer.em(this.output(i[2]||i[1]));else if(i=this.rules.code.exec(t))t=t.substring(i[0].length),o+=this.renderer.codespan(a(i[2],!0));else if(i=this.rules.br.exec(t))t=t.substring(i[0].length),o+=this.renderer.br();else if(i=this.rules.del.exec(t))t=t.substring(i[0].length),o+=this.renderer.del(this.output(i[1]));else if(i=this.rules.text.exec(t))t=t.substring(i[0].length),o+=this.renderer.text(a(this.smartypants(i[0])));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0))}else t=t.substring(i[0].length),n=a(i[1]),r=n,o+=this.renderer.link(r,null,n);return o},n.prototype.outputLink=function(t,e){var n=a(e.href),r=e.title?a(e.title):null;return"!"!==t[0].charAt(0)?this.renderer.link(n,r,this.output(t[1])):this.renderer.image(n,r,a(t[1]))},n.prototype.smartypants=function(t){return this.options.smartypants?t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):t},n.prototype.mangle=function(t){if(!this.options.mangle)return t;for(var e,n="",r=t.length,i=0;i.5&&(e="x"+e.toString(16)),n+="&#"+e+";";return n},r.prototype.code=function(t,e,n){if(this.options.highlight){var r=this.options.highlight(t,e);null!=r&&r!==t&&(n=!0,t=r)}return e?'
'+(n?t:a(t,!0))+"\n
\n":"
"+(n?t:a(t,!0))+"\n
"},r.prototype.blockquote=function(t){return"
\n"+t+"
\n"},r.prototype.html=function(t){return t},r.prototype.heading=function(t,e,n){return"'+t+"\n"},r.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},r.prototype.list=function(t,e){var n=e?"ol":"ul";return"<"+n+">\n"+t+"\n"},r.prototype.listitem=function(t){return"
  • "+t+"
  • \n"},r.prototype.paragraph=function(t){return"

    "+t+"

    \n"},r.prototype.table=function(t,e){return"\n\n"+t+"\n\n"+e+"\n
    \n"},r.prototype.tablerow=function(t){return"\n"+t+"\n"},r.prototype.tablecell=function(t,e){var n=e.header?"th":"td",r=e.align?"<"+n+' style="text-align:'+e.align+'">':"<"+n+">";return r+t+"\n"},r.prototype.strong=function(t){return""+t+""},r.prototype.em=function(t){return""+t+""},r.prototype.codespan=function(t){return""+t+""},r.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},r.prototype.del=function(t){return""+t+""},r.prototype.link=function(t,e,n){if(this.options.sanitize){try{var r=decodeURIComponent(o(t)).replace(/[^\w:]/g,"").toLowerCase()}catch(t){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var i='
    "},r.prototype.image=function(t,e,n){var r=''+n+'":">"},r.prototype.text=function(t){return t},i.parse=function(t,e,n){var r=new i(e,n);return r.parse(t)},i.prototype.parse=function(t){this.inline=new n(t.links,this.options,this.renderer),this.tokens=t.reverse();for(var e="";this.next();)e+=this.tok();return e},i.prototype.next=function(){return this.token=this.tokens.pop()},i.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},i.prototype.parseText=function(){for(var t=this.token.text;"text"===this.peek().type;)t+="\n"+this.next().text;return this.inline.output(t)},i.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var t,e,n,r,i,a="",o="";for(n="",t=0;t0&&(r+=i>0?" ":"",r+=n?e+t:t+e)}),r}function o(t,e){var n=t.indexOf(e);e>=0&&t.splice(n,1)}function s(t){if(t instanceof nt)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===j)return t;break;default:return nt(u(t))}if(t.nodeType===j)return nt(t)}function u(t){if(!t[0])return t;for(var e=0;e=0)&&(n=C(n)),0===n&&(n=null),r[e]=n}}),r}function C(t){var e=0,n=t.split(/\s*,\s*/);return Y(n,function(t){"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t}),e}function E(t){return 0===t||null!=t}function P(t,e){var n=M,r=t+"s";return e?n+=it:r+=" linear all",[n,r]}function I(){var t=Object.create(null);return{flush:function(){t=Object.create(null)},count:function(e){var n=t[e];return n?n.total:0},get:function(e){var n=t[e];return n&&n.value},put:function(e,n){t[e]?t[e].total++:t[e]={total:1,value:n}}}}function O(t,e,n){Y(n,function(n){t[n]=K(t[n])?t[n]:e.style.getPropertyValue(n)})}var M,R,L,D,j=1,F="-add",V="-remove",N="ng-",z="-active",G="-prepare",H="ng-animate",U="$$ngAnimateChildren",B="";void 0===t.ontransitionend&&void 0!==t.onwebkittransitionend?(B="-webkit-",M="WebkitTransition",R="webkitTransitionEnd transitionend"):(M="transition",R="transitionend"),void 0===t.onanimationend&&void 0!==t.onwebkitanimationend?(B="-webkit-",L="WebkitAnimation",D="webkitAnimationEnd animationend"):(L="animation",D="animationend");var W,q,Y,X,K,Z,Q,J,tt,et,nt,rt,it="Duration",at="Property",ot="Delay",st="TimingFunction",ut="IterationCount",ct="PlayState",lt=9999,ft=L+ot,ht=L+it,dt=M+ot,pt=M+it,gt=e.$$minErr("ng"),vt=["$$rAF",function(t){function e(t){r=r.concat(t),n()}function n(){if(r.length){for(var e=r.shift(),a=0;a0&&(c=n.get(s),!c)){var l=a(o,"-stagger");r.addClass(i,l),c=A(t,i,u),c.animationDuration=Math.max(c.animationDuration,0),c.transitionDuration=Math.max(c.transitionDuration,0),r.removeClass(i,l),n.put(s,c)}return c||{}}function C(t){H.push(t),v.waitUntilQuiet(function(){e.flush(),n.flush();for(var t=c(),r=0;r=nt&&r>=it&&(Q=!0,v())}function H(){function e(){if(!K){if(b(!1),Y(ct,function(t){var e=t[0],n=t[1];q.style[e]=n}),j(t,U),r.addClass(t,kt),Vt.recalculateTimingStyles){if($t=q.getAttribute("class")+" "+wt,Ct=x(q,$t),jt=I(q,$t,Ct),Ft=jt.maxDelay,et=Math.max(Ft,0),it=jt.maxDuration,0===it)return void v();Vt.hasTransitions=jt.transitionDuration>0,Vt.hasAnimations=jt.animationDuration>0}if(Vt.applyAnimationDelay&&(Ft="boolean"!=typeof U.delay&&E(U.delay)?parseFloat(U.delay):Ft,et=Math.max(Ft,0),jt.animationDelay=Ft,Nt=T(Ft,!0),ct.push(Nt),q.style[Nt[0]]=Nt[1]),nt=et*xt,ot=it*xt,U.easing){var e,i=U.easing;Vt.hasTransitions&&(e=M+st,ct.push([e,i]),q.style[e]=i),Vt.hasAnimations&&(e=L+st,ct.push([e,i]),q.style[e]=i)}jt.transitionDuration&&dt.push(R),jt.animationDuration&&dt.push(D),ut=Date.now();var a=nt+_t*ot,o=ut+a,s=t.data(yt)||[],c=!0;if(s.length){var l=s[0];c=o>l.expectedEndTime,c?u.cancel(l.timer):s.push(v)}if(c){var f=u(n,a,!1);s[0]={timer:f,expectedEndTime:o},s.push(v),t.data(yt,s)}dt.length&&t.on(dt.join(" "),G),U.to&&(U.cleanupStyles&&O(B,q,Object.keys(U.to)),g(t,U))}}function n(){var e=t.data(yt);if(e){for(var n=1;n0&&(jt.transitionDuration&&0===Et.transitionDuration||jt.animationDuration&&0===Et.animationDuration)&&Math.max(Et.animationDelay,Et.transitionDelay);a?u(e,Math.floor(a*Lt*xt),!1):e(),tt.resume=function(){i(!0)},tt.pause=function(){i(!1)}}}var U=n||{};U.$$prepared||(U=h(W(U)));var B={},q=y(t);if(!q||!q.parentNode||!m.enabled())return A();var K,Z,Q,J,tt,et,nt,it,ot,ut,ct=[],ft=t.attr("class"),ht=i(U),dt=[];if(0===U.duration||!l.animations&&!l.transitions)return A();var pt=U.event&&X(U.event)?U.event.join(" "):U.event,gt=pt&&U.structural,vt="",mt="";gt?vt=a(pt,N,!0):pt&&(vt=pt),U.addClass&&(mt+=a(U.addClass,F)),U.removeClass&&(mt.length&&(mt+=" "),mt+=a(U.removeClass,V)),U.applyClassesEarly&&mt.length&&j(t,U);var wt=[vt,mt].join(" ").trim(),$t=ft+" "+wt,kt=a(wt,z),Tt=ht.to&&Object.keys(ht.to).length>0,At=(U.keyframeStyle||"").length>0;if(!At&&!Tt&&!wt)return A();var Ct,Et;if(U.stagger>0){var Pt=parseFloat(U.stagger);Et={transitionDelay:Pt,animationDelay:Pt,transitionDuration:0,animationDuration:0}}else Ct=x(q,$t),Et=$(q,wt,Ct,St);U.$$skipPreparationClasses||r.addClass(t,wt);var It;if(U.transitionStyle){var Ot=[M,U.transitionStyle];S(q,Ot),ct.push(Ot)}if(U.duration>=0){It=q.style[M].length>0;var Mt=P(U.duration,It);S(q,Mt),ct.push(Mt)}if(U.keyframeStyle){var Rt=[L,U.keyframeStyle];S(q,Rt),ct.push(Rt)}var Lt=Et?U.staggerIndex>=0?U.staggerIndex:e.count(Ct):0,Dt=0===Lt;Dt&&!U.skipBlocking&&_(q,lt);var jt=I(q,$t,Ct),Ft=jt.maxDelay;et=Math.max(Ft,0),it=jt.maxDuration;var Vt={};if(Vt.hasTransitions=jt.transitionDuration>0,Vt.hasAnimations=jt.animationDuration>0,Vt.hasTransitionAll=Vt.hasTransitions&&"all"===jt.transitionProperty,Vt.applyTransitionDuration=Tt&&(Vt.hasTransitions&&!Vt.hasTransitionAll||Vt.hasAnimations&&!Vt.hasTransitions),Vt.applyAnimationDuration=U.duration&&Vt.hasAnimations,Vt.applyTransitionDelay=E(U.delay)&&(Vt.applyTransitionDuration||Vt.hasTransitions),Vt.applyAnimationDelay=E(U.delay)&&Vt.hasAnimations,Vt.recalculateTimingStyles=mt.length>0,(Vt.applyTransitionDuration||Vt.applyAnimationDuration)&&(it=U.duration?parseFloat(U.duration):it,Vt.applyTransitionDuration&&(Vt.hasTransitions=!0,jt.transitionDuration=it,It=q.style[M+at].length>0,ct.push(P(it,It))),Vt.applyAnimationDuration&&(Vt.hasAnimations=!0,jt.animationDuration=it,ct.push(k(it)))),0===it&&!Vt.recalculateTimingStyles)return A();if(null!=U.delay){var Nt;"boolean"!=typeof U.delay&&(Nt=parseFloat(U.delay),et=Math.max(Nt,0)),Vt.applyTransitionDelay&&ct.push(T(Nt)),Vt.applyAnimationDelay&&ct.push(T(Nt,!0))}return null==U.duration&&jt.transitionDuration>0&&(Vt.recalculateTimingStyles=Vt.recalculateTimingStyles||Dt),nt=et*xt,ot=it*xt,U.skipBlocking||(Vt.blockTransition=jt.transitionDuration>0,Vt.blockKeyframeAnimation=jt.animationDuration>0&&Et.animationDelay>0&&0===Et.animationDuration),U.from&&(U.cleanupStyles&&O(B,q,Object.keys(U.from)),p(t,U)),Vt.blockTransition||Vt.blockKeyframeAnimation?b(it):U.skipBlocking||_(q,!1),{$$willAnimate:!0,end:c,start:function(){if(!K)return tt={end:c,cancel:f,resume:null,pause:null},J=new s(tt),C(H),J}}}}]}],kt=["$$animationProvider",function(t){function e(t){return t.parentNode&&11===t.parentNode.nodeType}t.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor",i="ng-anchor-out",a="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(t,o,s,u,c,l,f){function h(t){return t.replace(/\bng-\S+\b/g,"")}function d(t,e){return tt(t)&&(t=t.split(" ")),tt(e)&&(e=e.split(" ")),t.filter(function(t){return e.indexOf(t)===-1}).join(" ")}function p(e,o,u){function c(t){var e={},n=y(t).getBoundingClientRect();return Y(["width","height","top","left"],function(t){var r=n[t];switch(t){case"top":r+=m.scrollTop;break;case"left":r+=m.scrollLeft}e[t]=Math.floor(r)+"px"}),e}function l(){var e=t(v,{addClass:i,delay:!0,from:c(o)});return e.$$willAnimate?e:null}function f(t){return t.attr("class")||""}function p(){var e=h(f(u)),n=d(e,x),r=d(x,e),o=t(v,{to:c(u),addClass:a+" "+n,removeClass:i+" "+r,delay:!0});return o.$$willAnimate?o:null}function g(){v.remove(),o.removeClass(n),u.removeClass(n)}var v=nt(y(o).cloneNode(!0)),x=h(f(v));o.addClass(n),u.addClass(n),v.addClass(r),b.append(v);var _,w=l();if(!w&&(_=p(),!_))return g();var S=w||_;return{start:function(){function t(){n&&n.end()}var e,n=S.start();return n.done(function(){return n=null,!_&&(_=p())?(n=_.start(),n.done(function(){n=null,g(),e.complete()}),n):(g(),void e.complete())}),e=new s({end:t,cancel:t})}}}function g(t,e,n,r){var i=v(t,rt),a=v(e,rt),o=[];if(Y(r,function(t){var e=t.out,r=t.in,i=p(n,e,r);i&&o.push(i)}),i||a||0!==o.length)return{start:function(){function t(){Y(e,function(t){t.end()})}var e=[];i&&e.push(i.start()),a&&e.push(a.start()),Y(o,function(t){e.push(t.start())});var n=new s({end:t,cancel:t});return s.all(e,function(t){n.complete(t)}),n}}}function v(e){var n=e.element,r=e.options||{};e.structural&&(r.event=e.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===e.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=$(r.event,r.preparationClasses));var i=t(n,r);return i.$$willAnimate?i:null}if(!c.animations&&!c.transitions)return rt;var m=f[0].body,x=y(u),b=nt(e(x)||m.contains(x)?x:m);return function(t){return t.from&&t.to?g(t.from,t.to,t.classes,t.anchors):v(t)}}]}],Tt=["$animateProvider",function(t){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(e,n,r){function i(n){n=X(n)?n:n.split(" ");for(var r=[],i={},a=0;a0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}var c=1,l=2,p=" ",g=this.rules={skip:[],cancel:[],join:[]};g.join.push(function(t,e){return!t.structural&&o(t)}),g.skip.push(function(t,e){return!t.structural&&!o(t)}),g.skip.push(function(t,e){return"leave"===e.event&&t.structural}),g.skip.push(function(t,e){return e.structural&&e.state===l&&!t.structural}),g.cancel.push(function(t,e){return e.structural&&t.structural}),g.cancel.push(function(t,e){return e.state===l&&t.structural}),g.cancel.push(function(t,e){if(e.structural)return!1;var n=t.addClass,r=t.removeClass,a=e.addClass,o=e.removeClass;return!(et(n)&&et(r)||et(a)&&et(o))&&(i(n,o)||i(r,a))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(r,i,p,g,m,_,w,S,$,k,T){function A(){var t=!1;return function(e){t?e():i.$$postDigest(function(){t=!0,e()})}}function C(t,e){return v(t,e,{})}function E(t,e,n){var r=[],i=G[n];return i&&Y(i,function(i){rt.call(i.node,e)?r.push(i.callback):"leave"===n&&rt.call(i.node,t)&&r.push(i.callback)}),r}function P(t,e,n){var r=u(e);return t.filter(function(t){var e=t.node===r&&(!n||t.callback===n);return!e})}function I(t,e){"close"!==t||e.parentNode||it.off(e)}function O(t,e,n){function u(t,e,n,i){k(function(){var t=E(S,m,e);t.length?r(function(){Y(t,function(t){t(g,n,i)}),I(n,m)}):I(n,m)}),t.progress(e,n,i)}function f(t){b(g,p),Q(g,p),d(g,p),p.domOperation(),$.complete(!t)}var p=W(n),g=s(t),m=y(g),S=m&&m.parentNode;p=h(p);var $=new w,k=A();if(X(p.addClass)&&(p.addClass=p.addClass.join(" ")),p.addClass&&!tt(p.addClass)&&(p.addClass=null),X(p.removeClass)&&(p.removeClass=p.removeClass.join(" ")),p.removeClass&&!tt(p.removeClass)&&(p.removeClass=null),p.from&&!J(p.from)&&(p.from=null),p.to&&!J(p.to)&&(p.to=null),!m)return f(),$;var P=[m.getAttribute("class"),p.addClass,p.removeClass].join(" ");if(!B(P))return f(),$;var O=["enter","move","leave"].indexOf(e)>=0,j=T(),z=!N||j||V.get(m),G=!z&&F.get(m)||{},H=!!G.state;if(z||H&&G.state===c||(z=!L(m,S,e)),z)return j&&u($,e,"start"),f(),j&&u($,e,"close"),$;O&&M(m);var U={structural:O,element:g,event:e,addClass:p.addClass,removeClass:p.removeClass,close:f,options:p,runner:$};if(H){var q=a("skip",U,G);if(q)return G.state===l?(f(),$):(v(g,G,U),G.runner);var K=a("cancel",U,G);if(K)if(G.state===l)G.runner.end();else{if(!G.structural)return v(g,G,U),G.runner;G.close()}else{var Z=a("join",U,G);if(Z){if(G.state!==l)return x(g,O?e:null,p),e=U.event=G.event,p=v(g,G,U),G.runner;C(g,U)}}}else C(g,U);var et=U.structural;if(et||(et="animate"===U.event&&Object.keys(U.options.to||{}).length>0||o(U)),!et)return f(),R(m),$;var nt=(G.counter||0)+1;return U.counter=nt,D(m,c,U),i.$$postDigest(function(){g=s(t);var n=F.get(m),r=!n;n=n||{};var i=g.parent()||[],a=i.length>0&&("animate"===n.event||n.structural||o(n));if(r||n.counter!==nt||!a)return r&&(Q(g,p),d(g,p)),(r||O&&n.event!==e)&&(p.domOperation(),$.end()),void(a||R(m));e=!n.structural&&o(n,!0)?"setClass":n.event,D(m,l);var c=_(g,e,n.options);$.setHost(c),u($,e,"start",{}),c.done(function(t){f(!t);var n=F.get(m);n&&n.counter===nt&&R(m),u($,e,"close",{})})}),$}function M(t){var e=t.querySelectorAll("["+Ct+"]");Y(e,function(t){var e=parseInt(t.getAttribute(Ct),10),n=F.get(t);if(n)switch(e){case l:n.runner.end();case c:F.delete(t)}})}function R(t){t.removeAttribute(Ct),F.delete(t)}function L(t,e,n){var r,i=g[0].body,a=y(p),o=t===i||"HTML"===t.nodeName,s=t===a,u=!1,c=V.get(t),l=nt.data(t,Et);for(l&&(e=y(l));e&&(s||(s=e===a),e.nodeType===j);){var f=F.get(e)||{};if(!u){var h=V.get(e);if(h===!0&&c!==!1){c=!0;break}h===!1&&(c=!1),u=f.structural}if(et(r)||r===!0){var d=nt.data(e,U);K(d)&&(r=d)}if(u&&r===!1)break;if(o||(o=e===i),o&&s)break;e=s||!(l=nt.data(e,Et))?e.parentNode:y(l)}var v=(!u||r)&&c!==!0;return v&&s&&o}function D(t,e,n){n=n||{},n.state=e,t.setAttribute(Ct,e);var r=F.get(t),i=r?q(r,n):n;F.set(t,i)}var F=new m,V=new m,N=null,z=i.$watch(function(){return 0===S.totalPendingRequests},function(t){t&&(z(),i.$$postDigest(function(){i.$$postDigest(function(){null===N&&(N=!0)})}))}),G=Object.create(null),H=e.classNameFilter(),B=H?function(t){return H.test(t)}:function(){return!0},Q=f($),rt=t.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))},it={on:function(t,e,n){var r=u(e);G[t]=G[t]||[],G[t].push({node:r,callback:n}),nt(e).on("$destroy",function(){var i=F.get(r);i||it.off(t,e,n)})},off:function(t,e,n){if(1!==arguments.length||tt(arguments[0])){var r=G[t];r&&(G[t]=1===arguments.length?null:P(r,e,n))}else{e=arguments[0];for(var i in G)G[i]=P(G[i],e)}},pin:function(t,e){n(Z(t),"element","not an element"),n(Z(e),"parentElement","not an element"),t.data(Et,e)},push:function(t,e,n,r){return n=n||{},n.domOperation=r,O(t,e,n)},enabled:function(t,e){var n=arguments.length;if(0===n)e=!!N;else{var r=Z(t);if(r){var i=y(t);1===n?e=!V.get(i):V.set(i,!e)}else e=N=!!t}return e}};return it}]}],It=["$animateProvider",function(t){function e(t,e){t.data(s,e)}function n(t){t.removeData(s)}function i(t){return t.data(s)}var a="ng-animate-ref",o=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler",function(t,s,u,c,l,p){function g(t){function e(t){if(t.processed)return t;t.processed=!0;var n=t.domNode,r=n.parentNode;a.set(n,t);for(var o;r;){if(o=a.get(r)){o.processed||(o=e(o));break}r=r.parentNode}return(o||i).children.push(t),t}function n(t){var e,n=[],r=[];for(e=0;e=0,c=t.structural?b(o):[];if(c.length){var l=u?"to":"from";Y(c,function(t){var e=t.getAttribute(a);n[e]=n[e]||{},n[e][l]={animationID:r,element:nt(t)}})}else e.push(t)});var r={},i={};return Y(n,function(n,a){var o=n.from,s=n.to;if(!o||!s){var u=o?o.animationID:s.animationID,c=u.toString();return void(r[c]||(r[c]=!0,e.push(t[u])))}var l=t[o.animationID],f=t[s.animationID],h=o.animationID.toString();if(!i[h]){var d=i[h]={structural:!0,beforeStart:function(){l.beforeStart(),f.beforeStart()},close:function(){l.close(),f.close()},classes:w(l.classes,f.classes),from:l,to:f,anchors:[]};d.classes.length?e.push(d):(e.push(l),e.push(f))}i[h].anchors.push({out:o.element,in:s.element})}),e}function w(t,e){t=t.split(" "),e=e.split(" ");for(var n=[],r=0;r=0;e--){var n=o[e],r=u.get(n),i=r(t);if(i)return i}}function $(){l.addClass(H),I&&t.addClass(l,I),O&&(t.removeClass(l,O),O=null)}function k(t,e){function n(t){var n=i(t);n&&n.setHost(e)}t.from&&t.to?(n(t.from.element),n(t.to.element)):n(t.element)}function T(){var t=i(l);!t||"leave"===f&&x.$$domOperationFired||t.end()}function A(e){l.off("$destroy",T),n(l),m(l,x),d(l,x),x.domOperation(),I&&t.removeClass(l,I),l.removeClass(H),E.complete(!e)}x=h(x);var C=["enter","move","leave"].indexOf(f)>=0,E=new c({end:function(){A()},cancel:function(){A(!0)}});if(!o.length)return A(),E;e(l,E);var P=r(l.attr("class"),r(x.addClass,x.removeClass)),I=x.tempClasses;I&&(P+=" "+I,x.tempClasses=null);var O;return C&&(O="ng-"+f+G,t.addClass(l,O)),v.push({element:l,classes:P,event:f,structural:C,options:x,beforeStart:$,close:A}),l.on("$destroy",T),v.length>1?E:(s.$$postDigest(function(){var t=[];Y(v,function(e){i(e.element)?t.push(e):e.close()}),v.length=0;var e=_(t),n=[];Y(e,function(t){n.push({domNode:y(t.from?t.from.element:t.element),fn:function(){t.beforeStart();var e,n=t.close,r=t.anchors?t.from.element||t.to.element:t.element;if(i(r)){var a=S(t);a&&(e=a.start)}if(e){var o=e();o.done(function(t){n(!t)}),k(t,o)}else n()}})}),p(g(n))}),E)}}]}],Ot=["$animate","$rootScope",function(t,e){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(e,n,r,i,a){var o,s;e.$watchCollection(r.ngAnimateSwap||r.for,function(r){o&&t.leave(o),s&&(s.$destroy(),s=null),(r||0===r)&&(s=e.$new(),a(s,function(e){o=e,t.enter(e,null,n)}))})}}}];e.module("ngAnimate",[],function(){rt=e.noop,W=e.copy,q=e.extend,nt=e.element,Y=e.forEach,X=e.isArray,tt=e.isString,J=e.isObject,et=e.isUndefined,K=e.isDefined,Q=e.isFunction,Z=e.isElement}).directive("ngAnimateSwap",Ot).directive("ngAnimateChildren",mt).factory("$$rAFScheduler",vt).provider("$$animateQueue",Pt).provider("$$animation",It).provider("$animateCss",$t).provider("$$animateCssDriver",kt).provider("$$animateJs",Tt).provider("$$animateJsDriver",At)}(window,window.angular)},function(t,e,n){n(121),t.exports="ngAnimate"},function(t,e){/** + * @license AngularJS v1.6.2 + * (c) 2010-2017 Google, Inc. http://angularjs.org + * License: MIT + */ +!function(t,e){"use strict";function n(t,n,r){function i(t,r,i){var o,s;i=i||{},s=i.expires,o=e.isDefined(i.path)?i.path:a,e.isUndefined(r)&&(s="Thu, 01 Jan 1970 00:00:00 GMT",r=""),e.isString(s)&&(s=new Date(s));var u=encodeURIComponent(t)+"="+encodeURIComponent(r);u+=o?";path="+o:"",u+=i.domain?";domain="+i.domain:"",u+=s?";expires="+s.toUTCString():"",u+=i.secure?";secure":"";var c=u.length+1;return c>4096&&n.warn("Cookie '"+t+"' possibly not set or overflowed because it was too large ("+c+" > 4096 bytes)!"),u}var a=r.baseHref(),o=t[0];return function(t,e,n){o.cookie=i(t,e,n)}}e.module("ngCookies",["ng"]).provider("$cookies",[function(){function t(t){return t?e.extend({},n,t):n}var n=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(n,r){return{get:function(t){return n()[t]},getObject:function(t){var n=this.get(t);return n?e.fromJson(n):n},getAll:function(){return n()},put:function(e,n,i){r(e,n,t(i))},putObject:function(t,n,r){this.put(t,e.toJson(n),r)},remove:function(e,n){r(e,void 0,t(n))}}}]}]),e.module("ngCookies").factory("$cookieStore",["$cookies",function(t){return{get:function(e){return t.getObject(e)},put:function(e,n){t.putObject(e,n)},remove:function(e){t.remove(e)}}}]),n.$inject=["$document","$log","$browser"],e.module("ngCookies").provider("$$cookieWriter",function(){this.$get=n})}(window,window.angular)},function(t,e,n){n(123),t.exports="ngCookies"},function(t,e,n){var r,i;!function(n,a){r=[],i=function(){return a()}.apply(e,r),!(void 0!==i&&(t.exports=i))}(this,function(){"use strict";return angular.module("tmh.dynamicLocale",[]).config(["$provide",function(t){function e(t){return t.$stateful=!0,t}t.decorator("dateFilter",["$delegate",e]),t.decorator("numberFilter",["$delegate",e]),t.decorator("currencyFilter",["$delegate",e])}]).constant("tmhDynamicLocale.STORAGE_KEY","tmhDynamicLocale.locale").provider("tmhDynamicLocale",["tmhDynamicLocale.STORAGE_KEY",function(t){function e(t,e,n,r){var a=document.createElement("script"),o=i?i:document.getElementsByTagName("body")[0],s=!1;a.type="text/javascript",a.readyState?a.onreadystatechange=function(){"complete"!==a.readyState&&"loaded"!==a.readyState||(a.onreadystatechange=null,r(function(){s||(s=!0,o.removeChild(a),e())},30,!1))}:(a.onload=function(){s||(s=!0,o.removeChild(a),e())},a.onerror=function(){s||(s=!0,o.removeChild(a),n())}),a.src=t,a.async=!0,o.appendChild(a)}function n(t,n,r,i,s,u,f){function h(t,e){o===r&&(angular.forEach(t,function(n,r){e[r]?angular.isArray(e[r])&&(t[r].length=e[r].length):delete t[r]}),angular.forEach(e,function(n,r){angular.isArray(e[r])||angular.isObject(e[r])?(t[r]||(t[r]=angular.isArray(e[r])?[]:{}),h(t[r],e[r])):t[r]=e[r]}))}if(l[r])return o=r,l[r];var d,p=s.defer();return r===o?p.resolve(n):(d=u.get(r))?(o=r,i.$evalAsync(function(){h(n,d),a.put(c,r),i.$broadcast("$localeChangeSuccess",r,n),p.resolve(n)})):(o=r,l[r]=p.promise,e(t,function(){var t=angular.injector(["ngLocale"]),e=t.get("$locale");h(n,e),u.put(r,e),delete l[r],i.$applyAsync(function(){a.put(c,r),i.$broadcast("$localeChangeSuccess",r,n),p.resolve(n)})},function(){delete l[r],i.$applyAsync(function(){o===r&&(o=n.id),i.$broadcast("$localeChangeError",r),p.reject(r)})},f)),p.promise}var r,i,a,o,s="angular/i18n/angular-locale_{{locale}}.js",u="tmhDynamicLocaleStorageCache",c=t,l={},f={};this.localeLocationPattern=function(t){return t?(s=t,this):s},this.appendScriptTo=function(t){i=t},this.useStorage=function(t){u=t},this.useCookieStorage=function(){this.useStorage("$cookieStore")},this.defaultLocale=function(t){r=t},this.storageKey=function(t){return t?(c=t,this):c},this.addLocalePatternValue=function(t,e){f[t]=e},this.$get=["$rootScope","$injector","$interpolate","$locale","$q","tmhDynamicLocaleCache","$timeout",function(t,e,i,l,h,d,p){function g(e){var r={locale:e,angularVersion:angular.version.full};return n(v(angular.extend({},f,r)),l,e,t,h,d,p)}var v=i(s);return a=e.get(u),t.$evalAsync(function(){var t;(t=a.get(c)||r)&&g(t)}),{set:g,get:function(){return o}}}]}]).provider("tmhDynamicLocaleCache",function(){this.$get=["$cacheFactory",function(t){return t("tmh.dynamicLocales")}]}).provider("tmhDynamicLocaleStorageCache",function(){this.$get=["$cacheFactory",function(t){return t("tmh.dynamicLocales.store")}]}).run(["tmhDynamicLocale",angular.noop]),"tmh.dynamicLocale"})},function(t,e,n){var r;/*! + * angular-hotkeys v1.7.0 + * https://chieffancypants.github.io/angular-hotkeys + * Copyright (c) 2016 Wes Cruver + * License: MIT + */ +!function(){"use strict";angular.module("cfp.hotkeys",[]).provider("hotkeys",["$injector",function(t){this.includeCheatSheet=!0,this.useNgRoute=t.has("ngViewDirective"),this.templateTitle="Keyboard Shortcuts:",this.templateHeader=null,this.templateFooter=null,this.template='',this.cheatSheetHotkey="?",this.cheatSheetDescription="Show / hide this help menu",this.$get=["$rootElement","$rootScope","$compile","$window","$document",function(t,e,n,r,i){function a(){v=!1}function o(){v=!0}function s(t){var e={command:"⌘",shift:"⇧",left:"←",right:"→",up:"↑",down:"↓",return:"⏎",backspace:"⌫"};t=t.split("+");for(var n=0;n=0?t[n]="command":t[n]="ctrl"),t[n]=e[t[n]]||t[n];return t.join(" + ")}function u(t,e,n,r,i,a){this.combo=t instanceof Array?t:[t],this.description=e,this.callback=n,this.action=r,this.allowIn=i,this.persistent=a,this._formated=null}function c(){for(var t=m.hotkeys.length;t--;){var e=m.hotkeys[t];e&&!e.persistent&&h(e)}}function l(){m.helpVisible=!m.helpVisible,m.helpVisible?(w=d("esc"),h("esc"),f("esc",w.description,l,null,["INPUT","SELECT","TEXTAREA"])):(h("esc"),w!==!1&&f(w))}function f(t,e,n,r,i,a){var o,s=["INPUT","SELECT","TEXTAREA"],c=Object.prototype.toString.call(t);if("[object Object]"===c&&(e=t.description,n=t.callback,r=t.action,a=t.persistent,i=t.allowIn,t=t.combo),h(t),e instanceof Function?(r=n,n=e,e="$$undefined$$"):angular.isUndefined(e)&&(e="$$undefined$$"),void 0===a&&(a=!0),"function"==typeof n){o=n,i instanceof Array||(i=[]);for(var l,f=0;f-1)e=!0;else for(var i=0;i-1&&(m.hotkeys[i].combo.length>1?m.hotkeys[i].combo.splice(m.hotkeys[i].combo.indexOf(e),1):(angular.forEach(y,function(t){var e=t.indexOf(m.hotkeys[i]);e!==-1&&t.splice(e,1)}),m.hotkeys.splice(i,1)),!0)}function d(t){if(!t)return m.hotkeys;for(var e,n=0;n-1)return e;return!1}function p(t){return t.$id in y||(y[t.$id]=[],t.$on("$destroy",function(){for(var e=y[t.$id].length;e--;)h(y[t.$id].pop())})),{add:function(e){var n;return n=arguments.length>1?f.apply(this,arguments):f(e),y[t.$id].push(n),this}}}function g(t){return function(n,r){if(t instanceof Array){var i=t[0],a=t[1];t=function(t){a.scope.$eval(i)}}e.$apply(function(){t(n,d(r))})}}var v=!0;Mousetrap.prototype.stopCallback=function(t,e){return!v||!((" "+e.className+" ").indexOf(" mousetrap ")>-1)&&(e.contentEditable&&"true"==e.contentEditable)},u.prototype.format=function(){if(null===this._formated){for(var t=this.combo[0],e=t.split(/[\s]/),n=0;n95&&t<112||_.hasOwnProperty(t)&&(b[_[t]]=t)}return b}function g(t,e,n){return n||(n=p()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function v(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus"),t.split("+"))}function m(t,e){var n,r,i,a=[];for(n=v(t),i=0;i1?void p(t,s,e,r):(o=m(t,r),v._callbacks[o.key]=v._callbacks[o.key]||[],n(o.key,o.modifiers,{type:o.action},i,t,a),void v._callbacks[o.key][i?"unshift":"push"]({callback:e,modifiers:o.modifiers,action:o.action,seq:i,level:a,combo:t}))}var v=this;if(t=t||a,!(v instanceof x))return new x(t);v.target=t,v._callbacks={},v._directMap={};var y,b={},_=!1,w=!1,S=!1;v._handleKey=function(t,i,a){var o,s=n(t,i,a),u={},c=0,l=!1;for(o=0;o":".","?":"/","|":"\\"},$={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},k=1;k<20;++k)_[111+k]="f"+k;for(k=0;k<=9;++k)_[k+96]=k;x.prototype.bind=function(t,e,n){var r=this;return t=t instanceof Array?t:[t],r._bindMultiple.call(r,t,e,n),r},x.prototype.unbind=function(t,e){var n=this;return n.bind.call(n,t,function(){},e)},x.prototype.trigger=function(t,e){var n=this;return n._directMap[t+":"+e]&&n._directMap[t+":"+e]({},t),n},x.prototype.reset=function(){var t=this;return t._callbacks={},t._directMap={},t},x.prototype.stopCallback=function(t,e){var n=this;return!((" "+e.className+" ").indexOf(" mousetrap ")>-1)&&(!y(e,n.target)&&("INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable))},x.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},x.init=function(){var t=x(a);for(var e in t)"_"!==e.charAt(0)&&(x[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},x.init(),i.Mousetrap=x,"undefined"!=typeof t&&t.exports&&(t.exports=x),r=function(){return x}.call(e,n,e,t),!(r!==o&&(t.exports=r))}(window,document)},function(t,e,n){var r,i;/** + * angular-localforage - Angular service & directive for https://github.com/mozilla/localForage (Offline storage, improved.) + * @version v1.3.5 + * @link https://github.com/ocombe/angular-localForage + * @license MIT + * @author Olivier Combe + */ +!function(a,o){"use strict";var s=a&&a.angular||window&&window.angular;r=[n(128)],i=function(t){return o(s,t)}.apply(e,r),!(void 0!==i&&(t.exports=i))}(this,function(t,e,n){"use strict";var r=t.module("LocalForageModule",["ng"]);return r.provider("$localForage",function(){var n={},r={name:"lf"},i={setItem:!1,removeItem:!1},a={};this.setNotify=function(t,e){i={setItem:t,removeItem:e}},this.config=function(e){if(!t.isObject(e))throw new Error("The config parameter should be an object");t.extend(r,e)},this.$get=["$rootScope","$q","$parse",function(o,s,u){var c=function(n){t.isDefined(n)?this._localforage=e.createInstance(n):(this._localforage=e,e.config(r))};c.prototype.createInstance=function(e){if(t.isObject(e)){if(e=t.extend({},r,e),t.isDefined(n[e.name]))throw new Error("A localForage instance with the name "+e.name+" is already defined.");return n[e.name]=new c(e),n[e.name]}throw new Error("The parameter should be a config object.")},c.prototype.instance=function(e){if(t.isUndefined(e))return n[r.name];if(t.isString(e)){if(t.isDefined(n[e]))return n[e];throw new Error("No localForage instance of that name exists.")}throw new Error("The parameter should be a string.")},c.prototype.setDriver=function(t){return this._localforage.setDriver(t)},c.prototype.driver=function(){return this._localforage.driver()},c.prototype.defineDriver=function(t){return this._localforage.defineDriver(t)},c.prototype.setItem=function(e,n){if(t.isUndefined(e))throw new Error("You must define a key to set");var r=this;if(t.isArray(e)){if(!t.isArray(n))throw new Error("If you set an array of keys, the values should be an array too");return s.all(e.map(function(t,e){return r.setItem(t,n[e])}))}var a=s.defer(),u=arguments,c=n;return t.isObject(c)&&t.isDefined(c.$promise)&&(c=t.extend({},n),delete c.$promise),r._localforage.setItem(r.prefix()+e,c).then(function(){i.setItem&&o.$broadcast("LocalForageModule.setItem",{key:e,newvalue:c,driver:r.driver()}),a.resolve(c)}).catch(function(t){r.onError(t,u,r.setItem,a)}),a.promise},c.prototype.getItem=function(e,n){if(t.isUndefined(e))throw new Error("You must define a key to get");var r,i=s.defer(),a=arguments,o=this;if(t.isArray(e)){var u=[],c=0;r=o._localforage.iterate(function(t,n){var r=e.indexOf(o.prefix()+n);if(r>-1&&(u[r]=t,c++),c===e.length)return u}).then(function(){for(var r=!0,a=0;a=43)}}).catch(function(){return!1})}function d(t){return"boolean"==typeof ot?ut.resolve(ot):h(t).then(function(t){return ot=t})}function p(t){var e=st[t.name],n={};n.promise=new ut(function(t){n.resolve=t}),e.deferredOperations.push(n),e.dbReady?e.dbReady=e.dbReady.then(function(){return n.promise}):e.dbReady=n.promise}function g(t){var e=st[t.name],n=e.deferredOperations.pop();n&&n.resolve()}function v(t,e){return new ut(function(n,r){if(t.db){if(!e)return n(t.db);p(t),t.db.close()}var i=[t.name];e&&i.push(t.version);var a=at.open.apply(at,i);e&&(a.onupgradeneeded=function(e){var n=a.result;try{n.createObjectStore(t.storeName),e.oldVersion<=1&&n.createObjectStore(ct)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+t.name+'" has been upgraded from version '+e.oldVersion+" to version "+e.newVersion+', but the storage "'+t.storeName+'" already exists.')}}),a.onerror=function(){r(a.error)},a.onsuccess=function(){n(a.result),g(t)}})}function m(t){return v(t,!1)}function y(t){return v(t,!0)}function x(t,e){if(!t.db)return!0;var n=!t.db.objectStoreNames.contains(t.storeName),r=t.versiont.db.version;if(r&&(t.version!==e&&console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),i||n){if(n){var a=t.db.version+1;a>t.version&&(t.version=a)}return!0}return!1}function b(t){return new ut(function(e,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:t.type})},r.readAsBinaryString(t)})}function _(t){var e=f(atob(t.data));return u([e],{type:t.type})}function w(t){return t&&t.__local_forage_encoded_blob}function S(t){var e=this,n=e._initReady().then(function(){var t=st[e._dbInfo.name];if(t&&t.dbReady)return t.dbReady});return l(n,t,t),n}function $(t){function e(){return ut.resolve()}var n=this,r={db:null};if(t)for(var i in t)r[i]=t[i];st||(st={});var a=st[r.name];a||(a={forages:[],db:null,dbReady:null,deferredOperations:[]},st[r.name]=a),a.forages.push(n),n._initReady||(n._initReady=n.ready,n.ready=S);for(var o=[],s=0;s>4,l[u++]=(15&r)<<4|i>>2,l[u++]=(3&i)<<6|63&a;return c}function R(t){var e,n=new Uint8Array(t),r="";for(e=0;e>2],r+=ht[(3&n[e])<<4|n[e+1]>>4],r+=ht[(15&n[e+1])<<2|n[e+2]>>6],r+=ht[63&n[e+2]];return n.length%3===2?r=r.substring(0,r.length-1)+"=":n.length%3===1&&(r=r.substring(0,r.length-2)+"=="),r}function L(t,e){var n="";if(t&&(n=Et.call(t)),t&&("[object ArrayBuffer]"===n||t.buffer&&"[object ArrayBuffer]"===Et.call(t.buffer))){var r,i=gt;t instanceof ArrayBuffer?(r=t,i+=mt):(r=t.buffer,"[object Int8Array]"===n?i+=xt:"[object Uint8Array]"===n?i+=bt:"[object Uint8ClampedArray]"===n?i+=_t:"[object Int16Array]"===n?i+=wt:"[object Uint16Array]"===n?i+=$t:"[object Int32Array]"===n?i+=St:"[object Uint32Array]"===n?i+=kt:"[object Float32Array]"===n?i+=Tt:"[object Float64Array]"===n?i+=At:e(new Error("Failed to get type for BinaryArray"))),e(i+R(r))}else if("[object Blob]"===n){var a=new FileReader;a.onload=function(){var n=dt+t.type+"~"+R(this.result);e(gt+yt+n)},a.readAsArrayBuffer(t)}else try{e(JSON.stringify(t))}catch(n){console.error("Couldn't convert value into a JSON string: ",t),e(null,n)}}function D(t){if(t.substring(0,vt)!==gt)return JSON.parse(t);var e,n=t.substring(Ct),r=t.substring(vt,Ct);if(r===yt&&pt.test(n)){var i=n.match(pt);e=i[1],n=n.substring(i[0].length)}var a=M(n);switch(r){case mt:return a;case yt:return u([a],{type:e});case xt:return new Int8Array(a);case bt:return new Uint8Array(a);case _t:return new Uint8ClampedArray(a);case wt:return new Int16Array(a);case $t:return new Uint16Array(a);case St:return new Int32Array(a);case kt:return new Uint32Array(a);case Tt:return new Float32Array(a);case At:return new Float64Array(a);default:throw new Error("Unkown type: "+r)}}function j(t){var e=this,n={db:null};if(t)for(var r in t)n[r]="string"!=typeof t[r]?t[r].toString():t[r];var i=new ut(function(t,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(t){return r(t)}n.db.transaction(function(i){i.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){e._dbInfo=n,t()},function(t,e){r(e)})})});return n.serializer=Pt,i}function F(t,e){var n=this;"string"!=typeof t&&(console.warn(t+" used as a key, but it is not a string."),t=String(t));var r=new ut(function(e,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){n.executeSql("SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[t],function(t,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),e(r)},function(t,e){r(e)})})}).catch(r)});return c(r,e),r}function V(t,e){var n=this,r=new ut(function(e,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){n.executeSql("SELECT * FROM "+i.storeName,[],function(n,r){for(var a=r.rows,o=a.length,s=0;s=0;n--){var r=localStorage.key(n);0===r.indexOf(t)&&localStorage.removeItem(r)}});return c(n,t),n}function Y(t,e){var n=this;"string"!=typeof t&&(console.warn(t+" used as a key, but it is not a string."),t=String(t));var r=n.ready().then(function(){var e=n._dbInfo,r=localStorage.getItem(e.keyPrefix+t);return r&&(r=e.serializer.deserialize(r)),r});return c(r,e),r}function X(t,e){var n=this,r=n.ready().then(function(){for(var e=n._dbInfo,r=e.keyPrefix,i=r.length,a=localStorage.length,o=1,s=0;s"+t+""}var a;try{a=n(119)}catch(t){a=r.marked||marked}if(angular.isUndefined(a))return void e.error("angular-marked Error: marked not loaded. See installation instructions.");var o=new a.Renderer;if(t.renderer)for(var s=Object.keys(t.renderer),u=s.length;u--;)o[s[u]]=t.renderer[s[u]];var c=o.code.bind(o);o.code=function(t,e,n){return i(c(t,e,n))};var l=o.codespan.bind(o);return o.codespan=function(t){return i(l(t))},t.defaults=t.defaults||{},t.defaults.renderer=o,a.setOptions(t.defaults),a}]}function i(t,e,n){return{restrict:"AE",replace:!0,scope:{opts:"=",marked:"=",compile:"@",src:"="},link:function(r,i,o){function s(e){e=a(String(e||"")),i.html(t(e,r.opts||null)),r.$eval(o.compile)&&n(i.contents())(r.$parent)}o.marked?(s(r.marked),r.$watch("marked",s)):o.src?r.$watch("src",function(t){e(t,!0).then(function(t){s(t)},function(){s(""),r.$emit("$markedIncludeError",o.src)})}):s(i.text())}}}var a=n(130);i.$inject=["marked","$templateRequest","$compile"],t.exports=angular.module("hc.marked",[]).directive("marked",i).provider("marked",r).name},function(t,e){t.exports=function(t){if(!t)return t;var e,n=t.replace(/\t/g," ").split(/\r?\n/),r=null,i=n.length;for(e=0;e0)for(e=0;e0)&&(s&&m.unbind(s,y),n(h),d.reject(),h=null)};if(h&&y(),d=e.defer(),0===o||!f&&!p)return 0===o&&m.duScrollTo(t,a),d.resolve(),d.promise;var x=function(t){null===g&&(g=t),v=t-g;var e=v>=o?1:u(v/o);m.scrollTo(c+Math.ceil(f*e),l+Math.ceil(p*e)),e<1?h=r(x):(s&&m.unbind(s,y),h=null,d.resolve())};return m.duScrollTo(c,l),s&&m.bind(s,y),h=r(x),d.promise},u.duScrollToElement=function(t,e,n,r){var i=f(this);angular.isNumber(e)&&!isNaN(e)||(e=o);var a=this.duScrollTop()+f(t).getBoundingClientRect().top-e;return l(i)&&(a-=i.getBoundingClientRect().top),this.duScrollTo(0,a,n,r)},u.duScrollLeft=function(e,n,r){if(angular.isNumber(e))return this.duScrollTo(e,this.duScrollTop(),n,r);var i=f(this);return c(i)?t.scrollX||document.documentElement.scrollLeft||document.body.scrollLeft:i.scrollLeft},u.duScrollTop=function(e,n,r){if(angular.isNumber(e))return this.duScrollTo(this.duScrollLeft(),e,n,r);var i=f(this);return c(i)?t.scrollY||document.documentElement.scrollTop||document.body.scrollTop:i.scrollTop},u.duScrollToElementAnimated=function(t,e,n,r){return this.duScrollToElement(t,e,n||a,r)},u.duScrollTopAnimated=function(t,e,n){return this.duScrollTop(t,e||a,n)},u.duScrollLeftAnimated=function(t,e,n){return this.duScrollLeft(t,e||a,n)},angular.forEach(u,function(t,e){angular.element.prototype[e]=t;var n=e.replace(/^duScroll/,"scroll");angular.isUndefined(angular.element.prototype[n])&&(angular.element.prototype[n]=t)})}]),angular.module("duScroll.polyfill",[]).factory("polyfill",["$window",function(t){"use strict";var e=["webkit","moz","o","ms"];return function(n,r){if(t[n])return t[n];for(var i,a=n.substr(0,1).toUpperCase()+n.substr(1),o=0;o=c.scrollHeight;else{var h=r[0].body.scrollHeight||r[0].documentElement.scrollHeight;e=Math.round(n.pageYOffset+n.innerHeight)>=h}var d,p,g,v,m,y,x=s&&e?"bottom":"top";for(v=i.spies,p=i.currentlyActive,g=void 0,d=0;d0)for(;u-1){for(;c=0&&$log.warn('sending sms text with "%" sign is not supported');var r,i=encodeURIComponent(e.socialshareText.replace("%","")),a=e.socialshareTo||"";e.socialshareUrl&&(i+=encodeURIComponent(e.socialshareUrl)),r="sms:"+a+"?&body="+i,n.attr("href",r),n.attr("target","_blank")},C=function(t,e,n){var r="viber://forward?text="+encodeURIComponent(e.socialshareText)+encodeURIComponent(e.socialshareUrl||t.location.href);n.attr("href",r),n.attr("target","_top")},E=function(t,e){var n="https://telegram.me/share/url?url="+encodeURIComponent(e.socialshareUrl||t.location.href);e.socialshareText&&(n+="&text="+encodeURIComponent(e.socialshareText)),t.open(n,"Telegram","toolbar=0,status=0,resizable=yes,width="+e.socialsharePopupWidth+",height="+e.socialsharePopupHeight+",top="+(t.innerHeight-e.socialsharePopupHeight)/2+",left="+(t.innerWidth-e.socialsharePopupWidth)/2)},P=function(t,e){var n="https://web.skype.com/share?source=button&url="+encodeURIComponent(e.socialshareUrl||t.location.href);e.socialshareText&&(n+="&text="+encodeURIComponent(e.socialshareText)),t.open(n,"Skype","toolbar=0,status=0,resizable=yes,width="+e.socialsharePopupWidth+",height="+e.socialsharePopupHeight+",top="+(t.innerHeight-e.socialsharePopupHeight)/2+",left="+(t.innerWidth-e.socialsharePopupWidth)/2)},I=function(t,e){var n="http://service.weibo.com/share/share.php?url="+encodeURIComponent(e.socialshareUrl||t.location.href);e.socialshareText&&(n+="&title="+encodeURIComponent(e.socialshareText)),t.open(n,"Weibo","toolbar=0,status=0,resizable=yes,width="+e.socialsharePopupWidth+",height="+e.socialsharePopupHeight+",top="+(t.innerHeight-e.socialsharePopupHeight)/2+",left="+(t.innerWidth-e.socialsharePopupWidth)/2)},O=["$window","$log",function(t,e){this.emailShare=o,this.facebookShare=a,this.twitterShare=u,this.stumbleuponShare=f,this.pinterestShare=d,this.googleShare=c,this.bufferShare=x,this.hackernewsShare=b,this.okShare=m,this.deliciousShare=y,this.pocketShare=w,this.vkShare=v,this.flipboardShare=_,this.xingShare=$,this.diggShare=p,this.linkedinShare=h,this.wordpressShare=S,this.telegramShare=E,this.redditShare=l,this.evernoteShare=k,this.tumblrShare=g,this.skypeShare=P,this.smsShare=A,this.weiboShare=I,this.share=function(n){switch(n.provider){case"email":this.emailShare(t,n.attrs);break;case"sms":this.smsShare(t,e,n.attrs);break;case"facebook":this.facebookShare(t,n.attrs);break;case"twitter":this.twitterShare(t,n.attrs);break;case"pinterest":this.pinterestShare(t,n.attrs);break;case"ok":this.okShare(t,n.attrs);break;case"vk":this.vkShare(t,n.attrs);break;case"delicious":this.deliciousShare(t,n.attrs);break;case"digg":this.diggShare(t,n.attrs);break;case"google":this.googleShare(t,n.attrs);break;case"reddit":this.redditShare(t,n.attrs);break;case"hackernews":this.hackernewsShare(t,n.attrs);break;case"skype":this.skypeShare(t,n.attrs);break;case"evernote":this.evernoteShare(t,n.attrs);break;case"pocket":this.pocketShare(t,n.attrs);break;case"tumblr":this.tumblrShare(t,n.attrs);break;case"telegram":this.telegramShare(t,n.attrs);break;case"xing":this.xingShare(t,n.attrs);break;case"buffer":this.bufferShare(t,n.attrs);break;case"stumbleupon":this.stumbleuponShare(t,n.attrs);break;case"linkedin":this.linkedinShare(t,n.attrs);break;case"wordpress":this.wordpressShare(t,n.attrs);break;case"flipboard":this.flipboardShare(t,n.attrs);break;case"weibo":this.weiboShare(t,n.attrs);break;default:return}}}],M=["$window","socialshareConf","Socialshare","$log",function(t,e,n){var i=function(i,a,o){for(var s,u=0,c=(function(){return!(o.socialshareProvider in R)||void R[o.socialshareProvider](t,o,a)});u");return e.text(t),e.html()},s=function(e){if(!t)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return t(e)},u=function(t){if(!e)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");return e.trustAsHtml(t)},c=function(t,e,n){if(angular.isDate(t))return t;if(angular.isObject(t)){var r=angular.isArray(t)?[]:{};if(n){if(n.indexOf(t)>-1)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else n=[];return n.push(t),angular.forEach(t,function(t,i){angular.isFunction(t)||(r[i]=c(t,e,n))}),n.splice(-1,1),r}return angular.isNumber(t)?t:e(t)}}function n(t,e,n,r){"use strict";var i,a,o,s,u,c,l,f,h,d,p,g,v,m,y,x,b={},_=[],w=t,S=[],$="translate-cloak",k=!1,T=!1,A=".",C=!1,E=!1,P=0,I=!0,O="default",M={default:function(t){return(t||"").split("-").join("_")},java:function(t){var e=(t||"").split("-").join("_"),n=e.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase():e},bcp47:function(t){var e=(t||"").split("_").join("-"),n=e.split("-");return n.length>1?n[0].toLowerCase()+"-"+n[1].toUpperCase():e},"iso639-1":function(t){var e=(t||"").split("_").join("-"),n=e.split("-");return n[0].toLowerCase()}},R="2.13.1",L=function(){if(angular.isFunction(r.getLocale))return r.getLocale();var t,n,i=e.$get().navigator,a=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(i.languages))for(t=0;t-1)return t;if(a){var o;for(var s in a)if(a.hasOwnProperty(s)){var u=!1,c=Object.prototype.hasOwnProperty.call(a,s)&&angular.lowercase(s)===angular.lowercase(t);if("*"===s.slice(-1)&&(u=s.slice(0,-1)===t.slice(0,s.length-1)),(c||u)&&(o=a[s],j(e,angular.lowercase(o))>-1))return o}}var l=t.split("_");return l.length>1&&j(e,angular.lowercase(l[0]))>-1?l[0]:void 0}},N=function(t,e){if(!t&&!e)return b;if(t&&!e){if(angular.isString(t))return b[t]}else angular.isObject(b[t])||(b[t]={}),angular.extend(b[t],z(e));return this};this.translations=N,this.cloakClassName=function(t){return t?($=t,this):$},this.nestedObjectDelimeter=function(t){return t?(A=t,this):A};var z=function(t,e,n,r){var i,a,o,s;e||(e=[]),n||(n={});for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(s=t[i],angular.isObject(s)?z(s,e.concat(i),n,i):(a=e.length?""+e.join(A)+A+i:i,e.length&&i===r&&(o=""+e.join(A),n[o]="@:"+a),n[a]=s));return n};z.displayName="flatObject",this.addInterpolation=function(t){return S.push(t),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(t){return d=t,this},this.useSanitizeValueStrategy=function(t){return n.useStrategy(t),this},this.preferredLanguage=function(t){return t?(G(t),this):i};var G=function(t){return t&&(i=t),i};this.translationNotFoundIndicator=function(t){return this.translationNotFoundIndicatorLeft(t),this.translationNotFoundIndicatorRight(t),this},this.translationNotFoundIndicatorLeft=function(t){return t?(v=t,this):v},this.translationNotFoundIndicatorRight=function(t){return t?(m=t,this):m},this.fallbackLanguage=function(t){return H(t),this};var H=function(t){return t?(angular.isString(t)?(s=!0,o=[t]):angular.isArray(t)&&(s=!1,o=t),angular.isString(i)&&j(o,i)<0&&o.push(i),this):s?o[0]:o};this.use=function(t){if(t){if(!b[t]&&!p)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+t+"'");return u=t,this}return u},this.resolveClientLocale=function(){return D()};var U=function(t){return t?(w=t,this):f?f+w:w};this.storageKey=U,this.useUrlLoader=function(t,e){return this.useLoader("$translateUrlLoader",angular.extend({url:t},e))},this.useStaticFilesLoader=function(t){return this.useLoader("$translateStaticFilesLoader",t)},this.useLoader=function(t,e){return p=t,g=e||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(t){return l=t,this},this.storagePrefix=function(t){return t?(f=t,this):t},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(t){return h=t,this},this.usePostCompiling=function(t){return k=!!t,this},this.forceAsyncReload=function(t){return T=!!t,this},this.uniformLanguageTag=function(t){return t?angular.isString(t)&&(t={standard:t}):t={},O=t.standard,this},this.determinePreferredLanguage=function(t){var e=t&&angular.isFunction(t)?t():D();return i=_.length?V(e)||e:e,this},this.registerAvailableLanguageKeys=function(t,e){return t?(_=t,e&&(a=e),this):_},this.useLoaderCache=function(t){return t===!1?y=void 0:t===!0?y=!0:"undefined"==typeof t?y="$translationCache":t&&(y=t),this},this.directivePriority=function(t){return void 0===t?P:(P=t,this)},this.statefulFilter=function(t){return void 0===t?I:(I=t,this)},this.postProcess=function(t){return x=t?t:void 0,this},this.keepContent=function(t){return E=!!t,this},this.$get=["$log","$injector","$rootScope","$q",function(t,e,n,r){var a,f,O,M=e.get(d||"$translateDefaultInterpolation"),L=!1,B={},W={},q=function(t,e,n,s,c){!u&&i&&(u=i);var h=c&&c!==u?V(c)||c:u;if(c&<(c),angular.isArray(t)){var d=function(t){for(var i={},a=[],o=function(t){var a=r.defer(),o=function(e){i[t]=e,a.resolve([t,e])};return q(t,e,n,s,c).then(o,o),a.promise},u=0,l=t.length;u0?O:f,t,e,n,r)},at=function(t,e,n,r){return rt(O>0?O:f,t,e,n,r)},ot=function(t,e,n,i,a){var s=r.defer(),u=a?b[a]:b,c=n?B[n]:M;if(u&&Object.prototype.hasOwnProperty.call(u,t)){var l=u[t];if("@:"===l.substr(0,2))q(l.substr(2),e,n,i,a).then(s.resolve,s.reject);else{var f=c.interpolate(l,e,"service");f=ct(t,l,f,e,a),s.resolve(f)}}else{var d;h&&!L&&(d=et(t,e,i)),a&&o&&o.length?it(t,e,c,i).then(function(t){s.resolve(t)},function(t){s.reject(Y(t))}):h&&!L&&d?i?s.resolve(i):s.resolve(d):i?s.resolve(i):s.reject(Y(t))}return s.promise},st=function(t,e,n,r,i){var a,s=r?b[r]:b,u=M;if(B&&Object.prototype.hasOwnProperty.call(B,n)&&(u=B[n]),s&&Object.prototype.hasOwnProperty.call(s,t)){var c=s[t];"@:"===c.substr(0,2)?a=st(c.substr(2),e,n,r,i):(a=u.interpolate(c,e,"filter",i),a=ct(t,c,a,e,r,i))}else{var l;h&&!L&&(l=et(t,e,i)),r&&o&&o.length?(f=0,a=at(t,e,u,i)):a=h&&!L&&l?l:Y(t)}return a},ut=function(t){c===t&&(c=void 0),W[t]=void 0},ct=function(t,n,r,i,a,o){var s=x;return s&&("string"==typeof s&&(s=e.get(s)),s)?s(t,n,r,i,a,o):r},lt=function(t){b[t]||!p||W[t]||(W[t]=K(t).then(function(t){return N(t.key,t.table),t}))};q.preferredLanguage=function(t){return t&&G(t),i},q.cloakClassName=function(){return $},q.nestedObjectDelimeter=function(){return A},q.fallbackLanguage=function(t){if(void 0!==t&&null!==t){if(H(t),p&&o&&o.length)for(var e=0,n=o.length;e-1&&(O=e)}else O=0},q.proposedLanguage=function(){return c},q.storage=function(){return a},q.negotiateLocale=V,q.use=function(t){if(!t)return u;var e=r.defer();n.$emit("$translateChangeStart",{language:t});var i=V(t);return _.length>0&&!i?r.reject(t):(i&&(t=i),c=t,!T&&b[t]||!p||W[t]?W[t]?W[t].then(function(t){return c===t.key&&X(t.key),e.resolve(t.key),t},function(t){return!u&&o&&o.length>0&&o[0]!==t?q.use(o[0]).then(e.resolve,e.reject):e.reject(t)}):(e.resolve(t),X(t)):(W[t]=K(t).then(function(n){return N(n.key,n.table),e.resolve(n.key),c===t&&X(n.key),n},function(t){return n.$emit("$translateChangeError",{language:t}),e.reject(t),n.$emit("$translateChangeEnd",{language:t}),r.reject(t)}),W[t].finally(function(){ut(t)})),e.promise)},q.resolveClientLocale=function(){return D()},q.storageKey=function(){return U()},q.isPostCompilingEnabled=function(){return k},q.isForceAsyncReloadEnabled=function(){return T},q.isKeepContent=function(){return E},q.refresh=function(t){function e(){a.resolve(),n.$emit("$translateRefreshEnd",{language:t})}function i(){a.reject(),n.$emit("$translateRefreshEnd",{language:t})}if(!p)throw new Error("Couldn't refresh translation table, no loader registered!");var a=r.defer();if(n.$emit("$translateRefreshStart",{language:t}),t)if(b[t]){var s=function(n){return N(n.key,n.table),t===u&&X(u),e(),n};s.displayName="refreshPostProcessor",K(t).then(s,i)}else i();else{var c=[],l={};if(o&&o.length)for(var f=0,h=o.length;f0?_:null},q.getTranslationTable=function(t){return t=t||q.use(),t&&b[t]?angular.copy(b[t]):null};var ht=n.$on("$translateReady",function(){ft.resolve(),ht(),ht=null}),dt=n.$on("$translateChangeEnd",function(){ft.resolve(),dt(),dt=null});if(p){if(angular.equals(b,{})&&q.use()&&q.use(q.use()),o&&o.length)for(var pt=function(t){return N(t.key,t.table),n.$emit("$translateChangeEnd",{language:t.key}),t},gt=0,vt=o.length;gt13&&x(_);if(g.$observe("translateDefault",function(t){s.defaultText=t,$()}),c&&g.$observe("translateValues",function(t){t&&s.$parent.$watch(function(){angular.extend(s.interpolateParams,r(t)(s.$parent))})}),f){var w=function(t){g.$observe(t,function(e){var n=angular.lowercase(t.substr(14,1))+t.substr(15);s.interpolateParams[n]=e})};for(var S in g)Object.prototype.hasOwnProperty.call(g,S)&&"translateValue"===S.substr(0,14)&&"translateValues"!==S&&w(S)}var $=function(){for(var t in v)v.hasOwnProperty(t)&&void 0!==v[t]&&k(t,v[t],s,s.interpolateParams,s.defaultText,s.translateNamespace)},k=function(e,n,r,i,a,o){n?(o&&"."===n.charAt(0)&&(n=o+n),t(n,i,l,a,r.translateLanguage).then(function(t){T(t,r,!0,e)},function(t){T(t,r,!1,e)})):T(n,r,!1,e)},T=function(e,r,i,a){if(i||"undefined"!=typeof r.defaultText&&(e=r.defaultText),"translate"===a){(i||!i&&!t.isKeepContent()&&"undefined"==typeof g.translateKeepContent)&&p.empty().append(r.preText+e+r.postText);var o=t.isPostCompilingEnabled(),s="undefined"!=typeof u.translateCompile,c=s&&"false"!==u.translateCompile;(o&&!s||c)&&n(p.contents())(r)}else{var l=g.$attr[a];"data-"===l.substr(0,5)&&(l=l.substr(5)),l=l.substr(15),p.attr(l,e)}};(c||f||g.translateDefault)&&s.$watch("interpolateParams",$,!0),s.$on("translateLanguageChanged",$);var A=i.$on("$translateChangeSuccess",$);p.text().length?y(g.translate?g.translate:""):g.translate&&y(g.translate),$(),s.$on("$destroy",A)}}}}function a(t){"use strict";return t.translateNamespace?t.translateNamespace:t.$parent?a(t.$parent):void 0}function o(t,e){"use strict";return{restrict:"A",priority:t.directivePriority(),link:function(n,r,i){var a,o,u={},c=function(){angular.forEach(a,function(e,a){e&&(u[a]=!0,n.translateNamespace&&"."===e.charAt(0)&&(e=n.translateNamespace+e),t(e,o,i.translateInterpolation,void 0,n.translateLanguage).then(function(t){r.attr(a,t)},function(t){r.attr(a,t)}))}),angular.forEach(u,function(t,e){a[e]||(r.removeAttr(e),delete u[e])})};s(n,i.translateAttr,function(t){a=t},c),s(n,i.translateValues,function(t){o=t},c),i.translateValues&&n.$watch(i.translateValues,c,!0),n.$on("translateLanguageChanged",c);var l=e.$on("$translateChangeSuccess",c);c(),n.$on("$destroy",l)}}}function s(t,e,n,r){"use strict";e&&("::"===e.substr(0,2)?e=e.substr(2):t.$watch(e,function(t){n(t),r()},!0),n(t.$eval(e)))}function u(t,e){"use strict";return{compile:function(n){var r=function(){n.addClass(t.cloakClassName())},i=function(){n.removeClass(t.cloakClassName())};return t.onReady(function(){i()}),r(),function(n,a,o){o.translateCloak&&o.translateCloak.length&&(o.$observe("translateCloak",function(e){t(e).then(i,r)}),e.$on("$translateChangeSuccess",function(){t(o.translateCloak).then(i,r)}))}}}}function c(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(t,e,n){t.translateNamespace=a(t),t.translateNamespace&&"."===n.translateNamespace.charAt(0)?t.translateNamespace+=n.translateNamespace:t.translateNamespace=n.translateNamespace}}}}}function a(t){"use strict";return t.translateNamespace?t.translateNamespace:t.$parent?a(t.$parent):void 0}function l(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(t,e,n){n.$observe("translateLanguage",function(e){t.translateLanguage=e}),t.$watch("translateLanguage",function(){t.$broadcast("translateLanguageChanged")})}}}}function f(t,e){"use strict";var n=function(n,r,i,a){return angular.isObject(r)||(r=t(r)(this)),e.instant(n,r,i,a)};return e.statefulFilter()&&(n.$stateful=!0),n}function h(t){"use strict";return t("translations")}return t.$inject=["$translate"],n.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],r.$inject=["$interpolate","$translateSanitization"],i.$inject=["$translate","$interpolate","$compile","$parse","$rootScope"],o.$inject=["$translate","$rootScope"],u.$inject=["$translate","$rootScope"],f.$inject=["$parse","$translate"],h.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(t),t.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",e),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",n),n.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",r),r.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",i),i.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateAttr",o),o.displayName="translateAttrDirective",angular.module("pascalprecht.translate").directive("translateCloak",u),u.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",c),c.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",l),l.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",f),f.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",h),h.displayName="$translationCache","pascalprecht.translate"})},function(t,e,n){/*! + * State-based routing for AngularJS + * @version v1.0.0-beta.3 + * @link https://ui-router.github.io + * @license MIT License, http://www.opensource.org/licenses/MIT + */ +!function(e,r){t.exports=r(n(61))}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(1)),r(n(53)),r(n(55)),r(n(58)),n(60),n(61),n(62),n(63),Object.defineProperty(e,"__esModule",{value:!0}),e.default="ui.router"},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(2)),r(n(46)),r(n(47)),r(n(48)),r(n(49)),r(n(50)),r(n(51)),r(n(52)),r(n(44));var i=n(25);e.UIRouter=i.UIRouter},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(3)),r(n(6)),r(n(7)),r(n(5)),r(n(4)),r(n(8)),r(n(9)),r(n(12))},function(t,e,n){"use strict";function r(t,e,n,r){return void 0===r&&(r=Object.keys(t)),r.filter(function(e){return"function"==typeof t[e]}).forEach(function(r){return e[r]=t[r].bind(n)})}function i(t){void 0===t&&(t={});for(var n=[],r=1;r=0&&t.splice(n,1),t}),e.defaults=i,e.merge=a,e.mergeR=function(t,n){return e.extend(t,n)},e.ancestors=o,e.equalForKeys=s,e.pick=c,e.omit=l,e.pluck=f,e.filter=h,e.find=d,e.mapObj=p,e.map=p,e.values=function(t){return Object.keys(t).map(function(e){return t[e]})},e.allTrueR=function(t,e){return t&&e},e.anyTrueR=function(t,e){return t||e},e.unnestR=function(t,e){return t.concat(e)},e.flattenR=function(t,n){return T.isArray(n)?t.concat(n.reduce(e.flattenR,[])):g(t,n)},e.pushR=g,e.uniqR=function(t,n){return e.inArray(t,n)?t:g(t,n)},e.unnest=function(t){return t.reduce(e.unnestR,[])},e.flatten=function(t){return t.reduce(e.flattenR,[])},e.assertPredicate=v,e.pairs=function(t){return Object.keys(t).map(function(e){return[e,t[e]]})},e.arrayTuples=m,e.applyPairs=y,e.tail=x,e.silenceUncaughtInPromise=function(t){return t.catch(function(t){return 0})&&t},e.silentRejection=function(t){return e.silenceUncaughtInPromise(C.services.$q.reject(t))}},function(t,e,n){"use strict";function r(t){if(e.isArray(t)&&t.length){var n=t.slice(0,-1),r=t.slice(-1);return!(n.filter(i.not(e.isString)).length||r.filter(i.not(e.isFunction)).length)}return e.isFunction(t)}var i=n(5),a=Object.prototype.toString,o=function(t){return function(e){return typeof e===t}};e.isUndefined=o("undefined"),e.isDefined=i.not(e.isUndefined),e.isNull=function(t){return null===t},e.isFunction=o("function"),e.isNumber=o("number"),e.isString=o("string"),e.isObject=function(t){return null!==t&&"object"==typeof t},e.isArray=Array.isArray,e.isDate=function(t){return"[object Date]"===a.call(t)},e.isRegExp=function(t){return"[object RegExp]"===a.call(t)},e.isInjectable=r,e.isPromise=i.and(e.isObject,i.pipe(i.prop("then"),e.isFunction))},function(t,e){"use strict";function n(t){function e(n){return n.length>=r?t.apply(null,n):function(){return e(n.concat([].slice.apply(arguments)))}}var n=[].slice.apply(arguments,[1]),r=t.length;return e(n)}function r(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}}function i(){for(var t=[],e=0;e-1},t.fromString=function(e){return this.is(e)?new t(e):null},t}();e.Glob=n},function(t,e){"use strict";var n=function(){function t(t,e){void 0===t&&(t=[]),void 0===e&&(e=null),this._items=t,this._limit=e}return t.prototype.enqueue=function(t){var e=this._items;return e.push(t),this._limit&&e.length>this._limit&&e.shift(),t},t.prototype.dequeue=function(){if(this.size())return this._items.splice(0,1)[0]},t.prototype.clear=function(){var t=this._items;return this._items=[],t},t.prototype.size=function(){return this._items.length},t.prototype.remove=function(t){var e=this._items.indexOf(t);return e>-1&&this._items.splice(e,1)[0]},t.prototype.peekTail=function(){return this._items[this._items.length-1]},t.prototype.peekHead=function(){if(this.size())return this._items[0]},t}();e.Queue=n},function(t,e,n){"use strict";function r(t,e){return e.length<=t?e:e.substr(0,t-3)+"..."}function i(t,e){for(;e.length20)return"Too many Transition redirects (20+)";return t.self.abstract?"Cannot transition to abstract state '"+t.name+"'":g.Param.validates(t.parameters(),this.params())?this.success===!1?this._error:void 0:"Param values not valid for state '"+t.name+"'"},t.prototype.toString=function(){var t=this.from(),e=this.to(),n=function(t){return null!==t["#"]&&void 0!==t["#"]?t:o.omit(t,"#")},r=this.$id,i=s.isObject(t)?t.name:t,a=o.toJson(n(this._treeChanges.from.map(u.prop("paramValues")).reduce(o.mergeR,{}))),c=this.valid()?"":"(X) ",l=s.isObject(e)?e.name:e,f=o.toJson(n(this.params()));return"Transition#"+r+"( '"+i+"'"+a+" -> "+c+"'"+l+"'"+f+" )"},t.diToken=t,t}();e.Transition=w},function(t,e,n){"use strict";function r(t){return t?"[ui-view#"+t.id+" tag "+("in template from '"+(t.creationContext&&t.creationContext.name||"(root)")+"' state]: ")+("fqn: '"+t.fqn+"', ")+("name: '"+t.name+"@"+t.creationContext+"')"):"ui-view (defunct)"}function i(t){return o.isNumber(t)?c[t]:c[c[t]]}var a=n(5),o=n(4),s=n(9),u=function(t){return"[ViewConfig#"+t.$id+" from '"+(t.viewDecl.$context.name||"(root)")+"' state]: target ui-view: '"+t.viewDecl.$uiViewName+"@"+t.viewDecl.$uiViewContextAnchor+"'"};!function(t){t[t.RESOLVE=0]="RESOLVE",t[t.TRANSITION=1]="TRANSITION",t[t.HOOK=2]="HOOK",t[t.UIVIEW=3]="UIVIEW",t[t.VIEWCONFIG=4]="VIEWCONFIG"}(e.Category||(e.Category={}));var c=e.Category,l=function(){function t(){this._enabled={},this.approximateDigests=0}return t.prototype._set=function(t,e){var n=this;e.length||(e=Object.keys(c).map(function(t){return parseInt(t,10)}).filter(function(t){return!isNaN(t)}).map(function(t){return c[t]})),e.map(i).forEach(function(e){return n._enabled[e]=t})},t.prototype.enable=function(){for(var t=[],e=0;e "+r)}},t.prototype.traceTransitionIgnored=function(t){if(this.enabled(c.TRANSITION)){var e=t&&t.$id,n=this.approximateDigests,r=s.stringify(t);console.log("Transition #"+e+" Digest #"+n+": Ignored <> "+r)}},t.prototype.traceHookInvocation=function(t,e){if(this.enabled(c.HOOK)){var n=a.parse("transition.$id")(e),r=this.approximateDigests,i=a.parse("traceData.hookType")(e)||"internal",o=a.parse("traceData.context.state.name")(e)||a.parse("traceData.context")(e)||"unknown",u=s.functionToString(t.eventHook.callback);console.log("Transition #"+n+" Digest #"+r+": Hook -> "+i+" context: "+o+", "+s.maxLength(200,u))}},t.prototype.traceHookResult=function(t,e){if(this.enabled(c.HOOK)){var n=a.parse("transition.$id")(e),r=this.approximateDigests,i=s.stringify(t);console.log("Transition #"+n+" Digest #"+r+": <- Hook returned: "+s.maxLength(200,i))}},t.prototype.traceResolvePath=function(t,e,n){if(this.enabled(c.RESOLVE)){var r=n&&n.$id,i=this.approximateDigests,a=t&&t.toString();console.log("Transition #"+r+" Digest #"+i+": Resolving "+a+" ("+e+")")}},t.prototype.traceResolvableResolved=function(t,e){if(this.enabled(c.RESOLVE)){var n=e&&e.$id,r=this.approximateDigests,i=t&&t.toString(),a=s.stringify(t.data);console.log("Transition #"+n+" Digest #"+r+": <- Resolved "+i+" to: "+s.maxLength(200,a))}},t.prototype.traceError=function(t,e){if(this.enabled(c.TRANSITION)){var n=e&&e.$id,r=this.approximateDigests,i=s.stringify(e);console.log("Transition #"+n+" Digest #"+r+": <- Rejected "+i+", reason: "+t)}},t.prototype.traceSuccess=function(t,e){if(this.enabled(c.TRANSITION)){var n=e&&e.$id,r=this.approximateDigests,i=t.name,a=s.stringify(e);console.log("Transition #"+n+" Digest #"+r+": <- Success "+a+", final state: "+i)}},t.prototype.traceUIViewEvent=function(t,e,n){void 0===n&&(n=""),this.enabled(c.UIVIEW)&&console.log("ui-view: "+s.padString(30,t)+" "+r(e)+n)},t.prototype.traceUIViewConfigUpdated=function(t,e){this.enabled(c.UIVIEW)&&this.traceUIViewEvent("Updating",t," with ViewConfig from context='"+e+"'")},t.prototype.traceUIViewFill=function(t,e){this.enabled(c.UIVIEW)&&this.traceUIViewEvent("Fill",t," with: "+s.maxLength(200,e))},t.prototype.traceViewServiceEvent=function(t,e){this.enabled(c.VIEWCONFIG)&&console.log("VIEWCONFIG: "+t+" "+u(e))},t.prototype.traceViewServiceUIViewEvent=function(t,e){this.enabled(c.VIEWCONFIG)&&console.log("VIEWCONFIG: "+t+" "+r(e))},t}();e.Trace=l;var f=new l;e.trace=f},function(t,e,n){"use strict";var r=n(3),i=n(9),a=n(4),o=n(5),s=n(12),u=n(6),c=n(10),l=n(14),f={async:!0,rejectIfSuperseded:!0,current:r.noop,transition:null,traceData:{},bind:null},h=function(){function t(t,e,n,i){var a=this;this.transition=t,this.stateContext=e,this.eventHook=n,this.options=i,this.isSuperseded=function(){return a.options.current()!==a.options.transition},this.options=r.defaults(i,f)}return t.prototype.invokeHook=function(){var t=this,e=t.options,n=t.eventHook;if(s.trace.traceHookInvocation(this,e),e.rejectIfSuperseded&&this.isSuperseded())return c.Rejection.superseded(e.current()).toPromise();var r=n._deregistered?void 0:n.callback.call(e.bind,this.transition,this.stateContext);return this.handleHookResult(r)},t.prototype.handleHookResult=function(t){if(this.isSuperseded())return c.Rejection.superseded(this.options.current()).toPromise();if(a.isPromise(t))return t.then(this.handleHookResult.bind(this));if(s.trace.traceHookResult(t,this.options),t===!1)return c.Rejection.aborted("Hook aborted transition").toPromise();var e=o.is(l.TargetState);return e(t)?c.Rejection.redirected(t).toPromise():void 0},t.prototype.toString=function(){var t=this,e=t.options,n=t.eventHook,r=o.parse("traceData.hookType")(e)||"internal",a=o.parse("traceData.context.state.name")(e)||o.parse("traceData.context")(e)||"unknown",s=i.fnToString(n.callback);return r+" context: "+a+", "+i.maxLength(200,s)},t.runSynchronousHooks=function(t,e){void 0===e&&(e=!1);for(var n=[],r=0;r=0));)v(l.id),this._params.push(s.Param.fromPath(l.id,l.type,this.config.paramMap(l.cfg,!1),n)),this._segments.push(l.segment),g.push([l.segment,i.tail(this._params)]),p=h.lastIndex;f=e.substring(p);var y=f.indexOf("?");if(y>=0){var x=f.substring(y);if(f=f.substring(0,y),x.length>0)for(p=0;c=d.exec(x);)l=m(c,!0),v(l.id),this._params.push(s.Param.fromSearch(l.id,l.type,this.config.paramMap(l.cfg,!0),n)),p=h.lastIndex}this._segments.push(f),i.extend(this,{_compiled:g.map(function(t){return r.apply(null,t)}).concat(r(f)),prefix:this._segments[0]}),Object.freeze(this)}return t.prototype.append=function(t){return this._children.push(t),i.forEach(t._cache,function(e,n){return t._cache[n]=o.isArray(e)?[]:null}),t._cache.path=this._cache.path.concat(this),t},t.prototype.isRoot=function(){return 0===this._cache.path.length},t.prototype.toString=function(){return this.pattern},t.prototype.exec=function(t,e,n,r){function o(t){var e=function(t){return t.split("").reverse().join("")},n=function(t){return t.replace(/\\-/g,"-")},r=e(t).split(/-(?!\\)/),a=i.map(r,e);return i.map(a,n).reverse()}var s=this;void 0===e&&(e={}),void 0===r&&(r={});var c=h(this._cache,"pattern",function(){return new RegExp(["^",i.unnest(s._cache.path.concat(s).map(a.prop("_compiled"))).join(""),s.config.strict===!1?"/?":"","$"].join(""),s.config.caseInsensitive?"i":void 0)}).exec(t);if(!c)return null;var l=this.parameters(),f=l.filter(function(t){return!t.isSearch()}),d=l.filter(function(t){return t.isSearch()}),p=this._cache.path.concat(this).map(function(t){return t._segments.length-1}).reduce(function(t,e){return t+e}),g={};if(p!==c.length-1)throw new Error("Unbalanced capture group in route '"+this.pattern+"'");for(var v=0;v1&&r.sort(s(n,-1)),[e,r[0]]},c=function(e){var n=e[0],r=e[1];t.uiViews.indexOf(n)!==-1&&n.configUpdated(r)};t.uiViews.sort(s(e,1)).map(u).forEach(c)}}return t.prototype.rootContext=function(t){return this._rootContext=t||this._rootContext},t.prototype.viewConfigFactory=function(t,e){this._viewConfigFactories[t]=e},t.prototype.createViewConfig=function(t,e){var n=this._viewConfigFactories[e.$type];if(!n)throw new Error("ViewService: No view config factory registered for type "+e.$type);var r=n(t,e);return a.isArray(r)?r:[r]},t.prototype.deactivateViewConfig=function(t){o.trace.traceViewServiceEvent("<- Removing",t),r.removeFrom(this.viewConfigs,t)},t.prototype.activateViewConfig=function(t){o.trace.traceViewServiceEvent("-> Registering",t),this.viewConfigs.push(t)},t.prototype.registerUIView=function(t){o.trace.traceViewServiceUIViewEvent("-> Registering",t);var e=this.uiViews,n=function(e){return e.fqn===t.fqn};return e.filter(n).length&&o.trace.traceViewServiceUIViewEvent("!!!! duplicate uiView named:",t),e.push(t),this.sync(),function(){var n=e.indexOf(t);return n===-1?void o.trace.traceViewServiceUIViewEvent("Tried removing non-registered uiView",t):(o.trace.traceViewServiceUIViewEvent("<- Deregistering",t),void r.removeFrom(e)(t))}},t.prototype.available=function(){return this.uiViews.map(i.prop("fqn"))},t.prototype.active=function(){return this.uiViews.filter(i.prop("$config")).map(i.prop("name"))},t.normalizeUIViewTarget=function(t,e){void 0===e&&(e="");var n=e.split("@"),r=n[0]||"$default",i=a.isString(n[1])?n[1]:"^",o=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);o&&(i=o[1],r=o[2]),"!"===r.charAt(0)&&(r=r.substr(1),i="");var s=/^(\^(?:\.\^)*)$/;if(s.exec(i)){var u=i.split(".").reduce(function(t,e){return t.parent},t);i=u.name}return{uiViewName:r,uiViewContextAnchor:i}},t}();e.ViewService=s},function(t,e,n){"use strict";var r=n(39),i=n(40),a=n(41),o=n(3),s=function(){function t(t,e){this.urlRouterProvider=e,this.states={},this.listeners=[],this.matcher=new r.StateMatcher(this.states),this.builder=new i.StateBuilder(this.matcher,t),this.stateQueue=new a.StateQueueManager(this.states,this.builder,e,this.listeners);var n={name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0},o=this._root=this.stateQueue.register(n);o.navigable=null}return t.prototype.onStatesChanged=function(t){return this.listeners.push(t),function(){o.removeFrom(this.listeners)(t)}.bind(this)},t.prototype.root=function(){ +return this._root},t.prototype.register=function(t){return this.stateQueue.register(t)},t.prototype._deregisterTree=function(t){var e=this,n=this.get().map(function(t){return t.$$state()}),r=function(t){var e=n.filter(function(e){return t.indexOf(e.parent)!==-1});return 0===e.length?e:e.concat(r(e))},i=r([t]),a=[t].concat(i).reverse();return a.forEach(function(t){e.urlRouterProvider.removeRule(t._urlRule),delete e.states[t.name]}),a},t.prototype.deregister=function(t){var e=this.get(t);if(!e)throw new Error("Can't deregister state; not found: "+t);var n=this._deregisterTree(e.$$state());return this.listeners.forEach(function(t){return t("deregistered",n.map(function(t){return t.self}))}),n},t.prototype.get=function(t,e){var n=this;if(0===arguments.length)return Object.keys(this.states).map(function(t){return n.states[t].self});var r=this.matcher.find(t,e);return r&&r.self||null},t.prototype.decorator=function(t,e){return this.builder.builder(t,e)},t}();e.StateRegistry=s},function(t,e,n){"use strict";var r=n(4),i=n(7),a=n(3),o=function(){function t(t){this._states=t}return t.prototype.isRelative=function(t){return t=t||"",0===t.indexOf(".")||0===t.indexOf("^")},t.prototype.find=function(t,e){if(t||""===t){var n=r.isString(t),o=n?t:t.name;this.isRelative(o)&&(o=this.resolvePath(o,e));var s=this._states[o];if(s&&(n||!(n||s!==t&&s.self!==t)))return s;if(n){var u=a.values(this._states).filter(function(t){return new i.Glob(t.name).matches(o)});return u.length>1&&console.log("stateMatcher.find: Found multiple matches for "+o+" using glob: ",u.map(function(t){return t.name})),u[0]}}},t.prototype.resolvePath=function(t,e){if(!e)throw new Error("No reference point given for path '"+t+"'");for(var n=this.find(e),r=t.split("."),i=0,a=r.length,o=n;i1?r:r[0]:l.isString(t)&&l.isFunction(e)?(n[t]=r,n[t].push(e),function(){return n[t].splice(n[t].indexOf(e,1))&&null}):void 0},t.prototype.build=function(t){var e=this,n=e.matcher,r=e.builders,i=this.parentName(t);if(i&&!n.find(i))return null;for(var a in r)if(r.hasOwnProperty(a)){var o=r[a].reduce(function(t,e){return function(n){return e(n,t)}},c.noop);t[a]=o(t)}return t},t.prototype.parentName=function(t){var e=t.name||"",n=e.split(".");if(n.length>1){if(t.parent)throw new Error("States that specify the 'parent:' property should not have a '.' in their name ("+e+")");var r=n.pop();return"**"===r&&n.pop(),n.join(".")}return t.parent?l.isString(t.parent)?t.parent:t.parent.name:""},t.prototype.name=function(t){var e=t.name;if(e.indexOf(".")!==-1||!t.parent)return e;var n=l.isString(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e},t}();e.StateBuilder=b},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(42),o=function(){function t(t,e,n,r){this.states=t,this.builder=e,this.$urlRouterProvider=n,this.listeners=r,this.queue=[]}return t.prototype.register=function(t){var e=this,n=e.states,o=e.queue,s=e.$state,u=r.inherit(new a.State,r.extend({},t,{self:t,resolve:t.resolve||[],toString:function(){return t.name}}));if(!i.isString(u.name))throw new Error("State must have a valid name");if(n.hasOwnProperty(u.name)||r.pluck(o,"name").indexOf(u.name)!==-1)throw new Error("State '"+u.name+"' is already defined");return o.push(u),this.$state&&this.flush(s),u},t.prototype.flush=function(t){for(var e=this,n=e.queue,r=e.states,i=e.builder,a=[],o=[],s={};n.length>0;){var u=n.shift(),c=i.build(u),l=o.indexOf(u);if(c){if(r.hasOwnProperty(u.name))throw new Error("State '"+name+"' is already defined");r[u.name]=u,this.attachRoute(t,u),l>=0&&o.splice(l,1),a.push(u)}else{var f=s[u.name];if(s[u.name]=n.length,l>=0&&f===n.length)return n.push(u),r;l<0&&o.push(u),n.push(u)}}return a.length&&this.listeners.forEach(function(t){return t("registered",a.map(function(t){return t.self}))}),r},t.prototype.autoFlush=function(t){this.$state=t,this.flush(t)},t.prototype.attachRoute=function(t,e){var n=this.$urlRouterProvider;!e.abstract&&e.url&&n.when(e.url,["$match","$stateParams",function(n,i){t.$current.navigable===e&&r.equalForKeys(n,i)||t.transitionTo(e,n,{inherit:!0,source:"url"})}],function(t){return e._urlRule=t})},t}();e.StateQueueManager=o},function(t,e,n){"use strict";var r=n(3),i=n(5),a=function(){function t(t){r.extend(this,t)}return t.prototype.is=function(t){return this===t||this.self===t||this.fqn()===t},t.prototype.fqn=function(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;var t=this.parent.fqn();return t?t+"."+this.name:this.name},t.prototype.root=function(){return this.parent&&this.parent.root()||this},t.prototype.parameters=function(t){t=r.defaults(t,{inherit:!0});var e=t.inherit&&this.parent&&this.parent.parameters()||[];return e.concat(r.values(this.params))},t.prototype.parameter=function(t,e){return void 0===e&&(e={}),this.url&&this.url.parameter(t,e)||r.find(r.values(this.params),i.propEq("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)},t.prototype.toString=function(){return this.fqn()},t}();e.State=a},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(8),o=n(6),s=n(20),u=n(21),c=n(30),l=n(10),f=n(14),h=n(22),d=n(7),p=n(3),g=n(3),v=n(17),m=function(){function t(e){this.router=e,this.invalidCallbacks=[],this._defaultErrorHandler=function(t){t instanceof Error&&t.stack?(console.error(t),console.error(t.stack)):t instanceof l.Rejection?(console.error(t.toString()),t.detail&&t.detail.stack&&console.error(t.detail.stack)):console.error(t)};var n=["current","$current","params","transition"],r=Object.keys(t.prototype).filter(function(t){return n.indexOf(t)===-1});g.bindFunctions(t.prototype,this,this,r)}return Object.defineProperty(t.prototype,"transition",{get:function(){return this.router.globals.transition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"params",{get:function(){return this.router.globals.params},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return this.router.globals.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"$current",{get:function(){return this.router.globals.$current},enumerable:!0,configurable:!0}),t.prototype._handleInvalidTargetState=function(t,e){function n(){var t=d.dequeue();if(void 0===t)return l.Rejection.invalid(e.error()).toPromise();var r=o.services.$q.when(t(e,i,p));return r.then(g).then(function(t){return t||n()})}var r=this,i=s.PathFactory.makeTargetState(t),u=this.router.globals,c=function(){return u.transitionHistory.peekTail()},h=c(),d=new a.Queue(this.invalidCallbacks.slice()),p=new v.ResolveContext(t).injector(),g=function(t){if(t instanceof f.TargetState){var e=t;return e=r.target(e.identifier(),e.params(),e.options()),e.valid()?c()!==h?l.Rejection.superseded().toPromise():r.transitionTo(e.identifier(),e.params(),e.options()):l.Rejection.invalid(e.error()).toPromise()}};return n()},t.prototype.onInvalid=function(t){return this.invalidCallbacks.push(t),function(){r.removeFrom(this.invalidCallbacks)(t)}.bind(this)},t.prototype.reload=function(t){return this.transitionTo(this.current,this.params,{reload:!i.isDefined(t)||t,inherit:!1,notify:!1})},t.prototype.go=function(t,e,n){var i={relative:this.$current,inherit:!0},a=r.defaults(n,i,c.defaultTransOpts);return this.transitionTo(t,e,a)},t.prototype.target=function(t,e,n){if(void 0===n&&(n={}),i.isObject(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");var r=this.router.stateRegistry;if(n.reloadState=n.reload===!0?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error("No such reload state '"+(i.isString(n.reload)?n.reload:n.reload.name)+"'");var a=r.matcher.find(t,n.relative);return new f.TargetState(t,a,e,n)},t.prototype.transitionTo=function(t,e,n){var i=this;void 0===e&&(e={}),void 0===n&&(n={});var a=this.router,s=a.globals,h=s.transitionHistory;n=r.defaults(n,c.defaultTransOpts),n=r.extend(n,{current:h.peekTail.bind(h)});var d=this.target(t,e,n),p=s.successfulTransitions.peekTail(),g=function(){return[new u.PathNode(i.router.stateRegistry.root())]},v=p?p.treeChanges().to:g();if(!d.exists())return this._handleInvalidTargetState(v,d);if(!d.valid())return r.silentRejection(d.error());var m=function(t){return function(e){if(e instanceof l.Rejection){if(e.type===l.RejectType.IGNORED)return a.urlRouter.update(),o.services.$q.when(s.current);var n=e.detail;if(e.type===l.RejectType.SUPERSEDED&&e.redirected&&n instanceof f.TargetState){var r=t.redirect(n);return r.run().catch(m(r))}e.type===l.RejectType.ABORTED&&a.urlRouter.update()}var u=i.defaultErrorHandler();return u(e),o.services.$q.reject(e)}},y=this.router.transitionService.create(v,d),x=y.run().catch(m(y));return r.silenceUncaughtInPromise(x),r.extend(x,{transition:y})},t.prototype.is=function(t,e,n){n=r.defaults(n,{relative:this.$current});var a=this.router.stateRegistry.matcher.find(t,n.relative);if(i.isDefined(a))return this.$current===a&&(!i.isDefined(e)||null===e||h.Param.equals(a.parameters(),this.params,e))},t.prototype.includes=function(t,e,n){n=r.defaults(n,{relative:this.$current});var a=i.isString(t)&&d.Glob.fromString(t);if(a){if(!a.matches(this.$current.name))return!1;t=this.$current.name}var o=this.router.stateRegistry.matcher.find(t,n.relative),s=this.$current.includes;if(i.isDefined(o))return!!i.isDefined(s[o.name])&&(!e||p.equalForKeys(h.Param.values(o.parameters(),e),this.params,Object.keys(e)))},t.prototype.href=function(t,e,n){var a={lossy:!0,inherit:!0,absolute:!1,relative:this.$current};n=r.defaults(n,a),e=e||{};var o=this.router.stateRegistry.matcher.find(t,n.relative);if(!i.isDefined(o))return null;n.inherit&&(e=this.params.$inherit(e,this.$current,o));var s=o&&n.lossy?o.navigable:o;return s&&void 0!==s.url&&null!==s.url?this.router.urlRouter.href(s.url,h.Param.values(o.parameters(),e),{absolute:n.absolute}):null},t.prototype.defaultErrorHandler=function(t){return this._defaultErrorHandler=t||this._defaultErrorHandler},t.prototype.get=function(t,e){var n=this.router.stateRegistry;return 0===arguments.length?n.get():n.get(t,e||this.$current)},t}();e.StateService=m},function(t,e,n){"use strict";var r=n(45),i=n(8),a=n(3),o=function(){function t(t){var e=this;this.params=new r.StateParams,this.transitionHistory=new i.Queue([],1),this.successfulTransitions=new i.Queue([],1);var n=function(t){e.transition=t,e.transitionHistory.enqueue(t);var n=function(){e.successfulTransitions.enqueue(t),e.$current=t.$to(),e.current=e.$current.self,a.copy(t.params(),e.params)};t.onSuccess({},n,{priority:1e4});var r=function(){e.transition===t&&(e.transition=null)};t.promise.then(r,r)};t.onBefore({},n)}return t}();e.Globals=o},function(t,e,n){"use strict";var r=n(3),i=function(){function t(t){void 0===t&&(t={}),r.extend(this,t)}return t.prototype.$inherit=function(t,e,n){var i,a=r.ancestors(e,n),o={},s=[];for(var u in a)if(a[u]&&a[u].params&&(i=Object.keys(a[u].params),i.length))for(var c in i)s.indexOf(i[c])>=0||(s.push(i[c]),o[i[c]]=this[i[c]]);return r.extend({},o,t)},t}();e.StateParams=i},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(22)),r(n(28)),r(n(45)),r(n(24))},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(21)),r(n(20))},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(18)),r(n(19)),r(n(17))},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(40)),r(n(42)),r(n(39)),r(n(41)),r(n(38)),r(n(43)),r(n(14))},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(16)),r(n(15)),r(n(10)),r(n(11)),r(n(13)),r(n(30))},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(27)),r(n(23)),r(n(26)),r(n(29))},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(37))},function(t,e,n){"use strict";function r(t){var e=f.services.$injector,n=e.get("$controller"),r=e.instantiate;try{var i;return e.instantiate=function(t){e.instantiate=r,i=e.annotate(t)},n(t,{$scope:{}}),i}finally{e.instantiate=r}}function i(t){function e(e,r,i,a,o,s){return a.$on("$locationChangeSuccess",function(t){return n.forEach(function(e){return e(t)})}),f.services.locationConfig.html5Mode=function(){var e=t.html5Mode();return e=p.isObject(e)?e.enabled:e,e&&i.history},f.services.location.setUrl=function(t,n){void 0===n&&(n=!1),e.url(t),n&&e.replace()},f.services.template.get=function(t){return o.get(t,{cache:s,headers:{Accept:"text/html"}}).then(d.prop("data"))},h.bindFunctions(e,f.services.location,e,["replace","url","path","search","hash"]),h.bindFunctions(e,f.services.locationConfig,e,["port","protocol","host"]),h.bindFunctions(r,f.services.locationConfig,r,["baseHref"]),w}w=new l.UIRouter,w.stateProvider=new x.StateProvider(w.stateRegistry,w.stateService),w.stateRegistry.decorator("views",m.ng1ViewsBuilder),w.stateRegistry.decorator("onExit",b.getStateHookBuilder("onExit")),w.stateRegistry.decorator("onRetain",b.getStateHookBuilder("onRetain")),w.stateRegistry.decorator("onEnter",b.getStateHookBuilder("onEnter")),w.viewService.viewConfigFactory("ng1",m.ng1ViewConfigFactory),h.bindFunctions(t,f.services.locationConfig,t,["hashPrefix"]);var n=[];f.services.location.onChange=function(t){return n.push(t),function(){return h.removeFrom(n)(t)}},this.$get=e,e.$inject=["$location","$browser","$sniffer","$rootScope","$http","$templateCache"]}function a(t,e){f.services.$injector=t,f.services.$q=e}function o(){return w.urlRouterProvider.$get=function(){return w.urlRouter.update(!0),this.interceptDeferred||w.urlRouter.listen(),w.urlRouter},w.urlRouterProvider}function s(){return w.stateProvider.$get=function(){return w.stateRegistry.stateQueue.autoFlush(w.stateService),w.stateService},w.stateProvider}function u(){return w.transitionService.$get=function(){return w.transitionService},w.transitionService}function c(t){t.$watch(function(){v.trace.approximateDigests++})}var l=n(25),f=n(6),h=n(3),d=n(5),p=n(4),g=n(54),v=n(12),m=n(55),y=n(56),x=n(58),b=n(59),_=n(57);_.module("ui.router.angular1",[]);_.module("ui.router.util",["ng","ui.router.init"]),_.module("ui.router.router",["ui.router.util"]),_.module("ui.router.state",["ui.router.router","ui.router.util","ui.router.angular1"]),_.module("ui.router",["ui.router.init","ui.router.state","ui.router.angular1"]),_.module("ui.router.compat",["ui.router"]),e.annotateController=r;var w=null;i.$inject=["$locationProvider"],_.module("ui.router.init",[]).provider("$uiRouter",i),a.$inject=["$injector","$q"],_.module("ui.router.init").run(a),_.module("ui.router.init").run(["$uiRouter",function(t){}]),_.module("ui.router.util").provider("$urlMatcherFactory",["$uiRouterProvider",function(){return w.urlMatcherFactory}]),_.module("ui.router.util").run(["$urlMatcherFactory",function(t){}]),_.module("ui.router.router").provider("$urlRouter",["$uiRouterProvider",o]),_.module("ui.router.router").run(["$urlRouter",function(t){}]),_.module("ui.router.state").provider("$state",["$uiRouterProvider",s]),_.module("ui.router.state").run(["$state",function(t){}]),_.module("ui.router.state").factory("$stateParams",["$uiRouter",function(t){return t.globals.params}]),_.module("ui.router.state").provider("$transitions",["$uiRouterProvider",u]),_.module("ui.router.util").factory("$templateFactory",["$uiRouter",function(){return new y.TemplateFactory}]),_.module("ui.router").factory("$view",function(){return w.viewService}),_.module("ui.router").factory("$resolve",g.resolveFactory),_.module("ui.router").service("$trace",function(){return v.trace}),c.$inject=["$rootScope"],e.watchDigests=c,_.module("ui.router").run(c),e.getLocals=function(t){var e=t.getTokens().filter(p.isString),n=e.map(function(e){return[e,t.getResolvable(e).data]});return n.reduce(h.applyPairs,{})}},function(t,e,n){"use strict";var r=n(42),i=n(21),a=n(17),o=n(3),s=n(40),u={resolve:function(t,e,n){void 0===e&&(e={});var u=new i.PathNode(new r.State({params:{},resolvables:[]})),c=new i.PathNode(new r.State({params:{},resolvables:[]})),l=new a.ResolveContext([u,c]);l.addResolvables(s.resolvablesBuilder({resolve:t}),c.state);var f=function(t){var n=function(t){return s.resolvablesBuilder({resolve:o.mapObj(t,function(t){return function(){return t}})})};l.addResolvables(n(t),u.state),l.addResolvables(n(e),c.state);var r=function(t,e){return t[e.token]=e.value,t};return l.resolvePath().then(function(t){return t.reduce(r,{})})};return n?n.then(f):f({})}};e.resolveFactory=function(){return u}},function(t,e,n){"use strict";function r(t){var e=["templateProvider","templateUrl","template","notify","async"],n=["controller","controllerProvider","controllerAs","resolveAs"],r=["component","bindings"],c=e.concat(n),l=r.concat(c),f={},h=t.views||{$default:a.pick(t,l)};return a.forEach(h,function(e,n){if(n=n||"$default",u.isString(e)&&(e={component:e}),Object.keys(e).length){if(e.component){if(c.map(function(t){return u.isDefined(e[t])}).reduce(a.anyTrueR,!1))throw new Error("Cannot combine: "+r.join("|")+" with: "+c.join("|")+" in stateview: 'name@"+t.name+"'");e.templateProvider=["$injector",function(t){var n=function(t){return e.bindings&&e.bindings[t]||t},r=p.version.minor>=3?"::":"",a=function(t){var e=o.kebobString(t.name),i=n(t.name);return"@"===t.type?e+"='{{"+r+"$resolve."+i+"}}'":e+"='"+r+"$resolve."+i+"'"},s=i(t,e.component).map(a).join(" "),u=o.kebobString(e.component);return"<"+u+" "+s+">"}]}e.resolveAs=e.resolveAs||"$resolve",e.$type="ng1",e.$context=t,e.$name=n;var l=s.ViewService.normalizeUIViewTarget(e.$context,e.$name);e.$uiViewName=l.uiViewName,e.$uiViewContextAnchor=l.uiViewContextAnchor,f[n]=e}}),f}function i(t,e){var n=t.get(e+"Directive");if(!n||!n.length)throw new Error("Unable to find component named '"+e+"'");return n.map(v).reduce(a.unnestR,[])}var a=n(3),o=n(9),s=n(37),u=n(4),c=n(6),l=n(12),f=n(56),h=n(17),d=n(19),p=n(57);e.ng1ViewConfigFactory=function(t,e){return[new y(t,e)]},e.ng1ViewsBuilder=r;var g=function(t){return Object.keys(t||{}).map(function(e){return[e,/^([=<@])[?]?(.*)/.exec(t[e])]}).filter(function(t){return u.isDefined(t)&&u.isDefined(t[1])}).map(function(t){return{name:t[1][2]||t[0],type:t[1][1]}})},v=function(t){return g(u.isObject(t.bindToController)?t.bindToController:t.scope)},m=0,y=function(){function t(t,e){this.path=t,this.viewDecl=e,this.$id=m++,this.loaded=!1}return t.prototype.load=function(){var t=this,e=c.services.$q;if(!this.hasTemplate())throw new Error("No template configuration specified for '"+this.viewDecl.$uiViewName+"@"+this.viewDecl.$uiViewContextAnchor+"'");var n=new h.ResolveContext(this.path),r=this.path.reduce(function(t,e){return a.extend(t,e.paramValues)},{}),i={template:e.when(this.getTemplate(r,new f.TemplateFactory,n)),controller:e.when(this.getController(n))};return e.all(i).then(function(e){return l.trace.traceViewServiceEvent("Loaded",t),t.controller=e.controller,t.template=e.template,t})},t.prototype.hasTemplate=function(){return!!(this.viewDecl.template||this.viewDecl.templateUrl||this.viewDecl.templateProvider)},t.prototype.getTemplate=function(t,e,n){return e.fromConfig(this.viewDecl,t,n)},t.prototype.getController=function(t){var e=this.viewDecl.controllerProvider;if(!u.isInjectable(e))return this.viewDecl.controller;var n=c.services.$injector.annotate(e),r=u.isArray(e)?a.tail(e):e,i=new d.Resolvable("",r,n);return i.get(t)},t}();e.Ng1ViewConfig=y},function(t,e,n){"use strict";var r=n(4),i=n(6),a=n(3),o=n(19),s=function(){function t(){}return t.prototype.fromConfig=function(t,e,n){return r.isDefined(t.template)?this.fromString(t.template,e):r.isDefined(t.templateUrl)?this.fromUrl(t.templateUrl,e):r.isDefined(t.templateProvider)?this.fromProvider(t.templateProvider,e,n):null},t.prototype.fromString=function(t,e){return r.isFunction(t)?t(e):t},t.prototype.fromUrl=function(t,e){return r.isFunction(t)&&(t=t(e)),null==t?null:i.services.template.get(t)},t.prototype.fromProvider=function(t,e,n){var s=i.services.$injector.annotate(t),u=r.isArray(t)?a.tail(t):t,c=new o.Resolvable("",u,s);return c.get(n)},t}();e.TemplateFactory=s},function(e,n){e.exports=t},function(t,e,n){"use strict";var r=n(4),i=n(3),a=function(){function t(e,n){this.stateRegistry=e,this.stateService=n,i.bindFunctions(t.prototype,this,this)}return t.prototype.decorator=function(t,e){return this.stateRegistry.decorator(t,e)||this},t.prototype.state=function(t,e){return r.isObject(t)?e=t:e.name=t,this.stateRegistry.register(e),this},t.prototype.onInvalid=function(t){return this.stateService.onInvalid(t)},t}();e.StateProvider=a},function(t,e,n){"use strict";var r=n(6),i=n(53),a=n(17),o=n(3);e.getStateHookBuilder=function(t){return function(e,n){function s(t,e){var n=new a.ResolveContext(t.treeChanges().to);return r.services.$injector.invoke(u,this,o.extend({$state$:e},i.getLocals(n)))}var u=e[t];return u?s:void 0}}},function(t,e,n){"use strict";function r(t,e){var n,r=t.match(/^\s*({[^}]*})\s*$/);if(r&&(t=e+"("+r[1]+")"),n=t.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/),!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1],paramExpr:n[3]||null}}function i(t){var e=t.parent().inheritedData("$uiView"),n=f.parse("$cfg.path")(e);return n?c.tail(n).state.name:void 0}function a(t){var e="[object SVGAnimatedString]"===Object.prototype.toString.call(t.prop("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t.prop("tagName").toUpperCase(),clickable:!n}}function o(t,e,n,r,i){return function(a){var o=a.which||a.button,s=i();if(!(o>1||a.ctrlKey||a.metaKey||a.shiftKey||t.attr("target"))){var u=n(function(){e.go(s.state,s.params,s.options)});a.preventDefault();var c=r.isAnchor&&!s.href?1:0;a.preventDefault=function(){c--<=0&&n.cancel(u)}}}}function s(t,e){return{relative:i(t)||e.$current,inherit:!0,source:"sref"}}var u=n(57),c=n(3),l=n(4),f=n(5),h=["$state","$timeout",function(t,e){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(n,i,l,f){var h,d=r(l.uiSref,t.current.name),p={state:d.state,href:null,params:null,options:null},g=a(i),v=f[1]||f[0],m=null;p.options=c.extend(s(i,t),l.uiSrefOpts?n.$eval(l.uiSrefOpts):{});var y=function(e){e&&(p.params=u.copy(e)),p.href=t.href(d.state,p.params,p.options),m&&m(),v&&(m=v.$$addStateInfo(d.state,p.params)),null!==p.href&&l.$set(g.attr,p.href)};d.paramExpr&&(n.$watch(d.paramExpr,function(t){t!==p.params&&y(t)},!0),p.params=u.copy(n.$eval(d.paramExpr))),y(),g.clickable&&(h=o(i,t,e,g,function(){return p}),i.on("click",h),n.$on("$destroy",function(){i.off("click",h)}))}}}],d=["$state","$timeout",function(t,e){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(n,r,i,s){function u(e){p.state=e[0],p.params=e[1],p.options=e[2],p.href=t.href(p.state,p.params,p.options),g&&g(),f&&(g=f.$$addStateInfo(p.state,p.params)),p.href&&i.$set(l.attr,p.href)}var c,l=a(r),f=s[1]||s[0],h=[i.uiState,i.uiStateParams||null,i.uiStateOpts||null],d="["+h.map(function(t){return t||"null"}).join(", ")+"]",p={state:null,params:null,options:null,href:null},g=null;n.$watch(d,u,!0),u(n.$eval(d)),l.clickable&&(c=o(r,t,e,l,function(){return p}),r.on("click",c),n.$on("$destroy",function(){r.off("click",c)}))}}}],p=["$state","$stateParams","$interpolate","$transitions","$uiRouter",function(t,e,n,a,o){return{restrict:"A",controller:["$scope","$element","$attrs","$timeout",function(e,s,u,f){function h(t){t.promise.then(g)}function d(e,n,r){var a=t.get(e,i(s)),o=p(e,n),u={state:a||{name:e},params:n,hash:o};return w.push(u),S[o]=r,function(){var t=w.indexOf(u);t!==-1&&w.splice(t,1)}}function p(t,n){if(!l.isString(t))throw new Error("state should be a string");return l.isObject(n)?t+c.toJson(n):(n=e.$eval(n),l.isObject(n)?t+c.toJson(n):t)}function g(){for(var t=0;t0)){var n=d(t,e,_);return g(),n}},e.$on("$stateChangeSuccess",g),e.$on("$destroy",a.onStart({},h)),o.globals.transition&&h(o.globals.transition),g()}]}}];u.module("ui.router.state").directive("uiSref",h).directive("uiSrefActive",p).directive("uiSrefActiveEq",p).directive("uiState",d)},function(t,e,n){"use strict";function r(t){var e=function(e,n,r){return t.is(e,n,r)};return e.$stateful=!0,e}function i(t){var e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}var a=n(57);r.$inject=["$state"],e.$IsStateFilter=r,i.$inject=["$state"],e.$IncludedByStateFilter=i,a.module("ui.router.state").filter("isState",r).filter("includedByState",i)},function(t,e,n){"use strict";function r(t,e,n,r,u){var p=c.parse("viewDecl.controllerAs"),g=c.parse("viewDecl.resolveAs");return{restrict:"ECA",priority:-400,compile:function(r){var u=r.html();return function(r,c){var v=c.data("$uiView");if(v){var m=v.$cfg||{viewDecl:{}};c.html(m.template||u),s.trace.traceUIViewFill(v.$uiView,c.html());var y=t(c.contents()),x=m.controller,b=p(m),_=g(m),w=m.path&&new l.ResolveContext(m.path),S=w&&h.getLocals(w);if(r[_]=S,x){var $=e(x,a.extend({},S,{$scope:r,$element:c}));b&&(r[b]=$,r[b][_]=S),c.data("$ngControllerController",$),c.children().data("$ngControllerController",$),i(n,$,r,m)}if(o.isString(m.viewDecl.component))var k=m.viewDecl.component,T=f.kebobString(k),A=function(){var t=[].slice.call(c[0].children).filter(function(t){return t&&t.tagName&&t.tagName.toLowerCase()===T});return t&&d.element(t).data("$"+k+"Controller")},C=r.$watch(A,function(t){t&&(i(n,t,r,m),C())});y(r)}}}}}function i(t,e,n,r){!o.isFunction(e.$onInit)||r.viewDecl.component&&g||e.$onInit();var i=a.tail(r.path).state.self,s={bind:e};if(o.isFunction(e.uiOnParamsChanged)){var u=new l.ResolveContext(r.path),c=u.getResolvable("$transition$").data,f=function(t){if(t!==c&&t.exiting().indexOf(i)===-1){var n=t.params("to"),r=t.params("from"),o=t.treeChanges().to.map(function(t){return t.paramSchema}).reduce(a.unnestR,[]),s=t.treeChanges().from.map(function(t){return t.paramSchema}).reduce(a.unnestR,[]),u=o.filter(function(t){var e=s.indexOf(t);return e===-1||!s[e].type.equals(n[t.id],r[t.id])});if(u.length){var l=u.map(function(t){return t.id});e.uiOnParamsChanged(a.filter(n,function(t,e){return l.indexOf(e)!==-1}),t)}}};n.$on("$destroy",t.onSuccess({},f,s))}if(o.isFunction(e.uiCanExit)){var h={exiting:i.name};n.$on("$destroy",t.onBefore(h,e.uiCanExit,s))}}var a=n(3),o=n(4),s=n(12),u=n(55),c=n(5),l=n(17),f=n(9),h=n(53),d=n(57),p=["$view","$animate","$uiViewScroll","$interpolate","$q",function(t,e,n,r,i){function a(t,n){return{enter:function(t,n,r){d.version.minor>2?e.enter(t,null,n).then(r):e.enter(t,null,n,r)},leave:function(t,n){d.version.minor>2?e.leave(t).then(n):e.leave(t,n)}}}function l(t,e){return t===e}var f={$cfg:{viewDecl:{$context:t.rootContext()}},$uiView:{}},h={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(e,d,p){return function(e,d,g){function v(t){(!t||t instanceof u.Ng1ViewConfig)&&(l(T,t)||(s.trace.traceUIViewConfigUpdated(E,t&&t.viewDecl&&t.viewDecl.$context),T=t,y(t)))}function m(){if(x&&(s.trace.traceUIViewEvent("Removing (previous) el",x.data("$uiView")),x.remove(),x=null),_&&(s.trace.traceUIViewEvent("Destroying scope",E),_.$destroy(),_=null),b){var t=b.data("$uiViewAnim");s.trace.traceUIViewEvent("Animate out",t),k.leave(b,function(){t.$$animLeave.resolve(),x=null}),x=b,b=null}}function y(t){var r=e.$new(),a=i.defer(),s=i.defer(),u={$cfg:t,$uiView:E},c={$animEnter:a.promise,$animLeave:s.promise,$$animLeave:s},l=p(r,function(t){t.data("$uiViewAnim",c),t.data("$uiView",u),k.enter(t,d,function(){a.resolve(),_&&_.$emit("$viewContentAnimationEnded"),(o.isDefined($)&&!$||e.$eval($))&&n(t)}),m()});b=l,_=r,_.$emit("$viewContentLoaded",t||T),_.$eval(S)}var x,b,_,w,S=g.onload||"",$=g.autoscroll,k=a(g,e),T=void 0,A=d.inheritedData("$uiView")||f,C=r(g.uiView||g.name||"")(e)||"$default",E={$type:"ng1", +id:h.count++,name:C,fqn:A.$uiView.fqn?A.$uiView.fqn+"."+C:C,config:null,configUpdated:v,get creationContext(){return c.parse("$cfg.viewDecl.$context")(A)}};s.trace.traceUIViewEvent("Linking",E),d.data("$uiView",{$uiView:E}),y(),w=t.registerUIView(E),e.$on("$destroy",function(){s.trace.traceUIViewEvent("Destroying/Unregistering",E),w()})}}};return h}];r.$inject=["$compile","$controller","$transitions","$view","$timeout"];var g="function"==typeof d.module("ui.router").component;d.module("ui.router.state").directive("uiView",p),d.module("ui.router.state").directive("uiView",r)},function(t,e,n){"use strict";function r(){var t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",function(e,n){return t?e:function(t){return n(function(){t[0].scrollIntoView()},0,!1)}}]}var i=n(57);i.module("ui.router.state").provider("$uiViewScroll",r)}])})},function(t,e){/** + * @license AngularJS v1.6.2 + * (c) 2010-2017 Google, Inc. http://angularjs.org + * License: MIT + */ +!function(t){"use strict";function e(t,e){return e=e||Error,function(){var n,r,i=2,a=arguments,o=a[0],s="["+(t?t+":":"")+o+"] ",u=a[1];for(s+=u.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1),n=e+i;return n=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function r(t,e,i){var a,o;if(t)if($(t))for(a in t)"prototype"!==a&&"length"!==a&&"name"!==a&&t.hasOwnProperty(a)&&e.call(i,t[a],a,t);else if(ci(t)||n(t)){var s="object"!=typeof t;for(a=0,o=t.length;a=0&&t.splice(n,1),n}function N(t,e){function n(t,e){var n,r=e.$$hashKey;if(ci(t))for(var a=0,o=t.length;a2?H(arguments,2):[];return!$(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,G(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function B(e,n){var r=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?r=void 0:T(n)?r="$WINDOW":n&&t.document===n?r="$DOCUMENT":A(n)&&(r="$SCOPE"),r}function W(t,e){if(!m(t))return w(e)||(e=e?2:null),JSON.stringify(t,B,e)}function q(t){return _(t)?JSON.parse(t):t}function Y(t,e){t=t.replace(gi,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return ui(n)?e:n}function X(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function K(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset(),i=Y(e,r);return X(t,n*(i-r))}function Z(t){t=Zr(t).clone();try{t.empty()}catch(t){}var e=Zr("
    ").append(t).html();try{return t[0].nodeType===wi?Wr(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(t,e){return"<"+Wr(e)})}catch(t){return Wr(e)}}function Q(t){try{return decodeURIComponent(t)}catch(t){}}function J(t){var e={};return r((t||"").split("&"),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),n!==-1&&(r=t.substring(0,n),i=t.substring(n+1)),r=Q(r),y(r)&&(i=!y(i)||Q(i),Br.call(e,r)?ci(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function tt(t){var e=[];return r(t,function(t,n){ci(t)?r(t,function(t){e.push(nt(n,!0)+(t===!0?"":"="+nt(t,!0)))}):e.push(nt(n,!0)+(t===!0?"":"="+nt(t,!0)))}),e.length?e.join("&"):""}function et(t){return nt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function nt(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 rt(t,e){var n,r,i=vi.length;for(r=0;r protocol indicates an extension, document.location.href does not match.");o.strictDi=null!==rt(i,"strict-di"),n(i,a?[a]:[],o)}}function ot(e,n,i){x(i)||(i={});var a={strictDi:!1};i=c(a,i);var o=function(){if(e=Zr(e),e.injector()){var r=e[0]===t.document?"document":Z(e);throw ai("btstrpd","App already bootstrapped with this element '{0}'",r.replace(//,">"))}n=n||[],n.unshift(["$provide",function(t){t.value("$rootElement",e)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng");var a=ce(n,i.strictDi);return a.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),a},s=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;return t&&s.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(s,"")),t&&!u.test(t.name)?o():(t.name=t.name.replace(u,""),oi.resumeBootstrap=function(t){return r(t,function(t){n.push(t)}),o()},void($(oi.resumeDeferredBootstrap)&&oi.resumeDeferredBootstrap()))}function st(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function ut(t){var e=oi.element(t).injector();if(!e)throw ai("test","no injector found for element argument to getTestability");return e.get("$$testability")}function ct(t,e){return e=e||"_",t.replace(yi,function(t,n){return(n?e:"")+t.toLowerCase()})}function lt(){var e;if(!xi){var n=pi();Qr=m(n)?t.jQuery:n?t[n]:void 0,Qr&&Qr.fn.on?(Zr=Qr,c(Qr.fn,{scope:Vi.scope,isolateScope:Vi.isolateScope,controller:Vi.controller,injector:Vi.injector,inheritedData:Vi.inheritedData}),e=Qr.cleanData,Qr.cleanData=function(t){for(var n,r,i=0;null!=(r=t[i]);i++)n=Qr._data(r,"events"),n&&n.$destroy&&Qr(r).triggerHandler("$destroy");e(t)}):Zr=Rt,oi.element=Zr,xi=!0}}function ft(t,e,n){if(!t)throw ai("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ht(t,e,n){return n&&ci(t)&&(t=t[t.length-1]),ft($(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function dt(t,e){if("hasOwnProperty"===t)throw ai("badname","hasOwnProperty is not a valid {0} name",e)}function pt(t,e,n){if(!e)return t;for(var r,i=e.split("."),a=t,o=i.length,s=0;s=0)return"...";e.push(n)}return n})}function _t(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):m(t)?"undefined":"string"!=typeof t?bt(t):t}function wt(n){c(n,{bootstrap:ot,copy:N,extend:c,merge:l,equals:z,element:Zr,forEach:r,injector:ce,noop:d,bind:U,toJson:W,fromJson:q,identity:p,isUndefined:m,isDefined:y,isString:_,isFunction:$,isObject:x,isNumber:w,isElement:L,isArray:ci,version:Ti,isDate:S,lowercase:Wr,uppercase:qr,callbacks:{$$counter:0},getTestability:ut,reloadWithDebugInfo:st,$$minErr:e,$$csp:di,$$encodeUriSegment:et,$$encodeUriQuery:nt,$$stringify:mt}),(Jr=yt(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:An}),t.provider("$compile",be).directive({a:Ya,input:go,textarea:go,form:to,script:cs,select:hs,option:ds,ngBind:yo,ngBindHtml:bo,ngBindTemplate:xo,ngClass:wo,ngClassEven:$o,ngClassOdd:So,ngCloak:ko,ngController:To,ngForm:eo,ngHide:ns,ngIf:Eo,ngInclude:Po,ngInit:Oo,ngNonBindable:qo,ngPluralize:Zo,ngRepeat:Qo,ngShow:es,ngStyle:rs,ngSwitch:is,ngSwitchWhen:as,ngSwitchDefault:os,ngOptions:Ko,ngTransclude:us,ngModel:Uo,ngList:Mo,ngChange:_o,pattern:gs,ngPattern:gs,required:ps,ngRequired:ps,minlength:ms,ngMinlength:ms,maxlength:vs,ngMaxlength:vs,ngValue:mo,ngModelOptions:Wo}).directive({ngInclude:Io}).directive(Xa).directive(Ao),t.provider({$anchorScroll:le,$animate:ra,$animateCss:oa,$$animateJs:ea,$$animateQueue:na,$$AnimateRunner:aa,$$animateAsyncRun:ia,$browser:ve,$cacheFactory:me,$controller:Te,$document:Ae,$$isDocumentHidden:Ce,$exceptionHandler:Ee,$filter:Gn,$$forceReflow:da,$interpolate:He,$interval:Ue,$http:Ve,$httpParamSerializer:Ie,$httpParamSerializerJQLike:Oe,$httpBackend:ze,$xhrFactory:Ne,$jsonpCallbacks:_a,$location:on,$log:sn,$parse:_n,$rootScope:Tn,$q:wn,$$q:Sn,$sce:On,$sceDelegate:In,$sniffer:Mn,$templateCache:ye,$templateRequest:Rn,$$testability:Ln,$timeout:Dn,$window:Vn,$$rAF:kn,$$jqLite:ne,$$Map:Bi,$$cookieReader:zn})}])}function St(){return++Ci}function $t(t){return Tt(t.replace(Pi,"ms-"))}function kt(t,e){return e.toUpperCase()}function Tt(t){return t.replace(Ei,kt)}function At(t){return!Ri.test(t)}function Ct(t){var e=t.nodeType;return e===bi||!e||e===$i}function Et(t){for(var e in Ai[t.ng339])return!0;return!1}function Pt(t){for(var e=0,n=t.length;e")+a[2],o=a[0];o--;)n=n.lastChild;u=G(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",r(u,function(t){s.appendChild(t)}),s}function Ot(e,n){n=n||t.document;var r;return(r=Mi.exec(e))?[n.createElement(r[1])]:(r=It(e,n))?r.childNodes:[]}function Mt(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}function Rt(t){if(t instanceof Rt)return t;var e;if(_(t)&&(t=fi(t),e=!0),!(this instanceof Rt)){if(e&&"<"!==t.charAt(0))throw Oi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Rt(t)}e?Ut(this,Ot(t)):$(t)?Kt(t):Ut(this,t)}function Lt(t){return t.cloneNode(!0)}function Dt(t,e){if(e||Ft(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r0||(t.removeEventListener(e,s),delete o[e])};r(e.split(" "),function(t){u(t),Ii[t]&&u(Ii[t])})}else for(e in o)"$destroy"!==e&&t.removeEventListener(e,s),delete o[e]}function Ft(t,e){var n=t.ng339,r=n&&Ai[n];if(r){if(e)return void delete r.data[e];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),jt(t)),delete Ai[n],t.ng339=void 0}}function Vt(t,e){var n=t.ng339,r=n&&Ai[n];return e&&!r&&(t.ng339=n=St(),r=Ai[n]={events:{},data:{},handle:void 0}),r}function Nt(t,e,n){if(Ct(t)){var r,i=y(n),a=!i&&e&&!x(e),o=!e,s=Vt(t,!a),u=s&&s.data;if(i)u[Tt(e)]=n;else{if(o)return u;if(a)return u&&u[Tt(e)];for(r in e)u[Tt(r)]=e[r]}}}function zt(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function Gt(t,e){e&&t.setAttribute&&r(e.split(" "),function(e){t.setAttribute("class",fi((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+fi(e)+" "," ")))})}function Ht(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(e.split(" "),function(t){t=fi(t),n.indexOf(" "+t+" ")===-1&&(n+=t+" ")}),t.setAttribute("class",fi(n))}}function Ut(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;r1&&(i=xt(i));for(var u=0;ul&&this.remove(d.key),e}},get:function(t){if(l";var r=kt.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}function G(t,e){try{t.addClass(e)}catch(t){}}function B(t,e,n,r,i){t instanceof Zr||(t=Zr(t));var a=q(t,e,t,n,r,i);B.$$addScopeClass(t);var o=null;return function(e,n,r){if(!t)throw sa("multilink","This element has already been linked.");ft(e,"scope"),i&&i.needsNewScope&&(e=e.$parent.$new()),r=r||{};var s=r.parentBoundTranscludeFn,u=r.transcludeControllers,c=r.futureParentElement;s&&s.$$boundTransclude&&(s=s.$$boundTransclude),o||(o=W(c));var l;if(l="html"!==o?Zr(gt(o,Zr("
    ").append(t).html())):n?Vi.clone.call(t):t,u)for(var f in u)l.data("$"+f+"Controller",u[f].instance);return B.$$addScopeInfo(l,e),n&&n(l,e),a&&a(e,l,l,s),n||(t=a=null),l}}function W(t){var e=t&&t[0];return e&&"foreignobject"!==j(e)&&ri.call(e).match(/SVG/)?"svg":"html"}function q(t,e,n,r,i,a){function o(t,n,r,i){var a,o,s,u,c,l,f,h,g;if(d){var v=n.length;for(g=new Array(v),c=0;c0)}else r.push(t);return Zr(r)}function tt(t,e,n){return function(r,i,a,o,s){return i=J(i[0],e,n),t(r,i,a,o,s)}}function et(t,e,n,r,i,a){var o;return t?B(e,n,r,i,a):function(){return o||(o=B(e,n,r,i,a),e=n=a=null),o.apply(this,arguments)}}function nt(t,e,n,a,o,s,u,l,f){function h(t,e,n,r){t&&(n&&(t=tt(t,n,r)),t.require=p.require,t.directiveName=g,(k===p||p.$$isolateScope)&&(t=bt(t,{isolateScope:!0})),u.push(t)),e&&(n&&(e=tt(e,n,r)),e.require=p.require,e.directiveName=g,(k===p||p.$$isolateScope)&&(e=bt(e,{isolateScope:!0})),l.push(e))}function d(t,a,o,s,f){function h(t,e,n,r){var i;if(A(t)||(r=n,n=e,e=t,t=void 0),O&&(i=b),n||(n=O?C.parent():C),!r)return f(t,e,i,n,V);var a=f.$$slots[r];if(a)return a(t,e,i,n,V);if(m(a))throw sa("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Z(C))}var d,p,g,v,y,b,_,C,E,I;e===o?(E=n,C=n.$$element):(C=Zr(o),E=new F(C,n)),y=a,k?v=a.$new(!0):w&&(y=a.$parent),f&&(_=h,_.$$boundTransclude=f,_.isSlotFilled=function(t){return!!f.$$slots[t]}),S&&(b=it(C,E,_,S,v,a,k)),k&&(B.$$addScopeInfo(C,v,!0,!(T&&(T===k||T===k.$$originalDirective))),B.$$addScopeClass(C,!0),v.$$isolateBindings=k.$$isolateBindings,I=wt(a,E,v,v.$$isolateBindings,k),I.removeWatches&&v.$on("$destroy",I.removeWatches));for(var M in b){var R=S[M],L=b[M],D=R.$$bindings.bindToController;if(P){D?L.bindingInfo=wt(y,E,L.instance,D,R):L.bindingInfo={};var j=L();j!==L.instance&&(L.instance=j,C.data("$"+R.name+"Controller",j),L.bindingInfo.removeWatches&&L.bindingInfo.removeWatches(),L.bindingInfo=wt(y,E,L.instance,D,R))}else L.instance=L(),C.data("$"+R.name+"Controller",L.instance),L.bindingInfo=wt(y,E,L.instance,D,R)}for(r(S,function(t,e){var n=t.require;t.bindToController&&!ci(n)&&x(n)&&c(b[e].instance,rt(e,n,C,b))}),r(b,function(t){var e=t.instance;if($(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){i(t)}if($(e.$onInit))try{e.$onInit()}catch(t){i(t)}$(e.$doCheck)&&(y.$watch(function(){e.$doCheck()}),e.$doCheck()),$(e.$onDestroy)&&y.$on("$destroy",function(){e.$onDestroy()})}),d=0,p=u.length;d=0;d--)g=l[d],_t(g,g.isolateScope?v:a,C,E,g.require&&rt(g.directiveName,g.require,C,b),_);r(b,function(t){var e=t.instance;$(e.$postLink)&&e.$postLink()})}f=f||{};for(var p,g,v,y,b,_=-Number.MAX_VALUE,w=f.newScopeDirective,S=f.controllerDirectives,k=f.newIsolateScopeDirective,T=f.templateDirective,C=f.nonTlbTranscludeDirective,E=!1,I=!1,O=f.hasElementTranscludeDirective,M=n.$$element=Zr(e),R=s,L=a,D=!1,V=!1,N=0,z=t.length;Np.priority)break;if(b=p.scope,b&&(p.templateUrl||(x(b)?(dt("new/isolated scope",k||w,p,M),k=p):dt("new/isolated scope",k,p,M)),w=w||p),g=p.name,!D&&(p.replace&&(p.templateUrl||p.template)||p.transclude&&!p.$$tlb)){for(var q,Y=N+1;q=t[Y++];)if(q.transclude&&!q.$$tlb||q.replace&&(q.templateUrl||q.template)){V=!0;break}D=!0}if(!p.templateUrl&&p.controller&&(S=S||vt(),dt("'"+g+"' controller",S[g],p,M),S[g]=p),b=p.transclude)if(E=!0,p.$$tlb||(dt("transclusion",C,p,M),C=p),"element"===b)O=!0,_=p.priority,v=M,M=n.$$element=Zr(B.$$createComment(g,n[g])),e=M[0],xt(o,H(v),e),v[0].$$parentNode=v[0].parentNode,L=et(V,v,a,_,R&&R.name,{nonTlbTranscludeDirective:C});else{var X=vt();if(x(b)){v=[];var Q=vt(),nt=vt();r(b,function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,Q[t]=e,X[e]=null,nt[e]=n}),r(M.contents(),function(t){var e=Q[we(j(t))];e?(nt[e]=!0,X[e]=X[e]||[],X[e].push(t)):v.push(t)}),r(nt,function(t,e){if(!t)throw sa("reqslot","Required transclusion slot `{0}` was not filled.",e)});for(var ot in X)X[ot]&&(X[ot]=et(V,X[ot],a))}else v=Zr(Lt(e)).contents();M.empty(),L=et(V,v,a,void 0,void 0,{needsNewScope:p.$$isolateScope||p.$$newScope}),L.$$slots=X}if(p.template)if(I=!0,dt("template",T,p,M),T=p,b=$(p.template)?p.template(M,n):p.template,b=Ot(b),p.replace){if(R=p,v=At(b)?[]:$e(gt(p.templateNamespace,fi(b))),e=v[0],1!==v.length||e.nodeType!==bi)throw sa("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g,"");xt(o,M,e);var st={$attr:{}},ct=K(e,[],st),ft=t.splice(N+1,t.length-(N+1));(k||w)&&at(ct,k,w),t=t.concat(ct).concat(ft),ut(n,st),z=t.length}else M.html(b);if(p.templateUrl)I=!0,dt("template",T,p,M),T=p,p.replace&&(R=p),d=lt(t.splice(N,t.length-N),M,n,o,E&&L,u,l,{controllerDirectives:S,newScopeDirective:w!==p&&w,newIsolateScopeDirective:k,templateDirective:T,nonTlbTranscludeDirective:C}),z=t.length;else if(p.compile)try{y=p.compile(M,n,L);var ht=p.$$originalDirective||p;$(y)?h(null,U(ht,y),G,W):y&&h(U(ht,y.pre),U(ht,y.post),G,W)}catch(t){i(t,Z(M))}p.terminal&&(d.terminal=!0,_=Math.max(_,p.priority))}return d.scope=w&&w.scope===!0,d.transcludeOnThisElement=E,d.templateOnThisElement=I,d.transclude=L,f.hasElementTranscludeDirective=O,d}function rt(t,e,n,i){var a;if(_(e)){var o=e.match(k),s=e.substring(o[0].length),u=o[1]||o[3],c="?"===o[2];if("^^"===u?n=n.parent():(a=i&&i[s],a=a&&a.instance),!a){var l="$"+s+"Controller";a=u?n.inheritedData(l):n.data(l)}if(!a&&!c)throw sa("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,t)}else if(ci(e)){a=[];for(var f=0,h=e.length;fl.priority)&&l.restrict.indexOf(r)!==-1){if(s&&(l=h(l,{$$start:s,$$end:u})),!l.$$bindings){var y=l.$$bindings=o(l,l.name);x(y.isolateScope)&&(l.$$isolateBindings=y.isolateScope)}t.push(l),c=l}return c}function st(t){if(f.hasOwnProperty(t))for(var n,r=e.get(t+v),i=0,a=r.length;i"+n+"",r.childNodes[0].childNodes;default:return n}}function mt(t,e){if("srcdoc"===e)return g.HTML;var n=j(t);if("src"===e||"ngSrc"===e){if(["img","video","audio","source","track"].indexOf(n)===-1)return g.RESOURCE_URL}else if("xlinkHref"===e||"form"===n&&"action"===e||"link"===n&&"href"===e)return g.RESOURCE_URL}function yt(t,e,r,i,a){var o=mt(t,i),s=!a,u=S[i]||a,c=n(r,s,o,u);if(c){if("multiple"===i&&"select"===j(t))throw sa("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Z(t));if(T.test(i))throw sa("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");e.push({priority:100,compile:function(){return{pre:function(t,e,a){var s=a.$$observers||(a.$$observers=vt()),l=a[i];l!==r&&(c=l&&n(l,!0,o,u),r=l),c&&(a[i]=c(t),(s[i]||(s[i]=[])).$$inter=!0,(a.$$observers&&a.$$observers[i].$$scope||t).$watch(c,function(t,e){"class"===i&&t!==e?a.$updateClass(t,e):a.$set(i,t)}))}}}})}}function xt(e,n,r){var i,a,o=n[0],s=n.length,u=o.parentNode;if(e)for(i=0,a=e.length;i0&&C.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&C.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=Se(t,e);n&&n.length&&C.addClass(this.$$element,n);var r=Se(e,t);r&&r.length&&C.removeClass(this.$$element,r)},$set:function(t,e,n,a){var o,s=this.$$element[0],u=Zt(s,t),c=Qt(t),l=t;if(u?(this.$$element.prop(t,e),a=u):c&&(this[c]=e,l=c),this[t]=e,a?this.$attr[t]=a:(a=this.$attr[t],a||(this.$attr[t]=a=ct(t,"-"))),o=j(this.$$element),"a"===o&&("href"===t||"xlinkHref"===t)||"img"===o&&"src"===t)this[t]=e=L(e,"src"===t);else if("img"===o&&"srcset"===t&&y(e)){for(var f="",h=fi(e),d=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,p=/\s/.test(h)?d:/(,)/,g=h.split(p),v=Math.floor(g.length/2),x=0;x0?" ":"")+o}return n}function $e(t){t=Zr(t);var e=t.length;if(e<=1)return t;for(;e--;){var n=t[e];(n.nodeType===Si||n.nodeType===wi&&""===n.nodeValue.trim())&&ei.call(t,e,1)}return t}function ke(t,e){if(e&&_(e))return e;if(_(t)){var n=ha.exec(t);if(n)return n[3]}}function Te(){var t={},n=!1;this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){dt(e,"controller"),x(e)?c(t,e):t[e]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function a(t,n,r,i){if(!t||!x(t.$scope))throw e("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);t.$scope[n]=r}return function(e,o,s,u){var l,f,h,d;if(s=s===!0,u&&_(u)&&(d=u),_(e)){if(f=e.match(ha),!f)throw fa("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);if(h=f[1],d=d||f[3],e=t.hasOwnProperty(h)?t[h]:pt(o.$scope,h,!0)||(n?pt(i,h,!0):void 0),!e)throw fa("ctrlreg","The controller with the name '{0}' is not registered.",h);ht(e,h,!0)}if(s){var p=(ci(e)?e[e.length-1]:e).prototype;return l=Object.create(p||null),d&&a(o,d,l,h||e.name),c(function(){var t=r.invoke(e,l,o,h);return t!==l&&(x(t)||$(t))&&(l=t,d&&a(o,d,l,h||e.name)),l},{instance:l,identifier:d})}return l=r.instantiate(e,o,h),d&&a(o,d,l,h||e.name),l}}]}function Ae(){this.$get=["$window",function(t){return Zr(t.document)}]}function Ce(){this.$get=["$document","$rootScope",function(t,e){function n(){i=r.hidden}var r=t[0],i=r&&r.hidden;return t.on("visibilitychange",n),e.$on("$destroy",function(){t.off("visibilitychange",n)}),function(){return i}}]}function Ee(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function Pe(t){return x(t)?S(t)?t.toISOString():W(t):t}function Ie(){this.$get=function(){return function(t){if(!t)return"";var e=[];return i(t,function(t,n){null===t||m(t)||(ci(t)?r(t,function(t){e.push(nt(n)+"="+nt(Pe(t)))}):e.push(nt(n)+"="+nt(Pe(t))))}),e.join("&")}}}function Oe(){this.$get=function(){return function(t){function e(t,a,o){null===t||m(t)||(ci(t)?r(t,function(t,n){e(t,a+"["+(x(t)?n:"")+"]")}):x(t)&&!S(t)?i(t,function(t,n){e(t,a+(o?"":"[")+n+(o?"":"]"))}):n.push(nt(a)+"="+nt(Pe(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function Me(t,e){if(_(t)){var n=t.replace(ya,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf(pa)||Re(n))&&(t=q(n))}}return t}function Re(t){var e=t.match(va);return e&&ma[e[0]].test(t)}function Le(t){function e(t,e){t&&(i[t]=i[t]?i[t]+", "+e:e)}var n,i=vt();return _(t)?r(t.split("\n"),function(t){n=t.indexOf(":"),e(Wr(fi(t.substr(0,n))),fi(t.substr(n+1)))}):x(t)&&r(t,function(t,n){e(Wr(n),fi(t))}),i}function De(t){var e;return function(n){if(e||(e=Le(t)),n){var r=e[Wr(n)];return void 0===r&&(r=null),r}return e}}function je(t,e,n,i){return $(i)?i(t,e,n):(r(i,function(r){t=r(t,e,n)}),t)}function Fe(t){return 200<=t&&t<300}function Ve(){var t=this.defaults={transformResponse:[Me],transformRequest:[function(t){return!x(t)||C(t)||P(t)||E(t)?t:W(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:xt(ga),put:xt(ga),patch:xt(ga)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},n=!1;this.useApplyAsync=function(t){return y(t)?(n=!!t,this):n};var i=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(a,o,s,u,l,f,h,p){function g(n){function i(t,e){for(var n=0,r=e.length;n=-1?n:0,(Fe(n)?w.resolve:w.reject)({data:t,status:n,headers:De(r),config:e,statusText:i})}function h(t){c(t.data,t.status,xt(t.headers()),t.statusText)}function d(){var t=g.pendingRequests.indexOf(e);t!==-1&&g.pendingRequests.splice(t,1)}var v,b,w=f.defer(),$=w.promise,A=e.headers,C="jsonp"===Wr(e.method),E=e.url;if(C?E=p.getTrustedResourceUrl(E):_(E)||(E=p.valueOf(E)),E=S(E,e.paramSerializer(e.params)),C&&(E=k(E,e.jsonpCallbackParam)),g.pendingRequests.push(e),$.then(d,d),!e.cache&&!t.cache||e.cache===!1||"GET"!==e.method&&"JSONP"!==e.method||(v=x(e.cache)?e.cache:x(t.cache)?t.cache:T),v&&(b=v.get(E),y(b)?O(b)?b.then(h,h):ci(b)?c(b[1],b[0],xt(b[2]),b[3]):c(b,200,{},"OK"):v.put(E,$)),m(b)){var P=Fn(e.url)?s()[e.xsrfCookieName||t.xsrfCookieName]:void 0;P&&(A[e.xsrfHeaderName||t.xsrfHeaderName]=P),o(e.method,E,i,u,A,e.timeout,e.withCredentials,e.responseType,a(e.eventHandlers),a(e.uploadEventHandlers))}return $}function S(t,e){return e.length>0&&(t+=(t.indexOf("?")===-1?"?":"&")+e),t}function k(t,e){if(/[&?][^=]+=JSON_CALLBACK/.test(t))throw xa("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',t);var n=new RegExp("[&?]"+e+"=");if(n.test(t))throw xa("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',e,t);return t+=(t.indexOf("?")===-1?"?":"&")+e+"=JSON_CALLBACK"}var T=u("$http");t.paramSerializer=_(t.paramSerializer)?h.get(t.paramSerializer):t.paramSerializer;var A=[];return r(i,function(t){A.unshift(_(t)?h.get(t):h.invoke(t))}),g.pendingRequests=[],v("get","delete","head","jsonp"),b("post","put","patch"),g.defaults=t,g}]}function Ne(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function ze(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(t,e,n,r){return Ge(t,r,t.defer,e,n[0])}]}function Ge(t,e,n,i,a){function o(t,e,n){t=t.replace("JSON_CALLBACK",e);var r=a.createElement("script"),o=null;return r.type="text/javascript",r.src=t,r.async=!0,o=function(t){r.removeEventListener("load",o),r.removeEventListener("error",o),a.body.removeChild(r),r=null;var s=-1,u="unknown";t&&("load"!==t.type||i.wasCalled(e)||(t={type:"error"}),u=t.type,s="error"===t.type?404:200),n&&n(s,u)},r.addEventListener("load",o),r.addEventListener("error",o),a.body.appendChild(r),o}return function(a,s,u,c,l,f,h,d,p,g){function v(){_&&_(),w&&w.abort()}function x(t,e,r,i,a){y($)&&n.cancel($),_=w=null,t(e,r,i,a)}if(s=s||t.url(),"jsonp"===Wr(a))var b=i.createCallback(s),_=o(s,b,function(t,e){var n=200===t&&i.getResponse(b);x(c,t,n,"",e),i.removeCallback(b)});else{var w=e(a,s);w.open(a,s,!0),r(l,function(t,e){y(t)&&w.setRequestHeader(e,t)}),w.onload=function(){var t=w.statusText||"",e="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&&(n=e?200:"file"===jn(s).protocol?404:0),x(c,n,e,w.getAllResponseHeaders(),t)};var S=function(){x(c,-1,null,null,"")};if(w.onerror=S,w.onabort=S,w.ontimeout=S,r(p,function(t,e){w.addEventListener(e,t)}),r(g,function(t,e){w.upload.addEventListener(e,t)}),h&&(w.withCredentials=!0),d)try{w.responseType=d}catch(t){if("json"!==d)throw t}w.send(m(u)?null:u)}if(f>0)var $=n(v,f);else O(f)&&f.then(v)}}function He(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function a(t){return"\\\\\\"+t}function o(n){return n.replace(h,t).replace(d,e)}function s(t,e,n,r){var i=t.$watch(function(t){return i(),r(t)},e,n);return i}function u(a,u,h,d){function p(t){try{return t=I(t),d&&!y(t)?t:mt(t)}catch(t){r(ba.interr(a,t))}}if(!a.length||a.indexOf(t)===-1){var v;if(!u){var x=o(a);v=g(x),v.exp=a,v.expressions=[],v.$$watchDelegate=s}return v}d=!!d;for(var b,_,w,S=0,k=[],T=[],A=a.length,C=[],E=[];S1&&ba.throwNoconcat(a),!u||k.length){var P=function(t){for(var e=0,n=k.length;e4,h=f?H(arguments,4):[],d=e.setInterval,p=e.clearInterval,g=0,v=y(c)&&!c,m=(v?r:n).defer(),x=m.promise;return u=y(u)?u:0,x.$$intervalId=d(function(){v?i.defer(l):t.$evalAsync(l),m.notify(g++),u>0&&g>=u&&(m.resolve(g),p(x.$$intervalId),delete o[x.$$intervalId]),v||t.$apply()},s),o[x.$$intervalId]=m,x}var o={};return a.cancel=function(t){return!!(t&&t.$$intervalId in o)&&(o[t.$$intervalId].promise.catch(d),o[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete o[t.$$intervalId],!0)},a}]}function Be(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=et(e[n]);return e.join("/")}function We(t,e){var n=jn(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=f(n.port)||Sa[n.protocol]||null}function qe(t,e){if(ka.test(t))throw $a("badpath",'Invalid url "{0}".',t);var n="/"!==t.charAt(0);n&&(t="/"+t);var r=jn(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=J(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function Ye(t,e){return t.slice(0,e.length)===e}function Xe(t,e){if(Ye(e,t))return e.substr(t.length)}function Ke(t){var e=t.indexOf("#");return e===-1?t:t.substr(0,e)}function Ze(t){return t.replace(/(#.+)|#$/,"$1")}function Qe(t){return t.substr(0,Ke(t).lastIndexOf("/")+1)}function Je(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function tn(t,e,n){this.$$html5=!0,n=n||"",We(t,this),this.$$parse=function(t){var n=Xe(e,t);if(!_(n))throw $a("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);qe(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=tt(this.$$search),n=this.$$hash?"#"+et(this.$$hash):"";this.$$url=Be(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var a,o,s;return y(a=Xe(t,r))?(o=a,s=n&&y(a=Xe(n,a))?e+(Xe("/",a)||a):t+o):y(a=Xe(e,r))?s=e+a:e===r+"/"&&(s=e),s&&this.$$parse(s),!!s}}function en(t,e,n){We(t,this),this.$$parse=function(r){function i(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return Ye(e,n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}var a,o=Xe(t,r)||Xe(e,r);m(o)||"#"!==o.charAt(0)?this.$$html5?a=o:(a="",m(o)&&(t=r,this.replace())):(a=Xe(n,o),m(a)&&(a=o)),qe(a,this),this.$$path=i(this.$$path,a,t),this.$$compose()},this.$$compose=function(){var e=tt(this.$$search),r=this.$$hash?"#"+et(this.$$hash):"";this.$$url=Be(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:""),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(e,n){return Ke(t)===Ke(e)&&(this.$$parse(e),!0)}}function nn(t,e,n){this.$$html5=!0,en.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var a,o;return t===Ke(r)?a=r:(o=Xe(e,r))?a=t+n+o:e===r+"/"&&(a=e),a&&this.$$parse(a),!!a},this.$$compose=function(){var e=tt(this.$$search),r=this.$$hash?"#"+et(this.$$hash):"";this.$$url=Be(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url,this.$$urlUpdatedByLocation=!0}}function rn(t){return function(){return this[t]}}function an(t,e){return function(n){return m(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function on(){var t="!",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(t){return I(t)?(e.enabled=t,this):x(t)?(I(t.enabled)&&(e.enabled=t.enabled),I(t.requireBase)&&(e.requireBase=t.requireBase),(I(t.rewriteLinks)||_(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,a,o){function s(t,e,n){var i=c.url(),a=c.$$state;try{r.url(t,e,n),c.$$state=r.state()}catch(t){throw c.url(i),c.$$state=a,t}}function u(t,e){n.$broadcast("$locationChangeSuccess",c.absUrl(),t,c.$$state,e)}var c,l,f,h=r.baseHref(),d=r.url();if(e.enabled){if(!h&&e.requireBase)throw $a("nobase","$location in HTML5 mode requires a tag to be present!");f=Je(d)+(h||"/"),l=i.history?tn:nn}else f=Ke(d),l=en;var p=Qe(f);c=new l(f,p,"#"+t),c.$$parseLinkUrl(d,d),c.$$state=r.state();var g=/^\s*(javascript|mailto):/i;a.on("click",function(t){var i=e.rewriteLinks;if(i&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!==t.which&&2!==t.button){for(var s=Zr(t.target);"a"!==j(s[0]);)if(s[0]===a[0]||!(s=s.parent())[0])return;if(!_(i)||!m(s.attr(i))){var u=s.prop("href"),l=s.attr("href")||s.attr("xlink:href");x(u)&&"[object SVGAnimatedString]"===u.toString()&&(u=jn(u.animVal).href),g.test(u)||!u||s.attr("target")||t.isDefaultPrevented()||c.$$parseLinkUrl(u,l)&&(t.preventDefault(),c.absUrl()!==r.url()&&(n.$apply(),o.angular["ff-684208-preventDefault"]=!0))}}}),Ze(c.absUrl())!==Ze(d)&&r.url(c.absUrl(),!0);var v=!0;return r.onUrlChange(function(t,e){return Ye(t,p)?(n.$evalAsync(function(){var r,i=c.absUrl(),a=c.$$state;t=Ze(t),c.$$parse(t),c.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,a).defaultPrevented,c.absUrl()===t&&(r?(c.$$parse(i),c.$$state=a,s(i,!1,a)):(v=!1,u(i,a)))}),void(n.$$phase||n.$digest())):void(o.location.href=t)}),n.$watch(function(){if(v||c.$$urlUpdatedByLocation){c.$$urlUpdatedByLocation=!1;var t=Ze(r.url()),e=Ze(c.absUrl()),a=r.state(),o=c.$$replace,l=t!==e||c.$$html5&&i.history&&a!==c.$$state;(v||l)&&(v=!1,n.$evalAsync(function(){var e=c.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,c.$$state,a).defaultPrevented;c.absUrl()===e&&(r?(c.$$parse(t),c.$$state=a):(l&&s(e,o,a===c.$$state?null:c.$$state),u(t,a)))}))}c.$$replace=!1}),c}]}function sn(){var t=!0,e=this;this.debugEnabled=function(e){return y(e)?(t=e,this):t},this.$get=["$window",function(n){function i(t){return t instanceof Error&&(t.stack?t=t.message&&t.stack.indexOf(t.message)===-1?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function a(t){var e=n.console||{},a=e[t]||e.log||d,o=!1;try{o=!!a.apply}catch(t){}return o?function(){var t=[];return r(arguments,function(e){t.push(i(e))}),a.apply(e,t)}:function(t,e){ +a(t,null==e?"":e)}}return{log:a("log"),info:a("info"),warn:a("warn"),error:a("error"),debug:function(){var n=a("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function un(t){return t+""}function cn(t,e){return"undefined"!=typeof t?t:e}function ln(t,e){return"undefined"==typeof t?e:"undefined"==typeof e?t:t+e}function fn(t,e){var n=t(e);return!n.$stateful}function hn(t,e){var n,i,a;switch(t.type){case Oa.Program:n=!0,r(t.body,function(t){hn(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case Oa.Literal:t.constant=!0,t.toWatch=[];break;case Oa.UnaryExpression:hn(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case Oa.BinaryExpression:hn(t.left,e),hn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case Oa.LogicalExpression:hn(t.left,e),hn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case Oa.ConditionalExpression:hn(t.test,e),hn(t.alternate,e),hn(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case Oa.Identifier:t.constant=!1,t.toWatch=[t];break;case Oa.MemberExpression:hn(t.object,e),t.computed&&hn(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case Oa.CallExpression:a=!!t.filter&&fn(e,t.callee.name),n=a,i=[],r(t.arguments,function(t){hn(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=a?i:[t];break;case Oa.AssignmentExpression:hn(t.left,e),hn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case Oa.ArrayExpression:n=!0,i=[],r(t.elements,function(t){hn(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=i;break;case Oa.ObjectExpression:n=!0,i=[],r(t.properties,function(t){hn(t.value,e),n=n&&t.value.constant&&!t.computed,t.value.constant||i.push.apply(i,t.value.toWatch),t.computed&&(hn(t.key,e),t.key.constant||i.push.apply(i,t.key.toWatch))}),t.constant=n,t.toWatch=i;break;case Oa.ThisExpression:t.constant=!1,t.toWatch=[];break;case Oa.LocalsExpression:t.constant=!1,t.toWatch=[]}}function dn(t){if(1===t.length){var e=t[0].expression,n=e.toWatch;return 1!==n.length?n:n[0]!==e?n:void 0}}function pn(t){return t.type===Oa.Identifier||t.type===Oa.MemberExpression}function gn(t){if(1===t.body.length&&pn(t.body[0].expression))return{type:Oa.AssignmentExpression,left:t.body[0].expression,right:{type:Oa.NGValueParameter},operator:"="}}function vn(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===Oa.Literal||t.body[0].expression.type===Oa.ArrayExpression||t.body[0].expression.type===Oa.ObjectExpression)}function mn(t){return t.constant}function yn(t,e){this.astBuilder=t,this.$filter=e}function xn(t,e){this.astBuilder=t,this.$filter=e}function bn(t){return $(t.valueOf)?t.valueOf():Ca.call(t)}function _n(){var t,e,n=vt(),i={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(t,e){i[t]=e},this.setIdentifierFns=function(n,r){return t=n,e=r,this},this.$get=["$filter",function(a){function o(t,e){var r,i,o;switch(typeof t){case"string":if(t=t.trim(),o=t,r=n[o],!r){":"===t.charAt(0)&&":"===t.charAt(1)&&(i=!0,t=t.substring(2));var s=new Ia(g),p=new Ma(s,a,g);r=p.parse(t),r.constant?r.$$watchDelegate=f:i?r.$$watchDelegate=r.literal?l:c:r.inputs&&(r.$$watchDelegate=u),n[o]=r}return h(r,e);case"function":return h(t,e);default:return h(d,e)}}function s(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&!n&&(t=bn(t),"object"==typeof t))&&(t===e||t!==t&&e!==e)}function u(t,e,n,r,i){var a,o=r.inputs;if(1===o.length){var u=s;return o=o[0],t.$watch(function(t){var e=o(t);return s(e,u,r.literal)||(a=r(t,void 0,void 0,[e]),u=e&&bn(e)),a},e,n,i)}for(var c=[],l=[],f=0,h=o.length;f0&&f(this.$$state),r},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then(function(e){return b(e,E,t)},function(e){return b(e,y,t)},e)}});var E=_;return k.prototype=s.prototype,k.defer=a,k.reject=y,k.when=_,k.resolve=E,k.all=w,k.race=S,k}function kn(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,a=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return a.supported=i,a}]}function Tn(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=o(),this.$$ChildScope=null}return e.prototype=t,e}var i=10,a=e("$rootScope"),s=null,u=null;this.digestTtl=function(t){return arguments.length&&(i=t),i},this.$get=["$exceptionHandler","$parse","$browser",function(e,c,l){function f(t){t.currentScope.$$destroyed=!0}function h(t){9===Kr&&(t.$$childHead&&h(t.$$childHead),t.$$nextSibling&&h(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function p(){this.$id=o(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function g(t){if(k.$$phase)throw a("inprog","{0} already in progress",k.$$phase);k.$$phase=t}function v(){k.$$phase=null}function y(t,e){do t.$$watchersCount+=e;while(t=t.$parent)}function b(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function _(){}function w(){for(;C.length;)try{C.shift()()}catch(t){e(t)}u=null}function S(){null===u&&(u=l.defer(function(){k.$apply(w)}))}p.prototype={constructor:p,$new:function(e,n){var r;return n=n||this,e?(r=new p,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(e||n!==this)&&r.$on("$destroy",f),r},$watch:function(t,e,n,r){var i=c(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var a=this,o=a.$$watchers,u={fn:e,last:_,get:i,exp:r||t,eq:!!n};return s=null,$(e)||(u.fn=d),o||(o=a.$$watchers=[],o.$$digestWatchIndex=-1),o.unshift(u),o.$$digestWatchIndex++,y(this,1),function(){var t=V(o,u);t>=0&&(y(a,-1),te){f++;for(r in o)Br.call(a,r)||(v--,delete o[r])}}else o!==a&&(o=a,f++);return f}}function i(){if(g?(g=!1,e(a,a,u)):e(a,s,u),l)if(x(a))if(n(a)){s=new Array(a.length);for(var t=0;t1,f=0,h=c(t,r),d=[],p={},g=!0,v=0;return this.$watch(h,i)},$digest:function(){var t,n,r,o,c,f,h,d,p,m,y,x=i,b=this,S=[];g("$digest"),l.$$checkUrlChange(),this===k&&null!==u&&(l.defer.cancel(u),w()),s=null;do{h=!1,p=b;for(var C=0;C-1)throw Ra("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=hi(t).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+t+"$")}if(k(t))return new RegExp("^"+t.source+"$");throw Ra("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Pn(t){var e=[];return y(t)&&r(t,function(t){e.push(En(t))}),e}function In(){this.SCE_CONTEXTS=La;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=Pn(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=Pn(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?Fn(e):!!t.exec(e.href)}function i(n){var i,a,o=jn(n.toString()),s=!1;for(i=0,a=t.length;i to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var i=xt(La);i.isEnabled=function(){return t},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,t||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=p),i.parseAs=function(t,n){var r=e(n);return r.literal&&r.constant?r:e(n,function(e){return i.getTrusted(t,e)})};var a=i.parseAs,o=i.getTrusted,s=i.trustAs;return r(La,function(t,e){var n=Wr(e);i[Cn("parse_as_"+n)]=function(e){return a(t,e)},i[Cn("get_trusted_"+n)]=function(e){return o(t,e)},i[Cn("trust_as_"+n)]=function(e){return s(t,e)}}),i}]}function Mn(){this.$get=["$window","$document",function(t,e){var n={},r=t.nw&&t.nw.process,i=!r&&t.chrome&&(t.chrome.app&&t.chrome.app.runtime||!t.chrome.app&&t.chrome.runtime&&t.chrome.runtime.id),a=!i&&t.history&&t.history.pushState,o=f((/android (\d+)/.exec(Wr((t.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((t.navigator||{}).userAgent),u=e[0]||{},c=u.body&&u.body.style,l=!1,h=!1;return c&&(l=!!("transition"in c||"webkitTransition"in c),h=!!("animation"in c||"webkitAnimation"in c)),{history:!(!a||o<4||s),hasEvent:function(t){if("input"===t&&Kr)return!1;if(m(n[t])){var e=u.createElement("div");n[t]="on"+t in e}return n[t]},csp:di(),transitions:l,animations:h,android:o}}]}function Rn(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(e,n,r,i,a){function o(s,u){function l(t){return u||(t=ja("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,t.status,t.statusText),e(t)),i.reject(t)}o.totalPendingRequests++,_(s)&&!m(n.get(s))||(s=a.getTrustedResourceUrl(s));var f=r.defaults&&r.defaults.transformResponse;return ci(f)?f=f.filter(function(t){return t!==Me}):f===Me&&(f=null),r.get(s,c({cache:n,transformResponse:f},t)).finally(function(){o.totalPendingRequests--}).then(function(t){return n.put(s,t.data),t.data},l)}return o.totalPendingRequests=0,o}]}function Ln(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var i={};return i.findBindings=function(t,e,n){var i=t.getElementsByClassName("ng-binding"),a=[];return r(i,function(t){var i=oi.element(t).data("$binding");i&&r(i,function(r){if(n){var i=new RegExp("(^|\\s)"+hi(e)+"(\\s|\\||$)");i.test(r)&&a.push(t)}else r.indexOf(e)!==-1&&a.push(t)})}),a},i.findModels=function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i0&&(c=n(o.substring(0,u)),m(i[c])&&(i[c]=n(o.substring(u+1))));return i}}function zn(){this.$get=Nn}function Gn(t){function e(i,a){if(x(i)){var o={};return r(i,function(t,n){o[n]=e(n,t)}),o}return t.factory(i+n,a)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",qn),e("date",ur),e("filter",Hn),e("json",cr),e("limitTo",lr),e("lowercase",Wa),e("number",Yn),e("orderBy",hr),e("uppercase",qa)}function Hn(){return function(t,r,i,a){if(!n(t)){if(null==t)return t;throw e("filter")("notarray","Expected array but received: {0}",t)}a=a||"$";var o,s,u=Wn(r);switch(u){case"function":o=r;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":o=Un(r,i,a,s);break;default:return t}return Array.prototype.filter.call(t,o)}}function Un(t,e,n,r){var i,a=x(t)&&n in t;return e===!0?e=z:$(e)||(e=function(t,e){return!m(t)&&(null===t||null===e?t===e:!(x(e)||x(t)&&!v(t))&&(t=Wr(""+t),e=Wr(""+e),t.indexOf(e)!==-1))}),i=function(i){return a&&!x(i)?Bn(i,t[n],e,n,!1):Bn(i,t,e,n,r)}}function Bn(t,e,n,r,i,a){var o=Wn(t),s=Wn(e);if("string"===s&&"!"===e.charAt(0))return!Bn(t,e.substring(1),n,r,i);if(ci(t))return t.some(function(t){return Bn(t,e,n,r,i)});switch(o){case"object":var u;if(i){for(u in t)if("$"!==u.charAt(0)&&Bn(t[u],e,n,r,!0))return!0;return!a&&Bn(t,e,n,r,!1)}if("object"===s){for(u in e){var c=e[u];if(!$(c)&&!m(c)){var l=u===r,f=l?t:t[u];if(!Bn(f,c,n,r,l,l))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function Wn(t){return null===t?"null":typeof t}function qn(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return m(n)&&(n=e.CURRENCY_SYM),m(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Zn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Yn(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Zn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Xn(t){var e,n,r,i,a,o=0;for((n=t.indexOf(za))>-1&&(t=t.replace(za,"")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)===Ga;r++);if(r===(a=t.length))e=[0],n=1;else{for(a--;t.charAt(a)===Ga;)a--;for(n-=r,e=[],i=0;r<=a;r++,i++)e[i]=+t.charAt(r)}return n>Na&&(e=e.splice(0,Na-1),o=n-1,n=1),{d:e,e:o,i:n}}function Kn(t,e,n,r){var i=t.d,a=i.length-t.i;e=m(e)?Math.min(Math.max(n,a),r):+e;var o=e+t.i,s=i[o];if(o>0){i.splice(Math.max(t.i,o));for(var u=o;u=5)if(o-1<0){for(var l=0;l>o;l--)i.unshift(0),t.i++;i.unshift(1),t.i++}else i[o-1]++;for(;a0?d=l.splice(f,l.length):(d=l,l=[0]);var p=[];for(l.length>=e.lgSize&&p.unshift(l.splice(-e.lgSize,l.length).join(""));l.length>e.gSize;)p.unshift(l.splice(-e.gSize,l.length).join(""));l.length&&p.unshift(l.join("")),c=p.join(n),d.length&&(c+=r+d.join("")),h&&(c+="e+"+h)}return t<0&&!s?e.negPre+c+e.negSuf:e.posPre+c+e.posSuf}function Qn(t,e,n,r){var i="";for((t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,i="-")),t=""+t;t.length0||o>-n)&&(o+=n),0===o&&n===-12&&(o=12),Qn(o,e,r,i)}}function tr(t,e,n){return function(r,i){var a=r["get"+t](),o=(n?"STANDALONE":"")+(e?"SHORT":""),s=qr(o+t);return i[s][a]}}function er(t,e,n){var r=-1*n,i=r>=0?"+":"";return i+=Qn(Math[r>0?"floor":"ceil"](r/60),2)+Qn(Math.abs(r%60),2)}function nr(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function rr(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function ir(t){return function(e){var n=nr(e.getFullYear()),r=rr(e),i=+r-+n,a=1+Math.round(i/6048e5);return Qn(a,t)}}function ar(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function or(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function sr(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function ur(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,a=0,o=e[8]?r.setUTCFullYear:r.setFullYear,s=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=f(e[9]+e[10]),a=f(e[9]+e[11])),o.call(r,f(e[1]),f(e[2])-1,f(e[3]));var u=f(e[4]||0)-i,c=f(e[5]||0)-a,l=f(e[6]||0),h=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(r,u,c,l,h),r}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,a){var o,s,u="",c=[];if(i=i||"mediumDate",i=t.DATETIME_FORMATS[i]||i,_(n)&&(n=Ba.test(n)?f(n):e(n)),w(n)&&(n=new Date(n)),!S(n)||!isFinite(n.getTime()))return n;for(;i;)s=Ua.exec(i),s?(c=G(c,s,1),i=c.pop()):(c.push(i),i=null);var l=n.getTimezoneOffset();return a&&(l=Y(a,l),n=K(n,a,!0)),r(c,function(e){o=Ha[e],u+=o?o(n,t.DATETIME_FORMATS,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function cr(){return function(t,e){return m(e)&&(e=2),W(t,e)}}function lr(){return function(t,e,r){return e=Math.abs(Number(e))===1/0?Number(e):f(e),ui(e)?t:(w(t)&&(t=t.toString()),n(t)?(r=!r||isNaN(r)?0:f(r),r=r<0?Math.max(0,t.length+r):r,e>=0?fr(t,r,r+e):0===r?fr(t,e,t.length):fr(t,Math.max(0,r+e),r)):t)}}function fr(t,e,n){return _(t)?t.slice(e,n):ti.call(t,e,n)}function hr(t){function r(e){return e.map(function(e){var n=1,r=p;if($(e))r=e;else if(_(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(r=t(e),r.constant))){var i=r();r=function(t){return t[i]}}return{get:r,descending:n}})}function i(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function a(t){return $(t.valueOf)&&(t=t.valueOf(),i(t))?t:v(t)&&(t=t.toString(),i(t))?t:t}function o(t,e){var n=typeof t;return null===t?(n="string",t="null"):"object"===n&&(t=a(t)),{value:t,type:n,index:e}}function s(t,e){var n=0,r=t.type,i=e.type;if(r===i){var a=t.value,o=e.value;"string"===r?(a=a.toLowerCase(),o=o.toLowerCase()):"object"===r&&(x(a)&&(a=t.index),x(o)&&(o=e.index)),a!==o&&(n=a=g},o.$observe("min",function(t){g=h(t),s.$validate()})}if(y(o.max)||o.ngMax){var v;s.$validators.max=function(t){return!f(t)||m(v)||n(t)<=v},o.$observe("max",function(t){v=h(t),s.$validate()})}}}function kr(t,e,n,r){var i=e[0],a=r.$$hasNativeValidators=x(i.validity);a&&r.$parsers.push(function(t){var n=e.prop(Ur)||{};return n.badInput||n.typeMismatch?void 0:t})}function Tr(t){t.$$parserName="number",t.$parsers.push(function(e){return t.$isEmpty(e)?null:ao.test(e)?parseFloat(e):void 0}),t.$formatters.push(function(e){if(!t.$isEmpty(e)){if(!w(e))throw Go("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e})}function Ar(t){return y(t)&&!w(t)&&(t=parseFloat(t)),ui(t)?void 0:t}function Cr(t){return(0|t)===t}function Er(t){var e=t.toString(),n=e.indexOf(".");if(n===-1){if(-1=o},n.$observe("min",function(t){o=Ar(t),r.$validate()})),(y(n.max)||n.ngMax)&&(r.$validators.max=function(t){return r.$isEmpty(t)||m(s)||t<=s},n.$observe("max",function(t){s=Ar(t),r.$validate()})),y(n.step)||n.ngStep){var u;r.$validators.step=function(t,e){return r.$isEmpty(e)||m(u)||Pr(e,o||0,u)},n.$observe("step",function(t){u=Ar(t),r.$validate()})}}function Or(t,e,n,r,i,a){function o(t,r){e.attr(t,n[t]),n.$observe(t,r)}function s(t){if(f=Ar(t),!ui(r.$modelValue))if(l){var n=e.val();f>n&&(n=f,e.val(n)),r.$setViewValue(n)}else r.$validate()}function u(t){if(h=Ar(t),!ui(r.$modelValue))if(l){var n=e.val();h=f},o("min",s)),v&&(r.$validators.max=l?function(){return!0}:function(t,e){return r.$isEmpty(e)||m(h)||e<=h},o("max",u)),x&&(r.$validators.step=l?function(){return!p.stepMismatch}:function(t,e){return r.$isEmpty(e)||m(d)||Pr(e,f||0,d)},o("step",c))}function Mr(t,e,n,r,i,a){_r(t,e,n,r,i,a),xr(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||ro.test(n)}}function Rr(t,e,n,r,i,a){_r(t,e,n,r,i,a),xr(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||io.test(n)}}function Lr(t,e,n,r){var i=!n.ngTrim||"false"!==fi(n.ngTrim);m(n.name)&&e.attr("name",o());var a=function(t){var a;e[0].checked&&(a=n.value,i&&(a=fi(a)),r.$setViewValue(a,t&&t.type))};e.on("click",a),r.$render=function(){var t=n.value;i&&(t=fi(t)),e[0].checked=t===r.$viewValue},n.$observe("value",r.$render)}function Dr(t,e,n,r,i){var a;if(y(r)){if(a=t(r),!a.constant)throw Go("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return a(e)}return i}function jr(t,e,n,r,i,a,o,s){var u=Dr(s,t,"ngTrueValue",n.ngTrueValue,!0),c=Dr(s,t,"ngFalseValue",n.ngFalseValue,!1),l=function(t){r.$setViewValue(e[0].checked,t&&t.type)};e.on("click",l),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return t===!1},r.$formatters.push(function(t){return z(t,u)}),r.$parsers.push(function(t){return t?u:c})}function Fr(t,e){function n(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;var n=[];t:for(var r=0;r0||k[t])&&(k[t]=(k[t]||0)+e,k[t]===+(e>0)&&n.push(t))}),n.join(" ")}function v(t){t===e?h(x):d(x),T=t}function m(t){var e=a(t);e!==x&&y(e)}function y(t){T===e&&p(x,t),x=t}var x,b=f[t].trim(),_=":"===b.charAt(0)&&":"===b.charAt(1),w=_?o:a,S=u(b,w),$=_?m:y,k=l.data("$classCounts"),T=!0;k||(k=vt(),l.data("$classCounts",k)),"ngClass"!==t&&(s||(s=u("$index",function(t){return 1&t})),c.$watch(s,v)),c.$watch(S,$,_)}}}]}function Vr(t,e,n,r,i,a,o,s,u){this.$viewValue=Number.NaN,this.$modelValue=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=u(n.name||"",!1)(t),this.$$parentForm=Ka,this.$options=Ho,this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$currentValidationRunId=0,this.$$scope=t,this.$$attr=n,this.$$element=r,this.$$animate=a,this.$$timeout=o,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=e,vr(this),Nr(this)}function Nr(t){t.$$scope.$watch(function(){var e=t.$$ngModelGet(t.$$scope);if(e!==t.$modelValue&&(t.$modelValue===t.$modelValue||e===e)){t.$modelValue=t.$$rawModelValue=e,t.$$parserValid=void 0;for(var n=t.$formatters,r=n.length,i=e;r--;)i=n[r](i);t.$viewValue!==i&&(t.$$updateEmptyClasses(i),t.$viewValue=t.$$lastCommittedViewValue=i,t.$render(),t.$$runValidators(t.$modelValue,t.$viewValue,d))}return e})}function zr(t){this.$$options=t}function Gr(t,e){r(e,function(e,n){y(t[n])||(t[n]=e)})}var Hr=/^\/(.+)\/([a-z]*)$/,Ur="validity",Br=Object.prototype.hasOwnProperty,Wr=function(t){return _(t)?t.toLowerCase():t},qr=function(t){return _(t)?t.toUpperCase():t},Yr=function(t){return _(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},Xr=function(t){return _(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)&-33)}):t};"i"!=="I".toLowerCase()&&(Wr=Yr,qr=Xr);var Kr,Zr,Qr,Jr,ti=[].slice,ei=[].splice,ni=[].push,ri=Object.prototype.toString,ii=Object.getPrototypeOf,ai=e("ng"),oi=t.angular||(t.angular={}),si=0;Kr=t.document.documentMode;var ui=Number.isNaN||function(t){return t!==t};d.$inject=[],p.$inject=[];var ci=Array.isArray,li=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,fi=function(t){return _(t)?t.trim():t},hi=function(t){return t.replace(/([-()[\]{}+?*.$^|,:#(?:<\/\1>|)$/,Ri=/<|&#?\w+;/,Li=/<([\w:-]+)/,Di=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ji={option:[1,'"],thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};ji.optgroup=ji.option,ji.tbody=ji.tfoot=ji.colgroup=ji.caption=ji.thead,ji.th=ji.td;var Fi=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},Vi=Rt.prototype={ready:Kt,toString:function(){var t=[];return r(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return Zr(t>=0?this[t]:this[this.length+t])},length:0,push:ni,sort:[].sort,splice:[].splice},Ni={};r("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){Ni[Wr(t)]=t});var zi={};r("input,select,option,textarea,button,form,details".split(","),function(t){zi[t]=!0});var Gi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};r({data:Nt,removeData:Ft,hasData:Et,cleanData:Pt},function(t,e){Rt[e]=t}),r({data:Nt,inheritedData:Wt,scope:function(t){return Zr.data(t,"$scope")||Wt(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return Zr.data(t,"$isolateScope")||Zr.data(t,"$isolateScopeNoTemplate")},controller:Bt,injector:function(t){return Wt(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:zt,css:function(t,e,n){return e=$t(e),y(n)?void(t.style[e]=n):t.style[e]},attr:function(t,e,n){var r,i=t.nodeType;if(i!==wi&&i!==_i&&i!==Si&&t.getAttribute){var a=Wr(e),o=Ni[a];return y(n)?void(null===n||n===!1&&o?t.removeAttribute(e):t.setAttribute(e,o?a:n)):(r=t.getAttribute(e),o&&null!==r&&(r=a),null===r?void 0:r)}},prop:function(t,e,n){return y(n)?void(t[e]=n):t[e]},text:function(){function t(t,e){if(m(e)){var n=t.nodeType;return n===bi||n===wi?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(m(e)){if(t.multiple&&"select"===j(t)){var n=[];return r(t.options,function(t){t.selected&&n.push(t.value||t.text)}),n}return t.value}t.value=e},html:function(t,e){return m(e)?t.innerHTML:(Dt(t,!0),void(t.innerHTML=e))},empty:qt},function(t,e){Rt.prototype[e]=function(e,n){var r,i,a=this.length;if(t!==qt&&m(2===t.length&&t!==zt&&t!==Bt?e:n)){if(x(e)){for(r=0;r=0?e.split(" "):[e],u=s.length,c=function(e,r,i){var s=a[e];s||(s=a[e]=[],s.specialHandlerWrapper=r,"$destroy"===e||i||t.addEventListener(e,o)),s.push(n)};u--;)e=s[u],Ii[e]?(c(Ii[e],ee),c(e,void 0,!0)):c(e)}},off:jt,one:function(t,e,n){t=Zr(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,i=t.parentNode;Dt(t),r(new Rt(e),function(e){n?i.insertBefore(e,n.nextSibling):i.replaceChild(e,t),n=e})},children:function(t){var e=[];return r(t.childNodes,function(t){t.nodeType===bi&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===bi||n===ki){e=new Rt(e);for(var r=0,i=e.length;r/,qi=/^[^(]*\(\s*([^)]*)\)/m,Yi=/,/,Xi=/^\s*(_?)(\S+?)\1\s*$/,Ki=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Zi=e("$injector");ce.$$annotate=ue;var Qi=e("$animate"),Ji=1,ta="ng-animate",ea=function(){this.$get=d},na=function(){var t=new Ui,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function a(t,e,n){var i=!1;return e&&(e=_(e)?e.split(" "):ci(e)?e:[],r(e,function(e){e&&(i=!0,t[e]=n)})),i}function o(){r(e,function(e){var n=t.get(e);if(n){var i=de(e.attr("class")),a="",o="";r(n,function(t,e){var n=!!i[e];t!==n&&(t?a+=(a.length?" ":"")+e:o+=(o.length?" ":"")+e)}),r(e,function(t){a&&Ht(t,a),o&&Gt(t,o)}),t.delete(e)}}),e.length=0}function s(n,r,s){var u=t.get(n)||{},c=a(u,r,!0),l=a(u,s,!1);(c||l)&&(t.set(n,u),e.push(n),1===e.length&&i.$$postDigest(o))}return{enabled:d,on:d,off:d,pin:d,push:function(t,e,r,i){i&&i(),r=r||{},r.from&&t.css(r.from),r.to&&t.css(r.to),(r.addClass||r.removeClass)&&s(t,r.addClass,r.removeClass);var a=new n;return a.complete(),a}}}]},ra=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Qi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null,this.$$classNameFilter)){var e=new RegExp("(\\s+|\\/)"+ta+"(\\s+|\\/)");if(e.test(this.$$classNameFilter.toString()))throw Qi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',ta)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=he(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.end&&t.end()},enter:function(n,r,i,a){return r=r&&Zr(r),i=i&&Zr(i),r=r||i.parent(),e(n,r,i),t.push(n,"enter",pe(a))},move:function(n,r,i,a){return r=r&&Zr(r),i=i&&Zr(i),r=r||i.parent(),e(n,r,i),t.push(n,"move",pe(a))},leave:function(e,n){return t.push(e,"leave",pe(n),function(){e.remove()})},addClass:function(e,n,r){return r=pe(r),r.addClass=fe(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return r=pe(r),r.removeClass=fe(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return i=pe(i),i.addClass=fe(i.addClass,n),i.removeClass=fe(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,a){return a=pe(a),a.from=a.from?c(a.from,n):n,a.to=a.to?c(a.to,r):r,i=i||"ng-inline-animate",a.tempClasses=fe(a.tempClasses,i),t.push(e,"animate",a)}}}]}],ia=function(){this.$get=["$$rAF",function(t){function e(e){n.push(e),n.length>1||t(function(){for(var t=0;t <= >= && || ! = |".split(" "),function(t){Ea[t]=!0});var Pa={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Ia=function(t){this.options=t};Ia.prototype={constructor:Ia,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=y(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw Aa("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber:function(){for(var t="",e=this.index;this.index0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:Oa.Program,body:t}},expressionStatement:function(){return{type:Oa.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();if(this.expect("=")){if(!pn(t))throw Aa("lval","Trying to assign a value to a non l-value");t={type:Oa.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:Oa.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:Oa.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:Oa.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:Oa.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:Oa.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:Oa.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:Oa.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:Oa.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=N(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:Oa.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());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:Oa.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:Oa.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:Oa.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:Oa.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do t.push(this.filterChain());while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:Oa.Identifier,name:t.text}},constant:function(){return{type:Oa.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:Oa.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:Oa.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:Oa.ObjectExpression,properties:e}},throwError:function(t,e){throw Aa("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw Aa("ueoe","Unexpected end of expression: {0}",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 Aa("ueoe","Unexpected end of expression: {0}",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 a=this.tokens[t],o=a.text;if(o===e||o===n||o===r||o===i||!e&&!n&&!r&&!i)return a}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:Oa.ThisExpression},$locals:{type:Oa.LocalsExpression}}},yn.prototype={compile:function(t){var e=this,n=this.astBuilder.ast(t);this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},hn(n,e.$filter);var i,a="";if(this.stage="assign",i=gn(n)){this.state.computing="assign";var o=this.nextId();this.recurse(i,o),this.return_(o),a="fn.assign="+this.generateFunction("assign","s,v,l")}var s=dn(n.body);e.stage="inputs",r(s,function(t,n){var r="fn"+n;e.state[r]={vars:[],body:[],own:{}},e.state.computing=r;var i=e.nextId();e.recurse(t,i),e.return_(i),e.state.inputs.push(r),t.watchId=n}),this.state.computing="fn",this.stage="main",this.recurse(n);var u='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",c=new Function("$filter","getStringValue","ifDefined","plus",u)(this.$filter,un,cn,ln);return this.state=this.stage=void 0,c.literal=vn(n),c.constant=mn(n),c},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return r(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return r(this.state.filters,function(n,r){t.push(n+"=$filter("+e.escape(r)+")")}),t.length?"var "+t.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(t,e,n,i,a,o){var s,u,c,l,f,h=this;if(i=i||d,!o&&y(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,i,a,!0));switch(t.type){case Oa.Program:r(t.body,function(e,n){h.recurse(e.expression,void 0,void 0,function(t){u=t}),n!==t.body.length-1?h.current().body.push(u,";"):h.return_(u)});break;case Oa.Literal:l=this.escape(t.value),this.assign(e,l),i(e||l);break;case Oa.UnaryExpression:this.recurse(t.argument,void 0,void 0,function(t){u=t}),l=t.operator+"("+this.ifDefined(u,0)+")",this.assign(e,l),i(l);break;case Oa.BinaryExpression:this.recurse(t.left,void 0,void 0,function(t){s=t}),this.recurse(t.right,void 0,void 0,function(t){u=t}),l="+"===t.operator?this.plus(s,u):"-"===t.operator?this.ifDefined(s,0)+t.operator+this.ifDefined(u,0):"("+s+")"+t.operator+"("+u+")",this.assign(e,l),i(l);break;case Oa.LogicalExpression:e=e||this.nextId(),h.recurse(t.left,e),h.if_("&&"===t.operator?e:h.not(e),h.lazyRecurse(t.right,e)),i(e);break;case Oa.ConditionalExpression:e=e||this.nextId(),h.recurse(t.test,e),h.if_(e,h.lazyRecurse(t.alternate,e),h.lazyRecurse(t.consequent,e)),i(e);break;case Oa.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",t.name)),function(){h.if_("inputs"===h.stage||"s",function(){a&&1!==a&&h.if_(h.isNull(h.nonComputedMember("s",t.name)),h.lazyAssign(h.nonComputedMember("s",t.name),"{}")),h.assign(e,h.nonComputedMember("s",t.name))})},e&&h.lazyAssign(e,h.nonComputedMember("l",t.name))),i(e);break;case Oa.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),h.recurse(t.object,s,void 0,function(){h.if_(h.notNull(s),function(){t.computed?(u=h.nextId(),h.recurse(t.property,u),h.getStringValue(u),a&&1!==a&&h.if_(h.not(h.computedMember(s,u)),h.lazyAssign(h.computedMember(s,u),"{}")),l=h.computedMember(s,u),h.assign(e,l),n&&(n.computed=!0,n.name=u)):(a&&1!==a&&h.if_(h.isNull(h.nonComputedMember(s,t.property.name)),h.lazyAssign(h.nonComputedMember(s,t.property.name),"{}")),l=h.nonComputedMember(s,t.property.name),h.assign(e,l),n&&(n.computed=!1,n.name=t.property.name))},function(){h.assign(e,"undefined")}),i(e)},!!a);break;case Oa.CallExpression:e=e||this.nextId(),t.filter?(u=h.filter(t.callee.name),c=[],r(t.arguments,function(t){var e=h.nextId();h.recurse(t,e),c.push(e)}),l=u+"("+c.join(",")+")",h.assign(e,l),i(e)):(u=h.nextId(),s={},c=[],h.recurse(t.callee,u,s,function(){h.if_(h.notNull(u),function(){r(t.arguments,function(e){h.recurse(e,t.constant?void 0:h.nextId(),void 0,function(t){c.push(t)})}),l=s.name?h.member(s.context,s.name,s.computed)+"("+c.join(",")+")":u+"("+c.join(",")+")",h.assign(e,l)},function(){h.assign(e,"undefined")}),i(e)}));break;case Oa.AssignmentExpression:u=this.nextId(),s={},this.recurse(t.left,void 0,s,function(){h.if_(h.notNull(s.context),function(){h.recurse(t.right,u),l=h.member(s.context,s.name,s.computed)+t.operator+u,h.assign(e,l),i(e||l)})},1);break;case Oa.ArrayExpression:c=[],r(t.elements,function(e){h.recurse(e,t.constant?void 0:h.nextId(),void 0,function(t){c.push(t)})}),l="["+c.join(",")+"]",this.assign(e,l),i(e||l);break;case Oa.ObjectExpression:c=[],f=!1,r(t.properties,function(t){t.computed&&(f=!0)}),f?(e=e||this.nextId(),this.assign(e,"{}"),r(t.properties,function(t){t.computed?(s=h.nextId(),h.recurse(t.key,s)):s=t.key.type===Oa.Identifier?t.key.name:""+t.key.value,u=h.nextId(),h.recurse(t.value,u),h.assign(h.member(e,s,t.computed),u)})):(r(t.properties,function(e){h.recurse(e.value,t.constant?void 0:h.nextId(),void 0,function(t){c.push(h.escape(e.key.type===Oa.Identifier?e.key.name:""+e.key.value)+":"+t)})}),l="{"+c.join(",")+"}",this.assign(e,l)),i(e||l);break;case Oa.ThisExpression:this.assign(e,"s"),i(e||"s");break;case Oa.LocalsExpression:this.assign(e,"l"),i(e||"l");break;case Oa.NGValueParameter:this.assign(e,"v"),i(e||"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(t===!0)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+")"},isNull:function(t){return t+"==null"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){var n=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/,r=/[^$_a-zA-Z0-9]/g;return n.test(e)?t+"."+e:t+'["'+e.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},lazyRecurse:function(t,e,n,r,i,a){var o=this;return function(){o.recurse(t,e,n,r,i,a)}},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(_(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(w(t))return t.toString();if(t===!0)return"true";if(t===!1)return"false";if(null===t)return"null";if("undefined"==typeof t)return"undefined";throw Aa("esc","IMPOSSIBLE")},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]}},xn.prototype={compile:function(t){var e=this,n=this.astBuilder.ast(t);hn(n,e.$filter);var i,a;(i=gn(n))&&(a=this.recurse(i));var o,s=dn(n.body);s&&(o=[],r(s,function(t,n){var r=e.recurse(t);t.input=r,o.push(r),t.watchId=n}));var u=[];r(n.body,function(t){u.push(e.recurse(t.expression))});var c=0===n.body.length?d:1===n.body.length?u[0]:function(t,e){var n;return r(u,function(r){n=r(t,e)}),n};return a&&(c.assign=function(t,e,n){return a(t,n,e)}),o&&(c.inputs=o),c.literal=vn(n),c.constant=mn(n),c},recurse:function(t,e,n){var i,a,o,s=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case Oa.Literal:return this.value(t.value,e);case Oa.UnaryExpression:return a=this.recurse(t.argument),this["unary"+t.operator](a,e);case Oa.BinaryExpression:return i=this.recurse(t.left),a=this.recurse(t.right),this["binary"+t.operator](i,a,e);case Oa.LogicalExpression:return i=this.recurse(t.left),a=this.recurse(t.right),this["binary"+t.operator](i,a,e);case Oa.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case Oa.Identifier:return s.identifier(t.name,e,n);case Oa.MemberExpression:return i=this.recurse(t.object,!1,!!n),t.computed||(a=t.property.name),t.computed&&(a=this.recurse(t.property)),t.computed?this.computedMember(i,a,e,n):this.nonComputedMember(i,a,e,n);case Oa.CallExpression:return o=[],r(t.arguments,function(t){o.push(s.recurse(t))}),t.filter&&(a=this.$filter(t.callee.name)),t.filter||(a=this.recurse(t.callee,!0)),t.filter?function(t,n,r,i){for(var s=[],u=0;u":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)>e(r,i,a,o);return n?{value:s}:s}},"binary<=":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)<=e(r,i,a,o);return n?{value:s}:s}},"binary>=":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)>=e(r,i,a,o);return n?{value:s}:s}},"binary&&":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)&&e(r,i,a,o);return n?{value:s}:s}},"binary||":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)||e(r,i,a,o);return n?{value:s}:s}},"ternary?:":function(t,e,n,r){return function(i,a,o,s){var u=t(i,a,o,s)?e(i,a,o,s):n(i,a,o,s);return r?{value:u}:u}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(t,e,n){return function(r,i,a,o){var s=i&&t in i?i:r;n&&1!==n&&s&&null==s[t]&&(s[t]={});var u=s?s[t]:void 0;return e?{context:s,name:t,value:u}:u}},computedMember:function(t,e,n,r){return function(i,a,o,s){var u,c,l=t(i,a,o,s);return null!=l&&(u=e(i,a,o,s),u=un(u),r&&1!==r&&l&&!l[u]&&(l[u]={}),c=l[u]),n?{context:l,name:u,value:c}:c}},nonComputedMember:function(t,e,n,r){return function(i,a,o,s){var u=t(i,a,o,s);r&&1!==r&&u&&null==u[e]&&(u[e]={});var c=null!=u?u[e]:void 0;return n?{context:u,name:e,value:c}:c}},inputs:function(t,e){return function(n,r,i,a){return a?a[e]:t(n,r,i)}}};var Ma=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new Oa(t,n),this.astCompiler=n.csp?new xn(this.ast,e):new yn(this.ast,e)};Ma.prototype={constructor:Ma,parse:function(t){return this.astCompiler.compile(t)}};var Ra=e("$sce"),La={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Da=/_([a-z])/g,ja=e("$compile"),Fa=t.document.createElement("a"),Va=jn(t.location.href);Nn.$inject=["$document"],Gn.$inject=["$provide"];var Na=22,za=".",Ga="0";qn.$inject=["$locale"],Yn.$inject=["$locale"];var Ha={yyyy:Jn("FullYear",4,0,!1,!0),yy:Jn("FullYear",2,0,!0,!0),y:Jn("FullYear",1,0,!1,!0),MMMM:tr("Month"),MMM:tr("Month",!0),MM:Jn("Month",2,1),M:Jn("Month",1,1),LLLL:tr("Month",!1,!0),dd:Jn("Date",2),d:Jn("Date",1),HH:Jn("Hours",2),H:Jn("Hours",1),hh:Jn("Hours",2,-12),h:Jn("Hours",1,-12),mm:Jn("Minutes",2),m:Jn("Minutes",1),ss:Jn("Seconds",2),s:Jn("Seconds",1),sss:Jn("Milliseconds",3),EEEE:tr("Day"),EEE:tr("Day",!0),a:ar,Z:er,ww:ir(2),w:ir(1),G:or,GG:or,GGG:or,GGGG:sr},Ua=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Ba=/^-?\d+$/;ur.$inject=["$locale"];var Wa=g(Wr),qa=g(qr);hr.$inject=["$parse"];var Ya=g({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]"===ri.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),Xa={};r(Ni,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!==t){var r=we("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),Xa[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r(Gi,function(t,e){Xa[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(Hr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),r(["src","srcset","href"],function(t){var e=we("ng-"+t);Xa[e]=function(){return{priority:99,link:function(n,r,i){var a=t,o=t;"href"===t&&"[object SVGAnimatedString]"===ri.call(r.prop("href"))&&(o="xlinkHref",i.$attr[o]="xlink:href",a=null),i.$observe(e,function(e){return e?(i.$set(o,e),void(Kr&&a&&r.prop(a,i[o]))):void("href"===t&&i.$set(o,null))})}}}});var Ka={$addControl:d,$$renameControl:pr,$removeControl:d,$setValidity:d,$setDirty:d,$setPristine:d,$setSubmitted:d},Za="ng-pending",Qa="ng-submitted";gr.$inject=["$element","$attrs","$scope","$animate","$interpolate"],gr.prototype={$rollbackViewValue:function(){r(this.$$controls,function(t){t.$rollbackViewValue()})},$commitViewValue:function(){r(this.$$controls,function(t){t.$commitViewValue()})},$addControl:function(t){dt(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$$renameControl:function(t,e){var n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl:function(t){t.$name&&this[t.$name]===t&&delete this[t.$name],r(this.$pending,function(e,n){this.$setValidity(n,null,t)},this),r(this.$error,function(e,n){this.$setValidity(n,null,t)},this),r(this.$$success,function(e,n){this.$setValidity(n,null,t)},this),V(this.$$controls,t),t.$$parentForm=Ka},$setDirty:function(){this.$$animate.removeClass(this.$$element,Do),this.$$animate.addClass(this.$$element,jo),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Do,jo+" "+Qa),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,r(this.$$controls,function(t){t.$setPristine()})},$setUntouched:function(){r(this.$$controls,function(t){t.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,Qa),this.$submitted=!0,this.$$parentForm.$setSubmitted()}},mr({clazz:gr,set:function(t,e,n){var r=t[e];if(r){var i=r.indexOf(n);i===-1&&r.push(n)}else t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(V(r,n),0===r.length&&delete t[e])}});var Ja=function(t){return["$timeout","$parse",function(e,n){function r(t){return""===t?n('this[""]').assign:n(t).assign||d}var i={name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:gr,compile:function(n,i){n.addClass(Do).addClass(Ro);var a=i.name?"name":!(!t||!i.ngForm)&&"ngForm";return{pre:function(t,n,i,o){var s=o[0];if(!("action"in i)){var u=function(e){t.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),e.preventDefault()};n[0].addEventListener("submit",u),n.on("$destroy",function(){e(function(){n[0].removeEventListener("submit",u)},0,!1)})}var l=o[1]||s.$$parentForm;l.$addControl(s);var f=a?r(s.$name):d;a&&(f(t,s),i.$observe(a,function(e){s.$name!==e&&(f(t,void 0),s.$$parentForm.$$renameControl(s,e),(f=r(s.$name))(t,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),f(t,void 0),c(s,Ka)})}}}};return i}]},to=Ja(),eo=Ja(!0),no=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,ro=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,io=/^(?=.{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])?)*$/,ao=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,oo=/^(\d{4,})-(\d{2})-(\d{2})$/,so=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,uo=/^(\d{4,})-W(\d\d)$/,co=/^(\d{4,})-(\d\d)$/,lo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,fo="keydown wheel mousedown",ho=vt();r("date,datetime-local,month,time,week".split(","),function(t){ho[t]=!0});var po={text:br,date:$r("date",oo,Sr(oo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":$r("datetimelocal",so,Sr(so,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:$r("time",lo,Sr(lo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:$r("week",uo,wr,"yyyy-Www"),month:$r("month",co,Sr(co,["yyyy","MM"]),"yyyy-MM"),number:Ir,url:Mr,email:Rr,radio:Lr,range:Or,checkbox:jr,hidden:d,button:d,submit:d,reset:d,file:d},go=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,a,o,s){s[0]&&(po[Wr(o.type)]||po.text)(i,a,o,s[0],e,t,n,r)}}}}],vo=/^(true|false|\d+)$/,mo=function(){function t(t,e,n){var r=y(n)?n:9===Kr?"":null;t.prop("value",r),e.$set("value",n)}return{restrict:"A",priority:100,compile:function(e,n){return vo.test(n.ngValue)?function(e,n,r){var i=e.$eval(r.ngValue);t(n,r,i)}:function(e,n,r){e.$watch(r.ngValue,function(e){t(n,r,e)})}}}},yo=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=mt(t)})}}}}],xo=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var a=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,a.expressions),r=r[0],i.$observe("ngBindTemplate",function(t){r.textContent=m(t)?"":t})}}}}],bo=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var a=e(i.ngBindHtml),o=e(i.ngBindHtml,function(e){return t.valueOf(e)});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(o,function(){var n=a(e);r.html(t.getTrustedHtml(n)||"")})}}}}],_o=g({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),wo=Fr("",!0),So=Fr("Odd",0),$o=Fr("Even",1),ko=dr({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),To=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Ao={},Co={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=we("ng-"+t);Ao[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,a){var o=n(a[e]);return function(e,n){n.on(t,function(n){var i=function(){o(e,{$event:n})};Co[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var Eo=["$animate","$compile",function(t,e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,a,o){var s,u,c;n.$watch(i.ngIf,function(n){n?u||o(function(n,a){u=a,n[n.length++]=e.$$createComment("end ngIf",i.ngIf),s={clone:n},t.enter(n,r.parent(),r)}):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),s&&(c=gt(s.clone),t.leave(c).done(function(t){t!==!1&&(c=null)}),s=null))})}}}],Po=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:oi.noop,compile:function(r,i){var a=i.ngInclude||i.src,o=i.onload||"",s=i.autoscroll;return function(r,i,u,c,l){var f,h,d,p=0,g=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),d&&(n.leave(d).done(function(t){t!==!1&&(h=null)}),h=d,d=null)};r.$watch(a,function(a){var u=function(t){t===!1||!y(s)||s&&!r.$eval(s)||e()},h=++p;a?(t(a,!0).then(function(t){if(!r.$$destroyed&&h===p){var e=r.$new();c.template=t;var s=l(e,function(t){g(),n.enter(t,null,i).done(u)});f=e,d=s,f.$emit("$includeContentLoaded",a),r.$eval(o)}},function(){r.$$destroyed||h===p&&(g(),r.$emit("$includeContentError",a))}),r.$emit("$includeContentRequested",a)):(g(),c.template=null)})}}}}],Io=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,a){return ri.call(r[0]).match(/SVG/)?(r.empty(),void e(It(a.template,t.document).childNodes)(n,function(t){r.append(t)},{futureParentElement:r})):(r.html(a.template),void e(r.contents())(n))}}}],Oo=dr({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),Mo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,i){var a=n.ngList||", ",o="false"!==n.ngTrim,s=o?fi(a):a,u=function(t){if(!m(t)){var e=[];return t&&r(t.split(s),function(t){t&&e.push(o?fi(t):t)}),e}};i.$parsers.push(u),i.$formatters.push(function(t){if(ci(t))return t.join(a)}),i.$isEmpty=function(t){return!t||!t.length}}}},Ro="ng-valid",Lo="ng-invalid",Do="ng-pristine",jo="ng-dirty",Fo="ng-untouched",Vo="ng-touched",No="ng-empty",zo="ng-not-empty",Go=e("ngModel");Vr.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Vr.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var t=this.$$parse(this.$$attr.ngModel+"()"),e=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(e){var n=this.$$parsedNgModel(e);return $(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){$(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw Go("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,Z(this.$$element))},$render:d,$isEmpty:function(t){return m(t)||""===t||null===t||t!==t},$$updateEmptyClasses:function(t){this.$isEmpty(t)?(this.$$animate.removeClass(this.$$element,zo),this.$$animate.addClass(this.$$element,No)):(this.$$animate.removeClass(this.$$element,No),this.$$animate.addClass(this.$$element,zo))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,jo),this.$$animate.addClass(this.$$element,Do)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Do),this.$$animate.addClass(this.$$element,jo),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,Fo,Vo)},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,Vo,Fo)},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!ui(this.$modelValue)){var t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),a=this;this.$$runValidators(e,t,function(t){i||n===t||(a.$modelValue=t?e:void 0,a.$modelValue!==r&&a.$$writeModelToScope())})}},$$runValidators:function(t,e,n){function i(){var t=l.$$parserName||"parse";return m(l.$$parserValid)?(s(t,null),!0):(l.$$parserValid||(r(l.$validators,function(t,e){s(e,null)}),r(l.$asyncValidators,function(t,e){s(e,null)})),s(t,l.$$parserValid),l.$$parserValid)}function a(){var n=!0;return r(l.$validators,function(r,i){var a=Boolean(r(t,e));n=n&&a,s(i,a)}),!!n||(r(l.$asyncValidators,function(t,e){s(e,null)}),!1)}function o(){var n=[],i=!0;r(l.$asyncValidators,function(r,a){var o=r(t,e);if(!O(o))throw Go("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",o);s(a,void 0),n.push(o.then(function(){s(a,!0)},function(){i=!1,s(a,!1)}))}),n.length?l.$$q.all(n).then(function(){u(i)},d):u(!0)}function s(t,e){c===l.$$currentValidationRunId&&l.$setValidity(t,e)}function u(t){c===l.$$currentValidationRunId&&n(t)}this.$$currentValidationRunId++;var c=this.$$currentValidationRunId,l=this;return i()&&a()?void o():void u(!1)},$commitViewValue:function(){var t=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==t||""===t&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(t),this.$$lastCommittedViewValue=t,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function t(){r.$modelValue!==a&&r.$$writeModelToScope()}var e=this.$$lastCommittedViewValue,n=e,r=this;if(this.$$parserValid=!m(n)||void 0,this.$$parserValid)for(var i=0;i0?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},e):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(t){this.$options=this.$options.createChild(t)}},mr({clazz:Vr,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]}});var Ho,Uo=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Vr,priority:1,compile:function(e){return e.addClass(Do).addClass(Fo).addClass(Ro),{pre:function(t,e,n,r){var i=r[0],a=r[1]||i.$$parentForm,o=r[2];o&&(i.$options=o.$options),i.$$initGetterSetters(),a.$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(e,n,r,i){function a(){o.$setTouched()}var o=i[0];o.$options.getOption("updateOn")&&n.on(o.$options.getOption("updateOn"),function(t){o.$$debounceViewValueCommit(t&&t.type)}),n.on("blur",function(){o.$touched||(t.$$phase?e.$evalAsync(a):e.$apply(a))})}}}}}],Bo=/(\s+|^)default(\s+|$)/;zr.prototype={getOption:function(t){return this.$$options[t]},createChild:function(t){var e=!1;return t=c({},t),r(t,function(n,r){"$inherit"===n?"*"===r?e=!0:(t[r]=this.$$options[r],"updateOn"===r&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(t.updateOnDefault=!1,t[r]=fi(n.replace(Bo,function(){return t.updateOnDefault=!0," "})))},this),e&&(delete t["*"],Gr(t,this.$$options)),Gr(t,Ho.$$options),new zr(t)}},Ho=new zr({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var Wo=function(){function t(t,e){this.$$attrs=t,this.$$scope=e}return t.$inject=["$attrs","$scope"],t.prototype={$onInit:function(){var t=this.parentCtrl?this.parentCtrl.$options:Ho,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:t}},qo=dr({terminal:!0,priority:1e3}),Yo=e("ngOptions"),Xo=/^\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]+?))?$/,Ko=["$compile","$document","$parse",function(e,i,a){function o(t,e,r){function i(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function o(t){var e;if(!c&&n(t))e=t;else{e=[];for(var r in t)t.hasOwnProperty(r)&&"$"!==r.charAt(0)&&e.push(r)}return e}var s=t.match(Xo);if(!s)throw Yo("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,Z(e));var u=s[5]||s[7],c=s[6],l=/ as /.test(s[0])&&s[1],f=s[9],h=a(s[2]?s[1]:u),d=l&&a(l),p=d||h,g=f&&a(f),v=f?function(t,e){return g(r,e)}:function(t){return re(t)},m=function(t,e){return v(t,S(t,e))},y=a(s[2]||s[1]),x=a(s[3]||""),b=a(s[4]||""),_=a(s[8]),w={},S=c?function(t,e){return w[c]=e,w[u]=t,w}:function(t){return w[u]=t,w};return{trackBy:f,getTrackByValue:m,getWatchables:a(_,function(t){var e=[];t=t||[];for(var n=o(t),i=n.length,a=0;a=0;e--){var r=S.items[e];Yt(y(r.group)?r.element.parentNode:r.element)}S=$.getOptions();var i={};if(_&&n.prepend(p.emptyOption),S.items.forEach(function(t){var e;y(t.group)?(e=i[t.group],e||(e=c.cloneNode(!1),k.appendChild(e), +e.label=null===t.group?"null":t.group,i[t.group]=e),l(t,e)):l(t,k)}),n[0].appendChild(k),g.$render(),!g.$isEmpty(t)){var a=p.readValue(),o=$.trackBy||v;(o?z(t,a):t===a)||(g.$setViewValue(a),g.$render())}}for(var p=s[0],g=s[1],v=a.multiple,m=0,x=n.children(),b=x.length;m0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw e("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",o,t,Z(n));a=t||void 0,i.$validate()}),i.$validators.pattern=function(t,e){return i.$isEmpty(e)||m(a)||a.test(e)}}}}},vs=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){var e=f(t);i=ui(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},ms=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=f(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};return t.angular.bootstrap?void(t.console&&console.log("WARNING: Tried to load angular more than once.")):(lt(),wt(oi),oi.module("ngLocale",[],["$provide",function(t){function e(t){t+="";var e=t.indexOf(".");return e==-1?0:t.length-e-1}function n(t,n){var r=n;void 0===r&&(r=Math.min(e(t),3));var i=Math.pow(10,r),a=(t*i|0)%i;return{v:r,f:a}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],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 i=0|t,a=n(t,e);return 1==i&&0==a.v?r.ONE:r.OTHER}})}]),void Zr(function(){at(t.document,ot)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('')},function(t,e){"object"==typeof t&&t.exports&&(t.exports="luegg.directives"),function(t,e){"use strict";function n(t,n,r){function i(t){var e=t;return{getValue:function(){return e},setValue:function(t){e=t}}}function a(t,e){return{getValue:function(){return t(e)},setValue:function(){}}}function o(t,e,n){return{getValue:function(){return t(n)},setValue:function(r){r!==t(n)&&n.$apply(function(){e(n,r)})}}}if(""!==n){var s=t(n);return s.assign!==e?o(s,s.assign,r):a(s,r)}return i(!0)}function r(t,e,r){t.directive(e,["$parse","$window","$timeout",function(t,i,a){return{priority:1,restrict:"A",link:function(o,s,u){function c(){h.getValue()&&!r.isAttached(f)&&r.scroll(f)}function l(){h.setValue(r.isAttached(f))}var f=s[0],h=n(t,u[e],o);o.$watch(c),a(c,0,!1),i.addEventListener("resize",c,!1),s.on("scroll",l),s.on("$destroy",function(){s.unbind("scroll",l)}),o.$on("$destroy",function(){i.removeEventListener("resize",c,!1)})}}}])}var i={isAttached:function(t){return t.scrollTop+t.clientHeight+1>=t.scrollHeight},scroll:function(t){t.scrollTop=t.scrollHeight}},a={isAttached:function(t){return t.scrollTop<=1},scroll:function(t){t.scrollTop=0}},o={isAttached:function(t){return t.scrollLeft+t.clientWidth+1>=t.scrollWidth},scroll:function(t){t.scrollLeft=t.scrollWidth}},s={isAttached:function(t){return t.scrollLeft<=1},scroll:function(t){t.scrollLeft=0}},u=t.module("luegg.directives",[]);r(u,"scrollGlue",i),r(u,"scrollGlueTop",a),r(u,"scrollGlueBottom",i),r(u,"scrollGlueLeft",s),r(u,"scrollGlueRight",o)}(angular)},function(t,e){function n(){var t=function(t,e,n,r){var i=n.valuesX;i&&r.addXAxisValues(i);var a=n.valuesXs,o={};if(a){xsItems=a.split(",");for(var s in xsItems)xsItem=xsItems[s].split(":"),o[xsItem[0]]=xsItem[1];r.addXSValues(o)}var u=n.y,c=n.y2,l={};if(c){var f=c.split(",");for(var h in f)l[f[h]]="y2";if(u){var d=u.split(",");for(var p in d)l[d[p]]="y"}r.addYAxis(l)}};return{require:"^c3chart",restrict:"E",scope:{},replace:!0,link:t}}function r(){var t=function(t,e,n,r){var i=n.axisRotate;i&&r.rotateAxis()};return{require:"^c3chart",restrict:"E",scope:{},transclude:!0,template:"
    ",replace:!0,link:t}}function i(){var t=function(t,e,n,r){var i=n.axisPosition,a=n.axisLabel,o={label:{text:a,position:i}},s=n.paddingLeft,u=n.paddingRight;(s||u)&&(s=s?s:0,u=u?u:0,o.padding={left:parseInt(s),right:parseInt(u)});var c=n.axisHeight;c&&(o.height=parseInt(c)),"false"===n.show&&(o.show=!1),"true"===n.axisLocaltime&&(o.localtime=!0);var l=n.axisMax;l&&(o.max=l);var f=n.axisMin;f&&(o.min=f);var h=n.axisType;h&&(o.type=h),r.addAxisProperties("x",o);var d=n.axisXFormat;d&&r.setXFormat(d)};return{require:"^c3chart",restrict:"E",scope:{},transclude:!0,template:"
    ",replace:!0,link:t}}function a(){var t=function(t,e,n,r){var i={},a=n.tickCount;a&&(i.count=a);var o=n.tickCulling;o&&(o=angular.lowercase(o),"true"===o?i.culling=!0:"false"===o&&(i.culling=!1));var s=n.tickCullingMax;s&&(i.culling={max:parseInt(s)});var u=n.tickMultiline;u&&(u=angular.lowercase(u),"true"===u?i.multiline=!0:"false"===u&&(i.multiline=!1));var c=n.tickCentered;c&&(c=angular.lowercase(c),"true"===c?i.centered=!0:"false"===c&&(i.centered=!1));var l=n.tickRotate;l&&(i.rotate=l);var f=n.tickFit;f&&(f=angular.lowercase(f),"true"===f?i.fit=!0:"false"===f&&(i.fit=!1));var h=n.tickValues;h&&h&&(h.indexOf(",")>-1?i.values=h.split(","):i.values=h);var d=n.tickOuter;d&&(d=angular.lowercase(d),"true"===d?i.outer=!0:"false"===d&&(i.outer=!1));var p=n.format;p&&(i.format=d3.format(p));var g=n.formatTime;g&&(i.format=d3.time.format(g)),r.addXTick(i),n.tickFormatFunction&&r.addXTickFormatFunction(t.tickFormatFunction())};return{require:"^c3chart",restrict:"E",scope:{tickFormatFunction:"&"},replace:!0,link:t}}function o(){var t=function(t,e,n,r){var i=n.axisId,a=n.axisPosition,o=n.axisLabel;i=void 0==i?"y":i;var s={label:{text:o,position:a}};"false"===n.show?s.show=!1:"y2"===i&&(s.show=!0);var u=n.paddingTop,c=n.paddingBottom;(u||c)&&(u=u?u:0,c=c?c:0,s.padding={top:parseInt(u),bottom:parseInt(c)});var l=n.axisMax,f=n.axisMin;l&&(s.max=parseInt(l)),f&&(s.min=parseInt(f)),"true"===n.axisInverted&&(s.inverted=!0),"true"===n.axisInner&&(s.inner=!0);var h=n.axisCenter;h&&(s.center=parseInt(h)),r.addAxisProperties(i,s)};return{require:"^c3chart",restrict:"E",scope:{},replace:!0,link:t}}function s(){var t=function(t,e,n,r){var i={},a=n.tickCount;a&&(i.count=a);var o=n.tickOuter;o&&(o=angular.lowercase(o),"true"===o?i.outer=!0:"false"===o&&(i.outer=!1));var s=n.tickValues;s&&(s.indexOf(",")>-1?i.values=s.split(","):i.values=s);var u=n.tickFormat;u&&(i.format=d3.format(u)),r.addYTick(i),n.tickFormatFunction&&r.addYTickFormatFunction(t.tickFormatFunction())};return{require:"^c3chart",restrict:"E",scope:{tickFormatFunction:"&"},replace:!0,link:t}}function u(){var t=function(t,e,n,r){var i={};n.width&&(i.width=parseInt(n.width)),n.ratio&&(i.width||(i.width={}),i.width.ratio=parseFloat(n.ratio)),n.zerobased&&(i.zerobased="true"===n.zerobased),r.addBar(i)};return{require:"^c3chart",restrict:"E",scope:{},replace:!0,link:t}}function c(t){var e=function(e,n,r,i){var a=r.paddingTop,o=r.paddingRight,s=r.paddingBottom,u=r.paddingLeft,c=r.sortData,l=r.transitionDuration,f=r.initialConfig;a&&i.addPadding("top",a),o&&i.addPadding("right",o),s&&i.addPadding("bottom",s),u&&i.addPadding("left",u),c&&i.addSorting(c),r.labelsFormatFunction&&i.addDataLabelsFormatFunction(e.labelsFormatFunction()),r.onZoomEndFunction&&i.addOnZoomEndFunction(e.onZoomEndFunction()),r.subchartOnBrushFunction&&i.addSubchartOnBrushFunction(e.subchartOnBrushFunction()),r.callbackFunction&&i.addChartCallbackFunction(e.callbackFunction()),l&&i.addTransitionDuration(l),f&&i.addInitialConfig(f),t(function(){i.showGraph()})};return{restrict:"E",controller:"ChartController",scope:{bindto:"@bindtoId",showLabels:"@showLabels",labelsFormatFunction:"&",onZoomEndFunction:"&",showSubchart:"@showSubchart",subchartOnBrushFunction:"&",enableZoom:"@enableZoom",chartData:"=chartData",chartColumns:"=chartColumns",chartX:"=chartX",callbackFunction:"&",emptyLabel:"@emptyLabel"},template:"
    ",replace:!0,transclude:!0,link:e}}function l(){var t=function(t,e,n,r){var i=n.colorPattern;i&&r.addColorPatterns(i.split(","));var a=n.thresholds;a&&r.addColorThresholds(a.split(",")),n.colorFunction&&r.addColorFunction(t.colorFunction())};return{require:"^c3chart",restrict:"E",scope:{colorFunction:"&"},replace:!0,link:t}}function f(){var t=function(t,e,n,r){var i=n.columnValues.split(",");i.unshift(n.columnId),r.addColumn(i,n.columnType,n.columnName,n.columnColor)};return{require:"^c3chart",restrict:"E",scope:{},replace:!0,link:t}}function h(t,e){function n(){t.chart=null,t.columns=[],t.types={},t.regions={},t.axis={},t.axes={},t.padding=null,t.emptyLabel=null,t.xValues=null,t.xFormat=null,t.xsValues=null,t.xTick=null,t.yTick=null,t.names=null,t.grid=null,t.legend=null,t.tooltip=null,t.chartSize=null,t.colors=null,t.colorThresholds=null,t.gauge=null,t.jsonKeys=null,t.groups=null,t.sorting=null,t.transitionDuration=null,t.initialConfig=null,t.selection=null}function r(){var r={};t.initialConfig&&(r=t.initialConfig),r.bindto="#"+t.bindto,r.data=r.data||{},t.xValues&&(r.data.x=t.xValues),t.xsValues&&(r.data.xs=t.xsValues),t.columns&&(r.data.columns=t.columns),t.xFormat&&(r.data.xFormat=t.xFormat),r.data.types=r.data.types||t.types,r.data.axes=r.data.axes||t.axes,t.names&&(r.data.names=t.names),null!=t.emptyLabel&&(r.data.empty={label:{text:t.emptyLabel}}),null!=t.padding&&(r.padding=t.padding),null!=t.sorting&&("null"==t.sorting?r.data.order=null:r.data.order=t.sorting),null!=t.transitionDuration&&(r.transition=r.transition||{},r.transition.duration=t.transitionDuration),t.showLabels&&"true"===t.showLabels&&(r.data.labels=!0),t.dataLabelsFormatFunction&&(r.data.labels=r.data.labels||{},r.data.labels.format=t.dataLabelsFormatFunction),null!=t.groups&&(r.data.groups=t.groups),t.showSubchart&&"true"===t.showSubchart&&(r.subchart={show:!0}),t.subchartOnBrushFunction&&(r.subchart=r.subchart||{},r.subchart.onbrush=t.subchartOnBrushFunction),t.enableZoom&&"true"===t.enableZoom&&(r.zoom={enabled:!0}),t.onZoomEndFunction&&(r.zoom=r.zoom||{},r.zoom.onzoomend=t.onZoomEndFunction),r.axis=r.axis||t.axis,t.xTick&&(r.axis.x.tick=t.xTick),t.xTickFormatFunction&&(r.axis.x.tick=r.axis.x.tick||{},r.axis.x.tick.format=t.xTickFormatFunction),t.xType&&(r.axis.x.type=t.xType),t.yTick&&(r.axis.y.tick=t.yTick),t.yTickFormatFunction&&(r.axis.y.tick=r.axis.y.tick||{},r.axis.y.tick.format=t.yTickFormatFunction),null!=t.grid&&(r.grid=t.grid),null!=t.legend&&(r.legend=t.legend),null!=t.tooltip?r.tooltip=t.tooltip:r.tooltip={},t.tooltipTitleFormatFunction&&(r.tooltip.format=r.tooltip.format||{},r.tooltip.format.title=t.tooltipTitleFormatFunction),t.tooltipNameFormatFunction&&(r.tooltip.format=r.tooltip.format||{},r.tooltip.format.name=t.tooltipNameFormatFunction),t.tooltipValueFormatFunction&&(r.tooltip.format=r.tooltip.format||{},r.tooltip.format.value=t.tooltipValueFormatFunction),t.tooltipContentFormatFunction&&(r.tooltip.contents=t.tooltipContentFormatFunction),null!=t.chartSize&&(r.size=t.chartSize),null!=t.colors&&(r.data.colors=t.colors),t.colorFunction&&(r.data.color=t.colorFunction),null!=t.colorPatterns&&(void 0===r.color&&(r.color={}),r.color.pattern=t.colorPatterns),null!=t.colorThresholds&&(void 0===r.color&&(r.color={}),r.color.threshold={values:t.colorThresholds}),null!=t.gauge?r.gauge=t.gauge:r.gauge={},t.gaugeLabelFormatFunction&&(r.gauge.label=r.gauge.label||{},r.gauge.label.format=t.gaugeLabelFormatFunction),null!=t.point&&(r.point=t.point),null!=t.bar&&(r.bar=t.bar),null!=t.line&&(r.line=t.line),null!=t.regions&&(r.data.regions=t.regions),null!=t.pie&&(r.pie=t.pie),t.pieLabelFormatFunction&&(r.pie.label=r.pie.label||{},r.pie.label.format=t.pieLabelFormatFunction),null!=t.donut?r.donut=t.donut:r.donut={},t.donutLabelFormatFunction&&(r.donut.label=r.donut.label||{},r.donut.label.format=t.donutLabelFormatFunction),null!=t.onInit&&(r.oninit=t.onInit),null!=t.onMouseover&&(r.onmouseover=t.onMouseover),null!=t.onMouseout&&(r.onmouseout=t.onMouseout),null!=t.onRendered&&(r.onrendered=t.onRendered),null!=t.onResize&&(r.onresize=t.onResize),null!=t.onResized&&(r.onresized=t.onResized),null!=t.dataOnClick&&(r.data.onclick=function(e,n){t.$apply(function(){t.dataOnClick({data:e})})}),null!=t.dataOnMouseover&&(r.data.onmouseover=function(e){t.$apply(function(){t.dataOnMouseover({data:e})})}),null!=t.dataOnMouseout&&(r.data.onmouseout=function(e){t.$apply(function(){t.dataOnMouseout({data:e})})}),null!=t.selection&&(r.data.selection=t.selection),t.config=r,t.chartData&&t.chartColumns?t.$watch("chartData",function(){ot()},!0):(t.chart=c3.generate(t.config),t.chartCallbackFunction&&t.chartCallbackFunction(t.chart)),t.$on("$destroy",function(){e(function(){angular.isDefined(t.chart)&&(t.chart=t.chart.destroy(),n())},1e4)})}function i(e,n,r,i){t.columns.push(e),it(e[0],n,r,i)}function a(e){t.axes=e,t.axis.y2||(t.axis.y2={show:!0})}function o(e){t.dataLabelsFormatFunction=e}function s(e){t.subchartOnBrushFunction=e}function u(e){t.onZoomEndFunction=e}function c(e){t.chartCallbackFunction=e}function l(e){t.transitionDuration=e}function f(e){t.xValues=e}function h(e){t.xsValues=e}function d(e,n){t.axis[e]=n}function p(e){t.xTick=e}function g(e){t.xTickFormatFunction=e}function v(e){t.xType=e}function m(e){t.yTick=e}function y(e){t.yTickFormatFunction=e}function x(){t.axis.rotated=!0}function b(e){t.emptyLabel=e}function _(e,n){null==t.padding&&(t.padding={}),t.padding[e]=parseInt(n)}function w(e){t.sorting=e}function S(e){null==t.grid&&(t.grid={}),null==t.grid[e]&&(t.grid[e]={}),t.grid[e].show=!0}function $(e,n,r,i,a){null==t.grid&&(t.grid={}),"x"===e?(void 0===t.grid.x&&(t.grid.x={}),void 0===t.grid.x.lines&&(t.grid.x.lines=[])):(void 0===t.grid.y&&(t.grid.y={}),void 0===t.grid.y.lines&&(t.grid.y.lines=[]));var o={};o.value=isNaN(+n)?n:+n,o.text=r,i&&(o.class=i),a&&(o.position=a),"y2"===e?(o.axis="y2",t.grid.y.lines.push(o)):t.grid[e].lines.push(o)}function k(e){t.legend=e}function T(e){t.tooltip=e}function A(e){t.tooltipTitleFormatFunction=e}function C(e){t.tooltipNameFormatFunction=e}function E(e){t.tooltipValueFormatFunction=e}function P(e){t.tooltipContentFormatFunction=e}function I(e){t.chartSize=e}function O(e){t.colorPatterns=e}function M(e){t.colorThresholds=e,t.colors&&(t.colors.threshold={values:t.colorThresholds})}function R(e){t.colorFunction=e}function L(e){t.onInit=e}function D(e){t.onMouseover=e}function j(e){t.onMouseout=e}function F(e){t.onRendered=e}function V(e){t.onResize=e}function N(e){t.onResized=e}function z(e){t.dataOnClick=e}function G(e){t.dataOnMouseover=e}function H(e){t.dataOnMouseout=e}function U(e){t.gauge=e}function B(e){t.gaugeLabelFormatFunction=e}function W(e){t.bar=e}function q(e){t.line=e}function Y(e,n){t.regions[e]=n}function X(e){t.pie=e}function K(e){t.pieLabelFormatFunction=e}function Z(e){t.donut=e}function Q(e){t.donutLabelFormatFunction=e}function J(e){null==t.groups&&(t.groups=[]),t.groups.push(e)}function tt(e){t.point=e}function et(){null==t.grid&&(t.grid={}),t.grid.focus={show:!1}}function nt(e){t.xFormat=e}function rt(e){t.initialConfig=e}function it(e,n,r,i){void 0!==n&&(t.types[e]=n),void 0!==r&&(null===t.names&&(t.names={}),t.names[e]=r),void 0!==i&&(null===t.colors&&(t.colors={}),t.colors[e]=i)}function at(e){t.selection=e}function ot(){t.jsonKeys={},t.jsonKeys.value=[],angular.forEach(t.chartColumns,function(e){t.jsonKeys.value.push(e.id),it(e.id,e.type,e.name,e.color)}),t.chartX&&(t.jsonKeys.x=t.chartX.id),t.names&&(t.config.data.names=t.names),t.colors&&(t.config.data.colors=t.colors),t.groups&&(t.config.data.groups=t.groups),t.config.data.keys=t.jsonKeys,t.config.data.json=t.chartData,t.chartIsGenerated?(t.config.data.unload=!0,t.chart.load(t.config.data)):(t.chart=c3.generate(t.config),t.chartIsGenerated=!0,t.chartCallbackFunction&&t.chartCallbackFunction(t.chart))}this.showGraph=r,this.addColumn=i,this.addAxisProperties=d,this.rotateAxis=x,this.addPadding=_,this.addSorting=w,this.addSize=I,this.addEmptyLabel=b,this.addColorPatterns=O,this.addColorThresholds=M,this.addColorFunction=R,this.addGrid=S,this.addGridLine=$,this.hideGridFocus=et,this.addLegend=k,this.addTooltip=T,this.addTooltipTitleFormatFunction=A,this.addTooltipNameFormatFunction=C,this.addTooltipValueFormatFunction=E,this.addTooltipContentFormatFunction=P,this.addYAxis=a,this.addYTick=m,this.addYTickFormatFunction=y,this.addXAxisValues=f,this.addXTick=p,this.addXTickFormatFunction=g,this.addXType=v,this.addXSValues=h,this.addChartCallbackFunction=c,this.addInitialConfig=rt,this.addDataLabelsFormatFunction=o,this.addTransitionDuration=l,this.addSubchartOnBrushFunction=s,this.addOnZoomEndFunction=u,this.addGauge=U,this.addGaugeLabelFormatFunction=B,this.addBar=W,this.addLine=q,this.addRegion=Y,this.addPie=X,this.addPieLabelFormatFunction=K,this.addDonut=Z,this.addDonutLabelFormatFunction=Q,this.addGroup=J,this.addPoint=tt,this.addOnInitFunction=L,this.addOnMouseoverFunction=D,this.addOnMouseoutFunction=j,this.addOnRenderedFunction=F,this.addOnResizeFunction=V,this.addOnResizedFunction=N,this.addDataOnClickFunction=z,this.addDataOnMouseoverFunction=G,this.addDataOnMouseoutFunction=H,this.setXFormat=nt,this.addSelection=at,n()}function d(){var t=function(t,e,n,r){var i={};n.showLabel&&(i.label={show:"true"===n.showLabel}),n.thresholdLabel&&(i.label||(i.label={}),i.label.threshold=parseFloat(n.thresholdLabel)),n.expand&&(i.expand="true"===n.expand),n.width&&(i.width=parseInt(n.width)),n.title&&(i.title=n.title),r.addDonut(i),n.labelFormatFunction&&r.addDonutLabelFormatFunction(t.labelFormatFunction())};return{require:"^c3chart",restrict:"E",scope:{labelFormatFunction:"&"},replace:!0,link:t}}function p(){var t=function(t,e,n,r){n.onInit&&r.addOnInitFunction(t.onInit),n.onMouseover&&r.addOnMouseoverFunction(t.onMouseover),n.onMouseout&&r.addOnMouseoutFunction(t.onMouseout),n.onResize&&r.addOnResizeFunction(t.onResize),n.onResized&&r.addOnResizedFunction(t.onResized),n.onRendered&&r.addOnRenderedFunction(t.onRendered),n.onClickData&&r.addDataOnClickFunction(t.onClickData),n.onMouseoverData&&r.addDataOnMouseoverFunction(t.onMouseoverData),n.onMouseoutData&&r.addDataOnMouseoutFunction(t.onMouseoutData)};return{require:"^c3chart",restrict:"E",scope:{onInit:"&",onMouseover:"&",onMouseout:"&",onResize:"&",onResized:"&",onRendered:"&",onClickData:"&",onMouseoverData:"&",onMouseoutData:"&"},replace:!0,link:t}}function g(){var t=function(t,e,n,r){var i={};n.min&&(i.min=parseInt(n.min)),n.max&&(i.max=parseInt(n.max)),n.width&&(i.width=parseInt(n.width)),n.units&&(i.units=n.units),n.showLabel&&(i.label={show:"true"===n.showLabel}),n.expand&&(i.expand="true"===n.expand),r.addGauge(i),n.labelFormatFunction&&r.addGaugeLabelFormatFunction(t.labelFormatFunction())};return{require:"^c3chart",restrict:"E",scope:{labelFormatFunction:"&"},replace:!0,link:t}}function v(){var t=function(t,e,n,r){var i=n.showX;i&&"true"===i&&r.addGrid("x");var a=n.showY;a&&"true"===a&&r.addGrid("y"); +var o=n.showY2;o&&"true"===o&&r.addGrid("y2");var s=n.showFocus;s&&"false"===s&&r.hideGridFocus()};return{require:"^c3chart",restrict:"E",scope:{},replace:!0,link:t,transclude:!0,template:"
    "}}function m(){var t=function(t,e,n,r){var i=n.axisId,a=n.gridValue,o=n.gridText,s=n.gridClass,u=n.position;r.addGridLine(i,a,o,s,u)};return{require:"^c3chart",restrict:"E",scope:{},replace:!0,link:t}}function y(){var t=function(t,e,n,r){var i=n.groupValues.split(",");r.addGroup(i)};return{require:"^c3chart",restrict:"E",scope:{},replace:!0,link:t}}function x(){var t=function(t,e,n,r){var i=null,a=n.showLegend;if(a&&"false"===a)i={show:!1};else{var o=n.legendPosition;o&&(i={position:o});var s=n.legendInset;if(s){i={position:"inset",inset:{anchor:s}};var u=n.legendInsetX;u&&(i.inset.x=parseInt(u));var c=n.legendInsetY;c&&(i.inset.y=parseInt(c));var l=n.legendInsetStep;l&&(i.inset.step=parseInt(l))}}n.onMouseover&&(i=i||{},i.item=i.item||{},i.item.onmouseover=function(e){t.$apply(function(){t.onMouseover({data:e})})}),n.onMouseout&&(i=i||{},i.item=i.item||{},i.item.onmouseout=function(e){t.$apply(function(){t.onMouseout({data:e})})}),n.onClick&&(i=i||{},i.item=i.item||{},i.item.onclick=function(e){t.$apply(function(){t.onClick({data:e})})}),null!=i&&r.addLegend(i)};return{require:"^c3chart",restrict:"E",scope:{onMouseover:"&",onMouseout:"&",onClick:"&"},replace:!0,link:t}}function b(){var t=function(t,e,n,r){var i={};n.stepType&&(i.step=i.step||{},i.step.type=n.stepType),n.connectNull&&(i.connectNull="true"===n.connectNull),r.addLine(i)};return{require:"^c3chart",restrict:"E",scope:{},replace:!0,link:t}}function _(){var t=function(t,e,n,r){var i={};n.showLabel&&(i.label={show:"true"===n.showLabel}),n.thresholdLabel&&(i.label||(i.label={}),i.label.threshold=parseFloat(n.thresholdLabel)),n.expand&&(i.expand="true"===n.expand),r.addPie(i),n.labelFormatFunction&&r.addPieLabelFormatFunction(t.labelFormatFunction())};return{require:"^c3chart",restrict:"E",scope:{labelFormatFunction:"&"},replace:!0,link:t}}function w(){var t=function(t,e,n,r){var i={};n.showPoint&&(i.show="true"===n.showPoint),n.pointExpandEnabled&&(i.focus||(i.focus={expand:{}}),i.focus.expand.enabled="false"!==n.pointsFocusEnabled),n.pointExpandRadius&&(i.focus||(pie.focus={expand:{}}),i.focus.expand.r=parseInt(n.pointFocusRadius)),n.pointRadius&&(i.r=parseInt(n.pointRadius)),n.pointSelectRadius&&(i.select={r:parseInt(n.pointSelectRadius)}),r.addPoint(i)};return{require:"^c3chart",restrict:"E",scope:{},replace:!0,link:t}}function S(){var t=function(t,e,n,r){var i="dashed",a=[],o=[],s=[];n.regionStyle&&(i=n.regionStyle),n.regionStarts&&(a=n.regionStarts.split(",")),n.regionEnds&&(o=n.regionEnds.split(",")),a.length>o.length&&s.push({start:a.pop(),style:i}),a.length"+(o||0===o?""+o+"":"")),s=g(t[a].value,t[a].ratio,t[a].id,t[a].index),void 0!==s&&(u=p(t[a].name,t[a].ratio,t[a].id,t[a].index),c=f.levelColor?f.levelColor(t[a].value):r(t[a].id),i+="",i+=""+u+"",i+=""+s+"",i+=""));return i+""}),null!=i&&r.addTooltip(i),n.titleFormatFunction&&r.addTooltipTitleFormatFunction(t.titleFormatFunction()),n.nameFormatFunction&&r.addTooltipNameFormatFunction(t.nameFormatFunction()),n.valueFormatFunction&&r.addTooltipValueFormatFunction(t.valueFormatFunction()),n.contentFormatFunction&&r.addTooltipContentFormatFunction(t.contentFormatFunction())};return{require:"^c3chart",restrict:"E",scope:{valueFormatFunction:"&",nameFormatFunction:"&",titleFormatFunction:"&",contentFormatFunction:"&"},replace:!0,link:t}}/*! c3-angular - v1.3.1 - 2016-08-04 +* https://github.com/jettro/c3-angular-directive +* Copyright (c) 2016 ; Licensed */ +angular.module("gridshore.c3js.chart",[]),angular.module("gridshore.c3js.chart").directive("chartAxes",n),angular.module("gridshore.c3js.chart").directive("chartAxis",r),angular.module("gridshore.c3js.chart").directive("chartAxisX",i),angular.module("gridshore.c3js.chart").directive("chartAxisXTick",a),angular.module("gridshore.c3js.chart").directive("chartAxisY",o),angular.module("gridshore.c3js.chart").directive("chartAxisYTick",s),angular.module("gridshore.c3js.chart").directive("chartBar",u),angular.module("gridshore.c3js.chart").directive("c3chart",["$timeout",function(t){return c(t)}]),angular.module("gridshore.c3js.chart").directive("chartColors",l),angular.module("gridshore.c3js.chart").directive("chartColumn",f),angular.module("gridshore.c3js.chart").controller("ChartController",h),h.$inject=["$scope","$timeout"],angular.module("gridshore.c3js.chart").directive("chartDonut",d),angular.module("gridshore.c3js.chart").directive("chartEvents",p),angular.module("gridshore.c3js.chart").directive("chartGauge",g),angular.module("gridshore.c3js.chart").directive("chartGrid",v),angular.module("gridshore.c3js.chart").directive("chartGridOptional",m),angular.module("gridshore.c3js.chart").directive("chartGroup",y),angular.module("gridshore.c3js.chart").directive("chartLegend",x),angular.module("gridshore.c3js.chart").directive("chartLine",b),angular.module("gridshore.c3js.chart").directive("chartPie",_),angular.module("gridshore.c3js.chart").directive("chartPoints",w),angular.module("gridshore.c3js.chart").directive("chartRegion",S),angular.module("gridshore.c3js.chart").directive("selection",$),angular.module("gridshore.c3js.chart").directive("chartSize",k),angular.module("gridshore.c3js.chart").directive("chartTooltip",T)},function(t,e,n){var r,i;!function(a){"use strict";function o(t){this.owner=t}function s(t,e){if(Object.create)e.prototype=Object.create(t.prototype);else{var n=function(){};n.prototype=t.prototype,e.prototype=new n}return e.prototype.constructor=e,e}function u(t){var e=this.internal=new c(this);e.loadConfig(t),e.beforeInit(t),e.init(),e.afterInit(t),function t(e,n,r){Object.keys(e).forEach(function(i){n[i]=e[i].bind(r),Object.keys(e[i]).length>0&&t(e[i],n[i],r)})}(h,this,this)}function c(t){var e=this;e.d3=a.d3?a.d3:n(118),e.api=t,e.config=e.getDefaultConfig(),e.data={},e.cache={},e.axes={}}function l(t){o.call(this,t)}function f(t,e){function n(t,e){t.attr("transform",function(t){return"translate("+Math.ceil(e(t)+b)+", 0)"})}function r(t,e){t.attr("transform",function(t){return"translate(0,"+Math.ceil(e(t))+")"})}function i(t){var e=t[0],n=t[t.length-1];return e0&&r[0]>0&&r.unshift(r[0]-(r[1]-r[0])),r}function o(){var t,n=g.copy();return e.isCategory&&(t=g.domain(),n.domain([t[0],t[1]-1])),n}function s(t){var e=h?h(t):t;return"undefined"!=typeof e?e:""}function u(t){if(I)return I;var e={h:11.5,w:5.5};return t.select("text").text(s).each(function(t){var n=this.getBoundingClientRect(),r=s(t),i=n.height,a=r?n.width/r.length:void 0;i&&a&&(e.h=i,e.w=a)}).text(""),I=e,e}function c(n){return e.withoutTransition?n:t.transition(n)}function l(h){h.each(function(){function h(t,n){function r(t,e){a=void 0;for(var s=1;s0?"start":"end":"middle"}function S(t){return t?"rotate("+t+")":""}function $(t){return t?8*Math.sin(Math.PI*(t/180)):0}function k(t){return t?11.5-2.5*(t/15)*(t>0?1:-1):Y}var T,A,C,E=l.g=t.select(this),P=this.__chart__||g,I=this.__chart__=o(),O=x?x:a(I),M=E.selectAll(".tick").data(O,I),R=M.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),L=M.exit().remove(),D=c(M).style("opacity",1),j=g.rangeExtent?g.rangeExtent():i(g.range()),F=E.selectAll(".domain").data([0]),V=(F.enter().append("path").attr("class","domain"),c(F));R.append("line"),R.append("text");var N=R.select("line"),z=D.select("line"),G=R.select("text"),H=D.select("text");e.isCategory?(b=Math.ceil((I(1)-I(0))/2),A=p?0:b,C=p?b:0):b=A=0;var U,B,W=u(E.select(".tick")),q=[],Y=Math.max(m,0)+y,X="left"===v||"right"===v;U=M.select("text"),B=U.selectAll("tspan").data(function(t,n){var r=e.tickMultiline?h(t,e.tickWidth):[].concat(s(t));return q[n]=r.length,r.map(function(t){return{index:n,splitted:t}})}),B.enter().append("tspan"),B.exit().remove(),B.text(function(t){return t.splitted});var K=e.tickTextRotate;switch(v){case"bottom":T=n,N.attr("y2",m),G.attr("y",Y),z.attr("x1",A).attr("x2",A).attr("y2",_),H.attr("x",0).attr("y",k(K)).style("text-anchor",w(K)).attr("transform",S(K)),B.attr("x",0).attr("dy",d).attr("dx",$(K)),V.attr("d","M"+j[0]+","+f+"V0H"+j[1]+"V"+f);break;case"top":T=n,N.attr("y2",-m),G.attr("y",-Y),z.attr("x2",0).attr("y2",-m),H.attr("x",0).attr("y",-Y),U.style("text-anchor","middle"),B.attr("x",0).attr("dy","0em"),V.attr("d","M"+j[0]+","+-f+"V0H"+j[1]+"V"+-f);break;case"left":T=r,N.attr("x2",-m),G.attr("x",-Y),z.attr("x2",-m).attr("y1",C).attr("y2",C),H.attr("x",-Y).attr("y",b),U.style("text-anchor","end"),B.attr("x",-Y).attr("dy",d),V.attr("d","M"+-f+","+j[0]+"H0V"+j[1]+"H"+-f);break;case"right":T=r,N.attr("x2",m),G.attr("x",Y),z.attr("x2",m).attr("y2",0),H.attr("x",Y).attr("y",0),U.style("text-anchor","start"),B.attr("x",Y).attr("dy",d),V.attr("d","M"+f+","+j[0]+"H0V"+j[1]+"H"+f)}if(I.rangeBand){var Z=I,Q=Z.rangeBand()/2;P=I=function(t){return Z(t)+Q}}else P.rangeBand?P=I:L.call(T,I);R.call(T,P),D.call(T,I)})}var f,h,d,p,g=t.scale.linear(),v="bottom",m=6,y=3,x=null,b=0,_=!0;return e=e||{},f=e.withOuterTick?6:0,l.scale=function(t){return arguments.length?(g=t,l):g},l.orient=function(t){return arguments.length?(v=t in{top:1,right:1,bottom:1,left:1}?t+"":"bottom",l):v},l.tickFormat=function(t){return arguments.length?(h=t,l):h},l.tickCentered=function(t){return arguments.length?(p=t,l):p},l.tickOffset=function(){return b},l.tickInterval=function(){var t,n;return e.isCategory?t=2*b:(n=l.g.select("path.domain").node().getTotalLength()-2*f,t=n/l.g.selectAll("line").size()),t===1/0?0:t},l.ticks=function(){return arguments.length?(d=arguments,l):d},l.tickCulling=function(t){return arguments.length?(_=t,l):_},l.tickValues=function(t){if("function"==typeof t)x=function(){return t(g.domain())};else{if(!arguments.length)return x;x=t}return l},l}var h,d,p,g={version:"0.4.11"};g.generate=function(t){return new u(t)},g.chart={fn:u.prototype,internal:{fn:c.prototype,axis:{fn:l.prototype}}},h=g.chart.fn,d=g.chart.internal.fn,p=g.chart.internal.axis.fn,d.beforeInit=function(){},d.afterInit=function(){},d.init=function(){var t=this,e=t.config;if(t.initParams(),e.data_url)t.convertUrlToData(e.data_url,e.data_mimeType,e.data_headers,e.data_keys,t.initWithData);else if(e.data_json)t.initWithData(t.convertJsonToData(e.data_json,e.data_keys));else if(e.data_rows)t.initWithData(t.convertRowsToData(e.data_rows));else{if(!e.data_columns)throw Error("url or json or rows or columns is required.");t.initWithData(t.convertColumnsToData(e.data_columns))}},d.initParams=function(){var t=this,e=t.d3,n=t.config;t.clipId="c3-"+ +new Date+"-clip",t.clipIdForXAxis=t.clipId+"-xaxis",t.clipIdForYAxis=t.clipId+"-yaxis",t.clipIdForGrid=t.clipId+"-grid",t.clipIdForSubchart=t.clipId+"-subchart",t.clipPath=t.getClipPath(t.clipId),t.clipPathForXAxis=t.getClipPath(t.clipIdForXAxis),t.clipPathForYAxis=t.getClipPath(t.clipIdForYAxis),t.clipPathForGrid=t.getClipPath(t.clipIdForGrid),t.clipPathForSubchart=t.getClipPath(t.clipIdForSubchart),t.dragStart=null,t.dragging=!1,t.flowing=!1,t.cancelClick=!1,t.mouseover=!1,t.transiting=!1,t.color=t.generateColor(),t.levelColor=t.generateLevelColor(),t.dataTimeFormat=n.data_xLocaltime?e.time.format:e.time.format.utc,t.axisTimeFormat=n.axis_x_localtime?e.time.format:e.time.format.utc,t.defaultAxisTimeFormat=t.axisTimeFormat.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%-m/%-d",function(t){return t.getDay()&&1!==t.getDate()}],["%-m/%-d",function(t){return 1!==t.getDate()}],["%-m/%-d",function(t){return t.getMonth()}],["%Y/%-m/%-d",function(){return!0}]]),t.hiddenTargetIds=[],t.hiddenLegendIds=[],t.focusedTargetIds=[],t.defocusedTargetIds=[],t.xOrient=n.axis_rotated?"left":"bottom",t.yOrient=n.axis_rotated?n.axis_y_inner?"top":"bottom":n.axis_y_inner?"right":"left",t.y2Orient=n.axis_rotated?n.axis_y2_inner?"bottom":"top":n.axis_y2_inner?"left":"right",t.subXOrient=n.axis_rotated?"left":"bottom",t.isLegendRight="right"===n.legend_position,t.isLegendInset="inset"===n.legend_position,t.isLegendTop="top-left"===n.legend_inset_anchor||"top-right"===n.legend_inset_anchor,t.isLegendLeft="top-left"===n.legend_inset_anchor||"bottom-left"===n.legend_inset_anchor,t.legendStep=0,t.legendItemWidth=0,t.legendItemHeight=0,t.currentMaxTickWidths={x:0,y:0,y2:0},t.rotated_padding_left=30,t.rotated_padding_right=n.axis_rotated&&!n.axis_x_show?0:30,t.rotated_padding_top=5,t.withoutFadeIn={},t.intervalForObserveInserted=void 0,t.axes.subx=e.selectAll([])},d.initChartElements=function(){this.initBar&&this.initBar(),this.initLine&&this.initLine(),this.initArc&&this.initArc(),this.initGauge&&this.initGauge(),this.initText&&this.initText()},d.initWithData=function(t){var e,n,r=this,i=r.d3,a=r.config,o=!0;r.axis=new l(r),r.initPie&&r.initPie(),r.initBrush&&r.initBrush(),r.initZoom&&r.initZoom(),a.bindto?"function"==typeof a.bindto.node?r.selectChart=a.bindto:r.selectChart=i.select(a.bindto):r.selectChart=i.selectAll([]),r.selectChart.empty()&&(r.selectChart=i.select(document.createElement("div")).style("opacity",0),r.observeInserted(r.selectChart),o=!1),r.selectChart.html("").classed("c3",!0),r.data.xs={},r.data.targets=r.convertDataToTargets(t),a.data_filter&&(r.data.targets=r.data.targets.filter(a.data_filter)),a.data_hide&&r.addHiddenTargetIds(a.data_hide===!0?r.mapToIds(r.data.targets):a.data_hide),a.legend_hide&&r.addHiddenLegendIds(a.legend_hide===!0?r.mapToIds(r.data.targets):a.legend_hide),r.hasType("gauge")&&(a.legend_show=!1),r.updateSizes(),r.updateScales(),r.x.domain(i.extent(r.getXDomain(r.data.targets))),r.y.domain(r.getYDomain(r.data.targets,"y")),r.y2.domain(r.getYDomain(r.data.targets,"y2")),r.subX.domain(r.x.domain()),r.subY.domain(r.y.domain()),r.subY2.domain(r.y2.domain()),r.orgXDomain=r.x.domain(),r.brush&&r.brush.scale(r.subX),a.zoom_enabled&&r.zoom.scale(r.x),r.svg=r.selectChart.append("svg").style("overflow","hidden").on("mouseenter",function(){return a.onmouseover.call(r)}).on("mouseleave",function(){return a.onmouseout.call(r)}),r.config.svg_classname&&r.svg.attr("class",r.config.svg_classname),e=r.svg.append("defs"),r.clipChart=r.appendClip(e,r.clipId),r.clipXAxis=r.appendClip(e,r.clipIdForXAxis),r.clipYAxis=r.appendClip(e,r.clipIdForYAxis),r.clipGrid=r.appendClip(e,r.clipIdForGrid),r.clipSubchart=r.appendClip(e,r.clipIdForSubchart),r.updateSvgSize(),n=r.main=r.svg.append("g").attr("transform",r.getTranslate("main")),r.initSubchart&&r.initSubchart(),r.initTooltip&&r.initTooltip(),r.initLegend&&r.initLegend(),r.initTitle&&r.initTitle(),n.append("text").attr("class",v.text+" "+v.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),r.initRegion(),r.initGrid(),n.append("g").attr("clip-path",r.clipPath).attr("class",v.chart),a.grid_lines_front&&r.initGridLines(),r.initEventRect(),r.initChartElements(),n.insert("rect",a.zoom_privileged?null:"g."+v.regions).attr("class",v.zoomRect).attr("width",r.width).attr("height",r.height).style("opacity",0).on("dblclick.zoom",null),a.axis_x_extent&&r.brush.extent(r.getDefaultExtent()),r.axis.init(),r.updateTargets(r.data.targets),o&&(r.updateDimension(),r.config.oninit.call(r),r.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1})),r.bindResize(),r.api.element=r.selectChart.node()},d.smoothLines=function(t,e){var n=this;"grid"===e&&t.each(function(){var t=n.d3.select(this),e=t.attr("x1"),r=t.attr("x2"),i=t.attr("y1"),a=t.attr("y2");t.attr({x1:Math.ceil(e),x2:Math.ceil(r),y1:Math.ceil(i),y2:Math.ceil(a)})})},d.updateSizes=function(){var t=this,e=t.config,n=t.legend?t.getLegendHeight():0,r=t.legend?t.getLegendWidth():0,i=t.isLegendRight||t.isLegendInset?0:n,a=t.hasArcType(),o=e.axis_rotated||a?0:t.getHorizontalAxisHeight("x"),s=e.subchart_show&&!a?e.subchart_size_height+o:0;t.currentWidth=t.getCurrentWidth(),t.currentHeight=t.getCurrentHeight(),t.margin=e.axis_rotated?{top:t.getHorizontalAxisHeight("y2")+t.getCurrentPaddingTop(),right:a?0:t.getCurrentPaddingRight(),bottom:t.getHorizontalAxisHeight("y")+i+t.getCurrentPaddingBottom(),left:s+(a?0:t.getCurrentPaddingLeft())}:{top:4+t.getCurrentPaddingTop(),right:a?0:t.getCurrentPaddingRight(),bottom:o+s+i+t.getCurrentPaddingBottom(),left:a?0:t.getCurrentPaddingLeft()},t.margin2=e.axis_rotated?{top:t.margin.top,right:NaN,bottom:20+i,left:t.rotated_padding_left}:{top:t.currentHeight-s-i,right:NaN,bottom:o+i,left:t.margin.left},t.margin3={top:0,right:NaN,bottom:0,left:0},t.updateSizeForLegend&&t.updateSizeForLegend(n,r),t.width=t.currentWidth-t.margin.left-t.margin.right,t.height=t.currentHeight-t.margin.top-t.margin.bottom,t.width<0&&(t.width=0),t.height<0&&(t.height=0),t.width2=e.axis_rotated?t.margin.left-t.rotated_padding_left-t.rotated_padding_right:t.width,t.height2=e.axis_rotated?t.height:t.currentHeight-t.margin2.top-t.margin2.bottom,t.width2<0&&(t.width2=0),t.height2<0&&(t.height2=0),t.arcWidth=t.width-(t.isLegendRight?r+10:0),t.arcHeight=t.height-(t.isLegendRight?0:10),t.hasType("gauge")&&!e.gauge_fullCircle&&(t.arcHeight+=t.height-t.getGaugeLabelHeight()),t.updateRadius&&t.updateRadius(),t.isLegendRight&&a&&(t.margin3.left=t.arcWidth/2+1.1*t.radiusExpanded)},d.updateTargets=function(t){var e=this;e.updateTargetsForText(t),e.updateTargetsForBar(t),e.updateTargetsForLine(t),e.hasArcType()&&e.updateTargetsForArc&&e.updateTargetsForArc(t),e.updateTargetsForSubchart&&e.updateTargetsForSubchart(t),e.showTargets()},d.showTargets=function(){var t=this;t.svg.selectAll("."+v.target).filter(function(e){return t.isTargetToShow(e.id)}).transition().duration(t.config.transition_duration).style("opacity",1)},d.redraw=function(t,e){var n,r,i,a,o,s,u,c,l,f,h,d,p,g,m,y,x,b,_,w,S,$,k,T,C,E,P,I,O,M=this,R=M.main,L=M.d3,D=M.config,j=M.getShapeIndices(M.isAreaType),F=M.getShapeIndices(M.isBarType),V=M.getShapeIndices(M.isLineType),N=M.hasArcType(),z=M.filterTargetsToShow(M.data.targets),G=M.xv.bind(M);if(t=t||{},n=A(t,"withY",!0),r=A(t,"withSubchart",!0),i=A(t,"withTransition",!0),s=A(t,"withTransform",!1),u=A(t,"withUpdateXDomain",!1),c=A(t,"withUpdateOrgXDomain",!1),l=A(t,"withTrimXDomain",!0),p=A(t,"withUpdateXAxis",u),f=A(t,"withLegend",!1),h=A(t,"withEventRect",!0),d=A(t,"withDimension",!0),a=A(t,"withTransitionForExit",i),o=A(t,"withTransitionForAxis",i),_=i?D.transition_duration:0,w=a?_:0,S=o?_:0,e=e||M.axis.generateTransitions(S),f&&D.legend_show?M.updateLegend(M.mapToIds(M.data.targets),t,e):d&&M.updateDimension(!0),M.isCategorized()&&0===z.length&&M.x.domain([0,M.axes.x.selectAll(".tick").size()]),z.length?(M.updateXDomain(z,u,c,l),D.axis_x_tick_values||(T=M.axis.updateXAxisTickValues(z))):(M.xAxis.tickValues([]),M.subXAxis.tickValues([])),D.zoom_rescale&&!t.flow&&(P=M.x.orgDomain()),M.y.domain(M.getYDomain(z,"y",P)),M.y2.domain(M.getYDomain(z,"y2",P)),!D.axis_y_tick_values&&D.axis_y_tick_count&&M.yAxis.tickValues(M.axis.generateTickValues(M.y.domain(),D.axis_y_tick_count)),!D.axis_y2_tick_values&&D.axis_y2_tick_count&&M.y2Axis.tickValues(M.axis.generateTickValues(M.y2.domain(),D.axis_y2_tick_count)),M.axis.redraw(e,N),M.axis.updateLabels(i),(u||p)&&z.length)if(D.axis_x_tick_culling&&T){for(C=1;C=0&&L.select(this).style("display",e%E?"none":"block")})}else M.svg.selectAll("."+v.axisX+" .tick text").style("display","block");g=M.generateDrawArea?M.generateDrawArea(j,!1):void 0,m=M.generateDrawBar?M.generateDrawBar(F):void 0,y=M.generateDrawLine?M.generateDrawLine(V,!1):void 0,x=M.generateXYForText(j,F,V,!0),b=M.generateXYForText(j,F,V,!1),n&&(M.subY.domain(M.getYDomain(z,"y")),M.subY2.domain(M.getYDomain(z,"y2"))),M.updateXgridFocus(),R.select("text."+v.text+"."+v.empty).attr("x",M.width/2).attr("y",M.height/2).text(D.data_empty_label_text).transition().style("opacity",z.length?0:1),M.updateGrid(_),M.updateRegion(_),M.updateBar(w),M.updateLine(w),M.updateArea(w),M.updateCircle(),M.hasDataLabel()&&M.updateText(w),M.redrawTitle&&M.redrawTitle(),M.redrawArc&&M.redrawArc(_,w,s),M.redrawSubchart&&M.redrawSubchart(r,e,_,w,j,F,V),R.selectAll("."+v.selectedCircles).filter(M.isBarType.bind(M)).selectAll("circle").remove(),D.interaction_enabled&&!t.flow&&h&&(M.redrawEventRect(),M.updateZoom&&M.updateZoom()),M.updateCircleY(),I=(M.config.axis_rotated?M.circleY:M.circleX).bind(M),O=(M.config.axis_rotated?M.circleX:M.circleY).bind(M),t.flow&&(k=M.generateFlow({targets:z,flow:t.flow,duration:t.flow.duration,drawBar:m,drawLine:y,drawArea:g,cx:I,cy:O,xv:G,xForText:x,yForText:b})),(_||k)&&M.isTabVisible()?L.transition().duration(_).each(function(){var e=[];[M.redrawBar(m,!0),M.redrawLine(y,!0),M.redrawArea(g,!0),M.redrawCircle(I,O,!0),M.redrawText(x,b,t.flow,!0),M.redrawRegion(!0),M.redrawGrid(!0)].forEach(function(t){t.forEach(function(t){e.push(t)})}),$=M.generateWait(),e.forEach(function(t){$.add(t)})}).call($,function(){k&&k(),D.onrendered&&D.onrendered.call(M)}):(M.redrawBar(m),M.redrawLine(y),M.redrawArea(g),M.redrawCircle(I,O),M.redrawText(x,b,t.flow),M.redrawRegion(),M.redrawGrid(),D.onrendered&&D.onrendered.call(M)),M.mapToIds(M.data.targets).forEach(function(t){M.withoutFadeIn[t]=!0})},d.updateAndRedraw=function(t){var e,n=this,r=n.config;t=t||{},t.withTransition=A(t,"withTransition",!0),t.withTransform=A(t,"withTransform",!1),t.withLegend=A(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=A(t,"withTransitionForTransform",t.withTransition),n.updateSizes(),t.withLegend&&r.legend_show||(e=n.axis.generateTransitions(t.withTransitionForAxis?r.transition_duration:0),n.updateScales(),n.updateSvgSize(),n.transformAll(t.withTransitionForTransform,e)),n.redraw(t,e)},d.redrawWithoutRescale=function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})},d.isTimeSeries=function(){return"timeseries"===this.config.axis_x_type},d.isCategorized=function(){return this.config.axis_x_type.indexOf("categor")>=0},d.isCustomX=function(){var t=this,e=t.config;return!t.isTimeSeries()&&(e.data_x||T(e.data_xs))},d.isTimeSeriesY=function(){return"timeseries"===this.config.axis_y_type},d.getTranslate=function(t){var e,n,r=this,i=r.config;return"main"===t?(e=S(r.margin.left),n=S(r.margin.top)):"context"===t?(e=S(r.margin2.left),n=S(r.margin2.top)):"legend"===t?(e=r.margin3.left,n=r.margin3.top):"x"===t?(e=0,n=i.axis_rotated?0:r.height):"y"===t?(e=0,n=i.axis_rotated?r.height:0):"y2"===t?(e=i.axis_rotated?0:r.width,n=i.axis_rotated?1:0):"subx"===t?(e=0,n=i.axis_rotated?0:r.height2):"arc"===t&&(e=r.arcWidth/2,n=r.arcHeight/2),"translate("+e+","+n+")"},d.initialOpacity=function(t){return null!==t.value&&this.withoutFadeIn[t.id]?1:0},d.initialOpacityForCircle=function(t){return null!==t.value&&this.withoutFadeIn[t.id]?this.opacityForCircle(t):0},d.opacityForCircle=function(t){var e=this.config.point_show?1:0;return m(t.value)?this.isScatterType(t)?.5:e:0},d.opacityForText=function(){return this.hasDataLabel()?1:0},d.xx=function(t){return t?this.x(t.x):null},d.xv=function(t){var e=this,n=t.value;return e.isTimeSeries()?n=e.parseDate(t.value):e.isCategorized()&&"string"==typeof t.value&&(n=e.config.axis_x_categories.indexOf(t.value)),Math.ceil(e.x(n))},d.yv=function(t){var e=this,n=t.axis&&"y2"===t.axis?e.y2:e.y;return Math.ceil(n(t.value))},d.subxx=function(t){return t?this.subX(t.x):null},d.transformMain=function(t,e){var n,r,i,a=this;e&&e.axisX?n=e.axisX:(n=a.main.select("."+v.axisX),t&&(n=n.transition())),e&&e.axisY?r=e.axisY:(r=a.main.select("."+v.axisY),t&&(r=r.transition())),e&&e.axisY2?i=e.axisY2:(i=a.main.select("."+v.axisY2),t&&(i=i.transition())),(t?a.main.transition():a.main).attr("transform",a.getTranslate("main")),n.attr("transform",a.getTranslate("x")),r.attr("transform",a.getTranslate("y")),i.attr("transform",a.getTranslate("y2")),a.main.select("."+v.chartArcs).attr("transform",a.getTranslate("arc"))},d.transformAll=function(t,e){var n=this;n.transformMain(t,e),n.config.subchart_show&&n.transformContext(t,e),n.legend&&n.transformLegend(t)},d.updateSvgSize=function(){var t=this,e=t.svg.select(".c3-brush .background");t.svg.attr("width",t.currentWidth).attr("height",t.currentHeight),t.svg.selectAll(["#"+t.clipId,"#"+t.clipIdForGrid]).select("rect").attr("width",t.width).attr("height",t.height),t.svg.select("#"+t.clipIdForXAxis).select("rect").attr("x",t.getXAxisClipX.bind(t)).attr("y",t.getXAxisClipY.bind(t)).attr("width",t.getXAxisClipWidth.bind(t)).attr("height",t.getXAxisClipHeight.bind(t)),t.svg.select("#"+t.clipIdForYAxis).select("rect").attr("x",t.getYAxisClipX.bind(t)).attr("y",t.getYAxisClipY.bind(t)).attr("width",t.getYAxisClipWidth.bind(t)).attr("height",t.getYAxisClipHeight.bind(t)),t.svg.select("#"+t.clipIdForSubchart).select("rect").attr("width",t.width).attr("height",e.size()?e.attr("height"):0),t.svg.select("."+v.zoomRect).attr("width",t.width).attr("height",t.height),t.selectChart.style("max-height",t.currentHeight+"px")},d.updateDimension=function(t){var e=this;t||(e.config.axis_rotated?(e.axes.x.call(e.xAxis),e.axes.subx.call(e.subXAxis)):(e.axes.y.call(e.yAxis),e.axes.y2.call(e.y2Axis))),e.updateSizes(),e.updateScales(),e.updateSvgSize(),e.transformAll(!1)},d.observeInserted=function(t){var e,n=this;return"undefined"==typeof MutationObserver?void a.console.error("MutationObserver not defined."):(e=new MutationObserver(function(r){r.forEach(function(r){"childList"===r.type&&r.previousSibling&&(e.disconnect(),n.intervalForObserveInserted=a.setInterval(function(){t.node().parentNode&&(a.clearInterval(n.intervalForObserveInserted),n.updateDimension(),n.brush&&n.brush.update(),n.config.oninit.call(n),n.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),t.transition().style("opacity",1))},10))})}),void e.observe(t.node(),{attributes:!0,childList:!0,characterData:!0}))},d.bindResize=function(){var t=this,e=t.config;if(t.resizeFunction=t.generateResize(),t.resizeFunction.add(function(){e.onresize.call(t)}),e.resize_auto&&t.resizeFunction.add(function(){void 0!==t.resizeTimeout&&a.clearTimeout(t.resizeTimeout),t.resizeTimeout=a.setTimeout(function(){delete t.resizeTimeout,t.api.flush()},100)}),t.resizeFunction.add(function(){e.onresized.call(t)}),a.attachEvent)a.attachEvent("onresize",t.resizeFunction);else if(a.addEventListener)a.addEventListener("resize",t.resizeFunction,!1);else{var n=a.onresize;n?n.add&&n.remove||(n=t.generateResize(),n.add(a.onresize)):n=t.generateResize(),n.add(t.resizeFunction),a.onresize=n}},d.generateResize=function(){function t(){e.forEach(function(t){t()})}var e=[];return t.add=function(t){e.push(t)},t.remove=function(t){for(var n=0;n0)for(o=s.hasNegativeValueInTargets(t),e=0;e=0; +}),0!==i.length)for(r=i[0],o&&l[r]&&l[r].forEach(function(t,e){l[r][e]=t<0?t:0}),n=1;n0||(l[r][e]+=+t)});return s.d3.min(Object.keys(l).map(function(t){return s.d3.min(l[t])}))},d.getYDomainMax=function(t){var e,n,r,i,a,o,s=this,u=s.config,c=s.mapToIds(t),l=s.getValuesAsIdKeyed(t);if(u.data_groups.length>0)for(o=s.hasPositiveValueInTargets(t),e=0;e=0}),0!==i.length)for(r=i[0],o&&l[r]&&l[r].forEach(function(t,e){l[r][e]=t>0?t:0}),n=1;n=0&&w>=0,d=_<=0&&w<=0,(m(x)&&h||m(b)&&d)&&(k=!1),k&&(h&&(_=0),d&&(w=0)),i=Math.abs(w-_),a=o=s=.1*i,"undefined"!=typeof S&&(u=Math.max(Math.abs(_),Math.abs(w)),w=S+u,_=S-u),C?(c=p.getDataLabelLength(_,w,"width"),l=$(p.y.range()),f=[c[0]/l,c[1]/l],o+=i*(f[1]/(1-f[0]-f[1])),s+=i*(f[0]/(1-f[0]-f[1]))):E&&(c=p.getDataLabelLength(_,w,"height"),o+=p.axis.convertPixelsToAxisPadding(c[1],i),s+=p.axis.convertPixelsToAxisPadding(c[0],i)),"y"===e&&T(g.axis_y_padding)&&(o=p.axis.getPadding(g.axis_y_padding,"top",o,i),s=p.axis.getPadding(g.axis_y_padding,"bottom",s,i)),"y2"===e&&T(g.axis_y2_padding)&&(o=p.axis.getPadding(g.axis_y2_padding,"top",o,i),s=p.axis.getPadding(g.axis_y2_padding,"bottom",s,i)),k&&(h&&(s=_),d&&(o=-w)),r=[_-s,w+o],A?r.reverse():r)},d.getXDomainMin=function(t){var e=this,n=e.config;return _(n.axis_x_min)?e.isTimeSeries()?this.parseDate(n.axis_x_min):n.axis_x_min:e.d3.min(t,function(t){return e.d3.min(t.values,function(t){return t.x})})},d.getXDomainMax=function(t){var e=this,n=e.config;return _(n.axis_x_max)?e.isTimeSeries()?this.parseDate(n.axis_x_max):n.axis_x_max:e.d3.max(t,function(t){return e.d3.max(t.values,function(t){return t.x})})},d.getXDomainPadding=function(t){var e,n,r,i,a=this,o=a.config,s=t[1]-t[0];return a.isCategorized()?n=0:a.hasType("bar")?(e=a.getMaxDataCount(),n=e>1?s/(e-1)/2:.5):n=.01*s,"object"==typeof o.axis_x_padding&&T(o.axis_x_padding)?(r=m(o.axis_x_padding.left)?o.axis_x_padding.left:n,i=m(o.axis_x_padding.right)?o.axis_x_padding.right:n):r=i="number"==typeof o.axis_x_padding?o.axis_x_padding:n,{left:r,right:i}},d.getXDomain=function(t){var e=this,n=[e.getXDomainMin(t),e.getXDomainMax(t)],r=n[0],i=n[1],a=e.getXDomainPadding(n),o=0,s=0;return r-i!==0||e.isCategorized()||(e.isTimeSeries()?(r=new Date(.5*r.getTime()),i=new Date(1.5*i.getTime())):(r=0===r?1:.5*r,i=0===i?-1:1.5*i)),(r||0===r)&&(o=e.isTimeSeries()?new Date(r.getTime()-a.left):r-a.left),(i||0===i)&&(s=e.isTimeSeries()?new Date(i.getTime()+a.right):i+a.right),[o,s]},d.updateXDomain=function(t,e,n,r,i){var a=this,o=a.config;return n&&(a.x.domain(i?i:a.d3.extent(a.getXDomain(t))),a.orgXDomain=a.x.domain(),o.zoom_enabled&&a.zoom.scale(a.x).updateScaleExtent(),a.subX.domain(a.x.domain()),a.brush&&a.brush.scale(a.subX)),e&&(a.x.domain(i?i:!a.brush||a.brush.empty()?a.orgXDomain:a.brush.extent()),o.zoom_enabled&&a.zoom.scale(a.x).updateScaleExtent()),r&&a.x.domain(a.trimXDomain(a.x.orgDomain())),a.x.domain()},d.trimXDomain=function(t){var e=this.getZoomDomain(),n=e[0],r=e[1];return t[0]<=n&&(t[1]=+t[1]+(n-t[0]),t[0]=n),r<=t[1]&&(t[0]=+t[0]-(t[1]-r),t[1]=r),t},d.isX=function(t){var e=this,n=e.config;return n.data_x&&t===n.data_x||T(n.data_xs)&&C(n.data_xs,t)},d.isNotX=function(t){return!this.isX(t)},d.getXKey=function(t){var e=this,n=e.config;return n.data_x?n.data_x:T(n.data_xs)?n.data_xs[t]:null},d.getXValuesOfXKey=function(t,e){var n,r=this,i=e&&T(e)?r.mapToIds(e):[];return i.forEach(function(e){r.getXKey(e)===t&&(n=r.data.xs[e])}),n},d.getIndexByX=function(t){var e=this,n=e.filterByX(e.data.targets,t);return n.length?n[0].index:null},d.getXValue=function(t,e){var n=this;return t in n.data.xs&&n.data.xs[t]&&m(n.data.xs[t][e])?n.data.xs[t][e]:e},d.getOtherTargetXs=function(){var t=this,e=Object.keys(t.data.xs);return e.length?t.data.xs[e[0]]:null},d.getOtherTargetX=function(t){var e=this.getOtherTargetXs();return e&&t1},d.isMultipleX=function(){return T(this.config.data_xs)||!this.config.data_xSort||this.hasType("scatter")},d.addName=function(t){var e,n=this;return t&&(e=n.config.data_names[t.id],t.name=void 0!==e?e:t.id),t},d.getValueOnIndex=function(t,e){var n=t.filter(function(t){return t.index===e});return n.length?n[0]:null},d.updateTargetX=function(t,e){var n=this;t.forEach(function(t){t.values.forEach(function(r,i){r.x=n.generateTargetX(e[i],t.id,i)}),n.data.xs[t.id]=e})},d.updateTargetXs=function(t,e){var n=this;t.forEach(function(t){e[t.id]&&n.updateTargetX([t],e[t.id])})},d.generateTargetX=function(t,e,n){var r,i=this;return r=i.isTimeSeries()?t?i.parseDate(t):i.parseDate(i.getXValue(e,n)):i.isCustomX()&&!i.isCategorized()?m(t)?+t:i.getXValue(e,n):n},d.cloneTarget=function(t){return{id:t.id,id_org:t.id_org,values:t.values.map(function(t){return{x:t.x,value:t.value,id:t.id}})}},d.updateXs=function(){var t=this;t.data.targets.length&&(t.xs=[],t.data.targets[0].values.forEach(function(e){t.xs[e.index]=e.x}))},d.getPrevX=function(t){var e=this.xs[t-1];return"undefined"!=typeof e?e:null},d.getNextX=function(t){var e=this.xs[t+1];return"undefined"!=typeof e?e:null},d.getMaxDataCount=function(){var t=this;return t.d3.max(t.data.targets,function(t){return t.values.length})},d.getMaxDataCountTarget=function(t){var e,n=t.length,r=0;return n>1?t.forEach(function(t){t.values.length>r&&(e=t,r=t.values.length)}):e=n?t[0]:null,e},d.getEdgeX=function(t){var e=this;return t.length?[e.d3.min(t,function(t){return t.values[0].x}),e.d3.max(t,function(t){return t.values[t.values.length-1].x})]:[0,0]},d.mapToIds=function(t){return t.map(function(t){return t.id})},d.mapToTargetIds=function(t){var e=this;return t?[].concat(t):e.mapToIds(e.data.targets)},d.hasTarget=function(t,e){var n,r=this.mapToIds(t);for(n=0;ne?1:t>=e?0:NaN})},d.addHiddenTargetIds=function(t){this.hiddenTargetIds=this.hiddenTargetIds.concat(t)},d.removeHiddenTargetIds=function(t){this.hiddenTargetIds=this.hiddenTargetIds.filter(function(e){return t.indexOf(e)<0})},d.addHiddenLegendIds=function(t){this.hiddenLegendIds=this.hiddenLegendIds.concat(t)},d.removeHiddenLegendIds=function(t){this.hiddenLegendIds=this.hiddenLegendIds.filter(function(e){return t.indexOf(e)<0})},d.getValuesAsIdKeyed=function(t){var e={};return t.forEach(function(t){e[t.id]=[],t.values.forEach(function(n){e[t.id].push(n.value)})}),e},d.checkValueInTargets=function(t,e){var n,r,i,a=Object.keys(t);for(n=0;n0})},d.isOrderDesc=function(){var t=this.config;return"string"==typeof t.data_order&&"desc"===t.data_order.toLowerCase()},d.isOrderAsc=function(){var t=this.config;return"string"==typeof t.data_order&&"asc"===t.data_order.toLowerCase()},d.orderTargets=function(t){var e=this,n=e.config,r=e.isOrderAsc(),i=e.isOrderDesc();return r||i?t.sort(function(t,e){var n=function(t,e){return t+Math.abs(e.value)},i=t.values.reduce(n,0),a=e.values.reduce(n,0);return r?a-i:i-a}):y(n.data_order)&&t.sort(n.data_order),t},d.filterByX=function(t,e){return this.d3.merge(t.map(function(t){return t.values})).filter(function(t){return t.x-e===0})},d.filterRemoveNull=function(t){return t.filter(function(t){return m(t.value)})},d.filterByXDomain=function(t,e){return t.map(function(t){return{id:t.id,id_org:t.id_org,values:t.values.filter(function(t){return e[0]<=t.x&&t.x<=e[1]})}})},d.hasDataLabel=function(){var t=this.config;return!("boolean"!=typeof t.data_labels||!t.data_labels)||!("object"!=typeof t.data_labels||!T(t.data_labels))},d.getDataLabelLength=function(t,e,n){var r=this,i=[0,0],a=1.3;return r.selectChart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text(function(t){return r.dataLabelFormat(t.id)(t)}).each(function(t,e){i[e]=this.getBoundingClientRect()[n]*a}).remove(),i},d.isNoneArc=function(t){return this.hasTarget(this.data.targets,t.id)},d.isArc=function(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},d.findSameXOfValues=function(t,e){var n,r=t[e].x,i=[];for(n=e-1;n>=0&&r===t[n].x;n--)i.push(t[n]);for(n=e;n=0?r.data.xs[n]=(e&&r.data.xs[n]?r.data.xs[n]:[]).concat(t.map(function(t){return t[a]}).filter(m).map(function(t,e){return r.generateTargetX(t,n,e)})):i.data_x?r.data.xs[n]=r.getOtherTargetXs():T(i.data_xs)&&(r.data.xs[n]=r.getXValuesOfXKey(a,r.data.targets)):r.data.xs[n]=t.map(function(t,e){return e})}),a.forEach(function(t){if(!r.data.xs[t])throw new Error('x is not defined for id = "'+t+'".')}),n=a.map(function(e,n){var a=i.data_idConverter(e);return{id:a,id_org:e,values:t.map(function(t,o){var s,u=r.getXKey(e),c=t[u],l=null===t[e]||isNaN(t[e])?null:+t[e];return r.isCustomX()&&r.isCategorized()&&0===n&&!b(c)?(0===n&&0===o&&(i.axis_x_categories=[]),s=i.axis_x_categories.indexOf(c),s===-1&&(s=i.axis_x_categories.length,i.axis_x_categories.push(c))):s=r.generateTargetX(c,e,o),(b(t[e])||r.data.xs[e].length<=o)&&(s=void 0),{x:s,value:l,id:a}}).filter(function(t){return _(t.x)})}}),n.forEach(function(t){var e;i.data_xSort&&(t.values=t.values.sort(function(t,e){var n=t.x||0===t.x?t.x:1/0,r=e.x||0===e.x?e.x:1/0;return n-r})),e=0,t.values.forEach(function(t){t.index=e++}),r.data.xs[t.id].sort(function(t,e){return t-e})}),r.hasNegativeValue=r.hasNegativeValueInTargets(n),r.hasPositiveValue=r.hasPositiveValueInTargets(n),i.data_type&&r.setTargetType(r.mapToIds(n).filter(function(t){return!(t in i.data_types)}),i.data_type),n.forEach(function(t){r.addCache(t.id_org,t)}),n},d.load=function(t,e){var n=this;t&&(e.filter&&(t=t.filter(e.filter)),(e.type||e.types)&&t.forEach(function(t){var r=e.types&&e.types[t.id]?e.types[t.id]:e.type;n.setTargetType(t.id,r)}),n.data.targets.forEach(function(e){for(var n=0;n0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},d.getCurrentPaddingTop=function(){var t=this,e=t.config,n=m(e.padding_top)?e.padding_top:0;return t.title&&t.title.node()&&(n+=t.getTitlePadding()),n},d.getCurrentPaddingBottom=function(){var t=this.config;return m(t.padding_bottom)?t.padding_bottom:0},d.getCurrentPaddingLeft=function(t){var e=this,n=e.config;return m(n.padding_left)?n.padding_left:n.axis_rotated?n.axis_x_show?Math.max(w(e.getAxisWidthByAxisId("x",t)),40):1:!n.axis_y_show||n.axis_y_inner?e.axis.getYAxisLabelPosition().isOuter?30:1:w(e.getAxisWidthByAxisId("y",t))},d.getCurrentPaddingRight=function(){var t=this,e=t.config,n=10,r=t.isLegendRight?t.getLegendWidth()+20:0;return m(e.padding_right)?e.padding_right+1:e.axis_rotated?n+r:!e.axis_y2_show||e.axis_y2_inner?2+r+(t.axis.getY2AxisLabelPosition().isOuter?20:0):w(t.getAxisWidthByAxisId("y2"))+r},d.getParentRectValue=function(t){for(var e,n=this.selectChart.node();n&&"BODY"!==n.tagName;){try{e=n.getBoundingClientRect()[t]}catch(r){"width"===t&&(e=n.offsetWidth)}if(e)break;n=n.parentNode}return e},d.getParentWidth=function(){return this.getParentRectValue("width")},d.getParentHeight=function(){var t=this.selectChart.style("height");return t.indexOf("px")>0?+t.replace("px",""):0},d.getSvgLeft=function(t){var e=this,n=e.config,r=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,i=n.axis_rotated?v.axisX:v.axisY,a=e.main.select("."+i).node(),o=a&&r?a.getBoundingClientRect():{right:0},s=e.selectChart.node().getBoundingClientRect(),u=e.hasArcType(),c=o.right-s.left-(u?0:e.getCurrentPaddingLeft(t));return c>0?c:0},d.getAxisWidthByAxisId=function(t,e){var n=this,r=n.axis.getLabelPositionById(t);return n.axis.getMaxTickWidth(t,e)+(r.isInner?20:40)},d.getHorizontalAxisHeight=function(t){var e=this,n=e.config,r=30;return"x"!==t||n.axis_x_show?"x"===t&&n.axis_x_height?n.axis_x_height:"y"!==t||n.axis_y_show?"y2"!==t||n.axis_y2_show?("x"===t&&!n.axis_rotated&&n.axis_x_tick_rotate&&(r=30+e.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-n.axis_x_tick_rotate)/180)),"y"===t&&n.axis_rotated&&n.axis_y_tick_rotate&&(r=30+e.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-n.axis_y_tick_rotate)/180)),r+(e.axis.getLabelPositionById(t).isInner?0:10)+("y2"===t?-10:0)):e.rotated_padding_top:!n.legend_show||e.isLegendRight||e.isLegendInset?1:10:8},d.getEventRectWidth=function(){return Math.max(0,this.xAxis.tickInterval())},d.getShapeIndices=function(t){var e,n,r=this,i=r.config,a={},o=0;return r.filterTargetsToShow(r.data.targets.filter(t,r)).forEach(function(t){for(e=0;e=0&&(c+=s(i[o].value)-u))}),c}},d.isWithinShape=function(t,e){var n,r=this,i=r.d3.select(t);return r.isTargetToShow(e.id)?"circle"===t.nodeName?n=r.isStepType(e)?r.isWithinStep(t,r.getYScale(e.id)(e.value)):r.isWithinCircle(t,1.5*r.pointSelectR(e)):"path"===t.nodeName&&(n=!i.classed(v.bar)||r.isWithinBar(t)):n=!1,n},d.getInterpolate=function(t){var e=this,n=e.isInterpolationType(e.config.spline_interpolation_type)?e.config.spline_interpolation_type:"cardinal";return e.isSplineType(t)?n:e.isStepType(t)?e.config.line_step_type:"linear"},d.initLine=function(){var t=this;t.main.select("."+v.chart).append("g").attr("class",v.chartLines)},d.updateTargetsForLine=function(t){var e,n,r=this,i=r.config,a=r.classChartLine.bind(r),o=r.classLines.bind(r),s=r.classAreas.bind(r),u=r.classCircles.bind(r),c=r.classFocus.bind(r);e=r.main.select("."+v.chartLines).selectAll("."+v.chartLine).data(t).attr("class",function(t){return a(t)+c(t)}),n=e.enter().append("g").attr("class",a).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",o),n.append("g").attr("class",s),n.append("g").attr("class",function(t){return r.generateClass(v.selectedCircles,t.id)}),n.append("g").attr("class",u).style("cursor",function(t){return i.data_selection_isselectable(t)?"pointer":null}),t.forEach(function(t){r.main.selectAll("."+v.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll("."+v.selectedCircle).each(function(e){e.value=t.values[e.index].value})})},d.updateLine=function(t){var e=this;e.mainLine=e.main.selectAll("."+v.lines).selectAll("."+v.line).data(e.lineData.bind(e)),e.mainLine.enter().append("path").attr("class",e.classLine.bind(e)).style("stroke",e.color),e.mainLine.style("opacity",e.initialOpacity.bind(e)).style("shape-rendering",function(t){return e.isStepType(t)?"crispEdges":""}).attr("transform",null),e.mainLine.exit().transition().duration(t).style("opacity",0).remove()},d.redrawLine=function(t,e){return[(e?this.mainLine.transition(Math.random().toString()):this.mainLine).attr("d",t).style("stroke",this.color).style("opacity",1)]},d.generateDrawLine=function(t,e){var n=this,r=n.config,i=n.d3.svg.line(),a=n.generateGetLinePoints(t,e),o=e?n.getSubYScale:n.getYScale,s=function(t){return(e?n.subxx:n.xx).call(n,t)},u=function(t,e){return r.data_groups.length>0?a(t,e)[0][1]:o.call(n,t.id)(t.value)};return i=r.axis_rotated?i.x(u).y(s):i.x(s).y(u),r.line_connectNull||(i=i.defined(function(t){return null!=t.value})),function(t){var a,s=r.line_connectNull?n.filterRemoveNull(t.values):t.values,u=e?n.x:n.subX,c=o.call(n,t.id),l=0,f=0;return n.isLineType(t)?r.data_regions[t.id]?a=n.lineWithRegions(s,u,c,r.data_regions[t.id]):(n.isStepType(t)&&(s=n.convertValuesToStep(s)),a=i.interpolate(n.getInterpolate(t))(s)):(s[0]&&(l=u(s[0].x),f=c(s[0].value)),a=r.axis_rotated?"M "+f+" "+l:"M "+l+" "+f),a?a:"M 0 0"}},d.generateGetLinePoints=function(t,e){var n=this,r=n.config,i=t.__max__+1,a=n.getShapeX(0,i,t,!!e),o=n.getShapeY(!!e),s=n.getShapeOffset(n.isLineType,t,!!e),u=e?n.getSubYScale:n.getYScale;return function(t,e){var i=u.call(n,t.id)(0),c=s(t,e)||i,l=a(t),f=o(t);return r.axis_rotated&&(00?a(t,e)[0][1]:o.call(n,t.id)(n.getAreaBaseValue(t.id))},c=function(t,e){return r.data_groups.length>0?a(t,e)[1][1]:o.call(n,t.id)(t.value)};return i=r.axis_rotated?i.x0(u).x1(c).y(s):i.x(s).y0(r.area_above?0:u).y1(c),r.line_connectNull||(i=i.defined(function(t){return null!==t.value})),function(t){var e,a=r.line_connectNull?n.filterRemoveNull(t.values):t.values,o=0,s=0;return n.isAreaType(t)?(n.isStepType(t)&&(a=n.convertValuesToStep(a)),e=i.interpolate(n.getInterpolate(t))(a)):(a[0]&&(o=n.x(a[0].x),s=n.getYScale(t.id)(a[0].value)),e=r.axis_rotated?"M "+s+" "+o:"M "+o+" "+s),e?e:"M 0 0"}},d.getAreaBaseValue=function(){return 0},d.generateGetAreaPoints=function(t,e){var n=this,r=n.config,i=t.__max__+1,a=n.getShapeX(0,i,t,!!e),o=n.getShapeY(!!e),s=n.getShapeOffset(n.isAreaType,t,!!e),u=e?n.getSubYScale:n.getYScale; +return function(t,e){var i=u.call(n,t.id)(0),c=s(t,e)||i,l=a(t),f=o(t);return r.axis_rotated&&(00?(t=n.getShapeIndices(n.isLineType),e=n.generateGetLinePoints(t),n.circleY=function(t,n){return e(t,n)[0][1]}):n.circleY=function(t){return n.getYScale(t.id)(t.value)}},d.getCircles=function(t,e){var n=this;return(e?n.main.selectAll("."+v.circles+n.getTargetSelectorSuffix(e)):n.main).selectAll("."+v.circle+(m(t)?"-"+t:""))},d.expandCircles=function(t,e,n){var r=this,i=r.pointExpandedR.bind(r);n&&r.unexpandCircles(),r.getCircles(t,e).classed(v.EXPANDED,!0).attr("r",i)},d.unexpandCircles=function(t){var e=this,n=e.pointR.bind(e);e.getCircles(t).filter(function(){return e.d3.select(this).classed(v.EXPANDED)}).classed(v.EXPANDED,!1).attr("r",n)},d.pointR=function(t){var e=this,n=e.config;return e.isStepType(t)?0:y(n.point_r)?n.point_r(t):n.point_r},d.pointExpandedR=function(t){var e=this,n=e.config;return n.point_focus_expand_enabled?n.point_focus_expand_r?n.point_focus_expand_r:1.75*e.pointR(t):e.pointR(t)},d.pointSelectR=function(t){var e=this,n=e.config;return y(n.point_select_r)?n.point_select_r(t):n.point_select_r?n.point_select_r:4*e.pointR(t)},d.isWithinCircle=function(t,e){var n=this.d3,r=n.mouse(t),i=n.select(t),a=+i.attr("cx"),o=+i.attr("cy");return Math.sqrt(Math.pow(a-r[0],2)+Math.pow(o-r[1],2))r.bar_width_max?r.bar_width_max:i},d.getBars=function(t,e){var n=this;return(e?n.main.selectAll("."+v.bars+n.getTargetSelectorSuffix(e)):n.main).selectAll("."+v.bar+(m(t)?"-"+t:""))},d.expandBars=function(t,e,n){var r=this;n&&r.unexpandBars(),r.getBars(t,e).classed(v.EXPANDED,!0)},d.unexpandBars=function(t){var e=this;e.getBars(t).classed(v.EXPANDED,!1)},d.generateDrawBar=function(t,e){var n=this,r=n.config,i=n.generateGetBarPoints(t,e);return function(t,e){var n=i(t,e),a=r.axis_rotated?1:0,o=r.axis_rotated?0:1,s="M "+n[0][a]+","+n[0][o]+" L"+n[1][a]+","+n[1][o]+" L"+n[2][a]+","+n[2][o]+" L"+n[3][a]+","+n[3][o]+" z";return s}},d.generateGetBarPoints=function(t,e){var n=this,r=e?n.subXAxis:n.xAxis,i=t.__max__+1,a=n.getBarW(r,i),o=n.getShapeX(a,i,t,!!e),s=n.getShapeY(!!e),u=n.getShapeOffset(n.isBarType,t,!!e),c=e?n.getSubYScale:n.getYScale;return function(t,e){var r=c.call(n,t.id)(0),i=u(t,e)||r,l=o(t),f=s(t);return n.config.axis_rotated&&(0a.width?r=a.width-o.width:r<0&&(r=4)),r},d.getYForText=function(t,e,n){var r,i=this,a=n.getBoundingClientRect();return i.config.axis_rotated?r=(t[0][0]+t[2][0]+.6*a.height)/2:(r=t[2][1],e.value<0||0===e.value&&!i.hasPositiveValue?(r+=a.height,i.isBarType(e)&&i.isSafari()?r-=3:!i.isBarType(e)&&i.isChrome()&&(r+=3)):r+=i.isBarType(e)?-3:-6),null!==e.value||i.config.axis_rotated||(rthis.height&&(r=this.height-4)),r},d.setTargetType=function(t,e){var n=this,r=n.config;n.mapToTargetIds(t).forEach(function(t){n.withoutFadeIn[t]=e===r.data_types[t],r.data_types[t]=e}),t||(r.data_type=e)},d.hasType=function(t,e){var n=this,r=n.config.data_types,i=!1;return e=e||n.data.targets,e&&e.length?e.forEach(function(e){var n=r[e.id];(n&&n.indexOf(t)>=0||!n&&"line"===t)&&(i=!0)}):Object.keys(r).length?Object.keys(r).forEach(function(e){r[e]===t&&(i=!0)}):i=n.config.data_type===t,i},d.hasArcType=function(t){return this.hasType("pie",t)||this.hasType("donut",t)||this.hasType("gauge",t)},d.isLineType=function(t){var e=this.config,n=x(t)?t:t.id;return!e.data_types[n]||["line","spline","area","area-spline","step","area-step"].indexOf(e.data_types[n])>=0},d.isStepType=function(t){var e=x(t)?t:t.id;return["step","area-step"].indexOf(this.config.data_types[e])>=0},d.isSplineType=function(t){var e=x(t)?t:t.id;return["spline","area-spline"].indexOf(this.config.data_types[e])>=0},d.isAreaType=function(t){var e=x(t)?t:t.id;return["area","area-spline","area-step"].indexOf(this.config.data_types[e])>=0},d.isBarType=function(t){var e=x(t)?t:t.id;return"bar"===this.config.data_types[e]},d.isScatterType=function(t){var e=x(t)?t:t.id;return"scatter"===this.config.data_types[e]},d.isPieType=function(t){var e=x(t)?t:t.id;return"pie"===this.config.data_types[e]},d.isGaugeType=function(t){var e=x(t)?t:t.id;return"gauge"===this.config.data_types[e]},d.isDonutType=function(t){var e=x(t)?t:t.id;return"donut"===this.config.data_types[e]},d.isArcType=function(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)},d.lineData=function(t){return this.isLineType(t)?[t]:[]},d.arcData=function(t){return this.isArcType(t.data)?[t]:[]},d.barData=function(t){return this.isBarType(t)?t.values:[]},d.lineOrScatterData=function(t){return this.isLineType(t)||this.isScatterType(t)?t.values:[]},d.barOrLineData=function(t){return this.isBarType(t)||this.isLineType(t)?t.values:[]},d.isInterpolationType=function(t){return["linear","linear-closed","basis","basis-open","basis-closed","bundle","cardinal","cardinal-open","cardinal-closed","monotone"].indexOf(t)>=0},d.initGrid=function(){var t=this,e=t.config,n=t.d3;t.grid=t.main.append("g").attr("clip-path",t.clipPathForGrid).attr("class",v.grid),e.grid_x_show&&t.grid.append("g").attr("class",v.xgrids),e.grid_y_show&&t.grid.append("g").attr("class",v.ygrids),e.grid_focus_show&&t.grid.append("g").attr("class",v.xgridFocus).append("line").attr("class",v.xgridFocus),t.xgrid=n.selectAll([]),e.grid_lines_front||t.initGridLines()},d.initGridLines=function(){var t=this,e=t.d3;t.gridLines=t.main.append("g").attr("clip-path",t.clipPathForGrid).attr("class",v.grid+" "+v.gridLines),t.gridLines.append("g").attr("class",v.xgridLines),t.gridLines.append("g").attr("class",v.ygridLines),t.xgridLines=e.selectAll([])},d.updateXGrid=function(t){var e=this,n=e.config,r=e.d3,i=e.generateGridData(n.grid_x_type,e.x),a=e.isCategorized()?e.xAxis.tickOffset():0;e.xgridAttr=n.axis_rotated?{x1:0,x2:e.width,y1:function(t){return e.x(t)-a},y2:function(t){return e.x(t)-a}}:{x1:function(t){return e.x(t)+a},x2:function(t){return e.x(t)+a},y1:0,y2:e.height},e.xgrid=e.main.select("."+v.xgrids).selectAll("."+v.xgrid).data(i),e.xgrid.enter().append("line").attr("class",v.xgrid),t||e.xgrid.attr(e.xgridAttr).style("opacity",function(){return+r.select(this).attr(n.axis_rotated?"y1":"x1")===(n.axis_rotated?e.height:0)?0:1}),e.xgrid.exit().remove()},d.updateYGrid=function(){var t=this,e=t.config,n=t.yAxis.tickValues()||t.y.ticks(e.grid_y_ticks);t.ygrid=t.main.select("."+v.ygrids).selectAll("."+v.ygrid).data(n),t.ygrid.enter().append("line").attr("class",v.ygrid),t.ygrid.attr("x1",e.axis_rotated?t.y:0).attr("x2",e.axis_rotated?t.y:t.width).attr("y1",e.axis_rotated?0:t.y).attr("y2",e.axis_rotated?t.height:t.y),t.ygrid.exit().remove(),t.smoothLines(t.ygrid,"grid")},d.gridTextAnchor=function(t){return t.position?t.position:"end"},d.gridTextDx=function(t){return"start"===t.position?4:"middle"===t.position?0:-4},d.xGridTextX=function(t){return"start"===t.position?-this.height:"middle"===t.position?-this.height/2:0},d.yGridTextX=function(t){return"start"===t.position?0:"middle"===t.position?this.width/2:this.width},d.updateGrid=function(t){var e,n,r,i=this,a=i.main,o=i.config;i.grid.style("visibility",i.hasArcType()?"hidden":"visible"),a.select("line."+v.xgridFocus).style("visibility","hidden"),o.grid_x_show&&i.updateXGrid(),i.xgridLines=a.select("."+v.xgridLines).selectAll("."+v.xgridLine).data(o.grid_x_lines),e=i.xgridLines.enter().append("g").attr("class",function(t){return v.xgridLine+(t.class?" "+t.class:"")}),e.append("line").style("opacity",0),e.append("text").attr("text-anchor",i.gridTextAnchor).attr("transform",o.axis_rotated?"":"rotate(-90)").attr("dx",i.gridTextDx).attr("dy",-5).style("opacity",0),i.xgridLines.exit().transition().duration(t).style("opacity",0).remove(),o.grid_y_show&&i.updateYGrid(),i.ygridLines=a.select("."+v.ygridLines).selectAll("."+v.ygridLine).data(o.grid_y_lines),n=i.ygridLines.enter().append("g").attr("class",function(t){return v.ygridLine+(t.class?" "+t.class:"")}),n.append("line").style("opacity",0),n.append("text").attr("text-anchor",i.gridTextAnchor).attr("transform",o.axis_rotated?"rotate(-90)":"").attr("dx",i.gridTextDx).attr("dy",-5).style("opacity",0),r=i.yv.bind(i),i.ygridLines.select("line").transition().duration(t).attr("x1",o.axis_rotated?r:0).attr("x2",o.axis_rotated?r:i.width).attr("y1",o.axis_rotated?0:r).attr("y2",o.axis_rotated?i.height:r).style("opacity",1),i.ygridLines.select("text").transition().duration(t).attr("x",o.axis_rotated?i.xGridTextX.bind(i):i.yGridTextX.bind(i)).attr("y",r).text(function(t){return t.text}).style("opacity",1),i.ygridLines.exit().transition().duration(t).style("opacity",0).remove()},d.redrawGrid=function(t){var e=this,n=e.config,r=e.xv.bind(e),i=e.xgridLines.select("line"),a=e.xgridLines.select("text");return[(t?i.transition():i).attr("x1",n.axis_rotated?0:r).attr("x2",n.axis_rotated?e.width:r).attr("y1",n.axis_rotated?r:0).attr("y2",n.axis_rotated?r:e.height).style("opacity",1),(t?a.transition():a).attr("x",n.axis_rotated?e.yGridTextX.bind(e):e.xGridTextX.bind(e)).attr("y",r).text(function(t){return t.text}).style("opacity",1)]},d.showXGridFocus=function(t){var e=this,n=e.config,r=t.filter(function(t){return t&&m(t.value)}),i=e.main.selectAll("line."+v.xgridFocus),a=e.xx.bind(e);n.tooltip_show&&(e.hasType("scatter")||e.hasArcType()||(i.style("visibility","visible").data([r[0]]).attr(n.axis_rotated?"y1":"x1",a).attr(n.axis_rotated?"y2":"x2",a),e.smoothLines(i,"grid")))},d.hideXGridFocus=function(){this.main.select("line."+v.xgridFocus).style("visibility","hidden")},d.updateXgridFocus=function(){var t=this,e=t.config;t.main.select("line."+v.xgridFocus).attr("x1",e.axis_rotated?0:-10).attr("x2",e.axis_rotated?t.width:-10).attr("y1",e.axis_rotated?-10:0).attr("y2",e.axis_rotated?-10:t.height)},d.generateGridData=function(t,e){var n,r,i,a,o=this,s=[],u=o.main.select("."+v.axisX).selectAll(".tick").size();if("year"===t)for(n=o.getXDomain(),r=n[0].getFullYear(),i=n[1].getFullYear(),a=r;a<=i;a++)s.push(new Date(a+"-01-01 00:00:00"));else s=e.ticks(10),s.length>u&&(s=s.filter(function(t){return(""+t).indexOf(".")<0}));return s},d.getGridFilterToRemove=function(t){return t?function(e){var n=!1;return[].concat(t).forEach(function(t){("value"in t&&e.value===t.value||"class"in t&&e.class===t.class)&&(n=!0)}),n}:function(){return!0}},d.removeGridLines=function(t,e){var n=this,r=n.config,i=n.getGridFilterToRemove(t),a=function(t){return!i(t)},o=e?v.xgridLines:v.ygridLines,s=e?v.xgridLine:v.ygridLine;n.main.select("."+o).selectAll("."+s).filter(i).transition().duration(r.transition_duration).style("opacity",0).remove(),e?r.grid_x_lines=r.grid_x_lines.filter(a):r.grid_y_lines=r.grid_y_lines.filter(a)},d.initTooltip=function(){var t,e=this,n=e.config;if(e.tooltip=e.selectChart.style("position","relative").append("div").attr("class",v.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),n.tooltip_init_show){if(e.isTimeSeries()&&x(n.tooltip_init_x)){for(n.tooltip_init_x=e.parseDate(n.tooltip_init_x),t=0;t0&&r>0&&(n=t?v.indexOf(t.id):null,r=e?v.indexOf(e.id):null),g?n-r:r-n})}for(a=0;a"+(o||0===o?""+o+"":"")),s=E(p(t[a].value,t[a].ratio,t[a].id,t[a].index,t)),void 0!==s)){if(null===t[a].name)continue;u=E(d(t[a].name,t[a].ratio,t[a].id,t[a].index)),c=l.levelColor?l.levelColor(t[a].value):r(t[a].id),i+="",i+=""+u+"",i+=""+s+"",i+=""}return i+""},d.tooltipPosition=function(t,e,n,r){var i,a,o,s,u,c=this,l=c.config,f=c.d3,h=c.hasArcType(),d=f.mouse(r);return h?(a=(c.width-(c.isLegendRight?c.getLegendWidth():0))/2+d[0],s=c.height/2+d[1]+20):(i=c.getSvgLeft(!0),l.axis_rotated?(a=i+d[0]+100,o=a+e,u=c.currentWidth-c.getCurrentPaddingRight(),s=c.x(t[0].x)+20):(a=i+c.getCurrentPaddingLeft(!0)+c.x(t[0].x)+20,o=a+e,u=i+c.currentWidth-c.getCurrentPaddingRight(),s=d[1]+15),o>u&&(a-=o-u+20),s+n>c.currentHeight&&(s-=n+30)),s<0&&(s=0),{top:s,left:a}},d.showTooltip=function(t,e){var n,r,i,a=this,o=a.config,s=a.hasArcType(),u=t.filter(function(t){return t&&m(t.value)}),c=o.tooltip_position||d.tooltipPosition;0!==u.length&&o.tooltip_show&&(a.tooltip.html(o.tooltip_contents.call(a,t,a.axis.getXAxisTickFormat(),a.getYFormat(s),a.color)).style("display","block"),n=a.tooltip.property("offsetWidth"),r=a.tooltip.property("offsetHeight"),i=c.call(this,u,n,r,e),a.tooltip.style("top",i.top+"px").style("left",i.left+"px"))},d.hideTooltip=function(){this.tooltip.style("display","none")},d.initLegend=function(){var t=this;return t.legendItemTextBox={},t.legendHasRendered=!1,t.legend=t.svg.append("g").attr("transform",t.getTranslate("legend")),t.config.legend_show?void t.updateLegendWithDefaults():(t.legend.style("visibility","hidden"),void(t.hiddenLegendIds=t.mapToIds(t.data.targets)))},d.updateLegendWithDefaults=function(){var t=this;t.updateLegend(t.mapToIds(t.data.targets),{withTransform:!1,withTransitionForTransform:!1,withTransition:!1})},d.updateSizeForLegend=function(t,e){var n=this,r=n.config,i={top:n.isLegendTop?n.getCurrentPaddingTop()+r.legend_inset_y+5.5:n.currentHeight-t-n.getCurrentPaddingBottom()-r.legend_inset_y,left:n.isLegendLeft?n.getCurrentPaddingLeft()+r.legend_inset_x+.5:n.currentWidth-e-n.getCurrentPaddingRight()-r.legend_inset_x+.5};n.margin3={top:n.isLegendRight?0:n.isLegendInset?i.top:n.currentHeight-t,right:NaN,bottom:0,left:n.isLegendRight?n.currentWidth-e:n.isLegendInset?i.left:0}},d.transformLegend=function(t){var e=this;(t?e.legend.transition():e.legend).attr("transform",e.getTranslate("legend"))},d.updateLegendStep=function(t){this.legendStep=t},d.updateLegendItemWidth=function(t){this.legendItemWidth=t},d.updateLegendItemHeight=function(t){this.legendItemHeight=t},d.getLegendWidth=function(){var t=this;return t.config.legend_show?t.isLegendRight||t.isLegendInset?t.legendItemWidth*(t.legendStep+1):t.currentWidth:0},d.getLegendHeight=function(){var t=this,e=0;return t.config.legend_show&&(e=t.isLegendRight?t.currentHeight:Math.max(20,t.legendItemHeight)*(t.legendStep+1)),e},d.opacityForLegend=function(t){return t.classed(v.legendItemHidden)?null:1},d.opacityForUnfocusedLegend=function(t){return t.classed(v.legendItemHidden)?null:.3},d.toggleFocusLegend=function(t,e){var n=this;t=n.mapToTargetIds(t),n.legend.selectAll("."+v.legendItem).filter(function(e){return t.indexOf(e)>=0}).classed(v.legendItemFocused,e).transition().duration(100).style("opacity",function(){var t=e?n.opacityForLegend:n.opacityForUnfocusedLegend;return t.call(n,n.d3.select(this))})},d.revertLegend=function(){var t=this,e=t.d3;t.legend.selectAll("."+v.legendItem).classed(v.legendItemFocused,!1).transition().duration(100).style("opacity",function(){return t.opacityForLegend(e.select(this))})},d.showLegend=function(t){var e=this,n=e.config;n.legend_show||(n.legend_show=!0,e.legend.style("visibility","visible"),e.legendHasRendered||e.updateLegendWithDefaults()),e.removeHiddenLegendIds(t),e.legend.selectAll(e.selectorLegends(t)).style("visibility","visible").transition().style("opacity",function(){return e.opacityForLegend(e.d3.select(this))})},d.hideLegend=function(t){var e=this,n=e.config;n.legend_show&&k(t)&&(n.legend_show=!1,e.legend.style("visibility","hidden")),e.addHiddenLegendIds(t),e.legend.selectAll(e.selectorLegends(t)).style("opacity",0).style("visibility","hidden")},d.clearLegendItemTextBoxCache=function(){this.legendItemTextBox={}},d.updateLegend=function(t,e,n){function r(t,e){return S.legendItemTextBox[e]||(S.legendItemTextBox[e]=S.getTextRect(t.textContent,v.legendItem,t)),S.legendItemTextBox[e]}function i(e,n,i){function a(t,e){e||(o=(p-O-d)/2,o=C)&&(C=f),(!E||h>=E)&&(E=h),s=S.isLegendRight||S.isLegendInset?E:C,void($.legend_equally?(Object.keys(R).forEach(function(t){R[t]=C}),Object.keys(L).forEach(function(t){L[t]=E}),o=(p-s*t.length)/2,o0&&0===w.size()&&(w=S.legend.insert("g","."+v.legendItem).attr("class",v.legendBackground).append("rect")),y=S.legend.selectAll("text").data(t).text(function(t){return _($.data_names[t])?$.data_names[t]:t}).each(function(t,e){i(this,t,e)}),(g?y.transition():y).attr("x",o).attr("y",c),x=S.legend.selectAll("rect."+v.legendItemEvent).data(t),(g?x.transition():x).attr("width",function(t){return R[t]}).attr("height",function(t){return L[t]}).attr("x",s).attr("y",l),b=S.legend.selectAll("line."+v.legendItemTile).data(t),(g?b.transition():b).style("stroke",S.color).attr("x1",f).attr("y1",d).attr("x2",h).attr("y2",d),w&&(g?w.transition():w).attr("height",S.getLegendHeight()-12).attr("width",C*(F+1)+10),S.legend.selectAll("."+v.legendItem).classed(v.legendItemHidden,function(t){return!S.isTargetToShow(t)}),S.updateLegendItemWidth(C),S.updateLegendItemHeight(E),S.updateLegendStep(F),S.updateSizes(),S.updateScales(),S.updateSvgSize(),S.transformAll(m,n),S.legendHasRendered=!0},d.initTitle=function(){var t=this;t.title=t.svg.append("text").text(t.config.title_text).attr("class",t.CLASS.title)},d.redrawTitle=function(){var t=this;t.title.attr("x",t.xForTitle.bind(t)).attr("y",t.yForTitle.bind(t))},d.xForTitle=function(){var t,e=this,n=e.config,r=n.title_position||"left";return t=r.indexOf("right")>=0?e.currentWidth-e.getTextRect(e.title.node().textContent,e.CLASS.title,e.title.node()).width-n.title_padding.right:r.indexOf("center")>=0?(e.currentWidth-e.getTextRect(e.title.node().textContent,e.CLASS.title,e.title.node()).width)/2:n.title_padding.left},d.yForTitle=function(){var t=this;return t.config.title_padding.top+t.getTextRect(t.title.node().textContent,t.CLASS.title,t.title.node()).height},d.getTitlePadding=function(){var t=this;return t.yForTitle()+t.config.title_padding.bottom},s(o,l),l.prototype.init=function(){var t=this.owner,e=t.config,n=t.main;t.axes.x=n.append("g").attr("class",v.axis+" "+v.axisX).attr("clip-path",t.clipPathForXAxis).attr("transform",t.getTranslate("x")).style("visibility",e.axis_x_show?"visible":"hidden"),t.axes.x.append("text").attr("class",v.axisXLabel).attr("transform",e.axis_rotated?"rotate(-90)":"").style("text-anchor",this.textAnchorForXAxisLabel.bind(this)),t.axes.y=n.append("g").attr("class",v.axis+" "+v.axisY).attr("clip-path",e.axis_y_inner?"":t.clipPathForYAxis).attr("transform",t.getTranslate("y")).style("visibility",e.axis_y_show?"visible":"hidden"),t.axes.y.append("text").attr("class",v.axisYLabel).attr("transform",e.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForYAxisLabel.bind(this)),t.axes.y2=n.append("g").attr("class",v.axis+" "+v.axisY2).attr("transform",t.getTranslate("y2")).style("visibility",e.axis_y2_show?"visible":"hidden"),t.axes.y2.append("text").attr("class",v.axisY2Label).attr("transform",e.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForY2AxisLabel.bind(this))},l.prototype.getXAxis=function(t,e,n,r,i,a,o){var s=this.owner,u=s.config,c={isCategory:s.isCategorized(),withOuterTick:i,tickMultiline:u.axis_x_tick_multiline,tickWidth:u.axis_x_tick_width,tickTextRotate:o?0:u.axis_x_tick_rotate,withoutTransition:a},l=f(s.d3,c).scale(t).orient(e);return s.isTimeSeries()&&r&&"function"!=typeof r&&(r=r.map(function(t){return s.parseDate(t)})),l.tickFormat(n).tickValues(r),s.isCategorized()&&(l.tickCentered(u.axis_x_tick_centered),k(u.axis_x_tick_culling)&&(u.axis_x_tick_culling=!1)),l},l.prototype.updateXAxisTickValues=function(t,e){var n,r=this.owner,i=r.config;return(i.axis_x_tick_fit||i.axis_x_tick_count)&&(n=this.generateTickValues(r.mapTargetsToUniqueXs(t),i.axis_x_tick_count,r.isTimeSeries())),e?e.tickValues(n):(r.xAxis.tickValues(n),r.subXAxis.tickValues(n)),n},l.prototype.getYAxis=function(t,e,n,r,i,a,o){var s=this.owner,u=s.config,c={withOuterTick:i,withoutTransition:a,tickTextRotate:o?0:u.axis_y_tick_rotate},l=f(s.d3,c).scale(t).orient(e).tickFormat(n);return s.isTimeSeriesY()?l.ticks(s.d3.time[u.axis_y_tick_time_value],u.axis_y_tick_time_interval):l.tickValues(r),l},l.prototype.getId=function(t){var e=this.owner.config;return t in e.data_axes?e.data_axes[t]:"y"},l.prototype.getXAxisTickFormat=function(){var t=this.owner,e=t.config,n=t.isTimeSeries()?t.defaultAxisTimeFormat:t.isCategorized()?t.categoryName:function(t){return t<0?t.toFixed(0):t};return e.axis_x_tick_format&&(y(e.axis_x_tick_format)?n=e.axis_x_tick_format:t.isTimeSeries()&&(n=function(n){return n?t.axisTimeFormat(e.axis_x_tick_format)(n):""})),y(n)?function(e){return n.call(t,e)}:n},l.prototype.getTickValues=function(t,e){return t?t:e?e.tickValues():void 0},l.prototype.getXAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_x_tick_values,this.owner.xAxis)},l.prototype.getYAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y_tick_values,this.owner.yAxis)},l.prototype.getY2AxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y2_tick_values,this.owner.y2Axis)},l.prototype.getLabelOptionByAxisId=function(t){var e,n=this.owner,r=n.config;return"y"===t?e=r.axis_y_label:"y2"===t?e=r.axis_y2_label:"x"===t&&(e=r.axis_x_label),e},l.prototype.getLabelText=function(t){var e=this.getLabelOptionByAxisId(t);return x(e)?e:e?e.text:null},l.prototype.setLabelText=function(t,e){var n=this.owner,r=n.config,i=this.getLabelOptionByAxisId(t);x(i)?"y"===t?r.axis_y_label=e:"y2"===t?r.axis_y2_label=e:"x"===t&&(r.axis_x_label=e):i&&(i.text=e)},l.prototype.getLabelPosition=function(t,e){var n=this.getLabelOptionByAxisId(t),r=n&&"object"==typeof n&&n.position?n.position:e;return{isInner:r.indexOf("inner")>=0,isOuter:r.indexOf("outer")>=0,isLeft:r.indexOf("left")>=0,isCenter:r.indexOf("center")>=0,isRight:r.indexOf("right")>=0,isTop:r.indexOf("top")>=0,isMiddle:r.indexOf("middle")>=0,isBottom:r.indexOf("bottom")>=0}},l.prototype.getXAxisLabelPosition=function(){return this.getLabelPosition("x",this.owner.config.axis_rotated?"inner-top":"inner-right")},l.prototype.getYAxisLabelPosition=function(){return this.getLabelPosition("y",this.owner.config.axis_rotated?"inner-right":"inner-top")},l.prototype.getY2AxisLabelPosition=function(){return this.getLabelPosition("y2",this.owner.config.axis_rotated?"inner-right":"inner-top")},l.prototype.getLabelPositionById=function(t){return"y2"===t?this.getY2AxisLabelPosition():"y"===t?this.getYAxisLabelPosition():this.getXAxisLabelPosition()},l.prototype.textForXAxisLabel=function(){return this.getLabelText("x")},l.prototype.textForYAxisLabel=function(){return this.getLabelText("y")},l.prototype.textForY2AxisLabel=function(){return this.getLabelText("y2")},l.prototype.xForAxisLabel=function(t,e){var n=this.owner;return t?e.isLeft?0:e.isCenter?n.width/2:n.width:e.isBottom?-n.height:e.isMiddle?-n.height/2:0},l.prototype.dxForAxisLabel=function(t,e){return t?e.isLeft?"0.5em":e.isRight?"-0.5em":"0":e.isTop?"-0.5em":e.isBottom?"0.5em":"0"},l.prototype.textAnchorForAxisLabel=function(t,e){return t?e.isLeft?"start":e.isCenter?"middle":"end":e.isBottom?"start":e.isMiddle?"middle":"end"},l.prototype.xForXAxisLabel=function(){return this.xForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},l.prototype.xForYAxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},l.prototype.xForY2AxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},l.prototype.dxForXAxisLabel=function(){return this.dxForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition()); +},l.prototype.dxForYAxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},l.prototype.dxForY2AxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},l.prototype.dyForXAxisLabel=function(){var t=this.owner,e=t.config,n=this.getXAxisLabelPosition();return e.axis_rotated?n.isInner?"1.2em":-25-this.getMaxTickWidth("x"):n.isInner?"-0.5em":e.axis_x_height?e.axis_x_height-10:"3em"},l.prototype.dyForYAxisLabel=function(){var t=this.owner,e=this.getYAxisLabelPosition();return t.config.axis_rotated?e.isInner?"-0.5em":"3em":e.isInner?"1.2em":-10-(t.config.axis_y_inner?0:this.getMaxTickWidth("y")+10)},l.prototype.dyForY2AxisLabel=function(){var t=this.owner,e=this.getY2AxisLabelPosition();return t.config.axis_rotated?e.isInner?"1.2em":"-2.2em":e.isInner?"-0.5em":15+(t.config.axis_y2_inner?0:this.getMaxTickWidth("y2")+15)},l.prototype.textAnchorForXAxisLabel=function(){var t=this.owner;return this.textAnchorForAxisLabel(!t.config.axis_rotated,this.getXAxisLabelPosition())},l.prototype.textAnchorForYAxisLabel=function(){var t=this.owner;return this.textAnchorForAxisLabel(t.config.axis_rotated,this.getYAxisLabelPosition())},l.prototype.textAnchorForY2AxisLabel=function(){var t=this.owner;return this.textAnchorForAxisLabel(t.config.axis_rotated,this.getY2AxisLabelPosition())},l.prototype.getMaxTickWidth=function(t,e){var n,r,i,a,o,s=this.owner,u=s.config,c=0;return e&&s.currentMaxTickWidths[t]?s.currentMaxTickWidths[t]:(s.svg&&(n=s.filterTargetsToShow(s.data.targets),"y"===t?(r=s.y.copy().domain(s.getYDomain(n,"y")),i=this.getYAxis(r,s.yOrient,u.axis_y_tick_format,s.yAxisTickValues,!1,!0,!0)):"y2"===t?(r=s.y2.copy().domain(s.getYDomain(n,"y2")),i=this.getYAxis(r,s.y2Orient,u.axis_y2_tick_format,s.y2AxisTickValues,!1,!0,!0)):(r=s.x.copy().domain(s.getXDomain(n)),i=this.getXAxis(r,s.xOrient,s.xAxisTickFormat,s.xAxisTickValues,!1,!0,!0),this.updateXAxisTickValues(n,i)),a=s.d3.select("body").append("div").classed("c3",!0),o=a.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),o.append("g").call(i).each(function(){s.d3.select(this).selectAll("text").each(function(){var t=this.getBoundingClientRect();c2){for(o=r-2,i=t[0],a=t[t.length-1],s=(a-i)/(o+1),l=[i],u=0;u=0;return"url("+(e?"":document.URL.split("#")[0])+"#"+t+")"},d.appendClip=function(t,e){return t.append("clipPath").attr("id",e).append("rect")},d.getAxisClipX=function(t){var e=Math.max(30,this.margin.left);return t?-(1+e):-(e-1)},d.getAxisClipY=function(t){return t?-20:-this.margin.top},d.getXAxisClipX=function(){var t=this;return t.getAxisClipX(!t.config.axis_rotated)},d.getXAxisClipY=function(){var t=this;return t.getAxisClipY(!t.config.axis_rotated)},d.getYAxisClipX=function(){var t=this;return t.config.axis_y_inner?-1:t.getAxisClipX(t.config.axis_rotated)},d.getYAxisClipY=function(){var t=this;return t.getAxisClipY(t.config.axis_rotated)},d.getAxisClipWidth=function(t){var e=this,n=Math.max(30,e.margin.left),r=Math.max(30,e.margin.right);return t?e.width+2+n+r:e.margin.left+20},d.getAxisClipHeight=function(t){return(t?this.margin.bottom:this.margin.top+this.height)+20},d.getXAxisClipWidth=function(){var t=this;return t.getAxisClipWidth(!t.config.axis_rotated)},d.getXAxisClipHeight=function(){var t=this;return t.getAxisClipHeight(!t.config.axis_rotated)},d.getYAxisClipWidth=function(){var t=this;return t.getAxisClipWidth(t.config.axis_rotated)+(t.config.axis_y_inner?20:0)},d.getYAxisClipHeight=function(){var t=this;return t.getAxisClipHeight(t.config.axis_rotated)},d.initPie=function(){var t=this,e=t.d3,n=t.config;t.pie=e.layout.pie().value(function(t){return t.values.reduce(function(t,e){return t+e.value},0)}),n.data_order||t.pie.sort(null)},d.updateRadius=function(){var t=this,e=t.config,n=e.gauge_width||e.donut_width;t.radiusExpanded=Math.min(t.arcWidth,t.arcHeight)/2,t.radius=.95*t.radiusExpanded,t.innerRadiusRatio=n?(t.radius-n)/t.radius:.6,t.innerRadius=t.hasType("donut")||t.hasType("gauge")?t.radius*t.innerRadiusRatio:0},d.updateArc=function(){var t=this;t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded(),t.svgArcExpandedSub=t.getSvgArcExpanded(.98)},d.updateAngle=function(t){var e,n,r,i,a=this,o=a.config,s=!1,u=0;return o?(a.pie(a.filterTargetsToShow(a.data.targets)).forEach(function(e){s||e.data.id!==t.data.id||(s=!0,t=e,t.index=u),u++}),isNaN(t.startAngle)&&(t.startAngle=0),isNaN(t.endAngle)&&(t.endAngle=t.startAngle),a.isGaugeType(t.data)&&(e=o.gauge_min,n=o.gauge_max,r=Math.PI*(o.gauge_fullCircle?2:1)/(n-e),i=t.value.375?1.175-36/o.radius:.8)*o.radius/i:0,c="translate("+n*a+","+r*a+")"),c},d.getArcRatio=function(t){var e=this,n=e.config,r=Math.PI*(e.hasType("gauge")&&!n.gauge_fullCircle?1:2);return t?(t.endAngle-t.startAngle)/r:null},d.convertToArcData=function(t){return this.addName({id:t.data.id,value:t.value,ratio:this.getArcRatio(t),index:t.index})},d.textForArcLabel=function(t){var e,n,r,i,a,o=this;return o.shouldShowArcLabel()?(e=o.updateAngle(t),n=e?e.value:null,r=o.getArcRatio(e),i=t.data.id,o.hasType("gauge")||o.meetsArcLabelThreshold(r)?(a=o.getArcLabelFormat(),a?a(n,r,i):o.defaultArcValueFormat(n,r)):""):""},d.expandArc=function(t){var e,n=this;return n.transiting?void(e=a.setInterval(function(){n.transiting||(a.clearInterval(e),n.legend.selectAll(".c3-legend-item-focused").size()>0&&n.expandArc(t))},10)):(t=n.mapToTargetIds(t),void n.svg.selectAll(n.selectorTargets(t,"."+v.chartArc)).each(function(t){n.shouldExpand(t.data.id)&&n.d3.select(this).selectAll("path").transition().duration(n.expandDuration(t.data.id)).attr("d",n.svgArcExpanded).transition().duration(2*n.expandDuration(t.data.id)).attr("d",n.svgArcExpandedSub).each(function(t){n.isDonutType(t.data)})}))},d.unexpandArc=function(t){var e=this;e.transiting||(t=e.mapToTargetIds(t),e.svg.selectAll(e.selectorTargets(t,"."+v.chartArc)).selectAll("path").transition().duration(function(t){return e.expandDuration(t.data.id)}).attr("d",e.svgArc),e.svg.selectAll("."+v.arc).style("opacity",1))},d.expandDuration=function(t){var e=this,n=e.config;return e.isDonutType(t)?n.donut_expand_duration:e.isGaugeType(t)?n.gauge_expand_duration:e.isPieType(t)?n.pie_expand_duration:50},d.shouldExpand=function(t){var e=this,n=e.config;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},d.shouldShowArcLabel=function(){var t=this,e=t.config,n=!0;return t.hasType("donut")?n=e.donut_label_show:t.hasType("pie")&&(n=e.pie_label_show),n},d.meetsArcLabelThreshold=function(t){var e=this,n=e.config,r=e.hasType("donut")?n.donut_label_threshold:n.pie_label_threshold;return t>=r},d.getArcLabelFormat=function(){var t=this,e=t.config,n=e.pie_label_format;return t.hasType("gauge")?n=e.gauge_label_format:t.hasType("donut")&&(n=e.donut_label_format),n},d.getArcTitle=function(){var t=this;return t.hasType("donut")?t.config.donut_title:""},d.updateTargetsForArc=function(t){var e,n,r=this,i=r.main,a=r.classChartArc.bind(r),o=r.classArcs.bind(r),s=r.classFocus.bind(r);e=i.select("."+v.chartArcs).selectAll("."+v.chartArc).data(r.pie(t)).attr("class",function(t){return a(t)+s(t.data)}),n=e.enter().append("g").attr("class",a),n.append("g").attr("class",o),n.append("text").attr("dy",r.hasType("gauge")?"-.1em":".35em").style("opacity",0).style("text-anchor","middle").style("pointer-events","none")},d.initArc=function(){var t=this;t.arcs=t.main.select("."+v.chart).append("g").attr("class",v.chartArcs).attr("transform",t.getTranslate("arc")),t.arcs.append("text").attr("class",v.chartArcsTitle).style("text-anchor","middle").text(t.getArcTitle())},d.redrawArc=function(t,e,n){var r,i=this,a=i.d3,o=i.config,s=i.main;r=s.selectAll("."+v.arcs).selectAll("."+v.arc).data(i.arcData.bind(i)),r.enter().append("path").attr("class",i.classArc.bind(i)).style("fill",function(t){return i.color(t.data)}).style("cursor",function(t){return o.interaction_enabled&&o.data_selection_isselectable(t)?"pointer":null}).style("opacity",0).each(function(t){i.isGaugeType(t.data)&&(t.startAngle=t.endAngle=o.gauge_startingAngle),this._current=t}),r.attr("transform",function(t){return!i.isGaugeType(t.data)&&n?"scale(0)":""}).style("opacity",function(t){return t===this._current?0:1}).on("mouseover",o.interaction_enabled?function(t){var e,n;i.transiting||(e=i.updateAngle(t),e&&(n=i.convertToArcData(e),i.expandArc(e.data.id),i.api.focus(e.data.id),i.toggleFocusLegend(e.data.id,!0),i.config.data_onmouseover(n,this)))}:null).on("mousemove",o.interaction_enabled?function(t){var e,n,r=i.updateAngle(t);r&&(e=i.convertToArcData(r),n=[e],i.showTooltip(n,this))}:null).on("mouseout",o.interaction_enabled?function(t){var e,n;i.transiting||(e=i.updateAngle(t),e&&(n=i.convertToArcData(e),i.unexpandArc(e.data.id),i.api.revert(),i.revertLegend(),i.hideTooltip(),i.config.data_onmouseout(n,this)))}:null).on("click",o.interaction_enabled?function(t,e){var n,r=i.updateAngle(t);r&&(n=i.convertToArcData(r),i.toggleShape&&i.toggleShape(this,n,e),i.config.data_onclick.call(i.api,n,this))}:null).each(function(){i.transiting=!0}).transition().duration(t).attrTween("d",function(t){var e,n=i.updateAngle(t);return n?(isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle),e=a.interpolate(this._current,n),this._current=e(0),function(n){var r=e(n);return r.data=t.data,i.getArc(r,!0)}):function(){return"M 0 0"}}).attr("transform",n?"scale(1)":"").style("fill",function(t){return i.levelColor?i.levelColor(t.data.values[0].value):i.color(t.data.id)}).style("opacity",1).call(i.endall,function(){i.transiting=!1}),r.exit().transition().duration(e).style("opacity",0).remove(),s.selectAll("."+v.chartArc).select("text").style("opacity",0).attr("class",function(t){return i.isGaugeType(t.data)?v.gaugeValue:""}).text(i.textForArcLabel.bind(i)).attr("transform",i.transformForArcLabel.bind(i)).style("font-size",function(t){return i.isGaugeType(t.data)?Math.round(i.radius/5)+"px":""}).transition().duration(t).style("opacity",function(t){return i.isTargetToShow(t.data.id)&&i.isArcType(t.data)?1:0}),s.select("."+v.chartArcsTitle).style("opacity",i.hasType("donut")||i.hasType("gauge")?1:0),i.hasType("gauge")&&(i.arcs.select("."+v.chartArcsBackground).attr("d",function(){var t={data:[{value:o.gauge_max}],startAngle:o.gauge_startingAngle,endAngle:-1*o.gauge_startingAngle};return i.getArc(t,!0,!0)}),i.arcs.select("."+v.chartArcsGaugeUnit).attr("dy",".75em").text(o.gauge_label_show?o.gauge_units:""),i.arcs.select("."+v.chartArcsGaugeMin).attr("dx",-1*(i.innerRadius+(i.radius-i.innerRadius)/(o.gauge_fullCircle?1:2))+"px").attr("dy","1.2em").text(o.gauge_label_show?o.gauge_min:""),i.arcs.select("."+v.chartArcsGaugeMax).attr("dx",i.innerRadius+(i.radius-i.innerRadius)/(o.gauge_fullCircle?1:2)+"px").attr("dy","1.2em").text(o.gauge_label_show?o.gauge_max:""))},d.initGauge=function(){var t=this.arcs;this.hasType("gauge")&&(t.append("path").attr("class",v.chartArcsBackground),t.append("text").attr("class",v.chartArcsGaugeUnit).style("text-anchor","middle").style("pointer-events","none"),t.append("text").attr("class",v.chartArcsGaugeMin).style("text-anchor","middle").style("pointer-events","none"),t.append("text").attr("class",v.chartArcsGaugeMax).style("text-anchor","middle").style("pointer-events","none"))},d.getGaugeLabelHeight=function(){return this.config.gauge_label_show?20:0},d.initRegion=function(){var t=this;t.region=t.main.append("g").attr("clip-path",t.clipPath).attr("class",v.regions)},d.updateRegion=function(t){var e=this,n=e.config;e.region.style("visibility",e.hasArcType()?"hidden":"visible"),e.mainRegion=e.main.select("."+v.regions).selectAll("."+v.region).data(n.regions),e.mainRegion.enter().append("g").append("rect").style("fill-opacity",0),e.mainRegion.attr("class",e.classRegion.bind(e)),e.mainRegion.exit().transition().duration(t).style("opacity",0).remove()},d.redrawRegion=function(t){var e=this,n=e.mainRegion.selectAll("rect").each(function(){var t=e.d3.select(this.parentNode).datum();e.d3.select(this).datum(t)}),r=e.regionX.bind(e),i=e.regionY.bind(e),a=e.regionWidth.bind(e),o=e.regionHeight.bind(e);return[(t?n.transition():n).attr("x",r).attr("y",i).attr("width",a).attr("height",o).style("fill-opacity",function(t){return m(t.opacity)?t.opacity:.1})]},d.regionX=function(t){var e,n=this,r=n.config,i="y"===t.axis?n.y:n.y2;return e="y"===t.axis||"y2"===t.axis?r.axis_rotated&&"start"in t?i(t.start):0:r.axis_rotated?0:"start"in t?n.x(n.isTimeSeries()?n.parseDate(t.start):t.start):0},d.regionY=function(t){var e,n=this,r=n.config,i="y"===t.axis?n.y:n.y2;return e="y"===t.axis||"y2"===t.axis?r.axis_rotated?0:"end"in t?i(t.end):0:r.axis_rotated&&"start"in t?n.x(n.isTimeSeries()?n.parseDate(t.start):t.start):0},d.regionWidth=function(t){var e,n=this,r=n.config,i=n.regionX(t),a="y"===t.axis?n.y:n.y2;return e="y"===t.axis||"y2"===t.axis?r.axis_rotated&&"end"in t?a(t.end):n.width:r.axis_rotated?n.width:"end"in t?n.x(n.isTimeSeries()?n.parseDate(t.end):t.end):n.width,e=0?v.focused:"")},d.classDefocused=function(t){return" "+(this.defocusedTargetIds.indexOf(t.id)>=0?v.defocused:"")},d.classChartText=function(t){return v.chartText+this.classTarget(t.id)},d.classChartLine=function(t){return v.chartLine+this.classTarget(t.id)},d.classChartBar=function(t){return v.chartBar+this.classTarget(t.id)},d.classChartArc=function(t){return v.chartArc+this.classTarget(t.data.id); +},d.getTargetSelectorSuffix=function(t){return t||0===t?("-"+t).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-"):""},d.selectorTarget=function(t,e){return(e||"")+"."+v.target+this.getTargetSelectorSuffix(t)},d.selectorTargets=function(t,e){var n=this;return t=t||[],t.length?t.map(function(t){return n.selectorTarget(t,e)}):null},d.selectorLegend=function(t){return"."+v.legendItem+this.getTargetSelectorSuffix(t)},d.selectorLegends=function(t){var e=this;return t&&t.length?t.map(function(t){return e.selectorLegend(t)}):null};var m=d.isValue=function(t){return t||0===t},y=d.isFunction=function(t){return"function"==typeof t},x=d.isString=function(t){return"string"==typeof t},b=d.isUndefined=function(t){return"undefined"==typeof t},_=d.isDefined=function(t){return"undefined"!=typeof t},w=d.ceil10=function(t){return 10*Math.ceil(t/10)},S=d.asHalfPixel=function(t){return Math.ceil(t)+.5},$=d.diffDomain=function(t){return t[1]-t[0]},k=d.isEmpty=function(t){return"undefined"==typeof t||null===t||x(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length},T=d.notEmpty=function(t){return!d.isEmpty(t)},A=d.getOption=function(t,e,n){return _(t[e])?t[e]:n},C=d.hasValue=function(t,e){var n=!1;return Object.keys(t).forEach(function(r){t[r]===e&&(n=!0)}),n},E=d.sanitise=function(t){return"string"==typeof t?t.replace(//g,">"):t},P=d.getPathBox=function(t){var e=t.getBoundingClientRect(),n=[t.pathSegList.getItem(0),t.pathSegList.getItem(1)],r=n[0].x,i=Math.min(n[0].y,n[1].y);return{x:r,y:i,width:e.width,height:e.height}};h.focus=function(t){var e,n=this.internal;t=n.mapToTargetIds(t),e=n.svg.selectAll(n.selectorTargets(t.filter(n.isTargetToShow,n))),this.revert(),this.defocus(),e.classed(v.focused,!0).classed(v.defocused,!1),n.hasArcType()&&n.expandArc(t),n.toggleFocusLegend(t,!0),n.focusedTargetIds=t,n.defocusedTargetIds=n.defocusedTargetIds.filter(function(e){return t.indexOf(e)<0})},h.defocus=function(t){var e,n=this.internal;t=n.mapToTargetIds(t),e=n.svg.selectAll(n.selectorTargets(t.filter(n.isTargetToShow,n))),e.classed(v.focused,!1).classed(v.defocused,!0),n.hasArcType()&&n.unexpandArc(t),n.toggleFocusLegend(t,!1),n.focusedTargetIds=n.focusedTargetIds.filter(function(e){return t.indexOf(e)<0}),n.defocusedTargetIds=t},h.revert=function(t){var e,n=this.internal;t=n.mapToTargetIds(t),e=n.svg.selectAll(n.selectorTargets(t)),e.classed(v.focused,!1).classed(v.defocused,!1),n.hasArcType()&&n.unexpandArc(t),n.config.legend_show&&(n.showLegend(t.filter(n.isLegendToShow.bind(n))),n.legend.selectAll(n.selectorLegends(t)).filter(function(){return n.d3.select(this).classed(v.legendItemFocused)}).classed(v.legendItemFocused,!1)),n.focusedTargetIds=[],n.defocusedTargetIds=[]},h.show=function(t,e){var n,r=this.internal;t=r.mapToTargetIds(t),e=e||{},r.removeHiddenTargetIds(t),n=r.svg.selectAll(r.selectorTargets(t)),n.transition().style("opacity",1,"important").call(r.endall,function(){n.style("opacity",null).style("opacity",1)}),e.withLegend&&r.showLegend(t),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},h.hide=function(t,e){var n,r=this.internal;t=r.mapToTargetIds(t),e=e||{},r.addHiddenTargetIds(t),n=r.svg.selectAll(r.selectorTargets(t)),n.transition().style("opacity",0,"important").call(r.endall,function(){n.style("opacity",null).style("opacity",0)}),e.withLegend&&r.hideLegend(t),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},h.toggle=function(t,e){var n=this,r=this.internal;r.mapToTargetIds(t).forEach(function(t){r.isTargetToShow(t)?n.hide(t,e):n.show(t,e)})},h.zoom=function(t){var e=this.internal;return t&&(e.isTimeSeries()&&(t=t.map(function(t){return e.parseDate(t)})),e.brush.extent(t),e.redraw({withUpdateXDomain:!0,withY:e.config.zoom_rescale}),e.config.zoom_onzoom.call(this,e.x.orgDomain())),e.brush.extent()},h.zoom.enable=function(t){var e=this.internal;e.config.zoom_enabled=t,e.updateAndRedraw()},h.unzoom=function(){var t=this.internal;t.brush.clear().update(),t.redraw({withUpdateXDomain:!0})},h.zoom.max=function(t){var e=this.internal,n=e.config,r=e.d3;return 0===t||t?void(n.zoom_x_max=r.max([e.orgXDomain[1],t])):n.zoom_x_max},h.zoom.min=function(t){var e=this.internal,n=e.config,r=e.d3;return 0===t||t?void(n.zoom_x_min=r.min([e.orgXDomain[0],t])):n.zoom_x_min},h.zoom.range=function(t){return arguments.length?(_(t.max)&&this.domain.max(t.max),void(_(t.min)&&this.domain.min(t.min))):{max:this.domain.max(),min:this.domain.min()}},h.load=function(t){var e=this.internal,n=e.config;return t.xs&&e.addXs(t.xs),"names"in t&&h.data.names.bind(this)(t.names),"classes"in t&&Object.keys(t.classes).forEach(function(e){n.data_classes[e]=t.classes[e]}),"categories"in t&&e.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(function(e){n.data_axes[e]=t.axes[e]}),"colors"in t&&Object.keys(t.colors).forEach(function(e){n.data_colors[e]=t.colors[e]}),"cacheIds"in t&&e.hasCaches(t.cacheIds)?void e.load(e.getCaches(t.cacheIds),t.done):void("unload"in t?e.unload(e.mapToTargetIds("boolean"==typeof t.unload&&t.unload?null:t.unload),function(){e.loadFromArgs(t)}):e.loadFromArgs(t))},h.unload=function(t){var e=this.internal;t=t||{},t instanceof Array?t={ids:t}:"string"==typeof t&&(t={ids:[t]}),e.unload(e.mapToTargetIds(t.ids),function(){e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),t.done&&t.done()})},h.flow=function(t){var e,n,r,i,a,o,s,u,c=this.internal,l=[],f=c.getMaxDataCount(),h=0,d=0;if(t.json)n=c.convertJsonToData(t.json,t.keys);else if(t.rows)n=c.convertRowsToData(t.rows);else{if(!t.columns)return;n=c.convertColumnsToData(t.columns)}e=c.convertDataToTargets(n,!0),c.data.targets.forEach(function(t){var n,r,i=!1;for(n=0;n1?a.values[a.values.length-1].x-o.x:o.x-c.getXDomain(c.data.targets)[0]:1,i=[o.x-s,o.x],c.updateXDomain(null,!0,!0,!1,i)),c.updateTargets(c.data.targets),c.redraw({flow:{index:o.index,length:h,duration:m(t.duration)?t.duration:c.config.transition_duration,done:t.done,orgDataCount:f},withLegend:!0,withTransition:f>1,withTrimXDomain:!1,withUpdateXAxis:!0})},d.generateFlow=function(t){var e=this,n=e.config,r=e.d3;return function(){var i,a,o,s=t.targets,u=t.flow,c=t.drawBar,l=t.drawLine,f=t.drawArea,h=t.cx,d=t.cy,p=t.xv,g=t.xForText,m=t.yForText,y=t.duration,x=1,b=u.index,_=u.length,w=e.getValueOnIndex(e.data.targets[0].values,b),S=e.getValueOnIndex(e.data.targets[0].values,b+_),k=e.x.domain(),T=u.duration||y,A=u.done||function(){},C=e.generateWait(),E=e.xgrid||r.selectAll([]),P=e.xgridLines||r.selectAll([]),I=e.mainRegion||r.selectAll([]),O=e.mainText||r.selectAll([]),M=e.mainBar||r.selectAll([]),R=e.mainLine||r.selectAll([]),L=e.mainArea||r.selectAll([]),D=e.mainCircle||r.selectAll([]);e.flowing=!0,e.data.targets.forEach(function(t){t.values.splice(0,_)}),o=e.updateXDomain(s,!0,!0),e.updateXGrid&&e.updateXGrid(!0),u.orgDataCount?i=1===u.orgDataCount||(w&&w.x)===(S&&S.x)?e.x(k[0])-e.x(o[0]):e.isTimeSeries()?e.x(k[0])-e.x(o[0]):e.x(w.x)-e.x(S.x):1!==e.data.targets[0].values.length?i=e.x(k[0])-e.x(o[0]):e.isTimeSeries()?(w=e.getValueOnIndex(e.data.targets[0].values,0),S=e.getValueOnIndex(e.data.targets[0].values,e.data.targets[0].values.length-1),i=e.x(w.x)-e.x(S.x)):i=$(o)/2,x=$(k)/$(o),a="translate("+i+",0) scale("+x+",1)",e.hideXGridFocus(),r.transition().ease("linear").duration(T).each(function(){C.add(e.axes.x.transition().call(e.xAxis)),C.add(M.transition().attr("transform",a)),C.add(R.transition().attr("transform",a)),C.add(L.transition().attr("transform",a)),C.add(D.transition().attr("transform",a)),C.add(O.transition().attr("transform",a)),C.add(I.filter(e.isRegionOnX).transition().attr("transform",a)),C.add(E.transition().attr("transform",a)),C.add(P.transition().attr("transform",a))}).call(C,function(){var t,r=[],i=[],a=[];if(_){for(t=0;t<_;t++)r.push("."+v.shape+"-"+(b+t)),i.push("."+v.text+"-"+(b+t)),a.push("."+v.eventRect+"-"+(b+t));e.svg.selectAll("."+v.shapes).selectAll(r).remove(),e.svg.selectAll("."+v.texts).selectAll(i).remove(),e.svg.selectAll("."+v.eventRects).selectAll(a).remove(),e.svg.select("."+v.xgrid).remove()}E.attr("transform",null).attr(e.xgridAttr),P.attr("transform",null),P.select("line").attr("x1",n.axis_rotated?0:p).attr("x2",n.axis_rotated?e.width:p),P.select("text").attr("x",n.axis_rotated?e.width:0).attr("y",p),M.attr("transform",null).attr("d",c),R.attr("transform",null).attr("d",l),L.attr("transform",null).attr("d",f),D.attr("transform",null).attr("cx",h).attr("cy",d),O.attr("transform",null).attr("x",g).attr("y",m).style("fill-opacity",e.opacityForText.bind(e)),I.attr("transform",null),I.select("rect").filter(e.isRegionOnX).attr("x",e.regionX.bind(e)).attr("width",e.regionWidth.bind(e)),n.interaction_enabled&&e.redrawEventRect(),A(),e.flowing=!1})}},h.selected=function(t){var e=this.internal,n=e.d3;return n.merge(e.main.selectAll("."+v.shapes+e.getTargetSelectorSuffix(t)).selectAll("."+v.shape).filter(function(){return n.select(this).classed(v.SELECTED)}).map(function(t){return t.map(function(t){var e=t.__data__;return e.data?e.data:e})}))},h.select=function(t,e,n){var r=this.internal,i=r.d3,a=r.config;a.data_selection_enabled&&r.main.selectAll("."+v.shapes).selectAll("."+v.shape).each(function(o,s){var u=i.select(this),c=o.data?o.data.id:o.id,l=r.getToggle(this,o).bind(r),f=a.data_selection_grouped||!t||t.indexOf(c)>=0,h=!e||e.indexOf(s)>=0,d=u.classed(v.SELECTED);u.classed(v.line)||u.classed(v.area)||(f&&h?a.data_selection_isselectable(o)&&!d&&l(!0,u.classed(v.SELECTED,!0),o,s):_(n)&&n&&d&&l(!1,u.classed(v.SELECTED,!1),o,s))})},h.unselect=function(t,e){var n=this.internal,r=n.d3,i=n.config;i.data_selection_enabled&&n.main.selectAll("."+v.shapes).selectAll("."+v.shape).each(function(a,o){var s=r.select(this),u=a.data?a.data.id:a.id,c=n.getToggle(this,a).bind(n),l=i.data_selection_grouped||!t||t.indexOf(u)>=0,f=!e||e.indexOf(o)>=0,h=s.classed(v.SELECTED);s.classed(v.line)||s.classed(v.area)||l&&f&&i.data_selection_isselectable(a)&&h&&c(!1,s.classed(v.SELECTED,!1),a,o)})},h.transform=function(t,e){var n=this.internal,r=["pie","donut"].indexOf(t)>=0?{withTransform:!0}:null;n.transformTo(e,t,r)},d.transformTo=function(t,e,n){var r=this,i=!r.hasArcType(),a=n||{withTransitionForAxis:i};a.withTransitionForTransform=!1,r.transiting=!1,r.setTargetType(t,e),r.updateTargets(r.data.targets),r.updateAndRedraw(a)},h.groups=function(t){var e=this.internal,n=e.config;return b(t)?n.data_groups:(n.data_groups=t,e.redraw(),n.data_groups)},h.xgrids=function(t){var e=this.internal,n=e.config;return t?(n.grid_x_lines=t,e.redrawWithoutRescale(),n.grid_x_lines):n.grid_x_lines},h.xgrids.add=function(t){var e=this.internal;return this.xgrids(e.config.grid_x_lines.concat(t?t:[]))},h.xgrids.remove=function(t){var e=this.internal;e.removeGridLines(t,!0)},h.ygrids=function(t){var e=this.internal,n=e.config;return t?(n.grid_y_lines=t,e.redrawWithoutRescale(),n.grid_y_lines):n.grid_y_lines},h.ygrids.add=function(t){var e=this.internal;return this.ygrids(e.config.grid_y_lines.concat(t?t:[]))},h.ygrids.remove=function(t){var e=this.internal;e.removeGridLines(t,!1)},h.regions=function(t){var e=this.internal,n=e.config;return t?(n.regions=t,e.redrawWithoutRescale(),n.regions):n.regions},h.regions.add=function(t){var e=this.internal,n=e.config;return t?(n.regions=n.regions.concat(t),e.redrawWithoutRescale(),n.regions):n.regions},h.regions.remove=function(t){var e,n,r,i=this.internal,a=i.config;return t=t||{},e=i.getOption(t,"duration",a.transition_duration),n=i.getOption(t,"classes",[v.region]),r=i.main.select("."+v.regions).selectAll(n.map(function(t){return"."+t})),(e?r.transition().duration(e):r).style("opacity",0).remove(),a.regions=a.regions.filter(function(t){var e=!1;return!t.class||(t.class.split(" ").forEach(function(t){n.indexOf(t)>=0&&(e=!0)}),!e)}),a.regions},h.data=function(t){var e=this.internal.data.targets;return"undefined"==typeof t?e:e.filter(function(e){return[].concat(t).indexOf(e.id)>=0})},h.data.shown=function(t){return this.internal.filterTargetsToShow(this.data(t))},h.data.values=function(t){var e,n=null;return t&&(e=this.data(t),n=e[0]?e[0].values.map(function(t){return t.value}):null),n},h.data.names=function(t){return this.internal.clearLegendItemTextBoxCache(),this.internal.updateDataAttributes("names",t)},h.data.colors=function(t){return this.internal.updateDataAttributes("colors",t)},h.data.axes=function(t){return this.internal.updateDataAttributes("axes",t)},h.category=function(t,e){var n=this.internal,r=n.config;return arguments.length>1&&(r.axis_x_categories[t]=e,n.redraw()),r.axis_x_categories[t]},h.categories=function(t){var e=this.internal,n=e.config;return arguments.length?(n.axis_x_categories=t,e.redraw(),n.axis_x_categories):n.axis_x_categories},h.color=function(t){var e=this.internal;return e.color(t)},h.x=function(t){var e=this.internal;return arguments.length&&(e.updateTargetX(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs},h.xs=function(t){var e=this.internal;return arguments.length&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs},h.axis=function(){},h.axis.labels=function(t){var e=this.internal;arguments.length&&(Object.keys(t).forEach(function(n){e.axis.setLabelText(n,t[n])}),e.axis.updateLabels())},h.axis.max=function(t){var e=this.internal,n=e.config;return arguments.length?("object"==typeof t?(m(t.x)&&(n.axis_x_max=t.x),m(t.y)&&(n.axis_y_max=t.y),m(t.y2)&&(n.axis_y2_max=t.y2)):n.axis_y_max=n.axis_y2_max=t,void e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})):{x:n.axis_x_max,y:n.axis_y_max,y2:n.axis_y2_max}},h.axis.min=function(t){var e=this.internal,n=e.config;return arguments.length?("object"==typeof t?(m(t.x)&&(n.axis_x_min=t.x),m(t.y)&&(n.axis_y_min=t.y),m(t.y2)&&(n.axis_y2_min=t.y2)):n.axis_y_min=n.axis_y2_min=t,void e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})):{x:n.axis_x_min,y:n.axis_y_min,y2:n.axis_y2_min}},h.axis.range=function(t){return arguments.length?(_(t.max)&&this.axis.max(t.max),void(_(t.min)&&this.axis.min(t.min))):{max:this.axis.max(),min:this.axis.min()}},h.legend=function(){},h.legend.show=function(t){var e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},h.legend.hide=function(t){var e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},h.resize=function(t){var e=this.internal,n=e.config;n.size_width=t?t.width:null,n.size_height=t?t.height:null,this.flush()},h.flush=function(){var t=this.internal;t.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},h.destroy=function(){var t=this.internal;if(a.clearInterval(t.intervalForObserveInserted),void 0!==t.resizeTimeout&&a.clearTimeout(t.resizeTimeout),a.detachEvent)a.detachEvent("onresize",t.resizeFunction);else if(a.removeEventListener)a.removeEventListener("resize",t.resizeFunction);else{var e=a.onresize;e&&e.add&&e.remove&&e.remove(t.resizeFunction)}return t.selectChart.classed("c3",!1).html(""),Object.keys(t).forEach(function(e){t[e]=null}),null},h.tooltip=function(){},h.tooltip.show=function(t){var e,n,r=this.internal;t.mouse&&(n=t.mouse),t.data?r.isMultipleX()?(n=[r.x(t.data.x),r.getYScale(t.data.id)(t.data.value)],e=null):e=m(t.data.index)?t.data.index:r.getIndexByX(t.data.x):"undefined"!=typeof t.x?e=r.getIndexByX(t.x):"undefined"!=typeof t.index&&(e=t.index),r.dispatchEvent("mouseover",e,n),r.dispatchEvent("mousemove",e,n),r.config.tooltip_onshow.call(r,t.data)},h.tooltip.hide=function(){this.internal.dispatchEvent("mouseout",0),this.internal.config.tooltip_onhide.call(this)};var I;d.isSafari=function(){var t=a.navigator.userAgent;return t.indexOf("Safari")>=0&&t.indexOf("Chrome")<0},d.isChrome=function(){var t=a.navigator.userAgent;return t.indexOf("Chrome")>=0},Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i}),function(){"SVGPathSeg"in a||(a.SVGPathSeg=function(t,e,n){this.pathSegType=t,this.pathSegTypeAsLetter=e,this._owningPathSegList=n},SVGPathSeg.PATHSEG_UNKNOWN=0,SVGPathSeg.PATHSEG_CLOSEPATH=1,SVGPathSeg.PATHSEG_MOVETO_ABS=2,SVGPathSeg.PATHSEG_MOVETO_REL=3,SVGPathSeg.PATHSEG_LINETO_ABS=4,SVGPathSeg.PATHSEG_LINETO_REL=5,SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,SVGPathSeg.PATHSEG_ARC_ABS=10,SVGPathSeg.PATHSEG_ARC_REL=11,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},a.SVGPathSegClosePath=function(t){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CLOSEPATH,"z",t)},SVGPathSegClosePath.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},SVGPathSegClosePath.prototype.clone=function(){return new SVGPathSegClosePath(void 0)},a.SVGPathSegMovetoAbs=function(t,e,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_MOVETO_ABS,"M",t),this._x=e,this._y=n},SVGPathSegMovetoAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegMovetoAbs.prototype.clone=function(){return new SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegMovetoRel=function(t,e,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_MOVETO_REL,"m",t),this._x=e,this._y=n},SVGPathSegMovetoRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegMovetoRel.prototype.clone=function(){return new SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegLinetoAbs=function(t,e,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_ABS,"L",t),this._x=e,this._y=n},SVGPathSegLinetoAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegLinetoAbs.prototype.clone=function(){return new SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(SVGPathSegLinetoAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegLinetoRel=function(t,e,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_REL,"l",t),this._x=e,this._y=n},SVGPathSegLinetoRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegLinetoRel.prototype.clone=function(){return new SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoCubicAbs=function(t,e,n,r,i,a,o){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",t),this._x=e,this._y=n,this._x1=r,this._y1=i,this._x2=a,this._y2=o},SVGPathSegCurvetoCubicAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoCubicRel=function(t,e,n,r,i,a,o){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",t),this._x=e,this._y=n,this._x1=r,this._y1=i,this._x2=a,this._y2=o},SVGPathSegCurvetoCubicRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoQuadraticAbs=function(t,e,n,r,i){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",t),this._x=e,this._y=n,this._x1=r,this._y1=i},SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoQuadraticRel=function(t,e,n,r,i){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",t),this._x=e,this._y=n,this._x1=r,this._y1=i},SVGPathSegCurvetoQuadraticRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegArcAbs=function(t,e,n,r,i,a,o,s){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_ARC_ABS,"A",t),this._x=e,this._y=n,this._r1=r,this._r2=i,this._angle=a,this._largeArcFlag=o,this._sweepFlag=s},SVGPathSegArcAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},SVGPathSegArcAbs.prototype.clone=function(){return new SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(t){this._r1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(t){this._r2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(t){this._largeArcFlag=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(t){this._sweepFlag=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegArcRel=function(t,e,n,r,i,a,o,s){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_ARC_REL,"a",t),this._x=e,this._y=n,this._r1=r,this._r2=i,this._angle=a,this._largeArcFlag=o,this._sweepFlag=s},SVGPathSegArcRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},SVGPathSegArcRel.prototype.clone=function(){return new SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(t){this._r1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(t){this._r2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(t){this._largeArcFlag=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(t){this._sweepFlag=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegLinetoHorizontalAbs=function(t,e){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",t),this._x=e},SVGPathSegLinetoHorizontalAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){ +return this.pathSegTypeAsLetter+" "+this._x},SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegLinetoHorizontalRel=function(t,e){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",t),this._x=e},SVGPathSegLinetoHorizontalRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegLinetoVerticalAbs=function(t,e){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",t),this._y=e},SVGPathSegLinetoVerticalAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegLinetoVerticalRel=function(t,e){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",t),this._y=e},SVGPathSegLinetoVerticalRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoCubicSmoothAbs=function(t,e,n,r,i){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",t),this._x=e,this._y=n,this._x2=r,this._y2=i},SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoCubicSmoothRel=function(t,e,n,r,i){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",t),this._x=e,this._y=n,this._x2=r,this._y2=i},SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoQuadraticSmoothAbs=function(t,e,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",t),this._x=e,this._y=n},SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)},Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoQuadraticSmoothRel=function(t,e,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",t),this._x=e,this._y=n},SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new SVGPathSegClosePath(void 0)},SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(t,e){return new SVGPathSegMovetoAbs(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegMovetoRel=function(t,e){return new SVGPathSegMovetoRel(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(t,e){return new SVGPathSegLinetoAbs(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegLinetoRel=function(t,e){return new SVGPathSegLinetoRel(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(t,e,n,r,i,a){return new SVGPathSegCurvetoCubicAbs(void 0,t,e,n,r,i,a)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(t,e,n,r,i,a){return new SVGPathSegCurvetoCubicRel(void 0,t,e,n,r,i,a)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(t,e,n,r){return new SVGPathSegCurvetoQuadraticAbs(void 0,t,e,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(t,e,n,r){return new SVGPathSegCurvetoQuadraticRel(void 0,t,e,n,r)},SVGPathElement.prototype.createSVGPathSegArcAbs=function(t,e,n,r,i,a,o){return new SVGPathSegArcAbs(void 0,t,e,n,r,i,a,o)},SVGPathElement.prototype.createSVGPathSegArcRel=function(t,e,n,r,i,a,o){return new SVGPathSegArcRel(void 0,t,e,n,r,i,a,o)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(t){return new SVGPathSegLinetoHorizontalAbs(void 0,t)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(t){return new SVGPathSegLinetoHorizontalRel(void 0,t)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(t){return new SVGPathSegLinetoVerticalAbs(void 0,t)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(t){return new SVGPathSegLinetoVerticalRel(void 0,t)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(t,e,n,r){return new SVGPathSegCurvetoCubicSmoothAbs(void 0,t,e,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(t,e,n,r){return new SVGPathSegCurvetoCubicSmoothRel(void 0,t,e,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(t,e){return new SVGPathSegCurvetoQuadraticSmoothAbs(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(t,e){return new SVGPathSegCurvetoQuadraticSmoothRel(void 0,t,e)}),"SVGPathSegList"in a||(a.SVGPathSegList=function(t){this._pathElement=t,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},Object.defineProperty(SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},SVGPathSegList.prototype._updateListFromPathMutations=function(t){if(this._pathElement){var e=!1;t.forEach(function(t){"d"==t.attributeName&&(e=!0)}),e&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},SVGPathSegList.prototype.segmentChanged=function(t){this._writeListToPath()},SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach(function(t){t._owningPathSegList=null}),this._list=[],this._writeListToPath()},SVGPathSegList.prototype.initialize=function(t){return this._checkPathSynchronizedToList(),this._list=[t],t._owningPathSegList=this,this._writeListToPath(),t},SVGPathSegList.prototype._checkValidIndex=function(t){if(isNaN(t)||t<0||t>=this.numberOfItems)throw"INDEX_SIZE_ERR"},SVGPathSegList.prototype.getItem=function(t){return this._checkPathSynchronizedToList(),this._checkValidIndex(t),this._list[t]},SVGPathSegList.prototype.insertItemBefore=function(t,e){return this._checkPathSynchronizedToList(),e>this.numberOfItems&&(e=this.numberOfItems),t._owningPathSegList&&(t=t.clone()),this._list.splice(e,0,t),t._owningPathSegList=this,this._writeListToPath(),t},SVGPathSegList.prototype.replaceItem=function(t,e){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._checkValidIndex(e),this._list[e]=t,t._owningPathSegList=this,this._writeListToPath(),t},SVGPathSegList.prototype.removeItem=function(t){this._checkPathSynchronizedToList(),this._checkValidIndex(t);var e=this._list[t];return this._list.splice(t,1),this._writeListToPath(),e},SVGPathSegList.prototype.appendItem=function(t){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._list.push(t),t._owningPathSegList=this,this._writeListToPath(),t},SVGPathSegList._pathSegArrayAsString=function(t){var e="",n=!0;return t.forEach(function(t){n?(n=!1,e+=t._asPathString()):e+=" "+t._asPathString()}),e},SVGPathSegList.prototype._parsePath=function(t){if(!t||0==t.length)return[];var e=this,n=function(){this.pathSegList=[]};n.prototype.appendSegment=function(t){this.pathSegList.push(t)};var r=function(t){this._string=t,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};r.prototype._isCurrentSpace=function(){var t=this._string[this._currentIndex];return t<=" "&&(" "==t||"\n"==t||"\t"==t||"\r"==t||"\f"==t)},r.prototype._skipOptionalSpaces=function(){for(;this._currentIndex="0"&&t<="9")&&e!=SVGPathSeg.PATHSEG_CLOSEPATH?e==SVGPathSeg.PATHSEG_MOVETO_ABS?SVGPathSeg.PATHSEG_LINETO_ABS:e==SVGPathSeg.PATHSEG_MOVETO_REL?SVGPathSeg.PATHSEG_LINETO_REL:e:SVGPathSeg.PATHSEG_UNKNOWN},r.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var t=this.peekSegmentType();return t==SVGPathSeg.PATHSEG_MOVETO_ABS||t==SVGPathSeg.PATHSEG_MOVETO_REL},r.prototype._parseNumber=function(){var t=0,e=0,n=1,r=0,i=1,a=1,o=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex"9")&&"."!=this._string.charAt(this._currentIndex))){for(var s=this._currentIndex;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=s)for(var u=this._currentIndex-1,c=1;u>=s;)e+=c*(this._string.charAt(u--)-"0"),c*=10;if(this._currentIndex=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)r+=(this._string.charAt(this._currentIndex++)-"0")*(n*=.1)}if(this._currentIndex!=o&&this._currentIndex+1=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)t*=10,t+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var l=e+r;if(l*=i,t&&(l*=Math.pow(10,a*t)),o!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),l}},r.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var t=!1,e=this._string.charAt(this._currentIndex++);if("0"==e)t=!1;else{if("1"!=e)return;t=!0}return this._skipOptionalSpacesOrDelimiter(),t}},r.prototype.parseSegment=function(){var t=this._string[this._currentIndex],n=this._pathSegTypeFromChar(t);if(n==SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==SVGPathSeg.PATHSEG_UNKNOWN)return null;if(n=this._nextCommandHelper(t,this._previousCommand),n==SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=n,n){case SVGPathSeg.PATHSEG_MOVETO_REL:return new SVGPathSegMovetoRel(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_MOVETO_ABS:return new SVGPathSegMovetoAbs(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_REL:return new SVGPathSegLinetoRel(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_ABS:return new SVGPathSegLinetoAbs(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new SVGPathSegLinetoHorizontalRel(e,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new SVGPathSegLinetoHorizontalAbs(e,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new SVGPathSegLinetoVerticalRel(e,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new SVGPathSegLinetoVerticalAbs(e,this._parseNumber());case SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new SVGPathSegClosePath(e);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicRel(e,r.x,r.y,r.x1,r.y1,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicAbs(e,r.x,r.y,r.x1,r.y1,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:var r={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothRel(e,r.x,r.y,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:var r={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothAbs(e,r.x,r.y,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticRel(e,r.x,r.y,r.x1,r.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticAbs(e,r.x,r.y,r.x1,r.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new SVGPathSegCurvetoQuadraticSmoothRel(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new SVGPathSegCurvetoQuadraticSmoothAbs(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_ARC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcRel(e,r.x,r.y,r.x1,r.y1,r.arcAngle,r.arcLarge,r.arcSweep);case SVGPathSeg.PATHSEG_ARC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcAbs(e,r.x,r.y,r.x1,r.y1,r.arcAngle,r.arcLarge,r.arcSweep);default:throw"Unknown path seg type."}};var i=new n,a=new r(t);if(!a.initialCommandIsMoveTo())return[];for(;a.hasMoreData();){var o=a.parseSegment();if(!o)return[];i.appendSegment(o)}return i.pathSegList})}(),r=[n(118)],i=function(){return g}.apply(e,r),!(void 0!==i&&(t.exports=i))}(window)},function(t,e,n){n(153),t.exports=n(25).RegExp.escape},function(t,e,n){var r=n(4),i=n(70),a=n(5)("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&(e=e[a],null===e&&(e=void 0))),void 0===e?Array:e}},function(t,e,n){var r=n(145);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(1),i=n(24),a="number";t.exports=function(t){if("string"!==t&&t!==a&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),t!=a)}},function(t,e,n){var r=n(36),i=n(58),a=n(48);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var o,s=n(t),u=a.f,c=0;s.length>c;)u.call(t,o=s[c++])&&e.push(o);return e}},function(t,e,n){var r=n(36),i=n(15);t.exports=function(t,e){for(var n,a=i(t),o=r(a),s=o.length,u=0;s>u;)if(a[n=o[u++]]===e)return n}},function(t,e,n){"use strict";var r=n(151),i=n(54),a=n(11);t.exports=function(){for(var t=a(this),e=arguments.length,n=Array(e),o=0,s=r._,u=!1;e>o;)(n[o]=arguments[o++])===s&&(u=!0);return function(){var r,a=this,o=arguments.length,c=0,l=0;if(!u&&!o)return i(t,n,a);if(r=n.slice(),u)for(;e>c;c++)r[c]===s&&(r[c]=arguments[l++]);for(;o>l;)r.push(arguments[l++]);return i(t,r,a)}}},function(t,e,n){t.exports=n(2)},function(t,e){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,n)}}},function(t,e,n){var r=n(0),i=n(152)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(t){return i(t)}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(91)}),n(41)("copyWithin")},function(t,e,n){"use strict";var r=n(0),i=n(22)(4);r(r.P+r.F*!n(20)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(62)}),n(41)("fill")},function(t,e,n){"use strict";var r=n(0),i=n(22)(2);r(r.P+r.F*!n(20)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),i=n(22)(6),a="findIndex",o=!0;a in[]&&Array(1)[a](function(){o=!1}),r(r.P+r.F*o,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(41)(a)},function(t,e,n){"use strict";var r=n(0),i=n(22)(5),a="find",o=!0;a in[]&&Array(1)[a](function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(41)(a)},function(t,e,n){"use strict";var r=n(0),i=n(22)(0),a=n(20)([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(26),i=n(0),a=n(9),o=n(100),s=n(69),u=n(8),c=n(63),l=n(86);i(i.S+i.F*!n(56)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,h=a(t),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,m=0,y=l(h);if(v&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==y||d==Array&&s(y))for(e=u(h.length),n=new d(e);e>m;m++)c(n,m,v?g(h[m],m):h[m]);else for(f=y.call(h),n=new d;!(i=f.next()).done;m++)c(n,m,v?o(f,g,[i.value,m],!0):i.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(0),i=n(50)(!1),a=[].indexOf,o=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(o||!n(20)(a)),"Array",{indexOf:function(t){return o?a.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(70)})},function(t,e,n){"use strict";var r=n(0),i=n(15),a=[].join;r(r.P+r.F*(n(47)!=Object||!n(20)(a)),"Array",{join:function(t){return a.call(i(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),i=n(15),a=n(31),o=n(8),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(20)(s)),"Array",{lastIndexOf:function(t){if(u)return s.apply(this,arguments)||0;var e=i(this),n=o(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){"use strict";var r=n(0),i=n(22)(1);r(r.P+r.F*!n(20)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),i=n(63);r(r.S+r.F*n(3)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),i=n(93);r(r.P+r.F*!n(20)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),i=n(93);r(r.P+r.F*!n(20)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),i=n(67),a=n(18),o=n(39),s=n(8),u=[].slice;r(r.P+r.F*n(3)(function(){i&&u.call(i)}),"Array",{slice:function(t,e){var n=s(this.length),r=a(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var i=o(t,n),c=o(e,n),l=s(c-i),f=Array(l),h=0;h9?t:"0"+t};r(r.P+r.F*(i(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!i(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(a.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+o(t.getUTCMonth()+1)+"-"+o(t.getUTCDate())+"T"+o(t.getUTCHours())+":"+o(t.getUTCMinutes())+":"+o(t.getUTCSeconds())+"."+(n>99?n:"0"+o(n))+"Z"}})},function(t,e,n){"use strict";var r=n(0),i=n(9),a=n(24);r(r.P+r.F*n(3)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=i(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(5)("toPrimitive"),i=Date.prototype;r in i||n(12)(i,r,n(147))},function(t,e,n){var r=Date.prototype,i="Invalid Date",a="toString",o=r[a],s=r.getTime;new Date(NaN)+""!=i&&n(13)(r,a,function(){var t=s.call(this);return t===t?o.call(this):i})},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(94)})},function(t,e,n){"use strict";var r=n(4),i=n(17),a=n(5)("hasInstance"),o=Function.prototype;a in o||n(7).f(o,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(7).f,i=n(30),a=n(10),o=Function.prototype,s=/^\s*function ([^ (]*)/,u="name",c=Object.isExtensible||function(){return!0};u in o||n(6)&&r(o,u,{configurable:!0,get:function(){try{var t=this,e=(""+t).match(s)[1];return a(t,u)||!c(t)||r(t,u,i(5,e)),e}catch(t){return""}}})},function(t,e,n){var r=n(0),i=n(102),a=Math.sqrt,o=Math.acosh;r(r.S+r.F*!(o&&710==Math.floor(o(Number.MAX_VALUE))&&o(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+a(t-1)*a(t+1))}})},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=n(0),a=Math.asinh;i(i.S+i.F*!(a&&1/a(0)>0),"Math",{asinh:r})},function(t,e,n){var r=n(0),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),i=n(74);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(0),i=n(73);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(0),i=n(74),a=Math.pow,o=a(2,-52),s=a(2,-23),u=a(2,127)*(2-s),c=a(2,-126),l=function(t){return t+1/o-1/o};r(r.S,"Math",{fround:function(t){var e,n,r=Math.abs(t),a=i(t);return ru||n!=n?a*(1/0):a*n)}})},function(t,e,n){var r=n(0),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,a=0,o=0,s=arguments.length,u=0;o0?(r=n/u,a+=r*r):a+=n;return u===1/0?1/0:u*Math.sqrt(a)}})},function(t,e,n){var r=n(0),i=Math.imul;r(r.S+r.F*n(3)(function(){return i(4294967295,5)!=-5||2!=i.length}),"Math",{imul:function(t,e){var n=65535,r=+t,i=+e,a=n&r,o=n&i;return 0|a*o+((n&r>>>16)*o+a*(n&i>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(102)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(74)})},function(t,e,n){var r=n(0),i=n(73),a=Math.exp;r(r.S+r.F*n(3)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(a(t-1)-a(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),i=n(73),a=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){"use strict";var r=n(2),i=n(10),a=n(18),o=n(68),s=n(24),u=n(3),c=n(35).f,l=n(16).f,f=n(7).f,h=n(45).trim,d="Number",p=r[d],g=p,v=p.prototype,m=a(n(34)(v))==d,y="trim"in String.prototype,x=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=y?e.trim():h(e,3);var n,r,i,a=e.charCodeAt(0);if(43===a||45===a){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var o,u=e.slice(2),c=0,l=u.length;ci)return NaN;return parseInt(u,r); +}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(m?u(function(){v.valueOf.call(n)}):a(n)!=d)?o(new g(x(e)),n,p):x(e)};for(var b,_=n(6)?c(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)i(g,b=_[w])&&!i(p,b)&&f(p,b,l(g,b));p.prototype=v,v.constructor=p,n(13)(r,d,p)}},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),i=n(2).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(99)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),i=n(99),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&a(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),i=n(109);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(0),i=n(110);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){"use strict";var r=n(0),i=n(31),a=n(90),o=n(81),s=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f="0",h=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=u(r/1e7)},d=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=u(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+o.call(f,7-n.length)+n}return e},g=function(t,e,n){return 0===e?n:e%2===1?g(t,e-1,n*t):g(t*t,e/2,n)},v=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(3)(function(){s.call({})})),"Number",{toFixed:function(t){var e,n,r,s,u=a(this,l),c=i(t),m="",y=f;if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(m="-",u=-u),u>1e-21)if(e=v(u*g(2,69,1))-69,n=e<0?u*g(2,-e,1):u/g(2,e,1),n*=4503599627370496,e=52-e,e>0){for(h(0,n),r=c;r>=7;)h(1e7,0),r-=7;for(h(g(10,r,1),0),r=e-1;r>=23;)d(1<<23),r-=23;d(1<0?(s=y.length,y=m+(s<=c?"0."+o.call(f,c-s)+y:y.slice(0,s-c)+"."+y.slice(s-c))):y=m+y,y}})},function(t,e,n){"use strict";var r=n(0),i=n(3),a=n(90),o=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==o.call(1,void 0)})||!i(function(){o.call({})})),"Number",{toPrecision:function(t){var e=a(this,"Number#toPrecision: incorrect invocation!");return void 0===t?o.call(e):o.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(103)})},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(34)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(6),"Object",{defineProperties:n(104)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(6),"Object",{defineProperty:n(7).f})},function(t,e,n){var r=n(4),i=n(29).onFreeze;n(23)("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(15),i=n(16).f;n(23)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},function(t,e,n){n(23)("getOwnPropertyNames",function(){return n(105).f})},function(t,e,n){var r=n(9),i=n(17);n(23)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(4);n(23)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(4);n(23)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(4);n(23)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(111)})},function(t,e,n){var r=n(9),i=n(36);n(23)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(4),i=n(29).onFreeze;n(23)("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(4),i=n(29).onFreeze;n(23)("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(76).set})},function(t,e,n){"use strict";var r=n(46),i={};i[n(5)("toStringTag")]="z",i+""!="[object z]"&&n(13)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(0),i=n(109);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,e,n){var r=n(0),i=n(110);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,e,n){"use strict";var r,i,a,o=n(33),s=n(2),u=n(26),c=n(46),l=n(0),f=n(4),h=n(11),d=n(32),p=n(42),g=n(78),v=n(83).set,m=n(75)(),y="Promise",x=s.TypeError,b=s.process,_=s[y],b=s.process,w="process"==c(b),S=function(){},$=!!function(){try{var t=_.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(S,S)};return(w||"function"==typeof PromiseRejectionEvent)&&t.then(S)instanceof e}catch(t){}}(),k=function(t,e){return t===e||t===_&&e===a},T=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},A=function(t){return k(_,t)?new C(t):new i(t)},C=i=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw x("Bad Promise constructor");e=t,n=r}),this.resolve=h(e),this.reject=h(n)},E=function(t){try{t()}catch(t){return{error:t}}},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;m(function(){for(var r=t._v,i=1==t._s,a=0,o=function(e){var n,a,o=i?e.ok:e.fail,s=e.resolve,u=e.reject,c=e.domain;try{o?(i||(2==t._h&&M(t),t._h=1),o===!0?n=r:(c&&c.enter(),n=o(r),c&&c.exit()),n===e.promise?u(x("Promise-chain cycle")):(a=T(n))?a.call(n,s,u):s(n)):u(r)}catch(t){u(t)}};n.length>a;)o(n[a++]);t._c=[],t._n=!1,e&&!t._h&&I(t)})}},I=function(t){v.call(s,function(){var e,n,r,i=t._v;if(O(t)&&(e=E(function(){w?b.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=w||O(t)?2:1),t._a=void 0,e)throw e.error})},O=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!O(e.promise))return!1;return!0},M=function(t){v.call(s,function(){var e;w?b.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},L=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw x("Promise can't be resolved itself");(e=T(t))?m(function(){var r={_w:n,_d:!1};try{e.call(t,u(L,r,1),u(R,r,1))}catch(t){R.call(r,t)}}):(n._v=t,n._s=1,P(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};$||(_=function(t){d(this,_,y,"_h"),h(t),r.call(this);try{t(u(L,this,1),u(R,this,1))}catch(t){R.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(37)(_.prototype,{then:function(t,e){var n=A(g(this,_));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=w?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),C=function(){var t=new r;this.promise=t,this.resolve=u(L,t,1),this.reject=u(R,t,1)}),l(l.G+l.W+l.F*!$,{Promise:_}),n(44)(_,y),n(38)(y),a=n(25)[y],l(l.S+l.F*!$,y,{reject:function(t){var e=A(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(o||!$),y,{resolve:function(t){if(t instanceof _&&k(t.constructor,this))return t;var e=A(this),n=e.resolve;return n(t),e.promise}}),l(l.S+l.F*!($&&n(56)(function(t){_.all(t).catch(S)})),y,{all:function(t){var e=this,n=A(e),r=n.resolve,i=n.reject,a=E(function(){var n=[],a=0,o=1;p(t,!1,function(t){var s=a++,u=!1;n.push(void 0),o++,e.resolve(t).then(function(t){u||(u=!0,n[s]=t,--o||r(n))},i)}),--o||r(n)});return a&&i(a.error),n.promise},race:function(t){var e=this,n=A(e),r=n.reject,i=E(function(){p(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},function(t,e,n){var r=n(0),i=n(11),a=n(1),o=(n(2).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(3)(function(){o(function(){})}),"Reflect",{apply:function(t,e,n){var r=i(t),u=a(n);return o?o(r,e,u):s.call(r,e,u)}})},function(t,e,n){var r=n(0),i=n(34),a=n(11),o=n(1),s=n(4),u=n(3),c=n(94),l=(n(2).Reflect||{}).construct,f=u(function(){function t(){}return!(l(function(){},[],t)instanceof t)}),h=!u(function(){l(function(){})});r(r.S+r.F*(f||h),"Reflect",{construct:function(t,e){a(t),o(e);var n=arguments.length<3?t:a(arguments[2]);if(h&&!f)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var u=n.prototype,d=i(s(u)?u:Object.prototype),p=Function.apply.call(t,d,e);return s(p)?p:d}})},function(t,e,n){var r=n(7),i=n(0),a=n(1),o=n(24);i(i.S+i.F*n(3)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){a(t),e=o(e,!0),a(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),i=n(16).f,a=n(1);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=i(a(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),i=n(1),a=function(t){this._t=i(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(71)(a,"Object",function(){var t,e=this,n=e._k;do if(e._i>=n.length)return{value:void 0,done:!0};while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new a(t)}})},function(t,e,n){var r=n(16),i=n(0),a=n(1);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(a(t),e)}})},function(t,e,n){var r=n(0),i=n(17),a=n(1);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(a(t))}})},function(t,e,n){function r(t,e){var n,s,l=arguments.length<3?t:arguments[2];return c(t)===l?t[e]:(n=i.f(t,e))?o(n,"value")?n.value:void 0!==n.get?n.get.call(l):void 0:u(s=a(t))?r(s,e,l):void 0}var i=n(16),a=n(17),o=n(10),s=n(0),u=n(4),c=n(1);s(s.S,"Reflect",{get:r})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),i=n(1),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!a||a(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(108)})},function(t,e,n){var r=n(0),i=n(1),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return a&&a(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),i=n(76);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){function r(t,e,n){var u,h,d=arguments.length<4?t:arguments[3],p=a.f(l(t),e);if(!p){if(f(h=o(t)))return r(h,e,n,d);p=c(0)}return s(p,"value")?!(p.writable===!1||!f(d))&&(u=a.f(d,e)||c(0),u.value=n,i.f(d,e,u),!0):void 0!==p.set&&(p.set.call(d,n),!0)}var i=n(7),a=n(16),o=n(17),s=n(10),u=n(0),c=n(30),l=n(1),f=n(4);u(u.S,"Reflect",{set:r})},function(t,e,n){var r=n(2),i=n(68),a=n(7).f,o=n(35).f,s=n(55),u=n(53),c=r.RegExp,l=c,f=c.prototype,h=/a/g,d=/a/g,p=new c(h)!==h;if(n(6)&&(!p||n(3)(function(){return d[n(5)("match")]=!1,c(h)!=h||c(d)==d||"/a/i"!=c(h,"i")}))){c=function(t,e){var n=this instanceof c,r=s(t),a=void 0===e;return!n&&r&&t.constructor===c&&a?t:i(p?new l(r&&!a?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&a?u.call(t):e),n?this:f,c)};for(var g=(function(t){t in c||a(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})}),v=o(l),m=0;v.length>m;)g(v[m++]);f.constructor=c,c.prototype=f,n(13)(r,"RegExp",c)}n(38)("RegExp")},function(t,e,n){n(52)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(52)("replace",2,function(t,e,n){return[function(r,i){"use strict";var a=t(this),o=void 0==r?void 0:r[e];return void 0!==o?o.call(r,a,i):n.call(String(a),r,i)},n]})},function(t,e,n){n(52)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(52)("split",2,function(t,e,r){"use strict";var i=n(55),a=r,o=[].push,s="split",u="length",c="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[u]||2!="ab"[s](/(?:ab)*/)[u]||4!="."[s](/(.?)(.?)/)[u]||"."[s](/()()/)[u]>1||""[s](/.?/)[u]){var l=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return a.call(n,t,e);var r,s,f,h,d,p=[],g=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,m=void 0===e?4294967295:e>>>0,y=new RegExp(t.source,g+"g");for(l||(r=new RegExp("^"+y.source+"$(?!\\s)",g));(s=y.exec(n))&&(f=s.index+s[0][u],!(f>v&&(p.push(n.slice(v,s.index)),!l&&s[u]>1&&s[0].replace(r,function(){for(d=1;d1&&s.index=m)));)y[c]===s.index&&y[c]++;return v===n[u]?!h&&y.test("")||p.push(""):p.push(n.slice(v)),p[u]>m?p.slice(0,m):p}}else"0"[s](void 0,0)[u]&&(r=function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)});return[function(n,i){var a=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,a,i):r.call(String(a),n,i)},r]})},function(t,e,n){"use strict";n(115);var r=n(1),i=n(53),a=n(6),o="toString",s=/./[o],u=function(t){n(13)(RegExp.prototype,o,t,!0)};n(3)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?u(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?i.call(t):void 0)}):s.name!=o&&u(function(){return s.call(this)})},function(t,e,n){"use strict";n(14)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(14)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(14)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(14)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";var r=n(0),i=n(79)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(0),i=n(8),a=n(80),o="endsWith",s=""[o];r(r.P+r.F*n(66)(o),"String",{endsWith:function(t){var e=a(this,t,o),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),u=void 0===n?r:Math.min(i(n),r),c=String(t);return s?s.call(e,c,u):e.slice(u-c.length,u)===c}})},function(t,e,n){"use strict";n(14)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(14)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(14)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){var r=n(0),i=n(39),a=String.fromCharCode,o=String.fromCodePoint;r(r.S+r.F*(!!o&&1!=o.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,o=0;r>o;){if(e=+arguments[o++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?a(e):a(((e-=65536)>>10)+55296,e%1024+56320))}return n.join("")}})},function(t,e,n){"use strict";var r=n(0),i=n(80),a="includes";r(r.P+r.F*n(66)(a),"String",{includes:function(t){return!!~i(this,t,a).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";n(14)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";var r=n(79)(!0);n(72)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";n(14)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){var r=n(0),i=n(15),a=n(8);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=a(e.length),r=arguments.length,o=[],s=0;n>s;)o.push(String(e[s++])),s1?arguments[1]:void 0,e.length)),r=String(t);return s?s.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(14)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(14)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(14)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){"use strict";n(45)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(2),i=n(10),a=n(6),o=n(0),s=n(13),u=n(29).KEY,c=n(3),l=n(59),f=n(44),h=n(40),d=n(5),p=n(113),g=n(85),v=n(149),m=n(148),y=n(70),x=n(1),b=n(15),_=n(24),w=n(30),S=n(34),$=n(105),k=n(16),T=n(7),A=n(36),C=k.f,E=T.f,P=$.f,I=r.Symbol,O=r.JSON,M=O&&O.stringify,R="prototype",L=d("_hidden"),D=d("toPrimitive"),j={}.propertyIsEnumerable,F=l("symbol-registry"),V=l("symbols"),N=l("op-symbols"),z=Object[R],G="function"==typeof I,H=r.QObject,U=!H||!H[R]||!H[R].findChild,B=a&&c(function(){return 7!=S(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=C(z,e);r&&delete z[e],E(t,e,n),r&&t!==z&&E(z,e,r)}:E,W=function(t){var e=V[t]=S(I[R]);return e._k=t,e},q=G&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},Y=function(t,e,n){return t===z&&Y(N,e,n),x(t),e=_(e,!0),x(n),i(V,e)?(n.enumerable?(i(t,L)&&t[L][e]&&(t[L][e]=!1),n=S(n,{enumerable:w(0,!1)})):(i(t,L)||E(t,L,w(1,{})),t[L][e]=!0),B(t,e,n)):E(t,e,n)},X=function(t,e){x(t);for(var n,r=m(e=b(e)),i=0,a=r.length;a>i;)Y(t,n=r[i++],e[n]);return t},K=function(t,e){return void 0===e?S(t):X(S(t),e)},Z=function(t){var e=j.call(this,t=_(t,!0));return!(this===z&&i(V,t)&&!i(N,t))&&(!(e||!i(this,t)||!i(V,t)||i(this,L)&&this[L][t])||e)},Q=function(t,e){if(t=b(t),e=_(e,!0),t!==z||!i(V,e)||i(N,e)){var n=C(t,e);return!n||!i(V,e)||i(t,L)&&t[L][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=P(b(t)),r=[],a=0;n.length>a;)i(V,e=n[a++])||e==L||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===z,r=P(n?N:b(t)),a=[],o=0;r.length>o;)!i(V,e=r[o++])||n&&!i(z,e)||a.push(V[e]);return a};G||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(N,n),i(this,L)&&i(this[L],t)&&(this[L][t]=!1),B(this,t,w(1,n))};return a&&U&&B(z,t,{configurable:!0,set:e}),W(t)},s(I[R],"toString",function(){return this._k}),k.f=Q,T.f=Y,n(35).f=$.f=J,n(48).f=Z,n(58).f=tt,a&&!n(33)&&s(z,"propertyIsEnumerable",Z,!0),p.f=function(t){return W(d(t))}),o(o.G+o.W+o.F*!G,{Symbol:I});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var et=A(d.store),nt=0;et.length>nt;)g(et[nt++]);o(o.S+o.F*!G,"Symbol",{for:function(t){return i(F,t+="")?F[t]:F[t]=I(t)},keyFor:function(t){if(q(t))return v(F,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){U=!0},useSimple:function(){U=!1}}),o(o.S+o.F*!G,"Object",{create:K,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:tt}),O&&o(o.S+o.F*(!G||c(function(){var t=I();return"[null]"!=M([t])||"{}"!=M({a:t})||"{}"!=M(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!q(t)){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return e=r[1],"function"==typeof e&&(n=e),!n&&y(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!q(e))return e}),r[1]=e,M.apply(O,r)}}}),I[R][D]||n(12)(I[R],D,I[R].valueOf),f(I,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){"use strict";var r=n(0),i=n(60),a=n(84),o=n(1),s=n(39),u=n(8),c=n(4),l=n(2).ArrayBuffer,f=n(78),h=a.ArrayBuffer,d=a.DataView,p=i.ABV&&l.isView,g=h.prototype.slice,v=i.VIEW,m="ArrayBuffer";r(r.G+r.W+r.F*(l!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,m,{isView:function(t){return p&&p(t)||c(t)&&v in t}}),r(r.P+r.U+r.F*n(3)(function(){return!new h(2).slice(1,void 0).byteLength}),m,{slice:function(t,e){if(void 0!==g&&void 0===e)return g.call(o(this),t);for(var n=o(this).byteLength,r=s(t,n),i=s(void 0===e?n:e,n),a=new(f(this,h))(u(i-r)),c=new d(this),l=new d(a),p=0;r0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),i=n(50)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(41)("includes")},function(t,e,n){var r=n(0),i=n(75)(),a=n(2).process,o="process"==n(18)(a);r(r.G,{asap:function(t){var e=o&&a.domain;i(e?e.bind(t):t)}})},function(t,e,n){var r=n(0),i=n(18);r(r.S,"Error",{isError:function(t){return"Error"===i(t)}})},function(t,e,n){var r=n(0);r(r.P+r.R,"Map",{toJSON:n(96)("Map")})},function(t,e,n){var r=n(0);r(r.S,"Math",{iaddh:function(t,e,n,r){var i=t>>>0,a=e>>>0,o=n>>>0;return a+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},function(t,e,n){var r=n(0);r(r.S,"Math",{imulh:function(t,e){var n=65535,r=+t,i=+e,a=r&n,o=i&n,s=r>>16,u=i>>16,c=(s*o>>>0)+(a*o>>>16);return s*u+(c>>16)+((a*u>>>0)+(c&n)>>16)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{isubh:function(t,e,n,r){var i=t>>>0,a=e>>>0,o=n>>>0;return a-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},function(t,e,n){var r=n(0);r(r.S,"Math",{umulh:function(t,e){var n=65535,r=+t,i=+e,a=r&n,o=i&n,s=r>>>16,u=i>>>16,c=(s*o>>>0)+(a*o>>>16);return s*u+(c>>>16)+((a*u>>>0)+(c&n)>>>16)}})},function(t,e,n){"use strict";var r=n(0),i=n(9),a=n(11),o=n(7);n(6)&&r(r.P+n(57),"Object",{__defineGetter__:function(t,e){o.f(i(this),t,{get:a(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(0),i=n(9),a=n(11),o=n(7);n(6)&&r(r.P+n(57),"Object",{__defineSetter__:function(t,e){o.f(i(this),t,{set:a(e),enumerable:!0,configurable:!0})}})},function(t,e,n){var r=n(0),i=n(107)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){var r=n(0),i=n(108),a=n(15),o=n(16),s=n(63);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n=a(t),r=o.f,u=i(n),c={},l=0;u.length>l;)s(c,e=u[l++],r(n,e));return c}})},function(t,e,n){"use strict";var r=n(0),i=n(9),a=n(24),o=n(17),s=n(16).f;n(6)&&r(r.P+n(57),"Object",{__lookupGetter__:function(t){var e,n=i(this),r=a(t,!0);do if(e=s(n,r))return e.get;while(n=o(n))}})},function(t,e,n){"use strict";var r=n(0),i=n(9),a=n(24),o=n(17),s=n(16).f;n(6)&&r(r.P+n(57),"Object",{__lookupSetter__:function(t){var e,n=i(this),r=a(t,!0);do if(e=s(n,r))return e.set;while(n=o(n))}})},function(t,e,n){var r=n(0),i=n(107)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){"use strict";var r=n(0),i=n(2),a=n(25),o=n(75)(),s=n(5)("observable"),u=n(11),c=n(1),l=n(32),f=n(37),h=n(12),d=n(42),p=d.RETURN,g=function(t){return null==t?void 0:u(t)},v=function(t){var e=t._c;e&&(t._c=void 0,e())},m=function(t){return void 0===t._o},y=function(t){m(t)||(t._o=void 0,v(t))},x=function(t,e){c(t),this._c=void 0,this._o=t,t=new b(this);try{var n=e(t),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:u(n),this._c=n)}catch(e){return void t.error(e)}m(this)&&v(this)};x.prototype=f({},{unsubscribe:function(){y(this)}});var b=function(t){this._s=t};b.prototype=f({},{next:function(t){var e=this._s;if(!m(e)){var n=e._o;try{var r=g(n.next);if(r)return r.call(n,t)}catch(t){try{y(e)}finally{throw t}}}},error:function(t){var e=this._s;if(m(e))throw t;var n=e._o;e._o=void 0;try{var r=g(n.error);if(!r)throw t;t=r.call(n,t)}catch(t){try{v(e)}finally{throw t}}return v(e),t},complete:function(t){var e=this._s;if(!m(e)){var n=e._o;e._o=void 0;try{var r=g(n.complete);t=r?r.call(n,t):void 0}catch(t){try{v(e)}finally{throw t}}return v(e),t}}});var _=function(t){l(this,_,"Observable","_f")._f=u(t)};f(_.prototype,{subscribe:function(t){return new x(t,this._f)},forEach:function(t){var e=this;return new(a.Promise||i.Promise)(function(n,r){u(t);var i=e.subscribe({next:function(e){try{return t(e)}catch(t){r(t),i.unsubscribe()}},error:r,complete:n})})}}),f(_,{from:function(t){var e="function"==typeof this?this:_,n=g(c(t)[s]);if(n){var r=c(n.call(t));return r.constructor===e?r:new e(function(t){return r.subscribe(t)})}return new e(function(e){var n=!1;return o(function(){if(!n){try{if(d(t,!1,function(t){if(e.next(t),n)return p})===p)return}catch(t){if(n)throw t;return void e.error(t)}e.complete()}}),function(){n=!0}})},of:function(){for(var t=0,e=arguments.length,n=Array(e);t1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";var r=n(0),i=n(112);r(r.P,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){"use strict";n(45)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){"use strict";n(45)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){n(85)("asyncIterator")},function(t,e,n){n(85)("observable")},function(t,e,n){var r=n(0);r(r.S,"System",{global:n(2)})},function(t,e,n){for(var r=n(87),i=n(13),a=n(2),o=n(12),s=n(43),u=n(5),c=u("iterator"),l=u("toStringTag"),f=s.Array,h=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],d=0;d<5;d++){var p,g=h[d],v=a[g],m=v&&v.prototype;if(m){m[c]||o(m,c,f),m[l]||o(m,l,g),s[g]=f;for(p in r)m[p]||i(m,p,r[p],!0)}}},function(t,e,n){var r=n(0),i=n(83);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){var r=n(2),i=n(0),a=n(54),o=n(150),s=r.navigator,u=!!s&&/MSIE .\./.test(s.userAgent),c=function(t){return u?function(e,n){return t(a(o,[].slice.call(arguments,2),"function"==typeof e?e:Function(e)),n)}:t};i(i.G+i.B+i.F*u,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,e,n){n(273),n(212),n(214),n(213),n(216),n(218),n(223),n(217),n(215),n(225),n(224),n(220),n(221),n(219),n(211),n(222),n(226),n(227),n(179),n(181),n(180),n(229),n(228),n(199),n(209),n(210),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(260),n(265),n(272),n(263),n(255),n(256),n(261),n(266),n(268),n(251),n(252),n(253),n(254),n(257),n(258),n(259),n(262),n(264),n(267),n(269),n(270),n(271),n(174),n(176),n(175),n(178),n(177),n(163),n(161),n(167),n(164),n(170),n(172),n(160),n(166),n(157),n(171),n(155),n(169),n(168),n(162),n(165),n(154),n(156),n(159),n(158),n(173),n(87),n(245),n(250),n(115),n(246),n(247),n(248),n(249),n(230),n(114),n(116),n(117),n(285),n(274),n(275),n(280),n(283),n(284),n(278),n(281),n(279),n(282),n(276),n(277),n(231),n(232),n(233),n(234),n(235),n(238),n(236),n(237),n(239),n(240),n(241),n(242),n(244),n(243),n(286),n(312),n(315),n(314),n(316),n(317),n(313),n(318),n(319),n(297),n(300),n(296),n(294),n(295),n(298),n(299),n(289),n(311),n(320),n(288),n(290),n(292),n(291),n(293),n(302),n(303),n(305),n(304),n(307),n(306),n(308),n(309),n(310),n(287),n(301),n(323),n(322),n(321),t.exports=n(25)},function(t,e){},function(t,e,n){t.exports=n.p+"three-dots.svg"},function(t,e){t.exports='
    \n
    \n {{ ::$ctrl.chart.title }}\n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    \n'; +},function(t,e,n){t.exports='
    \n
    \n

    \n \n \n {{::slice.character.name}} - {{::slice.character.title}}\n \n \n

    \n
    \n

    \n \n \n \n

    \n
    \n'},function(t,e){t.exports='
    \n
    \n
    \n \n

    main.hints.none

    \n

    main.hints.description

    \n
    \n \n
    \n'},function(t,e){t.exports='
    \n \n\n
    \n
    \n

    main.intro.heading

    \n
    \n \n
    main.intro.description
    \n \n \n
    \n \n
    \n
    \n\n
    \n
    \n \n
    \n \n {{::$ctrl.game.yearInfo(year).title}}\n
    \n
    \n \n \n \n
    \n
    \n
    \n \n
    \n
    \n
    \n \n \n \n \n
    \n
    \n \n
    \n \n
    \n \n
    \n \n
    \n
    \n
    \n\n
    \n \n
    \n\n \n
    \n'},function(t,e){t.exports='\n
    \n
    \n
    \n'},function(t,e){t.exports='
    \n

    main.toolbar.heading

    \n
    \n \n {{ $ctrl.game.var(\'sources_contacted\').label }}\n
    \n {{ $ctrl.game.var(\'sources_contacted\').value | number }}\n
    \n
    \n
    \n \n {{ risk.label }}\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n\n \n
    \n'},function(t,e){t.exports='\n
    \n \n
    \n'},function(t,e){t.exports={vars:{sources_contacted:{value:0,private:!1,category:"player",chart:!1,"label@en":"Sources contacted","label@de":"Kontaktierte Quellen"},time_left:{value:0,private:!1,icon:"hourglass",category:"risk","label@en":"Time left","label@de":"Verbleibende Zeit"},dataAccess:{value:0,private:!0,category:"choice"},"tt-spox-explains-algorithm":{value:0,private:!0,category:"choice"},"tt-spox-mental-health":{value:0,private:!0,category:"choice"},"teen-nephew":{value:0,private:!0,category:"choice"},teen3_spoke:{value:0,private:!0,category:"choice"},teens_spoke:{value:0,private:!0,category:"choice"},teens_didnt_speak:{value:0,private:!0,category:"choice"},more_time_teens:{value:0,private:!0,category:"choice"},leaker_yes:{value:0,private:!0,category:"choice"},leaker_prove:{value:0,private:!0,category:"choice"},leaker_verify:{value:0,private:!0,category:"choice"},manchego:{value:0,private:!0,category:"choice"},brandt:{value:0,private:!0,category:"choice"},experiment:{value:0,private:!0,category:"choice"},ready_to_publish:{value:0,private:!0,category:"choice"},more_time:{value:0,private:!0,category:"choice"},doing_experiment:{value:0,private:!0,category:"choice"},stopped_experiment:{value:0,private:!0,category:"choice"},continued_experiment:{value:0,private:!0,category:"choice"},finances_AIlab:{value:0,private:!0,category:"choice"},finances_AIlab_push:{value:0,private:!0,category:"choice"},brandt_continue:{value:0,private:!0,category:"choice"},ending_teens_happy:{value:0,private:!0,category:"choice"},game_over:{value:0,private:!0,category:"choice"},game_over_final:{value:0,private:!0,category:"risk"},game_over_win:{value:0,private:!0,category:"risk"}},characters:{editor:{"name@en":"Jeannette Wehunt","name@de":"Jeannette Wehunt","title@en":"Editor-in-chief","title@de":"Chefredakteurin",avatar:"./images/avatars/editor.png"},colleague:{"name@en":"Lisbet Swango","name@de":"Lisbet Swango","title@en":"Senior reporter","title@de":"Chefreporterin",avatar:"./images/avatars/colleague.png"},ECATspox:{"name@en":"Émeline Bonfils","name@de":"Émeline Bonfils","title@en":"ECAT spokesperson","title@de":"Pressesprecherin ECAT",avatar:"./images/avatars/ecat-spox.png"},"tt-spox":{"name@en":"Otmar Kadlec","name@de":"Otmar Kadlec","title@en":"TikTube press officer","title@de":"TikTube-Pressesprecher",avatar:"./images/avatars/tt-spox.png"},nephew:{"name@en":"Noah","name@de":"Noah","title@en":"Your nephew","title@de":"Dein Neffe",avatar:"./images/avatars/teen0.png"},teen1:{"name@en":"Jean","name@de":"Jean","title@en":"Student at T.G. high school","title@de":"Schüler am T.G.-Gymnasium",avatar:"./images/avatars/teen1.png"},teen2:{"name@en":"Camille","name@de":"Camille","title@en":"Student at T.G. high school","title@de":"Schülerin am T.G.-Gymnasium",avatar:"./images/avatars/teen2.png"},teen3:{"name@en":"Mo","name@de":"Mo","title@en":"Student at T.G. high school","title@de":"Schüler am T.G.-Gymnasium",avatar:"./images/avatars/teen3.png"},leaker:{"name@en":"Jane Doe","name@de":"Erika Mustermann","title@en":"Former TikTube employee","title@de":"Frühere TikTube-Mitarbeiterin",avatar:"./images/avatars/janedoe.png"},"leaker-colleague":{"name@en":"Dany Mohren","name@de":"Dany Mohren","title@en":"TikTube employee","title@de":"TikTube-Mitarbeiter",avatar:"./images/avatars/tt-employee.png"},manchego:{"name@en":"Alois Manchego","name@de":"Alois Manchego","title@en":"Professor, head of the AI accountability lab","title@de":"Professor, Leiter des KI-Rechenschaftszentrums",avatar:"./images/avatars/manchego.png"},brandt:{"name@en":"Hiltrud Brandt","name@de":"Hiltrud Brandt","title@en":"Anthropologist","title@de":"Anthropologin",avatar:"./images/avatars/brandt.png"},dev:{"name@en":"Ant1G4F4m","name@de":"Ant1G4F4m","title@en":"Computer developer","title@de":"Entwicklerin",avatar:"./images/avatars/dev.png"},you:{"name@en":"You","name@de":"Du","title@en":"Reporter","title@de":"Reporterin",avatar:null}},years:{10:{picture:"images/years/newsroom-early.jpg","title@en":"An assignment","title@de":"Ein Auftrag"},11:{picture:"images/years/ecat.jpg","title@en":"Day 1: ECAT","title@de":"Tag 1: Europäisches Zentrum für algorithmische Transparenz"},12:{picture:"images/years/newsroom-early.jpg","title@en":"Day 2, 9am","title@de":"Tag 2: 9 Uhr morgens"},13:{picture:"images/years/tt.jpg","title@en":"Day 2: TikTube","title@de":"Tag 2: TikTube"},14:{picture:"images/years/newsroom-late.jpg","title@en":"Day 2, 4pm","title@de":"Tag 2: 4 Uhr nachmittags"},15:{picture:"images/years/newsroom-early.jpg","title@en":"Day 3, 9am","title@de":"Tag 3: 9 Uhr morgens"},16:{picture:"images/years/teenagers.jpg","title@en":"Day 3: Asking users","title@de":"Tag 3: Befragung von Nutzer*innen"},17:{picture:"images/years/newsroom-late.jpg","title@en":"Day 3, 4pm","title@de":"Tag 3: 4 Uhr nachmittags"},18:{picture:"images/years/newsroom-early.jpg","title@en":"Day 4: A surprise","title@de":"Tag 4: Eine Überraschung"},19:{picture:"images/years/newsroom-early.jpg","title@en":"Day 5, 9am","title@de":"Tag 5: 9 Uhr morgens"},20:{picture:"images/years/campus.jpg","title@en":"Day 5: On campus","title@de":"Tag 5: Auf dem Campus"},21:{picture:"images/years/newsroom-late.jpg","title@en":"Day 5, 4pm","title@de":"Tag 5: 4 Uhr nachmittags"},22:{picture:"images/years/newsroom-early.jpg","title@en":"Day 6, 9am","title@de":"Tag 6: 9 Uhr morgens"},23:{picture:"images/years/experiment.jpg","title@en":"Day 6: The experiment","title@de":"Tag 6: Das Experiment"},24:{picture:"images/years/tt.jpg","title@en":"Day 9: Problems","title@de":"Tag 6: Probleme"},25:{picture:"images/years/newsroom-early.jpg","title@en":"Day 12","title@de":"Tag 12"}},steps:[{year:10,texts:[{character:"editor","text@en":"Hi there, welcome to the newsroom!","text@de":"Hallo, willkommen in unserer Redaktion!"},{character:"editor","text@en":"I hear you're the new algorithmic accountability reporter.","text@de":"Du bist also die neue Reporterin für algorithmische Rechenschaft. "},{character:"editor","text@en":"Whatever that means.","text@de":"Was immer das heißen soll. "},{character:"editor","text@en":"I've got a tip for you.","text@de":"Ich hab gleich was für dich."},{character:"editor","text@en":"Ever heard of TikTube?","text@de":"Schonmal was von TikTube gehört?"}],choices:[{"text@en":"Of course.","text@de":"Klar.",feedback:[{character:"you","text@en":"Of course, it's the social app all teenagers are on.","text@de":"Klar, das ist diese App für Teenager."},{character:"editor","text@en":"You're not as clueless as I thought.","text@de":"Du bist also gar nicht so verplant wie du aussiehst."}]},{"text@en":"What's that?","text@de":"Was ist das?",feedback:[{character:"you","text@en":"I'm afraid I haven't.","text@de":"Leider nicht."},{character:"editor","text@en":"TikTube is the social media platform all teenagers are on.","text@de":"TikTube ist die Social-Media-Plattform, auf der sich die ganzen Teenager rumtreiben."},{character:"editor","text@en":"Everyone in this newsroom knows that.","text@de":"Das gehört hier in der Redaktion zum Allgemeinwissen."}]}]},{year:10,texts:[{character:"editor","text@en":"I've heard that TikTube's algorithm is making teenagers sad.","text@de":"Ich habe gehört, dass der TikTube-Algorithmus Teenager depressiv macht."},{character:"editor","text@en":"Find out if that's true.","text@de":"Find heraus, ob das stimmt."}],choices:[{"text@en":"Sure, boss.","text@de":"Alles klar, ich mach mich sofort an die Arbeit.",var_changes:{time_left:10},feedback:[{character:"you","text@en":"Thank you, I'll do my best.","text@de":"Danke, ich werd mein Bestes geben."},{character:"editor","text@en":"You have 2 days.","text@de":"In zwei Tagen will ich Ergebnisse sehen."},{character:"editor","text@en":"Because you're new, I'm pairing you with our senior reporter on Artificial Intelligence.","text@de":"Weil du neu bist, wirst du mit der KI-Chefreporterin zusammenarbeiten."}]}]},{year:10,helper:[{character:"colleague","text@en":"[ECAT|ECAT].","text@de":""}],texts:[{character:"colleague","text@en":"Hello colleague.","text@de":"Hallo Neuankömmling."},{character:"colleague","text@en":"The editor-in-chief is tough, but she's fair.","text@de":"Die Chefredakteurin ist eigentlich ganz in Ordnung."},{character:"colleague","text@en":"... to people who give her good stories, at least.","text@de":"Solange du was Brauchbares ablieferst."},{character:"colleague","text@en":"You should start by asking the European Center for Algorithmic Transparency.","text@de":"Frag zuerst im Europäischen Zentrum für algorithmische Transparenz nach."},{character:"you","text@en":"The European center for what?","text@de":"Was für ein Europäisches Zentrum?"},{character:"colleague","text@en":"Wait, let me write you an e-mail.","text@de":"Warte mal, ich schick dir 'ne Mail."},{character:"you","text@en":"That's nice of you.","text@de":"Das ist nett von dir."},{character:"colleague","text@en":"It'll be faster for me.","text@de":"So ist's auch leichter für mich."},{character:"colleague","text@en":"You might want to [check your inbox|ECAT] before you call.","text@de":"Schau dir die [Mail|ECAT] genau an, bevor du dort anrufst."}],choices:[{"text@en":"Thanks","text@de":"Danke!",var_changes:{time_left:-4},feedback:[{character:"you","text@en":"Thanks, I'll read it attentively.","text@de":"Danke, ich werde mir alles genau durchlesen."},{character:"colleague","text@en":"In the meantime, I'll tell some people about your investigation.","text@de":"In der Zwischenzeit werde ich ein paar Leuten von deiner Recherche erzählen."},{character:"colleague","text@en":"Maybe someone will come forward with information.","text@de":"Vielleicht hat ja jemand Informationen für dich."}]}]},{year:11,texts:[{character:"ECATspox","text@en":"Hello, what can I do for you?","text@de":"Hallo, was kann ich für Sie tun?"}],choices:[{"text@en":"How does the TikTube algorithm work?","text@de":"Können Sie mir sagen, wie der TikTube-Algorithmus funktioniert?",var_changes:{sources_contacted:1},feedback:[{character:"you","text@en":"How does the TikTube algorithm work?","text@de":"Können Sie mir sagen, wie der TikTube-Algorithmus funktioniert?"}]},{"text@en":"Does TikTube's algorithm make teenagers sad?","text@de":"Macht der TikTube-Algorithmus Teenager depressiv?",var_changes:{sources_contacted:1},feedback:[{character:"you","text@en":"Does TikTube's algorithm make teenagers sad?","text@de":"Macht der TikTube-Algorithmus Teenager depressiv?"}]}]},{year:11,texts:[{character:"ECATspox","text@en":"According to the Digital Services Act, ECAT is committed to shedding light on algorithms that impact European citizens.","text@de":"Dem Digital Services Act zufolge soll das Europäische Zentrum für algorithmische Transparenz über Algorithmen aufklären, die Folgen für die europäische Bevölkerung haben."},{character:"ECATspox","text@en":"We are building a team of many specialists for this task.","text@de":"Wir stellen dafür gerade ein Team aus Spezialist*innen auf."},{character:"ECATspox","text@en":"But I can't comment on specific cases.","text@de":"Über Einzelfälle kann ich allerdings nichts sagen."},{character:"ECATspox","text@en":"However, you can ask TikTube for data access.","text@de":"Sie können aber bei TikTube die entsprechenden Daten anfordern."}],choices:[{"text@en":"You didn't answer my question.","text@de":"Sie haben meine Frage nicht beantwortet.",feedback:[{character:"you","text@en":"You didn't answer my question.","text@de":"Sie haben meine Frage nicht beantwortet."},{character:"ECATspox","text@en":"According to the Regulation 1049/2001, you can make a request for more information.","text@de":"Nach der Verordnung 1049/2001 steht Ihnen das Recht zu, einen Antrag auf nähere Informationen zu stellen."},{character:"ECATspox","text@en":"Thanks for contacting ECAT.","text@de":"Vielen Dank, dass Sie sich an das Europäische Zentrum für algorithmische Transparenz gewendet haben."},{character:"ECATspox","text@en":"We wish you good luck in your reporting.","text@de":"Wir wünschen Ihnen viel Erfolg bei Ihrer Recherche."}]},{"text@en":"How can I ask for access?","text@de":"Wie stelle ich einen Datenzugriff-Antrag?",var_changes:{dataAccess:1},feedback:[{character:"you","text@en":"How can I ask for access?","text@de":"Wie stelle ich einen Datenzugriff-Antrag?"},{character:"ECATspox","text@en":"According to the Digital Services Act, you simply need to team up with a researcher at a university.","text@de":"Nach dem Digital Services Act müssen Sie einfach mit jemandem aus der universitären Forschung zusammenarbeiten."},{character:"ECATspox","text@en":"Then make a request to your national Digital Services Coordinator.","text@de":"Den Antrag reichen Sie dann bei Ihrer nationalen Aufsichtsbehörde für Plattformregulierung ein, dem Digital Services Coordinator."},{character:"ECATspox","text@en":"They will forward it to the Irish Digital Services Coordinator, because TikTube is based in Ireland.","text@de":"Die deutsche Behörde leitet den Antrag an den irischen Digital Services Coordinator weiter, weil TikTube seinen Sitz in Irland hat."},{character:"ECATspox","text@en":"If the Irish agree, you'll be able to request the data from TikTube.","text@de":"Wenn die irische Behörde grünes Licht gibt, können Sie die Daten bei TikTube anfordern."},{character:"ECATspox","text@en":"Thanks for contacting ECAT.","text@de":"Vielen Dank, dass Sie sich an das Europäische Zentrum für algorithmische Transparenz gewendet haben."},{character:"ECATspox","text@en":"We wish you good luck in your reporting.","text@de":"Wir wünschen Ihnen viel Erfolg bei Ihrer Recherche."}]}]},{year:12,conditions:[{var:"dataAccess",max:0}],texts:[{character:"colleague","text@en":"How did it go at ECAT?","text@de":"Wie lief's mit dem Europäischen Transparenzzentrum?"}],choices:[{"text@en":"They have no clue.","text@de":"Ich bin genauso schlau wie vorher.",feedback:[{character:"you","text@en":"ECAT has no clue about TikTube.","text@de":"Die wissen da nichts über TikTube."},{character:"colleague","text@en":"Well, at least you tried.","text@de":"Einen Versuch war's wert."}]},{"text@en":"I couldn't get their spokesperson to talk.","text@de":"Ich wollte mit der Pressesprecherin reden, aber da war nichts zu machen.",feedback:[{character:"you","text@en":"I asked questions, but got nothing.","text@de":"Ich habe keine Antworten auf meine Fragen bekommen."},{character:"colleague","text@en":"Stonewalling is the actual job of many spokespersons.","text@de":"Presseabteilungen sind meistens dazu da, nichts zu sagen. "},{character:"colleague","text@en":"Don't let them wear you down.","text@de":"Mach dir nichts draus."}]}]},{year:12,conditions:[{var:"dataAccess",min:1}],texts:[{character:"colleague","text@en":"How did it go at ECAT?","text@de":"Wie lief's mit dem Europäischen Transparenzzentrum?"}],choices:[{"text@en":"They have no clue.","text@de":"Ich bin genauso schlau wie vorher.",feedback:[{character:"you","text@en":"I'm afraid ECAT has no clue about TikTube.","text@de":"Ich fürchte, das Transparenzzentrum weiß nichts über TikTube."},{character:"colleague","text@en":"Well, at least you tried.","text@de":"Einen Versuch war's wert."}]},{"text@en":"We should do a request for data access.","text@de":"Wir sollten einen Zugriffsantrag stellen, um an die Daten zu kommen.",feedback:[{character:"you","text@en":"We should try to make a request for data access.","text@de":"Wir sollten versuchen, einen Zugriffsantrag zu stellen, um an die Daten zu kommen."},{character:"colleague","text@en":"That mechanism will only start in mid-2024.","text@de":"Das ist erst ab Mitte 2024 möglich."},{character:"colleague","text@en":"And I highly doubt the boss will wait that long.","text@de":"So lange will Jeannette wahrscheinlich nicht warten."},{character:"you","text@en":"What can I do, then?","text@de":"Was soll ich stattdessen machen?"}]}]},{year:12,helper:[{character:"colleague","text@en":"[revolvingDoor|revolvingDoor]."}],texts:[{character:"colleague","text@en":"You should try to contact TikTube directly.","text@de":"Frag direkt bei TikTube nach."},{character:"colleague","text@en":"Be careful about their press officer.","text@de":"Aber Vorsicht vor dem Pressesprecher."},{character:"colleague","text@en":"He's a former journalist, I know him well.","text@de":"Er war früher Journalist, ich kenne ihn ziemlich gut."},{character:"colleague","text@en":"Compared to him, Émeline Bonfils at ECAT gives scoops.","text@de":"Im Vergleich zu ihm ist Émeline Bonfils vom ECAT eine wahre Nachrichtenschleuder."},{character:"colleague","text@en":"I sent you an email with some tips, [check your inbox|revolvingDoor].","text@de":"Ich hab dir eine [Mail|revolvingDoor] mit ein paar Tipps geschrieben, schau mal rein."}],choices:[{"text@en":"Thanks","text@de":"Danke",var_changes:{time_left:-4},feedback:[{character:"you","text@en":"Thanks, your help is precious.","text@de":"Vielen Dank für die großartige Hilfe!"}]}]},{year:13,texts:[{character:"tt-spox","text@en":"Hi there! 👋🏼","text@de":"Hi! 👋🏼"},{character:"tt-spox","text@en":"I'm Otmar.","text@de":"Ich bin Otmar."},{character:"tt-spox","text@en":"Call me Oti.","text@de":"Du kannst mich Oti nennen."},{character:"tt-spox","text@en":"I'm a good friend of your colleague Lisbet's!","text@de":"Ich bin ein Freund von Lisbet."},{character:"tt-spox","text@en":"We used to work together.","text@de":"Wir haben früher zusammengearbeitet."}],choices:[{"text@en":"I'm trying to figure out how TikTube's algorithm works.","text@de":"Ich versuche herauszufinden, wie der TikTube-Algorithmus funktioniert.",var_changes:{"tt-spox-explains-algorithm":1,sources_contacted:1},feedback:[{character:"you","text@en":"I'm trying to figure out how TikTube's algorithm works.","text@de":"Ich versuche herauszufinden, wie der TikTube-Algorithmus funktioniert."},{character:"you","text@en":"Can you help me?","text@de":"Bin ich dafür hier richtig?"},{character:"tt-spox","text@en":"Of course!","text@de":"Absolut!"},{character:"tt-spox","text@en":"Our feed is personalized for each user.","text@de":"Unser Feed ist für alle personalisiert."},{character:"tt-spox","text@en":"The recommendations depend on a number of factors.","text@de":"Es hängt von verschiedenen Faktoren ab, welche Empfehlungen im Feed landen."},{character:"tt-spox","text@en":"For instance, the content the user liked or commented on.","text@de":"Zum Beispiel die Inhalte, die die einzelnen Nutzer geliket oder kommentiert haben."},{character:"tt-spox","text@en":"Or language preference, country setting, and device type.","text@de":"Oder auch der Gerätetyp oder die Sprach- und Ländereinstellungen."}]},{"text@en":"Does TikTube impact the mental health of its users?","text@de":"Wirkt es sich negativ auf die geistige Gesundheit aus, TikTube zu benutzen?",var_changes:{"tt-spox-mental-health":1,sources_contacted:1},feedback:[{character:"you","text@en":"Some people say TikTube is making teenagers sad.","text@de":"Es gibt dieses Gerücht, dass TikTube Teenager depressiv macht."},{character:"you","text@en":"Does TikTube impact the mental health of its users?","text@de":"Wirkt es sich negativ auf die geistige Gesundheit aus, TikTube zu benutzen?"},{character:"tt-spox","text@en":"TikTube lets users create authentic content and entertain audiences far and wide.","text@de":"TikTube ermöglicht es seinen Nutzern, authentische Inhalte für ein großes Publikum zu kreieren."},{character:"tt-spox","text@en":"When we come across content that may not be appropriate for the general public, we do our best to remove it from our recommendation system.","text@de":"Wenn wir Inhalte entdecken, die nicht für die Öffentlichkeit geeignet sind, tun wir unser Möglichstes, um sie aus unseren Empfehlungen zu entfernen."}]}]},{year:13,conditions:[{var:"tt-spox-explains-algorithm",min:1}],choices:[{"text@en":"Thanks!","text@de":"Danke!",feedback:[{character:"you","text@en":"Thanks Oti, that's helpful!","text@de":"Danke, Otis, das war sehr hilfreich."},{character:"tt-spox","text@en":"Anytime ☺️","text@de":"Gern geschehen und jederzeit wieder ☺️"},{character:"tt-spox","text@en":"And say hi to Lisbet for me!","text@de":"Grüß Lisbet von mir!"}]},{"text@en":"Can you be more precise?","text@de":"Ginge es etwas genauer?",feedback:[{character:"you","text@en":"Can you be more precise?","text@de":"Ginge es etwas genauer?"},{character:"you","text@en":"For instance, are recommendations entirely personalized?","text@de":"Ich würde zum Beispiel gern wissen, ob die Empfehlungen komplett personalisiert sind."},{character:"you","text@en":"Or does the algorithm also use general parameters that apply to everyone?","text@de":"Oder greift der Algorithmus auch auf allgemeine Parameter zurück, die sich auf alle anwenden lassen?"},{character:"tt-spox","text@en":"TikTube’s recommendation system drops in diverse types of content along with those we already know you love.","text@de":"TikTubes Empfehlungssystem schlägt auch neue Inhalte vor, nicht nur die, die die Nutzer schon kennen und lieben."},{character:"tt-spox","text@en":"That way you can enjoy your favorite videos and explore new topics.","text@de":"So sehen sie ihre Lieblingsvideos und können gleichzeitig neue Themen entdecken."},{character:"you","text@en":"Could this feature push too much depressing content, and make users sad?","text@de":"Könnte es passieren, dass so Inhalte in den Feed geraten, die Depressionen triggern?"},{character:"tt-spox","text@en":"If a user sees something that's not to their liking, they can click on 'not interested' to indicate that it does not suit their taste or interest.","text@de":"Wenn die Nutzer etwas sehen, das sie nicht mögen, können sie uns mit einem Klick verraten, dass sie den Inhalt nicht mögen, und dann wird er nicht mehr angezeigt."},{character:"tt-spox","text@en":"Thanks for your call ☺️","text@de":"Danke für das Gespräch ☺️" +},{character:"tt-spox","text@en":"And say hi to Lisbet for me!","text@de":"Grüß Lisbet von mir!"}]}]},{year:13,conditions:[{var:"tt-spox-mental-health",min:1}],choices:[{"text@en":"You haven't answered my question.","text@de":"Das beantwortet meine Frage nicht.",feedback:[{character:"you","text@en":"You haven't answered my question.","text@de":"Das beantwortet meine Frage nicht."},{character:"tt-spox","text@en":"I'll be happy to answer any additional request you send me ☺️","text@de":"Ich beantworte gerne alle weiteren Fragen ☺️"},{character:"tt-spox","text@en":"You have my number!","text@de":"Meine Nummer hast du ja."}]},{"text@en":"Have you conducted an audit of your algorithm?","text@de":"Wurde der Algorithmus geprüft?",feedback:[{character:"you","text@en":"Has TikTube conducted an audit of its algorithm?","text@de":"Hat TikTube den Algorithmus geprüft?"},{character:"tt-spox","text@en":"We collaborate regularly with researchers.","text@de":"Wir stehen in ständigem Austausch mit Experten."},{character:"tt-spox","text@en":"Professor Alois Manchego will soon release a study which you will find interesting.","text@de":"Professor Alois Manchego wird dazu demnächst eine Studie veröffentlichen, die dich interessieren dürfte."},{character:"tt-spox","text@en":"Thanks for your interest ☺️","text@de":"Vielen Dank für das Interesse ☺️"},{character:"tt-spox","text@en":"And say hi to Lisbet for me!","text@de":"Grüß Lisbet von mir!"}]}]},{year:14,texts:[{character:"editor","text@en":"So, what have you got for me?","text@de":"Also, was gibt's Neues?"},{character:"editor","text@en":"Are you ready to publish?","text@de":"Können wir die Story jetzt bringen?"}],choices:[{"text@en":"I need more time.","text@de":"Ich brauche noch etwas Zeit.",feedback:[{character:"you","text@en":"Not yet. I need more time.","text@de":"Noch nicht, ich brauche noch etwas Zeit."},{character:"editor","text@en":"I'll give you one more day.","text@de":"Ich gebe dir noch einen Tag."},{character:"editor","text@en":"Now go get to work.","text@de":"Dann mal an die Arbeit."}]},{"text@en":"Yes. The headline: « Details of TikTube's algorithm REVEALED »","text@de":"Sie ist so gut wie fertig. Überschrift: „SO funktioniert der TikTube-Algorithmus!“",feedback:[{character:"you","text@en":"Yes.","text@de":"Ich bin so weit fertig."},{character:"you","text@en":"I think the headline should be Details of TikTube's algorithm REVEALED.","text@de":"Ich fände die Überschrift: SO funktioniert der TikTube-Algorithmus! gut."},{character:"editor","text@en":"What's your source for the revelations?","text@de":"Welche Quellen hast du benutzt?"},{character:"you","text@en":"Oti... I mean Otmar Kadlec, TikTube's spokesperson.","text@de":"Ich habe mit Oti... ich meine Otmar Kadlec gesprochen, dem TikTube-Pressesprecher."},{character:"editor","text@en":"Did you double-check what he said?","text@de":"Gibt es noch eine zweite Quelle?"},{character:"you","text@en":"I'm afraid I haven't.","text@de":"Nein."},{character:"editor","text@en":"🙄","text@de":"🙄"},{character:"editor","text@en":"I give you one more day, now go back to work!","text@de":"Einen Tag hast du noch. An die Arbeit!"}]}]},{year:14,choices:[{"text@en":"Thank you boss.","text@de":"Danke, mach ich.",var_changes:{time_left:5},feedback:[{character:"you","text@en":"Thank you, boss.","text@de":"Danke, mach ich."}]}]},{year:15,helper:[{character:"colleague","text@en":"[AlgorithmicImaginaries|AlgorithmicImaginaries]."}],texts:[{character:"you","text@en":"Tell me, Lisbet, how do I check what Oti told me?","text@de":"Lisbet, wie soll ich überprüfen, was Oti mir gesagt hat?"},{character:"colleague","text@en":"You should ask people who use TikTube.","text@de":"Frag Leute, die TikTube benutzen."},{character:"you","text@en":"What do they know about the algorithm?","text@de":"Was sollten die mir schon über den Algorithmus sagen können?"},{character:"colleague","text@en":"Nothing, and many things.","text@de":"Nichts und doch vieles."},{character:"you","text@en":"Can you be more precise?","text@de":"Was soll das denn heißen?"},{character:"colleague","text@en":"I wrote something about it a while ago, I'll send it to you over e-mail.","text@de":"Ich habe vor einiger Zeit etwas drüber geschrieben. Ich schick's dir."},{character:"colleague","text@en":"Make sure to check [your inbox|AlgorithmicImaginaries].","text@de":"Vergiss nicht, in die [Mail|AlgorithmicImaginaries] zu schauen."},{character:"colleague","text@en":"Do you know any teenagers?","text@de":"Kennst du irgendwelche Teenager?"}],choices:[{"text@en":"My nephew.","text@de":"Meinen Neffen.",var_changes:{"teen-nephew":1,time_left:-4,sources_contacted:1},feedback:[{character:"you","text@en":"Yes, I'll ask my nephew.","text@de":"Ja, ich kann meinen Neffen fragen."}]},{"text@en":"No.","text@de":"Nein.",var_changes:{time_left:-4},feedback:[{character:"you","text@en":"No.","text@de":"Nein."},{character:"colleague","text@en":"Then just go to a high school and ask around.","text@de":"Dann geh an irgendeine Schule und hör dich da um."}]}]},{year:16,conditions:[{var:"teen-nephew",min:1}],texts:[{character:"nephew","text@en":"What do you want?","text@de":"Was willst du?"},{character:"you","text@en":"Do you use TikTube?","text@de":"Benutzt du TikTube?"},{character:"nephew","text@en":"Is water wet?","text@de":"Blöde Frage."},{character:"you","text@en":"I'll take that as a yes.","text@de":"Das heißt dann wohl ja."},{character:"you","text@en":"Does TikTube make you sad? People say it does.","text@de":"Macht dich das depressiv? Es kursieren Gerüchte, dass TikTube depressiv macht."},{character:"nephew","text@en":"Who says that? TikTube is just an app, it's funny.","text@de":"Wer erzählt denn sowas? Das ist einfach 'ne Spaß-App."},{character:"nephew","text@en":"It's not making anyone sad.","text@de":"Depressiv, so ein Quatsch."}],choices:[{"text@en":"It never shows you depressing videos?","text@de":"Dir werden nie deprimierende Videos gezeigt?",feedback:[{character:"you","text@en":"It never shows you depressing videos?","text@de":"Dir werden nie deprimierende Videos gezeigt?"},{character:"you","text@en":"Videos that you might not want to watch?","text@de":"Also Videos, die du dir lieber nicht ansiehst?"},{character:"nephew","text@en":"Sometimes.","text@de":"Doch, das kommt schon vor."},{character:"nephew","text@en":"I just swipe them away.","text@de":"Aber ich muss sie mir ja nicht anschauen."}]},{"text@en":"Has TikTube ever surprised you?","text@de":"Macht TikTube manchmal etwas, womit du nicht gerechnet hast?",feedback:[{character:"you","text@en":"Does TikTube's algorithm ever surprise you?","text@de":"Macht der TikTube-Algorithmus machmal etwas, womit du nicht gerechnet hast?"},{character:"nephew","text@en":"What would be the point if it did not?","text@de":"Das wäre ja sonst langweilig. "},{character:"nephew","text@en":"I thought journalists asked better questions.","text@de":"Ich dachte, Journalisten würden bessere Fragen stellen."}]}]},{year:16,conditions:[{var:"teen-nephew",min:1}],choices:[{"text@en":"Thanks","text@de":"Danke",feedback:[{character:"you","text@en":"Well... thanks anyway.","text@de":"Na ja... Danke jedenfalls."},{character:"you","text@en":"I'll leave you alone now, you seem busy.","text@de":"Ich lass dich dann mal in Ruhe."}]}]},{year:16,conditions:[{var:"teen-nephew",max:0}],texts:[{character:"teen1","text@en":"Who's this?","text@de":"Wer bist du denn?"},{character:"teen2","text@en":"Creeeepy...","text@de":"Creeeepy..."},{character:"teen3","text@en":"What do you want?","text@de":"Was willst du?"}],choices:[{"text@en":"Do you use TikTube?","text@de":"Benutzt Ihr TikTube?",var_changes:{teens_didnt_speak:1},feedback:[{character:"you","text@en":"Does any of you use TikTube?","text@de":"Benutzt irgendwer von euch TikTube?"},{character:"teen3","text@en":"Does fire burn?","text@de":"Wer denn nicht?"},{character:"teen1","text@en":"Is the sky blue?","text@de":"Blöde Frage."},{character:"teen2","text@en":"Ciao, bye.","text@de":"Dann mal Ciao."}]},{"text@en":"I'm a journalist researching TikTube.","text@de":"Ich bin Journalistin und mache eine Recherche über TikTube.",var_changes:{sources_contacted:3,teens_spoke:1},feedback:[{character:"you","text@en":"I'm a journalist researching TikTube.","text@de":"Ich bin Journalistin und mache eine Recherche über TikTube."},{character:"you","text@en":"I'm trying to understand how the algorithm works.","text@de":"Ich versuche zu verstehen, wie der Algorithmus funktioniert."},{character:"you","text@en":"What's your experience with it?","text@de":"Was habt Ihr für Erfahrungen damit gemacht?"},{character:"teen1","text@en":"TikTube is just a lot of fun.","text@de":"TikTube macht einfach Spaß."},{character:"teen1","text@en":"Nothing more.","text@de":"Mehr gibt's dazu nicht zu sagen."},{character:"teen2","text@en":"The algorithm is SO EASY to crack.","text@de":"Es ist SUPER EINFACH, den Algorithmus zu knacken."},{character:"you","text@en":"Oh, really?","text@de":"Ist das so?"},{character:"teen2","text@en":"I'm in this Telegram group.","text@de":"Ich bin in dieser Telegram-Gruppe."},{character:"teen2","text@en":"We like each other's posts.","text@de":"Wir liken gegenseitig unser Posts."},{character:"teen2","text@en":"So the algorithm thinks we're viral and pushes our videos even more.","text@de":"Der Algorithmus denkt deswegen, dass wir viral gehen, und pusht unsere Videos."},{character:"teen2","text@en":"🤓","text@de":"🤓"},{character:"teen3","text@en":"Sometimes I feel the algorithm knows me too well.","text@de":"Ich denke manchmal, dass der Algorithmus mich zu gut kennt."},{character:"teen3","text@en":"It makes me uncomfortable.","text@de":"Das gefällt mir gar nicht."},{character:"you","text@en":"Can you tell me more?","text@de":"Willst du mir mehr darüber erzählen?"},{character:"teen3","text@en":"If you promise not to write my name.","text@de":"Nur wenn mein Name nicht genannt wird."},{character:"you","text@en":"Sure.","text@de":"Kein Problem."},{character:"you","text@en":"I promise.","text@de":"Versprochen."},{character:"teen3","text@en":"It's like TikTube knows when I'm sad.","text@de":"Ich hab den Eindruck, dass TikTube weiß, wann es mir schlecht geht."},{character:"teen3","text@en":"And then pushes videos that make me sadder.","text@de":"Ich seh dann Videos, durch die ich noch schlechter draufkomme."},{character:"teen3","text@en":"Even when I tell the app to stop.","text@de":"Ich kann sie dann auch nicht ausblenden."},{character:"teen3","text@en":"It doesn't.","text@de":"Das funktioniert einfach nicht."}]}]},{year:17,conditions:[{var:"teens_didnt_speak",min:1}],texts:[{character:"editor","text@en":"So, what have you got for me?","text@de":"Wie schaut's aus, was hast du herausgefunden?"}],choices:[{"text@en":"I need more time.","text@de":"Ich brauche noch etwas Zeit.",var_changes:{more_time_teens:1},feedback:[{character:"you","text@en":"Not much, I need more time.","text@de":"Nicht viel, ich brauche noch etwas Zeit."}]}]},{year:17,conditions:[{var:"teens_spoke",min:1},{var:"more_time_teens",max:0}],texts:[{character:"editor","text@en":"So, what have you got for me?","text@de":"Wie schaut's aus, was hast du herausgefunden?"}],choices:[{"text@en":"I need more time.","text@de":"Ich brauche noch etwas Zeit.",var_changes:{more_time_teens:1},feedback:[{character:"you","text@en":"Not much, I need more time.","text@de":"Nicht viel, ich brauche noch etwas Zeit."}]},{"text@en":"I'm ready to publish. The headline: « TikTube can harm teens »","text@de":"Wir können die Story veröffentlichen. Überschrift: „TikTube kann Teenagern schaden“.",var_changes:{game_over:1},feedback:[{character:"you","text@en":"I'm ready to publish.","text@de":"Wir können die Story veröffentlichen."},{character:"you","text@en":"The headline: TikTube can harm teens.","text@de":"Die Überschrift: TikTube kann Teenagern schaden."},{character:"editor","text@en":"You have the front page.","text@de":"Das ist etwas für Seite eins."},{character:"editor","text@en":" ","text@de":" "},{character:"colleague","text@en":"Just one source.","text@de":"Nur eine einzige Quelle."},{character:"colleague","text@en":"That's not very serious journalism.","text@de":"Seriöser Journalismus geht anders."},{character:"tt-spox","text@en":"Your piece is ridiculous. 😑","text@de":"Dieser Beitrag ist ein Witz. 😑"},{character:"tt-spox","text@en":"If that teen you mention contacted you on TikTube...","text@de":"Wenn deine Quelle dich auf TikTube kontaktieren würde..."},{character:"tt-spox","text@en":"I'll find them. 😈","text@de":"Ich werde sie finden. 😈"}]},{"text@en":"I'm ready to publish. The headline: « Teens can crack TikTube's algorithm »","text@de":"Wir können die Story veröffentlichen. Überschrift: „Teenager knacken den TikTube-Algorithmus“.",var_changes:{game_over:1},feedback:[{character:"you","text@en":"I'm ready to publish.","text@de":"Wir können die Story veröffentlichen."},{character:"you","text@en":"The headline: Teens can crack TikTube's algorithm.","text@de":"Die Überschrift: Teenager knacken den TikTube-Algorithmus."},{character:"editor","text@en":"You have the front page.","text@de":"Das ist etwas für Seite eins."},{character:"editor","text@en":" ","text@de":""},{character:"colleague","text@en":"Just one source.","text@de":"Nur eine einzige Quelle."},{character:"colleague","text@en":"That's not very serious journalism.","text@de":"Seriöser Journalismus geht anders."},{character:"tt-spox","text@en":"I like your piece a lot. 👏🏼","text@de":"Sehr guter Beitrag. 👏🏼"},{character:"tt-spox","text@en":"It shows that our users are fully in control.","text@de":"Es zeigt, dass die Leute auf TikTube alles selbst in der Hand haben."}]}]},{year:17,conditions:[{var:"game_over",max:0},{var:"teen-nephew",min:1}],texts:[{character:"editor","text@en":"So, what have you got for me?","text@de":"Wie schaut's aus, was hast du herausgefunden?"}],choices:[{"text@en":"I need more time.","text@de":"Ich brauche noch etwas Zeit.",var_changes:{more_time_teens:1},feedback:[{character:"you","text@en":"Not much, I need more time.","text@de":"Nicht viel, ich brauche noch etwas Zeit."}]},{"text@en":"I'm ready to publish. The headline: « Teenagers are happy with TikTube's algorithm »","text@de":"Wir können die Story veröffentlichen. Überschrift: „Warum Teenager vom TikTube-Algorithmus begeistert sind“.",var_changes:{game_over:1,ending_teens_happy:1},feedback:[]}]},{year:17,conditions:[{var:"more_time_teens",min:1}],texts:[{character:"editor","text@en":"And what will you do with that time?","text@de":"Und was wirst du mit der zusätzlichen Zeit anfangen?"}],choices:[{"text@en":"Read what academics wrote on the issue.","text@de":"Ich werde mir wissenschaftliche Literatur anlesen.",var_changes:{time_left:8},feedback:[{character:"you","text@en":"I'll read up what academics published.","text@de":"Ich werde mir anschauen, was in der Wissenschaft dazu veröffentlicht wurde."},{character:"editor","text@en":"You have two more days.","text@de":"Ich gebe dir noch zwei Tage."},{character:"editor","text@en":"Not more.","text@de":"Das war's aber dann."}]},{"text@en":"Ask Oti at TikTok for more info.","text@de":"Frag Oti bei TikTok nach weiteren Infos.",var_changes:{game_over:1},feedback:[{character:"you","text@en":"I'll ask Otmar, I feel that we're becoming friends.","text@de":"Ich werde Otmar fragen. Ich habe das Gefühl, dass wir uns anfreunden könnten."},{character:"editor","text@en":"My dear.","text@de":"Oh je."},{character:"editor","text@en":"All press officers pretend to be your friend.","text@de":"Alle Pressemenschen tun so, als ob sie dich besonders sympathisch finden."},{character:"editor","text@en":"They are the opposite.","text@de":"Du kannst ihnen nie trauen."},{character:"editor","text@en":"I can't give you more time.","text@de":"Du hattest genug Zeit."},{character:"editor","text@en":"Just drop the story.","text@de":"Die Story ist ein Rohrkrepierer. Wirf sie in die Tonne."}]}]},{year:17,conditions:[{var:"game_over",min:1},{var:"ending_teens_happy",min:1}],texts:[{character:"you","text@en":"I'm ready to publish.","text@de":"Wir können die Story veröffentlichen."},{character:"you","text@en":"The headline: Teenagers are happy with TikTube's algorithm.","text@de":"Die Überschrift: Warum Teenager vom TikTube-Algorithmus begeistert sind."},{character:"editor","text@en":"You have the front page.","text@de":"Das ist etwas für Seite eins."},{character:"editor","text@en":" ","text@de":""},{character:"colleague","text@en":"Wow, that's some poorly researched journalism.","text@de":"Wow, das ist mal ein gutes Beispiel für schlecht recherchierten Journalismus."},{character:"colleague","text@en":"You pretty much did PR work.","text@de":"Das ist im Prinzip kostenlose PR für TikTube."},{character:"tt-spox","text@en":"Brilliant, I love your piece! 👏🏼👏🏼👏🏼","text@de":"Großartig, ich bin begeistert! 👏🏼👏🏼👏🏼"},{character:"tt-spox","text@en":"We need more journalists like you.","text@de":"So geht guter Journalismus."}],choices:[{"text@en":"Game over","text@de":"Game over",var_changes:{game_over_final:1}}]},{year:17,conditions:[{var:"game_over",min:1},{var:"ending_teens_happy",max:0}],choices:[{"text@en":"Game over","text@de":"Game over",var_changes:{game_over_final:1}}]},{year:18,helper:[{character:"colleague","text@en":"[Sources|Sources].","text@de":""}],texts:[{character:"leaker","text@en":"Hi there.","text@de":"Hallo."},{character:"leaker","text@en":"I'm a former employee at TikTube.","text@de":"Ich habe früher für TikTube gearbeitet."},{character:"colleague","text@en":"That could be explosive.","text@de":"Das Material könnte wie eine Bombe hochgehen."},{character:"colleague","text@en":"But be careful to double-check.","text@de":"Aber Du solltest die Sache unbedingt selber nochmal prüfen."},{character:"colleague","text@en":"Some colleagues got caught with fake leaks in the past. [Check your inbox for more|Sources].","text@de":"In der Vergangenheit sind immer wieder gefälschte Dokumente geleakt worden. Schau in die [Mail|Sources], die ich dir dazu geschickt habe."},{character:"leaker","text@en":"I have some documents that might interest you.","text@de":"Ich habe einige Dokumente, die Sie interessieren könnten."},{character:"leaker","text@en":"Wanna look at them?","text@de":"Wollen Sie einen Blick drauf werfen?"}],choices:[{"text@en":"Please share.","text@de":"Ich möchte sie gerne sehen.",var_changes:{leaker_yes:1,sources_contacted:1,time_left:-4},feedback:[{character:"you","text@en":"Yes, please!","text@de":"Ja, bitte!"}]},{"text@en":"Can you prove who you are?","text@de":"Können Sie mir Ihre Identität bestätigen?",var_changes:{leaker_prove:1,time_left:-4},feedback:[{character:"you","text@en":"Can you prove who you say you are?","text@de":"Können Sie beweisen, dass Sie wirklich der sind, als der Sie sich ausgeben?"},{character:"leaker","text@en":"Here's a screenshot of my e-mail inbox at TikTube.","text@de":"Hier ist ein Screenshot vom Posteingang meiner TikTube-Mailadresse."},{character:"leaker","text@en":"An image of an e-mail inbox","text@de":"Posteingang-Bild"},{character:"colleague","text@en":"Anyone could fake this.","text@de":"Das lässt sich leicht fälschen."}]},{"text@en":"Not interested. That would be against the law on trade secrets.","text@de":"Ich bin nicht interessiert. Das würde gegen den gesetzlichen Schutz von Geschäftsgeheimnissen verstoßen.",var_changes:{time_left:-4},feedback:[{character:"you","text@en":"Thanks, but I'll pass.","text@de":"Danke, aber ich bin nicht interessiert."},{character:"you","text@en":"I'm afraid the law on trade secrets prevents me from accepting.","text@de":"Ich muss leider ablehnen. Geschäftsgeheimnisse sind gesetzlich geschützt."}]}]},{year:18,conditions:[{var:"leaker_prove",min:1}],choices:[{"text@en":"I know.","text@de":"Ich weiß.",var_changes:{leaker_yes:1,sources_contacted:1},feedback:[{character:"you","text@en":"I know, I'll double-check.","text@de":"Ich weiß. Ich werde es prüfen."}]}]},{year:18,conditions:[{var:"leaker_yes",min:1}],texts:[{character:"leaker","text@en":"I was in the ethics team at TikTube.","text@de":"Ich gehörte bei TikTube zum Ethik-Team."},{character:"leaker","text@en":"We did research on our impact on mental health.","text@de":"Wir haben Studien zum Einfluss von TikTube auf die geistige Gesundheit durchgeführt."},{character:"leaker","text@en":"The team was disbanded in early 2023.","text@de":"Das Team wurde Anfang 2023 aufgelöst."},{character:"leaker","text@en":"Here are some slides from an internal presentation I made last year.","text@de":"Hier sind ein paar Folien einer internen Präsentation aus dem letzten Jahr."},{character:"leaker","text@en":"A slide with text: survey from users show negative effect on mental health.","text@de":"Folie mit Aufschrift: Umfrage unter Nutzern bestätigt negative Auswirkungen auf mentale Verfassung."},{character:"leaker","text@en":"A slide with text: Teens notably sadder after using the app.","text@de":"Folie mit Aufschrift: Die App ruft nachweislich bei Teenagern Depressionen hervor."}],choices:[{"text@en":"Thanks.","text@de":"Danke.",feedback:[{character:"you","text@en":"Wow, that's heavy.","text@de":"Wow, das ist eine Riesensache."},{character:"you","text@en":"Thanks.","text@de":"Danke."}]},{"text@en":"Who can confirm that they're genuine?","text@de":"Wer kann mir bestätigen, dass die Dokumente echt sind?",var_changes:{sources_contacted:1,leaker_verify:1},feedback:[{character:"you","text@en":"How can I confirm that they're not fake?","text@de":"Wie kann ich sicher sein, dass die Dokumente echt sind?"},{character:"leaker","text@en":"A former colleague will contact you soon.","text@de":"Ein früherer Kollege von mir wird sich bald bei Ihnen melden."},{character:"leaker-colleague","text@en":"Pssst...","text@de":"Pssst..."},{character:"leaker-colleague","text@en":"I've been told to contact you.","text@de":"Ich sollte mich bei Ihnen melden."},{character:"leaker-colleague","text@en":"What you saw appears genuine.","text@de":"Die Dokumente, die Sie gesehen haben, scheinen echt zu sein."},{character:"leaker-colleague","text@en":"You never talked to me.","text@de":"Wir haben aber nie miteinander gesprochen."}]}]},{year:19,conditions:[{var:"leaker_yes",min:1},{var:"leaker_verify",min:1}],texts:[{character:"colleague","text@en":"You've got yourself a nice scoop with this leak.","text@de":"Du bist mit diesem Leak auf eine große Story gestoßen."}],choices:[{"text@en":"Thanks","text@de":"Danke.",feedback:[{character:"you","text@en":"Thanks. Couldn't have done it without you.","text@de":"Danke. Dein Anteil an der Story ist genauso groß wie meiner."}]}]},{year:19,conditions:[{var:"leaker_yes",min:1},{var:"leaker_verify",max:0}],texts:[{character:"colleague","text@en":"You've got yourself a nice scoop with this leak.","text@de":"Sie sind mit diesem Leak auf eine große Story gestoßen."},{character:"colleague","text@en":"But you didn't double-check the info.","text@de":"Aber wir haben keine zweite Quelle für die Informationen."},{character:"colleague","text@en":"Publishing that would be very risky.","text@de":"Es wäre sehr riskant, das so zu veröffentlichen."}],choices:[{"text@en":"Really?","text@de":"Wirklich?",feedback:[{character:"you","text@en":"Really?","text@de":"Wirklich?"},{character:"you","text@en":"It looked legit to me.","text@de":"Für mich sah alles echt aus."},{character:"colleague","text@en":"Fake sources are a thing.","text@de":"Es tauchen immer wieder falsche Quellen auf."},{character:"colleague","text@en":"You really should [read my emails|Sources].","text@de":"Du solltest wirklich meine [Mail|Sources] lesen."}]}]},{year:19,texts:[{character:"colleague","text@en":"You still need to get some more context from academics working on algorithms.","text@de":"Du solltest noch für Hintergrundinformationen jemanden aus der Algorithmenforschung interviewen."},{character:"colleague","text@en":"Here are two specialists. Call one of them.","text@de":"Ich habe Kontakt zu zwei Fachleuten. Melde dich bei einem von ihnen."}],choices:[{"text@en":"Prof. Alois Manchego, head of the AI accountability lab","text@de":"Prof. Alois Manchego, Leiter des KI-Rechenschaftszentrums",var_changes:{manchego:1,time_left:-4,sources_contacted:1}},{"text@en":"Hiltrud Brandt, PhD","text@de":"Hiltrud Brandt, PhD",var_changes:{brandt:1,time_left:-4,sources_contacted:1}}]},{year:20,conditions:[{var:"manchego",min:1}],texts:[{character:"manchego","text@en":"Hello. I'm professor Manchego.","text@de":"Hallo. Ich bin Professor Manchego."},{character:"manchego","text@en":"I created the AI accountability lab.","text@de":"Ich habe das KI-Rechenschaftszentrum gegründet."},{character:"manchego","text@en":"I've been called a leading authority in the field several times.","text@de":"Ich gelte in diesem Bereich als führender Forscher."}],choices:[{"text@en":"Does TikTube make teens sad?","text@de":"Führt TikTube bei Teenagern zu Depressionen?",feedback:[{character:"you","text@en":"Does TikTube make teens sad?","text@de":"Führt TikTube bei Teenagern zu Depressionen?"},{character:"manchego","text@en":"As far as I know, there is only anecdotal evidence for this hypothesis.","text@de":"Soweit mir bekannt ist, gibt es für diese Hypothese nur einen anekdotischen Beweis."},{character:"manchego","text@en":"My work tends to show that teens use TikTube to accomplish themselves.","text@de":"Die Ergebnisse meiner Arbeit legen eher nahe, dass Teenager TikTube zur Selbstverwirklichung verwenden."},{character:"manchego","text@en":"I'll soon publish a major paper on teenage use of TikTube.","text@de":"Ich werde darüber demnächst eine große Studie veröffentlichen."},{character:"manchego","text@en":"I'll add you to my mailing list.","text@de":"Ich nehme Sie gerne in meine Mailing-Liste auf."}]},{"text@en":"How does the TikTube algorithm work?","text@de":"Wie funktioniert der TikTube-Algorithmus?",feedback:[{character:"you","text@en":"How does the TikTube algorithm work?","text@de":"Wie funktioniert der TikTube-Algorithmus?"},{character:"manchego","text@en":"It's really complex.","text@de":"Es ist ein sehr komplexer Mechanismus."},{character:"manchego","text@en":"I've been given exclusive access to TikTube.","text@de":"Mir wurde ein exklusiver Zugriff auf die TikTube-Plattform eingerichtet."},{character:"manchego","text@en":"I can tell you that these are expert people.","text@de":"Ich kann Ihnen versichern, dass dort ausschließlich Fachleute am Werk sind."},{character:"you","text@en":"So, how does it work?","text@de":"Und wie funktioniert es also?"},{character:"manchego","text@en":"TikTube automatically assess a user's interests.","text@de":"TikTube erstellt automatisch Nutzungsprofile."},{character:"manchego","text@en":"Then offers videos to match.","text@de":"Zu den jeweiligen Profilen werden dann passende Videos zugeordnet."}]}]},{year:20,conditions:[{var:"manchego",min:1}],choices:[{"text@en":"Thanks","text@de":"Danke.",feedback:[{character:"you","text@en":"Thank you professor.","text@de":"Danke, Herr Professor. "},{character:"you","text@en":"This is illuminating.","text@de":"Das ist sehr aufschlussreich."}]},{"text@en":"Who finances the AI accountability lab?","text@de":"Wie finanziert sich das KI-Rechenschaftszentrum eigentlich?",var_changes:{finances_AIlab:1},feedback:[{character:"you","text@en":"Who finances the AI accountability lab?","text@de":"Wie finanziert sich das KI-Rechenschaftszentrum eigentlich?"},{character:"manchego","text@en":"We are funded by Google, Meta, Deutsche Bank and TikTube.","text@de":"Wir erhalten Fördermittel von Google, Meta, Deutsche Bank und TikTube."},{character:"manchego","text@en":"But we are 100% independent.","text@de":"Dennoch sind wir völlig unabhängig."},{character:"manchego","text@en":"These companies are interested in the work we do.","text@de":"Die Unternehmen sind einfach an unserer Arbeit interessiert."},{character:"manchego","text@en":"And they recognize that I'm a leading authority in the field.","text@de":"Und wie ich bereits erwähnte, bin ich auf diesem Gebiet eine Kapazität."}]}]},{year:20,conditions:[{var:"manchego",min:1},{var:"finances_AIlab",min:1}],choices:[{"text@en":"Thanks","text@de":"Danke.",feedback:[{character:"you","text@en":"Thank you professor.","text@de":"Danke, Herr Professor. "},{character:"you","text@en":"This is illuminating.","text@de":"Das ist sehr aufschlussreich."},{character:"manchego","text@en":"I'll now excuse myself.","text@de":"Leider muss ich mich nun von Ihnen verabschieden."},{character:"manchego","text@en":"I have to give an interview to CNN.","text@de":"Ich muss CNN noch ein Interview geben."}]},{"text@en":"Do these companies have a right of regard on your research?","text@de":"Haben diese Unternehmen ein Anrecht auf einen Einblick in Ihre Forschung?",var_changes:{finances_AIlab_push:1},feedback:[{character:"you","text@en":"Do these companies have a right of regard on your research?","text@de":"Haben diese Unternehmen ein Anrecht auf einen Einblick in Ihre Forschung?"},{character:"manchego","text@en":"Of course. I send them an advance copy of everything we publish.","text@de":"Natürlich. Wir senden ihnen im Vorfeld einer Veröffentlichung alles."},{character:"manchego","text@en":"He who pays must get something in return, is it not fair?","text@de":"Immerhin bezahlen sie uns, dann ist das ja das Mindeste, was sie erwarten können."},{character:"manchego","text@en":"But it never happened that my work displeased them.","text@de":"Ich hatte mit meiner Forschung aber noch nie Probleme mit ihnen."},{character:"manchego","text@en":"I'll now excuse myself.","text@de":"Leider muss ich mich nun von Ihnen verabschieden."},{character:"manchego","text@en":"I have to give an interview to CNN.","text@de":"Ich muss CNN noch ein Interview geben."}]}]},{year:20,conditions:[{var:"brandt",min:1}],texts:[{character:"brandt","text@en":"Good morning, I'm Hiltrud Brandt.","text@de":"Guten Morgen, ich bin Hiltrud Brandt."},{character:"brandt","text@en":"I did a PhD on the social impact of automated systems.","text@de":"Ich habe meine Doktorarbeit über den sozialen Einfluss automatisierter Systeme geschrieben."},{character:"brandt","text@en":"I'm now a post-doctoral researcher.","text@de":"Seit meiner Promotion arbeite ich in der Forschung."}],choices:[{"text@en":"Does TikTube make teens sad?","text@de":"Führt TikTube bei Teenagern zu Depressionen?",feedback:[{character:"you","text@en":"Does TikTube make teens sad?","text@de":"Führt TikTube bei Teenagern zu Depressionen?"}]},{ +"text@en":"How does the TikTube algorithm work?","text@de":"Wie funktioniert der TikTube-Algorithmus?",feedback:[{character:"you","text@en":"How does the TikTube algorithm work?","text@de":"Wie funktioniert der TikTube-Algorithmus?"}]}]},{year:20,conditions:[{var:"brandt",min:1}],texts:[{character:"brandt","text@en":"Asking the question in this way might not be helpful.","text@de":"Wenn Sie die Frage so stellen, werden Sie nicht weiterkommen."},{character:"brandt","text@en":"TikTube is actually made of many parts.","text@de":"TikTube besteht aus vielen Teilen."},{character:"brandt","text@en":"There's a system to spot and block any pornography, for instance.","text@de":"Es gibt zum Beispiel ein System, das pornographische Inhalte erkennt und blockt."},{character:"brandt","text@en":"And another one to decide which ads to display.","text@de":"Ein anderes System entscheidet über die Anzeigen, die Sie zu sehen bekommen."},{character:"brandt","text@en":"And another one to recommend new accounts to follow.","text@de":"Wiederum ein anderes empfiehlt Ihnen neue Profile, denen Sie folgen können."},{character:"you","text@en":"And another one to decide which videos to show to a given user?","text@de":"Und noch eines entscheidet, welche Videos Ihnen angezeigt werden."},{character:"brandt","text@en":"Exactly.","text@de":"Ganz genau."}],choices:[{"text@en":"Which of these systems should I investigate?","text@de":"Welches von diesen Systemen sollte ich mir genauer anschauen?",feedback:[{character:"you","text@en":"Which of these systems should I investigate?","text@de":"Welches von diesen Systemen sollte ich mir genauer anschauen?"},{character:"brandt","text@en":"This is a question for you to answer.","text@de":"Diese Frage müssen Sie für sich entscheiden."}]},{"text@en":"Please go on.","text@de":"Was sollte ich dabei beachten?",var_changes:{brandt_continue:1},feedback:[{character:"you","text@en":"Please go on.","text@de":"Was sollte ich dabei beachten?"}]}]},{year:20,conditions:[{var:"brandt",min:1},{var:"brandt_continue",min:1}],helper:[{character:"brandt","text@en":"[AlgorithmicAudits|AlgorithmicAudits]."}],texts:[{character:"brandt","text@en":"Not only are there many algorithms.","text@de":"Es gibt nicht nur viele Algorithmen."},{character:"brandt","text@en":"They constantly interact with humans.","text@de":"Sie interagieren auch ständig mit Menschen."},{character:"brandt","text@en":"Be they users, people who tag videos to train Machine Learning models, executives who decide to chase a new goal...","text@de":"Sei es mit den Nutzer*innen oder den Menschen, die Videos taggen, um Modelle Machinellen Lernens zu trainieren..."},{character:"brandt","text@en":"It's impossible to give a precise description of how this system works.","text@de":"Es ist unmöglich, genau zu beschreiben, wie diese Systeme funktionieren."},{character:"brandt","text@en":"It's simply too vast, too complex.","text@de":"Das ist alles zu komplex und uferlos."},{character:"you","text@en":"So, we'll never know if TikTube makes teens sad?","text@de":"Also werden wir nie wissen, ob TikTube Teenager depressiv macht?"},{character:"brandt","text@en":"Oh, of course we can find out.","text@de":"Oh doch, das können wir."},{character:"brandt","text@en":"But you'll need to rephrase your question.","text@de":"Sie müssen allerdings Ihre Frage anders stellen."},{character:"brandt","text@en":"For one thing, teens have many reasons to be sad.","text@de":"Zunächst einmal haben Teenager allen Anlass dazu, depressiv zu werden."},{character:"brandt","text@en":"The climate catastrophe, the low wages...","text@de":"Die Klimakatastrophe, niedige Löhne..."}],choices:[{"text@en":"How does TikTube contribute to this?","text@de":"Und wie kommt TikTube da ins Spiel?",feedback:[{character:"you","text@en":"You mean that TikTube doesn't compare?","text@de":"Also spielt TikTube dabei gar keine große Rolle?"},{character:"brandt","text@en":"This would be hard to find out.","text@de":"Das dürfte kaum zu beantworten sein."},{character:"brandt","text@en":"You'd need to make a randomized controlled trial.","text@de":"Dazu sollten Sie eine kontrollierte Stichprobenstudie durchführen."},{character:"brandt","text@en":"One group would use TikTube, one wouldn't, and you'd compare their mental health outcome.","text@de":"In der Studie würde eine Gruppe TikTube verwenden und eine andere nicht. Sie könnten dann vergleichen, ob sich das TikTuben negativ auf die geistige Gesundheit auswirkt."},{character:"brandt","text@en":"But – thank goodness – no serious ethical review board would accept such an experiment.","text@de":"Allerdings – und das ist gut so – würde kein Ethikrat so ein Experiment gutheißen."}]},{"text@en":"So, how do I rephrase my question?","text@de":"Wie soll ich also meine Frage umformulieren?",var_changes:{experiment:1},feedback:[{character:"you","text@en":"So, what can I actually research?","text@de":"Was kann ich also realistischerweise herausfinden?"},{character:"brandt","text@en":"You could conduct a small-scale audit.","text@de":"Sie sollten einen kleines Experiment durchführen."},{character:"brandt","text@en":"To check whether TikTube gives priority to sad content, for instance.","text@de":"Bei dem Sie zum Beispiel prüfen, ob TikTube deprimierende Inhalte priorisiert."},{character:"brandt","text@en":"If you create an account that posts sad content...","text@de":"Wenn Sie ein Konto erstellen, auf dem Sie nur deprimierende Inhalte posten..."},{character:"brandt","text@en":"And another one that doesn't...","text@de":"...und ein anderes, auf dem die Inhalte fröhlicher sind..."},{character:"brandt","text@en":"And ask people to follow both and report when they see your posts...","text@de":"...und Bekannte darum bitten, beiden zu folgen und Sie zu informieren, wenn sie Ihre Posts sehen..."},{character:"brandt","text@en":"Then you would see how often sad content is shown.","text@de":"...können Sie sagen, wie oft im Vergleich deprimierende Inhalte bevorzugt werden."},{character:"brandt","text@en":"Auditing algorithms is a complex thing. [I'll send you an email with more examples|AlgorithmicAudits].","text@de":"Algorithmen zu prüfen ist eine komplexe Angelegenheit. Ich schicke Ihnen dazu noch eine [Mail|AlgorithmicAudits]."},{character:"you","text@en":"Thanks, I'll talk to my colleagues.","text@de":"Vielen Dank, ich werde mich dazu mit der Redaktion absprechen."}]}]},{year:21,conditions:[{var:"manchego",min:1},{var:"finances_AIlab_push",max:0}],texts:[{character:"editor","text@en":"So, what's your headline?","text@de":"Und, haben Sie schon eine gute Überschrift?"}],choices:[{"text@en":"« Despite concerns, TikTube is mostly good for teens »","text@de":"„Trotz aller Bedenken: TikTube ist gut für Teenager“",var_changes:{game_over:1},feedback:[{character:"you","text@en":"My story should be titled Despite concerns, TikTube is mostly good for teens.","text@de":"Ich würde der Story den Titel geben: Trotz aller Bedenken: TikTube ist gut für Teenager."},{character:"editor","text@en":"You have the front page.","text@de":"Damit bekommen Sie Seite eins."},{character:"editor","text@en":" ","text@de":""},{character:"tt-spox","text@en":"Nice story! 👍🏼","text@de":"Das klingt nach einer richtig guten Story! 👍🏼"},{character:"manchego","text@en":"Well done.","text@de":"Bravo."},{character:"manchego","text@en":"But you should have put a picture of me on the front page.","text@de":"Ich glaube, dass ein Bild von mir dem Artikel guttun würde."},{character:"manchego","text@en":"Not for my ego, but to give more weight to your piece.","text@de":"Ich sage das nicht, weil ich eitel bin. Aber meine Reputation würde darauf abfärben."},{character:"brandt","text@en":"You know that Manchego's research is financed by TikTube, right?","text@de":"Du weißt, dass Manchegos Forschung von TikTube finanziert wird, oder?"}]},{"text@en":"I need more time.","text@de":"Ich brauche noch etwas Zeit.",var_changes:{game_over:1},feedback:[{character:"you","text@en":"I'm afraid I need more time, boss.","text@de":"Leider brauche ich noch etwas Zeit."},{character:"editor","text@en":"Listen, I'm running a newsroom.","text@de":"Hör mal zu, ich muss hier eine Redaktion am Laufen halten."},{character:"editor","text@en":"Not a spa.","text@de":"Das ist kein Freizeitbetrieb."},{character:"editor","text@en":"The algorithmic accountability beat is too hard for you.","text@de":"Ich habe den Eindruck, dass das Thema zu schwer für dich ist."},{character:"editor","text@en":"From now on, you'll do post-editing on texts that have been automatically generated by ChatGPT.","text@de":"Von daher kannst du ab sofort Texte bearbeiten, die ChatGPT dir automatisch auswirft."}]}]},{year:21,conditions:[{var:"manchego",min:1},{var:"finances_AIlab_push",min:1}],texts:[{character:"editor","text@en":"So, what's your headline?","text@de":"Und, haben Sie schon eine gute Überschrift?"}],choices:[{"text@en":"« Despite concerns, TikTube is mostly good for teens »","text@de":"„Trotz aller Bedenken: TikTube ist gut für Teenager“",var_changes:{game_over:1},feedback:[{character:"you","text@en":"My story should be titled Despite concerns, TikTube is mostly good for teens.","text@de":"Ich würde der Story den Titel geben: Trotz aller Bedenken: TikTube ist gut für Teenager."},{character:"editor","text@en":"You have the front page.","text@de":"Damit bekommen Sie Seite eins."},{character:"editor","text@en":" ","text@de":""},{character:"tt-spox","text@en":"Nice story! 👍🏼","text@de":"Das klingt nach einer richtig guten Story! 👍🏼"},{character:"manchego","text@en":"Well done.","text@de":"Bravo."},{character:"manchego","text@en":"But you should have put a picture of me on the front page.","text@de":"Ich glaube, dass ein Bild von mir dem Artikel guttun würde."},{character:"manchego","text@en":"Not for my ego, but to give more weight to your piece.","text@de":"Ich sage das nicht, weil ich eitel bin. Aber meine Reputation würde darauf abfärben."},{character:"brandt","text@en":"You know that Manchego's research is financed by TikTube, right?","text@de":"Du weißt, dass Manchegos Forschung von TikTube finanziert wird, oder?"}]},{"text@en":"« Corruption rampant in algorithmic research »","text@de":"„Algorithmische Forschung: Wuchernde Korruption“",var_changes:{game_over:1},feedback:[{character:"you","text@en":"My story should be titled Corruption is rampant in algorithmic research.","text@de":"Ich würde der Story den Titel geben: Algorithmische Forschung: Wuchernde Korruption."},{character:"editor","text@en":"You have the front page.","text@de":"Damit bekommst du Seite eins."},{character:"editor","text@en":" ","text@de":""},{character:"colleague","text@en":"Tricky choice. Corruption is not a light word around here.","text@de":"Du sprichst ein großes Wort gelassen aus. Ich würde da vorsichtig sein."},{character:"brandt","text@en":"Finally, a newspaper calling things by their name!","text@de":"Endlich sagt eine Zeitung direkt, wie es um die Dinge steht."},{character:"tt-spox","text@en":"Our contributions to research are entirely driven by philantropic goals. 👼","text@de":"Unsere Forschungsbeiträge verfolgen ausschließlich philanthropische Ziele. 👼"},{character:"manchego","text@en":"This is slander. I'll see you in court.","text@de":"Das ist Verleumdung. Wir sehen uns vor Gericht."}]},{"text@en":"I need more time.","text@de":"Ich brauche noch etwas Zeit.",var_changes:{game_over:1},feedback:[{character:"you","text@en":"I'm afraid I need more time, boss.","text@de":"Leider brauche ich noch etwas Zeit."},{character:"editor","text@en":"Listen, I'm running a newsroom.","text@de":"Hör mal zu, ich muss hier eine Redaktion am Laufen halten."},{character:"editor","text@en":"Not a spa.","text@de":"Das ist kein Freizeitbetrieb."},{character:"editor","text@en":"This algorithmic accountability beat is too hard for you.","text@de":"Ich habe den Eindruck, dass das Thema zu schwer für dich ist."},{character:"editor","text@en":"From now on, you'll do post-editing on texts that have been automatically generated by ChatGPT.","text@de":"Von daher kannst du ab sofort Texte bearbeiten, die ChatGPT dir automatisch auswirft."}]}]},{year:21,conditions:[{var:"brandt",min:1}],texts:[{character:"editor","text@en":"Are you ready to publish?","text@de":"Können wir die Story jetzt bringen?"}],choices:[{"text@en":"Yes","text@de":"Ja.",var_changes:{ready_to_publish:1}},{"text@en":"I need more time.","text@de":"Ich brauche noch etwas Zeit.",var_changes:{more_time:1}}]},{year:21,conditions:[{var:"more_time",min:1},{var:"sources_contacted",min:5},{var:"leaker_verify",min:1},{var:"experiment",min:1}],texts:[{character:"you","text@en":"I'd need more time, boss.","text@de":"Könnte ich noch etwas Zeit bekommen?"},{character:"you","text@en":"I'd like to conduct an experiment.","text@de":"Ich würde gern ein Experiment starten."},{character:"you","text@en":"To check whether TikTube prioritizes sad content.","text@de":"Damit will ich herausfinden, ob TikTube deprimierende Inhalte priorisiert."},{character:"editor","text@en":"OK.","text@de":"Ok."},{character:"editor","text@en":"But this is ONLY because your colleague Lisbet Swango speaks highly of you.","text@de":"Aber NUR, weil Lisbet dich so zu schätzen scheint."}],choices:[{"text@en":"Thank you, boss","text@de":"Danke!",var_changes:{doing_experiment:1,time_left:10},feedback:[{character:"you","text@en":"Thank you, boss.","text@de":"Danke!"}]}]},{year:21,conditions:[{var:"more_time",min:1},{var:"doing_experiment",max:0}],texts:[{character:"editor","text@en":"How much time would you need?","text@de":"Wie lange wird das dauern?"}],choices:[{"text@en":"One day","text@de":"Einen Tag.",var_changes:{game_over:1},feedback:[{character:"you","text@en":"Just one day, boss.","text@de":"Nur einen Tag."},{character:"editor","text@en":"Listen, I'm running a newsroom.","text@de":"Hör mal zu, ich muss hier eine Redaktion am Laufen halten."},{character:"editor","text@en":"Not a spa.","text@de":"Das ist kein Freizeitbetrieb."},{character:"editor","text@en":"This algorithmic accountability beat is too hard for you.","text@de":"Ich habe den Eindruck, dass das Thema zu schwer für dich ist."},{character:"editor","text@en":"From now on, you'll do post-editing on texts that have been automatically generated by ChatGPT.","text@de":"Von daher kannst du ab sofort Texte bearbeiten, die ChatGPT dir automatisch auswirft."}]},{"text@en":"Three days","text@de":"Drei Tage.",var_changes:{game_over:1},feedback:[{character:"you","text@en":"Just three day, boss.","text@de":"Nur drei Tage."},{character:"editor","text@en":"Listen, I'm running a newsroom.","text@de":"Hör mal zu, ich muss hier eine Redaktion am Laufen halten."},{character:"editor","text@en":"Not a spa.","text@de":"Das ist kein Freizeitbetrieb."},{character:"editor","text@en":"This algorithmic accountability beat is too hard for you.","text@de":"Ich habe den Eindruck, dass das Thema zu schwer für dich ist."},{character:"editor","text@en":"From now on, you'll do post-editing on texts that have been automatically generated by ChatGPT.","text@de":"Von daher kannst du ab sofort Texte bearbeiten, die ChatGPT dir automatisch auswirft."}]}]},{year:21,conditions:[{var:"ready_to_publish",min:1},{var:"doing_experiment",max:0},{var:"leaker_yes",min:1}],texts:[{character:"editor","text@en":"And what's your headline?","text@de":"Und wie soll die Überschrift lauten?"}],choices:[{"text@en":"« TikTube is too complex to understand »","text@de":"„TikTube: Zu komplex, um es zu verstehen“",var_changes:{game_over:1},feedback:[{character:"you","text@en":"My story should be titled TikTube is too complex to understand.","text@de":"Ich würde der Story den Titel geben: TikTube: Zu komplex, um es zu verstehen."},{character:"editor","text@en":"You have the front page.","text@de":"Damit bekommst du Seite eins."},{character:"editor","text@en":" ","text@de":""},{character:"tt-spox","text@en":"Nice story! 👍🏼","text@de":"Das klingt nach einer richtig guten Story! 👍🏼"},{character:"tt-spox","text@en":"I'll always be happy to help you understand more.","text@de":"Ich bin gerne dabei behilflich, Klarheit zu schaffen."},{character:"brandt","text@en":"No.","text@de":"Nein."},{character:"brandt","text@en":"That wasn't my point AT ALL.","text@de":"Darauf wollte ich ÜBERHAUPT NICHT hinaus."},{character:"brandt","text@en":"I meant that we should ask precise questions.","text@de":"Ich wollte sagen, dass wir präzise Fragen stellen sollten."},{character:"brandt","text@en":"Not that we should stop asking.","text@de":"Und nicht, dass wir aufhören sollten, Fragen zu stellen."}]},{"text@en":"« Internal documents reveal that TikTube harms teens »","text@de":"„Interne Dokumente beweisen: TikTube schadet Teenagern“",var_changes:{game_over:1},feedback:[{character:"you","text@en":"My story should be titled Internal documents reveal that TikTube harms teens.","text@de":"Ich würde der Story den Titel geben: Interne Dokumente beweisen: TikTube schadet Teenagern."},{character:"editor","text@en":"You have the front page.","text@de":"Damit bekommst du Seite eins."},{character:"editor","text@en":" ","text@de":""},{character:"colleague","text@en":"Nicely done.","text@de":"Nicht schlecht."},{character:"brandt","text@en":"Interesting story.","text@de":"Interessante Geschichte."},{character:"tt-spox","text@en":"Stupid claim. 🤮","text@de":"Was für eine blödsinnige Behauptung. 🤮"},{character:"tt-spox","text@en":"In the slide you used for your article, ALL GROUPS say that TikTube makes them feel better about themselves.","text@de":"Im Material zum Experiment stand, ALLE UNTERSUCHSGRUPPEN hätten angegeben, dass sie sich durch TikTube besser fühlen würden."},{character:"tt-spox","text@en":"You distorted the facts. 🤥","text@de":"Du hast die Fakten verdreht. 🤥"}]}]},{year:21,conditions:[{var:"ready_to_publish",min:1},{var:"doing_experiment",max:0},{var:"leaker_yes",max:0}],texts:[{character:"editor","text@en":"And what's your headline?","text@de":"Und wie soll die Überschrift lauten?"}],choices:[{"text@en":"« TikTube is too complex to understand »","text@de":"„TikTube: Zu komplex, um es zu verstehen“",var_changes:{game_over:1},feedback:[{character:"you","text@en":"My story should be titled TikTube is too complex to understand.","text@de":"Ich würde der Story den Titel geben: TikTube: Zu komplex, um es zu verstehen."},{character:"editor","text@en":"You have the front page.","text@de":"Damit bekommst du Seite eins."},{character:"editor","text@en":" ","text@de":""},{character:"tt-spox","text@en":"Nice story! 👍🏼","text@de":"Das klingt nach einer richtig guten Story! 👍🏼"},{character:"tt-spox","text@en":"I'll always be happy to help you understand more.","text@de":"Ich bin gerne dabei behilflich, Klarheit zu schaffen."},{character:"brandt","text@en":"No.","text@de":"Nein."},{character:"brandt","text@en":"That wasn't my point AT ALL.","text@de":"Darauf wollte ich ÜBERHAUPT NICHT hinaus."},{character:"brandt","text@en":"I meant that we should ask precise questions.","text@de":"Ich wollte sagen, dass wir präzise Fragen stellen sollten."},{character:"brandt","text@en":"Not that we should stop asking.","text@de":"Und nicht, dass wir aufhören sollten, Fragen zu stellen."}]},{"text@en":"« Large platforms are so complex they should be regulated »","text@de":"„Große Plattformen: So komplex, dass sie reguliert werden müssen“",var_changes:{game_over:1},feedback:[{character:"you","text@en":"My story should be titled Large platforms are so complex they should be regulated.","text@de":"Ich würde der Story den Titel geben: TikTube: Zu komplex, um es zu verstehen."},{character:"editor","text@en":"You have the front page.","text@de":"Damit bekommst du Seite eins."},{character:"editor","text@en":" ","text@de":""},{character:"ECATspox","text@en":"According to the Digital Services Act, large platforms are already regulated.","text@de":"Dem Digital Services Act zufolge werden große Plattformen schon reguliert."},{character:"brandt","text@en":"Interesting story.","text@de":"Interessante Geschichte."},{character:"tt-spox","text@en":"Nice story 👍🏼","text@de":"Das klingt nach einer richtig guten Story! 👍🏼"},{character:"tt-spox","text@en":"TikTube is strongly in favor of sound regulation.","text@de":"TikTube ist voll und ganz für eine starke Regulation."}]}]},{year:21,conditions:[{var:"game_over",min:1}],choices:[{"text@en":"Game over","text@de":"Game over",var_changes:{game_over_final:1}}]},{year:22,texts:[{character:"colleague","text@en":"Well done.","text@de":"Wow."},{character:"colleague","text@en":"The editor-in-chief is rarely so generous.","text@de":"Die Chefin zeigt sich selten so großzügig."},{character:"you","text@en":"It's all because of you.","text@de":"Du hast bei ihr wirklich ein Stein im Brett."},{character:"colleague","text@en":"😊","text@de":"😊"},{character:"colleague","text@en":"To conduct your audit of TikTube, get in touch with Ant1G4F4m.","text@de":"Für dein TikTube-Experiment solltest du dich mit Ant1G4F4m kurzschließen."},{character:"you","text@en":"How to pronounce her name?","text@de":"Wie wird der Name ausgesprochen?"},{character:"colleague","text@en":"That's not the point.","text@de":"Egal."},{character:"colleague","text@en":"She's a brilliant computer developer.","text@de":"Sie ist eine geniale Entwicklerin, darauf kommt es an."}],choices:[{"text@en":"Thanks.","text@de":"Danke.",var_changes:{time_left:-4,sources_contacted:1},feedback:[{character:"you","text@en":"Thanks, will do.","text@de":"Danke, ich melde mich bei ihr."}]}]},{year:23,texts:[{character:"dev","text@en":"Hello, what can I do for you?","text@de":"Hallo, worum geht's?"},{character:"you","text@en":"I'd like to carry out an audit of TikTube.","text@de":"Ich will ein kleines Experiment mit TikTube durchführen."},{character:"you","text@en":"To know whether sad content is prioritized in the newsfeed.","text@de":"Ich will rausfinden, ob es im Newsfeed deprimierende Inhalte priorisiert."},{character:"dev","text@en":"And how shall we do this?","text@de":"Und wie soll das ablaufen?"},{character:"you","text@en":"We set up two TikTube accounts.","text@de":"Wir erstellen zwei Konten."},{character:"you","text@en":"One posts happy content, the other sad content.","text@de":"Auf einem posten wir fröhliche Inhalte, auf dem anderen deprimierende."},{character:"you","text@en":"Lots of users follow both.","text@de":"Wir suchen uns einige Nutzer*innen, die beiden folgen."},{character:"you","text@en":"And we check whether they see more posts from the happy or from the sad account.","text@de":"Und dann sollen sie uns sagen, ob ihnen mehr fröhliche oder mehr deprimierende Posts angezeigt werden."},{character:"dev","text@en":"These 'lots of users', are they real people or bots?","text@de":"Sollen „einige Nutzer*innen“ reale Menschen oder Bots sein?"}],choices:[{"text@en":"Real people","text@de":"Reale Menschen.",feedback:[{character:"you","text@en":"Real users.","text@de":"Reale Nutzer*innen."},{character:"dev","text@en":"OK, I assume you have months ahead of you?","text@de":"Dafür hast du hoffentlich ein paar Monate Zeit."},{character:"dev","text@en":"Convincing people to participate is hard.","text@de":"Teilnehmer*innen für sowas zu finden ist nicht so einfach."},{character:"you","text@en":"I have five days.","text@de":"Ich habe fünf Tage."},{character:"dev","text@en":"I'll create some bots, then.","text@de":"Dann erstell ich mal ein paar Bots."},{character:"dev","text@en":"But they might get blocked by TikTube.","text@de":"TikTube könnte sie aber erkennen und blocken."}]},{"text@en":"Bots","text@de":"Bots.",feedback:[{character:"you","text@en":"Bots.","text@de":"Bots."},{character:"dev","text@en":"OK, but keep in mind that TikTube might detect them and block us.","text@de":"Ok, aber denk dran, dass TikTube sie erkennen und uns blocken könnte."}]},{"text@en":"What?","text@de":"Was?",feedback:[{character:"you","text@en":"I haven't thought of that.","text@de":"Daran hab ich nicht gedacht."},{character:"dev","text@en":"I'd rather go with bots, it's much faster.","text@de":"Bots wären mir lieber, das geht schneller."},{character:"dev","text@en":"But TikTube might block us.","text@de":"TikTube könnte uns deswegen aber blocken."}]}]},{year:23,texts:[{character:"dev","text@en":"I'll get started now.","text@de":"Ich fang gleich damit an."},{character:"dev","text@en":"And get back to you in a few days.","text@de":"Und melde mich bald bei dir."}],choices:[{"text@en":"Looking forward.","text@de":"Das freut mich.",var_changes:{time_left:-4},feedback:[{character:"you","text@en":"Thanks, looking forward.","text@de":"Danke, das freut mich."}]}]},{year:24,texts:[{character:"tt-spox","text@en":"Hello again 👋🏼","text@de":"Hallo nochmal 👋🏼"},{character:"tt-spox","text@en":"I've seen that you have a project going on.","text@de":"Ich habe mitbekommen, dass du an einem Forschungsprojekt arbeitest."},{character:"tt-spox","text@en":"That's great! 👍🏼 We love external researchers.","text@de":"Das unterstützen wir! 👍🏼 Wir wissen, wie wichtig externe Forschung ist."},{character:"you","text@en":"Thanks!","text@de":"Danke!"},{character:"tt-spox","text@en":"But this particular project of yours is going against our Terms of Service.","text@de":"Allerdings verstößt dieses Projekt leider gegen unsere Geschäftsbedingungen."},{character:"tt-spox","text@en":"Our lawyers will be happy to support you to make it compliant. 🫱🏼","text@de":"Falls du Hilfe dabei brauchst, dein Projekt unseren AGB entsprechend anzupassen, kannst du dich gerne an unsere Rechtsabteilung wenden. 🫱🏼"},{character:"tt-spox","text@en":"But you'll need to shut down your project first.","text@de":"Allerdings müssen wir dich darum bitten, dein Projekt unverzüglich abzubrechen."}],choices:[{"text@en":"Sure.","text@de":"Kein Problem.",var_changes:{stopped_experiment:1,time_left:-4},feedback:[{character:"you","text@en":"Oh, I apologize.","text@de":"Oh, ich bitte um Entschuldigung."},{character:"tt-spox","text@en":"No harm done! 😊","text@de":"Überhaupt kein Problem! 😊"},{character:"tt-spox","text@en":"We'll soon be in touch to help you.","text@de":"Wir werden uns bald bei dir melden, um dich zu unterstützen."}]},{"text@en":"No way.","text@de":"Nicht nötig.",var_changes:{time_left:-4,continued_experiment:1},feedback:[{character:"you","text@en":"I guess you'll have to review your Terms of Service.","text@de":"Ihr solltet euch eure Geschäftsbedigungen einmal genauer ansehen."},{character:"you","text@en":"Because I'm keeping my project on.","text@de":"Ich werde nämlich mein Projekt definitiv nicht abbrechen."},{character:"tt-spox","text@en":"You could land in trouble.","text@de":"Das könnte dich in Schwierigkeiten bringen."},{character:"you","text@en":"Your bluff does not work on me.","text@de":"Ich lasse mich nicht so leicht einschüchtern."}]}]},{year:25,conditions:[{var:"continued_experiment",min:1}],texts:[{character:"dev","text@en":"Here are the results.","text@de":"Zumal ich schon Ergebnisse habe."},{character:"dev","text@en":"It's really exciting.","text@de":"Die sind wirklich interessant."},{character:"dev","text@en":"The odds of seeing a video that shows sad content over the odds of seeing any video from our test accounts is 3.2!","text@de":"Die Wahrscheinlichkeit, ein Video mit deprimierenden Inhalten angezeigt zu bekommen, steht der Wahrscheinlichkeit gegenüber, ein fröhliches zu sehen, in einem Verhältnis von 3,2 zu eins!"},{character:"you","text@en":"Could you repeat in plain English please?","text@de":"Was soll das heißen?"},{character:"dev","text@en":"Based on our data, TikTube does prioritize sad content, a lot.","text@de":"Unsere Daten legen nahe, dass TikTube eindeutig deprimierende Inhalte priorisiert."},{character:"dev","text@en":"Of course, we did it with bots, and the behavior of real users could be different.","text@de":"Da wir Bots einsetzen mussten, können wir natürlich nicht sagen, dass es bei realen Nutzer*innen zwangsläufig genauso ist."},{character:"dev","text@en":"It's still solid evidence that something fishy is going on.","text@de":"Aber die Beweislage lässt doch darauf schließen, dass hier irgendwas nicht stimmt."},{character:"editor","text@en":"So.","text@de":"Nun denn."},{character:"editor","text@en":"How's that audit going?","text@de":"Hat das Experiment irgendetwas gebracht?"},{character:"you","text@en":"The story will soon be ready.","text@de":"Die Story ist so gut wie fertig."},{character:"you","text@en":"The headline should be New evidence that TikTube prioritizes sad content.","text@de":"Die Story sollte den Titel haben: Neue Erkenntnisse: TikTube pusht deprimierende Inhalte."},{character:"editor","text@en":"You have the front page.","text@de":"Damit bekommst du Seite eins."},{character:"editor","text@en":" ","text@de":""},{character:"colleague","text@en":"Very nice piece, well done.","text@de":"Sehr schöner Beitrag. Gut gemacht."},{character:"brandt","text@en":"Interesting findings.","text@de":"Interessante Ergebnisse."},{character:"brandt","text@en":"I'll cite you in my next paper.","text@de":"Ich werde Sie in meinem nächsten Paper zitieren."},{character:"ECATspox","text@en":"I just read your story.","text@de":"Ich habe gerade Ihren Beitrag gelesen."},{character:"ECATspox","text@en":"Would you be interested in giving a workshop at ECAT?","text@de":"Wären Sie interessiert daran, einen Workshop im Europäischen Zentrum für algorithmische Transparenz zu geben?"},{character:"tt-spox","text@en":"We strongly dispute your findings.","text@de":"Ihre Ergebnisse sind bei uns höchst umstritten."}],choices:[{"text@en":"Game over", +"text@de":"Game over",var_changes:{game_over_win:1}}]},{year:25,conditions:[{var:"stopped_experiment",min:1}],texts:[{character:"colleague","text@en":"Why are you staring at your screen like that?","text@de":"Warum schaust du immer wieder so erwartungsvoll auf deinen Bildschirm?"},{character:"you","text@en":"I'm waiting for an email from TikTube.","text@de":"TikTube wollte sich bei mir melden."},{character:"you","text@en":"They promised they'd help me if I stopped my audit.","text@de":"Das haben sie mir versprochen, wenn ich das Experiment abbrechen würde."},{character:"colleague","text@en":"You trusted them?","text@de":"Du hast ihnen geglaubt?"},{character:"colleague","text@en":"Seriously?","text@de":"Ist das dein Ernst?"},{character:"you","text@en":"Did I make a mistake?","text@de":"War das ein Fehler?"},{character:"editor","text@en":"So.","text@de":"Nun denn."},{character:"editor","text@en":"How's that audit going?","text@de":"Hat das Experiment irgendetwas gebracht?"},{character:"you","text@en":"Well...","text@de":"Na ja..."},{character:"you","text@en":"Can I start over?","text@de":"Kann ich nochmal von vorne anfangen?"},{character:"editor","text@en":"Listen, I'm running a newsroom.","text@de":"Hör mal zu, ich muss hier eine Redaktion am Laufen halten."},{character:"editor","text@en":"Not a preschool.","text@de":"Das ist kein Freizeitbetrieb."},{character:"editor","text@en":"This algorithmic accountability beat is too hard for you.","text@de":"Ich habe den Eindruck, dass das Thema zu schwer für dich ist."},{character:"editor","text@en":"From now on, you'll do post-editing on texts that have been automatically generated by ChatGPT.","text@de":"Von daher kannst du ab sofort Texte bearbeiten, die ChatGPT dir automatisch auswirft."}],choices:[{"text@en":"Game over","text@de":"Game over",var_changes:{game_over_final:1}}]}],endings:[{condition:{var:"game_over_final",min:1},"text@en":"

    You lost!

    Cracking TikTube's algorithm is impossible, but journalists can investigate much more thoroughly than you did this time. Try again!","text@de":"

    Du hast verloren.

    Es ist unmöglich, den TikTube-Algorithmus zu knacken, aber Journalist*innen sollten bei ihrer Recherche deutlich gründlicher vorgehen, als du es getan hast. Versuch es noch einmal!"},{condition:{var:"game_over_win",min:1},"text@en":"

    Congratulations

    You did not crack TikTube's algorithm, but now you know that it makes no sense to talk of cracking an algorithm.

    You did, however, bring new facts to the public, which will help users and decision-makers better understand how large platforms work.","text@de":"

    Glückwunsch!

    Du hast zwar den TikTube-Algorithmus nicht geknackt, aber jetzt weißt du, wie sinnlos die Behauptung ist, einen Algorithmus geknackt zu haben.

    Es ist dir außerdem gelungen, neue Fakten ans Licht zu bringen. Nutzer*innen und Entscheidungsträger*innen können dadurch besser verstehen, wie große Plattformen funktionieren."}],explainers:{ECAT:{"title@en":"Subject: The European Center for Algorithmic Transparency","title@de":"Betreff: Das Europäische Zentrum für algorithmische Transparenz","body@en":"

    Hello colleague,

    As I told you, here's a short helper about ECAT.

    ECAT opened in April 2023 in Sevilla, Spain. It should grow to 30 people by 2024. They shall support European regulators in their investigations of automated systems.

    AlgorithmWatch wrote an explainer about it: https://algorithmwatch.org/en/dsa-explained.

    Cheers,

    Lisbet

    ","body@de":"

    Hallo,

    wie angekündigt hier ein paar erklärende Worte zum Europäischen Zentrum für algorithmische Transparenz.

    Es wurde im April 2023 in Sevilla eröffnet. Bis 2024 soll es 30 Mitarbeiter*innen haben. Es soll die europäischen Aufsichtbehörden dabei unterstützen, automatisierte Systeme zu untersuchen.

    AlgorithmWatch hat einen Explainer dazu veröffentlicht: https://algorithmwatch.org/de/dsa-erklaert/.

    Grüße

    Lisbet

    "},revolvingDoor:{"title@en":"Subject: Revolving doors","title@de":"Betreff: Windmaschinen","body@en":"

    Hi there,

    Large tech companies have a thing European journalists don't: money. They hired lots of former journalists to carry out their lobbying. They will sweet-talk you into believing everything they say.

    Stay alert, and don't fall for their tricks. Every piece of information you get from them must be verified, or at least veryfiable. Pay attention when they use the conditional tense, or say that their algorithm might, or may, or could do a certain thing. We need certainty.

    Cheers,

    Lisbet

    ","body@de":"

    Hallo,

    die großen Tech-Konzerne haben Journalist*innen gegenüber einen Vorteil: Sie haben Geld. Deshalb können sie es sich leisten, viele frühere Journalist*innen dafür zu bezahlen, die Lobbyarbeit für sie zu erledigen und jede Lüge sehr überzeugend klingen zu lassen.

    Da ist Vorsicht geboten, fall nicht auf ihre Tricks rein. Alle Informationen, die du von ihnen bekommst, müssen überprüft werden und überprüfbar sein. Achte darauf, ob sie das Konditional verwenden oder sagen, dass der Algorithmus etwas tun könnte oder würde. Uns interessieren nur Fakten.

    Grüße

    Lisbet

    "},AlgorithmicImaginaries:{"title@en":"Subject: Algorithmic imaginaries","title@de":"Betreff: Welche Vorstellungen wir mit Algorithmen verbinden","body@en":"

    Hi colleague,

    People who use or are subjected to automated systems don't have access to the black boxes anymore than you do. But they have plenty of experience.

    Sometimes, they do manage to pull out actions based on it, like when TikTokers managed to sink a far-right event in 2020 by fake-registering then not showing up.

    But most of the time, this hands-on knowledge is fleeting. One YouTuber thought he'd cracked the TikTok algorithm, for instance, only to later realize that he had not.

    This is what academics call algorithmic imaginaries: What people think about an automated system. Even if the beliefs of users are not based in fact, these beliefs exist and must be taken into account in your reporting.

    Cheers,

    Lisbet

    ","body@de":"

    Hi,

    Menschen, die automatisierten Systemen ausgesetzt sind oder sie verwenden, haben auch keinen besseren Einblick in sie als du. Was sie aber haben ist Erfahrung damit.

    Manchmal gelingt es ihnen, sie für ihre Zwecke zu benutzen. TikTok-User*innen haben zum Beispiel 2020 eine rechtsradikale Veranstaltung damit sabotiert, indem sie sich erst massenhaft dafür angemeldet haben und dann nicht aufgetaucht sind.

    So ein praktisches Know-how ist aber meistens schnell veraltet. Ein YouTuber dachte mal, er hätte den TikTok-Algorithmus geknackt, bis ihm aufging, dass das Quatsch war.

    Wissenschaftler*innen sprechen hier von Imaginationen, die Algorithmen in uns wachrufen, also welche Vorstellungen sie mit automatisierten Systemen verbinden. Selbst wenn diese Vorstellungen nicht den Tatsachen entsprechen, führen sie ein Eigenleben. Deswegen solltest du bei deiner Recherche daran denken und sie ernst nehmen.

    Grüße

    Lisbet

    "},Sources:{"title@en":"Subject: Double-check your sources","title@de":"Betreff: Immer mindestens zwei Quellen","body@en":"

    Hi colleague,

    In this trade, you cannot blindly trust people.

    Whenever a person shares a fact with you, you need to double-check it, by asking someone or finding a document that confirms the initial statement.

    The risk of being lied to is not hypothetical. In October 2022, The Wire published an explosive revelation about Meta... based on fake screenshots. They had to retract the story.

    Cheers,

    Lisbet

    ","body@de":"

    Hi,

    in unserer Branche sollten wir niemandem trauen.

    Alle Informationen müssen von mindestens einer zweiten Quelle bestätigt worden sein, sei es von einer zweiten Person oder einem Dokument.

    Wir werden oft angelogen. Im Oktober 2022 brachte The Wire eine explosive Enthüllungsstory über Meta. Leider haben sich die darin als Beweise angeführten Screenshots als gefälscht entpuppt. The Wire musste die Story deswegen zurückziehen .

    Grüße

    Lisbet

    "},AlgorithmicAudits:{"title@en":"Subject: Auditing an automated system","title@de":"Betreff: Wie ein automatisiertes System geprüft wird","body@en":"

    Dear journalist,

    I enjoyed talking to you earlier.

    Auding an automated system is actually much more than running computer code. You need to understand how the system works in relation with the people who operate it, and the people who use it.

    Academics call these kinds of investigation \"mixed-methods\", which are a combination of qualitative and quantitative techniques.

    AlgorithmWatch wrote a good piece on the topic: How researchers are upping their game to audit recommender systems.

    Good luck with your investigation,

    Dr. Brandt

    ","body@de":"

    Liebe Pressevertreterin,

    es hat mich gefreut, vorhin mit Ihnen zu reden.

    Es gehört mehr dazu, ein automatisiertes System zu prüfen, als nur einen Computercode auszuführen. Sie müssen lernen zu verstehen, wie das System funktioniert – für die Menschen, die es betreiben, und die Menschen, die es verwenden.

    Diese Art der Untersuchung nennen Wissenschaftler*innen „Mixed Methods”, was eine Kombination aus qualitativen und quantitativen Methoden bezeichnet.

    AlgorithmWatch hat dazu einen guten Artikel veröffentlicht: How researchers are upping their game to audit recommender systems.

    Viel Glück bei Ihrer Recherche!

    Dr. Brandt

    "}}}},function(t,e){/*! + localForage -- Offline Storage, Improved + Version 1.5.0 + https://localforage.github.io/localForage + (c) 2013-2017 Mozilla, Apache License 2.0 +*/ +!function(n){if("object"==typeof e&&"undefined"!=typeof t)t.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var r;r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,r.localforage=n()}}(function(){return function t(e,n,r){function i(o,s){if(!n[o]){if(!e[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[o]={exports:{}};e[o][0].call(l.exports,function(t){var n=e[o][1][t];return i(n?n:t)},l,l.exports,t,e,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o=43)}}).catch(function(){return!1})}function d(t){return"boolean"==typeof st?ct.resolve(st):h(t).then(function(t){return st=t})}function p(t){var e=ut[t.name],n={};n.promise=new ct(function(t){n.resolve=t}),e.deferredOperations.push(n),e.dbReady?e.dbReady=e.dbReady.then(function(){return n.promise}):e.dbReady=n.promise}function g(t){var e=ut[t.name],n=e.deferredOperations.pop();n&&n.resolve()}function v(t,e){return new ct(function(n,r){if(t.db){if(!e)return n(t.db);p(t),t.db.close()}var i=[t.name];e&&i.push(t.version);var a=ot.open.apply(ot,i);e&&(a.onupgradeneeded=function(e){var n=a.result;try{n.createObjectStore(t.storeName),e.oldVersion<=1&&n.createObjectStore(lt)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+t.name+'" has been upgraded from version '+e.oldVersion+" to version "+e.newVersion+', but the storage "'+t.storeName+'" already exists.')}}),a.onerror=function(t){t.preventDefault(),r(a.error)},a.onsuccess=function(){n(a.result),g(t)}})}function m(t){return v(t,!1)}function y(t){return v(t,!0)}function x(t,e){if(!t.db)return!0;var n=!t.db.objectStoreNames.contains(t.storeName),r=t.versiont.db.version;if(r&&(t.version!==e&&console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),i||n){if(n){var a=t.db.version+1;a>t.version&&(t.version=a)}return!0}return!1}function b(t){return new ct(function(e,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:t.type})},r.readAsBinaryString(t)})}function _(t){var e=f(atob(t.data));return u([e],{type:t.type})}function w(t){return t&&t.__local_forage_encoded_blob}function S(t){var e=this,n=e._initReady().then(function(){var t=ut[e._dbInfo.name];if(t&&t.dbReady)return t.dbReady});return l(n,t,t),n}function $(t){function e(){return ct.resolve()}var n=this,r={db:null};if(t)for(var i in t)r[i]=t[i];ut||(ut={});var a=ut[r.name];a||(a={forages:[],db:null,dbReady:null,deferredOperations:[]},ut[r.name]=a),a.forages.push(n),n._initReady||(n._initReady=n.ready,n.ready=S);for(var o=[],s=0;s>4,l[u++]=(15&r)<<4|i>>2,l[u++]=(3&i)<<6|63&a;return c}function R(t){var e,n=new Uint8Array(t),r="";for(e=0;e>2],r+=dt[(3&n[e])<<4|n[e+1]>>4],r+=dt[(15&n[e+1])<<2|n[e+2]>>6],r+=dt[63&n[e+2]];return n.length%3===2?r=r.substring(0,r.length-1)+"=":n.length%3===1&&(r=r.substring(0,r.length-2)+"=="),r}function L(t,e){var n="";if(t&&(n=Pt.call(t)),t&&("[object ArrayBuffer]"===n||t.buffer&&"[object ArrayBuffer]"===Pt.call(t.buffer))){var r,i=vt;t instanceof ArrayBuffer?(r=t,i+=yt):(r=t.buffer,"[object Int8Array]"===n?i+=bt:"[object Uint8Array]"===n?i+=_t:"[object Uint8ClampedArray]"===n?i+=wt:"[object Int16Array]"===n?i+=St:"[object Uint16Array]"===n?i+=kt:"[object Int32Array]"===n?i+=$t:"[object Uint32Array]"===n?i+=Tt:"[object Float32Array]"===n?i+=At:"[object Float64Array]"===n?i+=Ct:e(new Error("Failed to get type for BinaryArray"))),e(i+R(r))}else if("[object Blob]"===n){var a=new FileReader;a.onload=function(){var n=pt+t.type+"~"+R(this.result);e(vt+xt+n)},a.readAsArrayBuffer(t)}else try{e(JSON.stringify(t))}catch(n){console.error("Couldn't convert value into a JSON string: ",t),e(null,n)}}function D(t){if(t.substring(0,mt)!==vt)return JSON.parse(t);var e,n=t.substring(Et),r=t.substring(mt,Et);if(r===xt&>.test(n)){var i=n.match(gt);e=i[1],n=n.substring(i[0].length)}var a=M(n);switch(r){case yt:return a;case xt:return u([a],{type:e});case bt:return new Int8Array(a);case _t:return new Uint8Array(a);case wt:return new Uint8ClampedArray(a);case St:return new Int16Array(a);case kt:return new Uint16Array(a);case $t:return new Int32Array(a);case Tt:return new Uint32Array(a);case At:return new Float32Array(a);case Ct:return new Float64Array(a);default:throw new Error("Unkown type: "+r)}}function j(t){var e=this,n={db:null};if(t)for(var r in t)n[r]="string"!=typeof t[r]?t[r].toString():t[r];var i=new ct(function(t,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(t){return r(t)}n.db.transaction(function(i){i.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){e._dbInfo=n,t()},function(t,e){r(e)})})});return n.serializer=It,i}function F(t,e){var n=this;"string"!=typeof t&&(console.warn(t+" used as a key, but it is not a string."),t=String(t));var r=new ct(function(e,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){n.executeSql("SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[t],function(t,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),e(r)},function(t,e){r(e)})})}).catch(r)});return c(r,e),r}function V(t,e){var n=this,r=new ct(function(e,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){n.executeSql("SELECT * FROM "+i.storeName,[],function(n,r){for(var a=r.rows,o=a.length,s=0;s0)return void a(N.apply(i,[t,s,n,r-1]));o(e)}})})}).catch(o)});return c(a,n),a}function z(t,e,n){return N.apply(this,[t,e,n,1])}function G(t,e){var n=this;"string"!=typeof t&&(console.warn(t+" used as a key, but it is not a string."),t=String(t));var r=new ct(function(e,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){n.executeSql("DELETE FROM "+i.storeName+" WHERE key = ?",[t],function(){e()},function(t,e){r(e)})})}).catch(r)});return c(r,e),r}function H(t){var e=this,n=new ct(function(t,n){e.ready().then(function(){var r=e._dbInfo;r.db.transaction(function(e){e.executeSql("DELETE FROM "+r.storeName,[],function(){t()},function(t,e){n(e)})})}).catch(n)});return c(n,t),n}function U(t){var e=this,n=new ct(function(t,n){e.ready().then(function(){var r=e._dbInfo;r.db.transaction(function(e){e.executeSql("SELECT COUNT(key) as c FROM "+r.storeName,[],function(e,n){var r=n.rows.item(0).c;t(r)},function(t,e){n(e)})})}).catch(n)});return c(n,t),n}function B(t,e){var n=this,r=new ct(function(e,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){n.executeSql("SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[t+1],function(t,n){var r=n.rows.length?n.rows.item(0).key:null;e(r)},function(t,e){r(e)})})}).catch(r)});return c(r,e),r}function W(t){var e=this,n=new ct(function(t,n){e.ready().then(function(){var r=e._dbInfo;r.db.transaction(function(e){e.executeSql("SELECT key FROM "+r.storeName,[],function(e,n){for(var r=[],i=0;i=0;n--){var r=localStorage.key(n);0===r.indexOf(t)&&localStorage.removeItem(r)}});return c(n,t),n}function X(t,e){var n=this;"string"!=typeof t&&(console.warn(t+" used as a key, but it is not a string."),t=String(t));var r=n.ready().then(function(){var e=n._dbInfo,r=localStorage.getItem(e.keyPrefix+t);return r&&(r=e.serializer.deserialize(r)),r});return c(r,e),r}function K(t,e){var n=this,r=n.ready().then(function(){for(var e=n._dbInfo,r=e.keyPrefix,i=r.length,a=localStorage.length,o=1,s=0;s1}},{key:"yFormatFn",value:function(e){return t("number")(e)}},{key:"paddingRight",get:function(){return this.hasLegend()?null:15}},{key:"i18n",get:function(){var t=this;return this.memoize("i18n",function(){if(t.game.meta.charts&&t.game.meta.charts[t.id])return new e(t.game.meta.charts[t.id])})}},{key:"title",get:function(){return this.i18n?this.i18n.title:u.default.map(this.vars,"label").join(", ")}},{key:"description",get:function(){return this.i18n?this.i18n.description:null}},{key:"id",get:function(){return this[a]}},{key:"vars",get:function(){var t=this;return this.memoize("vars",function(){return u.default.filter(t.game.vars,{chartId:t.id})})}},{key:"game",get:function(){return this[r]}},{key:"labels",get:function(){var t=this;return this.memoize("labels",function(){return u.default.range(u.default.first(t.game.years),t.game.year+1)})}},{key:"valueByYear",get:function(){var t=this;return u.default.reduce(this.vars,function(e,n){return e[n.name]=u.default.reduce(t.game.history,function(e,r){var i=r.step.year;return e[i]=e[i]||e[i-1]||t.game.meta.vars[n.name].value,e[i]+=r.changeFor(n.name),e},{}),e[n.name][t.game.year]=n.value,e},{})}},{key:"data",get:function(){var t=this;return this.memoize("data",function(){return u.default.reduce(t.valueByYear,function(t,e,n){return t[n]=u.default.values(e),t},{})})}}]),n}();return n(s)}a.$inject=["$filter","I18n","memoizeMixin"],Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n-1&&t.isWorthIt()})},this.step.game.journeyCacheKey)}},{key:"consequences",get:function(){return this[s]||[]}},{key:"changes",get:function(){return this[n].var_changes||{}}},{key:"index",get:function(){return this.step.choices.indexOf(this)}},{key:"feedback",get:function(){return this.slices}},{key:"step",get:function(){return this[r]}},{key:"game",get:function(){return this.step.game}},{key:"meta",get:function(){return this[n]}}]),e}(e);return l}s.$inject=["Slice","Stack"],Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n=this.condition.min:!this.condition.hasOwnProperty("max")||this.var.value<=this.condition.max}},{key:"var",get:function(){return this.game.var(this.condition.var)}},{key:"index",get:function(){return this.game.endings.indexOf(this)}},{key:"game",get:function(){return this[n]}},{key:"condition",get:function(){return this[e].condition||{}}}]),o}(t);return o}o.$inject=["I18n"],Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"main";return t.parse(n).forEach(function(t){var i=e.href(r,t),a=''+t.text+"";n=n.split(t.needle).join(a)}),n}}r.$inject=["Explainer","$state"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function o(t){var e=Symbol("open"),n=Symbol("step"),o=Symbol("ref"),u=new RegExp(/\[((.*?)\|(\w*))\]/g),c=function(t){function c(t,a,s){r(this,c);var u=i(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,t));return u[n]=s,u[o]=a,u[e]=!1,u}return a(c,t),s(c,[{key:"step",get:function(){return this[n]}},{key:"ref",get:function(){return this[o]}}],[{key:"asNew",value:function(t){return t.lastIndex=0,t}},{key:"parse",value:function(t){var e=t.match(c.asNew(u))||[];return e.map(function(t){var e=c.asNew(u).exec(t);return{needle:e[0],text:e[2],ref:e[3]}})}}]),c}(t);return c}o.$inject=["I18n"],Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n0}},{key:"hasStepsBehind",value:function(){return this.stepsBehind.length>0}},{key:"allowsNextSlice",value:function(){return!this.isOver()&&!this.lastStack.isLastSlice()}},{key:"hasExplainers",value:function(){return this.explainers.length>0}},{key:"canUndo",value:function(){return this.history.length>0}},{key:"update",value:function(t){var e=this;u.default.forEach(t,function(t,n){e.var(n).update(t)})}},{key:"var",value:function(t){return u.default.find(this.vars,{name:t})}},{key:"endingsFor",value:function(t){return u.default.filter(this.endingsWithVar,function(e){return e.var.name===t})}},{key:"select",value:function(n){this.history.indexOf(n)>-1||(this.history.push(n),this.update(n.changes),n.takeRisks()?(t.info("Losing causes: %s",n.consequences.join(", ")),e.$broadcast("game:over",n)):e.$broadcast("game:selection",n))}},{key:"undo",value:function(){var t=this.history.pop();t.undo(),this.apply(),e.$broadcast("game:undo",t)}},{key:"load",value:function(t){var e=this;this.history.splice(0,0),t.forEach(function(t){var n=e.steps[t[0]].choices[t[1]];e.history.push(n),n.step.terminate()}),this.apply()}},{key:"apply",value:function(){var t=this;this[d]=u.default.map(this[h].vars,function(e,n){return new r(angular.extend({name:n},e),t)}),this.history.forEach(function(e){return t.update(e.changes)}),this.invalidateJourney()}},{key:"continue",value:function(){this.lastStack.continue(),this.invalidateJourney(),e.$broadcast("game:slice:next",this.lastStack)}},{key:"finalSlice",value:function(){this.lastStack.finalSlice(),this.invalidateJourney(),e.$broadcast("game:slice:next",this.lastStack)}},{key:"findPicture",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.step.year;return this.memoize("findPicture",function(e){var n=u.default.chain(t.meta.years).keys().map(Number).sort().findLast(function(n){return n<=e&&t.meta.years[n].picture});return t.meta.years[n].picture},e)}},{key:"invalidateJourney",value:function(){this[g]=u.default.uniqueId("journey-")}},{key:"yearInfo",value:function(t){var e=this;return this.memoize("yearInfo",function(t){return new c(e.meta.years[t])},t)}},{key:"meta",get:function(){return this[h]}},{key:"characters",get:function(){var t=this;return this.memoize("characters",function(){return u.default.map(t.meta.characters,function(t,e){return new s(t,e)})})}},{key:"journeyCacheKey",get:function(){return this[g]}},{key:"delay",get:function(){return this.lastStack.next.readingTime}},{key:"readingTime",get:function(){return this.lastStack.readingTime}},{key:"lastStack",get:function(){if(this.step.isLastSlice()){if(this.step.selection)return this.step.selection;if(this.step.hasHelper())return this.step.helper}return this.step}},{key:"slice",get:function(){return this.step.selection?this.step.slice+this.step.selection.slice:this.step.slice}},{key:"feedback",get:function(){return this.hasFeedback()?u.default.last(this.history).feedback:null}},{key:"consequences",get:function(){return(0,u.default)(this.history).map("consequences").flatten().uniq().value()}},{key:"history",set:function(t){this[p]=t},get:function(){return this[p]=this[p]||[],this[p]}},{key:"journey",get:function(){var t=this;return this.memoize("journey",function(){return t.isOver()?t.stepsBehind:t.stepsBehind.concat(t.stepsAhead.slice(0,1))},this.journeyCacheKey)}},{key:"historySerialized",get:function(){var t=this;return this.memoize("historySerialized",function(){return u.default.map(t.history,function(t){return[t.step.index,t.index]})},this.journeyCacheKey)}},{key:"vars",get:function(){return this[d]}},{key:"stepIndex",get:function(){return this.step.index}},{key:"steps",get:function(){return this.meta.steps}},{key:"end",get:function(){return this.consequences.length?u.default.last(this.endingsFor(u.default.last(this.consequences).name)):u.default.last(this.endings)}},{key:"endings",get:function(){return this.meta.endings}},{key:"endingsWithVar",get:function(){return u.default.filter(this.endings,u.default.method("hasCondition"))}},{key:"stepsBehind",get:function(){return u.default.chain(this.history).map("step").filter(u.default.method("isDone")).value()}},{key:"stepsAhead",get:function(){var t=this.stepsBehind,e=t.length?u.default.last(t).index+1:0;return u.default.filter(this.steps.slice(e),{assert:!0})}},{key:"step",get:function(){return u.default.last(this.journey)}},{key:"year",get:function(){return this.step&&this.step.year}},{key:"years",get:function(){return(0,u.default)(this.steps).map("year").compact().uniq().sort().value()}},{key:"pictures",get:function(){return u.default.map(this.meta.years,"picture")}},{key:"picture",get:function(){return this.findPicture()}},{key:"risks",get:function(){var t=this;return this.memoize("risks",function(){return u.default.filter(t.vars,{category:"risk"})},this.journeyCacheKey)}},{key:"publicRisks",get:function(){var t=this;return this.memoize("publicRisks",function(){return u.default.filter(t.vars,{category:"risk",public:!0})},this.journeyCacheKey)}},{key:"publicVars",get:function(){var t=this;return this.memoize("publicVars",function(){return u.default.filter(t.vars,{public:!0})},this.journeyCacheKey)}},{key:"explainers",get:function(){var t=u.default.chain(this.journey).filter(u.default.method("isLastSlice"));return t.map("explainer").compact().uniqBy(function(t){return t.title}).value()}},{key:"lastExplainer",get:function(){if(this.step&&this.step.hasExplainer())return this.step.explainer}}]),f}();return f(v)}a.$inject=["$log","$rootScope","Step","Var","Ending","Character","I18n","memoizeMixin"],Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n-1}).map(function(t){return t.split("@")[0]}).value()}return o(e,[{key:"translate",value:function(t){return t?this.meta[t+"@"+this.use]||this.meta[t+"@en"]:this.t}},{key:"t",get:function(){var e=this;return this.memoize("t",function(){return u.default.reduce(e.fields,function(t,n){return t[n]=e.translate(n),t},{})},t.use())}},{key:"fields",get:function(){return this[r]}},{key:"meta",get:function(){return this[n]}},{key:"use",get:function(){return t.use()||"en"}},{key:"title",get:function(){return this.translate("title")}},{key:"name",get:function(){return this.translate("name")}},{key:"description",get:function(){return this.translate("description")}},{key:"content",get:function(){return this.translate("content")}},{key:"body",get:function(){return this.translate("body")}},{key:"text",get:function(){return this.translate("text")}},{key:"label",get:function(){return this.translate("label")}}]),e}();return e(a)}a.$inject=["$translate","memoizeMixin"],Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n2?r-2:0),a=2;a0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;i(this,f);var o=a(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,t));return o[n]=angular.copy(t),o[r]=-1,o[s]=e,["sliceFilter","isStartingSlice","isFirstSlice","isLastSlice","clusterFilter","continue"].forEach(function(t){o[t]=o[t].bind(o)}),o}return o(f,e),u(f,[{key:"isStartingSlice",value:function(){return this.slice===-1}},{key:"isFirstSlice",value:function(){return 0===this.slice}},{key:"isLastSlice",value:function(){return this.slice===this.slices.length-1}},{key:"continue",value:function(){this.slice=this.slice+1}},{key:"finalSlice",value:function(){this.slice=this.slices.length-1}},{key:"clusterFilter",value:function(t,e){var n=this.clusters.slice(0,e),r=l.default.chain(n).map("slices.length").sum().value();return r<=this.slice}},{key:"sliceFilter",value:function(t){return t.index<=this.slice}},{key:"isTyping",value:function(){return Boolean(this.next)}},{key:"findGame",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return t.meta&&t.meta.characters?t:t instanceof f||!t.game?t.parent?this.findGame(t.parent):void 0:t.game}},{key:"readingTime",get:function(){return this.current?this.current.readingTime:0}},{key:"slice",set:function(t){this[r]=Math.max(-1,Math.min(this.slices.length-1,t))},get:function(){return this[r]}},{key:"next",get:function(){return this.slices[this.slice+1]||null}},{key:"previous",get:function(){return this.slices[this.slice-1]||null}},{key:"current",get:function(){return this.slices[this.slice]||null}},{key:"slices",get:function(){var e=this;return this.memoize("slices",function(){return l.default.compact(e[n]).map(function(n){return new t(n,e)})})}},{key:"parent",get:function(){return this[s]}},{key:"game",get:function(){return this.findGame()}},{key:"clusters",get:function(){var t=this;return this[c]?this[c]:(this[c]=[],this.slices.forEach(function(e){var n=l.default.last(t[c]);n&&e.canClusterizeWith(n)?n.slices.push(e):t[c].push({character:e.character,type:e.type,slices:[e]})}),this[c])}}]),f}(e);return f}s.$inject=["Slice","I18n"],Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0;this.finalSlice();var e=isNaN(t)?t:this.choices[t];return this.game.select(e),e.slice=-1,h.info("Step %s: choice %s",this.index,e.index),this.selection}},{key:"continue",value:function(){c(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"continue",this).call(this),l.$broadcast("game:step:slice:next",this)}},{key:"undo",value:function(){this.slice=-1}},{key:"isTyping",value:function(){return Boolean(!this.selection&&c(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"isTyping",this).call(this))}},{key:"assert",get:function(){for(var t=this.conditions,e=0;en.max)return!1}return!0}},{key:"choices",get:function(){var e=this;return this.memoize("choices",function(){return f.default.chain(e[d].choices).castArray().compact().map(function(n){return new t(n,e)}).value()})}},{key:"selection",get:function(){return f.default.find(this.game.history,{step:this})}},{key:"index",get:function(){return this.game.steps.indexOf(this)}},{key:"year",get:function(){return Number(this[d].year)}},{key:"game",get:function(){return this[p]}},{key:"conditions",get:function(){return this[d].conditions||{}}},{key:"explainer",get:function(){var t=this;return this.memoize("explainer",function(){if(t.hasExplainer()){var e=f.default.chain(t.helper.slices).map(function(t){return s.parse(t.text)}).flatten().first().value();if(e)return new s(t.game.meta.explainers[e.ref],e.ref,t)}return null})}},{key:"helper",get:function(){var t=this;return this.memoize("helper",function(){return t.hasHelper()?new n(t[d].helper,t):null})}}]),r}(n);return g}s.$inject=["Choice","Slice","Stack","I18n","Explainer","$rootScope","$log"],Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n=a.default.first(u.game.years)&&t<=u.year})},this.yearsCount=function(){return u.game.year-a.default.first(u.game.years)},this.start=function(){u.started=!0,u.continueTimeout=u.prepareNewYear()},this.load=function(){u.game.load(u.history),u.start()},this.save=function(){return o.setItem("history",u.game.historySerialized).catch(angular.noop)},this.$onInit=function(){e.$on("game:slice:next",u.waitNextSlice),e.$on("game:selection",u.waitNextSlice),e.$on("game:over",u.waitNextSlice),e.$on("game:selection",u.save),e.$on("game:undo",u.save),e.$on("game:over",function(){return o.removeItem("history").catch(angular.noop)}),i.onSuccess({to:"main"},u.waitNextSlice),r.add({combo:"space",callback:u.continue})}}]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.mainPage={template:n(331),bindings:{markdown:"<"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.mainToolbar={template:n(332),bindings:{game:"<"}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.mainVars=void 0;var i=n(21),a=r(i);e.mainVars={template:n(333),bindings:{game:"<"},controller:function(){var t=this;this.charts={},this.chartedVars=function(){return a.default.filter(t.game.vars,a.default.method("isCharted"))},this.chartsIds=function(){return a.default.chain(t.chartedVars()).map("chartId").uniq().value()}}}},function(t,e,n){"use strict";function r(t){t.setRenderer({link:function(t,e,n){return''+n+""}})}r.$inject=["markedProvider"],Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){function e(){if("CSS"in t&&"supports"in t.CSS){for(var e=0;e-1?(n.use(i),r.set(i.slice(0,2))):r.set(n.use().slice(0,2))})},t.exports.translateRun.$inject=["$transitions","$location","$translate","tmhDynamicLocale"]},function(t,e,n){"use strict";var r="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};!function(e){var n="Modernizr"in e,i=e.Modernizr;/*! modernizr 3.3.1 (Custom Build) | MIT * + * http://modernizr.com/download/?-cssfilters-flexbox-addtest-domprefixes-prefixes-setclasses-testprop-teststyles !*/ +!function(t,e,n){function i(t,e){return("undefined"==typeof t?"undefined":r(t))===e}function a(){var t,e,n,r,a,o,s;for(var u in b)if(b.hasOwnProperty(u)){if(t=[],e=b[u],e.name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(n=0;nl;l++)if(g=t[l],v=I.style[g],f(g,"-")&&(g=p(g)),I.style[g]!==n){if(a||i(r,"undefined"))return o(),"pfx"!=e||g;try{I.style[g]=r}catch(t){}if(I.style[g]!=v)return o(),"pfx"!=e||g}return o(),!1}function v(t,e){return function(){return t.apply(e,arguments)}}function m(t,e,n){var r;for(var a in t)if(t[a]in e)return n===!1?t[a]:(r=e[t[a]],i(r,"function")?v(r,n||e):r);return!1}function y(t,e,n,r,a){var o=t.charAt(0).toUpperCase()+t.slice(1),s=(t+" "+O.join(o+" ")+o).split(" ");return i(e,"string")||i(e,"undefined")?g(s,e,r,a):(s=(t+" "+C.join(o+" ")+o).split(" "),m(s,e,n))}function x(t,e,r){return y(t,n,n,e,r)}var b=[],_={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var n=this;setTimeout(function(){e(n[t])},0)},addTest:function(t,e,n){b.push({name:t,fn:e,options:n})},addAsyncTest:function(t){b.push({name:null,fn:t})}},w=function(){};w.prototype=_,w=new w;var S,$=[],k=e.documentElement,T="svg"===k.nodeName.toLowerCase();!function(){var t={}.hasOwnProperty;S=i(t,"undefined")||i(t.call,"undefined")?function(t,e){return e in t&&i(t.constructor.prototype[e],"undefined")}:function(e,n){return t.call(e,n)}}(),_._l={},_.on=function(t,e){this._l[t]||(this._l[t]=[]),this._l[t].push(e),w.hasOwnProperty(t)&&setTimeout(function(){w._trigger(t,w[t])},0)},_._trigger=function(t,e){if(this._l[t]){var n=this._l[t];setTimeout(function(){var t,r;for(t=0;t9)}),a(),o($),delete _.addTest,delete _.addAsyncTest;for(var L=0;L1)for(var n=1;n=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var o=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(o&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),h(n),C}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;h(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:p(t),resultName:e,nextLoc:n},C}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,n(49),n(365))},function(t,e,n){(function(e){var n=e.location||{},r=function(){"use strict";function t(t){return document.createTextNode(t)}function e(t){return t.replace(b,s)}function n(t,e){return"".concat(e.base,e.size,"/",t,e.ext)}function r(t,e){for(var n,i,a=t.childNodes,o=a.length;o--;)n=a[o],i=n.nodeType,3===i?e.push(n):1!==i||_.test(n.nodeName)||r(n,e);return e}function i(t){return p(t.indexOf(x)<0?t.replace(y,""):t)}function a(e,n){for(var a,o,s,u,c,l,f,h,d,p,g,v,y,x=r(e,[]),b=x.length;b--;){for(s=!1,u=document.createDocumentFragment(),c=x[b],l=c.nodeValue,h=0;f=m.exec(l);){if(d=f.index,d!==h&&u.appendChild(t(l.slice(h,d))),g=f[0],v=i(g),h=d+g.length,y=n.callback(v,n)){p=new Image,p.onerror=n.onerror,p.setAttribute("draggable","false"),a=n.attributes(g,v);for(o in a)a.hasOwnProperty(o)&&0!==o.indexOf("on")&&!p.hasAttribute(o)&&p.setAttribute(o,a[o]);p.className=n.className,p.alt=g,p.src=y,s=!0,u.appendChild(p)}p||u.appendChild(t(g)),p=null}s&&(h")}return o})}function s(t){return v[t]}function u(){return null}function c(t){return"number"==typeof t?t+"x"+t:t}function l(t){var e="string"==typeof t?parseInt(t,16):t;return e<65536?w(e):(e-=65536,w(55296+(e>>10),56320+(1023&e)))}function f(t,e){return e&&"function"!=typeof e||(e={callback:e}),("string"==typeof t?o:a)(t,{callback:e.callback||n,attributes:"function"==typeof e.attributes?e.attributes:u,base:"string"==typeof e.base?e.base:g.base,ext:e.ext||g.ext,size:e.folder||c(e.size||g.size),className:e.className||g.className,onerror:e.onerror||g.onerror})}function h(t,e){return String(t).replace(m,e)}function d(t){m.lastIndex=0;var e=m.test(t);return m.lastIndex=0,e}function p(t,e){for(var n=[],r=0,i=0,a=0;a":">","'":"'",'"':"""},m=/\ud83d[\udc68-\udc69](?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92])|(?:\ud83c[\udfcb\udfcc]|\ud83d\udd75|\u26f9)(?:\ufe0f|\ud83c[\udffb-\udfff])\u200d[\u2640\u2642]\ufe0f|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd37-\udd39\udd3d\udd3e])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|(?:[\u0023\u002a\u0030-\u0039])\ufe0f?\u20e3|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|\ud83c[\udf85\udfc2-\udfc4\udfc7\udfca]|\ud83d[\udc42\udc43\udc46-\udc50\udc66-\udc69\udc6e\udc70-\udc78\udc7c\udc81-\udc83\udc85-\udc87\udcaa\udd7a\udd95\udd96\ude45-\ude47\ude4b-\ude4f\udea3\udeb4-\udeb6\udec0\udecc]|\ud83e[\udd18-\udd1c\udd1e\udd26\udd30\udd33-\udd39\udd3d\udd3e]|[\u270a\u270b])(?:\ud83c[\udffb-\udfff]|)|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\ud83c[\udde6\uddf2\uddfc]|\ud800\udc00|\ud83c[\udccf\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff4\udff8-\udfff]|\ud83d[\udc00-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a-\udc6d\udc6f\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\udeeb\udeec\udef4-\udef6]|\ud83e[\udd10-\udd17\udd1d\udd20-\udd25\udd27\udd3a\udd3c\udd40-\udd45\udd47-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]|[\u23e9-\u23ec\u23f0\u23f3\u2640\u2642\u2695\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a]|(?:\ud83c[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude1a\ude2f\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff3\udff5\udff7]|\ud83d[\udc3f\udc41\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]|[\u00a9\u00ae\u203c\u2049\u2122\u2139\u2194-\u2199\u21a9\u21aa\u231a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2694\u2696\u2697\u2699\u269b\u269c\u26a0\u26a1\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))/g,y=/\uFE0F/g,x=String.fromCharCode(8205),b=/[&<>'"]/g,_=/IFRAME|NOFRAMES|NOSCRIPT|SCRIPT|SELECT|STYLE|TEXTAREA|[a-z]/,w=String.fromCharCode;return g}();n.protocol||(r.base=r.base.replace(/^http:/,"")),t.exports=r}).call(e,n(49))},function(t,e,n){n(89),t.exports=n(120)}],[368]); \ No newline at end of file diff --git a/sl.html b/sl.html index 2d771e5..90afc6a 100644 --- a/sl.html +++ b/sl.html @@ -41,8 +41,25 @@ + + + + + - + diff --git a/vendor-28db931b42958900aab5.js b/vendor-28db931b42958900aab5.js new file mode 100644 index 0000000..5b10f4a --- /dev/null +++ b/vendor-28db931b42958900aab5.js @@ -0,0 +1 @@ +!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,u,c){for(var i,a,f,l=0,s=[];l