1import{R as F,d as Lo,r as A,j as f}from"./vendor-react-CdSkYK6A.js";import{V as dt,s as lt,B as gl,k as _a}from"./index-Bkpzml6u.js";import{f as me,_ as Fo,a as vl,b as Bo,c as xl,i as yt,T as Ii,p as nt,L as ze,g as Vo,d as Li,e as qo,D as yl,C as wl,h as Dt,j as At,S as bl,A as jl,k as _l,l as Na,m as Nl,n as Mt,o as Sl,u as El,G as kl,q as In,r as Pl,s as Ln,t as Al,v as kn,w as Sa,x as Ml,y as $l,P,R as Ye,z as Nt,X as St,Y as Et,B as He,E as Pn}from"./generateCategoricalChart-CSwFREue.js";import{A as Ol,a as Rl,b as Cl,c as Tl,d as Dl,e as zl,f as Il,g as Ll,h as Fl}from"./alert-dialog-DsrN9C58.js";import{ao as Bl,V as Vl,E as ct,e as Ir,a2 as ql,an as Ea,D as Lr,R as ka,ap as Kl,aq as Pa,ad as Gl,ak as Aa,ar as Xl,am as Zl,as as Fr,at as Ul,au as Wl,s as Yl,av as Hl,c as Jl}from"./vendor-icons-B6Pw7kvU.js";import{A as Br,a as Vr,B as qr}from"./AreaChart-BwswwAEX.js";import{s as Ql,a as Kr}from"./vendor-date-BEqYJ1wf.js";import"./vendor-radix-DZ5WJj_n.js";import"./vendor-supabase-C0gOjPry.js";import"./vendor-query-Cv6EpE7x.js";import"./index-C7yKKq-w.js";var ec=["points","className","baseLinePoints","connectNulls"];function $t(){return $t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$t.apply(this,arguments)}function tc(e,t){if(e==null)return{};var n=nc(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nc(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ma(e){return oc(e)||ac(e)||ic(e)||rc()}function rc(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ic(e,t){if(e){if(typeof e=="string")return ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ti(e,t)}}function ac(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oc(e){if(Array.isArray(e))return ti(e)}function ti(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $a=function(t){return t&&t.x===+t.x&&t.y===+t.y},sc=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){$a(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),$a(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},an=function(t,n){var r=sc(t);n&&(r=[r.reduce(function(a,o){return[].concat(Ma(a),Ma(o))},[])]);var i=r.map(function(a){return a.reduce(function(o,s,c){return"".concat(o).concat(c===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},lc=function(t,n,r){var i=an(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(an(n.reverse(),r).slice(1))},cc=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,a=t.connectNulls,o=tc(t,ec);if(!n||!n.length)return null;var s=dt("recharts-polygon",r);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",u=lc(n,i,a);return F.createElement("g",{className:s},F.createElement("path",$t({},me(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),c?F.createElement("path",$t({},me(o,!0),{fill:"none",d:an(n,a)})):null,c?F.createElement("path",$t({},me(o,!0),{fill:"none",d:an(i,a)})):null)}var l=an(n,a);return F.createElement("path",$t({},me(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",className:s,d:l}))},uc=Fo,fc=vl,dc=Bo;function hc(e,t){return e&&e.length?uc(e,dc(t),fc):void 0}var pc=hc;const mc=Lo(pc);var gc=Fo,vc=Bo,xc=xl;function yc(e,t){return e&&e.length?gc(e,vc(t),xc):void 0}var wc=yc;const bc=Lo(wc);
2var jc=["cx","cy","angle","ticks","axisLine"],_c=["ticks","tick","angle","tickFormatter","stroke"];function Lt(e){"@babel/helpers - typeof";return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(e)}function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},on.apply(this,arguments)}function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Oa(Object(n),!0).forEach(function(r){Sr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ra(e,t){if(e==null)return{};var n=Nc(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nc(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Sc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Go(r.key),r)}}function Ec(e,t,n){return t&&Ca(e.prototype,t),n&&Ca(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kc(e,t,n){return t=Un(t),Pc(e,Ko()?Reflect.construct(t,n||[],Un(e).constructor):t.apply(e,n))}function Pc(e,t){if(t&&(Lt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ac(e)}function Ac(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ko(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ko=function(){return!!e})()}function Un(e){return Un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Un(e)}function Mc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ni(e,t)}function ni(e,t){return ni=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ni(e,t)}function Sr(e,t,n){return t=Go(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Go(e){var t=$c(e,"string");return Lt(t)=="symbol"?t:t+""}function $c(e,t){if(Lt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Er=function(e){function t(){return Sc(this,t),kc(this,t,arguments)}return Mc(t,e),Ec(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,a=this.props,o=a.angle,s=a.cx,c=a.cy;return nt(s,c,i,o)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.angle,s=r.ticks,c=mc(s,function(l){return l.coordinate||0}),u=bc(s,function(l){return l.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.angle,s=r.ticks,c=r.axisLine,u=R
2a(r,jc),l=s.reduce(function(m,v){return[Math.min(m[0],v.coordinate),Math.max(m[1],v.coordinate)]},[1/0,-1/0]),d=nt(i,a,l[0],o),h=nt(i,a,l[1],o),p=pt(pt(pt({},me(u,!1)),{},{fill:"none"},me(c,!1)),{},{x1:d.x,y1:d.y,x2:h.x,y2:h.y});return F.createElement("line",on({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,c=i.tickFormatter,u=i.stroke,l=Ra(i,_c),d=this.getTickTextAnchor(),h=me(l,!1),p=me(o,!1),m=a.map(function(v,j){var y=r.getTickValueCoord(v),N=pt(pt(pt(pt({textAnchor:d,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},h),{},{stroke:"none",fill:u},p),{},{index:j},y),{},{payload:v});return F.createElement(ze,on({className:dt("recharts-polar-radius-axis-tick",Vo(o)),key:"tick-".concat(v.coordinate)},Li(r.props,v,j)),t.renderTickItem(o,N,c?c(v.value,j):v.value))});return F.createElement(ze,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.axisLine,o=r.tick;return!i||!i.length?null:F.createElement(ze,{className:dt("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),qo.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,a){var o;return F.isValidElement(r)?o=F.cloneElement(r,i):yt(r)?o=r(i):o=F.createElement(Ii,on({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(A.PureComponent);Sr(Er,"displayName","PolarRadiusAxis");Sr(Er,"axisType","radiusAxis");Sr(Er,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine
2:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Ft(e){"@babel/helpers - typeof";return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ft(e)}function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wt.apply(this,arguments)}function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ta(Object(n),!0).forEach(function(r){kr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Da(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zo(r.key),r)}}function Rc(e,t,n){return t&&Da(e.prototype,t),n&&Da(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cc(e,t,n){return t=Wn(t),Tc(e,Xo()?Reflect.construct(t,n||[],Wn(e).constructor):t.apply(e,n))}function Tc(e,t){if(t&&(Ft(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dc(e)}function Dc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xo=function(){return!!e})()}function Wn(e){return Wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wn(e)}function zc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ri(e,t)}
2function ri(e,t){return ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ri(e,t)}function kr(e,t,n){return t=Zo(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zo(e){var t=Ic(e,"string");return Ft(t)=="symbol"?t:t+""}function Ic(e,t){if(Ft(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ft(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lc=Math.PI/180,za=1e-5,Pr=function(e){function t(){return Oc(this,t),Cc(this,t,arguments)}return zc(t,e),Rc(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,a=i.cx,o=i.cy,s=i.radius,c=i.orientation,u=i.tickSize,l=u||8,d=nt(a,o,s,r.coordinate),h=nt(a,o,s+(c==="inner"?-1:1)*l,r.coordinate);return{x1:d.x,y1:d.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,a=Math.cos(-r.coordinate*Lc),o;return a>za?o=i==="outer"?"start":"end":a<-za?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.radius,s=r.axisLine,c=r.axisLineType,u=mt(mt({},me(this.props,!1)),{},{fill:"none"},me(s,!1));if(c==="circle")return F.createElement(yl,wt({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var l=this.props.ticks,d=l.map(function(h){return nt(i,a,o,h.coordinate)});return F.createElement(cc,wt({className:"recharts-polar-angle-axis-line"},u,{points:d}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,c=i.tickFormatter,u=i.stroke,l=me(this.props,!1),d=me(o,!1),h=mt(mt({},l),{},{fill:"none"},me(s,!1)),p=a.map(function(m,v){var j=r.getTickLineCoord(m),y=r.getTickTextAnchor(m),N=mt(mt(mt({textAnchor:y},l),{},{stroke:"none",fill:u},d),{},{index:v,payload:m,x:j.x2,y:j.y2});return F.createElement(ze,wt({className:dt("recharts-polar-angle-axis-tick",Vo(o)),key:"tick-".concat(m.coordinate)},Li(r.props,m,v)),s&&F.createElement("line",wt({className:"recharts-polar-angle-axis-tick-line"},h,j)),o&&t.renderTickItem(o,N,c?c(m.value,v):m.value))});return F.createElement(ze,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.radius,o=r.axisLine;return a<=0||!i||!i.length?null:F.createElement(ze,{className:dt("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,a){var o;return F.isValidElement(r)?o=F.cloneElement(r,i):yt(r)?o=r(i):o=F.createElement(Ii,wt({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(A.PureComponent);kr(Pr,"displayName","PolarAngleAxis");kr(Pr,"axisType","angleAxis");kr(Pr,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Fn;function Bt(e){"@babel/helpers - typeof";return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bt(e)}function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}function Ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ia(Object(n),!0).forEach(function(r){Oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ia(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function La(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wo(r.key),r)}}function Bc(e,t,n){return t&&La(e.prototype,t),n&&La(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vc(e,t,n){return t=Yn(t),qc(e,Uo()?Reflect.construct(t,n||[],Yn(e).constructor):t.apply(e,n))}function qc(e,t){if(t&&(Bt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kc(e)}function Kc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uo=function(){return!!e})()}
2function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yn(e)}function Gc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ii(e,t)}function ii(e,t){return ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ii(e,t)}function Oe(e,t,n){return t=Wo(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wo(e){var t=Xc(e,"string");return Bt(t)=="symbol"?t:t+""}function Xc(e,t){if(Bt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fe=function(e){function t(n){var r;return Fc(this,t),r=Vc(this,t,[n]),Oe(r,"pieRef",null),Oe(r,"sectorRefs",[]),Oe(r,"id",El("recharts-pie-")),Oe(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),yt(i)&&i()}),Oe(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),yt(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Gc(t,e),Bc(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,s=a.labelLine,c=a.dataKey,u=a.valueKey,l=me(this.props,!1),d=me(o,!1),h=me(s,!1),p=o&&o.offsetRadius||20,m=r.map(function(v,j){var y=(v.startAngle+v.endAngle)/2,N=nt(v.cx,v.cy,v.outerRadius+p,y),w=ae(ae(ae(ae({},l),v),{},{stroke:"none"},d),{},{index:j,textAnchor:t.getTextAnchor(N.x,v.cx)},N),_=ae(ae(ae(ae({},l),v),{},{fill:"none",stroke:v.fill},h),{},{index:j,points:[nt(v.cx,v.cy,v.outerRadius,y),N]}),E=c;return Dt(c)&&Dt(u)?E="value":Dt(c)&&(E=u),F.createElement(ze,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(j)},s&&t.renderLabelLineItem(s,_,"line"),t.renderLabelItem(o,w,At(v,E)))});return F.createElement(ze,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(r){var i=this,a=this.props,o=a.activeShape,s=a.blendStroke,c=a.inactiveShape;return r.map(function(u,l){if(u?.startAngle===0&&u?.endAngle===0&&r.length!==1)return null;var d=i.isActiveIndex(l),h=c&&i.hasActiveIndex()?c:null,p=d?o:h,m=ae(ae({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return F.createElement(ze,Ot({ref:function(j){j&&!i.sectorRefs.includes(j)&&i.sectorRefs.push(j)},tabIndex:-1,className:"recharts-pie-sector"},Li(i.props,u,l),{key:"sector-".concat(u?.startAngle,"-").concat(u?.endAngle,"-").concat(u.midAngle,"-").concat(l)}),F.createElement(bl,Ot({option:p,isActive:d,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,a=i.sectors,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,d=this.state,h=d.prevSectors,p=d.prevIsAnimationActive;return F.createElement(jl,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var v=m.t,j=[],y=a&&a[0],N=y.startAngle;return a.forEach(function(w,_){var E=h&&h[_],k=_>0?_l(w,"paddingAngle",0):0;if(E){var T=Na(E.endAngle-E.startAngle,w.endAngle-w.startAngle),$=ae(ae({},w),{},{startAngle:N+k,endAngle:N+T(v)+k});j.push($),N=$.endAngle}else{var q=w.endAngle,L=w.startAngle,z=Na(0,q-L),Z=z(v),W=ae(ae({},w),{},{startAngle:N+k,endAngle:N+Z+k});j.push(W),N=W.endAngle}}),F.createElement(ze,null,r.renderSectorsStatically(j))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;
2r.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,a=r.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Nl(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,c=i.label,u=i.cx,l=i.cy,d=i.innerRadius,h=i.outerRadius,p=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!Mt(u)||!Mt(l)||!Mt(d)||!Mt(h))return null;var v=dt("recharts-pie",s);return F.createElement(ze,{tabIndex:this.props.rootTabIndex,className:v,ref:function(y){r.pieRef=y}},this.renderSectors(),c&&this.renderLabels(o),qo.renderCallByParent(this.props,null,!1),(!p||m)&&Sl.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,a){if(F.isValidElement(r))return F.cloneElement(r,i);if(yt(r))return r(i);var o=dt("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return F.createElement(wl,Ot({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,i,a){if(F.isValidElement(r))return F.cloneElement(r,i);var o=a;if(yt(r)&&(o=r(i),F.isValidElement(o)))return o;var s=dt("recharts-pie-label-text",typeof r!="boolean"&&!yt(r)?r.className:"");return F.createElement(Ii,Ot({},i,{alignmentBaseline:"middle",className:s}),o)}}])}(A.PureComponent);Fn=Fe;Oe(Fe,"displayName","Pie");Oe(Fe,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!kl.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Oe(Fe,"parseDeltaAngle",function(e,t){var n=In(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Oe(Fe,"getRealPieData",function(e){var t=e.data,n=e.children,r=me(e,!1),i=Pl(n,Ln);return t&&t.length?t.map(function(a,o){return ae(ae(ae({payload:a},r),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return ae(ae({},r),a.props)}):[]});Oe(Fe,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,a=t.height,o=Al(i,a),s=r+kn(e.cx,i,i/2),c=n+kn(e.cy,a,a/2),u=kn(e.innerRadius,o,0),l=kn(e.outerRadius,o,o*.8),d=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:c,innerRadius:u,outerRadius:l,maxRadius:d}});Oe(Fe,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?ae(ae({},t.type.defaultProps),t.props):t.props,i=Fn.getRealPieData(r);if(!i||!i.length)return null;var a=r.cornerRadius,o=r.startAngle,s=r.endAngle,c=r.paddingAngle,u=r.dataKey,l=r.nameKey,d=r.valueKey,h=r.tooltipType,p=Math.abs(r.minAngle),m=Fn.parseCoordinateOfPie(r,n),v=Fn.parseDeltaAngle(o,s),j=Math.abs(v),y=u;Dt(u)&&Dt(d)?(Sa(!1,`Use "dataKey" to specify the value of pie,
3 the props "valueKey" will be deprecated in 1.1.0`),y="value"):Dt(u)&&(Sa(!1,`Use "dataKey" to specify the value of pie, 4 the props "valueKey" will be deprecated in 1.1.0`),y=d);var N=i.filter(function($){return At($,y,0)!==0}).length,w=(j>=360?N:N-1)*c,_=j-N*p-w,E=i.reduce(function($,q){var L=At(q,y,0);return $+(Mt(L)?L:0)},0),k;if(E>0){var T;k=i.map(function($,q){var L=At($,y,0),z=At($,l,q),Z=(Mt(L)?L:0)/E,W;q?W=T.endAngle+In(v)*c*(L!==0?1:0):W=o;var g=W+In(v)*((L!==0?p:0)+Z*_),x=(W+g)/2,b=(m.innerRadius+m.outerRadius)/2,M=[{name:z,value:L,payload:$,dataKey:y,type:h}],R=nt(m.cx,m.cy,b,x);return T=ae(ae(ae({percent:Z,cornerRadius:a,name:z,tooltipPayload:M,midAngle:x,middleRadius:b,tooltipPosition:R},$),m),{},{value:At($,y),startAngle:W,endAngle:g,payload:$,paddingAngle:In(v)*c}),T})}return ae(ae({},m),{},{sectors:k,data:i})});var Gr=Ml({chartName:"PieChart",GraphicalChild:Fe,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Pr},{axisType:"radiusAxis",AxisComp:Er}],formatAxisMap:$l,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});class ve{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const a=n[i],o=t+a,s=Math.abs(t)<Math.abs(a)?t-(o-a):a-(o-t);s&&(n[r++]=s),t=o}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,a,o=0;if(n>0){for(o=t[--n];n>0&&(r=o,i=t[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&t[n-1]<0||a>0&&t[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}function*Zc(e){for(const t of e)yield*t}function Yo(e){return Array.from(Zc(e))}function Rt(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}var B=1e-6,dn=1e-12,U=Math.PI,fe=U/2,Hn=U/4,be=U*2,re=180/U,V=U/180,H=Math.abs,Zt=Math.atan,je=Math.atan2,D=Math.cos,An=Math.ceil,Ho=Math.exp,ai=Math.hypot,Jn=Math.log,Xr=Math.pow,O=Math.sin,Ce=Math.sign||function(e){return e>0?1:e<0?-1:0},he=Math.sqrt,Fi=Math.tan;function Jo(e){return e>1?0:e<-1?U:Math.acos(e)}function _e(e){return e>1?fe:e<-1?-fe:Math.asin(e)}function Fa(e){return(e=O(e/2))*e}function le(){}function Qn(e,t){e&&Va.hasOwnProperty(e.type)&&Va[e.type](e,t)}var Ba={Feature:function(e,t){Qn(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)Qn(n[r].geometry,t)}},Va={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){oi(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)oi(n[r],t,0)},Polygon:function(e,t){qa(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)qa(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)Qn(n[r],t)}};function oi(e,t,n){var r=-1,i=e.length-n,a;for(t.lineStart();++r<i;)a=e[r],t.point(a[0],a[1],a[2]);t.lineEnd()}function qa(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)oi(e[n],t,1);t.polygonEnd()}function Ie(e,t){e&&Ba.hasOwnProperty(e.type)?Ba[e.type](e,t):Qn(e,t)}var er=new ve,tr=new ve,Qo,es,si,li,ci,Xe={point:le,lineStart:le,lineEnd:le,polygonStart:function(){er=new ve,Xe.lineStart=Uc,Xe.lineEnd=Wc},polygonEnd:function(){var e=+er;tr.add(e<0?be+e:e),this.lineStart=this.lineEnd=this.point=le},sphere:function(){tr.add(be)}};function Uc(){Xe.point=Yc}function Wc(){ts(Qo,es)}function Yc(e,t){Xe.point=ts,Qo=e,es=t,e*=V,t*=V,si=e,li=D(t=t/2+Hn),ci=O(t)}function ts(e,t){e*=V,t*=V,t=t/2+Hn;var n=e-si,r=n>=0?1:-1,i=r*n,a=D(t),o=O(t),s=ci*o,c=li*a+s*D(i),u=s*r*O(i);er.add(je(u,c)),si=e,li=a,ci=o}function Hc(e){return tr=new ve,Ie(e,Xe),tr*2}function nr(e){return[je(e[1],e[0]),_e(e[2])]}function bt(e){var t=e[0],n=e[1],r=D(n);return[r*D(t),r*O(t),O(n)]}function Mn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Vt(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Zr(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function $n(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function rr(e){var t=he(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var se,Ee,ue,Me,xt,ns,rs,zt,sn,ut,rt,Je={point:ui,lineStart:Ka,lineEnd:Ga,polygonStart:function(){Je.point=as,Je.lineStart=Jc,Je.lineEnd=Qc,sn=new ve,Xe.polygonStart()},polygonEnd:function(){Xe.polygonEnd(),Je.point=ui,Je.lineStart=Ka,Je.lineEnd=Ga,er<0?(se=-(ue=180),Ee=-(Me=90)):sn>B?Me=90:sn<-B&&(Ee=-90),rt[0]=se,rt[1]=ue},sphere:function(){se=-(ue=180),Ee=-(Me=90)}};
vendor: 6,935 bytes, line 4
4function ui(e,t){ut.push(rt=[se=e,ue=e]),t<Ee&&(Ee=t),t>Me&&(Me=t)}function is(e,t){var n=bt([e*V,t*V]);if(zt){var r=Vt(zt,n),i=[r[1],-r[0],0],a=Vt(i,r);rr(a),a=nr(a);var o=e-xt,s=o>0?1:-1,c=a[0]*re*s,u,l=H(o)>180;l^(s*xt<c&&c<s*e)?(u=a[1]*re,u>Me&&(Me=u)):(c=(c+360)%360-180,l^(s*xt<c&&c<s*e)?(u=-a[1]*re,u<Ee&&(Ee=u)):(t<Ee&&(Ee=t),t>Me&&(Me=t))),l?e<xt?Ae(se,e)>Ae(se,ue)&&(ue=e):Ae(e,ue)>Ae(se,ue)&&(se=e):ue>=se?(e<se&&(se=e),e>ue&&(ue=e)):e>xt?Ae(se,e)>Ae(se,ue)&&(ue=e):Ae(e,ue)>Ae(se,ue)&&(se=e)}else ut.push(rt=[se=e,ue=e]);t<Ee&&(Ee=t),t>Me&&(Me=t),zt=n,xt=e}function Ka(){Je.point=is}function Ga(){rt[0]=se,rt[1]=ue,Je.point=ui,zt=null}function as(e,t){if(zt){var n=e-xt;sn.add(H(n)>180?n+(n>0?360:-360):n)}else ns=e,rs=t;Xe.point(e,t),is(e,t)}function Jc(){Xe.lineStart()}function Qc(){as(ns,rs),Xe.lineEnd(),H(sn)>B&&(se=-(ue=180)),rt[0]=se,rt[1]=ue,zt=null}function Ae(e,t){return(t-=e)<0?t+360:t}function eu(e,t){return e[0]-t[0]}function Xa(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function tu(e){var t,n,r,i,a,o,s;if(Me=ue=-(se=Ee=1/0),ut=[],Ie(e,Je),n=ut.length){for(ut.sort(eu),t=1,r=ut[0],a=[r];t<n;++t)i=ut[t],Xa(r,i[0])||Xa(r,i[1])?(Ae(r[0],i[1])>Ae(r[0],r[1])&&(r[1]=i[1]),Ae(i[0],r[1])>Ae(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,n=a.length-1,t=0,r=a[n];t<=n;r=i,++t)i=a[t],(s=Ae(r[1],i[0]))>o&&(o=s,se=i[0],ue=r[1])}return ut=rt=null,se===1/0||Ee===1/0?[[NaN,NaN],[NaN,NaN]]:[[se,Ee],[ue,Me]]}var Yt,ir,ar,or,sr,lr,cr,ur,fi,di,hi,os,ss,xe,ye,we,Le={sphere:le,point:Bi,lineStart:Za,lineEnd:Ua,polygonStart:function(){Le.lineStart=iu,Le.lineEnd=au},polygonEnd:function(){Le.lineStart=Za,Le.lineEnd=Ua}};function Bi(e,t){e*=V,t*=V;var n=D(t);bn(n*D(e),n*O(e),O(t))}function bn(e,t,n){++Yt,ar+=(e-ar)/Yt,or+=(t-or)/Yt,sr+=(n-sr)/Yt}function Za(){Le.point=nu}function nu(e,t){e*=V,t*=V;var n=D(t);xe=n*D(e),ye=n*O(e),we=O(t),Le.point=ru,bn(xe,ye,we)}function ru(e,t){e*=V,t*=V;var n=D(t),r=n*D(e),i=n*O(e),a=O(t),o=je(he((o=ye*a-we*i)*o+(o=we*r-xe*a)*o+(o=xe*i-ye*r)*o),xe*r+ye*i+we*a);ir+=o,lr+=o*(xe+(xe=r)),cr+=o*(ye+(ye=i)),ur+=o*(we+(we=a)),bn(xe,ye,we)}function Ua(){Le.point=Bi}function iu(){Le.point=ou}function au(){ls(os,ss),Le.point=Bi}function ou(e,t){os=e,ss=t,e*=V,t*=V,Le.point=ls;var n=D(t);xe=n*D(e),ye=n*O(e),we=O(t),bn(xe,ye,we)}function ls(e,t){e*=V,t*=V;var n=D(t),r=n*D(e),i=n*O(e),a=O(t),o=ye*a-we*i,s=we*r-xe*a,c=xe*i-ye*r,u=ai(o,s,c),l=_e(u),d=u&&-l/u;fi.add(d*o),di.add(d*s),hi.add(d*c),ir+=l,lr+=l*(xe+(xe=r)),cr+=l*(ye+(ye=i)),ur+=l*(we+(we=a)),bn(xe,ye,we)}function su(e){Yt=ir=ar=or=sr=lr=cr=ur=0,fi=new ve,di=new ve,hi=new ve,Ie(e,Le);var t=+fi,n=+di,r=+hi,i=ai(t,n,r);return i<dn&&(t=lr,n=cr,r=ur,ir<B&&(t=ar,n=or,r=sr),i=ai(t,n,r),i<dn)?[NaN,NaN]:[je(n,t)*re,_e(r/i)*re]}function kt(e){return function(){return e}}function pi(e,t){function n(r,i){return r=e(r,i),t(r[0],r[1])}return e.invert&&t.invert&&(n.invert=function(r,i){return r=t.invert(r,i),r&&e.invert(r[0],r[1])}),n}function mi(e,t){return[H(e)>U?e+Math.round(-e/be)*be:e,t]}mi.invert=mi;function Vi(e,t,n){return(e%=be)?t||n?pi(Ya(e),Ha(t,n)):Ya(e):t||n?Ha(t,n):mi}function Wa(e){return function(t,n){return t+=e,[t>U?t-be:t<-U?t+be:t,n]}}function Ya(e){var t=Wa(e);return t.invert=Wa(-e),t}function Ha(e,t){var n=D(e),r=O(e),i=D(t),a=O(t);function o(s,c){var u=D(c),l=D(s)*u,d=O(s)*u,h=O(c),p=h*n+l*r;return[je(d*i-p*a,l*n-h*r),_e(p*i+d*a)]}return o.invert=function(s,c){var u=D(c),l=D(s)*u,d=O(s)*u,h=O(c),p=h*i-d*a;return[je(d*i+h*a,l*n+p*r),_e(p*n-l*r)]},o}function cs(e){e=Vi(e[0]*V,e[1]*V,e.length>2?e[2]*V:0);function t(n){return n=e(n[0]*V,n[1]*V),n[0]*=re,n[1]*=re,n}return t.invert=function(n){return n=e.invert(n[0]*V,n[1]*V),n[0]*=re,n[1]*=re,n},t}function us(e,t,n,r,i,a){if(n){var o=D(t),s=O(t),c=r*n;i==null?(i=t+r*be,a=t-c/2):(i=Ja(o,i),a=Ja(o,a),(r>0?i<a:i>a)&&(i+=r*be));for(var u,l=i;r>0?l>a:l<a;l-=c)u=nr([o,-s*D(l),-s*O(l)]),e.point(u[0],u[1])}}function Ja(e,t){t=bt(t),t[0]-=e,rr(t);var n=Jo(-t[1]);return((-t[2]<0?-n:n)+be-B)%be}function lu(){var e=kt([0,0]),t=kt(90),n=kt(6),r,i,a={point:o};function o(c,u){r.push(c=i(c,u)),c[0]*=re,c[1]*=re}function s(){var c=e.apply(this,arguments),u=t.apply(this,arguments)*V,l=n.apply(this,arguments)*V;return r=[],i=Vi(-c[0]*V,-c[1]*V,0).invert,us(a,u,l,1),c={type:"Polygon",coordinates:[r]},r=i=null,c}return s.center=function(c){return arguments.length?(e=typeof c=="function"?c:kt([+c[0],+c[1]]),s):e},s.radius=function(c){return arguments.length?(t=typeof c=="function"?c:kt(+c),s):t},s.precision=function(c){return arguments.length?(n=typeof c=="function"?c:kt(+c),s):n},s}function fs(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:le,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Bn(e,t){return H(e[0]-t[0])<B&&H(e[1]-t[1])<B}function On(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function ds(e,t,n,r,i){var a=[],o=[],s,c;if(e.forEach(function(m){if(!((v=m.length-1)<=0)){var v,j=m[0],y=m[v],N;if(Bn(j,y)){if(!j[2]&&!y[2]){for(i.lineStart(),s=0;s<v;++s)i.point((j=m[s])[0],j[1]);i.lineEnd();return}y[0]+=2*B}a.push(N=new On(j,m,null,!0)),o.push(N.o=new On(j,null,N,!1)),a.push(N=new On(y,m,null,!1)),o.push(N.o=new On(y,null,N,!0))}}),!!a.length){for(o.sort(t),Qa(a),Qa(o),s=0,c=o.length;s<c;++s)o[s].e=n=!n;for(var u=a[0],l,d;;){for(var h=u,p=!0;h.v;)if((h=h.n)===u)return;l=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(s=0,c=l.length;s<c;++s)i.point((d=l[s])[0],d[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(l=h.p.z,s=l.length-1;s>=0;--s)i.point((d=l[s])[0],d[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,l=h.z,p=!p}while(!h.v);i.lineEnd()}}}function Qa(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function Ur(e){return H(e[0])<=U?e[0]:Ce(e[0])*((H(e[0])+U)%be-U)}function hs(e,t){var n=Ur(t),r=t[1],i=O(r),a=[O(n),-D(n),0],o=0,s=0,c=new ve;i===1?r=fe+B:i===-1&&(r=-fe-B);for(var u=0,l=e.length;u<l;++u)if(h=(d=e[u]).length)for(var d,h,p=d[h-1],m=Ur(p),v=p[1]/2+Hn,j=O(v),y=D(v),N=0;N<h;++N,m=_,j=k,y=T,p=w){var w=d[N],_=Ur(w),E=w[1]/2+Hn,k=O(E),T=D(E),$=_-m,q=$>=0?1:-1,L=q*$,z=L>U,Z=j*k;if(c.add(je(Z*q*O(L),y*T+Z*D(L))),o+=z?$+q*be:$,z^m>=n^_>=n){var W=Vt(bt(p),bt(w));rr(W);var g=Vt(a,W);rr(g);var x=(z^$>=0?-1:1)*_e(g[2]);(r>x||r===x&&(W[0]||W[1]))&&(s+=z^$>=0?1:-1)}}return(o<-B||o<B&&c<-dn)^s&1}function ps(e,t,n,r){return function(i){var a=t(i),o=fs(),s=t(o),c=!1,u,l,d,h={point:p,lineStart:v,lineEnd:j,polygonStart:function(){h.point=y,h.lineStart=N,h.lineEnd=w,l=[],u=[]},polygonEnd:function(){h.point=p,h.lineStart=v,h.lineEnd=j,l=Yo(l);var _=hs(u,r);l.length?(c||(i.polygonStart(),c=!0),ds(l,uu,_,n,i)):_&&(c||(i.polygonStart(),c=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),c&&(i.polygonEnd(),c=!1),l=u=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};
4function p(_,E){e(_,E)&&i.point(_,E)}function m(_,E){a.point(_,E)}function v(){h.point=m,a.lineStart()}function j(){h.point=p,a.lineEnd()}function y(_,E){d.push([_,E]),s.point(_,E)}function N(){s.lineStart(),d=[]}function w(){y(d[0][0],d[0][1]),s.lineEnd();var _=s.clean(),E=o.result(),k,T=E.length,$,q,L;if(d.pop(),u.push(d),d=null,!!T){if(_&1){if(q=E[0],($=q.length-1)>0){for(c||(i.polygonStart(),c=!0),i.lineStart(),k=0;k<$;++k)i.point((L=q[k])[0],L[1]);i.lineEnd()}return}T>1&&_&2&&E.push(E.pop().concat(E.shift())),l.push(E.filter(cu))}}return h}}function cu(e){return e.length>1}function uu(e,t){return((e=e.x)[0]<0?e[1]-fe-B:fe-e[1])-((t=t.x)[0]<0?t[1]-fe-B:fe-t[1])}const gi=ps(function(){return!0},fu,hu,[-U,-fe]);function fu(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var s=a>0?U:-U,c=H(a-t);H(c-U)<B?(e.point(t,n=(n+o)/2>0?fe:-fe),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(a,n),i=0):r!==s&&c>=U&&(H(t-r)<B&&(t-=r*B),H(a-s)<B&&(a-=s*B),n=du(t,n,a,o),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),i=0),e.point(t=a,n=o),r=s},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function du(e,t,n,r){var i,a,o=O(e-n);return H(o)>B?Zt((O(t)*(a=D(r))*O(n)-O(r)*(i=D(t))*O(e))/(i*a*o)):(t+r)/2}function hu(e,t,n,r){var i;if(e==null)i=n*fe,r.point(-U,i),r.point(0,i),r.point(U,i),r.point(U,0),r.point(U,-i),r.point(0,-i),r.point(-U,-i),r.point(-U,0),r.point(-U,i);else if(H(e[0]-t[0])>B){var a=e[0]<t[0]?U:-U;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function ms(e){var t=D(e),n=6*V,r=t>0,i=H(t)>B;function a(l,d,h,p){us(p,e,n,h,l,d)}function o(l,d){return D(l)*D(d)>t}function s(l){var d,h,p,m,v;return{lineStart:function(){m=p=!1,v=1},point:function(j,y){var N=[j,y],w,_=o(j,y),E=r?_?0:u(j,y):_?u(j+(j<0?U:-U),y):0;if(!d&&(m=p=_)&&l.lineStart(),_!==p&&(w=c(d,N),(!w||Bn(d,w)||Bn(N,w))&&(N[2]=1)),_!==p)v=0,_?(l.lineStart(),w=c(N,d),l.point(w[0],w[1])):(w=c(d,N),l.point(w[0],w[1],2),l.lineEnd()),d=w;else if(i&&d&&r^_){var k;!(E&h)&&(k=c(N,d,!0))&&(v=0,r?(l.lineStart(),l.point(k[0][0],k[0][1]),l.point(k[1][0],k[1][1]),l.lineEnd()):(l.point(k[1][0],k[1][1]),l.lineEnd(),l.lineStart(),l.point(k[0][0],k[0][1],3)))}_&&(!d||!Bn(d,N))&&l.point(N[0],N[1]),d=N,p=_,h=E},lineEnd:function(){p&&l.lineEnd(),d=null},clean:function(){return v|(m&&p)<<1}}}function c(l,d,h){var p=bt(l),m=bt(d),v=[1,0,0],j=Vt(p,m),y=Mn(j,j),N=j[0],w=y-N*N;if(!w)return!h&&l;var _=t*y/w,E=-t*N/w,k=Vt(v,j),T=$n(v,_),$=$n(j,E);Zr(T,$);var q=k,L=Mn(T,q),z=Mn(q,q),Z=L*L-z*(Mn(T,T)-1);if(!(Z<0)){var W=he(Z),g=$n(q,(-L-W)/z);if(Zr(g,T),g=nr(g),!h)return g;var x=l[0],b=d[0],M=l[1],R=d[1],C;b<x&&(C=x,x=b,b=C);var K=b-x,X=H(K-U)<B,Y=X||K<B;if(!X&&R<M&&(C=M,M=R,R=C),Y?X?M+R>0^g[1]<(H(g[0]-x)<B?M:R):M<=g[1]&&g[1]<=R:K>U^(x<=g[0]&&g[0]<=b)){var ne=$n(q,(-L+W)/z);return Zr(ne,T),[g,nr(ne)]}}}function u(l,d){var h=r?e:U-e,p=0;return l<-h?p|=1:l>h&&(p|=2),d<-h?p|=4:d>h&&(p|=8),p}return ps(o,s,a,r?[0,-e]:[-U,e-U])}function pu(e,t,n,r,i,a){var o=e[0],s=e[1],c=t[0],u=t[1],l=0,d=1,h=c-o,p=u-s,m;if(m=n-o,!(!h&&m>0)){if(m/=h,h<0){if(m<l)return;m<d&&(d=m)}else if(h>0){if(m>d)return;m>l&&(l=m)}if(m=i-o,!(!h&&m<0)){if(m/=h,h<0){if(m>d)return;m>l&&(l=m)}else if(h>0){if(m<l)return;m<d&&(d=m)}if(m=r-s,!(!p&&m>0)){if(m/=p,p<0){if(m<l)return;m<d&&(d=m)}else if(p>0){if(m>d)return;m>l&&(l=m)}if(m=a-s,!(!p&&m<0)){if(m/=p,p<0){if(m>d)return;m>l&&(l=m)}else if(p>0){if(m<l)return;m<d&&(d=m)}return l>0&&(e[0]=o+l*h,e[1]=s+l*p),d<1&&(t[0]=o+d*h,t[1]=s+d*p),!0}}}}}var Ht=1e9,Rn=-Ht;function Ar(e,t,n,r){function i(u,l){return e<=u&&u<=n&&t<=l&&l<=r}function a(u,l,d,h){var p=0,m=0;if(u==null||(p=o(u,d))!==(m=o(l,d))||c(u,l)<0^d>0)do h.point(p===0||p===3?e:n,p>1?r:t);while((p=(p+d+4)%4)!==m);else h.point(l[0],l[1])}function o(u,l){return H(u[0]-e)<B?l>0?0:3:H(u[0]-n)<B?l>0?2:1:H(u[1]-t)<B?l>0?1:0:l>0?3:2}function s(u,l){return c(u.x,l.x)}function c(u,l){var d=o(u,1),h=o(l,1);return d!==h?d-h:d===0?l[1]-u[1]:d===1?u[0]-l[0]:d===2?u[1]-l[1]:l[0]-u[0]}return function(u){var l=u,d=fs(),h,p,m,v,j,y,N,w,_,E,k,T={point:$,lineStart:Z,lineEnd:W,polygonStart:L,polygonEnd:z};function $(x,b){i(x,b)&&l.point(x,b)}function q(){for(var x=0,b=0,M=p.length;b<M;++b)for(var R=p[b],C=1,K=R.length,X=R[0],Y,ne,J=X[0],ie=X[1];C<K;++C)Y=J,ne=ie,X=R[C],J=X[0],ie=X[1],ne<=r?ie>r&&(J-Y)*(r-ne)>(ie-ne)*(e-Y)&&++x:ie<=r&&(J-Y)*(r-ne)<(ie-ne)*(e-Y)&&--x;return x}function L(){l=d,h=[],p=[],k=!0}function z(){var x=q(),b=k&&x,M=(h=Yo(h)).length;(b||M)&&(u.polygonStart(),b&&(u.lineStart(),a(null,null,1,u),u.lineEnd()),M&&ds(h,s,x,a,u),u.polygonEnd()),l=u,h=p=m=null}function Z(){T.point=g,p&&p.push(m=[]),E=!0,_=!1,N=w=NaN}function W(){h&&(g(v,j),y&&_&&d.rejoin(),h.push(d.result())),T.point=$,_&&l.lineEnd()}function g(x,b){var M=i(x,b);if(p&&m.push([x,b]),E)v=x,j=b,y=M,E=!1,M&&(l.lineStart(),l.point(x,b));else if(M&&_)l.point(x,b);else{var R=[N=Math.max(Rn,Math.min(Ht,N)),w=Math.max(Rn,Math.min(Ht,w))],C=[x=Math.max(Rn,Math.min(Ht,x)),b=Math.max(Rn,Math.min(Ht,b))];pu(R,C,e,t,n,r)?(_||(l.lineStart(),l.point(R[0],R[1])),l.point(C[0],C[1]),M||l.lineEnd(),k=!1):M&&(l.lineStart(),l.point(x,b),k=!1)}N=x,w=b,_=M}return T}}function mu(){var e=0,t=0,n=960,r=500,i,a,o;return o={stream:function(s){return i&&a===s?i:i=Ar(e,t,n,r)(a=s)},extent:function(s){return arguments.length?(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1],i=a=null,o):[[e,t],[n,r]]}}}var vi,xi,Vn,qn,qt={sphere:le,point:le,lineStart:gu,lineEnd:le,polygonStart:le,polygonEnd:le};function gu(){qt.point=xu,qt.lineEnd=vu}function vu(){qt.point=qt.lineEnd=le}function xu(e,t){e*=V,t*=V,xi=e,Vn=O(t),qn=D(t),qt.point=yu}function yu(e,t){e*=V,t*=V;var n=O(t),r=D(t),i=H(e-xi),a=D(i),o=O(i),s=r*o,c=qn*n-Vn*r*a,u=Vn*n+qn*r*a;vi.add(je(he(s*s+c*c),u)),xi=e,Vn=n,qn=r}function gs(e){return vi=new ve,Ie(e,qt),+vi}var yi=[null,null],wu={type:"LineString",coordinates:yi};function fr(e,t){return yi[0]=e,yi[1]=t,gs(wu)}var eo={Feature:function(e,t){return dr(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(dr(n[r].geometry,t))return!0;return!1}},to={Sphere:function(){return!0},Point:function(e,t){return no(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(no(n[r],t))return!0;return!1},LineString:function(e,t){return ro(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(ro(n[r],t))return!0;return!1},Polygon:function(e,t){return io(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(io(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(dr(n[r],t))return!0;return!1}};function dr(e,t){return e&&to.hasOwnProperty(e.type)?to[e.type](e,t):!1}function no(e,t){return fr(e,t)===0}function ro(e,t){for(var n,r,i,a=0,o=e.length;a<o;a++){if(r=fr(e[a],t),r===0||a>0&&(i=fr(e[a],e[a-1]),i>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<dn*i))return!0;n=r}return!1}function io(e,t){return!!hs(e.map(bu),vs(t))}function bu(e){return e=e.map(vs),e.pop(),e}function vs(e){return[e[0]*V,e[1]*V]}function ju(e,t){return(e&&eo.hasOwnProperty(e.type)?eo[e.type]:dr)(e,t)}
4function ao(e,t,n){var r=Rt(e,t-B,n).concat(t);return function(i){return r.map(function(a){return[i,a]})}}function oo(e,t,n){var r=Rt(e,t-B,n).concat(t);return function(i){return r.map(function(a){return[a,i]})}}function qi(){var e,t,n,r,i,a,o,s,c=10,u=c,l=90,d=360,h,p,m,v,j=2.5;function y(){return{type:"MultiLineString",coordinates:N()}}function N(){return Rt(An(r/l)*l,n,l).map(m).concat(Rt(An(s/d)*d,o,d).map(v)).concat(Rt(An(t/c)*c,e,c).filter(function(w){return H(w%l)>B}).map(h)).concat(Rt(An(a/u)*u,i,u).filter(function(w){return H(w%d)>B}).map(p))}return y.lines=function(){return N().map(function(w){return{type:"LineString",coordinates:w}})},y.outline=function(){return{type:"Polygon",coordinates:[m(r).concat(v(o).slice(1),m(n).reverse().slice(1),v(s).reverse().slice(1))]}},y.extent=function(w){return arguments.length?y.extentMajor(w).extentMinor(w):y.extentMinor()},y.extentMajor=function(w){return arguments.length?(r=+w[0][0],n=+w[1][0],s=+w[0][1],o=+w[1][1],r>n&&(w=r,r=n,n=w),s>o&&(w=s,s=o,o=w),y.precision(j)):[[r,s],[n,o]]},y.extentMinor=function(w){return arguments.length?(t=+w[0][0],e=+w[1][0],a=+w[0][1],i=+w[1][1],t>e&&(w=t,t=e,e=w),a>i&&(w=a,a=i,i=w),y.precision(j)):[[t,a],[e,i]]},y.step=function(w){return arguments.length?y.stepMajor(w).stepMinor(w):y.stepMinor()},y.stepMajor=function(w){return arguments.length?(l=+w[0],d=+w[1],y):[l,d]},y.stepMinor=function(w){return arguments.length?(c=+w[0],u=+w[1],y):[c,u]},y.precision=function(w){return arguments.length?(j=+w,h=ao(a,i,90),p=oo(t,e,j),m=ao(s,o,90),v=oo(r,n,j),y):j},y.extentMajor([[-180,-90+B],[180,90-B]]).extentMinor([[-180,-80-B],[180,80+B]])}function _u(){return qi()()}function Nu(e,t){var n=e[0]*V,r=e[1]*V,i=t[0]*V,a=t[1]*V,o=D(r),s=O(r),c=D(a),u=O(a),l=o*D(n),d=o*O(n),h=c*D(i),p=c*O(i),m=2*_e(he(Fa(a-r)+o*c*Fa(i-n))),v=O(m),j=m?function(y){var N=O(y*=m)/v,w=O(m-y)/v,_=w*l+N*h,E=w*d+N*p,k=w*s+N*u;return[je(E,_)*re,je(k,he(_*_+E*E))*re]}:function(){return[n*re,r*re]};return j.distance=m,j}const hn=e=>e;var Wr=new ve,wi=new ve,xs,ys,bi,ji,Qe={point:le,lineStart:le,lineEnd:le,polygonStart:function(){Qe.lineStart=Su,Qe.lineEnd=ku},polygonEnd:function(){Qe.lineStart=Qe.lineEnd=Qe.point=le,Wr.add(H(wi)),wi=new ve},result:function(){var e=Wr/2;return Wr=new ve,e}};function Su(){Qe.point=Eu}function Eu(e,t){Qe.point=ws,xs=bi=e,ys=ji=t}function ws(e,t){wi.add(ji*e-bi*t),bi=e,ji=t}function ku(){ws(xs,ys)}var Kt=1/0,hr=Kt,pn=-Kt,pr=pn,mr={point:Pu,lineStart:le,lineEnd:le,polygonStart:le,polygonEnd:le,result:function(){var e=[[Kt,hr],[pn,pr]];return pn=pr=-(hr=Kt=1/0),e}};function Pu(e,t){e<Kt&&(Kt=e),e>pn&&(pn=e),t<hr&&(hr=t),t>pr&&(pr=t)}var _i=0,Ni=0,Jt=0,gr=0,vr=0,Ct=0,Si=0,Ei=0,Qt=0,bs,js,Ve,qe,Re={point:jt,lineStart:so,lineEnd:lo,polygonStart:function(){Re.lineStart=$u,Re.lineEnd=Ou},polygonEnd:function(){Re.point=jt,Re.lineStart=so,Re.lineEnd=lo},result:function(){var e=Qt?[Si/Qt,Ei/Qt]:Ct?[gr/Ct,vr/Ct]:Jt?[_i/Jt,Ni/Jt]:[NaN,NaN];return _i=Ni=Jt=gr=vr=Ct=Si=Ei=Qt=0,e}};function jt(e,t){_i+=e,Ni+=t,++Jt}function so(){Re.point=Au}function Au(e,t){Re.point=Mu,jt(Ve=e,qe=t)}function Mu(e,t){var n=e-Ve,r=t-qe,i=he(n*n+r*r);gr+=i*(Ve+e)/2,vr+=i*(qe+t)/2,Ct+=i,jt(Ve=e,qe=t)}function lo(){Re.point=jt}function $u(){Re.point=Ru}function Ou(){_s(bs,js)}function Ru(e,t){Re.point=_s,jt(bs=Ve=e,js=qe=t)}function _s(e,t){var n=e-Ve,r=t-qe,i=he(n*n+r*r);gr+=i*(Ve+e)/2,vr+=i*(qe+t)/2,Ct+=i,i=qe*e-Ve*t,Si+=i*(Ve+e),Ei+=i*(qe+t),Qt+=i*3,jt(Ve=e,qe=t)}function Ns(e){this._context=e}Ns.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._context.moveTo(e,t),this._point=1;break}case 1:{this._context.lineTo(e,t);break}default:{this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,be);break}}},result:le};var ki=new ve,Yr,Ss,Es,en,tn,mn={point:le,lineStart:function(){mn.point=Cu},lineEnd:function(){Yr&&ks(Ss,Es),mn.point=le},polygonStart:function(){Yr=!0},polygonEnd:function(){Yr=null},result:function(){var e=+ki;return ki=new ve,e}};function Cu(e,t){mn.point=ks,Ss=en=e,Es=tn=t}function ks(e,t){en-=e,tn-=t,ki.add(he(en*en+tn*tn)),en=e,tn=t}function Ps(){this._string=[]}Ps.prototype={_radius:4.5,_circle:co(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._string.push("M",e,",",t),this._point=1;break}case 1:{this._string.push("L",e,",",t);break}default:{this._circle==null&&(this._circle=co(this._radius)),this._string.push("M",e,",",t,this._circle);break}}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}else return null}};function co(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function As(e,t){var n=4.5,r,i;function a(o){return o&&(typeof n=="function"&&i.pointRadius(+n.apply(this,arguments)),Ie(o,r(i))),i.result()}return a.area=function(o){return Ie(o,r(Qe)),Qe.result()},a.measure=function(o){return Ie(o,r(mn)),mn.result()},a.bounds=function(o){return Ie(o,r(mr)),mr.result()},a.centroid=function(o){return Ie(o,r(Re)),Re.result()},a.projection=function(o){return arguments.length?(r=o==null?(e=null,hn):(e=o).stream,a):e},a.context=function(o){return arguments.length?(i=o==null?(t=null,new Ps):new Ns(t=o),typeof n!="function"&&i.pointRadius(n),a):t},a.pointRadius=function(o){return arguments.length?(n=typeof o=="function"?o:(i.pointRadius(+o),+o),a):n},a.projection(e).context(t)}
vendor: 11,185 bytes, line 4
4function Tu(e){return{stream:jn(e)}}function jn(e){return function(t){var n=new Pi;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Pi(){}Pi.prototype={constructor:Pi,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Ki(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),Ie(n,e.stream(mr)),t(mr.result()),r!=null&&e.clipExtent(r),e}function Mr(e,t,n){return Ki(e,function(r){var i=t[1][0]-t[0][0],a=t[1][1]-t[0][1],o=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),s=+t[0][0]+(i-o*(r[1][0]+r[0][0]))/2,c=+t[0][1]+(a-o*(r[1][1]+r[0][1]))/2;e.scale(150*o).translate([s,c])},n)}function Gi(e,t,n){return Mr(e,[[0,0],t],n)}function Xi(e,t,n){return Ki(e,function(r){var i=+t,a=i/(r[1][0]-r[0][0]),o=(i-a*(r[1][0]+r[0][0]))/2,s=-a*r[0][1];e.scale(150*a).translate([o,s])},n)}function Zi(e,t,n){return Ki(e,function(r){var i=+t,a=i/(r[1][1]-r[0][1]),o=-a*r[0][0],s=(i-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([o,s])},n)}var uo=16,Du=D(30*V);function fo(e,t){return+t?Iu(e,t):zu(e)}function zu(e){return jn({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function Iu(e,t){function n(r,i,a,o,s,c,u,l,d,h,p,m,v,j){var y=u-r,N=l-i,w=y*y+N*N;if(w>4*t&&v--){var _=o+h,E=s+p,k=c+m,T=he(_*_+E*E+k*k),$=_e(k/=T),q=H(H(k)-1)<B||H(a-d)<B?(a+d)/2:je(E,_),L=e(q,$),z=L[0],Z=L[1],W=z-r,g=Z-i,x=N*W-y*g;(x*x/w>t||H((y*W+N*g)/w-.5)>.3||o*h+s*p+c*m<Du)&&(n(r,i,a,o,s,c,z,Z,q,_/=T,E/=T,k,v,j),j.point(z,Z),n(z,Z,q,_,E,k,u,l,d,h,p,m,v,j))}}return function(r){var i,a,o,s,c,u,l,d,h,p,m,v,j={point:y,lineStart:N,lineEnd:_,polygonStart:function(){r.polygonStart(),j.lineStart=E},polygonEnd:function(){r.polygonEnd(),j.lineStart=N}};function y($,q){$=e($,q),r.point($[0],$[1])}function N(){d=NaN,j.point=w,r.lineStart()}function w($,q){var L=bt([$,q]),z=e($,q);n(d,h,l,p,m,v,d=z[0],h=z[1],l=$,p=L[0],m=L[1],v=L[2],uo,r),r.point(d,h)}function _(){j.point=y,r.lineEnd()}function E(){N(),j.point=k,j.lineEnd=T}function k($,q){w(i=$,q),a=d,o=h,s=p,c=m,u=v,j.point=w}function T(){n(d,h,l,p,m,v,a,o,i,s,c,u,uo,r),j.lineEnd=_,_()}return j}}var Lu=jn({point:function(e,t){this.stream.point(e*V,t*V)}});function Fu(e){return jn({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function Bu(e,t,n,r,i){function a(o,s){return o*=r,s*=i,[t+e*o,n-e*s]}return a.invert=function(o,s){return[(o-t)/e*r,(n-s)/e*i]},a}function ho(e,t,n,r,i,a){if(!a)return Bu(e,t,n,r,i);var o=D(a),s=O(a),c=o*e,u=s*e,l=o/e,d=s/e,h=(s*n-o*t)/e,p=(s*t+o*n)/e;function m(v,j){return v*=r,j*=i,[c*v-u*j+t,n-u*v-c*j]}return m.invert=function(v,j){return[r*(l*v-d*j+h),i*(p-d*v-l*j)]},m}function Ze(e){return Ui(function(){return e})()}function Ui(e){var t,n=150,r=480,i=250,a=0,o=0,s=0,c=0,u=0,l,d=0,h=1,p=1,m=null,v=gi,j=null,y,N,w,_=hn,E=.5,k,T,$,q,L;function z(x){return $(x[0]*V,x[1]*V)}function Z(x){return x=$.invert(x[0],x[1]),x&&[x[0]*re,x[1]*re]}z.stream=function(x){return q&&L===x?q:q=Lu(Fu(l)(v(k(_(L=x)))))},z.preclip=function(x){return arguments.length?(v=x,m=void 0,g()):v},z.postclip=function(x){return arguments.length?(_=x,j=y=N=w=null,g()):_},z.clipAngle=function(x){return arguments.length?(v=+x?ms(m=x*V):(m=null,gi),g()):m*re},z.clipExtent=function(x){return arguments.length?(_=x==null?(j=y=N=w=null,hn):Ar(j=+x[0][0],y=+x[0][1],N=+x[1][0],w=+x[1][1]),g()):j==null?null:[[j,y],[N,w]]},z.scale=function(x){return arguments.length?(n=+x,W()):n},z.translate=function(x){return arguments.length?(r=+x[0],i=+x[1],W()):[r,i]},z.center=function(x){return arguments.length?(a=x[0]%360*V,o=x[1]%360*V,W()):[a*re,o*re]},z.rotate=function(x){return arguments.length?(s=x[0]%360*V,c=x[1]%360*V,u=x.length>2?x[2]%360*V:0,W()):[s*re,c*re,u*re]},z.angle=function(x){return arguments.length?(d=x%360*V,W()):d*re},z.reflectX=function(x){return arguments.length?(h=x?-1:1,W()):h<0},z.reflectY=function(x){return arguments.length?(p=x?-1:1,W()):p<0},z.precision=function(x){return arguments.length?(k=fo(T,E=x*x),g()):he(E)},z.fitExtent=function(x,b){return Mr(z,x,b)},z.fitSize=function(x,b){return Gi(z,x,b)},z.fitWidth=function(x,b){return Xi(z,x,b)},z.fitHeight=function(x,b){return Zi(z,x,b)};function W(){var x=ho(n,0,0,h,p,d).apply(null,t(a,o)),b=ho(n,r-x[0],i-x[1],h,p,d);return l=Vi(s,c,u),T=pi(t,b),$=pi(l,T),k=fo(T,E),g()}function g(){return q=L=null,z}return function(){return t=e.apply(this,arguments),z.invert=t.invert&&Z,W()}}function Wi(e){var t=0,n=U/3,r=Ui(e),i=r(t,n);return i.parallels=function(a){return arguments.length?r(t=a[0]*V,n=a[1]*V):[t*re,n*re]},i}function Vu(e){var t=D(e);function n(r,i){return[r*t,O(i)/t]}return n.invert=function(r,i){return[r/t,_e(i*t)]},n}function Ms(e,t){var n=O(e),r=(n+O(t))/2;if(H(r)<B)return Vu(e);var i=1+n*(2*r-n),a=he(i)/r;function o(s,c){var u=he(i-2*r*O(c))/r;return[u*O(s*=r),a-u*D(s)]}return o.invert=function(s,c){var u=a-c,l=je(s,H(u))*Ce(u);return u*r<0&&(l-=U*Ce(s)*Ce(u)),[l/r,_e((i-(s*s+u*u)*r*r)/(2*r))]},o}function xr(){return Wi(Ms).scale(155.424).center([0,33.6442])}function $s(){return xr().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function qu(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function Ku(){var e,t,n=$s(),r,i=xr().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,o=xr().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s,c,u={point:function(h,p){c=[h,p]}};function l(h){var p=h[0],m=h[1];return c=null,r.point(p,m),c||(a.point(p,m),c)||(s.point(p,m),c)}l.invert=function(h){var p=n.scale(),m=n.translate(),v=(h[0]-m[0])/p,j=(h[1]-m[1])/p;return(j>=.12&&j<.234&&v>=-.425&&v<-.214?i:j>=.166&&j<.234&&v>=-.214&&v<-.115?o:n).invert(h)},l.stream=function(h){return e&&t===h?e:e=qu([n.stream(t=h),i.stream(h),o.stream(h)])},l.precision=function(h){return arguments.length?(n.precision(h),i.precision(h),o.precision(h),d()):n.precision()},l.scale=function(h){return arguments.length?(n.scale(h),i.scale(h*.35),o.scale(h),l.translate(n.translate())):n.scale()},l.translate=function(h){if(!arguments.length)return n.translate();var p=n.scale(),m=+h[0],v=+h[1];return r=n.translate(h).clipExtent([[m-.455*p,v-.238*p],[m+.455*p,v+.238*p]]).stream(u),a=i.translate([m-.307*p,v+.201*p]).clipExtent([[m-.425*p+B,v+.12*p+B],[m-.214*p-B,v+.234*p-B]]).stream(u),s=o.translate([m-.205*p,v+.212*p]).clipExtent([[m-.214*p+B,v+.166*p+B],[m-.115*p-B,v+.234*p-B]]).stream(u),d()},l.fitExtent=function(h,p){return Mr(l,h,p)},l.fitSize=function(h,p){return Gi(l,h,p)},l.fitWidth=function(h,p){return Xi(l,h,p)},l.fitHeight=function(h,p){return Zi(l,h,p)};function d(){return e=t=null,l}return l.scale(1070)}function Os(e){return function(t,n){var r=D(t),i=D(n),a=e(r*i);return a===1/0?[2,0]:[a*i*O(t),a*O(n)]}}function _n(e){return function(t,n){var r=he(t*t+n*n),i=e(r),a=O(i),o=D(i);return[je(t*a,r*o),_e(r&&n*a/r)]}}var Yi=Os(function(e){return he(2/(1+e))});Yi.invert=_n(function(e){return 2*_e(e/2)});function Gu(){return Ze(Yi).scale(124.75).clipAngle(180-.001)}var Hi=Os(function(e){return(e=Jo(e))&&e/O(e)});Hi.invert=_n(function(e){return e});function Xu(){return Ze(Hi).scale(79.4188).clipAngle(180-.001)}function Nn(e,t){return[e,Jn(Fi((fe+t)/2))]}Nn.invert=function(e,t){return[e,2*Zt(Ho(t))-fe]};function Zu(){return Rs(Nn).scale(961/be)}function Rs(e){var t=Ze(e),n=t.center,r=t.scale,i=t.translate,a=t.clipExtent,o=null,s,c,u;t.scale=function(d){return arguments.length?(r(d),l()):r()},t.translate=function(d){return arguments.length?(i(d),l()):i()},t.center=function(d){return arguments.length?(n(d),l()):n()},t.clipExtent=function(d){return arguments.length?(d==null?o=s=c=u=null:(o=+d[0][0],s=+d[0][1],c=+d[1][0],u=+d[1][1]),l()):o==null?null:[[o,s],[c,u]]};function l(){var d=U*r(),h=t(cs(t.rotate()).invert([0,0]));return a(o==null?[[h[0]-d,h[1]-d],[h[0]+d,h[1]+d]]:e===Nn?[[Math.max(h[0]-d,o),s],[Math.min(h[0]+d,c),u]]:[[o,Math.max(h[1]-d,s)],[c,Math.min(h[1]+d,u)]])}return l()}function Cn(e){return Fi((fe+e)/2)}function Cs(e,t){var n=D(e),r=e===t?O(e):Jn(n/D(t))/Jn(Cn(t)/Cn(e)),i=n*Xr(Cn(e),r)/r;if(!r)return Nn;function a(o,s){i>0?s<-fe+B&&(s=-fe+B):s>fe-B&&(s=fe-B);var c=i/Xr(Cn(s),r);return[c*O(r*o),i-c*D(r*o)]}return a.invert=function(o,s){var c=i-s,u=Ce(r)*he(o*o+c*c),l=je(o,H(c))*Ce(c);return c*r<0&&(l-=U*Ce(o)*Ce(c)),[l/r,2*Zt(Xr(i/u,1/r))-fe]},a}function Uu(){return Wi(Cs).scale(109.5).parallels([30,30])}function gn(e,t){return[e,t]}gn.invert=gn;function Wu(){return Ze(gn).scale(152.63)}function Ts(e,t){var n=D(e),r=e===t?O(e):(n-D(t))/(t-e),i=n/r+e;if(H(r)<B)return gn;function a(o,s){var c=i-s,u=r*o;return[c*O(u),i-c*D(u)]}return a.invert=function(o,s){var c=i-s,u=je(o,H(c))*Ce(c);return c*r<0&&(u-=U*Ce(o)*Ce(c)),[u/r,i-Ce(r)*he(o*o+c*c)]},a}function Yu(){return Wi(Ts).scale(131.154).center([0,13.9389])}var ln=1.340264,cn=-.081106,un=893e-6,fn=.003796,yr=he(3)/2,Hu=12;function Ji(e,t){var n=_e(yr*O(t)),r=n*n,i=r*r*r;return[e*D(n)/(yr*(ln+3*cn*r+i*(7*un+9*fn*r))),n*(ln+cn*r+i*(un+fn*r))]}Ji.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,a=0,o,s,c;a<Hu&&(s=n*(ln+cn*r+i*(un+fn*r))-t,c=ln+3*cn*r+i*(7*un+9*fn*r),n-=o=s/c,r=n*n,i=r*r*r,!(H(o)<dn));++a);return[yr*e*(ln+3*cn*r+i*(7*un+9*fn*r))/D(n),_e(O(n)/yr)]};function Ju(){return Ze(Ji).scale(177.158)}function Qi(e,t){var n=D(t),r=D(e)*n;return[n*O(e)/r,O(t)/r]}Qi.invert=_n(Zt);function Qu(){return Ze(Qi).scale(144.049).clipAngle(60)}function ef(){var e=1,t=0,n=0,r=1,i=1,a=0,o,s,c=null,u,l,d,h=1,p=1,m=jn({point:function(_,E){var k=w([_,E]);this.stream.point(k[0],k[1])}}),v=hn,j,y;function N(){return h=e*r,p=e*i,j=y=null,w}function w(_){var E=_[0]*h,k=_[1]*p;if(a){var T=k*o-E*s;E=E*o+k*s,k=T}return[E+t,k+n]}return w.invert=function(_){var E=_[0]-t,k=_[1]-n;if(a){var T=k*o+E*s;E=E*o-k*s,k=T}return[E/h,k/p]},w.stream=function(_){return j&&y===_?j:j=m(v(y=_))},w.postclip=function(_){return arguments.length?(v=_,c=u=l=d=null,N()):v},w.clipExtent=function(_){return arguments.length?(v=_==null?(c=u=l=d=null,hn):Ar(c=+_[0][0],u=+_[0][1],l=+_[1][0],d=+_[1][1]),N()):c==null?null:[[c,u],[l,d]]},w.scale=function(_){return arguments.length?(e=+_,N()):e},w.translate=function(_){return arguments.length?(t=+_[0],n=+_[1],N()):[t,n]},w.angle=function(_){return arguments.length?(a=_%360*V,s=O(a),o=D(a),N()):a*re},w.reflectX=function(_){return arguments.length?(r=_?-1:1,N()):r<0},w.reflectY=function(_){return arguments.length?(i=_?-1:1,N()):i<0},w.fitExtent=function(_,E){return Mr(w,_,E)},w.fitSize=function(_,E){return Gi(w,_,E)},w.fitWidth=function(_,E){return Xi(w,_,E)},w.fitHeight=function(_,E){return Zi(w,_,E)},w}function ea(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),t*(1.007226+n*(.015085+r*(-.04447
45+.028874*n-.005916*r)))]}ea.invert=function(e,t){var n=t,r=25,i;do{var a=n*n,o=a*a;n-=i=(n*(1.007226+a*(.015085+o*(-.044475+.028874*a-.005916*o)))-t)/(1.007226+a*(.015085*3+o*(-.044475*7+.028874*9*a-.005916*11*o)))}while(H(i)>B&&--r>0);return[e/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function tf(){return Ze(ea).scale(175.295)}function ta(e,t){return[D(t)*O(e),O(t)]}ta.invert=_n(_e);function nf(){return Ze(ta).scale(249.5).clipAngle(90+B)}function na(e,t){var n=D(t),r=1+D(e)*n;return[n*O(e)/r,O(t)/r]}na.invert=_n(function(e){return 2*Zt(e)});function rf(){return Ze(na).scale(250).clipAngle(142)}function ra(e,t){return[Jn(Fi((fe+t)/2)),-e]}ra.invert=function(e,t){return[-t,2*Zt(Ho(e))-fe]};function af(){var e=Rs(ra),t=e.center,n=e.rotate;return e.center=function(r){return arguments.length?t([-r[1],r[0]]):(r=t(),[r[1],-r[0]])},e.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}const of=Object.freeze(Object.defineProperty({__proto__:null,geoAlbers:$s,geoAlbersUsa:Ku,geoArea:Hc,geoAzimuthalEqualArea:Gu,geoAzimuthalEqualAreaRaw:Yi,geoAzimuthalEquidistant:Xu,geoAzimuthalEquidistantRaw:Hi,geoBounds:tu,geoCentroid:su,geoCircle:lu,geoClipAntimeridian:gi,geoClipCircle:ms,geoClipExtent:mu,geoClipRectangle:Ar,geoConicConformal:Uu,geoConicConformalRaw:Cs,geoConicEqualArea:xr,geoConicEqualAreaRaw:Ms,geoConicEquidistant:Yu,geoConicEquidistantRaw:Ts,geoContains:ju,geoDistance:fr,geoEqualEarth:Ju,geoEqualEarthRaw:Ji,geoEquirectangular:Wu,geoEquirectangularRaw:gn,geoGnomonic:Qu,geoGnomonicRaw:Qi,geoGraticule:qi,geoGraticule10:_u,geoIdentity:ef,geoInterpolate:Nu,geoLength:gs,geoMercator:Zu,geoMercatorRaw:Nn,geoNaturalEarth1:tf,geoNaturalEarth1Raw:ea,geoOrthographic:nf,geoOrthographicRaw:ta,geoPath:As,geoProjection:Ze,geoProjectionMutator:Ui,geoRotation:cs,geoStereographic:rf,geoStereographicRaw:na,geoStream:Ie,geoTransform:Tu,geoTransverseMercator:af,geoTransverseMercatorRaw:ra},Symbol.toStringTag,{value:"Module"}));function sf(e){return e}function lf(e){if(e==null)return sf;var t,n,r=e.scale[0],i=e.scale[1],a=e.translate[0],o=e.translate[1];return function(s,c){c||(t=n=0);var u=2,l=s.length,d=new Array(l);for(d[0]=(t+=s[0])*r+a,d[1]=(n+=s[1])*i+o;u<l;)d[u]=s[u],++u;return d}}function cf(e,t){for(var n,r=e.length,i=r-t;i<--r;)n=e[i],e[i++]=e[r],e[r]=n}function uf(e,t){return typeof t=="string"&&(t=e.objects[t]),t.type==="GeometryCollection"?{type:"FeatureCollection",features:t.geometries.map(function(n){return po(e,n)})}:po(e,t)}function po(e,t){var n=t.id,r=t.bbox,i=t.properties==null?{}:t.properties,a=Ds(e,t);return n==null&&r==null?{type:"Feature",properties:i,geometry:a}:r==null?{type:"Feature",id:n,properties:i,geometry:a}:{type:"Feature",id:n,bbox:r,properties:i,geometry:a}}function Ds(e,t){var n=lf(e.transform),r=e.arcs;function i(l,d){d.length&&d.pop();for(var h=r[l<0?~l:l],p=0,m=h.length;p<m;++p)d.push(n(h[p],p));l<0&&cf(d,m)}function a(l){return n(l)}function o(l){for(var d=[],h=0,p=l.length;h<p;++h)i(l[h],d);return d.length<2&&d.push(d[0]),d}function s(l){for(var d=o(l);d.length<4;)d.push(d[0]);return d}function c(l){return l.map(s)}function u(l){var d=l.type,h;switch(d){case"GeometryCollection":return{type:d,geometries:l.geometries.map(u)};case"Point":h=a(l.coordinates);break;case"MultiPoint":h=l.coordinates.map(a);break;case"LineString":h=o(l.arcs);break;case"MultiLineString":h=l.arcs.map(o);break;case"Polygon":h=c(l.arcs);break;case"MultiPolygon":h=l.arcs.map(c);break;default:return null}return{type:d,coordinates:h}}return u(t)}function ff(e,t){var n={},r={},i={},a=[],o=-1;t.forEach(function(u,l){var d=e.arcs[u<0?~u:u],h;d.length<3&&!d[1][0]&&!d[1][1]&&(h=t[++o],t[o]=u,t[l]=h)}),t.forEach(function(u){var l=s(u),d=l[0],h=l[1],p,m;if(p=i[d])if(delete i[p.end],p.push(u),p.end=h,m=r[h]){delete r[m.start];var v=m===p?p:p.concat(m);r[v.start=p.start]=i[v.end=m.end]=v}else r[p.start]=i[p.end]=p;else if(p=r[h])if(delete r[p.start],p.unshift(u),p.start=d,m=i[d]){delete i[m.end];var j=m===p?p:m.concat(p);r[j.start=m.start]=i[j.end=p.end]=j}else r[p.start]=i[p.end]=p;else p=[u],r[p.start=d]=i[p.end=h]=p});function s(u){var l=e.arcs[u<0?~u:u],d=l[0],h;return e.transform?(h=[0,0],l.forEach(function(p){h[0]+=p[0],h[1]+=p[1]})):h=l[l.length-1],u<0?[h,d]:[d,h]}function c(u,l){for(var d in u){var h=u[d];delete l[h.start],delete h.start,delete h.end,h.forEach(function(p){
4n[p<0?~p:p]=1}),a.push(h)}}return c(i,r),c(r,i),t.forEach(function(u){n[u<0?~u:u]||a.push([u])}),a}function mo(e){return Ds(e,df.apply(this,arguments))}function df(e,t,n){var r,i,a;if(arguments.length>1)r=hf(e,t,n);else for(i=0,r=new Array(a=e.arcs.length);i<a;++i)r[i]=i;return{type:"MultiLineString",arcs:ff(e,r)}}function hf(e,t,n){var r=[],i=[],a;function o(d){var h=d<0?~d:d;(i[h]||(i[h]=[])).push({i:d,g:a})}function s(d){d.forEach(o)}function c(d){d.forEach(s)}function u(d){d.forEach(c)}function l(d){switch(a=d,d.type){case"GeometryCollection":d.geometries.forEach(l);break;case"LineString":s(d.arcs);break;case"MultiLineString":case"Polygon":c(d.arcs);break;case"MultiPolygon":u(d.arcs);break}}return l(t),i.forEach(n==null?function(d){r.push(d[0].i)}:function(d){n(d[0].g,d[d.length-1].g)&&r.push(d[0].i)}),r}var pf={value:()=>{}};function ia(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Kn(n)}function Kn(e){this._=e}function mf(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Kn.prototype=ia.prototype={constructor:Kn,on:function(e,t){var n=this._,r=mf(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=gf(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=go(n[i],e.name,t);else if(t==null)for(i in n)n[i]=go(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Kn(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function gf(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function go(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=pf,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Ai="http://www.w3.org/1999/xhtml";const vo={svg:"http://www.w3.org/2000/svg",xhtml:Ai,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $r(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),vo.hasOwnProperty(t)?{space:vo[t],local:e}:e}function vf(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Ai&&t.documentElement.namespaceURI===Ai?t.createElement(e):t.createElementNS(n,e)}}function xf(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function zs(e){var t=$r(e);return(t.local?xf:vf)(t)}function yf(){}function aa(e){return e==null?yf:function(){return this.querySelector(e)}}function wf(e){typeof e!="function"&&(e=aa(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=new Array(o),c,u,l=0;l<o;++l)(c=a[l])&&(u=e.call(c,c.__data__,l,a))&&("__data__"in c&&(u.__data__=c.__data__),s[l]=u);return new ke(r,this._parents)}function Is(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bf(){return[]}function Ls(e){return e==null?bf:function(){return this.querySelectorAll(e)}}function jf(e){return function(){var t=e.apply(this,arguments);return t==null?[]:Is(t)}}function _f(e){typeof e=="function"?e=jf(e):e=Ls(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,u=0;u<s;++u)(c=o[u])&&(r.push(e.call(c,c.__data__,u,o)),i.push(c));return new ke(r,i)}function Fs(e){return function(){return this.matches(e)}}function Bs(e){return function(t){return t.matches(e)}}var Nf=Array.prototype.find;function Sf(e){return function(){return Nf.call(this.children,e)}}function Ef(){return this.firstElementChild}function kf(e){return this.select(e==null?Ef:Sf(typeof e=="function"?e:Bs(e)))}var Pf=Array.prototype.filter;function Af(){return this.children}function Mf(e){return function(){return Pf.call(this.children,e)}}function $f(e){return this.selectAll(e==null?Af:Mf(typeof e=="function"?e:Bs(e)))}function Of(e){typeof e!="function"&&(e=Fs(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,u=0;u<o;++u)(c=a[u])&&e.call(c,c.__data__,u,a)&&s.push(c);return new ke(r,this._parents)}function Vs(e){return new Array(e.length)}function Rf(){return new ke(this._enter||this._groups.map(Vs),this._parents)}function wr(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}wr.prototype={constructor:wr,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 Cf(e){return function(){return e}}function Tf(e,t,n,r,i,a){for(var o=0,s,c=t.length,u=a.length;o<u;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new wr(e,a[o]);for(;o<c;
vendor: 5,535 bytes, line 4
4++o)(s=t[o])&&(i[o]=s)}function Df(e,t,n,r,i,a,o){var s,c,u=new Map,l=t.length,d=a.length,h=new Array(l),p;for(s=0;s<l;++s)(c=t[s])&&(h[s]=p=o.call(c,c.__data__,s,t)+"",u.has(p)?i[s]=c:u.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+"",(c=u.get(p))?(r[s]=c,c.__data__=a[s],u.delete(p)):n[s]=new wr(e,a[s]);for(s=0;s<l;++s)(c=t[s])&&u.get(h[s])===c&&(i[s]=c)}function zf(e){return e.__data__}function If(e,t){if(!arguments.length)return Array.from(this,zf);var n=t?Df:Tf,r=this._parents,i=this._groups;typeof e!="function"&&(e=Cf(e));for(var a=i.length,o=new Array(a),s=new Array(a),c=new Array(a),u=0;u<a;++u){var l=r[u],d=i[u],h=d.length,p=Is(e.call(l,l&&l.__data__,u,r)),m=p.length,v=s[u]=new Array(m),j=o[u]=new Array(m),y=c[u]=new Array(h);n(l,d,v,j,y,p,t);for(var N=0,w=0,_,E;N<m;++N)if(_=v[N]){for(N>=w&&(w=N+1);!(E=j[w])&&++w<m;);_._next=E||null}}return o=new ke(o,r),o._enter=s,o._exit=c,o}function Lf(){return new ke(this._exit||this._groups.map(Vs),this._parents)}function Ff(e,t,n){var r=this.enter(),i=this,a=this.exit();return r=typeof e=="function"?e(r):r.append(e+""),t!=null&&(i=t(i)),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Bf(e){if(!(e instanceof ke))throw new Error("invalid merge");for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var c=t[s],u=n[s],l=c.length,d=o[s]=new Array(l),h,p=0;p<l;++p)(h=c[p]||u[p])&&(d[p]=h);for(;s<r;++s)o[s]=t[s];return new ke(o,this._parents)}function Vf(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function qf(e){e||(e=Kf);function t(d,h){return d&&h?e(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=new Array(s),u,l=0;l<s;++l)(u=o[l])&&(c[l]=u);c.sort(t)}return new ke(i,this._parents).order()}function Kf(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Gf(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Xf(){return Array.from(this)}function Zf(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Uf(){let e=0;for(const t of this)++e;return e}function Wf(){return!this.node()}function Yf(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Hf(e){return function(){this.removeAttribute(e)}}function Jf(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Qf(e,t){return function(){this.setAttribute(e,t)}}function ed(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function td(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function nd(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function rd(e,t){var n=$r(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Jf:Hf:typeof t=="function"?n.local?nd:td:n.local?ed:Qf)(n,t))}function qs(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function id(e){return function(){this.style.removeProperty(e)}}function ad(e,t,n){return function(){this.style.setProperty(e,t,n)}}function od(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function sd(e,t,n){return arguments.length>1?this.each((t==null?id:typeof t=="function"?od:ad)(e,t,n??"")):Gt(this.node(),e)}function Gt(e,t){return e.style.getPropertyValue(t)||qs(e).getComputedStyle(e,null).getPropertyValue(t)}function ld(e){return function(){delete this[e]}}function cd(e,t){return function(){this[e]=t}}function ud(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function fd(e,t){return arguments.length>1?this.each((t==null?ld:typeof t=="function"?ud:cd)(e,t)):this.node()[e]}function Ks(e){return e.trim().split(/^|\s+/)}function oa(e){return e.classList||new Gs(e)}function Gs(e){this._node=e,this._names=Ks(e.getAttribute("class")||"")}Gs.prototype={add:function(e){var t=this._names.indexOf(e);t<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}};function Xs(e,t){for(var n=oa(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Zs(e,t){for(var n=oa(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function dd(e){return function(){Xs(this,e)}}function hd(e){return function(){Zs(this,e)}}function pd(e,t){return function(){(t.apply(this,arguments)?Xs:Zs)(this,e)}}function md(e,t){var n=Ks(e+"");if(arguments.length<2){for(var r=oa(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?pd:t?dd:hd)(n,t))}function gd(){this.textContent=""}function vd(e){return function(){this.textContent=e}}function xd(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function yd(e){return arguments.length?this.each(e==null?gd:(typeof e=="function"?xd:vd)(e)):this.node().textContent}function wd(){this.innerHTML=""}function bd(e){return function(){this.innerHTML=e}}
4function jd(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function _d(e){return arguments.length?this.each(e==null?wd:(typeof e=="function"?jd:bd)(e)):this.node().innerHTML}function Nd(){this.nextSibling&&this.parentNode.appendChild(this)}function Sd(){return this.each(Nd)}function Ed(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function kd(){return this.each(Ed)}function Pd(e){var t=typeof e=="function"?e:zs(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Ad(){return null}function Md(e,t){var n=typeof e=="function"?e:zs(e),r=t==null?Ad:typeof t=="function"?t:aa(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function $d(){var e=this.parentNode;e&&e.removeChild(this)}function Od(){return this.each($d)}function Rd(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Cd(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Td(e){return this.select(e?Cd:Rd)}function Dd(e){return arguments.length?this.property("__data__",e):this.node().__data__}function zd(e){return function(t){e.call(this,t,this.__data__)}}function Id(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Ld(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Fd(e,t,n){return function(){var r=this.__on,i,a=zd(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Bd(e,t,n){var r=Id(e+""),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,u=s.length,l;c<u;++c)for(i=0,l=s[c];i<a;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value}return}for(s=t?Fd:Ld,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Us(e,t,n){var r=qs(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Vd(e,t){return function(){return Us(this,e,t)}}function qd(e,t){return function(){return Us(this,e,t.apply(this,arguments))}}function Kd(e,t){return this.each((typeof t=="function"?qd:Vd)(e,t))}function*Gd(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Ws=[null];function ke(e,t){this._groups=e,this._parents=t}function Sn(){return new ke([[document.documentElement]],Ws)}function Xd(){return this}ke.prototype=Sn.prototype={constructor:ke,select:wf,selectAll:_f,selectChild:kf,selectChildren:$f,filter:Of,data:If,enter:Rf,exit:Lf,join:Ff,merge:Bf,selection:Xd,order:Vf,sort:qf,call:Gf,nodes:Xf,node:Zf,size:Uf,empty:Wf,each:Yf,attr:rd,style:sd,property:fd,classed:md,text:yd,html:_d,raise:Sd,lower:kd,append:Pd,insert:Md,remove:Od,clone:Td,datum:Dd,on:Bd,dispatch:Kd,[Symbol.iterator]:Gd};function et(e){return typeof e=="string"?new ke([[document.querySelector(e)]],[document.documentElement]):new ke([[e]],Ws)}function Zd(e){let t;for(;t=e.sourceEvent;)e=t;return e}function gt(e,t){if(e=Zd(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}function Mi(e){e.preventDefault(),e.stopImmediatePropagation()}function Ud(e){var t=e.document.documentElement,n=et(e).on("dragstart.drag",Mi,!0);"onselectstart"in t?n.on("selectstart.drag",Mi,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Wd(e,t){var n=e.document.documentElement,r=et(e).on("dragstart.drag",null);t&&(r.on("click.drag",Mi,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Yd=1e-12;function xo(e){return((e=Math.exp(e))+1/e)/2}function Hd(e){return((e=Math.exp(e))-1/e)/2}function Jd(e){return((e=Math.exp(2*e))-1)/(e+1)}const Qd=function e(t,n,r){function i(a,o){var s=a[0],c=a[1],u=a[2],l=o[0],d=o[1],h=o[2],p=l-s,m=d-c,v=p*p+m*m,j,y;if(v<Yd)y=Math.log(h/u)/t,j=function(T){return[s+T*p,c+T*m,u*Math.exp(t*T*y)]};else{var N=Math.sqrt(v),w=(h*h-u*u+r*v)/(2*u*n*N),_=(h*h-u*u-r*v)/(2*h*n*N),E=Math.log(Math.sqrt(w*w+1)-w),k=Math.log(Math.sqrt(_*_+1)-_);
vendor: 17,753 bytes, line 4
4y=(k-E)/t,j=function(T){var $=T*y,q=xo(E),L=u/(n*N)*(q*Jd(t*$+E)-Hd(E));return[s+L*p,c+L*m,u*q/xo(t*$+E)]}}return j.duration=y*1e3*t/Math.SQRT2,j}return i.rho=function(a){var o=Math.max(.001,+a),s=o*o,c=s*s;return e(o,s,c)},i}(Math.SQRT2,2,4);var Xt=0,nn=0,Ut=0,Ys=1e3,br,rn,jr=0,_t=0,Or=0,vn=typeof performance=="object"&&performance.now?performance:Date,Hs=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function sa(){return _t||(Hs(eh),_t=vn.now()+Or)}function eh(){_t=0}function _r(){this._call=this._time=this._next=null}_r.prototype=Js.prototype={constructor:_r,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?sa():+n)+(t==null?0:+t),!this._next&&rn!==this&&(rn?rn._next=this:br=this,rn=this),this._call=e,this._time=n,$i()},stop:function(){this._call&&(this._call=null,this._time=1/0,$i())}};function Js(e,t,n){var r=new _r;return r.restart(e,t,n),r}function th(){sa(),++Xt;for(var e=br,t;e;)(t=_t-e._time)>=0&&e._call.call(null,t),e=e._next;--Xt}function yo(){_t=(jr=vn.now())+Or,Xt=nn=0;try{th()}finally{Xt=0,rh(),_t=0}}function nh(){var e=vn.now(),t=e-jr;t>Ys&&(Or-=t,jr=e)}function rh(){for(var e,t=br,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:br=n);rn=e,$i(r)}function $i(e){if(!Xt){nn&&(nn=clearTimeout(nn));var t=e-_t;t>24?(e<1/0&&(nn=setTimeout(yo,e-vn.now()-Or)),Ut&&(Ut=clearInterval(Ut))):(Ut||(jr=vn.now(),Ut=setInterval(nh,Ys)),Xt=1,Hs(yo))}}function wo(e,t,n){var r=new _r;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var ih=ia("start","end","cancel","interrupt"),ah=[],Qs=0,bo=1,Oi=2,Gn=3,jo=4,Ri=5,Xn=6;function Rr(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;oh(e,n,{name:t,index:r,group:i,on:ih,tween:ah,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Qs})}function la(e,t){var n=Be(e,t);if(n.state>Qs)throw new Error("too late; already scheduled");return n}function Ue(e,t){var n=Be(e,t);if(n.state>Gn)throw new Error("too late; already running");return n}function Be(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function oh(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Js(a,0,n.time);function a(u){n.state=bo,n.timer.restart(o,n.delay,n.time),n.delay<=u&&o(u-n.delay)}function o(u){var l,d,h,p;if(n.state!==bo)return c();for(l in r)if(p=r[l],p.name===n.name){if(p.state===Gn)return wo(o);p.state===jo?(p.state=Xn,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete r[l]):+l<t&&(p.state=Xn,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete r[l])}if(wo(function(){n.state===Gn&&(n.state=jo,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=Oi,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Oi){for(n.state=Gn,i=new Array(h=n.tween.length),l=0,d=-1;l<h;++l)(p=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=p);i.length=d+1}}function s(u){for(var l=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=Ri,1),d=-1,h=i.length;++d<h;)i[d].call(e,l);n.state===Ri&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=Xn,n.timer.stop(),delete r[t];for(var u in r)return;delete e.__transition}}function Zn(e,t){var n=e.__transition,r,i,a=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>Oi&&r.state<Ri,r.state=Xn,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function sh(e){return this.each(function(){Zn(this,e)})}function ca(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function el(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function En(){}var xn=.7,Nr=1/xn,It="\\s*([+-]?\\d+)\\s*",yn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ge="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lh=/^#([0-9a-f]{3,8})$/,ch=new RegExp("^rgb\\("+[It,It,It]+"\\)$"),uh=new RegExp("^rgb\\("+[Ge,Ge,Ge]+"\\)$"),fh=new RegExp("^rgba\\("+[It,It,It,yn]+"\\)$"),dh=new RegExp("^rgba\\("+[Ge,Ge,Ge,yn]+"\\)$"),hh=new RegExp("^hsl\\("+[yn,Ge,Ge]+"\\)$"),ph=new RegExp("^hsla\\("+[yn,Ge,Ge,yn]+"\\)$"),_o={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};ca(En,wn,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:No,formatHex:No,formatHsl:mh,formatRgb:So,toString:So});function No(){return this.rgb().formatHex()}function mh(){return tl(this).formatHsl()}function So(){return this.rgb().formatRgb()}function wn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=lh.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Eo(t):n===3?new $e(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Tn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Tn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ch.exec(e))?new $e(t[1],t[2],t[3],1):(t=uh.exec(e))?new $e(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fh.exec(e))?Tn(t[1],t[2],t[3],t[4]):(t=dh.exec(e))?Tn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=hh.exec(e))?Ao(t[1],t[2]/100,t[3]/100,1):(t=ph.exec(e))?Ao(t[1],t[2]/100,t[3]/100,t[4]):_o.hasOwnProperty(e)?Eo(_o[e]):e==="transparent"?new $e(NaN,NaN,NaN,0):null}function Eo(e){return new $e(e>>16&255,e>>8&255,e&255,1)}function Tn(e,t,n,r){return r<=0&&(e=t=n=NaN),new $e(e,t,n,r)}function gh(e){return e instanceof En||(e=wn(e)),e?(e=e.rgb(),new $e(e.r,e.g,e.b,e.opacity)):new $e}function Ci(e,t,n,r){return arguments.length===1?gh(e):new $e(e,t,n,r??1)}function $e(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ca($e,Ci,el(En,{brighter:function(e){return e=e==null?Nr:Math.pow(Nr,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?xn:Math.pow(xn,e),new $e(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:ko,formatHex:ko,formatRgb:Po,toString:Po}));function ko(){return"#"+Hr(this.r)+Hr(this.g)+Hr(this.b)}function Po(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"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))+(e===1?")":", "+e+")")}function Hr(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function Ao(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ke(e,t,n,r)}function tl(e){if(e instanceof Ke)return new Ke(e.h,e.s,e.l,e.opacity);if(e instanceof En||(e=wn(e)),!e)return new Ke;if(e instanceof Ke)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Ke(o,s,c,e.opacity)}function vh(e,t,n,r){return arguments.length===1?tl(e):new Ke(e,t,n,r??1)}function Ke(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ca(Ke,vh,el(En,{brighter:function(e){return e=e==null?Nr:Math.pow(Nr,e),new Ke(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?xn:Math.pow(xn,e),new Ke(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new $e(Jr(e>=240?e-240:e+120,i,r),Jr(e,i,r),Jr(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Jr(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const nl=e=>()=>e;function xh(e,t){return function(n){return e+n*t}}function yh(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)}}function wh(e){return(e=+e)==1?rl:function(t,n){return n-t?yh(t,n,e):nl(isNaN(t)?n:t)}}function rl(e,t){var n=t-e;return n?xh(e,n):nl(isNaN(e)?t:e)}const Mo=function e(t){var n=wh(t);function r(i,a){var o=n((i=Ci(i)).r,(a=Ci(a)).r),s=n(i.g,a.g),c=n(i.b,a.b),u=rl(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=s(l),i.b=c(l),i.opacity=u(l),i+""}}return r.gamma=e,r}(1);function ft(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Ti=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qr=new RegExp(Ti.source,"g");function bh(e){return function(){return e}}function jh(e){return function(t){return e(t)+""}}function _h(e,t){var n=Ti.lastIndex=Qr.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e=e+"",t=t+"";(r=Ti.exec(e))&&(i=Qr.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:ft(r,i)})),n=Qr.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?jh(c[0].x):bh(t):(t=c.length,function(u){for(var l=0,d;l<t;++l)s[(d=c[l]).i]=d.x(u);return s.join("")})}var $o=180/Math.PI,Di={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function il(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*$o,skewX:Math.atan(c)*$o,scaleX:o,scaleY:s}}var Dn;function Nh(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Di:il(t.a,t.b,t.c,t.d,t.e,t.f)}function Sh(e){return e==null||(Dn||(Dn=document.createElementNS("http://www.w3.org/2000/svg","g")),Dn.setAttribute("transform",e),!(e=Dn.transform.baseVal.consolidate()))?Di:(e=e.matrix,il(e.a,e.b,e.c,e.d,e.e,e.f))}function al(e,t,n,r){function i(u){return u.length?u.pop()+" ":""}function a(u,l,d,h,p,m){if(u!==d||l!==h){var v=p.push("translate(",null,t,null,n);m.push({i:v-4,x:ft(u,d)},{i:v-2,x:ft(l,h)})}else(d||h)&&p.push("translate("+d+t+h+n)}function o(u,l,d,h){u!==l?(u-l>180?l+=360:l-u>180&&(u+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:ft(u,l)})):l&&d.push(i(d)+"rotate("+l+r)}function s(u,l,d,h){u!==l?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:ft(u,l)}):l&&d.push(i(d)+"skewX("+l+r)}function c(u,l,d,h,p,m){if(u!==d||l!==h){var v=p.push(i(p)+"scale(",null,",",null,")");m.push({i:v-4,x:ft(u,d)},{i:v-2,x:ft(l,h)})}else(d!==1||h!==1)&&p.push(i(p)+"scale("+d+","+h+")")}return function(u,l){var d=[],h=[];return u=e(u),l=e(l),a(u.translateX,u.translateY,l.translateX,l.translateY,d,h),o(u.rotate,l.rotate,d,h),s(u.skewX,l.skewX,d,h),c(u.scaleX,u.scaleY,l.scaleX,l.scaleY,d,h),u=l=null,function(p){for(var m=-1,v=h.length,j;++m<v;)d[(j=h[m]).i]=j.x(p);return d.join("")}}}var Eh=al(Nh,"px, ","px)","deg)"),kh=al(Sh,", ",")",")");function Ph(e,t){var n,r;return function(){var i=Ue(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Ah(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=Ue(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,u=i.length;c<u;++c)if(i[c].name===t){i[c]=s;break}c===u&&i.push(s)}a.tween=i}}function Mh(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Be(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Ph:Ah)(n,e,t))}function ua(e,t,n){var r=e._id;return e.each(function(){var i=Ue(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Be(i,r).value[t]}}function ol(e,t){var n;return(typeof t=="number"?ft:t instanceof wn?Mo:(n=wn(t))?(t=n,Mo):_h)(e,t)}function $h(e){return function(){this.removeAttribute(e)}}function Oh(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Rh(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Ch(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Th(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+"",o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Dh(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+"",o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function zh(e,t){var n=$r(e),r=n==="transform"?kh:ol;return this.attrTween(e,typeof t=="function"?(n.local?Dh:Th)(n,r,ua(this,"attr."+e,t)):t==null?(n.local?Oh:$h)(n):(n.local?Ch:Rh)(n,r,t))}function Ih(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Lh(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Fh(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Lh(e,a)),n}return i._value=t,i}function Bh(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Ih(e,a)),n}return i._value=t,i}function Vh(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=$r(e);return this.tween(n,(r.local?Fh:Bh)(r,t))}function qh(e,t){return function(){la(this,e).delay=+t.apply(this,arguments)}}function Kh(e,t){return t=+t,function(){la(this,e).delay=t}}function Gh(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?qh:Kh)(t,e)):Be(this.node(),t).delay}function Xh(e,t){return function(){Ue(this,e).duration=+t.apply(this,arguments)}}function Zh(e,t){return t=+t,function(){Ue(this,e).duration=t}}function Uh(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Xh:Zh)(t,e)):Be(this.node(),t).duration}function Wh(e,t){if(typeof t!="function")throw new Error;return function(){Ue(this,e).ease=t}}function Yh(e){var t=this._id;return arguments.length?this.each(Wh(t,e)):Be(this.node(),t).ease}function Hh(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Ue(this,e).ease=n}}function Jh(e){if(typeof e!="function")throw new Error;return this.each(Hh(this._id,e))}function Qh(e){typeof e!="function"&&(e=Fs(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,u=0;u<o;++u)(c=a[u])&&e.call(c,c.__data__,u,a)&&s.push(c);return new it(r,this._parents,this._name,this._id)}function ep(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var c=t[s],u=n[s],l=c.length,d=o[s]=new Array(l),h,p=0;p<l;++p)(h=c[p]||u[p])&&(d[p]=h);for(;s<r;++s)o[s]=t[s];return new it(o,this._parents,this._name,this._id)}function tp(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>
vendor: 10,916 bytes, line 4
4=0&&(t=t.slice(0,n)),!t||t==="start"})}function np(e,t,n){var r,i,a=tp(t)?la:Ue;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function rp(e,t){var n=this._id;return arguments.length<2?Be(this.node(),n).on.on(e):this.each(np(n,e,t))}function ip(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function ap(){return this.on("end.remove",ip(this._id))}function op(e){var t=this._name,n=this._id;typeof e!="function"&&(e=aa(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,u=a[o]=new Array(c),l,d,h=0;h<c;++h)(l=s[h])&&(d=e.call(l,l.__data__,h,s))&&("__data__"in l&&(d.__data__=l.__data__),u[h]=d,Rr(u[h],t,n,h,u,Be(l,n)));return new it(a,this._parents,t,n)}function sp(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ls(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],u=c.length,l,d=0;d<u;++d)if(l=c[d]){for(var h=e.call(l,l.__data__,d,c),p,m=Be(l,n),v=0,j=h.length;v<j;++v)(p=h[v])&&Rr(p,t,n,v,h,m);a.push(h),o.push(l)}return new it(a,o,t,n)}var lp=Sn.prototype.constructor;function cp(){return new lp(this._groups,this._parents)}function up(e,t){var n,r,i;return function(){var a=Gt(this,e),o=(this.style.removeProperty(e),Gt(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function sl(e){return function(){this.style.removeProperty(e)}}function fp(e,t,n){var r,i=n+"",a;return function(){var o=Gt(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function dp(e,t,n){var r,i,a;return function(){var o=Gt(this,e),s=n(this),c=s+"";return s==null&&(c=s=(this.style.removeProperty(e),Gt(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function hp(e,t){var n,r,i,a="style."+t,o="end."+a,s;return function(){var c=Ue(this,e),u=c.on,l=c.value[a]==null?s||(s=sl(t)):void 0;(u!==n||i!==l)&&(r=(n=u).copy()).on(o,i=l),c.on=r}}function pp(e,t,n){var r=(e+="")=="transform"?Eh:ol;return t==null?this.styleTween(e,up(e,r)).on("end.style."+e,sl(e)):typeof t=="function"?this.styleTween(e,dp(e,r,ua(this,"style."+e,t))).each(hp(this._id,e)):this.styleTween(e,fp(e,r,t),n).on("end.style."+e,null)}function mp(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function gp(e,t,n){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&mp(e,o,n)),r}return a._value=t,a}function vp(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,gp(e,t,n??""))}function xp(e){return function(){this.textContent=e}}function yp(e){return function(){var t=e(this);this.textContent=t??""}}function wp(e){return this.tween("text",typeof e=="function"?yp(ua(this,"text",e)):xp(e==null?"":e+""))}function bp(e){return function(t){this.textContent=e.call(this,t)}}function jp(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&bp(i)),t}return r._value=e,r}function _p(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,jp(e))}function Np(){for(var e=this._name,t=this._id,n=ll(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,u=0;u<s;++u)if(c=o[u]){var l=Be(c,t);Rr(c,e,n,u,o,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new it(r,this._parents,e,n)}function Sp(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var u=Ue(this,r),l=u.on;l!==e&&(t=(e=l).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),u.on=t}),i===0&&a()})}var Ep=0;function it(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ll(){return++Ep}var vt=Sn.prototype;it.prototype={constructor:it,select:op,selectAll:sp,filter:Qh,merge:ep,selection:cp,transition:Np,call:vt.call,nodes:vt.nodes,node:vt.node,size:vt.size,empty:vt.empty,each:vt.each,on:rp,attr:zh,attrTween:Vh,style:pp,styleTween:vp,text:wp,textTween:_p,remove:ap,tween:Mh,delay:Gh,duration:Uh,ease:Yh,easeVarying:Jh,end:Sp,[Symbol.iterator]:vt[Symbol.iterator]};function kp(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Pp={time:null,delay:0,duration:250,ease:kp};function Ap(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Mp(e){var t,n;e instanceof it?(t=e._id,e=e._name):(t=ll(),(n=Pp).time=sa(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,u=0;u<s;++u)(c=o[u])&&Rr(c,e,t,u,o,n||Ap(c,t));return new it(r,this._parents,e,t)}Sn.prototype.interrupt=sh;Sn.prototype.transition=Mp;const zn=e=>()=>e;function $p(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function tt(e,t,n){this.k=e,this.x=t,this.y=n}tt.prototype={constructor:tt,scale:function(e){return e===1?this:new tt(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new tt(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var fa=new tt(1,0,0);tt.prototype;function ei(e){e.stopImmediatePropagation()}function Wt(e){e.preventDefault(),e.stopImmediatePropagation()}function Op(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Rp(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Oo(){return this.__zoom||fa}function Cp(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Tp(){return navigator.maxTouchPoints||"ontouchstart"in this}function Dp(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function zp(){var e=Op,t=Rp,n=Dp,r=Cp,i=Tp,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Qd,u=ia("start","zoom","end"),l,d,h,p=500,m=150,v=0,j=10;function y(g){g.property("__zoom",Oo).on("wheel.zoom",$).on("mousedown.zoom",q).on("dblclick.zoom",L).filter(i).on("touchstart.zoom",z).on("touchmove.zoom",Z).on("touchend.zoom touchcancel.zoom",W).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(g,x,b,M){var R=g.selection?g.selection():g;R.property("__zoom",Oo),g!==R?E(g,x,b,M):R.interrupt().each(function(){k(this,arguments).event(M).start().zoom(null,typeof x=="function"?x.apply(this,arguments):x).end()})},y.scaleBy=function(g,x,b,M){y.scaleTo(g,function(){var R=this.__zoom.k,C=typeof x=="function"?x.apply(this,arguments):x;return R*C},b,M)},y.scaleTo=function(g,x,b,M){y.transform(g,function(){var R=t.apply(this,arguments),C=this.__zoom,K=b==null?_(R):typeof b=="function"?b.apply(this,arguments):b,X=C.invert(K),Y=typeof x=="function"?x.apply(this,arguments):x;return n(w(N(C,Y),K,X),R,o)},b,M)},y.translateBy=function(g,x,b,M){y.transform(g,function(){return n(this.__zoom.translate(typeof x=="function"?x.apply(this,arguments):x,typeof b=="function"?b.apply(this,arguments):b),t.apply(this,arguments),o)},null,M)},y.translateTo=function(g,x,b,M,R){y.transform(g,function(){var C=t.apply(this,arguments),K=this.__zoom,X=M==null?_(C):typeof M=="function"?M.apply(this,arguments):M;return n(fa.translate(X[0],X[1]).scale(K.k).translate(typeof x=="function"?-x.apply(this,arguments):-x,typeof b=="function"?-b.apply(this,arguments):-b),C,o)},M,R)};function N(g,x){return x=Math.max(a[0],Math.min(a[1],x)),x===g.k?g:new tt(x,g.x,g.y)}function w(g,x,b){var M=x[0]-b[0]*g.k,R=x[1]-b[1]*g.k;return M===g.x&&R===g.y?g:new tt(g.k,M,R)}function _(g){return[(+g[0][0]+ +g[1][0])/2,(+g[0][1]+ +g[1][1])/2]}function E(g,x,b,M){g.on("start.zoom",function(){k(this,arguments).event(M).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).event(M).end()}).tween("zoom",function(){var R=this,C=arguments,K=k(R,C).event(M),X=t.apply(R,C),Y=b==null?_(X):typeof b=="function"?b.apply(R,C):b,ne=Math.max(X[1][0]-X[0][0],X[1][1]-X[0][1]),J=R.__zoom,ie=typeof x=="function"?x.apply(R,C):x,de=c(J.invert(Y).concat(ne/J.k),ie.invert(Y).concat(ne/ie.k));return function(ge){if(ge===1)ge=ie;else{var Ne=de(ge),oe=ne/Ne[2];ge=new tt(oe,Y[0]-Ne[0]*oe,Y[1]-Ne[1]*oe)}K.zoom(null,ge)}})}function k(g,x,b){return!b&&g.__zooming||new T(g,x)}function T(g,x){this.that=g,this.args=x,this.active=0,this.sourceEvent=null,this.extent=t.apply(g,x),this.taps=0}T.prototype={event:function(g){return g&&(this.sourceEvent=g),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(g,x){return this.mouse&&g!=="mouse"&&(this.mouse[1]=x.invert(this.mouse[0])),this.touch0&&g!=="touch"&&(this.touch0[1]=x.invert(this.touch0[0])),this.touch1&&g!=="touch"&&(this.touch1[1]=x.invert(this.touch1[0])),this.that.__zoom=x,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(g){var x=et(this.that).datum();u.call(g,this.that,new $p(g,{sourceEvent:this.sourceEvent,target:y,transform:this.that.__zoom,dispatch:u}),x)}};function $(g,...x){if(!e.apply(this,arguments))return;var b=k(this,x).event(g),M=this.__zoom,R=Math.max(a[0],Math.min(a[1],M.k*Math.pow(2,r.apply(this,arguments)))),C=gt(g);if(b.wheel)(b.mouse[0][0]!==C[0]||b.mouse[0][1]!==C[1])&&(b.mouse[1]=M.invert(b.mouse[0]=C)),clearTimeout(b.wheel);else{if(M.k===R)return;b.mouse=[C,M.invert(C)],Zn(this),b.start()}Wt(g),b.wheel=setTimeout(K,m),b.zoom("mouse",n(w(N(M,R),b.mouse[0],b.mouse[1]),b.extent,o));function K(){b.wheel=null,b.end()}}function q(g,...x){if(h||!e.apply(this,arguments))return;var b=k(this,x,!0).event(g),M=et(g.view).on("mousemove.zoom",Y,!0).on("mouseup.zoom",ne,!0),R=gt(g,C),C=g.currentTarget,K=g.clientX,X=g.clientY;Ud(g.view),ei(g),b.mouse=[R,this.__zoom.invert(R)],Zn(this),b.start();function Y(J){if(Wt(J),!b.moved){var ie=J.clientX-K,de=J.clientY-X;b.moved=ie*ie+de*de>v}
4b.event(J).zoom("mouse",n(w(b.that.__zoom,b.mouse[0]=gt(J,C),b.mouse[1]),b.extent,o))}function ne(J){M.on("mousemove.zoom mouseup.zoom",null),Wd(J.view,b.moved),Wt(J),b.event(J).end()}}function L(g,...x){if(e.apply(this,arguments)){var b=this.__zoom,M=gt(g.changedTouches?g.changedTouches[0]:g,this),R=b.invert(M),C=b.k*(g.shiftKey?.5:2),K=n(w(N(b,C),M,R),t.apply(this,x),o);Wt(g),s>0?et(this).transition().duration(s).call(E,K,M,g):et(this).call(y.transform,K,M,g)}}function z(g,...x){if(e.apply(this,arguments)){var b=g.touches,M=b.length,R=k(this,x,g.changedTouches.length===M).event(g),C,K,X,Y;for(ei(g),K=0;K<M;++K)X=b[K],Y=gt(X,this),Y=[Y,this.__zoom.invert(Y),X.identifier],R.touch0?!R.touch1&&R.touch0[2]!==Y[2]&&(R.touch1=Y,R.taps=0):(R.touch0=Y,C=!0,R.taps=1+!!l);l&&(l=clearTimeout(l)),C&&(R.taps<2&&(d=Y[0],l=setTimeout(function(){l=null},p)),Zn(this),R.start())}}function Z(g,...x){if(this.__zooming){var b=k(this,x).event(g),M=g.changedTouches,R=M.length,C,K,X,Y;for(Wt(g),C=0;C<R;++C)K=M[C],X=gt(K,this),b.touch0&&b.touch0[2]===K.identifier?b.touch0[0]=X:b.touch1&&b.touch1[2]===K.identifier&&(b.touch1[0]=X);if(K=b.that.__zoom,b.touch1){var ne=b.touch0[0],J=b.touch0[1],ie=b.touch1[0],de=b.touch1[1],ge=(ge=ie[0]-ne[0])*ge+(ge=ie[1]-ne[1])*ge,Ne=(Ne=de[0]-J[0])*Ne+(Ne=de[1]-J[1])*Ne;K=N(K,Math.sqrt(ge/Ne)),X=[(ne[0]+ie[0])/2,(ne[1]+ie[1])/2],Y=[(J[0]+de[0])/2,(J[1]+de[1])/2]}else if(b.touch0)X=b.touch0[0],Y=b.touch0[1];else return;b.zoom("touch",n(w(K,X,Y),b.extent,o))}}function W(g,...x){if(this.__zooming){var b=k(this,x).event(g),M=g.changedTouches,R=M.length,C,K;for(ei(g),h&&clearTimeout(h),h=setTimeout(function(){h=null},p),C=0;C<R;++C)K=M[C],b.touch0&&b.touch0[2]===K.identifier?delete b.touch0:b.touch1&&b.touch1[2]===K.identifier&&delete b.touch1;if(b.touch1&&!b.touch0&&(b.touch0=b.touch1,delete b.touch1),b.touch0)b.touch0[1]=this.__zoom.invert(b.touch0[0]);else if(b.end(),b.taps===2&&(K=gt(K,this),Math.hypot(d[0]-K[0],d[1]-K[1])<j)){var X=et(this).on("dblclick.zoom");X&&X.apply(this,arguments)}}}return y.wheelDelta=function(g){return arguments.length?(r=typeof g=="function"?g:zn(+g),y):r},y.filter=function(g){return arguments.length?(e=typeof g=="function"?g:zn(!!g),y):e},y.touchable=function(g){return arguments.length?(i=typeof g=="function"?g:zn(!!g),y):i},y.extent=function(g){return arguments.length?(t=typeof g=="function"?g:zn([[+g[0][0],+g[0][1]],[+g[1][0],+g[1][1]]]),y):t},y.scaleExtent=function(g){return arguments.length?(a[0]=+g[0],a[1]=+g[1],y):[a[0],a[1]]},y.translateExtent=function(g){return arguments.length?(o[0][0]=+g[0][0],o[1][0]=+g[1][0],o[0][1]=+g[0][1],o[1][1]=+g[1][1],y):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},y.constrain=function(g){return arguments.length?(n=g,y):n},y.duration=function(g){return arguments.length?(s=+g,y):s},y.interpolate=function(g){return arguments.length?(c=g,y):c},y.on=function(){var g=u.on.apply(u,arguments);return g===u?y:g},y.clickDistance=function(g){return arguments.length?(v=(g=+g)*g,y):Math.sqrt(v)},y.tapDistance=function(g){return arguments.length?(j=+g,y):j},y}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ro(Object(n),!0).forEach(function(r){Ip(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zi(e){"@babel/helpers - typeof";return zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zi(e)}function Ip(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(this,arguments)}function Lp(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Te(e,t){if(e==null)return{};var n=Lp(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pe(e,t){return Fp(e)||Bp(e,t)||Vp(e,t)||qp()}function Fp(e){if(Array.isArray(e))return e}function Bp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(c){a=!0,s=c}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function Vp(e,t){if(e){if(typeof e=="string")return Co(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Co(e,t)}}function Co(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}
4function qp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Kp=["width","height","projection","projectionConfig"],Gp=As,Xp=Te(of,["geoPath"]),We=A.createContext(),Zp=function(t){var n=t.projectionConfig,r=n===void 0?{}:n,i=t.projection,a=i===void 0?"geoEqualEarth":i,o=t.width,s=o===void 0?800:o,c=t.height,u=c===void 0?600:c,l=typeof a=="function";if(l)return a;var d=Xp[a]().translate([s/2,u/2]),h=[d.center?"center":null,d.rotate?"rotate":null,d.scale?"scale":null,d.parallels?"parallels":null];return h.forEach(function(p){p&&(d=d[p](r[p]||d[p]()))}),d},cl=function(t){var n=t.width,r=t.height,i=t.projection,a=t.projectionConfig,o=Te(t,Kp),s=a.center||[],c=pe(s,2),u=c[0],l=c[1],d=a.rotate||[],h=pe(d,3),p=h[0],m=h[1],v=h[2],j=a.parallels||[],y=pe(j,2),N=y[0],w=y[1],_=a.scale||null,E=A.useMemo(function(){return Zp({projectionConfig:{center:u||u===0||l||l===0?[u,l]:null,rotate:p||p===0||m||m===0?[p,m,v]:null,parallels:N||N===0||w||w===0?[N,w]:null,scale:_},projection:i,width:n,height:r})},[n,r,i,u,l,p,m,v,N,w,_]),k=A.useCallback(E,[E]),T=A.useMemo(function(){return{width:n,height:r,projection:k,path:Gp().projection(k)}},[n,r,k]);return F.createElement(We.Provider,Pe({value:T},o))};cl.propTypes={width:P.number,height:P.number,projection:P.oneOfType([P.string,P.func]),projectionConfig:P.object};var Up=["width","height","projection","projectionConfig","className"],da=A.forwardRef(function(e,t){var n=e.width,r=n===void 0?800:n,i=e.he
5ight,a=i===void 0?600:i,o=e.projection,s=o===void 0?"geoEqualEarth":o,c=e.projectionConfig,u=c===void 0?{}:c,l=e.className,d=l===void 0?"":l,h=Te(e,Up);return F.createElement(cl,{width:r,height:a,projection:s,projectionConfig:u},F.createElement("svg",Pe({ref:t,viewBox:"0 0 ".concat(r," ").concat(a),className:"rsm-svg ".concat(d)},h)))});da.displayName="ComposableMap";da.propTypes={width:P.number,height:P.number,projection:P.oneOfType([P.string,P.func]),projectionConfig:P.object,className:P.string};function To(e,t,n){var r=(e*n.k-e)/2,i=(t*n.k-t)/2;return[e/2-(r+n.x)/n.k,t/2-(i+n.y)/n.k]}function Wp(e){return fetch(e).then(function(t){if(!t.ok)throw Error(t.statusText);return t.json()}).catch(function(t){console.log("There was a problem when fetching the data: ",t)})}function Do(e,t){var n=e.type==="Topology";if(!n)return t?t(e.features||e):e.features||e;var r=uf(e,e.objects[Object.keys(e.objects)[0]]).features;return t?t(r):r}function zo(e){var t=e.type==="Topology";if(!t)return null;var n=mo(e,e.objects[Object.keys(e.objects)[0]],function(i,a){return i===a}),r=mo(e,e.objects[Object.keys(e.objects)[0]],function(i,a){return i!==a});return{outline:n,borders:r}}function Yp(e,t,n){return e&&t?{outline:Tt(Tt({},e),{},{rsmKey:"outline",svgPath:n(e)}),borders:Tt(Tt({},t),{},{rsmKey:"borders",svgPath:n(t)})}:{}}function Hp(e,t){return e?e.map(function(n,r){return Tt(Tt({},n),{},{rsmKey:"geo-".concat(r),svgPath:t(n)})}):[]}function Jp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:30,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:30,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.5,r=Array.isArray(n)?n:[n,n],i=e/2*r[0],a=t/2*r[1];return"M".concat(0,",",0," Q",-e/2-i,",").concat(-t/2+a," ").concat(-e,",").concat(-t)}function Qp(e){return typeof e=="string"}function e0(e){var t=e.geography,n=e.parseGeographies,r=A.useContext(We),i=r.path,a=A.useState({}),o=pe(a,2),s=o[0],c=o[1];A.useEffect(function(){(typeof window>"u"?"undefined":zi(window))!=="undefined"&&t&&(Qp(t)?Wp(t).then(function(p){p&&c({geographies:Do(p,n),mesh:zo(p)})}):c({geographies:Do(t,n),mesh:zo(t)}))},[t,n]);var u=A.useMemo(function(){var p=s.mesh||{},m=Yp(p.outline,p.borders,i);return{geographies:Hp(s.geographies,i),outline:m.outline,borders:m.borders}},[s,i]),l=u.geographies,d=u.outline,h=u.borders;return{geographies:l,outline:d,borders:h}}var t0=["geography","children","parseGeographies","className"],ha=A.forwardRef(function(e,t){var n=e.geography,r=e.children,i=e.parseGeographies,a=e.className,o=a===void 0?"":a,s=Te(e,t0),c=A.useContext(We),u=c.path,l=c.projection,d=e0({geography:n,parseGeographies:i}),h=d.geographies,p=d.outline,m=d.borders;return F.createElement("g",Pe({ref:t,className:"rsm-geographies ".concat(o)},s),h&&h.length>0&&r({geographies:h,outline:p,borders:m,path:u,projection:l}))});ha.displayName="Geographies";ha.propTypes={geography:P.oneOfType([P.string,P.object,P.array]),children:P.func,parseGeographies:P.func,className:P.string};var n0=["geography","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp","onFocus","onBlur","style","className"],pa=A.forwardRef(function(e,t){var n=e.geography,r=e.onMouseEnter,i=e.onMouseLeave,a=e.onMouseDown,o=e.onMouseUp,s=e.onFocus,c=e.onBlur,u=e.style,l=u===void 0?{}:u,d=e.className,h=d===void 0?"":d,p=Te(e,n0),m=A.useState(!1),v=pe(m,2),j=v[0],y=v[1],N=A.useState(!1),w=pe(N,2),_=w[0],E=w[1];function k(Z){E(!0),r&&r(Z)}function T(Z){E(!1),j&&y(!1),i&&i(Z)}function $(Z){E(!0),s&&s(Z)}function q(Z){E(!1),j&&y(!1),c&&c(Z)}function L(Z){y(!0),a&&a(Z)}function z(Z){y(!1),o&&o(Z)}return F.createElement("path",Pe({ref:t,tabIndex:"0",className:"rsm-geography ".concat(h),d:n.svgPath,onMouseEnter:k,onMouseLeave:T,onFocus:$,onBlur:q,onMouseDown:L,onMouseUp:z,style:l[j||_?j?"pressed":"hover":"default"]},p))});pa.displayName="Geography";pa.propTypes={geography:P.object,onMouseEnter:P.func,onMouseLeave:P.func,onMouseDown:P.func,onMouseUp:P.func,onFocus:P.func,onBlur:P.func,style:P.object,className:P.string};var r0=A.memo(pa),i0=["fill","stroke","step","className"],ma=A.forwardRef(function(e,t){var n=e.fill,r=n===void 0?"transparent":n,i=e.stroke,a=i===void 0?"currentcolor":i,o=e.step,s=o===void 0?[10,10]:o,c=e.className,u=c===void 0?"":c,l=Te(e,i0),d=A.useContext(We),h=d.path;return F.createElement("path",Pe({ref:t,d:h(qi().step(s)()),fill:r,stroke:a,className:"rsm-graticule ".concat(u)},l))});ma.displayName="Graticule";ma.propTypes={fill:P.string,stroke:P.string,step:P.array,className:P.string};A.memo(ma);var a0=["value"],o0=A.createContext(),s0={x:0,y:0,k:1,transformString:"translate(0 0) scale(1)"},ul=function(t){var n=t.value,r=n===void 0?s0:n,i=Te(t,a0);return F.createElement(o0.Provider,Pe({value:r},i))};ul.propTypes={x:P.number,y:P.number,k:P.number,transformString:P.string};
5function l0(e){var t=e.center,n=e.filterZoomEvent,r=e.onMoveStart,i=e.onMoveEnd,a=e.onMove,o=e.translateExtent,s=o===void 0?[[-1/0,-1/0],[1/0,1/0]]:o,c=e.scaleExtent,u=c===void 0?[1,8]:c,l=e.zoom,d=l===void 0?1:l,h=A.useContext(We),p=h.width,m=h.height,v=h.projection,j=pe(t,2),y=j[0],N=j[1],w=A.useState({x:0,y:0,k:1}),_=pe(w,2),E=_[0],k=_[1],T=A.useRef({x:0,y:0,k:1}),$=A.useRef(),q=A.useRef(),L=A.useRef(!1),z=pe(s,2),Z=z[0],W=z[1],g=pe(Z,2),x=g[0],b=g[1],M=pe(W,2),R=M[0],C=M[1],K=pe(u,2),X=K[0],Y=K[1];return A.useEffect(function(){var ne=et($.current);function J(oe){!r||L.current||r({coordinates:v.invert(To(p,m,oe.transform)),zoom:oe.transform.k},oe)}function ie(oe){if(!L.current){var De=oe.transform,at=oe.sourceEvent;k({x:De.x,y:De.y,k:De.k,dragging:at}),a&&a({x:De.x,y:De.y,zoom:De.k,dragging:at},oe)}}function de(oe){if(L.current){L.current=!1;return}var De=v.invert(To(p,m,oe.transform)),at=pe(De,2),Cr=at[0],ot=at[1];T.current={x:Cr,y:ot,k:oe.transform.k},i&&i({coordinates:[Cr,ot],zoom:oe.transform.k},oe)}function ge(oe){return n?n(oe):oe?!oe.ctrlKey&&!oe.button:!1}var Ne=zp().filter(ge).scaleExtent([X,Y]).translateExtent([[x,b],[R,C]]).on("start",J).on("zoom",ie).on("end",de);q.current=Ne,ne.call(Ne)},[p,m,x,b,R,C,X,Y,v,r,a,i,n]),A.useEffect(function(){if(!(y===T.current.x&&N===T.current.y&&d===T.current.k)){var ne=v([y,N]),J=ne[0]*d,ie=ne[1]*d,de=et($.current);L.current=!0,de.call(q.current.transform,fa.translate(p/2-J,m/2-ie).scale(d)),k({x:p/2-J,y:m/2-ie,k:d}),T.current={x:y,y:N,k:d}}},[y,N,d,p,m,v]),{mapRef:$,position:E,transformString:"translate(".concat(E.x," ").concat(E.y,") scale(").concat(E.k,")")}}var c0=["center","zoom","minZoom","maxZoom","translateExtent","filterZoomEvent","onMoveStart","onMove","onMoveEnd","className"],ga=A.forwardRef(function(e,t){var n=e.center,r=n===void 0?[0,0]:n,i=e.zoom,a=i===void 0?1:i,o=e.minZoom,s=o===void 0?1:o,c=e.maxZoom,u=c===void 0?8:c,l=e.translateExtent,d=e.filterZoomEvent,h=e.onMoveStart,p=e.onMove,m=e.onMoveEnd,v=e.className,j=Te(e,c0),y=A.useContext(We),N=y.width,w=y.height,_=l0({center:r,filterZoomEvent:d,onMoveStart:h,onMove:p,onMoveEnd:m,scaleExtent:[s,u],translateExtent:l,zoom:a}),E=_.mapRef,k=_.transformString,T=_.position;return F.createElement(ul,{value:{x:T.x,y:T.y,k:T.k,transformString:k}},F.createElement("g",{ref:E},F.createElement("rect",{width:N,height:w,fill:"transparent"}),F.createElement("g",Pe({ref:t,transform:k,className:"rsm-zoomable-group ".concat(v)},j))))});ga.displayName="ZoomableGroup";ga.propTypes={center:P.array,zoom:P.number,minZoom:P.number,maxZoom:P.number,translateExtent:P.arrayOf(P.array),onMoveStart:P.func,onMove:P.func,onMoveEnd:P.func,className:P.string};var u0=["id","fill","stroke","strokeWidth","className"],va=A.forwardRef(function(e,t){var n=e.id,r=n===void 0?"rsm-sphere":n,i=e.fill,a=i===void 0?"transparent":i,o=e.stroke,s=o===void 0?"currentcolor":o,c=e.strokeWidth,u=c===void 0?.5:c,l=e.className,d=l===void 0?"":l,h=Te(e,u0),p=A.useContext(We),m=p.path,v=A.useMemo(function(){return m({type:"Sphere"})},[m]);return F.createElement(A.Fragment,null,F.createElement("defs",null,F.createElement("clipPath",{id:r},F.createElement("path",{d:v}))),F.createElement("path",Pe({ref:t,d:v,fill:a,stroke:s,strokeWidth:u,style:{pointerEvents:"none"},className:"rsm-sphere ".concat(d)},h)))});va.displayName="Sphere";va.propTypes={id:P.string,fill:P.string,stroke:P.string,strokeWidth:P.number,className:P.string};A.memo(va);var f0=["coordinates","children","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp","onFocus","onBlur","style","className"],xa=A.forwardRef(function(e,t){var n=e.coordinates,r=e.children,i=e.onMouseEnter,a=e.onMouseLeave,o=e.onMouseDown,s=e.onMouseUp,c=e.onFocus,u=e.onBlur,l=e.style,d=l===void 0?{}:l,h=e.className,p=h===void 0?"":h,m=Te(e,f0),v=A.useContext(We),j=v.projection,y=A.useState(!1),N=pe(y,2),w=N[0],_=N[1],E=A.useState(!1),k=pe(E,2),T=k[0],$=k[1],q=j(n),L=pe(q,2),z=L[0],Z=L[1];function W(C){$(!0),i&&i(C)}function g(C){$(!1),w&&_(!1),a&&a(C)}function x(C){$(!0),c&&c(C)}function b(C){$(!1),w&&_(!1),u&&u(C)}function M(C){_(!0),o&&o(C)}function R(C){_(!1),s&&s(C)}return F.createElement("g",Pe({ref:t,transform:"translate(".concat(z,", ").concat(Z,")"),className:"rsm-marker ".concat(p),onMouseEnter:W,onMouseLeave:g,onFocus:x,onBlur:b,onMouseDown:M,onMouseUp:R,style:d[w||T?w?"pressed":"hover":"default"]},m),r)});xa.displayName="Marker";xa.propTypes={coordinates:P.array,children:P.oneOfType([P.node,P.arrayOf(P.
5node)]),onMouseEnter:P.func,onMouseLeave:P.func,onMouseDown:P.func,onMouseUp:P.func,onFocus:P.func,onBlur:P.func,style:P.object,className:P.string};var d0=["from","to","coordinates","stroke","strokeWidth","fill","className"],fl=A.forwardRef(function(e,t){var n=e.from,r=n===void 0?[0,0]:n,i=e.to,a=i===void 0?[0,0]:i,o=e.coordinates,s=e.stroke,c=s===void 0?"currentcolor":s,u=e.strokeWidth,l=u===void 0?3:u,d=e.fill,h=d===void 0?"transparent":d,p=e.className,m=p===void 0?"":p,v=Te(e,d0),j=A.useContext(We),y=j.path,N={type:"LineString",coordinates:o||[r,a]};return F.createElement("path",Pe({ref:t,d:y(N),className:"rsm-line ".concat(m),stroke:c,strokeWidth:l,fill:h},v))});fl.displayName="Line";fl.propTypes={from:P.array,to:P.array,coordinates:P.array,stroke:P.string,strokeWidth:P.number,fill:P.string,className:P.string};var h0=["subject","children","connectorProps","dx","dy","curve","className"],dl=A.forwardRef(function(e,t){var n=e.subject,r=e.children,i=e.connectorProps,a=e.dx,o=a===void 0?30:a,s=e.dy,c=s===void 0?30:s,u=e.curve,l=u===void 0?0:u,d=e.className,h=d===void 0?"":d,p=Te(e,h0),m=A.useContext(We),v=m.projection,j=v(n),y=pe(j,2),N=y[0],w=y[1],_=Jp(o,c,l);return F.createElement("g",Pe({ref:t,transform:"translate(".concat(N+o,", ").concat(w+c,")"),className:"rsm-annotation ".concat(h)},p),F.createElement("path",Pe({d:_,fill:"transparent",stroke:"#000"},i)),r)});dl.displayName="Annotation";dl.propTypes={subject:P.array,children:P.oneOfType([P.node,P.arrayOf(P.node)]),dx:P.number,dy:P.number,curve:P.number,connectorProps:P.object,className:P.string};const Pt=["#5E01D2","#29025B","#8B5CF6","#A78BFA","#C4B5FD"],p0=[{value:"1d",label:"1 kun"},{value:"3d",label:"3 kun"},{value:"1w",label:"1 hafta"},{value:"1m",label:"1 oy"},{value:"all",label:"Hammasi"}],Io=e=>{const t=new Date;switch(e){case"1d":return Kr(t,1);case"3d":return Kr(t,3);case"1w":return Kr(t,7);case"1m":return Ql(t);case"all":return null}},m0={Chrome:"#4285F4",Safari:"#000000",Firefox:"#FF7139",Edge:"#0078D7",Opera:"#FF1B2D",Samsung:"#1428A0",Yandex:"#FF0000",IE:"#0076D6",Boshqa:"#6B7280"},g0={"To'g'ridan-to'g'ri":"#5E01D2",Google:"#4285F4",Yandex:"#FF0000",Telegram:"#0088cc",Instagram:"#E4405F",Facebook:"#1877F2","Twitter/X":"#000000",YouTube:"#FF0000",TikTok:"#000000",Bing:"#008373",DuckDuckGo:"#DE5833",Boshqa:"#6B7280"},v0=e=>{if(!e)return"ð";const t=e.toUpperCase().split("").map(n=>127397+n.charCodeAt(0));return String.fromCodePoint(...t)},A0=()=>{const[e,t]=A.useState("all"),[n,r]=A.useState({totalVisits:0,totalCopies:0,totalViews:0,totalPromoCodes:0,totalBrands:0}),[i,a]=A.useState({todayVisits:0,weeklyGrowth:0,conversionRate:0,activeUsers:0,bounceRate:0}),[o,s]=A.useState([]),[c,u]=A.useState([]),[l,d]=A.useState([]),[h,p]=A.useState([]),[m,v]=A.useState([]),[j,y]=A.useState([]),[N,w]=A.useState([]),[_,E]=A.useState([]),[k,T]=A.useState([]),[$,q]=A.useState([]),[L,z]=A.useState({total:0,today:0}),[Z,W]=A.useState([]),[g,x]=A.useState([]),[b,M]=A.useState([]),[R,C]=A.useState([]),[K,X]=A.useState(1),[Y,ne]=A.useState(!1),[J,ie]=A.useState(!1),[de,ge]=A.useState(!1),[Ne,oe]=A.useState(!0),[De,at]=A.useState(!1),ot=((S,I)=>{if(S.length===0)return[];const ee=30/I,Q={};return S.forEach(G=>{const te=Array.isArray(G.coordinates)?G.coordinates:[0,0],ht=Math.floor(te[0]/ee),zr=Math.floor(te[1]/ee),Se=`${ht}_${zr}`;if(!Q[Se])Q[Se]={coordinates:te,value:G.value,count:1,names:[G.name],isNew:G.isNew};else{const ce=Q[Se].value+G.value;Q[Se].coordinates=[(Q[Se].coordinates[0]*Q[Se].value+te[0]*G.value)/ce,(Q[Se].coordinates[1]*Q[Se].value+te[1]*G.value)/ce],Q[Se].value=ce,Q[Se].count+=1,Q[Se].names.length<3&&Q[Se].names.push(G.name),G.isNew&&(Q[Se].isNew=!0)}}),Object.values(Q).map(G=>({name:G.count>1?`${G.names.slice(0,2).join(", ")}${G.count>2?` va ${G.count-2} ta boshqa`:""}`:G.names[0],coordinates:G.coordinates,value:G.value,count:G.count,isNew:G.isNew}))})(R,K),Tr={};g.forEach(S=>{S.code&&(Tr[S.code.toUpperCase()]=S.value)});const ya=Math.max(...g.map(S=>S.value),1),wa=S=>{const I=Tr[S?.toUpperCase()]||0;if(I===0)return"hsl(var(--muted))";const ee=Math.pow(I/ya,.4),Q=186,G=10+ee*45,te=85-ee*45;return`hsl(${Q}, ${G}%, ${te}%)`},hl=async()=>{at(!0);try{const{data:S,error:I}=await lt.rpc("admin_reset_statistics");if(I)throw I;const ee=S??{};_a.success(`Statistika tozalandi: ${ee.visits??0} tashrif, ${ee.clicks??0} bosish, ${ee.promos??0} promokod hisoblagichi`),Dr()}catch(S){console.error("Error resetting statistics:",S),_a.error("Statistikani tozalashda xatolik yuz berdi")}finally{at(!1)}},Dr=A.useCallback(async()=>{try{const I=Io(e)?.toISOString()||null,[ee,Q]=await Promise.all([lt.rpc("get_dashboard_stats",{filter_from:I}),lt.rpc("get_dashboard_chart_data",{filter_from:I})]);if(ee.error)throw ee.error;if(Q.error)throw Q.error;const G=ee.data,te=Q.data;r({totalVisits:G.totalVisits||0,totalCopies:G.totalCopies||0,totalViews:G.totalViews||0,totalPromoCodes:G.totalPromoCodes||0,totalBrands:G.totalBrands||0}),a({todayVisits:G.todayVisits||0,weeklyGrowth:Number(G.weeklyGrowth)||0,conversionRate:Number(G.conversionRate)||0,activeUsers:G.activeUsers||0,bounceRate:Number(G.bounceRate)||0}),d(te.dailyVisits||[]),p(te.dailyUniqueVisitors||[]),v(te.dailyPromoStats||[]),s(te.topPromoCodes||[]),w((te.pageStats||[]).map(ce=>({...ce,fullPage:ce.page,page:ce.page==="/"?"Bosh sahifa":ce.page.replace(/^\//,"").replace(/-/g," ")})));const ht=te.deviceStats||{mobile:0,tablet:0,desktop:0};E([{name:"Mobil",value:ht.mobile||0,icon:"ð±"},{name:"Planshet",value:ht.tablet||0,icon:"ð²"},{name:"Kompyuter",value:ht.desktop||0,icon:"ð»"}].filter(ce=>ce.value>0)),T((te.browserStats||[]).map(ce=>({...ce,color:m0[ce.name]||"#6B7280"})).slice(0,6)),q((te.trafficSources||[]).map(ce=>({...ce,color:g0[ce.name]||"#6B7280"})).slice(0,8)),z(te.pwaInstalls||{total:0,today:0}),W(te.dailyPwaInstalls||[]);const{data:zr}=await lt.from("product_categories").select("id, name, icon, products(id)");u(zr?.map(ce=>({name:ce.name,icon:ce.icon||"ð¦",value:ce.products?.length||0}))||[]),(async()=>{const{data:ce,error:ja}=await lt.rpc("promo_clicks_detail",{filter_from:I});
5if(ja){console.error("promo_clicks_detail:",ja);return}const ml=new Date().toISOString().slice(0,10);y((ce||[]).map(st=>({promoCode:st.promo_code||st.promo_code_id,brandName:st.brand_name||"Noma'lum",discount:st.discount||"",views:Number(st.views),copies:Number(st.copies),todayViews:Number(st.today_views),todayCopies:Number(st.today_copies),date:ml})))})()}catch(S){console.error("Error fetching dashboard data:",S)}finally{oe(!1)}},[e]),ba=A.useCallback(async()=>{if(!(de&&!J)){ie(!0);try{const I=Io(e)?.toISOString()||null,{data:ee,error:Q}=await lt.rpc("get_dashboard_geo_data",{filter_from:I});if(Q)throw Q;const G=ee;x((G.countryStats||[]).map(te=>({...te,flag:v0(te.code||"")}))),M(G.cityStats||[]),C((G.mapMarkers||[]).map(te=>({...te,coordinates:Array.isArray(te.coordinates)?te.coordinates:[0,0]}))),ge(!0)}catch(S){console.error("Error fetching geo data:",S)}finally{ie(!1)}}},[e,de]),pl=()=>{ne(S=>!S)};return A.useEffect(()=>{Y&&!de&&!J&&ba()},[Y,de,J,ba]),A.useEffect(()=>{oe(!0),ge(!1),Dr();const S=lt.channel("realtime-promos").on("postgres_changes",{event:"*",schema:"public",table:"promo_codes"},()=>{Dr()}).subscribe();return()=>{lt.removeChannel(S)}},[e]),Ne?f.jsx("div",{className:"p-4 md:p-8 flex items-center justify-center",children:f.jsx("div",{className:"animate-spin w-8 h-8 border-4 border-primary border-t-transparent rounded-full"})}):f.jsxs("div",{className:"p-4 md:p-8",children:[f.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-8",children:[f.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"Dashboard"}),f.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[f.jsxs(Ol,{children:[f.jsx(Rl,{asChild:!0,children:f.jsxs(gl,{variant:"destructive",size:"sm",disabled:De,children:[f.jsx(Bl,{className:`w-4 h-4 mr-2 ${De?"animate-spin":""}`}),"Statistikani tozalash"]})}),f.jsxs(Cl,{children:[f.jsxs(Tl,{children:[f.jsx(Dl,{children:"Statistikani tozalash"}),f.jsx(zl,{children:"Barcha tashriflar, nusxalashlar va promokod statistikasi o'chiriladi. Bu amalni qaytarib bo'lmaydi."})]}),f.jsxs(Il,{children:[f.jsx(Ll,{children:"Bekor qilish"}),f.jsx(Fl,{onClick:hl,children:"Ha, tozalash"})]})]})]}),f.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[f.jsx(Vl,{className:"w-4 h-4 text-muted-foreground"}),f.jsx("div",{className:"flex flex-wrap gap-1",children:p0.map(S=>f.jsx("button",{onClick:()=>t(S.value),className:`min-h-11 md:min-h-0 px-3 py-1.5 text-xs font-medium rounded-lg transition-colors ${e===S.value?"bg-primary text-primary-foreground":"bg-secondary text-muted-foreground hover:bg-secondary/80"}`,children:S.label},S.value))})]})]})]}),f.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-2 lg:grid-cols-5 gap-6 mb-6",children:[f.jsx("div",{className:"bg-card rounded-2xl p-6 shadow-card",children:f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center",children:f.jsx(ct,{className:"w-6 h-6 text-primary"})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"Jami tashriflar"}),f.jsx("p",{className:"text-2xl font-bold text-foreground",children:n.totalVisits})]})]})}),f.jsx("div",{className:"bg-card rounded-2xl p-6 shadow-card",children:f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("div",{className:"w-12 h-12 rounded-xl bg-purple-500/10 flex items-center justify-center",children:f.jsx(ct,{className:"w-6 h-6 text-purple-500"})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"Kod ko'rishlar"}),f.jsx("p",{className:"text-2xl font-bold text-foreground",children:n.totalViews})]})]})}),f.jsx("div",{className:"bg-card rounded-2xl p-6 shadow-card",children:f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("div",{className:"w-12 h-12 rounded-xl bg-green-500/10 flex items-center justify-center",children:f.jsx(Ir,{className:"w-6 h-6 text-green-500"})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"Nusxalashlar"}),f.jsx("p",{className:"text-2xl font-bold text-foreground",children:n.totalCopies})]})]})}),f.jsx("div",{className:"bg-card rounded-2xl p-6 shadow-card",children:f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("div",{className:"w-12 h-12 rounded-xl bg-orange-500/10 flex items-center justify-center",children:f.jsx(ql,{className:"w-6 h-6 text-orange-500"})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"Promokodlar"}),f.jsx("p",{className:"text-2xl font-bold text-foreground",children:n.totalPromoCodes})]})]})}),f.jsx("div",{className:"bg-card rounded-2xl p-6 shadow-card",children:f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("div",{className:"w-12 h-12 rounded-xl bg-blue-500/10 flex items-center justify-center",children:f.jsx(Ea,{className:"w-6 h-6 text-blue-500"})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"Brendlar"}),f.jsx("p",{className:"text-2xl font-bold text-foreground",children:n.totalBrands})]})]})}),f.jsx("div",{className:"bg-card rounded-2xl p-6 shadow-card",children:f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("div",{className:"w-12 h-12 rounded-xl bg-emerald-500/10 flex items-center justify-center",children:f.jsx(Lr,{className:"w-6 h-6 text-emerald-500"})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"PWA O'rnatishlar"}),f.jsx("p",{className:"text-2xl font-bold text-foreground",children:L.total}),f.jsxs("p",{className:"text-xs text-muted-foreground",children:["Bugun: +",L.today]})]})]})})]}),f.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 ga
5p-4 mb-8",children:[f.jsxs("div",{className:"bg-card rounded-xl p-4 shadow-card",children:[f.jsx("div",{className:"flex items-center justify-between mb-2",children:f.jsx(ct,{className:"w-4 h-4 text-muted-foreground"})}),f.jsx("p",{className:"text-xl font-bold text-foreground",children:i.todayVisits}),f.jsx("p",{className:"text-xs text-muted-foreground",children:"Bugungi tashriflar"})]}),f.jsxs("div",{className:"bg-card rounded-xl p-4 shadow-card",children:[f.jsxs("div",{className:"flex items-center justify-between mb-2",children:[f.jsx(ka,{className:"w-4 h-4 text-muted-foreground"}),f.jsxs("span",{className:`flex items-center text-xs ${i.weeklyGrowth>=0?"text-green-500":"text-red-500"}`,children:[i.weeklyGrowth>=0?f.jsx(Kl,{className:"w-3 h-3"}):f.jsx(Pa,{className:"w-3 h-3"}),Math.abs(i.weeklyGrowth),"%"]})]}),f.jsxs("p",{className:"text-xl font-bold text-foreground",children:[i.weeklyGrowth>=0?"+":"",i.weeklyGrowth,"%"]}),f.jsx("p",{className:"text-xs text-muted-foreground",children:"Haftalik o'sish"})]}),f.jsxs("div",{className:"bg-card rounded-xl p-4 shadow-card",children:[f.jsx("div",{className:"flex items-center justify-between mb-2",children:f.jsx(Gl,{className:"w-4 h-4 text-muted-foreground"})}),f.jsxs("p",{className:"text-xl font-bold text-foreground",children:[i.conversionRate,"%"]}),f.jsx("p",{className:"text-xs text-muted-foreground",children:"Konversiya"})]}),f.jsxs("div",{className:"bg-card rounded-xl p-4 shadow-card",children:[f.jsx("div",{className:"flex items-center justify-between mb-2",children:f.jsx(Aa,{className:"w-4 h-4 text-muted-foreground"})}),f.jsx("p",{className:"text-xl font-bold text-foreground",children:i.activeUsers}),f.jsx("p",{className:"text-xs text-muted-foreground",children:"Faol (1 soat)"})]}),f.jsxs("div",{className:"bg-card rounded-xl p-4 shadow-card",children:[f.jsx("div",{className:"flex items-center justify-between mb-2",children:f.jsx(Pa,{className:"w-4 h-4 text-muted-foreground"})}),f.jsxs("p",{className:"text-xl font-bold text-foreground",children:[i.bounceRate,"%"]}),f.jsx("p",{className:"text-xs text-muted-foreground",children:"Tark etish"})]})]}),f.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-card mb-8",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(ct,{className:"w-5 h-5 text-primary"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Kunlik saytga tashrif buyurishlar"})]}),l.length>0?f.jsx(Ye,{width:"100%",height:300,children:f.jsxs(Br,{data:l,children:[f.jsx("defs",{children:f.jsxs("linearGradient",{id:"colorVisits",x1:"0",y1:"0",x2:"0",y2:"1",children:[f.jsx("stop",{offset:"5%",stopColor:"hsl(var(--admin-chart-1))",stopOpacity:.4}),f.jsx("stop",{offset:"95%",stopColor:"hsl(var(--admin-chart-1))",stopOpacity:.05})]})}),f.jsx(Nt,{strokeDasharray:"3 3",stroke:"hsl(var(--border))",vertical:!1}),f.jsx(St,{dataKey:"date",stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},interval:"preserveStartEnd"}),f.jsx(Et,{stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},allowDecimals:!1}),f.jsx(He,{contentStyle:{background:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0,0,0,0.15)"},labelFormatter:(S,I)=>I?.[0]?.payload?.fullDate||S,formatter:S=>[`${S} ta`,"Tashrif buyurishlar"]}),f.jsx(Vr,{type:"monotone",dataKey:"visits",stroke:"hsl(var(--admin-chart-1))",strokeWidth:2,fill:"url(#colorVisits)"})]})}):f.jsx("div",{className:"h-[300px] flex items-center justify-center text-muted-foreground",children:"Ma'lumotlar mavjud emas"})]}),f.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-card mb-8",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(Aa,{className:"w-5 h-5 text-green-500"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Kunlik noyob foydalanuvchilar"})]}),h.length>0?f.jsx(Ye,{width:"100%",height:300,children:f.jsxs(Br,{data:h,children:[f.jsx("defs",{children:f.jsxs("linearGradient",{id:"colorUniqueVisitors",x1:"0",y1:"0",x2:"0",y2:"1",children:[f.jsx("stop",{offset:"5%",stopColor:"#22C55E",stopOpacity:.4}),f.jsx("stop",{offset:"95%",stopColor:"#22C55E",stopOpacity:.05})]})}),f.jsx(Nt,{strokeDasharray:"3 3",stroke:"hsl(var(--border))",vertical:!1}),f.jsx(St,{dataKey:"date",stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},interval:"preserveStartEnd"}),f.jsx(Et,{stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},allowDecimals:!1}),f.jsx(He,{contentStyle:{background:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0,0,0,0.15)"},labelFormatter:(S,I)=>I?.[0]?.payload?.fullDate||S,formatter:S=>[`${S} ta`,"Noyob foydalanuvchilar"]}),f.jsx(Vr,{type:"monotone",dataKey:"visitors",stroke:"#22C55E",strokeWidth:2,fill:"url(#colorUniqueVisitors)"})]})}):f.jsx("div",{className:"h-[300px] flex items-center justify-center text-muted-foreground",children:"Ma'lumotlar mavjud emas"})]}),f.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-card mb-8",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(Lr,{className:"w-5 h-5 text-emerald-500"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Kunlik PWA o'rnatishlar"}),f.jsxs("span",{className:"ml-auto text-sm text-muted-foreground",children:["Jami: ",L.total," ta | Bugun: ",L.today," ta"]})]}),Z.length>0?f.jsx(Ye,{width:"100%",height:260,children:f.jsxs(Br,{data:Z,children:[f.jsx("defs",{children:f.jsxs("linearGradient",{id:"colorPwa",x1:"0",y1:"0",x2:"0",y2:"1",children:[f.jsx("stop",{offset:"5%",
5stopColor:"#10B981",stopOpacity:.4}),f.jsx("stop",{offset:"95%",stopColor:"#10B981",stopOpacity:.05})]})}),f.jsx(Nt,{strokeDasharray:"3 3",stroke:"hsl(var(--border))",vertical:!1}),f.jsx(St,{dataKey:"date",stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},interval:"preserveStartEnd"}),f.jsx(Et,{stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},allowDecimals:!1}),f.jsx(He,{contentStyle:{background:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px"},formatter:S=>[`${S} ta`,"O'rnatishlar"]}),f.jsx(Vr,{type:"monotone",dataKey:"installs",stroke:"#10B981",strokeWidth:2,fill:"url(#colorPwa)"})]})}):f.jsxs("div",{className:"h-[260px] flex flex-col items-center justify-center gap-2 text-muted-foreground",children:[f.jsx(Lr,{className:"w-8 h-8 opacity-30"}),f.jsx("p",{children:"PWA o'rnatishlar hali yo'q"})]})]}),f.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-card mb-8",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(ct,{className:"w-5 h-5 text-purple-500"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Kunlik ko'rish va nusxalash statistikasi"})]}),m.length>0?f.jsx(Ye,{width:"100%",height:300,children:f.jsxs(qr,{data:m,children:[f.jsx(Nt,{strokeDasharray:"3 3",stroke:"hsl(var(--border))",vertical:!1}),f.jsx(St,{dataKey:"date",stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},interval:"preserveStartEnd"}),f.jsx(Et,{stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},allowDecimals:!1}),f.jsx(He,{contentStyle:{background:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0,0,0,0.15)"},formatter:(S,I)=>[`${S} ta`,I==="views"?"Ko'rishlar":"Nusxalashlar"]}),f.jsx(Pn,{dataKey:"views",fill:"#8B5CF6",name:"views",radius:[4,4,0,0]}),f.jsx(Pn,{dataKey:"copies",fill:"#22C55E",name:"copies",radius:[4,4,0,0]})]})}):f.jsx("div",{className:"h-[300px] flex items-center justify-center text-muted-foreground",children:"Ma'lumotlar mavjud emas"}),f.jsxs("div",{className:"flex items-center justify-center gap-6 mt-4",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("div",{className:"w-3 h-3 rounded bg-purple-500"}),f.jsx("span",{className:"text-sm text-muted-foreground",children:"Ko'rishlar"})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("div",{className:"w-3 h-3 rounded bg-green-500"}),f.jsx("span",{className:"text-sm text-muted-foreground",children:"Nusxalashlar"})]})]})]}),f.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-card mb-8",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(ct,{className:"w-5 h-5 text-purple-500"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Promokod bo'yicha statistika"}),f.jsx("span",{className:"text-xs text-muted-foreground ml-2",children:"(tanlangan davr)"})]}),j.length>0?f.jsxs("div",{className:"overflow-x-auto",children:[f.jsxs("table",{className:"w-full",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-border",children:[f.jsx("th",{className:"text-left py-3 px-2 text-sm font-medium text-muted-foreground",children:"Brend"}),f.jsx("th",{className:"text-left py-3 px-2 text-sm font-medium text-muted-foreground",children:"Kod"}),f.jsx("th",{className:"text-left py-3 px-2 text-sm font-medium text-muted-foreground",children:"Chegirma"}),f.jsx("th",{className:"text-center py-3 px-2 text-sm font-medium text-muted-foreground",children:f.jsxs("span",{className:"flex items-center justify-center gap-1",children:[f.jsx(ct,{className:"w-4 h-4 text-purple-500"}),"Jami"]})}),f.jsx("th",{className:"text-center py-3 px-2 text-sm font-medium text-muted-foreground",children:f.jsxs("span",{className:"flex items-center justify-center gap-1",children:[f.jsx(Ir,{className:"w-4 h-4 text-green-500"}),"Jami"]})}),f.jsx("th",{className:"text-center py-3 px-2 text-sm font-medium text-muted-foreground",children:f.jsxs("span",{className:"flex items-center justify-center gap-1",children:[f.jsx(ct,{className:"w-4 h-4 text-purple-400"}),"Bugun"]})}),f.jsx("th",{className:"text-center py-3 px-2 text-sm font-medium text-muted-foreground",children:f.jsxs("span",{className:"flex items-center justify-center gap-1",children:[f.jsx(Ir,{className:"w-4 h-4 text-green-400"}),"Bugun"]})})]})}),f.jsx("tbody",{children:j.slice(0,10).map((S,I)=>f.jsxs("tr",{className:"border-b border-border/50 hover:bg-secondary/30 transition-colors",children:[f.jsx("td",{className:"py-3 px-2 text-sm font-medium text-foreground",children:S.brandName}),f.jsx("td",{className:"py-3 px-2",children:f.jsx("code",{className:"bg-secondary px-2 py-1 rounded text-xs font-mono",children:S.promoCode})}),f.jsx("td",{className:"py-3 px-2 text-sm text-primary font-semibold",children:S.discount}),f.jsx("td",{className:"py-3 px-2 text-center",children:f.jsx("span",{className:"text-purple-500 font-bold",children:S.views})}),f.jsx("td",{className:"py-3 px-2 text-center",children:f.jsx("span",{className:"text-green-500 font-bold",children:S.copies})}),f.jsx("td",{className:"py-3 px-2 text-center",children:f.jsx("span",{className:"text-purple-400 font-medium",children:S.todayViews||0})}),f.jsx("td",{className:"py-3 px-2 text-center",children:f.jsx("span",{className:"text-green-400 font-medium",children:S.todayCopies||0})})]},I))})]}),j.length>10&&f.jsxs("p",{className:"text-center text-sm text-muted-foreground mt-4",children:["va yana ",j.length-10," ta promokod..."]})]}):f.jsx("div",{className:"h-[200px] flex items-center justify-center text-muted-foreground",children:"Ma'lumotlar mavjud emas"})]}),f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-card",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(ka,{className:"w-5 h-5 text-primary"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Top Promokodlar"})]}),o.length>0?f.jsx(Ye,{width:"100%",height:300,children:f.jsxs(qr,{data:o,children:[f.jsx(Nt,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),f.jsx(St,{dataKey:"name",stroke:"hsl(var(--muted-foreground))"}),f.jsx(Et,{stroke:"hsl(var(--muted-foreground))"}),f.jsx(He,{contentStyle:{background:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px"}}),f.jsx(Pn,{dataKey:"copies",fill:"hsl(var(--admin-chart-1))",radius:[4,4,0,0]})]})}):f.jsx("div",{className:"h-[300px] flex items-center justify-center text-muted-foreground",children:"Ma'lumotlar mavjud emas"})]}),f.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-card",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(Ea,{className:"w-5 h-5 text-primary"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Mahsulot kategoriyalari"})]}),c.length>0?f.jsx(Ye,{width:"100%",height:300,children:f.jsxs(Gr,{children:[f.jsx(Fe,{data:c,cx:"50%",cy:"50%",labelLine:!1,label:({name:S,icon:I,percent:ee})=>`${I||""} ${S} (${(ee*100).toFixed(0)}%)`,outerRadius:100,fill:"#8884d8",dataKey:"value",children:c.map((S,I)=>f.jsx(Ln,{fill:Pt[I%Pt.length]},`cell-${I}`))}),f.jsx(He,{})]})}):f.jsx("div",{className:"h-[300px] flex items-center justify-center text-muted-foreground",children:"Ma'lumotlar mavjud emas"})]}),f.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-card",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(Xl,{className:"w-5 h-5 text-primary"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Qurilma turlari"})]}),_.length>0?f.jsxs("div",{className:"space-y-4",children:[f.jsx(Ye,{width:"100%",height:200,children:f.jsxs(Gr,{children:[f.jsx(Fe,{data:_,cx:"50%",cy:"50%",innerRadius:50,outerRadius:80,fill:"#8884d8",dataKey:"value",label:({name:S,icon:I,percent:ee})=>`${I} ${S} (${(ee*100).toFixed(0)}%)`,children:_.map((S,I)=>f.jsx(Ln,{fill:Pt[I%Pt.length]},`device-cell-${I}`))}),f.jsx(He,{})]})}),f.jsx("div",{className:"grid grid-cols-3 gap-3 mt-4",children:_.map((S,I)=>f.jsxs("div",{className:"flex flex-col items-center p-3 rounded-lg bg-secondary/50",children:[f.jsx("div",{className:"text-2xl mb-1",children:S.icon}),f.jsx("div",{className:"text-sm font-medium text-foreground",children:S.name}),f.jsx("div",{className:"text-lg font-bold",style:{color:Pt[I%Pt.length]},children:S.value})]},S.name))})]}):f.jsx("div",{className:"h-[300px] flex items-center justify-center text-muted-foreground",children:"Ma'lumotlar mavjud emas"})]})]}),f.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-card mt-6",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(Zl,{className:"w-5 h-5 text-primary"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Ko'p ko'rilgan sahifalar"})]}),N.length>0?f.jsx(Ye,{width:"100%",height:350,children:f.jsxs(qr,{data:N,layout:"vertical",children:[f.jsx(Nt,{strokeDasharray:"3 3",stroke:"hsl(var(--border))",horizontal:!0,vertical:!1}),f.jsx(St,{type:"number",stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12}}),f.jsx(Et,{type:"category",dataKey:"page",stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},width:window.innerWidth<640?88:150}),f.jsx(He,{contentStyle:{background:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0,0,0,0.15)"},formatter:S=>[`${S} tashrif`,"Tashriflar"],labelFormatter:(S,I)=>I?.[0]?.payload?.fullPage||""}),f.jsx(Pn,{dataKey:"visits",fill:"hsl(var(--admin-chart-1))",radius:[0,4,4,0]})]})}):f.jsx("div",{className:"h-[350px] flex items-center justify-center text-muted-foreground",children:"Ma'lumotlar mavjud emas"})]}),f.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-card mt-6",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(Fr,{className:"w-5 h-5 text-primary"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Brauzer turlari"})]}),k.length>0?f.jsx("div",{className:"space-y-4",children:k.map(S=>{const I=Math.max(...k.map(Q=>Q.value)),ee=S.value/I*100;return f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("span",{className:"text-sm font-medium text-foreground",children:S.name}),f.jsxs("span",{className:"text-sm text-muted-foreground",children:[S.value," tashrif"]})]}),f.jsx("div",{className:"h-3 bg-secondary rounded-full overflow-hidden",children:f.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${ee}%`,backgroundColor:S.color}})})]},S.name)})}):f.jsx("div",{className:"h-[200px] flex items-center justify-center text-muted-foreground",children:"Ma'lumotlar mavjud emas"})]}),f.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-card mt-6",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(Ul,{className:"w-5 h-5 text-primary"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Trafik manbalari"})]}),$.length>0?f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsx(Ye,{width:"100%",height:300,children:f.jsxs(Gr,{children:[f.jsx(Fe,{data:$,cx:"50%",cy:"50%",innerRadius:60,outerRadius:100,paddingAngle:2,dataKey:"value",nameKey:"name",label:({name:S,percent:I})=>`${S} ${(I*100).toFixed(0)}%`,labelLine:!1,children:$.map((S,I)=>f.jsx(Ln,{fill:S.color},`source-cell-${I}`))}),f.jsx(He,{contentStyle:{background:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px"},formatter:S=>[`${S} tashrif`,"Tashriflar"]})]})}),f.jsx("div",{className:"space-y-3",children:$.map(S=>{const I=$.reduce((Q,G)=>Q+G.value,0),ee=I>0?(S.value/I*100).toFixed(1):"0";return f.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-secondary/50",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:S.color}}),f.jsx("span",{className:"text-sm font-medium text-foreground",children:S.name})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsxs("span",{className:"text-sm text-muted-foreground",children:[S.value," tashrif"]}),f.jsxs("span",{className:"text-sm font-semibold text-foreground",children:[ee,"%"]})]})]},S.name)})})]}):f.jsx("div",{className:"h-[200px] flex items-center justify-center text-muted-foreground",children:"Ma'lumotlar mavjud emas"})]}),f.jsxs("div",{className:"mt-6",children:[f.jsxs("button",{onClick:pl,className:"w-full bg-card rounded-2xl p-6 shadow-card flex items-center justify-between hover:bg-secondary/30 transition-colors",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Fr,{className:"w-5 h-5 text-primary"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Geografik statistika"})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[J&&f.jsx("div",{className:"animate-spin w-4 h-4 border-2 border-primary border-t-transparent roun
5ded-full"}),Y?f.jsx(Wl,{className:"w-5 h-5 text-muted-foreground"}):f.jsx(Yl,{className:"w-5 h-5 text-muted-foreground"})]})]}),Y&&f.jsx("div",{className:"mt-4 space-y-6",children:J?f.jsx("div",{className:"bg-card rounded-2xl p-12 shadow-card flex items-center justify-center",children:f.jsx("div",{className:"animate-spin w-8 h-8 border-4 border-primary border-t-transparent rounded-full"})}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-card",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(Fr,{className:"w-5 h-5 text-primary"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Dunyo xaritasida tashriflar"})]}),R.length>0?f.jsxs("div",{className:"h-[400px] w-full relative",children:[f.jsxs("div",{className:"absolute top-2 right-2 z-10 flex gap-2",children:[f.jsx("button",{onClick:()=>X(S=>Math.min(S*1.5,8)),className:"w-8 h-8 rounded-lg bg-card border border-border flex items-center justify-center text-foreground hover:bg-secondary transition-colors",children:"+"}),f.jsx("button",{onClick:()=>X(S=>Math.max(S/1.5,.5)),className:"w-8 h-8 rounded-lg bg-card border border-border flex items-center justify-center text-foreground hover:bg-secondary transition-colors",children:"â"}),f.jsx("button",{onClick:()=>X(1),className:"px-2 h-8 rounded-lg bg-card border border-border flex items-center justify-center text-xs text-foreground hover:bg-secondary transition-colors",children:"Reset"})]}),f.jsxs("div",{className:"absolute bottom-2 left-2 z-10 px-2 py-1 rounded bg-card/80 border border-border text-xs text-muted-foreground",children:["Zoom: ",K.toFixed(1),"x | Klasterlar: ",ot.length]}),f.jsxs("div",{className:"absolute bottom-2 right-2 z-10 px-3 py-2 rounded-lg bg-card/90 border border-border",children:[f.jsx("div",{className:"text-xs text-muted-foreground mb-2",children:"Tashriflar soni"}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("div",{className:"w-4 h-3 rounded-sm",style:{backgroundColor:wa("")}}),f.jsx("div",{className:"w-4 h-3 rounded-sm",style:{backgroundColor:"hsl(186, 20%, 75%)"}}),f.jsx("div",{className:"w-4 h-3 rounded-sm",style:{backgroundColor:"hsl(186, 35%, 60%)"}}),f.jsx("div",{className:"w-4 h-3 rounded-sm",style:{backgroundColor:"hsl(186, 45%, 50%)"}}),f.jsx("div",{className:"w-4 h-3 rounded-sm",style:{backgroundColor:"hsl(186, 55%, 40%)"}})]}),f.jsxs("div",{className:"flex justify-between text-[10px] text-muted-foreground mt-1",children:[f.jsx("span",{children:"0"}),f.jsx("span",{children:ya})]})]}),f.jsx(da,{projectionConfig:{scale:147,center:[60,30]},style:{width:"100%",height:"100%"},children:f.jsxs(ga,{center:[60,30],zoom:K,onMoveEnd:({zoom:S})=>X(S),minZoom:.5,maxZoom:8,children:[f.jsx(ha,{geography:"https://cdn.jsdelivr.net/npm/world-atlas@2/countries-110m.json",children:({geographies:S})=>S.map(I=>{const ee=I.properties?.ISO_A2||I.properties?.iso_a2||"",Q=Tr[ee?.toUpperCase()]||0,G=wa(ee);return f.jsx(r0,{geography:I,fill:G,stroke:"hsl(var(--border))",strokeWidth:.5,style:{default:{outline:"none"},hover:{fill:Q>0?"hsl(var(--admin-chart-1))":"hsl(var(--secondary))",outline:"none",cursor:Q>0?"pointer":"default"},pressed:{outline:"none"}}},I.rsmKey)})}),ot.map((S,I)=>{const ee=Math.max(...ot.map(ht=>ht.value)),G=Math.max(4,Math.min(20,S.value/ee*20))/Math.sqrt(K),te=S.count>1;return f.jsxs(xa,{coordinates:S.coordinates,children:[S.isNew&&f.jsx("circle",{r:G*2,fill:"hsl(var(--admin-chart-1))",fillOpacity:0,stroke:"hsl(var(--admin-chart-1))",strokeWidth:2,className:"animate-ping"}),f.jsx("circle",{r:G,fill:S.isNew?"hsl(var(--destructive))":te?"hsl(var(--accent))":"hsl(var(--admin-chart-1))",fillOpacity:.8,stroke:"hsl(var(--primary-foreground))",strokeWidth:1,className:S.isNew?"animate-pulse":""}),te&&G>6&&f.jsx("text",{textAnchor:"middle",y:G*.35,style:{fontFamily:"system-ui",fill:"hsl(var(--primary-foreground))",fontSize:`${Math.max(8,G*.8)}px`,fontWeight:"bold"},children:S.count}),f.jsx("title",{children:`${S.name}: ${S.value} tashrif${te?` (${S.count} joy)`:""}`})]},`marker-${I}`)})]})})]}):f.jsx("div",{className:"h-[400px] flex items-center justify-center text-muted-foreground",children:"Ma'lumotlar mavjud emas"}),ot.length>0&&f.jsx("div",{className:"mt-4 flex flex-wrap gap-2",children:ot.slice(0,8).map((S,I)=>f.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-secondary/50",children:[f.jsx("div",{className:`w-2 h-2 rounded-full ${S.count>1?"bg-accent":"bg-primary"}`}),f.jsx("span",{className:"text-xs text-foreground",children:S.name}),f.jsx("span",{className:"text-xs font-bold text-primary",children:S.value}),S.count>1&&f.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",S.count,")"]})]},I))})]}),f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-card",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(Hl,{className:"w-5 h-5 text-primary"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Davlatlar bo'yicha tashriflar"})]}),g.length>0?f.jsx("div",{className:"space-y-3",children:g.map(S=>{const I=Math.max(...g.map(Q=>Q.value)),ee=S.value/I*100;return f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-xl",children:S.flag}),f.jsx("span",{className:"text-sm font-medium text-foreground",children:S.name})]}),f.jsxs("span",{className:"text-sm text-muted-foreground",children:[S.value," tashrif"]})]}),f.jsx("div",{className:"h-2 bg-secondary rounded-full overflow-hidden",children:f.jsx("div",{className:"h-full rounded-full bg-primary transition-all duration-500",style:{width:`${ee}%`}})})]},S.name)})}):f.jsx("div",{className:"h-[200px] flex items-center justify-center text-muted-foreground",children:"Ma'lumotlar mavjud emas"})]}),f.jsxs("div",{className:"bg-card rounded-2xl p-6 shadow-card",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(Jl,{className:"w-5 h-5 text-primary"}),f.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Shaharlar bo'yicha tashriflar"})]}),b.length>0?f.jsx("div",{className:"space-y-3",children:b.map((S,I)=>f.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-secondary/50",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-foreground",children:S.city}),f.jsxs("p",{className:"text-xs text-muted-foreground",children:[S.region,S.region&&S.country?", ":"",S.country]})]}),f.jsxs("span",{className:"text-sm font-bold text-primary",children:[S.value," tashrif"]})]},I))}):f.jsx("div",{className:"h-[200px] flex items-center justify-center text-muted-foreground",children:"Ma'lumotlar mavjud emas"})]})]})]})})]})]})};export{A0 as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.