@decocms/mesh 2.14.1 → 2.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CMyS46jH.js → AlertCircle-DlBo4Xw9.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Dsh9IWd-.js → ArrowLeft-CCqPW2JN.js} +1 -1
- package/dist/client/assets/{ArrowUp-CXsDJznS.js → ArrowUp-KvHCnFh3.js} +1 -1
- package/dist/client/assets/{Check-BEhtk6Py.js → Check-D4dBNJmC.js} +1 -1
- package/dist/client/assets/{ChevronDown-BRxtl0-A.js → ChevronDown-CJaS1NVA.js} +1 -1
- package/dist/client/assets/{Clock-BSrN61cb.js → Clock-ljBuaWDA.js} +1 -1
- package/dist/client/assets/{Code01-Bu5zpyWd.js → Code01-CMazpegY.js} +1 -1
- package/dist/client/assets/{Copy01-B7vmVdHF.js → Copy01-Rf_P7R5F.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-B0iNa4YA.js → DotsHorizontal-Nj82ZW12.js} +1 -1
- package/dist/client/assets/{DotsVertical-CdUtOOoG.js → DotsVertical-f9rnazjX.js} +1 -1
- package/dist/client/assets/{Download01-D1VGE3pA.js → Download01-Cnas0PSW.js} +1 -1
- package/dist/client/assets/{Edit01-CGqnOdlK.js → Edit01-MWKLkbpZ.js} +1 -1
- package/dist/client/assets/{File06-De52zO32.js → File06-Dir7h2_j.js} +1 -1
- package/dist/client/assets/{FilterLines-ClFUJXZP.js → FilterLines-BgxUhbig.js} +1 -1
- package/dist/client/assets/{FlipBackward-B4GimHkg.js → FlipBackward-B1KVh_65.js} +1 -1
- package/dist/client/assets/{GitBranch01-B40VcD0l.js → GitBranch01-CA4KhZZx.js} +1 -1
- package/dist/client/assets/{Grid01-CoHgfBeE.js → Grid01-BgBQwtBY.js} +1 -1
- package/dist/client/assets/{Home02-Dax6TXzJ.js → Home02-CR-W2ctm.js} +1 -1
- package/dist/client/assets/{Image01-D_Oad7Fi.js → Image01-B8cj-qoF.js} +1 -1
- package/dist/client/assets/{Inbox01-DU8gyK-F.js → Inbox01-Bh5pMKE1.js} +1 -1
- package/dist/client/assets/{InfoCircle-Na8jygcw.js → InfoCircle-CVdyaBb8.js} +1 -1
- package/dist/client/assets/{Key01-BbSMVBZS.js → Key01-BcxLAym0.js} +1 -1
- package/dist/client/assets/{LinkExternal01-5OOaoko1.js → LinkExternal01-D41WE0Cl.js} +1 -1
- package/dist/client/assets/{List-BXC8ldIg.js → List-hTdqyLGB.js} +1 -1
- package/dist/client/assets/{Loading01-DxDL3s7X.js → Loading01-Bq_7Os6T.js} +1 -1
- package/dist/client/assets/{Lock01-C1zaHQP8.js → Lock01-DOJDUqUZ.js} +1 -1
- package/dist/client/assets/{Play-ClPvjsPL.js → Play-CoxjBx7-.js} +1 -1
- package/dist/client/assets/{Plus-WrA7kzKa.js → Plus-C4F6mby2.js} +1 -1
- package/dist/client/assets/{SearchMd-JSFwoON0.js → SearchMd-B_A85eif.js} +1 -1
- package/dist/client/assets/{Terminal-BtV_FLPF.js → Terminal-BWurH474.js} +1 -1
- package/dist/client/assets/{Trash01-MX6mkM7g.js → Trash01-GrzirNvV.js} +1 -1
- package/dist/client/assets/{Upload01-BGvogcXt.js → Upload01-Ba_zCXbQ.js} +1 -1
- package/dist/client/assets/{X-q5bh176U.js → X-D09jV0HO.js} +1 -1
- package/dist/client/assets/{XClose-D_dGSZ7W.js → XClose-D9UXYoHK.js} +1 -1
- package/dist/client/assets/{alert-dialog-ocEz50Se.js → alert-dialog-Df8ZsItX.js} +2 -2
- package/dist/client/assets/{auth-catchall-BJS8UgWt.js → auth-catchall-Bu_AmzqF.js} +1 -1
- package/dist/client/assets/{avatar-Dtkx4Tl-.js → avatar-CrVRRbJ7.js} +1 -1
- package/dist/client/assets/{badge-BkSn2oaB.js → badge-BPKvq16e.js} +1 -1
- package/dist/client/assets/{binder-BVHRVoIY.js → binder-BtPpbY4I.js} +1 -1
- package/dist/client/assets/{button-CICpj3wE.js → button-Co_HOc3E.js} +1 -1
- package/dist/client/assets/{card-BMkFh6vi.js → card-Rz2C5-Lx.js} +1 -1
- package/dist/client/assets/{checkbox-DTTIHxXg.js → checkbox-DGIT6WZ3.js} +1 -1
- package/dist/client/assets/{collection-detail-CDCE926k.js → collection-detail-CIorpvYQ.js} +2 -2
- package/dist/client/assets/{collection-display-button-3hmFOeDC.js → collection-display-button-C_GfVLwh.js} +1 -1
- package/dist/client/assets/{collection-header-B6vJy14N.js → collection-header-Dl8Ii13M.js} +1 -1
- package/dist/client/assets/{collection-page-Dt6I6Mr4.js → collection-page-C75JriCh.js} +1 -1
- package/dist/client/assets/{collection-search-ClK_cOgs.js → collection-search-D67e9ppe.js} +1 -1
- package/dist/client/assets/{collection-tab-D8CKnWEB.js → collection-tab-DVmiR956.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CUsQQB3S.js → collection-table-wrapper-DDHrDWif.js} +1 -1
- package/dist/client/assets/{connection-Mp3hTHGP.js → connection-CmMMEDBY.js} +2 -2
- package/dist/client/assets/{connection-card-Cm6sQJt-.js → connection-card-BuCHeT4K.js} +1 -1
- package/dist/client/assets/connection-detail-BsC5t8hY.js +1 -0
- package/dist/client/assets/{connections-BXBUh1-5.js → connections-B3RW87mz.js} +1 -1
- package/dist/client/assets/constants-B5NZDm4s.js +1 -0
- package/dist/client/assets/create-organization-dialog-DQ5uy2r0.js +1 -0
- package/dist/client/assets/{dialog-CuzZhGeu.js → dialog-bW33A1d_.js} +1 -1
- package/dist/client/assets/{dropdown-menu-D1uHrxpy.js → dropdown-menu-dsr_wyw0.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BWtm_52W.js → dynamic-plugin-layout-IH0Gl52A.js} +1 -1
- package/dist/client/assets/{empty-state-B8LlErgw.js → empty-state-B1DU5702.js} +1 -1
- package/dist/client/assets/{empty-state-BhACvnGF.js → empty-state-By_kA__m.js} +1 -1
- package/dist/client/assets/env-vars-editor-BjH5KdVc.js +1 -0
- package/dist/client/assets/{error-boundary-u4ffWLYf.js → error-boundary-BOBkDZ1Y.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DSV8dsp9.js → extract-connection-data-CNcw3HV2.js} +1 -1
- package/dist/client/assets/{file-browser-CZ1PEthx.js → file-browser-BDyBPrc6.js} +2 -2
- package/dist/client/assets/{form-f0_t6ok_.js → form-ChO7tWCF.js} +1 -1
- package/dist/client/assets/{gateway-detail-D4FxMVxj.js → gateway-detail-CzuSbsFr.js} +1 -1
- package/dist/client/assets/{gateways-DjekxeB3.js → gateways-ckyn_Uas.js} +1 -1
- package/dist/client/assets/{grid-view-BYe4Rwz4.js → grid-view-CTAOtRDs.js} +1 -1
- package/dist/client/assets/{home-C6GUJREk.js → home-CpIhQ8D8.js} +1 -1
- package/dist/client/assets/{index-DB3GMPX_.js → index-BUdiVz6f.js} +1 -1
- package/dist/client/assets/index-Bc30BcYv.js +88 -0
- package/dist/client/assets/{index-BrOzWsZC.js → index-CH2G6_zW.js} +1 -1
- package/dist/client/assets/{index-CFMXrMRQ.js → index-ChF3uWl9.js} +1 -1
- package/dist/client/assets/index-JAPwCHXJ.css +1 -0
- package/dist/client/assets/{index-pvGhQBw9.js → index-ZiFjEqyT.js} +2 -2
- package/dist/client/assets/{infiniteQueryObserver-DjOTL7tS.js → infiniteQueryObserver-DEh2zauU.js} +1 -1
- package/dist/client/assets/{input-Chnnz9Uq.js → input-DEsmZ6es.js} +1 -1
- package/dist/client/assets/{layout-CE7L7dZF.js → layout-tF7tb_Qc.js} +1 -1
- package/dist/client/assets/{lazy-highlighter-HM0cmsZA.js → lazy-highlighter-B2TKQCpQ.js} +1 -1
- package/dist/client/assets/{localstorage-keys-CdhAbc7P.js → localstorage-keys-DhdYpXZj.js} +1 -1
- package/dist/client/assets/{login-D-qtMr1_.js → login-DtC787Hg.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Bkju1UsK.js → mcp-oauth-D8a9d38x.js} +1 -1
- package/dist/client/assets/{mcp-server-card-CsdbMsCj.js → mcp-server-card-DSQZ-b3I.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-BI6WT6NT.js → mcp-server-detail-rW4PqaOO.js} +1 -1
- package/dist/client/assets/members-C4HTAJHG.js +3 -0
- package/dist/client/assets/{monaco-editor--HoIUuQe.js → monaco-editor-BYgR7J38.js} +4 -4
- package/dist/client/assets/{monitoring-Gwgg901f.js → monitoring-BGY0w02b.js} +2 -2
- package/dist/client/assets/{oauth-callback-C8OVySGi.js → oauth-callback-BSZdPTYI.js} +1 -1
- package/dist/client/assets/page-DcQoSvJk.js +35 -0
- package/dist/client/assets/{page-rpmGCt1t.js → page-DxMYdFSw.js} +1 -1
- package/dist/client/assets/{pin-to-sidebar-button--fqmK37a.js → pin-to-sidebar-button-BahvsjHH.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BPlieumE.js → plugin-empty-state-CIiB0IAw.js} +1 -1
- package/dist/client/assets/{plugin-header-CcEHY2ra.js → plugin-header-CvDO4WmD.js} +1 -1
- package/dist/client/assets/{plugins-BR7M1iih.js → plugins-CyUBsABC.js} +1 -1
- package/dist/client/assets/{popover-Cq8T_QGa.js → popover-DW05feED.js} +1 -1
- package/dist/client/assets/{project-context-provider-CUiGxKJp.js → project-context-provider-BPo-49FO.js} +1 -1
- package/dist/client/assets/{registry-utils-h9Ud__h7.js → registry-utils-DzI73csj.js} +1 -1
- package/dist/client/assets/{resizable-S6LzYu6C.js → resizable-BAPLF4RD.js} +1 -1
- package/dist/client/assets/{resource-tabs-Blq_ajNW.js → resource-tabs-CC5dHHUl.js} +1 -1
- package/dist/client/assets/select-CVEPeRAQ.js +1 -0
- package/dist/client/assets/{settings-C0Cv06sV.js → settings-BfbdOKrl.js} +1 -1
- package/dist/client/assets/shell-layout-DJjajsTY.js +3 -0
- package/dist/client/assets/{spinner-BSgPnpsR.js → spinner-DqooIng7.js} +1 -1
- package/dist/client/assets/{standalone-Cva4pL7v.js → standalone-Cutp_BhH.js} +1 -1
- package/dist/client/assets/{switch-CkVmNhCD.js → switch-dZML6kqo.js} +1 -1
- package/dist/client/assets/{textarea-BgUJNVXI.js → textarea-DFRypKCQ.js} +1 -1
- package/dist/client/assets/{tool-set-selector-BVPKiJOI.js → tool-set-selector-DRx4AOzy.js} +1 -1
- package/dist/client/assets/{tools-list-DsOacuX3.js → tools-list-C8nSsOKD.js} +1 -1
- package/dist/client/assets/{tooltip-DySBr2SY.js → tooltip-BJO9sFhZ.js} +1 -1
- package/dist/client/assets/use-binding-C8KxuIY6.js +23 -0
- package/dist/client/assets/{use-collections-JQXbZBdV.js → use-collections-g067BPxP.js} +1 -1
- package/dist/client/assets/{use-connection-BF1UFzlw.js → use-connection-BskZam-G.js} +1 -1
- package/dist/client/assets/{use-connection-resources-D5d-M6jn.js → use-connection-resources-YXIBGXnm.js} +1 -1
- package/dist/client/assets/{use-create-gateway-DLr-GNpv.js → use-create-gateway-CCmt4GT8.js} +1 -1
- package/dist/client/assets/{use-gateway-system-prompt-K6FCpGjs.js → use-gateway-system-prompt-DoCpWoeh.js} +1 -1
- package/dist/client/assets/{use-gateway-B5GGqvj7.js → use-gateway-v7etejE8.js} +1 -1
- package/dist/client/assets/{use-list-state-BkPjBg3I.js → use-list-state-C5pgFF_z.js} +1 -1
- package/dist/client/assets/{use-mcp-C-3NLCFo.js → use-mcp-ZNQ-iMEF.js} +1 -1
- package/dist/client/assets/{use-members-B9HW4lZd.js → use-members-dVasH0ez.js} +1 -1
- package/dist/client/assets/{use-mobile-zhrv6Pzr.js → use-mobile-Co7MtEW-.js} +1 -1
- package/dist/client/assets/use-model-state-B8hL-q1r.js +20 -0
- package/dist/client/assets/{use-organization-settings-DTSCQFPr.js → use-organization-settings-K7SU43aD.js} +1 -1
- package/dist/client/assets/{use-tool-call-BMUEJvVc.js → use-tool-call-BbfSyOCz.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Dbq7IS1q.js +1 -0
- package/dist/client/assets/{useMutation-B64mCwly.js → useMutation-4fnzP4bc.js} +1 -1
- package/dist/client/assets/useQuery-Bn2Wcch_.js +1 -0
- package/dist/client/assets/{value-DvmerOpY.js → value-zEqR5KPg.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DXknlAX3.js → view-mode-toggle-tlrhMsiy.js} +1 -1
- package/dist/client/assets/{workflow-Bi0pfrEf.js → workflow-B8_jtBci.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +227 -220
- package/dist/server/migrate.js +160 -143
- package/dist/server/server.js +223 -216
- package/package.json +1 -1
- package/dist/client/assets/connection-detail-CS7YtOxG.js +0 -1
- package/dist/client/assets/constants-DsV2FGIq.js +0 -1
- package/dist/client/assets/create-organization-dialog-Kd2yuwpA.js +0 -1
- package/dist/client/assets/env-vars-editor-BSBPtnyc.js +0 -1
- package/dist/client/assets/index-BZk2eMPx.js +0 -88
- package/dist/client/assets/index-fFpUC2Bx.css +0 -1
- package/dist/client/assets/members-DIF2fQ00.js +0 -3
- package/dist/client/assets/page-BthOOB1S.js +0 -35
- package/dist/client/assets/select-BOEg6aAK.js +0 -1
- package/dist/client/assets/shell-layout-BRSb3To9.js +0 -3
- package/dist/client/assets/thread-history-popover-SCaQRi-L.js +0 -20
- package/dist/client/assets/use-binding-s4bqKdJA.js +0 -23
- package/dist/client/assets/useInfiniteQuery-qVzxuL4i.js +0 -1
- package/dist/client/assets/useQuery-Dr4r_H_i.js +0 -1
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/LICENSE +0 -47
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/README.md +0 -82
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.browser.d.ts +0 -11
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.browser.mjs +0 -43
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.cjs +0 -45
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.cloudflare.cjs +0 -46
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.cloudflare.d.ts +0 -11
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.d.ts +0 -11
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs +0 -46
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm +0 -0
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.d.mts +0 -83
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.d.ts +0 -83
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.js +0 -2
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.js.map +0 -1
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs +0 -2
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs.map +0 -1
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.d.mts +0 -20
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.d.ts +0 -20
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js +0 -2
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js.map +0 -1
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs +0 -2
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs.map +0 -1
- package/dist/server/node_modules/@jitl/quickjs-wasmfile-release-sync/package.json +0 -61
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{r as a,
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ce(Object(r),!0).forEach(function(n){Re(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Te(e,t){if(e==null)return{};var r,n,o=_e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _e(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ce(e,t){return Pe(e)||Se(e,t)||Ve(e,t)||xe()}function Ie(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Le(e){var t=Ie(e,"string");return typeof t=="symbol"?t:t+""}function Ve(e,t){if(e){if(typeof e=="string")return ue(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ue(e,t):void 0}}function Ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?le(Object(r),!0).forEach(function(n){Ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function K(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];return t.apply(r,[].concat(o,l))}}}function Q(e){return{}.toString.call(e).includes("Object")}function De(e){return!Object.keys(e).length}function W(e){return typeof e=="function"}function Ne(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ze(e,t){return Q(t)||T("changeType"),Object.keys(t).some(function(r){return!Ne(e,r)})&&T("changeField"),t}function Ke(e){W(e)||T("selectorType")}function qe(e){W(e)||Q(e)||T("handlerType"),Q(e)&&Object.values(e).some(function(t){return!W(t)})&&T("handlersType")}function We(e){e||T("initialIsRequired"),Q(e)||T("initialType"),De(e)&&T("initialContent")}function ke(e,t){throw new Error(e[t]||e.default)}var Fe={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},T=K(ke)(Fe),
|
|
1
|
+
import{r as a,H as D,j as _,c as Me,aT as te}from"./index-ZiFjEqyT.js";import{S as me}from"./spinner-DqooIng7.js";function ue(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Pe(e){if(Array.isArray(e))return e}function Re(e,t,r){return(t=Le(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Se(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,u,l=[],c=!0,g=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(O){g=!0,o=O}finally{try{if(!c&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(g)throw o}}return l}}function xe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ce(Object(r),!0).forEach(function(n){Re(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Te(e,t){if(e==null)return{};var r,n,o=_e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _e(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ce(e,t){return Pe(e)||Se(e,t)||Ve(e,t)||xe()}function Ie(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Le(e){var t=Ie(e,"string");return typeof t=="symbol"?t:t+""}function Ve(e,t){if(e){if(typeof e=="string")return ue(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ue(e,t):void 0}}function Ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?le(Object(r),!0).forEach(function(n){Ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function K(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];return t.apply(r,[].concat(o,l))}}}function Q(e){return{}.toString.call(e).includes("Object")}function De(e){return!Object.keys(e).length}function W(e){return typeof e=="function"}function Ne(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ze(e,t){return Q(t)||T("changeType"),Object.keys(t).some(function(r){return!Ne(e,r)})&&T("changeField"),t}function Ke(e){W(e)||T("selectorType")}function qe(e){W(e)||Q(e)||T("handlerType"),Q(e)&&Object.values(e).some(function(t){return!W(t)})&&T("handlersType")}function We(e){e||T("initialIsRequired"),Q(e)||T("initialType"),De(e)&&T("initialContent")}function ke(e,t){throw new Error(e[t]||e.default)}var Fe={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},T=K(ke)(Fe),H={changes:ze,selector:Ke,handler:qe,initial:We};function Ue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H.initial(e),H.handler(t);var r={current:e},n=K(Be)(r,t),o=K(Je)(r),i=K(H.changes)(e),u=K(He)(r);function l(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(O){return O};return H.selector(g),g(r.current)}function c(g){$e(n,o,i,u)(g)}return[l,c]}function He(e,t){return W(t)?t(e.current):t}function Je(e,t){return e.current=fe(fe({},e.current),t),t}function Be(e,t,r){return W(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var Qe={create:Ue},Ge={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function Ye(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];return t.apply(r,[].concat(o,l))}}}function Xe(e){return{}.toString.call(e).includes("Object")}function Ze(e){return e||de("configIsRequired"),Xe(e)||de("configType"),e.urls?(et(),{paths:{vs:e.urls.monacoBase}}):e}function et(){console.warn(he.deprecation)}function tt(e,t){throw new Error(e[t]||e.default)}var he={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
3
3
|
You are using deprecated way of configuration.
|
|
4
4
|
|
|
5
5
|
Instead of using
|
|
@@ -8,7 +8,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8
8
|
monaco.config({ paths: { vs: '...' } })
|
|
9
9
|
|
|
10
10
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
11
|
-
`},de=Ye(tt)(he),rt={config:Ze},nt=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,u){return u(i)},o)}};function ve(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],ve(e[r],t[r]))}),se(se({},e),t)}var it={type:"cancelation",msg:"operation is manually canceled"};function re(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(it):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var ot=["monaco"],at=Qe.create({config:Ge,isInitialized:!1,resolve:null,reject:null,monaco:null}),ye=Ce(at,2),k=ye[0],G=ye[1];function ut(e){var t=rt.config(e),r=t.monaco,n=Te(t,ot);G(function(o){return{config:ve(o.config,n),monaco:r}})}function ct(){var e=k(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(G({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),re(ne);if(window.monaco&&window.monaco.editor)return be(window.monaco),e.resolve(window.monaco),re(ne);nt(st,ft)(dt)}return re(ne)}function st(e){return document.body.appendChild(e)}function lt(e){var t=document.createElement("script");return e&&(t.src=e),t}function ft(e){var t=k(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=lt("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function dt(){var e=k(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var n=r.m||r;be(n),e.resolve(n)},function(r){e.reject(r)})}function be(e){k().monaco||G({monaco:e})}function pt(){return k(function(e){var t=e.monaco;return t})}var ne=new Promise(function(e,t){return G({resolve:e,reject:t})}),Y={config:ut,init:ct,__getMonacoInstance:pt},gt={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ie=gt,mt={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},ht=mt;function vt({children:e}){return D.createElement("div",{style:ht.container},e)}var yt=vt,bt=yt;function wt({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:u}){return D.createElement("section",{style:{...ie.wrapper,width:e,height:t},...u},!r&&D.createElement(bt,null,n),D.createElement("div",{ref:o,style:{...ie.fullWidth,...!r&&ie.hide},className:i}))}var Ot=wt,we=a.memo(Ot);function jt(e){a.useEffect(e,[])}var Oe=jt;function Et(e,t,r=!0){let n=a.useRef(!0);a.useEffect(n.current||!r?()=>{n.current=!1}:e,t)}var M=Et;function q(){}function A(e,t,r,n){return Mt(e,n)||Pt(e,t,r,n)}function Mt(e,t){return e.editor.getModel(je(e,t))}function Pt(e,t,r,n){return e.editor.createModel(t,r,n?je(e,n):void 0)}function je(e,t){return e.Uri.parse(t)}function Rt({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:c=!1,theme:g="light",loading:O="Loading...",options:j={},height:R="100%",width:S="100%",className:C,wrapperProps:L={},beforeMount:I=q,onMount:N=q}){let[y,b]=a.useState(!1),[h,d]=a.useState(!0),v=a.useRef(null),f=a.useRef(null),P=a.useRef(null),m=a.useRef(N),s=a.useRef(I),V=a.useRef(!1);Oe(()=>{let p=Y.init();return p.then(w=>(f.current=w)&&d(!1)).catch(w=>w?.type!=="cancelation"&&console.error("Monaco initialization: error:",w)),()=>v.current?z():p.cancel()}),M(()=>{if(v.current&&f.current){let p=v.current.getOriginalEditor(),w=A(f.current,e||"",n||r||"text",i||"");w!==p.getModel()&&p.setModel(w)}},[i],y),M(()=>{if(v.current&&f.current){let p=v.current.getModifiedEditor(),w=A(f.current,t||"",o||r||"text",u||"");w!==p.getModel()&&p.setModel(w)}},[u],y),M(()=>{let p=v.current.getModifiedEditor();p.getOption(f.current.editor.EditorOption.readOnly)?p.setValue(t||""):t!==p.getValue()&&(p.executeEdits("",[{range:p.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),p.pushUndoStop())},[t],y),M(()=>{v.current?.getModel()?.original.setValue(e||"")},[e],y),M(()=>{let{original:p,modified:w}=v.current.getModel();f.current.editor.setModelLanguage(p,n||r||"text"),f.current.editor.setModelLanguage(w,o||r||"text")},[r,n,o],y),M(()=>{f.current?.editor.setTheme(g)},[g],y),M(()=>{v.current?.updateOptions(j)},[j],y);let F=a.useCallback(()=>{if(!f.current)return;s.current(f.current);let p=A(f.current,e||"",n||r||"text",i||""),w=A(f.current,t||"",o||r||"text",u||"");v.current?.setModel({original:p,modified:w})},[r,t,o,e,n,i,u]),U=a.useCallback(()=>{!V.current&&P.current&&(v.current=f.current.editor.createDiffEditor(P.current,{automaticLayout:!0,...j}),F(),f.current?.editor.setTheme(g),b(!0),V.current=!0)},[j,g,F]);a.useEffect(()=>{y&&m.current(v.current,f.current)},[y]),a.useEffect(()=>{!h&&!y&&U()},[h,y,U]);function z(){let p=v.current?.getModel();l||p?.original?.dispose(),c||p?.modified?.dispose(),v.current?.dispose()}return D.createElement(we,{width:S,height:R,isEditorReady:y,loading:O,_ref:P,className:C,wrapperProps:L})}var St=Rt;a.memo(St);function xt(e){let t=a.useRef();return a.useEffect(()=>{t.current=e},[e]),t.current}var Tt=xt,
|
|
11
|
+
`},de=Ye(tt)(he),rt={config:Ze},nt=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,u){return u(i)},o)}};function ve(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],ve(e[r],t[r]))}),se(se({},e),t)}var it={type:"cancelation",msg:"operation is manually canceled"};function re(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(it):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var ot=["monaco"],at=Qe.create({config:Ge,isInitialized:!1,resolve:null,reject:null,monaco:null}),ye=Ce(at,2),k=ye[0],G=ye[1];function ut(e){var t=rt.config(e),r=t.monaco,n=Te(t,ot);G(function(o){return{config:ve(o.config,n),monaco:r}})}function ct(){var e=k(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(G({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),re(ne);if(window.monaco&&window.monaco.editor)return be(window.monaco),e.resolve(window.monaco),re(ne);nt(st,ft)(dt)}return re(ne)}function st(e){return document.body.appendChild(e)}function lt(e){var t=document.createElement("script");return e&&(t.src=e),t}function ft(e){var t=k(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=lt("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function dt(){var e=k(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var n=r.m||r;be(n),e.resolve(n)},function(r){e.reject(r)})}function be(e){k().monaco||G({monaco:e})}function pt(){return k(function(e){var t=e.monaco;return t})}var ne=new Promise(function(e,t){return G({resolve:e,reject:t})}),Y={config:ut,init:ct,__getMonacoInstance:pt},gt={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ie=gt,mt={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},ht=mt;function vt({children:e}){return D.createElement("div",{style:ht.container},e)}var yt=vt,bt=yt;function wt({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:u}){return D.createElement("section",{style:{...ie.wrapper,width:e,height:t},...u},!r&&D.createElement(bt,null,n),D.createElement("div",{ref:o,style:{...ie.fullWidth,...!r&&ie.hide},className:i}))}var Ot=wt,we=a.memo(Ot);function jt(e){a.useEffect(e,[])}var Oe=jt;function Et(e,t,r=!0){let n=a.useRef(!0);a.useEffect(n.current||!r?()=>{n.current=!1}:e,t)}var M=Et;function q(){}function A(e,t,r,n){return Mt(e,n)||Pt(e,t,r,n)}function Mt(e,t){return e.editor.getModel(je(e,t))}function Pt(e,t,r,n){return e.editor.createModel(t,r,n?je(e,n):void 0)}function je(e,t){return e.Uri.parse(t)}function Rt({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:u,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:c=!1,theme:g="light",loading:O="Loading...",options:j={},height:R="100%",width:S="100%",className:C,wrapperProps:L={},beforeMount:I=q,onMount:N=q}){let[y,b]=a.useState(!1),[h,d]=a.useState(!0),v=a.useRef(null),f=a.useRef(null),P=a.useRef(null),m=a.useRef(N),s=a.useRef(I),V=a.useRef(!1);Oe(()=>{let p=Y.init();return p.then(w=>(f.current=w)&&d(!1)).catch(w=>w?.type!=="cancelation"&&console.error("Monaco initialization: error:",w)),()=>v.current?z():p.cancel()}),M(()=>{if(v.current&&f.current){let p=v.current.getOriginalEditor(),w=A(f.current,e||"",n||r||"text",i||"");w!==p.getModel()&&p.setModel(w)}},[i],y),M(()=>{if(v.current&&f.current){let p=v.current.getModifiedEditor(),w=A(f.current,t||"",o||r||"text",u||"");w!==p.getModel()&&p.setModel(w)}},[u],y),M(()=>{let p=v.current.getModifiedEditor();p.getOption(f.current.editor.EditorOption.readOnly)?p.setValue(t||""):t!==p.getValue()&&(p.executeEdits("",[{range:p.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),p.pushUndoStop())},[t],y),M(()=>{v.current?.getModel()?.original.setValue(e||"")},[e],y),M(()=>{let{original:p,modified:w}=v.current.getModel();f.current.editor.setModelLanguage(p,n||r||"text"),f.current.editor.setModelLanguage(w,o||r||"text")},[r,n,o],y),M(()=>{f.current?.editor.setTheme(g)},[g],y),M(()=>{v.current?.updateOptions(j)},[j],y);let F=a.useCallback(()=>{if(!f.current)return;s.current(f.current);let p=A(f.current,e||"",n||r||"text",i||""),w=A(f.current,t||"",o||r||"text",u||"");v.current?.setModel({original:p,modified:w})},[r,t,o,e,n,i,u]),U=a.useCallback(()=>{!V.current&&P.current&&(v.current=f.current.editor.createDiffEditor(P.current,{automaticLayout:!0,...j}),F(),f.current?.editor.setTheme(g),b(!0),V.current=!0)},[j,g,F]);a.useEffect(()=>{y&&m.current(v.current,f.current)},[y]),a.useEffect(()=>{!h&&!y&&U()},[h,y,U]);function z(){let p=v.current?.getModel();l||p?.original?.dispose(),c||p?.modified?.dispose(),v.current?.dispose()}return D.createElement(we,{width:S,height:R,isEditorReady:y,loading:O,_ref:P,className:C,wrapperProps:L})}var St=Rt;a.memo(St);function xt(e){let t=a.useRef();return a.useEffect(()=>{t.current=e},[e]),t.current}var Tt=xt,J=new Map;function _t({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:u="light",line:l,loading:c="Loading...",options:g={},overrideServices:O={},saveViewState:j=!0,keepCurrentModel:R=!1,width:S="100%",height:C="100%",className:L,wrapperProps:I={},beforeMount:N=q,onMount:y=q,onChange:b,onValidate:h=q}){let[d,v]=a.useState(!1),[f,P]=a.useState(!0),m=a.useRef(null),s=a.useRef(null),V=a.useRef(null),F=a.useRef(y),U=a.useRef(N),z=a.useRef(),p=a.useRef(n),w=Tt(i),oe=a.useRef(!1),X=a.useRef(!1);Oe(()=>{let E=Y.init();return E.then(x=>(m.current=x)&&P(!1)).catch(x=>x?.type!=="cancelation"&&console.error("Monaco initialization: error:",x)),()=>s.current?Ee():E.cancel()}),M(()=>{let E=A(m.current,e||n||"",t||o||"",i||r||"");E!==s.current?.getModel()&&(j&&J.set(w,s.current?.saveViewState()),s.current?.setModel(E),j&&s.current?.restoreViewState(J.get(i)))},[i],d),M(()=>{s.current?.updateOptions(g)},[g],d),M(()=>{!s.current||n===void 0||(s.current.getOption(m.current.editor.EditorOption.readOnly)?s.current.setValue(n):n!==s.current.getValue()&&(X.current=!0,s.current.executeEdits("",[{range:s.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),s.current.pushUndoStop(),X.current=!1))},[n],d),M(()=>{let E=s.current?.getModel();E&&o&&m.current?.editor.setModelLanguage(E,o)},[o],d),M(()=>{l!==void 0&&s.current?.revealLine(l)},[l],d),M(()=>{m.current?.editor.setTheme(u)},[u],d);let ae=a.useCallback(()=>{if(!(!V.current||!m.current)&&!oe.current){U.current(m.current);let E=i||r,x=A(m.current,n||e||"",t||o||"",E||"");s.current=m.current?.editor.create(V.current,{model:x,automaticLayout:!0,...g},O),j&&s.current.restoreViewState(J.get(E)),m.current.editor.setTheme(u),l!==void 0&&s.current.revealLine(l),v(!0),oe.current=!0}},[e,t,r,n,o,i,g,O,j,u,l]);a.useEffect(()=>{d&&F.current(s.current,m.current)},[d]),a.useEffect(()=>{!f&&!d&&ae()},[f,d,ae]),p.current=n,a.useEffect(()=>{d&&b&&(z.current?.dispose(),z.current=s.current?.onDidChangeModelContent(E=>{X.current||b(s.current.getValue(),E)}))},[d,b]),a.useEffect(()=>{if(d){let E=m.current.editor.onDidChangeMarkers(x=>{let Z=s.current.getModel()?.uri;if(Z&&x.find(ee=>ee.path===Z.path)){let ee=m.current.editor.getModelMarkers({resource:Z});h?.(ee)}});return()=>{E?.dispose()}}return()=>{}},[d,h]);function Ee(){z.current?.dispose(),R?j&&J.set(i,s.current.saveViewState()):s.current.getModel()?.dispose(),s.current.dispose()}return D.createElement(we,{width:S,height:C,isEditorReady:d,loading:c,_ref:V,className:L,wrapperProps:I})}var Ct=_t,It=a.memo(Ct),Lt=It;async function Vt(e){const t=e.getModel();if(!t)throw new Error("[Monaco] No model found in editor");const r=t.getValue(),o=r.replace(/export default (async )?function/,"export default $1function __default")+`
|
|
12
12
|
type __ExpandRecursively<T> = T extends (...args: infer A) => infer R
|
|
13
13
|
? (...args: __ExpandRecursively<A>) => __ExpandRecursively<R>
|
|
14
14
|
: T extends object
|
|
@@ -16,4 +16,4 @@ type __ExpandRecursively<T> = T extends (...args: infer A) => infer R
|
|
|
16
16
|
: T;
|
|
17
17
|
type __InferredOutput = __ExpandRecursively<Awaited<ReturnType<typeof __default>>>;
|
|
18
18
|
declare const __outputValue: __InferredOutput;
|
|
19
|
-
`;t.setValue(o);const i=t.findMatches("__outputValue",!1,!1,!1,null,!1);if(!i||i.length===0)return t.setValue(r),null;const u=i[0];if(!u)return t.setValue(r),null;const l={lineNumber:u.range.startLineNumber,column:u.range.startColumn+1};try{const g=await(await Y.init()).languages.typescript.getTypeScriptWorker();if(!g)return t.setValue(r),null;const O=await g(t.uri);await new Promise(S=>setTimeout(S,100));const j=t.getOffsetAt(l),R=await O.getQuickInfoAtPosition(t.uri.toString(),j);if(t.setValue(r),R){const C=R.displayParts.map(I=>I.text).join("").replace(/^const __outputValue:\s*/,"");return $(C)}else return null}catch(c){return t.setValue(r),console.error("Error getting return type:",c),null}}function $(e){if(e=e.trim(),e==="string")return{type:"string"};if(e==="number")return{type:"number"};if(e==="boolean")return{type:"boolean"};if(e==="null")return{type:"null"};if(e==="undefined")return{type:"null"};if(e==="unknown"||e==="any")return{};if(e==="never")return{not:{}};if(e.endsWith("[]")){const n=e.slice(0,-2);return{type:"array",items:$(n)}}const t=e.match(/^Array<(.+)>$/);if(t&&t[1])return{type:"array",items:$(t[1])};const r=e.match(/^Record<(.+),\s*(.+)>$/);if(r&&r[2])return{type:"object",additionalProperties:$(r[2].trim())};if(e.includes("|")){const n=At(e);if(n.length>1)return n.every(i=>/^["']/.test(i.trim()))?{type:"string",enum:n.map(i=>i.trim().replace(/^["']|["']$/g,""))}:{anyOf:n.map(i=>$(i.trim()))}}return/^["'].*["']$/.test(e)?{type:"string",const:e.slice(1,-1)}:/^-?\d+(\.\d+)?$/.test(e)?{type:"number",const:parseFloat(e)}:e.startsWith("{")&&e.endsWith("}")?$t(e):{description:`TypeScript type: ${e}`}}function At(e){const t=[];let r=0,n="";for(let o=0;o<e.length;o++){const i=e[o];if(i==="{"||i==="<"||i==="("||i==="[")r++;else if(i==="}"||i===">"||i===")"||i==="]")r--;else if(i==="|"&&r===0){t.push(n.trim()),n="";continue}n+=i}return n.trim()&&t.push(n.trim()),t}function $t(e){const t=e.slice(1,-1).trim();if(!t)return{type:"object",properties:{}};const r={},n=[];let o=0,i="";for(let l=0;l<t.length;l++){const c=t[l];if(c==="{"||c==="<"||c==="("||c==="[")o++;else if(c==="}"||c===">"||c===")"||c==="]")o--;else if(c===";"&&o===0){i.trim()&&pe(i.trim(),r,n),i="";continue}i+=c}i.trim()&&pe(i.trim(),r,n);const u={type:"object",properties:r};return n.length>0&&(u.required=n),u}function pe(e,t,r){const n=e.match(/^(\w+)(\?)?:\s*(.+)$/s);if(n){const o=n[1],i=n[2],u=n[3];o&&u&&(t[o]=$(u.trim()),i||r.push(o))}}class Dt extends a.Component{constructor(t){super(t),this.state={hasError:!1,mountKey:0}}static getDerivedStateFromError(t){if(t.message?.includes("InstantiationService has been disposed"))return{hasError:!0};throw t}componentDidCatch(t){t.message?.includes("InstantiationService has been disposed")&&this.setState(r=>({hasError:!1,mountKey:r.mountKey+1}))}render(){return this.state.hasError?_.jsx("div",{className:"flex items-center justify-center h-full w-full bg-[#1e1e1e] text-gray-400",children:_.jsx(me,{size:"sm"})}):a.cloneElement(this.props.children,{mountKey:this.state.mountKey})}}let
|
|
19
|
+
`;t.setValue(o);const i=t.findMatches("__outputValue",!1,!1,!1,null,!1);if(!i||i.length===0)return t.setValue(r),null;const u=i[0];if(!u)return t.setValue(r),null;const l={lineNumber:u.range.startLineNumber,column:u.range.startColumn+1};try{const g=await(await Y.init()).languages.typescript.getTypeScriptWorker();if(!g)return t.setValue(r),null;const O=await g(t.uri);await new Promise(S=>setTimeout(S,100));const j=t.getOffsetAt(l),R=await O.getQuickInfoAtPosition(t.uri.toString(),j);if(t.setValue(r),R){const C=R.displayParts.map(I=>I.text).join("").replace(/^const __outputValue:\s*/,"");return $(C)}else return null}catch(c){return t.setValue(r),console.error("Error getting return type:",c),null}}function $(e){if(e=e.trim(),e==="string")return{type:"string"};if(e==="number")return{type:"number"};if(e==="boolean")return{type:"boolean"};if(e==="null")return{type:"null"};if(e==="undefined")return{type:"null"};if(e==="unknown"||e==="any")return{};if(e==="never")return{not:{}};if(e.endsWith("[]")){const n=e.slice(0,-2);return{type:"array",items:$(n)}}const t=e.match(/^Array<(.+)>$/);if(t&&t[1])return{type:"array",items:$(t[1])};const r=e.match(/^Record<(.+),\s*(.+)>$/);if(r&&r[2])return{type:"object",additionalProperties:$(r[2].trim())};if(e.includes("|")){const n=At(e);if(n.length>1)return n.every(i=>/^["']/.test(i.trim()))?{type:"string",enum:n.map(i=>i.trim().replace(/^["']|["']$/g,""))}:{anyOf:n.map(i=>$(i.trim()))}}return/^["'].*["']$/.test(e)?{type:"string",const:e.slice(1,-1)}:/^-?\d+(\.\d+)?$/.test(e)?{type:"number",const:parseFloat(e)}:e.startsWith("{")&&e.endsWith("}")?$t(e):{description:`TypeScript type: ${e}`}}function At(e){const t=[];let r=0,n="";for(let o=0;o<e.length;o++){const i=e[o];if(i==="{"||i==="<"||i==="("||i==="[")r++;else if(i==="}"||i===">"||i===")"||i==="]")r--;else if(i==="|"&&r===0){t.push(n.trim()),n="";continue}n+=i}return n.trim()&&t.push(n.trim()),t}function $t(e){const t=e.slice(1,-1).trim();if(!t)return{type:"object",properties:{}};const r={},n=[];let o=0,i="";for(let l=0;l<t.length;l++){const c=t[l];if(c==="{"||c==="<"||c==="("||c==="[")o++;else if(c==="}"||c===">"||c===")"||c==="]")o--;else if(c===";"&&o===0){i.trim()&&pe(i.trim(),r,n),i="";continue}i+=c}i.trim()&&pe(i.trim(),r,n);const u={type:"object",properties:r};return n.length>0&&(u.required=n),u}function pe(e,t,r){const n=e.match(/^(\w+)(\?)?:\s*(.+)$/s);if(n){const o=n[1],i=n[2],u=n[3];o&&u&&(t[o]=$(u.trim()),i||r.push(o))}}class Dt extends a.Component{constructor(t){super(t),this.state={hasError:!1,mountKey:0}}static getDerivedStateFromError(t){if(t.message?.includes("InstantiationService has been disposed"))return{hasError:!0};throw t}componentDidCatch(t){t.message?.includes("InstantiationService has been disposed")&&this.setState(r=>({hasError:!1,mountKey:r.mountKey+1}))}render(){return this.state.hasError?_.jsx("div",{className:"flex items-center justify-center h-full w-full bg-[#1e1e1e] text-gray-400",children:_.jsx(me,{size:"sm"})}):a.cloneElement(this.props.children,{mountKey:this.state.mountKey})}}let B=null;const Nt=async()=>{if(B)return B;const[e,t,r]=await Promise.all([te(()=>import("./standalone-Cutp_BhH.js"),[]),te(()=>import("./typescript-Ca_eWjgL.js"),[]),te(()=>import("./estree-CwOGYdhi.js"),[])]);return B={format:e.format,plugins:[t.default,r.default]},B};Y.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});const zt={parser:"typescript",semi:!0,singleQuote:!1,tabWidth:2,trailingComma:"es5",printWidth:80},ge={fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:2,stickyScroll:{enabled:!1},wordWrap:"on",folding:!0,bracketPairColorization:{enabled:!0},suggestOnTriggerCharacters:!0,quickSuggestions:{other:!0,comments:!1,strings:!0},minimap:{enabled:!1},parameterHints:{enabled:!0},inlineSuggest:{enabled:!0},autoClosingBrackets:"always",autoClosingQuotes:"always",autoSurround:"languageDefined",padding:{top:12,bottom:12},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8},theme:"light"},Kt=_.jsx("div",{className:"flex items-center justify-center h-full w-full text-gray-400",children:_.jsx(me,{size:"sm"})}),qt=a.memo(function({code:t,onChange:r,onSave:n,readOnly:o=!1,height:i=300,language:u="typescript",foldOnMount:l=!1,mountKey:c=0}){const g=a.useRef(null),O=a.useRef(null),j=a.useRef(n);j.current=n;const R=a.useRef(u);R.current=u;const S=a.useId(),C=`${S}-${c}`,L=u==="typescript"?`file:///workflow-${S.replace(/:/g,"-")}-${c}.tsx`:void 0,I=o?{...ge,readOnly:!0}:ge,N=async b=>{const h=b.getModel();if(!h){console.warn("No model found");return}const d=h.getValue();if(R.current==="json"){try{const f=JSON.parse(d),P=JSON.stringify(f,null,2);if(P!==d){const m=h.getFullModelRange();b.executeEdits("json-format",[{range:m,text:P}])}}catch(f){console.error("JSON formatting failed:",f)}return}try{const{format:f,plugins:P}=await Nt(),m=await f(d,{...zt,plugins:P});if(m!==d){const s=h.getFullModelRange();b.executeEdits("prettier",[{range:s,text:m}])}}catch(f){console.error("Prettier formatting failed:",f)}},y=async(b,h)=>{g.current=b,l&&O.current&&(O.current.style.visibility="hidden",await b.getAction("editor.foldLevel2")?.run(),O.current.style.visibility="visible"),u==="typescript"&&(h.languages.typescript.typescriptDefaults.setCompilerOptions({target:h.languages.typescript.ScriptTarget.ESNext,module:h.languages.typescript.ModuleKind.ESNext,moduleResolution:h.languages.typescript.ModuleResolutionKind.NodeJs,allowNonTsExtensions:!0,allowJs:!0,strict:!1,noEmit:!0,esModuleInterop:!0,jsx:h.languages.typescript.JsxEmit.React,allowSyntheticDefaultImports:!0}),h.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1})),b.addCommand(h.KeyMod.CtrlCmd|h.KeyCode.KeyS,async()=>{await N(b);const d=await Vt(b),v=b.getValue();j.current?.(v,d)})};return _.jsx("div",{ref:O,className:"h-full",children:_.jsx(Lt,{height:i,language:u,value:t,path:L,onChange:r,onMount:y,loading:Kt,options:I},C)})}),Ft=a.memo(function(t){const r=Me.c(2);let n;return r[0]!==t?(n=_.jsx(Dt,{children:_.jsx(qt,{...t})}),r[0]=t,r[1]=n):n=r[1],n});export{Ft as M};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a7 as _O,a8 as SO,r as g,c as ae,f as ia,j as v,t as wr,a9 as Da,a4 as Qe,aa as Te,H as Re,ab as PO,ac as OO,ad as CO,ae as jO,af as AO,ag as mn,ah as NO,ai as MO,aj as oa,ak as ho,al as Mr,m as jr,am as EO,b as TO,K as kO}from"./index-ZiFjEqyT.js";import{c as vo}from"./connection-CmMMEDBY.js";import{C as yf}from"./collection-header-Dl8Ii13M.js";import{C as IO}from"./collection-page-C75JriCh.js";import{C as DO}from"./collection-search-D67e9ppe.js";import{I as Fn,n as bf,E as w1}from"./empty-state-B1DU5702.js";import{E as Ja}from"./error-boundary-BOBkDZ1Y.js";import{B as Bn}from"./badge-BPKvq16e.js";import{t as fi}from"./ChevronDown-CJaS1NVA.js";import{i as _1,c as RO}from"./Grid01-BgBQwtBY.js";import{u as pn}from"./project-context-provider-BPo-49FO.js";import{B as Me,c as ve,b as lv}from"./button-Co_HOc3E.js";import{P as sa,a as la,b as ua}from"./popover-DW05feED.js";import{c as ei,b as ti,T as ri}from"./tooltip-BJO9sFhZ.js";import{i as uv}from"./Check-D4dBNJmC.js";import{a as vs}from"./Copy01-Rf_P7R5F.js";import{n as cv}from"./Download01-Cnas0PSW.js";import{i as S1}from"./FilterLines-BgxUhbig.js";import{i as LO}from"./Key01-BcxLAym0.js";import{i as $O,n as qO}from"./Play-CoxjBx7-.js";import{M as fv}from"./monaco-editor-BYgR7J38.js";import{r as FO,_ as gn}from"./index-BUdiVz6f.js";import{d as mo,i as BO,e as zO,T as ms}from"./value-zEqR5KPg.js";import{u as md}from"./use-connection-BskZam-G.js";import{u as P1,i as WO}from"./use-gateway-v7etejE8.js";import{u as UO}from"./use-members-dVasH0ez.js";import{i as KO}from"./Code01-CMazpegY.js";import{s as HO}from"./Plus-C4F6mby2.js";import{s as YO}from"./Trash01-GrzirNvV.js";import{I as qn}from"./input-DEsmZ6es.js";import{C as dv}from"./checkbox-DGIT6WZ3.js";import{i as GO}from"./SearchMd-B_A85eif.js";import{e as VO,S as hv,a as vv,b as mv,c as pv,d as Ra}from"./select-CVEPeRAQ.js";import{s as XO}from"./Clock-ljBuaWDA.js";import{I as ZO}from"./infiniteQueryObserver-DEh2zauU.js";import{T as QO}from"./textarea-DFRypKCQ.js";import{R as JO}from"./resource-tabs-CC5dHHUl.js";import{u as pd}from"./use-tool-call-BbfSyOCz.js";import"./collection-display-button-C_GfVLwh.js";import"./dropdown-menu-dsr_wyw0.js";import"./ArrowUp-KvHCnFh3.js";import"./List-hTdqyLGB.js";import"./view-mode-toggle-tlrhMsiy.js";import"./Loading01-Bq_7Os6T.js";import"./spinner-DqooIng7.js";import"./use-collections-g067BPxP.js";import"./useMutation-4fnzP4bc.js";import"./useQuery-Bn2Wcch_.js";function eC(e,t){return _O({...e,enabled:!0,suspense:!0,throwOnError:SO},ZO,t)}const O1=({size:e=24,color:t="currentColor",...r})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},g.createElement("path",{d:"m15 18-6-6 6-6"}));O1.displayName="ChevronLeft";const C1=({size:e=24,color:t="currentColor",...r})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},g.createElement("path",{d:"M9.5 15V9m5 6V9m7.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));C1.displayName="PauseCircle";const j1=({size:e=24,color:t="currentColor",...r})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},g.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}),g.createElement("path",{d:"M9.5 8.965c0-.477 0-.716.1-.849a.5.5 0 0 1 .364-.199c.166-.012.367.117.769.375l4.72 3.035c.349.224.523.336.583.478a.5.5 0 0 1 0 .39c-.06.142-.234.254-.583.478l-4.72 3.035c-.402.258-.603.387-.769.375a.5.5 0 0 1-.364-.2c-.1-.132-.1-.371-.1-.848v-6.07Z"}));j1.displayName="PlayCircle";const A1=({size:e=24,color:t="currentColor",...r})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},g.createElement("path",{d:"M4 7c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C5.602 4 6.068 4 7 4h10c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C20 5.602 20 6.068 20 7M9 20h6M12 4v16"}));A1.displayName="Type01";function gd(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function tC(e,t){t===void 0&&(t=e,e=mo);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[s](o-s)}}const xf={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function _r(e){return e.filter(t=>t.key.trim()).map(t=>{const r=encodeURIComponent(t.key.trim()),n=encodeURIComponent(t.value||"");return`${r}:${t.operator}:${n}`}).join(",")}function rC(e){return e?e.split(",").map(t=>{const[r,n,...a]=t.split(":");return{key:decodeURIComponent(r||""),operator:n||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function La(e){return e.filter(t=>t.key.trim()).map(t=>{switch(t.operator){case"eq":return`${t.key}=${t.value}`;case"contains":return`${t.key}~${t.value}`;case"exists":return`${t.key}?`}}).join(`
|
|
2
2
|
`)}function gv(e){return e.trim()?e.split(`
|
|
3
3
|
`).map(t=>t.trim()).filter(t=>t.length>0).map(t=>{if(t.endsWith("?"))return{key:t.slice(0,-1),operator:"exists",value:""};if(t.includes("=")){const[r,...n]=t.split("=");return{key:r||"",operator:"eq",value:n.join("=")}}if(t.includes("~")){const[r,...n]=t.split("~");return{key:r||"",operator:"contains",value:n.join("~")}}return{key:t,operator:"exists",value:""}}):[]}function nC(e){const t={},r={},n=[];for(const a of e)if(a.key.trim())switch(a.operator){case"eq":a.value&&(t[a.key]=a.value);break;case"contains":a.value&&(r[a.key]=`%${a.value}%`);break;case"exists":n.push(a.key);break}return{properties:Object.keys(t).length>0?t:void 0,propertyPatterns:Object.keys(r).length>0?r:void 0,propertyKeys:n.length>0?n:void 0}}function yv(e){if(!e)return{content:"null",isTruncated:!1,originalSize:4};const t=JSON.stringify(e,null,2),r=t.length;return r<=xf.maxJsonRenderSize?{content:t,isTruncated:!1,originalSize:r}:{content:t.slice(0,xf.maxJsonRenderSize)+`
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8
8
|
maybe you don't need to use a ResponsiveContainer.`,o,l),yl(!r||r>0,"The aspect(%s) must be greater than zero.",r);var D=$a(o)?k:o,q=$a(l)?E:l;r&&r>0&&(D?q=D/r:q&&(D=q*r),d&&q>d&&(q=d)),yl(D>0||q>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
9
9
|
please check the style of container, or the props width(%s) and height(%s),
|
|
10
10
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
11
|
-
height and width.`,D,q,o,l,c,f,r);var R=!Array.isArray(h)&&YC(h.type).endsWith("Chart");return Re.Children.map(h,function(M){return Re.isValidElement(M)?g.cloneElement(M,Ba({width:D,height:q},R?{style:Ba({height:"100%",width:"100%",maxHeight:q,maxWidth:D},M.props.style)}:{})):M})},[r,h,l,d,f,c,A,o]);return Re.createElement("div",{id:y?"".concat(y):void 0,className:Te("recharts-responsive-container",b),style:Ba(Ba({},S),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:d}),ref:P},C)});function cr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Z2(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Id(e){let t,r,n;e.length!==2?(t=cr,r=(s,l)=>cr(e(s),l),n=(s,l)=>e(s)-l):(t=e===cr||e===Z2?e:Q2,r=e,n=e);function a(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function i(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=a(s,l,u,c-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:a,center:o,right:i}}function Q2(){return 0}function mx(e){return e===null?NaN:+e}function*J2(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const eN=Id(cr),da=eN.right;Id(mx).center;class Ng extends Map{constructor(t,r=nN){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(Mg(this,t))}has(t){return super.has(Mg(this,t))}set(t,r){return super.set(tN(this,t),r)}delete(t){return super.delete(rN(this,t))}}function Mg({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function tN({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function rN({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function nN(e){return e!==null&&typeof e=="object"?e.valueOf():e}function aN(e=cr){if(e===cr)return px;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function px(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const iN=Math.sqrt(50),oN=Math.sqrt(10),sN=Math.sqrt(2);function xi(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=iN?10:i>=oN?5:i>=sN?2:1;let s,l,u;return a<0?(u=Math.pow(10,-a)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,a)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?xi(e,t,r*2):[s,l,u]}function Nf(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[a,i,o]=n?xi(t,e,r):xi(e,t,r);if(!(i>=a))return[];const s=i-a+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(i-u)/-o;else for(let u=0;u<s;++u)l[u]=(i-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(a+u)/-o;else for(let u=0;u<s;++u)l[u]=(a+u)*o;return l}function Mf(e,t,r){return t=+t,e=+e,r=+r,xi(e,t,r)[2]}function Ef(e,t,r){t=+t,e=+e,r=+r;const n=t<e,a=n?Mf(t,e,r):Mf(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function Eg(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Tg(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function gx(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?px:aN(a);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),h=Math.max(r,Math.floor(t-u*f/l+d)),m=Math.min(n,Math.floor(t+(l-u)*f/l+d));gx(e,t,h,m,a)}const i=e[t];let o=r,s=n;for(On(e,r,t),a(e[n],i)>0&&On(e,r,n);o<s;){for(On(e,o,s),++o,--s;a(e[o],i)<0;)++o;for(;a(e[s],i)>0;)--s}a(e[r],i)===0?On(e,r,s):(++s,On(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function On(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function lN(e,t,r){if(e=Float64Array.from(J2(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Tg(e);if(t>=1)return Eg(e);var n,a=(n-1)*t,i=Math.floor(a),o=Eg(gx(e,i).subarray(0,i+1)),s=Tg(e.subarray(i+1));return o+(s-o)*(a-i)}}function uN(e,t,r=mx){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function cN(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n<a;)i[n]=e+n*r;return i}function pt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Jt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Tf=Symbol("implicit");function Dd(){var e=new Ng,t=[],r=[],n=Tf;function a(i){let o=e.get(i);if(o===void 0){if(n!==Tf)return n;e.set(i,o=t.push(i)-1)}return r[o%r.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new Ng;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(r=Array.from(i),a):r.slice()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Dd(t,r).unknown(n)},pt.apply(a,arguments),a}function Rd(){var e=Dd().unknown(void 0),t=e.domain,r=e.range,n=0,a=1,i,o,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,h=a<n,m=h?a:n,p=h?n:a;i=(p-m)/Math.max(1,d-l+u*2),s&&(i=Math.floor(i)),m+=(p-m-i*(d-l))*c,o=i*(1-l),s&&(m=Math.round(m),o=Math.round(o));var y=cN(d).map(function(b){return m+i*b});return r(h?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,a]=d,n=+n,a=+a,f()):[n,a]},e.rangeRound=function(d){return[n,a]=d,n=+n,a=+a,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,u=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return Rd(t(),[n,a]).round(s).paddingInner(l).paddingOuter(u).align(c)},pt.apply(f(),arguments)}function yx(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return yx(t())},e}function fN(){return yx(Rd.apply(null,arguments).paddingInner(1))}function dN(e){return function(){return e}}function wi(e){return+e}var kg=[0,1];function He(e){return e}function kf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:dN(isNaN(t)?NaN:.5)}function hN(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function vN(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a<n?(n=kf(a,n),i=r(o,i)):(n=kf(n,a),i=r(i,o)),function(s){return i(n(s))}}function mN(e,t,r){var n=Math.min(e.length,t.length)-1,a=new Array(n),i=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)a[o]=kf(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(s){var l=da(e,s,1,n)-1;return i[l](a[l](s))}}function ha(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Co(){var e=kg,t=kg,r=mo,n,a,i,o=He,s,l,u;function c(){var d=Math.min(e.length,t.length);return o!==He&&(o=hN(e[0],e[d-1])),s=d>2?mN:vN,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?i:(l||(l=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(a((u||(u=s(t,e.map(n),BO)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,wi),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=gd,c()},f.clamp=function(d){return arguments.length?(o=d?!0:He,c()):o!==He},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,h){return n=d,a=h,c()}}function Ld(){return Co()(He,He)}function pN(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function _i(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ln(e){return e=_i(Math.abs(e)),e?e[1]:NaN}function gN(e,t){return function(r,n){for(var a=r.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(a-=s,a+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function yN(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var bN=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Kn(e){if(!(t=bN.exec(e)))throw new Error("invalid format: "+e);var t;return new $d({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]})}Kn.prototype=$d.prototype;function $d(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}$d.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function xN(e){e:for(var t=e.length,r=1,n=-1,a;r<t;++r)switch(e[r]){case".":n=a=r;break;case"0":n===0&&(n=r),a=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var Si;function wN(e,t){var r=_i(e,t);if(!r)return Si=void 0,e.toPrecision(t);var n=r[0],a=r[1],i=a-(Si=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+_i(e,Math.max(0,t+i-1))[0]}function Ig(e,t){var r=_i(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const Dg={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:pN,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)=>Ig(e*100,t),r:Ig,s:wN,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Rg(e){return e}var Lg=Array.prototype.map,$g=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _N(e){var t=e.grouping===void 0||e.thousands===void 0?Rg:gN(Lg.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?Rg:yN(Lg.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f,d){f=Kn(f);var h=f.fill,m=f.align,p=f.sign,y=f.symbol,b=f.zero,x=f.width,_=f.comma,S=f.precision,P=f.trim,w=f.type;w==="n"?(_=!0,w="g"):Dg[w]||(S===void 0&&(S=12),P=!0,w="g"),(b||h==="0"&&m==="=")&&(b=!0,h="0",m="=");var O=(d?.prefix!==void 0?d.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),j=(y==="$"?n:/[%p]/.test(w)?o:"")+(d?.suffix!==void 0?d.suffix:""),A=Dg[w],T=/[defgprs%]/.test(w);S=S===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function N(C){var k=O,E=j,D,q,R;if(w==="c")E=A(C)+E,C="";else{C=+C;var M=C<0||1/C<0;if(C=isNaN(C)?l:A(Math.abs(C),S),P&&(C=xN(C)),M&&+C==0&&p!=="+"&&(M=!1),k=(M?p==="("?p:s:p==="-"||p==="("?"":p)+k,E=(w==="s"&&!isNaN(C)&&Si!==void 0?$g[8+Si/3]:"")+E+(M&&p==="("?")":""),T){for(D=-1,q=C.length;++D<q;)if(R=C.charCodeAt(D),48>R||R>57){E=(R===46?a+C.slice(D+1):C.slice(D))+E,C=C.slice(0,D);break}}}_&&!b&&(C=t(C,1/0));var F=k.length+C.length+E.length,B=F<x?new Array(x-F+1).join(h):"";switch(_&&b&&(C=t(B+C,B.length?x-E.length:1/0),B=""),m){case"<":C=k+C+E+B;break;case"=":C=k+B+C+E;break;case"^":C=B.slice(0,F=B.length>>1)+k+C+E+B.slice(F);break;default:C=B+k+C+E;break}return i(C)}return N.toString=function(){return f+""},N}function c(f,d){var h=Math.max(-8,Math.min(8,Math.floor(ln(d)/3)))*3,m=Math.pow(10,-h),p=u((f=Kn(f),f.type="f",f),{suffix:$g[8+h/3]});return function(y){return p(m*y)}}return{format:u,formatPrefix:c}}var za,qd,bx;SN({thousands:",",grouping:[3],currency:["$",""]});function SN(e){return za=_N(e),qd=za.format,bx=za.formatPrefix,za}function PN(e){return Math.max(0,-ln(Math.abs(e)))}function ON(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ln(t)/3)))*3-ln(Math.abs(e)))}function CN(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ln(t)-ln(e))+1}function xx(e,t,r,n){var a=Ef(e,t,r),i;switch(n=Kn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=ON(a,o))&&(n.precision=i),bx(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=CN(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=PN(a))&&(n.precision=i-(n.type==="%")*2);break}}return qd(n)}function mr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Nf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return xx(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],s=n[i],l,u,c=10;for(s<o&&(u=o,o=s,s=u,u=a,a=i,i=u);c-- >0;){if(u=Mf(o,s,r),u===l)return n[a]=o,n[i]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function wx(){var e=Ld();return e.copy=function(){return ha(e,wx())},pt.apply(e,arguments),mr(e)}function _x(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,wi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return _x(e).unknown(t)},e=arguments.length?Array.from(e,wi):[0,1],mr(r)}function Sx(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return i<a&&(o=r,r=n,n=o,o=a,a=i,i=o),e[r]=t.floor(a),e[n]=t.ceil(i),e}function qg(e){return Math.log(e)}function Fg(e){return Math.exp(e)}function jN(e){return-Math.log(-e)}function AN(e){return-Math.exp(-e)}function NN(e){return isFinite(e)?+("1e"+e):e<0?0:e}function MN(e){return e===10?NN:e===Math.E?Math.exp:t=>Math.pow(e,t)}function EN(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Bg(e){return(t,r)=>-e(-t,r)}function Fd(e){const t=e(qg,Fg),r=t.domain;let n=10,a,i;function o(){return a=EN(n),i=MN(n),r()[0]<0?(a=Bg(a),i=Bg(i),e(jN,AN)):e(qg,Fg),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=a(u),h=a(c),m,p;const y=s==null?10:+s;let b=[];if(!(n%1)&&h-d<y){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(m=1;m<n;++m)if(p=d<0?m/i(-d):m*i(d),!(p<u)){if(p>c)break;b.push(p)}}else for(;d<=h;++d)for(m=n-1;m>=1;--m)if(p=d>0?m/i(-d):m*i(d),!(p<u)){if(p>c)break;b.push(p)}b.length*2<y&&(b=Nf(u,c,y))}else b=Nf(d,h,Math.min(h-d,y)).map(i);return f?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Kn(l)).precision==null&&(l.trim=!0),l=qd(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/i(Math.round(a(c)));return f*n<n-.5&&(f*=n),f<=u?l(c):""}},t.nice=()=>r(Sx(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Px(){const e=Fd(Co()).domain([1,10]);return e.copy=()=>ha(e,Px()).base(e.base()),pt.apply(e,arguments),e}function zg(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Wg(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Bd(e){var t=1,r=e(zg(t),Wg(t));return r.constant=function(n){return arguments.length?e(zg(t=+n),Wg(t)):t},mr(r)}function Ox(){var e=Bd(Co());return e.copy=function(){return ha(e,Ox()).constant(e.constant())},pt.apply(e,arguments)}function Ug(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function TN(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function kN(e){return e<0?-e*e:e*e}function zd(e){var t=e(He,He),r=1;function n(){return r===1?e(He,He):r===.5?e(TN,kN):e(Ug(r),Ug(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},mr(t)}function Wd(){var e=zd(Co());return e.copy=function(){return ha(e,Wd()).exponent(e.exponent())},pt.apply(e,arguments),e}function IN(){return Wd.apply(null,arguments).exponent(.5)}function Kg(e){return Math.sign(e)*e*e}function DN(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Cx(){var e=Ld(),t=[0,1],r=!1,n;function a(i){var o=DN(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(Kg(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,wi)).map(Kg)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Cx(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},pt.apply(a,arguments),mr(a)}function jx(){var e=[],t=[],r=[],n;function a(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=uN(e,o/s);return i}function i(o){return o==null||isNaN(o=+o)?n:t[da(r,o)]}return i.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(cr),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return jx().domain(e).range(t).unknown(n)},pt.apply(i,arguments)}function Ax(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(l){return l!=null&&l<=l?a[da(n,l,0,r)]:i}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(a=Array.from(l)).length-1,s()):a.slice()},o.invertExtent=function(l){var u=a.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Ax().domain([e,t]).range(a).unknown(i)},pt.apply(mr(o),arguments)}function Nx(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[da(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Nx().domain(e).range(t).unknown(r)},pt.apply(a,arguments)}const dc=new Date,hc=new Date;function ke(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const l=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return l;let u;do l.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return l},a.filter=i=>ke(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(dc.setTime(+i),hc.setTime(+o),e(dc),e(hc),Math.floor(r(dc,hc))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Pi=ke(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Pi.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ke(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Pi);Pi.range;const Wt=1e3,dt=Wt*60,Ut=dt*60,Ht=Ut*24,Ud=Ht*7,Hg=Ht*30,vc=Ht*365,Ar=ke(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Wt)},(e,t)=>(t-e)/Wt,e=>e.getUTCSeconds());Ar.range;const Kd=ke(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wt)},(e,t)=>{e.setTime(+e+t*dt)},(e,t)=>(t-e)/dt,e=>e.getMinutes());Kd.range;const Hd=ke(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*dt)},(e,t)=>(t-e)/dt,e=>e.getUTCMinutes());Hd.range;const Yd=ke(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wt-e.getMinutes()*dt)},(e,t)=>{e.setTime(+e+t*Ut)},(e,t)=>(t-e)/Ut,e=>e.getHours());Yd.range;const Gd=ke(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ut)},(e,t)=>(t-e)/Ut,e=>e.getUTCHours());Gd.range;const va=ke(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*dt)/Ht,e=>e.getDate()-1);va.range;const jo=ke(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ht,e=>e.getUTCDate()-1);jo.range;const Mx=ke(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ht,e=>Math.floor(e/Ht));Mx.range;function Kr(e){return ke(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*dt)/Ud)}const Ao=Kr(0),Oi=Kr(1),RN=Kr(2),LN=Kr(3),un=Kr(4),$N=Kr(5),qN=Kr(6);Ao.range;Oi.range;RN.range;LN.range;un.range;$N.range;qN.range;function Hr(e){return ke(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Ud)}const No=Hr(0),Ci=Hr(1),FN=Hr(2),BN=Hr(3),cn=Hr(4),zN=Hr(5),WN=Hr(6);No.range;Ci.range;FN.range;BN.range;cn.range;zN.range;WN.range;const Vd=ke(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Vd.range;const Xd=ke(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Xd.range;const Yt=ke(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Yt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ke(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Yt.range;const Gt=ke(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Gt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ke(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Gt.range;function Ex(e,t,r,n,a,i){const o=[[Ar,1,Wt],[Ar,5,5*Wt],[Ar,15,15*Wt],[Ar,30,30*Wt],[i,1,dt],[i,5,5*dt],[i,15,15*dt],[i,30,30*dt],[a,1,Ut],[a,3,3*Ut],[a,6,6*Ut],[a,12,12*Ut],[n,1,Ht],[n,2,2*Ht],[r,1,Ud],[t,1,Hg],[t,3,3*Hg],[e,1,vc]];function s(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const h=f&&typeof f.range=="function"?f:l(u,c,f),m=h?h.range(u,+c+1):[];return d?m.reverse():m}function l(u,c,f){const d=Math.abs(c-u)/f,h=Id(([,,y])=>y).right(o,d);if(h===o.length)return e.every(Ef(u/vc,c/vc,f));if(h===0)return Pi.every(Math.max(Ef(u,c,f),1));const[m,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return m.every(p)}return[s,l]}const[UN,KN]=Ex(Gt,Xd,No,Mx,Gd,Hd),[HN,YN]=Ex(Yt,Vd,Ao,va,Yd,Kd);function mc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function pc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Cn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function GN(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=jn(a),c=An(a),f=jn(i),d=An(i),h=jn(o),m=An(o),p=jn(s),y=An(s),b=jn(l),x=An(l),_={a:R,A:M,b:F,B,c:null,d:Qg,e:Qg,f:gM,g:jM,G:NM,H:vM,I:mM,j:pM,L:Tx,m:yM,M:bM,p:W,q:K,Q:ty,s:ry,S:xM,u:wM,U:_M,V:SM,w:PM,W:OM,x:null,X:null,y:CM,Y:AM,Z:MM,"%":ey},S={a:ee,A:Q,b:re,B:pe,c:null,d:Jg,e:Jg,f:IM,g:UM,G:HM,H:EM,I:TM,j:kM,L:Ix,m:DM,M:RM,p:oe,q:Oe,Q:ty,s:ry,S:LM,u:$M,U:qM,V:FM,w:BM,W:zM,x:null,X:null,y:WM,Y:KM,Z:YM,"%":ey},P={a:T,A:N,b:C,B:k,c:E,d:Xg,e:Xg,f:cM,g:Vg,G:Gg,H:Zg,I:Zg,j:oM,L:uM,m:iM,M:sM,p:A,q:aM,Q:dM,s:hM,S:lM,u:JN,U:eM,V:tM,w:QN,W:rM,x:D,X:q,y:Vg,Y:Gg,Z:nM,"%":fM};_.x=w(r,_),_.X=w(n,_),_.c=w(t,_),S.x=w(r,S),S.X=w(n,S),S.c=w(t,S);function w(L,U){return function(H){var $=[],ce=-1,G=0,V=L.length,X,fe,Ce;for(H instanceof Date||(H=new Date(+H));++ce<V;)L.charCodeAt(ce)===37&&($.push(L.slice(G,ce)),(fe=Yg[X=L.charAt(++ce)])!=null?X=L.charAt(++ce):fe=X==="e"?" ":"0",(Ce=U[X])&&(X=Ce(H,fe)),$.push(X),G=ce+1);return $.push(L.slice(G,ce)),$.join("")}}function O(L,U){return function(H){var $=Cn(1900,void 0,1),ce=j($,L,H+="",0),G,V;if(ce!=H.length)return null;if("Q"in $)return new Date($.Q);if("s"in $)return new Date($.s*1e3+("L"in $?$.L:0));if(U&&!("Z"in $)&&($.Z=0),"p"in $&&($.H=$.H%12+$.p*12),$.m===void 0&&($.m="q"in $?$.q:0),"V"in $){if($.V<1||$.V>53)return null;"w"in $||($.w=1),"Z"in $?(G=pc(Cn($.y,0,1)),V=G.getUTCDay(),G=V>4||V===0?Ci.ceil(G):Ci(G),G=jo.offset(G,($.V-1)*7),$.y=G.getUTCFullYear(),$.m=G.getUTCMonth(),$.d=G.getUTCDate()+($.w+6)%7):(G=mc(Cn($.y,0,1)),V=G.getDay(),G=V>4||V===0?Oi.ceil(G):Oi(G),G=va.offset(G,($.V-1)*7),$.y=G.getFullYear(),$.m=G.getMonth(),$.d=G.getDate()+($.w+6)%7)}else("W"in $||"U"in $)&&("w"in $||($.w="u"in $?$.u%7:"W"in $?1:0),V="Z"in $?pc(Cn($.y,0,1)).getUTCDay():mc(Cn($.y,0,1)).getDay(),$.m=0,$.d="W"in $?($.w+6)%7+$.W*7-(V+5)%7:$.w+$.U*7-(V+6)%7);return"Z"in $?($.H+=$.Z/100|0,$.M+=$.Z%100,pc($)):mc($)}}function j(L,U,H,$){for(var ce=0,G=U.length,V=H.length,X,fe;ce<G;){if($>=V)return-1;if(X=U.charCodeAt(ce++),X===37){if(X=U.charAt(ce++),fe=P[X in Yg?U.charAt(ce++):X],!fe||($=fe(L,H,$))<0)return-1}else if(X!=H.charCodeAt($++))return-1}return $}function A(L,U,H){var $=u.exec(U.slice(H));return $?(L.p=c.get($[0].toLowerCase()),H+$[0].length):-1}function T(L,U,H){var $=h.exec(U.slice(H));return $?(L.w=m.get($[0].toLowerCase()),H+$[0].length):-1}function N(L,U,H){var $=f.exec(U.slice(H));return $?(L.w=d.get($[0].toLowerCase()),H+$[0].length):-1}function C(L,U,H){var $=b.exec(U.slice(H));return $?(L.m=x.get($[0].toLowerCase()),H+$[0].length):-1}function k(L,U,H){var $=p.exec(U.slice(H));return $?(L.m=y.get($[0].toLowerCase()),H+$[0].length):-1}function E(L,U,H){return j(L,t,U,H)}function D(L,U,H){return j(L,r,U,H)}function q(L,U,H){return j(L,n,U,H)}function R(L){return o[L.getDay()]}function M(L){return i[L.getDay()]}function F(L){return l[L.getMonth()]}function B(L){return s[L.getMonth()]}function W(L){return a[+(L.getHours()>=12)]}function K(L){return 1+~~(L.getMonth()/3)}function ee(L){return o[L.getUTCDay()]}function Q(L){return i[L.getUTCDay()]}function re(L){return l[L.getUTCMonth()]}function pe(L){return s[L.getUTCMonth()]}function oe(L){return a[+(L.getUTCHours()>=12)]}function Oe(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var U=w(L+="",_);return U.toString=function(){return L},U},parse:function(L){var U=O(L+="",!1);return U.toString=function(){return L},U},utcFormat:function(L){var U=w(L+="",S);return U.toString=function(){return L},U},utcParse:function(L){var U=O(L+="",!0);return U.toString=function(){return L},U}}}var Yg={"-":"",_:" ",0:"0"},$e=/^\s*\d+/,VN=/^%/,XN=/[\\^$*+?|[\]().{}]/g;function te(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)}function ZN(e){return e.replace(XN,"\\$&")}function jn(e){return new RegExp("^(?:"+e.map(ZN).join("|")+")","i")}function An(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function QN(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function JN(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function eM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function tM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function rM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Gg(e,t,r){var n=$e.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Vg(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nM(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function aM(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function iM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Xg(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function oM(e,t,r){var n=$e.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Zg(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function sM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function uM(e,t,r){var n=$e.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function cM(e,t,r){var n=$e.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function fM(e,t,r){var n=VN.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function dM(e,t,r){var n=$e.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function hM(e,t,r){var n=$e.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Qg(e,t){return te(e.getDate(),t,2)}function vM(e,t){return te(e.getHours(),t,2)}function mM(e,t){return te(e.getHours()%12||12,t,2)}function pM(e,t){return te(1+va.count(Yt(e),e),t,3)}function Tx(e,t){return te(e.getMilliseconds(),t,3)}function gM(e,t){return Tx(e,t)+"000"}function yM(e,t){return te(e.getMonth()+1,t,2)}function bM(e,t){return te(e.getMinutes(),t,2)}function xM(e,t){return te(e.getSeconds(),t,2)}function wM(e){var t=e.getDay();return t===0?7:t}function _M(e,t){return te(Ao.count(Yt(e)-1,e),t,2)}function kx(e){var t=e.getDay();return t>=4||t===0?un(e):un.ceil(e)}function SM(e,t){return e=kx(e),te(un.count(Yt(e),e)+(Yt(e).getDay()===4),t,2)}function PM(e){return e.getDay()}function OM(e,t){return te(Oi.count(Yt(e)-1,e),t,2)}function CM(e,t){return te(e.getFullYear()%100,t,2)}function jM(e,t){return e=kx(e),te(e.getFullYear()%100,t,2)}function AM(e,t){return te(e.getFullYear()%1e4,t,4)}function NM(e,t){var r=e.getDay();return e=r>=4||r===0?un(e):un.ceil(e),te(e.getFullYear()%1e4,t,4)}function MM(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+te(t/60|0,"0",2)+te(t%60,"0",2)}function Jg(e,t){return te(e.getUTCDate(),t,2)}function EM(e,t){return te(e.getUTCHours(),t,2)}function TM(e,t){return te(e.getUTCHours()%12||12,t,2)}function kM(e,t){return te(1+jo.count(Gt(e),e),t,3)}function Ix(e,t){return te(e.getUTCMilliseconds(),t,3)}function IM(e,t){return Ix(e,t)+"000"}function DM(e,t){return te(e.getUTCMonth()+1,t,2)}function RM(e,t){return te(e.getUTCMinutes(),t,2)}function LM(e,t){return te(e.getUTCSeconds(),t,2)}function $M(e){var t=e.getUTCDay();return t===0?7:t}function qM(e,t){return te(No.count(Gt(e)-1,e),t,2)}function Dx(e){var t=e.getUTCDay();return t>=4||t===0?cn(e):cn.ceil(e)}function FM(e,t){return e=Dx(e),te(cn.count(Gt(e),e)+(Gt(e).getUTCDay()===4),t,2)}function BM(e){return e.getUTCDay()}function zM(e,t){return te(Ci.count(Gt(e)-1,e),t,2)}function WM(e,t){return te(e.getUTCFullYear()%100,t,2)}function UM(e,t){return e=Dx(e),te(e.getUTCFullYear()%100,t,2)}function KM(e,t){return te(e.getUTCFullYear()%1e4,t,4)}function HM(e,t){var r=e.getUTCDay();return e=r>=4||r===0?cn(e):cn.ceil(e),te(e.getUTCFullYear()%1e4,t,4)}function YM(){return"+0000"}function ey(){return"%"}function ty(e){return+e}function ry(e){return Math.floor(+e/1e3)}var Zr,Rx,Lx;GM({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function GM(e){return Zr=GN(e),Rx=Zr.format,Zr.parse,Lx=Zr.utcFormat,Zr.utcParse,Zr}function VM(e){return new Date(e)}function XM(e){return e instanceof Date?+e:+new Date(+e)}function Zd(e,t,r,n,a,i,o,s,l,u){var c=Ld(),f=c.invert,d=c.domain,h=u(".%L"),m=u(":%S"),p=u("%I:%M"),y=u("%I %p"),b=u("%a %d"),x=u("%b %d"),_=u("%B"),S=u("%Y");function P(w){return(l(w)<w?h:s(w)<w?m:o(w)<w?p:i(w)<w?y:n(w)<w?a(w)<w?b:x:r(w)<w?_:S)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?d(Array.from(w,XM)):d().map(VM)},c.ticks=function(w){var O=d();return e(O[0],O[O.length-1],w??10)},c.tickFormat=function(w,O){return O==null?P:u(O)},c.nice=function(w){var O=d();return(!w||typeof w.range!="function")&&(w=t(O[0],O[O.length-1],w??10)),w?d(Sx(O,w)):c},c.copy=function(){return ha(c,Zd(e,t,r,n,a,i,o,s,l,u))},c}function ZM(){return pt.apply(Zd(HN,YN,Yt,Vd,Ao,va,Yd,Kd,Ar,Rx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function QM(){return pt.apply(Zd(UN,KN,Gt,Xd,No,jo,Gd,Hd,Ar,Lx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Mo(){var e=0,t=1,r,n,a,i,o=He,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:o(a===0?.5:(f=(i(f)-r)*a,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=i(e=+e),n=i(t=+t),a=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(d){var h,m;return arguments.length?([h,m]=d,o=f(h,m),u):[o(0),o(1)]}}return u.range=c(mo),u.rangeRound=c(gd),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return i=f,r=f(e),n=f(t),a=r===n?0:1/(n-r),u}}function pr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function $x(){var e=mr(Mo()(He));return e.copy=function(){return pr(e,$x())},Jt.apply(e,arguments)}function qx(){var e=Fd(Mo()).domain([1,10]);return e.copy=function(){return pr(e,qx()).base(e.base())},Jt.apply(e,arguments)}function Fx(){var e=Bd(Mo());return e.copy=function(){return pr(e,Fx()).constant(e.constant())},Jt.apply(e,arguments)}function Qd(){var e=zd(Mo());return e.copy=function(){return pr(e,Qd()).exponent(e.exponent())},Jt.apply(e,arguments)}function JM(){return Qd.apply(null,arguments).exponent(.5)}function Bx(){var e=[],t=He;function r(n){if(n!=null&&!isNaN(n=+n))return t((da(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(cr),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>lN(e,i/n))},r.copy=function(){return Bx(t).domain(e)},Jt.apply(r,arguments)}function Eo(){var e=0,t=.5,r=1,n=1,a,i,o,s,l,u=He,c,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+c(p))-i)*(n*p<n*i?s:l),u(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,a=c(e=+e),i=c(t=+t),o=c(r=+r),s=a===i?0:.5/(i-a),l=i===o?0:.5/(o-i),n=i<a?-1:1,h):[e,t,r]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(u=p,h):u};function m(p){return function(y){var b,x,_;return arguments.length?([b,x,_]=y,u=tC(p,[b,x,_]),h):[u(0),u(.5),u(1)]}}return h.range=m(mo),h.rangeRound=m(gd),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return c=p,a=p(e),i=p(t),o=p(r),s=a===i?0:.5/(i-a),l=i===o?0:.5/(o-i),n=i<a?-1:1,h}}function zx(){var e=mr(Eo()(He));return e.copy=function(){return pr(e,zx())},Jt.apply(e,arguments)}function Wx(){var e=Fd(Eo()).domain([.1,1,10]);return e.copy=function(){return pr(e,Wx()).base(e.base())},Jt.apply(e,arguments)}function Ux(){var e=Bd(Eo());return e.copy=function(){return pr(e,Ux()).constant(e.constant())},Jt.apply(e,arguments)}function Jd(){var e=zd(Eo());return e.copy=function(){return pr(e,Jd()).exponent(e.exponent())},Jt.apply(e,arguments)}function eE(){return Jd.apply(null,arguments).exponent(.5)}var yn=1e9,tE={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},th,be=!0,vt="[DecimalError] ",Er=vt+"Invalid argument: ",eh=vt+"Exponent out of range: ",bn=Math.floor,Pr=Math.pow,rE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,rt,Le=1e7,ge=7,Kx=9007199254740991,ji=bn(Kx/ge),z={};z.absoluteValue=z.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};z.comparedTo=z.cmp=function(e){var t,r,n,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=n<a?n:a;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};z.decimalPlaces=z.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ge;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};z.dividedBy=z.div=function(e){return Kt(this,new this.constructor(e))};z.dividedToIntegerBy=z.idiv=function(e){var t=this,r=t.constructor;return de(Kt(t,new r(e),0,1),r.precision)};z.equals=z.eq=function(e){return!this.cmp(e)};z.exponent=function(){return Ae(this)};z.greaterThan=z.gt=function(e){return this.cmp(e)>0};z.greaterThanOrEqualTo=z.gte=function(e){return this.cmp(e)>=0};z.isInteger=z.isint=function(){return this.e>this.d.length-2};z.isNegative=z.isneg=function(){return this.s<0};z.isPositive=z.ispos=function(){return this.s>0};z.isZero=function(){return this.s===0};z.lessThan=z.lt=function(e){return this.cmp(e)<0};z.lessThanOrEqualTo=z.lte=function(e){return this.cmp(e)<1};z.logarithm=z.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(rt))throw Error(vt+"NaN");if(r.s<1)throw Error(vt+(r.s?"NaN":"-Infinity"));return r.eq(rt)?new n(0):(be=!1,t=Kt(Hn(r,i),Hn(e,i),i),be=!0,de(t,a))};z.minus=z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Gx(t,e):Hx(t,(e.s=-e.s,e))};z.modulo=z.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(vt+"NaN");return r.s?(be=!1,t=Kt(r,e,0,1).times(e),be=!0,r.minus(t)):de(new n(r),a)};z.naturalExponential=z.exp=function(){return Yx(this)};z.naturalLogarithm=z.ln=function(){return Hn(this)};z.negated=z.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};z.plus=z.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Hx(t,e):Gx(t,(e.s=-e.s,e))};z.precision=z.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Er+e);if(t=Ae(a)+1,n=a.d.length-1,r=n*ge+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};z.squareRoot=z.sqrt=function(){var e,t,r,n,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(vt+"NaN")}for(e=Ae(s),be=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=Et(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=bn((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(a.toString()),r=l.precision,a=o=r+3;;)if(i=n,n=i.plus(Kt(s,i,o+2)).times(.5),Et(i.d).slice(0,o)===(t=Et(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(de(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return be=!0,de(n,r)};z.times=z.mul=function(e){var t,r,n,a,i,o,s,l,u,c=this,f=c.constructor,d=c.d,h=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,u=h.length,l<u&&(i=d,d=h,h=i,o=l,l=u,u=o),i=[],o=l+u,n=o;n--;)i.push(0);for(n=u;--n>=0;){for(t=0,a=l+n;a>n;)s=i[a]+h[n]*d[a-n-1]+t,i[a--]=s%Le|0,t=s/Le|0;i[a]=(i[a]+t)%Le|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,be?de(e,f.precision):e};z.toDecimalPlaces=z.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(It(e,0,yn),t===void 0?t=n.rounding:It(t,0,8),de(r,e+Ae(r)+1,t))};z.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=Ir(n,!0):(It(e,0,yn),t===void 0?t=a.rounding:It(t,0,8),n=de(new a(n),e+1,t),r=Ir(n,!0,e+1)),r};z.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?Ir(a):(It(e,0,yn),t===void 0?t=i.rounding:It(t,0,8),n=de(new i(a),e+Ae(a)+1,t),r=Ir(n.abs(),!1,e+Ae(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};z.toInteger=z.toint=function(){var e=this,t=e.constructor;return de(new t(e),Ae(e)+1,t.rounding)};z.toNumber=function(){return+this};z.toPower=z.pow=function(e){var t,r,n,a,i,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(rt);if(s=new l(s),!s.s){if(e.s<1)throw Error(vt+"Infinity");return s}if(s.eq(rt))return s;if(n=l.precision,e.eq(rt))return de(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=c<0?-c:c)<=Kx){for(a=new l(rt),t=Math.ceil(n/ge+4),be=!1;r%2&&(a=a.times(s),ay(a.d,t)),r=bn(r/2),r!==0;)s=s.times(s),ay(s.d,t);return be=!0,e.s<0?new l(rt).div(a):de(a,n)}}else if(i<0)throw Error(vt+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,be=!1,a=e.times(Hn(s,n+u)),be=!0,a=Yx(a),a.s=i,a};z.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=Ae(a),n=Ir(a,r<=i.toExpNeg||r>=i.toExpPos)):(It(e,1,yn),t===void 0?t=i.rounding:It(t,0,8),a=de(new i(a),e,t),r=Ae(a),n=Ir(a,e<=r||r<=i.toExpNeg,e)),n};z.toSignificantDigits=z.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(It(e,1,yn),t===void 0?t=n.rounding:It(t,0,8)),de(new n(r),e,t)};z.toString=z.valueOf=z.val=z.toJSON=z[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ae(e),r=e.constructor;return Ir(e,t<=r.toExpNeg||t>=r.toExpPos)};function Hx(e,t){var r,n,a,i,o,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),be?de(t,f):t;if(l=e.d,u=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(n=l,i=-i,s=u.length):(n=u,a=o,s=l.length),o=Math.ceil(f/ge),s=o>s?o+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=u.length,s-i<0&&(i=s,n=u,u=l,l=n),r=0;i;)r=(l[--i]=l[i]+u[i]+r)/Le|0,l[i]%=Le;for(r&&(l.unshift(r),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,be?de(t,f):t}function It(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Er+e)}function Et(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;t<a;t++)n=e[t]+"",r=ge-n.length,r&&(i+=sr(r)),i+=n;o=e[t],n=o+"",r=ge-n.length,r&&(i+=sr(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var Kt=(function(){function e(n,a){var i,o=0,s=n.length;for(n=n.slice();s--;)i=n[s]*a+o,n[s]=i%Le|0,o=i/Le|0;return o&&n.unshift(o),n}function t(n,a,i,o){var s,l;if(i!=o)l=i>o?1:-1;else for(s=l=0;s<i;s++)if(n[s]!=a[s]){l=n[s]>a[s]?1:-1;break}return l}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]<a[i]?1:0,n[i]=o*Le+n[i]-a[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,a,i,o){var s,l,u,c,f,d,h,m,p,y,b,x,_,S,P,w,O,j,A=n.constructor,T=n.s==a.s?1:-1,N=n.d,C=a.d;if(!n.s)return new A(n);if(!a.s)throw Error(vt+"Division by zero");for(l=n.e-a.e,O=C.length,P=N.length,h=new A(T),m=h.d=[],u=0;C[u]==(N[u]||0);)++u;if(C[u]>(N[u]||0)&&--l,i==null?x=i=A.precision:o?x=i+(Ae(n)-Ae(a))+1:x=i,x<0)return new A(0);if(x=x/ge+2|0,u=0,O==1)for(c=0,C=C[0],x++;(u<P||c)&&x--;u++)_=c*Le+(N[u]||0),m[u]=_/C|0,c=_%C|0;else{for(c=Le/(C[0]+1)|0,c>1&&(C=e(C,c),N=e(N,c),O=C.length,P=N.length),S=O,p=N.slice(0,O),y=p.length;y<O;)p[y++]=0;j=C.slice(),j.unshift(0),w=C[0],C[1]>=Le/2&&++w;do c=0,s=t(C,p,O,y),s<0?(b=p[0],O!=y&&(b=b*Le+(p[1]||0)),c=b/w|0,c>1?(c>=Le&&(c=Le-1),f=e(C,c),d=f.length,y=p.length,s=t(f,p,d,y),s==1&&(c--,r(f,O<d?j:C,d))):(c==0&&(s=c=1),f=C.slice()),d=f.length,d<y&&f.unshift(0),r(p,f,y),s==-1&&(y=p.length,s=t(C,p,O,y),s<1&&(c++,r(p,O<y?j:C,y))),y=p.length):s===0&&(c++,p=[0]),m[u++]=c,s&&p[0]?p[y++]=N[S]||0:(p=[N[S]],y=1);while((S++<P||p[0]!==void 0)&&x--)}return m[0]||m.shift(),h.e=l,de(h,o?i+Ae(h)+1:i)}})();function Yx(e,t){var r,n,a,i,o,s,l=0,u=0,c=e.constructor,f=c.precision;if(Ae(e)>16)throw Error(eh+Ae(e));if(!e.s)return new c(rt);for(be=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Pr(2,u))/Math.LN10*2+5|0,s+=n,r=a=i=new c(rt),c.precision=s;;){if(a=de(a.times(e),s),r=r.times(++l),o=i.plus(Kt(a,r,s)),Et(o.d).slice(0,s)===Et(i.d).slice(0,s)){for(;u--;)i=de(i.times(i),s);return c.precision=f,t==null?(be=!0,de(i,f)):i}i=o}}function Ae(e){for(var t=e.e*ge,r=e.d[0];r>=10;r/=10)t++;return t}function gc(e,t,r){if(t>e.LN10.sd())throw be=!0,r&&(e.precision=r),Error(vt+"LN10 precision limit exceeded");return de(new e(e.LN10),t)}function sr(e){for(var t="";e--;)t+="0";return t}function Hn(e,t){var r,n,a,i,o,s,l,u,c,f=1,d=10,h=e,m=h.d,p=h.constructor,y=p.precision;if(h.s<1)throw Error(vt+(h.s?"NaN":"-Infinity"));if(h.eq(rt))return new p(0);if(t==null?(be=!1,u=y):u=t,h.eq(10))return t==null&&(be=!0),gc(p,u);if(u+=d,p.precision=u,r=Et(m),n=r.charAt(0),i=Ae(h),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Et(h.d),n=r.charAt(0),f++;i=Ae(h),n>1?(h=new p("0."+r),i++):h=new p(n+"."+r.slice(1))}else return l=gc(p,u+2,y).times(i+""),h=Hn(new p(n+"."+r.slice(1)),u-d).plus(l),p.precision=y,t==null?(be=!0,de(h,y)):h;for(s=o=h=Kt(h.minus(rt),h.plus(rt),u),c=de(h.times(h),u),a=3;;){if(o=de(o.times(c),u),l=s.plus(Kt(o,new p(a),u)),Et(l.d).slice(0,u)===Et(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus(gc(p,u+2,y).times(i+""))),s=Kt(s,new p(f),u),p.precision=y,t==null?(be=!0,de(s,y)):s;s=l,a+=2}}function ny(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=bn(r/ge),e.d=[],n=(r+1)%ge,r<0&&(n+=ge),n<a){for(n&&e.d.push(+t.slice(0,n)),a-=ge;n<a;)e.d.push(+t.slice(n,n+=ge));t=t.slice(n),n=ge-t.length}else n-=a;for(;n--;)t+="0";if(e.d.push(+t),be&&(e.e>ji||e.e<-ji))throw Error(eh+r)}else e.s=0,e.e=0,e.d=[0];return e}function de(e,t,r){var n,a,i,o,s,l,u,c,f=e.d;for(o=1,i=f[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=ge,a=t,u=f[c=0];else{if(c=Math.ceil((n+1)/ge),i=f.length,c>=i)return e;for(u=i=f[c],o=1;i>=10;i/=10)o++;n%=ge,a=n-ge+o}if(r!==void 0&&(i=Pr(10,o-a-1),s=u/i%10|0,l=t<0||f[c+1]!==void 0||u%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?a>0?u/Pr(10,o-a):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(i=Ae(e),f.length=1,t=t-i-1,f[0]=Pr(10,(ge-t%ge)%ge),e.e=bn(-t/ge)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,i=1,c--):(f.length=c+1,i=Pr(10,ge-n),f[c]=a>0?(u/Pr(10,o-a)%Pr(10,a)|0)*i:0),l)for(;;)if(c==0){(f[0]+=i)==Le&&(f[0]=1,++e.e);break}else{if(f[c]+=i,f[c]!=Le)break;f[c--]=0,i=1}for(n=f.length;f[--n]===0;)f.pop();if(be&&(e.e>ji||e.e<-ji))throw Error(eh+Ae(e));return e}function Gx(e,t){var r,n,a,i,o,s,l,u,c,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),be?de(t,h):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(c=o<0,c?(r=l,o=-o,s=f.length):(r=f,n=u,s=l.length),a=Math.max(Math.ceil(h/ge),s)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=l.length,s=f.length,c=a<s,c&&(s=a),a=0;a<s;a++)if(l[a]!=f[a]){c=l[a]<f[a];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,a=f.length-s;a>0;--a)l[s++]=0;for(a=f.length;a>o;){if(l[--a]<f[a]){for(i=a;i&&l[--i]===0;)l[i]=Le-1;--l[i],l[a]+=Le}l[a]-=f[a]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,be?de(t,h):t):new d(0)}function Ir(e,t,r){var n,a=Ae(e),i=Et(e.d),o=i.length;return t?(r&&(n=r-o)>0?i=i.charAt(0)+"."+i.slice(1)+sr(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+sr(-a-1)+i,r&&(n=r-o)>0&&(i+=sr(n))):a>=o?(i+=sr(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+sr(n))):((n=a+1)<o&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-o)>0&&(a+1===o&&(i+="."),i+=sr(n))),e.s<0?"-"+i:i}function ay(e,t){if(e.length>t)return e.length=t,!0}function Vx(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Er+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return ny(o,i.toString())}else if(typeof i!="string")throw Error(Er+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,rE.test(i))ny(o,i);else throw Error(Er+i)}if(a.prototype=z,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=Vx,a.config=a.set=nE,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return a.config(e),a}function nE(e){if(!e||typeof e!="object")throw Error(vt+"Object expected");var t,r,n,a=["precision",1,yn,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((n=e[r=a[t]])!==void 0)if(bn(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(Er+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Er+r+": "+n);return this}var th=Vx(tE);rt=new th(1);const le=th,aE={light:"",dark:".dark"},Xx=g.createContext(null);function iE(){const e=g.useContext(Xx);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}function Zx(e){const t=ae.c(28);let r,n,a,i,o;t[0]!==e?({id:i,className:n,children:r,config:a,...o}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=o):(r=t[1],n=t[2],a=t[3],i=t[4],o=t[5]);const s=g.useId();let l;t[6]!==i||t[7]!==s?(l=i||s.replace(/:/g,""),t[6]=i,t[7]=s,t[8]=l):l=t[8];const u=`chart-${l}`;let c;t[9]!==a?(c={config:a},t[9]=a,t[10]=c):c=t[10];let f;t[11]!==n?(f=ve("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",n),t[11]=n,t[12]=f):f=t[12];let d;t[13]!==u||t[14]!==a?(d=v.jsx(oE,{id:u,config:a}),t[13]=u,t[14]=a,t[15]=d):d=t[15];let h;t[16]===Symbol.for("react.memo_cache_sentinel")?(h={width:240,height:180},t[16]=h):h=t[16];let m;t[17]!==r?(m=v.jsx(X2,{initialDimension:h,children:r}),t[17]=r,t[18]=m):m=t[18];let p;t[19]!==u||t[20]!==o||t[21]!==f||t[22]!==d||t[23]!==m?(p=v.jsxs("div",{"data-slot":"chart","data-chart":u,className:f,...o,children:[d,m]}),t[19]=u,t[20]=o,t[21]=f,t[22]=d,t[23]=m,t[24]=p):p=t[24];let y;return t[25]!==c||t[26]!==p?(y=v.jsx(Xx.Provider,{value:c,children:p}),t[25]=c,t[26]=p,t[27]=y):y=t[27],y}const oE=e=>{const t=ae.c(8),{id:r,config:n}=e;let a;t[0]!==n?(a=Object.entries(n).filter(lE),t[0]=n,t[1]=a):a=t[1];const i=a;if(!i.length)return null;let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=Object.entries(aE),t[2]=o):o=t[2];let s;t[3]!==i||t[4]!==r?(s=o.map(c=>{const[f,d]=c;return`
|
|
11
|
+
height and width.`,D,q,o,l,c,f,r);var R=!Array.isArray(h)&&YC(h.type).endsWith("Chart");return Re.Children.map(h,function(M){return Re.isValidElement(M)?g.cloneElement(M,Ba({width:D,height:q},R?{style:Ba({height:"100%",width:"100%",maxHeight:q,maxWidth:D},M.props.style)}:{})):M})},[r,h,l,d,f,c,A,o]);return Re.createElement("div",{id:y?"".concat(y):void 0,className:Te("recharts-responsive-container",b),style:Ba(Ba({},S),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:d}),ref:P},C)});function cr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Z2(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Id(e){let t,r,n;e.length!==2?(t=cr,r=(s,l)=>cr(e(s),l),n=(s,l)=>e(s)-l):(t=e===cr||e===Z2?e:Q2,r=e,n=e);function a(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function i(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=a(s,l,u,c-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:a,center:o,right:i}}function Q2(){return 0}function mx(e){return e===null?NaN:+e}function*J2(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const eN=Id(cr),da=eN.right;Id(mx).center;class Ng extends Map{constructor(t,r=nN){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(Mg(this,t))}has(t){return super.has(Mg(this,t))}set(t,r){return super.set(tN(this,t),r)}delete(t){return super.delete(rN(this,t))}}function Mg({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function tN({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function rN({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function nN(e){return e!==null&&typeof e=="object"?e.valueOf():e}function aN(e=cr){if(e===cr)return px;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function px(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const iN=Math.sqrt(50),oN=Math.sqrt(10),sN=Math.sqrt(2);function xi(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=iN?10:i>=oN?5:i>=sN?2:1;let s,l,u;return a<0?(u=Math.pow(10,-a)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,a)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?xi(e,t,r*2):[s,l,u]}function Nf(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[a,i,o]=n?xi(t,e,r):xi(e,t,r);if(!(i>=a))return[];const s=i-a+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(i-u)/-o;else for(let u=0;u<s;++u)l[u]=(i-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(a+u)/-o;else for(let u=0;u<s;++u)l[u]=(a+u)*o;return l}function Mf(e,t,r){return t=+t,e=+e,r=+r,xi(e,t,r)[2]}function Ef(e,t,r){t=+t,e=+e,r=+r;const n=t<e,a=n?Mf(t,e,r):Mf(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function Eg(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Tg(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function gx(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?px:aN(a);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),h=Math.max(r,Math.floor(t-u*f/l+d)),m=Math.min(n,Math.floor(t+(l-u)*f/l+d));gx(e,t,h,m,a)}const i=e[t];let o=r,s=n;for(On(e,r,t),a(e[n],i)>0&&On(e,r,n);o<s;){for(On(e,o,s),++o,--s;a(e[o],i)<0;)++o;for(;a(e[s],i)>0;)--s}a(e[r],i)===0?On(e,r,s):(++s,On(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function On(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function lN(e,t,r){if(e=Float64Array.from(J2(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Tg(e);if(t>=1)return Eg(e);var n,a=(n-1)*t,i=Math.floor(a),o=Eg(gx(e,i).subarray(0,i+1)),s=Tg(e.subarray(i+1));return o+(s-o)*(a-i)}}function uN(e,t,r=mx){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function cN(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n<a;)i[n]=e+n*r;return i}function pt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Jt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Tf=Symbol("implicit");function Dd(){var e=new Ng,t=[],r=[],n=Tf;function a(i){let o=e.get(i);if(o===void 0){if(n!==Tf)return n;e.set(i,o=t.push(i)-1)}return r[o%r.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new Ng;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(r=Array.from(i),a):r.slice()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Dd(t,r).unknown(n)},pt.apply(a,arguments),a}function Rd(){var e=Dd().unknown(void 0),t=e.domain,r=e.range,n=0,a=1,i,o,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,h=a<n,m=h?a:n,p=h?n:a;i=(p-m)/Math.max(1,d-l+u*2),s&&(i=Math.floor(i)),m+=(p-m-i*(d-l))*c,o=i*(1-l),s&&(m=Math.round(m),o=Math.round(o));var y=cN(d).map(function(b){return m+i*b});return r(h?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,a]=d,n=+n,a=+a,f()):[n,a]},e.rangeRound=function(d){return[n,a]=d,n=+n,a=+a,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,u=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return Rd(t(),[n,a]).round(s).paddingInner(l).paddingOuter(u).align(c)},pt.apply(f(),arguments)}function yx(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return yx(t())},e}function fN(){return yx(Rd.apply(null,arguments).paddingInner(1))}function dN(e){return function(){return e}}function wi(e){return+e}var kg=[0,1];function He(e){return e}function kf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:dN(isNaN(t)?NaN:.5)}function hN(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function vN(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a<n?(n=kf(a,n),i=r(o,i)):(n=kf(n,a),i=r(i,o)),function(s){return i(n(s))}}function mN(e,t,r){var n=Math.min(e.length,t.length)-1,a=new Array(n),i=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)a[o]=kf(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(s){var l=da(e,s,1,n)-1;return i[l](a[l](s))}}function ha(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Co(){var e=kg,t=kg,r=mo,n,a,i,o=He,s,l,u;function c(){var d=Math.min(e.length,t.length);return o!==He&&(o=hN(e[0],e[d-1])),s=d>2?mN:vN,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?i:(l||(l=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(a((u||(u=s(t,e.map(n),BO)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,wi),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=gd,c()},f.clamp=function(d){return arguments.length?(o=d?!0:He,c()):o!==He},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,h){return n=d,a=h,c()}}function Ld(){return Co()(He,He)}function pN(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function _i(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ln(e){return e=_i(Math.abs(e)),e?e[1]:NaN}function gN(e,t){return function(r,n){for(var a=r.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(a-=s,a+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function yN(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var bN=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Kn(e){if(!(t=bN.exec(e)))throw new Error("invalid format: "+e);var t;return new $d({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]})}Kn.prototype=$d.prototype;function $d(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}$d.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function xN(e){e:for(var t=e.length,r=1,n=-1,a;r<t;++r)switch(e[r]){case".":n=a=r;break;case"0":n===0&&(n=r),a=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var Si;function wN(e,t){var r=_i(e,t);if(!r)return Si=void 0,e.toPrecision(t);var n=r[0],a=r[1],i=a-(Si=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+_i(e,Math.max(0,t+i-1))[0]}function Ig(e,t){var r=_i(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const Dg={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:pN,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)=>Ig(e*100,t),r:Ig,s:wN,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Rg(e){return e}var Lg=Array.prototype.map,$g=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _N(e){var t=e.grouping===void 0||e.thousands===void 0?Rg:gN(Lg.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?Rg:yN(Lg.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f,d){f=Kn(f);var h=f.fill,m=f.align,p=f.sign,y=f.symbol,b=f.zero,x=f.width,_=f.comma,S=f.precision,P=f.trim,w=f.type;w==="n"?(_=!0,w="g"):Dg[w]||(S===void 0&&(S=12),P=!0,w="g"),(b||h==="0"&&m==="=")&&(b=!0,h="0",m="=");var O=(d&&d.prefix!==void 0?d.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),j=(y==="$"?n:/[%p]/.test(w)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),A=Dg[w],T=/[defgprs%]/.test(w);S=S===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function N(C){var k=O,E=j,D,q,R;if(w==="c")E=A(C)+E,C="";else{C=+C;var M=C<0||1/C<0;if(C=isNaN(C)?l:A(Math.abs(C),S),P&&(C=xN(C)),M&&+C==0&&p!=="+"&&(M=!1),k=(M?p==="("?p:s:p==="-"||p==="("?"":p)+k,E=(w==="s"&&!isNaN(C)&&Si!==void 0?$g[8+Si/3]:"")+E+(M&&p==="("?")":""),T){for(D=-1,q=C.length;++D<q;)if(R=C.charCodeAt(D),48>R||R>57){E=(R===46?a+C.slice(D+1):C.slice(D))+E,C=C.slice(0,D);break}}}_&&!b&&(C=t(C,1/0));var F=k.length+C.length+E.length,B=F<x?new Array(x-F+1).join(h):"";switch(_&&b&&(C=t(B+C,B.length?x-E.length:1/0),B=""),m){case"<":C=k+C+E+B;break;case"=":C=k+B+C+E;break;case"^":C=B.slice(0,F=B.length>>1)+k+C+E+B.slice(F);break;default:C=B+k+C+E;break}return i(C)}return N.toString=function(){return f+""},N}function c(f,d){var h=Math.max(-8,Math.min(8,Math.floor(ln(d)/3)))*3,m=Math.pow(10,-h),p=u((f=Kn(f),f.type="f",f),{suffix:$g[8+h/3]});return function(y){return p(m*y)}}return{format:u,formatPrefix:c}}var za,qd,bx;SN({thousands:",",grouping:[3],currency:["$",""]});function SN(e){return za=_N(e),qd=za.format,bx=za.formatPrefix,za}function PN(e){return Math.max(0,-ln(Math.abs(e)))}function ON(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ln(t)/3)))*3-ln(Math.abs(e)))}function CN(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ln(t)-ln(e))+1}function xx(e,t,r,n){var a=Ef(e,t,r),i;switch(n=Kn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=ON(a,o))&&(n.precision=i),bx(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=CN(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=PN(a))&&(n.precision=i-(n.type==="%")*2);break}}return qd(n)}function mr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Nf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return xx(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],s=n[i],l,u,c=10;for(s<o&&(u=o,o=s,s=u,u=a,a=i,i=u);c-- >0;){if(u=Mf(o,s,r),u===l)return n[a]=o,n[i]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function wx(){var e=Ld();return e.copy=function(){return ha(e,wx())},pt.apply(e,arguments),mr(e)}function _x(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,wi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return _x(e).unknown(t)},e=arguments.length?Array.from(e,wi):[0,1],mr(r)}function Sx(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return i<a&&(o=r,r=n,n=o,o=a,a=i,i=o),e[r]=t.floor(a),e[n]=t.ceil(i),e}function qg(e){return Math.log(e)}function Fg(e){return Math.exp(e)}function jN(e){return-Math.log(-e)}function AN(e){return-Math.exp(-e)}function NN(e){return isFinite(e)?+("1e"+e):e<0?0:e}function MN(e){return e===10?NN:e===Math.E?Math.exp:t=>Math.pow(e,t)}function EN(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Bg(e){return(t,r)=>-e(-t,r)}function Fd(e){const t=e(qg,Fg),r=t.domain;let n=10,a,i;function o(){return a=EN(n),i=MN(n),r()[0]<0?(a=Bg(a),i=Bg(i),e(jN,AN)):e(qg,Fg),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=a(u),h=a(c),m,p;const y=s==null?10:+s;let b=[];if(!(n%1)&&h-d<y){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(m=1;m<n;++m)if(p=d<0?m/i(-d):m*i(d),!(p<u)){if(p>c)break;b.push(p)}}else for(;d<=h;++d)for(m=n-1;m>=1;--m)if(p=d>0?m/i(-d):m*i(d),!(p<u)){if(p>c)break;b.push(p)}b.length*2<y&&(b=Nf(u,c,y))}else b=Nf(d,h,Math.min(h-d,y)).map(i);return f?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Kn(l)).precision==null&&(l.trim=!0),l=qd(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/i(Math.round(a(c)));return f*n<n-.5&&(f*=n),f<=u?l(c):""}},t.nice=()=>r(Sx(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Px(){const e=Fd(Co()).domain([1,10]);return e.copy=()=>ha(e,Px()).base(e.base()),pt.apply(e,arguments),e}function zg(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Wg(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Bd(e){var t=1,r=e(zg(t),Wg(t));return r.constant=function(n){return arguments.length?e(zg(t=+n),Wg(t)):t},mr(r)}function Ox(){var e=Bd(Co());return e.copy=function(){return ha(e,Ox()).constant(e.constant())},pt.apply(e,arguments)}function Ug(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function TN(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function kN(e){return e<0?-e*e:e*e}function zd(e){var t=e(He,He),r=1;function n(){return r===1?e(He,He):r===.5?e(TN,kN):e(Ug(r),Ug(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},mr(t)}function Wd(){var e=zd(Co());return e.copy=function(){return ha(e,Wd()).exponent(e.exponent())},pt.apply(e,arguments),e}function IN(){return Wd.apply(null,arguments).exponent(.5)}function Kg(e){return Math.sign(e)*e*e}function DN(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Cx(){var e=Ld(),t=[0,1],r=!1,n;function a(i){var o=DN(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(Kg(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,wi)).map(Kg)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Cx(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},pt.apply(a,arguments),mr(a)}function jx(){var e=[],t=[],r=[],n;function a(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=uN(e,o/s);return i}function i(o){return o==null||isNaN(o=+o)?n:t[da(r,o)]}return i.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(cr),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return jx().domain(e).range(t).unknown(n)},pt.apply(i,arguments)}function Ax(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(l){return l!=null&&l<=l?a[da(n,l,0,r)]:i}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(a=Array.from(l)).length-1,s()):a.slice()},o.invertExtent=function(l){var u=a.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Ax().domain([e,t]).range(a).unknown(i)},pt.apply(mr(o),arguments)}function Nx(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[da(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Nx().domain(e).range(t).unknown(r)},pt.apply(a,arguments)}const dc=new Date,hc=new Date;function ke(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const l=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return l;let u;do l.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return l},a.filter=i=>ke(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(dc.setTime(+i),hc.setTime(+o),e(dc),e(hc),Math.floor(r(dc,hc))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Pi=ke(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Pi.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ke(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Pi);Pi.range;const Wt=1e3,dt=Wt*60,Ut=dt*60,Ht=Ut*24,Ud=Ht*7,Hg=Ht*30,vc=Ht*365,Ar=ke(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Wt)},(e,t)=>(t-e)/Wt,e=>e.getUTCSeconds());Ar.range;const Kd=ke(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wt)},(e,t)=>{e.setTime(+e+t*dt)},(e,t)=>(t-e)/dt,e=>e.getMinutes());Kd.range;const Hd=ke(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*dt)},(e,t)=>(t-e)/dt,e=>e.getUTCMinutes());Hd.range;const Yd=ke(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wt-e.getMinutes()*dt)},(e,t)=>{e.setTime(+e+t*Ut)},(e,t)=>(t-e)/Ut,e=>e.getHours());Yd.range;const Gd=ke(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ut)},(e,t)=>(t-e)/Ut,e=>e.getUTCHours());Gd.range;const va=ke(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*dt)/Ht,e=>e.getDate()-1);va.range;const jo=ke(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ht,e=>e.getUTCDate()-1);jo.range;const Mx=ke(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ht,e=>Math.floor(e/Ht));Mx.range;function Kr(e){return ke(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*dt)/Ud)}const Ao=Kr(0),Oi=Kr(1),RN=Kr(2),LN=Kr(3),un=Kr(4),$N=Kr(5),qN=Kr(6);Ao.range;Oi.range;RN.range;LN.range;un.range;$N.range;qN.range;function Hr(e){return ke(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Ud)}const No=Hr(0),Ci=Hr(1),FN=Hr(2),BN=Hr(3),cn=Hr(4),zN=Hr(5),WN=Hr(6);No.range;Ci.range;FN.range;BN.range;cn.range;zN.range;WN.range;const Vd=ke(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Vd.range;const Xd=ke(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Xd.range;const Yt=ke(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Yt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ke(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Yt.range;const Gt=ke(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Gt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ke(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Gt.range;function Ex(e,t,r,n,a,i){const o=[[Ar,1,Wt],[Ar,5,5*Wt],[Ar,15,15*Wt],[Ar,30,30*Wt],[i,1,dt],[i,5,5*dt],[i,15,15*dt],[i,30,30*dt],[a,1,Ut],[a,3,3*Ut],[a,6,6*Ut],[a,12,12*Ut],[n,1,Ht],[n,2,2*Ht],[r,1,Ud],[t,1,Hg],[t,3,3*Hg],[e,1,vc]];function s(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const h=f&&typeof f.range=="function"?f:l(u,c,f),m=h?h.range(u,+c+1):[];return d?m.reverse():m}function l(u,c,f){const d=Math.abs(c-u)/f,h=Id(([,,y])=>y).right(o,d);if(h===o.length)return e.every(Ef(u/vc,c/vc,f));if(h===0)return Pi.every(Math.max(Ef(u,c,f),1));const[m,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return m.every(p)}return[s,l]}const[UN,KN]=Ex(Gt,Xd,No,Mx,Gd,Hd),[HN,YN]=Ex(Yt,Vd,Ao,va,Yd,Kd);function mc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function pc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Cn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function GN(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=jn(a),c=An(a),f=jn(i),d=An(i),h=jn(o),m=An(o),p=jn(s),y=An(s),b=jn(l),x=An(l),_={a:R,A:M,b:F,B,c:null,d:Qg,e:Qg,f:gM,g:jM,G:NM,H:vM,I:mM,j:pM,L:Tx,m:yM,M:bM,p:W,q:K,Q:ty,s:ry,S:xM,u:wM,U:_M,V:SM,w:PM,W:OM,x:null,X:null,y:CM,Y:AM,Z:MM,"%":ey},S={a:ee,A:Q,b:re,B:pe,c:null,d:Jg,e:Jg,f:IM,g:UM,G:HM,H:EM,I:TM,j:kM,L:Ix,m:DM,M:RM,p:oe,q:Oe,Q:ty,s:ry,S:LM,u:$M,U:qM,V:FM,w:BM,W:zM,x:null,X:null,y:WM,Y:KM,Z:YM,"%":ey},P={a:T,A:N,b:C,B:k,c:E,d:Xg,e:Xg,f:cM,g:Vg,G:Gg,H:Zg,I:Zg,j:oM,L:uM,m:iM,M:sM,p:A,q:aM,Q:dM,s:hM,S:lM,u:JN,U:eM,V:tM,w:QN,W:rM,x:D,X:q,y:Vg,Y:Gg,Z:nM,"%":fM};_.x=w(r,_),_.X=w(n,_),_.c=w(t,_),S.x=w(r,S),S.X=w(n,S),S.c=w(t,S);function w(L,U){return function(H){var $=[],ce=-1,G=0,V=L.length,X,fe,Ce;for(H instanceof Date||(H=new Date(+H));++ce<V;)L.charCodeAt(ce)===37&&($.push(L.slice(G,ce)),(fe=Yg[X=L.charAt(++ce)])!=null?X=L.charAt(++ce):fe=X==="e"?" ":"0",(Ce=U[X])&&(X=Ce(H,fe)),$.push(X),G=ce+1);return $.push(L.slice(G,ce)),$.join("")}}function O(L,U){return function(H){var $=Cn(1900,void 0,1),ce=j($,L,H+="",0),G,V;if(ce!=H.length)return null;if("Q"in $)return new Date($.Q);if("s"in $)return new Date($.s*1e3+("L"in $?$.L:0));if(U&&!("Z"in $)&&($.Z=0),"p"in $&&($.H=$.H%12+$.p*12),$.m===void 0&&($.m="q"in $?$.q:0),"V"in $){if($.V<1||$.V>53)return null;"w"in $||($.w=1),"Z"in $?(G=pc(Cn($.y,0,1)),V=G.getUTCDay(),G=V>4||V===0?Ci.ceil(G):Ci(G),G=jo.offset(G,($.V-1)*7),$.y=G.getUTCFullYear(),$.m=G.getUTCMonth(),$.d=G.getUTCDate()+($.w+6)%7):(G=mc(Cn($.y,0,1)),V=G.getDay(),G=V>4||V===0?Oi.ceil(G):Oi(G),G=va.offset(G,($.V-1)*7),$.y=G.getFullYear(),$.m=G.getMonth(),$.d=G.getDate()+($.w+6)%7)}else("W"in $||"U"in $)&&("w"in $||($.w="u"in $?$.u%7:"W"in $?1:0),V="Z"in $?pc(Cn($.y,0,1)).getUTCDay():mc(Cn($.y,0,1)).getDay(),$.m=0,$.d="W"in $?($.w+6)%7+$.W*7-(V+5)%7:$.w+$.U*7-(V+6)%7);return"Z"in $?($.H+=$.Z/100|0,$.M+=$.Z%100,pc($)):mc($)}}function j(L,U,H,$){for(var ce=0,G=U.length,V=H.length,X,fe;ce<G;){if($>=V)return-1;if(X=U.charCodeAt(ce++),X===37){if(X=U.charAt(ce++),fe=P[X in Yg?U.charAt(ce++):X],!fe||($=fe(L,H,$))<0)return-1}else if(X!=H.charCodeAt($++))return-1}return $}function A(L,U,H){var $=u.exec(U.slice(H));return $?(L.p=c.get($[0].toLowerCase()),H+$[0].length):-1}function T(L,U,H){var $=h.exec(U.slice(H));return $?(L.w=m.get($[0].toLowerCase()),H+$[0].length):-1}function N(L,U,H){var $=f.exec(U.slice(H));return $?(L.w=d.get($[0].toLowerCase()),H+$[0].length):-1}function C(L,U,H){var $=b.exec(U.slice(H));return $?(L.m=x.get($[0].toLowerCase()),H+$[0].length):-1}function k(L,U,H){var $=p.exec(U.slice(H));return $?(L.m=y.get($[0].toLowerCase()),H+$[0].length):-1}function E(L,U,H){return j(L,t,U,H)}function D(L,U,H){return j(L,r,U,H)}function q(L,U,H){return j(L,n,U,H)}function R(L){return o[L.getDay()]}function M(L){return i[L.getDay()]}function F(L){return l[L.getMonth()]}function B(L){return s[L.getMonth()]}function W(L){return a[+(L.getHours()>=12)]}function K(L){return 1+~~(L.getMonth()/3)}function ee(L){return o[L.getUTCDay()]}function Q(L){return i[L.getUTCDay()]}function re(L){return l[L.getUTCMonth()]}function pe(L){return s[L.getUTCMonth()]}function oe(L){return a[+(L.getUTCHours()>=12)]}function Oe(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var U=w(L+="",_);return U.toString=function(){return L},U},parse:function(L){var U=O(L+="",!1);return U.toString=function(){return L},U},utcFormat:function(L){var U=w(L+="",S);return U.toString=function(){return L},U},utcParse:function(L){var U=O(L+="",!0);return U.toString=function(){return L},U}}}var Yg={"-":"",_:" ",0:"0"},$e=/^\s*\d+/,VN=/^%/,XN=/[\\^$*+?|[\]().{}]/g;function te(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)}function ZN(e){return e.replace(XN,"\\$&")}function jn(e){return new RegExp("^(?:"+e.map(ZN).join("|")+")","i")}function An(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function QN(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function JN(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function eM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function tM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function rM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Gg(e,t,r){var n=$e.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Vg(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nM(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function aM(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function iM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Xg(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function oM(e,t,r){var n=$e.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Zg(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function sM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function uM(e,t,r){var n=$e.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function cM(e,t,r){var n=$e.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function fM(e,t,r){var n=VN.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function dM(e,t,r){var n=$e.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function hM(e,t,r){var n=$e.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Qg(e,t){return te(e.getDate(),t,2)}function vM(e,t){return te(e.getHours(),t,2)}function mM(e,t){return te(e.getHours()%12||12,t,2)}function pM(e,t){return te(1+va.count(Yt(e),e),t,3)}function Tx(e,t){return te(e.getMilliseconds(),t,3)}function gM(e,t){return Tx(e,t)+"000"}function yM(e,t){return te(e.getMonth()+1,t,2)}function bM(e,t){return te(e.getMinutes(),t,2)}function xM(e,t){return te(e.getSeconds(),t,2)}function wM(e){var t=e.getDay();return t===0?7:t}function _M(e,t){return te(Ao.count(Yt(e)-1,e),t,2)}function kx(e){var t=e.getDay();return t>=4||t===0?un(e):un.ceil(e)}function SM(e,t){return e=kx(e),te(un.count(Yt(e),e)+(Yt(e).getDay()===4),t,2)}function PM(e){return e.getDay()}function OM(e,t){return te(Oi.count(Yt(e)-1,e),t,2)}function CM(e,t){return te(e.getFullYear()%100,t,2)}function jM(e,t){return e=kx(e),te(e.getFullYear()%100,t,2)}function AM(e,t){return te(e.getFullYear()%1e4,t,4)}function NM(e,t){var r=e.getDay();return e=r>=4||r===0?un(e):un.ceil(e),te(e.getFullYear()%1e4,t,4)}function MM(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+te(t/60|0,"0",2)+te(t%60,"0",2)}function Jg(e,t){return te(e.getUTCDate(),t,2)}function EM(e,t){return te(e.getUTCHours(),t,2)}function TM(e,t){return te(e.getUTCHours()%12||12,t,2)}function kM(e,t){return te(1+jo.count(Gt(e),e),t,3)}function Ix(e,t){return te(e.getUTCMilliseconds(),t,3)}function IM(e,t){return Ix(e,t)+"000"}function DM(e,t){return te(e.getUTCMonth()+1,t,2)}function RM(e,t){return te(e.getUTCMinutes(),t,2)}function LM(e,t){return te(e.getUTCSeconds(),t,2)}function $M(e){var t=e.getUTCDay();return t===0?7:t}function qM(e,t){return te(No.count(Gt(e)-1,e),t,2)}function Dx(e){var t=e.getUTCDay();return t>=4||t===0?cn(e):cn.ceil(e)}function FM(e,t){return e=Dx(e),te(cn.count(Gt(e),e)+(Gt(e).getUTCDay()===4),t,2)}function BM(e){return e.getUTCDay()}function zM(e,t){return te(Ci.count(Gt(e)-1,e),t,2)}function WM(e,t){return te(e.getUTCFullYear()%100,t,2)}function UM(e,t){return e=Dx(e),te(e.getUTCFullYear()%100,t,2)}function KM(e,t){return te(e.getUTCFullYear()%1e4,t,4)}function HM(e,t){var r=e.getUTCDay();return e=r>=4||r===0?cn(e):cn.ceil(e),te(e.getUTCFullYear()%1e4,t,4)}function YM(){return"+0000"}function ey(){return"%"}function ty(e){return+e}function ry(e){return Math.floor(+e/1e3)}var Zr,Rx,Lx;GM({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function GM(e){return Zr=GN(e),Rx=Zr.format,Zr.parse,Lx=Zr.utcFormat,Zr.utcParse,Zr}function VM(e){return new Date(e)}function XM(e){return e instanceof Date?+e:+new Date(+e)}function Zd(e,t,r,n,a,i,o,s,l,u){var c=Ld(),f=c.invert,d=c.domain,h=u(".%L"),m=u(":%S"),p=u("%I:%M"),y=u("%I %p"),b=u("%a %d"),x=u("%b %d"),_=u("%B"),S=u("%Y");function P(w){return(l(w)<w?h:s(w)<w?m:o(w)<w?p:i(w)<w?y:n(w)<w?a(w)<w?b:x:r(w)<w?_:S)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?d(Array.from(w,XM)):d().map(VM)},c.ticks=function(w){var O=d();return e(O[0],O[O.length-1],w??10)},c.tickFormat=function(w,O){return O==null?P:u(O)},c.nice=function(w){var O=d();return(!w||typeof w.range!="function")&&(w=t(O[0],O[O.length-1],w??10)),w?d(Sx(O,w)):c},c.copy=function(){return ha(c,Zd(e,t,r,n,a,i,o,s,l,u))},c}function ZM(){return pt.apply(Zd(HN,YN,Yt,Vd,Ao,va,Yd,Kd,Ar,Rx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function QM(){return pt.apply(Zd(UN,KN,Gt,Xd,No,jo,Gd,Hd,Ar,Lx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Mo(){var e=0,t=1,r,n,a,i,o=He,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:o(a===0?.5:(f=(i(f)-r)*a,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=i(e=+e),n=i(t=+t),a=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(d){var h,m;return arguments.length?([h,m]=d,o=f(h,m),u):[o(0),o(1)]}}return u.range=c(mo),u.rangeRound=c(gd),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return i=f,r=f(e),n=f(t),a=r===n?0:1/(n-r),u}}function pr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function $x(){var e=mr(Mo()(He));return e.copy=function(){return pr(e,$x())},Jt.apply(e,arguments)}function qx(){var e=Fd(Mo()).domain([1,10]);return e.copy=function(){return pr(e,qx()).base(e.base())},Jt.apply(e,arguments)}function Fx(){var e=Bd(Mo());return e.copy=function(){return pr(e,Fx()).constant(e.constant())},Jt.apply(e,arguments)}function Qd(){var e=zd(Mo());return e.copy=function(){return pr(e,Qd()).exponent(e.exponent())},Jt.apply(e,arguments)}function JM(){return Qd.apply(null,arguments).exponent(.5)}function Bx(){var e=[],t=He;function r(n){if(n!=null&&!isNaN(n=+n))return t((da(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(cr),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>lN(e,i/n))},r.copy=function(){return Bx(t).domain(e)},Jt.apply(r,arguments)}function Eo(){var e=0,t=.5,r=1,n=1,a,i,o,s,l,u=He,c,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+c(p))-i)*(n*p<n*i?s:l),u(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,a=c(e=+e),i=c(t=+t),o=c(r=+r),s=a===i?0:.5/(i-a),l=i===o?0:.5/(o-i),n=i<a?-1:1,h):[e,t,r]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(u=p,h):u};function m(p){return function(y){var b,x,_;return arguments.length?([b,x,_]=y,u=tC(p,[b,x,_]),h):[u(0),u(.5),u(1)]}}return h.range=m(mo),h.rangeRound=m(gd),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return c=p,a=p(e),i=p(t),o=p(r),s=a===i?0:.5/(i-a),l=i===o?0:.5/(o-i),n=i<a?-1:1,h}}function zx(){var e=mr(Eo()(He));return e.copy=function(){return pr(e,zx())},Jt.apply(e,arguments)}function Wx(){var e=Fd(Eo()).domain([.1,1,10]);return e.copy=function(){return pr(e,Wx()).base(e.base())},Jt.apply(e,arguments)}function Ux(){var e=Bd(Eo());return e.copy=function(){return pr(e,Ux()).constant(e.constant())},Jt.apply(e,arguments)}function Jd(){var e=zd(Eo());return e.copy=function(){return pr(e,Jd()).exponent(e.exponent())},Jt.apply(e,arguments)}function eE(){return Jd.apply(null,arguments).exponent(.5)}var yn=1e9,tE={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},th,be=!0,vt="[DecimalError] ",Er=vt+"Invalid argument: ",eh=vt+"Exponent out of range: ",bn=Math.floor,Pr=Math.pow,rE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,rt,Le=1e7,ge=7,Kx=9007199254740991,ji=bn(Kx/ge),z={};z.absoluteValue=z.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};z.comparedTo=z.cmp=function(e){var t,r,n,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=n<a?n:a;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};z.decimalPlaces=z.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ge;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};z.dividedBy=z.div=function(e){return Kt(this,new this.constructor(e))};z.dividedToIntegerBy=z.idiv=function(e){var t=this,r=t.constructor;return de(Kt(t,new r(e),0,1),r.precision)};z.equals=z.eq=function(e){return!this.cmp(e)};z.exponent=function(){return Ae(this)};z.greaterThan=z.gt=function(e){return this.cmp(e)>0};z.greaterThanOrEqualTo=z.gte=function(e){return this.cmp(e)>=0};z.isInteger=z.isint=function(){return this.e>this.d.length-2};z.isNegative=z.isneg=function(){return this.s<0};z.isPositive=z.ispos=function(){return this.s>0};z.isZero=function(){return this.s===0};z.lessThan=z.lt=function(e){return this.cmp(e)<0};z.lessThanOrEqualTo=z.lte=function(e){return this.cmp(e)<1};z.logarithm=z.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(rt))throw Error(vt+"NaN");if(r.s<1)throw Error(vt+(r.s?"NaN":"-Infinity"));return r.eq(rt)?new n(0):(be=!1,t=Kt(Hn(r,i),Hn(e,i),i),be=!0,de(t,a))};z.minus=z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Gx(t,e):Hx(t,(e.s=-e.s,e))};z.modulo=z.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(vt+"NaN");return r.s?(be=!1,t=Kt(r,e,0,1).times(e),be=!0,r.minus(t)):de(new n(r),a)};z.naturalExponential=z.exp=function(){return Yx(this)};z.naturalLogarithm=z.ln=function(){return Hn(this)};z.negated=z.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};z.plus=z.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Hx(t,e):Gx(t,(e.s=-e.s,e))};z.precision=z.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Er+e);if(t=Ae(a)+1,n=a.d.length-1,r=n*ge+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};z.squareRoot=z.sqrt=function(){var e,t,r,n,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(vt+"NaN")}for(e=Ae(s),be=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=Et(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=bn((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(a.toString()),r=l.precision,a=o=r+3;;)if(i=n,n=i.plus(Kt(s,i,o+2)).times(.5),Et(i.d).slice(0,o)===(t=Et(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(de(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return be=!0,de(n,r)};z.times=z.mul=function(e){var t,r,n,a,i,o,s,l,u,c=this,f=c.constructor,d=c.d,h=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,u=h.length,l<u&&(i=d,d=h,h=i,o=l,l=u,u=o),i=[],o=l+u,n=o;n--;)i.push(0);for(n=u;--n>=0;){for(t=0,a=l+n;a>n;)s=i[a]+h[n]*d[a-n-1]+t,i[a--]=s%Le|0,t=s/Le|0;i[a]=(i[a]+t)%Le|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,be?de(e,f.precision):e};z.toDecimalPlaces=z.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(It(e,0,yn),t===void 0?t=n.rounding:It(t,0,8),de(r,e+Ae(r)+1,t))};z.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=Ir(n,!0):(It(e,0,yn),t===void 0?t=a.rounding:It(t,0,8),n=de(new a(n),e+1,t),r=Ir(n,!0,e+1)),r};z.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?Ir(a):(It(e,0,yn),t===void 0?t=i.rounding:It(t,0,8),n=de(new i(a),e+Ae(a)+1,t),r=Ir(n.abs(),!1,e+Ae(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};z.toInteger=z.toint=function(){var e=this,t=e.constructor;return de(new t(e),Ae(e)+1,t.rounding)};z.toNumber=function(){return+this};z.toPower=z.pow=function(e){var t,r,n,a,i,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(rt);if(s=new l(s),!s.s){if(e.s<1)throw Error(vt+"Infinity");return s}if(s.eq(rt))return s;if(n=l.precision,e.eq(rt))return de(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=c<0?-c:c)<=Kx){for(a=new l(rt),t=Math.ceil(n/ge+4),be=!1;r%2&&(a=a.times(s),ay(a.d,t)),r=bn(r/2),r!==0;)s=s.times(s),ay(s.d,t);return be=!0,e.s<0?new l(rt).div(a):de(a,n)}}else if(i<0)throw Error(vt+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,be=!1,a=e.times(Hn(s,n+u)),be=!0,a=Yx(a),a.s=i,a};z.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=Ae(a),n=Ir(a,r<=i.toExpNeg||r>=i.toExpPos)):(It(e,1,yn),t===void 0?t=i.rounding:It(t,0,8),a=de(new i(a),e,t),r=Ae(a),n=Ir(a,e<=r||r<=i.toExpNeg,e)),n};z.toSignificantDigits=z.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(It(e,1,yn),t===void 0?t=n.rounding:It(t,0,8)),de(new n(r),e,t)};z.toString=z.valueOf=z.val=z.toJSON=z[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ae(e),r=e.constructor;return Ir(e,t<=r.toExpNeg||t>=r.toExpPos)};function Hx(e,t){var r,n,a,i,o,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),be?de(t,f):t;if(l=e.d,u=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(n=l,i=-i,s=u.length):(n=u,a=o,s=l.length),o=Math.ceil(f/ge),s=o>s?o+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=u.length,s-i<0&&(i=s,n=u,u=l,l=n),r=0;i;)r=(l[--i]=l[i]+u[i]+r)/Le|0,l[i]%=Le;for(r&&(l.unshift(r),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,be?de(t,f):t}function It(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Er+e)}function Et(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;t<a;t++)n=e[t]+"",r=ge-n.length,r&&(i+=sr(r)),i+=n;o=e[t],n=o+"",r=ge-n.length,r&&(i+=sr(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var Kt=(function(){function e(n,a){var i,o=0,s=n.length;for(n=n.slice();s--;)i=n[s]*a+o,n[s]=i%Le|0,o=i/Le|0;return o&&n.unshift(o),n}function t(n,a,i,o){var s,l;if(i!=o)l=i>o?1:-1;else for(s=l=0;s<i;s++)if(n[s]!=a[s]){l=n[s]>a[s]?1:-1;break}return l}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]<a[i]?1:0,n[i]=o*Le+n[i]-a[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,a,i,o){var s,l,u,c,f,d,h,m,p,y,b,x,_,S,P,w,O,j,A=n.constructor,T=n.s==a.s?1:-1,N=n.d,C=a.d;if(!n.s)return new A(n);if(!a.s)throw Error(vt+"Division by zero");for(l=n.e-a.e,O=C.length,P=N.length,h=new A(T),m=h.d=[],u=0;C[u]==(N[u]||0);)++u;if(C[u]>(N[u]||0)&&--l,i==null?x=i=A.precision:o?x=i+(Ae(n)-Ae(a))+1:x=i,x<0)return new A(0);if(x=x/ge+2|0,u=0,O==1)for(c=0,C=C[0],x++;(u<P||c)&&x--;u++)_=c*Le+(N[u]||0),m[u]=_/C|0,c=_%C|0;else{for(c=Le/(C[0]+1)|0,c>1&&(C=e(C,c),N=e(N,c),O=C.length,P=N.length),S=O,p=N.slice(0,O),y=p.length;y<O;)p[y++]=0;j=C.slice(),j.unshift(0),w=C[0],C[1]>=Le/2&&++w;do c=0,s=t(C,p,O,y),s<0?(b=p[0],O!=y&&(b=b*Le+(p[1]||0)),c=b/w|0,c>1?(c>=Le&&(c=Le-1),f=e(C,c),d=f.length,y=p.length,s=t(f,p,d,y),s==1&&(c--,r(f,O<d?j:C,d))):(c==0&&(s=c=1),f=C.slice()),d=f.length,d<y&&f.unshift(0),r(p,f,y),s==-1&&(y=p.length,s=t(C,p,O,y),s<1&&(c++,r(p,O<y?j:C,y))),y=p.length):s===0&&(c++,p=[0]),m[u++]=c,s&&p[0]?p[y++]=N[S]||0:(p=[N[S]],y=1);while((S++<P||p[0]!==void 0)&&x--)}return m[0]||m.shift(),h.e=l,de(h,o?i+Ae(h)+1:i)}})();function Yx(e,t){var r,n,a,i,o,s,l=0,u=0,c=e.constructor,f=c.precision;if(Ae(e)>16)throw Error(eh+Ae(e));if(!e.s)return new c(rt);for(be=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Pr(2,u))/Math.LN10*2+5|0,s+=n,r=a=i=new c(rt),c.precision=s;;){if(a=de(a.times(e),s),r=r.times(++l),o=i.plus(Kt(a,r,s)),Et(o.d).slice(0,s)===Et(i.d).slice(0,s)){for(;u--;)i=de(i.times(i),s);return c.precision=f,t==null?(be=!0,de(i,f)):i}i=o}}function Ae(e){for(var t=e.e*ge,r=e.d[0];r>=10;r/=10)t++;return t}function gc(e,t,r){if(t>e.LN10.sd())throw be=!0,r&&(e.precision=r),Error(vt+"LN10 precision limit exceeded");return de(new e(e.LN10),t)}function sr(e){for(var t="";e--;)t+="0";return t}function Hn(e,t){var r,n,a,i,o,s,l,u,c,f=1,d=10,h=e,m=h.d,p=h.constructor,y=p.precision;if(h.s<1)throw Error(vt+(h.s?"NaN":"-Infinity"));if(h.eq(rt))return new p(0);if(t==null?(be=!1,u=y):u=t,h.eq(10))return t==null&&(be=!0),gc(p,u);if(u+=d,p.precision=u,r=Et(m),n=r.charAt(0),i=Ae(h),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Et(h.d),n=r.charAt(0),f++;i=Ae(h),n>1?(h=new p("0."+r),i++):h=new p(n+"."+r.slice(1))}else return l=gc(p,u+2,y).times(i+""),h=Hn(new p(n+"."+r.slice(1)),u-d).plus(l),p.precision=y,t==null?(be=!0,de(h,y)):h;for(s=o=h=Kt(h.minus(rt),h.plus(rt),u),c=de(h.times(h),u),a=3;;){if(o=de(o.times(c),u),l=s.plus(Kt(o,new p(a),u)),Et(l.d).slice(0,u)===Et(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus(gc(p,u+2,y).times(i+""))),s=Kt(s,new p(f),u),p.precision=y,t==null?(be=!0,de(s,y)):s;s=l,a+=2}}function ny(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=bn(r/ge),e.d=[],n=(r+1)%ge,r<0&&(n+=ge),n<a){for(n&&e.d.push(+t.slice(0,n)),a-=ge;n<a;)e.d.push(+t.slice(n,n+=ge));t=t.slice(n),n=ge-t.length}else n-=a;for(;n--;)t+="0";if(e.d.push(+t),be&&(e.e>ji||e.e<-ji))throw Error(eh+r)}else e.s=0,e.e=0,e.d=[0];return e}function de(e,t,r){var n,a,i,o,s,l,u,c,f=e.d;for(o=1,i=f[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=ge,a=t,u=f[c=0];else{if(c=Math.ceil((n+1)/ge),i=f.length,c>=i)return e;for(u=i=f[c],o=1;i>=10;i/=10)o++;n%=ge,a=n-ge+o}if(r!==void 0&&(i=Pr(10,o-a-1),s=u/i%10|0,l=t<0||f[c+1]!==void 0||u%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?a>0?u/Pr(10,o-a):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(i=Ae(e),f.length=1,t=t-i-1,f[0]=Pr(10,(ge-t%ge)%ge),e.e=bn(-t/ge)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,i=1,c--):(f.length=c+1,i=Pr(10,ge-n),f[c]=a>0?(u/Pr(10,o-a)%Pr(10,a)|0)*i:0),l)for(;;)if(c==0){(f[0]+=i)==Le&&(f[0]=1,++e.e);break}else{if(f[c]+=i,f[c]!=Le)break;f[c--]=0,i=1}for(n=f.length;f[--n]===0;)f.pop();if(be&&(e.e>ji||e.e<-ji))throw Error(eh+Ae(e));return e}function Gx(e,t){var r,n,a,i,o,s,l,u,c,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),be?de(t,h):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(c=o<0,c?(r=l,o=-o,s=f.length):(r=f,n=u,s=l.length),a=Math.max(Math.ceil(h/ge),s)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=l.length,s=f.length,c=a<s,c&&(s=a),a=0;a<s;a++)if(l[a]!=f[a]){c=l[a]<f[a];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,a=f.length-s;a>0;--a)l[s++]=0;for(a=f.length;a>o;){if(l[--a]<f[a]){for(i=a;i&&l[--i]===0;)l[i]=Le-1;--l[i],l[a]+=Le}l[a]-=f[a]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,be?de(t,h):t):new d(0)}function Ir(e,t,r){var n,a=Ae(e),i=Et(e.d),o=i.length;return t?(r&&(n=r-o)>0?i=i.charAt(0)+"."+i.slice(1)+sr(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+sr(-a-1)+i,r&&(n=r-o)>0&&(i+=sr(n))):a>=o?(i+=sr(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+sr(n))):((n=a+1)<o&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-o)>0&&(a+1===o&&(i+="."),i+=sr(n))),e.s<0?"-"+i:i}function ay(e,t){if(e.length>t)return e.length=t,!0}function Vx(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Er+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return ny(o,i.toString())}else if(typeof i!="string")throw Error(Er+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,rE.test(i))ny(o,i);else throw Error(Er+i)}if(a.prototype=z,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=Vx,a.config=a.set=nE,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return a.config(e),a}function nE(e){if(!e||typeof e!="object")throw Error(vt+"Object expected");var t,r,n,a=["precision",1,yn,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((n=e[r=a[t]])!==void 0)if(bn(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(Er+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Er+r+": "+n);return this}var th=Vx(tE);rt=new th(1);const le=th,aE={light:"",dark:".dark"},Xx=g.createContext(null);function iE(){const e=g.useContext(Xx);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}function Zx(e){const t=ae.c(28);let r,n,a,i,o;t[0]!==e?({id:i,className:n,children:r,config:a,...o}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=o):(r=t[1],n=t[2],a=t[3],i=t[4],o=t[5]);const s=g.useId();let l;t[6]!==i||t[7]!==s?(l=i||s.replace(/:/g,""),t[6]=i,t[7]=s,t[8]=l):l=t[8];const u=`chart-${l}`;let c;t[9]!==a?(c={config:a},t[9]=a,t[10]=c):c=t[10];let f;t[11]!==n?(f=ve("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",n),t[11]=n,t[12]=f):f=t[12];let d;t[13]!==u||t[14]!==a?(d=v.jsx(oE,{id:u,config:a}),t[13]=u,t[14]=a,t[15]=d):d=t[15];let h;t[16]===Symbol.for("react.memo_cache_sentinel")?(h={width:240,height:180},t[16]=h):h=t[16];let m;t[17]!==r?(m=v.jsx(X2,{initialDimension:h,children:r}),t[17]=r,t[18]=m):m=t[18];let p;t[19]!==u||t[20]!==o||t[21]!==f||t[22]!==d||t[23]!==m?(p=v.jsxs("div",{"data-slot":"chart","data-chart":u,className:f,...o,children:[d,m]}),t[19]=u,t[20]=o,t[21]=f,t[22]=d,t[23]=m,t[24]=p):p=t[24];let y;return t[25]!==c||t[26]!==p?(y=v.jsx(Xx.Provider,{value:c,children:p}),t[25]=c,t[26]=p,t[27]=y):y=t[27],y}const oE=e=>{const t=ae.c(8),{id:r,config:n}=e;let a;t[0]!==n?(a=Object.entries(n).filter(lE),t[0]=n,t[1]=a):a=t[1];const i=a;if(!i.length)return null;let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=Object.entries(aE),t[2]=o):o=t[2];let s;t[3]!==i||t[4]!==r?(s=o.map(c=>{const[f,d]=c;return`
|
|
12
12
|
${d} [data-chart=${r}] {
|
|
13
13
|
${i.map(h=>{const[m,p]=h,y=p.theme?.[f]||p.color;return y?` --color-${m}: ${y};`:null}).join(`
|
|
14
14
|
`)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as e}from"./index-
|
|
1
|
+
import{r as i,j as e}from"./index-ZiFjEqyT.js";import{i as n}from"./Loading01-Bq_7Os6T.js";import{h as l}from"./mcp-oauth-D8a9d38x.js";function h(){const[s,c]=i.useState(null),[r,a]=i.useState(!1);return i.useEffect(()=>{(async()=>{try{const t=await l();if(!t.success){c(t.error||"MCP authentication failed"),setTimeout(()=>{window.close()},3e3);return}a(!0),setTimeout(()=>{window.close()},1500)}catch(t){c(t instanceof Error?t.message:String(t)),setTimeout(()=>{window.close()},3e3)}})()},[]),e.jsx("div",{className:"min-h-screen flex items-center justify-center p-8 bg-background",children:e.jsxs("div",{className:"w-full max-w-md flex flex-col items-center justify-center gap-8",children:[r&&e.jsx("img",{src:"/empty-state-success.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),!r&&!s&&e.jsx("div",{className:"flex items-center justify-center py-4",children:e.jsx(n,{size:32,className:"animate-spin text-primary"})}),s&&e.jsx("img",{src:"/empty-state-error.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),e.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[e.jsx("h2",{className:"text-lg font-medium text-foreground",children:s?"Authentication Failed":r?"Authentication Successful":"Authentication in progress..."}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"mb-2",children:"An error occurred during authentication:"}),e.jsx("p",{className:"text-destructive",children:s}),e.jsxs("p",{className:"mt-2",children:[e.jsx("br",{}),"This window will close automatically."]})]}):r?e.jsxs("p",{children:["Authentication complete.",e.jsx("br",{}),"This window will close automatically."]}):e.jsx("p",{children:"Processing authentication..."})})]})]})})}export{h as default};
|