@carbon/charts-react 1.16.11 → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(V,le){typeof exports=="object"&&typeof module<"u"?le(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],le):(V=typeof globalThis<"u"?globalThis:V||self,le(V.ChartsReact={},V.React))})(this,function(V,le){"use strict";var x5=Object.defineProperty;var _5=(V,le,Gn)=>le in V?x5(V,le,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):V[le]=Gn;var Ph=(V,le,Gn)=>_5(V,typeof le!="symbol"?le+"":le,Gn);var Gn=(e=>(e.RENDER_FINISHED="render-finished",e.RESIZE="chart-resize",e.MOUSEOVER="chart-mouseover",e.MOUSEOUT="chart-mouseout",e))(Gn||{}),sl=(e=>(e.SHOW="show-modal",e.HIDE="hide-modal",e))(sl||{}),ol=(e=>(e.UPDATE="model-update",e))(ol||{}),Bh=(e=>(e.SHOW_OVERFLOW_MENU="show-toolbar-overflow-menu",e.HIDE_OVERFLOW_MENU="hide-toolbar-overflow-menu",e.BUTTON_CLICK="toolbar-button-click",e.SHOW_TOOLTIP="toolbar-show-tooltip",e.HIDE_TOOLTIP="toolbar-hide-tooltip",e))(Bh||{}),ll=(e=>(e.UPDATE="zoom-bar-update",e.SELECTION_START="zoom-bar-selection-start",e.SELECTION_IN_PROGRESS="zoom-bar-selection-in-progress",e.SELECTION_END="zoom-bar-selection-end",e))(ll||{}),cl=(e=>(e.CHANGE="zoom-domain-change",e))(cl||{}),ul=(e=>(e.CANVAS_ZOOM_IN="canvas-zoom-in",e.CANVAS_ZOOM_OUT="canvas-zoom-out",e))(ul||{}),hl=(e=>(e.LABEL_MOUSEOVER="axis-label-mouseover",e.LABEL_MOUSEMOVE="axis-label-mousemove",e.LABEL_CLICK="axis-label-click",e.LABEL_MOUSEOUT="axis-label-mouseout",e.LABEL_FOCUS="axis-label-focus",e.LABEL_BLUR="axis-label-blur",e.RENDER_COMPLETE="axis-render-complete",e))(hl||{}),dl=(e=>(e.POINT_MOUSEOVER="scatter-mouseover",e.POINT_MOUSEMOVE="scatter-mousemove",e.POINT_CLICK="scatter-click",e.POINT_MOUSEOUT="scatter-mouseout",e))(dl||{}),pl=(e=>(e.WORD_MOUSEOVER="wordcloud-word-mouseover",e.WORD_MOUSEMOVE="wordcloud-word-mousemove",e.WORD_CLICK="wordcloud-word-click",e.WORD_MOUSEOUT="wordcloud-word-mouseout",e))(pl||{}),fl=(e=>(e.SLICE_MOUSEOVER="pie-slice-mouseover",e.SLICE_MOUSEMOVE="pie-slice-mousemove",e.SLICE_CLICK="pie-slice-click",e.SLICE_MOUSEOUT="pie-slice-mouseout",e))(fl||{}),ml=(e=>(e.ARC_MOUSEOVER="gauge-arc-mouseover",e.ARC_MOUSEMOVE="gauge-arc-mousemove",e.ARC_CLICK="gauge-arc-click",e.ARC_MOUSEOUT="gauge-arc-mouseout",e))(ml||{}),gl=(e=>(e.BAR_MOUSEOVER="bar-mouseover",e.BAR_MOUSEMOVE="bar-mousemove",e.BAR_CLICK="bar-click",e.BAR_MOUSEOUT="bar-mouseout",e))(gl||{}),vl=(e=>(e.BOX_MOUSEOVER="box-mouseover",e.BOX_MOUSEMOVE="box-mousemove",e.BOX_CLICK="box-click",e.BOX_MOUSEOUT="box-mouseout",e.OUTLIER_MOUSEOVER="outlier-mouseover",e.OUTLIER_MOUSEMOVE="outlier-mousemove",e.OUTLIER_CLICK="outlier-click",e.OUTLIER_MOUSEOUT="outlier-mouseout",e))(vl||{}),yl=(e=>(e.SCATTER_MOUSEOVER="scatter-mouseover",e.SCATTER_MOUSEMOVE="scatter-mousemove",e.SCATTER_CLICK="scatter-click",e.SCATTER_MOUSEOUT="scatter-mouseout",e))(yl||{}),bl=(e=>(e.POINT_MOUSEOVER="scatter-mouseover",e.POINT_MOUSEMOVE="scatter-mousemove",e.POINT_CLICK="scatter-click",e.POINT_MOUSEOUT="scatter-mouseout",e))(bl||{}),xl=(e=>(e.X_AXIS_MOUSEOVER="radar-x-axis-mouseover",e.X_AXIS_MOUSEMOVE="radar-x-axis-mousemove",e.X_AXIS_CLICK="radar-x-axis-click",e.X_AXIS_MOUSEOUT="radar-x-axis-mouseout",e))(xl||{}),_l=(e=>(e.NODE_MOUSEOVER="tree-node-mouseover",e.NODE_CLICK="tree-node-click",e.NODE_MOUSEOUT="tree-node-mouseout",e))(_l||{}),El=(e=>(e.LEAF_MOUSEOVER="leaf-mouseover",e.LEAF_MOUSEMOVE="leaf-mousemove",e.LEAF_CLICK="leaf-click",e.LEAF_MOUSEOUT="leaf-mouseout",e))(El||{}),Pr=(e=>(e.SHOW="show-tooltip",e.MOVE="move-tooltip",e.HIDE="hide-tooltip",e))(Pr||{}),Ol=(e=>(e.SHOW="show-threshold",e.HIDE="hide-threshold",e))(Ol||{}),Hh=(e=>(e.ITEM_HOVER="legend-item-onhover",e.ITEM_CLICK="legend-item-onclick",e.ITEM_MOUSEOUT="legend-item-onmouseout",e.ITEMS_UPDATE="legend-items-update",e))(Hh||{}),Vh=(e=>(e.CIRCLE_MOUSEOVER="circle-leaf-mouseover",e.CIRCLE_CLICK="circle-leaf-click",e.CIRCLE_MOUSEOUT="circle-leaf-mouseout",e.CIRCLE_MOUSEMOVE="circle-leaf-mousemove",e))(Vh||{}),Gh=(e=>(e.NODE_MOUSEOVER="alluvial-node-mouseover",e.NODE_CLICK="alluvial-node-click",e.NODE_MOUSEOUT="alluvial-node-mouseout",e.NODE_MOUSEMOVE="alluvial-node-mousemove",e.LINE_MOUSEOVER="alluvial-line-mouseover",e.LINE_CLICK="alluvial-line-click",e.LINE_MOUSEOUT="alluvial-line-mouseout",e.LINE_MOUSEMOVE="alluvial-line-mousemove",e))(Gh||{}),Fh=(e=>(e.METER_MOUSEOVER="meter-mouseover",e.METER_CLICK="meter-click",e.METER_MOUSEOUT="meter-mouseout",e.METER_MOUSEMOVE="meter-mousemove",e))(Fh||{}),zh=(e=>(e.HEATMAP_MOUSEOVER="heatmap-mouseover",e.HEATMAP_CLICK="heatmap-click",e.HEATMAP_MOUSEOUT="heatmap-mouseout",e.HEATMAP_MOUSEMOVE="hetmap-mousemove",e))(zh||{}),Ur=(e=>(e.CHOROPLETH_MOUSEOVER="choropleth-mouseover",e.CHOROPLETH_CLICK="choropleth-click",e.CHOROPLETH_MOUSEOUT="choropleth-mouseout",e.CHOROPLETH_MOUSEMOVE="choropleth-mousemove",e))(Ur||{});const Y0=Object.freeze(Object.defineProperty({__proto__:null,Alluvial:Gh,Area:dl,Axis:hl,Bar:gl,Boxplot:vl,CanvasZoom:ul,Chart:Gn,Choropleth:Ur,CirclePack:Vh,Gauge:ml,Heatmap:zh,Legend:Hh,Line:bl,Meter:Fh,Modal:sl,Model:ol,Pie:fl,Radar:xl,Scatter:yl,Threshold:Ol,Toolbar:Bh,Tooltip:Pr,Tree:_l,Treemap:El,WordCloud:pl,ZoomBar:ll,ZoomDomain:cl},Symbol.toStringTag,{value:"Module"})),w=Y0;var rt=(e=>(e.HTML="html",e.SVG="svg",e))(rt||{}),wl=(e=>(e.WHITE="white",e.G100="g100",e.G90="g90",e.G10="g10",e))(wl||{}),st=(e=>(e.BACKGROUND="background",e.FILL="fill",e.STROKE="stroke",e.TOOLTIP="tooltip",e))(st||{}),F=(e=>(e.LEFT="left",e.RIGHT="right",e.TOP="top",e.BOTTOM="bottom",e))(F||{}),We=(e=>(e.GRAPH_VIEW="graph_view",e.SLIDER_VIEW="slider_view",e))(We||{}),Pe=(e=>(e.END_LINE="end_line",e.MID_LINE="mid_line",e.FRONT_LINE="front_line",e.NONE="none",e))(Pe||{}),Qt=(e=>(e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e))(Qt||{}),et=(e=>(e.TIME="time",e.LINEAR="linear",e.LOG="log",e.LABELS="labels",e.LABELS_RATIO="labels-ratio",e))(et||{}),Br=(e=>(e.RIGHT="right",e.LEFT="left",e.TOP="top",e.BOTTOM="bottom",e))(Br||{}),Jt=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(Jt||{}),Hr=(e=>(e.HORIZONTAL="horizontal",e.VERTICAL="vertical",e))(Hr||{}),Ka=(e=>(e.TREE="tree",e.DENDROGRAM="dendrogram",e))(Ka||{}),Pt=(e=>(e.ROW="row",e.COLUMN="column",e.ROW_REVERSE="row-reverse",e.COLUMN_REVERSE="column-reverse",e))(Pt||{}),ht=(e=>(e.FIXED="fixed",e.PREFERRED="preferred",e.STRETCH="stretch",e))(ht||{}),ir=(e=>(e.CENTER="center",e))(ir||{}),Ti=(e=>(e.LEFT="left",e.RIGHT="right",e))(Ti||{}),te=(e=>(e.GRID="grid",e.VERT_OR_HORIZ="vertOrHoriz",e.PIE="pie",e.DONUT="donut",e))(te||{}),on=(e=>(e.START="start",e.MIDDLE="middle",e.END="end",e))(on||{}),ln=(e=>(e.BASELINE="baseline",e.MIDDLE="middle",e.HANGING="hanging",e))(ln||{}),ar=(e=>(e.SEMI="semi",e.FULL="full",e))(ar||{}),Qa=(e=>(e.UP="up",e.DOWN="down",e))(Qa||{}),$i=(e=>(e.SUCCESS="success",e.WARNING="warning",e.DANGER="danger",e))($i||{}),Mi=(e=>(e.ALWAYS="always",e.AUTO="auto",e.NEVER="never",e))(Mi||{}),Te=(e=>(e.SCATTER="scatter",e.LINE="line",e.SIMPLE_BAR="simple-bar",e.STACKED_BAR="stacked-bar",e.GROUPED_BAR="grouped-bar",e.AREA="area",e.STACKED_AREA="stacked-area",e))(Te||{}),Mt=(e=>(e.EXPORT_CSV="Export as CSV",e.EXPORT_PNG="Export as PNG",e.EXPORT_JPG="Export as JPG",e.ZOOM_IN="Zoom in",e.ZOOM_OUT="Zoom out",e.RESET_ZOOM="Reset zoom",e.MAKE_FULLSCREEN="Make fullscreen",e.EXIT_FULLSCREEN="Exit fullscreen",e.SHOW_AS_DATATABLE="Show as data-table",e.CUSTOM="Custom",e))(Mt||{}),Ja=(e=>(e.LEFT="left",e.RIGHT="right",e))(Ja||{}),ee=(e=>(e.CHECKBOX="checkbox",e.RADIUS="radius",e.AREA="area",e.SIZE="size",e.LINE="line",e.QUARTILE="quartile",e.ZOOM="zoom",e))(ee||{}),Ci=(e=>(e.LINEAR="linear",e.QUANTIZE="quantize",e))(Ci||{}),Vr=(e=>(e.ON="on",e.AUTO="auto",e.OFF="off",e))(Vr||{}),Ai=(e=>(e.DEFAULT="default",e.HOVERABLE="hoverable",e))(Ai||{}),cn=(e=>(e.geoEqualEarth="geoEqualEarth",e.geoAlbers="geoAlbers",e.geoConicEqualArea="geoConicEqualArea",e.geoConicEquidistant="geoConicEquidistant",e.geoEquirectangular="geoEquirectangular",e.geoMercator="geoMercator",e.geoNaturalEarth1="geoNaturalEarth1",e))(cn||{});function Sl(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function ki(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):s;i=e.formattingValues[o]||e.formattingValues[s]}else{const s=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[o]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function Ri(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const s=a[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?X0(o,d=>d.test(s)):Z0(o,d=>d.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(s.length);return{value:c,rest:u}}}function Z0(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function X0(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function K0(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const o=t.slice(i.length);return{value:s,rest:o}}}function St(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}let Q0={};function ts(){return Q0}function Li(e,t){var n,r,i,a;const s=ts(),o=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??s.weekStartsOn??((a=(i=s.locale)==null?void 0:i.options)==null?void 0:a.weekStartsOn)??0,l=St(e),c=l.getDay(),u=(c<o?7:0)+c-o;return l.setDate(l.getDate()-u),l.setHours(0,0,0,0),l}const J0={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},t1=(e,t,n)=>{let r;const i=J0[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},e1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n1=(e,t,n,r)=>e1[e],r1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},l1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c1=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},u1={ordinalNumber:c1,era:ki({values:r1,defaultWidth:"wide"}),quarter:ki({values:i1,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ki({values:a1,defaultWidth:"wide"}),day:ki({values:s1,defaultWidth:"wide"}),dayPeriod:ki({values:o1,defaultWidth:"wide",formattingValues:l1,defaultFormattingWidth:"wide"})},h1=/^(\d+)(th|st|nd|rd)?/i,d1=/\d+/i,p1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},f1={any:[/^b/i,/^(a|c)/i]},m1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},g1={any:[/1/i,/2/i,/3/i,/4/i]},v1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},b1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},x1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},_1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},E1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},O1={ordinalNumber:K0({matchPattern:h1,parsePattern:d1,valueCallback:e=>parseInt(e,10)}),era:Ri({matchPatterns:p1,defaultMatchWidth:"wide",parsePatterns:f1,defaultParseWidth:"any"}),quarter:Ri({matchPatterns:m1,defaultMatchWidth:"wide",parsePatterns:g1,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ri({matchPatterns:v1,defaultMatchWidth:"wide",parsePatterns:y1,defaultParseWidth:"any"}),day:Ri({matchPatterns:b1,defaultMatchWidth:"wide",parsePatterns:x1,defaultParseWidth:"any"}),dayPeriod:Ri({matchPatterns:_1,defaultMatchWidth:"any",parsePatterns:E1,defaultParseWidth:"any"})},w1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},S1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},T1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$1={date:Sl({formats:w1,defaultWidth:"full"}),time:Sl({formats:S1,defaultWidth:"full"}),dateTime:Sl({formats:T1,defaultWidth:"full"})},jh={code:"en-US",formatDistance:t1,formatLong:$1,formatRelative:n1,localize:u1,match:O1,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Wh=typeof global=="object"&&global&&global.Object===Object&&global,M1=typeof self=="object"&&self&&self.Object===Object&&self,qe=Wh||M1||Function("return this")(),Ue=qe.Symbol,qh=Object.prototype,C1=qh.hasOwnProperty,A1=qh.toString,Di=Ue?Ue.toStringTag:void 0;function k1(e){var t=C1.call(e,Di),n=e[Di];try{e[Di]=void 0;var r=!0}catch{}var i=A1.call(e);return r&&(t?e[Di]=n:delete e[Di]),i}var R1=Object.prototype,L1=R1.toString;function D1(e){return L1.call(e)}var I1="[object Null]",N1="[object Undefined]",Yh=Ue?Ue.toStringTag:void 0;function sr(e){return e==null?e===void 0?N1:I1:Yh&&Yh in Object(e)?k1(e):D1(e)}function un(e){return e!=null&&typeof e=="object"}var P1="[object Symbol]";function es(e){return typeof e=="symbol"||un(e)&&sr(e)==P1}function Tl(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var se=Array.isArray,U1=1/0,Zh=Ue?Ue.prototype:void 0,Xh=Zh?Zh.toString:void 0;function Kh(e){if(typeof e=="string")return e;if(se(e))return Tl(e,Kh)+"";if(es(e))return Xh?Xh.call(e):"";var t=e+"";return t=="0"&&1/e==-U1?"-0":t}function Be(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function $l(e){return e}var B1="[object AsyncFunction]",H1="[object Function]",V1="[object GeneratorFunction]",G1="[object Proxy]";function Ml(e){if(!Be(e))return!1;var t=sr(e);return t==H1||t==V1||t==B1||t==G1}var Cl=qe["__core-js_shared__"],Qh=function(){var e=/[^.]+$/.exec(Cl&&Cl.keys&&Cl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function F1(e){return!!Qh&&Qh in e}var z1=Function.prototype,j1=z1.toString;function or(e){if(e!=null){try{return j1.call(e)}catch{}try{return e+""}catch{}}return""}var W1=/[\\^$.*+?()[\]{}|]/g,q1=/^\[object .+?Constructor\]$/,Y1=Function.prototype,Z1=Object.prototype,X1=Y1.toString,K1=Z1.hasOwnProperty,Q1=RegExp("^"+X1.call(K1).replace(W1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function J1(e){if(!Be(e)||F1(e))return!1;var t=Ml(e)?Q1:q1;return t.test(or(e))}function ty(e,t){return e==null?void 0:e[t]}function lr(e,t){var n=ty(e,t);return J1(n)?n:void 0}var Al=lr(qe,"WeakMap"),Jh=Object.create,ey=function(){function e(){}return function(t){if(!Be(t))return{};if(Jh)return Jh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function ny(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ry(){}function td(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var iy=800,ay=16,sy=Date.now;function oy(e){var t=0,n=0;return function(){var r=sy(),i=ay-(r-n);if(n=r,i>0){if(++t>=iy)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ly(e){return function(){return e}}var ns=function(){try{var e=lr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),cy=ns?function(e,t){return ns(e,"toString",{configurable:!0,enumerable:!1,value:ly(t),writable:!0})}:$l,ed=oy(cy);function uy(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function hy(e,t,n,r){for(var i=e.length,a=n+-1;++a<i;)if(t(e[a],a,e))return a;return-1}function dy(e){return e!==e}function py(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function fy(e,t,n){return t===t?py(e,t,n):hy(e,dy,n)}function my(e,t){var n=e==null?0:e.length;return!!n&&fy(e,t,0)>-1}var gy=9007199254740991,vy=/^(?:0|[1-9]\d*)$/;function kl(e,t){var n=typeof e;return t=t??gy,!!t&&(n=="number"||n!="symbol"&&vy.test(e))&&e>-1&&e%1==0&&e<t}function rs(e,t,n){t=="__proto__"&&ns?ns(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ii(e,t){return e===t||e!==e&&t!==t}var yy=Object.prototype,by=yy.hasOwnProperty;function nd(e,t,n){var r=e[t];(!(by.call(e,t)&&Ii(r,n))||n===void 0&&!(t in e))&&rs(e,t,n)}function Gr(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var o=t[a],l=void 0;l===void 0&&(l=e[o]),i?rs(n,o,l):nd(n,o,l)}return n}var rd=Math.max;function id(e,t,n){return t=rd(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=rd(r.length-t,0),s=Array(a);++i<a;)s[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(s),ny(e,this,o)}}function Rl(e,t){return ed(id(e,t,$l),e+"")}var xy=9007199254740991;function Ll(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=xy}function cr(e){return e!=null&&Ll(e.length)&&!Ml(e)}function _y(e,t,n){if(!Be(n))return!1;var r=typeof t;return(r=="number"?cr(n)&&kl(t,n.length):r=="string"&&t in n)?Ii(n[t],e):!1}function Ey(e){return Rl(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,s&&_y(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var o=n[r];o&&e(t,o,r,a)}return t})}var Oy=Object.prototype;function is(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Oy;return e===n}function wy(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Sy="[object Arguments]";function ad(e){return un(e)&&sr(e)==Sy}var sd=Object.prototype,Ty=sd.hasOwnProperty,$y=sd.propertyIsEnumerable,Fr=ad(function(){return arguments}())?ad:function(e){return un(e)&&Ty.call(e,"callee")&&!$y.call(e,"callee")};function My(){return!1}var od=typeof V=="object"&&V&&!V.nodeType&&V,ld=od&&typeof module=="object"&&module&&!module.nodeType&&module,Cy=ld&&ld.exports===od,cd=Cy?qe.Buffer:void 0,Ay=cd?cd.isBuffer:void 0,zr=Ay||My,ky="[object Arguments]",Ry="[object Array]",Ly="[object Boolean]",Dy="[object Date]",Iy="[object Error]",Ny="[object Function]",Py="[object Map]",Uy="[object Number]",By="[object Object]",Hy="[object RegExp]",Vy="[object Set]",Gy="[object String]",Fy="[object WeakMap]",zy="[object ArrayBuffer]",jy="[object DataView]",Wy="[object Float32Array]",qy="[object Float64Array]",Yy="[object Int8Array]",Zy="[object Int16Array]",Xy="[object Int32Array]",Ky="[object Uint8Array]",Qy="[object Uint8ClampedArray]",Jy="[object Uint16Array]",tb="[object Uint32Array]",Vt={};Vt[Wy]=Vt[qy]=Vt[Yy]=Vt[Zy]=Vt[Xy]=Vt[Ky]=Vt[Qy]=Vt[Jy]=Vt[tb]=!0,Vt[ky]=Vt[Ry]=Vt[zy]=Vt[Ly]=Vt[jy]=Vt[Dy]=Vt[Iy]=Vt[Ny]=Vt[Py]=Vt[Uy]=Vt[By]=Vt[Hy]=Vt[Vy]=Vt[Gy]=Vt[Fy]=!1;function eb(e){return un(e)&&Ll(e.length)&&!!Vt[sr(e)]}function Dl(e){return function(t){return e(t)}}var ud=typeof V=="object"&&V&&!V.nodeType&&V,Ni=ud&&typeof module=="object"&&module&&!module.nodeType&&module,nb=Ni&&Ni.exports===ud,Il=nb&&Wh.process,jr=function(){try{var e=Ni&&Ni.require&&Ni.require("util").types;return e||Il&&Il.binding&&Il.binding("util")}catch{}}(),hd=jr&&jr.isTypedArray,as=hd?Dl(hd):eb,rb=Object.prototype,ib=rb.hasOwnProperty;function dd(e,t){var n=se(e),r=!n&&Fr(e),i=!n&&!r&&zr(e),a=!n&&!r&&!i&&as(e),s=n||r||i||a,o=s?wy(e.length,String):[],l=o.length;for(var c in e)(t||ib.call(e,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||kl(c,l)))&&o.push(c);return o}function pd(e,t){return function(n){return e(t(n))}}var ab=pd(Object.keys,Object),sb=Object.prototype,ob=sb.hasOwnProperty;function fd(e){if(!is(e))return ab(e);var t=[];for(var n in Object(e))ob.call(e,n)&&n!="constructor"&&t.push(n);return t}function Pi(e){return cr(e)?dd(e):fd(e)}function lb(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var cb=Object.prototype,ub=cb.hasOwnProperty;function hb(e){if(!Be(e))return lb(e);var t=is(e),n=[];for(var r in e)r=="constructor"&&(t||!ub.call(e,r))||n.push(r);return n}function Ui(e){return cr(e)?dd(e,!0):hb(e)}var db=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pb=/^\w*$/;function Nl(e,t){if(se(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||es(e)?!0:pb.test(e)||!db.test(e)||t!=null&&e in Object(t)}var Bi=lr(Object,"create");function fb(){this.__data__=Bi?Bi(null):{},this.size=0}function mb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gb="__lodash_hash_undefined__",vb=Object.prototype,yb=vb.hasOwnProperty;function bb(e){var t=this.__data__;if(Bi){var n=t[e];return n===gb?void 0:n}return yb.call(t,e)?t[e]:void 0}var xb=Object.prototype,_b=xb.hasOwnProperty;function Eb(e){var t=this.__data__;return Bi?t[e]!==void 0:_b.call(t,e)}var Ob="__lodash_hash_undefined__";function wb(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Bi&&t===void 0?Ob:t,this}function ur(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ur.prototype.clear=fb,ur.prototype.delete=mb,ur.prototype.get=bb,ur.prototype.has=Eb,ur.prototype.set=wb;function Sb(){this.__data__=[],this.size=0}function ss(e,t){for(var n=e.length;n--;)if(Ii(e[n][0],t))return n;return-1}var Tb=Array.prototype,$b=Tb.splice;function Mb(e){var t=this.__data__,n=ss(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():$b.call(t,n,1),--this.size,!0}function Cb(e){var t=this.__data__,n=ss(t,e);return n<0?void 0:t[n][1]}function Ab(e){return ss(this.__data__,e)>-1}function kb(e,t){var n=this.__data__,r=ss(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function _n(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_n.prototype.clear=Sb,_n.prototype.delete=Mb,_n.prototype.get=Cb,_n.prototype.has=Ab,_n.prototype.set=kb;var Hi=lr(qe,"Map");function Rb(){this.size=0,this.__data__={hash:new ur,map:new(Hi||_n),string:new ur}}function Lb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function os(e,t){var n=e.__data__;return Lb(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Db(e){var t=os(this,e).delete(e);return this.size-=t?1:0,t}function Ib(e){return os(this,e).get(e)}function Nb(e){return os(this,e).has(e)}function Pb(e,t){var n=os(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function En(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}En.prototype.clear=Rb,En.prototype.delete=Db,En.prototype.get=Ib,En.prototype.has=Nb,En.prototype.set=Pb;var Ub="Expected a function";function Pl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ub);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(Pl.Cache||En),n}Pl.Cache=En;var Bb=500;function Hb(e){var t=Pl(e,function(r){return n.size===Bb&&n.clear(),r}),n=t.cache;return t}var Vb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gb=/\\(\\)?/g,Fb=Hb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Vb,function(n,r,i,a){t.push(i?a.replace(Gb,"$1"):r||n)}),t});function Vi(e){return e==null?"":Kh(e)}function ls(e,t){return se(e)?e:Nl(e,t)?[e]:Fb(Vi(e))}var zb=1/0;function Gi(e){if(typeof e=="string"||es(e))return e;var t=e+"";return t=="0"&&1/e==-zb?"-0":t}function Ul(e,t){t=ls(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Gi(t[n++])];return n&&n==r?e:void 0}function Et(e,t,n){var r=e==null?void 0:Ul(e,t);return r===void 0?n:r}function Bl(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var md=Ue?Ue.isConcatSpreadable:void 0;function jb(e){return se(e)||Fr(e)||!!(md&&e&&e[md])}function cs(e,t,n,r,i){var a=-1,s=e.length;for(n||(n=jb),i||(i=[]);++a<s;){var o=e[a];t>0&&n(o)?t>1?cs(o,t-1,n,r,i):Bl(i,o):r||(i[i.length]=o)}return i}var Hl=pd(Object.getPrototypeOf,Object),Wb="[object Object]",qb=Function.prototype,Yb=Object.prototype,gd=qb.toString,Zb=Yb.hasOwnProperty,Xb=gd.call(Object);function vd(e){if(!un(e)||sr(e)!=Wb)return!1;var t=Hl(e);if(t===null)return!0;var n=Zb.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&gd.call(n)==Xb}function Kb(){this.__data__=new _n,this.size=0}function Qb(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Jb(e){return this.__data__.get(e)}function tx(e){return this.__data__.has(e)}var ex=200;function nx(e,t){var n=this.__data__;if(n instanceof _n){var r=n.__data__;if(!Hi||r.length<ex-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new En(r)}return n.set(e,t),this.size=n.size,this}function Ye(e){var t=this.__data__=new _n(e);this.size=t.size}Ye.prototype.clear=Kb,Ye.prototype.delete=Qb,Ye.prototype.get=Jb,Ye.prototype.has=tx,Ye.prototype.set=nx;function rx(e,t){return e&&Gr(t,Pi(t),e)}function ix(e,t){return e&&Gr(t,Ui(t),e)}var yd=typeof V=="object"&&V&&!V.nodeType&&V,bd=yd&&typeof module=="object"&&module&&!module.nodeType&&module,ax=bd&&bd.exports===yd,xd=ax?qe.Buffer:void 0,_d=xd?xd.allocUnsafe:void 0;function Ed(e,t){if(t)return e.slice();var n=e.length,r=_d?_d(n):new e.constructor(n);return e.copy(r),r}function sx(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}function Od(){return[]}var ox=Object.prototype,lx=ox.propertyIsEnumerable,wd=Object.getOwnPropertySymbols,Vl=wd?function(e){return e==null?[]:(e=Object(e),sx(wd(e),function(t){return lx.call(e,t)}))}:Od;function cx(e,t){return Gr(e,Vl(e),t)}var ux=Object.getOwnPropertySymbols,Sd=ux?function(e){for(var t=[];e;)Bl(t,Vl(e)),e=Hl(e);return t}:Od;function hx(e,t){return Gr(e,Sd(e),t)}function Td(e,t,n){var r=t(e);return se(e)?r:Bl(r,n(e))}function Gl(e){return Td(e,Pi,Vl)}function $d(e){return Td(e,Ui,Sd)}var Fl=lr(qe,"DataView"),zl=lr(qe,"Promise"),Wr=lr(qe,"Set"),Md="[object Map]",dx="[object Object]",Cd="[object Promise]",Ad="[object Set]",kd="[object WeakMap]",Rd="[object DataView]",px=or(Fl),fx=or(Hi),mx=or(zl),gx=or(Wr),vx=or(Al),He=sr;(Fl&&He(new Fl(new ArrayBuffer(1)))!=Rd||Hi&&He(new Hi)!=Md||zl&&He(zl.resolve())!=Cd||Wr&&He(new Wr)!=Ad||Al&&He(new Al)!=kd)&&(He=function(e){var t=sr(e),n=t==dx?e.constructor:void 0,r=n?or(n):"";if(r)switch(r){case px:return Rd;case fx:return Md;case mx:return Cd;case gx:return Ad;case vx:return kd}return t});var yx=Object.prototype,bx=yx.hasOwnProperty;function xx(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&bx.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var us=qe.Uint8Array;function jl(e){var t=new e.constructor(e.byteLength);return new us(t).set(new us(e)),t}function _x(e,t){var n=t?jl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Ex=/\w*$/;function Ox(e){var t=new e.constructor(e.source,Ex.exec(e));return t.lastIndex=e.lastIndex,t}var Ld=Ue?Ue.prototype:void 0,Dd=Ld?Ld.valueOf:void 0;function wx(e){return Dd?Object(Dd.call(e)):{}}function Id(e,t){var n=t?jl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Sx="[object Boolean]",Tx="[object Date]",$x="[object Map]",Mx="[object Number]",Cx="[object RegExp]",Ax="[object Set]",kx="[object String]",Rx="[object Symbol]",Lx="[object ArrayBuffer]",Dx="[object DataView]",Ix="[object Float32Array]",Nx="[object Float64Array]",Px="[object Int8Array]",Ux="[object Int16Array]",Bx="[object Int32Array]",Hx="[object Uint8Array]",Vx="[object Uint8ClampedArray]",Gx="[object Uint16Array]",Fx="[object Uint32Array]";function zx(e,t,n){var r=e.constructor;switch(t){case Lx:return jl(e);case Sx:case Tx:return new r(+e);case Dx:return _x(e,n);case Ix:case Nx:case Px:case Ux:case Bx:case Hx:case Vx:case Gx:case Fx:return Id(e,n);case $x:return new r;case Mx:case kx:return new r(e);case Cx:return Ox(e);case Ax:return new r;case Rx:return wx(e)}}function Nd(e){return typeof e.constructor=="function"&&!is(e)?ey(Hl(e)):{}}var jx="[object Map]";function Wx(e){return un(e)&&He(e)==jx}var Pd=jr&&jr.isMap,qx=Pd?Dl(Pd):Wx,Yx="[object Set]";function Zx(e){return un(e)&&He(e)==Yx}var Ud=jr&&jr.isSet,Xx=Ud?Dl(Ud):Zx,Kx=1,Qx=2,Jx=4,Bd="[object Arguments]",t_="[object Array]",e_="[object Boolean]",n_="[object Date]",r_="[object Error]",Hd="[object Function]",i_="[object GeneratorFunction]",a_="[object Map]",s_="[object Number]",Vd="[object Object]",o_="[object RegExp]",l_="[object Set]",c_="[object String]",u_="[object Symbol]",h_="[object WeakMap]",d_="[object ArrayBuffer]",p_="[object DataView]",f_="[object Float32Array]",m_="[object Float64Array]",g_="[object Int8Array]",v_="[object Int16Array]",y_="[object Int32Array]",b_="[object Uint8Array]",x_="[object Uint8ClampedArray]",__="[object Uint16Array]",E_="[object Uint32Array]",Bt={};Bt[Bd]=Bt[t_]=Bt[d_]=Bt[p_]=Bt[e_]=Bt[n_]=Bt[f_]=Bt[m_]=Bt[g_]=Bt[v_]=Bt[y_]=Bt[a_]=Bt[s_]=Bt[Vd]=Bt[o_]=Bt[l_]=Bt[c_]=Bt[u_]=Bt[b_]=Bt[x_]=Bt[__]=Bt[E_]=!0,Bt[r_]=Bt[Hd]=Bt[h_]=!1;function Fi(e,t,n,r,i,a){var s,o=t&Kx,l=t&Qx,c=t&Jx;if(n&&(s=i?n(e,r,i,a):n(e)),s!==void 0)return s;if(!Be(e))return e;var u=se(e);if(u){if(s=xx(e),!o)return td(e,s)}else{var d=He(e),h=d==Hd||d==i_;if(zr(e))return Ed(e,o);if(d==Vd||d==Bd||h&&!i){if(s=l||h?{}:Nd(e),!o)return l?hx(e,ix(s,e)):cx(e,rx(s,e))}else{if(!Bt[d])return i?e:{};s=zx(e,d,o)}}a||(a=new Ye);var p=a.get(e);if(p)return p;a.set(e,s),Xx(e)?e.forEach(function(m){s.add(Fi(m,t,n,m,e,a))}):qx(e)&&e.forEach(function(m,y){s.set(y,Fi(m,t,n,y,e,a))});var f=c?l?$d:Gl:l?Ui:Pi,v=u?void 0:f(e);return uy(v||e,function(m,y){v&&(y=m,m=e[y]),nd(s,y,Fi(m,t,n,y,e,a))}),s}var O_=1,w_=4;function On(e){return Fi(e,O_|w_)}var S_="__lodash_hash_undefined__";function T_(e){return this.__data__.set(e,S_),this}function $_(e){return this.__data__.has(e)}function zi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new En;++t<n;)this.add(e[t])}zi.prototype.add=zi.prototype.push=T_,zi.prototype.has=$_;function Gd(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Fd(e,t){return e.has(t)}var M_=1,C_=2;function zd(e,t,n,r,i,a){var s=n&M_,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=n&C_?new zi:void 0;for(a.set(e,t),a.set(t,e);++d<o;){var f=e[d],v=t[d];if(r)var m=s?r(v,f,d,t,e,a):r(f,v,d,e,t,a);if(m!==void 0){if(m)continue;h=!1;break}if(p){if(!Gd(t,function(y,g){if(!Fd(p,g)&&(f===y||i(f,y,n,r,a)))return p.push(g)})){h=!1;break}}else if(!(f===v||i(f,v,n,r,a))){h=!1;break}}return a.delete(e),a.delete(t),h}function A_(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Wl(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var k_=1,R_=2,L_="[object Boolean]",D_="[object Date]",I_="[object Error]",N_="[object Map]",P_="[object Number]",U_="[object RegExp]",B_="[object Set]",H_="[object String]",V_="[object Symbol]",G_="[object ArrayBuffer]",F_="[object DataView]",jd=Ue?Ue.prototype:void 0,ql=jd?jd.valueOf:void 0;function z_(e,t,n,r,i,a,s){switch(n){case F_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case G_:return!(e.byteLength!=t.byteLength||!a(new us(e),new us(t)));case L_:case D_:case P_:return Ii(+e,+t);case I_:return e.name==t.name&&e.message==t.message;case U_:case H_:return e==t+"";case N_:var o=A_;case B_:var l=r&k_;if(o||(o=Wl),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=R_,s.set(e,t);var u=zd(o(e),o(t),r,i,a,s);return s.delete(e),u;case V_:if(ql)return ql.call(e)==ql.call(t)}return!1}var j_=1,W_=Object.prototype,q_=W_.hasOwnProperty;function Y_(e,t,n,r,i,a){var s=n&j_,o=Gl(e),l=o.length,c=Gl(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var h=o[d];if(!(s?h in t:q_.call(t,h)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var v=!0;a.set(e,t),a.set(t,e);for(var m=s;++d<l;){h=o[d];var y=e[h],g=t[h];if(r)var x=s?r(g,y,h,t,e,a):r(y,g,h,e,t,a);if(!(x===void 0?y===g||i(y,g,n,r,a):x)){v=!1;break}m||(m=h=="constructor")}if(v&&!m){var O=e.constructor,E=t.constructor;O!=E&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof E=="function"&&E instanceof E)&&(v=!1)}return a.delete(e),a.delete(t),v}var Z_=1,Wd="[object Arguments]",qd="[object Array]",hs="[object Object]",X_=Object.prototype,Yd=X_.hasOwnProperty;function K_(e,t,n,r,i,a){var s=se(e),o=se(t),l=s?qd:He(e),c=o?qd:He(t);l=l==Wd?hs:l,c=c==Wd?hs:c;var u=l==hs,d=c==hs,h=l==c;if(h&&zr(e)){if(!zr(t))return!1;s=!0,u=!1}if(h&&!u)return a||(a=new Ye),s||as(e)?zd(e,t,n,r,i,a):z_(e,t,l,n,r,i,a);if(!(n&Z_)){var p=u&&Yd.call(e,"__wrapped__"),f=d&&Yd.call(t,"__wrapped__");if(p||f){var v=p?e.value():e,m=f?t.value():t;return a||(a=new Ye),i(v,m,n,r,a)}}return h?(a||(a=new Ye),Y_(e,t,n,r,i,a)):!1}function ds(e,t,n,r,i){return e===t?!0:e==null||t==null||!un(e)&&!un(t)?e!==e&&t!==t:K_(e,t,n,r,ds,i)}var Q_=1,J_=2;function tE(e,t,n,r){var i=n.length,a=i;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var o=s[0],l=e[o],c=s[1];if(s[2]){if(l===void 0&&!(o in e))return!1}else{var u=new Ye,d;if(!(d===void 0?ds(c,l,Q_|J_,r,u):d))return!1}}return!0}function Zd(e){return e===e&&!Be(e)}function eE(e){for(var t=Pi(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Zd(i)]}return t}function Xd(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function nE(e){var t=eE(e);return t.length==1&&t[0][2]?Xd(t[0][0],t[0][1]):function(n){return n===e||tE(n,e,t)}}function rE(e,t){return e!=null&&t in Object(e)}function iE(e,t,n){t=ls(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var s=Gi(t[r]);if(!(a=e!=null&&n(e,s)))break;e=e[s]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&Ll(i)&&kl(s,i)&&(se(e)||Fr(e)))}function aE(e,t){return e!=null&&iE(e,t,rE)}var sE=1,oE=2;function lE(e,t){return Nl(e)&&Zd(t)?Xd(Gi(e),t):function(n){var r=Et(n,e);return r===void 0&&r===t?aE(n,e):ds(t,r,sE|oE)}}function cE(e){return function(t){return t==null?void 0:t[e]}}function uE(e){return function(t){return Ul(t,e)}}function hE(e){return Nl(e)?cE(Gi(e)):uE(e)}function ps(e){return typeof e=="function"?e:e==null?$l:typeof e=="object"?se(e)?lE(e[0],e[1]):nE(e):hE(e)}function dE(e){return function(t,n,r){for(var i=-1,a=Object(t),s=r(t),o=s.length;o--;){var l=s[++i];if(n(a[l],l,a)===!1)break}return t}}var Kd=dE();function Yl(e,t,n){(n!==void 0&&!Ii(e[t],n)||n===void 0&&!(t in e))&&rs(e,t,n)}function Zl(e){return un(e)&&cr(e)}function Xl(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function pE(e){return Gr(e,Ui(e))}function fE(e,t,n,r,i,a,s){var o=Xl(e,n),l=Xl(t,n),c=s.get(l);if(c){Yl(e,n,c);return}var u=a?a(o,l,n+"",e,t,s):void 0,d=u===void 0;if(d){var h=se(l),p=!h&&zr(l),f=!h&&!p&&as(l);u=l,h||p||f?se(o)?u=o:Zl(o)?u=td(o):p?(d=!1,u=Ed(l,!0)):f?(d=!1,u=Id(l,!0)):u=[]:vd(l)||Fr(l)?(u=o,Fr(o)?u=pE(o):(!Be(o)||Ml(o))&&(u=Nd(l))):d=!1}d&&(s.set(l,u),i(u,l,r,a,s),s.delete(l)),Yl(e,n,u)}function Qd(e,t,n,r,i){e!==t&&Kd(t,function(a,s){if(i||(i=new Ye),Be(a))fE(e,t,s,n,Qd,r,i);else{var o=r?r(Xl(e,s),a,s+"",e,t,i):void 0;o===void 0&&(o=a),Yl(e,s,o)}},Ui)}function Jd(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var mE="[object Map]",gE="[object Set]",vE=Object.prototype,yE=vE.hasOwnProperty;function Ze(e){if(e==null)return!0;if(cr(e)&&(se(e)||typeof e=="string"||typeof e.splice=="function"||zr(e)||as(e)||Fr(e)))return!e.length;var t=He(e);if(t==mE||t==gE)return!e.size;if(is(e))return!fd(e).length;for(var n in e)if(yE.call(e,n))return!1;return!0}var lt=Ey(function(e,t,n){Qd(e,t,n)}),bE=1/0,xE=Wr&&1/Wl(new Wr([,-0]))[1]==bE?function(e){return new Wr(e)}:ry,_E=200;function tp(e,t,n){var r=-1,i=my,a=e.length,s=!0,o=[],l=o;if(a>=_E){var c=t?null:xE(e);if(c)return Wl(c);s=!1,i=Fd,l=new zi}else l=t?[]:o;t:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=u!==0?u:0,s&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue t;t&&l.push(d),o.push(u)}else i(l,d,n)||(l!==o&&l.push(d),o.push(u))}return o}var EE=Rl(function(e){var t=Jd(e);return Zl(t)&&(t=void 0),tp(cs(e,1,Zl,!0),ps(t))});function ji(e){return e&&e.length?tp(e):[]}function hr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function OE(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Kl(e){let t,n,r;e.length!==2?(t=hr,n=(o,l)=>hr(e(o),l),r=(o,l)=>e(o)-l):(t=e===hr||e===OE?e:wE,n=e,r=e);function i(o,l,c=0,u=o.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(o[d],l)<0?c=d+1:u=d}while(c<u)}return c}function a(o,l,c=0,u=o.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(o[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function s(o,l,c=0,u=o.length){const d=i(o,l,c,u-1);return d>c&&r(o[d-1],l)>-r(o[d],l)?d-1:d}return{left:i,center:s,right:a}}function wE(){return 0}function SE(e){return e===null?NaN:+e}function*TE(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const $E=Kl(hr),Ql=$E.right;Kl(SE).center;function Xe(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}let ep=class extends Map{constructor(t,n=AE){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(np(this,t))}has(t){return super.has(np(this,t))}set(t,n){return super.set(ME(this,t),n)}delete(t){return super.delete(CE(this,t))}};function np({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ME({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function CE({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function AE(e){return e!==null&&typeof e=="object"?e.valueOf():e}const kE=Math.sqrt(50),RE=Math.sqrt(10),LE=Math.sqrt(2);function fs(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),s=a>=kE?10:a>=RE?5:a>=LE?2:1;let o,l,c;return i<0?(c=Math.pow(10,-i)/s,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*s,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=n&&n<2?fs(e,t,n*2):[o,l,c]}function ms(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,s]=r?fs(t,e,n):fs(e,t,n);if(!(a>=i))return[];const o=a-i+1,l=new Array(o);if(r)if(s<0)for(let c=0;c<o;++c)l[c]=(a-c)/-s;else for(let c=0;c<o;++c)l[c]=(a-c)*s;else if(s<0)for(let c=0;c<o;++c)l[c]=(i+c)/-s;else for(let c=0;c<o;++c)l[c]=(i+c)*s;return l}function qr(e,t,n){return t=+t,e=+e,n=+n,fs(e,t,n)[2]}function Jl(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?qr(t,e,n):qr(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function dr(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Fn(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}var DE={value:()=>{}};function tc(){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 gs(n)}function gs(e){this._=e}function IE(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}})}gs.prototype=tc.prototype={constructor:gs,on:function(e,t){var n=this._,r=IE(e+"",n),i,a=-1,s=r.length;if(arguments.length<2){for(;++a<s;)if((i=(e=r[a]).type)&&(i=NE(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<s;)if(i=(e=r[a]).type)n[i]=rp(n[i],e.name,t);else if(t==null)for(i in n)n[i]=rp(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 gs(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 NE(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function rp(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=DE,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var ec="http://www.w3.org/1999/xhtml";const ip={svg:"http://www.w3.org/2000/svg",xhtml:ec,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function vs(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),ip.hasOwnProperty(t)?{space:ip[t],local:e}:e}function PE(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ec&&t.documentElement.namespaceURI===ec?t.createElement(e):t.createElementNS(n,e)}}function UE(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ap(e){var t=vs(e);return(t.local?UE:PE)(t)}function BE(){}function nc(e){return e==null?BE:function(){return this.querySelector(e)}}function HE(e){typeof e!="function"&&(e=nc(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],s=a.length,o=r[i]=new Array(s),l,c,u=0;u<s;++u)(l=a[u])&&(c=e.call(l,l.__data__,u,a))&&("__data__"in l&&(c.__data__=l.__data__),o[u]=c);return new $e(r,this._parents)}function VE(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function GE(){return[]}function sp(e){return e==null?GE:function(){return this.querySelectorAll(e)}}function FE(e){return function(){return VE(e.apply(this,arguments))}}function zE(e){typeof e=="function"?e=FE(e):e=sp(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var s=t[a],o=s.length,l,c=0;c<o;++c)(l=s[c])&&(r.push(e.call(l,l.__data__,c,s)),i.push(l));return new $e(r,i)}function op(e){return function(){return this.matches(e)}}function lp(e){return function(t){return t.matches(e)}}var jE=Array.prototype.find;function WE(e){return function(){return jE.call(this.children,e)}}function qE(){return this.firstElementChild}function YE(e){return this.select(e==null?qE:WE(typeof e=="function"?e:lp(e)))}var ZE=Array.prototype.filter;function XE(){return Array.from(this.children)}function KE(e){return function(){return ZE.call(this.children,e)}}function QE(e){return this.selectAll(e==null?XE:KE(typeof e=="function"?e:lp(e)))}function JE(e){typeof e!="function"&&(e=op(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],s=a.length,o=r[i]=[],l,c=0;c<s;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&o.push(l);return new $e(r,this._parents)}function cp(e){return new Array(e.length)}function tO(){return new $e(this._enter||this._groups.map(cp),this._parents)}function ys(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ys.prototype={constructor:ys,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 eO(e){return function(){return e}}function nO(e,t,n,r,i,a){for(var s=0,o,l=t.length,c=a.length;s<c;++s)(o=t[s])?(o.__data__=a[s],r[s]=o):n[s]=new ys(e,a[s]);for(;s<l;++s)(o=t[s])&&(i[s]=o)}function rO(e,t,n,r,i,a,s){var o,l,c=new Map,u=t.length,d=a.length,h=new Array(u),p;for(o=0;o<u;++o)(l=t[o])&&(h[o]=p=s.call(l,l.__data__,o,t)+"",c.has(p)?i[o]=l:c.set(p,l));for(o=0;o<d;++o)p=s.call(e,a[o],o,a)+"",(l=c.get(p))?(r[o]=l,l.__data__=a[o],c.delete(p)):n[o]=new ys(e,a[o]);for(o=0;o<u;++o)(l=t[o])&&c.get(h[o])===l&&(i[o]=l)}function iO(e){return e.__data__}function aO(e,t){if(!arguments.length)return Array.from(this,iO);var n=t?rO:nO,r=this._parents,i=this._groups;typeof e!="function"&&(e=eO(e));for(var a=i.length,s=new Array(a),o=new Array(a),l=new Array(a),c=0;c<a;++c){var u=r[c],d=i[c],h=d.length,p=sO(e.call(u,u&&u.__data__,c,r)),f=p.length,v=o[c]=new Array(f),m=s[c]=new Array(f),y=l[c]=new Array(h);n(u,d,v,m,y,p,t);for(var g=0,x=0,O,E;g<f;++g)if(O=v[g]){for(g>=x&&(x=g+1);!(E=m[x])&&++x<f;);O._next=E||null}}return s=new $e(s,r),s._enter=o,s._exit=l,s}function sO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function oO(){return new $e(this._exit||this._groups.map(cp),this._parents)}function lO(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function cO(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,s=Math.min(i,a),o=new Array(i),l=0;l<s;++l)for(var c=n[l],u=r[l],d=c.length,h=o[l]=new Array(d),p,f=0;f<d;++f)(p=c[f]||u[f])&&(h[f]=p);for(;l<i;++l)o[l]=n[l];return new $e(o,this._parents)}function uO(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],s;--i>=0;)(s=r[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function hO(e){e||(e=dO);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 s=n[a],o=s.length,l=i[a]=new Array(o),c,u=0;u<o;++u)(c=s[u])&&(l[u]=c);l.sort(t)}return new $e(i,this._parents).order()}function dO(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function pO(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function fO(){return Array.from(this)}function mO(){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 s=r[i];if(s)return s}return null}function gO(){let e=0;for(const t of this)++e;return e}function vO(){return!this.node()}function yO(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,s=i.length,o;a<s;++a)(o=i[a])&&e.call(o,o.__data__,a,i);return this}function bO(e){return function(){this.removeAttribute(e)}}function xO(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _O(e,t){return function(){this.setAttribute(e,t)}}function EO(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function OO(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function wO(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 SO(e,t){var n=vs(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?xO:bO:typeof t=="function"?n.local?wO:OO:n.local?EO:_O)(n,t))}function up(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function TO(e){return function(){this.style.removeProperty(e)}}function $O(e,t,n){return function(){this.style.setProperty(e,t,n)}}function MO(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function CO(e,t,n){return arguments.length>1?this.each((t==null?TO:typeof t=="function"?MO:$O)(e,t,n??"")):Yr(this.node(),e)}function Yr(e,t){return e.style.getPropertyValue(t)||up(e).getComputedStyle(e,null).getPropertyValue(t)}function AO(e){return function(){delete this[e]}}function kO(e,t){return function(){this[e]=t}}function RO(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function LO(e,t){return arguments.length>1?this.each((t==null?AO:typeof t=="function"?RO:kO)(e,t)):this.node()[e]}function hp(e){return e.trim().split(/^|\s+/)}function rc(e){return e.classList||new dp(e)}function dp(e){this._node=e,this._names=hp(e.getAttribute("class")||"")}dp.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 pp(e,t){for(var n=rc(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function fp(e,t){for(var n=rc(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function DO(e){return function(){pp(this,e)}}function IO(e){return function(){fp(this,e)}}function NO(e,t){return function(){(t.apply(this,arguments)?pp:fp)(this,e)}}function PO(e,t){var n=hp(e+"");if(arguments.length<2){for(var r=rc(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?NO:t?DO:IO)(n,t))}function UO(){this.textContent=""}function BO(e){return function(){this.textContent=e}}function HO(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function VO(e){return arguments.length?this.each(e==null?UO:(typeof e=="function"?HO:BO)(e)):this.node().textContent}function GO(){this.innerHTML=""}function FO(e){return function(){this.innerHTML=e}}function zO(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function jO(e){return arguments.length?this.each(e==null?GO:(typeof e=="function"?zO:FO)(e)):this.node().innerHTML}function WO(){this.nextSibling&&this.parentNode.appendChild(this)}function qO(){return this.each(WO)}function YO(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ZO(){return this.each(YO)}function XO(e){var t=typeof e=="function"?e:ap(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function KO(){return null}function QO(e,t){var n=typeof e=="function"?e:ap(e),r=t==null?KO:typeof t=="function"?t:nc(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function JO(){var e=this.parentNode;e&&e.removeChild(this)}function tw(){return this.each(JO)}function ew(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nw(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function rw(e){return this.select(e?nw:ew)}function iw(e){return arguments.length?this.property("__data__",e):this.node().__data__}function aw(e){return function(t){e.call(this,t,this.__data__)}}function sw(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 ow(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 lw(e,t,n){return function(){var r=this.__on,i,a=aw(t);if(r){for(var s=0,o=r.length;s<o;++s)if((i=r[s]).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 cw(e,t,n){var r=sw(e+""),i,a=r.length,s;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,c=o.length,u;l<c;++l)for(i=0,u=o[l];i<a;++i)if((s=r[i]).type===u.type&&s.name===u.name)return u.value}return}for(o=t?lw:ow,i=0;i<a;++i)this.each(o(r[i],t,n));return this}function mp(e,t,n){var r=up(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 uw(e,t){return function(){return mp(this,e,t)}}function hw(e,t){return function(){return mp(this,e,t.apply(this,arguments))}}function dw(e,t){return this.each((typeof t=="function"?hw:uw)(e,t))}function*pw(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,s;i<a;++i)(s=r[i])&&(yield s)}var gp=[null];function $e(e,t){this._groups=e,this._parents=t}function Wi(){return new $e([[document.documentElement]],gp)}function fw(){return this}$e.prototype=Wi.prototype={constructor:$e,select:HE,selectAll:zE,selectChild:YE,selectChildren:QE,filter:JE,data:aO,enter:tO,exit:oO,join:lO,merge:cO,selection:fw,order:uO,sort:hO,call:pO,nodes:fO,node:mO,size:gO,empty:vO,each:yO,attr:SO,style:CO,property:LO,classed:PO,text:VO,html:jO,raise:qO,lower:ZO,append:XO,insert:QO,remove:tw,clone:rw,datum:iw,on:cw,dispatch:dw,[Symbol.iterator]:pw};function mw(e){let t;for(;t=e.sourceEvent;)e=t;return e}function pr(e,t){if(e=mw(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 ic(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function vp(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qi(){}var Yi=.7,bs=1/Yi,Zr="\\s*([+-]?\\d+)\\s*",Zi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",hn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gw=/^#([0-9a-f]{3,8})$/,vw=new RegExp(`^rgb\\(${Zr},${Zr},${Zr}\\)$`),yw=new RegExp(`^rgb\\(${hn},${hn},${hn}\\)$`),bw=new RegExp(`^rgba\\(${Zr},${Zr},${Zr},${Zi}\\)$`),xw=new RegExp(`^rgba\\(${hn},${hn},${hn},${Zi}\\)$`),_w=new RegExp(`^hsl\\(${Zi},${hn},${hn}\\)$`),Ew=new RegExp(`^hsla\\(${Zi},${hn},${hn},${Zi}\\)$`),yp={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};ic(qi,wn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:bp,formatHex:bp,formatHex8:Ow,formatHsl:ww,formatRgb:xp,toString:xp});function bp(){return this.rgb().formatHex()}function Ow(){return this.rgb().formatHex8()}function ww(){return Sp(this).formatHsl()}function xp(){return this.rgb().formatRgb()}function wn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=gw.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?_p(t):n===3?new xe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?xs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?xs(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=vw.exec(e))?new xe(t[1],t[2],t[3],1):(t=yw.exec(e))?new xe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bw.exec(e))?xs(t[1],t[2],t[3],t[4]):(t=xw.exec(e))?xs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_w.exec(e))?wp(t[1],t[2]/100,t[3]/100,1):(t=Ew.exec(e))?wp(t[1],t[2]/100,t[3]/100,t[4]):yp.hasOwnProperty(e)?_p(yp[e]):e==="transparent"?new xe(NaN,NaN,NaN,0):null}function _p(e){return new xe(e>>16&255,e>>8&255,e&255,1)}function xs(e,t,n,r){return r<=0&&(e=t=n=NaN),new xe(e,t,n,r)}function Sw(e){return e instanceof qi||(e=wn(e)),e?(e=e.rgb(),new xe(e.r,e.g,e.b,e.opacity)):new xe}function ac(e,t,n,r){return arguments.length===1?Sw(e):new xe(e,t,n,r??1)}function xe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ic(xe,ac,vp(qi,{brighter(e){return e=e==null?bs:Math.pow(bs,e),new xe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Yi:Math.pow(Yi,e),new xe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xe(fr(this.r),fr(this.g),fr(this.b),_s(this.opacity))},displayable(){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:Ep,formatHex:Ep,formatHex8:Tw,formatRgb:Op,toString:Op}));function Ep(){return`#${mr(this.r)}${mr(this.g)}${mr(this.b)}`}function Tw(){return`#${mr(this.r)}${mr(this.g)}${mr(this.b)}${mr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Op(){const e=_s(this.opacity);return`${e===1?"rgb(":"rgba("}${fr(this.r)}, ${fr(this.g)}, ${fr(this.b)}${e===1?")":`, ${e})`}`}function _s(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mr(e){return e=fr(e),(e<16?"0":"")+e.toString(16)}function wp(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 Sp(e){if(e instanceof Ke)return new Ke(e.h,e.s,e.l,e.opacity);if(e instanceof qi||(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),s=NaN,o=a-i,l=(a+i)/2;return o?(t===a?s=(n-r)/o+(n<r)*6:n===a?s=(r-t)/o+2:s=(t-n)/o+4,o/=l<.5?a+i:2-a-i,s*=60):o=l>0&&l<1?0:s,new Ke(s,o,l,e.opacity)}function sc(e,t,n,r){return arguments.length===1?Sp(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}ic(Ke,sc,vp(qi,{brighter(e){return e=e==null?bs:Math.pow(bs,e),new Ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yi:Math.pow(Yi,e),new Ke(this.h,this.s,this.l*e,this.opacity)},rgb(){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 xe(oc(e>=240?e-240:e+120,i,r),oc(e,i,r),oc(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ke(Tp(this.h),Es(this.s),Es(this.l),_s(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=_s(this.opacity);return`${e===1?"hsl(":"hsla("}${Tp(this.h)}, ${Es(this.s)*100}%, ${Es(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Tp(e){return e=(e||0)%360,e<0?e+360:e}function Es(e){return Math.max(0,Math.min(1,e||0))}function oc(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 lc=e=>()=>e;function $w(e,t){return function(n){return e+n*t}}function Mw(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 Cw(e){return(e=+e)==1?$p:function(t,n){return n-t?Mw(t,n,e):lc(isNaN(t)?n:t)}}function $p(e,t){var n=t-e;return n?$w(e,n):lc(isNaN(e)?t:e)}const Os=function e(t){var n=Cw(t);function r(i,a){var s=n((i=ac(i)).r,(a=ac(a)).r),o=n(i.g,a.g),l=n(i.b,a.b),c=$p(i.opacity,a.opacity);return function(u){return i.r=s(u),i.g=o(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function Aw(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function kw(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Rw(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),s;for(s=0;s<r;++s)i[s]=Xi(e[s],t[s]);for(;s<n;++s)a[s]=t[s];return function(o){for(s=0;s<r;++s)a[s]=i[s](o);return a}}function Lw(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Me(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Dw(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Xi(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var cc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,uc=new RegExp(cc.source,"g");function Iw(e){return function(){return e}}function Nw(e){return function(t){return e(t)+""}}function Mp(e,t){var n=cc.lastIndex=uc.lastIndex=0,r,i,a,s=-1,o=[],l=[];for(e=e+"",t=t+"";(r=cc.exec(e))&&(i=uc.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),o[s]?o[s]+=a:o[++s]=a),(r=r[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:Me(r,i)})),n=uc.lastIndex;return n<t.length&&(a=t.slice(n),o[s]?o[s]+=a:o[++s]=a),o.length<2?l[0]?Nw(l[0].x):Iw(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)o[(d=l[u]).i]=d.x(c);return o.join("")})}function Xi(e,t){var n=typeof t,r;return t==null||n==="boolean"?lc(t):(n==="number"?Me:n==="string"?(r=wn(t))?(t=r,Os):Mp:t instanceof wn?Os:t instanceof Date?Lw:kw(t)?Aw:Array.isArray(t)?Rw:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Dw:Me)(e,t)}function Cp(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Ap=180/Math.PI,kp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Rp(e,t,n,r,i,a){var s,o,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,l/=o),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Ap,skewX:Math.atan(l)*Ap,scaleX:s,scaleY:o}}var ws;function Pw(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?kp:Rp(t.a,t.b,t.c,t.d,t.e,t.f)}function Uw(e){return e==null||(ws||(ws=document.createElementNS("http://www.w3.org/2000/svg","g")),ws.setAttribute("transform",e),!(e=ws.transform.baseVal.consolidate()))?kp:(e=e.matrix,Rp(e.a,e.b,e.c,e.d,e.e,e.f))}function Lp(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function a(c,u,d,h,p,f){if(c!==d||u!==h){var v=p.push("translate(",null,t,null,n);f.push({i:v-4,x:Me(c,d)},{i:v-2,x:Me(u,h)})}else(d||h)&&p.push("translate("+d+t+h+n)}function s(c,u,d,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:Me(c,u)})):u&&d.push(i(d)+"rotate("+u+r)}function o(c,u,d,h){c!==u?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:Me(c,u)}):u&&d.push(i(d)+"skewX("+u+r)}function l(c,u,d,h,p,f){if(c!==d||u!==h){var v=p.push(i(p)+"scale(",null,",",null,")");f.push({i:v-4,x:Me(c,d)},{i:v-2,x:Me(u,h)})}else(d!==1||h!==1)&&p.push(i(p)+"scale("+d+","+h+")")}return function(c,u){var d=[],h=[];return c=e(c),u=e(u),a(c.translateX,c.translateY,u.translateX,u.translateY,d,h),s(c.rotate,u.rotate,d,h),o(c.skewX,u.skewX,d,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(p){for(var f=-1,v=h.length,m;++f<v;)d[(m=h[f]).i]=m.x(p);return d.join("")}}}var Bw=Lp(Pw,"px, ","px)","deg)"),Hw=Lp(Uw,", ",")",")"),Xr=0,Ki=0,Qi=0,Dp=1e3,Ss,Ji,Ts=0,gr=0,$s=0,ta=typeof performance=="object"&&performance.now?performance:Date,Ip=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function hc(){return gr||(Ip(Vw),gr=ta.now()+$s)}function Vw(){gr=0}function Ms(){this._call=this._time=this._next=null}Ms.prototype=Np.prototype={constructor:Ms,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?hc():+n)+(t==null?0:+t),!this._next&&Ji!==this&&(Ji?Ji._next=this:Ss=this,Ji=this),this._call=e,this._time=n,dc()},stop:function(){this._call&&(this._call=null,this._time=1/0,dc())}};function Np(e,t,n){var r=new Ms;return r.restart(e,t,n),r}function Gw(){hc(),++Xr;for(var e=Ss,t;e;)(t=gr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Xr}function Pp(){gr=(Ts=ta.now())+$s,Xr=Ki=0;try{Gw()}finally{Xr=0,zw(),gr=0}}function Fw(){var e=ta.now(),t=e-Ts;t>Dp&&($s-=t,Ts=e)}function zw(){for(var e,t=Ss,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:Ss=n);Ji=e,dc(r)}function dc(e){if(!Xr){Ki&&(Ki=clearTimeout(Ki));var t=e-gr;t>24?(e<1/0&&(Ki=setTimeout(Pp,e-ta.now()-$s)),Qi&&(Qi=clearInterval(Qi))):(Qi||(Ts=ta.now(),Qi=setInterval(Fw,Dp)),Xr=1,Ip(Pp))}}function Up(e,t,n){var r=new Ms;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var jw=tc("start","end","cancel","interrupt"),Ww=[],Bp=0,Hp=1,pc=2,Cs=3,Vp=4,fc=5,As=6;function ks(e,t,n,r,i,a){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;qw(e,n,{name:t,index:r,group:i,on:jw,tween:Ww,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Bp})}function mc(e,t){var n=Qe(e,t);if(n.state>Bp)throw new Error("too late; already scheduled");return n}function dn(e,t){var n=Qe(e,t);if(n.state>Cs)throw new Error("too late; already running");return n}function Qe(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function qw(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Np(a,0,n.time);function a(c){n.state=Hp,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var u,d,h,p;if(n.state!==Hp)return l();for(u in r)if(p=r[u],p.name===n.name){if(p.state===Cs)return Up(s);p.state===Vp?(p.state=As,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete r[u]):+u<t&&(p.state=As,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete r[u])}if(Up(function(){n.state===Cs&&(n.state=Vp,n.timer.restart(o,n.delay,n.time),o(c))}),n.state=pc,n.on.call("start",e,e.__data__,n.index,n.group),n.state===pc){for(n.state=Cs,i=new Array(h=n.tween.length),u=0,d=-1;u<h;++u)(p=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=p);i.length=d+1}}function o(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=fc,1),d=-1,h=i.length;++d<h;)i[d].call(e,u);n.state===fc&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=As,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function gc(e,t){var n=e.__transition,r,i,a=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){a=!1;continue}i=r.state>pc&&r.state<fc,r.state=As,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}a&&delete e.__transition}}function Yw(e){return this.each(function(){gc(this,e)})}function Zw(e,t){var n,r;return function(){var i=dn(this,e),a=i.tween;if(a!==n){r=n=a;for(var s=0,o=r.length;s<o;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function Xw(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=dn(this,e),s=a.tween;if(s!==r){i=(r=s).slice();for(var o={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=o;break}l===c&&i.push(o)}a.tween=i}}function Kw(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Qe(this.node(),n).tween,i=0,a=r.length,s;i<a;++i)if((s=r[i]).name===e)return s.value;return null}return this.each((t==null?Zw:Xw)(n,e,t))}function vc(e,t,n){var r=e._id;return e.each(function(){var i=dn(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Qe(i,r).value[t]}}function Gp(e,t){var n;return(typeof t=="number"?Me:t instanceof wn?Os:(n=wn(t))?(t=n,Os):Mp)(e,t)}function Qw(e){return function(){this.removeAttribute(e)}}function Jw(e){return function(){this.removeAttributeNS(e.space,e.local)}}function tS(e,t,n){var r,i=n+"",a;return function(){var s=this.getAttribute(e);return s===i?null:s===r?a:a=t(r=s,n)}}function eS(e,t,n){var r,i=n+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===r?a:a=t(r=s,n)}}function nS(e,t,n){var r,i,a;return function(){var s,o=n(this),l;return o==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=o+"",s===l?null:s===r&&l===i?a:(i=l,a=t(r=s,o)))}}function rS(e,t,n){var r,i,a;return function(){var s,o=n(this),l;return o==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=o+"",s===l?null:s===r&&l===i?a:(i=l,a=t(r=s,o)))}}function iS(e,t){var n=vs(e),r=n==="transform"?Hw:Gp;return this.attrTween(e,typeof t=="function"?(n.local?rS:nS)(n,r,vc(this,"attr."+e,t)):t==null?(n.local?Jw:Qw)(n):(n.local?eS:tS)(n,r,t))}function aS(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function sS(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function oS(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&sS(e,a)),n}return i._value=t,i}function lS(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&aS(e,a)),n}return i._value=t,i}function cS(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=vs(e);return this.tween(n,(r.local?oS:lS)(r,t))}function uS(e,t){return function(){mc(this,e).delay=+t.apply(this,arguments)}}function hS(e,t){return t=+t,function(){mc(this,e).delay=t}}function dS(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?uS:hS)(t,e)):Qe(this.node(),t).delay}function pS(e,t){return function(){dn(this,e).duration=+t.apply(this,arguments)}}function fS(e,t){return t=+t,function(){dn(this,e).duration=t}}function mS(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?pS:fS)(t,e)):Qe(this.node(),t).duration}function gS(e,t){if(typeof t!="function")throw new Error;return function(){dn(this,e).ease=t}}function vS(e){var t=this._id;return arguments.length?this.each(gS(t,e)):Qe(this.node(),t).ease}function yS(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;dn(this,e).ease=n}}function bS(e){if(typeof e!="function")throw new Error;return this.each(yS(this._id,e))}function xS(e){typeof e!="function"&&(e=op(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],s=a.length,o=r[i]=[],l,c=0;c<s;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&o.push(l);return new Sn(r,this._parents,this._name,this._id)}function _S(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),s=new Array(r),o=0;o<a;++o)for(var l=t[o],c=n[o],u=l.length,d=s[o]=new Array(u),h,p=0;p<u;++p)(h=l[p]||c[p])&&(d[p]=h);for(;o<r;++o)s[o]=t[o];return new Sn(s,this._parents,this._name,this._id)}function ES(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function OS(e,t,n){var r,i,a=ES(t)?mc:dn;return function(){var s=a(this,e),o=s.on;o!==r&&(i=(r=o).copy()).on(t,n),s.on=i}}function wS(e,t){var n=this._id;return arguments.length<2?Qe(this.node(),n).on.on(e):this.each(OS(n,e,t))}function SS(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function TS(){return this.on("end.remove",SS(this._id))}function $S(e){var t=this._name,n=this._id;typeof e!="function"&&(e=nc(e));for(var r=this._groups,i=r.length,a=new Array(i),s=0;s<i;++s)for(var o=r[s],l=o.length,c=a[s]=new Array(l),u,d,h=0;h<l;++h)(u=o[h])&&(d=e.call(u,u.__data__,h,o))&&("__data__"in u&&(d.__data__=u.__data__),c[h]=d,ks(c[h],t,n,h,c,Qe(u,n)));return new Sn(a,this._parents,t,n)}function MS(e){var t=this._name,n=this._id;typeof e!="function"&&(e=sp(e));for(var r=this._groups,i=r.length,a=[],s=[],o=0;o<i;++o)for(var l=r[o],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var h=e.call(u,u.__data__,d,l),p,f=Qe(u,n),v=0,m=h.length;v<m;++v)(p=h[v])&&ks(p,t,n,v,h,f);a.push(h),s.push(u)}return new Sn(a,s,t,n)}var CS=Wi.prototype.constructor;function AS(){return new CS(this._groups,this._parents)}function kS(e,t){var n,r,i;return function(){var a=Yr(this,e),s=(this.style.removeProperty(e),Yr(this,e));return a===s?null:a===n&&s===r?i:i=t(n=a,r=s)}}function Fp(e){return function(){this.style.removeProperty(e)}}function RS(e,t,n){var r,i=n+"",a;return function(){var s=Yr(this,e);return s===i?null:s===r?a:a=t(r=s,n)}}function LS(e,t,n){var r,i,a;return function(){var s=Yr(this,e),o=n(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(e),Yr(this,e))),s===l?null:s===r&&l===i?a:(i=l,a=t(r=s,o))}}function DS(e,t){var n,r,i,a="style."+t,s="end."+a,o;return function(){var l=dn(this,e),c=l.on,u=l.value[a]==null?o||(o=Fp(t)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(s,i=u),l.on=r}}function IS(e,t,n){var r=(e+="")=="transform"?Bw:Gp;return t==null?this.styleTween(e,kS(e,r)).on("end.style."+e,Fp(e)):typeof t=="function"?this.styleTween(e,LS(e,r,vc(this,"style."+e,t))).each(DS(this._id,e)):this.styleTween(e,RS(e,r,t),n).on("end.style."+e,null)}function NS(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function PS(e,t,n){var r,i;function a(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&NS(e,s,n)),r}return a._value=t,a}function US(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,PS(e,t,n??""))}function BS(e){return function(){this.textContent=e}}function HS(e){return function(){var t=e(this);this.textContent=t??""}}function VS(e){return this.tween("text",typeof e=="function"?HS(vc(this,"text",e)):BS(e==null?"":e+""))}function GS(e){return function(t){this.textContent=e.call(this,t)}}function FS(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&GS(i)),t}return r._value=e,r}function zS(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,FS(e))}function jS(){for(var e=this._name,t=this._id,n=zp(),r=this._groups,i=r.length,a=0;a<i;++a)for(var s=r[a],o=s.length,l,c=0;c<o;++c)if(l=s[c]){var u=Qe(l,t);ks(l,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Sn(r,this._parents,e,n)}function WS(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,s){var o={value:s},l={value:function(){--i===0&&a()}};n.each(function(){var c=dn(this,r),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),c.on=t}),i===0&&a()})}var qS=0;function Sn(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function zp(){return++qS}var Tn=Wi.prototype;Sn.prototype={constructor:Sn,select:$S,selectAll:MS,selectChild:Tn.selectChild,selectChildren:Tn.selectChildren,filter:xS,merge:_S,selection:AS,transition:jS,call:Tn.call,nodes:Tn.nodes,node:Tn.node,size:Tn.size,empty:Tn.empty,each:Tn.each,on:wS,attr:iS,attrTween:cS,style:IS,styleTween:US,text:VS,textTween:zS,remove:TS,tween:Kw,delay:dS,duration:mS,ease:vS,easeVarying:bS,end:WS,[Symbol.iterator]:Tn[Symbol.iterator]};function jp(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var YS={time:null,delay:0,duration:250,ease:jp};function ZS(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 XS(e){var t,n;e instanceof Sn?(t=e._id,e=e._name):(t=zp(),(n=YS).time=hc(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var s=r[a],o=s.length,l,c=0;c<o;++c)(l=s[c])&&ks(l,e,t,c,s,n||ZS(l,t));return new Sn(r,this._parents,e,t)}Wi.prototype.interrupt=Yw,Wi.prototype.transition=XS;function KS(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Rs(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Kr(e){return e=Rs(Math.abs(e)),e?e[1]:NaN}function QS(e,t){return function(n,r){for(var i=n.length,a=[],s=0,o=e[0],l=0;i>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),a.push(n.substring(i-=o,i+o)),!((l+=o+1)>r));)o=e[s=(s+1)%e.length];return a.reverse().join(t)}}function JS(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var tT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ea(e){if(!(t=tT.exec(e)))throw new Error("invalid format: "+e);var t;return new yc({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ea.prototype=yc.prototype;function yc(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}yc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function eT(e){t:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break t;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Wp;function nT(e,t){var n=Rs(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Wp=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return a===s?r:a>s?r+new Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Rs(e,Math.max(0,t+a-1))[0]}function qp(e,t){var n=Rs(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Yp={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:KS,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>qp(e*100,t),r:qp,s:nT,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Zp(e){return e}var Xp=Array.prototype.map,Kp=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function rT(e){var t=e.grouping===void 0||e.thousands===void 0?Zp:QS(Xp.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Zp:JS(Xp.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=ea(d);var h=d.fill,p=d.align,f=d.sign,v=d.symbol,m=d.zero,y=d.width,g=d.comma,x=d.precision,O=d.trim,E=d.type;E==="n"?(g=!0,E="g"):Yp[E]||(x===void 0&&(x=12),O=!0,E="g"),(m||h==="0"&&p==="=")&&(m=!0,h="0",p="=");var S=v==="$"?n:v==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",k=v==="$"?r:/[%p]/.test(E)?s:"",I=Yp[E],L=/[defgprs%]/.test(E);x=x===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function R($){var G=S,P=k,H,_,C;if(E==="c")P=I($)+P,$="";else{$=+$;var A=$<0||1/$<0;if($=isNaN($)?l:I(Math.abs($),x),O&&($=eT($)),A&&+$==0&&f!=="+"&&(A=!1),G=(A?f==="("?f:o:f==="-"||f==="("?"":f)+G,P=(E==="s"?Kp[8+Wp/3]:"")+P+(A&&f==="("?")":""),L){for(H=-1,_=$.length;++H<_;)if(C=$.charCodeAt(H),48>C||C>57){P=(C===46?i+$.slice(H+1):$.slice(H))+P,$=$.slice(0,H);break}}}g&&!m&&($=t($,1/0));var U=G.length+$.length+P.length,B=U<y?new Array(y-U+1).join(h):"";switch(g&&m&&($=t(B+$,B.length?y-P.length:1/0),B=""),p){case"<":$=G+$+P+B;break;case"=":$=G+B+$+P;break;case"^":$=B.slice(0,U=B.length>>1)+G+$+P+B.slice(U);break;default:$=B+G+$+P;break}return a($)}return R.toString=function(){return d+""},R}function u(d,h){var p=c((d=ea(d),d.type="f",d)),f=Math.max(-8,Math.min(8,Math.floor(Kr(h)/3)))*3,v=Math.pow(10,-f),m=Kp[8+f/3];return function(y){return p(v*y)+m}}return{format:c,formatPrefix:u}}var Ls,bc,Qp;iT({thousands:",",grouping:[3],currency:["$",""]});function iT(e){return Ls=rT(e),bc=Ls.format,Qp=Ls.formatPrefix,Ls}function aT(e){return Math.max(0,-Kr(Math.abs(e)))}function sT(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Kr(t)/3)))*3-Kr(Math.abs(e)))}function oT(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Kr(t)-Kr(e))+1}function Qr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const Jp=Symbol("implicit");function Ds(){var e=new ep,t=[],n=[],r=Jp;function i(a){let s=e.get(a);if(s===void 0){if(r!==Jp)return r;e.set(a,s=t.push(a)-1)}return n[s%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ep;for(const s of a)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Ds(t,n).unknown(r)},Qr.apply(i,arguments),i}function lT(e){return function(){return e}}function cT(e){return+e}var tf=[0,1];function Jr(e){return e}function xc(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:lT(isNaN(t)?NaN:.5)}function uT(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function hT(e,t,n){var r=e[0],i=e[1],a=t[0],s=t[1];return i<r?(r=xc(i,r),a=n(s,a)):(r=xc(r,i),a=n(a,s)),function(o){return a(r(o))}}function dT(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=xc(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(o){var l=Ql(e,o,1,r)-1;return a[l](i[l](o))}}function _c(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ef(){var e=tf,t=tf,n=Xi,r,i,a,s=Jr,o,l,c;function u(){var h=Math.min(e.length,t.length);return s!==Jr&&(s=uT(e[0],e[h-1])),o=h>2?dT:hT,l=c=null,d}function d(h){return h==null||isNaN(h=+h)?a:(l||(l=o(e.map(r),t,n)))(r(s(h)))}return d.invert=function(h){return s(i((c||(c=o(t,e.map(r),Me)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,cT),u()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=Cp,u()},d.clamp=function(h){return arguments.length?(s=h?!0:Jr,u()):s!==Jr},d.interpolate=function(h){return arguments.length?(n=h,u()):n},d.unknown=function(h){return arguments.length?(a=h,d):a},function(h,p){return r=h,i=p,u()}}function nf(){return ef()(Jr,Jr)}function pT(e,t,n,r){var i=Jl(e,t,n),a;switch(r=ea(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=sT(i,s))&&(r.precision=a),Qp(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=oT(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=aT(i))&&(r.precision=a-(r.type==="%")*2);break}}return bc(r)}function rf(e){var t=e.domain;return e.ticks=function(n){var r=t();return ms(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return pT(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,s=r[i],o=r[a],l,c,u=10;for(o<s&&(c=s,s=o,o=c,c=i,i=a,a=c);u-- >0;){if(c=qr(s,o,n),c===l)return r[i]=s,r[a]=o,t(r);if(c>0)s=Math.floor(s/c)*c,o=Math.ceil(o/c)*c;else if(c<0)s=Math.ceil(s*c)/c,o=Math.floor(o*c)/c;else break;l=c}return e},e}function Je(){var e=nf();return e.copy=function(){return _c(e,Je())},Qr.apply(e,arguments),rf(e)}function Ec(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function s(l){return l!=null&&l<=l?i[Ql(r,l,0,n)]:a}function o(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return s}return s.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,o()):[e,t]},s.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,o()):i.slice()},s.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},s.unknown=function(l){return arguments.length&&(a=l),s},s.thresholds=function(){return r.slice()},s.copy=function(){return Ec().domain([e,t]).range(i).unknown(a)},Qr.apply(rf(s),arguments)}function na(e,t,n){this.k=e,this.x=t,this.y=n}na.prototype={constructor:na,scale:function(e){return e===1?this:new na(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new na(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+")"}},na.prototype;const _e="cds",$n={opacity:{unselected:.05,selected:.4}},zn={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},ratio:{reference:"value",compareTo:"marker"},paddingRatio:.1,hover:{rectanglePadding:4}},ti={duration:1e3,ease:jp,zoomLevel:3},ei={circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},depth:2},af={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},Ve={circle:{radius:4,opacity:{hovered:1,default:.3}},box:{opacity:{hovered:.5,default:.3}},strokeWidth:{default:1,thicker:2}},fT={defaultBins:10},Yt={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8,spaceAfter:4},checkbox:{radius:6.5},radius:{iconData:[{cx:7,cy:7,r:6.5},{cx:7,cy:10,r:3.5}],fill:null,stroke:"#8c8c8c"},line:{yPosition:6,width:24,strokeWidth:1.4,fill:null,stroke:"#999999"},area:{width:24,height:14,fill:"#6f6f6f",stroke:null},size:{iconData:[{width:23,height:12},{width:13,height:6}],fill:null,stroke:"#8D8D8D"},quartile:{iconData:[{x:0,y:0,width:24,height:13},{x:11,y:4,width:1,height:4}]},zoom:{iconData:[{x:0,y:0,width:12,height:12}],color:"#8D8D8D"},color:{barWidth:300,barHeight:8,axisYTranslation:10}},Mn={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},oe={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15},total:{paddingLeft:36,paddingRight:24},height:{default:8,proportional:16},dividerWidth:2},Ht={radiusOffset:-15,innerRadius:2,padAngle:.007,hoverArc:{outerRadiusOffset:3},xOffset:30,yOffset:20,yOffsetCallout:10,callout:{minSliceDegree:5,offsetX:15,offsetY:12,horizontalLineLength:8,textMargin:2}},vr={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},tn={nodeWidth:4,nodeHoveredWidth:8,minNodePadding:24,opacity:{unfocus:.3,default:.8,selected:1}},sf={minCellDividerDimension:16,chartPadding:.5},of={default:{size:24}},lf={defaultOffset:4,horizontalOffset:10},cf={default:{duration:300},pie_slice_mouseover:{duration:100},pie_slice_mouseout:{duration:100},pie_chart_titles:{duration:375},graph_element_mouseover_fill_update:{duration:100},graph_element_mouseout_fill_update:{duration:100}},Ce={height:{[We.GRAPH_VIEW]:32,[We.SLIDER_VIEW]:10},spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},mT=[{type:ee.RADIUS,name:"Radius"},{type:ee.AREA,name:"Poor area"},{type:ee.AREA,name:"Satisfactory area"},{type:ee.AREA,name:"Great area"},{type:ee.QUARTILE,name:"Quartiles"}],ni={type:Pe.END_LINE,threshold:16,numCharacter:14},gT={code:typeof navigator<"u"&&(navigator==null?void 0:navigator.language)||"en-US",number:(e,t=(navigator==null?void 0:navigator.language)||"en-US")=>e.toLocaleString(t),date:(e,t=(navigator==null?void 0:navigator.language)||"en-US",n={},r=null)=>r||e.toLocaleDateString(t,n),time:(e,t=(navigator==null?void 0:navigator.language)||"en-US",n={},r=null)=>r||e.toLocaleTimeString(t,n),optionsObject:{"15seconds":{primary:{"MMM d, pp":{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hourCycle:"h12"},"MMM d, h:mm:ss.SSS a":{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",fractionalSecondDigits:3,hourCycle:"h12"}},secondary:{pp:{hour:"numeric",minute:"2-digit",second:"2-digit",hourCycle:"h12"},"h:mm:ss.SSS a":{hour:"numeric",minute:"2-digit",fractionalSecondDigits:3,hourCycle:"h12"}},type:"time"},minute:{primary:{"MMM d, p":{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hourCycle:"h12"}},secondary:{p:{hour:"numeric",minute:"2-digit",hourCycle:"h12"}},type:"time"},"30minutes":{primary:{"MMM d, p":{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hourCycle:"h12"}},secondary:{p:{hour:"numeric",minute:"2-digit",hourCycle:"h12"}},type:"time"},hourly:{primary:{"MMM d, hh a":{month:"short",day:"numeric",hour:"2-digit",hourCycle:"h12"}},secondary:{"hh a":{hour:"2-digit",hourCycle:"h12"}},type:"time"},daily:{primary:{"MMM d":{month:"short",day:"numeric"}},secondary:{d:{day:"numeric"}},type:"date"},weekly:{primary:{"eee, MMM d":{weekday:"short",month:"short",day:"numeric"}},secondary:{eee:{weekday:"short"}},type:"date"},monthly:{primary:{"MMM yyyy":{month:"short",year:"numeric"}},secondary:{MMM:{month:"short"}},type:"date"},quarterly:{primary:{},secondary:{},type:"date"},yearly:{primary:{yyyy:{year:"numeric"}},secondary:{yyyy:{year:"numeric"}},type:"date"}},translations:{group:"Group",total:"Total",meter:{title:""},tabularRep:{title:"Tabular representation",downloadAsCSV:"Download as CSV"},toolbar:{exportAsCSV:"Export to CSV",exportAsJPG:"Export to JPG",exportAsPNG:"Export to PNG",zoomIn:"Zoom in",zoomOut:"Zoom out",resetZoom:"Reset zoom",moreOptions:"More options",makeFullScreen:"Make fullscreen",exitFullScreen:"Exit fullscreen",showAsTable:"Show as table"}}},vT={enabled:!0,position:Br.BOTTOM,clickable:!0,truncation:ni,alignment:Jt.LEFT,order:null,additionalItems:[]},yT={x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},bT={enabled:!0},uf={enabled:!0,showTotal:!0,truncation:ni,groupLabel:"Group"},hf={top:{visible:!0,includeZero:!0,truncation:ni},bottom:{visible:!0,includeZero:!0,truncation:ni},left:{visible:!0,includeZero:!0,truncation:ni},right:{visible:!0,includeZero:!0,truncation:ni}},Is={addSpaceOnEdges:1,showDayName:!1,localeObject:jh,timeIntervalFormats:{"15seconds":{primary:"MMM d, pp",secondary:"pp"},minute:{primary:"MMM d, p",secondary:"p"},"30minutes":{primary:"MMM d, p",secondary:"p"},hourly:{primary:"MMM d, hh a",secondary:"hh a"},daily:{primary:"MMM d",secondary:"d"},weekly:{primary:"eee, MMM d",secondary:"eee"},monthly:{primary:"MMM yyyy",secondary:"MMM"},quarterly:{primary:"QQQ ''yy",secondary:"QQQ"},yearly:{primary:"yyyy",secondary:"yyyy"}}};let df=!1;try{df=typeof document<"u"&&(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}catch(e){console.warn("Fullscreen capabilities check failed: ",e.message)}const ce={width:null,height:null,resizable:!0,theme:wl.WHITE,tooltip:uf,legend:vT,locale:gT,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}},toolbar:{enabled:!0,numberOfIcons:3,controls:[{type:Mt.SHOW_AS_DATATABLE},...df?[{type:Mt.MAKE_FULLSCREEN}]:[],{type:Mt.EXPORT_CSV},{type:Mt.EXPORT_PNG},{type:Mt.EXPORT_JPG}]}},pf=lt({},ce,{thematic:{projection:cn.geoNaturalEarth1}}),ra=lt({},ce,{axes:hf,timeScale:Is,grid:yT,ruler:bT,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:We.GRAPH_VIEW}}}),yr=lt({},ra,{bars:{maxWidth:16,spacingFactor:.25},timeScale:lt(Is,{addSpaceOnEdges:1})}),xT=lt({},yr,{}),_T=lt({},yr,{}),ET=lt({},yr,{bars:lt({},yr.bars,{dividerSize:1.5})}),OT=lt({},yr,{}),Oc=lt({},ra,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),wT=Oc,ff=lt({},Oc,{points:{radius:3,filled:!1,enabled:!0}}),mf=lt({},ff,{timeScale:lt(Is,{addSpaceOnEdges:0})}),ST=mf,TT=lt({},ra,{bubble:{radiusMapsTo:"radius",radiusLabel:"Radius",radiusRange:e=>{const t=Math.min(e.width,e.height);return[t*3/400,t*25/400]},fillOpacity:.2,enabled:!0},points:{filled:!0},legend:{additionalItems:[{type:ee.RADIUS,name:"Radius"}]}}),$T=lt({},ra,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:ee.AREA,name:"Poor area"},{type:ee.AREA,name:"Satisfactory area"},{type:ee.AREA,name:"Great area"},{type:ee.QUARTILE,name:"Quartiles"}]}}),MT=lt({},yr,{bars:{dividerSize:1.5},timeScale:lt(Is,{addSpaceOnEdges:0})}),CT=lt({},ce,{tooltip:lt({},uf,{wordLabel:"Word",valueLabel:"Value"}),wordCloud:{fontSizeMapsTo:"value",fontSizeRange:e=>{const t=Math.min(e.width,e.height);return[t*20/400,t*75/400]},wordMapsTo:"word"}}),gf=lt({},ce,{pie:{labels:{formatter:null,enabled:!0},alignment:Jt.LEFT,sortFunction:null,valueMapsTo:"value"}}),AT=lt({},ce,{legend:{enabled:!1},gauge:{type:ar.SEMI,arcWidth:16,deltaArrow:{size:e=>e/8,enabled:!0},showPercentageSymbol:!0,status:null,numberSpacing:10,deltaFontSize:e=>e/8,valueFontSize:e=>e/2.5,alignment:Jt.LEFT}}),kT=lt({},gf,{donut:{center:{numberFontSize:e=>`${Math.min(e/100*24,24)}px`,titleFontSize:e=>`${Math.min(e/100*15,15)}px`,titleYPosition:e=>Math.min(e/80*20,20)},alignment:Jt.LEFT}}),vf=lt({},ce,{legend:{enabled:!1,clickable:!1},meter:{showLabels:!0,proportional:null,statusBar:{percentageIndicator:{enabled:!0}}}}),RT=lt({},vf,{legend:{enabled:!0}}),LT=lt({},ce,{radar:{axes:{angle:"key",value:"value"},alignment:Jt.LEFT},tooltip:{gridline:{enabled:!0}}}),DT=lt({},yr,{comboChartTypes:[]}),IT=lt({tree:{type:Ka.TREE}},ce,{}),NT=lt({},ce,{data:lt(ce.data,{groupMapsTo:"name"})}),PT=lt({},ce,ei,{data:lt(ce.data,{groupMapsTo:"name"})}),UT=lt({},ce,{alluvial:{data:lt(ce.data,{groupMapsTo:"source"}),nodeAlignment:Jt.CENTER,nodePadding:24,monochrome:!1,nodes:[]}}),BT=lt({},ce,{axes:hf,heatmap:{divider:{state:Vr.AUTO},colorLegend:{type:"linear"}}}),HT=lt({},pf,{choropleth:{colorLegend:{type:"linear"}}}),Ut={alluvialChart:UT,areaChart:mf,axisChart:ra,boxplotChart:OT,bubbleChart:TT,bulletChart:$T,chart:ce,circlePackChart:PT,choroplethChart:HT,comboChart:DT,donutChart:kT,gaugeChart:AT,groupedBarChart:_T,heatmapChart:BT,histogramChart:MT,lineChart:ff,lollipopChart:wT,meterChart:vf,pieChart:gf,proportionalMeterChart:RT,radarChart:LT,scatterChart:Oc,simpleBarChart:xT,stackedAreaChart:ST,stackedBarChart:ET,thematicChart:pf,treeChart:IT,treemapChart:NT,wordCloudChart:CT};function VT(e,t,n){let r=null;return function(...i){const a=this;a.mousePosition=pr(i[0],n),clearTimeout(r),r=setTimeout(function(){e.apply(a,i)},t)}}function jt(e,t){var n;const r=On(e),i=Object.keys(t.axes||{});(n=t==null?void 0:t.toolbar)!=null&&n.controls&&delete r.toolbar.controls,i.length===0&&delete r.axes;for(const a in r.axes)if(i.includes(a)){const s=t.axes[a];if((s.primary||s.secondary)&&console.warn("`primary` & `secondary` are no longer needed for axis configurations. Read more here https://charts.carbondesignsystem.com/?path=/story/docs-tutorials--tabular-data-format"),s.mapsTo==null){const l=s.scaleType;l==null?s.mapsTo="value":l===et.TIME?s.mapsTo="date":l===et.LABELS&&(s.mapsTo="key")}}else delete r.axes[a];return Sc(r,t),lt(r,t)}function Cn(e){if(!e)return;const t=/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/,n=e.getAttribute("transform").match(t);if(!n)return null;if(n[0]){const r=n[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:r[0],ty:r[1]}}return null}function ia(e){const t=/\(([^)]+)\)/.exec(e);if(t&&t.length>1){const n=t[1].split(",");if(n.length>1)return{x:parseFloat(n[0]),y:parseFloat(n[1])}}return{x:0,y:0}}function wc(e,t,n="value",r=!1){const i=e/t.reduce((a,s)=>a+s[n],0)*100;return r?i:i%1!==0?parseFloat(i.toFixed(1)):i}function aa(e,t,n){if(n>e.length)return e;if(t===Pe.MID_LINE)return e.substr(0,n/2)+"..."+e.substr(-n/2);if(t===Pe.FRONT_LINE)return"..."+e.substr(-n);if(t===Pe.END_LINE)return e.substr(0,n)+"..."}function Sc(e,t){const n=b(e,"legend","additionalItems"),r=b(t,"legend","additionalItems");if(n&&r){const i=r.map(o=>o.type),a=n.map(o=>o.type),s=mT.filter(o=>a.includes(o.type)&&!i.includes(o.type));e.legend.additionalItems=s,t.legend.additionalItems=EE(s,r,"name")}}const b=(e,...t)=>{let n=e;if(n){for(const r of t)if(n[r]!==null&&n[r]!==void 0)n=n[r];else return null;return n}return null},yf=(e,t)=>t===Qt.HORIZONTAL?{y0:e.x0,y1:e.x1,x0:e.y0,x1:e.y1}:e,me=(e,t)=>{const{x0:n,x1:r,y0:i,y1:a}=yf(e,t);return`M${n},${i}L${n},${a}L${r},${a}L${r},${i}L${n},${i}`};function An(e,t,n){return n===Qt.VERTICAL?[e,t]:[t,e]}const bf=6048e5,GT=864e5,xf=6e4,_f=36e5;function Ef(e){const t=St(e);return t.setHours(0,0,0,0),t}function Of(e){const t=St(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function wf(e,t){const n=Ef(e),r=Ef(t),i=+n-Of(n),a=+r-Of(r);return Math.round((i-a)/GT)}function en(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function FT(e){const t=St(e),n=en(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function zT(e){const t=St(e);return wf(t,FT(t))+1}function Ns(e){return Li(e,{weekStartsOn:1})}function Sf(e){const t=St(e),n=t.getFullYear(),r=en(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Ns(r),a=en(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=Ns(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function jT(e){const t=Sf(e),n=en(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ns(n)}function WT(e){const t=St(e),n=+Ns(t)-+jT(t);return Math.round(n/bf)+1}function Tf(e,t){var n,r,i,a;const s=St(e),o=s.getFullYear(),l=ts(),c=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??l.firstWeekContainsDate??((a=(i=l.locale)==null?void 0:i.options)==null?void 0:a.firstWeekContainsDate)??1,u=en(e,0);u.setFullYear(o+1,0,c),u.setHours(0,0,0,0);const d=Li(u,t),h=en(e,0);h.setFullYear(o,0,c),h.setHours(0,0,0,0);const p=Li(h,t);return s.getTime()>=d.getTime()?o+1:s.getTime()>=p.getTime()?o:o-1}function qT(e,t){var n,r,i,a;const s=ts(),o=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??s.firstWeekContainsDate??((a=(i=s.locale)==null?void 0:i.options)==null?void 0:a.firstWeekContainsDate)??1,l=Tf(e,t),c=en(e,0);return c.setFullYear(l,0,o),c.setHours(0,0,0,0),Li(c,t)}function YT(e,t){const n=St(e),r=+Li(n,t)-+qT(n,t);return Math.round(r/bf)+1}function kt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const jn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return kt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):kt(n+1,2)},d(e,t){return kt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return kt(e.getHours()%12||12,t.length)},H(e,t){return kt(e.getHours(),t.length)},m(e,t){return kt(e.getMinutes(),t.length)},s(e,t){return kt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return kt(i,t.length)}},ri={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$f={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return jn.y(e,t)},Y:function(e,t,n,r){const i=Tf(e,r),a=i>0?i:1-i;if(t==="YY"){const s=a%100;return kt(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):kt(a,t.length)},R:function(e,t){const n=Sf(e);return kt(n,t.length)},u:function(e,t){const n=e.getFullYear();return kt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return kt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return kt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return jn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return kt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=YT(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):kt(i,t.length)},I:function(e,t,n){const r=WT(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):kt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):jn.d(e,t)},D:function(e,t,n){const r=zT(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):kt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return kt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return kt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return kt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ri.noon:r===0?i=ri.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ri.evening:r>=12?i=ri.afternoon:r>=4?i=ri.morning:i=ri.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return jn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):jn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):kt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):kt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):jn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):jn.s(e,t)},S:function(e,t){return jn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Cf(r);case"XXXX":case"XX":return br(r);case"XXXXX":case"XXX":default:return br(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Cf(r);case"xxxx":case"xx":return br(r);case"xxxxx":case"xxx":default:return br(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mf(r,":");case"OOOO":default:return"GMT"+br(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mf(r,":");case"zzzz":default:return"GMT"+br(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return kt(r,t.length)},T:function(e,t,n){const r=e.getTime();return kt(r,t.length)}};function Mf(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+kt(a,2)}function Cf(e,t){return e%60===0?(e>0?"-":"+")+kt(Math.abs(e)/60,2):br(e,t)}function br(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=kt(Math.trunc(r/60),2),a=kt(r%60,2);return n+i+t+a}const Af=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},kf=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ZT=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Af(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Af(r,t)).replace("{{time}}",kf(i,t))},XT={p:kf,P:ZT},KT=/^D+$/,QT=/^Y+$/,JT=["D","DD","YY","YYYY"];function t$(e){return KT.test(e)}function e$(e){return QT.test(e)}function n$(e,t,n){const r=r$(e,t,n);if(console.warn(r),JT.includes(e))throw new RangeError(r)}function r$(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function i$(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function a$(e){if(!i$(e)&&typeof e!="number")return!1;const t=St(e);return!isNaN(Number(t))}const s$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,o$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l$=/^'([^]*?)'?$/,c$=/''/g,u$=/[a-zA-Z]/;function Tc(e,t,n){var r,i,a,s,o,l,c,u;const d=ts(),h=(n==null?void 0:n.locale)??d.locale??jh,p=(n==null?void 0:n.firstWeekContainsDate)??((i=(r=n==null?void 0:n.locale)==null?void 0:r.options)==null?void 0:i.firstWeekContainsDate)??d.firstWeekContainsDate??((s=(a=d.locale)==null?void 0:a.options)==null?void 0:s.firstWeekContainsDate)??1,f=(n==null?void 0:n.weekStartsOn)??((l=(o=n==null?void 0:n.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??d.weekStartsOn??((u=(c=d.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,v=St(e);if(!a$(v))throw new RangeError("Invalid time value");let m=t.match(o$).map(g=>{const x=g[0];if(x==="p"||x==="P"){const O=XT[x];return O(g,h.formatLong)}return g}).join("").match(s$).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const x=g[0];if(x==="'")return{isToken:!1,value:h$(g)};if($f[x])return{isToken:!0,value:g};if(x.match(u$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:g}});h.localize.preprocessor&&(m=h.localize.preprocessor(v,m));const y={firstWeekContainsDate:p,weekStartsOn:f,locale:h};return m.map(g=>{if(!g.isToken)return g.value;const x=g.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&e$(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&t$(x))&&n$(x,t,String(e));const O=$f[x[0]];return O(v,x,h.localize,y)}).join("")}function h$(e){const t=e.match(l$);return t?t[1].replace(c$,"'"):e}var Rf=(e=>(e["15seconds"]="15seconds",e.minute="minute",e["30minutes"]="30minutes",e.hourly="hourly",e.daily="daily",e.weekly="weekly",e.monthly="monthly",e.quarterly="quarterly",e.yearly="yearly",e))(Rf||{});const $c=[["15seconds",15*1e3],["minute",60*1e3],["30minutes",30*60*1e3],["hourly",60*60*1e3],["daily",24*60*60*1e3],["monthly",30*24*60*60*1e3],["quarterly",3*30*24*60*60*1e3],["yearly",12*30*24*60*60*1e3]];function Lf(e,t,n,r,i){const a=t===0,s=Number(Tc(new Date(e),"c"))===2,o=Number(Tc(new Date(e),"q"))===1,l=t!==0?n[t-1]:null;switch(r){case"15seconds":return a||Us(e)||sa(e,l)||Wn(e);case"minute":return a||Us(e)||sa(e,l)||Wn(e);case"30minutes":return a||Us(e)||sa(e,l)||Wn(e);case"hourly":return a||Us(e)||sa(e,l)||Wn(e);case"daily":return i?a||s||Wn(e):a||sa(e,l)||Wn(e);case"weekly":return a||s||Wn(e);case"monthly":return a||Wn(e);case"quarterly":return a||o;case"yearly":return!1;default:throw new Error(`${r} is not a valid time interval.`)}}function Mc(e,t,n,r,i,a){const s=i.showDayName,o=r==="daily"&&s?"weekly":r,l=new Date(e),c=b(i,"timeIntervalFormats")[o],u=b(c,"primary"),d=b(c,"secondary"),h=Lf(e,t,n,r,s);let p=h?u:d;r==="15seconds"&&l.getMilliseconds()!==0&&(p=p.replace("pp","h:mm:ss.SSS a"));const f=i.localeObject,{code:v,optionsObject:m}=a,y=m[r].type,g=m[r][h?"primary":"secondary"][p];if(r==="quarterly"||!g){const x=Tc(l,p,{locale:f}).split("").map(O=>{const E=Number(O);return O!==" "&&!Number.isNaN(E)?E.toLocaleString(v):O});return a[y](l,v,{},x.join(""))}else return a[y](l,v,g)}function Ps(e){const t=new Date(e);return{M:t.getMonth()+1,d:t.getDate(),H:t.getHours(),m:t.getMinutes(),s:t.getSeconds()}}function d$(e){if(e)return e.slice(1).map((t,n)=>t-e[n])}function p$(e){const t=$c.reduce((n,[,r],i)=>{const a=$c[n][1],s=Math.abs(a-e),o=Math.abs(r-e);return s<o?n:i},0);return $c[t][0]}function Cc(e,t){if(Rf[t])return t;if(e.length===1)return"15seconds";const n=d$(e),r=Fn(n);return p$(r)}function Us(e){const{s:t,m:n,H:r}=Ps(e);return r===0&&n===0&&t===0}function sa(e,t){const n=Ps(e).M,r=Ps(t).M;return n!==r}function Wn(e){const{M:t,d:n,s:r,m:i,H:a}=Ps(e);return t===1&&n===1&&a===0&&i===0&&r===0}function Df(e){return e===void 0?"":e.toISOString()}function If(e){const t=Xe(e,r=>r.value),n=Je().domain(t).nice().domain();if(n[0]>0)n[0]=0;else if(n[0]===0&&n[1]===0)return[0,1];return n[0]<0&&n[1]>0&&(Math.abs(n[0])>n[1]?n[1]=Math.abs(n[0]):n[0]=-n[1]),n}function Nf(e,t){const n=b(t,"gradient","colors"),r=!Ze(n);let i=b(t,"pairing","option");const a=If(e),s=a[0]<0&&a[1]>0?"diverge":"mono";(i<1&&i>4&&s==="mono"||i<1&&i>2&&s==="diverge")&&(i=1);const o=r?n:[];if(!r){const l=s==="diverge"?17:11;for(let c=1;c<l+1;c++)o.push(`fill-${s}-${i}-${c}`)}return Ec().domain(a).range(o)}var dt=(e=>(e.GRAPHICS_DOCUMENT="graphics-document",e.GRAPHICS_OBJECT="graphics-object",e.GRAPHICS_SYMBOL="graphics-symbol",e.GROUP="group",e.DOCUMENT="document",e.CHECKBOX="checkbox",e.BUTTON="button",e.MENU="menu",e.MENU_ITEM="menuitem",e.IMG="img",e))(dt||{});function f$(e,t){return e&&Kd(e,t,Pi)}function m$(e,t){return function(n,r){if(n==null)return n;if(!cr(n))return e(n,r);for(var i=n.length,a=-1,s=Object(n);++a<i&&r(s[a],a,s)!==!1;);return n}}var Ac=m$(f$);function mt(e){return function(){return e}}var g$=Array.prototype.slice;function Bs(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function v$(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var s=e[i];t(r,s,n(s),e)}return r}function y$(e,t,n,r){return Ac(e,function(i,a,s){t(r,i,n(i),s)}),r}function b$(e,t){return function(n,r){var i=se(n)?v$:y$,a={};return i(n,e,ps(r),a)}}function x$(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}var _$=Object.prototype,E$=_$.hasOwnProperty,O$=b$(function(e,t,n){E$.call(e,n)?e[n].push(t):rs(e,n,[t])});function w$(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function S$(e){return e}function T$(e=hr){if(e===hr)return Pf;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Pf(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var $$=Array.prototype,M$=$$.slice;function kc(e){return()=>e}function C$(e,t,n){let r;for(;;){const i=qr(e,t,n);if(i===r||i===0||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function A$(e){return Math.max(1,Math.ceil(Math.log(w$(e))/Math.LN2)+1)}function k$(){var e=S$,t=Xe,n=A$;function r(i){Array.isArray(i)||(i=Array.from(i));var a,s=i.length,o,l,c=new Array(s);for(a=0;a<s;++a)c[a]=e(i[a],a,i);var u=t(c),d=u[0],h=u[1],p=n(c,d,h);if(!Array.isArray(p)){const x=h,O=+p;if(t===Xe&&([d,h]=C$(d,h,O)),p=ms(d,h,O),p[0]<=d&&(l=qr(d,h,O)),p[p.length-1]>=h)if(x>=h&&t===Xe){const E=qr(d,h,O);isFinite(E)&&(E>0?h=(Math.floor(h/E)+1)*E:E<0&&(h=(Math.ceil(h*-E)+1)/-E))}else p.pop()}for(var f=p.length,v=0,m=f;p[v]<=d;)++v;for(;p[m-1]>h;)--m;(v||m<f)&&(p=p.slice(v,m),f=m-v);var y=new Array(f+1),g;for(a=0;a<=f;++a)g=y[a]=[],g.x0=a>0?p[a-1]:d,g.x1=a<f?p[a]:h;if(isFinite(l)){if(l>0)for(a=0;a<s;++a)(o=c[a])!=null&&d<=o&&o<=h&&y[Math.min(f,Math.floor((o-d)/l))].push(i[a]);else if(l<0){for(a=0;a<s;++a)if((o=c[a])!=null&&d<=o&&o<=h){const x=Math.floor((d-o)*l);y[Math.min(f,x+(p[x]<=o))].push(i[a])}}}else for(a=0;a<s;++a)(o=c[a])!=null&&d<=o&&o<=h&&y[Ql(p,o,0,f)].push(i[a]);return y}return r.value=function(i){return arguments.length?(e=typeof i=="function"?i:kc(i),r):e},r.domain=function(i){return arguments.length?(t=typeof i=="function"?i:kc([i[0],i[1]]),r):t},r.thresholds=function(i){return arguments.length?(n=typeof i=="function"?i:kc(Array.isArray(i)?M$.call(i):i),r):n},r}function Uf(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Pf:T$(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),p=Math.max(n,Math.floor(t-c*d/l+h)),f=Math.min(r,Math.floor(t+(l-c)*d/l+h));Uf(e,t,p,f,i)}const a=e[t];let s=n,o=r;for(oa(e,n,t),i(e[r],a)>0&&oa(e,n,r);s<o;){for(oa(e,s,o),++s,--o;i(e[s],a)<0;)++s;for(;i(e[o],a)>0;)--o}i(e[n],a)===0?oa(e,n,o):(++o,oa(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function oa(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Rc(e,t,n){if(e=Float64Array.from(TE(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Fn(e);if(t>=1)return dr(e);var r,i=(r-1)*t,a=Math.floor(i),s=dr(Uf(e,a).subarray(0,a+1)),o=Fn(e.subarray(a+1));return s+(o-s)*(i-a)}}function Bf(e,t){if((s=e.length)>1)for(var n=1,r,i,a=e[t[0]],s,o=a.length;n<s;++n)for(i=a,a=e[t[n]],r=0;r<o;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Hf(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function R$(e,t){return e[t]}function L$(e){const t=[];return t.key=e,t}function Lc(){var e=mt([]),t=Hf,n=Bf,r=R$;function i(a){var s=Array.from(e.apply(this,arguments),L$),o,l=s.length,c=-1,u;for(const d of a)for(o=0,++c;o<l;++o)(s[o][c]=[0,+r(d,s[o].key,c,a)]).data=d;for(o=0,u=Bs(t(s));o<l;++o)s[u[o]].index=o;return n(s,u),s}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:mt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:mt(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?Hf:typeof a=="function"?a:mt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??Bf,i):n},i}function D$(e,t){if((l=e.length)>0)for(var n,r=0,i,a,s,o,l,c=e[t[0]].length;r<c;++r)for(s=o=0,n=0;n<l;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=s,i[1]=s+=a):a<0?(i[1]=o,i[0]=o+=a):(i[0]=0,i[1]=a)}function I$(e){const t=e.trim();return["=","+","-","@"," ","\r"].includes(t.charAt(0))?` ${t}`:/[,\"\n]/.test(t)?`"${t}"`:t}class pn{constructor(t){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=t}formatTable({headers:t,cells:n}){const r=this.getOptions(),{code:i,date:a,number:s}=b(r,"locale"),o=b(r,"tabularRepModal","tableHeadingFormatter"),l=b(r,"tabularRepModal","tableCellFormatter"),{cartesianScales:c}=this.services,u=c==null?void 0:c.getDomainAxisScaleType();let d;return u===et.TIME&&(d=h=>a(h,i,{month:"short",day:"numeric",year:"numeric"})),[typeof o=="function"?o(t):t,...typeof l=="function"?l(n):n.map(h=>{d&&(h[1]=d(h[1]));for(const p in h){const f=h[p];typeof f=="number"&&(h[p]=s(f,i))}return h})]}getAllDataFromDomain(t){if(!this.getData())return null;const n=this.getOptions();let r=this.getData();const i=this.getDataGroups(),{groupMapsTo:a}=b(n,"data"),s=b(n,"axes");return t&&(r=r.filter(o=>t.includes(o[a]))),s&&Object.keys(s).forEach(o=>{const l=s[o].mapsTo,c=s[o].scaleType;if((c===et.LINEAR||c===et.LOG)&&(r=r.map(u=>({...u,[l]:u[l]===null?u[l]:Number(u[l])}))),l&&s[o].domain)if(c===et.LABELS)r=r.filter(u=>s[o].domain.includes(u[l]));else{const[u,d]=s[o].domain;r=r.filter(h=>!(l in h)||h[l]>=u&&h[l]<=d)}}),r.filter(o=>i.find(l=>l.name===o[a]))}getDisplayData(t){if(!this.get("data"))return null;const{ACTIVE:n}=Yt.items.status,r=this.getDataGroups(t),{groupMapsTo:i}=this.getOptions().data;return this.getAllDataFromDomain(t).filter(a=>r.find(s=>s.name===a[i]&&s.status===n))}getData(){return this.get("data")}isDataEmpty(){return!this.getData().length}setData(t){const n=this.sanitize(On(t)),r=this.generateDataGroups(n);return this.set({data:n,dataGroups:r}),n}getDataGroups(t){return b(this.getOptions(),"data","loading")?[]:t?this.get("dataGroups").filter(n=>t.includes(n.name)):this.get("dataGroups")}getActiveDataGroups(t){const{ACTIVE:n}=Yt.items.status;return this.getDataGroups(t).filter(r=>r.status===n)}getDataGroupNames(t){return this.getDataGroups(t).map(n=>n.name)}getActiveDataGroupNames(t){return this.getActiveDataGroups(t).map(n=>n.name)}aggregateBinDataByGroup(t){return O$(t,"group")}getBinConfigurations(){const t=this.getDisplayData(),n=this.getOptions(),r=this.services.cartesianScales.getMainXAxisPosition(),i=this.services.cartesianScales.getDomainIdentifier(),a=n.axes[r],{groupMapsTo:s}=n.data,{bins:o=fT.defaultBins}=a,l=Array.isArray(o),c=k$().value(p=>p[i]).thresholds(o)(t);if(l)c[c.length-1].x1=o[o.length-1];else{const p=c[0].x1-c[0].x0;c[c.length-1].x1=+c[c.length-1].x0+p}const u=l?[o[0],o[o.length-1]]:[c[0].x0,c[c.length-1].x1],d=Array.from(new Set(t.map(p=>p[s]))),h=[];return c.forEach(p=>{const f=`${p.x0}-${p.x1}`,v=this.aggregateBinDataByGroup(p);d.forEach(m=>{h.push({group:m,key:f,value:v[m]||0,bin:p.x0})})}),{bins:c,binsDomain:u}}getBinnedStackedData(){const t=this.getOptions(),{groupMapsTo:n}=t.data,r=this.getActiveDataGroupNames(),{bins:i}=this.getBinConfigurations(),a=this.getDataValuesGroupedByKeys({bins:i});return Lc().keys(r)(a).map((s,o)=>Object.keys(s).filter(l=>!isNaN(l)).map(l=>{const c=s[l];return c[n]=r[o],c}))}getGroupedData(t){const n=this.getDisplayData(t),r={},{groupMapsTo:i}=this.getOptions().data;return n.map(a=>{const s=a[i];r[s]!==null&&r[s]!==void 0?r[s].push(a):r[s]=[a]}),Object.keys(r).map(a=>({name:a,data:r[a]}))}getStackKeys({bins:t=null,groups:n=null}={bins:null,groups:null}){const r=this.getOptions(),i=this.getDisplayData(n);let a;t?a=t.map(l=>`${l.x0}:${l.x1}`):a=ji(i.map(l=>{const c=this.services.cartesianScales.getDomainIdentifier(l);return l[c]instanceof Date?Df(l[c]):l[c]&&typeof l[c].toString=="function"?l[c].toString():l[c]}));const s=this.services.cartesianScales.domainAxisPosition,o=r.axes[s].scaleType;return o===et.TIME?a.sort((l,c)=>{const u=new Date(l),d=new Date(c);return u-d}):(o===et.LOG||o===et.LINEAR)&&a.sort((l,c)=>l-c),a}getDataValuesGroupedByKeys({bins:t=null,groups:n=null}){const r=this.getOptions(),{groupMapsTo:i}=r.data,a=this.getDisplayData(n),s=this.getDataGroupNames(),o=this.getStackKeys({bins:t,groups:n});return t?o.map(l=>{const[c,u]=l.split(":"),d={x0:c,x1:u},h=t.find(p=>p.x0.toString()===c.toString());return s.forEach(p=>{d[p]=h.filter(f=>f[i]===p).length}),d}):o.map(l=>{const c={sharedStackKey:l};return s.forEach(u=>{const d=a.find(p=>{const f=this.services.cartesianScales.getDomainIdentifier(p);return p[i]===u&&Object.prototype.hasOwnProperty.call(p,f)&&(p[f]instanceof Date?Df(p[f])===l:p[f].toString()===l)}),h=this.services.cartesianScales.getRangeIdentifier(c);c[u]=d?d[h]:null}),c})}getStackedData({percentage:t=!1,groups:n=null,divergent:r=!1}){const i=this.getOptions(),{groupMapsTo:a}=i.data,s=this.getActiveDataGroupNames(n),o=this.getDataValuesGroupedByKeys({groups:n});if(t){const l=x$(o.map(c=>[c.sharedStackKey,0]));o.forEach(c=>{s.forEach(u=>{l[c.sharedStackKey]+=c[u]})}),o.forEach(c=>{s.forEach(u=>{const d=l[c.sharedStackKey];l[c.sharedStackKey]?c[u]=c[u]/d*100:c[u]=0})})}return(r?Lc().offset(D$):Lc()).keys(s)(o).map((l,c)=>Object.keys(l).filter(u=>!isNaN(u)).map(u=>{const d=l[u];return d[a]=s[c],d}))}getOptions(){return this.state.options}set(t,n){this.state=Object.assign({},this.state,t);const r=Object.assign({skipUpdate:!1,animate:!0},n);r.skipUpdate||this.update(r.animate)}get(t){return t?this.state[t]:this.state}setOptions(t){const n=this.getOptions();Sc(n,t),this.set({options:lt(n,t)})}update(t=!0){this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(w.Model.UPDATE,{animate:t}))}toggleDataLabel(t){const{ACTIVE:n,DISABLED:r}=Yt.items.status,i=this.getDataGroups(),a=i.some(c=>c.status===r),s=i.filter(c=>c.status===n);if(a)if(s.length===1&&s[0].name===t)i.forEach((c,u)=>{i[u].status=n});else{const c=i.findIndex(u=>u.name===t);i[c].status=i[c].status===r?n:r}else i.forEach((c,u)=>{i[u].status=c.name===t?n:r});const o=i.filter(c=>c.status===n),l=this.getOptions();i.some(c=>c.status===r)?l.data.selectedGroups=o.map(c=>c.name):l.data.selectedGroups=[],this.services.events.dispatchEvent(w.Legend.ITEMS_UPDATE,{dataGroups:i}),this.set({dataGroups:i})}getIsFilled(t,n,r,i){const a=this.getOptions();return a.getIsFilled?a.getIsFilled(t,n,r,i):i}getFillColor(t,n,r){const i=this.getOptions(),a=b(this.colorScale,t);return i.getFillColor?i.getFillColor(t,n,r,a):a}getStrokeColor(t,n,r){const i=this.getOptions(),a=b(this.colorScale,t);return i.getStrokeColor?i.getStrokeColor(t,n,r,a):a}isUserProvidedColorScaleValid(){const t=b(this.getOptions(),"color","scale"),n=this.getDataGroups();return t==null||Object.keys(t).length==0?!1:n.some(r=>Object.keys(t).includes(r.name))}getColorClassName(t){const n=this.colorClassNames(t.dataGroupName);let r=t.originalClassName;return t.classNameTypes.forEach(i=>r=t.originalClassName?`${r} ${i}-${n}`:`${i}-${n}`),r||""}getStatus(){return null}getAllDataGroupsNames(){return this.allDataGroups}transformToTabularData(t){console.warn("We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://charts.carbondesignsystem.com/");const n=[],{datasets:r,labels:i}=t;return r.forEach(a=>{a.data.forEach((s,o)=>{let l;const c=b(a,"label");if(c===null){const d=b(i,o);d?l=d:l="Ungrouped"}else l=c;const u={group:l,key:i[o]};isNaN(s)?(u.value=s.value,u.date=s.date):u.value=s,n.push(u)})}),n}getTabularDataArray(){return[]}exportToCSV(){const t=this.getTabularDataArray().map(a=>a.map(s=>`"${(s==="&ndash;"?"–":s).split(/[,;'"`]/).map(o=>I$(o)).join("")}"`)).map(a=>a.join(",")).join(`
1
+ (function(V,le){typeof exports=="object"&&typeof module<"u"?le(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],le):(V=typeof globalThis<"u"?globalThis:V||self,le(V.ChartsReact={},V.React))})(this,function(V,le){"use strict";var x5=Object.defineProperty;var _5=(V,le,Gn)=>le in V?x5(V,le,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):V[le]=Gn;var Ph=(V,le,Gn)=>_5(V,typeof le!="symbol"?le+"":le,Gn);var Gn=(e=>(e.RENDER_FINISHED="render-finished",e.RESIZE="chart-resize",e.MOUSEOVER="chart-mouseover",e.MOUSEOUT="chart-mouseout",e))(Gn||{}),sl=(e=>(e.SHOW="show-modal",e.HIDE="hide-modal",e))(sl||{}),ol=(e=>(e.UPDATE="model-update",e))(ol||{}),Bh=(e=>(e.SHOW_OVERFLOW_MENU="show-toolbar-overflow-menu",e.HIDE_OVERFLOW_MENU="hide-toolbar-overflow-menu",e.BUTTON_CLICK="toolbar-button-click",e.SHOW_TOOLTIP="toolbar-show-tooltip",e.HIDE_TOOLTIP="toolbar-hide-tooltip",e))(Bh||{}),ll=(e=>(e.UPDATE="zoom-bar-update",e.SELECTION_START="zoom-bar-selection-start",e.SELECTION_IN_PROGRESS="zoom-bar-selection-in-progress",e.SELECTION_END="zoom-bar-selection-end",e))(ll||{}),cl=(e=>(e.CHANGE="zoom-domain-change",e))(cl||{}),ul=(e=>(e.CANVAS_ZOOM_IN="canvas-zoom-in",e.CANVAS_ZOOM_OUT="canvas-zoom-out",e))(ul||{}),hl=(e=>(e.LABEL_MOUSEOVER="axis-label-mouseover",e.LABEL_MOUSEMOVE="axis-label-mousemove",e.LABEL_CLICK="axis-label-click",e.LABEL_MOUSEOUT="axis-label-mouseout",e.LABEL_FOCUS="axis-label-focus",e.LABEL_BLUR="axis-label-blur",e.RENDER_COMPLETE="axis-render-complete",e))(hl||{}),dl=(e=>(e.POINT_MOUSEOVER="scatter-mouseover",e.POINT_MOUSEMOVE="scatter-mousemove",e.POINT_CLICK="scatter-click",e.POINT_MOUSEOUT="scatter-mouseout",e))(dl||{}),pl=(e=>(e.WORD_MOUSEOVER="wordcloud-word-mouseover",e.WORD_MOUSEMOVE="wordcloud-word-mousemove",e.WORD_CLICK="wordcloud-word-click",e.WORD_MOUSEOUT="wordcloud-word-mouseout",e))(pl||{}),fl=(e=>(e.SLICE_MOUSEOVER="pie-slice-mouseover",e.SLICE_MOUSEMOVE="pie-slice-mousemove",e.SLICE_CLICK="pie-slice-click",e.SLICE_MOUSEOUT="pie-slice-mouseout",e))(fl||{}),ml=(e=>(e.ARC_MOUSEOVER="gauge-arc-mouseover",e.ARC_MOUSEMOVE="gauge-arc-mousemove",e.ARC_CLICK="gauge-arc-click",e.ARC_MOUSEOUT="gauge-arc-mouseout",e))(ml||{}),gl=(e=>(e.BAR_MOUSEOVER="bar-mouseover",e.BAR_MOUSEMOVE="bar-mousemove",e.BAR_CLICK="bar-click",e.BAR_MOUSEOUT="bar-mouseout",e))(gl||{}),vl=(e=>(e.BOX_MOUSEOVER="box-mouseover",e.BOX_MOUSEMOVE="box-mousemove",e.BOX_CLICK="box-click",e.BOX_MOUSEOUT="box-mouseout",e.OUTLIER_MOUSEOVER="outlier-mouseover",e.OUTLIER_MOUSEMOVE="outlier-mousemove",e.OUTLIER_CLICK="outlier-click",e.OUTLIER_MOUSEOUT="outlier-mouseout",e))(vl||{}),yl=(e=>(e.SCATTER_MOUSEOVER="scatter-mouseover",e.SCATTER_MOUSEMOVE="scatter-mousemove",e.SCATTER_CLICK="scatter-click",e.SCATTER_MOUSEOUT="scatter-mouseout",e))(yl||{}),bl=(e=>(e.POINT_MOUSEOVER="scatter-mouseover",e.POINT_MOUSEMOVE="scatter-mousemove",e.POINT_CLICK="scatter-click",e.POINT_MOUSEOUT="scatter-mouseout",e))(bl||{}),xl=(e=>(e.X_AXIS_MOUSEOVER="radar-x-axis-mouseover",e.X_AXIS_MOUSEMOVE="radar-x-axis-mousemove",e.X_AXIS_CLICK="radar-x-axis-click",e.X_AXIS_MOUSEOUT="radar-x-axis-mouseout",e))(xl||{}),_l=(e=>(e.NODE_MOUSEOVER="tree-node-mouseover",e.NODE_CLICK="tree-node-click",e.NODE_MOUSEOUT="tree-node-mouseout",e))(_l||{}),El=(e=>(e.LEAF_MOUSEOVER="leaf-mouseover",e.LEAF_MOUSEMOVE="leaf-mousemove",e.LEAF_CLICK="leaf-click",e.LEAF_MOUSEOUT="leaf-mouseout",e))(El||{}),Pr=(e=>(e.SHOW="show-tooltip",e.MOVE="move-tooltip",e.HIDE="hide-tooltip",e))(Pr||{}),Ol=(e=>(e.SHOW="show-threshold",e.HIDE="hide-threshold",e))(Ol||{}),Hh=(e=>(e.ITEM_HOVER="legend-item-onhover",e.ITEM_CLICK="legend-item-onclick",e.ITEM_MOUSEOUT="legend-item-onmouseout",e.ITEMS_UPDATE="legend-items-update",e))(Hh||{}),Vh=(e=>(e.CIRCLE_MOUSEOVER="circle-leaf-mouseover",e.CIRCLE_CLICK="circle-leaf-click",e.CIRCLE_MOUSEOUT="circle-leaf-mouseout",e.CIRCLE_MOUSEMOVE="circle-leaf-mousemove",e))(Vh||{}),Gh=(e=>(e.NODE_MOUSEOVER="alluvial-node-mouseover",e.NODE_CLICK="alluvial-node-click",e.NODE_MOUSEOUT="alluvial-node-mouseout",e.NODE_MOUSEMOVE="alluvial-node-mousemove",e.LINE_MOUSEOVER="alluvial-line-mouseover",e.LINE_CLICK="alluvial-line-click",e.LINE_MOUSEOUT="alluvial-line-mouseout",e.LINE_MOUSEMOVE="alluvial-line-mousemove",e))(Gh||{}),Fh=(e=>(e.METER_MOUSEOVER="meter-mouseover",e.METER_CLICK="meter-click",e.METER_MOUSEOUT="meter-mouseout",e.METER_MOUSEMOVE="meter-mousemove",e))(Fh||{}),zh=(e=>(e.HEATMAP_MOUSEOVER="heatmap-mouseover",e.HEATMAP_CLICK="heatmap-click",e.HEATMAP_MOUSEOUT="heatmap-mouseout",e.HEATMAP_MOUSEMOVE="hetmap-mousemove",e))(zh||{}),Ur=(e=>(e.CHOROPLETH_MOUSEOVER="choropleth-mouseover",e.CHOROPLETH_CLICK="choropleth-click",e.CHOROPLETH_MOUSEOUT="choropleth-mouseout",e.CHOROPLETH_MOUSEMOVE="choropleth-mousemove",e))(Ur||{});const Y0=Object.freeze(Object.defineProperty({__proto__:null,Alluvial:Gh,Area:dl,Axis:hl,Bar:gl,Boxplot:vl,CanvasZoom:ul,Chart:Gn,Choropleth:Ur,CirclePack:Vh,Gauge:ml,Heatmap:zh,Legend:Hh,Line:bl,Meter:Fh,Modal:sl,Model:ol,Pie:fl,Radar:xl,Scatter:yl,Threshold:Ol,Toolbar:Bh,Tooltip:Pr,Tree:_l,Treemap:El,WordCloud:pl,ZoomBar:ll,ZoomDomain:cl},Symbol.toStringTag,{value:"Module"})),w=Y0;var rt=(e=>(e.HTML="html",e.SVG="svg",e))(rt||{}),wl=(e=>(e.WHITE="white",e.G100="g100",e.G90="g90",e.G10="g10",e))(wl||{}),st=(e=>(e.BACKGROUND="background",e.FILL="fill",e.STROKE="stroke",e.TOOLTIP="tooltip",e))(st||{}),F=(e=>(e.LEFT="left",e.RIGHT="right",e.TOP="top",e.BOTTOM="bottom",e))(F||{}),We=(e=>(e.GRAPH_VIEW="graph_view",e.SLIDER_VIEW="slider_view",e))(We||{}),Pe=(e=>(e.END_LINE="end_line",e.MID_LINE="mid_line",e.FRONT_LINE="front_line",e.NONE="none",e))(Pe||{}),Qt=(e=>(e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e))(Qt||{}),et=(e=>(e.TIME="time",e.LINEAR="linear",e.LOG="log",e.LABELS="labels",e.LABELS_RATIO="labels-ratio",e))(et||{}),Br=(e=>(e.RIGHT="right",e.LEFT="left",e.TOP="top",e.BOTTOM="bottom",e))(Br||{}),Jt=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(Jt||{}),Hr=(e=>(e.HORIZONTAL="horizontal",e.VERTICAL="vertical",e))(Hr||{}),Ka=(e=>(e.TREE="tree",e.DENDROGRAM="dendrogram",e))(Ka||{}),Pt=(e=>(e.ROW="row",e.COLUMN="column",e.ROW_REVERSE="row-reverse",e.COLUMN_REVERSE="column-reverse",e))(Pt||{}),ht=(e=>(e.FIXED="fixed",e.PREFERRED="preferred",e.STRETCH="stretch",e))(ht||{}),ir=(e=>(e.CENTER="center",e))(ir||{}),Ti=(e=>(e.LEFT="left",e.RIGHT="right",e))(Ti||{}),te=(e=>(e.GRID="grid",e.VERT_OR_HORIZ="vertOrHoriz",e.PIE="pie",e.DONUT="donut",e))(te||{}),on=(e=>(e.START="start",e.MIDDLE="middle",e.END="end",e))(on||{}),ln=(e=>(e.BASELINE="baseline",e.MIDDLE="middle",e.HANGING="hanging",e))(ln||{}),ar=(e=>(e.SEMI="semi",e.FULL="full",e))(ar||{}),Qa=(e=>(e.UP="up",e.DOWN="down",e))(Qa||{}),$i=(e=>(e.SUCCESS="success",e.WARNING="warning",e.DANGER="danger",e))($i||{}),Mi=(e=>(e.ALWAYS="always",e.AUTO="auto",e.NEVER="never",e))(Mi||{}),Te=(e=>(e.SCATTER="scatter",e.LINE="line",e.SIMPLE_BAR="simple-bar",e.STACKED_BAR="stacked-bar",e.GROUPED_BAR="grouped-bar",e.AREA="area",e.STACKED_AREA="stacked-area",e))(Te||{}),Mt=(e=>(e.EXPORT_CSV="Export as CSV",e.EXPORT_PNG="Export as PNG",e.EXPORT_JPG="Export as JPG",e.ZOOM_IN="Zoom in",e.ZOOM_OUT="Zoom out",e.RESET_ZOOM="Reset zoom",e.MAKE_FULLSCREEN="Make fullscreen",e.EXIT_FULLSCREEN="Exit fullscreen",e.SHOW_AS_DATATABLE="Show as data-table",e.CUSTOM="Custom",e))(Mt||{}),Ja=(e=>(e.LEFT="left",e.RIGHT="right",e))(Ja||{}),ee=(e=>(e.CHECKBOX="checkbox",e.RADIUS="radius",e.AREA="area",e.SIZE="size",e.LINE="line",e.QUARTILE="quartile",e.ZOOM="zoom",e))(ee||{}),Ci=(e=>(e.LINEAR="linear",e.QUANTIZE="quantize",e))(Ci||{}),Vr=(e=>(e.ON="on",e.AUTO="auto",e.OFF="off",e))(Vr||{}),Ai=(e=>(e.DEFAULT="default",e.HOVERABLE="hoverable",e))(Ai||{}),cn=(e=>(e.geoEqualEarth="geoEqualEarth",e.geoAlbers="geoAlbers",e.geoConicEqualArea="geoConicEqualArea",e.geoConicEquidistant="geoConicEquidistant",e.geoEquirectangular="geoEquirectangular",e.geoMercator="geoMercator",e.geoNaturalEarth1="geoNaturalEarth1",e))(cn||{});function Sl(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function ki(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):s;i=e.formattingValues[o]||e.formattingValues[s]}else{const s=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[o]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function Ri(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const s=a[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?X0(o,d=>d.test(s)):Z0(o,d=>d.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(s.length);return{value:c,rest:u}}}function Z0(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function X0(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function K0(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const o=t.slice(i.length);return{value:s,rest:o}}}function St(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}let Q0={};function ts(){return Q0}function Li(e,t){var n,r,i,a;const s=ts(),o=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??s.weekStartsOn??((a=(i=s.locale)==null?void 0:i.options)==null?void 0:a.weekStartsOn)??0,l=St(e),c=l.getDay(),u=(c<o?7:0)+c-o;return l.setDate(l.getDate()-u),l.setHours(0,0,0,0),l}const J0={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},t1=(e,t,n)=>{let r;const i=J0[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},e1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n1=(e,t,n,r)=>e1[e],r1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},l1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c1=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},u1={ordinalNumber:c1,era:ki({values:r1,defaultWidth:"wide"}),quarter:ki({values:i1,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ki({values:a1,defaultWidth:"wide"}),day:ki({values:s1,defaultWidth:"wide"}),dayPeriod:ki({values:o1,defaultWidth:"wide",formattingValues:l1,defaultFormattingWidth:"wide"})},h1=/^(\d+)(th|st|nd|rd)?/i,d1=/\d+/i,p1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},f1={any:[/^b/i,/^(a|c)/i]},m1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},g1={any:[/1/i,/2/i,/3/i,/4/i]},v1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},b1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},x1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},_1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},E1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},O1={ordinalNumber:K0({matchPattern:h1,parsePattern:d1,valueCallback:e=>parseInt(e,10)}),era:Ri({matchPatterns:p1,defaultMatchWidth:"wide",parsePatterns:f1,defaultParseWidth:"any"}),quarter:Ri({matchPatterns:m1,defaultMatchWidth:"wide",parsePatterns:g1,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ri({matchPatterns:v1,defaultMatchWidth:"wide",parsePatterns:y1,defaultParseWidth:"any"}),day:Ri({matchPatterns:b1,defaultMatchWidth:"wide",parsePatterns:x1,defaultParseWidth:"any"}),dayPeriod:Ri({matchPatterns:_1,defaultMatchWidth:"any",parsePatterns:E1,defaultParseWidth:"any"})},w1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},S1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},T1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$1={date:Sl({formats:w1,defaultWidth:"full"}),time:Sl({formats:S1,defaultWidth:"full"}),dateTime:Sl({formats:T1,defaultWidth:"full"})},jh={code:"en-US",formatDistance:t1,formatLong:$1,formatRelative:n1,localize:u1,match:O1,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Wh=typeof global=="object"&&global&&global.Object===Object&&global,M1=typeof self=="object"&&self&&self.Object===Object&&self,qe=Wh||M1||Function("return this")(),Ue=qe.Symbol,qh=Object.prototype,C1=qh.hasOwnProperty,A1=qh.toString,Di=Ue?Ue.toStringTag:void 0;function k1(e){var t=C1.call(e,Di),n=e[Di];try{e[Di]=void 0;var r=!0}catch{}var i=A1.call(e);return r&&(t?e[Di]=n:delete e[Di]),i}var R1=Object.prototype,L1=R1.toString;function D1(e){return L1.call(e)}var I1="[object Null]",N1="[object Undefined]",Yh=Ue?Ue.toStringTag:void 0;function sr(e){return e==null?e===void 0?N1:I1:Yh&&Yh in Object(e)?k1(e):D1(e)}function un(e){return e!=null&&typeof e=="object"}var P1="[object Symbol]";function es(e){return typeof e=="symbol"||un(e)&&sr(e)==P1}function Tl(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var se=Array.isArray,U1=1/0,Zh=Ue?Ue.prototype:void 0,Xh=Zh?Zh.toString:void 0;function Kh(e){if(typeof e=="string")return e;if(se(e))return Tl(e,Kh)+"";if(es(e))return Xh?Xh.call(e):"";var t=e+"";return t=="0"&&1/e==-U1?"-0":t}function Be(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function $l(e){return e}var B1="[object AsyncFunction]",H1="[object Function]",V1="[object GeneratorFunction]",G1="[object Proxy]";function Ml(e){if(!Be(e))return!1;var t=sr(e);return t==H1||t==V1||t==B1||t==G1}var Cl=qe["__core-js_shared__"],Qh=function(){var e=/[^.]+$/.exec(Cl&&Cl.keys&&Cl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function F1(e){return!!Qh&&Qh in e}var z1=Function.prototype,j1=z1.toString;function or(e){if(e!=null){try{return j1.call(e)}catch{}try{return e+""}catch{}}return""}var W1=/[\\^$.*+?()[\]{}|]/g,q1=/^\[object .+?Constructor\]$/,Y1=Function.prototype,Z1=Object.prototype,X1=Y1.toString,K1=Z1.hasOwnProperty,Q1=RegExp("^"+X1.call(K1).replace(W1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function J1(e){if(!Be(e)||F1(e))return!1;var t=Ml(e)?Q1:q1;return t.test(or(e))}function ty(e,t){return e==null?void 0:e[t]}function lr(e,t){var n=ty(e,t);return J1(n)?n:void 0}var Al=lr(qe,"WeakMap"),Jh=Object.create,ey=function(){function e(){}return function(t){if(!Be(t))return{};if(Jh)return Jh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function ny(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ry(){}function td(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var iy=800,ay=16,sy=Date.now;function oy(e){var t=0,n=0;return function(){var r=sy(),i=ay-(r-n);if(n=r,i>0){if(++t>=iy)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ly(e){return function(){return e}}var ns=function(){try{var e=lr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),cy=ns?function(e,t){return ns(e,"toString",{configurable:!0,enumerable:!1,value:ly(t),writable:!0})}:$l,ed=oy(cy);function uy(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function hy(e,t,n,r){for(var i=e.length,a=n+-1;++a<i;)if(t(e[a],a,e))return a;return-1}function dy(e){return e!==e}function py(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function fy(e,t,n){return t===t?py(e,t,n):hy(e,dy,n)}function my(e,t){var n=e==null?0:e.length;return!!n&&fy(e,t,0)>-1}var gy=9007199254740991,vy=/^(?:0|[1-9]\d*)$/;function kl(e,t){var n=typeof e;return t=t??gy,!!t&&(n=="number"||n!="symbol"&&vy.test(e))&&e>-1&&e%1==0&&e<t}function rs(e,t,n){t=="__proto__"&&ns?ns(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ii(e,t){return e===t||e!==e&&t!==t}var yy=Object.prototype,by=yy.hasOwnProperty;function nd(e,t,n){var r=e[t];(!(by.call(e,t)&&Ii(r,n))||n===void 0&&!(t in e))&&rs(e,t,n)}function Gr(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var o=t[a],l=void 0;l===void 0&&(l=e[o]),i?rs(n,o,l):nd(n,o,l)}return n}var rd=Math.max;function id(e,t,n){return t=rd(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=rd(r.length-t,0),s=Array(a);++i<a;)s[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(s),ny(e,this,o)}}function Rl(e,t){return ed(id(e,t,$l),e+"")}var xy=9007199254740991;function Ll(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=xy}function cr(e){return e!=null&&Ll(e.length)&&!Ml(e)}function _y(e,t,n){if(!Be(n))return!1;var r=typeof t;return(r=="number"?cr(n)&&kl(t,n.length):r=="string"&&t in n)?Ii(n[t],e):!1}function Ey(e){return Rl(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,s&&_y(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var o=n[r];o&&e(t,o,r,a)}return t})}var Oy=Object.prototype;function is(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Oy;return e===n}function wy(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Sy="[object Arguments]";function ad(e){return un(e)&&sr(e)==Sy}var sd=Object.prototype,Ty=sd.hasOwnProperty,$y=sd.propertyIsEnumerable,Fr=ad(function(){return arguments}())?ad:function(e){return un(e)&&Ty.call(e,"callee")&&!$y.call(e,"callee")};function My(){return!1}var od=typeof V=="object"&&V&&!V.nodeType&&V,ld=od&&typeof module=="object"&&module&&!module.nodeType&&module,Cy=ld&&ld.exports===od,cd=Cy?qe.Buffer:void 0,Ay=cd?cd.isBuffer:void 0,zr=Ay||My,ky="[object Arguments]",Ry="[object Array]",Ly="[object Boolean]",Dy="[object Date]",Iy="[object Error]",Ny="[object Function]",Py="[object Map]",Uy="[object Number]",By="[object Object]",Hy="[object RegExp]",Vy="[object Set]",Gy="[object String]",Fy="[object WeakMap]",zy="[object ArrayBuffer]",jy="[object DataView]",Wy="[object Float32Array]",qy="[object Float64Array]",Yy="[object Int8Array]",Zy="[object Int16Array]",Xy="[object Int32Array]",Ky="[object Uint8Array]",Qy="[object Uint8ClampedArray]",Jy="[object Uint16Array]",tb="[object Uint32Array]",Vt={};Vt[Wy]=Vt[qy]=Vt[Yy]=Vt[Zy]=Vt[Xy]=Vt[Ky]=Vt[Qy]=Vt[Jy]=Vt[tb]=!0,Vt[ky]=Vt[Ry]=Vt[zy]=Vt[Ly]=Vt[jy]=Vt[Dy]=Vt[Iy]=Vt[Ny]=Vt[Py]=Vt[Uy]=Vt[By]=Vt[Hy]=Vt[Vy]=Vt[Gy]=Vt[Fy]=!1;function eb(e){return un(e)&&Ll(e.length)&&!!Vt[sr(e)]}function Dl(e){return function(t){return e(t)}}var ud=typeof V=="object"&&V&&!V.nodeType&&V,Ni=ud&&typeof module=="object"&&module&&!module.nodeType&&module,nb=Ni&&Ni.exports===ud,Il=nb&&Wh.process,jr=function(){try{var e=Ni&&Ni.require&&Ni.require("util").types;return e||Il&&Il.binding&&Il.binding("util")}catch{}}(),hd=jr&&jr.isTypedArray,as=hd?Dl(hd):eb,rb=Object.prototype,ib=rb.hasOwnProperty;function dd(e,t){var n=se(e),r=!n&&Fr(e),i=!n&&!r&&zr(e),a=!n&&!r&&!i&&as(e),s=n||r||i||a,o=s?wy(e.length,String):[],l=o.length;for(var c in e)(t||ib.call(e,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||kl(c,l)))&&o.push(c);return o}function pd(e,t){return function(n){return e(t(n))}}var ab=pd(Object.keys,Object),sb=Object.prototype,ob=sb.hasOwnProperty;function fd(e){if(!is(e))return ab(e);var t=[];for(var n in Object(e))ob.call(e,n)&&n!="constructor"&&t.push(n);return t}function Pi(e){return cr(e)?dd(e):fd(e)}function lb(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var cb=Object.prototype,ub=cb.hasOwnProperty;function hb(e){if(!Be(e))return lb(e);var t=is(e),n=[];for(var r in e)r=="constructor"&&(t||!ub.call(e,r))||n.push(r);return n}function Ui(e){return cr(e)?dd(e,!0):hb(e)}var db=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pb=/^\w*$/;function Nl(e,t){if(se(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||es(e)?!0:pb.test(e)||!db.test(e)||t!=null&&e in Object(t)}var Bi=lr(Object,"create");function fb(){this.__data__=Bi?Bi(null):{},this.size=0}function mb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gb="__lodash_hash_undefined__",vb=Object.prototype,yb=vb.hasOwnProperty;function bb(e){var t=this.__data__;if(Bi){var n=t[e];return n===gb?void 0:n}return yb.call(t,e)?t[e]:void 0}var xb=Object.prototype,_b=xb.hasOwnProperty;function Eb(e){var t=this.__data__;return Bi?t[e]!==void 0:_b.call(t,e)}var Ob="__lodash_hash_undefined__";function wb(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Bi&&t===void 0?Ob:t,this}function ur(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ur.prototype.clear=fb,ur.prototype.delete=mb,ur.prototype.get=bb,ur.prototype.has=Eb,ur.prototype.set=wb;function Sb(){this.__data__=[],this.size=0}function ss(e,t){for(var n=e.length;n--;)if(Ii(e[n][0],t))return n;return-1}var Tb=Array.prototype,$b=Tb.splice;function Mb(e){var t=this.__data__,n=ss(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():$b.call(t,n,1),--this.size,!0}function Cb(e){var t=this.__data__,n=ss(t,e);return n<0?void 0:t[n][1]}function Ab(e){return ss(this.__data__,e)>-1}function kb(e,t){var n=this.__data__,r=ss(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function _n(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_n.prototype.clear=Sb,_n.prototype.delete=Mb,_n.prototype.get=Cb,_n.prototype.has=Ab,_n.prototype.set=kb;var Hi=lr(qe,"Map");function Rb(){this.size=0,this.__data__={hash:new ur,map:new(Hi||_n),string:new ur}}function Lb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function os(e,t){var n=e.__data__;return Lb(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Db(e){var t=os(this,e).delete(e);return this.size-=t?1:0,t}function Ib(e){return os(this,e).get(e)}function Nb(e){return os(this,e).has(e)}function Pb(e,t){var n=os(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function En(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}En.prototype.clear=Rb,En.prototype.delete=Db,En.prototype.get=Ib,En.prototype.has=Nb,En.prototype.set=Pb;var Ub="Expected a function";function Pl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ub);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(Pl.Cache||En),n}Pl.Cache=En;var Bb=500;function Hb(e){var t=Pl(e,function(r){return n.size===Bb&&n.clear(),r}),n=t.cache;return t}var Vb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gb=/\\(\\)?/g,Fb=Hb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Vb,function(n,r,i,a){t.push(i?a.replace(Gb,"$1"):r||n)}),t});function Vi(e){return e==null?"":Kh(e)}function ls(e,t){return se(e)?e:Nl(e,t)?[e]:Fb(Vi(e))}var zb=1/0;function Gi(e){if(typeof e=="string"||es(e))return e;var t=e+"";return t=="0"&&1/e==-zb?"-0":t}function Ul(e,t){t=ls(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Gi(t[n++])];return n&&n==r?e:void 0}function Et(e,t,n){var r=e==null?void 0:Ul(e,t);return r===void 0?n:r}function Bl(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var md=Ue?Ue.isConcatSpreadable:void 0;function jb(e){return se(e)||Fr(e)||!!(md&&e&&e[md])}function cs(e,t,n,r,i){var a=-1,s=e.length;for(n||(n=jb),i||(i=[]);++a<s;){var o=e[a];t>0&&n(o)?t>1?cs(o,t-1,n,r,i):Bl(i,o):r||(i[i.length]=o)}return i}var Hl=pd(Object.getPrototypeOf,Object),Wb="[object Object]",qb=Function.prototype,Yb=Object.prototype,gd=qb.toString,Zb=Yb.hasOwnProperty,Xb=gd.call(Object);function vd(e){if(!un(e)||sr(e)!=Wb)return!1;var t=Hl(e);if(t===null)return!0;var n=Zb.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&gd.call(n)==Xb}function Kb(){this.__data__=new _n,this.size=0}function Qb(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Jb(e){return this.__data__.get(e)}function tx(e){return this.__data__.has(e)}var ex=200;function nx(e,t){var n=this.__data__;if(n instanceof _n){var r=n.__data__;if(!Hi||r.length<ex-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new En(r)}return n.set(e,t),this.size=n.size,this}function Ye(e){var t=this.__data__=new _n(e);this.size=t.size}Ye.prototype.clear=Kb,Ye.prototype.delete=Qb,Ye.prototype.get=Jb,Ye.prototype.has=tx,Ye.prototype.set=nx;function rx(e,t){return e&&Gr(t,Pi(t),e)}function ix(e,t){return e&&Gr(t,Ui(t),e)}var yd=typeof V=="object"&&V&&!V.nodeType&&V,bd=yd&&typeof module=="object"&&module&&!module.nodeType&&module,ax=bd&&bd.exports===yd,xd=ax?qe.Buffer:void 0,_d=xd?xd.allocUnsafe:void 0;function Ed(e,t){if(t)return e.slice();var n=e.length,r=_d?_d(n):new e.constructor(n);return e.copy(r),r}function sx(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}function Od(){return[]}var ox=Object.prototype,lx=ox.propertyIsEnumerable,wd=Object.getOwnPropertySymbols,Vl=wd?function(e){return e==null?[]:(e=Object(e),sx(wd(e),function(t){return lx.call(e,t)}))}:Od;function cx(e,t){return Gr(e,Vl(e),t)}var ux=Object.getOwnPropertySymbols,Sd=ux?function(e){for(var t=[];e;)Bl(t,Vl(e)),e=Hl(e);return t}:Od;function hx(e,t){return Gr(e,Sd(e),t)}function Td(e,t,n){var r=t(e);return se(e)?r:Bl(r,n(e))}function Gl(e){return Td(e,Pi,Vl)}function $d(e){return Td(e,Ui,Sd)}var Fl=lr(qe,"DataView"),zl=lr(qe,"Promise"),Wr=lr(qe,"Set"),Md="[object Map]",dx="[object Object]",Cd="[object Promise]",Ad="[object Set]",kd="[object WeakMap]",Rd="[object DataView]",px=or(Fl),fx=or(Hi),mx=or(zl),gx=or(Wr),vx=or(Al),He=sr;(Fl&&He(new Fl(new ArrayBuffer(1)))!=Rd||Hi&&He(new Hi)!=Md||zl&&He(zl.resolve())!=Cd||Wr&&He(new Wr)!=Ad||Al&&He(new Al)!=kd)&&(He=function(e){var t=sr(e),n=t==dx?e.constructor:void 0,r=n?or(n):"";if(r)switch(r){case px:return Rd;case fx:return Md;case mx:return Cd;case gx:return Ad;case vx:return kd}return t});var yx=Object.prototype,bx=yx.hasOwnProperty;function xx(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&bx.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var us=qe.Uint8Array;function jl(e){var t=new e.constructor(e.byteLength);return new us(t).set(new us(e)),t}function _x(e,t){var n=t?jl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Ex=/\w*$/;function Ox(e){var t=new e.constructor(e.source,Ex.exec(e));return t.lastIndex=e.lastIndex,t}var Ld=Ue?Ue.prototype:void 0,Dd=Ld?Ld.valueOf:void 0;function wx(e){return Dd?Object(Dd.call(e)):{}}function Id(e,t){var n=t?jl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Sx="[object Boolean]",Tx="[object Date]",$x="[object Map]",Mx="[object Number]",Cx="[object RegExp]",Ax="[object Set]",kx="[object String]",Rx="[object Symbol]",Lx="[object ArrayBuffer]",Dx="[object DataView]",Ix="[object Float32Array]",Nx="[object Float64Array]",Px="[object Int8Array]",Ux="[object Int16Array]",Bx="[object Int32Array]",Hx="[object Uint8Array]",Vx="[object Uint8ClampedArray]",Gx="[object Uint16Array]",Fx="[object Uint32Array]";function zx(e,t,n){var r=e.constructor;switch(t){case Lx:return jl(e);case Sx:case Tx:return new r(+e);case Dx:return _x(e,n);case Ix:case Nx:case Px:case Ux:case Bx:case Hx:case Vx:case Gx:case Fx:return Id(e,n);case $x:return new r;case Mx:case kx:return new r(e);case Cx:return Ox(e);case Ax:return new r;case Rx:return wx(e)}}function Nd(e){return typeof e.constructor=="function"&&!is(e)?ey(Hl(e)):{}}var jx="[object Map]";function Wx(e){return un(e)&&He(e)==jx}var Pd=jr&&jr.isMap,qx=Pd?Dl(Pd):Wx,Yx="[object Set]";function Zx(e){return un(e)&&He(e)==Yx}var Ud=jr&&jr.isSet,Xx=Ud?Dl(Ud):Zx,Kx=1,Qx=2,Jx=4,Bd="[object Arguments]",t_="[object Array]",e_="[object Boolean]",n_="[object Date]",r_="[object Error]",Hd="[object Function]",i_="[object GeneratorFunction]",a_="[object Map]",s_="[object Number]",Vd="[object Object]",o_="[object RegExp]",l_="[object Set]",c_="[object String]",u_="[object Symbol]",h_="[object WeakMap]",d_="[object ArrayBuffer]",p_="[object DataView]",f_="[object Float32Array]",m_="[object Float64Array]",g_="[object Int8Array]",v_="[object Int16Array]",y_="[object Int32Array]",b_="[object Uint8Array]",x_="[object Uint8ClampedArray]",__="[object Uint16Array]",E_="[object Uint32Array]",Bt={};Bt[Bd]=Bt[t_]=Bt[d_]=Bt[p_]=Bt[e_]=Bt[n_]=Bt[f_]=Bt[m_]=Bt[g_]=Bt[v_]=Bt[y_]=Bt[a_]=Bt[s_]=Bt[Vd]=Bt[o_]=Bt[l_]=Bt[c_]=Bt[u_]=Bt[b_]=Bt[x_]=Bt[__]=Bt[E_]=!0,Bt[r_]=Bt[Hd]=Bt[h_]=!1;function Fi(e,t,n,r,i,a){var s,o=t&Kx,l=t&Qx,c=t&Jx;if(n&&(s=i?n(e,r,i,a):n(e)),s!==void 0)return s;if(!Be(e))return e;var u=se(e);if(u){if(s=xx(e),!o)return td(e,s)}else{var d=He(e),h=d==Hd||d==i_;if(zr(e))return Ed(e,o);if(d==Vd||d==Bd||h&&!i){if(s=l||h?{}:Nd(e),!o)return l?hx(e,ix(s,e)):cx(e,rx(s,e))}else{if(!Bt[d])return i?e:{};s=zx(e,d,o)}}a||(a=new Ye);var p=a.get(e);if(p)return p;a.set(e,s),Xx(e)?e.forEach(function(m){s.add(Fi(m,t,n,m,e,a))}):qx(e)&&e.forEach(function(m,y){s.set(y,Fi(m,t,n,y,e,a))});var f=c?l?$d:Gl:l?Ui:Pi,v=u?void 0:f(e);return uy(v||e,function(m,y){v&&(y=m,m=e[y]),nd(s,y,Fi(m,t,n,y,e,a))}),s}var O_=1,w_=4;function On(e){return Fi(e,O_|w_)}var S_="__lodash_hash_undefined__";function T_(e){return this.__data__.set(e,S_),this}function $_(e){return this.__data__.has(e)}function zi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new En;++t<n;)this.add(e[t])}zi.prototype.add=zi.prototype.push=T_,zi.prototype.has=$_;function Gd(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Fd(e,t){return e.has(t)}var M_=1,C_=2;function zd(e,t,n,r,i,a){var s=n&M_,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=n&C_?new zi:void 0;for(a.set(e,t),a.set(t,e);++d<o;){var f=e[d],v=t[d];if(r)var m=s?r(v,f,d,t,e,a):r(f,v,d,e,t,a);if(m!==void 0){if(m)continue;h=!1;break}if(p){if(!Gd(t,function(y,g){if(!Fd(p,g)&&(f===y||i(f,y,n,r,a)))return p.push(g)})){h=!1;break}}else if(!(f===v||i(f,v,n,r,a))){h=!1;break}}return a.delete(e),a.delete(t),h}function A_(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Wl(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var k_=1,R_=2,L_="[object Boolean]",D_="[object Date]",I_="[object Error]",N_="[object Map]",P_="[object Number]",U_="[object RegExp]",B_="[object Set]",H_="[object String]",V_="[object Symbol]",G_="[object ArrayBuffer]",F_="[object DataView]",jd=Ue?Ue.prototype:void 0,ql=jd?jd.valueOf:void 0;function z_(e,t,n,r,i,a,s){switch(n){case F_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case G_:return!(e.byteLength!=t.byteLength||!a(new us(e),new us(t)));case L_:case D_:case P_:return Ii(+e,+t);case I_:return e.name==t.name&&e.message==t.message;case U_:case H_:return e==t+"";case N_:var o=A_;case B_:var l=r&k_;if(o||(o=Wl),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=R_,s.set(e,t);var u=zd(o(e),o(t),r,i,a,s);return s.delete(e),u;case V_:if(ql)return ql.call(e)==ql.call(t)}return!1}var j_=1,W_=Object.prototype,q_=W_.hasOwnProperty;function Y_(e,t,n,r,i,a){var s=n&j_,o=Gl(e),l=o.length,c=Gl(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var h=o[d];if(!(s?h in t:q_.call(t,h)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var v=!0;a.set(e,t),a.set(t,e);for(var m=s;++d<l;){h=o[d];var y=e[h],g=t[h];if(r)var x=s?r(g,y,h,t,e,a):r(y,g,h,e,t,a);if(!(x===void 0?y===g||i(y,g,n,r,a):x)){v=!1;break}m||(m=h=="constructor")}if(v&&!m){var O=e.constructor,E=t.constructor;O!=E&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof E=="function"&&E instanceof E)&&(v=!1)}return a.delete(e),a.delete(t),v}var Z_=1,Wd="[object Arguments]",qd="[object Array]",hs="[object Object]",X_=Object.prototype,Yd=X_.hasOwnProperty;function K_(e,t,n,r,i,a){var s=se(e),o=se(t),l=s?qd:He(e),c=o?qd:He(t);l=l==Wd?hs:l,c=c==Wd?hs:c;var u=l==hs,d=c==hs,h=l==c;if(h&&zr(e)){if(!zr(t))return!1;s=!0,u=!1}if(h&&!u)return a||(a=new Ye),s||as(e)?zd(e,t,n,r,i,a):z_(e,t,l,n,r,i,a);if(!(n&Z_)){var p=u&&Yd.call(e,"__wrapped__"),f=d&&Yd.call(t,"__wrapped__");if(p||f){var v=p?e.value():e,m=f?t.value():t;return a||(a=new Ye),i(v,m,n,r,a)}}return h?(a||(a=new Ye),Y_(e,t,n,r,i,a)):!1}function ds(e,t,n,r,i){return e===t?!0:e==null||t==null||!un(e)&&!un(t)?e!==e&&t!==t:K_(e,t,n,r,ds,i)}var Q_=1,J_=2;function tE(e,t,n,r){var i=n.length,a=i;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var o=s[0],l=e[o],c=s[1];if(s[2]){if(l===void 0&&!(o in e))return!1}else{var u=new Ye,d;if(!(d===void 0?ds(c,l,Q_|J_,r,u):d))return!1}}return!0}function Zd(e){return e===e&&!Be(e)}function eE(e){for(var t=Pi(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Zd(i)]}return t}function Xd(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function nE(e){var t=eE(e);return t.length==1&&t[0][2]?Xd(t[0][0],t[0][1]):function(n){return n===e||tE(n,e,t)}}function rE(e,t){return e!=null&&t in Object(e)}function iE(e,t,n){t=ls(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var s=Gi(t[r]);if(!(a=e!=null&&n(e,s)))break;e=e[s]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&Ll(i)&&kl(s,i)&&(se(e)||Fr(e)))}function aE(e,t){return e!=null&&iE(e,t,rE)}var sE=1,oE=2;function lE(e,t){return Nl(e)&&Zd(t)?Xd(Gi(e),t):function(n){var r=Et(n,e);return r===void 0&&r===t?aE(n,e):ds(t,r,sE|oE)}}function cE(e){return function(t){return t==null?void 0:t[e]}}function uE(e){return function(t){return Ul(t,e)}}function hE(e){return Nl(e)?cE(Gi(e)):uE(e)}function ps(e){return typeof e=="function"?e:e==null?$l:typeof e=="object"?se(e)?lE(e[0],e[1]):nE(e):hE(e)}function dE(e){return function(t,n,r){for(var i=-1,a=Object(t),s=r(t),o=s.length;o--;){var l=s[++i];if(n(a[l],l,a)===!1)break}return t}}var Kd=dE();function Yl(e,t,n){(n!==void 0&&!Ii(e[t],n)||n===void 0&&!(t in e))&&rs(e,t,n)}function Zl(e){return un(e)&&cr(e)}function Xl(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function pE(e){return Gr(e,Ui(e))}function fE(e,t,n,r,i,a,s){var o=Xl(e,n),l=Xl(t,n),c=s.get(l);if(c){Yl(e,n,c);return}var u=a?a(o,l,n+"",e,t,s):void 0,d=u===void 0;if(d){var h=se(l),p=!h&&zr(l),f=!h&&!p&&as(l);u=l,h||p||f?se(o)?u=o:Zl(o)?u=td(o):p?(d=!1,u=Ed(l,!0)):f?(d=!1,u=Id(l,!0)):u=[]:vd(l)||Fr(l)?(u=o,Fr(o)?u=pE(o):(!Be(o)||Ml(o))&&(u=Nd(l))):d=!1}d&&(s.set(l,u),i(u,l,r,a,s),s.delete(l)),Yl(e,n,u)}function Qd(e,t,n,r,i){e!==t&&Kd(t,function(a,s){if(i||(i=new Ye),Be(a))fE(e,t,s,n,Qd,r,i);else{var o=r?r(Xl(e,s),a,s+"",e,t,i):void 0;o===void 0&&(o=a),Yl(e,s,o)}},Ui)}function Jd(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var mE="[object Map]",gE="[object Set]",vE=Object.prototype,yE=vE.hasOwnProperty;function Ze(e){if(e==null)return!0;if(cr(e)&&(se(e)||typeof e=="string"||typeof e.splice=="function"||zr(e)||as(e)||Fr(e)))return!e.length;var t=He(e);if(t==mE||t==gE)return!e.size;if(is(e))return!fd(e).length;for(var n in e)if(yE.call(e,n))return!1;return!0}var lt=Ey(function(e,t,n){Qd(e,t,n)}),bE=1/0,xE=Wr&&1/Wl(new Wr([,-0]))[1]==bE?function(e){return new Wr(e)}:ry,_E=200;function tp(e,t,n){var r=-1,i=my,a=e.length,s=!0,o=[],l=o;if(a>=_E){var c=t?null:xE(e);if(c)return Wl(c);s=!1,i=Fd,l=new zi}else l=t?[]:o;t:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=u!==0?u:0,s&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue t;t&&l.push(d),o.push(u)}else i(l,d,n)||(l!==o&&l.push(d),o.push(u))}return o}var EE=Rl(function(e){var t=Jd(e);return Zl(t)&&(t=void 0),tp(cs(e,1,Zl,!0),ps(t))});function ji(e){return e&&e.length?tp(e):[]}function hr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function OE(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Kl(e){let t,n,r;e.length!==2?(t=hr,n=(o,l)=>hr(e(o),l),r=(o,l)=>e(o)-l):(t=e===hr||e===OE?e:wE,n=e,r=e);function i(o,l,c=0,u=o.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(o[d],l)<0?c=d+1:u=d}while(c<u)}return c}function a(o,l,c=0,u=o.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(o[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function s(o,l,c=0,u=o.length){const d=i(o,l,c,u-1);return d>c&&r(o[d-1],l)>-r(o[d],l)?d-1:d}return{left:i,center:s,right:a}}function wE(){return 0}function SE(e){return e===null?NaN:+e}function*TE(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const $E=Kl(hr),Ql=$E.right;Kl(SE).center;function Xe(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}let ep=class extends Map{constructor(t,n=AE){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(np(this,t))}has(t){return super.has(np(this,t))}set(t,n){return super.set(ME(this,t),n)}delete(t){return super.delete(CE(this,t))}};function np({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ME({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function CE({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function AE(e){return e!==null&&typeof e=="object"?e.valueOf():e}const kE=Math.sqrt(50),RE=Math.sqrt(10),LE=Math.sqrt(2);function fs(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),s=a>=kE?10:a>=RE?5:a>=LE?2:1;let o,l,c;return i<0?(c=Math.pow(10,-i)/s,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*s,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=n&&n<2?fs(e,t,n*2):[o,l,c]}function ms(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,s]=r?fs(t,e,n):fs(e,t,n);if(!(a>=i))return[];const o=a-i+1,l=new Array(o);if(r)if(s<0)for(let c=0;c<o;++c)l[c]=(a-c)/-s;else for(let c=0;c<o;++c)l[c]=(a-c)*s;else if(s<0)for(let c=0;c<o;++c)l[c]=(i+c)/-s;else for(let c=0;c<o;++c)l[c]=(i+c)*s;return l}function qr(e,t,n){return t=+t,e=+e,n=+n,fs(e,t,n)[2]}function Jl(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?qr(t,e,n):qr(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function dr(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Fn(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}var DE={value:()=>{}};function tc(){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 gs(n)}function gs(e){this._=e}function IE(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}})}gs.prototype=tc.prototype={constructor:gs,on:function(e,t){var n=this._,r=IE(e+"",n),i,a=-1,s=r.length;if(arguments.length<2){for(;++a<s;)if((i=(e=r[a]).type)&&(i=NE(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<s;)if(i=(e=r[a]).type)n[i]=rp(n[i],e.name,t);else if(t==null)for(i in n)n[i]=rp(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 gs(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 NE(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function rp(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=DE,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var ec="http://www.w3.org/1999/xhtml";const ip={svg:"http://www.w3.org/2000/svg",xhtml:ec,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function vs(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),ip.hasOwnProperty(t)?{space:ip[t],local:e}:e}function PE(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ec&&t.documentElement.namespaceURI===ec?t.createElement(e):t.createElementNS(n,e)}}function UE(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ap(e){var t=vs(e);return(t.local?UE:PE)(t)}function BE(){}function nc(e){return e==null?BE:function(){return this.querySelector(e)}}function HE(e){typeof e!="function"&&(e=nc(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],s=a.length,o=r[i]=new Array(s),l,c,u=0;u<s;++u)(l=a[u])&&(c=e.call(l,l.__data__,u,a))&&("__data__"in l&&(c.__data__=l.__data__),o[u]=c);return new $e(r,this._parents)}function VE(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function GE(){return[]}function sp(e){return e==null?GE:function(){return this.querySelectorAll(e)}}function FE(e){return function(){return VE(e.apply(this,arguments))}}function zE(e){typeof e=="function"?e=FE(e):e=sp(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var s=t[a],o=s.length,l,c=0;c<o;++c)(l=s[c])&&(r.push(e.call(l,l.__data__,c,s)),i.push(l));return new $e(r,i)}function op(e){return function(){return this.matches(e)}}function lp(e){return function(t){return t.matches(e)}}var jE=Array.prototype.find;function WE(e){return function(){return jE.call(this.children,e)}}function qE(){return this.firstElementChild}function YE(e){return this.select(e==null?qE:WE(typeof e=="function"?e:lp(e)))}var ZE=Array.prototype.filter;function XE(){return Array.from(this.children)}function KE(e){return function(){return ZE.call(this.children,e)}}function QE(e){return this.selectAll(e==null?XE:KE(typeof e=="function"?e:lp(e)))}function JE(e){typeof e!="function"&&(e=op(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],s=a.length,o=r[i]=[],l,c=0;c<s;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&o.push(l);return new $e(r,this._parents)}function cp(e){return new Array(e.length)}function tO(){return new $e(this._enter||this._groups.map(cp),this._parents)}function ys(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ys.prototype={constructor:ys,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 eO(e){return function(){return e}}function nO(e,t,n,r,i,a){for(var s=0,o,l=t.length,c=a.length;s<c;++s)(o=t[s])?(o.__data__=a[s],r[s]=o):n[s]=new ys(e,a[s]);for(;s<l;++s)(o=t[s])&&(i[s]=o)}function rO(e,t,n,r,i,a,s){var o,l,c=new Map,u=t.length,d=a.length,h=new Array(u),p;for(o=0;o<u;++o)(l=t[o])&&(h[o]=p=s.call(l,l.__data__,o,t)+"",c.has(p)?i[o]=l:c.set(p,l));for(o=0;o<d;++o)p=s.call(e,a[o],o,a)+"",(l=c.get(p))?(r[o]=l,l.__data__=a[o],c.delete(p)):n[o]=new ys(e,a[o]);for(o=0;o<u;++o)(l=t[o])&&c.get(h[o])===l&&(i[o]=l)}function iO(e){return e.__data__}function aO(e,t){if(!arguments.length)return Array.from(this,iO);var n=t?rO:nO,r=this._parents,i=this._groups;typeof e!="function"&&(e=eO(e));for(var a=i.length,s=new Array(a),o=new Array(a),l=new Array(a),c=0;c<a;++c){var u=r[c],d=i[c],h=d.length,p=sO(e.call(u,u&&u.__data__,c,r)),f=p.length,v=o[c]=new Array(f),m=s[c]=new Array(f),y=l[c]=new Array(h);n(u,d,v,m,y,p,t);for(var g=0,x=0,O,E;g<f;++g)if(O=v[g]){for(g>=x&&(x=g+1);!(E=m[x])&&++x<f;);O._next=E||null}}return s=new $e(s,r),s._enter=o,s._exit=l,s}function sO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function oO(){return new $e(this._exit||this._groups.map(cp),this._parents)}function lO(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function cO(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,s=Math.min(i,a),o=new Array(i),l=0;l<s;++l)for(var c=n[l],u=r[l],d=c.length,h=o[l]=new Array(d),p,f=0;f<d;++f)(p=c[f]||u[f])&&(h[f]=p);for(;l<i;++l)o[l]=n[l];return new $e(o,this._parents)}function uO(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],s;--i>=0;)(s=r[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function hO(e){e||(e=dO);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 s=n[a],o=s.length,l=i[a]=new Array(o),c,u=0;u<o;++u)(c=s[u])&&(l[u]=c);l.sort(t)}return new $e(i,this._parents).order()}function dO(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function pO(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function fO(){return Array.from(this)}function mO(){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 s=r[i];if(s)return s}return null}function gO(){let e=0;for(const t of this)++e;return e}function vO(){return!this.node()}function yO(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,s=i.length,o;a<s;++a)(o=i[a])&&e.call(o,o.__data__,a,i);return this}function bO(e){return function(){this.removeAttribute(e)}}function xO(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _O(e,t){return function(){this.setAttribute(e,t)}}function EO(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function OO(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function wO(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 SO(e,t){var n=vs(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?xO:bO:typeof t=="function"?n.local?wO:OO:n.local?EO:_O)(n,t))}function up(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function TO(e){return function(){this.style.removeProperty(e)}}function $O(e,t,n){return function(){this.style.setProperty(e,t,n)}}function MO(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function CO(e,t,n){return arguments.length>1?this.each((t==null?TO:typeof t=="function"?MO:$O)(e,t,n??"")):Yr(this.node(),e)}function Yr(e,t){return e.style.getPropertyValue(t)||up(e).getComputedStyle(e,null).getPropertyValue(t)}function AO(e){return function(){delete this[e]}}function kO(e,t){return function(){this[e]=t}}function RO(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function LO(e,t){return arguments.length>1?this.each((t==null?AO:typeof t=="function"?RO:kO)(e,t)):this.node()[e]}function hp(e){return e.trim().split(/^|\s+/)}function rc(e){return e.classList||new dp(e)}function dp(e){this._node=e,this._names=hp(e.getAttribute("class")||"")}dp.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 pp(e,t){for(var n=rc(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function fp(e,t){for(var n=rc(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function DO(e){return function(){pp(this,e)}}function IO(e){return function(){fp(this,e)}}function NO(e,t){return function(){(t.apply(this,arguments)?pp:fp)(this,e)}}function PO(e,t){var n=hp(e+"");if(arguments.length<2){for(var r=rc(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?NO:t?DO:IO)(n,t))}function UO(){this.textContent=""}function BO(e){return function(){this.textContent=e}}function HO(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function VO(e){return arguments.length?this.each(e==null?UO:(typeof e=="function"?HO:BO)(e)):this.node().textContent}function GO(){this.innerHTML=""}function FO(e){return function(){this.innerHTML=e}}function zO(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function jO(e){return arguments.length?this.each(e==null?GO:(typeof e=="function"?zO:FO)(e)):this.node().innerHTML}function WO(){this.nextSibling&&this.parentNode.appendChild(this)}function qO(){return this.each(WO)}function YO(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ZO(){return this.each(YO)}function XO(e){var t=typeof e=="function"?e:ap(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function KO(){return null}function QO(e,t){var n=typeof e=="function"?e:ap(e),r=t==null?KO:typeof t=="function"?t:nc(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function JO(){var e=this.parentNode;e&&e.removeChild(this)}function tw(){return this.each(JO)}function ew(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nw(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function rw(e){return this.select(e?nw:ew)}function iw(e){return arguments.length?this.property("__data__",e):this.node().__data__}function aw(e){return function(t){e.call(this,t,this.__data__)}}function sw(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 ow(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 lw(e,t,n){return function(){var r=this.__on,i,a=aw(t);if(r){for(var s=0,o=r.length;s<o;++s)if((i=r[s]).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 cw(e,t,n){var r=sw(e+""),i,a=r.length,s;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,c=o.length,u;l<c;++l)for(i=0,u=o[l];i<a;++i)if((s=r[i]).type===u.type&&s.name===u.name)return u.value}return}for(o=t?lw:ow,i=0;i<a;++i)this.each(o(r[i],t,n));return this}function mp(e,t,n){var r=up(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 uw(e,t){return function(){return mp(this,e,t)}}function hw(e,t){return function(){return mp(this,e,t.apply(this,arguments))}}function dw(e,t){return this.each((typeof t=="function"?hw:uw)(e,t))}function*pw(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,s;i<a;++i)(s=r[i])&&(yield s)}var gp=[null];function $e(e,t){this._groups=e,this._parents=t}function Wi(){return new $e([[document.documentElement]],gp)}function fw(){return this}$e.prototype=Wi.prototype={constructor:$e,select:HE,selectAll:zE,selectChild:YE,selectChildren:QE,filter:JE,data:aO,enter:tO,exit:oO,join:lO,merge:cO,selection:fw,order:uO,sort:hO,call:pO,nodes:fO,node:mO,size:gO,empty:vO,each:yO,attr:SO,style:CO,property:LO,classed:PO,text:VO,html:jO,raise:qO,lower:ZO,append:XO,insert:QO,remove:tw,clone:rw,datum:iw,on:cw,dispatch:dw,[Symbol.iterator]:pw};function mw(e){let t;for(;t=e.sourceEvent;)e=t;return e}function pr(e,t){if(e=mw(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 ic(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function vp(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qi(){}var Yi=.7,bs=1/Yi,Zr="\\s*([+-]?\\d+)\\s*",Zi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",hn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gw=/^#([0-9a-f]{3,8})$/,vw=new RegExp(`^rgb\\(${Zr},${Zr},${Zr}\\)$`),yw=new RegExp(`^rgb\\(${hn},${hn},${hn}\\)$`),bw=new RegExp(`^rgba\\(${Zr},${Zr},${Zr},${Zi}\\)$`),xw=new RegExp(`^rgba\\(${hn},${hn},${hn},${Zi}\\)$`),_w=new RegExp(`^hsl\\(${Zi},${hn},${hn}\\)$`),Ew=new RegExp(`^hsla\\(${Zi},${hn},${hn},${Zi}\\)$`),yp={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};ic(qi,wn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:bp,formatHex:bp,formatHex8:Ow,formatHsl:ww,formatRgb:xp,toString:xp});function bp(){return this.rgb().formatHex()}function Ow(){return this.rgb().formatHex8()}function ww(){return Sp(this).formatHsl()}function xp(){return this.rgb().formatRgb()}function wn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=gw.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?_p(t):n===3?new xe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?xs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?xs(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=vw.exec(e))?new xe(t[1],t[2],t[3],1):(t=yw.exec(e))?new xe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bw.exec(e))?xs(t[1],t[2],t[3],t[4]):(t=xw.exec(e))?xs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_w.exec(e))?wp(t[1],t[2]/100,t[3]/100,1):(t=Ew.exec(e))?wp(t[1],t[2]/100,t[3]/100,t[4]):yp.hasOwnProperty(e)?_p(yp[e]):e==="transparent"?new xe(NaN,NaN,NaN,0):null}function _p(e){return new xe(e>>16&255,e>>8&255,e&255,1)}function xs(e,t,n,r){return r<=0&&(e=t=n=NaN),new xe(e,t,n,r)}function Sw(e){return e instanceof qi||(e=wn(e)),e?(e=e.rgb(),new xe(e.r,e.g,e.b,e.opacity)):new xe}function ac(e,t,n,r){return arguments.length===1?Sw(e):new xe(e,t,n,r??1)}function xe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ic(xe,ac,vp(qi,{brighter(e){return e=e==null?bs:Math.pow(bs,e),new xe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Yi:Math.pow(Yi,e),new xe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xe(fr(this.r),fr(this.g),fr(this.b),_s(this.opacity))},displayable(){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:Ep,formatHex:Ep,formatHex8:Tw,formatRgb:Op,toString:Op}));function Ep(){return`#${mr(this.r)}${mr(this.g)}${mr(this.b)}`}function Tw(){return`#${mr(this.r)}${mr(this.g)}${mr(this.b)}${mr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Op(){const e=_s(this.opacity);return`${e===1?"rgb(":"rgba("}${fr(this.r)}, ${fr(this.g)}, ${fr(this.b)}${e===1?")":`, ${e})`}`}function _s(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mr(e){return e=fr(e),(e<16?"0":"")+e.toString(16)}function wp(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 Sp(e){if(e instanceof Ke)return new Ke(e.h,e.s,e.l,e.opacity);if(e instanceof qi||(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),s=NaN,o=a-i,l=(a+i)/2;return o?(t===a?s=(n-r)/o+(n<r)*6:n===a?s=(r-t)/o+2:s=(t-n)/o+4,o/=l<.5?a+i:2-a-i,s*=60):o=l>0&&l<1?0:s,new Ke(s,o,l,e.opacity)}function sc(e,t,n,r){return arguments.length===1?Sp(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}ic(Ke,sc,vp(qi,{brighter(e){return e=e==null?bs:Math.pow(bs,e),new Ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yi:Math.pow(Yi,e),new Ke(this.h,this.s,this.l*e,this.opacity)},rgb(){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 xe(oc(e>=240?e-240:e+120,i,r),oc(e,i,r),oc(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ke(Tp(this.h),Es(this.s),Es(this.l),_s(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=_s(this.opacity);return`${e===1?"hsl(":"hsla("}${Tp(this.h)}, ${Es(this.s)*100}%, ${Es(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Tp(e){return e=(e||0)%360,e<0?e+360:e}function Es(e){return Math.max(0,Math.min(1,e||0))}function oc(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 lc=e=>()=>e;function $w(e,t){return function(n){return e+n*t}}function Mw(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 Cw(e){return(e=+e)==1?$p:function(t,n){return n-t?Mw(t,n,e):lc(isNaN(t)?n:t)}}function $p(e,t){var n=t-e;return n?$w(e,n):lc(isNaN(e)?t:e)}const Os=function e(t){var n=Cw(t);function r(i,a){var s=n((i=ac(i)).r,(a=ac(a)).r),o=n(i.g,a.g),l=n(i.b,a.b),c=$p(i.opacity,a.opacity);return function(u){return i.r=s(u),i.g=o(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function Aw(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function kw(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Rw(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),s;for(s=0;s<r;++s)i[s]=Xi(e[s],t[s]);for(;s<n;++s)a[s]=t[s];return function(o){for(s=0;s<r;++s)a[s]=i[s](o);return a}}function Lw(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Me(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Dw(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Xi(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var cc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,uc=new RegExp(cc.source,"g");function Iw(e){return function(){return e}}function Nw(e){return function(t){return e(t)+""}}function Mp(e,t){var n=cc.lastIndex=uc.lastIndex=0,r,i,a,s=-1,o=[],l=[];for(e=e+"",t=t+"";(r=cc.exec(e))&&(i=uc.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),o[s]?o[s]+=a:o[++s]=a),(r=r[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:Me(r,i)})),n=uc.lastIndex;return n<t.length&&(a=t.slice(n),o[s]?o[s]+=a:o[++s]=a),o.length<2?l[0]?Nw(l[0].x):Iw(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)o[(d=l[u]).i]=d.x(c);return o.join("")})}function Xi(e,t){var n=typeof t,r;return t==null||n==="boolean"?lc(t):(n==="number"?Me:n==="string"?(r=wn(t))?(t=r,Os):Mp:t instanceof wn?Os:t instanceof Date?Lw:kw(t)?Aw:Array.isArray(t)?Rw:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Dw:Me)(e,t)}function Cp(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Ap=180/Math.PI,kp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Rp(e,t,n,r,i,a){var s,o,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,l/=o),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Ap,skewX:Math.atan(l)*Ap,scaleX:s,scaleY:o}}var ws;function Pw(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?kp:Rp(t.a,t.b,t.c,t.d,t.e,t.f)}function Uw(e){return e==null||(ws||(ws=document.createElementNS("http://www.w3.org/2000/svg","g")),ws.setAttribute("transform",e),!(e=ws.transform.baseVal.consolidate()))?kp:(e=e.matrix,Rp(e.a,e.b,e.c,e.d,e.e,e.f))}function Lp(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function a(c,u,d,h,p,f){if(c!==d||u!==h){var v=p.push("translate(",null,t,null,n);f.push({i:v-4,x:Me(c,d)},{i:v-2,x:Me(u,h)})}else(d||h)&&p.push("translate("+d+t+h+n)}function s(c,u,d,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:Me(c,u)})):u&&d.push(i(d)+"rotate("+u+r)}function o(c,u,d,h){c!==u?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:Me(c,u)}):u&&d.push(i(d)+"skewX("+u+r)}function l(c,u,d,h,p,f){if(c!==d||u!==h){var v=p.push(i(p)+"scale(",null,",",null,")");f.push({i:v-4,x:Me(c,d)},{i:v-2,x:Me(u,h)})}else(d!==1||h!==1)&&p.push(i(p)+"scale("+d+","+h+")")}return function(c,u){var d=[],h=[];return c=e(c),u=e(u),a(c.translateX,c.translateY,u.translateX,u.translateY,d,h),s(c.rotate,u.rotate,d,h),o(c.skewX,u.skewX,d,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(p){for(var f=-1,v=h.length,m;++f<v;)d[(m=h[f]).i]=m.x(p);return d.join("")}}}var Bw=Lp(Pw,"px, ","px)","deg)"),Hw=Lp(Uw,", ",")",")"),Xr=0,Ki=0,Qi=0,Dp=1e3,Ss,Ji,Ts=0,gr=0,$s=0,ta=typeof performance=="object"&&performance.now?performance:Date,Ip=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function hc(){return gr||(Ip(Vw),gr=ta.now()+$s)}function Vw(){gr=0}function Ms(){this._call=this._time=this._next=null}Ms.prototype=Np.prototype={constructor:Ms,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?hc():+n)+(t==null?0:+t),!this._next&&Ji!==this&&(Ji?Ji._next=this:Ss=this,Ji=this),this._call=e,this._time=n,dc()},stop:function(){this._call&&(this._call=null,this._time=1/0,dc())}};function Np(e,t,n){var r=new Ms;return r.restart(e,t,n),r}function Gw(){hc(),++Xr;for(var e=Ss,t;e;)(t=gr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Xr}function Pp(){gr=(Ts=ta.now())+$s,Xr=Ki=0;try{Gw()}finally{Xr=0,zw(),gr=0}}function Fw(){var e=ta.now(),t=e-Ts;t>Dp&&($s-=t,Ts=e)}function zw(){for(var e,t=Ss,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:Ss=n);Ji=e,dc(r)}function dc(e){if(!Xr){Ki&&(Ki=clearTimeout(Ki));var t=e-gr;t>24?(e<1/0&&(Ki=setTimeout(Pp,e-ta.now()-$s)),Qi&&(Qi=clearInterval(Qi))):(Qi||(Ts=ta.now(),Qi=setInterval(Fw,Dp)),Xr=1,Ip(Pp))}}function Up(e,t,n){var r=new Ms;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var jw=tc("start","end","cancel","interrupt"),Ww=[],Bp=0,Hp=1,pc=2,Cs=3,Vp=4,fc=5,As=6;function ks(e,t,n,r,i,a){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;qw(e,n,{name:t,index:r,group:i,on:jw,tween:Ww,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Bp})}function mc(e,t){var n=Qe(e,t);if(n.state>Bp)throw new Error("too late; already scheduled");return n}function dn(e,t){var n=Qe(e,t);if(n.state>Cs)throw new Error("too late; already running");return n}function Qe(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function qw(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Np(a,0,n.time);function a(c){n.state=Hp,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var u,d,h,p;if(n.state!==Hp)return l();for(u in r)if(p=r[u],p.name===n.name){if(p.state===Cs)return Up(s);p.state===Vp?(p.state=As,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete r[u]):+u<t&&(p.state=As,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete r[u])}if(Up(function(){n.state===Cs&&(n.state=Vp,n.timer.restart(o,n.delay,n.time),o(c))}),n.state=pc,n.on.call("start",e,e.__data__,n.index,n.group),n.state===pc){for(n.state=Cs,i=new Array(h=n.tween.length),u=0,d=-1;u<h;++u)(p=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=p);i.length=d+1}}function o(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=fc,1),d=-1,h=i.length;++d<h;)i[d].call(e,u);n.state===fc&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=As,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function gc(e,t){var n=e.__transition,r,i,a=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){a=!1;continue}i=r.state>pc&&r.state<fc,r.state=As,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}a&&delete e.__transition}}function Yw(e){return this.each(function(){gc(this,e)})}function Zw(e,t){var n,r;return function(){var i=dn(this,e),a=i.tween;if(a!==n){r=n=a;for(var s=0,o=r.length;s<o;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function Xw(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=dn(this,e),s=a.tween;if(s!==r){i=(r=s).slice();for(var o={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=o;break}l===c&&i.push(o)}a.tween=i}}function Kw(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Qe(this.node(),n).tween,i=0,a=r.length,s;i<a;++i)if((s=r[i]).name===e)return s.value;return null}return this.each((t==null?Zw:Xw)(n,e,t))}function vc(e,t,n){var r=e._id;return e.each(function(){var i=dn(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Qe(i,r).value[t]}}function Gp(e,t){var n;return(typeof t=="number"?Me:t instanceof wn?Os:(n=wn(t))?(t=n,Os):Mp)(e,t)}function Qw(e){return function(){this.removeAttribute(e)}}function Jw(e){return function(){this.removeAttributeNS(e.space,e.local)}}function tS(e,t,n){var r,i=n+"",a;return function(){var s=this.getAttribute(e);return s===i?null:s===r?a:a=t(r=s,n)}}function eS(e,t,n){var r,i=n+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===r?a:a=t(r=s,n)}}function nS(e,t,n){var r,i,a;return function(){var s,o=n(this),l;return o==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=o+"",s===l?null:s===r&&l===i?a:(i=l,a=t(r=s,o)))}}function rS(e,t,n){var r,i,a;return function(){var s,o=n(this),l;return o==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=o+"",s===l?null:s===r&&l===i?a:(i=l,a=t(r=s,o)))}}function iS(e,t){var n=vs(e),r=n==="transform"?Hw:Gp;return this.attrTween(e,typeof t=="function"?(n.local?rS:nS)(n,r,vc(this,"attr."+e,t)):t==null?(n.local?Jw:Qw)(n):(n.local?eS:tS)(n,r,t))}function aS(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function sS(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function oS(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&sS(e,a)),n}return i._value=t,i}function lS(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&aS(e,a)),n}return i._value=t,i}function cS(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=vs(e);return this.tween(n,(r.local?oS:lS)(r,t))}function uS(e,t){return function(){mc(this,e).delay=+t.apply(this,arguments)}}function hS(e,t){return t=+t,function(){mc(this,e).delay=t}}function dS(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?uS:hS)(t,e)):Qe(this.node(),t).delay}function pS(e,t){return function(){dn(this,e).duration=+t.apply(this,arguments)}}function fS(e,t){return t=+t,function(){dn(this,e).duration=t}}function mS(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?pS:fS)(t,e)):Qe(this.node(),t).duration}function gS(e,t){if(typeof t!="function")throw new Error;return function(){dn(this,e).ease=t}}function vS(e){var t=this._id;return arguments.length?this.each(gS(t,e)):Qe(this.node(),t).ease}function yS(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;dn(this,e).ease=n}}function bS(e){if(typeof e!="function")throw new Error;return this.each(yS(this._id,e))}function xS(e){typeof e!="function"&&(e=op(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],s=a.length,o=r[i]=[],l,c=0;c<s;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&o.push(l);return new Sn(r,this._parents,this._name,this._id)}function _S(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),s=new Array(r),o=0;o<a;++o)for(var l=t[o],c=n[o],u=l.length,d=s[o]=new Array(u),h,p=0;p<u;++p)(h=l[p]||c[p])&&(d[p]=h);for(;o<r;++o)s[o]=t[o];return new Sn(s,this._parents,this._name,this._id)}function ES(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function OS(e,t,n){var r,i,a=ES(t)?mc:dn;return function(){var s=a(this,e),o=s.on;o!==r&&(i=(r=o).copy()).on(t,n),s.on=i}}function wS(e,t){var n=this._id;return arguments.length<2?Qe(this.node(),n).on.on(e):this.each(OS(n,e,t))}function SS(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function TS(){return this.on("end.remove",SS(this._id))}function $S(e){var t=this._name,n=this._id;typeof e!="function"&&(e=nc(e));for(var r=this._groups,i=r.length,a=new Array(i),s=0;s<i;++s)for(var o=r[s],l=o.length,c=a[s]=new Array(l),u,d,h=0;h<l;++h)(u=o[h])&&(d=e.call(u,u.__data__,h,o))&&("__data__"in u&&(d.__data__=u.__data__),c[h]=d,ks(c[h],t,n,h,c,Qe(u,n)));return new Sn(a,this._parents,t,n)}function MS(e){var t=this._name,n=this._id;typeof e!="function"&&(e=sp(e));for(var r=this._groups,i=r.length,a=[],s=[],o=0;o<i;++o)for(var l=r[o],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var h=e.call(u,u.__data__,d,l),p,f=Qe(u,n),v=0,m=h.length;v<m;++v)(p=h[v])&&ks(p,t,n,v,h,f);a.push(h),s.push(u)}return new Sn(a,s,t,n)}var CS=Wi.prototype.constructor;function AS(){return new CS(this._groups,this._parents)}function kS(e,t){var n,r,i;return function(){var a=Yr(this,e),s=(this.style.removeProperty(e),Yr(this,e));return a===s?null:a===n&&s===r?i:i=t(n=a,r=s)}}function Fp(e){return function(){this.style.removeProperty(e)}}function RS(e,t,n){var r,i=n+"",a;return function(){var s=Yr(this,e);return s===i?null:s===r?a:a=t(r=s,n)}}function LS(e,t,n){var r,i,a;return function(){var s=Yr(this,e),o=n(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(e),Yr(this,e))),s===l?null:s===r&&l===i?a:(i=l,a=t(r=s,o))}}function DS(e,t){var n,r,i,a="style."+t,s="end."+a,o;return function(){var l=dn(this,e),c=l.on,u=l.value[a]==null?o||(o=Fp(t)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(s,i=u),l.on=r}}function IS(e,t,n){var r=(e+="")=="transform"?Bw:Gp;return t==null?this.styleTween(e,kS(e,r)).on("end.style."+e,Fp(e)):typeof t=="function"?this.styleTween(e,LS(e,r,vc(this,"style."+e,t))).each(DS(this._id,e)):this.styleTween(e,RS(e,r,t),n).on("end.style."+e,null)}function NS(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function PS(e,t,n){var r,i;function a(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&NS(e,s,n)),r}return a._value=t,a}function US(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,PS(e,t,n??""))}function BS(e){return function(){this.textContent=e}}function HS(e){return function(){var t=e(this);this.textContent=t??""}}function VS(e){return this.tween("text",typeof e=="function"?HS(vc(this,"text",e)):BS(e==null?"":e+""))}function GS(e){return function(t){this.textContent=e.call(this,t)}}function FS(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&GS(i)),t}return r._value=e,r}function zS(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,FS(e))}function jS(){for(var e=this._name,t=this._id,n=zp(),r=this._groups,i=r.length,a=0;a<i;++a)for(var s=r[a],o=s.length,l,c=0;c<o;++c)if(l=s[c]){var u=Qe(l,t);ks(l,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Sn(r,this._parents,e,n)}function WS(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,s){var o={value:s},l={value:function(){--i===0&&a()}};n.each(function(){var c=dn(this,r),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),c.on=t}),i===0&&a()})}var qS=0;function Sn(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function zp(){return++qS}var Tn=Wi.prototype;Sn.prototype={constructor:Sn,select:$S,selectAll:MS,selectChild:Tn.selectChild,selectChildren:Tn.selectChildren,filter:xS,merge:_S,selection:AS,transition:jS,call:Tn.call,nodes:Tn.nodes,node:Tn.node,size:Tn.size,empty:Tn.empty,each:Tn.each,on:wS,attr:iS,attrTween:cS,style:IS,styleTween:US,text:VS,textTween:zS,remove:TS,tween:Kw,delay:dS,duration:mS,ease:vS,easeVarying:bS,end:WS,[Symbol.iterator]:Tn[Symbol.iterator]};function jp(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var YS={time:null,delay:0,duration:250,ease:jp};function ZS(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 XS(e){var t,n;e instanceof Sn?(t=e._id,e=e._name):(t=zp(),(n=YS).time=hc(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var s=r[a],o=s.length,l,c=0;c<o;++c)(l=s[c])&&ks(l,e,t,c,s,n||ZS(l,t));return new Sn(r,this._parents,e,t)}Wi.prototype.interrupt=Yw,Wi.prototype.transition=XS;function KS(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Rs(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Kr(e){return e=Rs(Math.abs(e)),e?e[1]:NaN}function QS(e,t){return function(n,r){for(var i=n.length,a=[],s=0,o=e[0],l=0;i>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),a.push(n.substring(i-=o,i+o)),!((l+=o+1)>r));)o=e[s=(s+1)%e.length];return a.reverse().join(t)}}function JS(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var tT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ea(e){if(!(t=tT.exec(e)))throw new Error("invalid format: "+e);var t;return new yc({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ea.prototype=yc.prototype;function yc(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}yc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function eT(e){t:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break t;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Wp;function nT(e,t){var n=Rs(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Wp=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return a===s?r:a>s?r+new Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Rs(e,Math.max(0,t+a-1))[0]}function qp(e,t){var n=Rs(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Yp={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:KS,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>qp(e*100,t),r:qp,s:nT,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Zp(e){return e}var Xp=Array.prototype.map,Kp=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function rT(e){var t=e.grouping===void 0||e.thousands===void 0?Zp:QS(Xp.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Zp:JS(Xp.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=ea(d);var h=d.fill,p=d.align,f=d.sign,v=d.symbol,m=d.zero,y=d.width,g=d.comma,x=d.precision,O=d.trim,E=d.type;E==="n"?(g=!0,E="g"):Yp[E]||(x===void 0&&(x=12),O=!0,E="g"),(m||h==="0"&&p==="=")&&(m=!0,h="0",p="=");var S=v==="$"?n:v==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",k=v==="$"?r:/[%p]/.test(E)?s:"",I=Yp[E],L=/[defgprs%]/.test(E);x=x===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function R($){var G=S,P=k,H,_,C;if(E==="c")P=I($)+P,$="";else{$=+$;var A=$<0||1/$<0;if($=isNaN($)?l:I(Math.abs($),x),O&&($=eT($)),A&&+$==0&&f!=="+"&&(A=!1),G=(A?f==="("?f:o:f==="-"||f==="("?"":f)+G,P=(E==="s"?Kp[8+Wp/3]:"")+P+(A&&f==="("?")":""),L){for(H=-1,_=$.length;++H<_;)if(C=$.charCodeAt(H),48>C||C>57){P=(C===46?i+$.slice(H+1):$.slice(H))+P,$=$.slice(0,H);break}}}g&&!m&&($=t($,1/0));var U=G.length+$.length+P.length,B=U<y?new Array(y-U+1).join(h):"";switch(g&&m&&($=t(B+$,B.length?y-P.length:1/0),B=""),p){case"<":$=G+$+P+B;break;case"=":$=G+B+$+P;break;case"^":$=B.slice(0,U=B.length>>1)+G+$+P+B.slice(U);break;default:$=B+G+$+P;break}return a($)}return R.toString=function(){return d+""},R}function u(d,h){var p=c((d=ea(d),d.type="f",d)),f=Math.max(-8,Math.min(8,Math.floor(Kr(h)/3)))*3,v=Math.pow(10,-f),m=Kp[8+f/3];return function(y){return p(v*y)+m}}return{format:c,formatPrefix:u}}var Ls,bc,Qp;iT({thousands:",",grouping:[3],currency:["$",""]});function iT(e){return Ls=rT(e),bc=Ls.format,Qp=Ls.formatPrefix,Ls}function aT(e){return Math.max(0,-Kr(Math.abs(e)))}function sT(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Kr(t)/3)))*3-Kr(Math.abs(e)))}function oT(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Kr(t)-Kr(e))+1}function Qr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const Jp=Symbol("implicit");function Ds(){var e=new ep,t=[],n=[],r=Jp;function i(a){let s=e.get(a);if(s===void 0){if(r!==Jp)return r;e.set(a,s=t.push(a)-1)}return n[s%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ep;for(const s of a)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Ds(t,n).unknown(r)},Qr.apply(i,arguments),i}function lT(e){return function(){return e}}function cT(e){return+e}var tf=[0,1];function Jr(e){return e}function xc(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:lT(isNaN(t)?NaN:.5)}function uT(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function hT(e,t,n){var r=e[0],i=e[1],a=t[0],s=t[1];return i<r?(r=xc(i,r),a=n(s,a)):(r=xc(r,i),a=n(a,s)),function(o){return a(r(o))}}function dT(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=xc(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(o){var l=Ql(e,o,1,r)-1;return a[l](i[l](o))}}function _c(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ef(){var e=tf,t=tf,n=Xi,r,i,a,s=Jr,o,l,c;function u(){var h=Math.min(e.length,t.length);return s!==Jr&&(s=uT(e[0],e[h-1])),o=h>2?dT:hT,l=c=null,d}function d(h){return h==null||isNaN(h=+h)?a:(l||(l=o(e.map(r),t,n)))(r(s(h)))}return d.invert=function(h){return s(i((c||(c=o(t,e.map(r),Me)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,cT),u()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=Cp,u()},d.clamp=function(h){return arguments.length?(s=h?!0:Jr,u()):s!==Jr},d.interpolate=function(h){return arguments.length?(n=h,u()):n},d.unknown=function(h){return arguments.length?(a=h,d):a},function(h,p){return r=h,i=p,u()}}function nf(){return ef()(Jr,Jr)}function pT(e,t,n,r){var i=Jl(e,t,n),a;switch(r=ea(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=sT(i,s))&&(r.precision=a),Qp(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=oT(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=aT(i))&&(r.precision=a-(r.type==="%")*2);break}}return bc(r)}function rf(e){var t=e.domain;return e.ticks=function(n){var r=t();return ms(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return pT(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,s=r[i],o=r[a],l,c,u=10;for(o<s&&(c=s,s=o,o=c,c=i,i=a,a=c);u-- >0;){if(c=qr(s,o,n),c===l)return r[i]=s,r[a]=o,t(r);if(c>0)s=Math.floor(s/c)*c,o=Math.ceil(o/c)*c;else if(c<0)s=Math.ceil(s*c)/c,o=Math.floor(o*c)/c;else break;l=c}return e},e}function Je(){var e=nf();return e.copy=function(){return _c(e,Je())},Qr.apply(e,arguments),rf(e)}function Ec(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function s(l){return l!=null&&l<=l?i[Ql(r,l,0,n)]:a}function o(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return s}return s.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,o()):[e,t]},s.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,o()):i.slice()},s.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},s.unknown=function(l){return arguments.length&&(a=l),s},s.thresholds=function(){return r.slice()},s.copy=function(){return Ec().domain([e,t]).range(i).unknown(a)},Qr.apply(rf(s),arguments)}function na(e,t,n){this.k=e,this.x=t,this.y=n}na.prototype={constructor:na,scale:function(e){return e===1?this:new na(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new na(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+")"}},na.prototype;const _e="cds",$n={opacity:{unselected:.05,selected:.4}},zn={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},ratio:{reference:"value",compareTo:"marker"},paddingRatio:.1,hover:{rectanglePadding:4}},ti={duration:1e3,ease:jp,zoomLevel:3},ei={circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},depth:2},af={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},Ve={circle:{radius:4,opacity:{hovered:1,default:.3}},box:{opacity:{hovered:.5,default:.3}},strokeWidth:{default:1,thicker:2}},fT={defaultBins:10},Yt={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8,spaceAfter:4},checkbox:{radius:6.5},radius:{iconData:[{cx:7,cy:7,r:6.5},{cx:7,cy:10,r:3.5}],fill:null,stroke:"#8c8c8c"},line:{yPosition:6,width:24,strokeWidth:1.4,fill:null,stroke:"#999999"},area:{width:24,height:14,fill:"#6f6f6f",stroke:null},size:{iconData:[{width:23,height:12},{width:13,height:6}],fill:null,stroke:"#8D8D8D"},quartile:{iconData:[{x:0,y:0,width:24,height:13},{x:11,y:4,width:1,height:4}]},zoom:{iconData:[{x:0,y:0,width:12,height:12}],color:"#8D8D8D"},color:{barWidth:300,barHeight:8,axisYTranslation:10}},Mn={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},oe={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15},total:{paddingLeft:36,paddingRight:24},height:{default:8,proportional:16},dividerWidth:2},Ht={radiusOffset:-15,innerRadius:2,padAngle:.007,hoverArc:{outerRadiusOffset:3},xOffset:30,yOffset:20,yOffsetCallout:10,callout:{minSliceDegree:5,offsetX:15,offsetY:12,horizontalLineLength:8,textMargin:2}},vr={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},tn={nodeWidth:4,nodeHoveredWidth:8,minNodePadding:24,opacity:{unfocus:.3,default:.8,selected:1}},sf={minCellDividerDimension:16,chartPadding:.5},of={default:{size:24}},lf={defaultOffset:4,horizontalOffset:10},cf={default:{duration:300},pie_slice_mouseover:{duration:100},pie_slice_mouseout:{duration:100},pie_chart_titles:{duration:375},graph_element_mouseover_fill_update:{duration:100},graph_element_mouseout_fill_update:{duration:100}},Ce={height:{[We.GRAPH_VIEW]:32,[We.SLIDER_VIEW]:10},spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},mT=[{type:ee.RADIUS,name:"Radius"},{type:ee.AREA,name:"Poor area"},{type:ee.AREA,name:"Satisfactory area"},{type:ee.AREA,name:"Great area"},{type:ee.QUARTILE,name:"Quartiles"}],ni={type:Pe.END_LINE,threshold:16,numCharacter:14},gT={code:typeof navigator<"u"&&(navigator==null?void 0:navigator.language)||"en-US",number:(e,t=(navigator==null?void 0:navigator.language)||"en-US")=>e.toLocaleString(t),date:(e,t=(navigator==null?void 0:navigator.language)||"en-US",n={},r=null)=>r||e.toLocaleDateString(t,n),time:(e,t=(navigator==null?void 0:navigator.language)||"en-US",n={},r=null)=>r||e.toLocaleTimeString(t,n),optionsObject:{"15seconds":{primary:{"MMM d, pp":{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hourCycle:"h12"},"MMM d, h:mm:ss.SSS a":{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",fractionalSecondDigits:3,hourCycle:"h12"}},secondary:{pp:{hour:"numeric",minute:"2-digit",second:"2-digit",hourCycle:"h12"},"h:mm:ss.SSS a":{hour:"numeric",minute:"2-digit",fractionalSecondDigits:3,hourCycle:"h12"}},type:"time"},minute:{primary:{"MMM d, p":{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hourCycle:"h12"}},secondary:{p:{hour:"numeric",minute:"2-digit",hourCycle:"h12"}},type:"time"},"30minutes":{primary:{"MMM d, p":{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hourCycle:"h12"}},secondary:{p:{hour:"numeric",minute:"2-digit",hourCycle:"h12"}},type:"time"},hourly:{primary:{"MMM d, hh a":{month:"short",day:"numeric",hour:"2-digit",hourCycle:"h12"}},secondary:{"hh a":{hour:"2-digit",hourCycle:"h12"}},type:"time"},daily:{primary:{"MMM d":{month:"short",day:"numeric"}},secondary:{d:{day:"numeric"}},type:"date"},weekly:{primary:{"eee, MMM d":{weekday:"short",month:"short",day:"numeric"}},secondary:{eee:{weekday:"short"}},type:"date"},monthly:{primary:{"MMM yyyy":{month:"short",year:"numeric"}},secondary:{MMM:{month:"short"}},type:"date"},quarterly:{primary:{},secondary:{},type:"date"},yearly:{primary:{yyyy:{year:"numeric"}},secondary:{yyyy:{year:"numeric"}},type:"date"}},translations:{group:"Group",total:"Total",meter:{title:""},tabularRep:{title:"Tabular representation",downloadAsCSV:"Download as CSV"},toolbar:{exportAsCSV:"Export to CSV",exportAsJPG:"Export to JPG",exportAsPNG:"Export to PNG",zoomIn:"Zoom in",zoomOut:"Zoom out",resetZoom:"Reset zoom",moreOptions:"More options",makeFullScreen:"Make fullscreen",exitFullScreen:"Exit fullscreen",showAsTable:"Show as table"}}},vT={enabled:!0,position:Br.BOTTOM,clickable:!0,truncation:ni,alignment:Jt.LEFT,order:null,additionalItems:[]},yT={x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},bT={enabled:!0},uf={enabled:!0,showTotal:!0,truncation:ni,groupLabel:"Group"},hf={top:{visible:!0,includeZero:!0,truncation:ni},bottom:{visible:!0,includeZero:!0,truncation:ni},left:{visible:!0,includeZero:!0,truncation:ni},right:{visible:!0,includeZero:!0,truncation:ni}},Is={addSpaceOnEdges:1,showDayName:!1,localeObject:jh,timeIntervalFormats:{"15seconds":{primary:"MMM d, pp",secondary:"pp"},minute:{primary:"MMM d, p",secondary:"p"},"30minutes":{primary:"MMM d, p",secondary:"p"},hourly:{primary:"MMM d, hh a",secondary:"hh a"},daily:{primary:"MMM d",secondary:"d"},weekly:{primary:"eee, MMM d",secondary:"eee"},monthly:{primary:"MMM yyyy",secondary:"MMM"},quarterly:{primary:"QQQ ''yy",secondary:"QQQ"},yearly:{primary:"yyyy",secondary:"yyyy"}}};let df=!1;try{df=typeof document<"u"&&(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}catch(e){console.warn("Fullscreen capabilities check failed: ",e.message)}const ce={width:null,height:null,resizable:!0,theme:wl.WHITE,tooltip:uf,legend:vT,locale:gT,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}},toolbar:{enabled:!0,numberOfIcons:3,controls:[{type:Mt.SHOW_AS_DATATABLE},...df?[{type:Mt.MAKE_FULLSCREEN}]:[],{type:Mt.EXPORT_CSV},{type:Mt.EXPORT_PNG},{type:Mt.EXPORT_JPG}]}},pf=lt({},ce,{thematic:{projection:cn.geoNaturalEarth1}}),ra=lt({},ce,{axes:hf,timeScale:Is,grid:yT,ruler:bT,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:We.GRAPH_VIEW}}}),yr=lt({},ra,{bars:{maxWidth:16,spacingFactor:.25},timeScale:lt(Is,{addSpaceOnEdges:1})}),xT=lt({},yr,{}),_T=lt({},yr,{}),ET=lt({},yr,{bars:lt({},yr.bars,{dividerSize:1.5})}),OT=lt({},yr,{}),Oc=lt({},ra,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),wT=Oc,ff=lt({},Oc,{points:{radius:3,filled:!1,enabled:!0}}),mf=lt({},ff,{timeScale:lt(Is,{addSpaceOnEdges:0})}),ST=mf,TT=lt({},ra,{bubble:{radiusMapsTo:"radius",radiusLabel:"Radius",radiusRange:e=>{const t=Math.min(e.width,e.height);return[t*3/400,t*25/400]},fillOpacity:.2,enabled:!0},points:{filled:!0},legend:{additionalItems:[{type:ee.RADIUS,name:"Radius"}]}}),$T=lt({},ra,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:ee.AREA,name:"Poor area"},{type:ee.AREA,name:"Satisfactory area"},{type:ee.AREA,name:"Great area"},{type:ee.QUARTILE,name:"Quartiles"}]}}),MT=lt({},yr,{bars:{dividerSize:1.5},timeScale:lt(Is,{addSpaceOnEdges:0})}),CT=lt({},ce,{tooltip:lt({},uf,{wordLabel:"Word",valueLabel:"Value"}),wordCloud:{fontSizeMapsTo:"value",fontSizeRange:e=>{const t=Math.min(e.width,e.height);return[t*20/400,t*75/400]},wordMapsTo:"word"}}),gf=lt({},ce,{pie:{labels:{formatter:null,enabled:!0},alignment:Jt.LEFT,sortFunction:null,valueMapsTo:"value"}}),AT=lt({},ce,{legend:{enabled:!1},gauge:{type:ar.SEMI,arcWidth:16,deltaArrow:{size:e=>e/8,enabled:!0},showPercentageSymbol:!0,status:null,numberSpacing:10,deltaFontSize:e=>e/8,valueFontSize:e=>e/2.5,alignment:Jt.LEFT}}),kT=lt({},gf,{donut:{center:{numberFontSize:e=>`${Math.min(e/100*24,24)}px`,titleFontSize:e=>`${Math.min(e/100*15,15)}px`,titleYPosition:e=>Math.min(e/80*20,20)},alignment:Jt.LEFT}}),vf=lt({},ce,{legend:{enabled:!1,clickable:!1},meter:{showLabels:!0,proportional:null,statusBar:{percentageIndicator:{enabled:!0}}}}),RT=lt({},vf,{legend:{enabled:!0}}),LT=lt({},ce,{radar:{axes:{angle:"key",value:"value"},alignment:Jt.LEFT},tooltip:{gridline:{enabled:!0}}}),DT=lt({},yr,{comboChartTypes:[]}),IT=lt({tree:{type:Ka.TREE}},ce,{}),NT=lt({},ce,{data:lt(ce.data,{groupMapsTo:"name"})}),PT=lt({},ce,ei,{data:lt(ce.data,{groupMapsTo:"name"})}),UT=lt({},ce,{alluvial:{data:lt(ce.data,{groupMapsTo:"source"}),nodeAlignment:Jt.CENTER,nodePadding:24,monochrome:!1,nodes:[]}}),BT=lt({},ce,{axes:hf,heatmap:{divider:{state:Vr.AUTO},colorLegend:{type:"linear"}}}),HT=lt({},pf,{choropleth:{colorLegend:{type:"linear"}}}),Ut={alluvialChart:UT,areaChart:mf,axisChart:ra,boxplotChart:OT,bubbleChart:TT,bulletChart:$T,chart:ce,circlePackChart:PT,choroplethChart:HT,comboChart:DT,donutChart:kT,gaugeChart:AT,groupedBarChart:_T,heatmapChart:BT,histogramChart:MT,lineChart:ff,lollipopChart:wT,meterChart:vf,pieChart:gf,proportionalMeterChart:RT,radarChart:LT,scatterChart:Oc,simpleBarChart:xT,stackedAreaChart:ST,stackedBarChart:ET,thematicChart:pf,treeChart:IT,treemapChart:NT,wordCloudChart:CT};function VT(e,t,n){let r=null;return function(...i){const a=this;a.mousePosition=pr(i[0],n),clearTimeout(r),r=setTimeout(function(){e.apply(a,i)},t)}}function jt(e,t){var n;const r=On(e),i=Object.keys(t.axes||{});(n=t==null?void 0:t.toolbar)!=null&&n.controls&&delete r.toolbar.controls,i.length===0&&delete r.axes;for(const a in r.axes)if(i.includes(a)){const s=t.axes[a];if((s.primary||s.secondary)&&console.warn("`primary` & `secondary` are no longer needed for axis configurations. Read more here https://charts.carbondesignsystem.com/"),s.mapsTo==null){const l=s.scaleType;l==null?s.mapsTo="value":l===et.TIME?s.mapsTo="date":l===et.LABELS&&(s.mapsTo="key")}}else delete r.axes[a];return Sc(r,t),lt(r,t)}function Cn(e){if(!e)return;const t=/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/,n=e.getAttribute("transform").match(t);if(!n)return null;if(n[0]){const r=n[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:r[0],ty:r[1]}}return null}function ia(e){const t=/\(([^)]+)\)/.exec(e);if(t&&t.length>1){const n=t[1].split(",");if(n.length>1)return{x:parseFloat(n[0]),y:parseFloat(n[1])}}return{x:0,y:0}}function wc(e,t,n="value",r=!1){const i=e/t.reduce((a,s)=>a+s[n],0)*100;return r?i:i%1!==0?parseFloat(i.toFixed(1)):i}function aa(e,t,n){if(n>e.length)return e;if(t===Pe.MID_LINE)return e.substr(0,n/2)+"..."+e.substr(-n/2);if(t===Pe.FRONT_LINE)return"..."+e.substr(-n);if(t===Pe.END_LINE)return e.substr(0,n)+"..."}function Sc(e,t){const n=b(e,"legend","additionalItems"),r=b(t,"legend","additionalItems");if(n&&r){const i=r.map(o=>o.type),a=n.map(o=>o.type),s=mT.filter(o=>a.includes(o.type)&&!i.includes(o.type));e.legend.additionalItems=s,t.legend.additionalItems=EE(s,r,"name")}}const b=(e,...t)=>{let n=e;if(n){for(const r of t)if(n[r]!==null&&n[r]!==void 0)n=n[r];else return null;return n}return null},yf=(e,t)=>t===Qt.HORIZONTAL?{y0:e.x0,y1:e.x1,x0:e.y0,x1:e.y1}:e,me=(e,t)=>{const{x0:n,x1:r,y0:i,y1:a}=yf(e,t);return`M${n},${i}L${n},${a}L${r},${a}L${r},${i}L${n},${i}`};function An(e,t,n){return n===Qt.VERTICAL?[e,t]:[t,e]}const bf=6048e5,GT=864e5,xf=6e4,_f=36e5;function Ef(e){const t=St(e);return t.setHours(0,0,0,0),t}function Of(e){const t=St(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function wf(e,t){const n=Ef(e),r=Ef(t),i=+n-Of(n),a=+r-Of(r);return Math.round((i-a)/GT)}function en(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function FT(e){const t=St(e),n=en(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function zT(e){const t=St(e);return wf(t,FT(t))+1}function Ns(e){return Li(e,{weekStartsOn:1})}function Sf(e){const t=St(e),n=t.getFullYear(),r=en(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Ns(r),a=en(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=Ns(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function jT(e){const t=Sf(e),n=en(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ns(n)}function WT(e){const t=St(e),n=+Ns(t)-+jT(t);return Math.round(n/bf)+1}function Tf(e,t){var n,r,i,a;const s=St(e),o=s.getFullYear(),l=ts(),c=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??l.firstWeekContainsDate??((a=(i=l.locale)==null?void 0:i.options)==null?void 0:a.firstWeekContainsDate)??1,u=en(e,0);u.setFullYear(o+1,0,c),u.setHours(0,0,0,0);const d=Li(u,t),h=en(e,0);h.setFullYear(o,0,c),h.setHours(0,0,0,0);const p=Li(h,t);return s.getTime()>=d.getTime()?o+1:s.getTime()>=p.getTime()?o:o-1}function qT(e,t){var n,r,i,a;const s=ts(),o=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??s.firstWeekContainsDate??((a=(i=s.locale)==null?void 0:i.options)==null?void 0:a.firstWeekContainsDate)??1,l=Tf(e,t),c=en(e,0);return c.setFullYear(l,0,o),c.setHours(0,0,0,0),Li(c,t)}function YT(e,t){const n=St(e),r=+Li(n,t)-+qT(n,t);return Math.round(r/bf)+1}function kt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const jn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return kt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):kt(n+1,2)},d(e,t){return kt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return kt(e.getHours()%12||12,t.length)},H(e,t){return kt(e.getHours(),t.length)},m(e,t){return kt(e.getMinutes(),t.length)},s(e,t){return kt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return kt(i,t.length)}},ri={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$f={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return jn.y(e,t)},Y:function(e,t,n,r){const i=Tf(e,r),a=i>0?i:1-i;if(t==="YY"){const s=a%100;return kt(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):kt(a,t.length)},R:function(e,t){const n=Sf(e);return kt(n,t.length)},u:function(e,t){const n=e.getFullYear();return kt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return kt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return kt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return jn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return kt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=YT(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):kt(i,t.length)},I:function(e,t,n){const r=WT(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):kt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):jn.d(e,t)},D:function(e,t,n){const r=zT(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):kt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return kt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return kt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return kt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ri.noon:r===0?i=ri.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ri.evening:r>=12?i=ri.afternoon:r>=4?i=ri.morning:i=ri.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return jn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):jn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):kt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):kt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):jn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):jn.s(e,t)},S:function(e,t){return jn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Cf(r);case"XXXX":case"XX":return br(r);case"XXXXX":case"XXX":default:return br(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Cf(r);case"xxxx":case"xx":return br(r);case"xxxxx":case"xxx":default:return br(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mf(r,":");case"OOOO":default:return"GMT"+br(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mf(r,":");case"zzzz":default:return"GMT"+br(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return kt(r,t.length)},T:function(e,t,n){const r=e.getTime();return kt(r,t.length)}};function Mf(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+kt(a,2)}function Cf(e,t){return e%60===0?(e>0?"-":"+")+kt(Math.abs(e)/60,2):br(e,t)}function br(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=kt(Math.trunc(r/60),2),a=kt(r%60,2);return n+i+t+a}const Af=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},kf=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ZT=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Af(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Af(r,t)).replace("{{time}}",kf(i,t))},XT={p:kf,P:ZT},KT=/^D+$/,QT=/^Y+$/,JT=["D","DD","YY","YYYY"];function t$(e){return KT.test(e)}function e$(e){return QT.test(e)}function n$(e,t,n){const r=r$(e,t,n);if(console.warn(r),JT.includes(e))throw new RangeError(r)}function r$(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function i$(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function a$(e){if(!i$(e)&&typeof e!="number")return!1;const t=St(e);return!isNaN(Number(t))}const s$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,o$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l$=/^'([^]*?)'?$/,c$=/''/g,u$=/[a-zA-Z]/;function Tc(e,t,n){var r,i,a,s,o,l,c,u;const d=ts(),h=(n==null?void 0:n.locale)??d.locale??jh,p=(n==null?void 0:n.firstWeekContainsDate)??((i=(r=n==null?void 0:n.locale)==null?void 0:r.options)==null?void 0:i.firstWeekContainsDate)??d.firstWeekContainsDate??((s=(a=d.locale)==null?void 0:a.options)==null?void 0:s.firstWeekContainsDate)??1,f=(n==null?void 0:n.weekStartsOn)??((l=(o=n==null?void 0:n.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??d.weekStartsOn??((u=(c=d.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,v=St(e);if(!a$(v))throw new RangeError("Invalid time value");let m=t.match(o$).map(g=>{const x=g[0];if(x==="p"||x==="P"){const O=XT[x];return O(g,h.formatLong)}return g}).join("").match(s$).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const x=g[0];if(x==="'")return{isToken:!1,value:h$(g)};if($f[x])return{isToken:!0,value:g};if(x.match(u$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:g}});h.localize.preprocessor&&(m=h.localize.preprocessor(v,m));const y={firstWeekContainsDate:p,weekStartsOn:f,locale:h};return m.map(g=>{if(!g.isToken)return g.value;const x=g.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&e$(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&t$(x))&&n$(x,t,String(e));const O=$f[x[0]];return O(v,x,h.localize,y)}).join("")}function h$(e){const t=e.match(l$);return t?t[1].replace(c$,"'"):e}var Rf=(e=>(e["15seconds"]="15seconds",e.minute="minute",e["30minutes"]="30minutes",e.hourly="hourly",e.daily="daily",e.weekly="weekly",e.monthly="monthly",e.quarterly="quarterly",e.yearly="yearly",e))(Rf||{});const $c=[["15seconds",15*1e3],["minute",60*1e3],["30minutes",30*60*1e3],["hourly",60*60*1e3],["daily",24*60*60*1e3],["monthly",30*24*60*60*1e3],["quarterly",3*30*24*60*60*1e3],["yearly",12*30*24*60*60*1e3]];function Lf(e,t,n,r,i){const a=t===0,s=Number(Tc(new Date(e),"c"))===2,o=Number(Tc(new Date(e),"q"))===1,l=t!==0?n[t-1]:null;switch(r){case"15seconds":return a||Us(e)||sa(e,l)||Wn(e);case"minute":return a||Us(e)||sa(e,l)||Wn(e);case"30minutes":return a||Us(e)||sa(e,l)||Wn(e);case"hourly":return a||Us(e)||sa(e,l)||Wn(e);case"daily":return i?a||s||Wn(e):a||sa(e,l)||Wn(e);case"weekly":return a||s||Wn(e);case"monthly":return a||Wn(e);case"quarterly":return a||o;case"yearly":return!1;default:throw new Error(`${r} is not a valid time interval.`)}}function Mc(e,t,n,r,i,a){const s=i.showDayName,o=r==="daily"&&s?"weekly":r,l=new Date(e),c=b(i,"timeIntervalFormats")[o],u=b(c,"primary"),d=b(c,"secondary"),h=Lf(e,t,n,r,s);let p=h?u:d;r==="15seconds"&&l.getMilliseconds()!==0&&(p=p.replace("pp","h:mm:ss.SSS a"));const f=i.localeObject,{code:v,optionsObject:m}=a,y=m[r].type,g=m[r][h?"primary":"secondary"][p];if(r==="quarterly"||!g){const x=Tc(l,p,{locale:f}).split("").map(O=>{const E=Number(O);return O!==" "&&!Number.isNaN(E)?E.toLocaleString(v):O});return a[y](l,v,{},x.join(""))}else return a[y](l,v,g)}function Ps(e){const t=new Date(e);return{M:t.getMonth()+1,d:t.getDate(),H:t.getHours(),m:t.getMinutes(),s:t.getSeconds()}}function d$(e){if(e)return e.slice(1).map((t,n)=>t-e[n])}function p$(e){const t=$c.reduce((n,[,r],i)=>{const a=$c[n][1],s=Math.abs(a-e),o=Math.abs(r-e);return s<o?n:i},0);return $c[t][0]}function Cc(e,t){if(Rf[t])return t;if(e.length===1)return"15seconds";const n=d$(e),r=Fn(n);return p$(r)}function Us(e){const{s:t,m:n,H:r}=Ps(e);return r===0&&n===0&&t===0}function sa(e,t){const n=Ps(e).M,r=Ps(t).M;return n!==r}function Wn(e){const{M:t,d:n,s:r,m:i,H:a}=Ps(e);return t===1&&n===1&&a===0&&i===0&&r===0}function Df(e){return e===void 0?"":e.toISOString()}function If(e){const t=Xe(e,r=>r.value),n=Je().domain(t).nice().domain();if(n[0]>0)n[0]=0;else if(n[0]===0&&n[1]===0)return[0,1];return n[0]<0&&n[1]>0&&(Math.abs(n[0])>n[1]?n[1]=Math.abs(n[0]):n[0]=-n[1]),n}function Nf(e,t){const n=b(t,"gradient","colors"),r=!Ze(n);let i=b(t,"pairing","option");const a=If(e),s=a[0]<0&&a[1]>0?"diverge":"mono";(i<1&&i>4&&s==="mono"||i<1&&i>2&&s==="diverge")&&(i=1);const o=r?n:[];if(!r){const l=s==="diverge"?17:11;for(let c=1;c<l+1;c++)o.push(`fill-${s}-${i}-${c}`)}return Ec().domain(a).range(o)}var dt=(e=>(e.GRAPHICS_DOCUMENT="graphics-document",e.GRAPHICS_OBJECT="graphics-object",e.GRAPHICS_SYMBOL="graphics-symbol",e.GROUP="group",e.DOCUMENT="document",e.CHECKBOX="checkbox",e.BUTTON="button",e.MENU="menu",e.MENU_ITEM="menuitem",e.IMG="img",e))(dt||{});function f$(e,t){return e&&Kd(e,t,Pi)}function m$(e,t){return function(n,r){if(n==null)return n;if(!cr(n))return e(n,r);for(var i=n.length,a=-1,s=Object(n);++a<i&&r(s[a],a,s)!==!1;);return n}}var Ac=m$(f$);function mt(e){return function(){return e}}var g$=Array.prototype.slice;function Bs(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function v$(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var s=e[i];t(r,s,n(s),e)}return r}function y$(e,t,n,r){return Ac(e,function(i,a,s){t(r,i,n(i),s)}),r}function b$(e,t){return function(n,r){var i=se(n)?v$:y$,a={};return i(n,e,ps(r),a)}}function x$(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}var _$=Object.prototype,E$=_$.hasOwnProperty,O$=b$(function(e,t,n){E$.call(e,n)?e[n].push(t):rs(e,n,[t])});function w$(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function S$(e){return e}function T$(e=hr){if(e===hr)return Pf;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Pf(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var $$=Array.prototype,M$=$$.slice;function kc(e){return()=>e}function C$(e,t,n){let r;for(;;){const i=qr(e,t,n);if(i===r||i===0||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function A$(e){return Math.max(1,Math.ceil(Math.log(w$(e))/Math.LN2)+1)}function k$(){var e=S$,t=Xe,n=A$;function r(i){Array.isArray(i)||(i=Array.from(i));var a,s=i.length,o,l,c=new Array(s);for(a=0;a<s;++a)c[a]=e(i[a],a,i);var u=t(c),d=u[0],h=u[1],p=n(c,d,h);if(!Array.isArray(p)){const x=h,O=+p;if(t===Xe&&([d,h]=C$(d,h,O)),p=ms(d,h,O),p[0]<=d&&(l=qr(d,h,O)),p[p.length-1]>=h)if(x>=h&&t===Xe){const E=qr(d,h,O);isFinite(E)&&(E>0?h=(Math.floor(h/E)+1)*E:E<0&&(h=(Math.ceil(h*-E)+1)/-E))}else p.pop()}for(var f=p.length,v=0,m=f;p[v]<=d;)++v;for(;p[m-1]>h;)--m;(v||m<f)&&(p=p.slice(v,m),f=m-v);var y=new Array(f+1),g;for(a=0;a<=f;++a)g=y[a]=[],g.x0=a>0?p[a-1]:d,g.x1=a<f?p[a]:h;if(isFinite(l)){if(l>0)for(a=0;a<s;++a)(o=c[a])!=null&&d<=o&&o<=h&&y[Math.min(f,Math.floor((o-d)/l))].push(i[a]);else if(l<0){for(a=0;a<s;++a)if((o=c[a])!=null&&d<=o&&o<=h){const x=Math.floor((d-o)*l);y[Math.min(f,x+(p[x]<=o))].push(i[a])}}}else for(a=0;a<s;++a)(o=c[a])!=null&&d<=o&&o<=h&&y[Ql(p,o,0,f)].push(i[a]);return y}return r.value=function(i){return arguments.length?(e=typeof i=="function"?i:kc(i),r):e},r.domain=function(i){return arguments.length?(t=typeof i=="function"?i:kc([i[0],i[1]]),r):t},r.thresholds=function(i){return arguments.length?(n=typeof i=="function"?i:kc(Array.isArray(i)?M$.call(i):i),r):n},r}function Uf(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Pf:T$(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),p=Math.max(n,Math.floor(t-c*d/l+h)),f=Math.min(r,Math.floor(t+(l-c)*d/l+h));Uf(e,t,p,f,i)}const a=e[t];let s=n,o=r;for(oa(e,n,t),i(e[r],a)>0&&oa(e,n,r);s<o;){for(oa(e,s,o),++s,--o;i(e[s],a)<0;)++s;for(;i(e[o],a)>0;)--o}i(e[n],a)===0?oa(e,n,o):(++o,oa(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function oa(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Rc(e,t,n){if(e=Float64Array.from(TE(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Fn(e);if(t>=1)return dr(e);var r,i=(r-1)*t,a=Math.floor(i),s=dr(Uf(e,a).subarray(0,a+1)),o=Fn(e.subarray(a+1));return s+(o-s)*(i-a)}}function Bf(e,t){if((s=e.length)>1)for(var n=1,r,i,a=e[t[0]],s,o=a.length;n<s;++n)for(i=a,a=e[t[n]],r=0;r<o;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Hf(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function R$(e,t){return e[t]}function L$(e){const t=[];return t.key=e,t}function Lc(){var e=mt([]),t=Hf,n=Bf,r=R$;function i(a){var s=Array.from(e.apply(this,arguments),L$),o,l=s.length,c=-1,u;for(const d of a)for(o=0,++c;o<l;++o)(s[o][c]=[0,+r(d,s[o].key,c,a)]).data=d;for(o=0,u=Bs(t(s));o<l;++o)s[u[o]].index=o;return n(s,u),s}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:mt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:mt(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?Hf:typeof a=="function"?a:mt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??Bf,i):n},i}function D$(e,t){if((l=e.length)>0)for(var n,r=0,i,a,s,o,l,c=e[t[0]].length;r<c;++r)for(s=o=0,n=0;n<l;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=s,i[1]=s+=a):a<0?(i[1]=o,i[0]=o+=a):(i[0]=0,i[1]=a)}function I$(e){const t=e.trim();return["=","+","-","@"," ","\r"].includes(t.charAt(0))?` ${t}`:/[,\"\n]/.test(t)?`"${t}"`:t}class pn{constructor(t){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=t}formatTable({headers:t,cells:n}){const r=this.getOptions(),{code:i,date:a,number:s}=b(r,"locale"),o=b(r,"tabularRepModal","tableHeadingFormatter"),l=b(r,"tabularRepModal","tableCellFormatter"),{cartesianScales:c}=this.services,u=c==null?void 0:c.getDomainAxisScaleType();let d;return u===et.TIME&&(d=h=>a(h,i,{month:"short",day:"numeric",year:"numeric"})),[typeof o=="function"?o(t):t,...typeof l=="function"?l(n):n.map(h=>{d&&(h[1]=d(h[1]));for(const p in h){const f=h[p];typeof f=="number"&&(h[p]=s(f,i))}return h})]}getAllDataFromDomain(t){if(!this.getData())return null;const n=this.getOptions();let r=this.getData();const i=this.getDataGroups(),{groupMapsTo:a}=b(n,"data"),s=b(n,"axes");return t&&(r=r.filter(o=>t.includes(o[a]))),s&&Object.keys(s).forEach(o=>{const l=s[o].mapsTo,c=s[o].scaleType;if((c===et.LINEAR||c===et.LOG)&&(r=r.map(u=>({...u,[l]:u[l]===null?u[l]:Number(u[l])}))),l&&s[o].domain)if(c===et.LABELS)r=r.filter(u=>s[o].domain.includes(u[l]));else{const[u,d]=s[o].domain;r=r.filter(h=>!(l in h)||h[l]>=u&&h[l]<=d)}}),r.filter(o=>i.find(l=>l.name===o[a]))}getDisplayData(t){if(!this.get("data"))return null;const{ACTIVE:n}=Yt.items.status,r=this.getDataGroups(t),{groupMapsTo:i}=this.getOptions().data;return this.getAllDataFromDomain(t).filter(a=>r.find(s=>s.name===a[i]&&s.status===n))}getData(){return this.get("data")}isDataEmpty(){return!this.getData().length}setData(t){const n=this.sanitize(On(t)),r=this.generateDataGroups(n);return this.set({data:n,dataGroups:r}),n}getDataGroups(t){return b(this.getOptions(),"data","loading")?[]:t?this.get("dataGroups").filter(n=>t.includes(n.name)):this.get("dataGroups")}getActiveDataGroups(t){const{ACTIVE:n}=Yt.items.status;return this.getDataGroups(t).filter(r=>r.status===n)}getDataGroupNames(t){return this.getDataGroups(t).map(n=>n.name)}getActiveDataGroupNames(t){return this.getActiveDataGroups(t).map(n=>n.name)}aggregateBinDataByGroup(t){return O$(t,"group")}getBinConfigurations(){const t=this.getDisplayData(),n=this.getOptions(),r=this.services.cartesianScales.getMainXAxisPosition(),i=this.services.cartesianScales.getDomainIdentifier(),a=n.axes[r],{groupMapsTo:s}=n.data,{bins:o=fT.defaultBins}=a,l=Array.isArray(o),c=k$().value(p=>p[i]).thresholds(o)(t);if(l)c[c.length-1].x1=o[o.length-1];else{const p=c[0].x1-c[0].x0;c[c.length-1].x1=+c[c.length-1].x0+p}const u=l?[o[0],o[o.length-1]]:[c[0].x0,c[c.length-1].x1],d=Array.from(new Set(t.map(p=>p[s]))),h=[];return c.forEach(p=>{const f=`${p.x0}-${p.x1}`,v=this.aggregateBinDataByGroup(p);d.forEach(m=>{h.push({group:m,key:f,value:v[m]||0,bin:p.x0})})}),{bins:c,binsDomain:u}}getBinnedStackedData(){const t=this.getOptions(),{groupMapsTo:n}=t.data,r=this.getActiveDataGroupNames(),{bins:i}=this.getBinConfigurations(),a=this.getDataValuesGroupedByKeys({bins:i});return Lc().keys(r)(a).map((s,o)=>Object.keys(s).filter(l=>!isNaN(l)).map(l=>{const c=s[l];return c[n]=r[o],c}))}getGroupedData(t){const n=this.getDisplayData(t),r={},{groupMapsTo:i}=this.getOptions().data;return n.map(a=>{const s=a[i];r[s]!==null&&r[s]!==void 0?r[s].push(a):r[s]=[a]}),Object.keys(r).map(a=>({name:a,data:r[a]}))}getStackKeys({bins:t=null,groups:n=null}={bins:null,groups:null}){const r=this.getOptions(),i=this.getDisplayData(n);let a;t?a=t.map(l=>`${l.x0}:${l.x1}`):a=ji(i.map(l=>{const c=this.services.cartesianScales.getDomainIdentifier(l);return l[c]instanceof Date?Df(l[c]):l[c]&&typeof l[c].toString=="function"?l[c].toString():l[c]}));const s=this.services.cartesianScales.domainAxisPosition,o=r.axes[s].scaleType;return o===et.TIME?a.sort((l,c)=>{const u=new Date(l),d=new Date(c);return u-d}):(o===et.LOG||o===et.LINEAR)&&a.sort((l,c)=>l-c),a}getDataValuesGroupedByKeys({bins:t=null,groups:n=null}){const r=this.getOptions(),{groupMapsTo:i}=r.data,a=this.getDisplayData(n),s=this.getDataGroupNames(),o=this.getStackKeys({bins:t,groups:n});return t?o.map(l=>{const[c,u]=l.split(":"),d={x0:c,x1:u},h=t.find(p=>p.x0.toString()===c.toString());return s.forEach(p=>{d[p]=h.filter(f=>f[i]===p).length}),d}):o.map(l=>{const c={sharedStackKey:l};return s.forEach(u=>{const d=a.find(p=>{const f=this.services.cartesianScales.getDomainIdentifier(p);return p[i]===u&&Object.prototype.hasOwnProperty.call(p,f)&&(p[f]instanceof Date?Df(p[f])===l:p[f].toString()===l)}),h=this.services.cartesianScales.getRangeIdentifier(c);c[u]=d?d[h]:null}),c})}getStackedData({percentage:t=!1,groups:n=null,divergent:r=!1}){const i=this.getOptions(),{groupMapsTo:a}=i.data,s=this.getActiveDataGroupNames(n),o=this.getDataValuesGroupedByKeys({groups:n});if(t){const l=x$(o.map(c=>[c.sharedStackKey,0]));o.forEach(c=>{s.forEach(u=>{l[c.sharedStackKey]+=c[u]})}),o.forEach(c=>{s.forEach(u=>{const d=l[c.sharedStackKey];l[c.sharedStackKey]?c[u]=c[u]/d*100:c[u]=0})})}return(r?Lc().offset(D$):Lc()).keys(s)(o).map((l,c)=>Object.keys(l).filter(u=>!isNaN(u)).map(u=>{const d=l[u];return d[a]=s[c],d}))}getOptions(){return this.state.options}set(t,n){this.state=Object.assign({},this.state,t);const r=Object.assign({skipUpdate:!1,animate:!0},n);r.skipUpdate||this.update(r.animate)}get(t){return t?this.state[t]:this.state}setOptions(t){const n=this.getOptions();Sc(n,t),this.set({options:lt(n,t)})}update(t=!0){this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(w.Model.UPDATE,{animate:t}))}toggleDataLabel(t){const{ACTIVE:n,DISABLED:r}=Yt.items.status,i=this.getDataGroups(),a=i.some(c=>c.status===r),s=i.filter(c=>c.status===n);if(a)if(s.length===1&&s[0].name===t)i.forEach((c,u)=>{i[u].status=n});else{const c=i.findIndex(u=>u.name===t);i[c].status=i[c].status===r?n:r}else i.forEach((c,u)=>{i[u].status=c.name===t?n:r});const o=i.filter(c=>c.status===n),l=this.getOptions();i.some(c=>c.status===r)?l.data.selectedGroups=o.map(c=>c.name):l.data.selectedGroups=[],this.services.events.dispatchEvent(w.Legend.ITEMS_UPDATE,{dataGroups:i}),this.set({dataGroups:i})}getIsFilled(t,n,r,i){const a=this.getOptions();return a.getIsFilled?a.getIsFilled(t,n,r,i):i}getFillColor(t,n,r){const i=this.getOptions(),a=b(this.colorScale,t);return i.getFillColor?i.getFillColor(t,n,r,a):a}getStrokeColor(t,n,r){const i=this.getOptions(),a=b(this.colorScale,t);return i.getStrokeColor?i.getStrokeColor(t,n,r,a):a}isUserProvidedColorScaleValid(){const t=b(this.getOptions(),"color","scale"),n=this.getDataGroups();return t==null||Object.keys(t).length==0?!1:n.some(r=>Object.keys(t).includes(r.name))}getColorClassName(t){const n=this.colorClassNames(t.dataGroupName);let r=t.originalClassName;return t.classNameTypes.forEach(i=>r=t.originalClassName?`${r} ${i}-${n}`:`${i}-${n}`),r||""}getStatus(){return null}getAllDataGroupsNames(){return this.allDataGroups}transformToTabularData(t){console.warn("We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://charts.carbondesignsystem.com/");const n=[],{datasets:r,labels:i}=t;return r.forEach(a=>{a.data.forEach((s,o)=>{let l;const c=b(a,"label");if(c===null){const d=b(i,o);d?l=d:l="Ungrouped"}else l=c;const u={group:l,key:i[o]};isNaN(s)?(u.value=s.value,u.date=s.date):u.value=s,n.push(u)})}),n}getTabularDataArray(){return[]}exportToCSV(){const t=this.getTabularDataArray().map(a=>a.map(s=>`"${(s==="&ndash;"?"–":s).split(/[,;'"`]/).map(o=>I$(o)).join("")}"`)).map(a=>a.join(",")).join(`
2
2
  `),n=this.getOptions();let r="myChart";const i=b(n,"fileDownload","fileName");typeof i=="function"?r=i("csv"):typeof i=="string"&&(r=i),this.services.files.downloadCSV(t,`${r}.csv`)}getTabularData(t){return Array.isArray(t)?t:this.transformToTabularData(t)}sanitize(t){return t=this.getTabularData(t),t}updateAllDataGroups(){this.allDataGroups?this.getDataGroupNames().forEach(t=>{this.allDataGroups.indexOf(t)===-1&&this.allDataGroups.push(t)}):this.allDataGroups=this.getDataGroupNames()}generateDataGroups(t){const{groupMapsTo:n}=this.getOptions().data,{ACTIVE:r,DISABLED:i}=Yt.items.status,a=this.getOptions(),s=ji(t.map(l=>l[n]));a.data.selectedGroups.length&&(a.data.selectedGroups.every(l=>s.includes(l))||(a.data.selectedGroups=[]));const o=l=>!a.data.selectedGroups.length||a.data.selectedGroups.includes(l)?r:i;return s.map(l=>({name:l,status:o(l)}))}setCustomColorScale(){if(!this.isUserProvidedColorScaleValid())return;const t=this.getOptions(),n=b(t,"color","scale");Object.keys(n).forEach(r=>{this.allDataGroups.includes(r)||console.warn(`"${r}" does not exist in data groups.`)}),this.allDataGroups.filter(r=>n[r]).forEach(r=>this.colorScale[r]=n[r])}setColorClassNames(){const t=b(this.getOptions(),"color","pairing");let n=b(t,"numberOfVariants");(!n||n<this.allDataGroups.length)&&(n=this.allDataGroups.length);let r=b(t,"option");const i=af.pairingOptions,a=n>5?14:n,s=`${a}-color`;r=r<=i[s]?r:1;const o=this.allDataGroups.map((l,c)=>`${a}-${r}-${c%14+1}`);this.colorClassNames=Ds().range(o).domain(this.allDataGroups)}}class xr extends pn{constructor(t){super(t),this.axisFlavor=Ai.DEFAULT}assignRangeAndDomains(){const{cartesianScales:t}=this.services,n=this.getOptions(),r=t.isDualAxes(),i={primaryDomain:t.domainAxisPosition,primaryRange:t.rangeAxisPosition,secondaryDomain:null,secondaryRange:null};return r&&(i.secondaryDomain=t.secondaryDomainAxisPosition,i.secondaryRange=t.secondaryRangeAxisPosition),Object.keys(i).forEach(a=>{const s=i[a];t.scales[s]?i[a]={position:s,label:t.getScaleLabel(s),identifier:b(n,"axes",s,"mapsTo")}:i[a]=null}),i}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data,{primaryDomain:i,primaryRange:a,secondaryDomain:s,secondaryRange:o}=this.assignRangeAndDomains(),{number:l,code:c}=b(this.getOptions(),"locale"),u=["Group",i.label,a.label,...s?[s.label]:[],...o?[o.label]:[]],d=t.map(h=>[h[r],h[i.identifier]===null?"&ndash;":h[i.identifier],h[a.identifier]===null||isNaN(h[a.identifier])?"&ndash;":l(h[a.identifier],c),...s?[h[s.identifier]===null?"&ndash;":h[s.identifier]]:[],...o?[h[o.identifier]===null||isNaN(h[o.identifier])?"&ndash;":h[o.identifier]]:[]]);return super.formatTable({headers:u,cells:d})}setData(t){let n;if(t&&(n=super.setData(t),b(this.getOptions(),"zoomBar",F.TOP,"enabled"))){const r=b(this.getOptions(),"zoomBar",F.TOP,"data");this.setZoomBarData(r)}return n}setZoomBarData(t){const n=t?this.sanitize(On(t)):this.getDisplayData();let r=n;const{cartesianScales:i}=this.services;if(n&&i.domainAxisPosition&&i.rangeAxisPosition){const a=i.getDomainIdentifier(),s=i.getRangeIdentifier();let o=n.map(l=>l[a].getTime());o=ji(o).sort(),r=o.map(l=>{let c=0;const u={};return n.forEach(d=>{d[a].getTime()===l&&(c+=d[s])}),u[a]=new Date(l),u[s]=c,u})}this.set({zoomBarData:r})}getZoomBarData(){return this.get("zoomBarData")}sanitizeDateValues(t){const n=this.getOptions();if(!n.axes)return t;const r=[];return Object.keys(F).forEach(i=>{const a=F[i],s=n.axes[a];if(s&&s.scaleType===et.TIME){const o=s.mapsTo;(o!==null||o!==void 0)&&r.push(o)}}),r.length>0&&t.forEach(i=>{r.forEach(a=>{b(i,a,"getTime")===null&&(i[a]=new Date(i[a]))})}),t}sanitize(t){return t=super.sanitize(t),t=this.sanitizeDateValues(t),t}}class N$ extends xr{constructor(t){super(t)}getTabularDataArray(){const t=this.getDisplayData(),{number:n,code:r}=b(this.getOptions(),"locale");t.sort((s,o)=>s.source.localeCompare(o.source));const i=["Source","Target","Value"],a=[...t.map(s=>[s.source,s.target,s.value===null?"&ndash;":n(s.value,r)])];return super.formatTable({headers:i,cells:a})}}class P$ extends xr{constructor(t){super(t)}getBoxQuartiles(t){return{q_25:Rc(t,.25),q_50:Rc(t,.5),q_75:Rc(t,.75)}}getBoxplotData(){const t=this.getOptions(),{groupMapsTo:n}=t.data,r=this.getGroupedData(),i=[];for(const{name:a,data:s}of r){const o=this.services.cartesianScales.getRangeIdentifier(),l=s.map(x=>x[o]).sort(hr),c={[n]:a,counts:l,quartiles:this.getBoxQuartiles(l),outliers:null,whiskers:null},u=c.quartiles.q_25,d=c.quartiles.q_75,h=(d-u)*1.5,p=u-h,f=d+h,v=[],m=[];for(const x of l)x<p||x>f?v.push(x):m.push(x);c.outliers=v;const y=Fn(m),g=dr(m);c.whiskers={min:y||Fn([c.quartiles.q_25,c.quartiles.q_50,c.quartiles.q_75]),max:g||dr([c.quartiles.q_25,c.quartiles.q_50,c.quartiles.q_75])},i.push(c)}return i}getTabularDataArray(){const t=this.getOptions(),{groupMapsTo:n}=t.data,r=this.getBoxplotData(),{number:i,code:a}=b(t,"locale"),s=["Group","Minimum","Q1","Median","Q3","Maximum","IQR","Outlier(s)"],o=[...r.map(l=>{let c=b(l,"outliers");return(c===null||c.length===0)&&(c=["&ndash;"]),[l[n],b(l,"whiskers","min")!==null?i(b(l,"whiskers","min"),a):"&ndash;",b(l,"quartiles","q_25")!==null?i(b(l,"quartiles","q_25"),a):"&ndash;",b(l,"quartiles","q_50")!==null?i(b(l,"quartiles","q_50"),a):"&ndash;",b(l,"quartiles","q_75")!==null?i(b(l,"quartiles","q_75"),a):"&ndash;",b(l,"whiskers","max")!==null?i(b(l,"whiskers","max"),a):"&ndash;",b(l,"quartiles","q_75")!==null&&b(l,"quartiles","q_25")!==null?(i(b(l,"quartiles","q_75")-b(l,"quartiles","q_25")),a):"&ndash;",c.map(u=>i(u,a)).join(",")]})];return super.formatTable({headers:s,cells:o})}setColorClassNames(){const t=b(this.getOptions(),"color","pairing");let n=b(t,"option");const r=af.pairingOptions;n=n<=r["1-color"]?n:1;const i=this.allDataGroups.map(()=>`1-${n}-1`);this.colorClassNames=Ds().range(i).domain(this.allDataGroups)}}let U$=class extends xr{constructor(t){super(t)}getMatchingRangeIndexForDatapoint(t){let n;for(let r=t.ranges.length-1;r>0;r--){const i=t.ranges[r];if(t.value>=i)return n=r,n}return 0}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data,i=this.services.cartesianScales.getRangeIdentifier(),{number:a,code:s}=b(n,"locale"),o=b(n,"bullet","performanceAreaTitles"),l=["Title","Group","Value","Target","Percentage","Performance"],c=[...t.map(u=>[u.title,u[r],u.value===null?"&ndash;":a(u.value,s),b(u,"marker")===null?"&ndash;":a(u.marker,s),b(u,"marker")===null?"&ndash;":`${a(Math.floor(u[i]/u.marker*100),s)}%`,o[this.getMatchingRangeIndexForDatapoint(u)]])];return super.formatTable({headers:l,cells:c})}};class B$ extends pn{constructor(t){super(t),this._colorScale=void 0,this._matrix={}}getFillColor(t){return this._colorScale(t)}getCombinedData(){if(Ze(this._matrix)){const t=this.getOptions(),n=this.getDisplayData();!Ze(n)&&!Ze(t.geoData.objects.countries)&&(t.geoData.objects.countries.geometries.forEach(r=>{this._matrix[r.properties.NAME]=r}),n.forEach(r=>{this._matrix[r.name]?this._matrix[r.name].value=r.value||null:console.warn(`Data point ${r} is missing geographical data.`)}))}return this._matrix}getTabularDataArray(){const t=this.getDisplayData(),{number:n,code:r}=b(this.getOptions(),"locale"),i=["Country ID","Country Name","Value"],a=[...t.map(s=>[s.id===null?"&ndash;":s.id,s.name,s.value===null?"&ndash;":n(s.value,r)])];return super.formatTable({headers:i,cells:a})}getColorClassName(t){return`${t.originalClassName} ${this._colorScale(t.value)}`}setColorClassNames(){const t=b(this.getOptions(),"color");this._colorScale=Nf(this.getDisplayData(),t)}}let H$=class extends pn{constructor(t){super(t),this.parentNode=!1,this.set({depth:2},{skipUpdate:!0})}setData(t){super.setData(t),this.setDataGroups(),t.length===1&&(this.parentNode=!0),this.setZoom()}setOptions(t){const n=this.getOptions(),r=lt({},t,this.getZoomOptions(t));Sc(n,r);const i=this.getHierarchyLevel(),a=b(n,"circlePack","depth");this.set({options:lt(n,r),depth:a&&a<4?a:i})}getZoomOptions(t){if(!this.getDisplayData())return{};const n=this.getDisplayData(),r=t||this.getOptions(),i=n.length===1&&b(n,0,"children")?b(n,0,"children"):n;let a=this.getHierarchyLevel();return i.some(s=>{if(s.children&&s.children.some(o=>o.children))return a=3,!1}),b(r,"canvasZoom","enabled")===!0&&a>2?{legend:{additionalItems:[{type:ee.ZOOM,name:"Click to zoom"}]}}:null}setZoom(t){this.setOptions(this.getZoomOptions(t))}updateHierarchyLevel(t){this.set({depth:t})}getHierarchyLevel(){return this.get("depth")}hasParentNode(){return this.parentNode}setDataGroups(){const t=this.getData(),n=this.getOptions(),{groupMapsTo:r}=n.data,i=t.map(a=>{const s=a[r];return this.setChildrenDataGroup(a,s)});this.set({data:i},{skipUpdate:!0})}setChildrenDataGroup(t,n){return t.children?{...t,dataGroupName:n,children:t.children.map(r=>this.setChildrenDataGroup(r,n))}:{...t,dataGroupName:n}}getTabularDataArray(){const t=this.getDisplayData(),{number:n,code:r}=b(this.getOptions(),"locale"),i=["Child","Parent","Value"],a=[];return t.forEach(s=>{let o=s.value?s.value:0;s.children&&(o+=this.getChildrenDatums(s.children,s.name,a,0)),a.push(["&ndash;",s.name,n(o,r)])}),super.formatTable({headers:i,cells:a})}getChildrenDatums(t,n,r=[],i=0){const a=n,{number:s,code:o}=b(this.getOptions(),"locale");return t.forEach(l=>{const c=l.name;let u=0;if(l.children)l.children.length>0&&(typeof l.value=="number"&&(i+=l.value),u+=this.getChildrenDatums(l.children,c,r,u),r.push([c,a,s(u,o)]),i+=u);else{let d=0;typeof l.value=="number"&&(d=l.value,i+=l.value),r.push([l.name,a,s(d,o)])}}),i}},V$=class extends pn{constructor(t){super(t)}getTabularData(t){const n=super.getTabularData(t);return t!==n&&n.forEach(r=>{r.key&&r.key!==r.group&&(r.group=r.key)}),n}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data,{valueMapsTo:i}=n.pie,{number:a,code:s}=b(n,"locale"),o=["Group","Value"],l=[...t.map(c=>[c[r],c[i]===null?"&ndash;":a(c[i],s)])];return super.formatTable({headers:o,cells:l})}sanitize(t){return this.getTabularData(t).sort((n,r)=>r.value-n.value)}},G$=class extends pn{constructor(t){super(t)}getDataGroups(){return super.getDataGroups().filter(t=>t.name!=="delta")}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data,{number:i,code:a}=b(this.getOptions(),"locale"),s=["Group","Value"],o=[...t.map(l=>[l[r],l.value===null?"&ndash;":i(l.value,a)])];return super.formatTable({headers:s,cells:o})}};class F$ extends xr{constructor(t){super(t),this.axisFlavor=Ai.HOVERABLE,this._colorScale=void 0,this._domains=[],this._ranges=[],this._matrix={};const n=b(this.getOptions(),"axes");if(b(n,"left","scaleType")&&b(n,"left","scaleType")!==et.LABELS||b(n,"right","scaleType")&&b(n,"right","scaleType")!==et.LABELS||b(n,"top","scaleType")&&b(n,"top","scaleType")!==et.LABELS||b(n,"bottom","scaleType")&&b(n,"bottom","scaleType")!==et.LABELS)throw Error("Heatmap only supports label scaletypes.")}getValueDomain(){const t=Xe(this.getDisplayData(),r=>r.value),n=Je().domain(t).nice().domain();if(n[0]>0)n[0]=0;else if(n[0]===0&&n[1]===0)return[0,1];return n[0]<0&&n[1]>0&&(Math.abs(n[0])>n[1]?n[1]=Math.abs(n[0]):n[0]=-n[1]),n}getFillColor(t){return this._colorScale(t)}getUniqueDomain(){if(Ze(this._domains)){const t=this.getDisplayData(),{cartesianScales:n}=this.services,r=n.getDomainIdentifier(),i=n.getMainXAxisPosition(),a=n.getCustomDomainValuesByposition(i);if(a)return a;this._domains=Array.from(new Set(t.map(s=>s[r])))}return this._domains}getUniqueRanges(){if(Ze(this._ranges)){const t=this.getDisplayData(),{cartesianScales:n}=this.services,r=n.getRangeIdentifier(),i=n.getMainYAxisPosition(),a=n.getCustomDomainValuesByposition(i);if(a)return a;this._ranges=Array.from(new Set(t.map(s=>s[r])))}return this._ranges}getMatrix(){if(Ze(this._matrix)){const t=this.getUniqueDomain(),n=this.getUniqueRanges(),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),a={};n.forEach(s=>{a[s]={value:null,index:-1}}),t.forEach(s=>{this._matrix[s]=On(a)}),this.getDisplayData().forEach((s,o)=>{this._matrix[s[r]][s[i]]={value:s.value,index:o}})}return this._matrix}setData(t){const n=this.sanitize(On(t)),r=this.generateDataGroups(n);return this.set({data:n,dataGroups:r}),this._domains=[],this._ranges=[],this._matrix={},n}getMatrixAsArray(){Ze(this._matrix)&&this.getMatrix();const t=this.getUniqueDomain(),n=this.getUniqueRanges(),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),a=[];return t.forEach(s=>{n.forEach(o=>{const l={value:this._matrix[s][o].value,index:this._matrix[s][o].index};l[r]=s,l[i]=o,a.push(l)})}),a}getTabularDataArray(){const t=this.getDisplayData(),{primaryDomain:n,primaryRange:r}=this.assignRangeAndDomains(),{number:i,code:a}=b(this.getOptions(),"locale"),s=[n.label,r.label,"Value"],o=[...t.map(l=>[l[n.identifier]===null?"&ndash;":l[n.identifier],l[r.identifier]===null?"&ndash;":l[r.identifier],l.value===null?"&ndash;":i(l.value,a)])];return super.formatTable({headers:s,cells:o})}getColorClassName(t){return`${t.originalClassName} ${this._colorScale(t.value)}`}setColorClassNames(){const t=this.getOptions(),n=b(t,"color","gradient","colors"),r=!Ze(n);let i=b(t,"color","pairing","option");const a=this.getValueDomain(),s=a[0]<0&&a[1]>0?"diverge":"mono";(i<1&&i>4&&s==="mono"||i<1&&i>2&&s==="diverge")&&(i=1);const o=r?n:[];if(!r){const c=s==="diverge"?17:11;for(let u=1;u<c+1;u++)o.push(`fill-${s}-${i}-${u}`)}this._colorScale=Ec().domain(a).range(o);const l=b(this.getOptions(),"color");this._colorScale=Nf(this.getDisplayData(),l)}}let z$=class extends xr{getTabularDataArray(){const t=this.getOptions(),{groupMapsTo:n}=t.data,{number:r,code:i}=b(this.getOptions(),"locale"),a=this.getBinnedStackedData(),s=[Et(t,"bins.rangeLabel")||"Range",...a.map(l=>Et(l,`0.${n}`))],o=[...Et(a,0).map((l,c)=>[`${r(Number(Et(l,"data.x0")),i)} – ${r(Number(Et(l,"data.x1")),i)}`,...a.map(u=>r(Et(u[c],`data.${Et(u[c],n)}`),i))])];return super.formatTable({headers:s,cells:o})}};class j$ extends pn{constructor(t){super(t)}getMaximumDomain(t){return t.reduce((n,r)=>n+r.value,0)}getFillColor(t){const n=this.getOptions(),r=b(n,"color","scale"),i=this.getStatus();return r||!i?super.getFillColor(t):null}getStatus(){const t=this.getOptions(),n=b(this.getDisplayData()),r=(n==null?void 0:n.reduce((s,o)=>s+o.value,0))??0,i=b(t,"meter","proportional")?r:r>100?100:r,a=b(t,"meter","status","ranges");if(a){const s=a.filter(o=>o.range[0]<=i&&i<=o.range[1]);if(s.length>0)return s[0].status}return null}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data,i=this.getStatus(),a=b(n,"meter","proportional"),{number:s,code:o}=b(this.getOptions(),"locale");let l=[],c=[],u;if(a===null){u=100;const d=t[0];l=["Group","Value",...i?["Status"]:[]],c=[[d[r],d.value===null?"&ndash;":s(d.value,o),...i?[i]:[]]]}else u=b(a,"total")||this.getMaximumDomain(t),l=["Group","Value","Percentage of total"],c=[...t.map(h=>{let p;h.value!==null&&h.value!==void 0?p=Number(h.value):p=0;const f=Number((h.value/u*100).toFixed(2));return[h[r],h.value===null?"&ndash;":s(p,o),s(f,o)+" %"]})];return super.formatTable({headers:l,cells:c})}}let W$=class extends xr{constructor(t){super(t)}getTabularDataArray(){const t=this.getOptions(),n=this.getGroupedData(),{angle:r,value:i}=b(t,"radar","axes"),{number:a,code:s}=b(t,"locale"),o=b(n,"0","data").map(u=>u[r]),l=["Group",...o],c=[...n.map(u=>[u.name,...o.map((d,h)=>b(u,"data",h,i)!==null?a(b(u,"data",h,i),s):"&ndash;")])];return super.formatTable({headers:l,cells:c})}},q$=class extends pn{constructor(t){super(t)}getTabularDataArray(){const t=this.getDisplayData(),n=["Child","Parent"],r=[];return t.forEach(i=>{this.getChildrenDatums(i,r),r.push([i.name,"&ndash;"])}),super.formatTable({headers:n,cells:r})}getChildrenDatums(t,n=[]){t.children&&t.children.length>0&&t.children.forEach(r=>{this.getChildrenDatums(r,n),n.push([r.name,t.name])})}};class Y$ extends pn{constructor(t){super(t)}getTabularDataArray(){const t=this.getDisplayData(),{number:n,code:r}=b(this.getOptions(),"locale"),i=["Child","Group","Value"],a=[];return t.forEach(s=>{Array.isArray(s.children)?s.children.forEach(o=>{a.push([o.name,s.name,o.value===null?"&ndash;":n(o.value,r)])}):b(s.name)!==null&&b(s.value)&&a.push(["–",s.name,n(s.value,r)])}),super.formatTable({headers:i,cells:a})}}class Z$ extends pn{constructor(t){super(t)}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{fontSizeMapsTo:r,wordMapsTo:i}=n.wordCloud,{groupMapsTo:a}=n.data,{code:s,number:o}=b(n,"locale"),l=[n.tooltip.wordLabel,"Group",n.tooltip.valueLabel],c=[...t.map(u=>[u[i],u[a],o(u[r],s)])];return super.formatTable({headers:l,cells:c})}}var X$=/\s/;function K$(e){for(var t=e.length;t--&&X$.test(e.charAt(t)););return t}var Q$=/^\s+/;function J$(e){return e&&e.slice(0,K$(e)+1).replace(Q$,"")}var Vf=NaN,tM=/^[-+]0x[0-9a-f]+$/i,eM=/^0b[01]+$/i,nM=/^0o[0-7]+$/i,rM=parseInt;function ii(e){if(typeof e=="number")return e;if(es(e))return Vf;if(Be(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Be(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=J$(e);var n=eM.test(e);return n||nM.test(e)?rM(e.slice(2),n?2:8):tM.test(e)?Vf:+e}var Dc=function(){return qe.Date.now()},iM="Expected a function",aM=Math.max,sM=Math.min;function Hs(e,t,n){var r,i,a,s,o,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(iM);t=ii(t)||0,Be(n)&&(u=!!n.leading,d="maxWait"in n,a=d?aM(ii(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function p(S){var k=r,I=i;return r=i=void 0,c=S,s=e.apply(I,k),s}function f(S){return c=S,o=setTimeout(y,t),u?p(S):s}function v(S){var k=S-l,I=S-c,L=t-k;return d?sM(L,a-I):L}function m(S){var k=S-l,I=S-c;return l===void 0||k>=t||k<0||d&&I>=a}function y(){var S=Dc();if(m(S))return g(S);o=setTimeout(y,v(S))}function g(S){return o=void 0,h&&r?p(S):(r=i=void 0,s)}function x(){o!==void 0&&clearTimeout(o),c=0,r=l=i=o=void 0}function O(){return o===void 0?s:g(Dc())}function E(){var S=Dc(),k=m(S);if(r=arguments,i=this,l=S,k){if(o===void 0)return f(l);if(d)return clearTimeout(o),o=setTimeout(y,t),p(l)}return o===void 0&&(o=setTimeout(y,t)),s}return E.cancel=x,E.flush=O,E}function oM(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}function D(e){return typeof e=="string"?new $e([[document.querySelector(e)]],[document.documentElement]):new $e([[e]],gp)}function la(){var e=Ds().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,s,o=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var h=t().length,p=i<r,f=p?i:r,v=p?r:i;a=(v-f)/Math.max(1,h-l+c*2),o&&(a=Math.floor(a)),f+=(v-f-a*(h-l))*u,s=a*(1-l),o&&(f=Math.round(f),s=Math.round(s));var m=oM(h).map(function(y){return f+a*y});return n(p?m.reverse():m)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,o=!0,d()},e.bandwidth=function(){return s},e.step=function(){return a},e.round=function(h){return arguments.length?(o=!!h,d()):o},e.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(u=Math.max(0,Math.min(1,h)),d()):u},e.copy=function(){return la(t(),[r,i]).round(o).paddingInner(l).paddingOuter(c).align(u)},Qr.apply(d(),arguments)}function Gf(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],s;return a<i&&(s=n,n=r,r=s,s=i,i=a,a=s),e[n]=t.floor(i),e[r]=t.ceil(a),e}const Ic=new Date,Nc=new Date;function re(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const s=i(a),o=i.ceil(a);return a-s<o-a?s:o},i.offset=(a,s)=>(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,o)=>{const l=[];if(a=i.ceil(a),o=o==null?1:Math.floor(o),!(a<s)||!(o>0))return l;let c;do l.push(c=new Date(+a)),t(a,o),e(a);while(c<a&&a<s);return l},i.filter=a=>re(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;t(s,-1),!a(s););else for(;--o>=0;)for(;t(s,1),!a(s););}),n&&(i.count=(a,s)=>(Ic.setTime(+a),Nc.setTime(+s),e(Ic),e(Nc),Math.floor(n(Ic,Nc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?s=>r(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const Vs=re(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Vs.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?re(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Vs),Vs.range;const kn=1e3,Ge=kn*60,Rn=Ge*60,Ln=Rn*24,Pc=Ln*7,Ff=Ln*30,Uc=Ln*365,ai=re(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*kn)},(e,t)=>(t-e)/kn,e=>e.getUTCSeconds());ai.range;const Bc=re(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kn)},(e,t)=>{e.setTime(+e+t*Ge)},(e,t)=>(t-e)/Ge,e=>e.getMinutes());Bc.range,re(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ge)},(e,t)=>(t-e)/Ge,e=>e.getUTCMinutes()).range;const Hc=re(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kn-e.getMinutes()*Ge)},(e,t)=>{e.setTime(+e+t*Rn)},(e,t)=>(t-e)/Rn,e=>e.getHours());Hc.range,re(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Rn)},(e,t)=>(t-e)/Rn,e=>e.getUTCHours()).range;const ca=re(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ge)/Ln,e=>e.getDate()-1);ca.range;const Vc=re(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ln,e=>e.getUTCDate()-1);Vc.range,re(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ln,e=>Math.floor(e/Ln)).range;function _r(e){return re(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ge)/Pc)}const Gs=_r(0),Fs=_r(1),lM=_r(2),cM=_r(3),si=_r(4),uM=_r(5),hM=_r(6);Gs.range,Fs.range,lM.range,cM.range,si.range,uM.range,hM.range;function Er(e){return re(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Pc)}const zf=Er(0),zs=Er(1),dM=Er(2),pM=Er(3),oi=Er(4),fM=Er(5),mM=Er(6);zf.range,zs.range,dM.range,pM.range,oi.range,fM.range,mM.range;const Gc=re(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Gc.range,re(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()).range;const Dn=re(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Dn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:re(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Dn.range;const Or=re(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Or.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:re(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Or.range;function gM(e,t,n,r,i,a){const s=[[ai,1,kn],[ai,5,5*kn],[ai,15,15*kn],[ai,30,30*kn],[a,1,Ge],[a,5,5*Ge],[a,15,15*Ge],[a,30,30*Ge],[i,1,Rn],[i,3,3*Rn],[i,6,6*Rn],[i,12,12*Rn],[r,1,Ln],[r,2,2*Ln],[n,1,Pc],[t,1,Ff],[t,3,3*Ff],[e,1,Uc]];function o(c,u,d){const h=u<c;h&&([c,u]=[u,c]);const p=d&&typeof d.range=="function"?d:l(c,u,d),f=p?p.range(c,+u+1):[];return h?f.reverse():f}function l(c,u,d){const h=Math.abs(u-c)/d,p=Kl(([,,m])=>m).right(s,h);if(p===s.length)return e.every(Jl(c/Uc,u/Uc,d));if(p===0)return Vs.every(Math.max(Jl(c,u,d),1));const[f,v]=s[h/s[p-1][2]<s[p][2]/h?p-1:p];return f.every(v)}return[o,l]}const[vM,yM]=gM(Dn,Gc,Gs,ca,Hc,Bc);function Fc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function zc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ua(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function bM(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,s=e.shortDays,o=e.months,l=e.shortMonths,c=ha(i),u=da(i),d=ha(a),h=da(a),p=ha(s),f=da(s),v=ha(o),m=da(o),y=ha(l),g=da(l),x={a:A,A:U,b:B,B:q,c:null,d:Xf,e:Xf,f:GM,g:QM,G:tC,H:BM,I:HM,j:VM,L:Kf,m:FM,M:zM,p:Q,q:J,Q:rm,s:im,S:jM,u:WM,U:qM,V:YM,w:ZM,W:XM,x:null,X:null,y:KM,Y:JM,Z:eC,"%":nm},O={a:pt,A:at,b:gt,B:X,c:null,d:Jf,e:Jf,f:aC,g:mC,G:vC,H:nC,I:rC,j:iC,L:tm,m:sC,M:oC,p:nt,q:ft,Q:rm,s:im,S:lC,u:cC,U:uC,V:hC,w:dC,W:pC,x:null,X:null,y:fC,Y:gC,Z:yC,"%":nm},E={a:R,A:$,b:G,B:P,c:H,d:Yf,e:Yf,f:IM,g:qf,G:Wf,H:Zf,I:Zf,j:kM,L:DM,m:AM,M:RM,p:L,q:CM,Q:PM,s:UM,S:LM,u:wM,U:SM,V:TM,w:OM,W:$M,x:_,X:C,y:qf,Y:Wf,Z:MM,"%":NM};x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),O.x=S(n,O),O.X=S(r,O),O.c=S(t,O);function S(Y,tt){return function(ct){var z=[],$t=-1,_t=0,qt=Y.length,Nt,it,At;for(ct instanceof Date||(ct=new Date(+ct));++$t<qt;)Y.charCodeAt($t)===37&&(z.push(Y.slice(_t,$t)),(it=jf[Nt=Y.charAt(++$t)])!=null?Nt=Y.charAt(++$t):it=Nt==="e"?" ":"0",(At=tt[Nt])&&(Nt=At(ct,it)),z.push(Nt),_t=$t+1);return z.push(Y.slice(_t,$t)),z.join("")}}function k(Y,tt){return function(ct){var z=ua(1900,void 0,1),$t=I(z,Y,ct+="",0),_t,qt;if($t!=ct.length)return null;if("Q"in z)return new Date(z.Q);if("s"in z)return new Date(z.s*1e3+("L"in z?z.L:0));if(tt&&!("Z"in z)&&(z.Z=0),"p"in z&&(z.H=z.H%12+z.p*12),z.m===void 0&&(z.m="q"in z?z.q:0),"V"in z){if(z.V<1||z.V>53)return null;"w"in z||(z.w=1),"Z"in z?(_t=zc(ua(z.y,0,1)),qt=_t.getUTCDay(),_t=qt>4||qt===0?zs.ceil(_t):zs(_t),_t=Vc.offset(_t,(z.V-1)*7),z.y=_t.getUTCFullYear(),z.m=_t.getUTCMonth(),z.d=_t.getUTCDate()+(z.w+6)%7):(_t=Fc(ua(z.y,0,1)),qt=_t.getDay(),_t=qt>4||qt===0?Fs.ceil(_t):Fs(_t),_t=ca.offset(_t,(z.V-1)*7),z.y=_t.getFullYear(),z.m=_t.getMonth(),z.d=_t.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),qt="Z"in z?zc(ua(z.y,0,1)).getUTCDay():Fc(ua(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(qt+5)%7:z.w+z.U*7-(qt+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,zc(z)):Fc(z)}}function I(Y,tt,ct,z){for(var $t=0,_t=tt.length,qt=ct.length,Nt,it;$t<_t;){if(z>=qt)return-1;if(Nt=tt.charCodeAt($t++),Nt===37){if(Nt=tt.charAt($t++),it=E[Nt in jf?tt.charAt($t++):Nt],!it||(z=it(Y,ct,z))<0)return-1}else if(Nt!=ct.charCodeAt(z++))return-1}return z}function L(Y,tt,ct){var z=c.exec(tt.slice(ct));return z?(Y.p=u.get(z[0].toLowerCase()),ct+z[0].length):-1}function R(Y,tt,ct){var z=p.exec(tt.slice(ct));return z?(Y.w=f.get(z[0].toLowerCase()),ct+z[0].length):-1}function $(Y,tt,ct){var z=d.exec(tt.slice(ct));return z?(Y.w=h.get(z[0].toLowerCase()),ct+z[0].length):-1}function G(Y,tt,ct){var z=y.exec(tt.slice(ct));return z?(Y.m=g.get(z[0].toLowerCase()),ct+z[0].length):-1}function P(Y,tt,ct){var z=v.exec(tt.slice(ct));return z?(Y.m=m.get(z[0].toLowerCase()),ct+z[0].length):-1}function H(Y,tt,ct){return I(Y,t,tt,ct)}function _(Y,tt,ct){return I(Y,n,tt,ct)}function C(Y,tt,ct){return I(Y,r,tt,ct)}function A(Y){return s[Y.getDay()]}function U(Y){return a[Y.getDay()]}function B(Y){return l[Y.getMonth()]}function q(Y){return o[Y.getMonth()]}function Q(Y){return i[+(Y.getHours()>=12)]}function J(Y){return 1+~~(Y.getMonth()/3)}function pt(Y){return s[Y.getUTCDay()]}function at(Y){return a[Y.getUTCDay()]}function gt(Y){return l[Y.getUTCMonth()]}function X(Y){return o[Y.getUTCMonth()]}function nt(Y){return i[+(Y.getUTCHours()>=12)]}function ft(Y){return 1+~~(Y.getUTCMonth()/3)}return{format:function(Y){var tt=S(Y+="",x);return tt.toString=function(){return Y},tt},parse:function(Y){var tt=k(Y+="",!1);return tt.toString=function(){return Y},tt},utcFormat:function(Y){var tt=S(Y+="",O);return tt.toString=function(){return Y},tt},utcParse:function(Y){var tt=k(Y+="",!0);return tt.toString=function(){return Y},tt}}}var jf={"-":"",_:" ",0:"0"},ae=/^\s*\d+/,xM=/^%/,_M=/[\\^$*+?|[\]().{}]/g;function Tt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function EM(e){return e.replace(_M,"\\$&")}function ha(e){return new RegExp("^(?:"+e.map(EM).join("|")+")","i")}function da(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function OM(e,t,n){var r=ae.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function wM(e,t,n){var r=ae.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function SM(e,t,n){var r=ae.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function TM(e,t,n){var r=ae.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function $M(e,t,n){var r=ae.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Wf(e,t,n){var r=ae.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function qf(e,t,n){var r=ae.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function MM(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function CM(e,t,n){var r=ae.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function AM(e,t,n){var r=ae.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Yf(e,t,n){var r=ae.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function kM(e,t,n){var r=ae.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Zf(e,t,n){var r=ae.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function RM(e,t,n){var r=ae.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function LM(e,t,n){var r=ae.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function DM(e,t,n){var r=ae.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function IM(e,t,n){var r=ae.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function NM(e,t,n){var r=xM.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function PM(e,t,n){var r=ae.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function UM(e,t,n){var r=ae.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Xf(e,t){return Tt(e.getDate(),t,2)}function BM(e,t){return Tt(e.getHours(),t,2)}function HM(e,t){return Tt(e.getHours()%12||12,t,2)}function VM(e,t){return Tt(1+ca.count(Dn(e),e),t,3)}function Kf(e,t){return Tt(e.getMilliseconds(),t,3)}function GM(e,t){return Kf(e,t)+"000"}function FM(e,t){return Tt(e.getMonth()+1,t,2)}function zM(e,t){return Tt(e.getMinutes(),t,2)}function jM(e,t){return Tt(e.getSeconds(),t,2)}function WM(e){var t=e.getDay();return t===0?7:t}function qM(e,t){return Tt(Gs.count(Dn(e)-1,e),t,2)}function Qf(e){var t=e.getDay();return t>=4||t===0?si(e):si.ceil(e)}function YM(e,t){return e=Qf(e),Tt(si.count(Dn(e),e)+(Dn(e).getDay()===4),t,2)}function ZM(e){return e.getDay()}function XM(e,t){return Tt(Fs.count(Dn(e)-1,e),t,2)}function KM(e,t){return Tt(e.getFullYear()%100,t,2)}function QM(e,t){return e=Qf(e),Tt(e.getFullYear()%100,t,2)}function JM(e,t){return Tt(e.getFullYear()%1e4,t,4)}function tC(e,t){var n=e.getDay();return e=n>=4||n===0?si(e):si.ceil(e),Tt(e.getFullYear()%1e4,t,4)}function eC(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Tt(t/60|0,"0",2)+Tt(t%60,"0",2)}function Jf(e,t){return Tt(e.getUTCDate(),t,2)}function nC(e,t){return Tt(e.getUTCHours(),t,2)}function rC(e,t){return Tt(e.getUTCHours()%12||12,t,2)}function iC(e,t){return Tt(1+Vc.count(Or(e),e),t,3)}function tm(e,t){return Tt(e.getUTCMilliseconds(),t,3)}function aC(e,t){return tm(e,t)+"000"}function sC(e,t){return Tt(e.getUTCMonth()+1,t,2)}function oC(e,t){return Tt(e.getUTCMinutes(),t,2)}function lC(e,t){return Tt(e.getUTCSeconds(),t,2)}function cC(e){var t=e.getUTCDay();return t===0?7:t}function uC(e,t){return Tt(zf.count(Or(e)-1,e),t,2)}function em(e){var t=e.getUTCDay();return t>=4||t===0?oi(e):oi.ceil(e)}function hC(e,t){return e=em(e),Tt(oi.count(Or(e),e)+(Or(e).getUTCDay()===4),t,2)}function dC(e){return e.getUTCDay()}function pC(e,t){return Tt(zs.count(Or(e)-1,e),t,2)}function fC(e,t){return Tt(e.getUTCFullYear()%100,t,2)}function mC(e,t){return e=em(e),Tt(e.getUTCFullYear()%100,t,2)}function gC(e,t){return Tt(e.getUTCFullYear()%1e4,t,4)}function vC(e,t){var n=e.getUTCDay();return e=n>=4||n===0?oi(e):oi.ceil(e),Tt(e.getUTCFullYear()%1e4,t,4)}function yC(){return"+0000"}function nm(){return"%"}function rm(e){return+e}function im(e){return Math.floor(+e/1e3)}var li,am;bC({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function bC(e){return li=bM(e),am=li.format,li.parse,li.utcFormat,li.utcParse,li}function xC(e){return new Date(e)}function _C(e){return e instanceof Date?+e:+new Date(+e)}function sm(e,t,n,r,i,a,s,o,l,c){var u=nf(),d=u.invert,h=u.domain,p=c(".%L"),f=c(":%S"),v=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),g=c("%b %d"),x=c("%B"),O=c("%Y");function E(S){return(l(S)<S?p:o(S)<S?f:s(S)<S?v:a(S)<S?m:r(S)<S?i(S)<S?y:g:n(S)<S?x:O)(S)}return u.invert=function(S){return new Date(d(S))},u.domain=function(S){return arguments.length?h(Array.from(S,_C)):h().map(xC)},u.ticks=function(S){var k=h();return e(k[0],k[k.length-1],S??10)},u.tickFormat=function(S,k){return k==null?E:c(k)},u.nice=function(S){var k=h();return(!S||typeof S.range!="function")&&(S=t(k[0],k[k.length-1],S??10)),S?h(Gf(k,S)):u},u.copy=function(){return _c(u,sm(e,t,n,r,i,a,s,o,l,c))},u}function om(){return Qr.apply(sm(vM,yM,Dn,Gc,Gs,ca,Hc,Bc,ai,am).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}const lm=Math.abs,ue=Math.atan2,wr=Math.cos,EC=Math.max,jc=Math.min,fn=Math.sin,ci=Math.sqrt,he=1e-12,pa=Math.PI,js=pa/2,Ws=2*pa;function OC(e){return e>1?0:e<-1?pa:Math.acos(e)}function cm(e){return e>=1?js:e<=-1?-js:Math.asin(e)}function um(e){this._context=e}um.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function qs(e){return new um(e)}function qn(){}function hm(e){this._context=e}hm.prototype={areaStart:qn,areaEnd:qn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function dm(e){return new hm(e)}function wC(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}const SC=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function In(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}function Ys(e,t){const n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function TC(e){const t=Ys(e,"border-left-width"),n=Ys(e,"border-right-width");return e.clientWidth+t+n}function $C(e){const t=Ys(e,"border-top-width"),n=Ys(e,"border-bottom-width");return e.clientHeight+t+n}function pm(e,t={}){const n=t.width||TC(e),r=t.height||$C(e);return{width:n,height:r}}function MC(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const Ae=16384;function CC(e){(e.width>Ae||e.height>Ae)&&(e.width>Ae&&e.height>Ae?e.width>e.height?(e.height*=Ae/e.width,e.width=Ae):(e.width*=Ae/e.height,e.height=Ae):e.width>Ae?(e.height*=Ae/e.width,e.width=Ae):(e.width*=Ae/e.height,e.height=Ae))}function Zs(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function AC(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function kC(e,t,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),AC(i)}const Ee=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||Ee(n,t)};function RC(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function LC(e){return In(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function DC(e,t,n){const r=`.${e}:${t}`,i=n.cssText?RC(n):LC(n);return document.createTextNode(`${r}{${i}}`)}function fm(e,t,n){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(i===""||i==="none")return;const a=SC();try{t.className=`${t.className} ${a}`}catch{return}const s=document.createElement("style");s.appendChild(DC(a,n,r)),t.appendChild(s)}function IC(e,t){fm(e,t,":before"),fm(e,t,":after")}const mm="application/font-woff",gm="image/jpeg",NC={woff:mm,woff2:mm,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:gm,jpeg:gm,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function PC(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Wc(e){const t=PC(e).toLowerCase();return NC[t]||""}function UC(e){return e.split(/,/)[1]}function qc(e){return e.search(/^(data:)/)!==-1}function BC(e,t){return`data:${t};base64,${e}`}async function vm(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise((a,s)=>{const o=new FileReader;o.onerror=s,o.onloadend=()=>{try{a(n({res:r,result:o.result}))}catch(l){s(l)}},o.readAsDataURL(i)})}const Yc={};function HC(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function Zc(e,t,n){const r=HC(e,t,n.includeQueryParams);if(Yc[r]!=null)return Yc[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const a=await vm(e,n.fetchRequestInit,({res:s,result:o})=>(t||(t=s.headers.get("Content-Type")||""),UC(o)));i=BC(a,t)}catch(a){i=n.imagePlaceholder||"";let s=`Failed to fetch resource: ${e}`;a&&(s=typeof a=="string"?a:a.message),s&&console.warn(s)}return Yc[r]=i,i}async function VC(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Zs(t)}async function GC(e,t){if(e.currentSrc){const a=document.createElement("canvas"),s=a.getContext("2d");a.width=e.clientWidth,a.height=e.clientHeight,s==null||s.drawImage(e,0,0,a.width,a.height);const o=a.toDataURL();return Zs(o)}const n=e.poster,r=Wc(n),i=await Zc(n,r,t);return Zs(i)}async function FC(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await Xs(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function zC(e,t){return Ee(e,HTMLCanvasElement)?VC(e):Ee(e,HTMLVideoElement)?GC(e,t):Ee(e,HTMLIFrameElement)?FC(e):e.cloneNode(!1)}const jC=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function WC(e,t,n){var r,i;let a=[];return jC(e)&&e.assignedNodes?a=In(e.assignedNodes()):Ee(e,HTMLIFrameElement)&&!((r=e.contentDocument)===null||r===void 0)&&r.body?a=In(e.contentDocument.body.childNodes):a=In(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),a.length===0||Ee(e,HTMLVideoElement)||await a.reduce((s,o)=>s.then(()=>Xs(o,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function qC(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):In(r).forEach(i=>{let a=r.getPropertyValue(i);i==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),Ee(e,HTMLIFrameElement)&&i==="display"&&a==="inline"&&(a="block"),i==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(i,a,r.getPropertyPriority(i))})}function YC(e,t){Ee(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),Ee(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function ZC(e,t){if(Ee(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(i=>e.value===i.getAttribute("value"));r&&r.setAttribute("selected","")}}function XC(e,t){return Ee(t,Element)&&(qC(e,t),IC(e,t),YC(e,t),ZC(e,t)),t}async function KC(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let a=0;a<n.length;a++){const s=n[a].getAttribute("xlink:href");if(s){const o=e.querySelector(s),l=document.querySelector(s);!o&&l&&!r[s]&&(r[s]=await Xs(l,t,!0))}}const i=Object.values(r);if(i.length){const a="http://www.w3.org/1999/xhtml",s=document.createElementNS(a,"svg");s.setAttribute("xmlns",a),s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.overflow="hidden",s.style.display="none";const o=document.createElementNS(a,"defs");s.appendChild(o);for(let l=0;l<i.length;l++)o.appendChild(i[l]);e.appendChild(s)}return e}async function Xs(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>zC(r,t)).then(r=>WC(e,r,t)).then(r=>XC(e,r)).then(r=>KC(r,t))}const ym=/url\((['"]?)([^'"]+?)\1\)/g,QC=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,JC=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function t2(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function e2(e){const t=[];return e.replace(ym,(n,r,i)=>(t.push(i),n)),t.filter(n=>!qc(n))}async function n2(e,t,n,r,i){try{const a=n?wC(t,n):t,s=Wc(t);let o;return i||(o=await Zc(a,s,r)),e.replace(t2(t),`$1${o}$3`)}catch{}return e}function r2(e,{preferredFontFormat:t}){return t?e.replace(JC,n=>{for(;;){const[r,,i]=QC.exec(n)||[];if(!i)return"";if(i===t)return`src: ${r};`}}):e}function bm(e){return e.search(ym)!==-1}async function xm(e,t,n){if(!bm(e))return e;const r=r2(e,n);return e2(r).reduce((i,a)=>i.then(s=>n2(s,a,t,n)),Promise.resolve(r))}async function Ks(e,t,n){var r;const i=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(i){const a=await xm(i,null,n);return t.style.setProperty(e,a,t.style.getPropertyPriority(e)),!0}return!1}async function i2(e,t){await Ks("background",e,t)||await Ks("background-image",e,t),await Ks("mask",e,t)||await Ks("mask-image",e,t)}async function a2(e,t){const n=Ee(e,HTMLImageElement);if(!(n&&!qc(e.src))&&!(Ee(e,SVGImageElement)&&!qc(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await Zc(r,Wc(r),t);await new Promise((a,s)=>{e.onload=a,e.onerror=s;const o=e;o.decode&&(o.decode=a),o.loading==="lazy"&&(o.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function s2(e,t){const n=In(e.childNodes).map(r=>_m(r,t));await Promise.all(n).then(()=>e)}async function _m(e,t){Ee(e,Element)&&(await i2(e,t),await a2(e,t),await s2(e,t))}function o2(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(i=>{n[i]=r[i]}),e}const Em={};async function Om(e){let t=Em[e];if(t!=null)return t;const n=await(await fetch(e)).text();return t={url:e,cssText:n},Em[e]=t,t}async function wm(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(async a=>{let s=a.replace(r,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),vm(s,t.fetchRequestInit,({result:o})=>(n=n.replace(a,`url(${o})`),[a,o]))});return Promise.all(i).then(()=>n)}function Sm(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(r);if(l===null)break;t.push(l[0])}r=r.replace(i,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,s="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",o=new RegExp(s,"gi");for(;;){let l=a.exec(r);if(l===null){if(l=o.exec(r),l===null)break;a.lastIndex=o.lastIndex}else o.lastIndex=a.lastIndex;t.push(l[0])}return t}async function l2(e,t){const n=[],r=[];return e.forEach(i=>{if("cssRules"in i)try{In(i.cssRules||[]).forEach((a,s)=>{if(a.type===CSSRule.IMPORT_RULE){let o=s+1;const l=a.href,c=Om(l).then(u=>wm(u,t)).then(u=>Sm(u).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?o+=1:i.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:d,error:h})}})).catch(u=>{console.error("Error loading remote css",u.toString())});r.push(c)}})}catch(a){const s=e.find(o=>o.href==null)||document.styleSheets[0];i.href!=null&&r.push(Om(i.href).then(o=>wm(o,t)).then(o=>Sm(o).forEach(l=>{s.insertRule(l,i.cssRules.length)})).catch(o=>{console.error("Error loading remote stylesheet",o)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(i=>{if("cssRules"in i)try{In(i.cssRules||[]).forEach(a=>{n.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${i.href}`,a)}}),n))}function c2(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>bm(t.style.getPropertyValue("src")))}async function u2(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=In(e.ownerDocument.styleSheets),r=await l2(n,t);return c2(r)}async function h2(e,t){const n=await u2(e,t);return(await Promise.all(n.map(r=>{const i=r.parentStyleSheet?r.parentStyleSheet.href:null;return xm(r.cssText,i,t)}))).join(`
3
3
  `)}async function d2(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await h2(e,t);if(n){const r=document.createElement("style"),i=document.createTextNode(n);r.appendChild(i),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function p2(e,t={}){const{width:n,height:r}=pm(e,t),i=await Xs(e,t,!0);return await d2(i,t),await _m(i,t),o2(i,t),await kC(i,n,r)}async function Tm(e,t={}){const{width:n,height:r}=pm(e,t),i=await p2(e,t),a=await Zs(i),s=document.createElement("canvas"),o=s.getContext("2d"),l=t.pixelRatio||MC(),c=t.canvasWidth||n,u=t.canvasHeight||r;return s.width=c*l,s.height=u*l,t.skipAutoScale||CC(s),s.style.width=`${c}`,s.style.height=`${u}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,s.width,s.height)),o.drawImage(a,0,0,s.width,s.height),s}async function f2(e,t={}){return(await Tm(e,t)).toDataURL()}async function m2(e,t={}){return(await Tm(e,t)).toDataURL("image/jpeg",t.quality||1)}let Nn=class{constructor(t,n){this.model=t,this.services=n,this.init()}init(){}update(){}setModel(t){this.model=t}setServices(t){this.services=t}};const g2="DONT_STYLE_ME_css_styles_verifier";let N=class Uh extends Nn{constructor(t,n){super(t,n)}static getHTMLElementSize(t){return{width:t.clientWidth,height:t.clientHeight}}static getSVGElementSize(t,n={useAttrs:!1,useClientDimensions:!1,useBBox:!1,useBoundingRect:!1}){t.attr||(t=D(t));const r={width:0,height:0},i=h=>{h&&Object.keys(r).forEach(p=>{if(h[p]){const f=h[p],v=parseFloat(f);f&&v>r[p]&&(""+f).indexOf("%")===-1&&(r[p]=v)}})},a={width:t.attr("width"),height:t.attr("height")},s=t.node();let o,l,c,u;try{typeof s.getBBox=="function"&&(o=s.getBBox(),l={width:o.width,height:o.height})}catch(h){console.error(h)}try{typeof(s==null?void 0:s.getBoundingClientRect)=="function"&&(c=s.getBoundingClientRect(),u={width:c.width,height:c.height})}catch(h){console.error(h)}let d;if(s instanceof SVGSVGElement&&(d={width:s.clientWidth,height:s.clientHeight}),n){if(n.useAttrs&&(i(a),r.width>0&&r.height>0))return r;if(n.useClientDimensions&&(i(d),r.width>0&&r.height>0))return d;if(n.useBBox&&(i(l),r.width>0&&r.height>0))return l;if(n.useBoundingRect&&(i(u),r.width>0&&r.height>0))return u}try{const h={width:b(t.node(),"width","baseVal","value"),height:b(t.node(),"height","baseVal","value")};i(h)}catch{i(d),i(l),i(a)}return r}static appendOrSelect(t,n){const r=t.select(`${n}`);if(r.empty()){let i=n.split("#"),a,s;return i.length===2?(a=i[0],i=i[1].split("."),s=i[0]):(i=n.split("."),a=i[0]),t.append(a).attr("id",s).attr("class",i.slice(1).join(" "))}return r}init(){this.initializeID(),this.styleHolderElement(),this.addMainContainer(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners(),this.handleFullscreenChange()}getChartID(){return this.chartID}getElementOffset(t,n=!1){const r={left:0,top:0},i=t.getBoundingClientRect(),a=n?{left:0,top:0}:this.getHolder().getBoundingClientRect();try{r.left=i.left-a.left,r.top=i.top-a.top}catch(s){console.error(s)}return r}generateElementIDString(t){return`chart-${this.chartID}-${t}`}initializeID(){this.chartID=Math.floor((1+Math.random())*281474976710656).toString(16)}addMainContainer(){const t=this.model.getOptions(),n=b(t,"style","prefix"),r=D(this.getHolder()).append("div").classed(`${_e}--${n}--chart-wrapper`,!0).attr("id",`chart-${this.getChartID()}`).style("height","100%").style("width","100%");r.append("g").attr("class",g2),this.mainContainer=r.node()}update(){this.styleHolderElement()}styleHolderElement(){const t=this.getHolder(),{width:n,height:r,theme:i}=this.model.getOptions();n!==this.width&&(t.style.width=n,this.width=n),r!==this.height&&(t.style.height=r,this.height=r),D(this.getHolder()).classed(`${_e}--chart-holder`,!0).attr("data-carbon-theme",i)}getHolder(){return this.model.get("holder")}exportToJPG(){const t=this,n=this.model.getOptions(),r=this.getHolder(),i=D(r);i.classed("filled",!0),m2(this.getMainContainer(),{quality:1,filter:a=>!(a.classList&&a.classList.contains("cds--cc--toolbar"))}).then(function(a){var s;let o="myChart";const l=b(n,"fileDownload","fileName");typeof l=="function"?o=l("jpg"):typeof l=="string"&&(o=l),(s=t.services.files)==null||s.downloadImage(a,`${o}.jpg`),i.classed("filled",!1)})}exportToPNG(){const t=this,n=this.model.getOptions(),r=this.getHolder(),i=D(r);i.classed("filled",!0),f2(this.getMainContainer(),{quality:1,filter:a=>!(a.classList&&a.classList.contains("cds--cc--toolbar"))}).then(function(a){var s;let o="myChart";const l=b(n,"fileDownload","fileName");typeof l=="function"?o=l("png"):typeof l=="string"&&(o=l),(s=t.services.files)==null||s.downloadImage(a,`${o}.png`),i.classed("filled",!1)}).catch(function(a){console.error("oops, something went wrong!",a)})}isFullScreenMode(){return D(this.getHolder()).classed("fullscreen")}toggleFullscreen(){const t=this.getHolder();D(t).classed("fullscreen")&&(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()}handleFullscreenChange(){document.addEventListener("fullscreenchange",()=>{const t=D(this.getHolder()),n=t.classed("fullscreen");t.classed("fullscreen",!n)})}setSVGMaxHeight(){if(!this.model.getOptions().height){const{height:t}=Uh.getSVGElementSize(D(this.mainContainer),{useBBox:!0}),n=D(this.mainContainer).attr("class"),r=D(this.mainContainer).selectAll(`.${n} > svg`);let i=0;r.nodes().forEach(function(a){i+=Number(Uh.getSVGElementSize(D(a),{useBBox:!0}).height)}),i<=t?D(this.mainContainer).attr("height",i):D(this.mainContainer).attr("height","100%")}}getMainContainer(){return this.mainContainer}addHolderListeners(){const t=this.getHolder();t&&D(t).on("mouseover",()=>{var n;(n=this.services.events)==null||n.dispatchEvent(w.Chart.MOUSEOVER)}).on("mouseout",()=>{var n;(n=this.services.events)==null||n.dispatchEvent(w.Chart.MOUSEOUT)})}addResizeListener(){const t=this.getHolder();if(!t)return;let n=t.clientWidth,r=t.clientHeight;const i=Hs(()=>{var a;t&&(Math.abs(n-t.clientWidth)>1||Math.abs(r-t.clientHeight)>1)&&(n=t.clientWidth,r=t.clientHeight,(a=this.services.events)==null||a.dispatchEvent(w.Chart.RESIZE))},12.5);new ResizeObserver(i).observe(t)}},Xc=class j0 extends Nn{static appendOrUpdateLinearGradient(t){let n=t.svg.select(`defs linearGradient#${t.id}`);n.empty()&&(n=t.svg.append("defs").append("linearGradient").attr("id",t.id).attr("x1",t.x1).attr("x2",t.x2).attr("y1",t.y1).attr("y2",t.y2)),n.selectAll("stop").remove(),n.selectAll("stop").data(t.stops).enter().append("stop").attr("offset",r=>r.offset).style("stop-color",r=>r.color).style("stop-opacity",r=>r.opacity)}static getOffsetRatio(t){return(Math.abs(t[1])*100/Math.abs(t[0]-t[1])).toFixed(2)+"%"}static getStops(t,n){const r=t[0]<0&&t[1]>0;let i=[{offset:"0%",color:n,opacity:"0.6"},{offset:"80%",color:n,opacity:"0"}];return r&&(i=[{offset:"0%",color:n,opacity:"0.6"},{offset:j0.getOffsetRatio(t),color:n,opacity:"0"},{offset:"100%",color:n,opacity:"0.6"}]),i}};function $m(e){const t=v2(Mm(e),360);return Yn(t,[0,10])||Yn(t,[350,0])?{textAnchor:on.START,dominantBaseline:ln.MIDDLE}:Yn(t,[10,80])?{textAnchor:on.START,dominantBaseline:ln.HANGING}:Yn(t,[80,100])?{textAnchor:on.MIDDLE,dominantBaseline:ln.HANGING}:Yn(t,[100,170])?{textAnchor:on.END,dominantBaseline:ln.HANGING}:Yn(t,[170,190])?{textAnchor:on.END,dominantBaseline:ln.MIDDLE}:Yn(t,[190,260])?{textAnchor:on.END,dominantBaseline:ln.BASELINE}:Yn(t,[260,280])?{textAnchor:on.MIDDLE,dominantBaseline:ln.BASELINE}:{textAnchor:on.START,dominantBaseline:ln.BASELINE}}function v2(e,t){return(e%t+t)%t}function Yn(e,[t,n]){return e>=t&&e<=n}function Mm(e){return e*(180/Math.PI)}function Zt(e,t,n={x:0,y:0}){const r=t*Math.cos(e)+n.x,i=t*Math.sin(e)+n.y;return{x:isNaN(r)?0:r,y:isNaN(i)?0:i}}function y2(e,t){return t*Math.sin(e-Math.PI/2)}function b2(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;)n=t(n,e[i],i,e);return n}function x2(e){return function(t){return e==null?void 0:e[t]}}var _2={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},E2=x2(_2),O2=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,w2="\\u0300-\\u036f",S2="\\ufe20-\\ufe2f",T2="\\u20d0-\\u20ff",$2=w2+S2+T2,M2="["+$2+"]",C2=RegExp(M2,"g");function A2(e){return e=Vi(e),e&&e.replace(O2,E2).replace(C2,"")}var k2=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function R2(e){return e.match(k2)||[]}var L2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function D2(e){return L2.test(e)}var Cm="\\ud800-\\udfff",I2="\\u0300-\\u036f",N2="\\ufe20-\\ufe2f",P2="\\u20d0-\\u20ff",U2=I2+N2+P2,Am="\\u2700-\\u27bf",km="a-z\\xdf-\\xf6\\xf8-\\xff",B2="\\xac\\xb1\\xd7\\xf7",H2="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",V2="\\u2000-\\u206f",G2=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rm="A-Z\\xc0-\\xd6\\xd8-\\xde",F2="\\ufe0e\\ufe0f",Lm=B2+H2+V2+G2,Dm="['’]",Im="["+Lm+"]",z2="["+U2+"]",Nm="\\d+",j2="["+Am+"]",Pm="["+km+"]",Um="[^"+Cm+Lm+Nm+Am+km+Rm+"]",W2="\\ud83c[\\udffb-\\udfff]",q2="(?:"+z2+"|"+W2+")",Y2="[^"+Cm+"]",Bm="(?:\\ud83c[\\udde6-\\uddff]){2}",Hm="[\\ud800-\\udbff][\\udc00-\\udfff]",ui="["+Rm+"]",Z2="\\u200d",Vm="(?:"+Pm+"|"+Um+")",X2="(?:"+ui+"|"+Um+")",Gm="(?:"+Dm+"(?:d|ll|m|re|s|t|ve))?",Fm="(?:"+Dm+"(?:D|LL|M|RE|S|T|VE))?",zm=q2+"?",jm="["+F2+"]?",K2="(?:"+Z2+"(?:"+[Y2,Bm,Hm].join("|")+")"+jm+zm+")*",Q2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",J2="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tA=jm+zm+K2,eA="(?:"+[j2,Bm,Hm].join("|")+")"+tA,nA=RegExp([ui+"?"+Pm+"+"+Gm+"(?="+[Im,ui,"$"].join("|")+")",X2+"+"+Fm+"(?="+[Im,ui+Vm,"$"].join("|")+")",ui+"?"+Vm+"+"+Gm,ui+"+"+Fm,J2,Q2,Nm,eA].join("|"),"g");function rA(e){return e.match(nA)||[]}function iA(e,t,n){return e=Vi(e),t=t,t===void 0?D2(e)?rA(e):R2(e):e.match(t)||[]}var aA="['’]",sA=RegExp(aA,"g");function Wm(e){return function(t){return b2(iA(A2(t).replace(sA,"")),e,"")}}function oA(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function qm(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=ii(n),n=n===n?n:0),t!==void 0&&(t=ii(t),t=t===t?t:0),oA(ii(e),t,n)}var lA="Expected a function";function cA(e,t,n){if(typeof e!="function")throw new TypeError(lA);return setTimeout(function(){e.apply(void 0,n)},t)}var uA=Rl(function(e,t,n){return cA(e,ii(t)||0,n)});function hA(e,t){var n=-1,r=cr(e)?Array(e.length):[];return Ac(e,function(i,a,s){r[++n]=t(i,a,s)}),r}function dA(e,t){var n=se(e)?Tl:hA;return n(e,ps(t))}var pA=1/0;function fA(e,t){return cs(dA(e,t),pA)}function Ym(e,t){return ds(e,t)}var hi=Wm(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});function mA(e,t){var n;return Ac(e,function(r,i,a){return n=t(r,i,a),!n}),!!n}function gA(e,t,n){var r=se(e)?Gd:mA;return r(e,ps(t))}class Sr{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],s=t+a,o=Math.abs(t)<Math.abs(a)?t-(s-a):a-(s-t);o&&(n[r++]=o),t=s}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,a,s=0;if(n>0){for(s=t[--n];n>0&&(r=s,i=t[--n],s=r+i,a=i-(s-r),!a););n>0&&(a<0&&t[n-1]<0||a>0&&t[n-1]>0)&&(i=a*2,r=s+i,i==r-s&&(s=r))}return s}}function*vA(e){for(const t of e)yield*t}function Zm(e){return Array.from(vA(e))}function yA(e){return e}var Qs=1,Js=2,Kc=3,fa=4,Xm=1e-6;function bA(e){return"translate("+e+",0)"}function xA(e){return"translate(0,"+e+")"}function _A(e){return t=>+e(t)}function EA(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function OA(){return!this.__axis}function to(e,t){var n=[],r=null,i=null,a=6,s=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===Qs||e===fa?-1:1,u=e===fa||e===Js?"x":"y",d=e===Qs||e===Kc?bA:xA;function h(p){var f=r??(t.ticks?t.ticks.apply(t,n):t.domain()),v=i??(t.tickFormat?t.tickFormat.apply(t,n):yA),m=Math.max(a,0)+o,y=t.range(),g=+y[0]+l,x=+y[y.length-1]+l,O=(t.bandwidth?EA:_A)(t.copy(),l),E=p.selection?p.selection():p,S=E.selectAll(".domain").data([null]),k=E.selectAll(".tick").data(f,t).order(),I=k.exit(),L=k.enter().append("g").attr("class","tick"),R=k.select("line"),$=k.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(L),R=R.merge(L.append("line").attr("stroke","currentColor").attr(u+"2",c*a)),$=$.merge(L.append("text").attr("fill","currentColor").attr(u,c*m).attr("dy",e===Qs?"0em":e===Kc?"0.71em":"0.32em")),p!==E&&(S=S.transition(p),k=k.transition(p),R=R.transition(p),$=$.transition(p),I=I.transition(p).attr("opacity",Xm).attr("transform",function(G){return isFinite(G=O(G))?d(G+l):this.getAttribute("transform")}),L.attr("opacity",Xm).attr("transform",function(G){var P=this.parentNode.__axis;return d((P&&isFinite(P=P(G))?P:O(G))+l)})),I.remove(),S.attr("d",e===fa||e===Js?s?"M"+c*s+","+g+"H"+l+"V"+x+"H"+c*s:"M"+l+","+g+"V"+x:s?"M"+g+","+c*s+"V"+l+"H"+x+"V"+c*s:"M"+g+","+l+"H"+x),k.attr("opacity",1).attr("transform",function(G){return d(O(G)+l)}),R.attr(u+"2",c*a),$.attr(u,c*m).text(v),E.filter(OA).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Js?"start":e===fa?"end":"middle"),E.each(function(){this.__axis=O})}return h.scale=function(p){return arguments.length?(t=p,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(p){return arguments.length?(n=p==null?[]:Array.from(p),h):n.slice()},h.tickValues=function(p){return arguments.length?(r=p==null?null:Array.from(p),h):r&&r.slice()},h.tickFormat=function(p){return arguments.length?(i=p,h):i},h.tickSize=function(p){return arguments.length?(a=s=+p,h):a},h.tickSizeInner=function(p){return arguments.length?(a=+p,h):a},h.tickSizeOuter=function(p){return arguments.length?(s=+p,h):s},h.tickPadding=function(p){return arguments.length?(o=+p,h):o},h.offset=function(p){return arguments.length?(l=+p,h):l},h}function wA(e){return to(Qs,e)}function SA(e){return to(Js,e)}function Qc(e){return to(Kc,e)}function Km(e){return to(fa,e)}const Jc={capture:!0,passive:!1};function tu(e){e.preventDefault(),e.stopImmediatePropagation()}function TA(e){var t=e.document.documentElement,n=D(e).on("dragstart.drag",tu,Jc);"onselectstart"in t?n.on("selectstart.drag",tu,Jc):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function $A(e,t){var n=e.document.documentElement,r=D(e).on("dragstart.drag",null);t&&(r.on("click.drag",tu,Jc),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function MA(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}const CA=e=>+e,eu=e=>()=>e;function AA(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function kA(e){e.stopImmediatePropagation()}function nu(e){e.preventDefault(),e.stopImmediatePropagation()}var Qm={name:"drag"},ru={name:"space"},di={name:"handle"},pi={name:"center"};const{abs:Jm,max:de,min:pe}=Math;function tg(e){return[+e[0],+e[1]]}function eg(e){return[tg(e[0]),tg(e[1])]}var eo={name:"x",handles:["w","e"].map(no),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},iu={name:"y",handles:["n","s"].map(no),input:function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},Pn={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ng={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},rg={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},RA={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},LA={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function no(e){return{type:e}}function DA(e){return!e.ctrlKey&&!e.button}function IA(){var e=this.ownerSVGElement||this;return 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]]}function NA(){return navigator.maxTouchPoints||"ontouchstart"in this}function au(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function PA(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function ig(){return UA(eo)}function UA(e){var t=IA,n=DA,r=NA,i=!0,a=tc("start","brush","end"),s=6,o;function l(m){var y=m.property("__brush",v).selectAll(".overlay").data([no("overlay")]);y.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Pn.overlay).merge(y).each(function(){var x=au(this).extent;D(this).attr("x",x[0][0]).attr("y",x[0][1]).attr("width",x[1][0]-x[0][0]).attr("height",x[1][1]-x[0][1])}),m.selectAll(".selection").data([no("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Pn.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var g=m.selectAll(".handle").data(e.handles,function(x){return x.type});g.exit().remove(),g.enter().append("rect").attr("class",function(x){return"handle handle--"+x.type}).attr("cursor",function(x){return Pn[x.type]}),m.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",f).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}l.move=function(m,y,g){m.tween?m.on("start.brush",function(x){u(this,arguments).beforestart().start(x)}).on("interrupt.brush end.brush",function(x){u(this,arguments).end(x)}).tween("brush",function(){var x=this,O=x.__brush,E=u(x,arguments),S=O.selection,k=e.input(typeof y=="function"?y.apply(this,arguments):y,O.extent),I=Xi(S,k);function L(R){O.selection=R===1&&k===null?null:I(R),c.call(x),E.brush()}return S!==null&&k!==null?L:L(1)}):m.each(function(){var x=this,O=arguments,E=x.__brush,S=e.input(typeof y=="function"?y.apply(x,O):y,E.extent),k=u(x,O).beforestart();gc(x),E.selection=S===null?null:S,c.call(x),k.start(g).brush(g).end(g)})},l.clear=function(m,y){l.move(m,null,y)};function c(){var m=D(this),y=au(this).selection;y?(m.selectAll(".selection").style("display",null).attr("x",y[0][0]).attr("y",y[0][1]).attr("width",y[1][0]-y[0][0]).attr("height",y[1][1]-y[0][1]),m.selectAll(".handle").style("display",null).attr("x",function(g){return g.type[g.type.length-1]==="e"?y[1][0]-s/2:y[0][0]-s/2}).attr("y",function(g){return g.type[0]==="s"?y[1][1]-s/2:y[0][1]-s/2}).attr("width",function(g){return g.type==="n"||g.type==="s"?y[1][0]-y[0][0]+s:s}).attr("height",function(g){return g.type==="e"||g.type==="w"?y[1][1]-y[0][1]+s:s})):m.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(m,y,g){var x=m.__brush.emitter;return x&&(!g||!x.clean)?x:new d(m,y,g)}function d(m,y,g){this.that=m,this.args=y,this.state=m.__brush,this.active=0,this.clean=g}d.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(m,y){return this.starting?(this.starting=!1,this.emit("start",m,y)):this.emit("brush",m),this},brush:function(m,y){return this.emit("brush",m,y),this},end:function(m,y){return--this.active===0&&(delete this.state.emitter,this.emit("end",m,y)),this},emit:function(m,y,g){var x=D(this.that).datum();a.call(m,this.that,new AA(m,{sourceEvent:y,target:l,selection:e.output(this.state.selection),mode:g,dispatch:a}),x)}};function h(m){if(o&&!m.touches||!n.apply(this,arguments))return;var y=this,g=m.target.__data__.type,x=(i&&m.metaKey?g="overlay":g)==="selection"?Qm:i&&m.altKey?pi:di,O=e===iu?null:RA[g],E=e===eo?null:LA[g],S=au(y),k=S.extent,I=S.selection,L=k[0][0],R,$,G=k[0][1],P,H,_=k[1][0],C,A,U=k[1][1],B,q,Q=0,J=0,pt,at=O&&E&&i&&m.shiftKey,gt,X,nt=Array.from(m.touches||[m],it=>{const At=it.identifier;return it=pr(it,y),it.point0=it.slice(),it.identifier=At,it});gc(y);var ft=u(y,arguments,!0).beforestart();if(g==="overlay"){I&&(pt=!0);const it=[nt[0],nt[1]||nt[0]];S.selection=I=[[R=e===iu?L:pe(it[0][0],it[1][0]),P=e===eo?G:pe(it[0][1],it[1][1])],[C=e===iu?_:de(it[0][0],it[1][0]),B=e===eo?U:de(it[0][1],it[1][1])]],nt.length>1&&$t(m)}else R=I[0][0],P=I[0][1],C=I[1][0],B=I[1][1];$=R,H=P,A=C,q=B;var Y=D(y).attr("pointer-events","none"),tt=Y.selectAll(".overlay").attr("cursor",Pn[g]);if(m.touches)ft.moved=z,ft.ended=_t;else{var ct=D(m.view).on("mousemove.brush",z,!0).on("mouseup.brush",_t,!0);i&&ct.on("keydown.brush",qt,!0).on("keyup.brush",Nt,!0),TA(m.view)}c.call(y),ft.start(m,x.name);function z(it){for(const At of it.changedTouches||[it])for(const Ie of nt)Ie.identifier===At.identifier&&(Ie.cur=pr(At,y));if(at&&!gt&&!X&&nt.length===1){const At=nt[0];Jm(At.cur[0]-At[0])>Jm(At.cur[1]-At[1])?X=!0:gt=!0}for(const At of nt)At.cur&&(At[0]=At.cur[0],At[1]=At.cur[1]);pt=!0,nu(it),$t(it)}function $t(it){const At=nt[0],Ie=At.point0;var Ne;switch(Q=At[0]-Ie[0],J=At[1]-Ie[1],x){case ru:case Qm:{O&&(Q=de(L-R,pe(_-C,Q)),$=R+Q,A=C+Q),E&&(J=de(G-P,pe(U-B,J)),H=P+J,q=B+J);break}case di:{nt[1]?(O&&($=de(L,pe(_,nt[0][0])),A=de(L,pe(_,nt[1][0])),O=1),E&&(H=de(G,pe(U,nt[0][1])),q=de(G,pe(U,nt[1][1])),E=1)):(O<0?(Q=de(L-R,pe(_-R,Q)),$=R+Q,A=C):O>0&&(Q=de(L-C,pe(_-C,Q)),$=R,A=C+Q),E<0?(J=de(G-P,pe(U-P,J)),H=P+J,q=B):E>0&&(J=de(G-B,pe(U-B,J)),H=P,q=B+J));break}case pi:{O&&($=de(L,pe(_,R-Q*O)),A=de(L,pe(_,C+Q*O))),E&&(H=de(G,pe(U,P-J*E)),q=de(G,pe(U,B+J*E)));break}}A<$&&(O*=-1,Ne=R,R=C,C=Ne,Ne=$,$=A,A=Ne,g in ng&&tt.attr("cursor",Pn[g=ng[g]])),q<H&&(E*=-1,Ne=P,P=B,B=Ne,Ne=H,H=q,q=Ne,g in rg&&tt.attr("cursor",Pn[g=rg[g]])),S.selection&&(I=S.selection),gt&&($=I[0][0],A=I[1][0]),X&&(H=I[0][1],q=I[1][1]),(I[0][0]!==$||I[0][1]!==H||I[1][0]!==A||I[1][1]!==q)&&(S.selection=[[$,H],[A,q]],c.call(y),ft.brush(it,x.name))}function _t(it){if(kA(it),it.touches){if(it.touches.length)return;o&&clearTimeout(o),o=setTimeout(function(){o=null},500)}else $A(it.view,pt),ct.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Y.attr("pointer-events","all"),tt.attr("cursor",Pn.overlay),S.selection&&(I=S.selection),PA(I)&&(S.selection=null,c.call(y)),ft.end(it,x.name)}function qt(it){switch(it.keyCode){case 16:{at=O&&E;break}case 18:{x===di&&(O&&(C=A-Q*O,R=$+Q*O),E&&(B=q-J*E,P=H+J*E),x=pi,$t(it));break}case 32:{(x===di||x===pi)&&(O<0?C=A-Q:O>0&&(R=$-Q),E<0?B=q-J:E>0&&(P=H-J),x=ru,tt.attr("cursor",Pn.selection),$t(it));break}default:return}nu(it)}function Nt(it){switch(it.keyCode){case 16:{at&&(gt=X=at=!1,$t(it));break}case 18:{x===pi&&(O<0?C=A:O>0&&(R=$),E<0?B=q:E>0&&(P=H),x=di,$t(it));break}case 32:{x===ru&&(it.altKey?(O&&(C=A-Q*O,R=$+Q*O),E&&(B=q-J*E,P=H+J*E),x=pi):(O<0?C=A:O>0&&(R=$),E<0?B=q:E>0&&(P=H),x=di),tt.attr("cursor",Pn[g]),$t(it));break}default:return}nu(it)}}function p(m){u(this,arguments).moved(m)}function f(m){u(this,arguments).ended(m)}function v(){var m=this.__brush||{selection:null};return m.extent=eg(t.apply(this,arguments)),m.dim=e,m}return l.extent=function(m){return arguments.length?(t=typeof m=="function"?m:eu(eg(m)),l):t},l.filter=function(m){return arguments.length?(n=typeof m=="function"?m:eu(!!m),l):n},l.touchable=function(m){return arguments.length?(r=typeof m=="function"?m:eu(!!m),l):r},l.handleSize=function(m){return arguments.length?(s=+m,l):s},l.keyModifiers=function(m){return arguments.length?(i=!!m,l):i},l.on=function(){var m=a.on.apply(a,arguments);return m===a?l:m},l}const su=Math.PI,ou=2*su,Tr=1e-6,BA=ou-Tr;function ag(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function HA(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return ag;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let lu=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?ag:HA(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,o=n-e,l=r-t,c=a-e,u=s-t,d=c*c+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Tr)if(!(Math.abs(u*o-l*c)>Tr)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let h=n-a,p=r-s,f=o*o+l*l,v=h*h+p*p,m=Math.sqrt(f),y=Math.sqrt(d),g=i*Math.tan((su-Math.acos((f+d-v)/(2*m*y)))/2),x=g/y,O=g/m;Math.abs(x-1)>Tr&&this._append`L${e+x*c},${t+x*u}`,this._append`A${i},${i},0,0,${+(u*h>c*p)},${this._x1=e+O*o},${this._y1=t+O*l}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(r),o=n*Math.sin(r),l=e+s,c=t+o,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Tr||Math.abs(this._y1-c)>Tr)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%ou+ou),d>BA?this._append`A${n},${n},0,1,${u},${e-s},${t-o}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>Tr&&this._append`A${n},${n},0,${+(d>=su)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function sg(){return new lu}sg.prototype=lu.prototype;var Rt=1e-6,og=1e-12,yt=Math.PI,Oe=yt/2,lg=yt/4,ke=yt*2,ge=180/yt,Xt=yt/180,Lt=Math.abs,cg=Math.atan,$r=Math.atan2,It=Math.cos,VA=Math.exp,GA=Math.log,Ct=Math.sin,Zn=Math.sign||function(e){return e>0?1:e<0?-1:0},nn=Math.sqrt,FA=Math.tan;function zA(e){return e>1?0:e<-1?yt:Math.acos(e)}function Un(e){return e>1?Oe:e<-1?-Oe:Math.asin(e)}function Fe(){}function ro(e,t){e&&hg.hasOwnProperty(e.type)&&hg[e.type](e,t)}var ug={Feature:function(e,t){ro(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)ro(n[r].geometry,t)}},hg={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){cu(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)cu(n[r],t,0)},Polygon:function(e,t){dg(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)dg(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)ro(n[r],t)}};function cu(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 dg(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)cu(e[n],t,1);t.polygonEnd()}function fi(e,t){e&&ug.hasOwnProperty(e.type)?ug[e.type](e,t):ro(e,t)}function uu(e){return[$r(e[1],e[0]),Un(e[2])]}function mi(e){var t=e[0],n=e[1],r=It(n);return[r*It(t),r*Ct(t),Ct(n)]}function io(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function ao(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 hu(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function so(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function du(e){var t=nn(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function pu(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 fu(e,t){return Lt(e)>yt&&(e-=Math.round(e/ke)*ke),[e,t]}fu.invert=fu;function pg(e,t,n){return(e%=ke)?t||n?pu(mg(e),gg(t,n)):mg(e):t||n?gg(t,n):fu}function fg(e){return function(t,n){return t+=e,Lt(t)>yt&&(t-=Math.round(t/ke)*ke),[t,n]}}function mg(e){var t=fg(e);return t.invert=fg(-e),t}function gg(e,t){var n=It(e),r=Ct(e),i=It(t),a=Ct(t);function s(o,l){var c=It(l),u=It(o)*c,d=Ct(o)*c,h=Ct(l),p=h*n+u*r;return[$r(d*i-p*a,u*n-h*r),Un(p*i+d*a)]}return s.invert=function(o,l){var c=It(l),u=It(o)*c,d=Ct(o)*c,h=Ct(l),p=h*i-d*a;return[$r(d*i+h*a,u*n+p*r),Un(p*n-u*r)]},s}function jA(e){e=pg(e[0]*Xt,e[1]*Xt,e.length>2?e[2]*Xt:0);function t(n){return n=e(n[0]*Xt,n[1]*Xt),n[0]*=ge,n[1]*=ge,n}return t.invert=function(n){return n=e.invert(n[0]*Xt,n[1]*Xt),n[0]*=ge,n[1]*=ge,n},t}function WA(e,t,n,r,i,a){if(n){var s=It(t),o=Ct(t),l=r*n;i==null?(i=t+r*ke,a=t-l/2):(i=vg(s,i),a=vg(s,a),(r>0?i<a:i>a)&&(i+=r*ke));for(var c,u=i;r>0?u>a:u<a;u-=l)c=uu([s,-o*It(u),-o*Ct(u)]),e.point(c[0],c[1])}}function vg(e,t){t=mi(t),t[0]-=e,du(t);var n=zA(-t[1]);return((-t[2]<0?-n:n)+ke-Rt)%ke}function yg(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:Fe,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function oo(e,t){return Lt(e[0]-t[0])<Rt&&Lt(e[1]-t[1])<Rt}function lo(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 bg(e,t,n,r,i){var a=[],s=[],o,l;if(e.forEach(function(f){if(!((v=f.length-1)<=0)){var v,m=f[0],y=f[v],g;if(oo(m,y)){if(!m[2]&&!y[2]){for(i.lineStart(),o=0;o<v;++o)i.point((m=f[o])[0],m[1]);i.lineEnd();return}y[0]+=2*Rt}a.push(g=new lo(m,f,null,!0)),s.push(g.o=new lo(m,null,g,!1)),a.push(g=new lo(y,f,null,!1)),s.push(g.o=new lo(y,null,g,!0))}}),!!a.length){for(s.sort(t),xg(a),xg(s),o=0,l=s.length;o<l;++o)s[o].e=n=!n;for(var c=a[0],u,d;;){for(var h=c,p=!0;h.v;)if((h=h.n)===c)return;u=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(o=0,l=u.length;o<l;++o)i.point((d=u[o])[0],d[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(u=h.p.z,o=u.length-1;o>=0;--o)i.point((d=u[o])[0],d[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,u=h.z,p=!p}while(!h.v);i.lineEnd()}}}function xg(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 mu(e){return Lt(e[0])<=yt?e[0]:Zn(e[0])*((Lt(e[0])+yt)%ke-yt)}function qA(e,t){var n=mu(t),r=t[1],i=Ct(r),a=[Ct(n),-It(n),0],s=0,o=0,l=new Sr;i===1?r=Oe+Rt:i===-1&&(r=-Oe-Rt);for(var c=0,u=e.length;c<u;++c)if(h=(d=e[c]).length)for(var d,h,p=d[h-1],f=mu(p),v=p[1]/2+lg,m=Ct(v),y=It(v),g=0;g<h;++g,f=O,m=S,y=k,p=x){var x=d[g],O=mu(x),E=x[1]/2+lg,S=Ct(E),k=It(E),I=O-f,L=I>=0?1:-1,R=L*I,$=R>yt,G=m*S;if(l.add($r(G*L*Ct(R),y*k+G*It(R))),s+=$?I+L*ke:I,$^f>=n^O>=n){var P=ao(mi(p),mi(x));du(P);var H=ao(a,P);du(H);var _=($^I>=0?-1:1)*Un(H[2]);(r>_||r===_&&(P[0]||P[1]))&&(o+=$^I>=0?1:-1)}}return(s<-Rt||s<Rt&&l<-og)^o&1}function _g(e,t,n,r){return function(i){var a=t(i),s=yg(),o=t(s),l=!1,c,u,d,h={point:p,lineStart:v,lineEnd:m,polygonStart:function(){h.point=y,h.lineStart=g,h.lineEnd=x,u=[],c=[]},polygonEnd:function(){h.point=p,h.lineStart=v,h.lineEnd=m,u=Zm(u);var O=qA(c,r);u.length?(l||(i.polygonStart(),l=!0),bg(u,ZA,O,n,i)):O&&(l||(i.polygonStart(),l=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),u=c=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(O,E){e(O,E)&&i.point(O,E)}function f(O,E){a.point(O,E)}function v(){h.point=f,a.lineStart()}function m(){h.point=p,a.lineEnd()}function y(O,E){d.push([O,E]),o.point(O,E)}function g(){o.lineStart(),d=[]}function x(){y(d[0][0],d[0][1]),o.lineEnd();var O=o.clean(),E=s.result(),S,k=E.length,I,L,R;if(d.pop(),c.push(d),d=null,!!k){if(O&1){if(L=E[0],(I=L.length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),S=0;S<I;++S)i.point((R=L[S])[0],R[1]);i.lineEnd()}return}k>1&&O&2&&E.push(E.pop().concat(E.shift())),u.push(E.filter(YA))}}return h}}function YA(e){return e.length>1}function ZA(e,t){return((e=e.x)[0]<0?e[1]-Oe-Rt:Oe-e[1])-((t=t.x)[0]<0?t[1]-Oe-Rt:Oe-t[1])}const Eg=_g(function(){return!0},XA,QA,[-yt,-Oe]);function XA(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,s){var o=a>0?yt:-yt,l=Lt(a-t);Lt(l-yt)<Rt?(e.point(t,n=(n+s)/2>0?Oe:-Oe),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(o,n),e.point(a,n),i=0):r!==o&&l>=yt&&(Lt(t-r)<Rt&&(t-=r*Rt),Lt(a-o)<Rt&&(a-=o*Rt),n=KA(t,n,a,s),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(o,n),i=0),e.point(t=a,n=s),r=o},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function KA(e,t,n,r){var i,a,s=Ct(e-n);return Lt(s)>Rt?cg((Ct(t)*(a=It(r))*Ct(n)-Ct(r)*(i=It(t))*Ct(e))/(i*a*s)):(t+r)/2}function QA(e,t,n,r){var i;if(e==null)i=n*Oe,r.point(-yt,i),r.point(0,i),r.point(yt,i),r.point(yt,0),r.point(yt,-i),r.point(0,-i),r.point(-yt,-i),r.point(-yt,0),r.point(-yt,i);else if(Lt(e[0]-t[0])>Rt){var a=e[0]<t[0]?yt:-yt;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function JA(e){var t=It(e),n=2*Xt,r=t>0,i=Lt(t)>Rt;function a(u,d,h,p){WA(p,e,n,h,u,d)}function s(u,d){return It(u)*It(d)>t}function o(u){var d,h,p,f,v;return{lineStart:function(){f=p=!1,v=1},point:function(m,y){var g=[m,y],x,O=s(m,y),E=r?O?0:c(m,y):O?c(m+(m<0?yt:-yt),y):0;if(!d&&(f=p=O)&&u.lineStart(),O!==p&&(x=l(d,g),(!x||oo(d,x)||oo(g,x))&&(g[2]=1)),O!==p)v=0,O?(u.lineStart(),x=l(g,d),u.point(x[0],x[1])):(x=l(d,g),u.point(x[0],x[1],2),u.lineEnd()),d=x;else if(i&&d&&r^O){var S;!(E&h)&&(S=l(g,d,!0))&&(v=0,r?(u.lineStart(),u.point(S[0][0],S[0][1]),u.point(S[1][0],S[1][1]),u.lineEnd()):(u.point(S[1][0],S[1][1]),u.lineEnd(),u.lineStart(),u.point(S[0][0],S[0][1],3)))}O&&(!d||!oo(d,g))&&u.point(g[0],g[1]),d=g,p=O,h=E},lineEnd:function(){p&&u.lineEnd(),d=null},clean:function(){return v|(f&&p)<<1}}}function l(u,d,h){var p=mi(u),f=mi(d),v=[1,0,0],m=ao(p,f),y=io(m,m),g=m[0],x=y-g*g;if(!x)return!h&&u;var O=t*y/x,E=-t*g/x,S=ao(v,m),k=so(v,O),I=so(m,E);hu(k,I);var L=S,R=io(k,L),$=io(L,L),G=R*R-$*(io(k,k)-1);if(!(G<0)){var P=nn(G),H=so(L,(-R-P)/$);if(hu(H,k),H=uu(H),!h)return H;var _=u[0],C=d[0],A=u[1],U=d[1],B;C<_&&(B=_,_=C,C=B);var q=C-_,Q=Lt(q-yt)<Rt,J=Q||q<Rt;if(!Q&&U<A&&(B=A,A=U,U=B),J?Q?A+U>0^H[1]<(Lt(H[0]-_)<Rt?A:U):A<=H[1]&&H[1]<=U:q>yt^(_<=H[0]&&H[0]<=C)){var pt=so(L,(-R+P)/$);return hu(pt,k),[H,uu(pt)]}}}function c(u,d){var h=r?e:yt-e,p=0;return u<-h?p|=1:u>h&&(p|=2),d<-h?p|=4:d>h&&(p|=8),p}return _g(s,o,a,r?[0,-e]:[-yt,e-yt])}function tk(e,t,n,r,i,a){var s=e[0],o=e[1],l=t[0],c=t[1],u=0,d=1,h=l-s,p=c-o,f;if(f=n-s,!(!h&&f>0)){if(f/=h,h<0){if(f<u)return;f<d&&(d=f)}else if(h>0){if(f>d)return;f>u&&(u=f)}if(f=i-s,!(!h&&f<0)){if(f/=h,h<0){if(f>d)return;f>u&&(u=f)}else if(h>0){if(f<u)return;f<d&&(d=f)}if(f=r-o,!(!p&&f>0)){if(f/=p,p<0){if(f<u)return;f<d&&(d=f)}else if(p>0){if(f>d)return;f>u&&(u=f)}if(f=a-o,!(!p&&f<0)){if(f/=p,p<0){if(f>d)return;f>u&&(u=f)}else if(p>0){if(f<u)return;f<d&&(d=f)}return u>0&&(e[0]=s+u*h,e[1]=o+u*p),d<1&&(t[0]=s+d*h,t[1]=o+d*p),!0}}}}}var ma=1e9,co=-ma;function ek(e,t,n,r){function i(c,u){return e<=c&&c<=n&&t<=u&&u<=r}function a(c,u,d,h){var p=0,f=0;if(c==null||(p=s(c,d))!==(f=s(u,d))||l(c,u)<0^d>0)do h.point(p===0||p===3?e:n,p>1?r:t);while((p=(p+d+4)%4)!==f);else h.point(u[0],u[1])}function s(c,u){return Lt(c[0]-e)<Rt?u>0?0:3:Lt(c[0]-n)<Rt?u>0?2:1:Lt(c[1]-t)<Rt?u>0?1:0:u>0?3:2}function o(c,u){return l(c.x,u.x)}function l(c,u){var d=s(c,1),h=s(u,1);return d!==h?d-h:d===0?u[1]-c[1]:d===1?c[0]-u[0]:d===2?c[1]-u[1]:u[0]-c[0]}return function(c){var u=c,d=yg(),h,p,f,v,m,y,g,x,O,E,S,k={point:I,lineStart:G,lineEnd:P,polygonStart:R,polygonEnd:$};function I(_,C){i(_,C)&&u.point(_,C)}function L(){for(var _=0,C=0,A=p.length;C<A;++C)for(var U=p[C],B=1,q=U.length,Q=U[0],J,pt,at=Q[0],gt=Q[1];B<q;++B)J=at,pt=gt,Q=U[B],at=Q[0],gt=Q[1],pt<=r?gt>r&&(at-J)*(r-pt)>(gt-pt)*(e-J)&&++_:gt<=r&&(at-J)*(r-pt)<(gt-pt)*(e-J)&&--_;return _}function R(){u=d,h=[],p=[],S=!0}function $(){var _=L(),C=S&&_,A=(h=Zm(h)).length;(C||A)&&(c.polygonStart(),C&&(c.lineStart(),a(null,null,1,c),c.lineEnd()),A&&bg(h,o,_,a,c),c.polygonEnd()),u=c,h=p=f=null}function G(){k.point=H,p&&p.push(f=[]),E=!0,O=!1,g=x=NaN}function P(){h&&(H(v,m),y&&O&&d.rejoin(),h.push(d.result())),k.point=I,O&&u.lineEnd()}function H(_,C){var A=i(_,C);if(p&&f.push([_,C]),E)v=_,m=C,y=A,E=!1,A&&(u.lineStart(),u.point(_,C));else if(A&&O)u.point(_,C);else{var U=[g=Math.max(co,Math.min(ma,g)),x=Math.max(co,Math.min(ma,x))],B=[_=Math.max(co,Math.min(ma,_)),C=Math.max(co,Math.min(ma,C))];tk(U,B,e,t,n,r)?(O||(u.lineStart(),u.point(U[0],U[1])),u.point(B[0],B[1]),A||u.lineEnd(),S=!1):A&&(u.lineStart(),u.point(_,C),S=!1)}g=_,x=C,O=A}return k}}const gu=e=>e;var vu=new Sr,yu=new Sr,Og,wg,bu,xu,Bn={point:Fe,lineStart:Fe,lineEnd:Fe,polygonStart:function(){Bn.lineStart=nk,Bn.lineEnd=ik},polygonEnd:function(){Bn.lineStart=Bn.lineEnd=Bn.point=Fe,vu.add(Lt(yu)),yu=new Sr},result:function(){var e=vu/2;return vu=new Sr,e}};function nk(){Bn.point=rk}function rk(e,t){Bn.point=Sg,Og=bu=e,wg=xu=t}function Sg(e,t){yu.add(xu*e-bu*t),bu=e,xu=t}function ik(){Sg(Og,wg)}var gi=1/0,uo=gi,ga=-gi,ho=ga,po={point:ak,lineStart:Fe,lineEnd:Fe,polygonStart:Fe,polygonEnd:Fe,result:function(){var e=[[gi,uo],[ga,ho]];return ga=ho=-(uo=gi=1/0),e}};function ak(e,t){e<gi&&(gi=e),e>ga&&(ga=e),t<uo&&(uo=t),t>ho&&(ho=t)}var _u=0,Eu=0,va=0,fo=0,mo=0,vi=0,Ou=0,wu=0,ya=0,Tg,$g,mn,gn,ze={point:Mr,lineStart:Mg,lineEnd:Cg,polygonStart:function(){ze.lineStart=lk,ze.lineEnd=ck},polygonEnd:function(){ze.point=Mr,ze.lineStart=Mg,ze.lineEnd=Cg},result:function(){var e=ya?[Ou/ya,wu/ya]:vi?[fo/vi,mo/vi]:va?[_u/va,Eu/va]:[NaN,NaN];return _u=Eu=va=fo=mo=vi=Ou=wu=ya=0,e}};function Mr(e,t){_u+=e,Eu+=t,++va}function Mg(){ze.point=sk}function sk(e,t){ze.point=ok,Mr(mn=e,gn=t)}function ok(e,t){var n=e-mn,r=t-gn,i=nn(n*n+r*r);fo+=i*(mn+e)/2,mo+=i*(gn+t)/2,vi+=i,Mr(mn=e,gn=t)}function Cg(){ze.point=Mr}function lk(){ze.point=uk}function ck(){Ag(Tg,$g)}function uk(e,t){ze.point=Ag,Mr(Tg=mn=e,$g=gn=t)}function Ag(e,t){var n=e-mn,r=t-gn,i=nn(n*n+r*r);fo+=i*(mn+e)/2,mo+=i*(gn+t)/2,vi+=i,i=gn*e-mn*t,Ou+=i*(mn+e),wu+=i*(gn+t),ya+=i*3,Mr(mn=e,gn=t)}function kg(e){this._context=e}kg.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,ke);break}}},result:Fe};var Su=new Sr,Tu,Rg,Lg,ba,xa,_a={point:Fe,lineStart:function(){_a.point=hk},lineEnd:function(){Tu&&Dg(Rg,Lg),_a.point=Fe},polygonStart:function(){Tu=!0},polygonEnd:function(){Tu=null},result:function(){var e=+Su;return Su=new Sr,e}};function hk(e,t){_a.point=Dg,Rg=ba=e,Lg=xa=t}function Dg(e,t){ba-=e,xa-=t,Su.add(nn(ba*ba+xa*xa)),ba=e,xa=t}let Ig,go,Ng,Pg;class Ug{constructor(t){this._append=t==null?Bg:dk(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(t,n){switch(this._point){case 0:{this._append`M${t},${n}`,this._point=1;break}case 1:{this._append`L${t},${n}`;break}default:{if(this._append`M${t},${n}`,this._radius!==Ng||this._append!==go){const r=this._radius,i=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,Ng=r,go=this._append,Pg=this._,this._=i}this._+=Pg;break}}}result(){const t=this._;return this._="",t.length?t:null}}function Bg(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function dk(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return Bg;if(t!==Ig){const n=10**t;Ig=t,go=function(r){let i=1;this._+=r[0];for(const a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}return go}function pk(e,t){let n=3,r=4.5,i,a;function s(o){return o&&(typeof r=="function"&&a.pointRadius(+r.apply(this,arguments)),fi(o,i(a))),a.result()}return s.area=function(o){return fi(o,i(Bn)),Bn.result()},s.measure=function(o){return fi(o,i(_a)),_a.result()},s.bounds=function(o){return fi(o,i(po)),po.result()},s.centroid=function(o){return fi(o,i(ze)),ze.result()},s.projection=function(o){return arguments.length?(i=o==null?(e=null,gu):(e=o).stream,s):e},s.context=function(o){return arguments.length?(a=o==null?(t=null,new Ug(n)):new kg(t=o),typeof r!="function"&&a.pointRadius(r),s):t},s.pointRadius=function(o){return arguments.length?(r=typeof o=="function"?o:(a.pointRadius(+o),+o),s):r},s.digits=function(o){if(!arguments.length)return n;if(o==null)n=null;else{const l=Math.floor(o);if(!(l>=0))throw new RangeError(`invalid digits: ${o}`);n=l}return t===null&&(a=new Ug(n)),s},s.projection(e).digits(n).context(t)}function $u(e){return function(t){var n=new Mu;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Mu(){}Mu.prototype={constructor:Mu,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 Cu(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),fi(n,e.stream(po)),t(po.result()),r!=null&&e.clipExtent(r),e}function Hg(e,t,n){return Cu(e,function(r){var i=t[1][0]-t[0][0],a=t[1][1]-t[0][1],s=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),o=+t[0][0]+(i-s*(r[1][0]+r[0][0]))/2,l=+t[0][1]+(a-s*(r[1][1]+r[0][1]))/2;e.scale(150*s).translate([o,l])},n)}function fk(e,t,n){return Hg(e,[[0,0],t],n)}function mk(e,t,n){return Cu(e,function(r){var i=+t,a=i/(r[1][0]-r[0][0]),s=(i-a*(r[1][0]+r[0][0]))/2,o=-a*r[0][1];e.scale(150*a).translate([s,o])},n)}function gk(e,t,n){return Cu(e,function(r){var i=+t,a=i/(r[1][1]-r[0][1]),s=-a*r[0][0],o=(i-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([s,o])},n)}var Vg=16,vk=It(30*Xt);function Gg(e,t){return+t?bk(e,t):yk(e)}function yk(e){return $u({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function bk(e,t){function n(r,i,a,s,o,l,c,u,d,h,p,f,v,m){var y=c-r,g=u-i,x=y*y+g*g;if(x>4*t&&v--){var O=s+h,E=o+p,S=l+f,k=nn(O*O+E*E+S*S),I=Un(S/=k),L=Lt(Lt(S)-1)<Rt||Lt(a-d)<Rt?(a+d)/2:$r(E,O),R=e(L,I),$=R[0],G=R[1],P=$-r,H=G-i,_=g*P-y*H;(_*_/x>t||Lt((y*P+g*H)/x-.5)>.3||s*h+o*p+l*f<vk)&&(n(r,i,a,s,o,l,$,G,L,O/=k,E/=k,S,v,m),m.point($,G),n($,G,L,O,E,S,c,u,d,h,p,f,v,m))}}return function(r){var i,a,s,o,l,c,u,d,h,p,f,v,m={point:y,lineStart:g,lineEnd:O,polygonStart:function(){r.polygonStart(),m.lineStart=E},polygonEnd:function(){r.polygonEnd(),m.lineStart=g}};function y(I,L){I=e(I,L),r.point(I[0],I[1])}function g(){d=NaN,m.point=x,r.lineStart()}function x(I,L){var R=mi([I,L]),$=e(I,L);n(d,h,u,p,f,v,d=$[0],h=$[1],u=I,p=R[0],f=R[1],v=R[2],Vg,r),r.point(d,h)}function O(){m.point=y,r.lineEnd()}function E(){g(),m.point=S,m.lineEnd=k}function S(I,L){x(i=I,L),a=d,s=h,o=p,l=f,c=v,m.point=x}function k(){n(d,h,u,p,f,v,a,s,i,o,l,c,Vg,r),m.lineEnd=O,O()}return m}}var xk=$u({point:function(e,t){this.stream.point(e*Xt,t*Xt)}});function _k(e){return $u({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function Ek(e,t,n,r,i){function a(s,o){return s*=r,o*=i,[t+e*s,n-e*o]}return a.invert=function(s,o){return[(s-t)/e*r,(n-o)/e*i]},a}function Fg(e,t,n,r,i,a){if(!a)return Ek(e,t,n,r,i);var s=It(a),o=Ct(a),l=s*e,c=o*e,u=s/e,d=o/e,h=(o*n-s*t)/e,p=(o*t+s*n)/e;function f(v,m){return v*=r,m*=i,[l*v-c*m+t,n-c*v-l*m]}return f.invert=function(v,m){return[r*(u*v-d*m+h),i*(p-d*v-u*m)]},f}function vo(e){return zg(function(){return e})()}function zg(e){var t,n=150,r=480,i=250,a=0,s=0,o=0,l=0,c=0,u,d=0,h=1,p=1,f=null,v=Eg,m=null,y,g,x,O=gu,E=.5,S,k,I,L,R;function $(_){return I(_[0]*Xt,_[1]*Xt)}function G(_){return _=I.invert(_[0],_[1]),_&&[_[0]*ge,_[1]*ge]}$.stream=function(_){return L&&R===_?L:L=xk(_k(u)(v(S(O(R=_)))))},$.preclip=function(_){return arguments.length?(v=_,f=void 0,H()):v},$.postclip=function(_){return arguments.length?(O=_,m=y=g=x=null,H()):O},$.clipAngle=function(_){return arguments.length?(v=+_?JA(f=_*Xt):(f=null,Eg),H()):f*ge},$.clipExtent=function(_){return arguments.length?(O=_==null?(m=y=g=x=null,gu):ek(m=+_[0][0],y=+_[0][1],g=+_[1][0],x=+_[1][1]),H()):m==null?null:[[m,y],[g,x]]},$.scale=function(_){return arguments.length?(n=+_,P()):n},$.translate=function(_){return arguments.length?(r=+_[0],i=+_[1],P()):[r,i]},$.center=function(_){return arguments.length?(a=_[0]%360*Xt,s=_[1]%360*Xt,P()):[a*ge,s*ge]},$.rotate=function(_){return arguments.length?(o=_[0]%360*Xt,l=_[1]%360*Xt,c=_.length>2?_[2]%360*Xt:0,P()):[o*ge,l*ge,c*ge]},$.angle=function(_){return arguments.length?(d=_%360*Xt,P()):d*ge},$.reflectX=function(_){return arguments.length?(h=_?-1:1,P()):h<0},$.reflectY=function(_){return arguments.length?(p=_?-1:1,P()):p<0},$.precision=function(_){return arguments.length?(S=Gg(k,E=_*_),H()):nn(E)},$.fitExtent=function(_,C){return Hg($,_,C)},$.fitSize=function(_,C){return fk($,_,C)},$.fitWidth=function(_,C){return mk($,_,C)},$.fitHeight=function(_,C){return gk($,_,C)};function P(){var _=Fg(n,0,0,h,p,d).apply(null,t(a,s)),C=Fg(n,r-_[0],i-_[1],h,p,d);return u=pg(o,l,c),k=pu(t,C),I=pu(u,k),S=Gg(k,E),H()}function H(){return L=R=null,$}return function(){return t=e.apply(this,arguments),$.invert=t.invert&&G,P()}}function jg(e){var t=0,n=yt/3,r=zg(e),i=r(t,n);return i.parallels=function(a){return arguments.length?r(t=a[0]*Xt,n=a[1]*Xt):[t*ge,n*ge]},i}function Ok(e){var t=It(e);function n(r,i){return[r*t,Ct(i)/t]}return n.invert=function(r,i){return[r/t,Un(i*t)]},n}function wk(e,t){var n=Ct(e),r=(n+Ct(t))/2;if(Lt(r)<Rt)return Ok(e);var i=1+n*(2*r-n),a=nn(i)/r;function s(o,l){var c=nn(i-2*r*Ct(l))/r;return[c*Ct(o*=r),a-c*It(o)]}return s.invert=function(o,l){var c=a-l,u=$r(o,Lt(c))*Zn(c);return c*r<0&&(u-=yt*Zn(o)*Zn(c)),[u/r,Un((i-(o*o+c*c)*r*r)/(2*r))]},s}function Wg(){return jg(wk).scale(155.424).center([0,33.6442])}function Sk(){return Wg().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Au(e,t){return[e,GA(FA((Oe+t)/2))]}Au.invert=function(e,t){return[e,2*cg(VA(t))-Oe]};function Tk(){return $k(Au).scale(961/ke)}function $k(e){var t=vo(e),n=t.center,r=t.scale,i=t.translate,a=t.clipExtent,s=null,o,l,c;t.scale=function(d){return arguments.length?(r(d),u()):r()},t.translate=function(d){return arguments.length?(i(d),u()):i()},t.center=function(d){return arguments.length?(n(d),u()):n()},t.clipExtent=function(d){return arguments.length?(d==null?s=o=l=c=null:(s=+d[0][0],o=+d[0][1],l=+d[1][0],c=+d[1][1]),u()):s==null?null:[[s,o],[l,c]]};function u(){var d=yt*r(),h=t(jA(t.rotate()).invert([0,0]));return a(s==null?[[h[0]-d,h[1]-d],[h[0]+d,h[1]+d]]:e===Au?[[Math.max(h[0]-d,s),o],[Math.min(h[0]+d,l),c]]:[[s,Math.max(h[1]-d,o)],[l,Math.min(h[1]+d,c)]])}return u()}function yo(e,t){return[e,t]}yo.invert=yo;function Mk(){return vo(yo).scale(152.63)}function Ck(e,t){var n=It(e),r=e===t?Ct(e):(n-It(t))/(t-e),i=n/r+e;if(Lt(r)<Rt)return yo;function a(s,o){var l=i-o,c=r*s;return[l*Ct(c),i-l*It(c)]}return a.invert=function(s,o){var l=i-o,c=$r(s,Lt(l))*Zn(l);return l*r<0&&(c-=yt*Zn(s)*Zn(l)),[c/r,i-Zn(r)*nn(s*s+l*l)]},a}function Ak(){return jg(Ck).scale(131.154).center([0,13.9389])}var Ea=1.340264,Oa=-.081106,wa=893e-6,Sa=.003796,bo=nn(3)/2,kk=12;function qg(e,t){var n=Un(bo*Ct(t)),r=n*n,i=r*r*r;return[e*It(n)/(bo*(Ea+3*Oa*r+i*(7*wa+9*Sa*r))),n*(Ea+Oa*r+i*(wa+Sa*r))]}qg.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,a=0,s,o,l;a<kk&&(o=n*(Ea+Oa*r+i*(wa+Sa*r))-t,l=Ea+3*Oa*r+i*(7*wa+9*Sa*r),n-=s=o/l,r=n*n,i=r*r*r,!(Lt(s)<og));++a);return[bo*e*(Ea+3*Oa*r+i*(7*wa+9*Sa*r))/It(n),Un(Ct(n)/bo)]};function Rk(){return vo(qg).scale(177.158)}function Yg(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*(-.044475+.028874*n-.005916*r)))]}Yg.invert=function(e,t){var n=t,r=25,i;do{var a=n*n,s=a*a;n-=i=(n*(1.007226+a*(.015085+s*(-.044475+.028874*a-.005916*s)))-t)/(1.007226+a*(.015085*3+s*(-.044475*7+.028874*9*a-.005916*11*s)))}while(Lt(i)>Rt&&--r>0);return[e/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function Lk(){return vo(Yg).scale(175.295)}function Dk(e,t){return e.parent===t.parent?1:2}function Ik(e){return e.reduce(Nk,0)/e.length}function Nk(e,t){return e+t.x}function Pk(e){return 1+e.reduce(Uk,0)}function Uk(e,t){return Math.max(e,t.y)}function Bk(e){for(var t;t=e.children;)e=t[0];return e}function Hk(e){for(var t;t=e.children;)e=t[t.length-1];return e}function Vk(){var e=Dk,t=1,n=1,r=!1;function i(a){var s,o=0;a.eachAfter(function(h){var p=h.children;p?(h.x=Ik(p),h.y=Pk(p)):(h.x=s?o+=e(h,s):0,h.y=0,s=h)});var l=Bk(a),c=Hk(a),u=l.x-e(l,c)/2,d=c.x+e(c,l)/2;return a.eachAfter(r?function(h){h.x=(h.x-a.x)*t,h.y=(a.y-h.y)*n}:function(h){h.x=(h.x-u)/(d-u)*t,h.y=(1-(a.y?h.y/a.y:1))*n})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(r=!1,t=+a[0],n=+a[1],i):r?null:[t,n]},i.nodeSize=function(a){return arguments.length?(r=!0,t=+a[0],n=+a[1],i):r?[t,n]:null},i}function Gk(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Fk(){return this.eachAfter(Gk)}function zk(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function jk(e,t){for(var n=this,r=[n],i,a,s=-1;n=r.pop();)if(e.call(t,n,++s,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function Wk(e,t){for(var n=this,r=[n],i=[],a,s,o,l=-1;n=r.pop();)if(i.push(n),a=n.children)for(s=0,o=a.length;s<o;++s)r.push(a[s]);for(;n=i.pop();)e.call(t,n,++l,this);return this}function qk(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function Yk(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function Zk(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Xk(e){for(var t=this,n=Kk(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Kk(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function Qk(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Jk(){return Array.from(this)}function tR(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function eR(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*nR(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function Ta(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=aR)):t===void 0&&(t=iR);for(var n=new $a(e),r,i=[n],a,s,o,l;r=i.pop();)if((s=t(r.data))&&(l=(s=Array.from(s)).length))for(r.children=s,o=l-1;o>=0;--o)i.push(a=s[o]=new $a(s[o])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(oR)}function rR(){return Ta(this).eachBefore(sR)}function iR(e){return e.children}function aR(e){return Array.isArray(e)?e[1]:null}function sR(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function oR(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function $a(e){this.data=e,this.depth=this.height=0,this.parent=null}$a.prototype=Ta.prototype={constructor:$a,count:Fk,each:zk,eachAfter:Wk,eachBefore:jk,find:qk,sum:Yk,sort:Zk,path:Xk,ancestors:Qk,descendants:Jk,leaves:tR,links:eR,copy:rR,[Symbol.iterator]:nR};function lR(e){return e==null?null:Zg(e)}function Zg(e){if(typeof e!="function")throw new Error;return e}function Cr(){return 0}function yi(e){return function(){return e}}const cR=1664525,uR=1013904223,Xg=4294967296;function hR(){let e=1;return()=>(e=(cR*e+uR)%Xg)/Xg}function dR(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function pR(e,t){let n=e.length,r,i;for(;n;)i=t()*n--|0,r=e[n],e[n]=e[i],e[i]=r;return e}function fR(e,t){for(var n=0,r=(e=pR(Array.from(e),t)).length,i=[],a,s;n<r;)a=e[n],s&&Kg(s,a)?++n:(s=gR(i=mR(i,a)),n=0);return s}function mR(e,t){var n,r;if(ku(t,e))return[t];for(n=0;n<e.length;++n)if(xo(t,e[n])&&ku(Ma(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(xo(Ma(e[n],e[r]),t)&&xo(Ma(e[n],t),e[r])&&xo(Ma(e[r],t),e[n])&&ku(Qg(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function xo(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function Kg(e,t){var n=e.r-t.r+Math.max(e.r,t.r,1)*1e-9,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function ku(e,t){for(var n=0;n<t.length;++n)if(!Kg(e,t[n]))return!1;return!0}function gR(e){switch(e.length){case 1:return vR(e[0]);case 2:return Ma(e[0],e[1]);case 3:return Qg(e[0],e[1],e[2])}}function vR(e){return{x:e.x,y:e.y,r:e.r}}function Ma(e,t){var n=e.x,r=e.y,i=e.r,a=t.x,s=t.y,o=t.r,l=a-n,c=s-r,u=o-i,d=Math.sqrt(l*l+c*c);return{x:(n+a+l/d*u)/2,y:(r+s+c/d*u)/2,r:(d+i+o)/2}}function Qg(e,t,n){var r=e.x,i=e.y,a=e.r,s=t.x,o=t.y,l=t.r,c=n.x,u=n.y,d=n.r,h=r-s,p=r-c,f=i-o,v=i-u,m=l-a,y=d-a,g=r*r+i*i-a*a,x=g-s*s-o*o+l*l,O=g-c*c-u*u+d*d,E=p*f-h*v,S=(f*O-v*x)/(E*2)-r,k=(v*m-f*y)/E,I=(p*x-h*O)/(E*2)-i,L=(h*y-p*m)/E,R=k*k+L*L-1,$=2*(a+S*k+I*L),G=S*S+I*I-a*a,P=-(Math.abs(R)>1e-6?($+Math.sqrt($*$-4*R*G))/(2*R):G/$);return{x:r+S+k*P,y:i+I+L*P,r:P}}function Jg(e,t,n){var r=e.x-t.x,i,a,s=e.y-t.y,o,l,c=r*r+s*s;c?(a=t.r+n.r,a*=a,l=e.r+n.r,l*=l,a>l?(i=(c+l-a)/(2*c),o=Math.sqrt(Math.max(0,l/c-i*i)),n.x=e.x-i*r-o*s,n.y=e.y-i*s+o*r):(i=(c+a-l)/(2*c),o=Math.sqrt(Math.max(0,a/c-i*i)),n.x=t.x+i*r-o*s,n.y=t.y+i*s+o*r)):(n.x=t.x+n.r,n.y=t.y)}function tv(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function ev(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,a=(t.y*n.r+n.y*t.r)/r;return i*i+a*a}function _o(e){this._=e,this.next=null,this.previous=null}function yR(e,t){if(!(a=(e=dR(e)).length))return 0;var n,r,i,a,s,o,l,c,u,d,h;if(n=e[0],n.x=0,n.y=0,!(a>1))return n.r;if(r=e[1],n.x=-r.r,r.x=n.r,r.y=0,!(a>2))return n.r+r.r;Jg(r,n,i=e[2]),n=new _o(n),r=new _o(r),i=new _o(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(l=3;l<a;++l){Jg(n._,r._,i=e[l]),i=new _o(i),c=r.next,u=n.previous,d=r._.r,h=n._.r;do if(d<=h){if(tv(c._,i._)){r=c,n.next=r,r.previous=n,--l;continue t}d+=c._.r,c=c.next}else{if(tv(u._,i._)){n=u,n.next=r,r.previous=n,--l;continue t}h+=u._.r,u=u.previous}while(c!==u.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,s=ev(n);(i=i.next)!==r;)(o=ev(i))<s&&(n=i,s=o);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=fR(n,t),l=0;l<a;++l)n=e[l],n.x-=i.x,n.y-=i.y;return i.r}function bR(e){return Math.sqrt(e.value)}function xR(){var e=null,t=1,n=1,r=Cr;function i(a){const s=hR();return a.x=t/2,a.y=n/2,e?a.eachBefore(nv(e)).eachAfter(Ru(r,.5,s)).eachBefore(rv(1)):a.eachBefore(nv(bR)).eachAfter(Ru(Cr,1,s)).eachAfter(Ru(r,a.r/Math.min(t,n),s)).eachBefore(rv(Math.min(t,n)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=lR(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],n=+a[1],i):[t,n]},i.padding=function(a){return arguments.length?(r=typeof a=="function"?a:yi(+a),i):r},i}function nv(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Ru(e,t,n){return function(r){if(i=r.children){var i,a,s=i.length,o=e(r)*t||0,l;if(o)for(a=0;a<s;++a)i[a].r+=o;if(l=yR(i,n),o)for(a=0;a<s;++a)i[a].r-=o;r.r=l+o}}}function rv(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function _R(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function ER(e,t,n,r,i){for(var a=e.children,s,o=-1,l=a.length,c=e.value&&(r-t)/e.value;++o<l;)s=a[o],s.y0=n,s.y1=i,s.x0=t,s.x1=t+=s.value*c}function OR(e,t){return e.parent===t.parent?1:2}function Lu(e){var t=e.children;return t?t[0]:e.t}function Du(e){var t=e.children;return t?t[t.length-1]:e.t}function wR(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function SR(e){for(var t=0,n=0,r=e.children,i=r.length,a;--i>=0;)a=r[i],a.z+=t,a.m+=t,t+=a.s+(n+=a.c)}function TR(e,t,n){return e.a.parent===t.parent?e.a:n}function Eo(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Eo.prototype=Object.create($a.prototype);function $R(e){for(var t=new Eo(e,0),n,r=[t],i,a,s,o;n=r.pop();)if(a=n._.children)for(n.children=new Array(o=a.length),s=o-1;s>=0;--s)r.push(i=n.children[s]=new Eo(a[s],s)),i.parent=n;return(t.parent=new Eo(null,0)).children=[t],t}function MR(){var e=OR,t=1,n=1,r=null;function i(c){var u=$R(c);if(u.eachAfter(a),u.parent.m=-u.z,u.eachBefore(s),r)c.eachBefore(l);else{var d=c,h=c,p=c;c.eachBefore(function(g){g.x<d.x&&(d=g),g.x>h.x&&(h=g),g.depth>p.depth&&(p=g)});var f=d===h?1:e(d,h)/2,v=f-d.x,m=t/(h.x+f+v),y=n/(p.depth||1);c.eachBefore(function(g){g.x=(g.x+v)*m,g.y=g.depth*y})}return c}function a(c){var u=c.children,d=c.parent.children,h=c.i?d[c.i-1]:null;if(u){SR(c);var p=(u[0].z+u[u.length-1].z)/2;h?(c.z=h.z+e(c._,h._),c.m=c.z-p):c.z=p}else h&&(c.z=h.z+e(c._,h._));c.parent.A=o(c,h,c.parent.A||d[0])}function s(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function o(c,u,d){if(u){for(var h=c,p=c,f=u,v=h.parent.children[0],m=h.m,y=p.m,g=f.m,x=v.m,O;f=Du(f),h=Lu(h),f&&h;)v=Lu(v),p=Du(p),p.a=c,O=f.z+g-h.z-m+e(f._,h._),O>0&&(wR(TR(f,c,d),c,O),m+=O,y+=O),g+=f.m,m+=h.m,x+=v.m,y+=p.m;f&&!Du(p)&&(p.t=f,p.m+=g-y),h&&!Lu(v)&&(v.t=h,v.m+=m-x,d=c)}return d}function l(c){c.x*=t,c.y=c.depth*n}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(r=!1,t=+c[0],n=+c[1],i):r?null:[t,n]},i.nodeSize=function(c){return arguments.length?(r=!0,t=+c[0],n=+c[1],i):r?[t,n]:null},i}function CR(e,t,n,r,i){for(var a=e.children,s,o=-1,l=a.length,c=e.value&&(i-n)/e.value;++o<l;)s=a[o],s.x0=t,s.x1=r,s.y0=n,s.y1=n+=s.value*c}var AR=(1+Math.sqrt(5))/2;function kR(e,t,n,r,i,a){for(var s=[],o=t.children,l,c,u=0,d=0,h=o.length,p,f,v=t.value,m,y,g,x,O,E,S;u<h;){p=i-n,f=a-r;do m=o[d++].value;while(!m&&d<h);for(y=g=m,E=Math.max(f/p,p/f)/(v*e),S=m*m*E,O=Math.max(g/S,S/y);d<h;++d){if(m+=c=o[d].value,c<y&&(y=c),c>g&&(g=c),S=m*m*E,x=Math.max(g/S,S/y),x>O){m-=c;break}O=x}s.push(l={value:m,dice:p<f,children:o.slice(u,d)}),l.dice?ER(l,n,r,i,v?r+=f*m/v:a):CR(l,n,r,v?n+=p*m/v:i,a),v-=m,u=d}return s}const RR=function e(t){function n(r,i,a,s,o){kR(t,r,i,a,s,o)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(AR);function LR(){var e=RR,t=!1,n=1,r=1,i=[0],a=Cr,s=Cr,o=Cr,l=Cr,c=Cr;function u(h){return h.x0=h.y0=0,h.x1=n,h.y1=r,h.eachBefore(d),i=[0],t&&h.eachBefore(_R),h}function d(h){var p=i[h.depth],f=h.x0+p,v=h.y0+p,m=h.x1-p,y=h.y1-p;m<f&&(f=m=(f+m)/2),y<v&&(v=y=(v+y)/2),h.x0=f,h.y0=v,h.x1=m,h.y1=y,h.children&&(p=i[h.depth+1]=a(h)/2,f+=c(h)-p,v+=s(h)-p,m-=o(h)-p,y-=l(h)-p,m<f&&(f=m=(f+m)/2),y<v&&(v=y=(v+y)/2),e(h,f,v,m,y))}return u.round=function(h){return arguments.length?(t=!!h,u):t},u.size=function(h){return arguments.length?(n=+h[0],r=+h[1],u):[n,r]},u.tile=function(h){return arguments.length?(e=Zg(h),u):e},u.padding=function(h){return arguments.length?u.paddingInner(h).paddingOuter(h):u.paddingInner()},u.paddingInner=function(h){return arguments.length?(a=typeof h=="function"?h:yi(+h),u):a},u.paddingOuter=function(h){return arguments.length?u.paddingTop(h).paddingRight(h).paddingBottom(h).paddingLeft(h):u.paddingTop()},u.paddingTop=function(h){return arguments.length?(s=typeof h=="function"?h:yi(+h),u):s},u.paddingRight=function(h){return arguments.length?(o=typeof h=="function"?h:yi(+h),u):o},u.paddingBottom=function(h){return arguments.length?(l=typeof h=="function"?h:yi(+h),u):l},u.paddingLeft=function(h){return arguments.length?(c=typeof h=="function"?h:yi(+h),u):c},u}function Oo(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new lu(t)}function DR(e){return e.innerRadius}function IR(e){return e.outerRadius}function NR(e){return e.startAngle}function PR(e){return e.endAngle}function UR(e){return e&&e.padAngle}function BR(e,t,n,r,i,a,s,o){var l=n-e,c=r-t,u=s-i,d=o-a,h=d*l-u*c;if(!(h*h<he))return h=(u*(t-a)-d*(e-i))/h,[e+h*l,t+h*c]}function wo(e,t,n,r,i,a,s){var o=e-n,l=t-r,c=(s?a:-a)/ci(o*o+l*l),u=c*l,d=-c*o,h=e+u,p=t+d,f=n+u,v=r+d,m=(h+f)/2,y=(p+v)/2,g=f-h,x=v-p,O=g*g+x*x,E=i-a,S=h*v-f*p,k=(x<0?-1:1)*ci(EC(0,E*E*O-S*S)),I=(S*x-g*k)/O,L=(-S*g-x*k)/O,R=(S*x+g*k)/O,$=(-S*g+x*k)/O,G=I-m,P=L-y,H=R-m,_=$-y;return G*G+P*P>H*H+_*_&&(I=R,L=$),{cx:I,cy:L,x01:-u,y01:-d,x11:I*(i/E-1),y11:L*(i/E-1)}}function Ca(){var e=DR,t=IR,n=mt(0),r=null,i=NR,a=PR,s=UR,o=null,l=Oo(c);function c(){var u,d,h=+e.apply(this,arguments),p=+t.apply(this,arguments),f=i.apply(this,arguments)-js,v=a.apply(this,arguments)-js,m=lm(v-f),y=v>f;if(o||(o=u=l()),p<h&&(d=p,p=h,h=d),!(p>he))o.moveTo(0,0);else if(m>Ws-he)o.moveTo(p*wr(f),p*fn(f)),o.arc(0,0,p,f,v,!y),h>he&&(o.moveTo(h*wr(v),h*fn(v)),o.arc(0,0,h,v,f,y));else{var g=f,x=v,O=f,E=v,S=m,k=m,I=s.apply(this,arguments)/2,L=I>he&&(r?+r.apply(this,arguments):ci(h*h+p*p)),R=jc(lm(p-h)/2,+n.apply(this,arguments)),$=R,G=R,P,H;if(L>he){var _=cm(L/h*fn(I)),C=cm(L/p*fn(I));(S-=_*2)>he?(_*=y?1:-1,O+=_,E-=_):(S=0,O=E=(f+v)/2),(k-=C*2)>he?(C*=y?1:-1,g+=C,x-=C):(k=0,g=x=(f+v)/2)}var A=p*wr(g),U=p*fn(g),B=h*wr(E),q=h*fn(E);if(R>he){var Q=p*wr(x),J=p*fn(x),pt=h*wr(O),at=h*fn(O),gt;if(m<pa)if(gt=BR(A,U,pt,at,Q,J,B,q)){var X=A-gt[0],nt=U-gt[1],ft=Q-gt[0],Y=J-gt[1],tt=1/fn(OC((X*ft+nt*Y)/(ci(X*X+nt*nt)*ci(ft*ft+Y*Y)))/2),ct=ci(gt[0]*gt[0]+gt[1]*gt[1]);$=jc(R,(h-ct)/(tt-1)),G=jc(R,(p-ct)/(tt+1))}else $=G=0}k>he?G>he?(P=wo(pt,at,A,U,p,G,y),H=wo(Q,J,B,q,p,G,y),o.moveTo(P.cx+P.x01,P.cy+P.y01),G<R?o.arc(P.cx,P.cy,G,ue(P.y01,P.x01),ue(H.y01,H.x01),!y):(o.arc(P.cx,P.cy,G,ue(P.y01,P.x01),ue(P.y11,P.x11),!y),o.arc(0,0,p,ue(P.cy+P.y11,P.cx+P.x11),ue(H.cy+H.y11,H.cx+H.x11),!y),o.arc(H.cx,H.cy,G,ue(H.y11,H.x11),ue(H.y01,H.x01),!y))):(o.moveTo(A,U),o.arc(0,0,p,g,x,!y)):o.moveTo(A,U),!(h>he)||!(S>he)?o.lineTo(B,q):$>he?(P=wo(B,q,Q,J,h,-$,y),H=wo(A,U,pt,at,h,-$,y),o.lineTo(P.cx+P.x01,P.cy+P.y01),$<R?o.arc(P.cx,P.cy,$,ue(P.y01,P.x01),ue(H.y01,H.x01),!y):(o.arc(P.cx,P.cy,$,ue(P.y01,P.x01),ue(P.y11,P.x11),!y),o.arc(0,0,h,ue(P.cy+P.y11,P.cx+P.x11),ue(H.cy+H.y11,H.cx+H.x11),y),o.arc(H.cx,H.cy,$,ue(H.y11,H.x11),ue(H.y01,H.x01),!y))):o.arc(0,0,h,E,O,y)}if(o.closePath(),u)return o=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-pa/2;return[wr(d)*u,fn(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:mt(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:mt(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:mt(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:mt(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:mt(+u),c):i},c.endAngle=function(u){return arguments.length?(a=typeof u=="function"?u:mt(+u),c):a},c.padAngle=function(u){return arguments.length?(s=typeof u=="function"?u:mt(+u),c):s},c.context=function(u){return arguments.length?(o=u??null,c):o},c}function Iu(e){return e[0]}function Nu(e){return e[1]}function Aa(e,t){var n=mt(!0),r=null,i=qs,a=null,s=Oo(o);e=typeof e=="function"?e:e===void 0?Iu:mt(e),t=typeof t=="function"?t:t===void 0?Nu:mt(t);function o(l){var c,u=(l=Bs(l)).length,d,h=!1,p;for(r==null&&(a=i(p=s())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(d,c,l),+t(d,c,l));if(p)return a=null,p+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:mt(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:mt(+l),o):t},o.defined=function(l){return arguments.length?(n=typeof l=="function"?l:mt(!!l),o):n},o.curve=function(l){return arguments.length?(i=l,r!=null&&(a=i(r)),o):i},o.context=function(l){return arguments.length?(l==null?r=a=null:a=i(r=l),o):r},o}function Pu(e,t,n){var r=null,i=mt(!0),a=null,s=qs,o=null,l=Oo(c);e=typeof e=="function"?e:e===void 0?Iu:mt(+e),t=typeof t=="function"?t:mt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Nu:mt(+n);function c(d){var h,p,f,v=(d=Bs(d)).length,m,y=!1,g,x=new Array(v),O=new Array(v);for(a==null&&(o=s(g=l())),h=0;h<=v;++h){if(!(h<v&&i(m=d[h],h,d))===y)if(y=!y)p=h,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),f=h-1;f>=p;--f)o.point(x[f],O[f]);o.lineEnd(),o.areaEnd()}y&&(x[h]=+e(m,h,d),O[h]=+t(m,h,d),o.point(r?+r(m,h,d):x[h],n?+n(m,h,d):O[h]))}if(g)return o=null,g+""||null}function u(){return Aa().defined(i).curve(s).context(a)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:mt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:mt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:mt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:mt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:mt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:mt(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:mt(!!d),c):i},c.curve=function(d){return arguments.length?(s=d,a!=null&&(o=s(a)),c):s},c.context=function(d){return arguments.length?(d==null?a=o=null:o=s(a=d),c):a},c}function HR(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function VR(e){return e}function GR(){var e=VR,t=HR,n=null,r=mt(0),i=mt(Ws),a=mt(0);function s(o){var l,c=(o=Bs(o)).length,u,d,h=0,p=new Array(c),f=new Array(c),v=+r.apply(this,arguments),m=Math.min(Ws,Math.max(-Ws,i.apply(this,arguments)-v)),y,g=Math.min(Math.abs(m)/c,a.apply(this,arguments)),x=g*(m<0?-1:1),O;for(l=0;l<c;++l)(O=f[p[l]=l]=+e(o[l],l,o))>0&&(h+=O);for(t!=null?p.sort(function(E,S){return t(f[E],f[S])}):n!=null&&p.sort(function(E,S){return n(o[E],o[S])}),l=0,d=h?(m-c*x)/h:0;l<c;++l,v=y)u=p[l],O=f[u],y=v+(O>0?O*d:0)+x,f[u]={data:o[u],index:l,value:O,startAngle:v,endAngle:y,padAngle:g};return f}return s.value=function(o){return arguments.length?(e=typeof o=="function"?o:mt(+o),s):e},s.sortValues=function(o){return arguments.length?(t=o,n=null,s):t},s.sort=function(o){return arguments.length?(n=o,t=null,s):n},s.startAngle=function(o){return arguments.length?(r=typeof o=="function"?o:mt(+o),s):r},s.endAngle=function(o){return arguments.length?(i=typeof o=="function"?o:mt(+o),s):i},s.padAngle=function(o){return arguments.length?(a=typeof o=="function"?o:mt(+o),s):a},s}var FR=av(qs);function iv(e){this._curve=e}iv.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function av(e){function t(n){return new iv(e(n))}return t._curve=e,t}function zR(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(av(n)):t()._curve},e}function jR(){return zR(Aa().curve(FR))}class WR{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function qR(e){return new WR(e,!0)}function YR(e){return e.source}function ZR(e){return e.target}function XR(e){let t=YR,n=ZR,r=Iu,i=Nu,a=null,s=null,o=Oo(l);function l(){let c;const u=g$.call(arguments),d=t.apply(this,u),h=n.apply(this,u);if(a==null&&(s=e(c=o())),s.lineStart(),u[0]=d,s.point(+r.apply(this,u),+i.apply(this,u)),u[0]=h,s.point(+r.apply(this,u),+i.apply(this,u)),s.lineEnd(),c)return s=null,c+""||null}return l.source=function(c){return arguments.length?(t=c,l):t},l.target=function(c){return arguments.length?(n=c,l):n},l.x=function(c){return arguments.length?(r=typeof c=="function"?c:mt(+c),l):r},l.y=function(c){return arguments.length?(i=typeof c=="function"?c:mt(+c),l):i},l.context=function(c){return arguments.length?(c==null?a=s=null:s=e(a=c),l):a},l}function KR(){return XR(qR)}let bt=class{constructor(t,n,r){if(this.type="",this.renderType=rt.HTML,this.id="",this.parent=void 0,this.configs={},this.model=t,this.services=n,r&&(this.configs=r,this.configs.id)){const i=b(this.model.getOptions(),"style","prefix");this.id=`${i}--${this.configs.id}`}this.parent||this.setParent(D(this.services.domUtils.getMainContainer()))}init(){}render(t=!0){console.error("Error: Component did not provide the required render function.")}destroy(){}setModel(t){this.model=t}setServices(t){this.services=t}setParent(t){var n;const r=this.parent;if(this.parent=t,!(r&&r.node()===t.node())&&this.type){const i=b(this.model.getOptions(),"style","prefix");(n=this.parent)==null||n.classed(`${_e}--${i}--${this.type}`,!0),r&&r.classed(`${_e}--${i}--${this.type}`,!1)}}getParent(){return this.parent}getComponentContainer(t={withinChartClip:!1}){if(this.type){const n=b(this.model.getOptions(),"style","prefix"),r=this.id?`#${this.id}`:"",i=N.appendOrSelect(this.parent,`${this.renderType===rt.SVG?"svg":"div"}${r}.${_e}--${n}--${this.type}`);if(t.withinChartClip){const a=this.model.get("chartClipId");if(a){const s=D(`#${a}`).select("rect");s.size()!==0&&parseFloat(s.attr("height"))>0&&i.attr("clip-path",`url(#${a})`)}}return i.attr("width","100%").attr("height","100%")}return this.parent}getOptions(){return this.configs.options?lt({},this.model.getOptions(),this.configs.options):this.model.getOptions()}};/*! @license DOMPurify 3.1.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.5/LICENSE */const{entries:sv,setPrototypeOf:ov,isFrozen:QR,getPrototypeOf:JR,getOwnPropertyDescriptor:tL}=Object;let{freeze:ve,seal:je,create:lv}=Object,{apply:Uu,construct:Bu}=typeof Reflect<"u"&&Reflect;ve||(ve=function(e){return e}),je||(je=function(e){return e}),Uu||(Uu=function(e,t,n){return e.apply(t,n)}),Bu||(Bu=function(e,t){return new e(...t)});const So=Re(Array.prototype.forEach),cv=Re(Array.prototype.pop),ka=Re(Array.prototype.push),To=Re(String.prototype.toLowerCase),Hu=Re(String.prototype.toString),uv=Re(String.prototype.match),Ra=Re(String.prototype.replace),eL=Re(String.prototype.indexOf),nL=Re(String.prototype.trim),rn=Re(Object.prototype.hasOwnProperty),ye=Re(RegExp.prototype.test),La=rL(TypeError);function Re(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Uu(e,t,r)}}function rL(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Bu(e,n)}}function xt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:To;ov&&ov(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(QR(t)||(t[r]=a),i=a)}e[i]=!0}return e}function iL(e){for(let t=0;t<e.length;t++)rn(e,t)||(e[t]=null);return e}function Ar(e){const t=lv(null);for(const[n,r]of sv(e))rn(e,n)&&(Array.isArray(r)?t[n]=iL(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Ar(r):t[n]=r);return t}function $o(e,t){for(;e!==null;){const r=tL(e,t);if(r){if(r.get)return Re(r.get);if(typeof r.value=="function")return Re(r.value)}e=JR(e)}function n(){return null}return n}const hv=ve(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Vu=ve(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Gu=ve(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),aL=ve(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Fu=ve(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),sL=ve(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),dv=ve(["#text"]),pv=ve(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),zu=ve(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),fv=ve(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Mo=ve(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),oL=je(/\{\{[\w\W]*|[\w\W]*\}\}/gm),lL=je(/<%[\w\W]*|[\w\W]*%>/gm),cL=je(/\${[\w\W]*}/gm),uL=je(/^data-[\-\w.\u00B7-\uFFFF]/),hL=je(/^aria-[\-\w]+$/),mv=je(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dL=je(/^(?:\w+script|data):/i),pL=je(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gv=je(/^html$/i),fL=je(/^[a-z][.\w]*(-[.\w]+)+$/i);var vv=Object.freeze({__proto__:null,MUSTACHE_EXPR:oL,ERB_EXPR:lL,TMPLIT_EXPR:cL,DATA_ATTR:uL,ARIA_ATTR:hL,IS_ALLOWED_URI:mv,IS_SCRIPT_OR_DATA:dL,ATTR_WHITESPACE:pL,DOCTYPE_NAME:gv,CUSTOM_ELEMENT:fL});const Da={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},mL=function(){return typeof window>"u"?null:window},gL=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function yv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mL();const t=T=>yv(T);if(t.version="3.1.5",t.removed=[],!e||!e.document||e.document.nodeType!==Da.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:p}=e,f=l.prototype,v=$o(f,"cloneNode"),m=$o(f,"nextSibling"),y=$o(f,"childNodes"),g=$o(f,"parentNode");if(typeof s=="function"){const T=n.createElement("template");T.content&&T.content.ownerDocument&&(n=T.content.ownerDocument)}let x,O="";const{implementation:E,createNodeIterator:S,createDocumentFragment:k,getElementsByTagName:I}=n,{importNode:L}=r;let R={};t.isSupported=typeof sv=="function"&&typeof g=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$,ERB_EXPR:G,TMPLIT_EXPR:P,DATA_ATTR:H,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:C,ATTR_WHITESPACE:A,CUSTOM_ELEMENT:U}=vv;let{IS_ALLOWED_URI:B}=vv,q=null;const Q=xt({},[...hv,...Vu,...Gu,...Fu,...dv]);let J=null;const pt=xt({},[...pv,...zu,...fv,...Mo]);let at=Object.seal(lv(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),gt=null,X=null,nt=!0,ft=!0,Y=!1,tt=!0,ct=!1,z=!0,$t=!1,_t=!1,qt=!1,Nt=!1,it=!1,At=!1,Ie=!0,Ne=!1;const Lh="user-content-";let Lr=!0,Dr=!1,tr={},Vn=null;const Va=xt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let er=null;const Zo=xt({},["audio","video","img","source","image","track"]);let wi=null;const Ga=xt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nr="http://www.w3.org/1998/Math/MathML",Si="http://www.w3.org/2000/svg",sn="http://www.w3.org/1999/xhtml";let rr=sn,Fa=!1,za=null;const Dh=xt({},[nr,Si,sn],Hu);let Ir=null;const ja=["application/xhtml+xml","text/html"],Xo="text/html";let Ft=null,bn=null;const Wa=n.createElement("form"),qa=function(T){return T instanceof RegExp||T instanceof Function},Ya=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(bn&&bn===T)){if((!T||typeof T!="object")&&(T={}),T=Ar(T),Ir=ja.indexOf(T.PARSER_MEDIA_TYPE)===-1?Xo:T.PARSER_MEDIA_TYPE,Ft=Ir==="application/xhtml+xml"?Hu:To,q=rn(T,"ALLOWED_TAGS")?xt({},T.ALLOWED_TAGS,Ft):Q,J=rn(T,"ALLOWED_ATTR")?xt({},T.ALLOWED_ATTR,Ft):pt,za=rn(T,"ALLOWED_NAMESPACES")?xt({},T.ALLOWED_NAMESPACES,Hu):Dh,wi=rn(T,"ADD_URI_SAFE_ATTR")?xt(Ar(Ga),T.ADD_URI_SAFE_ATTR,Ft):Ga,er=rn(T,"ADD_DATA_URI_TAGS")?xt(Ar(Zo),T.ADD_DATA_URI_TAGS,Ft):Zo,Vn=rn(T,"FORBID_CONTENTS")?xt({},T.FORBID_CONTENTS,Ft):Va,gt=rn(T,"FORBID_TAGS")?xt({},T.FORBID_TAGS,Ft):{},X=rn(T,"FORBID_ATTR")?xt({},T.FORBID_ATTR,Ft):{},tr=rn(T,"USE_PROFILES")?T.USE_PROFILES:!1,nt=T.ALLOW_ARIA_ATTR!==!1,ft=T.ALLOW_DATA_ATTR!==!1,Y=T.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ct=T.SAFE_FOR_TEMPLATES||!1,z=T.SAFE_FOR_XML!==!1,$t=T.WHOLE_DOCUMENT||!1,Nt=T.RETURN_DOM||!1,it=T.RETURN_DOM_FRAGMENT||!1,At=T.RETURN_TRUSTED_TYPE||!1,qt=T.FORCE_BODY||!1,Ie=T.SANITIZE_DOM!==!1,Ne=T.SANITIZE_NAMED_PROPS||!1,Lr=T.KEEP_CONTENT!==!1,Dr=T.IN_PLACE||!1,B=T.ALLOWED_URI_REGEXP||mv,rr=T.NAMESPACE||sn,at=T.CUSTOM_ELEMENT_HANDLING||{},T.CUSTOM_ELEMENT_HANDLING&&qa(T.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(at.tagNameCheck=T.CUSTOM_ELEMENT_HANDLING.tagNameCheck),T.CUSTOM_ELEMENT_HANDLING&&qa(T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(at.attributeNameCheck=T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(at.allowCustomizedBuiltInElements=T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ct&&(ft=!1),it&&(Nt=!0),tr&&(q=xt({},dv),J=[],tr.html===!0&&(xt(q,hv),xt(J,pv)),tr.svg===!0&&(xt(q,Vu),xt(J,zu),xt(J,Mo)),tr.svgFilters===!0&&(xt(q,Gu),xt(J,zu),xt(J,Mo)),tr.mathMl===!0&&(xt(q,Fu),xt(J,fv),xt(J,Mo))),T.ADD_TAGS&&(q===Q&&(q=Ar(q)),xt(q,T.ADD_TAGS,Ft)),T.ADD_ATTR&&(J===pt&&(J=Ar(J)),xt(J,T.ADD_ATTR,Ft)),T.ADD_URI_SAFE_ATTR&&xt(wi,T.ADD_URI_SAFE_ATTR,Ft),T.FORBID_CONTENTS&&(Vn===Va&&(Vn=Ar(Vn)),xt(Vn,T.FORBID_CONTENTS,Ft)),Lr&&(q["#text"]=!0),$t&&xt(q,["html","head","body"]),q.table&&(xt(q,["tbody"]),delete gt.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw La('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw La('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=T.TRUSTED_TYPES_POLICY,O=x.createHTML("")}else x===void 0&&(x=gL(p,i)),x!==null&&typeof O=="string"&&(O=x.createHTML(""));ve&&ve(T),bn=T}},Za=xt({},["mi","mo","mn","ms","mtext"]),Ko=xt({},["foreignobject","annotation-xml"]),Qo=xt({},["title","style","font","a","script"]),Xa=xt({},[...Vu,...Gu,...aL]),Jo=xt({},[...Fu,...sL]),Ih=function(T){let j=g(T);(!j||!j.tagName)&&(j={namespaceURI:rr,tagName:"template"});const Z=To(T.tagName),ot=To(j.tagName);return za[T.namespaceURI]?T.namespaceURI===Si?j.namespaceURI===sn?Z==="svg":j.namespaceURI===nr?Z==="svg"&&(ot==="annotation-xml"||Za[ot]):!!Xa[Z]:T.namespaceURI===nr?j.namespaceURI===sn?Z==="math":j.namespaceURI===Si?Z==="math"&&Ko[ot]:!!Jo[Z]:T.namespaceURI===sn?j.namespaceURI===Si&&!Ko[ot]||j.namespaceURI===nr&&!Za[ot]?!1:!Jo[Z]&&(Qo[Z]||!Xa[Z]):!!(Ir==="application/xhtml+xml"&&za[T.namespaceURI]):!1},xn=function(T){ka(t.removed,{element:T});try{T.parentNode.removeChild(T)}catch{T.remove()}},Nr=function(T,j){try{ka(t.removed,{attribute:j.getAttributeNode(T),from:j})}catch{ka(t.removed,{attribute:null,from:j})}if(j.removeAttribute(T),T==="is"&&!J[T])if(Nt||it)try{xn(j)}catch{}else try{j.setAttribute(T,"")}catch{}},tl=function(T){let j=null,Z=null;if(qt)T="<remove></remove>"+T;else{const wt=uv(T,/^[\r\n\t ]+/);Z=wt&&wt[0]}Ir==="application/xhtml+xml"&&rr===sn&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const ot=x?x.createHTML(T):T;if(rr===sn)try{j=new h().parseFromString(ot,Ir)}catch{}if(!j||!j.documentElement){j=E.createDocument(rr,"template",null);try{j.documentElement.innerHTML=Fa?O:ot}catch{}}const vt=j.body||j.documentElement;return T&&Z&&vt.insertBefore(n.createTextNode(Z),vt.childNodes[0]||null),rr===sn?I.call(j,$t?"html":"body")[0]:$t?j.documentElement:vt},el=function(T){return S.call(T.ownerDocument||T,T,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},nl=function(T){return T instanceof d&&(typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||!(T.attributes instanceof u)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function")},rl=function(T){return typeof o=="function"&&T instanceof o},M=function(T,j,Z){R[T]&&So(R[T],ot=>{ot.call(t,j,Z,bn)})},W=function(T){let j=null;if(M("beforeSanitizeElements",T,null),nl(T))return xn(T),!0;const Z=Ft(T.nodeName);if(M("uponSanitizeElement",T,{tagName:Z,allowedTags:q}),T.hasChildNodes()&&!rl(T.firstElementChild)&&ye(/<[/\w]/g,T.innerHTML)&&ye(/<[/\w]/g,T.textContent)||T.nodeType===Da.progressingInstruction||z&&T.nodeType===Da.comment&&ye(/<[/\w]/g,T.data))return xn(T),!0;if(!q[Z]||gt[Z]){if(!gt[Z]&&ut(Z)&&(at.tagNameCheck instanceof RegExp&&ye(at.tagNameCheck,Z)||at.tagNameCheck instanceof Function&&at.tagNameCheck(Z)))return!1;if(Lr&&!Vn[Z]){const ot=g(T)||T.parentNode,vt=y(T)||T.childNodes;if(vt&&ot){const wt=vt.length;for(let fe=wt-1;fe>=0;--fe){const ne=v(vt[fe],!0);ne.__removalCount=(T.__removalCount||0)+1,ot.insertBefore(ne,m(T))}}}return xn(T),!0}return T instanceof l&&!Ih(T)||(Z==="noscript"||Z==="noembed"||Z==="noframes")&&ye(/<\/no(script|embed|frames)/i,T.innerHTML)?(xn(T),!0):(ct&&T.nodeType===Da.text&&(j=T.textContent,So([$,G,P],ot=>{j=Ra(j,ot," ")}),T.textContent!==j&&(ka(t.removed,{element:T.cloneNode()}),T.textContent=j)),M("afterSanitizeElements",T,null),!1)},K=function(T,j,Z){if(Ie&&(j==="id"||j==="name")&&(Z in n||Z in Wa))return!1;if(!(ft&&!X[j]&&ye(H,j))&&!(nt&&ye(_,j))){if(!J[j]||X[j]){if(!(ut(T)&&(at.tagNameCheck instanceof RegExp&&ye(at.tagNameCheck,T)||at.tagNameCheck instanceof Function&&at.tagNameCheck(T))&&(at.attributeNameCheck instanceof RegExp&&ye(at.attributeNameCheck,j)||at.attributeNameCheck instanceof Function&&at.attributeNameCheck(j))||j==="is"&&at.allowCustomizedBuiltInElements&&(at.tagNameCheck instanceof RegExp&&ye(at.tagNameCheck,Z)||at.tagNameCheck instanceof Function&&at.tagNameCheck(Z))))return!1}else if(!wi[j]&&!ye(B,Ra(Z,A,""))&&!((j==="src"||j==="xlink:href"||j==="href")&&T!=="script"&&eL(Z,"data:")===0&&er[T])&&!(Y&&!ye(C,Ra(Z,A,"")))&&Z)return!1}return!0},ut=function(T){return T!=="annotation-xml"&&uv(T,U)},Ot=function(T){M("beforeSanitizeAttributes",T,null);const{attributes:j}=T;if(!j)return;const Z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J};let ot=j.length;for(;ot--;){const vt=j[ot],{name:wt,namespaceURI:fe,value:ne}=vt,zt=Ft(wt);let ie=wt==="value"?ne:nL(ne);if(Z.attrName=zt,Z.attrValue=ie,Z.keepAttr=!0,Z.forceKeepAttr=void 0,M("uponSanitizeAttribute",T,Z),ie=Z.attrValue,Z.forceKeepAttr||(Nr(wt,T),!Z.keepAttr))continue;if(!tt&&ye(/\/>/i,ie)){Nr(wt,T);continue}if(z&&ye(/((--!?|])>)|<\/(style|title)/i,ie)){Nr(wt,T);continue}ct&&So([$,G,P],Nh=>{ie=Ra(ie,Nh," ")});const il=Ft(T.nodeName);if(K(il,zt,ie)){if(Ne&&(zt==="id"||zt==="name")&&(Nr(wt,T),ie=Lh+ie),x&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!fe)switch(p.getAttributeType(il,zt)){case"TrustedHTML":{ie=x.createHTML(ie);break}case"TrustedScriptURL":{ie=x.createScriptURL(ie);break}}try{fe?T.setAttributeNS(fe,wt,ie):T.setAttribute(wt,ie),nl(T)?xn(T):cv(t.removed)}catch{}}}M("afterSanitizeAttributes",T,null)},Dt=function T(j){let Z=null;const ot=el(j);for(M("beforeSanitizeShadowDOM",j,null);Z=ot.nextNode();)M("uponSanitizeShadowNode",Z,null),!W(Z)&&(Z.content instanceof a&&T(Z.content),Ot(Z));M("afterSanitizeShadowDOM",j,null)};return t.sanitize=function(T){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=null,ot=null,vt=null,wt=null;if(Fa=!T,Fa&&(T="<!-->"),typeof T!="string"&&!rl(T))if(typeof T.toString=="function"){if(T=T.toString(),typeof T!="string")throw La("dirty is not a string, aborting")}else throw La("toString is not a function");if(!t.isSupported)return T;if(_t||Ya(j),t.removed=[],typeof T=="string"&&(Dr=!1),Dr){if(T.nodeName){const zt=Ft(T.nodeName);if(!q[zt]||gt[zt])throw La("root node is forbidden and cannot be sanitized in-place")}}else if(T instanceof o)Z=tl("<!---->"),ot=Z.ownerDocument.importNode(T,!0),ot.nodeType===Da.element&&ot.nodeName==="BODY"||ot.nodeName==="HTML"?Z=ot:Z.appendChild(ot);else{if(!Nt&&!ct&&!$t&&T.indexOf("<")===-1)return x&&At?x.createHTML(T):T;if(Z=tl(T),!Z)return Nt?null:At?O:""}Z&&qt&&xn(Z.firstChild);const fe=el(Dr?T:Z);for(;vt=fe.nextNode();)W(vt)||(vt.content instanceof a&&Dt(vt.content),Ot(vt));if(Dr)return T;if(Nt){if(it)for(wt=k.call(Z.ownerDocument);Z.firstChild;)wt.appendChild(Z.firstChild);else wt=Z;return(J.shadowroot||J.shadowrootmode)&&(wt=L.call(r,wt,!0)),wt}let ne=$t?Z.outerHTML:Z.innerHTML;return $t&&q["!doctype"]&&Z.ownerDocument&&Z.ownerDocument.doctype&&Z.ownerDocument.doctype.name&&ye(gv,Z.ownerDocument.doctype.name)&&(ne="<!DOCTYPE "+Z.ownerDocument.doctype.name+`>
4
4
  `+ne),ct&&So([$,G,P],zt=>{ne=Ra(ne,zt," ")}),x&&At?x.createHTML(ne):ne},t.setConfig=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ya(T),_t=!0},t.clearConfig=function(){bn=null,_t=!1},t.isValidAttribute=function(T,j,Z){bn||Ya({});const ot=Ft(T),vt=Ft(j);return K(ot,vt,Z)},t.addHook=function(T,j){typeof j=="function"&&(R[T]=R[T]||[],ka(R[T],j))},t.removeHook=function(T){if(R[T])return cv(R[T])},t.removeHooks=function(T){R[T]&&(R[T]=[])},t.removeAllHooks=function(){R={}},t}var ju=yv();const Co=e=>ju.sanitize(e,{USE_PROFILES:{html:!0,svg:!0,svgFilters:!0}}),vL=e=>ju.sanitize(e,{NAMESPACE:"http://www.w3.org/2000/svg",USE_PROFILES:{html:!0,svg:!0,svgFilters:!0}}),vn=e=>ju.sanitize(e,{ALLOWED_TAGS:[]}),bv=class W0 extends bt{constructor(){super(...arguments),this.type="toolbar",this.renderType=rt.HTML}init(){const t=()=>this.updateOverflowMenu(!1);this.services.events.addEventListener(w.Toolbar.SHOW_OVERFLOW_MENU,()=>{this.renderOverflowMenu(),document.body.addEventListener("click",t)}),this.services.events.addEventListener(w.Toolbar.HIDE_OVERFLOW_MENU,()=>{document.body.removeEventListener("click",t)})}render(t=!0){const n=this.getComponentContainer().attr("role","toolbar").attr("aria-label","chart toolbar");if(b(this.getOptions(),"data","loading"))n.html(""),this.overflowMenu=null;else{this.overflowMenu||(this.overflowMenu=n.append("div").attr("class","cds--overflow-menu-options cds--overflow-menu--flip cds--overflow-menu-options cds--overflow-menu--flip").attr("tabindex",-1).html("<ul role='menu'></ul>"));const{buttonList:r,overflowMenuItemList:i}=this.getControlConfigs();i&&r.push(this.getOverflowButtonConfig());const a=n.selectAll("div.toolbar-control").data(r,l=>l.id);a.exit().remove();const s=a.enter().append("div").attr("class","toolbar-control cds--overflow-menu cds--overflow-menu"),o=this;s.merge(a).classed("disabled",l=>l.shouldBeDisabled()).attr("role","button").attr("aria-disabled",l=>l.shouldBeDisabled()).attr("aria-label",l=>l.title).html(l=>`