This repository has been archived by the owner on Jan 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
radialgauge.js
30 lines (30 loc) · 255 KB
/
radialgauge.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.radialgauge=t():e.radialgauge=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=67)}({0:function(e,t,n){var r={};!function(e){function t(e){for(var t="",n=e.length-1;n>=0;)t+=e.charAt(n--);return t}function n(e,t){for(var n="";n.length<t;)n+=e;return n}function r(e,t){var r=""+e;return r.length>=t?r:n("0",t-r.length)+r}function a(e,t){var r=""+e;return r.length>=t?r:n(" ",t-r.length)+r}function i(e,t){var r=""+e;return r.length>=t?r:r+n(" ",t-r.length)}e.version="0.10.3";var l=Math.pow(2,32);function o(e,t){return e>l||e<-l?function(e,t){var r=""+Math.round(e);return r.length>=t?r:n("0",t-r.length)+r}(e,t):function(e,t){var r=""+e;return r.length>=t?r:n("0",t-r.length)+r}(Math.round(e),t)}function u(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var s=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],c=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function f(e){e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e[65535]="General"}var d={};function h(e,t,n){for(var r=e<0?-1:1,a=e*r,i=0,l=1,o=0,u=1,s=0,c=0,f=Math.floor(a);s<t&&(o=(f=Math.floor(a))*l+i,c=f*s+u,!(a-f<5e-8));)a=1/(a-f),i=l,l=o,u=s,s=c;if(c>t&&(s>t?(c=u,o=i):(c=s,o=l)),!n)return[0,r*o,c];var d=Math.floor(r*o/c);return[d,r*o-d*c,c]}function p(e,t,n){if(e>2958465||e<0)return null;var r=0|e,a=Math.floor(86400*(e-r)),i=0,l=[],o={D:r,T:a,u:86400*(e-r)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(r+=1462),o.u>.9999&&(o.u=0,86400==++a&&(o.T=a=0,++r,++o.D)),60===r)l=n?[1317,10,29]:[1900,2,29],i=3;else if(0===r)l=n?[1317,8,29]:[1900,1,0],i=6;else{r>60&&--r;var u=new Date(1900,0,1);u.setDate(u.getDate()+r-1),l=[u.getFullYear(),u.getMonth()+1,u.getDate()],i=u.getDay(),r<60&&(i=(i+6)%7),n&&(i=0)}return o.y=l[0],o.m=l[1],o.d=l[2],o.S=a%60,a=Math.floor(a/60),o.M=a%60,a=Math.floor(a/60),o.H=a,o.q=i,o}f(d),e.parse_date_code=p;var g=new Date(1899,11,31,0,0,0),v=g.getTime(),m=new Date(1900,2,1,0,0,0);function y(e,t){var n=e.getTime();return t?n-=1262304e5:e>=m&&(n+=864e5),(n-(v+6e4*(e.getTimezoneOffset()-g.getTimezoneOffset())))/864e5}e._general_int=function(e){return e.toString(10)};var b=function(){var e=/\.(\d*[1-9])0+$/,t=/\.0*$/,n=/\.(\d*[1-9])0+/,r=/\.0*[Ee]/,a=/(E[+-])(\d)$/;function i(n){return n.indexOf(".")>-1?n.replace(t,"").replace(e,".$1"):n}return function(t){var l=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return i(function(e){for(var t=0;t!=e.length;++t)if(101==(32|e.charCodeAt(t)))return e.replace(n,".$1").replace(r,"E").replace("e","E").replace(a,"$10$2");return e}(l>=-4&&l<=-1?t.toPrecision(10+l):Math.abs(l)<=9?function(e){var t=e<0?12:11,n=i(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10)).length<=t?n:e.toExponential(5)}(t):10===l?t.toFixed(10).substr(0,12):function(t){var n=t.toFixed(11).replace(e,".$1");return n.length>(t<0?12:11)&&(n=t.toPrecision(6)),n}(t)))}}();function _(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):b(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return N(14,y(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function w(e,t,n,a){var i,l="",o=0,u=0,f=n.y,d=0;switch(e){case 98:f=n.y+543;case 121:switch(t.length){case 1:case 2:i=f%100,d=2;break;default:i=f%1e4,d=4}break;case 109:switch(t.length){case 1:case 2:i=n.m,d=t.length;break;case 3:return c[n.m-1][1];case 5:return c[n.m-1][0];default:return c[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:i=n.d,d=t.length;break;case 3:return s[n.q][0];default:return s[n.q][1]}break;case 104:switch(t.length){case 1:case 2:i=1+(n.H+11)%12,d=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:i=n.H,d=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:i=n.M,d=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(u=a>=2?3===a?1e3:100:1===a?10:1,(o=Math.round(u*(n.S+n.u)))>=60*u&&(o=0),"s"===t?0===o?"0":""+o/u:(l=r(o,2+a),"ss"===t?l.substr(0,2):"."+l.substr(2,t.length-1))):r(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":i=24*n.D+n.H;break;case"[m]":case"[mm]":i=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":i=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}d=3===t.length?1:2;break;case 101:i=f,d=1}return d>0?r(i,d):""}function x(e){if(e.length<=3)return e;for(var t=e.length%3,n=e.substr(0,t);t!=e.length;t+=3)n+=(n.length>0?",":"")+e.substr(t,3);return n}e._general_num=b,e._general=_;var k=function(){var e=/%/g,l=/# (\?+)( ?)\/( ?)(\d+)/,u=/^#*0*\.([0#]+)/,s=/\).*[0#]/,c=/\(###\) ###\\?-####/;function f(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function d(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function p(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?0:Math.round((e-Math.floor(e))*Math.pow(10,t))}function g(v,m,y){if(40===v.charCodeAt(0)&&!m.match(s)){var b=m.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return y>=0?g("n",b,y):"("+g("n",b,-y)+")"}if(44===m.charCodeAt(m.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return k(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(v,m,y);if(-1!==m.indexOf("%"))return function(t,r,a){var i=r.replace(e,""),l=r.length-i.length;return k(t,i,a*Math.pow(10,2*l))+n("%",l)}(v,m,y);if(-1!==m.indexOf("E"))return function e(t,n){var r,a=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+e(t,-n);var i=t.indexOf(".");-1===i&&(i=t.indexOf("E"));var l=Math.floor(Math.log(n)*Math.LOG10E)%i;if(l<0&&(l+=i),-1===(r=(n/Math.pow(10,l)).toPrecision(a+1+(i+l)%i)).indexOf("e")){var o=Math.floor(Math.log(n)*Math.LOG10E);for(-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+l):r+="E+"+(o-l);"0."===r.substr(0,2);)r=(r=r.charAt(0)+r.substr(2,i)+"."+r.substr(2+i)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+l)%i)+"."+r.substr(l)+"E"}))}else r=n.toExponential(a);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}(m,y);if(36===m.charCodeAt(0))return"$"+g(v,m.substr(" "==m.charAt(1)?2:1),y);var _,w,T,E,C=Math.abs(y),S=y<0?"-":"";if(m.match(/^00+$/))return S+o(C,m.length);if(m.match(/^[#?]+$/))return"0"===(_=o(y,0))&&(_=""),_.length>m.length?_:f(m.substr(0,m.length-_.length))+_;if(w=m.match(l))return function(e,t,i){var l=parseInt(e[4],10),o=Math.round(t*l),u=Math.floor(o/l),s=o-u*l,c=l;return i+(0===u?"":""+u)+" "+(0===s?n(" ",e[1].length+1+e[4].length):a(s,e[1].length)+e[2]+"/"+e[3]+r(c,e[4].length))}(w,C,S);if(m.match(/^#+0+$/))return S+o(C,m.length-m.indexOf("0"));if(w=m.match(u))return _=d(y,w[1].length).replace(/^([^\.]+)$/,"$1."+f(w[1])).replace(/\.$/,"."+f(w[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+n("0",f(w[1]).length-t.length)})),-1!==m.indexOf("0.")?_:_.replace(/^0\./,".");if(m=m.replace(/^#+([0.])/,"$1"),w=m.match(/^(0*)\.(#*)$/))return S+d(C,w[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,w[1].length?"0.":".");if(w=m.match(/^#{1,3},##0(\.?)$/))return S+x(o(C,0));if(w=m.match(/^#,##0\.([#0]*0)$/))return y<0?"-"+g(v,m,-y):x(""+(Math.floor(y)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(y,w[1].length)))+"."+r(p(y,w[1].length),w[1].length);if(w=m.match(/^#,#*,#0/))return g(v,m.replace(/^#,#*,/,""),y);if(w=m.match(/^([0#]+)(\\?-([0#]+))+$/))return _=t(g(v,m.replace(/[\\-]/g,""),y)),T=0,t(t(m.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return T<_.length?_.charAt(T++):"0"===e?"0":""})));if(m.match(c))return"("+(_=g(v,"##########",y)).substr(0,3)+") "+_.substr(3,3)+"-"+_.substr(6);var M="";if(w=m.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return T=Math.min(w[4].length,7),E=h(C,Math.pow(10,T)-1,!1),_=""+S," "==(M=k("n",w[1],E[1])).charAt(M.length-1)&&(M=M.substr(0,M.length-1)+"0"),_+=M+w[2]+"/"+w[3],(M=i(E[2],T)).length<w[4].length&&(M=f(w[4].substr(w[4].length-M.length))+M),_+=M;if(w=m.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return T=Math.min(Math.max(w[1].length,w[4].length),7),S+((E=h(C,Math.pow(10,T)-1,!0))[0]||(E[1]?"":"0"))+" "+(E[1]?a(E[1],T)+w[2]+"/"+w[3]+i(E[2],T):n(" ",2*T+1+w[2].length+w[3].length));if(w=m.match(/^[#0?]+$/))return _=o(y,0),m.length<=_.length?_:f(m.substr(0,m.length-_.length))+_;if(w=m.match(/^([#0?]+)\.([#0]+)$/)){_=""+y.toFixed(Math.min(w[2].length,10)).replace(/([^0])0+$/,"$1"),T=_.indexOf(".");var P=m.indexOf(".")-T,A=m.length-_.length-P;return f(m.substr(0,P)+_+m.substr(m.length-A))}if(w=m.match(/^00,000\.([#0]*0)$/))return T=p(y,w[1].length),y<0?"-"+g(v,m,-y):x(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(y)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?r(0,3-e.length):"")+e}))+"."+r(T,w[1].length);switch(m){case"###,##0.00":return g(v,"#,##0.00",y);case"###,###":case"##,###":case"#,###":var N=x(o(C,0));return"0"!==N?S+N:"";case"###,###.00":return g(v,"###,##0.00",y).replace(/^0\./,".");case"#,###.00":return g(v,"#,##0.00",y).replace(/^0\./,".")}throw new Error("unsupported format |"+m+"|")}function v(o,d,p){if(40===o.charCodeAt(0)&&!d.match(s)){var g=d.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return p>=0?v("n",g,p):"("+v("n",g,-p)+")"}if(44===d.charCodeAt(d.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return k(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(o,d,p);if(-1!==d.indexOf("%"))return function(t,r,a){var i=r.replace(e,""),l=r.length-i.length;return k(t,i,a*Math.pow(10,2*l))+n("%",l)}(o,d,p);if(-1!==d.indexOf("E"))return function e(t,n){var r,a=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+e(t,-n);var i=t.indexOf(".");-1===i&&(i=t.indexOf("E"));var l=Math.floor(Math.log(n)*Math.LOG10E)%i;if(l<0&&(l+=i),!(r=(n/Math.pow(10,l)).toPrecision(a+1+(i+l)%i)).match(/[Ee]/)){var o=Math.floor(Math.log(n)*Math.LOG10E);-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+l):r+="E+"+(o-l),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+l)%i)+"."+r.substr(l)+"E"}))}else r=n.toExponential(a);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}(d,p);if(36===d.charCodeAt(0))return"$"+v(o,d.substr(" "==d.charAt(1)?2:1),p);var m,y,b,_,w=Math.abs(p),T=p<0?"-":"";if(d.match(/^00+$/))return T+r(w,d.length);if(d.match(/^[#?]+$/))return m=""+p,0===p&&(m=""),m.length>d.length?m:f(d.substr(0,d.length-m.length))+m;if(y=d.match(l))return function(e,t,r){return r+(0===t?"":""+t)+n(" ",e[1].length+2+e[4].length)}(y,w,T);if(d.match(/^#+0+$/))return T+r(w,d.length-d.indexOf("0"));if(y=d.match(u))return m=(m=(""+p).replace(/^([^\.]+)$/,"$1."+f(y[1])).replace(/\.$/,"."+f(y[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+n("0",f(y[1]).length-t.length)})),-1!==d.indexOf("0.")?m:m.replace(/^0\./,".");if(d=d.replace(/^#+([0.])/,"$1"),y=d.match(/^(0*)\.(#*)$/))return T+(""+w).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,y[1].length?"0.":".");if(y=d.match(/^#{1,3},##0(\.?)$/))return T+x(""+w);if(y=d.match(/^#,##0\.([#0]*0)$/))return p<0?"-"+v(o,d,-p):x(""+p)+"."+n("0",y[1].length);if(y=d.match(/^#,#*,#0/))return v(o,d.replace(/^#,#*,/,""),p);if(y=d.match(/^([0#]+)(\\?-([0#]+))+$/))return m=t(v(o,d.replace(/[\\-]/g,""),p)),b=0,t(t(d.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return b<m.length?m.charAt(b++):"0"===e?"0":""})));if(d.match(c))return"("+(m=v(o,"##########",p)).substr(0,3)+") "+m.substr(3,3)+"-"+m.substr(6);var E="";if(y=d.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return b=Math.min(y[4].length,7),_=h(w,Math.pow(10,b)-1,!1),m=""+T," "==(E=k("n",y[1],_[1])).charAt(E.length-1)&&(E=E.substr(0,E.length-1)+"0"),m+=E+y[2]+"/"+y[3],(E=i(_[2],b)).length<y[4].length&&(E=f(y[4].substr(y[4].length-E.length))+E),m+=E;if(y=d.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return b=Math.min(Math.max(y[1].length,y[4].length),7),T+((_=h(w,Math.pow(10,b)-1,!0))[0]||(_[1]?"":"0"))+" "+(_[1]?a(_[1],b)+y[2]+"/"+y[3]+i(_[2],b):n(" ",2*b+1+y[2].length+y[3].length));if(y=d.match(/^[#0?]+$/))return m=""+p,d.length<=m.length?m:f(d.substr(0,d.length-m.length))+m;if(y=d.match(/^([#0]+)\.([#0]+)$/)){m=""+p.toFixed(Math.min(y[2].length,10)).replace(/([^0])0+$/,"$1"),b=m.indexOf(".");var C=d.indexOf(".")-b,S=d.length-m.length-C;return f(d.substr(0,C)+m+d.substr(d.length-S))}if(y=d.match(/^00,000\.([#0]*0)$/))return p<0?"-"+v(o,d,-p):x(""+p).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?r(0,3-e.length):"")+e}))+"."+r(0,y[1].length);switch(d){case"###,###":case"##,###":case"#,###":var M=x(""+w);return"0"!==M?T+M:"";default:if(d.match(/\.[0#?]*$/))return v(o,d.slice(0,d.lastIndexOf(".")),p)+f(d.slice(d.lastIndexOf(".")))}throw new Error("unsupported format |"+d+"|")}return function(e,t,n){return(0|n)===n?v(e,t,n):g(e,t,n)}}();function T(e){for(var t=[],n=!1,r=0,a=0;r<e.length;++r)switch(e.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:t[t.length]=e.substr(a,r-a),a=r+1}if(t[t.length]=e.substr(a),!0===n)throw new Error("Format |"+e+"| unterminated string ");return t}e._split=T;var E=/\[[HhMmSs]*\]/;function C(e){for(var t=0,n="",r="";t<e.length;)switch(n=e.charAt(t)){case"G":u(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":for(r=n;"]"!==e.charAt(t++)&&t<e.length;)r+=e.charAt(t);if(r.match(E))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(n=e.charAt(++t))>-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===n;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":default:++t}return!1}function S(e,t,n,r){for(var a,i,l,o=[],s="",c=0,f="",d="t",h="H";c<e.length;)switch(f=e.charAt(c)){case"G":if(!u(e,c))throw new Error("unrecognized character "+f+" in "+e);o[o.length]={t:"G",v:"General"},c+=7;break;case'"':for(s="";34!==(l=e.charCodeAt(++c))&&c<e.length;)s+=String.fromCharCode(l);o[o.length]={t:"t",v:s},++c;break;case"\\":var g=e.charAt(++c),v="("===g||")"===g?g:"t";o[o.length]={t:v,v:g},++c;break;case"_":o[o.length]={t:"t",v:" "},c+=2;break;case"@":o[o.length]={t:"T",v:t},++c;break;case"B":case"b":if("1"===e.charAt(c+1)||"2"===e.charAt(c+1)){if(null==a&&null==(a=p(t,n,"2"===e.charAt(c+1))))return"";o[o.length]={t:"X",v:e.substr(c,2)},d=f,c+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":f=f.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==a&&null==(a=p(t,n)))return"";for(s=f;++c<e.length&&e.charAt(c).toLowerCase()===f;)s+=f;"m"===f&&"h"===d.toLowerCase()&&(f="M"),"h"===f&&(f=h),o[o.length]={t:f,v:s},d=f;break;case"A":case"a":var m={t:f,v:f};if(null==a&&(a=p(t,n)),"A/P"===e.substr(c,3).toUpperCase()?(null!=a&&(m.v=a.H>=12?"P":"A"),m.t="T",h="h",c+=3):"AM/PM"===e.substr(c,5).toUpperCase()?(null!=a&&(m.v=a.H>=12?"PM":"AM"),m.t="T",c+=5,h="h"):(m.t="t",++c),null==a&&"T"===m.t)return"";o[o.length]=m,d=f;break;case"[":for(s=f;"]"!==e.charAt(c++)&&c<e.length;)s+=e.charAt(c);if("]"!==s.slice(-1))throw'unterminated "[" block: |'+s+"|";if(s.match(E)){if(null==a&&null==(a=p(t,n)))return"";o[o.length]={t:"Z",v:s.toLowerCase()},d=s.charAt(1)}else s.indexOf("$")>-1&&(s=(s.match(/\$([^-\[\]]*)/)||[])[1]||"$",C(e)||(o[o.length]={t:"t",v:s}));break;case".":if(null!=a){for(s=f;++c<e.length&&"0"===(f=e.charAt(c));)s+=f;o[o.length]={t:"s",v:s};break}case"0":case"#":for(s=f;++c<e.length&&"0#?.,E+-%".indexOf(f=e.charAt(c))>-1||"\\"==f&&"-"==e.charAt(c+1)&&c<e.length-2&&"0#".indexOf(e.charAt(c+2))>-1;)s+=f;o[o.length]={t:"n",v:s};break;case"?":for(s=f;e.charAt(++c)===f;)s+=f;o[o.length]={t:f,v:s},d=f;break;case"*":++c," "!=e.charAt(c)&&"*"!=e.charAt(c)||++c;break;case"(":case")":o[o.length]={t:1===r?"t":f,v:f},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(s=f;c<e.length&&"0123456789".indexOf(e.charAt(++c))>-1;)s+=e.charAt(c);o[o.length]={t:"D",v:s};break;case" ":o[o.length]={t:f,v:f},++c;break;case"$":o[o.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f))throw new Error("unrecognized character "+f+" in "+e);o[o.length]={t:"t",v:f},++c}var y,b=0,x=0;for(c=o.length-1,d="t";c>=0;--c)switch(o[c].t){case"h":case"H":o[c].t=h,d="h",b<1&&(b=1);break;case"s":(y=o[c].v.match(/\.0+$/))&&(x=Math.max(x,y[0].length-1)),b<3&&(b=3);case"d":case"y":case"M":case"e":d=o[c].t;break;case"m":"s"===d&&(o[c].t="M",b<2&&(b=2));break;case"X":break;case"Z":b<1&&o[c].v.match(/[Hh]/)&&(b=1),b<2&&o[c].v.match(/[Mm]/)&&(b=2),b<3&&o[c].v.match(/[Ss]/)&&(b=3)}switch(b){case 0:break;case 1:a.u>=.5&&(a.u=0,++a.S),a.S>=60&&(a.S=0,++a.M),a.M>=60&&(a.M=0,++a.H);break;case 2:a.u>=.5&&(a.u=0,++a.S),a.S>=60&&(a.S=0,++a.M)}var T,S="";for(c=0;c<o.length;++c)switch(o[c].t){case"t":case"T":case" ":case"D":break;case"X":o[c].v="",o[c].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":o[c].v=w(o[c].t.charCodeAt(0),o[c].v,a,x),o[c].t="t";break;case"n":case"(":case"?":for(T=c+1;null!=o[T]&&("?"===(f=o[T].t)||"D"===f||(" "===f||"t"===f)&&null!=o[T+1]&&("?"===o[T+1].t||"t"===o[T+1].t&&"/"===o[T+1].v)||"("===o[c].t&&(" "===f||"n"===f||")"===f)||"t"===f&&("/"===o[T].v||" "===o[T].v&&null!=o[T+1]&&"?"==o[T+1].t));)o[c].v+=o[T].v,o[T]={v:"",t:";"},++T;S+=o[c].v,c=T-1;break;case"G":o[c].t="t",o[c].v=_(t,n)}var M,P,A="";if(S.length>0){40==S.charCodeAt(0)?(M=t<0&&45===S.charCodeAt(0)?-t:t,P=k("(",S,M)):(P=k("n",S,M=t<0&&r>1?-t:t),M<0&&o[0]&&"t"==o[0].t&&(P=P.substr(1),o[0].v="-"+o[0].v)),T=P.length-1;var N=o.length;for(c=0;c<o.length;++c)if(null!=o[c]&&"t"!=o[c].t&&o[c].v.indexOf(".")>-1){N=c;break}var O=o.length;if(N===o.length&&-1===P.indexOf("E")){for(c=o.length-1;c>=0;--c)null!=o[c]&&-1!=="n?(".indexOf(o[c].t)&&(T>=o[c].v.length-1?(T-=o[c].v.length,o[c].v=P.substr(T+1,o[c].v.length)):T<0?o[c].v="":(o[c].v=P.substr(0,T+1),T=-1),o[c].t="t",O=c);T>=0&&O<o.length&&(o[O].v=P.substr(0,T+1)+o[O].v)}else if(N!==o.length&&-1===P.indexOf("E")){for(T=P.indexOf(".")-1,c=N;c>=0;--c)if(null!=o[c]&&-1!=="n?(".indexOf(o[c].t)){for(i=o[c].v.indexOf(".")>-1&&c===N?o[c].v.indexOf(".")-1:o[c].v.length-1,A=o[c].v.substr(i+1);i>=0;--i)T>=0&&("0"===o[c].v.charAt(i)||"#"===o[c].v.charAt(i))&&(A=P.charAt(T--)+A);o[c].v=A,o[c].t="t",O=c}for(T>=0&&O<o.length&&(o[O].v=P.substr(0,T+1)+o[O].v),T=P.indexOf(".")+1,c=N;c<o.length;++c)if(null!=o[c]&&(-1!=="n?(".indexOf(o[c].t)||c===N)){for(i=o[c].v.indexOf(".")>-1&&c===N?o[c].v.indexOf(".")+1:0,A=o[c].v.substr(0,i);i<o[c].v.length;++i)T<P.length&&(A+=P.charAt(T++));o[c].v=A,o[c].t="t",O=c}}}for(c=0;c<o.length;++c)null!=o[c]&&"n(?".indexOf(o[c].t)>-1&&(M=r>1&&t<0&&c>0&&"-"===o[c-1].v?-t:t,o[c].v=k(o[c].t,o[c].v,M),o[c].t="t");var R="";for(c=0;c!==o.length;++c)null!=o[c]&&(R+=o[c].v);return R}e.is_date=C,e._eval=S;var M=/\[[=<>]/,P=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function A(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0}return!1}function N(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:d)[e]}if(u(r,0))return _(t,n);t instanceof Date&&(t=y(t,n.date1904));var a=function(e,t){var n=T(e),r=n.length,a=n[r-1].indexOf("@");if(r<4&&a>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||a>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=a>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=a>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=a>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var i=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,i];if(null!=n[0].match(M)||null!=n[1].match(M)){var l=n[0].match(P),o=n[1].match(P);return A(t,l)?[r,n[0]]:A(t,o)?[r,n[1]]:[r,n[null!=l&&null!=o?2:1]]}return[r,i]}(r,t);if(u(a[1]))return _(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return S(a[1],t,n,a[0])}function O(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(null!=d[n]){if(d[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return d[t]=e,t}e.load=O,e._table=d,e.get_table=function(){return d},e.load_table=function(e){for(var t=0;392!=t;++t)void 0!==e[t]&&O(e[t],t)},e.init_table=f,e.format=N}(r),"undefined"==typeof DO_NOT_EXPORT_SSF&&(e.exports=r)},1:function(e,t,n){"use strict";e.exports=n(63)},21:function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var s in n=Object(arguments[u]))a.call(n,s)&&(o[s]=n[s]);if(r){l=r(n);for(var c=0;c<l.length;c++)i.call(n,l[c])&&(o[l[c]]=n[l[c]])}}return o}},63:function(e,t,n){"use strict";
/** @license React v16.13.1
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(21),a="function"==typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,l=a?Symbol.for("react.portal"):60106,o=a?Symbol.for("react.fragment"):60107,u=a?Symbol.for("react.strict_mode"):60108,s=a?Symbol.for("react.profiler"):60114,c=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.forward_ref"):60112,h=a?Symbol.for("react.suspense"):60113,p=a?Symbol.for("react.memo"):60115,g=a?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function w(){}function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(m(85));this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=_.prototype;var k=x.prototype=new w;k.constructor=x,r(k,_.prototype),k.isPureReactComponent=!0;var T={current:null},E=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,a={},l=null,o=null;if(null!=t)for(r in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(l=""+t.key),t)E.call(t,r)&&!C.hasOwnProperty(r)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===a[r]&&(a[r]=u[r]);return{$$typeof:i,type:e,key:l,ref:o,props:a,_owner:T.current}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var P=/\/+/g,A=[];function N(e,t,n,r){if(A.length){var a=A.pop();return a.result=e,a.keyPrefix=t,a.func=n,a.context=r,a.count=0,a}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function O(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function R(e,t,n){return null==e?0:function e(t,n,r,a){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var u=!1;if(null===t)u=!0;else switch(o){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case l:u=!0}}if(u)return r(a,t,""===n?"."+z(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var c=n+z(o=t[s],s);u+=e(o,c,r,a)}else if("function"==typeof(c=null===t||"object"!=typeof t?null:"function"==typeof(c=v&&t[v]||t["@@iterator"])?c:null))for(t=c.call(t),s=0;!(o=t.next()).done;)u+=e(o=o.value,c=n+z(o,s++),r,a);else if("object"===o)throw r=""+t,Error(m(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return u}(e,"",t,n)}function z(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function L(e,t){e.func.call(e.context,t,e.count++)}function D(e,t,n){var r=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,r,n,(function(e){return e})):null!=e&&(M(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),r.push(e))}function F(e,t,n,r,a){var i="";null!=n&&(i=(""+n).replace(P,"$&/")+"/"),R(e,D,t=N(t,i,r,a)),O(t)}var I={current:null};function U(){var e=I.current;if(null===e)throw Error(m(321));return e}var $={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:T,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return F(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,L,t=N(null,null,t,n)),O(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return F(e,t,null,(function(e){return e})),t},only:function(e){if(!M(e))throw Error(m(143));return e}},t.Component=_,t.Fragment=o,t.Profiler=s,t.PureComponent=x,t.StrictMode=u,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$,t.cloneElement=function(e,t,n){if(null==e)throw Error(m(267,e));var a=r({},e.props),l=e.key,o=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,u=T.current),void 0!==t.key&&(l=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)E.call(t,c)&&!C.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];a.children=s}return{$$typeof:i,type:e.type,key:l,ref:o,props:a,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=M,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return U().useCallback(e,t)},t.useContext=function(e,t){return U().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return U().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return U().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return U().useLayoutEffect(e,t)},t.useMemo=function(e,t){return U().useMemo(e,t)},t.useReducer=function(e,t,n){return U().useReducer(e,t,n)},t.useRef=function(e){return U().useRef(e)},t.useState=function(e){return U().useState(e)},t.version="16.13.1"},64:function(e,t,n){"use strict";
/** @license React v16.13.1
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(1),a=n(21),i=n(65);function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(l(227));var o=!1,u=null,s=!1,c=null,f={onError:function(e){o=!0,u=e}};function d(e,t,n,r,a,i,l,s,c){o=!1,u=null,function(e,t,n,r,a,i,l,o,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}.apply(f,arguments)}var h=null,p=null,g=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=g(n),function(e,t,n,r,a,i,f,h,p){if(d.apply(this,arguments),o){if(!o)throw Error(l(198));var g=u;o=!1,u=null,s||(s=!0,c=g)}}(r,t,void 0,e),e.currentTarget=null}var m=null,y={};function b(){if(m)for(var e in y){var t=y[e],n=m.indexOf(e);if(!(-1<n))throw Error(l(96,e));if(!w[n]){if(!t.extractEvents)throw Error(l(97,e));for(var r in w[n]=t,n=t.eventTypes){var a=void 0,i=n[r],o=t,u=r;if(x.hasOwnProperty(u))throw Error(l(99,u));x[u]=i;var s=i.phasedRegistrationNames;if(s){for(a in s)s.hasOwnProperty(a)&&_(s[a],o,u);a=!0}else i.registrationName?(_(i.registrationName,o,u),a=!0):a=!1;if(!a)throw Error(l(98,r,e))}}}}function _(e,t,n){if(k[e])throw Error(l(100,e));k[e]=t,T[e]=t.eventTypes[n].dependencies}var w=[],x={},k={},T={};function E(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!y.hasOwnProperty(t)||y[t]!==r){if(y[t])throw Error(l(102,t));y[t]=r,n=!0}}n&&b()}var C=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),S=null,M=null,P=null;function A(e){if(e=p(e)){if("function"!=typeof S)throw Error(l(280));var t=e.stateNode;t&&(t=h(t),S(e.stateNode,e.type,t))}}function N(e){M?P?P.push(e):P=[e]:M=e}function O(){if(M){var e=M,t=P;if(P=M=null,A(e),t)for(e=0;e<t.length;e++)A(t[e])}}function R(e,t){return e(t)}function z(e,t,n,r,a){return e(t,n,r,a)}function L(){}var D=R,F=!1,I=!1;function U(){null===M&&null===P||(L(),O())}function $(e,t,n){if(I)return e(t,n);I=!0;try{return D(e,t,n)}finally{I=!1,U()}}var B=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H=Object.prototype.hasOwnProperty,j={},V={};function W(e,t,n,r,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){q[e]=new W(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];q[t]=new W(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){q[e]=new W(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){q[e]=new W(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){q[e]=new W(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){q[e]=new W(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){q[e]=new W(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){q[e]=new W(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){q[e]=new W(e,5,!1,e.toLowerCase(),null,!1)}));var Y=/[\-:]([a-z])/g;function Q(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Y,Q);q[t]=new W(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Y,Q);q[t]=new W(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Y,Q);q[t]=new W(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){q[e]=new W(e,1,!1,e.toLowerCase(),null,!1)})),q.xlinkHref=new W("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){q[e]=new W(e,1,!1,e.toLowerCase(),null,!0)}));var X=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function K(e,t,n,r){var a=q.hasOwnProperty(t)?q[t]:null;(null!==a?0===a.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!H.call(V,e)||!H.call(j,e)&&(B.test(e)?V[e]=!0:(j[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var G=/^(.*)[\\\/]/,Z="function"==typeof Symbol&&Symbol.for,J=Z?Symbol.for("react.element"):60103,ee=Z?Symbol.for("react.portal"):60106,te=Z?Symbol.for("react.fragment"):60107,ne=Z?Symbol.for("react.strict_mode"):60108,re=Z?Symbol.for("react.profiler"):60114,ae=Z?Symbol.for("react.provider"):60109,ie=Z?Symbol.for("react.context"):60110,le=Z?Symbol.for("react.concurrent_mode"):60111,oe=Z?Symbol.for("react.forward_ref"):60112,ue=Z?Symbol.for("react.suspense"):60113,se=Z?Symbol.for("react.suspense_list"):60120,ce=Z?Symbol.for("react.memo"):60115,fe=Z?Symbol.for("react.lazy"):60116,de=Z?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function pe(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case te:return"Fragment";case ee:return"Portal";case re:return"Profiler";case ne:return"StrictMode";case ue:return"Suspense";case se:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ie:return"Context.Consumer";case ae:return"Context.Provider";case oe:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case ce:return ge(e.type);case de:return ge(e.render);case fe:if(e=1===e._status?e._result:null)return ge(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,a=e._debugSource,i=ge(e.type);n=null,r&&(n=ge(r.type)),r=i,i="",a?i=" (at "+a.fileName.replace(G,"")+":"+a.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function me(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function be(e){e._valueTracker||(e._valueTracker=function(e){var t=ye(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ye(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function we(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function xe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=me(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ke(e,t){null!=(t=t.checked)&&K(e,"checked",t,!1)}function Te(e,t){ke(e,t);var n=me(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ce(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ce(e,t.type,me(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ce(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Se(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Me(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+me(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Pe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(l(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(l(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(l(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:me(n)}}function Ne(e,t){var n=me(t.value),r=me(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Re(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ze(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Re(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Le,De=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Le=Le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ie(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ue={animationend:Ie("Animation","AnimationEnd"),animationiteration:Ie("Animation","AnimationIteration"),animationstart:Ie("Animation","AnimationStart"),transitionend:Ie("Transition","TransitionEnd")},$e={},Be={};function He(e){if($e[e])return $e[e];if(!Ue[e])return e;var t,n=Ue[e];for(t in n)if(n.hasOwnProperty(t)&&t in Be)return $e[e]=n[t];return e}C&&(Be=document.createElement("div").style,"AnimationEvent"in window||(delete Ue.animationend.animation,delete Ue.animationiteration.animation,delete Ue.animationstart.animation),"TransitionEvent"in window||delete Ue.transitionend.transition);var je=He("animationend"),Ve=He("animationiteration"),We=He("animationstart"),qe=He("transitionend"),Ye="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qe=new("function"==typeof WeakMap?WeakMap:Map);function Xe(e){var t=Qe.get(e);return void 0===t&&(t=new Map,Qe.set(e,t)),t}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ze(e){if(Ke(e)!==e)throw Error(l(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(l(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return Ze(a),e;if(i===r)return Ze(a),t;i=i.sibling}throw Error(l(188))}if(n.return!==r.return)n=a,r=i;else{for(var o=!1,u=a.child;u;){if(u===n){o=!0,n=a,r=i;break}if(u===r){o=!0,r=a,n=i;break}u=u.sibling}if(!o){for(u=i.child;u;){if(u===n){o=!0,n=i,r=a;break}if(u===r){o=!0,r=i,n=a;break}u=u.sibling}if(!o)throw Error(l(189))}}if(n.alternate!==r)throw Error(l(190))}if(3!==n.tag)throw Error(l(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){if(null==t)throw Error(l(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function tt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var nt=null;function rt(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function at(e){if(null!==e&&(nt=et(nt,e)),e=nt,nt=null,e){if(tt(e,rt),nt)throw Error(l(95));if(s)throw e=c,s=!1,c=null,e}}function it(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function lt(e){if(!C)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ot=[];function ut(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ot.length&&ot.push(e)}function st(e,t,n,r){if(ot.length){var a=ot.pop();return a.topLevelType=e,a.eventSystemFlags=r,a.nativeEvent=t,a.targetInst=n,a}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ct(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=xn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var a=it(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,l=e.eventSystemFlags;0===n&&(l|=64);for(var o=null,u=0;u<w.length;u++){var s=w[u];s&&(s=s.extractEvents(r,t,i,a,l))&&(o=et(o,s))}at(o)}}function ft(e,t,n){if(!n.has(e)){switch(e){case"scroll":Wt(t,"scroll",!0);break;case"focus":case"blur":Wt(t,"focus",!0),Wt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":lt(e)&&Wt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ye.indexOf(e)&&Vt(e,t)}n.set(e,null)}}var dt,ht,pt,gt=!1,vt=[],mt=null,yt=null,bt=null,_t=new Map,wt=new Map,xt=[],kt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Tt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Et(e,t,n,r,a){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:a,container:r}}function Ct(e,t){switch(e){case"focus":case"blur":mt=null;break;case"dragenter":case"dragleave":yt=null;break;case"mouseover":case"mouseout":bt=null;break;case"pointerover":case"pointerout":_t.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wt.delete(t.pointerId)}}function St(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e=Et(t,n,r,a,i),null!==t&&null!==(t=kn(t))&&ht(t),e):(e.eventSystemFlags|=r,e)}function Mt(e){var t=xn(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){pt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Pt(e){if(null!==e.blockedOn)return!1;var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=kn(t);return null!==n&&ht(n),e.blockedOn=t,!1}return!0}function At(e,t,n){Pt(e)&&n.delete(t)}function Nt(){for(gt=!1;0<vt.length;){var e=vt[0];if(null!==e.blockedOn){null!==(e=kn(e.blockedOn))&&dt(e);break}var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:vt.shift()}null!==mt&&Pt(mt)&&(mt=null),null!==yt&&Pt(yt)&&(yt=null),null!==bt&&Pt(bt)&&(bt=null),_t.forEach(At),wt.forEach(At)}function Ot(e,t){e.blockedOn===t&&(e.blockedOn=null,gt||(gt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Nt)))}function Rt(e){function t(t){return Ot(t,e)}if(0<vt.length){Ot(vt[0],e);for(var n=1;n<vt.length;n++){var r=vt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==mt&&Ot(mt,e),null!==yt&&Ot(yt,e),null!==bt&&Ot(bt,e),_t.forEach(t),wt.forEach(t),n=0;n<xt.length;n++)(r=xt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<xt.length&&null===(n=xt[0]).blockedOn;)Mt(n),null===n.blockedOn&&xt.shift()}var zt={},Lt=new Map,Dt=new Map,Ft=["abort","abort",je,"animationEnd",Ve,"animationIteration",We,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",qe,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1],i="on"+(a[0].toUpperCase()+a.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Dt.set(r,t),Lt.set(r,i),zt[a]=i}}It("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(Ft,2);for(var Ut="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),$t=0;$t<Ut.length;$t++)Dt.set(Ut[$t],0);var Bt=i.unstable_UserBlockingPriority,Ht=i.unstable_runWithPriority,jt=!0;function Vt(e,t){Wt(t,e,!1)}function Wt(e,t,n){var r=Dt.get(t);switch(void 0===r?2:r){case 0:r=function(e,t,n,r){F||L();var a=qt,i=F;F=!0;try{z(a,e,t,n,r)}finally{(F=i)||U()}}.bind(null,t,1,e);break;case 1:r=function(e,t,n,r){Ht(Bt,qt.bind(null,e,t,n,r))}.bind(null,t,1,e);break;default:r=qt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function qt(e,t,n,r){if(jt)if(0<vt.length&&-1<kt.indexOf(e))e=Et(null,e,t,n,r),vt.push(e);else{var a=Yt(e,t,n,r);if(null===a)Ct(e,r);else if(-1<kt.indexOf(e))e=Et(a,e,t,n,r),vt.push(e);else if(!function(e,t,n,r,a){switch(t){case"focus":return mt=St(mt,e,t,n,r,a),!0;case"dragenter":return yt=St(yt,e,t,n,r,a),!0;case"mouseover":return bt=St(bt,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return _t.set(i,St(_t.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,wt.set(i,St(wt.get(i)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r)){Ct(e,r),e=st(e,r,null,t);try{$(ct,e)}finally{ut(e)}}}}function Yt(e,t,n,r){if(null!==(n=xn(n=it(r)))){var a=Ke(n);if(null===a)n=null;else{var i=a.tag;if(13===i){if(null!==(n=Ge(a)))return n;n=null}else if(3===i){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}e=st(e,r,n,t);try{$(ct,e)}finally{ut(e)}return null}var Qt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xt=["Webkit","ms","Moz","O"];function Kt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Qt.hasOwnProperty(e)&&Qt[e]?(""+t).trim():t+"px"}function Gt(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=Kt(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(Qt).forEach((function(e){Xt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qt[t]=Qt[e]}))}));var Zt=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Jt(e,t){if(t){if(Zt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(l(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(l(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(l(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(l(62,""))}}function en(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tn="http://www.w3.org/1999/xhtml";function nn(e,t){var n=Xe(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=T[t];for(var r=0;r<t.length;r++)ft(t[r],e,n)}function rn(){}function an(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ln(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function on(e,t){var n,r=ln(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ln(r)}}function un(){for(var e=window,t=an();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=an((e=t.contentWindow).document)}return t}function sn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var cn=null,fn=null;function dn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function hn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var pn="function"==typeof setTimeout?setTimeout:void 0,gn="function"==typeof clearTimeout?clearTimeout:void 0;function vn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function mn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var yn=Math.random().toString(36).slice(2),bn="__reactInternalInstance$"+yn,_n="__reactEventHandlers$"+yn,wn="__reactContainere$"+yn;function xn(e){var t=e[bn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wn]||n[bn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=mn(e);null!==e;){if(n=e[bn])return n;e=mn(e)}return t}n=(e=n).parentNode}return null}function kn(e){return!(e=e[bn]||e[wn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Tn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(l(33))}function En(e){return e[_n]||null}function Cn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Sn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(l(231,t,typeof n));return n}function Mn(e,t,n){(t=Sn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=et(n._dispatchListeners,t),n._dispatchInstances=et(n._dispatchInstances,e))}function Pn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Cn(t);for(t=n.length;0<t--;)Mn(n[t],"captured",e);for(t=0;t<n.length;t++)Mn(n[t],"bubbled",e)}}function An(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Sn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=et(n._dispatchListeners,t),n._dispatchInstances=et(n._dispatchInstances,e))}function Nn(e){e&&e.dispatchConfig.registrationName&&An(e._targetInst,null,e)}function On(e){tt(e,Pn)}var Rn=null,zn=null,Ln=null;function Dn(){if(Ln)return Ln;var e,t,n=zn,r=n.length,a="value"in Rn?Rn.value:Rn.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var l=r-e;for(t=1;t<=l&&n[r-t]===a[i-t];t++);return Ln=a.slice(e,1<t?1-t:void 0)}function Fn(){return!0}function In(){return!1}function Un(e,t,n,r){for(var a in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(a)&&((t=e[a])?this[a]=t(n):"target"===a?this.target=r:this[a]=n[a]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Fn:In,this.isPropagationStopped=In,this}function $n(e,t,n,r){if(this.eventPool.length){var a=this.eventPool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)}function Bn(e){if(!(e instanceof this))throw Error(l(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Hn(e){e.eventPool=[],e.getPooled=$n,e.release=Bn}a(Un.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Fn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Fn)},persist:function(){this.isPersistent=Fn},isPersistent:In,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=In,this._dispatchInstances=this._dispatchListeners=null}}),Un.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Un.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return a(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=a({},r.Interface,e),n.extend=r.extend,Hn(n),n},Hn(Un);var jn=Un.extend({data:null}),Vn=Un.extend({data:null}),Wn=[9,13,27,32],qn=C&&"CompositionEvent"in window,Yn=null;C&&"documentMode"in document&&(Yn=document.documentMode);var Qn=C&&"TextEvent"in window&&!Yn,Xn=C&&(!qn||Yn&&8<Yn&&11>=Yn),Kn=String.fromCharCode(32),Gn={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Zn=!1;function Jn(e,t){switch(e){case"keyup":return-1!==Wn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function er(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var tr=!1,nr={eventTypes:Gn,extractEvents:function(e,t,n,r){var a;if(qn)e:{switch(e){case"compositionstart":var i=Gn.compositionStart;break e;case"compositionend":i=Gn.compositionEnd;break e;case"compositionupdate":i=Gn.compositionUpdate;break e}i=void 0}else tr?Jn(e,n)&&(i=Gn.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=Gn.compositionStart);return i?(Xn&&"ko"!==n.locale&&(tr||i!==Gn.compositionStart?i===Gn.compositionEnd&&tr&&(a=Dn()):(zn="value"in(Rn=r)?Rn.value:Rn.textContent,tr=!0)),i=jn.getPooled(i,t,n,r),(a||null!==(a=er(n)))&&(i.data=a),On(i),a=i):a=null,(e=Qn?function(e,t){switch(e){case"compositionend":return er(t);case"keypress":return 32!==t.which?null:(Zn=!0,Kn);case"textInput":return(e=t.data)===Kn&&Zn?null:e;default:return null}}(e,n):function(e,t){if(tr)return"compositionend"===e||!qn&&Jn(e,t)?(e=Dn(),Ln=zn=Rn=null,tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Xn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Vn.getPooled(Gn.beforeInput,t,n,r)).data=e,On(t)):t=null,null===a?t:null===t?a:[a,t]}},rr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!rr[e.type]:"textarea"===t}var ir={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function lr(e,t,n){return(e=Un.getPooled(ir.change,e,t,n)).type="change",N(n),On(e),e}var or=null,ur=null;function sr(e){at(e)}function cr(e){if(_e(Tn(e)))return e}function fr(e,t){if("change"===e)return t}var dr=!1;function hr(){or&&(or.detachEvent("onpropertychange",pr),ur=or=null)}function pr(e){if("value"===e.propertyName&&cr(ur))if(e=lr(ur,e,it(e)),F)at(e);else{F=!0;try{R(sr,e)}finally{F=!1,U()}}}function gr(e,t,n){"focus"===e?(hr(),ur=n,(or=t).attachEvent("onpropertychange",pr)):"blur"===e&&hr()}function vr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return cr(ur)}function mr(e,t){if("click"===e)return cr(t)}function yr(e,t){if("input"===e||"change"===e)return cr(t)}C&&(dr=lt("input")&&(!document.documentMode||9<document.documentMode));var br={eventTypes:ir,_isInputEventSupported:dr,extractEvents:function(e,t,n,r){var a=t?Tn(t):window,i=a.nodeName&&a.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===a.type)var l=fr;else if(ar(a))if(dr)l=yr;else{l=vr;var o=gr}else(i=a.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(l=mr);if(l&&(l=l(e,t)))return lr(l,n,r);o&&o(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&Ce(a,"number",a.value)}},_r=Un.extend({view:null,detail:null}),wr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wr[e])&&!!t[e]}function kr(){return xr}var Tr=0,Er=0,Cr=!1,Sr=!1,Mr=_r.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:kr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Tr;return Tr=e.screenX,Cr?"mousemove"===e.type?e.screenX-t:0:(Cr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Er;return Er=e.screenY,Sr?"mousemove"===e.type?e.screenY-t:0:(Sr=!0,0)}}),Pr=Mr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Ar={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Nr={eventTypes:Ar,extractEvents:function(e,t,n,r,a){var i="mouseover"===e||"pointerover"===e,l="mouseout"===e||"pointerout"===e;if(i&&0==(32&a)&&(n.relatedTarget||n.fromElement)||!l&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,l?(l=t,null!==(t=(t=n.relatedTarget||n.toElement)?xn(t):null)&&(t!==Ke(t)||5!==t.tag&&6!==t.tag)&&(t=null)):l=null,l===t)return null;if("mouseout"===e||"mouseover"===e)var o=Mr,u=Ar.mouseLeave,s=Ar.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(o=Pr,u=Ar.pointerLeave,s=Ar.pointerEnter,c="pointer");if(e=null==l?i:Tn(l),i=null==t?i:Tn(t),(u=o.getPooled(u,l,n,r)).type=c+"leave",u.target=e,u.relatedTarget=i,(n=o.getPooled(s,t,n,r)).type=c+"enter",n.target=i,n.relatedTarget=e,c=t,(r=l)&&c)e:{for(s=c,l=0,e=o=r;e;e=Cn(e))l++;for(e=0,t=s;t;t=Cn(t))e++;for(;0<l-e;)o=Cn(o),l--;for(;0<e-l;)s=Cn(s),e--;for(;l--;){if(o===s||o===s.alternate)break e;o=Cn(o),s=Cn(s)}o=null}else o=null;for(s=o,o=[];r&&r!==s&&(null===(l=r.alternate)||l!==s);)o.push(r),r=Cn(r);for(r=[];c&&c!==s&&(null===(l=c.alternate)||l!==s);)r.push(c),c=Cn(c);for(c=0;c<o.length;c++)An(o[c],"bubbled",u);for(c=r.length;0<c--;)An(r[c],"captured",n);return 0==(64&a)?[u]:[u,n]}},Or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Rr=Object.prototype.hasOwnProperty;function zr(e,t){if(Or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Rr.call(t,n[r])||!Or(e[n[r]],t[n[r]]))return!1;return!0}var Lr=C&&"documentMode"in document&&11>=document.documentMode,Dr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Fr=null,Ir=null,Ur=null,$r=!1;function Br(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return $r||null==Fr||Fr!==an(n)?null:(n="selectionStart"in(n=Fr)&&sn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Ur&&zr(Ur,n)?null:(Ur=n,(e=Un.getPooled(Dr.select,Ir,e,t)).type="select",e.target=Fr,On(e),e))}var Hr={eventTypes:Dr,extractEvents:function(e,t,n,r,a,i){if(!(i=!(a=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{a=Xe(a),i=T.onSelect;for(var l=0;l<i.length;l++)if(!a.has(i[l])){a=!1;break e}a=!0}i=!a}if(i)return null;switch(a=t?Tn(t):window,e){case"focus":(ar(a)||"true"===a.contentEditable)&&(Fr=a,Ir=t,Ur=null);break;case"blur":Ur=Ir=Fr=null;break;case"mousedown":$r=!0;break;case"contextmenu":case"mouseup":case"dragend":return $r=!1,Br(n,r);case"selectionchange":if(Lr)break;case"keydown":case"keyup":return Br(n,r)}return null}},jr=Un.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Vr=Un.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wr=_r.extend({relatedTarget:null});function qr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Yr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Xr=_r.extend({key:function(e){if(e.key){var t=Yr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=qr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Qr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:kr,charCode:function(e){return"keypress"===e.type?qr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?qr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Kr=Mr.extend({dataTransfer:null}),Gr=_r.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:kr}),Zr=Un.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),Jr=Mr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ea={eventTypes:zt,extractEvents:function(e,t,n,r){var a=Lt.get(e);if(!a)return null;switch(e){case"keypress":if(0===qr(n))return null;case"keydown":case"keyup":e=Xr;break;case"blur":case"focus":e=Wr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Mr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=Kr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=Gr;break;case je:case Ve:case We:e=jr;break;case qe:e=Zr;break;case"scroll":e=_r;break;case"wheel":e=Jr;break;case"copy":case"cut":case"paste":e=Vr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Pr;break;default:e=Un}return On(t=e.getPooled(a,t,n,r)),t}};if(m)throw Error(l(101));m=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),b(),h=En,p=kn,g=Tn,E({SimpleEventPlugin:ea,EnterLeaveEventPlugin:Nr,ChangeEventPlugin:br,SelectEventPlugin:Hr,BeforeInputEventPlugin:nr});var ta=[],na=-1;function ra(e){0>na||(e.current=ta[na],ta[na]=null,na--)}function aa(e,t){ta[++na]=e.current,e.current=t}var ia={},la={current:ia},oa={current:!1},ua=ia;function sa(e,t){var n=e.type.contextTypes;if(!n)return ia;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ca(e){return null!==(e=e.childContextTypes)&&void 0!==e}function fa(){ra(oa),ra(la)}function da(e,t,n){if(la.current!==ia)throw Error(l(168));aa(la,t),aa(oa,n)}function ha(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(l(108,ge(t)||"Unknown",i));return a({},n,{},r)}function pa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ia,ua=la.current,aa(la,e),aa(oa,oa.current),!0}function ga(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=ha(e,t,ua),r.__reactInternalMemoizedMergedChildContext=e,ra(oa),ra(la),aa(la,e)):ra(oa),aa(oa,n)}var va=i.unstable_runWithPriority,ma=i.unstable_scheduleCallback,ya=i.unstable_cancelCallback,ba=i.unstable_requestPaint,_a=i.unstable_now,wa=i.unstable_getCurrentPriorityLevel,xa=i.unstable_ImmediatePriority,ka=i.unstable_UserBlockingPriority,Ta=i.unstable_NormalPriority,Ea=i.unstable_LowPriority,Ca=i.unstable_IdlePriority,Sa={},Ma=i.unstable_shouldYield,Pa=void 0!==ba?ba:function(){},Aa=null,Na=null,Oa=!1,Ra=_a(),za=1e4>Ra?_a:function(){return _a()-Ra};function La(){switch(wa()){case xa:return 99;case ka:return 98;case Ta:return 97;case Ea:return 96;case Ca:return 95;default:throw Error(l(332))}}function Da(e){switch(e){case 99:return xa;case 98:return ka;case 97:return Ta;case 96:return Ea;case 95:return Ca;default:throw Error(l(332))}}function Fa(e,t){return e=Da(e),va(e,t)}function Ia(e,t,n){return e=Da(e),ma(e,t,n)}function Ua(e){return null===Aa?(Aa=[e],Na=ma(xa,Ba)):Aa.push(e),Sa}function $a(){if(null!==Na){var e=Na;Na=null,ya(e)}Ba()}function Ba(){if(!Oa&&null!==Aa){Oa=!0;var e=0;try{var t=Aa;Fa(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Aa=null}catch(t){throw null!==Aa&&(Aa=Aa.slice(e+1)),ma(xa,$a),t}finally{Oa=!1}}}function Ha(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function ja(e,t){if(e&&e.defaultProps)for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Va={current:null},Wa=null,qa=null,Ya=null;function Qa(){Ya=qa=Wa=null}function Xa(e){var t=Va.current;ra(Va),e.type._context._currentValue=t}function Ka(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function Ga(e,t){Wa=e,Ya=qa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Tl=!0),e.firstContext=null)}function Za(e,t){if(Ya!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ya=e,t=1073741823),t={context:e,observedBits:t,next:null},null===qa){if(null===Wa)throw Error(l(308));qa=t,Wa.dependencies={expirationTime:0,firstContext:t,responders:null}}else qa=qa.next=t;return e._currentValue}var Ja=!1;function ei(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ti(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function ni(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ri(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ai(e,t){var n=e.alternate;null!==n&&ti(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function ii(e,t,n,r){var i=e.updateQueue;Ja=!1;var l=i.baseQueue,o=i.shared.pending;if(null!==o){if(null!==l){var u=l.next;l.next=o.next,o.next=u}l=o,i.shared.pending=null,null!==(u=e.alternate)&&null!==(u=u.updateQueue)&&(u.baseQueue=o)}if(null!==l){u=l.next;var s=i.baseState,c=0,f=null,d=null,h=null;if(null!==u)for(var p=u;;){if((o=p.expirationTime)<r){var g={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===h?(d=h=g,f=s):h=h.next=g,o>c&&(c=o)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),eu(o,p.suspenseConfig);e:{var v=e,m=p;switch(o=t,g=n,m.tag){case 1:if("function"==typeof(v=m.payload)){s=v.call(g,s,o);break e}s=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null===(o="function"==typeof(v=m.payload)?v.call(g,s,o):v)||void 0===o)break e;s=a({},s,o);break e;case 2:Ja=!0}}null!==p.callback&&(e.effectTag|=32,null===(o=i.effects)?i.effects=[p]:o.push(p))}if(null===(p=p.next)||p===u){if(null===(o=i.shared.pending))break;p=l.next=o.next,o.next=u,i.baseQueue=l=o,i.shared.pending=null}}null===h?f=s:h.next=d,i.baseState=f,i.baseQueue=h,tu(c),e.expirationTime=c,e.memoizedState=s}}function li(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=a,a=n,"function"!=typeof r)throw Error(l(191,r));r.call(a)}}}var oi=X.ReactCurrentBatchConfig,ui=(new r.Component).refs;function si(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:a({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var ci={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Ho(),a=oi.suspense;(a=ni(r=jo(r,e,a),a)).payload=t,null!=n&&(a.callback=n),ri(e,a),Vo(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Ho(),a=oi.suspense;(a=ni(r=jo(r,e,a),a)).tag=1,a.payload=t,null!=n&&(a.callback=n),ri(e,a),Vo(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ho(),r=oi.suspense;(r=ni(n=jo(n,e,r),r)).tag=2,null!=t&&(r.callback=t),ri(e,r),Vo(e,n)}};function fi(e,t,n,r,a,i,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,l):!(t.prototype&&t.prototype.isPureReactComponent&&zr(n,r)&&zr(a,i))}function di(e,t,n){var r=!1,a=ia,i=t.contextType;return"object"==typeof i&&null!==i?i=Za(i):(a=ca(t)?ua:la.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?sa(e,a):ia),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ci,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function hi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ci.enqueueReplaceState(t,t.state,null)}function pi(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=ui,ei(e);var i=t.contextType;"object"==typeof i&&null!==i?a.context=Za(i):(i=ca(t)?ua:la.current,a.context=sa(e,i)),ii(e,n,a,r),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(si(e,t,i,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&ci.enqueueReplaceState(a,a.state,null),ii(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var gi=Array.isArray;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(l(309));var r=n.stateNode}if(!r)throw Error(l(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=r.refs;t===ui&&(t=r.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(l(284));if(!n._owner)throw Error(l(290,e))}return e}function mi(e,t){if("textarea"!==e.type)throw Error(l(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function yi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=yu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function o(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=wu(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=bu(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=xu(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=_u(n,e.mode,r,i)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=wu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case J:return(n=bu(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case ee:return(t=xu(t,e.mode,n)).return=e,t}if(gi(t)||pe(t))return(t=_u(t,e.mode,n,null)).return=e,t;mi(e,t)}return null}function h(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case J:return n.key===a?n.type===te?f(e,t,n.props.children,r,a):s(e,t,n,r):null;case ee:return n.key===a?c(e,t,n,r):null}if(gi(n)||pe(n))return null!==a?null:f(e,t,n,r,null);mi(e,n)}return null}function p(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case J:return e=e.get(null===r.key?n:r.key)||null,r.type===te?f(t,e,r.props.children,a,r.key):s(t,e,r,a);case ee:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(gi(r)||pe(r))return f(t,e=e.get(n)||null,r,a,null);mi(t,r)}return null}function g(a,l,o,u){for(var s=null,c=null,f=l,g=l=0,v=null;null!==f&&g<o.length;g++){f.index>g?(v=f,f=null):v=f.sibling;var m=h(a,f,o[g],u);if(null===m){null===f&&(f=v);break}e&&f&&null===m.alternate&&t(a,f),l=i(m,l,g),null===c?s=m:c.sibling=m,c=m,f=v}if(g===o.length)return n(a,f),s;if(null===f){for(;g<o.length;g++)null!==(f=d(a,o[g],u))&&(l=i(f,l,g),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(a,f);g<o.length;g++)null!==(v=p(f,a,g,o[g],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),l=i(v,l,g),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(a,e)})),s}function v(a,o,u,s){var c=pe(u);if("function"!=typeof c)throw Error(l(150));if(null==(u=c.call(u)))throw Error(l(151));for(var f=c=null,g=o,v=o=0,m=null,y=u.next();null!==g&&!y.done;v++,y=u.next()){g.index>v?(m=g,g=null):m=g.sibling;var b=h(a,g,y.value,s);if(null===b){null===g&&(g=m);break}e&&g&&null===b.alternate&&t(a,g),o=i(b,o,v),null===f?c=b:f.sibling=b,f=b,g=m}if(y.done)return n(a,g),c;if(null===g){for(;!y.done;v++,y=u.next())null!==(y=d(a,y.value,s))&&(o=i(y,o,v),null===f?c=y:f.sibling=y,f=y);return c}for(g=r(a,g);!y.done;v++,y=u.next())null!==(y=p(g,a,v,y.value,s))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),o=i(y,o,v),null===f?c=y:f.sibling=y,f=y);return e&&g.forEach((function(e){return t(a,e)})),c}return function(e,r,i,u){var s="object"==typeof i&&null!==i&&i.type===te&&null===i.key;s&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case J:e:{for(c=i.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(i.type===te){n(e,s.sibling),(r=a(s,i.props.children)).return=e,e=r;break e}break;default:if(s.elementType===i.type){n(e,s.sibling),(r=a(s,i.props)).ref=vi(e,s,i),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}i.type===te?((r=_u(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=bu(i.type,i.key,i.props,null,e.mode,u)).ref=vi(e,r,i),u.return=e,e=u)}return o(e);case ee:e:{for(s=i.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=a(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=xu(i,e.mode,u)).return=e,e=r}return o(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,i)).return=e,e=r):(n(e,r),(r=wu(i,e.mode,u)).return=e,e=r),o(e);if(gi(i))return g(e,r,i,u);if(pe(i))return v(e,r,i,u);if(c&&mi(e,i),void 0===i&&!s)switch(e.tag){case 1:case 0:throw e=e.type,Error(l(152,e.displayName||e.name||"Component"))}return n(e,r)}}var bi=yi(!0),_i=yi(!1),wi={},xi={current:wi},ki={current:wi},Ti={current:wi};function Ei(e){if(e===wi)throw Error(l(174));return e}function Ci(e,t){switch(aa(Ti,t),aa(ki,e),aa(xi,wi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ze(null,"");break;default:t=ze(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ra(xi),aa(xi,t)}function Si(){ra(xi),ra(ki),ra(Ti)}function Mi(e){Ei(Ti.current);var t=Ei(xi.current),n=ze(t,e.type);t!==n&&(aa(ki,e),aa(xi,n))}function Pi(e){ki.current===e&&(ra(xi),ra(ki))}var Ai={current:0};function Ni(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Oi(e,t){return{responder:e,props:t}}var Ri=X.ReactCurrentDispatcher,zi=X.ReactCurrentBatchConfig,Li=0,Di=null,Fi=null,Ii=null,Ui=!1;function $i(){throw Error(l(321))}function Bi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Or(e[n],t[n]))return!1;return!0}function Hi(e,t,n,r,a,i){if(Li=i,Di=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Ri.current=null===e||null===e.memoizedState?fl:dl,e=n(r,a),t.expirationTime===Li){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(l(301));i+=1,Ii=Fi=null,t.updateQueue=null,Ri.current=hl,e=n(r,a)}while(t.expirationTime===Li)}if(Ri.current=cl,t=null!==Fi&&null!==Fi.next,Li=0,Ii=Fi=Di=null,Ui=!1,t)throw Error(l(300));return e}function ji(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ii?Di.memoizedState=Ii=e:Ii=Ii.next=e,Ii}function Vi(){if(null===Fi){var e=Di.alternate;e=null!==e?e.memoizedState:null}else e=Fi.next;var t=null===Ii?Di.memoizedState:Ii.next;if(null!==t)Ii=t,Fi=e;else{if(null===e)throw Error(l(310));e={memoizedState:(Fi=e).memoizedState,baseState:Fi.baseState,baseQueue:Fi.baseQueue,queue:Fi.queue,next:null},null===Ii?Di.memoizedState=Ii=e:Ii=Ii.next=e}return Ii}function Wi(e,t){return"function"==typeof t?t(e):t}function qi(e){var t=Vi(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=Fi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var o=a.next;a.next=i.next,i.next=o}r.baseQueue=a=i,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var u=o=i=null,s=a;do{var c=s.expirationTime;if(c<Li){var f={expirationTime:s.expirationTime,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===u?(o=u=f,i=r):u=u.next=f,c>Di.expirationTime&&(Di.expirationTime=c,tu(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),eu(c,s.suspenseConfig),r=s.eagerReducer===e?s.eagerState:e(r,s.action);s=s.next}while(null!==s&&s!==a);null===u?i=r:u.next=o,Or(r,t.memoizedState)||(Tl=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Yi(e){var t=Vi(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var o=a=a.next;do{i=e(i,o.action),o=o.next}while(o!==a);Or(i,t.memoizedState)||(Tl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Qi(e){var t=ji();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Wi,lastRenderedState:e}).dispatch=sl.bind(null,Di,e),[t.memoizedState,e]}function Xi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Di.updateQueue)?(t={lastEffect:null},Di.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ki(){return Vi().memoizedState}function Gi(e,t,n,r){var a=ji();Di.effectTag|=e,a.memoizedState=Xi(1|t,n,void 0,void 0===r?null:r)}function Zi(e,t,n,r){var a=Vi();r=void 0===r?null:r;var i=void 0;if(null!==Fi){var l=Fi.memoizedState;if(i=l.destroy,null!==r&&Bi(r,l.deps))return void Xi(t,n,i,r)}Di.effectTag|=e,a.memoizedState=Xi(1|t,n,i,r)}function Ji(e,t){return Gi(516,4,e,t)}function el(e,t){return Zi(516,4,e,t)}function tl(e,t){return Zi(4,2,e,t)}function nl(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function rl(e,t,n){return n=null!=n?n.concat([e]):null,Zi(4,2,nl.bind(null,t,e),n)}function al(){}function il(e,t){return ji().memoizedState=[e,void 0===t?null:t],e}function ll(e,t){var n=Vi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Bi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ol(e,t){var n=Vi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Bi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ul(e,t,n){var r=La();Fa(98>r?98:r,(function(){e(!0)})),Fa(97<r?97:r,(function(){var r=zi.suspense;zi.suspense=void 0===t?null:t;try{e(!1),n()}finally{zi.suspense=r}}))}function sl(e,t,n){var r=Ho(),a=oi.suspense;a={expirationTime:r=jo(r,e,a),suspenseConfig:a,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?a.next=a:(a.next=i.next,i.next=a),t.pending=a,i=e.alternate,e===Di||null!==i&&i===Di)Ui=!0,a.expirationTime=Li,Di.expirationTime=Li;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var l=t.lastRenderedState,o=i(l,n);if(a.eagerReducer=i,a.eagerState=o,Or(o,l))return}catch(e){}Vo(e,r)}}var cl={readContext:Za,useCallback:$i,useContext:$i,useEffect:$i,useImperativeHandle:$i,useLayoutEffect:$i,useMemo:$i,useReducer:$i,useRef:$i,useState:$i,useDebugValue:$i,useResponder:$i,useDeferredValue:$i,useTransition:$i},fl={readContext:Za,useCallback:il,useContext:Za,useEffect:Ji,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Gi(4,2,nl.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gi(4,2,e,t)},useMemo:function(e,t){var n=ji();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ji();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=sl.bind(null,Di,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ji().memoizedState=e},useState:Qi,useDebugValue:al,useResponder:Oi,useDeferredValue:function(e,t){var n=Qi(e),r=n[0],a=n[1];return Ji((function(){var n=zi.suspense;zi.suspense=void 0===t?null:t;try{a(e)}finally{zi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Qi(!1),n=t[0];return t=t[1],[il(ul.bind(null,t,e),[t,e]),n]}},dl={readContext:Za,useCallback:ll,useContext:Za,useEffect:el,useImperativeHandle:rl,useLayoutEffect:tl,useMemo:ol,useReducer:qi,useRef:Ki,useState:function(){return qi(Wi)},useDebugValue:al,useResponder:Oi,useDeferredValue:function(e,t){var n=qi(Wi),r=n[0],a=n[1];return el((function(){var n=zi.suspense;zi.suspense=void 0===t?null:t;try{a(e)}finally{zi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=qi(Wi),n=t[0];return t=t[1],[ll(ul.bind(null,t,e),[t,e]),n]}},hl={readContext:Za,useCallback:ll,useContext:Za,useEffect:el,useImperativeHandle:rl,useLayoutEffect:tl,useMemo:ol,useReducer:Yi,useRef:Ki,useState:function(){return Yi(Wi)},useDebugValue:al,useResponder:Oi,useDeferredValue:function(e,t){var n=Yi(Wi),r=n[0],a=n[1];return el((function(){var n=zi.suspense;zi.suspense=void 0===t?null:t;try{a(e)}finally{zi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Yi(Wi),n=t[0];return t=t[1],[ll(ul.bind(null,t,e),[t,e]),n]}},pl=null,gl=null,vl=!1;function ml(e,t){var n=vu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function yl(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function bl(e){if(vl){var t=gl;if(t){var n=t;if(!yl(e,t)){if(!(t=vn(n.nextSibling))||!yl(e,t))return e.effectTag=-1025&e.effectTag|2,vl=!1,void(pl=e);ml(pl,n)}pl=e,gl=vn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,vl=!1,pl=e}}function _l(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;pl=e}function wl(e){if(e!==pl)return!1;if(!vl)return _l(e),vl=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!hn(t,e.memoizedProps))for(t=gl;t;)ml(e,t),t=vn(t.nextSibling);if(_l(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){gl=vn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}gl=null}}else gl=pl?vn(e.stateNode.nextSibling):null;return!0}function xl(){gl=pl=null,vl=!1}var kl=X.ReactCurrentOwner,Tl=!1;function El(e,t,n,r){t.child=null===e?_i(t,null,n,r):bi(t,e.child,n,r)}function Cl(e,t,n,r,a){n=n.render;var i=t.ref;return Ga(t,a),r=Hi(e,t,n,r,i,a),null===e||Tl?(t.effectTag|=1,El(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),jl(e,t,a))}function Sl(e,t,n,r,a,i){if(null===e){var l=n.type;return"function"!=typeof l||mu(l)||void 0!==l.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=bu(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=l,Ml(e,t,l,r,a,i))}return l=e.child,a<i&&(a=l.memoizedProps,(n=null!==(n=n.compare)?n:zr)(a,r)&&e.ref===t.ref)?jl(e,t,i):(t.effectTag|=1,(e=yu(l,r)).ref=t.ref,e.return=t,t.child=e)}function Ml(e,t,n,r,a,i){return null!==e&&zr(e.memoizedProps,r)&&e.ref===t.ref&&(Tl=!1,a<i)?(t.expirationTime=e.expirationTime,jl(e,t,i)):Al(e,t,n,r,i)}function Pl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Al(e,t,n,r,a){var i=ca(n)?ua:la.current;return i=sa(t,i),Ga(t,a),n=Hi(e,t,n,r,i,a),null===e||Tl?(t.effectTag|=1,El(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),jl(e,t,a))}function Nl(e,t,n,r,a){if(ca(n)){var i=!0;pa(t)}else i=!1;if(Ga(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),di(t,n,r),pi(t,n,r,a),r=!0;else if(null===e){var l=t.stateNode,o=t.memoizedProps;l.props=o;var u=l.context,s=n.contextType;s="object"==typeof s&&null!==s?Za(s):sa(t,s=ca(n)?ua:la.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof l.getSnapshotBeforeUpdate;f||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(o!==r||u!==s)&&hi(t,l,r,s),Ja=!1;var d=t.memoizedState;l.state=d,ii(t,r,l,a),u=t.memoizedState,o!==r||d!==u||oa.current||Ja?("function"==typeof c&&(si(t,n,c,r),u=t.memoizedState),(o=Ja||fi(t,n,o,r,d,u,s))?(f||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||("function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"==typeof l.componentDidMount&&(t.effectTag|=4)):("function"==typeof l.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=s,r=o):("function"==typeof l.componentDidMount&&(t.effectTag|=4),r=!1)}else l=t.stateNode,ti(e,t),o=t.memoizedProps,l.props=t.type===t.elementType?o:ja(t.type,o),u=l.context,s="object"==typeof(s=n.contextType)&&null!==s?Za(s):sa(t,s=ca(n)?ua:la.current),(f="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(o!==r||u!==s)&&hi(t,l,r,s),Ja=!1,u=t.memoizedState,l.state=u,ii(t,r,l,a),d=t.memoizedState,o!==r||u!==d||oa.current||Ja?("function"==typeof c&&(si(t,n,c,r),d=t.memoizedState),(c=Ja||fi(t,n,o,r,u,d,s))?(f||"function"!=typeof l.UNSAFE_componentWillUpdate&&"function"!=typeof l.componentWillUpdate||("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(r,d,s),"function"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(r,d,s)),"function"==typeof l.componentDidUpdate&&(t.effectTag|=4),"function"==typeof l.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof l.componentDidUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof l.getSnapshotBeforeUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),l.props=r,l.state=d,l.context=s,r=c):("function"!=typeof l.componentDidUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof l.getSnapshotBeforeUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Ol(e,t,n,r,i,a)}function Ol(e,t,n,r,a,i){Pl(e,t);var l=0!=(64&t.effectTag);if(!r&&!l)return a&&ga(t,n,!1),jl(e,t,i);r=t.stateNode,kl.current=t;var o=l&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&l?(t.child=bi(t,e.child,null,i),t.child=bi(t,null,o,i)):El(e,t,o,i),t.memoizedState=r.state,a&&ga(t,n,!0),t.child}function Rl(e){var t=e.stateNode;t.pendingContext?da(0,t.pendingContext,t.pendingContext!==t.context):t.context&&da(0,t.context,!1),Ci(e,t.containerInfo)}var zl,Ll,Dl,Fl,Il={dehydrated:null,retryTime:0};function Ul(e,t,n){var r,a=t.mode,i=t.pendingProps,l=Ai.current,o=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&l)&&(null===e||null!==e.memoizedState)),r?(o=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(l|=1),aa(Ai,1&l),null===e){if(void 0!==i.fallback&&bl(t),o){if(o=i.fallback,(i=_u(null,a,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=_u(o,a,n,null)).return=t,i.sibling=n,t.memoizedState=Il,t.child=i,n}return a=i.children,t.memoizedState=null,t.child=_i(t,null,a,n)}if(null!==e.memoizedState){if(a=(e=e.child).sibling,o){if(i=i.fallback,(n=yu(e,e.pendingProps)).return=t,0==(2&t.mode)&&(o=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=o;null!==o;)o.return=n,o=o.sibling;return(a=yu(a,i)).return=t,n.sibling=a,n.childExpirationTime=0,t.memoizedState=Il,t.child=n,a}return n=bi(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,o){if(o=i.fallback,(i=_u(null,a,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=_u(o,a,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Il,t.child=i,n}return t.memoizedState=null,t.child=bi(t,e,i.children,n)}function $l(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),Ka(e.return,t)}function Bl(e,t,n,r,a,i){var l=e.memoizedState;null===l?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:a,lastEffect:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailExpiration=0,l.tailMode=a,l.lastEffect=i)}function Hl(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(El(e,t,r.children,n),0!=(2&(r=Ai.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$l(e,n);else if(19===e.tag)$l(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(aa(Ai,r),0==(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Ni(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Bl(t,!1,a,n,i,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Ni(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Bl(t,!0,n,null,i,t.lastEffect);break;case"together":Bl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function jl(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&tu(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(l(153));if(null!==t.child){for(n=yu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=yu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vl(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ca(t.type)&&fa(),null;case 3:return Si(),ra(oa),ra(la),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!wl(t)||(t.effectTag|=4),Ll(t),null;case 5:Pi(t),n=Ei(Ti.current);var i=t.type;if(null!==e&&null!=t.stateNode)Dl(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(l(166));return null}if(e=Ei(xi.current),wl(t)){r=t.stateNode,i=t.type;var o=t.memoizedProps;switch(r[bn]=t,r[_n]=o,i){case"iframe":case"object":case"embed":Vt("load",r);break;case"video":case"audio":for(e=0;e<Ye.length;e++)Vt(Ye[e],r);break;case"source":Vt("error",r);break;case"img":case"image":case"link":Vt("error",r),Vt("load",r);break;case"form":Vt("reset",r),Vt("submit",r);break;case"details":Vt("toggle",r);break;case"input":xe(r,o),Vt("invalid",r),nn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Vt("invalid",r),nn(n,"onChange");break;case"textarea":Ae(r,o),Vt("invalid",r),nn(n,"onChange")}for(var u in Jt(i,o),e=null,o)if(o.hasOwnProperty(u)){var s=o[u];"children"===u?"string"==typeof s?r.textContent!==s&&(e=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(e=["children",""+s]):k.hasOwnProperty(u)&&null!=s&&nn(n,u)}switch(i){case"input":be(r),Ee(r,o,!0);break;case"textarea":be(r),Oe(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=rn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,e===tn&&(e=Re(i)),e===tn?"script"===i?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(i,{is:r.is}):(e=u.createElement(i),"select"===i&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,i),e[bn]=t,e[_n]=r,zl(e,t,!1,!1),t.stateNode=e,u=en(i,r),i){case"iframe":case"object":case"embed":Vt("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ye.length;s++)Vt(Ye[s],e);s=r;break;case"source":Vt("error",e),s=r;break;case"img":case"image":case"link":Vt("error",e),Vt("load",e),s=r;break;case"form":Vt("reset",e),Vt("submit",e),s=r;break;case"details":Vt("toggle",e),s=r;break;case"input":xe(e,r),s=we(e,r),Vt("invalid",e),nn(n,"onChange");break;case"option":s=Se(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=a({},r,{value:void 0}),Vt("invalid",e),nn(n,"onChange");break;case"textarea":Ae(e,r),s=Pe(e,r),Vt("invalid",e),nn(n,"onChange");break;default:s=r}Jt(i,s);var c=s;for(o in c)if(c.hasOwnProperty(o)){var f=c[o];"style"===o?Gt(e,f):"dangerouslySetInnerHTML"===o?null!=(f=f?f.__html:void 0)&&De(e,f):"children"===o?"string"==typeof f?("textarea"!==i||""!==f)&&Fe(e,f):"number"==typeof f&&Fe(e,""+f):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(k.hasOwnProperty(o)?null!=f&&nn(n,o):null!=f&&K(e,o,f,u))}switch(i){case"input":be(e),Ee(e,r,!1);break;case"textarea":be(e),Oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+me(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Me(e,!!r.multiple,n,!1):null!=r.defaultValue&&Me(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof s.onClick&&(e.onclick=rn)}dn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Fl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(l(166));n=Ei(Ti.current),Ei(xi.current),wl(t)?(n=t.stateNode,r=t.memoizedProps,n[bn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[bn]=t,t.stateNode=n)}return null;case 13:return ra(Ai),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&wl(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(o=t.firstEffect)?(t.firstEffect=i,i.nextEffect=o):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ai.current)?ko===vo&&(ko=mo):(ko!==vo&&ko!==mo||(ko=yo),0!==Mo&&null!==_o&&(Tu(_o,xo),Eu(_o,Mo)))),(n||r)&&(t.effectTag|=4),null);case 4:return Si(),Ll(t),null;case 10:return Xa(t),null;case 17:return ca(t.type)&&fa(),null;case 19:if(ra(Ai),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(o=r.rendering)){if(i)Vl(r,!1);else if(ko!==vo||null!==e&&0!=(64&e.effectTag))for(o=t.child;null!==o;){if(null!==(e=Ni(o))){for(t.effectTag|=64,Vl(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)o=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=o,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,o=e.dependencies,i.dependencies=null===o?null:{expirationTime:o.expirationTime,firstContext:o.firstContext,responders:o.responders}),r=r.sibling;return aa(Ai,1&Ai.current|2),t.child}o=o.sibling}}else{if(!i)if(null!==(e=Ni(o))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Vl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*za()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,Vl(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(n=r.last)?n.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=za()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=za(),n.sibling=null,t=Ai.current,aa(Ai,i?1&t|2:1&t),n):null}throw Error(l(156,t.tag))}function ql(e){switch(e.tag){case 1:ca(e.type)&&fa();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Si(),ra(oa),ra(la),0!=(64&(t=e.effectTag)))throw Error(l(285));return e.effectTag=-4097&t|64,e;case 5:return Pi(e),null;case 13:return ra(Ai),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ra(Ai),null;case 4:return Si(),null;case 10:return Xa(e),null;default:return null}}function Yl(e,t){return{value:e,source:t,stack:ve(t)}}zl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ll=function(){},Dl=function(e,t,n,r,i){var l=e.memoizedProps;if(l!==r){var o,u,s=t.stateNode;switch(Ei(xi.current),e=null,n){case"input":l=we(s,l),r=we(s,r),e=[];break;case"option":l=Se(s,l),r=Se(s,r),e=[];break;case"select":l=a({},l,{value:void 0}),r=a({},r,{value:void 0}),e=[];break;case"textarea":l=Pe(s,l),r=Pe(s,r),e=[];break;default:"function"!=typeof l.onClick&&"function"==typeof r.onClick&&(s.onclick=rn)}for(o in Jt(n,r),n=null,l)if(!r.hasOwnProperty(o)&&l.hasOwnProperty(o)&&null!=l[o])if("style"===o)for(u in s=l[o])s.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==o&&"children"!==o&&"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(k.hasOwnProperty(o)?e||(e=[]):(e=e||[]).push(o,null));for(o in r){var c=r[o];if(s=null!=l?l[o]:void 0,r.hasOwnProperty(o)&&c!==s&&(null!=c||null!=s))if("style"===o)if(s){for(u in s)!s.hasOwnProperty(u)||c&&c.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in c)c.hasOwnProperty(u)&&s[u]!==c[u]&&(n||(n={}),n[u]=c[u])}else n||(e||(e=[]),e.push(o,n)),n=c;else"dangerouslySetInnerHTML"===o?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(e=e||[]).push(o,c)):"children"===o?s===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(o,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&(k.hasOwnProperty(o)?(null!=c&&nn(i,o),e||s===c||(e=[])):(e=e||[]).push(o,c))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Fl=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Ql="function"==typeof WeakSet?WeakSet:Set;function Xl(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&ge(n.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function Kl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){du(e,t)}else t.current=null}function Gl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:ja(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(l(163))}function Zl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Jl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function eo(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void Jl(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:ja(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&li(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}li(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&dn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Rt(n)))));case 19:case 17:case 20:case 21:return}throw Error(l(163))}function to(e,t,n){switch("function"==typeof gu&&gu(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Fa(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var a=t;try{n()}catch(e){du(a,e)}}e=e.next}while(e!==r)}))}break;case 1:Kl(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){du(e,t)}}(t,n);break;case 5:Kl(t);break;case 4:io(e,t,n)}}function no(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&no(t)}function ro(e){return 5===e.tag||3===e.tag||4===e.tag}function ao(e){e:{for(var t=e.return;null!==t;){if(ro(t)){var n=t;break e}t=t.return}throw Error(l(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.effectTag&&(Fe(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ro(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var a=t.tag,i=5===a||6===a;if(i)t=i?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!=(r=r._reactRootContainer)||null!==n.onclick||(n.onclick=rn));else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var a=t.tag,i=5===a||6===a;if(i)t=i?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function io(e,t,n){for(var r,a,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(r=o.stateNode,o.tag){case 5:a=!1;break e;case 3:case 4:r=r.containerInfo,a=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var u=e,s=i,c=n,f=s;;)if(to(u,f,c),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===s)break e;for(;null===f.sibling;){if(null===f.return||f.return===s)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}a?(u=r,s=i.stateNode,8===u.nodeType?u.parentNode.removeChild(s):u.removeChild(s)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,a=!0,i.child.return=i,i=i.child;continue}}else if(to(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function lo(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Zl(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,a=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[_n]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ke(n,r),en(e,a),t=en(e,r),a=0;a<i.length;a+=2){var o=i[a],u=i[a+1];"style"===o?Gt(n,u):"dangerouslySetInnerHTML"===o?De(n,u):"children"===o?Fe(n,u):K(n,o,u,t)}switch(e){case"input":Te(n,r);break;case"textarea":Ne(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Me(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Me(n,!!r.multiple,r.defaultValue,!0):Me(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(l(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Rt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ao=za()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,a=void 0!==(a=e.memoizedProps.style)&&null!==a&&a.hasOwnProperty("display")?a.display:null,i.style.display=Kt("display",a));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void oo(t);case 19:return void oo(t);case 17:return}throw Error(l(163))}function oo(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach((function(t){var r=function(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=jo(t=Ho(),e,null)),null!==(e=Wo(e,t))&&Yo(e)}.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var uo="function"==typeof WeakMap?WeakMap:Map;function so(e,t,n){(n=ni(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Oo||(Oo=!0,Ro=r),Xl(e,t)},n}function co(e,t,n){(n=ni(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return Xl(e,t),r(a)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===zo?zo=new Set([this]):zo.add(this),Xl(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var fo,ho=Math.ceil,po=X.ReactCurrentDispatcher,go=X.ReactCurrentOwner,vo=0,mo=3,yo=4,bo=0,_o=null,wo=null,xo=0,ko=vo,To=null,Eo=1073741823,Co=1073741823,So=null,Mo=0,Po=!1,Ao=0,No=null,Oo=!1,Ro=null,zo=null,Lo=!1,Do=null,Fo=90,Io=null,Uo=0,$o=null,Bo=0;function Ho(){return 0!=(48&bo)?1073741821-(za()/10|0):0!==Bo?Bo:Bo=1073741821-(za()/10|0)}function jo(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=La();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&bo))return xo;if(null!==n)e=Ha(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Ha(e,150,100);break;case 97:case 96:e=Ha(e,5e3,250);break;case 95:e=2;break;default:throw Error(l(326))}return null!==_o&&e===xo&&--e,e}function Vo(e,t){if(50<Uo)throw Uo=0,$o=null,Error(l(185));if(null!==(e=Wo(e,t))){var n=La();1073741823===t?0!=(8&bo)&&0==(48&bo)?Qo(e):(Yo(e),0===bo&&$a()):Yo(e),0==(4&bo)||98!==n&&99!==n||(null===Io?Io=new Map([[e,t]]):(void 0===(n=Io.get(e))||n>t)&&Io.set(e,t))}}function Wo(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,a=null;if(null===r&&3===e.tag)a=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){a=r.stateNode;break}r=r.return}return null!==a&&(_o===a&&(tu(t),ko===yo&&Tu(a,xo)),Eu(a,t)),a}function qo(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!ku(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Yo(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Ua(Qo.bind(null,e));else{var t=qo(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Ho();if(r=1073741823===t?99:1===t||2===t?95:0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var a=e.callbackPriority;if(e.callbackExpirationTime===t&&a>=r)return;n!==Sa&&ya(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Ua(Qo.bind(null,e)):Ia(r,function e(t,n){if(Bo=0,n)return Cu(t,n=Ho()),Yo(t),null;var r=qo(t);if(0!==r){if(n=t.callbackNode,0!=(48&bo))throw Error(l(327));if(su(),t===_o&&r===xo||Go(t,r),null!==wo){var a=bo;bo|=16;for(var i=Jo();;)try{ru();break}catch(e){Zo(t,e)}if(Qa(),bo=a,po.current=i,1===ko)throw n=To,Go(t,r),Tu(t,r),Yo(t),n;if(null===wo)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=r,a=ko,_o=null,a){case vo:case 1:throw Error(l(345));case 2:Cu(t,2<r?2:r);break;case mo:if(Tu(t,r),r===(a=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=lu(i)),1073741823===Eo&&10<(i=Ao+500-za())){if(Po){var o=t.lastPingedTime;if(0===o||o>=r){t.lastPingedTime=r,Go(t,r);break}}if(0!==(o=qo(t))&&o!==r)break;if(0!==a&&a!==r){t.lastPingedTime=a;break}t.timeoutHandle=pn(ou.bind(null,t),i);break}ou(t);break;case yo:if(Tu(t,r),r===(a=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=lu(i)),Po&&(0===(i=t.lastPingedTime)||i>=r)){t.lastPingedTime=r,Go(t,r);break}if(0!==(i=qo(t))&&i!==r)break;if(0!==a&&a!==r){t.lastPingedTime=a;break}if(1073741823!==Co?a=10*(1073741821-Co)-za():1073741823===Eo?a=0:(a=10*(1073741821-Eo)-5e3,0>(a=(i=za())-a)&&(a=0),(r=10*(1073741821-r)-i)<(a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*ho(a/1960))-a)&&(a=r)),10<a){t.timeoutHandle=pn(ou.bind(null,t),a);break}ou(t);break;case 5:if(1073741823!==Eo&&null!==So){o=Eo;var u=So;if(0>=(a=0|u.busyMinDurationMs)?a=0:(i=0|u.busyDelayMs,a=(o=za()-(10*(1073741821-o)-(0|u.timeoutMs||5e3)))<=i?0:i+a-o),10<a){Tu(t,r),t.timeoutHandle=pn(ou.bind(null,t),a);break}}ou(t);break;default:throw Error(l(329))}if(Yo(t),t.callbackNode===n)return e.bind(null,t)}}return null}.bind(null,e),{timeout:10*(1073741821-t)-za()}),e.callbackNode=t}}}function Qo(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&bo))throw Error(l(327));if(su(),e===_o&&t===xo||Go(e,t),null!==wo){var n=bo;bo|=16;for(var r=Jo();;)try{nu();break}catch(t){Zo(e,t)}if(Qa(),bo=n,po.current=r,1===ko)throw n=To,Go(e,t),Tu(e,t),Yo(e),n;if(null!==wo)throw Error(l(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,_o=null,ou(e),Yo(e)}return null}function Xo(e,t){var n=bo;bo|=1;try{return e(t)}finally{0===(bo=n)&&$a()}}function Ko(e,t){var n=bo;bo&=-2,bo|=8;try{return e(t)}finally{0===(bo=n)&&$a()}}function Go(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,gn(n)),null!==wo)for(n=wo.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&fa();break;case 3:Si(),ra(oa),ra(la);break;case 5:Pi(r);break;case 4:Si();break;case 13:case 19:ra(Ai);break;case 10:Xa(r)}n=n.return}_o=e,wo=yu(e.current,null),xo=t,ko=vo,To=null,Co=Eo=1073741823,So=null,Mo=0,Po=!1}function Zo(e,t){for(;;){try{if(Qa(),Ri.current=cl,Ui)for(var n=Di.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Li=0,Ii=Fi=Di=null,Ui=!1,null===wo||null===wo.return)return ko=1,To=t,wo=null;e:{var a=e,i=wo.return,l=wo,o=t;if(t=xo,l.effectTag|=2048,l.firstEffect=l.lastEffect=null,null!==o&&"object"==typeof o&&"function"==typeof o.then){var u=o;if(0==(2&l.mode)){var s=l.alternate;s?(l.updateQueue=s.updateQueue,l.memoizedState=s.memoizedState,l.expirationTime=s.expirationTime):(l.updateQueue=null,l.memoizedState=null)}var c=0!=(1&Ai.current),f=i;do{var d;if(d=13===f.tag){var h=f.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var p=f.memoizedProps;d=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!c)}}if(d){var g=f.updateQueue;if(null===g){var v=new Set;v.add(u),f.updateQueue=v}else g.add(u);if(0==(2&f.mode)){if(f.effectTag|=64,l.effectTag&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var m=ni(1073741823,null);m.tag=2,ri(l,m)}l.expirationTime=1073741823;break e}o=void 0,l=t;var y=a.pingCache;if(null===y?(y=a.pingCache=new uo,o=new Set,y.set(u,o)):void 0===(o=y.get(u))&&(o=new Set,y.set(u,o)),!o.has(l)){o.add(l);var b=hu.bind(null,a,u,l);u.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);o=Error((ge(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(l))}5!==ko&&(ko=2),o=Yl(o,l),f=i;do{switch(f.tag){case 3:u=o,f.effectTag|=4096,f.expirationTime=t,ai(f,so(f,u,t));break e;case 1:u=o;var _=f.type,w=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof _.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===zo||!zo.has(w)))){f.effectTag|=4096,f.expirationTime=t,ai(f,co(f,u,t));break e}}f=f.return}while(null!==f)}wo=iu(wo)}catch(e){t=e;continue}break}}function Jo(){var e=po.current;return po.current=cl,null===e?cl:e}function eu(e,t){e<Eo&&2<e&&(Eo=e),null!==t&&e<Co&&2<e&&(Co=e,So=t)}function tu(e){e>Mo&&(Mo=e)}function nu(){for(;null!==wo;)wo=au(wo)}function ru(){for(;null!==wo&&!Ma();)wo=au(wo)}function au(e){var t=fo(e.alternate,e,xo);return e.memoizedProps=e.pendingProps,null===t&&(t=iu(e)),go.current=null,t}function iu(e){wo=e;do{var t=wo.alternate;if(e=wo.return,0==(2048&wo.effectTag)){if(t=Wl(t,wo,xo),1===xo||1!==wo.childExpirationTime){for(var n=0,r=wo.child;null!==r;){var a=r.expirationTime,i=r.childExpirationTime;a>n&&(n=a),i>n&&(n=i),r=r.sibling}wo.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=wo.firstEffect),null!==wo.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=wo.firstEffect),e.lastEffect=wo.lastEffect),1<wo.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=wo:e.firstEffect=wo,e.lastEffect=wo))}else{if(null!==(t=ql(wo)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=wo.sibling))return t;wo=e}while(null!==wo);return ko===vo&&(ko=5),null}function lu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function ou(e){var t=La();return Fa(99,function(e,t){do{su()}while(null!==Do);if(0!=(48&bo))throw Error(l(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(l(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=lu(n);if(e.firstPendingTime=a,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===_o&&(wo=_o=null,xo=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,a=n.firstEffect):a=n:a=n.firstEffect,null!==a){var i=bo;bo|=32,go.current=null,cn=jt;var o=un();if(sn(o)){if("selectionStart"in o)var u={start:o.selectionStart,end:o.selectionEnd};else e:{var s=(u=(u=o.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(s&&0!==s.rangeCount){u=s.anchorNode;var c=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{u.nodeType,f.nodeType}catch(e){u=null;break e}var d=0,h=-1,p=-1,g=0,v=0,m=o,y=null;t:for(;;){for(var b;m!==u||0!==c&&3!==m.nodeType||(h=d+c),m!==f||0!==s&&3!==m.nodeType||(p=d+s),3===m.nodeType&&(d+=m.nodeValue.length),null!==(b=m.firstChild);)y=m,m=b;for(;;){if(m===o)break t;if(y===u&&++g===c&&(h=d),y===f&&++v===s&&(p=d),null!==(b=m.nextSibling))break;y=(m=y).parentNode}m=b}u=-1===h||-1===p?null:{start:h,end:p}}else u=null}u=u||{start:0,end:0}}else u=null;fn={activeElementDetached:null,focusedElem:o,selectionRange:u},jt=!1,No=a;do{try{uu()}catch(e){if(null===No)throw Error(l(330));du(No,e),No=No.nextEffect}}while(null!==No);No=a;do{try{for(o=e,u=t;null!==No;){var _=No.effectTag;if(16&_&&Fe(No.stateNode,""),128&_){var w=No.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&_){case 2:ao(No),No.effectTag&=-3;break;case 6:ao(No),No.effectTag&=-3,lo(No.alternate,No);break;case 1024:No.effectTag&=-1025;break;case 1028:No.effectTag&=-1025,lo(No.alternate,No);break;case 4:lo(No.alternate,No);break;case 8:io(o,c=No,u),no(c)}No=No.nextEffect}}catch(e){if(null===No)throw Error(l(330));du(No,e),No=No.nextEffect}}while(null!==No);if(x=fn,w=un(),_=x.focusedElem,u=x.selectionRange,w!==_&&_&&_.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(_.ownerDocument.documentElement,_)){null!==u&&sn(_)&&(w=u.start,void 0===(x=u.end)&&(x=w),"selectionStart"in _?(_.selectionStart=w,_.selectionEnd=Math.min(x,_.value.length)):(x=(w=_.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),c=_.textContent.length,o=Math.min(u.start,c),u=void 0===u.end?o:Math.min(u.end,c),!x.extend&&o>u&&(c=u,u=o,o=c),c=on(_,o),f=on(_,u),c&&f&&(1!==x.rangeCount||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&((w=w.createRange()).setStart(c.node,c.offset),x.removeAllRanges(),o>u?(x.addRange(w),x.extend(f.node,f.offset)):(w.setEnd(f.node,f.offset),x.addRange(w))))),w=[];for(x=_;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_<w.length;_++)(x=w[_]).element.scrollLeft=x.left,x.element.scrollTop=x.top}jt=!!cn,fn=cn=null,e.current=n,No=a;do{try{for(_=e;null!==No;){var k=No.effectTag;if(36&k&&eo(_,No.alternate,No),128&k){w=void 0;var T=No.ref;if(null!==T){var E=No.stateNode;switch(No.tag){case 5:w=E;break;default:w=E}"function"==typeof T?T(w):T.current=w}}No=No.nextEffect}}catch(e){if(null===No)throw Error(l(330));du(No,e),No=No.nextEffect}}while(null!==No);No=null,Pa(),bo=i}else e.current=n;if(Lo)Lo=!1,Do=e,Fo=t;else for(No=a;null!==No;)t=No.nextEffect,No.nextEffect=null,No=t;if(0===(t=e.firstPendingTime)&&(zo=null),1073741823===t?e===$o?Uo++:(Uo=0,$o=e):Uo=0,"function"==typeof pu&&pu(n.stateNode,r),Yo(e),Oo)throw Oo=!1,e=Ro,Ro=null,e;return 0!=(8&bo)||$a(),null}.bind(null,e,t)),null}function uu(){for(;null!==No;){var e=No.effectTag;0!=(256&e)&&Gl(No.alternate,No),0==(512&e)||Lo||(Lo=!0,Ia(97,(function(){return su(),null}))),No=No.nextEffect}}function su(){if(90!==Fo){var e=97<Fo?97:Fo;return Fo=90,Fa(e,cu)}}function cu(){if(null===Do)return!1;var e=Do;if(Do=null,0!=(48&bo))throw Error(l(331));var t=bo;for(bo|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:Zl(5,n),Jl(5,n)}}catch(t){if(null===e)throw Error(l(330));du(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return bo=t,$a(),!0}function fu(e,t,n){ri(e,t=so(e,t=Yl(n,t),1073741823)),null!==(e=Wo(e,1073741823))&&Yo(e)}function du(e,t){if(3===e.tag)fu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){fu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===zo||!zo.has(r))){ri(n,e=co(n,e=Yl(t,e),1073741823)),null!==(n=Wo(n,1073741823))&&Yo(n);break}}n=n.return}}function hu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),_o===e&&xo===n?ko===yo||ko===mo&&1073741823===Eo&&za()-Ao<500?Go(e,xo):Po=!0:ku(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Yo(e)))}fo=function(e,t,n){var r=t.expirationTime;if(null!==e){var a=t.pendingProps;if(e.memoizedProps!==a||oa.current)Tl=!0;else{if(r<n){switch(Tl=!1,t.tag){case 3:Rl(t),xl();break;case 5:if(Mi(t),4&t.mode&&1!==n&&a.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:ca(t.type)&&pa(t);break;case 4:Ci(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,a=t.type._context,aa(Va,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ul(e,t,n):(aa(Ai,1&Ai.current),null!==(t=jl(e,t,n))?t.sibling:null);aa(Ai,1&Ai.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Hl(e,t,n);t.effectTag|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null),aa(Ai,Ai.current),!r)return null}return jl(e,t,n)}Tl=!1}}else Tl=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=sa(t,la.current),Ga(t,n),a=Hi(null,t,r,e,a,n),t.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ca(r)){var i=!0;pa(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,ei(t);var o=r.getDerivedStateFromProps;"function"==typeof o&&si(t,r,o,e),a.updater=ci,t.stateNode=a,a._reactInternalFiber=t,pi(t,r,e,n),t=Ol(null,t,r,!0,i,n)}else t.tag=0,El(null,t,a,n),t=t.child;return t;case 16:e:{if(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a),1!==a._status)throw a._result;switch(a=a._result,t.type=a,i=t.tag=function(e){if("function"==typeof e)return mu(e)?1:0;if(null!=e){if((e=e.$$typeof)===oe)return 11;if(e===ce)return 14}return 2}(a),e=ja(a,e),i){case 0:t=Al(null,t,a,e,n);break e;case 1:t=Nl(null,t,a,e,n);break e;case 11:t=Cl(null,t,a,e,n);break e;case 14:t=Sl(null,t,a,ja(a.type,e),r,n);break e}throw Error(l(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Al(e,t,r,a=t.elementType===r?a:ja(r,a),n);case 1:return r=t.type,a=t.pendingProps,Nl(e,t,r,a=t.elementType===r?a:ja(r,a),n);case 3:if(Rl(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,ti(e,t),ii(t,r,null,n),(r=t.memoizedState.element)===a)xl(),t=jl(e,t,n);else{if((a=t.stateNode.hydrate)&&(gl=vn(t.stateNode.containerInfo.firstChild),pl=t,a=vl=!0),a)for(n=_i(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else El(e,t,r,n),xl();t=t.child}return t;case 5:return Mi(t),null===e&&bl(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,o=a.children,hn(r,a)?o=null:null!==i&&hn(r,i)&&(t.effectTag|=16),Pl(e,t),4&t.mode&&1!==n&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(El(e,t,o,n),t=t.child),t;case 6:return null===e&&bl(t),null;case 13:return Ul(e,t,n);case 4:return Ci(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=bi(t,null,r,n):El(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Cl(e,t,r,a=t.elementType===r?a:ja(r,a),n);case 7:return El(e,t,t.pendingProps,n),t.child;case 8:case 12:return El(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value;var u=t.type._context;if(aa(Va,u._currentValue),u._currentValue=i,null!==o)if(u=o.value,0==(i=Or(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(o.children===a.children&&!oa.current){t=jl(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var s=u.dependencies;if(null!==s){o=u.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===u.tag&&((c=ni(n,null)).tag=2,ri(u,c)),u.expirationTime<n&&(u.expirationTime=n),null!==(c=u.alternate)&&c.expirationTime<n&&(c.expirationTime=n),Ka(u.return,n),s.expirationTime<n&&(s.expirationTime=n);break}c=c.next}}else o=10===u.tag&&u.type===t.type?null:u.child;if(null!==o)o.return=u;else for(o=u;null!==o;){if(o===t){o=null;break}if(null!==(u=o.sibling)){u.return=o.return,o=u;break}o=o.return}u=o}El(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(i=t.pendingProps).children,Ga(t,n),r=r(a=Za(a,i.unstable_observedBits)),t.effectTag|=1,El(e,t,r,n),t.child;case 14:return i=ja(a=t.type,t.pendingProps),Sl(e,t,a,i=ja(a.type,i),r,n);case 15:return Ml(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ja(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,ca(r)?(e=!0,pa(t)):e=!1,Ga(t,n),di(t,r,a),pi(t,r,a,n),Ol(null,t,r,!0,e,n);case 19:return Hl(e,t,n)}throw Error(l(156,t.tag))};var pu=null,gu=null;function vu(e,t,n,r){return new function(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}(e,t,n,r)}function mu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function yu(e,t){var n=e.alternate;return null===n?((n=vu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bu(e,t,n,r,a,i){var o=2;if(r=e,"function"==typeof e)mu(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case te:return _u(n.children,a,i,t);case le:o=8,a|=7;break;case ne:o=8,a|=1;break;case re:return(e=vu(12,n,t,8|a)).elementType=re,e.type=re,e.expirationTime=i,e;case ue:return(e=vu(13,n,t,a)).type=ue,e.elementType=ue,e.expirationTime=i,e;case se:return(e=vu(19,n,t,a)).elementType=se,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ae:o=10;break e;case ie:o=9;break e;case oe:o=11;break e;case ce:o=14;break e;case fe:o=16,r=null;break e;case de:o=22;break e}throw Error(l(130,null==e?e:typeof e,""))}return(t=vu(o,n,t,a)).elementType=e,t.type=r,t.expirationTime=i,t}function _u(e,t,n,r){return(e=vu(7,e,r,t)).expirationTime=n,e}function wu(e,t,n){return(e=vu(6,e,null,t)).expirationTime=n,e}function xu(e,t,n){return(t=vu(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ku(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Tu(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Eu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Cu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Su(e,t,n,r){var a=t.current,i=Ho(),o=oi.suspense;i=jo(i,a,o);e:if(n){t:{if(Ke(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(l(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(ca(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(l(171))}if(1===n.tag){var s=n.type;if(ca(s)){n=ha(n,s,u);break e}}n=u}else n=ia;return null===t.context?t.context=n:t.pendingContext=n,(t=ni(i,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ri(a,t),Vo(a,i),i}function Mu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Pu(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Au(e,t){Pu(e,t),(e=e.alternate)&&Pu(e,t)}function Nu(e,t,n){var r=new function(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}(e,t,n=null!=n&&!0===n.hydrate),a=vu(3,null,null,2===t?7:1===t?3:0);r.current=a,a.stateNode=r,ei(a),e[wn]=r.current,n&&0!==t&&function(e,t){var n=Xe(t);kt.forEach((function(e){ft(e,t,n)})),Tt.forEach((function(e){ft(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Ou(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ru(e,t,n,r,a){var i=n._reactRootContainer;if(i){var l=i._internalRoot;if("function"==typeof a){var o=a;a=function(){var e=Mu(l);o.call(e)}}Su(t,l,e,a)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Nu(e,0,t?{hydrate:!0}:void 0)}(n,r),l=i._internalRoot,"function"==typeof a){var u=a;a=function(){var e=Mu(l);u.call(e)}}Ko((function(){Su(t,l,e,a)}))}return Mu(l)}function zu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ou(t))throw Error(l(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ee,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Nu.prototype.render=function(e){Su(e,this._internalRoot,null,null)},Nu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Su(null,e,null,(function(){t[wn]=null}))},dt=function(e){if(13===e.tag){var t=Ha(Ho(),150,100);Vo(e,t),Au(e,t)}},ht=function(e){13===e.tag&&(Vo(e,3),Au(e,3))},pt=function(e){if(13===e.tag){var t=Ho();Vo(e,t=jo(t,e,null)),Au(e,t)}},S=function(e,t,n){switch(t){case"input":if(Te(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=En(r);if(!a)throw Error(l(90));_e(r),Te(r,a)}}}break;case"textarea":Ne(e,n);break;case"select":null!=(t=n.value)&&Me(e,!!n.multiple,t,!1)}},R=Xo,z=function(e,t,n,r,a){var i=bo;bo|=4;try{return Fa(98,e.bind(null,t,n,r,a))}finally{0===(bo=i)&&$a()}},L=function(){0==(49&bo)&&(function(){if(null!==Io){var e=Io;Io=null,e.forEach((function(e,t){Cu(t,e),Yo(t)})),$a()}}(),su())},D=function(e,t){var n=bo;bo|=2;try{return e(t)}finally{0===(bo=n)&&$a()}};var Lu={Events:[kn,Tn,En,E,x,On,function(e){tt(e,Nn)},N,O,qt,at,su,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);pu=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},gu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(a({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:xn,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lu,t.createPortal=zu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(l(188));throw Error(l(268,Object.keys(e)))}return null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&bo))throw Error(l(187));var n=bo;bo|=1;try{return Fa(99,e.bind(null,t))}finally{bo=n,$a()}},t.hydrate=function(e,t,n){if(!Ou(t))throw Error(l(200));return Ru(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ou(t))throw Error(l(200));return Ru(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ou(e))throw Error(l(40));return!!e._reactRootContainer&&(Ko((function(){Ru(null,null,e,!1,(function(){e._reactRootContainer=null,e[wn]=null}))})),!0)},t.unstable_batchedUpdates=Xo,t.unstable_createPortal=function(e,t){return zu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ou(n))throw Error(l(200));if(null==e||void 0===e._reactInternalFiber)throw Error(l(38));return Ru(e,t,n,!1,r)},t.version="16.13.1"},65:function(e,t,n){"use strict";e.exports=n(66)},66:function(e,t,n){"use strict";
/** @license React v0.19.1
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r,a,i,l,o;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,s=null,c=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(c,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(c,0))},a=function(e,t){s=setTimeout(e,t)},i=function(){clearTimeout(s)},l=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,h=window.Date,p=window.setTimeout,g=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var m=h.now();t.unstable_now=function(){return h.now()-m}}var y=!1,b=null,_=-1,w=5,x=0;l=function(){return t.unstable_now()>=x},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,T=k.port2;k.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();x=e+w;try{b(!0,e)?T.postMessage(null):(y=!1,b=null)}catch(e){throw T.postMessage(null),e}}else y=!1},r=function(e){b=e,y||(y=!0,T.postMessage(null))},a=function(e,n){_=p((function(){e(t.unstable_now())}),n)},i=function(){g(_),_=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<M(a,t)))break e;e[r]=t,e[n]=a,n=r}}function C(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var i=2*(r+1)-1,l=e[i],o=i+1,u=e[o];if(void 0!==l&&0>M(l,n))void 0!==u&&0>M(u,l)?(e[r]=u,e[o]=n,r=o):(e[r]=l,e[i]=n,r=i);else{if(!(void 0!==u&&0>M(u,n)))break e;e[r]=u,e[o]=n,r=o}}}return t}return null}function M(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],A=[],N=1,O=null,R=3,z=!1,L=!1,D=!1;function F(e){for(var t=C(A);null!==t;){if(null===t.callback)S(A);else{if(!(t.startTime<=e))break;S(A),t.sortIndex=t.expirationTime,E(P,t)}t=C(A)}}function I(e){if(D=!1,F(e),!L)if(null!==C(P))L=!0,r(U);else{var t=C(A);null!==t&&a(I,t.startTime-e)}}function U(e,n){L=!1,D&&(D=!1,i()),z=!0;var r=R;try{for(F(n),O=C(P);null!==O&&(!(O.expirationTime>n)||e&&!l());){var o=O.callback;if(null!==o){O.callback=null,R=O.priorityLevel;var u=o(O.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?O.callback=u:O===C(P)&&S(P),F(n)}else S(P);O=C(P)}if(null!==O)var s=!0;else{var c=C(A);null!==c&&a(I,c.startTime-n),s=!1}return s}finally{O=null,R=r,z=!1}}function $(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){L||z||(L=!0,r(U))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return C(P)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,l){var o=t.unstable_now();if("object"==typeof l&&null!==l){var u=l.delay;u="number"==typeof u&&0<u?o+u:o,l="number"==typeof l.timeout?l.timeout:$(e)}else l=$(e),u=o;return e={id:N++,callback:n,priorityLevel:e,startTime:u,expirationTime:l=u+l,sortIndex:-1},u>o?(e.sortIndex=u,E(A,e),null===C(P)&&e===C(A)&&(D?i():D=!0,a(I,u-o))):(e.sortIndex=l,E(P,e),L||z||(L=!0,r(U))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();F(e);var n=C(P);return n!==O&&null!==O&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<O.expirationTime||l()},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},67:function(e,t,n){"use strict";n.r(t);var r=n(1),a=n.n(r),i=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},l=function(e){return 1===e.length&&(e=function(e){return function(t,n){return i(e(t),n)}}(e)),{left:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);r<a;){var i=r+a>>>1;e(t[i],n)<0?r=i+1:a=i}return r},right:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);r<a;){var i=r+a>>>1;e(t[i],n)>0?a=i:r=i+1}return r}}}(i);l.right,l.left;var o=Array.prototype,u=(o.slice,o.map,function(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(a);++r<a;)i[r]=e+r*n;return i});Math.sqrt(50),Math.sqrt(10),Math.sqrt(2),Array.prototype.slice;var s={value:function(){}};function c(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new f(r)}function f(e){this._=e}function d(e,t){for(var n,r=0,a=e.length;r<a;++r)if((n=e[r]).name===t)return n.value}function h(e,t,n){for(var r=0,a=e.length;r<a;++r)if(e[r].name===t){e[r]=s,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}f.prototype=c.prototype={constructor:f,on:function(e,t){var n,r=this._,a=function(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}(e+"",r),i=-1,l=a.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++i<l;)if(n=(e=a[i]).type)r[n]=h(r[n],e.name,t);else if(null==t)for(n in r)r[n]=h(r[n],e.name,null);return this}for(;++i<l;)if((n=(e=a[i]).type)&&(n=d(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new f(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,a=new Array(n),i=0;i<n;++i)a[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=0,n=(r=this._[e]).length;i<n;++i)r[i].value.apply(t,a)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],a=0,i=r.length;a<i;++a)r[a].value.apply(t,n)}};var p=c;function g(){}var v=function(e){return null==e?g:function(){return this.querySelector(e)}};function m(){return[]}var y=function(e){return null==e?m:function(){return this.querySelectorAll(e)}},b=function(e){return function(){return this.matches(e)}},_=function(e){return new Array(e.length)};function w(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}w.prototype={constructor:w,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function x(e,t,n,r,a,i){for(var l,o=0,u=t.length,s=i.length;o<s;++o)(l=t[o])?(l.__data__=i[o],r[o]=l):n[o]=new w(e,i[o]);for(;o<u;++o)(l=t[o])&&(a[o]=l)}function k(e,t,n,r,a,i,l){var o,u,s,c={},f=t.length,d=i.length,h=new Array(f);for(o=0;o<f;++o)(u=t[o])&&(h[o]=s="$"+l.call(u,u.__data__,o,t),s in c?a[o]=u:c[s]=u);for(o=0;o<d;++o)(u=c[s="$"+l.call(e,i[o],o,i)])?(r[o]=u,u.__data__=i[o],c[s]=null):n[o]=new w(e,i[o]);for(o=0;o<f;++o)(u=t[o])&&c[h[o]]===u&&(a[o]=u)}function T(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var E="http://www.w3.org/1999/xhtml",C={svg:"http://www.w3.org/2000/svg",xhtml:E,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},S=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),C.hasOwnProperty(t)?{space:C[t],local:e}:e},M=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function P(e,t){return e.style.getPropertyValue(t)||M(e).getComputedStyle(e,null).getPropertyValue(t)}function A(e){return e.trim().split(/^|\s+/)}function N(e){return e.classList||new O(e)}function O(e){this._node=e,this._names=A(e.getAttribute("class")||"")}function R(e,t){for(var n=N(e),r=-1,a=t.length;++r<a;)n.add(t[r])}function z(e,t){for(var n=N(e),r=-1,a=t.length;++r<a;)n.remove(t[r])}function L(){this.textContent=""}function D(){this.innerHTML=""}function F(){this.nextSibling&&this.parentNode.appendChild(this)}function I(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}O.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var U=function(e){var t=S(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===E&&t.documentElement.namespaceURI===E?t.createElement(e):t.createElementNS(n,e)}})(t)};function $(){return null}function B(){var e=this.parentNode;e&&e.removeChild(this)}function H(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function j(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}var V={},W=null;function q(e,t,n){return e=Y(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Y(e,t,n){return function(r){var a=W;W=r;try{e.call(this,this.__data__,t,n)}finally{W=a}}}function Q(e){return function(){var t=this.__on;if(t){for(var n,r=0,a=-1,i=t.length;r<i;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++a]=n:this.removeEventListener(n.type,n.listener,n.capture);++a?t.length=a:delete this.__on}}}function X(e,t,n){var r=V.hasOwnProperty(e.type)?q:Y;return function(a,i,l){var o,u=this.__on,s=r(t,i,l);if(u)for(var c=0,f=u.length;c<f;++c)if((o=u[c]).type===e.type&&o.name===e.name)return this.removeEventListener(o.type,o.listener,o.capture),this.addEventListener(o.type,o.listener=s,o.capture=n),void(o.value=t);this.addEventListener(e.type,s,n),o={type:e.type,name:e.name,value:t,listener:s,capture:n},u?u.push(o):this.__on=[o]}}function K(e,t,n){var r=M(e),a=r.CustomEvent;"function"==typeof a?a=new a(t,n):(a=r.document.createEvent("Event"),n?(a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(V={mouseenter:"mouseover",mouseleave:"mouseout"}));var G=[null];function Z(e,t){this._groups=e,this._parents=t}function J(){return new Z([[document.documentElement]],G)}Z.prototype=J.prototype={constructor:Z,select:function(e){"function"!=typeof e&&(e=v(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i,l,o=t[a],u=o.length,s=r[a]=new Array(u),c=0;c<u;++c)(i=o[c])&&(l=e.call(i,i.__data__,c,o))&&("__data__"in i&&(l.__data__=i.__data__),s[c]=l);return new Z(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=y(e));for(var t=this._groups,n=t.length,r=[],a=[],i=0;i<n;++i)for(var l,o=t[i],u=o.length,s=0;s<u;++s)(l=o[s])&&(r.push(e.call(l,l.__data__,s,o)),a.push(l));return new Z(r,a)},filter:function(e){"function"!=typeof e&&(e=b(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i,l=t[a],o=l.length,u=r[a]=[],s=0;s<o;++s)(i=l[s])&&e.call(i,i.__data__,s,l)&&u.push(i);return new Z(r,this._parents)},data:function(e,t){if(!e)return h=new Array(this.size()),s=-1,this.each((function(e){h[++s]=e})),h;var n=t?k:x,r=this._parents,a=this._groups;"function"!=typeof e&&(e=function(e){return function(){return e}}(e));for(var i=a.length,l=new Array(i),o=new Array(i),u=new Array(i),s=0;s<i;++s){var c=r[s],f=a[s],d=f.length,h=e.call(c,c&&c.__data__,s,r),p=h.length,g=o[s]=new Array(p),v=l[s]=new Array(p);n(c,f,g,v,u[s]=new Array(d),h,t);for(var m,y,b=0,_=0;b<p;++b)if(m=g[b]){for(b>=_&&(_=b+1);!(y=v[_])&&++_<p;);m._next=y||null}}return(l=new Z(l,r))._enter=o,l._exit=u,l},enter:function(){return new Z(this._enter||this._groups.map(_),this._parents)},exit:function(){return new Z(this._exit||this._groups.map(_),this._parents)},join:function(e,t,n){var r=this.enter(),a=this,i=this.exit();return r="function"==typeof e?e(r):r.append(e+""),null!=t&&(a=t(a)),null==n?i.remove():n(i),r&&a?r.merge(a).order():a},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,a=n.length,i=Math.min(r,a),l=new Array(r),o=0;o<i;++o)for(var u,s=t[o],c=n[o],f=s.length,d=l[o]=new Array(f),h=0;h<f;++h)(u=s[h]||c[h])&&(d[h]=u);for(;o<r;++o)l[o]=t[o];return new Z(l,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,a=e[t],i=a.length-1,l=a[i];--i>=0;)(r=a[i])&&(l&&4^r.compareDocumentPosition(l)&&l.parentNode.insertBefore(r,l),l=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=T);for(var n=this._groups,r=n.length,a=new Array(r),i=0;i<r;++i){for(var l,o=n[i],u=o.length,s=a[i]=new Array(u),c=0;c<u;++c)(l=o[c])&&(s[c]=l);s.sort(t)}return new Z(a,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,i=r.length;a<i;++a){var l=r[a];if(l)return l}return null},size:function(){var e=0;return this.each((function(){++e})),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var a,i=t[n],l=0,o=i.length;l<o;++l)(a=i[l])&&e.call(a,a.__data__,l,i);return this},attr:function(e,t){var n=S(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):P(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=A(e+"");if(arguments.length<2){for(var r=N(this.node()),a=-1,i=n.length;++a<i;)if(!r.contains(n[a]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?R:z)(this,e)}}:t?function(e){return function(){R(this,e)}}:function(e){return function(){z(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?L:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?D:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(F)},lower:function(){return this.each(I)},append:function(e){var t="function"==typeof e?e:U(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:U(e),r=null==t?$:"function"==typeof t?t:v(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(B)},clone:function(e){return this.select(e?j:H)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,a,i=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),l=i.length;if(!(arguments.length<2)){for(o=t?X:Q,null==n&&(n=!1),r=0;r<l;++r)this.each(o(i[r],t,n));return this}var o=this.node().__on;if(o)for(var u,s=0,c=o.length;s<c;++s)for(r=0,u=o[s];r<l;++r)if((a=i[r]).type===u.type&&a.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return K(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return K(this,e,t)}})(e,t))}};var ee=J,te=function(e){return"string"==typeof e?new Z([[document.querySelector(e)]],[document.documentElement]):new Z([[e]],G)},ne=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function re(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ae(){}var ie="\\s*([+-]?\\d+)\\s*",le="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",oe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ue=/^#([0-9a-f]{3,8})$/,se=new RegExp("^rgb\\("+[ie,ie,ie]+"\\)$"),ce=new RegExp("^rgb\\("+[oe,oe,oe]+"\\)$"),fe=new RegExp("^rgba\\("+[ie,ie,ie,le]+"\\)$"),de=new RegExp("^rgba\\("+[oe,oe,oe,le]+"\\)$"),he=new RegExp("^hsl\\("+[le,oe,oe]+"\\)$"),pe=new RegExp("^hsla\\("+[le,oe,oe,le]+"\\)$"),ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ve(){return this.rgb().formatHex()}function me(){return this.rgb().formatRgb()}function ye(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ue.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?be(t):3===n?new xe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?_e(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?_e(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=se.exec(e))?new xe(t[1],t[2],t[3],1):(t=ce.exec(e))?new xe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=fe.exec(e))?_e(t[1],t[2],t[3],t[4]):(t=de.exec(e))?_e(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=he.exec(e))?Ce(t[1],t[2]/100,t[3]/100,1):(t=pe.exec(e))?Ce(t[1],t[2]/100,t[3]/100,t[4]):ge.hasOwnProperty(e)?be(ge[e]):"transparent"===e?new xe(NaN,NaN,NaN,0):null}function be(e){return new xe(e>>16&255,e>>8&255,255&e,1)}function _e(e,t,n,r){return r<=0&&(e=t=n=NaN),new xe(e,t,n,r)}function we(e,t,n,r){return 1===arguments.length?function(e){return e instanceof ae||(e=ye(e)),e?new xe((e=e.rgb()).r,e.g,e.b,e.opacity):new xe}(e):new xe(e,t,n,null==r?1:r)}function xe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ke(){return"#"+Ee(this.r)+Ee(this.g)+Ee(this.b)}function Te(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Ee(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Ce(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Me(e,t,n,r)}function Se(e){if(e instanceof Me)return new Me(e.h,e.s,e.l,e.opacity);if(e instanceof ae||(e=ye(e)),!e)return new Me;if(e instanceof Me)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),l=NaN,o=i-a,u=(i+a)/2;return o?(l=t===i?(n-r)/o+6*(n<r):n===i?(r-t)/o+2:(t-n)/o+4,o/=u<.5?i+a:2-i-a,l*=60):o=u>0&&u<1?0:l,new Me(l,o,u,e.opacity)}function Me(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Pe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Ae(e,t,n,r,a){var i=e*e,l=i*e;return((1-3*e+3*i-l)*t+(4-6*i+3*l)*n+(1+3*e+3*i-3*l)*r+l*a)/6}ne(ae,ye,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ve,formatHex:ve,formatHsl:function(){return Se(this).formatHsl()},formatRgb:me,toString:me}),ne(xe,we,re(ae,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new xe(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new xe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ke,formatHex:ke,formatRgb:Te,toString:Te})),ne(Me,(function(e,t,n,r){return 1===arguments.length?Se(e):new Me(e,t,n,null==r?1:r)}),re(ae,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Me(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Me(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new xe(Pe(e>=240?e-240:e+120,a,r),Pe(e,a,r),Pe(e<120?e+240:e-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Ne=function(e){return function(){return e}};function Oe(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ne(isNaN(e)?t:e)}var Re=function e(t){var n=function(e){return 1==(e=+e)?Oe:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ne(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=we(e)).r,(t=we(t)).r),a=n(e.g,t.g),i=n(e.b,t.b),l=Oe(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=a(t),e.b=i(t),e.opacity=l(t),e+""}}return r.gamma=e,r}(1);function ze(e){return function(t){var n,r,a=t.length,i=new Array(a),l=new Array(a),o=new Array(a);for(n=0;n<a;++n)r=we(t[n]),i[n]=r.r||0,l[n]=r.g||0,o[n]=r.b||0;return i=e(i),l=e(l),o=e(o),r.opacity=1,function(e){return r.r=i(e),r.g=l(e),r.b=o(e),r+""}}}ze((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],i=e[r+1],l=r>0?e[r-1]:2*a-i,o=r<t-1?e[r+2]:2*i-a;return Ae((n-r/t)*t,l,a,i,o)}})),ze((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),a=e[(r+t-1)%t],i=e[r%t],l=e[(r+1)%t],o=e[(r+2)%t];return Ae((n-r/t)*t,a,i,l,o)}}));var Le,De,Fe=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},Ie=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ue=new RegExp(Ie.source,"g"),$e=function(e,t){var n,r,a,i=Ie.lastIndex=Ue.lastIndex=0,l=-1,o=[],u=[];for(e+="",t+="";(n=Ie.exec(e))&&(r=Ue.exec(t));)(a=r.index)>i&&(a=t.slice(i,a),o[l]?o[l]+=a:o[++l]=a),(n=n[0])===(r=r[0])?o[l]?o[l]+=r:o[++l]=r:(o[++l]=null,u.push({i:l,x:Fe(n,r)})),i=Ue.lastIndex;return i<t.length&&(a=t.slice(i),o[l]?o[l]+=a:o[++l]=a),o.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)o[(n=u[r]).i]=n.x(e);return o.join("")})},Be=0,He=0,je=0,Ve=0,We=0,qe=0,Ye="object"==typeof performance&&performance.now?performance:Date,Qe="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Xe(){return We||(Qe(Ke),We=Ye.now()+qe)}function Ke(){We=0}function Ge(){this._call=this._time=this._next=null}function Ze(e,t,n){var r=new Ge;return r.restart(e,t,n),r}function Je(){We=(Ve=Ye.now())+qe,Be=He=0;try{!function(){Xe(),++Be;for(var e,t=Le;t;)(e=We-t._time)>=0&&t._call.call(null,e),t=t._next;--Be}()}finally{Be=0,function(){for(var e,t,n=Le,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Le=t);De=e,tt(r)}(),We=0}}function et(){var e=Ye.now(),t=e-Ve;t>1e3&&(qe-=t,Ve=e)}function tt(e){Be||(He&&(He=clearTimeout(He)),e-We>24?(e<1/0&&(He=setTimeout(Je,e-Ye.now()-qe)),je&&(je=clearInterval(je))):(je||(Ve=Ye.now(),je=setInterval(et,1e3)),Be=1,Qe(Je)))}Ge.prototype=Ze.prototype={constructor:Ge,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Xe():+n)+(null==t?0:+t),this._next||De===this||(De?De._next=this:Le=this,De=this),this._call=e,this._time=n,tt()},stop:function(){this._call&&(this._call=null,this._time=1/0,tt())}};var nt=function(e,t,n){var r=new Ge;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r},rt=p("start","end","cancel","interrupt"),at=[],it=function(e,t,n,r,a,i){var l=e.__transition;if(l){if(n in l)return}else e.__transition={};!function(e,t,n){var r,a=e.__transition;function i(u){var s,c,f,d;if(1!==n.state)return o();for(s in a)if((d=a[s]).name===n.name){if(3===d.state)return nt(i);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete a[s]):+s<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete a[s])}if(nt((function(){3===n.state&&(n.state=4,n.timer.restart(l,n.delay,n.time),l(u))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),s=0,c=-1;s<f;++s)(d=n.tween[s].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=d);r.length=c+1}}function l(t){for(var a=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(o),n.state=5,1),i=-1,l=r.length;++i<l;)r[i].call(e,a);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),o())}function o(){for(var r in n.state=6,n.timer.stop(),delete a[t],a)return;delete e.__transition}a[t]=n,n.timer=Ze((function(e){n.state=1,n.timer.restart(i,n.delay,n.time),n.delay<=e&&i(e-n.delay)}),0,n.time)}(e,n,{name:t,index:r,group:a,on:rt,tween:at,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})};function lt(e,t){var n=ut(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function ot(e,t){var n=ut(e,t);if(n.state>3)throw new Error("too late; already running");return n}function ut(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var st,ct,ft,dt,ht=180/Math.PI,pt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},gt=function(e,t,n,r,a,i){var l,o,u;return(l=Math.sqrt(e*e+t*t))&&(e/=l,t/=l),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,u/=o),e*r<t*n&&(e=-e,t=-t,u=-u,l=-l),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*ht,skewX:Math.atan(u)*ht,scaleX:l,scaleY:o}};function vt(e,t,n,r){function a(e){return e.length?e.pop()+" ":""}return function(i,l){var o=[],u=[];return i=e(i),l=e(l),function(e,r,a,i,l,o){if(e!==a||r!==i){var u=l.push("translate(",null,t,null,n);o.push({i:u-4,x:Fe(e,a)},{i:u-2,x:Fe(r,i)})}else(a||i)&&l.push("translate("+a+t+i+n)}(i.translateX,i.translateY,l.translateX,l.translateY,o,u),function(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(a(n)+"rotate(",null,r)-2,x:Fe(e,t)})):t&&n.push(a(n)+"rotate("+t+r)}(i.rotate,l.rotate,o,u),function(e,t,n,i){e!==t?i.push({i:n.push(a(n)+"skewX(",null,r)-2,x:Fe(e,t)}):t&&n.push(a(n)+"skewX("+t+r)}(i.skewX,l.skewX,o,u),function(e,t,n,r,i,l){if(e!==n||t!==r){var o=i.push(a(i)+"scale(",null,",",null,")");l.push({i:o-4,x:Fe(e,n)},{i:o-2,x:Fe(t,r)})}else 1===n&&1===r||i.push(a(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,l.scaleX,l.scaleY,o,u),i=l=null,function(e){for(var t,n=-1,r=u.length;++n<r;)o[(t=u[n]).i]=t.x(e);return o.join("")}}}var mt=vt((function(e){return"none"===e?pt:(st||(st=document.createElement("DIV"),ct=document.documentElement,ft=document.defaultView),st.style.transform=e,e=ft.getComputedStyle(ct.appendChild(st),null).getPropertyValue("transform"),ct.removeChild(st),e=e.slice(7,-1).split(","),gt(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}),"px, ","px)","deg)"),yt=vt((function(e){return null==e?pt:(dt||(dt=document.createElementNS("http://www.w3.org/2000/svg","g")),dt.setAttribute("transform",e),(e=dt.transform.baseVal.consolidate())?(e=e.matrix,gt(e.a,e.b,e.c,e.d,e.e,e.f)):pt)}),", ",")",")");function bt(e,t,n){var r=e._id;return e.each((function(){var e=ot(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return ut(e,r).value[t]}}var _t=function(e,t){var n;return("number"==typeof t?Fe:t instanceof ye?Re:(n=ye(t))?(t=n,Re):$e)(e,t)},wt=ee.prototype.constructor;function xt(e){return function(){this.style.removeProperty(e)}}var kt=0;function Tt(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Et(){return++kt}var Ct=ee.prototype;Tt.prototype=function(e){return ee().transition(e)}.prototype={constructor:Tt,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=v(e));for(var r=this._groups,a=r.length,i=new Array(a),l=0;l<a;++l)for(var o,u,s=r[l],c=s.length,f=i[l]=new Array(c),d=0;d<c;++d)(o=s[d])&&(u=e.call(o,o.__data__,d,s))&&("__data__"in o&&(u.__data__=o.__data__),f[d]=u,it(f[d],t,n,d,f,ut(o,n)));return new Tt(i,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=y(e));for(var r=this._groups,a=r.length,i=[],l=[],o=0;o<a;++o)for(var u,s=r[o],c=s.length,f=0;f<c;++f)if(u=s[f]){for(var d,h=e.call(u,u.__data__,f,s),p=ut(u,n),g=0,v=h.length;g<v;++g)(d=h[g])&&it(d,t,n,g,h,p);i.push(h),l.push(u)}return new Tt(i,l,t,n)},filter:function(e){"function"!=typeof e&&(e=b(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i,l=t[a],o=l.length,u=r[a]=[],s=0;s<o;++s)(i=l[s])&&e.call(i,i.__data__,s,l)&&u.push(i);return new Tt(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,a=n.length,i=Math.min(r,a),l=new Array(r),o=0;o<i;++o)for(var u,s=t[o],c=n[o],f=s.length,d=l[o]=new Array(f),h=0;h<f;++h)(u=s[h]||c[h])&&(d[h]=u);for(;o<r;++o)l[o]=t[o];return new Tt(l,this._parents,this._name,this._id)},selection:function(){return new wt(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Et(),r=this._groups,a=r.length,i=0;i<a;++i)for(var l,o=r[i],u=o.length,s=0;s<u;++s)if(l=o[s]){var c=ut(l,t);it(l,e,n,s,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Tt(r,this._parents,e,n)},call:Ct.call,nodes:Ct.nodes,node:Ct.node,size:Ct.size,empty:Ct.empty,each:Ct.each,on:function(e,t){var n=this._id;return arguments.length<2?ut(this.node(),n).on.on(e):this.each(function(e,t,n){var r,a,i=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?lt:ot;return function(){var l=i(this,e),o=l.on;o!==r&&(a=(r=o).copy()).on(t,n),l.on=a}}(n,e,t))},attr:function(e,t){var n=S(e),r="transform"===n?yt:_t;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,a,i;return function(){var l,o,u=n(this);if(null!=u)return(l=this.getAttributeNS(e.space,e.local))===(o=u+"")?null:l===r&&o===a?i:(a=o,i=t(r=l,u));this.removeAttributeNS(e.space,e.local)}}:function(e,t,n){var r,a,i;return function(){var l,o,u=n(this);if(null!=u)return(l=this.getAttribute(e))===(o=u+"")?null:l===r&&o===a?i:(a=o,i=t(r=l,u));this.removeAttribute(e)}})(n,r,bt(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,a,i=n+"";return function(){var l=this.getAttributeNS(e.space,e.local);return l===i?null:l===r?a:a=t(r=l,n)}}:function(e,t,n){var r,a,i=n+"";return function(){var l=this.getAttribute(e);return l===i?null:l===r?a:a=t(r=l,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=S(e);return this.tween(n,(r.local?function(e,t){var n,r;function a(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,a)),n}return a._value=t,a}:function(e,t){var n,r;function a(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,a)),n}return a._value=t,a})(r,t))},style:function(e,t,n){var r="transform"==(e+="")?mt:_t;return null==t?this.styleTween(e,function(e,t){var n,r,a;return function(){var i=P(this,e),l=(this.style.removeProperty(e),P(this,e));return i===l?null:i===n&&l===r?a:a=t(n=i,r=l)}}(e,r)).on("end.style."+e,xt(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,a,i;return function(){var l=P(this,e),o=n(this),u=o+"";return null==o&&(this.style.removeProperty(e),u=o=P(this,e)),l===u?null:l===r&&u===a?i:(a=u,i=t(r=l,o))}}(e,r,bt(this,"style."+e,t))).each(function(e,t){var n,r,a,i,l="style."+t,o="end."+l;return function(){var u=ot(this,e),s=u.on,c=null==u.value[l]?i||(i=xt(t)):void 0;s===n&&a===c||(r=(n=s).copy()).on(o,a=c),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,a,i=n+"";return function(){var l=P(this,e);return l===i?null:l===r?a:a=t(r=l,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,a;function i(){var i=t.apply(this,arguments);return i!==a&&(r=(a=i)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,i,n)),r}return i._value=t,i}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(bt(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,a=ut(this.node(),n).tween,i=0,l=a.length;i<l;++i)if((r=a[i]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var a=ot(this,e),i=a.tween;if(i!==n)for(var l=0,o=(r=n=i).length;l<o;++l)if(r[l].name===t){(r=r.slice()).splice(l,1);break}a.tween=r}}:function(e,t,n){var r,a;if("function"!=typeof n)throw new Error;return function(){var i=ot(this,e),l=i.tween;if(l!==r){a=(r=l).slice();for(var o={name:t,value:n},u=0,s=a.length;u<s;++u)if(a[u].name===t){a[u]=o;break}u===s&&a.push(o)}i.tween=a}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){lt(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){lt(this,e).delay=t}})(t,e)):ut(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){ot(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){ot(this,e).duration=t}})(t,e)):ut(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){ot(this,e).ease=t}}(t,e)):ut(this.node(),t).ease},end:function(){var e,t,n=this,r=n._id,a=n.size();return new Promise((function(i,l){var o={value:l},u={value:function(){0==--a&&i()}};n.each((function(){var n=ot(this,r),a=n.on;a!==e&&((t=(e=a).copy())._.cancel.push(o),t._.interrupt.push(o),t._.end.push(u)),n.on=t}))}))}};var St={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function Mt(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return St.time=Xe(),St;return n}function Pt(e){return{type:e}}ee.prototype.interrupt=function(e){return this.each((function(){!function(e,t){var n,r,a,i=e.__transition,l=!0;if(i){for(a in t=null==t?null:t+"",i)(n=i[a]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete i[a]):l=!1;l&&delete e.__transition}}(this,e)}))},ee.prototype.transition=function(e){var t,n;e instanceof Tt?(t=e._id,e=e._name):(t=Et(),(n=St).time=Xe(),e=null==e?null:e+"");for(var r=this._groups,a=r.length,i=0;i<a;++i)for(var l,o=r[i],u=o.length,s=0;s<u;++s)(l=o[s])&&it(l,e,t,s,o,n||Mt(l,t));return new Tt(r,this._parents,e,t)},["w","e"].map(Pt),["n","s"].map(Pt),["n","w","e","s","nw","ne","sw","se"].map(Pt),Math.cos,Math.sin,Math.PI,Math.max,Array.prototype.slice;var At=Math.PI,Nt=2*At,Ot=Nt-1e-6;function Rt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function zt(){return new Rt}Rt.prototype=zt.prototype={constructor:Rt,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,a,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+a)+","+(this._y1=+i)},arcTo:function(e,t,n,r,a){e=+e,t=+t,n=+n,r=+r,a=+a;var i=this._x1,l=this._y1,o=n-e,u=r-t,s=i-e,c=l-t,f=s*s+c*c;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(c*o-u*s)>1e-6&&a){var d=n-i,h=r-l,p=o*o+u*u,g=d*d+h*h,v=Math.sqrt(p),m=Math.sqrt(f),y=a*Math.tan((At-Math.acos((p+f-g)/(2*v*m)))/2),b=y/m,_=y/v;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*s)+","+(t+b*c)),this._+="A"+a+","+a+",0,0,"+ +(c*d>s*h)+","+(this._x1=e+_*o)+","+(this._y1=t+_*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,a,i){e=+e,t=+t,i=!!i;var l=(n=+n)*Math.cos(r),o=n*Math.sin(r),u=e+l,s=t+o,c=1^i,f=i?r-a:a-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+s:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+u+","+s),n&&(f<0&&(f=f%Nt+Nt),f>Ot?this._+="A"+n+","+n+",0,1,"+c+","+(e-l)+","+(t-o)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=s):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=At)+","+c+","+(this._x1=e+n*Math.cos(a))+","+(this._y1=t+n*Math.sin(a))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Lt=zt;function Dt(){}function Ft(e,t){var n=new Dt;if(e instanceof Dt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,a=-1,i=e.length;if(null==t)for(;++a<i;)n.set(a,e[a]);else for(;++a<i;)n.set(t(r=e[a],a,e),r)}else if(e)for(var l in e)n.set(l,e[l]);return n}function It(){}Dt.prototype=Ft.prototype={constructor:Dt,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var Ut=Ft.prototype;It.prototype=function(e,t){var n=new It;if(e instanceof It)e.each((function(e){n.add(e)}));else if(e){var r=-1,a=e.length;if(null==t)for(;++r<a;)n.add(e[r]);else for(;++r<a;)n.add(t(e[r],r,e))}return n}.prototype={constructor:It,has:Ut.has,add:function(e){return this["$"+(e+="")]=e,this},remove:Ut.remove,clear:Ut.clear,values:Ut.keys,size:Ut.size,empty:Ut.empty,each:Ut.each},Array.prototype.slice;var $t={},Bt={};function Ht(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'})).join(",")+"}")}function jt(e){var t=Object.create(null),n=[];return e.forEach((function(e){for(var r in e)r in t||n.push(t[r]=r)})),n}function Vt(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}var Wt=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,a=[],i=e.length,l=0,o=0,u=i<=0,s=!1;function c(){if(u)return Bt;if(s)return s=!1,$t;var t,r,a=l;if(34===e.charCodeAt(a)){for(;l++<i&&34!==e.charCodeAt(l)||34===e.charCodeAt(++l););return(t=l)>=i?u=!0:10===(r=e.charCodeAt(l++))?s=!0:13===r&&(s=!0,10===e.charCodeAt(l)&&++l),e.slice(a+1,t-1).replace(/""/g,'"')}for(;l<i;){if(10===(r=e.charCodeAt(t=l++)))s=!0;else if(13===r)s=!0,10===e.charCodeAt(l)&&++l;else if(r!==n)continue;return e.slice(a,t)}return u=!0,e.slice(a,i)}for(10===e.charCodeAt(i-1)&&--i,13===e.charCodeAt(i-1)&&--i;(r=c())!==Bt;){for(var f=[];r!==$t&&r!==Bt;)f.push(r),r=c();t&&null==(f=t(f,o++))||a.push(f)}return a}function a(t,n){return t.map((function(t){return n.map((function(e){return l(t[e])})).join(e)}))}function i(t){return t.map(l).join(e)}function l(e){return null==e?"":e instanceof Date?function(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),a=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":function(e){return e<0?"-"+Vt(-e,6):e>9999?"+"+Vt(e,6):Vt(e,4)}(e.getUTCFullYear())+"-"+Vt(e.getUTCMonth()+1,2)+"-"+Vt(e.getUTCDate(),2)+(a?"T"+Vt(t,2)+":"+Vt(n,2)+":"+Vt(r,2)+"."+Vt(a,3)+"Z":r?"T"+Vt(t,2)+":"+Vt(n,2)+":"+Vt(r,2)+"Z":n||t?"T"+Vt(t,2)+":"+Vt(n,2)+"Z":"")}(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,a,i=r(e,(function(e,r){if(n)return n(e,r-1);a=e,n=t?function(e,t){var n=Ht(e);return function(r,a){return t(n(r),a,e)}}(e,t):Ht(e)}));return i.columns=a||[],i},parseRows:r,format:function(t,n){return null==n&&(n=jt(t)),[n.map(l).join(e)].concat(a(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=jt(e)),a(e,t).join("\n")},formatRows:function(e){return e.map(i).join("\n")},formatRow:i,formatValue:l}},qt=Wt(","),Yt=qt.parse,Qt=(qt.parseRows,qt.format,qt.formatBody,qt.formatRows,qt.formatRow,qt.formatValue,Wt("\t")),Xt=Qt.parse;function Kt(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}Qt.parseRows,Qt.format,Qt.formatBody,Qt.formatRows,Qt.formatRow,Qt.formatValue;var Gt=function(e,t){return fetch(e,t).then(Kt)};function Zt(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),Gt(t,n).then((function(t){return e(t,r)}))}}function Jt(e){return function(t,n){return Gt(t,n).then((function(t){return(new DOMParser).parseFromString(t,e)}))}}function en(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var a,i,l,o,u,s,c,f,d,h=e._root,p={data:r},g=e._x0,v=e._y0,m=e._x1,y=e._y1;if(!h)return e._root=p,e;for(;h.length;)if((s=t>=(i=(g+m)/2))?g=i:m=i,(c=n>=(l=(v+y)/2))?v=l:y=l,a=h,!(h=h[f=c<<1|s]))return a[f]=p,e;if(o=+e._x.call(null,h.data),u=+e._y.call(null,h.data),t===o&&n===u)return p.next=h,a?a[f]=p:e._root=p,e;do{a=a?a[f]=new Array(4):e._root=new Array(4),(s=t>=(i=(g+m)/2))?g=i:m=i,(c=n>=(l=(v+y)/2))?v=l:y=l}while((f=c<<1|s)==(d=(u>=l)<<1|o>=i));return a[d]=h,a[f]=p,e}Zt(Yt),Zt(Xt),Jt("application/xml"),Jt("text/html"),Jt("image/svg+xml");var tn=function(e,t,n,r,a){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=a};function nn(e){return e[0]}function rn(e){return e[1]}function an(e,t,n,r,a,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=a,this._y1=i,this._root=void 0}function ln(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var on=function(e,t,n){var r=new an(null==t?nn:t,null==n?rn:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}.prototype=an.prototype;on.copy=function(){var e,t,n=new an(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=ln(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var a=0;a<4;++a)(t=r.source[a])&&(t.length?e.push({source:t,target:r.target[a]=new Array(4)}):r.target[a]=ln(t));return n},on.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return en(this.cover(t,n),t,n,e)},on.addAll=function(e){var t,n,r,a,i=e.length,l=new Array(i),o=new Array(i),u=1/0,s=1/0,c=-1/0,f=-1/0;for(n=0;n<i;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(a=+this._y.call(null,t))||(l[n]=r,o[n]=a,r<u&&(u=r),r>c&&(c=r),a<s&&(s=a),a>f&&(f=a));if(u>c||s>f)return this;for(this.cover(u,s).cover(c,f),n=0;n<i;++n)en(this,l[n],o[n],e[n]);return this},on.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,a=this._x1,i=this._y1;if(isNaN(n))a=(n=Math.floor(e))+1,i=(r=Math.floor(t))+1;else{for(var l,o,u=a-n,s=this._root;n>e||e>=a||r>t||t>=i;)switch(o=(t<r)<<1|e<n,(l=new Array(4))[o]=s,s=l,u*=2,o){case 0:a=n+u,i=r+u;break;case 1:n=a-u,i=r+u;break;case 2:a=n+u,r=i-u;break;case 3:n=a-u,r=i-u}this._root&&this._root.length&&(this._root=s)}return this._x0=n,this._y0=r,this._x1=a,this._y1=i,this},on.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},on.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},on.find=function(e,t,n){var r,a,i,l,o,u,s,c=this._x0,f=this._y0,d=this._x1,h=this._y1,p=[],g=this._root;for(g&&p.push(new tn(g,c,f,d,h)),null==n?n=1/0:(c=e-n,f=t-n,d=e+n,h=t+n,n*=n);u=p.pop();)if(!(!(g=u.node)||(a=u.x0)>d||(i=u.y0)>h||(l=u.x1)<c||(o=u.y1)<f))if(g.length){var v=(a+l)/2,m=(i+o)/2;p.push(new tn(g[3],v,m,l,o),new tn(g[2],a,m,v,o),new tn(g[1],v,i,l,m),new tn(g[0],a,i,v,m)),(s=(t>=m)<<1|e>=v)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=u)}else{var y=e-+this._x.call(null,g.data),b=t-+this._y.call(null,g.data),_=y*y+b*b;if(_<n){var w=Math.sqrt(n=_);c=e-w,f=t-w,d=e+w,h=t+w,r=g.data}}return r},on.remove=function(e){if(isNaN(i=+this._x.call(null,e))||isNaN(l=+this._y.call(null,e)))return this;var t,n,r,a,i,l,o,u,s,c,f,d,h=this._root,p=this._x0,g=this._y0,v=this._x1,m=this._y1;if(!h)return this;if(h.length)for(;;){if((s=i>=(o=(p+v)/2))?p=o:v=o,(c=l>=(u=(g+m)/2))?g=u:m=u,t=h,!(h=h[f=c<<1|s]))return this;if(!h.length)break;(t[f+1&3]||t[f+2&3]||t[f+3&3])&&(n=t,d=f)}for(;h.data!==e;)if(r=h,!(h=h.next))return this;return(a=h.next)&&delete h.next,r?(a?r.next=a:delete r.next,this):t?(a?t[f]=a:delete t[f],(h=t[0]||t[1]||t[2]||t[3])&&h===(t[3]||t[2]||t[1]||t[0])&&!h.length&&(n?n[d]=h:this._root=h),this):(this._root=a,this)},on.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},on.root=function(){return this._root},on.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},on.visit=function(e){var t,n,r,a,i,l,o=[],u=this._root;for(u&&o.push(new tn(u,this._x0,this._y0,this._x1,this._y1));t=o.pop();)if(!e(u=t.node,r=t.x0,a=t.y0,i=t.x1,l=t.y1)&&u.length){var s=(r+i)/2,c=(a+l)/2;(n=u[3])&&o.push(new tn(n,s,c,i,l)),(n=u[2])&&o.push(new tn(n,r,c,s,l)),(n=u[1])&&o.push(new tn(n,s,a,i,c)),(n=u[0])&&o.push(new tn(n,r,a,s,c))}return this},on.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new tn(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var a=t.node;if(a.length){var i,l=t.x0,o=t.y0,u=t.x1,s=t.y1,c=(l+u)/2,f=(o+s)/2;(i=a[0])&&n.push(new tn(i,l,o,c,f)),(i=a[1])&&n.push(new tn(i,c,o,u,f)),(i=a[2])&&n.push(new tn(i,l,f,c,s)),(i=a[3])&&n.push(new tn(i,c,f,u,s))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},on.x=function(e){return arguments.length?(this._x=e,this):this._x},on.y=function(e){return arguments.length?(this._y=e,this):this._y},Math.PI,Math.sqrt(5);var un=function(){return Math.random()},sn=(function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(un),function e(t){function n(e,n){var r,a;return e=null==e?0:+e,n=null==n?1:+n,function(){var i;if(null!=r)i=r,r=null;else do{r=2*t()-1,i=2*t()-1,a=r*r+i*i}while(!a||a>1);return e+n*i*Math.sqrt(-2*Math.log(a)/a)}}return n.source=e,n}(un)),cn=(function e(t){function n(){var e=sn.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(un),function e(t){function n(e){return function(){for(var n=0,r=0;r<e;++r)n+=t();return n}}return n.source=e,n}(un));(function e(t){function n(e){var n=cn.source(t)(e);return function(){return n()/e}}return n.source=e,n})(un),function e(t){function n(e){return function(){return-Math.log(1-t())/e}}return n.source=e,n}(un);var fn=Array.prototype;fn.map,fn.slice;var dn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hn(e){if(!(t=dn.exec(e)))throw new Error("invalid format: "+e);var t;return new pn({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function pn(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}hn.prototype=pn.prototype,pn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var gn,vn,mn=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},yn=function(e,t){var n=mn(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")},bn={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return yn(100*e,t)},r:yn,s:function(e,t){var n=mn(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(gn=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,l=r.length;return i===l?r:i>l?r+new Array(i-l+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+mn(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},_n=function(e){return e},wn=Array.prototype.map,xn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];(vn=function(e){var t=void 0===e.grouping||void 0===e.thousands?_n:function(e,t){return function(n,r){for(var a=n.length,i=[],l=0,o=e[0],u=0;a>0&&o>0&&(u+o+1>r&&(o=Math.max(1,r-u)),i.push(n.substring(a-=o,a+o)),!((u+=o+1)>r));)o=e[l=(l+1)%e.length];return i.reverse().join(t)}}(wn.call(e.grouping,Number),e.thousands+""),n=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",i=void 0===e.numerals?_n:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(wn.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",o=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function s(e){var s=(e=hn(e)).fill,c=e.align,f=e.sign,d=e.symbol,h=e.zero,p=e.width,g=e.comma,v=e.precision,m=e.trim,y=e.type;"n"===y?(g=!0,y="g"):bn[y]||(void 0===v&&(v=12),m=!0,y="g"),(h||"0"===s&&"="===c)&&(h=!0,s="0",c="=");var b="$"===d?n:"#"===d&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",_="$"===d?r:/[%p]/.test(y)?l:"",w=bn[y],x=/[defgprs%]/.test(y);function k(e){var n,r,l,d=b,k=_;if("c"===y)k=w(e)+k,e="";else{var T=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),v),m&&(e=function(e){e:for(var t,n=e.length,r=1,a=-1;r<n;++r)switch(e[r]){case".":a=t=r;break;case"0":0===a&&(a=r),t=r;break;default:if(!+e[r])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),T&&0==+e&&"+"!==f&&(T=!1),d=(T?"("===f?f:o:"-"===f||"("===f?"":f)+d,k=("s"===y?xn[8+gn/3]:"")+k+(T&&"("===f?")":""),x)for(n=-1,r=e.length;++n<r;)if(48>(l=e.charCodeAt(n))||l>57){k=(46===l?a+e.slice(n+1):e.slice(n))+k,e=e.slice(0,n);break}}g&&!h&&(e=t(e,1/0));var E=d.length+e.length+k.length,C=E<p?new Array(p-E+1).join(s):"";switch(g&&h&&(e=t(C+e,C.length?p-k.length:1/0),C=""),c){case"<":e=d+e+k+C;break;case"=":e=d+C+e+k;break;case"^":e=C.slice(0,E=C.length>>1)+d+e+k+C.slice(E);break;default:e=C+d+e+k}return i(e)}return v=void 0===v?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return e+""},k}return{format:s,formatPrefix:function(e,t){var n=s(((e=hn(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=mn(Math.abs(e)))?e[1]:NaN}(t)/3))),a=Math.pow(10,-r),i=xn[8+r/3];return function(e){return n(a*e)+i}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})).format,vn.formatPrefix;var kn=new Date,Tn=new Date;function En(e,t,n,r){function a(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return a.floor=function(t){return e(t=new Date(+t)),t},a.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},a.round=function(e){var t=a(e),n=a.ceil(e);return e-t<n-e?t:n},a.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},a.range=function(n,r,i){var l,o=[];if(n=a.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return o;do{o.push(l=new Date(+n)),t(n,i),e(n)}while(l<n&&n<r);return o},a.filter=function(n){return En((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(a.count=function(t,r){return kn.setTime(+t),Tn.setTime(+r),e(kn),e(Tn),Math.floor(n(kn,Tn))},a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?a.filter(r?function(t){return r(t)%e==0}:function(t){return a.count(0,t)%e==0}):a:null}),a}var Cn=En((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Cn.every=function(e){return isFinite(e=Math.floor(e))&&e>0?En((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var Sn=Cn,Mn=((Cn.range,En((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))).range,6e4),Pn=6048e5;function An(e){return En((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Mn)/Pn}))}var Nn=An(0),On=An(1),Rn=An(2),zn=An(3),Ln=An(4),Dn=An(5),Fn=An(6),In=(Nn.range,On.range,Rn.range,zn.range,Ln.range,Dn.range,Fn.range,En((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Mn)/864e5}),(function(e){return e.getDate()-1}))),Un=In,$n=((((In.range,En((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*Mn)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))).range,En((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+t*Mn)}),(function(e,t){return(t-e)/Mn}),(function(e){return e.getMinutes()}))).range,En((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}))).range,En((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e})));function Bn(e){return En((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Pn}))}$n.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?En((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):$n:null},$n.range;var Hn=Bn(0),jn=Bn(1),Vn=Bn(2),Wn=Bn(3),qn=Bn(4),Yn=Bn(5),Qn=Bn(6),Xn=(Hn.range,jn.range,Vn.range,Wn.range,qn.range,Yn.range,Qn.range,En((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),Kn=Xn,Gn=(Xn.range,En((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));Gn.every=function(e){return isFinite(e=Math.floor(e))&&e>0?En((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Zn=Gn;function Jn(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function er(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function tr(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}Gn.range;var nr,rr={"-":"",_:" ",0:"0"},ar=/^\s*\d+/,ir=/^%/,lr=/[\\^$*+?|[\]().{}]/g;function or(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function ur(e){return e.replace(lr,"\\$&")}function sr(e){return new RegExp("^(?:"+e.map(ur).join("|")+")","i")}function cr(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function fr(e,t,n){var r=ar.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function dr(e,t,n){var r=ar.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function hr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function pr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function gr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function vr(e,t,n){var r=ar.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function mr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function yr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function br(e,t,n){var r=ar.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function _r(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function wr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function xr(e,t,n){var r=ar.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function kr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Tr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Er(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Cr(e,t,n){var r=ar.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Sr(e,t,n){var r=ar.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Mr(e,t,n){var r=ir.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Pr(e,t,n){var r=ar.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ar(e,t,n){var r=ar.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Nr(e,t){return or(e.getDate(),t,2)}function Or(e,t){return or(e.getHours(),t,2)}function Rr(e,t){return or(e.getHours()%12||12,t,2)}function zr(e,t){return or(1+Un.count(Sn(e),e),t,3)}function Lr(e,t){return or(e.getMilliseconds(),t,3)}function Dr(e,t){return Lr(e,t)+"000"}function Fr(e,t){return or(e.getMonth()+1,t,2)}function Ir(e,t){return or(e.getMinutes(),t,2)}function Ur(e,t){return or(e.getSeconds(),t,2)}function $r(e){var t=e.getDay();return 0===t?7:t}function Br(e,t){return or(Nn.count(Sn(e)-1,e),t,2)}function Hr(e,t){var n=e.getDay();return e=n>=4||0===n?Ln(e):Ln.ceil(e),or(Ln.count(Sn(e),e)+(4===Sn(e).getDay()),t,2)}function jr(e){return e.getDay()}function Vr(e,t){return or(On.count(Sn(e)-1,e),t,2)}function Wr(e,t){return or(e.getFullYear()%100,t,2)}function qr(e,t){return or(e.getFullYear()%1e4,t,4)}function Yr(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+or(t/60|0,"0",2)+or(t%60,"0",2)}function Qr(e,t){return or(e.getUTCDate(),t,2)}function Xr(e,t){return or(e.getUTCHours(),t,2)}function Kr(e,t){return or(e.getUTCHours()%12||12,t,2)}function Gr(e,t){return or(1+Kn.count(Zn(e),e),t,3)}function Zr(e,t){return or(e.getUTCMilliseconds(),t,3)}function Jr(e,t){return Zr(e,t)+"000"}function ea(e,t){return or(e.getUTCMonth()+1,t,2)}function ta(e,t){return or(e.getUTCMinutes(),t,2)}function na(e,t){return or(e.getUTCSeconds(),t,2)}function ra(e){var t=e.getUTCDay();return 0===t?7:t}function aa(e,t){return or(Hn.count(Zn(e)-1,e),t,2)}function ia(e,t){var n=e.getUTCDay();return e=n>=4||0===n?qn(e):qn.ceil(e),or(qn.count(Zn(e),e)+(4===Zn(e).getUTCDay()),t,2)}function la(e){return e.getUTCDay()}function oa(e,t){return or(jn.count(Zn(e)-1,e),t,2)}function ua(e,t){return or(e.getUTCFullYear()%100,t,2)}function sa(e,t){return or(e.getUTCFullYear()%1e4,t,4)}function ca(){return"+0000"}function fa(){return"%"}function da(e){return+e}function ha(e){return Math.floor(+e/1e3)}(nr=function(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,l=e.shortDays,o=e.months,u=e.shortMonths,s=sr(a),c=cr(a),f=sr(i),d=cr(i),h=sr(l),p=cr(l),g=sr(o),v=cr(o),m=sr(u),y=cr(u),b={a:function(e){return l[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return o[e.getMonth()]},c:null,d:Nr,e:Nr,f:Dr,H:Or,I:Rr,j:zr,L:Lr,m:Fr,M:Ir,p:function(e){return a[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:da,s:ha,S:Ur,u:$r,U:Br,V:Hr,w:jr,W:Vr,x:null,X:null,y:Wr,Y:qr,Z:Yr,"%":fa},_={a:function(e){return l[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return o[e.getUTCMonth()]},c:null,d:Qr,e:Qr,f:Jr,H:Xr,I:Kr,j:Gr,L:Zr,m:ea,M:ta,p:function(e){return a[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:da,s:ha,S:na,u:ra,U:aa,V:ia,w:la,W:oa,x:null,X:null,y:ua,Y:sa,Z:ca,"%":fa},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return T(e,t,n,r)},d:wr,e:wr,f:Sr,H:kr,I:kr,j:xr,L:Cr,m:_r,M:Tr,p:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},q:br,Q:Pr,s:Ar,S:Er,u:dr,U:hr,V:pr,w:fr,W:gr,x:function(e,t,r){return T(e,n,t,r)},X:function(e,t,n){return T(e,r,t,n)},y:mr,Y:vr,Z:yr,"%":Mr};function x(e,t){return function(n){var r,a,i,l=[],o=-1,u=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++o<s;)37===e.charCodeAt(o)&&(l.push(e.slice(u,o)),null!=(a=rr[r=e.charAt(++o)])?r=e.charAt(++o):a="e"===r?" ":"0",(i=t[r])&&(r=i(n,a)),l.push(r),u=o+1);return l.push(e.slice(u,o)),l.join("")}}function k(e,t){return function(n){var r,a,i=tr(1900,void 0,1);if(T(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(!t||"Z"in i||(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(r=(a=(r=er(tr(i.y,0,1))).getUTCDay())>4||0===a?jn.ceil(r):jn(r),r=Kn.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(r=(a=(r=Jn(tr(i.y,0,1))).getDay())>4||0===a?On.ceil(r):On(r),r=Un.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),a="Z"in i?er(tr(i.y,0,1)).getUTCDay():Jn(tr(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(a+5)%7:i.w+7*i.U-(a+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,er(i)):Jn(i)}}function T(e,t,n,r){for(var a,i,l=0,o=t.length,u=n.length;l<o;){if(r>=u)return-1;if(37===(a=t.charCodeAt(l++))){if(a=t.charAt(l++),!(i=w[a in rr?t.charAt(l++):a])||(r=i(e,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}return b.x=x(n,b),b.X=x(r,b),b.c=x(t,b),_.x=x(n,_),_.X=x(r,_),_.c=x(t,_),{format:function(e){var t=x(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,nr.parse,nr.utcFormat,nr.utcParse,((En((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})).range,En((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}))).range,En((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Mn)}),(function(e,t){return(t-e)/Mn}),(function(e){return e.getUTCMinutes()}))).range;var pa=function(e){return"string"==typeof e?new Z([document.querySelectorAll(e)],[document.documentElement]):new Z([null==e?[]:e],G)},ga=function(e){return function(){return e}},va=Math.abs,ma=Math.atan2,ya=Math.cos,ba=Math.max,_a=Math.min,wa=Math.sin,xa=Math.sqrt,ka=1e-12,Ta=Math.PI,Ea=Ta/2,Ca=2*Ta;function Sa(e){return e>=1?Ea:e<=-1?-Ea:Math.asin(e)}function Ma(e){return e.innerRadius}function Pa(e){return e.outerRadius}function Aa(e){return e.startAngle}function Na(e){return e.endAngle}function Oa(e){return e&&e.padAngle}function Ra(e,t,n,r,a,i,l){var o=e-n,u=t-r,s=(l?i:-i)/xa(o*o+u*u),c=s*u,f=-s*o,d=e+c,h=t+f,p=n+c,g=r+f,v=(d+p)/2,m=(h+g)/2,y=p-d,b=g-h,_=y*y+b*b,w=a-i,x=d*g-p*h,k=(b<0?-1:1)*xa(ba(0,w*w*_-x*x)),T=(x*b-y*k)/_,E=(-x*y-b*k)/_,C=(x*b+y*k)/_,S=(-x*y+b*k)/_,M=T-v,P=E-m,A=C-v,N=S-m;return M*M+P*P>A*A+N*N&&(T=C,E=S),{cx:T,cy:E,x01:-c,y01:-f,x11:T*(a/w-1),y11:E*(a/w-1)}}var za=function(){var e=Ma,t=Pa,n=ga(0),r=null,a=Aa,i=Na,l=Oa,o=null;function u(){var u,s,c=+e.apply(this,arguments),f=+t.apply(this,arguments),d=a.apply(this,arguments)-Ea,h=i.apply(this,arguments)-Ea,p=va(h-d),g=h>d;if(o||(o=u=Lt()),f<c&&(s=f,f=c,c=s),f>ka)if(p>Ca-ka)o.moveTo(f*ya(d),f*wa(d)),o.arc(0,0,f,d,h,!g),c>ka&&(o.moveTo(c*ya(h),c*wa(h)),o.arc(0,0,c,h,d,g));else{var v,m,y=d,b=h,_=d,w=h,x=p,k=p,T=l.apply(this,arguments)/2,E=T>ka&&(r?+r.apply(this,arguments):xa(c*c+f*f)),C=_a(va(f-c)/2,+n.apply(this,arguments)),S=C,M=C;if(E>ka){var P=Sa(E/c*wa(T)),A=Sa(E/f*wa(T));(x-=2*P)>ka?(_+=P*=g?1:-1,w-=P):(x=0,_=w=(d+h)/2),(k-=2*A)>ka?(y+=A*=g?1:-1,b-=A):(k=0,y=b=(d+h)/2)}var N=f*ya(y),O=f*wa(y),R=c*ya(w),z=c*wa(w);if(C>ka){var L,D=f*ya(b),F=f*wa(b),I=c*ya(_),U=c*wa(_);if(p<Ta&&(L=function(e,t,n,r,a,i,l,o){var u=n-e,s=r-t,c=l-a,f=o-i,d=f*u-c*s;if(!(d*d<ka))return[e+(d=(c*(t-i)-f*(e-a))/d)*u,t+d*s]}(N,O,I,U,D,F,R,z))){var $=N-L[0],B=O-L[1],H=D-L[0],j=F-L[1],V=1/wa(function(e){return e>1?0:e<-1?Ta:Math.acos(e)}(($*H+B*j)/(xa($*$+B*B)*xa(H*H+j*j)))/2),W=xa(L[0]*L[0]+L[1]*L[1]);S=_a(C,(c-W)/(V-1)),M=_a(C,(f-W)/(V+1))}}k>ka?M>ka?(v=Ra(I,U,N,O,f,M,g),m=Ra(D,F,R,z,f,M,g),o.moveTo(v.cx+v.x01,v.cy+v.y01),M<C?o.arc(v.cx,v.cy,M,ma(v.y01,v.x01),ma(m.y01,m.x01),!g):(o.arc(v.cx,v.cy,M,ma(v.y01,v.x01),ma(v.y11,v.x11),!g),o.arc(0,0,f,ma(v.cy+v.y11,v.cx+v.x11),ma(m.cy+m.y11,m.cx+m.x11),!g),o.arc(m.cx,m.cy,M,ma(m.y11,m.x11),ma(m.y01,m.x01),!g))):(o.moveTo(N,O),o.arc(0,0,f,y,b,!g)):o.moveTo(N,O),c>ka&&x>ka?S>ka?(v=Ra(R,z,D,F,c,-S,g),m=Ra(N,O,I,U,c,-S,g),o.lineTo(v.cx+v.x01,v.cy+v.y01),S<C?o.arc(v.cx,v.cy,S,ma(v.y01,v.x01),ma(m.y01,m.x01),!g):(o.arc(v.cx,v.cy,S,ma(v.y01,v.x01),ma(v.y11,v.x11),!g),o.arc(0,0,c,ma(v.cy+v.y11,v.cx+v.x11),ma(m.cy+m.y11,m.cx+m.x11),g),o.arc(m.cx,m.cy,S,ma(m.y11,m.x11),ma(m.y01,m.x01),!g))):o.arc(0,0,c,w,_,g):o.lineTo(R,z)}else o.moveTo(0,0);if(o.closePath(),u)return o=null,u+""||null}return u.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Ta/2;return[ya(r)*n,wa(r)*n]},u.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:ga(+t),u):e},u.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:ga(+e),u):t},u.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:ga(+e),u):n},u.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ga(+e),u):r},u.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:ga(+e),u):a},u.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:ga(+e),u):i},u.padAngle=function(e){return arguments.length?(l="function"==typeof e?e:ga(+e),u):l},u.context=function(e){return arguments.length?(o=null==e?null:e,u):o},u};function La(e){this._context=e}La.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Da=function(e){return new La(e)};function Fa(e){return e[0]}function Ia(e){return e[1]}var Ua=function(){var e=Fa,t=Ia,n=ga(!0),r=null,a=Da,i=null;function l(l){var o,u,s,c=l.length,f=!1;for(null==r&&(i=a(s=Lt())),o=0;o<=c;++o)!(o<c&&n(u=l[o],o,l))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(u,o,l),+t(u,o,l));if(s)return i=null,s+""||null}return l.x=function(t){return arguments.length?(e="function"==typeof t?t:ga(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:ga(+e),l):t},l.defined=function(e){return arguments.length?(n="function"==typeof e?e:ga(!!e),l):n},l.curve=function(e){return arguments.length?(a=e,null!=r&&(i=a(r)),l):a},l.context=function(e){return arguments.length?(null==e?r=i=null:i=a(r=e),l):r},l};function $a(){this._=null}function Ba(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Ha(e,t){var n=t,r=t.R,a=n.U;a?a.L===n?a.L=r:a.R=r:e._=r,r.U=a,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function ja(e,t){var n=t,r=t.L,a=n.U;a?a.L===n?a.L=r:a.R=r:e._=r,r.U=a,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function Va(e){for(;e.L;)e=e.L;return e}$a.prototype={constructor:$a,insert:function(e,t){var n,r,a;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=Va(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(a=r.R)&&a.C?(n.C=a.C=!1,r.C=!0,e=r):(e===n.R&&(Ha(this,n),n=(e=n).U),n.C=!1,r.C=!0,ja(this,r)):(a=r.L)&&a.C?(n.C=a.C=!1,r.C=!0,e=r):(e===n.L&&(ja(this,n),n=(e=n).U),n.C=!1,r.C=!0,Ha(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,a=e.U,i=e.L,l=e.R;if(n=i?l?Va(l):i:l,a?a.L===e?a.L=n:a.R=n:this._=n,i&&l?(r=n.C,n.C=e.C,n.L=i,i.U=n,n!==l?(a=n.U,n.U=e.U,e=n.R,a.L=e,n.R=l,l.U=n):(n.U=a,a=n,e=n.R)):(r=e.C,e=n),e&&(e.U=a),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===a.L){if((t=a.R).C&&(t.C=!1,a.C=!0,Ha(this,a),t=a.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ja(this,t),t=a.R),t.C=a.C,a.C=t.R.C=!1,Ha(this,a),e=this._;break}}else if((t=a.L).C&&(t.C=!1,a.C=!0,ja(this,a),t=a.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Ha(this,t),t=a.L),t.C=a.C,a.C=t.L.C=!1,ja(this,a),e=this._;break}t.C=!0,e=a,a=a.U}while(!e.C);e&&(e.C=!1)}}};var Wa=$a;function qa(e,t,n,r){var a=[null,null],i=pi.push(a)-1;return a.left=e,a.right=t,n&&Qa(a,e,t,n),r&&Qa(a,t,e,r),di[e.index].halfedges.push(i),di[t.index].halfedges.push(i),a}function Ya(e,t,n){var r=[t,n];return r.left=e,r}function Qa(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function Xa(e,t,n,r,a){var i,l=e[0],o=e[1],u=l[0],s=l[1],c=0,f=1,d=o[0]-u,h=o[1]-s;if(i=t-u,d||!(i>0)){if(i/=d,d<0){if(i<c)return;i<f&&(f=i)}else if(d>0){if(i>f)return;i>c&&(c=i)}if(i=r-u,d||!(i<0)){if(i/=d,d<0){if(i>f)return;i>c&&(c=i)}else if(d>0){if(i<c)return;i<f&&(f=i)}if(i=n-s,h||!(i>0)){if(i/=h,h<0){if(i<c)return;i<f&&(f=i)}else if(h>0){if(i>f)return;i>c&&(c=i)}if(i=a-s,h||!(i<0)){if(i/=h,h<0){if(i>f)return;i>c&&(c=i)}else if(h>0){if(i<c)return;i<f&&(f=i)}return!(c>0||f<1)||(c>0&&(e[0]=[u+c*d,s+c*h]),f<1&&(e[1]=[u+f*d,s+f*h]),!0)}}}}}function Ka(e,t,n,r,a){var i=e[1];if(i)return!0;var l,o,u=e[0],s=e.left,c=e.right,f=s[0],d=s[1],h=c[0],p=c[1],g=(f+h)/2,v=(d+p)/2;if(p===d){if(g<t||g>=r)return;if(f>h){if(u){if(u[1]>=a)return}else u=[g,n];i=[g,a]}else{if(u){if(u[1]<n)return}else u=[g,a];i=[g,n]}}else if(o=v-(l=(f-h)/(p-d))*g,l<-1||l>1)if(f>h){if(u){if(u[1]>=a)return}else u=[(n-o)/l,n];i=[(a-o)/l,a]}else{if(u){if(u[1]<n)return}else u=[(a-o)/l,a];i=[(n-o)/l,n]}else if(d<p){if(u){if(u[0]>=r)return}else u=[t,l*t+o];i=[r,l*r+o]}else{if(u){if(u[0]<t)return}else u=[r,l*r+o];i=[t,l*t+o]}return e[0]=u,e[1]=i,!0}function Ga(e,t){var n=e.site,r=t.left,a=t.right;return n===a&&(a=r,r=n),a?Math.atan2(a[1]-r[1],a[0]-r[0]):(n===r?(r=t[1],a=t[0]):(r=t[0],a=t[1]),Math.atan2(r[0]-a[0],a[1]-r[1]))}function Za(e,t){return t[+(t.left!==e.site)]}function Ja(e,t){return t[+(t.left===e.site)]}var ei,ti=[];function ni(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,a=e.site,i=n.site;if(r!==i){var l=a[0],o=a[1],u=r[0]-l,s=r[1]-o,c=i[0]-l,f=i[1]-o,d=2*(u*f-s*c);if(!(d>=-vi)){var h=u*u+s*s,p=c*c+f*f,g=(f*h-s*p)/d,v=(u*p-c*h)/d,m=ti.pop()||new function(){Ba(this),this.x=this.y=this.arc=this.site=this.cy=null};m.arc=e,m.site=a,m.x=g+l,m.y=(m.cy=v+o)+Math.sqrt(g*g+v*v),e.circle=m;for(var y=null,b=hi._;b;)if(m.y<b.y||m.y===b.y&&m.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}hi.insert(y,m),y||(ei=m)}}}}function ri(e){var t=e.circle;t&&(t.P||(ei=t.N),hi.remove(t),ti.push(t),Ba(t),e.circle=null)}var ai=[];function ii(e){var t=ai.pop()||new function(){Ba(this),this.edge=this.site=this.circle=null};return t.site=e,t}function li(e){ri(e),fi.remove(e),ai.push(e),Ba(e)}function oi(e){var t=e.circle,n=t.x,r=t.cy,a=[n,r],i=e.P,l=e.N,o=[e];li(e);for(var u=i;u.circle&&Math.abs(n-u.circle.x)<gi&&Math.abs(r-u.circle.cy)<gi;)i=u.P,o.unshift(u),li(u),u=i;o.unshift(u),ri(u);for(var s=l;s.circle&&Math.abs(n-s.circle.x)<gi&&Math.abs(r-s.circle.cy)<gi;)l=s.N,o.push(s),li(s),s=l;o.push(s),ri(s);var c,f=o.length;for(c=1;c<f;++c)s=o[c],u=o[c-1],Qa(s.edge,u.site,s.site,a);u=o[0],(s=o[f-1]).edge=qa(u.site,s.site,null,a),ni(u),ni(s)}function ui(e){for(var t,n,r,a,i=e[0],l=e[1],o=fi._;o;)if((r=si(o,l)-i)>gi)o=o.L;else{if(!((a=i-ci(o,l))>gi)){r>-gi?(t=o.P,n=o):a>-gi?(t=o,n=o.N):t=n=o;break}if(!o.R){t=o;break}o=o.R}!function(e){di[e.index]={site:e,halfedges:[]}}(e);var u=ii(e);if(fi.insert(t,u),t||n){if(t===n)return ri(t),n=ii(t.site),fi.insert(u,n),u.edge=n.edge=qa(t.site,u.site),ni(t),void ni(n);if(n){ri(t),ri(n);var s=t.site,c=s[0],f=s[1],d=e[0]-c,h=e[1]-f,p=n.site,g=p[0]-c,v=p[1]-f,m=2*(d*v-h*g),y=d*d+h*h,b=g*g+v*v,_=[(v*y-h*b)/m+c,(d*b-g*y)/m+f];Qa(n.edge,s,p,_),u.edge=qa(s,e,null,_),n.edge=qa(e,p,null,_),ni(t),ni(n)}else u.edge=qa(t.site,u.site)}}function si(e,t){var n=e.site,r=n[0],a=n[1],i=a-t;if(!i)return r;var l=e.P;if(!l)return-1/0;var o=(n=l.site)[0],u=n[1],s=u-t;if(!s)return o;var c=o-r,f=1/i-1/s,d=c/s;return f?(-d+Math.sqrt(d*d-2*f*(c*c/(-2*s)-u+s/2+a-i/2)))/f+r:(r+o)/2}function ci(e,t){var n=e.N;if(n)return si(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var fi,di,hi,pi,gi=1e-6,vi=1e-12;function mi(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function yi(e,t){return t[1]-e[1]||t[0]-e[0]}function bi(e,t){var n,r,a,i=e.sort(yi).pop();for(pi=[],di=new Array(e.length),fi=new Wa,hi=new Wa;;)if(a=ei,i&&(!a||i[1]<a.y||i[1]===a.y&&i[0]<a.x))i[0]===n&&i[1]===r||(ui(i),n=i[0],r=i[1]),i=e.pop();else{if(!a)break;oi(a.arc)}if(function(){for(var e,t,n,r,a=0,i=di.length;a<i;++a)if((e=di[a])&&(r=(t=e.halfedges).length)){var l=new Array(r),o=new Array(r);for(n=0;n<r;++n)l[n]=n,o[n]=Ga(e,pi[t[n]]);for(l.sort((function(e,t){return o[t]-o[e]})),n=0;n<r;++n)o[n]=t[l[n]];for(n=0;n<r;++n)t[n]=o[n]}}(),t){var l=+t[0][0],o=+t[0][1],u=+t[1][0],s=+t[1][1];!function(e,t,n,r){for(var a,i=pi.length;i--;)Ka(a=pi[i],e,t,n,r)&&Xa(a,e,t,n,r)&&(Math.abs(a[0][0]-a[1][0])>gi||Math.abs(a[0][1]-a[1][1])>gi)||delete pi[i]}(l,o,u,s),function(e,t,n,r){var a,i,l,o,u,s,c,f,d,h,p,g,v=di.length,m=!0;for(a=0;a<v;++a)if(i=di[a]){for(l=i.site,o=(u=i.halfedges).length;o--;)pi[u[o]]||u.splice(o,1);for(o=0,s=u.length;o<s;)p=(h=Ja(i,pi[u[o]]))[0],g=h[1],f=(c=Za(i,pi[u[++o%s]]))[0],d=c[1],(Math.abs(p-f)>gi||Math.abs(g-d)>gi)&&(u.splice(o,0,pi.push(Ya(l,h,Math.abs(p-e)<gi&&r-g>gi?[e,Math.abs(f-e)<gi?d:r]:Math.abs(g-r)<gi&&n-p>gi?[Math.abs(d-r)<gi?f:n,r]:Math.abs(p-n)<gi&&g-t>gi?[n,Math.abs(f-n)<gi?d:t]:Math.abs(g-t)<gi&&p-e>gi?[Math.abs(d-t)<gi?f:e,t]:null))-1),++s);s&&(m=!1)}if(m){var y,b,_,w=1/0;for(a=0,m=null;a<v;++a)(i=di[a])&&(_=(y=(l=i.site)[0]-e)*y+(b=l[1]-t)*b)<w&&(w=_,m=i);if(m){var x=[e,t],k=[e,r],T=[n,r],E=[n,t];m.halfedges.push(pi.push(Ya(l=m.site,x,k))-1,pi.push(Ya(l,k,T))-1,pi.push(Ya(l,T,E))-1,pi.push(Ya(l,E,x))-1)}}for(a=0;a<v;++a)(i=di[a])&&(i.halfedges.length||delete di[a])}(l,o,u,s)}this.edges=pi,this.cells=di,fi=hi=pi=di=null}function _i(e,t,n){this.k=e,this.x=t,this.y=n}bi.prototype={constructor:bi,polygons:function(){var e=this.edges;return this.cells.map((function(t){var n=t.halfedges.map((function(n){return Za(t,e[n])}));return n.data=t.site.data,n}))},triangles:function(){var e=[],t=this.edges;return this.cells.forEach((function(n,r){if(i=(a=n.halfedges).length)for(var a,i,l,o=n.site,u=-1,s=t[a[i-1]],c=s.left===o?s.right:s.left;++u<i;)l=c,c=(s=t[a[u]]).left===o?s.right:s.left,l&&c&&r<l.index&&r<c.index&&mi(o,l,c)<0&&e.push([o.data,l.data,c.data])})),e},links:function(){return this.edges.filter((function(e){return e.right})).map((function(e){return{source:e.left.data,target:e.right.data}}))},find:function(e,t,n){for(var r,a,i=this,l=i._found||0,o=i.cells.length;!(a=i.cells[l]);)if(++l>=o)return null;var u=e-a.site[0],s=t-a.site[1],c=u*u+s*s;do{a=i.cells[r=l],l=null,a.halfedges.forEach((function(n){var r=i.edges[n],o=r.left;if(o!==a.site&&o||(o=r.right)){var u=e-o[0],s=t-o[1],f=u*u+s*s;f<c&&(c=f,l=o.index)}}))}while(null!==l);return i._found=r,null==n||c<=n*n?a.site:null}},Math.SQRT2,_i.prototype={constructor:_i,scale:function(e){return 1===e?this:new _i(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new _i(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new _i(1,0,0),_i.prototype;var wi=n(0),xi=n.n(wi);function ki(e,t,n,r,a){return(n-t)*(e-r)/(a-r)+t}var Ti,Ei,Ci=function(e){return Object(r.useEffect)((function(){!function(e){var t=e.w<e.h?"vw":"vh",n=.4*Math.min(e.w,e.h),r=n*(e.cutout/100),a=n*(e.value_label_padding/100),i=n+e.arm,l=e.angle*Math.PI*2/360,o=e.spinner/150,s=n*o<r?r:n*o;void 0===e.target?null!=e.range?e.range[1]:Math.round(1.3*Math.max(value)):null!=e.range?e.range[1]:Math.round(1.3*Math.max(value,target)),"none"===e.trellis_by?(pa(".viz > *").remove(),pa(".".concat(e.cleanup)).remove(),pa("[class^='subgauge']").remove()):(pa(".gauge").remove(),pa(".".concat(e.cleanup)).remove(),u(e.trellis_limit,pa("[class^='subgauge']").size()+1).forEach((function(e){pa(".subgauge".concat(e)).remove()}))),te(".viz").style("overflow-x","hidden").style("overflow-y","hidden").style("position","fixed").attr("height","100%");var c=te(".viz").append("svg");c.attr("width",e.w).attr("height",e.h).attr("id","svg-viz").attr("class",e.cleanup).attr("preserveAspectRatio","xMidYMid meet").attr("viewBox","".concat(e.w/-2," ").concat(e.h/-2," ").concat(e.w," ").concat(e.h));var f=c.append("g").attr("id","g-viz"),d=za().innerRadius(r).outerRadius(n).startAngle(-l).endAngle(l),h=(f.append("path").attr("class","gauge_background").attr("d",d).attr("fill",e.gauge_background).attr("stroke","none"),ki(e.value||e.range[0],0,1,e.range[0],e.range[1])),p=(2*e.angle*h-e.angle)*Math.PI*2/360,g=e.angle<90?-1:1;if("progress"===e.gauge_fill_type){var v=za().innerRadius(r).outerRadius(n).startAngle(-l).endAngle(p);f.append("path").attr("class","gaugeFill").attr("d",v).attr("fill",e.color).attr("stroke","".concat(e.color)).attr("stroke-width","1px")}else if("segment"===e.gauge_fill_type){var m=e.fill_colors.length;e.fill_colors.map((function(t,a){var i=a/m,l=(2*e.angle*i-e.angle)*Math.PI*2/360,o=(a+1)/m,u=(2*e.angle*o-e.angle)*Math.PI*2/360,s=za().innerRadius(r).outerRadius(n).startAngle(l).endAngle(u);f.append("path").attr("class","gaugeFill-".concat(a)).attr("d",s).attr("fill",e.fill_colors[a]).attr("stroke","".concat(e.fill_colors[a])).attr("stroke-width","1px")}))}else if("progress-gradient"===e.gauge_fill_type){var y=1/e.fill_colors.length,b=Math.floor(h/y);b=h>=1?e.fill_colors.length-1:b,v=za().innerRadius(r).outerRadius(n).startAngle(-l).endAngle(p),f.append("path").attr("class","gaugeFill").attr("d",v).attr("fill",e.fill_colors[b]).attr("stroke","".concat(e.fill_colors[b])).attr("stroke-width","1px")}var _=za().innerRadius(.97*r).outerRadius(i).startAngle(-l).endAngle(-l),w=f.append("path").attr("class","leftArmArc").attr("d",_).attr("fill",e.gauge_background).attr("stroke",e.gauge_background).attr("stroke-width",e.arm_weight/5);f.append("text").attr("class","minLabel").text("".concat(void 0===e.range_formatting||""===e.range_formatting?e.range[0]:xi.a.format(e.range_formatting,e.range[0]))).style("font-size","".concat(e.label_font).concat(t)).style("font-family","Arial, Helvetica, sans-serif").style("fill",e.range_color).style("font-weight","bold").attr("dx","-".concat(e.range_x,"em")).attr("dy","".concat(-1*e.range_y,"em")).attr("transform","translate(".concat(w.node().getBBox().x," ").concat(0+g*w.node().getBBox().height-(e.angle>90?90-e.angle:0),")"));var x=za().innerRadius(.97*r).outerRadius(i).startAngle(l).endAngle(l),k=f.append("path").attr("class","rightArmArc").attr("d",x).attr("fill",e.gauge_background).attr("stroke",e.gauge_background).attr("stroke-width",e.arm_weight/5);f.append("text").attr("class","maxLabel").text("".concat(void 0===e.range_formatting||""===e.range_formatting?e.range[1]:xi.a.format(e.range_formatting,e.range[1]))).style("font-size","".concat(e.label_font).concat(t)).style("font-family","Arial, Helvetica, sans-serif").style("fill",e.range_color).style("font-weight","bold").attr("dx","".concat(e.range_x-1,"em")).attr("dy","".concat(-1*e.range_y,"em")).attr("transform","translate(".concat(k.node().getBBox().x+k.node().getBBox().width," ").concat(0+g*k.node().getBBox().height-(e.angle>90?90-e.angle:0),")"));var T=function(e){if("spinner"===e)return za().innerRadius(0).outerRadius(s).startAngle(p).endAngle(p);if("needle"===e){var t=(f=p-Math.PI/2)-55*Math.PI/60,n=f+55*Math.PI/60,a=s*Math.cos(f),i=s*Math.sin(f),l=.1*s*Math.cos(t),o=.1*s*Math.sin(t),u=.1*s*Math.cos(n),c=.1*s*Math.sin(n);return Ua()([[a,i],[l,o],[u,c]])+"Z"}var f;return"auto"===e?(t=(f=p-Math.PI/2)-55*Math.PI/60,n=f+55*Math.PI/60,a=s*Math.cos(f),i=s*Math.sin(f),l=.15*s*Math.cos(t),o=.15*s*Math.sin(t),u=.15*s*Math.cos(n),c=.15*s*Math.sin(n),Ua()([[a,i],[l,o],[u,c]])+"Z"):"inner"===e?za().innerRadius(r).outerRadius(s).startAngle(p).endAngle(p):void 0}(e.spinner_type),E=f.append("path").attr("class","spinnerArm").attr("d",T).attr("fill",e.spinner_background).attr("stroke",e.spinner_background).attr("stroke-width",e.spinner_weight/10);if(function(t){"spinner"===t?f.append("circle").attr("class","spinnerCenter").attr("r",e.spinner_weight/10).style("fill",e.spinner_background):"needle"===t||"inner"===t||"auto"===t&&f.append("circle").attr("class","spinnerCenter").attr("r",e.spinner_weight/2).style("stroke",e.gauge_background).style("stroke-weight","2px").style("fill","#FFF")}(e.spinner_type),E.on("click",(function(t,n){LookerCharts.Utils.openDrillMenu({links:e.value_links,event:event})})),"off"!==e.target_source)if("both"===e.target_label_type){var C=(R=ki(e.target,0,1,e.range[0],e.range[1]))<.5?-1:1,S=(2*e.angle*R-e.angle)*Math.PI*2/360,M=za().innerRadius(r).outerRadius(n).startAngle(S).endAngle(S),P=(f.append("path").attr("class","targetSpinner").attr("d",M).attr("stroke",e.target_background).attr("stroke-width",e.target_weight/10).attr("stroke-dasharray","".concat(e.target_length," ").concat(e.target_gap)),za().innerRadius(n*e.target_label_padding).outerRadius(n*e.target_label_padding).startAngle(S).endAngle(S)),A=f.append("path").attr("class","targetLabel").attr("d",P);(N=f.append("text").attr("class","targetValue").text("".concat(e.target_rendered," ").concat(e.target_label)).style("font-size","".concat(e.target_label_font).concat(t)).style("font-family","Arial, Helvetica, sans-serif").attr("dy",".35em")).attr("x",(function(){return C>0?A.node().getBBox().x:A.node().getBBox().x-N.node().getBBox().width})).attr("y",(function(){return A.node().getBBox().y}))}else if("dboth"===e.target_label_type){var N;C=(R=ki(e.target,0,1,e.range[0],e.range[1]))<.5?-1:1,S=(2*e.angle*R-e.angle)*Math.PI*2/360,M=za().innerRadius(r).outerRadius(n).startAngle(S).endAngle(S),f.append("path").attr("class","targetSpinner").attr("d",M).attr("stroke",e.target_background).attr("stroke-width",e.target_weight/10).attr("stroke-dasharray","".concat(e.target_length," ").concat(e.target_gap)),P=za().innerRadius(n*e.target_label_padding).outerRadius(n*e.target_label_padding).startAngle(S).endAngle(S),A=f.append("path").attr("class","targetLabel").attr("d",P),(N=f.append("text").attr("class","targetValue").text("".concat(e.target_rendered," ").concat(e.target_dimension)).style("font-size","".concat(e.target_label_font).concat(t)).style("font-family","Arial, Helvetica, sans-serif").attr("dy",".35em")).attr("x",(function(){return C>0?A.node().getBBox().x:A.node().getBBox().x-N.node().getBBox().width})).attr("y",(function(){return A.node().getBBox().y}))}else if("dim"===e.target_label_type)C=(R=ki(e.target,0,1,e.range[0],e.range[1]))<.5?-1:1,S=(2*e.angle*R-e.angle)*Math.PI*2/360,M=za().innerRadius(r).outerRadius(n).startAngle(S).endAngle(S),f.append("path").attr("class","targetSpinner").attr("d",M).attr("stroke",e.target_background).attr("stroke-width",e.target_weight/10).attr("stroke-dasharray","".concat(e.target_length," ").concat(e.target_gap)),P=za().innerRadius(n*e.target_label_padding).outerRadius(n*e.target_label_padding).startAngle(S).endAngle(S),A=f.append("path").attr("class","targetLabel").attr("d",P),(O=f.append("text").attr("class","targetValue").text("".concat(e.target_dimension)).style("font-size","".concat(e.target_label_font).concat(t)).style("font-family","Arial, Helvetica, sans-serif").attr("dy",".35em")).attr("x",(function(){return C>0?A.node().getBBox().x:A.node().getBBox().x-O.node().getBBox().width})).attr("y",(function(){return A.node().getBBox().y}));else if("value"===e.target_label_type)C=(R=ki(e.target,0,1,e.range[0],e.range[1]))<.5?-1:1,S=(2*e.angle*R-e.angle)*Math.PI*2/360,M=za().innerRadius(r).outerRadius(n).startAngle(S).endAngle(S),f.append("path").attr("class","targetSpinner").attr("d",M).attr("stroke",e.target_background).attr("stroke-width",e.target_weight/10).attr("stroke-dasharray","".concat(e.target_length," ").concat(e.target_gap)),P=za().innerRadius(n*e.target_label_padding).outerRadius(n*e.target_label_padding).startAngle(S).endAngle(S),A=f.append("path").attr("class","targetLabel").attr("d",P),(O=f.append("text").attr("class","targetValue").text("".concat(e.target_rendered)).style("font-size","".concat(e.target_label_font).concat(t)).style("font-family","Arial, Helvetica, sans-serif").attr("dy",".35em")).attr("x",(function(){return C>0?A.node().getBBox().x:A.node().getBBox().x-O.node().getBBox().width})).attr("y",(function(){return A.node().getBBox().y}));else if("label"===e.target_label_type){var O;C=(R=ki(e.target,0,1,e.range[0],e.range[1]))<.5?-1:1,S=(2*e.angle*R-e.angle)*Math.PI*2/360,M=za().innerRadius(r).outerRadius(n).startAngle(S).endAngle(S),f.append("path").attr("class","targetSpinner").attr("d",M).attr("stroke",e.target_background).attr("stroke-width",e.target_weight/10).attr("stroke-dasharray","".concat(e.target_length," ").concat(e.target_gap)),P=za().innerRadius(n*e.target_label_padding).outerRadius(n*e.target_label_padding).startAngle(S).endAngle(S),A=f.append("path").attr("class","targetLabel").attr("d",P),(O=f.append("text").attr("class","targetValue").text("".concat(e.target_label)).style("font-size","".concat(e.target_label_font).concat(t)).style("font-family","Arial, Helvetica, sans-serif").attr("dy",".35em")).attr("x",(function(){return C>0?A.node().getBBox().x:A.node().getBBox().x-O.node().getBBox().width})).attr("y",(function(){return A.node().getBBox().y}))}else if("nolabel"===e.target_label_type){var R;C=(R=ki(e.target,0,1,e.range[0],e.range[1]))<.5?-1:1,S=(2*e.angle*R-e.angle)*Math.PI*2/360,M=za().innerRadius(r).outerRadius(n).startAngle(S).endAngle(S),f.append("path").attr("class","targetSpinner").attr("d",M).attr("stroke",e.target_background).attr("stroke-width",e.target_weight/10).attr("stroke-dasharray","".concat(e.target_length," ").concat(e.target_gap))}var z=null,L=null;if("value"===e.value_label_type)(F=f.append("text").attr("class","gaugeValue").text("".concat(e.value_rendered)).style("font-size","".concat(e.value_label_font).concat(t)).style("font-family","Arial, Helvetica, sans-serif").style("color","#282828")).attr("transform","translate(".concat(0-F.node().getBBox().width/2," ").concat(0+a,")")),z=F;else if("label"===e.value_label_type)(D=f.append("text").attr("class","gaugeValueLabel").text("".concat(e.value_label)).style("font-size","".concat(.55*e.value_label_font).concat(t)).style("font-family","Arial, Helvetica, sans-serif").style("color","#707070").attr("dy","1em")).attr("transform","translate(".concat(0-D.node().getBBox().width/2," ").concat(0+a,")")),z=D;else if("both"===e.value_label_type){var D;(F=f.append("text").attr("class","gaugeValue").text("".concat(e.value_rendered)).style("font-size","".concat(e.value_label_font).concat(t)).style("font-family","Arial, Helvetica, sans-serif").style("color","#282828")).attr("transform","translate(".concat(0-F.node().getBBox().width/2," ").concat(0+a,")")),z=F,(D=f.append("text").attr("class","gaugeValueLabel").text("".concat(e.value_label)).style("font-size","".concat(.55*e.value_label_font).concat(t)).style("font-family","Arial, Helvetica, sans-serif").style("color","#707070").attr("dy","1.2em")).attr("transform","translate(".concat(0-D.node().getBBox().width/2," ").concat(0+a,")")),L=D}else if("dim"===e.value_label_type)(I=f.append("text").attr("class","gaugeValueLabel").text("".concat(e.value_dimension)).style("font-size","".concat(.55*e.value_label_font).concat(t)).style("font-family","Arial, Helvetica, sans-serif").style("color","#707070").attr("dy","1em")).attr("transform","translate(".concat(0-I.node().getBBox().width/2," ").concat(0+a,")")),z=I;else if("dboth"===e.value_label_type){var F,I;(F=f.append("text").attr("class","gaugeValue").text("".concat(e.value_rendered)).style("font-size","".concat(e.value_label_font).concat(t)).style("font-family","Arial, Helvetica, sans-serif").style("color","#282828")).attr("transform","translate(".concat(0-F.node().getBBox().width/2," ").concat(0+a,")")),z=F,(I=f.append("text").attr("class","gaugeValueLabel").text("".concat(e.value_dimension)).style("font-size","".concat(.55*e.value_label_font).concat(t)).style("font-family","Arial, Helvetica, sans-serif").style("color","#707070").attr("dy","1.2em")).attr("transform","translate(".concat(0-I.node().getBBox().width/2," ").concat(0+a,")")),L=I}null!==z&&z.on("click",(function(t,n){LookerCharts.Utils.openDrillMenu({links:e.value_links,event:event})})),null!==L&&L.on("click",(function(t,n){LookerCharts.Utils.openDrillMenu({links:e.value_links,event:event})}));var U=.85*e.w/f.node().getBBox().width,$=.85*e.h/f.node().getBBox().height;"none"===e.trellis_by?f.attr("transform","scale(".concat(Math.min(U,$),")translate(0 ").concat((e.h-f.node().getBBox().height)/4,")")):f.attr("transform","scale(1.2)translate(0 ".concat((e.h-f.node().getBBox().height)/4,")"))}(e)}),[e]),a.a.createElement("div",{className:"viz"})},Si=n(8),Mi=n.n(Si);function Pi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ai(e,t,n,r){var a,i;if(e=void 0===e.length?[e]:e,a=t.fields.dimension_like,i=t.fields.measure_like,a.length>0){var l=a[0].name;e[0][l]}"dim"!==n.value_label_type&&"dboth"!==n.value_label_type||0===a.length&&r.addError({title:"Invalid Input.",message:"Add a dimension or modify label type."}),"dim"!==n.target_label_type&&"dboth"!==n.target_label_type||0===a.length&&r.addError({title:"Invalid Input.",message:"Add a dimension or modify label type."});var o=i[0].name,u=e[0][o],s=void 0===i[0].label_short?i[0].label:i[0].label_short,c=void 0===u.rendered?u.value:u.rendered;if("second"===n.target_source){i.length<2&&r.addError({title:"Invalid Input.",message:"Add a second measure or modify target label source."});var f=i[1].name,d=(m=e[0][f]).value,h=void 0===i[1].label_short?i[1].label:i[1].label_short,p=void 0===m.rendered?m.value:m.rendered,g=void 0===n.target_value_format||""===n.target_value_format?p:xi.a.format(n.target_value_format,d);if(a.length>0)var v=void 0===n.target_label_override||""===n.target_label_override?e[0][l].value:n.target_label_override}else if("first"===n.target_source){var m;"row"===n.viz_trellis_by&&r.addError({title:"Invalid Input.",message:"This option cannot be applied to a trellis. Please modify target label source."}),e.length<2&&r.addError({title:"Invalid Input.",message:"No value to target. Add a second row or modify label type."}),d=(m=e[1][o]).value,p=void 0===m.rendered||""===m.rendered?d:m.rendered,h=s,g=void 0===n.target_value_format||""===n.target_value_format?p:xi.a.format(n.target_value_format,d),a.length>0&&(v=void 0===n.target_label_override||""===n.target_label_override?e[1][l].value:n.target_label_override)}else"override"===n.target_source&&(void 0!==n.target_value_override&&""!==n.target_value_override||r.addError({title:"Invalid Input.",message:"No target override. Add an override value or modify target label source."}),p=d=parseFloat(n.target_value_override),h=n.target_label_override,g=void 0===n.target_value_format||""===n.target_value_format?p:xi.a.format(n.target_value_format,d),a.length>0&&(v=void 0===n.target_label_override||""===n.target_label_override?e[0][l].value:n.target_label_override));return{value:u.value,value_links:u.links,value_label:void 0===n.value_label_override||""===n.value_label_override?s:n.value_label_override,value_rendered:void 0===n.value_formatting||""===n.value_formatting?c:xi.a.format(n.value_formatting,u.value),value_dimension:a.length>0?void 0===n.value_label_override||""===n.value_label_override?e[0][l].value:n.value_label_override:null,target:d,target_rendered:g,target_label:void 0===n.target_label_override||""===n.target_label_override?h:n.target_label_override,target_dimension:v}}looker.plugins.visualizations.add({id:"gauge",label:"Gauge Visualization",primary:!0,options:{arm_length:{type:"number",label:"Arm Length",default:9,section:"Plot",display:"range",min:0,max:50,step:.5,order:200,display_size:"half"},arm_weight:{type:"number",label:"Thickness",default:48,section:"Plot",display:"range",min:0,max:100,order:300,display_size:"half"},spinner_length:{type:"number",label:"Pointer Length",default:153,section:"Plot",display:"range",min:0,max:200,order:400,display_size:"half"},spinner_weight:(Ti={type:"number",label:"Thickness",default:73,section:"Plot",display:"range",min:0,max:100},Pi(Ti,"default",25),Pi(Ti,"order",500),Pi(Ti,"display_size","half"),Ti),target_length:{type:"number",label:"Target Length",default:10,section:"Target",display:"range",min:0,max:30,order:600,display_size:"third"},target_gap:{type:"number",label:"Dash Gap",default:10,section:"Target",display:"range",min:0,max:30,order:610,display_size:"third"},target_weight:(Ei={type:"number",label:"Thickness",default:8,section:"Target",display:"range",min:0,max:100},Pi(Ei,"default",25),Pi(Ei,"order",700),Pi(Ei,"display_size","third"),Ei),range_min:{type:"number",label:"Range Min Override",section:"Plot",order:30,default:0,display_size:"half"},range_max:{type:"number",label:"Range Max Override",section:"Plot",order:31,default:null,display_size:"half"},value_label_type:{type:"string",label:"Value Label Type",display:"select",section:"Value",values:[{"Value and Measure Label":"both"},{"Value and Dimension":"dboth"},{"Only Value":"value"},{"Only Label":"label"},{"Only Dimension":"dim"},{None:"none"}],default:"both",order:40},value_label_font:{type:"number",label:"Value Label Font Size",section:"Value",default:12,order:50},value_formatting:{type:"string",label:"Value Formatting Override",section:"Value",order:51},value_label_override:{type:"string",label:"Value Label Override",section:"Value",order:60},value_label_padding:{type:"number",label:"Value Label Padding",default:45,section:"Value",display:"range",min:0,max:120,order:70},target_source:{type:"string",label:"Target Source",display:"select",section:"Target",values:[{"First Measure":"first"},{"Second Measure":"second"},{Override:"override"},{"No Target":"off"}],default:"off",order:80},target_label_type:{type:"string",label:"Target Label Type",display:"select",section:"Target",values:[{"Value and Label":"both"},{"Only Value":"value"},{"Only Label":"label"},{"Value and Dimension":"dboth"},{"Only Dimension":"dim"},{"No Label":"nolabel"}],default:"both",order:90},target_label_font:{type:"number",label:"Target Label Font Size",section:"Target",default:3,order:100},target_label_override:{type:"string",label:"Target Label Override",section:"Target",order:120},target_value_override:{type:"string",label:"Target Value Override",section:"Target",order:110},target_value_format:{type:"string",label:"Target Value Formatting",section:"Target",order:120},label_font_size:{type:"number",label:"Range Label Font Size",section:"Plot",default:3,order:140},range_formatting:{type:"string",label:"Range Label Value Formatting",section:"Plot",order:150},spinner_type:{type:"string",label:"Spinner Type",display:"select",section:"Plot",values:[{Needle:"needle"},{Spinner:"spinner"},{Automotive:"auto"},{Inner:"inner"}],default:"needle",order:151},fill_color:{type:"string",label:"Gauge Fill Color",section:"Style",display:"color",default:"#0092E5",order:10},background_color:{type:"string",label:"Background Color",default:"#CECECE",section:"Style",display:"color",order:20},spinner_color:{type:"string",label:"Pointer Color",default:"#282828",section:"Style",display:"color",order:30},range_color:{type:"string",label:"Range Label Color",default:"#282828",section:"Style",display:"color",order:40},gauge_fill_type:{type:"string",label:"Gauge Fill Type",display:"select",section:"Style",values:[{Progress:"progress"},{"Progress Segment":"progress-gradient"},{Segment:"segment"}],default:"progress",order:1},fill_colors:{type:"array",label:"Gauge Segment Colors",section:"Style",default:["#7FCDAE","#ffed6f","#EE7772"],display:"colors",order:11},viz_trellis_by:{type:"string",label:"Trellis By",display:"select",section:"Plot",values:[{None:"none"},{Row:"row"},{Pivot:"pivot"}],default:"none",order:0},trellis_rows:{type:"number",label:"Trellis Rows",section:"Plot",display_size:"half",default:2,order:1},trellis_cols:{type:"number",label:"Trellis Columns",section:"Plot",display_size:"half",default:2,order:2},angle:{type:"number",label:"Radial Gauge Angle",default:90,section:"Plot",display:"range",min:10,max:170,order:10},cutout:{type:"number",label:"Radial Gauge Cutout",default:30,section:"Plot",display:"range",min:0,max:100,order:20},range_x:{type:"number",label:"Range Width",default:1,section:"Plot",display:"range",min:-2,max:4,step:.1,order:800},range_y:{type:"number",label:"Range Height",default:1,section:"Plot",display:"range",min:-2,max:4,step:.1,order:900},target_label_padding:{type:"number",label:"Target Label Padding",default:1.06,section:"Target",display:"range",min:1,max:2,step:.01,order:130}},create:function(e,t){this.container=e,this.container.className="gauge-vis"},updateAsync:function(e,t,n,r,i,l){var o=this,u={top:20,right:20,bottom:20,left:20},s=t.clientWidth,c=t.clientHeight;if(this.clearErrors(),!e.length)return this.chart=Mi.a.render(a.a.createElement(a.a.Fragment,null),this.container),void this.addError({title:"No Results"});if(r.fields.dimension_like.length>1||r.fields.measure_like.length>2)this.addError({title:"Invalid Input.",message:"This chart accepts up to 1 dimension and 2 measures."});else if("pivot"!==n.viz_trellis_by||void 0!==r.pivots){var f;void 0===n.arm_length&&function(){for(var e in o.options)void 0===n[e]&&(n[e]=o.options[e].default)}();var d=[];if("row"===n.viz_trellis_by){var h=Math.min(n.trellis_cols*n.trellis_rows,e.length);e.forEach((function(t,a){f=Ai(e[a],r,n,o),a<=h-1&&d.push(f)}))}else if("pivot"===n.viz_trellis_by){var p=Math.min(n.trellis_cols*n.trellis_rows,r.pivots.length);r.pivots.forEach((function(t,a){f=function(e,t,n,r,a){var i,l;if(e=void 0===e.length?[e]:e,i=t.fields.dimension_like,l=t.fields.measure_like,i.length>0){var o=i[0].name;e[0][o][a]}var u=l[0].name,s=e[0][u][a],c=void 0===l[0].label_short?l[0].label:l[0].label_short,f=void 0===s.rendered?s.value:s.rendered;if("second"===n.target_source){l.length<2&&r.addError({title:"Invalid Input.",message:"Add a second measure or modify target label source."});var d=l[1].name,h=(y=e[0][d][a]).value,p=void 0===l[1].label_short?l[1].label:l[1].label_short,g=void 0===y.rendered?y.value:y.rendered,v=void 0===n.target_value_format||""===n.target_value_format?g:xi.a.format(n.target_value_format,h);if(i.length>0)var m=void 0===n.target_label_override||""===n.target_label_override?a:n.target_label_override}else if("first"===n.target_source){var y;"row"===n.viz_trellis_by?r.addError({title:"Invalid Input.",message:"This option cannot be applied to a trellis. Please modify target label source."}):e.length<2&&r.addError({title:"Invalid Input.",message:"No value to target. Add a second row or modify label type."}),h=(y=e[1][u][a]).value,g=void 0===y.rendered||""===y.rendered?h:y.rendered,p=c,v=void 0===n.target_value_format||""===n.target_value_format?g:xi.a.format(n.target_value_format,h),i.length>0&&(m=void 0===n.target_label_override||""===n.target_label_override?a:n.target_label_override)}else"override"===n.target_source&&(void 0!==n.target_value_override&&""!==n.target_value_override||r.addError({title:"Invalid Input.",message:"No target override. Add an override value or modify target label source."}),g=h=parseFloat(n.target_value_override),p=n.target_label_override,v=void 0===n.target_value_format||""===n.target_value_format?g:xi.a.format(n.target_value_format,h),i.length>0&&(m=void 0===n.target_label_override||""===n.target_label_override?a:n.target_label_override));return{value:s.value,value_links:s.links,value_label:void 0===n.value_label_override||""===n.value_label_override?c:n.value_label_override,value_rendered:void 0===n.value_formatting||""===n.value_formatting?f:xi.a.format(n.value_formatting,s.value),value_dimension:void 0===n.value_label_override||""===n.value_label_override?a:n.value_label_override,target:h,target_rendered:v,target_label:void 0===n.target_label_override||""===n.target_label_override?p:n.target_label_override,target_dimension:m}}(e,r,n,o,t.key),a<=p-1&&d.push(f)}))}else f=Ai(e,r,n,this);if(null===n.range_max){var g=Math.max(Math.ceil(f.value),f.target?Math.ceil(f.target):0),v=(g+"").length,m=Math.pow(10,v-1),y=Math.ceil(g/m)*m;n.range_max=y}var b=this;"none"===n.viz_trellis_by?(b.radialProps={cleanup:"gauge",trellis_by:n.viz_trellis_by,w:s,h:c,limiting_aspect:s<c?"vw":"vh",margin:u,style:n.style,angle:n.angle,cutout:n.cutout,color:n.fill_color,gauge_background:n.background_color,range:[n.range_min,n.range_max],value:f.value>n.range_max?n.range_max:f.value,value_rendered:f.value_rendered,target:f.target>n.range_max?n.range_max:f.target,value_label:f.value_label,target_label:f.target_label,value_dimension:f.value_dimension,target_dimension:f.target_dimension,target_rendered:f.target_rendered,value_links:f.value_links,label_font:n.label_font_size,range_formatting:n.range_formatting,range_x:n.range_x,range_y:n.range_y,gauge_fill_type:n.gauge_fill_type,fill_colors:n.fill_colors,range_color:n.range_color,spinner:n.spinner_length,spinner_weight:n.spinner_weight,spinner_background:n.spinner_color,spinner_type:n.spinner_type,arm:n.arm_length,arm_weight:n.arm_weight,target_length:n.target_length,target_gap:n.target_gap,target_weight:n.target_weight,target_background:"#282828",target_source:n.target_source,value_label_type:n.value_label_type,value_label_font:n.value_label_font,value_label_padding:n.value_label_padding,target_label_type:n.target_label_type,target_label_font:n.target_label_font,target_label_padding:n.target_label_padding,wrap_width:100},b.chart=Mi.a.render(a.a.createElement(Ci,b.radialProps),b.container)):d.forEach((function(t,i){var l="row"===n.viz_trellis_by?Math.min(n.trellis_cols*n.trellis_rows,e.length):Math.min(n.trellis_cols*n.trellis_rows,r.pivots.length);b.radialProps={cleanup:"subgauge".concat(i),trellis_by:n.viz_trellis_by,trellis_limit:l,w:s/n.trellis_cols,h:c/n.trellis_rows,limiting_aspect:s<c?"vw":"vh",margin:u,style:n.style,angle:n.angle,cutout:n.cutout,color:n.fill_color,gauge_background:n.background_color,range:[n.range_min,n.range_max],value:t.value>n.range_max?n.range_max:t.value,value_rendered:t.value_rendered,target:t.target>n.range_max?n.range_max:t.target,value_label:t.value_label,target_label:t.target_label,value_dimension:t.value_dimension,target_dimension:t.target_dimension,target_rendered:t.target_rendered,value_links:t.value_links,label_font:n.label_font_size,range_formatting:n.range_formatting,range_x:n.range_x,range_y:n.range_y,gauge_fill_type:n.gauge_fill_type,fill_colors:n.fill_colors,range_color:n.range_color,spinner:n.spinner_length,spinner_weight:n.spinner_weight,spinner_background:n.spinner_color,spinner_type:n.spinner_type,arm:n.arm_length,arm_weight:n.arm_weight,target_length:n.target_length,target_gap:n.target_gap,target_weight:n.target_weight,target_background:"#282828",target_source:n.target_source,value_label_type:n.value_label_type,value_label_font:n.value_label_font,value_label_padding:n.value_label_padding,target_label_type:n.target_label_type,target_label_font:n.target_label_font,target_label_padding:n.target_label_padding,wrap_width:100},b.chart=Mi.a.render(a.a.createElement(Ci,b.radialProps),b.container)})),l()}else this.addError({title:"Invalid Input.",message:"Add pivots or change trellis type."})}})},8:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(64)}})}));