@erpsquad/common 1.10.1-test → 1.10.2-test
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.
- package/dist/{Tooltip-0Msd6gJs.js → Tooltip-BWIywPIG.js} +2 -2
- package/dist/{Tooltip-0Msd6gJs.js.map → Tooltip-BWIywPIG.js.map} +1 -1
- package/dist/{Tooltip-DBg9E0nY.esm.js → Tooltip-BuKMQR27.esm.js} +5 -5
- package/dist/{Tooltip-DBg9E0nY.esm.js.map → Tooltip-BuKMQR27.esm.js.map} +1 -1
- package/dist/{android-12-switch-C2yR_ny0.js → android-12-switch-Cwoy0lqC.js} +2 -2
- package/dist/{android-12-switch-C2yR_ny0.js.map → android-12-switch-Cwoy0lqC.js.map} +1 -1
- package/dist/{android-12-switch-CFHHRoXl.esm.js → android-12-switch-DIRd6Hz1.esm.js} +10 -10
- package/dist/{android-12-switch-CFHHRoXl.esm.js.map → android-12-switch-DIRd6Hz1.esm.js.map} +1 -1
- package/dist/{apiHelper-C7xLzw2l.esm.js → apiHelper-BLkPhudw.esm.js} +5 -5
- package/dist/{apiHelper-C7xLzw2l.esm.js.map → apiHelper-BLkPhudw.esm.js.map} +1 -1
- package/dist/{apiHelper-uNnzNGPt.js → apiHelper-DurABKEn.js} +2 -2
- package/dist/{apiHelper-uNnzNGPt.js.map → apiHelper-DurABKEn.js.map} +1 -1
- package/dist/{arrow-up-RDVMEaNg.esm.js → arrow-up-BYufujcs.esm.js} +47 -48
- package/dist/arrow-up-BYufujcs.esm.js.map +1 -0
- package/dist/{arrow-up-CZCTjL2a.js → arrow-up-u2i6ArLB.js} +47 -47
- package/dist/arrow-up-u2i6ArLB.js.map +1 -0
- package/dist/components/icons/create-custom-icon.d.ts +16 -0
- package/dist/components/index.esm.js +14 -14
- package/dist/components/index.js +1 -1
- package/dist/contexts/index.esm.js +3 -3
- package/dist/contexts/index.js +1 -1
- package/dist/{dashboard-BU3Ivh-m.esm.js → dashboard-BHs900IA.esm.js} +3 -3
- package/dist/dashboard-BHs900IA.esm.js.map +1 -0
- package/dist/{dashboard-DC1wsH2n.js → dashboard-ecHBMV8C.js} +3 -3
- package/dist/dashboard-ecHBMV8C.js.map +1 -0
- package/dist/{default-data-DMRyIpbS.js → default-data-kq9UR-LT.js} +2 -2
- package/dist/{default-data-DMRyIpbS.js.map → default-data-kq9UR-LT.js.map} +1 -1
- package/dist/{default-data-DZ7_2K9V.esm.js → default-data-rqQOC7ed.esm.js} +10 -10
- package/dist/{default-data-DZ7_2K9V.esm.js.map → default-data-rqQOC7ed.esm.js.map} +1 -1
- package/dist/{document-MTw-RQlt.js → document-Dat2mYKY.js} +7 -7
- package/dist/document-Dat2mYKY.js.map +1 -0
- package/dist/{document-jQDTo49w.esm.js → document-Dc0e4Wgt.esm.js} +3 -4
- package/dist/document-Dc0e4Wgt.esm.js.map +1 -0
- package/dist/{form-builder-deconversion-DUwJpbWi.js → form-builder-deconversion-Bt6_FHty.js} +2 -2
- package/dist/{form-builder-deconversion-DUwJpbWi.js.map → form-builder-deconversion-Bt6_FHty.js.map} +1 -1
- package/dist/{form-builder-deconversion-BmnMG6UA.esm.js → form-builder-deconversion-CjCls618.esm.js} +3 -3
- package/dist/{form-builder-deconversion-BmnMG6UA.esm.js.map → form-builder-deconversion-CjCls618.esm.js.map} +1 -1
- package/dist/{fullScreen-bLbPf_Sx.esm.js → fullScreen-B7NBNLnc.esm.js} +2 -2
- package/dist/{fullScreen-bLbPf_Sx.esm.js.map → fullScreen-B7NBNLnc.esm.js.map} +1 -1
- package/dist/{fullScreen-z8Ci7IBM.js → fullScreen-Bk29OQHQ.js} +2 -2
- package/dist/{fullScreen-z8Ci7IBM.js.map → fullScreen-Bk29OQHQ.js.map} +1 -1
- package/dist/hooks/index.esm.js +5 -5
- package/dist/hooks/index.js +1 -1
- package/dist/icons/index.esm.js +7 -7
- package/dist/icons/index.js +1 -1
- package/dist/{index-abVANnYO.esm.js → index-CasNCevI.esm.js} +3 -3
- package/dist/{index-abVANnYO.esm.js.map → index-CasNCevI.esm.js.map} +1 -1
- package/dist/{index-C2m4EKMw.js → index-D6O6Gc88.js} +2 -2
- package/dist/{index-C2m4EKMw.js.map → index-D6O6Gc88.js.map} +1 -1
- package/dist/index.esm.js +19 -19
- package/dist/index.js +1 -1
- package/dist/{languageContext-z0EIAM7m.esm.js → languageContext-BqGnL8Sv.esm.js} +2 -2
- package/dist/{languageContext-z0EIAM7m.esm.js.map → languageContext-BqGnL8Sv.esm.js.map} +1 -1
- package/dist/{languageContext-7DprjT6b.js → languageContext-hAPMY56Y.js} +2 -2
- package/dist/{languageContext-7DprjT6b.js.map → languageContext-hAPMY56Y.js.map} +1 -1
- package/dist/layout/index.esm.js +4 -4
- package/dist/layout/index.js +1 -1
- package/dist/{migration-utils-DRGPH-n4.js → migration-utils-Bh98qTkC.js} +2 -2
- package/dist/{migration-utils-DRGPH-n4.js.map → migration-utils-Bh98qTkC.js.map} +1 -1
- package/dist/{migration-utils-BzRKOUW0.esm.js → migration-utils-byCdwgkF.esm.js} +2 -2
- package/dist/{migration-utils-BzRKOUW0.esm.js.map → migration-utils-byCdwgkF.esm.js.map} +1 -1
- package/dist/notification-BsWK2s3n.js +7 -0
- package/dist/notification-BsWK2s3n.js.map +1 -0
- package/dist/{notification-BNeR5Dyl.esm.js → notification-Dbo3l5Vw.esm.js} +27 -5
- package/dist/notification-Dbo3l5Vw.esm.js.map +1 -0
- package/dist/{sidebar-C6-wzTTF.esm.js → sidebar-DTv1DxTn.esm.js} +5 -5
- package/dist/{sidebar-C6-wzTTF.esm.js.map → sidebar-DTv1DxTn.esm.js.map} +1 -1
- package/dist/{sidebar-BT_zTOCc.js → sidebar-U2vsFarM.js} +2 -2
- package/dist/{sidebar-BT_zTOCc.js.map → sidebar-U2vsFarM.js.map} +1 -1
- package/dist/src/components/icons/create-custom-icon.d.ts +16 -0
- package/dist/{tick-CcyPwRXL.esm.js → tick-Cogsd5aG.esm.js} +8 -9
- package/dist/tick-Cogsd5aG.esm.js.map +1 -0
- package/dist/{tick-Ct-Ir-1S.js → tick-XKXM5oTD.js} +22 -22
- package/dist/tick-XKXM5oTD.js.map +1 -0
- package/dist/{toggle-switch-FMTO6609.esm.js → toggle-switch-Day9cZg5.esm.js} +3 -4
- package/dist/toggle-switch-Day9cZg5.esm.js.map +1 -0
- package/dist/{toggle-switch-BghzgMG8.js → toggle-switch-P3dX3iMp.js} +5 -5
- package/dist/toggle-switch-P3dX3iMp.js.map +1 -0
- package/dist/{trash-BTwzTBYO.esm.js → trash-cWyby5W5.esm.js} +36 -37
- package/dist/trash-cWyby5W5.esm.js.map +1 -0
- package/dist/{trash-5CZCQE4a.js → trash-iM5WzuPQ.js} +124 -124
- package/dist/trash-iM5WzuPQ.js.map +1 -0
- package/dist/{uom-field-wrapper-6F9MCc0-.js → uom-field-wrapper-D4vafbb3.js} +2 -2
- package/dist/{uom-field-wrapper-6F9MCc0-.js.map → uom-field-wrapper-D4vafbb3.js.map} +1 -1
- package/dist/{uom-field-wrapper-3usHZZm1.esm.js → uom-field-wrapper-DHzy94__.esm.js} +12 -12
- package/dist/{uom-field-wrapper-3usHZZm1.esm.js.map → uom-field-wrapper-DHzy94__.esm.js.map} +1 -1
- package/dist/{useAccountSetting-ChWt7JwC.js → useAccountSetting-CNoWakIN.js} +2 -2
- package/dist/{useAccountSetting-ChWt7JwC.js.map → useAccountSetting-CNoWakIN.js.map} +1 -1
- package/dist/{useAccountSetting-BEKGFdbo.esm.js → useAccountSetting-D2gUGGca.esm.js} +2 -2
- package/dist/{useAccountSetting-BEKGFdbo.esm.js.map → useAccountSetting-D2gUGGca.esm.js.map} +1 -1
- package/dist/{useAuth-C18aZa1n.esm.js → useAuth-Bvid1bpz.esm.js} +2 -2
- package/dist/{useAuth-C18aZa1n.esm.js.map → useAuth-Bvid1bpz.esm.js.map} +1 -1
- package/dist/{useAuth-Dpe5kDa6.js → useAuth-CVokk6Ra.js} +2 -2
- package/dist/{useAuth-Dpe5kDa6.js.map → useAuth-CVokk6Ra.js.map} +1 -1
- package/dist/{useLangauge-DKPl4qKr.esm.js → useLangauge-BQjH-l_B.esm.js} +2 -2
- package/dist/{useLangauge-DKPl4qKr.esm.js.map → useLangauge-BQjH-l_B.esm.js.map} +1 -1
- package/dist/{useLangauge-DaCaybJt.js → useLangauge-ySJIB0GV.js} +2 -2
- package/dist/{useLangauge-DaCaybJt.js.map → useLangauge-ySJIB0GV.js.map} +1 -1
- package/dist/utils/index.esm.js +3 -3
- package/dist/utils/index.js +1 -1
- package/dist/views/index.esm.js +5 -5
- package/dist/views/index.js +1 -1
- package/package.json +1 -1
- package/dist/arrow-up-CZCTjL2a.js.map +0 -1
- package/dist/arrow-up-RDVMEaNg.esm.js.map +0 -1
- package/dist/dashboard-BU3Ivh-m.esm.js.map +0 -1
- package/dist/dashboard-DC1wsH2n.js.map +0 -1
- package/dist/document-MTw-RQlt.js.map +0 -1
- package/dist/document-jQDTo49w.esm.js.map +0 -1
- package/dist/notification-BNeR5Dyl.esm.js.map +0 -1
- package/dist/notification-BmKHaKZF.js +0 -6
- package/dist/notification-BmKHaKZF.js.map +0 -1
- package/dist/tick-CcyPwRXL.esm.js.map +0 -1
- package/dist/tick-Ct-Ir-1S.js.map +0 -1
- package/dist/toggle-switch-BghzgMG8.js.map +0 -1
- package/dist/toggle-switch-FMTO6609.esm.js.map +0 -1
- package/dist/trash-5CZCQE4a.js.map +0 -1
- package/dist/trash-BTwzTBYO.esm.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),t=require("react"),n=require("@mui/material"),r=require("@mui/lab/Timeline"),a=require("@mui/lab/TimelineItem"),i=require("@mui/lab/TimelineSeparator"),o=require("@mui/lab/TimelineConnector"),l=require("@mui/lab/TimelineContent"),s=require("@mui/lab/TimelineDot");;/* empty css */const c=require("./images-E5-7PC4V.js"),d=require("./Tooltip-0Msd6gJs.js"),u=require("./android-12-switch-C2yR_ny0.js"),p=require("./useAuth-Dpe5kDa6.js"),h=require("./common-8gzbBoY1.js"),m=require("dayjs"),f=require("react-i18next"),g=require("lucide-react"),y=require("@mui/icons-material"),x=require("yup"),v=require("@hookform/resolvers/yup"),b=require("react-hook-form"),w=require("./form-builder-deconversion-DUwJpbWi.js"),j=require("./api-By0ZkuF-.js"),C=require("notistack"),_=require("./trash-5CZCQE4a.js"),S=require("react-redux"),k=require("./apiHelper-uNnzNGPt.js"),T=require("@asseinfo/react-kanban"),M=require("./navigation-utils-IZ3aXrx9.js"),A=require("@fullcalendar/react"),D=require("@fullcalendar/daygrid"),N=require("@fullcalendar/list"),E=require("@fullcalendar/interaction"),B=require("@fullcalendar/timegrid"),R=require("@fullcalendar/resource-timegrid"),P=require("@fullcalendar/timeline"),$=require("@fullcalendar/resource-timeline"),I=require("@mui/system"),F=require("@mui/material/Box"),O=require("./tick-Ct-Ir-1S.js"),z=require("react-flags-select"),q=require("./useLangauge-DaCaybJt.js"),L=require("@mui/icons-material/Close"),Y=require("react-router-dom"),W=require("./index-C2m4EKMw.js"),V=require("gantt-task-react"),H=require("@mui/material/styles/useTheme"),K=require("@mui/icons-material/KeyboardArrowDown"),U=require("react-date-range"),G=require("./action-bar-BmEN5Ob9.js"),X=require("@mui/material/Accordion"),J=require("@mui/material/Chip"),Q=require("@mui/material/AccordionSummary"),Z=require("@mui/material/AccordionDetails"),ee=require("@mui/material/Typography"),te=require("@mui/icons-material/ExpandMore"),ne=require("@mui/icons-material/RadioButtonChecked"),re=require("@glideapps/glide-data-grid"),ae=require("@glideapps/glide-data-grid-cells"),ie=require("react-dom"),oe=require("./index-cCmajWQ7.js"),le=require("@mui/icons-material/Add"),se=require("react-datepicker");;/* empty css */const ce=require("material-react-table"),de=require("@mui/icons-material/ChevronRight"),ue=require("@mui/icons-material/ChevronLeft"),pe=require("lodash"),he=require("./useAccountSetting-ChWt7JwC.js"),me=require("./modules-Cu5Q6erF.js"),fe=require("./pathname.rental-hhA3jITb.js"),ge=require("./pathname.hrms-_XwfjMta.js"),ye=require("@mui/material/Menu"),xe=require("@mui/material/MenuItem"),ve=require("./hooks-BdfwliGF.js"),be=require("./store-PPyEzvyH.js"),we=require("@mui/material/IconButton"),je=require("@mui/material/Tab"),Ce=require("@mui/lab/TabContext"),_e=require("@mui/lab/TabList"),Se=require("@mui/lab/TabPanel"),ke=require("@mui/base"),Te=require("@mui/material/LinearProgress"),Me=require("react-dropzone"),Ae=require("@mui/icons-material/Remove"),De=require("./api-config-C9BF5LFu.js");;/* empty css */const Ne=require("@mui/material/List"),Ee=require("@mui/material/ListItem"),Be=require("@mui/material/ListItemText"),Re=require("@mui/material/styles"),Pe=require("@mui/material/Card"),$e=require("@mui/material/CardContent"),Ie=require("@mui/icons-material/ArrowDropDown"),Fe=require("@mui/icons-material/ArrowDropUp"),Oe=require("@mui/material/Checkbox"),ze=require("./typography-BzrMi9XI.js"),qe=require("./arrow-up-CZCTjL2a.js");function Le(e){return e&&e.__esModule?e.default:e}function Ye(e){if(e&&e.__esModule)return e;const t=/* @__PURE__ */Object.create(null);if(e)for(const n in e)t[n]=e[n];return t.default=e,t}const We=/* @__PURE__ */Le(t),Ve=/* @__PURE__ */Le(r),He=/* @__PURE__ */Le(a),Ke=/* @__PURE__ */Le(i),Ue=/* @__PURE__ */Le(o),Ge=/* @__PURE__ */Le(l),Xe=/* @__PURE__ */Le(s),Je=/* @__PURE__ */Le(m),Qe=/* @__PURE__ */Ye(x),Ze=/* @__PURE__ */Le(T),et=/* @__PURE__ */Le(A),tt=/* @__PURE__ */Le(D),nt=/* @__PURE__ */Le(N),rt=/* @__PURE__ */Le(E),at=/* @__PURE__ */Le(B),it=/* @__PURE__ */Le(R),ot=/* @__PURE__ */Le(P),lt=/* @__PURE__ */Le($),st=/* @__PURE__ */Le(F),ct=/* @__PURE__ */Le(z),dt=/* @__PURE__ */Le(L),ut=/* @__PURE__ */Le(H),pt=/* @__PURE__ */Le(K),ht=/* @__PURE__ */Le(X),mt=/* @__PURE__ */Le(J),ft=/* @__PURE__ */Le(Q),gt=/* @__PURE__ */Le(Z),yt=/* @__PURE__ */Le(ee),xt=/* @__PURE__ */Le(te),vt=/* @__PURE__ */Le(ne),bt=/* @__PURE__ */Le(re),wt=/* @__PURE__ */Le(le),jt=/* @__PURE__ */Le(se),Ct=/* @__PURE__ */Le(de),_t=/* @__PURE__ */Le(ue),St=/* @__PURE__ */Le(pe),kt=/* @__PURE__ */Le(ye),Tt=/* @__PURE__ */Le(xe),Mt=/* @__PURE__ */Le(we),At=/* @__PURE__ */Le(je),Dt=/* @__PURE__ */Le(Ce),Nt=/* @__PURE__ */Le(_e),Et=/* @__PURE__ */Le(Se),Bt=/* @__PURE__ */Le(Te),Rt=/* @__PURE__ */Le(Ae),Pt=/* @__PURE__ */Le(Ne),$t=/* @__PURE__ */Le(Ee),It=/* @__PURE__ */Le(Be),Ft=/* @__PURE__ */Le(Pe),Ot=/* @__PURE__ */Le($e),zt=/* @__PURE__ */Le(Ie),qt=/* @__PURE__ */Le(Fe),Lt=/* @__PURE__ */Le(Oe),Yt=n.styled(n.TextField)(({theme:{palette:e}})=>{var t,n,r,a;return{width:"100%","& .MuiOutlinedInput-root":{height:"2rem","& fieldset":{borderColor:null==(t=e.theme)?void 0:t.secondary[300],borderWidth:2},"&:hover fieldset":{borderColor:null==(n=e.theme)?void 0:n.secondary[300]},"&.Mui-focused fieldset":{borderColor:null==(r=e.theme)?void 0:r.primary[700]},"&.Mui-error fieldset":{borderColor:null==(a=e.theme)?void 0:a.error[600]}}}});function Wt(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Vt(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ht(e){let t,n,r;function a(e,r,a=0,i=e.length){if(a<i){if(0!==t(r,r))return i;do{const t=a+i>>>1;n(e[t],r)<0?a=t+1:i=t}while(a<i)}return a}return 2!==e.length?(t=Wt,n=(t,n)=>Wt(e(t),n),r=(t,n)=>e(t)-n):(t=e===Wt||e===Vt?e:Kt,n=e,r=e),{left:a,center:function(e,t,n=0,i=e.length){const o=a(e,t,n,i-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o},right:function(e,r,a=0,i=e.length){if(a<i){if(0!==t(r,r))return i;do{const t=a+i>>>1;n(e[t],r)<=0?a=t+1:i=t}while(a<i)}return a}}}function Kt(){return 0}const Ut=Ht(Wt).right;Ht(function(e){return null===e?NaN:+e}).center;class Gt extends Map{constructor(e,t=Jt){if(super(),Object.defineProperties(this,{_intern:{value:/* @__PURE__ */new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(Xt(this,e))}has(e){return super.has(Xt(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function Xt({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Jt(e){return null!==e&&"object"==typeof e?e.valueOf():e}const Qt=Math.sqrt(50),Zt=Math.sqrt(10),en=Math.sqrt(2);function tn(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=Qt?10:i>=Zt?5:i>=en?2:1;let l,s,c;return a<0?(c=Math.pow(10,-a)/o,l=Math.round(e*c),s=Math.round(t*c),l/c<e&&++l,s/c>t&&--s,c=-c):(c=Math.pow(10,a)*o,l=Math.round(e/c),s=Math.round(t/c),l*c<e&&++l,s*c>t&&--s),s<l&&.5<=n&&n<2?tn(e,t,2*n):[l,s,c]}function nn(e,t,n){return tn(e=+e,t=+t,n=+n)[2]}function rn(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(n<a||void 0===n&&a>=a)&&(n=a)}return n}function an(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(n>a||void 0===n&&a>=a)&&(n=a)}return n}function on(e){return e}var ln=1e-6;function sn(e){return"translate("+e+",0)"}function cn(e){return"translate(0,"+e+")"}function dn(e){return t=>+e(t)}function un(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function pn(){return!this.__axis}function hn(e,t){var n=[],r=null,a=null,i=6,o=6,l=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===e||4===e?-1:1,d=4===e||2===e?"x":"y",u=1===e||3===e?sn:cn;function p(p){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,m=null==a?t.tickFormat?t.tickFormat.apply(t,n):on:a,f=Math.max(i,0)+l,g=t.range(),y=+g[0]+s,x=+g[g.length-1]+s,v=(t.bandwidth?un:dn)(t.copy(),s),b=p.selection?p.selection():p,w=b.selectAll(".domain").data([null]),j=b.selectAll(".tick").data(h,t).order(),C=j.exit(),_=j.enter().append("g").attr("class","tick"),S=j.select("line"),k=j.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),j=j.merge(_),S=S.merge(_.append("line").attr("stroke","currentColor").attr(d+"2",c*i)),k=k.merge(_.append("text").attr("fill","currentColor").attr(d,c*f).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),p!==b&&(w=w.transition(p),j=j.transition(p),S=S.transition(p),k=k.transition(p),C=C.transition(p).attr("opacity",ln).attr("transform",function(e){return isFinite(e=v(e))?u(e+s):this.getAttribute("transform")}),_.attr("opacity",ln).attr("transform",function(e){var t=this.parentNode.__axis;return u((t&&isFinite(t=t(e))?t:v(e))+s)})),C.remove(),w.attr("d",4===e||2===e?o?"M"+c*o+","+y+"H"+s+"V"+x+"H"+c*o:"M"+s+","+y+"V"+x:o?"M"+y+","+c*o+"V"+s+"H"+x+"V"+c*o:"M"+y+","+s+"H"+x),j.attr("opacity",1).attr("transform",function(e){return u(v(e)+s)}),S.attr(d+"2",c*i),k.attr(d,c*f).text(m),b.filter(pn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),b.each(function(){this.__axis=v})}return p.scale=function(e){return arguments.length?(t=e,p):t},p.ticks=function(){return n=Array.from(arguments),p},p.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),p):n.slice()},p.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),p):r&&r.slice()},p.tickFormat=function(e){return arguments.length?(a=e,p):a},p.tickSize=function(e){return arguments.length?(i=o=+e,p):i},p.tickSizeInner=function(e){return arguments.length?(i=+e,p):i},p.tickSizeOuter=function(e){return arguments.length?(o=+e,p):o},p.tickPadding=function(e){return arguments.length?(l=+e,p):l},p.offset=function(e){return arguments.length?(s=+e,p):s},p}function mn(e){return hn(3,e)}function fn(e){return hn(4,e)}var gn="http://www.w3.org/1999/xhtml";const yn={svg:"http://www.w3.org/2000/svg",xhtml:gn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xn(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),yn.hasOwnProperty(t)?{space:yn[t],local:e}:e}function vn(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===gn&&t.documentElement.namespaceURI===gn?t.createElement(e):t.createElementNS(n,e)}}function bn(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function wn(e){var t=xn(e);return(t.local?bn:vn)(t)}function jn(){}function Cn(e){return null==e?jn:function(){return this.querySelector(e)}}function _n(){return[]}function Sn(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t);var t}}function kn(e){return function(t){return t.matches(e)}}var Tn=Array.prototype.find;function Mn(){return this.firstElementChild}var An=Array.prototype.filter;function Dn(){return Array.from(this.children)}function Nn(e){return new Array(e.length)}function En(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Bn(e,t,n,r,a,i){for(var o,l=0,s=t.length,c=i.length;l<c;++l)(o=t[l])?(o.__data__=i[l],r[l]=o):n[l]=new En(e,i[l]);for(;l<s;++l)(o=t[l])&&(a[l]=o)}function Rn(e,t,n,r,a,i,o){var l,s,c,d=/* @__PURE__ */new Map,u=t.length,p=i.length,h=new Array(u);for(l=0;l<u;++l)(s=t[l])&&(h[l]=c=o.call(s,s.__data__,l,t)+"",d.has(c)?a[l]=s:d.set(c,s));for(l=0;l<p;++l)c=o.call(e,i[l],l,i)+"",(s=d.get(c))?(r[l]=s,s.__data__=i[l],d.delete(c)):n[l]=new En(e,i[l]);for(l=0;l<u;++l)(s=t[l])&&d.get(h[l])===s&&(a[l]=s)}function Pn(e){return e.__data__}function $n(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function In(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Fn(e){return function(){this.removeAttribute(e)}}function On(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zn(e,t){return function(){this.setAttribute(e,t)}}function qn(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ln(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Yn(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Wn(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Vn(e){return function(){this.style.removeProperty(e)}}function Hn(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Kn(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Un(e){return function(){delete this[e]}}function Gn(e,t){return function(){this[e]=t}}function Xn(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Jn(e){return e.trim().split(/^|\s+/)}function Qn(e){return e.classList||new Zn(e)}function Zn(e){this._node=e,this._names=Jn(e.getAttribute("class")||"")}function er(e,t){for(var n=Qn(e),r=-1,a=t.length;++r<a;)n.add(t[r])}function tr(e,t){for(var n=Qn(e),r=-1,a=t.length;++r<a;)n.remove(t[r])}function nr(e){return function(){er(this,e)}}function rr(e){return function(){tr(this,e)}}function ar(e,t){return function(){(t.apply(this,arguments)?er:tr)(this,e)}}function ir(){this.textContent=""}function or(e){return function(){this.textContent=e}}function lr(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function sr(){this.innerHTML=""}function cr(e){return function(){this.innerHTML=e}}function dr(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function ur(){this.nextSibling&&this.parentNode.appendChild(this)}function pr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hr(){return null}function mr(){var e=this.parentNode;e&&e.removeChild(this)}function fr(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function gr(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function yr(e){return function(){var t=this.__on;if(t){for(var n,r=0,a=-1,i=t.length;r<i;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++a]=n:this.removeEventListener(n.type,n.listener,n.options);++a?t.length=a:delete this.__on}}}function xr(e,t,n){return function(){var r,a=this.__on,i=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(a)for(var o=0,l=a.length;o<l;++o)if((r=a[o]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),void(r.value=t);this.addEventListener(e.type,i,n),r={type:e.type,name:e.name,value:t,listener:i,options:n},a?a.push(r):this.__on=[r]}}function vr(e,t,n){var r=Wn(e),a=r.CustomEvent;"function"==typeof a?a=new a(t,n):(a=r.document.createEvent("Event"),n?(a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}function br(e,t){return function(){return vr(this,e,t)}}function wr(e,t){return function(){return vr(this,e,t.apply(this,arguments))}}En.prototype={constructor:En,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)}},Zn.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var jr=[null];function Cr(e,t){this._groups=e,this._parents=t}function _r(e){return"string"==typeof e?new Cr([[document.querySelector(e)]],[document.documentElement]):new Cr([[e]],jr)}function Sr(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(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())).x,r.y]}if(t.getBoundingClientRect){var a=t.getBoundingClientRect();return[e.clientX-a.left-t.clientLeft,e.clientY-a.top-t.clientTop]}}return[e.pageX,e.pageY]}function kr(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Tr(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mr(){}Cr.prototype={constructor:Cr,select:function(e){"function"!=typeof e&&(e=Cn(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i,o,l=t[a],s=l.length,c=r[a]=new Array(s),d=0;d<s;++d)(i=l[d])&&(o=e.call(i,i.__data__,d,l))&&("__data__"in i&&(o.__data__=i.__data__),c[d]=o);return new Cr(r,this._parents)},selectAll:function(e){var t;"function"==typeof e?e=Sn(e):e=null==(t=e)?_n:function(){return this.querySelectorAll(t)};for(var n=this._groups,r=n.length,a=[],i=[],o=0;o<r;++o)for(var l,s=n[o],c=s.length,d=0;d<c;++d)(l=s[d])&&(a.push(e.call(l,l.__data__,d,s)),i.push(l));return new Cr(a,i)},selectChild:function(e){return this.select(null==e?Mn:function(e){return function(){return Tn.call(this.children,e)}}("function"==typeof e?e:kn(e)))},selectChildren:function(e){return this.selectAll(null==e?Dn:function(e){return function(){return An.call(this.children,e)}}("function"==typeof e?e:kn(e)))},filter:function(e){var t;"function"!=typeof e&&(t=e,e=function(){return this.matches(t)});for(var n=this._groups,r=n.length,a=new Array(r),i=0;i<r;++i)for(var o,l=n[i],s=l.length,c=a[i]=[],d=0;d<s;++d)(o=l[d])&&e.call(o,o.__data__,d,l)&&c.push(o);return new Cr(a,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Pn);var n,r=t?Rn:Bn,a=this._parents,i=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var o=i.length,l=new Array(o),s=new Array(o),c=new Array(o),d=0;d<o;++d){var u=a[d],p=i[d],h=p.length,m=$n(e.call(u,u&&u.__data__,d,a)),f=m.length,g=s[d]=new Array(f),y=l[d]=new Array(f);r(u,p,g,y,c[d]=new Array(h),m,t);for(var x,v,b=0,w=0;b<f;++b)if(x=g[b]){for(b>=w&&(w=b+1);!(v=y[w])&&++w<f;);x._next=v||null}}return(l=new Cr(l,a))._enter=s,l._exit=c,l},enter:function(){return new Cr(this._enter||this._groups.map(Nn),this._parents)},exit:function(){return new Cr(this._exit||this._groups.map(Nn),this._parents)},join:function(e,t,n){var r=this.enter(),a=this,i=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(a=t(a))&&(a=a.selection()),null==n?i.remove():n(i),r&&a?r.merge(a).order():a},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,a=n.length,i=r.length,o=Math.min(a,i),l=new Array(a),s=0;s<o;++s)for(var c,d=n[s],u=r[s],p=d.length,h=l[s]=new Array(p),m=0;m<p;++m)(c=d[m]||u[m])&&(h[m]=c);for(;s<a;++s)l[s]=n[s];return new Cr(l,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,a=e[t],i=a.length-1,o=a[i];--i>=0;)(r=a[i])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=In);for(var n=this._groups,r=n.length,a=new Array(r),i=0;i<r;++i){for(var o,l=n[i],s=l.length,c=a[i]=new Array(s),d=0;d<s;++d)(o=l[d])&&(c[d]=o);c.sort(t)}return new Cr(a,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,i=r.length;a<i;++a){var o=r[a];if(o)return o}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var a,i=t[n],o=0,l=i.length;o<l;++o)(a=i[o])&&e.call(a,a.__data__,o,i);return this},attr:function(e,t){var n=xn(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?On:Fn:"function"==typeof t?n.local?Yn:Ln:n.local?qn:zn)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Vn:"function"==typeof t?Kn:Hn)(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||Wn(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Un:"function"==typeof t?Xn:Gn)(e,t)):this.node()[e]},classed:function(e,t){var n=Jn(e+"");if(arguments.length<2){for(var r=Qn(this.node()),a=-1,i=n.length;++a<i;)if(!r.contains(n[a]))return!1;return!0}return this.each(("function"==typeof t?ar:t?nr:rr)(n,t))},text:function(e){return arguments.length?this.each(null==e?ir:("function"==typeof e?lr:or)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?sr:("function"==typeof e?dr:cr)(e)):this.node().innerHTML},raise:function(){return this.each(ur)},lower:function(){return this.each(pr)},append:function(e){var t="function"==typeof e?e:wn(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:wn(e),r=null==t?hr:"function"==typeof t?t:Cn(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(mr)},clone:function(e){return this.select(e?gr:fr)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,a,i=function(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),o=i.length;if(!(arguments.length<2)){for(l=t?xr:yr,r=0;r<o;++r)this.each(l(i[r],t,n));return this}var l=this.node().__on;if(l)for(var s,c=0,d=l.length;c<d;++c)for(r=0,s=l[c];r<o;++r)if((a=i[r]).type===s.type&&a.name===s.name)return s.value},dispatch:function(e,t){return this.each(("function"==typeof t?wr:br)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,a=e[t],i=0,o=a.length;i<o;++i)(r=a[i])&&(yield r)}};var Ar=.7,Dr=1/Ar,Nr="\\s*([+-]?\\d+)\\s*",Er="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Br="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Rr=/^#([0-9a-f]{3,8})$/,Pr=new RegExp(`^rgb\\(${Nr},${Nr},${Nr}\\)$`),$r=new RegExp(`^rgb\\(${Br},${Br},${Br}\\)$`),Ir=new RegExp(`^rgba\\(${Nr},${Nr},${Nr},${Er}\\)$`),Fr=new RegExp(`^rgba\\(${Br},${Br},${Br},${Er}\\)$`),Or=new RegExp(`^hsl\\(${Er},${Br},${Br}\\)$`),zr=new RegExp(`^hsla\\(${Er},${Br},${Br},${Er}\\)$`),qr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Lr(){return this.rgb().formatHex()}function Yr(){return this.rgb().formatRgb()}function Wr(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Rr.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Vr(t):3===n?new Ur(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Hr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Hr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Pr.exec(e))?new Ur(t[1],t[2],t[3],1):(t=$r.exec(e))?new Ur(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ir.exec(e))?Hr(t[1],t[2],t[3],t[4]):(t=Fr.exec(e))?Hr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Or.exec(e))?ea(t[1],t[2]/100,t[3]/100,1):(t=zr.exec(e))?ea(t[1],t[2]/100,t[3]/100,t[4]):qr.hasOwnProperty(e)?Vr(qr[e]):"transparent"===e?new Ur(NaN,NaN,NaN,0):null}function Vr(e){return new Ur(e>>16&255,e>>8&255,255&e,1)}function Hr(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ur(e,t,n,r)}function Kr(e,t,n,r){return 1===arguments.length?((a=e)instanceof Mr||(a=Wr(a)),a?new Ur((a=a.rgb()).r,a.g,a.b,a.opacity):new Ur):new Ur(e,t,n,null==r?1:r);var a}function Ur(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Gr(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}`}function Xr(){const e=Jr(this.opacity);return`${1===e?"rgb(":"rgba("}${Qr(this.r)}, ${Qr(this.g)}, ${Qr(this.b)}${1===e?")":`, ${e})`}`}function Jr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zr(e){return((e=Qr(e))<16?"0":"")+e.toString(16)}function ea(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new na(e,t,n,r)}function ta(e){if(e instanceof na)return new na(e.h,e.s,e.l,e.opacity);if(e instanceof Mr||(e=Wr(e)),!e)return new na;if(e instanceof na)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,l=i-a,s=(i+a)/2;return l?(o=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+a:2-i-a,o*=60):l=s>0&&s<1?0:o,new na(o,l,s,e.opacity)}function na(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ra(e){return(e=(e||0)%360)<0?e+360:e}function aa(e){return Math.max(0,Math.min(1,e||0))}function ia(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}kr(Mr,Wr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Lr,formatHex:Lr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ta(this).formatHsl()},formatRgb:Yr,toString:Yr}),kr(Ur,Kr,Tr(Mr,{brighter(e){return e=null==e?Dr:Math.pow(Dr,e),new Ur(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ar:Math.pow(Ar,e),new Ur(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ur(Qr(this.r),Qr(this.g),Qr(this.b),Jr(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:Gr,formatHex:Gr,formatHex8:function(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}${Zr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Xr,toString:Xr})),kr(na,function(e,t,n,r){return 1===arguments.length?ta(e):new na(e,t,n,null==r?1:r)},Tr(Mr,{brighter(e){return e=null==e?Dr:Math.pow(Dr,e),new na(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ar:Math.pow(Ar,e),new na(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Ur(ia(e>=240?e-240:e+120,a,r),ia(e,a,r),ia(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new na(ra(this.h),aa(this.s),aa(this.l),Jr(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=Jr(this.opacity);return`${1===e?"hsl(":"hsla("}${ra(this.h)}, ${100*aa(this.s)}%, ${100*aa(this.l)}%${1===e?")":`, ${e})`}`}}));const oa=e=>()=>e;function la(e){return 1===(e=+e)?sa:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):oa(isNaN(t)?n:t)}}function sa(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):oa(isNaN(e)?t:e)}const ca=function e(t){var n=la(t);function r(e,t){var r=n((e=Kr(e)).r,(t=Kr(t)).r),a=n(e.g,t.g),i=n(e.b,t.b),o=sa(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=a(t),e.b=i(t),e.opacity=o(t),e+""}}return r.gamma=e,r}(1);function da(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,a=t.slice();return function(i){for(n=0;n<r;++n)a[n]=e[n]*(1-i)+t[n]*i;return a}}function ua(e,t){var n,r=t?t.length:0,a=e?Math.min(r,e.length):0,i=new Array(a),o=new Array(r);for(n=0;n<a;++n)i[n]=xa(e[n],t[n]);for(;n<r;++n)o[n]=t[n];return function(e){for(n=0;n<a;++n)o[n]=i[n](e);return o}}function pa(e,t){var n=/* @__PURE__ */new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ha(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function ma(e,t){var n,r={},a={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=xa(e[n],t[n]):a[n]=t[n];return function(e){for(n in r)a[n]=r[n](e);return a}}var fa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ga=new RegExp(fa.source,"g");function ya(e,t){var n,r,a,i=fa.lastIndex=ga.lastIndex=0,o=-1,l=[],s=[];for(e+="",t+="";(n=fa.exec(e))&&(r=ga.exec(t));)(a=r.index)>i&&(a=t.slice(i,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(r=r[0])?l[o]?l[o]+=r:l[++o]=r:(l[++o]=null,s.push({i:o,x:ha(n,r)})),i=ga.lastIndex;return i<t.length&&(a=t.slice(i),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}function xa(e,t){var n,r,a=typeof t;return null==t||"boolean"===a?oa(t):("number"===a?ha:"string"===a?(n=Wr(t))?(t=n,ca):ya:t instanceof Wr?ca:t instanceof Date?pa:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?ua:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?ma:ha:da))(e,t)}function va(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}const ba=Math.PI,wa=2*ba,ja=1e-6,Ca=wa-ja;function _a(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class Sa{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?_a:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return _a;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(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,a,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+a},${this._y1=+i}`}arcTo(e,t,n,r,a){if(e=+e,t=+t,n=+n,r=+r,(a=+a)<0)throw new Error(`negative radius: ${a}`);let i=this._x1,o=this._y1,l=n-e,s=r-t,c=i-e,d=o-t,u=c*c+d*d;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(u>ja)if(Math.abs(d*l-s*c)>ja&&a){let p=n-i,h=r-o,m=l*l+s*s,f=p*p+h*h,g=Math.sqrt(m),y=Math.sqrt(u),x=a*Math.tan((ba-Math.acos((m+u-f)/(2*g*y)))/2),v=x/y,b=x/g;Math.abs(v-1)>ja&&this._append`L${e+v*c},${t+v*d}`,this._append`A${a},${a},0,0,${+(d*p>c*h)},${this._x1=e+b*l},${this._y1=t+b*s}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,a,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(r),l=n*Math.sin(r),s=e+o,c=t+l,d=1^i,u=i?r-a:a-r;null===this._x1?this._append`M${s},${c}`:(Math.abs(this._x1-s)>ja||Math.abs(this._y1-c)>ja)&&this._append`L${s},${c}`,n&&(u<0&&(u=u%wa+wa),u>Ca?this._append`A${n},${n},0,1,${d},${e-o},${t-l}A${n},${n},0,1,${d},${this._x1=s},${this._y1=c}`:u>ja&&this._append`A${n},${n},0,${+(u>=ba)},${d},${this._x1=e+n*Math.cos(a)},${this._y1=t+n*Math.sin(a)}`)}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 ka(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ta(e){return(e=ka(Math.abs(e)))?e[1]:NaN}var Ma,Aa=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Da(e){if(!(t=Aa.exec(e)))throw new Error("invalid format: "+e);var t;return new Na({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Na(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Ea(e,t){var n=ka(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}Da.prototype=Na.prototype,Na.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Ba={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},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)=>Ea(100*e,t),r:Ea,s:function(e,t){var n=ka(e,t);if(!n)return Ma=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(Ma=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+ka(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ra(e){return e}var Pa,$a,Ia,Fa=Array.prototype.map,Oa=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function za(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Ra:(t=Fa.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var a=e.length,i=[],o=0,l=t[0],s=0;a>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),i.push(e.substring(a-=l,a+l)),!((s+=l+1)>r));)l=t[o=(o+1)%t.length];return i.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?Ra:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Fa.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function u(e,t){var n=(e=Da(e)).fill,u=e.align,p=e.sign,h=e.symbol,m=e.zero,f=e.width,g=e.comma,y=e.precision,x=e.trim,v=e.type;"n"===v?(g=!0,v="g"):Ba[v]||(void 0===y&&(y=12),x=!0,v="g"),(m||"0"===n&&"="===u)&&(m=!0,n="0",u="=");var b=(t&&void 0!==t.prefix?t.prefix:"")+("$"===h?a:"#"===h&&/[boxX]/.test(v)?"0"+v.toLowerCase():""),w=("$"===h?i:/[%p]/.test(v)?s:"")+(t&&void 0!==t.suffix?t.suffix:""),j=Ba[v],C=/[defgprs%]/.test(v);function _(e){var t,a,i,s=b,h=w;if("c"===v)h=j(e)+h,e="";else{var _=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:j(Math.abs(e),y),x&&(e=function(e){e:for(var t,n=e.length,r=1,a=-1;r<n;++r)switch(e[r]){case".":a=t=r;break;case"0":0===a&&(a=r),t=r;break;default:if(!+e[r])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),_&&0===+e&&"+"!==p&&(_=!1),s=(_?"("===p?p:c:"-"===p||"("===p?"":p)+s,h=("s"!==v||isNaN(e)||void 0===Ma?"":Oa[8+Ma/3])+h+(_&&"("===p?")":""),C)for(t=-1,a=e.length;++t<a;)if(48>(i=e.charCodeAt(t))||i>57){h=(46===i?o+e.slice(t+1):e.slice(t))+h,e=e.slice(0,t);break}}g&&!m&&(e=r(e,1/0));var S=s.length+e.length+h.length,k=S<f?new Array(f-S+1).join(n):"";switch(g&&m&&(e=r(k+e,k.length?f-h.length:1/0),k=""),u){case"<":e=s+e+h+k;break;case"=":e=s+k+e+h;break;case"^":e=k.slice(0,S=k.length>>1)+s+e+h+k.slice(S);break;default:e=k+s+e+h}return l(e)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),_.toString=function(){return e+""},_}return{format:u,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(Ta(t)/3))),r=Math.pow(10,-n),a=u(((e=Da(e)).type="f",e),{suffix:Oa[8+n/3]});return function(e){return a(r*e)}}}}function qa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}Pa=za({thousands:",",grouping:[3],currency:["$",""]}),$a=Pa.format,Ia=Pa.formatPrefix;const La=Symbol("implicit");function Ya(){var e=new Gt,t=[],n=[],r=La;function a(a){let i=e.get(a);if(void 0===i){if(r!==La)return r;e.set(a,i=t.push(a)-1)}return n[i%n.length]}return a.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Gt;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return a},a.range=function(e){return arguments.length?(n=Array.from(e),a):n.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.copy=function(){return Ya(t,n).unknown(r)},qa.apply(a,arguments),a}function Wa(){var e,t,n=Ya().unknown(void 0),r=n.domain,a=n.range,i=0,o=1,l=!1,s=0,c=0,d=.5;function u(){var n=r().length,u=o<i,p=u?o:i,h=u?i:o;e=(h-p)/Math.max(1,n-s+2*c),l&&(e=Math.floor(e)),p+=(h-p-e*(n-s))*d,t=e*(1-s),l&&(p=Math.round(p),t=Math.round(t));var m=function(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(a);++r<a;)i[r]=e+r*n;return i}(n).map(function(t){return p+e*t});return a(u?m.reverse():m)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),u()):r()},n.range=function(e){return arguments.length?([i,o]=e,i=+i,o=+o,u()):[i,o]},n.rangeRound=function(e){return[i,o]=e,i=+i,o=+o,l=!0,u()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(l=!!e,u()):l},n.padding=function(e){return arguments.length?(s=Math.min(1,c=+e),u()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),u()):s},n.paddingOuter=function(e){return arguments.length?(c=+e,u()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),u()):d},n.copy=function(){return Wa(r(),[i,o]).round(l).paddingInner(s).paddingOuter(c).align(d)},qa.apply(u(),arguments)}function Va(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Va(t())},e}function Ha(){return Va(Wa.apply(null,arguments).paddingInner(1))}function Ka(e){return+e}var Ua=[0,1];function Ga(e){return e}function Xa(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function Ja(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=Xa(a,r),i=n(o,i)):(r=Xa(r,a),i=n(i,o)),function(e){return i(r(e))}}function Qa(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=Xa(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(t){var n=Ut(e,t,1,r)-1;return i[n](a[n](t))}}function Za(){var e,t,n,r,a,i,o=Ua,l=Ua,s=xa,c=Ga;function d(){var e=Math.min(o.length,l.length);return c!==Ga&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(o[0],o[e-1])),r=e>2?Qa:Ja,a=i=null,u}function u(t){return null==t||isNaN(t=+t)?n:(a||(a=r(o.map(e),l,s)))(e(c(t)))}return u.invert=function(n){return c(t((i||(i=r(l,o.map(e),ha)))(n)))},u.domain=function(e){return arguments.length?(o=Array.from(e,Ka),d()):o.slice()},u.range=function(e){return arguments.length?(l=Array.from(e),d()):l.slice()},u.rangeRound=function(e){return l=Array.from(e),s=va,d()},u.clamp=function(e){return arguments.length?(c=!!e||Ga,d()):c!==Ga},u.interpolate=function(e){return arguments.length?(s=e,d()):s},u.unknown=function(e){return arguments.length?(n=e,u):n},function(n,r){return e=n,t=r,d()}}function ei(e,t,n,r){var a,i=function(e,t,n){n=+n;const r=(t=+t)<(e=+e),a=r?nn(t,e,n):nn(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}(e,t,n);switch((r=Da(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(a=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ta(t)/3)))-Ta(Math.abs(e)))}(i,o))||(r.precision=a),Ia(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ta(t)-Ta(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=function(e){return Math.max(0,-Ta(Math.abs(e)))}(i))||(r.precision=a-2*("%"===r.type))}return $a(r)}function ti(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[a,i,o]=r?tn(t,e,n):tn(e,t,n);if(!(i>=a))return[];const l=i-a+1,s=new Array(l);if(r)if(o<0)for(let c=0;c<l;++c)s[c]=(i-c)/-o;else for(let c=0;c<l;++c)s[c]=(i-c)*o;else if(o<0)for(let c=0;c<l;++c)s[c]=(a+c)/-o;else for(let c=0;c<l;++c)s[c]=(a+c)*o;return s}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ei(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,a,i=t(),o=0,l=i.length-1,s=i[o],c=i[l],d=10;for(c<s&&(a=s,s=c,c=a,a=o,o=l,l=a);d-- >0;){if((a=nn(s,c,n))===r)return i[o]=s,i[l]=c,t(i);if(a>0)s=Math.floor(s/a)*a,c=Math.ceil(c/a)*a;else{if(!(a<0))break;s=Math.ceil(s*a)/a,c=Math.floor(c*a)/a}r=a}return e},e}function ni(){var e=Za()(Ga,Ga);return e.copy=function(){return t=e,ni().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());var t},qa.apply(e,arguments),ti(e)}function ri(e){return function(){return e}}const ai=Math.abs,ii=Math.atan2,oi=Math.cos,li=Math.max,si=Math.min,ci=Math.sin,di=Math.sqrt,ui=1e-12,pi=Math.PI,hi=pi/2,mi=2*pi;function fi(e){return e>=1?hi:e<=-1?-hi:Math.asin(e)}function gi(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Sa(t)}function yi(e){return e.innerRadius}function xi(e){return e.outerRadius}function vi(e){return e.startAngle}function bi(e){return e.endAngle}function wi(e){return e&&e.padAngle}function ji(e,t,n,r,a,i,o){var l=e-n,s=t-r,c=(o?i:-i)/di(l*l+s*s),d=c*s,u=-c*l,p=e+d,h=t+u,m=n+d,f=r+u,g=(p+m)/2,y=(h+f)/2,x=m-p,v=f-h,b=x*x+v*v,w=a-i,j=p*f-m*h,C=(v<0?-1:1)*di(li(0,w*w*b-j*j)),_=(j*v-x*C)/b,S=(-j*x-v*C)/b,k=(j*v+x*C)/b,T=(-j*x+v*C)/b,M=_-g,A=S-y,D=k-g,N=T-y;return M*M+A*A>D*D+N*N&&(_=k,S=T),{cx:_,cy:S,x01:-d,y01:-u,x11:_*(a/w-1),y11:S*(a/w-1)}}function Ci(){var e=yi,t=xi,n=ri(0),r=null,a=vi,i=bi,o=wi,l=null,s=gi(c);function c(){var c,d,u,p=+e.apply(this,arguments),h=+t.apply(this,arguments),m=a.apply(this,arguments)-hi,f=i.apply(this,arguments)-hi,g=ai(f-m),y=f>m;if(l||(l=c=s()),h<p&&(d=h,h=p,p=d),h>ui)if(g>mi-ui)l.moveTo(h*oi(m),h*ci(m)),l.arc(0,0,h,m,f,!y),p>ui&&(l.moveTo(p*oi(f),p*ci(f)),l.arc(0,0,p,f,m,y));else{var x,v,b=m,w=f,j=m,C=f,_=g,S=g,k=o.apply(this,arguments)/2,T=k>ui&&(r?+r.apply(this,arguments):di(p*p+h*h)),M=si(ai(h-p)/2,+n.apply(this,arguments)),A=M,D=M;if(T>ui){var N=fi(T/p*ci(k)),E=fi(T/h*ci(k));(_-=2*N)>ui?(j+=N*=y?1:-1,C-=N):(_=0,j=C=(m+f)/2),(S-=2*E)>ui?(b+=E*=y?1:-1,w-=E):(S=0,b=w=(m+f)/2)}var B=h*oi(b),R=h*ci(b),P=p*oi(C),$=p*ci(C);if(M>ui){var I,F=h*oi(w),O=h*ci(w),z=p*oi(j),q=p*ci(j);if(g<pi)if(I=function(e,t,n,r,a,i,o,l){var s=n-e,c=r-t,d=o-a,u=l-i,p=u*s-d*c;if(!(p*p<ui))return[e+(p=(d*(t-i)-u*(e-a))/p)*s,t+p*c]}(B,R,z,q,F,O,P,$)){var L=B-I[0],Y=R-I[1],W=F-I[0],V=O-I[1],H=1/ci(((u=(L*W+Y*V)/(di(L*L+Y*Y)*di(W*W+V*V)))>1?0:u<-1?pi:Math.acos(u))/2),K=di(I[0]*I[0]+I[1]*I[1]);A=si(M,(p-K)/(H-1)),D=si(M,(h-K)/(H+1))}else A=D=0}S>ui?D>ui?(x=ji(z,q,B,R,h,D,y),v=ji(F,O,P,$,h,D,y),l.moveTo(x.cx+x.x01,x.cy+x.y01),D<M?l.arc(x.cx,x.cy,D,ii(x.y01,x.x01),ii(v.y01,v.x01),!y):(l.arc(x.cx,x.cy,D,ii(x.y01,x.x01),ii(x.y11,x.x11),!y),l.arc(0,0,h,ii(x.cy+x.y11,x.cx+x.x11),ii(v.cy+v.y11,v.cx+v.x11),!y),l.arc(v.cx,v.cy,D,ii(v.y11,v.x11),ii(v.y01,v.x01),!y))):(l.moveTo(B,R),l.arc(0,0,h,b,w,!y)):l.moveTo(B,R),p>ui&&_>ui?A>ui?(x=ji(P,$,F,O,p,-A,y),v=ji(B,R,z,q,p,-A,y),l.lineTo(x.cx+x.x01,x.cy+x.y01),A<M?l.arc(x.cx,x.cy,A,ii(x.y01,x.x01),ii(v.y01,v.x01),!y):(l.arc(x.cx,x.cy,A,ii(x.y01,x.x01),ii(x.y11,x.x11),!y),l.arc(0,0,p,ii(x.cy+x.y11,x.cx+x.x11),ii(v.cy+v.y11,v.cx+v.x11),y),l.arc(v.cx,v.cy,A,ii(v.y11,v.x11),ii(v.y01,v.x01),!y))):l.arc(0,0,p,C,j,y):l.lineTo(P,$)}else l.moveTo(0,0);if(l.closePath(),c)return l=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-pi/2;return[oi(r)*n,ci(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:ri(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:ri(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:ri(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ri(+e),c):r},c.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:ri(+e),c):a},c.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:ri(+e),c):i},c.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:ri(+e),c):o},c.context=function(e){return arguments.length?(l=null==e?null:e,c):l},c}function _i(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Si(e){this._context=e}function ki(e){return new Si(e)}function Ti(e){return e[0]}function Mi(e){return e[1]}function Ai(e,t){var n=ri(!0),r=null,a=ki,i=null,o=gi(l);function l(l){var s,c,d,u=(l=_i(l)).length,p=!1;for(null==r&&(i=a(d=o())),s=0;s<=u;++s)!(s<u&&n(c=l[s],s,l))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+e(c,s,l),+t(c,s,l));if(d)return i=null,d+""||null}return e="function"==typeof e?e:void 0===e?Ti:ri(e),t="function"==typeof t?t:void 0===t?Mi:ri(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:ri(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:ri(+e),l):t},l.defined=function(e){return arguments.length?(n="function"==typeof e?e:ri(!!e),l):n},l.curve=function(e){return arguments.length?(a=e,null!=r&&(i=a(r)),l):a},l.context=function(e){return arguments.length?(null==e?r=i=null:i=a(r=e),l):r},l}function Di(e,t,n){var r=null,a=ri(!0),i=null,o=ki,l=null,s=gi(c);function c(c){var d,u,p,h,m,f=(c=_i(c)).length,g=!1,y=new Array(f),x=new Array(f);for(null==i&&(l=o(m=s())),d=0;d<=f;++d){if(!(d<f&&a(h=c[d],d,c))===g)if(g=!g)u=d,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),p=d-1;p>=u;--p)l.point(y[p],x[p]);l.lineEnd(),l.areaEnd()}g&&(y[d]=+e(h,d,c),x[d]=+t(h,d,c),l.point(r?+r(h,d,c):y[d],n?+n(h,d,c):x[d]))}if(m)return l=null,m+""||null}function d(){return Ai().defined(a).curve(o).context(i)}return e="function"==typeof e?e:void 0===e?Ti:ri(+e),t="function"==typeof t?t:ri(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Mi:ri(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:ri(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:ri(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ri(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:ri(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:ri(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:ri(+e),c):n},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(n)},c.lineX1=function(){return d().x(r).y(t)},c.defined=function(e){return arguments.length?(a="function"==typeof e?e:ri(!!e),c):a},c.curve=function(e){return arguments.length?(o=e,null!=i&&(l=o(i)),c):o},c.context=function(e){return arguments.length?(null==e?i=l=null:l=o(i=e),c):i},c}function Ni(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Ei(e){return e}function Bi(){var e=Ei,t=Ni,n=null,r=ri(0),a=ri(mi),i=ri(0);function o(o){var l,s,c,d,u,p=(o=_i(o)).length,h=0,m=new Array(p),f=new Array(p),g=+r.apply(this,arguments),y=Math.min(mi,Math.max(-mi,a.apply(this,arguments)-g)),x=Math.min(Math.abs(y)/p,i.apply(this,arguments)),v=x*(y<0?-1:1);for(l=0;l<p;++l)(u=f[m[l]=l]=+e(o[l],l,o))>0&&(h+=u);for(null!=t?m.sort(function(e,n){return t(f[e],f[n])}):null!=n&&m.sort(function(e,t){return n(o[e],o[t])}),l=0,c=h?(y-p*v)/h:0;l<p;++l,g=d)s=m[l],d=g+((u=f[s])>0?u*c:0)+v,f[s]={data:o[s],index:l,value:u,startAngle:g,endAngle:d,padAngle:x};return f}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:ri(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:ri(+e),o):r},o.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:ri(+e),o):a},o.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:ri(+e),o):i},o}function Ri(e){return e<0?-1:1}function Pi(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),l=(i*a+o*r)/(r+a);return(Ri(i)+Ri(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function $i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ii(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,a+l*t,i-l,o-l*n,i,o)}function Fi(e){this._context=e}function Oi(e){return new Fi(e)}Si.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},Fi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ii(this,this._t0,$i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(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;break;case 2:this._point=3,Ii(this,$i(this,n=Pi(this,e,t)),n);break;default:Ii(this,this._t0,n=Pi(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},Object.create(Fi.prototype).point=function(e,t){Fi.prototype.point.call(this,t,e)};function zi({chart:n,currency:r}){const a=t.useRef(null),i=t.useRef(null),o=t.useRef(null),l=t.useMemo(()=>(null==n?void 0:n.labels)?n.labels.map((e,t)=>{var r,a,i;return{name:e,value:(null==(i=null==(a=null==(r=n.datasets)?void 0:r[0])?void 0:a.values)?void 0:i[t])||0}}):[],[n]),s=r||(null==n?void 0:n.currency)||"AED",c=t.useMemo(()=>Math.max(...l.map(e=>Math.abs(e.value))),[l]),d=t.useMemo(()=>l.some(e=>e.value<0),[l]),u=d?100:90,p=Math.max(42*l.length+70,230),h={top:15,right:90,bottom:20,left:u};return t.useEffect(()=>{var e;if(!a.current||!l.length)return;const t=_r(a.current);t.selectAll("*").remove();const n=(null==(e=a.current.parentElement)?void 0:e.clientWidth)||300,r=Math.max(n-20,200)-h.left-h.right,i=p-h.top-h.bottom,u=1.15*c,m=ni().domain([d?-u:0,u]).range([0,r]),f=Wa().domain(l.map(e=>e.name)).range([0,i]).padding(.35),g=t.append("g").attr("transform",`translate(${h.left},${h.top})`);d&&g.append("line").attr("x1",m(0)).attr("x2",m(0)).attr("y1",0).attr("y2",i).attr("stroke","#9CA3AF").attr("stroke-width",1);const y=m.ticks(5).filter(e=>0!==e);g.selectAll(".grid-line").data(y).enter().append("line").attr("x1",e=>m(e)).attr("x2",e=>m(e)).attr("y1",0).attr("y2",i).attr("stroke","#E5E7EB").attr("stroke-dasharray","3,3"),g.selectAll(".x-tick").data(y).enter().append("text").attr("x",e=>m(e)).attr("y",i+16).attr("text-anchor","middle").attr("font-size","10px").attr("fill","#6B7280").text(e=>(e=>{const t=Math.abs(e);return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:String(t)})(e)),g.selectAll(".bar").data(l).enter().append("rect").attr("x",e=>e.value>=0?m(0):m(e.value)).attr("y",e=>f(e.name)||0).attr("width",e=>Math.abs(m(e.value)-m(0))).attr("height",f.bandwidth()).attr("fill",e=>e.value>=0?"#4AC08C":"#E85D3A").attr("rx",3).style("cursor","pointer").on("mouseenter",function(e,t){_r(this).attr("fill",e=>e.value>=0?"#3AA87A":"#D14529"),o.current&&(o.current.style.opacity="1",o.current.innerHTML=`<strong>${t.name}</strong><br/>${((e,t)=>{const n=Math.abs(e)>=1e6?"M":Math.abs(e)>=1e3?"K":"",r=Math.abs(e),a=r>=1e6?(r/1e6).toFixed(1):r>=1e3?(r/1e3).toFixed(1):String(r);return`${e<0?`-${a}${n}`:`${a}${n}`} ${t}`})(t.value,s)}`,o.current.style.left=`${e.offsetX+15}px`,o.current.style.top=e.offsetY-10+"px")}).on("mouseleave",function(e,t){_r(this).attr("fill",e=>e.value>=0?"#4AC08C":"#E85D3A"),o.current&&(o.current.style.opacity="0")}),g.selectAll(".value-label").data(l).enter().append("text").attr("x",e=>e.value>=0?m(e.value)+6:m(0)+6).attr("y",e=>(f(e.name)||0)+f.bandwidth()/2).attr("dy","0.35em").attr("text-anchor","start").attr("font-size","9px").attr("font-weight","600").attr("fill","#374151").text(e=>(e=>{const t=Math.abs(e)>=1e6?"M":Math.abs(e)>=1e3?"K":"",n=Math.abs(e),r=n>=1e6?(n/1e6).toFixed(1):n>=1e3?(n/1e3).toFixed(1):String(n);return e<0?`-${r}${t}`:`${r}${t}`})(e.value));const x=g.append("g").attr("transform","translate(0,0)").call(fn(f).tickSize(0).tickFormat(e=>{return t=String(e),n=15,t.length<=n?t:t.slice(0,n-2)+"…";var t,n}));x.selectAll("text").attr("font-size","10px").attr("fill","#6B7280"),x.selectAll(".domain").remove()},[l,s,c,d,90,u,p,h]),/* @__PURE__ */e.jsxs("div",{className:"ai-summary-panel__card",ref:i,children:[
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),t=require("react"),n=require("@mui/material"),r=require("@mui/lab/Timeline"),a=require("@mui/lab/TimelineItem"),i=require("@mui/lab/TimelineSeparator"),o=require("@mui/lab/TimelineConnector"),l=require("@mui/lab/TimelineContent"),s=require("@mui/lab/TimelineDot");;/* empty css */const c=require("./images-E5-7PC4V.js"),d=require("./Tooltip-BWIywPIG.js"),u=require("./android-12-switch-Cwoy0lqC.js"),p=require("./useAuth-CVokk6Ra.js"),h=require("./common-8gzbBoY1.js"),m=require("dayjs"),f=require("react-i18next"),g=require("lucide-react"),y=require("@mui/icons-material"),x=require("yup"),v=require("@hookform/resolvers/yup"),b=require("react-hook-form"),w=require("./form-builder-deconversion-Bt6_FHty.js"),j=require("./api-By0ZkuF-.js"),C=require("notistack"),_=require("./trash-iM5WzuPQ.js"),S=require("react-redux"),k=require("./apiHelper-DurABKEn.js"),T=require("@asseinfo/react-kanban"),M=require("./navigation-utils-IZ3aXrx9.js"),A=require("@fullcalendar/react"),D=require("@fullcalendar/daygrid"),N=require("@fullcalendar/list"),E=require("@fullcalendar/interaction"),B=require("@fullcalendar/timegrid"),R=require("@fullcalendar/resource-timegrid"),P=require("@fullcalendar/timeline"),$=require("@fullcalendar/resource-timeline"),I=require("@mui/system"),F=require("@mui/material/Box"),O=require("./tick-XKXM5oTD.js"),z=require("react-flags-select"),q=require("./useLangauge-ySJIB0GV.js"),L=require("@mui/icons-material/Close"),Y=require("react-router-dom"),W=require("./index-D6O6Gc88.js"),V=require("gantt-task-react"),H=require("@mui/material/styles/useTheme"),K=require("@mui/icons-material/KeyboardArrowDown"),U=require("react-date-range"),G=require("./action-bar-BmEN5Ob9.js"),X=require("@mui/material/Accordion"),J=require("@mui/material/Chip"),Q=require("@mui/material/AccordionSummary"),Z=require("@mui/material/AccordionDetails"),ee=require("@mui/material/Typography"),te=require("@mui/icons-material/ExpandMore"),ne=require("@mui/icons-material/RadioButtonChecked"),re=require("@glideapps/glide-data-grid"),ae=require("@glideapps/glide-data-grid-cells"),ie=require("react-dom"),oe=require("./index-cCmajWQ7.js"),le=require("@mui/icons-material/Add"),se=require("react-datepicker");;/* empty css */const ce=require("material-react-table"),de=require("@mui/icons-material/ChevronRight"),ue=require("@mui/icons-material/ChevronLeft"),pe=require("lodash"),he=require("./useAccountSetting-CNoWakIN.js"),me=require("./modules-Cu5Q6erF.js"),fe=require("./pathname.rental-hhA3jITb.js"),ge=require("./pathname.hrms-_XwfjMta.js"),ye=require("@mui/material/Menu"),xe=require("@mui/material/MenuItem"),ve=require("./hooks-BdfwliGF.js"),be=require("./store-PPyEzvyH.js"),we=require("@mui/material/IconButton"),je=require("@mui/material/Tab"),Ce=require("@mui/lab/TabContext"),_e=require("@mui/lab/TabList"),Se=require("@mui/lab/TabPanel"),ke=require("@mui/base"),Te=require("@mui/material/LinearProgress"),Me=require("react-dropzone"),Ae=require("@mui/icons-material/Remove"),De=require("./api-config-C9BF5LFu.js");;/* empty css */const Ne=require("@mui/material/List"),Ee=require("@mui/material/ListItem"),Be=require("@mui/material/ListItemText"),Re=require("@mui/material/styles"),Pe=require("@mui/material/Card"),$e=require("@mui/material/CardContent"),Ie=require("@mui/icons-material/ArrowDropDown"),Fe=require("@mui/icons-material/ArrowDropUp"),Oe=require("@mui/material/Checkbox"),ze=require("./typography-BzrMi9XI.js"),qe=require("./arrow-up-u2i6ArLB.js");function Le(e){return e&&e.__esModule?e.default:e}function Ye(e){if(e&&e.__esModule)return e;const t=/* @__PURE__ */Object.create(null);if(e)for(const n in e)t[n]=e[n];return t.default=e,t}const We=/* @__PURE__ */Le(t),Ve=/* @__PURE__ */Le(r),He=/* @__PURE__ */Le(a),Ke=/* @__PURE__ */Le(i),Ue=/* @__PURE__ */Le(o),Ge=/* @__PURE__ */Le(l),Xe=/* @__PURE__ */Le(s),Je=/* @__PURE__ */Le(m),Qe=/* @__PURE__ */Ye(x),Ze=/* @__PURE__ */Le(T),et=/* @__PURE__ */Le(A),tt=/* @__PURE__ */Le(D),nt=/* @__PURE__ */Le(N),rt=/* @__PURE__ */Le(E),at=/* @__PURE__ */Le(B),it=/* @__PURE__ */Le(R),ot=/* @__PURE__ */Le(P),lt=/* @__PURE__ */Le($),st=/* @__PURE__ */Le(F),ct=/* @__PURE__ */Le(z),dt=/* @__PURE__ */Le(L),ut=/* @__PURE__ */Le(H),pt=/* @__PURE__ */Le(K),ht=/* @__PURE__ */Le(X),mt=/* @__PURE__ */Le(J),ft=/* @__PURE__ */Le(Q),gt=/* @__PURE__ */Le(Z),yt=/* @__PURE__ */Le(ee),xt=/* @__PURE__ */Le(te),vt=/* @__PURE__ */Le(ne),bt=/* @__PURE__ */Le(re),wt=/* @__PURE__ */Le(le),jt=/* @__PURE__ */Le(se),Ct=/* @__PURE__ */Le(de),_t=/* @__PURE__ */Le(ue),St=/* @__PURE__ */Le(pe),kt=/* @__PURE__ */Le(ye),Tt=/* @__PURE__ */Le(xe),Mt=/* @__PURE__ */Le(we),At=/* @__PURE__ */Le(je),Dt=/* @__PURE__ */Le(Ce),Nt=/* @__PURE__ */Le(_e),Et=/* @__PURE__ */Le(Se),Bt=/* @__PURE__ */Le(Te),Rt=/* @__PURE__ */Le(Ae),Pt=/* @__PURE__ */Le(Ne),$t=/* @__PURE__ */Le(Ee),It=/* @__PURE__ */Le(Be),Ft=/* @__PURE__ */Le(Pe),Ot=/* @__PURE__ */Le($e),zt=/* @__PURE__ */Le(Ie),qt=/* @__PURE__ */Le(Fe),Lt=/* @__PURE__ */Le(Oe),Yt=n.styled(n.TextField)(({theme:{palette:e}})=>{var t,n,r,a;return{width:"100%","& .MuiOutlinedInput-root":{height:"2rem","& fieldset":{borderColor:null==(t=e.theme)?void 0:t.secondary[300],borderWidth:2},"&:hover fieldset":{borderColor:null==(n=e.theme)?void 0:n.secondary[300]},"&.Mui-focused fieldset":{borderColor:null==(r=e.theme)?void 0:r.primary[700]},"&.Mui-error fieldset":{borderColor:null==(a=e.theme)?void 0:a.error[600]}}}});function Wt(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Vt(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ht(e){let t,n,r;function a(e,r,a=0,i=e.length){if(a<i){if(0!==t(r,r))return i;do{const t=a+i>>>1;n(e[t],r)<0?a=t+1:i=t}while(a<i)}return a}return 2!==e.length?(t=Wt,n=(t,n)=>Wt(e(t),n),r=(t,n)=>e(t)-n):(t=e===Wt||e===Vt?e:Kt,n=e,r=e),{left:a,center:function(e,t,n=0,i=e.length){const o=a(e,t,n,i-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o},right:function(e,r,a=0,i=e.length){if(a<i){if(0!==t(r,r))return i;do{const t=a+i>>>1;n(e[t],r)<=0?a=t+1:i=t}while(a<i)}return a}}}function Kt(){return 0}const Ut=Ht(Wt).right;Ht(function(e){return null===e?NaN:+e}).center;class Gt extends Map{constructor(e,t=Jt){if(super(),Object.defineProperties(this,{_intern:{value:/* @__PURE__ */new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(Xt(this,e))}has(e){return super.has(Xt(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function Xt({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Jt(e){return null!==e&&"object"==typeof e?e.valueOf():e}const Qt=Math.sqrt(50),Zt=Math.sqrt(10),en=Math.sqrt(2);function tn(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=Qt?10:i>=Zt?5:i>=en?2:1;let l,s,c;return a<0?(c=Math.pow(10,-a)/o,l=Math.round(e*c),s=Math.round(t*c),l/c<e&&++l,s/c>t&&--s,c=-c):(c=Math.pow(10,a)*o,l=Math.round(e/c),s=Math.round(t/c),l*c<e&&++l,s*c>t&&--s),s<l&&.5<=n&&n<2?tn(e,t,2*n):[l,s,c]}function nn(e,t,n){return tn(e=+e,t=+t,n=+n)[2]}function rn(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(n<a||void 0===n&&a>=a)&&(n=a)}return n}function an(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(n>a||void 0===n&&a>=a)&&(n=a)}return n}function on(e){return e}var ln=1e-6;function sn(e){return"translate("+e+",0)"}function cn(e){return"translate(0,"+e+")"}function dn(e){return t=>+e(t)}function un(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function pn(){return!this.__axis}function hn(e,t){var n=[],r=null,a=null,i=6,o=6,l=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===e||4===e?-1:1,d=4===e||2===e?"x":"y",u=1===e||3===e?sn:cn;function p(p){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,m=null==a?t.tickFormat?t.tickFormat.apply(t,n):on:a,f=Math.max(i,0)+l,g=t.range(),y=+g[0]+s,x=+g[g.length-1]+s,v=(t.bandwidth?un:dn)(t.copy(),s),b=p.selection?p.selection():p,w=b.selectAll(".domain").data([null]),j=b.selectAll(".tick").data(h,t).order(),C=j.exit(),_=j.enter().append("g").attr("class","tick"),S=j.select("line"),k=j.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),j=j.merge(_),S=S.merge(_.append("line").attr("stroke","currentColor").attr(d+"2",c*i)),k=k.merge(_.append("text").attr("fill","currentColor").attr(d,c*f).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),p!==b&&(w=w.transition(p),j=j.transition(p),S=S.transition(p),k=k.transition(p),C=C.transition(p).attr("opacity",ln).attr("transform",function(e){return isFinite(e=v(e))?u(e+s):this.getAttribute("transform")}),_.attr("opacity",ln).attr("transform",function(e){var t=this.parentNode.__axis;return u((t&&isFinite(t=t(e))?t:v(e))+s)})),C.remove(),w.attr("d",4===e||2===e?o?"M"+c*o+","+y+"H"+s+"V"+x+"H"+c*o:"M"+s+","+y+"V"+x:o?"M"+y+","+c*o+"V"+s+"H"+x+"V"+c*o:"M"+y+","+s+"H"+x),j.attr("opacity",1).attr("transform",function(e){return u(v(e)+s)}),S.attr(d+"2",c*i),k.attr(d,c*f).text(m),b.filter(pn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),b.each(function(){this.__axis=v})}return p.scale=function(e){return arguments.length?(t=e,p):t},p.ticks=function(){return n=Array.from(arguments),p},p.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),p):n.slice()},p.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),p):r&&r.slice()},p.tickFormat=function(e){return arguments.length?(a=e,p):a},p.tickSize=function(e){return arguments.length?(i=o=+e,p):i},p.tickSizeInner=function(e){return arguments.length?(i=+e,p):i},p.tickSizeOuter=function(e){return arguments.length?(o=+e,p):o},p.tickPadding=function(e){return arguments.length?(l=+e,p):l},p.offset=function(e){return arguments.length?(s=+e,p):s},p}function mn(e){return hn(3,e)}function fn(e){return hn(4,e)}var gn="http://www.w3.org/1999/xhtml";const yn={svg:"http://www.w3.org/2000/svg",xhtml:gn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xn(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),yn.hasOwnProperty(t)?{space:yn[t],local:e}:e}function vn(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===gn&&t.documentElement.namespaceURI===gn?t.createElement(e):t.createElementNS(n,e)}}function bn(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function wn(e){var t=xn(e);return(t.local?bn:vn)(t)}function jn(){}function Cn(e){return null==e?jn:function(){return this.querySelector(e)}}function _n(){return[]}function Sn(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t);var t}}function kn(e){return function(t){return t.matches(e)}}var Tn=Array.prototype.find;function Mn(){return this.firstElementChild}var An=Array.prototype.filter;function Dn(){return Array.from(this.children)}function Nn(e){return new Array(e.length)}function En(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Bn(e,t,n,r,a,i){for(var o,l=0,s=t.length,c=i.length;l<c;++l)(o=t[l])?(o.__data__=i[l],r[l]=o):n[l]=new En(e,i[l]);for(;l<s;++l)(o=t[l])&&(a[l]=o)}function Rn(e,t,n,r,a,i,o){var l,s,c,d=/* @__PURE__ */new Map,u=t.length,p=i.length,h=new Array(u);for(l=0;l<u;++l)(s=t[l])&&(h[l]=c=o.call(s,s.__data__,l,t)+"",d.has(c)?a[l]=s:d.set(c,s));for(l=0;l<p;++l)c=o.call(e,i[l],l,i)+"",(s=d.get(c))?(r[l]=s,s.__data__=i[l],d.delete(c)):n[l]=new En(e,i[l]);for(l=0;l<u;++l)(s=t[l])&&d.get(h[l])===s&&(a[l]=s)}function Pn(e){return e.__data__}function $n(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function In(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Fn(e){return function(){this.removeAttribute(e)}}function On(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zn(e,t){return function(){this.setAttribute(e,t)}}function qn(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ln(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Yn(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Wn(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Vn(e){return function(){this.style.removeProperty(e)}}function Hn(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Kn(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Un(e){return function(){delete this[e]}}function Gn(e,t){return function(){this[e]=t}}function Xn(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Jn(e){return e.trim().split(/^|\s+/)}function Qn(e){return e.classList||new Zn(e)}function Zn(e){this._node=e,this._names=Jn(e.getAttribute("class")||"")}function er(e,t){for(var n=Qn(e),r=-1,a=t.length;++r<a;)n.add(t[r])}function tr(e,t){for(var n=Qn(e),r=-1,a=t.length;++r<a;)n.remove(t[r])}function nr(e){return function(){er(this,e)}}function rr(e){return function(){tr(this,e)}}function ar(e,t){return function(){(t.apply(this,arguments)?er:tr)(this,e)}}function ir(){this.textContent=""}function or(e){return function(){this.textContent=e}}function lr(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function sr(){this.innerHTML=""}function cr(e){return function(){this.innerHTML=e}}function dr(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function ur(){this.nextSibling&&this.parentNode.appendChild(this)}function pr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hr(){return null}function mr(){var e=this.parentNode;e&&e.removeChild(this)}function fr(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function gr(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function yr(e){return function(){var t=this.__on;if(t){for(var n,r=0,a=-1,i=t.length;r<i;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++a]=n:this.removeEventListener(n.type,n.listener,n.options);++a?t.length=a:delete this.__on}}}function xr(e,t,n){return function(){var r,a=this.__on,i=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(a)for(var o=0,l=a.length;o<l;++o)if((r=a[o]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),void(r.value=t);this.addEventListener(e.type,i,n),r={type:e.type,name:e.name,value:t,listener:i,options:n},a?a.push(r):this.__on=[r]}}function vr(e,t,n){var r=Wn(e),a=r.CustomEvent;"function"==typeof a?a=new a(t,n):(a=r.document.createEvent("Event"),n?(a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}function br(e,t){return function(){return vr(this,e,t)}}function wr(e,t){return function(){return vr(this,e,t.apply(this,arguments))}}En.prototype={constructor:En,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)}},Zn.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var jr=[null];function Cr(e,t){this._groups=e,this._parents=t}function _r(e){return"string"==typeof e?new Cr([[document.querySelector(e)]],[document.documentElement]):new Cr([[e]],jr)}function Sr(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(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())).x,r.y]}if(t.getBoundingClientRect){var a=t.getBoundingClientRect();return[e.clientX-a.left-t.clientLeft,e.clientY-a.top-t.clientTop]}}return[e.pageX,e.pageY]}function kr(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Tr(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mr(){}Cr.prototype={constructor:Cr,select:function(e){"function"!=typeof e&&(e=Cn(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i,o,l=t[a],s=l.length,c=r[a]=new Array(s),d=0;d<s;++d)(i=l[d])&&(o=e.call(i,i.__data__,d,l))&&("__data__"in i&&(o.__data__=i.__data__),c[d]=o);return new Cr(r,this._parents)},selectAll:function(e){var t;"function"==typeof e?e=Sn(e):e=null==(t=e)?_n:function(){return this.querySelectorAll(t)};for(var n=this._groups,r=n.length,a=[],i=[],o=0;o<r;++o)for(var l,s=n[o],c=s.length,d=0;d<c;++d)(l=s[d])&&(a.push(e.call(l,l.__data__,d,s)),i.push(l));return new Cr(a,i)},selectChild:function(e){return this.select(null==e?Mn:function(e){return function(){return Tn.call(this.children,e)}}("function"==typeof e?e:kn(e)))},selectChildren:function(e){return this.selectAll(null==e?Dn:function(e){return function(){return An.call(this.children,e)}}("function"==typeof e?e:kn(e)))},filter:function(e){var t;"function"!=typeof e&&(t=e,e=function(){return this.matches(t)});for(var n=this._groups,r=n.length,a=new Array(r),i=0;i<r;++i)for(var o,l=n[i],s=l.length,c=a[i]=[],d=0;d<s;++d)(o=l[d])&&e.call(o,o.__data__,d,l)&&c.push(o);return new Cr(a,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Pn);var n,r=t?Rn:Bn,a=this._parents,i=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var o=i.length,l=new Array(o),s=new Array(o),c=new Array(o),d=0;d<o;++d){var u=a[d],p=i[d],h=p.length,m=$n(e.call(u,u&&u.__data__,d,a)),f=m.length,g=s[d]=new Array(f),y=l[d]=new Array(f);r(u,p,g,y,c[d]=new Array(h),m,t);for(var x,v,b=0,w=0;b<f;++b)if(x=g[b]){for(b>=w&&(w=b+1);!(v=y[w])&&++w<f;);x._next=v||null}}return(l=new Cr(l,a))._enter=s,l._exit=c,l},enter:function(){return new Cr(this._enter||this._groups.map(Nn),this._parents)},exit:function(){return new Cr(this._exit||this._groups.map(Nn),this._parents)},join:function(e,t,n){var r=this.enter(),a=this,i=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(a=t(a))&&(a=a.selection()),null==n?i.remove():n(i),r&&a?r.merge(a).order():a},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,a=n.length,i=r.length,o=Math.min(a,i),l=new Array(a),s=0;s<o;++s)for(var c,d=n[s],u=r[s],p=d.length,h=l[s]=new Array(p),m=0;m<p;++m)(c=d[m]||u[m])&&(h[m]=c);for(;s<a;++s)l[s]=n[s];return new Cr(l,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,a=e[t],i=a.length-1,o=a[i];--i>=0;)(r=a[i])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=In);for(var n=this._groups,r=n.length,a=new Array(r),i=0;i<r;++i){for(var o,l=n[i],s=l.length,c=a[i]=new Array(s),d=0;d<s;++d)(o=l[d])&&(c[d]=o);c.sort(t)}return new Cr(a,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,i=r.length;a<i;++a){var o=r[a];if(o)return o}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var a,i=t[n],o=0,l=i.length;o<l;++o)(a=i[o])&&e.call(a,a.__data__,o,i);return this},attr:function(e,t){var n=xn(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?On:Fn:"function"==typeof t?n.local?Yn:Ln:n.local?qn:zn)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Vn:"function"==typeof t?Kn:Hn)(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||Wn(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Un:"function"==typeof t?Xn:Gn)(e,t)):this.node()[e]},classed:function(e,t){var n=Jn(e+"");if(arguments.length<2){for(var r=Qn(this.node()),a=-1,i=n.length;++a<i;)if(!r.contains(n[a]))return!1;return!0}return this.each(("function"==typeof t?ar:t?nr:rr)(n,t))},text:function(e){return arguments.length?this.each(null==e?ir:("function"==typeof e?lr:or)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?sr:("function"==typeof e?dr:cr)(e)):this.node().innerHTML},raise:function(){return this.each(ur)},lower:function(){return this.each(pr)},append:function(e){var t="function"==typeof e?e:wn(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:wn(e),r=null==t?hr:"function"==typeof t?t:Cn(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(mr)},clone:function(e){return this.select(e?gr:fr)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,a,i=function(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),o=i.length;if(!(arguments.length<2)){for(l=t?xr:yr,r=0;r<o;++r)this.each(l(i[r],t,n));return this}var l=this.node().__on;if(l)for(var s,c=0,d=l.length;c<d;++c)for(r=0,s=l[c];r<o;++r)if((a=i[r]).type===s.type&&a.name===s.name)return s.value},dispatch:function(e,t){return this.each(("function"==typeof t?wr:br)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,a=e[t],i=0,o=a.length;i<o;++i)(r=a[i])&&(yield r)}};var Ar=.7,Dr=1/Ar,Nr="\\s*([+-]?\\d+)\\s*",Er="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Br="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Rr=/^#([0-9a-f]{3,8})$/,Pr=new RegExp(`^rgb\\(${Nr},${Nr},${Nr}\\)$`),$r=new RegExp(`^rgb\\(${Br},${Br},${Br}\\)$`),Ir=new RegExp(`^rgba\\(${Nr},${Nr},${Nr},${Er}\\)$`),Fr=new RegExp(`^rgba\\(${Br},${Br},${Br},${Er}\\)$`),Or=new RegExp(`^hsl\\(${Er},${Br},${Br}\\)$`),zr=new RegExp(`^hsla\\(${Er},${Br},${Br},${Er}\\)$`),qr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Lr(){return this.rgb().formatHex()}function Yr(){return this.rgb().formatRgb()}function Wr(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Rr.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Vr(t):3===n?new Ur(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Hr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Hr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Pr.exec(e))?new Ur(t[1],t[2],t[3],1):(t=$r.exec(e))?new Ur(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ir.exec(e))?Hr(t[1],t[2],t[3],t[4]):(t=Fr.exec(e))?Hr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Or.exec(e))?ea(t[1],t[2]/100,t[3]/100,1):(t=zr.exec(e))?ea(t[1],t[2]/100,t[3]/100,t[4]):qr.hasOwnProperty(e)?Vr(qr[e]):"transparent"===e?new Ur(NaN,NaN,NaN,0):null}function Vr(e){return new Ur(e>>16&255,e>>8&255,255&e,1)}function Hr(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ur(e,t,n,r)}function Kr(e,t,n,r){return 1===arguments.length?((a=e)instanceof Mr||(a=Wr(a)),a?new Ur((a=a.rgb()).r,a.g,a.b,a.opacity):new Ur):new Ur(e,t,n,null==r?1:r);var a}function Ur(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Gr(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}`}function Xr(){const e=Jr(this.opacity);return`${1===e?"rgb(":"rgba("}${Qr(this.r)}, ${Qr(this.g)}, ${Qr(this.b)}${1===e?")":`, ${e})`}`}function Jr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zr(e){return((e=Qr(e))<16?"0":"")+e.toString(16)}function ea(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new na(e,t,n,r)}function ta(e){if(e instanceof na)return new na(e.h,e.s,e.l,e.opacity);if(e instanceof Mr||(e=Wr(e)),!e)return new na;if(e instanceof na)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,l=i-a,s=(i+a)/2;return l?(o=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+a:2-i-a,o*=60):l=s>0&&s<1?0:o,new na(o,l,s,e.opacity)}function na(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ra(e){return(e=(e||0)%360)<0?e+360:e}function aa(e){return Math.max(0,Math.min(1,e||0))}function ia(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}kr(Mr,Wr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Lr,formatHex:Lr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ta(this).formatHsl()},formatRgb:Yr,toString:Yr}),kr(Ur,Kr,Tr(Mr,{brighter(e){return e=null==e?Dr:Math.pow(Dr,e),new Ur(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ar:Math.pow(Ar,e),new Ur(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ur(Qr(this.r),Qr(this.g),Qr(this.b),Jr(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:Gr,formatHex:Gr,formatHex8:function(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}${Zr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Xr,toString:Xr})),kr(na,function(e,t,n,r){return 1===arguments.length?ta(e):new na(e,t,n,null==r?1:r)},Tr(Mr,{brighter(e){return e=null==e?Dr:Math.pow(Dr,e),new na(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ar:Math.pow(Ar,e),new na(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Ur(ia(e>=240?e-240:e+120,a,r),ia(e,a,r),ia(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new na(ra(this.h),aa(this.s),aa(this.l),Jr(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=Jr(this.opacity);return`${1===e?"hsl(":"hsla("}${ra(this.h)}, ${100*aa(this.s)}%, ${100*aa(this.l)}%${1===e?")":`, ${e})`}`}}));const oa=e=>()=>e;function la(e){return 1===(e=+e)?sa:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):oa(isNaN(t)?n:t)}}function sa(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):oa(isNaN(e)?t:e)}const ca=function e(t){var n=la(t);function r(e,t){var r=n((e=Kr(e)).r,(t=Kr(t)).r),a=n(e.g,t.g),i=n(e.b,t.b),o=sa(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=a(t),e.b=i(t),e.opacity=o(t),e+""}}return r.gamma=e,r}(1);function da(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,a=t.slice();return function(i){for(n=0;n<r;++n)a[n]=e[n]*(1-i)+t[n]*i;return a}}function ua(e,t){var n,r=t?t.length:0,a=e?Math.min(r,e.length):0,i=new Array(a),o=new Array(r);for(n=0;n<a;++n)i[n]=xa(e[n],t[n]);for(;n<r;++n)o[n]=t[n];return function(e){for(n=0;n<a;++n)o[n]=i[n](e);return o}}function pa(e,t){var n=/* @__PURE__ */new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ha(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function ma(e,t){var n,r={},a={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=xa(e[n],t[n]):a[n]=t[n];return function(e){for(n in r)a[n]=r[n](e);return a}}var fa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ga=new RegExp(fa.source,"g");function ya(e,t){var n,r,a,i=fa.lastIndex=ga.lastIndex=0,o=-1,l=[],s=[];for(e+="",t+="";(n=fa.exec(e))&&(r=ga.exec(t));)(a=r.index)>i&&(a=t.slice(i,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(r=r[0])?l[o]?l[o]+=r:l[++o]=r:(l[++o]=null,s.push({i:o,x:ha(n,r)})),i=ga.lastIndex;return i<t.length&&(a=t.slice(i),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}function xa(e,t){var n,r,a=typeof t;return null==t||"boolean"===a?oa(t):("number"===a?ha:"string"===a?(n=Wr(t))?(t=n,ca):ya:t instanceof Wr?ca:t instanceof Date?pa:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?ua:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?ma:ha:da))(e,t)}function va(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}const ba=Math.PI,wa=2*ba,ja=1e-6,Ca=wa-ja;function _a(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class Sa{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?_a:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return _a;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(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,a,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+a},${this._y1=+i}`}arcTo(e,t,n,r,a){if(e=+e,t=+t,n=+n,r=+r,(a=+a)<0)throw new Error(`negative radius: ${a}`);let i=this._x1,o=this._y1,l=n-e,s=r-t,c=i-e,d=o-t,u=c*c+d*d;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(u>ja)if(Math.abs(d*l-s*c)>ja&&a){let p=n-i,h=r-o,m=l*l+s*s,f=p*p+h*h,g=Math.sqrt(m),y=Math.sqrt(u),x=a*Math.tan((ba-Math.acos((m+u-f)/(2*g*y)))/2),v=x/y,b=x/g;Math.abs(v-1)>ja&&this._append`L${e+v*c},${t+v*d}`,this._append`A${a},${a},0,0,${+(d*p>c*h)},${this._x1=e+b*l},${this._y1=t+b*s}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,a,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(r),l=n*Math.sin(r),s=e+o,c=t+l,d=1^i,u=i?r-a:a-r;null===this._x1?this._append`M${s},${c}`:(Math.abs(this._x1-s)>ja||Math.abs(this._y1-c)>ja)&&this._append`L${s},${c}`,n&&(u<0&&(u=u%wa+wa),u>Ca?this._append`A${n},${n},0,1,${d},${e-o},${t-l}A${n},${n},0,1,${d},${this._x1=s},${this._y1=c}`:u>ja&&this._append`A${n},${n},0,${+(u>=ba)},${d},${this._x1=e+n*Math.cos(a)},${this._y1=t+n*Math.sin(a)}`)}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 ka(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ta(e){return(e=ka(Math.abs(e)))?e[1]:NaN}var Ma,Aa=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Da(e){if(!(t=Aa.exec(e)))throw new Error("invalid format: "+e);var t;return new Na({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Na(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Ea(e,t){var n=ka(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}Da.prototype=Na.prototype,Na.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Ba={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},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)=>Ea(100*e,t),r:Ea,s:function(e,t){var n=ka(e,t);if(!n)return Ma=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(Ma=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+ka(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ra(e){return e}var Pa,$a,Ia,Fa=Array.prototype.map,Oa=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function za(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Ra:(t=Fa.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var a=e.length,i=[],o=0,l=t[0],s=0;a>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),i.push(e.substring(a-=l,a+l)),!((s+=l+1)>r));)l=t[o=(o+1)%t.length];return i.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?Ra:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Fa.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function u(e,t){var n=(e=Da(e)).fill,u=e.align,p=e.sign,h=e.symbol,m=e.zero,f=e.width,g=e.comma,y=e.precision,x=e.trim,v=e.type;"n"===v?(g=!0,v="g"):Ba[v]||(void 0===y&&(y=12),x=!0,v="g"),(m||"0"===n&&"="===u)&&(m=!0,n="0",u="=");var b=(t&&void 0!==t.prefix?t.prefix:"")+("$"===h?a:"#"===h&&/[boxX]/.test(v)?"0"+v.toLowerCase():""),w=("$"===h?i:/[%p]/.test(v)?s:"")+(t&&void 0!==t.suffix?t.suffix:""),j=Ba[v],C=/[defgprs%]/.test(v);function _(e){var t,a,i,s=b,h=w;if("c"===v)h=j(e)+h,e="";else{var _=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:j(Math.abs(e),y),x&&(e=function(e){e:for(var t,n=e.length,r=1,a=-1;r<n;++r)switch(e[r]){case".":a=t=r;break;case"0":0===a&&(a=r),t=r;break;default:if(!+e[r])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),_&&0===+e&&"+"!==p&&(_=!1),s=(_?"("===p?p:c:"-"===p||"("===p?"":p)+s,h=("s"!==v||isNaN(e)||void 0===Ma?"":Oa[8+Ma/3])+h+(_&&"("===p?")":""),C)for(t=-1,a=e.length;++t<a;)if(48>(i=e.charCodeAt(t))||i>57){h=(46===i?o+e.slice(t+1):e.slice(t))+h,e=e.slice(0,t);break}}g&&!m&&(e=r(e,1/0));var S=s.length+e.length+h.length,k=S<f?new Array(f-S+1).join(n):"";switch(g&&m&&(e=r(k+e,k.length?f-h.length:1/0),k=""),u){case"<":e=s+e+h+k;break;case"=":e=s+k+e+h;break;case"^":e=k.slice(0,S=k.length>>1)+s+e+h+k.slice(S);break;default:e=k+s+e+h}return l(e)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),_.toString=function(){return e+""},_}return{format:u,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(Ta(t)/3))),r=Math.pow(10,-n),a=u(((e=Da(e)).type="f",e),{suffix:Oa[8+n/3]});return function(e){return a(r*e)}}}}function qa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}Pa=za({thousands:",",grouping:[3],currency:["$",""]}),$a=Pa.format,Ia=Pa.formatPrefix;const La=Symbol("implicit");function Ya(){var e=new Gt,t=[],n=[],r=La;function a(a){let i=e.get(a);if(void 0===i){if(r!==La)return r;e.set(a,i=t.push(a)-1)}return n[i%n.length]}return a.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Gt;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return a},a.range=function(e){return arguments.length?(n=Array.from(e),a):n.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.copy=function(){return Ya(t,n).unknown(r)},qa.apply(a,arguments),a}function Wa(){var e,t,n=Ya().unknown(void 0),r=n.domain,a=n.range,i=0,o=1,l=!1,s=0,c=0,d=.5;function u(){var n=r().length,u=o<i,p=u?o:i,h=u?i:o;e=(h-p)/Math.max(1,n-s+2*c),l&&(e=Math.floor(e)),p+=(h-p-e*(n-s))*d,t=e*(1-s),l&&(p=Math.round(p),t=Math.round(t));var m=function(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(a);++r<a;)i[r]=e+r*n;return i}(n).map(function(t){return p+e*t});return a(u?m.reverse():m)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),u()):r()},n.range=function(e){return arguments.length?([i,o]=e,i=+i,o=+o,u()):[i,o]},n.rangeRound=function(e){return[i,o]=e,i=+i,o=+o,l=!0,u()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(l=!!e,u()):l},n.padding=function(e){return arguments.length?(s=Math.min(1,c=+e),u()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),u()):s},n.paddingOuter=function(e){return arguments.length?(c=+e,u()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),u()):d},n.copy=function(){return Wa(r(),[i,o]).round(l).paddingInner(s).paddingOuter(c).align(d)},qa.apply(u(),arguments)}function Va(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Va(t())},e}function Ha(){return Va(Wa.apply(null,arguments).paddingInner(1))}function Ka(e){return+e}var Ua=[0,1];function Ga(e){return e}function Xa(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function Ja(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=Xa(a,r),i=n(o,i)):(r=Xa(r,a),i=n(i,o)),function(e){return i(r(e))}}function Qa(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=Xa(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(t){var n=Ut(e,t,1,r)-1;return i[n](a[n](t))}}function Za(){var e,t,n,r,a,i,o=Ua,l=Ua,s=xa,c=Ga;function d(){var e=Math.min(o.length,l.length);return c!==Ga&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(o[0],o[e-1])),r=e>2?Qa:Ja,a=i=null,u}function u(t){return null==t||isNaN(t=+t)?n:(a||(a=r(o.map(e),l,s)))(e(c(t)))}return u.invert=function(n){return c(t((i||(i=r(l,o.map(e),ha)))(n)))},u.domain=function(e){return arguments.length?(o=Array.from(e,Ka),d()):o.slice()},u.range=function(e){return arguments.length?(l=Array.from(e),d()):l.slice()},u.rangeRound=function(e){return l=Array.from(e),s=va,d()},u.clamp=function(e){return arguments.length?(c=!!e||Ga,d()):c!==Ga},u.interpolate=function(e){return arguments.length?(s=e,d()):s},u.unknown=function(e){return arguments.length?(n=e,u):n},function(n,r){return e=n,t=r,d()}}function ei(e,t,n,r){var a,i=function(e,t,n){n=+n;const r=(t=+t)<(e=+e),a=r?nn(t,e,n):nn(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}(e,t,n);switch((r=Da(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(a=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ta(t)/3)))-Ta(Math.abs(e)))}(i,o))||(r.precision=a),Ia(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ta(t)-Ta(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=function(e){return Math.max(0,-Ta(Math.abs(e)))}(i))||(r.precision=a-2*("%"===r.type))}return $a(r)}function ti(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[a,i,o]=r?tn(t,e,n):tn(e,t,n);if(!(i>=a))return[];const l=i-a+1,s=new Array(l);if(r)if(o<0)for(let c=0;c<l;++c)s[c]=(i-c)/-o;else for(let c=0;c<l;++c)s[c]=(i-c)*o;else if(o<0)for(let c=0;c<l;++c)s[c]=(a+c)/-o;else for(let c=0;c<l;++c)s[c]=(a+c)*o;return s}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ei(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,a,i=t(),o=0,l=i.length-1,s=i[o],c=i[l],d=10;for(c<s&&(a=s,s=c,c=a,a=o,o=l,l=a);d-- >0;){if((a=nn(s,c,n))===r)return i[o]=s,i[l]=c,t(i);if(a>0)s=Math.floor(s/a)*a,c=Math.ceil(c/a)*a;else{if(!(a<0))break;s=Math.ceil(s*a)/a,c=Math.floor(c*a)/a}r=a}return e},e}function ni(){var e=Za()(Ga,Ga);return e.copy=function(){return t=e,ni().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());var t},qa.apply(e,arguments),ti(e)}function ri(e){return function(){return e}}const ai=Math.abs,ii=Math.atan2,oi=Math.cos,li=Math.max,si=Math.min,ci=Math.sin,di=Math.sqrt,ui=1e-12,pi=Math.PI,hi=pi/2,mi=2*pi;function fi(e){return e>=1?hi:e<=-1?-hi:Math.asin(e)}function gi(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Sa(t)}function yi(e){return e.innerRadius}function xi(e){return e.outerRadius}function vi(e){return e.startAngle}function bi(e){return e.endAngle}function wi(e){return e&&e.padAngle}function ji(e,t,n,r,a,i,o){var l=e-n,s=t-r,c=(o?i:-i)/di(l*l+s*s),d=c*s,u=-c*l,p=e+d,h=t+u,m=n+d,f=r+u,g=(p+m)/2,y=(h+f)/2,x=m-p,v=f-h,b=x*x+v*v,w=a-i,j=p*f-m*h,C=(v<0?-1:1)*di(li(0,w*w*b-j*j)),_=(j*v-x*C)/b,S=(-j*x-v*C)/b,k=(j*v+x*C)/b,T=(-j*x+v*C)/b,M=_-g,A=S-y,D=k-g,N=T-y;return M*M+A*A>D*D+N*N&&(_=k,S=T),{cx:_,cy:S,x01:-d,y01:-u,x11:_*(a/w-1),y11:S*(a/w-1)}}function Ci(){var e=yi,t=xi,n=ri(0),r=null,a=vi,i=bi,o=wi,l=null,s=gi(c);function c(){var c,d,u,p=+e.apply(this,arguments),h=+t.apply(this,arguments),m=a.apply(this,arguments)-hi,f=i.apply(this,arguments)-hi,g=ai(f-m),y=f>m;if(l||(l=c=s()),h<p&&(d=h,h=p,p=d),h>ui)if(g>mi-ui)l.moveTo(h*oi(m),h*ci(m)),l.arc(0,0,h,m,f,!y),p>ui&&(l.moveTo(p*oi(f),p*ci(f)),l.arc(0,0,p,f,m,y));else{var x,v,b=m,w=f,j=m,C=f,_=g,S=g,k=o.apply(this,arguments)/2,T=k>ui&&(r?+r.apply(this,arguments):di(p*p+h*h)),M=si(ai(h-p)/2,+n.apply(this,arguments)),A=M,D=M;if(T>ui){var N=fi(T/p*ci(k)),E=fi(T/h*ci(k));(_-=2*N)>ui?(j+=N*=y?1:-1,C-=N):(_=0,j=C=(m+f)/2),(S-=2*E)>ui?(b+=E*=y?1:-1,w-=E):(S=0,b=w=(m+f)/2)}var B=h*oi(b),R=h*ci(b),P=p*oi(C),$=p*ci(C);if(M>ui){var I,F=h*oi(w),O=h*ci(w),z=p*oi(j),q=p*ci(j);if(g<pi)if(I=function(e,t,n,r,a,i,o,l){var s=n-e,c=r-t,d=o-a,u=l-i,p=u*s-d*c;if(!(p*p<ui))return[e+(p=(d*(t-i)-u*(e-a))/p)*s,t+p*c]}(B,R,z,q,F,O,P,$)){var L=B-I[0],Y=R-I[1],W=F-I[0],V=O-I[1],H=1/ci(((u=(L*W+Y*V)/(di(L*L+Y*Y)*di(W*W+V*V)))>1?0:u<-1?pi:Math.acos(u))/2),K=di(I[0]*I[0]+I[1]*I[1]);A=si(M,(p-K)/(H-1)),D=si(M,(h-K)/(H+1))}else A=D=0}S>ui?D>ui?(x=ji(z,q,B,R,h,D,y),v=ji(F,O,P,$,h,D,y),l.moveTo(x.cx+x.x01,x.cy+x.y01),D<M?l.arc(x.cx,x.cy,D,ii(x.y01,x.x01),ii(v.y01,v.x01),!y):(l.arc(x.cx,x.cy,D,ii(x.y01,x.x01),ii(x.y11,x.x11),!y),l.arc(0,0,h,ii(x.cy+x.y11,x.cx+x.x11),ii(v.cy+v.y11,v.cx+v.x11),!y),l.arc(v.cx,v.cy,D,ii(v.y11,v.x11),ii(v.y01,v.x01),!y))):(l.moveTo(B,R),l.arc(0,0,h,b,w,!y)):l.moveTo(B,R),p>ui&&_>ui?A>ui?(x=ji(P,$,F,O,p,-A,y),v=ji(B,R,z,q,p,-A,y),l.lineTo(x.cx+x.x01,x.cy+x.y01),A<M?l.arc(x.cx,x.cy,A,ii(x.y01,x.x01),ii(v.y01,v.x01),!y):(l.arc(x.cx,x.cy,A,ii(x.y01,x.x01),ii(x.y11,x.x11),!y),l.arc(0,0,p,ii(x.cy+x.y11,x.cx+x.x11),ii(v.cy+v.y11,v.cx+v.x11),y),l.arc(v.cx,v.cy,A,ii(v.y11,v.x11),ii(v.y01,v.x01),!y))):l.arc(0,0,p,C,j,y):l.lineTo(P,$)}else l.moveTo(0,0);if(l.closePath(),c)return l=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-pi/2;return[oi(r)*n,ci(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:ri(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:ri(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:ri(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ri(+e),c):r},c.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:ri(+e),c):a},c.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:ri(+e),c):i},c.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:ri(+e),c):o},c.context=function(e){return arguments.length?(l=null==e?null:e,c):l},c}function _i(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Si(e){this._context=e}function ki(e){return new Si(e)}function Ti(e){return e[0]}function Mi(e){return e[1]}function Ai(e,t){var n=ri(!0),r=null,a=ki,i=null,o=gi(l);function l(l){var s,c,d,u=(l=_i(l)).length,p=!1;for(null==r&&(i=a(d=o())),s=0;s<=u;++s)!(s<u&&n(c=l[s],s,l))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+e(c,s,l),+t(c,s,l));if(d)return i=null,d+""||null}return e="function"==typeof e?e:void 0===e?Ti:ri(e),t="function"==typeof t?t:void 0===t?Mi:ri(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:ri(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:ri(+e),l):t},l.defined=function(e){return arguments.length?(n="function"==typeof e?e:ri(!!e),l):n},l.curve=function(e){return arguments.length?(a=e,null!=r&&(i=a(r)),l):a},l.context=function(e){return arguments.length?(null==e?r=i=null:i=a(r=e),l):r},l}function Di(e,t,n){var r=null,a=ri(!0),i=null,o=ki,l=null,s=gi(c);function c(c){var d,u,p,h,m,f=(c=_i(c)).length,g=!1,y=new Array(f),x=new Array(f);for(null==i&&(l=o(m=s())),d=0;d<=f;++d){if(!(d<f&&a(h=c[d],d,c))===g)if(g=!g)u=d,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),p=d-1;p>=u;--p)l.point(y[p],x[p]);l.lineEnd(),l.areaEnd()}g&&(y[d]=+e(h,d,c),x[d]=+t(h,d,c),l.point(r?+r(h,d,c):y[d],n?+n(h,d,c):x[d]))}if(m)return l=null,m+""||null}function d(){return Ai().defined(a).curve(o).context(i)}return e="function"==typeof e?e:void 0===e?Ti:ri(+e),t="function"==typeof t?t:ri(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Mi:ri(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:ri(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:ri(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ri(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:ri(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:ri(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:ri(+e),c):n},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(n)},c.lineX1=function(){return d().x(r).y(t)},c.defined=function(e){return arguments.length?(a="function"==typeof e?e:ri(!!e),c):a},c.curve=function(e){return arguments.length?(o=e,null!=i&&(l=o(i)),c):o},c.context=function(e){return arguments.length?(null==e?i=l=null:l=o(i=e),c):i},c}function Ni(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Ei(e){return e}function Bi(){var e=Ei,t=Ni,n=null,r=ri(0),a=ri(mi),i=ri(0);function o(o){var l,s,c,d,u,p=(o=_i(o)).length,h=0,m=new Array(p),f=new Array(p),g=+r.apply(this,arguments),y=Math.min(mi,Math.max(-mi,a.apply(this,arguments)-g)),x=Math.min(Math.abs(y)/p,i.apply(this,arguments)),v=x*(y<0?-1:1);for(l=0;l<p;++l)(u=f[m[l]=l]=+e(o[l],l,o))>0&&(h+=u);for(null!=t?m.sort(function(e,n){return t(f[e],f[n])}):null!=n&&m.sort(function(e,t){return n(o[e],o[t])}),l=0,c=h?(y-p*v)/h:0;l<p;++l,g=d)s=m[l],d=g+((u=f[s])>0?u*c:0)+v,f[s]={data:o[s],index:l,value:u,startAngle:g,endAngle:d,padAngle:x};return f}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:ri(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:ri(+e),o):r},o.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:ri(+e),o):a},o.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:ri(+e),o):i},o}function Ri(e){return e<0?-1:1}function Pi(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),l=(i*a+o*r)/(r+a);return(Ri(i)+Ri(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function $i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ii(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,a+l*t,i-l,o-l*n,i,o)}function Fi(e){this._context=e}function Oi(e){return new Fi(e)}Si.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},Fi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ii(this,this._t0,$i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(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;break;case 2:this._point=3,Ii(this,$i(this,n=Pi(this,e,t)),n);break;default:Ii(this,this._t0,n=Pi(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},Object.create(Fi.prototype).point=function(e,t){Fi.prototype.point.call(this,t,e)};function zi({chart:n,currency:r}){const a=t.useRef(null),i=t.useRef(null),o=t.useRef(null),l=t.useMemo(()=>(null==n?void 0:n.labels)?n.labels.map((e,t)=>{var r,a,i;return{name:e,value:(null==(i=null==(a=null==(r=n.datasets)?void 0:r[0])?void 0:a.values)?void 0:i[t])||0}}):[],[n]),s=r||(null==n?void 0:n.currency)||"AED",c=t.useMemo(()=>Math.max(...l.map(e=>Math.abs(e.value))),[l]),d=t.useMemo(()=>l.some(e=>e.value<0),[l]),u=d?100:90,p=Math.max(42*l.length+70,230),h={top:15,right:90,bottom:20,left:u};return t.useEffect(()=>{var e;if(!a.current||!l.length)return;const t=_r(a.current);t.selectAll("*").remove();const n=(null==(e=a.current.parentElement)?void 0:e.clientWidth)||300,r=Math.max(n-20,200)-h.left-h.right,i=p-h.top-h.bottom,u=1.15*c,m=ni().domain([d?-u:0,u]).range([0,r]),f=Wa().domain(l.map(e=>e.name)).range([0,i]).padding(.35),g=t.append("g").attr("transform",`translate(${h.left},${h.top})`);d&&g.append("line").attr("x1",m(0)).attr("x2",m(0)).attr("y1",0).attr("y2",i).attr("stroke","#9CA3AF").attr("stroke-width",1);const y=m.ticks(5).filter(e=>0!==e);g.selectAll(".grid-line").data(y).enter().append("line").attr("x1",e=>m(e)).attr("x2",e=>m(e)).attr("y1",0).attr("y2",i).attr("stroke","#E5E7EB").attr("stroke-dasharray","3,3"),g.selectAll(".x-tick").data(y).enter().append("text").attr("x",e=>m(e)).attr("y",i+16).attr("text-anchor","middle").attr("font-size","10px").attr("fill","#6B7280").text(e=>(e=>{const t=Math.abs(e);return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:String(t)})(e)),g.selectAll(".bar").data(l).enter().append("rect").attr("x",e=>e.value>=0?m(0):m(e.value)).attr("y",e=>f(e.name)||0).attr("width",e=>Math.abs(m(e.value)-m(0))).attr("height",f.bandwidth()).attr("fill",e=>e.value>=0?"#4AC08C":"#E85D3A").attr("rx",3).style("cursor","pointer").on("mouseenter",function(e,t){_r(this).attr("fill",e=>e.value>=0?"#3AA87A":"#D14529"),o.current&&(o.current.style.opacity="1",o.current.innerHTML=`<strong>${t.name}</strong><br/>${((e,t)=>{const n=Math.abs(e)>=1e6?"M":Math.abs(e)>=1e3?"K":"",r=Math.abs(e),a=r>=1e6?(r/1e6).toFixed(1):r>=1e3?(r/1e3).toFixed(1):String(r);return`${e<0?`-${a}${n}`:`${a}${n}`} ${t}`})(t.value,s)}`,o.current.style.left=`${e.offsetX+15}px`,o.current.style.top=e.offsetY-10+"px")}).on("mouseleave",function(e,t){_r(this).attr("fill",e=>e.value>=0?"#4AC08C":"#E85D3A"),o.current&&(o.current.style.opacity="0")}),g.selectAll(".value-label").data(l).enter().append("text").attr("x",e=>e.value>=0?m(e.value)+6:m(0)+6).attr("y",e=>(f(e.name)||0)+f.bandwidth()/2).attr("dy","0.35em").attr("text-anchor","start").attr("font-size","9px").attr("font-weight","600").attr("fill","#374151").text(e=>(e=>{const t=Math.abs(e)>=1e6?"M":Math.abs(e)>=1e3?"K":"",n=Math.abs(e),r=n>=1e6?(n/1e6).toFixed(1):n>=1e3?(n/1e3).toFixed(1):String(n);return e<0?`-${r}${t}`:`${r}${t}`})(e.value));const x=g.append("g").attr("transform","translate(0,0)").call(fn(f).tickSize(0).tickFormat(e=>{return t=String(e),n=15,t.length<=n?t:t.slice(0,n-2)+"…";var t,n}));x.selectAll("text").attr("font-size","10px").attr("fill","#6B7280"),x.selectAll(".domain").remove()},[l,s,c,d,90,u,p,h]),/* @__PURE__ */e.jsxs("div",{className:"ai-summary-panel__card",ref:i,children:[
|
|
2
2
|
/* @__PURE__ */e.jsx("p",{className:"ai-summary-panel__card-title",children:(null==n?void 0:n.title)||""}),
|
|
3
3
|
/* @__PURE__ */e.jsxs("div",{style:{position:"relative",overflow:"visible",height:p,width:"100%"},children:[
|
|
4
4
|
/* @__PURE__ */e.jsx("svg",{ref:a,width:"100%",height:p,style:{display:"block"}}),
|
|
@@ -553,4 +553,4 @@ return e.jsxs("div",{className:"bottom-section",children:[
|
|
|
553
553
|
return e.jsxs($t,{sx:{cursor:"pointer"},onClick:f(t.id,t),children:[
|
|
554
554
|
/* @__PURE__ */e.jsx(It,{id:r,children:/* @__PURE__ */e.jsx(p.Typography,{dangerouslySetInnerHTML:{__html:`${l?null==t?void 0:t.name:`${null==t?void 0:t.first_name} ${null==t?void 0:t.last_name}`} <span>${l?t.count+" Users":null==(n=null==t?void 0:t.department)?void 0:n.name}</span>`}})}),
|
|
555
555
|
/* @__PURE__ */e.jsx("div",{className:"list-secondary-content",children:/* @__PURE__ */e.jsx(u.Checkbox,{edge:"end",checked:c.some(e=>e.id===t.id),inputProps:{"aria-labelledby":r}})})]},t.id)}))})})},exports.calculateOptimalSizes=(e,t=.75,n=4,r=2)=>{const a=Math.floor(e*t),i=e-a,o=Math.max(n,a),l=Math.max(r,Math.min(i,e-o));return{contentSize:Math.min(o,e-l),summarySize:l,totalUsed:o+l}},exports.createPermissionConfig={single:(e,t)=>({module:e,action:t}),multiModule:(e,t,n="OR")=>({multiModule:{modules:e,action:t,operator:n}}),complex:(e,t="AND")=>({complexPermissions:{permissions:e,operator:t}}),custom:e=>({customPermissionCheck:e})},exports.dynamicFields=Ul,exports.fields=Kl,exports.useDynamicLayout=(e=12,n=!0,r=3,a=0)=>{const[i,o]=t.useState(n),[l,s]=t.useState(n?r:a),[c,d]=t.useState(e-(n?r:a)),u=t.useCallback(()=>{const t=!i,n=t?r:a,l=e-n;o(t),s(n),d(l)},[i,r,a,e]),p=t.useCallback(t=>{const n=t?r:a,i=e-n;o(t),s(n),d(i)},[r,a,e]);return{isExpanded:i,summarySize:l,mainSize:c,toggleSummary:u,setSummaryState:p}},exports.validator=e=>!!e.value;
|
|
556
|
-
//# sourceMappingURL=uom-field-wrapper-
|
|
556
|
+
//# sourceMappingURL=uom-field-wrapper-D4vafbb3.js.map
|