From c8369c74013156d7488e3e746403ff60f86a3ac7 Mon Sep 17 00:00:00 2001 From: Aaron Knudtson <87577305+knudtty@users.noreply.github.com> Date: Fri, 20 Feb 2026 15:26:16 -0500 Subject: [PATCH 1/3] fix: new clickstack with credentials omit --- HYPERDX_VERSION | 2 +- out/404.html | 2 +- out/__ENV.js | 2 +- .../bJUcvHuOORKnvj_dzLe4n/_buildManifest.js | 1 + .../_ssgManifest.js | 0 ...3506100d9d.js => 1021-19b5b93c0d7cad66.js} | 4 +- .../static/chunks/1274-aef343c4656bbdfc.js | 1 - ...0d6ac78e10.js => 2814-582aced4e4547c8b.js} | 2 +- .../static/chunks/3172-55e9e00f8671199d.js | 1 + .../static/chunks/3172-b6490fb55ce08c1c.js | 1 - .../static/chunks/3234-5a2bee69ca80ca94.js | 5 + .../static/chunks/3234-91be2b1b16b8a12e.js | 5 - .../static/chunks/35-38880205eb57367e.js | 1 + .../static/chunks/35-9a2c3aba3b13971b.js | 1 - ...6b02cd025a.js => 6514-457be65adbe54e27.js} | 2 +- ...292f0acaac.js => 6747-db295e4482b5a6a1.js} | 4 +- .../static/chunks/8718-bf1c48cf4b5b7714.js | 1 + .../static/chunks/9979-07c2d4f838abbdd7.js | 4 + .../static/chunks/9979-25cce956b8228ba9.js | 4 - .../chunks/pages/_app-35c9ed614de0b91d.js | 31 ++++++ .../chunks/pages/_app-ffdb6c1cb1648170.js | 31 ------ .../chunks/pages/alerts-9147fb3cf82ff9d8.js | 1 + .../chunks/pages/alerts-bd7f41cff62f8d10.js | 1 - ...8fa71.js => benchmark-c327c802cb73c769.js} | 2 +- .../chunks/pages/chart-35295dad1f8a0721.js | 104 ------------------ .../chunks/pages/chart-d1582e6a8b91e931.js | 104 ++++++++++++++++++ .../pages/clickhouse-6683816e115349a8.js | 64 ----------- .../pages/clickhouse-f1625966d7c92b25.js | 64 +++++++++++ .../pages/dashboards-a851e5138fe17593.js | 104 ++++++++++++++++++ .../pages/dashboards-dc7f01f16edc5bbb.js | 104 ------------------ .../[dashboardId]-83bf90b056623488.js | 104 ------------------ .../[dashboardId]-995c0ae3cdee3f87.js | 104 ++++++++++++++++++ .../dashboards/import-1f4db483506493fe.js | 1 + .../dashboards/import-814aff4bf2a0b7c5.js | 1 - ...8b8d7131b.js => index-127844045860c39b.js} | 2 +- .../pages/join-team-74e007c50e7bc44c.js | 1 - .../pages/join-team-fa75e338137d5218.js | 1 + .../pages/kubernetes-456377648cf36bba.js | 64 ----------- .../pages/kubernetes-a8cc2459c9714a23.js | 64 +++++++++++ .../chunks/pages/search-899ebd0411f46f33.js | 81 ++++++++++++++ .../chunks/pages/search-ffeb30ea5a7baf27.js | 81 -------------- .../[savedSearchId]-4c490b12671d0c20.js | 81 ++++++++++++++ .../[savedSearchId]-555abbf86f300d96.js | 81 -------------- ...3ce.js => service-map-99b4692648e59c41.js} | 2 +- .../chunks/pages/services-56c542cb661daed6.js | 98 ----------------- .../chunks/pages/services-835f7281d9395a29.js | 98 +++++++++++++++++ .../chunks/pages/sessions-57832d098fb35345.js | 64 +++++++++++ .../chunks/pages/sessions-acea943c26d1ae60.js | 64 ----------- .../chunks/pages/team-2720ea0afbc2aca5.js | 18 --- .../chunks/pages/team-70bf1ca4245ae535.js | 18 +++ ...18700e9fc7086.css => f8920d9971b4c4aa.css} | 2 +- .../static/media/001f750b538f7a9e-s.woff2 | Bin 0 -> 31472 bytes .../static/media/1a634e73dfeff02c-s.woff2 | Bin 0 -> 24444 bytes .../static/media/1e41be92c43b3255-s.p.woff2 | Bin 0 -> 37520 bytes .../static/media/24c15609eaa28576-s.woff2 | Bin 18852 -> 0 bytes .../static/media/2c07349e02a7b712-s.woff2 | Bin 21440 -> 0 bytes .../static/media/4120b0a488381b31-s.woff2 | Bin 0 -> 10572 bytes .../static/media/456105d6ea6d39e0-s.woff2 | Bin 30416 -> 0 bytes .../static/media/47cbc4e2adbc5db9-s.p.woff2 | Bin 34668 -> 0 bytes .../static/media/4f48fe9100901594-s.woff2 | Bin 0 -> 13984 bytes .../static/media/4f77bef990aad698-s.woff2 | Bin 9276 -> 0 bytes .../static/media/5eae37b69937655e-s.woff2 | Bin 0 -> 1632 bytes .../static/media/627d916fd739a539-s.woff2 | Bin 16548 -> 0 bytes .../static/media/63b255f18bea0ca9-s.woff2 | Bin 14052 -> 0 bytes .../static/media/70bd82ac89b4fa42-s.woff2 | Bin 35600 -> 0 bytes .../static/media/80841ae24d03ed90-s.woff2 | Bin 0 -> 19624 bytes .../static/media/84602850c8fd81c3-s.woff2 | Bin 1580 -> 0 bytes .../static/media/970d71e7dcbc144d-s.woff2 | Bin 0 -> 36292 bytes .../static/media/b3f718d64f9a6dea-s.woff2 | Bin 0 -> 16692 bytes .../oBTf4Pdf4H7G1UBWfzX4O/_buildManifest.js | 1 - out/alerts.html | 2 +- out/benchmark.html | 2 +- out/chart.html | 2 +- out/clickhouse.html | 2 +- out/dashboards.html | 2 +- out/dashboards/[dashboardId].html | 2 +- out/dashboards/import.html | 2 +- out/favicons/clickstack/favicon.svg | 32 +++--- out/index.html | 2 +- out/join-team.html | 2 +- out/kubernetes.html | 2 +- out/login.html | 2 +- out/register.html | 2 +- out/search.html | 2 +- out/search/[savedSearchId].html | 2 +- out/service-map.html | 2 +- out/services.html | 2 +- out/sessions.html | 2 +- out/team.html | 2 +- 89 files changed, 875 insertions(+), 877 deletions(-) create mode 100644 out/_next/static/bJUcvHuOORKnvj_dzLe4n/_buildManifest.js rename out/_next/static/{oBTf4Pdf4H7G1UBWfzX4O => bJUcvHuOORKnvj_dzLe4n}/_ssgManifest.js (100%) rename out/_next/static/chunks/{1021-663a6b3506100d9d.js => 1021-19b5b93c0d7cad66.js} (57%) delete mode 100644 out/_next/static/chunks/1274-aef343c4656bbdfc.js rename out/_next/static/chunks/{1626-de51610d6ac78e10.js => 2814-582aced4e4547c8b.js} (83%) create mode 100644 out/_next/static/chunks/3172-55e9e00f8671199d.js delete mode 100644 out/_next/static/chunks/3172-b6490fb55ce08c1c.js create mode 100644 out/_next/static/chunks/3234-5a2bee69ca80ca94.js delete mode 100644 out/_next/static/chunks/3234-91be2b1b16b8a12e.js create mode 100644 out/_next/static/chunks/35-38880205eb57367e.js delete mode 100644 out/_next/static/chunks/35-9a2c3aba3b13971b.js rename out/_next/static/chunks/{6514-9ab29f6b02cd025a.js => 6514-457be65adbe54e27.js} (60%) rename out/_next/static/chunks/{3999-487ca1292f0acaac.js => 6747-db295e4482b5a6a1.js} (79%) create mode 100644 out/_next/static/chunks/8718-bf1c48cf4b5b7714.js create mode 100644 out/_next/static/chunks/9979-07c2d4f838abbdd7.js delete mode 100644 out/_next/static/chunks/9979-25cce956b8228ba9.js create mode 100644 out/_next/static/chunks/pages/_app-35c9ed614de0b91d.js delete mode 100644 out/_next/static/chunks/pages/_app-ffdb6c1cb1648170.js create mode 100644 out/_next/static/chunks/pages/alerts-9147fb3cf82ff9d8.js delete mode 100644 out/_next/static/chunks/pages/alerts-bd7f41cff62f8d10.js rename out/_next/static/chunks/pages/{benchmark-73496ad610b8fa71.js => benchmark-c327c802cb73c769.js} (64%) delete mode 100644 out/_next/static/chunks/pages/chart-35295dad1f8a0721.js create mode 100644 out/_next/static/chunks/pages/chart-d1582e6a8b91e931.js delete mode 100644 out/_next/static/chunks/pages/clickhouse-6683816e115349a8.js create mode 100644 out/_next/static/chunks/pages/clickhouse-f1625966d7c92b25.js create mode 100644 out/_next/static/chunks/pages/dashboards-a851e5138fe17593.js delete mode 100644 out/_next/static/chunks/pages/dashboards-dc7f01f16edc5bbb.js delete mode 100644 out/_next/static/chunks/pages/dashboards/[dashboardId]-83bf90b056623488.js create mode 100644 out/_next/static/chunks/pages/dashboards/[dashboardId]-995c0ae3cdee3f87.js create mode 100644 out/_next/static/chunks/pages/dashboards/import-1f4db483506493fe.js delete mode 100644 out/_next/static/chunks/pages/dashboards/import-814aff4bf2a0b7c5.js rename out/_next/static/chunks/pages/{index-a65a2b78b8d7131b.js => index-127844045860c39b.js} (77%) delete mode 100644 out/_next/static/chunks/pages/join-team-74e007c50e7bc44c.js create mode 100644 out/_next/static/chunks/pages/join-team-fa75e338137d5218.js delete mode 100644 out/_next/static/chunks/pages/kubernetes-456377648cf36bba.js create mode 100644 out/_next/static/chunks/pages/kubernetes-a8cc2459c9714a23.js create mode 100644 out/_next/static/chunks/pages/search-899ebd0411f46f33.js delete mode 100644 out/_next/static/chunks/pages/search-ffeb30ea5a7baf27.js create mode 100644 out/_next/static/chunks/pages/search/[savedSearchId]-4c490b12671d0c20.js delete mode 100644 out/_next/static/chunks/pages/search/[savedSearchId]-555abbf86f300d96.js rename out/_next/static/chunks/pages/{service-map-bcb8910dc98b83ce.js => service-map-99b4692648e59c41.js} (99%) delete mode 100644 out/_next/static/chunks/pages/services-56c542cb661daed6.js create mode 100644 out/_next/static/chunks/pages/services-835f7281d9395a29.js create mode 100644 out/_next/static/chunks/pages/sessions-57832d098fb35345.js delete mode 100644 out/_next/static/chunks/pages/sessions-acea943c26d1ae60.js delete mode 100644 out/_next/static/chunks/pages/team-2720ea0afbc2aca5.js create mode 100644 out/_next/static/chunks/pages/team-70bf1ca4245ae535.js rename out/_next/static/css/{84d18700e9fc7086.css => f8920d9971b4c4aa.css} (98%) create mode 100644 out/_next/static/media/001f750b538f7a9e-s.woff2 create mode 100644 out/_next/static/media/1a634e73dfeff02c-s.woff2 create mode 100644 out/_next/static/media/1e41be92c43b3255-s.p.woff2 delete mode 100644 out/_next/static/media/24c15609eaa28576-s.woff2 delete mode 100644 out/_next/static/media/2c07349e02a7b712-s.woff2 create mode 100644 out/_next/static/media/4120b0a488381b31-s.woff2 delete mode 100644 out/_next/static/media/456105d6ea6d39e0-s.woff2 delete mode 100644 out/_next/static/media/47cbc4e2adbc5db9-s.p.woff2 create mode 100644 out/_next/static/media/4f48fe9100901594-s.woff2 delete mode 100644 out/_next/static/media/4f77bef990aad698-s.woff2 create mode 100644 out/_next/static/media/5eae37b69937655e-s.woff2 delete mode 100644 out/_next/static/media/627d916fd739a539-s.woff2 delete mode 100644 out/_next/static/media/63b255f18bea0ca9-s.woff2 delete mode 100644 out/_next/static/media/70bd82ac89b4fa42-s.woff2 create mode 100644 out/_next/static/media/80841ae24d03ed90-s.woff2 delete mode 100644 out/_next/static/media/84602850c8fd81c3-s.woff2 create mode 100644 out/_next/static/media/970d71e7dcbc144d-s.woff2 create mode 100644 out/_next/static/media/b3f718d64f9a6dea-s.woff2 delete mode 100644 out/_next/static/oBTf4Pdf4H7G1UBWfzX4O/_buildManifest.js diff --git a/HYPERDX_VERSION b/HYPERDX_VERSION index d76bd2b..2b5b5ad 100644 --- a/HYPERDX_VERSION +++ b/HYPERDX_VERSION @@ -1 +1 @@ -2.17.0 +UNSET diff --git a/out/404.html b/out/404.html index 67d68fa..3d83843 100644 --- a/out/404.html +++ b/out/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/out/__ENV.js b/out/__ENV.js index 2be534d..ed6978a 100644 --- a/out/__ENV.js +++ b/out/__ENV.js @@ -1 +1 @@ -window.__ENV = {"NEXT_PUBLIC_THEME":"clickstack","NEXT_PUBLIC_IS_LOCAL_MODE":"true","NEXT_PUBLIC_CLICKHOUSE_BUILD":"true","NEXT_PUBLIC_APP_VERSION":"2.17.0"}; \ No newline at end of file +window.__ENV = {"NEXT_PUBLIC_IS_LOCAL_MODE":"true","NEXT_PUBLIC_CLICKHOUSE_BUILD":"true","NEXT_PUBLIC_THEME":"clickstack","NEXT_PUBLIC_APP_VERSION":"2.17.0"}; \ No newline at end of file diff --git a/out/_next/static/bJUcvHuOORKnvj_dzLe4n/_buildManifest.js b/out/_next/static/bJUcvHuOORKnvj_dzLe4n/_buildManifest.js new file mode 100644 index 0000000..d1a051d --- /dev/null +++ b/out/_next/static/bJUcvHuOORKnvj_dzLe4n/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,c,a,e,t,d,i,b,h,r,n,f,u,k,j,o,p,g,m,_,l,I,v,B,F,S,A,N,D,y,E,L,M,T,U,C){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:E,bitArray:[]},__routerFilterDynamic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:E,bitArray:[]},"/":[s,"static/chunks/pages/index-127844045860c39b.js"],"/404":["static/chunks/pages/404-87418c6575573d12.js"],"/_error":["static/chunks/pages/_error-39388d370ed64907.js"],"/alerts":[e,t,d,s,c,i,h,b,r,"static/css/ee8688206e298d66.css","static/chunks/pages/alerts-9147fb3cf82ff9d8.js"],"/benchmark":[e,t,d,n,s,c,a,i,f,u,j,b,o,"static/css/5397465024004a31.css","static/chunks/pages/benchmark-c327c802cb73c769.js"],"/chart":[e,t,d,n,p,s,c,a,i,h,f,k,u,j,g,m,l,I,F,A,b,r,o,_,"static/css/60eef3d5b82c01fe.css","static/chunks/pages/chart-d1582e6a8b91e931.js"],"/clickhouse":[e,t,d,n,p,s,c,a,i,h,f,k,u,j,g,m,l,I,B,N,b,r,o,_,v,"static/css/57ab40337a01a8f7.css","static/chunks/pages/clickhouse-f1625966d7c92b25.js"],"/dashboards":[e,t,d,n,p,s,c,a,i,h,f,k,u,j,g,m,l,I,B,F,A,L,b,r,o,_,v,M,"static/chunks/pages/dashboards-a851e5138fe17593.js"],"/dashboards/import":[e,t,d,s,c,a,i,h,"static/chunks/9967-169389f981fa00e5.js",b,r,"static/css/c2ef5da228e74437.css","static/chunks/pages/dashboards/import-1f4db483506493fe.js"],"/dashboards/[dashboardId]":[e,t,d,n,p,s,c,a,i,h,f,k,u,j,g,m,l,I,B,F,A,L,b,r,o,_,v,M,"static/chunks/pages/dashboards/[dashboardId]-995c0ae3cdee3f87.js"],"/join-team":[D,"static/chunks/pages/join-team-fa75e338137d5218.js"],"/kubernetes":[e,t,d,n,p,s,c,a,i,h,f,k,u,j,g,m,l,I,B,b,r,o,_,v,"static/css/d9659d9e1a57bc7e.css","static/chunks/pages/kubernetes-a8cc2459c9714a23.js"],"/login":[s,c,a,D,T,"static/chunks/pages/login-f046da5509306fd8.js"],"/register":[s,c,a,D,T,"static/chunks/pages/register-86a04d6ba7a76f1a.js"],"/search":[e,t,d,n,p,s,c,a,i,h,f,k,u,j,g,m,l,I,B,F,N,U,b,r,o,_,v,C,"static/chunks/pages/search-899ebd0411f46f33.js"],"/search/[savedSearchId]":[e,t,d,n,p,s,c,a,i,h,f,k,u,j,g,m,l,I,B,F,N,U,b,r,o,_,v,C,"static/chunks/pages/search/[savedSearchId]-4c490b12671d0c20.js"],"/service-map":[e,t,d,n,p,s,c,a,i,h,f,k,g,b,r,_,"static/css/5e608e56fd4adb29.css","static/chunks/pages/service-map-99b4692648e59c41.js"],"/services":[e,t,d,n,p,s,c,a,i,h,f,k,u,j,g,m,l,I,B,b,r,o,_,v,"static/css/c7f9e6fa0e94fe8f.css","static/chunks/pages/services-835f7281d9395a29.js"],"/sessions":[e,t,d,n,p,s,c,a,i,h,f,k,u,j,g,m,l,"static/chunks/6787-a27c5954b2697712.js",b,r,o,_,"static/css/c9e47d6ecd091b56.css","static/chunks/pages/sessions-57832d098fb35345.js"],"/team":[e,t,d,n,s,c,a,i,h,f,k,u,m,I,b,r,v,"static/css/aa458d09e4c5d9b3.css","static/chunks/pages/team-70bf1ca4245ae535.js"],sortedPages:["/","/404","/_app","/_error","/alerts","/benchmark","/chart","/clickhouse","/dashboards","/dashboards/import","/dashboards/[dashboardId]","/join-team","/kubernetes","/login","/register","/search","/search/[savedSearchId]","/service-map","/services","/sessions","/team"]}}("static/chunks/910-f70c830849b8cf81.js","static/chunks/1606-5a30b62cb4feaa4a.js","static/chunks/1909-f4f65d5367297444.js","static/chunks/367e882f-7fb3ac49d51ad63a.js","static/chunks/4e973673-b7b5da192a879342.js","static/chunks/88e08fcc-4ec2fa1a379b744c.js","static/chunks/6747-db295e4482b5a6a1.js","static/chunks/1021-19b5b93c0d7cad66.js","static/chunks/2814-582aced4e4547c8b.js","static/chunks/6514-457be65adbe54e27.js","static/chunks/187e7e72-adec6481ecde3f61.js","static/chunks/1445-bacd907489fa7f07.js","static/chunks/4607-c12c74ba5c07f89c.js","static/chunks/2990-4ceeb762cdb09ceb.js","static/chunks/9979-07c2d4f838abbdd7.js","static/chunks/3234-5a2bee69ca80ca94.js","static/chunks/f92fad27-d0cff4750eeb2536.js","static/chunks/522-db7920b51550c9e2.js","static/chunks/3943-0b032b204fb92637.js","static/chunks/8374-cb38bfbe77b4240b.js","static/chunks/1926-613ed7f780169841.js","static/chunks/9353-f86472fc41edc301.js","static/chunks/3172-55e9e00f8671199d.js","static/chunks/4528-13c92570a143bd81.js","static/chunks/1470-84964c609a7051b9.js",0,"static/chunks/8718-bf1c48cf4b5b7714.js","static/chunks/8224-2d708009ee8fef6a.js","static/chunks/7074-b8101e6fbb15b996.js",0,NaN,"static/chunks/7386-8fea3f6843338cab.js","static/css/e7c8a91bdaa17057.css","static/chunks/35-38880205eb57367e.js","static/chunks/4913-75c3c17d5340be2d.js","static/css/da709c0151f8e860.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/out/_next/static/oBTf4Pdf4H7G1UBWfzX4O/_ssgManifest.js b/out/_next/static/bJUcvHuOORKnvj_dzLe4n/_ssgManifest.js similarity index 100% rename from out/_next/static/oBTf4Pdf4H7G1UBWfzX4O/_ssgManifest.js rename to out/_next/static/bJUcvHuOORKnvj_dzLe4n/_ssgManifest.js diff --git a/out/_next/static/chunks/1021-663a6b3506100d9d.js b/out/_next/static/chunks/1021-19b5b93c0d7cad66.js similarity index 57% rename from out/_next/static/chunks/1021-663a6b3506100d9d.js rename to out/_next/static/chunks/1021-19b5b93c0d7cad66.js index fc888b7..d22dcc4 100644 --- a/out/_next/static/chunks/1021-663a6b3506100d9d.js +++ b/out/_next/static/chunks/1021-19b5b93c0d7cad66.js @@ -1,4 +1,4 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1021],{2615:(e,t,a)=>{var n=a(30404);a(31356),a(20470),n.a,t.YR=n.e,n.b,n.d,t.bn=n.c},3145:(e,t,a)=>{var n=a(9641);a(30404),a(31356),a(20470),t.qs=n.F,n.H,n.G,t.yb=n.K,n.I,t.VO=n.J},6876:(e,t,a)=>{a.d(t,{Ay:()=>m,Q5:()=>c});var n=a(81278),r=a.n(n),i=a(62910),s=a(16932),o=a(12482),l=a(98142);let u=i.Ay.create({prefixUrl:"/api",credentials:"include",hooks:{afterResponse:[function(e,t,a){if(!["/","/forgot","/join-team","/login","/register","/reset-password"].includes(r().pathname)&&401===a.status){try{window.sessionStorage.setItem("hdx-login-redirect-url",r().asPath)}catch(e){console.error(e)}r().push("/login")}}]},timeout:!1}),c=(e,t)=>u(e,{...t}),m={useCreateAlert:()=>(0,s.n)({mutationFn:async e=>u("alerts",{method:"POST",json:e}).json()}),useUpdateAlert:()=>(0,s.n)({mutationFn:async e=>u(`alerts/${e.id}`,{method:"PUT",json:e}).json()}),useDeleteAlert:()=>(0,s.n)({mutationFn:async e=>u(`alerts/${e}`,{method:"DELETE"})}),useSilenceAlert:()=>(0,s.n)({mutationFn:async({alertId:e,mutedUntil:t})=>u(`alerts/${e}/silenced`,{method:"POST",json:{mutedUntil:t}})}),useUnsilenceAlert:()=>(0,s.n)({mutationFn:async e=>u(`alerts/${e}/silenced`,{method:"DELETE"})}),useDashboards:e=>(0,o.I)({queryKey:["dashboards"],queryFn:()=>l.VO?null:c("dashboards",{method:"GET"}).json(),...e}),useCreateDashboard:()=>(0,s.n)({mutationFn:async({name:e,charts:t,query:a,tags:n})=>c("dashboards",{method:"POST",json:{name:e,charts:t,query:a,tags:n}}).json()}),useUpdateDashboard:()=>(0,s.n)({mutationFn:async({id:e,name:t,charts:a,query:n,tags:r})=>c(`dashboards/${e}`,{method:"PUT",json:{name:t,charts:a,query:n,tags:r}}).json()}),useDeleteDashboard:()=>(0,s.n)({mutationFn:async({id:e})=>c(`dashboards/${e}`,{method:"DELETE"}).json()}),usePresetDashboardFilters:(e,t,a=!0)=>(0,o.I)({queryKey:["dashboards","preset",e,"filters",t],queryFn:()=>c(`dashboards/preset/${e}/filters/`,{method:"GET",searchParams:{sourceId:t}}).json(),enabled:!!t&&a}),useCreatePresetDashboardFilter:()=>(0,s.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"POST",json:{filter:e}}).json()}),useUpdatePresetDashboardFilter:()=>(0,s.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"PUT",json:{filter:e}}).json()}),useDeletePresetDashboardFilter:()=>(0,s.n)({mutationFn:async({id:e,presetDashboard:t})=>c(`dashboards/preset/${t}/filter/${e}`,{method:"DELETE"}).json()}),useAlerts:()=>(0,o.I)({queryKey:["alerts"],queryFn:()=>c("alerts").json()}),useServices:()=>(0,o.I)({queryKey:["services"],queryFn:()=>c("chart/services",{method:"GET"}).json()}),useRotateTeamApiKey:()=>(0,s.n)({mutationFn:async()=>c("team/apiKey",{method:"PATCH"}).json()}),useDeleteTeamMember:()=>(0,s.n)({mutationFn:async({userId:e})=>c(`team/member/${e}`,{method:"DELETE"}).json()}),useTeamInvitations:()=>(0,o.I)({queryKey:["team/invitations"],queryFn:()=>c("team/invitations").json()}),useSaveTeamInvitation:()=>(0,s.n)({mutationFn:async({name:e,email:t})=>c("team/invitation",{method:"POST",json:{name:e,email:t}}).json()}),useDeleteTeamInvitation:()=>(0,s.n)({mutationFn:async({id:e})=>c(`team/invitation/${e}`,{method:"DELETE"}).json()}),useInstallation:()=>(0,o.I)({queryKey:["installation"],queryFn:()=>{if(!l.VO)return c("installation").json()}}),useMe:()=>(0,o.I)({queryKey:["me"],queryFn:()=>l.VO?null:c("me").json()}),useTeam:()=>(0,o.I)({queryKey:["team"],queryFn:()=>l.VO?null:c("team").json(),retry:1}),useTeamMembers:()=>(0,o.I)({queryKey:["team/members"],queryFn:()=>c("team/members").json()}),useSetTeamName:()=>(0,s.n)({mutationFn:async({name:e})=>c("team/name",{method:"PATCH",json:{name:e}}).json()}),useUpdateClickhouseSettings:()=>(0,s.n)({mutationFn:async e=>c("team/clickhouse-settings",{method:"PATCH",json:e}).json()}),useTags:()=>(0,o.I)({queryKey:["team/tags"],queryFn:()=>c("team/tags").json()}),useSaveWebhook:()=>(0,s.n)({mutationFn:async({service:e,url:t,name:a,description:n,queryParams:r,headers:i,body:s})=>c("webhooks",{method:"POST",json:{name:a,service:e,url:t,description:n,queryParams:r||{},headers:i||{},body:s}}).json()}),useUpdateWebhook:()=>(0,s.n)({mutationFn:async({id:e,service:t,url:a,name:n,description:r,queryParams:i,headers:s,body:o})=>c(`webhooks/${e}`,{method:"PUT",json:{name:n,service:t,url:a,description:r,queryParams:i||{},headers:s||{},body:o}}).json()}),useWebhooks:e=>(0,o.I)({queryKey:[...e],queryFn:()=>c("webhooks",{method:"GET",searchParams:[...e.map(e=>["service",e])]}).json()}),useDeleteWebhook:()=>(0,s.n)({mutationFn:async({id:e})=>c(`webhooks/${e}`,{method:"DELETE"}).json()}),useTestWebhook:()=>(0,s.n)({mutationFn:async({service:e,url:t,queryParams:a,headers:n,body:r})=>c("webhooks/test",{method:"POST",json:{service:e,url:t,queryParams:a||{},headers:n||{},body:r}}).json()}),useRegisterPassword:()=>(0,s.n)({mutationFn:async({email:e,password:t,confirmPassword:a})=>c("register/password",{method:"POST",json:{email:e,password:t,confirmPassword:a}}).json()}),useTestConnection:()=>(0,s.n)({mutationFn:async({host:e,username:t,password:a})=>c("clickhouse-proxy/test",{method:"POST",json:{host:e,username:t,password:a}}).json()})}},7565:(e,t,a)=>{a.d(t,{H:()=>l,a:()=>o});var n=a(6029),r=a(75155);a(55729);var i=a(76089),s=a(57820);let o=()=>{let e,t=(0,r.c)(3),{userPreferences:a}=(0,s.HW)(),{isUTC:n,timeFormat:o}=a;return t[0]!==n||t[1]!==o?(e=(e,t)=>{let{format:a}=void 0===t?{}:t;try{let t=e instanceof Date?e:new Date(e);return(0,i.Yq)(t,{clock:o,isUTC:n,format:a})}catch(t){return console.error(t,e),"Unknown date"}},t[0]=n,t[1]=o,t[2]=e):e=t[2],e},l=e=>{let t,a,i=(0,r.c)(6),{value:s,format:l}=e,u=o();return s?(i[0]!==l||i[1]!==u||i[2]!==s?(t=u(s,{format:l}),i[0]=l,i[1]=u,i[2]=s,i[3]=t):t=i[3],i[4]!==t?(a=(0,n.jsx)(n.Fragment,{children:t}),i[4]=t,i[5]=a):a=i[5],a):null}},9641:(e,t,a)=>{let n;function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return null!=e?e:t()}function o(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}Object.defineProperty(t,"__esModule",{value:!0});var l,u,c,m=a(30404),d=a(31356),p=a(20470),g=a(64497),h=r(g),f=r(g),y=i(a(79339)),E=i(a(64022)),A=i(a(80519)),N=i(a(55235)),T=a(71434),S=t.G=l=class{constructor(){l.prototype.__init.call(this),l.prototype.__init2.call(this)}__init(){this.cache=new Map}__init2(){this.pendingQueries=new Map}get(e){return this.cache.get(e)}async getOrFetch(e,t){let a=this.cache.get(e);if(null!=a)return a;if(this.pendingQueries.has(e))return this.pendingQueries.get(e);let n=t();this.pendingQueries.set(e,n);try{let t=await n;return this.cache.set(e,t),t}finally{this.pendingQueries.delete(e)}}set(e,t){return this.cache.set(e,t)}},_=t.H=class{constructor(e,t,a){this.clickhouseClient=e,this.cache=t,a&&this.cache.set("clickhouse-settings",a)}getClickHouseSettings(){return s(this.cache.get("clickhouse-settings"),()=>({}))}setClickHouseSettings(e){let t={...this.getClickHouseSettings(),...e};this.cache.set("clickhouse-settings",t)}async queryTableMetadata({database:e,table:t,cache:a,connectionId:n}){return a.getOrFetch(`${n}.${e}.${t}.metadata`,async()=>{let a=eT`SELECT * FROM system.tables where database = ${{String:e}} AND name = ${{String:t}}`;return(await this.clickhouseClient.query({connectionId:n,query:a.sql,query_params:a.params,clickhouse_settings:this.getClickHouseSettings()}).then(e=>e.json())).data[0]})}async queryMaterializedViewsByTarget({databaseName:e,tableName:t,connectionId:a}){return this.cache.getOrFetch(`${a}.${e}.${t}.sourceMaterializedViews`,async()=>{let n=`%TO ${e}.${t}%`,r=eT` +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1021],{2615:(e,t,a)=>{var n=a(78666);a(25496),a(64700),n.a,t.YR=n.e,n.b,n.d,t.bn=n.c},3145:(e,t,a)=>{var n=a(24914);a(78666),a(25496),a(64700),t.qs=n.F,n.H,n.G,t.yb=n.K,n.I,t.VO=n.J},6876:(e,t,a)=>{a.d(t,{Ay:()=>m,Q5:()=>c});var n=a(81278),r=a.n(n),i=a(62910),s=a(16932),o=a(12482),l=a(98142);let u=i.Ay.create({prefixUrl:"/api",credentials:"include",hooks:{afterResponse:[function(e,t,a){if(!["/","/forgot","/join-team","/login","/register","/reset-password"].includes(r().pathname)&&401===a.status){try{window.sessionStorage.setItem("hdx-login-redirect-url",r().asPath)}catch(e){console.error(e)}r().push("/login")}}]},timeout:!1}),c=(e,t)=>u(e,{...t}),m={useCreateAlert:()=>(0,s.n)({mutationFn:async e=>u("alerts",{method:"POST",json:e}).json()}),useUpdateAlert:()=>(0,s.n)({mutationFn:async e=>u(`alerts/${e.id}`,{method:"PUT",json:e}).json()}),useDeleteAlert:()=>(0,s.n)({mutationFn:async e=>u(`alerts/${e}`,{method:"DELETE"})}),useSilenceAlert:()=>(0,s.n)({mutationFn:async({alertId:e,mutedUntil:t})=>u(`alerts/${e}/silenced`,{method:"POST",json:{mutedUntil:t}})}),useUnsilenceAlert:()=>(0,s.n)({mutationFn:async e=>u(`alerts/${e}/silenced`,{method:"DELETE"})}),useDashboards:e=>(0,o.I)({queryKey:["dashboards"],queryFn:()=>l.VO?null:c("dashboards",{method:"GET"}).json(),...e}),useCreateDashboard:()=>(0,s.n)({mutationFn:async({name:e,charts:t,query:a,tags:n})=>c("dashboards",{method:"POST",json:{name:e,charts:t,query:a,tags:n}}).json()}),useUpdateDashboard:()=>(0,s.n)({mutationFn:async({id:e,name:t,charts:a,query:n,tags:r})=>c(`dashboards/${e}`,{method:"PUT",json:{name:t,charts:a,query:n,tags:r}}).json()}),useDeleteDashboard:()=>(0,s.n)({mutationFn:async({id:e})=>c(`dashboards/${e}`,{method:"DELETE"}).json()}),usePresetDashboardFilters:(e,t,a=!0)=>(0,o.I)({queryKey:["dashboards","preset",e,"filters",t],queryFn:()=>c(`dashboards/preset/${e}/filters/`,{method:"GET",searchParams:{sourceId:t}}).json(),enabled:!!t&&a}),useCreatePresetDashboardFilter:()=>(0,s.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"POST",json:{filter:e}}).json()}),useUpdatePresetDashboardFilter:()=>(0,s.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"PUT",json:{filter:e}}).json()}),useDeletePresetDashboardFilter:()=>(0,s.n)({mutationFn:async({id:e,presetDashboard:t})=>c(`dashboards/preset/${t}/filter/${e}`,{method:"DELETE"}).json()}),useAlerts:()=>(0,o.I)({queryKey:["alerts"],queryFn:()=>c("alerts").json()}),useServices:()=>(0,o.I)({queryKey:["services"],queryFn:()=>c("chart/services",{method:"GET"}).json()}),useRotateTeamApiKey:()=>(0,s.n)({mutationFn:async()=>c("team/apiKey",{method:"PATCH"}).json()}),useDeleteTeamMember:()=>(0,s.n)({mutationFn:async({userId:e})=>c(`team/member/${e}`,{method:"DELETE"}).json()}),useTeamInvitations:()=>(0,o.I)({queryKey:["team/invitations"],queryFn:()=>c("team/invitations").json()}),useSaveTeamInvitation:()=>(0,s.n)({mutationFn:async({name:e,email:t})=>c("team/invitation",{method:"POST",json:{name:e,email:t}}).json()}),useDeleteTeamInvitation:()=>(0,s.n)({mutationFn:async({id:e})=>c(`team/invitation/${e}`,{method:"DELETE"}).json()}),useInstallation:()=>(0,o.I)({queryKey:["installation"],queryFn:()=>{if(!l.VO)return c("installation").json()}}),useMe:()=>(0,o.I)({queryKey:["me"],queryFn:()=>l.VO?null:c("me").json()}),useTeam:()=>(0,o.I)({queryKey:["team"],queryFn:()=>l.VO?null:c("team").json(),retry:1}),useTeamMembers:()=>(0,o.I)({queryKey:["team/members"],queryFn:()=>c("team/members").json()}),useSetTeamName:()=>(0,s.n)({mutationFn:async({name:e})=>c("team/name",{method:"PATCH",json:{name:e}}).json()}),useUpdateClickhouseSettings:()=>(0,s.n)({mutationFn:async e=>c("team/clickhouse-settings",{method:"PATCH",json:e}).json()}),useTags:()=>(0,o.I)({queryKey:["team/tags"],queryFn:()=>c("team/tags").json()}),useSaveWebhook:()=>(0,s.n)({mutationFn:async({service:e,url:t,name:a,description:n,queryParams:r,headers:i,body:s})=>c("webhooks",{method:"POST",json:{name:a,service:e,url:t,description:n,queryParams:r||{},headers:i||{},body:s}}).json()}),useUpdateWebhook:()=>(0,s.n)({mutationFn:async({id:e,service:t,url:a,name:n,description:r,queryParams:i,headers:s,body:o})=>c(`webhooks/${e}`,{method:"PUT",json:{name:n,service:t,url:a,description:r,queryParams:i||{},headers:s||{},body:o}}).json()}),useWebhooks:e=>(0,o.I)({queryKey:[...e],queryFn:()=>c("webhooks",{method:"GET",searchParams:[...e.map(e=>["service",e])]}).json()}),useDeleteWebhook:()=>(0,s.n)({mutationFn:async({id:e})=>c(`webhooks/${e}`,{method:"DELETE"}).json()}),useTestWebhook:()=>(0,s.n)({mutationFn:async({service:e,url:t,queryParams:a,headers:n,body:r})=>c("webhooks/test",{method:"POST",json:{service:e,url:t,queryParams:a||{},headers:n||{},body:r}}).json()}),useRegisterPassword:()=>(0,s.n)({mutationFn:async({email:e,password:t,confirmPassword:a})=>c("register/password",{method:"POST",json:{email:e,password:t,confirmPassword:a}}).json()}),useTestConnection:()=>(0,s.n)({mutationFn:async({host:e,username:t,password:a})=>c("clickhouse-proxy/test",{method:"POST",json:{host:e,username:t,password:a}}).json()})}},7565:(e,t,a)=>{a.d(t,{H:()=>l,a:()=>o});var n=a(6029),r=a(75155);a(55729);var i=a(76089),s=a(57820);let o=()=>{let e,t=(0,r.c)(3),{userPreferences:a}=(0,s.HW)(),{isUTC:n,timeFormat:o}=a;return t[0]!==n||t[1]!==o?(e=(e,t)=>{let{format:a}=void 0===t?{}:t;try{let t=e instanceof Date?e:new Date(e);return(0,i.Yq)(t,{clock:o,isUTC:n,format:a})}catch(t){return console.error(t,e),"Unknown date"}},t[0]=n,t[1]=o,t[2]=e):e=t[2],e},l=e=>{let t,a,i=(0,r.c)(6),{value:s,format:l}=e,u=o();return s?(i[0]!==l||i[1]!==u||i[2]!==s?(t=u(s,{format:l}),i[0]=l,i[1]=u,i[2]=s,i[3]=t):t=i[3],i[4]!==t?(a=(0,n.jsx)(n.Fragment,{children:t}),i[4]=t,i[5]=a):a=i[5],a):null}},9897:(e,t,a)=>{a.d(t,{h:()=>r});var n,r=((n={})[n.Pending=1]="Pending",n[n.Running=2]="Running",n[n.Succeeded=3]="Succeeded",n[n.Failed=4]="Failed",n[n.Unknown=5]="Unknown",n)},24914:(e,t,a)=>{let n;function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return null!=e?e:t()}function o(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}Object.defineProperty(t,"__esModule",{value:!0});var l,u,c,m=a(78666),d=a(25496),p=a(64700),g=a(64497),h=r(g),f=r(g),y=i(a(79339)),E=i(a(64022)),A=i(a(80519)),N=i(a(55235)),T=a(71434),S=t.G=l=class{constructor(){l.prototype.__init.call(this),l.prototype.__init2.call(this)}__init(){this.cache=new Map}__init2(){this.pendingQueries=new Map}get(e){return this.cache.get(e)}async getOrFetch(e,t){let a=this.cache.get(e);if(null!=a)return a;if(this.pendingQueries.has(e))return this.pendingQueries.get(e);let n=t();this.pendingQueries.set(e,n);try{let t=await n;return this.cache.set(e,t),t}finally{this.pendingQueries.delete(e)}}set(e,t){return this.cache.set(e,t)}},_=t.H=class{constructor(e,t,a){this.clickhouseClient=e,this.cache=t,a&&this.cache.set("clickhouse-settings",a)}getClickHouseSettings(){return s(this.cache.get("clickhouse-settings"),()=>({}))}setClickHouseSettings(e){let t={...this.getClickHouseSettings(),...e};this.cache.set("clickhouse-settings",t)}async queryTableMetadata({database:e,table:t,cache:a,connectionId:n}){return a.getOrFetch(`${n}.${e}.${t}.metadata`,async()=>{let a=eT`SELECT * FROM system.tables where database = ${{String:e}} AND name = ${{String:t}}`;return(await this.clickhouseClient.query({connectionId:n,query:a.sql,query_params:a.params,clickhouse_settings:this.getClickHouseSettings()}).then(e=>e.json())).data[0]})}async queryMaterializedViewsByTarget({databaseName:e,tableName:t,connectionId:a}){return this.cache.getOrFetch(`${a}.${e}.${t}.sourceMaterializedViews`,async()=>{let n=`%TO ${e}.${t}%`,r=eT` SELECT database as databaseName, name as tableName FROM system.tables WHERE engine = 'MaterializedView' @@ -226,7 +226,7 @@ END AS "${r}" FROM points WHERE length(point) > 1 AND total > 0 - `}];t.a=eq,t.b=K,t.c=G,t.d=Q,t.e=z,t.f=Y,t.g=J,t.h=function(e){return{...e,operator:X[e.operator]}},t.i=Z,t.j=er,t.k=ep,t.l=eg,t.m=eh,t.n=ef,t.o=ey,t.p=eE,t.q=eA,t.r=eT,t.s=eS,t.t=e_,t.u=eR,t.v=eb,t.w=ew,t.x=eI,t.y=e$,t.z=ex,t.A=eO,t.B=function(e){let t={};if(null==e)return t;try{let a=eO(e),[n]=d.C.call(void 0,a),{sqlWithReplacements:r,replacements:i}=d.i.call(void 0,n),s=new h.Parser().astify(r,{database:"Postgresql",parseOptions:{includeLocations:!0}});for(let[e,a]of(null!=s.columns&&s.columns.forEach(e=>{null!=e.as&&("expr"===e.type&&"column_ref"===e.expr.type?t[e.as]=e.expr.array_index&&o([e,"access",e=>e.expr,"access",e=>e.array_index,"access",e=>e[0],"optionalAccess",e=>e.brackets])?`${e.expr.column.expr.value}['${e.expr.array_index[0].index.value}']`:e.expr.column.expr.value:null!=e.expr.loc?t[e.as]=r.slice(e.expr.loc.start.offset,e.expr.loc.end.offset):console.error("Unknown alias column type",e))}),Object.entries(t)))for(let[n,r]of i)a.includes(n)&&(t[e]=a.replaceAll(n,r))}catch(t){console.error("Error parsing alias map with JSON removed",t,"for query",e)}return t},t.C=ev,t.D=eL,t.E=eF,t.F=3e6,t.G=S,t.H=_,t.I=function(e){return{databaseName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.databaseName]),()=>""),tableName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.tableName]),()=>""),connectionId:s(o([e,"optionalAccess",e=>e.connection]),()=>"")}},t.J=function(e){return{databaseName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.databaseName]),()=>""),tableName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.tableName]),()=>""),connectionId:s(o([e,"optionalAccess",e=>e.connection]),()=>"")}},t.K=b,t.L=w,t.M=q,t.N=U,t.O=H,t.P=W,t.Q=B},9897:(e,t,a)=>{a.d(t,{h:()=>r});var n,r=((n={})[n.Pending=1]="Pending",n[n.Running=2]="Running",n[n.Succeeded=3]="Succeeded",n[n.Failed=4]="Failed",n[n.Unknown=5]="Unknown",n)},30404:(e,t,a)=>{function n(e,t){return null!=e?e:t()}function r(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}async function i(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}Object.defineProperty(t,"__esModule",{value:!0});var s=a(31356),o=a(20470),l=a(35362);async function u(e,t,a){try{return!!await i([await a.getColumn({...e,column:t}),"optionalAccess",async e=>e.type,"access",async e=>e.startsWith,"call",async e=>e("SimpleAggregateFunction(")])}catch(e){return!1}}async function c(e,t,a){try{let n=await i([await a.getColumn({...e,column:t}),"optionalAccess",async e=>e.type]);return n?r([n,"access",e=>e.match,"call",e=>e(/^AggregateFunction\(\s*([^(, ]+)\s*\(/),"optionalAccess",e=>e[1]]):void 0}catch(e){return}}async function m(e,t,a,n){return"count"===a?"sum":await u(e,t,n)?a:`${a}Merge`}function d(e,t,a){return e.aggregatedColumns.find(e=>e.aggFn===a&&("count"===e.aggFn||e.sourceColumn===t))}function p(e,t){if(e.minDate&&!t.dateRange)return!1;if(!e.minDate||!t.dateRange)return!0;let[a]=t.dateRange;return a>=new Date(e.minDate)}var g=/\bcount(If)?\s*\(/i;function h(e){return g.test(e.valueExpression)}async function f(e,t,a,n){var r;let{valueExpression:i,aggFn:s}=t,l=s;if(h(t))throw Error("Custom count() expressions are not supported with materialized views.");if(!l)return t;if(!((r=l)&&o.h.safeParse(r).success))throw Error(`Aggregate function ${l} is not valid.`);let u=d(e,"",l);if(u){let e=u.mvColumn,r=await m(a,e,l,n);return{...t,valueExpression:e,aggFn:r}}let p=d(e,i,l);if(!p)throw Error(`The aggregate function ${function(e,t){if("quantile"!==e)return e;switch(t){case .5:return"median";case .9:return"p90";case .95:return"p95";case .99:return"p99";default:return"quantile"}}(l,t.level)} is not available for column '${i}'.`);if("quantile"===t.aggFn&&"level"in t&&"number"==typeof t.level){let e=await c(a,p.mvColumn,n);e&&(l=e)}let g=await m(a,p.mvColumn,l,n);return{...t,valueExpression:p.mvColumn,aggFn:g}}async function y(e,t,a){if(!Array.isArray(e.select))return{errors:["Only array-based select statements are supported."]};if(t.minDate&&!p(t,e))return{errors:["The selected date range includes dates for which this view does not contain data."]};if(!function(e,t){if(!t.granularity&&!t.dateRange)return!0;let a=t.granularity||"auto";if("auto"===a&&!t.dateRange)return!1;let n="auto"===a&&t.dateRange?s.l.call(void 0,t.dateRange):a,r=s.m.call(void 0,n),i=s.m.call(void 0,e.minGranularity);return r>=i&&r%i==0}(t,e))return{errors:[e.granularity?`Granularity must be a multiple of the view's granularity (${t.minGranularity}).`:"The selected date range is too short for the granularity of this materialized view."]};let n={databaseName:t.databaseName,tableName:t.tableName,connectionId:e.connection},r=await Promise.allSettled(e.select.map(e=>f(t,e,n,a))),i=[],o=[];for(let e of r)"rejected"===e.status?o.push(e.reason.message):i.push(e.value);return o.length>0?{errors:o}:{optimizedConfig:{...structuredClone(e),select:i,timestampValueExpression:t.timestampColumn,from:{databaseName:t.databaseName,tableName:t.tableName},..."dateRange"in e&&e.dateRange?{dateRangeEndInclusive:!1,dateRange:s.A.call(void 0,e.dateRange,t.minGranularity)}:{}}}}async function E(e,t,a,r,i,s){let o=[],l;if(e.with){let a=await Promise.all(e.with.map(async e=>e.chartConfig&&e.chartConfig.from.databaseName===s.from.databaseName&&e.chartConfig.from.tableName===s.from.tableName?y(e.chartConfig,i,t):{optimizedConfig:void 0,errors:[]}));a.some(e=>!!e.optimizedConfig)&&(l={...structuredClone(e),with:e.with.map((e,t)=>({...e,chartConfig:n(a[t].optimizedConfig,()=>e.chartConfig)}))}),o.push(...a.flatMap(e=>n(e.errors,()=>[])))}if(e.from.databaseName===s.from.databaseName&&e.from.tableName===s.from.tableName){let a=await y(n(l,()=>e),i,t);a.optimizedConfig&&(l=a.optimizedConfig),o.push(...n(a.errors,()=>[]))}if(l){let{isValid:e,rowEstimate:n=1/0,error:i}=await a.testChartConfigValidity({config:l,metadata:t,opts:{abort_signal:r},querySettings:s.querySettings});if(i&&o.push(i),e)return{optimizedConfig:l,rowEstimate:n,errors:[]}}return{errors:o}}async function A(e,t,a,r,i){let s=n(i.materializedViews,()=>[]),o=await Promise.all(s.map(n=>E(e,t,a,r,n,i).then(e=>({...e,mvConfig:n})))),l,u=1/0;for(let e of o)e.optimizedConfig&&n(e.rowEstimate,()=>1/0)1/0));let c=o.map(({optimizedConfig:e,errors:t,rowEstimate:a,mvConfig:n})=>({success:!!e&&e===l,errors:t,rowEstimate:a,mvConfig:n}));return{optimizedConfig:l,explanations:c}}async function N(e,t,a,r,i){let{optimizedConfig:s}=await A(e,t,a,r,i);return n(s,()=>e)}function T(e){return`${e.databaseName}.${e.tableName}`}async function S({chartConfig:e,keys:t,source:a,clickhouseClient:i,metadata:o,signal:u}){let c=new Map((r([a,"optionalAccess",e=>e.materializedViews])||[]).map(e=>[T(e),e])),m=new Map;for(let[a,n]of c.entries()){let r=e.dateRange?function(e,t){let[a,n]=e,r=s.m.call(void 0,t);return Math.floor(l.differenceInSeconds.call(void 0,n,a)/r)}(e.dateRange,n.minGranularity):1/0;if(p(n,e)&&r>=3){let e=s.e.call(void 0,n.dimensionColumns),r=t.filter(t=>e.includes(t));r.length>0&&m.set(a,r)}}let d=[...m.entries()].map(([t,a])=>{let{databaseName:n,tableName:r,timestampColumn:i}=c.get(t);return{...structuredClone(e),timestampValueExpression:i,from:{databaseName:n,tableName:r},select:a.map((e,t)=>`groupUniqArray(1)(${e}) AS param${t}`).join(", ")}}),g=await Promise.all(d.map(async e=>{let{isValid:t,rowEstimate:n=1/0}=await i.testChartConfigValidity({config:e,metadata:o,opts:{abort_signal:u},querySettings:r([a,"optionalAccess",e=>e.querySettings])});return{id:T({databaseName:e.from.databaseName,tableName:e.from.tableName}),isValid:t,rowEstimate:n}})),h=new Map,f=new Set(t);for(let e of g.filter(e=>e.isValid).sort((e,t)=>e.rowEstimate-t.rowEstimate)){let t=n(m.get(e.id),()=>[]).filter(e=>f.has(e));if(t.length)for(let a of(h.set(e.id,t),t))f.delete(a)}let y=[...h.entries()].map(([t,a])=>{let{databaseName:n,tableName:r,timestampColumn:i}=c.get(t);return{chartConfig:{...structuredClone(e),timestampValueExpression:i,from:{databaseName:n,tableName:r}},keys:a}});return f.size&&y.push({chartConfig:structuredClone(e),keys:[...f]}),y}t.a=h,t.b=y,t.c=A,t.d=N,t.e=S},35467:(e,t,a)=>{var n=a(9641);a(30404),a(31356),a(20470),n.y,t.p1=n.u,t.A2=n.l,t.kg=n.r,t.D7=n.B,n.w,n.x,n.s,t.rj=n.n,n.q,t.bZ=n.v,n.p,t.P1=n.C,n.m,n.E,t.zo=n.D,t.Zo=n.o,t.l6=n.A,t.k$=n.z,n.t},35871:(e,t,a)=>{a.d(t,{A:()=>u});var n=a(6029),r=a(75155),i=a(76089),s=a(63085),o=a(45749),l=a(7565);function u(e){let t,a,u,c,m,d=(0,r.c)(12),{originalDateRange:p,effectiveDateRange:g,mvGranularity:h}=e,f=(0,l.a)();if(!g||(0,i._p)(g,p))return null;d[0]!==g[0]||d[1]!==f?(t=f(g[0]),d[0]=g[0],d[1]=f,d[2]=t):t=d[2],d[3]!==g[1]||d[4]!==f?(a=f(g[1]),d[3]=g[1],d[4]=f,d[5]=a):a=d[5],d[6]!==t||d[7]!==a?(u=[t,a],d[6]=t,d[7]=a,d[8]=u):u=d[8];let[y,E]=u,A=h?`Querying ${y} - ${E} due to ${h} rollups in query acceleration.`:`Querying ${y} - ${E} to show complete intervals.`;return d[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)(o.A,{size:16,color:"var(--color-text)"}),d[9]=c):c=d[9],d[10]!==A?(m=(0,n.jsx)(s.m,{multiline:!0,maw:500,label:A,children:c}),d[10]=A,d[11]=m):m=d[11],m}},43152:(e,t,a)=>{a.d(t,{gT:()=>N,Hx:()=>R,WG:()=>T,zE:()=>v,x5:()=>x,p2:()=>L,nH:()=>F,JD:()=>q,xh:()=>O,wt:()=>b,VH:()=>W,m9:()=>Q,A7:()=>j,qL:()=>C,_t:()=>K,Z7:()=>G,O7:()=>S,ik:()=>H,zg:()=>P,r4:()=>M,eY:()=>$,xu:()=>z,Ht:()=>I,W6:()=>w,GJ:()=>_});var n=a(6029),r=a(75155),i=a(86508),s=a(11370),o=a(76694),l=a.n(o),u=a(80519),c=a.n(u),m=a(6663),d=a(35467),p=a(67270),g=a(76089),h=a(82641),f=a(60665),y=a(35871);let E={"k8s.pod.cpu.utilization":{newName:"k8s.pod.cpu.usage",versionThreshold:"0.125.0"},"k8s.node.cpu.utilization":{newName:"k8s.node.cpu.usage",versionThreshold:"0.125.0"},"container.cpu.utilization":{newName:"container.cpu.usage",versionThreshold:"0.125.0"}};a(9897);var A=a(92917);let N=[{value:"count",label:"Count of Events",isAttributable:!1},{value:"sum",label:"Sum",isAttributable:!1},{value:"p99",label:"99th Percentile"},{value:"p95",label:"95th Percentile"},{value:"p90",label:"90th Percentile"},{value:"p50",label:"Median"},{value:"avg",label:"Average"},{value:"max",label:"Maximum"},{value:"min",label:"Minimum"},{value:"count_distinct",label:"Count Distinct",isAttributable:!1},{value:"any",label:"Any"},{value:"none",label:"Custom"}],T={name:"",select:[{aggFn:"count",aggCondition:"",aggConditionLanguage:"lucene",valueExpression:""}],where:"",whereLanguage:"lucene",displayType:h.t2.Line,granularity:"auto",alignDateRangeToGranularity:!0};function S(e){let t="auto"===e.granularity||null==e.granularity?(0,g.tA)(e.dateRange,80):e.granularity,a=!1===e.alignDateRangeToGranularity?e.dateRange:(0,g.Ol)(e.dateRange,t);return{...e,dateRange:a,dateRangeEndInclusive:!1,granularity:t,limit:{limit:1e5}}}function _(e){let t,a,n=(0,r.c)(7);n[0]!==e?(t=S(e),n[0]=e,n[1]=t):t=n[1];let i=t;return n[2]!==i.dateRange||n[3]!==i.displayType||n[4]!==i.fillNulls||n[5]!==i.granularity?(a={displayType:i.displayType,dateRange:i.dateRange,fillNulls:i.fillNulls,granularity:i.granularity},n[2]=i.dateRange,n[3]=i.displayType,n[4]=i.fillNulls,n[5]=i.granularity,n[6]=a):a=n[6],a}let R=" \xb7 ",b=" (previous)";function C(e){let[t,a]=e.split(" "),n=Number.parseInt(t);switch(a){case"second":return n;case"minute":return 60*n;case"hour":return 60*n*60;case"day":return 60*n*1440;default:return 0}}function w(e,t){let[a,n]=t.split(" "),r=Number.parseInt(a),i=Math.floor;switch(n){case"second":return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),i(e.getUTCSeconds()/r)*r));case"minute":return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),i(e.getUTCMinutes()/r)*r));case"hour":return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),i(e.getUTCHours()/r)*r));case"day":return new Date(1e3*(i(e.getTime()/1e3/60/60/24/r)*r)*86400);default:return e}}function I(e,t,a){let n=[],r=w(e,a),s=C(a);for(;r{let t=e.toLowerCase();return["count","countIf","countDistinct","sum","sumIf","avg","avgIf","min","max","any","anyLast","groupArray","groupArrayInsertAt","groupArrayMovingAvg","groupArraySample","groupUniqArray","groupUniqArrayIf","groupArrayIntersect","groupArrayIntersectIf","groupArrayReduce","groupBitmap","groupBitmapIf","groupBitmapOr","groupBitmapXor","quantile","quantileIf","quantileExact","quantileExactWeighted","quantileTiming","quantileTimingWeighted","quantileTDigest","quantileTDigestWeighted","quantileBFloat16","quantileBFloat16Weighted","quantiles","median","medianExact","medianTDigest","medianBFloat16","stddevPop","stddevPopIf","stddevSamp","stddevSampIf","varPop","varPopIf","varSamp","varSampIf","covarPop","covarSamp","corr","uniq","uniqExact","uniqCombined","uniqCombined64","uniqHLL12","uniqTheta","groupBitAnd","groupBitOr","groupBitXor","groupArrayMap","groupArrayTuple","groupArraySorted","topK","topKIf","topKWeighted","argMin","argMax","minMap","maxMap","runningDifference","retention","sequenceCount","sequenceMatch","histogram","simpleLinearRegression","stochasticLinearRegression","categoricalInformationValue","sumMap","sumMapFiltered","sumWithOverflow","entropy","skewPop","skewSamp","kurtPop","kurtSamp"].some(e=>t.includes(e.toLowerCase()+"("))},x={factor:1,output:"number",mantissa:0,thousandSeparated:!0},O={factor:1,output:"number",mantissa:2,thousandSeparated:!0,unit:"ms"},v={output:"percent",mantissa:0},L={output:"percent",mantissa:0},F={output:"byte"},q={output:"byte"};function D(e,t){return(0,d.P1)(e,[d.A2.Number])?.filter(e=>!t.has(e.name))}function U(e){return(0,d.P1)(e,[d.A2.String,d.A2.Map,d.A2.Array])}function M(e){let[t,a]=e,n=(0,s.A)(a,t);return[new Date(t.getTime()-1e3*n),new Date(a.getTime()-1e3*n)]}function k({response:e,lineDataMap:t,tsBucketMap:a,source:n,previousPeriodOffsetSeconds:r,isPreviousPeriod:i,hiddenSeries:s=[]}){let{meta:o,data:l}=e;if(null==o)throw Error("No meta data found in response");let u=(0,d.zo)(o);if(null==u)throw Error(`No timestamp column found with meta: ${JSON.stringify(o)}`);let c=D(o,new Set(s))??[],m=U(o)??[],p=1===c.length,g=m.length>0;for(let e of l){let s=new Date(e[u.name]),o=i?r:0,l=Math.round(s.getTime()/1e3+o);for(let r of c){let s,o=a.get(l);null==o&&(o={[u.name]:l},a.set(l,o));let c=[...p&&g?[]:[r.name],...m.map(t=>e[t.name])].join(R),d=`${c}${b}`,f=i?d:c,y=e[r.name],E="number"==typeof y?y:Number.parseFloat(y);o[f]=E,n&&1===m.length&&m[0].name===(n.kind===h.GL.Log?n.severityTextExpression:n.statusCodeExpression)&&(s=(0,A.aw)(e[m[0].name])),t[f]={dataKey:f,currentPeriodKey:c,previousPeriodKey:d,displayName:f,color:s,isDashed:i}}}}function P({currentPeriodResponse:e,previousPeriodResponse:t,dateRange:a,granularity:n,generateEmptyBuckets:r=!0,source:i,hiddenSeries:s=[],previousPeriodOffsetSeconds:o=0}){let l,u,c=e.meta;if(null==c)throw Error("No meta data found in response");let m=(0,d.zo)(c),p=D(c,new Set(s))??[],g=U(c)??[],h=1===p.length;if(null==m)throw Error(`No timestamp column found with meta: ${JSON.stringify(c)}`);let f=new Map,y={};k({response:e,lineDataMap:y,tsBucketMap:f,source:i,isPreviousPeriod:!1,previousPeriodOffsetSeconds:o,hiddenSeries:s}),null!=t&&k({response:t,lineDataMap:y,tsBucketMap:f,source:i,isPreviousPeriod:!0,previousPeriodOffsetSeconds:o,hiddenSeries:s});let E=(0,A.EA)(),N=Object.values(y).sort((e,t)=>E.findIndex(t=>t===e.color)-E.findIndex(e=>e===t.color));return r&&null!=n&&I(a[0],a[1],n).forEach(e=>{let t=e.getTime()/1e3,a=f.get(t);if(null==a){let e={[m.name]:t};for(let t of N)e[t.dataKey]=0;f.set(t,e)}else{for(let e of N)null==a[e.dataKey]&&(a[e.dataKey]=0);f.set(t,a)}}),{graphResults:Array.from(f.values()).sort((e,t)=>e[m.name]-t[m.name]),timestampColumn:m,lineData:(l=new Map,u=0,N.map(e=>{let t=e.currentPeriodKey;return l.has(t)?e.color=l.get(t):(e.color||(e.color=(0,A.ob)(u++,e.displayName??e.dataKey)),l.set(t,e.color)),e})),groupColumns:g.map(e=>e.name),valueColumns:p.map(e=>e.name),isSingleValueColumn:h}}let V=e=>{if(null==e)return e;if(e.endsWith("_rate"))return V(e.replace("_rate",""));if("p50"===e||"p90"===e||"p95"===e||"p99"===e)return"quantile";if("count_per_sec"===e||"count_per_min"===e||"count_per_hour"===e)return"count";if(["avg","count","count_distinct","last_value","max","min","sum"].includes(e))return e;throw Error(`Unsupported aggregation function in v2: ${e}`)},H=(e,t)=>{let{series:a,granularity:n,dateRange:r,displayType:i="line",fillNulls:s}=e;if(a.length<1)throw Error("series is required");let o=a[0],l="stacked_bar"===i?h.t2.StackedBar:h.t2.Line;if("logs"===o.table)throw Error("IMPLEMENT ME (logs)");if("metrics"===o.table){let e;if(null==t.metric)throw Error("source.metric is required for metrics");return{select:a.map(e=>{let t=e.field??"",[a,n]=t.split(" - ").map(e=>e.trim()),r=function(e){let t=E[e];if(t)return c().format("MetricName IN (?)",[[e,t.newName]])}(a),i=m.fc(h.SX).parse(n?.toLowerCase());return{aggFn:V(e.aggFn),metricType:i,valueExpression:t,metricName:a,metricNameSql:r,aggConditionLanguage:"lucene",aggCondition:e.where}}),from:t.metric?.from,numberFormat:o.numberFormat,groupBy:(e=t.metric,o.groupBy.map(t=>t.startsWith("k8s")?`${e.resourceAttributesExpression}['${t}']`:t).join(",")),dateRange:r,connection:t.metric?.connection,metricTables:t.metric?.metricTables,timestampValueExpression:t.metric?.timestampValueExpression,granularity:n,where:"",fillNulls:s,displayType:l}}throw Error(`unsupported table in v2: ${o.table}`)};function W({source:e,config:t,dateRange:a,groupFilters:n,valueRangeFilter:r}){if(!e?.id)return null;let i=(0,p.bv)(t);if(i&&e?.logSourceId==null)return f.$e.show({color:"yellow",message:"No log source is associated with the selected metric source."}),null;let s=t.where,o=t.whereLanguage||"lucene";0===s.length&&Array.isArray(t.select)&&1===t.select.length&&(s=t.select[0].aggCondition??"",o=t.select[0].aggConditionLanguage??"lucene");let l=[];if(n&&n.length>0&&n.forEach(({column:e,value:t})=>{if(e&&null!=t){let a=`${e} IN (${c().escape(t)})`;l.push({type:"sql",condition:a})}}),r){let{expression:e,value:t,threshold:a=.05}=r;if(!$(e)){let n=`${e} BETWEEN ${c().escape(t*(1-a))} AND ${c().escape(t*(1+a))}`;l.push({type:"sql",condition:n})}}let u=a[0].getTime(),m=a[1].getTime(),d={source:e?.id??"",where:s,whereLanguage:o,filters:JSON.stringify([...t.filters??[],...l]),isLive:"false",from:u.toString(),to:m.toString()};return i&&(d.where="",d.whereLanguage="lucene",d.filters=JSON.stringify([]),d.source=e?.logSourceId??""),t.eventTableSelect&&(d.select=t.eventTableSelect),`/search?${new URLSearchParams(d).toString()}`}function B(e){return e?"string"==typeof e?e.split(",").map(e=>e.trim()):e.map(e=>"string"==typeof e?e:e.valueExpression):[]}function j({row:e,source:t,config:a,dateRange:n}){let r;if(!t?.id)return null;let i=[];B(a.groupBy).forEach(t=>{null!=e[t]&&i.push({column:t,value:e[t]})});let s=a.select?.[0];if(s){let t="string"==typeof s?void 0:s.aggFn;if(N.find(e=>e.value===t)?.isAttributable!==!1){let t="string"==typeof s?s:s.valueExpression,n=new Set(B(a.groupBy)),i=Object.keys(e).find(e=>!n.has(e)),o=i?e[i]:void 0;null!=o&&"number"==typeof o&&(r={expression:t,value:o})}}return W({source:t,config:a,dateRange:n,groupFilters:i,valueRangeFilter:r})}function K(e){return l()(e,["granularity","groupBy"])}function G(e){let t=structuredClone(l()(e,["granularity"]));return t.limit||(t.limit={limit:200}),t.groupBy&&"string"==typeof t.groupBy&&!t.orderBy&&(t.orderBy=t.groupBy),t}function Q({mvOptimizationData:e,originalDateRange:t}){let a=e?.optimizedConfig?.dateRange;if(!a)return null;let r=e?.explanations.find(e=>e.success)?.mvConfig.minGranularity;return(0,n.jsx)(y.A,{originalDateRange:t,effectiveDateRange:a,mvGranularity:r},"date-range-indicator")}function z(e){return!1!==e}},49672:(e,t,a)=>{a.d(t,{VH:()=>p,W:()=>m,fu:()=>d,uI:()=>h});var n=a(75155),r=a(35467),i=a(88459),s=a(12482),o=a(98142),l=a(93108),u=a(6876),c=a(61410);let m=(e={})=>{if(o.VO){let t=(0,l.xZ)();return 0===t.length?(console.warn("No local connection found"),new i.aP({host:"",...e})):new i.aP({host:t[0].host,username:t[0].username,password:t[0].password,...e})}return new i.aP({host:"/api/clickhouse-proxy",...e})},d=(e={})=>{let{data:t}=u.Ay.useMe(),a=t?.team?.queryTimeout;return void 0!==a?e.queryTimeout=a:e.queryTimeout=c.rb,m(e)};function p(e,t){let a,r,i,o,l=(0,n.c)(8),{connectionId:u}=e;l[0]===Symbol.for("react.memo_cache_sentinel")?(a=m(),l[0]=a):a=l[0];let c=a;return l[1]!==u?(r=["direct_datasources/databases",u],i=async()=>await c.query({query:"SHOW DATABASES",connectionId:u}).then(g),l[1]=u,l[2]=r,l[3]=i):(r=l[2],i=l[3]),l[4]!==t||l[5]!==r||l[6]!==i?(o={queryKey:r,queryFn:i,staleTime:3e5,...t},l[4]=t,l[5]=r,l[6]=i,l[7]=o):o=l[7],(0,s.I)(o)}function g(e){return e.json()}function h({database:e,connectionId:t},a){let n=m();return(0,s.I)({queryKey:[`direct_datasources/databases/${e}/tables`,t],queryFn:async()=>{let a=(0,r.kg)`SHOW TABLES FROM ${{Identifier:e}}`;return await n.query({query:a.sql,query_params:a.params,connectionId:t}).then(e=>e.json())},staleTime:3e5,...a})}},57389:(e,t,a)=>{a.d(t,{d:()=>c});var n=a(75155),r=a(2615),i=a(4308),s=a(12482),o=a(49672),l=a(81973),u=a(78550);function c(e,t){let a,c,m,d,p,g=(0,n.c)(16);g[0]!==t?(a=t||{},g[0]=t,g[1]=a):a=g[1];let{enabled:h}=a,f=(0,u.Ge)(),y=(0,o.fu)(),E=e?.source;g[2]!==E?(c={id:E},g[2]=E,g[3]=c):c=g[3];let{data:A,isLoading:N}=(0,l.Fo)(c);g[4]!==e?(m=["optimizationExplanation",e],g[4]=e,g[5]=m):m=g[5],g[6]!==y||g[7]!==e||g[8]!==f||g[9]!==A?(d=async t=>{let{signal:a}=t;return e&&A?await (0,r.bn)(e,f,y,a,A):{explanations:[]}},g[6]=y,g[7]=e,g[8]=f,g[9]=A,g[10]=d):d=g[10];let T=(void 0===h||h)&&!N&&!!e&&!!A;return g[11]!==t||g[12]!==m||g[13]!==d||g[14]!==T?(p={queryKey:m,queryFn:d,placeholderData:i.rX,staleTime:5e3,...t,enabled:T},g[11]=t,g[12]=m,g[13]=d,g[14]=T,g[15]=p):p=g[15],(0,s.I)(p)}},61410:(e,t,a)=>{a.d(t,{Km:()=>n,Nz:()=>i,rb:()=>r});let n=200,r=60;function i(e){return{limit:{limit:e?.searchRowLimit??n}}}},67270:(e,t,a)=>{var n=a(9641);a(30404),a(31356),a(20470),t.n_=n.b,n.h,t.bv=n.e,t.v4=n.i,t.lE=n.d,t.x1=n.c,t.PV=n.k,n.f,n.g,n.j},69519:(e,t,a)=>{a.d(t,{Me:()=>i,so:()=>r});let n=[21600,21600,43200,86400];function r(e,t,a=n){if(e.getTime()===t.getTime())return[{startTime:e,endTime:t,windowIndex:0,direction:"DESC"}];let i=[],s=new Date(t),o=0;for(;s>e;){let t=1e3*(a[o]||a[a.length-1]),n=new Date(Math.max(s.getTime()-t,e.getTime()));i.push({endTime:new Date(s),startTime:n,windowIndex:o,direction:"DESC"}),s=n,o++}return i}function i(e,t,a=n){if(e.getTime()===t.getTime())return[{startTime:e,endTime:t,windowIndex:0,direction:"ASC"}];let r=[],s=new Date(e),o=0;for(;s{var n=a(67599),r=n.expandPhrases.call(void 0,["SELECT [ALL | DISTINCT]"]),i=n.expandPhrases.call(void 0,["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET"]),s=n.expandPhrases.call(void 0,["CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE"]),o=n.expandPhrases.call(void 0,["CREATE [RECURSIVE] VIEW","UPDATE","WHERE CURRENT OF","DELETE FROM","DROP TABLE","ALTER TABLE","ADD COLUMN","DROP [COLUMN]","RENAME COLUMN","RENAME TO","ALTER [COLUMN]","{SET | DROP} DEFAULT","ADD SCOPE","DROP SCOPE {CASCADE | RESTRICT}","RESTART WITH","TRUNCATE TABLE","SET SCHEMA"]),l={name:"clickhouse",tokenizerOptions:{reservedSelect:r,reservedClauses:[...i,...s,...o],reservedSetOperations:n.expandPhrases.call(void 0,["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),reservedJoins:n.expandPhrases.call(void 0,["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),reservedPhrases:n.expandPhrases.call(void 0,["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),reservedKeywords:["ALL","ALLOCATE","ALTER","ANY","ARE","AS","ASC","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHECK","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DEALLOCATE","DAY","DECLARE","DEFAULT","DELETE","DEREF","DESC","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INTERSECT","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","NATURAL","NEW","NO","NONE","NOT","NULL","NULLIF","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"],reservedDataTypes:["ARRAY","BIGINT","BINARY LARGE OBJECT","BINARY VARYING","BINARY","BLOB","BOOLEAN","CHAR LARGE OBJECT","CHAR VARYING","CHAR","CHARACTER LARGE OBJECT","CHARACTER VARYING","CHARACTER","CLOB","DATE","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MULTISET","NATIONAL CHAR VARYING","NATIONAL CHAR","NATIONAL CHARACTER LARGE OBJECT","NATIONAL CHARACTER VARYING","NATIONAL CHARACTER","NCHAR LARGE OBJECT","NCHAR VARYING","NCHAR","NCLOB","NUMERIC","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR"],reservedFunctionNames:["GROUPING","RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER","POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET","SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE","CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP","COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC","CAST","COALESCE","NULLIF","ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],extraParens:["[]"],paramTypes:{positional:!0},operators:["||","%"]},formatOptions:{onelineClauses:[...s,...o],tabularOnelineClauses:o}};t.GP=function(e){return n.formatDialect.call(void 0,e,{dialect:l})}},78550:(e,t,a)=>{a.d(t,{Ii:()=>F,ws:()=>w,Zh:()=>T,lo:()=>L,kN:()=>v,n$:()=>S,Ge:()=>N,Sh:()=>R,nT:()=>$,Z2:()=>I});var n=a(75155),r=a(55729),i=a(79339),s=a.n(i),o=a(35467),l=a(93251),u=a(12482),c=a(4308),m=a(6876),d=a(98142),p=a(93108),g=a(3145),h=a(49672),f=a(61410);let y=()=>(0,g.yb)((0,h.W)({queryTimeout:f.rb}));var E=a(81973),A=a(92917);function N(){let e,t,a,i,s,o=(0,n.c)(10);o[0]===Symbol.for("react.memo_cache_sentinel")?(e=y(),o[0]=e):e=o[0];let[u,c]=(0,r.useState)(e),{data:g}=m.Ay.useMe(),h=(0,r.useRef)(!1),f=(0,l.jE)();o[1]!==f?(t=()=>{if(void 0===window.document||!d.VO)return;let e=e=>{e.key===p.Gs&&e.newValue&&(c(y()),h.current=!1,f.resetQueries())};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},a=[f],o[1]=f,o[2]=t,o[3]=a):(t=o[2],a=o[3]),(0,r.useEffect)(t,a),o[4]!==g||o[5]!==u?(i=()=>{g?.team?.metadataMaxRowsToRead&&!h.current&&(u.setClickHouseSettings({max_rows_to_read:g.team.metadataMaxRowsToRead}),h.current=!0)},o[4]=g,o[5]=u,o[6]=i):i=o[6];let E=g?.team?.metadataMaxRowsToRead;return o[7]!==u||o[8]!==E?(s=[E,u],o[7]=u,o[8]=E,o[9]=s):s=o[9],(0,r.useEffect)(i,s),u}function T(e,t){let a,r,i,s=(0,n.c)(13),{databaseName:o,tableName:l,connectionId:c}=e,m=N();s[0]!==o||s[1]!==l?(a=["useMetadata.useColumns",{databaseName:o,tableName:l}],s[0]=o,s[1]=l,s[2]=a):a=s[2],s[3]!==c||s[4]!==o||s[5]!==m||s[6]!==l?(r=async()=>m.getColumns({databaseName:o,tableName:l,connectionId:c}),s[3]=c,s[4]=o,s[5]=m,s[6]=l,s[7]=r):r=s[7];let d=!!o&&!!l&&!!c;return s[8]!==t||s[9]!==a||s[10]!==r||s[11]!==d?(i={queryKey:a,queryFn:r,enabled:d,...t},s[8]=t,s[9]=a,s[10]=r,s[11]=d,s[12]=i):i=s[12],(0,u.I)(i)}function S(e,t){let a,r,i,s=(0,n.c)(10),l=N();s[0]!==e?(a=["useMetadata.useJsonColumns",e],s[0]=e,s[1]=a):a=s[1],s[2]!==l||s[3]!==e?(r=async()=>{if(!e)return[];let t=await l.getColumns(e);return(0,o.P1)(t,[o.A2.JSON])?.map(_)??[]},s[2]=l,s[3]=e,s[4]=r):r=s[4];let c=e&&!!e.databaseName&&!!e.tableName&&!!e.connectionId;return s[5]!==t||s[6]!==a||s[7]!==r||s[8]!==c?(i={queryKey:a,queryFn:r,enabled:c,...t},s[5]=t,s[6]=a,s[7]=r,s[8]=c,s[9]=i):i=s[9],(0,u.I)(i)}function _(e){return e.name}function R(e,t){let a,r,i,s,o=(0,n.c)(14),l=N(),{data:c,isFetched:d}=m.Ay.useMe();return o[0]!==e?(a=["useMetadata.useMultipleAllFields",...e.map(C)],o[0]=e,o[1]=a):a=o[1],o[2]!==c?.team||o[3]!==l||o[4]!==e?(r=async()=>{let t=c?.team;if(t?.fieldMetadataDisabled)return[];let a=await Promise.all(e.map(e=>l.getAllFields(e)));return 1===a.length?a[0]:F(a)},o[2]=c?.team,o[3]=l,o[4]=e,o[5]=r):r=o[5],o[6]!==d||o[7]!==e?(i=e.length>0&&e.every(b)&&d,o[6]=d,o[7]=e,o[8]=i):i=o[8],o[9]!==t||o[10]!==a||o[11]!==r||o[12]!==i?(s={queryKey:a,queryFn:r,enabled:i,...t},o[9]=t,o[10]=a,o[11]=r,o[12]=i,o[13]=s):s=o[13],(0,u.I)(s)}function b(e){return!!e.databaseName&&!!e.tableName&&!!e.connectionId}function C(e){return{...e}}function w(e,t){let a,r=(0,n.c)(2);return r[0]!==e?(a=e?[e]:[],r[0]=e,r[1]=a):a=r[1],R(a,t)}function I(e,t){let a,r,i,s=(0,n.c)(13),{databaseName:o,tableName:l,connectionId:c}=e,m=N();s[0]!==o||s[1]!==l?(a=["useMetadata.useTableMetadata",{databaseName:o,tableName:l}],s[0]=o,s[1]=l,s[2]=a):a=s[2],s[3]!==c||s[4]!==o||s[5]!==m||s[6]!==l?(r=async()=>await m.getTableMetadata({databaseName:o,tableName:l,connectionId:c}),s[3]=c,s[4]=o,s[5]=m,s[6]=l,s[7]=r):r=s[7];let d=!!o&&!!l&&!!c;return s[8]!==t||s[9]!==a||s[10]!==r||s[11]!==d?(i={queryKey:a,queryFn:r,staleTime:3e5,enabled:d,...t},s[8]=t,s[9]=a,s[10]=r,s[11]=d,s[12]=i):i=s[12],(0,u.I)(i)}function $(e,t){let a,r,i,s=(0,n.c)(12),{chartConfigs:o,keys:l,limit:m,disableRowLimit:d}=e,p=N(),g=(0,A.$r)(o);s[0]!==t?(a=t||{},s[0]=t,s[1]=a):a=s[1];let{enabled:h}=a,{data:f,isLoading:y}=(0,E.oE)();s[2]!==g||s[3]!==d||s[4]!==l||s[5]!==m||s[6]!==p||s[7]!==f?(r=async e=>{let{signal:t}=e;return(await Promise.all(g.map(e=>{let a=e.source?f?.find(t=>t.id===e.source):void 0;return p.getKeyValuesWithMVs({chartConfig:e,keys:l.slice(0,20),limit:m,disableRowLimit:d,source:a,signal:t})}))).flatMap(x)},s[2]=g,s[3]=d,s[4]=l,s[5]=m,s[6]=p,s[7]=f,s[8]=r):r=s[8];let T=(0,u.I)({queryKey:["useMetadata.useGetKeyValues",...g.map(O),...l,d],queryFn:r,staleTime:3e5,placeholderData:c.rX,...t,enabled:!!(void 0===h||h)&&!!l.length&&!y}),S=T.isLoading||y;return s[9]!==T||s[10]!==S?(i={...T,isLoading:S},s[9]=T,s[10]=S,s[11]=i):i=s[11],i}function x(e){return e}function O(e){return{...e}}function v(e,t){let a,r,i,s,o=(0,n.c)(16),{chartConfig:l,key:m,limit:d}=e,p=N();o[0]!==l.source?(a={id:l.source},o[0]=l.source,o[1]=a):a=o[1];let{data:g,isLoading:h}=(0,E.Fo)(a);o[2]!==l||o[3]!==m?(r=["useMetadata.useGetValuesDistribution",l,m],o[2]=l,o[3]=m,o[4]=r):r=o[4],o[5]!==l||o[6]!==m||o[7]!==d||o[8]!==p||o[9]!==g?(i=async()=>await p.getValuesDistribution({chartConfig:l,key:m,limit:d,source:g}),o[5]=l,o[6]=m,o[7]=d,o[8]=p,o[9]=g,o[10]=i):i=o[10];let f=!!m&&!h;return o[11]!==t||o[12]!==r||o[13]!==i||o[14]!==f?(s={queryKey:r,queryFn:i,staleTime:1/0,enabled:f,placeholderData:c.rX,retry:!1,...t},o[11]=t,o[12]=r,o[13]=i,o[14]=f,o[15]=s):s=o[15],(0,u.I)(s)}function L(e,t){let a,r,i=(0,n.c)(7),{chartConfig:s,keys:o,limit:l,disableRowLimit:u}=e;return i[0]!==s?(a=s?[s]:[],i[0]=s,i[1]=a):a=i[1],i[2]!==u||i[3]!==o||i[4]!==l||i[5]!==a?(r={chartConfigs:a,keys:o,limit:l,disableRowLimit:u},i[2]=u,i[3]=o,i[4]=l,i[5]=a,i[6]=r):r=i[6],$(r,t)}function F(e){let t=[],a=new Set;for(let n of e)for(let e of n){let n=s().sha1(e);a.has(n)||(a.add(n),t.push(e))}return t}},81973:(e,t,a)=>{a.d(t,{AF:()=>R,Al:()=>j,Dp:()=>V,Fo:()=>O,N8:()=>w,YI:()=>U,Ys:()=>P,fS:()=>B,kJ:()=>A,kg:()=>H,nd:()=>q,oE:()=>$,pM:()=>b,sr:()=>L,xg:()=>C});var n=a(75155),r=a(29594),i=a.n(r),s=a(79339),o=a.n(s),l=a(91985),u=a.n(l),c=a(35467),m=a(76089),d=a(82641),p=a(12482),g=a(93251),h=a(16932),f=a(6876),y=a(98142),E=a(92917);let A={resourceAttributesExpression:"ResourceAttributes",eventAttributesExpression:"LogAttributes",timestampValueExpression:"TimestampTime",implicitColumnExpression:"Body"},N={...A,timestampValueExpression:"Timestamp"},T="hdx-local-source";function S(e){u().transact(T,e,[])}function _(){if(u().has(T))return u().get(T,[])??[];try{let e=(0,E.Ol)(y.m6??"");if(null!=e)return e}catch(e){console.error("Error fetching default sources",e)}return[]}function R(e){return(0,m.AB)(e)[0]}function b(e){return e.spanNameExpression}function C(e){return e.displayedTimestampValueExpression??R(e.timestampValueExpression)}function w(e){let t=e.kind===d.GL.Trace?e.spanNameExpression??void 0:e.bodyExpression??e.implicitColumnExpression,a=(0,m.AB)(t??"");return 1===a.length?t:a[0]}function I(e){return{...e,timestampValueExpression:e.kind===d.GL.Session?e.timestampValueExpression||A.timestampValueExpression:e.timestampValueExpression}}function $(){let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["sources"],queryFn:x},t[0]=e):e=t[0],(0,p.I)(e)}async function x(){return y.VO?_():(await (0,f.Q5)("sources").json()).map(I)}function O(e){let t,a,r,i=(0,n.c)(6),{id:s}=e;i[0]===Symbol.for("react.memo_cache_sentinel")?(t=["sources"],i[0]=t):t=i[0],i[1]!==s?(a=e=>e.filter(e=>e.id===s)[0],i[1]=s,i[2]=a):a=i[2];let o=null!=s;return i[3]!==a||i[4]!==o?(r={queryKey:t,queryFn:v,select:a,enabled:o},i[3]=a,i[4]=o,i[5]=r):r=i[5],(0,p.I)(r)}async function v(){return y.VO?_():(await (0,f.Q5)("sources").json()).map(I)}function L(){let e,t=(0,n.c)(2),a=(0,g.jE)();return t[0]!==a?(e={mutationFn:F,onSuccess:()=>{a.invalidateQueries({queryKey:["sources"]})}},t[0]=a,t[1]=e):e=t[1],(0,h.n)(e)}async function F(e){let{source:t}=e;if(!y.VO)return await (0,f.Q5)(`sources/${t.id}`,{method:"PUT",json:t});S(e=>e.map(e=>e.id===t.id?t:e))}function q(){let e,t=(0,n.c)(2),a=(0,g.jE)();return t[0]!==a?(e={mutationFn:D,onSuccess:()=>{a.invalidateQueries({queryKey:["sources"]})}},t[0]=a,t[1]=e):e=t[1],(0,h.n)(e)}async function D(e){let{source:t}=e;if(y.VO){let e=_().find(e=>o()(i()(e,["kind","name","connection"]))===o()(i()(t,["kind","name","connection"])));if(e)return{...t,id:e.id};let a={...t,id:`l${(0,m.s5)(Math.random().toString())}`};return S(e=>[...e,a]),a}return(0,f.Q5)("sources",{method:"POST",json:t}).json()}function U(){let e,t=(0,n.c)(2),a=(0,g.jE)();return t[0]!==a?(e={mutationFn:M,onSuccess:()=>{a.invalidateQueries({queryKey:["sources"]})}},t[0]=a,t[1]=e):e=t[1],(0,h.n)(e)}async function M(e){let{id:t}=e;return y.VO?void S(e=>e.filter(e=>e.id!==t)):(0,f.Q5)(`sources/${t}`,{method:"DELETE"})}function k(e,t){let a=new Map(e.map(e=>[e.name,e]));return 0===Array.from(t).filter(e=>!a.has(e)).length}async function P({databaseName:e,tableName:t,connectionId:a,metadata:n}){let r=await n.getColumns({databaseName:e,tableName:t,connectionId:a}),i=(await n.getTableMetadata({databaseName:e,tableName:t,connectionId:a})).primary_key,s=new Set((0,c.bZ)(i)),o=k(r,["Timestamp","Body","SeverityText","TraceId","SpanId","ServiceName","LogAttributes","ResourceAttributes"]),l=k(r,["Timestamp","SpanName","Duration","SpanKind","TraceId","SpanId","ParentSpanId","ServiceName","SpanAttributes","ResourceAttributes","StatusCode","StatusMessage"]),u=r.some(e=>"Events.Timestamp"===e.name),m=(0,c.P1)(r,[c.A2.Date]),d=m?.find(e=>s.has(e.name));return{...null!=d?{timestampValueExpression:d.name}:{},...o?{defaultTableSelectExpression:"Timestamp, ServiceName as service, SeverityText as level, Body",serviceNameExpression:"ServiceName",bodyExpression:"Body",displayedTimestampValueExpression:"Timestamp",eventAttributesExpression:"LogAttributes",implicitColumnExpression:"Body",resourceAttributesExpression:"ResourceAttributes",spanIdExpression:"SpanId",traceIdExpression:"TraceId",severityTextExpression:"SeverityText"}:{},...l?{displayedTimestampValueExpression:"Timestamp",implicitColumnExpression:"SpanName",defaultTableSelectExpression:"Timestamp, ServiceName as service, StatusCode as level, round(Duration / 1e6) as duration, SpanName",eventAttributesExpression:"SpanAttributes",serviceNameExpression:"ServiceName",resourceAttributesExpression:"ResourceAttributes",durationExpression:"Duration",durationPrecision:9,parentSpanIdExpression:"ParentSpanId",spanIdExpression:"SpanId",spanKindExpression:"SpanKind",spanNameExpression:"SpanName",traceIdExpression:"TraceId",statusCodeExpression:"StatusCode",statusMessageExpression:"StatusMessage",...u?{spanEventsValueExpression:"Events"}:{}}:{}}}function V(e){return`(${e.durationExpression})/1e${(e.durationPrecision??9)-3}`}function H(e){return`(${e.durationExpression})/1e${e.durationPrecision??9}`}let W={[d.SX.Gauge]:["TimeUnix","ServiceName","MetricName","Value","Attributes","ResourceAttributes"],[d.SX.Histogram]:["TimeUnix","ServiceName","MetricName","Attributes","ResourceAttributes","Count","Sum","BucketCounts","ExplicitBounds"],[d.SX.Sum]:["TimeUnix","ServiceName","MetricName","Value","Attributes","ResourceAttributes"],[d.SX.Summary]:["Attributes","TimeUnix","Count","Sum","ValueAtQuantiles.Quantile","ValueAtQuantiles.Value","Flags","ServiceName","MetricName","ResourceAttributes"],[d.SX.ExponentialHistogram]:["Attributes","TimeUnix","Count","Sum","Scale","ZeroCount","PositiveOffset","PositiveBucketCounts","NegativeOffset","NegativeBucketCounts","Flags","ServiceName","MetricName","ResourceAttributes"]};async function B({databaseName:e,tableName:t,connectionId:a,metricType:n,metadata:r}){return!!t&&k(await r.getColumns({databaseName:e,tableName:t,connectionId:a}),W[n])}async function j({databaseName:e,tableName:t,connectionId:a,metadata:n}){if(!t)return!1;let r=await n.getColumns({databaseName:e,tableName:t,connectionId:a});return k(r,Object.values(A))||k(r,Object.values(N))}},82641:(e,t,a)=>{var n=a(20470);n.g,n.i,n.A,t.lZ=n.v,n.C,t.w5=n.u,t.Or=n.t,t.qQ=n.s,n.$,n.aa,n.p,t.fB=n.B,n.J,n.U,n.I,n.O,n.N,n.R,t.mJ=n.T,n.S,n.k,t.t2=n.b,n.E,n.h,n.o,n.Y,n.c,t.SX=n.a,n.G,t.K5=n.P,n.Q,n.j,n.d,n.K,n.F,n.f,n.e,n.l,n.q,n.n,n.m,t.GL=n.X,n.Z,n.D,n.V,n.W,n.L,n.M,t.x=n.r,n.H,t.z1=n._,t.Oq=n.x,n.w,n.y,n.z},88459:(e,t,a)=>{function n(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}function r(e){let t=n(e);return null==t||t}var i=a(9641);a(30404),a(31356),a(20470);var s=a(5216),o=(e,t)=>{t||(t={});let a=new URL(e instanceof URL?e:e instanceof Request?e.url:e),i=n([t,"access",e=>e.headers,"optionalAccess",e=>e.Authorization]),[s,o]=window.atob(i.substring(6)).split(":");return r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.Authorization]),r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.authorization]),s&&a.searchParams.set("user",s),o&&a.searchParams.set("password",o),fetch(`${a.toString()}`,t)},l=(e,t)=>(t||(t={}),r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.Authorization]),r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.authorization]),fetch(e,t)),u=t.Kc=async({host:e,username:t,password:a})=>{try{return(await new c({host:e,username:t,password:a}).query({query:"SELECT 1",format:"TabSeparatedRaw"})).text().then(e=>"1"===e.trim())}catch(e){return console.warn("Failed to test local connection",e),!1}},c=t.aP=class extends i.y{constructor(e){super(e)}buildClient(){var e,t,a,n;let r=this.host,i,u=null!=this.username&&null!=this.password,c={};u?(i=o,c.add_http_cors_header=1):(r=`${window.origin}${this.host}`,i=l);let m=new URL(r);return s.createClient.call(void 0,{url:m.origin,pathname:m.pathname,clickhouse_settings:c,username:(e=this.username,t=()=>"",null!=e?e:t()),password:(a=this.password,n=()=>"",null!=a?a:n()),keep_alive:{enabled:!1},fetch:i,request_timeout:this.requestTimeout,application:this.application})}async __query({query:e,format:t="JSON",query_params:a={},abort_signal:n,clickhouse_settings:r,connectionId:i,queryId:s}){null==this.client&&(this.client=this.buildClient()),this.logDebugQuery(e,a);let o=this.processClickhouseSettings(r),l={...i&&"local"!==i?{"x-hyperdx-connection-id":i}:{}};return this.getClient().query({query:e,query_params:a,format:t,abort_signal:n,http_headers:l,clickhouse_settings:o,query_id:s})}};t.aP=c,t.Kc=u},91021:(e,t,a)=>{a.d(t,{Kc:()=>b,HD:()=>_,zu:()=>R});var n=a(75155),r=a(35467),i=a(67270),s=a(76089),o=a(73854),l=a(93251),u=a(12482),c=a(43152),m=a(49672),d=a(98142),p=a(79339),g=a.n(p);let h="hyperdx",f=e=>{let t=g().sha1(e),a=(0,i.v4)(e.aggCondition);switch(e.aggFn){case"min":case"max":case"sum":case"avg":return{fieldName:t,fn:`${e.aggFn}${a?"If":""}`,args:["Nullable(Float64)",...a?["UInt8"]:[]]};case"count":return{fieldName:t,fn:`${e.aggFn}${a?"If":""}`,args:a?["UInt8"]:[]};default:throw Error(`Unsupported aggregation function: ${e.aggFn}`)}},y=async(e,t,a,n)=>{let s,o={...e,...Array.isArray(e.select)&&{select:e.select.map(e=>{let{fieldName:t,fn:a}=f(e);return{...e,aggFn:`${a}State`,alias:t}})},granularity:n??e.granularity,dateRange:void 0,orderBy:void 0,limit:void 0},l=await (0,i.PV)(o,t,a),u=g().sha1(l),c=`${e.from.tableName}_mv_${u}`,m={...e,...Array.isArray(e.select)&&{select:e.select.map(e=>{let{fieldName:t,fn:a}=f(e);return{aggFn:`${a}Merge`,valueExpression:t,alias:`${e.aggFn}(${e.valueExpression})`}})},timestampValueExpression:i.n_,from:{databaseName:h,tableName:c}};return{mtViewName:c,dataTableDDL:(0,r.l6)(((e,t)=>{if(!Array.isArray(t.select))throw Error("Only array select is supported");if((0,i.x1)(t))throw Error("Group by is not supported");return(0,r.kg)`CREATE TABLE IF NOT EXISTS ${h}.${{Identifier:e}} + `}];t.a=eq,t.b=K,t.c=G,t.d=Q,t.e=z,t.f=Y,t.g=J,t.h=function(e){return{...e,operator:X[e.operator]}},t.i=Z,t.j=er,t.k=ep,t.l=eg,t.m=eh,t.n=ef,t.o=ey,t.p=eE,t.q=eA,t.r=eT,t.s=eS,t.t=e_,t.u=eR,t.v=eb,t.w=ew,t.x=eI,t.y=e$,t.z=ex,t.A=eO,t.B=function(e){let t={};if(null==e)return t;try{let a=eO(e),[n]=d.C.call(void 0,a),{sqlWithReplacements:r,replacements:i}=d.i.call(void 0,n),s=new h.Parser().astify(r,{database:"Postgresql",parseOptions:{includeLocations:!0}});for(let[e,a]of(null!=s.columns&&s.columns.forEach(e=>{null!=e.as&&("expr"===e.type&&"column_ref"===e.expr.type?t[e.as]=e.expr.array_index&&o([e,"access",e=>e.expr,"access",e=>e.array_index,"access",e=>e[0],"optionalAccess",e=>e.brackets])?`${e.expr.column.expr.value}['${e.expr.array_index[0].index.value}']`:e.expr.column.expr.value:null!=e.expr.loc?t[e.as]=r.slice(e.expr.loc.start.offset,e.expr.loc.end.offset):console.error("Unknown alias column type",e))}),Object.entries(t)))for(let[n,r]of i)a.includes(n)&&(t[e]=a.replaceAll(n,r))}catch(t){console.error("Error parsing alias map with JSON removed",t,"for query",e)}return t},t.C=ev,t.D=eL,t.E=eF,t.F=3e6,t.G=S,t.H=_,t.I=function(e){return{databaseName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.databaseName]),()=>""),tableName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.tableName]),()=>""),connectionId:s(o([e,"optionalAccess",e=>e.connection]),()=>"")}},t.J=function(e){return{databaseName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.databaseName]),()=>""),tableName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.tableName]),()=>""),connectionId:s(o([e,"optionalAccess",e=>e.connection]),()=>"")}},t.K=b,t.L=w,t.M=q,t.N=U,t.O=H,t.P=W,t.Q=B},35467:(e,t,a)=>{var n=a(24914);a(78666),a(25496),a(64700),n.y,t.p1=n.u,t.A2=n.l,t.kg=n.r,t.D7=n.B,n.w,n.x,n.s,t.rj=n.n,n.q,t.bZ=n.v,n.p,t.P1=n.C,n.m,n.E,t.zo=n.D,t.Zo=n.o,t.l6=n.A,t.k$=n.z,n.t},35871:(e,t,a)=>{a.d(t,{A:()=>u});var n=a(6029),r=a(75155),i=a(76089),s=a(63085),o=a(45749),l=a(7565);function u(e){let t,a,u,c,m,d=(0,r.c)(12),{originalDateRange:p,effectiveDateRange:g,mvGranularity:h}=e,f=(0,l.a)();if(!g||(0,i._p)(g,p))return null;d[0]!==g[0]||d[1]!==f?(t=f(g[0]),d[0]=g[0],d[1]=f,d[2]=t):t=d[2],d[3]!==g[1]||d[4]!==f?(a=f(g[1]),d[3]=g[1],d[4]=f,d[5]=a):a=d[5],d[6]!==t||d[7]!==a?(u=[t,a],d[6]=t,d[7]=a,d[8]=u):u=d[8];let[y,E]=u,A=h?`Querying ${y} - ${E} due to ${h} rollups in query acceleration.`:`Querying ${y} - ${E} to show complete intervals.`;return d[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)(o.A,{size:16,color:"var(--color-text)"}),d[9]=c):c=d[9],d[10]!==A?(m=(0,n.jsx)(s.m,{multiline:!0,maw:500,label:A,children:c}),d[10]=A,d[11]=m):m=d[11],m}},43152:(e,t,a)=>{a.d(t,{gT:()=>N,Hx:()=>R,WG:()=>T,zE:()=>v,x5:()=>x,p2:()=>L,nH:()=>F,JD:()=>q,xh:()=>O,wt:()=>b,VH:()=>W,m9:()=>z,A7:()=>j,qL:()=>C,_t:()=>K,dY:()=>G,Z7:()=>Q,O7:()=>S,ik:()=>H,zg:()=>P,r4:()=>M,eY:()=>$,xu:()=>Y,Ht:()=>I,W6:()=>w,GJ:()=>_});var n=a(6029),r=a(75155),i=a(86508),s=a(11370),o=a(76694),l=a.n(o),u=a(80519),c=a.n(u),m=a(6663),d=a(35467),p=a(67270),g=a(76089),h=a(82641),f=a(60665),y=a(35871);let E={"k8s.pod.cpu.utilization":{newName:"k8s.pod.cpu.usage",versionThreshold:"0.125.0"},"k8s.node.cpu.utilization":{newName:"k8s.node.cpu.usage",versionThreshold:"0.125.0"},"container.cpu.utilization":{newName:"container.cpu.usage",versionThreshold:"0.125.0"}};a(9897);var A=a(92917);let N=[{value:"count",label:"Count of Events",isAttributable:!1},{value:"sum",label:"Sum",isAttributable:!1},{value:"p99",label:"99th Percentile"},{value:"p95",label:"95th Percentile"},{value:"p90",label:"90th Percentile"},{value:"p50",label:"Median"},{value:"avg",label:"Average"},{value:"max",label:"Maximum"},{value:"min",label:"Minimum"},{value:"count_distinct",label:"Count Distinct",isAttributable:!1},{value:"any",label:"Any"},{value:"none",label:"Custom"}],T={name:"",select:[{aggFn:"count",aggCondition:"",aggConditionLanguage:"lucene",valueExpression:""}],where:"",whereLanguage:"lucene",displayType:h.t2.Line,granularity:"auto",alignDateRangeToGranularity:!0};function S(e){let t="auto"===e.granularity||null==e.granularity?(0,g.tA)(e.dateRange,80):e.granularity,a=!1===e.alignDateRangeToGranularity?e.dateRange:(0,g.Ol)(e.dateRange,t);return{...e,dateRange:a,dateRangeEndInclusive:!1,granularity:t,limit:{limit:1e5}}}function _(e){let t,a,n=(0,r.c)(7);n[0]!==e?(t=S(e),n[0]=e,n[1]=t):t=n[1];let i=t;return n[2]!==i.dateRange||n[3]!==i.displayType||n[4]!==i.fillNulls||n[5]!==i.granularity?(a={displayType:i.displayType,dateRange:i.dateRange,fillNulls:i.fillNulls,granularity:i.granularity},n[2]=i.dateRange,n[3]=i.displayType,n[4]=i.fillNulls,n[5]=i.granularity,n[6]=a):a=n[6],a}let R=" \xb7 ",b=" (previous)";function C(e){let[t,a]=e.split(" "),n=Number.parseInt(t);switch(a){case"second":return n;case"minute":return 60*n;case"hour":return 60*n*60;case"day":return 60*n*1440;default:return 0}}function w(e,t){let[a,n]=t.split(" "),r=Number.parseInt(a),i=Math.floor;switch(n){case"second":return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),i(e.getUTCSeconds()/r)*r));case"minute":return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),i(e.getUTCMinutes()/r)*r));case"hour":return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),i(e.getUTCHours()/r)*r));case"day":return new Date(1e3*(i(e.getTime()/1e3/60/60/24/r)*r)*86400);default:return e}}function I(e,t,a){let n=[],r=w(e,a),s=C(a);for(;r{let t=e.toLowerCase();return["count","countIf","countDistinct","sum","sumIf","avg","avgIf","min","max","any","anyLast","groupArray","groupArrayInsertAt","groupArrayMovingAvg","groupArraySample","groupUniqArray","groupUniqArrayIf","groupArrayIntersect","groupArrayIntersectIf","groupArrayReduce","groupBitmap","groupBitmapIf","groupBitmapOr","groupBitmapXor","quantile","quantileIf","quantileExact","quantileExactWeighted","quantileTiming","quantileTimingWeighted","quantileTDigest","quantileTDigestWeighted","quantileBFloat16","quantileBFloat16Weighted","quantiles","median","medianExact","medianTDigest","medianBFloat16","stddevPop","stddevPopIf","stddevSamp","stddevSampIf","varPop","varPopIf","varSamp","varSampIf","covarPop","covarSamp","corr","uniq","uniqExact","uniqCombined","uniqCombined64","uniqHLL12","uniqTheta","groupBitAnd","groupBitOr","groupBitXor","groupArrayMap","groupArrayTuple","groupArraySorted","topK","topKIf","topKWeighted","argMin","argMax","minMap","maxMap","runningDifference","retention","sequenceCount","sequenceMatch","histogram","simpleLinearRegression","stochasticLinearRegression","categoricalInformationValue","sumMap","sumMapFiltered","sumWithOverflow","entropy","skewPop","skewSamp","kurtPop","kurtSamp"].some(e=>t.includes(e.toLowerCase()+"("))},x={factor:1,output:"number",mantissa:0,thousandSeparated:!0},O={factor:1,output:"number",mantissa:2,thousandSeparated:!0,unit:"ms"},v={output:"percent",mantissa:0},L={output:"percent",mantissa:0},F={output:"byte"},q={output:"byte"};function D(e,t){return(0,d.P1)(e,[d.A2.Number])?.filter(e=>!t.has(e.name))}function U(e){return(0,d.P1)(e,[d.A2.String,d.A2.Map,d.A2.Array])}function M(e){let[t,a]=e,n=(0,s.A)(a,t);return[new Date(t.getTime()-1e3*n),new Date(a.getTime()-1e3*n)]}function k({response:e,lineDataMap:t,tsBucketMap:a,source:n,previousPeriodOffsetSeconds:r,isPreviousPeriod:i,hiddenSeries:s=[]}){let{meta:o,data:l}=e;if(null==o)throw Error("No meta data found in response");let u=(0,d.zo)(o);if(null==u)throw Error(`No timestamp column found with meta: ${JSON.stringify(o)}`);let c=D(o,new Set(s))??[],m=U(o)??[],p=1===c.length,g=m.length>0;for(let e of l){let s=new Date(e[u.name]),o=i?r:0,l=Math.round(s.getTime()/1e3+o);for(let r of c){let s,o=a.get(l);null==o&&(o={[u.name]:l},a.set(l,o));let c=[...p&&g?[]:[r.name],...m.map(t=>e[t.name])].join(R),d=`${c}${b}`,f=i?d:c,y=e[r.name],E="number"==typeof y?y:Number.parseFloat(y);o[f]=E,n&&1===m.length&&m[0].name===(n.kind===h.GL.Log?n.severityTextExpression:n.statusCodeExpression)&&(s=(0,A.aw)(e[m[0].name])),t[f]={dataKey:f,currentPeriodKey:c,previousPeriodKey:d,displayName:f,color:s,isDashed:i}}}}function P({currentPeriodResponse:e,previousPeriodResponse:t,dateRange:a,granularity:n,generateEmptyBuckets:r=!0,source:i,hiddenSeries:s=[],previousPeriodOffsetSeconds:o=0}){let l,u,c=e.meta;if(null==c)throw Error("No meta data found in response");let m=(0,d.zo)(c),p=D(c,new Set(s))??[],g=U(c)??[],h=1===p.length;if(null==m)throw Error(`No timestamp column found with meta: ${JSON.stringify(c)}`);let f=new Map,y={};k({response:e,lineDataMap:y,tsBucketMap:f,source:i,isPreviousPeriod:!1,previousPeriodOffsetSeconds:o,hiddenSeries:s}),null!=t&&k({response:t,lineDataMap:y,tsBucketMap:f,source:i,isPreviousPeriod:!0,previousPeriodOffsetSeconds:o,hiddenSeries:s});let E=(0,A.EA)(),N=Object.values(y).sort((e,t)=>E.findIndex(t=>t===e.color)-E.findIndex(e=>e===t.color));return r&&null!=n&&I(a[0],a[1],n).forEach(e=>{let t=e.getTime()/1e3,a=f.get(t);if(null==a){let e={[m.name]:t};for(let t of N)e[t.dataKey]=0;f.set(t,e)}else{for(let e of N)null==a[e.dataKey]&&(a[e.dataKey]=0);f.set(t,a)}}),{graphResults:Array.from(f.values()).sort((e,t)=>e[m.name]-t[m.name]),timestampColumn:m,lineData:(l=new Map,u=0,N.map(e=>{let t=e.currentPeriodKey;return l.has(t)?e.color=l.get(t):(e.color||(e.color=(0,A.ob)(u++,e.displayName??e.dataKey)),l.set(t,e.color)),e})),groupColumns:g.map(e=>e.name),valueColumns:p.map(e=>e.name),isSingleValueColumn:h}}let V=e=>{if(null==e)return e;if(e.endsWith("_rate"))return V(e.replace("_rate",""));if("p50"===e||"p90"===e||"p95"===e||"p99"===e)return"quantile";if("count_per_sec"===e||"count_per_min"===e||"count_per_hour"===e)return"count";if(["avg","count","count_distinct","last_value","max","min","sum"].includes(e))return e;throw Error(`Unsupported aggregation function in v2: ${e}`)},H=(e,t)=>{let{series:a,granularity:n,dateRange:r,displayType:i="line",fillNulls:s}=e;if(a.length<1)throw Error("series is required");let o=a[0],l="stacked_bar"===i?h.t2.StackedBar:h.t2.Line;if("logs"===o.table)throw Error("IMPLEMENT ME (logs)");if("metrics"===o.table){let e;if(null==t.metric)throw Error("source.metric is required for metrics");return{select:a.map(e=>{let t=e.field??"",[a,n]=t.split(" - ").map(e=>e.trim()),r=function(e){let t=E[e];if(t)return c().format("MetricName IN (?)",[[e,t.newName]])}(a),i=m.fc(h.SX).parse(n?.toLowerCase());return{aggFn:V(e.aggFn),metricType:i,valueExpression:t,metricName:a,metricNameSql:r,aggConditionLanguage:"lucene",aggCondition:e.where}}),from:t.metric?.from,numberFormat:o.numberFormat,groupBy:(e=t.metric,o.groupBy.map(t=>t.startsWith("k8s")?`${e.resourceAttributesExpression}['${t}']`:t).join(",")),dateRange:r,connection:t.metric?.connection,metricTables:t.metric?.metricTables,timestampValueExpression:t.metric?.timestampValueExpression,granularity:n,where:"",fillNulls:s,displayType:l}}throw Error(`unsupported table in v2: ${o.table}`)};function W({source:e,config:t,dateRange:a,groupFilters:n,valueRangeFilter:r}){if(!e?.id)return null;let i=(0,p.bv)(t);if(i&&e?.logSourceId==null)return f.$e.show({color:"yellow",message:"No log source is associated with the selected metric source."}),null;let s=t.where,o=t.whereLanguage||"lucene";0===s.length&&Array.isArray(t.select)&&1===t.select.length&&(s=t.select[0].aggCondition??"",o=t.select[0].aggConditionLanguage??"lucene");let l=[];if(n&&n.length>0&&n.forEach(({column:e,value:t})=>{if(e&&null!=t){let a=`${e} IN (${c().escape(t)})`;l.push({type:"sql",condition:a})}}),r){let{expression:e,value:t,threshold:a=.05}=r;if(!$(e)){let n=`${e} BETWEEN ${c().escape(t*(1-a))} AND ${c().escape(t*(1+a))}`;l.push({type:"sql",condition:n})}}let u=a[0].getTime(),m=a[1].getTime(),d={source:e?.id??"",where:s,whereLanguage:o,filters:JSON.stringify([...t.filters??[],...l]),isLive:"false",from:u.toString(),to:m.toString()};return i&&(d.where="",d.whereLanguage="lucene",d.filters=JSON.stringify([]),d.source=e?.logSourceId??""),t.eventTableSelect&&(d.select=t.eventTableSelect),`/search?${new URLSearchParams(d).toString()}`}function B(e){return e?"string"==typeof e?e.split(",").map(e=>e.trim()):e.map(e=>"string"==typeof e?e:e.valueExpression):[]}function j({row:e,source:t,config:a,dateRange:n}){let r;if(!t?.id)return null;let i=[];B(a.groupBy).forEach(t=>{null!=e[t]&&i.push({column:t,value:e[t]})});let s=a.select?.[0];if(s){let t="string"==typeof s?void 0:s.aggFn;if(N.find(e=>e.value===t)?.isAttributable!==!1){let t="string"==typeof s?s:s.valueExpression,n=new Set(B(a.groupBy)),i=Object.keys(e).find(e=>!n.has(e)),o=i?e[i]:void 0;null!=o&&"number"==typeof o&&(r={expression:t,value:o})}}return W({source:t,config:a,dateRange:n,groupFilters:i,valueRangeFilter:r})}function K(e){return l()(e,["granularity","groupBy"])}function G(e){return l()(e,["granularity"])}function Q(e){let t=structuredClone(l()(e,["granularity"]));return t.limit||(t.limit={limit:200}),t.groupBy&&"string"==typeof t.groupBy&&!t.orderBy&&(t.orderBy=t.groupBy),t}function z({mvOptimizationData:e,originalDateRange:t}){let a=e?.optimizedConfig?.dateRange;if(!a)return null;let r=e?.explanations.find(e=>e.success)?.mvConfig.minGranularity;return(0,n.jsx)(y.A,{originalDateRange:t,effectiveDateRange:a,mvGranularity:r},"date-range-indicator")}function Y(e){return!1!==e}},49672:(e,t,a)=>{a.d(t,{VH:()=>p,W:()=>m,fu:()=>d,uI:()=>h});var n=a(75155),r=a(35467),i=a(88459),s=a(12482),o=a(98142),l=a(93108),u=a(6876),c=a(61410);let m=(e={})=>{if(o.VO){let t=(0,l.xZ)();return 0===t.length?(console.warn("No local connection found"),new i.aP({host:"",...e})):new i.aP({host:t[0].host,username:t[0].username,password:t[0].password,...e})}return new i.aP({host:"/api/clickhouse-proxy",...e})},d=(e={})=>{let{data:t}=u.Ay.useMe(),a=t?.team?.queryTimeout;return void 0!==a?e.queryTimeout=a:e.queryTimeout=c.rb,m(e)};function p(e,t){let a,r,i,o,l=(0,n.c)(8),{connectionId:u}=e;l[0]===Symbol.for("react.memo_cache_sentinel")?(a=m(),l[0]=a):a=l[0];let c=a;return l[1]!==u?(r=["direct_datasources/databases",u],i=async()=>await c.query({query:"SHOW DATABASES",connectionId:u}).then(g),l[1]=u,l[2]=r,l[3]=i):(r=l[2],i=l[3]),l[4]!==t||l[5]!==r||l[6]!==i?(o={queryKey:r,queryFn:i,staleTime:3e5,...t},l[4]=t,l[5]=r,l[6]=i,l[7]=o):o=l[7],(0,s.I)(o)}function g(e){return e.json()}function h({database:e,connectionId:t},a){let n=m();return(0,s.I)({queryKey:[`direct_datasources/databases/${e}/tables`,t],queryFn:async()=>{let a=(0,r.kg)`SHOW TABLES FROM ${{Identifier:e}}`;return await n.query({query:a.sql,query_params:a.params,connectionId:t}).then(e=>e.json())},staleTime:3e5,...a})}},57389:(e,t,a)=>{a.d(t,{d:()=>c});var n=a(75155),r=a(2615),i=a(4308),s=a(12482),o=a(49672),l=a(81973),u=a(78550);function c(e,t){let a,c,m,d,p,g=(0,n.c)(16);g[0]!==t?(a=t||{},g[0]=t,g[1]=a):a=g[1];let{enabled:h}=a,f=(0,u.Ge)(),y=(0,o.fu)(),E=e?.source;g[2]!==E?(c={id:E},g[2]=E,g[3]=c):c=g[3];let{data:A,isLoading:N}=(0,l.Fo)(c);g[4]!==e?(m=["optimizationExplanation",e],g[4]=e,g[5]=m):m=g[5],g[6]!==y||g[7]!==e||g[8]!==f||g[9]!==A?(d=async t=>{let{signal:a}=t;return e&&A?await (0,r.bn)(e,f,y,a,A):{explanations:[]}},g[6]=y,g[7]=e,g[8]=f,g[9]=A,g[10]=d):d=g[10];let T=(void 0===h||h)&&!N&&!!e&&!!A;return g[11]!==t||g[12]!==m||g[13]!==d||g[14]!==T?(p={queryKey:m,queryFn:d,placeholderData:i.rX,staleTime:5e3,...t,enabled:T},g[11]=t,g[12]=m,g[13]=d,g[14]=T,g[15]=p):p=g[15],(0,s.I)(p)}},61410:(e,t,a)=>{a.d(t,{Km:()=>n,Nz:()=>i,rb:()=>r});let n=200,r=60;function i(e){return{limit:{limit:e?.searchRowLimit??n}}}},67270:(e,t,a)=>{var n=a(24914);a(78666),a(25496),a(64700),t.n_=n.b,n.h,t.bv=n.e,t.v4=n.i,t.lE=n.d,t.x1=n.c,t.PV=n.k,n.f,n.g,n.j},69519:(e,t,a)=>{a.d(t,{Me:()=>i,so:()=>r});let n=[21600,21600,43200,86400];function r(e,t,a=n){if(e.getTime()===t.getTime())return[{startTime:e,endTime:t,windowIndex:0,direction:"DESC"}];let i=[],s=new Date(t),o=0;for(;s>e;){let t=1e3*(a[o]||a[a.length-1]),n=new Date(Math.max(s.getTime()-t,e.getTime()));i.push({endTime:new Date(s),startTime:n,windowIndex:o,direction:"DESC"}),s=n,o++}return i}function i(e,t,a=n){if(e.getTime()===t.getTime())return[{startTime:e,endTime:t,windowIndex:0,direction:"ASC"}];let r=[],s=new Date(e),o=0;for(;s{var n=a(67599),r=n.expandPhrases.call(void 0,["SELECT [ALL | DISTINCT]"]),i=n.expandPhrases.call(void 0,["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET"]),s=n.expandPhrases.call(void 0,["CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE"]),o=n.expandPhrases.call(void 0,["CREATE [RECURSIVE] VIEW","UPDATE","WHERE CURRENT OF","DELETE FROM","DROP TABLE","ALTER TABLE","ADD COLUMN","DROP [COLUMN]","RENAME COLUMN","RENAME TO","ALTER [COLUMN]","{SET | DROP} DEFAULT","ADD SCOPE","DROP SCOPE {CASCADE | RESTRICT}","RESTART WITH","TRUNCATE TABLE","SET SCHEMA"]),l={name:"clickhouse",tokenizerOptions:{reservedSelect:r,reservedClauses:[...i,...s,...o],reservedSetOperations:n.expandPhrases.call(void 0,["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),reservedJoins:n.expandPhrases.call(void 0,["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),reservedPhrases:n.expandPhrases.call(void 0,["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),reservedKeywords:["ALL","ALLOCATE","ALTER","ANY","ARE","AS","ASC","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHECK","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DEALLOCATE","DAY","DECLARE","DEFAULT","DELETE","DEREF","DESC","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INTERSECT","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","NATURAL","NEW","NO","NONE","NOT","NULL","NULLIF","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"],reservedDataTypes:["ARRAY","BIGINT","BINARY LARGE OBJECT","BINARY VARYING","BINARY","BLOB","BOOLEAN","CHAR LARGE OBJECT","CHAR VARYING","CHAR","CHARACTER LARGE OBJECT","CHARACTER VARYING","CHARACTER","CLOB","DATE","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MULTISET","NATIONAL CHAR VARYING","NATIONAL CHAR","NATIONAL CHARACTER LARGE OBJECT","NATIONAL CHARACTER VARYING","NATIONAL CHARACTER","NCHAR LARGE OBJECT","NCHAR VARYING","NCHAR","NCLOB","NUMERIC","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR"],reservedFunctionNames:["GROUPING","RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER","POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET","SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE","CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP","COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC","CAST","COALESCE","NULLIF","ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],extraParens:["[]"],paramTypes:{positional:!0},operators:["||","%"]},formatOptions:{onelineClauses:[...s,...o],tabularOnelineClauses:o}};t.GP=function(e){return n.formatDialect.call(void 0,e,{dialect:l})}},78550:(e,t,a)=>{a.d(t,{Ii:()=>F,ws:()=>w,Zh:()=>T,lo:()=>L,kN:()=>v,n$:()=>S,Ge:()=>N,Sh:()=>R,nT:()=>$,Z2:()=>I});var n=a(75155),r=a(55729),i=a(79339),s=a.n(i),o=a(35467),l=a(93251),u=a(12482),c=a(4308),m=a(6876),d=a(98142),p=a(93108),g=a(3145),h=a(49672),f=a(61410);let y=()=>(0,g.yb)((0,h.W)({queryTimeout:f.rb}));var E=a(81973),A=a(92917);function N(){let e,t,a,i,s,o=(0,n.c)(10);o[0]===Symbol.for("react.memo_cache_sentinel")?(e=y(),o[0]=e):e=o[0];let[u,c]=(0,r.useState)(e),{data:g}=m.Ay.useMe(),h=(0,r.useRef)(!1),f=(0,l.jE)();o[1]!==f?(t=()=>{if(void 0===window.document||!d.VO)return;let e=e=>{e.key===p.Gs&&e.newValue&&(c(y()),h.current=!1,f.resetQueries())};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},a=[f],o[1]=f,o[2]=t,o[3]=a):(t=o[2],a=o[3]),(0,r.useEffect)(t,a),o[4]!==g||o[5]!==u?(i=()=>{g?.team?.metadataMaxRowsToRead&&!h.current&&(u.setClickHouseSettings({max_rows_to_read:g.team.metadataMaxRowsToRead}),h.current=!0)},o[4]=g,o[5]=u,o[6]=i):i=o[6];let E=g?.team?.metadataMaxRowsToRead;return o[7]!==u||o[8]!==E?(s=[E,u],o[7]=u,o[8]=E,o[9]=s):s=o[9],(0,r.useEffect)(i,s),u}function T(e,t){let a,r,i,s=(0,n.c)(13),{databaseName:o,tableName:l,connectionId:c}=e,m=N();s[0]!==o||s[1]!==l?(a=["useMetadata.useColumns",{databaseName:o,tableName:l}],s[0]=o,s[1]=l,s[2]=a):a=s[2],s[3]!==c||s[4]!==o||s[5]!==m||s[6]!==l?(r=async()=>m.getColumns({databaseName:o,tableName:l,connectionId:c}),s[3]=c,s[4]=o,s[5]=m,s[6]=l,s[7]=r):r=s[7];let d=!!o&&!!l&&!!c;return s[8]!==t||s[9]!==a||s[10]!==r||s[11]!==d?(i={queryKey:a,queryFn:r,enabled:d,...t},s[8]=t,s[9]=a,s[10]=r,s[11]=d,s[12]=i):i=s[12],(0,u.I)(i)}function S(e,t){let a,r,i,s=(0,n.c)(10),l=N();s[0]!==e?(a=["useMetadata.useJsonColumns",e],s[0]=e,s[1]=a):a=s[1],s[2]!==l||s[3]!==e?(r=async()=>{if(!e)return[];let t=await l.getColumns(e);return(0,o.P1)(t,[o.A2.JSON])?.map(_)??[]},s[2]=l,s[3]=e,s[4]=r):r=s[4];let c=e&&!!e.databaseName&&!!e.tableName&&!!e.connectionId;return s[5]!==t||s[6]!==a||s[7]!==r||s[8]!==c?(i={queryKey:a,queryFn:r,enabled:c,...t},s[5]=t,s[6]=a,s[7]=r,s[8]=c,s[9]=i):i=s[9],(0,u.I)(i)}function _(e){return e.name}function R(e,t){let a,r,i,s,o=(0,n.c)(14),l=N(),{data:c,isFetched:d}=m.Ay.useMe();return o[0]!==e?(a=["useMetadata.useMultipleAllFields",...e.map(C)],o[0]=e,o[1]=a):a=o[1],o[2]!==c?.team||o[3]!==l||o[4]!==e?(r=async()=>{let t=c?.team;if(t?.fieldMetadataDisabled)return[];let a=await Promise.all(e.map(e=>l.getAllFields(e)));return 1===a.length?a[0]:F(a)},o[2]=c?.team,o[3]=l,o[4]=e,o[5]=r):r=o[5],o[6]!==d||o[7]!==e?(i=e.length>0&&e.every(b)&&d,o[6]=d,o[7]=e,o[8]=i):i=o[8],o[9]!==t||o[10]!==a||o[11]!==r||o[12]!==i?(s={queryKey:a,queryFn:r,enabled:i,...t},o[9]=t,o[10]=a,o[11]=r,o[12]=i,o[13]=s):s=o[13],(0,u.I)(s)}function b(e){return!!e.databaseName&&!!e.tableName&&!!e.connectionId}function C(e){return{...e}}function w(e,t){let a,r=(0,n.c)(2);return r[0]!==e?(a=e?[e]:[],r[0]=e,r[1]=a):a=r[1],R(a,t)}function I(e,t){let a,r,i,s=(0,n.c)(13),{databaseName:o,tableName:l,connectionId:c}=e,m=N();s[0]!==o||s[1]!==l?(a=["useMetadata.useTableMetadata",{databaseName:o,tableName:l}],s[0]=o,s[1]=l,s[2]=a):a=s[2],s[3]!==c||s[4]!==o||s[5]!==m||s[6]!==l?(r=async()=>await m.getTableMetadata({databaseName:o,tableName:l,connectionId:c}),s[3]=c,s[4]=o,s[5]=m,s[6]=l,s[7]=r):r=s[7];let d=!!o&&!!l&&!!c;return s[8]!==t||s[9]!==a||s[10]!==r||s[11]!==d?(i={queryKey:a,queryFn:r,staleTime:3e5,enabled:d,...t},s[8]=t,s[9]=a,s[10]=r,s[11]=d,s[12]=i):i=s[12],(0,u.I)(i)}function $(e,t){let a,r,i,s=(0,n.c)(12),{chartConfigs:o,keys:l,limit:m,disableRowLimit:d}=e,p=N(),g=(0,A.$r)(o);s[0]!==t?(a=t||{},s[0]=t,s[1]=a):a=s[1];let{enabled:h}=a,{data:f,isLoading:y}=(0,E.oE)();s[2]!==g||s[3]!==d||s[4]!==l||s[5]!==m||s[6]!==p||s[7]!==f?(r=async e=>{let{signal:t}=e;return(await Promise.all(g.map(e=>{let a=e.source?f?.find(t=>t.id===e.source):void 0;return p.getKeyValuesWithMVs({chartConfig:e,keys:l.slice(0,20),limit:m,disableRowLimit:d,source:a,signal:t})}))).flatMap(x)},s[2]=g,s[3]=d,s[4]=l,s[5]=m,s[6]=p,s[7]=f,s[8]=r):r=s[8];let T=(0,u.I)({queryKey:["useMetadata.useGetKeyValues",...g.map(O),...l,d],queryFn:r,staleTime:3e5,placeholderData:c.rX,...t,enabled:!!(void 0===h||h)&&!!l.length&&!y}),S=T.isLoading||y;return s[9]!==T||s[10]!==S?(i={...T,isLoading:S},s[9]=T,s[10]=S,s[11]=i):i=s[11],i}function x(e){return e}function O(e){return{...e}}function v(e,t){let a,r,i,s,o=(0,n.c)(16),{chartConfig:l,key:m,limit:d}=e,p=N();o[0]!==l.source?(a={id:l.source},o[0]=l.source,o[1]=a):a=o[1];let{data:g,isLoading:h}=(0,E.Fo)(a);o[2]!==l||o[3]!==m?(r=["useMetadata.useGetValuesDistribution",l,m],o[2]=l,o[3]=m,o[4]=r):r=o[4],o[5]!==l||o[6]!==m||o[7]!==d||o[8]!==p||o[9]!==g?(i=async()=>await p.getValuesDistribution({chartConfig:l,key:m,limit:d,source:g}),o[5]=l,o[6]=m,o[7]=d,o[8]=p,o[9]=g,o[10]=i):i=o[10];let f=!!m&&!h;return o[11]!==t||o[12]!==r||o[13]!==i||o[14]!==f?(s={queryKey:r,queryFn:i,staleTime:1/0,enabled:f,placeholderData:c.rX,retry:!1,...t},o[11]=t,o[12]=r,o[13]=i,o[14]=f,o[15]=s):s=o[15],(0,u.I)(s)}function L(e,t){let a,r,i=(0,n.c)(7),{chartConfig:s,keys:o,limit:l,disableRowLimit:u}=e;return i[0]!==s?(a=s?[s]:[],i[0]=s,i[1]=a):a=i[1],i[2]!==u||i[3]!==o||i[4]!==l||i[5]!==a?(r={chartConfigs:a,keys:o,limit:l,disableRowLimit:u},i[2]=u,i[3]=o,i[4]=l,i[5]=a,i[6]=r):r=i[6],$(r,t)}function F(e){let t=[],a=new Set;for(let n of e)for(let e of n){let n=s().sha1(e);a.has(n)||(a.add(n),t.push(e))}return t}},78666:(e,t,a)=>{function n(e,t){return null!=e?e:t()}function r(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}async function i(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}Object.defineProperty(t,"__esModule",{value:!0});var s=a(25496),o=a(64700),l=a(35362);async function u(e,t,a){try{return!!await i([await a.getColumn({...e,column:t}),"optionalAccess",async e=>e.type,"access",async e=>e.startsWith,"call",async e=>e("SimpleAggregateFunction(")])}catch(e){return!1}}async function c(e,t,a){try{let n=await i([await a.getColumn({...e,column:t}),"optionalAccess",async e=>e.type]);return n?r([n,"access",e=>e.match,"call",e=>e(/^AggregateFunction\(\s*([^(, ]+)\s*\(/),"optionalAccess",e=>e[1]]):void 0}catch(e){return}}async function m(e,t,a,n){return"count"===a?"sum":await u(e,t,n)?a:`${a}Merge`}function d(e,t,a){return e.aggregatedColumns.find(e=>e.aggFn===a&&("count"===e.aggFn||e.sourceColumn===t))}function p(e,t){if(e.minDate&&!t.dateRange)return!1;if(!e.minDate||!t.dateRange)return!0;let[a]=t.dateRange;return a>=new Date(e.minDate)}var g=/\bcount(If)?\s*\(/i;function h(e){return g.test(e.valueExpression)}async function f(e,t,a,n){var r;let{valueExpression:i,aggFn:s}=t,l=s;if(h(t))throw Error("Custom count() expressions are not supported with materialized views.");if(!l)return t;if(!((r=l)&&o.h.safeParse(r).success))throw Error(`Aggregate function ${l} is not valid.`);let u=d(e,"",l);if(u){let e=u.mvColumn,r=await m(a,e,l,n);return{...t,valueExpression:e,aggFn:r}}let p=d(e,i,l);if(!p)throw Error(`The aggregate function ${function(e,t){if("quantile"!==e)return e;switch(t){case .5:return"median";case .9:return"p90";case .95:return"p95";case .99:return"p99";default:return"quantile"}}(l,t.level)} is not available for column '${i}'.`);if("quantile"===t.aggFn&&"level"in t&&"number"==typeof t.level){let e=await c(a,p.mvColumn,n);e&&(l=e)}let g=await m(a,p.mvColumn,l,n);return{...t,valueExpression:p.mvColumn,aggFn:g}}async function y(e,t,a){if(!Array.isArray(e.select))return{errors:["Only array-based select statements are supported."]};if(t.minDate&&!p(t,e))return{errors:["The selected date range includes dates for which this view does not contain data."]};if(!function(e,t){if(!t.granularity&&!t.dateRange)return!0;let a=t.granularity||"auto";if("auto"===a&&!t.dateRange)return!1;let n="auto"===a&&t.dateRange?s.l.call(void 0,t.dateRange):a,r=s.m.call(void 0,n),i=s.m.call(void 0,e.minGranularity);return r>=i&&r%i==0}(t,e))return{errors:[e.granularity?`Granularity must be a multiple of the view's granularity (${t.minGranularity}).`:"The selected date range is too short for the granularity of this materialized view."]};let n={databaseName:t.databaseName,tableName:t.tableName,connectionId:e.connection},r=await Promise.allSettled(e.select.map(e=>f(t,e,n,a))),i=[],o=[];for(let e of r)"rejected"===e.status?o.push(e.reason.message):i.push(e.value);return o.length>0?{errors:o}:{optimizedConfig:{...structuredClone(e),select:i,timestampValueExpression:t.timestampColumn,from:{databaseName:t.databaseName,tableName:t.tableName},..."dateRange"in e&&e.dateRange?{dateRangeEndInclusive:!1,dateRange:s.A.call(void 0,e.dateRange,t.minGranularity)}:{}}}}async function E(e,t,a,r,i,s){let o=[],l;if(e.with){let a=await Promise.all(e.with.map(async e=>e.chartConfig&&e.chartConfig.from.databaseName===s.from.databaseName&&e.chartConfig.from.tableName===s.from.tableName?y(e.chartConfig,i,t):{optimizedConfig:void 0,errors:[]}));a.some(e=>!!e.optimizedConfig)&&(l={...structuredClone(e),with:e.with.map((e,t)=>({...e,chartConfig:n(a[t].optimizedConfig,()=>e.chartConfig)}))}),o.push(...a.flatMap(e=>n(e.errors,()=>[])))}if(e.from.databaseName===s.from.databaseName&&e.from.tableName===s.from.tableName){let a=await y(n(l,()=>e),i,t);a.optimizedConfig&&(l=a.optimizedConfig),o.push(...n(a.errors,()=>[]))}if(l){let{isValid:e,rowEstimate:n=1/0,error:i}=await a.testChartConfigValidity({config:l,metadata:t,opts:{abort_signal:r},querySettings:s.querySettings});if(i&&o.push(i),e)return{optimizedConfig:l,rowEstimate:n,errors:[]}}return{errors:o}}async function A(e,t,a,r,i){let s=n(i.materializedViews,()=>[]),o=await Promise.all(s.map(n=>E(e,t,a,r,n,i).then(e=>({...e,mvConfig:n})))),l,u=1/0;for(let e of o)e.optimizedConfig&&n(e.rowEstimate,()=>1/0)1/0));let c=o.map(({optimizedConfig:e,errors:t,rowEstimate:a,mvConfig:n})=>({success:!!e&&e===l,errors:t,rowEstimate:a,mvConfig:n}));return{optimizedConfig:l,explanations:c}}async function N(e,t,a,r,i){let{optimizedConfig:s}=await A(e,t,a,r,i);return n(s,()=>e)}function T(e){return`${e.databaseName}.${e.tableName}`}async function S({chartConfig:e,keys:t,source:a,clickhouseClient:i,metadata:o,signal:u}){let c=new Map((r([a,"optionalAccess",e=>e.materializedViews])||[]).map(e=>[T(e),e])),m=new Map;for(let[a,n]of c.entries()){let r=e.dateRange?function(e,t){let[a,n]=e,r=s.m.call(void 0,t);return Math.floor(l.differenceInSeconds.call(void 0,n,a)/r)}(e.dateRange,n.minGranularity):1/0;if(p(n,e)&&r>=3){let e=s.e.call(void 0,n.dimensionColumns),r=t.filter(t=>e.includes(t));r.length>0&&m.set(a,r)}}let d=[...m.entries()].map(([t,a])=>{let{databaseName:n,tableName:r,timestampColumn:i}=c.get(t);return{...structuredClone(e),timestampValueExpression:i,from:{databaseName:n,tableName:r},select:a.map((e,t)=>`groupUniqArray(1)(${e}) AS param${t}`).join(", ")}}),g=await Promise.all(d.map(async e=>{let{isValid:t,rowEstimate:n=1/0}=await i.testChartConfigValidity({config:e,metadata:o,opts:{abort_signal:u},querySettings:r([a,"optionalAccess",e=>e.querySettings])});return{id:T({databaseName:e.from.databaseName,tableName:e.from.tableName}),isValid:t,rowEstimate:n}})),h=new Map,f=new Set(t);for(let e of g.filter(e=>e.isValid).sort((e,t)=>e.rowEstimate-t.rowEstimate)){let t=n(m.get(e.id),()=>[]).filter(e=>f.has(e));if(t.length)for(let a of(h.set(e.id,t),t))f.delete(a)}let y=[...h.entries()].map(([t,a])=>{let{databaseName:n,tableName:r,timestampColumn:i}=c.get(t);return{chartConfig:{...structuredClone(e),timestampValueExpression:i,from:{databaseName:n,tableName:r}},keys:a}});return f.size&&y.push({chartConfig:structuredClone(e),keys:[...f]}),y}t.a=h,t.b=y,t.c=A,t.d=N,t.e=S},81973:(e,t,a)=>{a.d(t,{AF:()=>R,Al:()=>j,Dp:()=>V,Fo:()=>O,N8:()=>w,YI:()=>U,Ys:()=>P,fS:()=>B,kJ:()=>A,kg:()=>H,nd:()=>q,oE:()=>$,pM:()=>b,sr:()=>L,xg:()=>C});var n=a(75155),r=a(29594),i=a.n(r),s=a(79339),o=a.n(s),l=a(91985),u=a.n(l),c=a(35467),m=a(76089),d=a(82641),p=a(12482),g=a(93251),h=a(16932),f=a(6876),y=a(98142),E=a(92917);let A={resourceAttributesExpression:"ResourceAttributes",eventAttributesExpression:"LogAttributes",timestampValueExpression:"TimestampTime",implicitColumnExpression:"Body"},N={...A,timestampValueExpression:"Timestamp"},T="hdx-local-source";function S(e){u().transact(T,e,[])}function _(){if(u().has(T))return u().get(T,[])??[];try{let e=(0,E.Ol)(y.m6??"");if(null!=e)return e}catch(e){console.error("Error fetching default sources",e)}return[]}function R(e){return(0,m.AB)(e)[0]}function b(e){return e.spanNameExpression}function C(e){return e.displayedTimestampValueExpression??R(e.timestampValueExpression)}function w(e){let t=e.kind===d.GL.Trace?e.spanNameExpression??void 0:e.bodyExpression??e.implicitColumnExpression,a=(0,m.AB)(t??"");return 1===a.length?t:a[0]}function I(e){return{...e,timestampValueExpression:e.kind===d.GL.Session?e.timestampValueExpression||A.timestampValueExpression:e.timestampValueExpression}}function $(){let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["sources"],queryFn:x},t[0]=e):e=t[0],(0,p.I)(e)}async function x(){return y.VO?_():(await (0,f.Q5)("sources").json()).map(I)}function O(e){let t,a,r,i=(0,n.c)(6),{id:s}=e;i[0]===Symbol.for("react.memo_cache_sentinel")?(t=["sources"],i[0]=t):t=i[0],i[1]!==s?(a=e=>e.filter(e=>e.id===s)[0],i[1]=s,i[2]=a):a=i[2];let o=null!=s;return i[3]!==a||i[4]!==o?(r={queryKey:t,queryFn:v,select:a,enabled:o},i[3]=a,i[4]=o,i[5]=r):r=i[5],(0,p.I)(r)}async function v(){return y.VO?_():(await (0,f.Q5)("sources").json()).map(I)}function L(){let e,t=(0,n.c)(2),a=(0,g.jE)();return t[0]!==a?(e={mutationFn:F,onSuccess:()=>{a.invalidateQueries({queryKey:["sources"]})}},t[0]=a,t[1]=e):e=t[1],(0,h.n)(e)}async function F(e){let{source:t}=e;if(!y.VO)return await (0,f.Q5)(`sources/${t.id}`,{method:"PUT",json:t});S(e=>e.map(e=>e.id===t.id?t:e))}function q(){let e,t=(0,n.c)(2),a=(0,g.jE)();return t[0]!==a?(e={mutationFn:D,onSuccess:()=>{a.invalidateQueries({queryKey:["sources"]})}},t[0]=a,t[1]=e):e=t[1],(0,h.n)(e)}async function D(e){let{source:t}=e;if(y.VO){let e=_().find(e=>o()(i()(e,["kind","name","connection"]))===o()(i()(t,["kind","name","connection"])));if(e)return{...t,id:e.id};let a={...t,id:`l${(0,m.s5)(Math.random().toString())}`};return S(e=>[...e,a]),a}return(0,f.Q5)("sources",{method:"POST",json:t}).json()}function U(){let e,t=(0,n.c)(2),a=(0,g.jE)();return t[0]!==a?(e={mutationFn:M,onSuccess:()=>{a.invalidateQueries({queryKey:["sources"]})}},t[0]=a,t[1]=e):e=t[1],(0,h.n)(e)}async function M(e){let{id:t}=e;return y.VO?void S(e=>e.filter(e=>e.id!==t)):(0,f.Q5)(`sources/${t}`,{method:"DELETE"})}function k(e,t){let a=new Map(e.map(e=>[e.name,e]));return 0===Array.from(t).filter(e=>!a.has(e)).length}async function P({databaseName:e,tableName:t,connectionId:a,metadata:n}){let r=await n.getColumns({databaseName:e,tableName:t,connectionId:a}),i=(await n.getTableMetadata({databaseName:e,tableName:t,connectionId:a})).primary_key,s=new Set((0,c.bZ)(i)),o=k(r,["Timestamp","Body","SeverityText","TraceId","SpanId","ServiceName","LogAttributes","ResourceAttributes"]),l=k(r,["Timestamp","SpanName","Duration","SpanKind","TraceId","SpanId","ParentSpanId","ServiceName","SpanAttributes","ResourceAttributes","StatusCode","StatusMessage"]),u=r.some(e=>"Events.Timestamp"===e.name),m=(0,c.P1)(r,[c.A2.Date]),d=m?.find(e=>s.has(e.name));return{...null!=d?{timestampValueExpression:d.name}:{},...o?{defaultTableSelectExpression:"Timestamp, ServiceName as service, SeverityText as level, Body",serviceNameExpression:"ServiceName",bodyExpression:"Body",displayedTimestampValueExpression:"Timestamp",eventAttributesExpression:"LogAttributes",implicitColumnExpression:"Body",resourceAttributesExpression:"ResourceAttributes",spanIdExpression:"SpanId",traceIdExpression:"TraceId",severityTextExpression:"SeverityText"}:{},...l?{displayedTimestampValueExpression:"Timestamp",implicitColumnExpression:"SpanName",defaultTableSelectExpression:"Timestamp, ServiceName as service, StatusCode as level, round(Duration / 1e6) as duration, SpanName",eventAttributesExpression:"SpanAttributes",serviceNameExpression:"ServiceName",resourceAttributesExpression:"ResourceAttributes",durationExpression:"Duration",durationPrecision:9,parentSpanIdExpression:"ParentSpanId",spanIdExpression:"SpanId",spanKindExpression:"SpanKind",spanNameExpression:"SpanName",traceIdExpression:"TraceId",statusCodeExpression:"StatusCode",statusMessageExpression:"StatusMessage",...u?{spanEventsValueExpression:"Events"}:{}}:{}}}function V(e){return`(${e.durationExpression})/1e${(e.durationPrecision??9)-3}`}function H(e){return`(${e.durationExpression})/1e${e.durationPrecision??9}`}let W={[d.SX.Gauge]:["TimeUnix","ServiceName","MetricName","Value","Attributes","ResourceAttributes"],[d.SX.Histogram]:["TimeUnix","ServiceName","MetricName","Attributes","ResourceAttributes","Count","Sum","BucketCounts","ExplicitBounds"],[d.SX.Sum]:["TimeUnix","ServiceName","MetricName","Value","Attributes","ResourceAttributes"],[d.SX.Summary]:["Attributes","TimeUnix","Count","Sum","ValueAtQuantiles.Quantile","ValueAtQuantiles.Value","Flags","ServiceName","MetricName","ResourceAttributes"],[d.SX.ExponentialHistogram]:["Attributes","TimeUnix","Count","Sum","Scale","ZeroCount","PositiveOffset","PositiveBucketCounts","NegativeOffset","NegativeBucketCounts","Flags","ServiceName","MetricName","ResourceAttributes"]};async function B({databaseName:e,tableName:t,connectionId:a,metricType:n,metadata:r}){return!!t&&k(await r.getColumns({databaseName:e,tableName:t,connectionId:a}),W[n])}async function j({databaseName:e,tableName:t,connectionId:a,metadata:n}){if(!t)return!1;let r=await n.getColumns({databaseName:e,tableName:t,connectionId:a});return k(r,Object.values(A))||k(r,Object.values(N))}},82641:(e,t,a)=>{var n=a(64700);n.g,n.i,n.A,t.lZ=n.v,n.C,t.w5=n.u,t.Or=n.t,t.qQ=n.s,n.$,n.aa,n.p,t.fB=n.B,n.J,n.U,n.I,n.O,n.N,n.R,t.mJ=n.T,n.S,n.k,t.t2=n.b,n.E,n.h,n.o,n.Y,n.c,t.SX=n.a,n.G,t.K5=n.P,n.Q,n.j,n.d,n.K,n.F,n.f,n.e,n.l,n.q,n.n,n.m,t.GL=n.X,n.Z,n.D,n.V,n.W,n.L,n.M,t.x=n.r,n.H,t.z1=n._,t.Oq=n.x,n.w,n.y,n.z},88459:(e,t,a)=>{function n(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}function r(e){let t=n(e);return null==t||t}var i=a(24914);a(78666),a(25496),a(64700);var s=a(5216),o=(e,t)=>{t||(t={});let a=new URL(e instanceof URL?e:e instanceof Request?e.url:e),i=n([t,"access",e=>e.headers,"optionalAccess",e=>e.Authorization]),[s,o]=window.atob(i.substring(6)).split(":");return r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.Authorization]),r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.authorization]),s&&a.searchParams.set("user",s),o&&a.searchParams.set("password",o),t.credentials="omit",fetch(`${a.toString()}`,t)},l=(e,t)=>(t||(t={}),r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.Authorization]),r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.authorization]),fetch(e,t)),u=t.Kc=async({host:e,username:t,password:a})=>{try{return(await new c({host:e,username:t,password:a}).query({query:"SELECT 1",format:"TabSeparatedRaw"})).text().then(e=>"1"===e.trim())}catch(e){return console.warn("Failed to test local connection",e),!1}},c=t.aP=class extends i.y{constructor(e){super(e)}buildClient(){var e,t,a,n;let r=this.host,i,u=null!=this.username&&null!=this.password,c={};u?(i=o,c.add_http_cors_header=1):(r=`${window.origin}${this.host}`,i=l);let m=new URL(r);return s.createClient.call(void 0,{url:m.origin,pathname:m.pathname,clickhouse_settings:c,username:(e=this.username,t=()=>"",null!=e?e:t()),password:(a=this.password,n=()=>"",null!=a?a:n()),keep_alive:{enabled:!1},fetch:i,request_timeout:this.requestTimeout,application:this.application})}async __query({query:e,format:t="JSON",query_params:a={},abort_signal:n,clickhouse_settings:r,connectionId:i,queryId:s}){null==this.client&&(this.client=this.buildClient()),this.logDebugQuery(e,a);let o=this.processClickhouseSettings(r),l={...i&&"local"!==i?{"x-hyperdx-connection-id":i}:{}};return this.getClient().query({query:e,query_params:a,format:t,abort_signal:n,http_headers:l,clickhouse_settings:o,query_id:s})}};t.aP=c,t.Kc=u},91021:(e,t,a)=>{a.d(t,{Kc:()=>b,HD:()=>_,zu:()=>R});var n=a(75155),r=a(35467),i=a(67270),s=a(76089),o=a(73854),l=a(93251),u=a(12482),c=a(43152),m=a(49672),d=a(98142),p=a(79339),g=a.n(p);let h="hyperdx",f=e=>{let t=g().sha1(e),a=(0,i.v4)(e.aggCondition);switch(e.aggFn){case"min":case"max":case"sum":case"avg":return{fieldName:t,fn:`${e.aggFn}${a?"If":""}`,args:["Nullable(Float64)",...a?["UInt8"]:[]]};case"count":return{fieldName:t,fn:`${e.aggFn}${a?"If":""}`,args:a?["UInt8"]:[]};default:throw Error(`Unsupported aggregation function: ${e.aggFn}`)}},y=async(e,t,a,n)=>{let s,o={...e,...Array.isArray(e.select)&&{select:e.select.map(e=>{let{fieldName:t,fn:a}=f(e);return{...e,aggFn:`${a}State`,alias:t}})},granularity:n??e.granularity,dateRange:void 0,orderBy:void 0,limit:void 0},l=await (0,i.PV)(o,t,a),u=g().sha1(l),c=`${e.from.tableName}_mv_${u}`,m={...e,...Array.isArray(e.select)&&{select:e.select.map(e=>{let{fieldName:t,fn:a}=f(e);return{aggFn:`${a}Merge`,valueExpression:t,alias:`${e.aggFn}(${e.valueExpression})`}})},timestampValueExpression:i.n_,from:{databaseName:h,tableName:c}};return{mtViewName:c,dataTableDDL:(0,r.l6)(((e,t)=>{if(!Array.isArray(t.select))throw Error("Only array select is supported");if((0,i.x1)(t))throw Error("Group by is not supported");return(0,r.kg)`CREATE TABLE IF NOT EXISTS ${h}.${{Identifier:e}} ( ${{Identifier:i.n_}} DateTime, ${t.select.map(e=>{let{args:t,fieldName:a,fn:n}=f(e),r=[n,...t].join(",");return`${a} AggregateFunction(${r})`}).join(",\n")} diff --git a/out/_next/static/chunks/1274-aef343c4656bbdfc.js b/out/_next/static/chunks/1274-aef343c4656bbdfc.js deleted file mode 100644 index dbc946a..0000000 --- a/out/_next/static/chunks/1274-aef343c4656bbdfc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1274],{19336:(e,t,n)=>{n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","markdown","IconMarkdown",[["path",{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M7 15v-6l2 2l2 -2v6",key:"svg-1"}],["path",{d:"M14 13l2 2l2 -2m-2 2v-6",key:"svg-2"}]])},20444:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),l="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;l?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(47492))},27420:function(e,t,n){var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(20444)),i=n(72756);function l(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}l.default=l,e.exports=l},28392:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!l)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,s,c,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p{n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","chevron-left","IconChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]])},42604:(e,t,n)=>{n.d(t,{oz:()=>nD});var r={};n.r(r),n.d(r,{boolean:()=>g,booleanish:()=>y,commaOrSpaceSeparated:()=>w,commaSeparated:()=>b,number:()=>x,overloadedBoolean:()=>v,spaceSeparated:()=>k});var i={};n.r(i),n.d(i,{attentionMarkers:()=>tA,contentInitial:()=>tb,disable:()=>tT,document:()=>tk,flow:()=>tS,flowInitial:()=>tw,insideSpan:()=>tP,string:()=>tC,text:()=>tE});let l=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,o=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a={};function u(e,t){return((t||a).jsx?o:l).test(e)}let s=/[ \t\n\f\r]/g;function c(e){return""===e.replace(s,"")}class f{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function p(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new f(n,r,t)}function d(e){return e.toLowerCase()}f.prototype.normal={},f.prototype.property={},f.prototype.space=void 0;class h{constructor(e,t){this.attribute=t,this.property=e}}h.prototype.attribute="",h.prototype.booleanish=!1,h.prototype.boolean=!1,h.prototype.commaOrSpaceSeparated=!1,h.prototype.commaSeparated=!1,h.prototype.defined=!1,h.prototype.mustUseProperty=!1,h.prototype.number=!1,h.prototype.overloadedBoolean=!1,h.prototype.property="",h.prototype.spaceSeparated=!1,h.prototype.space=void 0;let m=0,g=S(),y=S(),v=S(),x=S(),k=S(),b=S(),w=S();function S(){return 2**++m}let C=Object.keys(r);class E extends h{constructor(e,t,n,i){let l=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++l"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function T(e,t){return t in e?e[t]:t}function I(e,t){return T(e,t.toLowerCase())}let D=P({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:b,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:g,allowPaymentRequest:g,allowUserMedia:g,alt:null,as:null,async:g,autoCapitalize:null,autoComplete:k,autoFocus:g,autoPlay:g,blocking:k,capture:null,charSet:null,checked:g,cite:null,className:k,cols:x,colSpan:null,content:null,contentEditable:y,controls:g,controlsList:k,coords:x|b,crossOrigin:null,data:null,dateTime:null,decoding:null,default:g,defer:g,dir:null,dirName:null,disabled:g,download:v,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:g,formTarget:null,headers:k,height:x,hidden:v,high:x,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:g,inputMode:null,integrity:null,is:null,isMap:g,itemId:null,itemProp:k,itemRef:k,itemScope:g,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:g,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:g,muted:g,name:null,nonce:null,noModule:g,noValidate:g,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:g,optimum:x,pattern:null,ping:k,placeholder:null,playsInline:g,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:g,referrerPolicy:null,rel:k,required:g,reversed:g,rows:x,rowSpan:x,sandbox:k,scope:null,scoped:g,seamless:g,selected:g,shadowRootClonable:g,shadowRootDelegatesFocus:g,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:g,useMap:null,value:y,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:g,declare:g,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:g,noHref:g,noShade:g,noWrap:g,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:g,disableRemotePlayback:g,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:I}),L=P({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:w,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:k,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:g,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:b,g2:b,glyphName:b,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:w,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:w,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:w,rev:w,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:w,requiredFeatures:w,requiredFonts:w,requiredFormats:w,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:w,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:w,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:w,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:T}),M=P({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),z=P({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:I}),O=P({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),F=p([A,D,M,z,O],"html"),R=p([A,L,M,z,O],"svg"),_=/[A-Z]/g,N=/-[a-z]/g,j=/^data[-\w.:]+$/i;function B(e){return"-"+e.toLowerCase()}function U(e){return e.charAt(1).toUpperCase()}let H={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var V=n(27420);let q=K("end"),W=K("start");function K(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Q(e){return e&&"object"==typeof e?"position"in e||"type"in e?X(e.position):"start"in e||"end"in e?X(e):"line"in e||"column"in e?$(e):"":""}function $(e){return J(e&&e.line)+":"+J(e&&e.column)}function X(e){return $(e&&e.start)+"-"+$(e&&e.end)}function J(e){return e&&"number"==typeof e?e:1}class Y extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},l=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(l=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=Q(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Y.prototype.file="",Y.prototype.name="",Y.prototype.reason="",Y.prototype.message="",Y.prototype.stack="",Y.prototype.column=void 0,Y.prototype.line=void 0,Y.prototype.ancestors=void 0,Y.prototype.cause=void 0,Y.prototype.fatal=void 0,Y.prototype.place=void 0,Y.prototype.ruleId=void 0,Y.prototype.source=void 0;let Z={}.hasOwnProperty,G=new Map,ee=/[A-Z]/g,et=new Set(["table","tbody","thead","tfoot","tr"]),en=new Set(["td","th"]),er="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ei(e,t,n){var r,i,l,o,a,u,s,f,p;let m,g,y,v,x,k,b,w,S,C,P;return"element"===t.type?(r=e,i=t,l=n,g=m=r.schema,"svg"===i.tagName.toLowerCase()&&"html"===m.space&&(r.schema=R),r.ancestors.push(i),y=eu(r,i.tagName,!1),v=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&Z.call(t.properties,r)){let l=function(e,t,n){let r=function(e,t){let n=d(t),r=t,i=h;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&j.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(N,U);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!N.test(e)){let n=e.replace(_,B);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=E}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var i;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(i=n)[i.length-1]?[...i,""]:i).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return V(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new Y("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=er+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)Z.call(e,t)&&(n[function(e){let t=e.replace(ee,ec);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?H[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(l){let[r,o]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&en.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(r,i),x=ea(r,i),et.has(i.tagName)&&(x=x.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&c(e.value):c(e))})),el(r,v,y,i),eo(v,x),r.ancestors.pop(),r.schema=m,r.create(i,y,v,l)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}es(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(o=e,a=t,u=n,b=k=o.schema,"svg"===a.name&&"html"===k.space&&(o.schema=R),o.ancestors.push(a),w=null===a.name?o.Fragment:eu(o,a.name,!0),S=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let l=i.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else es(e,t.position);else{let i,l=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else es(e,t.position);else i=null===r.value||r.value;n[l]=i}return n}(o,a),C=ea(o,a),el(o,S,w,a),eo(S,C),o.ancestors.pop(),o.schema=k,o.create(a,w,S,u)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);es(e,t.position)}(e,t):"root"===t.type?(s=e,f=t,p=n,eo(P={},ea(s,f)),s.create(f,s.Fragment,P,p)):"text"===t.type?t.value:void 0}function el(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eo(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ea(e,t){let n=[],r=-1,i=e.passKeys?new Map:G;for(;++rl?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o0?(eg(e,e.length,0,t),e):t}class ev{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&ex(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),ex(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ex(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e-1&&e.test(String.fromCharCode(t))}}function eF(e,t,n,r){let i=r?r-1:1/0,l=0;return function(r){return eL(r)?(e.enter(n),function r(o){return eL(o)&&l++r))return;let a=i.events.length,u=a;for(;u--;)if("exit"===i.events[u][0]&&"chunkFlow"===i.events[u][1].type){if(e){n=i.events[u][1].end;break}e=!0}for(g(o),l=a;lt;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eN={tokenize:function(e,t,n){return eF(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},ej={partial:!0,tokenize:function(e,t,n){return function(t){return eL(t)?eF(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eI(e)?t(e):n(e)}}},eB={resolve:function(e){return ek(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eI(t)?e.check(eU,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eU={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eF(e,i,"linePrefix")};function i(i){if(null===i||eI(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eH={tokenize:function(e){let t=this,n=e.attempt(ej,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,eF(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eB,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},eV={resolveAll:eQ()},eq=eK("string"),eW=eK("text");function eK(e){return{resolveAll:eQ("text"===e?e$:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,o);return l;function l(e){return u(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function u(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i=3&&(null===o||eI(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},eJ={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ej,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eF(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eL(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eZ,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eF(e,e.attempt(eJ,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eP(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eX,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eP(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(ej,r.interrupt?n:u,e.attempt(eY,c,s))}function u(e){return r.containerState.initialBlankLine=!0,l++,c(e)}function s(t){return eL(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},eY={partial:!0,tokenize:function(e,t,n){let r=this;return eF(e,function(e){let i=r.events[r.events.length-1];return!eL(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eZ={partial:!0,tokenize:function(e,t,n){let r=this;return eF(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},eG={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eL(t)?eF(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eG,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return eL(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function e1(e,t,n,r,i,l,o,a,u){let s=u||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),f):null===t||32===t||41===t||eE(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function f(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||eI(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(i){return!c&&(null===i||41===i||eD(i))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(i)):c999||null===f||91===f||93===f&&!o||94===f&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):93===f?(e.exit(l),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):eI(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||eI(t)||u++>999?(e.exit("chunkString"),s(t)):(e.consume(t),o||(o=!eL(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),u++,c):c(t)}}function e2(e,t,n,r,i,l){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),u(n))}function u(t){return t===o?(e.exit(l),a(o)):null===t?n(t):eI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eF(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(t))}function s(t){return t===o||null===t||eI(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?c:s)}function c(t){return t===o||92===t?(e.consume(t),s):s(t)}}function e4(e,t){let n;return function r(i){return eI(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eL(i)?eF(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function e3(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let e6={partial:!0,tokenize:function(e,t,n){return function(t){return eD(t)?e4(e,r)(t):n(t)};function r(t){return e2(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eL(t)?eF(e,l,"whitespace")(t):l(t)}function l(e){return null===e||eI(e)?t(e):n(e)}}},e5={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),eF(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?l(n):eI(n)?e.attempt(e9,t,l)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eI(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},e9={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eF(e,l,"linePrefix",5)(t)}function l(e){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):eI(e)?i(e):n(e)}}},e7={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),i||"definition"!==e[l][1].type||(i=l);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let a,u=i.events.length;for(;u--;)if("lineEnding"!==i.events[u][1].type&&"linePrefix"!==i.events[u][1].type&&"content"!==i.events[u][1].type){a="paragraph"===i.events[u][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eL(n)?eF(e,l,"lineSuffix")(n):l(n))}(o)):n(t)};function l(r){return null===r||eI(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},e8=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],te=["pre","script","style","textarea"],tt={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ej,t,n)}}},tn={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tr={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},ti={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,l={partial:!0,tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),eL(t)?eF(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=a?(e.exit("codeFencedFenceSequence"),eL(i)?eF(e,s,"whitespace")(i):s(i)):n(i)}(t)):n(t)}function s(r){return null===r||eI(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){var l;let s;return l=t,o=(s=i.events[i.events.length-1])&&"linePrefix"===s[1].type?s[2].sliceSerialize(s[1],!0).length:0,r=l,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),eL(i)?eF(e,u,"whitespace")(i):u(i))}(l)};function u(l){return null===l||eI(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(tr,c,h)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eI(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(i)):eL(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eF(e,s,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}function s(t){return null===t||eI(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eI(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(l,h,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&eL(t)?eF(e,d,"linePrefix",o+1)(t):d(t)}function d(t){return null===t||eI(t)?e.check(tr,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eI(n)?(e.exit("codeFlowValue"),d(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},tl=document.createElement("i");function to(e){let t="&"+e+";";tl.innerHTML=t;let n=tl.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ta={name:"characterReference",tokenize:function(e,t,n){let r,i,l=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,i=eS,s(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eA,s):(e.enter("characterReferenceValue"),r=7,i=eP,s(t))}function s(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return i!==eS||to(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&o++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let f={...e[n][1].end},p={...e[c][1].start};tv(f,-a),tv(p,a),l={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[n][1].end={...l.start},e[c][1].start={...o.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=ey(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ey(u,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),u=ey(u,tc(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),u=ey(u,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,u=ey(u,[["enter",e[c][1],t],["exit",e[c][1],t]])):s=0,eg(e,n-1,c-n+3,u),c=n+u.length-s-2;break}}for(c=-1;++cl&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},eg(e,l,i-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var l;return e.enter("atxHeading"),l=i,e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||eD(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eI(r)?(e.exit("atxHeading"),t(r)):eL(r)?eF(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eD(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(l)}}},42:eX,45:[e7,eX],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,l,o,a,u=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),i=!0,d):63===o?(e.consume(o),r=3,u.interrupt?t:M):ew(o)?(e.consume(o),l=String.fromCharCode(o),h):n(o)}function c(i){return 45===i?(e.consume(i),r=2,f):91===i?(e.consume(i),r=5,o=0,p):ew(i)?(e.consume(i),r=4,u.interrupt?t:M):n(i)}function f(r){return 45===r?(e.consume(r),u.interrupt?t:M):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?u.interrupt?t:C:p:n(r)}function d(t){return ew(t)?(e.consume(t),l=String.fromCharCode(t),h):n(t)}function h(o){if(null===o||47===o||62===o||eD(o)){let a=47===o,s=l.toLowerCase();return!a&&!i&&te.includes(s)?(r=1,u.interrupt?t(o):C(o)):e8.includes(l.toLowerCase())?(r=6,a)?(e.consume(o),m):u.interrupt?t(o):C(o):(r=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(o):i?function t(n){return eL(n)?(e.consume(n),t):w(n)}(o):g(o))}return 45===o||eS(o)?(e.consume(o),l+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),u.interrupt?t:C):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||ew(t)?(e.consume(t),y):eL(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),x):eL(t)?(e.consume(t),v):g(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,k):eL(t)?(e.consume(t),x):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eD(n)?v(n):(e.consume(n),t)}(t)}function k(t){return t===a?(e.consume(t),a=null,b):null===t||eI(t)?n(t):(e.consume(t),k)}function b(e){return 47===e||62===e||eL(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||eI(t)?C(t):eL(t)?(e.consume(t),S):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),T):60===t&&1===r?(e.consume(t),I):62===t&&4===r?(e.consume(t),z):63===t&&3===r?(e.consume(t),M):93===t&&5===r?(e.consume(t),L):eI(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tt,O,E)(t)):null===t||eI(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),C)}function E(t){return e.check(tn,P,O)(t)}function P(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||eI(t)?E(t):(e.enter("htmlFlowData"),C(t))}function T(t){return 45===t?(e.consume(t),M):C(t)}function I(t){return 47===t?(e.consume(t),l="",D):C(t)}function D(t){if(62===t){let n=l.toLowerCase();return te.includes(n)?(e.consume(t),z):C(t)}return ew(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),D):C(t)}function L(t){return 93===t?(e.consume(t),M):C(t)}function M(t){return 62===t?(e.consume(t),z):45===t&&2===r?(e.consume(t),M):C(t)}function z(t){return null===t||eI(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),z)}function O(n){return e.exit("htmlFlow"),t(n)}}},61:e7,95:eX,96:ti,126:ti},tC={38:ta,92:tu},tE={[-5]:ts,[-4]:ts,[-3]:ts,33:tm,38:ta,42:ty,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return ew(t)?(e.consume(t),l):64===t?n(t):a(t)}function l(t){return 43===t||45===t||46===t||eS(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||eS(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eE(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),u):eC(t)?(e.consume(t),a):n(t)}function u(i){return eS(i)?function i(l){return 46===l?(e.consume(l),r=0,u):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||eS(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),k):63===t?(e.consume(t),v):ew(t)?(e.consume(t),w):n(t)}function u(t){return 45===t?(e.consume(t),s):91===t?(e.consume(t),i=0,d):ew(t)?(e.consume(t),y):n(t)}function s(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),f):eI(t)?(l=c,D(t)):(e.consume(t),c)}function f(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?I(e):45===e?f(e):c(e)}function d(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:d):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):eI(t)?(l=h,D(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?I(t):eI(t)?(l=y,D(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),x):eI(t)?(l=v,D(t)):(e.consume(t),v)}function x(e){return 62===e?I(e):v(e)}function k(t){return ew(t)?(e.consume(t),b):n(t)}function b(t){return 45===t||eS(t)?(e.consume(t),b):function t(n){return eI(n)?(l=t,D(n)):eL(n)?(e.consume(n),t):I(n)}(t)}function w(t){return 45===t||eS(t)?(e.consume(t),w):47===t||62===t||eD(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),I):58===t||95===t||ew(t)?(e.consume(t),C):eI(t)?(l=S,D(t)):eL(t)?(e.consume(t),S):I(t)}function C(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),C):function t(n){return 61===n?(e.consume(n),E):eI(n)?(l=t,D(n)):eL(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,P):eI(t)?(l=E,D(t)):eL(t)?(e.consume(t),E):(e.consume(t),A)}function P(t){return t===r?(e.consume(t),r=void 0,T):null===t?n(t):eI(t)?(l=P,D(t)):(e.consume(t),P)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eD(t)?S(t):(e.consume(t),A)}function T(e){return 47===e||62===e||eD(e)?S(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return eL(t)?eF(e,M,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),l(t)}}}],91:tx,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eI(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},tu],93:tf,95:ty,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tM(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tD(n.slice(t?2:1),t?16:10)}return to(n)||e}let tz={}.hasOwnProperty;function tO(e){return{line:e.line,column:e.column,offset:e.offset}}function tF(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+Q({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Q({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+Q({start:t.start,end:t.end})+") is still open")}function tR(e){let t=this;t.parser=function(n){var r,l;let o,a,u,s;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(l=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:s,autolinkEmail:s,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:s,characterReference:s,codeFenced:r(d),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(d,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:s,data:s,codeFlowValue:s,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:s,htmlText:r(g,i),htmlTextData:s,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tD(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=to(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tO(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e3(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(f),hardBreakTrailing:o(f),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tL,tM),n.identifier=e3(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tO(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(s.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e3(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||tF).call(o,void 0,e[0])}for(r.position={start:tO(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tO(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[l].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:l}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:l}}function d(e,t){t.restore()}function h(e,t){return function(n,i,l){var o;let c,f,d,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,f=0,0===e.length)?l:y(e[f])}function y(e){return function(n){let i,l,o,c,f;return(i=p(),l=s.previous,o=s.currentConstruct,c=s.events.length,f=Array.from(a),h={from:c,restore:function(){r=i,s.previous=l,s.currentConstruct=o,s.events.length=c,a=f,g()}},d=e,e.partial||(s.currentConstruct=e),e.name&&s.parser.constructs.disable.null.includes(e.name))?x(n):e.tokenize.call(t?Object.assign(Object.create(s),t):s,u,v,x)(n)}}function v(t){return e(d,h),i}function x(e){return(h.restore(),++f{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[l,o]=e[i];switch(l){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new t_[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new t_[l](o),i)})(0)},{toString:tj}={},{keys:tB}=Object,tU=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tj.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tH=([e,t])=>0===e&&("function"===t||"symbol"===t),tV=(e,{json:t,lossy:n}={})=>{var r,i,l;let o,a,u=[];return(r=!(t||n),i=!!t,l=new Map,o=(e,t)=>{let n=u.push(e)-1;return l.set(t,n),n},a=e=>{if(l.has(e))return l.get(e);let[t,n]=tU(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return o([-1],e)}return o([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),o([n,[...t]],e)}let r=[],i=o([t,r],e);for(let t of e)r.push(a(t));return i}case 2:{if(n)switch(n){case"BigInt":return o([n,e.toString()],e);case"Boolean":case"Number":case"String":return o([n,e.valueOf()],e)}if(i&&"toJSON"in e)return a(e.toJSON());let l=[],u=o([t,l],e);for(let t of tB(e))(r||!tH(tU(e[t])))&&l.push([a(t),a(e[t])]);return u}case 3:return o([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return o([t,{source:n,flags:r}],e)}case 5:{let n=[],i=o([t,n],e);for(let[t,i]of e)(r||!(tH(tU(t))||tH(tU(i))))&&n.push([a(t),a(i)]);return i}case 6:{let n=[],i=o([t,n],e);for(let t of e)(r||!tH(tU(t)))&&n.push(a(t));return i}}let{message:u}=e;return o([t,{name:n,message:u}],e)})(e),u},tq="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tN(tV(e,t)):structuredClone(e):(e,t)=>tN(tV(e,t));function tW(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(o=String.fromCharCode(l,t),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tK(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tQ(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let t$=function(e){var t,n;if(null==e)return tJ;if("function"==typeof e)return tX(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n":"")+")"})}return u;function u(){var a;let u,s,c,d=tY;if((!i||f(t,n,r[r.length-1]||void 0))&&!1===(d=Array.isArray(a=l(t,r))?a:"number"==typeof a?[!0,a]:null==a?tY:[a])[0])return d;if("children"in t&&t.children&&t.children&&"skip"!==d[0])for(s=(o?t.children.length:-1)+p,c=r.concat(t);s>-1&&s1:t}function t0(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let t2={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=tW(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,a+=1,e.footnoteCounts.set(i,a);let u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,u);let s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tG(e,t);let i={src:tW(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:tW(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tG(e,t);let i={href:tW(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:tW(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=W(t.children[1]),o=q(t.children[t.children.length-1]);l&&o&&(r.position={start:l,end:o}),i.push(r)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,o=l?l.length:t.children.length,a=-1,u=[];for(;++a0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(t0(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t4,yaml:t4,definition:t4,footnoteDefinition:t4};function t4(){}let t3={}.hasOwnProperty,t6={};function t5(e,t){e.position&&(t.position=function(e){let t=W(e),n=q(e);if(t&&n)return{start:t,end:n}}(e))}function t9(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tq(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function t7(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r0&&n.push({type:"text",value:"\n"}),n}function t8(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ne(e,t){let n,r,i,l,o=(n=t||t6,r=new Map,i=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(u,c);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(u,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let d=l[l.length-1];if(d&&"element"===d.type&&"p"===d.tagName){let e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...f)}else l.push(...f);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+s},children:e.wrap(l,!0)};e.patch(i,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...tq(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(o),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return u&&s.children.push({type:"text",value:"\n"},u),s}function nt(e,t){return e&&"run"in e?async function(n,r){let i=ne(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ne(n,{file:r,...e||t})}}function nn(e){if(e)throw e}var nr=n(28392);function ni(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let nl=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');ns(e);let r=0,i=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else i<0&&(n=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else o<0&&(n=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(i=l):(a=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},no=function(e){let t;if(ns(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},na=function(e){let t;ns(e);let n=e.length,r=-1,i=0,l=-1,o=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?l<0?l=n:1!==o&&(o=1):l>-1&&(o=-1)}return l<0||r<0||0===o||1===o&&l===r-1&&l===i+1?"":e.slice(l,r)},nu=function(...e){var t;let n,r,i,l=-1;for(;++l2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",l=0):l=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=u,a=0;continue}}else if(i.length>0){i="",l=0,o=u,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(o+1,u):i=e.slice(o+1,u),l=u-o-1;o=u,a=0}else 46===n&&a>-1?a++:a=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function ns(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function nc(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nf=["history","path","basename","stem","extname","dirname"];class np{constructor(e){let t,n;t=e?nc(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++rt.length;o&&t.push(r);try{l=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(l instanceof Promise?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nv,t=-1;for(;++t0){let[r,...l]=t,o=n[i][1];ni(o)&&ni(r)&&(r=nr(!0,o,r)),n[i]=[e,r,...l]}}}}let nx=new nv().freeze();function nk(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nb(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nw(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nS(e){if(!ni(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nC(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nE(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new np(e)}let nP=[],nA={allowDangerousHtml:!0},nT=/^(https?|ircs?|mailto|xmpp)$/i,nI=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nD(e){var t;let n,r,i,l,o,a=(n=(t=e).rehypePlugins||nP,r=t.remarkPlugins||nP,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...nA}:nA,nx().use(tR).use(r).use(nt,i).use(n)),u=(l=e.children||"",o=new np,"string"==typeof l&&(o.value=l),o);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,u=t.urlTransform||nL;for(let e of nI)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return tZ(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ef)if(Object.hasOwn(ef,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ef[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!l&&l.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,i)),o&&i&&"number"==typeof t)return a&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,l;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,o=function(e,t,i,l){let o=Array.isArray(i.children),a=W(e);return r(t,i,l,o,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,l=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?l:i;return r?o(t,n,r):o(t,n)}}let u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?R:F,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=ei(u,e,void 0);return s&&"string"!=typeof s?s:u.create(e,u.Fragment,{children:s||void 0},void 0)}(e,{Fragment:ep.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ep.jsx,jsxs:ep.jsxs,passKeys:!0,passNode:!0})}(a.runSync(a.parse(u),u),e)}function nL(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nT.test(e.slice(0,t))?e:""}},47492:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,u=/^\s+|\s+$/g;function s(e){return e?e.replace(u,""):""}e.exports=function(e,u){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];u=u||{};var c=1,f=1;function p(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function d(){var e={line:c,column:f};return function(t){return t.position=new h(e),g(r),t}}function h(e){this.start=e,this.end={line:c,column:f},this.source=u.source}function m(t){var n=Error(u.source+":"+c+":"+f+": "+t);if(n.reason=t,n.filename=u.source,n.line=c,n.column=f,n.source=e,u.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(r);var x,k=[];for(y(k);x=function(){var e=d(),n=g(i);if(n){if(v(),!g(l))return m("property missing ':'");var r=g(o),u=e({type:"declaration",property:s(n[0].replace(t,"")),value:r?s(r[0].replace(t,"")):""});return g(a),u}}();)!1!==x&&(k.push(x),y(k));return k}},69164:(e,t,n)=>{n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","currency-dollar","IconCurrencyDollar",[["path",{d:"M16.7 8a3 3 0 0 0 -2.7 -2h-4a3 3 0 0 0 0 6h4a3 3 0 0 1 0 6h-4a3 3 0 0 1 -2.7 -2",key:"svg-0"}],["path",{d:"M12 3v3m0 12v3",key:"svg-1"}]])},72756:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var s;return(void 0===t&&(t={}),!(s=e)||i.test(s)||n.test(s))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,u):e.replace(l,u)).replace(r,a))}},81077:(e,t,n)=>{n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","numbers","IconNumbers",[["path",{d:"M8 10v-7l-2 2",key:"svg-0"}],["path",{d:"M6 16a2 2 0 1 1 4 0c0 .591 -.601 1.46 -1 2l-3 3h4",key:"svg-1"}],["path",{d:"M15 14a2 2 0 1 0 2 -2a2 2 0 1 0 -2 -2",key:"svg-2"}],["path",{d:"M6.5 10h3",key:"svg-3"}]])},93003:(e,t,n)=>{n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","percentage","IconPercentage",[["path",{d:"M17 17m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M7 7m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M6 18l12 -12",key:"svg-2"}]])}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/1626-de51610d6ac78e10.js b/out/_next/static/chunks/2814-582aced4e4547c8b.js similarity index 83% rename from out/_next/static/chunks/1626-de51610d6ac78e10.js rename to out/_next/static/chunks/2814-582aced4e4547c8b.js index d18e965..d840b27 100644 --- a/out/_next/static/chunks/1626-de51610d6ac78e10.js +++ b/out/_next/static/chunks/2814-582aced4e4547c8b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1626],{1146:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","brand-discord","IconBrandDiscord",[["path",{d:"M8 12a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-0"}],["path",{d:"M14 12a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M15.5 17c0 1 1.5 3 2 3c1.5 0 2.833 -1.667 3.5 -3c.667 -1.667 .5 -5.833 -1.5 -11.5c-1.457 -1.015 -3 -1.34 -4.5 -1.5l-.972 1.923a11.913 11.913 0 0 0 -4.053 0l-.975 -1.923c-1.5 .16 -3.043 .485 -4.5 1.5c-2 5.667 -2.167 9.833 -1.5 11.5c.667 1.333 2 3 3.5 3c.5 0 2 -2 2 -3",key:"svg-2"}],["path",{d:"M7 16.5c3.5 1 6.5 1 10 0",key:"svg-3"}]])},1885:(e,t,r)=>{"use strict";function a(e){return Array.isArray?Array.isArray(e):"[object Array]"===d(e)}r.d(t,{A:()=>K});let s=1/0;function n(e){return"string"==typeof e}function o(e){return"number"==typeof e}function i(e){return"object"==typeof e}function l(e){return null!=e}function c(e){return!e.trim().length}function d(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let h=Object.prototype.hasOwnProperty;class u{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=p(e);t+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function p(e){let t=null,r=null,s=null,o=1,i=null;if(n(e)||a(e))s=e,t=g(e),r=v(e);else{if(!h.call(e,"name"))throw Error("Missing name property in key");let a=e.name;if(s=a,h.call(e,"weight")&&(o=e.weight)<=0)throw Error(`Property 'weight' in key '${a}' must be a positive integer`);t=g(a),r=v(a),i=e.getFn}return{path:t,id:r,weight:o,src:s,getFn:i}}function g(e){return a(e)?e:e.split(".")}function v(e){return a(e)?e.join("."):e}var m={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx{if(l(e))if(t[u]){var p,g;let v=e[t[u]];if(!l(v))return;if(u===t.length-1&&(n(v)||o(v)||!0===(p=v)||!1===p||i(g=p)&&null!==g&&"[object Boolean]"==d(p)))r.push(null==v?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-s?"-0":t}(v));else if(a(v)){c=!0;for(let e=0,r=v.length;e{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,n(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();n(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t{let o=t.getFn?t.getFn(e):this.getFn(e,t.path);if(l(o)){if(a(o)){let e=[],t=[{nestedArrIndex:-1,value:o}];for(;t.length;){let{nestedArrIndex:r,value:s}=t.pop();if(l(s))if(n(s)&&!c(s)){let t={v:s,i:r,n:this.norm.get(s)};e.push(t)}else a(s)&&s.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}r.$[s]=e}else if(n(o)&&!c(o)){let e={v:o,n:this.norm.get(o)};r.$[s]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function k(e,t,{getFn:r=m.getFn,fieldNormWeight:a=m.fieldNormWeight}={}){let s=new f({getFn:r,fieldNormWeight:a});return s.setKeys(e.map(p)),s.setSources(t),s.create(),s}function M(e,{errors:t=0,currentLocation:r=0,expectedLocation:a=0,distance:s=m.distance,ignoreLocation:n=m.ignoreLocation}={}){let o=t/e.length;if(n)return o;let i=Math.abs(a-r);return s?o+i/s:i?1:o}class w{constructor(e,{location:t=m.location,threshold:r=m.threshold,distance:a=m.distance,includeMatches:s=m.includeMatches,findAllMatches:n=m.findAllMatches,minMatchCharLength:o=m.minMatchCharLength,isCaseSensitive:i=m.isCaseSensitive,ignoreLocation:l=m.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:a,includeMatches:s,findAllMatches:n,minMatchCharLength:o,isCaseSensitive:i,ignoreLocation:l},this.pattern=i?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,a=e.length;r32){let e=0;const t=d%32,r=d-t;for(;e{let{isMatch:g,score:v,indices:y}=function(e,t,r,{location:a=m.location,distance:s=m.distance,threshold:n=m.threshold,findAllMatches:o=m.findAllMatches,minMatchCharLength:i=m.minMatchCharLength,includeMatches:l=m.includeMatches,ignoreLocation:c=m.ignoreLocation}={}){let d;if(t.length>32)throw Error("Pattern length exceeds max of 32.");let h=t.length,u=e.length,p=Math.max(0,Math.min(a,u)),g=n,v=p,y=i>1||l,f=y?Array(u):[];for(;(d=e.indexOf(t,v))>-1;)if(g=Math.min(M(t,{currentLocation:d,expectedLocation:p,distance:s,ignoreLocation:c}),g),v=d+h,y){let e=0;for(;e=l;n-=1){let o=n-1,i=r[e.charAt(o)];if(y&&(f[o]=+!!i),m[n]=(m[n+1]<<1|1)&i,a&&(m[n]|=(k[n+1]|k[n])<<1|1|k[n+1]),m[n]&x&&(w=M(t,{errors:a,currentLocation:o,expectedLocation:p,distance:s,ignoreLocation:c}))<=g){if(g=w,(v=o)<=p)break;l=Math.max(1,2*p-v)}}if(M(t,{errors:a+1,currentLocation:p,expectedLocation:p,distance:s,ignoreLocation:c})>g)break;k=m}let S={isMatch:v>=0,score:Math.max(.001,w)};if(y){let e=function(e=[],t=m.minMatchCharLength){let r=[],a=-1,s=-1,n=0;for(let o=e.length;n=t&&r.push([a,s]),a=-1)}return e[n-1]&&n-a>=t&&r.push([a,n-1]),r}(f,i);e.length?l&&(S.indices=e):S.isMatch=!1}return S}(e,t,u,{location:a+p,distance:s,threshold:n,findAllMatches:o,minMatchCharLength:i,includeMatches:r,ignoreLocation:l});g&&(h=!0),d+=v,g&&y&&(c=[...c,...y])});let u={isMatch:h,score:h?d/this.chunks.length:1};return h&&r&&(u.indices=c),u}}class b{constructor(e){this.pattern=e}static isMultiMatch(e){return x(e,this.multiRegex)}static isSingleMatch(e){return x(e,this.singleRegex)}search(){}}function x(e,t){let r=e.match(t);return r?r[1]:null}class S extends b{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}}class A extends b{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class C extends b{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}}class _ extends b{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class I extends b{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}}class j extends b{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class E extends b{constructor(e,{location:t=m.location,threshold:r=m.threshold,distance:a=m.distance,includeMatches:s=m.includeMatches,findAllMatches:n=m.findAllMatches,minMatchCharLength:o=m.minMatchCharLength,isCaseSensitive:i=m.isCaseSensitive,ignoreLocation:l=m.ignoreLocation}={}){super(e),this._bitapSearch=new w(e,{location:t,threshold:r,distance:a,includeMatches:s,findAllMatches:n,minMatchCharLength:o,isCaseSensitive:i,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class L extends b{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,a=[],s=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+s,a.push([t,r-1]);let n=!!a.length;return{isMatch:n,score:+!n,indices:a}}}let D=[S,L,C,_,j,I,A,E],N=D.length,F=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,$=new Set([E.type,L.type]);class z{constructor(e,{isCaseSensitive:t=m.isCaseSensitive,includeMatches:r=m.includeMatches,minMatchCharLength:a=m.minMatchCharLength,ignoreLocation:s=m.ignoreLocation,findAllMatches:n=m.findAllMatches,location:o=m.location,threshold:i=m.threshold,distance:l=m.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:r,minMatchCharLength:a,findAllMatches:n,ignoreLocation:s,location:o,threshold:i,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map(e=>{let r=e.trim().split(F).filter(e=>e&&!!e.trim()),a=[];for(let e=0,s=r.length;e!!(e[P]||e.$or),G=e=>({[P]:Object.keys(e).map(t=>({[t]:e[t]}))});function V(e,t,{auto:r=!0}={}){let s=e=>{let o=Object.keys(e),l=!!e[T];if(!l&&o.length>1&&!Y(e))return s(G(e));if(!a(e)&&i(e)&&!Y(e)){let a=l?e[T]:o[0],s=l?e.$val:e[a];if(!n(s))throw Error(`Invalid value for key ${a}`);let i={keyId:v(a),pattern:s};return r&&(i.searcher=R(s,t)),i}let c={children:[],operator:o[0]};return o.forEach(t=>{let r=e[t];a(r)&&r.forEach(e=>{c.children.push(s(e))})}),c};return Y(e)||(e=G(e)),s(e)}function q(e,t){let r=e.matches;t.matches=[],l(r)&&r.forEach(e=>{if(!l(e.indices)||!e.indices.length)return;let{indices:r,value:a}=e,s={indices:r,value:a};e.key&&(s.key=e.key.src),e.idx>-1&&(s.refIndex=e.idx),t.matches.push(s)})}function B(e,t){t.score=e.score}class K{constructor(e,t={},r){this.options={...m,...t},this.options.useExtendedSearch,this._keyStore=new u(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof f))throw Error("Incorrect 'index' type");this._myIndex=t||k(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){l(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,a=this._docs.length;r{let r=1;e.matches.forEach(({key:e,norm:a,score:s})=>{let n=e?e.weight:null;r*=Math.pow(0===s&&n?Number.EPSILON:s,(n||1)*(t?1:a))}),e.score=r})}(c,{ignoreFieldNorm:l}),s&&c.sort(i),o(t)&&t>-1&&(c=c.slice(0,t)),function(e,t,{includeMatches:r=m.includeMatches,includeScore:a=m.includeScore}={}){let s=[];return r&&s.push(q),a&&s.push(B),e.map(e=>{let{idx:r}=e,a={item:t[r],refIndex:r};return s.length&&s.forEach(t=>{t(e,a)}),a})}(c,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(e){let t=R(e,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:e,i:r,n:s})=>{if(!l(e))return;let{isMatch:n,score:o,indices:i}=t.searchIn(e);n&&a.push({item:e,idx:r,matches:[{score:o,value:e,norm:s,indices:i}]})}),a}_searchLogical(e){let t=V(e,this.options),r=(e,t,a)=>{if(!e.children){let{keyId:r,searcher:s}=e,n=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:s});return n&&n.length?[{idx:a,item:t,matches:n}]:[]}let s=[];for(let n=0,o=e.children.length;n{if(l(e)){let o=r(t,e,a);o.length&&(s[a]||(s[a]={idx:a,item:e,matches:[]},n.push(s[a])),o.forEach(({matches:e})=>{s[a].matches.push(...e)}))}}),n}_searchObjectList(e){let t=R(e,this.options),{keys:r,records:a}=this._myIndex,s=[];return a.forEach(({$:e,i:a})=>{if(!l(e))return;let n=[];r.forEach((r,a)=>{n.push(...this._findMatches({key:r,value:e[a],searcher:t}))}),n.length&&s.push({idx:a,item:e,matches:n})}),s}_findMatches({key:e,value:t,searcher:r}){if(!l(t))return[];let s=[];if(a(t))t.forEach(({v:t,i:a,n:n})=>{if(!l(t))return;let{isMatch:o,score:i,indices:c}=r.searchIn(t);o&&s.push({score:i,key:e,value:t,idx:a,norm:n,indices:c})});else{let{v:a,n:n}=t,{isMatch:o,score:i,indices:l}=r.searchIn(a);o&&s.push({score:i,key:e,value:a,norm:n,indices:l})}return s}}K.version="6.6.2",K.createIndex=k,K.parseIndex=function(e,{getFn:t=m.getFn,fieldNormWeight:r=m.fieldNormWeight}={}){let{keys:a,records:s}=e,n=new f({getFn:t,fieldNormWeight:r});return n.setKeys(a),n.setIndexRecords(s),n},K.config=m,K.parseQuery=V,function(...e){O.push(...e)}(z)},16120:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","command","IconCommand",[["path",{d:"M7 9a2 2 0 1 1 2 -2v10a2 2 0 1 1 -2 -2h10a2 2 0 1 1 -2 2v-10a2 2 0 1 1 2 2h-10",key:"svg-0"}]])},21604:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","book","IconBook",[["path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-0"}],["path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-1"}],["path",{d:"M3 6l0 13",key:"svg-2"}],["path",{d:"M12 6l0 13",key:"svg-3"}],["path",{d:"M21 6l0 13",key:"svg-4"}]])},22175:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var a=r(55729),s=r(33361);function n(e){try{return e&&JSON.parse(e)}catch{return e}}function o(e){return{getItem:t=>{try{return window[e].getItem(t)}catch(e){return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(t,r)=>{try{window[e].setItem(t,r)}catch(e){console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:t=>{try{window[e].removeItem(t)}catch(e){console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function i(e){return(function(e,t){let r="localStorage"===e?"mantine-local-storage":"mantine-session-storage",{getItem:i,setItem:l,removeItem:c}=o(e);return function({key:o,defaultValue:d,getInitialValueInEffect:h=!0,sync:u=!0,deserialize:p=n,serialize:g=e=>(function(e,t="use-local-storage"){try{return JSON.stringify(e)}catch(e){throw Error(`@mantine/hooks ${t}: Failed to serialize the value`)}})(e,t)}){let v=(0,a.useCallback)(t=>{let r;try{r="u"{e instanceof Function?y(t=>{let a=e(t);return l(o,g(a)),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:e(t)}})),a}):(l(o,g(e)),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:e}})),y(e))},[o]),k=(0,a.useCallback)(()=>{c(o),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:d}}))},[]);return(0,s.M)("storage",t=>{u&&t.storageArea===window[e]&&t.key===o&&y(p(t.newValue??void 0))}),(0,s.M)(r,e=>{u&&e.detail.key===o&&y(e.detail.value)}),(0,a.useEffect)(()=>{void 0!==d&&void 0===m&&f(d)},[d,m,f]),(0,a.useEffect)(()=>{let e=v();void 0!==e&&f(e)},[o]),[void 0===m?d:m,f,k]}})("localStorage","use-local-storage")(e)}!function(e){let{getItem:t}=o(e)}("localStorage")},22746:(e,t,r)=>{"use strict";r.d(t,{u:()=>h});var a=r(6029),s=r(3001);r(55729);var n=r(80616),o=r(43016),i=r(96061),l=r(29645),c=r(46321);let d={},h=(0,o.P9)((e,t)=>{let{value:r,defaultValue:o,onChange:h,size:u,wrapperProps:p,children:g,readOnly:v,...m}=(0,n.Y)("SwitchGroup",d,e),[y,f]=(0,s.Z)({value:r,defaultValue:o,finalValue:[],onChange:h});return(0,a.jsx)(c.x,{value:{value:y,onChange:e=>{let t=e.currentTarget.value;v||f(y.includes(t)?y.filter(e=>e!==t):[...y,t])},size:u},children:(0,a.jsx)(i.p.Wrapper,{size:u,ref:t,...p,...m,labelElement:"div",__staticSelector:"SwitchGroup",children:(0,a.jsx)(l.F,{role:"group",children:g})})})});h.classes=i.p.Wrapper.classes,h.displayName="@mantine/core/SwitchGroup"},23474:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]])},23994:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","flask","IconFlask",[["path",{d:"M9 3l6 0",key:"svg-0"}],["path",{d:"M10 9l4 0",key:"svg-1"}],["path",{d:"M10 3v6l-4 11a.7 .7 0 0 0 .5 1h11a.7 .7 0 0 0 .5 -1l-4 -11v-6",key:"svg-2"}]])},29645:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});var a=r(6029);r(55729);var s=r(1827);function n({children:e,role:t}){let r=(0,s.e)();return r?(0,a.jsx)("div",{role:t,"aria-labelledby":r.labelId,"aria-describedby":r.describedBy,children:e}):(0,a.jsx)(a.Fragment,{children:e})}},36517:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","clipboard-check","IconClipboardCheck",[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M9 14l2 2l4 -4",key:"svg-2"}]])},42717:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","layout","IconLayout",[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 13m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M14 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-2"}]])},45519:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","table","IconTable",[["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z",key:"svg-0"}],["path",{d:"M3 10h18",key:"svg-1"}],["path",{d:"M10 3v18",key:"svg-2"}]])},46321:(e,t,r)=>{"use strict";r.d(t,{U:()=>o,x:()=>n});var a=r(55729);let s=(0,a.createContext)(null),n=s.Provider,o=()=>(0,a.useContext)(s)},46661:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","layout-grid","IconLayoutGrid",[["path",{d:"M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M14 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-3"}]])},50561:(e,t,r)=>{"use strict";r.d(t,{O:()=>o});var a=r(55729);let s={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"esc",Esc:"esc",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function n(e){let t=e.replace("Key","").toLowerCase();return s[e]||t}function o(e,t=["INPUT","TEXTAREA","SELECT"],r=!1){(0,a.useEffect)(()=>{let a=a=>{e.forEach(([e,s,o={preventDefault:!0,usePhysicalKeys:!1}])=>{var i;(i=o.usePhysicalKeys,t=>{let r,a,s,o;return function(e,t,r){let{alt:a,ctrl:s,meta:o,mod:i,shift:l,key:c}=e,{altKey:d,ctrlKey:h,metaKey:u,shiftKey:p,key:g,code:v}=t;if(a!==d)return!1;if(i){if(!h&&!u)return!1}else if(s!==h||o!==u)return!1;return l===p&&!!c&&(r?n(v)===n(c):n(g??v)===n(c))}((a={alt:(r=e.toLowerCase().split("+").map(e=>e.trim())).includes("alt"),ctrl:r.includes("ctrl"),meta:r.includes("meta"),mod:r.includes("mod"),shift:r.includes("shift"),plus:r.includes("[plus]")},s=["alt","ctrl","meta","shift","mod"],o=r.find(e=>!s.includes(e)),{...a,key:"[plus]"===o?"+":o}),t,i)})(a)&&function(e,t,r=!1){return!(e.target instanceof HTMLElement)||(r?!t.includes(e.target.tagName):!e.target.isContentEditable&&!t.includes(e.target.tagName))}(a,t,r)&&(o.preventDefault&&a.preventDefault(),s(a))})};return document.documentElement.addEventListener("keydown",a),()=>document.documentElement.removeEventListener("keydown",a)},[e])}},53061:(e,t,r)=>{"use strict";r.d(t,{o:()=>d});var a=r(6029);r(55729);var s=r(80616),n=r(37666),o=r(60481),i=r(63863),l={root:"m_4451eb3a"};let c={},d=(0,i.v)((e,t)=>{let r=(0,s.Y)("Center",c,e),{classNames:i,className:d,style:h,styles:u,unstyled:p,vars:g,inline:v,mod:m,...y}=r,f=(0,n.I)({name:"Center",props:r,classes:l,className:d,style:h,classNames:i,styles:u,unstyled:p,vars:g});return(0,a.jsx)(o.a,{ref:t,mod:[{inline:v},m],...f("root"),...y})});d.classes=l,d.displayName="@mantine/core/Center"},53780:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("filled","bell-filled","IconBellFilled",[["path",{d:"M14.235 19c.865 0 1.322 1.024 .745 1.668a3.992 3.992 0 0 1 -2.98 1.332a3.992 3.992 0 0 1 -2.98 -1.332c-.552 -.616 -.158 -1.579 .634 -1.661l.11 -.006h4.471z",key:"svg-0"}],["path",{d:"M12 2c1.358 0 2.506 .903 2.875 2.141l.046 .171l.008 .043a8.013 8.013 0 0 1 4.024 6.069l.028 .287l.019 .289v2.931l.021 .136a3 3 0 0 0 1.143 1.847l.167 .117l.162 .099c.86 .487 .56 1.766 -.377 1.864l-.116 .006h-16c-1.028 0 -1.387 -1.364 -.493 -1.87a3 3 0 0 0 1.472 -2.063l.021 -.143l.001 -2.97a8 8 0 0 1 3.821 -6.454l.248 -.146l.01 -.043a3.003 3.003 0 0 1 2.562 -2.29l.182 -.017l.176 -.004z",key:"svg-1"}]])},54134:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","logs","IconLogs",[["path",{d:"M4 12h.01",key:"svg-0"}],["path",{d:"M4 6h.01",key:"svg-1"}],["path",{d:"M4 18h.01",key:"svg-2"}],["path",{d:"M8 18h2",key:"svg-3"}],["path",{d:"M8 12h2",key:"svg-4"}],["path",{d:"M8 6h2",key:"svg-5"}],["path",{d:"M14 6h6",key:"svg-6"}],["path",{d:"M14 12h6",key:"svg-7"}],["path",{d:"M14 18h6",key:"svg-8"}]])},56447:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","layout-sidebar-left-collapse","IconLayoutSidebarLeftCollapse",[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]])},56513:(e,t,r)=>{"use strict";r.d(t,{W:()=>R});var a=r(6029),s=r(55729),n=r(3001),o=r(3465),i=r(78526),l=r(35228),c=r(37666),d=r(80616),h=r(43016),u=r(82556),p=r(37659);let[g,v]=(0,r(36254).F)("Menu component was not found in the tree");var m=r(60481),y={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504"};let f={},k=(0,h.P9)((e,t)=>{let{classNames:r,className:s,style:n,styles:o,vars:i,...l}=(0,d.Y)("MenuDivider",f,e),c=v();return(0,a.jsx)(m.a,{ref:t,...c.getStyles("divider",{className:s,style:n,styles:o,classNames:r}),...l})});k.classes=y,k.displayName="@mantine/core/MenuDivider";var M=r(56655),w=r(72448);let b={},x=(0,h.P9)((e,t)=>{let{classNames:r,className:n,style:o,styles:i,vars:l,onMouseEnter:c,onMouseLeave:h,onKeyDown:u,children:g,...m}=(0,d.Y)("MenuDropdown",b,e),y=(0,s.useRef)(null),f=v(),k=(0,w.T)(u,e=>{("ArrowUp"===e.key||"ArrowDown"===e.key)&&(e.preventDefault(),y.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),x=(0,w.T)(c,()=>("hover"===f.trigger||"click-hover"===f.trigger)&&f.openDropdown()),S=(0,w.T)(h,()=>("hover"===f.trigger||"click-hover"===f.trigger)&&f.closeDropdown());return(0,a.jsxs)(p.A.Dropdown,{...m,onMouseEnter:x,onMouseLeave:S,role:"menu","aria-orientation":"vertical",ref:(0,M.pc)(t,y),...f.getStyles("dropdown",{className:n,style:o,styles:i,classNames:r,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:k,children:[f.withInitialFocusPlaceholder&&(0,a.jsx)("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),g]})});x.classes=y,x.displayName="@mantine/core/MenuDropdown";var S=r(66062),A=r(41375),C=r(15862),_=r(63863),I=r(52432),j=r(8737);let E={},L=(0,_.v)((e,t)=>{let{classNames:r,className:n,style:o,styles:i,vars:l,color:c,closeMenuOnClick:h,leftSection:u,rightSection:p,children:g,disabled:m,"data-disabled":y,...f}=(0,d.Y)("MenuItem",E,e),k=v(),b=(0,C.xd)(),{dir:x}=(0,I.jH)(),_=(0,s.useRef)(null),L=k.getItemIndex(_.current),D=(0,w.T)(f.onMouseLeave,()=>k.setHovered(-1)),N=(0,w.T)(f.onMouseEnter,()=>k.setHovered(k.getItemIndex(_.current))),F=(0,w.T)(f.onClick,()=>{!y&&("boolean"==typeof h?h&&k.closeDropdownImmediately():k.closeOnItemClick&&k.closeDropdownImmediately())}),$=(0,w.T)(f.onFocus,()=>k.setHovered(k.getItemIndex(_.current))),z=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,O=c?(0,A.g)({color:c,theme:b}):null;return(0,a.jsxs)(j.N,{...f,unstyled:k.unstyled,tabIndex:k.menuItemTabIndex,onFocus:$,...k.getStyles("item",{className:n,style:o,styles:i,classNames:r}),ref:(0,M.pc)(_,t),role:"menuitem",disabled:m,"data-menu-item":!0,"data-disabled":m||y||void 0,"data-hovered":k.hovered===L||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:N,onMouseLeave:D,onClick:F,onKeyDown:(0,S.Y)({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:k.loop,dir:x,orientation:"vertical",onKeyDown:f.onKeyDown}),__vars:{"--menu-item-color":O?.isThemeColor&&O?.shade===void 0?`var(--mantine-color-${O.color}-6)`:z?.color,"--menu-item-hover":z?.hover},children:[u&&(0,a.jsx)("div",{...k.getStyles("itemSection",{styles:i,classNames:r}),"data-position":"left",children:u}),g&&(0,a.jsx)("div",{...k.getStyles("itemLabel",{styles:i,classNames:r}),children:g}),p&&(0,a.jsx)("div",{...k.getStyles("itemSection",{styles:i,classNames:r}),"data-position":"right",children:p})]})});L.classes=y,L.displayName="@mantine/core/MenuItem";let D={},N=(0,h.P9)((e,t)=>{let{classNames:r,className:s,style:n,styles:o,vars:i,...l}=(0,d.Y)("MenuLabel",D,e),c=v();return(0,a.jsx)(m.a,{ref:t,...c.getStyles("label",{className:s,style:n,styles:o,classNames:r}),...l})});N.classes=y,N.displayName="@mantine/core/MenuLabel";var F=r(30342);let $={refProp:"ref"},z=(0,s.forwardRef)((e,t)=>{let{children:r,refProp:n,...o}=(0,d.Y)("MenuTarget",$,e);if(!(0,F.v)(r))throw Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");let i=v(),l=r.props,c=(0,w.T)(l.onClick,()=>{"click"===i.trigger?i.toggleDropdown():"click-hover"===i.trigger&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),h=(0,w.T)(l.onMouseEnter,()=>("hover"===i.trigger||"click-hover"===i.trigger)&&i.openDropdown()),u=(0,w.T)(l.onMouseLeave,()=>{"hover"===i.trigger?i.closeDropdown():"click-hover"!==i.trigger||i.openedViaClick||i.closeDropdown()});return(0,a.jsx)(p.A.Target,{refProp:n,popupType:"menu",ref:t,...o,children:(0,s.cloneElement)(r,{onClick:c,onMouseEnter:h,onMouseLeave:u,"data-expanded":!!i.opened||void 0})})});z.displayName="@mantine/core/MenuTarget";let O={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function R(e){let t=(0,d.Y)("Menu",O,e),{children:r,onOpen:h,onClose:v,opened:m,defaultOpened:f,trapFocus:k,onChange:M,closeOnItemClick:w,loop:b,closeOnEscape:x,trigger:S,openDelay:A,closeDelay:C,classNames:_,styles:I,unstyled:j,variant:E,vars:L,menuItemTabIndex:D,keepMounted:N,withInitialFocusPlaceholder:F,...$}=t,z=(0,c.I)({name:"Menu",classes:y,props:t,classNames:_,styles:I,unstyled:j}),[R,{setHovered:P,resetHovered:T}]=function(){let[e,t]=(0,s.useState)(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}(),[Y,G]=(0,n.Z)({value:m,defaultValue:f,finalValue:!1,onChange:M}),[V,q]=(0,s.useState)(!1),B=()=>{G(!1),q(!1),Y&&v?.()},K=()=>{G(!0),Y||h?.()},W=()=>{Y?B():K()},{openDropdown:H,closeDropdown:U}=(0,u.K)({open:K,close:B,closeDelay:C,openDelay:A}),{resolvedClassNames:Z,resolvedStyles:J}=(0,l.Y)({classNames:_,styles:I,props:t});return(0,o.C)(()=>{T()},[Y]),(0,a.jsx)(g,{value:{getStyles:z,opened:Y,toggleDropdown:W,getItemIndex:e=>e?Array.from((0,i.P)(e,"[data-menu-dropdown]")?.querySelectorAll("[data-menu-item]")||[]).findIndex(t=>t===e):null,hovered:R,setHovered:P,openedViaClick:V,setOpenedViaClick:q,closeOnItemClick:w,closeDropdown:"click"===S?B:U,openDropdown:"click"===S?K:H,closeDropdownImmediately:B,loop:b,trigger:S,unstyled:j,menuItemTabIndex:D,withInitialFocusPlaceholder:F},children:(0,a.jsx)(p.A,{...$,opened:Y,onChange:W,defaultOpened:f,trapFocus:!N&&k,closeOnEscape:x,__staticSelector:"Menu",classNames:Z,styles:J,unstyled:j,variant:E,keepMounted:N,children:r})})}R.extend=e=>e,R.withProps=(0,h.LE)(R),R.classes=y,R.displayName="@mantine/core/Menu",R.Item=L,R.Label=N,R.Dropdown=x,R.Target=z,R.Divider=k},58333:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]])},62801:(e,t,r)=>{"use strict";r.d(t,{Z:()=>k});var a=r(6029),s=r(55729),n=r(76),o=r(5618),i=r(80616),l=r(37666),c=r(63863),d=r(22623);let[h,u]=(0,r(36254).F)("Card component was not found in tree");var p=r(60481),g={root:"m_e615b15f",section:"m_599a2148"};let v={},m=(0,c.v)((e,t)=>{let{classNames:r,className:s,style:n,styles:o,vars:l,withBorder:c,inheritPadding:d,mod:h,...g}=(0,i.Y)("CardSection",v,e),m=u();return(0,a.jsx)(p.a,{ref:t,mod:[{"with-border":c,"inherit-padding":d},h],...m.getStyles("section",{className:s,style:n,styles:o,classNames:r}),...g})});m.classes=g,m.displayName="@mantine/core/CardSection";let y={},f=(0,o.V)((e,{padding:t})=>({root:{"--card-padding":(0,n.GY)(t)}})),k=(0,c.v)((e,t)=>{let r=(0,i.Y)("Card",y,e),{classNames:n,className:o,style:c,styles:u,unstyled:p,vars:v,children:k,padding:M,...w}=r,b=(0,l.I)({name:"Card",props:r,classes:g,className:o,style:c,classNames:n,styles:u,unstyled:p,vars:v,varsResolver:f}),x=s.Children.toArray(k),S=x.map((e,t)=>"object"==typeof e&&e&&"type"in e&&e.type===m?(0,s.cloneElement)(e,{"data-first-section":0===t||void 0,"data-last-section":t===x.length-1||void 0}):e);return(0,a.jsx)(h,{value:{getStyles:b},children:(0,a.jsx)(d.t,{ref:t,unstyled:p,...b("root"),...w,children:S})})});k.classes=g,k.displayName="@mantine/core/Card",k.Section=m},62861:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","logout","IconLogout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]])},66992:(e,t,r)=>{"use strict";r.d(t,{e:()=>b});var a=r(6029),s=r(55729),n=r(76),o=r(5618),i=r(80616),l=r(37666),c=r(60481),d=r(63863),h=r(43016);let u=(0,s.createContext)(null),p=u.Provider;var g={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};let v={},m=(0,o.V)((e,{spacing:t})=>({group:{"--ag-spacing":(0,n.GY)(t)}})),y=(0,h.P9)((e,t)=>{let r=(0,i.Y)("AvatarGroup",v,e),{classNames:s,className:n,style:o,styles:d,unstyled:h,vars:u,spacing:y,...f}=r,k=(0,l.I)({name:"AvatarGroup",classes:g,props:r,className:n,style:o,classNames:s,styles:d,unstyled:h,vars:u,varsResolver:m,rootSelector:"group"});return(0,a.jsx)(p,{value:!0,children:(0,a.jsx)(c.a,{ref:t,...k("group"),...f})})});function f(e){return(0,a.jsx)("svg",{...e,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}y.classes=g,y.displayName="@mantine/core/AvatarGroup";let k=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"],M={},w=(0,o.V)((e,{size:t,radius:r,variant:a,gradient:s,color:o,autoContrast:i,name:l,allowedInitialsColors:c})=>{let d="initials"===o&&"string"==typeof l?function(e,t=k){let r=Math.abs(function(e){let t=0;for(let r=0;r{let r=(0,i.Y)("Avatar",M,e),{classNames:n,className:o,style:d,styles:h,unstyled:p,vars:v,src:m,alt:y,radius:k,color:b,gradient:x,imageProps:S,children:A,autoContrast:C,mod:_,name:I,allowedInitialsColors:j,...E}=r,L={withinGroup:!!(0,s.useContext)(u)},[D,N]=(0,s.useState)(!m),F=(0,l.I)({name:"Avatar",props:r,classes:g,className:o,style:d,classNames:n,styles:h,unstyled:p,vars:v,varsResolver:w});return(0,s.useEffect)(()=>N(!m),[m]),(0,a.jsx)(c.a,{...F("root"),mod:[{"within-group":L.withinGroup},_],ref:t,...E,children:D?(0,a.jsx)("span",{...F("placeholder"),title:y,children:A||"string"==typeof I&&function(e,t=2){let r=e.split(" ");return 1===r.length?e.slice(0,t).toUpperCase():r.map(e=>e[0]).slice(0,t).join("").toUpperCase()}(I)||(0,a.jsx)(f,{})}):(0,a.jsx)("img",{...S,...F("image"),src:m,alt:y,onError:e=>{N(!0),S?.onError?.(e)}})})});b.classes=g,b.displayName="@mantine/core/Avatar",b.Group=y},70114:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chevron-right","IconChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]])},71991:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chart-dots","IconChartDots",[["path",{d:"M3 3v18h18",key:"svg-0"}],["path",{d:"M9 9m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M19 7m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M14 15m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M10.16 10.62l2.34 2.88",key:"svg-4"}],["path",{d:"M15.088 13.328l2.837 -4.586",key:"svg-5"}]])},72448:(e,t,r)=>{"use strict";function a(e,t){return r=>{e?.(r),t?.(r)}}r.d(t,{T:()=>a})},72832:(e,t,r)=>{"use strict";r.d(t,{I:()=>h,M:()=>d});var a=r(6029),s=r(55729),n=r(76),o=r(37666),i=r(60481),l=r(96061),c={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};let d=c,h=(0,s.forwardRef)(({__staticSelector:e,__stylesApiProps:t,className:r,classNames:s,styles:d,unstyled:h,children:u,label:p,description:g,id:v,disabled:m,error:y,size:f,labelPosition:k="left",bodyElement:M="div",labelElement:w="label",variant:b,style:x,vars:S,mod:A,...C},_)=>{let I=(0,o.I)({name:e,props:t,className:r,style:x,classes:c,classNames:s,styles:d,unstyled:h});return(0,a.jsx)(i.a,{...I("root"),ref:_,__vars:{"--label-fz":(0,n.ny)(f),"--label-lh":(0,n.YC)(f,"label-lh")},mod:[{"label-position":k},A],variant:b,size:f,...C,children:(0,a.jsxs)(i.a,{component:M,htmlFor:"label"===M?v:void 0,...I("body"),children:[u,(0,a.jsxs)("div",{...I("labelWrapper"),"data-disabled":m||void 0,children:[p&&(0,a.jsx)(i.a,{component:w,htmlFor:"label"===w?v:void 0,...I("label"),"data-disabled":m||void 0,children:p}),g&&(0,a.jsx)(l.p.Description,{size:f,__inheritStyles:!1,...I("description"),children:g}),y&&"boolean"!=typeof y&&(0,a.jsx)(l.p.Error,{size:f,__inheritStyles:!1,...I("error"),children:y})]})]})})});h.displayName="@mantine/core/InlineInput"},74805:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","clipboard","IconClipboard",[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]])},74862:(e,t,r)=>{"use strict";let a;r.d(t,{L:()=>ev});var s=r(6029),n=r(69626),o=r(43016),i=r(80616),l=r(3001);function c(e){return void 0!==e.group&&Array.isArray(e.actions)}var d=r(74003),h=r(62900);function u(e,t){let r=t.getState();t.setState({...r,...e(t.getState())})}function p(e){u(()=>({opened:!0,selected:-1}),e)}function g(e){u(()=>({opened:!1}),e)}function v(e,t=document){let r=t.querySelector(e);if(r)return r;let a=t instanceof ShadowRoot?t.host.children:t.children;for(let t=0;t({...e,selected:r})),l}let y=function(e,t){t.updateState(t=>({...t,listId:e}))},f=function(e){let t=e.getState(),r=v(`#${t.listId} [data-selected]`);r?.click()},k=function(e,t){u(()=>({query:e}),t),Promise.resolve().then(()=>{m(0,t),u(e=>({empty:e.query.trim().length>0&&0===e.registeredActions.size}),t)})},M=function({clearQuery:e},t){t.updateState(t=>({...t,selected:-1,query:e?"":t.query,empty:!e&&t.empty}))},[w,b]=[a=(0,h.y)({opened:!1,empty:!1,selected:-1,listId:"",query:"",registeredActions:new Set}),{open:()=>p(a),close:()=>g(a),toggle:()=>{u(e=>({opened:!e.opened,selected:e.opened?e.selected:-1}),a)}}],{open:x,close:S,toggle:A}=b;var C=r(55729),_=r(63863),I=r(5618),j=r(37666),E=r(60481),L=r(41375);function D({color:e,theme:t,defaultShade:r}){let a=(0,L.g)({color:e,theme:t});return a.isThemeColor?void 0===a.shade?`var(--mantine-color-${a.color}-${r})`:`var(${a.variable})`:e}var N={root:"m_bcb3f3c2"};let F={color:"yellow"},$=(0,I.V)((e,{color:t})=>({root:{"--mark-bg-dark":D({color:t,theme:e,defaultShade:5}),"--mark-bg-light":D({color:t,theme:e,defaultShade:2})}})),z=(0,o.P9)((e,t)=>{let r=(0,i.Y)("Mark",F,e),{classNames:a,className:n,style:o,styles:l,unstyled:c,vars:d,color:h,variant:u,...p}=r,g=(0,j.I)({name:"Mark",props:r,className:n,style:o,classes:N,classNames:a,styles:l,unstyled:c,vars:d,varsResolver:$});return(0,s.jsx)(E.a,{component:"mark",ref:t,variant:u,...g("root"),...p})});z.classes=N,z.displayName="@mantine/core/Mark";var O=r(43517);function R(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}let P={},T=(0,_.v)((e,t)=>{let{unstyled:r,children:a,highlight:n,highlightStyles:o,color:l,...c}=(0,i.Y)("Highlight",P,e),d=function(e,t){if(null==t)return[{chunk:e,highlighted:!1}];let r=Array.isArray(t)?t.map(R):R(t);if(!(Array.isArray(r)?r.filter(e=>e.trim().length>0).length>0:""!==r.trim()))return[{chunk:e,highlighted:!1}];let a="string"==typeof r?r.trim():r.filter(e=>0!==e.trim().length).map(e=>e.trim()).sort((e,t)=>t.length-e.length).join("|"),s=RegExp(`(${a})`,"gi");return e.split(s).map(e=>({chunk:e,highlighted:s.test(e)})).filter(({chunk:e})=>e)}(a,n);return(0,s.jsx)(O.E,{unstyled:r,ref:t,...c,__staticSelector:"Highlight",children:d.map(({chunk:e,highlighted:t},a)=>t?(0,s.jsx)(z,{unstyled:r,color:l,style:o,"data-highlight":e,children:e},a):(0,s.jsx)("span",{children:e},a))})});T.classes=O.E.classes,T.displayName="@mantine/core/Highlight";var Y=r(8737);let[G,V]=(0,r(36254).F)("Spotlight component was not found in tree");var q={root:"m_d2b315db",content:"m_3cd250e0",body:"m_d2abce9b",search:"m_f366a061",actionsList:"m_6e463822",action:"m_d49bb8ef",actionBody:"m_3d475731",actionSection:"m_832642f6",actionLabel:"m_6c2a1345",actionDescription:"m_a6d9d78d",empty:"m_82f78f74",footer:"m_ddcaf054",actionsGroup:"m_5a3e5f7b"};let B={dimmedSections:!0,highlightQuery:!1},K=(0,o.P9)((e,t)=>{let{className:r,style:a,classNames:n,styles:o,id:l,description:c,label:d,leftSection:h,rightSection:u,children:p,dimmedSections:v,highlightQuery:m,highlightColor:y,closeSpotlightOnTrigger:f,onClick:k,onMouseDown:M,keywords:w,vars:b,...x}=(0,i.Y)("SpotlightAction",B,e),S=V(),A={classNames:n,styles:o},C=m&&"string"==typeof d?(0,s.jsx)(T,{component:"span",highlight:S.query,color:y,...S.getStyles("actionLabel",A),children:d}):(0,s.jsx)("span",{...S.getStyles("actionLabel",A),children:d});return(0,s.jsx)(Y.N,{ref:t,"data-action":!0,...S.getStyles("action",{className:r,style:a,...A}),...x,onMouseDown:e=>{e.preventDefault(),M?.(e)},onClick:e=>{k?.(e),(f??S.closeOnActionTrigger)&&g(S.store)},tabIndex:-1,children:p||(0,s.jsxs)(s.Fragment,{children:[h&&(0,s.jsx)(E.a,{component:"span",mod:{position:"left",dimmed:v},...S.getStyles("actionSection",A),children:h}),(0,s.jsxs)("span",{...S.getStyles("actionBody",A),children:[C,(0,s.jsx)("span",{...S.getStyles("actionDescription",A),children:c})]}),u&&(0,s.jsx)(E.a,{component:"span",mod:{position:"right",dimmed:v},...S.getStyles("actionSection",A),children:u})]})})});K.classes=q,K.displayName="@mantine/spotlight/SpotlightAction";let W={},H=(0,o.P9)((e,t)=>{let{className:r,style:a,styles:n,classNames:o,label:l,children:c,...d}=(0,i.Y)("SpotlightActionsGroup",W,e),h=V();return(0,s.jsx)(E.a,{...h.getStyles("actionsGroup",{className:r,style:a,classNames:o,styles:n}),ref:t,...d,__vars:{"--spotlight-label":`'${l?.replace(/'/g,"\\'")}'`},children:c})});H.classes=q,H.displayName="@mantine/core/SpotlightActionsGroup";var U=r(53993);let Z={},J=(0,o.P9)((e,t)=>{let{className:r,style:a,id:n,children:o,vars:l,classNames:c,styles:d,...h}=(0,i.Y)("SpotlightActionsList",Z,e),u=V(),p=`mantine-${(0,C.useId)().replace(/:/g,"")}`,g=n||p;return(0,C.useEffect)(()=>(y(g,u.store),()=>y("",u.store)),[]),(0,s.jsx)(U.F.Autosize,{...u.getStyles("actionsList",{className:r,style:a,classNames:c,styles:d}),ref:t,type:"scroll",scrollbarSize:"var(--spotlight-actions-list-padding)",offsetScrollbars:"y",id:g,...h,children:o})});J.classes=q,J.displayName="@mantine/spotlight/SpotlightActionsList";let Q={},X=(0,o.P9)((e,t)=>{let{className:r,style:a,classNames:n,styles:o,...l}=(0,i.Y)("SpotlightEmpty",Q,e),c=V();return(0,s.jsx)(E.a,{ref:t,...c.getStyles("empty",{classNames:n,styles:o,className:r,style:a}),...l})});X.classes=q,X.displayName="@mantine/spotlight/SpotlightEmpty";let ee={},et=(0,o.P9)((e,t)=>{let{className:r,style:a,classNames:n,styles:o,...l}=(0,i.Y)("SpotlightFooter",ee,e),c=V();return(0,s.jsx)(E.a,{ref:t,...c.getStyles("footer",{className:r,classNames:n,style:a,styles:o}),...l})});et.classes=q,et.displayName="@mantine/spotlight/SpotlightFooter";var er=r(15862),ea=r(27166),es=r(86091),en=r(93692),eo=r(26615),ei=r(50561),el=r(3465);let ec={size:600,yOffset:80,zIndex:(0,n.I)("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:w,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K",maxHeight:400,scrollable:!1},ed=(0,o.P9)((e,t)=>{let r=(0,i.Y)("SpotlightRoot",ec,e),{classNames:a,className:n,style:o,styles:l,unstyled:c,vars:d,store:u,children:v,query:m,onQueryChange:y,transitionProps:f,clearQueryOnClose:w,shortcut:b,tagsToIgnore:x,triggerOnContentEditable:S,disabled:A,onSpotlightOpen:C,onSpotlightClose:_,forceOpened:I,closeOnActionTrigger:E,maxHeight:L,scrollable:D,...N}=r,F=(0,er.xd)(),{opened:$,query:z}=(0,h.P)(u),O=e=>{y?.(e),k(e,u)},R=(0,j.I)({name:"Spotlight",classes:q,props:r,className:n,style:o,classNames:a,styles:l,unstyled:c});return((0,ei.O)(function(e,t){if(!e)return[];let r=()=>p(t);return Array.isArray(e)?e.map(e=>[e,r]):[[e,r]]}(b,u),x,S),(0,el.C)(()=>{$?C?.():_?.()},[$]),A)?null:(0,s.jsx)(G,{value:{getStyles:R,query:m||z,setQuery:O,store:u,closeOnActionTrigger:E},children:(0,s.jsx)(ea.a,{ref:t,...N,withCloseButton:!1,opened:$||!!I,padding:0,onClose:()=>g(u),className:n,style:o,classNames:(0,es.J)({theme:F,classNames:[q,a],props:r,stylesCtx:void 0}),styles:(0,en.N)({theme:F,styles:l,props:r,stylesCtx:void 0}),transitionProps:{...f,onExited:()=>{w&&O(""),M({clearQuery:w},u),f?.onExited?.()}},__vars:{"--spotlight-max-height":D?(0,eo.D)(L):void 0},__staticSelector:"Spotlight","data-scrollable":D||void 0,children:v})})});ed.classes=q,ed.displayName="@mantine/spotlight/SpotlightRoot";var eh=r(96061);let eu={size:"lg"},ep=(0,o.P9)((e,t)=>{let{classNames:r,styles:a,onKeyDown:n,onChange:o,vars:l,value:c,...d}=(0,i.Y)("SpotlightSearch",eu,e),h=V(),u=h.getStyles("search"),[p,g]=(0,C.useState)(!1);return(0,s.jsx)(eh.p,{ref:t,classNames:[{input:u.className},r],styles:[{input:u.style},a],...d,value:c??h.query,onChange:e=>{h.setQuery(e.currentTarget.value),o?.(e)},onKeyDown:e=>{var t,r;n?.(e),p||("ArrowDown"===e.nativeEvent.code&&(e.preventDefault(),m((t=h.store).getState().selected+1,t)),"ArrowUp"===e.nativeEvent.code&&(e.preventDefault(),m((r=h.store).getState().selected-1,r)),("Enter"===e.nativeEvent.code||"NumpadEnter"===e.nativeEvent.code)&&(e.preventDefault(),f(h.store)))},onCompositionStart:()=>g(!0),onCompositionEnd:()=>g(!1)})});ep.classes=q,ep.displayName="@mantine/spotlight/SpotlightSearch";let eg={size:600,yOffset:80,limit:1/0,zIndex:(0,n.I)("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:w,filter:(e,t)=>{var r;let a,s,n=e.trim().toLowerCase(),o=[[],[]];return t.reduce((e,t)=>"actions"in t?[...e,...t.actions.map(e=>({...e,group:t.group}))]:[...e,t],[]).forEach(e=>{if(e.label?.toLowerCase().includes(n))o[0].push(e);else{var t;(e.description?.toLowerCase().includes(n)||(Array.isArray(t=e.keywords)?t.map(e=>e.trim()).join(",").toLowerCase().trim():"string"==typeof t?t.toLowerCase().trim():"").includes(n))&&o[1].push(e)}}),r=o.flat(),a={},s=[],r.forEach(e=>{e.group?(a[e.group]||(a[e.group]={pushed:!1,data:{group:e.group,actions:[]}}),a[e.group].data.actions.push(e),a[e.group].pushed||(a[e.group].pushed=!0,s.push(a[e.group].data))):s.push(e)}),s},clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K",highlightQuery:!1},ev=(0,o.P9)((e,t)=>{let{searchProps:r,filter:a,query:n,onQueryChange:o,actions:d,nothingFound:h,highlightQuery:u,limit:p,...g}=(0,i.Y)("Spotlight",eg,e),[v,m]=(0,l.Z)({value:n,defaultValue:"",finalValue:"",onChange:o}),y=(function e(t,r){if(!Array.isArray(t))return[];let a=0;return t.reduce((t,s)=>{if(a>=r)return t;if(c(s)){let n=e(s.actions,r-a);t.push({group:s.group,actions:n}),a+=n.length}else t.push(s),a+=1;return t},[])})(a(v,d),p).map(e=>{if(c(e)){let t=e.actions.map(({id:e,...t})=>(0,s.jsx)(K,{highlightQuery:u,...t},e));return(0,s.jsx)(H,{label:e.group,children:t},e.group)}return(0,s.jsx)(K,{highlightQuery:u,...e},e.id)});return(0,s.jsxs)(ed,{...g,query:v,onQueryChange:m,ref:t,children:[(0,s.jsx)(ep,{...r}),(0,s.jsxs)(J,{children:[y,0===y.length&&h&&(0,s.jsx)(X,{children:h})]})]})});ev.classes=q,ev.displayName="@mantine/spotlight/Spotlight",ev.Search=ep,ev.ActionsList=J,ev.Action=K,ev.Empty=X,ev.ActionsGroup=H,ev.Footer=et,ev.Root=ed,ev.open=b.open,ev.close=b.close,ev.toggle=b.toggle},80170:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","activity-heartbeat","IconActivityHeartbeat",[["path",{d:"M3 12h4.5l1.5 -6l4 12l2 -9l1.5 3h4.5",key:"svg-0"}]])},82556:(e,t,r)=>{"use strict";r.d(t,{K:()=>s});var a=r(55729);function s({open:e,close:t,openDelay:r,closeDelay:s}){let n=(0,a.useRef)(-1),o=(0,a.useRef)(-1),i=()=>{window.clearTimeout(n.current),window.clearTimeout(o.current)};return(0,a.useEffect)(()=>i,[]),{openDropdown:()=>{i(),0===r||void 0===r?e():n.current=window.setTimeout(e,r)},closeDropdown:()=>{i(),0===s||void 0===s?t():o.current=window.setTimeout(t,s)}}}},84479:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","grid-dots","IconGridDots",[["path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-5"}],["path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-6"}],["path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-7"}],["path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-8"}]])},85318:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","sitemap","IconSitemap",[["path",{d:"M3 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M15 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-2"}],["path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1",key:"svg-3"}],["path",{d:"M12 9l0 3",key:"svg-4"}]])},86502:()=>{},86705:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","device-laptop","IconDeviceLaptop",[["path",{d:"M3 19l18 0",key:"svg-0"}],["path",{d:"M5 6m0 1a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1z",key:"svg-1"}]])},87104:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","bell","IconBell",[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]])},87989:(e,t,r)=>{"use strict";r.d(t,{d:()=>M});var a=r(6029),s=r(60466),n=r(3001);r(55729);var o=r(76),i=r(5618),l=r(66404),c=r(80616),d=r(37666),h=r(3389),u=r(60481),p=r(43016),g=r(72832),v=r(46321),m=r(22746),y={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};let f={labelPosition:"right"},k=(0,i.V)((e,{radius:t,color:r,size:a})=>({root:{"--switch-radius":void 0===t?void 0:(0,o.nJ)(t),"--switch-height":(0,o.YC)(a,"switch-height"),"--switch-width":(0,o.YC)(a,"switch-width"),"--switch-thumb-size":(0,o.YC)(a,"switch-thumb-size"),"--switch-label-font-size":(0,o.YC)(a,"switch-label-font-size"),"--switch-track-label-padding":(0,o.YC)(a,"switch-track-label-padding"),"--switch-color":r?(0,l.r)(r,e):void 0}})),M=(0,p.P9)((e,t)=>{let r=(0,c.Y)("Switch",f,e),{classNames:o,className:i,style:l,styles:p,unstyled:m,vars:M,color:w,label:b,offLabel:x,onLabel:S,id:A,size:C,radius:_,wrapperProps:I,thumbIcon:j,checked:E,defaultChecked:L,onChange:D,labelPosition:N,description:F,error:$,disabled:z,variant:O,rootRef:R,mod:P,...T}=r,Y=(0,v.U)(),G=C||Y?.size,V=(0,d.I)({name:"Switch",props:r,classes:y,className:i,style:l,classNames:o,styles:p,unstyled:m,vars:M,varsResolver:k}),{styleProps:q,rest:B}=(0,h.j)(T),K=(0,s.B)(A),W=Y?{checked:Y.value.includes(B.value),onChange:Y.onChange}:{},[H,U]=(0,n.Z)({value:W.checked??E,defaultValue:L,finalValue:!1});return(0,a.jsxs)(g.I,{...V("root"),__staticSelector:"Switch",__stylesApiProps:r,id:K,size:G,labelPosition:N,label:b,description:F,error:$,disabled:z,bodyElement:"label",labelElement:"span",classNames:o,styles:p,unstyled:m,"data-checked":W.checked||E||void 0,variant:O,ref:R,mod:P,...q,...I,children:[(0,a.jsx)("input",{...B,disabled:z,checked:H,"data-checked":W.checked||E||void 0,onChange:e=>{Y?W.onChange?.(e):D?.(e),U(e.currentTarget.checked)},id:K,ref:t,type:"checkbox",role:"switch",...V("input")}),(0,a.jsxs)(u.a,{"aria-hidden":"true",component:"span",mod:{error:$,"label-position":N,"without-labels":!S&&!x},...V("track"),children:[(0,a.jsx)(u.a,{component:"span",mod:"reduce-motion",...V("thumb"),children:j}),(0,a.jsx)("span",{...V("trackLabel"),children:H?S:x})]})]})});M.classes={...y,...g.M},M.displayName="@mantine/core/Switch",M.Group=m.u},88992:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","arrow-right","IconArrowRight",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]])},89533:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","user-cog","IconUserCog",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h2.5",key:"svg-1"}],["path",{d:"M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M19.001 15.5v1.5",key:"svg-3"}],["path",{d:"M19.001 21v1.5",key:"svg-4"}],["path",{d:"M22.032 17.25l-1.299 .75",key:"svg-5"}],["path",{d:"M17.27 20l-1.3 .75",key:"svg-6"}],["path",{d:"M15.97 17.25l1.3 .75",key:"svg-7"}],["path",{d:"M20.733 20l1.3 .75",key:"svg-8"}]])},92334:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","help","IconHelp",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 17l0 .01",key:"svg-1"}],["path",{d:"M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4",key:"svg-2"}]])},92789:(e,t,r)=>{"use strict";r.d(t,{c:()=>g});var a=r(6029);r(55729);var s=r(76),n=r(5618),o=r(66404),i=r(80616),l=r(37666),c=r(60481),d=r(43016),h={root:"m_3eebeb36",label:"m_9e365f20"};let u={orientation:"horizontal"},p=(0,n.V)((e,{color:t,variant:r,size:a})=>({root:{"--divider-color":t?(0,o.r)(t,e):void 0,"--divider-border-style":r,"--divider-size":(0,s.YC)(a,"divider-size")}})),g=(0,d.P9)((e,t)=>{let r=(0,i.Y)("Divider",u,e),{classNames:s,className:n,style:o,styles:d,unstyled:g,vars:v,color:m,orientation:y,label:f,labelPosition:k,mod:M,...w}=r,b=(0,l.I)({name:"Divider",classes:h,props:r,className:n,style:o,classNames:s,styles:d,unstyled:g,vars:v,varsResolver:p});return(0,a.jsx)(c.a,{ref:t,mod:[{orientation:y,"with-label":!!f},M],...b("root"),...w,role:"separator",children:f&&(0,a.jsx)(c.a,{component:"span",mod:{position:k},...b("label"),children:f})})});g.classes=h,g.displayName="@mantine/core/Divider"},93938:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","bulb","IconBulb",[["path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7",key:"svg-0"}],["path",{d:"M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3",key:"svg-1"}],["path",{d:"M9.7 17l4.6 0",key:"svg-2"}]])},95316:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","settings","IconSettings",[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]])},97702:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","help-circle","IconHelpCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 16v.01",key:"svg-1"}],["path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483",key:"svg-2"}]])},97787:(e,t,r)=>{"use strict";r.d(t,{j:()=>y});var a=r(6029),s=r(55729),n=r(60466),o=r(3001),i=r(35228),l=r(80616),c=r(43016),d=r(63531),h=r(27273),u=r(46084),p=r(66085),g=r(24935),v=r(94613);let m={},y=(0,c.P9)((e,t)=>{let r=(0,l.Y)("Autocomplete",m,e),{classNames:c,styles:y,unstyled:f,vars:k,dropdownOpened:M,defaultDropdownOpened:w,onDropdownClose:b,onDropdownOpen:x,onFocus:S,onBlur:A,onClick:C,onChange:_,data:I,value:j,defaultValue:E,selectFirstOptionOnChange:L,onOptionSubmit:D,comboboxProps:N,readOnly:F,disabled:$,filter:z,limit:O,withScrollArea:R,maxDropdownHeight:P,size:T,id:Y,renderOption:G,autoComplete:V,scrollAreaProps:q,onClear:B,clearButtonProps:K,error:W,clearable:H,rightSection:U,...Z}=r,J=(0,n.B)(Y),Q=(0,d.d)(I),X=(0,h.D)(Q),[ee,et]=(0,o.Z)({value:j,defaultValue:E,finalValue:"",onChange:_}),er=(0,g.B)({opened:M,defaultOpened:w,onDropdownOpen:x,onDropdownClose:()=>{b?.(),er.resetSelectedOption()}}),ea=e=>{et(e),er.resetSelectedOption()},{resolvedClassNames:es,resolvedStyles:en}=(0,i.Y)({props:r,styles:y,classNames:c});(0,s.useEffect)(()=>{L&&er.selectFirstOption()},[L,ee]);let eo=(0,a.jsx)(u.G.ClearButton,{...K,onClear:()=>{ea(""),B?.()}});return(0,a.jsxs)(u.G,{store:er,__staticSelector:"Autocomplete",classNames:es,styles:en,unstyled:f,readOnly:F,onOptionSubmit:e=>{D?.(e),ea(X[e].label),er.closeDropdown()},size:T,...N,children:[(0,a.jsx)(u.G.Target,{autoComplete:V,children:(0,a.jsx)(v.O,{ref:t,...Z,size:T,__staticSelector:"Autocomplete",__clearSection:eo,__clearable:H&&!!ee&&!$&&!F,rightSection:U,disabled:$,readOnly:F,value:ee,error:W,onChange:e=>{ea(e.currentTarget.value),er.openDropdown(),L&&er.selectFirstOption()},onFocus:e=>{er.openDropdown(),S?.(e)},onBlur:e=>{er.closeDropdown(),A?.(e)},onClick:e=>{er.openDropdown(),C?.(e)},classNames:es,styles:en,unstyled:f,id:J})}),(0,a.jsx)(p.i,{data:Q,hidden:F||$,filter:z,search:ee,limit:O,hiddenWhenEmpty:!0,withScrollArea:R,maxDropdownHeight:P,unstyled:f,labelId:Z.label?`${J}-label`:void 0,"aria-label":Z.label?void 0:Z["aria-label"],renderOption:G,scrollAreaProps:q})]})});y.classes={...v.O.classes,...u.G.classes},y.displayName="@mantine/core/Autocomplete"}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2814],{1146:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","brand-discord","IconBrandDiscord",[["path",{d:"M8 12a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-0"}],["path",{d:"M14 12a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M15.5 17c0 1 1.5 3 2 3c1.5 0 2.833 -1.667 3.5 -3c.667 -1.667 .5 -5.833 -1.5 -11.5c-1.457 -1.015 -3 -1.34 -4.5 -1.5l-.972 1.923a11.913 11.913 0 0 0 -4.053 0l-.975 -1.923c-1.5 .16 -3.043 .485 -4.5 1.5c-2 5.667 -2.167 9.833 -1.5 11.5c.667 1.333 2 3 3.5 3c.5 0 2 -2 2 -3",key:"svg-2"}],["path",{d:"M7 16.5c3.5 1 6.5 1 10 0",key:"svg-3"}]])},1885:(e,t,r)=>{"use strict";function a(e){return Array.isArray?Array.isArray(e):"[object Array]"===d(e)}r.d(t,{A:()=>K});let s=1/0;function n(e){return"string"==typeof e}function o(e){return"number"==typeof e}function i(e){return"object"==typeof e}function l(e){return null!=e}function c(e){return!e.trim().length}function d(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let h=Object.prototype.hasOwnProperty;class u{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=p(e);t+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function p(e){let t=null,r=null,s=null,o=1,i=null;if(n(e)||a(e))s=e,t=g(e),r=v(e);else{if(!h.call(e,"name"))throw Error("Missing name property in key");let a=e.name;if(s=a,h.call(e,"weight")&&(o=e.weight)<=0)throw Error(`Property 'weight' in key '${a}' must be a positive integer`);t=g(a),r=v(a),i=e.getFn}return{path:t,id:r,weight:o,src:s,getFn:i}}function g(e){return a(e)?e:e.split(".")}function v(e){return a(e)?e.join("."):e}var m={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx{if(l(e))if(t[u]){var p,g;let v=e[t[u]];if(!l(v))return;if(u===t.length-1&&(n(v)||o(v)||!0===(p=v)||!1===p||i(g=p)&&null!==g&&"[object Boolean]"==d(p)))r.push(null==v?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-s?"-0":t}(v));else if(a(v)){c=!0;for(let e=0,r=v.length;e{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,n(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();n(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t{let o=t.getFn?t.getFn(e):this.getFn(e,t.path);if(l(o)){if(a(o)){let e=[],t=[{nestedArrIndex:-1,value:o}];for(;t.length;){let{nestedArrIndex:r,value:s}=t.pop();if(l(s))if(n(s)&&!c(s)){let t={v:s,i:r,n:this.norm.get(s)};e.push(t)}else a(s)&&s.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}r.$[s]=e}else if(n(o)&&!c(o)){let e={v:o,n:this.norm.get(o)};r.$[s]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function k(e,t,{getFn:r=m.getFn,fieldNormWeight:a=m.fieldNormWeight}={}){let s=new f({getFn:r,fieldNormWeight:a});return s.setKeys(e.map(p)),s.setSources(t),s.create(),s}function M(e,{errors:t=0,currentLocation:r=0,expectedLocation:a=0,distance:s=m.distance,ignoreLocation:n=m.ignoreLocation}={}){let o=t/e.length;if(n)return o;let i=Math.abs(a-r);return s?o+i/s:i?1:o}class w{constructor(e,{location:t=m.location,threshold:r=m.threshold,distance:a=m.distance,includeMatches:s=m.includeMatches,findAllMatches:n=m.findAllMatches,minMatchCharLength:o=m.minMatchCharLength,isCaseSensitive:i=m.isCaseSensitive,ignoreLocation:l=m.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:a,includeMatches:s,findAllMatches:n,minMatchCharLength:o,isCaseSensitive:i,ignoreLocation:l},this.pattern=i?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,a=e.length;r32){let e=0;const t=d%32,r=d-t;for(;e{let{isMatch:g,score:v,indices:y}=function(e,t,r,{location:a=m.location,distance:s=m.distance,threshold:n=m.threshold,findAllMatches:o=m.findAllMatches,minMatchCharLength:i=m.minMatchCharLength,includeMatches:l=m.includeMatches,ignoreLocation:c=m.ignoreLocation}={}){let d;if(t.length>32)throw Error("Pattern length exceeds max of 32.");let h=t.length,u=e.length,p=Math.max(0,Math.min(a,u)),g=n,v=p,y=i>1||l,f=y?Array(u):[];for(;(d=e.indexOf(t,v))>-1;)if(g=Math.min(M(t,{currentLocation:d,expectedLocation:p,distance:s,ignoreLocation:c}),g),v=d+h,y){let e=0;for(;e=l;n-=1){let o=n-1,i=r[e.charAt(o)];if(y&&(f[o]=+!!i),m[n]=(m[n+1]<<1|1)&i,a&&(m[n]|=(k[n+1]|k[n])<<1|1|k[n+1]),m[n]&x&&(w=M(t,{errors:a,currentLocation:o,expectedLocation:p,distance:s,ignoreLocation:c}))<=g){if(g=w,(v=o)<=p)break;l=Math.max(1,2*p-v)}}if(M(t,{errors:a+1,currentLocation:p,expectedLocation:p,distance:s,ignoreLocation:c})>g)break;k=m}let S={isMatch:v>=0,score:Math.max(.001,w)};if(y){let e=function(e=[],t=m.minMatchCharLength){let r=[],a=-1,s=-1,n=0;for(let o=e.length;n=t&&r.push([a,s]),a=-1)}return e[n-1]&&n-a>=t&&r.push([a,n-1]),r}(f,i);e.length?l&&(S.indices=e):S.isMatch=!1}return S}(e,t,u,{location:a+p,distance:s,threshold:n,findAllMatches:o,minMatchCharLength:i,includeMatches:r,ignoreLocation:l});g&&(h=!0),d+=v,g&&y&&(c=[...c,...y])});let u={isMatch:h,score:h?d/this.chunks.length:1};return h&&r&&(u.indices=c),u}}class b{constructor(e){this.pattern=e}static isMultiMatch(e){return x(e,this.multiRegex)}static isSingleMatch(e){return x(e,this.singleRegex)}search(){}}function x(e,t){let r=e.match(t);return r?r[1]:null}class S extends b{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}}class A extends b{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class C extends b{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}}class I extends b{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class _ extends b{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}}class E extends b{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class j extends b{constructor(e,{location:t=m.location,threshold:r=m.threshold,distance:a=m.distance,includeMatches:s=m.includeMatches,findAllMatches:n=m.findAllMatches,minMatchCharLength:o=m.minMatchCharLength,isCaseSensitive:i=m.isCaseSensitive,ignoreLocation:l=m.ignoreLocation}={}){super(e),this._bitapSearch=new w(e,{location:t,threshold:r,distance:a,includeMatches:s,findAllMatches:n,minMatchCharLength:o,isCaseSensitive:i,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class L extends b{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,a=[],s=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+s,a.push([t,r-1]);let n=!!a.length;return{isMatch:n,score:+!n,indices:a}}}let D=[S,L,C,I,E,_,A,j],N=D.length,F=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,$=new Set([j.type,L.type]);class O{constructor(e,{isCaseSensitive:t=m.isCaseSensitive,includeMatches:r=m.includeMatches,minMatchCharLength:a=m.minMatchCharLength,ignoreLocation:s=m.ignoreLocation,findAllMatches:n=m.findAllMatches,location:o=m.location,threshold:i=m.threshold,distance:l=m.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:r,minMatchCharLength:a,findAllMatches:n,ignoreLocation:s,location:o,threshold:i,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map(e=>{let r=e.trim().split(F).filter(e=>e&&!!e.trim()),a=[];for(let e=0,s=r.length;e!!(e[P]||e.$or),G=e=>({[P]:Object.keys(e).map(t=>({[t]:e[t]}))});function V(e,t,{auto:r=!0}={}){let s=e=>{let o=Object.keys(e),l=!!e[T];if(!l&&o.length>1&&!Y(e))return s(G(e));if(!a(e)&&i(e)&&!Y(e)){let a=l?e[T]:o[0],s=l?e.$val:e[a];if(!n(s))throw Error(`Invalid value for key ${a}`);let i={keyId:v(a),pattern:s};return r&&(i.searcher=z(s,t)),i}let c={children:[],operator:o[0]};return o.forEach(t=>{let r=e[t];a(r)&&r.forEach(e=>{c.children.push(s(e))})}),c};return Y(e)||(e=G(e)),s(e)}function q(e,t){let r=e.matches;t.matches=[],l(r)&&r.forEach(e=>{if(!l(e.indices)||!e.indices.length)return;let{indices:r,value:a}=e,s={indices:r,value:a};e.key&&(s.key=e.key.src),e.idx>-1&&(s.refIndex=e.idx),t.matches.push(s)})}function B(e,t){t.score=e.score}class K{constructor(e,t={},r){this.options={...m,...t},this.options.useExtendedSearch,this._keyStore=new u(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof f))throw Error("Incorrect 'index' type");this._myIndex=t||k(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){l(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,a=this._docs.length;r{let r=1;e.matches.forEach(({key:e,norm:a,score:s})=>{let n=e?e.weight:null;r*=Math.pow(0===s&&n?Number.EPSILON:s,(n||1)*(t?1:a))}),e.score=r})}(c,{ignoreFieldNorm:l}),s&&c.sort(i),o(t)&&t>-1&&(c=c.slice(0,t)),function(e,t,{includeMatches:r=m.includeMatches,includeScore:a=m.includeScore}={}){let s=[];return r&&s.push(q),a&&s.push(B),e.map(e=>{let{idx:r}=e,a={item:t[r],refIndex:r};return s.length&&s.forEach(t=>{t(e,a)}),a})}(c,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(e){let t=z(e,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:e,i:r,n:s})=>{if(!l(e))return;let{isMatch:n,score:o,indices:i}=t.searchIn(e);n&&a.push({item:e,idx:r,matches:[{score:o,value:e,norm:s,indices:i}]})}),a}_searchLogical(e){let t=V(e,this.options),r=(e,t,a)=>{if(!e.children){let{keyId:r,searcher:s}=e,n=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:s});return n&&n.length?[{idx:a,item:t,matches:n}]:[]}let s=[];for(let n=0,o=e.children.length;n{if(l(e)){let o=r(t,e,a);o.length&&(s[a]||(s[a]={idx:a,item:e,matches:[]},n.push(s[a])),o.forEach(({matches:e})=>{s[a].matches.push(...e)}))}}),n}_searchObjectList(e){let t=z(e,this.options),{keys:r,records:a}=this._myIndex,s=[];return a.forEach(({$:e,i:a})=>{if(!l(e))return;let n=[];r.forEach((r,a)=>{n.push(...this._findMatches({key:r,value:e[a],searcher:t}))}),n.length&&s.push({idx:a,item:e,matches:n})}),s}_findMatches({key:e,value:t,searcher:r}){if(!l(t))return[];let s=[];if(a(t))t.forEach(({v:t,i:a,n:n})=>{if(!l(t))return;let{isMatch:o,score:i,indices:c}=r.searchIn(t);o&&s.push({score:i,key:e,value:t,idx:a,norm:n,indices:c})});else{let{v:a,n:n}=t,{isMatch:o,score:i,indices:l}=r.searchIn(a);o&&s.push({score:i,key:e,value:a,norm:n,indices:l})}return s}}K.version="6.6.2",K.createIndex=k,K.parseIndex=function(e,{getFn:t=m.getFn,fieldNormWeight:r=m.fieldNormWeight}={}){let{keys:a,records:s}=e,n=new f({getFn:t,fieldNormWeight:r});return n.setKeys(a),n.setIndexRecords(s),n},K.config=m,K.parseQuery=V,function(...e){R.push(...e)}(O)},16120:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","command","IconCommand",[["path",{d:"M7 9a2 2 0 1 1 2 -2v10a2 2 0 1 1 -2 -2h10a2 2 0 1 1 -2 2v-10a2 2 0 1 1 2 2h-10",key:"svg-0"}]])},21604:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","book","IconBook",[["path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-0"}],["path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-1"}],["path",{d:"M3 6l0 13",key:"svg-2"}],["path",{d:"M12 6l0 13",key:"svg-3"}],["path",{d:"M21 6l0 13",key:"svg-4"}]])},22175:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var a=r(55729),s=r(33361);function n(e){try{return e&&JSON.parse(e)}catch{return e}}function o(e){return{getItem:t=>{try{return window[e].getItem(t)}catch(e){return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(t,r)=>{try{window[e].setItem(t,r)}catch(e){console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:t=>{try{window[e].removeItem(t)}catch(e){console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function i(e){return(function(e,t){let r="localStorage"===e?"mantine-local-storage":"mantine-session-storage",{getItem:i,setItem:l,removeItem:c}=o(e);return function({key:o,defaultValue:d,getInitialValueInEffect:h=!0,sync:u=!0,deserialize:p=n,serialize:g=e=>(function(e,t="use-local-storage"){try{return JSON.stringify(e)}catch(e){throw Error(`@mantine/hooks ${t}: Failed to serialize the value`)}})(e,t)}){let v=(0,a.useCallback)(t=>{let r;try{r="u"{e instanceof Function?y(t=>{let a=e(t);return l(o,g(a)),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:e(t)}})),a}):(l(o,g(e)),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:e}})),y(e))},[o]),k=(0,a.useCallback)(()=>{c(o),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:d}}))},[]);return(0,s.M)("storage",t=>{u&&t.storageArea===window[e]&&t.key===o&&y(p(t.newValue??void 0))}),(0,s.M)(r,e=>{u&&e.detail.key===o&&y(e.detail.value)}),(0,a.useEffect)(()=>{void 0!==d&&void 0===m&&f(d)},[d,m,f]),(0,a.useEffect)(()=>{let e=v();void 0!==e&&f(e)},[o]),[void 0===m?d:m,f,k]}})("localStorage","use-local-storage")(e)}!function(e){let{getItem:t}=o(e)}("localStorage")},22746:(e,t,r)=>{"use strict";r.d(t,{u:()=>h});var a=r(6029),s=r(3001);r(55729);var n=r(80616),o=r(43016),i=r(96061),l=r(29645),c=r(46321);let d={},h=(0,o.P9)((e,t)=>{let{value:r,defaultValue:o,onChange:h,size:u,wrapperProps:p,children:g,readOnly:v,...m}=(0,n.Y)("SwitchGroup",d,e),[y,f]=(0,s.Z)({value:r,defaultValue:o,finalValue:[],onChange:h});return(0,a.jsx)(c.x,{value:{value:y,onChange:e=>{let t=e.currentTarget.value;v||f(y.includes(t)?y.filter(e=>e!==t):[...y,t])},size:u},children:(0,a.jsx)(i.p.Wrapper,{size:u,ref:t,...p,...m,labelElement:"div",__staticSelector:"SwitchGroup",children:(0,a.jsx)(l.F,{role:"group",children:g})})})});h.classes=i.p.Wrapper.classes,h.displayName="@mantine/core/SwitchGroup"},23474:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]])},23994:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","flask","IconFlask",[["path",{d:"M9 3l6 0",key:"svg-0"}],["path",{d:"M10 9l4 0",key:"svg-1"}],["path",{d:"M10 3v6l-4 11a.7 .7 0 0 0 .5 1h11a.7 .7 0 0 0 .5 -1l-4 -11v-6",key:"svg-2"}]])},29645:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});var a=r(6029);r(55729);var s=r(1827);function n({children:e,role:t}){let r=(0,s.e)();return r?(0,a.jsx)("div",{role:t,"aria-labelledby":r.labelId,"aria-describedby":r.describedBy,children:e}):(0,a.jsx)(a.Fragment,{children:e})}},36517:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","clipboard-check","IconClipboardCheck",[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M9 14l2 2l4 -4",key:"svg-2"}]])},42717:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","layout","IconLayout",[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 13m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M14 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-2"}]])},45519:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","table","IconTable",[["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z",key:"svg-0"}],["path",{d:"M3 10h18",key:"svg-1"}],["path",{d:"M10 3v18",key:"svg-2"}]])},46321:(e,t,r)=>{"use strict";r.d(t,{U:()=>o,x:()=>n});var a=r(55729);let s=(0,a.createContext)(null),n=s.Provider,o=()=>(0,a.useContext)(s)},46661:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","layout-grid","IconLayoutGrid",[["path",{d:"M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M14 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-3"}]])},50561:(e,t,r)=>{"use strict";r.d(t,{O:()=>o});var a=r(55729);let s={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"esc",Esc:"esc",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function n(e){let t=e.replace("Key","").toLowerCase();return s[e]||t}function o(e,t=["INPUT","TEXTAREA","SELECT"],r=!1){(0,a.useEffect)(()=>{let a=a=>{e.forEach(([e,s,o={preventDefault:!0,usePhysicalKeys:!1}])=>{var i;(i=o.usePhysicalKeys,t=>{let r,a,s,o;return function(e,t,r){let{alt:a,ctrl:s,meta:o,mod:i,shift:l,key:c}=e,{altKey:d,ctrlKey:h,metaKey:u,shiftKey:p,key:g,code:v}=t;if(a!==d)return!1;if(i){if(!h&&!u)return!1}else if(s!==h||o!==u)return!1;return l===p&&!!c&&(r?n(v)===n(c):n(g??v)===n(c))}((a={alt:(r=e.toLowerCase().split("+").map(e=>e.trim())).includes("alt"),ctrl:r.includes("ctrl"),meta:r.includes("meta"),mod:r.includes("mod"),shift:r.includes("shift"),plus:r.includes("[plus]")},s=["alt","ctrl","meta","shift","mod"],o=r.find(e=>!s.includes(e)),{...a,key:"[plus]"===o?"+":o}),t,i)})(a)&&function(e,t,r=!1){return!(e.target instanceof HTMLElement)||(r?!t.includes(e.target.tagName):!e.target.isContentEditable&&!t.includes(e.target.tagName))}(a,t,r)&&(o.preventDefault&&a.preventDefault(),s(a))})};return document.documentElement.addEventListener("keydown",a),()=>document.documentElement.removeEventListener("keydown",a)},[e])}},53061:(e,t,r)=>{"use strict";r.d(t,{o:()=>d});var a=r(6029);r(55729);var s=r(80616),n=r(37666),o=r(60481),i=r(63863),l={root:"m_4451eb3a"};let c={},d=(0,i.v)((e,t)=>{let r=(0,s.Y)("Center",c,e),{classNames:i,className:d,style:h,styles:u,unstyled:p,vars:g,inline:v,mod:m,...y}=r,f=(0,n.I)({name:"Center",props:r,classes:l,className:d,style:h,classNames:i,styles:u,unstyled:p,vars:g});return(0,a.jsx)(o.a,{ref:t,mod:[{inline:v},m],...f("root"),...y})});d.classes=l,d.displayName="@mantine/core/Center"},53780:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("filled","bell-filled","IconBellFilled",[["path",{d:"M14.235 19c.865 0 1.322 1.024 .745 1.668a3.992 3.992 0 0 1 -2.98 1.332a3.992 3.992 0 0 1 -2.98 -1.332c-.552 -.616 -.158 -1.579 .634 -1.661l.11 -.006h4.471z",key:"svg-0"}],["path",{d:"M12 2c1.358 0 2.506 .903 2.875 2.141l.046 .171l.008 .043a8.013 8.013 0 0 1 4.024 6.069l.028 .287l.019 .289v2.931l.021 .136a3 3 0 0 0 1.143 1.847l.167 .117l.162 .099c.86 .487 .56 1.766 -.377 1.864l-.116 .006h-16c-1.028 0 -1.387 -1.364 -.493 -1.87a3 3 0 0 0 1.472 -2.063l.021 -.143l.001 -2.97a8 8 0 0 1 3.821 -6.454l.248 -.146l.01 -.043a3.003 3.003 0 0 1 2.562 -2.29l.182 -.017l.176 -.004z",key:"svg-1"}]])},54134:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","logs","IconLogs",[["path",{d:"M4 12h.01",key:"svg-0"}],["path",{d:"M4 6h.01",key:"svg-1"}],["path",{d:"M4 18h.01",key:"svg-2"}],["path",{d:"M8 18h2",key:"svg-3"}],["path",{d:"M8 12h2",key:"svg-4"}],["path",{d:"M8 6h2",key:"svg-5"}],["path",{d:"M14 6h6",key:"svg-6"}],["path",{d:"M14 12h6",key:"svg-7"}],["path",{d:"M14 18h6",key:"svg-8"}]])},56447:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","layout-sidebar-left-collapse","IconLayoutSidebarLeftCollapse",[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]])},56513:(e,t,r)=>{"use strict";r.d(t,{W:()=>z});var a=r(6029),s=r(55729),n=r(3001),o=r(3465),i=r(78526),l=r(35228),c=r(37666),d=r(80616),h=r(43016),u=r(82556),p=r(37659);let[g,v]=(0,r(36254).F)("Menu component was not found in the tree");var m=r(60481),y={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504"};let f={},k=(0,h.P9)((e,t)=>{let{classNames:r,className:s,style:n,styles:o,vars:i,...l}=(0,d.Y)("MenuDivider",f,e),c=v();return(0,a.jsx)(m.a,{ref:t,...c.getStyles("divider",{className:s,style:n,styles:o,classNames:r}),...l})});k.classes=y,k.displayName="@mantine/core/MenuDivider";var M=r(56655),w=r(72448);let b={},x=(0,h.P9)((e,t)=>{let{classNames:r,className:n,style:o,styles:i,vars:l,onMouseEnter:c,onMouseLeave:h,onKeyDown:u,children:g,...m}=(0,d.Y)("MenuDropdown",b,e),y=(0,s.useRef)(null),f=v(),k=(0,w.T)(u,e=>{("ArrowUp"===e.key||"ArrowDown"===e.key)&&(e.preventDefault(),y.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),x=(0,w.T)(c,()=>("hover"===f.trigger||"click-hover"===f.trigger)&&f.openDropdown()),S=(0,w.T)(h,()=>("hover"===f.trigger||"click-hover"===f.trigger)&&f.closeDropdown());return(0,a.jsxs)(p.A.Dropdown,{...m,onMouseEnter:x,onMouseLeave:S,role:"menu","aria-orientation":"vertical",ref:(0,M.pc)(t,y),...f.getStyles("dropdown",{className:n,style:o,styles:i,classNames:r,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:k,children:[f.withInitialFocusPlaceholder&&(0,a.jsx)("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),g]})});x.classes=y,x.displayName="@mantine/core/MenuDropdown";var S=r(66062),A=r(41375),C=r(15862),I=r(63863),_=r(52432),E=r(8737);let j={},L=(0,I.v)((e,t)=>{let{classNames:r,className:n,style:o,styles:i,vars:l,color:c,closeMenuOnClick:h,leftSection:u,rightSection:p,children:g,disabled:m,"data-disabled":y,...f}=(0,d.Y)("MenuItem",j,e),k=v(),b=(0,C.xd)(),{dir:x}=(0,_.jH)(),I=(0,s.useRef)(null),L=k.getItemIndex(I.current),D=(0,w.T)(f.onMouseLeave,()=>k.setHovered(-1)),N=(0,w.T)(f.onMouseEnter,()=>k.setHovered(k.getItemIndex(I.current))),F=(0,w.T)(f.onClick,()=>{!y&&("boolean"==typeof h?h&&k.closeDropdownImmediately():k.closeOnItemClick&&k.closeDropdownImmediately())}),$=(0,w.T)(f.onFocus,()=>k.setHovered(k.getItemIndex(I.current))),O=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,R=c?(0,A.g)({color:c,theme:b}):null;return(0,a.jsxs)(E.N,{...f,unstyled:k.unstyled,tabIndex:k.menuItemTabIndex,onFocus:$,...k.getStyles("item",{className:n,style:o,styles:i,classNames:r}),ref:(0,M.pc)(I,t),role:"menuitem",disabled:m,"data-menu-item":!0,"data-disabled":m||y||void 0,"data-hovered":k.hovered===L||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:N,onMouseLeave:D,onClick:F,onKeyDown:(0,S.Y)({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:k.loop,dir:x,orientation:"vertical",onKeyDown:f.onKeyDown}),__vars:{"--menu-item-color":R?.isThemeColor&&R?.shade===void 0?`var(--mantine-color-${R.color}-6)`:O?.color,"--menu-item-hover":O?.hover},children:[u&&(0,a.jsx)("div",{...k.getStyles("itemSection",{styles:i,classNames:r}),"data-position":"left",children:u}),g&&(0,a.jsx)("div",{...k.getStyles("itemLabel",{styles:i,classNames:r}),children:g}),p&&(0,a.jsx)("div",{...k.getStyles("itemSection",{styles:i,classNames:r}),"data-position":"right",children:p})]})});L.classes=y,L.displayName="@mantine/core/MenuItem";let D={},N=(0,h.P9)((e,t)=>{let{classNames:r,className:s,style:n,styles:o,vars:i,...l}=(0,d.Y)("MenuLabel",D,e),c=v();return(0,a.jsx)(m.a,{ref:t,...c.getStyles("label",{className:s,style:n,styles:o,classNames:r}),...l})});N.classes=y,N.displayName="@mantine/core/MenuLabel";var F=r(30342);let $={refProp:"ref"},O=(0,s.forwardRef)((e,t)=>{let{children:r,refProp:n,...o}=(0,d.Y)("MenuTarget",$,e);if(!(0,F.v)(r))throw Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");let i=v(),l=r.props,c=(0,w.T)(l.onClick,()=>{"click"===i.trigger?i.toggleDropdown():"click-hover"===i.trigger&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),h=(0,w.T)(l.onMouseEnter,()=>("hover"===i.trigger||"click-hover"===i.trigger)&&i.openDropdown()),u=(0,w.T)(l.onMouseLeave,()=>{"hover"===i.trigger?i.closeDropdown():"click-hover"!==i.trigger||i.openedViaClick||i.closeDropdown()});return(0,a.jsx)(p.A.Target,{refProp:n,popupType:"menu",ref:t,...o,children:(0,s.cloneElement)(r,{onClick:c,onMouseEnter:h,onMouseLeave:u,"data-expanded":!!i.opened||void 0})})});O.displayName="@mantine/core/MenuTarget";let R={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function z(e){let t=(0,d.Y)("Menu",R,e),{children:r,onOpen:h,onClose:v,opened:m,defaultOpened:f,trapFocus:k,onChange:M,closeOnItemClick:w,loop:b,closeOnEscape:x,trigger:S,openDelay:A,closeDelay:C,classNames:I,styles:_,unstyled:E,variant:j,vars:L,menuItemTabIndex:D,keepMounted:N,withInitialFocusPlaceholder:F,...$}=t,O=(0,c.I)({name:"Menu",classes:y,props:t,classNames:I,styles:_,unstyled:E}),[z,{setHovered:P,resetHovered:T}]=function(){let[e,t]=(0,s.useState)(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}(),[Y,G]=(0,n.Z)({value:m,defaultValue:f,finalValue:!1,onChange:M}),[V,q]=(0,s.useState)(!1),B=()=>{G(!1),q(!1),Y&&v?.()},K=()=>{G(!0),Y||h?.()},W=()=>{Y?B():K()},{openDropdown:H,closeDropdown:U}=(0,u.K)({open:K,close:B,closeDelay:C,openDelay:A}),{resolvedClassNames:Z,resolvedStyles:J}=(0,l.Y)({classNames:I,styles:_,props:t});return(0,o.C)(()=>{T()},[Y]),(0,a.jsx)(g,{value:{getStyles:O,opened:Y,toggleDropdown:W,getItemIndex:e=>e?Array.from((0,i.P)(e,"[data-menu-dropdown]")?.querySelectorAll("[data-menu-item]")||[]).findIndex(t=>t===e):null,hovered:z,setHovered:P,openedViaClick:V,setOpenedViaClick:q,closeOnItemClick:w,closeDropdown:"click"===S?B:U,openDropdown:"click"===S?K:H,closeDropdownImmediately:B,loop:b,trigger:S,unstyled:E,menuItemTabIndex:D,withInitialFocusPlaceholder:F},children:(0,a.jsx)(p.A,{...$,opened:Y,onChange:W,defaultOpened:f,trapFocus:!N&&k,closeOnEscape:x,__staticSelector:"Menu",classNames:Z,styles:J,unstyled:E,variant:j,keepMounted:N,children:r})})}z.extend=e=>e,z.withProps=(0,h.LE)(z),z.classes=y,z.displayName="@mantine/core/Menu",z.Item=L,z.Label=N,z.Dropdown=x,z.Target=O,z.Divider=k},58333:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]])},62801:(e,t,r)=>{"use strict";r.d(t,{Z:()=>k});var a=r(6029),s=r(55729),n=r(76),o=r(5618),i=r(80616),l=r(37666),c=r(63863),d=r(22623);let[h,u]=(0,r(36254).F)("Card component was not found in tree");var p=r(60481),g={root:"m_e615b15f",section:"m_599a2148"};let v={},m=(0,c.v)((e,t)=>{let{classNames:r,className:s,style:n,styles:o,vars:l,withBorder:c,inheritPadding:d,mod:h,...g}=(0,i.Y)("CardSection",v,e),m=u();return(0,a.jsx)(p.a,{ref:t,mod:[{"with-border":c,"inherit-padding":d},h],...m.getStyles("section",{className:s,style:n,styles:o,classNames:r}),...g})});m.classes=g,m.displayName="@mantine/core/CardSection";let y={},f=(0,o.V)((e,{padding:t})=>({root:{"--card-padding":(0,n.GY)(t)}})),k=(0,c.v)((e,t)=>{let r=(0,i.Y)("Card",y,e),{classNames:n,className:o,style:c,styles:u,unstyled:p,vars:v,children:k,padding:M,...w}=r,b=(0,l.I)({name:"Card",props:r,classes:g,className:o,style:c,classNames:n,styles:u,unstyled:p,vars:v,varsResolver:f}),x=s.Children.toArray(k),S=x.map((e,t)=>"object"==typeof e&&e&&"type"in e&&e.type===m?(0,s.cloneElement)(e,{"data-first-section":0===t||void 0,"data-last-section":t===x.length-1||void 0}):e);return(0,a.jsx)(h,{value:{getStyles:b},children:(0,a.jsx)(d.t,{ref:t,unstyled:p,...b("root"),...w,children:S})})});k.classes=g,k.displayName="@mantine/core/Card",k.Section=m},62861:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","logout","IconLogout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]])},66992:(e,t,r)=>{"use strict";r.d(t,{e:()=>b});var a=r(6029),s=r(55729),n=r(76),o=r(5618),i=r(80616),l=r(37666),c=r(60481),d=r(63863),h=r(43016);let u=(0,s.createContext)(null),p=u.Provider;var g={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};let v={},m=(0,o.V)((e,{spacing:t})=>({group:{"--ag-spacing":(0,n.GY)(t)}})),y=(0,h.P9)((e,t)=>{let r=(0,i.Y)("AvatarGroup",v,e),{classNames:s,className:n,style:o,styles:d,unstyled:h,vars:u,spacing:y,...f}=r,k=(0,l.I)({name:"AvatarGroup",classes:g,props:r,className:n,style:o,classNames:s,styles:d,unstyled:h,vars:u,varsResolver:m,rootSelector:"group"});return(0,a.jsx)(p,{value:!0,children:(0,a.jsx)(c.a,{ref:t,...k("group"),...f})})});function f(e){return(0,a.jsx)("svg",{...e,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}y.classes=g,y.displayName="@mantine/core/AvatarGroup";let k=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"],M={},w=(0,o.V)((e,{size:t,radius:r,variant:a,gradient:s,color:o,autoContrast:i,name:l,allowedInitialsColors:c})=>{let d="initials"===o&&"string"==typeof l?function(e,t=k){let r=Math.abs(function(e){let t=0;for(let r=0;r{let r=(0,i.Y)("Avatar",M,e),{classNames:n,className:o,style:d,styles:h,unstyled:p,vars:v,src:m,alt:y,radius:k,color:b,gradient:x,imageProps:S,children:A,autoContrast:C,mod:I,name:_,allowedInitialsColors:E,...j}=r,L={withinGroup:!!(0,s.useContext)(u)},[D,N]=(0,s.useState)(!m),F=(0,l.I)({name:"Avatar",props:r,classes:g,className:o,style:d,classNames:n,styles:h,unstyled:p,vars:v,varsResolver:w});return(0,s.useEffect)(()=>N(!m),[m]),(0,a.jsx)(c.a,{...F("root"),mod:[{"within-group":L.withinGroup},I],ref:t,...j,children:D?(0,a.jsx)("span",{...F("placeholder"),title:y,children:A||"string"==typeof _&&function(e,t=2){let r=e.split(" ");return 1===r.length?e.slice(0,t).toUpperCase():r.map(e=>e[0]).slice(0,t).join("").toUpperCase()}(_)||(0,a.jsx)(f,{})}):(0,a.jsx)("img",{...S,...F("image"),src:m,alt:y,onError:e=>{N(!0),S?.onError?.(e)}})})});b.classes=g,b.displayName="@mantine/core/Avatar",b.Group=y},70114:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chevron-right","IconChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]])},71991:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chart-dots","IconChartDots",[["path",{d:"M3 3v18h18",key:"svg-0"}],["path",{d:"M9 9m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M19 7m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M14 15m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M10.16 10.62l2.34 2.88",key:"svg-4"}],["path",{d:"M15.088 13.328l2.837 -4.586",key:"svg-5"}]])},72448:(e,t,r)=>{"use strict";function a(e,t){return r=>{e?.(r),t?.(r)}}r.d(t,{T:()=>a})},72832:(e,t,r)=>{"use strict";r.d(t,{I:()=>h,M:()=>d});var a=r(6029),s=r(55729),n=r(76),o=r(37666),i=r(60481),l=r(96061),c={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};let d=c,h=(0,s.forwardRef)(({__staticSelector:e,__stylesApiProps:t,className:r,classNames:s,styles:d,unstyled:h,children:u,label:p,description:g,id:v,disabled:m,error:y,size:f,labelPosition:k="left",bodyElement:M="div",labelElement:w="label",variant:b,style:x,vars:S,mod:A,...C},I)=>{let _=(0,o.I)({name:e,props:t,className:r,style:x,classes:c,classNames:s,styles:d,unstyled:h});return(0,a.jsx)(i.a,{..._("root"),ref:I,__vars:{"--label-fz":(0,n.ny)(f),"--label-lh":(0,n.YC)(f,"label-lh")},mod:[{"label-position":k},A],variant:b,size:f,...C,children:(0,a.jsxs)(i.a,{component:M,htmlFor:"label"===M?v:void 0,..._("body"),children:[u,(0,a.jsxs)("div",{..._("labelWrapper"),"data-disabled":m||void 0,children:[p&&(0,a.jsx)(i.a,{component:w,htmlFor:"label"===w?v:void 0,..._("label"),"data-disabled":m||void 0,children:p}),g&&(0,a.jsx)(l.p.Description,{size:f,__inheritStyles:!1,..._("description"),children:g}),y&&"boolean"!=typeof y&&(0,a.jsx)(l.p.Error,{size:f,__inheritStyles:!1,..._("error"),children:y})]})]})})});h.displayName="@mantine/core/InlineInput"},74805:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","clipboard","IconClipboard",[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]])},74862:(e,t,r)=>{"use strict";let a;r.d(t,{L:()=>ev});var s=r(6029),n=r(69626),o=r(43016),i=r(80616),l=r(3001);function c(e){return void 0!==e.group&&Array.isArray(e.actions)}var d=r(74003),h=r(62900);function u(e,t){let r=t.getState();t.setState({...r,...e(t.getState())})}function p(e){u(()=>({opened:!0,selected:-1}),e)}function g(e){u(()=>({opened:!1}),e)}function v(e,t=document){let r=t.querySelector(e);if(r)return r;let a=t instanceof ShadowRoot?t.host.children:t.children;for(let t=0;t({...e,selected:r})),l}let y=function(e,t){t.updateState(t=>({...t,listId:e}))},f=function(e){let t=e.getState(),r=v(`#${t.listId} [data-selected]`);r?.click()},k=function(e,t){u(()=>({query:e}),t),Promise.resolve().then(()=>{m(0,t),u(e=>({empty:e.query.trim().length>0&&0===e.registeredActions.size}),t)})},M=function({clearQuery:e},t){t.updateState(t=>({...t,selected:-1,query:e?"":t.query,empty:!e&&t.empty}))},[w,b]=[a=(0,h.y)({opened:!1,empty:!1,selected:-1,listId:"",query:"",registeredActions:new Set}),{open:()=>p(a),close:()=>g(a),toggle:()=>{u(e=>({opened:!e.opened,selected:e.opened?e.selected:-1}),a)}}],{open:x,close:S,toggle:A}=b;var C=r(55729),I=r(63863),_=r(5618),E=r(37666),j=r(60481),L=r(41375);function D({color:e,theme:t,defaultShade:r}){let a=(0,L.g)({color:e,theme:t});return a.isThemeColor?void 0===a.shade?`var(--mantine-color-${a.color}-${r})`:`var(${a.variable})`:e}var N={root:"m_bcb3f3c2"};let F={color:"yellow"},$=(0,_.V)((e,{color:t})=>({root:{"--mark-bg-dark":D({color:t,theme:e,defaultShade:5}),"--mark-bg-light":D({color:t,theme:e,defaultShade:2})}})),O=(0,o.P9)((e,t)=>{let r=(0,i.Y)("Mark",F,e),{classNames:a,className:n,style:o,styles:l,unstyled:c,vars:d,color:h,variant:u,...p}=r,g=(0,E.I)({name:"Mark",props:r,className:n,style:o,classes:N,classNames:a,styles:l,unstyled:c,vars:d,varsResolver:$});return(0,s.jsx)(j.a,{component:"mark",ref:t,variant:u,...g("root"),...p})});O.classes=N,O.displayName="@mantine/core/Mark";var R=r(43517);function z(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}let P={},T=(0,I.v)((e,t)=>{let{unstyled:r,children:a,highlight:n,highlightStyles:o,color:l,...c}=(0,i.Y)("Highlight",P,e),d=function(e,t){if(null==t)return[{chunk:e,highlighted:!1}];let r=Array.isArray(t)?t.map(z):z(t);if(!(Array.isArray(r)?r.filter(e=>e.trim().length>0).length>0:""!==r.trim()))return[{chunk:e,highlighted:!1}];let a="string"==typeof r?r.trim():r.filter(e=>0!==e.trim().length).map(e=>e.trim()).sort((e,t)=>t.length-e.length).join("|"),s=RegExp(`(${a})`,"gi");return e.split(s).map(e=>({chunk:e,highlighted:s.test(e)})).filter(({chunk:e})=>e)}(a,n);return(0,s.jsx)(R.E,{unstyled:r,ref:t,...c,__staticSelector:"Highlight",children:d.map(({chunk:e,highlighted:t},a)=>t?(0,s.jsx)(O,{unstyled:r,color:l,style:o,"data-highlight":e,children:e},a):(0,s.jsx)("span",{children:e},a))})});T.classes=R.E.classes,T.displayName="@mantine/core/Highlight";var Y=r(8737);let[G,V]=(0,r(36254).F)("Spotlight component was not found in tree");var q={root:"m_d2b315db",content:"m_3cd250e0",body:"m_d2abce9b",search:"m_f366a061",actionsList:"m_6e463822",action:"m_d49bb8ef",actionBody:"m_3d475731",actionSection:"m_832642f6",actionLabel:"m_6c2a1345",actionDescription:"m_a6d9d78d",empty:"m_82f78f74",footer:"m_ddcaf054",actionsGroup:"m_5a3e5f7b"};let B={dimmedSections:!0,highlightQuery:!1},K=(0,o.P9)((e,t)=>{let{className:r,style:a,classNames:n,styles:o,id:l,description:c,label:d,leftSection:h,rightSection:u,children:p,dimmedSections:v,highlightQuery:m,highlightColor:y,closeSpotlightOnTrigger:f,onClick:k,onMouseDown:M,keywords:w,vars:b,...x}=(0,i.Y)("SpotlightAction",B,e),S=V(),A={classNames:n,styles:o},C=m&&"string"==typeof d?(0,s.jsx)(T,{component:"span",highlight:S.query,color:y,...S.getStyles("actionLabel",A),children:d}):(0,s.jsx)("span",{...S.getStyles("actionLabel",A),children:d});return(0,s.jsx)(Y.N,{ref:t,"data-action":!0,...S.getStyles("action",{className:r,style:a,...A}),...x,onMouseDown:e=>{e.preventDefault(),M?.(e)},onClick:e=>{k?.(e),(f??S.closeOnActionTrigger)&&g(S.store)},tabIndex:-1,children:p||(0,s.jsxs)(s.Fragment,{children:[h&&(0,s.jsx)(j.a,{component:"span",mod:{position:"left",dimmed:v},...S.getStyles("actionSection",A),children:h}),(0,s.jsxs)("span",{...S.getStyles("actionBody",A),children:[C,(0,s.jsx)("span",{...S.getStyles("actionDescription",A),children:c})]}),u&&(0,s.jsx)(j.a,{component:"span",mod:{position:"right",dimmed:v},...S.getStyles("actionSection",A),children:u})]})})});K.classes=q,K.displayName="@mantine/spotlight/SpotlightAction";let W={},H=(0,o.P9)((e,t)=>{let{className:r,style:a,styles:n,classNames:o,label:l,children:c,...d}=(0,i.Y)("SpotlightActionsGroup",W,e),h=V();return(0,s.jsx)(j.a,{...h.getStyles("actionsGroup",{className:r,style:a,classNames:o,styles:n}),ref:t,...d,__vars:{"--spotlight-label":`'${l?.replace(/'/g,"\\'")}'`},children:c})});H.classes=q,H.displayName="@mantine/core/SpotlightActionsGroup";var U=r(53993);let Z={},J=(0,o.P9)((e,t)=>{let{className:r,style:a,id:n,children:o,vars:l,classNames:c,styles:d,...h}=(0,i.Y)("SpotlightActionsList",Z,e),u=V(),p=`mantine-${(0,C.useId)().replace(/:/g,"")}`,g=n||p;return(0,C.useEffect)(()=>(y(g,u.store),()=>y("",u.store)),[]),(0,s.jsx)(U.F.Autosize,{...u.getStyles("actionsList",{className:r,style:a,classNames:c,styles:d}),ref:t,type:"scroll",scrollbarSize:"var(--spotlight-actions-list-padding)",offsetScrollbars:"y",id:g,...h,children:o})});J.classes=q,J.displayName="@mantine/spotlight/SpotlightActionsList";let Q={},X=(0,o.P9)((e,t)=>{let{className:r,style:a,classNames:n,styles:o,...l}=(0,i.Y)("SpotlightEmpty",Q,e),c=V();return(0,s.jsx)(j.a,{ref:t,...c.getStyles("empty",{classNames:n,styles:o,className:r,style:a}),...l})});X.classes=q,X.displayName="@mantine/spotlight/SpotlightEmpty";let ee={},et=(0,o.P9)((e,t)=>{let{className:r,style:a,classNames:n,styles:o,...l}=(0,i.Y)("SpotlightFooter",ee,e),c=V();return(0,s.jsx)(j.a,{ref:t,...c.getStyles("footer",{className:r,classNames:n,style:a,styles:o}),...l})});et.classes=q,et.displayName="@mantine/spotlight/SpotlightFooter";var er=r(15862),ea=r(27166),es=r(86091),en=r(93692),eo=r(26615),ei=r(50561),el=r(3465);let ec={size:600,yOffset:80,zIndex:(0,n.I)("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:w,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K",maxHeight:400,scrollable:!1},ed=(0,o.P9)((e,t)=>{let r=(0,i.Y)("SpotlightRoot",ec,e),{classNames:a,className:n,style:o,styles:l,unstyled:c,vars:d,store:u,children:v,query:m,onQueryChange:y,transitionProps:f,clearQueryOnClose:w,shortcut:b,tagsToIgnore:x,triggerOnContentEditable:S,disabled:A,onSpotlightOpen:C,onSpotlightClose:I,forceOpened:_,closeOnActionTrigger:j,maxHeight:L,scrollable:D,...N}=r,F=(0,er.xd)(),{opened:$,query:O}=(0,h.P)(u),R=e=>{y?.(e),k(e,u)},z=(0,E.I)({name:"Spotlight",classes:q,props:r,className:n,style:o,classNames:a,styles:l,unstyled:c});return((0,ei.O)(function(e,t){if(!e)return[];let r=()=>p(t);return Array.isArray(e)?e.map(e=>[e,r]):[[e,r]]}(b,u),x,S),(0,el.C)(()=>{$?C?.():I?.()},[$]),A)?null:(0,s.jsx)(G,{value:{getStyles:z,query:m||O,setQuery:R,store:u,closeOnActionTrigger:j},children:(0,s.jsx)(ea.a,{ref:t,...N,withCloseButton:!1,opened:$||!!_,padding:0,onClose:()=>g(u),className:n,style:o,classNames:(0,es.J)({theme:F,classNames:[q,a],props:r,stylesCtx:void 0}),styles:(0,en.N)({theme:F,styles:l,props:r,stylesCtx:void 0}),transitionProps:{...f,onExited:()=>{w&&R(""),M({clearQuery:w},u),f?.onExited?.()}},__vars:{"--spotlight-max-height":D?(0,eo.D)(L):void 0},__staticSelector:"Spotlight","data-scrollable":D||void 0,children:v})})});ed.classes=q,ed.displayName="@mantine/spotlight/SpotlightRoot";var eh=r(96061);let eu={size:"lg"},ep=(0,o.P9)((e,t)=>{let{classNames:r,styles:a,onKeyDown:n,onChange:o,vars:l,value:c,...d}=(0,i.Y)("SpotlightSearch",eu,e),h=V(),u=h.getStyles("search"),[p,g]=(0,C.useState)(!1);return(0,s.jsx)(eh.p,{ref:t,classNames:[{input:u.className},r],styles:[{input:u.style},a],...d,value:c??h.query,onChange:e=>{h.setQuery(e.currentTarget.value),o?.(e)},onKeyDown:e=>{var t,r;n?.(e),p||("ArrowDown"===e.nativeEvent.code&&(e.preventDefault(),m((t=h.store).getState().selected+1,t)),"ArrowUp"===e.nativeEvent.code&&(e.preventDefault(),m((r=h.store).getState().selected-1,r)),("Enter"===e.nativeEvent.code||"NumpadEnter"===e.nativeEvent.code)&&(e.preventDefault(),f(h.store)))},onCompositionStart:()=>g(!0),onCompositionEnd:()=>g(!1)})});ep.classes=q,ep.displayName="@mantine/spotlight/SpotlightSearch";let eg={size:600,yOffset:80,limit:1/0,zIndex:(0,n.I)("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:w,filter:(e,t)=>{var r;let a,s,n=e.trim().toLowerCase(),o=[[],[]];return t.reduce((e,t)=>"actions"in t?[...e,...t.actions.map(e=>({...e,group:t.group}))]:[...e,t],[]).forEach(e=>{if(e.label?.toLowerCase().includes(n))o[0].push(e);else{var t;(e.description?.toLowerCase().includes(n)||(Array.isArray(t=e.keywords)?t.map(e=>e.trim()).join(",").toLowerCase().trim():"string"==typeof t?t.toLowerCase().trim():"").includes(n))&&o[1].push(e)}}),r=o.flat(),a={},s=[],r.forEach(e=>{e.group?(a[e.group]||(a[e.group]={pushed:!1,data:{group:e.group,actions:[]}}),a[e.group].data.actions.push(e),a[e.group].pushed||(a[e.group].pushed=!0,s.push(a[e.group].data))):s.push(e)}),s},clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K",highlightQuery:!1},ev=(0,o.P9)((e,t)=>{let{searchProps:r,filter:a,query:n,onQueryChange:o,actions:d,nothingFound:h,highlightQuery:u,limit:p,...g}=(0,i.Y)("Spotlight",eg,e),[v,m]=(0,l.Z)({value:n,defaultValue:"",finalValue:"",onChange:o}),y=(function e(t,r){if(!Array.isArray(t))return[];let a=0;return t.reduce((t,s)=>{if(a>=r)return t;if(c(s)){let n=e(s.actions,r-a);t.push({group:s.group,actions:n}),a+=n.length}else t.push(s),a+=1;return t},[])})(a(v,d),p).map(e=>{if(c(e)){let t=e.actions.map(({id:e,...t})=>(0,s.jsx)(K,{highlightQuery:u,...t},e));return(0,s.jsx)(H,{label:e.group,children:t},e.group)}return(0,s.jsx)(K,{highlightQuery:u,...e},e.id)});return(0,s.jsxs)(ed,{...g,query:v,onQueryChange:m,ref:t,children:[(0,s.jsx)(ep,{...r}),(0,s.jsxs)(J,{children:[y,0===y.length&&h&&(0,s.jsx)(X,{children:h})]})]})});ev.classes=q,ev.displayName="@mantine/spotlight/Spotlight",ev.Search=ep,ev.ActionsList=J,ev.Action=K,ev.Empty=X,ev.ActionsGroup=H,ev.Footer=et,ev.Root=ed,ev.open=b.open,ev.close=b.close,ev.toggle=b.toggle},80170:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","activity-heartbeat","IconActivityHeartbeat",[["path",{d:"M3 12h4.5l1.5 -6l4 12l2 -9l1.5 3h4.5",key:"svg-0"}]])},82556:(e,t,r)=>{"use strict";r.d(t,{K:()=>s});var a=r(55729);function s({open:e,close:t,openDelay:r,closeDelay:s}){let n=(0,a.useRef)(-1),o=(0,a.useRef)(-1),i=()=>{window.clearTimeout(n.current),window.clearTimeout(o.current)};return(0,a.useEffect)(()=>i,[]),{openDropdown:()=>{i(),0===r||void 0===r?e():n.current=window.setTimeout(e,r)},closeDropdown:()=>{i(),0===s||void 0===s?t():o.current=window.setTimeout(t,s)}}}},84479:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","grid-dots","IconGridDots",[["path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-5"}],["path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-6"}],["path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-7"}],["path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-8"}]])},85318:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","sitemap","IconSitemap",[["path",{d:"M3 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M15 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-2"}],["path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1",key:"svg-3"}],["path",{d:"M12 9l0 3",key:"svg-4"}]])},86502:()=>{},86705:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","device-laptop","IconDeviceLaptop",[["path",{d:"M3 19l18 0",key:"svg-0"}],["path",{d:"M5 6m0 1a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1z",key:"svg-1"}]])},87104:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","bell","IconBell",[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]])},87989:(e,t,r)=>{"use strict";r.d(t,{d:()=>M});var a=r(6029),s=r(60466),n=r(3001);r(55729);var o=r(76),i=r(5618),l=r(66404),c=r(80616),d=r(37666),h=r(3389),u=r(60481),p=r(43016),g=r(72832),v=r(46321),m=r(22746),y={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};let f={labelPosition:"right"},k=(0,i.V)((e,{radius:t,color:r,size:a})=>({root:{"--switch-radius":void 0===t?void 0:(0,o.nJ)(t),"--switch-height":(0,o.YC)(a,"switch-height"),"--switch-width":(0,o.YC)(a,"switch-width"),"--switch-thumb-size":(0,o.YC)(a,"switch-thumb-size"),"--switch-label-font-size":(0,o.YC)(a,"switch-label-font-size"),"--switch-track-label-padding":(0,o.YC)(a,"switch-track-label-padding"),"--switch-color":r?(0,l.r)(r,e):void 0}})),M=(0,p.P9)((e,t)=>{let r=(0,c.Y)("Switch",f,e),{classNames:o,className:i,style:l,styles:p,unstyled:m,vars:M,color:w,label:b,offLabel:x,onLabel:S,id:A,size:C,radius:I,wrapperProps:_,thumbIcon:E,checked:j,defaultChecked:L,onChange:D,labelPosition:N,description:F,error:$,disabled:O,variant:R,rootRef:z,mod:P,...T}=r,Y=(0,v.U)(),G=C||Y?.size,V=(0,d.I)({name:"Switch",props:r,classes:y,className:i,style:l,classNames:o,styles:p,unstyled:m,vars:M,varsResolver:k}),{styleProps:q,rest:B}=(0,h.j)(T),K=(0,s.B)(A),W=Y?{checked:Y.value.includes(B.value),onChange:Y.onChange}:{},[H,U]=(0,n.Z)({value:W.checked??j,defaultValue:L,finalValue:!1});return(0,a.jsxs)(g.I,{...V("root"),__staticSelector:"Switch",__stylesApiProps:r,id:K,size:G,labelPosition:N,label:b,description:F,error:$,disabled:O,bodyElement:"label",labelElement:"span",classNames:o,styles:p,unstyled:m,"data-checked":W.checked||j||void 0,variant:R,ref:z,mod:P,...q,..._,children:[(0,a.jsx)("input",{...B,disabled:O,checked:H,"data-checked":W.checked||j||void 0,onChange:e=>{Y?W.onChange?.(e):D?.(e),U(e.currentTarget.checked)},id:K,ref:t,type:"checkbox",role:"switch",...V("input")}),(0,a.jsxs)(u.a,{"aria-hidden":"true",component:"span",mod:{error:$,"label-position":N,"without-labels":!S&&!x},...V("track"),children:[(0,a.jsx)(u.a,{component:"span",mod:"reduce-motion",...V("thumb"),children:E}),(0,a.jsx)("span",{...V("trackLabel"),children:H?S:x})]})]})});M.classes={...y,...g.M},M.displayName="@mantine/core/Switch",M.Group=m.u},88992:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","arrow-right","IconArrowRight",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]])},89533:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","user-cog","IconUserCog",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h2.5",key:"svg-1"}],["path",{d:"M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M19.001 15.5v1.5",key:"svg-3"}],["path",{d:"M19.001 21v1.5",key:"svg-4"}],["path",{d:"M22.032 17.25l-1.299 .75",key:"svg-5"}],["path",{d:"M17.27 20l-1.3 .75",key:"svg-6"}],["path",{d:"M15.97 17.25l1.3 .75",key:"svg-7"}],["path",{d:"M20.733 20l1.3 .75",key:"svg-8"}]])},92334:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","help","IconHelp",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 17l0 .01",key:"svg-1"}],["path",{d:"M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4",key:"svg-2"}]])},93938:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","bulb","IconBulb",[["path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7",key:"svg-0"}],["path",{d:"M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3",key:"svg-1"}],["path",{d:"M9.7 17l4.6 0",key:"svg-2"}]])},95316:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","settings","IconSettings",[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]])},97702:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","help-circle","IconHelpCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 16v.01",key:"svg-1"}],["path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483",key:"svg-2"}]])},97787:(e,t,r)=>{"use strict";r.d(t,{j:()=>y});var a=r(6029),s=r(55729),n=r(60466),o=r(3001),i=r(35228),l=r(80616),c=r(43016),d=r(63531),h=r(27273),u=r(46084),p=r(66085),g=r(24935),v=r(94613);let m={},y=(0,c.P9)((e,t)=>{let r=(0,l.Y)("Autocomplete",m,e),{classNames:c,styles:y,unstyled:f,vars:k,dropdownOpened:M,defaultDropdownOpened:w,onDropdownClose:b,onDropdownOpen:x,onFocus:S,onBlur:A,onClick:C,onChange:I,data:_,value:E,defaultValue:j,selectFirstOptionOnChange:L,onOptionSubmit:D,comboboxProps:N,readOnly:F,disabled:$,filter:O,limit:R,withScrollArea:z,maxDropdownHeight:P,size:T,id:Y,renderOption:G,autoComplete:V,scrollAreaProps:q,onClear:B,clearButtonProps:K,error:W,clearable:H,rightSection:U,...Z}=r,J=(0,n.B)(Y),Q=(0,d.d)(_),X=(0,h.D)(Q),[ee,et]=(0,o.Z)({value:E,defaultValue:j,finalValue:"",onChange:I}),er=(0,g.B)({opened:M,defaultOpened:w,onDropdownOpen:x,onDropdownClose:()=>{b?.(),er.resetSelectedOption()}}),ea=e=>{et(e),er.resetSelectedOption()},{resolvedClassNames:es,resolvedStyles:en}=(0,i.Y)({props:r,styles:y,classNames:c});(0,s.useEffect)(()=>{L&&er.selectFirstOption()},[L,ee]);let eo=(0,a.jsx)(u.G.ClearButton,{...K,onClear:()=>{ea(""),B?.()}});return(0,a.jsxs)(u.G,{store:er,__staticSelector:"Autocomplete",classNames:es,styles:en,unstyled:f,readOnly:F,onOptionSubmit:e=>{D?.(e),ea(X[e].label),er.closeDropdown()},size:T,...N,children:[(0,a.jsx)(u.G.Target,{autoComplete:V,children:(0,a.jsx)(v.O,{ref:t,...Z,size:T,__staticSelector:"Autocomplete",__clearSection:eo,__clearable:H&&!!ee&&!$&&!F,rightSection:U,disabled:$,readOnly:F,value:ee,error:W,onChange:e=>{ea(e.currentTarget.value),er.openDropdown(),L&&er.selectFirstOption()},onFocus:e=>{er.openDropdown(),S?.(e)},onBlur:e=>{er.closeDropdown(),A?.(e)},onClick:e=>{er.openDropdown(),C?.(e)},classNames:es,styles:en,unstyled:f,id:J})}),(0,a.jsx)(p.i,{data:Q,hidden:F||$,filter:O,search:ee,limit:R,hiddenWhenEmpty:!0,withScrollArea:z,maxDropdownHeight:P,unstyled:f,labelId:Z.label?`${J}-label`:void 0,"aria-label":Z.label?void 0:Z["aria-label"],renderOption:G,scrollAreaProps:q})]})});y.classes={...v.O.classes,...u.G.classes},y.displayName="@mantine/core/Autocomplete"}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/3172-55e9e00f8671199d.js b/out/_next/static/chunks/3172-55e9e00f8671199d.js new file mode 100644 index 0000000..1d71c6a --- /dev/null +++ b/out/_next/static/chunks/3172-55e9e00f8671199d.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3172],{8989:(e,t,a)=>{"use strict";a.d(t,{R:()=>c});var n=a(75155),r=a(67270),s=a(12482),l=a(49672),o=a(81973),i=a(78550);function c(e,t){let a,c,d,m,u,h=(0,n.c)(16);h[0]!==e?(a={...e,with:void 0},h[0]=e,h[1]=a):a=h[1];let x=a,p=(0,l.fu)(),b=(0,i.Ge)(),f=x?.source;h[2]!==f?(c={id:f},h[2]=f,h[3]=c):c=h[3];let{data:g,isLoading:j}=(0,o.Fo)(c);h[4]!==x?(d=["explain",x],h[4]=x,h[5]=d):d=h[5],h[6]!==p||h[7]!==x||h[8]!==b||h[9]!==g?.querySettings?(m=async e=>{let{signal:t}=e,a=await (0,r.PV)(x,b,g?.querySettings);return(await p.query({query:`EXPLAIN ESTIMATE ${a.sql}`,query_params:a.params,format:"JSONEachRow",abort_signal:t,connectionId:x.connection})).json()},h[6]=p,h[7]=x,h[8]=b,h[9]=g?.querySettings,h[10]=m):m=h[10];let y=!j;return h[11]!==t||h[12]!==d||h[13]!==m||h[14]!==y?(u={queryKey:d,queryFn:m,retry:!1,staleTime:6e4,enabled:y,...t},h[11]=t,h[12]=d,h[13]=m,h[14]=y,h[15]=u):u=h[15],(0,s.I)(u)}},24207:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(6029),r=a(75155),s=a(56513),l=a(25062),o=a(90993);function i(e){let t,a,i,c=(0,r.c)(4),{onDelete:d}=e;return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(s.W.Target,{children:(0,n.jsx)(l.$,{variant:"danger",size:"xs",children:"Delete"})}),c[0]=t):t=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)(o.A,{size:16}),c[1]=a):a=c[1],c[2]!==d?(i=(0,n.jsxs)(s.W,{withArrow:!0,children:[t,(0,n.jsx)(s.W.Dropdown,{children:(0,n.jsx)(s.W.Item,{leftSection:a,onClick:d,children:"Confirm Delete"})})]}),c[2]=d,c[3]=i):i=c[3],i}},24314:(e,t,a)=>{"use strict";a.d(t,{Eb:()=>eH});var n=a(6029),r=a(75155),s=a(55729),l=a(1909),o=a(35467),i=a(82641),c=a(43517),d=a(34834),m=a(63085),u=a(53061),h=a(78253),x=a(60481),p=a(48378),b=a(76013),f=a(25062),g=a(3635),j=a(92789),y=a(38206),S=a(23935),v=a(9953),w=a(18341),C=a(58061),E=a(289),N=a(3465),_=a(60665),z=a(97702),T=a(90515),A=a(90993),$=a(28975),k=a(95316),I=a(57478),F=a(98142),L=a(93108),H=a(8989),V=a(78550),M=a(81973),D=a(36600),Z=a(76089);let q=["avg","count","max","min","quantile","sum","histogram"],O=[{value:"1 second",label:"1 second"},{value:Z.Z7.FifteenSecond,label:"15 seconds"},{value:Z.Z7.ThirtySecond,label:"30 seconds"},{value:Z.Z7.OneMinute,label:"1 minute"},{value:Z.Z7.FiveMinute,label:"5 minutes"},{value:Z.Z7.FifteenMinute,label:"15 minutes"},{value:Z.Z7.ThirtyMinute,label:"30 minutes"},{value:Z.Z7.OneHour,label:"1 hour"},{value:Z.Z7.TwoHour,label:"2 hours"},{value:Z.Z7.SixHour,label:"6 hours"},{value:Z.Z7.TwelveHour,label:"12 hours"},{value:Z.Z7.OneDay,label:"1 day"},{value:Z.Z7.TwoDay,label:"2 days"},{value:Z.Z7.SevenDay,label:"7 days"},{value:Z.Z7.ThirtyDay,label:"30 days"}],G=/MATERIALIZED VIEW [^\s]+\.[^\s]+ TO ([^\s]+)\.([^\s]+)/;function B(e){return e.engine?.includes("AggregatingMergeTree")??!1}function R(e){return e.engine?.includes("SummingMergeTree")??!1}async function P({databaseName:e,tableName:t,connectionId:a},n){try{let r=await n.getTableMetadata({databaseName:e,tableName:t,connectionId:a});if(r.engine?.startsWith("MaterializedView")){let e=function(e){let t=e.create_table_query.match(G);if(t&&t[1]&&t[2])return{databaseName:t[1],tableName:t[2]}}(r);if(e){let t=await n.getTableMetadata({...e,connectionId:a});return B(t)||R(t)?{mvMetadata:r,mvTableMetadata:t}:void 0}}else if(B(r)||R(r)){let s=await n.queryMaterializedViewsByTarget({databaseName:e,tableName:t,connectionId:a});if(1===s.length)return{mvMetadata:await n.getTableMetadata({...s[0],connectionId:a}),mvTableMetadata:r};return{mvTableMetadata:r}}}catch(e){console.error("Error fetching materialized view metadata",e)}}function K(e){let t=e.as_select??"",a=t.slice(0,t.toLowerCase().indexOf("from")).replace(/^select/i,"").trim();return(0,Z.AB)(a)}function Y(e,t,a,n){if("count"===e)return"";let r=t.name.split("__")[1];if(a.find(e=>e.name===r))return r;if(n){let e=K(n).find(e=>e.endsWith(t.name)),r=e&&a.find(t=>RegExp(`\\b${t.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(e));if(r)return r.name}return""}async function W(e,t,a){let{databaseName:n,tableName:r,connectionId:s}=e,{databaseName:l,tableName:i}=t;if(!r)return;let c=await P({databaseName:n,tableName:r,connectionId:s},a);if(!c)return;let{mvMetadata:d,mvTableMetadata:m}=c,[u,h]=await Promise.all([a.getColumns({databaseName:m.database,tableName:m.name,connectionId:s}),a.getColumns({databaseName:l,tableName:i,connectionId:s})]),x=u.filter(e=>e.type.includes("AggregateFunction")).map(e=>{let t,a=e.type.match(/AggregateFunction\(([a-zA-Z0-9_]+)/)?.[1];if("sum"===a&&e.name.toLowerCase().includes("count")?a="count":a?.startsWith("quantile")&&(a="quantile"),t=a,!q.includes(t??""))return;let n=Y(a,e,h,d);return{mvColumn:e.name,aggFn:a,sourceColumn:n}}).filter(e=>void 0!=e),p=R(m)?function(e){if(!R(e))return;let t=e.engine_full?.match(/SummingMergeTree\((\(?[^(]*)\)/)?.[1],a=t?.at(0)==="("&&t?.at(-1)===")"?t.slice(1,-1):t;if(a)return new Set((0,Z.AB)(a))}(m):void 0;for(let e of p??[]){let t=e.toLowerCase().includes("count")?"count":"sum",a=u.find(t=>t.name===e);if(a){let n=Y(t,a,h,d);x.push({mvColumn:e,aggFn:t,sourceColumn:n})}}let b=new Set((0,o.bZ)(m.primary_key)),f=(0,o.P1)(u,[o.A2.Date])??[],g=f?.find(e=>b.has(e.name))?.name??"",j="";d&&(j=function(e,t){try{let a=K(e).find(e=>e.match(/toStartOf|toDate/)&&e.includes(t));if(!a)return;for(let[e,t]of Object.entries({toStartOfSecond:"1 second",toStartOfMinute:"1 minute",toStartOfFiveMinutes:"5 minute",toStartOfFifteenMinutes:"15 minute",toStartOfHour:"1 hour",toStartOfDay:"1 day",toDate:"1 day",toDateTime:"1 second"}))if(a?.includes(`${e}(`))return t;if(a.includes("toStartOfInterval(")){let e=a.match(/INTERVAL\s+(\d+)\s+(SECOND|MINUTE|HOUR|DAY)S?\)/i),t=a.match(/toInterval(Second|Minute|Hour|Day)\((\d+)\)/),n=e?`${e[1]} ${e[2].toLowerCase()}`:t?`${t[2]} ${t[1].toLowerCase()}`:null;if(n&&O.map(e=>e.value).includes(n)&&O.map(e=>e.value).includes(n))return n}}catch(e){console.error("Error inferring timestamp column granularity",e)}}(d,g)??"");let y=u.filter(e=>!e.type.includes("AggregateFunction")&&!p?.has(e.name)&&!f.includes(e)).map(e=>e.name).join(", ");return{databaseName:m.database,tableName:m.name,dimensionColumns:y,minGranularity:j,timestampColumn:g,aggregatedColumns:x}}var X=a(24207),U=a(62453),Q=a(66980),J=a(49672);function ee(e){let t,a,s,l,o,i,c,d,m=(0,r.c)(21),{database:u,setDatabase:h,connectionId:x,onBlur:p,name:b,inputRef:f,size:g}=e,j=x??"";m[0]!==j?(t={connectionId:j},m[0]=j,m[1]=t):t=m[1];let S=!!x;m[2]!==S?(a={enabled:S},m[2]=S,m[3]=a):a=m[3];let{data:v,isLoading:w}=(0,J.VH)(t,a);m[4]!==v?.data?(s=v?.data||[],m[4]=v?.data,m[5]=s):s=m[5],m[6]!==s?(l=s.map(et),m[6]=s,m[7]=l):l=m[7];let C=l;return m[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)(Q.A,{size:16}),m[8]=o):o=m[8],m[9]===Symbol.for("react.memo_cache_sentinel")?(i={withinPortal:!1},m[9]=i):i=m[9],m[10]!==h?(c=e=>h(e??void 0),m[10]=h,m[11]=c):c=m[11],m[12]!==C||m[13]!==u||m[14]!==f||m[15]!==w||m[16]!==b||m[17]!==p||m[18]!==g||m[19]!==c?(d=(0,n.jsx)(y.l,{searchable:!0,placeholder:"Database",leftSection:o,maxDropdownHeight:280,data:C,disabled:w,comboboxProps:i,value:u,onChange:c,onBlur:p,name:b,ref:f,size:g}),m[12]=C,m[13]=u,m[14]=f,m[15]=w,m[16]=b,m[17]=p,m[18]=g,m[19]=c,m[20]=d):d=m[20],d}function et(e){return{value:e.name,label:e.name}}function ea(e){let t,a=(0,r.c)(7),{field:s}=(0,l.as)(e);return a[0]!==s.name||a[1]!==s.onBlur||a[2]!==s.onChange||a[3]!==s.ref||a[4]!==s.value||a[5]!==e?(t=(0,n.jsx)(ee,{...e,database:s.value,setDatabase:s.onChange,onBlur:s.onBlur,name:s.name,inputRef:s.ref}),a[0]=s.name,a[1]=s.onBlur,a[2]=s.onChange,a[3]=s.ref,a[4]=s.value,a[5]=e,a[6]=t):t=a[6],t}var en=a(45519),er=a(86761);function es(e){let t,a,s,l,o,i,c,d,m,u,x=(0,r.c)(29),{database:p,setTable:b,table:f,onBlur:g,name:j,size:S,inputRef:v,connectionId:w}=e,C=p??"",E=w??"";x[0]!==C||x[1]!==E?(t={database:C,connectionId:E},x[0]=C,x[1]=E,x[2]=t):t=x[2];let N=!!p&&!!w;x[3]!==N?(a={enabled:N},x[3]=N,x[4]=a):a=x[4];let{data:_,isLoading:z}=(0,J.uI)(t,a);x[5]!==_?.data?(s=_?.data||[],x[5]=_?.data,x[6]=s):s=x[6],x[7]!==s?(l=s.map(el),x[7]=s,x[8]=l):l=x[8];let T=l;x[9]!==w||x[10]!==p||x[11]!==f?(o=w&&p&&f?(0,n.jsx)(er.A,{source:{connection:w,from:{databaseName:p,tableName:f}},variant:"text"}):void 0,x[9]=w,x[10]=p,x[11]=f,x[12]=o):o=x[12],x[13]!==o?(i=(0,I.J)({sourceSchemaPreview:o}),x[13]=o,x[14]=i):i=x[14];let A=i;return x[15]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)(en.A,{size:16}),x[15]=c):c=x[15],x[16]===Symbol.for("react.memo_cache_sentinel")?(d={withinPortal:!1},x[16]=d):d=x[16],x[17]!==b?(m=e=>b(e??void 0),x[17]=b,x[18]=m):m=x[18],x[19]!==T||x[20]!==v||x[21]!==z||x[22]!==j||x[23]!==g||x[24]!==A||x[25]!==S||x[26]!==m||x[27]!==f?(u=(0,n.jsx)(h.s,{align:"center",gap:8,children:(0,n.jsx)(y.l,{searchable:!0,placeholder:"Table",leftSection:c,maxDropdownHeight:280,data:T,disabled:z,value:f,comboboxProps:d,onChange:m,onBlur:g,name:j,ref:v,size:S,className:"flex-grow-1",...A})}),x[19]=T,x[20]=v,x[21]=z,x[22]=j,x[23]=g,x[24]=A,x[25]=S,x[26]=m,x[27]=f,x[28]=u):u=x[28],u}function el(e){return{value:e.name,label:e.name}}function eo(e){let t,a,s,o,i=(0,r.c)(13);i[0]!==e?({database:a,connectionId:t,...s}=e,i[0]=e,i[1]=t,i[2]=a,i[3]=s):(t=i[1],a=i[2],s=i[3]);let{field:c}=(0,l.as)(s);return i[4]!==t||i[5]!==a||i[6]!==c.name||i[7]!==c.onBlur||i[8]!==c.onChange||i[9]!==c.ref||i[10]!==c.value||i[11]!==s?(o=(0,n.jsx)(es,{...s,database:a,connectionId:t,table:c.value,setTable:c.onChange,onBlur:c.onBlur,name:c.name,inputRef:c.ref}),i[4]=t,i[5]=a,i[6]=c.name,i[7]=c.onBlur,i[8]=c.onChange,i[9]=c.ref,i[10]=c.value,i[11]=s,i[12]=o):o=i[12],o}var ei=a(24589),ec=a(22599),ed=a(70114),em=a(18205);function eu(e){let t,a,l,o,i,c,d,m,u=(0,r.c)(16),{summary:h,details:x}=e,[p,b]=(0,s.useState)(!1);u[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>b(eh),u[0]=t):t=u[0];let g=p?"rotate(90deg)":"rotate(0deg)";return u[1]!==g?(a=(0,n.jsx)(ed.A,{size:14,style:{transform:g,transition:"transform 150ms ease"}}),u[1]=g,u[2]=a):a=u[2],u[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.jsx)(em.A,{size:14,className:"me-2"}),u[3]=l):l=u[3],u[4]!==h||u[5]!==a?(o=(0,n.jsxs)(f.$,{variant:"subtle",size:"compact-xs",color:"red",onClick:t,leftSection:a,children:[l," ",h]}),u[4]=h,u[5]=a,u[6]=o):o=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(i={whiteSpace:"pre-wrap",wordBreak:"break-word"},u[7]=i):i=u[7],u[8]!==x?(c=(0,n.jsx)(ei.C,{block:!0,c:"red",mt:"xs",style:i,children:x}),u[8]=x,u[9]=c):c=u[9],u[10]!==p||u[11]!==c?(d=(0,n.jsx)(ec.S,{in:p,children:c}),u[10]=p,u[11]=c,u[12]=d):d=u[12],u[13]!==o||u[14]!==d?(m=(0,n.jsxs)(n.Fragment,{children:[o,d]}),u[13]=o,u[14]=d,u[15]=m):m=u[15],m}function eh(e){return!e}var ex=a(71781),ep=a(9211),eb=a(64467);let ef="default",eg=q.map(e=>({value:e,label:e})),ej={timestampValueExpression:"TimeUnix",resourceAttributesExpression:"ResourceAttributes"},ey={[i.GL.Log]:{metricSourceId:[{targetKind:i.GL.Metric,targetField:"logSourceId"}],traceSourceId:[{targetKind:i.GL.Trace,targetField:"logSourceId"}]},[i.GL.Trace]:{logSourceId:[{targetKind:i.GL.Log,targetField:"traceSourceId"}],sessionSourceId:[{targetKind:i.GL.Session,targetField:"traceSourceId"}],metricSourceId:[{targetKind:i.GL.Metric,targetField:"logSourceId"}]},[i.GL.Session]:{traceSourceId:[{targetKind:i.GL.Trace,targetField:"sessionSourceId"}]},[i.GL.Metric]:{logSourceId:[{targetKind:i.GL.Log,targetField:"metricSourceId"}]}};function eS(e){let t,a,s,l,o,i,p,b,f,g,j,y=(0,r.c)(22),{label:S,children:v,helpText:w}=e;return y[0]===Symbol.for("react.memo_cache_sentinel")?(t={maxWidth:220,minWidth:220,height:"36px"},y[0]=t):t=y[0],y[1]!==S?(a="string"==typeof S?(0,n.jsx)(c.E,{tt:"capitalize",size:"sm",children:S}):S,y[1]=S,y[2]=a):a=y[2],y[3]!==a?(s=(0,n.jsx)(d.B,{justify:"center",style:t,children:a}),y[3]=a,y[4]=s):s=y[4],y[5]!==w?(l={...!w?{opacity:0,pointerEvents:"none"}:{}},y[5]=w,y[6]=l):l=y[6],y[7]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)(z.A,{size:20,className:"cursor-pointer"}),y[7]=o):o=y[7],y[8]!==w?(i=(0,n.jsx)(m.m,{label:w,color:"dark",c:"white",multiline:!0,maw:600,children:o}),y[8]=w,y[9]=i):i=y[9],y[10]!==l||y[11]!==i?(p=(0,n.jsx)(u.o,{me:"sm",ms:"sm",style:l,children:i}),y[10]=l,y[11]=i,y[12]=p):p=y[12],y[13]!==s||y[14]!==p?(b=(0,n.jsxs)(h.s,{align:"center",children:[s,p]}),y[13]=s,y[14]=p,y[15]=b):b=y[15],y[16]===Symbol.for("react.memo_cache_sentinel")?(f={minWidth:0},y[16]=f):f=y[16],y[17]!==v?(g=(0,n.jsx)(x.a,{w:"100%",style:f,children:v}),y[17]=v,y[18]=g):g=y[18],y[19]!==g||y[20]!==b?(j=(0,n.jsxs)(h.s,{align:"flex-start",children:[b,g]}),y[19]=g,y[20]=b,y[21]=j):j=y[21],j}function ev(e){let t,a,i,d,u,x,f,g,j,y,S,v,w,C,_,$,k,I,F,L,V,M,D,Z,q,O,G=(0,r.c)(75),{id:B,index:R,control:P,databaseName:K,name:Y,tableName:W,connectionId:X,removeHighlightedAttribute:U}=e,Q=`${Y}.${R}.sqlExpression`;G[0]!==P||G[1]!==Q?(t={control:P,name:Q},G[0]=P,G[1]=Q,G[2]=t):t=G[2];let J=(0,l.FH)(t),ee=`${Y}.${R}.alias`;G[3]!==P||G[4]!==ee?(a={control:P,name:ee},G[3]=P,G[4]=ee,G[5]=a):a=G[5];let et=(0,l.FH)(a),[ea,en]=(0,s.useState)();G[6]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{en(e)},G[6]=i):i=G[6];let er=(0,E.Y)(i,1e3);G[7]!==et||G[8]!==J||G[9]!==er?(d=()=>{er({expression:J,alias:et})},G[7]=et,G[8]=J,G[9]=er,G[10]=d):d=G[10],G[11]!==et||G[12]!==J?(u=[J,et],G[11]=et,G[12]=J,G[13]=u):u=G[13],(0,N.C)(d,u),G[14]!==K||G[15]!==W?(x={databaseName:K,tableName:W},G[14]=K,G[15]=W,G[16]=x):x=G[16];let es=ea?.alias,el=ea?.expression??"";G[17]!==el||G[18]!==es?(f=[{alias:es,valueExpression:el}],G[17]=el,G[18]=es,G[19]=f):f=G[19],G[20]!==X||G[21]!==f||G[22]!==x?(g={from:x,connection:X,select:f,where:""},G[20]=X,G[21]=f,G[22]=x,G[23]=g):g=G[23];let eo=!!ea?.expression;G[24]!==eo?(j={enabled:eo},G[24]=eo,G[25]=j):j=G[25];let{data:ei,error:ec,isLoading:ed}=(0,H.R)(g,j);G[26]!==et||G[27]!==J?(y=()=>{en({expression:J,alias:et})},G[26]=et,G[27]=J,G[28]=y):y=G[28];let em=y,eh=!!ei?.length,ep=ec instanceof o.p1,ef=ea?.expression===J&&ea?.alias===et&&(eh||ep);G[29]===Symbol.for("react.memo_cache_sentinel")?(S={display:"contents"},G[29]=S):S=G[29];let eg=`${Y}.${R}.sqlExpression`;G[30]!==X||G[31]!==K||G[32]!==W?(v={databaseName:K,tableName:W,connectionId:X},G[30]=X,G[31]=K,G[32]=W,G[33]=v):v=G[33];let ej=`${Y}.${R}.sqlExpression`;G[34]!==P||G[35]!==v||G[36]!==ej?(w=(0,n.jsx)(eb.Z,{tableConnection:v,control:P,name:ej,disableKeywordAutocomplete:!0,placeholder:"ResourceAttributes['http.host']"}),G[34]=P,G[35]=v,G[36]=ej,G[37]=w):w=G[37],G[38]!==eg||G[39]!==w?(C=(0,n.jsx)(p.x.Col,{span:3,pe:0,children:(0,n.jsx)("div",{style:S,"data-name":eg,children:w})}),G[38]=eg,G[39]=w,G[40]=C):C=G[40],G[41]===Symbol.for("react.memo_cache_sentinel")?(_=(0,n.jsx)(c.E,{c:"gray",children:"AS"}),G[41]=_):_=G[41];let ey=`${Y}.${R}.alias`;G[42]!==P||G[43]!==ey?($=(0,n.jsx)(eb.Z,{control:P,name:ey,placeholder:"Optional Alias",disableKeywordAutocomplete:!0}),G[42]=P,G[43]=ey,G[44]=$):$=G[44];let eS=!J||ed;G[45]===Symbol.for("react.memo_cache_sentinel")?(k=(0,n.jsx)(T.A,{size:16}),G[45]=k):k=G[45],G[46]!==ed||G[47]!==em||G[48]!==eS?(I=(0,n.jsx)(m.m,{label:"Validate expression",children:(0,n.jsx)(b.M,{size:"xs",variant:"subtle",color:"gray",loading:ed,disabled:eS,onClick:em,children:k})}),G[46]=ed,G[47]=em,G[48]=eS,G[49]=I):I=G[49],G[50]!==R||G[51]!==U?(F=()=>U(R),G[50]=R,G[51]=U,G[52]=F):F=G[52],G[53]===Symbol.for("react.memo_cache_sentinel")?(L=(0,n.jsx)(A.A,{size:16}),G[53]=L):L=G[53],G[54]!==F?(V=(0,n.jsx)(b.M,{size:"xs",variant:"subtle",color:"gray",onClick:F,children:L}),G[54]=F,G[55]=V):V=G[55],G[56]!==$||G[57]!==I||G[58]!==V?(M=(0,n.jsx)(p.x.Col,{span:2,ps:"xs",children:(0,n.jsxs)(h.s,{align:"center",gap:"sm",children:[_,$,I,V]})}),G[56]=$,G[57]=I,G[58]=V,G[59]=M):M=G[59],G[60]!==ec?.message||G[61]!==ep||G[62]!==eh||G[63]!==ef?(D=ef&&(0,n.jsxs)(p.x.Col,{span:5,pe:0,pt:0,children:[eh&&(0,n.jsx)(c.E,{c:"green",size:"xs",children:"Expression is valid."}),ep&&(0,n.jsx)(eu,{summary:"Expression is invalid",details:ec?.message})]}),G[60]=ec?.message,G[61]=ep,G[62]=eh,G[63]=ef,G[64]=D):D=G[64];let ev=`${Y}.${R}.luceneExpression`;return G[65]!==P||G[66]!==ev?(Z=(0,n.jsx)(p.x.Col,{span:3,pe:0,children:(0,n.jsx)(ex.t4,{control:P,name:ev,placeholder:"ResourceAttributes.http.host (Optional) "})}),G[65]=P,G[66]=ev,G[67]=Z):Z=G[67],G[68]===Symbol.for("react.memo_cache_sentinel")?(q=(0,n.jsx)(p.x.Col,{span:1,pe:0,children:(0,n.jsx)(c.E,{me:"sm",mt:6,children:(0,n.jsx)(m.m,{label:"An optional, Lucene version of the above expression. If provided, it is used when searching for this attribute value.",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer"})})})}),G[68]=q):q=G[68],G[69]!==B||G[70]!==C||G[71]!==M||G[72]!==D||G[73]!==Z?(O=(0,n.jsxs)(s.Fragment,{children:[C,M,D,Z,q]},B),G[69]=B,G[70]=C,G[71]=M,G[72]=D,G[73]=Z,G[74]=O):O=G[74],O}function ew(e){let t,a,s,o,i,c,d,m,u,h,x=(0,r.c)(37),{control:b,name:g,label:j,helpText:y}=e;x[0]!==b?(t={control:b,name:"from.databaseName",defaultValue:ef},x[0]=b,x[1]=t):t=x[1];let S=(0,l.FH)(t);x[2]!==b?(a={control:b,name:"from.tableName"},x[2]=b,x[3]=a):a=x[3];let v=(0,l.FH)(a);x[4]!==b?(s={control:b,name:"connection"},x[4]=b,x[5]=s):s=x[5];let w=(0,l.FH)(s);x[6]!==b||x[7]!==g?(o={control:b,name:g},x[6]=b,x[7]=g,x[8]=o):o=x[8];let{fields:C,append:E,remove:N}=(0,l.jz)(o);if(x[9]!==w||x[10]!==b||x[11]!==S||x[12]!==C||x[13]!==g||x[14]!==N||x[15]!==v){let e;x[17]!==w||x[18]!==b||x[19]!==S||x[20]!==g||x[21]!==N||x[22]!==v?(e=(e,t)=>{let{id:a}=e;return(0,n.jsx)(ev,{id:a,index:t,name:g,control:b,databaseName:S,tableName:v,connectionId:w,removeHighlightedAttribute:N},a)},x[17]=w,x[18]=b,x[19]=S,x[20]=g,x[21]=N,x[22]=v,x[23]=e):e=x[23],i=C.map(e),x[9]=w,x[10]=b,x[11]=S,x[12]=C,x[13]=g,x[14]=N,x[15]=v,x[16]=i}else i=x[16];x[24]!==i?(c=(0,n.jsx)(p.x,{columns:5,children:i}),x[24]=i,x[25]=c):c=x[25];let _=C.length?"sm":"md";return x[26]!==E?(d=()=>{E({sqlExpression:"",luceneExpression:"",alias:""},{shouldFocus:!1})},x[26]=E,x[27]=d):d=x[27],x[28]===Symbol.for("react.memo_cache_sentinel")?(m=(0,n.jsx)($.A,{size:14,className:"me-2"}),x[28]=m):m=x[28],x[29]!==_||x[30]!==d?(u=(0,n.jsxs)(f.$,{variant:"secondary",size:"sm",className:"align-self-start",mt:_,onClick:d,children:[m,"Add expression"]}),x[29]=_,x[30]=d,x[31]=u):u=x[31],x[32]!==y||x[33]!==j||x[34]!==u||x[35]!==c?(h=(0,n.jsxs)(eS,{label:j,helpText:y,children:[c,u]}),x[32]=y,x[33]=j,x[34]=u,x[35]=c,x[36]=h):h=x[36],h}function eC(e){let t,a,s,o,i,c,m,u=(0,r.c)(22),{control:h,setValue:x}=e;u[0]!==h?(t={control:h,name:"from.databaseName",defaultValue:ef},u[0]=h,u[1]=t):t=u[1];let p=(0,l.FH)(t);u[2]!==h?(a={control:h,name:"materializedViews"},u[2]=h,u[3]=a):a=u[3];let{fields:b,append:j,remove:y}=(0,l.jz)(a);if(u[4]!==h||u[5]!==b||u[6]!==y||u[7]!==x){let e;u[9]!==h||u[10]!==y||u[11]!==x?(e=(e,t)=>(0,n.jsx)(eE,{control:h,mvIndex:t,setValue:x,onRemove:()=>y(t)},e.id),u[9]=h,u[10]=y,u[11]=x,u[12]=e):e=u[12],s=b.map(e),u[4]=h,u[5]=b,u[6]=y,u[7]=x,u[8]=s}else s=u[8];return u[13]!==j||u[14]!==p?(o=()=>{j({databaseName:p,tableName:"",dimensionColumns:"",minGranularity:"",timestampColumn:"",aggregatedColumns:[]})},u[13]=j,u[14]=p,u[15]=o):o=u[15],u[16]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsxs)(g.Y,{children:[(0,n.jsx)($.A,{size:16}),"Add Materialized View"]}),u[16]=i):i=u[16],u[17]!==o?(c=(0,n.jsx)(f.$,{variant:"secondary",onClick:o,children:i}),u[17]=o,u[18]=c):c=u[18],u[19]!==s||u[20]!==c?(m=(0,n.jsx)(d.B,{gap:"md",children:(0,n.jsx)(eS,{label:"Materialized Views",helpText:"Configure materialized views for query optimization. These pre-aggregated views can significantly improve query performance on aggregation queries.",children:(0,n.jsxs)(d.B,{gap:"md",children:[s,c]})})}),u[19]=s,u[20]=c,u[21]=m):m=u[21],m}function eE(e){let t,a,s,o,i,u,h,f,y,S,v,w,C,E,N,_,T,$,k,I,F,L,H,V,M,Z=(0,r.c)(72),{control:q,mvIndex:O,onRemove:G,setValue:B}=e,R=(0,D.Kh)();Z[0]!==q?(t={control:q,name:"connection"},Z[0]=q,Z[1]=t):t=Z[1];let P=(0,l.FH)(t);Z[2]!==q?(a={control:q,name:"from.databaseName",defaultValue:ef},Z[2]=q,Z[3]=a):a=Z[3];let K=(0,l.FH)(a),Y=`materializedViews.${O}.databaseName`;Z[4]!==q||Z[5]!==K||Z[6]!==Y?(s={control:q,name:Y,defaultValue:K},Z[4]=q,Z[5]=K,Z[6]=Y,Z[7]=s):s=Z[7];let W=(0,l.FH)(s),X=`materializedViews.${O}.tableName`;Z[8]!==q||Z[9]!==X?(o={control:q,name:X,defaultValue:""},Z[8]=q,Z[9]=X,Z[10]=o):o=Z[10];let U=(0,l.FH)(o),Q=`materializedViews.${O}.databaseName`;Z[11]!==P||Z[12]!==q||Z[13]!==Q?(i=(0,n.jsx)(p.x.Col,{span:1,children:(0,n.jsx)(ea,{control:q,name:Q,connectionId:P})}),Z[11]=P,Z[12]=q,Z[13]=Q,Z[14]=i):i=Z[14];let J=`materializedViews.${O}.tableName`;Z[15]!==P||Z[16]!==q||Z[17]!==W||Z[18]!==J?(u=(0,n.jsx)(x.a,{flex:1,children:(0,n.jsx)(eo,{database:W,control:q,name:J,connectionId:P})}),Z[15]=P,Z[16]=q,Z[17]=W,Z[18]=J,Z[19]=u):u=Z[19],Z[20]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsx)(A.A,{size:16}),Z[20]=h):h=Z[20],Z[21]!==G?(f=(0,n.jsx)(b.M,{size:"sm",onClick:G,children:h}),Z[21]=G,Z[22]=f):f=Z[22],Z[23]!==u||Z[24]!==f?(y=(0,n.jsx)(p.x.Col,{span:1,children:(0,n.jsxs)(g.Y,{children:[u,f]})}),Z[23]=u,Z[24]=f,Z[25]=y):y=Z[25],Z[26]===Symbol.for("react.memo_cache_sentinel")?(S=(0,n.jsx)(c.E,{size:"xs",fw:500,mb:4,children:"Timestamp Column"}),Z[26]=S):S=Z[26],Z[27]!==P||Z[28]!==W||Z[29]!==U?(v={databaseName:W,tableName:U,connectionId:P},Z[27]=P,Z[28]=W,Z[29]=U,Z[30]=v):v=Z[30];let ee=`materializedViews.${O}.timestampColumn`;Z[31]!==q||Z[32]!==v||Z[33]!==ee?(w=(0,n.jsxs)(p.x.Col,{span:2,children:[S,(0,n.jsx)(eb.Z,{tableConnection:v,control:q,placeholder:"Timestamp",name:ee,disableKeywordAutocomplete:!0})]}),Z[31]=q,Z[32]=v,Z[33]=ee,Z[34]=w):w=Z[34],Z[35]===Symbol.for("react.memo_cache_sentinel")?(C=(0,n.jsxs)(c.E,{size:"xs",fw:500,mb:4,children:["Granularity",(0,n.jsx)(m.m,{label:"The granularity of the timestamp column",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"})})]}),Z[35]=C):C=Z[35];let et=`materializedViews.${O}.minGranularity`;Z[36]!==q||Z[37]!==et?(E=(0,n.jsxs)(p.x.Col,{span:1,children:[C,(0,n.jsx)(l.xI,{control:q,name:et,render:e_})]}),Z[36]=q,Z[37]=et,Z[38]=E):E=Z[38];let en=`(Optional) The earliest date and time (in the local timezone) for which the materialized view contains data. If not provided, then ${R} will assume that the materialized view contains data for all dates for which the source table contains data.`;Z[39]===Symbol.for("react.memo_cache_sentinel")?(N=(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"}),Z[39]=N):N=Z[39],Z[40]!==en?(_=(0,n.jsxs)(c.E,{size:"xs",fw:500,mb:4,children:["Minimum Date",(0,n.jsx)(m.m,{label:en,color:"dark",c:"white",multiline:!0,maw:600,children:N})]}),Z[40]=en,Z[41]=_):_=Z[41];let er=`materializedViews.${O}.minDate`;Z[42]!==q||Z[43]!==er?(T=(0,n.jsx)(l.xI,{control:q,name:er,render:eN}),Z[42]=q,Z[43]=er,Z[44]=T):T=Z[44],Z[45]!==_||Z[46]!==T?($=(0,n.jsxs)(p.x.Col,{span:1,children:[_,T]}),Z[45]=_,Z[46]=T,Z[47]=$):$=Z[47],Z[48]!==y||Z[49]!==w||Z[50]!==E||Z[51]!==$||Z[52]!==i?(k=(0,n.jsxs)(p.x,{columns:2,flex:1,children:[i,y,w,E,$]}),Z[48]=y,Z[49]=w,Z[50]=E,Z[51]=$,Z[52]=i,Z[53]=k):k=Z[53],Z[54]===Symbol.for("react.memo_cache_sentinel")?(I=(0,n.jsxs)(c.E,{size:"xs",fw:500,mb:4,children:["Dimension Columns (comma-separated)",(0,n.jsx)(m.m,{label:"Columns which are not pre-aggregated in the materialized view and can be used for filtering and grouping.",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"})})]}),Z[54]=I):I=Z[54],Z[55]!==P||Z[56]!==W||Z[57]!==U?(F={databaseName:W,tableName:U,connectionId:P},Z[55]=P,Z[56]=W,Z[57]=U,Z[58]=F):F=Z[58];let es=`materializedViews.${O}.dimensionColumns`;return Z[59]!==q||Z[60]!==F||Z[61]!==es?(L=(0,n.jsxs)(x.a,{children:[I,(0,n.jsx)(eb.Z,{tableConnection:F,control:q,name:es,placeholder:"ServiceName, StatusCode",disableKeywordAutocomplete:!0})]}),Z[59]=q,Z[60]=F,Z[61]=es,Z[62]=L):L=Z[62],Z[63]!==q||Z[64]!==O||Z[65]!==B?(H=(0,n.jsx)(ez,{control:q,mvIndex:O,setValue:B}),Z[63]=q,Z[64]=O,Z[65]=B,Z[66]=H):H=Z[66],Z[67]===Symbol.for("react.memo_cache_sentinel")?(V=(0,n.jsx)(j.c,{}),Z[67]=V):V=Z[67],Z[68]!==k||Z[69]!==L||Z[70]!==H?(M=(0,n.jsxs)(d.B,{gap:"sm",children:[k,L,H,V]}),Z[68]=k,Z[69]=L,Z[70]=H,Z[71]=M):M=Z[71],M}function eN(e){let{field:t}=e;return(0,n.jsx)(C.J,{...t,value:t.value?new Date(t.value):void 0,onChange:e=>t.onChange(e?e.toISOString():null),clearable:!0,highlightToday:!0,placeholder:"YYYY-MM-DD HH:mm:ss",valueFormat:"YYYY-MM-DD HH:mm:ss"})}function e_(e){let{field:t}=e;return(0,n.jsx)(y.l,{...t,data:O,placeholder:"Granularity",size:"sm"})}function ez({control:e,setValue:t,mvIndex:a}){let{fields:r,append:o,remove:d,replace:u}=(0,l.jz)({control:e,name:`materializedViews.${a}.aggregatedColumns`}),h=(0,s.useCallback)(()=>{o({sourceColumn:"",aggFn:"avg",mvColumn:""})},[o]),b=(0,l.FH)({control:e,name:"kind"}),j=(0,l.FH)({control:e,name:"connection"}),y=(0,l.FH)({control:e,name:`materializedViews.${a}.tableName`}),S=(0,l.FH)({control:e,name:`materializedViews.${a}.databaseName`}),v=(0,l.FH)({control:e,name:"from.databaseName"}),w=(0,l.FH)({control:e,name:"from.tableName"}),C=(0,s.useRef)(y),E=(0,V.Ge)();return(0,s.useEffect)(()=>{(async()=>{try{if(y!==C.current&&(C.current=y,(b===i.GL.Log||b===i.GL.Trace)&&j&&S&&y&&v&&w)){let e=await W({databaseName:S,tableName:y,connectionId:j},{databaseName:v,tableName:w,connectionId:j},E);e?(t(`materializedViews.${a}`,e),u(e.aggregatedColumns??[]),_.$e.show({color:"green",id:"mv-infer-success",message:"Partially inferred materialized view configuration from view schema."})):_.$e.show({color:"yellow",id:"mv-infer-failure",message:"Unable to infer materialized view configuration."})}}catch(e){console.error(e)}})()},[y,b,j,S,v,w,a,u,t,E]),(0,n.jsxs)(x.a,{children:[(0,n.jsxs)(c.E,{size:"xs",mb:4,children:["Pre-aggregated Columns",(0,n.jsx)(m.m,{label:"Columns which are pre-aggregated by the materialized view",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"})})]}),(0,n.jsx)(p.x,{columns:10,children:r.map((r,s)=>(0,n.jsx)(eT,{setValue:t,control:e,mvIndex:a,colIndex:s,onRemove:()=>d(s)},r.id))}),(0,n.jsx)(f.$,{size:"sm",variant:"secondary",onClick:h,mt:"lg",children:(0,n.jsxs)(g.Y,{children:[(0,n.jsx)($.A,{size:16}),"Add Column"]})})]})}function eT(e){let t,a,s,o,i,c,d,m,u,h,f,j,y,S,v,w=(0,r.c)(48),{control:C,mvIndex:E,colIndex:N,onRemove:_}=e;w[0]!==C?(t={control:C,name:"connection"},w[0]=C,w[1]=t):t=w[1];let z=(0,l.FH)(t);w[2]!==C?(a={control:C,name:"from.databaseName",defaultValue:ef},w[2]=C,w[3]=a):a=w[3];let T=(0,l.FH)(a);w[4]!==C?(s={control:C,name:"from.tableName"},w[4]=C,w[5]=s):s=w[5];let $=(0,l.FH)(s),k=`materializedViews.${E}.databaseName`;w[6]!==C||w[7]!==T||w[8]!==k?(o={control:C,name:k,defaultValue:T},w[6]=C,w[7]=T,w[8]=k,w[9]=o):o=w[9];let I=(0,l.FH)(o),F=`materializedViews.${E}.tableName`;w[10]!==C||w[11]!==F?(i={control:C,name:F},w[10]=C,w[11]=F,w[12]=i):i=w[12];let L=(0,l.FH)(i),H=`materializedViews.${E}.aggregatedColumns.${N}.aggFn`;w[13]!==C||w[14]!==H?(c={control:C,name:H},w[13]=C,w[14]=H,w[15]=c):c=w[15];let V="count"===(0,l.FH)(c),M=`materializedViews.${E}.aggregatedColumns.${N}.aggFn`;w[16]!==C||w[17]!==M?(d=(0,n.jsx)(p.x.Col,{span:2,children:(0,n.jsx)(ep.A,{control:C,name:M,data:eg,size:"sm"})}),w[16]=C,w[17]=M,w[18]=d):d=w[18],w[19]!==N||w[20]!==z||w[21]!==C||w[22]!==V||w[23]!==E||w[24]!==T||w[25]!==$?(m=!V&&(0,n.jsx)(p.x.Col,{span:4,children:(0,n.jsx)(eb.Z,{tableConnection:{databaseName:T,tableName:$,connectionId:z},control:C,name:`materializedViews.${E}.aggregatedColumns.${N}.sourceColumn`,placeholder:"Source Column",disableKeywordAutocomplete:!0})}),w[19]=N,w[20]=z,w[21]=C,w[22]=V,w[23]=E,w[24]=T,w[25]=$,w[26]=m):m=w[26];let D=V?8:4;w[27]!==z||w[28]!==I||w[29]!==L?(u={databaseName:I,tableName:L,connectionId:z},w[27]=z,w[28]=I,w[29]=L,w[30]=u):u=w[30];let Z=`materializedViews.${E}.aggregatedColumns.${N}.mvColumn`;return w[31]!==C||w[32]!==u||w[33]!==Z?(h=(0,n.jsx)(x.a,{flex:1,children:(0,n.jsx)(eb.Z,{tableConnection:u,control:C,name:Z,placeholder:"View Column",disableKeywordAutocomplete:!0})}),w[31]=C,w[32]=u,w[33]=Z,w[34]=h):h=w[34],w[35]===Symbol.for("react.memo_cache_sentinel")?(f=(0,n.jsx)(A.A,{size:16}),w[35]=f):f=w[35],w[36]!==_?(j=(0,n.jsx)(b.M,{size:"sm",onClick:_,children:f}),w[36]=_,w[37]=j):j=w[37],w[38]!==h||w[39]!==j?(y=(0,n.jsxs)(g.Y,{wrap:"nowrap",children:[h,j]}),w[38]=h,w[39]=j,w[40]=y):y=w[40],w[41]!==D||w[42]!==y?(S=(0,n.jsx)(p.x.Col,{span:D,children:y}),w[41]=D,w[42]=y,w[43]=S):S=w[43],w[44]!==d||w[45]!==m||w[46]!==S?(v=(0,n.jsxs)(n.Fragment,{children:[d,m,S]}),w[44]=d,w[45]=m,w[46]=S,w[47]=v):v=w[47],v}function eA(e){let t,a,o,i,c,m,u,h,p,b,y,v,w,C,E,N,_,z,T,A,$,F,L,H,V,M,Z,q,O,G,B,R,P,K,Y,W,X,U,Q,J,ee,et,ea,en,er=(0,r.c)(135),{control:es}=e,el=(0,D.Kh)();er[0]!==es?(t={control:es,name:"from.databaseName",defaultValue:ef},er[0]=es,er[1]=t):t=er[1];let eo=(0,l.FH)(t);er[2]!==es?(a={control:es,name:"from.tableName"},er[2]=es,er[3]=a):a=er[3];let ei=(0,l.FH)(a);er[4]!==es?(o={control:es,name:"connection"},er[4]=es,er[5]=o):o=er[5];let ec=(0,l.FH)(o),[ed,em]=(0,s.useState)(!1);er[6]!==ec||er[7]!==eo||er[8]!==ei?(i={databaseName:eo,tableName:ei,connectionId:ec},er[6]=ec,er[7]=eo,er[8]=ei,er[9]=i):i=er[9],er[10]!==es||er[11]!==i?(c=(0,n.jsx)(eS,{label:"Timestamp Column",helpText:"DateTime column or expression that is part of your table's primary key.",children:(0,n.jsx)(eb.Z,{tableConnection:i,control:es,name:"timestampValueExpression",disableKeywordAutocomplete:!0})}),er[10]=es,er[11]=i,er[12]=c):c=er[12],er[13]!==ec||er[14]!==eo||er[15]!==ei?(m={databaseName:eo,tableName:ei,connectionId:ec},er[13]=ec,er[14]=eo,er[15]=ei,er[16]=m):m=er[16],er[17]!==es||er[18]!==m?(u=(0,n.jsx)(eS,{label:"Default Select",helpText:"Default columns selected in search results (this can be customized per search later)",children:(0,n.jsx)(eb.Z,{tableConnection:m,control:es,name:"defaultTableSelectExpression",placeholder:"Timestamp, Body"})}),er[17]=es,er[18]=m,er[19]=u):u=er[19],er[20]!==ed?(h=!ed&&(0,n.jsx)(S.M,{underline:"always",onClick:()=>em(!0),size:"xs",children:(0,n.jsxs)(g.Y,{gap:"xs",children:[(0,n.jsx)(k.A,{size:14}),"Configure Optional Fields"]})}),er[20]=ed,er[21]=h):h=er[21],er[22]!==ed?(p=ed&&(0,n.jsx)(f.$,{onClick:()=>em(!1),size:"xs",variant:"subtle",children:"Hide Optional Fields"}),er[22]=ed,er[23]=p):p=er[23],er[24]!==h||er[25]!==p?(b=(0,n.jsxs)(x.a,{children:[h,p]}),er[24]=h,er[25]=p,er[26]=b):b=er[26],er[27]!==c||er[28]!==u||er[29]!==b?(y=(0,n.jsxs)(d.B,{gap:"sm",children:[c,u,b]}),er[27]=c,er[28]=u,er[29]=b,er[30]=y):y=er[30];let eu=ed?"flex":"none";er[31]!==eu?(v={display:eu},er[31]=eu,er[32]=v):v=er[32],er[33]===Symbol.for("react.memo_cache_sentinel")?(w=(0,n.jsx)(j.c,{}),er[33]=w):w=er[33],er[34]!==ec||er[35]!==eo||er[36]!==ei?(C={databaseName:eo,tableName:ei,connectionId:ec},er[34]=ec,er[35]=eo,er[36]=ei,er[37]=C):C=er[37],er[38]!==es||er[39]!==C?(E=(0,n.jsx)(eS,{label:"Service Name Expression",children:(0,n.jsx)(eb.Z,{tableConnection:C,control:es,name:"serviceNameExpression",placeholder:"ServiceName"})}),er[38]=es,er[39]=C,er[40]=E):E=er[40],er[41]!==ec||er[42]!==eo||er[43]!==ei?(N={databaseName:eo,tableName:ei,connectionId:ec},er[41]=ec,er[42]=eo,er[43]=ei,er[44]=N):N=er[44],er[45]!==es||er[46]!==N?(_=(0,n.jsx)(eS,{label:"Log Level Expression",children:(0,n.jsx)(eb.Z,{tableConnection:N,control:es,name:"severityTextExpression",placeholder:"SeverityText"})}),er[45]=es,er[46]=N,er[47]=_):_=er[47],er[48]!==ec||er[49]!==eo||er[50]!==ei?(z={databaseName:eo,tableName:ei,connectionId:ec},er[48]=ec,er[49]=eo,er[50]=ei,er[51]=z):z=er[51],er[52]!==es||er[53]!==z?(T=(0,n.jsx)(eS,{label:"Body Expression",children:(0,n.jsx)(eb.Z,{tableConnection:z,control:es,name:"bodyExpression",placeholder:"Body"})}),er[52]=es,er[53]=z,er[54]=T):T=er[54],er[55]!==ec||er[56]!==eo||er[57]!==ei?(A={databaseName:eo,tableName:ei,connectionId:ec},er[55]=ec,er[56]=eo,er[57]=ei,er[58]=A):A=er[58],er[59]!==es||er[60]!==A?($=(0,n.jsx)(eS,{label:"Log Attributes Expression",children:(0,n.jsx)(eb.Z,{tableConnection:A,control:es,name:"eventAttributesExpression",placeholder:"LogAttributes"})}),er[59]=es,er[60]=A,er[61]=$):$=er[61],er[62]!==ec||er[63]!==eo||er[64]!==ei?(F={databaseName:eo,tableName:ei,connectionId:ec},er[62]=ec,er[63]=eo,er[64]=ei,er[65]=F):F=er[65],er[66]!==es||er[67]!==F?(L=(0,n.jsx)(eS,{label:"Resource Attributes Expression",children:(0,n.jsx)(eb.Z,{tableConnection:F,control:es,name:"resourceAttributesExpression",placeholder:"ResourceAttributes"})}),er[66]=es,er[67]=F,er[68]=L):L=er[68],er[69]!==ec||er[70]!==eo||er[71]!==ei?(H={databaseName:eo,tableName:ei,connectionId:ec},er[69]=ec,er[70]=eo,er[71]=ei,er[72]=H):H=er[72],er[73]!==es||er[74]!==H?(V=(0,n.jsx)(eS,{label:"Displayed Timestamp Column",helpText:"This DateTime column is used to display and order search results.",children:(0,n.jsx)(eb.Z,{tableConnection:H,control:es,name:"displayedTimestampValueExpression",disableKeywordAutocomplete:!0})}),er[73]=es,er[74]=H,er[75]=V):V=er[75],er[76]===Symbol.for("react.memo_cache_sentinel")?(M=(0,n.jsx)(j.c,{}),er[76]=M):M=er[76];let eh=`${el} Source for metrics associated with logs. Optional`;er[77]!==es?(Z=(0,n.jsx)(I.W,{control:es,name:"metricSourceId"}),er[77]=es,er[78]=Z):Z=er[78],er[79]!==eh||er[80]!==Z?(q=(0,n.jsx)(eS,{label:"Correlated Metric Source",helpText:eh,children:Z}),er[79]=eh,er[80]=Z,er[81]=q):q=er[81];let ex=`${el} Source for traces associated with logs. Optional`;return er[82]!==es?(O=(0,n.jsx)(I.W,{control:es,name:"traceSourceId"}),er[82]=es,er[83]=O):O=er[83],er[84]!==ex||er[85]!==O?(G=(0,n.jsx)(eS,{label:"Correlated Trace Source",helpText:ex,children:O}),er[84]=ex,er[85]=O,er[86]=G):G=er[86],er[87]!==ec||er[88]!==eo||er[89]!==ei?(B={databaseName:eo,tableName:ei,connectionId:ec},er[87]=ec,er[88]=eo,er[89]=ei,er[90]=B):B=er[90],er[91]!==es||er[92]!==B?(R=(0,n.jsx)(eS,{label:"Trace Id Expression",children:(0,n.jsx)(eb.Z,{tableConnection:B,control:es,name:"traceIdExpression",placeholder:"TraceId"})}),er[91]=es,er[92]=B,er[93]=R):R=er[93],er[94]!==ec||er[95]!==eo||er[96]!==ei?(P={databaseName:eo,tableName:ei,connectionId:ec},er[94]=ec,er[95]=eo,er[96]=ei,er[97]=P):P=er[97],er[98]!==es||er[99]!==P?(K=(0,n.jsx)(eS,{label:"Span Id Expression",children:(0,n.jsx)(eb.Z,{tableConnection:P,control:es,name:"spanIdExpression",placeholder:"SpanId"})}),er[98]=es,er[99]=P,er[100]=K):K=er[100],er[101]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,n.jsx)(j.c,{}),er[101]=Y):Y=er[101],er[102]!==ec||er[103]!==eo||er[104]!==ei?(W={databaseName:eo,tableName:ei,connectionId:ec},er[102]=ec,er[103]=eo,er[104]=ei,er[105]=W):W=er[105],er[106]!==es||er[107]!==W?(X=(0,n.jsx)(eS,{label:"Implicit Column Expression",helpText:"Column used for full text search if no property is specified in a Lucene-based search. Typically the message body of a log.",children:(0,n.jsx)(eb.Z,{tableConnection:W,control:es,name:"implicitColumnExpression",placeholder:"Body"})}),er[106]=es,er[107]=W,er[108]=X):X=er[108],er[109]===Symbol.for("react.memo_cache_sentinel")?(U=(0,n.jsx)(j.c,{}),er[109]=U):U=er[109],er[110]!==e?(Q=(0,n.jsx)(ew,{...e,name:"highlightedRowAttributeExpressions",label:"Highlighted Attributes",helpText:"Expressions defining row-level attributes which are displayed in the row side panel for the selected row."}),J=(0,n.jsx)(ew,{...e,name:"highlightedTraceAttributeExpressions",label:"Highlighted Trace Attributes",helpText:"Expressions defining trace-level attributes which are displayed in the trace view for the selected trace."}),er[110]=e,er[111]=Q,er[112]=J):(Q=er[111],J=er[112]),er[113]===Symbol.for("react.memo_cache_sentinel")?(ee=(0,n.jsx)(j.c,{}),er[113]=ee):ee=er[113],er[114]!==e?(et=(0,n.jsx)(eC,{...e}),er[114]=e,er[115]=et):et=er[115],er[116]!==v||er[117]!==E||er[118]!==_||er[119]!==T||er[120]!==$||er[121]!==L||er[122]!==V||er[123]!==q||er[124]!==G||er[125]!==R||er[126]!==K||er[127]!==X||er[128]!==Q||er[129]!==J||er[130]!==et?(ea=(0,n.jsxs)(d.B,{gap:"sm",style:v,children:[w,E,_,T,$,L,V,M,q,G,R,K,Y,X,U,Q,J,ee,et]}),er[116]=v,er[117]=E,er[118]=_,er[119]=T,er[120]=$,er[121]=L,er[122]=V,er[123]=q,er[124]=G,er[125]=R,er[126]=K,er[127]=X,er[128]=Q,er[129]=J,er[130]=et,er[131]=ea):ea=er[131],er[132]!==y||er[133]!==ea?(en=(0,n.jsxs)(n.Fragment,{children:[y,ea]}),er[132]=y,er[133]=ea,er[134]=en):en=er[134],en}function e$(e){let t,a,s,o,i,c,m,u,h,p,b,f,g,y,S,v,w,C,E,N,_,z,T,A,$,k,F,L,H,V,M,Z,q,O,G,B,R,P,K,Y,W,X,U,Q,J,ee,et,ea,en,er,es=(0,r.c)(168),{control:el}=e,eo=(0,D.Kh)();es[0]!==el?(t={control:el,name:"from.databaseName",defaultValue:ef},es[0]=el,es[1]=t):t=es[1];let ei=(0,l.FH)(t);es[2]!==el?(a={control:el,name:"from.tableName"},es[2]=el,es[3]=a):a=es[3];let ec=(0,l.FH)(a);es[4]!==el?(s={control:el,name:"connection"},es[4]=el,es[5]=s):s=es[5];let ed=(0,l.FH)(s);es[6]!==ed||es[7]!==ei||es[8]!==ec?(o={databaseName:ei,tableName:ec,connectionId:ed},es[6]=ed,es[7]=ei,es[8]=ec,es[9]=o):o=es[9],es[10]!==el||es[11]!==o?(i=(0,n.jsx)(eS,{label:"Timestamp Column",helpText:"DateTime column or expression defines the start of the span",children:(0,n.jsx)(eb.Z,{tableConnection:o,control:el,name:"timestampValueExpression",placeholder:"Timestamp",disableKeywordAutocomplete:!0})}),es[10]=el,es[11]=o,es[12]=i):i=es[12],es[13]!==ed||es[14]!==ei||es[15]!==ec?(c={databaseName:ei,tableName:ec,connectionId:ed},es[13]=ed,es[14]=ei,es[15]=ec,es[16]=c):c=es[16],es[17]!==el||es[18]!==c?(m=(0,n.jsx)(eS,{label:"Default Select",helpText:"Default columns selected in search results (this can be customized per search later)",children:(0,n.jsx)(eb.Z,{tableConnection:c,control:el,name:"defaultTableSelectExpression",placeholder:"Timestamp, ServiceName, StatusCode, Duration, SpanName"})}),es[17]=el,es[18]=c,es[19]=m):m=es[19],es[20]===Symbol.for("react.memo_cache_sentinel")?(u=(0,n.jsx)(j.c,{}),es[20]=u):u=es[20],es[21]!==ed||es[22]!==ei||es[23]!==ec?(h={databaseName:ei,tableName:ec,connectionId:ed},es[21]=ed,es[22]=ei,es[23]=ec,es[24]=h):h=es[24],es[25]!==el||es[26]!==h?(p=(0,n.jsx)(eS,{label:"Duration Expression",children:(0,n.jsx)(eb.Z,{tableConnection:h,control:el,name:"durationExpression",placeholder:"Duration Column"})}),es[25]=el,es[26]=h,es[27]=p):p=es[27],es[28]!==el?(b=(0,n.jsx)(eS,{label:"Duration Precision",children:(0,n.jsx)(x.a,{mx:"xl",children:(0,n.jsx)(l.xI,{control:el,name:"durationPrecision",render:ek})})}),es[28]=el,es[29]=b):b=es[29],es[30]!==ed||es[31]!==ei||es[32]!==ec?(f={databaseName:ei,tableName:ec,connectionId:ed},es[30]=ed,es[31]=ei,es[32]=ec,es[33]=f):f=es[33],es[34]!==el||es[35]!==f?(g=(0,n.jsx)(eS,{label:"Trace Id Expression",children:(0,n.jsx)(eb.Z,{tableConnection:f,control:el,name:"traceIdExpression",placeholder:"TraceId"})}),es[34]=el,es[35]=f,es[36]=g):g=es[36],es[37]!==ed||es[38]!==ei||es[39]!==ec?(y={databaseName:ei,tableName:ec,connectionId:ed},es[37]=ed,es[38]=ei,es[39]=ec,es[40]=y):y=es[40],es[41]!==el||es[42]!==y?(S=(0,n.jsx)(eS,{label:"Span Id Expression",children:(0,n.jsx)(eb.Z,{tableConnection:y,control:el,name:"spanIdExpression",placeholder:"SpanId"})}),es[41]=el,es[42]=y,es[43]=S):S=es[43],es[44]!==ed||es[45]!==ei||es[46]!==ec?(v={databaseName:ei,tableName:ec,connectionId:ed},es[44]=ed,es[45]=ei,es[46]=ec,es[47]=v):v=es[47],es[48]!==el||es[49]!==v?(w=(0,n.jsx)(eS,{label:"Parent Span Id Expression",children:(0,n.jsx)(eb.Z,{tableConnection:v,control:el,name:"parentSpanIdExpression",placeholder:"ParentSpanId"})}),es[48]=el,es[49]=v,es[50]=w):w=es[50],es[51]!==ed||es[52]!==ei||es[53]!==ec?(C={databaseName:ei,tableName:ec,connectionId:ed},es[51]=ed,es[52]=ei,es[53]=ec,es[54]=C):C=es[54],es[55]!==el||es[56]!==C?(E=(0,n.jsx)(eS,{label:"Span Name Expression",children:(0,n.jsx)(eb.Z,{tableConnection:C,control:el,name:"spanNameExpression",placeholder:"SpanName"})}),es[55]=el,es[56]=C,es[57]=E):E=es[57],es[58]!==ed||es[59]!==ei||es[60]!==ec?(N={databaseName:ei,tableName:ec,connectionId:ed},es[58]=ed,es[59]=ei,es[60]=ec,es[61]=N):N=es[61],es[62]!==el||es[63]!==N?(_=(0,n.jsx)(eS,{label:"Span Kind Expression",children:(0,n.jsx)(eb.Z,{tableConnection:N,control:el,name:"spanKindExpression",placeholder:"SpanKind"})}),es[62]=el,es[63]=N,es[64]=_):_=es[64],es[65]===Symbol.for("react.memo_cache_sentinel")?(z=(0,n.jsx)(j.c,{}),es[65]=z):z=es[65];let em=`${eo} Source for logs associated with traces. Optional`;es[66]!==el?(T=(0,n.jsx)(I.W,{control:el,name:"logSourceId"}),es[66]=el,es[67]=T):T=es[67],es[68]!==em||es[69]!==T?(A=(0,n.jsx)(eS,{label:"Correlated Log Source",helpText:em,children:T}),es[68]=em,es[69]=T,es[70]=A):A=es[70];let eu=`${eo} Source for sessions associated with traces. Optional`;es[71]!==el?($=(0,n.jsx)(I.W,{control:el,name:"sessionSourceId"}),es[71]=el,es[72]=$):$=es[72],es[73]!==eu||es[74]!==$?(k=(0,n.jsx)(eS,{label:"Correlated Session Source",helpText:eu,children:$}),es[73]=eu,es[74]=$,es[75]=k):k=es[75];let eh=`${eo} Source for metrics associated with traces. Optional`;return es[76]!==el?(F=(0,n.jsx)(I.W,{control:el,name:"metricSourceId"}),es[76]=el,es[77]=F):F=es[77],es[78]!==eh||es[79]!==F?(L=(0,n.jsx)(eS,{label:"Correlated Metric Source",helpText:eh,children:F}),es[78]=eh,es[79]=F,es[80]=L):L=es[80],es[81]!==ed||es[82]!==ei||es[83]!==ec?(H={databaseName:ei,tableName:ec,connectionId:ed},es[81]=ed,es[82]=ei,es[83]=ec,es[84]=H):H=es[84],es[85]!==el||es[86]!==H?(V=(0,n.jsx)(eS,{label:"Status Code Expression",children:(0,n.jsx)(eb.Z,{tableConnection:H,control:el,name:"statusCodeExpression",placeholder:"StatusCode"})}),es[85]=el,es[86]=H,es[87]=V):V=es[87],es[88]!==ed||es[89]!==ei||es[90]!==ec?(M={databaseName:ei,tableName:ec,connectionId:ed},es[88]=ed,es[89]=ei,es[90]=ec,es[91]=M):M=es[91],es[92]!==el||es[93]!==M?(Z=(0,n.jsx)(eS,{label:"Status Message Expression",children:(0,n.jsx)(eb.Z,{tableConnection:M,control:el,name:"statusMessageExpression",placeholder:"StatusMessage"})}),es[92]=el,es[93]=M,es[94]=Z):Z=es[94],es[95]!==ed||es[96]!==ei||es[97]!==ec?(q={databaseName:ei,tableName:ec,connectionId:ed},es[95]=ed,es[96]=ei,es[97]=ec,es[98]=q):q=es[98],es[99]!==el||es[100]!==q?(O=(0,n.jsx)(eS,{label:"Service Name Expression",children:(0,n.jsx)(eb.Z,{tableConnection:q,control:el,name:"serviceNameExpression",placeholder:"ServiceName"})}),es[99]=el,es[100]=q,es[101]=O):O=es[101],es[102]!==ed||es[103]!==ei||es[104]!==ec?(G={databaseName:ei,tableName:ec,connectionId:ed},es[102]=ed,es[103]=ei,es[104]=ec,es[105]=G):G=es[105],es[106]!==el||es[107]!==G?(B=(0,n.jsx)(eS,{label:"Resource Attributes Expression",children:(0,n.jsx)(eb.Z,{tableConnection:G,control:el,name:"resourceAttributesExpression",placeholder:"ResourceAttributes"})}),es[106]=el,es[107]=G,es[108]=B):B=es[108],es[109]!==ed||es[110]!==ei||es[111]!==ec?(R={databaseName:ei,tableName:ec,connectionId:ed},es[109]=ed,es[110]=ei,es[111]=ec,es[112]=R):R=es[112],es[113]!==el||es[114]!==R?(P=(0,n.jsx)(eS,{label:"Event Attributes Expression",children:(0,n.jsx)(eb.Z,{tableConnection:R,control:el,name:"eventAttributesExpression",placeholder:"SpanAttributes"})}),es[113]=el,es[114]=R,es[115]=P):P=es[115],es[116]!==ed||es[117]!==ei||es[118]!==ec?(K={databaseName:ei,tableName:ec,connectionId:ed},es[116]=ed,es[117]=ei,es[118]=ec,es[119]=K):K=es[119],es[120]!==el||es[121]!==K?(Y=(0,n.jsx)(eS,{label:"Span Events Expression",helpText:"Expression to extract span events. Used to capture events associated with spans. Expected to be Nested ( Timestamp DateTime64(9), Name LowCardinality(String), Attributes Map(LowCardinality(String), String)",children:(0,n.jsx)(eb.Z,{tableConnection:K,control:el,name:"spanEventsValueExpression",placeholder:"Events"})}),es[120]=el,es[121]=K,es[122]=Y):Y=es[122],es[123]!==ed||es[124]!==ei||es[125]!==ec?(W={databaseName:ei,tableName:ec,connectionId:ed},es[123]=ed,es[124]=ei,es[125]=ec,es[126]=W):W=es[126],es[127]!==el||es[128]!==W?(X=(0,n.jsx)(eS,{label:"Implicit Column Expression",helpText:"Column used for full text search if no property is specified in a Lucene-based search. Typically the message body of a log.",children:(0,n.jsx)(eb.Z,{tableConnection:W,control:el,name:"implicitColumnExpression",placeholder:"SpanName"})}),es[127]=el,es[128]=W,es[129]=X):X=es[129],es[130]!==ed||es[131]!==ei||es[132]!==ec?(U={databaseName:ei,tableName:ec,connectionId:ed},es[130]=ed,es[131]=ei,es[132]=ec,es[133]=U):U=es[133],es[134]!==el||es[135]!==U?(Q=(0,n.jsx)(eS,{label:"Displayed Timestamp Column",helpText:"This DateTime column is used to display and order search results.",children:(0,n.jsx)(eb.Z,{tableConnection:U,control:el,name:"displayedTimestampValueExpression",disableKeywordAutocomplete:!0})}),es[134]=el,es[135]=U,es[136]=Q):Q=es[136],es[137]===Symbol.for("react.memo_cache_sentinel")?(J=(0,n.jsx)(j.c,{}),es[137]=J):J=es[137],es[138]!==e?(ee=(0,n.jsx)(ew,{...e,name:"highlightedRowAttributeExpressions",label:"Highlighted Attributes",helpText:"Expressions defining row-level attributes which are displayed in the row side panel for the selected row"}),et=(0,n.jsx)(ew,{...e,name:"highlightedTraceAttributeExpressions",label:"Highlighted Trace Attributes",helpText:"Expressions defining trace-level attributes which are displayed in the trace view for the selected trace."}),es[138]=e,es[139]=ee,es[140]=et):(ee=es[139],et=es[140]),es[141]===Symbol.for("react.memo_cache_sentinel")?(ea=(0,n.jsx)(j.c,{}),es[141]=ea):ea=es[141],es[142]!==e?(en=(0,n.jsx)(eC,{...e}),es[142]=e,es[143]=en):en=es[143],es[144]!==b||es[145]!==g||es[146]!==S||es[147]!==w||es[148]!==E||es[149]!==_||es[150]!==A||es[151]!==k||es[152]!==L||es[153]!==V||es[154]!==Z||es[155]!==O||es[156]!==B||es[157]!==i||es[158]!==P||es[159]!==Y||es[160]!==X||es[161]!==Q||es[162]!==ee||es[163]!==et||es[164]!==en||es[165]!==m||es[166]!==p?(er=(0,n.jsxs)(d.B,{gap:"sm",children:[i,m,u,p,b,g,S,w,E,_,z,A,k,L,V,Z,O,B,P,Y,X,Q,J,ee,et,ea,en]}),es[144]=b,es[145]=g,es[146]=S,es[147]=w,es[148]=E,es[149]=_,es[150]=A,es[151]=k,es[152]=L,es[153]=V,es[154]=Z,es[155]=O,es[156]=B,es[157]=i,es[158]=P,es[159]=Y,es[160]=X,es[161]=Q,es[162]=ee,es[163]=et,es[164]=en,es[165]=m,es[166]=p,es[167]=er):er=es[167],er}function ek(e){let{field:t}=e,{onChange:a,value:r}=t;return(0,n.jsx)("div",{style:{width:"90%",marginBottom:8},children:(0,n.jsx)(v.A,{color:"green",defaultValue:0,min:0,max:9,marks:[{value:0,label:"Seconds"},{value:3,label:"Millisecond"},{value:6,label:"Microsecond"},{value:9,label:"Nanosecond"}],value:r,onChange:a})})}function eI({control:e}){let t=(0,D.Kh)(),a=(0,l.FH)({control:e,name:"from.databaseName",defaultValue:ef}),r=(0,l.FH)({control:e,name:"connection"}),o=(0,l.FH)({control:e,name:"from.tableName"}),i=(0,s.useRef)(o),c=(0,V.Ge)();return(0,s.useEffect)(()=>{(async()=>{try{o&&o!==i.current&&(i.current=o,await (0,M.Al)({databaseName:a,tableName:o,connectionId:r,metadata:c})||_.$e.show({color:"red",message:`${o} is not a valid Sessions schema.`}))}catch(e){console.error(e),_.$e.show({color:"red",message:e.message})}})()},[o,a,r,c]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(d.B,{gap:"sm",children:[(0,n.jsx)(eS,{label:"Correlated Trace Source",helpText:`${t} Source for traces associated with sessions. Required`,children:(0,n.jsx)(I.W,{control:e,name:"traceSourceId"})}),(0,n.jsx)(eS,{label:"Timestamp Column",helpText:"DateTime column or expression that is part of your table's primary key.",children:(0,n.jsx)(eb.Z,{tableConnection:{databaseName:a,tableName:o,connectionId:r},control:e,name:"timestampValueExpression",disableKeywordAutocomplete:!0})})]})})}function eF({control:e,setValue:t}){let a=(0,D.Kh)(),r=(0,l.FH)({control:e,name:"from.databaseName",defaultValue:ef}),o=(0,l.FH)({control:e,name:"connection"}),c=(0,l.FH)({control:e,name:"metricTables"}),m=(0,s.useRef)(c),u=(0,V.Ge)();return(0,s.useEffect)(()=>{for(let[e,a]of Object.entries(ej))t(e,a)},[t]),(0,s.useEffect)(()=>{(async()=>{try{if(c&&m.current)for(let e of Object.values(i.SX)){let t=c[e],a=m.current[e];t!==a&&(await (0,M.fS)({databaseName:r,tableName:t,connectionId:o,metricType:e,metadata:u})||_.$e.show({color:"red",message:`${t} is not a valid OTEL ${e} schema.`}))}m.current=c}catch(e){console.error(e),_.$e.show({color:"red",message:e.message})}})()},[c,r,o,u]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(d.B,{gap:"sm",children:[Object.values(i.SX).map(t=>(0,n.jsx)(eS,{label:`${t} Table`,helpText:t===i.SX.ExponentialHistogram||t===i.SX.Summary?`Table containing ${t.toLowerCase()} metrics data. Note: not yet fully supported by ${a}`:`Table containing ${t.toLowerCase()} metrics data`,children:(0,n.jsx)(eo,{connectionId:o,database:r,control:e,name:`metricTables.${t.toLowerCase()}`})},t.toLowerCase())),(0,n.jsx)(eS,{label:"Correlated Log Source",helpText:`${a} Source for logs associated with metrics. Optional`,children:(0,n.jsx)(I.W,{control:e,name:"logSourceId"})})]})})}function eL(e){let t=(0,r.c)(12),{control:a,setValue:s,kind:l}=e;switch(l){case i.GL.Log:{let e;return t[0]!==a||t[1]!==s?(e=(0,n.jsx)(eA,{control:a,setValue:s}),t[0]=a,t[1]=s,t[2]=e):e=t[2],e}case i.GL.Trace:{let e;return t[3]!==a||t[4]!==s?(e=(0,n.jsx)(e$,{control:a,setValue:s}),t[3]=a,t[4]=s,t[5]=e):e=t[5],e}case i.GL.Session:{let e;return t[6]!==a||t[7]!==s?(e=(0,n.jsx)(eI,{control:a,setValue:s}),t[6]=a,t[7]=s,t[8]=e):e=t[8],e}case i.GL.Metric:{let e;return t[9]!==a||t[10]!==s?(e=(0,n.jsx)(eF,{control:a,setValue:s}),t[9]=a,t[10]=s,t[11]=e):e=t[11],e}}}function eH({sourceId:e,onSave:t,onCreate:a,isNew:r=!1,defaultName:o="",onCancel:m}){let{data:u}=(0,M.Fo)({id:e}),{data:x}=(0,L.ZY)(),{control:j,setValue:y,handleSubmit:v,resetField:C,setError:E,clearErrors:N}=(0,l.mN)({defaultValues:{kind:i.GL.Log,name:o,connection:x?.[0]?.id,from:{databaseName:"default",tableName:""},querySettings:u?.querySettings},values:u,resetOptions:{keepDirtyValues:!0,keepErrors:!0}}),z=(0,l.FH)({control:j,name:"connection",defaultValue:u?.connection}),T=(0,l.FH)({control:j,name:"from.databaseName",defaultValue:u?.from?.databaseName||ef}),k=(0,l.FH)({control:j,name:"from.tableName",defaultValue:u?.from?.tableName}),I=(0,l.FH)({control:j,name:"kind",defaultValue:u?.kind||i.GL.Log}),H=(0,s.useRef)(k),D=(0,V.Ge)();(0,s.useEffect)(()=>{(async()=>{try{if(k!==H.current&&(H.current=k,null!=z&&null!=T&&(I===i.GL.Metric||null!=k))){let e=await (0,M.Ys)({databaseName:T,tableName:I!==i.GL.Metric?k:"",connectionId:z,metadata:D});Object.keys(e).length>0&&_.$e.show({color:"green",message:"Automatically inferred source configuration from table schema."}),Object.entries(e).forEach(([e,t])=>{C(e,{keepDirty:!0,defaultValue:t})})}}catch(e){console.error(e)}})()},[k,z,T,I,C,D]),(0,s.useEffect)(()=>{C("connection",{defaultValue:x?.[0]?.id})},[x,C]);let Z=(0,l.FH)({control:j,name:"kind",defaultValue:u?.kind||i.GL.Log}),q=(0,M.nd)(),O=(0,M.sr)(),G=(0,M.YI)(),{data:B}=(0,M.oE)(),R=(0,l.FH)({control:j,name:"id"}),P=(0,l.FH)({control:j,name:"logSourceId"}),K=(0,l.FH)({control:j,name:"traceSourceId"}),Y=(0,l.FH)({control:j,name:"metricSourceId"}),W=(0,l.FH)({control:j,name:"traceSourceId"}),Q=(0,s.useRef)(P),J=(0,s.useRef)(K),ee=(0,s.useRef)(Y),et=(0,s.useRef)(W);(0,s.useEffect)(()=>{(async()=>{if(!R||!B||!Z)return;let e=ey[Z];if(!e)return;let t=[];for(let{name:a,value:n}of(P!==Q.current&&(Q.current=P,t.push({name:"logSourceId",value:P??void 0})),K!==J.current&&(J.current=K,t.push({name:"traceSourceId",value:K??void 0})),Y!==ee.current&&(ee.current=Y,t.push({name:"metricSourceId",value:Y??void 0})),W!==et.current&&Z===i.GL.Session&&(et.current=W,t.push({name:"traceSourceId",value:W??void 0})),t))if(a in e)for(let{targetKind:t,targetField:r}of e[a]){let e=B.find(e=>e.kind===t&&e[r]===R);if(e&&e.id!==n&&await O.mutateAsync({source:{...e,[r]:void 0}}),n){let e=B.find(e=>e.id===n);e&&e.kind===t&&!e[r]&&await O.mutateAsync({source:{...e,[r]:R}})}}})()},[P,K,Y,W,Z,R,B,O]);let en=(0,i.z1)({id:!0}),er=(0,s.useCallback)(({errors:e},t)=>{let a=[];for(let n of(console.debug(`[${t}] SourceForm validation error`,JSON.stringify(e)),e)){let e=n.path.join(".");E(e,{...n});let t="Required"===n.message?`${e}: ${n.message}`:n.message;a.push(t)}_.$e.show({color:"red",message:(0,n.jsxs)(d.B,{children:[(0,n.jsx)(c.E,{size:"sm",children:(0,n.jsx)("b",{children:"Failed to create source"})}),a.map((e,t)=>(0,n.jsxs)(c.E,{size:"sm",children:["✖ ",e]},t))]})})},[E]),es=(0,s.useCallback)(()=>{N(),v(async e=>{let t=en.safeParse(e);t.error?er(t.error,"create"):q.mutate({source:e},{onSuccess:async e=>{let t=ey[e.kind];if(t&&B)for(let[a,n]of Object.entries(t)){let t=e[a];if(t)for(let{targetKind:a,targetField:r}of n){let n=B.find(e=>e.id===t);n&&n.kind===a&&!n[r]&&await O.mutateAsync({source:{...n,[r]:e.id}})}}a?.(e),_.$e.show({color:"green",message:"Source created"})},onError:e=>{_.$e.show({color:"red",message:`Failed to create source - ${e.message}`})}})})()},[N,er,en,v,q,a,B,O]),el=(0,s.useCallback)(()=>{N(),v(e=>{let a=en.safeParse(e);a.error?er(a.error,"save"):O.mutate({source:e},{onSuccess:()=>{t?.(),_.$e.show({color:"green",message:"Source updated"})},onError:()=>{_.$e.show({color:"red",message:"Failed to update source"})}})})()},[v,O,t,N,er,en]),ei=(0,l.FH)({control:j,name:"from.databaseName",defaultValue:u?.from?.databaseName||ef}),ec=(0,l.FH)({control:j,name:"connection",defaultValue:u?.connection}),{fields:ed,append:em,remove:eu}=(0,l.jz)({control:j,name:"querySettings"});return(0,n.jsxs)("div",{style:{},children:[(0,n.jsxs)(d.B,{gap:"md",mb:"md",children:[(0,n.jsx)(c.E,{mb:"lg",children:"Source Settings"}),(0,n.jsx)(eS,{label:"Name",children:(0,n.jsx)(ex.t4,{control:j,name:"name",rules:{required:"Name is required"}})}),(0,n.jsx)(eS,{label:"Source Data Type",children:(0,n.jsx)(l.xI,{control:j,name:"kind",render:({field:{onChange:e,value:t}})=>(0,n.jsx)(w.s.Group,{value:t,onChange:t=>e(t),withAsterisk:!0,children:(0,n.jsxs)(g.Y,{children:[(0,n.jsx)(w.s,{value:i.GL.Log,label:"Log"}),(0,n.jsx)(w.s,{value:i.GL.Trace,label:"Trace"}),F.Fm&&(0,n.jsx)(w.s,{value:i.GL.Metric,label:"OTEL Metrics"}),F.vN&&(0,n.jsx)(w.s,{value:i.GL.Session,label:"Session"})]})})})}),(0,n.jsx)(eS,{label:"Server Connection",children:(0,n.jsx)(U.r,{control:j,name:"connection"})}),(0,n.jsx)(eS,{label:"Database",children:(0,n.jsx)(ea,{control:j,name:"from.databaseName",connectionId:ec})}),Z!==i.GL.Metric&&(0,n.jsx)(eS,{label:"Table",children:(0,n.jsx)(eo,{database:ei,control:j,name:"from.tableName",connectionId:ec,rules:{required:"Table is required"}})}),(0,n.jsxs)(eS,{label:(0,n.jsx)(S.M,{href:"https://clickhouse.com/docs/operations/settings/settings",size:"sm",target:"_blank",children:"Query Settings"}),helpText:"Query-level Session Settings that will be added to each query for this source.",children:[(0,n.jsx)(p.x,{columns:11,children:ed.map((e,t)=>(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)(p.x.Col,{span:5,pe:0,children:(0,n.jsx)(ex.t4,{placeholder:"Setting",control:j,name:`querySettings.${t}.setting`})}),(0,n.jsx)(p.x.Col,{span:5,pe:0,children:(0,n.jsx)(ex.t4,{placeholder:"Value",control:j,name:`querySettings.${t}.value`})}),(0,n.jsx)(p.x.Col,{span:1,ps:0,children:(0,n.jsx)(h.s,{align:"center",justify:"center",gap:"sm",h:"100%",children:(0,n.jsx)(b.M,{variant:"subtle",color:"gray",title:"Remove setting",onClick:()=>eu(t),children:(0,n.jsx)(A.A,{size:16})})})})]},e.id))}),(0,n.jsxs)(f.$,{variant:"secondary",size:"sm",color:"gray",mt:"md",disabled:ed.length>=10,onClick:()=>{ed.length<10&&em({setting:"",value:""})},children:[(0,n.jsx)($.A,{size:14,className:"me-2"}),"Add Setting"]})]})]}),(0,n.jsx)(eL,{control:j,setValue:y,kind:Z}),(0,n.jsxs)(g.Y,{justify:"flex-end",mt:"lg",children:[m&&(0,n.jsx)(f.$,{variant:"secondary",onClick:m,size:"xs",children:"Cancel"}),r?(0,n.jsx)(f.$,{variant:"primary",onClick:es,size:"xs",loading:q.isPending,children:"Save New Source"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(X.A,{onDelete:()=>G.mutate({id:e??""})}),(0,n.jsx)(f.$,{variant:"primary",onClick:el,size:"xs",loading:q.isPending,children:"Save Source"})]})]})]})}},43567:(e,t,a)=>{"use strict";a.d(t,{B:()=>_});var n,r=a(6029),s=a(75155),l=a(55729),o=a(1909),i=a(88459),c=a(43517),d=a(60481),m=a(25062),u=a(78253),h=a(23935),x=a(3635),p=a(63085),b=a(34834),f=a(60665),g=a(95316),j=a(97702),y=a(6876),S=a(71781),v=a(98142),w=a(93108),C=a(92917),E=a(24207),N=((n=N||{}).Loading="loading",n.Valid="valid",n.Invalid="invalid",n);function _(e){let t,a,n,N,_,A,$,k,I,F,L,H,V,M,D,Z,q,O,G,B,R,P,K,Y,W,X,U,Q,J,ee,et,ea,en,er,es=(0,s.c)(98),{connection:el,isNew:eo,onSave:ei,onClose:ec,showCancelButton:ed,showDeleteButton:em}=e,eu=void 0!==ed&&ed,eh=void 0!==em&&em;es[0]!==el.host||es[1]!==el.hyperdxSettingPrefix||es[2]!==el.id||es[3]!==el.name||es[4]!==el.password||es[5]!==el.username?(t={defaultValues:{id:el.id,name:el.name,host:el.host,username:el.username,password:el.password,hyperdxSettingPrefix:el.hyperdxSettingPrefix}},es[0]=el.host,es[1]=el.hyperdxSettingPrefix,es[2]=el.id,es[3]=el.name,es[4]=el.password,es[5]=el.username,es[6]=t):t=es[6];let{control:ex,handleSubmit:ep,resetField:eb,getValues:ef,formState:eg}=(0,o.mN)(t),ej=(0,w.Ir)(),ey=(0,w.Zm)(),eS=(0,w.PQ)();es[7]!==el.id||es[8]!==ej||es[9]!==eo||es[10]!==ei||es[11]!==ey?(a=e=>{let t={...e,host:(0,C.KL)(e.host),hyperdxSettingPrefix:e.hyperdxSettingPrefix||null};if(eo){let{id:e,...a}=t;ej.mutate({connection:a},{onSuccess:()=>{f.$e.show({color:"green",message:"Connection created successfully"}),ei?.()},onError:T})}else ey.mutate({connection:t,id:el.id},{onSuccess:()=>{f.$e.show({color:"green",message:"Connection updated successfully"}),ei?.()},onError:z})},es[7]=el.id,es[8]=ej,es[9]=eo,es[10]=ei,es[11]=ey,es[12]=a):a=es[12];let ev=a,[ew,eC]=(0,l.useState)(!1),[eE,eN]=(0,l.useState)(!1);es[13]!==ef?(n={getValues:ef},es[13]=ef,es[14]=n):n=es[14];let{testConnectionState:e_,handleTestConnection:ez}=function({getValues:e}){let t=y.Ay.useTestConnection(),[a,n]=(0,l.useState)(null),r=(0,l.useCallback)(async()=>{let r=e("host"),s=e("username"),l=e("password"),o=(0,C.KL)(r);if(!a){if(n("loading"),v.VO)try{await (0,i.Kc)({host:o,username:s,password:l})?n("valid"):(n("invalid"),f.$e.show({color:"red",message:"Connection test failed",autoClose:5e3}))}catch(e){console.error(e),n("invalid"),f.$e.show({color:"red",message:e.message,autoClose:5e3})}else try{let e=await t.mutateAsync({host:o,username:s,password:l});e.success?n("valid"):(n("invalid"),f.$e.show({color:"red",message:e.error||"Connection test failed",autoClose:5e3}))}catch(t){let e=await t.response?.json();n("invalid"),f.$e.show({color:"red",message:e?.error??"Failed to test connection",autoClose:5e3})}setTimeout(()=>{n(null)},2e3)}},[e,t,a]);return{testConnectionState:a,handleTestConnection:r}}(n);es[15]!==ep||es[16]!==ev?(N=e=>{e.preventDefault(),ep(e=>{ev(e)})()},es[15]=ep,es[16]=ev,es[17]=N):N=es[17],es[18]===Symbol.for("react.memo_cache_sentinel")?(_=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Connection Name"}),es[18]=_):_=es[18],es[19]===Symbol.for("react.memo_cache_sentinel")?(A={required:"Connection name is required"},es[19]=A):A=es[19],es[20]!==ex?($=(0,r.jsxs)(d.a,{children:[_,(0,r.jsx)(S.t4,{"data-testid":"connection-name-input",name:"name",control:ex,placeholder:"My Clickhouse Server",rules:A})]}),es[20]=ex,es[21]=$):$=es[21],es[22]===Symbol.for("react.memo_cache_sentinel")?(k=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Host"}),es[22]=k):k=es[22],es[23]===Symbol.for("react.memo_cache_sentinel")?(I={required:"Host is required"},es[23]=I):I=es[23],es[24]!==ex?(F=(0,r.jsxs)(d.a,{children:[k,(0,r.jsx)(S.t4,{"data-testid":"connection-host-input",name:"host",control:ex,placeholder:"http://localhost:8123",rules:I})]}),es[24]=ex,es[25]=F):F=es[25],es[26]===Symbol.for("react.memo_cache_sentinel")?(L=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Username"}),es[26]=L):L=es[26],es[27]!==ex?(H=(0,r.jsxs)(d.a,{children:[L,(0,r.jsx)(S.t4,{"data-testid":"connection-username-input",name:"username",control:ex,placeholder:"Username (default: default)"})]}),es[27]=ex,es[28]=H):H=es[28],es[29]===Symbol.for("react.memo_cache_sentinel")?(V=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Password"}),es[29]=V):V=es[29],es[30]!==eo||es[31]!==ew?(M=!ew&&!eo&&(0,r.jsx)(m.$,{"data-testid":"update-password-button",variant:"secondary",onClick:()=>{eC(!0)},children:"Update Password"}),es[30]=eo,es[31]=ew,es[32]=M):M=es[32],es[33]!==ex||es[34]!==eo||es[35]!==eb||es[36]!==ew?(D=(ew||eo)&&(0,r.jsxs)(u.s,{align:"center",gap:"sm",children:[(0,r.jsx)(S.aJ,{"data-testid":"connection-password-input",style:{flexGrow:1},name:"password",control:ex,placeholder:"Password (default: blank)"}),!eo&&(0,r.jsx)(m.$,{"data-testid":"cancel-password-button",variant:"secondary",onClick:()=>{eC(!1),eb("password")},children:"Cancel"})]}),es[33]=ex,es[34]=eo,es[35]=eb,es[36]=ew,es[37]=D):D=es[37],es[38]!==M||es[39]!==D?(Z=(0,r.jsxs)(d.a,{children:[V,M,D]}),es[38]=M,es[39]=D,es[40]=Z):Z=es[40],es[41]!==eE?(q=!eE&&(0,r.jsx)(h.M,{underline:"always",onClick:()=>eN(!0),size:"xs",children:(0,r.jsxs)(x.Y,{gap:"xs",children:[(0,r.jsx)(g.A,{size:14}),"Advanced Settings"]})}),es[41]=eE,es[42]=q):q=es[42],es[43]!==eE?(O=eE&&(0,r.jsx)(m.$,{onClick:()=>eN(!1),size:"xs",variant:"subtle",children:"Hide Advanced Settings"}),es[43]=eE,es[44]=O):O=es[44],es[45]!==q||es[46]!==O?(G=(0,r.jsxs)(d.a,{children:[q,O]}),es[45]=q,es[46]=O,es[47]=G):G=es[47];let eT=eE?"block":"none";es[48]!==eT?(B={display:eT},es[48]=eT,es[49]=B):B=es[49],es[50]===Symbol.for("react.memo_cache_sentinel")?(R=(0,r.jsx)(c.E,{size:"xs",children:"Query Log Setting Prefix"}),es[50]=R):R=es[50],es[51]===Symbol.for("react.memo_cache_sentinel")?(P=(0,r.jsxs)(x.Y,{gap:"xs",mb:"xs",children:[R,(0,r.jsx)(p.m,{label:"Tracks query origins by adding the current user's email to ClickHouse queries (as {prefix}_user in system.query_log). Requires 'custom_settings_prefixes' in your ClickHouse config.xml to include this exact value, otherwise queries will be rejected.",color:"dark",c:"white",multiline:!0,maw:400,children:(0,r.jsx)(j.A,{size:16,className:"cursor-pointer"})})]}),es[51]=P):P=es[51],es[52]!==ex?(K=(0,r.jsx)(S.t4,{"data-testid":"connection-setting-prefix-input",name:"hyperdxSettingPrefix",control:ex,placeholder:"hyperdx"}),es[52]=ex,es[53]=K):K=es[53],es[54]!==B||es[55]!==K?(Y=(0,r.jsxs)(d.a,{style:B,children:[P,K]}),es[54]=B,es[55]=K,es[56]=Y):Y=es[56];let eA=!eg.isValid,e$="invalid"===e_?"danger":"secondary",ek="loading"===e_;es[57]!==e_?(W="valid"===e_?(0,r.jsx)(r.Fragment,{children:"Connection successful"}):"invalid"===e_?(0,r.jsx)(r.Fragment,{children:"Unable to connect"}):"Test Connection",es[57]=e_,es[58]=W):W=es[58],es[59]!==ez||es[60]!==eA||es[61]!==e$||es[62]!==ek||es[63]!==W?(X=(0,r.jsx)(m.$,{disabled:eA,variant:e$,type:"button",onClick:ez,loading:ek,children:W}),es[59]=ez,es[60]=eA,es[61]=e$,es[62]=ek,es[63]=W,es[64]=X):X=es[64],es[65]!==eo||es[66]!==X?(U=(0,r.jsx)(p.m,{label:"\uD83D\uDD12 Password re-entry required for security",position:"right",disabled:eo,withArrow:!0,children:X}),es[65]=eo,es[66]=X,es[67]=U):U=es[67],es[68]!==ec||es[69]!==eu?(Q=ec&&eu&&(0,r.jsx)(m.$,{variant:"secondary",onClick:ec,children:"Cancel"}),es[68]=ec,es[69]=eu,es[70]=Q):Q=es[70],es[71]!==el.id||es[72]!==eS||es[73]!==eo||es[74]!==ec||es[75]!==eh?(J=!eo&&!1!==eh&&(0,r.jsx)(E.A,{onDelete:()=>eS.mutate({id:el.id},{onSuccess:()=>{ec?.()}})}),es[71]=el.id,es[72]=eS,es[73]=eo,es[74]=ec,es[75]=eh,es[76]=J):J=es[76];let eI=eo?ej.isPending:ey.isPending,eF=eo?"Create":"Save";return es[77]!==eI||es[78]!==eF?(ee=(0,r.jsxs)(m.$,{"data-testid":"connection-save-button",variant:"primary",type:"submit",loading:eI,children:[eF," Connection"]}),es[77]=eI,es[78]=eF,es[79]=ee):ee=es[79],es[80]!==Q||es[81]!==J||es[82]!==ee?(et=(0,r.jsxs)(x.Y,{gap:"xs",children:[Q,J,ee]}),es[80]=Q,es[81]=J,es[82]=ee,es[83]=et):et=es[83],es[84]!==U||es[85]!==et?(ea=(0,r.jsxs)(x.Y,{justify:"space-between",children:[U,et]}),es[84]=U,es[85]=et,es[86]=ea):ea=es[86],es[87]!==F||es[88]!==H||es[89]!==Z||es[90]!==G||es[91]!==Y||es[92]!==ea||es[93]!==$?(en=(0,r.jsxs)(b.B,{gap:"md",children:[$,F,H,Z,G,Y,ea]}),es[87]=F,es[88]=H,es[89]=Z,es[90]=G,es[91]=Y,es[92]=ea,es[93]=$,es[94]=en):en=es[94],es[95]!==en||es[96]!==N?(er=(0,r.jsx)("form",{"data-testid":"connection-form",onSubmit:N,children:en}),es[95]=en,es[96]=N,es[97]=er):er=es[97],er}function z(){f.$e.show({color:"red",message:"Error updating connection, please check the host and credentials and try again.",autoClose:5e3})}function T(){f.$e.show({color:"red",message:"Error creating connection, please check the host and credentials and try again.",autoClose:5e3})}},52154:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(6029),r=a(75155),s=a(43517),l=a(78253);function o(e){let t,a,o,i,c,d,m,u=(0,r.c)(17),{language:h,onLanguageChange:x,showHotkey:p}=e;u[0]!==p?(t=p&&(0,n.jsx)(s.E,{size:"xxs",bg:"var(--color-bg-neutral)",c:"white",px:4,py:0,mr:4,lh:1.4,children:"/"}),u[0]=p,u[1]=t):t=u[1];let b="sql"===h?"var(--color-text-brand)":"gray";u[2]!==x?(a=()=>x("sql"),u[2]=x,u[3]=a):a=u[3],u[4]!==b||u[5]!==a?(o=(0,n.jsx)(s.E,{c:b,onClick:a,size:"xs",role:"button",children:"SQL"}),u[4]=b,u[5]=a,u[6]=o):o=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)(s.E,{size:"xs",children:"|"}),u[7]=i):i=u[7];let f="lucene"===h?"var(--color-text-brand)":"gray";return u[8]!==x?(c=()=>x("lucene"),u[8]=x,u[9]=c):c=u[9],u[10]!==f||u[11]!==c?(d=(0,n.jsx)(s.E,{size:"xs",role:"button",fw:500,c:f,onClick:c,children:"Lucene"}),u[10]=f,u[11]=c,u[12]=d):d=u[12],u[13]!==t||u[14]!==o||u[15]!==d?(m=(0,n.jsxs)(l.s,{wrap:"nowrap",gap:"xxxs",px:"sm",children:[t,o,i,d]}),u[13]=t,u[14]=o,u[15]=d,u[16]=m):m=u[16],m}},54970:(e,t,a)=>{"use strict";a.d(t,{v:()=>I});var n=a(6029),r=a(75155),s=a(55729),l=a(82641),o=a(62801),i=a(78253),c=a(94720),d=a(43517),m=a(25062),u=a(39603),h=a(92556),x=a(3635),p=a(76013),b=a(60481),f=a(92789),g=a(34834),j=a(28797),y=a(94502),S=a(17283),v=a(91758),w=a(58333),C=a(23474),E=a(23195),N=a(98142),_=a(93108),z=a(81973),T=a(92917),A=a(24314),$=a(76326),k=a.n($);function I(e){let t,a,$,I,F,L,H,V,M=(0,r.c)(53),{onAddSource:D,withCard:Z,withBorder:q,cardClassName:O,variant:G,showEmptyState:B}=e,R=void 0===Z||Z,P=void 0===q||q,K=void 0===G?"compact":G,Y=void 0===B||B,{data:W,isLoading:X,error:U,refetch:Q}=(0,_.ZY)(),{data:J,isLoading:ee,error:et,refetch:ea}=(0,z.oE)(),[en,er]=(0,s.useState)(null),[es,el]=(0,s.useState)(!1),eo=U||et;M[0]!==Q||M[1]!==ea?(t=()=>{Q(),ea()},M[0]=Q,M[1]=ea,M[2]=t):t=M[2];let ei=t,ec="compact"===K?"sm":"md",ed="compact"===K?"xs":"sm",em="compact"===K?11:14,eu="compact"===K?"xs":"sm",eh=R?o.Z:s.Fragment;M[3]!==O||M[4]!==P||M[5]!==R?(a=R?{withBorder:P,p:"md",radius:"sm",className:O??k().sourcesCard}:{},M[3]=O,M[4]=P,M[5]=R,M[6]=a):a=M[6];let ex=a;if(X||ee){let e,t;return M[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)(i.s,{justify:"center",align:"center",py:"xl",children:[(0,n.jsx)(c.a,{size:"sm"}),(0,n.jsx)(d.E,{size:"sm",c:"dimmed",ml:"sm",children:"Loading sources..."})]}),M[7]=e):e=M[7],M[8]!==eh||M[9]!==ex?(t=(0,n.jsx)(eh,{...ex,children:e}),M[8]=eh,M[9]=ex,M[10]=t):t=M[10],t}if(eo){let e,t,a,r,s,l;M[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(j.A,{size:16}),M[11]=e):e=M[11];let o=eo instanceof Error?eo.message:"An error occurred while loading data sources.";return M[12]!==o?(t=(0,n.jsx)(d.E,{size:"sm",mb:"sm",children:o}),M[12]=o,M[13]=t):t=M[13],M[14]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)(y.A,{size:14}),M[14]=a):a=M[14],M[15]!==ei?(r=(0,n.jsx)(m.$,{size:"xs",variant:"danger",leftSection:a,onClick:ei,children:"Retry"}),M[15]=ei,M[16]=r):r=M[16],M[17]!==r||M[18]!==t?(s=(0,n.jsxs)(u.F,{icon:e,title:"Failed to load sources",color:"red",variant:"light",children:[t,r]}),M[17]=r,M[18]=t,M[19]=s):s=M[19],M[20]!==eh||M[21]!==s||M[22]!==ex?(l=(0,n.jsx)(eh,{...ex,children:s}),M[20]=eh,M[21]=s,M[22]=ex,M[23]=l):l=M[23],l}let ep=!J||0===J.length;return M[24]!==es||M[25]!==ep||M[26]!==Y?($=ep&&!es&&Y&&(0,n.jsxs)(i.s,{direction:"column",align:"center",py:"xl",gap:"sm",children:[(0,n.jsx)(S.A,{size:32,color:"var(--color-text-muted)"}),(0,n.jsx)(h.h,{size:"sm",ta:"center",c:"var(--color-text-muted)",children:"No data sources configured yet."}),(0,n.jsx)(d.E,{size:"xs",ta:"center",c:"var(--color-text-muted)",children:"Add a source to start querying your data."})]}),M[24]=es,M[25]=ep,M[26]=Y,M[27]=$):$=M[27],M[28]!==eu||M[29]!==W||M[30]!==en||M[31]!==em||M[32]!==J||M[33]!==ed||M[34]!==ec?(I=J?.map((e,t)=>(0,n.jsxs)(s.Fragment,{children:[(0,n.jsxs)(i.s,{justify:"space-between",align:"center",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(d.E,{size:ec,fw:500,children:e.name}),(0,n.jsx)(d.E,{size:ed,c:"dimmed",mt:4,children:(0,n.jsxs)(x.Y,{gap:"xs",children:[(0,T.Zr)(e.kind),(0,n.jsxs)(x.Y,{gap:4,children:[(0,n.jsx)(v.A,{size:em}),W?.find(t=>t.id===e.connection)?.name]}),(0,n.jsx)(x.Y,{gap:4,children:e.from&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S.A,{size:em}),e.from.databaseName,e.kind===l.GL.Metric?"":".",e.from.tableName]})})]})})]}),(0,n.jsx)(p.M,{variant:"secondary",size:eu,onClick:()=>er(en===e.id?null:e.id),children:en===e.id?(0,n.jsx)(w.A,{size:em+2}):(0,n.jsx)(C.A,{size:em+2})})]}),en===e.id&&(0,n.jsx)(b.a,{mt:"xs",children:(0,n.jsx)(A.Eb,{sourceId:e.id,onSave:()=>er(null)})}),t<(J?.length??0)-1&&(0,n.jsx)(f.c,{})]},e.id)),M[28]=eu,M[29]=W,M[30]=en,M[31]=em,M[32]=J,M[33]=ed,M[34]=ec,M[35]=I):I=M[35],M[36]!==es||M[37]!==J?(F=es&&(0,n.jsxs)(n.Fragment,{children:[J&&J.length>0&&(0,n.jsx)(f.c,{}),(0,n.jsx)(A.Eb,{isNew:!0,onCreate:()=>el(!1),onCancel:()=>el(!1)})]}),M[36]=es,M[37]=J,M[38]=F):F=M[38],M[39]!==eu||M[40]!==es||M[41]!==D||M[42]!==J?(L=!N.VO&&!es&&(0,n.jsx)(i.s,{justify:"flex-end",pt:J&&J.length>0?"md":0,children:(0,n.jsx)(m.$,{variant:"secondary",size:eu,leftSection:(0,n.jsx)(E.A,{size:14}),onClick:()=>{el(!0),D?.()},children:"Add source"})}),M[39]=eu,M[40]=es,M[41]=D,M[42]=J,M[43]=L):L=M[43],M[44]!==L||M[45]!==$||M[46]!==I||M[47]!==F?(H=(0,n.jsxs)(g.B,{gap:"md",children:[$,I,F,L]}),M[44]=L,M[45]=$,M[46]=I,M[47]=F,M[48]=H):H=M[48],M[49]!==eh||M[50]!==H||M[51]!==ex?(V=(0,n.jsx)(eh,{...ex,children:H}),M[49]=eh,M[50]=H,M[51]=ex,M[52]=V):V=M[52],V}},62453:(e,t,a)=>{"use strict";a.d(t,{r:()=>i});var n=a(6029),r=a(75155),s=a(91758),l=a(9211),o=a(93108);function i(e){let t,a,i,d,m,u,h=(0,r.c)(11);h[0]!==e?({size:a,...t}=e,h[0]=e,h[1]=t,h[2]=a):(t=h[1],a=h[2]);let{data:x}=(0,o.ZY)();h[3]!==x?(i=x?.map(c),h[3]=x,h[4]=i):i=h[4];let p=i;return h[5]===Symbol.for("react.memo_cache_sentinel")?(d={withinPortal:!1},h[5]=d):d=h[5],h[6]===Symbol.for("react.memo_cache_sentinel")?(m=(0,n.jsx)(s.A,{size:16}),h[6]=m):m=h[6],h[7]!==t||h[8]!==a||h[9]!==p?(u=(0,n.jsx)(l.A,{...t,allowDeselect:!1,data:p,comboboxProps:d,searchable:!0,placeholder:"Connection",leftSection:m,maxDropdownHeight:280,size:a}),h[7]=t,h[8]=a,h[9]=p,h[10]=u):u=h[10],u}function c(e){return{value:e.id,label:e.name}}},64467:(e,t,a)=>{"use strict";a.d(t,{Z:()=>w});var n=a(6029),r=a(75155),s=a(55729),l=a(1909),o=a(66692),i=a(95516),c=a(15215),d=a(36417),m=a(22623),u=a(43517),h=a(63085),x=a(78253),p=a(67747),b=a(95352),f=a(78550),g=a(92917),j=a(52154);let y="150px",S={lineNumbers:!1,foldGutter:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1};function v({tableConnection:e,tableConnections:t,filterField:a,onChange:r,placeholder:l,onLanguageChange:v,language:w,onSubmit:C,error:E,value:N,size:_,label:z,disableKeywordAutocomplete:T,enableHotkey:A,tooltipText:$,additionalSuggestions:k=[],queryHistoryType:I,parentRef:F,allowMultiline:L=!1}){let{colorScheme:H}=(0,d.C)(),{data:V}=(0,f.Sh)((e?[e]:t)??[]),M=(0,s.useMemo)(()=>a?V?.filter(a):V,[V,a]),[D,Z]=(0,g.mk)(I),q=(0,s.useCallback)((e,t,a,n)=>{e.dispatch({changes:{from:t,to:a,insert:n}}),(0,i.N)(e),Z(n),C&&C()},[C,Z]),O=(0,s.useMemo)(()=>()=>({from:0,options:D.map(e=>({label:e,section:"Search History",type:"keyword",apply:(t,a,n,r)=>{q(t,n,r,e)}}))}),[D,q]),[G,B]=(0,s.useState)(!1),R=(0,s.useRef)(null),P=(0,s.useRef)(new b.xx),K=(0,s.useCallback)(e=>{let t=e.state.doc.toString(),a=[...M?.map(e=>e.path.length>1?`${e.path[0]}['${e.path[1]}']`:e.path[0])??[],...k],n=(0,c.ll)({dialect:c.fy.define({keywords:a.join(" ")+(T?"":" AND OR NOT IN LIKE ILIKE BETWEEN ASC DESC intDiv intDivOrZero isNaN moduloOrZero abs empty notEmpty length arrayConcat has hasAll hasAny indexOf arrayCount countEqual arrayUnion arrayIntersect arrayMap arrayFilter arraySort flatten arrayCompact arrayMin arrayMax arraySum arrayAvg if multiIf floor ceiling truncate round timestamp toTimeZone toYear toMonth toWeek toDayOfYear toDayOfMonth toDayOfWeek toUnixTimestamp toTime lower upper substring trim dictGet dictGetOrDefault dictGetOrNull")})}),r=(0,i.yU)({compareCompletions:(e,t)=>0,override:[O]});e.dispatch({effects:P.current.reconfigure(t.length>0?n:r)})},[M,k,O,T]);(0,s.useEffect)(()=>{null!=R.current&&null!=R.current.view&&K(R.current.view)},[K]),(0,o.vC)("/",()=>{A&&R.current?.view?.focus()},{preventDefault:!0},[A]);let Y=(0,s.useMemo)(()=>null==F?[]:[(0,b.vX)({parent:F,tooltipSpace:e=>{let t=e.dom.getBoundingClientRect(),a=F.getBoundingClientRect();return{...t,right:t.right??0,left:a.left??t.left,top:a.top??t.top,bottom:a.bottom??t.bottom}}})],[F]),W=(0,s.useMemo)(()=>[...Y,b.Lz.baseTheme({"&.cm-editor.cm-focused":{outline:"0px solid transparent"},"&.cm-editor":{background:"transparent !important"},".cm-editor-multiline &.cm-editor":{maxHeight:y},"& .cm-tooltip-autocomplete":{whiteSpace:"nowrap",wordWrap:"break-word",maxWidth:"100%",backgroundColor:"var(--color-bg-field) !important",border:"1px solid var(--color-border) !important",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",padding:"4px"},"& .cm-tooltip-autocomplete > ul":{fontFamily:"inherit",maxHeight:"300px"},"& .cm-tooltip-autocomplete > ul > li":{padding:"4px 8px",borderRadius:"4px",cursor:"pointer",color:"var(--color-text)"},"& .cm-tooltip-autocomplete > ul > li[aria-selected]":{backgroundColor:"var(--color-bg-field-highlighted) !important",color:"var(--color-text-muted) !important"},"& .cm-tooltip-autocomplete .cm-completionLabel":{color:"var(--color-text)"},"& .cm-tooltip-autocomplete .cm-completionDetail":{color:"var(--color-text-muted)",fontStyle:"normal",marginLeft:"8px"},"& .cm-tooltip-autocomplete .cm-completionInfo":{backgroundColor:"var(--color-bg-field)",border:"1px solid var(--color-border)",borderRadius:"4px",padding:"8px",color:"var(--color-text)"},"& .cm-completionIcon":{width:"16px",marginRight:"6px",opacity:.7},"& .cm-scroller":{overflowX:"hidden"},".cm-editor-multiline & .cm-scroller":{maxHeight:y,overflowY:"auto"}}),...L?[b.Lz.lineWrapping]:[],P.current.of((0,c.ll)({upperCaseKeywords:!0})),b.Nb.highest(b.w4.of([{key:"Enter",run:e=>null!=C&&(I&&R?.current?.view&&Z(R?.current?.view.state.doc.toString()),C(),!0)},...L?[{key:"Shift-Enter",run:()=>!1}]:[]])),b.w4.of([{key:"Tab",run:i.$w}])],[L,C,I,Z,Y]),X=(0,s.useCallback)(()=>{R?.current?.view&&(0,i.rB)(R.current.view)},[]);return(0,n.jsxs)(m.t,{flex:"auto",shadow:"none",style:{backgroundColor:"var(--color-bg-field)",border:`1px solid ${E?"var(--color-bg-danger)":"var(--color-border)"}`,display:"flex",alignItems:"center",minHeight:"xs"===_?30:36},ps:"4px",children:[null!=z&&(0,n.jsx)(u.E,{mx:"4px",size:"xs",fw:"bold",style:{whiteSpace:"nowrap"},component:"div",children:(0,n.jsx)(h.m,{label:$,disabled:!$,children:(0,n.jsxs)(x.s,{align:"center",gap:2,children:[z,$&&(0,n.jsx)(p.A,{size:20})]})})}),(0,n.jsx)("div",{style:{minWidth:10,width:"100%"},className:L?"cm-editor-multiline":"",children:(0,n.jsx)(b.Ay,{indentWithTab:!1,ref:R,value:N,onChange:r,theme:"dark"===H?"dark":"light",onFocus:(0,s.useCallback)(()=>{B(!0)},[B]),onBlur:(0,s.useCallback)(()=>{B(!1)},[B]),extensions:W,onCreateEditor:K,basicSetup:S,placeholder:l,onClick:X})}),null!=v&&null!=w&&(0,n.jsx)(j.A,{showHotkey:A&&G,language:w,onLanguageChange:v})]})}let w=(0,s.memo)(function(e){let t,a,s,o,i,c,d=(0,r.c)(15);d[0]!==e?({placeholder:s,filterField:a,additionalSuggestions:t,queryHistoryType:i,...o}=e,d[0]=e,d[1]=t,d[2]=a,d[3]=s,d[4]=o,d[5]=i):(t=d[1],a=d[2],s=d[3],o=d[4],i=d[5]);let{field:m,fieldState:u}=(0,l.as)(o),h=m.value||o.defaultValue,x="";"string"==typeof h?x=h:void 0!==h&&console.error("SQLInlineEditor: value is not a string",h);let p=u.error?.message;return d[6]!==t||d[7]!==m.onChange||d[8]!==a||d[9]!==s||d[10]!==o||d[11]!==i||d[12]!==x||d[13]!==p?(c=(0,n.jsx)(v,{filterField:a,onChange:m.onChange,placeholder:s,value:x,error:p,additionalSuggestions:t,queryHistoryType:i,...o}),d[6]=t,d[7]=m.onChange,d[8]=a,d[9]=s,d[10]=o,d[11]=i,d[12]=x,d[13]=p,d[14]=c):c=d[14],c})},71781:(e,t,a)=>{"use strict";a.d(t,{M7:()=>d,aJ:()=>u,mh:()=>h,t4:()=>m});var n=a(6029),r=a(75155);a(55729);var s=a(1909),l=a(59029),o=a(96061),i=a(45544),c=a(47268);function d(e){let t,a,o,i,c,d,m=(0,r.c)(12);return m[0]!==e?({name:a,control:t,rules:i,...o}=e,m[0]=e,m[1]=t,m[2]=a,m[3]=o,m[4]=i):(t=m[1],a=m[2],o=m[3],i=m[4]),m[5]!==o?(c=e=>{let{field:t,fieldState:a}=e,{error:r}=a;return(0,n.jsx)(l.k,{...o,...t,error:r?.message})},m[5]=o,m[6]=c):c=m[6],m[7]!==t||m[8]!==a||m[9]!==i||m[10]!==c?(d=(0,n.jsx)(s.xI,{name:a,control:t,rules:i,render:c}),m[7]=t,m[8]=a,m[9]=i,m[10]=c,m[11]=d):d=m[11],d}function m(e){let t,a,l,i,c,d,m=(0,r.c)(12);return m[0]!==e?({name:a,control:t,rules:i,...l}=e,m[0]=e,m[1]=t,m[2]=a,m[3]=l,m[4]=i):(t=m[1],a=m[2],l=m[3],i=m[4]),m[5]!==l?(c=e=>{let{field:t,fieldState:a}=e,{error:r}=a;return(0,n.jsx)(o.p,{...l,...t,error:r?.message})},m[5]=l,m[6]=c):c=m[6],m[7]!==t||m[8]!==a||m[9]!==i||m[10]!==c?(d=(0,n.jsx)(s.xI,{name:a,control:t,rules:i,render:c}),m[7]=t,m[8]=a,m[9]=i,m[10]=c,m[11]=d):d=m[11],d}function u(e){let t,a,l,o,c,d,m=(0,r.c)(12);return m[0]!==e?({name:a,control:t,rules:o,...l}=e,m[0]=e,m[1]=t,m[2]=a,m[3]=l,m[4]=o):(t=m[1],a=m[2],l=m[3],o=m[4]),m[5]!==l?(c=e=>{let{field:t,fieldState:a}=e,{error:r}=a;return(0,n.jsx)(i.y,{...l,...t,error:r?.message})},m[5]=l,m[6]=c):c=m[6],m[7]!==t||m[8]!==a||m[9]!==o||m[10]!==c?(d=(0,n.jsx)(s.xI,{name:a,control:t,rules:o,render:c}),m[7]=t,m[8]=a,m[9]=o,m[10]=c,m[11]=d):d=m[11],d}function h(e){let t,a,l,o,i,d,m=(0,r.c)(12);return m[0]!==e?({name:a,control:t,rules:o,...l}=e,m[0]=e,m[1]=t,m[2]=a,m[3]=l,m[4]=o):(t=m[1],a=m[2],l=m[3],o=m[4]),m[5]!==l?(i=e=>{let{field:t,fieldState:a}=e,{value:r,...s}=t,{error:o}=a;return(0,n.jsx)(c.S,{...l,...s,checked:r,error:o?.message})},m[5]=l,m[6]=i):i=m[6],m[7]!==t||m[8]!==a||m[9]!==o||m[10]!==i?(d=(0,n.jsx)(s.xI,{name:a,control:t,rules:o,render:i}),m[7]=t,m[8]=a,m[9]=o,m[10]=i,m[11]=d):d=m[11],d}},76326:e=>{e.exports={sourcesCard:"Sources_sourcesCard__m5aMQ"}},86761:(e,t,a)=>{"use strict";a.d(t,{A:()=>j});var n=a(6029),r=a(75155),s=a(55729),l=a(82641),o=a(43517),i=a(63085),c=a(22623),d=a(27166),m=a(64488),u=a(6620),h=a(94502),x=a(78550),p=a(88339);let b=e=>{let t,a,s,l=(0,r.c)(11),{onClick:c,isEnabled:d,tableCount:m,iconStyles:h,variant:x}=e,p=void 0===x?"icon":x,b=d?m>1?"Show Table Schemas":"Show Table Schema":"Select a table to view its schema";return l[0]!==d||l[1]!==c?(t=()=>d&&c(),l[0]=d,l[1]=c,l[2]=t):t=l[2],l[3]!==h||l[4]!==d||l[5]!==p?(a="text"===p?(0,n.jsx)(o.E,{fw:500,size:"xs",className:"text-sucess-hover",style:{cursor:d?"pointer":"default",...h},children:"Schema"}):(0,n.jsx)(u.A,{size:16}),l[3]=h,l[4]=d,l[5]=p,l[6]=a):a=l[6],l[7]!==t||l[8]!==a||l[9]!==b?(s=(0,n.jsx)(i.m,{label:b,color:"dark",position:"right",onClick:t,children:a}),l[7]=t,l[8]=a,l[9]=b,l[10]=s):s=l[10],s},f=e=>{let t,a,s,l=(0,r.c)(8),{databaseName:o,tableName:i,connectionId:d}=e;l[0]!==d||l[1]!==o||l[2]!==i?(t={databaseName:o,tableName:i,connectionId:d},l[0]=d,l[1]=o,l[2]=i,l[3]=t):t=l[3];let{data:m,isLoading:u}=(0,x.Z2)(t);return l[4]===Symbol.for("react.memo_cache_sentinel")?(a={overflow:"hidden"},l[4]=a):a=l[4],l[5]!==m?.create_table_query||l[6]!==u?(s=(0,n.jsx)(c.t,{flex:"auto",shadow:"none",radius:"sm",p:"xs",style:a,children:u?(0,n.jsx)("div",{className:"d-inline-block",children:(0,n.jsx)(h.A,{className:"spin-animate"})}):(0,n.jsx)(p.V,{data:m?.create_table_query??"Schema is not available",enableCopy:!!m?.create_table_query,copyButtonSize:"xs"})}),l[5]=m?.create_table_query,l[6]=u,l[7]=s):s=l[7],s},g={[l.SX.Sum]:"Sum",[l.SX.Gauge]:"Gauge",[l.SX.Histogram]:"Histogram",[l.SX.Summary]:"Summary",[l.SX.ExponentialHistogram]:"Exponential Histogram"},j=e=>{let t,a,o,i,c,u=(0,r.c)(34),{source:h,iconStyles:x,variant:p}=e,f=void 0===p?"icon":p,[j,w]=(0,s.useState)(!1),C=h?.kind==="metric";if(u[0]!==C||u[1]!==h){let e,a;if(t=[],h&&C){let e,a,n;u[3]===Symbol.for("react.memo_cache_sentinel")?(e=Object.values(l.SX),u[3]=e):e=u[3],u[4]!==h?(a=e.map(e=>({metricType:e,tableName:h.metricTables?.[e]})).filter(y),u[4]=h,u[5]=a):a=u[5],u[6]!==h||u[7]!==a?(n=a.map(e=>{let{metricType:t,tableName:a}=e;return{databaseName:h.from.databaseName,tableName:a,connectionId:h.connection,title:g[t]}}),u[6]=h,u[7]=a,u[8]=n):n=u[8],t.push(...n)}else if(h&&h.from.tableName){let e,a=h.name??h.from.tableName;u[9]!==h.connection||u[10]!==h.from.databaseName||u[11]!==h.from.tableName||u[12]!==a?(e={databaseName:h.from.databaseName,tableName:h.from.tableName,connectionId:h.connection,title:a},u[9]=h.connection,u[10]=h.from.databaseName,u[11]=h.from.tableName,u[12]=a,u[13]=e):e=u[13],t.push(e)}u[14]!==h?.materializedViews?(e=h?.materializedViews??[],u[14]=h?.materializedViews,u[15]=e):e=u[15];let n=e;if(u[16]!==n||u[17]!==h){let e;u[19]!==h?(e=e=>{let{tableName:t,databaseName:a}=e;return{databaseName:a,tableName:t,connectionId:h.connection,title:`${t} (MV)`}},u[19]=h,u[20]=e):e=u[20],a=n.map(e),u[16]=n,u[17]=h,u[18]=a}else a=u[18];t.push(...a),u[0]=C,u[1]=h,u[2]=t}else t=u[2];let E=!!h&&t.length>0;return u[21]===Symbol.for("react.memo_cache_sentinel")?(a=()=>w(!0),u[21]=a):a=u[21],u[22]!==x||u[23]!==E||u[24]!==t.length||u[25]!==f?(o=(0,n.jsx)(b,{isEnabled:E,onClick:a,iconStyles:x,tableCount:t.length,variant:f}),u[22]=x,u[23]=E,u[24]=t.length,u[25]=f,u[26]=o):o=u[26],u[27]!==E||u[28]!==j||u[29]!==t?(i=E&&(0,n.jsx)(d.a,{opened:j,onClose:()=>w(!1),size:"auto",title:t.length>1?"Table Schemas":"Table Schema",children:(0,n.jsxs)(m.t,{defaultValue:`${t[0]?.databaseName}.${t[0]?.tableName}.${t[0]?.title}`,children:[(0,n.jsx)(m.t.List,{children:t.map(S)}),t.map(v)]})}),u[27]=E,u[28]=j,u[29]=t,u[30]=i):i=u[30],u[31]!==o||u[32]!==i?(c=(0,n.jsxs)(n.Fragment,{children:[o,i]}),u[31]=o,u[32]=i,u[33]=c):c=u[33],c};function y(e){let{tableName:t}=e;return!!t}function S(e){return(0,n.jsx)(m.t.Tab,{value:`${e.databaseName}.${e.tableName}.${e.title}`,children:e.title},`${e.databaseName}.${e.tableName}.${e.title}`)}function v(e){return(0,n.jsx)(m.t.Panel,{value:`${e.databaseName}.${e.tableName}.${e.title}`,pt:"sm",children:(0,n.jsx)(f,{...e})},`${e.databaseName}.${e.tableName}.${e.title}`)}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/3172-b6490fb55ce08c1c.js b/out/_next/static/chunks/3172-b6490fb55ce08c1c.js deleted file mode 100644 index 23f2218..0000000 --- a/out/_next/static/chunks/3172-b6490fb55ce08c1c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3172],{8989:(e,t,a)=>{"use strict";a.d(t,{R:()=>c});var n=a(75155),r=a(67270),s=a(12482),l=a(49672),o=a(81973),i=a(78550);function c(e,t){let a,c,d,m,u,h=(0,n.c)(16);h[0]!==e?(a={...e,with:void 0},h[0]=e,h[1]=a):a=h[1];let x=a,p=(0,l.fu)(),b=(0,i.Ge)(),f=x?.source;h[2]!==f?(c={id:f},h[2]=f,h[3]=c):c=h[3];let{data:g,isLoading:j}=(0,o.Fo)(c);h[4]!==x?(d=["explain",x],h[4]=x,h[5]=d):d=h[5],h[6]!==p||h[7]!==x||h[8]!==b||h[9]!==g?.querySettings?(m=async e=>{let{signal:t}=e,a=await (0,r.PV)(x,b,g?.querySettings);return(await p.query({query:`EXPLAIN ESTIMATE ${a.sql}`,query_params:a.params,format:"JSONEachRow",abort_signal:t,connectionId:x.connection})).json()},h[6]=p,h[7]=x,h[8]=b,h[9]=g?.querySettings,h[10]=m):m=h[10];let y=!j;return h[11]!==t||h[12]!==d||h[13]!==m||h[14]!==y?(u={queryKey:d,queryFn:m,retry:!1,staleTime:6e4,enabled:y,...t},h[11]=t,h[12]=d,h[13]=m,h[14]=y,h[15]=u):u=h[15],(0,s.I)(u)}},24207:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(6029),r=a(75155),s=a(56513),l=a(25062),o=a(90993);function i(e){let t,a,i,c=(0,r.c)(4),{onDelete:d}=e;return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(s.W.Target,{children:(0,n.jsx)(l.$,{variant:"danger",size:"xs",children:"Delete"})}),c[0]=t):t=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)(o.A,{size:16}),c[1]=a):a=c[1],c[2]!==d?(i=(0,n.jsxs)(s.W,{withArrow:!0,children:[t,(0,n.jsx)(s.W.Dropdown,{children:(0,n.jsx)(s.W.Item,{leftSection:a,onClick:d,children:"Confirm Delete"})})]}),c[2]=d,c[3]=i):i=c[3],i}},24314:(e,t,a)=>{"use strict";a.d(t,{Eb:()=>eH});var n=a(6029),r=a(75155),s=a(55729),l=a(1909),o=a(35467),i=a(82641),c=a(43517),d=a(34834),m=a(63085),u=a(53061),h=a(78253),x=a(60481),p=a(48378),b=a(76013),f=a(25062),g=a(3635),j=a(92789),y=a(38206),S=a(23935),v=a(9953),w=a(18341),C=a(58061),E=a(289),N=a(3465),_=a(60665),z=a(97702),T=a(90515),A=a(90993),$=a(28975),k=a(95316),I=a(57478),F=a(98142),H=a(93108),L=a(8989),V=a(78550),D=a(81973),M=a(76089);let Z=["avg","count","max","min","quantile","sum","histogram"],q=[{value:"1 second",label:"1 second"},{value:M.Z7.FifteenSecond,label:"15 seconds"},{value:M.Z7.ThirtySecond,label:"30 seconds"},{value:M.Z7.OneMinute,label:"1 minute"},{value:M.Z7.FiveMinute,label:"5 minutes"},{value:M.Z7.FifteenMinute,label:"15 minutes"},{value:M.Z7.ThirtyMinute,label:"30 minutes"},{value:M.Z7.OneHour,label:"1 hour"},{value:M.Z7.TwoHour,label:"2 hours"},{value:M.Z7.SixHour,label:"6 hours"},{value:M.Z7.TwelveHour,label:"12 hours"},{value:M.Z7.OneDay,label:"1 day"},{value:M.Z7.TwoDay,label:"2 days"},{value:M.Z7.SevenDay,label:"7 days"},{value:M.Z7.ThirtyDay,label:"30 days"}],O=/MATERIALIZED VIEW [^\s]+\.[^\s]+ TO ([^\s]+)\.([^\s]+)/;function G(e){return e.engine?.includes("AggregatingMergeTree")??!1}function B(e){return e.engine?.includes("SummingMergeTree")??!1}async function R({databaseName:e,tableName:t,connectionId:a},n){try{let r=await n.getTableMetadata({databaseName:e,tableName:t,connectionId:a});if(r.engine?.startsWith("MaterializedView")){let e=function(e){let t=e.create_table_query.match(O);if(t&&t[1]&&t[2])return{databaseName:t[1],tableName:t[2]}}(r);if(e){let t=await n.getTableMetadata({...e,connectionId:a});return G(t)||B(t)?{mvMetadata:r,mvTableMetadata:t}:void 0}}else if(G(r)||B(r)){let s=await n.queryMaterializedViewsByTarget({databaseName:e,tableName:t,connectionId:a});if(1===s.length)return{mvMetadata:await n.getTableMetadata({...s[0],connectionId:a}),mvTableMetadata:r};return{mvTableMetadata:r}}}catch(e){console.error("Error fetching materialized view metadata",e)}}function P(e){let t=e.as_select??"",a=t.slice(0,t.toLowerCase().indexOf("from")).replace(/^select/i,"").trim();return(0,M.AB)(a)}function Y(e,t,a,n){if("count"===e)return"";let r=t.name.split("__")[1];if(a.find(e=>e.name===r))return r;if(n){let e=P(n).find(e=>e.endsWith(t.name)),r=e&&a.find(t=>RegExp(`\\b${t.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(e));if(r)return r.name}return""}async function K(e,t,a){let{databaseName:n,tableName:r,connectionId:s}=e,{databaseName:l,tableName:i}=t;if(!r)return;let c=await R({databaseName:n,tableName:r,connectionId:s},a);if(!c)return;let{mvMetadata:d,mvTableMetadata:m}=c,[u,h]=await Promise.all([a.getColumns({databaseName:m.database,tableName:m.name,connectionId:s}),a.getColumns({databaseName:l,tableName:i,connectionId:s})]),x=u.filter(e=>e.type.includes("AggregateFunction")).map(e=>{let t,a=e.type.match(/AggregateFunction\(([a-zA-Z0-9_]+)/)?.[1];if("sum"===a&&e.name.toLowerCase().includes("count")?a="count":a?.startsWith("quantile")&&(a="quantile"),t=a,!Z.includes(t??""))return;let n=Y(a,e,h,d);return{mvColumn:e.name,aggFn:a,sourceColumn:n}}).filter(e=>void 0!=e),p=B(m)?function(e){if(!B(e))return;let t=e.engine_full?.match(/SummingMergeTree\((\(?[^(]*)\)/)?.[1],a=t?.at(0)==="("&&t?.at(-1)===")"?t.slice(1,-1):t;if(a)return new Set((0,M.AB)(a))}(m):void 0;for(let e of p??[]){let t=e.toLowerCase().includes("count")?"count":"sum",a=u.find(t=>t.name===e);if(a){let n=Y(t,a,h,d);x.push({mvColumn:e,aggFn:t,sourceColumn:n})}}let b=new Set((0,o.bZ)(m.primary_key)),f=(0,o.P1)(u,[o.A2.Date])??[],g=f?.find(e=>b.has(e.name))?.name??"",j="";d&&(j=function(e,t){try{let a=P(e).find(e=>e.match(/toStartOf|toDate/)&&e.includes(t));if(!a)return;for(let[e,t]of Object.entries({toStartOfSecond:"1 second",toStartOfMinute:"1 minute",toStartOfFiveMinutes:"5 minute",toStartOfFifteenMinutes:"15 minute",toStartOfHour:"1 hour",toStartOfDay:"1 day",toDate:"1 day",toDateTime:"1 second"}))if(a?.includes(`${e}(`))return t;if(a.includes("toStartOfInterval(")){let e=a.match(/INTERVAL\s+(\d+)\s+(SECOND|MINUTE|HOUR|DAY)S?\)/i),t=a.match(/toInterval(Second|Minute|Hour|Day)\((\d+)\)/),n=e?`${e[1]} ${e[2].toLowerCase()}`:t?`${t[2]} ${t[1].toLowerCase()}`:null;if(n&&q.map(e=>e.value).includes(n)&&q.map(e=>e.value).includes(n))return n}}catch(e){console.error("Error inferring timestamp column granularity",e)}}(d,g)??"");let y=u.filter(e=>!e.type.includes("AggregateFunction")&&!p?.has(e.name)&&!f.includes(e)).map(e=>e.name).join(", ");return{databaseName:m.database,tableName:m.name,dimensionColumns:y,minGranularity:j,timestampColumn:g,aggregatedColumns:x}}var W=a(24207),X=a(62453),U=a(66980),Q=a(49672);function J(e){let t,a,s,l,o,i,c,d,m=(0,r.c)(21),{database:u,setDatabase:h,connectionId:x,onBlur:p,name:b,inputRef:f,size:g}=e,j=x??"";m[0]!==j?(t={connectionId:j},m[0]=j,m[1]=t):t=m[1];let S=!!x;m[2]!==S?(a={enabled:S},m[2]=S,m[3]=a):a=m[3];let{data:v,isLoading:w}=(0,Q.VH)(t,a);m[4]!==v?.data?(s=v?.data||[],m[4]=v?.data,m[5]=s):s=m[5],m[6]!==s?(l=s.map(ee),m[6]=s,m[7]=l):l=m[7];let C=l;return m[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)(U.A,{size:16}),m[8]=o):o=m[8],m[9]===Symbol.for("react.memo_cache_sentinel")?(i={withinPortal:!1},m[9]=i):i=m[9],m[10]!==h?(c=e=>h(e??void 0),m[10]=h,m[11]=c):c=m[11],m[12]!==C||m[13]!==u||m[14]!==f||m[15]!==w||m[16]!==b||m[17]!==p||m[18]!==g||m[19]!==c?(d=(0,n.jsx)(y.l,{searchable:!0,placeholder:"Database",leftSection:o,maxDropdownHeight:280,data:C,disabled:w,comboboxProps:i,value:u,onChange:c,onBlur:p,name:b,ref:f,size:g}),m[12]=C,m[13]=u,m[14]=f,m[15]=w,m[16]=b,m[17]=p,m[18]=g,m[19]=c,m[20]=d):d=m[20],d}function ee(e){return{value:e.name,label:e.name}}function et(e){let t,a=(0,r.c)(7),{field:s}=(0,l.as)(e);return a[0]!==s.name||a[1]!==s.onBlur||a[2]!==s.onChange||a[3]!==s.ref||a[4]!==s.value||a[5]!==e?(t=(0,n.jsx)(J,{...e,database:s.value,setDatabase:s.onChange,onBlur:s.onBlur,name:s.name,inputRef:s.ref}),a[0]=s.name,a[1]=s.onBlur,a[2]=s.onChange,a[3]=s.ref,a[4]=s.value,a[5]=e,a[6]=t):t=a[6],t}var ea=a(45519),en=a(86761);function er(e){let t,a,s,l,o,i,c,d,m,u,x=(0,r.c)(29),{database:p,setTable:b,table:f,onBlur:g,name:j,size:S,inputRef:v,connectionId:w}=e,C=p??"",E=w??"";x[0]!==C||x[1]!==E?(t={database:C,connectionId:E},x[0]=C,x[1]=E,x[2]=t):t=x[2];let N=!!p&&!!w;x[3]!==N?(a={enabled:N},x[3]=N,x[4]=a):a=x[4];let{data:_,isLoading:z}=(0,Q.uI)(t,a);x[5]!==_?.data?(s=_?.data||[],x[5]=_?.data,x[6]=s):s=x[6],x[7]!==s?(l=s.map(es),x[7]=s,x[8]=l):l=x[8];let T=l;x[9]!==w||x[10]!==p||x[11]!==f?(o=w&&p&&f?(0,n.jsx)(en.A,{source:{connection:w,from:{databaseName:p,tableName:f}},variant:"text"}):void 0,x[9]=w,x[10]=p,x[11]=f,x[12]=o):o=x[12],x[13]!==o?(i=(0,I.J)({sourceSchemaPreview:o}),x[13]=o,x[14]=i):i=x[14];let A=i;return x[15]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)(ea.A,{size:16}),x[15]=c):c=x[15],x[16]===Symbol.for("react.memo_cache_sentinel")?(d={withinPortal:!1},x[16]=d):d=x[16],x[17]!==b?(m=e=>b(e??void 0),x[17]=b,x[18]=m):m=x[18],x[19]!==T||x[20]!==v||x[21]!==z||x[22]!==j||x[23]!==g||x[24]!==A||x[25]!==S||x[26]!==m||x[27]!==f?(u=(0,n.jsx)(h.s,{align:"center",gap:8,children:(0,n.jsx)(y.l,{searchable:!0,placeholder:"Table",leftSection:c,maxDropdownHeight:280,data:T,disabled:z,value:f,comboboxProps:d,onChange:m,onBlur:g,name:j,ref:v,size:S,className:"flex-grow-1",...A})}),x[19]=T,x[20]=v,x[21]=z,x[22]=j,x[23]=g,x[24]=A,x[25]=S,x[26]=m,x[27]=f,x[28]=u):u=x[28],u}function es(e){return{value:e.name,label:e.name}}function el(e){let t,a,s,o,i=(0,r.c)(13);i[0]!==e?({database:a,connectionId:t,...s}=e,i[0]=e,i[1]=t,i[2]=a,i[3]=s):(t=i[1],a=i[2],s=i[3]);let{field:c}=(0,l.as)(s);return i[4]!==t||i[5]!==a||i[6]!==c.name||i[7]!==c.onBlur||i[8]!==c.onChange||i[9]!==c.ref||i[10]!==c.value||i[11]!==s?(o=(0,n.jsx)(er,{...s,database:a,connectionId:t,table:c.value,setTable:c.onChange,onBlur:c.onBlur,name:c.name,inputRef:c.ref}),i[4]=t,i[5]=a,i[6]=c.name,i[7]=c.onBlur,i[8]=c.onChange,i[9]=c.ref,i[10]=c.value,i[11]=s,i[12]=o):o=i[12],o}var eo=a(24589),ei=a(22599),ec=a(70114),ed=a(18205);function em(e){let t,a,l,o,i,c,d,m,u=(0,r.c)(16),{summary:h,details:x}=e,[p,b]=(0,s.useState)(!1);u[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>b(eu),u[0]=t):t=u[0];let g=p?"rotate(90deg)":"rotate(0deg)";return u[1]!==g?(a=(0,n.jsx)(ec.A,{size:14,style:{transform:g,transition:"transform 150ms ease"}}),u[1]=g,u[2]=a):a=u[2],u[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.jsx)(ed.A,{size:14,className:"me-2"}),u[3]=l):l=u[3],u[4]!==h||u[5]!==a?(o=(0,n.jsxs)(f.$,{variant:"subtle",size:"compact-xs",color:"red",onClick:t,leftSection:a,children:[l," ",h]}),u[4]=h,u[5]=a,u[6]=o):o=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(i={whiteSpace:"pre-wrap",wordBreak:"break-word"},u[7]=i):i=u[7],u[8]!==x?(c=(0,n.jsx)(eo.C,{block:!0,c:"red",mt:"xs",style:i,children:x}),u[8]=x,u[9]=c):c=u[9],u[10]!==p||u[11]!==c?(d=(0,n.jsx)(ei.S,{in:p,children:c}),u[10]=p,u[11]=c,u[12]=d):d=u[12],u[13]!==o||u[14]!==d?(m=(0,n.jsxs)(n.Fragment,{children:[o,d]}),u[13]=o,u[14]=d,u[15]=m):m=u[15],m}function eu(e){return!e}var eh=a(71781),ex=a(9211),ep=a(64467);let eb="default",ef=Z.map(e=>({value:e,label:e})),eg={timestampValueExpression:"TimeUnix",resourceAttributesExpression:"ResourceAttributes"},ej={[i.GL.Log]:{metricSourceId:[{targetKind:i.GL.Metric,targetField:"logSourceId"}],traceSourceId:[{targetKind:i.GL.Trace,targetField:"logSourceId"}]},[i.GL.Trace]:{logSourceId:[{targetKind:i.GL.Log,targetField:"traceSourceId"}],sessionSourceId:[{targetKind:i.GL.Session,targetField:"traceSourceId"}],metricSourceId:[{targetKind:i.GL.Metric,targetField:"logSourceId"}]},[i.GL.Session]:{traceSourceId:[{targetKind:i.GL.Trace,targetField:"sessionSourceId"}]},[i.GL.Metric]:{logSourceId:[{targetKind:i.GL.Log,targetField:"metricSourceId"}]}};function ey(e){let t,a,s,l,o,i,p,b,f,g,j,y=(0,r.c)(22),{label:S,children:v,helpText:w}=e;return y[0]===Symbol.for("react.memo_cache_sentinel")?(t={maxWidth:220,minWidth:220,height:"36px"},y[0]=t):t=y[0],y[1]!==S?(a="string"==typeof S?(0,n.jsx)(c.E,{tt:"capitalize",size:"sm",children:S}):S,y[1]=S,y[2]=a):a=y[2],y[3]!==a?(s=(0,n.jsx)(d.B,{justify:"center",style:t,children:a}),y[3]=a,y[4]=s):s=y[4],y[5]!==w?(l={...!w?{opacity:0,pointerEvents:"none"}:{}},y[5]=w,y[6]=l):l=y[6],y[7]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)(z.A,{size:20,className:"cursor-pointer"}),y[7]=o):o=y[7],y[8]!==w?(i=(0,n.jsx)(m.m,{label:w,color:"dark",c:"white",multiline:!0,maw:600,children:o}),y[8]=w,y[9]=i):i=y[9],y[10]!==l||y[11]!==i?(p=(0,n.jsx)(u.o,{me:"sm",ms:"sm",style:l,children:i}),y[10]=l,y[11]=i,y[12]=p):p=y[12],y[13]!==s||y[14]!==p?(b=(0,n.jsxs)(h.s,{align:"center",children:[s,p]}),y[13]=s,y[14]=p,y[15]=b):b=y[15],y[16]===Symbol.for("react.memo_cache_sentinel")?(f={minWidth:0},y[16]=f):f=y[16],y[17]!==v?(g=(0,n.jsx)(x.a,{w:"100%",style:f,children:v}),y[17]=v,y[18]=g):g=y[18],y[19]!==g||y[20]!==b?(j=(0,n.jsxs)(h.s,{align:"flex-start",children:[b,g]}),y[19]=g,y[20]=b,y[21]=j):j=y[21],j}function eS(e){let t,a,i,d,u,x,f,g,j,y,S,v,w,C,_,$,k,I,F,H,V,D,M,Z,q,O,G=(0,r.c)(75),{id:B,index:R,control:P,databaseName:Y,name:K,tableName:W,connectionId:X,removeHighlightedAttribute:U}=e,Q=`${K}.${R}.sqlExpression`;G[0]!==P||G[1]!==Q?(t={control:P,name:Q},G[0]=P,G[1]=Q,G[2]=t):t=G[2];let J=(0,l.FH)(t),ee=`${K}.${R}.alias`;G[3]!==P||G[4]!==ee?(a={control:P,name:ee},G[3]=P,G[4]=ee,G[5]=a):a=G[5];let et=(0,l.FH)(a),[ea,en]=(0,s.useState)();G[6]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{en(e)},G[6]=i):i=G[6];let er=(0,E.Y)(i,1e3);G[7]!==et||G[8]!==J||G[9]!==er?(d=()=>{er({expression:J,alias:et})},G[7]=et,G[8]=J,G[9]=er,G[10]=d):d=G[10],G[11]!==et||G[12]!==J?(u=[J,et],G[11]=et,G[12]=J,G[13]=u):u=G[13],(0,N.C)(d,u),G[14]!==Y||G[15]!==W?(x={databaseName:Y,tableName:W},G[14]=Y,G[15]=W,G[16]=x):x=G[16];let es=ea?.alias,el=ea?.expression??"";G[17]!==el||G[18]!==es?(f=[{alias:es,valueExpression:el}],G[17]=el,G[18]=es,G[19]=f):f=G[19],G[20]!==X||G[21]!==f||G[22]!==x?(g={from:x,connection:X,select:f,where:""},G[20]=X,G[21]=f,G[22]=x,G[23]=g):g=G[23];let eo=!!ea?.expression;G[24]!==eo?(j={enabled:eo},G[24]=eo,G[25]=j):j=G[25];let{data:ei,error:ec,isLoading:ed}=(0,L.R)(g,j);G[26]!==et||G[27]!==J?(y=()=>{en({expression:J,alias:et})},G[26]=et,G[27]=J,G[28]=y):y=G[28];let eu=y,ex=!!ei?.length,eb=ec instanceof o.p1,ef=ea?.expression===J&&ea?.alias===et&&(ex||eb);G[29]===Symbol.for("react.memo_cache_sentinel")?(S={display:"contents"},G[29]=S):S=G[29];let eg=`${K}.${R}.sqlExpression`;G[30]!==X||G[31]!==Y||G[32]!==W?(v={databaseName:Y,tableName:W,connectionId:X},G[30]=X,G[31]=Y,G[32]=W,G[33]=v):v=G[33];let ej=`${K}.${R}.sqlExpression`;G[34]!==P||G[35]!==v||G[36]!==ej?(w=(0,n.jsx)(ep.Z,{tableConnection:v,control:P,name:ej,disableKeywordAutocomplete:!0,placeholder:"ResourceAttributes['http.host']"}),G[34]=P,G[35]=v,G[36]=ej,G[37]=w):w=G[37],G[38]!==eg||G[39]!==w?(C=(0,n.jsx)(p.x.Col,{span:3,pe:0,children:(0,n.jsx)("div",{style:S,"data-name":eg,children:w})}),G[38]=eg,G[39]=w,G[40]=C):C=G[40],G[41]===Symbol.for("react.memo_cache_sentinel")?(_=(0,n.jsx)(c.E,{c:"gray",children:"AS"}),G[41]=_):_=G[41];let ey=`${K}.${R}.alias`;G[42]!==P||G[43]!==ey?($=(0,n.jsx)(ep.Z,{control:P,name:ey,placeholder:"Optional Alias",disableKeywordAutocomplete:!0}),G[42]=P,G[43]=ey,G[44]=$):$=G[44];let eS=!J||ed;G[45]===Symbol.for("react.memo_cache_sentinel")?(k=(0,n.jsx)(T.A,{size:16}),G[45]=k):k=G[45],G[46]!==ed||G[47]!==eu||G[48]!==eS?(I=(0,n.jsx)(m.m,{label:"Validate expression",children:(0,n.jsx)(b.M,{size:"xs",variant:"subtle",color:"gray",loading:ed,disabled:eS,onClick:eu,children:k})}),G[46]=ed,G[47]=eu,G[48]=eS,G[49]=I):I=G[49],G[50]!==R||G[51]!==U?(F=()=>U(R),G[50]=R,G[51]=U,G[52]=F):F=G[52],G[53]===Symbol.for("react.memo_cache_sentinel")?(H=(0,n.jsx)(A.A,{size:16}),G[53]=H):H=G[53],G[54]!==F?(V=(0,n.jsx)(b.M,{size:"xs",variant:"subtle",color:"gray",onClick:F,children:H}),G[54]=F,G[55]=V):V=G[55],G[56]!==$||G[57]!==I||G[58]!==V?(D=(0,n.jsx)(p.x.Col,{span:2,ps:"xs",children:(0,n.jsxs)(h.s,{align:"center",gap:"sm",children:[_,$,I,V]})}),G[56]=$,G[57]=I,G[58]=V,G[59]=D):D=G[59],G[60]!==ec?.message||G[61]!==eb||G[62]!==ex||G[63]!==ef?(M=ef&&(0,n.jsxs)(p.x.Col,{span:5,pe:0,pt:0,children:[ex&&(0,n.jsx)(c.E,{c:"green",size:"xs",children:"Expression is valid."}),eb&&(0,n.jsx)(em,{summary:"Expression is invalid",details:ec?.message})]}),G[60]=ec?.message,G[61]=eb,G[62]=ex,G[63]=ef,G[64]=M):M=G[64];let ev=`${K}.${R}.luceneExpression`;return G[65]!==P||G[66]!==ev?(Z=(0,n.jsx)(p.x.Col,{span:3,pe:0,children:(0,n.jsx)(eh.t4,{control:P,name:ev,placeholder:"ResourceAttributes.http.host (Optional) "})}),G[65]=P,G[66]=ev,G[67]=Z):Z=G[67],G[68]===Symbol.for("react.memo_cache_sentinel")?(q=(0,n.jsx)(p.x.Col,{span:1,pe:0,children:(0,n.jsx)(c.E,{me:"sm",mt:6,children:(0,n.jsx)(m.m,{label:"An optional, Lucene version of the above expression. If provided, it is used when searching for this attribute value.",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer"})})})}),G[68]=q):q=G[68],G[69]!==B||G[70]!==C||G[71]!==D||G[72]!==M||G[73]!==Z?(O=(0,n.jsxs)(s.Fragment,{children:[C,D,M,Z,q]},B),G[69]=B,G[70]=C,G[71]=D,G[72]=M,G[73]=Z,G[74]=O):O=G[74],O}function ev(e){let t,a,s,o,i,c,d,m,u,h,x=(0,r.c)(37),{control:b,name:g,label:j,helpText:y}=e;x[0]!==b?(t={control:b,name:"from.databaseName",defaultValue:eb},x[0]=b,x[1]=t):t=x[1];let S=(0,l.FH)(t);x[2]!==b?(a={control:b,name:"from.tableName"},x[2]=b,x[3]=a):a=x[3];let v=(0,l.FH)(a);x[4]!==b?(s={control:b,name:"connection"},x[4]=b,x[5]=s):s=x[5];let w=(0,l.FH)(s);x[6]!==b||x[7]!==g?(o={control:b,name:g},x[6]=b,x[7]=g,x[8]=o):o=x[8];let{fields:C,append:E,remove:N}=(0,l.jz)(o);if(x[9]!==w||x[10]!==b||x[11]!==S||x[12]!==C||x[13]!==g||x[14]!==N||x[15]!==v){let e;x[17]!==w||x[18]!==b||x[19]!==S||x[20]!==g||x[21]!==N||x[22]!==v?(e=(e,t)=>{let{id:a}=e;return(0,n.jsx)(eS,{id:a,index:t,name:g,control:b,databaseName:S,tableName:v,connectionId:w,removeHighlightedAttribute:N},a)},x[17]=w,x[18]=b,x[19]=S,x[20]=g,x[21]=N,x[22]=v,x[23]=e):e=x[23],i=C.map(e),x[9]=w,x[10]=b,x[11]=S,x[12]=C,x[13]=g,x[14]=N,x[15]=v,x[16]=i}else i=x[16];x[24]!==i?(c=(0,n.jsx)(p.x,{columns:5,children:i}),x[24]=i,x[25]=c):c=x[25];let _=C.length?"sm":"md";return x[26]!==E?(d=()=>{E({sqlExpression:"",luceneExpression:"",alias:""},{shouldFocus:!1})},x[26]=E,x[27]=d):d=x[27],x[28]===Symbol.for("react.memo_cache_sentinel")?(m=(0,n.jsx)($.A,{size:14,className:"me-2"}),x[28]=m):m=x[28],x[29]!==_||x[30]!==d?(u=(0,n.jsxs)(f.$,{variant:"secondary",size:"sm",className:"align-self-start",mt:_,onClick:d,children:[m,"Add expression"]}),x[29]=_,x[30]=d,x[31]=u):u=x[31],x[32]!==y||x[33]!==j||x[34]!==u||x[35]!==c?(h=(0,n.jsxs)(ey,{label:j,helpText:y,children:[c,u]}),x[32]=y,x[33]=j,x[34]=u,x[35]=c,x[36]=h):h=x[36],h}function ew(e){let t,a,s,o,i,c,m,u=(0,r.c)(22),{control:h,setValue:x}=e;u[0]!==h?(t={control:h,name:"from.databaseName",defaultValue:eb},u[0]=h,u[1]=t):t=u[1];let p=(0,l.FH)(t);u[2]!==h?(a={control:h,name:"materializedViews"},u[2]=h,u[3]=a):a=u[3];let{fields:b,append:j,remove:y}=(0,l.jz)(a);if(u[4]!==h||u[5]!==b||u[6]!==y||u[7]!==x){let e;u[9]!==h||u[10]!==y||u[11]!==x?(e=(e,t)=>(0,n.jsx)(eC,{control:h,mvIndex:t,setValue:x,onRemove:()=>y(t)},e.id),u[9]=h,u[10]=y,u[11]=x,u[12]=e):e=u[12],s=b.map(e),u[4]=h,u[5]=b,u[6]=y,u[7]=x,u[8]=s}else s=u[8];return u[13]!==j||u[14]!==p?(o=()=>{j({databaseName:p,tableName:"",dimensionColumns:"",minGranularity:"",timestampColumn:"",aggregatedColumns:[]})},u[13]=j,u[14]=p,u[15]=o):o=u[15],u[16]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsxs)(g.Y,{children:[(0,n.jsx)($.A,{size:16}),"Add Materialized View"]}),u[16]=i):i=u[16],u[17]!==o?(c=(0,n.jsx)(f.$,{variant:"secondary",onClick:o,children:i}),u[17]=o,u[18]=c):c=u[18],u[19]!==s||u[20]!==c?(m=(0,n.jsx)(d.B,{gap:"md",children:(0,n.jsx)(ey,{label:"Materialized Views",helpText:"Configure materialized views for query optimization. These pre-aggregated views can significantly improve query performance on aggregation queries.",children:(0,n.jsxs)(d.B,{gap:"md",children:[s,c]})})}),u[19]=s,u[20]=c,u[21]=m):m=u[21],m}function eC(e){let t,a,s,o,i,u,h,f,y,S,v,w,C,E,N,_,T,$,k,I,F,H,L,V=(0,r.c)(67),{control:D,mvIndex:M,onRemove:Z,setValue:q}=e;V[0]!==D?(t={control:D,name:"connection"},V[0]=D,V[1]=t):t=V[1];let O=(0,l.FH)(t);V[2]!==D?(a={control:D,name:"from.databaseName",defaultValue:eb},V[2]=D,V[3]=a):a=V[3];let G=(0,l.FH)(a),B=`materializedViews.${M}.databaseName`;V[4]!==D||V[5]!==G||V[6]!==B?(s={control:D,name:B,defaultValue:G},V[4]=D,V[5]=G,V[6]=B,V[7]=s):s=V[7];let R=(0,l.FH)(s),P=`materializedViews.${M}.tableName`;V[8]!==D||V[9]!==P?(o={control:D,name:P,defaultValue:""},V[8]=D,V[9]=P,V[10]=o):o=V[10];let Y=(0,l.FH)(o),K=`materializedViews.${M}.databaseName`;V[11]!==O||V[12]!==D||V[13]!==K?(i=(0,n.jsx)(p.x.Col,{span:1,children:(0,n.jsx)(et,{control:D,name:K,connectionId:O})}),V[11]=O,V[12]=D,V[13]=K,V[14]=i):i=V[14];let W=`materializedViews.${M}.tableName`;V[15]!==O||V[16]!==D||V[17]!==R||V[18]!==W?(u=(0,n.jsx)(x.a,{flex:1,children:(0,n.jsx)(el,{database:R,control:D,name:W,connectionId:O})}),V[15]=O,V[16]=D,V[17]=R,V[18]=W,V[19]=u):u=V[19],V[20]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsx)(A.A,{size:16}),V[20]=h):h=V[20],V[21]!==Z?(f=(0,n.jsx)(b.M,{size:"sm",onClick:Z,children:h}),V[21]=Z,V[22]=f):f=V[22],V[23]!==u||V[24]!==f?(y=(0,n.jsx)(p.x.Col,{span:1,children:(0,n.jsxs)(g.Y,{children:[u,f]})}),V[23]=u,V[24]=f,V[25]=y):y=V[25],V[26]===Symbol.for("react.memo_cache_sentinel")?(S=(0,n.jsx)(c.E,{size:"xs",fw:500,mb:4,children:"Timestamp Column"}),V[26]=S):S=V[26],V[27]!==O||V[28]!==R||V[29]!==Y?(v={databaseName:R,tableName:Y,connectionId:O},V[27]=O,V[28]=R,V[29]=Y,V[30]=v):v=V[30];let X=`materializedViews.${M}.timestampColumn`;V[31]!==D||V[32]!==v||V[33]!==X?(w=(0,n.jsxs)(p.x.Col,{span:2,children:[S,(0,n.jsx)(ep.Z,{tableConnection:v,control:D,placeholder:"Timestamp",name:X,disableKeywordAutocomplete:!0})]}),V[31]=D,V[32]=v,V[33]=X,V[34]=w):w=V[34],V[35]===Symbol.for("react.memo_cache_sentinel")?(C=(0,n.jsxs)(c.E,{size:"xs",fw:500,mb:4,children:["Granularity",(0,n.jsx)(m.m,{label:"The granularity of the timestamp column",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"})})]}),V[35]=C):C=V[35];let U=`materializedViews.${M}.minGranularity`;V[36]!==D||V[37]!==U?(E=(0,n.jsxs)(p.x.Col,{span:1,children:[C,(0,n.jsx)(l.xI,{control:D,name:U,render:eN})]}),V[36]=D,V[37]=U,V[38]=E):E=V[38],V[39]===Symbol.for("react.memo_cache_sentinel")?(N=(0,n.jsxs)(c.E,{size:"xs",fw:500,mb:4,children:["Minimum Date",(0,n.jsx)(m.m,{label:"(Optional) The earliest date and time (in the local timezone) for which the materialized view contains data. If not provided, then HyperDX will assume that the materialized view contains data for all dates for which the source table contains data.",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"})})]}),V[39]=N):N=V[39];let Q=`materializedViews.${M}.minDate`;V[40]!==D||V[41]!==Q?(_=(0,n.jsxs)(p.x.Col,{span:1,children:[N,(0,n.jsx)(l.xI,{control:D,name:Q,render:eE})]}),V[40]=D,V[41]=Q,V[42]=_):_=V[42],V[43]!==y||V[44]!==w||V[45]!==E||V[46]!==_||V[47]!==i?(T=(0,n.jsxs)(p.x,{columns:2,flex:1,children:[i,y,w,E,_]}),V[43]=y,V[44]=w,V[45]=E,V[46]=_,V[47]=i,V[48]=T):T=V[48],V[49]===Symbol.for("react.memo_cache_sentinel")?($=(0,n.jsxs)(c.E,{size:"xs",fw:500,mb:4,children:["Dimension Columns (comma-separated)",(0,n.jsx)(m.m,{label:"Columns which are not pre-aggregated in the materialized view and can be used for filtering and grouping.",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"})})]}),V[49]=$):$=V[49],V[50]!==O||V[51]!==R||V[52]!==Y?(k={databaseName:R,tableName:Y,connectionId:O},V[50]=O,V[51]=R,V[52]=Y,V[53]=k):k=V[53];let J=`materializedViews.${M}.dimensionColumns`;return V[54]!==D||V[55]!==k||V[56]!==J?(I=(0,n.jsxs)(x.a,{children:[$,(0,n.jsx)(ep.Z,{tableConnection:k,control:D,name:J,placeholder:"ServiceName, StatusCode",disableKeywordAutocomplete:!0})]}),V[54]=D,V[55]=k,V[56]=J,V[57]=I):I=V[57],V[58]!==D||V[59]!==M||V[60]!==q?(F=(0,n.jsx)(e_,{control:D,mvIndex:M,setValue:q}),V[58]=D,V[59]=M,V[60]=q,V[61]=F):F=V[61],V[62]===Symbol.for("react.memo_cache_sentinel")?(H=(0,n.jsx)(j.c,{}),V[62]=H):H=V[62],V[63]!==T||V[64]!==I||V[65]!==F?(L=(0,n.jsxs)(d.B,{gap:"sm",children:[T,I,F,H]}),V[63]=T,V[64]=I,V[65]=F,V[66]=L):L=V[66],L}function eE(e){let{field:t}=e;return(0,n.jsx)(C.J,{...t,value:t.value?new Date(t.value):void 0,onChange:e=>t.onChange(e?e.toISOString():null),clearable:!0,highlightToday:!0,placeholder:"YYYY-MM-DD HH:mm:ss",valueFormat:"YYYY-MM-DD HH:mm:ss"})}function eN(e){let{field:t}=e;return(0,n.jsx)(y.l,{...t,data:q,placeholder:"Granularity",size:"sm"})}function e_({control:e,setValue:t,mvIndex:a}){let{fields:r,append:o,remove:d,replace:u}=(0,l.jz)({control:e,name:`materializedViews.${a}.aggregatedColumns`}),h=(0,s.useCallback)(()=>{o({sourceColumn:"",aggFn:"avg",mvColumn:""})},[o]),b=(0,l.FH)({control:e,name:"kind"}),j=(0,l.FH)({control:e,name:"connection"}),y=(0,l.FH)({control:e,name:`materializedViews.${a}.tableName`}),S=(0,l.FH)({control:e,name:`materializedViews.${a}.databaseName`}),v=(0,l.FH)({control:e,name:"from.databaseName"}),w=(0,l.FH)({control:e,name:"from.tableName"}),C=(0,s.useRef)(y),E=(0,V.Ge)();return(0,s.useEffect)(()=>{(async()=>{try{if(y!==C.current&&(C.current=y,(b===i.GL.Log||b===i.GL.Trace)&&j&&S&&y&&v&&w)){let e=await K({databaseName:S,tableName:y,connectionId:j},{databaseName:v,tableName:w,connectionId:j},E);e?(t(`materializedViews.${a}`,e),u(e.aggregatedColumns??[]),_.$e.show({color:"green",id:"mv-infer-success",message:"Partially inferred materialized view configuration from view schema."})):_.$e.show({color:"yellow",id:"mv-infer-failure",message:"Unable to infer materialized view configuration."})}}catch(e){console.error(e)}})()},[y,b,j,S,v,w,a,u,t,E]),(0,n.jsxs)(x.a,{children:[(0,n.jsxs)(c.E,{size:"xs",mb:4,children:["Pre-aggregated Columns",(0,n.jsx)(m.m,{label:"Columns which are pre-aggregated by the materialized view",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"})})]}),(0,n.jsx)(p.x,{columns:10,children:r.map((r,s)=>(0,n.jsx)(ez,{setValue:t,control:e,mvIndex:a,colIndex:s,onRemove:()=>d(s)},r.id))}),(0,n.jsx)(f.$,{size:"sm",variant:"secondary",onClick:h,mt:"lg",children:(0,n.jsxs)(g.Y,{children:[(0,n.jsx)($.A,{size:16}),"Add Column"]})})]})}function ez(e){let t,a,s,o,i,c,d,m,u,h,f,j,y,S,v,w=(0,r.c)(48),{control:C,mvIndex:E,colIndex:N,onRemove:_}=e;w[0]!==C?(t={control:C,name:"connection"},w[0]=C,w[1]=t):t=w[1];let z=(0,l.FH)(t);w[2]!==C?(a={control:C,name:"from.databaseName",defaultValue:eb},w[2]=C,w[3]=a):a=w[3];let T=(0,l.FH)(a);w[4]!==C?(s={control:C,name:"from.tableName"},w[4]=C,w[5]=s):s=w[5];let $=(0,l.FH)(s),k=`materializedViews.${E}.databaseName`;w[6]!==C||w[7]!==T||w[8]!==k?(o={control:C,name:k,defaultValue:T},w[6]=C,w[7]=T,w[8]=k,w[9]=o):o=w[9];let I=(0,l.FH)(o),F=`materializedViews.${E}.tableName`;w[10]!==C||w[11]!==F?(i={control:C,name:F},w[10]=C,w[11]=F,w[12]=i):i=w[12];let H=(0,l.FH)(i),L=`materializedViews.${E}.aggregatedColumns.${N}.aggFn`;w[13]!==C||w[14]!==L?(c={control:C,name:L},w[13]=C,w[14]=L,w[15]=c):c=w[15];let V="count"===(0,l.FH)(c),D=`materializedViews.${E}.aggregatedColumns.${N}.aggFn`;w[16]!==C||w[17]!==D?(d=(0,n.jsx)(p.x.Col,{span:2,children:(0,n.jsx)(ex.A,{control:C,name:D,data:ef,size:"sm"})}),w[16]=C,w[17]=D,w[18]=d):d=w[18],w[19]!==N||w[20]!==z||w[21]!==C||w[22]!==V||w[23]!==E||w[24]!==T||w[25]!==$?(m=!V&&(0,n.jsx)(p.x.Col,{span:4,children:(0,n.jsx)(ep.Z,{tableConnection:{databaseName:T,tableName:$,connectionId:z},control:C,name:`materializedViews.${E}.aggregatedColumns.${N}.sourceColumn`,placeholder:"Source Column",disableKeywordAutocomplete:!0})}),w[19]=N,w[20]=z,w[21]=C,w[22]=V,w[23]=E,w[24]=T,w[25]=$,w[26]=m):m=w[26];let M=V?8:4;w[27]!==z||w[28]!==I||w[29]!==H?(u={databaseName:I,tableName:H,connectionId:z},w[27]=z,w[28]=I,w[29]=H,w[30]=u):u=w[30];let Z=`materializedViews.${E}.aggregatedColumns.${N}.mvColumn`;return w[31]!==C||w[32]!==u||w[33]!==Z?(h=(0,n.jsx)(x.a,{flex:1,children:(0,n.jsx)(ep.Z,{tableConnection:u,control:C,name:Z,placeholder:"View Column",disableKeywordAutocomplete:!0})}),w[31]=C,w[32]=u,w[33]=Z,w[34]=h):h=w[34],w[35]===Symbol.for("react.memo_cache_sentinel")?(f=(0,n.jsx)(A.A,{size:16}),w[35]=f):f=w[35],w[36]!==_?(j=(0,n.jsx)(b.M,{size:"sm",onClick:_,children:f}),w[36]=_,w[37]=j):j=w[37],w[38]!==h||w[39]!==j?(y=(0,n.jsxs)(g.Y,{wrap:"nowrap",children:[h,j]}),w[38]=h,w[39]=j,w[40]=y):y=w[40],w[41]!==M||w[42]!==y?(S=(0,n.jsx)(p.x.Col,{span:M,children:y}),w[41]=M,w[42]=y,w[43]=S):S=w[43],w[44]!==d||w[45]!==m||w[46]!==S?(v=(0,n.jsxs)(n.Fragment,{children:[d,m,S]}),w[44]=d,w[45]=m,w[46]=S,w[47]=v):v=w[47],v}function eT(e){let t,a,o,i,c,m,u,h,p,b,y,v,w,C,E,N,_,z,T,A,$,F,H,L,V,D,M,Z,q,O,G,B,R,P,Y,K,W,X,U,Q,J,ee,et=(0,r.c)(129),{control:ea}=e;et[0]!==ea?(t={control:ea,name:"from.databaseName",defaultValue:eb},et[0]=ea,et[1]=t):t=et[1];let en=(0,l.FH)(t);et[2]!==ea?(a={control:ea,name:"from.tableName"},et[2]=ea,et[3]=a):a=et[3];let er=(0,l.FH)(a);et[4]!==ea?(o={control:ea,name:"connection"},et[4]=ea,et[5]=o):o=et[5];let es=(0,l.FH)(o),[el,eo]=(0,s.useState)(!1);et[6]!==es||et[7]!==en||et[8]!==er?(i={databaseName:en,tableName:er,connectionId:es},et[6]=es,et[7]=en,et[8]=er,et[9]=i):i=et[9],et[10]!==ea||et[11]!==i?(c=(0,n.jsx)(ey,{label:"Timestamp Column",helpText:"DateTime column or expression that is part of your table's primary key.",children:(0,n.jsx)(ep.Z,{tableConnection:i,control:ea,name:"timestampValueExpression",disableKeywordAutocomplete:!0})}),et[10]=ea,et[11]=i,et[12]=c):c=et[12],et[13]!==es||et[14]!==en||et[15]!==er?(m={databaseName:en,tableName:er,connectionId:es},et[13]=es,et[14]=en,et[15]=er,et[16]=m):m=et[16],et[17]!==ea||et[18]!==m?(u=(0,n.jsx)(ey,{label:"Default Select",helpText:"Default columns selected in search results (this can be customized per search later)",children:(0,n.jsx)(ep.Z,{tableConnection:m,control:ea,name:"defaultTableSelectExpression",placeholder:"Timestamp, Body"})}),et[17]=ea,et[18]=m,et[19]=u):u=et[19],et[20]!==el?(h=!el&&(0,n.jsx)(S.M,{underline:"always",onClick:()=>eo(!0),size:"xs",children:(0,n.jsxs)(g.Y,{gap:"xs",children:[(0,n.jsx)(k.A,{size:14}),"Configure Optional Fields"]})}),et[20]=el,et[21]=h):h=et[21],et[22]!==el?(p=el&&(0,n.jsx)(f.$,{onClick:()=>eo(!1),size:"xs",variant:"subtle",children:"Hide Optional Fields"}),et[22]=el,et[23]=p):p=et[23],et[24]!==h||et[25]!==p?(b=(0,n.jsxs)(x.a,{children:[h,p]}),et[24]=h,et[25]=p,et[26]=b):b=et[26],et[27]!==c||et[28]!==u||et[29]!==b?(y=(0,n.jsxs)(d.B,{gap:"sm",children:[c,u,b]}),et[27]=c,et[28]=u,et[29]=b,et[30]=y):y=et[30];let ei=el?"flex":"none";return et[31]!==ei?(v={display:ei},et[31]=ei,et[32]=v):v=et[32],et[33]===Symbol.for("react.memo_cache_sentinel")?(w=(0,n.jsx)(j.c,{}),et[33]=w):w=et[33],et[34]!==es||et[35]!==en||et[36]!==er?(C={databaseName:en,tableName:er,connectionId:es},et[34]=es,et[35]=en,et[36]=er,et[37]=C):C=et[37],et[38]!==ea||et[39]!==C?(E=(0,n.jsx)(ey,{label:"Service Name Expression",children:(0,n.jsx)(ep.Z,{tableConnection:C,control:ea,name:"serviceNameExpression",placeholder:"ServiceName"})}),et[38]=ea,et[39]=C,et[40]=E):E=et[40],et[41]!==es||et[42]!==en||et[43]!==er?(N={databaseName:en,tableName:er,connectionId:es},et[41]=es,et[42]=en,et[43]=er,et[44]=N):N=et[44],et[45]!==ea||et[46]!==N?(_=(0,n.jsx)(ey,{label:"Log Level Expression",children:(0,n.jsx)(ep.Z,{tableConnection:N,control:ea,name:"severityTextExpression",placeholder:"SeverityText"})}),et[45]=ea,et[46]=N,et[47]=_):_=et[47],et[48]!==es||et[49]!==en||et[50]!==er?(z={databaseName:en,tableName:er,connectionId:es},et[48]=es,et[49]=en,et[50]=er,et[51]=z):z=et[51],et[52]!==ea||et[53]!==z?(T=(0,n.jsx)(ey,{label:"Body Expression",children:(0,n.jsx)(ep.Z,{tableConnection:z,control:ea,name:"bodyExpression",placeholder:"Body"})}),et[52]=ea,et[53]=z,et[54]=T):T=et[54],et[55]!==es||et[56]!==en||et[57]!==er?(A={databaseName:en,tableName:er,connectionId:es},et[55]=es,et[56]=en,et[57]=er,et[58]=A):A=et[58],et[59]!==ea||et[60]!==A?($=(0,n.jsx)(ey,{label:"Log Attributes Expression",children:(0,n.jsx)(ep.Z,{tableConnection:A,control:ea,name:"eventAttributesExpression",placeholder:"LogAttributes"})}),et[59]=ea,et[60]=A,et[61]=$):$=et[61],et[62]!==es||et[63]!==en||et[64]!==er?(F={databaseName:en,tableName:er,connectionId:es},et[62]=es,et[63]=en,et[64]=er,et[65]=F):F=et[65],et[66]!==ea||et[67]!==F?(H=(0,n.jsx)(ey,{label:"Resource Attributes Expression",children:(0,n.jsx)(ep.Z,{tableConnection:F,control:ea,name:"resourceAttributesExpression",placeholder:"ResourceAttributes"})}),et[66]=ea,et[67]=F,et[68]=H):H=et[68],et[69]!==es||et[70]!==en||et[71]!==er?(L={databaseName:en,tableName:er,connectionId:es},et[69]=es,et[70]=en,et[71]=er,et[72]=L):L=et[72],et[73]!==ea||et[74]!==L?(V=(0,n.jsx)(ey,{label:"Displayed Timestamp Column",helpText:"This DateTime column is used to display and order search results.",children:(0,n.jsx)(ep.Z,{tableConnection:L,control:ea,name:"displayedTimestampValueExpression",disableKeywordAutocomplete:!0})}),et[73]=ea,et[74]=L,et[75]=V):V=et[75],et[76]===Symbol.for("react.memo_cache_sentinel")?(D=(0,n.jsx)(j.c,{}),et[76]=D):D=et[76],et[77]!==ea?(M=(0,n.jsx)(ey,{label:"Correlated Metric Source",helpText:"HyperDX Source for metrics associated with logs. Optional",children:(0,n.jsx)(I.W,{control:ea,name:"metricSourceId"})}),et[77]=ea,et[78]=M):M=et[78],et[79]!==ea?(Z=(0,n.jsx)(ey,{label:"Correlated Trace Source",helpText:"HyperDX Source for traces associated with logs. Optional",children:(0,n.jsx)(I.W,{control:ea,name:"traceSourceId"})}),et[79]=ea,et[80]=Z):Z=et[80],et[81]!==es||et[82]!==en||et[83]!==er?(q={databaseName:en,tableName:er,connectionId:es},et[81]=es,et[82]=en,et[83]=er,et[84]=q):q=et[84],et[85]!==ea||et[86]!==q?(O=(0,n.jsx)(ey,{label:"Trace Id Expression",children:(0,n.jsx)(ep.Z,{tableConnection:q,control:ea,name:"traceIdExpression",placeholder:"TraceId"})}),et[85]=ea,et[86]=q,et[87]=O):O=et[87],et[88]!==es||et[89]!==en||et[90]!==er?(G={databaseName:en,tableName:er,connectionId:es},et[88]=es,et[89]=en,et[90]=er,et[91]=G):G=et[91],et[92]!==ea||et[93]!==G?(B=(0,n.jsx)(ey,{label:"Span Id Expression",children:(0,n.jsx)(ep.Z,{tableConnection:G,control:ea,name:"spanIdExpression",placeholder:"SpanId"})}),et[92]=ea,et[93]=G,et[94]=B):B=et[94],et[95]===Symbol.for("react.memo_cache_sentinel")?(R=(0,n.jsx)(j.c,{}),et[95]=R):R=et[95],et[96]!==es||et[97]!==en||et[98]!==er?(P={databaseName:en,tableName:er,connectionId:es},et[96]=es,et[97]=en,et[98]=er,et[99]=P):P=et[99],et[100]!==ea||et[101]!==P?(Y=(0,n.jsx)(ey,{label:"Implicit Column Expression",helpText:"Column used for full text search if no property is specified in a Lucene-based search. Typically the message body of a log.",children:(0,n.jsx)(ep.Z,{tableConnection:P,control:ea,name:"implicitColumnExpression",placeholder:"Body"})}),et[100]=ea,et[101]=P,et[102]=Y):Y=et[102],et[103]===Symbol.for("react.memo_cache_sentinel")?(K=(0,n.jsx)(j.c,{}),et[103]=K):K=et[103],et[104]!==e?(W=(0,n.jsx)(ev,{...e,name:"highlightedRowAttributeExpressions",label:"Highlighted Attributes",helpText:"Expressions defining row-level attributes which are displayed in the row side panel for the selected row."}),X=(0,n.jsx)(ev,{...e,name:"highlightedTraceAttributeExpressions",label:"Highlighted Trace Attributes",helpText:"Expressions defining trace-level attributes which are displayed in the trace view for the selected trace."}),et[104]=e,et[105]=W,et[106]=X):(W=et[105],X=et[106]),et[107]===Symbol.for("react.memo_cache_sentinel")?(U=(0,n.jsx)(j.c,{}),et[107]=U):U=et[107],et[108]!==e?(Q=(0,n.jsx)(ew,{...e}),et[108]=e,et[109]=Q):Q=et[109],et[110]!==v||et[111]!==E||et[112]!==_||et[113]!==T||et[114]!==$||et[115]!==H||et[116]!==V||et[117]!==M||et[118]!==Z||et[119]!==O||et[120]!==B||et[121]!==Y||et[122]!==W||et[123]!==X||et[124]!==Q?(J=(0,n.jsxs)(d.B,{gap:"sm",style:v,children:[w,E,_,T,$,H,V,D,M,Z,O,B,R,Y,K,W,X,U,Q]}),et[110]=v,et[111]=E,et[112]=_,et[113]=T,et[114]=$,et[115]=H,et[116]=V,et[117]=M,et[118]=Z,et[119]=O,et[120]=B,et[121]=Y,et[122]=W,et[123]=X,et[124]=Q,et[125]=J):J=et[125],et[126]!==y||et[127]!==J?(ee=(0,n.jsxs)(n.Fragment,{children:[y,J]}),et[126]=y,et[127]=J,et[128]=ee):ee=et[128],ee}function eA(e){let t,a,s,o,i,c,m,u,h,p,b,f,g,y,S,v,w,C,E,N,_,z,T,A,$,k,F,H,L,V,D,M,Z,q,O,G,B,R,P,Y,K,W,X,U,Q,J,ee,et=(0,r.c)(159),{control:ea}=e;et[0]!==ea?(t={control:ea,name:"from.databaseName",defaultValue:eb},et[0]=ea,et[1]=t):t=et[1];let en=(0,l.FH)(t);et[2]!==ea?(a={control:ea,name:"from.tableName"},et[2]=ea,et[3]=a):a=et[3];let er=(0,l.FH)(a);et[4]!==ea?(s={control:ea,name:"connection"},et[4]=ea,et[5]=s):s=et[5];let es=(0,l.FH)(s);return et[6]!==es||et[7]!==en||et[8]!==er?(o={databaseName:en,tableName:er,connectionId:es},et[6]=es,et[7]=en,et[8]=er,et[9]=o):o=et[9],et[10]!==ea||et[11]!==o?(i=(0,n.jsx)(ey,{label:"Timestamp Column",helpText:"DateTime column or expression defines the start of the span",children:(0,n.jsx)(ep.Z,{tableConnection:o,control:ea,name:"timestampValueExpression",placeholder:"Timestamp",disableKeywordAutocomplete:!0})}),et[10]=ea,et[11]=o,et[12]=i):i=et[12],et[13]!==es||et[14]!==en||et[15]!==er?(c={databaseName:en,tableName:er,connectionId:es},et[13]=es,et[14]=en,et[15]=er,et[16]=c):c=et[16],et[17]!==ea||et[18]!==c?(m=(0,n.jsx)(ey,{label:"Default Select",helpText:"Default columns selected in search results (this can be customized per search later)",children:(0,n.jsx)(ep.Z,{tableConnection:c,control:ea,name:"defaultTableSelectExpression",placeholder:"Timestamp, ServiceName, StatusCode, Duration, SpanName"})}),et[17]=ea,et[18]=c,et[19]=m):m=et[19],et[20]===Symbol.for("react.memo_cache_sentinel")?(u=(0,n.jsx)(j.c,{}),et[20]=u):u=et[20],et[21]!==es||et[22]!==en||et[23]!==er?(h={databaseName:en,tableName:er,connectionId:es},et[21]=es,et[22]=en,et[23]=er,et[24]=h):h=et[24],et[25]!==ea||et[26]!==h?(p=(0,n.jsx)(ey,{label:"Duration Expression",children:(0,n.jsx)(ep.Z,{tableConnection:h,control:ea,name:"durationExpression",placeholder:"Duration Column"})}),et[25]=ea,et[26]=h,et[27]=p):p=et[27],et[28]!==ea?(b=(0,n.jsx)(ey,{label:"Duration Precision",children:(0,n.jsx)(x.a,{mx:"xl",children:(0,n.jsx)(l.xI,{control:ea,name:"durationPrecision",render:e$})})}),et[28]=ea,et[29]=b):b=et[29],et[30]!==es||et[31]!==en||et[32]!==er?(f={databaseName:en,tableName:er,connectionId:es},et[30]=es,et[31]=en,et[32]=er,et[33]=f):f=et[33],et[34]!==ea||et[35]!==f?(g=(0,n.jsx)(ey,{label:"Trace Id Expression",children:(0,n.jsx)(ep.Z,{tableConnection:f,control:ea,name:"traceIdExpression",placeholder:"TraceId"})}),et[34]=ea,et[35]=f,et[36]=g):g=et[36],et[37]!==es||et[38]!==en||et[39]!==er?(y={databaseName:en,tableName:er,connectionId:es},et[37]=es,et[38]=en,et[39]=er,et[40]=y):y=et[40],et[41]!==ea||et[42]!==y?(S=(0,n.jsx)(ey,{label:"Span Id Expression",children:(0,n.jsx)(ep.Z,{tableConnection:y,control:ea,name:"spanIdExpression",placeholder:"SpanId"})}),et[41]=ea,et[42]=y,et[43]=S):S=et[43],et[44]!==es||et[45]!==en||et[46]!==er?(v={databaseName:en,tableName:er,connectionId:es},et[44]=es,et[45]=en,et[46]=er,et[47]=v):v=et[47],et[48]!==ea||et[49]!==v?(w=(0,n.jsx)(ey,{label:"Parent Span Id Expression",children:(0,n.jsx)(ep.Z,{tableConnection:v,control:ea,name:"parentSpanIdExpression",placeholder:"ParentSpanId"})}),et[48]=ea,et[49]=v,et[50]=w):w=et[50],et[51]!==es||et[52]!==en||et[53]!==er?(C={databaseName:en,tableName:er,connectionId:es},et[51]=es,et[52]=en,et[53]=er,et[54]=C):C=et[54],et[55]!==ea||et[56]!==C?(E=(0,n.jsx)(ey,{label:"Span Name Expression",children:(0,n.jsx)(ep.Z,{tableConnection:C,control:ea,name:"spanNameExpression",placeholder:"SpanName"})}),et[55]=ea,et[56]=C,et[57]=E):E=et[57],et[58]!==es||et[59]!==en||et[60]!==er?(N={databaseName:en,tableName:er,connectionId:es},et[58]=es,et[59]=en,et[60]=er,et[61]=N):N=et[61],et[62]!==ea||et[63]!==N?(_=(0,n.jsx)(ey,{label:"Span Kind Expression",children:(0,n.jsx)(ep.Z,{tableConnection:N,control:ea,name:"spanKindExpression",placeholder:"SpanKind"})}),et[62]=ea,et[63]=N,et[64]=_):_=et[64],et[65]===Symbol.for("react.memo_cache_sentinel")?(z=(0,n.jsx)(j.c,{}),et[65]=z):z=et[65],et[66]!==ea?(T=(0,n.jsx)(ey,{label:"Correlated Log Source",helpText:"HyperDX Source for logs associated with traces. Optional",children:(0,n.jsx)(I.W,{control:ea,name:"logSourceId"})}),et[66]=ea,et[67]=T):T=et[67],et[68]!==ea?(A=(0,n.jsx)(ey,{label:"Correlated Session Source",helpText:"HyperDX Source for sessions associated with traces. Optional",children:(0,n.jsx)(I.W,{control:ea,name:"sessionSourceId"})}),et[68]=ea,et[69]=A):A=et[69],et[70]!==ea?($=(0,n.jsx)(ey,{label:"Correlated Metric Source",helpText:"HyperDX Source for metrics associated with traces. Optional",children:(0,n.jsx)(I.W,{control:ea,name:"metricSourceId"})}),et[70]=ea,et[71]=$):$=et[71],et[72]!==es||et[73]!==en||et[74]!==er?(k={databaseName:en,tableName:er,connectionId:es},et[72]=es,et[73]=en,et[74]=er,et[75]=k):k=et[75],et[76]!==ea||et[77]!==k?(F=(0,n.jsx)(ey,{label:"Status Code Expression",children:(0,n.jsx)(ep.Z,{tableConnection:k,control:ea,name:"statusCodeExpression",placeholder:"StatusCode"})}),et[76]=ea,et[77]=k,et[78]=F):F=et[78],et[79]!==es||et[80]!==en||et[81]!==er?(H={databaseName:en,tableName:er,connectionId:es},et[79]=es,et[80]=en,et[81]=er,et[82]=H):H=et[82],et[83]!==ea||et[84]!==H?(L=(0,n.jsx)(ey,{label:"Status Message Expression",children:(0,n.jsx)(ep.Z,{tableConnection:H,control:ea,name:"statusMessageExpression",placeholder:"StatusMessage"})}),et[83]=ea,et[84]=H,et[85]=L):L=et[85],et[86]!==es||et[87]!==en||et[88]!==er?(V={databaseName:en,tableName:er,connectionId:es},et[86]=es,et[87]=en,et[88]=er,et[89]=V):V=et[89],et[90]!==ea||et[91]!==V?(D=(0,n.jsx)(ey,{label:"Service Name Expression",children:(0,n.jsx)(ep.Z,{tableConnection:V,control:ea,name:"serviceNameExpression",placeholder:"ServiceName"})}),et[90]=ea,et[91]=V,et[92]=D):D=et[92],et[93]!==es||et[94]!==en||et[95]!==er?(M={databaseName:en,tableName:er,connectionId:es},et[93]=es,et[94]=en,et[95]=er,et[96]=M):M=et[96],et[97]!==ea||et[98]!==M?(Z=(0,n.jsx)(ey,{label:"Resource Attributes Expression",children:(0,n.jsx)(ep.Z,{tableConnection:M,control:ea,name:"resourceAttributesExpression",placeholder:"ResourceAttributes"})}),et[97]=ea,et[98]=M,et[99]=Z):Z=et[99],et[100]!==es||et[101]!==en||et[102]!==er?(q={databaseName:en,tableName:er,connectionId:es},et[100]=es,et[101]=en,et[102]=er,et[103]=q):q=et[103],et[104]!==ea||et[105]!==q?(O=(0,n.jsx)(ey,{label:"Event Attributes Expression",children:(0,n.jsx)(ep.Z,{tableConnection:q,control:ea,name:"eventAttributesExpression",placeholder:"SpanAttributes"})}),et[104]=ea,et[105]=q,et[106]=O):O=et[106],et[107]!==es||et[108]!==en||et[109]!==er?(G={databaseName:en,tableName:er,connectionId:es},et[107]=es,et[108]=en,et[109]=er,et[110]=G):G=et[110],et[111]!==ea||et[112]!==G?(B=(0,n.jsx)(ey,{label:"Span Events Expression",helpText:"Expression to extract span events. Used to capture events associated with spans. Expected to be Nested ( Timestamp DateTime64(9), Name LowCardinality(String), Attributes Map(LowCardinality(String), String)",children:(0,n.jsx)(ep.Z,{tableConnection:G,control:ea,name:"spanEventsValueExpression",placeholder:"Events"})}),et[111]=ea,et[112]=G,et[113]=B):B=et[113],et[114]!==es||et[115]!==en||et[116]!==er?(R={databaseName:en,tableName:er,connectionId:es},et[114]=es,et[115]=en,et[116]=er,et[117]=R):R=et[117],et[118]!==ea||et[119]!==R?(P=(0,n.jsx)(ey,{label:"Implicit Column Expression",helpText:"Column used for full text search if no property is specified in a Lucene-based search. Typically the message body of a log.",children:(0,n.jsx)(ep.Z,{tableConnection:R,control:ea,name:"implicitColumnExpression",placeholder:"SpanName"})}),et[118]=ea,et[119]=R,et[120]=P):P=et[120],et[121]!==es||et[122]!==en||et[123]!==er?(Y={databaseName:en,tableName:er,connectionId:es},et[121]=es,et[122]=en,et[123]=er,et[124]=Y):Y=et[124],et[125]!==ea||et[126]!==Y?(K=(0,n.jsx)(ey,{label:"Displayed Timestamp Column",helpText:"This DateTime column is used to display and order search results.",children:(0,n.jsx)(ep.Z,{tableConnection:Y,control:ea,name:"displayedTimestampValueExpression",disableKeywordAutocomplete:!0})}),et[125]=ea,et[126]=Y,et[127]=K):K=et[127],et[128]===Symbol.for("react.memo_cache_sentinel")?(W=(0,n.jsx)(j.c,{}),et[128]=W):W=et[128],et[129]!==e?(X=(0,n.jsx)(ev,{...e,name:"highlightedRowAttributeExpressions",label:"Highlighted Attributes",helpText:"Expressions defining row-level attributes which are displayed in the row side panel for the selected row"}),U=(0,n.jsx)(ev,{...e,name:"highlightedTraceAttributeExpressions",label:"Highlighted Trace Attributes",helpText:"Expressions defining trace-level attributes which are displayed in the trace view for the selected trace."}),et[129]=e,et[130]=X,et[131]=U):(X=et[130],U=et[131]),et[132]===Symbol.for("react.memo_cache_sentinel")?(Q=(0,n.jsx)(j.c,{}),et[132]=Q):Q=et[132],et[133]!==e?(J=(0,n.jsx)(ew,{...e}),et[133]=e,et[134]=J):J=et[134],et[135]!==b||et[136]!==g||et[137]!==S||et[138]!==w||et[139]!==E||et[140]!==_||et[141]!==T||et[142]!==A||et[143]!==$||et[144]!==F||et[145]!==L||et[146]!==D||et[147]!==Z||et[148]!==O||et[149]!==B||et[150]!==P||et[151]!==i||et[152]!==K||et[153]!==X||et[154]!==U||et[155]!==J||et[156]!==m||et[157]!==p?(ee=(0,n.jsxs)(d.B,{gap:"sm",children:[i,m,u,p,b,g,S,w,E,_,z,T,A,$,F,L,D,Z,O,B,P,K,W,X,U,Q,J]}),et[135]=b,et[136]=g,et[137]=S,et[138]=w,et[139]=E,et[140]=_,et[141]=T,et[142]=A,et[143]=$,et[144]=F,et[145]=L,et[146]=D,et[147]=Z,et[148]=O,et[149]=B,et[150]=P,et[151]=i,et[152]=K,et[153]=X,et[154]=U,et[155]=J,et[156]=m,et[157]=p,et[158]=ee):ee=et[158],ee}function e$(e){let{field:t}=e,{onChange:a,value:r}=t;return(0,n.jsx)("div",{style:{width:"90%",marginBottom:8},children:(0,n.jsx)(v.A,{color:"green",defaultValue:0,min:0,max:9,marks:[{value:0,label:"Seconds"},{value:3,label:"Millisecond"},{value:6,label:"Microsecond"},{value:9,label:"Nanosecond"}],value:r,onChange:a})})}function ek({control:e}){let t=(0,l.FH)({control:e,name:"from.databaseName",defaultValue:eb}),a=(0,l.FH)({control:e,name:"connection"}),r=(0,l.FH)({control:e,name:"from.tableName"}),o=(0,s.useRef)(r),i=(0,V.Ge)();return(0,s.useEffect)(()=>{(async()=>{try{r&&r!==o.current&&(o.current=r,await (0,D.Al)({databaseName:t,tableName:r,connectionId:a,metadata:i})||_.$e.show({color:"red",message:`${r} is not a valid Sessions schema.`}))}catch(e){console.error(e),_.$e.show({color:"red",message:e.message})}})()},[r,t,a,i]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(d.B,{gap:"sm",children:[(0,n.jsx)(ey,{label:"Correlated Trace Source",helpText:"HyperDX Source for traces associated with sessions. Required",children:(0,n.jsx)(I.W,{control:e,name:"traceSourceId"})}),(0,n.jsx)(ey,{label:"Timestamp Column",helpText:"DateTime column or expression that is part of your table's primary key.",children:(0,n.jsx)(ep.Z,{tableConnection:{databaseName:t,tableName:r,connectionId:a},control:e,name:"timestampValueExpression",disableKeywordAutocomplete:!0})})]})})}function eI({control:e,setValue:t}){let a=(0,l.FH)({control:e,name:"from.databaseName",defaultValue:eb}),r=(0,l.FH)({control:e,name:"connection"}),o=(0,l.FH)({control:e,name:"metricTables"}),c=(0,s.useRef)(o),m=(0,V.Ge)();return(0,s.useEffect)(()=>{for(let[e,a]of Object.entries(eg))t(e,a)},[t]),(0,s.useEffect)(()=>{(async()=>{try{if(o&&c.current)for(let e of Object.values(i.SX)){let t=o[e],n=c.current[e];t!==n&&(await (0,D.fS)({databaseName:a,tableName:t,connectionId:r,metricType:e,metadata:m})||_.$e.show({color:"red",message:`${t} is not a valid OTEL ${e} schema.`}))}c.current=o}catch(e){console.error(e),_.$e.show({color:"red",message:e.message})}})()},[o,a,r,m]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(d.B,{gap:"sm",children:[Object.values(i.SX).map(t=>(0,n.jsx)(ey,{label:`${t} Table`,helpText:t===i.SX.ExponentialHistogram||t===i.SX.Summary?`Table containing ${t.toLowerCase()} metrics data. Note: not yet fully supported by HyperDX`:`Table containing ${t.toLowerCase()} metrics data`,children:(0,n.jsx)(el,{connectionId:r,database:a,control:e,name:`metricTables.${t.toLowerCase()}`})},t.toLowerCase())),(0,n.jsx)(ey,{label:"Correlated Log Source",helpText:"HyperDX Source for logs associated with metrics. Optional",children:(0,n.jsx)(I.W,{control:e,name:"logSourceId"})})]})})}function eF(e){let t=(0,r.c)(12),{control:a,setValue:s,kind:l}=e;switch(l){case i.GL.Log:{let e;return t[0]!==a||t[1]!==s?(e=(0,n.jsx)(eT,{control:a,setValue:s}),t[0]=a,t[1]=s,t[2]=e):e=t[2],e}case i.GL.Trace:{let e;return t[3]!==a||t[4]!==s?(e=(0,n.jsx)(eA,{control:a,setValue:s}),t[3]=a,t[4]=s,t[5]=e):e=t[5],e}case i.GL.Session:{let e;return t[6]!==a||t[7]!==s?(e=(0,n.jsx)(ek,{control:a,setValue:s}),t[6]=a,t[7]=s,t[8]=e):e=t[8],e}case i.GL.Metric:{let e;return t[9]!==a||t[10]!==s?(e=(0,n.jsx)(eI,{control:a,setValue:s}),t[9]=a,t[10]=s,t[11]=e):e=t[11],e}}}function eH({sourceId:e,onSave:t,onCreate:a,isNew:r=!1,defaultName:o="",onCancel:m}){let{data:u}=(0,D.Fo)({id:e}),{data:x}=(0,H.ZY)(),{control:j,setValue:y,handleSubmit:v,resetField:C,setError:E,clearErrors:N}=(0,l.mN)({defaultValues:{kind:i.GL.Log,name:o,connection:x?.[0]?.id,from:{databaseName:"default",tableName:""},querySettings:u?.querySettings},values:u,resetOptions:{keepDirtyValues:!0,keepErrors:!0}}),z=(0,l.FH)({control:j,name:"connection",defaultValue:u?.connection}),T=(0,l.FH)({control:j,name:"from.databaseName",defaultValue:u?.from?.databaseName||eb}),k=(0,l.FH)({control:j,name:"from.tableName",defaultValue:u?.from?.tableName}),I=(0,l.FH)({control:j,name:"kind",defaultValue:u?.kind||i.GL.Log}),L=(0,s.useRef)(k),M=(0,V.Ge)();(0,s.useEffect)(()=>{(async()=>{try{if(k!==L.current&&(L.current=k,null!=z&&null!=T&&(I===i.GL.Metric||null!=k))){let e=await (0,D.Ys)({databaseName:T,tableName:I!==i.GL.Metric?k:"",connectionId:z,metadata:M});Object.keys(e).length>0&&_.$e.show({color:"green",message:"Automatically inferred source configuration from table schema."}),Object.entries(e).forEach(([e,t])=>{C(e,{keepDirty:!0,defaultValue:t})})}}catch(e){console.error(e)}})()},[k,z,T,I,C,M]),(0,s.useEffect)(()=>{C("connection",{defaultValue:x?.[0]?.id})},[x,C]);let Z=(0,l.FH)({control:j,name:"kind",defaultValue:u?.kind||i.GL.Log}),q=(0,D.nd)(),O=(0,D.sr)(),G=(0,D.YI)(),{data:B}=(0,D.oE)(),R=(0,l.FH)({control:j,name:"id"}),P=(0,l.FH)({control:j,name:"logSourceId"}),Y=(0,l.FH)({control:j,name:"traceSourceId"}),K=(0,l.FH)({control:j,name:"metricSourceId"}),U=(0,l.FH)({control:j,name:"traceSourceId"}),Q=(0,s.useRef)(P),J=(0,s.useRef)(Y),ee=(0,s.useRef)(K),ea=(0,s.useRef)(U);(0,s.useEffect)(()=>{(async()=>{if(!R||!B||!Z)return;let e=ej[Z];if(!e)return;let t=[];for(let{name:a,value:n}of(P!==Q.current&&(Q.current=P,t.push({name:"logSourceId",value:P??void 0})),Y!==J.current&&(J.current=Y,t.push({name:"traceSourceId",value:Y??void 0})),K!==ee.current&&(ee.current=K,t.push({name:"metricSourceId",value:K??void 0})),U!==ea.current&&Z===i.GL.Session&&(ea.current=U,t.push({name:"traceSourceId",value:U??void 0})),t))if(a in e)for(let{targetKind:t,targetField:r}of e[a]){let e=B.find(e=>e.kind===t&&e[r]===R);if(e&&e.id!==n&&await O.mutateAsync({source:{...e,[r]:void 0}}),n){let e=B.find(e=>e.id===n);e&&e.kind===t&&!e[r]&&await O.mutateAsync({source:{...e,[r]:R}})}}})()},[P,Y,K,U,Z,R,B,O]);let en=(0,i.z1)({id:!0}),er=(0,s.useCallback)(({errors:e},t)=>{let a=[];for(let n of(console.debug(`[${t}] SourceForm validation error`,JSON.stringify(e)),e)){let e=n.path.join(".");E(e,{...n});let t="Required"===n.message?`${e}: ${n.message}`:n.message;a.push(t)}_.$e.show({color:"red",message:(0,n.jsxs)(d.B,{children:[(0,n.jsx)(c.E,{size:"sm",children:(0,n.jsx)("b",{children:"Failed to create source"})}),a.map((e,t)=>(0,n.jsxs)(c.E,{size:"sm",children:["✖ ",e]},t))]})})},[E]),es=(0,s.useCallback)(()=>{N(),v(async e=>{let t=en.safeParse(e);t.error?er(t.error,"create"):q.mutate({source:e},{onSuccess:async e=>{let t=ej[e.kind];if(t&&B)for(let[a,n]of Object.entries(t)){let t=e[a];if(t)for(let{targetKind:a,targetField:r}of n){let n=B.find(e=>e.id===t);n&&n.kind===a&&!n[r]&&await O.mutateAsync({source:{...n,[r]:e.id}})}}a?.(e),_.$e.show({color:"green",message:"Source created"})},onError:e=>{_.$e.show({color:"red",message:`Failed to create source - ${e.message}`})}})})()},[N,er,en,v,q,a,B,O]),eo=(0,s.useCallback)(()=>{N(),v(e=>{let a=en.safeParse(e);a.error?er(a.error,"save"):O.mutate({source:e},{onSuccess:()=>{t?.(),_.$e.show({color:"green",message:"Source updated"})},onError:()=>{_.$e.show({color:"red",message:"Failed to update source"})}})})()},[v,O,t,N,er,en]),ei=(0,l.FH)({control:j,name:"from.databaseName",defaultValue:u?.from?.databaseName||eb}),ec=(0,l.FH)({control:j,name:"connection",defaultValue:u?.connection}),{fields:ed,append:em,remove:eu}=(0,l.jz)({control:j,name:"querySettings"});return(0,n.jsxs)("div",{style:{},children:[(0,n.jsxs)(d.B,{gap:"md",mb:"md",children:[(0,n.jsx)(c.E,{mb:"lg",children:"Source Settings"}),(0,n.jsx)(ey,{label:"Name",children:(0,n.jsx)(eh.t4,{control:j,name:"name",rules:{required:"Name is required"}})}),(0,n.jsx)(ey,{label:"Source Data Type",children:(0,n.jsx)(l.xI,{control:j,name:"kind",render:({field:{onChange:e,value:t}})=>(0,n.jsx)(w.s.Group,{value:t,onChange:t=>e(t),withAsterisk:!0,children:(0,n.jsxs)(g.Y,{children:[(0,n.jsx)(w.s,{value:i.GL.Log,label:"Log"}),(0,n.jsx)(w.s,{value:i.GL.Trace,label:"Trace"}),F.Fm&&(0,n.jsx)(w.s,{value:i.GL.Metric,label:"OTEL Metrics"}),F.vN&&(0,n.jsx)(w.s,{value:i.GL.Session,label:"Session"})]})})})}),(0,n.jsx)(ey,{label:"Server Connection",children:(0,n.jsx)(X.r,{control:j,name:"connection"})}),(0,n.jsx)(ey,{label:"Database",children:(0,n.jsx)(et,{control:j,name:"from.databaseName",connectionId:ec})}),Z!==i.GL.Metric&&(0,n.jsx)(ey,{label:"Table",children:(0,n.jsx)(el,{database:ei,control:j,name:"from.tableName",connectionId:ec,rules:{required:"Table is required"}})}),(0,n.jsxs)(ey,{label:(0,n.jsx)(S.M,{href:"https://clickhouse.com/docs/operations/settings/settings",size:"sm",target:"_blank",children:"Query Settings"}),helpText:"Query-level Session Settings that will be added to each query for this source.",children:[(0,n.jsx)(p.x,{columns:11,children:ed.map((e,t)=>(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)(p.x.Col,{span:5,pe:0,children:(0,n.jsx)(eh.t4,{placeholder:"Setting",control:j,name:`querySettings.${t}.setting`})}),(0,n.jsx)(p.x.Col,{span:5,pe:0,children:(0,n.jsx)(eh.t4,{placeholder:"Value",control:j,name:`querySettings.${t}.value`})}),(0,n.jsx)(p.x.Col,{span:1,ps:0,children:(0,n.jsx)(h.s,{align:"center",justify:"center",gap:"sm",h:"100%",children:(0,n.jsx)(b.M,{variant:"subtle",color:"gray",title:"Remove setting",onClick:()=>eu(t),children:(0,n.jsx)(A.A,{size:16})})})})]},e.id))}),(0,n.jsxs)(f.$,{variant:"secondary",size:"sm",color:"gray",mt:"md",disabled:ed.length>=10,onClick:()=>{ed.length<10&&em({setting:"",value:""})},children:[(0,n.jsx)($.A,{size:14,className:"me-2"}),"Add Setting"]})]})]}),(0,n.jsx)(eF,{control:j,setValue:y,kind:Z}),(0,n.jsxs)(g.Y,{justify:"flex-end",mt:"lg",children:[m&&(0,n.jsx)(f.$,{variant:"secondary",onClick:m,size:"xs",children:"Cancel"}),r?(0,n.jsx)(f.$,{variant:"primary",onClick:es,size:"xs",loading:q.isPending,children:"Save New Source"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(W.A,{onDelete:()=>G.mutate({id:e??""})}),(0,n.jsx)(f.$,{variant:"primary",onClick:eo,size:"xs",loading:q.isPending,children:"Save Source"})]})]})]})}},43567:(e,t,a)=>{"use strict";a.d(t,{B:()=>_});var n,r=a(6029),s=a(75155),l=a(55729),o=a(1909),i=a(88459),c=a(43517),d=a(60481),m=a(25062),u=a(78253),h=a(23935),x=a(3635),p=a(63085),b=a(34834),f=a(60665),g=a(95316),j=a(97702),y=a(6876),S=a(71781),v=a(98142),w=a(93108),C=a(92917),E=a(24207),N=((n=N||{}).Loading="loading",n.Valid="valid",n.Invalid="invalid",n);function _(e){let t,a,n,N,_,A,$,k,I,F,H,L,V,D,M,Z,q,O,G,B,R,P,Y,K,W,X,U,Q,J,ee,et,ea,en,er,es=(0,s.c)(98),{connection:el,isNew:eo,onSave:ei,onClose:ec,showCancelButton:ed,showDeleteButton:em}=e,eu=void 0!==ed&&ed,eh=void 0!==em&&em;es[0]!==el.host||es[1]!==el.hyperdxSettingPrefix||es[2]!==el.id||es[3]!==el.name||es[4]!==el.password||es[5]!==el.username?(t={defaultValues:{id:el.id,name:el.name,host:el.host,username:el.username,password:el.password,hyperdxSettingPrefix:el.hyperdxSettingPrefix}},es[0]=el.host,es[1]=el.hyperdxSettingPrefix,es[2]=el.id,es[3]=el.name,es[4]=el.password,es[5]=el.username,es[6]=t):t=es[6];let{control:ex,handleSubmit:ep,resetField:eb,getValues:ef,formState:eg}=(0,o.mN)(t),ej=(0,w.Ir)(),ey=(0,w.Zm)(),eS=(0,w.PQ)();es[7]!==el.id||es[8]!==ej||es[9]!==eo||es[10]!==ei||es[11]!==ey?(a=e=>{let t={...e,host:(0,C.KL)(e.host),hyperdxSettingPrefix:e.hyperdxSettingPrefix||null};if(eo){let{id:e,...a}=t;ej.mutate({connection:a},{onSuccess:()=>{f.$e.show({color:"green",message:"Connection created successfully"}),ei?.()},onError:T})}else ey.mutate({connection:t,id:el.id},{onSuccess:()=>{f.$e.show({color:"green",message:"Connection updated successfully"}),ei?.()},onError:z})},es[7]=el.id,es[8]=ej,es[9]=eo,es[10]=ei,es[11]=ey,es[12]=a):a=es[12];let ev=a,[ew,eC]=(0,l.useState)(!1),[eE,eN]=(0,l.useState)(!1);es[13]!==ef?(n={getValues:ef},es[13]=ef,es[14]=n):n=es[14];let{testConnectionState:e_,handleTestConnection:ez}=function({getValues:e}){let t=y.Ay.useTestConnection(),[a,n]=(0,l.useState)(null),r=(0,l.useCallback)(async()=>{let r=e("host"),s=e("username"),l=e("password"),o=(0,C.KL)(r);if(!a){if(n("loading"),v.VO)try{await (0,i.Kc)({host:o,username:s,password:l})?n("valid"):(n("invalid"),f.$e.show({color:"red",message:"Connection test failed",autoClose:5e3}))}catch(e){console.error(e),n("invalid"),f.$e.show({color:"red",message:e.message,autoClose:5e3})}else try{let e=await t.mutateAsync({host:o,username:s,password:l});e.success?n("valid"):(n("invalid"),f.$e.show({color:"red",message:e.error||"Connection test failed",autoClose:5e3}))}catch(t){let e=await t.response?.json();n("invalid"),f.$e.show({color:"red",message:e?.error??"Failed to test connection",autoClose:5e3})}setTimeout(()=>{n(null)},2e3)}},[e,t,a]);return{testConnectionState:a,handleTestConnection:r}}(n);es[15]!==ep||es[16]!==ev?(N=e=>{e.preventDefault(),ep(e=>{ev(e)})()},es[15]=ep,es[16]=ev,es[17]=N):N=es[17],es[18]===Symbol.for("react.memo_cache_sentinel")?(_=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Connection Name"}),es[18]=_):_=es[18],es[19]===Symbol.for("react.memo_cache_sentinel")?(A={required:"Connection name is required"},es[19]=A):A=es[19],es[20]!==ex?($=(0,r.jsxs)(d.a,{children:[_,(0,r.jsx)(S.t4,{"data-testid":"connection-name-input",name:"name",control:ex,placeholder:"My Clickhouse Server",rules:A})]}),es[20]=ex,es[21]=$):$=es[21],es[22]===Symbol.for("react.memo_cache_sentinel")?(k=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Host"}),es[22]=k):k=es[22],es[23]===Symbol.for("react.memo_cache_sentinel")?(I={required:"Host is required"},es[23]=I):I=es[23],es[24]!==ex?(F=(0,r.jsxs)(d.a,{children:[k,(0,r.jsx)(S.t4,{"data-testid":"connection-host-input",name:"host",control:ex,placeholder:"http://localhost:8123",rules:I})]}),es[24]=ex,es[25]=F):F=es[25],es[26]===Symbol.for("react.memo_cache_sentinel")?(H=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Username"}),es[26]=H):H=es[26],es[27]!==ex?(L=(0,r.jsxs)(d.a,{children:[H,(0,r.jsx)(S.t4,{"data-testid":"connection-username-input",name:"username",control:ex,placeholder:"Username (default: default)"})]}),es[27]=ex,es[28]=L):L=es[28],es[29]===Symbol.for("react.memo_cache_sentinel")?(V=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Password"}),es[29]=V):V=es[29],es[30]!==eo||es[31]!==ew?(D=!ew&&!eo&&(0,r.jsx)(m.$,{"data-testid":"update-password-button",variant:"secondary",onClick:()=>{eC(!0)},children:"Update Password"}),es[30]=eo,es[31]=ew,es[32]=D):D=es[32],es[33]!==ex||es[34]!==eo||es[35]!==eb||es[36]!==ew?(M=(ew||eo)&&(0,r.jsxs)(u.s,{align:"center",gap:"sm",children:[(0,r.jsx)(S.aJ,{"data-testid":"connection-password-input",style:{flexGrow:1},name:"password",control:ex,placeholder:"Password (default: blank)"}),!eo&&(0,r.jsx)(m.$,{"data-testid":"cancel-password-button",variant:"secondary",onClick:()=>{eC(!1),eb("password")},children:"Cancel"})]}),es[33]=ex,es[34]=eo,es[35]=eb,es[36]=ew,es[37]=M):M=es[37],es[38]!==D||es[39]!==M?(Z=(0,r.jsxs)(d.a,{children:[V,D,M]}),es[38]=D,es[39]=M,es[40]=Z):Z=es[40],es[41]!==eE?(q=!eE&&(0,r.jsx)(h.M,{underline:"always",onClick:()=>eN(!0),size:"xs",children:(0,r.jsxs)(x.Y,{gap:"xs",children:[(0,r.jsx)(g.A,{size:14}),"Advanced Settings"]})}),es[41]=eE,es[42]=q):q=es[42],es[43]!==eE?(O=eE&&(0,r.jsx)(m.$,{onClick:()=>eN(!1),size:"xs",variant:"subtle",children:"Hide Advanced Settings"}),es[43]=eE,es[44]=O):O=es[44],es[45]!==q||es[46]!==O?(G=(0,r.jsxs)(d.a,{children:[q,O]}),es[45]=q,es[46]=O,es[47]=G):G=es[47];let eT=eE?"block":"none";es[48]!==eT?(B={display:eT},es[48]=eT,es[49]=B):B=es[49],es[50]===Symbol.for("react.memo_cache_sentinel")?(R=(0,r.jsx)(c.E,{size:"xs",children:"Query Log Setting Prefix"}),es[50]=R):R=es[50],es[51]===Symbol.for("react.memo_cache_sentinel")?(P=(0,r.jsxs)(x.Y,{gap:"xs",mb:"xs",children:[R,(0,r.jsx)(p.m,{label:"Tracks query origins by adding the current user's email to ClickHouse queries (as {prefix}_user in system.query_log). Requires 'custom_settings_prefixes' in your ClickHouse config.xml to include this exact value, otherwise queries will be rejected.",color:"dark",c:"white",multiline:!0,maw:400,children:(0,r.jsx)(j.A,{size:16,className:"cursor-pointer"})})]}),es[51]=P):P=es[51],es[52]!==ex?(Y=(0,r.jsx)(S.t4,{"data-testid":"connection-setting-prefix-input",name:"hyperdxSettingPrefix",control:ex,placeholder:"hyperdx"}),es[52]=ex,es[53]=Y):Y=es[53],es[54]!==B||es[55]!==Y?(K=(0,r.jsxs)(d.a,{style:B,children:[P,Y]}),es[54]=B,es[55]=Y,es[56]=K):K=es[56];let eA=!eg.isValid,e$="invalid"===e_?"danger":"secondary",ek="loading"===e_;es[57]!==e_?(W="valid"===e_?(0,r.jsx)(r.Fragment,{children:"Connection successful"}):"invalid"===e_?(0,r.jsx)(r.Fragment,{children:"Unable to connect"}):"Test Connection",es[57]=e_,es[58]=W):W=es[58],es[59]!==ez||es[60]!==eA||es[61]!==e$||es[62]!==ek||es[63]!==W?(X=(0,r.jsx)(m.$,{disabled:eA,variant:e$,type:"button",onClick:ez,loading:ek,children:W}),es[59]=ez,es[60]=eA,es[61]=e$,es[62]=ek,es[63]=W,es[64]=X):X=es[64],es[65]!==eo||es[66]!==X?(U=(0,r.jsx)(p.m,{label:"\uD83D\uDD12 Password re-entry required for security",position:"right",disabled:eo,withArrow:!0,children:X}),es[65]=eo,es[66]=X,es[67]=U):U=es[67],es[68]!==ec||es[69]!==eu?(Q=ec&&eu&&(0,r.jsx)(m.$,{variant:"secondary",onClick:ec,children:"Cancel"}),es[68]=ec,es[69]=eu,es[70]=Q):Q=es[70],es[71]!==el.id||es[72]!==eS||es[73]!==eo||es[74]!==ec||es[75]!==eh?(J=!eo&&!1!==eh&&(0,r.jsx)(E.A,{onDelete:()=>eS.mutate({id:el.id},{onSuccess:()=>{ec?.()}})}),es[71]=el.id,es[72]=eS,es[73]=eo,es[74]=ec,es[75]=eh,es[76]=J):J=es[76];let eI=eo?ej.isPending:ey.isPending,eF=eo?"Create":"Save";return es[77]!==eI||es[78]!==eF?(ee=(0,r.jsxs)(m.$,{"data-testid":"connection-save-button",variant:"primary",type:"submit",loading:eI,children:[eF," Connection"]}),es[77]=eI,es[78]=eF,es[79]=ee):ee=es[79],es[80]!==Q||es[81]!==J||es[82]!==ee?(et=(0,r.jsxs)(x.Y,{gap:"xs",children:[Q,J,ee]}),es[80]=Q,es[81]=J,es[82]=ee,es[83]=et):et=es[83],es[84]!==U||es[85]!==et?(ea=(0,r.jsxs)(x.Y,{justify:"space-between",children:[U,et]}),es[84]=U,es[85]=et,es[86]=ea):ea=es[86],es[87]!==F||es[88]!==L||es[89]!==Z||es[90]!==G||es[91]!==K||es[92]!==ea||es[93]!==$?(en=(0,r.jsxs)(b.B,{gap:"md",children:[$,F,L,Z,G,K,ea]}),es[87]=F,es[88]=L,es[89]=Z,es[90]=G,es[91]=K,es[92]=ea,es[93]=$,es[94]=en):en=es[94],es[95]!==en||es[96]!==N?(er=(0,r.jsx)("form",{"data-testid":"connection-form",onSubmit:N,children:en}),es[95]=en,es[96]=N,es[97]=er):er=es[97],er}function z(){f.$e.show({color:"red",message:"Error updating connection, please check the host and credentials and try again.",autoClose:5e3})}function T(){f.$e.show({color:"red",message:"Error creating connection, please check the host and credentials and try again.",autoClose:5e3})}},52154:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(6029),r=a(75155),s=a(43517),l=a(78253);function o(e){let t,a,o,i,c,d,m,u=(0,r.c)(17),{language:h,onLanguageChange:x,showHotkey:p}=e;u[0]!==p?(t=p&&(0,n.jsx)(s.E,{size:"xxs",bg:"var(--color-bg-neutral)",c:"white",px:4,py:0,mr:4,lh:1.4,children:"/"}),u[0]=p,u[1]=t):t=u[1];let b="sql"===h?"var(--color-text-brand)":"gray";u[2]!==x?(a=()=>x("sql"),u[2]=x,u[3]=a):a=u[3],u[4]!==b||u[5]!==a?(o=(0,n.jsx)(s.E,{c:b,onClick:a,size:"xs",role:"button",children:"SQL"}),u[4]=b,u[5]=a,u[6]=o):o=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)(s.E,{size:"xs",children:"|"}),u[7]=i):i=u[7];let f="lucene"===h?"var(--color-text-brand)":"gray";return u[8]!==x?(c=()=>x("lucene"),u[8]=x,u[9]=c):c=u[9],u[10]!==f||u[11]!==c?(d=(0,n.jsx)(s.E,{size:"xs",role:"button",fw:500,c:f,onClick:c,children:"Lucene"}),u[10]=f,u[11]=c,u[12]=d):d=u[12],u[13]!==t||u[14]!==o||u[15]!==d?(m=(0,n.jsxs)(l.s,{wrap:"nowrap",gap:"xxxs",px:"sm",children:[t,o,i,d]}),u[13]=t,u[14]=o,u[15]=d,u[16]=m):m=u[16],m}},54970:(e,t,a)=>{"use strict";a.d(t,{v:()=>I});var n=a(6029),r=a(75155),s=a(55729),l=a(82641),o=a(62801),i=a(78253),c=a(94720),d=a(43517),m=a(25062),u=a(39603),h=a(92556),x=a(3635),p=a(76013),b=a(60481),f=a(92789),g=a(34834),j=a(28797),y=a(94502),S=a(17283),v=a(91758),w=a(58333),C=a(23474),E=a(23195),N=a(98142),_=a(93108),z=a(81973),T=a(92917),A=a(24314),$=a(76326),k=a.n($);function I(e){let t,a,$,I,F,H,L,V,D=(0,r.c)(53),{onAddSource:M,withCard:Z,withBorder:q,cardClassName:O,variant:G,showEmptyState:B}=e,R=void 0===Z||Z,P=void 0===q||q,Y=void 0===G?"compact":G,K=void 0===B||B,{data:W,isLoading:X,error:U,refetch:Q}=(0,_.ZY)(),{data:J,isLoading:ee,error:et,refetch:ea}=(0,z.oE)(),[en,er]=(0,s.useState)(null),[es,el]=(0,s.useState)(!1),eo=U||et;D[0]!==Q||D[1]!==ea?(t=()=>{Q(),ea()},D[0]=Q,D[1]=ea,D[2]=t):t=D[2];let ei=t,ec="compact"===Y?"sm":"md",ed="compact"===Y?"xs":"sm",em="compact"===Y?11:14,eu="compact"===Y?"xs":"sm",eh=R?o.Z:s.Fragment;D[3]!==O||D[4]!==P||D[5]!==R?(a=R?{withBorder:P,p:"md",radius:"sm",className:O??k().sourcesCard}:{},D[3]=O,D[4]=P,D[5]=R,D[6]=a):a=D[6];let ex=a;if(X||ee){let e,t;return D[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)(i.s,{justify:"center",align:"center",py:"xl",children:[(0,n.jsx)(c.a,{size:"sm"}),(0,n.jsx)(d.E,{size:"sm",c:"dimmed",ml:"sm",children:"Loading sources..."})]}),D[7]=e):e=D[7],D[8]!==eh||D[9]!==ex?(t=(0,n.jsx)(eh,{...ex,children:e}),D[8]=eh,D[9]=ex,D[10]=t):t=D[10],t}if(eo){let e,t,a,r,s,l;D[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(j.A,{size:16}),D[11]=e):e=D[11];let o=eo instanceof Error?eo.message:"An error occurred while loading data sources.";return D[12]!==o?(t=(0,n.jsx)(d.E,{size:"sm",mb:"sm",children:o}),D[12]=o,D[13]=t):t=D[13],D[14]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)(y.A,{size:14}),D[14]=a):a=D[14],D[15]!==ei?(r=(0,n.jsx)(m.$,{size:"xs",variant:"danger",leftSection:a,onClick:ei,children:"Retry"}),D[15]=ei,D[16]=r):r=D[16],D[17]!==r||D[18]!==t?(s=(0,n.jsxs)(u.F,{icon:e,title:"Failed to load sources",color:"red",variant:"light",children:[t,r]}),D[17]=r,D[18]=t,D[19]=s):s=D[19],D[20]!==eh||D[21]!==s||D[22]!==ex?(l=(0,n.jsx)(eh,{...ex,children:s}),D[20]=eh,D[21]=s,D[22]=ex,D[23]=l):l=D[23],l}let ep=!J||0===J.length;return D[24]!==es||D[25]!==ep||D[26]!==K?($=ep&&!es&&K&&(0,n.jsxs)(i.s,{direction:"column",align:"center",py:"xl",gap:"sm",children:[(0,n.jsx)(S.A,{size:32,color:"var(--color-text-muted)"}),(0,n.jsx)(h.h,{size:"sm",ta:"center",c:"var(--color-text-muted)",children:"No data sources configured yet."}),(0,n.jsx)(d.E,{size:"xs",ta:"center",c:"var(--color-text-muted)",children:"Add a source to start querying your data."})]}),D[24]=es,D[25]=ep,D[26]=K,D[27]=$):$=D[27],D[28]!==eu||D[29]!==W||D[30]!==en||D[31]!==em||D[32]!==J||D[33]!==ed||D[34]!==ec?(I=J?.map((e,t)=>(0,n.jsxs)(s.Fragment,{children:[(0,n.jsxs)(i.s,{justify:"space-between",align:"center",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(d.E,{size:ec,fw:500,children:e.name}),(0,n.jsx)(d.E,{size:ed,c:"dimmed",mt:4,children:(0,n.jsxs)(x.Y,{gap:"xs",children:[(0,T.Zr)(e.kind),(0,n.jsxs)(x.Y,{gap:4,children:[(0,n.jsx)(v.A,{size:em}),W?.find(t=>t.id===e.connection)?.name]}),(0,n.jsx)(x.Y,{gap:4,children:e.from&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S.A,{size:em}),e.from.databaseName,e.kind===l.GL.Metric?"":".",e.from.tableName]})})]})})]}),(0,n.jsx)(p.M,{variant:"secondary",size:eu,onClick:()=>er(en===e.id?null:e.id),children:en===e.id?(0,n.jsx)(w.A,{size:em+2}):(0,n.jsx)(C.A,{size:em+2})})]}),en===e.id&&(0,n.jsx)(b.a,{mt:"xs",children:(0,n.jsx)(A.Eb,{sourceId:e.id,onSave:()=>er(null)})}),t<(J?.length??0)-1&&(0,n.jsx)(f.c,{})]},e.id)),D[28]=eu,D[29]=W,D[30]=en,D[31]=em,D[32]=J,D[33]=ed,D[34]=ec,D[35]=I):I=D[35],D[36]!==es||D[37]!==J?(F=es&&(0,n.jsxs)(n.Fragment,{children:[J&&J.length>0&&(0,n.jsx)(f.c,{}),(0,n.jsx)(A.Eb,{isNew:!0,onCreate:()=>el(!1),onCancel:()=>el(!1)})]}),D[36]=es,D[37]=J,D[38]=F):F=D[38],D[39]!==eu||D[40]!==es||D[41]!==M||D[42]!==J?(H=!N.VO&&!es&&(0,n.jsx)(i.s,{justify:"flex-end",pt:J&&J.length>0?"md":0,children:(0,n.jsx)(m.$,{variant:"secondary",size:eu,leftSection:(0,n.jsx)(E.A,{size:14}),onClick:()=>{el(!0),M?.()},children:"Add source"})}),D[39]=eu,D[40]=es,D[41]=M,D[42]=J,D[43]=H):H=D[43],D[44]!==H||D[45]!==$||D[46]!==I||D[47]!==F?(L=(0,n.jsxs)(g.B,{gap:"md",children:[$,I,F,H]}),D[44]=H,D[45]=$,D[46]=I,D[47]=F,D[48]=L):L=D[48],D[49]!==eh||D[50]!==L||D[51]!==ex?(V=(0,n.jsx)(eh,{...ex,children:L}),D[49]=eh,D[50]=L,D[51]=ex,D[52]=V):V=D[52],V}},62453:(e,t,a)=>{"use strict";a.d(t,{r:()=>i});var n=a(6029),r=a(75155),s=a(91758),l=a(9211),o=a(93108);function i(e){let t,a,i,d,m,u,h=(0,r.c)(11);h[0]!==e?({size:a,...t}=e,h[0]=e,h[1]=t,h[2]=a):(t=h[1],a=h[2]);let{data:x}=(0,o.ZY)();h[3]!==x?(i=x?.map(c),h[3]=x,h[4]=i):i=h[4];let p=i;return h[5]===Symbol.for("react.memo_cache_sentinel")?(d={withinPortal:!1},h[5]=d):d=h[5],h[6]===Symbol.for("react.memo_cache_sentinel")?(m=(0,n.jsx)(s.A,{size:16}),h[6]=m):m=h[6],h[7]!==t||h[8]!==a||h[9]!==p?(u=(0,n.jsx)(l.A,{...t,allowDeselect:!1,data:p,comboboxProps:d,searchable:!0,placeholder:"Connection",leftSection:m,maxDropdownHeight:280,size:a}),h[7]=t,h[8]=a,h[9]=p,h[10]=u):u=h[10],u}function c(e){return{value:e.id,label:e.name}}},64467:(e,t,a)=>{"use strict";a.d(t,{Z:()=>w});var n=a(6029),r=a(75155),s=a(55729),l=a(1909),o=a(66692),i=a(95516),c=a(15215),d=a(36417),m=a(22623),u=a(43517),h=a(63085),x=a(78253),p=a(67747),b=a(95352),f=a(78550),g=a(92917),j=a(52154);let y="150px",S={lineNumbers:!1,foldGutter:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1};function v({tableConnection:e,tableConnections:t,filterField:a,onChange:r,placeholder:l,onLanguageChange:v,language:w,onSubmit:C,error:E,value:N,size:_,label:z,disableKeywordAutocomplete:T,enableHotkey:A,tooltipText:$,additionalSuggestions:k=[],queryHistoryType:I,parentRef:F,allowMultiline:H=!1}){let{colorScheme:L}=(0,d.C)(),{data:V}=(0,f.Sh)((e?[e]:t)??[]),D=(0,s.useMemo)(()=>a?V?.filter(a):V,[V,a]),[M,Z]=(0,g.mk)(I),q=(0,s.useCallback)((e,t,a,n)=>{e.dispatch({changes:{from:t,to:a,insert:n}}),(0,i.N)(e),Z(n),C&&C()},[C,Z]),O=(0,s.useMemo)(()=>()=>({from:0,options:M.map(e=>({label:e,section:"Search History",type:"keyword",apply:(t,a,n,r)=>{q(t,n,r,e)}}))}),[M,q]),[G,B]=(0,s.useState)(!1),R=(0,s.useRef)(null),P=(0,s.useRef)(new b.xx),Y=(0,s.useCallback)(e=>{let t=e.state.doc.toString(),a=[...D?.map(e=>e.path.length>1?`${e.path[0]}['${e.path[1]}']`:e.path[0])??[],...k],n=(0,c.ll)({dialect:c.fy.define({keywords:a.join(" ")+(T?"":" AND OR NOT IN LIKE ILIKE BETWEEN ASC DESC intDiv intDivOrZero isNaN moduloOrZero abs empty notEmpty length arrayConcat has hasAll hasAny indexOf arrayCount countEqual arrayUnion arrayIntersect arrayMap arrayFilter arraySort flatten arrayCompact arrayMin arrayMax arraySum arrayAvg if multiIf floor ceiling truncate round timestamp toTimeZone toYear toMonth toWeek toDayOfYear toDayOfMonth toDayOfWeek toUnixTimestamp toTime lower upper substring trim dictGet dictGetOrDefault dictGetOrNull")})}),r=(0,i.yU)({compareCompletions:(e,t)=>0,override:[O]});e.dispatch({effects:P.current.reconfigure(t.length>0?n:r)})},[D,k,O,T]);(0,s.useEffect)(()=>{null!=R.current&&null!=R.current.view&&Y(R.current.view)},[Y]),(0,o.vC)("/",()=>{A&&R.current?.view?.focus()},{preventDefault:!0},[A]);let K=(0,s.useMemo)(()=>null==F?[]:[(0,b.vX)({parent:F,tooltipSpace:e=>{let t=e.dom.getBoundingClientRect(),a=F.getBoundingClientRect();return{...t,right:t.right??0,left:a.left??t.left,top:a.top??t.top,bottom:a.bottom??t.bottom}}})],[F]),W=(0,s.useMemo)(()=>[...K,b.Lz.baseTheme({"&.cm-editor.cm-focused":{outline:"0px solid transparent"},"&.cm-editor":{background:"transparent !important"},".cm-editor-multiline &.cm-editor":{maxHeight:y},"& .cm-tooltip-autocomplete":{whiteSpace:"nowrap",wordWrap:"break-word",maxWidth:"100%",backgroundColor:"var(--color-bg-field) !important",border:"1px solid var(--color-border) !important",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",padding:"4px"},"& .cm-tooltip-autocomplete > ul":{fontFamily:"inherit",maxHeight:"300px"},"& .cm-tooltip-autocomplete > ul > li":{padding:"4px 8px",borderRadius:"4px",cursor:"pointer",color:"var(--color-text)"},"& .cm-tooltip-autocomplete > ul > li[aria-selected]":{backgroundColor:"var(--color-bg-field-highlighted) !important",color:"var(--color-text-muted) !important"},"& .cm-tooltip-autocomplete .cm-completionLabel":{color:"var(--color-text)"},"& .cm-tooltip-autocomplete .cm-completionDetail":{color:"var(--color-text-muted)",fontStyle:"normal",marginLeft:"8px"},"& .cm-tooltip-autocomplete .cm-completionInfo":{backgroundColor:"var(--color-bg-field)",border:"1px solid var(--color-border)",borderRadius:"4px",padding:"8px",color:"var(--color-text)"},"& .cm-completionIcon":{width:"16px",marginRight:"6px",opacity:.7},"& .cm-scroller":{overflowX:"hidden"},".cm-editor-multiline & .cm-scroller":{maxHeight:y,overflowY:"auto"}}),...H?[b.Lz.lineWrapping]:[],P.current.of((0,c.ll)({upperCaseKeywords:!0})),b.Nb.highest(b.w4.of([{key:"Enter",run:e=>null!=C&&(I&&R?.current?.view&&Z(R?.current?.view.state.doc.toString()),C(),!0)},...H?[{key:"Shift-Enter",run:()=>!1}]:[]])),b.w4.of([{key:"Tab",run:i.$w}])],[H,C,I,Z,K]),X=(0,s.useCallback)(()=>{R?.current?.view&&(0,i.rB)(R.current.view)},[]);return(0,n.jsxs)(m.t,{flex:"auto",shadow:"none",style:{backgroundColor:"var(--color-bg-field)",border:`1px solid ${E?"var(--color-bg-danger)":"var(--color-border)"}`,display:"flex",alignItems:"center",minHeight:"xs"===_?30:36},ps:"4px",children:[null!=z&&(0,n.jsx)(u.E,{mx:"4px",size:"xs",fw:"bold",style:{whiteSpace:"nowrap"},component:"div",children:(0,n.jsx)(h.m,{label:$,disabled:!$,children:(0,n.jsxs)(x.s,{align:"center",gap:2,children:[z,$&&(0,n.jsx)(p.A,{size:20})]})})}),(0,n.jsx)("div",{style:{minWidth:10,width:"100%"},className:H?"cm-editor-multiline":"",children:(0,n.jsx)(b.Ay,{indentWithTab:!1,ref:R,value:N,onChange:r,theme:"dark"===L?"dark":"light",onFocus:(0,s.useCallback)(()=>{B(!0)},[B]),onBlur:(0,s.useCallback)(()=>{B(!1)},[B]),extensions:W,onCreateEditor:Y,basicSetup:S,placeholder:l,onClick:X})}),null!=v&&null!=w&&(0,n.jsx)(j.A,{showHotkey:A&&G,language:w,onLanguageChange:v})]})}let w=(0,s.memo)(function(e){let t,a,s,o,i,c,d=(0,r.c)(15);d[0]!==e?({placeholder:s,filterField:a,additionalSuggestions:t,queryHistoryType:i,...o}=e,d[0]=e,d[1]=t,d[2]=a,d[3]=s,d[4]=o,d[5]=i):(t=d[1],a=d[2],s=d[3],o=d[4],i=d[5]);let{field:m,fieldState:u}=(0,l.as)(o),h=m.value||o.defaultValue,x="";"string"==typeof h?x=h:void 0!==h&&console.error("SQLInlineEditor: value is not a string",h);let p=u.error?.message;return d[6]!==t||d[7]!==m.onChange||d[8]!==a||d[9]!==s||d[10]!==o||d[11]!==i||d[12]!==x||d[13]!==p?(c=(0,n.jsx)(v,{filterField:a,onChange:m.onChange,placeholder:s,value:x,error:p,additionalSuggestions:t,queryHistoryType:i,...o}),d[6]=t,d[7]=m.onChange,d[8]=a,d[9]=s,d[10]=o,d[11]=i,d[12]=x,d[13]=p,d[14]=c):c=d[14],c})},71781:(e,t,a)=>{"use strict";a.d(t,{M7:()=>d,aJ:()=>u,mh:()=>h,t4:()=>m});var n=a(6029),r=a(75155);a(55729);var s=a(1909),l=a(59029),o=a(96061),i=a(45544),c=a(47268);function d(e){let t,a,o,i,c,d,m=(0,r.c)(12);return m[0]!==e?({name:a,control:t,rules:i,...o}=e,m[0]=e,m[1]=t,m[2]=a,m[3]=o,m[4]=i):(t=m[1],a=m[2],o=m[3],i=m[4]),m[5]!==o?(c=e=>{let{field:t,fieldState:a}=e,{error:r}=a;return(0,n.jsx)(l.k,{...o,...t,error:r?.message})},m[5]=o,m[6]=c):c=m[6],m[7]!==t||m[8]!==a||m[9]!==i||m[10]!==c?(d=(0,n.jsx)(s.xI,{name:a,control:t,rules:i,render:c}),m[7]=t,m[8]=a,m[9]=i,m[10]=c,m[11]=d):d=m[11],d}function m(e){let t,a,l,i,c,d,m=(0,r.c)(12);return m[0]!==e?({name:a,control:t,rules:i,...l}=e,m[0]=e,m[1]=t,m[2]=a,m[3]=l,m[4]=i):(t=m[1],a=m[2],l=m[3],i=m[4]),m[5]!==l?(c=e=>{let{field:t,fieldState:a}=e,{error:r}=a;return(0,n.jsx)(o.p,{...l,...t,error:r?.message})},m[5]=l,m[6]=c):c=m[6],m[7]!==t||m[8]!==a||m[9]!==i||m[10]!==c?(d=(0,n.jsx)(s.xI,{name:a,control:t,rules:i,render:c}),m[7]=t,m[8]=a,m[9]=i,m[10]=c,m[11]=d):d=m[11],d}function u(e){let t,a,l,o,c,d,m=(0,r.c)(12);return m[0]!==e?({name:a,control:t,rules:o,...l}=e,m[0]=e,m[1]=t,m[2]=a,m[3]=l,m[4]=o):(t=m[1],a=m[2],l=m[3],o=m[4]),m[5]!==l?(c=e=>{let{field:t,fieldState:a}=e,{error:r}=a;return(0,n.jsx)(i.y,{...l,...t,error:r?.message})},m[5]=l,m[6]=c):c=m[6],m[7]!==t||m[8]!==a||m[9]!==o||m[10]!==c?(d=(0,n.jsx)(s.xI,{name:a,control:t,rules:o,render:c}),m[7]=t,m[8]=a,m[9]=o,m[10]=c,m[11]=d):d=m[11],d}function h(e){let t,a,l,o,i,d,m=(0,r.c)(12);return m[0]!==e?({name:a,control:t,rules:o,...l}=e,m[0]=e,m[1]=t,m[2]=a,m[3]=l,m[4]=o):(t=m[1],a=m[2],l=m[3],o=m[4]),m[5]!==l?(i=e=>{let{field:t,fieldState:a}=e,{value:r,...s}=t,{error:o}=a;return(0,n.jsx)(c.S,{...l,...s,checked:r,error:o?.message})},m[5]=l,m[6]=i):i=m[6],m[7]!==t||m[8]!==a||m[9]!==o||m[10]!==i?(d=(0,n.jsx)(s.xI,{name:a,control:t,rules:o,render:i}),m[7]=t,m[8]=a,m[9]=o,m[10]=i,m[11]=d):d=m[11],d}},76326:e=>{e.exports={sourcesCard:"Sources_sourcesCard__m5aMQ"}},86761:(e,t,a)=>{"use strict";a.d(t,{A:()=>j});var n=a(6029),r=a(75155),s=a(55729),l=a(82641),o=a(43517),i=a(63085),c=a(22623),d=a(27166),m=a(64488),u=a(6620),h=a(94502),x=a(78550),p=a(88339);let b=e=>{let t,a,s,l=(0,r.c)(11),{onClick:c,isEnabled:d,tableCount:m,iconStyles:h,variant:x}=e,p=void 0===x?"icon":x,b=d?m>1?"Show Table Schemas":"Show Table Schema":"Select a table to view its schema";return l[0]!==d||l[1]!==c?(t=()=>d&&c(),l[0]=d,l[1]=c,l[2]=t):t=l[2],l[3]!==h||l[4]!==d||l[5]!==p?(a="text"===p?(0,n.jsx)(o.E,{fw:500,size:"xs",className:"text-sucess-hover",style:{cursor:d?"pointer":"default",...h},children:"Schema"}):(0,n.jsx)(u.A,{size:16}),l[3]=h,l[4]=d,l[5]=p,l[6]=a):a=l[6],l[7]!==t||l[8]!==a||l[9]!==b?(s=(0,n.jsx)(i.m,{label:b,color:"dark",position:"right",onClick:t,children:a}),l[7]=t,l[8]=a,l[9]=b,l[10]=s):s=l[10],s},f=e=>{let t,a,s,l=(0,r.c)(8),{databaseName:o,tableName:i,connectionId:d}=e;l[0]!==d||l[1]!==o||l[2]!==i?(t={databaseName:o,tableName:i,connectionId:d},l[0]=d,l[1]=o,l[2]=i,l[3]=t):t=l[3];let{data:m,isLoading:u}=(0,x.Z2)(t);return l[4]===Symbol.for("react.memo_cache_sentinel")?(a={overflow:"hidden"},l[4]=a):a=l[4],l[5]!==m?.create_table_query||l[6]!==u?(s=(0,n.jsx)(c.t,{flex:"auto",shadow:"none",radius:"sm",p:"xs",style:a,children:u?(0,n.jsx)("div",{className:"d-inline-block",children:(0,n.jsx)(h.A,{className:"spin-animate"})}):(0,n.jsx)(p.V,{data:m?.create_table_query??"Schema is not available",enableCopy:!!m?.create_table_query,copyButtonSize:"xs"})}),l[5]=m?.create_table_query,l[6]=u,l[7]=s):s=l[7],s},g={[l.SX.Sum]:"Sum",[l.SX.Gauge]:"Gauge",[l.SX.Histogram]:"Histogram",[l.SX.Summary]:"Summary",[l.SX.ExponentialHistogram]:"Exponential Histogram"},j=e=>{let t,a,o,i,c,u=(0,r.c)(34),{source:h,iconStyles:x,variant:p}=e,f=void 0===p?"icon":p,[j,w]=(0,s.useState)(!1),C=h?.kind==="metric";if(u[0]!==C||u[1]!==h){let e,a;if(t=[],h&&C){let e,a,n;u[3]===Symbol.for("react.memo_cache_sentinel")?(e=Object.values(l.SX),u[3]=e):e=u[3],u[4]!==h?(a=e.map(e=>({metricType:e,tableName:h.metricTables?.[e]})).filter(y),u[4]=h,u[5]=a):a=u[5],u[6]!==h||u[7]!==a?(n=a.map(e=>{let{metricType:t,tableName:a}=e;return{databaseName:h.from.databaseName,tableName:a,connectionId:h.connection,title:g[t]}}),u[6]=h,u[7]=a,u[8]=n):n=u[8],t.push(...n)}else if(h&&h.from.tableName){let e,a=h.name??h.from.tableName;u[9]!==h.connection||u[10]!==h.from.databaseName||u[11]!==h.from.tableName||u[12]!==a?(e={databaseName:h.from.databaseName,tableName:h.from.tableName,connectionId:h.connection,title:a},u[9]=h.connection,u[10]=h.from.databaseName,u[11]=h.from.tableName,u[12]=a,u[13]=e):e=u[13],t.push(e)}u[14]!==h?.materializedViews?(e=h?.materializedViews??[],u[14]=h?.materializedViews,u[15]=e):e=u[15];let n=e;if(u[16]!==n||u[17]!==h){let e;u[19]!==h?(e=e=>{let{tableName:t,databaseName:a}=e;return{databaseName:a,tableName:t,connectionId:h.connection,title:`${t} (MV)`}},u[19]=h,u[20]=e):e=u[20],a=n.map(e),u[16]=n,u[17]=h,u[18]=a}else a=u[18];t.push(...a),u[0]=C,u[1]=h,u[2]=t}else t=u[2];let E=!!h&&t.length>0;return u[21]===Symbol.for("react.memo_cache_sentinel")?(a=()=>w(!0),u[21]=a):a=u[21],u[22]!==x||u[23]!==E||u[24]!==t.length||u[25]!==f?(o=(0,n.jsx)(b,{isEnabled:E,onClick:a,iconStyles:x,tableCount:t.length,variant:f}),u[22]=x,u[23]=E,u[24]=t.length,u[25]=f,u[26]=o):o=u[26],u[27]!==E||u[28]!==j||u[29]!==t?(i=E&&(0,n.jsx)(d.a,{opened:j,onClose:()=>w(!1),size:"auto",title:t.length>1?"Table Schemas":"Table Schema",children:(0,n.jsxs)(m.t,{defaultValue:`${t[0]?.databaseName}.${t[0]?.tableName}.${t[0]?.title}`,children:[(0,n.jsx)(m.t.List,{children:t.map(S)}),t.map(v)]})}),u[27]=E,u[28]=j,u[29]=t,u[30]=i):i=u[30],u[31]!==o||u[32]!==i?(c=(0,n.jsxs)(n.Fragment,{children:[o,i]}),u[31]=o,u[32]=i,u[33]=c):c=u[33],c};function y(e){let{tableName:t}=e;return!!t}function S(e){return(0,n.jsx)(m.t.Tab,{value:`${e.databaseName}.${e.tableName}.${e.title}`,children:e.title},`${e.databaseName}.${e.tableName}.${e.title}`)}function v(e){return(0,n.jsx)(m.t.Panel,{value:`${e.databaseName}.${e.tableName}.${e.title}`,pt:"sm",children:(0,n.jsx)(f,{...e})},`${e.databaseName}.${e.tableName}.${e.title}`)}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/3234-5a2bee69ca80ca94.js b/out/_next/static/chunks/3234-5a2bee69ca80ca94.js new file mode 100644 index 0000000..8a24f8f --- /dev/null +++ b/out/_next/static/chunks/3234-5a2bee69ca80ca94.js @@ -0,0 +1,5 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3234],{6379:(e,t,a)=>{"use strict";a.d(t,{FC:()=>B,yI:()=>q});var r=a(6029),n=a(75155),l=a(55729),i=a(75828),s=a.n(i),o=a(25605),c=a(43465),d=a(86508),u=a(7913),h=a(92205),m=a(56721),g=a(14693),p=a(13297),x=a(40684),f=a(8454),y=a(2893),v=a(47122),j=a(31292),w=a(88140),b=a(64370),C=a(93463),k=a(82641),_=a(37659),S=a(49109),A=a(33958),D=a(92917),z=a(43152),T=a(7565),P=a(43736),E=a.n(P);let N=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:2}),M=e=>{let t,a,l=(0,n.c)(7),{current:i,previous:s}=e;if(l[0]!==i||l[1]!==s){a=Symbol.for("react.early_return_sentinel");e:{let e,n,o=0===s?0===i?0:void 0:(i-s)/s;if(void 0==o){a=null;break e}let c=o>0?S.A:A.A;l[4]===Symbol.for("react.memo_cache_sentinel")?(e={display:"inline-flex",alignItems:"center",gap:0},l[4]=e):e=l[4],l[5]!==c?(n=(0,r.jsx)(c,{size:12}),l[5]=c,l[6]=n):n=l[6],t=(0,r.jsxs)("span",{style:e,children:["(",n,N.format(Math.abs(o)),")"]})}l[0]=i,l[1]=s,l[2]=t,l[3]=a}else t=l[2],a=l[3];return a!==Symbol.for("react.early_return_sentinel")?a:t},I=(0,l.memo)(e=>{let t,a,l,i,s,o,c,d,u=(0,n.c)(24),{p:h,previous:m,numberFormat:g}=e;u[0]!==h.color||u[1]!==h.opacity||u[2]!==h.strokeDasharray?(t=(0,r.jsx)("div",{children:(0,r.jsx)("svg",{width:"12",height:"4",children:(0,r.jsx)("line",{x1:"0",y1:"2",x2:"12",y2:"2",stroke:h.color,opacity:h.opacity,strokeDasharray:h.strokeDasharray})})}),u[0]=h.color,u[1]=h.opacity,u[2]=h.strokeDasharray,u[3]=t):t=u[3],u[4]!==h.color?(a={color:h.color},u[4]=h.color,u[5]=a):a=u[5];let p=h.name??h.dataKey;return u[6]!==p?(l=(0,D.kU)(p,50),u[6]=p,u[7]=l):l=u[7],u[8]!==a||u[9]!==l?(i=(0,r.jsx)("span",{style:a,children:l}),u[8]=a,u[9]=l,u[10]=i):i=u[10],u[11]!==g||u[12]!==h.value?(s=g?(0,D.ZV)(h.value,g):h.value,u[11]=g,u[12]=h.value,u[13]=s):s=u[13],u[14]!==h.value||u[15]!==m?(o=m&&(0,r.jsx)(M,{current:h.value,previous:m?.value}),u[14]=h.value,u[15]=m,u[16]=o):o=u[16],u[17]!==i||u[18]!==s||u[19]!==o?(c=(0,r.jsxs)("div",{children:[i,": ",s," ",o]}),u[17]=i,u[18]=s,u[19]=o,u[20]=c):c=u[20],u[21]!==t||u[22]!==c?(d=(0,r.jsxs)("div",{className:"d-flex gap-2 items-center justify-center",children:[t,c]}),u[21]=t,u[22]=c,u[23]=d):d=u[23],d}),L=(0,u.withErrorBoundary)((0,l.memo)(e=>{let t,a=(0,n.c)(24),{active:l,payload:i,label:s,numberFormat:o,lineDataMap:c,previousPeriodOffsetSeconds:d}=e;a[0]!==i?(t=new Map(i.map(X)),a[0]=i,a[1]=t):t=a[1];let u=t;if(l&&i&&i.length){let e,t,n,l,h,m,g=1e3*s;if(a[2]!==g?(e=(0,r.jsx)(T.H,{value:g}),a[2]=g,a[3]=e):e=a[3],a[4]!==s||a[5]!==d?(t=null!=d&&(0,r.jsxs)(r.Fragment,{children:[" (vs ",(0,r.jsx)(T.H,{value:(s-d)*1e3}),")"]}),a[4]=s,a[5]=d,a[6]=t):t=a[6],a[7]!==e||a[8]!==t?(n=(0,r.jsxs)("div",{className:E().chartTooltipHeader,children:[e,t]}),a[7]=e,a[8]=t,a[9]=n):n=a[9],a[10]!==c||a[11]!==o||a[12]!==i||a[13]!==u){let e;a[15]!==c||a[16]!==o||a[17]!==u?(e=e=>{let t=c[e.dataKey]?.previousPeriodKey,a=t!==e.dataKey&&t?u.get(t):void 0;return(0,r.jsx)(I,{p:e,numberFormat:o,previous:a},e.dataKey)},a[15]=c,a[16]=o,a[17]=u,a[18]=e):e=a[18],l=i.sort(H).map(e),a[10]=c,a[11]=o,a[12]=i,a[13]=u,a[14]=l}else l=a[14];return a[19]!==l?(h=(0,r.jsx)("div",{className:E().chartTooltipContent,children:l}),a[19]=l,a[20]=h):h=a[20],a[21]!==n||a[22]!==h?(m=(0,r.jsxs)("div",{className:E().chartTooltip,children:[n,h]}),a[21]=n,a[22]=h,a[23]=m):m=a[23],m}return null}),{onError:console.error,fallback:(0,r.jsx)("div",{className:"text-danger px-2 py-1 m-2 fs-8 font-monospace bg-danger-transparent",children:"An error occurred while rendering the tooltip."})});function R(e){let t,a,i,s,o,c=(0,n.c)(21),{entry:d,expanded:u,isSelected:h,isDisabled:m,onToggle:g}=e,[p,x]=(0,l.useState)(!1),f=p||u,y=m?.3:1,v=h?600:400;c[0]!==d.color||c[1]!==y||c[2]!==v?(t={color:d.color,opacity:y,fontWeight:v,cursor:"pointer"},c[0]=d.color,c[1]=y,c[2]=v,c[3]=t):t=c[3],c[4]!==g?(a=e=>{g?g(e.shiftKey):x(K)},c[4]=g,c[5]=a):a=c[5];let j=h?"Click to show all (Shift+click to deselect)":"Click to show only this (Shift+click for multi-select)",w=m?.3:1,b=d.payload?.strokeDasharray,C=h?2.5:1.5;return c[6]!==d.color||c[7]!==w||c[8]!==b||c[9]!==C?(i=(0,r.jsx)("div",{children:(0,r.jsx)("svg",{width:"12",height:"4",children:(0,r.jsx)("line",{x1:"0",y1:"2",x2:"12",y2:"2",stroke:d.color,opacity:w,strokeDasharray:b,strokeWidth:C})})}),c[6]=d.color,c[7]=w,c[8]=b,c[9]=C,c[10]=i):i=c[10],c[11]!==d.value||c[12]!==f||c[13]!==h?(s=f||h?d.value:(0,D.kU)(`${d.value}`,35),c[11]=d.value,c[12]=f,c[13]=h,c[14]=s):s=c[14],c[15]!==s||c[16]!==t||c[17]!==a||c[18]!==j||c[19]!==i?(o=(0,r.jsxs)("span",{className:`d-flex gap-1 items-center justify-center ${E().legendItem}`,style:t,role:"button",onClick:a,title:j,children:[i,s]}),c[15]=s,c[16]=t,c[17]=a,c[18]=j,c[19]=i,c[20]=o):o=c[20],o}function K(e){return!e}let F=(0,l.memo)(e=>{let{payload:t=[],lineDataMap:a,allLineData:n=[],selectedSeries:i=new Set,onToggleSeries:o}=e,c=i.size>0,d=(0,l.useMemo)(()=>n.length>0?n.map(e=>({dataKey:e.dataKey,value:e.displayName||e.dataKey,color:e.color,payload:{strokeDasharray:e.isDashed?"4 3":"0"}})):t,[n,t]),u=(0,l.useMemo)(()=>{let e=new Map;return d.forEach((t,r)=>{let n=a[t.dataKey]?.currentPeriodKey||"";e.has(n)||e.set(n,r)}),d.sort((t,r)=>{let n=a[t.dataKey]?.currentPeriodKey??"",l=a[r.dataKey]?.currentPeriodKey??"",i=e.get(n)??0;return(e.get(l)??0)-i||t.dataKey.localeCompare(r.dataKey)})},[d,a]),h=u.slice(0,4),m=u.slice(4);return(0,r.jsxs)("div",{className:E().legend,children:[h.map((e,t)=>{let a=i.has(e.value);return(0,r.jsx)(R,{entry:e,isSelected:a,isDisabled:c&&!a,onToggle:t=>o?.(e.value,t)},`item-${t}`)}),m.length?(0,r.jsxs)(_.A,{withinPortal:!0,withArrow:!0,closeOnEscape:!0,closeOnClickOutside:!0,children:[(0,r.jsx)(_.A.Target,{children:(0,r.jsxs)("div",{className:s()(E().legendItem,E().legendMoreLink),children:["+",m.length," more"]})}),(0,r.jsx)(_.A.Dropdown,{p:"xs",children:(0,r.jsx)("div",{className:E().legendTooltipContent,children:m.map((e,t)=>{let a=i.has(e.value);return(0,r.jsx)(R,{entry:e,isSelected:a,isDisabled:c&&!a,onToggle:t=>o?.(e.value,t)},`item-${t}`)})})})]}):null]})}),q=60,B=(0,l.memo)(function({graphResults:e,setIsClickActive:t,isClickActive:a,dateRange:n,lineData:i,referenceLines:s,logReferenceTimestamp:u,displayType:_=k.t2.Line,numberFormat:S,isLoading:A,timestampKey:P="ts_bucket",onTimeRangeSelect:E,showLegend:N=!0,previousPeriodOffsetSeconds:M,selectedSeriesNames:I,onToggleSeries:R,granularity:K,dateRangeEndInclusive:B=!0}){let X=(0,l.useId)().replace(/:/g,""),[H,W]=(0,l.useState)(!1),V=_===k.t2.StackedBar?h.E:m.Q,Y=(0,l.useMemo)(()=>{let e=I&&I.size>0;return i.map(e=>e.dataKey).slice(0,q).filter((t,a)=>{let r=i[a]?.displayName??t;return!e||I.has(r)}).map(e=>{let t=i.findIndex(t=>t.dataKey===e),a=i[t]?.color,n=i[t]?.isDashed?"4 3":"0",l=i[t]?.displayName??e;return"stacked_bar"===_?(0,r.jsx)(g.y,{type:"monotone",dataKey:e,name:l,fill:a,opacity:1,stackId:"1",isAnimationActive:!1,shape:(0,r.jsx)(e=>{let{x:t,y:a,width:n,height:l,fill:i}=e;return(0,r.jsx)("rect",{x:t,y:a,width:n,height:l&&l>0?l+.5:0,fill:i})},{dataKey:e})},e):(0,r.jsx)(p.G,{dataKey:e,type:"monotone",stroke:a,fillOpacity:1,...H?{fill:"none",strokeDasharray:n}:{fill:`url(#time-chart-lin-grad-${X}-${a?.replace("#","").toLowerCase()})`,strokeDasharray:n},name:l,isAnimationActive:!1,connectNulls:!0},e)})},[i,_,X,H,I]),G=(0,l.useMemo)(()=>{if(!(I&&I.size>0))return[0,"auto"];let t=1/0,a=-1/0;if(e.forEach(e=>{i.forEach(r=>{let n=r.displayName||r.dataKey;if(I.has(n)){let n=e[r.dataKey];"number"!=typeof n||isNaN(n)||(t=Math.min(t,n),a=Math.max(a,n))}})}),t!==1/0&&a!==-1/0){let e=(a-t)*.1;return[Math.max(0,t-e),a+e]}return["auto","auto"]},[e,i,I]),O=(0,l.useRef)([0,0]),$=(0,T.a)(),Q=(0,l.useCallback)((e,t)=>$(1e3*e,{format:0===t?"normal":"time"}),[$]),U=(0,l.useCallback)((e,t)=>S?(0,D.ZV)(e,{...S,average:!0,mantissa:0,unit:void 0}):new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:"short"}).format(e),[S]),[J,Z]=(0,l.useState)(),[ee,et]=(0,l.useState)(),ea=(0,l.useRef)(null),er=(0,l.useMemo)(()=>{let e={};return i.forEach(t=>{e[t.dataKey]=t}),e},[i]),en=(0,l.useMemo)(()=>{let e=(0,z.W6)(n[0],K),t=(0,z.W6)(n[1],K);if((0,o.A)(n[1],t)&&!B&&(t=(0,c.A)(t,{seconds:(0,z.qL)(K)})),_===k.t2.StackedBar){let a=(0,z.qL)(K)/2;e=(0,c.A)(e,{seconds:a}),t=(0,d.A)(t,{seconds:a})}return[e.getTime()/1e3,t.getTime()/1e3]},[n,K,B,_]);return(0,r.jsx)(x.u,{width:"100%",height:"100%",minWidth:0,onResize:(e,t)=>{O.current=[e??1,t??1]},className:A?"effect-pulse":"",children:(0,r.jsxs)(V,{width:500,height:300,data:e,syncId:"hdx",syncMethod:"value",onMouseEnter:()=>W(!0),onMouseLeave:e=>{W(!1),Z(void 0),et(void 0),ea.current=null},onMouseDown:e=>{null!=e&&null!=e.chartX&&null!=e.chartY&&(Z(e.activeLabel),ea.current=e.chartX)},onMouseMove:e=>{W(!0),null!=J&&(et(e.activeLabel),t(void 0))},onMouseUp:e=>{let t=0;if(null!=ea.current&&e?.chartX!=null&&(t=Math.abs(e.chartX-ea.current)),e?.activeLabel!=null&&J===e.activeLabel)Z(void 0),et(void 0),ea.current=null;else if(null!=J&&null!=ee&&t>=20){try{E?.(new Date(1e3*Number.parseInt(J<=ee?J:ee)),new Date(1e3*Number.parseInt(ee>=J?ee:J)))}catch(e){console.error("failed to highlight range",e)}Z(void 0),et(void 0),ea.current=null}else Z(void 0),et(void 0),ea.current=null},onClick:(e,a)=>{null!=e&&null!=e.chartX&&null!=e.chartY&&null!=e.activeLabel&&null==J?t({x:e.chartX,y:e.chartY,activeLabel:e.activeLabel,xPerc:e.chartX/O.current[0],yPerc:e.chartY/O.current[1],activePayload:e.activePayload}):t(void 0),a.stopPropagation()},children:[(0,r.jsx)("defs",{children:D.lm.map(e=>(0,r.jsxs)("linearGradient",{id:`time-chart-lin-grad-${X}-${e.replace("#","").toLowerCase()}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:e,stopOpacity:.15}),(0,r.jsx)("stop",{offset:"10%",stopColor:e,stopOpacity:.003})]},e))}),H&&(0,r.jsx)(f.d,{strokeDasharray:"3 3",stroke:"var(--color-border)"}),(0,r.jsx)(y.W,{dataKey:P??"ts_bucket",domain:en,interval:"preserveStartEnd",scale:"time",type:"number",tickFormatter:Q,minTickGap:100,tick:{fontSize:11,fontFamily:"IBM Plex Mono, monospace"}}),(0,r.jsx)(v.h,{width:40,minTickGap:25,tickFormatter:U,tick:{fontSize:11,fontFamily:"IBM Plex Mono, monospace"},domain:G}),Y,null==a&&(0,r.jsx)(j.m,{content:(0,r.jsx)(L,{numberFormat:S,lineDataMap:er,previousPeriodOffsetSeconds:M}),wrapperStyle:{zIndex:1}}),s,J&&ee?(0,r.jsx)(w.T,{x1:J,x2:ee,strokeOpacity:.3}):null,N&&(0,r.jsx)(b.s,{iconSize:10,verticalAlign:"bottom",content:(0,r.jsx)(F,{lineDataMap:er,allLineData:i,selectedSeries:I||new Set,onToggleSeries:R}),offset:-100}),null!=a?(0,r.jsx)(C.e,{x:a.activeLabel,stroke:"#ccc"}):null,null!=u?(0,r.jsx)(C.e,{x:u,stroke:"#ff5d5b",strokeDasharray:"3 3",label:"Event"}):null]})})});function X(e){return[e.dataKey,e]}function H(e,t){return t.value-e.value}},9211:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(6029),n=a(75155),l=a(1909),i=a(38206);function s(e){let t,a,s,o,c,d=(0,n.c)(16),{field:u,fieldState:h}=(0,l.as)(e),{value:m,onChange:g,onBlur:p,name:x,ref:f}=u;d[0]!==e?({onCreate:t,allowDeselect:s,...a}=e,d[0]=e,d[1]=t,d[2]=a,d[3]=s):(t=d[1],a=d[2],s=d[3]);let y=void 0===s||s,v=e.data?.find(e=>"string"==typeof e?e===m:!("value"in e)||e.value===m);d[4]!==y||d[5]!==g||d[6]!==t?(o=e=>{"_create_new_value"===e&&null!=t?t():(null!==e||y)&&g(e)},d[4]=y,d[5]=g,d[6]=t,d[7]=o):o=d[7];let j=o,w=h.error?.message,b=null==v?null:m;return d[8]!==x||d[9]!==p||d[10]!==f||d[11]!==j||d[12]!==a||d[13]!==w||d[14]!==b?(c=(0,r.jsx)(i.l,{...a,error:w,value:b,onChange:j,onBlur:p,name:x,ref:f}),d[8]=x,d[9]=p,d[10]=f,d[11]=j,d[12]=a,d[13]=w,d[14]=b,d[15]=c):c=d[15],c}},11104:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var r=a(6029),n=a(75155),l=a(75828),i=a.n(l),s=a(63085),o=a(76013),c=a(3635);let d=function(e){let t,a,l=(0,n.c)(9),{value:d,onChange:u,options:h}=e;if(l[0]!==u||l[1]!==h||l[2]!==d){let e;l[4]!==u||l[5]!==d?(e=e=>{let{icon:t,label:a,value:n,disabled:l}=e;return(0,r.jsx)(s.m,{label:a,children:(0,r.jsx)(o.M,{size:"xs",me:2,className:i()({"text-brand":d===n,"text-muted-hover":d!==n}),disabled:l,onClick:()=>u(n),children:t})},n)},l[4]=u,l[5]=d,l[6]=e):e=l[6],t=h.map(e),l[0]=u,l[1]=h,l[2]=d,l[3]=t}else t=l[3];return l[7]!==t?(a=(0,r.jsx)(c.Y,{className:"bg-muted px-2 py-2 rounded fs-8",align:"center",gap:0,wrap:"nowrap",children:t}),l[7]=t,l[8]=a):a=l[8],a}},15628:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(6029),n=a(75155),l=a(3635),i=a(34834);let s=function(e){let t,a,s,o,c=(0,n.c)(10),{title:d,toolbarItems:u,children:h,disableReactiveContainer:m}=e;return c[0]===Symbol.for("react.memo_cache_sentinel")?(t={flexGrow:1},c[0]=t):t=c[0],c[1]!==d||c[2]!==u?(a=(!!d||!!u?.length)&&(0,r.jsxs)(l.Y,{justify:"space-between",align:"start",wrap:"nowrap",children:[(0,r.jsx)("span",{style:{flex:1,flexShrink:1,overflow:"hidden"},children:d}),u&&(0,r.jsx)(l.Y,{flex:0,wrap:"nowrap",gap:5,children:u})]}),c[1]=d,c[2]=u,c[3]=a):a=c[3],c[4]!==h||c[5]!==m?(s=m?h:(0,r.jsx)("div",{style:{position:"relative",width:"100%",height:"100%"},children:(0,r.jsx)("div",{style:{position:"absolute",left:0,right:0,bottom:0,top:0},children:h})}),c[4]=h,c[5]=m,c[6]=s):s=c[6],c[7]!==a||c[8]!==s?(o=(0,r.jsxs)(i.B,{h:"100%",w:"100%",style:t,children:[a,s]}),c[7]=a,c[8]=s,c[9]=o):o=c[9],o}},17421:(e,t,a)=>{"use strict";a.d(t,{P:()=>i});var r=a(6029);a(55729);var n=a(87383),l=a(8737);let i=({data:e,filename:t,children:a,className:i,title:s,disabled:o=!1,onExportStart:c,onExportComplete:d,onExportError:u,...h})=>{let{CSVDownloader:m}=(0,n.jG)();return o||0===e.length?(0,r.jsx)("div",{className:i,title:o?"Export disabled":"No data to export",style:{opacity:.5,cursor:"not-allowed"},...h,children:a}):(0,r.jsx)(l.N,{className:i,title:s,onClick:()=>{try{if(0===e.length)return void u?.(Error("No data to export"));c?.(),d?.()}catch(e){u?.(e instanceof Error?e:Error("Export failed"))}},...h,children:(0,r.jsx)(m,{data:e,filename:t,config:{quotes:!0,quoteChar:'"',escapeChar:'"',delimiter:",",header:!0},style:{color:"inherit",textDecoration:"none",background:"none",border:"none",padding:0,cursor:"pointer",display:"block",width:"100%",height:"100%"},children:a})})}},34011:e=>{e.exports={tableWrapper:"Table_tableWrapper__u_gzk",tableBorderless:"Table_tableBorderless__C8oJ4",tableDensityZero:"Table_tableDensityZero___MyCd",tableDensityCompact:"Table_tableDensityCompact__VH49r",tableDensityComfortable:"Table_tableDensityComfortable__yAVt1",tableInteractive:"Table_tableInteractive__g4nmr",emptyMessage:"Table_emptyMessage__Grj3p",tableCellButton:"Table_tableCellButton__q1n1W",cursorColResize:"Table_cursorColResize__8J2BT"}},40228:(e,t,a)=>{"use strict";a.d(t,{S:()=>V});var r=a(6029),n=a(75155),l=a(55729),i=a(82203),s=a.n(i),o=a(11370),c=a(86508),d=a(35467),u=a(76089),h=a(82641),m=a(95991),g=a(37659),p=a(34834),x=a(3635),f=a(92789),y=a(43517),v=a(63085),j=a(25062),w=a(27166),b=a(24589),C=a(78341),k=a(41279),_=a(9841),S=a(45556),A=a(16232),D=a(6876),z=a(43152),T=a(6379),P=a(91021),E=a(57389),N=a(81973),M=a(15628),I=a(35871),L=a(11104),R=a(99082),K=a(88339);function F(e){let t,a,l,i,o,c,d,u,h,j,w,b,C,_,S,A,D,z,T,P,E,N,M,I,L,R=(0,n.c)(70),{activeClickPayload:K,buildSearchUrl:F,onDismiss:V}=e,Y=null!=K&&null!=K.activePayload&&K.activePayload.length>0;if(!Y)return null;if(R[0]!==K.activePayload||R[1]!==K.x||R[2]!==K.y||R[3]!==F||R[4]!==Y||R[5]!==V){let e,n,N,M=K.activePayload.filter(W).sort(H);R[27]===Symbol.for("react.memo_cache_sentinel")?(e={position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:199},R[27]=e):e=R[27],R[28]!==V?(C=(0,r.jsx)(m.Z,{children:(0,r.jsx)("div",{style:e,onClick:e=>{e.stopPropagation(),e.preventDefault(),V()},onMouseDown:X})}),R[28]=V,R[29]=C):C=R[29],l=g.A,E=Y,R[30]!==V?(o=e=>{e||V()},R[30]=V,R[31]=o):o=R[31],c="bottom-start",d=4,u=!0,h=!0,j=!0,w="md";let I=K.x??0,L=K.y??0;R[32]!==I||R[33]!==L?(b=(0,r.jsx)(g.A.Target,{children:(0,r.jsx)("div",{style:{position:"absolute",left:I,top:L,width:1,height:1,pointerEvents:"none"}})}),R[32]=I,R[33]=L,R[34]=b):b=R[34],a=g.A.Dropdown,D="xs",z=300,T=B,P=q,t=p.B,i="xs",R[35]===Symbol.for("react.memo_cache_sentinel")?(_={maxHeight:"220px",overflowY:"auto"},R[35]=_):_=R[35],R[36]!==F?(n=F()??"/search",R[36]=F,R[37]=n):n=R[37],R[38]===Symbol.for("react.memo_cache_sentinel")?(N=(0,r.jsxs)(x.Y,{gap:"xs",children:[(0,r.jsx)(k.A,{size:16}),"View All Events"]}),R[38]=N):N=R[38],R[39]!==V||R[40]!==n?(S=(0,r.jsx)(s(),{"data-testid":"chart-view-events-link",href:n,onClick:V,children:N}),R[39]=V,R[40]=n,R[41]=S):S=R[41],A=M.length>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.c,{}),(0,r.jsx)(y.E,{c:"gray.5",size:"xs",children:"Filter by group:"}),M.map((e,t)=>{let a=F(e.dataKey,e.value);return(0,r.jsx)(v.m,{label:e.name,withArrow:!0,color:"gray",position:"right",children:(0,r.jsx)(s(),{"data-testid":`chart-view-events-link-${e.dataKey}`,href:a??"/search",onClick:V,children:(0,r.jsxs)(x.Y,{gap:"xs",children:[(0,r.jsx)(k.A,{size:12}),(0,r.jsx)(y.E,{size:"xs",truncate:!0,flex:"1",children:e.name})]})})},t)})]}),R[0]=K.activePayload,R[1]=K.x,R[2]=K.y,R[3]=F,R[4]=Y,R[5]=V,R[6]=t,R[7]=a,R[8]=l,R[9]=i,R[10]=o,R[11]=c,R[12]=d,R[13]=u,R[14]=h,R[15]=j,R[16]=w,R[17]=b,R[18]=C,R[19]=_,R[20]=S,R[21]=A,R[22]=D,R[23]=z,R[24]=T,R[25]=P,R[26]=E}else t=R[6],a=R[7],l=R[8],i=R[9],o=R[10],c=R[11],d=R[12],u=R[13],h=R[14],j=R[15],w=R[16],b=R[17],C=R[18],_=R[19],S=R[20],A=R[21],D=R[22],z=R[23],T=R[24],P=R[25],E=R[26];return R[42]!==t||R[43]!==i||R[44]!==_||R[45]!==S||R[46]!==A?(N=(0,r.jsxs)(t,{gap:i,style:_,children:[S,A]}),R[42]=t,R[43]=i,R[44]=_,R[45]=S,R[46]=A,R[47]=N):N=R[47],R[48]!==a||R[49]!==N||R[50]!==D||R[51]!==z||R[52]!==T||R[53]!==P?(M=(0,r.jsx)(a,{p:D,maw:z,onClick:T,onMouseDown:P,children:N}),R[48]=a,R[49]=N,R[50]=D,R[51]=z,R[52]=T,R[53]=P,R[54]=M):M=R[54],R[55]!==l||R[56]!==o||R[57]!==c||R[58]!==d||R[59]!==u||R[60]!==h||R[61]!==j||R[62]!==w||R[63]!==b||R[64]!==M||R[65]!==E?(I=(0,r.jsxs)(l,{opened:E,onChange:o,position:c,offset:d,withinPortal:u,closeOnEscape:h,withArrow:j,shadow:w,children:[b,M]}),R[55]=l,R[56]=o,R[57]=c,R[58]=d,R[59]=u,R[60]=h,R[61]=j,R[62]=w,R[63]=b,R[64]=M,R[65]=E,R[66]=I):I=R[66],R[67]!==C||R[68]!==I?(L=(0,r.jsxs)(r.Fragment,{children:[C,I]}),R[67]=C,R[68]=I,R[69]=L):L=R[69],L}function q(e){return e.stopPropagation()}function B(e){return e.stopPropagation()}function X(e){e.stopPropagation()}function H(e,t){return t.value-e.value}function W(e){return null!=e.value&&!e.dataKey?.endsWith(z.wt)}let V=(0,l.memo)(function({config:e,disableQueryChunking:t,disableDrillDown:a,enableParallelQueries:n,enabled:i=!0,logReferenceTimestamp:s,onTimeRangeSelect:m,queryKeyPrefix:g,referenceLines:p,setDisplayType:f,showDisplaySwitcher:v=!0,showLegend:k=!0,sourceId:q,hiddenSeries:B,title:X,toolbarPrefix:H,toolbarSuffix:W,showMVOptimizationIndicator:V=!0,showDateRangeIndicator:Y=!0}){let[G,O]=(0,C.j)(!1),[$,Q]=(0,l.useState)(new Set),U=(0,l.useCallback)((e,t)=>{Q(a=>{let r=new Set(a);return t?r.has(e)?r.delete(e):r.add(e):r.has(e)&&1===r.size?r.clear():(r.clear(),r.add(e)),r})},[]),J=e.dateRange,{displayType:Z,dateRange:ee,granularity:et,fillNulls:ea}=(0,z.GJ)(e),er=(0,l.useMemo)(()=>(0,z.O7)(e),[e]),{data:en}=(0,E.d)(er),{data:el,isLoading:ei}=D.Ay.useMe(),{data:es,isLoading:eo,isError:ec,error:ed,isPlaceholderData:eu,isSuccess:eh}=(0,P.HD)(er,{placeholderData:e=>e,queryKey:[g,er,"chunked",{disableQueryChunking:t,enableParallelQueries:n,parallelizeWhenPossible:el?.team?.parallelizeWhenPossible}],enabled:i&&!ei,enableQueryChunking:!t,enableParallelQueries:n&&el?.team?.parallelizeWhenPossible}),em=(0,l.useMemo)(()=>{let e=!1===er.alignDateRangeToGranularity?(0,z.r4)(J):(0,u.Ol)((0,z.r4)(J),er.granularity);return{...er,dateRange:e}},[er,J]),eg=(0,l.useMemo)(()=>e.compareToPreviousPeriod?(0,o.A)(ee[0],em.dateRange[0]):void 0,[e.compareToPreviousPeriod,ee,em.dateRange]),{data:ep,isLoading:ex}=(0,P.HD)(em,{placeholderData:e=>e,queryKey:[g,em,"chunked"],enabled:!!(i&&e.compareToPreviousPeriod),enableQueryChunking:!0});(0,l.useEffect)(()=>{!ec&&G&&O.close()},[ec,G,O]);let ef=eo||ex||!es?.isComplete||e.compareToPreviousPeriod&&!ep?.isComplete||eu,{data:ey}=(0,N.Fo)({id:q||e.source}),{graphResults:ev,timestampColumn:ej,groupColumns:ew,valueColumns:eb,isSingleValueColumn:eC,lineData:ek}=(0,l.useMemo)(()=>{let t={graphResults:[],timestampColumn:void 0,lineData:[],groupColumns:[],valueColumns:[],isSingleValueColumn:!0};if(null==es||!eh)return t;try{return(0,z.zg)({currentPeriodResponse:es,previousPeriodResponse:e.compareToPreviousPeriod?ep:void 0,dateRange:ee,granularity:et,generateEmptyBuckets:(0,z.xu)(ea),source:ey,hiddenSeries:B,previousPeriodOffsetSeconds:eg})}catch(e){return console.error(e),t}},[es,ee,et,eh,ea,ey,e.compareToPreviousPeriod,ep,B,eg]),[e_,eS]=(0,l.useState)(Z),eA=(0,l.useMemo)(()=>f?Z:e_,[e_,Z,f]),eD=(0,l.useCallback)(e=>{f?f(e):eS(e)},[f]);(0,l.useEffect)(()=>{e.compareToPreviousPeriod&&eS(h.t2.Line)},[e.compareToPreviousPeriod]);let[ez,eT]=(0,l.useState)(void 0),eP=(0,l.useCallback)(e=>{null==ey||a||eT(e)},[ey,a]),eE=(0,l.useMemo)(()=>ez?.activeLabel!=null?new Date(1e3*Number.parseInt(ez.activeLabel)):void 0,[ez]),eN=(0,l.useCallback)((t,a)=>{let r;if(null==eE||null==ey)return null;let n=t?.split(z.Hx),l=[];if(n?.length&&ew?.length&&(!(eC??!0)||(ew?.length??0)===0&&(eb?.length??0)>0?n.slice(1):n).forEach((e,t)=>{null!=ew[t]&&l.push({column:ew[t],value:e})}),a&&Array.isArray(e.select)&&e.select.length>0){let t;if((eC??!0)&&1===e.select.length){let a=e.select[0],r="string"==typeof a?void 0:a.aggFn;z.gT.find(e=>e.value===r)?.isAttributable!==!1&&(t="string"==typeof a?a:a.valueExpression)}else if(n?.length&&(eb?.length??0)>0){let a=n[0],r=eb?.findIndex(e=>e===a);if(null!=r&&r>=0&&re.value===n)?.isAttributable!==!1&&(t="string"==typeof a?a:a.valueExpression)}}t&&(r={expression:t,value:a})}let i=(0,c.A)(eE,{seconds:(0,z.qL)(et)});return(0,z.VH)({source:ey,config:e,dateRange:[eE,i],groupFilters:l,valueRangeFilter:r})},[eE,e,et,ey,ew,eb,eC]),eM=(0,l.useMemo)(()=>{let t=[];H&&H.length>0&&t.push(...H),ey&&V&&t.push((0,r.jsx)(R.A,{config:er,source:ey,variant:"icon"},"db-time-chart-mv-indicator"));let a=en?.optimizedConfig?.dateRange,n=!1!==er.alignDateRangeToGranularity;if(Y&&(a||n)){let l=n?void 0:en?.explanations.find(e=>e.success)?.mvConfig.minGranularity;t.push((0,r.jsx)(I.A,{originalDateRange:e.dateRange,effectiveDateRange:a||er.dateRange,mvGranularity:l},"db-time-chart-date-range-indicator"))}return v&&t.push((0,r.jsx)(L.A,{value:eA,onChange:eD,options:[{value:h.t2.Line,label:"Display as Line Chart",icon:(0,r.jsx)(_.A,{})},{value:h.t2.StackedBar,label:e.compareToPreviousPeriod?"Bar Chart Unavailable When Comparing to Previous Period":"Display as Bar Chart",icon:(0,r.jsx)(S.A,{}),disabled:e.compareToPreviousPeriod}]},"db-time-chart-display-switcher")),W&&W.length>0&&t.push(...W),t},[e,eA,eD,v,ey,H,W,V,Y,en,er]);return(0,r.jsx)(M.A,{title:X,toolbarItems:eM,children:eo&&!es?(0,r.jsx)("div",{className:"d-flex h-100 w-100 align-items-center justify-content-center text-muted",children:"Loading Chart Data..."}):ec?(0,r.jsxs)("div",{className:"h-100 w-100 d-flex g-1 flex-column align-items-center justify-content-center text-muted overflow-auto",children:[(0,r.jsx)(y.E,{ta:"center",size:"sm",mt:"sm",children:"Error loading chart, please check your query or try again later."}),(0,r.jsx)(j.$,{className:"mx-auto",variant:"danger",onClick:()=>O.open(),children:(0,r.jsxs)(x.Y,{gap:"xxs",children:[(0,r.jsx)(A.A,{size:16}),"See Error Details"]})}),(0,r.jsx)(w.a,{opened:G,onClose:()=>O.close(),title:"Error Details",children:(0,r.jsxs)(x.Y,{align:"start",children:[(0,r.jsx)(y.E,{size:"sm",ta:"center",children:"Error Message:"}),(0,r.jsx)(b.C,{block:!0,style:{whiteSpace:"pre-wrap"},children:ed.message}),ed instanceof d.p1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y.E,{my:"sm",size:"sm",ta:"center",children:"Sent Query:"}),(0,r.jsx)(K.V,{data:ed?.query})]})]})})]}):0===ev.length?(0,r.jsx)("div",{className:"d-flex h-100 w-100 align-items-center justify-content-center text-muted",children:"No data found within time range."}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(F,{activeClickPayload:ez,buildSearchUrl:eN,onDismiss:()=>eT(void 0)}),(0,r.jsx)(T.FC,{dateRange:ee,displayType:eA,graphResults:ev,isClickActive:ez,lineData:ek,isLoading:ef,logReferenceTimestamp:s,numberFormat:e.numberFormat,onTimeRangeSelect:m,referenceLines:p,setIsClickActive:eP,showLegend:k,timestampKey:ej?.name,previousPeriodOffsetSeconds:eg,selectedSeriesNames:$,onToggleSeries:U,granularity:et,dateRangeEndInclusive:er.dateRangeEndInclusive})]})})})},43736:e=>{e.exports={legend:"HDXLineChart_legend__lPU01",legendItem:"HDXLineChart_legendItem____Qwu",legendMoreLink:"HDXLineChart_legendMoreLink__16Wq1",legendTooltipContent:"HDXLineChart_legendTooltipContent__tHXLT",chartTooltip:"HDXLineChart_chartTooltip__hEAmh",chartTooltipHeader:"HDXLineChart_chartTooltipHeader__l9Fb7",chartTooltipContent:"HDXLineChart_chartTooltipContent__vtVBK"}},48423:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var r=a(6029),n=a(75828),l=a.n(n),i=a(3635),s=a(43517),o=a(25062),c=a(97767),d=a(67872),u=a(2485),h=a(79220),m=a(68593),g=a(34011),p=a.n(g);function x({isLast:e,header:t,lastItemButtons:a}){return(0,r.jsx)("th",{className:"overflow-hidden",colSpan:t.colSpan,style:{width:t.getSize()===m.k?"100%":t.getSize(),minWidth:t.getSize()===m.k?0:t.getSize()},children:(0,r.jsxs)(i.Y,{wrap:"nowrap",gap:0,align:"center",children:[t.column.getCanSort()?(0,r.jsx)(o.$,{size:"xxs",p:1,variant:"subtle",color:"gray",onClick:t.column.getToggleSortingHandler(),flex:"1",justify:"space-between","data-testid":"raw-log-table-sort-button",children:(0,r.jsxs)(r.Fragment,{children:[t.isPlaceholder?null:(0,r.jsx)(s.E,{truncate:"end",size:"xs",flex:"1",children:(0,h.Kv)(t.column.columnDef.header,t.getContext())}),t.column.getIsSorted()&&(0,r.jsx)("div",{"data-testid":"raw-log-table-sort-indicator",className:"asc"===t.column.getIsSorted()?"sorted-asc":"sorted-desc",children:(0,r.jsx)(r.Fragment,{children:"asc"===t.column.getIsSorted()?(0,r.jsx)(c.A,{size:12}):(0,r.jsx)(d.A,{size:12})})})]})}):(0,r.jsx)(s.E,{truncate:"end",size:"xs",flex:"1",children:(0,h.Kv)(t.column.columnDef.header,t.getContext())}),(0,r.jsxs)(i.Y,{gap:0,wrap:"nowrap",align:"center",children:[t.column.getCanResize()&&!e&&(0,r.jsx)("div",{onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),className:l()(`resizer ${p().cursorColResize}`,t.column.getIsResizing()&&"isResizing"),children:(0,r.jsx)(u.A,{size:12})}),e&&(0,r.jsx)(i.Y,{gap:2,wrap:"nowrap",children:a})]})]})},t.id)}},55024:(e,t,a)=>{"use strict";a.d(t,{u:()=>n});var r=a(75155);let n=(e,t,a)=>{let n,l,i=(0,r.c)(14);i[0]!==a?(n=void 0===a?{}:a,i[0]=a,i[1]=n):n=i[1];let{maxRows:s,groupColumnName:o}=n,c=void 0===s?4e3:s;e:{let a,r;if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length){let e,t;i[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],i[2]=e):e=i[2],i[3]!==c?(t={csvData:e,maxRows:c,isDataEmpty:!0,actualRowCount:0,isLimited:!1},i[3]=c,i[4]=t):t=i[4],l=t;break e}i[5]!==t||i[6]!==e||i[7]!==o||i[8]!==c?(a=((e,t,a={})=>{let{groupColumnName:r}=a;if(!Array.isArray(e))return console.warn("CSV Export: data must be an array"),[];if(!Array.isArray(t)||0===t.length)return console.warn("CSV Export: columns must be a non-empty array"),[];let n=t.filter(e=>!e||"string"!=typeof e.dataKey||"string"!=typeof e.displayName);return n.length>0?(console.warn("CSV Export: Invalid column structure detected",n),[]):e.filter(e=>null!=e&&"object"==typeof e).map((e,a)=>{try{return{...null!=r?{[r]:e.group??""}:{},...Object.fromEntries(t.map(({displayName:t,dataKey:a})=>{let r=e[a];return null==r?[t,""]:"object"==typeof r?[t,JSON.stringify(r)]:[t,String(r)]}))}}catch(e){return console.warn(`CSV Export: Error processing row ${a}:`,e),{}}}).filter(e=>Object.keys(e).length>0)})(e.slice(0,c),t,{groupColumnName:o}),i[5]=t,i[6]=e,i[7]=o,i[8]=c,i[9]=a):a=i[9];let n=a,s=e.length>c;i[10]!==n||i[11]!==c||i[12]!==s?(r={csvData:n,maxRows:c,isDataEmpty:!1,actualRowCount:n.length,isLimited:s},i[10]=n,i[11]=c,i[12]=s,i[13]=r):r=i[13],l=r}return l}},68593:(e,t,a)=>{"use strict";a.d(t,{k:()=>r});let r=99999},78744:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var r=a(75155),n=a(67264),l=a.n(n),i=a(67270),s=a(76089),o=a(93251),c=a(95099),d=a(6876),u=a(49672),h=a(78550),m=a(57389),g=a(81973),p=a(92917),x=a(69519);let f=async({queryKey:e,pageParam:t,signal:a,meta:r})=>{if(null==r)throw Error("Query missing client meta");let{queryClient:n,metadata:l,hasPreviousQueries:o,optimizedConfig:c,source:d}=r,h=!o||t.offset>0||t.windowIndex>0,m=e[2],g=(0,u.W)({queryTimeout:m}),p=e[1],f=c??p,y=(0,s.jN)(f)?function(e,t){let[a,r]=e.dateRange,n=((0,s.es)(e.orderBy)?(0,x.Me)(a,r):(0,x.so)(a,r))[t.windowIndex];if(null==n)throw Error("Invalid time window for page param");return n}(f,t):{startTime:f.dateRange[0],endTime:f.dateRange[1],windowIndex:0,direction:"DESC"},v={...f,dateRange:[y.startTime,y.endTime],limit:{limit:f.limit?.limit,offset:t.offset}},j=await (0,i.PV)(v,l,d?.querySettings),w=m?new AbortController:void 0;w&&m&&setTimeout(()=>w.abort(),1e3*m);let b=(await g.query({query:j.sql,query_params:j.params,format:"JSONCompactEachRowWithNamesAndTypes",abort_signal:w?.signal||a,connectionId:f.connection})).stream().getReader(),C=[];h&&n.setQueryData(e,e=>{let a={data:[],meta:[],chSql:{sql:"",params:{}},window:y};return null==e?{pages:[a],pageParams:[t]}:{pages:[...e.pages,a],pageParams:[...e.pageParams,t]}});let k=[],_=[];async function S(){let{done:a,value:r}=await b.read();if(!a&&null!=r){if(C.push(...r),C.length>=2){let a=r;if(0===k.length){let e=C[0].json(),t=C[1].json();if(e.length!==t.length)throw Error("Invalid JSONCompactEachRowWithNamesAndTypes header rows");for(let a=0;a{if(null==e)return{pages:[{data:l,meta:k,chSql:j,window:y}],pageParams:[t]};let a=e.pages.slice(0,-1),r=e.pages[e.pages.length-1];return{pages:[...a,{...r,data:[...r.data??[],...l],meta:k,chSql:j,window:y}],pageParams:e.pageParams}})}return await S()}}function A(){n.setQueryData(e,e=>{if(null!=e)return{pages:e.pages.slice(0,-1),pageParams:e.pageParams.slice(0,-1)}})}try{await S()}catch(e){throw h&&A(),e}if(!h)return{data:_,meta:k,chSql:j,window:y};let D=n.getQueryData(e);if(null==D)throw Error("Data not found in cache");let{pages:z}=D,T=z[z.length-1];return A(),T};function y(e,t){var a;let n,i,u,y,j,w,b,C,k,_,S=(0,r.c)(35),{isLive:A,enabled:D,queryKeyPrefix:z}=void 0===t?{}:t,T=void 0===D||D,P=void 0===z?"":z,{data:E,isLoading:N}=d.Ay.useMe(),M=[P,e,E?.team?.queryTimeout],I=(0,o.jE)(),L=(0,h.Ge)(),R=I.getQueriesData({queryKey:[P,(0,p.cJ)(e,["dateRange"])]}).filter(v).length>0,K=!!T;S[0]!==K?(n={enabled:K,placeholderData:void 0},S[0]=K,S[1]=n):n=S[1];let{data:F,isLoading:q}=(0,m.d)(e,n),B=e?.source;S[2]!==B?(i={id:B},S[2]=B,S[3]=i):i=S[3];let{data:X,isLoading:H}=(0,g.Fo)(i);S[4]!==A?(u=e=>A?e:void 0,S[4]=A,S[5]=u):u=S[5];let W=T&&!N&&!q&&!H;S[6]===Symbol.for("react.memo_cache_sentinel")?(y={windowIndex:0,offset:0},S[6]=y):y=S[6],S[7]!==e?(j=(t,a)=>(function(e,t,a){if(null==e)return;let[r,n]=a.dateRange,l=(0,s.es)(a.orderBy)?(0,x.Me)(r,n):(0,x.so)(r,n),i=e.window,o=t.filter(e=>e.window.windowIndex===i.windowIndex).reduce((e,t)=>e+t.data.length,0);if(e.data.length>0)return{windowIndex:i.windowIndex,offset:o};let c=(0,s.jN)(a),d=i.windowIndex+1;if(c&&de.data),chSql:a.pages[0].chSql,window:a.pages[a.pages.length-1].window},S[25]=O,S[26]=k):k=S[26];let et=k,ea=U||N||q,er=ee||N||q;return S[27]!==Z||S[28]!==$||S[29]!==et||S[30]!==Q||S[31]!==J||S[32]!==ea||S[33]!==er?(_={isError:J,error:Z,data:et,fetchNextPage:$,hasNextPage:Q,isFetching:ea,isLoading:er},S[27]=Z,S[28]=$,S[29]=et,S[30]=Q,S[31]=J,S[32]=ea,S[33]=er,S[34]=_):_=S[34],_}function v(e){let[,t]=e;return null!=t}},88339:(e,t,a)=>{"use strict";a.d(t,{A:()=>y,V:()=>f});var r=a(6029),n=a(75155),l=a(55729),i=a(65234),s=a.n(i),o=a(15215),c=a(73854),d=a(25062),u=a(22623),h=a(90515),m=a(45172),g=a(95352),p=a(91021);function x(e){let t,a,i,o,c=(0,n.c)(12),{text:u,size:g}=e,p=void 0===g?"md":g,[x,f]=(0,l.useState)(!1),y="xs"===p?14:16,v="xs"===p?"compact-xs":"sm",j=(void 0===u?"":u)??"";c[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>f(!0),c[0]=t):t=c[0];let w=x?"light":"default";c[1]!==x||c[2]!==y?(a=x?(0,r.jsx)(h.A,{size:y,className:"me-2"}):(0,r.jsx)(m.A,{size:y,className:"me-2"}),c[1]=x,c[2]=y,c[3]=a):a=c[3];let b=x?"Copied!":"Copy";return c[4]!==v||c[5]!==w||c[6]!==a||c[7]!==b?(i=(0,r.jsxs)(d.$,{variant:w,size:v,className:"position-absolute top-0 end-0",children:[a,b]}),c[4]=v,c[5]=w,c[6]=a,c[7]=b,c[8]=i):i=c[8],c[9]!==j||c[10]!==i?(o=(0,r.jsx)(s(),{text:j,onCopy:t,children:i}),c[9]=j,c[10]=i,c[11]=o):o=c[11],o}function f(e){let t,a,l,i,s,d,u=(0,n.c)(14),{data:h,formatData:m,enableCopy:p,copyButtonSize:f}=e,y=void 0===m||m,v=void 0!==p&&p,j=void 0===f?"md":f;u[0]!==h||u[1]!==y?(t=y?function(e){try{if(null!=e)return(0,c.GP)(e);return e}catch{return e}}(h):h,u[0]=h,u[1]=y,u[2]=t):t=u[2];let w=t;return u[3]===Symbol.for("react.memo_cache_sentinel")?(a={lineNumbers:!1,foldGutter:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1},l=[(0,o.ll)()],u[3]=a,u[4]=l):(a=u[3],l=u[4]),u[5]!==w?(i=(0,r.jsx)(g.Ay,{indentWithTab:!1,value:w,theme:"dark",basicSetup:a,extensions:l,editable:!1}),u[5]=w,u[6]=i):i=u[6],u[7]!==j||u[8]!==w||u[9]!==v?(s=v&&(0,r.jsx)(x,{text:w,size:j}),u[7]=j,u[8]=w,u[9]=v,u[10]=s):s=u[10],u[11]!==i||u[12]!==s?(d=(0,r.jsxs)("div",{className:"position-relative",children:[i,s]}),u[11]=i,u[12]=s,u[13]=d):d=u[13],d}function y(e){let t,a,l=(0,n.c)(3),{config:i}=e,{data:s}=(0,p.zu)(i);return l[0]===Symbol.for("react.memo_cache_sentinel")?(t={overflow:"hidden"},l[0]=t):t=l[0],l[1]!==s?(a=(0,r.jsx)(u.t,{flex:"auto",shadow:"none",radius:"sm",style:t,children:(0,r.jsx)(f,{data:s,formatData:!1})}),l[1]=s,l[2]=a):a=l[2],a}},99082:(e,t,a)=>{"use strict";a.d(t,{A:()=>M});var r=a(6029),n=a(75155),l=a(55729),i=a(63085),s=a(76013),o=a(43085),c=a(15683),d=a(27798),u=a(57389),h=a(27166),m=a(43517),g=a(45005),p=a(3635),x=a(39603),f=a(76089),y=a(34834),v=a(48378),j=a(46181),w=a(11088),b=a(67747),C=a(7565);function k({config:e}){let t=(0,l.useMemo)(()=>(0,f.AB)(e.dimensionColumns),[e.dimensionColumns]),a=(0,l.useMemo)(()=>{let t=new Map;for(let{sourceColumn:a="",aggFn:r}of e.aggregatedColumns)t.has(a)?t.get(a)?.push(r):t.set(a,[r]);return Array.from(t.entries()).sort(([e],[t])=>e.localeCompare(t))},[e.aggregatedColumns]);return(0,r.jsxs)(y.B,{gap:"md",children:[(0,r.jsxs)(v.x,{columns:2,children:[(0,r.jsxs)(v.x.Col,{span:1,children:[(0,r.jsxs)(p.Y,{align:"center",mb:"xs",gap:"xs",children:[(0,r.jsx)(m.E,{size:"sm",fw:500,children:"Granularity"}),(0,r.jsx)(i.m,{multiline:!0,maw:400,label:` + The size of the time buckets into which data is pre-aggregated. + Aggregate values can vary slightly between materialized views and the base source + table when the selected time range does not align with the view's granularity. + `,children:(0,r.jsx)(b.A,{size:16})})]}),(0,r.jsx)(j.a,{children:e.minGranularity})]}),e.minDate&&(0,r.jsxs)(v.x.Col,{span:1,children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"xs",children:"Minimum Date"}),(0,r.jsx)(j.a,{children:(0,r.jsx)(C.H,{value:e.minDate,format:"withYear"})})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"xs",children:"Available Group and Filter Columns"}),(0,r.jsx)(p.Y,{gap:"xs",children:t.map(e=>(0,r.jsx)(j.a,{children:e},e))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"sm",children:"Available Aggregated Columns"}),(0,r.jsxs)(w.X,{children:[(0,r.jsx)(w.X.Thead,{children:(0,r.jsxs)(w.X.Tr,{children:[(0,r.jsx)(w.X.Th,{children:"Column"}),(0,r.jsx)(w.X.Th,{children:"Aggregation"})]})}),(0,r.jsx)(w.X.Tbody,{children:a.map(([e,t])=>(0,r.jsxs)(w.X.Tr,{children:[(0,r.jsx)(w.X.Td,{children:e}),(0,r.jsx)(w.X.Td,{children:(0,r.jsx)(p.Y,{gap:"xs",children:t.map(e=>(0,r.jsx)(j.a,{children:e},e))})})]},e))})]})]})]})}function _(e){return`mv-${e.databaseName}-${e.tableName}`}function S(e){let t,a,l,s,c,d,u,f,y,v,j,w,b=(0,n.c)(33),{mvConfigs:C,explanations:S,opened:T,onClose:P}=e,E=C.length>1;b[0]!==S?(t=new Map(S.map(z)),b[0]=S,b[1]=t):t=b[1];let N=t;if(b[2]!==S||b[3]!==E||b[4]!==P||b[5]!==T){let e=S.find(D)?.mvConfig;l=h.a,c=E?"Materialized Views":"Materialized View",d=T,u=P,f="lg";let t=E?"materialized views":"a materialized view";b[14]!==t?(y=(0,r.jsxs)(m.E,{size:"sm",mb:"sm",children:["This source is configured with"," ",t," for accelerating some aggregations."]}),b[14]=t,b[15]=y):y=b[15],a=g.n,s=e&&_(e),b[2]=S,b[3]=E,b[4]=P,b[5]=T,b[6]=a,b[7]=l,b[8]=s,b[9]=c,b[10]=d,b[11]=u,b[12]=f,b[13]=y}else a=b[6],l=b[7],s=b[8],c=b[9],d=b[10],u=b[11],f=b[12],y=b[13];if(b[16]!==N||b[17]!==C){let e;b[19]!==N?(e=e=>{let t=_(e),a=N.get(t),n=!!a?.errors.length,l=a?.success,s=a?.rowEstimate?.toLocaleString()??"N/A";return(0,r.jsxs)(g.n.Item,{value:t,children:[(0,r.jsx)(g.n.Control,{px:"xs",children:(0,r.jsxs)(p.Y,{justify:"space-between",children:[(0,r.jsx)(m.E,{children:e.tableName}),l?(0,r.jsx)(i.m,{label:`Estimated rows scanned: ${s}`,children:(0,r.jsx)(o.E,{me:"md",color:"var(--color-bg-success)",children:"Active"})}):n?(0,r.jsx)(i.m,{label:"This materialized view is not compatible with the selected query.",children:(0,r.jsx)(o.E,{me:"md",color:"var(--color-bg-warning)",children:"Incompatible"})}):a?(0,r.jsx)(i.m,{label:`Estimated rows scanned: ${s}`,children:(0,r.jsx)(o.E,{me:"md",color:"gray",children:"Skipped"})}):null]})}),(0,r.jsx)(g.n.Panel,{children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k,{config:e}),n&&(0,r.jsxs)(x.F,{color:"red",mt:"xs",children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"xs",children:"The query cannot be accelerated using this materialized view for the following reason(s):"}),a.errors.map(A)]})]})})]},t)},b[19]=N,b[20]=e):e=b[20],v=C.map(e),b[16]=N,b[17]=C,b[18]=v}else v=b[18];return b[21]!==a||b[22]!==s||b[23]!==v?(j=(0,r.jsx)(a,{defaultValue:s,children:v}),b[21]=a,b[22]=s,b[23]=v,b[24]=j):j=b[24],b[25]!==l||b[26]!==c||b[27]!==d||b[28]!==u||b[29]!==f||b[30]!==y||b[31]!==j?(w=(0,r.jsxs)(l,{title:c,opened:d,onClose:u,size:f,children:[y,j]}),b[25]=l,b[26]=c,b[27]=d,b[28]=u,b[29]=f,b[30]=y,b[31]=j,b[32]=w):w=b[32],w}function A(e,t){return(0,r.jsx)(m.E,{size:"sm",mt:"xs",children:e},t)}function D(e){return e.success}function z(e){return[_(e.mvConfig),e]}let T="var(--color-bg-warning)",P="var(--color-bg-success)";function E(e){let t,a=(0,n.c)(3),{isInWarningState:l,onClick:o}=e;return a[0]!==l||a[1]!==o?(t=l?(0,r.jsx)(i.m,{label:"Not Accelerated",children:(0,r.jsx)(s.M,{onClick:o,children:(0,r.jsx)(c.A,{size:16,color:T})})}):(0,r.jsx)(i.m,{label:"Accelerated",children:(0,r.jsx)(s.M,{onClick:o,children:(0,r.jsx)(d.A,{size:18,color:P})})}),a[0]=l,a[1]=o,a[2]=t):t=a[2],t}function N(e){let t,a=(0,n.c)(4),{isInWarningState:l,onClick:i}=e,s=l?T:P,c=l?"Not Accelerated":"Accelerated";return a[0]!==i||a[1]!==s||a[2]!==c?(t=(0,r.jsx)(o.E,{color:s,onClick:i,className:"cursor-pointer",children:c}),a[0]=i,a[1]=s,a[2]=c,a[3]=t):t=a[3],t}function M(e){let t,a,i,s,o=(0,n.c)(12),{source:c,config:d,variant:h}=e,m=void 0===h?"badge":h,[g,p]=(0,l.useState)(!1),{data:x}=(0,u.d)(d);o[0]!==c.materializedViews?(t=c.materializedViews??[],o[0]=c.materializedViews,o[1]=t):t=o[1];let f=t;if(!f?.length)return null;let y=!!d&&!!x&&!x?.optimizedConfig;return o[2]!==y||o[3]!==m?(a="icon"===m?(0,r.jsx)(E,{isInWarningState:y,onClick:()=>p(!0)}):(0,r.jsx)(N,{isInWarningState:y,onClick:()=>p(!0)}),o[2]=y,o[3]=m,o[4]=a):a=o[4],o[5]!==x||o[6]!==g||o[7]!==f?(i=x&&(0,r.jsx)(S,{mvConfigs:f,explanations:x.explanations,opened:g,onClose:()=>p(!1)}),o[5]=x,o[6]=g,o[7]=f,o[8]=i):i=o[8],o[9]!==a||o[10]!==i?(s=(0,r.jsxs)(r.Fragment,{children:[a,i]}),o[9]=a,o[10]=i,o[11]=s):s=o[11],s}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/3234-91be2b1b16b8a12e.js b/out/_next/static/chunks/3234-91be2b1b16b8a12e.js deleted file mode 100644 index a42a28a..0000000 --- a/out/_next/static/chunks/3234-91be2b1b16b8a12e.js +++ /dev/null @@ -1,5 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3234],{6379:(e,t,a)=>{"use strict";a.d(t,{FC:()=>B,yI:()=>F});var r=a(6029),l=a(75155),n=a(55729),i=a(75828),s=a.n(i),o=a(25605),c=a(43465),d=a(86508),u=a(7913),h=a(92205),m=a(56721),g=a(2055),p=a(13297),x=a(40684),f=a(8454),y=a(2893),v=a(47122),j=a(31292),w=a(88140),b=a(64370),C=a(93463),k=a(82641),A=a(37659),S=a(49109),_=a(33958),D=a(92917),z=a(43152),T=a(7565),E=a(43736),P=a.n(E);let N=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:2}),M=e=>{let t,a,n=(0,l.c)(7),{current:i,previous:s}=e;if(n[0]!==i||n[1]!==s){a=Symbol.for("react.early_return_sentinel");e:{let e,l,o=0===s?0===i?0:void 0:(i-s)/s;if(void 0==o){a=null;break e}let c=o>0?S.A:_.A;n[4]===Symbol.for("react.memo_cache_sentinel")?(e={display:"inline-flex",alignItems:"center",gap:0},n[4]=e):e=n[4],n[5]!==c?(l=(0,r.jsx)(c,{size:12}),n[5]=c,n[6]=l):l=n[6],t=(0,r.jsxs)("span",{style:e,children:["(",l,N.format(Math.abs(o)),")"]})}n[0]=i,n[1]=s,n[2]=t,n[3]=a}else t=n[2],a=n[3];return a!==Symbol.for("react.early_return_sentinel")?a:t},I=(0,n.memo)(e=>{let t,a,n,i,s,o,c,d,u=(0,l.c)(24),{p:h,previous:m,numberFormat:g}=e;u[0]!==h.color||u[1]!==h.opacity||u[2]!==h.strokeDasharray?(t=(0,r.jsx)("div",{children:(0,r.jsx)("svg",{width:"12",height:"4",children:(0,r.jsx)("line",{x1:"0",y1:"2",x2:"12",y2:"2",stroke:h.color,opacity:h.opacity,strokeDasharray:h.strokeDasharray})})}),u[0]=h.color,u[1]=h.opacity,u[2]=h.strokeDasharray,u[3]=t):t=u[3],u[4]!==h.color?(a={color:h.color},u[4]=h.color,u[5]=a):a=u[5];let p=h.name??h.dataKey;return u[6]!==p?(n=(0,D.kU)(p,50),u[6]=p,u[7]=n):n=u[7],u[8]!==a||u[9]!==n?(i=(0,r.jsx)("span",{style:a,children:n}),u[8]=a,u[9]=n,u[10]=i):i=u[10],u[11]!==g||u[12]!==h.value?(s=g?(0,D.ZV)(h.value,g):h.value,u[11]=g,u[12]=h.value,u[13]=s):s=u[13],u[14]!==h.value||u[15]!==m?(o=m&&(0,r.jsx)(M,{current:h.value,previous:m?.value}),u[14]=h.value,u[15]=m,u[16]=o):o=u[16],u[17]!==i||u[18]!==s||u[19]!==o?(c=(0,r.jsxs)("div",{children:[i,": ",s," ",o]}),u[17]=i,u[18]=s,u[19]=o,u[20]=c):c=u[20],u[21]!==t||u[22]!==c?(d=(0,r.jsxs)("div",{className:"d-flex gap-2 items-center justify-center",children:[t,c]}),u[21]=t,u[22]=c,u[23]=d):d=u[23],d}),L=(0,u.withErrorBoundary)((0,n.memo)(e=>{let t,a=(0,l.c)(24),{active:n,payload:i,label:s,numberFormat:o,lineDataMap:c,previousPeriodOffsetSeconds:d}=e;a[0]!==i?(t=new Map(i.map(X)),a[0]=i,a[1]=t):t=a[1];let u=t;if(n&&i&&i.length){let e,t,l,n,h,m,g=1e3*s;if(a[2]!==g?(e=(0,r.jsx)(T.H,{value:g}),a[2]=g,a[3]=e):e=a[3],a[4]!==s||a[5]!==d?(t=null!=d&&(0,r.jsxs)(r.Fragment,{children:[" (vs ",(0,r.jsx)(T.H,{value:(s-d)*1e3}),")"]}),a[4]=s,a[5]=d,a[6]=t):t=a[6],a[7]!==e||a[8]!==t?(l=(0,r.jsxs)("div",{className:P().chartTooltipHeader,children:[e,t]}),a[7]=e,a[8]=t,a[9]=l):l=a[9],a[10]!==c||a[11]!==o||a[12]!==i||a[13]!==u){let e;a[15]!==c||a[16]!==o||a[17]!==u?(e=e=>{let t=c[e.dataKey]?.previousPeriodKey,a=t!==e.dataKey&&t?u.get(t):void 0;return(0,r.jsx)(I,{p:e,numberFormat:o,previous:a},e.dataKey)},a[15]=c,a[16]=o,a[17]=u,a[18]=e):e=a[18],n=i.sort(H).map(e),a[10]=c,a[11]=o,a[12]=i,a[13]=u,a[14]=n}else n=a[14];return a[19]!==n?(h=(0,r.jsx)("div",{className:P().chartTooltipContent,children:n}),a[19]=n,a[20]=h):h=a[20],a[21]!==l||a[22]!==h?(m=(0,r.jsxs)("div",{className:P().chartTooltip,children:[l,h]}),a[21]=l,a[22]=h,a[23]=m):m=a[23],m}return null}),{onError:console.error,fallback:(0,r.jsx)("div",{className:"text-danger px-2 py-1 m-2 fs-8 font-monospace bg-danger-transparent",children:"An error occurred while rendering the tooltip."})});function R(e){let t,a,i,s,o,c=(0,l.c)(21),{entry:d,expanded:u,isSelected:h,isDisabled:m,onToggle:g}=e,[p,x]=(0,n.useState)(!1),f=p||u,y=m?.3:1,v=h?600:400;c[0]!==d.color||c[1]!==y||c[2]!==v?(t={color:d.color,opacity:y,fontWeight:v,cursor:"pointer"},c[0]=d.color,c[1]=y,c[2]=v,c[3]=t):t=c[3],c[4]!==g?(a=e=>{g?g(e.shiftKey):x(K)},c[4]=g,c[5]=a):a=c[5];let j=h?"Click to show all (Shift+click to deselect)":"Click to show only this (Shift+click for multi-select)",w=m?.3:1,b=d.payload?.strokeDasharray,C=h?2.5:1.5;return c[6]!==d.color||c[7]!==w||c[8]!==b||c[9]!==C?(i=(0,r.jsx)("div",{children:(0,r.jsx)("svg",{width:"12",height:"4",children:(0,r.jsx)("line",{x1:"0",y1:"2",x2:"12",y2:"2",stroke:d.color,opacity:w,strokeDasharray:b,strokeWidth:C})})}),c[6]=d.color,c[7]=w,c[8]=b,c[9]=C,c[10]=i):i=c[10],c[11]!==d.value||c[12]!==f||c[13]!==h?(s=f||h?d.value:(0,D.kU)(`${d.value}`,35),c[11]=d.value,c[12]=f,c[13]=h,c[14]=s):s=c[14],c[15]!==s||c[16]!==t||c[17]!==a||c[18]!==j||c[19]!==i?(o=(0,r.jsxs)("span",{className:`d-flex gap-1 items-center justify-center ${P().legendItem}`,style:t,role:"button",onClick:a,title:j,children:[i,s]}),c[15]=s,c[16]=t,c[17]=a,c[18]=j,c[19]=i,c[20]=o):o=c[20],o}function K(e){return!e}let q=(0,n.memo)(e=>{let{payload:t=[],lineDataMap:a,allLineData:l=[],selectedSeries:i=new Set,onToggleSeries:o}=e,c=i.size>0,d=(0,n.useMemo)(()=>l.length>0?l.map(e=>({dataKey:e.dataKey,value:e.displayName||e.dataKey,color:e.color,payload:{strokeDasharray:e.isDashed?"4 3":"0"}})):t,[l,t]),u=(0,n.useMemo)(()=>{let e=new Map;return d.forEach((t,r)=>{let l=a[t.dataKey]?.currentPeriodKey||"";e.has(l)||e.set(l,r)}),d.sort((t,r)=>{let l=a[t.dataKey]?.currentPeriodKey??"",n=a[r.dataKey]?.currentPeriodKey??"",i=e.get(l)??0;return(e.get(n)??0)-i||t.dataKey.localeCompare(r.dataKey)})},[d,a]),h=u.slice(0,4),m=u.slice(4);return(0,r.jsxs)("div",{className:P().legend,children:[h.map((e,t)=>{let a=i.has(e.value);return(0,r.jsx)(R,{entry:e,isSelected:a,isDisabled:c&&!a,onToggle:t=>o?.(e.value,t)},`item-${t}`)}),m.length?(0,r.jsxs)(A.A,{withinPortal:!0,withArrow:!0,closeOnEscape:!0,closeOnClickOutside:!0,children:[(0,r.jsx)(A.A.Target,{children:(0,r.jsxs)("div",{className:s()(P().legendItem,P().legendMoreLink),children:["+",m.length," more"]})}),(0,r.jsx)(A.A.Dropdown,{p:"xs",children:(0,r.jsx)("div",{className:P().legendTooltipContent,children:m.map((e,t)=>{let a=i.has(e.value);return(0,r.jsx)(R,{entry:e,isSelected:a,isDisabled:c&&!a,onToggle:t=>o?.(e.value,t)},`item-${t}`)})})})]}):null]})}),F=60,B=(0,n.memo)(function({graphResults:e,setIsClickActive:t,isClickActive:a,dateRange:l,lineData:i,referenceLines:s,logReferenceTimestamp:u,displayType:A=k.t2.Line,numberFormat:S,isLoading:_,timestampKey:E="ts_bucket",onTimeRangeSelect:P,showLegend:N=!0,previousPeriodOffsetSeconds:M,selectedSeriesNames:I,onToggleSeries:R,granularity:K,dateRangeEndInclusive:B=!0}){let X=(0,n.useId)().replace(/:/g,""),[H,W]=(0,n.useState)(!1),V=A===k.t2.StackedBar?h.E:m.Q,Y=(0,n.useMemo)(()=>{let e=I&&I.size>0;return i.map(e=>e.dataKey).slice(0,F).filter((t,a)=>{let r=i[a]?.displayName??t;return!e||I.has(r)}).map(e=>{let t=i.findIndex(t=>t.dataKey===e),a=i[t]?.color,l=i[t]?.isDashed?"4 3":"0",n=i[t]?.displayName??e;return"stacked_bar"===A?(0,r.jsx)(g.y,{type:"monotone",dataKey:e,name:n,fill:a,opacity:1,stackId:"1",isAnimationActive:!1,shape:(0,r.jsx)(e=>{let{x:t,y:a,width:l,height:n,fill:i}=e;return(0,r.jsx)("rect",{x:t,y:a,width:l,height:n&&n>0?n+.5:0,fill:i})},{dataKey:e})},e):(0,r.jsx)(p.G,{dataKey:e,type:"monotone",stroke:a,fillOpacity:1,...H?{fill:"none",strokeDasharray:l}:{fill:`url(#time-chart-lin-grad-${X}-${a?.replace("#","").toLowerCase()})`,strokeDasharray:l},name:n,isAnimationActive:!1,connectNulls:!0},e)})},[i,A,X,H,I]),G=(0,n.useMemo)(()=>{if(!(I&&I.size>0))return[0,"auto"];let t=1/0,a=-1/0;if(e.forEach(e=>{i.forEach(r=>{let l=r.displayName||r.dataKey;if(I.has(l)){let l=e[r.dataKey];"number"!=typeof l||isNaN(l)||(t=Math.min(t,l),a=Math.max(a,l))}})}),t!==1/0&&a!==-1/0){let e=(a-t)*.1;return[Math.max(0,t-e),a+e]}return["auto","auto"]},[e,i,I]),O=(0,n.useRef)([0,0]),$=(0,T.a)(),Q=(0,n.useCallback)((e,t)=>$(1e3*e,{format:0===t?"normal":"time"}),[$]),U=(0,n.useCallback)((e,t)=>S?(0,D.ZV)(e,{...S,average:!0,mantissa:0,unit:void 0}):new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:"short"}).format(e),[S]),[J,Z]=(0,n.useState)(),[ee,et]=(0,n.useState)(),ea=(0,n.useRef)(null),er=(0,n.useMemo)(()=>{let e={};return i.forEach(t=>{e[t.dataKey]=t}),e},[i]),el=(0,n.useMemo)(()=>{let e=(0,z.W6)(l[0],K),t=(0,z.W6)(l[1],K);if((0,o.A)(l[1],t)&&!B&&(t=(0,c.A)(t,{seconds:(0,z.qL)(K)})),A===k.t2.StackedBar){let a=(0,z.qL)(K)/2;e=(0,c.A)(e,{seconds:a}),t=(0,d.A)(t,{seconds:a})}return[e.getTime()/1e3,t.getTime()/1e3]},[l,K,B,A]);return(0,r.jsx)(x.u,{width:"100%",height:"100%",minWidth:0,onResize:(e,t)=>{O.current=[e??1,t??1]},className:_?"effect-pulse":"",children:(0,r.jsxs)(V,{width:500,height:300,data:e,syncId:"hdx",syncMethod:"value",onMouseEnter:()=>W(!0),onMouseLeave:e=>{W(!1),Z(void 0),et(void 0),ea.current=null},onMouseDown:e=>{null!=e&&null!=e.chartX&&null!=e.chartY&&(Z(e.activeLabel),ea.current=e.chartX)},onMouseMove:e=>{W(!0),null!=J&&(et(e.activeLabel),t(void 0))},onMouseUp:e=>{let t=0;if(null!=ea.current&&e?.chartX!=null&&(t=Math.abs(e.chartX-ea.current)),e?.activeLabel!=null&&J===e.activeLabel)Z(void 0),et(void 0),ea.current=null;else if(null!=J&&null!=ee&&t>=20){try{P?.(new Date(1e3*Number.parseInt(J<=ee?J:ee)),new Date(1e3*Number.parseInt(ee>=J?ee:J)))}catch(e){console.error("failed to highlight range",e)}Z(void 0),et(void 0),ea.current=null}else Z(void 0),et(void 0),ea.current=null},onClick:(e,a)=>{null!=e&&null!=e.chartX&&null!=e.chartY&&null!=e.activeLabel&&null==J?t({x:e.chartX,y:e.chartY,activeLabel:e.activeLabel,xPerc:e.chartX/O.current[0],yPerc:e.chartY/O.current[1],activePayload:e.activePayload}):t(void 0),a.stopPropagation()},children:[(0,r.jsx)("defs",{children:D.lm.map(e=>(0,r.jsxs)("linearGradient",{id:`time-chart-lin-grad-${X}-${e.replace("#","").toLowerCase()}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:e,stopOpacity:.15}),(0,r.jsx)("stop",{offset:"10%",stopColor:e,stopOpacity:.003})]},e))}),H&&(0,r.jsx)(f.d,{strokeDasharray:"3 3",stroke:"var(--color-border)"}),(0,r.jsx)(y.W,{dataKey:E??"ts_bucket",domain:el,interval:"preserveStartEnd",scale:"time",type:"number",tickFormatter:Q,minTickGap:100,tick:{fontSize:11,fontFamily:"IBM Plex Mono, monospace"}}),(0,r.jsx)(v.h,{width:40,minTickGap:25,tickFormatter:U,tick:{fontSize:11,fontFamily:"IBM Plex Mono, monospace"},domain:G}),Y,null==a&&(0,r.jsx)(j.m,{content:(0,r.jsx)(L,{numberFormat:S,lineDataMap:er,previousPeriodOffsetSeconds:M}),wrapperStyle:{zIndex:1}}),s,J&&ee?(0,r.jsx)(w.T,{x1:J,x2:ee,strokeOpacity:.3}):null,N&&(0,r.jsx)(b.s,{iconSize:10,verticalAlign:"bottom",content:(0,r.jsx)(q,{lineDataMap:er,allLineData:i,selectedSeries:I||new Set,onToggleSeries:R}),offset:-100}),null!=a?(0,r.jsx)(C.e,{x:a.activeLabel,stroke:"#ccc"}):null,null!=u?(0,r.jsx)(C.e,{x:u,stroke:"#ff5d5b",strokeDasharray:"3 3",label:"Event"}):null]})})});function X(e){return[e.dataKey,e]}function H(e,t){return t.value-e.value}},9211:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(6029),l=a(75155),n=a(1909),i=a(38206);function s(e){let t,a,s,o,c,d=(0,l.c)(16),{field:u,fieldState:h}=(0,n.as)(e),{value:m,onChange:g,onBlur:p,name:x,ref:f}=u;d[0]!==e?({onCreate:t,allowDeselect:s,...a}=e,d[0]=e,d[1]=t,d[2]=a,d[3]=s):(t=d[1],a=d[2],s=d[3]);let y=void 0===s||s,v=e.data?.find(e=>"string"==typeof e?e===m:!("value"in e)||e.value===m);d[4]!==y||d[5]!==g||d[6]!==t?(o=e=>{"_create_new_value"===e&&null!=t?t():(null!==e||y)&&g(e)},d[4]=y,d[5]=g,d[6]=t,d[7]=o):o=d[7];let j=o,w=h.error?.message,b=null==v?null:m;return d[8]!==x||d[9]!==p||d[10]!==f||d[11]!==j||d[12]!==a||d[13]!==w||d[14]!==b?(c=(0,r.jsx)(i.l,{...a,error:w,value:b,onChange:j,onBlur:p,name:x,ref:f}),d[8]=x,d[9]=p,d[10]=f,d[11]=j,d[12]=a,d[13]=w,d[14]=b,d[15]=c):c=d[15],c}},11104:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var r=a(6029),l=a(75155),n=a(75828),i=a.n(n),s=a(63085),o=a(76013),c=a(3635);let d=function(e){let t,a,n=(0,l.c)(9),{value:d,onChange:u,options:h}=e;if(n[0]!==u||n[1]!==h||n[2]!==d){let e;n[4]!==u||n[5]!==d?(e=e=>{let{icon:t,label:a,value:l,disabled:n}=e;return(0,r.jsx)(s.m,{label:a,children:(0,r.jsx)(o.M,{size:"xs",me:2,className:i()({"text-brand":d===l,"text-muted-hover":d!==l}),disabled:n,onClick:()=>u(l),children:t})},l)},n[4]=u,n[5]=d,n[6]=e):e=n[6],t=h.map(e),n[0]=u,n[1]=h,n[2]=d,n[3]=t}else t=n[3];return n[7]!==t?(a=(0,r.jsx)(c.Y,{className:"bg-muted px-2 py-2 rounded fs-8",align:"center",gap:0,wrap:"nowrap",children:t}),n[7]=t,n[8]=a):a=n[8],a}},15628:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(6029),l=a(75155),n=a(3635),i=a(34834);let s=function(e){let t,a,s,o,c=(0,l.c)(10),{title:d,toolbarItems:u,children:h,disableReactiveContainer:m}=e;return c[0]===Symbol.for("react.memo_cache_sentinel")?(t={flexGrow:1},c[0]=t):t=c[0],c[1]!==d||c[2]!==u?(a=(!!d||!!u?.length)&&(0,r.jsxs)(n.Y,{justify:"space-between",align:"start",wrap:"nowrap",children:[(0,r.jsx)("span",{style:{flex:1,flexShrink:1,overflow:"hidden"},children:d}),u&&(0,r.jsx)(n.Y,{flex:0,wrap:"nowrap",gap:5,children:u})]}),c[1]=d,c[2]=u,c[3]=a):a=c[3],c[4]!==h||c[5]!==m?(s=m?h:(0,r.jsx)("div",{style:{position:"relative",width:"100%",height:"100%"},children:(0,r.jsx)("div",{style:{position:"absolute",left:0,right:0,bottom:0,top:0},children:h})}),c[4]=h,c[5]=m,c[6]=s):s=c[6],c[7]!==a||c[8]!==s?(o=(0,r.jsxs)(i.B,{h:"100%",w:"100%",style:t,children:[a,s]}),c[7]=a,c[8]=s,c[9]=o):o=c[9],o}},17421:(e,t,a)=>{"use strict";a.d(t,{P:()=>i});var r=a(6029);a(55729);var l=a(87383),n=a(8737);let i=({data:e,filename:t,children:a,className:i,title:s,disabled:o=!1,onExportStart:c,onExportComplete:d,onExportError:u,...h})=>{let{CSVDownloader:m}=(0,l.jG)();return o||0===e.length?(0,r.jsx)("div",{className:i,title:o?"Export disabled":"No data to export",style:{opacity:.5,cursor:"not-allowed"},...h,children:a}):(0,r.jsx)(n.N,{className:i,title:s,onClick:()=>{try{if(0===e.length)return void u?.(Error("No data to export"));c?.(),d?.()}catch(e){u?.(e instanceof Error?e:Error("Export failed"))}},...h,children:(0,r.jsx)(m,{data:e,filename:t,config:{quotes:!0,quoteChar:'"',escapeChar:'"',delimiter:",",header:!0},style:{color:"inherit",textDecoration:"none",background:"none",border:"none",padding:0,cursor:"pointer",display:"block",width:"100%",height:"100%"},children:a})})}},34011:e=>{e.exports={tableWrapper:"Table_tableWrapper__u_gzk",tableBorderless:"Table_tableBorderless__C8oJ4",tableDensityZero:"Table_tableDensityZero___MyCd",tableDensityCompact:"Table_tableDensityCompact__VH49r",tableDensityComfortable:"Table_tableDensityComfortable__yAVt1",tableInteractive:"Table_tableInteractive__g4nmr",emptyMessage:"Table_emptyMessage__Grj3p",tableCellButton:"Table_tableCellButton__q1n1W",cursorColResize:"Table_cursorColResize__8J2BT"}},40228:(e,t,a)=>{"use strict";a.d(t,{S:()=>K});var r=a(6029),l=a(55729),n=a(82203),i=a.n(n),s=a(11370),o=a(86508),c=a(35467),d=a(76089),u=a(82641),h=a(95991),m=a(37659),g=a(3635),p=a(34834),x=a(43517),f=a(63085),y=a(25062),v=a(27166),j=a(24589),w=a(78341),b=a(41279),C=a(9841),k=a(45556),A=a(16232),S=a(6876),_=a(43152),D=a(6379),z=a(91021),T=a(57389),E=a(81973),P=a(15628),N=a(35871),M=a(11104),I=a(99082),L=a(88339);function R({activeClickPayload:e,buildSearchUrl:t,onDismiss:a}){let l=null!=e&&null!=e.activePayload&&e.activePayload.length>0;if(!l)return null;let n=e.activePayload.filter(e=>null!=e.value&&!e.dataKey?.endsWith(_.wt)).sort((e,t)=>t.value-e.value);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Z,{children:(0,r.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:199},onClick:e=>{e.stopPropagation(),e.preventDefault(),a()},onMouseDown:e=>{e.stopPropagation()}})}),(0,r.jsxs)(m.A,{opened:l,onChange:e=>{e||a()},position:"bottom-start",offset:4,withinPortal:!0,closeOnEscape:!0,withArrow:!0,shadow:"md",children:[(0,r.jsx)(m.A.Target,{children:(0,r.jsx)("div",{style:{position:"absolute",left:e.x??0,top:e.y??0,width:1,height:1,pointerEvents:"none"}})}),(0,r.jsx)(m.A.Dropdown,{p:"xs",maw:300,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:n.length<=1?(0,r.jsx)(i(),{"data-testid":"chart-view-events-link",href:t(n?.[0]?.dataKey,n?.[0]?.value)??"/search",onClick:a,children:(0,r.jsxs)(g.Y,{gap:"xs",children:[(0,r.jsx)(b.A,{size:16}),"View Events"]})}):(0,r.jsxs)(p.B,{gap:"xs",style:{maxHeight:"170px",overflowY:"auto"},children:[(0,r.jsx)(x.E,{c:"gray.5",size:"xs",children:"View Events for:"}),n.map((e,l)=>{let n=t(e.dataKey,e.value);return(0,r.jsx)(f.m,{label:e.name,withArrow:!0,color:"gray",position:"right",children:(0,r.jsx)(i(),{"data-testid":`chart-view-events-link-${e.dataKey}`,href:n??"/search",onClick:a,children:(0,r.jsxs)(g.Y,{gap:"xs",children:[(0,r.jsx)(b.A,{size:12}),(0,r.jsx)(x.E,{size:"xs",truncate:!0,flex:"1",children:e.name})]})})},l)})]})})]})]})}let K=(0,l.memo)(function({config:e,disableQueryChunking:t,disableDrillDown:a,enableParallelQueries:n,enabled:i=!0,logReferenceTimestamp:h,onTimeRangeSelect:m,queryKeyPrefix:p,referenceLines:f,setDisplayType:b,showDisplaySwitcher:K=!0,showLegend:q=!0,sourceId:F,hiddenSeries:B,title:X,toolbarPrefix:H,toolbarSuffix:W,showMVOptimizationIndicator:V=!0,showDateRangeIndicator:Y=!0}){let[G,O]=(0,w.j)(!1),[$,Q]=(0,l.useState)(new Set),U=(0,l.useCallback)((e,t)=>{Q(a=>{let r=new Set(a);return t?r.has(e)?r.delete(e):r.add(e):r.has(e)&&1===r.size?r.clear():(r.clear(),r.add(e)),r})},[]),J=e.dateRange,{displayType:Z,dateRange:ee,granularity:et,fillNulls:ea}=(0,_.GJ)(e),er=(0,l.useMemo)(()=>(0,_.O7)(e),[e]),{data:el}=(0,T.d)(er),{data:en,isLoading:ei}=S.Ay.useMe(),{data:es,isLoading:eo,isError:ec,error:ed,isPlaceholderData:eu,isSuccess:eh}=(0,z.HD)(er,{placeholderData:e=>e,queryKey:[p,er,"chunked",{disableQueryChunking:t,enableParallelQueries:n,parallelizeWhenPossible:en?.team?.parallelizeWhenPossible}],enabled:i&&!ei,enableQueryChunking:!t,enableParallelQueries:n&&en?.team?.parallelizeWhenPossible}),em=(0,l.useMemo)(()=>{let e=!1===er.alignDateRangeToGranularity?(0,_.r4)(J):(0,d.Ol)((0,_.r4)(J),er.granularity);return{...er,dateRange:e}},[er,J]),eg=(0,l.useMemo)(()=>e.compareToPreviousPeriod?(0,s.A)(ee[0],em.dateRange[0]):void 0,[e.compareToPreviousPeriod,ee,em.dateRange]),{data:ep,isLoading:ex}=(0,z.HD)(em,{placeholderData:e=>e,queryKey:[p,em,"chunked"],enabled:!!(i&&e.compareToPreviousPeriod),enableQueryChunking:!0});(0,l.useEffect)(()=>{!ec&&G&&O.close()},[ec,G,O]);let ef=eo||ex||!es?.isComplete||e.compareToPreviousPeriod&&!ep?.isComplete||eu,{data:ey}=(0,E.Fo)({id:F||e.source}),{graphResults:ev,timestampColumn:ej,groupColumns:ew,valueColumns:eb,isSingleValueColumn:eC,lineData:ek}=(0,l.useMemo)(()=>{let t={graphResults:[],timestampColumn:void 0,lineData:[],groupColumns:[],valueColumns:[],isSingleValueColumn:!0};if(null==es||!eh)return t;try{return(0,_.zg)({currentPeriodResponse:es,previousPeriodResponse:e.compareToPreviousPeriod?ep:void 0,dateRange:ee,granularity:et,generateEmptyBuckets:(0,_.xu)(ea),source:ey,hiddenSeries:B,previousPeriodOffsetSeconds:eg})}catch(e){return console.error(e),t}},[es,ee,et,eh,ea,ey,e.compareToPreviousPeriod,ep,B,eg]),[eA,eS]=(0,l.useState)(Z),e_=(0,l.useMemo)(()=>b?Z:eA,[eA,Z,b]),eD=(0,l.useCallback)(e=>{b?b(e):eS(e)},[b]);(0,l.useEffect)(()=>{e.compareToPreviousPeriod&&eS(u.t2.Line)},[e.compareToPreviousPeriod]);let[ez,eT]=(0,l.useState)(void 0),eE=(0,l.useCallback)(e=>{null==ey||a||eT(e)},[ey,a]),eP=(0,l.useMemo)(()=>ez?.activeLabel!=null?new Date(1e3*Number.parseInt(ez.activeLabel)):void 0,[ez]),eN=(0,l.useCallback)((t,a)=>{let r;if(null==eP||null==ey)return null;let l=t?.split(_.Hx),n=[];if(l?.length&&ew?.length&&(!(eC??!0)||(ew?.length??0)===0&&(eb?.length??0)>0?l.slice(1):l).forEach((e,t)=>{null!=ew[t]&&n.push({column:ew[t],value:e})}),a&&Array.isArray(e.select)&&e.select.length>0){let t;if((eC??!0)&&1===e.select.length){let a=e.select[0],r="string"==typeof a?void 0:a.aggFn;_.gT.find(e=>e.value===r)?.isAttributable!==!1&&(t="string"==typeof a?a:a.valueExpression)}else if(l?.length&&(eb?.length??0)>0){let a=l[0],r=eb?.findIndex(e=>e===a);if(null!=r&&r>=0&&re.value===l)?.isAttributable!==!1&&(t="string"==typeof a?a:a.valueExpression)}}t&&(r={expression:t,value:a})}let i=(0,o.A)(eP,{seconds:(0,_.qL)(et)});return(0,_.VH)({source:ey,config:e,dateRange:[eP,i],groupFilters:n,valueRangeFilter:r})},[eP,e,et,ey,ew,eb,eC]),eM=(0,l.useMemo)(()=>{let t=[];H&&H.length>0&&t.push(...H),ey&&V&&t.push((0,r.jsx)(I.A,{config:er,source:ey,variant:"icon"},"db-time-chart-mv-indicator"));let a=el?.optimizedConfig?.dateRange,l=!1!==er.alignDateRangeToGranularity;if(Y&&(a||l)){let n=l?void 0:el?.explanations.find(e=>e.success)?.mvConfig.minGranularity;t.push((0,r.jsx)(N.A,{originalDateRange:e.dateRange,effectiveDateRange:a||er.dateRange,mvGranularity:n},"db-time-chart-date-range-indicator"))}return K&&t.push((0,r.jsx)(M.A,{value:e_,onChange:eD,options:[{value:u.t2.Line,label:"Display as Line Chart",icon:(0,r.jsx)(C.A,{})},{value:u.t2.StackedBar,label:e.compareToPreviousPeriod?"Bar Chart Unavailable When Comparing to Previous Period":"Display as Bar Chart",icon:(0,r.jsx)(k.A,{}),disabled:e.compareToPreviousPeriod}]},"db-time-chart-display-switcher")),W&&W.length>0&&t.push(...W),t},[e,e_,eD,K,ey,H,W,V,Y,el,er]);return(0,r.jsx)(P.A,{title:X,toolbarItems:eM,children:eo&&!es?(0,r.jsx)("div",{className:"d-flex h-100 w-100 align-items-center justify-content-center text-muted",children:"Loading Chart Data..."}):ec?(0,r.jsxs)("div",{className:"h-100 w-100 d-flex g-1 flex-column align-items-center justify-content-center text-muted overflow-auto",children:[(0,r.jsx)(x.E,{ta:"center",size:"sm",mt:"sm",children:"Error loading chart, please check your query or try again later."}),(0,r.jsx)(y.$,{className:"mx-auto",variant:"danger",onClick:()=>O.open(),children:(0,r.jsxs)(g.Y,{gap:"xxs",children:[(0,r.jsx)(A.A,{size:16}),"See Error Details"]})}),(0,r.jsx)(v.a,{opened:G,onClose:()=>O.close(),title:"Error Details",children:(0,r.jsxs)(g.Y,{align:"start",children:[(0,r.jsx)(x.E,{size:"sm",ta:"center",children:"Error Message:"}),(0,r.jsx)(j.C,{block:!0,style:{whiteSpace:"pre-wrap"},children:ed.message}),ed instanceof c.p1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.E,{my:"sm",size:"sm",ta:"center",children:"Sent Query:"}),(0,r.jsx)(L.V,{data:ed?.query})]})]})})]}):0===ev.length?(0,r.jsx)("div",{className:"d-flex h-100 w-100 align-items-center justify-content-center text-muted",children:"No data found within time range."}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(R,{activeClickPayload:ez,buildSearchUrl:eN,onDismiss:()=>eT(void 0)}),(0,r.jsx)(D.FC,{dateRange:ee,displayType:e_,graphResults:ev,isClickActive:ez,lineData:ek,isLoading:ef,logReferenceTimestamp:h,numberFormat:e.numberFormat,onTimeRangeSelect:m,referenceLines:f,setIsClickActive:eE,showLegend:q,timestampKey:ej?.name,previousPeriodOffsetSeconds:eg,selectedSeriesNames:$,onToggleSeries:U,granularity:et,dateRangeEndInclusive:er.dateRangeEndInclusive})]})})})},43736:e=>{e.exports={legend:"HDXLineChart_legend__lPU01",legendItem:"HDXLineChart_legendItem____Qwu",legendMoreLink:"HDXLineChart_legendMoreLink__16Wq1",legendTooltipContent:"HDXLineChart_legendTooltipContent__tHXLT",chartTooltip:"HDXLineChart_chartTooltip__hEAmh",chartTooltipHeader:"HDXLineChart_chartTooltipHeader__l9Fb7",chartTooltipContent:"HDXLineChart_chartTooltipContent__vtVBK"}},48423:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var r=a(6029),l=a(75828),n=a.n(l),i=a(3635),s=a(43517),o=a(25062),c=a(97767),d=a(67872),u=a(2485),h=a(79220),m=a(68593),g=a(34011),p=a.n(g);function x({isLast:e,header:t,lastItemButtons:a}){return(0,r.jsx)("th",{className:"overflow-hidden",colSpan:t.colSpan,style:{width:t.getSize()===m.k?"100%":t.getSize(),minWidth:t.getSize()===m.k?0:t.getSize()},children:(0,r.jsxs)(i.Y,{wrap:"nowrap",gap:0,align:"center",children:[t.column.getCanSort()?(0,r.jsx)(o.$,{size:"xxs",p:1,variant:"subtle",color:"gray",onClick:t.column.getToggleSortingHandler(),flex:"1",justify:"space-between","data-testid":"raw-log-table-sort-button",children:(0,r.jsxs)(r.Fragment,{children:[t.isPlaceholder?null:(0,r.jsx)(s.E,{truncate:"end",size:"xs",flex:"1",children:(0,h.Kv)(t.column.columnDef.header,t.getContext())}),t.column.getIsSorted()&&(0,r.jsx)("div",{"data-testid":"raw-log-table-sort-indicator",className:"asc"===t.column.getIsSorted()?"sorted-asc":"sorted-desc",children:(0,r.jsx)(r.Fragment,{children:"asc"===t.column.getIsSorted()?(0,r.jsx)(c.A,{size:12}):(0,r.jsx)(d.A,{size:12})})})]})}):(0,r.jsx)(s.E,{truncate:"end",size:"xs",flex:"1",children:(0,h.Kv)(t.column.columnDef.header,t.getContext())}),(0,r.jsxs)(i.Y,{gap:0,wrap:"nowrap",align:"center",children:[t.column.getCanResize()&&!e&&(0,r.jsx)("div",{onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),className:n()(`resizer ${p().cursorColResize}`,t.column.getIsResizing()&&"isResizing"),children:(0,r.jsx)(u.A,{size:12})}),e&&(0,r.jsx)(i.Y,{gap:2,wrap:"nowrap",children:a})]})]})},t.id)}},55024:(e,t,a)=>{"use strict";a.d(t,{u:()=>l});var r=a(75155);let l=(e,t,a)=>{let l,n,i=(0,r.c)(14);i[0]!==a?(l=void 0===a?{}:a,i[0]=a,i[1]=l):l=i[1];let{maxRows:s,groupColumnName:o}=l,c=void 0===s?4e3:s;e:{let a,r;if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length){let e,t;i[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],i[2]=e):e=i[2],i[3]!==c?(t={csvData:e,maxRows:c,isDataEmpty:!0,actualRowCount:0,isLimited:!1},i[3]=c,i[4]=t):t=i[4],n=t;break e}i[5]!==t||i[6]!==e||i[7]!==o||i[8]!==c?(a=((e,t,a={})=>{let{groupColumnName:r}=a;if(!Array.isArray(e))return console.warn("CSV Export: data must be an array"),[];if(!Array.isArray(t)||0===t.length)return console.warn("CSV Export: columns must be a non-empty array"),[];let l=t.filter(e=>!e||"string"!=typeof e.dataKey||"string"!=typeof e.displayName);return l.length>0?(console.warn("CSV Export: Invalid column structure detected",l),[]):e.filter(e=>null!=e&&"object"==typeof e).map((e,a)=>{try{return{...null!=r?{[r]:e.group??""}:{},...Object.fromEntries(t.map(({displayName:t,dataKey:a})=>{let r=e[a];return null==r?[t,""]:"object"==typeof r?[t,JSON.stringify(r)]:[t,String(r)]}))}}catch(e){return console.warn(`CSV Export: Error processing row ${a}:`,e),{}}}).filter(e=>Object.keys(e).length>0)})(e.slice(0,c),t,{groupColumnName:o}),i[5]=t,i[6]=e,i[7]=o,i[8]=c,i[9]=a):a=i[9];let l=a,s=e.length>c;i[10]!==l||i[11]!==c||i[12]!==s?(r={csvData:l,maxRows:c,isDataEmpty:!1,actualRowCount:l.length,isLimited:s},i[10]=l,i[11]=c,i[12]=s,i[13]=r):r=i[13],n=r}return n}},68593:(e,t,a)=>{"use strict";a.d(t,{k:()=>r});let r=99999},78744:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var r=a(75155),l=a(67264),n=a.n(l),i=a(67270),s=a(76089),o=a(93251),c=a(95099),d=a(6876),u=a(49672),h=a(78550),m=a(57389),g=a(81973),p=a(92917),x=a(69519);let f=async({queryKey:e,pageParam:t,signal:a,meta:r})=>{if(null==r)throw Error("Query missing client meta");let{queryClient:l,metadata:n,hasPreviousQueries:o,optimizedConfig:c,source:d}=r,h=!o||t.offset>0||t.windowIndex>0,m=e[2],g=(0,u.W)({queryTimeout:m}),p=e[1],f=c??p,y=(0,s.jN)(f)?function(e,t){let[a,r]=e.dateRange,l=((0,s.es)(e.orderBy)?(0,x.Me)(a,r):(0,x.so)(a,r))[t.windowIndex];if(null==l)throw Error("Invalid time window for page param");return l}(f,t):{startTime:f.dateRange[0],endTime:f.dateRange[1],windowIndex:0,direction:"DESC"},v={...f,dateRange:[y.startTime,y.endTime],limit:{limit:f.limit?.limit,offset:t.offset}},j=await (0,i.PV)(v,n,d?.querySettings),w=m?new AbortController:void 0;w&&m&&setTimeout(()=>w.abort(),1e3*m);let b=(await g.query({query:j.sql,query_params:j.params,format:"JSONCompactEachRowWithNamesAndTypes",abort_signal:w?.signal||a,connectionId:f.connection})).stream().getReader(),C=[];h&&l.setQueryData(e,e=>{let a={data:[],meta:[],chSql:{sql:"",params:{}},window:y};return null==e?{pages:[a],pageParams:[t]}:{pages:[...e.pages,a],pageParams:[...e.pageParams,t]}});let k=[],A=[];async function S(){let{done:a,value:r}=await b.read();if(!a&&null!=r){if(C.push(...r),C.length>=2){let a=r;if(0===k.length){let e=C[0].json(),t=C[1].json();if(e.length!==t.length)throw Error("Invalid JSONCompactEachRowWithNamesAndTypes header rows");for(let a=0;a{if(null==e)return{pages:[{data:n,meta:k,chSql:j,window:y}],pageParams:[t]};let a=e.pages.slice(0,-1),r=e.pages[e.pages.length-1];return{pages:[...a,{...r,data:[...r.data??[],...n],meta:k,chSql:j,window:y}],pageParams:e.pageParams}})}return await S()}}function _(){l.setQueryData(e,e=>{if(null!=e)return{pages:e.pages.slice(0,-1),pageParams:e.pageParams.slice(0,-1)}})}try{await S()}catch(e){throw h&&_(),e}if(!h)return{data:A,meta:k,chSql:j,window:y};let D=l.getQueryData(e);if(null==D)throw Error("Data not found in cache");let{pages:z}=D,T=z[z.length-1];return _(),T};function y(e,t){var a;let l,i,u,y,j,w,b,C,k,A,S=(0,r.c)(35),{isLive:_,enabled:D,queryKeyPrefix:z}=void 0===t?{}:t,T=void 0===D||D,E=void 0===z?"":z,{data:P,isLoading:N}=d.Ay.useMe(),M=[E,e,P?.team?.queryTimeout],I=(0,o.jE)(),L=(0,h.Ge)(),R=I.getQueriesData({queryKey:[E,(0,p.cJ)(e,["dateRange"])]}).filter(v).length>0,K=!!T;S[0]!==K?(l={enabled:K,placeholderData:void 0},S[0]=K,S[1]=l):l=S[1];let{data:q,isLoading:F}=(0,m.d)(e,l),B=e?.source;S[2]!==B?(i={id:B},S[2]=B,S[3]=i):i=S[3];let{data:X,isLoading:H}=(0,g.Fo)(i);S[4]!==_?(u=e=>_?e:void 0,S[4]=_,S[5]=u):u=S[5];let W=T&&!N&&!F&&!H;S[6]===Symbol.for("react.memo_cache_sentinel")?(y={windowIndex:0,offset:0},S[6]=y):y=S[6],S[7]!==e?(j=(t,a)=>(function(e,t,a){if(null==e)return;let[r,l]=a.dateRange,n=(0,s.es)(a.orderBy)?(0,x.Me)(r,l):(0,x.so)(r,l),i=e.window,o=t.filter(e=>e.window.windowIndex===i.windowIndex).reduce((e,t)=>e+t.data.length,0);if(e.data.length>0)return{windowIndex:i.windowIndex,offset:o};let c=(0,s.jN)(a),d=i.windowIndex+1;if(c&&de.data),chSql:a.pages[0].chSql,window:a.pages[a.pages.length-1].window},S[25]=O,S[26]=k):k=S[26];let et=k,ea=U||N||F,er=ee||N||F;return S[27]!==Z||S[28]!==$||S[29]!==et||S[30]!==Q||S[31]!==J||S[32]!==ea||S[33]!==er?(A={isError:J,error:Z,data:et,fetchNextPage:$,hasNextPage:Q,isFetching:ea,isLoading:er},S[27]=Z,S[28]=$,S[29]=et,S[30]=Q,S[31]=J,S[32]=ea,S[33]=er,S[34]=A):A=S[34],A}function v(e){let[,t]=e;return null!=t}},88339:(e,t,a)=>{"use strict";a.d(t,{A:()=>y,V:()=>f});var r=a(6029),l=a(75155),n=a(55729),i=a(65234),s=a.n(i),o=a(15215),c=a(73854),d=a(25062),u=a(22623),h=a(90515),m=a(45172),g=a(95352),p=a(91021);function x(e){let t,a,i,o,c=(0,l.c)(12),{text:u,size:g}=e,p=void 0===g?"md":g,[x,f]=(0,n.useState)(!1),y="xs"===p?14:16,v="xs"===p?"compact-xs":"sm",j=(void 0===u?"":u)??"";c[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>f(!0),c[0]=t):t=c[0];let w=x?"light":"default";c[1]!==x||c[2]!==y?(a=x?(0,r.jsx)(h.A,{size:y,className:"me-2"}):(0,r.jsx)(m.A,{size:y,className:"me-2"}),c[1]=x,c[2]=y,c[3]=a):a=c[3];let b=x?"Copied!":"Copy";return c[4]!==v||c[5]!==w||c[6]!==a||c[7]!==b?(i=(0,r.jsxs)(d.$,{variant:w,size:v,className:"position-absolute top-0 end-0",children:[a,b]}),c[4]=v,c[5]=w,c[6]=a,c[7]=b,c[8]=i):i=c[8],c[9]!==j||c[10]!==i?(o=(0,r.jsx)(s(),{text:j,onCopy:t,children:i}),c[9]=j,c[10]=i,c[11]=o):o=c[11],o}function f(e){let t,a,n,i,s,d,u=(0,l.c)(14),{data:h,formatData:m,enableCopy:p,copyButtonSize:f}=e,y=void 0===m||m,v=void 0!==p&&p,j=void 0===f?"md":f;u[0]!==h||u[1]!==y?(t=y?function(e){try{if(null!=e)return(0,c.GP)(e);return e}catch{return e}}(h):h,u[0]=h,u[1]=y,u[2]=t):t=u[2];let w=t;return u[3]===Symbol.for("react.memo_cache_sentinel")?(a={lineNumbers:!1,foldGutter:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1},n=[(0,o.ll)()],u[3]=a,u[4]=n):(a=u[3],n=u[4]),u[5]!==w?(i=(0,r.jsx)(g.Ay,{indentWithTab:!1,value:w,theme:"dark",basicSetup:a,extensions:n,editable:!1}),u[5]=w,u[6]=i):i=u[6],u[7]!==j||u[8]!==w||u[9]!==v?(s=v&&(0,r.jsx)(x,{text:w,size:j}),u[7]=j,u[8]=w,u[9]=v,u[10]=s):s=u[10],u[11]!==i||u[12]!==s?(d=(0,r.jsxs)("div",{className:"position-relative",children:[i,s]}),u[11]=i,u[12]=s,u[13]=d):d=u[13],d}function y(e){let t,a,n=(0,l.c)(3),{config:i}=e,{data:s}=(0,p.zu)(i);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t={overflow:"hidden"},n[0]=t):t=n[0],n[1]!==s?(a=(0,r.jsx)(u.t,{flex:"auto",shadow:"none",radius:"sm",style:t,children:(0,r.jsx)(f,{data:s,formatData:!1})}),n[1]=s,n[2]=a):a=n[2],a}},99082:(e,t,a)=>{"use strict";a.d(t,{A:()=>M});var r=a(6029),l=a(75155),n=a(55729),i=a(63085),s=a(76013),o=a(43085),c=a(15683),d=a(27798),u=a(57389),h=a(27166),m=a(43517),g=a(45005),p=a(3635),x=a(39603),f=a(76089),y=a(34834),v=a(48378),j=a(46181),w=a(11088),b=a(67747),C=a(7565);function k({config:e}){let t=(0,n.useMemo)(()=>(0,f.AB)(e.dimensionColumns),[e.dimensionColumns]),a=(0,n.useMemo)(()=>{let t=new Map;for(let{sourceColumn:a="",aggFn:r}of e.aggregatedColumns)t.has(a)?t.get(a)?.push(r):t.set(a,[r]);return Array.from(t.entries()).sort(([e],[t])=>e.localeCompare(t))},[e.aggregatedColumns]);return(0,r.jsxs)(y.B,{gap:"md",children:[(0,r.jsxs)(v.x,{columns:2,children:[(0,r.jsxs)(v.x.Col,{span:1,children:[(0,r.jsxs)(p.Y,{align:"center",mb:"xs",gap:"xs",children:[(0,r.jsx)(m.E,{size:"sm",fw:500,children:"Granularity"}),(0,r.jsx)(i.m,{multiline:!0,maw:400,label:` - The size of the time buckets into which data is pre-aggregated. - Aggregate values can vary slightly between materialized views and the base source - table when the selected time range does not align with the view's granularity. - `,children:(0,r.jsx)(b.A,{size:16})})]}),(0,r.jsx)(j.a,{children:e.minGranularity})]}),e.minDate&&(0,r.jsxs)(v.x.Col,{span:1,children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"xs",children:"Minimum Date"}),(0,r.jsx)(j.a,{children:(0,r.jsx)(C.H,{value:e.minDate,format:"withYear"})})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"xs",children:"Available Group and Filter Columns"}),(0,r.jsx)(p.Y,{gap:"xs",children:t.map(e=>(0,r.jsx)(j.a,{children:e},e))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"sm",children:"Available Aggregated Columns"}),(0,r.jsxs)(w.X,{children:[(0,r.jsx)(w.X.Thead,{children:(0,r.jsxs)(w.X.Tr,{children:[(0,r.jsx)(w.X.Th,{children:"Column"}),(0,r.jsx)(w.X.Th,{children:"Aggregation"})]})}),(0,r.jsx)(w.X.Tbody,{children:a.map(([e,t])=>(0,r.jsxs)(w.X.Tr,{children:[(0,r.jsx)(w.X.Td,{children:e}),(0,r.jsx)(w.X.Td,{children:(0,r.jsx)(p.Y,{gap:"xs",children:t.map(e=>(0,r.jsx)(j.a,{children:e},e))})})]},e))})]})]})]})}function A(e){return`mv-${e.databaseName}-${e.tableName}`}function S(e){let t,a,n,s,c,d,u,f,y,v,j,w,b=(0,l.c)(33),{mvConfigs:C,explanations:S,opened:T,onClose:E}=e,P=C.length>1;b[0]!==S?(t=new Map(S.map(z)),b[0]=S,b[1]=t):t=b[1];let N=t;if(b[2]!==S||b[3]!==P||b[4]!==E||b[5]!==T){let e=S.find(D)?.mvConfig;n=h.a,c=P?"Materialized Views":"Materialized View",d=T,u=E,f="lg";let t=P?"materialized views":"a materialized view";b[14]!==t?(y=(0,r.jsxs)(m.E,{size:"sm",mb:"sm",children:["This source is configured with"," ",t," for accelerating some aggregations."]}),b[14]=t,b[15]=y):y=b[15],a=g.n,s=e&&A(e),b[2]=S,b[3]=P,b[4]=E,b[5]=T,b[6]=a,b[7]=n,b[8]=s,b[9]=c,b[10]=d,b[11]=u,b[12]=f,b[13]=y}else a=b[6],n=b[7],s=b[8],c=b[9],d=b[10],u=b[11],f=b[12],y=b[13];if(b[16]!==N||b[17]!==C){let e;b[19]!==N?(e=e=>{let t=A(e),a=N.get(t),l=!!a?.errors.length,n=a?.success,s=a?.rowEstimate?.toLocaleString()??"N/A";return(0,r.jsxs)(g.n.Item,{value:t,children:[(0,r.jsx)(g.n.Control,{px:"xs",children:(0,r.jsxs)(p.Y,{justify:"space-between",children:[(0,r.jsx)(m.E,{children:e.tableName}),n?(0,r.jsx)(i.m,{label:`Estimated rows scanned: ${s}`,children:(0,r.jsx)(o.E,{me:"md",color:"var(--color-bg-success)",children:"Active"})}):l?(0,r.jsx)(i.m,{label:"This materialized view is not compatible with the selected query.",children:(0,r.jsx)(o.E,{me:"md",color:"var(--color-bg-warning)",children:"Incompatible"})}):a?(0,r.jsx)(i.m,{label:`Estimated rows scanned: ${s}`,children:(0,r.jsx)(o.E,{me:"md",color:"gray",children:"Skipped"})}):null]})}),(0,r.jsx)(g.n.Panel,{children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k,{config:e}),l&&(0,r.jsxs)(x.F,{color:"red",mt:"xs",children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"xs",children:"The query cannot be accelerated using this materialized view for the following reason(s):"}),a.errors.map(_)]})]})})]},t)},b[19]=N,b[20]=e):e=b[20],v=C.map(e),b[16]=N,b[17]=C,b[18]=v}else v=b[18];return b[21]!==a||b[22]!==s||b[23]!==v?(j=(0,r.jsx)(a,{defaultValue:s,children:v}),b[21]=a,b[22]=s,b[23]=v,b[24]=j):j=b[24],b[25]!==n||b[26]!==c||b[27]!==d||b[28]!==u||b[29]!==f||b[30]!==y||b[31]!==j?(w=(0,r.jsxs)(n,{title:c,opened:d,onClose:u,size:f,children:[y,j]}),b[25]=n,b[26]=c,b[27]=d,b[28]=u,b[29]=f,b[30]=y,b[31]=j,b[32]=w):w=b[32],w}function _(e,t){return(0,r.jsx)(m.E,{size:"sm",mt:"xs",children:e},t)}function D(e){return e.success}function z(e){return[A(e.mvConfig),e]}let T="var(--color-bg-warning)",E="var(--color-bg-success)";function P(e){let t,a=(0,l.c)(3),{isInWarningState:n,onClick:o}=e;return a[0]!==n||a[1]!==o?(t=n?(0,r.jsx)(i.m,{label:"Not Accelerated",children:(0,r.jsx)(s.M,{onClick:o,children:(0,r.jsx)(c.A,{size:16,color:T})})}):(0,r.jsx)(i.m,{label:"Accelerated",children:(0,r.jsx)(s.M,{onClick:o,children:(0,r.jsx)(d.A,{size:18,color:E})})}),a[0]=n,a[1]=o,a[2]=t):t=a[2],t}function N(e){let t,a=(0,l.c)(4),{isInWarningState:n,onClick:i}=e,s=n?T:E,c=n?"Not Accelerated":"Accelerated";return a[0]!==i||a[1]!==s||a[2]!==c?(t=(0,r.jsx)(o.E,{color:s,onClick:i,className:"cursor-pointer",children:c}),a[0]=i,a[1]=s,a[2]=c,a[3]=t):t=a[3],t}function M(e){let t,a,i,s,o=(0,l.c)(12),{source:c,config:d,variant:h}=e,m=void 0===h?"badge":h,[g,p]=(0,n.useState)(!1),{data:x}=(0,u.d)(d);o[0]!==c.materializedViews?(t=c.materializedViews??[],o[0]=c.materializedViews,o[1]=t):t=o[1];let f=t;if(!f?.length)return null;let y=!!d&&!!x&&!x?.optimizedConfig;return o[2]!==y||o[3]!==m?(a="icon"===m?(0,r.jsx)(P,{isInWarningState:y,onClick:()=>p(!0)}):(0,r.jsx)(N,{isInWarningState:y,onClick:()=>p(!0)}),o[2]=y,o[3]=m,o[4]=a):a=o[4],o[5]!==x||o[6]!==g||o[7]!==f?(i=x&&(0,r.jsx)(S,{mvConfigs:f,explanations:x.explanations,opened:g,onClose:()=>p(!1)}),o[5]=x,o[6]=g,o[7]=f,o[8]=i):i=o[8],o[9]!==a||o[10]!==i?(s=(0,r.jsxs)(r.Fragment,{children:[a,i]}),o[9]=a,o[10]=i,o[11]=s):s=o[11],s}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/35-38880205eb57367e.js b/out/_next/static/chunks/35-38880205eb57367e.js new file mode 100644 index 0000000..64b237b --- /dev/null +++ b/out/_next/static/chunks/35-38880205eb57367e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35],{6876:(e,s,t)=>{t.d(s,{Ay:()=>m,Q5:()=>c});var r=t(81278),a=t.n(r),n=t(62910),o=t(16932),i=t(12482),l=t(98142);let d=n.Ay.create({prefixUrl:"/api",credentials:"include",hooks:{afterResponse:[function(e,s,t){if(!["/","/forgot","/join-team","/login","/register","/reset-password"].includes(a().pathname)&&401===t.status){try{window.sessionStorage.setItem("hdx-login-redirect-url",a().asPath)}catch(e){console.error(e)}a().push("/login")}}]},timeout:!1}),c=(e,s)=>d(e,{...s}),m={useCreateAlert:()=>(0,o.n)({mutationFn:async e=>d("alerts",{method:"POST",json:e}).json()}),useUpdateAlert:()=>(0,o.n)({mutationFn:async e=>d(`alerts/${e.id}`,{method:"PUT",json:e}).json()}),useDeleteAlert:()=>(0,o.n)({mutationFn:async e=>d(`alerts/${e}`,{method:"DELETE"})}),useSilenceAlert:()=>(0,o.n)({mutationFn:async({alertId:e,mutedUntil:s})=>d(`alerts/${e}/silenced`,{method:"POST",json:{mutedUntil:s}})}),useUnsilenceAlert:()=>(0,o.n)({mutationFn:async e=>d(`alerts/${e}/silenced`,{method:"DELETE"})}),useDashboards:e=>(0,i.I)({queryKey:["dashboards"],queryFn:()=>l.VO?null:c("dashboards",{method:"GET"}).json(),...e}),useCreateDashboard:()=>(0,o.n)({mutationFn:async({name:e,charts:s,query:t,tags:r})=>c("dashboards",{method:"POST",json:{name:e,charts:s,query:t,tags:r}}).json()}),useUpdateDashboard:()=>(0,o.n)({mutationFn:async({id:e,name:s,charts:t,query:r,tags:a})=>c(`dashboards/${e}`,{method:"PUT",json:{name:s,charts:t,query:r,tags:a}}).json()}),useDeleteDashboard:()=>(0,o.n)({mutationFn:async({id:e})=>c(`dashboards/${e}`,{method:"DELETE"}).json()}),usePresetDashboardFilters:(e,s,t=!0)=>(0,i.I)({queryKey:["dashboards","preset",e,"filters",s],queryFn:()=>c(`dashboards/preset/${e}/filters/`,{method:"GET",searchParams:{sourceId:s}}).json(),enabled:!!s&&t}),useCreatePresetDashboardFilter:()=>(0,o.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"POST",json:{filter:e}}).json()}),useUpdatePresetDashboardFilter:()=>(0,o.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"PUT",json:{filter:e}}).json()}),useDeletePresetDashboardFilter:()=>(0,o.n)({mutationFn:async({id:e,presetDashboard:s})=>c(`dashboards/preset/${s}/filter/${e}`,{method:"DELETE"}).json()}),useAlerts:()=>(0,i.I)({queryKey:["alerts"],queryFn:()=>c("alerts").json()}),useServices:()=>(0,i.I)({queryKey:["services"],queryFn:()=>c("chart/services",{method:"GET"}).json()}),useRotateTeamApiKey:()=>(0,o.n)({mutationFn:async()=>c("team/apiKey",{method:"PATCH"}).json()}),useDeleteTeamMember:()=>(0,o.n)({mutationFn:async({userId:e})=>c(`team/member/${e}`,{method:"DELETE"}).json()}),useTeamInvitations:()=>(0,i.I)({queryKey:["team/invitations"],queryFn:()=>c("team/invitations").json()}),useSaveTeamInvitation:()=>(0,o.n)({mutationFn:async({name:e,email:s})=>c("team/invitation",{method:"POST",json:{name:e,email:s}}).json()}),useDeleteTeamInvitation:()=>(0,o.n)({mutationFn:async({id:e})=>c(`team/invitation/${e}`,{method:"DELETE"}).json()}),useInstallation:()=>(0,i.I)({queryKey:["installation"],queryFn:()=>{if(!l.VO)return c("installation").json()}}),useMe:()=>(0,i.I)({queryKey:["me"],queryFn:()=>l.VO?null:c("me").json()}),useTeam:()=>(0,i.I)({queryKey:["team"],queryFn:()=>l.VO?null:c("team").json(),retry:1}),useTeamMembers:()=>(0,i.I)({queryKey:["team/members"],queryFn:()=>c("team/members").json()}),useSetTeamName:()=>(0,o.n)({mutationFn:async({name:e})=>c("team/name",{method:"PATCH",json:{name:e}}).json()}),useUpdateClickhouseSettings:()=>(0,o.n)({mutationFn:async e=>c("team/clickhouse-settings",{method:"PATCH",json:e}).json()}),useTags:()=>(0,i.I)({queryKey:["team/tags"],queryFn:()=>c("team/tags").json()}),useSaveWebhook:()=>(0,o.n)({mutationFn:async({service:e,url:s,name:t,description:r,queryParams:a,headers:n,body:o})=>c("webhooks",{method:"POST",json:{name:t,service:e,url:s,description:r,queryParams:a||{},headers:n||{},body:o}}).json()}),useUpdateWebhook:()=>(0,o.n)({mutationFn:async({id:e,service:s,url:t,name:r,description:a,queryParams:n,headers:o,body:i})=>c(`webhooks/${e}`,{method:"PUT",json:{name:r,service:s,url:t,description:a,queryParams:n||{},headers:o||{},body:i}}).json()}),useWebhooks:e=>(0,i.I)({queryKey:[...e],queryFn:()=>c("webhooks",{method:"GET",searchParams:[...e.map(e=>["service",e])]}).json()}),useDeleteWebhook:()=>(0,o.n)({mutationFn:async({id:e})=>c(`webhooks/${e}`,{method:"DELETE"}).json()}),useTestWebhook:()=>(0,o.n)({mutationFn:async({service:e,url:s,queryParams:t,headers:r,body:a})=>c("webhooks/test",{method:"POST",json:{service:e,url:s,queryParams:t||{},headers:r||{},body:a}}).json()}),useRegisterPassword:()=>(0,o.n)({mutationFn:async({email:e,password:s,confirmPassword:t})=>c("register/password",{method:"POST",json:{email:e,password:s,confirmPassword:t}}).json()}),useTestConnection:()=>(0,o.n)({mutationFn:async({host:e,username:s,password:t})=>c("clickhouse-proxy/test",{method:"POST",json:{host:e,username:s,password:t}}).json()})}},23935:(e,s,t)=>{t.d(s,{M:()=>c});var r=t(6029),a=t(50212);t(55729);var n=t(80616),o=t(63863),i=t(43517),l={root:"m_849cf0da"};let d={underline:"hover"},c=(0,o.v)((e,s)=>{let{underline:t,className:o,unstyled:c,mod:m,...h}=(0,n.Y)("Anchor",d,e);return(0,r.jsx)(i.E,{component:"a",ref:s,className:(0,a.A)({[l.root]:!c},o),...h,mod:[{underline:t},m],__staticSelector:"Anchor",unstyled:c})});c.classes=l,c.displayName="@mantine/core/Anchor"},39090:(e,s,t)=>{t.d(s,{A:()=>r});var r=(0,t(41495).A)("outline","lock","IconLock",[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]])},40035:(e,s,t)=>{t.d(s,{A:()=>X});var r=t(6029),a=t(75155),n=t(55729),o=t(82203),i=t.n(o),l=t(81278),d=t(51652),c=t(11335),m=t(1909),h=t(59029),u=t(45544),p=t(37699),y=t(25062),g=t(22623),j=t(34834),x=(0,t(41495).A)("outline","at","IconAt",[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M16 12v1.5a2.5 2.5 0 0 0 5 0v-1.5a9 9 0 1 0 -5.5 8.28",key:"svg-1"}]]),v=t(39090),f=t(36600),b=t(6876),w=t(98142),C=t(26615),P=t(76),T=t(5618),E=t(66404),F=t(80616),A=t(37666),k=t(60481),S=t(43016),_=t(8737),D={root:"m_fea6bf1a",burger:"m_d4fb9cad"};let I={},q=(0,T.V)((e,{color:s,size:t,lineSize:r,transitionDuration:a,transitionTimingFunction:n})=>({root:{"--burger-color":s?(0,E.r)(s,e):void 0,"--burger-size":(0,P.YC)(t,"burger-size"),"--burger-line-size":r?(0,C.D)(r):void 0,"--burger-transition-duration":void 0===a?void 0:`${a}ms`,"--burger-transition-timing-function":n}})),z=(0,S.P9)((e,s)=>{let t=(0,F.Y)("Burger",I,e),{classNames:a,className:n,style:o,styles:i,unstyled:l,vars:d,opened:c,children:m,transitionDuration:h,transitionTimingFunction:u,lineSize:p,...y}=t,g=(0,A.I)({name:"Burger",classes:D,props:t,className:n,style:o,classNames:a,styles:i,unstyled:l,vars:d,varsResolver:q});return(0,r.jsxs)(_.N,{...g("root"),ref:s,...y,children:[(0,r.jsx)(k.a,{mod:["reduce-motion",{opened:c}],...g("burger")}),m]})});z.classes=D,z.displayName="@mantine/core/Burger";var M=t(23935),$=t(3635),N=t(83171),L=t(78341);function K(e){let s,t,n,o,l,d,c,m,h,u,p,g,j,x,v,w,C,P=(0,a.c)(52),{activeKey:T,fixed:E}=e,F=(0,f.Kh)(),A=(0,f.PH)(),{data:k}=b.Ay.useMe(),S=!!k,{data:_}=b.Ay.useInstallation(),[D,I]=(0,L.j)(!1),{toggle:q}=I;P[0]===Symbol.for("react.memo_cache_sentinel")?(s={position:"fixed",top:0,left:0,right:0,background:"var(--color-bg-body)",backdropFilter:"blur(12px)",borderBottom:"1px solid var(--color-border)",zIndex:100},P[0]=s):s=P[0],P[1]===Symbol.for("react.memo_cache_sentinel")?(t={textDecoration:"none"},P[1]=t):t=P[1],P[2]!==A?(n=(0,r.jsx)(i(),{href:"/",style:t,children:A}),P[2]=A,P[3]=n):n=P[3],P[4]!==D||P[5]!==q?(o=(0,r.jsx)(z,{opened:D,onClick:q,hiddenFrom:"lg",color:"white"}),P[4]=D,P[5]=q,P[6]=o):o=P[6];let K="cloud"===T?"var(--color-text-primary)":"gray",W="cloud"===T?600:400;P[7]!==W?(l={fontWeight:W},P[7]=W,P[8]=l):l=P[8],P[9]!==F||P[10]!==K||P[11]!==l?(d=(0,r.jsxs)(M.M,{href:"https://hyperdx.io",c:K,underline:"never",style:l,size:"sm",children:[F," Cloud"]}),P[9]=F,P[10]=K,P[11]=l,P[12]=d):d=P[12];let O="docs"===T?"var(--color-text-primary)":"gray",B="docs"===T?600:400;return P[13]!==B?(c={fontWeight:B},P[13]=B,P[14]=c):c=P[14],P[15]!==O||P[16]!==c?(m=(0,r.jsx)(M.M,{href:"https://clickhouse.com/docs/use-cases/observability/clickstack",c:O,underline:"never",style:c,size:"sm",children:"Docs"}),P[15]=O,P[16]=c,P[17]=m):m=P[17],P[18]!==T||P[19]!==_?.isTeamExisting||P[20]!==S?(h=!S&&_?.isTeamExisting===!0&&(0,r.jsx)(M.M,{href:"/login",c:"/login"===T?"var(--color-text-primary)":"gray",underline:"never",style:{fontWeight:"/login"===T?600:400},size:"sm",children:"Login"}),P[18]=T,P[19]=_?.isTeamExisting,P[20]=S,P[21]=h):h=P[21],P[22]!==T||P[23]!==_?.isTeamExisting||P[24]!==S?(u=!S&&"/register"!==T&&_?.isTeamExisting===!1&&(0,r.jsx)(i(),{href:"/register",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",children:"Setup Account"})}),P[22]=T,P[23]=_?.isTeamExisting,P[24]=S,P[25]=u):u=P[25],P[26]!==S?(p=S&&(0,r.jsx)(i(),{href:"/search",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",children:"Go to Search"})}),P[26]=S,P[27]=p):p=P[27],P[28]!==m||P[29]!==h||P[30]!==u||P[31]!==p||P[32]!==d?(g=(0,r.jsxs)($.Y,{gap:"lg",visibleFrom:"lg",children:[d,m,h,u,p]}),P[28]=m,P[29]=h,P[30]=u,P[31]=p,P[32]=d,P[33]=g):g=P[33],P[34]!==g||P[35]!==n||P[36]!==o?(j=(0,r.jsxs)($.Y,{justify:"space-between",align:"center",children:[n,o,g]}),P[34]=g,P[35]=n,P[36]=o,P[37]=j):j=P[37],P[38]!==T||P[39]!==F||P[40]!==_?.isTeamExisting||P[41]!==S||P[42]!==D?(x=D&&(0,r.jsxs)($.Y,{gap:"sm",mt:"md",hiddenFrom:"lg",style:{fontSize:14},children:[(0,r.jsxs)(M.M,{href:"https://hyperdx.io",underline:"never",style:{fontWeight:"cloud"===T?600:400},children:[F," Cloud"]}),(0,r.jsx)(M.M,{href:"https://clickhouse.com/docs/use-cases/observability/clickstack",underline:"never",style:{fontWeight:"docs"===T?600:400},children:"Docs"}),!S&&_?.isTeamExisting===!0&&(0,r.jsx)(M.M,{href:"/login",underline:"never",style:{fontWeight:"/login"===T?600:400},children:"Login"}),!S&&"/register"!==T&&_?.isTeamExisting===!1&&(0,r.jsx)(i(),{href:"/register",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",fullWidth:!0,children:"Setup Account"})}),S&&(0,r.jsx)(i(),{href:"/search",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",fullWidth:!0,children:"Go to Search"})})]}),P[38]=T,P[39]=F,P[40]=_?.isTeamExisting,P[41]=S,P[42]=D,P[43]=x):x=P[43],P[44]!==j||P[45]!==x?(v=(0,r.jsx)("div",{style:s,children:(0,r.jsxs)(N.m,{fluid:!0,px:"xl",py:"md",children:[j,x]})}),P[44]=j,P[45]=x,P[46]=v):v=P[46],P[47]!==E?(w=!E&&(0,r.jsx)("div",{style:{height:70}}),P[47]=E,P[48]=w):w=P[48],P[49]!==v||P[50]!==w?(C=(0,r.jsxs)(r.Fragment,{children:[v,w]}),P[49]=v,P[50]=w,P[51]=C):C=P[51],C}var W=t(90515),O=t(74011);let B=e=>e.length>=12,V=e=>/[A-Z]+/.test(e),U=e=>/[a-z]+/.test(e),Y=e=>/\d+/.test(e),R=e=>/\W+/.test(e),Z=e=>{let s,t=(0,a.c)(2),n=e.password;return t[0]!==n?(s=(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{children:(0,r.jsx)(H,{handler:B,password:n,children:"minimum 12 characters"})}),(0,r.jsx)("div",{children:(0,r.jsx)(H,{handler:V,password:n,children:"at least 1 uppercase"})}),(0,r.jsx)("div",{children:(0,r.jsx)(H,{handler:U,password:n,children:"at least 1 lowercase"})}),(0,r.jsx)("div",{children:(0,r.jsx)(H,{handler:Y,password:n,children:"at least 1 number"})}),(0,r.jsx)("div",{children:(0,r.jsx)(H,{handler:R,password:n,children:"at least 1 special character"})})]}),t[0]=n,t[1]=s):s=t[1],s},H=e=>{let s,t,n,o,i=(0,a.c)(13),{handler:l,password:d,children:c}=e;i[0]!==d?(s="",s="string"==typeof d?d:d.password??"",i[0]=d,i[1]=s):s=i[1];let m=0===s.length;i[2]!==s||i[3]!==l?(t=l(s),i[2]=s,i[3]=l,i[4]=t):t=i[4];let h=t;if(m){let e;return i[5]!==c?(e=(0,r.jsx)("span",{children:c}),i[5]=c,i[6]=e):e=i[6],e}let u=h?"text-success":"text-danger";return i[7]!==h?(n=h?(0,r.jsx)(G,{}):(0,r.jsx)(Q,{}),i[7]=h,i[8]=n):n=i[8],i[9]!==c||i[10]!==u||i[11]!==n?(o=(0,r.jsxs)("span",{className:u,children:[n," ",c]}),i[9]=c,i[10]=u,i[11]=n,i[12]=o):o=i[12],o},G=()=>{let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(W.A,{size:14}),s[0]=e):e=s[0],e},Q=()=>{let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(O.A,{size:14}),s[0]=e):e=s[0],e};function X(e){let s,t,o,C,P,T,E,F,A,k,S,_,D,I,q,z,M,$,N,L,W,O,B,V,U,Y,R,G,Q,X,J,ee,es,et=(0,a.c)(93),{action:er}=e,ea=(0,f.Kh)(),{data:en,isLoading:eo}=b.Ay.useTeam(),ei=(0,l.useRouter)(),el=!!(!eo&&en);et[0]!==el||et[1]!==ei?(s=()=>{el&&ei.push("/search")},t=[el,ei],et[0]=el,et[1]=ei,et[2]=s,et[3]=t):(s=et[2],t=et[3]),(0,n.useEffect)(s,t);let ed="register"===er;et[4]===Symbol.for("react.memo_cache_sentinel")?(o={reValidateMode:"onSubmit"},et[4]=o):o=et[4];let{register:ec,handleSubmit:em,formState:eh,setError:eu,control:ep}=(0,m.mN)(o),{errors:ey,isSubmitting:eg}=eh,{err:ej,msg:ex}=ei.query,{data:ev}=b.Ay.useInstallation(),ef=b.Ay.useRegisterPassword(),eb="verify"===ex,ew=`${ea} - ${ed?"Sign up":"Login"}`;et[5]!==ev?.isTeamExisting||et[6]!==ed||et[7]!==ei?(C=()=>{w.bp&&ev?.isTeamExisting===!0&&ed&&ei.push("/login")},et[5]=ev?.isTeamExisting,et[6]=ed,et[7]=ei,et[8]=C):C=et[8],et[9]!==ev||et[10]!==ed||et[11]!==ei?(P=[ev,ed,ei],et[9]=ev,et[10]=ed,et[11]=ei,et[12]=P):P=et[12],(0,n.useEffect)(C,P),et[13]!==ep?(T={control:ep,name:"password",defaultValue:""},et[13]=ep,et[14]=T):T=et[14];let eC=(0,m.FH)(T);et[15]!==ep?(E={control:ep,name:"confirmPassword",defaultValue:""},et[15]=ep,et[16]=E):E=et[16];let eP=(0,m.FH)(E);et[17]!==eP||et[18]!==eC?(F=()=>eC===eP,et[17]=eP,et[18]=eC,et[19]=F):F=et[19];let eT=F;et[20]!==ef||et[21]!==ei||et[22]!==eu?(A=e=>ef.mutate({email:e.email,password:e.password,confirmPassword:e.confirmPassword},{onSuccess:()=>ei.push("/search"),onError:async e=>{if(e instanceof c.H){let s=await e.response.json();if(Array.isArray(s)&&s[0]?.errors?.issues)return s[0].errors.issues.forEach(e=>{eu(e.path[0],{type:e.code,message:e.message})})}eu("root",{type:"manual",message:"An unexpected error occurred, please try again later."})}}),et[20]=ef,et[21]=ei,et[22]=eu,et[23]=A):A=et[23];let eE=A;et[24]!==em||et[25]!==ed||et[26]!==eE||et[27]!==ec?(k=ed?{controller:{onSubmit:em(eE)},email:ec("email",{required:!0}),password:ec("password",{required:!0}),confirmPassword:ec("confirmPassword",{required:!0})}:{controller:{action:"/api/login/password",method:"POST"},email:{name:"email"},password:{name:"password"}},et[24]=em,et[25]=ed,et[26]=eE,et[27]=ec,et[28]=k):k=et[28];let eF=k;et[29]!==ew?(S=(0,r.jsx)(d.bV,{title:ew}),et[29]=ew,et[30]=S):S=et[30];let eA=`/${er}`;et[31]!==eA?(_=(0,r.jsx)(K,{activeKey:eA,fixed:!0}),et[31]=eA,et[32]=_):_=et[32],et[33]===Symbol.for("react.memo_cache_sentinel")?(D={width:"26rem"},et[33]=D):D=et[33],et[34]===Symbol.for("react.memo_cache_sentinel")?(I={marginTop:-30},et[34]=I):I=et[34];let ek=w.bp&&ed?"Setup ":ed?"Register for ":"Login to ";et[35]!==ea?(q=(0,r.jsx)("span",{className:"text-brand fw-bold",children:ea}),et[35]=ea,et[36]=q):q=et[36],et[37]!==ek||et[38]!==q?(z=(0,r.jsxs)("div",{className:"text-center mb-2 fs-5 ",style:I,children:[ek,q]}),et[37]=ek,et[38]=q,et[39]=z):z=et[39],et[40]!==er?(M="login"===er&&(0,r.jsx)("div",{className:"text-center mb-2 ",children:"Welcome back!"}),et[40]=er,et[41]=M):M=et[41],et[42]!==ed?($=ed&&!0===w.bp&&(0,r.jsxs)("div",{className:"text-center mb-2 text-muted",children:["Let","'","s create your user account."]}),et[42]=ed,et[43]=$):$=et[43],et[44]===Symbol.for("react.memo_cache_sentinel")?(N=(0,r.jsx)(x,{size:18}),et[44]=N):N=et[44];let eS=ey.email?.message;et[45]!==eF.email||et[46]!==eS?(L=(0,r.jsx)(h.k,{label:"Email",size:"md",withAsterisk:!1,placeholder:"you@company.com",type:"email",leftSection:N,error:eS,required:!0,...eF.email}),et[45]=eF.email,et[46]=eS,et[47]=L):L=et[47],et[48]===Symbol.for("react.memo_cache_sentinel")?(W=(0,r.jsx)(v.A,{size:16}),et[48]=W):W=et[48];let e_=ey.password?.message;et[49]!==eF.password||et[50]!==e_?(O=(0,r.jsx)(u.y,{size:"md",label:"Password",withAsterisk:!1,leftSection:W,error:e_,required:!0,placeholder:"Password",...eF.password}),et[49]=eF.password,et[50]=e_,et[51]=O):O=et[51],et[52]!==eT||et[53]!==eC||et[54]!==ey.confirmPassword?.message||et[55]!==eF.confirmPassword||et[56]!==ed?(B=ed&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.y,{label:(0,r.jsx)(H,{handler:eT,password:eC,children:"Confirm Password"}),size:"md",required:!0,withAsterisk:!1,leftSection:(0,r.jsx)(v.A,{size:16}),error:ey.confirmPassword?.message,placeholder:"Confirm Password",...eF.confirmPassword}),(0,r.jsx)(p.E,{withCloseButton:!1,children:(0,r.jsx)(Z,{password:eC})})]}),et[52]=eT,et[53]=eC,et[54]=ey.confirmPassword?.message,et[55]=eF.confirmPassword,et[56]=ed,et[57]=B):B=et[57];let eD=eg||eb,eI=w.bp&&ed?"Create":ed?"Register":"Login";return et[58]!==eg||et[59]!==eD||et[60]!==eI?(V=(0,r.jsx)(y.$,{mt:4,type:"submit",variant:"primary",size:"md",disabled:eD,loading:eg,"data-test-id":"submit",children:eI}),et[58]=eg,et[59]=eD,et[60]=eI,et[61]=V):V=et[61],et[62]!==L||et[63]!==O||et[64]!==B||et[65]!==V?(U=(0,r.jsx)(g.t,{p:34,shadow:"md",radius:"md",children:(0,r.jsxs)(j.B,{gap:"lg",children:[L,O,B,V]})}),et[62]=L,et[63]=O,et[64]=B,et[65]=V,et[66]=U):U=et[66],et[67]!==ej?(Y=null!=ej&&(0,r.jsx)(p.E,{withCloseButton:!1,withBorder:!0,color:"red","data-test-id":"auth-error-msg",children:"missing"===ej?"Please provide a valid email and password":"invalid"===ej?"Email or password is invalid":"authFail"===ej?"Failed to login with email and password, please try again.":"passwordAuthNotAllowed"===ej?"Password authentication is not allowed by your team admin.":"teamAlreadyExists"===ej?"Team already exists, please login instead.":"Unknown error occurred, please try again later."}),et[67]=ej,et[68]=Y):Y=et[68],et[69]!==eb?(R=eb&&(0,r.jsx)(p.E,{withCloseButton:!1,withBorder:!0,color:"green","data-test-id":"auth-msg",children:"Sent verification email! Please check your email inbox"}),et[69]=eb,et[70]=R):R=et[70],et[71]!==ed?(G=ed&&!1===w.bp&&(0,r.jsxs)("div",{"data-test-id":"login-link",className:"text-center fs-8 ",children:["Already have an account? ",(0,r.jsx)(i(),{href:"/login",children:"Log in"})," ","instead."]}),et[71]=ed,et[72]=G):G=et[72],et[73]!==er?(Q="login"===er&&!1===w.bp&&(0,r.jsxs)("div",{"data-test-id":"register-link",className:"text-center fs-8 ",children:["Don","'","t have an account yet?"," ",(0,r.jsx)(i(),{href:"/register",children:"Register"})," instead."]}),et[73]=er,et[74]=Q):Q=et[74],et[75]!==U||et[76]!==Y||et[77]!==R||et[78]!==G||et[79]!==Q?(X=(0,r.jsxs)(j.B,{gap:"xl",children:[U,Y,R,G,Q]}),et[75]=U,et[76]=Y,et[77]=R,et[78]=G,et[79]=Q,et[80]=X):X=et[80],et[81]!==eF.controller||et[82]!==X?(J=(0,r.jsx)("form",{className:"text-start mt-4",...eF.controller,children:X}),et[81]=eF.controller,et[82]=X,et[83]=J):J=et[83],et[84]!==z||et[85]!==M||et[86]!==$||et[87]!==J?(ee=(0,r.jsx)("div",{className:"d-flex justify-content-center align-items-center vh-100",children:(0,r.jsxs)("div",{style:D,children:[z,M,$,J]})}),et[84]=z,et[85]=M,et[86]=$,et[87]=J,et[88]=ee):ee=et[88],et[89]!==S||et[90]!==_||et[91]!==ee?(es=(0,r.jsxs)("div",{className:"AuthPage",children:[S,_,ee]}),et[89]=S,et[90]=_,et[91]=ee,et[92]=es):es=et[92],es}},45544:(e,s,t)=>{t.d(s,{y:()=>f});var r=t(6029),a=t(50212),n=t(60466),o=t(3001);t(55729);var i=t(76),l=t(5618),d=t(35228),c=t(37666),m=t(80616),h=t(3389),u=t(43016),p=t(76013),y=t(96061),g=t(94613),j={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};let x={visibilityToggleIcon:({reveal:e})=>(0,r.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:(0,r.jsx)("path",{d:e?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})},v=(0,l.V)((e,{size:s})=>({root:{"--psi-icon-size":(0,i.YC)(s,"psi-icon-size"),"--psi-button-size":(0,i.YC)(s,"psi-button-size")}})),f=(0,u.P9)((e,s)=>{let t=(0,m.Y)("PasswordInput",x,e),{classNames:i,className:l,style:u,styles:g,unstyled:f,vars:b,required:w,error:C,leftSection:P,disabled:T,id:E,variant:F,inputContainer:A,description:k,label:S,size:_,errorProps:D,descriptionProps:I,labelProps:q,withAsterisk:z,inputWrapperOrder:M,wrapperProps:$,radius:N,rightSection:L,rightSectionWidth:K,rightSectionPointerEvents:W,leftSectionWidth:O,visible:B,defaultVisible:V,onVisibilityChange:U,visibilityToggleIcon:Y,visibilityToggleButtonProps:R,rightSectionProps:Z,leftSectionProps:H,leftSectionPointerEvents:G,withErrorStyles:Q,mod:X,...J}=t,ee=(0,n.B)(E),[es,et]=(0,o.Z)({value:B,defaultValue:V,finalValue:!1,onChange:U}),er=(0,c.I)({name:"PasswordInput",classes:j,props:t,className:l,style:u,classNames:i,styles:g,unstyled:f,vars:b,varsResolver:v}),{resolvedClassNames:ea,resolvedStyles:en}=(0,d.Y)({classNames:i,styles:g,props:t}),{styleProps:eo,rest:ei}=(0,h.j)(J),el=D?.id||`${ee}-error`,ed=I?.id||`${ee}-description`,ec=!!C&&"boolean"!=typeof C,em=!!k,eh=`${ec?el:""} ${em?ed:""}`,eu=eh.trim().length>0?eh.trim():void 0,ep=(0,r.jsx)(p.M,{...er("visibilityToggle"),disabled:T,radius:N,"aria-hidden":!R,tabIndex:-1,...R,variant:R?.variant??"subtle",color:"gray",unstyled:f,onTouchEnd:e=>{e.preventDefault(),R?.onTouchEnd?.(e),et(!es)},onMouseDown:e=>{e.preventDefault(),R?.onMouseDown?.(e),et(!es)},onKeyDown:e=>{R?.onKeyDown?.(e)," "===e.key&&(e.preventDefault(),et(!es))},children:(0,r.jsx)(Y,{reveal:es})});return(0,r.jsx)(y.p.Wrapper,{required:w,id:ee,label:S,error:C,description:k,size:_,classNames:ea,styles:en,__staticSelector:"PasswordInput",unstyled:f,withAsterisk:z,inputWrapperOrder:M,inputContainer:A,variant:F,labelProps:{...q,htmlFor:ee},descriptionProps:{...I,id:ed},errorProps:{...D,id:el},mod:X,...er("root"),...eo,...$,children:(0,r.jsx)(y.p,{component:"div",error:C,leftSection:P,size:_,classNames:{...ea,input:(0,a.A)(j.input,ea.input)},styles:en,radius:N,disabled:T,__staticSelector:"PasswordInput",rightSectionWidth:K,rightSection:L??ep,variant:F,unstyled:f,leftSectionWidth:O,rightSectionPointerEvents:W||"all",rightSectionProps:Z,leftSectionProps:H,leftSectionPointerEvents:G,withAria:!1,withErrorStyles:Q,children:(0,r.jsx)("input",{required:w,"data-invalid":!!C||void 0,"data-with-left-section":!!P||void 0,...er("innerInput"),disabled:T,id:ee,ref:s,...ei,"aria-describedby":eu,autoComplete:ei.autoComplete||"off",type:es?"text":"password"})})})});f.classes={...g.O.classes,...j},f.displayName="@mantine/core/PasswordInput"},74011:(e,s,t)=>{t.d(s,{A:()=>r});var r=(0,t(41495).A)("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]])},83171:(e,s,t)=>{t.d(s,{m:()=>u});var r=t(6029);t(55729);var a=t(76),n=t(5618),o=t(80616),i=t(37666),l=t(60481),d=t(43016),c={root:"m_7485cace"};let m={},h=(0,n.V)((e,{size:s,fluid:t})=>({root:{"--container-size":t?void 0:(0,a.YC)(s,"container-size")}})),u=(0,d.P9)((e,s)=>{let t=(0,o.Y)("Container",m,e),{classNames:a,className:n,style:d,styles:u,unstyled:p,vars:y,fluid:g,mod:j,...x}=t,v=(0,i.I)({name:"Container",classes:c,props:t,className:n,style:d,classNames:a,styles:u,unstyled:p,vars:y,varsResolver:h});return(0,r.jsx)(l.a,{ref:s,mod:[{fluid:g},j],...v("root"),...x})});u.classes=c,u.displayName="@mantine/core/Container"}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/35-9a2c3aba3b13971b.js b/out/_next/static/chunks/35-9a2c3aba3b13971b.js deleted file mode 100644 index 7e90ea8..0000000 --- a/out/_next/static/chunks/35-9a2c3aba3b13971b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35],{6876:(e,s,t)=>{t.d(s,{Ay:()=>m,Q5:()=>c});var r=t(81278),a=t.n(r),n=t(62910),o=t(16932),i=t(12482),l=t(98142);let d=n.Ay.create({prefixUrl:"/api",credentials:"include",hooks:{afterResponse:[function(e,s,t){if(!["/","/forgot","/join-team","/login","/register","/reset-password"].includes(a().pathname)&&401===t.status){try{window.sessionStorage.setItem("hdx-login-redirect-url",a().asPath)}catch(e){console.error(e)}a().push("/login")}}]},timeout:!1}),c=(e,s)=>d(e,{...s}),m={useCreateAlert:()=>(0,o.n)({mutationFn:async e=>d("alerts",{method:"POST",json:e}).json()}),useUpdateAlert:()=>(0,o.n)({mutationFn:async e=>d(`alerts/${e.id}`,{method:"PUT",json:e}).json()}),useDeleteAlert:()=>(0,o.n)({mutationFn:async e=>d(`alerts/${e}`,{method:"DELETE"})}),useSilenceAlert:()=>(0,o.n)({mutationFn:async({alertId:e,mutedUntil:s})=>d(`alerts/${e}/silenced`,{method:"POST",json:{mutedUntil:s}})}),useUnsilenceAlert:()=>(0,o.n)({mutationFn:async e=>d(`alerts/${e}/silenced`,{method:"DELETE"})}),useDashboards:e=>(0,i.I)({queryKey:["dashboards"],queryFn:()=>l.VO?null:c("dashboards",{method:"GET"}).json(),...e}),useCreateDashboard:()=>(0,o.n)({mutationFn:async({name:e,charts:s,query:t,tags:r})=>c("dashboards",{method:"POST",json:{name:e,charts:s,query:t,tags:r}}).json()}),useUpdateDashboard:()=>(0,o.n)({mutationFn:async({id:e,name:s,charts:t,query:r,tags:a})=>c(`dashboards/${e}`,{method:"PUT",json:{name:s,charts:t,query:r,tags:a}}).json()}),useDeleteDashboard:()=>(0,o.n)({mutationFn:async({id:e})=>c(`dashboards/${e}`,{method:"DELETE"}).json()}),usePresetDashboardFilters:(e,s,t=!0)=>(0,i.I)({queryKey:["dashboards","preset",e,"filters",s],queryFn:()=>c(`dashboards/preset/${e}/filters/`,{method:"GET",searchParams:{sourceId:s}}).json(),enabled:!!s&&t}),useCreatePresetDashboardFilter:()=>(0,o.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"POST",json:{filter:e}}).json()}),useUpdatePresetDashboardFilter:()=>(0,o.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"PUT",json:{filter:e}}).json()}),useDeletePresetDashboardFilter:()=>(0,o.n)({mutationFn:async({id:e,presetDashboard:s})=>c(`dashboards/preset/${s}/filter/${e}`,{method:"DELETE"}).json()}),useAlerts:()=>(0,i.I)({queryKey:["alerts"],queryFn:()=>c("alerts").json()}),useServices:()=>(0,i.I)({queryKey:["services"],queryFn:()=>c("chart/services",{method:"GET"}).json()}),useRotateTeamApiKey:()=>(0,o.n)({mutationFn:async()=>c("team/apiKey",{method:"PATCH"}).json()}),useDeleteTeamMember:()=>(0,o.n)({mutationFn:async({userId:e})=>c(`team/member/${e}`,{method:"DELETE"}).json()}),useTeamInvitations:()=>(0,i.I)({queryKey:["team/invitations"],queryFn:()=>c("team/invitations").json()}),useSaveTeamInvitation:()=>(0,o.n)({mutationFn:async({name:e,email:s})=>c("team/invitation",{method:"POST",json:{name:e,email:s}}).json()}),useDeleteTeamInvitation:()=>(0,o.n)({mutationFn:async({id:e})=>c(`team/invitation/${e}`,{method:"DELETE"}).json()}),useInstallation:()=>(0,i.I)({queryKey:["installation"],queryFn:()=>{if(!l.VO)return c("installation").json()}}),useMe:()=>(0,i.I)({queryKey:["me"],queryFn:()=>l.VO?null:c("me").json()}),useTeam:()=>(0,i.I)({queryKey:["team"],queryFn:()=>l.VO?null:c("team").json(),retry:1}),useTeamMembers:()=>(0,i.I)({queryKey:["team/members"],queryFn:()=>c("team/members").json()}),useSetTeamName:()=>(0,o.n)({mutationFn:async({name:e})=>c("team/name",{method:"PATCH",json:{name:e}}).json()}),useUpdateClickhouseSettings:()=>(0,o.n)({mutationFn:async e=>c("team/clickhouse-settings",{method:"PATCH",json:e}).json()}),useTags:()=>(0,i.I)({queryKey:["team/tags"],queryFn:()=>c("team/tags").json()}),useSaveWebhook:()=>(0,o.n)({mutationFn:async({service:e,url:s,name:t,description:r,queryParams:a,headers:n,body:o})=>c("webhooks",{method:"POST",json:{name:t,service:e,url:s,description:r,queryParams:a||{},headers:n||{},body:o}}).json()}),useUpdateWebhook:()=>(0,o.n)({mutationFn:async({id:e,service:s,url:t,name:r,description:a,queryParams:n,headers:o,body:i})=>c(`webhooks/${e}`,{method:"PUT",json:{name:r,service:s,url:t,description:a,queryParams:n||{},headers:o||{},body:i}}).json()}),useWebhooks:e=>(0,i.I)({queryKey:[...e],queryFn:()=>c("webhooks",{method:"GET",searchParams:[...e.map(e=>["service",e])]}).json()}),useDeleteWebhook:()=>(0,o.n)({mutationFn:async({id:e})=>c(`webhooks/${e}`,{method:"DELETE"}).json()}),useTestWebhook:()=>(0,o.n)({mutationFn:async({service:e,url:s,queryParams:t,headers:r,body:a})=>c("webhooks/test",{method:"POST",json:{service:e,url:s,queryParams:t||{},headers:r||{},body:a}}).json()}),useRegisterPassword:()=>(0,o.n)({mutationFn:async({email:e,password:s,confirmPassword:t})=>c("register/password",{method:"POST",json:{email:e,password:s,confirmPassword:t}}).json()}),useTestConnection:()=>(0,o.n)({mutationFn:async({host:e,username:s,password:t})=>c("clickhouse-proxy/test",{method:"POST",json:{host:e,username:s,password:t}}).json()})}},23935:(e,s,t)=>{t.d(s,{M:()=>c});var r=t(6029),a=t(50212);t(55729);var n=t(80616),o=t(63863),i=t(43517),l={root:"m_849cf0da"};let d={underline:"hover"},c=(0,o.v)((e,s)=>{let{underline:t,className:o,unstyled:c,mod:m,...h}=(0,n.Y)("Anchor",d,e);return(0,r.jsx)(i.E,{component:"a",ref:s,className:(0,a.A)({[l.root]:!c},o),...h,mod:[{underline:t},m],__staticSelector:"Anchor",unstyled:c})});c.classes=l,c.displayName="@mantine/core/Anchor"},39090:(e,s,t)=>{t.d(s,{A:()=>r});var r=(0,t(41495).A)("outline","lock","IconLock",[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]])},40035:(e,s,t)=>{t.d(s,{A:()=>Q});var r=t(6029),a=t(75155),n=t(55729),o=t(82203),i=t.n(o),l=t(81278),d=t(51652),c=t(11335),m=t(1909),h=t(59029),u=t(45544),p=t(37699),y=t(25062),g=t(22623),j=t(34834),x=(0,t(41495).A)("outline","at","IconAt",[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M16 12v1.5a2.5 2.5 0 0 0 5 0v-1.5a9 9 0 1 0 -5.5 8.28",key:"svg-1"}]]),f=t(39090),v=t(6876),b=t(98142),w=t(26615),C=t(76),P=t(5618),T=t(66404),E=t(80616),F=t(37666),A=t(60481),S=t(43016),k=t(8737),D={root:"m_fea6bf1a",burger:"m_d4fb9cad"};let _={},I=(0,P.V)((e,{color:s,size:t,lineSize:r,transitionDuration:a,transitionTimingFunction:n})=>({root:{"--burger-color":s?(0,T.r)(s,e):void 0,"--burger-size":(0,C.YC)(t,"burger-size"),"--burger-line-size":r?(0,w.D)(r):void 0,"--burger-transition-duration":void 0===a?void 0:`${a}ms`,"--burger-transition-timing-function":n}})),q=(0,S.P9)((e,s)=>{let t=(0,E.Y)("Burger",_,e),{classNames:a,className:n,style:o,styles:i,unstyled:l,vars:d,opened:c,children:m,transitionDuration:h,transitionTimingFunction:u,lineSize:p,...y}=t,g=(0,F.I)({name:"Burger",classes:D,props:t,className:n,style:o,classNames:a,styles:i,unstyled:l,vars:d,varsResolver:I});return(0,r.jsxs)(k.N,{...g("root"),ref:s,...y,children:[(0,r.jsx)(A.a,{mod:["reduce-motion",{opened:c}],...g("burger")}),m]})});q.classes=D,q.displayName="@mantine/core/Burger";var z=t(23935),M=t(3635),$=t(83171),N=t(78341),L=t(36600);function K(e){let s,t,n,o,l,d,c,m,h,u,p,g,j,x,f,b,w,C=(0,a.c)(50),{activeKey:P,fixed:T}=e,E=(0,L.PH)(),{data:F}=v.Ay.useMe(),A=!!F,{data:S}=v.Ay.useInstallation(),[k,D]=(0,N.j)(!1),{toggle:_}=D;C[0]===Symbol.for("react.memo_cache_sentinel")?(s={position:"fixed",top:0,left:0,right:0,background:"var(--color-bg-body)",backdropFilter:"blur(12px)",borderBottom:"1px solid var(--color-border)",zIndex:100},C[0]=s):s=C[0],C[1]===Symbol.for("react.memo_cache_sentinel")?(t={textDecoration:"none"},C[1]=t):t=C[1],C[2]!==E?(n=(0,r.jsx)(i(),{href:"/",style:t,children:E}),C[2]=E,C[3]=n):n=C[3],C[4]!==k||C[5]!==_?(o=(0,r.jsx)(q,{opened:k,onClick:_,hiddenFrom:"lg",color:"white"}),C[4]=k,C[5]=_,C[6]=o):o=C[6];let I="cloud"===P?"green":"gray",K="cloud"===P?600:400;C[7]!==K?(l={fontWeight:K},C[7]=K,C[8]=l):l=C[8],C[9]!==I||C[10]!==l?(d=(0,r.jsx)(z.M,{href:"https://hyperdx.io",c:I,underline:"never",style:l,size:"sm",children:"HyperDX Cloud"}),C[9]=I,C[10]=l,C[11]=d):d=C[11];let W="docs"===P?"green":"gray",O="docs"===P?600:400;return C[12]!==O?(c={fontWeight:O},C[12]=O,C[13]=c):c=C[13],C[14]!==W||C[15]!==c?(m=(0,r.jsx)(z.M,{href:"https://clickhouse.com/docs/use-cases/observability/clickstack",c:W,underline:"never",style:c,size:"sm",children:"Docs"}),C[14]=W,C[15]=c,C[16]=m):m=C[16],C[17]!==P||C[18]!==S?.isTeamExisting||C[19]!==A?(h=!A&&S?.isTeamExisting===!0&&(0,r.jsx)(z.M,{href:"/login",c:"/login"===P?"green":"gray",underline:"never",style:{fontWeight:"/login"===P?600:400},size:"sm",children:"Login"}),C[17]=P,C[18]=S?.isTeamExisting,C[19]=A,C[20]=h):h=C[20],C[21]!==P||C[22]!==S?.isTeamExisting||C[23]!==A?(u=!A&&"/register"!==P&&S?.isTeamExisting===!1&&(0,r.jsx)(i(),{href:"/register",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",children:"Setup Account"})}),C[21]=P,C[22]=S?.isTeamExisting,C[23]=A,C[24]=u):u=C[24],C[25]!==A?(p=A&&(0,r.jsx)(i(),{href:"/search",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",children:"Go to Search"})}),C[25]=A,C[26]=p):p=C[26],C[27]!==m||C[28]!==h||C[29]!==u||C[30]!==p||C[31]!==d?(g=(0,r.jsxs)(M.Y,{gap:"lg",visibleFrom:"lg",children:[d,m,h,u,p]}),C[27]=m,C[28]=h,C[29]=u,C[30]=p,C[31]=d,C[32]=g):g=C[32],C[33]!==g||C[34]!==n||C[35]!==o?(j=(0,r.jsxs)(M.Y,{justify:"space-between",align:"center",children:[n,o,g]}),C[33]=g,C[34]=n,C[35]=o,C[36]=j):j=C[36],C[37]!==P||C[38]!==S?.isTeamExisting||C[39]!==A||C[40]!==k?(x=k&&(0,r.jsxs)(M.Y,{gap:"sm",mt:"md",hiddenFrom:"lg",style:{fontSize:14},children:[(0,r.jsx)(z.M,{href:"https://hyperdx.io",underline:"never",style:{fontWeight:"cloud"===P?600:400},children:"HyperDX Cloud"}),(0,r.jsx)(z.M,{href:"https://clickhouse.com/docs/use-cases/observability/clickstack",underline:"never",style:{fontWeight:"docs"===P?600:400},children:"Docs"}),!A&&S?.isTeamExisting===!0&&(0,r.jsx)(z.M,{href:"/login",underline:"never",style:{fontWeight:"/login"===P?600:400},children:"Login"}),!A&&"/register"!==P&&S?.isTeamExisting===!1&&(0,r.jsx)(i(),{href:"/register",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",fullWidth:!0,children:"Setup Account"})}),A&&(0,r.jsx)(i(),{href:"/search",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",fullWidth:!0,children:"Go to Search"})})]}),C[37]=P,C[38]=S?.isTeamExisting,C[39]=A,C[40]=k,C[41]=x):x=C[41],C[42]!==j||C[43]!==x?(f=(0,r.jsx)("div",{style:s,children:(0,r.jsxs)($.m,{fluid:!0,px:"xl",py:"md",children:[j,x]})}),C[42]=j,C[43]=x,C[44]=f):f=C[44],C[45]!==T?(b=!T&&(0,r.jsx)("div",{style:{height:70}}),C[45]=T,C[46]=b):b=C[46],C[47]!==f||C[48]!==b?(w=(0,r.jsxs)(r.Fragment,{children:[f,b]}),C[47]=f,C[48]=b,C[49]=w):w=C[49],w}var W=t(90515),O=t(74011);let B=e=>e.length>=12,V=e=>/[A-Z]+/.test(e),U=e=>/[a-z]+/.test(e),Y=e=>/\d+/.test(e),H=e=>/\W+/.test(e),R=e=>{let s,t=(0,a.c)(2),n=e.password;return t[0]!==n?(s=(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{children:(0,r.jsx)(Z,{handler:B,password:n,children:"minimum 12 characters"})}),(0,r.jsx)("div",{children:(0,r.jsx)(Z,{handler:V,password:n,children:"at least 1 uppercase"})}),(0,r.jsx)("div",{children:(0,r.jsx)(Z,{handler:U,password:n,children:"at least 1 lowercase"})}),(0,r.jsx)("div",{children:(0,r.jsx)(Z,{handler:Y,password:n,children:"at least 1 number"})}),(0,r.jsx)("div",{children:(0,r.jsx)(Z,{handler:H,password:n,children:"at least 1 special character"})})]}),t[0]=n,t[1]=s):s=t[1],s},Z=e=>{let s,t,n,o,i=(0,a.c)(13),{handler:l,password:d,children:c}=e;i[0]!==d?(s="",s="string"==typeof d?d:d.password??"",i[0]=d,i[1]=s):s=i[1];let m=0===s.length;i[2]!==s||i[3]!==l?(t=l(s),i[2]=s,i[3]=l,i[4]=t):t=i[4];let h=t;if(m){let e;return i[5]!==c?(e=(0,r.jsx)("span",{children:c}),i[5]=c,i[6]=e):e=i[6],e}let u=h?"text-success":"text-danger";return i[7]!==h?(n=h?(0,r.jsx)(G,{}):(0,r.jsx)(X,{}),i[7]=h,i[8]=n):n=i[8],i[9]!==c||i[10]!==u||i[11]!==n?(o=(0,r.jsxs)("span",{className:u,children:[n," ",c]}),i[9]=c,i[10]=u,i[11]=n,i[12]=o):o=i[12],o},G=()=>{let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(W.A,{size:14}),s[0]=e):e=s[0],e},X=()=>{let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(O.A,{size:14}),s[0]=e):e=s[0],e};function Q(e){let s,t,o,w,C,P,T,E,F,A,S,k,D,_,I,q,z,M,$,N,L,W,O,B,V,U,Y,H,G,X,Q,J,ee,es=(0,a.c)(91),{action:et}=e,{data:er,isLoading:ea}=v.Ay.useTeam(),en=(0,l.useRouter)(),eo=!!(!ea&&er);es[0]!==eo||es[1]!==en?(s=()=>{eo&&en.push("/search")},t=[eo,en],es[0]=eo,es[1]=en,es[2]=s,es[3]=t):(s=es[2],t=es[3]),(0,n.useEffect)(s,t);let ei="register"===et;es[4]===Symbol.for("react.memo_cache_sentinel")?(o={reValidateMode:"onSubmit"},es[4]=o):o=es[4];let{register:el,handleSubmit:ed,formState:ec,setError:em,control:eh}=(0,m.mN)(o),{errors:eu,isSubmitting:ep}=ec,{err:ey,msg:eg}=en.query,{data:ej}=v.Ay.useInstallation(),ex=v.Ay.useRegisterPassword(),ef="verify"===eg,ev=`HyperDX - ${ei?"Sign up":"Login"}`;es[5]!==ej?.isTeamExisting||es[6]!==ei||es[7]!==en?(w=()=>{b.bp&&ej?.isTeamExisting===!0&&ei&&en.push("/login")},es[5]=ej?.isTeamExisting,es[6]=ei,es[7]=en,es[8]=w):w=es[8],es[9]!==ej||es[10]!==ei||es[11]!==en?(C=[ej,ei,en],es[9]=ej,es[10]=ei,es[11]=en,es[12]=C):C=es[12],(0,n.useEffect)(w,C),es[13]!==eh?(P={control:eh,name:"password",defaultValue:""},es[13]=eh,es[14]=P):P=es[14];let eb=(0,m.FH)(P);es[15]!==eh?(T={control:eh,name:"confirmPassword",defaultValue:""},es[15]=eh,es[16]=T):T=es[16];let ew=(0,m.FH)(T);es[17]!==ew||es[18]!==eb?(E=()=>eb===ew,es[17]=ew,es[18]=eb,es[19]=E):E=es[19];let eC=E;es[20]!==ex||es[21]!==en||es[22]!==em?(F=e=>ex.mutate({email:e.email,password:e.password,confirmPassword:e.confirmPassword},{onSuccess:()=>en.push("/search"),onError:async e=>{if(e instanceof c.H){let s=await e.response.json();if(Array.isArray(s)&&s[0]?.errors?.issues)return s[0].errors.issues.forEach(e=>{em(e.path[0],{type:e.code,message:e.message})})}em("root",{type:"manual",message:"An unexpected error occurred, please try again later."})}}),es[20]=ex,es[21]=en,es[22]=em,es[23]=F):F=es[23];let eP=F;es[24]!==ed||es[25]!==ei||es[26]!==eP||es[27]!==el?(A=ei?{controller:{onSubmit:ed(eP)},email:el("email",{required:!0}),password:el("password",{required:!0}),confirmPassword:el("confirmPassword",{required:!0})}:{controller:{action:"/api/login/password",method:"POST"},email:{name:"email"},password:{name:"password"}},es[24]=ed,es[25]=ei,es[26]=eP,es[27]=el,es[28]=A):A=es[28];let eT=A;es[29]!==ev?(S=(0,r.jsx)(d.bV,{title:ev}),es[29]=ev,es[30]=S):S=es[30];let eE=`/${et}`;es[31]!==eE?(k=(0,r.jsx)(K,{activeKey:eE,fixed:!0}),es[31]=eE,es[32]=k):k=es[32],es[33]===Symbol.for("react.memo_cache_sentinel")?(D={width:"26rem"},es[33]=D):D=es[33],es[34]===Symbol.for("react.memo_cache_sentinel")?(_={marginTop:-30},es[34]=_):_=es[34];let eF=b.bp&&ei?"Setup ":ei?"Register for ":"Login to ";es[35]===Symbol.for("react.memo_cache_sentinel")?(I=(0,r.jsx)("span",{className:"text-brand fw-bold",children:"HyperDX"}),es[35]=I):I=es[35],es[36]!==eF?(q=(0,r.jsxs)("div",{className:"text-center mb-2 fs-5 ",style:_,children:[eF,I]}),es[36]=eF,es[37]=q):q=es[37],es[38]!==et?(z="login"===et&&(0,r.jsx)("div",{className:"text-center mb-2 ",children:"Welcome back!"}),es[38]=et,es[39]=z):z=es[39],es[40]!==ei?(M=ei&&!0===b.bp&&(0,r.jsxs)("div",{className:"text-center mb-2 text-muted",children:["Let","'","s create your user account."]}),es[40]=ei,es[41]=M):M=es[41],es[42]===Symbol.for("react.memo_cache_sentinel")?($=(0,r.jsx)(x,{size:18}),es[42]=$):$=es[42];let eA=eu.email?.message;es[43]!==eT.email||es[44]!==eA?(N=(0,r.jsx)(h.k,{label:"Email",size:"md",withAsterisk:!1,placeholder:"you@company.com",type:"email",leftSection:$,error:eA,required:!0,...eT.email}),es[43]=eT.email,es[44]=eA,es[45]=N):N=es[45],es[46]===Symbol.for("react.memo_cache_sentinel")?(L=(0,r.jsx)(f.A,{size:16}),es[46]=L):L=es[46];let eS=eu.password?.message;es[47]!==eT.password||es[48]!==eS?(W=(0,r.jsx)(u.y,{size:"md",label:"Password",withAsterisk:!1,leftSection:L,error:eS,required:!0,placeholder:"Password",...eT.password}),es[47]=eT.password,es[48]=eS,es[49]=W):W=es[49],es[50]!==eC||es[51]!==eb||es[52]!==eu.confirmPassword?.message||es[53]!==eT.confirmPassword||es[54]!==ei?(O=ei&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.y,{label:(0,r.jsx)(Z,{handler:eC,password:eb,children:"Confirm Password"}),size:"md",required:!0,withAsterisk:!1,leftSection:(0,r.jsx)(f.A,{size:16}),error:eu.confirmPassword?.message,placeholder:"Confirm Password",...eT.confirmPassword}),(0,r.jsx)(p.E,{withCloseButton:!1,children:(0,r.jsx)(R,{password:eb})})]}),es[50]=eC,es[51]=eb,es[52]=eu.confirmPassword?.message,es[53]=eT.confirmPassword,es[54]=ei,es[55]=O):O=es[55];let ek=ep||ef,eD=b.bp&&ei?"Create":ei?"Register":"Login";return es[56]!==ep||es[57]!==ek||es[58]!==eD?(B=(0,r.jsx)(y.$,{mt:4,type:"submit",variant:"primary",size:"md",disabled:ek,loading:ep,"data-test-id":"submit",children:eD}),es[56]=ep,es[57]=ek,es[58]=eD,es[59]=B):B=es[59],es[60]!==N||es[61]!==W||es[62]!==O||es[63]!==B?(V=(0,r.jsx)(g.t,{p:34,shadow:"md",radius:"md",children:(0,r.jsxs)(j.B,{gap:"lg",children:[N,W,O,B]})}),es[60]=N,es[61]=W,es[62]=O,es[63]=B,es[64]=V):V=es[64],es[65]!==ey?(U=null!=ey&&(0,r.jsx)(p.E,{withCloseButton:!1,withBorder:!0,color:"red","data-test-id":"auth-error-msg",children:"missing"===ey?"Please provide a valid email and password":"invalid"===ey?"Email or password is invalid":"authFail"===ey?"Failed to login with email and password, please try again.":"passwordAuthNotAllowed"===ey?"Password authentication is not allowed by your team admin.":"teamAlreadyExists"===ey?"Team already exists, please login instead.":"Unknown error occurred, please try again later."}),es[65]=ey,es[66]=U):U=es[66],es[67]!==ef?(Y=ef&&(0,r.jsx)(p.E,{withCloseButton:!1,withBorder:!0,color:"green","data-test-id":"auth-msg",children:"Sent verification email! Please check your email inbox"}),es[67]=ef,es[68]=Y):Y=es[68],es[69]!==ei?(H=ei&&!1===b.bp&&(0,r.jsxs)("div",{"data-test-id":"login-link",className:"text-center fs-8 ",children:["Already have an account? ",(0,r.jsx)(i(),{href:"/login",children:"Log in"})," ","instead."]}),es[69]=ei,es[70]=H):H=es[70],es[71]!==et?(G="login"===et&&!1===b.bp&&(0,r.jsxs)("div",{"data-test-id":"register-link",className:"text-center fs-8 ",children:["Don","'","t have an account yet?"," ",(0,r.jsx)(i(),{href:"/register",children:"Register"})," instead."]}),es[71]=et,es[72]=G):G=es[72],es[73]!==V||es[74]!==U||es[75]!==Y||es[76]!==H||es[77]!==G?(X=(0,r.jsxs)(j.B,{gap:"xl",children:[V,U,Y,H,G]}),es[73]=V,es[74]=U,es[75]=Y,es[76]=H,es[77]=G,es[78]=X):X=es[78],es[79]!==eT.controller||es[80]!==X?(Q=(0,r.jsx)("form",{className:"text-start mt-4",...eT.controller,children:X}),es[79]=eT.controller,es[80]=X,es[81]=Q):Q=es[81],es[82]!==q||es[83]!==z||es[84]!==M||es[85]!==Q?(J=(0,r.jsx)("div",{className:"d-flex justify-content-center align-items-center vh-100",children:(0,r.jsxs)("div",{style:D,children:[q,z,M,Q]})}),es[82]=q,es[83]=z,es[84]=M,es[85]=Q,es[86]=J):J=es[86],es[87]!==S||es[88]!==k||es[89]!==J?(ee=(0,r.jsxs)("div",{className:"AuthPage",children:[S,k,J]}),es[87]=S,es[88]=k,es[89]=J,es[90]=ee):ee=es[90],ee}},45544:(e,s,t)=>{t.d(s,{y:()=>v});var r=t(6029),a=t(50212),n=t(60466),o=t(3001);t(55729);var i=t(76),l=t(5618),d=t(35228),c=t(37666),m=t(80616),h=t(3389),u=t(43016),p=t(76013),y=t(96061),g=t(94613),j={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};let x={visibilityToggleIcon:({reveal:e})=>(0,r.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:(0,r.jsx)("path",{d:e?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})},f=(0,l.V)((e,{size:s})=>({root:{"--psi-icon-size":(0,i.YC)(s,"psi-icon-size"),"--psi-button-size":(0,i.YC)(s,"psi-button-size")}})),v=(0,u.P9)((e,s)=>{let t=(0,m.Y)("PasswordInput",x,e),{classNames:i,className:l,style:u,styles:g,unstyled:v,vars:b,required:w,error:C,leftSection:P,disabled:T,id:E,variant:F,inputContainer:A,description:S,label:k,size:D,errorProps:_,descriptionProps:I,labelProps:q,withAsterisk:z,inputWrapperOrder:M,wrapperProps:$,radius:N,rightSection:L,rightSectionWidth:K,rightSectionPointerEvents:W,leftSectionWidth:O,visible:B,defaultVisible:V,onVisibilityChange:U,visibilityToggleIcon:Y,visibilityToggleButtonProps:H,rightSectionProps:R,leftSectionProps:Z,leftSectionPointerEvents:G,withErrorStyles:X,mod:Q,...J}=t,ee=(0,n.B)(E),[es,et]=(0,o.Z)({value:B,defaultValue:V,finalValue:!1,onChange:U}),er=(0,c.I)({name:"PasswordInput",classes:j,props:t,className:l,style:u,classNames:i,styles:g,unstyled:v,vars:b,varsResolver:f}),{resolvedClassNames:ea,resolvedStyles:en}=(0,d.Y)({classNames:i,styles:g,props:t}),{styleProps:eo,rest:ei}=(0,h.j)(J),el=_?.id||`${ee}-error`,ed=I?.id||`${ee}-description`,ec=!!C&&"boolean"!=typeof C,em=!!S,eh=`${ec?el:""} ${em?ed:""}`,eu=eh.trim().length>0?eh.trim():void 0,ep=(0,r.jsx)(p.M,{...er("visibilityToggle"),disabled:T,radius:N,"aria-hidden":!H,tabIndex:-1,...H,variant:H?.variant??"subtle",color:"gray",unstyled:v,onTouchEnd:e=>{e.preventDefault(),H?.onTouchEnd?.(e),et(!es)},onMouseDown:e=>{e.preventDefault(),H?.onMouseDown?.(e),et(!es)},onKeyDown:e=>{H?.onKeyDown?.(e)," "===e.key&&(e.preventDefault(),et(!es))},children:(0,r.jsx)(Y,{reveal:es})});return(0,r.jsx)(y.p.Wrapper,{required:w,id:ee,label:k,error:C,description:S,size:D,classNames:ea,styles:en,__staticSelector:"PasswordInput",unstyled:v,withAsterisk:z,inputWrapperOrder:M,inputContainer:A,variant:F,labelProps:{...q,htmlFor:ee},descriptionProps:{...I,id:ed},errorProps:{..._,id:el},mod:Q,...er("root"),...eo,...$,children:(0,r.jsx)(y.p,{component:"div",error:C,leftSection:P,size:D,classNames:{...ea,input:(0,a.A)(j.input,ea.input)},styles:en,radius:N,disabled:T,__staticSelector:"PasswordInput",rightSectionWidth:K,rightSection:L??ep,variant:F,unstyled:v,leftSectionWidth:O,rightSectionPointerEvents:W||"all",rightSectionProps:R,leftSectionProps:Z,leftSectionPointerEvents:G,withAria:!1,withErrorStyles:X,children:(0,r.jsx)("input",{required:w,"data-invalid":!!C||void 0,"data-with-left-section":!!P||void 0,...er("innerInput"),disabled:T,id:ee,ref:s,...ei,"aria-describedby":eu,autoComplete:ei.autoComplete||"off",type:es?"text":"password"})})})});v.classes={...g.O.classes,...j},v.displayName="@mantine/core/PasswordInput"},74011:(e,s,t)=>{t.d(s,{A:()=>r});var r=(0,t(41495).A)("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]])},83171:(e,s,t)=>{t.d(s,{m:()=>u});var r=t(6029);t(55729);var a=t(76),n=t(5618),o=t(80616),i=t(37666),l=t(60481),d=t(43016),c={root:"m_7485cace"};let m={},h=(0,n.V)((e,{size:s,fluid:t})=>({root:{"--container-size":t?void 0:(0,a.YC)(s,"container-size")}})),u=(0,d.P9)((e,s)=>{let t=(0,o.Y)("Container",m,e),{classNames:a,className:n,style:d,styles:u,unstyled:p,vars:y,fluid:g,mod:j,...x}=t,f=(0,i.I)({name:"Container",classes:c,props:t,className:n,style:d,classNames:a,styles:u,unstyled:p,vars:y,varsResolver:h});return(0,r.jsx)(l.a,{ref:s,mod:[{fluid:g},j],...f("root"),...x})});u.classes=c,u.displayName="@mantine/core/Container"}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/6514-9ab29f6b02cd025a.js b/out/_next/static/chunks/6514-457be65adbe54e27.js similarity index 60% rename from out/_next/static/chunks/6514-9ab29f6b02cd025a.js rename to out/_next/static/chunks/6514-457be65adbe54e27.js index a7c2267..ce03e93 100644 --- a/out/_next/static/chunks/6514-9ab29f6b02cd025a.js +++ b/out/_next/static/chunks/6514-457be65adbe54e27.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6514],{43524:e=>{e.exports={navGhost:"AppNav_navGhost__eHfjO",nav:"AppNav_nav__aQ9CO",navFixed:"AppNav_navFixed__ZeKhY",navCollapsed:"AppNav_navCollapsed__lycT3",navLinks:"AppNav_navLinks__3ZFJ_",navItem:"AppNav_navItem__qtSLL",navItemIcon:"AppNav_navItemIcon__y86wX",header:"AppNav_header__2JQvX",headerExpanded:"AppNav_headerExpanded__yEAuu",headerCollapsed:"AppNav_headerCollapsed__qMGd8",logoLink:"AppNav_logoLink__FMsYw",logoIconWrapper:"AppNav_logoIconWrapper__OelwF",collapseButton:"AppNav_collapseButton__FDYcm",collapseButtonCollapsed:"AppNav_collapseButtonCollapsed__1j3qp",scrollContainer:"AppNav_scrollContainer__UQQtv",footer:"AppNav_footer__dHa_L",navItemActive:"AppNav_navItemActive__GN7le",navItemContent:"AppNav_navItemContent__YlStp",navItemBadge:"AppNav_navItemBadge__6VqCa",navItemToggle:"AppNav_navItemToggle__tfzhc",subMenu:"AppNav_subMenu__sdt7n",subMenuItem:"AppNav_subMenuItem___6SwX",subMenuItemActive:"AppNav_subMenuItemActive__jQhrk",groupLabel:"AppNav_groupLabel__rOCDt",groupDragOver:"AppNav_groupDragOver__7ZKjA",searchInput:"AppNav_searchInput__tW1sl",shortcutHint:"AppNav_shortcutHint__McknQ",shortcutHintCtrl:"AppNav_shortcutHintCtrl__nSE1_",emptyMessage:"AppNav_emptyMessage__s2J5J",userMenu:"AppNav_userMenu__7x8UA",userMenuCollapsed:"AppNav_userMenuCollapsed__YtJQm",userMenuInfo:"AppNav_userMenuInfo__GUaPj",userMenuName:"AppNav_userMenuName__7bXub",userMenuTeam:"AppNav_userMenuTeam__qL_0p",helpButton:"AppNav_helpButton__i5B5h",helpButtonCollapsed:"AppNav_helpButtonCollapsed__dXx2R",onboardingSection:"AppNav_onboardingSection__eOrci",scrollbar:"AppNav_scrollbar__YjKyG",thumb:"AppNav_thumb__IzI2H"}},56514:(e,s,t)=>{"use strict";t.d(s,{D:()=>sc});var a=t(6029),r=t(55729),n=t(82203),l=t.n(n),o=t(60481),i=t(53061),c=t(43517),d=t(75155),m=t(81278),h=t.n(m),u=t(75828),p=t.n(u),x=t(1885),f=t(6065),b=t(16162),j=t.n(b),v=t(82641),_=t(25062),g=t(20158),y=t(96061),S=t(22599),k=t(3635),N=t(43085),C=t(76013),A=t(94720),w=t(53993),z=t(22175),I=t(78341),M=t(71991),E=t(87104),D=t(86705),T=t(85318),L=t(16120),F=t(41279),O=t(70114),P=t(23474),W=t(53780),H=t(56447),Q=t(45519),B=t(46661),Y=t(95316),q=t(6876),G=t(98142),V=t(97344),$=t(27166),K=t(36517),U=t(74805),R=t(65234);function J(e){let s,t,n,l,o,i=(0,d.c)(12),{text:c,className:m,children:h}=e,[u,x]=(0,r.useState)(!1);return i[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{x(!0),setTimeout(()=>x(!1),2e3)},i[0]=s):s=i[0],i[1]!==m?(t=p()("text-decoration-none",m),i[1]=m,i[2]=t):t=i[2],i[3]!==h||i[4]!==u?(n=h({isCopied:u}),i[3]=h,i[4]=u,i[5]=n):n=i[5],i[6]!==t||i[7]!==n?(l=(0,a.jsx)(_.$,{variant:"secondary",p:0,className:t,size:"xs",fullWidth:!0,children:n}),i[6]=t,i[7]=n,i[8]=l):l=i[8],i[9]!==l||i[10]!==c?(o=(0,a.jsx)(R.CopyToClipboard,{text:c,onCopy:s,children:l}),i[9]=l,i[10]=c,i[11]=o):o=i[11],o}function X(e){let s,t,r=(0,d.c)(6),{label:n,value:l}=e,o=void 0===n?"":n;return r[0]!==o||r[1]!==l?(s=e=>{let{isCopied:s}=e;return(0,a.jsxs)("div",{className:p()("d-flex w-100 py-2 px-2 gap-2 rounded align-items-center justify-content-between cursor-pointer",{"text-success":s}),children:[(0,a.jsxs)("div",{className:"fs-7 d-flex text-truncate align-items-center",children:[o,(0,a.jsx)("pre",{className:"m-0 user-select-all d-inline text-truncate fs-7 lh-1",children:l})]}),(0,a.jsxs)(k.Y,{gap:2,wrap:"nowrap",className:p()("fs-7 text-end"),children:[s?(0,a.jsx)(K.A,{size:14}):(0,a.jsx)(U.A,{size:14}),s?"Copied!":"Copy"]})]})},r[0]=o,r[1]=l,r[2]=s):s=r[2],r[3]!==s||r[4]!==l?(t=(0,a.jsx)(J,{text:l,className:"d-flex mx-auto p-0 w-100",children:s}),r[3]=s,r[4]=l,r[5]=t):t=r[5],t}function Z(e){let s,t,r,n,l,o,i,c,m,h,u,p,x,f,b,j,v,g,y=(0,d.c)(25),{show:S,onHide:k}=e,{data:N}=q.Ay.useTeam();return y[0]!==N?(s=null!=N&&(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(X,{label:(0,a.jsxs)("span",{className:"text-muted me-2",children:["Your Ingestion API Key:"," "]}),value:N.apiKey})}),y[0]=N,y[1]=s):s=y[1],y[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)("div",{className:"fs-7 mb-4",children:"Click on a link below to view installation instructions for your application."}),r=(0,a.jsx)("div",{className:"fs-6 mb-2",children:"Backend"}),y[2]=t,y[3]=r):(t=y[2],r=y[3]),y[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/nodejs",target:"_blank",rel:"noreferrer",className:"text-link",children:"Node.js"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[4]=n):n=y[4],y[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/golang",target:"_blank",rel:"noreferrer",className:"text-link",children:"Go"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[5]=l):l=y[5],y[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/python",target:"_blank",rel:"noreferrer",className:"text-link",children:"Python"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[6]=o):o=y[6],y[7]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/java",target:"_blank",rel:"noreferrer",className:"text-link",children:"Java"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[7]=i):i=y[7],y[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/elixir",target:"_blank",rel:"noreferrer",className:"text-link",children:"Elixir"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs)"})]}),y[8]=c):c=y[8],y[9]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/ruby-on-rails",target:"_blank",rel:"noreferrer",className:"text-link",children:"Ruby on Rails"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Traces)"})]}),m=(0,a.jsx)("div",{className:"fs-6 mb-2 mt-4",children:"Platform"}),y[9]=m,y[10]=h):(m=y[9],h=y[10]),y[11]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/ingesting-data/kubernetes",target:"_blank",rel:"noreferrer",className:"text-link",children:"Kubernetes"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Metrics)"})]}),p=(0,a.jsx)("div",{className:"fs-6 mb-2 mt-4",children:"Browser"}),y[11]=u,y[12]=p):(u=y[11],p=y[12]),y[13]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/browser",target:"_blank",rel:"noreferrer",className:"text-link",children:"JavaScript/TypeScript"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),f=(0,a.jsx)("div",{className:"fs-6 mb-2 mt-4",children:"Data Collector"}),y[13]=x,y[14]=f):(x=y[13],f=y[14]),y[15]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/ingesting-data/opentelemetry#sending-otel-data",target:"_blank",rel:"noreferrer",className:"text-link",children:"OpenTelemetry"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[15]=b):b=y[15],y[16]!==k?(j=(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(_.$,{variant:"secondary",onClick:()=>k(),children:"Cancel"})}),y[16]=k,y[17]=j):j=y[17],y[18]!==s||y[19]!==j?(v=(0,a.jsxs)("div",{className:"inter",children:[s,t,r,n,l,o,i,c,h,m,u,p,x,f,b,j]}),y[18]=s,y[19]=j,y[20]=v):v=y[20],y[21]!==k||y[22]!==S||y[23]!==v?(g=(0,a.jsx)($.a,{opened:S,onClose:k,title:"Start Sending Telemetry",size:"lg",centered:!0,children:v}),y[21]=k,y[22]=S,y[23]=v,y[24]=g):g=y[24],g}var ee=t(34834),es=t(62801),et=t(8737),ea=t(58333),er=t(90515),en=t(88992),el=t(91021),eo=t(93108),ei=t(81973),ec=t(92917);let ed=Date.now(),em=e=>{let s,t,r,n,l,o,i,m,h,u,p,x,f,b,j,v,_,g,y,A,w,z,I,M=(0,d.c)(64),{onAddDataClick:E}=e,[D,T]=(0,ec.Mj)("onboardingChecklistCollapsed",!1),{data:L,isLoading:F}=q.Ay.useTeam(),{data:O,isLoading:W}=(0,eo.ZY)(),{data:H,isLoading:Q}=(0,ei.oE)();e:{let e,t;if(!L?.createdAt){s=!1;break e}M[0]===Symbol.for("react.memo_cache_sentinel")?(e=new Date(ed-2592e5),M[0]=e):e=M[0];let a=e;M[1]!==L.createdAt?(t=new Date(L.createdAt),M[1]=L.createdAt,M[2]=t):t=M[2],s=t>a}let B=s,Y=!1===F&&B,G=O?.[0];M[3]!==G?.id||M[4]!==H?(t=H?.filter(e=>e.connection===G?.id),M[3]=G?.id,M[4]=H,M[5]=t):t=M[5];let V=t;M[6]===Symbol.for("react.memo_cache_sentinel")?(r={databaseName:"system",tableName:"tables"},M[6]=r):r=M[6],M[7]!==V?(n=V??[],M[7]=V,M[8]=n):n=M[8],M[9]!==n?(l=n.map(eh),M[9]=n,M[10]=l):l=M[10];let $=G?.id??"";M[11]!==l||M[12]!==$?(o={select:"sum(total_rows) as total_rows",from:r,where:"",filtersLogicalOperator:"OR",filters:l,connection:$},M[11]=l,M[12]=$,M[13]=o):o=M[13];let K=o;M[14]!==Y?(i={enabled:Y},M[14]=Y,M[15]=i):i=M[15];let{data:U,isLoading:R}=(0,el.HD)(K,i),J=U?.data?.[0]?.total_rows>0,X=O&&O.length>0,Z=H&&H.length>0,et=X??!1,er=X?void 0:"/team";M[16]!==W||M[17]!==er||M[18]!==et?(m={id:"connection",title:"Connect to ClickHouse",description:"Set up your database connection",isComplete:et,isLoading:W,href:er},M[16]=W,M[17]=er,M[18]=et,M[19]=m):m=M[19];let en=Z??!1,em=Z?void 0:"/team";M[20]!==Q||M[21]!==en||M[22]!==em?(h={id:"sources",title:"Create Data Sources",description:"Configure where your data comes from",isComplete:en,isLoading:Q,href:em},M[20]=Q,M[21]=en,M[22]=em,M[23]=h):h=M[23];let ex=J?void 0:E;M[24]!==J||M[25]!==R||M[26]!==ex?(u={id:"data",title:"Add Data",description:"Start sending logs, metrics, or traces",isComplete:J,isLoading:R,onClick:ex},M[24]=J,M[25]=R,M[26]=ex,M[27]=u):u=M[27],M[28]!==m||M[29]!==h||M[30]!==u?(p=[m,h,u],M[28]=m,M[29]=h,M[30]=u,M[31]=p):p=M[31];let ef=p;M[32]!==ef?(x=ef.filter(eu),M[32]=ef,M[33]=x):x=M[33];let eb=x.length,ej=eb===ef.length;if(!Y)return null;let ev=D?0:"xs";M[34]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.jsx)(c.E,{size:"sm",fw:"bold",children:"Get Started"}),M[34]=f):f=M[34];let e_=ej?"green":"blue";M[35]!==eb||M[36]!==ef.length||M[37]!==e_?(b=(0,a.jsxs)(k.Y,{gap:"xs",align:"center",children:[f,(0,a.jsxs)(N.E,{size:"xs",color:e_,variant:"light",children:[eb,"/",ef.length]})]}),M[35]=eb,M[36]=ef.length,M[37]=e_,M[38]=b):b=M[38],M[39]!==D||M[40]!==T?(j=()=>T(!D),M[39]=D,M[40]=T,M[41]=j):j=M[41],M[42]!==D?(v=D?(0,a.jsx)(P.A,{size:12}):(0,a.jsx)(ea.A,{size:12}),M[42]=D,M[43]=v):v=M[43],M[44]!==j||M[45]!==v?(_=(0,a.jsx)(C.M,{variant:"subtle",size:"sm",onClick:j,children:v}),M[44]=j,M[45]=v,M[46]=_):_=M[46],M[47]!==ev||M[48]!==b||M[49]!==_?(g=(0,a.jsxs)(k.Y,{justify:"space-between",align:"center",mb:ev,children:[b,_]}),M[47]=ev,M[48]=b,M[49]=_,M[50]=g):g=M[50];let eg=!D;return M[51]!==ef?(y=ef.map(ep),M[51]=ef,M[52]=y):y=M[52],M[53]!==ej?(A=ej&&(0,a.jsx)(k.Y,{justify:"center",mt:"xs",p:"xs",children:(0,a.jsx)(c.E,{size:"sm",c:"green",fw:"bold",children:"\uD83C\uDF89 Great job! You're all set up."})}),M[53]=ej,M[54]=A):A=M[54],M[55]!==y||M[56]!==A?(w=(0,a.jsxs)(ee.B,{gap:"xs",children:[y,A]}),M[55]=y,M[56]=A,M[57]=w):w=M[57],M[58]!==eg||M[59]!==w?(z=(0,a.jsx)(S.S,{in:eg,children:w}),M[58]=eg,M[59]=w,M[60]=z):z=M[60],M[61]!==g||M[62]!==z?(I=(0,a.jsxs)(es.Z,{withBorder:!0,p:"xs",mb:"sm",radius:"md",children:[g,z]}),M[61]=g,M[62]=z,M[63]=I):I=M[63],I};function eh(e){return{type:"sql",condition:`table = '${e.from.tableName}' AND database = '${e.from.databaseName}'`}}function eu(e){return e.isComplete}function ep(e,s){let t=(0,a.jsxs)(k.Y,{gap:"sm",align:"center",w:"100%",children:[(0,a.jsx)("div",{style:{width:20,height:20,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",border:e.isComplete?"1px solid var(--color-text-brand)":"1px solid var(--color-border)",backgroundColor:e.isComplete?"transparent":"var(--color-bg-muted)",color:e.isComplete?"var(--color-text-brand)":"var(--color-text)",flexShrink:0},children:e.isLoading?(0,a.jsx)(A.a,{size:"xs",color:"gray"}):e.isComplete?(0,a.jsx)(er.A,{size:16,style:{fontSize:12,fontWeight:"bold",paddingTop:1}}):(0,a.jsx)(c.E,{size:"xs",fw:"bold",children:s+1})}),(0,a.jsxs)("div",{style:{flex:1},children:[(0,a.jsx)(c.E,{size:"sm",fw:"500",style:{textDecoration:e.isComplete?"line-through":"none",opacity:e.isComplete?.8:1},children:e.title}),(0,a.jsx)(c.E,{size:"xs",c:"dimmed",children:e.description})]}),!e.isComplete&&(e.href||e.onClick)&&(0,a.jsx)(en.A,{size:12,style:{color:"var(--color-text-muted)"}})]});return e.href&&!e.isComplete?(0,a.jsx)(l(),{href:e.href,style:{textDecoration:"none"},children:(0,a.jsx)(et.N,{w:"100%",py:"xs",style:{borderRadius:6,cursor:"pointer",":hover":{backgroundColor:"var(--color-bg-muted)"}},children:t})},e.id):e.onClick&&!e.isComplete?(0,a.jsx)(et.N,{w:"100%",py:"xs",onClick:e.onClick,style:{borderRadius:6,cursor:"pointer",":hover":{backgroundColor:"var(--color-bg-hover)"}},children:t},e.id):(0,a.jsx)("div",{style:{},children:t},e.id)}var ex=t(87095),ef=t(36600),eb=t(92789),ej=t(38206),ev=t(87989),e_=t(63085),eg=t(97787),ey=t(23994),eS=t(31071),ek=t(58202),eN=t(57820);let eC=[{label:"Dark",value:"dark"},{label:"Light",value:"light"}],eA=Object.values(ek.Zj).map(e=>({label:e.displayName,value:e.name})),ew=e=>{let s,t,r,n,l,o,i=(0,d.c)(12),{label:m,description:h,children:u}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(s={flex:1},i[0]=s):s=i[0],i[1]!==h?(t=h&&(0,a.jsx)(c.E,{size:"xs",mt:2,children:h}),i[1]=h,i[2]=t):t=i[2],i[3]!==m||i[4]!==t?(r=(0,a.jsxs)("div",{style:s,children:[m,t]}),i[3]=m,i[4]=t,i[5]=r):r=i[5],i[6]===Symbol.for("react.memo_cache_sentinel")?(n={flex:.8},i[6]=n):n=i[6],i[7]!==u?(l=(0,a.jsx)("div",{style:n,children:u}),i[7]=u,i[8]=l):l=i[8],i[9]!==r||i[10]!==l?(o=(0,a.jsxs)(k.Y,{align:"center",justify:"space-between",children:[r,l]}),i[9]=r,i[10]=l,i[11]=o):o=i[11],o},ez=e=>{let s,t,r,n,l,o,i,m,h,u,p,x,f,b,j=(0,d.c)(37),{opened:v,onClose:_}=e,{userPreferences:g,setUserPreference:y}=(0,eN.HW)(),{themeName:S,setTheme:C,isDev:A}=(0,ef.o3)();return j[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"Preferences"}),(0,a.jsx)(c.E,{size:"xs",mt:6,children:"Customize your experience"})]}),j[0]=s):s=j[0],j[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(eb.c,{label:"Date and Time",labelPosition:"left"}),j[1]=t):t=j[1],j[2]!==y?(r=e=>e&&y({timeFormat:e}),j[2]=y,j[3]=r):r=j[3],j[4]===Symbol.for("react.memo_cache_sentinel")?(n=["12h","24h"],j[4]=n):n=j[4],j[5]!==r||j[6]!==g.timeFormat?(l=(0,a.jsx)(ew,{label:"Time format",children:(0,a.jsx)(ej.l,{value:g.timeFormat,onChange:r,data:n,allowDeselect:!1})}),j[5]=r,j[6]=g.timeFormat,j[7]=l):l=j[7],j[8]!==y?(o=e=>y({isUTC:e.currentTarget.checked}),j[8]=y,j[9]=o):o=j[9],j[10]!==o||j[11]!==g.isUTC?(i=(0,a.jsx)(ew,{label:"Use UTC time",children:(0,a.jsx)(ev.d,{size:"md",onLabel:"UTC",checked:g.isUTC,onChange:o})}),j[10]=o,j[11]=g.isUTC,j[12]=i):i=j[12],j[13]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)(eb.c,{label:(0,a.jsxs)(k.Y,{align:"center",gap:"xs",children:["Appearance",(0,a.jsx)(N.E,{variant:"light",fw:"normal",size:"xs",children:"Experimental"})]}),labelPosition:"left",mt:"sm"}),j[13]=m):m=j[13],j[14]!==y?(h=e=>e&&y({colorMode:e}),j[14]=y,j[15]=h):h=j[15],j[16]!==h||j[17]!==g.colorMode?(u=(0,a.jsx)(ew,{label:"Color Mode",description:"Switch between light and dark mode",children:(0,a.jsx)(ej.l,{value:g.colorMode,onChange:h,data:eC,allowDeselect:!1})}),j[16]=h,j[17]=g.colorMode,j[18]=u):u=j[18],j[19]!==A||j[20]!==C||j[21]!==S?(p=A&&(0,a.jsx)(ew,{label:(0,a.jsxs)(k.Y,{gap:"xs",children:["Brand Theme",(0,a.jsx)(e_.m,{label:"Only available in local/dev mode. Changes logo, colors, and branding.",multiline:!0,w:220,children:(0,a.jsx)(N.E,{variant:"light",color:"violet",fw:"normal",size:"xs",leftSection:(0,a.jsx)(ey.A,{size:10}),children:"Dev Only"})})]}),description:"Switch between HyperDX and ClickStack branding",children:(0,a.jsx)(ej.l,{value:S,onChange:e=>{e&&(0,ek.tc)(e)&&C(e)},data:eA,allowDeselect:!1})}),j[19]=A,j[20]=C,j[21]=S,j[22]=p):p=j[22],j[23]!==y||j[24]!==S||j[25]!==g.font?(x="clickstack"!==S&&(0,a.jsx)(ew,{label:"Font",description:"If using custom font, make sure it's installed on your system",children:(0,a.jsx)(eg.j,{value:g.font,filter:eI,onChange:e=>y({font:e}),data:eS.Al})}),j[23]=y,j[24]=S,j[25]=g.font,j[26]=x):x=j[26],j[27]!==u||j[28]!==p||j[29]!==x||j[30]!==l||j[31]!==i?(f=(0,a.jsxs)(ee.B,{gap:"lg",children:[t,l,i,m,u,p,x]}),j[27]=u,j[28]=p,j[29]=x,j[30]=l,j[31]=i,j[32]=f):f=j[32],j[33]!==_||j[34]!==v||j[35]!==f?(b=(0,a.jsx)($.a,{title:s,size:"lg",padding:"lg",keepMounted:!1,opened:v,onClose:_,children:f}),j[33]=_,j[34]=v,j[35]=f,j[36]=b):b=j[36],b};function eI(e){let{options:s}=e;return s}var eM=t(66992),eE=t(56513),eD=t(22623),eT=t(89533),eL=t(62861),eF=t(92334),eO=t(21604),eP=t(1146),eW=t(93938),eH=t(43524),eQ=t.n(eH);let eB=r.createContext({isCollapsed:!1,pathname:"/"}),eY=()=>{let e,s,t=(0,d.c)(2);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("span",{className:"fs-8",children:"Ready to deploy on ClickHouse Cloud?"}),t[0]=e):e=t[0],t[1]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)("div",{className:"my-3 bg-muted rounded p-2 text-center",children:[e,(0,a.jsx)("div",{className:"mt-2 mb-2",children:(0,a.jsx)(_.$,{variant:"primary",size:"xs",component:"a",href:"https://clickhouse.com/docs/use-cases/observability/clickstack/getting-started#deploy-with-clickhouse-cloud",target:"_blank",rel:"noopener noreferrer",children:"Get Started for Free"})})]}),t[1]=s):s=t[1],s},eq=e=>{let s,t,n,o,i,m,h,u,x,f,b,j,v,_=(0,d.c)(29),{userName:g,teamName:y,logoutUrl:S,onClickUserPreferences:N}=e,C=void 0===g?"User":g,{isCollapsed:A}=r.useContext(eB);_[0]!==C?(s=C.split(" ").map(e$).join(""),_[0]=C,_[1]=s):s=_[1];let w=s,z=G.VO?"Local mode":C;return _[2]===Symbol.for("react.memo_cache_sentinel")?(t={transition:"fade-up"},_[2]=t):t=_[2],_[3]!==A?(n=p()(eQ().userMenu,{[eQ().userMenuCollapsed]:A}),_[3]=A,_[4]=n):n=_[4],_[5]!==w?(o=(0,a.jsx)(eM.e,{size:"sm",radius:"xl",color:"gray",children:w}),_[5]=w,_[6]=o):o=_[6],_[7]!==z||_[8]!==A||_[9]!==y?(i=!A&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e_.m,{fz:"xs",color:"gray",ta:"center",label:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:z}),(0,a.jsx)("br",{}),y]}),openDelay:250,children:(0,a.jsxs)("div",{className:eQ().userMenuInfo,children:[(0,a.jsx)(c.E,{size:"xs",fw:"bold",lh:1.1,className:eQ().userMenuName,children:z}),(0,a.jsx)(c.E,{size:"xs",className:eQ().userMenuTeam,children:y})]})}),(0,a.jsx)(O.A,{size:14})]}),_[7]=z,_[8]=A,_[9]=y,_[10]=i):i=_[10],_[11]!==o||_[12]!==i?(m=(0,a.jsxs)(k.Y,{gap:"xs",wrap:"nowrap",miw:0,children:[o,i]}),_[11]=o,_[12]=i,_[13]=m):m=_[13],_[14]!==n||_[15]!==m?(h=(0,a.jsx)(eE.W.Target,{children:(0,a.jsx)(eD.t,{"data-testid":"user-menu-trigger",className:n,children:m})}),_[14]=n,_[15]=m,_[16]=h):h=_[16],_[17]===Symbol.for("react.memo_cache_sentinel")?(u=G.VO?(0,a.jsx)(eE.W.Label,{fz:"xs",children:"Local mode"}):(0,a.jsx)(eE.W.Item,{"data-testid":"team-settings-menu-item",href:"/team",component:l(),leftSection:(0,a.jsx)(Y.A,{size:16}),children:"Team Settings"}),_[17]=u):u=_[17],_[18]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsx)(eT.A,{size:16}),_[18]=x):x=_[18],_[19]!==N?(f=(0,a.jsx)(eE.W.Item,{"data-testid":"user-preferences-menu-item",leftSection:x,onClick:N,children:"User Preferences"}),_[19]=N,_[20]=f):f=_[20],_[21]!==S?(b=S&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eE.W.Divider,{}),(0,a.jsx)(eE.W.Item,{"data-testid":"logout-menu-item",color:"red",leftSection:(0,a.jsx)(eL.A,{size:16}),component:l(),href:S,children:"Logout"})]}),_[21]=S,_[22]=b):b=_[22],_[23]!==f||_[24]!==b?(j=(0,a.jsxs)(eE.W.Dropdown,{children:[u,f,b]}),_[23]=f,_[24]=b,_[25]=j):j=_[25],_[26]!==j||_[27]!==h?(v=(0,a.jsxs)(eE.W,{position:"top-start",transitionProps:t,children:[h,j]}),_[26]=j,_[27]=h,_[28]=v):v=_[28],v},eG=e=>{let s,t,n,l,o,i,m,h,u,x,f,b,j,v=(0,d.c)(25),{version:_,onAddDataClick:g}=e,{isCollapsed:y}=r.useContext(eB),[S,N]=(0,I.j)(!1),{close:C}=N;return v[0]!==y?(s=p()(eQ().helpButton,{[eQ().helpButtonCollapsed]:y}),v[0]=y,v[1]=s):s=v[1],v[2]===Symbol.for("react.memo_cache_sentinel")?(t={transition:"fade-up"},v[2]=t):t=v[2],v[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(eE.W.Target,{children:(0,a.jsx)(et.N,{"data-testid":"help-menu-trigger",w:"100%",children:(0,a.jsx)(k.Y,{align:"center",justify:"center",h:28,children:(0,a.jsx)(eF.A,{size:16})})})}),v[3]=n):n=v[3],v[4]!==_?(l=_&&(0,a.jsxs)(c.E,{size:"xs",component:"span",children:["v",_]}),v[4]=_,v[5]=l):l=v[5],v[6]!==l?(o=(0,a.jsxs)(eE.W.Label,{children:["Help"," ",l]}),v[6]=l,v[7]=o):o=v[7],v[8]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(eE.W.Item,{"data-testid":"documentation-menu-item",href:"https://clickhouse.com/docs/use-cases/observability/clickstack",component:"a",target:"_blank",rel:"noopener noreferrer",leftSection:(0,a.jsx)(eO.A,{size:16}),children:"Documentation"}),v[8]=i):i=v[8],v[9]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)(eE.W.Item,{"data-testid":"discord-menu-item",leftSection:(0,a.jsx)(eP.A,{size:16}),component:"a",href:"https://hyperdx.io/discord",target:"_blank",rel:"noopener noreferrer",children:"Discord Community"}),v[9]=m):m=v[9],v[10]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsx)(eW.A,{size:16}),v[10]=h):h=v[10],v[11]!==g?(u=(0,a.jsx)(eE.W.Item,{"data-testid":"setup-instructions-menu-item",leftSection:h,onClick:g,children:"Setup Instructions"}),v[11]=g,v[12]=u):u=v[12],v[13]!==u||v[14]!==o?(x=(0,a.jsxs)(eE.W,{withArrow:!0,position:"top-start",transitionProps:t,defaultOpened:!1,children:[n,(0,a.jsxs)(eE.W.Dropdown,{children:[o,i,m,u]})]}),v[13]=u,v[14]=o,v[15]=x):x=v[15],v[16]!==x||v[17]!==s?(f=(0,a.jsx)(eD.t,{className:s,children:x}),v[16]=x,v[17]=s,v[18]=f):f=v[18],v[19]!==C||v[20]!==S?(b=(0,a.jsx)(Z,{show:S,onHide:C}),v[19]=C,v[20]=S,v[21]=b):b=v[21],v[22]!==f||v[23]!==b?(j=(0,a.jsxs)(a.Fragment,{children:[f,b]}),v[22]=f,v[23]=b,v[24]=j):j=v[24],j},eV=e=>{let s,t,n,o,i,c,m,h,u,x,f,b,j=(0,d.c)(37),{className:v,label:_,icon:g,href:y,isExpanded:S,onToggle:k,isBeta:C}=e,{pathname:A,isCollapsed:w}=r.useContext(eB);j[0]!==y?(s=y.replace(/^\//,"").replace(/\//g,"-")||"home",j[0]=y,j[1]=s):s=j[1];let z=`nav-link-${s}`;j[2]!==k?(t=e=>{e.preventDefault(),e.stopPropagation(),k?.()},j[2]=k,j[3]=t):t=j[3];let I=t;if(j[4]!==v||j[5]!==y||j[6]!==A||j[7]!==z){let e=A===y||A?.startsWith(y+"/");n=l(),o=z,i=y,c=p()(eQ().navItem,{[eQ().navItemActive]:e},v),j[4]=v,j[5]=y,j[6]=A,j[7]=z,j[8]=n,j[9]=o,j[10]=i,j[11]=c}else n=j[8],o=j[9],i=j[10],c=j[11];return j[12]!==g?(m=(0,a.jsx)("span",{className:eQ().navItemIcon,children:g}),j[12]=g,j[13]=m):m=j[13],j[14]!==w||j[15]!==_?(h=!w&&(0,a.jsx)("span",{children:_}),j[14]=w,j[15]=_,j[16]=h):h=j[16],j[17]!==m||j[18]!==h?(u=(0,a.jsxs)("span",{className:eQ().navItemContent,children:[m,h]}),j[17]=m,j[18]=h,j[19]=u):u=j[19],j[20]!==C||j[21]!==w?(x=!w&&C&&(0,a.jsx)(N.E,{size:"xs",color:"blue",variant:"light",className:eQ().navItemBadge,children:"Beta"}),j[20]=C,j[21]=w,j[22]=x):x=j[22],j[23]!==I||j[24]!==w||j[25]!==S||j[26]!==k||j[27]!==z?(f=!w&&k&&(0,a.jsx)("button",{type:"button","data-testid":`${z}-toggle`,className:eQ().navItemToggle,onClick:I,children:S?(0,a.jsx)(ea.A,{size:14,className:"text-muted-hover"}):(0,a.jsx)(P.A,{size:14,className:"text-muted-hover"})}),j[23]=I,j[24]=w,j[25]=S,j[26]=k,j[27]=z,j[28]=f):f=j[28],j[29]!==n||j[30]!==f||j[31]!==o||j[32]!==i||j[33]!==c||j[34]!==u||j[35]!==x?(b=(0,a.jsxs)(n,{"data-testid":o,href:i,className:c,children:[u,x,f]}),j[29]=n,j[30]=f,j[31]=o,j[32]=i,j[33]=c,j[34]=u,j[35]=x,j[36]=b):b=j[36],b};function e$(e){return e[0].toUpperCase()}let eK="Saved Searches",eU="Saved Dashboards",eR=[{id:"chart",label:"Chart Explorer",href:"/chart",icon:(0,a.jsx)(M.A,{size:16})},{id:"alerts",label:"Alerts",href:"/alerts",icon:(0,a.jsx)(E.A,{size:16}),cloudOnly:!0},{id:"sessions",label:"Client Sessions",href:"/sessions",icon:(0,a.jsx)(D.A,{size:16})},{id:"service-map",label:"Service Map",href:"/service-map",icon:(0,a.jsx)(T.A,{size:16}),isBeta:!0}];function eJ(){let e,s,t,r=(0,d.c)(6),n=(0,V.mG)();if(G.VO){let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)(_.$,{component:l(),href:"/dashboards","data-testid":"create-dashboard-button",variant:"transparent",color:"var(--color-text)",py:"0px",px:"sm",fw:400,children:[(0,a.jsx)("span",{className:"pe-2",children:"+"})," Create Dashboard"]}),r[0]=e):e=r[0],e}return r[1]!==n?(e=()=>n.mutate({name:"My Dashboard",tiles:[],tags:[]},{onSuccess:eX}),r[1]=n,r[2]=e):e=r[2],r[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)("span",{className:"pe-2",children:"+"}),r[3]=s):s=r[3],r[4]!==e?(t=(0,a.jsxs)(_.$,{"data-testid":"create-dashboard-button",variant:"transparent",color:"var(--color-text)",py:"0px",px:"sm",fw:400,onClick:e,children:[s," Create Dashboard"]}),r[4]=e,r[5]=t):t=r[5],t}function eX(e){h().push(`/dashboards/${e.id}`)}function eZ(e){let s,t,r,n,l,o,i=(0,d.c)(15),{placeholder:c,value:m,onChange:h,onEnterDown:u}=e;i[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)("div",{className:eQ().shortcutHint,children:[window.navigator.platform?.toUpperCase().includes("MAC")?(0,a.jsx)(L.A,{size:8}):(0,a.jsx)("span",{className:eQ().shortcutHintCtrl,children:"Ctrl"}),"\xa0K"]}),i[0]=s):s=i[0];let p=s;i[1]!==u?(t=e=>{"Enter"===e.key&&u?.()},i[1]=u,i[2]=t):t=i[2];let x=t;return i[3]!==h?(r=e=>h(e.currentTarget.value),i[3]=h,i[4]=r):r=i[4],i[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(F.A,{size:16,className:"ps-1"}),i[5]=n):n=i[5],i[6]!==h||i[7]!==m?(l=m?(0,a.jsx)(g.J,{"data-testid":"nav-search-clear",tabIndex:-1,size:"xs",radius:"xl",onClick:()=>h("")}):p,i[6]=h,i[7]=m,i[8]=l):l=i[8],i[9]!==x||i[10]!==c||i[11]!==r||i[12]!==l||i[13]!==m?(o=(0,a.jsx)(y.p,{"data-testid":"nav-search-input",placeholder:c,value:m,onChange:r,leftSection:n,onKeyDown:x,rightSection:l,mt:8,mb:"sm",size:"xs",variant:"filled",radius:"xl",className:eQ().searchInput}),i[9]=x,i[10]=c,i[11]=r,i[12]=l,i[13]=m,i[14]=o):o=i[14],o}let e1=e=>{let s,t,r,n=(0,d.c)(8),{name:l,collapsed:o,onClick:i}=e;return n[0]!==o?(s=o?(0,a.jsx)(O.A,{size:14}):(0,a.jsx)(P.A,{size:14}),n[0]=o,n[1]=s):s=n[1],n[2]!==l?(t=(0,a.jsx)("div",{children:l}),n[2]=l,n[3]=t):t=n[3],n[4]!==i||n[5]!==s||n[6]!==t?(r=(0,a.jsxs)("div",{className:eQ().groupLabel,onClick:i,children:[s,t]}),n[4]=i,n[5]=s,n[6]=t,n[7]=r):r=n[7],r},e0=e=>{let s,t,n,l,o,i=(0,d.c)(23),{name:c,groups:m,renderLink:h,onDragEnd:u,forceExpandGroups:x}=e,f=void 0!==x&&x,b=`collapsedGroups-${c}`;i[0]===Symbol.for("react.memo_cache_sentinel")?(s={},i[0]=s):s=i[0],i[1]!==b?(t={key:b,defaultValue:s},i[1]=b,i[2]=t):t=i[2];let[j,v]=(0,z.M)(t);i[3]!==j||i[4]!==v?(n=e=>{v({...j,[e]:!j[e]})},i[3]=j,i[4]=v,i[5]=n):n=i[5];let _=n,[g,y]=(0,r.useState)(null);if(i[6]!==j||i[7]!==g||i[8]!==f||i[9]!==m||i[10]!==_||i[11]!==u||i[12]!==h){let e;i[14]!==j||i[15]!==g||i[16]!==f||i[17]!==_||i[18]!==u||i[19]!==h?(e=e=>(0,a.jsxs)("div",{className:p()(g===e.name&&eQ().groupDragOver),onDragOver:s=>{s.preventDefault(),s.dataTransfer.dropEffect="move",y(e.name)},onDragEnd:e=>{e.preventDefault(),u?.(e.target,g),y(null)},children:[(0,a.jsx)(e1,{onClick:()=>_(e.name),name:e.name,collapsed:j[e.name]}),(0,a.jsx)(S.S,{in:!j[e.name]||f,children:e.items.map(e=>h(e))})]},e.name),i[14]=j,i[15]=g,i[16]=f,i[17]=_,i[18]=u,i[19]=h,i[20]=e):e=i[20],l=m.map(e),i[6]=j,i[7]=g,i[8]=f,i[9]=m,i[10]=_,i[11]=u,i[12]=h,i[13]=l}else l=i[13];return i[21]!==l?(o=(0,a.jsx)(a.Fragment,{children:l}),i[21]=l,i[22]=o):o=i[22],o};function e2(e){let s,t,a,n,l=(0,d.c)(14),{items:o,untaggedGroupName:i}=e,c=void 0===i?"Other":i;l[0]!==o?(s=new x.A(o,{keys:["name"],threshold:.2,ignoreLocation:!0}),l[0]=o,l[1]=s):s=l[1];let m=s,[h,u]=(0,r.useState)("");e:{let e;if(""===h){t=o;break e}l[2]!==m||l[3]!==h?(e=m.search(h).map(e5),l[2]=m,l[3]=h,l[4]=e):e=l[4],t=e}let p=t;if(l[5]!==p||l[6]!==c){let e,s={},t=[];p.forEach(e=>{e.tags?.length?e.tags.forEach(t=>{s[t]=s[t]??[],s[t].push(e)}):t.push(e)}),t.length&&(s[c]=t),l[8]!==c?(e=(e,s)=>e.name===c?1:s.name===c?-1:e.name.localeCompare(s.name),l[8]=c,l[9]=e):e=l[9],a=Object.entries(s).map(e3).sort(e),l[5]=p,l[6]=c,l[7]=a}else a=l[7];let f=a;return l[10]!==p||l[11]!==f||l[12]!==h?(n={filteredList:p,groupedFilteredList:f,q:h,setQ:u},l[10]=p,l[11]=f,l[12]=h,l[13]=n):n=l[13],n}function e3(e){let[s,t]=e;return{name:s,items:t}}function e5(e){return e.item}function e4(e){let s,t,n,o,i,c,h,u,x,b,v,_,g,y,M,D,T,L,F,O,P,$,K,U,R,J,X,ee,es,et,ea,er,en,el,eo,ei,ed,eh,eu,ep,eb,ej,ev,e_,eg,ey,eS,ek,eC,eA,ew,eI,eM,eE,eD,eT,eL,eF=(0,d.c)(163),{fixed:eO}=e,eP=void 0!==eO&&eO,eW=(0,ef.PH)();eF[0]===Symbol.for("react.memo_cache_sentinel")?(s={size:22},eF[0]=s):s=eF[0];let eH=(0,ef.GV)(s);eF[1]===Symbol.for("react.memo_cache_sentinel")?(t=[],eF[1]=t):t=eF[1],(0,r.useEffect)(se,t);let{data:e$,isLoading:eX,refetch:e3}=(0,ex.PY)();eF[2]!==e$?(n=e$??[],eF[2]=e$,eF[3]=n):n=eF[3];let e5=n,e4=(0,V.vY)(),ss=(0,ex.CI)(),{data:st,isLoading:sa,refetch:sr}=(0,V.L9)();eF[4]!==st?(o=st??[],eF[4]=st,eF[5]=o):o=eF[5];let sn=o,{pathname:sl,query:so}=(0,m.useRouter)();eF[6]===Symbol.for("react.memo_cache_sentinel")?(i={from:(0,f.withDefault)(f.NumberParam,-1),to:(0,f.withDefault)(f.NumberParam,-1)},eF[6]=i):i=eF[6];let[si]=(0,f.useQueryParams)(i);eF[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,f.withDefault)(f.StringParam,""),h={updateType:"pushIn",enableBatching:!0},eF[7]=c,eF[8]=h):(c=eF[7],h=eF[8]);let[sc]=(0,f.useQueryParam)("tq",c,h),{data:sd}=q.Ay.useMe();eF[9]===Symbol.for("react.memo_cache_sentinel")?(u={key:"isSearchExpanded",defaultValue:!0},eF[9]=u):u=eF[9];let[sm,sh]=(0,z.M)(u);eF[10]===Symbol.for("react.memo_cache_sentinel")?(x={key:"isDashboardsExpanded",defaultValue:!0},eF[10]=x):x=eF[10];let[su,sp]=(0,z.M)(x),{width:sx}=(0,ec.lW)();eF[11]===Symbol.for("react.memo_cache_sentinel")?(b={key:"isNavCollapsed",defaultValue:!1},eF[11]=b):b=eF[11];let[sf,sb]=(0,z.M)(b),sj=(sx??1e3)<900||sf,sv=sj?50:250;eF[12]!==sl||eF[13]!==so?(v=()=>{j().addAction("user navigated",{route:sl,query:JSON.stringify(so)})},_=[sl,so],eF[12]=sl,eF[13]=so,eF[14]=v,eF[15]=_):(v=eF[14],_=eF[15]),(0,r.useEffect)(v,_),eF[16]!==sd?(g=()=>{null!=sd&&(j().enableAdvancedNetworkCapture(),j().setGlobalAttributes({userEmail:sd.email,userName:sd.name,teamName:sd.team.name}))},y=[sd],eF[16]=sd,eF[17]=g,eF[18]=y):(g=eF[17],y=eF[18]),(0,r.useEffect)(g,y),eF[19]!==e5?(M={items:e5,untaggedGroupName:eK},eF[19]=e5,eF[20]=M):M=eF[20];let{q:s_,setQ:sg,filteredList:sy,groupedFilteredList:sS}=e2(M);eF[21]!==sn?(D={items:sn,untaggedGroupName:eU},eF[21]=sn,eF[22]=D):D=eF[22];let{q:sk,setQ:sN,filteredList:sC,groupedFilteredList:sA}=e2(D);eF[23]===Symbol.for("react.memo_cache_sentinel")?(T={key:"isDashboardsPresetsCollapsed",defaultValue:!1},eF[23]=T):T=eF[23];let[sw,sz]=(0,z.M)(T),sI=(0,r.useRef)(null),sM=(0,r.useRef)(null);eF[24]!==sc||eF[25]!==so.savedSearchId||eF[26]!==si.from||eF[27]!==si.to?(L=e=>(0,a.jsx)(l(),{href:`/search/${e.id}?${new URLSearchParams(-1!=si.from&&-1!=si.to?{from:si.from.toString(),to:si.to.toString(),tq:sc}:{}).toString()}`,tabIndex:0,className:p()(eQ().subMenuItem,e.id===so.savedSearchId&&eQ().subMenuItemActive),title:e.name,draggable:!0,"data-savedsearchid":e.id,children:(0,a.jsxs)(k.Y,{gap:2,children:[(0,a.jsx)("div",{className:"d-inline-block text-truncate",children:e.name}),Array.isArray(e.alerts)&&e.alerts.length>0?e.alerts.some(e9)?(0,a.jsx)(W.A,{size:14,className:"float-end text-danger ms-1","aria-label":"Has Alerts and is in ALERT state"}):(0,a.jsx)(E.A,{size:14,className:"float-end ms-1","aria-label":"Has Alerts and is in OK state"}):null]})},e.id),eF[24]=sc,eF[25]=so.savedSearchId,eF[26]=si.from,eF[27]=si.to,eF[28]=L):L=eF[28];let sE=L;eF[29]!==e5||eF[30]!==e3||eF[31]!==ss?(F=(e,s)=>{if(!e?.dataset.savedsearchid||null==s)return;let t=e5.find(s=>s.id===e.dataset.savedsearchid);t?.tags?.includes(s)||ss.mutate({id:e.dataset.savedsearchid,tags:s===eK?[]:[s]},{onSuccess:()=>{e3()}})},eF[29]=e5,eF[30]=e3,eF[31]=ss,eF[32]=F):F=eF[32];let sD=F;eF[33]!==so.dashboardId?(O=e=>(0,a.jsx)(l(),{href:`/dashboards/${e.id}`,tabIndex:0,className:p()(eQ().subMenuItem,{[eQ().subMenuItemActive]:e.id===so.dashboardId}),draggable:!0,"data-dashboardid":e.id,children:e.name},e.id),eF[33]=so.dashboardId,eF[34]=O):O=eF[34];let sT=O;eF[35]!==sn||eF[36]!==sr||eF[37]!==e4?(P=(e,s)=>{if(!e?.dataset.dashboardid||null==s)return;let t=sn.find(s=>s.id===e.dataset.dashboardid);t?.tags?.includes(s)||e4.mutate({id:e.dataset.dashboardid,tags:s===eU?[]:[s]},{onSuccess:()=>{sr()}})},eF[35]=sn,eF[36]=sr,eF[37]=e4,eF[38]=P):P=eF[38];let sL=P,[sF,sO]=(0,I.j)(!1),{close:sP,open:sW}=sO,{userPreferences:sH}=(0,eN.HW)(),{isUTC:sQ}=sH,[sB,sY]=(0,I.j)(!1),{open:sq,close:sG}=sY;eF[39]!==sj||eF[40]!==sl?($={isCollapsed:sj,pathname:sl},eF[39]=sj,eF[40]=sl,eF[41]=$):$=eF[41],eF[42]!==eP||eF[43]!==sv?(K=eP&&(0,a.jsx)("div",{className:eQ().navGhost,style:{width:sv+1,minWidth:sv+1}}),eF[42]=eP,eF[43]=sv,eF[44]=K):K=eF[44],eF[45]!==sG||eF[46]!==sB?(U=(0,a.jsx)(Z,{show:sB,onHide:sG}),eF[45]=sG,eF[46]=sB,eF[47]=U):U=eF[47],eF[48]!==eP||eF[49]!==sj?(R=p()(eQ().nav,{[eQ().navFixed]:eP,[eQ().navCollapsed]:sj}),eF[48]=eP,eF[49]=sj,eF[50]=R):R=eF[50],eF[51]!==sv?(J={width:sv},X={width:sv},eF[51]=sv,eF[52]=J,eF[53]=X):(J=eF[52],X=eF[53]);let sV=!sj;eF[54]!==sj||eF[55]!==sV?(ee=p()(eQ().header,{[eQ().headerExpanded]:sV,[eQ().headerCollapsed]:sj}),eF[54]=sj,eF[55]=sV,eF[56]=ee):ee=eF[56],eF[57]!==sj||eF[58]!==sQ||eF[59]!==eH||eF[60]!==eW?(es=(0,a.jsx)(l(),{href:"/search",className:eQ().logoLink,children:sj?(0,a.jsx)("div",{className:eQ().logoIconWrapper,children:eH}):(0,a.jsxs)(k.Y,{gap:"xs",align:"center",children:[eW,sQ&&(0,a.jsx)(N.E,{size:"xs",color:"gray",variant:"light",fw:"normal",title:"Showing time in UTC",children:"UTC"})]})}),eF[57]=sj,eF[58]=sQ,eF[59]=eH,eF[60]=eW,eF[61]=es):es=eF[61],eF[62]!==sj?(et=p()(eQ().collapseButton,{[eQ().collapseButtonCollapsed]:sj}),eF[62]=sj,eF[63]=et):et=eF[63],eF[64]!==sb?(ea=()=>sb(e8),eF[64]=sb,eF[65]=ea):ea=eF[65],eF[66]===Symbol.for("react.memo_cache_sentinel")?(er=(0,a.jsx)(H.A,{size:16}),eF[66]=er):er=eF[66],eF[67]!==et||eF[68]!==ea?(en=(0,a.jsx)(C.M,{variant:"transparent",size:"sm",className:et,title:"Collapse/Expand Navigation",onClick:ea,children:er}),eF[67]=et,eF[68]=ea,eF[69]=en):en=eF[69],eF[70]!==ee||eF[71]!==es||eF[72]!==en?(el=(0,a.jsxs)("div",{className:ee,children:[es,en]}),eF[70]=ee,eF[71]=es,eF[72]=en,eF[73]=el):el=eF[73],eF[74]!==X||eF[75]!==el?(eo=(0,a.jsx)("div",{style:X,children:el}),eF[74]=X,eF[75]=el,eF[76]=eo):eo=eF[76],eF[77]!==sv?(ei={width:sv},eF[77]=sv,eF[78]=ei):ei=eF[78],eF[79]===Symbol.for("react.memo_cache_sentinel")?(ed=(0,a.jsx)(Q.A,{size:16}),eF[79]=ed):ed=eF[79],eF[80]!==sm||eF[81]!==sh?(eh=G.VO?void 0:()=>sh(!sm),eF[80]=sm,eF[81]=sh,eF[82]=eh):eh=eF[82],eF[83]!==sm||eF[84]!==eh?(eu=(0,a.jsx)(eV,{label:"Search",icon:ed,href:"/search",isExpanded:sm,onToggle:eh}),eF[83]=sm,eF[84]=eh,eF[85]=eu):eu=eF[85],eF[86]!==sy||eF[87]!==sS||eF[88]!==sD||eF[89]!==sj||eF[90]!==eX||eF[91]!==sm||eF[92]!==e5||eF[93]!==sE||eF[94]!==s_||eF[95]!==sg?(ep=!sj&&(0,a.jsx)(S.S,{in:sm,children:(0,a.jsx)("div",{className:eQ().subMenu,children:eX?(0,a.jsx)(A.a,{variant:"dots",mx:"md",my:"xs",size:"sm"}):!G.VO&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eZ,{placeholder:"Saved Searches",value:s_,onChange:sg,onEnterDown:()=>{sI?.current?.firstChild?.focus?.()}}),0===e5.length&&(0,a.jsx)("div",{className:eQ().emptyMessage,children:"No saved searches"}),(0,a.jsx)("div",{ref:sI,children:(0,a.jsx)(e0,{name:"saved-searches",groups:sS,renderLink:sE,forceExpandGroups:!!s_,onDragEnd:sD})}),s_&&0===sy.length?(0,a.jsxs)("div",{className:eQ().emptyMessage,children:["No results matching ",(0,a.jsx)("i",{children:s_})]}):null]})})}),eF[86]=sy,eF[87]=sS,eF[88]=sD,eF[89]=sj,eF[90]=eX,eF[91]=sm,eF[92]=e5,eF[93]=sE,eF[94]=s_,eF[95]=sg,eF[96]=ep):ep=eF[96],eF[97]===Symbol.for("react.memo_cache_sentinel")?(eb=eR.filter(e7).map(e6),eF[97]=eb):eb=eF[97],eF[98]===Symbol.for("react.memo_cache_sentinel")?(ej=(0,a.jsx)(B.A,{size:16}),eF[98]=ej):ej=eF[98],eF[99]!==su||eF[100]!==sp?(ev=()=>sp(!su),eF[99]=su,eF[100]=sp,eF[101]=ev):ev=eF[101],eF[102]!==su||eF[103]!==ev?(e_=(0,a.jsx)(eV,{label:"Dashboards",href:"/dashboards",icon:ej,isExpanded:su,onToggle:ev}),eF[102]=su,eF[103]=ev,eF[104]=e_):e_=eF[104],eF[105]!==sn||eF[106]!==sk||eF[107]!==sC||eF[108]!==sA||eF[109]!==sL||eF[110]!==sj||eF[111]!==su||eF[112]!==sa||eF[113]!==sw||eF[114]!==sl||eF[115]!==sT||eF[116]!==sN||eF[117]!==sz?(eg=!sj&&(0,a.jsx)(S.S,{in:su,children:(0,a.jsxs)("div",{className:eQ().subMenu,children:[(0,a.jsx)(eJ,{}),sa?(0,a.jsx)(A.a,{variant:"dots",mx:"md",my:"xs",size:"sm"}):!G.VO&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eZ,{placeholder:"Saved Dashboards",value:sk,onChange:sN,onEnterDown:()=>{sM?.current?.firstChild?.focus?.()}}),(0,a.jsx)(e0,{name:"dashboards",groups:sA,renderLink:sT,forceExpandGroups:!!sk,onDragEnd:sL}),0===sn.length&&(0,a.jsx)("div",{className:eQ().emptyMessage,children:"No saved dashboards"}),sk&&0===sC.length?(0,a.jsxs)("div",{className:eQ().emptyMessage,children:["No results matching ",(0,a.jsx)("i",{children:sk})]}):null]}),(0,a.jsx)(e1,{name:"Presets",collapsed:sw,onClick:()=>sz(!sw)}),(0,a.jsxs)(S.S,{in:!sw,children:[(0,a.jsx)(l(),{href:"/clickhouse",tabIndex:0,className:p()(eQ().subMenuItem,{[eQ().subMenuItemActive]:sl.startsWith("/clickhouse")}),"data-testid":"nav-link-clickhouse-dashboard",children:"ClickHouse"}),(0,a.jsx)(l(),{href:"/services",tabIndex:0,className:p()(eQ().subMenuItem,{[eQ().subMenuItemActive]:sl.startsWith("/services")}),"data-testid":"nav-link-services-dashboard",children:"Services"}),G.TS&&(0,a.jsx)(l(),{href:"/kubernetes",tabIndex:0,className:p()(eQ().subMenuItem,{[eQ().subMenuItemActive]:sl.startsWith("/kubernetes")}),"data-testid":"nav-link-k8s-dashboard",children:"Kubernetes"})]})]})}),eF[105]=sn,eF[106]=sk,eF[107]=sC,eF[108]=sA,eF[109]=sL,eF[110]=sj,eF[111]=su,eF[112]=sa,eF[113]=sw,eF[114]=sl,eF[115]=sT,eF[116]=sN,eF[117]=sz,eF[118]=eg):eg=eF[118],eF[119]===Symbol.for("react.memo_cache_sentinel")?(ey=!G.VO&&(0,a.jsx)(eV,{label:"Team Settings",href:"/team",icon:(0,a.jsx)(Y.A,{size:16})}),eF[119]=ey):ey=eF[119],eF[120]!==ei||eF[121]!==eu||eF[122]!==ep||eF[123]!==e_||eF[124]!==eg?(eS=(0,a.jsxs)("div",{style:ei,className:eQ().navLinks,children:[eu,ep,eb,e_,eg,ey]}),eF[120]=ei,eF[121]=eu,eF[122]=ep,eF[123]=e_,eF[124]=eg,eF[125]=eS):eS=eF[125],eF[126]!==sj||eF[127]!==sv||eF[128]!==sq?(ek=!sj&&(0,a.jsxs)("div",{style:{width:sv},className:eQ().onboardingSection,children:[(0,a.jsx)(em,{onAddDataClick:sq}),(0,a.jsx)(eY,{})]}),eF[126]=sj,eF[127]=sv,eF[128]=sq,eF[129]=ek):ek=eF[129],eF[130]!==eS||eF[131]!==ek?(eC=(0,a.jsxs)(w.F,{type:"scroll",scrollbarSize:6,scrollHideDelay:100,classNames:eQ(),className:eQ().scrollContainer,children:[eS,ek]}),eF[130]=eS,eF[131]=ek,eF[132]=eC):eC=eF[132],eF[133]!==sv?(eA={width:sv},eF[133]=sv,eF[134]=eA):eA=eF[134],eF[135]!==sq?(ew=(0,a.jsx)(eG,{version:"2.17.0",onAddDataClick:sq}),eF[135]=sq,eF[136]=ew):ew=eF[136];let s$=sd?.name,sK=sd?.team?.name;return eF[137]!==sW||eF[138]!==s$||eF[139]!==sK?(eI=(0,a.jsx)(eq,{userName:s$,teamName:sK,onClickUserPreferences:sW,logoutUrl:G.VO?null:"/api/logout"}),eF[137]=sW,eF[138]=s$,eF[139]=sK,eF[140]=eI):eI=eF[140],eF[141]!==sd?(eM=sd&&sd.usageStatsEnabled&&(0,a.jsx)("img",{referrerPolicy:"no-referrer-when-downgrade",src:"https://static.scarf.sh/a.png?x-pxid=bbc99c42-7a75-4eee-9fb9-2b161fc4acd6"}),eF[141]=sd,eF[142]=eM):eM=eF[142],eF[143]!==eA||eF[144]!==ew||eF[145]!==eI||eF[146]!==eM?(eE=(0,a.jsxs)("div",{className:eQ().footer,style:eA,children:[ew,eI,eM]}),eF[143]=eA,eF[144]=ew,eF[145]=eI,eF[146]=eM,eF[147]=eE):eE=eF[147],eF[148]!==R||eF[149]!==J||eF[150]!==eo||eF[151]!==eC||eF[152]!==eE?(eD=(0,a.jsxs)("div",{className:R,style:J,children:[eo,eC,eE]}),eF[148]=R,eF[149]=J,eF[150]=eo,eF[151]=eC,eF[152]=eE,eF[153]=eD):eD=eF[153],eF[154]!==sF||eF[155]!==sP?(eT=(0,a.jsx)(ez,{opened:sF,onClose:sP}),eF[154]=sF,eF[155]=sP,eF[156]=eT):eT=eF[156],eF[157]!==$||eF[158]!==K||eF[159]!==U||eF[160]!==eD||eF[161]!==eT?(eL=(0,a.jsxs)(eB.Provider,{value:$,children:[K,U,eD,eT]}),eF[157]=$,eF[158]=K,eF[159]=U,eF[160]=eD,eF[161]=eT,eF[162]=eL):eL=eF[162],eL}function e6(e){return(0,a.jsx)(eV,{label:e.label,href:e.href,icon:e.icon,isBeta:e.isBeta},e.id)}function e7(e){return!e.cloudOnly||!G.VO}function e8(e){return!e}function e9(e){return e.state===v.Or.ALERT}function se(){let e;try{e=window.sessionStorage.getItem("hdx-login-redirect-url")}catch(e){console.error(e)}e&&(window.sessionStorage.removeItem("hdx-login-redirect-url"),h().push(e))}var ss=t(74862),st=t(54134),sa=t(42717),sr=t(9841),sn=t(84479),sl=t(80170),so=t(97702);t(86502);let si=e=>{let s,t,r,n,l=(0,d.c)(7),{children:o}=e,{actions:i}=(()=>{let e,s,t,r=(0,d.c)(43),n=(0,m.useRouter)();r[0]===Symbol.for("react.memo_cache_sentinel")?(e={size:16},r[0]=e):e=r[0];let l=(0,ef.GV)(e),{data:o}=(0,ex.PY)(),{data:i}=q.Ay.useDashboards();if(r[1]!==i||r[2]!==o||r[3]!==l||r[4]!==n){let e,t,c,d,m,h,u,p,x,f,b,j,v,_,g,y,S,k,N,C,A,w,z,I,M=i??[];s=[],(o??[]).forEach(e=>{s.push({id:e.id,group:"Saved searches",leftSection:(0,a.jsx)(st.A,{size:16}),label:e.name,keywords:["search","log","saved"],onClick:()=>{n.push(`/search/${e.id}`)}})}),M.forEach(e=>{s.push({id:e.id,group:"Dashboards",leftSection:(0,a.jsx)(sa.A,{size:16}),label:e.name,keywords:["dashboard"],onClick:()=>{n.push(`/dashboards/${e.id}`)}})}),r[6]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(st.A,{size:16}),r[6]=e):e=r[6],r[7]===Symbol.for("react.memo_cache_sentinel")?(t=["log","events","logs"],r[7]=t):t=r[7],r[8]!==n?(c={id:"search",group:"Menu",leftSection:e,label:"Search",description:"Start a new search",keywords:t,onClick:()=>{n.push("/search")}},r[8]=n,r[9]=c):c=r[9],r[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,a.jsx)(sr.A,{size:16}),r[10]=d):d=r[10],r[11]===Symbol.for("react.memo_cache_sentinel")?(m=["graph","metrics"],r[11]=m):m=r[11],r[12]!==n?(h={id:"chart-explorer",group:"Menu",leftSection:d,label:"Chart Explorer",description:"Explore your data",keywords:m,onClick:()=>{n.push("/chart")}},r[12]=n,r[13]=h):h=r[13],r[14]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsx)(sn.A,{size:16}),r[14]=u):u=r[14],r[15]===Symbol.for("react.memo_cache_sentinel")?(p=["graph"],r[15]=p):p=r[15],r[16]!==n?(x={id:"new-dashboard",group:"Menu",leftSection:u,label:"New Dashboard",description:"Create a new dashboard",keywords:p,onClick:()=>{n.push("/dashboards")}},r[16]=n,r[17]=x):x=r[17],r[18]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.jsx)(D.A,{size:16}),r[18]=f):f=r[18],r[19]===Symbol.for("react.memo_cache_sentinel")?(b=["browser","web"],r[19]=b):b=r[19],r[20]!==n?(j={id:"sessions",group:"Menu",leftSection:f,label:"Client Sessions",description:"View client sessions",keywords:b,onClick:()=>{n.push("/sessions")}},r[20]=n,r[21]=j):j=r[21],r[22]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsx)(E.A,{size:16}),r[22]=v):v=r[22],r[23]!==n?(_={id:"alerts",group:"Menu",leftSection:v,label:"Alerts",description:"View and manage alerts",onClick:()=>{n.push("/alerts")}},r[23]=n,r[24]=_):_=r[24],r[25]===Symbol.for("react.memo_cache_sentinel")?(g=(0,a.jsx)(sl.A,{size:16}),r[25]=g):g=r[25],r[26]!==n?(y={id:"service-health",group:"Menu",label:"Service Health",leftSection:g,description:"HTTP, Database and Infrastructure metrics",onClick:()=>{n.push("/services")}},r[26]=n,r[27]=y):y=r[27],r[28]===Symbol.for("react.memo_cache_sentinel")?(S=(0,a.jsx)(Y.A,{size:16}),r[28]=S):S=r[28],r[29]!==n?(k={id:"team-settings",group:"Menu",leftSection:S,label:"Team Settings",onClick:()=>{n.push("/team")}},r[29]=n,r[30]=k):k=r[30],r[31]===Symbol.for("react.memo_cache_sentinel")?(N=(0,a.jsx)(so.A,{size:16}),r[31]=N):N=r[31],r[32]===Symbol.for("react.memo_cache_sentinel")?(C=["help","docs"],r[32]=C):C=r[32],r[33]!==n?(A={id:"documentation",group:"Menu",leftSection:N,label:"Documentation",keywords:C,onClick:()=>{n.push("https://clickhouse.com/docs/use-cases/observability/clickstack")}},r[33]=n,r[34]=A):A=r[34],r[35]===Symbol.for("react.memo_cache_sentinel")?(w=["account","profile"],r[35]=w):w=r[35],r[36]!==n?(z=()=>{n.push("https://hyperdx.io/register")},r[36]=n,r[37]=z):z=r[37],r[38]!==l||r[39]!==z?(I={id:"cloud",group:"Menu",leftSection:l,label:"HyperDX Cloud",description:"Ready to use HyperDX Cloud? Get started for free.",keywords:w,onClick:z},r[38]=l,r[39]=z,r[40]=I):I=r[40],s.push(c,h,x,j,_,y,k,A,I),r[1]=i,r[2]=o,r[3]=l,r[4]=n,r[5]=s}else s=r[5];let c=s;return r[41]!==c?(t={actions:c},r[41]=c,r[42]=t):t=r[42],t})();return l[0]===Symbol.for("react.memo_cache_sentinel")?(s={leftSection:(0,a.jsx)(F.A,{size:16}),placeholder:"Search"},l[0]=s):s=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(t=[],l[1]=t):t=l[1],l[2]!==i?(r=(0,a.jsx)(ss.L,{shortcut:"mod + K",searchProps:s,nothingFound:"Nothing found",zIndex:200001,tagsToIgnore:t,highlightQuery:!0,actions:i,limit:7,scrollable:!0}),l[2]=i,l[3]=r):r=l[3],l[4]!==o||l[5]!==r?(n=(0,a.jsxs)("div",{className:"notranslate",translate:"no",children:[o,r]}),l[4]=o,l[5]=r,l[6]=n):n=l[6],n},sc=e=>(0,a.jsx)(si,{children:(0,a.jsxs)("div",{className:G.Ju?"app-layout-with-banner":"app-layout",children:[G.Ju&&(0,a.jsx)(o.a,{bg:"var(--color-text-primary)",children:(0,a.jsx)(i.o,{children:(0,a.jsxs)(c.E,{py:"xs",size:"sm",c:"var(--color-text-inverted)",children:["This is not recommended for production use and is lacking core ClickStack features such as alerts and saved searches. For a proper experience, visit the"," ",(0,a.jsx)("strong",{children:(0,a.jsx)(l(),{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/getting-started",target:"_blank",rel:"noopener norefe\x03er",children:"ClickStack Docs"})})]})})}),(0,a.jsxs)("div",{className:"d-flex",style:{height:"100%",overflow:"hidden"},children:[(0,a.jsx)(e4,{}),(0,a.jsx)("div",{className:"w-100 min-w-0",style:{minWidth:0,overflow:"auto"},children:e})]})]})})},87095:(e,s,t)=>{"use strict";t.d(s,{CI:()=>x,PY:()=>c,V3:()=>u,c_:()=>b,rs:()=>m});var a=t(75155),r=t(12482),n=t(93251),l=t(16932),o=t(6876),i=t(98142);function c(){let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["saved-search"],queryFn:d},s[0]=e):e=s[0],(0,r.I)(e)}async function d(){return i.VO?[]:(0,o.Q5)("saved-search").json()}function m(e,s){let t,n,l,o,i=(0,a.c)(8),{id:c}=e;i[0]!==s?(t=void 0===s?{}:s,i[0]=s,i[1]=t):t=i[1];let d=t;return i[2]===Symbol.for("react.memo_cache_sentinel")?(n=["saved-search"],i[2]=n):n=i[2],i[3]!==c?(l=e=>e.find(e=>e.id===c),i[3]=c,i[4]=l):l=i[4],i[5]!==d||i[6]!==l?(o={queryKey:n,queryFn:h,select:l,...d},i[5]=d,i[6]=l,i[7]=o):o=i[7],(0,r.I)(o)}function h(){return i.VO?[]:(0,o.Q5)("saved-search").json()}function u(){let e,s=(0,a.c)(2),t=(0,n.jE)();return s[0]!==t?(e={mutationFn:p,onSuccess:()=>{t.invalidateQueries({queryKey:["saved-search"]})}},s[0]=t,s[1]=e):e=s[1],(0,l.n)(e)}function p(e){return(0,o.Q5)("saved-search",{method:"POST",json:e}).json()}function x(){let e,s=(0,a.c)(2),t=(0,n.jE)();return s[0]!==t?(e={mutationFn:f,onSuccess:()=>{t.invalidateQueries({queryKey:["saved-search"]})}},s[0]=t,s[1]=e):e=s[1],(0,l.n)(e)}function f(e){return(0,o.Q5)(`saved-search/${e.id}`,{method:"PATCH",json:e}).json()}function b(){let e,s=(0,a.c)(2),t=(0,n.jE)();return s[0]!==t?(e={mutationFn:j,onSuccess:()=>{t.invalidateQueries({queryKey:["saved-search"]})}},s[0]=t,s[1]=e):e=s[1],(0,l.n)(e)}function j(e){return(0,o.Q5)(`saved-search/${e}`,{method:"DELETE"}).json()}},97344:(e,s,t)=>{"use strict";t.d(s,{L9:()=>b,MZ:()=>v,mG:()=>x,pc:()=>g,vY:()=>u});var a=t(75155),r=t(55729),n=t(41038),l=t(60665),o=t(93251),i=t(16932),c=t(12482),d=t(92917),m=t(6876),h=t(98142);function u(){let e,s=(0,a.c)(2),t=(0,o.jE)();return s[0]!==t?(e={mutationFn:p,onSuccess:()=>{t.invalidateQueries({queryKey:["dashboards"]})}},s[0]=t,s[1]=e):e=s[1],(0,i.n)(e)}async function p(e){await (0,m.Q5)(`dashboards/${e.id}`,{method:"PATCH",json:e})}function x(){let e,s=(0,a.c)(2),t=(0,o.jE)();return s[0]!==t?(e={mutationFn:f,onSuccess:()=>{t.invalidateQueries({queryKey:["dashboards"]})}},s[0]=t,s[1]=e):e=s[1],(0,i.n)(e)}async function f(e){return(0,m.Q5)("dashboards",{method:"POST",json:e}).json()}function b(){let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["dashboards"],queryFn:j},s[0]=e):e=s[0],(0,c.I)(e)}async function j(){return h.VO?[]:(0,m.Q5)("dashboards").json()}function v(e){let s,t,o,i,m,h,p,x,f,b=(0,a.c)(23),{dashboardId:j,presetConfig:v}=e;b[0]!==v?(s=v??{id:"",name:"My New Dashboard",tiles:[],tags:[]},b[0]=v,b[1]=s):s=b[1];let g=s;b[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.os)(),b[2]=t):t=b[2];let[y,S]=(0,n.ZA)("dashboard",t),k=u();b[3]===Symbol.for("react.memo_cache_sentinel")?(o=["dashboards"],b[3]=o):o=b[3],b[4]!==j?(i=e=>e.find(e=>e.id===j),b[4]=j,b[5]=i):i=b[5];let N=null!=j;b[6]!==i||b[7]!==N?(m={queryKey:o,queryFn:_,select:i,enabled:N},b[6]=i,b[7]=N,b[8]=m):m=b[8];let{data:C,isFetching:A}=(0,c.I)(m),[w,z]=(0,r.useState)(!1),I=null==j;e:{if(I){h=y??g;break e}h=C}let M=h;b[9]!==I||b[10]!==S||b[11]!==k?(p=(e,s,t)=>{if(!I)return z(!0),k.mutate(e,{onSuccess:()=>{z(!1),s?.()},onError:e=>{z(!1),l.$e.show({color:"red",title:"Unable to save dashboard",message:e.message.slice(0,100),autoClose:5e3}),t?.()}});S(e),s?.()},b[9]=I,b[10]=S,b[11]=k,b[12]=p):p=b[12];let E=p;b[13]!==M||b[14]!==j?(x=null!=j?j:(0,d.s5)(`${JSON.stringify(M)}`),b[13]=M,b[14]=j,b[15]=x):x=b[15];let D=x;return b[16]!==M||b[17]!==D||b[18]!==A||b[19]!==I||b[20]!==w||b[21]!==E?(f={dashboard:M,setDashboard:E,dashboardHash:D,isLocalDashboard:I,isFetching:A,isSetting:w},b[16]=M,b[17]=D,b[18]=A,b[19]=I,b[20]=w,b[21]=E,b[22]=f):f=b[22],f}function _(){return(0,m.Q5)("dashboards").json()}function g(){let e,s=(0,a.c)(2),t=(0,o.jE)();return s[0]!==t?(e={mutationFn:y,onSuccess:()=>{t.invalidateQueries({queryKey:["dashboards"]})}},s[0]=t,s[1]=e):e=s[1],(0,i.n)(e)}function y(e){return(0,m.Q5)(`dashboards/${e}`,{method:"DELETE"}).json()}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6514],{43524:e=>{e.exports={navGhost:"AppNav_navGhost__eHfjO",nav:"AppNav_nav__aQ9CO",navFixed:"AppNav_navFixed__ZeKhY",navCollapsed:"AppNav_navCollapsed__lycT3",navLinks:"AppNav_navLinks__3ZFJ_",navItem:"AppNav_navItem__qtSLL",navItemIcon:"AppNav_navItemIcon__y86wX",header:"AppNav_header__2JQvX",headerExpanded:"AppNav_headerExpanded__yEAuu",headerCollapsed:"AppNav_headerCollapsed__qMGd8",logoLink:"AppNav_logoLink__FMsYw",logoIconWrapper:"AppNav_logoIconWrapper__OelwF",collapseButton:"AppNav_collapseButton__FDYcm",collapseButtonCollapsed:"AppNav_collapseButtonCollapsed__1j3qp",scrollContainer:"AppNav_scrollContainer__UQQtv",footer:"AppNav_footer__dHa_L",navItemActive:"AppNav_navItemActive__GN7le",navItemContent:"AppNav_navItemContent__YlStp",navItemBadge:"AppNav_navItemBadge__6VqCa",navItemToggle:"AppNav_navItemToggle__tfzhc",subMenu:"AppNav_subMenu__sdt7n",subMenuItem:"AppNav_subMenuItem___6SwX",subMenuItemActive:"AppNav_subMenuItemActive__jQhrk",groupLabel:"AppNav_groupLabel__rOCDt",groupDragOver:"AppNav_groupDragOver__7ZKjA",searchInput:"AppNav_searchInput__tW1sl",shortcutHint:"AppNav_shortcutHint__McknQ",shortcutHintCtrl:"AppNav_shortcutHintCtrl__nSE1_",emptyMessage:"AppNav_emptyMessage__s2J5J",userMenu:"AppNav_userMenu__7x8UA",userMenuCollapsed:"AppNav_userMenuCollapsed__YtJQm",userMenuInfo:"AppNav_userMenuInfo__GUaPj",userMenuName:"AppNav_userMenuName__7bXub",userMenuTeam:"AppNav_userMenuTeam__qL_0p",helpButton:"AppNav_helpButton__i5B5h",helpButtonCollapsed:"AppNav_helpButtonCollapsed__dXx2R",onboardingSection:"AppNav_onboardingSection__eOrci",scrollbar:"AppNav_scrollbar__YjKyG",thumb:"AppNav_thumb__IzI2H"}},56514:(e,s,t)=>{"use strict";t.d(s,{D:()=>sc});var a=t(6029),r=t(55729),n=t(82203),l=t.n(n),o=t(60481),i=t(53061),c=t(43517),d=t(75155),m=t(81278),h=t.n(m),u=t(75828),p=t.n(u),x=t(1885),f=t(6065),b=t(16162),j=t.n(b),v=t(82641),_=t(25062),g=t(20158),y=t(96061),k=t(22599),S=t(3635),N=t(43085),C=t(76013),A=t(94720),w=t(53993),z=t(22175),I=t(78341),M=t(71991),E=t(87104),D=t(86705),T=t(85318),L=t(16120),F=t(41279),O=t(70114),P=t(23474),W=t(53780),Q=t(56447),B=t(45519),H=t(46661),Y=t(95316),q=t(6876),G=t(98142),$=t(97344),V=t(27166),K=t(36517),U=t(74805),R=t(65234);function J(e){let s,t,n,l,o,i=(0,d.c)(12),{text:c,className:m,children:h}=e,[u,x]=(0,r.useState)(!1);return i[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{x(!0),setTimeout(()=>x(!1),2e3)},i[0]=s):s=i[0],i[1]!==m?(t=p()("text-decoration-none",m),i[1]=m,i[2]=t):t=i[2],i[3]!==h||i[4]!==u?(n=h({isCopied:u}),i[3]=h,i[4]=u,i[5]=n):n=i[5],i[6]!==t||i[7]!==n?(l=(0,a.jsx)(_.$,{variant:"secondary",p:0,className:t,size:"xs",fullWidth:!0,children:n}),i[6]=t,i[7]=n,i[8]=l):l=i[8],i[9]!==l||i[10]!==c?(o=(0,a.jsx)(R.CopyToClipboard,{text:c,onCopy:s,children:l}),i[9]=l,i[10]=c,i[11]=o):o=i[11],o}function Z(e){let s,t,r=(0,d.c)(6),{label:n,value:l}=e,o=void 0===n?"":n;return r[0]!==o||r[1]!==l?(s=e=>{let{isCopied:s}=e;return(0,a.jsxs)("div",{className:p()("d-flex w-100 py-2 px-2 gap-2 rounded align-items-center justify-content-between cursor-pointer",{"text-success":s}),children:[(0,a.jsxs)("div",{className:"fs-7 d-flex text-truncate align-items-center",children:[o,(0,a.jsx)("pre",{className:"m-0 user-select-all d-inline text-truncate fs-7 lh-1",children:l})]}),(0,a.jsxs)(S.Y,{gap:2,wrap:"nowrap",className:p()("fs-7 text-end"),children:[s?(0,a.jsx)(K.A,{size:14}):(0,a.jsx)(U.A,{size:14}),s?"Copied!":"Copy"]})]})},r[0]=o,r[1]=l,r[2]=s):s=r[2],r[3]!==s||r[4]!==l?(t=(0,a.jsx)(J,{text:l,className:"d-flex mx-auto p-0 w-100",children:s}),r[3]=s,r[4]=l,r[5]=t):t=r[5],t}function X(e){let s,t,r,n,l,o,i,c,m,h,u,p,x,f,b,j,v,g,y=(0,d.c)(25),{show:k,onHide:S}=e,{data:N}=q.Ay.useTeam();return y[0]!==N?(s=null!=N&&(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(Z,{label:(0,a.jsxs)("span",{className:"text-muted me-2",children:["Your Ingestion API Key:"," "]}),value:N.apiKey})}),y[0]=N,y[1]=s):s=y[1],y[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)("div",{className:"fs-7 mb-4",children:"Click on a link below to view installation instructions for your application."}),r=(0,a.jsx)("div",{className:"fs-6 mb-2",children:"Backend"}),y[2]=t,y[3]=r):(t=y[2],r=y[3]),y[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/nodejs",target:"_blank",rel:"noreferrer",className:"text-link",children:"Node.js"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[4]=n):n=y[4],y[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/golang",target:"_blank",rel:"noreferrer",className:"text-link",children:"Go"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[5]=l):l=y[5],y[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/python",target:"_blank",rel:"noreferrer",className:"text-link",children:"Python"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[6]=o):o=y[6],y[7]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/java",target:"_blank",rel:"noreferrer",className:"text-link",children:"Java"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[7]=i):i=y[7],y[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/elixir",target:"_blank",rel:"noreferrer",className:"text-link",children:"Elixir"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs)"})]}),y[8]=c):c=y[8],y[9]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/ruby-on-rails",target:"_blank",rel:"noreferrer",className:"text-link",children:"Ruby on Rails"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Traces)"})]}),m=(0,a.jsx)("div",{className:"fs-6 mb-2 mt-4",children:"Platform"}),y[9]=m,y[10]=h):(m=y[9],h=y[10]),y[11]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/ingesting-data/kubernetes",target:"_blank",rel:"noreferrer",className:"text-link",children:"Kubernetes"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Metrics)"})]}),p=(0,a.jsx)("div",{className:"fs-6 mb-2 mt-4",children:"Browser"}),y[11]=u,y[12]=p):(u=y[11],p=y[12]),y[13]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/browser",target:"_blank",rel:"noreferrer",className:"text-link",children:"JavaScript/TypeScript"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),f=(0,a.jsx)("div",{className:"fs-6 mb-2 mt-4",children:"Data Collector"}),y[13]=x,y[14]=f):(x=y[13],f=y[14]),y[15]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/ingesting-data/opentelemetry#sending-otel-data",target:"_blank",rel:"noreferrer",className:"text-link",children:"OpenTelemetry"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[15]=b):b=y[15],y[16]!==S?(j=(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(_.$,{variant:"secondary",onClick:()=>S(),children:"Cancel"})}),y[16]=S,y[17]=j):j=y[17],y[18]!==s||y[19]!==j?(v=(0,a.jsxs)("div",{className:"inter",children:[s,t,r,n,l,o,i,c,h,m,u,p,x,f,b,j]}),y[18]=s,y[19]=j,y[20]=v):v=y[20],y[21]!==S||y[22]!==k||y[23]!==v?(g=(0,a.jsx)(V.a,{opened:k,onClose:S,title:"Start Sending Telemetry",size:"lg",centered:!0,children:v}),y[21]=S,y[22]=k,y[23]=v,y[24]=g):g=y[24],g}var ee=t(34834),es=t(62801),et=t(8737),ea=t(58333),er=t(90515),en=t(88992),el=t(91021),eo=t(93108),ei=t(81973),ec=t(92917);let ed=Date.now(),em=e=>{let s,t,r,n,l,o,i,m,h,u,p,x,f,b,j,v,_,g,y,A,w,z,I,M=(0,d.c)(64),{onAddDataClick:E}=e,[D,T]=(0,ec.Mj)("onboardingChecklistCollapsed",!1),{data:L,isLoading:F}=q.Ay.useTeam(),{data:O,isLoading:W}=(0,eo.ZY)(),{data:Q,isLoading:B}=(0,ei.oE)();e:{let e,t;if(!L?.createdAt){s=!1;break e}M[0]===Symbol.for("react.memo_cache_sentinel")?(e=new Date(ed-2592e5),M[0]=e):e=M[0];let a=e;M[1]!==L.createdAt?(t=new Date(L.createdAt),M[1]=L.createdAt,M[2]=t):t=M[2],s=t>a}let H=s,Y=!1===F&&H,G=O?.[0];M[3]!==G?.id||M[4]!==Q?(t=Q?.filter(e=>e.connection===G?.id),M[3]=G?.id,M[4]=Q,M[5]=t):t=M[5];let $=t;M[6]===Symbol.for("react.memo_cache_sentinel")?(r={databaseName:"system",tableName:"tables"},M[6]=r):r=M[6],M[7]!==$?(n=$??[],M[7]=$,M[8]=n):n=M[8],M[9]!==n?(l=n.map(eh),M[9]=n,M[10]=l):l=M[10];let V=G?.id??"";M[11]!==l||M[12]!==V?(o={select:"sum(total_rows) as total_rows",from:r,where:"",filtersLogicalOperator:"OR",filters:l,connection:V},M[11]=l,M[12]=V,M[13]=o):o=M[13];let K=o;M[14]!==Y?(i={enabled:Y},M[14]=Y,M[15]=i):i=M[15];let{data:U,isLoading:R}=(0,el.HD)(K,i),J=U?.data?.[0]?.total_rows>0,Z=O&&O.length>0,X=Q&&Q.length>0,et=Z??!1,er=Z?void 0:"/team";M[16]!==W||M[17]!==er||M[18]!==et?(m={id:"connection",title:"Connect to ClickHouse",description:"Set up your database connection",isComplete:et,isLoading:W,href:er},M[16]=W,M[17]=er,M[18]=et,M[19]=m):m=M[19];let en=X??!1,em=X?void 0:"/team";M[20]!==B||M[21]!==en||M[22]!==em?(h={id:"sources",title:"Create Data Sources",description:"Configure where your data comes from",isComplete:en,isLoading:B,href:em},M[20]=B,M[21]=en,M[22]=em,M[23]=h):h=M[23];let ex=J?void 0:E;M[24]!==J||M[25]!==R||M[26]!==ex?(u={id:"data",title:"Add Data",description:"Start sending logs, metrics, or traces",isComplete:J,isLoading:R,onClick:ex},M[24]=J,M[25]=R,M[26]=ex,M[27]=u):u=M[27],M[28]!==m||M[29]!==h||M[30]!==u?(p=[m,h,u],M[28]=m,M[29]=h,M[30]=u,M[31]=p):p=M[31];let ef=p;M[32]!==ef?(x=ef.filter(eu),M[32]=ef,M[33]=x):x=M[33];let eb=x.length,ej=eb===ef.length;if(!Y)return null;let ev=D?0:"xs";M[34]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.jsx)(c.E,{size:"sm",fw:"bold",children:"Get Started"}),M[34]=f):f=M[34];let e_=ej?"green":"blue";M[35]!==eb||M[36]!==ef.length||M[37]!==e_?(b=(0,a.jsxs)(S.Y,{gap:"xs",align:"center",children:[f,(0,a.jsxs)(N.E,{size:"xs",color:e_,variant:"light",children:[eb,"/",ef.length]})]}),M[35]=eb,M[36]=ef.length,M[37]=e_,M[38]=b):b=M[38],M[39]!==D||M[40]!==T?(j=()=>T(!D),M[39]=D,M[40]=T,M[41]=j):j=M[41],M[42]!==D?(v=D?(0,a.jsx)(P.A,{size:12}):(0,a.jsx)(ea.A,{size:12}),M[42]=D,M[43]=v):v=M[43],M[44]!==j||M[45]!==v?(_=(0,a.jsx)(C.M,{variant:"subtle",size:"sm",onClick:j,children:v}),M[44]=j,M[45]=v,M[46]=_):_=M[46],M[47]!==ev||M[48]!==b||M[49]!==_?(g=(0,a.jsxs)(S.Y,{justify:"space-between",align:"center",mb:ev,children:[b,_]}),M[47]=ev,M[48]=b,M[49]=_,M[50]=g):g=M[50];let eg=!D;return M[51]!==ef?(y=ef.map(ep),M[51]=ef,M[52]=y):y=M[52],M[53]!==ej?(A=ej&&(0,a.jsx)(S.Y,{justify:"center",mt:"xs",p:"xs",children:(0,a.jsx)(c.E,{size:"sm",c:"green",fw:"bold",children:"\uD83C\uDF89 Great job! You're all set up."})}),M[53]=ej,M[54]=A):A=M[54],M[55]!==y||M[56]!==A?(w=(0,a.jsxs)(ee.B,{gap:"xs",children:[y,A]}),M[55]=y,M[56]=A,M[57]=w):w=M[57],M[58]!==eg||M[59]!==w?(z=(0,a.jsx)(k.S,{in:eg,children:w}),M[58]=eg,M[59]=w,M[60]=z):z=M[60],M[61]!==g||M[62]!==z?(I=(0,a.jsxs)(es.Z,{withBorder:!0,p:"xs",mb:"sm",radius:"md",children:[g,z]}),M[61]=g,M[62]=z,M[63]=I):I=M[63],I};function eh(e){return{type:"sql",condition:`table = '${e.from.tableName}' AND database = '${e.from.databaseName}'`}}function eu(e){return e.isComplete}function ep(e,s){let t=(0,a.jsxs)(S.Y,{gap:"sm",align:"center",w:"100%",children:[(0,a.jsx)("div",{style:{width:20,height:20,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",border:e.isComplete?"1px solid var(--color-text-brand)":"1px solid var(--color-border)",backgroundColor:e.isComplete?"transparent":"var(--color-bg-muted)",color:e.isComplete?"var(--color-text-brand)":"var(--color-text)",flexShrink:0},children:e.isLoading?(0,a.jsx)(A.a,{size:"xs",color:"gray"}):e.isComplete?(0,a.jsx)(er.A,{size:16,style:{fontSize:12,fontWeight:"bold",paddingTop:1}}):(0,a.jsx)(c.E,{size:"xs",fw:"bold",children:s+1})}),(0,a.jsxs)("div",{style:{flex:1},children:[(0,a.jsx)(c.E,{size:"sm",fw:"500",style:{textDecoration:e.isComplete?"line-through":"none",opacity:e.isComplete?.8:1},children:e.title}),(0,a.jsx)(c.E,{size:"xs",c:"dimmed",children:e.description})]}),!e.isComplete&&(e.href||e.onClick)&&(0,a.jsx)(en.A,{size:12,style:{color:"var(--color-text-muted)"}})]});return e.href&&!e.isComplete?(0,a.jsx)(l(),{href:e.href,style:{textDecoration:"none"},children:(0,a.jsx)(et.N,{w:"100%",py:"xs",style:{borderRadius:6,cursor:"pointer",":hover":{backgroundColor:"var(--color-bg-muted)"}},children:t})},e.id):e.onClick&&!e.isComplete?(0,a.jsx)(et.N,{w:"100%",py:"xs",onClick:e.onClick,style:{borderRadius:6,cursor:"pointer",":hover":{backgroundColor:"var(--color-bg-hover)"}},children:t},e.id):(0,a.jsx)("div",{style:{},children:t},e.id)}var ex=t(87095),ef=t(36600),eb=t(92789),ej=t(38206),ev=t(87989),e_=t(63085),eg=t(97787),ey=t(23994),ek=t(31071),eS=t(58202),eN=t(57820);let eC=[{label:"Dark",value:"dark"},{label:"Light",value:"light"}],eA=Object.values(eS.Zj).map(e=>({label:e.displayName,value:e.name})),ew=e=>{let s,t,r,n,l,o,i=(0,d.c)(12),{label:m,description:h,children:u}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(s={flex:1},i[0]=s):s=i[0],i[1]!==h?(t=h&&(0,a.jsx)(c.E,{size:"xs",mt:2,children:h}),i[1]=h,i[2]=t):t=i[2],i[3]!==m||i[4]!==t?(r=(0,a.jsxs)("div",{style:s,children:[m,t]}),i[3]=m,i[4]=t,i[5]=r):r=i[5],i[6]===Symbol.for("react.memo_cache_sentinel")?(n={flex:.8},i[6]=n):n=i[6],i[7]!==u?(l=(0,a.jsx)("div",{style:n,children:u}),i[7]=u,i[8]=l):l=i[8],i[9]!==r||i[10]!==l?(o=(0,a.jsxs)(S.Y,{align:"center",justify:"space-between",children:[r,l]}),i[9]=r,i[10]=l,i[11]=o):o=i[11],o},ez=e=>{let s,t,r,n,l,o,i,m,h,u,p,x,f,b,j=(0,d.c)(37),{opened:v,onClose:_}=e,{userPreferences:g,setUserPreference:y}=(0,eN.HW)(),{themeName:k,setTheme:C,isDev:A}=(0,ef.o3)();return j[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"Preferences"}),(0,a.jsx)(c.E,{size:"xs",mt:6,children:"Customize your experience"})]}),j[0]=s):s=j[0],j[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(eb.c,{label:"Date and Time",labelPosition:"left"}),j[1]=t):t=j[1],j[2]!==y?(r=e=>e&&y({timeFormat:e}),j[2]=y,j[3]=r):r=j[3],j[4]===Symbol.for("react.memo_cache_sentinel")?(n=["12h","24h"],j[4]=n):n=j[4],j[5]!==r||j[6]!==g.timeFormat?(l=(0,a.jsx)(ew,{label:"Time format",children:(0,a.jsx)(ej.l,{value:g.timeFormat,onChange:r,data:n,allowDeselect:!1})}),j[5]=r,j[6]=g.timeFormat,j[7]=l):l=j[7],j[8]!==y?(o=e=>y({isUTC:e.currentTarget.checked}),j[8]=y,j[9]=o):o=j[9],j[10]!==o||j[11]!==g.isUTC?(i=(0,a.jsx)(ew,{label:"Use UTC time",children:(0,a.jsx)(ev.d,{size:"md",onLabel:"UTC",checked:g.isUTC,onChange:o})}),j[10]=o,j[11]=g.isUTC,j[12]=i):i=j[12],j[13]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)(eb.c,{label:(0,a.jsxs)(S.Y,{align:"center",gap:"xs",children:["Appearance",(0,a.jsx)(N.E,{variant:"light",fw:"normal",size:"xs",children:"Experimental"})]}),labelPosition:"left",mt:"sm"}),j[13]=m):m=j[13],j[14]!==y?(h=e=>e&&y({colorMode:e}),j[14]=y,j[15]=h):h=j[15],j[16]!==h||j[17]!==g.colorMode?(u=(0,a.jsx)(ew,{label:"Color Mode",description:"Switch between light and dark mode",children:(0,a.jsx)(ej.l,{value:g.colorMode,onChange:h,data:eC,allowDeselect:!1})}),j[16]=h,j[17]=g.colorMode,j[18]=u):u=j[18],j[19]!==A||j[20]!==C||j[21]!==k?(p=A&&(0,a.jsx)(ew,{label:(0,a.jsxs)(S.Y,{gap:"xs",children:["Brand Theme",(0,a.jsx)(e_.m,{label:"Only available in local/dev mode. Changes logo, colors, and branding.",multiline:!0,w:220,children:(0,a.jsx)(N.E,{variant:"light",color:"violet",fw:"normal",size:"xs",leftSection:(0,a.jsx)(ey.A,{size:10}),children:"Dev Only"})})]}),description:"Switch between HyperDX and ClickStack branding",children:(0,a.jsx)(ej.l,{value:k,onChange:e=>{e&&(0,eS.tc)(e)&&C(e)},data:eA,allowDeselect:!1})}),j[19]=A,j[20]=C,j[21]=k,j[22]=p):p=j[22],j[23]!==y||j[24]!==k||j[25]!==g.font?(x="clickstack"!==k&&(0,a.jsx)(ew,{label:"Font",description:"If using custom font, make sure it's installed on your system",children:(0,a.jsx)(eg.j,{value:g.font,filter:eI,onChange:e=>y({font:e}),data:ek.Al})}),j[23]=y,j[24]=k,j[25]=g.font,j[26]=x):x=j[26],j[27]!==u||j[28]!==p||j[29]!==x||j[30]!==l||j[31]!==i?(f=(0,a.jsxs)(ee.B,{gap:"lg",children:[t,l,i,m,u,p,x]}),j[27]=u,j[28]=p,j[29]=x,j[30]=l,j[31]=i,j[32]=f):f=j[32],j[33]!==_||j[34]!==v||j[35]!==f?(b=(0,a.jsx)(V.a,{title:s,size:"lg",padding:"lg",keepMounted:!1,opened:v,onClose:_,children:f}),j[33]=_,j[34]=v,j[35]=f,j[36]=b):b=j[36],b};function eI(e){let{options:s}=e;return s}var eM=t(66992),eE=t(56513),eD=t(22623),eT=t(89533),eL=t(62861),eF=t(92334),eO=t(21604),eP=t(1146),eW=t(93938),eQ=t(43524),eB=t.n(eQ);let eH=r.createContext({isCollapsed:!1,pathname:"/"}),eY=()=>{let e,s,t=(0,d.c)(2);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("span",{className:"fs-8",children:"Ready to deploy on ClickHouse Cloud?"}),t[0]=e):e=t[0],t[1]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)("div",{className:"my-3 bg-muted rounded p-2 text-center",children:[e,(0,a.jsx)("div",{className:"mt-2 mb-2",children:(0,a.jsx)(_.$,{variant:"primary",size:"xs",component:"a",href:"https://clickhouse.com/docs/use-cases/observability/clickstack/getting-started#deploy-with-clickhouse-cloud",target:"_blank",rel:"noopener noreferrer",children:"Get Started for Free"})})]}),t[1]=s):s=t[1],s},eq=e=>{let s,t,n,o,i,m,h,u,x,f,b,j,v,_=(0,d.c)(29),{userName:g,teamName:y,logoutUrl:k,onClickUserPreferences:N}=e,C=void 0===g?"User":g,{isCollapsed:A}=r.useContext(eH);_[0]!==C?(s=C.split(" ").map(eV).join(""),_[0]=C,_[1]=s):s=_[1];let w=s,z=G.VO?"Local mode":C;return _[2]===Symbol.for("react.memo_cache_sentinel")?(t={transition:"fade-up"},_[2]=t):t=_[2],_[3]!==A?(n=p()(eB().userMenu,{[eB().userMenuCollapsed]:A}),_[3]=A,_[4]=n):n=_[4],_[5]!==w?(o=(0,a.jsx)(eM.e,{size:"sm",radius:"xl",color:"gray",children:w}),_[5]=w,_[6]=o):o=_[6],_[7]!==z||_[8]!==A||_[9]!==y?(i=!A&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e_.m,{fz:"xs",color:"gray",ta:"center",label:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:z}),(0,a.jsx)("br",{}),y]}),openDelay:250,children:(0,a.jsxs)("div",{className:eB().userMenuInfo,children:[(0,a.jsx)(c.E,{size:"xs",fw:"bold",lh:1.1,className:eB().userMenuName,children:z}),(0,a.jsx)(c.E,{size:"xs",className:eB().userMenuTeam,children:y})]})}),(0,a.jsx)(O.A,{size:14})]}),_[7]=z,_[8]=A,_[9]=y,_[10]=i):i=_[10],_[11]!==o||_[12]!==i?(m=(0,a.jsxs)(S.Y,{gap:"xs",wrap:"nowrap",miw:0,children:[o,i]}),_[11]=o,_[12]=i,_[13]=m):m=_[13],_[14]!==n||_[15]!==m?(h=(0,a.jsx)(eE.W.Target,{children:(0,a.jsx)(eD.t,{"data-testid":"user-menu-trigger",className:n,children:m})}),_[14]=n,_[15]=m,_[16]=h):h=_[16],_[17]===Symbol.for("react.memo_cache_sentinel")?(u=G.VO?(0,a.jsx)(eE.W.Label,{fz:"xs",children:"Local mode"}):(0,a.jsx)(eE.W.Item,{"data-testid":"team-settings-menu-item",href:"/team",component:l(),leftSection:(0,a.jsx)(Y.A,{size:16}),children:"Team Settings"}),_[17]=u):u=_[17],_[18]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsx)(eT.A,{size:16}),_[18]=x):x=_[18],_[19]!==N?(f=(0,a.jsx)(eE.W.Item,{"data-testid":"user-preferences-menu-item",leftSection:x,onClick:N,children:"User Preferences"}),_[19]=N,_[20]=f):f=_[20],_[21]!==k?(b=k&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eE.W.Divider,{}),(0,a.jsx)(eE.W.Item,{"data-testid":"logout-menu-item",color:"red",leftSection:(0,a.jsx)(eL.A,{size:16}),component:l(),href:k,children:"Logout"})]}),_[21]=k,_[22]=b):b=_[22],_[23]!==f||_[24]!==b?(j=(0,a.jsxs)(eE.W.Dropdown,{children:[u,f,b]}),_[23]=f,_[24]=b,_[25]=j):j=_[25],_[26]!==j||_[27]!==h?(v=(0,a.jsxs)(eE.W,{position:"top-start",transitionProps:t,children:[h,j]}),_[26]=j,_[27]=h,_[28]=v):v=_[28],v},eG=e=>{let s,t,n,l,o,i,m,h,u,x,f,b,j,v=(0,d.c)(25),{version:_,onAddDataClick:g}=e,{isCollapsed:y}=r.useContext(eH),[k,N]=(0,I.j)(!1),{close:C}=N;return v[0]!==y?(s=p()(eB().helpButton,{[eB().helpButtonCollapsed]:y}),v[0]=y,v[1]=s):s=v[1],v[2]===Symbol.for("react.memo_cache_sentinel")?(t={transition:"fade-up"},v[2]=t):t=v[2],v[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(eE.W.Target,{children:(0,a.jsx)(et.N,{"data-testid":"help-menu-trigger",w:"100%",children:(0,a.jsx)(S.Y,{align:"center",justify:"center",h:28,children:(0,a.jsx)(eF.A,{size:16})})})}),v[3]=n):n=v[3],v[4]!==_?(l=_&&(0,a.jsxs)(c.E,{size:"xs",component:"span",children:["v",_]}),v[4]=_,v[5]=l):l=v[5],v[6]!==l?(o=(0,a.jsxs)(eE.W.Label,{children:["Help"," ",l]}),v[6]=l,v[7]=o):o=v[7],v[8]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(eE.W.Item,{"data-testid":"documentation-menu-item",href:"https://clickhouse.com/docs/use-cases/observability/clickstack",component:"a",target:"_blank",rel:"noopener noreferrer",leftSection:(0,a.jsx)(eO.A,{size:16}),children:"Documentation"}),v[8]=i):i=v[8],v[9]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)(eE.W.Item,{"data-testid":"discord-menu-item",leftSection:(0,a.jsx)(eP.A,{size:16}),component:"a",href:"https://hyperdx.io/discord",target:"_blank",rel:"noopener noreferrer",children:"Discord Community"}),v[9]=m):m=v[9],v[10]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsx)(eW.A,{size:16}),v[10]=h):h=v[10],v[11]!==g?(u=(0,a.jsx)(eE.W.Item,{"data-testid":"setup-instructions-menu-item",leftSection:h,onClick:g,children:"Setup Instructions"}),v[11]=g,v[12]=u):u=v[12],v[13]!==u||v[14]!==o?(x=(0,a.jsxs)(eE.W,{withArrow:!0,position:"top-start",transitionProps:t,defaultOpened:!1,children:[n,(0,a.jsxs)(eE.W.Dropdown,{children:[o,i,m,u]})]}),v[13]=u,v[14]=o,v[15]=x):x=v[15],v[16]!==x||v[17]!==s?(f=(0,a.jsx)(eD.t,{className:s,children:x}),v[16]=x,v[17]=s,v[18]=f):f=v[18],v[19]!==C||v[20]!==k?(b=(0,a.jsx)(X,{show:k,onHide:C}),v[19]=C,v[20]=k,v[21]=b):b=v[21],v[22]!==f||v[23]!==b?(j=(0,a.jsxs)(a.Fragment,{children:[f,b]}),v[22]=f,v[23]=b,v[24]=j):j=v[24],j},e$=e=>{let s,t,n,o,i,c,m,h,u,x,f,b,j=(0,d.c)(37),{className:v,label:_,icon:g,href:y,isExpanded:k,onToggle:S,isBeta:C}=e,{pathname:A,isCollapsed:w}=r.useContext(eH);j[0]!==y?(s=y.replace(/^\//,"").replace(/\//g,"-")||"home",j[0]=y,j[1]=s):s=j[1];let z=`nav-link-${s}`;j[2]!==S?(t=e=>{e.preventDefault(),e.stopPropagation(),S?.()},j[2]=S,j[3]=t):t=j[3];let I=t;if(j[4]!==v||j[5]!==y||j[6]!==A||j[7]!==z){let e=A===y||A?.startsWith(y+"/");n=l(),o=z,i=y,c=p()(eB().navItem,{[eB().navItemActive]:e},v),j[4]=v,j[5]=y,j[6]=A,j[7]=z,j[8]=n,j[9]=o,j[10]=i,j[11]=c}else n=j[8],o=j[9],i=j[10],c=j[11];return j[12]!==g?(m=(0,a.jsx)("span",{className:eB().navItemIcon,children:g}),j[12]=g,j[13]=m):m=j[13],j[14]!==w||j[15]!==_?(h=!w&&(0,a.jsx)("span",{children:_}),j[14]=w,j[15]=_,j[16]=h):h=j[16],j[17]!==m||j[18]!==h?(u=(0,a.jsxs)("span",{className:eB().navItemContent,children:[m,h]}),j[17]=m,j[18]=h,j[19]=u):u=j[19],j[20]!==C||j[21]!==w?(x=!w&&C&&(0,a.jsx)(N.E,{size:"xs",color:"blue",variant:"light",className:eB().navItemBadge,children:"Beta"}),j[20]=C,j[21]=w,j[22]=x):x=j[22],j[23]!==I||j[24]!==w||j[25]!==k||j[26]!==S||j[27]!==z?(f=!w&&S&&(0,a.jsx)("button",{type:"button","data-testid":`${z}-toggle`,className:eB().navItemToggle,onClick:I,children:k?(0,a.jsx)(ea.A,{size:14,className:"text-muted-hover"}):(0,a.jsx)(P.A,{size:14,className:"text-muted-hover"})}),j[23]=I,j[24]=w,j[25]=k,j[26]=S,j[27]=z,j[28]=f):f=j[28],j[29]!==n||j[30]!==f||j[31]!==o||j[32]!==i||j[33]!==c||j[34]!==u||j[35]!==x?(b=(0,a.jsxs)(n,{"data-testid":o,href:i,className:c,children:[u,x,f]}),j[29]=n,j[30]=f,j[31]=o,j[32]=i,j[33]=c,j[34]=u,j[35]=x,j[36]=b):b=j[36],b};function eV(e){return e[0].toUpperCase()}let eK="Saved Searches",eU="Saved Dashboards",eR=[{id:"chart",label:"Chart Explorer",href:"/chart",icon:(0,a.jsx)(M.A,{size:16})},{id:"alerts",label:"Alerts",href:"/alerts",icon:(0,a.jsx)(E.A,{size:16}),cloudOnly:!0},{id:"sessions",label:"Client Sessions",href:"/sessions",icon:(0,a.jsx)(D.A,{size:16})},{id:"service-map",label:"Service Map",href:"/service-map",icon:(0,a.jsx)(T.A,{size:16}),isBeta:!0}];function eJ(){let e,s,t,r=(0,d.c)(6),n=(0,$.mG)();if(G.VO){let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)(_.$,{component:l(),href:"/dashboards","data-testid":"create-dashboard-button",variant:"transparent",color:"var(--color-text)",py:"0px",px:"sm",fw:400,children:[(0,a.jsx)("span",{className:"pe-2",children:"+"})," Create Dashboard"]}),r[0]=e):e=r[0],e}return r[1]!==n?(e=()=>n.mutate({name:"My Dashboard",tiles:[],tags:[]},{onSuccess:eZ}),r[1]=n,r[2]=e):e=r[2],r[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)("span",{className:"pe-2",children:"+"}),r[3]=s):s=r[3],r[4]!==e?(t=(0,a.jsxs)(_.$,{"data-testid":"create-dashboard-button",variant:"transparent",color:"var(--color-text)",py:"0px",px:"sm",fw:400,onClick:e,children:[s," Create Dashboard"]}),r[4]=e,r[5]=t):t=r[5],t}function eZ(e){h().push(`/dashboards/${e.id}`)}function eX(e){let s,t,r,n,l,o,i=(0,d.c)(15),{placeholder:c,value:m,onChange:h,onEnterDown:u}=e;i[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)("div",{className:eB().shortcutHint,children:[window.navigator.platform?.toUpperCase().includes("MAC")?(0,a.jsx)(L.A,{size:8}):(0,a.jsx)("span",{className:eB().shortcutHintCtrl,children:"Ctrl"}),"\xa0K"]}),i[0]=s):s=i[0];let p=s;i[1]!==u?(t=e=>{"Enter"===e.key&&u?.()},i[1]=u,i[2]=t):t=i[2];let x=t;return i[3]!==h?(r=e=>h(e.currentTarget.value),i[3]=h,i[4]=r):r=i[4],i[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(F.A,{size:16,className:"ps-1"}),i[5]=n):n=i[5],i[6]!==h||i[7]!==m?(l=m?(0,a.jsx)(g.J,{"data-testid":"nav-search-clear",tabIndex:-1,size:"xs",radius:"xl",onClick:()=>h("")}):p,i[6]=h,i[7]=m,i[8]=l):l=i[8],i[9]!==x||i[10]!==c||i[11]!==r||i[12]!==l||i[13]!==m?(o=(0,a.jsx)(y.p,{"data-testid":"nav-search-input",placeholder:c,value:m,onChange:r,leftSection:n,onKeyDown:x,rightSection:l,mt:8,mb:"sm",size:"xs",variant:"filled",radius:"xl",className:eB().searchInput}),i[9]=x,i[10]=c,i[11]=r,i[12]=l,i[13]=m,i[14]=o):o=i[14],o}let e1=e=>{let s,t,r,n=(0,d.c)(8),{name:l,collapsed:o,onClick:i}=e;return n[0]!==o?(s=o?(0,a.jsx)(O.A,{size:14}):(0,a.jsx)(P.A,{size:14}),n[0]=o,n[1]=s):s=n[1],n[2]!==l?(t=(0,a.jsx)("div",{children:l}),n[2]=l,n[3]=t):t=n[3],n[4]!==i||n[5]!==s||n[6]!==t?(r=(0,a.jsxs)("div",{className:eB().groupLabel,onClick:i,children:[s,t]}),n[4]=i,n[5]=s,n[6]=t,n[7]=r):r=n[7],r},e0=e=>{let s,t,n,l,o,i=(0,d.c)(23),{name:c,groups:m,renderLink:h,onDragEnd:u,forceExpandGroups:x}=e,f=void 0!==x&&x,b=`collapsedGroups-${c}`;i[0]===Symbol.for("react.memo_cache_sentinel")?(s={},i[0]=s):s=i[0],i[1]!==b?(t={key:b,defaultValue:s},i[1]=b,i[2]=t):t=i[2];let[j,v]=(0,z.M)(t);i[3]!==j||i[4]!==v?(n=e=>{v({...j,[e]:!j[e]})},i[3]=j,i[4]=v,i[5]=n):n=i[5];let _=n,[g,y]=(0,r.useState)(null);if(i[6]!==j||i[7]!==g||i[8]!==f||i[9]!==m||i[10]!==_||i[11]!==u||i[12]!==h){let e;i[14]!==j||i[15]!==g||i[16]!==f||i[17]!==_||i[18]!==u||i[19]!==h?(e=e=>(0,a.jsxs)("div",{className:p()(g===e.name&&eB().groupDragOver),onDragOver:s=>{s.preventDefault(),s.dataTransfer.dropEffect="move",y(e.name)},onDragEnd:e=>{e.preventDefault(),u?.(e.target,g),y(null)},children:[(0,a.jsx)(e1,{onClick:()=>_(e.name),name:e.name,collapsed:j[e.name]}),(0,a.jsx)(k.S,{in:!j[e.name]||f,children:e.items.map(e=>h(e))})]},e.name),i[14]=j,i[15]=g,i[16]=f,i[17]=_,i[18]=u,i[19]=h,i[20]=e):e=i[20],l=m.map(e),i[6]=j,i[7]=g,i[8]=f,i[9]=m,i[10]=_,i[11]=u,i[12]=h,i[13]=l}else l=i[13];return i[21]!==l?(o=(0,a.jsx)(a.Fragment,{children:l}),i[21]=l,i[22]=o):o=i[22],o};function e2(e){let s,t,a,n,l=(0,d.c)(14),{items:o,untaggedGroupName:i}=e,c=void 0===i?"Other":i;l[0]!==o?(s=new x.A(o,{keys:["name"],threshold:.2,ignoreLocation:!0}),l[0]=o,l[1]=s):s=l[1];let m=s,[h,u]=(0,r.useState)("");e:{let e;if(""===h){t=o;break e}l[2]!==m||l[3]!==h?(e=m.search(h).map(e4),l[2]=m,l[3]=h,l[4]=e):e=l[4],t=e}let p=t;if(l[5]!==p||l[6]!==c){let e,s={},t=[];p.forEach(e=>{e.tags?.length?e.tags.forEach(t=>{s[t]=s[t]??[],s[t].push(e)}):t.push(e)}),t.length&&(s[c]=t),l[8]!==c?(e=(e,s)=>e.name===c?1:s.name===c?-1:e.name.localeCompare(s.name),l[8]=c,l[9]=e):e=l[9],a=Object.entries(s).map(e3).sort(e),l[5]=p,l[6]=c,l[7]=a}else a=l[7];let f=a;return l[10]!==p||l[11]!==f||l[12]!==h?(n={filteredList:p,groupedFilteredList:f,q:h,setQ:u},l[10]=p,l[11]=f,l[12]=h,l[13]=n):n=l[13],n}function e3(e){let[s,t]=e;return{name:s,items:t}}function e4(e){return e.item}function e5(e){let s,t,n,o,i,c,h,u,x,b,v,_,g,y,M,D,T,L,F,O,P,V,K,U,R,J,Z,ee,es,et,ea,er,en,el,eo,ei,ed,eh,eu,ep,eb,ej,ev,e_,eg,ey,ek,eS,eC,eA,ew,eI,eM,eE,eD,eT,eL,eF=(0,d.c)(163),{fixed:eO}=e,eP=void 0!==eO&&eO,eW=(0,ef.PH)();eF[0]===Symbol.for("react.memo_cache_sentinel")?(s={size:22},eF[0]=s):s=eF[0];let eQ=(0,ef.GV)(s);eF[1]===Symbol.for("react.memo_cache_sentinel")?(t=[],eF[1]=t):t=eF[1],(0,r.useEffect)(se,t);let{data:eV,isLoading:eZ,refetch:e3}=(0,ex.PY)();eF[2]!==eV?(n=eV??[],eF[2]=eV,eF[3]=n):n=eF[3];let e4=n,e5=(0,$.vY)(),ss=(0,ex.CI)(),{data:st,isLoading:sa,refetch:sr}=(0,$.L9)();eF[4]!==st?(o=st??[],eF[4]=st,eF[5]=o):o=eF[5];let sn=o,{pathname:sl,query:so}=(0,m.useRouter)();eF[6]===Symbol.for("react.memo_cache_sentinel")?(i={from:(0,f.withDefault)(f.NumberParam,-1),to:(0,f.withDefault)(f.NumberParam,-1)},eF[6]=i):i=eF[6];let[si]=(0,f.useQueryParams)(i);eF[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,f.withDefault)(f.StringParam,""),h={updateType:"pushIn",enableBatching:!0},eF[7]=c,eF[8]=h):(c=eF[7],h=eF[8]);let[sc]=(0,f.useQueryParam)("tq",c,h),{data:sd}=q.Ay.useMe();eF[9]===Symbol.for("react.memo_cache_sentinel")?(u={key:"isSearchExpanded",defaultValue:!0},eF[9]=u):u=eF[9];let[sm,sh]=(0,z.M)(u);eF[10]===Symbol.for("react.memo_cache_sentinel")?(x={key:"isDashboardsExpanded",defaultValue:!0},eF[10]=x):x=eF[10];let[su,sp]=(0,z.M)(x),{width:sx}=(0,ec.lW)();eF[11]===Symbol.for("react.memo_cache_sentinel")?(b={key:"isNavCollapsed",defaultValue:!1},eF[11]=b):b=eF[11];let[sf,sb]=(0,z.M)(b),sj=(sx??1e3)<900||sf,sv=sj?50:250;eF[12]!==sl||eF[13]!==so?(v=()=>{j().addAction("user navigated",{route:sl,query:JSON.stringify(so)})},_=[sl,so],eF[12]=sl,eF[13]=so,eF[14]=v,eF[15]=_):(v=eF[14],_=eF[15]),(0,r.useEffect)(v,_),eF[16]!==sd?(g=()=>{null!=sd&&(j().enableAdvancedNetworkCapture(),j().setGlobalAttributes({userEmail:sd.email,userName:sd.name,teamName:sd.team.name}))},y=[sd],eF[16]=sd,eF[17]=g,eF[18]=y):(g=eF[17],y=eF[18]),(0,r.useEffect)(g,y),eF[19]!==e4?(M={items:e4,untaggedGroupName:eK},eF[19]=e4,eF[20]=M):M=eF[20];let{q:s_,setQ:sg,filteredList:sy,groupedFilteredList:sk}=e2(M);eF[21]!==sn?(D={items:sn,untaggedGroupName:eU},eF[21]=sn,eF[22]=D):D=eF[22];let{q:sS,setQ:sN,filteredList:sC,groupedFilteredList:sA}=e2(D);eF[23]===Symbol.for("react.memo_cache_sentinel")?(T={key:"isDashboardsPresetsCollapsed",defaultValue:!1},eF[23]=T):T=eF[23];let[sw,sz]=(0,z.M)(T),sI=(0,r.useRef)(null),sM=(0,r.useRef)(null);eF[24]!==sc||eF[25]!==so.savedSearchId||eF[26]!==si.from||eF[27]!==si.to?(L=e=>(0,a.jsx)(l(),{href:`/search/${e.id}?${new URLSearchParams(-1!=si.from&&-1!=si.to?{from:si.from.toString(),to:si.to.toString(),tq:sc}:{}).toString()}`,tabIndex:0,className:p()(eB().subMenuItem,e.id===so.savedSearchId&&eB().subMenuItemActive),title:e.name,draggable:!0,"data-savedsearchid":e.id,children:(0,a.jsxs)(S.Y,{gap:2,children:[(0,a.jsx)("div",{className:"d-inline-block text-truncate",children:e.name}),Array.isArray(e.alerts)&&e.alerts.length>0?e.alerts.some(e9)?(0,a.jsx)(W.A,{size:14,className:"float-end text-danger ms-1","aria-label":"Has Alerts and is in ALERT state"}):(0,a.jsx)(E.A,{size:14,className:"float-end ms-1","aria-label":"Has Alerts and is in OK state"}):null]})},e.id),eF[24]=sc,eF[25]=so.savedSearchId,eF[26]=si.from,eF[27]=si.to,eF[28]=L):L=eF[28];let sE=L;eF[29]!==e4||eF[30]!==e3||eF[31]!==ss?(F=(e,s)=>{if(!e?.dataset.savedsearchid||null==s)return;let t=e4.find(s=>s.id===e.dataset.savedsearchid);t?.tags?.includes(s)||ss.mutate({id:e.dataset.savedsearchid,tags:s===eK?[]:[s]},{onSuccess:()=>{e3()}})},eF[29]=e4,eF[30]=e3,eF[31]=ss,eF[32]=F):F=eF[32];let sD=F;eF[33]!==so.dashboardId?(O=e=>(0,a.jsx)(l(),{href:`/dashboards/${e.id}`,tabIndex:0,className:p()(eB().subMenuItem,{[eB().subMenuItemActive]:e.id===so.dashboardId}),draggable:!0,"data-dashboardid":e.id,children:e.name},e.id),eF[33]=so.dashboardId,eF[34]=O):O=eF[34];let sT=O;eF[35]!==sn||eF[36]!==sr||eF[37]!==e5?(P=(e,s)=>{if(!e?.dataset.dashboardid||null==s)return;let t=sn.find(s=>s.id===e.dataset.dashboardid);t?.tags?.includes(s)||e5.mutate({id:e.dataset.dashboardid,tags:s===eU?[]:[s]},{onSuccess:()=>{sr()}})},eF[35]=sn,eF[36]=sr,eF[37]=e5,eF[38]=P):P=eF[38];let sL=P,[sF,sO]=(0,I.j)(!1),{close:sP,open:sW}=sO,{userPreferences:sQ}=(0,eN.HW)(),{isUTC:sB}=sQ,[sH,sY]=(0,I.j)(!1),{open:sq,close:sG}=sY;eF[39]!==sj||eF[40]!==sl?(V={isCollapsed:sj,pathname:sl},eF[39]=sj,eF[40]=sl,eF[41]=V):V=eF[41],eF[42]!==eP||eF[43]!==sv?(K=eP&&(0,a.jsx)("div",{className:eB().navGhost,style:{width:sv+1,minWidth:sv+1}}),eF[42]=eP,eF[43]=sv,eF[44]=K):K=eF[44],eF[45]!==sG||eF[46]!==sH?(U=(0,a.jsx)(X,{show:sH,onHide:sG}),eF[45]=sG,eF[46]=sH,eF[47]=U):U=eF[47],eF[48]!==eP||eF[49]!==sj?(R=p()(eB().nav,{[eB().navFixed]:eP,[eB().navCollapsed]:sj}),eF[48]=eP,eF[49]=sj,eF[50]=R):R=eF[50],eF[51]!==sv?(J={width:sv},Z={width:sv},eF[51]=sv,eF[52]=J,eF[53]=Z):(J=eF[52],Z=eF[53]);let s$=!sj;eF[54]!==sj||eF[55]!==s$?(ee=p()(eB().header,{[eB().headerExpanded]:s$,[eB().headerCollapsed]:sj}),eF[54]=sj,eF[55]=s$,eF[56]=ee):ee=eF[56],eF[57]!==sj||eF[58]!==sB||eF[59]!==eQ||eF[60]!==eW?(es=(0,a.jsx)(l(),{href:"/search",className:eB().logoLink,children:sj?(0,a.jsx)("div",{className:eB().logoIconWrapper,children:eQ}):(0,a.jsxs)(S.Y,{gap:"xs",align:"center",children:[eW,sB&&(0,a.jsx)(N.E,{size:"xs",color:"gray",variant:"light",fw:"normal",title:"Showing time in UTC",children:"UTC"})]})}),eF[57]=sj,eF[58]=sB,eF[59]=eQ,eF[60]=eW,eF[61]=es):es=eF[61],eF[62]!==sj?(et=p()(eB().collapseButton,{[eB().collapseButtonCollapsed]:sj}),eF[62]=sj,eF[63]=et):et=eF[63],eF[64]!==sb?(ea=()=>sb(e8),eF[64]=sb,eF[65]=ea):ea=eF[65],eF[66]===Symbol.for("react.memo_cache_sentinel")?(er=(0,a.jsx)(Q.A,{size:16}),eF[66]=er):er=eF[66],eF[67]!==et||eF[68]!==ea?(en=(0,a.jsx)(C.M,{variant:"transparent",size:"sm",className:et,title:"Collapse/Expand Navigation",onClick:ea,children:er}),eF[67]=et,eF[68]=ea,eF[69]=en):en=eF[69],eF[70]!==ee||eF[71]!==es||eF[72]!==en?(el=(0,a.jsxs)("div",{className:ee,children:[es,en]}),eF[70]=ee,eF[71]=es,eF[72]=en,eF[73]=el):el=eF[73],eF[74]!==Z||eF[75]!==el?(eo=(0,a.jsx)("div",{style:Z,children:el}),eF[74]=Z,eF[75]=el,eF[76]=eo):eo=eF[76],eF[77]!==sv?(ei={width:sv},eF[77]=sv,eF[78]=ei):ei=eF[78],eF[79]===Symbol.for("react.memo_cache_sentinel")?(ed=(0,a.jsx)(B.A,{size:16}),eF[79]=ed):ed=eF[79],eF[80]!==sm||eF[81]!==sh?(eh=G.VO?void 0:()=>sh(!sm),eF[80]=sm,eF[81]=sh,eF[82]=eh):eh=eF[82],eF[83]!==sm||eF[84]!==eh?(eu=(0,a.jsx)(e$,{label:"Search",icon:ed,href:"/search",isExpanded:sm,onToggle:eh}),eF[83]=sm,eF[84]=eh,eF[85]=eu):eu=eF[85],eF[86]!==sy||eF[87]!==sk||eF[88]!==sD||eF[89]!==sj||eF[90]!==eZ||eF[91]!==sm||eF[92]!==e4||eF[93]!==sE||eF[94]!==s_||eF[95]!==sg?(ep=!sj&&(0,a.jsx)(k.S,{in:sm,children:(0,a.jsx)("div",{className:eB().subMenu,children:eZ?(0,a.jsx)(A.a,{variant:"dots",mx:"md",my:"xs",size:"sm"}):!G.VO&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eX,{placeholder:"Saved Searches",value:s_,onChange:sg,onEnterDown:()=>{sI?.current?.firstChild?.focus?.()}}),0===e4.length&&(0,a.jsx)("div",{className:eB().emptyMessage,children:"No saved searches"}),(0,a.jsx)("div",{ref:sI,children:(0,a.jsx)(e0,{name:"saved-searches",groups:sk,renderLink:sE,forceExpandGroups:!!s_,onDragEnd:sD})}),s_&&0===sy.length?(0,a.jsxs)("div",{className:eB().emptyMessage,children:["No results matching ",(0,a.jsx)("i",{children:s_})]}):null]})})}),eF[86]=sy,eF[87]=sk,eF[88]=sD,eF[89]=sj,eF[90]=eZ,eF[91]=sm,eF[92]=e4,eF[93]=sE,eF[94]=s_,eF[95]=sg,eF[96]=ep):ep=eF[96],eF[97]===Symbol.for("react.memo_cache_sentinel")?(eb=eR.filter(e7).map(e6),eF[97]=eb):eb=eF[97],eF[98]===Symbol.for("react.memo_cache_sentinel")?(ej=(0,a.jsx)(H.A,{size:16}),eF[98]=ej):ej=eF[98],eF[99]!==su||eF[100]!==sp?(ev=()=>sp(!su),eF[99]=su,eF[100]=sp,eF[101]=ev):ev=eF[101],eF[102]!==su||eF[103]!==ev?(e_=(0,a.jsx)(e$,{label:"Dashboards",href:"/dashboards",icon:ej,isExpanded:su,onToggle:ev}),eF[102]=su,eF[103]=ev,eF[104]=e_):e_=eF[104],eF[105]!==sn||eF[106]!==sS||eF[107]!==sC||eF[108]!==sA||eF[109]!==sL||eF[110]!==sj||eF[111]!==su||eF[112]!==sa||eF[113]!==sw||eF[114]!==sl||eF[115]!==sT||eF[116]!==sN||eF[117]!==sz?(eg=!sj&&(0,a.jsx)(k.S,{in:su,children:(0,a.jsxs)("div",{className:eB().subMenu,children:[(0,a.jsx)(eJ,{}),sa?(0,a.jsx)(A.a,{variant:"dots",mx:"md",my:"xs",size:"sm"}):!G.VO&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eX,{placeholder:"Saved Dashboards",value:sS,onChange:sN,onEnterDown:()=>{sM?.current?.firstChild?.focus?.()}}),(0,a.jsx)(e0,{name:"dashboards",groups:sA,renderLink:sT,forceExpandGroups:!!sS,onDragEnd:sL}),0===sn.length&&(0,a.jsx)("div",{className:eB().emptyMessage,children:"No saved dashboards"}),sS&&0===sC.length?(0,a.jsxs)("div",{className:eB().emptyMessage,children:["No results matching ",(0,a.jsx)("i",{children:sS})]}):null]}),(0,a.jsx)(e1,{name:"Presets",collapsed:sw,onClick:()=>sz(!sw)}),(0,a.jsxs)(k.S,{in:!sw,children:[(0,a.jsx)(l(),{href:"/clickhouse",tabIndex:0,className:p()(eB().subMenuItem,{[eB().subMenuItemActive]:sl.startsWith("/clickhouse")}),"data-testid":"nav-link-clickhouse-dashboard",children:"ClickHouse"}),(0,a.jsx)(l(),{href:"/services",tabIndex:0,className:p()(eB().subMenuItem,{[eB().subMenuItemActive]:sl.startsWith("/services")}),"data-testid":"nav-link-services-dashboard",children:"Services"}),G.TS&&(0,a.jsx)(l(),{href:"/kubernetes",tabIndex:0,className:p()(eB().subMenuItem,{[eB().subMenuItemActive]:sl.startsWith("/kubernetes")}),"data-testid":"nav-link-k8s-dashboard",children:"Kubernetes"})]})]})}),eF[105]=sn,eF[106]=sS,eF[107]=sC,eF[108]=sA,eF[109]=sL,eF[110]=sj,eF[111]=su,eF[112]=sa,eF[113]=sw,eF[114]=sl,eF[115]=sT,eF[116]=sN,eF[117]=sz,eF[118]=eg):eg=eF[118],eF[119]===Symbol.for("react.memo_cache_sentinel")?(ey=!G.VO&&(0,a.jsx)(e$,{label:"Team Settings",href:"/team",icon:(0,a.jsx)(Y.A,{size:16})}),eF[119]=ey):ey=eF[119],eF[120]!==ei||eF[121]!==eu||eF[122]!==ep||eF[123]!==e_||eF[124]!==eg?(ek=(0,a.jsxs)("div",{style:ei,className:eB().navLinks,children:[eu,ep,eb,e_,eg,ey]}),eF[120]=ei,eF[121]=eu,eF[122]=ep,eF[123]=e_,eF[124]=eg,eF[125]=ek):ek=eF[125],eF[126]!==sj||eF[127]!==sv||eF[128]!==sq?(eS=!sj&&(0,a.jsxs)("div",{style:{width:sv},className:eB().onboardingSection,children:[(0,a.jsx)(em,{onAddDataClick:sq}),(0,a.jsx)(eY,{})]}),eF[126]=sj,eF[127]=sv,eF[128]=sq,eF[129]=eS):eS=eF[129],eF[130]!==ek||eF[131]!==eS?(eC=(0,a.jsxs)(w.F,{type:"scroll",scrollbarSize:6,scrollHideDelay:100,classNames:eB(),className:eB().scrollContainer,children:[ek,eS]}),eF[130]=ek,eF[131]=eS,eF[132]=eC):eC=eF[132],eF[133]!==sv?(eA={width:sv},eF[133]=sv,eF[134]=eA):eA=eF[134],eF[135]!==sq?(ew=(0,a.jsx)(eG,{version:"2.17.0",onAddDataClick:sq}),eF[135]=sq,eF[136]=ew):ew=eF[136];let sV=sd?.name,sK=sd?.team?.name;return eF[137]!==sW||eF[138]!==sV||eF[139]!==sK?(eI=(0,a.jsx)(eq,{userName:sV,teamName:sK,onClickUserPreferences:sW,logoutUrl:G.VO?null:"/api/logout"}),eF[137]=sW,eF[138]=sV,eF[139]=sK,eF[140]=eI):eI=eF[140],eF[141]!==sd?(eM=sd&&sd.usageStatsEnabled&&(0,a.jsx)("img",{referrerPolicy:"no-referrer-when-downgrade",src:"https://static.scarf.sh/a.png?x-pxid=bbc99c42-7a75-4eee-9fb9-2b161fc4acd6"}),eF[141]=sd,eF[142]=eM):eM=eF[142],eF[143]!==eA||eF[144]!==ew||eF[145]!==eI||eF[146]!==eM?(eE=(0,a.jsxs)("div",{className:eB().footer,style:eA,children:[ew,eI,eM]}),eF[143]=eA,eF[144]=ew,eF[145]=eI,eF[146]=eM,eF[147]=eE):eE=eF[147],eF[148]!==R||eF[149]!==J||eF[150]!==eo||eF[151]!==eC||eF[152]!==eE?(eD=(0,a.jsxs)("div",{className:R,style:J,children:[eo,eC,eE]}),eF[148]=R,eF[149]=J,eF[150]=eo,eF[151]=eC,eF[152]=eE,eF[153]=eD):eD=eF[153],eF[154]!==sF||eF[155]!==sP?(eT=(0,a.jsx)(ez,{opened:sF,onClose:sP}),eF[154]=sF,eF[155]=sP,eF[156]=eT):eT=eF[156],eF[157]!==V||eF[158]!==K||eF[159]!==U||eF[160]!==eD||eF[161]!==eT?(eL=(0,a.jsxs)(eH.Provider,{value:V,children:[K,U,eD,eT]}),eF[157]=V,eF[158]=K,eF[159]=U,eF[160]=eD,eF[161]=eT,eF[162]=eL):eL=eF[162],eL}function e6(e){return(0,a.jsx)(e$,{label:e.label,href:e.href,icon:e.icon,isBeta:e.isBeta},e.id)}function e7(e){return!e.cloudOnly||!G.VO}function e8(e){return!e}function e9(e){return e.state===v.Or.ALERT}function se(){let e;try{e=window.sessionStorage.getItem("hdx-login-redirect-url")}catch(e){console.error(e)}e&&(window.sessionStorage.removeItem("hdx-login-redirect-url"),h().push(e))}var ss=t(74862),st=t(54134),sa=t(42717),sr=t(9841),sn=t(84479),sl=t(80170),so=t(97702);t(86502);let si=e=>{let s,t,r,n,l=(0,d.c)(7),{children:o}=e,{actions:i}=(()=>{let e,s,t,r=(0,d.c)(46),n=(0,m.useRouter)(),l=(0,ef.Kh)();r[0]===Symbol.for("react.memo_cache_sentinel")?(e={size:16},r[0]=e):e=r[0];let o=(0,ef.GV)(e),{data:i}=(0,ex.PY)(),{data:c}=q.Ay.useDashboards();if(r[1]!==l||r[2]!==c||r[3]!==i||r[4]!==o||r[5]!==n){let e,t,d,m,h,u,p,x,f,b,j,v,_,g,y,k,S,N,C,A,w,z,I,M,T=c??[];s=[],(i??[]).forEach(e=>{s.push({id:e.id,group:"Saved searches",leftSection:(0,a.jsx)(st.A,{size:16}),label:e.name,keywords:["search","log","saved"],onClick:()=>{n.push(`/search/${e.id}`)}})}),T.forEach(e=>{s.push({id:e.id,group:"Dashboards",leftSection:(0,a.jsx)(sa.A,{size:16}),label:e.name,keywords:["dashboard"],onClick:()=>{n.push(`/dashboards/${e.id}`)}})}),r[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(st.A,{size:16}),r[7]=e):e=r[7],r[8]===Symbol.for("react.memo_cache_sentinel")?(t=["log","events","logs"],r[8]=t):t=r[8],r[9]!==n?(d={id:"search",group:"Menu",leftSection:e,label:"Search",description:"Start a new search",keywords:t,onClick:()=>{n.push("/search")}},r[9]=n,r[10]=d):d=r[10],r[11]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)(sr.A,{size:16}),r[11]=m):m=r[11],r[12]===Symbol.for("react.memo_cache_sentinel")?(h=["graph","metrics"],r[12]=h):h=r[12],r[13]!==n?(u={id:"chart-explorer",group:"Menu",leftSection:m,label:"Chart Explorer",description:"Explore your data",keywords:h,onClick:()=>{n.push("/chart")}},r[13]=n,r[14]=u):u=r[14],r[15]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)(sn.A,{size:16}),r[15]=p):p=r[15],r[16]===Symbol.for("react.memo_cache_sentinel")?(x=["graph"],r[16]=x):x=r[16],r[17]!==n?(f={id:"new-dashboard",group:"Menu",leftSection:p,label:"New Dashboard",description:"Create a new dashboard",keywords:x,onClick:()=>{n.push("/dashboards")}},r[17]=n,r[18]=f):f=r[18],r[19]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.jsx)(D.A,{size:16}),r[19]=b):b=r[19],r[20]===Symbol.for("react.memo_cache_sentinel")?(j=["browser","web"],r[20]=j):j=r[20],r[21]!==n?(v={id:"sessions",group:"Menu",leftSection:b,label:"Client Sessions",description:"View client sessions",keywords:j,onClick:()=>{n.push("/sessions")}},r[21]=n,r[22]=v):v=r[22],r[23]===Symbol.for("react.memo_cache_sentinel")?(_=(0,a.jsx)(E.A,{size:16}),r[23]=_):_=r[23],r[24]!==n?(g={id:"alerts",group:"Menu",leftSection:_,label:"Alerts",description:"View and manage alerts",onClick:()=>{n.push("/alerts")}},r[24]=n,r[25]=g):g=r[25],r[26]===Symbol.for("react.memo_cache_sentinel")?(y=(0,a.jsx)(sl.A,{size:16}),r[26]=y):y=r[26],r[27]!==n?(k={id:"service-health",group:"Menu",label:"Service Health",leftSection:y,description:"HTTP, Database and Infrastructure metrics",onClick:()=>{n.push("/services")}},r[27]=n,r[28]=k):k=r[28],r[29]===Symbol.for("react.memo_cache_sentinel")?(S=(0,a.jsx)(Y.A,{size:16}),r[29]=S):S=r[29],r[30]!==n?(N={id:"team-settings",group:"Menu",leftSection:S,label:"Team Settings",onClick:()=>{n.push("/team")}},r[30]=n,r[31]=N):N=r[31],r[32]===Symbol.for("react.memo_cache_sentinel")?(C=(0,a.jsx)(so.A,{size:16}),r[32]=C):C=r[32],r[33]===Symbol.for("react.memo_cache_sentinel")?(A=["help","docs"],r[33]=A):A=r[33],r[34]!==n?(w={id:"documentation",group:"Menu",leftSection:C,label:"Documentation",keywords:A,onClick:()=>{n.push("https://clickhouse.com/docs/use-cases/observability/clickstack")}},r[34]=n,r[35]=w):w=r[35];let L=`${l} Cloud`,F=`Ready to use ${l} Cloud? Get started for free.`;r[36]===Symbol.for("react.memo_cache_sentinel")?(z=["account","profile"],r[36]=z):z=r[36],r[37]!==n?(I=()=>{n.push("https://clickhouse.com/docs/use-cases/observability/clickstack/getting-started#deploy-with-clickhouse-cloud")},r[37]=n,r[38]=I):I=r[38],r[39]!==o||r[40]!==L||r[41]!==F||r[42]!==I?(M={id:"cloud",group:"Menu",leftSection:o,label:L,description:F,keywords:z,onClick:I},r[39]=o,r[40]=L,r[41]=F,r[42]=I,r[43]=M):M=r[43],s.push(d,u,f,v,g,k,N,w,M),r[1]=l,r[2]=c,r[3]=i,r[4]=o,r[5]=n,r[6]=s}else s=r[6];let h=s;return r[44]!==h?(t={actions:h},r[44]=h,r[45]=t):t=r[45],t})();return l[0]===Symbol.for("react.memo_cache_sentinel")?(s={leftSection:(0,a.jsx)(F.A,{size:16}),placeholder:"Search"},l[0]=s):s=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(t=[],l[1]=t):t=l[1],l[2]!==i?(r=(0,a.jsx)(ss.L,{shortcut:"mod + K",searchProps:s,nothingFound:"Nothing found",zIndex:200001,tagsToIgnore:t,highlightQuery:!0,actions:i,limit:7,scrollable:!0}),l[2]=i,l[3]=r):r=l[3],l[4]!==o||l[5]!==r?(n=(0,a.jsxs)("div",{className:"notranslate",translate:"no",children:[o,r]}),l[4]=o,l[5]=r,l[6]=n):n=l[6],n},sc=e=>(0,a.jsx)(si,{children:(0,a.jsxs)("div",{className:G.Ju?"app-layout-with-banner":"app-layout",children:[G.Ju&&(0,a.jsx)(o.a,{bg:"var(--color-text-primary)",children:(0,a.jsx)(i.o,{children:(0,a.jsxs)(c.E,{py:"xs",size:"sm",c:"var(--color-text-inverted)",children:["This is not recommended for production use and is lacking core ClickStack features such as alerts and saved searches. For a proper experience, visit the"," ",(0,a.jsx)("strong",{children:(0,a.jsx)(l(),{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/getting-started",target:"_blank",rel:"noopener norefe\x03er",children:"ClickStack Docs"})})]})})}),(0,a.jsxs)("div",{className:"d-flex",style:{height:"100%",overflow:"hidden"},children:[(0,a.jsx)(e5,{}),(0,a.jsx)("div",{className:"w-100 min-w-0",style:{minWidth:0,overflow:"auto"},children:e})]})]})})},87095:(e,s,t)=>{"use strict";t.d(s,{CI:()=>x,PY:()=>c,V3:()=>u,c_:()=>b,rs:()=>m});var a=t(75155),r=t(12482),n=t(93251),l=t(16932),o=t(6876),i=t(98142);function c(){let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["saved-search"],queryFn:d},s[0]=e):e=s[0],(0,r.I)(e)}async function d(){return i.VO?[]:(0,o.Q5)("saved-search").json()}function m(e,s){let t,n,l,o,i=(0,a.c)(8),{id:c}=e;i[0]!==s?(t=void 0===s?{}:s,i[0]=s,i[1]=t):t=i[1];let d=t;return i[2]===Symbol.for("react.memo_cache_sentinel")?(n=["saved-search"],i[2]=n):n=i[2],i[3]!==c?(l=e=>e.find(e=>e.id===c),i[3]=c,i[4]=l):l=i[4],i[5]!==d||i[6]!==l?(o={queryKey:n,queryFn:h,select:l,...d},i[5]=d,i[6]=l,i[7]=o):o=i[7],(0,r.I)(o)}function h(){return i.VO?[]:(0,o.Q5)("saved-search").json()}function u(){let e,s=(0,a.c)(2),t=(0,n.jE)();return s[0]!==t?(e={mutationFn:p,onSuccess:()=>{t.invalidateQueries({queryKey:["saved-search"]})}},s[0]=t,s[1]=e):e=s[1],(0,l.n)(e)}function p(e){return(0,o.Q5)("saved-search",{method:"POST",json:e}).json()}function x(){let e,s=(0,a.c)(2),t=(0,n.jE)();return s[0]!==t?(e={mutationFn:f,onSuccess:()=>{t.invalidateQueries({queryKey:["saved-search"]})}},s[0]=t,s[1]=e):e=s[1],(0,l.n)(e)}function f(e){return(0,o.Q5)(`saved-search/${e.id}`,{method:"PATCH",json:e}).json()}function b(){let e,s=(0,a.c)(2),t=(0,n.jE)();return s[0]!==t?(e={mutationFn:j,onSuccess:()=>{t.invalidateQueries({queryKey:["saved-search"]})}},s[0]=t,s[1]=e):e=s[1],(0,l.n)(e)}function j(e){return(0,o.Q5)(`saved-search/${e}`,{method:"DELETE"}).json()}},97344:(e,s,t)=>{"use strict";t.d(s,{L9:()=>b,MZ:()=>v,mG:()=>x,pc:()=>g,vY:()=>u});var a=t(75155),r=t(55729),n=t(41038),l=t(60665),o=t(93251),i=t(16932),c=t(12482),d=t(92917),m=t(6876),h=t(98142);function u(){let e,s=(0,a.c)(2),t=(0,o.jE)();return s[0]!==t?(e={mutationFn:p,onSuccess:()=>{t.invalidateQueries({queryKey:["dashboards"]})}},s[0]=t,s[1]=e):e=s[1],(0,i.n)(e)}async function p(e){await (0,m.Q5)(`dashboards/${e.id}`,{method:"PATCH",json:e})}function x(){let e,s=(0,a.c)(2),t=(0,o.jE)();return s[0]!==t?(e={mutationFn:f,onSuccess:()=>{t.invalidateQueries({queryKey:["dashboards"]})}},s[0]=t,s[1]=e):e=s[1],(0,i.n)(e)}async function f(e){return(0,m.Q5)("dashboards",{method:"POST",json:e}).json()}function b(){let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["dashboards"],queryFn:j},s[0]=e):e=s[0],(0,c.I)(e)}async function j(){return h.VO?[]:(0,m.Q5)("dashboards").json()}function v(e){let s,t,o,i,m,h,p,x,f,b=(0,a.c)(23),{dashboardId:j,presetConfig:v}=e;b[0]!==v?(s=v??{id:"",name:"My New Dashboard",tiles:[],tags:[]},b[0]=v,b[1]=s):s=b[1];let g=s;b[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.os)(),b[2]=t):t=b[2];let[y,k]=(0,n.ZA)("dashboard",t),S=u();b[3]===Symbol.for("react.memo_cache_sentinel")?(o=["dashboards"],b[3]=o):o=b[3],b[4]!==j?(i=e=>e.find(e=>e.id===j),b[4]=j,b[5]=i):i=b[5];let N=null!=j;b[6]!==i||b[7]!==N?(m={queryKey:o,queryFn:_,select:i,enabled:N},b[6]=i,b[7]=N,b[8]=m):m=b[8];let{data:C,isFetching:A}=(0,c.I)(m),[w,z]=(0,r.useState)(!1),I=null==j;e:{if(I){h=y??g;break e}h=C}let M=h;b[9]!==I||b[10]!==k||b[11]!==S?(p=(e,s,t)=>{if(!I)return z(!0),S.mutate(e,{onSuccess:()=>{z(!1),s?.()},onError:e=>{z(!1),l.$e.show({color:"red",title:"Unable to save dashboard",message:e.message.slice(0,100),autoClose:5e3}),t?.()}});k(e),s?.()},b[9]=I,b[10]=k,b[11]=S,b[12]=p):p=b[12];let E=p;b[13]!==M||b[14]!==j?(x=null!=j?j:(0,d.s5)(`${JSON.stringify(M)}`),b[13]=M,b[14]=j,b[15]=x):x=b[15];let D=x;return b[16]!==M||b[17]!==D||b[18]!==A||b[19]!==I||b[20]!==w||b[21]!==E?(f={dashboard:M,setDashboard:E,dashboardHash:D,isLocalDashboard:I,isFetching:A,isSetting:w},b[16]=M,b[17]=D,b[18]=A,b[19]=I,b[20]=w,b[21]=E,b[22]=f):f=b[22],f}function _(){return(0,m.Q5)("dashboards").json()}function g(){let e,s=(0,a.c)(2),t=(0,o.jE)();return s[0]!==t?(e={mutationFn:y,onSuccess:()=>{t.invalidateQueries({queryKey:["dashboards"]})}},s[0]=t,s[1]=e):e=s[1],(0,i.n)(e)}function y(e){return(0,m.Q5)(`dashboards/${e}`,{method:"DELETE"}).json()}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/3999-487ca1292f0acaac.js b/out/_next/static/chunks/6747-db295e4482b5a6a1.js similarity index 79% rename from out/_next/static/chunks/3999-487ca1292f0acaac.js rename to out/_next/static/chunks/6747-db295e4482b5a6a1.js index b42442d..eaf8fea 100644 --- a/out/_next/static/chunks/3999-487ca1292f0acaac.js +++ b/out/_next/static/chunks/6747-db295e4482b5a6a1.js @@ -1,3 +1,3 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3999],{291:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},620:(e,t,r)=>{var n=r(11229),o=r(16999),i=r(41016),a=r(62220),s=r(47508);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(54703);e.exports=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},1775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleColumnTypes=t.ColumnTypeParseError=void 0,t.parseColumnType=n,t.parseDecimalType=o,t.parseEnumType=i,t.parseMapType=a,t.parseTupleType=s,t.parseArrayType=u,t.parseDateTimeType=l,t.parseDateTime64Type=c,t.parseFixedStringType=p,t.asNullableType=f,t.getElementsTypes=h;class r extends Error{constructor(e,t){super(e),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.args=t??{},Object.setPrototypeOf(this,r.prototype)}}function n(e){let n,h=e,O=!1;if(h.startsWith(y)&&(h=h.slice(y.length,-1)),h.startsWith(d)&&(h=h.slice(d.length,-1),O=!0),t.SimpleColumnTypes.includes(h))n={type:"Simple",columnType:h,sourceType:e};else if(h.startsWith(v))n=o({sourceType:e,columnType:h});else if(h.startsWith(x))n=c({sourceType:e,columnType:h});else if(h.startsWith(S))n=l({sourceType:e,columnType:h});else if(h.startsWith(j))n=p({sourceType:e,columnType:h});else if(h.startsWith(b)||h.startsWith(w))n=i({sourceType:e,columnType:h});else if(h.startsWith(m))n=u({sourceType:e,columnType:h});else if(h.startsWith(g))n=a({sourceType:e,columnType:h});else if(h.startsWith(_))n=s({sourceType:e,columnType:h});else throw new r("Unsupported column type",{columnType:h});return O?f(n,e):n}function o({columnType:e,sourceType:t}){if(!e.startsWith(v)||e.length76)throw new r("Invalid Decimal precision",{columnType:e,sourceType:t,precision:i});let a=parseInt(n[1],10);if(Number.isNaN(a)||a<0||a>i)throw new r("Invalid Decimal scale",{columnType:e,sourceType:t,precision:i,scale:a});return i>38?o=256:i>18?o=128:i>9&&(o=64),{type:"Decimal",params:{precision:i,scale:a,intSize:o},sourceType:t}}function i({columnType:e,sourceType:t}){let n;if(e.startsWith(b))e=e.slice(b.length,-1),n=8;else if(e.startsWith(w))e=e.slice(w.length,-1),n=16;else throw new r("Expected Enum to be either Enum8 or Enum16",{columnType:e,sourceType:t});if(e.length<6)throw new r("Invalid Enum type values",{columnType:e,sourceType:t});let o=[],i=[],a=!0,s=!1,u=1;for(let n=1;nN)&&(c(u,n),n+=2,u=n+1,a=!0,s=!1);if(c(u,e.length),o.length!==i.length)throw new r("Expected Enum to have the same number of names and indices",{columnType:e,sourceType:t,names:o,indices:i});let l={};for(let e=0;en(e)),sourceType:t}}function u({columnType:e,sourceType:t}){if(!e.startsWith(m)||e.length0;)if(e.startsWith(m))e=e.slice(m.length,-1),o++;else break;if(0===o||o>10)throw new r("Expected Array to have between 1 and 10 dimensions",{columnType:e});let i=n(e);if("Array"===i.type)throw new r("Unexpected Array as value type",{columnType:e,sourceType:t});return{type:"Array",value:i,dimensions:o,sourceType:t}}function l({columnType:e,sourceType:t}){if(e.startsWith(O)&&e.length>O.length+4)return{type:"DateTime",timezone:e.slice(O.length+1,-2),sourceType:t};if(e.startsWith(S)&&e.length===S.length)return{type:"DateTime",timezone:null,sourceType:t};throw new r("Invalid DateTime type",{columnType:e,sourceType:t})}function c({columnType:e,sourceType:t}){if(!e.startsWith(x)||e.length9)throw new r("Invalid DateTime64 precision",{columnType:e,sourceType:t,precision:n});let o=null;return e.length>x.length+2&&(o=e.slice(x.length+4,-2)),{type:"DateTime64",timezone:o,precision:n,sourceType:t}}function p({columnType:e,sourceType:t}){if(!e.startsWith(j)||e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClickHouseClient=void 0;let n=r(7117),o=r(42953);class i{constructor(e){Object.defineProperty(this,"clientClickHouseSettings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"connectionParams",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"connection",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"makeResultSet",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"valuesEncoder",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sessionId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"role",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"logWriter",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const t=e?.log?.LoggerClass?new e.log.LoggerClass:new n.DefaultLogger,r=(0,o.prepareConfigWithURL)(e,t,e.impl.handle_specific_url_params??null);this.connectionParams=(0,o.getConnectionParams)(r,t),this.logWriter=this.connectionParams.log_writer,this.clientClickHouseSettings=this.connectionParams.clickhouse_settings,this.sessionId=e.session_id,this.role=e.role,this.connection=e.impl.make_connection(r,this.connectionParams),this.makeResultSet=e.impl.make_result_set,this.valuesEncoder=e.impl.values_encoder}async query(e){var t,r;let n=e.format??"JSON",o=(t=e.query,r=n,(t=a(t=t.trim()))+" \nFORMAT "+r),i=this.withClientQueryParams(e),{stream:s,query_id:u,response_headers:l}=await this.connection.query({query:o,...i});return this.makeResultSet(s,n,u,e=>{this.logWriter.error({err:e,module:"Client",message:"Error while processing the ResultSet.",args:{session_id:i.session_id,role:i.role,query:o,query_id:u}})},l)}async command(e){let t=a(e.query.trim());return await this.connection.command({query:t,...this.withClientQueryParams(e)})}async exec(e){let t=a(e.query.trim()),r="values"in e?e.values:void 0,n=e.decompress_response_stream??!0;return await this.connection.exec({query:t,values:r,decompress_response_stream:n,...this.withClientQueryParams(e)})}async insert(e){if(Array.isArray(e.values)&&0===e.values.length)return{executed:!1,query_id:"",response_headers:{}};let t=e.format||"JSONCompactEachRow";this.valuesEncoder.validateInsertValues(e.values,t);let r=function(e,t){let r="";if(void 0!==e.columns)if(Array.isArray(e.columns)&&e.columns.length>0)r=` (${e.columns.join(", ")})`;else{var n;null!=(n=e.columns)&&"object"==typeof n&&Object.prototype.hasOwnProperty.call(n,"except")&&e.columns.except.length>0&&(r=` (* EXCEPT (${e.columns.except.join(", ")}))`)}return`INSERT INTO ${e.table.trim()}${r} FORMAT ${t}`}(e,t);return{...await this.connection.insert({query:r,values:this.valuesEncoder.encodeValues(e.values,t),...this.withClientQueryParams(e)}),executed:!0}}async ping(e){return await this.connection.ping(e??{select:!1})}async close(){return await this.connection.close()}withClientQueryParams(e){return{clickhouse_settings:{...this.clientClickHouseSettings,...e.clickhouse_settings},query_params:e.query_params,abort_signal:e.abort_signal,query_id:e.query_id,session_id:e.session_id??this.sessionId,role:e.role??this.role,auth:e.auth,http_headers:e.http_headers}}}function a(e){let t=e.length;for(let r=t;r>0;r--)if(";"!==e[r-1]){t=r;break}return t!==e.length?e.slice(0,t):e}t.ClickHouseClient=i},3128:(e,t,r)=>{var n=r(4650),o=r(95345),i=r(291),a=r(46468),s=r(36704),u=r(22344);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},3540:e=>{e.exports=function(e){return function(t){return e(t)}}},3619:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4650:(e,t,r)=>{var n=r(21895),o=r(15917),i=r(52182),a=r(5514),s=r(92786);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleParam=t.isException=t.isRow=t.isProgressRow=t.SimpleColumnTypes=t.parseColumnType=t.SettingsMap=t.ClickHouseLogLevel=t.parseError=t.ClickHouseError=t.ResultSet=t.createClient=void 0;var n=r(98491);Object.defineProperty(t,"createClient",{enumerable:!0,get:function(){return n.createClient}});var o=r(29598);Object.defineProperty(t,"ResultSet",{enumerable:!0,get:function(){return o.ResultSet}});var i=r(7117);Object.defineProperty(t,"ClickHouseError",{enumerable:!0,get:function(){return i.ClickHouseError}}),Object.defineProperty(t,"parseError",{enumerable:!0,get:function(){return i.parseError}}),Object.defineProperty(t,"ClickHouseLogLevel",{enumerable:!0,get:function(){return i.ClickHouseLogLevel}}),Object.defineProperty(t,"SettingsMap",{enumerable:!0,get:function(){return i.SettingsMap}}),Object.defineProperty(t,"parseColumnType",{enumerable:!0,get:function(){return i.parseColumnType}}),Object.defineProperty(t,"SimpleColumnTypes",{enumerable:!0,get:function(){return i.SimpleColumnTypes}}),Object.defineProperty(t,"isProgressRow",{enumerable:!0,get:function(){return i.isProgressRow}}),Object.defineProperty(t,"isRow",{enumerable:!0,get:function(){return i.isRow}}),Object.defineProperty(t,"isException",{enumerable:!0,get:function(){return i.isException}}),Object.defineProperty(t,"TupleParam",{enumerable:!0,get:function(){return i.TupleParam}})},5461:(e,t,r)=>{var n=r(30147),o=r(63912),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;e.exports=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return i.call(e,t)})}:o},5514:(e,t,r)=>{var n=r(36592);e.exports=function(e){return n(this.__data__,e)>-1}},5549:e=>{e.exports=function(e){return e}},7018:e=>{e.exports=function(){return!1}},7117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enhanceStackTrace=t.getCurrentStackTrace=t.DefaultLogger=t.LogWriter=t.isJWTAuth=t.isCredentialsAuth=t.withHttpSettings=t.withCompressionHeaders=t.transformUrl=t.toSearchParams=t.sleep=t.isSuccessfulResponse=t.numberConfigURLValue=t.getConnectionParams=t.enumConfigURLValue=t.booleanConfigURLValue=t.validateStreamFormat=t.isNotStreamableJSONFamily=t.isStreamableJSONFamily=t.isSupportedRawFormat=t.encodeJSON=t.formatQueryParams=t.formatQuerySettings=t.parseColumnType=t.SimpleColumnTypes=t.SettingsMap=t.isException=t.isRow=t.isProgressRow=t.ClickHouseLogLevel=t.parseError=t.ClickHouseError=t.TupleParam=t.ClickHouseClient=void 0;var n=r(3040);Object.defineProperty(t,"ClickHouseClient",{enumerable:!0,get:function(){return n.ClickHouseClient}});var o=r(25701);Object.defineProperty(t,"TupleParam",{enumerable:!0,get:function(){return o.TupleParam}});var i=r(32744);Object.defineProperty(t,"ClickHouseError",{enumerable:!0,get:function(){return i.ClickHouseError}}),Object.defineProperty(t,"parseError",{enumerable:!0,get:function(){return i.parseError}});var a=r(14303);Object.defineProperty(t,"ClickHouseLogLevel",{enumerable:!0,get:function(){return a.ClickHouseLogLevel}});var s=r(99469);Object.defineProperty(t,"isProgressRow",{enumerable:!0,get:function(){return s.isProgressRow}}),Object.defineProperty(t,"isRow",{enumerable:!0,get:function(){return s.isRow}}),Object.defineProperty(t,"isException",{enumerable:!0,get:function(){return s.isException}});var u=r(71354);Object.defineProperty(t,"SettingsMap",{enumerable:!0,get:function(){return u.SettingsMap}});var l=r(14529);Object.defineProperty(t,"SimpleColumnTypes",{enumerable:!0,get:function(){return l.SimpleColumnTypes}}),Object.defineProperty(t,"parseColumnType",{enumerable:!0,get:function(){return l.parseColumnType}});var c=r(25701);Object.defineProperty(t,"formatQuerySettings",{enumerable:!0,get:function(){return c.formatQuerySettings}}),Object.defineProperty(t,"formatQueryParams",{enumerable:!0,get:function(){return c.formatQueryParams}}),Object.defineProperty(t,"encodeJSON",{enumerable:!0,get:function(){return c.encodeJSON}}),Object.defineProperty(t,"isSupportedRawFormat",{enumerable:!0,get:function(){return c.isSupportedRawFormat}}),Object.defineProperty(t,"isStreamableJSONFamily",{enumerable:!0,get:function(){return c.isStreamableJSONFamily}}),Object.defineProperty(t,"isNotStreamableJSONFamily",{enumerable:!0,get:function(){return c.isNotStreamableJSONFamily}}),Object.defineProperty(t,"validateStreamFormat",{enumerable:!0,get:function(){return c.validateStreamFormat}});var p=r(42953);Object.defineProperty(t,"booleanConfigURLValue",{enumerable:!0,get:function(){return p.booleanConfigURLValue}}),Object.defineProperty(t,"enumConfigURLValue",{enumerable:!0,get:function(){return p.enumConfigURLValue}}),Object.defineProperty(t,"getConnectionParams",{enumerable:!0,get:function(){return p.getConnectionParams}}),Object.defineProperty(t,"numberConfigURLValue",{enumerable:!0,get:function(){return p.numberConfigURLValue}});var f=r(44555);Object.defineProperty(t,"isSuccessfulResponse",{enumerable:!0,get:function(){return f.isSuccessfulResponse}}),Object.defineProperty(t,"sleep",{enumerable:!0,get:function(){return f.sleep}}),Object.defineProperty(t,"toSearchParams",{enumerable:!0,get:function(){return f.toSearchParams}}),Object.defineProperty(t,"transformUrl",{enumerable:!0,get:function(){return f.transformUrl}}),Object.defineProperty(t,"withCompressionHeaders",{enumerable:!0,get:function(){return f.withCompressionHeaders}}),Object.defineProperty(t,"withHttpSettings",{enumerable:!0,get:function(){return f.withHttpSettings}}),Object.defineProperty(t,"isCredentialsAuth",{enumerable:!0,get:function(){return f.isCredentialsAuth}}),Object.defineProperty(t,"isJWTAuth",{enumerable:!0,get:function(){return f.isJWTAuth}});var h=r(14303);Object.defineProperty(t,"LogWriter",{enumerable:!0,get:function(){return h.LogWriter}}),Object.defineProperty(t,"DefaultLogger",{enumerable:!0,get:function(){return h.DefaultLogger}});var d=r(32744);Object.defineProperty(t,"getCurrentStackTrace",{enumerable:!0,get:function(){return d.getCurrentStackTrace}}),Object.defineProperty(t,"enhanceStackTrace",{enumerable:!0,get:function(){return d.enhanceStackTrace}})},7131:(e,t,r)=>{e.exports=r(33946)(Object.keys,Object)},8546:(e,t,r)=>{var n=r(92812),o=r(23183);e.exports=function(e,t){return null!=e&&o(e,t,n)}},8947:(e,t,r)=>{var n=r(81597),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;e.exports=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)}),t})},9541:(e,t,r)=>{e=r.nmd(e);var n=r(45516),o=r(7018),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,u=s?s.isBuffer:void 0;e.exports=u||o},9841:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","chart-line","IconChartLine",[["path",{d:"M4 19l16 0",key:"svg-0"}],["path",{d:"M4 15l4 -6l4 2l4 -5l4 4",key:"svg-1"}]])},9929:(e,t,r)=>{e.exports=r(54703)(r(45516),"Promise")},10858:(e,t,r)=>{e.exports=r(33946)(Object.getPrototypeOf,Object)},11229:(e,t,r)=>{var n=r(81707);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},11720:(e,t,r)=>{var n=r(86414);e.exports=function(e){return n(this,e).get(e)}},12342:(e,t,r)=>{var n=r(25080),o=r(42209),i=r(91544),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},13011:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(92190),t)},13574:(e,t,r)=>{var n=r(25080),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},13920:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.ClickHouseLogLevel=t.LogWriter=t.DefaultLogger=void 0;class o{trace({module:e,message:t,args:r}){let n=[a({module:e,message:t,level:"TRACE"})];r&&n.push("\nArguments:",r),console.debug(...n)}debug({module:e,message:t,args:r}){let n=[a({module:e,message:t,level:"DEBUG"})];r&&n.push("\nArguments:",r),console.debug(...n)}info({module:e,message:t,args:r}){let n=[a({module:e,message:t,level:"INFO"})];r&&n.push("\nArguments:",r),console.info(...n)}warn({module:e,message:t,args:r,err:n}){let o=[a({module:e,message:t,level:"WARN"})];r&&o.push("\nArguments:",r),n&&o.push("\nCaused by:",n),console.warn(...o)}error({module:e,message:t,args:r,err:n}){let o=[a({module:e,message:t,level:"ERROR"})];r&&o.push("\nArguments:",r),o.push("\nCaused by:",n),console.error(...o)}}t.DefaultLogger=o;class i{constructor(e,t,n){Object.defineProperty(this,"logger",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"module",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"logLevel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.logLevel=n??r.OFF,this.info({message:`Log level is set to ${r[this.logLevel]}`})}trace(e){this.logLevel<=r.TRACE&&this.logger.trace({...e,module:e.module??this.module})}debug(e){this.logLevel<=r.DEBUG&&this.logger.debug({...e,module:e.module??this.module})}info(e){this.logLevel<=r.INFO&&this.logger.info({...e,module:e.module??this.module})}warn(e){this.logLevel<=r.WARN&&this.logger.warn({...e,module:e.module??this.module})}error(e){this.logLevel<=r.ERROR&&this.logger.error({...e,module:e.module??this.module})}}function a({level:e,module:t,message:r}){let n=new Date().toISOString();return`[${n}][${e}][@clickhouse/client][${t}] ${r}`}t.LogWriter=i,(n=r||(t.ClickHouseLogLevel=r={}))[n.TRACE=0]="TRACE",n[n.DEBUG=1]="DEBUG",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.OFF=127]="OFF"},14529:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(1775),t)},15051:(e,t,r)=>{var n=r(29794),o=r(5461),i=r(87567);e.exports=function(e){return n(e,i,o)}},15565:(e,t,r)=>{var n=r(19515),o=r(24964),i=r(27288);e.exports=function(e){return i(o(e,void 0,n),e+"")}},15917:(e,t,r)=>{var n=r(36592),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},16005:(e,t,r)=>{var n=r(69335),o=r(3540),i=r(73696),a=i&&i.isSet;e.exports=a?o(a):n},16153:(e,t,r)=>{var n=r(25080),o=r(88601),i=r(91544),a=r(50515),s=1/0,u=n?n.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}},16419:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},16799:(e,t,r)=>{var n=r(98499),o=r(48039);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},16875:(e,t,r)=>{var n=r(64022);e.exports=function(e){return n(e)?void 0:e}},16999:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},17085:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{var n=r(28676),o=r(85008),i=r(53576),a=r(40101),s=r(69504);e.exports=function(e,t,r){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},18482:(e,t,r)=>{var n=r(23356),o=r(23282),i=r(80244),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)"constructor"==s&&(t||!a.call(e,s))||r.push(s);return r}},19515:(e,t,r)=>{var n=r(83965);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},21895:e=>{e.exports=function(){this.__data__=[],this.size=0}},22344:(e,t,r)=>{var n=r(4650),o=r(50874),i=r(33276);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},22346:(e,t,r)=>{var n=r(3128),o=r(58120),i=r(81014),a=r(46060),s=r(88447),u=r(28915),l=r(97722),c=r(87274),p=r(58489),f=r(15051),h=r(63127),d=r(53140),y=r(71388),v=r(17706),m=r(87568),g=r(91544),b=r(9541),w=r(37560),_=r(23356),S=r(16005),O=r(87567),x=r(70720),j="[object Arguments]",C="[object Function]",P="[object Object]",A={};A[j]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[P]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[C]=A["[object WeakMap]"]=!1,e.exports=function e(t,r,E,k,N,T){var R,I=1&r,M=2&r,q=4&r;if(E&&(R=N?E(t,k,N,T):E(t)),void 0!==R)return R;if(!_(t))return t;var L=g(t);if(L){if(R=y(t),!I)return l(t,R)}else{var U=d(t),D=U==C||"[object GeneratorFunction]"==U;if(b(t))return u(t,I);if(U==P||U==j||D&&!N){if(R=M||D?{}:m(t),!I)return M?p(t,s(R,t)):c(t,a(R,t))}else{if(!A[U])return N?t:{};R=v(t,U,I)}}T||(T=new n);var F=T.get(t);if(F)return F;T.set(t,R),S(t)?t.forEach(function(n){R.add(e(n,r,E,n,t,T))}):w(t)&&t.forEach(function(n,o){R.set(o,e(n,r,E,o,t,T))});var J=q?M?h:f:M?x:O,$=L?void 0:J(t);return o($||t,function(n,o){$&&(n=t[o=n]),i(R,o,e(n,r,E,o,t,T))}),R}},22599:(e,t,r)=>{"use strict";r.d(t,{S:()=>m});var n=r(6029),o=r(45089),i=r(55729),a=r(15862),s=r(80616),u=r(36504),l=r(60481),c=r(43016),p=r(56760),f=r(3465),h=r(56655);function d(e){return e?.current?e.current.scrollHeight:"auto"}let y="u">typeof window&&window.requestAnimationFrame,v={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},m=(0,c.P9)((e,t)=>{let{children:r,in:c,transitionDuration:m,transitionTimingFunction:g,style:b,onTransitionEnd:w,animateOpacity:_,...S}=(0,s.Y)("Collapse",v,e),O=(0,a.xd)(),x=(0,o.I)(),j=O.respectReducedMotion&&x?0:m,C=function({transitionDuration:e,transitionTimingFunction:t="ease",onTransitionEnd:r=()=>{},opened:n}){let o=(0,i.useRef)(null),a={height:0,overflow:"hidden"},[s,u]=(0,i.useState)(n?{}:a),l=e=>{(0,p.flushSync)(()=>u(e))},c=e=>{l(t=>({...t,...e}))};function v(r){let n=e||function(e){if(!e||"string"==typeof e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}(r);return{transition:`height ${n}ms ${t}, opacity ${n}ms ${t}`}}(0,f.C)(()=>{"function"==typeof y&&(n?y(()=>{c({willChange:"height",display:"block",overflow:"hidden"}),y(()=>{let e=d(o);c({...v(e),height:e})})}):y(()=>{let e=d(o);c({...v(e),willChange:"height",height:e}),y(()=>c({height:0,overflow:"hidden"}))}))},[n]);let m=e=>{if(e.target===o.current&&"height"===e.propertyName)if(n){let e=d(o);e===s.height?l({}):c({height:e}),r()}else 0===s.height&&(l(a),r())};return function({style:e={},refKey:t="ref",...r}={}){let a=r[t],u={"aria-hidden":!n,...r,[t]:(0,h.Px)(o,a),onTransitionEnd:m,style:{boxSizing:"border-box",...e,...s}};return i.version.startsWith("18")?n||(u.inert=""):u.inert=!n,u}}({opened:c,transitionDuration:j,transitionTimingFunction:g,onTransitionEnd:w});return 0===j?c?(0,n.jsx)(l.a,{...S,children:r}):null:(0,n.jsx)(l.a,{...C({style:{opacity:c||!_?1:0,transition:_?`opacity ${j}ms ${g}`:"none",...(0,u.X)(b,O)},ref:t,...S}),children:r})});m.displayName="@mantine/core/Collapse"},23079:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},23183:(e,t,r)=>{var n=r(25248),o=r(42209),i=r(91544),a=r(13920),s=r(48039),u=r(43092);e.exports=function(e,t,r){t=n(t,e);for(var l=-1,c=t.length,p=!1;++l{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},23356:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},24127:(e,t,r)=>{var n=r(25248),o=r(43092);e.exports=function(e,t){t=n(t,e);for(var r=0,i=t.length;null!=e&&r{e.exports=r(54703)(r(45516),"WeakMap")},24877:(e,t,r)=>{var n,o=r(62272),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},24964:(e,t,r)=>{var n=r(93248),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),u=Array(s);++a{e.exports=r(45516).Symbol},25248:(e,t,r)=>{var n=r(91544),o=r(25907),i=r(8947),a=r(60567);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},25701:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.formatQuerySettings=t.formatQueryParams=t.TupleParam=void 0,o(r(90327),t);var i=r(65086);Object.defineProperty(t,"TupleParam",{enumerable:!0,get:function(){return i.TupleParam}}),Object.defineProperty(t,"formatQueryParams",{enumerable:!0,get:function(){return i.formatQueryParams}});var a=r(57469);Object.defineProperty(t,"formatQuerySettings",{enumerable:!0,get:function(){return a.formatQuerySettings}})},25907:(e,t,r)=>{var n=r(91544),o=r(50515),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},26027:(e,t,r)=>{var n=r(81014),o=r(25248),i=r(13920),a=r(23356),s=r(43092);e.exports=function(e,t,r,u){if(!a(e))return e;t=o(t,e);for(var l=-1,c=t.length,p=c-1,f=e;null!=f&&++l{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n{var n=r(86347);e.exports=r(43862)(n)},28340:(e,t,r)=>{var n=r(33573),o=r(48039),i=r(3619),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},28506:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isStream=function(e){return null!=e&&"function"==typeof e.pipeThrough},t.getAsText=r;async function r(e){let t="",r=!1,n=new TextDecoder,o=e.getReader();for(;!r;){let{done:e,value:i}=await o.read(),a=n.decode(i,{stream:!0});if(a.length+t.length>0x1fffffe8)throw Error("The response length exceeds the maximum allowed size of V8 String: 536870888; consider limiting the amount of requested rows.");t+=a,r=e}return t+n.decode()}},28676:(e,t,r)=>{var n=r(50025);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},28915:(e,t,r)=>{e=r.nmd(e);var n=r(45516),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},29594:(e,t,r)=>{var n=r(84536);e.exports=r(15565)(function(e,t){return null==e?{}:n(e,t)})},29598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResultSet=void 0;let n=r(7117),o=r(83374);class i{constructor(e,t,r,n){Object.defineProperty(this,"_stream",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"format",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"query_id",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"response_headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isAlreadyConsumed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this.response_headers=void 0!==n?Object.freeze(n):{}}async text(){return this.markAsConsumed(),(0,o.getAsText)(this._stream)}async json(){if((0,n.isStreamableJSONFamily)(this.format)){let e=[],t=this.stream().getReader();for(;;){let{done:r,value:n}=await t.read();if(r)break;for(let t of n)e.push(t.json())}return e}if((0,n.isNotStreamableJSONFamily)(this.format))return JSON.parse(await (0,o.getAsText)(this._stream));throw Error(`Cannot decode ${this.format} as JSON`)}stream(){this.markAsConsumed(),(0,n.validateStreamFormat)(this.format);let e=[],t=0,r=new TextDecoder("utf-8"),o=new TransformStream({start(){},transform:(n,o)=>{let i;null===n&&o.terminate();let a=[],s=0;do if(-1===(i=n.indexOf(10,s))){let r=n.slice(s);e.push(r),t+=r.length,a.length>0&&o.enqueue(a)}else{let o;if(e.length>0){let a=new Uint8Array(t+i),s=0;e.forEach(e=>{a.set(e,s),s+=e.length});let u=n.slice(0,i);a.set(u,s),e=[],t=0,o=r.decode(a)}else o=r.decode(n.slice(s,i));a.push({text:o,json:()=>JSON.parse(o)}),s=i+1}while(-1!==i)}});return this._stream.pipeThrough(o,{preventClose:!1,preventAbort:!1,preventCancel:!1})}async close(){this.markAsConsumed(),await this._stream.cancel()}markAsConsumed(){if(this.isAlreadyConsumed)throw Error(a);this.isAlreadyConsumed=!0}}t.ResultSet=i;let a="Stream has been already consumed"},29778:(e,t,r)=>{var n=r(17085),o=r(42209),i=r(91544),a=r(9541),s=r(13920),u=r(43562),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),c=!r&&o(e),p=!r&&!c&&a(e),f=!r&&!c&&!p&&u(e),h=r||c||p||f,d=h?n(e.length,String):[],y=d.length;for(var v in e)(t||l.call(e,v))&&!(h&&("length"==v||p&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,y)))&&d.push(v);return d}},29794:(e,t,r)=>{var n=r(65517),o=r(91544);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},30110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebImpl=void 0;let n=r(13011),o=r(29598);t.WebImpl={make_connection:(e,t)=>new n.WebConnection({...t,fetch:e.fetch}),make_result_set:(e,t,r,n,i)=>new o.ResultSet(e,t,r,i),values_encoder:new(r(83374)).WebValuesEncoder}},30147:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r{e.exports=r(54703)(r(45516),"Set")},32744:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(82006),t)},33276:(e,t,r)=>{var n=r(95149),o=r(37175),i=r(11720),a=r(38684),s=r(35844);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(25080),o=r(13574),i=r(23079),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},33863:e=>{e.exports=function(e){return function(){return e}}},33946:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},35844:(e,t,r)=>{var n=r(86414);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=+(r.size!=o),this}},36538:(e,t,r)=>{var n=r(51642).Buffer,o=/`/g,i=/\./g,a=/[\0\b\t\n\r\x1a\"\'\\]/g,s={"\0":"\\0","\b":"\\b"," ":"\\t","\n":"\\n","\r":"\\r","\x1a":"\\Z",'"':'\\"',"'":"\\'","\\":"\\\\"};function u(e){for(var t,r=a.lastIndex=0,n="";t=a.exec(e);)n+=e.slice(r,t.index)+s[t[0]],r=a.lastIndex;return 0===r?"'"+e+"'":r2)){var p=2===c?t.escapeId(r[l]):t.escape(r[l],n,o);u+=e.slice(a,i.index)+p,a=s.lastIndex,l++}}return 0===a?e:a{var n=r(66581);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},36704:e=>{e.exports=function(e){return this.__data__.has(e)}},36975:(e,t,r)=>{var n=r(33573),o=r(3619);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},37175:(e,t,r)=>{var n=r(86414);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},37560:(e,t,r)=>{var n=r(83801),o=r(3540),i=r(73696),a=i&&i.isMap;e.exports=a?o(a):n},38684:(e,t,r)=>{var n=r(86414);e.exports=function(e){return n(this,e).has(e)}},40101:(e,t,r)=>{var n=r(25080),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},41016:(e,t,r)=>{var n=r(81707),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},41279:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","search","IconSearch",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]])},42209:(e,t,r)=>{var n=r(36975),o=r(3619),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")}},42953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareConfigWithURL=function(e,t,r){let n,s={...e};void 0!==s.additional_headers&&(t.warn({module:"Config",message:'"additional_headers" is deprecated. Use "http_headers" instead.'}),s.http_headers=s.additional_headers,delete s.additional_headers),void 0!==s.host?(t.warn({module:"Config",message:'"host" is deprecated. Use "url" instead.'}),n=i(s.host),delete s.host):n=i(s.url);let[u,l]=a(n,r),c=o(s,l,t);return void 0!==c.pathname&&(u.pathname=c.pathname),c.url=u,c},t.getConnectionParams=function(e,t){let r;if(void 0!==e.access_token){if(void 0!==e.username||void 0!==e.password)throw Error("Both access token and username/password are provided in the configuration. Please use only one authentication method.");r={access_token:e.access_token,type:"JWT"}}else r={username:e.username??"default",password:e.password??"",type:"Credentials"};return{auth:r,url:e.url,application_id:e.application,request_timeout:e.request_timeout??3e4,max_open_connections:e.max_open_connections??10,compression:{decompress_response:e.compression?.response??!1,compress_request:e.compression?.request??!1},database:e.database??"default",log_writer:new n.LogWriter(t,"Connection",e.log?.level),keep_alive:{enabled:e.keep_alive?.enabled??!0},clickhouse_settings:e.clickhouse_settings??{},http_headers:e.http_headers??{}}},t.mergeConfigs=o,t.createUrl=i,t.loadConfigOptionsFromURL=a,t.booleanConfigURLValue=s,t.numberConfigURLValue=u,t.enumConfigURLValue=l;let n=r(14303);function o(e,t,r){let n={...e};return!function e(t,n,o=[]){for(let i of Object.keys(n))if("object"==typeof n[i])e(t,n[i],o.concat(i));else{let e=t;for(let t of o)void 0===e[t]&&(e[t]={}),e=e[t];if(void 0!==e[i]){let e=o.concat(i).join(".");r.warn({module:"Config",message:`"${e}" is overridden by a URL parameter.`})}e[i]=n[i]}}(n,t),n}function i(e){let t;try{if(!("string"==typeof e||e instanceof URL))return new URL("http://localhost:8123");t=new URL(e)}catch(e){throw Error("ClickHouse URL is malformed. Expected format: http[s]://[username:password@]hostname:port[/database][?param1=value1¶m2=value2]",{cause:e})}if("http:"!==t.protocol&&"https:"!==t.protocol)throw Error(`ClickHouse URL protocol must be either http or https. Got: ${t.protocol}`);return t}function a(e,t){let r={};""!==e.username&&(r.username=decodeURIComponent(e.username)),""!==e.password&&(r.password=decodeURIComponent(e.password)),e.pathname.trim().length>1&&(r.database=e.pathname.slice(1));let o=[...e.searchParams.keys()];if(o.length>0){let i=new Set,a="clickhouse_setting_",c="http_header_";if(o.forEach(t=>{let o=!0,p=e.searchParams.get(t);if(t.startsWith(a)){let e=t.slice(a.length);void 0===r.clickhouse_settings&&(r.clickhouse_settings={}),r.clickhouse_settings[e]=p}else if(t.startsWith("ch_")){let e=t.slice(3);void 0===r.clickhouse_settings&&(r.clickhouse_settings={}),r.clickhouse_settings[e]=p}else if(t.startsWith(c)){let e=t.slice(c.length);void 0===r.http_headers&&(r.http_headers={}),r.http_headers[e]=p}else switch(t){case"application":r.application=p;break;case"pathname":r.pathname=p;break;case"session_id":r.session_id=p;break;case"request_timeout":r.request_timeout=u({key:t,value:p,min:0});break;case"max_open_connections":r.max_open_connections=u({key:t,value:p,min:1});break;case"compression_request":void 0===r.compression&&(r.compression={}),r.compression.request=s({key:t,value:p});break;case"compression_response":void 0===r.compression&&(r.compression={}),r.compression.response=s({key:t,value:p});break;case"log_level":void 0===r.log&&(r.log={}),r.log.level=l({key:t,value:p,enumObject:n.ClickHouseLogLevel});break;case"keep_alive_enabled":void 0===r.keep_alive&&(r.keep_alive={}),r.keep_alive.enabled=s({key:t,value:p});break;case"access_token":r.access_token=p;break;default:o=!1,i.add(t)}o&&e.searchParams.delete(t)}),null!==t){let n=t(r,e);r=n.config,i.size>0&&n.handled_params.forEach(e=>i.delete(e)),n.unknown_params.size>0&&n.unknown_params.forEach(e=>i.add(e))}if(i.size>0)throw Error(`Unknown URL parameters: ${Array.from(i).join(", ")}`)}return[new URL(`${e.protocol}//${e.host}`),r]}function s({key:e,value:t}){let r=t.trim();if("true"===r||"1"===r)return!0;if("false"===r||"0"===r)return!1;throw Error(`"${e}" has invalid boolean value: ${r}. Expected one of: 0, 1, true, false.`)}function u({key:e,value:t,min:r,max:n}){let o=t.trim(),i=Number(o);if(isNaN(i))throw Error(`"${e}" has invalid numeric value: ${o}`);if(void 0!==r&&in)throw Error(`"${e}" value ${o} is greater than max allowed ${n}`);return i}function l({key:e,value:t,enumObject:r}){let n=Object.keys(r).filter(e=>isNaN(Number(e))),o=t.trim();if(!n.includes(o)){let t=n.join(", ");throw Error(`"${e}" has invalid value: ${o}. Expected one of: ${t}.`)}return r[o]}},43085:(e,t,r)=>{"use strict";r.d(t,{E:()=>d});var n=r(6029);r(55729);var o=r(76),i=r(5618),a=r(66404),s=r(80616),u=r(37666),l=r(60481),c=r(63863),p={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};let f={},h=(0,i.V)((e,{radius:t,color:r,gradient:n,variant:i,size:s,autoContrast:u})=>{let l=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:i||"filled",autoContrast:u});return{root:{"--badge-height":(0,o.YC)(s,"badge-height"),"--badge-padding-x":(0,o.YC)(s,"badge-padding-x"),"--badge-fz":(0,o.YC)(s,"badge-fz"),"--badge-radius":void 0===t?void 0:(0,o.nJ)(t),"--badge-bg":r||i?l.background:void 0,"--badge-color":r||i?l.color:void 0,"--badge-bd":r||i?l.border:void 0,"--badge-dot-color":"dot"===i?(0,a.r)(r,e):void 0}}}),d=(0,c.v)((e,t)=>{let r=(0,s.Y)("Badge",f,e),{classNames:o,className:i,style:a,styles:c,unstyled:d,vars:y,radius:v,color:m,gradient:g,leftSection:b,rightSection:w,children:_,variant:S,fullWidth:O,autoContrast:x,circle:j,mod:C,...P}=r,A=(0,u.I)({name:"Badge",props:r,classes:p,className:i,style:a,classNames:o,styles:c,unstyled:d,vars:y,varsResolver:h});return(0,n.jsxs)(l.a,{variant:S,mod:[{block:O,circle:j,"with-right-section":!!w,"with-left-section":!!b},C],...A("root",{variant:S}),ref:t,...P,children:[b&&(0,n.jsx)("span",{...A("section"),"data-position":"left",children:b}),(0,n.jsx)("span",{...A("label"),children:_}),w&&(0,n.jsx)("span",{...A("section"),"data-position":"right",children:w})]})});d.classes=p,d.displayName="@mantine/core/Badge"},43092:(e,t,r)=>{var n=r(50515),o=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},43233:(e,t,r)=>{var n=r(24127),o=r(26027),i=r(25248);e.exports=function(e,t,r){for(var a=-1,s=t.length,u={};++a{"use strict";var t="";e.exports=function e(r){if(!r)return"";var n="";return null!=r.start&&(n+=(r.parenthesized?"(":"")+r.start+" "),r.field&&r.field!==t&&(n+=r.field+":"),r.left&&(r.parenthesized&&!r.start&&(n+="("),n+=e(r.left),r.parenthesized&&!r.right&&(n+=")")),r.operator&&(r.left&&(n+=" "),r.operator!==t&&(n+=r.operator)),r.right&&(r.operator&&r.operator!==t&&(n+=" "),n+=e(r.right),r.parenthesized&&(n+=")")),(r.term||""===r.term&&r.quoted)&&(r.prefix&&(n+=r.prefix),r.quoted?(n+='"',n+=r.term,n+='"'):r.regex?(n+="/",n+=r.term,n+="/"):n+=r.term,null!=r.proximity&&(n+="~"+r.proximity),null!=r.boost&&(n+="^"+r.boost)),r.term_min&&("both"===r.inclusive||"left"===r.inclusive?n+="[":n+="{",n+=r.term_min,n+=" TO ",n+=r.term_max,"both"===r.inclusive||"right"===r.inclusive?n+="]":n+="}"),r.similarity&&(n+="~",.5!==r.similarity&&(n+=r.similarity)),n}},43562:(e,t,r)=>{var n=r(28340),o=r(3540),i=r(73696),a=i&&i.isTypedArray;e.exports=a?o(a):n},43701:(e,t,r)=>{var n=r(23282),o=r(7131),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},43862:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},44555:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(70893),t),o(r(99496),t),o(r(75590),t)},45516:(e,t,r)=>{var n=r(97397),o="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||o||Function("return this")()},45749:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","clock","IconClock",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]])},46060:(e,t,r)=>{var n=r(52634),o=r(87567);e.exports=function(e,t){return e&&n(t,o(t),e)}},46448:(e,t,r)=>{var n=r(24127),o=r(88165);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},46468:e=>{e.exports=function(e){return this.__data__.get(e)}},47508:(e,t,r)=>{var n=r(81707);e.exports=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},48039:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},50025:(e,t,r)=>{e.exports=r(45516).Uint8Array},50515:(e,t,r)=>{var n=r(33573),o=r(3619);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},50874:(e,t,r)=>{e.exports=r(54703)(r(45516),"Map")},52182:(e,t,r)=>{var n=r(36592);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},52634:(e,t,r)=>{var n=r(81014),o=r(53325);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,u=t.length;++s{var n=r(64593),o=r(50874),i=r(9929),a=r(31736),s=r(24490),u=r(33573),l=r(99048),c="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",d="[object DataView]",y=l(n),v=l(o),m=l(i),g=l(a),b=l(s),w=u;(n&&w(new n(new ArrayBuffer(1)))!=d||o&&w(new o)!=c||i&&w(i.resolve())!=p||a&&w(new a)!=f||s&&w(new s)!=h)&&(w=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case y:return d;case v:return c;case m:return p;case g:return f;case b:return h}return t}),e.exports=w},53325:(e,t,r)=>{var n=r(1278);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},53576:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},54348:(e,t,r)=>{"use strict";var n=r(26387),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,s,u,l,c,p,f=!1;t||(t={}),a=t.debug||!1;try{if(u=n(),l=document.createRange(),c=document.getSelection(),(p=document.createElement("span")).textContent=e,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=o[t.format]||o.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(p),l.selectNodeContents(p),c.addRange(l),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(n){a&&console.error("unable to copy using execCommand: ",n),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){a&&console.error("unable to copy using clipboardData: ",n),a&&console.error("falling back to prompt"),r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",s=r.replace(/#{\s*key\s*}/g,i),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),p&&document.body.removeChild(p),u()}return f}},54703:(e,t,r)=>{var n=r(66046),o=r(72053);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},55235:(e,t,r)=>{"use strict";var n=r(88688),o=r(80145);t.parse=n.parse.bind(n),t.toString=r(43353),t.term={escape:o.escape,unescape:o.unescape},t.phrase={escape:o.escapePhrase,unescape:o.unescapePhrase}},55765:(e,t,r)=>{var n=r(33276);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},57469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatQuerySettings=function(e){if("boolean"==typeof e)return e?"1":"0";if("number"==typeof e)return String(e);if("string"==typeof e)return e;if(e instanceof n.SettingsMap)return e.toString();throw Error(`Unsupported value in query settings: [${e}].`)};let n=r(71354)},58120:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{var n=r(52634),o=r(63602);e.exports=function(e,t){return n(e,o(e),t)}},60567:(e,t,r)=>{var n=r(16153);e.exports=function(e){return null==e?"":n(e)}},62220:(e,t,r)=>{var n=r(81707),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},62272:(e,t,r)=>{e.exports=r(45516)["__core-js_shared__"]},63127:(e,t,r)=>{var n=r(29794),o=r(63602),i=r(70720);e.exports=function(e){return n(e,i,o)}},63602:(e,t,r)=>{var n=r(65517),o=r(10858),i=r(5461),a=r(63912);e.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a},63912:e=>{e.exports=function(){return[]}},64022:(e,t,r)=>{var n=r(33573),o=r(10858),i=r(3619),a=Object.prototype,s=Function.prototype.toString,u=a.hasOwnProperty,l=s.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==l}},64593:(e,t,r)=>{e.exports=r(54703)(r(45516),"DataView")},65086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleParam=void 0,t.formatQueryParams=n;class r{constructor(e){Object.defineProperty(this,"values",{enumerable:!0,configurable:!0,writable:!0,value:e})}}function n({value:e,wrapStringInQuotes:t,printNullAsKeyword:c}){if(null==e)return c?"NULL":"\\N";if(Number.isNaN(e))return"nan";if(e===1/0)return"+inf";if(e===-1/0)return"-inf";if("number"==typeof e)return String(e);if("boolean"==typeof e)return e?"1":"0";if("string"==typeof e){let r="";for(let t=0;tn({value:e,wrapStringInQuotes:!0,printNullAsKeyword:!0})).join(",")}]`;if(e instanceof Date){let t=Math.floor(e.getTime()/1e3).toString().padStart(10,"0"),r=e.getUTCMilliseconds();return 0===r?t:`${t}.${r.toString().padStart(3,"0")}`}if(e instanceof r)return`(${e.values.map(e=>n({value:e,wrapStringInQuotes:!0,printNullAsKeyword:!0})).join(",")})`;if(e instanceof Map)return o(e.entries());if("object"==typeof e)return o(Object.entries(e));throw Error(`Unsupported value in query parameters: [${e}].`)}function o(e){let t=[];for(let[r,o]of e)t.push(`${n({value:r,wrapStringInQuotes:!0,printNullAsKeyword:!0})}:${n({value:o,wrapStringInQuotes:!0,printNullAsKeyword:!0})}`);return`{${t.join(",")}}`}t.TupleParam=r;let i=9,a=10,s=13,u=39,l=92},65234:(e,t,r)=>{"use strict";var n=r(91293).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},65517:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r{var n=r(98499),o=r(24877),i=r(23356),a=r(99048),s=/^\[object .+?Constructor\]$/,u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,p=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?p:s).test(a(e))}},66581:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},69335:(e,t,r)=>{var n=r(53140),o=r(3619);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},69504:(e,t,r)=>{var n=r(28676);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},70720:(e,t,r)=>{var n=r(29778),o=r(18482),i=r(16799);e.exports=function(e){return i(e)?n(e,!0):o(e)}},70893:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withCompressionHeaders=function({headers:e,enable_request_compression:t,enable_response_compression:r}){return{...e,...r?{"Accept-Encoding":"gzip"}:{},...t?{"Content-Encoding":"gzip"}:{}}},t.withHttpSettings=function(e,t){return{...t?{enable_http_compression:1}:{},...e}},t.isSuccessfulResponse=function(e){return!!(e&&200<=e&&e<300)},t.isJWTAuth=function(e){return null!==e&&"object"==typeof e&&"access_token"in e},t.isCredentialsAuth=function(e){return null!==e&&"object"==typeof e&&"username"in e&&"password"in e}},71354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsMap=void 0;class r{constructor(e){Object.defineProperty(this,"record",{enumerable:!0,configurable:!0,writable:!0,value:e})}toString(){return`{${Object.entries(this.record).map(([e,t])=>`'${e}':'${t}'`).join(",")}}`}static from(e){return new this(e)}}t.SettingsMap=r},71388:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},72053:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},73696:(e,t,r)=>{e=r.nmd(e);var n=r(97397),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},75590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformUrl=function({url:e,pathname:t,searchParams:r}){let n=new URL(e);return t&&("/"===n.pathname?n.pathname=t:n.pathname+=t),r&&(n.search=r?.toString()),n},t.toSearchParams=function({database:e,query:t,query_params:r,clickhouse_settings:o,session_id:i,query_id:a,role:s}){let u=[["query_id",a]];if(void 0!==r)for(let[e,t]of Object.entries(r)){let r=(0,n.formatQueryParams)({value:t});u.push([`param_${e}`,r])}if(void 0!==o)for(let[e,t]of Object.entries(o))void 0!==t&&u.push([e,(0,n.formatQuerySettings)(t)]);if(void 0!==e&&"default"!==e&&u.push(["database",e]),t&&u.push(["query",t]),i&&u.push(["session_id",i]),s){if("string"==typeof s)u.push(["role",s]);else if(Array.isArray(s))for(let e of s)u.push(["role",e])}return new URLSearchParams(u)};let n=r(25701)},75828:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t{var n=r(88601),o=r(22346),i=r(87710),a=r(25248),s=r(52634),u=r(16875),l=r(15565),c=r(63127);e.exports=l(function(e,t){var r={};if(null==e)return r;var l=!1;t=n(t,function(t){return t=a(t,e),l||(l=t.length>1),t}),s(e,c(e),r),l&&(r=o(r,7,u));for(var p=t.length;p--;)i(r,t[p]);return r})},80145:(e,t)=>{function r(e){return"\\"+e}function n(e,t){return t}t.escape=function(e){return e.replace(/[\+\-\!\(\)\{\}\[\]\^\"\?\:\\\&\|\'\/\s\*\~]/g,r)},t.unescape=function(e){return e.replace(/\\([\+\-\!\(\)\{\}\[\]\^\"\?\:\\\&\|\'\/\s\*\~])/g,n)},t.escapePhrase=function(e){return e.replace(/"/g,r)},t.unescapePhrase=function(e){return e.replace(/\\(")/g,n)}},80244:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},80519:(e,t,r)=>{e.exports=r(36538)},81014:(e,t,r)=>{var n=r(53325),o=r(66581),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},81597:(e,t,r)=>{var n=r(55765);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},81707:(e,t,r)=>{e.exports=r(54703)(Object,"create")},82006:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClickHouseError=void 0,t.parseError=function(e){let t=e instanceof Error,o=(t?e.message:e).match(r),i=o?.groups;return i?new n(i):t?e:Error(e)},t.getCurrentStackTrace=function(){let e=Error().stack;return e?e.split("\n").slice(3).reverse().join("\n"):""},t.enhanceStackTrace=function(e,t){if(e.stack&&t){let r=e.stack.indexOf("\n"),n=e.stack.substring(0,r),o=e.stack.substring(r+1);e.stack=`${n} +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6747],{291:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},620:(e,t,r)=>{var n=r(11229),o=r(16999),i=r(41016),a=r(62220),s=r(47508);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(54703);e.exports=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},1775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleColumnTypes=t.ColumnTypeParseError=void 0,t.parseColumnType=n,t.parseDecimalType=o,t.parseEnumType=i,t.parseMapType=a,t.parseTupleType=s,t.parseArrayType=u,t.parseDateTimeType=l,t.parseDateTime64Type=c,t.parseFixedStringType=p,t.asNullableType=f,t.getElementsTypes=h;class r extends Error{constructor(e,t){super(e),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.args=t??{},Object.setPrototypeOf(this,r.prototype)}}function n(e){let n,h=e,x=!1;if(h.startsWith(y)&&(h=h.slice(y.length,-1)),h.startsWith(d)&&(h=h.slice(d.length,-1),x=!0),t.SimpleColumnTypes.includes(h))n={type:"Simple",columnType:h,sourceType:e};else if(h.startsWith(v))n=o({sourceType:e,columnType:h});else if(h.startsWith(O))n=c({sourceType:e,columnType:h});else if(h.startsWith(S))n=l({sourceType:e,columnType:h});else if(h.startsWith(j))n=p({sourceType:e,columnType:h});else if(h.startsWith(b)||h.startsWith(w))n=i({sourceType:e,columnType:h});else if(h.startsWith(m))n=u({sourceType:e,columnType:h});else if(h.startsWith(g))n=a({sourceType:e,columnType:h});else if(h.startsWith(_))n=s({sourceType:e,columnType:h});else throw new r("Unsupported column type",{columnType:h});return x?f(n,e):n}function o({columnType:e,sourceType:t}){if(!e.startsWith(v)||e.length76)throw new r("Invalid Decimal precision",{columnType:e,sourceType:t,precision:i});let a=parseInt(n[1],10);if(Number.isNaN(a)||a<0||a>i)throw new r("Invalid Decimal scale",{columnType:e,sourceType:t,precision:i,scale:a});return i>38?o=256:i>18?o=128:i>9&&(o=64),{type:"Decimal",params:{precision:i,scale:a,intSize:o},sourceType:t}}function i({columnType:e,sourceType:t}){let n;if(e.startsWith(b))e=e.slice(b.length,-1),n=8;else if(e.startsWith(w))e=e.slice(w.length,-1),n=16;else throw new r("Expected Enum to be either Enum8 or Enum16",{columnType:e,sourceType:t});if(e.length<6)throw new r("Invalid Enum type values",{columnType:e,sourceType:t});let o=[],i=[],a=!0,s=!1,u=1;for(let n=1;nN)&&(c(u,n),n+=2,u=n+1,a=!0,s=!1);if(c(u,e.length),o.length!==i.length)throw new r("Expected Enum to have the same number of names and indices",{columnType:e,sourceType:t,names:o,indices:i});let l={};for(let e=0;en(e)),sourceType:t}}function u({columnType:e,sourceType:t}){if(!e.startsWith(m)||e.length0;)if(e.startsWith(m))e=e.slice(m.length,-1),o++;else break;if(0===o||o>10)throw new r("Expected Array to have between 1 and 10 dimensions",{columnType:e});let i=n(e);if("Array"===i.type)throw new r("Unexpected Array as value type",{columnType:e,sourceType:t});return{type:"Array",value:i,dimensions:o,sourceType:t}}function l({columnType:e,sourceType:t}){if(e.startsWith(x)&&e.length>x.length+4)return{type:"DateTime",timezone:e.slice(x.length+1,-2),sourceType:t};if(e.startsWith(S)&&e.length===S.length)return{type:"DateTime",timezone:null,sourceType:t};throw new r("Invalid DateTime type",{columnType:e,sourceType:t})}function c({columnType:e,sourceType:t}){if(!e.startsWith(O)||e.length9)throw new r("Invalid DateTime64 precision",{columnType:e,sourceType:t,precision:n});let o=null;return e.length>O.length+2&&(o=e.slice(O.length+4,-2)),{type:"DateTime64",timezone:o,precision:n,sourceType:t}}function p({columnType:e,sourceType:t}){if(!e.startsWith(j)||e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClickHouseClient=void 0;let n=r(7117),o=r(42953);class i{constructor(e){Object.defineProperty(this,"clientClickHouseSettings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"connectionParams",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"connection",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"makeResultSet",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"valuesEncoder",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sessionId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"role",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"logWriter",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const t=e?.log?.LoggerClass?new e.log.LoggerClass:new n.DefaultLogger,r=(0,o.prepareConfigWithURL)(e,t,e.impl.handle_specific_url_params??null);this.connectionParams=(0,o.getConnectionParams)(r,t),this.logWriter=this.connectionParams.log_writer,this.clientClickHouseSettings=this.connectionParams.clickhouse_settings,this.sessionId=e.session_id,this.role=e.role,this.connection=e.impl.make_connection(r,this.connectionParams),this.makeResultSet=e.impl.make_result_set,this.valuesEncoder=e.impl.values_encoder}async query(e){var t,r;let n=e.format??"JSON",o=(t=e.query,r=n,(t=a(t=t.trim()))+" \nFORMAT "+r),i=this.withClientQueryParams(e),{stream:s,query_id:u,response_headers:l}=await this.connection.query({query:o,...i});return this.makeResultSet(s,n,u,e=>{this.logWriter.error({err:e,module:"Client",message:"Error while processing the ResultSet.",args:{session_id:i.session_id,role:i.role,query:o,query_id:u}})},l)}async command(e){let t=a(e.query.trim());return await this.connection.command({query:t,...this.withClientQueryParams(e)})}async exec(e){let t=a(e.query.trim()),r="values"in e?e.values:void 0,n=e.decompress_response_stream??!0;return await this.connection.exec({query:t,values:r,decompress_response_stream:n,...this.withClientQueryParams(e)})}async insert(e){if(Array.isArray(e.values)&&0===e.values.length)return{executed:!1,query_id:"",response_headers:{}};let t=e.format||"JSONCompactEachRow";this.valuesEncoder.validateInsertValues(e.values,t);let r=function(e,t){let r="";if(void 0!==e.columns)if(Array.isArray(e.columns)&&e.columns.length>0)r=` (${e.columns.join(", ")})`;else{var n;null!=(n=e.columns)&&"object"==typeof n&&Object.prototype.hasOwnProperty.call(n,"except")&&e.columns.except.length>0&&(r=` (* EXCEPT (${e.columns.except.join(", ")}))`)}return`INSERT INTO ${e.table.trim()}${r} FORMAT ${t}`}(e,t);return{...await this.connection.insert({query:r,values:this.valuesEncoder.encodeValues(e.values,t),...this.withClientQueryParams(e)}),executed:!0}}async ping(e){return await this.connection.ping(e??{select:!1})}async close(){return await this.connection.close()}withClientQueryParams(e){return{clickhouse_settings:{...this.clientClickHouseSettings,...e.clickhouse_settings},query_params:e.query_params,abort_signal:e.abort_signal,query_id:e.query_id,session_id:e.session_id??this.sessionId,role:e.role??this.role,auth:e.auth,http_headers:e.http_headers}}}function a(e){let t=e.length;for(let r=t;r>0;r--)if(";"!==e[r-1]){t=r;break}return t!==e.length?e.slice(0,t):e}t.ClickHouseClient=i},3128:(e,t,r)=>{var n=r(4650),o=r(95345),i=r(291),a=r(46468),s=r(36704),u=r(22344);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},3540:e=>{e.exports=function(e){return function(t){return e(t)}}},3619:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4650:(e,t,r)=>{var n=r(21895),o=r(15917),i=r(52182),a=r(5514),s=r(92786);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleParam=t.isException=t.isRow=t.isProgressRow=t.SimpleColumnTypes=t.parseColumnType=t.SettingsMap=t.ClickHouseLogLevel=t.parseError=t.ClickHouseError=t.ResultSet=t.createClient=void 0;var n=r(98491);Object.defineProperty(t,"createClient",{enumerable:!0,get:function(){return n.createClient}});var o=r(29598);Object.defineProperty(t,"ResultSet",{enumerable:!0,get:function(){return o.ResultSet}});var i=r(7117);Object.defineProperty(t,"ClickHouseError",{enumerable:!0,get:function(){return i.ClickHouseError}}),Object.defineProperty(t,"parseError",{enumerable:!0,get:function(){return i.parseError}}),Object.defineProperty(t,"ClickHouseLogLevel",{enumerable:!0,get:function(){return i.ClickHouseLogLevel}}),Object.defineProperty(t,"SettingsMap",{enumerable:!0,get:function(){return i.SettingsMap}}),Object.defineProperty(t,"parseColumnType",{enumerable:!0,get:function(){return i.parseColumnType}}),Object.defineProperty(t,"SimpleColumnTypes",{enumerable:!0,get:function(){return i.SimpleColumnTypes}}),Object.defineProperty(t,"isProgressRow",{enumerable:!0,get:function(){return i.isProgressRow}}),Object.defineProperty(t,"isRow",{enumerable:!0,get:function(){return i.isRow}}),Object.defineProperty(t,"isException",{enumerable:!0,get:function(){return i.isException}}),Object.defineProperty(t,"TupleParam",{enumerable:!0,get:function(){return i.TupleParam}})},5461:(e,t,r)=>{var n=r(30147),o=r(63912),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;e.exports=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return i.call(e,t)})}:o},5514:(e,t,r)=>{var n=r(36592);e.exports=function(e){return n(this.__data__,e)>-1}},5549:e=>{e.exports=function(e){return e}},7018:e=>{e.exports=function(){return!1}},7117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enhanceStackTrace=t.getCurrentStackTrace=t.DefaultLogger=t.LogWriter=t.isJWTAuth=t.isCredentialsAuth=t.withHttpSettings=t.withCompressionHeaders=t.transformUrl=t.toSearchParams=t.sleep=t.isSuccessfulResponse=t.numberConfigURLValue=t.getConnectionParams=t.enumConfigURLValue=t.booleanConfigURLValue=t.validateStreamFormat=t.isNotStreamableJSONFamily=t.isStreamableJSONFamily=t.isSupportedRawFormat=t.encodeJSON=t.formatQueryParams=t.formatQuerySettings=t.parseColumnType=t.SimpleColumnTypes=t.SettingsMap=t.isException=t.isRow=t.isProgressRow=t.ClickHouseLogLevel=t.parseError=t.ClickHouseError=t.TupleParam=t.ClickHouseClient=void 0;var n=r(3040);Object.defineProperty(t,"ClickHouseClient",{enumerable:!0,get:function(){return n.ClickHouseClient}});var o=r(25701);Object.defineProperty(t,"TupleParam",{enumerable:!0,get:function(){return o.TupleParam}});var i=r(32744);Object.defineProperty(t,"ClickHouseError",{enumerable:!0,get:function(){return i.ClickHouseError}}),Object.defineProperty(t,"parseError",{enumerable:!0,get:function(){return i.parseError}});var a=r(14303);Object.defineProperty(t,"ClickHouseLogLevel",{enumerable:!0,get:function(){return a.ClickHouseLogLevel}});var s=r(99469);Object.defineProperty(t,"isProgressRow",{enumerable:!0,get:function(){return s.isProgressRow}}),Object.defineProperty(t,"isRow",{enumerable:!0,get:function(){return s.isRow}}),Object.defineProperty(t,"isException",{enumerable:!0,get:function(){return s.isException}});var u=r(71354);Object.defineProperty(t,"SettingsMap",{enumerable:!0,get:function(){return u.SettingsMap}});var l=r(14529);Object.defineProperty(t,"SimpleColumnTypes",{enumerable:!0,get:function(){return l.SimpleColumnTypes}}),Object.defineProperty(t,"parseColumnType",{enumerable:!0,get:function(){return l.parseColumnType}});var c=r(25701);Object.defineProperty(t,"formatQuerySettings",{enumerable:!0,get:function(){return c.formatQuerySettings}}),Object.defineProperty(t,"formatQueryParams",{enumerable:!0,get:function(){return c.formatQueryParams}}),Object.defineProperty(t,"encodeJSON",{enumerable:!0,get:function(){return c.encodeJSON}}),Object.defineProperty(t,"isSupportedRawFormat",{enumerable:!0,get:function(){return c.isSupportedRawFormat}}),Object.defineProperty(t,"isStreamableJSONFamily",{enumerable:!0,get:function(){return c.isStreamableJSONFamily}}),Object.defineProperty(t,"isNotStreamableJSONFamily",{enumerable:!0,get:function(){return c.isNotStreamableJSONFamily}}),Object.defineProperty(t,"validateStreamFormat",{enumerable:!0,get:function(){return c.validateStreamFormat}});var p=r(42953);Object.defineProperty(t,"booleanConfigURLValue",{enumerable:!0,get:function(){return p.booleanConfigURLValue}}),Object.defineProperty(t,"enumConfigURLValue",{enumerable:!0,get:function(){return p.enumConfigURLValue}}),Object.defineProperty(t,"getConnectionParams",{enumerable:!0,get:function(){return p.getConnectionParams}}),Object.defineProperty(t,"numberConfigURLValue",{enumerable:!0,get:function(){return p.numberConfigURLValue}});var f=r(44555);Object.defineProperty(t,"isSuccessfulResponse",{enumerable:!0,get:function(){return f.isSuccessfulResponse}}),Object.defineProperty(t,"sleep",{enumerable:!0,get:function(){return f.sleep}}),Object.defineProperty(t,"toSearchParams",{enumerable:!0,get:function(){return f.toSearchParams}}),Object.defineProperty(t,"transformUrl",{enumerable:!0,get:function(){return f.transformUrl}}),Object.defineProperty(t,"withCompressionHeaders",{enumerable:!0,get:function(){return f.withCompressionHeaders}}),Object.defineProperty(t,"withHttpSettings",{enumerable:!0,get:function(){return f.withHttpSettings}}),Object.defineProperty(t,"isCredentialsAuth",{enumerable:!0,get:function(){return f.isCredentialsAuth}}),Object.defineProperty(t,"isJWTAuth",{enumerable:!0,get:function(){return f.isJWTAuth}});var h=r(14303);Object.defineProperty(t,"LogWriter",{enumerable:!0,get:function(){return h.LogWriter}}),Object.defineProperty(t,"DefaultLogger",{enumerable:!0,get:function(){return h.DefaultLogger}});var d=r(32744);Object.defineProperty(t,"getCurrentStackTrace",{enumerable:!0,get:function(){return d.getCurrentStackTrace}}),Object.defineProperty(t,"enhanceStackTrace",{enumerable:!0,get:function(){return d.enhanceStackTrace}})},7131:(e,t,r)=>{e.exports=r(33946)(Object.keys,Object)},8546:(e,t,r)=>{var n=r(92812),o=r(23183);e.exports=function(e,t){return null!=e&&o(e,t,n)}},8947:(e,t,r)=>{var n=r(81597),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;e.exports=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)}),t})},9541:(e,t,r)=>{e=r.nmd(e);var n=r(45516),o=r(7018),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,u=s?s.isBuffer:void 0;e.exports=u||o},9841:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","chart-line","IconChartLine",[["path",{d:"M4 19l16 0",key:"svg-0"}],["path",{d:"M4 15l4 -6l4 2l4 -5l4 4",key:"svg-1"}]])},9929:(e,t,r)=>{e.exports=r(54703)(r(45516),"Promise")},10858:(e,t,r)=>{e.exports=r(33946)(Object.getPrototypeOf,Object)},11229:(e,t,r)=>{var n=r(81707);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},11720:(e,t,r)=>{var n=r(86414);e.exports=function(e){return n(this,e).get(e)}},12342:(e,t,r)=>{var n=r(25080),o=r(42209),i=r(91544),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},13011:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(92190),t)},13574:(e,t,r)=>{var n=r(25080),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},13920:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.ClickHouseLogLevel=t.LogWriter=t.DefaultLogger=void 0;class o{trace({module:e,message:t,args:r}){let n=[a({module:e,message:t,level:"TRACE"})];r&&n.push("\nArguments:",r),console.debug(...n)}debug({module:e,message:t,args:r}){let n=[a({module:e,message:t,level:"DEBUG"})];r&&n.push("\nArguments:",r),console.debug(...n)}info({module:e,message:t,args:r}){let n=[a({module:e,message:t,level:"INFO"})];r&&n.push("\nArguments:",r),console.info(...n)}warn({module:e,message:t,args:r,err:n}){let o=[a({module:e,message:t,level:"WARN"})];r&&o.push("\nArguments:",r),n&&o.push("\nCaused by:",n),console.warn(...o)}error({module:e,message:t,args:r,err:n}){let o=[a({module:e,message:t,level:"ERROR"})];r&&o.push("\nArguments:",r),o.push("\nCaused by:",n),console.error(...o)}}t.DefaultLogger=o;class i{constructor(e,t,n){Object.defineProperty(this,"logger",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"module",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"logLevel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.logLevel=n??r.OFF,this.info({message:`Log level is set to ${r[this.logLevel]}`})}trace(e){this.logLevel<=r.TRACE&&this.logger.trace({...e,module:e.module??this.module})}debug(e){this.logLevel<=r.DEBUG&&this.logger.debug({...e,module:e.module??this.module})}info(e){this.logLevel<=r.INFO&&this.logger.info({...e,module:e.module??this.module})}warn(e){this.logLevel<=r.WARN&&this.logger.warn({...e,module:e.module??this.module})}error(e){this.logLevel<=r.ERROR&&this.logger.error({...e,module:e.module??this.module})}}function a({level:e,module:t,message:r}){let n=new Date().toISOString();return`[${n}][${e}][@clickhouse/client][${t}] ${r}`}t.LogWriter=i,(n=r||(t.ClickHouseLogLevel=r={}))[n.TRACE=0]="TRACE",n[n.DEBUG=1]="DEBUG",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.OFF=127]="OFF"},14529:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(1775),t)},15051:(e,t,r)=>{var n=r(29794),o=r(5461),i=r(87567);e.exports=function(e){return n(e,i,o)}},15565:(e,t,r)=>{var n=r(19515),o=r(24964),i=r(27288);e.exports=function(e){return i(o(e,void 0,n),e+"")}},15917:(e,t,r)=>{var n=r(36592),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},16005:(e,t,r)=>{var n=r(69335),o=r(3540),i=r(73696),a=i&&i.isSet;e.exports=a?o(a):n},16153:(e,t,r)=>{var n=r(25080),o=r(88601),i=r(91544),a=r(50515),s=1/0,u=n?n.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}},16419:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},16799:(e,t,r)=>{var n=r(98499),o=r(48039);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},16875:(e,t,r)=>{var n=r(64022);e.exports=function(e){return n(e)?void 0:e}},16999:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},17085:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{var n=r(28676),o=r(85008),i=r(53576),a=r(40101),s=r(69504);e.exports=function(e,t,r){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},18482:(e,t,r)=>{var n=r(23356),o=r(23282),i=r(80244),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)"constructor"==s&&(t||!a.call(e,s))||r.push(s);return r}},19515:(e,t,r)=>{var n=r(83965);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},21895:e=>{e.exports=function(){this.__data__=[],this.size=0}},22344:(e,t,r)=>{var n=r(4650),o=r(50874),i=r(33276);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},22346:(e,t,r)=>{var n=r(3128),o=r(58120),i=r(81014),a=r(46060),s=r(88447),u=r(28915),l=r(97722),c=r(87274),p=r(58489),f=r(15051),h=r(63127),d=r(53140),y=r(71388),v=r(17706),m=r(87568),g=r(91544),b=r(9541),w=r(37560),_=r(23356),S=r(16005),x=r(87567),O=r(70720),j="[object Arguments]",C="[object Function]",P="[object Object]",A={};A[j]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[P]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[C]=A["[object WeakMap]"]=!1,e.exports=function e(t,r,E,k,N,T){var R,I=1&r,M=2&r,q=4&r;if(E&&(R=N?E(t,k,N,T):E(t)),void 0!==R)return R;if(!_(t))return t;var L=g(t);if(L){if(R=y(t),!I)return l(t,R)}else{var D=d(t),U=D==C||"[object GeneratorFunction]"==D;if(b(t))return u(t,I);if(D==P||D==j||U&&!N){if(R=M||U?{}:m(t),!I)return M?p(t,s(R,t)):c(t,a(R,t))}else{if(!A[D])return N?t:{};R=v(t,D,I)}}T||(T=new n);var F=T.get(t);if(F)return F;T.set(t,R),S(t)?t.forEach(function(n){R.add(e(n,r,E,n,t,T))}):w(t)&&t.forEach(function(n,o){R.set(o,e(n,r,E,o,t,T))});var J=q?M?h:f:M?O:x,$=L?void 0:J(t);return o($||t,function(n,o){$&&(n=t[o=n]),i(R,o,e(n,r,E,o,t,T))}),R}},22599:(e,t,r)=>{"use strict";r.d(t,{S:()=>m});var n=r(6029),o=r(45089),i=r(55729),a=r(15862),s=r(80616),u=r(36504),l=r(60481),c=r(43016),p=r(56760),f=r(3465),h=r(56655);function d(e){return e?.current?e.current.scrollHeight:"auto"}let y="u">typeof window&&window.requestAnimationFrame,v={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},m=(0,c.P9)((e,t)=>{let{children:r,in:c,transitionDuration:m,transitionTimingFunction:g,style:b,onTransitionEnd:w,animateOpacity:_,...S}=(0,s.Y)("Collapse",v,e),x=(0,a.xd)(),O=(0,o.I)(),j=x.respectReducedMotion&&O?0:m,C=function({transitionDuration:e,transitionTimingFunction:t="ease",onTransitionEnd:r=()=>{},opened:n}){let o=(0,i.useRef)(null),a={height:0,overflow:"hidden"},[s,u]=(0,i.useState)(n?{}:a),l=e=>{(0,p.flushSync)(()=>u(e))},c=e=>{l(t=>({...t,...e}))};function v(r){let n=e||function(e){if(!e||"string"==typeof e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}(r);return{transition:`height ${n}ms ${t}, opacity ${n}ms ${t}`}}(0,f.C)(()=>{"function"==typeof y&&(n?y(()=>{c({willChange:"height",display:"block",overflow:"hidden"}),y(()=>{let e=d(o);c({...v(e),height:e})})}):y(()=>{let e=d(o);c({...v(e),willChange:"height",height:e}),y(()=>c({height:0,overflow:"hidden"}))}))},[n]);let m=e=>{if(e.target===o.current&&"height"===e.propertyName)if(n){let e=d(o);e===s.height?l({}):c({height:e}),r()}else 0===s.height&&(l(a),r())};return function({style:e={},refKey:t="ref",...r}={}){let a=r[t],u={"aria-hidden":!n,...r,[t]:(0,h.Px)(o,a),onTransitionEnd:m,style:{boxSizing:"border-box",...e,...s}};return i.version.startsWith("18")?n||(u.inert=""):u.inert=!n,u}}({opened:c,transitionDuration:j,transitionTimingFunction:g,onTransitionEnd:w});return 0===j?c?(0,n.jsx)(l.a,{...S,children:r}):null:(0,n.jsx)(l.a,{...C({style:{opacity:c||!_?1:0,transition:_?`opacity ${j}ms ${g}`:"none",...(0,u.X)(b,x)},ref:t,...S}),children:r})});m.displayName="@mantine/core/Collapse"},23079:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},23183:(e,t,r)=>{var n=r(25248),o=r(42209),i=r(91544),a=r(13920),s=r(48039),u=r(43092);e.exports=function(e,t,r){t=n(t,e);for(var l=-1,c=t.length,p=!1;++l{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},23356:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},24127:(e,t,r)=>{var n=r(25248),o=r(43092);e.exports=function(e,t){t=n(t,e);for(var r=0,i=t.length;null!=e&&r{e.exports=r(54703)(r(45516),"WeakMap")},24877:(e,t,r)=>{var n,o=r(62272),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},24964:(e,t,r)=>{var n=r(93248),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),u=Array(s);++a{e.exports=r(45516).Symbol},25248:(e,t,r)=>{var n=r(91544),o=r(25907),i=r(8947),a=r(60567);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},25701:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.formatQuerySettings=t.formatQueryParams=t.TupleParam=void 0,o(r(90327),t);var i=r(65086);Object.defineProperty(t,"TupleParam",{enumerable:!0,get:function(){return i.TupleParam}}),Object.defineProperty(t,"formatQueryParams",{enumerable:!0,get:function(){return i.formatQueryParams}});var a=r(57469);Object.defineProperty(t,"formatQuerySettings",{enumerable:!0,get:function(){return a.formatQuerySettings}})},25907:(e,t,r)=>{var n=r(91544),o=r(50515),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},26027:(e,t,r)=>{var n=r(81014),o=r(25248),i=r(13920),a=r(23356),s=r(43092);e.exports=function(e,t,r,u){if(!a(e))return e;t=o(t,e);for(var l=-1,c=t.length,p=c-1,f=e;null!=f&&++l{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n{var n=r(86347);e.exports=r(43862)(n)},28340:(e,t,r)=>{var n=r(33573),o=r(48039),i=r(3619),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},28506:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isStream=function(e){return null!=e&&"function"==typeof e.pipeThrough},t.getAsText=r;async function r(e){let t="",r=!1,n=new TextDecoder,o=e.getReader();for(;!r;){let{done:e,value:i}=await o.read(),a=n.decode(i,{stream:!0});if(a.length+t.length>0x1fffffe8)throw Error("The response length exceeds the maximum allowed size of V8 String: 536870888; consider limiting the amount of requested rows.");t+=a,r=e}return t+n.decode()}},28676:(e,t,r)=>{var n=r(50025);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},28915:(e,t,r)=>{e=r.nmd(e);var n=r(45516),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},29594:(e,t,r)=>{var n=r(84536);e.exports=r(15565)(function(e,t){return null==e?{}:n(e,t)})},29598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResultSet=void 0;let n=r(7117),o=r(83374);class i{constructor(e,t,r,n){Object.defineProperty(this,"_stream",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"format",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"query_id",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"response_headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isAlreadyConsumed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this.response_headers=void 0!==n?Object.freeze(n):{}}async text(){return this.markAsConsumed(),(0,o.getAsText)(this._stream)}async json(){if((0,n.isStreamableJSONFamily)(this.format)){let e=[],t=this.stream().getReader();for(;;){let{done:r,value:n}=await t.read();if(r)break;for(let t of n)e.push(t.json())}return e}if((0,n.isNotStreamableJSONFamily)(this.format))return JSON.parse(await (0,o.getAsText)(this._stream));throw Error(`Cannot decode ${this.format} as JSON`)}stream(){this.markAsConsumed(),(0,n.validateStreamFormat)(this.format);let e=[],t=0,r=new TextDecoder("utf-8"),o=new TransformStream({start(){},transform:(n,o)=>{let i;null===n&&o.terminate();let a=[],s=0;do if(-1===(i=n.indexOf(10,s))){let r=n.slice(s);e.push(r),t+=r.length,a.length>0&&o.enqueue(a)}else{let o;if(e.length>0){let a=new Uint8Array(t+i),s=0;e.forEach(e=>{a.set(e,s),s+=e.length});let u=n.slice(0,i);a.set(u,s),e=[],t=0,o=r.decode(a)}else o=r.decode(n.slice(s,i));a.push({text:o,json:()=>JSON.parse(o)}),s=i+1}while(-1!==i)}});return this._stream.pipeThrough(o,{preventClose:!1,preventAbort:!1,preventCancel:!1})}async close(){this.markAsConsumed(),await this._stream.cancel()}markAsConsumed(){if(this.isAlreadyConsumed)throw Error(a);this.isAlreadyConsumed=!0}}t.ResultSet=i;let a="Stream has been already consumed"},29778:(e,t,r)=>{var n=r(17085),o=r(42209),i=r(91544),a=r(9541),s=r(13920),u=r(43562),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),c=!r&&o(e),p=!r&&!c&&a(e),f=!r&&!c&&!p&&u(e),h=r||c||p||f,d=h?n(e.length,String):[],y=d.length;for(var v in e)(t||l.call(e,v))&&!(h&&("length"==v||p&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,y)))&&d.push(v);return d}},29794:(e,t,r)=>{var n=r(65517),o=r(91544);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},30110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebImpl=void 0;let n=r(13011),o=r(29598);t.WebImpl={make_connection:(e,t)=>new n.WebConnection({...t,fetch:e.fetch}),make_result_set:(e,t,r,n,i)=>new o.ResultSet(e,t,r,i),values_encoder:new(r(83374)).WebValuesEncoder}},30147:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r{e.exports=r(54703)(r(45516),"Set")},32744:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(82006),t)},33276:(e,t,r)=>{var n=r(95149),o=r(37175),i=r(11720),a=r(38684),s=r(35844);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(25080),o=r(13574),i=r(23079),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},33863:e=>{e.exports=function(e){return function(){return e}}},33946:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},35844:(e,t,r)=>{var n=r(86414);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=+(r.size!=o),this}},36538:(e,t,r)=>{var n=r(51642).Buffer,o=/`/g,i=/\./g,a=/[\0\b\t\n\r\x1a\"\'\\]/g,s={"\0":"\\0","\b":"\\b"," ":"\\t","\n":"\\n","\r":"\\r","\x1a":"\\Z",'"':'\\"',"'":"\\'","\\":"\\\\"};function u(e){for(var t,r=a.lastIndex=0,n="";t=a.exec(e);)n+=e.slice(r,t.index)+s[t[0]],r=a.lastIndex;return 0===r?"'"+e+"'":r2)){var p=2===c?t.escapeId(r[l]):t.escape(r[l],n,o);u+=e.slice(a,i.index)+p,a=s.lastIndex,l++}}return 0===a?e:a{var n=r(66581);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},36704:e=>{e.exports=function(e){return this.__data__.has(e)}},36975:(e,t,r)=>{var n=r(33573),o=r(3619);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},37175:(e,t,r)=>{var n=r(86414);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},37560:(e,t,r)=>{var n=r(83801),o=r(3540),i=r(73696),a=i&&i.isMap;e.exports=a?o(a):n},38684:(e,t,r)=>{var n=r(86414);e.exports=function(e){return n(this,e).has(e)}},40101:(e,t,r)=>{var n=r(25080),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},41016:(e,t,r)=>{var n=r(81707),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},41279:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","search","IconSearch",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]])},42209:(e,t,r)=>{var n=r(36975),o=r(3619),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")}},42953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareConfigWithURL=function(e,t,r){let n,s={...e};void 0!==s.additional_headers&&(t.warn({module:"Config",message:'"additional_headers" is deprecated. Use "http_headers" instead.'}),s.http_headers=s.additional_headers,delete s.additional_headers),void 0!==s.host?(t.warn({module:"Config",message:'"host" is deprecated. Use "url" instead.'}),n=i(s.host),delete s.host):n=i(s.url);let[u,l]=a(n,r),c=o(s,l,t);return void 0!==c.pathname&&(u.pathname=c.pathname),c.url=u,c},t.getConnectionParams=function(e,t){let r;if(void 0!==e.access_token){if(void 0!==e.username||void 0!==e.password)throw Error("Both access token and username/password are provided in the configuration. Please use only one authentication method.");r={access_token:e.access_token,type:"JWT"}}else r={username:e.username??"default",password:e.password??"",type:"Credentials"};return{auth:r,url:e.url,application_id:e.application,request_timeout:e.request_timeout??3e4,max_open_connections:e.max_open_connections??10,compression:{decompress_response:e.compression?.response??!1,compress_request:e.compression?.request??!1},database:e.database??"default",log_writer:new n.LogWriter(t,"Connection",e.log?.level),keep_alive:{enabled:e.keep_alive?.enabled??!0},clickhouse_settings:e.clickhouse_settings??{},http_headers:e.http_headers??{}}},t.mergeConfigs=o,t.createUrl=i,t.loadConfigOptionsFromURL=a,t.booleanConfigURLValue=s,t.numberConfigURLValue=u,t.enumConfigURLValue=l;let n=r(14303);function o(e,t,r){let n={...e};return!function e(t,n,o=[]){for(let i of Object.keys(n))if("object"==typeof n[i])e(t,n[i],o.concat(i));else{let e=t;for(let t of o)void 0===e[t]&&(e[t]={}),e=e[t];if(void 0!==e[i]){let e=o.concat(i).join(".");r.warn({module:"Config",message:`"${e}" is overridden by a URL parameter.`})}e[i]=n[i]}}(n,t),n}function i(e){let t;try{if(!("string"==typeof e||e instanceof URL))return new URL("http://localhost:8123");t=new URL(e)}catch(e){throw Error("ClickHouse URL is malformed. Expected format: http[s]://[username:password@]hostname:port[/database][?param1=value1¶m2=value2]",{cause:e})}if("http:"!==t.protocol&&"https:"!==t.protocol)throw Error(`ClickHouse URL protocol must be either http or https. Got: ${t.protocol}`);return t}function a(e,t){let r={};""!==e.username&&(r.username=decodeURIComponent(e.username)),""!==e.password&&(r.password=decodeURIComponent(e.password)),e.pathname.trim().length>1&&(r.database=e.pathname.slice(1));let o=[...e.searchParams.keys()];if(o.length>0){let i=new Set,a="clickhouse_setting_",c="http_header_";if(o.forEach(t=>{let o=!0,p=e.searchParams.get(t);if(t.startsWith(a)){let e=t.slice(a.length);void 0===r.clickhouse_settings&&(r.clickhouse_settings={}),r.clickhouse_settings[e]=p}else if(t.startsWith("ch_")){let e=t.slice(3);void 0===r.clickhouse_settings&&(r.clickhouse_settings={}),r.clickhouse_settings[e]=p}else if(t.startsWith(c)){let e=t.slice(c.length);void 0===r.http_headers&&(r.http_headers={}),r.http_headers[e]=p}else switch(t){case"application":r.application=p;break;case"pathname":r.pathname=p;break;case"session_id":r.session_id=p;break;case"request_timeout":r.request_timeout=u({key:t,value:p,min:0});break;case"max_open_connections":r.max_open_connections=u({key:t,value:p,min:1});break;case"compression_request":void 0===r.compression&&(r.compression={}),r.compression.request=s({key:t,value:p});break;case"compression_response":void 0===r.compression&&(r.compression={}),r.compression.response=s({key:t,value:p});break;case"log_level":void 0===r.log&&(r.log={}),r.log.level=l({key:t,value:p,enumObject:n.ClickHouseLogLevel});break;case"keep_alive_enabled":void 0===r.keep_alive&&(r.keep_alive={}),r.keep_alive.enabled=s({key:t,value:p});break;case"access_token":r.access_token=p;break;default:o=!1,i.add(t)}o&&e.searchParams.delete(t)}),null!==t){let n=t(r,e);r=n.config,i.size>0&&n.handled_params.forEach(e=>i.delete(e)),n.unknown_params.size>0&&n.unknown_params.forEach(e=>i.add(e))}if(i.size>0)throw Error(`Unknown URL parameters: ${Array.from(i).join(", ")}`)}return[new URL(`${e.protocol}//${e.host}`),r]}function s({key:e,value:t}){let r=t.trim();if("true"===r||"1"===r)return!0;if("false"===r||"0"===r)return!1;throw Error(`"${e}" has invalid boolean value: ${r}. Expected one of: 0, 1, true, false.`)}function u({key:e,value:t,min:r,max:n}){let o=t.trim(),i=Number(o);if(isNaN(i))throw Error(`"${e}" has invalid numeric value: ${o}`);if(void 0!==r&&in)throw Error(`"${e}" value ${o} is greater than max allowed ${n}`);return i}function l({key:e,value:t,enumObject:r}){let n=Object.keys(r).filter(e=>isNaN(Number(e))),o=t.trim();if(!n.includes(o)){let t=n.join(", ");throw Error(`"${e}" has invalid value: ${o}. Expected one of: ${t}.`)}return r[o]}},43085:(e,t,r)=>{"use strict";r.d(t,{E:()=>d});var n=r(6029);r(55729);var o=r(76),i=r(5618),a=r(66404),s=r(80616),u=r(37666),l=r(60481),c=r(63863),p={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};let f={},h=(0,i.V)((e,{radius:t,color:r,gradient:n,variant:i,size:s,autoContrast:u})=>{let l=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:i||"filled",autoContrast:u});return{root:{"--badge-height":(0,o.YC)(s,"badge-height"),"--badge-padding-x":(0,o.YC)(s,"badge-padding-x"),"--badge-fz":(0,o.YC)(s,"badge-fz"),"--badge-radius":void 0===t?void 0:(0,o.nJ)(t),"--badge-bg":r||i?l.background:void 0,"--badge-color":r||i?l.color:void 0,"--badge-bd":r||i?l.border:void 0,"--badge-dot-color":"dot"===i?(0,a.r)(r,e):void 0}}}),d=(0,c.v)((e,t)=>{let r=(0,s.Y)("Badge",f,e),{classNames:o,className:i,style:a,styles:c,unstyled:d,vars:y,radius:v,color:m,gradient:g,leftSection:b,rightSection:w,children:_,variant:S,fullWidth:x,autoContrast:O,circle:j,mod:C,...P}=r,A=(0,u.I)({name:"Badge",props:r,classes:p,className:i,style:a,classNames:o,styles:c,unstyled:d,vars:y,varsResolver:h});return(0,n.jsxs)(l.a,{variant:S,mod:[{block:x,circle:j,"with-right-section":!!w,"with-left-section":!!b},C],...A("root",{variant:S}),ref:t,...P,children:[b&&(0,n.jsx)("span",{...A("section"),"data-position":"left",children:b}),(0,n.jsx)("span",{...A("label"),children:_}),w&&(0,n.jsx)("span",{...A("section"),"data-position":"right",children:w})]})});d.classes=p,d.displayName="@mantine/core/Badge"},43092:(e,t,r)=>{var n=r(50515),o=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},43233:(e,t,r)=>{var n=r(24127),o=r(26027),i=r(25248);e.exports=function(e,t,r){for(var a=-1,s=t.length,u={};++a{"use strict";var t="";e.exports=function e(r){if(!r)return"";var n="";return null!=r.start&&(n+=(r.parenthesized?"(":"")+r.start+" "),r.field&&r.field!==t&&(n+=r.field+":"),r.left&&(r.parenthesized&&!r.start&&(n+="("),n+=e(r.left),r.parenthesized&&!r.right&&(n+=")")),r.operator&&(r.left&&(n+=" "),r.operator!==t&&(n+=r.operator)),r.right&&(r.operator&&r.operator!==t&&(n+=" "),n+=e(r.right),r.parenthesized&&(n+=")")),(r.term||""===r.term&&r.quoted)&&(r.prefix&&(n+=r.prefix),r.quoted?(n+='"',n+=r.term,n+='"'):r.regex?(n+="/",n+=r.term,n+="/"):n+=r.term,null!=r.proximity&&(n+="~"+r.proximity),null!=r.boost&&(n+="^"+r.boost)),r.term_min&&("both"===r.inclusive||"left"===r.inclusive?n+="[":n+="{",n+=r.term_min,n+=" TO ",n+=r.term_max,"both"===r.inclusive||"right"===r.inclusive?n+="]":n+="}"),r.similarity&&(n+="~",.5!==r.similarity&&(n+=r.similarity)),n}},43562:(e,t,r)=>{var n=r(28340),o=r(3540),i=r(73696),a=i&&i.isTypedArray;e.exports=a?o(a):n},43701:(e,t,r)=>{var n=r(23282),o=r(7131),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},43862:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},44555:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(70893),t),o(r(99496),t),o(r(75590),t)},45516:(e,t,r)=>{var n=r(97397),o="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||o||Function("return this")()},45749:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","clock","IconClock",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]])},46060:(e,t,r)=>{var n=r(52634),o=r(87567);e.exports=function(e,t){return e&&n(t,o(t),e)}},46448:(e,t,r)=>{var n=r(24127),o=r(88165);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},46468:e=>{e.exports=function(e){return this.__data__.get(e)}},47508:(e,t,r)=>{var n=r(81707);e.exports=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},48039:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},50025:(e,t,r)=>{e.exports=r(45516).Uint8Array},50515:(e,t,r)=>{var n=r(33573),o=r(3619);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},50874:(e,t,r)=>{e.exports=r(54703)(r(45516),"Map")},52182:(e,t,r)=>{var n=r(36592);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},52634:(e,t,r)=>{var n=r(81014),o=r(53325);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,u=t.length;++s{var n=r(64593),o=r(50874),i=r(9929),a=r(31736),s=r(24490),u=r(33573),l=r(99048),c="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",d="[object DataView]",y=l(n),v=l(o),m=l(i),g=l(a),b=l(s),w=u;(n&&w(new n(new ArrayBuffer(1)))!=d||o&&w(new o)!=c||i&&w(i.resolve())!=p||a&&w(new a)!=f||s&&w(new s)!=h)&&(w=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case y:return d;case v:return c;case m:return p;case g:return f;case b:return h}return t}),e.exports=w},53325:(e,t,r)=>{var n=r(1278);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},53576:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},54348:(e,t,r)=>{"use strict";var n=r(26387),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,s,u,l,c,p,f=!1;t||(t={}),a=t.debug||!1;try{if(u=n(),l=document.createRange(),c=document.getSelection(),(p=document.createElement("span")).textContent=e,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=o[t.format]||o.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(p),l.selectNodeContents(p),c.addRange(l),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(n){a&&console.error("unable to copy using execCommand: ",n),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){a&&console.error("unable to copy using clipboardData: ",n),a&&console.error("falling back to prompt"),r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",s=r.replace(/#{\s*key\s*}/g,i),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),p&&document.body.removeChild(p),u()}return f}},54703:(e,t,r)=>{var n=r(66046),o=r(72053);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},55235:(e,t,r)=>{"use strict";var n=r(88688),o=r(80145);t.parse=n.parse.bind(n),t.toString=r(43353),t.term={escape:o.escape,unescape:o.unescape},t.phrase={escape:o.escapePhrase,unescape:o.unescapePhrase}},55765:(e,t,r)=>{var n=r(33276);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},57469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatQuerySettings=function(e){if("boolean"==typeof e)return e?"1":"0";if("number"==typeof e)return String(e);if("string"==typeof e)return e;if(e instanceof n.SettingsMap)return e.toString();throw Error(`Unsupported value in query settings: [${e}].`)};let n=r(71354)},58120:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{var n=r(52634),o=r(63602);e.exports=function(e,t){return n(e,o(e),t)}},60567:(e,t,r)=>{var n=r(16153);e.exports=function(e){return null==e?"":n(e)}},62220:(e,t,r)=>{var n=r(81707),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},62272:(e,t,r)=>{e.exports=r(45516)["__core-js_shared__"]},63127:(e,t,r)=>{var n=r(29794),o=r(63602),i=r(70720);e.exports=function(e){return n(e,i,o)}},63602:(e,t,r)=>{var n=r(65517),o=r(10858),i=r(5461),a=r(63912);e.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a},63912:e=>{e.exports=function(){return[]}},64022:(e,t,r)=>{var n=r(33573),o=r(10858),i=r(3619),a=Object.prototype,s=Function.prototype.toString,u=a.hasOwnProperty,l=s.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==l}},64593:(e,t,r)=>{e.exports=r(54703)(r(45516),"DataView")},65086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleParam=void 0,t.formatQueryParams=n;class r{constructor(e){Object.defineProperty(this,"values",{enumerable:!0,configurable:!0,writable:!0,value:e})}}function n({value:e,wrapStringInQuotes:t,printNullAsKeyword:c}){if(null==e)return c?"NULL":"\\N";if(Number.isNaN(e))return"nan";if(e===1/0)return"+inf";if(e===-1/0)return"-inf";if("number"==typeof e)return String(e);if("boolean"==typeof e)return e?"1":"0";if("string"==typeof e){let r="";for(let t=0;tn({value:e,wrapStringInQuotes:!0,printNullAsKeyword:!0})).join(",")}]`;if(e instanceof Date){let t=Math.floor(e.getTime()/1e3).toString().padStart(10,"0"),r=e.getUTCMilliseconds();return 0===r?t:`${t}.${r.toString().padStart(3,"0")}`}if(e instanceof r)return`(${e.values.map(e=>n({value:e,wrapStringInQuotes:!0,printNullAsKeyword:!0})).join(",")})`;if(e instanceof Map)return o(e.entries());if("object"==typeof e)return o(Object.entries(e));throw Error(`Unsupported value in query parameters: [${e}].`)}function o(e){let t=[];for(let[r,o]of e)t.push(`${n({value:r,wrapStringInQuotes:!0,printNullAsKeyword:!0})}:${n({value:o,wrapStringInQuotes:!0,printNullAsKeyword:!0})}`);return`{${t.join(",")}}`}t.TupleParam=r;let i=9,a=10,s=13,u=39,l=92},65234:(e,t,r)=>{"use strict";var n=r(91293).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},65517:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r{var n=r(98499),o=r(24877),i=r(23356),a=r(99048),s=/^\[object .+?Constructor\]$/,u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,p=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?p:s).test(a(e))}},66581:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},69335:(e,t,r)=>{var n=r(53140),o=r(3619);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},69504:(e,t,r)=>{var n=r(28676);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},70720:(e,t,r)=>{var n=r(29778),o=r(18482),i=r(16799);e.exports=function(e){return i(e)?n(e,!0):o(e)}},70893:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withCompressionHeaders=function({headers:e,enable_request_compression:t,enable_response_compression:r}){return{...e,...r?{"Accept-Encoding":"gzip"}:{},...t?{"Content-Encoding":"gzip"}:{}}},t.withHttpSettings=function(e,t){return{...t?{enable_http_compression:1}:{},...e}},t.isSuccessfulResponse=function(e){return!!(e&&200<=e&&e<300)},t.isJWTAuth=function(e){return null!==e&&"object"==typeof e&&"access_token"in e},t.isCredentialsAuth=function(e){return null!==e&&"object"==typeof e&&"username"in e&&"password"in e}},71354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsMap=void 0;class r{constructor(e){Object.defineProperty(this,"record",{enumerable:!0,configurable:!0,writable:!0,value:e})}toString(){return`{${Object.entries(this.record).map(([e,t])=>`'${e}':'${t}'`).join(",")}}`}static from(e){return new this(e)}}t.SettingsMap=r},71388:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},72053:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},73696:(e,t,r)=>{e=r.nmd(e);var n=r(97397),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},75590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformUrl=function({url:e,pathname:t,searchParams:r}){let n=new URL(e);return t&&("/"===n.pathname?n.pathname=t:n.pathname+=t),r&&(n.search=r?.toString()),n},t.toSearchParams=function({database:e,query:t,query_params:r,clickhouse_settings:o,session_id:i,query_id:a,role:s}){let u=[["query_id",a]];if(void 0!==r)for(let[e,t]of Object.entries(r)){let r=(0,n.formatQueryParams)({value:t});u.push([`param_${e}`,r])}if(void 0!==o)for(let[e,t]of Object.entries(o))void 0!==t&&u.push([e,(0,n.formatQuerySettings)(t)]);if(void 0!==e&&"default"!==e&&u.push(["database",e]),t&&u.push(["query",t]),i&&u.push(["session_id",i]),s){if("string"==typeof s)u.push(["role",s]);else if(Array.isArray(s))for(let e of s)u.push(["role",e])}return new URLSearchParams(u)};let n=r(25701)},75828:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t{var n=r(88601),o=r(22346),i=r(87710),a=r(25248),s=r(52634),u=r(16875),l=r(15565),c=r(63127);e.exports=l(function(e,t){var r={};if(null==e)return r;var l=!1;t=n(t,function(t){return t=a(t,e),l||(l=t.length>1),t}),s(e,c(e),r),l&&(r=o(r,7,u));for(var p=t.length;p--;)i(r,t[p]);return r})},80145:(e,t)=>{function r(e){return"\\"+e}function n(e,t){return t}t.escape=function(e){return e.replace(/[\+\-\!\(\)\{\}\[\]\^\"\?\:\\\&\|\'\/\s\*\~]/g,r)},t.unescape=function(e){return e.replace(/\\([\+\-\!\(\)\{\}\[\]\^\"\?\:\\\&\|\'\/\s\*\~])/g,n)},t.escapePhrase=function(e){return e.replace(/"/g,r)},t.unescapePhrase=function(e){return e.replace(/\\(")/g,n)}},80244:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},80519:(e,t,r)=>{e.exports=r(36538)},81014:(e,t,r)=>{var n=r(53325),o=r(66581),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},81597:(e,t,r)=>{var n=r(55765);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},81707:(e,t,r)=>{e.exports=r(54703)(Object,"create")},82006:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClickHouseError=void 0,t.parseError=function(e){let t=e instanceof Error,o=(t?e.message:e).match(r),i=o?.groups;return i?new n(i):t?e:Error(e)},t.getCurrentStackTrace=function(){let e=Error().stack;return e?e.split("\n").slice(3).reverse().join("\n"):""},t.enhanceStackTrace=function(e,t){if(e.stack&&t){let r=e.stack.indexOf("\n"),n=e.stack.substring(0,r),o=e.stack.substring(r+1);e.stack=`${n} ${t} -${o}`}return e};let r=/(Code|Error): (?\d+).*Exception: (?.+)\((?(?=.+[A-Z]{3})[A-Z0-9_]+?)\)/s;class n extends Error{constructor({message:e,code:t,type:r}){super(e),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t,this.type=r,Object.setPrototypeOf(this,n.prototype)}}t.ClickHouseError=n},83374:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(28506),t),o(r(83866),t)},83801:(e,t,r)=>{var n=r(53140),o=r(3619);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},83866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebValuesEncoder=void 0;let n=r(7117),o=r(28506);class i{encodeValues(e,t){if(a(e),Array.isArray(e))return e.map(e=>(0,n.encodeJSON)(e,t)).join("");if("object"==typeof e)return(0,n.encodeJSON)(e,t);throw Error(`Cannot encode values of type ${typeof e} with ${t} format`)}validateInsertValues(e){if(a(e),!Array.isArray(e)&&"object"!=typeof e)throw Error(`Insert expected "values" to be an array or a JSON object, got: ${typeof e}`)}}function a(e){if((0,o.isStream)(e))throw Error("Streaming is not supported for inserts in the web version of the client")}t.WebValuesEncoder=i},83965:(e,t,r)=>{var n=r(65517),o=r(12342);e.exports=function e(t,r,i,a,s){var u=-1,l=t.length;for(i||(i=o),s||(s=[]);++u0&&i(c)?r>1?e(c,r-1,i,a,s):n(s,c):a||(s[s.length]=c)}return s}},84536:(e,t,r)=>{var n=r(43233),o=r(8546);e.exports=function(e,t){return n(e,t,function(t,r){return o(e,r)})}},85008:(e,t,r)=>{var n=r(28676);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},86347:(e,t,r)=>{var n=r(33863),o=r(1278),i=r(5549);e.exports=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i},86414:(e,t,r)=>{var n=r(89139);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},87274:(e,t,r)=>{var n=r(52634),o=r(5461);e.exports=function(e,t){return n(e,o(e),t)}},87567:(e,t,r)=>{var n=r(29778),o=r(43701),i=r(16799);e.exports=function(e){return i(e)?n(e):o(e)}},87568:(e,t,r)=>{var n=r(91357),o=r(10858),i=r(23282);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},87710:(e,t,r)=>{var n=r(25248),o=r(16419),i=r(46448),a=r(43092);e.exports=function(e,t){return t=n(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},88165:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n{var n=r(52634),o=r(70720);e.exports=function(e,t){return e&&n(t,o(t),e)}},88601:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r{"use strict";function t(e,r,n,o){this.message=e,this.expected=r,this.found=n,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}function r(){this.constructor=t}r.prototype=Error.prototype,t.prototype=new r,t.buildMessage=function(e,t){var r={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t,r="";for(t=0;t0){for(n=1,o=1;n":r[0],o.right=n),o},f=function(e,t,r){var n={left:e},r=0==r.length?null:null==r[0].right?r[0].left:r[0];return null!=r&&(n.operator=""==t?"":t[0],n.right=r),n},h=ey("(",!1),d=ey(")",!1),y=function(e,t){var r={field:null==e||""==e.label?"":e.label,fieldLocation:null==e||""==e.label?null:e.location};for(var n in t)r[n]=t[n];return r},v=/^[:]/,m=ev([":"],!1,!1),g=function(e,t,r,n){var o={term:t,quoted:!0,regex:!1,termLocation:eg(ec,el)};return""!=r&&(o.proximity=r),""!=n&&(o.boost=n),""!=e&&(o.prefix=e),o},b=function(e,t,r,n){var o={term:t.label,quoted:!1,regex:!1,termLocation:eg(ec,el)};return""!=r&&(o.similarity=r),""!=n&&(o.boost=n),""!=e&&(o.prefix=e),o},w=ey("\\",!1),_=function(e){return"\\"+e},S=ey(".",!1),O=/^[^ \t\r\n\f{}()"\/\^~[\]]/,x=ev([" "," ","\r","\n","\f","{","}","(",")",'"',"/","^","~","[","]"],!0,!1),j=/^[^: \t\r\n\f{}()"\^~[\]]/,C=ev([":"," "," ","\r","\n","\f","{","}","(",")",'"',"^","~","[","]"],!0,!1),P=ey('"',!1),A=ey("/",!1),E={type:"any"},k=ey("+",!1),N=ey("-",!1),T=ey("!",!1),R=ey("{",!1),I=ey("}",!1),M=ey("[",!1),q=ey("]",!1),L=ey("^",!1),U=ey("?",!1),D=ey(":",!1),F=ey("&",!1),J=ey("|",!1),$=ey("'",!1),W=ey("~",!1),B=ey("*",!1),H=ey(" ",!1),z=ey("0.",!1),V=/^[0-9]/,Q=ev([["0","9"]],!1,!1),Z=ey("TO",!1),G=function(e){return e},Y="OR NOT",K=ey("OR NOT",!1),X="AND NOT",ee=ey("AND NOT",!1),et=ey("OR",!1),er=ey("AND",!1),en=ey("NOT",!1),eo=ey("||",!1),ei=ey("&&",!1),ea={type:"other",description:"whitespace"},es=/^[ \t\r\n\f]/,eu=ev([" "," ","\r","\n","\f"],!1,!1),el=0,ec=0,ep=[{line:1,column:1}],ef=0,eh=[],ed=0;if("startRule"in r){if(!(r.startRule in u))throw Error("Can't start parsing from rule \""+r.startRule+'".');l=u[r.startRule]}function ey(e,t){return{type:"literal",text:e,ignoreCase:t}}function ev(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function em(t){var r,n=ep[t];if(n)return n;for(r=t-1;!ep[r];)r--;for(n={line:(n=ep[r]).line,column:n.column};ref&&(ef=el,eh=[]),eh.push(e))}function ew(){var e,t,r,n;for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();if(t!==s){if(r=[],(n=e_())!==s)for(;n!==s;)r.push(n),n=e_();else r=s;r!==s?(ec=e,e=t=r[0]):(el=e,e=s)}else el=e,e=s;if(e===s){for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();t!==s&&(ec=e,t=c()),(e=t)===s&&(e=el,(t=eU())!==s&&(ec=e,t=c()),e=t)}return e}function e_(){var e,t,r,n,o,i;if((e=el,(t=eI())!==s&&(r=eU())!==s)?(ec=e,e=t={operator:t}):(el=e,e=s),e===s){if(e=el,(t=eI())!==s)if((r=eS())!==s){for(n=[],o=eI();o!==s;)n.push(o),o=eI();if(n!==s){for(o=[],i=e_();i!==s;)o.push(i),i=e_();o!==s?(ec=e,e=t=p(t,r,n,o)):(el=e,e=s)}else el=e,e=s}else el=e,e=s;else el=e,e=s;if(e===s&&((e=el,(t=eI())!==s&&(r=e_())!==s)?(ec=e,e=t=r):(el=e,e=s),e===s))if(e=el,(t=eS())!==s){for(r=[],n=eI();n!==s;)r.push(n),n=eI();if(r!==s){for(n=[],o=e_();o!==s;)n.push(o),o=e_();n!==s?(ec=e,e=t=f(t,r,n)):(el=e,e=s)}else el=e,e=s}else el=e,e=s}return e}function eS(){var t,r,n,o,i,a,u,l,c,p,f;if(t=el,(i=el,(a=ex())===s&&(a=null),a!==s&&(u=function(){var t,r,n,o,i,a,u,l;if(t=el,91===e.charCodeAt(el)?(r="[",el++):(r=s,0===ed&&eb(M)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(93===e.charCodeAt(el)?(l="]",el++):(l=s,0===ed&&eb(q)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"both"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s){if(t=el,123===e.charCodeAt(el)?(r="{",el++):(r=s,0===ed&&eb(R)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(125===e.charCodeAt(el)?(l="}",el++):(l=s,0===ed&&eb(I)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"none"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s){if(t=el,91===e.charCodeAt(el)?(r="[",el++):(r=s,0===ed&&eb(M)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(125===e.charCodeAt(el)?(l="}",el++):(l=s,0===ed&&eb(I)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"left"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s)if(t=el,123===e.charCodeAt(el)?(r="{",el++):(r=s,0===ed&&eb(R)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(93===e.charCodeAt(el)?(l="]",el++):(l=s,0===ed&&eb(q)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"right"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s}}return t}())!==s)?(ec=i,l=a,(c=u).field=null==l||""==l.label?"":l.label,c.fieldLocation=null==l||""==l.label?null:l.location,i=a=c):(el=i,i=s),i===s&&((i=el,(a=ex())!==s&&(u=eO())!==s)?(ec=i,p=a,(f=u).field=p.label,f.fieldLocation=p.location,i=a=f):(el=i,i=s),i===s&&(i=el,(a=ex())===s&&(a=null),a!==s&&(u=function(){var t,r,n,o,i,a,u,l,c,p,f,h,d,y;if(t=el,(r=eq())===s&&(r=null),r!==s)if((n=function(){var t,r,n,o;if(t=el,34===e.charCodeAt(el)?(r='"',el++):(r=s,0===ed&&eb(P)),r!==s){for(n=[],o=eE();o!==s;)n.push(o),o=eE();n!==s&&(34===e.charCodeAt(el)?(o='"',el++):(o=s,0===ed&&eb(P)),o!==s)?(ec=t,t=r=n.join("")):(el=t,t=s)}else el=t,t=s;return t}())!==s){if((l=el,126===e.charCodeAt(el)?(c="~",el++):(c=s,0===ed&&eb(W)),c!==s&&(p=eR())!==s)?(ec=l,l=c=p):(el=l,l=s),(o=l)===s&&(o=null),o!==s)if((i=eN())===s&&(i=null),i!==s){for(a=[],u=eL();u!==s;)a.push(u),u=eL();a!==s?(ec=t,t=r=g(r,n,o,i)):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s)if(t=el,(r=eq())===s&&(r=null),r!==s)if((n=eP())!==s){if((f=el,126===e.charCodeAt(el)?(h="~",el++):(h=s,0===ed&&eb(W)),h!==s&&((d=eT())===s&&(d=null),d!==s))?(ec=f,f=h=""==(y=d)||null==y?.5:y):(el=f,f=s),(o=f)===s&&(o=null),o!==s)if((i=eN())===s&&(i=null),i!==s){for(a=[],u=eL();u!==s;)a.push(u),u=eL();a!==s?(ec=t,t=r=b(r,n,o,i)):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;return t}())!==s?(ec=i,i=a=y(a,u)):(el=i,i=s))),(r=i)!==s){for(n=[],o=eL();o!==s;)n.push(o),o=eL();n!==s?(ec=t,t=r):(el=t,t=s)}else el=t,t=s;return t===s&&(t=eO()),t}function eO(){var t,r,n,o,i,a,u,l;if(t=el,40===e.charCodeAt(el)?(r="(",el++):(r=s,0===ed&&eb(h)),r!==s){for(n=[],o=eL();o!==s;)n.push(o),o=eL();if(n!==s){if(o=[],(i=e_())!==s)for(;i!==s;)o.push(i),i=e_();else o=s;if(o!==s)if(41===e.charCodeAt(el)?(i=")",el++):(i=s,0===ed&&eb(d)),i!==s){for(a=[],u=eL();u!==s;)a.push(u),u=eL();a!==s?(ec=t,(l=o)[0].parenthesized=!0,t=r=l[0]):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s}else el=t,t=s;return t}function ex(){var t,r,n,o,i,a;if(t=el,(r=eP())!==s)if(v.test(e.charAt(el))?(n=e.charAt(el),el++):(n=s,0===ed&&eb(m)),n!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();o!==s?(ec=t,t=r={label:(a=r).label,location:a.location}):(el=t,t=s)}else el=t,t=s;else el=t,t=s;return t}function ej(){var t,r,n;return t=el,92===e.charCodeAt(el)?(r="\\",el++):(r=s,0===ed&&eb(w)),r!==s&&(n=ek())!==s?(ec=t,t=r=_(n)):(el=t,t=s),t===s&&(46===e.charCodeAt(el)?(t=".",el++):(t=s,0===ed&&eb(S)),t===s&&(O.test(e.charAt(el))?(t=e.charAt(el),el++):(t=s,0===ed&&eb(x)))),t}function eC(){var e,t,r;if(e=el,t=[],(r=ej())!==s)for(;r!==s;)t.push(r),r=ej();else t=s;return t!==s&&(ec=e,t=t.join("")),t}function eP(){var e,t,r;if(e=el,t=[],(r=eA())!==s)for(;r!==s;)t.push(r),r=eA();else t=s;return t!==s&&(ec=e,t={label:t.join(""),location:eg(ec,el)}),t}function eA(){var t,r,n;return t=el,92===e.charCodeAt(el)?(r="\\",el++):(r=s,0===ed&&eb(w)),r!==s&&(n=ek())!==s?(ec=t,t=r=_(n)):(el=t,t=s),t===s&&(46===e.charCodeAt(el)?(t=".",el++):(t=s,0===ed&&eb(S)),t===s&&(j.test(e.charAt(el))?(t=e.charAt(el),el++):(t=s,0===ed&&eb(C)))),t}function eE(){var t,r,n;return(t=el,r=el,ed++,34===e.charCodeAt(el)?(n='"',el++):(n=s,0===ed&&eb(P)),n===s&&(92===e.charCodeAt(el)?(n="\\",el++):(n=s,0===ed&&eb(w))),ed--,n===s?r=void 0:(el=r,r=s),r!==s&&(e.length>el?(n=e.charAt(el),el++):(n=s,0===ed&&eb(E)),n!==s))?(ec=t,t=r=n):(el=t,t=s),t===s&&(t=el,92===e.charCodeAt(el)?(r="\\",el++):(r=s,0===ed&&eb(w)),r!==s&&(n=ek())!==s?(ec=t,t=r=_(n)):(el=t,t=s)),t}function ek(){var t;return 43===e.charCodeAt(el)?(t="+",el++):(t=s,0===ed&&eb(k)),t===s&&(45===e.charCodeAt(el)?(t="-",el++):(t=s,0===ed&&eb(N)),t===s&&(33===e.charCodeAt(el)?(t="!",el++):(t=s,0===ed&&eb(T)),t===s&&(40===e.charCodeAt(el)?(t="(",el++):(t=s,0===ed&&eb(h)),t===s&&(41===e.charCodeAt(el)?(t=")",el++):(t=s,0===ed&&eb(d)),t===s&&(123===e.charCodeAt(el)?(t="{",el++):(t=s,0===ed&&eb(R)),t===s&&(125===e.charCodeAt(el)?(t="}",el++):(t=s,0===ed&&eb(I)),t===s&&(91===e.charCodeAt(el)?(t="[",el++):(t=s,0===ed&&eb(M)),t===s&&(93===e.charCodeAt(el)?(t="]",el++):(t=s,0===ed&&eb(q)),t===s&&(94===e.charCodeAt(el)?(t="^",el++):(t=s,0===ed&&eb(L)),t===s&&(34===e.charCodeAt(el)?(t='"',el++):(t=s,0===ed&&eb(P)),t===s&&(63===e.charCodeAt(el)?(t="?",el++):(t=s,0===ed&&eb(U)),t===s&&(58===e.charCodeAt(el)?(t=":",el++):(t=s,0===ed&&eb(D)),t===s&&(92===e.charCodeAt(el)?(t="\\",el++):(t=s,0===ed&&eb(w)),t===s&&(38===e.charCodeAt(el)?(t="&",el++):(t=s,0===ed&&eb(F)),t===s&&(124===e.charCodeAt(el)?(t="|",el++):(t=s,0===ed&&eb(J)),t===s&&(39===e.charCodeAt(el)?(t="'",el++):(t=s,0===ed&&eb($)),t===s&&(47===e.charCodeAt(el)?(t="/",el++):(t=s,0===ed&&eb(A)),t===s&&(126===e.charCodeAt(el)?(t="~",el++):(t=s,0===ed&&eb(W)),t===s&&(42===e.charCodeAt(el)?(t="*",el++):(t=s,0===ed&&eb(B)),t===s&&(32===e.charCodeAt(el)?(t=" ",el++):(t=s,0===ed&&eb(H)))))))))))))))))))))),t}function eN(){var t,r,n,o;if(t=el,94===e.charCodeAt(el)?(r="^",el++):(r=s,0===ed&&eb(L)),r!==s){if((o=eT())===s&&(o=eR()),(n=o)!==s)ec=t,t=r=n;else el=t,t=s}else el=t,t=s;return t}function eT(){var t,r,n,o;if(t=el,"0."===e.substr(el,2)?(r="0.",el+=2):(r=s,0===ed&&eb(z)),r!==s){if(n=[],V.test(e.charAt(el))?(o=e.charAt(el),el++):(o=s,0===ed&&eb(Q)),o!==s)for(;o!==s;)n.push(o),V.test(e.charAt(el))?(o=e.charAt(el),el++):(o=s,0===ed&&eb(Q));else n=s;n!==s?(ec=t,t=r=parseFloat("0."+n.join(""))):(el=t,t=s)}else el=t,t=s;return t}function eR(){var t,r,n;if(t=el,r=[],V.test(e.charAt(el))?(n=e.charAt(el),el++):(n=s,0===ed&&eb(Q)),n!==s)for(;n!==s;)r.push(n),V.test(e.charAt(el))?(n=e.charAt(el),el++):(n=s,0===ed&&eb(Q));else r=s;return r!==s&&(ec=t,r=parseInt(r.join(""))),r}function eI(){var e,t,r,n,o;for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();if(t!==s)if((r=eM())!==s){if(n=[],(o=eL())!==s)for(;o!==s;)n.push(o),o=eL();else n=s;n!==s?(ec=e,e=t=G(r)):(el=e,e=s)}else el=e,e=s;else el=e,e=s;if(e===s){for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();t!==s&&(r=eM())!==s&&(n=eU())!==s?(ec=e,e=t=G(r)):(el=e,e=s)}return e}function eM(){var t;return e.substr(el,6)===Y?(t=Y,el+=6):(t=s,0===ed&&eb(K)),t===s&&(e.substr(el,7)===X?(t=X,el+=7):(t=s,0===ed&&eb(ee)),t===s&&("OR"===e.substr(el,2)?(t="OR",el+=2):(t=s,0===ed&&eb(et)),t===s&&("AND"===e.substr(el,3)?(t="AND",el+=3):(t=s,0===ed&&eb(er)),t===s&&("NOT"===e.substr(el,3)?(t="NOT",el+=3):(t=s,0===ed&&eb(en)),t===s&&("||"===e.substr(el,2)?(t="||",el+=2):(t=s,0===ed&&eb(eo)),t===s&&("&&"===e.substr(el,2)?(t="&&",el+=2):(t=s,0===ed&&eb(ei)))))))),t}function eq(){var t,r,n,o;for(t=el,r=[],n=eL();n!==s;)r.push(n),n=eL();return r!==s&&(43===e.charCodeAt(el)?(o="+",el++):(o=s,0===ed&&eb(k)),o===s&&(45===e.charCodeAt(el)?(o="-",el++):(o=s,0===ed&&eb(N)),o===s&&(33===e.charCodeAt(el)?(o="!",el++):(o=s,0===ed&&eb(T)))),(n=o)!==s)?(ec=t,t=r=G(n)):(el=t,t=s),t}function eL(){var t,r;if(ed++,t=[],es.test(e.charAt(el))?(r=e.charAt(el),el++):(r=s,0===ed&&eb(eu)),r!==s)for(;r!==s;)t.push(r),es.test(e.charAt(el))?(r=e.charAt(el),el++):(r=s,0===ed&&eb(eu));else t=s;return ed--,t===s&&(r=s,0===ed&&eb(ea)),t}function eU(){var t,r;return t=el,ed++,e.length>el?(r=e.charAt(el),el++):(r=s,0===ed&&eb(E)),ed--,r===s?t=void 0:(el=t,t=s),t}if((a=l())!==s&&el===e.length)return a;throw a!==s&&el{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},89766:function(e){var t;t=function(){function e(t,r,n){return this.id=++e.highestId,this.name=t,this.symbols=r,this.postprocess=n,this}function t(e,t,r,n){this.rule=e,this.dot=t,this.reference=r,this.data=[],this.wantedBy=n,this.isComplete=this.dot===e.symbols.length}function r(e,t){this.grammar=e,this.index=t,this.states=[],this.wants={},this.scannable=[],this.completed={}}function n(e,t){this.rules=e,this.start=t||this.rules[0].name;var r=this.byName={};this.rules.forEach(function(e){r.hasOwnProperty(e.name)||(r[e.name]=[]),r[e.name].push(e)})}function o(){this.reset("")}function i(e,t,i){if(e instanceof n)var a=e,i=t;else var a=n.fromCompiled(e,t);for(var s in this.grammar=a,this.options={keepHistory:!1,lexer:a.lexer||new o},i||{})this.options[s]=i[s];this.lexer=this.options.lexer,this.lexerState=void 0;var u=new r(a,0);this.table=[u],u.wants[a.start]=[],u.predict(a.start),u.process(),this.current=0}function a(e){var t=typeof e;if("string"===t)return e;if("object"===t)if(e.literal)return JSON.stringify(e.literal);else if(e instanceof RegExp)return e.toString();else if(e.type)return"%"+e.type;else if(e.test)return"<"+String(e.test)+">";else throw Error("Unknown symbol type: "+e)}return e.highestId=0,e.prototype.toString=function(e){var t=void 0===e?this.symbols.map(a).join(" "):this.symbols.slice(0,e).map(a).join(" ")+" ● "+this.symbols.slice(e).map(a).join(" ");return this.name+" → "+t},t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(e){var r=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return r.left=this,r.right=e,r.isComplete&&(r.data=r.build(),r.right=void 0),r},t.prototype.build=function(){var e=[],t=this;do e.push(t.right.data),t=t.left;while(t.left);return e.reverse(),e},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,i.fail))},r.prototype.process=function(e){for(var t=this.states,r=this.wants,n=this.completed,o=0;o0&&t.push(" ^ "+n+" more lines identical to this"),n=0,t.push(" "+a)),r=a}},i.prototype.getSymbolDisplay=function(e){var t=e,r=typeof t;if("string"===r)return t;if("object"===r)if(t.literal)return JSON.stringify(t.literal);else if(t instanceof RegExp)return"character matching "+t;else if(t.type)return t.type+" token";else if(t.test)return"token matching "+String(t.test);else throw Error("Unknown symbol type: "+t)},i.prototype.buildFirstStateStack=function(e,t){if(-1!==t.indexOf(e))return null;if(0===e.wantedBy.length)return[e];var r=e.wantedBy[0],n=[e].concat(t),o=this.buildFirstStateStack(r,n);return null===o?null:[e].concat(o)},i.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},i.prototype.restore=function(e){var t=e.index;this.current=t,this.table[t]=e,this.table.splice(t+1),this.lexerState=e.lexerState,this.results=this.finish()},i.prototype.rewind=function(e){if(!this.options.keepHistory)throw Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},i.prototype.finish=function(){var e=[],t=this.grammar.start;return this.table[this.table.length-1].states.forEach(function(r){r.rule.name===t&&r.dot===r.rule.symbols.length&&0===r.reference&&r.data!==i.fail&&e.push(r)}),e.map(function(e){return e.data})},{Parser:i,Grammar:n,Rule:e}},e.exports?e.exports=t():this.nearley=t()},90327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamableFormats=t.SupportedRawFormats=t.SupportedJSONFormats=t.SingleDocumentJSONFormats=t.RecordsJSONFormats=t.StreamableJSONFormats=void 0,t.isNotStreamableJSONFamily=function(e){return t.SingleDocumentJSONFormats.includes(e)||t.RecordsJSONFormats.includes(e)},t.isStreamableJSONFamily=function(e){return t.StreamableJSONFormats.includes(e)},t.isSupportedRawFormat=function(e){return t.SupportedRawFormats.includes(e)},t.validateStreamFormat=function(e){if(!t.StreamableFormats.includes(e))throw Error(`${e} format is not streamable. Streamable formats: ${t.StreamableFormats.join(",")}`);return!0},t.encodeJSON=function(e,r){if(t.SupportedJSONFormats.includes(r))return JSON.stringify(e)+"\n";throw Error(`The client does not support JSON encoding in [${r}] format.`)},t.StreamableJSONFormats=["JSONEachRow","JSONStringsEachRow","JSONCompactEachRow","JSONCompactStringsEachRow","JSONCompactEachRowWithNames","JSONCompactEachRowWithNamesAndTypes","JSONCompactStringsEachRowWithNames","JSONCompactStringsEachRowWithNamesAndTypes","JSONEachRowWithProgress"],t.RecordsJSONFormats=["JSONObjectEachRow"],t.SingleDocumentJSONFormats=["JSON","JSONStrings","JSONCompact","JSONCompactStrings","JSONColumnsWithMetadata"],t.SupportedJSONFormats=[...t.RecordsJSONFormats,...t.SingleDocumentJSONFormats,...t.StreamableJSONFormats],t.SupportedRawFormats=["CSV","CSVWithNames","CSVWithNamesAndTypes","TabSeparated","TabSeparatedRaw","TabSeparatedWithNames","TabSeparatedWithNamesAndTypes","CustomSeparated","CustomSeparatedWithNames","CustomSeparatedWithNamesAndTypes","Parquet"],t.StreamableFormats=[...t.StreamableJSONFormats,...t.SupportedRawFormats]},91293:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=s(r(55729)),i=s(r(54348)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),n=o.default.Children.only(t);return o.default.cloneElement(n,l(l({},r),{},{onClick:this.onClick}))}}],function(e,t){for(var r=0;r{var n=r(23356),o=Object.create;e.exports=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}()},91544:e=>{e.exports=Array.isArray},91985:function(e){var t,r,n;t=this&&this.define,(n=(r={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(e,t){for(var r in e)t.hasOwnProperty(r)||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t},stringify:function(e,t){return void 0===e||"function"==typeof e?e+"":JSON.stringify(e,t||r.replace)},parse:function(e,t){try{return JSON.parse(e,t||r.revive)}catch(t){return e}},fn:function(e,t){for(var n in r.storeAPI[e]=t,r.apis)r.apis[n][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,r){e.setItem(t,r)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,n){var o=r.inherit(r.storeAPI,function(e,t,r){return 0==arguments.length?o.getAll():"function"==typeof t?o.transact(e,t,r):void 0!==t?o.set(e,t,r):"string"==typeof e||"number"==typeof e?o.get(e):"function"==typeof e?o.each(e):e?o.setAll(e,t):o.clear()});o._id=e;try{var i="__store2_test";t.setItem(i,"ok"),o._area=t,t.removeItem(i)}catch(e){o._area=r.storage("fake")}return o._ns=n||"",r.areas[e]||(r.areas[e]=o._area),r.apis[o._ns+o._id]||(r.apis[o._ns+o._id]=o),o},storeAPI:{area:function(e,t){var n=this[e];return n&&n.area||(n=r.Store(e,t,this._ns),this[e]||(this[e]=n)),n},namespace:function(e,t,n){if(n=n||this._delim||r.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-n.length):"";var o=this[e];if((!o||!o.namespace)&&((o=r.Store(this._id,this._area,this._ns+e+n))._delim=n,this[e]||(this[e]=o),!t))for(var i in r.areas)o.area(i,r.areas[i]);return o},isFake:function(e){return e?(this._real=this._area,this._area=r.storage("fake")):!1===e&&(this._area=this._real||this._area),"fake"===this._area.name},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(e){return this._area.has?this._area.has(this._in(e)):this._in(e)in this._area},size:function(){return this.keys().length},each:function(e,t){for(var n=0,o=r.length(this._area);nr.length(this._area)&&(o--,n--)}return t||this},keys:function(e){return this.each(function(e,t,r){r.push(e)},e||[])},get:function(e,t){var n,o=r.get(this._area,this._in(e));return"function"==typeof t&&(n=t,t=null),null!==o?r.parse(o,n):null!=t?t:o},getAll:function(e){return this.each(function(e,t,r){r[e]=t},e||{})},transact:function(e,t,r){var n=this.get(e,r),o=t(n);return this.set(e,void 0===o?n:o),this},set:function(e,t,n){var o,i=this.get(e);return null!=i&&!1===n?t:("function"==typeof n&&(o=n,n=void 0),r.set(this._area,this._in(e),r.stringify(t,o),n)||i)},setAll:function(e,t){var r,n;for(var o in e)n=e[o],this.set(o,n,t)!==n&&(r=!0);return r},add:function(e,t,n){var o=this.get(e);if(o instanceof Array)t=o.concat(t);else if(null!==o){var i=typeof o;if(i===typeof t&&"object"===i){for(var a in t)o[a]=t[a];t=o}else t=o+t}return r.set(this._area,this._in(e),r.stringify(t,n)),t},remove:function(e,t){var n=this.get(e,t);return r.remove(this._area,this._in(e)),n},clear:function(){return this._ns?this.each(function(e){r.remove(this._area,this._in(e))},1):r.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in r.areas)r.areas.hasOwnProperty(t)&&(this._area=r.areas[t],this.clear());return this._area=e,this},_in:function(e){return"string"!=typeof e&&(e=r.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&0===e.indexOf(this._ns)?e.substring(this._ns.length):void 0:e}},storage:function(e){return r.inherit(r.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var r in this.items)if(this.has(r)&&e===t++)return r},setItem:function(e,t){!this.has(e)&&this.length++,this.items[e]=t},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}}).Store("local",function(){try{return localStorage}catch(e){}}())).local=n,n._=r,n.area("session",function(){try{return sessionStorage}catch(e){}}()),n.area("page",r.storage("page")),"function"==typeof t&&void 0!==t.amd?t("store2",[],function(){return n}):e.exports?e.exports=n:(this.store&&(r.conflict=this.store),this.store=n)},92190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebConnection=void 0;let n=r(7117),o=r(83374);class i{constructor(e){if(Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"defaultAuthHeader",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),"JWT"===e.auth.type)this.defaultAuthHeader=`Bearer ${e.auth.access_token}`;else if("Credentials"===e.auth.type)this.defaultAuthHeader=`Basic ${btoa(`${e.auth.username}:${e.auth.password}`)}`;else throw Error(`Unknown auth type: ${e.auth.type}`)}async query(e){let t=a(e.query_id),r=(0,n.withHttpSettings)(e.clickhouse_settings,this.params.compression.decompress_response),o=(0,n.toSearchParams)({database:this.params.database,clickhouse_settings:r,query_params:e.query_params,session_id:e.session_id,role:e.role,query_id:t}),i=await this.request({body:e.query,params:e,searchParams:o});return{query_id:t,stream:i.body||new ReadableStream,response_headers:s(i)}}async exec(e){let t=await this.runExec(e);return{query_id:t.query_id,stream:t.stream||new ReadableStream,response_headers:t.response_headers}}async command(e){let{stream:t,query_id:r,response_headers:n}=await this.runExec(e);return null!==t&&await t.cancel(),{query_id:r,response_headers:n}}async insert(e){let t=a(e.query_id),r=(0,n.toSearchParams)({database:this.params.database,clickhouse_settings:e.clickhouse_settings,query_params:e.query_params,query:e.query,session_id:e.session_id,role:e.role,query_id:t}),o=await this.request({body:e.values,params:e,searchParams:r});return null!==o.body&&await o.text(),{query_id:t,response_headers:s(o)}}async ping(){try{let e=await this.request({body:null,searchParams:(0,n.toSearchParams)({database:void 0,query:"SELECT 'ping'",query_id:a(void 0)}),method:"GET"});return null!==e.body&&await e.body.cancel(),{success:!0}}catch(e){if(e instanceof Error)return{success:!1,error:e};throw e}}async close(){}async request({body:e,params:t,searchParams:r,pathname:i,method:a}){let s=(0,n.transformUrl)({url:this.params.url,pathname:i,searchParams:r}).toString(),u=new AbortController,l=!1,c=setTimeout(()=>{l=!0,u.abort()},this.params.request_timeout),p=!1;t?.abort_signal!==void 0&&(t.abort_signal.onabort=()=>{p=!0,u.abort()});try{let r=(0,n.withCompressionHeaders)({headers:this.defaultHeadersWithOverride(t),enable_request_compression:!1,enable_response_compression:this.params.compression.decompress_response}),i=this.params.fetch??fetch,l=await i(s,{body:e,headers:r,keepalive:this.params.keep_alive.enabled,method:a??"POST",signal:u.signal});if(clearTimeout(c),(0,n.isSuccessfulResponse)(l.status))return l;return Promise.reject((0,n.parseError)(await (0,o.getAsText)(l.body||new ReadableStream)))}catch(e){if(clearTimeout(c),p)return Promise.reject(Error("The user aborted a request."));if(l)return Promise.reject(Error("Timeout error."));if(e instanceof Error)return Promise.reject((0,n.parseError)(e));throw e}}async runExec(e){let t=a(e.query_id),r=(0,n.toSearchParams)({database:this.params.database,clickhouse_settings:e.clickhouse_settings,query_params:e.query_params,session_id:e.session_id,role:e.role,query_id:t}),o=await this.request({body:e.query,params:e,searchParams:r});return{stream:o.body,response_headers:s(o),query_id:t}}defaultHeadersWithOverride(e){let t;return t=(0,n.isJWTAuth)(e?.auth)?`Bearer ${e?.auth.access_token}`:(0,n.isCredentialsAuth)(e?.auth)?`Basic ${btoa(`${e?.auth.username}:${e?.auth.password}`)}`:this.defaultAuthHeader,{...this.params.http_headers??{},...e?.http_headers??{},Authorization:t}}}function a(e){return e||crypto.randomUUID()}function s(e){let t={};return e.headers.forEach((e,r)=>{t[r]=e}),t}t.WebConnection=i},92786:(e,t,r)=>{var n=r(36592);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},92812:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},93248:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},94061:(e,t,r)=>{e=r.nmd(e);var n,o=function(e){"use strict";var t=c(0x20000000000000),r="0123456789abcdefghijklmnopqrstuvwxyz",n="function"==typeof BigInt;function i(e,t,r,n){return void 0===e?i[0]:void 0!==t&&(10!=+t||r)?D(e,t,r,n):B(e)}function a(e,t){this.value=e,this.sign=t,this.isSmall=!1}function s(e){this.value=e,this.sign=e<0,this.isSmall=!0}function u(e){this.value=e}function l(e){return -0x20000000000000P(e,t))switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+1e7*e[1];default:return e[0]+(e[1]+1e7*e[2])*1e7}return e}function f(e){for(var t=e.length;0===e[--t];);e.length=t+1}function h(e){for(var t=Array(e),r=-1;++r0?Math.floor(e):Math.ceil(e)}function y(e,t){var r,n,o=e.length,i=t.length,a=Array(o),s=0;for(n=0;n=1e7),a[n]=r-1e7*s;for(;n0&&a.push(s),a}function v(e,t){return e.length>=t.length?y(e,t):y(t,e)}function m(e,t){var r,n,o=e.length,i=Array(o);for(n=0;n0;)i[n++]=t%1e7,t=Math.floor(t/1e7);return i}function g(e,t){var r,n,o=e.length,i=t.length,a=Array(o),s=0;for(r=0;r0;)i[n++]=a%1e7,a=Math.floor(a/1e7);return i}function S(e,t){for(var r=[];t-- >0;)r.push(0);return r.concat(e)}function O(e,t,r){return e<1e7?new a(_(t,e),r):new a(w(t,c(e)),r)}function x(e){var t,r,n,o,i=e.length,a=h(i+i);for(n=0;n=0;--r)n=d((i=1e7*o+e[r])/t),o=i-n*t,s[r]=0|n;return[s,0|o]}function C(e,t){var r,o,l=B(t);if(n)return[new u(e.value/l.value),new u(e.value%l.value)];var y=e.value,v=l.value;if(0===v)throw Error("Cannot divide by zero");if(e.isSmall)return l.isSmall?[new s(d(y/v)),new s(y%v)]:[i[0],e];if(l.isSmall){if(1===v)return[e,i[0]];if(-1==v)return[e.negate(),i[0]];var m=Math.abs(v);if(m<1e7){r=p((o=j(y,m))[0]);var b=o[1];return(e.sign&&(b=-b),"number"==typeof r)?(e.sign!==l.sign&&(r=-r),[new s(r),new s(b)]):[new a(r,e.sign!==l.sign),new s(b)]}v=c(m)}var w=P(y,v);if(-1===w)return[i[0],e];if(0===w)return[i[e.sign===l.sign?1:-1],i[0]];r=(o=y.length+v.length<=200?function(e,t){var r,n,o,i,a,s,u,l=e.length,c=t.length,f=h(t.length),d=t[c-1],y=Math.ceil(1e7/(2*d)),v=_(e,y),m=_(t,y);for(v.length<=l&&v.push(0),m.push(0),d=m[c-1],n=l-c;n>=0;n--){for(r=1e7-1,v[n+c]!==d&&(r=Math.floor((1e7*v[n+c]+v[n+c-1])/d)),o=0,i=0,s=m.length,a=0;aP(c,t)){l.push(0);continue}n=c.length,o=1e7*c[n-1]+c[n-2],i=1e7*t[u-1]+t[u-2],n>u&&(o=(o+1)*1e7),r=Math.ceil(o/i);do{if(0>=P(a=_(t,r),c))break;r--}while(r);l.push(r),c=g(c,a)}return l.reverse(),[p(l),p(c)]}(y,v))[0];var S=e.sign!==l.sign,O=o[1],x=e.sign;return"number"==typeof r?(S&&(r=-r),r=new s(r)):r=new a(r,S),"number"==typeof O?(x&&(O=-O),O=new s(O)):O=new a(O,x),[r,O]}function P(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var r=e.length-1;r>=0;r--)if(e[r]!==t[r])return e[r]>t[r]?1:-1;return 0}function A(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function E(e,t){for(var r,n,i,a=e.prev(),s=a,u=0;s.isEven();)s=s.divide(2),u++;e:for(n=0;n=0?r=g(o,i):(r=g(i,o),t=!t),"number"==typeof(r=p(r)))?(t&&(r=-r),new s(r)):new a(r,t))},a.prototype.minus=a.prototype.subtract,s.prototype.subtract=function(e){var t=B(e),r=this.value;if(r<0!==t.sign)return this.add(t.negate());var n=t.value;return t.isSmall?new s(r-n):b(n,Math.abs(r),r>=0)},s.prototype.minus=s.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-B(e).value)},u.prototype.minus=u.prototype.subtract,a.prototype.negate=function(){return new a(this.value,!this.sign)},s.prototype.negate=function(){var e=this.sign,t=new s(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},a.prototype.abs=function(){return new a(this.value,!1)},s.prototype.abs=function(){return new s(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)},a.prototype.multiply=function(e){var t,r,n,o=B(e),s=this.value,u=o.value,l=this.sign!==o.sign;if(o.isSmall){if(0===u)return i[0];if(1===u)return this;if(-1===u)return this.negate();if((n=Math.abs(u))<1e7)return new a(_(s,n),l);u=c(n)}return -.012*(t=s.length)-.012*(r=u.length)+15e-6*t*r>0?new a(function e(t,r){var n=Math.max(t.length,r.length);if(n<=30)return w(t,r);n=Math.ceil(n/2);var o=t.slice(n),i=t.slice(0,n),a=r.slice(n),s=r.slice(0,n),u=e(i,s),l=e(o,a),c=e(v(i,o),v(s,a)),p=v(v(u,S(g(g(c,u),l),n)),S(l,2*n));return f(p),p}(s,u),l):new a(w(s,u),l)},a.prototype.times=a.prototype.multiply,s.prototype._multiplyBySmall=function(e){return l(e.value*this.value)?new s(e.value*this.value):O(Math.abs(e.value),c(Math.abs(this.value)),this.sign!==e.sign)},a.prototype._multiplyBySmall=function(e){return 0===e.value?i[0]:1===e.value?this:-1===e.value?this.negate():O(Math.abs(e.value),this.value,this.sign!==e.sign)},s.prototype.multiply=function(e){return B(e)._multiplyBySmall(this)},s.prototype.times=s.prototype.multiply,u.prototype.multiply=function(e){return new u(this.value*B(e).value)},u.prototype.times=u.prototype.multiply,a.prototype.square=function(){return new a(x(this.value),!1)},s.prototype.square=function(){var e=this.value*this.value;return l(e)?new s(e):new a(x(c(Math.abs(this.value))),!1)},u.prototype.square=function(e){return new u(this.value*this.value)},a.prototype.divmod=function(e){var t=C(this,e);return{quotient:t[0],remainder:t[1]}},u.prototype.divmod=s.prototype.divmod=a.prototype.divmod,a.prototype.divide=function(e){return C(this,e)[0]},u.prototype.over=u.prototype.divide=function(e){return new u(this.value/B(e).value)},s.prototype.over=s.prototype.divide=a.prototype.over=a.prototype.divide,a.prototype.mod=function(e){return C(this,e)[1]},u.prototype.mod=u.prototype.remainder=function(e){return new u(this.value%B(e).value)},s.prototype.remainder=s.prototype.mod=a.prototype.remainder=a.prototype.mod,a.prototype.pow=function(e){var t,r,n,o=B(e),a=this.value,u=o.value;if(0===u)return i[1];if(0===a)return i[0];if(1===a)return i[1];if(-1===a)return o.isEven()?i[1]:i[-1];if(o.sign)return i[0];if(!o.isSmall)throw Error("The exponent "+o.toString()+" is too large.");if(this.isSmall&&l(t=Math.pow(a,u)))return new s(d(t));for(r=this,n=i[1];!0&u&&(n=n.times(r),--u),0!==u;)u/=2,r=r.square();return n},s.prototype.pow=a.prototype.pow,u.prototype.pow=function(e){var t=B(e),r=this.value,n=t.value,o=BigInt(0),a=BigInt(1),s=BigInt(2);if(n===o)return i[1];if(r===o)return i[0];if(r===a)return i[1];if(r===BigInt(-1))return t.isEven()?i[1]:i[-1];if(t.isNegative())return new u(o);for(var l=this,c=i[1];(n&a)===a&&(c=c.times(l),--n),n!==o;)n/=s,l=l.square();return c},a.prototype.modPow=function(e,t){if(e=B(e),(t=B(t)).isZero())throw Error("Cannot take modPow with modulus 0");var r=i[1],n=this.mod(t);for(e.isNegative()&&(e=e.multiply(i[-1]),n=n.modInv(t));e.isPositive();){if(n.isZero())return i[0];e.isOdd()&&(r=r.multiply(n).mod(t)),e=e.divide(2),n=n.square().mod(t)}return r},u.prototype.modPow=s.prototype.modPow=a.prototype.modPow,a.prototype.compareAbs=function(e){var t=B(e),r=this.value,n=t.value;return t.isSmall?1:P(r,n)},s.prototype.compareAbs=function(e){var t=B(e),r=Math.abs(this.value),n=t.value;return t.isSmall?r===(n=Math.abs(n))?0:r>n?1:-1:-1},u.prototype.compareAbs=function(e){var t=this.value,r=B(e).value;return(t=t>=0?t:-t)===(r=r>=0?r:-r)?0:t>r?1:-1},a.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=B(e),r=this.value,n=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:P(r,n)*(this.sign?-1:1)},a.prototype.compareTo=a.prototype.compare,s.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=B(e),r=this.value,n=t.value;return t.isSmall?r==n?0:r>n?1:-1:r<0!==t.sign?r<0?-1:1:r<0?1:-1},s.prototype.compareTo=s.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=this.value,r=B(e).value;return t===r?0:t>r?1:-1},u.prototype.compareTo=u.prototype.compare,a.prototype.equals=function(e){return 0===this.compare(e)},u.prototype.eq=u.prototype.equals=s.prototype.eq=s.prototype.equals=a.prototype.eq=a.prototype.equals,a.prototype.notEquals=function(e){return 0!==this.compare(e)},u.prototype.neq=u.prototype.notEquals=s.prototype.neq=s.prototype.notEquals=a.prototype.neq=a.prototype.notEquals,a.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=s.prototype.gt=s.prototype.greater=a.prototype.gt=a.prototype.greater,a.prototype.lesser=function(e){return 0>this.compare(e)},u.prototype.lt=u.prototype.lesser=s.prototype.lt=s.prototype.lesser=a.prototype.lt=a.prototype.lesser,a.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=s.prototype.geq=s.prototype.greaterOrEquals=a.prototype.geq=a.prototype.greaterOrEquals,a.prototype.lesserOrEquals=function(e){return 0>=this.compare(e)},u.prototype.leq=u.prototype.lesserOrEquals=s.prototype.leq=s.prototype.lesserOrEquals=a.prototype.leq=a.prototype.lesserOrEquals,a.prototype.isEven=function(){return(1&this.value[0])==0},s.prototype.isEven=function(){return(1&this.value)==0},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},a.prototype.isOdd=function(){return(1&this.value[0])==1},s.prototype.isOdd=function(){return(1&this.value)==1},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},a.prototype.isPositive=function(){return!this.sign},s.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=s.prototype.isPositive,a.prototype.isNegative=function(){return this.sign},s.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=s.prototype.isNegative,a.prototype.isUnit=function(){return!1},s.prototype.isUnit=function(){return 1===Math.abs(this.value)},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},a.prototype.isZero=function(){return!1},s.prototype.isZero=function(){return 0===this.value},u.prototype.isZero=function(){return this.value===BigInt(0)},a.prototype.isDivisibleBy=function(e){var t=B(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},u.prototype.isDivisibleBy=s.prototype.isDivisibleBy=a.prototype.isDivisibleBy,a.prototype.isPrime=function(e){var t=A(this);if(void 0!==t)return t;var r=this.abs(),n=r.bitLength();if(n<=64)return E(r,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var i=Math.log(2)*n.toJSNumber(),a=Math.ceil(!0===e?2*Math.pow(i,2):i),s=[],u=0;u-0x20000000000000?new s(e-1):new a(t,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var k=[1];2*k[k.length-1]<=1e7;)k.push(2*k[k.length-1]);var N=k.length,T=k[N-1];function R(e){return 1e7>=Math.abs(e)}function I(e,t,r){t=B(t);for(var n=e.isNegative(),i=t.isNegative(),a=n?e.not():e,s=i?t.not():t,u=0,l=0,c=null,p=null,f=[];!a.isZero()||!s.isZero();)u=(c=C(a,T))[1].toJSNumber(),n&&(u=T-1-u),l=(p=C(s,T))[1].toJSNumber(),i&&(l=T-1-l),a=c[0],s=p[0],f.push(r(u,l));for(var h=0!==r(+!!n,+!!i)?o(-1):o(0),d=f.length-1;d>=0;d-=1)h=h.multiply(T).add(o(f[d]));return h}a.prototype.shiftLeft=function(e){var t=B(e).toJSNumber();if(!R(t))throw Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var r=this;if(r.isZero())return r;for(;t>=N;)r=r.multiply(T),t-=N-1;return r.multiply(k[t])},u.prototype.shiftLeft=s.prototype.shiftLeft=a.prototype.shiftLeft,a.prototype.shiftRight=function(e){var t,r=B(e).toJSNumber();if(!R(r))throw Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var n=this;r>=N;){if(n.isZero()||n.isNegative()&&n.isUnit())return n;n=(t=C(n,T))[1].isNegative()?t[0].prev():t[0],r-=N-1}return(t=C(n,k[r]))[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=s.prototype.shiftRight=a.prototype.shiftRight,a.prototype.not=function(){return this.negate().prev()},u.prototype.not=s.prototype.not=a.prototype.not,a.prototype.and=function(e){return I(this,e,function(e,t){return e&t})},u.prototype.and=s.prototype.and=a.prototype.and,a.prototype.or=function(e){return I(this,e,function(e,t){return e|t})},u.prototype.or=s.prototype.or=a.prototype.or,a.prototype.xor=function(e){return I(this,e,function(e,t){return e^t})},u.prototype.xor=s.prototype.xor=a.prototype.xor;function M(e){var t=e.value,r="number"==typeof t?0x40000000|t:"bigint"==typeof t?t|BigInt(0x40000000):t[0]+1e7*t[1]|0x40004000;return r&-r}function q(e,t){return e=B(e),t=B(t),e.greater(t)?e:t}function L(e,t){return e=B(e),t=B(t),e.lesser(t)?e:t}function U(e,t){if(e=B(e).abs(),t=B(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var r,n,o=i[1];e.isEven()&&t.isEven();)r=L(M(e),M(t)),e=e.divide(r),t=t.divide(r),o=o.multiply(r);for(;e.isEven();)e=e.divide(M(e));do{for(;t.isEven();)t=t.divide(M(t));e.greater(t)&&(n=t,t=e,e=n),t=t.subtract(e)}while(!t.isZero());return o.isUnit()?e:e.multiply(o)}a.prototype.bitLength=function(){var e=this;return(0>e.compareTo(o(0))&&(e=e.negate().subtract(o(1))),0===e.compareTo(o(0)))?o(0):o(function e(t,r){if(0>=r.compareTo(t)){var n=e(t,r.square(r)),i=n.p,a=n.e,s=i.multiply(r);return 0>=s.compareTo(t)?{p:s,e:2*a+1}:{p:i,e:2*a}}return{p:o(1),e:0}}(e,o(2)).e).add(o(1))},u.prototype.bitLength=s.prototype.bitLength=a.prototype.bitLength;var D=function(e,t,n,o){n=n||r,e=String(e),o||(e=e.toLowerCase(),n=n.toLowerCase());var i,a=e.length,s=Math.abs(t),u={};for(i=0;i=s){if("1"===l&&1===s)continue;throw Error(l+" is not a valid digit in base "+t+".")}}t=B(t);var c=[],p="-"===e[0];for(i=+!!p;i"!==e[i]&&i=0;n--)o=o.add(e[n].times(a)),a=a.times(t);return r?o.negate():o}function J(e,t){if((t=o(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var n=!1;if(e.isNegative()&&t.isPositive()&&(n=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n};for(var i,a=[],s=e;s.isNegative()||s.compareAbs(t)>=0;){s=(i=s.divmod(t)).quotient;var u=i.remainder;u.isNegative()&&(u=t.minus(u).abs(),s=s.next()),a.push(u.toJSNumber())}return a.push(s.toJSNumber()),{value:a.reverse(),isNegative:n}}function $(e,t,n){var o=J(e,t);return(o.isNegative?"-":"")+o.value.map(function(e){var t;return e<(t=(t=n)||r).length?t[e]:"<"+e+">"}).join("")}function W(e){if(l(+e)){var t=+e;if(t===d(t))return n?new u(BigInt(t)):new s(t);throw Error("Invalid integer: "+e)}var r="-"===e[0];r&&(e=e.slice(1));var o=e.split(/e/i);if(o.length>2)throw Error("Invalid integer: "+o.join("e"));if(2===o.length){var i=o[1];if("+"===i[0]&&(i=i.slice(1)),(i*=1)!==d(i)||!l(i))throw Error("Invalid integer: "+i+" is not a valid exponent.");var c=o[0],p=c.indexOf(".");if(p>=0&&(i-=c.length-p-1,c=c.slice(0,p)+c.slice(p+1)),i<0)throw Error("Cannot include negative exponent part for integers");c+=Array(i+1).join("0"),e=c}if(!/^([0-9][0-9]*)$/.test(e))throw Error("Invalid integer: "+e);if(n)return new u(BigInt(r?"-"+e:e));for(var h=[],y=e.length,v=y-7;y>0;)h.push(+e.slice(v,y)),(v-=7)<0&&(v=0),y-=7;return f(h),new a(h,r)}function B(e){if("number"==typeof e){if(n)return new u(BigInt(e));if(l(e)){if(e!==d(e))throw Error(e+" is not an integer.");return new s(e)}return W(e.toString())}return"string"==typeof e?W(e):"bigint"==typeof e?new u(e):e}a.prototype.toArray=function(e){return J(this,e)},s.prototype.toArray=function(e){return J(this,e)},u.prototype.toArray=function(e){return J(this,e)},a.prototype.toString=function(e,t){if(void 0===e&&(e=10),10!==e||t)return $(this,e,t);for(var r,n=this.value,o=n.length,i=String(n[--o]);--o>=0;)r=String(n[o]),i+="0000000".slice(r.length)+r;return(this.sign?"-":"")+i},s.prototype.toString=function(e,t){return(void 0===e&&(e=10),10!=e||t)?$(this,e,t):String(this.value)},u.prototype.toString=s.prototype.toString,u.prototype.toJSON=a.prototype.toJSON=s.prototype.toJSON=function(){return this.toString()},a.prototype.valueOf=function(){return parseInt(this.toString(),10)},a.prototype.toJSNumber=a.prototype.valueOf,s.prototype.valueOf=function(){return this.value},s.prototype.toJSNumber=s.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var H=0;H<1e3;H++)i[H]=B(H),H>0&&(i[-H]=B(-H));return i.one=i[1],i.zero=i[0],i.minusOne=i[-1],i.max=q,i.min=L,i.gcd=U,i.lcm=function(e,t){return e=B(e).abs(),t=B(t).abs(),e.divide(U(e,t)).multiply(t)},i.isInstance=function(e){return e instanceof a||e instanceof s||e instanceof u},i.randBetween=function(e,t,r){e=B(e);var n=r||Math.random,o=L(e,t=B(t)),a=q(e,t).subtract(o).add(1);if(a.isSmall)return o.add(Math.floor(n()*a));for(var s=J(a,1e7).value,u=[],l=!0,c=0;c{var n=r(620),o=r(4650),i=r(50874);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},95345:(e,t,r)=>{var n=r(4650);e.exports=function(){this.__data__=new n,this.size=0}},97397:(e,t,r)=>{e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},97722:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=function(e){return new i({impl:o.WebImpl,...e||{}})};let n=r(7117),o=r(30110);class i extends n.ClickHouseClient{query(e){return super.query(e)}}},98499:(e,t,r)=>{var n=r(33573),o=r(23356);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},99048:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},99469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProgressRow=function(e){return null!==e&&"object"==typeof e&&"progress"in e&&1===Object.keys(e).length},t.isRow=function(e){return null!==e&&"object"==typeof e&&"row"in e&&1===Object.keys(e).length},t.isException=function(e){return null!==e&&"object"==typeof e&&"exception"in e&&1===Object.keys(e).length}},99496:(e,t)=>{"use strict";async function r(e){await new Promise(t=>setTimeout(()=>{t(void 0)},e))}Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=r}}]); \ No newline at end of file +${o}`}return e};let r=/(Code|Error): (?\d+).*Exception: (?.+)\((?(?=.+[A-Z]{3})[A-Z0-9_]+?)\)/s;class n extends Error{constructor({message:e,code:t,type:r}){super(e),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t,this.type=r,Object.setPrototypeOf(this,n.prototype)}}t.ClickHouseError=n},83374:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(28506),t),o(r(83866),t)},83801:(e,t,r)=>{var n=r(53140),o=r(3619);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},83866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebValuesEncoder=void 0;let n=r(7117),o=r(28506);class i{encodeValues(e,t){if(a(e),Array.isArray(e))return e.map(e=>(0,n.encodeJSON)(e,t)).join("");if("object"==typeof e)return(0,n.encodeJSON)(e,t);throw Error(`Cannot encode values of type ${typeof e} with ${t} format`)}validateInsertValues(e){if(a(e),!Array.isArray(e)&&"object"!=typeof e)throw Error(`Insert expected "values" to be an array or a JSON object, got: ${typeof e}`)}}function a(e){if((0,o.isStream)(e))throw Error("Streaming is not supported for inserts in the web version of the client")}t.WebValuesEncoder=i},83965:(e,t,r)=>{var n=r(65517),o=r(12342);e.exports=function e(t,r,i,a,s){var u=-1,l=t.length;for(i||(i=o),s||(s=[]);++u0&&i(c)?r>1?e(c,r-1,i,a,s):n(s,c):a||(s[s.length]=c)}return s}},84536:(e,t,r)=>{var n=r(43233),o=r(8546);e.exports=function(e,t){return n(e,t,function(t,r){return o(e,r)})}},85008:(e,t,r)=>{var n=r(28676);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},86347:(e,t,r)=>{var n=r(33863),o=r(1278),i=r(5549);e.exports=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i},86414:(e,t,r)=>{var n=r(89139);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},87274:(e,t,r)=>{var n=r(52634),o=r(5461);e.exports=function(e,t){return n(e,o(e),t)}},87567:(e,t,r)=>{var n=r(29778),o=r(43701),i=r(16799);e.exports=function(e){return i(e)?n(e):o(e)}},87568:(e,t,r)=>{var n=r(91357),o=r(10858),i=r(23282);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},87710:(e,t,r)=>{var n=r(25248),o=r(16419),i=r(46448),a=r(43092);e.exports=function(e,t){return t=n(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},88165:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n{var n=r(52634),o=r(70720);e.exports=function(e,t){return e&&n(t,o(t),e)}},88601:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r{"use strict";function t(e,r,n,o){this.message=e,this.expected=r,this.found=n,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}function r(){this.constructor=t}r.prototype=Error.prototype,t.prototype=new r,t.buildMessage=function(e,t){var r={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t,r="";for(t=0;t0){for(n=1,o=1;n":r[0],o.right=n),o},f=function(e,t,r){var n={left:e},r=0==r.length?null:null==r[0].right?r[0].left:r[0];return null!=r&&(n.operator=""==t?"":t[0],n.right=r),n},h=ey("(",!1),d=ey(")",!1),y=function(e,t){var r={field:null==e||""==e.label?"":e.label,fieldLocation:null==e||""==e.label?null:e.location};for(var n in t)r[n]=t[n];return r},v=/^[:]/,m=ev([":"],!1,!1),g=function(e,t,r,n){var o={term:t,quoted:!0,regex:!1,termLocation:eg(ec,el)};return""!=r&&(o.proximity=r),""!=n&&(o.boost=n),""!=e&&(o.prefix=e),o},b=function(e,t,r,n){var o={term:t.label,quoted:!1,regex:!1,termLocation:eg(ec,el)};return""!=r&&(o.similarity=r),""!=n&&(o.boost=n),""!=e&&(o.prefix=e),o},w=ey("\\",!1),_=function(e){return"\\"+e},S=ey(".",!1),x=/^[^ \t\r\n\f{}()"\/\^~[\]]/,O=ev([" "," ","\r","\n","\f","{","}","(",")",'"',"/","^","~","[","]"],!0,!1),j=/^[^: \t\r\n\f{}()"\^~[\]]/,C=ev([":"," "," ","\r","\n","\f","{","}","(",")",'"',"^","~","[","]"],!0,!1),P=ey('"',!1),A=ey("/",!1),E={type:"any"},k=ey("+",!1),N=ey("-",!1),T=ey("!",!1),R=ey("{",!1),I=ey("}",!1),M=ey("[",!1),q=ey("]",!1),L=ey("^",!1),D=ey("?",!1),U=ey(":",!1),F=ey("&",!1),J=ey("|",!1),$=ey("'",!1),W=ey("~",!1),B=ey("*",!1),H=ey(" ",!1),z=ey("0.",!1),V=/^[0-9]/,Q=ev([["0","9"]],!1,!1),Z=ey("TO",!1),G=function(e){return e},Y="OR NOT",K=ey("OR NOT",!1),X="AND NOT",ee=ey("AND NOT",!1),et=ey("OR",!1),er=ey("AND",!1),en=ey("NOT",!1),eo=ey("||",!1),ei=ey("&&",!1),ea={type:"other",description:"whitespace"},es=/^[ \t\r\n\f]/,eu=ev([" "," ","\r","\n","\f"],!1,!1),el=0,ec=0,ep=[{line:1,column:1}],ef=0,eh=[],ed=0;if("startRule"in r){if(!(r.startRule in u))throw Error("Can't start parsing from rule \""+r.startRule+'".');l=u[r.startRule]}function ey(e,t){return{type:"literal",text:e,ignoreCase:t}}function ev(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function em(t){var r,n=ep[t];if(n)return n;for(r=t-1;!ep[r];)r--;for(n={line:(n=ep[r]).line,column:n.column};ref&&(ef=el,eh=[]),eh.push(e))}function ew(){var e,t,r,n;for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();if(t!==s){if(r=[],(n=e_())!==s)for(;n!==s;)r.push(n),n=e_();else r=s;r!==s?(ec=e,e=t=r[0]):(el=e,e=s)}else el=e,e=s;if(e===s){for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();t!==s&&(ec=e,t=c()),(e=t)===s&&(e=el,(t=eD())!==s&&(ec=e,t=c()),e=t)}return e}function e_(){var e,t,r,n,o,i;if((e=el,(t=eI())!==s&&(r=eD())!==s)?(ec=e,e=t={operator:t}):(el=e,e=s),e===s){if(e=el,(t=eI())!==s)if((r=eS())!==s){for(n=[],o=eI();o!==s;)n.push(o),o=eI();if(n!==s){for(o=[],i=e_();i!==s;)o.push(i),i=e_();o!==s?(ec=e,e=t=p(t,r,n,o)):(el=e,e=s)}else el=e,e=s}else el=e,e=s;else el=e,e=s;if(e===s&&((e=el,(t=eI())!==s&&(r=e_())!==s)?(ec=e,e=t=r):(el=e,e=s),e===s))if(e=el,(t=eS())!==s){for(r=[],n=eI();n!==s;)r.push(n),n=eI();if(r!==s){for(n=[],o=e_();o!==s;)n.push(o),o=e_();n!==s?(ec=e,e=t=f(t,r,n)):(el=e,e=s)}else el=e,e=s}else el=e,e=s}return e}function eS(){var t,r,n,o,i,a,u,l,c,p,f;if(t=el,(i=el,(a=eO())===s&&(a=null),a!==s&&(u=function(){var t,r,n,o,i,a,u,l;if(t=el,91===e.charCodeAt(el)?(r="[",el++):(r=s,0===ed&&eb(M)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(93===e.charCodeAt(el)?(l="]",el++):(l=s,0===ed&&eb(q)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"both"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s){if(t=el,123===e.charCodeAt(el)?(r="{",el++):(r=s,0===ed&&eb(R)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(125===e.charCodeAt(el)?(l="}",el++):(l=s,0===ed&&eb(I)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"none"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s){if(t=el,91===e.charCodeAt(el)?(r="[",el++):(r=s,0===ed&&eb(M)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(125===e.charCodeAt(el)?(l="}",el++):(l=s,0===ed&&eb(I)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"left"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s)if(t=el,123===e.charCodeAt(el)?(r="{",el++):(r=s,0===ed&&eb(R)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(93===e.charCodeAt(el)?(l="]",el++):(l=s,0===ed&&eb(q)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"right"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s}}return t}())!==s)?(ec=i,l=a,(c=u).field=null==l||""==l.label?"":l.label,c.fieldLocation=null==l||""==l.label?null:l.location,i=a=c):(el=i,i=s),i===s&&((i=el,(a=eO())!==s&&(u=ex())!==s)?(ec=i,p=a,(f=u).field=p.label,f.fieldLocation=p.location,i=a=f):(el=i,i=s),i===s&&(i=el,(a=eO())===s&&(a=null),a!==s&&(u=function(){var t,r,n,o,i,a,u,l,c,p,f,h,d,y;if(t=el,(r=eq())===s&&(r=null),r!==s)if((n=function(){var t,r,n,o;if(t=el,34===e.charCodeAt(el)?(r='"',el++):(r=s,0===ed&&eb(P)),r!==s){for(n=[],o=eE();o!==s;)n.push(o),o=eE();n!==s&&(34===e.charCodeAt(el)?(o='"',el++):(o=s,0===ed&&eb(P)),o!==s)?(ec=t,t=r=n.join("")):(el=t,t=s)}else el=t,t=s;return t}())!==s){if((l=el,126===e.charCodeAt(el)?(c="~",el++):(c=s,0===ed&&eb(W)),c!==s&&(p=eR())!==s)?(ec=l,l=c=p):(el=l,l=s),(o=l)===s&&(o=null),o!==s)if((i=eN())===s&&(i=null),i!==s){for(a=[],u=eL();u!==s;)a.push(u),u=eL();a!==s?(ec=t,t=r=g(r,n,o,i)):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s)if(t=el,(r=eq())===s&&(r=null),r!==s)if((n=eP())!==s){if((f=el,126===e.charCodeAt(el)?(h="~",el++):(h=s,0===ed&&eb(W)),h!==s&&((d=eT())===s&&(d=null),d!==s))?(ec=f,f=h=""==(y=d)||null==y?.5:y):(el=f,f=s),(o=f)===s&&(o=null),o!==s)if((i=eN())===s&&(i=null),i!==s){for(a=[],u=eL();u!==s;)a.push(u),u=eL();a!==s?(ec=t,t=r=b(r,n,o,i)):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;return t}())!==s?(ec=i,i=a=y(a,u)):(el=i,i=s))),(r=i)!==s){for(n=[],o=eL();o!==s;)n.push(o),o=eL();n!==s?(ec=t,t=r):(el=t,t=s)}else el=t,t=s;return t===s&&(t=ex()),t}function ex(){var t,r,n,o,i,a,u,l;if(t=el,40===e.charCodeAt(el)?(r="(",el++):(r=s,0===ed&&eb(h)),r!==s){for(n=[],o=eL();o!==s;)n.push(o),o=eL();if(n!==s){if(o=[],(i=e_())!==s)for(;i!==s;)o.push(i),i=e_();else o=s;if(o!==s)if(41===e.charCodeAt(el)?(i=")",el++):(i=s,0===ed&&eb(d)),i!==s){for(a=[],u=eL();u!==s;)a.push(u),u=eL();a!==s?(ec=t,(l=o)[0].parenthesized=!0,t=r=l[0]):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s}else el=t,t=s;return t}function eO(){var t,r,n,o,i,a;if(t=el,(r=eP())!==s)if(v.test(e.charAt(el))?(n=e.charAt(el),el++):(n=s,0===ed&&eb(m)),n!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();o!==s?(ec=t,t=r={label:(a=r).label,location:a.location}):(el=t,t=s)}else el=t,t=s;else el=t,t=s;return t}function ej(){var t,r,n;return t=el,92===e.charCodeAt(el)?(r="\\",el++):(r=s,0===ed&&eb(w)),r!==s&&(n=ek())!==s?(ec=t,t=r=_(n)):(el=t,t=s),t===s&&(46===e.charCodeAt(el)?(t=".",el++):(t=s,0===ed&&eb(S)),t===s&&(x.test(e.charAt(el))?(t=e.charAt(el),el++):(t=s,0===ed&&eb(O)))),t}function eC(){var e,t,r;if(e=el,t=[],(r=ej())!==s)for(;r!==s;)t.push(r),r=ej();else t=s;return t!==s&&(ec=e,t=t.join("")),t}function eP(){var e,t,r;if(e=el,t=[],(r=eA())!==s)for(;r!==s;)t.push(r),r=eA();else t=s;return t!==s&&(ec=e,t={label:t.join(""),location:eg(ec,el)}),t}function eA(){var t,r,n;return t=el,92===e.charCodeAt(el)?(r="\\",el++):(r=s,0===ed&&eb(w)),r!==s&&(n=ek())!==s?(ec=t,t=r=_(n)):(el=t,t=s),t===s&&(46===e.charCodeAt(el)?(t=".",el++):(t=s,0===ed&&eb(S)),t===s&&(j.test(e.charAt(el))?(t=e.charAt(el),el++):(t=s,0===ed&&eb(C)))),t}function eE(){var t,r,n;return(t=el,r=el,ed++,34===e.charCodeAt(el)?(n='"',el++):(n=s,0===ed&&eb(P)),n===s&&(92===e.charCodeAt(el)?(n="\\",el++):(n=s,0===ed&&eb(w))),ed--,n===s?r=void 0:(el=r,r=s),r!==s&&(e.length>el?(n=e.charAt(el),el++):(n=s,0===ed&&eb(E)),n!==s))?(ec=t,t=r=n):(el=t,t=s),t===s&&(t=el,92===e.charCodeAt(el)?(r="\\",el++):(r=s,0===ed&&eb(w)),r!==s&&(n=ek())!==s?(ec=t,t=r=_(n)):(el=t,t=s)),t}function ek(){var t;return 43===e.charCodeAt(el)?(t="+",el++):(t=s,0===ed&&eb(k)),t===s&&(45===e.charCodeAt(el)?(t="-",el++):(t=s,0===ed&&eb(N)),t===s&&(33===e.charCodeAt(el)?(t="!",el++):(t=s,0===ed&&eb(T)),t===s&&(40===e.charCodeAt(el)?(t="(",el++):(t=s,0===ed&&eb(h)),t===s&&(41===e.charCodeAt(el)?(t=")",el++):(t=s,0===ed&&eb(d)),t===s&&(123===e.charCodeAt(el)?(t="{",el++):(t=s,0===ed&&eb(R)),t===s&&(125===e.charCodeAt(el)?(t="}",el++):(t=s,0===ed&&eb(I)),t===s&&(91===e.charCodeAt(el)?(t="[",el++):(t=s,0===ed&&eb(M)),t===s&&(93===e.charCodeAt(el)?(t="]",el++):(t=s,0===ed&&eb(q)),t===s&&(94===e.charCodeAt(el)?(t="^",el++):(t=s,0===ed&&eb(L)),t===s&&(34===e.charCodeAt(el)?(t='"',el++):(t=s,0===ed&&eb(P)),t===s&&(63===e.charCodeAt(el)?(t="?",el++):(t=s,0===ed&&eb(D)),t===s&&(58===e.charCodeAt(el)?(t=":",el++):(t=s,0===ed&&eb(U)),t===s&&(92===e.charCodeAt(el)?(t="\\",el++):(t=s,0===ed&&eb(w)),t===s&&(38===e.charCodeAt(el)?(t="&",el++):(t=s,0===ed&&eb(F)),t===s&&(124===e.charCodeAt(el)?(t="|",el++):(t=s,0===ed&&eb(J)),t===s&&(39===e.charCodeAt(el)?(t="'",el++):(t=s,0===ed&&eb($)),t===s&&(47===e.charCodeAt(el)?(t="/",el++):(t=s,0===ed&&eb(A)),t===s&&(126===e.charCodeAt(el)?(t="~",el++):(t=s,0===ed&&eb(W)),t===s&&(42===e.charCodeAt(el)?(t="*",el++):(t=s,0===ed&&eb(B)),t===s&&(32===e.charCodeAt(el)?(t=" ",el++):(t=s,0===ed&&eb(H)))))))))))))))))))))),t}function eN(){var t,r,n,o;if(t=el,94===e.charCodeAt(el)?(r="^",el++):(r=s,0===ed&&eb(L)),r!==s){if((o=eT())===s&&(o=eR()),(n=o)!==s)ec=t,t=r=n;else el=t,t=s}else el=t,t=s;return t}function eT(){var t,r,n,o;if(t=el,"0."===e.substr(el,2)?(r="0.",el+=2):(r=s,0===ed&&eb(z)),r!==s){if(n=[],V.test(e.charAt(el))?(o=e.charAt(el),el++):(o=s,0===ed&&eb(Q)),o!==s)for(;o!==s;)n.push(o),V.test(e.charAt(el))?(o=e.charAt(el),el++):(o=s,0===ed&&eb(Q));else n=s;n!==s?(ec=t,t=r=parseFloat("0."+n.join(""))):(el=t,t=s)}else el=t,t=s;return t}function eR(){var t,r,n;if(t=el,r=[],V.test(e.charAt(el))?(n=e.charAt(el),el++):(n=s,0===ed&&eb(Q)),n!==s)for(;n!==s;)r.push(n),V.test(e.charAt(el))?(n=e.charAt(el),el++):(n=s,0===ed&&eb(Q));else r=s;return r!==s&&(ec=t,r=parseInt(r.join(""))),r}function eI(){var e,t,r,n,o;for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();if(t!==s)if((r=eM())!==s){if(n=[],(o=eL())!==s)for(;o!==s;)n.push(o),o=eL();else n=s;n!==s?(ec=e,e=t=G(r)):(el=e,e=s)}else el=e,e=s;else el=e,e=s;if(e===s){for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();t!==s&&(r=eM())!==s&&(n=eD())!==s?(ec=e,e=t=G(r)):(el=e,e=s)}return e}function eM(){var t;return e.substr(el,6)===Y?(t=Y,el+=6):(t=s,0===ed&&eb(K)),t===s&&(e.substr(el,7)===X?(t=X,el+=7):(t=s,0===ed&&eb(ee)),t===s&&("OR"===e.substr(el,2)?(t="OR",el+=2):(t=s,0===ed&&eb(et)),t===s&&("AND"===e.substr(el,3)?(t="AND",el+=3):(t=s,0===ed&&eb(er)),t===s&&("NOT"===e.substr(el,3)?(t="NOT",el+=3):(t=s,0===ed&&eb(en)),t===s&&("||"===e.substr(el,2)?(t="||",el+=2):(t=s,0===ed&&eb(eo)),t===s&&("&&"===e.substr(el,2)?(t="&&",el+=2):(t=s,0===ed&&eb(ei)))))))),t}function eq(){var t,r,n,o;for(t=el,r=[],n=eL();n!==s;)r.push(n),n=eL();return r!==s&&(43===e.charCodeAt(el)?(o="+",el++):(o=s,0===ed&&eb(k)),o===s&&(45===e.charCodeAt(el)?(o="-",el++):(o=s,0===ed&&eb(N)),o===s&&(33===e.charCodeAt(el)?(o="!",el++):(o=s,0===ed&&eb(T)))),(n=o)!==s)?(ec=t,t=r=G(n)):(el=t,t=s),t}function eL(){var t,r;if(ed++,t=[],es.test(e.charAt(el))?(r=e.charAt(el),el++):(r=s,0===ed&&eb(eu)),r!==s)for(;r!==s;)t.push(r),es.test(e.charAt(el))?(r=e.charAt(el),el++):(r=s,0===ed&&eb(eu));else t=s;return ed--,t===s&&(r=s,0===ed&&eb(ea)),t}function eD(){var t,r;return t=el,ed++,e.length>el?(r=e.charAt(el),el++):(r=s,0===ed&&eb(E)),ed--,r===s?t=void 0:(el=t,t=s),t}if((a=l())!==s&&el===e.length)return a;throw a!==s&&el{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},89766:function(e){var t;t=function(){function e(t,r,n){return this.id=++e.highestId,this.name=t,this.symbols=r,this.postprocess=n,this}function t(e,t,r,n){this.rule=e,this.dot=t,this.reference=r,this.data=[],this.wantedBy=n,this.isComplete=this.dot===e.symbols.length}function r(e,t){this.grammar=e,this.index=t,this.states=[],this.wants={},this.scannable=[],this.completed={}}function n(e,t){this.rules=e,this.start=t||this.rules[0].name;var r=this.byName={};this.rules.forEach(function(e){r.hasOwnProperty(e.name)||(r[e.name]=[]),r[e.name].push(e)})}function o(){this.reset("")}function i(e,t,i){if(e instanceof n)var a=e,i=t;else var a=n.fromCompiled(e,t);for(var s in this.grammar=a,this.options={keepHistory:!1,lexer:a.lexer||new o},i||{})this.options[s]=i[s];this.lexer=this.options.lexer,this.lexerState=void 0;var u=new r(a,0);this.table=[u],u.wants[a.start]=[],u.predict(a.start),u.process(),this.current=0}function a(e){var t=typeof e;if("string"===t)return e;if("object"===t)if(e.literal)return JSON.stringify(e.literal);else if(e instanceof RegExp)return e.toString();else if(e.type)return"%"+e.type;else if(e.test)return"<"+String(e.test)+">";else throw Error("Unknown symbol type: "+e)}return e.highestId=0,e.prototype.toString=function(e){var t=void 0===e?this.symbols.map(a).join(" "):this.symbols.slice(0,e).map(a).join(" ")+" ● "+this.symbols.slice(e).map(a).join(" ");return this.name+" → "+t},t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(e){var r=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return r.left=this,r.right=e,r.isComplete&&(r.data=r.build(),r.right=void 0),r},t.prototype.build=function(){var e=[],t=this;do e.push(t.right.data),t=t.left;while(t.left);return e.reverse(),e},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,i.fail))},r.prototype.process=function(e){for(var t=this.states,r=this.wants,n=this.completed,o=0;o0&&t.push(" ^ "+n+" more lines identical to this"),n=0,t.push(" "+a)),r=a}},i.prototype.getSymbolDisplay=function(e){var t=e,r=typeof t;if("string"===r)return t;if("object"===r)if(t.literal)return JSON.stringify(t.literal);else if(t instanceof RegExp)return"character matching "+t;else if(t.type)return t.type+" token";else if(t.test)return"token matching "+String(t.test);else throw Error("Unknown symbol type: "+t)},i.prototype.buildFirstStateStack=function(e,t){if(-1!==t.indexOf(e))return null;if(0===e.wantedBy.length)return[e];var r=e.wantedBy[0],n=[e].concat(t),o=this.buildFirstStateStack(r,n);return null===o?null:[e].concat(o)},i.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},i.prototype.restore=function(e){var t=e.index;this.current=t,this.table[t]=e,this.table.splice(t+1),this.lexerState=e.lexerState,this.results=this.finish()},i.prototype.rewind=function(e){if(!this.options.keepHistory)throw Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},i.prototype.finish=function(){var e=[],t=this.grammar.start;return this.table[this.table.length-1].states.forEach(function(r){r.rule.name===t&&r.dot===r.rule.symbols.length&&0===r.reference&&r.data!==i.fail&&e.push(r)}),e.map(function(e){return e.data})},{Parser:i,Grammar:n,Rule:e}},e.exports?e.exports=t():this.nearley=t()},90327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamableFormats=t.SupportedRawFormats=t.SupportedJSONFormats=t.SingleDocumentJSONFormats=t.RecordsJSONFormats=t.StreamableJSONFormats=void 0,t.isNotStreamableJSONFamily=function(e){return t.SingleDocumentJSONFormats.includes(e)||t.RecordsJSONFormats.includes(e)},t.isStreamableJSONFamily=function(e){return t.StreamableJSONFormats.includes(e)},t.isSupportedRawFormat=function(e){return t.SupportedRawFormats.includes(e)},t.validateStreamFormat=function(e){if(!t.StreamableFormats.includes(e))throw Error(`${e} format is not streamable. Streamable formats: ${t.StreamableFormats.join(",")}`);return!0},t.encodeJSON=function(e,r){if(t.SupportedJSONFormats.includes(r))return JSON.stringify(e)+"\n";throw Error(`The client does not support JSON encoding in [${r}] format.`)},t.StreamableJSONFormats=["JSONEachRow","JSONStringsEachRow","JSONCompactEachRow","JSONCompactStringsEachRow","JSONCompactEachRowWithNames","JSONCompactEachRowWithNamesAndTypes","JSONCompactStringsEachRowWithNames","JSONCompactStringsEachRowWithNamesAndTypes","JSONEachRowWithProgress"],t.RecordsJSONFormats=["JSONObjectEachRow"],t.SingleDocumentJSONFormats=["JSON","JSONStrings","JSONCompact","JSONCompactStrings","JSONColumnsWithMetadata"],t.SupportedJSONFormats=[...t.RecordsJSONFormats,...t.SingleDocumentJSONFormats,...t.StreamableJSONFormats],t.SupportedRawFormats=["CSV","CSVWithNames","CSVWithNamesAndTypes","TabSeparated","TabSeparatedRaw","TabSeparatedWithNames","TabSeparatedWithNamesAndTypes","CustomSeparated","CustomSeparatedWithNames","CustomSeparatedWithNamesAndTypes","Parquet"],t.StreamableFormats=[...t.StreamableJSONFormats,...t.SupportedRawFormats]},91293:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=s(r(55729)),i=s(r(54348)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),n=o.default.Children.only(t);return o.default.cloneElement(n,l(l({},r),{},{onClick:this.onClick}))}}],function(e,t){for(var r=0;r{var n=r(23356),o=Object.create;e.exports=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}()},91544:e=>{e.exports=Array.isArray},91985:function(e){var t,r,n;t=this&&this.define,(n=(r={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(e,t){for(var r in e)t.hasOwnProperty(r)||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t},stringify:function(e,t){return void 0===e||"function"==typeof e?e+"":JSON.stringify(e,t||r.replace)},parse:function(e,t){try{return JSON.parse(e,t||r.revive)}catch(t){return e}},fn:function(e,t){for(var n in r.storeAPI[e]=t,r.apis)r.apis[n][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,r){e.setItem(t,r)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,n){var o=r.inherit(r.storeAPI,function(e,t,r){return 0==arguments.length?o.getAll():"function"==typeof t?o.transact(e,t,r):void 0!==t?o.set(e,t,r):"string"==typeof e||"number"==typeof e?o.get(e):"function"==typeof e?o.each(e):e?o.setAll(e,t):o.clear()});o._id=e;try{var i="__store2_test";t.setItem(i,"ok"),o._area=t,t.removeItem(i)}catch(e){o._area=r.storage("fake")}return o._ns=n||"",r.areas[e]||(r.areas[e]=o._area),r.apis[o._ns+o._id]||(r.apis[o._ns+o._id]=o),o},storeAPI:{area:function(e,t){var n=this[e];return n&&n.area||(n=r.Store(e,t,this._ns),this[e]||(this[e]=n)),n},namespace:function(e,t,n){if(n=n||this._delim||r.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-n.length):"";var o=this[e];if((!o||!o.namespace)&&((o=r.Store(this._id,this._area,this._ns+e+n))._delim=n,this[e]||(this[e]=o),!t))for(var i in r.areas)o.area(i,r.areas[i]);return o},isFake:function(e){return e?(this._real=this._area,this._area=r.storage("fake")):!1===e&&(this._area=this._real||this._area),"fake"===this._area.name},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(e){return this._area.has?this._area.has(this._in(e)):this._in(e)in this._area},size:function(){return this.keys().length},each:function(e,t){for(var n=0,o=r.length(this._area);nr.length(this._area)&&(o--,n--)}return t||this},keys:function(e){return this.each(function(e,t,r){r.push(e)},e||[])},get:function(e,t){var n,o=r.get(this._area,this._in(e));return"function"==typeof t&&(n=t,t=null),null!==o?r.parse(o,n):null!=t?t:o},getAll:function(e){return this.each(function(e,t,r){r[e]=t},e||{})},transact:function(e,t,r){var n=this.get(e,r),o=t(n);return this.set(e,void 0===o?n:o),this},set:function(e,t,n){var o,i=this.get(e);return null!=i&&!1===n?t:("function"==typeof n&&(o=n,n=void 0),r.set(this._area,this._in(e),r.stringify(t,o),n)||i)},setAll:function(e,t){var r,n;for(var o in e)n=e[o],this.set(o,n,t)!==n&&(r=!0);return r},add:function(e,t,n){var o=this.get(e);if(o instanceof Array)t=o.concat(t);else if(null!==o){var i=typeof o;if(i===typeof t&&"object"===i){for(var a in t)o[a]=t[a];t=o}else t=o+t}return r.set(this._area,this._in(e),r.stringify(t,n)),t},remove:function(e,t){var n=this.get(e,t);return r.remove(this._area,this._in(e)),n},clear:function(){return this._ns?this.each(function(e){r.remove(this._area,this._in(e))},1):r.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in r.areas)r.areas.hasOwnProperty(t)&&(this._area=r.areas[t],this.clear());return this._area=e,this},_in:function(e){return"string"!=typeof e&&(e=r.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&0===e.indexOf(this._ns)?e.substring(this._ns.length):void 0:e}},storage:function(e){return r.inherit(r.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var r in this.items)if(this.has(r)&&e===t++)return r},setItem:function(e,t){!this.has(e)&&this.length++,this.items[e]=t},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}}).Store("local",function(){try{return localStorage}catch(e){}}())).local=n,n._=r,n.area("session",function(){try{return sessionStorage}catch(e){}}()),n.area("page",r.storage("page")),"function"==typeof t&&void 0!==t.amd?t("store2",[],function(){return n}):e.exports?e.exports=n:(this.store&&(r.conflict=this.store),this.store=n)},92190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebConnection=void 0;let n=r(7117),o=r(83374);class i{constructor(e){if(Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"defaultAuthHeader",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),"JWT"===e.auth.type)this.defaultAuthHeader=`Bearer ${e.auth.access_token}`;else if("Credentials"===e.auth.type)this.defaultAuthHeader=`Basic ${btoa(`${e.auth.username}:${e.auth.password}`)}`;else throw Error(`Unknown auth type: ${e.auth.type}`)}async query(e){let t=a(e.query_id),r=(0,n.withHttpSettings)(e.clickhouse_settings,this.params.compression.decompress_response),o=(0,n.toSearchParams)({database:this.params.database,clickhouse_settings:r,query_params:e.query_params,session_id:e.session_id,role:e.role,query_id:t}),i=await this.request({body:e.query,params:e,searchParams:o});return{query_id:t,stream:i.body||new ReadableStream,response_headers:s(i)}}async exec(e){let t=await this.runExec(e);return{query_id:t.query_id,stream:t.stream||new ReadableStream,response_headers:t.response_headers}}async command(e){let{stream:t,query_id:r,response_headers:n}=await this.runExec(e);return null!==t&&await t.cancel(),{query_id:r,response_headers:n}}async insert(e){let t=a(e.query_id),r=(0,n.toSearchParams)({database:this.params.database,clickhouse_settings:e.clickhouse_settings,query_params:e.query_params,query:e.query,session_id:e.session_id,role:e.role,query_id:t}),o=await this.request({body:e.values,params:e,searchParams:r});return null!==o.body&&await o.text(),{query_id:t,response_headers:s(o)}}async ping(){try{let e=await this.request({body:null,searchParams:(0,n.toSearchParams)({database:void 0,query:"SELECT 'ping'",query_id:a(void 0)}),method:"GET"});return null!==e.body&&await e.body.cancel(),{success:!0}}catch(e){if(e instanceof Error)return{success:!1,error:e};throw e}}async close(){}async request({body:e,params:t,searchParams:r,pathname:i,method:a}){let s=(0,n.transformUrl)({url:this.params.url,pathname:i,searchParams:r}).toString(),u=new AbortController,l=!1,c=setTimeout(()=>{l=!0,u.abort()},this.params.request_timeout),p=!1;t?.abort_signal!==void 0&&(t.abort_signal.onabort=()=>{p=!0,u.abort()});try{let r=(0,n.withCompressionHeaders)({headers:this.defaultHeadersWithOverride(t),enable_request_compression:!1,enable_response_compression:this.params.compression.decompress_response}),i=this.params.fetch??fetch,l=await i(s,{body:e,headers:r,keepalive:this.params.keep_alive.enabled,method:a??"POST",signal:u.signal});if(clearTimeout(c),(0,n.isSuccessfulResponse)(l.status))return l;return Promise.reject((0,n.parseError)(await (0,o.getAsText)(l.body||new ReadableStream)))}catch(e){if(clearTimeout(c),p)return Promise.reject(Error("The user aborted a request."));if(l)return Promise.reject(Error("Timeout error."));if(e instanceof Error)return Promise.reject((0,n.parseError)(e));throw e}}async runExec(e){let t=a(e.query_id),r=(0,n.toSearchParams)({database:this.params.database,clickhouse_settings:e.clickhouse_settings,query_params:e.query_params,session_id:e.session_id,role:e.role,query_id:t}),o=await this.request({body:e.query,params:e,searchParams:r});return{stream:o.body,response_headers:s(o),query_id:t}}defaultHeadersWithOverride(e){let t;return t=(0,n.isJWTAuth)(e?.auth)?`Bearer ${e?.auth.access_token}`:(0,n.isCredentialsAuth)(e?.auth)?`Basic ${btoa(`${e?.auth.username}:${e?.auth.password}`)}`:this.defaultAuthHeader,{...this.params.http_headers??{},...e?.http_headers??{},Authorization:t}}}function a(e){return e||crypto.randomUUID()}function s(e){let t={};return e.headers.forEach((e,r)=>{t[r]=e}),t}t.WebConnection=i},92786:(e,t,r)=>{var n=r(36592);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},92789:(e,t,r)=>{"use strict";r.d(t,{c:()=>d});var n=r(6029);r(55729);var o=r(76),i=r(5618),a=r(66404),s=r(80616),u=r(37666),l=r(60481),c=r(43016),p={root:"m_3eebeb36",label:"m_9e365f20"};let f={orientation:"horizontal"},h=(0,i.V)((e,{color:t,variant:r,size:n})=>({root:{"--divider-color":t?(0,a.r)(t,e):void 0,"--divider-border-style":r,"--divider-size":(0,o.YC)(n,"divider-size")}})),d=(0,c.P9)((e,t)=>{let r=(0,s.Y)("Divider",f,e),{classNames:o,className:i,style:a,styles:c,unstyled:d,vars:y,color:v,orientation:m,label:g,labelPosition:b,mod:w,..._}=r,S=(0,u.I)({name:"Divider",classes:p,props:r,className:i,style:a,classNames:o,styles:c,unstyled:d,vars:y,varsResolver:h});return(0,n.jsx)(l.a,{ref:t,mod:[{orientation:m,"with-label":!!g},w],...S("root"),..._,role:"separator",children:g&&(0,n.jsx)(l.a,{component:"span",mod:{position:b},...S("label"),children:g})})});d.classes=p,d.displayName="@mantine/core/Divider"},92812:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},93248:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},94061:(e,t,r)=>{e=r.nmd(e);var n,o=function(e){"use strict";var t=c(0x20000000000000),r="0123456789abcdefghijklmnopqrstuvwxyz",n="function"==typeof BigInt;function i(e,t,r,n){return void 0===e?i[0]:void 0!==t&&(10!=+t||r)?U(e,t,r,n):B(e)}function a(e,t){this.value=e,this.sign=t,this.isSmall=!1}function s(e){this.value=e,this.sign=e<0,this.isSmall=!0}function u(e){this.value=e}function l(e){return -0x20000000000000P(e,t))switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+1e7*e[1];default:return e[0]+(e[1]+1e7*e[2])*1e7}return e}function f(e){for(var t=e.length;0===e[--t];);e.length=t+1}function h(e){for(var t=Array(e),r=-1;++r0?Math.floor(e):Math.ceil(e)}function y(e,t){var r,n,o=e.length,i=t.length,a=Array(o),s=0;for(n=0;n=1e7),a[n]=r-1e7*s;for(;n0&&a.push(s),a}function v(e,t){return e.length>=t.length?y(e,t):y(t,e)}function m(e,t){var r,n,o=e.length,i=Array(o);for(n=0;n0;)i[n++]=t%1e7,t=Math.floor(t/1e7);return i}function g(e,t){var r,n,o=e.length,i=t.length,a=Array(o),s=0;for(r=0;r0;)i[n++]=a%1e7,a=Math.floor(a/1e7);return i}function S(e,t){for(var r=[];t-- >0;)r.push(0);return r.concat(e)}function x(e,t,r){return e<1e7?new a(_(t,e),r):new a(w(t,c(e)),r)}function O(e){var t,r,n,o,i=e.length,a=h(i+i);for(n=0;n=0;--r)n=d((i=1e7*o+e[r])/t),o=i-n*t,s[r]=0|n;return[s,0|o]}function C(e,t){var r,o,l=B(t);if(n)return[new u(e.value/l.value),new u(e.value%l.value)];var y=e.value,v=l.value;if(0===v)throw Error("Cannot divide by zero");if(e.isSmall)return l.isSmall?[new s(d(y/v)),new s(y%v)]:[i[0],e];if(l.isSmall){if(1===v)return[e,i[0]];if(-1==v)return[e.negate(),i[0]];var m=Math.abs(v);if(m<1e7){r=p((o=j(y,m))[0]);var b=o[1];return(e.sign&&(b=-b),"number"==typeof r)?(e.sign!==l.sign&&(r=-r),[new s(r),new s(b)]):[new a(r,e.sign!==l.sign),new s(b)]}v=c(m)}var w=P(y,v);if(-1===w)return[i[0],e];if(0===w)return[i[e.sign===l.sign?1:-1],i[0]];r=(o=y.length+v.length<=200?function(e,t){var r,n,o,i,a,s,u,l=e.length,c=t.length,f=h(t.length),d=t[c-1],y=Math.ceil(1e7/(2*d)),v=_(e,y),m=_(t,y);for(v.length<=l&&v.push(0),m.push(0),d=m[c-1],n=l-c;n>=0;n--){for(r=1e7-1,v[n+c]!==d&&(r=Math.floor((1e7*v[n+c]+v[n+c-1])/d)),o=0,i=0,s=m.length,a=0;aP(c,t)){l.push(0);continue}n=c.length,o=1e7*c[n-1]+c[n-2],i=1e7*t[u-1]+t[u-2],n>u&&(o=(o+1)*1e7),r=Math.ceil(o/i);do{if(0>=P(a=_(t,r),c))break;r--}while(r);l.push(r),c=g(c,a)}return l.reverse(),[p(l),p(c)]}(y,v))[0];var S=e.sign!==l.sign,x=o[1],O=e.sign;return"number"==typeof r?(S&&(r=-r),r=new s(r)):r=new a(r,S),"number"==typeof x?(O&&(x=-x),x=new s(x)):x=new a(x,O),[r,x]}function P(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var r=e.length-1;r>=0;r--)if(e[r]!==t[r])return e[r]>t[r]?1:-1;return 0}function A(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function E(e,t){for(var r,n,i,a=e.prev(),s=a,u=0;s.isEven();)s=s.divide(2),u++;e:for(n=0;n=0?r=g(o,i):(r=g(i,o),t=!t),"number"==typeof(r=p(r)))?(t&&(r=-r),new s(r)):new a(r,t))},a.prototype.minus=a.prototype.subtract,s.prototype.subtract=function(e){var t=B(e),r=this.value;if(r<0!==t.sign)return this.add(t.negate());var n=t.value;return t.isSmall?new s(r-n):b(n,Math.abs(r),r>=0)},s.prototype.minus=s.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-B(e).value)},u.prototype.minus=u.prototype.subtract,a.prototype.negate=function(){return new a(this.value,!this.sign)},s.prototype.negate=function(){var e=this.sign,t=new s(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},a.prototype.abs=function(){return new a(this.value,!1)},s.prototype.abs=function(){return new s(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)},a.prototype.multiply=function(e){var t,r,n,o=B(e),s=this.value,u=o.value,l=this.sign!==o.sign;if(o.isSmall){if(0===u)return i[0];if(1===u)return this;if(-1===u)return this.negate();if((n=Math.abs(u))<1e7)return new a(_(s,n),l);u=c(n)}return -.012*(t=s.length)-.012*(r=u.length)+15e-6*t*r>0?new a(function e(t,r){var n=Math.max(t.length,r.length);if(n<=30)return w(t,r);n=Math.ceil(n/2);var o=t.slice(n),i=t.slice(0,n),a=r.slice(n),s=r.slice(0,n),u=e(i,s),l=e(o,a),c=e(v(i,o),v(s,a)),p=v(v(u,S(g(g(c,u),l),n)),S(l,2*n));return f(p),p}(s,u),l):new a(w(s,u),l)},a.prototype.times=a.prototype.multiply,s.prototype._multiplyBySmall=function(e){return l(e.value*this.value)?new s(e.value*this.value):x(Math.abs(e.value),c(Math.abs(this.value)),this.sign!==e.sign)},a.prototype._multiplyBySmall=function(e){return 0===e.value?i[0]:1===e.value?this:-1===e.value?this.negate():x(Math.abs(e.value),this.value,this.sign!==e.sign)},s.prototype.multiply=function(e){return B(e)._multiplyBySmall(this)},s.prototype.times=s.prototype.multiply,u.prototype.multiply=function(e){return new u(this.value*B(e).value)},u.prototype.times=u.prototype.multiply,a.prototype.square=function(){return new a(O(this.value),!1)},s.prototype.square=function(){var e=this.value*this.value;return l(e)?new s(e):new a(O(c(Math.abs(this.value))),!1)},u.prototype.square=function(e){return new u(this.value*this.value)},a.prototype.divmod=function(e){var t=C(this,e);return{quotient:t[0],remainder:t[1]}},u.prototype.divmod=s.prototype.divmod=a.prototype.divmod,a.prototype.divide=function(e){return C(this,e)[0]},u.prototype.over=u.prototype.divide=function(e){return new u(this.value/B(e).value)},s.prototype.over=s.prototype.divide=a.prototype.over=a.prototype.divide,a.prototype.mod=function(e){return C(this,e)[1]},u.prototype.mod=u.prototype.remainder=function(e){return new u(this.value%B(e).value)},s.prototype.remainder=s.prototype.mod=a.prototype.remainder=a.prototype.mod,a.prototype.pow=function(e){var t,r,n,o=B(e),a=this.value,u=o.value;if(0===u)return i[1];if(0===a)return i[0];if(1===a)return i[1];if(-1===a)return o.isEven()?i[1]:i[-1];if(o.sign)return i[0];if(!o.isSmall)throw Error("The exponent "+o.toString()+" is too large.");if(this.isSmall&&l(t=Math.pow(a,u)))return new s(d(t));for(r=this,n=i[1];!0&u&&(n=n.times(r),--u),0!==u;)u/=2,r=r.square();return n},s.prototype.pow=a.prototype.pow,u.prototype.pow=function(e){var t=B(e),r=this.value,n=t.value,o=BigInt(0),a=BigInt(1),s=BigInt(2);if(n===o)return i[1];if(r===o)return i[0];if(r===a)return i[1];if(r===BigInt(-1))return t.isEven()?i[1]:i[-1];if(t.isNegative())return new u(o);for(var l=this,c=i[1];(n&a)===a&&(c=c.times(l),--n),n!==o;)n/=s,l=l.square();return c},a.prototype.modPow=function(e,t){if(e=B(e),(t=B(t)).isZero())throw Error("Cannot take modPow with modulus 0");var r=i[1],n=this.mod(t);for(e.isNegative()&&(e=e.multiply(i[-1]),n=n.modInv(t));e.isPositive();){if(n.isZero())return i[0];e.isOdd()&&(r=r.multiply(n).mod(t)),e=e.divide(2),n=n.square().mod(t)}return r},u.prototype.modPow=s.prototype.modPow=a.prototype.modPow,a.prototype.compareAbs=function(e){var t=B(e),r=this.value,n=t.value;return t.isSmall?1:P(r,n)},s.prototype.compareAbs=function(e){var t=B(e),r=Math.abs(this.value),n=t.value;return t.isSmall?r===(n=Math.abs(n))?0:r>n?1:-1:-1},u.prototype.compareAbs=function(e){var t=this.value,r=B(e).value;return(t=t>=0?t:-t)===(r=r>=0?r:-r)?0:t>r?1:-1},a.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=B(e),r=this.value,n=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:P(r,n)*(this.sign?-1:1)},a.prototype.compareTo=a.prototype.compare,s.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=B(e),r=this.value,n=t.value;return t.isSmall?r==n?0:r>n?1:-1:r<0!==t.sign?r<0?-1:1:r<0?1:-1},s.prototype.compareTo=s.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=this.value,r=B(e).value;return t===r?0:t>r?1:-1},u.prototype.compareTo=u.prototype.compare,a.prototype.equals=function(e){return 0===this.compare(e)},u.prototype.eq=u.prototype.equals=s.prototype.eq=s.prototype.equals=a.prototype.eq=a.prototype.equals,a.prototype.notEquals=function(e){return 0!==this.compare(e)},u.prototype.neq=u.prototype.notEquals=s.prototype.neq=s.prototype.notEquals=a.prototype.neq=a.prototype.notEquals,a.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=s.prototype.gt=s.prototype.greater=a.prototype.gt=a.prototype.greater,a.prototype.lesser=function(e){return 0>this.compare(e)},u.prototype.lt=u.prototype.lesser=s.prototype.lt=s.prototype.lesser=a.prototype.lt=a.prototype.lesser,a.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=s.prototype.geq=s.prototype.greaterOrEquals=a.prototype.geq=a.prototype.greaterOrEquals,a.prototype.lesserOrEquals=function(e){return 0>=this.compare(e)},u.prototype.leq=u.prototype.lesserOrEquals=s.prototype.leq=s.prototype.lesserOrEquals=a.prototype.leq=a.prototype.lesserOrEquals,a.prototype.isEven=function(){return(1&this.value[0])==0},s.prototype.isEven=function(){return(1&this.value)==0},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},a.prototype.isOdd=function(){return(1&this.value[0])==1},s.prototype.isOdd=function(){return(1&this.value)==1},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},a.prototype.isPositive=function(){return!this.sign},s.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=s.prototype.isPositive,a.prototype.isNegative=function(){return this.sign},s.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=s.prototype.isNegative,a.prototype.isUnit=function(){return!1},s.prototype.isUnit=function(){return 1===Math.abs(this.value)},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},a.prototype.isZero=function(){return!1},s.prototype.isZero=function(){return 0===this.value},u.prototype.isZero=function(){return this.value===BigInt(0)},a.prototype.isDivisibleBy=function(e){var t=B(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},u.prototype.isDivisibleBy=s.prototype.isDivisibleBy=a.prototype.isDivisibleBy,a.prototype.isPrime=function(e){var t=A(this);if(void 0!==t)return t;var r=this.abs(),n=r.bitLength();if(n<=64)return E(r,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var i=Math.log(2)*n.toJSNumber(),a=Math.ceil(!0===e?2*Math.pow(i,2):i),s=[],u=0;u-0x20000000000000?new s(e-1):new a(t,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var k=[1];2*k[k.length-1]<=1e7;)k.push(2*k[k.length-1]);var N=k.length,T=k[N-1];function R(e){return 1e7>=Math.abs(e)}function I(e,t,r){t=B(t);for(var n=e.isNegative(),i=t.isNegative(),a=n?e.not():e,s=i?t.not():t,u=0,l=0,c=null,p=null,f=[];!a.isZero()||!s.isZero();)u=(c=C(a,T))[1].toJSNumber(),n&&(u=T-1-u),l=(p=C(s,T))[1].toJSNumber(),i&&(l=T-1-l),a=c[0],s=p[0],f.push(r(u,l));for(var h=0!==r(+!!n,+!!i)?o(-1):o(0),d=f.length-1;d>=0;d-=1)h=h.multiply(T).add(o(f[d]));return h}a.prototype.shiftLeft=function(e){var t=B(e).toJSNumber();if(!R(t))throw Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var r=this;if(r.isZero())return r;for(;t>=N;)r=r.multiply(T),t-=N-1;return r.multiply(k[t])},u.prototype.shiftLeft=s.prototype.shiftLeft=a.prototype.shiftLeft,a.prototype.shiftRight=function(e){var t,r=B(e).toJSNumber();if(!R(r))throw Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var n=this;r>=N;){if(n.isZero()||n.isNegative()&&n.isUnit())return n;n=(t=C(n,T))[1].isNegative()?t[0].prev():t[0],r-=N-1}return(t=C(n,k[r]))[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=s.prototype.shiftRight=a.prototype.shiftRight,a.prototype.not=function(){return this.negate().prev()},u.prototype.not=s.prototype.not=a.prototype.not,a.prototype.and=function(e){return I(this,e,function(e,t){return e&t})},u.prototype.and=s.prototype.and=a.prototype.and,a.prototype.or=function(e){return I(this,e,function(e,t){return e|t})},u.prototype.or=s.prototype.or=a.prototype.or,a.prototype.xor=function(e){return I(this,e,function(e,t){return e^t})},u.prototype.xor=s.prototype.xor=a.prototype.xor;function M(e){var t=e.value,r="number"==typeof t?0x40000000|t:"bigint"==typeof t?t|BigInt(0x40000000):t[0]+1e7*t[1]|0x40004000;return r&-r}function q(e,t){return e=B(e),t=B(t),e.greater(t)?e:t}function L(e,t){return e=B(e),t=B(t),e.lesser(t)?e:t}function D(e,t){if(e=B(e).abs(),t=B(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var r,n,o=i[1];e.isEven()&&t.isEven();)r=L(M(e),M(t)),e=e.divide(r),t=t.divide(r),o=o.multiply(r);for(;e.isEven();)e=e.divide(M(e));do{for(;t.isEven();)t=t.divide(M(t));e.greater(t)&&(n=t,t=e,e=n),t=t.subtract(e)}while(!t.isZero());return o.isUnit()?e:e.multiply(o)}a.prototype.bitLength=function(){var e=this;return(0>e.compareTo(o(0))&&(e=e.negate().subtract(o(1))),0===e.compareTo(o(0)))?o(0):o(function e(t,r){if(0>=r.compareTo(t)){var n=e(t,r.square(r)),i=n.p,a=n.e,s=i.multiply(r);return 0>=s.compareTo(t)?{p:s,e:2*a+1}:{p:i,e:2*a}}return{p:o(1),e:0}}(e,o(2)).e).add(o(1))},u.prototype.bitLength=s.prototype.bitLength=a.prototype.bitLength;var U=function(e,t,n,o){n=n||r,e=String(e),o||(e=e.toLowerCase(),n=n.toLowerCase());var i,a=e.length,s=Math.abs(t),u={};for(i=0;i=s){if("1"===l&&1===s)continue;throw Error(l+" is not a valid digit in base "+t+".")}}t=B(t);var c=[],p="-"===e[0];for(i=+!!p;i"!==e[i]&&i=0;n--)o=o.add(e[n].times(a)),a=a.times(t);return r?o.negate():o}function J(e,t){if((t=o(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var n=!1;if(e.isNegative()&&t.isPositive()&&(n=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n};for(var i,a=[],s=e;s.isNegative()||s.compareAbs(t)>=0;){s=(i=s.divmod(t)).quotient;var u=i.remainder;u.isNegative()&&(u=t.minus(u).abs(),s=s.next()),a.push(u.toJSNumber())}return a.push(s.toJSNumber()),{value:a.reverse(),isNegative:n}}function $(e,t,n){var o=J(e,t);return(o.isNegative?"-":"")+o.value.map(function(e){var t;return e<(t=(t=n)||r).length?t[e]:"<"+e+">"}).join("")}function W(e){if(l(+e)){var t=+e;if(t===d(t))return n?new u(BigInt(t)):new s(t);throw Error("Invalid integer: "+e)}var r="-"===e[0];r&&(e=e.slice(1));var o=e.split(/e/i);if(o.length>2)throw Error("Invalid integer: "+o.join("e"));if(2===o.length){var i=o[1];if("+"===i[0]&&(i=i.slice(1)),(i*=1)!==d(i)||!l(i))throw Error("Invalid integer: "+i+" is not a valid exponent.");var c=o[0],p=c.indexOf(".");if(p>=0&&(i-=c.length-p-1,c=c.slice(0,p)+c.slice(p+1)),i<0)throw Error("Cannot include negative exponent part for integers");c+=Array(i+1).join("0"),e=c}if(!/^([0-9][0-9]*)$/.test(e))throw Error("Invalid integer: "+e);if(n)return new u(BigInt(r?"-"+e:e));for(var h=[],y=e.length,v=y-7;y>0;)h.push(+e.slice(v,y)),(v-=7)<0&&(v=0),y-=7;return f(h),new a(h,r)}function B(e){if("number"==typeof e){if(n)return new u(BigInt(e));if(l(e)){if(e!==d(e))throw Error(e+" is not an integer.");return new s(e)}return W(e.toString())}return"string"==typeof e?W(e):"bigint"==typeof e?new u(e):e}a.prototype.toArray=function(e){return J(this,e)},s.prototype.toArray=function(e){return J(this,e)},u.prototype.toArray=function(e){return J(this,e)},a.prototype.toString=function(e,t){if(void 0===e&&(e=10),10!==e||t)return $(this,e,t);for(var r,n=this.value,o=n.length,i=String(n[--o]);--o>=0;)r=String(n[o]),i+="0000000".slice(r.length)+r;return(this.sign?"-":"")+i},s.prototype.toString=function(e,t){return(void 0===e&&(e=10),10!=e||t)?$(this,e,t):String(this.value)},u.prototype.toString=s.prototype.toString,u.prototype.toJSON=a.prototype.toJSON=s.prototype.toJSON=function(){return this.toString()},a.prototype.valueOf=function(){return parseInt(this.toString(),10)},a.prototype.toJSNumber=a.prototype.valueOf,s.prototype.valueOf=function(){return this.value},s.prototype.toJSNumber=s.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var H=0;H<1e3;H++)i[H]=B(H),H>0&&(i[-H]=B(-H));return i.one=i[1],i.zero=i[0],i.minusOne=i[-1],i.max=q,i.min=L,i.gcd=D,i.lcm=function(e,t){return e=B(e).abs(),t=B(t).abs(),e.divide(D(e,t)).multiply(t)},i.isInstance=function(e){return e instanceof a||e instanceof s||e instanceof u},i.randBetween=function(e,t,r){e=B(e);var n=r||Math.random,o=L(e,t=B(t)),a=q(e,t).subtract(o).add(1);if(a.isSmall)return o.add(Math.floor(n()*a));for(var s=J(a,1e7).value,u=[],l=!0,c=0;c{var n=r(620),o=r(4650),i=r(50874);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},95345:(e,t,r)=>{var n=r(4650);e.exports=function(){this.__data__=new n,this.size=0}},97397:(e,t,r)=>{e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},97722:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=function(e){return new i({impl:o.WebImpl,...e||{}})};let n=r(7117),o=r(30110);class i extends n.ClickHouseClient{query(e){return super.query(e)}}},98499:(e,t,r)=>{var n=r(33573),o=r(23356);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},99048:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},99469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProgressRow=function(e){return null!==e&&"object"==typeof e&&"progress"in e&&1===Object.keys(e).length},t.isRow=function(e){return null!==e&&"object"==typeof e&&"row"in e&&1===Object.keys(e).length},t.isException=function(e){return null!==e&&"object"==typeof e&&"exception"in e&&1===Object.keys(e).length}},99496:(e,t)=>{"use strict";async function r(e){await new Promise(t=>setTimeout(()=>{t(void 0)},e))}Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=r}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/8718-bf1c48cf4b5b7714.js b/out/_next/static/chunks/8718-bf1c48cf4b5b7714.js new file mode 100644 index 0000000..6577de8 --- /dev/null +++ b/out/_next/static/chunks/8718-bf1c48cf4b5b7714.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8718],{19336:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","markdown","IconMarkdown",[["path",{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M7 15v-6l2 2l2 -2v6",key:"svg-1"}],["path",{d:"M14 13l2 2l2 -2m-2 2v-6",key:"svg-2"}]])},20444:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),o="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;o?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(47492))},27420:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(20444)),i=n(72756);function o(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}o.default=o,e.exports=o},28392:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,s,c,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","chevron-left","IconChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]])},42604:(e,t,n)=>{"use strict";n.d(t,{oz:()=>nI});var r={};n.r(r),n.d(r,{boolean:()=>g,booleanish:()=>y,commaOrSpaceSeparated:()=>w,commaSeparated:()=>b,number:()=>x,overloadedBoolean:()=>v,spaceSeparated:()=>k});var i={};n.r(i),n.d(i,{attentionMarkers:()=>tO,contentInitial:()=>tb,disable:()=>tC,document:()=>tk,flow:()=>tS,flowInitial:()=>tw,insideSpan:()=>tP,string:()=>tA,text:()=>tE});let o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a={};function u(e,t){return((t||a).jsx?l:o).test(e)}let s=/[ \t\n\f\r]/g;function c(e){return""===e.replace(s,"")}class f{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function p(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new f(n,r,t)}function d(e){return e.toLowerCase()}f.prototype.normal={},f.prototype.property={},f.prototype.space=void 0;class h{constructor(e,t){this.attribute=t,this.property=e}}h.prototype.attribute="",h.prototype.booleanish=!1,h.prototype.boolean=!1,h.prototype.commaOrSpaceSeparated=!1,h.prototype.commaSeparated=!1,h.prototype.defined=!1,h.prototype.mustUseProperty=!1,h.prototype.number=!1,h.prototype.overloadedBoolean=!1,h.prototype.property="",h.prototype.spaceSeparated=!1,h.prototype.space=void 0;let m=0,g=S(),y=S(),v=S(),x=S(),k=S(),b=S(),w=S();function S(){return 2**++m}let A=Object.keys(r);class E extends h{constructor(e,t,n,i){let o=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++o"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function C(e,t){return t in e?e[t]:t}function T(e,t){return C(e,t.toLowerCase())}let I=P({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:b,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:g,allowPaymentRequest:g,allowUserMedia:g,alt:null,as:null,async:g,autoCapitalize:null,autoComplete:k,autoFocus:g,autoPlay:g,blocking:k,capture:null,charSet:null,checked:g,cite:null,className:k,cols:x,colSpan:null,content:null,contentEditable:y,controls:g,controlsList:k,coords:x|b,crossOrigin:null,data:null,dateTime:null,decoding:null,default:g,defer:g,dir:null,dirName:null,disabled:g,download:v,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:g,formTarget:null,headers:k,height:x,hidden:v,high:x,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:g,inputMode:null,integrity:null,is:null,isMap:g,itemId:null,itemProp:k,itemRef:k,itemScope:g,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:g,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:g,muted:g,name:null,nonce:null,noModule:g,noValidate:g,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:g,optimum:x,pattern:null,ping:k,placeholder:null,playsInline:g,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:g,referrerPolicy:null,rel:k,required:g,reversed:g,rows:x,rowSpan:x,sandbox:k,scope:null,scoped:g,seamless:g,selected:g,shadowRootClonable:g,shadowRootDelegatesFocus:g,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:g,useMap:null,value:y,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:g,declare:g,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:g,noHref:g,noShade:g,noWrap:g,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:g,disableRemotePlayback:g,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:T}),L=P({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:w,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:k,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:g,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:b,g2:b,glyphName:b,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:w,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:w,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:w,rev:w,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:w,requiredFeatures:w,requiredFonts:w,requiredFormats:w,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:w,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:w,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:w,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:C}),D=P({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),j=P({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:T}),M=P({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),R=p([O,I,D,j,M],"html"),z=p([O,L,D,j,M],"svg"),F=/[A-Z]/g,N=/-[a-z]/g,_=/^data[-\w.:]+$/i;function B(e){return"-"+e.toLowerCase()}function U(e){return e.charAt(1).toUpperCase()}let H={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var V=n(27420);let q=K("end"),W=K("start");function K(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function J(e){return e&&"object"==typeof e?"position"in e||"type"in e?Q(e.position):"start"in e||"end"in e?Q(e):"line"in e||"column"in e?Z(e):"":""}function Z(e){return X(e&&e.line)+":"+X(e&&e.column)}function Q(e){return Z(e&&e.start)+"-"+Z(e&&e.end)}function X(e){return e&&"number"==typeof e?e:1}class $ extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=J(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$.prototype.file="",$.prototype.name="",$.prototype.reason="",$.prototype.message="",$.prototype.stack="",$.prototype.column=void 0,$.prototype.line=void 0,$.prototype.ancestors=void 0,$.prototype.cause=void 0,$.prototype.fatal=void 0,$.prototype.place=void 0,$.prototype.ruleId=void 0,$.prototype.source=void 0;let Y={}.hasOwnProperty,G=new Map,ee=/[A-Z]/g,et=new Set(["table","tbody","thead","tfoot","tr"]),en=new Set(["td","th"]),er="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ei(e,t,n){var r,i,o,l,a,u,s,f,p;let m,g,y,v,x,k,b,w,S,A,P;return"element"===t.type?(r=e,i=t,o=n,g=m=r.schema,"svg"===i.tagName.toLowerCase()&&"html"===m.space&&(r.schema=z),r.ancestors.push(i),y=eu(r,i.tagName,!1),v=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&Y.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=d(t),r=t,i=h;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&_.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(N,U);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!N.test(e)){let n=e.replace(F,B);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=E}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var i;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(i=n)[i.length-1]?[...i,""]:i).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return V(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new $("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=er+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)Y.call(e,t)&&(n[function(e){let t=e.replace(ee,ec);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?H[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,l]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof l&&en.has(t.tagName)?n=l:i[r]=l}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(r,i),x=ea(r,i),et.has(i.tagName)&&(x=x.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&c(e.value):c(e))})),eo(r,v,y,i),el(v,x),r.ancestors.pop(),r.schema=m,r.create(i,y,v,o)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}es(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(l=e,a=t,u=n,b=k=l.schema,"svg"===a.name&&"html"===k.space&&(l.schema=z),l.ancestors.push(a),w=null===a.name?l.Fragment:eu(l,a.name,!0),S=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else es(e,t.position);else{let i,o=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else es(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(l,a),A=ea(l,a),eo(l,S,w,a),el(S,A),l.ancestors.pop(),l.schema=k,l.create(a,w,S,u)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);es(e,t.position)}(e,t):"root"===t.type?(s=e,f=t,p=n,el(P={},ea(s,f)),s.create(f,s.Fragment,P,p)):"text"===t.type?t.value:void 0}function eo(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function el(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ea(e,t){let n=[],r=-1,i=e.passKeys?new Map:G;for(;++ro?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l0?(eg(e,e.length,0,t),e):t}class ev{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&ex(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),ex(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ex(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e-1&&e.test(String.fromCharCode(t))}}function eR(e,t,n,r){let i=r?r-1:1/0,o=0;return function(r){return eL(r)?(e.enter(n),function r(l){return eL(l)&&o++r))return;let a=i.events.length,u=a;for(;u--;)if("exit"===i.events[u][0]&&"chunkFlow"===i.events[u][1].type){if(e){n=i.events[u][1].end;break}e=!0}for(g(l),o=a;ot;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eN={tokenize:function(e,t,n){return eR(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},e_={partial:!0,tokenize:function(e,t,n){return function(t){return eL(t)?eR(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eT(e)?t(e):n(e)}}},eB={resolve:function(e){return ek(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eT(t)?e.check(eU,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eU={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eR(e,i,"linePrefix")};function i(i){if(null===i||eT(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eH={tokenize:function(e){let t=this,n=e.attempt(e_,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,eR(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eB,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},eV={resolveAll:eJ()},eq=eK("string"),eW=eK("text");function eK(e){return{resolveAll:eJ("text"===e?eZ:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,l);return o;function o(e){return u(e)?i(e):l(e)}function l(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function u(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i=3&&(null===l||eT(l))?(e.exit("thematicBreak"),t(l)):n(l)}(l)}}},eX={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(e_,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eR(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eL(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eY,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eR(e,e.attempt(eX,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,l=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eP(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eQ,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eP(i)&&++l<10?(e.consume(i),t):(!r.interrupt||l<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(e_,r.interrupt?n:u,e.attempt(e$,c,s))}function u(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function s(t){return eL(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},e$={partial:!0,tokenize:function(e,t,n){let r=this;return eR(e,function(e){let i=r.events[r.events.length-1];return!eL(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eY={partial:!0,tokenize:function(e,t,n){let r=this;return eR(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},eG={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eL(t)?eR(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eG,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return eL(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function e0(e,t,n,r,i,o,l,a,u){let s=u||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f):null===t||32===t||41===t||eE(t)?n(t):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||eT(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(i){return!c&&(null===i||41===i||eI(i))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(i)):c999||null===f||91===f||93===f&&!l||94===f&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):eT(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||eT(t)||u++>999?(e.exit("chunkString"),s(t)):(e.consume(t),l||(l=!eL(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),u++,c):c(t)}}function e2(e,t,n,r,i,o){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),l=40===t?41:t,a):n(t)};function a(n){return n===l?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),u(n))}function u(t){return t===l?(e.exit(o),a(l)):null===t?n(t):eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eR(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(t))}function s(t){return t===l||null===t||eT(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?c:s)}function c(t){return t===l||92===t?(e.consume(t),s):s(t)}}function e4(e,t){let n;return function r(i){return eT(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eL(i)?eR(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function e5(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let e9={partial:!0,tokenize:function(e,t,n){return function(t){return eI(t)?e4(e,r)(t):n(t)};function r(t){return e2(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eL(t)?eR(e,o,"whitespace")(t):o(t)}function o(e){return null===e||eT(e)?t(e):n(e)}}},e3={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),eR(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):eT(n)?e.attempt(e6,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eT(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},e6={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eR(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eT(e)?i(e):n(e)}}},e7={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let l={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",l,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=l,e.push(["exit",l,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var l;let a,u=i.events.length;for(;u--;)if("lineEnding"!==i.events[u][1].type&&"linePrefix"!==i.events[u][1].type&&"content"!==i.events[u][1].type){a="paragraph"===i.events[u][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,l=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eL(n)?eR(e,o,"lineSuffix")(n):o(n))}(l)):n(t)};function o(r){return null===r||eT(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},e8=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],te=["pre","script","style","textarea"],tt={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(e_,t,n)}}},tn={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tr={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},ti={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),eL(t)?eR(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=a?(e.exit("codeFencedFenceSequence"),eL(i)?eR(e,s,"whitespace")(i):s(i)):n(i)}(t)):n(t)}function s(r){return null===r||eT(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},l=0,a=0;return function(t){var o;let s;return o=t,l=(s=i.events[i.events.length-1])&&"linePrefix"===s[1].type?s[2].sliceSerialize(s[1],!0).length:0,r=o,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),eL(i)?eR(e,u,"whitespace")(i):u(i))}(o)};function u(o){return null===o||eT(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(tr,c,h)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eT(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(i)):eL(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eR(e,s,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function s(t){return null===t||eT(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eT(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(o,h,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return l>0&&eL(t)?eR(e,d,"linePrefix",l+1)(t):d(t)}function d(t){return null===t||eT(t)?e.check(tr,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eT(n)?(e.exit("codeFlowValue"),d(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},to=document.createElement("i");function tl(e){let t="&"+e+";";to.innerHTML=t;let n=to.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ta={name:"characterReference",tokenize:function(e,t,n){let r,i,o=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,i=eS,s(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eO,s):(e.enter("characterReferenceValue"),r=7,i=eP,s(t))}function s(a){if(59===a&&l){let r=e.exit("characterReferenceValue");return i!==eS||tl(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&l++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let f={...e[n][1].end},p={...e[c][1].start};tv(f,-a),tv(p,a),o={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[n][1].end={...o.start},e[c][1].start={...l.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=ey(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ey(u,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=ey(u,tc(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),u=ey(u,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,u=ey(u,[["enter",e[c][1],t],["exit",e[c][1],t]])):s=0,eg(e,n-1,c-n+3,u),c=n+u.length-s-2;break}}for(c=-1;++co&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},eg(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var o;return e.enter("atxHeading"),o=i,e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||eI(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eT(r)?(e.exit("atxHeading"),t(r)):eL(r)?eR(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eI(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(o)}}},42:eQ,45:[e7,eQ],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,o,l,a,u=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),i=!0,d):63===l?(e.consume(l),r=3,u.interrupt?t:D):ew(l)?(e.consume(l),o=String.fromCharCode(l),h):n(l)}function c(i){return 45===i?(e.consume(i),r=2,f):91===i?(e.consume(i),r=5,l=0,p):ew(i)?(e.consume(i),r=4,u.interrupt?t:D):n(i)}function f(r){return 45===r?(e.consume(r),u.interrupt?t:D):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(l++)?(e.consume(r),l===i.length)?u.interrupt?t:A:p:n(r)}function d(t){return ew(t)?(e.consume(t),o=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||eI(l)){let a=47===l,s=o.toLowerCase();return!a&&!i&&te.includes(s)?(r=1,u.interrupt?t(l):A(l)):e8.includes(o.toLowerCase())?(r=6,a)?(e.consume(l),m):u.interrupt?t(l):A(l):(r=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(l):i?function t(n){return eL(n)?(e.consume(n),t):w(n)}(l):g(l))}return 45===l||eS(l)?(e.consume(l),o+=String.fromCharCode(l),h):n(l)}function m(r){return 62===r?(e.consume(r),u.interrupt?t:A):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||ew(t)?(e.consume(t),y):eL(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),x):eL(t)?(e.consume(t),v):g(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,k):eL(t)?(e.consume(t),x):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eI(n)?v(n):(e.consume(n),t)}(t)}function k(t){return t===a?(e.consume(t),a=null,b):null===t||eT(t)?n(t):(e.consume(t),k)}function b(e){return 47===e||62===e||eL(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||eT(t)?A(t):eL(t)?(e.consume(t),S):n(t)}function A(t){return 45===t&&2===r?(e.consume(t),C):60===t&&1===r?(e.consume(t),T):62===t&&4===r?(e.consume(t),j):63===t&&3===r?(e.consume(t),D):93===t&&5===r?(e.consume(t),L):eT(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tt,M,E)(t)):null===t||eT(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),A)}function E(t){return e.check(tn,P,M)(t)}function P(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||eT(t)?E(t):(e.enter("htmlFlowData"),A(t))}function C(t){return 45===t?(e.consume(t),D):A(t)}function T(t){return 47===t?(e.consume(t),o="",I):A(t)}function I(t){if(62===t){let n=o.toLowerCase();return te.includes(n)?(e.consume(t),j):A(t)}return ew(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),I):A(t)}function L(t){return 93===t?(e.consume(t),D):A(t)}function D(t){return 62===t?(e.consume(t),j):45===t&&2===r?(e.consume(t),D):A(t)}function j(t){return null===t||eT(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),j)}function M(n){return e.exit("htmlFlow"),t(n)}}},61:e7,95:eQ,96:ti,126:ti},tA={38:ta,92:tu},tE={[-5]:ts,[-4]:ts,[-3]:ts,33:tm,38:ta,42:ty,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return ew(t)?(e.consume(t),o):64===t?n(t):a(t)}function o(t){return 43===t||45===t||46===t||eS(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,l):(43===n||45===n||46===n||eS(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eE(r)?n(r):(e.consume(r),l)}function a(t){return 64===t?(e.consume(t),u):eA(t)?(e.consume(t),a):n(t)}function u(i){return eS(i)?function i(o){return 46===o?(e.consume(o),r=0,u):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||eS(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o,l=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),k):63===t?(e.consume(t),v):ew(t)?(e.consume(t),w):n(t)}function u(t){return 45===t?(e.consume(t),s):91===t?(e.consume(t),i=0,d):ew(t)?(e.consume(t),y):n(t)}function s(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),f):eT(t)?(o=c,I(t)):(e.consume(t),c)}function f(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?T(e):45===e?f(e):c(e)}function d(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:d):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):eT(t)?(o=h,I(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?T(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?T(t):eT(t)?(o=y,I(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),x):eT(t)?(o=v,I(t)):(e.consume(t),v)}function x(e){return 62===e?T(e):v(e)}function k(t){return ew(t)?(e.consume(t),b):n(t)}function b(t){return 45===t||eS(t)?(e.consume(t),b):function t(n){return eT(n)?(o=t,I(n)):eL(n)?(e.consume(n),t):T(n)}(t)}function w(t){return 45===t||eS(t)?(e.consume(t),w):47===t||62===t||eI(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),T):58===t||95===t||ew(t)?(e.consume(t),A):eT(t)?(o=S,I(t)):eL(t)?(e.consume(t),S):T(t)}function A(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),A):function t(n){return 61===n?(e.consume(n),E):eT(n)?(o=t,I(n)):eL(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,P):eT(t)?(o=E,I(t)):eL(t)?(e.consume(t),E):(e.consume(t),O)}function P(t){return t===r?(e.consume(t),r=void 0,C):null===t?n(t):eT(t)?(o=P,I(t)):(e.consume(t),P)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eI(t)?S(t):(e.consume(t),O)}function C(e){return 47===e||62===e||eI(e)?S(e):n(e)}function T(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return eL(t)?eR(e,D,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):D(t)}function D(t){return e.enter("htmlTextData"),o(t)}}}],91:tx,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eT(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},tu],93:tf,95:ty,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tD(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tI(n.slice(t?2:1),t?16:10)}return tl(n)||e}let tj={}.hasOwnProperty;function tM(e){return{line:e.line,column:e.column,offset:e.offset}}function tR(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+J({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+J({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+J({start:t.start,end:t.end})+") is still open")}function tz(e){let t=this;t.parser=function(n){var r,o;let l,a,u,s;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:s,autolinkEmail:s,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:s,characterReference:s,codeFenced:r(d),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(d,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:s,data:s,codeFlowValue:s,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:s,htmlText:r(g,i),htmlTextData:s,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:l(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:l(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tI(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=tl(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tM(e.end)},codeFenced:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:l(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e5(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:l(),hardBreakEscape:l(f),hardBreakTrailing:l(f),htmlFlow:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tL,tD),n.identifier=e5(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tM(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(s.call(this,e),c.call(this,e))},link:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e5(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:l(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};!function e(t,n){let r=-1;for(;++r0){let e=l.tokenStack[l.tokenStack.length-1];(e[1]||tR).call(l,void 0,e[0])}for(r.position={start:tM(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tM(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}l>0&&n.push(e[o].slice(0,l))}return n}(l,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function d(e,t){t.restore()}function h(e,t){return function(n,i,o){var l;let c,f,d,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(l=n,function(e){let t=null!==e&&l[e],n=null!==e&&l.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,f=0,0===e.length)?o:y(e[f])}function y(e){return function(n){let i,o,l,c,f;return(i=p(),o=s.previous,l=s.currentConstruct,c=s.events.length,f=Array.from(a),h={from:c,restore:function(){r=i,s.previous=o,s.currentConstruct=l,s.events.length=c,a=f,g()}},d=e,e.partial||(s.currentConstruct=e),e.name&&s.parser.constructs.disable.null.includes(e.name))?x(n):e.tokenize.call(t?Object.assign(Object.create(s),t):s,u,v,x)(n)}}function v(t){return e(d,h),i}function x(e){return(h.restore(),++f{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[o,l]=e[i];switch(o){case 0:case -1:return n(l,i);case 1:{let e=n([],i);for(let t of l)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of l)e[r(t)]=r(n);return e}case 3:return n(new Date(l),i);case 4:{let{source:e,flags:t}=l;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of l)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of l)e.add(r(t));return e}case 7:{let{name:e,message:t}=l;return n(new tF[e](t),i)}case 8:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{let{buffer:e}=new Uint8Array(l);return n(new DataView(e),l)}}return n(new tF[o](l),i)})(0)},{toString:t_}={},{keys:tB}=Object,tU=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=t_.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tH=([e,t])=>0===e&&("function"===t||"symbol"===t),tV=(e,{json:t,lossy:n}={})=>{var r,i,o;let l,a,u=[];return(r=!(t||n),i=!!t,o=new Map,l=(e,t)=>{let n=u.push(e)-1;return o.set(t,n),n},a=e=>{if(o.has(e))return o.get(e);let[t,n]=tU(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return l([-1],e)}return l([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),l([n,[...t]],e)}let r=[],i=l([t,r],e);for(let t of e)r.push(a(t));return i}case 2:{if(n)switch(n){case"BigInt":return l([n,e.toString()],e);case"Boolean":case"Number":case"String":return l([n,e.valueOf()],e)}if(i&&"toJSON"in e)return a(e.toJSON());let o=[],u=l([t,o],e);for(let t of tB(e))(r||!tH(tU(e[t])))&&o.push([a(t),a(e[t])]);return u}case 3:return l([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return l([t,{source:n,flags:r}],e)}case 5:{let n=[],i=l([t,n],e);for(let[t,i]of e)(r||!(tH(tU(t))||tH(tU(i))))&&n.push([a(t),a(i)]);return i}case 6:{let n=[],i=l([t,n],e);for(let t of e)(r||!tH(tU(t)))&&n.push(a(t));return i}}let{message:u}=e;return l([t,{name:n,message:u}],e)})(e),u},tq="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tN(tV(e,t)):structuredClone(e):(e,t)=>tN(tV(e,t));function tW(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(l=String.fromCharCode(o,t),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tK(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tJ(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let tZ=function(e){var t,n;if(null==e)return tX;if("function"==typeof e)return tQ(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n":"")+")"})}return u;function u(){var a;let u,s,c,d=t$;if((!i||f(t,n,r[r.length-1]||void 0))&&!1===(d=Array.isArray(a=o(t,r))?a:"number"==typeof a?[!0,a]:null==a?t$:[a])[0])return d;if("children"in t&&t.children&&t.children&&"skip"!==d[0])for(s=(l?t.children.length:-1)+p,c=r.concat(t);s>-1&&s1:t}function t1(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let t2={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=tW(i.toLowerCase()),l=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=l+1,a+=1,e.footnoteCounts.set(i,a);let u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,u);let s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tG(e,t);let i={src:tW(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tW(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tG(e,t);let i={href:tW(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tW(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=W(t.children[1]),l=q(t.children[t.children.length-1]);o&&l&&(r.position={start:o,end:l}),i.push(r)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,l=o?o.length:t.children.length,a=-1,u=[];for(;++a0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(t1(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t4,yaml:t4,definition:t4,footnoteDefinition:t4};function t4(){}let t5={}.hasOwnProperty,t9={};function t3(e,t){e.position&&(t.position=function(e){let t=W(e),n=q(e);if(t&&n)return{start:t,end:n}}(e))}function t6(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tq(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function t7(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r0&&n.push({type:"text",value:"\n"}),n}function t8(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ne(e,t){let n,r,i,o,l=(n=t||t9,r=new Map,i=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(u,c);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(u,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let d=o[o.length-1];if(d&&"element"===d.type&&"p"===d.tagName){let e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...f)}else o.push(...f);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+s},children:e.wrap(o,!0)};e.patch(i,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tq(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(l),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return u&&s.children.push({type:"text",value:"\n"},u),s}function nt(e,t){return e&&"run"in e?async function(n,r){let i=ne(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ne(n,{file:r,...e||t})}}function nn(e){if(e)throw e}var nr=n(28392);function ni(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let no=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');ns(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let l=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else l<0&&(n=!0,l=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=l));return r===i?i=l:i<0&&(i=e.length),e.slice(r,i)},nl=function(e){let t;if(ns(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},na=function(e){let t;ns(e);let n=e.length,r=-1,i=0,o=-1,l=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==l&&(l=1):o>-1&&(l=-1)}return o<0||r<0||0===l||1===l&&o===r-1&&o===i+1?"":e.slice(o,r)},nu=function(...e){var t;let n,r,i,o=-1;for(;++o2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),l=u,a=0;continue}}else if(i.length>0){i="",o=0,l=u,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(l+1,u):i=e.slice(l+1,u),o=u-l-1;l=u,a=0}else 46===n&&a>-1?a++:a=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function ns(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function nc(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nf=["history","path","basename","stem","extname","dirname"];class np{constructor(e){let t,n;t=e?nc(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++rt.length;l&&t.push(r);try{o=e.apply(this,t)}catch(e){if(l&&n)throw e;return r(e)}l||(o instanceof Promise?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...l):r(null,...l)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nv,t=-1;for(;++t0){let[r,...o]=t,l=n[i][1];ni(l)&&ni(r)&&(r=nr(!0,l,r)),n[i]=[e,r,...o]}}}}let nx=new nv().freeze();function nk(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nb(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nw(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nS(e){if(!ni(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nA(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nE(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new np(e)}let nP=[],nO={allowDangerousHtml:!0},nC=/^(https?|ircs?|mailto|xmpp)$/i,nT=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nI(e){var t;let n,r,i,o,l,a=(n=(t=e).rehypePlugins||nP,r=t.remarkPlugins||nP,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...nO}:nO,nx().use(tz).use(r).use(nt,i).use(n)),u=(o=e.children||"",l=new np,"string"==typeof o&&(l.value=o),l);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,u=t.urlTransform||nL;for(let e of nT)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return tY(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return l?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ef)if(Object.hasOwn(ef,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ef[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let l=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!l&&r&&"number"==typeof t&&(l=!r(e,t,i)),l&&i&&"number"==typeof t)return a&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,o;let l;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,l=function(e,t,i,o){let l=Array.isArray(i.children),a=W(e);return r(t,i,o,l,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,o=t.jsxs,l=function(e,t,n,r){let l=Array.isArray(n.children)?o:i;return r?l(t,n,r):l(t,n)}}let u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?z:R,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=ei(u,e,void 0);return s&&"string"!=typeof s?s:u.create(e,u.Fragment,{children:s||void 0},void 0)}(e,{Fragment:ep.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ep.jsx,jsxs:ep.jsxs,passKeys:!0,passNode:!0})}(a.runSync(a.parse(u),u),e)}function nL(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nC.test(e.slice(0,t))?e:""}},45381:(e,t,n)=>{"use strict";n.d(t,{r:()=>et});var r=n(32716),i=n(55729),o=n(98499),l=n.n(o),a=n(50212),u=n(3780),s=n(24196),c=n(93780),f=["points","className","baseLinePoints","connectNulls"];function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;ttypeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return h(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach(function(e){m(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])}),m(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t},y=function(e,t){var n=g(e);t&&(n=[n.reduce(function(e,t){return[].concat(d(e),d(t))},[])]);var r=n.map(function(e){return e.reduce(function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)},"")}).join("");return 1===n.length?"".concat(r,"Z"):r},v=function(e,t,n){var r=y(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(y(t.reverse(),n).slice(1))},x=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,o=e.connectNulls,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,f);if(!t||!t.length)return null;var u=(0,a.A)("recharts-polygon",n);if(r&&r.length){var s=l.stroke&&"none"!==l.stroke,d=v(t,r,o);return i.createElement("g",{className:u},i.createElement("path",p({},(0,c.J9)(l,!0),{fill:"Z"===d.slice(-1)?l.fill:"none",stroke:"none",d:d})),s?i.createElement("path",p({},(0,c.J9)(l,!0),{fill:"none",d:y(t,o)})):null,s?i.createElement("path",p({},(0,c.J9)(l,!0),{fill:"none",d:y(r,o)})):null)}var h=y(t,o);return i.createElement("path",p({},(0,c.J9)(l,!0),{fill:"Z"===h.slice(-1)?l.fill:"none",className:u,d:h}))},k=n(25599),b=n(27281),w=n(31829);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(){return(A=Object.assign?Object.assign.bind():function(e){for(var t=1;t1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,o=e.axisLine,l=e.axisLineType,a=P(P({},(0,c.J9)(this.props,!1)),{},{fill:"none"},(0,c.J9)(o,!1));if("circle"===l)return i.createElement(s.c,A({className:"recharts-polar-angle-axis-line"},a,{cx:t,cy:n,r:r}));var u=this.props.ticks.map(function(e){return(0,w.IZ)(t,n,r,e.coordinate)});return i.createElement(x,A({className:"recharts-polar-angle-axis-line"},a,{points:u}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,o=t.tick,l=t.tickLine,s=t.tickFormatter,f=t.stroke,p=(0,c.J9)(this.props,!1),d=(0,c.J9)(o,!1),h=P(P({},p),{},{fill:"none"},(0,c.J9)(l,!1)),m=n.map(function(t,n){var c=e.getTickLineCoord(t),m=P(P(P({textAnchor:e.getTickTextAnchor(t)},p),{},{stroke:"none",fill:f},d),{},{index:n,payload:t,x:c.x2,y:c.y2});return i.createElement(u.W,A({className:(0,a.A)("recharts-polar-angle-axis-tick",(0,w.Zk)(o)),key:"tick-".concat(t.coordinate)},(0,b.XC)(e.props,t,n)),l&&i.createElement("line",A({className:"recharts-polar-angle-axis-tick-line"},h,c)),o&&r.renderTickItem(o,m,s?s(t.value,n):t.value))});return i.createElement(u.W,{className:"recharts-polar-angle-axis-ticks"},m)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return!(n<=0)&&t&&t.length?i.createElement(u.W,{className:(0,a.A)("recharts-polar-angle-axis",this.props.className)},r&&this.renderAxisLine(),this.renderTicks()):null}}],n=[{key:"renderTickItem",value:function(e,t,n){return i.isValidElement(e)?i.cloneElement(e,t):l()(e)?e(t):i.createElement(k.E,A({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],t&&O(r.prototype,t),n&&O(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(i.PureComponent);L(M,"displayName","PolarAngleAxis"),L(M,"axisType","angleAxis"),L(M,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var R=n(59690),z=n.n(R),F=n(93604),N=n.n(F),_=n(35555),B=["cx","cy","angle","ticks","axisLine"],U=["ticks","tick","angle","tickFormatter","stroke"];function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(){return(V=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function J(e,t){for(var n=0;n{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,u=/^\s+|\s+$/g;function s(e){return e?e.replace(u,""):""}e.exports=function(e,u){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];u=u||{};var c=1,f=1;function p(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function d(){var e={line:c,column:f};return function(t){return t.position=new h(e),g(r),t}}function h(e){this.start=e,this.end={line:c,column:f},this.source=u.source}function m(t){var n=Error(u.source+":"+c+":"+f+": "+t);if(n.reason=t,n.filename=u.source,n.line=c,n.column=f,n.source=e,u.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(r);var x,k=[];for(y(k);x=function(){var e=d(),n=g(i);if(n){if(v(),!g(o))return m("property missing ':'");var r=g(l),u=e({type:"declaration",property:s(n[0].replace(t,"")),value:r?s(r[0].replace(t,"")):""});return g(a),u}}();)!1!==x&&(k.push(x),y(k));return k}},53353:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","chart-pie","IconChartPie",[["path",{d:"M10 3.2a9 9 0 1 0 10.8 10.8a1 1 0 0 0 -1 -1h-6.8a2 2 0 0 1 -2 -2v-7a.9 .9 0 0 0 -1 -.8",key:"svg-0"}],["path",{d:"M15 3.5a9 9 0 0 1 5.5 5.5h-4.5a1 1 0 0 1 -1 -1v-4.5",key:"svg-1"}]])},59690:(e,t,n)=>{var r=n(19962),i=n(70930),o=n(68988);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),i):void 0}},65248:(e,t,n)=>{"use strict";n.d(t,{F:()=>N});var r=n(55729),i=n(92224),o=n(60449),l=n.n(o),a=n(83817),u=n.n(a),s=n(38822),c=n.n(s),f=n(98499),p=n.n(f),d=n(50212),h=n(3780),m=n(56464),g=n(25599),y=n(35555),v=n(78895),x=n(53259),k=n(93780),b=n(88859),w=n(31829),S=n(53645),A=n(1509),E=n(7571),P=n(27281),O=n(52797);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?l()(e,"paddingAngle",0):0;if(n){var u=(0,S.Dj)(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=L(L({},e),{},{startAngle:a+r,endAngle:a+u(i)+r});o.push(s),a=s.endAngle}else{var c=e.endAngle,f=e.startAngle,d=(0,S.Dj)(0,c-f)(i),h=L(L({},e),{},{startAngle:a+r,endAngle:a+d+r});o.push(h),a=h.endAngle}}),r.createElement(h.W,null,e.renderSectorsStatically(o))})}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return n&&t&&t.length&&(!r||!u()(r,t))?this.renderSectorsWithAnimation():this.renderSectorsStatically(t)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hide,i=t.sectors,o=t.className,l=t.label,a=t.cx,u=t.cy,s=t.innerRadius,c=t.outerRadius,f=t.isAnimationActive,p=this.state.isAnimationFinished;if(n||!i||!i.length||!(0,S.Et)(a)||!(0,S.Et)(u)||!(0,S.Et)(s)||!(0,S.Et)(c))return null;var m=(0,d.A)("recharts-pie",o);return r.createElement(h.W,{tabIndex:this.props.rootTabIndex,className:m,ref:function(t){e.pieRef=t}},this.renderSectors(),l&&this.renderLabels(i),y.J.renderCallByParent(this.props,null,!1),(!f||p)&&v.Z.renderCallByParent(this.props,i,!1))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e=360?b:b-1)*f,O=l.reduce(function(e,t){var n=(0,A.kr)(t,k,0);return e+((0,S.Et)(n)?n:0)},0);return O>0&&(t=l.map(function(e,t){var r,i=(0,A.kr)(e,k,0),o=(0,A.kr)(e,d,t),l=((0,S.Et)(i)?i:0)/O,s=(r=t?n.endAngle+(0,S.sA)(v)*f*(0!==i):u)+(0,S.sA)(v)*((0!==i?g:0)+l*P),c=(r+s)/2,p=(y.innerRadius+y.outerRadius)/2,h=[{name:o,value:i,payload:e,dataKey:k,type:m}],x=(0,w.IZ)(y.cx,y.cy,p,c);return n=L(L(L({percent:l,cornerRadius:a,name:o,tooltipPayload:h,midAngle:c,middleRadius:p,tooltipPosition:x},e),y),{},{value:(0,A.kr)(e,k),startAngle:r,endAngle:s,payload:e,paddingAngle:(0,S.sA)(v)*f})})),L(L({},y),{},{sectors:t,data:l})})},69164:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","currency-dollar","IconCurrencyDollar",[["path",{d:"M16.7 8a3 3 0 0 0 -2.7 -2h-4a3 3 0 0 0 0 6h4a3 3 0 0 1 0 6h-4a3 3 0 0 1 -2.7 -2",key:"svg-0"}],["path",{d:"M12 3v3m0 12v3",key:"svg-1"}]])},72756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var s;return(void 0===t&&(t={}),!(s=e)||i.test(s)||n.test(s))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(l,u):e.replace(o,u)).replace(r,a))}},81077:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","numbers","IconNumbers",[["path",{d:"M8 10v-7l-2 2",key:"svg-0"}],["path",{d:"M6 16a2 2 0 1 1 4 0c0 .591 -.601 1.46 -1 2l-3 3h4",key:"svg-1"}],["path",{d:"M15 14a2 2 0 1 0 2 -2a2 2 0 1 0 -2 -2",key:"svg-2"}],["path",{d:"M6.5 10h3",key:"svg-3"}]])},93003:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","percentage","IconPercentage",[["path",{d:"M17 17m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M7 7m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M6 18l12 -12",key:"svg-2"}]])},93604:(e,t,n)=>{var r=n(19962),i=n(68988),o=n(13917);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/9979-07c2d4f838abbdd7.js b/out/_next/static/chunks/9979-07c2d4f838abbdd7.js new file mode 100644 index 0000000..d639fe3 --- /dev/null +++ b/out/_next/static/chunks/9979-07c2d4f838abbdd7.js @@ -0,0 +1,4 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9979],{831:(e,t,n)=>{var r=n(68988),o=n(22180);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},1509:(e,t,n)=>{"use strict";n.d(t,{s0:()=>rx,gH:()=>rg,YB:()=>rk,HQ:()=>rM,xi:()=>r_,Hj:()=>r$,BX:()=>rb,tA:()=>rm,DW:()=>rL,y2:()=>rB,nb:()=>rF,PW:()=>rj,Ay:()=>ry,vf:()=>rS,Mk:()=>rV,Ps:()=>rv,Mn:()=>rD,kA:()=>rz,Rh:()=>rE,w7:()=>rN,zb:()=>rq,kr:()=>rh,_L:()=>rA,KC:()=>rW,A1:()=>rO,W7:()=>rC,AQ:()=>rG,_f:()=>rT});var r,o,i,a,l,u,c,s={};n.r(s),n.d(s,{scaleBand:()=>f.A,scaleDiverging:()=>function e(){var t=Y(nd()(_));return t.copy=function(){return ns(t,e())},B.K.apply(t,arguments)},scaleDivergingLog:()=>function e(){var t=ei(nd()).domain([.1,1,10]);return t.copy=function(){return ns(t,e()).base(t.base())},B.K.apply(t,arguments)},scaleDivergingPow:()=>nh,scaleDivergingSqrt:()=>ny,scaleDivergingSymlog:()=>function e(){var t=eu(nd());return t.copy=function(){return ns(t,e()).constant(t.constant())},B.K.apply(t,arguments)},scaleIdentity:()=>function e(t){var n;function r(e){return null==e||isNaN(e*=1)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,C),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,C):[0,1],Y(r)},scaleImplicit:()=>ec.h,scaleLinear:()=>J,scaleLog:()=>function e(){let t=ei(N()).domain([1,10]);return t.copy=()=>D(t,e()).base(t.base()),B.C.apply(t,arguments),t},scaleOrdinal:()=>ec.A,scalePoint:()=>f.z,scalePow:()=>eh,scaleQuantile:()=>function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=Array(t-1);++e=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(n(e[i+1],i+1,e)-a)*(o-i)}}(n,e/t);return a}function a(e){return null==e||isNaN(e*=1)?t:r[j(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],tfunction e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function l(e){return null!=e&&e<=e?a[j(i,e,0,o)]:t}function u(){var e=-1;for(i=Array(o);++e=o?[i[o-1],r]:[i[t-1],i[t]]},l.unknown=function(e){return arguments.length&&(t=e),l},l.thresholds=function(){return i.slice()},l.copy=function(){return e().domain([n,r]).range(a).unknown(t)},B.C.apply(Y(l),arguments)},scaleRadial:()=>function e(){var t,n=F(),r=[0,1],o=!1;function i(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:o?Math.round(i):i}return i.invert=function(e){return n.invert(eg(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,C)).map(eg)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},B.C.apply(i,arguments),Y(i)},scaleSequential:()=>function e(){var t=Y(nc()(_));return t.copy=function(){return ns(t,e())},B.K.apply(t,arguments)},scaleSequentialLog:()=>function e(){var t=ei(nc()).domain([1,10]);return t.copy=function(){return ns(t,e()).base(t.base())},B.K.apply(t,arguments)},scaleSequentialPow:()=>nf,scaleSequentialQuantile:()=>function e(){var t=[],n=_;function r(e){if(null!=e&&!isNaN(e*=1))return n((j(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n*=1)||t.push(n);return t.sort(b),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(function(e,t,n){if(!(!(r=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t*=1)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r*=1)>=r&&(yield r)}}(e,void 0))).length)||isNaN(t*=1))){if(t<=0||r<2)return em(e);if(t>=1)return ev(e);var r,o=(r-1)*t,i=Math.floor(o),a=ev((function e(t,n,r=0,o=1/0,i){if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),o=Math.floor(Math.min(t.length-1,o)),!(r<=n&&n<=o))return t;for(i=void 0===i?eb:function(e=b){if(e===b)return eb;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,n)=>{let r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(i);o>r;){if(o-r>600){let a=o-r+1,l=n-r+1,u=Math.log(a),c=.5*Math.exp(2*u/3),s=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1),f=Math.max(r,Math.floor(n-l*c/a+s)),p=Math.min(o,Math.floor(n+(a-l)*c/a+s));e(t,n,f,p,i)}let a=t[n],l=r,u=o;for(ex(t,r,n),i(t[o],a)>0&&ex(t,r,o);li(t[l],a);)++l;for(;i(t[u],a)>0;)--u}0===i(t[r],a)?ex(t,r,u):ex(t,++u,o),u<=n&&(r=u+1),n<=u&&(o=u-1)}return t})(e,i).subarray(0,i+1));return a+(em(e.subarray(i+1))-a)*(o-i)}})(t,r/e))},r.copy=function(){return e(n).domain(t)},B.K.apply(r,arguments)},scaleSequentialSqrt:()=>np,scaleSequentialSymlog:()=>function e(){var t=eu(nc());return t.copy=function(){return ns(t,e()).constant(t.constant())},B.K.apply(t,arguments)},scaleSqrt:()=>ey,scaleSymlog:()=>function e(){var t=eu(N());return t.copy=function(){return D(t,e()).constant(t.constant())},B.C.apply(t,arguments)},scaleThreshold:()=>function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[j(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},B.C.apply(i,arguments)},scaleTime:()=>nl,scaleUtc:()=>nu,tickFormat:()=>K});var f=n(49726);let p=Math.sqrt(50),d=Math.sqrt(10),h=Math.sqrt(2);function y(e,t,n){let r,o,i,a=(t-e)/Math.max(0,n),l=Math.floor(Math.log10(a)),u=a/Math.pow(10,l),c=u>=p?10:u>=d?5:u>=h?2:1;return(l<0?(r=Math.round(e*(i=Math.pow(10,-l)/c)),o=Math.round(t*i),r/it&&--o,i=-i):(r=Math.round(e/(i=Math.pow(10,l)*c)),o=Math.round(t/i),r*it&&--o),o0))return[];if(e===t)return[e];let r=t=o))return[];let l=i-o+1,u=Array(l);if(r)if(a<0)for(let e=0;et?1:e>=t?0:NaN}function x(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function w(e){let t,n,r;function o(e,r,i=0,a=e.length){if(i>>1;0>n(e[t],r)?i=t+1:a=t}while(ib(e(t),n),r=(t,n)=>e(t)-n):(t=e===b||e===x?e:O,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){let a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o>>1;0>=n(e[t],r)?o=t+1:i=t}while(ot&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=u>2?R:I,o=i=null,f}function f(t){return null==t||isNaN(t*=1)?n:(o||(o=r(a.map(e),l,u)))(e(c(t)))}return f.invert=function(n){return c(t((i||(i=r(l,a.map(e),P.A)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,C),s()):a.slice()},f.range=function(e){return arguments.length?(l=Array.from(e),s()):l.slice()},f.rangeRound=function(e){return l=Array.from(e),u=M,s()},f.clamp=function(e){return arguments.length?(c=!!e||_,s()):c!==_},f.interpolate=function(e){return arguments.length?(u=e,s()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,s()}}function F(){return N()(_,_)}var B=n(58905),L=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function z(e){var t;if(!(t=L.exec(e)))throw Error("invalid format: "+e);return new V({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function V(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function U(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function H(e){return(e=U(Math.abs(e)))?e[1]:NaN}function G(e,t){var n=U(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+Array(o-r.length+2).join("0")}z.prototype=V.prototype,V.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let $={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>G(100*e,t),r:G,s:function(e,t){var n=U(e,t);if(!n)return e+"";var o=n[0],i=n[1],a=i-(r=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,l=o.length;return a===l?o:a>l?o+Array(a-l+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+Array(1-a).join("0")+U(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function W(e){return e}var q=Array.prototype.map,X=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function K(e,t,n,r){var o,l,u=m(e,t,n);switch((r=z(null==r?",f":r)).type){case"s":var c=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(l=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(H(c)/3)))-H(Math.abs(u))))||(r.precision=l),a(r,c);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(l=Math.max(0,H(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(o=Math.abs(o=u)))-H(o))+1)||(r.precision=l-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(l=Math.max(0,-H(Math.abs(u))))||(r.precision=l-("%"===r.type)*2)}return i(r)}function Y(e){var t=e.domain;return e.ticks=function(e){var n=t();return g(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return K(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,l=i.length-1,u=i[a],c=i[l],s=10;for(c0;){if((o=v(u,c,n))===r)return i[a]=u,i[l]=c,t(i);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;r=o}return e},e}function J(){var e=F();return e.copy=function(){return D(e,J())},B.C.apply(e,arguments),Y(e)}function Z(e,t){e=e.slice();var n,r=0,o=e.length-1,i=e[r],a=e[o];return a-e(-t,n)}function ei(e){let t,n,r=e(Q,ee),o=r.domain,a=10;function l(){var i,l;return t=(i=a)===Math.E?Math.log:10===i&&Math.log10||2===i&&Math.log2||(i=Math.log(i),e=>Math.log(e)/i),n=10===(l=a)?er:l===Math.E?Math.exp:e=>Math.pow(l,e),o()[0]<0?(t=eo(t),n=eo(n),e(et,en)):e(Q,ee),r}return r.base=function(e){return arguments.length?(a=+e,l()):a},r.domain=function(e){return arguments.length?(o(e),l()):o()},r.ticks=e=>{let r,i,l=o(),u=l[0],c=l[l.length-1],s=c0){for(;f<=p;++f)for(r=1;rc)break;h.push(i)}}else for(;f<=p;++f)for(r=a-1;r>=1;--r)if(!((i=f>0?r/n(-f):r*n(f))c)break;h.push(i)}2*h.length{if(null==e&&(e=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=z(o)).precision||(o.trim=!0),o=i(o)),e===1/0)return o;let l=Math.max(1,a*e/r.ticks().length);return e=>{let r=e/n(Math.round(t(e)));return r*ao(Z(o(),{floor:e=>n(Math.floor(t(e))),ceil:e=>n(Math.ceil(t(e)))})),r}function ea(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function el(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function eu(e){var t=1,n=e(ea(1),el(t));return n.constant=function(n){return arguments.length?e(ea(t=+n),el(t)):t},Y(n)}i=(o=function(e){var t,n,o,i=void 0===e.grouping||void 0===e.thousands?W:(t=q.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,l=t[0],u=0;o>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),i.push(e.substring(o-=l,o+l)),!((u+=l+1)>r));)l=t[a=(a+1)%t.length];return i.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",l=void 0===e.currency?"":e.currency[1]+"",u=void 0===e.decimal?".":e.decimal+"",c=void 0===e.numerals?W:(o=q.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return o[+e]})}),s=void 0===e.percent?"%":e.percent+"",f=void 0===e.minus?"−":e.minus+"",p=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=z(e)).fill,n=e.align,o=e.sign,d=e.symbol,h=e.zero,y=e.width,g=e.comma,v=e.precision,m=e.trim,b=e.type;"n"===b?(g=!0,b="g"):$[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var x="$"===d?a:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===d?l:/[%p]/.test(b)?s:"",O=$[b],S=/[defgprs%]/.test(b);function A(e){var a,l,s,d=x,A=w;if("c"===b)A=O(e)+A,e="";else{var j=(e*=1)<0||1/e<0;if(e=isNaN(e)?p:O(Math.abs(e),v),m&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),j&&0==+e&&"+"!==o&&(j=!1),d=(j?"("===o?o:f:"-"===o||"("===o?"":o)+d,A=("s"===b?X[8+r/3]:"")+A+(j&&"("===o?")":""),S){for(a=-1,l=e.length;++a(s=e.charCodeAt(a))||s>57){A=(46===s?u+e.slice(a+1):e.slice(a))+A,e=e.slice(0,a);break}}}g&&!h&&(e=i(e,1/0));var E=d.length+e.length+A.length,P=E>1)+d+e+A+P.slice(E);break;default:e=P+d+e+A}return c(e)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),A.toString=function(){return e+""},A}return{format:d,formatPrefix:function(e,t){var n=d(((e=z(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(H(t)/3))),o=Math.pow(10,-r),i=X[8+r/3];return function(e){return n(o*e)+i}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=o.formatPrefix;var ec=n(41499);function es(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ef(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ep(e){return e<0?-e*e:e*e}function ed(e){var t=e(_,_),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(_,_):.5===n?e(ef,ep):e(es(n),es(1/n)):n},Y(t)}function eh(){var e=ed(N());return e.copy=function(){return D(e,eh()).exponent(e.exponent())},B.C.apply(e,arguments),e}function ey(){return eh.apply(null,arguments).exponent(.5)}function eg(e){return Math.sign(e)*e*e}function ev(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n=o)&&(n=o)}return n}function em(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function eb(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(et))}function ex(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}let ew=new Date,eO=new Date;function eS(e,t,n,r){function o(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{let t=o(e),n=o.ceil(e);return e-t(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{let a,l=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n0))return l;do l.push(a=new Date(+n)),t(n,i),e(n);while(aeS(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(o.count=(t,r)=>(ew.setTime(+t),eO.setTime(+r),e(ew),e(eO),Math.floor(n(ew,eO))),o.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null),o}let eA=eS(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);eA.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?eS(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):eA:null,eA.range;let ej=eS(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());ej.range;let eE=eS(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());eE.range;let eP=eS(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());eP.range;let eM=eS(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());eM.range;let eC=eS(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());eC.range;let ek=eS(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);ek.range;let e_=eS(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);e_.range;let eT=eS(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function eI(e){return eS(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}eT.range;let eR=eI(0),eD=eI(1),eN=eI(2),eF=eI(3),eB=eI(4),eL=eI(5),ez=eI(6);function eV(e){return eS(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}eR.range,eD.range,eN.range,eF.range,eB.range,eL.range,ez.range;let eU=eV(0),eH=eV(1),eG=eV(2),e$=eV(3),eW=eV(4),eq=eV(5),eX=eV(6);eU.range,eH.range,eG.range,e$.range,eW.range,eq.range,eX.range;let eK=eS(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());eK.range;let eY=eS(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());eY.range;let eJ=eS(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());eJ.every=e=>isFinite(e=Math.floor(e))&&e>0?eS(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,eJ.range;let eZ=eS(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());function eQ(e,t,n,r,o,i){let a=[[ej,1,1e3],[ej,5,5e3],[ej,15,15e3],[ej,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function l(t,n,r){let o=Math.abs(n-t)/r,i=w(([,,e])=>e).right(a,o);if(i===a.length)return e.every(m(t/31536e6,n/31536e6,r));if(0===i)return eA.every(Math.max(m(t,n,r),1));let[l,u]=a[o/a[i-1][2]isFinite(e=Math.floor(e))&&e>0?eS(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,eZ.range;let[e0,e1]=eQ(eZ,eY,eU,eT,eC,eP),[e2,e5]=eQ(eJ,eK,eR,ek,eM,eE);function e3(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 e8(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 e9(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var e6={"-":"",_:" ",0:"0"},e4=/^\s*\d+/,e7=/^%/,te=/[\\^$*+?|[\]().{}]/g;function tt(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[e.toLowerCase(),t]))}function ti(e,t,n){var r=e4.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ta(e,t,n){var r=e4.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function tl(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function tu(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function tc(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ts(e,t,n){var r=e4.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function tf(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function tp(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function td(e,t,n){var r=e4.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function th(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ty(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function tg(e,t,n){var r=e4.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function tv(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function tm(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function tb(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function tx(e,t,n){var r=e4.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tw(e,t,n){var r=e4.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function tO(e,t,n){var r=e7.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function tS(e,t,n){var r=e4.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function tA(e,t,n){var r=e4.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function tj(e,t){return tt(e.getDate(),t,2)}function tE(e,t){return tt(e.getHours(),t,2)}function tP(e,t){return tt(e.getHours()%12||12,t,2)}function tM(e,t){return tt(1+ek.count(eJ(e),e),t,3)}function tC(e,t){return tt(e.getMilliseconds(),t,3)}function tk(e,t){return tC(e,t)+"000"}function t_(e,t){return tt(e.getMonth()+1,t,2)}function tT(e,t){return tt(e.getMinutes(),t,2)}function tI(e,t){return tt(e.getSeconds(),t,2)}function tR(e){var t=e.getDay();return 0===t?7:t}function tD(e,t){return tt(eR.count(eJ(e)-1,e),t,2)}function tN(e){var t=e.getDay();return t>=4||0===t?eB(e):eB.ceil(e)}function tF(e,t){return e=tN(e),tt(eB.count(eJ(e),e)+(4===eJ(e).getDay()),t,2)}function tB(e){return e.getDay()}function tL(e,t){return tt(eD.count(eJ(e)-1,e),t,2)}function tz(e,t){return tt(e.getFullYear()%100,t,2)}function tV(e,t){return tt((e=tN(e)).getFullYear()%100,t,2)}function tU(e,t){return tt(e.getFullYear()%1e4,t,4)}function tH(e,t){var n=e.getDay();return tt((e=n>=4||0===n?eB(e):eB.ceil(e)).getFullYear()%1e4,t,4)}function tG(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tt(t/60|0,"0",2)+tt(t%60,"0",2)}function t$(e,t){return tt(e.getUTCDate(),t,2)}function tW(e,t){return tt(e.getUTCHours(),t,2)}function tq(e,t){return tt(e.getUTCHours()%12||12,t,2)}function tX(e,t){return tt(1+e_.count(eZ(e),e),t,3)}function tK(e,t){return tt(e.getUTCMilliseconds(),t,3)}function tY(e,t){return tK(e,t)+"000"}function tJ(e,t){return tt(e.getUTCMonth()+1,t,2)}function tZ(e,t){return tt(e.getUTCMinutes(),t,2)}function tQ(e,t){return tt(e.getUTCSeconds(),t,2)}function t0(e){var t=e.getUTCDay();return 0===t?7:t}function t1(e,t){return tt(eU.count(eZ(e)-1,e),t,2)}function t2(e){var t=e.getUTCDay();return t>=4||0===t?eW(e):eW.ceil(e)}function t5(e,t){return e=t2(e),tt(eW.count(eZ(e),e)+(4===eZ(e).getUTCDay()),t,2)}function t3(e){return e.getUTCDay()}function t8(e,t){return tt(eH.count(eZ(e)-1,e),t,2)}function t9(e,t){return tt(e.getUTCFullYear()%100,t,2)}function t6(e,t){return tt((e=t2(e)).getUTCFullYear()%100,t,2)}function t4(e,t){return tt(e.getUTCFullYear()%1e4,t,4)}function t7(e,t){var n=e.getUTCDay();return tt((e=n>=4||0===n?eW(e):eW.ceil(e)).getUTCFullYear()%1e4,t,4)}function ne(){return"+0000"}function nt(){return"%"}function nn(e){return+e}function nr(e){return Math.floor(e/1e3)}function no(e){return new Date(e)}function ni(e){return e instanceof Date?+e:+new Date(+e)}function na(e,t,n,r,o,i,a,l,u,c){var s=F(),f=s.invert,p=s.domain,d=c(".%L"),h=c(":%S"),y=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),m=c("%b %d"),b=c("%B"),x=c("%Y");function w(e){return(u(e)1)for(var n,r,o,i=1,a=e[t[0]],l=a.length;i=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:nn,s:nr,S:tI,u:tR,U:tD,V:tF,w:tB,W:tL,x:null,X:null,y:tz,Y:tU,Z:tG,"%":nt},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:t$,e:t$,f:tY,g:t6,G:t7,H:tW,I:tq,j:tX,L:tK,m:tJ,M:tZ,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:nn,s:nr,S:tQ,u:t0,U:t1,V:t5,w:t3,W:t8,x:null,X:null,y:t9,Y:t4,Z:ne,"%":nt},w={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return A(e,t,n,r)},d:ty,e:ty,f:tw,g:tf,G:ts,H:tv,I:tv,j:tg,L:tx,m:th,M:tm,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=s.get(r[0].toLowerCase()),n+r[0].length):-1},q:td,Q:tS,s:tA,S:tb,u:ta,U:tl,V:tu,w:ti,W:tc,x:function(e,t,r){return A(e,n,t,r)},X:function(e,t,n){return A(e,r,t,n)},y:tf,Y:ts,Z:tp,"%":tO};function O(e,t){return function(n){var r,o,i,a=[],l=-1,u=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in i||(i.w=1),"Z"in i?(r=(o=(r=e8(e9(i.y,0,1))).getUTCDay())>4||0===o?eH.ceil(r):eH(r),r=e_.offset(r,(i.V-1)*7),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(r=(o=(r=e3(e9(i.y,0,1))).getDay())>4||0===o?eD.ceil(r):eD(r),r=ek.offset(r,(i.V-1)*7),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:+("W"in i)),o="Z"in i?e8(e9(i.y,0,1)).getUTCDay():e3(e9(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,e8(i)):e3(i)}}function A(e,t,n,r){for(var o,i,a=0,l=t.length,u=n.length;a=u)return -1;if(37===(o=t.charCodeAt(a++))){if(!(i=w[(o=t.charAt(a++))in e6?t.charAt(a++):o])||(r=i(e,n,r))<0)return -1}else if(o!=n.charCodeAt(r++))return -1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(t,b),x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,l.parse,c=l.utcFormat,l.utcParse;var nv=n(71947),nm=n(46554);function nb(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function nx(e,t){return e[t]}function nw(e){let t=[];return t.key=e,t}var nO=n(38867),nS=n.n(nO),nA=n(84905),nj=n.n(nA),nE=n(38822),nP=n.n(nE),nM=n(98499),nC=n.n(nM),nk=n(84450),n_=n.n(nk),nT=n(60449),nI=n.n(nT),nR=n(35342),nD=n.n(nR),nN=n(51068),nF=n.n(nN),nB=n(6797),nL=n.n(nB),nz=n(83817),nV=n.n(nz),nU=n(26194),nH=n.n(nU),nG=n(56650),n$=n.n(nG);function nW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=t?n.apply(void 0,o):e(t-a,nY(function(){for(var e=arguments.length,t=Array(e),r=0;rtypeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return nW(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nW(e,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(t))}))})}(e.length,e)},nZ=function(e,t){for(var n=[],r=e;rtypeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||n6(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n9(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("u">typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}}(e,t)||n6(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n6(e,t){if(e){if("string"==typeof e)return n4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n4(e,t)}}function n4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr&&(o=r,i=n),[o,i]}function re(e,t,n){if(e.lte(0))return new(n$())(0);var r=n3(e.toNumber()),o=new(n$())(10).pow(r),i=e.div(o),a=1!==r?.05:.1,l=new(n$())(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?l:new(n$())(Math.ceil(l))}function rt(e,t,n){var r=1,o=new(n$())(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new(n$())(10).pow(n3(e)-1),o=new(n$())(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new(n$())(Math.floor(e)))}else 0===e?o=new(n$())(Math.floor((t-1)/2)):n||(o=new(n$())(Math.floor(e)));var a=Math.floor((t-1)/2);return n0(nQ(function(e){return o.add(new(n$())(e-a).mul(r)).toNumber()}),nZ)(0,t)}var rn=n2(function(e){var t=n9(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),l=n9(n7([n,r]),2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var s=c===1/0?[u].concat(n8(nZ(0,o-1).map(function(){return 1/0}))):[].concat(n8(nZ(0,o-1).map(function(){return-1/0})),[c]);return n>r?n1(s):s}if(u===c)return rt(u,o,i);var f=function e(t,n,r,o){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new(n$())(0),tickMin:new(n$())(0),tickMax:new(n$())(0)};var l=re(new(n$())(n).sub(t).div(r-1),o,a),u=Math.ceil((i=t<=0&&n>=0?new(n$())(0):(i=new(n$())(t).add(n).div(2)).sub(new(n$())(i).mod(l))).sub(t).div(l).toNumber()),c=Math.ceil(new(n$())(n).sub(i).div(l).toNumber()),s=u+c+1;return s>r?e(t,n,r,o,a+1):(s0?c+(r-s):c,u=n>0?u:u+(r-s)),{step:l,tickMin:i.sub(new(n$())(u).mul(l)),tickMax:i.add(new(n$())(c).mul(l))})}(u,c,a,i),p=f.step,d=n5(f.tickMin,f.tickMax.add(new(n$())(.1).mul(p)),p);return n>r?n1(d):d});n2(function(e){var t=n9(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),l=n9(n7([n,r]),2),u=l[0],c=l[1];if(u===-1/0||c===1/0)return[n,r];if(u===c)return rt(u,o,i);var s=re(new(n$())(c).sub(u).div(a-1),i,0),f=n0(nQ(function(e){return new(n$())(u).add(new(n$())(e).mul(s)).toNumber()}),nZ)(0,a).filter(function(e){return e>=u&&e<=c});return n>r?n1(f):f});var rr=n2(function(e,t){var n=n9(e,2),r=n[0],o=n[1],i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=n9(n7([r,o]),2),l=a[0],u=a[1];if(l===-1/0||u===1/0)return[r,o];if(l===u)return[l];var c=Math.max(t,2),s=re(new(n$())(u).sub(l).div(c-1),i,0),f=[].concat(n8(n5(new(n$())(l),new(n$())(u).sub(new(n$())(.99).mul(s)),s)),[u]);return r>o?n1(f):f}),ro=n(65219),ri=n(53645),ra=n(93780),rl=n(65049);function ru(e){return(ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rc(e){return function(e){if(Array.isArray(e))return rs(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return rs(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rs(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!=(t=null==n?void 0:n.length)?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var l=o.range,u=0;u0?r[u-1].coordinate:r[a-1].coordinate,s=r[u].coordinate,f=u>=a-1?r[0].coordinate:r[u+1].coordinate,p=void 0;if((0,ri.sA)(s-c)!==(0,ri.sA)(f-s)){var d=[];if((0,ri.sA)(f-s)===(0,ri.sA)(l[1]-l[0])){p=f;var h=s+l[1]-l[0];d[0]=Math.min(h,(h+c)/2),d[1]=Math.max(h,(h+c)/2)}else{p=c;var y=f+l[1]-l[0];d[0]=Math.min(s,(y+s)/2),d[1]=Math.max(s,(y+s)/2)}var g=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(e>g[0]&&e<=g[1]||e>=d[0]&&e<=d[1]){i=r[u].index;break}}else{var v=Math.min(c,f),m=Math.max(c,f);if(e>(v+s)/2&&e<=(m+s)/2){i=r[u].index;break}}}else for(var b=0;b0&&b(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i},rv=function(e){var t,n,r=e.type.displayName,o=null!=(t=e.type)&&t.defaultProps?rp(rp({},e.type.defaultProps),e.props):e.props,i=o.stroke,a=o.fill;switch(r){case"Line":n=i;break;case"Area":case"Radar":n=i&&"none"!==i?i:a;break;default:n=a}return n},rm=function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,o=void 0===r?{}:r;if(!o)return{};for(var i={},a=Object.keys(o),l=0,u=a.length;l=0});if(g&&g.length){var v=g[0].type.defaultProps,m=void 0!==v?rp(rp({},v),g[0].props):g[0].props,b=m.barSize,x=m[y];i[x]||(i[x]=[]);var w=nP()(b)?t:b;i[x].push({item:g[0],stackList:g.slice(1),barSize:nP()(w)?void 0:(0,ri.F4)(w,n,0)})}}return i},rb=function(e){var t,n=e.barGap,r=e.barCategoryGap,o=e.bandSize,i=e.sizeList,a=void 0===i?[]:i,l=e.maxBarSize,u=a.length;if(u<1)return null;var c=(0,ri.F4)(n,o,0,!0),s=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=o/u,d=a.reduce(function(e,t){return e+t.barSize||0},0);(d+=(u-1)*c)>=o&&(d-=(u-1)*c,c=0),d>=o&&p>0&&(f=!0,p*=.9,d=u*p);var h={offset:((o-d)/2|0)-c,size:0};t=a.reduce(function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+c,size:f?p:t.barSize}},r=[].concat(rc(e),[n]);return h=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:h})}),r},s)}else{var y=(0,ri.F4)(r,o,0,!0);o-2*y-(u-1)*c<=0&&(c=0);var g=(o-2*y-(u-1)*c)/u;g>1&&(g>>=0);var v=l===+l?Math.min(g,l):g;t=a.reduce(function(e,t,n){var r=[].concat(rc(e),[{item:t.item,position:{offset:y+(g+c)*n+(g-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},s)}return t},rx=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,l=i-(a.left||0)-(a.right||0),u=(0,rl.g)({children:o,legendWidth:l});if(u){var c=r||{},s=c.width,f=c.height,p=u.align,d=u.verticalAlign,h=u.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&(0,ri.Et)(e[p]))return rp(rp({},e),{},rd({},p,e[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&(0,ri.Et)(e[d]))return rp(rp({},e),{},rd({},d,e[d]+(f||0)))}return e},rw=function(e,t,n,r,o){var i=t.props.children,a=(0,ra.aS)(i,ro.u).filter(function(e){var t;return t=e.props.direction,!!nP()(o)||("horizontal"===r?"yAxis"===o:"vertical"===r||"x"===t?"xAxis"===o:"y"!==t||"yAxis"===o)});if(a&&a.length){var l=a.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=rh(t,n);if(nP()(r))return e;var o=Array.isArray(r)?[nj()(r),nS()(r)]:[r,r],i=l.reduce(function(e,n){var r=rh(t,n,0),i=o[0]-Math.abs(Array.isArray(r)?r[0]:r),a=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]},[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]},[1/0,-1/0])}return null},rO=function(e,t,n,r,o){var i=t.map(function(t){return rw(e,t,n,o,r)}).filter(function(e){return!nP()(e)});return i&&i.length?i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},rS=function(e,t,n,r,o){var i=t.map(function(t){var i=t.props.dataKey;return"number"===n&&i&&rw(e,t,i,r)||ry(e,i,n,o)});if("number"===n)return i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var a={};return i.reduce(function(e,t){for(var n=0,r=t.length;n=2?2*(0,ri.sA)(a[0]-a[1])*u:u,t&&(e.ticks||e.niceTicks))?(e.ticks||e.niceTicks).map(function(e){return{coordinate:r(o?o.indexOf(e):e)+u,value:e,offset:u}}).filter(function(e){return!nF()(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+u,value:e,index:t,offset:u}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+u,value:e,offset:u}}):r.domain().map(function(e,t){return{coordinate:r(e)+u,value:o?o[e]:e,index:t,offset:u}})},rP=new WeakMap,rM=function(e,t){if("function"!=typeof t)return e;rP.has(e)||rP.set(e,new WeakMap);var n=rP.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},rC=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:f.A(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:J(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:f.z(),realScaleType:"point"}:"category"===o?{scale:f.A(),realScaleType:"band"}:{scale:J(),realScaleType:"linear"};if(n_()(r)){var l="scale".concat(nL()(r));return{scale:(s[l]||f.z)(),realScaleType:s[l]?l:"point"}}return nC()(r)?{scale:r}:{scale:f.z(),realScaleType:"point"}},rk=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,i=Math.max(r[0],r[1])+1e-4,a=e(t[0]),l=e(t[n-1]);(ai||li)&&e.domain([t[0],t[n-1]])}},r_=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]=0?(e[a][n][0]=o,e[a][n][1]=o+l,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+l,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},rR=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),o=rI[n];return(function(){var e=(0,nm.A)([]),t=nb,n=ng,r=nx;function o(o){var i,a,l=Array.from(e.apply(this,arguments),nw),u=l.length,c=-1;for(let e of o)for(i=0,++c;i=0?0:o<0?o:r}return n[0]},rz=function(e,t){var n,r=(null!=(n=e.type)&&n.defaultProps?rp(rp({},e.type.defaultProps),e.props):e.props).stackId;if((0,ri.vh)(r)){var o=t[r];if(o){var i=o.items.indexOf(e);return i>=0?o.stackedData[i]:null}}return null},rV=function(e,t,n){return Object.keys(e).reduce(function(r,o){var i=e[o].stackedData.reduce(function(e,r){var o=r.slice(t,n+1).reduce(function(e,t){return[nj()(t.concat([e[0]]).filter(ri.Et)),nS()(t.concat([e[1]]).filter(ri.Et))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},rU=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,rH=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,rG=function(e,t,n){if(nC()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if((0,ri.Et)(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(rU.test(e[0])){var o=+rU.exec(e[0])[1];r[0]=t[0]-o}else nC()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if((0,ri.Et)(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(rH.test(e[1])){var i=+rH.exec(e[1])[1];r[1]=t[1]+i}else nC()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},r$=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=nH()(t,function(e){return e.coordinate}),i=1/0,a=1,l=o.length;a{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},1905:(e,t,n)=>{var r=n(53325),o=n(34024),i=n(68988);e.exports=function(e,t){var n={};return t=i(t,3),o(e,function(e,o,i){r(n,o,t(e,o,i))}),n}},2193:(e,t,n)=>{var r=n(3128),o=n(29090),i=n(31835),a=n(96024),l=n(53140),u=n(91544),c=n(9541),s=n(43562),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,g,v){var m=u(e),b=u(t),x=m?p:l(e),w=b?p:l(t);x=x==f?d:x,w=w==f?d:w;var O=x==d,S=w==d,A=x==w;if(A&&c(e)){if(!c(t))return!1;m=!0,O=!1}if(A&&!O)return v||(v=new r),m||s(e)?o(e,t,n,y,g,v):i(e,t,x,n,y,g,v);if(!(1&n)){var j=O&&h.call(e,"__wrapped__"),E=S&&h.call(t,"__wrapped__");if(j||E){var P=j?e.value():e,M=E?t.value():t;return v||(v=new r),g(P,M,n,y,v)}}return!!A&&(v||(v=new r),a(e,t,n,y,g,v))}},2390:(e,t,n)=>{"use strict";n.d(t,{J:()=>d,M:()=>y});var r=n(55729),o=n(50212),i=n(92224),a=n(93780);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1,u=n>=0?1:-1,c=+(r>=0&&n>=0||r<0&&n<0);if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+l*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(c,",").concat(e+u*s[0],",").concat(t)),i+="L ".concat(e+n-u*s[1],",").concat(t),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+l*s[1])),i+="L ".concat(e+n,",").concat(t+r-l*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(c,",\n ").concat(e+n-u*s[2],",").concat(t+r)),i+="L ".concat(e+u*s[3],",").concat(t+r),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-l*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+u*p,",").concat(t,"\n L ").concat(e+n-u*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n,",").concat(t+l*p,"\n L ").concat(e+n,",").concat(t+r-l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n-u*p,",").concat(t+r,"\n L ").concat(e+u*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e,",").concat(t+r-l*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},d=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,l=t.height;if(Math.abs(a)>0&&Math.abs(l)>0){var u=Math.min(o,o+a),c=Math.max(o,o+a),s=Math.min(i,i+l),f=Math.max(i,i+l);return n>=u&&n<=c&&r>=s&&r<=f}return!1},h={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(e){var t,n=f(f({},h),e),l=(0,r.useRef)(),s=function(e){if(Array.isArray(e))return e}(t=(0,r.useState)(-1))||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return c(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=s[0],y=s[1];(0,r.useEffect)(function(){if(l.current&&l.current.getTotalLength)try{var e=l.current.getTotalLength();e&&y(e)}catch(e){}},[]);var g=n.x,v=n.y,m=n.width,b=n.height,x=n.radius,w=n.className,O=n.animationEasing,S=n.animationDuration,A=n.animationBegin,j=n.isAnimationActive,E=n.isUpdateAnimationActive;if(g!==+g||v!==+v||m!==+m||b!==+b||0===m||0===b)return null;var P=(0,o.A)("recharts-rectangle",w);return E?r.createElement(i.Ay,{canBegin:d>0,from:{width:m,height:b,x:g,y:v},to:{width:m,height:b,x:g,y:v},duration:S,animationEasing:O,isActive:E},function(e){var t=e.width,o=e.height,c=e.x,s=e.y;return r.createElement(i.Ay,{canBegin:d>0,from:"0px ".concat(-1===d?1:d,"px"),to:"".concat(d,"px 0px"),attributeName:"strokeDasharray",begin:A,duration:S,isActive:j,easing:O},r.createElement("path",u({},(0,a.J9)(n,!0),{className:P,d:p(c,s,t,o,x),ref:l})))}):r.createElement("path",u({},(0,a.J9)(n,!0),{className:P,d:p(g,v,m,b,x)}))}},2485:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","grip-vertical","IconGripVertical",[["path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-5"}]])},2549:(e,t,n)=>{"use strict";n.d(t,{DR:()=>b,pj:()=>O,rY:()=>M,yi:()=>P,Yp:()=>x,hj:()=>E,sk:()=>j,AF:()=>w,Nk:()=>A,$G:()=>S});var r=n(55729),o=n(73403),i=n(43724),a=n.n(i),l=n(57174),u=n.n(l),c=n(55765),s=n.n(c)()(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return"l"+e.left+"t"+e.top+"w"+e.width+"h"+e.height}),f=n(53645),p=(0,r.createContext)(void 0),d=(0,r.createContext)(void 0),h=(0,r.createContext)(void 0),y=(0,r.createContext)({}),g=(0,r.createContext)(void 0),v=(0,r.createContext)(0),m=(0,r.createContext)(0),b=function(e){var t=e.state,n=t.xAxisMap,o=t.yAxisMap,i=t.offset,a=e.clipPathId,l=e.children,u=e.width,c=e.height,f=s(i);return r.createElement(p.Provider,{value:n},r.createElement(d.Provider,{value:o},r.createElement(y.Provider,{value:i},r.createElement(h.Provider,{value:f},r.createElement(g.Provider,{value:a},r.createElement(v.Provider,{value:c},r.createElement(m.Provider,{value:u},l)))))))},x=function(){return(0,r.useContext)(g)},w=function(e){var t=(0,r.useContext)(p);null==t&&(0,o.A)(!1);var n=t[e];return null==n&&(0,o.A)(!1),n},O=function(){var e=(0,r.useContext)(p);return(0,f.lX)(e)},S=function(){var e=(0,r.useContext)(d);return a()(e,function(e){return u()(e.domain,Number.isFinite)})||(0,f.lX)(e)},A=function(e){var t=(0,r.useContext)(d);null==t&&(0,o.A)(!1);var n=t[e];return null==n&&(0,o.A)(!1),n},j=function(){return(0,r.useContext)(h)},E=function(){return(0,r.useContext)(y)},P=function(){return(0,r.useContext)(m)},M=function(){return(0,r.useContext)(v)}},2603:(e,t,n)=>{var r=n(88165);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},2882:e=>{e.exports=function(e){return e!=e}},2893:(e,t,n)=>{"use strict";n.d(t,{W:()=>g});var r=n(55729),o=n(50212),i=n(2549),a=n(46271),l=n(1509);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.d(t,{W:()=>u});var r=n(55729),o=n(50212),i=n(93780),a=["children","className"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),s=(0,o.A)("recharts-layer",u);return r.createElement("g",l({className:s},(0,i.J9)(c,!0),{ref:t}),n)})},4140:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5586:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,l=n(t((r-e)/(o||1)),0),u=Array(l);l--;)u[i?l:++a]=e,e+=o;return u}},5688:(e,t,n)=>{"use strict";function r(e,t){for(var n in e)if(({}).hasOwnProperty.call(e,n)&&(!({}).hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if(({}).hasOwnProperty.call(t,r)&&!({}).hasOwnProperty.call(e,r))return!1;return!0}n.d(t,{b:()=>r})},6797:(e,t,n)=>{e.exports=n(95486)("toUpperCase")},6802:(e,t,n)=>{var r=n(3128),o=n(7855);e.exports=function(e,t,n,i){var a=n.length,l=a,u=!i;if(null==e)return!l;for(e=Object(e);a--;){var c=n[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a{e.exports=n(24233)()},7571:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var r=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o{var r=n(2193),o=n(3619);e.exports=function e(t,n,i,a,l){return t===n||(null!=t&&null!=n&&(o(t)||o(n))?r(t,n,i,a,e,l):t!=t&&n!=n)}},7913:function(e,t,n){(function(e,t){"use strict";var n=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(t);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o={error:null},i=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i{"use strict";n.d(t,{d:()=>k});var r=n(55729),o=n(98499),i=n.n(o),a=n(7571),l=n(53645),u=n(93780),c=n(1509),s=n(32347),f=n(46271),p=n(2549),d=["x1","y1","x2","y2","key"],h=["offset"];function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var x=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,o=e.x,i=e.y,a=e.width,l=e.height,u=e.ry;return r.createElement("rect",{x:o,y:i,ry:u,width:a,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function w(e,t){var n;if(r.isValidElement(e))n=r.cloneElement(e,t);else if(i()(e))n=e(t);else{var o=t.x1,a=t.y1,l=t.x2,c=t.y2,s=t.key,f=b(t,d),p=(0,u.J9)(f,!1),y=(p.offset,b(p,h));n=r.createElement("line",m({},y,{x1:o,y1:a,x2:l,y2:c,fill:"none",key:s}))}return n}function O(e){var t=e.x,n=e.width,o=e.horizontal,i=void 0===o||o,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var l=a.map(function(r,o){return w(i,v(v({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(o),index:o}))});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function S(e){var t=e.y,n=e.height,o=e.vertical,i=void 0===o||o,a=e.verticalPoints;if(!i||!a||!a.length)return null;var l=a.map(function(r,o){return w(i,v(v({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(o),index:o}))});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function A(e){var t=e.horizontalFill,n=e.fillOpacity,o=e.x,i=e.y,a=e.width,l=e.height,u=e.horizontalPoints,c=e.horizontal;if(!(void 0===c||c)||!t||!t.length)return null;var s=u.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==s[0]&&s.unshift(0);var f=s.map(function(e,u){var c=s[u+1]?s[u+1]-e:i+l-e;if(c<=0)return null;var f=u%t.length;return r.createElement("rect",{key:"react-".concat(u),y:e,x:o,height:c,width:a,stroke:"none",fill:t[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function j(e){var t=e.vertical,n=e.verticalFill,o=e.fillOpacity,i=e.x,a=e.y,l=e.width,u=e.height,c=e.verticalPoints;if(!(void 0===t||t)||!n||!n.length)return null;var s=c.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==s[0]&&s.unshift(0);var f=s.map(function(e,t){var c=s[t+1]?s[t+1]-e:i+l-e;if(c<=0)return null;var f=t%n.length;return r.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:c,height:u,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var E=function(e,t){var n=e.xAxis,r=e.width,o=e.height,i=e.offset;return(0,c.PW)((0,s.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,c.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},P=function(e,t){var n=e.yAxis,r=e.width,o=e.height,i=e.offset;return(0,c.PW)((0,s.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,c.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},M=[],C=[];function k(e){var t,n,o,u,c,s,f=(0,p.yi)(),d=(0,p.rY)(),h=(0,p.hj)(),g=v(v({},e),{},{stroke:null!=(t=e.stroke)?t:"#ccc",fill:null!=(n=e.fill)?n:"none",horizontal:null==(o=e.horizontal)||o,horizontalFill:null!=(u=e.horizontalFill)?u:C,vertical:null==(c=e.vertical)||c,verticalFill:null!=(s=e.verticalFill)?s:M,x:(0,l.Et)(e.x)?e.x:h.left,y:(0,l.Et)(e.y)?e.y:h.top,width:(0,l.Et)(e.width)?e.width:h.width,height:(0,l.Et)(e.height)?e.height:h.height}),b=g.x,w=g.y,k=g.width,_=g.height,T=g.syncWithTicks,I=g.horizontalValues,R=g.verticalValues,D=(0,p.pj)(),N=(0,p.$G)();if(!(0,l.Et)(k)||k<=0||!(0,l.Et)(_)||_<=0||!(0,l.Et)(b)||b!==+b||!(0,l.Et)(w)||w!==+w)return null;var F=g.verticalCoordinatesGenerator||E,B=g.horizontalCoordinatesGenerator||P,L=g.horizontalPoints,z=g.verticalPoints;if((!L||!L.length)&&i()(B)){var V=I&&I.length,U=B({yAxis:N?v(v({},N),{},{ticks:V?I:N.ticks}):void 0,width:f,height:d,offset:h},!!V||T);(0,a.R)(Array.isArray(U),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(y(U),"]")),Array.isArray(U)&&(L=U)}if((!z||!z.length)&&i()(F)){var H=R&&R.length,G=F({xAxis:D?v(v({},D),{},{ticks:H?R:D.ticks}):void 0,width:f,height:d,offset:h},!!H||T);(0,a.R)(Array.isArray(G),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(y(G),"]")),Array.isArray(G)&&(z=G)}return r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(x,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),r.createElement(O,m({},g,{offset:h,horizontalPoints:L,xAxis:D,yAxis:N})),r.createElement(S,m({},g,{offset:h,verticalPoints:z,xAxis:D,yAxis:N})),r.createElement(A,m({},g,{horizontalPoints:L})),r.createElement(j,m({},g,{verticalPoints:z})))}k.displayName="CartesianGrid"},9819:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},10656:(e,t,n)=>{var r=n(16799);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,l=Object(n);(t?a--:++a{var r=n(7855),o=n(60449),i=n(8546),a=n(25907),l=n(28617),u=n(20764),c=n(43092);e.exports=function(e,t){return a(e)&&l(t)?u(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},11061:(e,t,n)=>{var r=n(22479),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},11107:(e,t,n)=>{"use strict";n.d(t,{h:()=>g});var r=n(55729),o=n(50212),i=n(93780),a=n(31829),l=n(53645);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(i>s),",\n ").concat(p.x,",").concat(p.y,"\n ");if(r>0){var h=(0,a.IZ)(t,n,r,i),y=(0,a.IZ)(t,n,r,s);d+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(c)>180),",").concat(+(i<=s),",\n ").concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(t,",").concat(n," Z");return d},h=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,c=e.startAngle,s=e.endAngle,f=(0,l.sA)(s-c),h=p({cx:t,cy:n,radius:o,angle:c,sign:f,cornerRadius:i,cornerIsExternal:u}),y=h.circleTangency,g=h.lineTangency,v=h.theta,m=p({cx:t,cy:n,radius:o,angle:s,sign:-f,cornerRadius:i,cornerIsExternal:u}),b=m.circleTangency,x=m.lineTangency,w=m.theta,O=u?Math.abs(c-s):Math.abs(c-s)-v-w;if(O<0)return a?"M ".concat(g.x,",").concat(g.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(-(2*i),",0\n "):d({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:s});var S="M ".concat(g.x,",").concat(g.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(r>0){var A=p({cx:t,cy:n,radius:r,angle:c,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),j=A.circleTangency,E=A.lineTangency,P=A.theta,M=p({cx:t,cy:n,radius:r,angle:s,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),C=M.circleTangency,k=M.lineTangency,_=M.theta,T=u?Math.abs(c-s):Math.abs(c-s)-P-_;if(T<0&&0===i)return"".concat(S,"L").concat(t,",").concat(n,"Z");S+="L".concat(k.x,",").concat(k.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(f>0),",").concat(j.x,",").concat(j.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,"Z")}else S+="L".concat(t,",").concat(n,"Z");return S},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},g=function(e){var t,n=f(f({},y),e),a=n.cx,u=n.cy,s=n.innerRadius,p=n.outerRadius,g=n.cornerRadius,v=n.forceCornerRadius,m=n.cornerIsExternal,b=n.startAngle,x=n.endAngle,w=n.className;if(p0&&360>Math.abs(b-x)?h({cx:a,cy:u,innerRadius:s,outerRadius:p,cornerRadius:Math.min(A,S/2),forceCornerRadius:v,cornerIsExternal:m,startAngle:b,endAngle:x}):d({cx:a,cy:u,innerRadius:s,outerRadius:p,startAngle:b,endAngle:x}),r.createElement("path",c({},(0,i.J9)(n,!0),{className:O,d:t,role:"img"}))}},12364:(e,t,n)=>{var r=n(23356),o=n(23169),i=n(22479),a=Math.max,l=Math.min;e.exports=function(e,t,n){var u,c,s,f,p,d,h=0,y=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var n=u,r=c;return u=c=void 0,h=t,f=e.apply(r,n)}function b(e){var n=e-d,r=e-h;return void 0===d||n>=t||n<0||g&&r>=s}function x(){var e,n,r,i=o();if(b(i))return w(i);p=setTimeout(x,(e=i-d,n=i-h,r=t-e,g?l(r,s-n):r))}function w(e){return(p=void 0,v&&u)?m(e):(u=c=void 0,f)}function O(){var e,n=o(),r=b(n);if(u=arguments,c=this,d=n,r){if(void 0===p)return h=e=d,p=setTimeout(x,t),y?m(e):f;if(g)return clearTimeout(p),p=setTimeout(x,t),m(d)}return void 0===p&&(p=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(y=!!n.leading,s=(g="maxWait"in n)?a(i(n.maxWait)||0,t):s,v="trailing"in n?!!n.trailing:v),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,u=d=c=p=void 0},O.flush=function(){return void 0===p?f:w(o())},O}},13297:(e,t,n)=>{"use strict";n.d(t,{G:()=>F});var r=n(55729),o=n(50212),i=n(92224),a=n(98499),l=n.n(a),u=n(38867),c=n.n(u),s=n(38822),f=n.n(s),p=n(51068),d=n.n(p),h=n(83817),y=n.n(h),g=n(56464),v=n(24196),m=n(3780),b=n(78895),x=n(88859),w=n(53645),O=n(1509),S=n(93780),A=["layout","type","stroke","connectNulls","isRange","ref"],j=["key"];function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function M(){return(M=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!y()(l,r)||!y()(u,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,i=t.dot,a=t.points,l=t.className,u=t.top,c=t.left,s=t.xAxis,p=t.yAxis,d=t.width,h=t.height,y=t.isAnimationActive,g=t.id;if(n||!a||!a.length)return null;var v=this.state.isAnimationFinished,x=1===a.length,w=(0,o.A)("recharts-area",l),O=s&&s.allowDataOverflow,A=p&&p.allowDataOverflow,j=O||A,E=f()(g)?this.id:g,P=null!=(e=(0,S.J9)(i,!1))?e:{r:3,strokeWidth:2},M=P.r,C=P.strokeWidth,k=((0,S.sT)(i)?i:{}).clipDot,_=void 0===k||k,T=2*(void 0===M?3:M)+(void 0===C?2:C);return r.createElement(m.W,{className:w},O||A?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(E)},r.createElement("rect",{x:O?c:c-d/2,y:A?u:u-h/2,width:O?d:2*d,height:A?h:2*h})),!_&&r.createElement("clipPath",{id:"clipPath-dots-".concat(E)},r.createElement("rect",{x:c-T/2,y:u-T/2,width:d+T,height:h+T}))):null,x?null:this.renderArea(j,E),(i||x)&&this.renderDots(j,_,E),(!y||v)&&b.Z.renderCallByParent(this.props,a))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],t&&_(a.prototype,t),n&&_(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);D(F,"displayName","Area"),D(F,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!x.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),D(F,"getBaseValue",function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,l=null!=a?a:i;if((0,w.Et)(l)&&"number"==typeof l)return l;var u="horizontal"===o?r:n,c=u.scale.domain();if("number"===u.type){var s=Math.max(c[0],c[1]),f=Math.min(c[0],c[1]);return"dataMin"===l?f:"dataMax"===l||s<0?s:Math.max(Math.min(c[0],c[1]),0)}return"dataMin"===l?c[0]:"dataMax"===l?c[1]:c[0]}),D(F,"getComposedData",function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,l=e.yAxisTicks,u=e.bandSize,c=e.dataKey,s=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,y=s&&s.length,g=F.getBaseValue(n,r,o,i),v="horizontal"===h,m=!1,b=p.map(function(e,t){y?n=s[f+t]:Array.isArray(n=(0,O.kr)(e,c))?m=!0:n=[g,n];var n,r=null==n[1]||y&&null==(0,O.kr)(e,c);return v?{x:(0,O.nb)({axis:o,ticks:a,bandSize:u,entry:e,index:t}),y:r?null:i.scale(n[1]),value:n,payload:e}:{x:r?null:o.scale(n[1]),y:(0,O.nb)({axis:i,ticks:l,bandSize:u,entry:e,index:t}),value:n,payload:e}});return t=y||m?b.map(function(e){var t=Array.isArray(e.value)?e.value[0]:null;return v?{x:e.x,y:null!=t&&null!=e.y?i.scale(t):null}:{x:null!=t?o.scale(t):null,y:e.y}}):v?i.scale(g):o.scale(g),k({points:b,baseLine:t,layout:h,isRange:m},d)}),D(F,"renderDotItem",function(e,t){var n;if(r.isValidElement(e))n=r.cloneElement(e,t);else if(l()(e))n=e(t);else{var i=(0,o.A)("recharts-area-dot","boolean"!=typeof e?e.className:""),a=t.key,u=P(t,j);n=r.createElement(v.c,M({},u,{key:a,className:i}))}return n})},13731:(e,t,n)=>{var r=n(98501),o=n(68988),i=n(56073),a=n(91544),l=n(48877);e.exports=function(e,t,n){var u=a(e)?r:i;return n&&l(e,t,n)&&(t=void 0),u(e,o(t,3))}},13917:e=>{e.exports=function(e,t){return e{"use strict";n.d(t,{y:()=>z});var r=n(55729),o=n(50212),i=n(92224),a=n(83817),l=n.n(a),u=n(38822),c=n.n(u),s=n(3780),f=n(65219),p=n(53259),d=n(78895),h=n(53645),y=n(93780),g=n(88859),v=n(1509),m=n(27281),b=n(73403),x=n(52797),w=["x","y"];function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,w),i=parseInt("".concat(n),10),a=parseInt("".concat(r),10),l=parseInt("".concat(t.height||o.height),10),u=parseInt("".concat(t.width||o.width),10);return j(j(j(j(j({},t),o),i?{x:i}:{}),a?{y:a}:{}),{},{height:l,width:u,name:t.name,radius:t.radius})}function P(e){return r.createElement(x.yp,S({shapeType:"rectangle",propTransformer:E,activeClassName:"recharts-active-bar"},e))}var M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var o="number"==typeof n;return o?e(n,r):(o||(0,b.A)(!1),t)}},C=["value","background"];function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,C);if(!l)return null;var c=I(I(I(I(I({},u),{},{fill:"#eee"},l),a),(0,m.XC)(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:n,className:"recharts-bar-background-rectangle"});return r.createElement(P,_({key:"background-bar-".concat(n),option:e.props.background,isActive:n===i},c))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.data,i=n.xAxis,a=n.yAxis,l=n.layout,u=n.children,c=(0,y.aS)(u,f.u);if(!c)return null;var p="vertical"===l?o[0].height/2:o[0].width/2,d=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:(0,v.kr)(e,t)}};return r.createElement(s.W,{clipPath:e?"url(#clipPath-".concat(t,")"):null},c.map(function(e){return r.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:l,offset:p,dataPointFormatter:d})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,i=e.className,a=e.xAxis,l=e.yAxis,u=e.left,f=e.top,p=e.width,h=e.height,y=e.isAnimationActive,g=e.background,v=e.id;if(t||!n||!n.length)return null;var m=this.state.isAnimationFinished,b=(0,o.A)("recharts-bar",i),x=a&&a.allowDataOverflow,w=l&&l.allowDataOverflow,O=x||w,S=c()(v)?this.id:v;return r.createElement(s.W,{className:b},x||w?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(S)},r.createElement("rect",{x:x?u:u-p/2,y:w?f:f-h/2,width:x?p:2*p,height:w?h:2*h}))):null,r.createElement(s.W,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(S,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,S),(!y||m)&&d.Z.renderCallByParent(this.props,n))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],t&&R(a.prototype,t),n&&R(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);B(z,"displayName","Bar"),B(z,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!g.m.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),B(z,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,l=e.xAxisTicks,u=e.yAxisTicks,c=e.stackedData,s=e.dataStartIndex,f=e.displayedData,d=e.offset,g=(0,v.xi)(r,n);if(!g)return null;var m=t.layout,b=n.type.defaultProps,x=void 0!==b?I(I({},b),n.props):n.props,w=x.dataKey,O=x.children,S=x.minPointSize,A="horizontal"===m?a:i,j=c?A.scale.domain():null,E=(0,v.DW)({numericAxis:A}),P=(0,y.aS)(O,p.f),C=f.map(function(e,t){c?f=(0,v._f)(c[s+t],j):Array.isArray(f=(0,v.kr)(e,w))||(f=[E,f]);var r=M(S,z.defaultProps.minPointSize)(f[1],t);if("horizontal"===m){var f,p,d,y,b,x,O,A=[a.scale(f[0]),a.scale(f[1])],C=A[0],k=A[1];p=(0,v.y2)({axis:i,ticks:l,bandSize:o,offset:g.offset,entry:e,index:t}),d=null!=(O=null!=k?k:C)?O:void 0,y=g.size;var _=C-k;if(b=Number.isNaN(_)?0:_,x={x:p,y:a.y,width:y,height:a.height},Math.abs(r)>0&&Math.abs(b)0&&Math.abs(y){"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","bolt-off","IconBoltOff",[["path",{d:"M3 3l18 18",key:"svg-0"}],["path",{d:"M15.212 15.21l-4.212 5.79v-7h-6l3.79 -5.21m1.685 -2.32l2.525 -3.47v6m1 1h5l-2.104 2.893",key:"svg-1"}]])},16232:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","arrows-diagonal","IconArrowsDiagonal",[["path",{d:"M16 4l4 0l0 4",key:"svg-0"}],["path",{d:"M14 10l6 -6",key:"svg-1"}],["path",{d:"M8 20l-4 0l0 -4",key:"svg-2"}],["path",{d:"M4 20l6 -6",key:"svg-3"}]])},16878:(e,t,n)=>{"use strict";e.exports=n(29610)},17877:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},18053:(e,t,n)=>{var r=n(49355),o=n(9819),i=n(90199);e.exports=function(e){return o(e)?i(e):r(e)}},18896:function(e,t){var n,r;void 0===(r="function"==typeof(n=function e(){var t,n="u">typeof self?self:"u">typeof window?window:void 0!==n?n:{},r=!n.document&&!!n.postMessage,o=n.IS_PAPA_WORKER||!1,i={},a=0,l={};function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new d(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,t){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0=this._config.preview,o)n.postMessage({results:i,workerId:l.WORKER_ID,finished:r});else if(w(this._config.chunk)&&!t){if(this._config.chunk(i,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=i=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(i.data),this._completeResults.errors=this._completeResults.errors.concat(i.errors),this._completeResults.meta=i.meta),this._completed||!r||!w(this._config.complete)||i&&i.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||i&&i.meta.paused||this._nextChunk(),i}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):o&&this._config.error&&n.postMessage({workerId:l.WORKER_ID,error:e,finished:!1})}}function c(e){var t;(e=e||{}).chunkSize||(e.chunkSize=l.RemoteChunkSize),u.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e,n,o=this._config.downloadRequestHeaders;for(n in o)t.setRequestHeader(n,o[n])}this._config.chunkSize&&(e=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+e));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){let e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null!==(e=(e=t).getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))}}function s(e){(e=e||{}).chunkSize||(e.chunkSize=l.LocalChunkSize),u.call(this,e);var t,n,r="u">typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function f(e){var t;u.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,n;if(!this._finished)return t=(e=this._config.chunkSize)?(n=t.substring(0,e),t.substring(e)):(n=t,""),this._finished=!t,this.parseChunk(n)}}function p(e){u.call(this,e=e||{});var t=[],n=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=x(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=x(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=x(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=x(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function d(e){var t,n,r,o,i=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,a=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,u=this,c=0,s=0,f=!1,p=!1,d=[],g={data:[],errors:[],meta:{}};function v(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function m(){if(g&&r&&(O("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(g.data=g.data.filter(function(e){return!v(e)})),x()){if(g)if(Array.isArray(g.data[0])){for(var t,n=0;x()&&n(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping))?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&((e=>{if(i.test(e)&&-0x20000000000000<(e=parseFloat(e))&&e<0x20000000000000)return 1})(n)?parseFloat(n):a.test(n)?new Date(n):""===n?null:n):n)(l=e.header?o>=d.length?"__parsed_extra":d[o]:l,u=e.transform?e.transform(u,l):u);"__parsed_extra"===l?(r[l]=r[l]||[],r[l].push(u)):r[l]=u}return e.header&&(o>d.length?O("FieldMismatch","TooManyFields","Too many fields: expected "+d.length+" fields but parsed "+o,s+n):oe.preview?n.abort():(g.data=g.data[0],o(g,u))))}),this.parse=function(o,i,a){var u=e.quoteChar||'"',u=(e.newline||(e.newline=this.guessLineEndings(o,u)),r=!1,e.delimiter?w(e.delimiter)&&(e.delimiter=e.delimiter(o),g.meta.delimiter=e.delimiter):((u=((t,n,r,o,i)=>{var a,u,c,s;i=i||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var f=0;f=n.length/2?"\r\n":"\r"}}function h(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function y(e){var t=(e=e||{}).delimiter,n=e.newline,r=e.comments,o=e.step,i=e.preview,a=e.fastMode,u=null,c=!1,s=null==e.quoteChar?'"':e.quoteChar,f=s;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1=i)return B(!0);break}A.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:S.length,index:p}),T++}}else if(r&&0===j.length&&l.substring(p,p+x)===r){if(-1===k)return B();p=k+b,k=l.indexOf(n,p),C=l.indexOf(t,p)}else if(-1!==C&&(C=i)return B(!0)}return N();function R(e){S.push(e),E=p}function D(e){return -1!==e&&(e=l.substring(T+1,e))&&""===e.trim()?e.length:0}function N(e){return g||(void 0===e&&(e=l.substring(p)),j.push(e),p=v,R(j),O&&L()),B()}function F(e){p=e,R(j),j=[],k=l.indexOf(n,p)}function B(r){if(e.header&&!y&&S.length&&!c){var o=S[0],i=Object.create(null),a=new Set(o);let t=!1;for(let n=0;n{if("object"==typeof t){if("string"!=typeof t.delimiter||l.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(o=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(c=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");s=t.columns}void 0!==t.escapeChar&&(u=t.escapeChar+a),t.escapeFormulae instanceof RegExp?f=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(f=/^[=+\-@\t\r].*$/)}})(),RegExp(h(a),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return d(null,e,c);if("object"==typeof e[0])return d(s||Object.keys(e[0]),e,c)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||s),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),d(e.fields||[],e.data||[],c);throw Error("Unable to serialize unrecognized input");function d(e,t,n){var a="",l=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0{for(var n=0;n{var r=n(50515);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},21248:(e,t,n)=>{e.exports=n(83588)()},21440:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tm});var o=n(55729),i=n(56760);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;ttypeof ResizeObserver?t=new ResizeObserver(function(e){e.forEach(function(e){r._measureElement(e.target,e)})}):null)},{disconnect:function(){var e;return null==(e=n())?void 0:e.disconnect()},observe:function(e){var t;return null==(t=n())?void 0:t.observe(e,{box:"border-box"})},unobserve:function(e){var t;return null==(t=n())?void 0:t.unobserve(e)}}),this.range=null,this.setOptions=function(e){Object.entries(e).forEach(function(t){var n=t[0];void 0===t[1]&&delete e[n]}),r.options=a({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:c,rangeExtractor:s,onChange:function(){},measureElement:d,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(e){null==r.options.onChange||r.options.onChange(r,e)},this.maybeNotify=l(function(){return r.calculateRange(),[r.isScrolling,r.range?r.range.startIndex:null,r.range?r.range.endIndex:null]},function(e){r.notify(e)},{key:!1,debug:function(){return r.options.debug},initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=function(){r.unsubs.filter(Boolean).forEach(function(e){return e()}),r.unsubs=[],r.scrollElement=null},this._didMount=function(){return r.measureElementCache.forEach(r.observer.observe),function(){r.observer.disconnect(),r.cleanup()}},this._willUpdate=function(){var e=r.options.getScrollElement();r.scrollElement!==e&&(r.cleanup(),r.scrollElement=e,r._scrollToOffset(r.scrollOffset,{adjustments:void 0,behavior:void 0}),r.unsubs.push(r.options.observeElementRect(r,function(e){r.scrollRect=e,r.maybeNotify()})),r.unsubs.push(r.options.observeElementOffset(r,function(e){r.scrollAdjustments=0,r.scrollOffset!==e&&(null!==r.isScrollingTimeoutId&&(clearTimeout(r.isScrollingTimeoutId),r.isScrollingTimeoutId=null),r.isScrolling=!0,r.scrollDirection=r.scrollOffset=0;i--){var a=e[i];if(!n.has(a.lane)){var l=o.get(a.lane);if(null==l||a.end>l.end?o.set(a.lane,a):a.end0?Math.min.apply(Math,r.pendingMeasuredCacheIndexes):0;r.pendingMeasuredCacheIndexes=[];for(var u=r.measurementsCache.slice(0,l),c=l;c0&&t>0?function(e){for(var t=e.measurements,n=e.outerSize,r=e.scrollOffset,o=t.length-1,i=g(0,o,function(e){return t[e].start},r),a=i;a=r.scrollOffset+n?"end":"start"),"start"===t||("end"===t?e-=n:"center"===t&&(e-=n/2));var o=r.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((r.scrollElement?"document"in r.scrollElement?r.scrollElement.document.documentElement[o]:r.scrollElement[o]:0)-r.getSize(),e),0)},this.getOffsetForIndex=function(e,t){void 0===t&&(t="auto"),e=Math.max(0,Math.min(e,r.options.count-1));var n=u(r.getMeasurements()[e]);if("auto"===t)if(n.end>=r.scrollOffset+r.getSize()-r.options.scrollPaddingEnd)t="end";else{if(!(n.start<=r.scrollOffset+r.options.scrollPaddingStart))return[r.scrollOffset,t];t="start"}var o="end"===t?n.end+r.options.scrollPaddingEnd:n.start-r.options.scrollPaddingStart;return[r.getOffsetForAlignment(o,t),t]},this.isDynamicMode=function(){return r.measureElementCache.size>0},this.cancelScrollToIndex=function(){null!==r.scrollToIndexTimeoutId&&(clearTimeout(r.scrollToIndexTimeoutId),r.scrollToIndexTimeoutId=null)},this.scrollToOffset=function(e,t){var n=void 0===t?{}:t,o=n.align,i=n.behavior;r.cancelScrollToIndex(),"smooth"===i&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),r._scrollToOffset(r.getOffsetForAlignment(e,void 0===o?"start":o),{adjustments:void 0,behavior:i})},this.scrollToIndex=function(e,t){var n=void 0===t?{}:t,o=n.align,i=n.behavior;e=Math.max(0,Math.min(e,r.options.count-1)),r.cancelScrollToIndex(),"smooth"===i&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");var a=r.getOffsetForIndex(e,void 0===o?"auto":o),l=a[0],u=a[1];r._scrollToOffset(l,{adjustments:void 0,behavior:i}),"smooth"!==i&&r.isDynamicMode()&&(r.scrollToIndexTimeoutId=setTimeout(function(){(r.scrollToIndexTimeoutId=null,r.measureElementCache.has(r.options.getItemKey(e)))&&1>Math.abs(r.getOffsetForIndex(e,u)[0]-r.scrollOffset)||r.scrollToIndex(e,{align:u,behavior:i})}))},this.scrollBy=function(e,t){var n=(void 0===t?{}:t).behavior;r.cancelScrollToIndex(),"smooth"===n&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),r._scrollToOffset(r.scrollOffset+e,{adjustments:void 0,behavior:n})},this.getTotalSize=function(){var e;return((null==(e=r.getMeasurements()[r.options.count-1])?void 0:e.end)||r.options.paddingStart)-r.options.scrollMargin+r.options.paddingEnd},this._scrollToOffset=function(e,t){var n=t.adjustments,o=t.behavior;r.options.scrollToFn(e,{behavior:o,adjustments:n},r)},this.measure=function(){r.itemSizeCache=new Map,r.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(function(e){r.itemSizeCache.set(e.key,e.size)}),this.maybeNotify()},g=function(e,t,n,r){for(;e<=t;){var o=(e+t)/2|0,i=n(o);if(ir))return o;t=o-1}}return e>0?e-1:0},v="u">typeof document?o.useLayoutEffect:o.useEffect;function m(e){var t,n,a,l;return t=r({observeElementRect:f,observeElementOffset:p,scrollToFn:h},e),n=o.useReducer(function(){return{}},{})[1],a=r({},t,{onChange:function(e,r){r?(0,i.flushSync)(n):n(),null==t.onChange||t.onChange(e,r)}}),(l=o.useState(function(){return new y(a)})[0]).setOptions(a),o.useEffect(function(){return l._didMount()},[]),v(function(){return l._willUpdate()}),l}},21865:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(30669),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,i=RegExp(o.source,"g");function a(e,t){var n,a,l,u,c,s=o.lastIndex=i.lastIndex=0,f=-1,p=[],d=[];for(e+="",t+="";(l=o.exec(e))&&(u=i.exec(t));)(c=u.index)>s&&(c=t.slice(s,c),p[f]?p[f]+=c:p[++f]=c),(l=l[0])===(u=u[0])?p[f]?p[f]+=u:p[++f]=u:(p[++f]=null,d.push({i:f,x:(0,r.A)(l,u)})),s=i.lastIndex;return s{var r=n(22926),o=n(68668),i=n(86152),a=n(82694),l=n(79860),u=n(48546);e.exports=function(e,t,n){var c=-1,s=o,f=e.length,p=!0,d=[],h=d;if(n)p=!1,s=i;else if(f>=200){var y=t?null:l(e);if(y)return u(y);p=!1,s=a,h=new r}else h=t?[]:d;t:for(;++c{var r=n(86301),o=n(23356),i=n(50515),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):l.test(e)?a:+e}},22926:(e,t,n)=>{var r=n(33276),o=n(91353),i=n(36022);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t{var r=n(45516);e.exports=function(){return r.Date.now()}},24196:(e,t,n)=>{"use strict";n.d(t,{c:()=>u});var r=n(55729),o=n(50212),i=n(27281),a=n(93780);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=n(5586),o=n(48877),i=n(11061);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","text-wrap","IconTextWrap",[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 18l5 0",key:"svg-1"}],["path",{d:"M4 12h13a3 3 0 0 1 0 6h-4l2 -2m0 4l-2 -2",key:"svg-2"}]])},25599:(e,t,n)=>{"use strict";n.d(t,{E:()=>F});var r=n(55729),o=n(38822),i=n.n(o),a=n(50212),l=n(53645),u=n(88859),c=n(93780),s=n(90505);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(function(e,t){var i=t.word,a=t.width,l=e[e.length-1];return l&&(null==r||o||l.width+a+na||t.reduce(function(e,t){return e.width>t.width?e:t}).width>Number(r),t]},y=0,g=u.length-1,v=0;y<=g&&v<=u.length-1;){var m=Math.floor((y+g)/2),b=C(h(m-1),2),x=b[0],w=b[1],O=C(h(m),1)[0];if(x||O||(y=m+1),x&&O&&(g=m-1),!x&&O){i=w;break}v++}return i||d},R=function(e){return[{words:i()(e)?[]:e.toString().split(_)}]},D=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!u.m.isSsr){var l=T({breakAll:i,children:r,style:o});if(!l)return R(r);var c=l.wordsWithComputedWidth,s=l.spaceWidth;return I({breakAll:i,children:r,maxLines:a,style:o},c,s,t,n)}return R(r)},N="#808080",F=function(e){var t,n=e.x,o=void 0===n?0:n,i=e.y,u=void 0===i?0:i,s=e.lineHeight,f=void 0===s?"1em":s,p=e.capHeight,d=void 0===p?"0.71em":p,h=e.scaleToFit,y=void 0!==h&&h,g=e.textAnchor,v=e.verticalAnchor,m=e.fill,b=void 0===m?N:m,x=M(e,j),w=(0,r.useMemo)(function(){return D({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:y,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,y,x.style,x.width]),O=x.dx,S=x.dy,C=x.angle,k=x.className,_=x.breakAll,T=M(x,E);if(!(0,l.vh)(o)||!(0,l.vh)(u))return null;var I=o+((0,l.Et)(O)?O:0),R=u+((0,l.Et)(S)?S:0);switch(void 0===v?"end":v){case"start":t=A("calc(".concat(d,")"));break;case"middle":t=A("calc(".concat((w.length-1)/2," * -").concat(f," + (").concat(d," / 2))"));break;default:t=A("calc(".concat(w.length-1," * -").concat(f,")"))}var F=[];if(y){var B=w[0].width,L=x.width;F.push("scale(".concat(((0,l.Et)(L)?L/B:1)/B,")"))}return C&&F.push("rotate(".concat(C,", ").concat(I,", ").concat(R,")")),F.length&&(T.transform=F.join(" ")),r.createElement("text",P({},(0,c.J9)(T,!0),{x:I,y:R,className:(0,a.A)("recharts-text",k),textAnchor:void 0===g?"start":g,fill:b.includes("url")?N:b}),w.map(function(e,n){var o=e.words.join(_?"":" ");return r.createElement("tspan",{x:I,dy:0===n?t:f,key:"".concat(o,"-").concat(n)},o)}))}},26194:(e,t,n)=>{var r=n(83965),o=n(37390),i=n(45895),a=n(48877);e.exports=i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])})},27281:(e,t,n)=>{"use strict";n.d(t,{QQ:()=>l,VU:()=>c,XC:()=>p,_U:()=>f,j2:()=>s});var r=n(55729),o=n(23356),i=n.n(o);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],u=["points","pathLength"],c={svg:["viewBox","children"],polygon:u,polyline:u},s=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],f=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,r.isValidElement)(e)&&(n=e.props),!i()(n))return null;var o={};return Object.keys(n).forEach(function(e){s.includes(e)&&(o[e]=t||function(t){return n[e](n,t)})}),o},p=function(e,t,n){if(!i()(e)||"object"!==a(e))return null;var r=null;return Object.keys(e).forEach(function(o){var i=e[o];s.includes(o)&&"function"==typeof i&&(r||(r={}),r[o]=function(e){return i(t,n,e),null})}),r}},27798:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","bolt","IconBolt",[["path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11",key:"svg-0"}]])},28469:(e,t,n)=>{var r=n(28617),o=n(87567);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},28617:(e,t,n)=>{var r=n(23356);e.exports=function(e){return e==e&&!r(e)}},28816:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=e=>()=>e},29090:(e,t,n)=>{var r=n(22926),o=n(98501),i=n(82694);e.exports=function(e,t,n,a,l,u){var c=1&n,s=e.length,f=t.length;if(s!=f&&!(c&&f>s))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var h=-1,y=!0,g=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h{var r=n(50956);e.exports=function(e,t){var n=!0;return r(e,function(e,r,o){return n=!!t(e,r,o)}),n}},29610:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isFragment=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case f:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case s:case h:case d:case l:return e;default:return t}}case r:return t}}}(e)===o}},30669:(e,t,n)=>{"use strict";function r(e,t){return e*=1,t*=1,function(n){return e*(1-n)+t*n}}n.d(t,{A:()=>r})},30988:(e,t,n)=>{"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function o(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function i(){}n.d(t,{Ay:()=>b,Qh:()=>O});var a="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,s=RegExp(`^rgb\\(${a},${a},${a}\\)$`),f=RegExp(`^rgb\\(${u},${u},${u}\\)$`),p=RegExp(`^rgba\\(${a},${a},${a},${l}\\)$`),d=RegExp(`^rgba\\(${u},${u},${u},${l}\\)$`),h=RegExp(`^hsl\\(${l},${u},${u}\\)$`),y=RegExp(`^hsla\\(${l},${u},${u},${l}\\)$`),g={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function v(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function b(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?x(t):3===n?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?w(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?w(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=s.exec(e))?new S(t[1],t[2],t[3],1):(t=f.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?w(t[1],t[2],t[3],t[4]):(t=d.exec(e))?w(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=h.exec(e))?C(t[1],t[2]/100,t[3]/100,1):(t=y.exec(e))?C(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?x(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function x(e){return new S(e>>16&255,e>>8&255,255&e,1)}function w(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function O(e,t,n,r){var o;return 1==arguments.length?((o=e)instanceof i||(o=b(o)),o)?new S((o=o.rgb()).r,o.g,o.b,o.opacity):new S:new S(e,t,n,null==r?1:r)}function S(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function A(){return`#${M(this.r)}${M(this.g)}${M(this.b)}`}function j(){let e=E(this.opacity);return`${1===e?"rgb(":"rgba("}${P(this.r)}, ${P(this.g)}, ${P(this.b)}${1===e?")":`, ${e})`}`}function E(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function P(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function M(e){return((e=P(e))<16?"0":"")+e.toString(16)}function C(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _(e,t,n,r)}function k(e){if(e instanceof _)return new _(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new _;if(e instanceof _)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),l=NaN,u=a-o,c=(a+o)/2;return u?(l=t===a?(n-r)/u+(n0&&c<1?0:l,new _(l,u,c,e.opacity)}function _(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function T(e){return(e=(e||0)%360)<0?e+360:e}function I(e){return Math.max(0,Math.min(1,e||0))}function R(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}r(i,b,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return k(this).formatHsl()},formatRgb:m,toString:m}),r(S,O,o(i,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new S(P(this.r),P(this.g),P(this.b),E(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:A,formatHex:A,formatHex8:function(){return`#${M(this.r)}${M(this.g)}${M(this.b)}${M((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:j,toString:j})),r(_,function(e,t,n,r){return 1==arguments.length?k(e):new _(e,t,n,null==r?1:r)},o(i,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new _(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new S(R(e>=240?e-240:e+120,o,r),R(e,o,r),R(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new _(T(this.h),I(this.s),I(this.l),E(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=E(this.opacity);return`${1===e?"hsl(":"hsla("}${T(this.h)}, ${100*I(this.s)}%, ${100*I(this.l)}%${1===e?")":`, ${e})`}`}}))},31292:(e,t,n)=>{"use strict";n.d(t,{m:()=>U});var r=n(55729),o=n(26194),i=n.n(o),a=n(38822),l=n.n(a),u=n(50212),c=n(53645);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(d,2)||function(e,t){if(e){if("string"==typeof e)return p(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,2)}}(d,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();u=m[0],f=m[1]}else u=d}return r.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:o},(0,c.vh)(f)?r.createElement("span",{className:"recharts-tooltip-item-name"},f):null,(0,c.vh)(f)?r.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,r.createElement("span",{className:"recharts-tooltip-item-value"},u),r.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return r.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t,n){var r;return(r=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==v(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b="recharts-tooltip-wrapper",x={visibility:"hidden"};function w(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,l=e.tooltipDimension,u=e.viewBox,s=e.viewBoxDimension;if(i&&(0,c.Et)(i[r]))return i[r];var f=n[r]-l-o,p=n[r]+o;return t[r]?a[r]?f:p:a[r]?fu[r]+s?Math.max(f,u[r]):Math.max(p,u[r])}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null==(e=this.props.coordinate)?void 0:e.x)!==this.state.dismissedAtCoordinate.x||(null==(t=this.props.coordinate)?void 0:t.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var e,t,n,o,i,a,l,s,f,p,d,h,y,g,v,O,S,j,E,P=this,M=this.props,C=M.active,k=M.allowEscapeViewBox,_=M.animationDuration,T=M.animationEasing,I=M.children,R=M.coordinate,D=M.hasPayload,N=M.isAnimationActive,F=M.offset,B=M.position,L=M.reverseDirection,z=M.useTranslate3d,V=M.viewBox,U=M.wrapperStyle,H=(h=(e={allowEscapeViewBox:k,coordinate:R,offsetTopLeft:F,position:B,reverseDirection:L,tooltipBox:this.state.lastBoundingBox,useTranslate3d:z,viewBox:V}).allowEscapeViewBox,y=e.coordinate,g=e.offsetTopLeft,v=e.position,O=e.reverseDirection,S=e.tooltipBox,j=e.useTranslate3d,E=e.viewBox,S.height>0&&S.width>0&&y?(n=(t={translateX:p=w({allowEscapeViewBox:h,coordinate:y,key:"x",offsetTopLeft:g,position:v,reverseDirection:O,tooltipDimension:S.width,viewBox:E,viewBoxDimension:E.width}),translateY:d=w({allowEscapeViewBox:h,coordinate:y,key:"y",offsetTopLeft:g,position:v,reverseDirection:O,tooltipDimension:S.height,viewBox:E,viewBoxDimension:E.height}),useTranslate3d:j}).translateX,o=t.translateY,f={transform:t.useTranslate3d?"translate3d(".concat(n,"px, ").concat(o,"px, 0)"):"translate(".concat(n,"px, ").concat(o,"px)")}):f=x,{cssProperties:f,cssClasses:(a=(i={translateX:p,translateY:d,coordinate:y}).coordinate,l=i.translateX,s=i.translateY,(0,u.A)(b,m(m(m(m({},"".concat(b,"-right"),(0,c.Et)(l)&&a&&(0,c.Et)(a.x)&&l>=a.x),"".concat(b,"-left"),(0,c.Et)(l)&&a&&(0,c.Et)(a.x)&&l=a.y),"".concat(b,"-top"),(0,c.Et)(s)&&a&&(0,c.Et)(a.y)&&s0;return r.createElement(k,{allowEscapeViewBox:i,animationDuration:a,animationEasing:l,isAnimationActive:f,active:o,coordinate:c,hasPayload:O,offset:p,position:y,reverseDirection:v,useTranslate3d:m,viewBox:b,wrapperStyle:x},(e=D(D({},this.props),{},{payload:w}),r.isValidElement(u)?r.cloneElement(u,e):"function"==typeof u?r.createElement(u,e):r.createElement(g,e)))}}],function(e,t){for(var n=0;n{"use strict";n.d(t,{IZ:()=>g,Kg:()=>y,Zk:()=>S,lY:()=>v,pr:()=>m,yy:()=>O});var r=n(38822),o=n.n(r),i=n(55729),a=n(98499),l=n.n(a),u=n(53645),c=n(1509);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},m=function(e,t,n,r,i){var a=e.width,l=e.height,s=e.startAngle,f=e.endAngle,y=(0,u.F4)(e.cx,a,a/2),g=(0,u.F4)(e.cy,l,l/2),m=v(a,l,n),b=(0,u.F4)(e.innerRadius,m,0),x=(0,u.F4)(e.outerRadius,m,.8*m);return Object.keys(t).reduce(function(e,n){var a,l=t[n],u=l.domain,v=l.reversed;if(o()(l.range))"angleAxis"===r?a=[s,f]:"radiusAxis"===r&&(a=[b,x]),v&&(a=[a[1],a[0]]);else{var m,w=function(e){if(Array.isArray(e))return e}(m=a=l.range)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(m,2)||function(e,t){if(e){if("string"==typeof e)return h(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,2)}}(m,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();s=w[0],f=w[1]}var O=(0,c.W7)(l,i),S=O.realScaleType,A=O.scale;A.domain(u).range(a),(0,c.YB)(A);var j=(0,c.w7)(A,p(p({},l),{},{realScaleType:S})),E=p(p(p({},l),j),{},{range:a,radius:x,realScaleType:S,scale:A,cx:y,cy:g,innerRadius:b,outerRadius:x,startAngle:s,endAngle:f});return p(p({},e),{},d({},n,E))},{})},b=function(e,t){var n=e.x,r=e.y;return Math.sqrt(Math.pow(n-t.x,2)+Math.pow(r-t.y,2))},x=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=b({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var l=Math.acos((n-o)/a);return r>i&&(l=2*Math.PI-l),{radius:a,angle:180*l/Math.PI,angleInRadian:l}},w=function(e){var t=e.startAngle,n=e.endAngle,r=Math.min(Math.floor(t/360),Math.floor(n/360));return{startAngle:t-360*r,endAngle:n-360*r}},O=function(e,t){var n,r=x({x:e.x,y:e.y},t),o=r.radius,i=r.angle,a=t.innerRadius,l=t.outerRadius;if(ol)return!1;if(0===o)return!0;var u=w(t),c=u.startAngle,s=u.endAngle,f=i;if(c<=s){for(;f>s;)f-=360;for(;f=c&&f<=s}else{for(;f>c;)f-=360;for(;f=s&&f<=c}return n?p(p({},t),{},{radius:o,angle:f+360*Math.min(Math.floor(t.startAngle/360),Math.floor(t.endAngle/360))}):null},S=function(e){return(0,i.isValidElement)(e)||l()(e)||"boolean"==typeof e?"":e.className}},31835:(e,t,n)=>{var r=n(25080),o=n(50025),i=n(66581),a=n(29090),l=n(45852),u=n(48546),c=r?r.prototype:void 0,s=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!f(new o(e),new o(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=l;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)break;var y=p.get(e);if(y)return y==t;r|=2,p.set(e,t);var g=a(d(e),d(t),r,c,f,p);return p.delete(e),g;case"[object Symbol]":if(s)return s.call(e)==s.call(t)}return!1}},32347:(e,t,n)=>{"use strict";n.d(t,{f:()=>h});var r=n(98499),o=n.n(r),i=n(53645),a=n(90505),l=n(88859),u=n(83687);function c(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;oe*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t=2?(0,i.sA)(v[1].coordinate-v[0].coordinate):1,C=(r="width"===j,f=m.x,p=m.y,h=m.width,y=m.height,1===M?{start:r?f:p,end:r?f+h:p+y}:{start:r?f+h:p+y,end:r?f:p});return"equidistantPreserveStart"===w?function(e,t,n,r,o){for(var i,a=(r||[]).slice(),l=t.start,u=t.end,f=0,p=1,d=l;p<=a.length;)if(i=function(){var t,i=null==r?void 0:r[f];if(void 0===i)return{v:c(r,p)};var a=f,h=function(){return void 0===t&&(t=n(i,a)),t},y=i.coordinate,g=0===f||s(e,y,h,d,u);g||(f=0,d=l,p+=1),g&&(d=y+e*(h()/2+o),f+=p)}())return i.v;return[]}(M,C,P,v,b):("preserveStart"===w||"preserveStartEnd"===w?function(e,t,n,r,o,i){var a=(r||[]).slice(),l=a.length,u=t.start,c=t.end;if(i){var f=r[l-1],p=n(f,l-1),h=e*(f.coordinate+e*p/2-c);a[l-1]=f=d(d({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate}),s(e,f.tickCoord,function(){return p},u,c)&&(c=f.tickCoord-e*(p/2+o),a[l-1]=d(d({},f),{},{isShow:!0}))}for(var y=i?l-1:l,g=function(t){var r,i=a[t],l=function(){return void 0===r&&(r=n(i,t)),r};if(0===t){var f=e*(i.coordinate-e*l()/2-u);a[t]=i=d(d({},i),{},{tickCoord:f<0?i.coordinate-f*e:i.coordinate})}else a[t]=i=d(d({},i),{},{tickCoord:i.coordinate});s(e,i.tickCoord,l,u,c)&&(u=i.tickCoord+e*(l()/2+o),a[t]=d(d({},i),{},{isShow:!0}))},v=0;v0?c.coordinate-p*e:c.coordinate})}else i[t]=c=d(d({},c),{},{tickCoord:c.coordinate});s(e,c.tickCoord,f,l,u)&&(u=c.tickCoord-e*(f()/2+o),i[t]=d(d({},c),{},{isShow:!0}))},f=a-1;f>=0;f--)c(f);return i}(M,C,P,v,b)).filter(function(e){return e.isShow})}},32716:(e,t,n)=>{"use strict";n.d(t,{gu:()=>ts});var r,o,i=n(55729),a=n(38822),l=n.n(a),u=n(98499),c=n.n(u),s=n(7071),f=n.n(s),p=n(60449),d=n.n(p),h=n(26194),y=n.n(h),g=n(47687),v=n.n(g),m=n(50212),b=n(73403),x=n(55426),w=n(3780),O=n(31292),S=n(64370),A=n(24196),j=n(2390),E=n(93780),P=n(49726),M=n(25599),C=n(1509),k=n(53645);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t0&&t.handleDrag(e.changedTouches[0])}),$(t,"handleDragEnd",function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:n,startIndex:o})}),t.detachDragEndListener()}),$(t,"handleLeaveWrapper",function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))}),$(t,"handleEnterSlideOrTraveller",function(){t.setState({isTextActive:!0})}),$(t,"handleLeaveSlideOrTraveller",function(){t.setState({isTextActive:!1})}),$(t,"handleSlideDragStart",function(e){var n=X(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()}),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(t,"startX"),endX:t.handleTravellerDragStart.bind(t,"endX")},t.state={},t}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&G(r,e),t=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,l=i.data.length-1,u=Math.min(t,n),c=Math.max(t,n),s=r.getIndexInRange(o,u),f=r.getIndexInRange(o,c);return{startIndex:s-s%a,endIndex:f===l?l:f-f%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=(0,C.kr)(n[e],o,e);return c()(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,l=i.width,u=i.travellerWidth,c=i.startIndex,s=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+l-u-o,a+l-u-r):p<0&&(p=Math.max(p,a-r,a-o));var d=this.getIndex({startX:r+p,endX:o+p});(d.startIndex!==c||d.endIndex!==s)&&f&&f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=X(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[r],l=this.props,u=l.x,c=l.width,s=l.travellerWidth,f=l.onChange,p=l.gap,d=l.data,h={startX:this.state.startX,endX:this.state.endX},y=e.pageX-n;y>0?y=Math.min(y,u+c-s-a):y<0&&(y=Math.max(y,u-a)),h[r]=a+y;var g=this.getIndex(h),v=g.startIndex,m=g.endIndex,b=function(){var e=d.length-1;return"startX"===r&&(o>i?v%p==0:m%p==0)||!!(oi?m%p==0:v%p==0)||!!(o>i)&&m===e};this.setState($($({},r,a+y),"brushMoveStartX",e.pageX),function(){f&&b()&&f(g)})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,i=r.startX,a=r.endX,l=this.state[t],u=o.indexOf(l);if(-1!==u){var c=u+e;if(-1!==c&&!(c>=o.length)){var s=o[c];"startX"===t&&s>=a||"endX"===t&&s<=i||this.setState($({},t,s),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,l=e.stroke;return i.createElement("rect",{stroke:l,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.data,l=e.children,u=e.padding,c=i.Children.only(l);return c?i.cloneElement(c,{x:t,y:n,width:r,height:o,margin:u,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n,o,a=this,l=this.props,u=l.y,c=l.travellerWidth,s=l.height,f=l.traveller,p=l.ariaLabel,d=l.data,h=l.startIndex,y=l.endIndex,g=Math.max(e,this.props.x),v=z(z({},(0,E.J9)(this.props,!1)),{},{x:g,y:u,width:c,height:s}),m=p||"Min value: ".concat(null==(n=d[h])?void 0:n.name,", Max value: ").concat(null==(o=d[y])?void 0:o.name);return i.createElement(w.W,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(f,v))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,l=n.travellerWidth,u=Math.min(e,t)+l,c=Math.max(Math.abs(t-e)-l,0);return i.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:r,width:c,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,l=e.stroke,u=this.state,c=u.startX,s=u.endX,f={pointerEvents:"none",fill:l};return i.createElement(w.W,{className:"recharts-brush-texts"},i.createElement(M.E,B({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,s)-5,y:r+o/2},f),this.getTextOfTick(t)),i.createElement(M.E,B({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,s)+a+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,l=e.width,u=e.height,c=e.alwaysShowText,s=this.state,f=s.startX,p=s.endX,d=s.isTextActive,h=s.isSlideMoving,y=s.isTravellerMoving,g=s.isTravellerFocused;if(!t||!t.length||!(0,k.Et)(o)||!(0,k.Et)(a)||!(0,k.Et)(l)||!(0,k.Et)(u)||l<=0||u<=0)return null;var v=(0,m.A)("recharts-brush",n),b=1===i.Children.count(r),x=N("userSelect","none");return i.createElement(w.W,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||y||g||c)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,l=Math.floor(n+o/2)-1;return i.createElement(i.Fragment,null,i.createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),i.createElement("line",{x1:t+1,y1:l,x2:t+r-1,y2:l,fill:"none",stroke:"#fff"}),i.createElement("line",{x1:t+1,y1:l+2,x2:t+r-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):c()(e)?e(t):r.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,l=e.startIndex,u=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return z({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?q({data:n,width:r,x:o,travellerWidth:i,startIndex:l,endIndex:u}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var c=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=e.length,r=0,o=n-1;o-r>1;){var i=Math.floor((r+o)/2);e[i]>t?o=i:r=i}return t>=e[o]?o:r}}],t&&V(r.prototype,t),n&&V(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(i.PureComponent);$(K,"displayName","Brush"),$(K,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Y=n(90505),J=n(65049),Z=n(35555),Q=n(47374),ee=n(83687),et=n(7571);function en(){return(en=Object.assign?Object.assign.bind():function(e){for(var t=1;ttypeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return eg(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eg(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,e_));return(0,k.Et)(n)&&(0,k.Et)(o)&&(0,k.Et)(f)&&(0,k.Et)(d)&&(0,k.Et)(l)&&(0,k.Et)(c)?i.createElement("path",eT({},(0,E.J9)(y,!0),{className:(0,m.A)("recharts-cross",h),d:"M".concat(n,",").concat(l,"v").concat(d,"M").concat(c,",").concat(o,"h").concat(f)})):null};function eD(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle;return{points:[(0,em.IZ)(t,n,r,o),(0,em.IZ)(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}var eN=n(11107);function eF(e){return(eF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eL(e){for(var t=1;ttypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||eZ(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eq(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function eX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eX=function(){return!!e})()}function eK(e){return(eK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eY(e,t){return(eY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eJ(e){return function(e){if(Array.isArray(e))return eQ(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eZ(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eZ(e,t){if(e){if("string"==typeof e)return eQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eQ(e,t)}}function eQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?i:e&&e.length&&(0,k.Et)(r)&&(0,k.Et)(o)?e.slice(r,o+1):[]};function te(e){return"number"===e?[0,"auto"]:void 0}var tt=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=e7(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce(function(o,l){var u,c,s=null!=(u=l.props.data)?u:t;if(s&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(s=s.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory){var f=void 0===s?a:s;c=(0,k.eP)(f,i.dataKey,r)}else c=s&&s[n]||a[n];return c?[].concat(eJ(o),[(0,C.zb)(l,c)]):o},[])},tn=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i="horizontal"===n?o.x:"vertical"===n?o.y:"centric"===n?o.angle:o.radius,a=e.orderedTooltipTicks,l=e.tooltipAxis,u=e.tooltipTicks,c=(0,C.gH)(i,a,u,l);if(c>=0&&u){var s=u[c]&&u[c].value,f=tt(e,t,c,s),p=e4(n,a,c,o);return{activeTooltipIndex:c,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},tr=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,u=t.dataStartIndex,c=t.dataEndIndex,s=e.layout,p=e.children,d=e.stackOffset,h=(0,C._L)(s,o);return n.reduce(function(t,n){var y=void 0!==n.type.defaultProps?e1(e1({},n.type.defaultProps),n.props):n.props,g=y.type,v=y.dataKey,m=y.allowDataOverflow,b=y.allowDuplicatedCategory,x=y.scale,w=y.ticks,O=y.includeHidden,S=y[i];if(t[S])return t;var A=e7(e.data,{graphicalItems:r.filter(function(e){var t;return(i in e.props?e.props[i]:null==(t=e.type.defaultProps)?void 0:t[i])===S}),dataStartIndex:u,dataEndIndex:c}),j=A.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&(0,k.Et)(r)&&(0,k.Et)(o))return!0}return!1})(y.domain,m,g)&&(M=(0,C.AQ)(y.domain,null,m),h&&("number"===g||"auto"!==x)&&(T=(0,C.Ay)(A,v,"category")));var E=te(g);if(!M||0===M.length){var P,M,_,T,I,R=null!=(I=y.domain)?I:E;if(v){if(M=(0,C.Ay)(A,v,g),"category"===g&&h){var D=(0,k.CG)(M);b&&D?(_=M,M=f()(0,j)):b||(M=(0,C.KC)(R,M,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(eJ(e),[t])},[]))}else if("category"===g)M=b?M.filter(function(e){return""!==e&&!l()(e)}):(0,C.KC)(R,M,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||l()(t)?e:[].concat(eJ(e),[t])},[]);else if("number"===g){var N=(0,C.A1)(A,r.filter(function(e){var t,n,r=i in e.props?e.props[i]:null==(t=e.type.defaultProps)?void 0:t[i],o="hide"in e.props?e.props.hide:null==(n=e.type.defaultProps)?void 0:n.hide;return r===S&&(O||!o)}),v,o,s);N&&(M=N)}h&&("number"===g||"auto"!==x)&&(T=(0,C.Ay)(A,v,"category"))}else M=h?f()(0,j):a&&a[S]&&a[S].hasStack&&"number"===g?"expand"===d?[0,1]:(0,C.Mk)(a[S].stackGroups,u,c):(0,C.vf)(A,r.filter(function(e){var t=i in e.props?e.props[i]:e.type.defaultProps[i],n="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===S&&(O||!n)}),g,s,!0);"number"===g?(M=ev(p,M,S,o,w),R&&(M=(0,C.AQ)(R,M,m))):"category"===g&&R&&M.every(function(e){return R.indexOf(e)>=0})&&(M=R)}return e1(e1({},t),{},e2({},S,e1(e1({},y),{},{axisType:o,domain:M,categoricalDomain:T,duplicateDomain:_,originalDomain:null!=(P=y.domain)?P:E,isCategorical:h,layout:s})))},{})},to=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,u=t.dataEndIndex,c=e.layout,s=e.children,p=e7(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),h=p.length,y=(0,C._L)(c,o),g=-1;return n.reduce(function(e,t){var v,m=(void 0!==t.type.defaultProps?e1(e1({},t.type.defaultProps),t.props):t.props)[i],b=te("number");return e[m]?e:(g++,v=y?f()(0,h):a&&a[m]&&a[m].hasStack?ev(s,v=(0,C.Mk)(a[m].stackGroups,l,u),m,o):ev(s,v=(0,C.AQ)(b,(0,C.vf)(p,n.filter(function(e){var t,n,r=i in e.props?e.props[i]:null==(t=e.type.defaultProps)?void 0:t[i],o="hide"in e.props?e.props.hide:null==(n=e.type.defaultProps)?void 0:n.hide;return r===m&&!o}),"number",c),r.defaultProps.allowDataOverflow),m,o),e1(e1({},e),{},e2({},m,e1(e1({axisType:o},r.defaultProps),{},{hide:!0,orientation:d()(e3,"".concat(o,".").concat(g%2),null),domain:v,originalDomain:b,isCategorical:y,layout:c}))))},{})},ti=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,l=t.dataStartIndex,u=t.dataEndIndex,c=e.children,s="".concat(r,"Id"),f=(0,E.aS)(c,o),p={};return f&&f.length?p=tr(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:l,dataEndIndex:u}):i&&i.length&&(p=to(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:l,dataEndIndex:u})),p},ta=function(e){var t=(0,k.lX)(e),n=(0,C.Rh)(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:y()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:(0,C.Hj)(t,n)}},tl=function(e){var t=e.children,n=e.defaultShowTooltip,r=(0,E.BU)(t,K),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(i=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:!!n}},tu=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},tc=function(e,t){var n=e.props,r=e.graphicalItems,o=e.xAxisMap,i=void 0===o?{}:o,a=e.yAxisMap,l=void 0===a?{}:a,u=n.width,c=n.height,s=n.children,f=n.margin||{},p=(0,E.BU)(s,K),h=(0,E.BU)(s,S.s),y=Object.keys(l).reduce(function(e,t){var n=l[t],r=n.orientation;return n.mirror||n.hide?e:e1(e1({},e),{},e2({},r,e[r]+n.width))},{left:f.left||0,right:f.right||0}),g=Object.keys(i).reduce(function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:e1(e1({},e),{},e2({},r,d()(e,"".concat(r))+n.height))},{top:f.top||0,bottom:f.bottom||0}),v=e1(e1({},g),y),m=v.bottom;p&&(v.bottom+=p.props.height||K.defaultProps.height),h&&t&&(v=(0,C.s0)(v,r,n,t));var b=u-v.left-v.right,x=c-v.top-v.bottom;return e1(e1({brushBottom:m},v),{},{width:Math.max(b,0),height:Math.max(x,0)})},ts=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.defaultTooltipEventType,o=void 0===r?"axis":r,a=e.validateTooltipEventTypes,u=void 0===a?["axis"]:a,s=e.axisComponents,f=e.legendContent,p=e.formatAxisMap,h=e.defaultProps,y=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,u=t.dataEndIndex,c=e.barSize,f=e.layout,p=e.barGap,d=e.barCategoryGap,h=e.maxBarSize,y=tu(f),g=y.numericAxisName,v=y.cateAxisName,m=!!n&&!!n.length&&n.some(function(e){var t=(0,E.Mn)(e&&e.type);return t&&t.indexOf("Bar")>=0}),x=[];return n.forEach(function(n,y){var w=e7(e.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:u}),O=void 0!==n.type.defaultProps?e1(e1({},n.type.defaultProps),n.props):n.props,S=O.dataKey,A=O.maxBarSize,j=O["".concat(g,"Id")],P=O["".concat(v,"Id")],M=s.reduce(function(e,n){var r=t["".concat(n.axisType,"Map")],o=O["".concat(n.axisType,"Id")];r&&r[o]||"zAxis"===n.axisType||(0,b.A)(!1);var i=r[o];return e1(e1({},e),{},e2(e2({},n.axisType,i),"".concat(n.axisType,"Ticks"),(0,C.Rh)(i)))},{}),k=M[v],_=M["".concat(v,"Ticks")],T=r&&r[j]&&r[j].hasStack&&(0,C.kA)(n,r[j].stackGroups),I=(0,E.Mn)(n.type).indexOf("Bar")>=0,R=(0,C.Hj)(k,_),D=[],N=m&&(0,C.tA)({barSize:c,stackGroups:r,totalSize:"xAxis"===v?M[v].width:"yAxis"===v?M[v].height:void 0});if(I){var F,B,L=l()(A)?h:A,z=null!=(F=null!=(B=(0,C.Hj)(k,_,!0))?B:L)?F:0;D=(0,C.BX)({barGap:p,barCategoryGap:d,bandSize:z!==R?z:R,sizeList:N[P],maxBarSize:L}),z!==R&&(D=D.map(function(e){return e1(e1({},e),{},{position:e1(e1({},e.position),{},{offset:e.position.offset-z/2})})}))}var V=n&&n.type&&n.type.getComposedData;V&&x.push({props:e1(e1({},V(e1(e1({},M),{},{displayedData:w,props:e,dataKey:S,item:n,bandSize:R,barPosition:D,offset:o,stackedData:T,layout:f,dataStartIndex:a,dataEndIndex:u}))),{},e2(e2(e2({key:n.key||"item-".concat(y)},g,M[g]),v,M[v]),"animationId",i)),childIndex:(0,E.AW)(n,e.children),item:n})}),x},g=function(e,r){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!(0,E.Me)({props:o}))return null;var u=o.children,c=o.layout,f=o.stackOffset,d=o.data,h=o.reverseStackOrder,g=tu(c),v=g.numericAxisName,m=g.cateAxisName,b=(0,E.aS)(u,n),x=(0,C.Mn)(d,b,"".concat(v,"Id"),"".concat(m,"Id"),f,h),w=s.reduce(function(e,t){var n="".concat(t.axisType,"Map");return e1(e1({},e),{},e2({},n,ti(o,e1(e1({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&x,dataStartIndex:i,dataEndIndex:a}))))},{}),O=tc(e1(e1({},w),{},{props:o,graphicalItems:b}),null==r?void 0:r.legendBBox);Object.keys(w).forEach(function(e){w[e]=p(o,w[e],O,e.replace("Map",""),t)});var S=ta(w["".concat(m,"Map")]),A=y(o,e1(e1({},w),{},{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:x,offset:O}));return e1(e1({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:x},S),w)},S=function(e){var n;function r(e){var n,o,a,u,s;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return u=r,s=[e],u=eK(u),e2(a=function(e,t){if(t&&("object"===eG(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,eX()?Reflect.construct(u,s||[],eK(this).constructor):u.apply(this,s)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),e2(a,"accessibilityManager",new eP),e2(a,"handleLegendBBoxUpdate",function(e){if(e){var t=a.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;a.setState(e1({legendBBox:e},g({props:a.props,dataStartIndex:n,dataEndIndex:r,updateId:o},e1(e1({},a.state),{},{legendBBox:e}))))}}),e2(a,"handleReceiveSyncEvent",function(e,t,n){a.props.syncId===e&&(n!==a.eventEmitterSymbol||"function"==typeof a.props.syncMethod)&&a.applySyncEvent(t)}),e2(a,"handleBrushChange",function(e){var t=e.startIndex,n=e.endIndex;if(t!==a.state.dataStartIndex||n!==a.state.dataEndIndex){var r=a.state.updateId;a.setState(function(){return e1({dataStartIndex:t,dataEndIndex:n},g({props:a.props,dataStartIndex:t,dataEndIndex:n,updateId:r},a.state))}),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),e2(a,"handleMouseEnter",function(e){var t=a.getMouseInfo(e);if(t){var n=e1(e1({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseEnter;c()(r)&&r(n,e)}}),e2(a,"triggeredAfterMouseMove",function(e){var t=a.getMouseInfo(e),n=t?e1(e1({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseMove;c()(r)&&r(n,e)}),e2(a,"handleItemMouseEnter",function(e){a.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),e2(a,"handleItemMouseLeave",function(){a.setState(function(){return{isTooltipActive:!1}})}),e2(a,"handleMouseMove",function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)}),e2(a,"handleMouseLeave",function(e){a.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var n=a.props.onMouseLeave;c()(n)&&n(t,e)}),e2(a,"handleOuterEvent",function(e){var t,n=(0,E.X_)(e),r=d()(a.props,"".concat(n));n&&c()(r)&&r(null!=(t=/.*touch.*/i.test(n)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))?t:{},e)}),e2(a,"handleClick",function(e){var t=a.getMouseInfo(e);if(t){var n=e1(e1({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onClick;c()(r)&&r(n,e)}}),e2(a,"handleMouseDown",function(e){var t=a.props.onMouseDown;c()(t)&&t(a.getMouseInfo(e),e)}),e2(a,"handleMouseUp",function(e){var t=a.props.onMouseUp;c()(t)&&t(a.getMouseInfo(e),e)}),e2(a,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),e2(a,"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])}),e2(a,"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])}),e2(a,"triggerSyncEvent",function(e){void 0!==a.props.syncId&&ew.emit(eO,a.props.syncId,e,a.eventEmitterSymbol)}),e2(a,"applySyncEvent",function(e){var t=a.props,n=t.layout,r=t.syncMethod,o=a.state.updateId,i=e.dataStartIndex,l=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)a.setState(e1({dataStartIndex:i,dataEndIndex:l},g({props:a.props,dataStartIndex:i,dataEndIndex:l,updateId:o},a.state)));else if(void 0!==e.activeTooltipIndex){var u=e.chartX,c=e.chartY,s=e.activeTooltipIndex,f=a.state,p=f.offset,d=f.tooltipTicks;if(!p)return;if("function"==typeof r)s=r(d,e);else if("value"===r){s=-1;for(var h=0;h=0){if(s.dataKey&&!s.allowDuplicatedCategory){var _="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());I=(0,k.eP)(g,_,p),R=v&&m&&(0,k.eP)(m,_,p)}else I=null==g?void 0:g[f],R=v&&m&&m[f];if(A||S){var T=void 0!==e.props.activeIndex?e.props.activeIndex:f;return[(0,i.cloneElement)(e,e1(e1(e1({},r.props),P),{},{activeIndex:T})),null,null]}if(!l()(I))return[M].concat(eJ(a.renderActivePoints({item:r,activePoint:I,basePoint:R,childIndex:f,isRange:v})))}else{var I,R,D,N=(null!=(D=a.getItemByXY(a.state.activeCoordinate))?D:{graphicalItem:M}).graphicalItem,F=N.item,B=void 0===F?e:F,L=N.childIndex,z=e1(e1(e1({},r.props),P),{},{activeIndex:L});return[(0,i.cloneElement)(B,z),null,null]}return v?[M,null,null]:[M,null]}),e2(a,"renderCustomized",function(e,t,n){return(0,i.cloneElement)(e,e1(e1({key:"recharts-customized-".concat(n)},a.props),a.state))}),e2(a,"renderMap",{CartesianGrid:{handler:e6,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:e6},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:e6},YAxis:{handler:e6},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!=(n=e.id)?n:(0,k.NF)("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=v()(a.triggeredAfterMouseMove,null!=(o=e.throttleDelay)?o:1e3/60),a.state={},a}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&eY(r,e),n=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!=(e=this.props.margin.left)?e:0,top:null!=(t=this.props.margin.top)?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,i=(0,E.BU)(t,O.m);if(i){var a=i.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length-1)){var l=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=tt(this.state,n,a,l),c=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+r)/2,f="horizontal"===o?{x:c,y:s}:{y:c,x:s},p=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});p&&(f=e1(e1({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:l,activePayload:u,activeCoordinate:f};this.setState(d),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin){var n,r;this.accessibilityManager.setDetails({offset:{left:null!=(n=this.props.margin.left)?n:0,top:null!=(r=this.props.margin.top)?r:0}})}return null}},{key:"componentDidUpdate",value:function(e){(0,E.OV)([(0,E.BU)(e.children,O.m)],[(0,E.BU)(this.props.children,O.m)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=(0,E.BU)(this.props.children,O.m);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return u.indexOf(t)>=0?t:o}return o}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r=(0,Y.A3)(n),o={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},i=n.width/t.offsetWidth||1,a=this.inRange(o.chartX,o.chartY,i);if(!a)return null;var l=this.state,u=l.xAxisMap,c=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&c){var s=(0,k.lX)(u).scale,f=(0,k.lX)(c).scale,p=s&&s.invert?s.invert(o.chartX):null,d=f&&f.invert?f.invert(o.chartY):null;return e1(e1({},o),{},{xValue:p,yValue:d})}var h=tn(this.state,this.props.data,this.props.layout,a);return h?e1(e1({},o),h):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,i=t/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var l=this.state,u=l.angleAxisMap,c=l.radiusAxisMap;if(u&&c){var s=(0,k.lX)(u);return(0,em.yy)({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=(0,E.BU)(e,O.m),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),e1(e1({},(0,eS._U)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){ew.on(eO,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ew.removeListener(eO,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o{var r=n(90843);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,l=i.length,u=n.length;++o=u)return c;return c*("desc"==n[o]?-1:1)}}return e.index-t.index}},33958:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("filled","caret-down-filled","IconCaretDownFilled",[["path",{d:"M18 9c.852 0 1.297 .986 .783 1.623l-.076 .084l-6 6a1 1 0 0 1 -1.32 .083l-.094 -.083l-6 -6l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057v-.118l.005 -.058l.009 -.06l.01 -.052l.032 -.108l.027 -.067l.07 -.132l.065 -.09l.073 -.081l.094 -.083l.077 -.054l.096 -.054l.036 -.017l.067 -.027l.108 -.032l.053 -.01l.06 -.01l.057 -.004l12.059 -.002z",key:"svg-0"}]])},34024:(e,t,n)=>{var r=n(21248),o=n(87567);e.exports=function(e,t){return e&&r(e,t,o)}},35342:(e,t,n)=>{var r=n(83965),o=n(93803);e.exports=function(e,t){return r(o(e,t),1)}},35555:(e,t,n)=>{"use strict";n.d(t,{J:()=>j});var r=n(55729),o=n(38822),i=n.n(o),a=n(98499),l=n.n(a),u=n(23356),c=n.n(u),s=n(50212),f=n(25599),p=n(93780),d=n(53645),h=n(31829);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var g=["offset"];function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1;"insideStart"===l?(o=m+A*c,a=w):"insideEnd"===l?(o=b-A*c,a=!w):"end"===l&&(o=b+A*c,a=w),a=S<=0?a:!a;var j=(0,h.IZ)(p,y,O,o),E=(0,h.IZ)(p,y,O,o+(a?1:-1)*359),P="M".concat(j.x,",").concat(j.y,"\n A").concat(O,",").concat(O,",0,1,").concat(+!a,",\n ").concat(E.x,",").concat(E.y),M=i()(e.id)?(0,d.NF)("recharts-radial-line-"):e.id;return r.createElement("text",x({},n,{dominantBaseline:"central",className:(0,s.A)("recharts-radial-bar-label",f)}),r.createElement("defs",null,r.createElement("path",{id:M,d:P})),r.createElement("textPath",{xlinkHref:"#".concat(M)},t))},S=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,i=t.cy,a=t.innerRadius,l=t.outerRadius,u=(t.startAngle+t.endAngle)/2;if("outside"===r){var c=(0,h.IZ)(o,i,l+n,u),s=c.x;return{x:s,y:c.y,textAnchor:s>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=(0,h.IZ)(o,i,(a+l)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},A=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t.x,a=t.y,l=t.width,u=t.height,s=u>=0?1:-1,f=s*r,p=s>0?"end":"start",h=s>0?"start":"end",y=l>=0?1:-1,g=y*r,v=y>0?"end":"start",m=y>0?"start":"end";if("top"===o)return b(b({},{x:i+l/2,y:a-s*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(a-n.y,0),width:l}:{});if("bottom"===o)return b(b({},{x:i+l/2,y:a+u+f,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(n.y+n.height-(a+u),0),width:l}:{});if("left"===o){var x={x:i-g,y:a+u/2,textAnchor:v,verticalAnchor:"middle"};return b(b({},x),n?{width:Math.max(x.x-n.x,0),height:u}:{})}if("right"===o){var w={x:i+l+g,y:a+u/2,textAnchor:m,verticalAnchor:"middle"};return b(b({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:u}:{})}var O=n?{width:l,height:u}:{};return"insideLeft"===o?b({x:i+g,y:a+u/2,textAnchor:m,verticalAnchor:"middle"},O):"insideRight"===o?b({x:i+l-g,y:a+u/2,textAnchor:v,verticalAnchor:"middle"},O):"insideTop"===o?b({x:i+l/2,y:a+f,textAnchor:"middle",verticalAnchor:h},O):"insideBottom"===o?b({x:i+l/2,y:a+u-f,textAnchor:"middle",verticalAnchor:p},O):"insideTopLeft"===o?b({x:i+g,y:a+f,textAnchor:m,verticalAnchor:h},O):"insideTopRight"===o?b({x:i+l-g,y:a+f,textAnchor:v,verticalAnchor:h},O):"insideBottomLeft"===o?b({x:i+g,y:a+u-f,textAnchor:m,verticalAnchor:p},O):"insideBottomRight"===o?b({x:i+l-g,y:a+u-f,textAnchor:v,verticalAnchor:p},O):c()(o)&&((0,d.Et)(o.x)||(0,d._3)(o.x))&&((0,d.Et)(o.y)||(0,d._3)(o.y))?b({x:i+(0,d.F4)(o.x,l),y:a+(0,d.F4)(o.y,u),textAnchor:"end",verticalAnchor:"end"},O):b({x:i+l/2,y:a+u/2,textAnchor:"middle",verticalAnchor:"middle"},O)};function j(e){var t,n=e.offset,o=b({offset:void 0===n?5:n},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,g)),a=o.viewBox,u=o.position,c=o.value,h=o.children,y=o.content,v=o.className,m=o.textBreakAll;if(!a||i()(c)&&i()(h)&&!(0,r.isValidElement)(y)&&!l()(y))return null;if((0,r.isValidElement)(y))return(0,r.cloneElement)(y,o);if(l()(y)){if(t=(0,r.createElement)(y,o),(0,r.isValidElement)(t))return t}else t=w(o);var j="cx"in a&&(0,d.Et)(a.cx),E=(0,p.J9)(o,!0);if(j&&("insideStart"===u||"insideEnd"===u||"end"===u))return O(o,t,E);var P=j?S(o):A(o);return r.createElement(f.E,x({className:(0,s.A)("recharts-label",void 0===v?"":v)},E,P,{breakAll:m}),t)}j.displayName="Label";var E=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,l=e.radius,u=e.innerRadius,c=e.outerRadius,s=e.x,f=e.y,p=e.top,h=e.left,y=e.width,g=e.height,v=e.clockWise,m=e.labelViewBox;if(m)return m;if((0,d.Et)(y)&&(0,d.Et)(g)){if((0,d.Et)(s)&&(0,d.Et)(f))return{x:s,y:f,width:y,height:g};if((0,d.Et)(p)&&(0,d.Et)(h))return{x:p,y:h,width:y,height:g}}return(0,d.Et)(s)&&(0,d.Et)(f)?{x:s,y:f,width:0,height:0}:(0,d.Et)(t)&&(0,d.Et)(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:u||0,outerRadius:c||l||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};j.parseViewBox=E,j.renderCallByParent=function(e,t){var n,o,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&i&&!e.label)return null;var a=e.children,u=E(e),s=(0,p.aS)(a,j).map(function(e,n){return(0,r.cloneElement)(e,{viewBox:t||u,key:"label-".concat(n)})});if(!i)return s;return[(n=e.label,o=t||u,!n?null:!0===n?r.createElement(j,{key:"label-implicit",viewBox:o}):(0,d.vh)(n)?r.createElement(j,{key:"label-implicit",viewBox:o,value:n}):(0,r.isValidElement)(n)?n.type===j?(0,r.cloneElement)(n,{key:"label-implicit",viewBox:o}):r.createElement(j,{key:"label-implicit",content:n,viewBox:o}):l()(n)?r.createElement(j,{key:"label-implicit",content:n,viewBox:o}):c()(n)?r.createElement(j,x({viewBox:o},n,{key:"label-implicit"})):null)].concat(function(e){if(Array.isArray(e))return v(e)}(s)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return v(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,void 0)}}(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},36022:e=>{e.exports=function(e){return this.__data__.has(e)}},36647:(e,t,n)=>{var r=n(68988),o=n(16799),i=n(87567);e.exports=function(e){return function(t,n,a){var l=Object(t);if(!o(t)){var u=r(n,3);t=i(t),n=function(e){return u(l[e],e,l)}}var c=e(t,n,a);return c>-1?l[u?t[c]:c]:void 0}}},37390:(e,t,n)=>{var r=n(88601),o=n(24127),i=n(68988),a=n(93733),l=n(1864),u=n(3540),c=n(33883),s=n(5549),f=n(91544);e.exports=function(e,t,n){t=t.length?r(t,function(e){return f(e)?function(t){return o(t,1===e.length?e[0]:e)}:e}):[s];var p=-1;return t=r(t,u(i)),l(a(e,function(e,n,o){return{criteria:r(t,function(t){return t(e)}),index:++p,value:e}}),function(e,t){return c(e,t,n)})}},38302:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i{e.exports=function(e){return null==e}},38867:(e,t,n)=>{var r=n(19962),o=n(70930),i=n(5549);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},39696:(e,t,n)=>{"use strict";function r(e,t){return"function"==typeof e?e(t):e}function o(e,t){return n=>{t.setState(t=>({...t,[e]:r(n,t[e])}))}}function i(e){return e instanceof Function}function a(e,t,n){let r,o=[];return()=>{let i,a;n.key&&n.debug&&(i=Date.now());let l=e();if(!(l.length!==o.length||l.some((e,t)=>o[t]!==e)))return r;if(o=l,n.key&&n.debug&&(a=Date.now()),r=t(...l),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){let e=Math.round((Date.now()-i)*100)/100,t=Math.round((Date.now()-a)*100)/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{Object.assign(o,null==t.createHeader?void 0:t.createHeader(o,e))}),o}function u(e,t,n,r){var o,i;let a=0,u=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&u(e.columns,t+1)},0)};u(e);let c=[],s=(e,t)=>{let o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{let a,u=[...i].reverse()[0],c=e.column.depth===o.depth,s=!1;if(c&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),u&&(null==u?void 0:u.column)===a)u.subHeaders.push(e);else{let o=l(n,a,{id:[r,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter(e=>e.column===a).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),c.push(o),t>0&&s(i,t-1)};s(t.map((e,t)=>l(n,e,{depth:a,index:t})),a-1),c.reverse();let f=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],f(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return f(null!=(o=null==(i=c[0])?void 0:i.headers)?o:[]),c}n.d(t,{HT:()=>z,ZR:()=>B});let c={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},s=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),f=null;function p(e){return"touchstart"===e.type}let d=(e,t,n)=>{var r;let o=n.toLowerCase();return!!(null==(r=e.getValue(t))?void 0:r.toLowerCase().includes(o))};d.autoRemove=e=>S(e);let h=(e,t,n)=>{var r;return!!(null==(r=e.getValue(t))?void 0:r.includes(n))};h.autoRemove=e=>S(e);let y=(e,t,n)=>{var r;return(null==(r=e.getValue(t))?void 0:r.toLowerCase())===n.toLowerCase()};y.autoRemove=e=>S(e);let g=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};g.autoRemove=e=>S(e)||!(null!=e&&e.length);let v=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});v.autoRemove=e=>S(e)||!(null!=e&&e.length);let m=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});m.autoRemove=e=>S(e)||!(null!=e&&e.length);let b=(e,t,n)=>e.getValue(t)===n;b.autoRemove=e=>S(e);let x=(e,t,n)=>e.getValue(t)==n;x.autoRemove=e=>S(e);let w=(e,t,n)=>{let[r,o]=n,i=e.getValue(t);return i>=r&&i<=o};w.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(o)?1/0:o;if(i>a){let e=i;i=a,a=e}return[i,a]},w.autoRemove=e=>S(e)||S(e[0])&&S(e[1]);let O={includesString:d,includesStringSensitive:h,equalsString:y,arrIncludes:g,arrIncludesAll:v,arrIncludesSome:m,equals:b,weakEquals:x,inNumberRange:w};function S(e){return null==e||""===e}function A(e,t,n){return!!e&&!!e.autoRemove&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}let j={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o*=1)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=0,r=0;return t.forEach(t=>{let o=t.getValue(e);"number"==typeof o&&(n=Math.min(n,o),r=Math.max(r,o))}),(n+r)/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},E=()=>({pageIndex:0,pageSize:10}),P=()=>({left:[],right:[]}),M=(e,t,n,r)=>{var o;let i=r.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(o=i.subRows)&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>M(e,t.id,n,r))};function C(e,t){let n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;let a=k(e,n);if(a&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function k(e,t){var n;return null!=(n=t[e.id])&&n}function _(e,t,n){if(e.subRows&&e.subRows.length){let n=!0,r=!1;return e.subRows.forEach(e=>{(!r||n)&&(k(e,t)?r=!0:n=!1)}),n?"all":!!r&&"some"}return!1}let T=/([0-9]+)/gm;function I(e,t){return e===t?0:e>t?1:-1}function R(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function D(e,t){let n=e.split(T).filter(Boolean),r=t.split(T).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),a=[o,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return -1}return n.length-r.length}let N={alphanumeric:(e,t,n)=>D(R(e.getValue(n)).toLowerCase(),R(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>D(R(e.getValue(n)),R(t.getValue(n))),text:(e,t,n)=>I(R(e.getValue(n)).toLowerCase(),R(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>I(R(e.getValue(n)),R(t.getValue(n))),datetime:(e,t,n)=>{let r=e.getValue(n),o=t.getValue(n);return r>o?1:rI(e.getValue(n),t.getValue(n))},F=[{createTable:e=>({getHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,a;let l=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],c=null!=(a=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?a:[];return u(t,[...l,...n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=o&&o.includes(e.id))),...c],e)},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>u(t,n=n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=o&&o.includes(e.id))),e,"center"),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;return u(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;return u(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:a(()=>[e.getHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:a(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:a(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:a(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:a(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:a(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:a(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:a(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:a(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:a(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:a(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:a(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,a,l,u;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(l=null==(u=n[0])?void 0:u.headers)?l:[]].map(e=>e.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})})},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},getIsVisible:()=>{var n,r;return null==(n=null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},getCanHide:()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:a(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:a(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{let t=(t,n)=>a(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),resetColumnVisibility:t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},toggleAllColumnsVisible:t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},_getOrderColumnsFn:a(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;var i=o;if(!(null!=t&&t.length)||!n)return i;let a=i.filter(e=>!t.includes(e.id));return"remove"===n?a:[...t.map(e=>i.find(t=>t.id===e)).filter(Boolean),...a]},{key:!1})})},{getInitialState:e=>({columnPinning:P(),...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>({pin:n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,a,l,u;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(u=null==e?void 0:e.right)?u:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},getCanPin:()=>e.getLeafColumns().some(e=>{var n,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=t.options.enablePinning)||r)}),getIsPinned:()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(e=>null==r?void 0:r.includes(e)),a=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!a&&"right"},getPinnedIndex:()=>{var n,r,o;let i=e.getIsPinned();return i?null!=(n=null==(r=t.getState().columnPinning)||null==(o=r[i])?void 0:o.indexOf(e.id))?n:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),{key:"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),{key:"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var n,r;return e.setColumnPinning(t?P():null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:P())},getIsSomeColumnsPinned:t=>{var n,r,o;let i=e.getState().columnPinning;return t?!!(null==(n=i[t])?void 0:n.length):!!((null==(r=i.left)?void 0:r.length)||(null==(o=i.right)?void 0:o.length))},getLeftLeafColumns:a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),onGlobalFilterChange:o("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n,r;let o=null==(n=e.getCoreRowModel().flatRows[0])||null==(r=n._getAllCellsByColumnId()[t.id])?void 0:r.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?O.includesString:"number"==typeof r?O.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?O.equals:Array.isArray(r)?O.arrIncludes:O.weakEquals},getFilterFn:()=>{var n,r;return i(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:O[e.columnDef.filterFn]},getCanFilter:()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},getCanGlobalFilter:()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var n,r;return null==(n=t.getState().columnFilters)||null==(r=n.find(t=>t.id===e.id))?void 0:r.value},getFilterIndex:()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},setFilterValue:n=>{t.setColumnFilters(t=>{var o,i;let a=e.getFilterFn(),l=null==t?void 0:t.find(t=>t.id===e.id),u=r(n,l?l.value:void 0);if(A(a,u,e))return null!=(o=null==t?void 0:t.filter(t=>t.id!==e.id))?o:[];let c={id:e.id,value:u};return l?null!=(i=null==t?void 0:t.map(t=>t.id===e.id?c:t))?i:[]:null!=t&&t.length?[...t,c]:[c]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>O.includesString,getGlobalFilterFn:()=>{var t,n;let{globalFilterFn:r}=e.options;return i(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:O[r]},setColumnFilters:t=>{let n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var o;return null==(o=r(t,e))?void 0:o.filter(e=>{let t=n.find(t=>t.id===e.id);return!(t&&A(t.getFilterFn(),e.value,t))&&!0})})},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel(),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return N.datetime;if("string"==typeof n&&(r=!0,n.split(T).length>1))return N.alphanumeric}return r?N.text:N.basic},getAutoSortDir:()=>{let n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},getSortingFn:()=>{var n,r;if(!e)throw Error();return i(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:N[e.columnDef.sortingFn]},toggleSorting:(n,r)=>{let o=e.getNextSortingOrder(),i=null!=n;t.setSorting(a=>{let l,u=null==a?void 0:a.find(t=>t.id===e.id),c=null==a?void 0:a.findIndex(t=>t.id===e.id),s=[],f=i?n:"desc"===o;if("toggle"!=(l=null!=a&&a.length&&e.getCanMultiSort()&&r?u?"toggle":"add":null!=a&&a.length&&c!==a.length-1?"replace":u?"toggle":"replace")||i||o||(l="remove"),"add"===l){var p;(s=[...a,{id:e.id,desc:f}]).splice(0,s.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))}else s="toggle"===l?a.map(t=>t.id===e.id?{...t,desc:f}:t):"remove"===l?a.filter(t=>t.id!==e.id):[{id:e.id,desc:f}];return s})},getFirstSortDir:()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},getNextSortingOrder:n=>{var r,o;let i=e.getFirstSortDir(),a=e.getIsSorted();return a?(a===i||null!=(r=t.options.enableSortingRemoval)&&!r||!!n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},getCanSort:()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},getCanMultiSort:()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},getIsSorted:()=>{var n;let r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},getSortIndex:()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},clearSorting:()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},getToggleSortingHandler:()=>{let n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}}),createTable:e=>({setSorting:t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),resetSorting:t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()})},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},getCanGroup:()=>{var n,r,o,i;return null!=(n=null==(r=null!=(o=null==(i=e.columnDef.enableGrouping)||i)?o:t.options.enableGrouping)||r)?n:!!e.accessorFn},getIsGrouped:()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},getGroupedIndex:()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},getToggleGroupingHandler:()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},getAutoAggregationFn:()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?j.sum:"[object Date]"===Object.prototype.toString.call(r)?j.extent:void 0},getAggregationFn:()=>{var n,r;if(!e)throw Error();return i(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:j[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,t,n,r)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===n.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=n.subRows)&&t.length)}})},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;return{_autoResetExpanded:()=>{var r,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},setExpanded:t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),toggleAllRowsExpanded:t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},resetExpanded:t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},getCanSomeRowsExpand:()=>e.getRowModel().flatRows.some(e=>e.getCanExpand()),getToggleAllRowsExpandedHandler:()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},getIsAllRowsExpanded:()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},getExpandedDepth:()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let n=e.split(".");t=Math.max(t,n.length)}),t},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()}},createRow:(e,t)=>({toggleExpanded:n=>{t.setExpanded(r=>{var o;let i=!0===r||!!(null!=r&&r[e.id]),a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=r,n=null!=(o=n)?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){let{[e.id]:t,...n}=a;return n}return r})},getIsExpanded:()=>{var n;let r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},getCanExpand:()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!!(null!=(o=e.subRows)&&o.length)},getToggleExpandedHandler:()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}})},{getInitialState:e=>({...e,pagination:{...E(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,n=!1;return{_autoResetPageIndex:()=>{var r,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>r(t,e)),resetPagination:t=>{var n;e.setPagination(t?E():null!=(n=e.initialState.pagination)?n:E())},setPageIndex:t=>{e.setPagination(n=>{let o=r(t,n.pageIndex);return o=Math.max(0,Math.min(o,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...n,pageIndex:o}})},resetPageIndex:t=>{var n,r,o;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(o=r.pagination)?void 0:o.pageIndex)?n:0)},resetPageSize:t=>{var n,r,o;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(o=r.pagination)?void 0:o.pageSize)?n:10)},setPageSize:t=>{e.setPagination(e=>{let n=Math.max(1,r(t,e.pageSize)),o=Math.floor(e.pageSize*e.pageIndex/n);return{...e,pageIndex:o,pageSize:n}})},setPageCount:t=>e.setPagination(n=>{var o;let i=r(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof i&&(i=Math.max(-1,i)),{...n,pageCount:i}}),getPageOptions:a(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return -1===n||0!==n&&te.setPageIndex(e=>e-1),nextPage:()=>e.setPageIndex(e=>e+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),getPageCount:()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},toggleAllRowsSelected:t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},toggleAllPageRowsSelected:t=>e.setRowSelection(n=>{let r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{M(o,t.id,r,e)}),o}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:a(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?C(e,n):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:a(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?C(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:a(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?C(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},getIsAllPageRowsSelected:()=>{let t=e.getPaginationRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},getIsSomeRowsSelected:()=>{var t;let n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.some(e=>e.getIsSelected()||e.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:n=>{let r=e.getIsSelected();t.setRowSelection(o=>{if(n=void 0!==n?n:!r,r===n)return o;let i={...o};return M(i,e.id,n,t),i})},getIsSelected:()=>{let{rowSelection:n}=t.getState();return k(e,n)},getIsSomeSelected:()=>{let{rowSelection:n}=t.getState();return"some"===_(e,n)},getIsAllSubRowsSelected:()=>{let{rowSelection:n}=t.getState();return"all"===_(e,n)},getCanSelect:()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},getCanSelectSubRows:()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},getCanMultiSelect:()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},getToggleSelectedHandler:()=>{let t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}})},{getDefaultColumnDef:()=>c,getInitialState:e=>({columnSizing:{},columnSizingInfo:s(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var n,r,o;let i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:c.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:c.size),null!=(o=e.columnDef.maxSize)?o:c.maxSize)},getStart:n=>{let r=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=r.findIndex(t=>t.id===e.id);if(o>0){let e=r[o-1];return e.getStart(n)+e.getSize()}return 0},resetSize:()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},getCanResize:()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let t=0,n=e=>{if(e.subHeaders.length)e.subHeaders.forEach(n);else{var r;t+=null!=(r=e.column.getSize())?r:0}};return n(e),t},getStart:()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},getResizeHandler:()=>{let n=t.getColumn(e.column.id),r=null==n?void 0:n.getCanResize();return o=>{if(!n||!r||(null==o.persist||o.persist(),p(o)&&o.touches&&o.touches.length>1))return;let i=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[n.id,n.getSize()]],l=p(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var t,r;let o=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),i=Math.max(o/(null!=(r=null==e?void 0:e.startSize)?r:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*i,0))/100}),{...e,deltaOffset:o,deltaPercentage:i}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...u})))},s=e=>{c("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d={moveHandler:e=>c("move",e.clientX),upHandler:e=>{document.removeEventListener("mousemove",d.moveHandler),document.removeEventListener("mouseup",d.upHandler),s(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c("move",e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",h.moveHandler),document.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),s(null==(t=e.touches[0])?void 0:t.clientX)}},y=!!function(){if("boolean"==typeof f)return f;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return f=e}()&&{passive:!1};p(o)?(document.addEventListener("touchmove",h.moveHandler,y),document.addEventListener("touchend",h.upHandler,y)):(document.addEventListener("mousemove",d.moveHandler,y),document.addEventListener("mouseup",d.upHandler,y)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:n.id}))}}}),createTable:e=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},resetHeaderSizeInfo:t=>{var n;e.setColumnSizingInfo(t?s():null!=(n=e.initialState.columnSizingInfo)?n:s())},getTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getLeftTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getCenterTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getRightTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}})}];function B(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:F},o=n._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n)),{}),i={...null!=(t=e.initialState)?t:{}};n._features.forEach(e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i});let l=[],u=!1,c={_features:F,options:{...o,...e},initialState:i,_queue:e=>{l.push(e),u||(u=!0,Promise.resolve().then(()=>{for(;l.length;)l.shift()();u=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{var t;t=r(e,n.options),n.options=n.options.mergeOptions?n.options.mergeOptions(o,t):{...o,...t}},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,r)=>{var o;return null!=(o=null==n.options.getRowId?void 0:n.options.getRowId(e,t,r))?o:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:e=>{let t=n.getRowModel().rowsById[e];if(!t)throw Error();return t},_getDefaultColumnDef:a(()=>[n.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:a(()=>[n._getColumnDefs()],e=>{let t=function(e,r,o){return void 0===o&&(o=0),e.map(e=>{let i=function(e,t,n,r){var o,i;let l,u={...e._getDefaultColumnDef(),...t},c=u.accessorKey,s=null!=(o=null!=(i=u.id)?i:c?c.replace(".","_"):void 0)?o:"string"==typeof u.header?u.header:void 0;if(u.accessorFn?l=u.accessorFn:c&&(l=c.includes(".")?e=>{let t=e;for(let e of c.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[u.accessorKey]),!s)throw Error();let f={id:`${String(s)}`,accessorFn:l,parent:r,depth:n,columnDef:u,columns:[],getFlatColumns:a(()=>[!0],()=>{var e;return[f,...null==(e=f.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:a(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=f.columns)&&t.length?e(f.columns.flatMap(e=>e.getLeafColumns())):[f]},{key:"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};return f=e._features.reduce((t,n)=>Object.assign(t,null==n.createColumn?void 0:n.createColumn(f,e)),f)}(n,e,o,r);return i.columns=e.columns?t(e.columns,i,o+1):[],i})};return t(e)},{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:a(()=>[n.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:a(()=>[n.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:a(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>n._getAllFlatColumnsById()[e]};return Object.assign(n,c),n._features.forEach(e=>Object.assign(n,null==e.createTable?void 0:e.createTable(n))),n}let L=(e,t,n,r,o,i)=>{let l={id:t,index:r,original:n,depth:o,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(l._valuesCache.hasOwnProperty(t))return l._valuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return l._valuesCache[t]=n.accessorFn(l.original,r),l._valuesCache[t]},getUniqueValues:t=>{if(l._uniqueValuesCache.hasOwnProperty(t))return l._uniqueValuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return n.columnDef.getUniqueValues?l._uniqueValuesCache[t]=n.columnDef.getUniqueValues(l.original,r):l._uniqueValuesCache[t]=[l.getValue(t)],l._uniqueValuesCache[t]},renderValue:t=>{var n;return null!=(n=l.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>{var e,t;let n,r;return e=l.subRows,t=e=>e.subRows,n=[],(r=e=>{e.forEach(e=>{n.push(e);let o=t(e);null!=o&&o.length&&r(o)})})(e),n},getAllCells:a(()=>[e.getAllLeafColumns()],t=>t.map(t=>{var n;let r;return n=t.id,r={id:`${l.id}_${t.id}`,row:l,column:t,getValue:()=>l.getValue(n),renderValue:()=>{var t;return null!=(t=r.getValue())?t:e.options.renderFallbackValue},getContext:a(()=>[e,t,l,r],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),{key:!1,debug:()=>e.options.debugAll})},e._features.forEach(n=>{Object.assign(r,null==n.createCell?void 0:n.createCell(r,t,l,e))},{}),r}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:a(()=>[l.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;ta(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);let a=[];for(let u=0;u{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}},40387:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]])},40684:(e,t,n)=>{"use strict";n.d(t,{u:()=>h});var r=n(50212),o=n(55729),i=n(47687),a=n.n(i),l=n(53645),u=n(7571),c=n(93780);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,2)||function(e,t){if(e){if("string"==typeof e)return d(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),T=_[0],I=_[1],R=(0,o.useCallback)(function(e,t){I(function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}})},[]);(0,o.useEffect)(function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;R(r,o),null==(t=k.current)||t.call(k,r,o)};A>0&&(e=a()(e,A,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=C.current.getBoundingClientRect();return R(n.width,n.height),t.observe(C.current),function(){t.disconnect()}},[R,A]);var D=(0,o.useMemo)(function(){var e=T.containerWidth,t=T.containerHeight;if(e<0||t<0)return null;(0,u.R)((0,l._3)(y)||(0,l._3)(v),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,v),(0,u.R)(!i||i>0,"The aspect(%s) must be greater than zero.",i);var n=(0,l._3)(y)?e:y,r=(0,l._3)(v)?t:v;i&&i>0&&(n?r=n/i:r&&(n=r*i),w&&r>w&&(r=w)),(0,u.R)(n>0||r>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,r,y,v,b,x,i);var a=!Array.isArray(O)&&(0,c.Mn)(O.type).endsWith("Chart");return o.Children.map(O,function(e){return o.isValidElement(e)?(0,o.cloneElement)(e,p({width:n,height:r},a?{style:p({height:"100%",width:"100%",maxHeight:r,maxWidth:n},e.props.style)}:{})):e})},[i,O,v,w,x,b,T,y]);return o.createElement("div",{id:j?"".concat(j):void 0,className:(0,r.A)("recharts-responsive-container",E),style:p(p({},void 0===M?{}:M),{},{width:y,height:v,minWidth:b,minHeight:x,maxHeight:w}),ref:C},D)})},41499:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(){var t=new r,n=[],o=[],i=l;function u(e){let r=t.get(e);if(void 0===r){if(i!==l)return i;t.set(e,r=n.push(e)-1)}return o[r%o.length]}return u.domain=function(e){if(!arguments.length)return n.slice();for(let o of(n=[],t=new r,e))t.has(o)||t.set(o,n.push(o)-1);return u},u.range=function(e){return arguments.length?(o=Array.from(e),u):o.slice()},u.unknown=function(e){return arguments.length?(i=e,u):i},u.copy=function(){return e(n,o).unknown(i)},a.C.apply(u,arguments),u},h:()=>l});class r extends Map{constructor(e,t=i){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(o(this,e))}has(e){return super.has(o(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function o({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function i(e){return null!==e&&"object"==typeof e?e.valueOf():e}var a=n(58905);let l=Symbol("implicit")},42130:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(t,n){var u,c,s=typeof n;return null==n||"boolean"===s?(0,l.A)(n):("number"===s?i.A:"string"===s?(c=(0,r.Ay)(n))?(n=c,o.Ay):a.A:n instanceof r.Ay?o.Ay:n instanceof Date?function(e,t){var n=new Date;return e*=1,t*=1,function(r){return n.setTime(e*(1-r)+t*r),n}}:!ArrayBuffer.isView(u=n)||u instanceof DataView?Array.isArray(n)?function(t,n){var r,o=n?n.length:0,i=t?Math.min(o,t.length):0,a=Array(i),l=Array(o);for(r=0;r{e.exports=n(36647)(n(76560))},45005:(e,t,n)=>{"use strict";n.d(t,{n:()=>T});var r=n(6029),o=n(60466),i=n(3001),a=n(26615);n(55729);var l=n(6406),u=n(76),c=n(5618),s=n(80616),f=n(37666),p=n(60481),d=n(43016),h=n(36254);let[y,g]=(0,h.F)("Accordion component was not found in the tree");var v=n(89876),m=n(66062),b=n(8737);let[x,w]=(0,h.F)("Accordion.Item component was not found in the tree");var O={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};let S={},A=(0,d.P9)((e,t)=>{let{classNames:n,className:o,style:i,styles:a,vars:l,chevron:u,icon:c,onClick:f,onKeyDown:d,children:h,disabled:y,mod:v,...x}=(0,s.Y)("AccordionControl",S,e),{value:O}=w(),A=g(),j=A.isItemActive(O),E="number"==typeof A.order,P=`h${A.order}`,M=(0,r.jsxs)(b.N,{...x,...A.getStyles("control",{className:o,classNames:n,style:i,styles:a,variant:A.variant}),unstyled:A.unstyled,mod:["accordion-control",{active:j,"chevron-position":A.chevronPosition,disabled:y},v],ref:t,onClick:e=>{f?.(e),A.onChange(O)},type:"button",disabled:y,"aria-expanded":j,"aria-controls":A.getRegionId(O),id:A.getControlId(O),onKeyDown:(0,m.Y)({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:A.loop,orientation:"vertical",onKeyDown:d}),children:[(0,r.jsx)(p.a,{component:"span",mod:{rotate:!A.disableChevronRotation&&j,position:A.chevronPosition},...A.getStyles("chevron",{classNames:n,styles:a}),children:u||A.chevron}),(0,r.jsx)("span",{...A.getStyles("label",{classNames:n,styles:a}),children:h}),c&&(0,r.jsx)(p.a,{component:"span",mod:{"chevron-position":A.chevronPosition},...A.getStyles("icon",{classNames:n,styles:a}),children:c})]});return E?(0,r.jsx)(P,{...A.getStyles("itemTitle",{classNames:n,styles:a}),children:M}):M});A.displayName="@mantine/core/AccordionControl",A.classes=O;let j={},E=(0,d.P9)((e,t)=>{let{classNames:n,className:o,style:i,styles:a,vars:l,value:u,mod:c,...f}=(0,s.Y)("AccordionItem",j,e),d=g();return(0,r.jsx)(x,{value:{value:u},children:(0,r.jsx)(p.a,{ref:t,mod:[{active:d.isItemActive(u)},c],...d.getStyles("item",{className:o,classNames:n,styles:a,style:i,variant:d.variant}),...f})})});E.displayName="@mantine/core/AccordionItem",E.classes=O;var P=n(22599);let M={},C=(0,d.P9)((e,t)=>{let{classNames:n,className:o,style:i,styles:a,vars:l,children:u,...c}=(0,s.Y)("AccordionPanel",M,e),{value:f}=w(),p=g();return(0,r.jsx)(P.S,{ref:t,...p.getStyles("panel",{className:o,classNames:n,style:i,styles:a}),...c,in:p.isItemActive(f),transitionDuration:p.transitionDuration??200,role:"region",id:p.getRegionId(f),"aria-labelledby":p.getControlId(f),children:(0,r.jsx)("div",{...p.getStyles("content",{classNames:n,styles:a}),children:u})})});C.displayName="@mantine/core/AccordionPanel",C.classes=O;let k={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevron:(0,r.jsx)(v.U,{})},_=(0,c.V)((e,{transitionDuration:t,chevronSize:n,radius:r})=>({root:{"--accordion-transition-duration":void 0===t?void 0:`${t}ms`,"--accordion-chevron-size":void 0===n?void 0:(0,a.D)(n),"--accordion-radius":void 0===r?void 0:(0,u.nJ)(r)}}));function T(e){let t=(0,s.Y)("Accordion",k,e),{classNames:n,className:a,style:u,styles:c,unstyled:d,vars:h,children:g,multiple:v,value:m,defaultValue:b,onChange:x,id:w,loop:S,transitionDuration:A,disableChevronRotation:j,chevronPosition:E,chevronSize:P,order:M,chevron:C,variant:T,radius:I,...R}=t,D=(0,o.B)(w),[N,F]=(0,i.Z)({value:m,defaultValue:b,finalValue:v?[]:null,onChange:x}),B=(0,f.I)({name:"Accordion",classes:O,props:t,className:a,style:u,classNames:n,styles:c,unstyled:d,vars:h,varsResolver:_});return(0,r.jsx)(y,{value:{isItemActive:e=>Array.isArray(N)?N.includes(e):e===N,onChange:e=>{F(Array.isArray(N)?N.includes(e)?N.filter(t=>t!==e):[...N,e]:e===N?null:e)},getControlId:(0,l.r)(`${D}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:(0,l.r)(`${D}-panel`,"Accordion.Item component was rendered with invalid value or without value"),transitionDuration:A,disableChevronRotation:j,chevronPosition:E,order:M,chevron:C,loop:S,getStyles:B,variant:T,unstyled:d},children:(0,r.jsx)(p.a,{...B("root"),id:D,...R,variant:T,"data-accordion":!0,children:g})})}T.extend=e=>e,T.withProps=(0,d.LE)(T),T.classes=O,T.displayName="@mantine/core/Accordion",T.Item=E,T.Panel=C,T.Control=A,T.Chevron=v.U},45556:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","chart-bar","IconChartBar",[["path",{d:"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M4 20h14",key:"svg-3"}]])},45852:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},45895:(e,t,n)=>{var r=n(5549),o=n(24964),i=n(27288);e.exports=function(e,t){return i(o(e,t,r),e+"")}},46181:(e,t,n)=>{"use strict";n.d(t,{a:()=>O});var r=n(6029);n(55729);var o=n(76),i=n(5618),a=n(80616),l=n(37666),u=n(60481),c=n(43016),s=n(20158),f=n(48930);let[p,d]=(0,f.e)(),[h,y]=(0,f.e)();var g={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};let v={},m=(0,i.V)((e,{gap:t},{size:n})=>({group:{"--pg-gap":void 0!==t?(0,o.YC)(t):(0,o.YC)(n,"pg-gap")}})),b=(0,c.P9)((e,t)=>{let n=(0,a.Y)("PillGroup",v,e),{classNames:o,className:i,style:c,styles:s,unstyled:f,vars:p,size:y,disabled:b,...x}=n,w=d(),O=w?.size||y||void 0,S=(0,l.I)({name:"PillGroup",classes:g,props:n,className:i,style:c,classNames:o,styles:s,unstyled:f,vars:p,varsResolver:m,stylesCtx:{size:O},rootSelector:"group"});return(0,r.jsx)(h,{value:{size:O,disabled:b},children:(0,r.jsx)(u.a,{ref:t,size:O,...S("group"),...x})})});b.classes=g,b.displayName="@mantine/core/PillGroup";let x={variant:"default"},w=(0,i.V)((e,{radius:t},{size:n})=>({root:{"--pill-fz":(0,o.YC)(n,"pill-fz"),"--pill-height":(0,o.YC)(n,"pill-height"),"--pill-radius":void 0===t?void 0:(0,o.nJ)(t)}})),O=(0,c.P9)((e,t)=>{let n=(0,a.Y)("Pill",x,e),{classNames:o,className:i,style:c,styles:f,unstyled:p,vars:h,variant:v,children:m,withRemoveButton:b,onRemove:O,removeButtonProps:S,radius:A,size:j,disabled:E,mod:P,...M}=n,C=y(),k=d(),_=j||C?.size||void 0,T=k?.variant==="filled"?"contrast":v||"default",I=(0,l.I)({name:"Pill",classes:g,props:n,className:i,style:c,classNames:o,styles:f,unstyled:p,vars:h,varsResolver:w,stylesCtx:{size:_}});return(0,r.jsxs)(u.a,{component:"span",ref:t,variant:T,size:_,...I("root",{variant:T}),mod:[{"with-remove":b&&!E,disabled:E||C?.disabled},P],...M,children:[(0,r.jsx)("span",{...I("label"),children:m}),b&&(0,r.jsx)(s.J,{variant:"transparent",radius:A,tabIndex:-1,"aria-hidden":!0,unstyled:p,...S,...I("remove",{className:S?.className,style:S?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),S?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),O?.(),S?.onClick?.(e)}})]})});O.classes=g,O.displayName="@mantine/core/Pill",O.Group=b},46271:(e,t,n)=>{"use strict";n.d(t,{u:()=>_});var r=n(55729),o=n(98499),i=n.n(o),a=n(60449),l=n.n(a),u=n(50212),c=n(5688),s=n(3780),f=n(25599),p=n(35555),d=n(53645),h=n(27281),y=n(93780),g=n(32347),v=["viewBox"],m=["viewBox"],b=["ticks"];function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function j(e,t){for(var n=0;n0?this.props:h)),o<=0||a<=0||!y||!y.length)?null:r.createElement(s.W,{className:(0,u.A)("recharts-cartesian-axis",c),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),p.J.renderCallByParent(this.props))}}],n=[{key:"renderTickItem",value:function(e,t,n){return r.isValidElement(e)?r.cloneElement(e,t):i()(e)?e(t):r.createElement(f.E,w({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],t&&j(o.prototype,t),n&&j(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(r.Component);C(_,"displayName","CartesianAxis"),C(_,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"})},46554:(e,t,n)=>{"use strict";function r(e){return function(){return e}}n.d(t,{A:()=>r})},47122:(e,t,n)=>{"use strict";n.d(t,{h:()=>g});var r=n(55729),o=n(50212),i=n(2549),a=n(46271),l=n(1509);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.d(t,{R:()=>r});var r=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t}},47687:(e,t,n)=>{var r=n(12364),o=n(23356);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},47803:(e,t,n)=>{"use strict";n.d(t,{i:()=>u});let r=Math.PI,o=2*r,i=o-1e-6;function a(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return a;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t1e-6)if(Math.abs(f*u-c*s)>1e-6&&i){let d=n-a,h=o-l,y=u*u+c*c,g=Math.sqrt(y),v=Math.sqrt(p),m=i*Math.tan((r-Math.acos((y+p-(d*d+h*h))/(2*g*v)))/2),b=m/v,x=m/g;Math.abs(b-1)>1e-6&&this._append`L${e+b*s},${t+b*f}`,this._append`A${i},${i},0,0,${+(f*d>s*h)},${this._x1=e+x*u},${this._y1=t+x*c}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,a,l,u){if(e*=1,t*=1,n*=1,u=!!u,n<0)throw Error(`negative radius: ${n}`);let c=n*Math.cos(a),s=n*Math.sin(a),f=e+c,p=t+s,d=1^u,h=u?a-l:l-a;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,n&&(h<0&&(h=h%o+o),h>i?this._append`A${n},${n},0,1,${d},${e-c},${t-s}A${n},${n},0,1,${d},${this._x1=f},${this._y1=p}`:h>1e-6&&this._append`A${n},${n},0,${+(h>=r)},${d},${this._x1=e+n*Math.cos(l)},${this._y1=t+n*Math.sin(l)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n*=1}v${+r}h${-n}Z`}toString(){return this._}}function u(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new l(t)}l.prototype},48546:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},48877:(e,t,n)=>{var r=n(66581),o=n(16799),i=n(13920),a=n(23356);e.exports=function(e,t,n){if(!a(n))return!1;var l=typeof t;return("number"==l?!!(o(n)&&i(t,n.length)):"string"==l&&t in n)&&r(n[t],e)}},49109:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("filled","caret-up-filled","IconCaretUpFilled",[["path",{d:"M11.293 7.293a1 1 0 0 1 1.32 -.083l.094 .083l6 6l.083 .094l.054 .077l.054 .096l.017 .036l.027 .067l.032 .108l.01 .053l.01 .06l.004 .057l.002 .059l-.002 .059l-.005 .058l-.009 .06l-.01 .052l-.032 .108l-.027 .067l-.07 .132l-.065 .09l-.073 .081l-.094 .083l-.077 .054l-.096 .054l-.036 .017l-.067 .027l-.108 .032l-.053 .01l-.06 .01l-.057 .004l-.059 .002h-12c-.852 0 -1.297 -.986 -.783 -1.623l.076 -.084l6 -6z",key:"svg-0"}]])},49355:e=>{e.exports=function(e){return e.split("")}},49726:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,z:()=>a});var r=n(58905),o=n(41499);function i(){var e,t,n=(0,o.A)().unknown(void 0),a=n.domain,l=n.range,u=0,c=1,s=!1,f=0,p=0,d=.5;function h(){var n=a().length,r=c{var r=n(34024);e.exports=n(10656)(r)},51068:(e,t,n)=>{var r=n(97554);e.exports=function(e){return r(e)&&e!=+e}},52797:(e,t,n)=>{"use strict";n.d(t,{yp:()=>T,GG:()=>L,NE:()=>I,nZ:()=>R,xQ:()=>D});var r=n(55729),o=n(98499),i=n.n(o),a=n(64022),l=n.n(a),u=n(59513),c=n.n(u),s=n(83817),f=n.n(s),p=n(2390),d=n(50212),h=n(92224),y=n(93780);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return m(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],l=i[1];(0,r.useEffect)(function(){if(o.current&&o.current.getTotalLength)try{var e=o.current.getTotalLength();e&&l(e)}catch(e){}},[]);var u=n.x,c=n.y,s=n.upperWidth,f=n.lowerWidth,p=n.height,g=n.className,b=n.animationEasing,S=n.animationDuration,A=n.animationBegin,j=n.isUpdateAnimationActive;if(u!==+u||c!==+c||s!==+s||f!==+f||p!==+p||0===s&&0===f||0===p)return null;var E=(0,d.A)("recharts-trapezoid",g);return j?r.createElement(h.Ay,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:p,x:u,y:c},to:{upperWidth:s,lowerWidth:f,height:p,x:u,y:c},duration:S,animationEasing:b,isActive:j},function(e){var t=e.upperWidth,i=e.lowerWidth,l=e.height,u=e.x,c=e.y;return r.createElement(h.Ay,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:A,duration:S,easing:b},r.createElement("path",v({},(0,y.J9)(n,!0),{className:E,d:w(u,c,t,i,l),ref:o})))}):r.createElement("g",null,r.createElement("path",v({},(0,y.J9)(n,!0),{className:E,d:w(u,c,s,f,p)})))},A=n(11107),j=n(3780),E=n(54460),P=["option","shapeType","propTransformer","activeClassName","isActive"];function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,P);if((0,r.isValidElement)(n))t=(0,r.cloneElement)(n,k(k({},f),(0,r.isValidElement)(n)?n.props:n));else if(i()(n))t=n(f);else if(l()(n)&&!c()(n)){var p=(void 0===a?function(e,t){return k(k({},t),e)}:a)(n,f);t=r.createElement(_,{shapeType:o,elementProps:p})}else t=r.createElement(_,{shapeType:o,elementProps:f});return s?r.createElement(j.W,{className:void 0===u?"recharts-active-shape":u},t):t}function I(e,t){return null!=t&&"trapezoids"in e.props}function R(e,t){return null!=t&&"sectors"in e.props}function D(e,t){return null!=t&&"points"in e.props}function N(e,t){var n,r,o=e.x===(null==t||null==(n=t.labelViewBox)?void 0:n.x)||e.x===t.x,i=e.y===(null==t||null==(r=t.labelViewBox)?void 0:r.y)||e.y===t.y;return o&&i}function F(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function B(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function L(e){var t,n,r,o=e.activeTooltipItem,i=e.graphicalItem,a=e.itemData,l=(I(i,o)?t="trapezoids":R(i,o)?t="sectors":D(i,o)&&(t="points"),t),u=I(i,o)?null==(n=o.tooltipPayload)||null==(n=n[0])||null==(n=n.payload)?void 0:n.payload:R(i,o)?null==(r=o.tooltipPayload)||null==(r=r[0])||null==(r=r.payload)?void 0:r.payload:D(i,o)?o.payload:{},c=a.filter(function(e,t){var n=f()(u,e),r=i.props[l].filter(function(e){var t;return(I(i,o)?t=N:R(i,o)?t=F:D(i,o)&&(t=B),t)(e,o)}),a=i.props[l].indexOf(r[r.length-1]);return n&&t===a});return a.indexOf(c[c.length-1])}},53259:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});var r=function(e){return null};r.displayName="Cell"},53645:(e,t,n)=>{"use strict";n.d(t,{CG:()=>b,Dj:()=>x,Et:()=>d,F4:()=>v,NF:()=>g,_3:()=>p,eP:()=>w,lX:()=>m,sA:()=>f,vh:()=>h});var r=n(84450),o=n.n(r),i=n(51068),a=n.n(i),l=n(60449),u=n.n(l),c=n(97554),s=n.n(c),f=function(e){return 0===e?0:e>0?1:-1},p=function(e){return o()(e)&&e.indexOf("%")===e.length-1},d=function(e){return s()(e)&&!a()(e)},h=function(e){return d(e)||o()(e)},y=0,g=function(e){var t=++y;return"".concat(e||"").concat(t)},v=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!d(e)&&!o()(e))return r;if(p(e)){var l=e.indexOf("%");n=t*parseFloat(e.slice(0,l))/100}else n=+e;return a()(n)&&(n=r),i&&n>t&&(n=t),n},m=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},b=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r{"use strict";n.d(t,{i:()=>I});var r=n(55729),o=n(6797),i=n.n(o);let a=Math.cos,l=Math.sin,u=Math.sqrt,c=Math.PI,s=2*c,f={draw(e,t){let n=u(t/c);e.moveTo(n,0),e.arc(0,0,n,0,s)}},p=u(1/3),d=2*p,h=l(c/10)/l(7*c/10),y=l(s/10)*h,g=-a(s/10)*h,v=u(3),m=u(3)/2,b=1/u(12),x=(b/2+1)*3;var w=n(46554),O=n(47803);u(3),u(3);var S=n(50212),A=n(93780);function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var E=["type","size","sizeType"];function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,E)),{},{type:o,size:l,sizeType:c}),p=s.className,d=s.cx,h=s.cy,y=(0,A.J9)(s,!0);return d===+d&&h===+h&&l===+l?r.createElement("path",P({},y,{className:(0,S.A)("recharts-symbols",p),transform:"translate(".concat(d,", ").concat(h,")"),d:(t=k["symbol".concat(i()(o))]||f,(function(e,t){let n=null,r=(0,O.i)(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:(0,w.A)(e||f),t="function"==typeof t?t:(0,w.A)(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,w.A)(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,w.A)(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o})().type(t).size(T(l,c,o))())})):null};I.registerSymbol=function(e,t){k["symbol".concat(i()(e))]=t}},55426:(e,t,n)=>{"use strict";n.d(t,{u:()=>u});var r=n(55729),o=n(50212),i=n(93780),a=["children","width","height","viewBox","className","style","title","desc"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),y=c||{width:n,height:u,x:0,y:0},g=(0,o.A)("recharts-surface",s);return r.createElement("svg",l({},(0,i.J9)(h,!0,"svg"),{className:g,width:n,height:u,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),r.createElement("title",null,p),r.createElement("desc",null,d),t)}},56073:(e,t,n)=>{var r=n(50956);e.exports=function(e,t){var n;return r(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}},56121:(e,t,n)=>{e.exports=n(61847)()},56464:(e,t,n)=>{"use strict";n.d(t,{I:()=>q});var r=n(55729);function o(){}function i(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function a(e){this._context=e}function l(e){this._context=e}function u(e){this._context=e}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},l.prototype={areaStart:o,areaEnd:o,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:i(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:i(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class c{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function s(e){this._context=e}function f(e){this._context=e}function p(e){return new f(e)}s.prototype={areaStart:o,areaEnd:o,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e*=1,t*=1,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function d(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0);return((i<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs((i*o+a*r)/(r+o)))||0}function h(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function y(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,o+l*t,i-l,a-l*n,i,a)}function g(e){this._context=e}function v(e){this._context=new m(e)}function m(e){this._context=e}function b(e){this._context=e}function x(e){var t,n,r=e.length-1,o=Array(r),i=Array(r),a=Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(t=0,i[r-1]=(e[r]+o[r-1])/2;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var O=n(71947),S=n(46554),A=n(47803);function j(e){return e[0]}function E(e){return e[1]}function P(e,t){var n=(0,S.A)(!0),r=null,o=p,i=null,a=(0,A.i)(l);function l(l){var u,c,s,f=(l=(0,O.A)(l)).length,p=!1;for(null==r&&(i=o(s=a())),u=0;u<=f;++u)!(u=f;--p)l.point(v[p],m[p]);l.lineEnd(),l.areaEnd()}g&&(v[s]=+e(d,s,c),m[s]=+t(d,s,c),l.point(r?+r(d,s,c):v[s],n?+n(d,s,c):m[s]))}if(h)return l=null,h+""||null}function s(){return P().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?j:(0,S.A)(+e),t="function"==typeof t?t:void 0===t?(0,S.A)(0):(0,S.A)(+t),n="function"==typeof n?n:void 0===n?E:(0,S.A)(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,S.A)(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,S.A)(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,S.A)(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,S.A)(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,S.A)(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,S.A)(+e),c):n},c.lineX0=c.lineY0=function(){return s().x(e).y(t)},c.lineY1=function(){return s().x(e).y(n)},c.lineX1=function(){return s().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:(0,S.A)(!!e),c):o},c.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),c):a},c.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),c):i},c}var C=n(6797),k=n.n(C),_=n(98499),T=n.n(_),I=n(50212),R=n(27281),D=n(93780),N=n(53645);function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var t=1;t(u=(a=Math.ceil(p/7))>u?a+1:u+1)&&(i=u,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((u=c.length)-(i=s.length)<0&&(i=u,r=s,s=c,c=r),n=0;i;)n=(c[--i]=c[i]+s[i]+n)/1e7|0,c[i]%=1e7;for(n&&(c.unshift(n),++o),u=c.length;0==c[--u];)c.pop();return t.d=c,t.e=o,l?E(t,p):t}function v(e,t,n){if(e!==~~e||en)throw Error(c+e)}function m(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;te.e^this.s<0?1:-1;for(t=0,n=(r=this.d.length)<(o=e.d.length)?r:o;te.d[t]^this.s<0?1:-1;return r===o?0:r>o^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var e=this.d.length-1,t=(e-this.e)*7;if(e=this.d[e])for(;e%10==0;e/=10)t--;return t<0?0:t},y.dividedBy=y.div=function(e){return b(this,new this.constructor(e))},y.dividedToIntegerBy=y.idiv=function(e){var t=this.constructor;return E(b(this,new t(e),0,1),t.precision)},y.equals=y.eq=function(e){return!this.cmp(e)},y.exponent=function(){return w(this)},y.greaterThan=y.gt=function(e){return this.cmp(e)>0},y.greaterThanOrEqualTo=y.gte=function(e){return this.cmp(e)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(e){return 0>this.cmp(e)},y.lessThanOrEqualTo=y.lte=function(e){return 1>this.cmp(e)},y.logarithm=y.log=function(e){var t,n=this.constructor,r=n.precision,o=r+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(i))throw Error(u+"NaN");if(this.s<1)throw Error(u+(this.s?"NaN":"-Infinity"));return this.eq(i)?new n(0):(l=!1,t=b(A(this,o),A(e,o),o),l=!0,E(t,r))},y.minus=y.sub=function(e){return e=new this.constructor(e),this.s==e.s?P(this,e):g(this,(e.s=-e.s,e))},y.modulo=y.mod=function(e){var t,n=this.constructor,r=n.precision;if(!(e=new n(e)).s)throw Error(u+"NaN");return this.s?(l=!1,t=b(this,e,0,1).times(e),l=!0,this.minus(t)):E(new n(this),r)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return A(this)},y.negated=y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},y.plus=y.add=function(e){return e=new this.constructor(e),this.s==e.s?g(this,e):P(this,(e.s=-e.s,e))},y.precision=y.sd=function(e){var t,n,r;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(c+e);if(t=w(this)+1,n=7*(r=this.d.length-1)+1,r=this.d[r]){for(;r%10==0;r/=10)n--;for(r=this.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},y.squareRoot=y.sqrt=function(){var e,t,n,r,o,i,a,c=this.constructor;if(this.s<1){if(!this.s)return new c(0);throw Error(u+"NaN")}for(e=w(this),l=!1,0==(o=Math.sqrt(+this))||o==1/0?(((t=m(this.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=a=(n=c.precision)+3;;)if(r=(i=r).plus(b(this,i,a+2)).times(.5),m(i.d).slice(0,a)===(t=m(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(E(i,n+1,0),i.times(i).eq(this)){r=i;break}}else if("9999"!=t)break;a+=4}return l=!0,E(r,n)},y.times=y.mul=function(e){var t,n,r,o,i,a,u,c,s,f=this.constructor,p=this.d,d=(e=new f(e)).d;if(!this.s||!e.s)return new f(0);for(e.s*=this.s,n=this.e+e.e,(c=p.length)<(s=d.length)&&(i=p,p=d,d=i,a=c,c=s,s=a),i=[],r=a=c+s;r--;)i.push(0);for(r=s;--r>=0;){for(t=0,o=c+r;o>r;)u=i[o]+d[r]*p[o-r-1]+t,i[o--]=u%1e7|0,t=u/1e7|0;i[o]=(i[o]+t)%1e7|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,l?E(e,f.precision):e},y.toDecimalPlaces=y.todp=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(v(e,0,1e9),void 0===t?t=r.rounding:v(t,0,8),E(n,e+w(n)+1,t))},y.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=M(r,!0):(v(e,0,1e9),void 0===t?t=o.rounding:v(t,0,8),n=M(r=E(new o(r),e+1,t),!0,e+1)),n},y.toFixed=function(e,t){var n,r,o=this.constructor;return void 0===e?M(this):(v(e,0,1e9),void 0===t?t=o.rounding:v(t,0,8),n=M((r=E(new o(this),e+w(this)+1,t)).abs(),!1,e+w(r)+1),this.isneg()&&!this.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var e=this.constructor;return E(new e(this),w(this)+1,e.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(e){var t,n,r,o,a,c,s=this,p=s.constructor,d=+(e=new p(e));if(!e.s)return new p(i);if(!(s=new p(s)).s){if(e.s<1)throw Error(u+"Infinity");return s}if(s.eq(i))return s;if(r=p.precision,e.eq(i))return E(s,r);if(c=(t=e.e)>=(n=e.d.length-1),a=s.s,c){if((n=d<0?-d:d)<=0x1fffffffffffff){for(o=new p(i),t=Math.ceil(r/7+4),l=!1;n%2&&C((o=o.times(s)).d,t),0!==(n=f(n/2));)C((s=s.times(s)).d,t);return l=!0,e.s<0?new p(i).div(o):E(o,r)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,l=!1,o=e.times(A(s,r+12)),l=!0,(o=x(o)).s=a,o},y.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?(n=w(o),r=M(o,n<=i.toExpNeg||n>=i.toExpPos)):(v(e,1,1e9),void 0===t?t=i.rounding:v(t,0,8),n=w(o=E(new i(o),e,t)),r=M(o,e<=n||n<=i.toExpNeg,e)),r},y.toSignificantDigits=y.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(v(e,1,1e9),void 0===t?t=n.rounding:v(t,0,8)),E(new n(this),e,t)},y.toString=y.valueOf=y.val=y.toJSON=function(){var e=w(this),t=this.constructor;return M(this,e<=t.toExpNeg||e>=t.toExpPos)};var b=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%1e7|0,r=n/1e7|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]1;)e.shift()}return function(r,o,i,a){var l,c,s,f,p,d,h,y,g,v,m,b,x,O,S,A,j,P,M=r.constructor,C=r.s==o.s?1:-1,k=r.d,_=o.d;if(!r.s)return new M(r);if(!o.s)throw Error(u+"Division by zero");for(s=0,c=r.e-o.e,j=_.length,S=k.length,y=(h=new M(C)).d=[];_[s]==(k[s]||0);)++s;if(_[s]>(k[s]||0)&&--c,(b=null==i?i=M.precision:a?i+(w(r)-w(o))+1:i)<0)return new M(0);if(b=b/7+2|0,s=0,1==j)for(f=0,_=_[0],b++;(s1&&(_=e(_,f),k=e(k,f),j=_.length,S=k.length),O=j,v=(g=k.slice(0,j)).length;v=1e7/2&&++A;do f=0,(l=t(_,g,j,v))<0?(m=g[0],j!=v&&(m=1e7*m+(g[1]||0)),(f=m/A|0)>1?(f>=1e7&&(f=1e7-1),d=(p=e(_,f)).length,v=g.length,1==(l=t(p,g,d,v))&&(f--,n(p,j16)throw Error(s+w(e));if(!e.s)return new d(i);for(null==t?(l=!1,u=h):u=t,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),f+=5;for(u+=Math.log(p(2,f))/Math.LN10*2+5|0,n=r=o=new d(i),d.precision=u;;){if(r=E(r.times(e),u),n=n.times(++c),m((a=o.plus(b(r,n,u))).d).slice(0,u)===m(o.d).slice(0,u)){for(;f--;)o=E(o.times(o),u);return d.precision=h,null==t?(l=!0,E(o,h)):o}o=a}}function w(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function O(e,t,n){if(t>e.LN10.sd())throw l=!0,n&&(e.precision=n),Error(u+"LN10 precision limit exceeded");return E(new e(e.LN10),t)}function S(e){for(var t="";e--;)t+="0";return t}function A(e,t){var n,r,o,a,c,s,f,p,d,h=1,y=e,g=y.d,v=y.constructor,x=v.precision;if(y.s<1)throw Error(u+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new v(0);if(null==t?(l=!1,p=x):p=t,y.eq(10))return null==t&&(l=!0),O(v,p);if(v.precision=p+=10,r=(n=m(g)).charAt(0),!(15e14>Math.abs(a=w(y))))return f=O(v,p+2,x).times(a+""),y=A(new v(r+"."+n.slice(1)),p-10).plus(f),v.precision=x,null==t?(l=!0,E(y,x)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=m((y=y.times(e)).d)).charAt(0),h++;for(a=w(y),r>1?(y=new v("0."+n),a++):y=new v(r+"."+n.slice(1)),s=c=y=b(y.minus(i),y.plus(i),p),d=E(y.times(y),p),o=3;;){if(c=E(c.times(d),p),m((f=s.plus(b(c,new v(o),p))).d).slice(0,p)===m(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(O(v,p+2,x).times(a+""))),s=b(s,new v(h),p),v.precision=x,null==t?(l=!0,E(s,x)):s;s=f,o+=2}}function j(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,e.e=f((n=n-r-1)/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),rh||e.e<-h))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function E(e,t,n){var r,o,i,a,u,c,d,y,g=e.d;for(a=1,i=g[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=7,o=t,d=g[y=0];else{if((y=Math.ceil((r+1)/7))>=(i=g.length))return e;for(a=1,d=i=g[y];i>=10;i/=10)a++;r%=7,o=r-7+a}if(void 0!==n&&(u=d/(i=p(10,a-o-1))%10|0,c=t<0||void 0!==g[y+1]||d%i,c=n<4?(u||c)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||c||6==n&&(r>0?o>0?d/p(10,a-o):0:g[y-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return c?(i=w(e),g.length=1,t=t-i-1,g[0]=p(10,(7-t%7)%7),e.e=f(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==r?(g.length=y,i=1,y--):(g.length=y+1,i=p(10,7-r),g[y]=o>0?(d/p(10,a-o)%p(10,o)|0)*i:0),c)for(;;)if(0==y){1e7==(g[0]+=i)&&(g[0]=1,++e.e);break}else{if(g[y]+=i,1e7!=g[y])break;g[y--]=0,i=1}for(r=g.length;0===g[--r];)g.pop();if(l&&(e.e>h||e.e<-h))throw Error(s+w(e));return e}function P(e,t){var n,r,o,i,a,u,c,s,f,p,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),l?E(t,h):t;if(c=e.d,p=t.d,r=t.e,s=e.e,c=c.slice(),a=s-r){for((f=a<0)?(n=c,a=-a,u=p.length):(n=p,r=s,u=c.length),a>(o=Math.max(Math.ceil(h/7),u)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=c.length)<(u=p.length))&&(u=o),o=0;o0;--o)c[u++]=0;for(o=p.length;o>a;){if(c[--o]0?i=i.charAt(0)+"."+i.slice(1)+S(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+S(-o-1)+i,n&&(r=n-a)>0&&(i+=S(r))):o>=a?(i+=S(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+S(r))):((r=o+1)0&&(o+1===a&&(i+="."),i+=S(r))),e.s<0?"-"+i:i}function C(e,t){if(e.length>t)return e.length=t,!0}function k(e){if(!e||"object"!=typeof e)throw Error(u+"Object expected");var t,n,r,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(c+n+": "+r);if(void 0!==(r=e[n="LN10"]))if(r==Math.LN10)this[n]=new this(r);else throw Error(c+n+": "+r);return this}(a=function e(t){var n,r,o;function i(e){if(!(this instanceof i))return new i(e);if(this.constructor=i,e instanceof i){this.s=e.s,this.e=e.e,this.d=(e=e.d)?e.slice():e;return}if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)this.s=1;else if(e<0)e=-e,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(e===~~e&&e<1e7){this.e=0,this.d=[e];return}return j(this,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),this.s=-1):this.s=1,d.test(e))j(this,e);else throw Error(c+e)}if(i.prototype=y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=k,void 0===t&&(t={}),t)for(n=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];n{"use strict";n.d(t,{Q:()=>u});var r=n(32716),o=n(13297),i=n(2893),a=n(47122),l=n(83687),u=(0,r.gu)({chartName:"AreaChart",GraphicalChild:o.G,axisComponents:[{axisType:"xAxis",AxisComp:i.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:l.pr})},57140:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},57174:(e,t,n)=>{var r=n(83420),o=n(29496),i=n(68988),a=n(91544),l=n(48877);e.exports=function(e,t,n){var u=a(e)?r:o;return n&&l(e,t,n)&&(t=void 0),u(e,i(t,3))}},58905:(e,t,n)=>{"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function o(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}n.d(t,{C:()=>r,K:()=>o})},59513:(e,t,n)=>{var r=n(33573),o=n(3619);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},60449:(e,t,n)=>{var r=n(24127);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},61847:(e,t,n)=>{"use strict";var r=n(4140);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},63778:(e,t,n)=>{var r=n(57140),o=n(88274),i=n(25907),a=n(43092);e.exports=function(e){return i(e)?r(a(e)):o(e)}},64370:(e,t,n)=>{"use strict";n.d(t,{s:()=>I});var r=n(55729),o=n(98499),i=n.n(o),a=n(50212),l=n(7571),u=n(55426),c=n(54460),s=n(27281);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t');var x=t.inactive?d:t.color;return r.createElement("li",p({className:m,style:y,key:"legend-item-".concat(n)},(0,s.XC)(e.props,t,n)),r.createElement(u.u,{width:o,height:o,viewBox:h,style:g},e.renderIcon(t)),r.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},c?c(b,t,n):b))})}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,o=e.align;return t&&t.length?r.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?o:"left"}},this.renderItems()):null}}],function(e,t){for(var n=0;n1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?j({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,l=r.margin,u=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),j(j({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,o=t.width,i=t.height,a=t.wrapperStyle,l=t.payloadUniqBy,u=t.payload,c=j(j({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return r.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(t){e.wrapperNode=t}},function(e,t){if(r.isValidElement(e))return r.cloneElement(e,t);if("function"==typeof e)return r.createElement(e,t);t.ref;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,S);return r.createElement(b,n)}(n,j(j({},this.props),{},{payload:(0,w.s)(u,l,T)})))}}],n=[{key:"getWithHeight",value:function(e,t){var n=j(j({},this.defaultProps),e.props).layout;return"vertical"===n&&(0,x.Et)(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],t&&E(o.prototype,t),n&&E(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(r.PureComponent);k(I,"displayName","Legend"),k(I,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},65049:(e,t,n)=>{"use strict";n.d(t,{g:()=>c});var r=n(64370),o=n(1509),i=n(93780);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{u:()=>g});var r=n(55729),o=n(73403),i=n(3780),a=n(93780),l=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l),v=(0,a.J9)(g,!1);"x"===this.props.direction&&"number"!==h.type&&(0,o.A)(!1);var m=p.map(function(e){var o,a,l=d(e,f),p=l.x,g=l.y,m=l.value,b=l.errorVal;if(!b)return null;var x=[];if(Array.isArray(b)){var w=function(e){if(Array.isArray(e))return e}(b)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(b,2)||function(e,t){if(e){if("string"==typeof e)return s(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,2)}}(b,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();o=w[0],a=w[1]}else o=a=b;if("vertical"===n){var O=h.scale,S=g+t,A=S+u,j=S-u,E=O(m-o),P=O(m+a);x.push({x1:P,y1:A,x2:P,y2:j}),x.push({x1:E,y1:S,x2:P,y2:S}),x.push({x1:E,y1:A,x2:E,y2:j})}else if("horizontal"===n){var M=y.scale,C=p+t,k=C-u,_=C+u,T=M(m-o),I=M(m+a);x.push({x1:k,y1:I,x2:_,y2:I}),x.push({x1:C,y1:T,x2:C,y2:I}),x.push({x1:k,y1:T,x2:_,y2:T})}return r.createElement(i.W,c({className:"recharts-errorBar",key:"bar-".concat(x.map(function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))},v),x.map(function(e){return r.createElement("line",c({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))}))});return r.createElement(i.W,{className:"recharts-errorBars"},m)}}],function(e,t){for(var n=0;n{var r=n(38302),o=n(2882),i=n(91994);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},67290:(e,t,n)=>{var r=n(6802),o=n(28469),i=n(20764);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},67872:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","arrow-down","IconArrowDown",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]])},68668:(e,t,n)=>{var r=n(66678);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},68988:(e,t,n)=>{var r=n(67290),o=n(10931),i=n(5549),a=n(91544),l=n(63778);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):l(e)}},70930:e=>{e.exports=function(e,t){return e>t}},71947:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}n.d(t,{A:()=>r}),Array.prototype.slice},73403:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});function r(e,t){if(!e)throw Error("Invariant failed")}},75115:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l});var r=n(30988);function o(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}var i=n(28816);function a(e,t){var n=t-e;return n?function(t){return e+t*n}:(0,i.A)(isNaN(e)?t:e)}let l=function e(t){var n,o=1==(n=+t)?a:function(e,t){var r,o,a;return t-e?(r=e,o=t,r=Math.pow(r,a=n),o=Math.pow(o,a)-r,a=1/a,function(e){return Math.pow(r+e*o,a)}):(0,i.A)(isNaN(e)?t:e)};function l(e,t){var n=o((e=(0,r.Qh)(e)).r,(t=(0,r.Qh)(t)).r),i=o(e.g,t.g),l=o(e.b,t.b),u=a(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=l(t),e.opacity=u(t),e+""}}return l.gamma=e,l}(1);function u(e){return function(t){var n,o,i=t.length,a=Array(i),l=Array(i),u=Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],l=r>0?e[r-1]:2*i-a,u=r{var r=n(38302),o=n(68988),i=n(98888),a=Math.max;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return -1;var u=null==n?0:i(n);return u<0&&(u=a(l+u,0)),r(e,o(t,3),u)}},78383:e=>{e.exports=function(){}},78895:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j});var r=n(55729),o=n(38822),i=n.n(o),a=n(23356),l=n.n(a),u=n(98499),c=n.n(u),s=n(16419),f=n.n(s),p=n(35555),d=n(3780),h=n(93780),y=n(1509);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v=["valueAccessor"],m=["data","dataKey","clockWise","id","textBreakAll"];function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var A=function(e){return Array.isArray(e.value)?f()(e.value):e.value};function j(e){var t=e.valueAccessor,n=void 0===t?A:t,o=S(e,v),a=o.data,l=o.dataKey,u=o.clockWise,c=o.id,s=o.textBreakAll,f=S(o,m);return a&&a.length?r.createElement(d.W,{className:"recharts-label-list"},a.map(function(e,t){var o=i()(l)?n(e,t):(0,y.kr)(e&&e.payload,l),a=i()(c)?{}:{id:"".concat(c,"-").concat(t)};return r.createElement(p.J,x({},(0,h.J9)(e,!0),f,a,{parentViewBox:e.parentViewBox,value:o,textBreakAll:s,viewBox:p.J.parseViewBox(i()(u)?e:O(O({},e),{},{clockWise:u})),key:"label-".concat(t),index:t}))})):null}j.displayName="LabelList",j.renderCallByParent=function(e,t){var n,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&o&&!e.label)return null;var i=e.children,a=(0,h.aS)(i,j).map(function(e,n){return(0,r.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});return o?[(n=e.label,!n?null:!0===n?r.createElement(j,{key:"labelList-implicit",data:t}):r.isValidElement(n)||c()(n)?r.createElement(j,{key:"labelList-implicit",data:t,content:n}):l()(n)?r.createElement(j,x({data:t},n,{key:"labelList-implicit"})):null)].concat(function(e){if(Array.isArray(e))return b(e)}(a)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return b(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,void 0)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):a}},79220:(e,t,n)=>{"use strict";n.d(t,{Kv:()=>i,N4:()=>a});var r=n(55729),o=n(39696);function i(e,t){var n,o,i;let a;return e?"function"==typeof(o=n=e)&&(a=Object.getPrototypeOf(o)).prototype&&a.prototype.isReactComponent||"function"==typeof n||"object"==typeof(i=n)&&"symbol"==typeof i.$$typeof&&["react.memo","react.forward_ref"].includes(i.$$typeof.description)?r.createElement(e,t):e:null}function a(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState(()=>({current:(0,o.ZR)(t)})),[i,a]=r.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...i,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}},79860:(e,t,n)=>{var r=n(31736),o=n(78383),i=n(48546);e.exports=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o},82694:e=>{e.exports=function(e,t){return e.has(t)}},83420:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}},83687:(e,t,n)=>{"use strict";n.d(t,{P2:()=>w,bx:()=>O,pr:()=>v,sl:()=>m,vh:()=>b});var r=n(1905),o=n.n(r),i=n(57174),a=n.n(i),l=n(1509),u=n(93780),c=n(53645),s=n(14693);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n0&&(M=Math.min((e||0)-(C[t-1]||0),M))}),Number.isFinite(M)){var k=M/P,_="vertical"===b.layout?n.height:n.width;if("gap"===b.padding&&(u=k*_/2),"no-gap"===b.padding){var T=(0,c.F4)(e.barCategoryGap,k*_),I=k*_/2;u=I-T-(I-T)/_*T}}}s="xAxis"===r?[n.left+(S.left||0)+(u||0),n.left+n.width-(S.right||0)-(u||0)]:"yAxis"===r?"horizontal"===f?[n.top+n.height-(S.bottom||0),n.top+(S.top||0)]:[n.top+(S.top||0)+(u||0),n.top+n.height-(S.bottom||0)-(u||0)]:b.range,j&&(s=[s[1],s[0]]);var R=(0,l.W7)(b,o,v),D=R.scale,N=R.realScaleType;D.domain(w).range(s),(0,l.YB)(D);var F=(0,l.w7)(D,h(h({},b),{},{realScaleType:N}));"xAxis"===r?(m="top"===x&&!A||"bottom"===x&&A,p=n.left,d=g[E]-m*b.height):"yAxis"===r&&(m="left"===x&&!A||"right"===x&&A,p=g[E]-m*b.width,d=n.top);var B=h(h(h({},b),F),{},{realScaleType:N,x:p,y:d,scale:D,width:"xAxis"===r?n.width:b.width,height:"yAxis"===r?n.height:b.height});return B.bandSize=(0,l.Hj)(B,F),b.hide||"xAxis"!==r?b.hide||(g[E]+=(m?-1:1)*B.width):g[E]+=(m?-1:1)*B.height,h(h({},i),{},y({},a,B))},{})},m=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},b=function(e){return m({x:e.x1,y:e.y1},{x:e.x2,y:e.y2})},x=function(){var e,t;function n(e){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");this.scale=e}return e=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],t=[{key:"create",value:function(e){return new n(e)}}],e&&p(n.prototype,e),t&&p(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();y(x,"EPS",1e-4);var w=function(e){var t=Object.keys(e).reduce(function(t,n){return h(h({},t),{},y({},n,x.create(e[n])))},{});return h(h({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return o()(e,function(e,n){return t[n].apply(e,{bandAware:r,position:i})})},isInRange:function(e){return a()(e,function(e,n){return t[n].isInRange(e)})}})},O=function(e){var t=e.width,n=e.height,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(r%180+180)%180*Math.PI/180,i=Math.atan(n/t);return Math.abs(o>i&&o{var r=n(7855);e.exports=function(e,t){return r(e,t)}},84450:(e,t,n)=>{var r=n(33573),o=n(91544),i=n(3619);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},84905:(e,t,n)=>{var r=n(19962),o=n(13917),i=n(5549);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},86152:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r{var r=n(17877),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},87383:(e,t,n)=>{"use strict";n.d(t,{jG:()=>l});var r=n(18896),o=n.n(r),i=n(55729);"function"==typeof SuppressedError&&SuppressedError;var a={Link:"link",Button:"button"};function l(){return{CSVDownloader:function(){var e=this,t=function(t){var n=t.children,r=t.data,l=void 0===r?{}:r,u=t.filename,c=t.type,s=void 0===c?a.Link:c,f=t.style,p=void 0===f?{}:f,d=t.className,h=void 0===d?"":d,y=t.bom,g=void 0!==y&&y,v=t.config,m=void 0===v?{}:v,b=function(){var t,n,r;return t=void 0,n=void 0,r=function(){var e,t,n,r,i,a;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(u){var c=[l,u];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]{"use strict";n.d(t,{T:()=>j});var r=n(55729),o=n(98499),i=n.n(o),a=n(50212),l=n(3780),u=n(35555),c=n(83687),s=n(47374),f=n(53645),p=n(7571),d=n(2390),h=n(93780);function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=n(24127);e.exports=function(e){return function(t){return r(t,e)}}},88859:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});var r={isSsr:!("u">typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return r[e]},set:function(e,t){if("string"==typeof e)r[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach(function(t){r[t]=e[t]})}}}},90199:e=>{var t="\\ud800-\\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+n+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[o,i,a].join("|")+")"+u+l+")*",s=RegExp(r+"(?="+r+")|"+("(?:"+[o+n+"?",n,i,a,"["+t+"]"].join("|"))+")"+(u+l+c),"g");e.exports=function(e){return e.match(s)||[]}},90505:(e,t,n)=>{"use strict";n.d(t,{A3:()=>f,Pu:()=>s});var r=n(88859);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||r.m.isSsr)return{width:0,height:0};var o=(Object.keys(t=a({},n)).forEach(function(e){t[e]||delete t[e]}),t),i=JSON.stringify({text:e,copyStyle:o});if(l.widthCache[i])return l.widthCache[i];try{var s=document.getElementById(c);s||((s=document.createElement("span")).setAttribute("id",c),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var f=a(a({},u),o);Object.assign(s.style,f),s.textContent="".concat(e);var p=s.getBoundingClientRect(),d={width:p.width,height:p.height};return l.widthCache[i]=d,++l.cacheCount>2e3&&(l.cacheCount=0,l.widthCache={}),d}catch(e){return{width:0,height:0}}},f=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}}},90843:(e,t,n)=>{var r=n(50515);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),l=void 0!==t,u=null===t,c=t==t,s=r(t);if(!u&&!s&&!a&&e>t||a&&l&&c&&!u&&!s||o&&l&&c||!n&&c||!i)return 1;if(!o&&!a&&!s&&e{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},91994:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r{"use strict";n.d(t,{E:()=>u});var r=n(32716),o=n(14693),i=n(2893),a=n(47122),l=n(83687),u=(0,r.gu)({chartName:"BarChart",GraphicalChild:o.y,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:i.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:l.pr})},92224:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>eN});var r=n(55729),o=n(56121),i=n.n(o),a=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty;function c(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function s(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,i=o.get(t),a=o.get(n);if(i&&a)return i===n&&a===t;o.set(t,n),o.set(n,t);var l=e(t,n,r);return o.delete(t),o.delete(n),l}}function f(e){return a(e).concat(l(e))}var p=Object.hasOwn||function(e,t){return u.call(e,t)};function d(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var h="_owner",y=Object.getOwnPropertyDescriptor,g=Object.keys;function v(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function m(e,t){return d(e.getTime(),t.getTime())}function b(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.entries(),l=0;(r=a.next())&&!r.done;){for(var u=t.entries(),c=!1,s=0;(o=u.next())&&!o.done;){var f=r.value,p=f[0],d=f[1],h=o.value,y=h[0],g=h[1];!c&&!i[s]&&(c=n.equals(p,y,l,s,e,t,n)&&n.equals(d,g,p,y,e,t,n))&&(i[s]=!0),s++}if(!c)return!1;l++}return!0}function x(e,t,n){var r,o=g(e),i=o.length;if(g(t).length!==i)return!1;for(;i-- >0;)if((r=o[i])===h&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!p(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function w(e,t,n){var r,o,i,a=f(e),l=a.length;if(f(t).length!==l)return!1;for(;l-- >0;)if((r=a[l])===h&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!p(t,r)||!n.equals(e[r],t[r],r,r,e,t,n)||(o=y(e,r),i=y(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable)))return!1;return!0}function O(e,t){return d(e.valueOf(),t.valueOf())}function S(e,t){return e.source===t.source&&e.flags===t.flags}function A(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.values();(r=a.next())&&!r.done;){for(var l=t.values(),u=!1,c=0;(o=l.next())&&!o.done;)!u&&!i[c]&&(u=n.equals(r.value,o.value,r.value,o.value,e,t,n))&&(i[c]=!0),c++;if(!u)return!1}return!0}function j(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var E=Array.isArray,P="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,M=Object.assign,C=Object.prototype.toString.call.bind(Object.prototype.toString),k=_();function _(e){void 0===e&&(e={});var t,n,r,o,i,a,l,u,f,p=e.circular,d=e.createInternalComparator,h=e.createState,y=e.strict,g=(n=(t=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?w:v,areDatesEqual:m,areMapsEqual:r?c(b,w):b,areObjectsEqual:r?w:x,arePrimitiveWrappersEqual:O,areRegExpsEqual:S,areSetsEqual:r?c(A,w):A,areTypedArraysEqual:r?w:j};if(n&&(o=M({},o,n(o))),t){var i=s(o.areArraysEqual),a=s(o.areMapsEqual),l=s(o.areObjectsEqual),u=s(o.areSetsEqual);o=M({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:l,areSetsEqual:u})}return o}(e)).areArraysEqual,r=t.areDatesEqual,o=t.areMapsEqual,i=t.areObjectsEqual,a=t.arePrimitiveWrappersEqual,l=t.areRegExpsEqual,u=t.areSetsEqual,f=t.areTypedArraysEqual,function(e,t,c){if(e===t)return!0;if(null==e||null==t||"object"!=typeof e||"object"!=typeof t)return e!=e&&t!=t;var s=e.constructor;if(s!==t.constructor)return!1;if(s===Object)return i(e,t,c);if(E(e))return n(e,t,c);if(null!=P&&P(e))return f(e,t,c);if(s===Date)return r(e,t,c);if(s===RegExp)return l(e,t,c);if(s===Map)return o(e,t,c);if(s===Set)return u(e,t,c);var p=C(e);return"[object Date]"===p?r(e,t,c):"[object RegExp]"===p?l(e,t,c):"[object Map]"===p?o(e,t,c):"[object Set]"===p?u(e,t,c):"[object Object]"===p?"function"!=typeof e.then&&"function"!=typeof t.then&&i(e,t,c):"[object Arguments]"===p?i(e,t,c):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&a(e,t,c)}),k=d?d(g):function(e,t,n,r,o,i,a){return g(e,t,a)};return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(e,a){var l=r(),u=l.cache;return n(e,a,{cache:void 0===u?t?new WeakMap:void 0:u,equals:o,meta:l.meta,strict:i})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return n(e,t,a)}}({circular:void 0!==p&&p,comparator:g,createState:h,equals:k,strict:void 0!==y&&y})}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(o){if(n<0&&(n=o),o-n>t)e(o),n=-1;else{var i;i=r,"u">typeof requestAnimationFrame&&requestAnimationFrame(i)}})}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),4!==l.length);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(s,4)||H(s,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();i=f[0],a=f[1],l=f[2],u=f[3]}else U(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}U([i,l,a,u].every(function(e){return"number"==typeof e&&e>=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var p=q(i,l),d=q(a,u),h=(e=i,t=l,function(n){var r;return W([].concat(function(e){if(Array.isArray(e))return G(e)}(r=$(e,t).map(function(e,t){return e*t}).slice(1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||H(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),n)}),y=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o,i=p(n)-t,a=h(n);if(1e-4>Math.abs(i-t)||a<1e-4)break;n=(o=n-i/a)>1?1:o<0?0:o}return d(n)};return y.isStepper=!1,y},K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,l=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,l=r*a/1e3+e;return 1e-4>Math.abs(l-t)&&1e-4>Math.abs(i)?[t,0]:[l,i]};return l.isStepper=!0,l.dt=a,l},Y=function(){for(var e=arguments.length,t=Array(e),n=0;ntypeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||en(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ee(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(r,2)||en(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1];return ee(ee({},n),{},{from:i,velocity:a})}return n},n);return r<1?z(function(e,t){return ei(t)?ee(ee({},t),{},{velocity:eo(t.velocity,o[e].velocity,r),from:eo(t.from,o[e].from,r)}):t},n):e(t,o,r-1)};let el=function(e,t,n,r,o){var i,a,l=[Object.keys(e),Object.keys(t)].reduce(function(e,t){return e.filter(function(e){return t.includes(e)})}),u=l.reduce(function(n,r){return ee(ee({},n),{},et({},r,[e[r],t[r]]))},{}),c=l.reduce(function(n,r){return ee(ee({},n),{},et({},r,{from:e[r],velocity:0,to:t[r]}))},{}),s=-1,f=function(){return null};return f=n.isStepper?function(r){i||(i=r);var a=(r-i)/n.dt;c=ea(n,c,a),o(ee(ee(ee({},e),t),z(function(e,t){return t.from},c))),i=r,Object.values(c).filter(ei).length&&(s=requestAnimationFrame(f))}:function(i){a||(a=i);var l=(i-a)/r,c=z(function(e,t){return eo.apply(void 0,Z(t).concat([n(l)]))},u);if(o(ee(ee(ee({},e),t),c)),l<1)s=requestAnimationFrame(f);else{var p=z(function(e,t){return eo.apply(void 0,Z(t).concat([n(1)]))},u);o(ee(ee(ee({},e),t),p))}},function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(s)}}};function eu(e){return(eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ec=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function es(e){return function(e){if(Array.isArray(e))return ef(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ef(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ef(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ef(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?n[o-1]:r,p=c||Object.keys(u);if("function"==typeof l||"spring"===l)return[].concat(es(e),[t.runJSAnimation.bind(t,{from:f.style,to:u,duration:i,easing:l}),i]);var d=V(p,i,l),h=ed(ed(ed({},f.style),u),{},{transition:d});return[].concat(es(e),[h,i,s]).filter(L)},[a,Math.max(void 0===l?0:l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=(t=function(){return null},n=!1,r=function e(r){if(!n){if(Array.isArray(r)){if(!r.length)return;var o=function(e){if(Array.isArray(e))return e}(r)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return R(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,void 0)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o.slice(1);return"number"==typeof i?void T(e.bind(null,a),i):(e(i),void T(e.bind(null,a)))}"object"===I(r)&&t(r),"function"==typeof r&&r()}},{stop:function(){n=!0},start:function(e){n=!1,r(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}));var t,n,r,o=e.begin,i=e.duration,a=e.attributeName,l=e.to,u=e.easing,c=e.onAnimationStart,s=e.onAnimationEnd,f=e.steps,p=e.children,d=this.manager;if(this.unSubscribe=d.subscribe(this.handleStyleChange),"function"==typeof u||"function"==typeof p||"spring"===u)return void this.runJSAnimation(e);if(f.length>1)return void this.runStepAnimation(e);var h=a?eh({},a,l):l,y=V(Object.keys(h),i,u);d.start([c,o,ed(ed({},h),{},{transition:y}),i,s])}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration),o=(e.attributeName,e.easing,e.isActive),i=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ec)),a=r.Children.count(t),l=this.state.style;if("function"==typeof t)return t(l);if(!o||0===a||n<=0)return t;var u=function(e){var t=e.props,n=t.style,o=t.className;return(0,r.cloneElement)(e,ed(ed({},i),{},{style:ed(ed({},void 0===n?{}:n),l),className:o}))};return 1===a?u(r.Children.only(t)):r.createElement("div",null,r.Children.map(t,function(e){return u(e)}))}}],function(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)},0):Number.isFinite(n)?n:0},eR=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&eM(i,e);var t,n,o=(t=function(){if("u"=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,eS));return r.createElement(eO.Ay,ej({},o,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return r.createElement(ex,e.state,r.Children.only(n))})}}],function(e,t){for(var n=0;n{"use strict";n.d(t,{e:()=>k});var r=n(55729),o=n(98499),i=n.n(o),a=n(13731),l=n.n(a),u=n(50212),c=n(3780),s=n(35555),f=n(47374),p=n(53645),d=n(83687),h=n(7571),y=n(93780),g=n(2549);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(A,2)||function(e,t){if(e){if("string"==typeof e)return j(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,2)}}(A,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),C=E[0],k=C.x,_=C.y,T=E[1],I=T.x,R=T.y,D=O(O({clipPath:(0,f.R)(e,"hidden")?"url(#".concat(b,")"):void 0},(0,y.J9)(e,!0)),{},{x1:k,y1:_,x2:I,y2:R});return r.createElement(c.W,{className:(0,u.A)("recharts-reference-line",v)},P(l,D),s.J.renderCallByParent(e,(0,d.vh)({x1:k,y1:_,x2:I,y2:R})))}var k=function(e){var t;function n(){var e,t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=b(e),function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,m()?Reflect.construct(e,t||[],b(this).constructor):e.apply(this,t))}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&x(n,e),t=[{key:"render",value:function(){return r.createElement(C,this.props)}}],function(e,t){for(var n=0;n{"use strict";n.d(t,{s:()=>l});var r=n(831),o=n.n(r),i=n(98499),a=n.n(i);function l(e,t,n){return!0===t?o()(e,n):a()(t)?o()(e,t):e}},93733:(e,t,n)=>{var r=n(50956),o=n(16799);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},93780:(e,t,n)=>{"use strict";n.d(t,{AW:()=>B,BU:()=>M,J9:()=>I,Me:()=>C,Mn:()=>S,OV:()=>R,X_:()=>F,aS:()=>P,ee:()=>N,sT:()=>_});var r=n(60449),o=n.n(r),i=n(38822),a=n.n(i),l=n(84450),u=n.n(l),c=n(98499),s=n.n(c),f=n(23356),p=n.n(f),d=n(55729),h=n(16878),y=n(53645),g=n(5688),v=n(27281),m=["children"],b=["children"];function x(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var O={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},S=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},A=null,j=null,E=function e(t){if(t===A&&Array.isArray(j))return j;var n=[];return d.Children.forEach(t,function(t){a()(t)||((0,h.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),j=n,A=t,n};function P(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return S(e)}):[S(t)],E(e).forEach(function(e){var t=o()(e,"type.displayName")||o()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)}),n}function M(e,t){var n=P(e,t);return n&&n[0]}var C=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!!(0,y.Et)(n)&&!(n<=0)&&!!(0,y.Et)(r)&&!(r<=0)},k=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],_=function(e){return e&&"object"===w(e)&&"clipDot"in e},T=function(e,t,n,r){var o,i=null!=(o=null===v.VU||void 0===v.VU?void 0:v.VU[r])?o:[];return!s()(e)&&(r&&i.includes(t)||v.QQ.includes(t))||n&&v.j2.includes(t)},I=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,d.isValidElement)(e)&&(r=e.props),!p()(r))return null;var o={};return Object.keys(r).forEach(function(e){var i;T(null==(i=r)?void 0:i[e],e,t,n)&&(o[e]=r[e])}),o},R=function e(t,n){if(t===n)return!0;var r=d.Children.count(t);if(r!==d.Children.count(n))return!1;if(0===r)return!0;if(1===r)return D(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o=0)n.push(e);else if(e){var i=S(e.type),a=t[i]||{},l=a.handler,c=a.once;if(l&&(!c||!r[i])){var s=l(e,i,o);n.push(s),r[i]=!0}}}),n},F=function(e){var t=e&&e.type;return t&&O[t]?O[t]:null},B=function(e,t){return E(t).indexOf(e)}},93803:(e,t,n)=>{var r=n(88601),o=n(68988),i=n(93733),a=n(91544);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},95099:(e,t,n)=>{"use strict";n.d(t,{q:()=>l});var r=n(28171),o=n(43379),i=class extends r.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,o.PL)()},t)}getOptimisticResult(e){return e.behavior=(0,o.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:l,isRefetchError:u}=r,c=n.fetchMeta?.fetchMore?.direction,s=l&&"forward"===c,f=i&&"forward"===c,p=l&&"backward"===c,d=i&&"backward"===c;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,o.rB)(t,n.data),hasPreviousPage:(0,o.RQ)(t,n.data),isFetchNextPageError:s,isFetchingNextPage:f,isFetchPreviousPageError:p,isFetchingPreviousPage:d,isRefetchError:u&&!s&&!p,isRefetching:a&&!f&&!d}}},a=n(34185);function l(e,t){return(0,a.t)(e,i,t)}},95486:(e,t,n)=>{var r=n(2603),o=n(9819),i=n(18053),a=n(60567);e.exports=function(e){return function(t){var n=o(t=a(t))?i(t):void 0,l=n?n[0]:t.charAt(0),u=n?r(n,1).join(""):t.slice(1);return l[e]()+u}}},95801:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw TypeError("The listener must be a function");var l=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],l]:e._events[u].push(l):(e._events[u]=l,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),l.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=Array(i);o{var r=n(15051),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var u=1&n,c=r(e),s=c.length;if(s!=r(t).length&&!u)return!1;for(var f=s;f--;){var p=c[f];if(!(u?p in t:o.call(t,p)))return!1}var d=l.get(e),h=l.get(t);if(d&&h)return d==t&&h==e;var y=!0;l.set(e,t),l.set(t,e);for(var g=u;++f{var r=n(33573),o=n(3619);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},97767:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","arrow-up","IconArrowUp",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]])},98501:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{var r=n(11061);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/9979-25cce956b8228ba9.js b/out/_next/static/chunks/9979-25cce956b8228ba9.js deleted file mode 100644 index cb6a37c..0000000 --- a/out/_next/static/chunks/9979-25cce956b8228ba9.js +++ /dev/null @@ -1,4 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9979],{831:(e,t,n)=>{var r=n(68988),o=n(22180);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},1509:(e,t,n)=>{"use strict";n.d(t,{s0:()=>rx,gH:()=>rg,YB:()=>rk,HQ:()=>rM,xi:()=>r_,Hj:()=>r$,BX:()=>rb,tA:()=>rm,DW:()=>rL,y2:()=>rB,nb:()=>rF,PW:()=>rj,Ay:()=>ry,vf:()=>rS,Mk:()=>rV,Ps:()=>rv,Mn:()=>rD,kA:()=>rz,Rh:()=>rE,w7:()=>rN,zb:()=>rq,kr:()=>rh,_L:()=>rA,KC:()=>rW,A1:()=>rO,W7:()=>rC,AQ:()=>rG,_f:()=>rT});var r,o,i,a,l,u,s,c={};n.r(c),n.d(c,{scaleBand:()=>f.A,scaleDiverging:()=>function e(){var t=Y(nd()(_));return t.copy=function(){return nc(t,e())},B.K.apply(t,arguments)},scaleDivergingLog:()=>function e(){var t=ei(nd()).domain([.1,1,10]);return t.copy=function(){return nc(t,e()).base(t.base())},B.K.apply(t,arguments)},scaleDivergingPow:()=>nh,scaleDivergingSqrt:()=>ny,scaleDivergingSymlog:()=>function e(){var t=eu(nd());return t.copy=function(){return nc(t,e()).constant(t.constant())},B.K.apply(t,arguments)},scaleIdentity:()=>function e(t){var n;function r(e){return null==e||isNaN(e*=1)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,C),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,C):[0,1],Y(r)},scaleImplicit:()=>es.h,scaleLinear:()=>J,scaleLog:()=>function e(){let t=ei(N()).domain([1,10]);return t.copy=()=>D(t,e()).base(t.base()),B.C.apply(t,arguments),t},scaleOrdinal:()=>es.A,scalePoint:()=>f.z,scalePow:()=>eh,scaleQuantile:()=>function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=Array(t-1);++e=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(n(e[i+1],i+1,e)-a)*(o-i)}}(n,e/t);return a}function a(e){return null==e||isNaN(e*=1)?t:r[j(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],tfunction e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function l(e){return null!=e&&e<=e?a[j(i,e,0,o)]:t}function u(){var e=-1;for(i=Array(o);++e=o?[i[o-1],r]:[i[t-1],i[t]]},l.unknown=function(e){return arguments.length&&(t=e),l},l.thresholds=function(){return i.slice()},l.copy=function(){return e().domain([n,r]).range(a).unknown(t)},B.C.apply(Y(l),arguments)},scaleRadial:()=>function e(){var t,n=F(),r=[0,1],o=!1;function i(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:o?Math.round(i):i}return i.invert=function(e){return n.invert(eg(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,C)).map(eg)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},B.C.apply(i,arguments),Y(i)},scaleSequential:()=>function e(){var t=Y(ns()(_));return t.copy=function(){return nc(t,e())},B.K.apply(t,arguments)},scaleSequentialLog:()=>function e(){var t=ei(ns()).domain([1,10]);return t.copy=function(){return nc(t,e()).base(t.base())},B.K.apply(t,arguments)},scaleSequentialPow:()=>nf,scaleSequentialQuantile:()=>function e(){var t=[],n=_;function r(e){if(null!=e&&!isNaN(e*=1))return n((j(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n*=1)||t.push(n);return t.sort(b),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(function(e,t,n){if(!(!(r=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t*=1)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r*=1)>=r&&(yield r)}}(e,void 0))).length)||isNaN(t*=1))){if(t<=0||r<2)return em(e);if(t>=1)return ev(e);var r,o=(r-1)*t,i=Math.floor(o),a=ev((function e(t,n,r=0,o=1/0,i){if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),o=Math.floor(Math.min(t.length-1,o)),!(r<=n&&n<=o))return t;for(i=void 0===i?eb:function(e=b){if(e===b)return eb;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,n)=>{let r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(i);o>r;){if(o-r>600){let a=o-r+1,l=n-r+1,u=Math.log(a),s=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*s*(a-s)/a)*(l-a/2<0?-1:1),f=Math.max(r,Math.floor(n-l*s/a+c)),p=Math.min(o,Math.floor(n+(a-l)*s/a+c));e(t,n,f,p,i)}let a=t[n],l=r,u=o;for(ex(t,r,n),i(t[o],a)>0&&ex(t,r,o);li(t[l],a);)++l;for(;i(t[u],a)>0;)--u}0===i(t[r],a)?ex(t,r,u):ex(t,++u,o),u<=n&&(r=u+1),n<=u&&(o=u-1)}return t})(e,i).subarray(0,i+1));return a+(em(e.subarray(i+1))-a)*(o-i)}})(t,r/e))},r.copy=function(){return e(n).domain(t)},B.K.apply(r,arguments)},scaleSequentialSqrt:()=>np,scaleSequentialSymlog:()=>function e(){var t=eu(ns());return t.copy=function(){return nc(t,e()).constant(t.constant())},B.K.apply(t,arguments)},scaleSqrt:()=>ey,scaleSymlog:()=>function e(){var t=eu(N());return t.copy=function(){return D(t,e()).constant(t.constant())},B.C.apply(t,arguments)},scaleThreshold:()=>function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[j(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},B.C.apply(i,arguments)},scaleTime:()=>nl,scaleUtc:()=>nu,tickFormat:()=>K});var f=n(49726);let p=Math.sqrt(50),d=Math.sqrt(10),h=Math.sqrt(2);function y(e,t,n){let r,o,i,a=(t-e)/Math.max(0,n),l=Math.floor(Math.log10(a)),u=a/Math.pow(10,l),s=u>=p?10:u>=d?5:u>=h?2:1;return(l<0?(r=Math.round(e*(i=Math.pow(10,-l)/s)),o=Math.round(t*i),r/it&&--o,i=-i):(r=Math.round(e/(i=Math.pow(10,l)*s)),o=Math.round(t/i),r*it&&--o),o0))return[];if(e===t)return[e];let r=t=o))return[];let l=i-o+1,u=Array(l);if(r)if(a<0)for(let e=0;et?1:e>=t?0:NaN}function x(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function w(e){let t,n,r;function o(e,r,i=0,a=e.length){if(i>>1;0>n(e[t],r)?i=t+1:a=t}while(ib(e(t),n),r=(t,n)=>e(t)-n):(t=e===b||e===x?e:O,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){let a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o>>1;0>=n(e[t],r)?o=t+1:i=t}while(ot&&(n=e,e=t,t=n),s=function(n){return Math.max(e,Math.min(t,n))}),r=u>2?R:I,o=i=null,f}function f(t){return null==t||isNaN(t*=1)?n:(o||(o=r(a.map(e),l,u)))(e(s(t)))}return f.invert=function(n){return s(t((i||(i=r(l,a.map(e),P.A)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,C),c()):a.slice()},f.range=function(e){return arguments.length?(l=Array.from(e),c()):l.slice()},f.rangeRound=function(e){return l=Array.from(e),u=M,c()},f.clamp=function(e){return arguments.length?(s=!!e||_,c()):s!==_},f.interpolate=function(e){return arguments.length?(u=e,c()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,c()}}function F(){return N()(_,_)}var B=n(58905),L=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function z(e){var t;if(!(t=L.exec(e)))throw Error("invalid format: "+e);return new V({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function V(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function U(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function H(e){return(e=U(Math.abs(e)))?e[1]:NaN}function G(e,t){var n=U(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+Array(o-r.length+2).join("0")}z.prototype=V.prototype,V.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let $={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>G(100*e,t),r:G,s:function(e,t){var n=U(e,t);if(!n)return e+"";var o=n[0],i=n[1],a=i-(r=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,l=o.length;return a===l?o:a>l?o+Array(a-l+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+Array(1-a).join("0")+U(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function W(e){return e}var q=Array.prototype.map,X=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function K(e,t,n,r){var o,l,u=m(e,t,n);switch((r=z(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(l=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(H(s)/3)))-H(Math.abs(u))))||(r.precision=l),a(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(l=Math.max(0,H(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(o=Math.abs(o=u)))-H(o))+1)||(r.precision=l-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(l=Math.max(0,-H(Math.abs(u))))||(r.precision=l-("%"===r.type)*2)}return i(r)}function Y(e){var t=e.domain;return e.ticks=function(e){var n=t();return g(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return K(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,l=i.length-1,u=i[a],s=i[l],c=10;for(s0;){if((o=v(u,s,n))===r)return i[a]=u,i[l]=s,t(i);if(o>0)u=Math.floor(u/o)*o,s=Math.ceil(s/o)*o;else if(o<0)u=Math.ceil(u*o)/o,s=Math.floor(s*o)/o;else break;r=o}return e},e}function J(){var e=F();return e.copy=function(){return D(e,J())},B.C.apply(e,arguments),Y(e)}function Z(e,t){e=e.slice();var n,r=0,o=e.length-1,i=e[r],a=e[o];return a-e(-t,n)}function ei(e){let t,n,r=e(Q,ee),o=r.domain,a=10;function l(){var i,l;return t=(i=a)===Math.E?Math.log:10===i&&Math.log10||2===i&&Math.log2||(i=Math.log(i),e=>Math.log(e)/i),n=10===(l=a)?er:l===Math.E?Math.exp:e=>Math.pow(l,e),o()[0]<0?(t=eo(t),n=eo(n),e(et,en)):e(Q,ee),r}return r.base=function(e){return arguments.length?(a=+e,l()):a},r.domain=function(e){return arguments.length?(o(e),l()):o()},r.ticks=e=>{let r,i,l=o(),u=l[0],s=l[l.length-1],c=s0){for(;f<=p;++f)for(r=1;rs)break;h.push(i)}}else for(;f<=p;++f)for(r=a-1;r>=1;--r)if(!((i=f>0?r/n(-f):r*n(f))s)break;h.push(i)}2*h.length{if(null==e&&(e=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=z(o)).precision||(o.trim=!0),o=i(o)),e===1/0)return o;let l=Math.max(1,a*e/r.ticks().length);return e=>{let r=e/n(Math.round(t(e)));return r*ao(Z(o(),{floor:e=>n(Math.floor(t(e))),ceil:e=>n(Math.ceil(t(e)))})),r}function ea(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function el(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function eu(e){var t=1,n=e(ea(1),el(t));return n.constant=function(n){return arguments.length?e(ea(t=+n),el(t)):t},Y(n)}i=(o=function(e){var t,n,o,i=void 0===e.grouping||void 0===e.thousands?W:(t=q.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,l=t[0],u=0;o>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),i.push(e.substring(o-=l,o+l)),!((u+=l+1)>r));)l=t[a=(a+1)%t.length];return i.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",l=void 0===e.currency?"":e.currency[1]+"",u=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?W:(o=q.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return o[+e]})}),c=void 0===e.percent?"%":e.percent+"",f=void 0===e.minus?"−":e.minus+"",p=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=z(e)).fill,n=e.align,o=e.sign,d=e.symbol,h=e.zero,y=e.width,g=e.comma,v=e.precision,m=e.trim,b=e.type;"n"===b?(g=!0,b="g"):$[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var x="$"===d?a:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===d?l:/[%p]/.test(b)?c:"",O=$[b],S=/[defgprs%]/.test(b);function A(e){var a,l,c,d=x,A=w;if("c"===b)A=O(e)+A,e="";else{var j=(e*=1)<0||1/e<0;if(e=isNaN(e)?p:O(Math.abs(e),v),m&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),j&&0==+e&&"+"!==o&&(j=!1),d=(j?"("===o?o:f:"-"===o||"("===o?"":o)+d,A=("s"===b?X[8+r/3]:"")+A+(j&&"("===o?")":""),S){for(a=-1,l=e.length;++a(c=e.charCodeAt(a))||c>57){A=(46===c?u+e.slice(a+1):e.slice(a))+A,e=e.slice(0,a);break}}}g&&!h&&(e=i(e,1/0));var E=d.length+e.length+A.length,P=E>1)+d+e+A+P.slice(E);break;default:e=P+d+e+A}return s(e)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),A.toString=function(){return e+""},A}return{format:d,formatPrefix:function(e,t){var n=d(((e=z(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(H(t)/3))),o=Math.pow(10,-r),i=X[8+r/3];return function(e){return n(o*e)+i}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=o.formatPrefix;var es=n(41499);function ec(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ef(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ep(e){return e<0?-e*e:e*e}function ed(e){var t=e(_,_),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(_,_):.5===n?e(ef,ep):e(ec(n),ec(1/n)):n},Y(t)}function eh(){var e=ed(N());return e.copy=function(){return D(e,eh()).exponent(e.exponent())},B.C.apply(e,arguments),e}function ey(){return eh.apply(null,arguments).exponent(.5)}function eg(e){return Math.sign(e)*e*e}function ev(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n=o)&&(n=o)}return n}function em(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function eb(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(et))}function ex(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}let ew=new Date,eO=new Date;function eS(e,t,n,r){function o(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{let t=o(e),n=o.ceil(e);return e-t(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{let a,l=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n0))return l;do l.push(a=new Date(+n)),t(n,i),e(n);while(aeS(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(o.count=(t,r)=>(ew.setTime(+t),eO.setTime(+r),e(ew),e(eO),Math.floor(n(ew,eO))),o.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null),o}let eA=eS(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);eA.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?eS(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):eA:null,eA.range;let ej=eS(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());ej.range;let eE=eS(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());eE.range;let eP=eS(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());eP.range;let eM=eS(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());eM.range;let eC=eS(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());eC.range;let ek=eS(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);ek.range;let e_=eS(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);e_.range;let eT=eS(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function eI(e){return eS(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}eT.range;let eR=eI(0),eD=eI(1),eN=eI(2),eF=eI(3),eB=eI(4),eL=eI(5),ez=eI(6);function eV(e){return eS(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}eR.range,eD.range,eN.range,eF.range,eB.range,eL.range,ez.range;let eU=eV(0),eH=eV(1),eG=eV(2),e$=eV(3),eW=eV(4),eq=eV(5),eX=eV(6);eU.range,eH.range,eG.range,e$.range,eW.range,eq.range,eX.range;let eK=eS(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());eK.range;let eY=eS(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());eY.range;let eJ=eS(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());eJ.every=e=>isFinite(e=Math.floor(e))&&e>0?eS(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,eJ.range;let eZ=eS(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());function eQ(e,t,n,r,o,i){let a=[[ej,1,1e3],[ej,5,5e3],[ej,15,15e3],[ej,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function l(t,n,r){let o=Math.abs(n-t)/r,i=w(([,,e])=>e).right(a,o);if(i===a.length)return e.every(m(t/31536e6,n/31536e6,r));if(0===i)return eA.every(Math.max(m(t,n,r),1));let[l,u]=a[o/a[i-1][2]isFinite(e=Math.floor(e))&&e>0?eS(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,eZ.range;let[e0,e1]=eQ(eZ,eY,eU,eT,eC,eP),[e2,e5]=eQ(eJ,eK,eR,ek,eM,eE);function e3(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 e8(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 e9(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var e6={"-":"",_:" ",0:"0"},e4=/^\s*\d+/,e7=/^%/,te=/[\\^$*+?|[\]().{}]/g;function tt(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[e.toLowerCase(),t]))}function ti(e,t,n){var r=e4.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ta(e,t,n){var r=e4.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function tl(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function tu(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ts(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function tc(e,t,n){var r=e4.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function tf(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function tp(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function td(e,t,n){var r=e4.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function th(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ty(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function tg(e,t,n){var r=e4.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function tv(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function tm(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function tb(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function tx(e,t,n){var r=e4.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tw(e,t,n){var r=e4.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function tO(e,t,n){var r=e7.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function tS(e,t,n){var r=e4.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function tA(e,t,n){var r=e4.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function tj(e,t){return tt(e.getDate(),t,2)}function tE(e,t){return tt(e.getHours(),t,2)}function tP(e,t){return tt(e.getHours()%12||12,t,2)}function tM(e,t){return tt(1+ek.count(eJ(e),e),t,3)}function tC(e,t){return tt(e.getMilliseconds(),t,3)}function tk(e,t){return tC(e,t)+"000"}function t_(e,t){return tt(e.getMonth()+1,t,2)}function tT(e,t){return tt(e.getMinutes(),t,2)}function tI(e,t){return tt(e.getSeconds(),t,2)}function tR(e){var t=e.getDay();return 0===t?7:t}function tD(e,t){return tt(eR.count(eJ(e)-1,e),t,2)}function tN(e){var t=e.getDay();return t>=4||0===t?eB(e):eB.ceil(e)}function tF(e,t){return e=tN(e),tt(eB.count(eJ(e),e)+(4===eJ(e).getDay()),t,2)}function tB(e){return e.getDay()}function tL(e,t){return tt(eD.count(eJ(e)-1,e),t,2)}function tz(e,t){return tt(e.getFullYear()%100,t,2)}function tV(e,t){return tt((e=tN(e)).getFullYear()%100,t,2)}function tU(e,t){return tt(e.getFullYear()%1e4,t,4)}function tH(e,t){var n=e.getDay();return tt((e=n>=4||0===n?eB(e):eB.ceil(e)).getFullYear()%1e4,t,4)}function tG(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tt(t/60|0,"0",2)+tt(t%60,"0",2)}function t$(e,t){return tt(e.getUTCDate(),t,2)}function tW(e,t){return tt(e.getUTCHours(),t,2)}function tq(e,t){return tt(e.getUTCHours()%12||12,t,2)}function tX(e,t){return tt(1+e_.count(eZ(e),e),t,3)}function tK(e,t){return tt(e.getUTCMilliseconds(),t,3)}function tY(e,t){return tK(e,t)+"000"}function tJ(e,t){return tt(e.getUTCMonth()+1,t,2)}function tZ(e,t){return tt(e.getUTCMinutes(),t,2)}function tQ(e,t){return tt(e.getUTCSeconds(),t,2)}function t0(e){var t=e.getUTCDay();return 0===t?7:t}function t1(e,t){return tt(eU.count(eZ(e)-1,e),t,2)}function t2(e){var t=e.getUTCDay();return t>=4||0===t?eW(e):eW.ceil(e)}function t5(e,t){return e=t2(e),tt(eW.count(eZ(e),e)+(4===eZ(e).getUTCDay()),t,2)}function t3(e){return e.getUTCDay()}function t8(e,t){return tt(eH.count(eZ(e)-1,e),t,2)}function t9(e,t){return tt(e.getUTCFullYear()%100,t,2)}function t6(e,t){return tt((e=t2(e)).getUTCFullYear()%100,t,2)}function t4(e,t){return tt(e.getUTCFullYear()%1e4,t,4)}function t7(e,t){var n=e.getUTCDay();return tt((e=n>=4||0===n?eW(e):eW.ceil(e)).getUTCFullYear()%1e4,t,4)}function ne(){return"+0000"}function nt(){return"%"}function nn(e){return+e}function nr(e){return Math.floor(e/1e3)}function no(e){return new Date(e)}function ni(e){return e instanceof Date?+e:+new Date(+e)}function na(e,t,n,r,o,i,a,l,u,s){var c=F(),f=c.invert,p=c.domain,d=s(".%L"),h=s(":%S"),y=s("%I:%M"),g=s("%I %p"),v=s("%a %d"),m=s("%b %d"),b=s("%B"),x=s("%Y");function w(e){return(u(e)1)for(var n,r,o,i=1,a=e[t[0]],l=a.length;i=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:nn,s:nr,S:tI,u:tR,U:tD,V:tF,w:tB,W:tL,x:null,X:null,y:tz,Y:tU,Z:tG,"%":nt},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:t$,e:t$,f:tY,g:t6,G:t7,H:tW,I:tq,j:tX,L:tK,m:tJ,M:tZ,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:nn,s:nr,S:tQ,u:t0,U:t1,V:t5,w:t3,W:t8,x:null,X:null,y:t9,Y:t4,Z:ne,"%":nt},w={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return A(e,t,n,r)},d:ty,e:ty,f:tw,g:tf,G:tc,H:tv,I:tv,j:tg,L:tx,m:th,M:tm,p:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:td,Q:tS,s:tA,S:tb,u:ta,U:tl,V:tu,w:ti,W:ts,x:function(e,t,r){return A(e,n,t,r)},X:function(e,t,n){return A(e,r,t,n)},y:tf,Y:tc,Z:tp,"%":tO};function O(e,t){return function(n){var r,o,i,a=[],l=-1,u=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in i||(i.w=1),"Z"in i?(r=(o=(r=e8(e9(i.y,0,1))).getUTCDay())>4||0===o?eH.ceil(r):eH(r),r=e_.offset(r,(i.V-1)*7),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(r=(o=(r=e3(e9(i.y,0,1))).getDay())>4||0===o?eD.ceil(r):eD(r),r=ek.offset(r,(i.V-1)*7),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:+("W"in i)),o="Z"in i?e8(e9(i.y,0,1)).getUTCDay():e3(e9(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,e8(i)):e3(i)}}function A(e,t,n,r){for(var o,i,a=0,l=t.length,u=n.length;a=u)return -1;if(37===(o=t.charCodeAt(a++))){if(!(i=w[(o=t.charAt(a++))in e6?t.charAt(a++):o])||(r=i(e,n,r))<0)return -1}else if(o!=n.charCodeAt(r++))return -1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(t,b),x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,l.parse,s=l.utcFormat,l.utcParse;var nv=n(71947),nm=n(46554);function nb(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function nx(e,t){return e[t]}function nw(e){let t=[];return t.key=e,t}var nO=n(38867),nS=n.n(nO),nA=n(84905),nj=n.n(nA),nE=n(38822),nP=n.n(nE),nM=n(98499),nC=n.n(nM),nk=n(84450),n_=n.n(nk),nT=n(60449),nI=n.n(nT),nR=n(35342),nD=n.n(nR),nN=n(51068),nF=n.n(nN),nB=n(6797),nL=n.n(nB),nz=n(83817),nV=n.n(nz),nU=n(26194),nH=n.n(nU),nG=n(56650),n$=n.n(nG);function nW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=t?n.apply(void 0,o):e(t-a,nY(function(){for(var e=arguments.length,t=Array(e),r=0;rtypeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return nW(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nW(e,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(t))}))})}(e.length,e)},nZ=function(e,t){for(var n=[],r=e;rtypeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||n6(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n9(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("u">typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}}(e,t)||n6(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n6(e,t){if(e){if("string"==typeof e)return n4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n4(e,t)}}function n4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr&&(o=r,i=n),[o,i]}function re(e,t,n){if(e.lte(0))return new(n$())(0);var r=n3(e.toNumber()),o=new(n$())(10).pow(r),i=e.div(o),a=1!==r?.05:.1,l=new(n$())(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?l:new(n$())(Math.ceil(l))}function rt(e,t,n){var r=1,o=new(n$())(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new(n$())(10).pow(n3(e)-1),o=new(n$())(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new(n$())(Math.floor(e)))}else 0===e?o=new(n$())(Math.floor((t-1)/2)):n||(o=new(n$())(Math.floor(e)));var a=Math.floor((t-1)/2);return n0(nQ(function(e){return o.add(new(n$())(e-a).mul(r)).toNumber()}),nZ)(0,t)}var rn=n2(function(e){var t=n9(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),l=n9(n7([n,r]),2),u=l[0],s=l[1];if(u===-1/0||s===1/0){var c=s===1/0?[u].concat(n8(nZ(0,o-1).map(function(){return 1/0}))):[].concat(n8(nZ(0,o-1).map(function(){return-1/0})),[s]);return n>r?n1(c):c}if(u===s)return rt(u,o,i);var f=function e(t,n,r,o){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new(n$())(0),tickMin:new(n$())(0),tickMax:new(n$())(0)};var l=re(new(n$())(n).sub(t).div(r-1),o,a),u=Math.ceil((i=t<=0&&n>=0?new(n$())(0):(i=new(n$())(t).add(n).div(2)).sub(new(n$())(i).mod(l))).sub(t).div(l).toNumber()),s=Math.ceil(new(n$())(n).sub(i).div(l).toNumber()),c=u+s+1;return c>r?e(t,n,r,o,a+1):(c0?s+(r-c):s,u=n>0?u:u+(r-c)),{step:l,tickMin:i.sub(new(n$())(u).mul(l)),tickMax:i.add(new(n$())(s).mul(l))})}(u,s,a,i),p=f.step,d=n5(f.tickMin,f.tickMax.add(new(n$())(.1).mul(p)),p);return n>r?n1(d):d});n2(function(e){var t=n9(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),l=n9(n7([n,r]),2),u=l[0],s=l[1];if(u===-1/0||s===1/0)return[n,r];if(u===s)return rt(u,o,i);var c=re(new(n$())(s).sub(u).div(a-1),i,0),f=n0(nQ(function(e){return new(n$())(u).add(new(n$())(e).mul(c)).toNumber()}),nZ)(0,a).filter(function(e){return e>=u&&e<=s});return n>r?n1(f):f});var rr=n2(function(e,t){var n=n9(e,2),r=n[0],o=n[1],i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=n9(n7([r,o]),2),l=a[0],u=a[1];if(l===-1/0||u===1/0)return[r,o];if(l===u)return[l];var s=Math.max(t,2),c=re(new(n$())(u).sub(l).div(s-1),i,0),f=[].concat(n8(n5(new(n$())(l),new(n$())(u).sub(new(n$())(.99).mul(c)),c)),[u]);return r>o?n1(f):f}),ro=n(65219),ri=n(53645),ra=n(93780),rl=n(65049);function ru(e){return(ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rs(e){return function(e){if(Array.isArray(e))return rc(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return rc(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rc(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!=(t=null==n?void 0:n.length)?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var l=o.range,u=0;u0?r[u-1].coordinate:r[a-1].coordinate,c=r[u].coordinate,f=u>=a-1?r[0].coordinate:r[u+1].coordinate,p=void 0;if((0,ri.sA)(c-s)!==(0,ri.sA)(f-c)){var d=[];if((0,ri.sA)(f-c)===(0,ri.sA)(l[1]-l[0])){p=f;var h=c+l[1]-l[0];d[0]=Math.min(h,(h+s)/2),d[1]=Math.max(h,(h+s)/2)}else{p=s;var y=f+l[1]-l[0];d[0]=Math.min(c,(y+c)/2),d[1]=Math.max(c,(y+c)/2)}var g=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(e>g[0]&&e<=g[1]||e>=d[0]&&e<=d[1]){i=r[u].index;break}}else{var v=Math.min(s,f),m=Math.max(s,f);if(e>(v+c)/2&&e<=(m+c)/2){i=r[u].index;break}}}else for(var b=0;b0&&b(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i},rv=function(e){var t,n,r=e.type.displayName,o=null!=(t=e.type)&&t.defaultProps?rp(rp({},e.type.defaultProps),e.props):e.props,i=o.stroke,a=o.fill;switch(r){case"Line":n=i;break;case"Area":case"Radar":n=i&&"none"!==i?i:a;break;default:n=a}return n},rm=function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,o=void 0===r?{}:r;if(!o)return{};for(var i={},a=Object.keys(o),l=0,u=a.length;l=0});if(g&&g.length){var v=g[0].type.defaultProps,m=void 0!==v?rp(rp({},v),g[0].props):g[0].props,b=m.barSize,x=m[y];i[x]||(i[x]=[]);var w=nP()(b)?t:b;i[x].push({item:g[0],stackList:g.slice(1),barSize:nP()(w)?void 0:(0,ri.F4)(w,n,0)})}}return i},rb=function(e){var t,n=e.barGap,r=e.barCategoryGap,o=e.bandSize,i=e.sizeList,a=void 0===i?[]:i,l=e.maxBarSize,u=a.length;if(u<1)return null;var s=(0,ri.F4)(n,o,0,!0),c=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=o/u,d=a.reduce(function(e,t){return e+t.barSize||0},0);(d+=(u-1)*s)>=o&&(d-=(u-1)*s,s=0),d>=o&&p>0&&(f=!0,p*=.9,d=u*p);var h={offset:((o-d)/2|0)-s,size:0};t=a.reduce(function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+s,size:f?p:t.barSize}},r=[].concat(rs(e),[n]);return h=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:h})}),r},c)}else{var y=(0,ri.F4)(r,o,0,!0);o-2*y-(u-1)*s<=0&&(s=0);var g=(o-2*y-(u-1)*s)/u;g>1&&(g>>=0);var v=l===+l?Math.min(g,l):g;t=a.reduce(function(e,t,n){var r=[].concat(rs(e),[{item:t.item,position:{offset:y+(g+s)*n+(g-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},c)}return t},rx=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,l=i-(a.left||0)-(a.right||0),u=(0,rl.g)({children:o,legendWidth:l});if(u){var s=r||{},c=s.width,f=s.height,p=u.align,d=u.verticalAlign,h=u.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&(0,ri.Et)(e[p]))return rp(rp({},e),{},rd({},p,e[p]+(c||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&(0,ri.Et)(e[d]))return rp(rp({},e),{},rd({},d,e[d]+(f||0)))}return e},rw=function(e,t,n,r,o){var i=t.props.children,a=(0,ra.aS)(i,ro.u).filter(function(e){var t;return t=e.props.direction,!!nP()(o)||("horizontal"===r?"yAxis"===o:"vertical"===r||"x"===t?"xAxis"===o:"y"!==t||"yAxis"===o)});if(a&&a.length){var l=a.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=rh(t,n);if(nP()(r))return e;var o=Array.isArray(r)?[nj()(r),nS()(r)]:[r,r],i=l.reduce(function(e,n){var r=rh(t,n,0),i=o[0]-Math.abs(Array.isArray(r)?r[0]:r),a=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]},[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]},[1/0,-1/0])}return null},rO=function(e,t,n,r,o){var i=t.map(function(t){return rw(e,t,n,o,r)}).filter(function(e){return!nP()(e)});return i&&i.length?i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},rS=function(e,t,n,r,o){var i=t.map(function(t){var i=t.props.dataKey;return"number"===n&&i&&rw(e,t,i,r)||ry(e,i,n,o)});if("number"===n)return i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var a={};return i.reduce(function(e,t){for(var n=0,r=t.length;n=2?2*(0,ri.sA)(a[0]-a[1])*u:u,t&&(e.ticks||e.niceTicks))?(e.ticks||e.niceTicks).map(function(e){return{coordinate:r(o?o.indexOf(e):e)+u,value:e,offset:u}}).filter(function(e){return!nF()(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+u,value:e,index:t,offset:u}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+u,value:e,offset:u}}):r.domain().map(function(e,t){return{coordinate:r(e)+u,value:o?o[e]:e,index:t,offset:u}})},rP=new WeakMap,rM=function(e,t){if("function"!=typeof t)return e;rP.has(e)||rP.set(e,new WeakMap);var n=rP.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},rC=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:f.A(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:J(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:f.z(),realScaleType:"point"}:"category"===o?{scale:f.A(),realScaleType:"band"}:{scale:J(),realScaleType:"linear"};if(n_()(r)){var l="scale".concat(nL()(r));return{scale:(c[l]||f.z)(),realScaleType:c[l]?l:"point"}}return nC()(r)?{scale:r}:{scale:f.z(),realScaleType:"point"}},rk=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,i=Math.max(r[0],r[1])+1e-4,a=e(t[0]),l=e(t[n-1]);(ai||li)&&e.domain([t[0],t[n-1]])}},r_=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]=0?(e[a][n][0]=o,e[a][n][1]=o+l,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+l,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},rR=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),o=rI[n];return(function(){var e=(0,nm.A)([]),t=nb,n=ng,r=nx;function o(o){var i,a,l=Array.from(e.apply(this,arguments),nw),u=l.length,s=-1;for(let e of o)for(i=0,++s;i=0?0:o<0?o:r}return n[0]},rz=function(e,t){var n,r=(null!=(n=e.type)&&n.defaultProps?rp(rp({},e.type.defaultProps),e.props):e.props).stackId;if((0,ri.vh)(r)){var o=t[r];if(o){var i=o.items.indexOf(e);return i>=0?o.stackedData[i]:null}}return null},rV=function(e,t,n){return Object.keys(e).reduce(function(r,o){var i=e[o].stackedData.reduce(function(e,r){var o=r.slice(t,n+1).reduce(function(e,t){return[nj()(t.concat([e[0]]).filter(ri.Et)),nS()(t.concat([e[1]]).filter(ri.Et))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},rU=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,rH=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,rG=function(e,t,n){if(nC()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if((0,ri.Et)(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(rU.test(e[0])){var o=+rU.exec(e[0])[1];r[0]=t[0]-o}else nC()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if((0,ri.Et)(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(rH.test(e[1])){var i=+rH.exec(e[1])[1];r[1]=t[1]+i}else nC()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},r$=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=nH()(t,function(e){return e.coordinate}),i=1/0,a=1,l=o.length;a{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},1905:(e,t,n)=>{var r=n(53325),o=n(34024),i=n(68988);e.exports=function(e,t){var n={};return t=i(t,3),o(e,function(e,o,i){r(n,o,t(e,o,i))}),n}},2055:(e,t,n)=>{"use strict";n.d(t,{y:()=>z});var r=n(55729),o=n(50212),i=n(92224),a=n(83817),l=n.n(a),u=n(38822),s=n.n(u),c=n(3780),f=n(65219),p=function(e){return null};p.displayName="Cell";var d=n(78895),h=n(53645),y=n(93780),g=n(88859),v=n(1509),m=n(27281),b=n(73403),x=n(52797),w=["x","y"];function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,w),i=parseInt("".concat(n),10),a=parseInt("".concat(r),10),l=parseInt("".concat(t.height||o.height),10),u=parseInt("".concat(t.width||o.width),10);return j(j(j(j(j({},t),o),i?{x:i}:{}),a?{y:a}:{}),{},{height:l,width:u,name:t.name,radius:t.radius})}function P(e){return r.createElement(x.yp,S({shapeType:"rectangle",propTransformer:E,activeClassName:"recharts-active-bar"},e))}var M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var o="number"==typeof n;return o?e(n,r):(o||(0,b.A)(!1),t)}},C=["value","background"];function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,C);if(!l)return null;var s=I(I(I(I(I({},u),{},{fill:"#eee"},l),a),(0,m.XC)(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:n,className:"recharts-bar-background-rectangle"});return r.createElement(P,_({key:"background-bar-".concat(n),option:e.props.background,isActive:n===i},s))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.data,i=n.xAxis,a=n.yAxis,l=n.layout,u=n.children,s=(0,y.aS)(u,f.u);if(!s)return null;var p="vertical"===l?o[0].height/2:o[0].width/2,d=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:(0,v.kr)(e,t)}};return r.createElement(c.W,{clipPath:e?"url(#clipPath-".concat(t,")"):null},s.map(function(e){return r.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:l,offset:p,dataPointFormatter:d})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,i=e.className,a=e.xAxis,l=e.yAxis,u=e.left,f=e.top,p=e.width,h=e.height,y=e.isAnimationActive,g=e.background,v=e.id;if(t||!n||!n.length)return null;var m=this.state.isAnimationFinished,b=(0,o.A)("recharts-bar",i),x=a&&a.allowDataOverflow,w=l&&l.allowDataOverflow,O=x||w,S=s()(v)?this.id:v;return r.createElement(c.W,{className:b},x||w?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(S)},r.createElement("rect",{x:x?u:u-p/2,y:w?f:f-h/2,width:x?p:2*p,height:w?h:2*h}))):null,r.createElement(c.W,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(S,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,S),(!y||m)&&d.Z.renderCallByParent(this.props,n))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],t&&R(a.prototype,t),n&&R(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);B(z,"displayName","Bar"),B(z,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!g.m.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),B(z,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,l=e.xAxisTicks,u=e.yAxisTicks,s=e.stackedData,c=e.dataStartIndex,f=e.displayedData,d=e.offset,g=(0,v.xi)(r,n);if(!g)return null;var m=t.layout,b=n.type.defaultProps,x=void 0!==b?I(I({},b),n.props):n.props,w=x.dataKey,O=x.children,S=x.minPointSize,A="horizontal"===m?a:i,j=s?A.scale.domain():null,E=(0,v.DW)({numericAxis:A}),P=(0,y.aS)(O,p),C=f.map(function(e,t){s?f=(0,v._f)(s[c+t],j):Array.isArray(f=(0,v.kr)(e,w))||(f=[E,f]);var r=M(S,z.defaultProps.minPointSize)(f[1],t);if("horizontal"===m){var f,p,d,y,b,x,O,A=[a.scale(f[0]),a.scale(f[1])],C=A[0],k=A[1];p=(0,v.y2)({axis:i,ticks:l,bandSize:o,offset:g.offset,entry:e,index:t}),d=null!=(O=null!=k?k:C)?O:void 0,y=g.size;var _=C-k;if(b=Number.isNaN(_)?0:_,x={x:p,y:a.y,width:y,height:a.height},Math.abs(r)>0&&Math.abs(b)0&&Math.abs(y){var r=n(3128),o=n(29090),i=n(31835),a=n(96024),l=n(53140),u=n(91544),s=n(9541),c=n(43562),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,g,v){var m=u(e),b=u(t),x=m?p:l(e),w=b?p:l(t);x=x==f?d:x,w=w==f?d:w;var O=x==d,S=w==d,A=x==w;if(A&&s(e)){if(!s(t))return!1;m=!0,O=!1}if(A&&!O)return v||(v=new r),m||c(e)?o(e,t,n,y,g,v):i(e,t,x,n,y,g,v);if(!(1&n)){var j=O&&h.call(e,"__wrapped__"),E=S&&h.call(t,"__wrapped__");if(j||E){var P=j?e.value():e,M=E?t.value():t;return v||(v=new r),g(P,M,n,y,v)}}return!!A&&(v||(v=new r),a(e,t,n,y,g,v))}},2390:(e,t,n)=>{"use strict";n.d(t,{J:()=>d,M:()=>y});var r=n(55729),o=n(50212),i=n(92224),a=n(93780);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1,u=n>=0?1:-1,s=+(r>=0&&n>=0||r<0&&n<0);if(a>0&&o instanceof Array){for(var c=[0,0,0,0],f=0;f<4;f++)c[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+l*c[0]),c[0]>0&&(i+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(e+u*c[0],",").concat(t)),i+="L ".concat(e+n-u*c[1],",").concat(t),c[1]>0&&(i+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,",\n ").concat(e+n,",").concat(t+l*c[1])),i+="L ".concat(e+n,",").concat(t+r-l*c[2]),c[2]>0&&(i+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,",\n ").concat(e+n-u*c[2],",").concat(t+r)),i+="L ".concat(e+u*c[3],",").concat(t+r),c[3]>0&&(i+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,",\n ").concat(e,",").concat(t+r-l*c[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+u*p,",").concat(t,"\n L ").concat(e+n-u*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+n,",").concat(t+l*p,"\n L ").concat(e+n,",").concat(t+r-l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+n-u*p,",").concat(t+r,"\n L ").concat(e+u*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e,",").concat(t+r-l*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},d=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,l=t.height;if(Math.abs(a)>0&&Math.abs(l)>0){var u=Math.min(o,o+a),s=Math.max(o,o+a),c=Math.min(i,i+l),f=Math.max(i,i+l);return n>=u&&n<=s&&r>=c&&r<=f}return!1},h={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(e){var t,n=f(f({},h),e),l=(0,r.useRef)(),c=function(e){if(Array.isArray(e))return e}(t=(0,r.useState)(-1))||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return s(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=c[0],y=c[1];(0,r.useEffect)(function(){if(l.current&&l.current.getTotalLength)try{var e=l.current.getTotalLength();e&&y(e)}catch(e){}},[]);var g=n.x,v=n.y,m=n.width,b=n.height,x=n.radius,w=n.className,O=n.animationEasing,S=n.animationDuration,A=n.animationBegin,j=n.isAnimationActive,E=n.isUpdateAnimationActive;if(g!==+g||v!==+v||m!==+m||b!==+b||0===m||0===b)return null;var P=(0,o.A)("recharts-rectangle",w);return E?r.createElement(i.Ay,{canBegin:d>0,from:{width:m,height:b,x:g,y:v},to:{width:m,height:b,x:g,y:v},duration:S,animationEasing:O,isActive:E},function(e){var t=e.width,o=e.height,s=e.x,c=e.y;return r.createElement(i.Ay,{canBegin:d>0,from:"0px ".concat(-1===d?1:d,"px"),to:"".concat(d,"px 0px"),attributeName:"strokeDasharray",begin:A,duration:S,isActive:j,easing:O},r.createElement("path",u({},(0,a.J9)(n,!0),{className:P,d:p(s,c,t,o,x),ref:l})))}):r.createElement("path",u({},(0,a.J9)(n,!0),{className:P,d:p(g,v,m,b,x)}))}},2485:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","grip-vertical","IconGripVertical",[["path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-5"}]])},2549:(e,t,n)=>{"use strict";n.d(t,{DR:()=>b,pj:()=>O,rY:()=>M,yi:()=>P,Yp:()=>x,hj:()=>E,sk:()=>j,AF:()=>w,Nk:()=>A,$G:()=>S});var r=n(55729),o=n(73403),i=n(43724),a=n.n(i),l=n(57174),u=n.n(l),s=n(55765),c=n.n(s)()(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return"l"+e.left+"t"+e.top+"w"+e.width+"h"+e.height}),f=n(53645),p=(0,r.createContext)(void 0),d=(0,r.createContext)(void 0),h=(0,r.createContext)(void 0),y=(0,r.createContext)({}),g=(0,r.createContext)(void 0),v=(0,r.createContext)(0),m=(0,r.createContext)(0),b=function(e){var t=e.state,n=t.xAxisMap,o=t.yAxisMap,i=t.offset,a=e.clipPathId,l=e.children,u=e.width,s=e.height,f=c(i);return r.createElement(p.Provider,{value:n},r.createElement(d.Provider,{value:o},r.createElement(y.Provider,{value:i},r.createElement(h.Provider,{value:f},r.createElement(g.Provider,{value:a},r.createElement(v.Provider,{value:s},r.createElement(m.Provider,{value:u},l)))))))},x=function(){return(0,r.useContext)(g)},w=function(e){var t=(0,r.useContext)(p);null==t&&(0,o.A)(!1);var n=t[e];return null==n&&(0,o.A)(!1),n},O=function(){var e=(0,r.useContext)(p);return(0,f.lX)(e)},S=function(){var e=(0,r.useContext)(d);return a()(e,function(e){return u()(e.domain,Number.isFinite)})||(0,f.lX)(e)},A=function(e){var t=(0,r.useContext)(d);null==t&&(0,o.A)(!1);var n=t[e];return null==n&&(0,o.A)(!1),n},j=function(){return(0,r.useContext)(h)},E=function(){return(0,r.useContext)(y)},P=function(){return(0,r.useContext)(m)},M=function(){return(0,r.useContext)(v)}},2603:(e,t,n)=>{var r=n(88165);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},2882:e=>{e.exports=function(e){return e!=e}},2893:(e,t,n)=>{"use strict";n.d(t,{W:()=>g});var r=n(55729),o=n(50212),i=n(2549),a=n(46271),l=n(1509);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.d(t,{W:()=>u});var r=n(55729),o=n(50212),i=n(93780),a=["children","className"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=(0,o.A)("recharts-layer",u);return r.createElement("g",l({className:c},(0,i.J9)(s,!0),{ref:t}),n)})},4140:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5586:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,l=n(t((r-e)/(o||1)),0),u=Array(l);l--;)u[i?l:++a]=e,e+=o;return u}},5688:(e,t,n)=>{"use strict";function r(e,t){for(var n in e)if(({}).hasOwnProperty.call(e,n)&&(!({}).hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if(({}).hasOwnProperty.call(t,r)&&!({}).hasOwnProperty.call(e,r))return!1;return!0}n.d(t,{b:()=>r})},6797:(e,t,n)=>{e.exports=n(95486)("toUpperCase")},6802:(e,t,n)=>{var r=n(3128),o=n(7855);e.exports=function(e,t,n,i){var a=n.length,l=a,u=!i;if(null==e)return!l;for(e=Object(e);a--;){var s=n[a];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a{e.exports=n(24233)()},7571:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var r=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o{var r=n(2193),o=n(3619);e.exports=function e(t,n,i,a,l){return t===n||(null!=t&&null!=n&&(o(t)||o(n))?r(t,n,i,a,e,l):t!=t&&n!=n)}},7913:function(e,t,n){(function(e,t){"use strict";var n=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(t);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o={error:null},i=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i{"use strict";n.d(t,{d:()=>k});var r=n(55729),o=n(98499),i=n.n(o),a=n(7571),l=n(53645),u=n(93780),s=n(1509),c=n(32347),f=n(46271),p=n(2549),d=["x1","y1","x2","y2","key"],h=["offset"];function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var x=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,o=e.x,i=e.y,a=e.width,l=e.height,u=e.ry;return r.createElement("rect",{x:o,y:i,ry:u,width:a,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function w(e,t){var n;if(r.isValidElement(e))n=r.cloneElement(e,t);else if(i()(e))n=e(t);else{var o=t.x1,a=t.y1,l=t.x2,s=t.y2,c=t.key,f=b(t,d),p=(0,u.J9)(f,!1),y=(p.offset,b(p,h));n=r.createElement("line",m({},y,{x1:o,y1:a,x2:l,y2:s,fill:"none",key:c}))}return n}function O(e){var t=e.x,n=e.width,o=e.horizontal,i=void 0===o||o,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var l=a.map(function(r,o){return w(i,v(v({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(o),index:o}))});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function S(e){var t=e.y,n=e.height,o=e.vertical,i=void 0===o||o,a=e.verticalPoints;if(!i||!a||!a.length)return null;var l=a.map(function(r,o){return w(i,v(v({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(o),index:o}))});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function A(e){var t=e.horizontalFill,n=e.fillOpacity,o=e.x,i=e.y,a=e.width,l=e.height,u=e.horizontalPoints,s=e.horizontal;if(!(void 0===s||s)||!t||!t.length)return null;var c=u.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==c[0]&&c.unshift(0);var f=c.map(function(e,u){var s=c[u+1]?c[u+1]-e:i+l-e;if(s<=0)return null;var f=u%t.length;return r.createElement("rect",{key:"react-".concat(u),y:e,x:o,height:s,width:a,stroke:"none",fill:t[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function j(e){var t=e.vertical,n=e.verticalFill,o=e.fillOpacity,i=e.x,a=e.y,l=e.width,u=e.height,s=e.verticalPoints;if(!(void 0===t||t)||!n||!n.length)return null;var c=s.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==c[0]&&c.unshift(0);var f=c.map(function(e,t){var s=c[t+1]?c[t+1]-e:i+l-e;if(s<=0)return null;var f=t%n.length;return r.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:s,height:u,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var E=function(e,t){var n=e.xAxis,r=e.width,o=e.height,i=e.offset;return(0,s.PW)((0,c.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,s.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},P=function(e,t){var n=e.yAxis,r=e.width,o=e.height,i=e.offset;return(0,s.PW)((0,c.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,s.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},M=[],C=[];function k(e){var t,n,o,u,s,c,f=(0,p.yi)(),d=(0,p.rY)(),h=(0,p.hj)(),g=v(v({},e),{},{stroke:null!=(t=e.stroke)?t:"#ccc",fill:null!=(n=e.fill)?n:"none",horizontal:null==(o=e.horizontal)||o,horizontalFill:null!=(u=e.horizontalFill)?u:C,vertical:null==(s=e.vertical)||s,verticalFill:null!=(c=e.verticalFill)?c:M,x:(0,l.Et)(e.x)?e.x:h.left,y:(0,l.Et)(e.y)?e.y:h.top,width:(0,l.Et)(e.width)?e.width:h.width,height:(0,l.Et)(e.height)?e.height:h.height}),b=g.x,w=g.y,k=g.width,_=g.height,T=g.syncWithTicks,I=g.horizontalValues,R=g.verticalValues,D=(0,p.pj)(),N=(0,p.$G)();if(!(0,l.Et)(k)||k<=0||!(0,l.Et)(_)||_<=0||!(0,l.Et)(b)||b!==+b||!(0,l.Et)(w)||w!==+w)return null;var F=g.verticalCoordinatesGenerator||E,B=g.horizontalCoordinatesGenerator||P,L=g.horizontalPoints,z=g.verticalPoints;if((!L||!L.length)&&i()(B)){var V=I&&I.length,U=B({yAxis:N?v(v({},N),{},{ticks:V?I:N.ticks}):void 0,width:f,height:d,offset:h},!!V||T);(0,a.R)(Array.isArray(U),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(y(U),"]")),Array.isArray(U)&&(L=U)}if((!z||!z.length)&&i()(F)){var H=R&&R.length,G=F({xAxis:D?v(v({},D),{},{ticks:H?R:D.ticks}):void 0,width:f,height:d,offset:h},!!H||T);(0,a.R)(Array.isArray(G),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(y(G),"]")),Array.isArray(G)&&(z=G)}return r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(x,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),r.createElement(O,m({},g,{offset:h,horizontalPoints:L,xAxis:D,yAxis:N})),r.createElement(S,m({},g,{offset:h,verticalPoints:z,xAxis:D,yAxis:N})),r.createElement(A,m({},g,{horizontalPoints:L})),r.createElement(j,m({},g,{verticalPoints:z})))}k.displayName="CartesianGrid"},9819:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},10656:(e,t,n)=>{var r=n(16799);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,l=Object(n);(t?a--:++a{var r=n(7855),o=n(60449),i=n(8546),a=n(25907),l=n(28617),u=n(20764),s=n(43092);e.exports=function(e,t){return a(e)&&l(t)?u(s(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},11061:(e,t,n)=>{var r=n(22479),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},11107:(e,t,n)=>{"use strict";n.d(t,{h:()=>g});var r=n(55729),o=n(50212),i=n(93780),a=n(31829),l=n(53645);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(i>c),",\n ").concat(p.x,",").concat(p.y,"\n ");if(r>0){var h=(0,a.IZ)(t,n,r,i),y=(0,a.IZ)(t,n,r,c);d+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(s)>180),",").concat(+(i<=c),",\n ").concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(t,",").concat(n," Z");return d},h=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,s=e.startAngle,c=e.endAngle,f=(0,l.sA)(c-s),h=p({cx:t,cy:n,radius:o,angle:s,sign:f,cornerRadius:i,cornerIsExternal:u}),y=h.circleTangency,g=h.lineTangency,v=h.theta,m=p({cx:t,cy:n,radius:o,angle:c,sign:-f,cornerRadius:i,cornerIsExternal:u}),b=m.circleTangency,x=m.lineTangency,w=m.theta,O=u?Math.abs(s-c):Math.abs(s-c)-v-w;if(O<0)return a?"M ".concat(g.x,",").concat(g.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(-(2*i),",0\n "):d({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:c});var S="M ".concat(g.x,",").concat(g.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(r>0){var A=p({cx:t,cy:n,radius:r,angle:s,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),j=A.circleTangency,E=A.lineTangency,P=A.theta,M=p({cx:t,cy:n,radius:r,angle:c,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),C=M.circleTangency,k=M.lineTangency,_=M.theta,T=u?Math.abs(s-c):Math.abs(s-c)-P-_;if(T<0&&0===i)return"".concat(S,"L").concat(t,",").concat(n,"Z");S+="L".concat(k.x,",").concat(k.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(f>0),",").concat(j.x,",").concat(j.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,"Z")}else S+="L".concat(t,",").concat(n,"Z");return S},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},g=function(e){var t,n=f(f({},y),e),a=n.cx,u=n.cy,c=n.innerRadius,p=n.outerRadius,g=n.cornerRadius,v=n.forceCornerRadius,m=n.cornerIsExternal,b=n.startAngle,x=n.endAngle,w=n.className;if(p0&&360>Math.abs(b-x)?h({cx:a,cy:u,innerRadius:c,outerRadius:p,cornerRadius:Math.min(A,S/2),forceCornerRadius:v,cornerIsExternal:m,startAngle:b,endAngle:x}):d({cx:a,cy:u,innerRadius:c,outerRadius:p,startAngle:b,endAngle:x}),r.createElement("path",s({},(0,i.J9)(n,!0),{className:O,d:t,role:"img"}))}},12364:(e,t,n)=>{var r=n(23356),o=n(23169),i=n(22479),a=Math.max,l=Math.min;e.exports=function(e,t,n){var u,s,c,f,p,d,h=0,y=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var n=u,r=s;return u=s=void 0,h=t,f=e.apply(r,n)}function b(e){var n=e-d,r=e-h;return void 0===d||n>=t||n<0||g&&r>=c}function x(){var e,n,r,i=o();if(b(i))return w(i);p=setTimeout(x,(e=i-d,n=i-h,r=t-e,g?l(r,c-n):r))}function w(e){return(p=void 0,v&&u)?m(e):(u=s=void 0,f)}function O(){var e,n=o(),r=b(n);if(u=arguments,s=this,d=n,r){if(void 0===p)return h=e=d,p=setTimeout(x,t),y?m(e):f;if(g)return clearTimeout(p),p=setTimeout(x,t),m(d)}return void 0===p&&(p=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(y=!!n.leading,c=(g="maxWait"in n)?a(i(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,u=d=s=p=void 0},O.flush=function(){return void 0===p?f:w(o())},O}},13297:(e,t,n)=>{"use strict";n.d(t,{G:()=>F});var r=n(55729),o=n(50212),i=n(92224),a=n(98499),l=n.n(a),u=n(38867),s=n.n(u),c=n(38822),f=n.n(c),p=n(51068),d=n.n(p),h=n(83817),y=n.n(h),g=n(56464),v=n(24196),m=n(3780),b=n(78895),x=n(88859),w=n(53645),O=n(1509),S=n(93780),A=["layout","type","stroke","connectNulls","isRange","ref"],j=["key"];function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function M(){return(M=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!y()(l,r)||!y()(u,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,i=t.dot,a=t.points,l=t.className,u=t.top,s=t.left,c=t.xAxis,p=t.yAxis,d=t.width,h=t.height,y=t.isAnimationActive,g=t.id;if(n||!a||!a.length)return null;var v=this.state.isAnimationFinished,x=1===a.length,w=(0,o.A)("recharts-area",l),O=c&&c.allowDataOverflow,A=p&&p.allowDataOverflow,j=O||A,E=f()(g)?this.id:g,P=null!=(e=(0,S.J9)(i,!1))?e:{r:3,strokeWidth:2},M=P.r,C=P.strokeWidth,k=((0,S.sT)(i)?i:{}).clipDot,_=void 0===k||k,T=2*(void 0===M?3:M)+(void 0===C?2:C);return r.createElement(m.W,{className:w},O||A?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(E)},r.createElement("rect",{x:O?s:s-d/2,y:A?u:u-h/2,width:O?d:2*d,height:A?h:2*h})),!_&&r.createElement("clipPath",{id:"clipPath-dots-".concat(E)},r.createElement("rect",{x:s-T/2,y:u-T/2,width:d+T,height:h+T}))):null,x?null:this.renderArea(j,E),(i||x)&&this.renderDots(j,_,E),(!y||v)&&b.Z.renderCallByParent(this.props,a))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],t&&_(a.prototype,t),n&&_(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);D(F,"displayName","Area"),D(F,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!x.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),D(F,"getBaseValue",function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,l=null!=a?a:i;if((0,w.Et)(l)&&"number"==typeof l)return l;var u="horizontal"===o?r:n,s=u.scale.domain();if("number"===u.type){var c=Math.max(s[0],s[1]),f=Math.min(s[0],s[1]);return"dataMin"===l?f:"dataMax"===l||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===l?s[0]:"dataMax"===l?s[1]:s[0]}),D(F,"getComposedData",function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,l=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,y=c&&c.length,g=F.getBaseValue(n,r,o,i),v="horizontal"===h,m=!1,b=p.map(function(e,t){y?n=c[f+t]:Array.isArray(n=(0,O.kr)(e,s))?m=!0:n=[g,n];var n,r=null==n[1]||y&&null==(0,O.kr)(e,s);return v?{x:(0,O.nb)({axis:o,ticks:a,bandSize:u,entry:e,index:t}),y:r?null:i.scale(n[1]),value:n,payload:e}:{x:r?null:o.scale(n[1]),y:(0,O.nb)({axis:i,ticks:l,bandSize:u,entry:e,index:t}),value:n,payload:e}});return t=y||m?b.map(function(e){var t=Array.isArray(e.value)?e.value[0]:null;return v?{x:e.x,y:null!=t&&null!=e.y?i.scale(t):null}:{x:null!=t?o.scale(t):null,y:e.y}}):v?i.scale(g):o.scale(g),k({points:b,baseLine:t,layout:h,isRange:m},d)}),D(F,"renderDotItem",function(e,t){var n;if(r.isValidElement(e))n=r.cloneElement(e,t);else if(l()(e))n=e(t);else{var i=(0,o.A)("recharts-area-dot","boolean"!=typeof e?e.className:""),a=t.key,u=P(t,j);n=r.createElement(v.c,M({},u,{key:a,className:i}))}return n})},13731:(e,t,n)=>{var r=n(98501),o=n(68988),i=n(56073),a=n(91544),l=n(48877);e.exports=function(e,t,n){var u=a(e)?r:i;return n&&l(e,t,n)&&(t=void 0),u(e,o(t,3))}},13917:e=>{e.exports=function(e,t){return e{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","bolt-off","IconBoltOff",[["path",{d:"M3 3l18 18",key:"svg-0"}],["path",{d:"M15.212 15.21l-4.212 5.79v-7h-6l3.79 -5.21m1.685 -2.32l2.525 -3.47v6m1 1h5l-2.104 2.893",key:"svg-1"}]])},16232:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","arrows-diagonal","IconArrowsDiagonal",[["path",{d:"M16 4l4 0l0 4",key:"svg-0"}],["path",{d:"M14 10l6 -6",key:"svg-1"}],["path",{d:"M8 20l-4 0l0 -4",key:"svg-2"}],["path",{d:"M4 20l6 -6",key:"svg-3"}]])},16878:(e,t,n)=>{"use strict";e.exports=n(29610)},17877:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},18053:(e,t,n)=>{var r=n(49355),o=n(9819),i=n(90199);e.exports=function(e){return o(e)?i(e):r(e)}},18896:function(e,t){var n,r;void 0===(r="function"==typeof(n=function e(){var t,n="u">typeof self?self:"u">typeof window?window:void 0!==n?n:{},r=!n.document&&!!n.postMessage,o=n.IS_PAPA_WORKER||!1,i={},a=0,l={};function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new d(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,t){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0=this._config.preview,o)n.postMessage({results:i,workerId:l.WORKER_ID,finished:r});else if(w(this._config.chunk)&&!t){if(this._config.chunk(i,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=i=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(i.data),this._completeResults.errors=this._completeResults.errors.concat(i.errors),this._completeResults.meta=i.meta),this._completed||!r||!w(this._config.complete)||i&&i.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||i&&i.meta.paused||this._nextChunk(),i}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):o&&this._config.error&&n.postMessage({workerId:l.WORKER_ID,error:e,finished:!1})}}function s(e){var t;(e=e||{}).chunkSize||(e.chunkSize=l.RemoteChunkSize),u.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e,n,o=this._config.downloadRequestHeaders;for(n in o)t.setRequestHeader(n,o[n])}this._config.chunkSize&&(e=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+e));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){let e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null!==(e=(e=t).getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))}}function c(e){(e=e||{}).chunkSize||(e.chunkSize=l.LocalChunkSize),u.call(this,e);var t,n,r="u">typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function f(e){var t;u.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,n;if(!this._finished)return t=(e=this._config.chunkSize)?(n=t.substring(0,e),t.substring(e)):(n=t,""),this._finished=!t,this.parseChunk(n)}}function p(e){u.call(this,e=e||{});var t=[],n=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=x(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=x(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=x(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=x(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function d(e){var t,n,r,o,i=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,a=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,u=this,s=0,c=0,f=!1,p=!1,d=[],g={data:[],errors:[],meta:{}};function v(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function m(){if(g&&r&&(O("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(g.data=g.data.filter(function(e){return!v(e)})),x()){if(g)if(Array.isArray(g.data[0])){for(var t,n=0;x()&&n(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping))?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&((e=>{if(i.test(e)&&-0x20000000000000<(e=parseFloat(e))&&e<0x20000000000000)return 1})(n)?parseFloat(n):a.test(n)?new Date(n):""===n?null:n):n)(l=e.header?o>=d.length?"__parsed_extra":d[o]:l,u=e.transform?e.transform(u,l):u);"__parsed_extra"===l?(r[l]=r[l]||[],r[l].push(u)):r[l]=u}return e.header&&(o>d.length?O("FieldMismatch","TooManyFields","Too many fields: expected "+d.length+" fields but parsed "+o,c+n):oe.preview?n.abort():(g.data=g.data[0],o(g,u))))}),this.parse=function(o,i,a){var u=e.quoteChar||'"',u=(e.newline||(e.newline=this.guessLineEndings(o,u)),r=!1,e.delimiter?w(e.delimiter)&&(e.delimiter=e.delimiter(o),g.meta.delimiter=e.delimiter):((u=((t,n,r,o,i)=>{var a,u,s,c;i=i||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var f=0;f=n.length/2?"\r\n":"\r"}}function h(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function y(e){var t=(e=e||{}).delimiter,n=e.newline,r=e.comments,o=e.step,i=e.preview,a=e.fastMode,u=null,s=!1,c=null==e.quoteChar?'"':e.quoteChar,f=c;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1=i)return B(!0);break}A.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:S.length,index:p}),T++}}else if(r&&0===j.length&&l.substring(p,p+x)===r){if(-1===k)return B();p=k+b,k=l.indexOf(n,p),C=l.indexOf(t,p)}else if(-1!==C&&(C=i)return B(!0)}return N();function R(e){S.push(e),E=p}function D(e){return -1!==e&&(e=l.substring(T+1,e))&&""===e.trim()?e.length:0}function N(e){return g||(void 0===e&&(e=l.substring(p)),j.push(e),p=v,R(j),O&&L()),B()}function F(e){p=e,R(j),j=[],k=l.indexOf(n,p)}function B(r){if(e.header&&!y&&S.length&&!s){var o=S[0],i=Object.create(null),a=new Set(o);let t=!1;for(let n=0;n{if("object"==typeof t){if("string"!=typeof t.delimiter||l.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(o=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(s=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");c=t.columns}void 0!==t.escapeChar&&(u=t.escapeChar+a),t.escapeFormulae instanceof RegExp?f=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(f=/^[=+\-@\t\r].*$/)}})(),RegExp(h(a),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return d(null,e,s);if("object"==typeof e[0])return d(c||Object.keys(e[0]),e,s)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||c),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),d(e.fields||[],e.data||[],s);throw Error("Unable to serialize unrecognized input");function d(e,t,n){var a="",l=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0{for(var n=0;n{var r=n(50515);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},21248:(e,t,n)=>{e.exports=n(83588)()},21440:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tm});var o=n(55729),i=n(56760);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;ttypeof ResizeObserver?t=new ResizeObserver(function(e){e.forEach(function(e){r._measureElement(e.target,e)})}):null)},{disconnect:function(){var e;return null==(e=n())?void 0:e.disconnect()},observe:function(e){var t;return null==(t=n())?void 0:t.observe(e,{box:"border-box"})},unobserve:function(e){var t;return null==(t=n())?void 0:t.unobserve(e)}}),this.range=null,this.setOptions=function(e){Object.entries(e).forEach(function(t){var n=t[0];void 0===t[1]&&delete e[n]}),r.options=a({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:s,rangeExtractor:c,onChange:function(){},measureElement:d,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(e){null==r.options.onChange||r.options.onChange(r,e)},this.maybeNotify=l(function(){return r.calculateRange(),[r.isScrolling,r.range?r.range.startIndex:null,r.range?r.range.endIndex:null]},function(e){r.notify(e)},{key:!1,debug:function(){return r.options.debug},initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=function(){r.unsubs.filter(Boolean).forEach(function(e){return e()}),r.unsubs=[],r.scrollElement=null},this._didMount=function(){return r.measureElementCache.forEach(r.observer.observe),function(){r.observer.disconnect(),r.cleanup()}},this._willUpdate=function(){var e=r.options.getScrollElement();r.scrollElement!==e&&(r.cleanup(),r.scrollElement=e,r._scrollToOffset(r.scrollOffset,{adjustments:void 0,behavior:void 0}),r.unsubs.push(r.options.observeElementRect(r,function(e){r.scrollRect=e,r.maybeNotify()})),r.unsubs.push(r.options.observeElementOffset(r,function(e){r.scrollAdjustments=0,r.scrollOffset!==e&&(null!==r.isScrollingTimeoutId&&(clearTimeout(r.isScrollingTimeoutId),r.isScrollingTimeoutId=null),r.isScrolling=!0,r.scrollDirection=r.scrollOffset=0;i--){var a=e[i];if(!n.has(a.lane)){var l=o.get(a.lane);if(null==l||a.end>l.end?o.set(a.lane,a):a.end0?Math.min.apply(Math,r.pendingMeasuredCacheIndexes):0;r.pendingMeasuredCacheIndexes=[];for(var u=r.measurementsCache.slice(0,l),s=l;s0&&t>0?function(e){for(var t=e.measurements,n=e.outerSize,r=e.scrollOffset,o=t.length-1,i=g(0,o,function(e){return t[e].start},r),a=i;a=r.scrollOffset+n?"end":"start"),"start"===t||("end"===t?e-=n:"center"===t&&(e-=n/2));var o=r.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((r.scrollElement?"document"in r.scrollElement?r.scrollElement.document.documentElement[o]:r.scrollElement[o]:0)-r.getSize(),e),0)},this.getOffsetForIndex=function(e,t){void 0===t&&(t="auto"),e=Math.max(0,Math.min(e,r.options.count-1));var n=u(r.getMeasurements()[e]);if("auto"===t)if(n.end>=r.scrollOffset+r.getSize()-r.options.scrollPaddingEnd)t="end";else{if(!(n.start<=r.scrollOffset+r.options.scrollPaddingStart))return[r.scrollOffset,t];t="start"}var o="end"===t?n.end+r.options.scrollPaddingEnd:n.start-r.options.scrollPaddingStart;return[r.getOffsetForAlignment(o,t),t]},this.isDynamicMode=function(){return r.measureElementCache.size>0},this.cancelScrollToIndex=function(){null!==r.scrollToIndexTimeoutId&&(clearTimeout(r.scrollToIndexTimeoutId),r.scrollToIndexTimeoutId=null)},this.scrollToOffset=function(e,t){var n=void 0===t?{}:t,o=n.align,i=n.behavior;r.cancelScrollToIndex(),"smooth"===i&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),r._scrollToOffset(r.getOffsetForAlignment(e,void 0===o?"start":o),{adjustments:void 0,behavior:i})},this.scrollToIndex=function(e,t){var n=void 0===t?{}:t,o=n.align,i=n.behavior;e=Math.max(0,Math.min(e,r.options.count-1)),r.cancelScrollToIndex(),"smooth"===i&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");var a=r.getOffsetForIndex(e,void 0===o?"auto":o),l=a[0],u=a[1];r._scrollToOffset(l,{adjustments:void 0,behavior:i}),"smooth"!==i&&r.isDynamicMode()&&(r.scrollToIndexTimeoutId=setTimeout(function(){(r.scrollToIndexTimeoutId=null,r.measureElementCache.has(r.options.getItemKey(e)))&&1>Math.abs(r.getOffsetForIndex(e,u)[0]-r.scrollOffset)||r.scrollToIndex(e,{align:u,behavior:i})}))},this.scrollBy=function(e,t){var n=(void 0===t?{}:t).behavior;r.cancelScrollToIndex(),"smooth"===n&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),r._scrollToOffset(r.scrollOffset+e,{adjustments:void 0,behavior:n})},this.getTotalSize=function(){var e;return((null==(e=r.getMeasurements()[r.options.count-1])?void 0:e.end)||r.options.paddingStart)-r.options.scrollMargin+r.options.paddingEnd},this._scrollToOffset=function(e,t){var n=t.adjustments,o=t.behavior;r.options.scrollToFn(e,{behavior:o,adjustments:n},r)},this.measure=function(){r.itemSizeCache=new Map,r.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(function(e){r.itemSizeCache.set(e.key,e.size)}),this.maybeNotify()},g=function(e,t,n,r){for(;e<=t;){var o=(e+t)/2|0,i=n(o);if(ir))return o;t=o-1}}return e>0?e-1:0},v="u">typeof document?o.useLayoutEffect:o.useEffect;function m(e){var t,n,a,l;return t=r({observeElementRect:f,observeElementOffset:p,scrollToFn:h},e),n=o.useReducer(function(){return{}},{})[1],a=r({},t,{onChange:function(e,r){r?(0,i.flushSync)(n):n(),null==t.onChange||t.onChange(e,r)}}),(l=o.useState(function(){return new y(a)})[0]).setOptions(a),o.useEffect(function(){return l._didMount()},[]),v(function(){return l._willUpdate()}),l}},21865:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(30669),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,i=RegExp(o.source,"g");function a(e,t){var n,a,l,u,s,c=o.lastIndex=i.lastIndex=0,f=-1,p=[],d=[];for(e+="",t+="";(l=o.exec(e))&&(u=i.exec(t));)(s=u.index)>c&&(s=t.slice(c,s),p[f]?p[f]+=s:p[++f]=s),(l=l[0])===(u=u[0])?p[f]?p[f]+=u:p[++f]=u:(p[++f]=null,d.push({i:f,x:(0,r.A)(l,u)})),c=i.lastIndex;return c{var r=n(22926),o=n(68668),i=n(86152),a=n(82694),l=n(79860),u=n(48546);e.exports=function(e,t,n){var s=-1,c=o,f=e.length,p=!0,d=[],h=d;if(n)p=!1,c=i;else if(f>=200){var y=t?null:l(e);if(y)return u(y);p=!1,c=a,h=new r}else h=t?[]:d;t:for(;++s{var r=n(86301),o=n(23356),i=n(50515),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):l.test(e)?a:+e}},22926:(e,t,n)=>{var r=n(33276),o=n(91353),i=n(36022);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t{var r=n(45516);e.exports=function(){return r.Date.now()}},24196:(e,t,n)=>{"use strict";n.d(t,{c:()=>u});var r=n(55729),o=n(50212),i=n(27281),a=n(93780);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=n(5586),o=n(48877),i=n(11061);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","text-wrap","IconTextWrap",[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 18l5 0",key:"svg-1"}],["path",{d:"M4 12h13a3 3 0 0 1 0 6h-4l2 -2m0 4l-2 -2",key:"svg-2"}]])},25599:(e,t,n)=>{"use strict";n.d(t,{E:()=>F});var r=n(55729),o=n(38822),i=n.n(o),a=n(50212),l=n(53645),u=n(88859),s=n(93780),c=n(90505);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(function(e,t){var i=t.word,a=t.width,l=e[e.length-1];return l&&(null==r||o||l.width+a+na||t.reduce(function(e,t){return e.width>t.width?e:t}).width>Number(r),t]},y=0,g=u.length-1,v=0;y<=g&&v<=u.length-1;){var m=Math.floor((y+g)/2),b=C(h(m-1),2),x=b[0],w=b[1],O=C(h(m),1)[0];if(x||O||(y=m+1),x&&O&&(g=m-1),!x&&O){i=w;break}v++}return i||d},R=function(e){return[{words:i()(e)?[]:e.toString().split(_)}]},D=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!u.m.isSsr){var l=T({breakAll:i,children:r,style:o});if(!l)return R(r);var s=l.wordsWithComputedWidth,c=l.spaceWidth;return I({breakAll:i,children:r,maxLines:a,style:o},s,c,t,n)}return R(r)},N="#808080",F=function(e){var t,n=e.x,o=void 0===n?0:n,i=e.y,u=void 0===i?0:i,c=e.lineHeight,f=void 0===c?"1em":c,p=e.capHeight,d=void 0===p?"0.71em":p,h=e.scaleToFit,y=void 0!==h&&h,g=e.textAnchor,v=e.verticalAnchor,m=e.fill,b=void 0===m?N:m,x=M(e,j),w=(0,r.useMemo)(function(){return D({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:y,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,y,x.style,x.width]),O=x.dx,S=x.dy,C=x.angle,k=x.className,_=x.breakAll,T=M(x,E);if(!(0,l.vh)(o)||!(0,l.vh)(u))return null;var I=o+((0,l.Et)(O)?O:0),R=u+((0,l.Et)(S)?S:0);switch(void 0===v?"end":v){case"start":t=A("calc(".concat(d,")"));break;case"middle":t=A("calc(".concat((w.length-1)/2," * -").concat(f," + (").concat(d," / 2))"));break;default:t=A("calc(".concat(w.length-1," * -").concat(f,")"))}var F=[];if(y){var B=w[0].width,L=x.width;F.push("scale(".concat(((0,l.Et)(L)?L/B:1)/B,")"))}return C&&F.push("rotate(".concat(C,", ").concat(I,", ").concat(R,")")),F.length&&(T.transform=F.join(" ")),r.createElement("text",P({},(0,s.J9)(T,!0),{x:I,y:R,className:(0,a.A)("recharts-text",k),textAnchor:void 0===g?"start":g,fill:b.includes("url")?N:b}),w.map(function(e,n){var o=e.words.join(_?"":" ");return r.createElement("tspan",{x:I,dy:0===n?t:f,key:"".concat(o,"-").concat(n)},o)}))}},26194:(e,t,n)=>{var r=n(83965),o=n(37390),i=n(45895),a=n(48877);e.exports=i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])})},27281:(e,t,n)=>{"use strict";n.d(t,{QQ:()=>l,VU:()=>s,XC:()=>p,_U:()=>f,j2:()=>c});var r=n(55729),o=n(23356),i=n.n(o);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],u=["points","pathLength"],s={svg:["viewBox","children"],polygon:u,polyline:u},c=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],f=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,r.isValidElement)(e)&&(n=e.props),!i()(n))return null;var o={};return Object.keys(n).forEach(function(e){c.includes(e)&&(o[e]=t||function(t){return n[e](n,t)})}),o},p=function(e,t,n){if(!i()(e)||"object"!==a(e))return null;var r=null;return Object.keys(e).forEach(function(o){var i=e[o];c.includes(o)&&"function"==typeof i&&(r||(r={}),r[o]=function(e){return i(t,n,e),null})}),r}},27798:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","bolt","IconBolt",[["path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11",key:"svg-0"}]])},28469:(e,t,n)=>{var r=n(28617),o=n(87567);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},28617:(e,t,n)=>{var r=n(23356);e.exports=function(e){return e==e&&!r(e)}},28816:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=e=>()=>e},29090:(e,t,n)=>{var r=n(22926),o=n(98501),i=n(82694);e.exports=function(e,t,n,a,l,u){var s=1&n,c=e.length,f=t.length;if(c!=f&&!(s&&f>c))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var h=-1,y=!0,g=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h{var r=n(50956);e.exports=function(e,t){var n=!0;return r(e,function(e,r,o){return n=!!t(e,r,o)}),n}},29610:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isFragment=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case f:case p:return e;default:switch(e=e&&e.$$typeof){case s:case u:case c:case h:case d:case l:return e;default:return t}}case r:return t}}}(e)===o}},30669:(e,t,n)=>{"use strict";function r(e,t){return e*=1,t*=1,function(n){return e*(1-n)+t*n}}n.d(t,{A:()=>r})},30988:(e,t,n)=>{"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function o(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function i(){}n.d(t,{Ay:()=>b,Qh:()=>O});var a="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s=/^#([0-9a-f]{3,8})$/,c=RegExp(`^rgb\\(${a},${a},${a}\\)$`),f=RegExp(`^rgb\\(${u},${u},${u}\\)$`),p=RegExp(`^rgba\\(${a},${a},${a},${l}\\)$`),d=RegExp(`^rgba\\(${u},${u},${u},${l}\\)$`),h=RegExp(`^hsl\\(${l},${u},${u}\\)$`),y=RegExp(`^hsla\\(${l},${u},${u},${l}\\)$`),g={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function v(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function b(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=s.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?x(t):3===n?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?w(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?w(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=c.exec(e))?new S(t[1],t[2],t[3],1):(t=f.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?w(t[1],t[2],t[3],t[4]):(t=d.exec(e))?w(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=h.exec(e))?C(t[1],t[2]/100,t[3]/100,1):(t=y.exec(e))?C(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?x(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function x(e){return new S(e>>16&255,e>>8&255,255&e,1)}function w(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function O(e,t,n,r){var o;return 1==arguments.length?((o=e)instanceof i||(o=b(o)),o)?new S((o=o.rgb()).r,o.g,o.b,o.opacity):new S:new S(e,t,n,null==r?1:r)}function S(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function A(){return`#${M(this.r)}${M(this.g)}${M(this.b)}`}function j(){let e=E(this.opacity);return`${1===e?"rgb(":"rgba("}${P(this.r)}, ${P(this.g)}, ${P(this.b)}${1===e?")":`, ${e})`}`}function E(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function P(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function M(e){return((e=P(e))<16?"0":"")+e.toString(16)}function C(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _(e,t,n,r)}function k(e){if(e instanceof _)return new _(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new _;if(e instanceof _)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),l=NaN,u=a-o,s=(a+o)/2;return u?(l=t===a?(n-r)/u+(n0&&s<1?0:l,new _(l,u,s,e.opacity)}function _(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function T(e){return(e=(e||0)%360)<0?e+360:e}function I(e){return Math.max(0,Math.min(1,e||0))}function R(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}r(i,b,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return k(this).formatHsl()},formatRgb:m,toString:m}),r(S,O,o(i,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new S(P(this.r),P(this.g),P(this.b),E(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:A,formatHex:A,formatHex8:function(){return`#${M(this.r)}${M(this.g)}${M(this.b)}${M((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:j,toString:j})),r(_,function(e,t,n,r){return 1==arguments.length?k(e):new _(e,t,n,null==r?1:r)},o(i,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new _(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new S(R(e>=240?e-240:e+120,o,r),R(e,o,r),R(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new _(T(this.h),I(this.s),I(this.l),E(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=E(this.opacity);return`${1===e?"hsl(":"hsla("}${T(this.h)}, ${100*I(this.s)}%, ${100*I(this.l)}%${1===e?")":`, ${e})`}`}}))},31292:(e,t,n)=>{"use strict";n.d(t,{m:()=>U});var r=n(55729),o=n(26194),i=n.n(o),a=n(38822),l=n.n(a),u=n(50212),s=n(53645);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(d,2)||function(e,t){if(e){if("string"==typeof e)return p(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,2)}}(d,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();u=m[0],f=m[1]}else u=d}return r.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:o},(0,s.vh)(f)?r.createElement("span",{className:"recharts-tooltip-item-name"},f):null,(0,s.vh)(f)?r.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,r.createElement("span",{className:"recharts-tooltip-item-value"},u),r.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return r.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t,n){var r;return(r=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==v(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b="recharts-tooltip-wrapper",x={visibility:"hidden"};function w(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,l=e.tooltipDimension,u=e.viewBox,c=e.viewBoxDimension;if(i&&(0,s.Et)(i[r]))return i[r];var f=n[r]-l-o,p=n[r]+o;return t[r]?a[r]?f:p:a[r]?fu[r]+c?Math.max(f,u[r]):Math.max(p,u[r])}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null==(e=this.props.coordinate)?void 0:e.x)!==this.state.dismissedAtCoordinate.x||(null==(t=this.props.coordinate)?void 0:t.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var e,t,n,o,i,a,l,c,f,p,d,h,y,g,v,O,S,j,E,P=this,M=this.props,C=M.active,k=M.allowEscapeViewBox,_=M.animationDuration,T=M.animationEasing,I=M.children,R=M.coordinate,D=M.hasPayload,N=M.isAnimationActive,F=M.offset,B=M.position,L=M.reverseDirection,z=M.useTranslate3d,V=M.viewBox,U=M.wrapperStyle,H=(h=(e={allowEscapeViewBox:k,coordinate:R,offsetTopLeft:F,position:B,reverseDirection:L,tooltipBox:this.state.lastBoundingBox,useTranslate3d:z,viewBox:V}).allowEscapeViewBox,y=e.coordinate,g=e.offsetTopLeft,v=e.position,O=e.reverseDirection,S=e.tooltipBox,j=e.useTranslate3d,E=e.viewBox,S.height>0&&S.width>0&&y?(n=(t={translateX:p=w({allowEscapeViewBox:h,coordinate:y,key:"x",offsetTopLeft:g,position:v,reverseDirection:O,tooltipDimension:S.width,viewBox:E,viewBoxDimension:E.width}),translateY:d=w({allowEscapeViewBox:h,coordinate:y,key:"y",offsetTopLeft:g,position:v,reverseDirection:O,tooltipDimension:S.height,viewBox:E,viewBoxDimension:E.height}),useTranslate3d:j}).translateX,o=t.translateY,f={transform:t.useTranslate3d?"translate3d(".concat(n,"px, ").concat(o,"px, 0)"):"translate(".concat(n,"px, ").concat(o,"px)")}):f=x,{cssProperties:f,cssClasses:(a=(i={translateX:p,translateY:d,coordinate:y}).coordinate,l=i.translateX,c=i.translateY,(0,u.A)(b,m(m(m(m({},"".concat(b,"-right"),(0,s.Et)(l)&&a&&(0,s.Et)(a.x)&&l>=a.x),"".concat(b,"-left"),(0,s.Et)(l)&&a&&(0,s.Et)(a.x)&&l=a.y),"".concat(b,"-top"),(0,s.Et)(c)&&a&&(0,s.Et)(a.y)&&c0;return r.createElement(k,{allowEscapeViewBox:i,animationDuration:a,animationEasing:l,isAnimationActive:f,active:o,coordinate:s,hasPayload:O,offset:p,position:y,reverseDirection:v,useTranslate3d:m,viewBox:b,wrapperStyle:x},(e=D(D({},this.props),{},{payload:w}),r.isValidElement(u)?r.cloneElement(u,e):"function"==typeof u?r.createElement(u,e):r.createElement(g,e)))}}],function(e,t){for(var n=0;n{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;tl,Kg:()=>a,yy:()=>f}),n(38822),n(55729),n(98499);var a=Math.PI/180,l=function(e,t,n,r){return{x:e+Math.cos(-a*r)*n,y:t+Math.sin(-a*r)*n}},u=function(e,t){var n=e.x,r=e.y;return Math.sqrt(Math.pow(n-t.x,2)+Math.pow(r-t.y,2))},s=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=u({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var l=Math.acos((n-o)/a);return r>i&&(l=2*Math.PI-l),{radius:a,angle:180*l/Math.PI,angleInRadian:l}},c=function(e){var t=e.startAngle,n=e.endAngle,r=Math.min(Math.floor(t/360),Math.floor(n/360));return{startAngle:t-360*r,endAngle:n-360*r}},f=function(e,t){var n,r=s({x:e.x,y:e.y},t),o=r.radius,a=r.angle,l=t.innerRadius,u=t.outerRadius;if(ou)return!1;if(0===o)return!0;var f=c(t),p=f.startAngle,d=f.endAngle,h=a;if(p<=d){for(;h>d;)h-=360;for(;h=p&&h<=d}else{for(;h>p;)h-=360;for(;h=d&&h<=p}return n?i(i({},t),{},{radius:o,angle:h+360*Math.min(Math.floor(t.startAngle/360),Math.floor(t.endAngle/360))}):null}},31835:(e,t,n)=>{var r=n(25080),o=n(50025),i=n(66581),a=n(29090),l=n(45852),u=n(48546),s=r?r.prototype:void 0,c=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!f(new o(e),new o(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=l;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)break;var y=p.get(e);if(y)return y==t;r|=2,p.set(e,t);var g=a(d(e),d(t),r,s,f,p);return p.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},32347:(e,t,n)=>{"use strict";n.d(t,{f:()=>h});var r=n(98499),o=n.n(r),i=n(53645),a=n(90505),l=n(88859),u=n(83687);function s(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;oe*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t=2?(0,i.sA)(v[1].coordinate-v[0].coordinate):1,C=(r="width"===j,f=m.x,p=m.y,h=m.width,y=m.height,1===M?{start:r?f:p,end:r?f+h:p+y}:{start:r?f+h:p+y,end:r?f:p});return"equidistantPreserveStart"===w?function(e,t,n,r,o){for(var i,a=(r||[]).slice(),l=t.start,u=t.end,f=0,p=1,d=l;p<=a.length;)if(i=function(){var t,i=null==r?void 0:r[f];if(void 0===i)return{v:s(r,p)};var a=f,h=function(){return void 0===t&&(t=n(i,a)),t},y=i.coordinate,g=0===f||c(e,y,h,d,u);g||(f=0,d=l,p+=1),g&&(d=y+e*(h()/2+o),f+=p)}())return i.v;return[]}(M,C,P,v,b):("preserveStart"===w||"preserveStartEnd"===w?function(e,t,n,r,o,i){var a=(r||[]).slice(),l=a.length,u=t.start,s=t.end;if(i){var f=r[l-1],p=n(f,l-1),h=e*(f.coordinate+e*p/2-s);a[l-1]=f=d(d({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate}),c(e,f.tickCoord,function(){return p},u,s)&&(s=f.tickCoord-e*(p/2+o),a[l-1]=d(d({},f),{},{isShow:!0}))}for(var y=i?l-1:l,g=function(t){var r,i=a[t],l=function(){return void 0===r&&(r=n(i,t)),r};if(0===t){var f=e*(i.coordinate-e*l()/2-u);a[t]=i=d(d({},i),{},{tickCoord:f<0?i.coordinate-f*e:i.coordinate})}else a[t]=i=d(d({},i),{},{tickCoord:i.coordinate});c(e,i.tickCoord,l,u,s)&&(u=i.tickCoord+e*(l()/2+o),a[t]=d(d({},i),{},{isShow:!0}))},v=0;v0?s.coordinate-p*e:s.coordinate})}else i[t]=s=d(d({},s),{},{tickCoord:s.coordinate});c(e,s.tickCoord,f,l,u)&&(u=s.tickCoord-e*(f()/2+o),i[t]=d(d({},s),{},{isShow:!0}))},f=a-1;f>=0;f--)s(f);return i}(M,C,P,v,b)).filter(function(e){return e.isShow})}},32716:(e,t,n)=>{"use strict";n.d(t,{gu:()=>tc});var r,o,i=n(55729),a=n(38822),l=n.n(a),u=n(98499),s=n.n(u),c=n(7071),f=n.n(c),p=n(60449),d=n.n(p),h=n(26194),y=n.n(h),g=n(47687),v=n.n(g),m=n(50212),b=n(73403),x=n(55426),w=n(3780),O=n(31292),S=n(64370),A=n(24196),j=n(2390),E=n(93780),P=n(49726),M=n(25599),C=n(1509),k=n(53645);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t0&&t.handleDrag(e.changedTouches[0])}),$(t,"handleDragEnd",function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:n,startIndex:o})}),t.detachDragEndListener()}),$(t,"handleLeaveWrapper",function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))}),$(t,"handleEnterSlideOrTraveller",function(){t.setState({isTextActive:!0})}),$(t,"handleLeaveSlideOrTraveller",function(){t.setState({isTextActive:!1})}),$(t,"handleSlideDragStart",function(e){var n=X(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()}),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(t,"startX"),endX:t.handleTravellerDragStart.bind(t,"endX")},t.state={},t}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&G(r,e),t=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,l=i.data.length-1,u=Math.min(t,n),s=Math.max(t,n),c=r.getIndexInRange(o,u),f=r.getIndexInRange(o,s);return{startIndex:c-c%a,endIndex:f===l?l:f-f%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=(0,C.kr)(n[e],o,e);return s()(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,l=i.width,u=i.travellerWidth,s=i.startIndex,c=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+l-u-o,a+l-u-r):p<0&&(p=Math.max(p,a-r,a-o));var d=this.getIndex({startX:r+p,endX:o+p});(d.startIndex!==s||d.endIndex!==c)&&f&&f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=X(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[r],l=this.props,u=l.x,s=l.width,c=l.travellerWidth,f=l.onChange,p=l.gap,d=l.data,h={startX:this.state.startX,endX:this.state.endX},y=e.pageX-n;y>0?y=Math.min(y,u+s-c-a):y<0&&(y=Math.max(y,u-a)),h[r]=a+y;var g=this.getIndex(h),v=g.startIndex,m=g.endIndex,b=function(){var e=d.length-1;return"startX"===r&&(o>i?v%p==0:m%p==0)||!!(oi?m%p==0:v%p==0)||!!(o>i)&&m===e};this.setState($($({},r,a+y),"brushMoveStartX",e.pageX),function(){f&&b()&&f(g)})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,i=r.startX,a=r.endX,l=this.state[t],u=o.indexOf(l);if(-1!==u){var s=u+e;if(-1!==s&&!(s>=o.length)){var c=o[s];"startX"===t&&c>=a||"endX"===t&&c<=i||this.setState($({},t,c),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,l=e.stroke;return i.createElement("rect",{stroke:l,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.data,l=e.children,u=e.padding,s=i.Children.only(l);return s?i.cloneElement(s,{x:t,y:n,width:r,height:o,margin:u,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n,o,a=this,l=this.props,u=l.y,s=l.travellerWidth,c=l.height,f=l.traveller,p=l.ariaLabel,d=l.data,h=l.startIndex,y=l.endIndex,g=Math.max(e,this.props.x),v=z(z({},(0,E.J9)(this.props,!1)),{},{x:g,y:u,width:s,height:c}),m=p||"Min value: ".concat(null==(n=d[h])?void 0:n.name,", Max value: ").concat(null==(o=d[y])?void 0:o.name);return i.createElement(w.W,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(f,v))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,l=n.travellerWidth,u=Math.min(e,t)+l,s=Math.max(Math.abs(t-e)-l,0);return i.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:r,width:s,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,l=e.stroke,u=this.state,s=u.startX,c=u.endX,f={pointerEvents:"none",fill:l};return i.createElement(w.W,{className:"recharts-brush-texts"},i.createElement(M.E,B({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,c)-5,y:r+o/2},f),this.getTextOfTick(t)),i.createElement(M.E,B({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,c)+a+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,l=e.width,u=e.height,s=e.alwaysShowText,c=this.state,f=c.startX,p=c.endX,d=c.isTextActive,h=c.isSlideMoving,y=c.isTravellerMoving,g=c.isTravellerFocused;if(!t||!t.length||!(0,k.Et)(o)||!(0,k.Et)(a)||!(0,k.Et)(l)||!(0,k.Et)(u)||l<=0||u<=0)return null;var v=(0,m.A)("recharts-brush",n),b=1===i.Children.count(r),x=N("userSelect","none");return i.createElement(w.W,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||y||g||s)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,l=Math.floor(n+o/2)-1;return i.createElement(i.Fragment,null,i.createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),i.createElement("line",{x1:t+1,y1:l,x2:t+r-1,y2:l,fill:"none",stroke:"#fff"}),i.createElement("line",{x1:t+1,y1:l+2,x2:t+r-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):s()(e)?e(t):r.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,l=e.startIndex,u=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return z({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?q({data:n,width:r,x:o,travellerWidth:i,startIndex:l,endIndex:u}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var s=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:s}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=e.length,r=0,o=n-1;o-r>1;){var i=Math.floor((r+o)/2);e[i]>t?o=i:r=i}return t>=e[o]?o:r}}],t&&V(r.prototype,t),n&&V(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(i.PureComponent);$(K,"displayName","Brush"),$(K,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Y=n(90505),J=n(65049),Z=n(35555),Q=n(47374),ee=n(83687),et=n(7571);function en(){return(en=Object.assign?Object.assign.bind():function(e){for(var t=1;ttypeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return eg(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eg(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,e_));return(0,k.Et)(n)&&(0,k.Et)(o)&&(0,k.Et)(f)&&(0,k.Et)(d)&&(0,k.Et)(l)&&(0,k.Et)(s)?i.createElement("path",eT({},(0,E.J9)(y,!0),{className:(0,m.A)("recharts-cross",h),d:"M".concat(n,",").concat(l,"v").concat(d,"M").concat(s,",").concat(o,"h").concat(f)})):null};function eD(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle;return{points:[(0,em.IZ)(t,n,r,o),(0,em.IZ)(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}var eN=n(11107);function eF(e){return(eF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eL(e){for(var t=1;ttypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||eZ(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eq(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function eX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eX=function(){return!!e})()}function eK(e){return(eK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eY(e,t){return(eY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eJ(e){return function(e){if(Array.isArray(e))return eQ(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eZ(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eZ(e,t){if(e){if("string"==typeof e)return eQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eQ(e,t)}}function eQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?i:e&&e.length&&(0,k.Et)(r)&&(0,k.Et)(o)?e.slice(r,o+1):[]};function te(e){return"number"===e?[0,"auto"]:void 0}var tt=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=e7(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce(function(o,l){var u,s,c=null!=(u=l.props.data)?u:t;if(c&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(c=c.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory){var f=void 0===c?a:c;s=(0,k.eP)(f,i.dataKey,r)}else s=c&&c[n]||a[n];return s?[].concat(eJ(o),[(0,C.zb)(l,s)]):o},[])},tn=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i="horizontal"===n?o.x:"vertical"===n?o.y:"centric"===n?o.angle:o.radius,a=e.orderedTooltipTicks,l=e.tooltipAxis,u=e.tooltipTicks,s=(0,C.gH)(i,a,u,l);if(s>=0&&u){var c=u[s]&&u[s].value,f=tt(e,t,s,c),p=e4(n,a,s,o);return{activeTooltipIndex:s,activeLabel:c,activePayload:f,activeCoordinate:p}}return null},tr=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,u=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,p=e.children,d=e.stackOffset,h=(0,C._L)(c,o);return n.reduce(function(t,n){var y=void 0!==n.type.defaultProps?e1(e1({},n.type.defaultProps),n.props):n.props,g=y.type,v=y.dataKey,m=y.allowDataOverflow,b=y.allowDuplicatedCategory,x=y.scale,w=y.ticks,O=y.includeHidden,S=y[i];if(t[S])return t;var A=e7(e.data,{graphicalItems:r.filter(function(e){var t;return(i in e.props?e.props[i]:null==(t=e.type.defaultProps)?void 0:t[i])===S}),dataStartIndex:u,dataEndIndex:s}),j=A.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&(0,k.Et)(r)&&(0,k.Et)(o))return!0}return!1})(y.domain,m,g)&&(M=(0,C.AQ)(y.domain,null,m),h&&("number"===g||"auto"!==x)&&(T=(0,C.Ay)(A,v,"category")));var E=te(g);if(!M||0===M.length){var P,M,_,T,I,R=null!=(I=y.domain)?I:E;if(v){if(M=(0,C.Ay)(A,v,g),"category"===g&&h){var D=(0,k.CG)(M);b&&D?(_=M,M=f()(0,j)):b||(M=(0,C.KC)(R,M,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(eJ(e),[t])},[]))}else if("category"===g)M=b?M.filter(function(e){return""!==e&&!l()(e)}):(0,C.KC)(R,M,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||l()(t)?e:[].concat(eJ(e),[t])},[]);else if("number"===g){var N=(0,C.A1)(A,r.filter(function(e){var t,n,r=i in e.props?e.props[i]:null==(t=e.type.defaultProps)?void 0:t[i],o="hide"in e.props?e.props.hide:null==(n=e.type.defaultProps)?void 0:n.hide;return r===S&&(O||!o)}),v,o,c);N&&(M=N)}h&&("number"===g||"auto"!==x)&&(T=(0,C.Ay)(A,v,"category"))}else M=h?f()(0,j):a&&a[S]&&a[S].hasStack&&"number"===g?"expand"===d?[0,1]:(0,C.Mk)(a[S].stackGroups,u,s):(0,C.vf)(A,r.filter(function(e){var t=i in e.props?e.props[i]:e.type.defaultProps[i],n="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===S&&(O||!n)}),g,c,!0);"number"===g?(M=ev(p,M,S,o,w),R&&(M=(0,C.AQ)(R,M,m))):"category"===g&&R&&M.every(function(e){return R.indexOf(e)>=0})&&(M=R)}return e1(e1({},t),{},e2({},S,e1(e1({},y),{},{axisType:o,domain:M,categoricalDomain:T,duplicateDomain:_,originalDomain:null!=(P=y.domain)?P:E,isCategorical:h,layout:c})))},{})},to=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,u=t.dataEndIndex,s=e.layout,c=e.children,p=e7(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),h=p.length,y=(0,C._L)(s,o),g=-1;return n.reduce(function(e,t){var v,m=(void 0!==t.type.defaultProps?e1(e1({},t.type.defaultProps),t.props):t.props)[i],b=te("number");return e[m]?e:(g++,v=y?f()(0,h):a&&a[m]&&a[m].hasStack?ev(c,v=(0,C.Mk)(a[m].stackGroups,l,u),m,o):ev(c,v=(0,C.AQ)(b,(0,C.vf)(p,n.filter(function(e){var t,n,r=i in e.props?e.props[i]:null==(t=e.type.defaultProps)?void 0:t[i],o="hide"in e.props?e.props.hide:null==(n=e.type.defaultProps)?void 0:n.hide;return r===m&&!o}),"number",s),r.defaultProps.allowDataOverflow),m,o),e1(e1({},e),{},e2({},m,e1(e1({axisType:o},r.defaultProps),{},{hide:!0,orientation:d()(e3,"".concat(o,".").concat(g%2),null),domain:v,originalDomain:b,isCategorical:y,layout:s}))))},{})},ti=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,l=t.dataStartIndex,u=t.dataEndIndex,s=e.children,c="".concat(r,"Id"),f=(0,E.aS)(s,o),p={};return f&&f.length?p=tr(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:u}):i&&i.length&&(p=to(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:u})),p},ta=function(e){var t=(0,k.lX)(e),n=(0,C.Rh)(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:y()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:(0,C.Hj)(t,n)}},tl=function(e){var t=e.children,n=e.defaultShowTooltip,r=(0,E.BU)(t,K),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(i=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:!!n}},tu=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},ts=function(e,t){var n=e.props,r=e.graphicalItems,o=e.xAxisMap,i=void 0===o?{}:o,a=e.yAxisMap,l=void 0===a?{}:a,u=n.width,s=n.height,c=n.children,f=n.margin||{},p=(0,E.BU)(c,K),h=(0,E.BU)(c,S.s),y=Object.keys(l).reduce(function(e,t){var n=l[t],r=n.orientation;return n.mirror||n.hide?e:e1(e1({},e),{},e2({},r,e[r]+n.width))},{left:f.left||0,right:f.right||0}),g=Object.keys(i).reduce(function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:e1(e1({},e),{},e2({},r,d()(e,"".concat(r))+n.height))},{top:f.top||0,bottom:f.bottom||0}),v=e1(e1({},g),y),m=v.bottom;p&&(v.bottom+=p.props.height||K.defaultProps.height),h&&t&&(v=(0,C.s0)(v,r,n,t));var b=u-v.left-v.right,x=s-v.top-v.bottom;return e1(e1({brushBottom:m},v),{},{width:Math.max(b,0),height:Math.max(x,0)})},tc=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.defaultTooltipEventType,o=void 0===r?"axis":r,a=e.validateTooltipEventTypes,u=void 0===a?["axis"]:a,c=e.axisComponents,f=e.legendContent,p=e.formatAxisMap,h=e.defaultProps,y=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,u=t.dataEndIndex,s=e.barSize,f=e.layout,p=e.barGap,d=e.barCategoryGap,h=e.maxBarSize,y=tu(f),g=y.numericAxisName,v=y.cateAxisName,m=!!n&&!!n.length&&n.some(function(e){var t=(0,E.Mn)(e&&e.type);return t&&t.indexOf("Bar")>=0}),x=[];return n.forEach(function(n,y){var w=e7(e.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:u}),O=void 0!==n.type.defaultProps?e1(e1({},n.type.defaultProps),n.props):n.props,S=O.dataKey,A=O.maxBarSize,j=O["".concat(g,"Id")],P=O["".concat(v,"Id")],M=c.reduce(function(e,n){var r=t["".concat(n.axisType,"Map")],o=O["".concat(n.axisType,"Id")];r&&r[o]||"zAxis"===n.axisType||(0,b.A)(!1);var i=r[o];return e1(e1({},e),{},e2(e2({},n.axisType,i),"".concat(n.axisType,"Ticks"),(0,C.Rh)(i)))},{}),k=M[v],_=M["".concat(v,"Ticks")],T=r&&r[j]&&r[j].hasStack&&(0,C.kA)(n,r[j].stackGroups),I=(0,E.Mn)(n.type).indexOf("Bar")>=0,R=(0,C.Hj)(k,_),D=[],N=m&&(0,C.tA)({barSize:s,stackGroups:r,totalSize:"xAxis"===v?M[v].width:"yAxis"===v?M[v].height:void 0});if(I){var F,B,L=l()(A)?h:A,z=null!=(F=null!=(B=(0,C.Hj)(k,_,!0))?B:L)?F:0;D=(0,C.BX)({barGap:p,barCategoryGap:d,bandSize:z!==R?z:R,sizeList:N[P],maxBarSize:L}),z!==R&&(D=D.map(function(e){return e1(e1({},e),{},{position:e1(e1({},e.position),{},{offset:e.position.offset-z/2})})}))}var V=n&&n.type&&n.type.getComposedData;V&&x.push({props:e1(e1({},V(e1(e1({},M),{},{displayedData:w,props:e,dataKey:S,item:n,bandSize:R,barPosition:D,offset:o,stackedData:T,layout:f,dataStartIndex:a,dataEndIndex:u}))),{},e2(e2(e2({key:n.key||"item-".concat(y)},g,M[g]),v,M[v]),"animationId",i)),childIndex:(0,E.AW)(n,e.children),item:n})}),x},g=function(e,r){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!(0,E.Me)({props:o}))return null;var u=o.children,s=o.layout,f=o.stackOffset,d=o.data,h=o.reverseStackOrder,g=tu(s),v=g.numericAxisName,m=g.cateAxisName,b=(0,E.aS)(u,n),x=(0,C.Mn)(d,b,"".concat(v,"Id"),"".concat(m,"Id"),f,h),w=c.reduce(function(e,t){var n="".concat(t.axisType,"Map");return e1(e1({},e),{},e2({},n,ti(o,e1(e1({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&x,dataStartIndex:i,dataEndIndex:a}))))},{}),O=ts(e1(e1({},w),{},{props:o,graphicalItems:b}),null==r?void 0:r.legendBBox);Object.keys(w).forEach(function(e){w[e]=p(o,w[e],O,e.replace("Map",""),t)});var S=ta(w["".concat(m,"Map")]),A=y(o,e1(e1({},w),{},{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:x,offset:O}));return e1(e1({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:x},S),w)},S=function(e){var n;function r(e){var n,o,a,u,c;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return u=r,c=[e],u=eK(u),e2(a=function(e,t){if(t&&("object"===eG(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,eX()?Reflect.construct(u,c||[],eK(this).constructor):u.apply(this,c)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),e2(a,"accessibilityManager",new eP),e2(a,"handleLegendBBoxUpdate",function(e){if(e){var t=a.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;a.setState(e1({legendBBox:e},g({props:a.props,dataStartIndex:n,dataEndIndex:r,updateId:o},e1(e1({},a.state),{},{legendBBox:e}))))}}),e2(a,"handleReceiveSyncEvent",function(e,t,n){a.props.syncId===e&&(n!==a.eventEmitterSymbol||"function"==typeof a.props.syncMethod)&&a.applySyncEvent(t)}),e2(a,"handleBrushChange",function(e){var t=e.startIndex,n=e.endIndex;if(t!==a.state.dataStartIndex||n!==a.state.dataEndIndex){var r=a.state.updateId;a.setState(function(){return e1({dataStartIndex:t,dataEndIndex:n},g({props:a.props,dataStartIndex:t,dataEndIndex:n,updateId:r},a.state))}),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),e2(a,"handleMouseEnter",function(e){var t=a.getMouseInfo(e);if(t){var n=e1(e1({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseEnter;s()(r)&&r(n,e)}}),e2(a,"triggeredAfterMouseMove",function(e){var t=a.getMouseInfo(e),n=t?e1(e1({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseMove;s()(r)&&r(n,e)}),e2(a,"handleItemMouseEnter",function(e){a.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),e2(a,"handleItemMouseLeave",function(){a.setState(function(){return{isTooltipActive:!1}})}),e2(a,"handleMouseMove",function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)}),e2(a,"handleMouseLeave",function(e){a.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var n=a.props.onMouseLeave;s()(n)&&n(t,e)}),e2(a,"handleOuterEvent",function(e){var t,n=(0,E.X_)(e),r=d()(a.props,"".concat(n));n&&s()(r)&&r(null!=(t=/.*touch.*/i.test(n)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))?t:{},e)}),e2(a,"handleClick",function(e){var t=a.getMouseInfo(e);if(t){var n=e1(e1({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onClick;s()(r)&&r(n,e)}}),e2(a,"handleMouseDown",function(e){var t=a.props.onMouseDown;s()(t)&&t(a.getMouseInfo(e),e)}),e2(a,"handleMouseUp",function(e){var t=a.props.onMouseUp;s()(t)&&t(a.getMouseInfo(e),e)}),e2(a,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),e2(a,"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])}),e2(a,"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])}),e2(a,"triggerSyncEvent",function(e){void 0!==a.props.syncId&&ew.emit(eO,a.props.syncId,e,a.eventEmitterSymbol)}),e2(a,"applySyncEvent",function(e){var t=a.props,n=t.layout,r=t.syncMethod,o=a.state.updateId,i=e.dataStartIndex,l=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)a.setState(e1({dataStartIndex:i,dataEndIndex:l},g({props:a.props,dataStartIndex:i,dataEndIndex:l,updateId:o},a.state)));else if(void 0!==e.activeTooltipIndex){var u=e.chartX,s=e.chartY,c=e.activeTooltipIndex,f=a.state,p=f.offset,d=f.tooltipTicks;if(!p)return;if("function"==typeof r)c=r(d,e);else if("value"===r){c=-1;for(var h=0;h=0){if(c.dataKey&&!c.allowDuplicatedCategory){var _="function"==typeof c.dataKey?function(e){return"function"==typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());I=(0,k.eP)(g,_,p),R=v&&m&&(0,k.eP)(m,_,p)}else I=null==g?void 0:g[f],R=v&&m&&m[f];if(A||S){var T=void 0!==e.props.activeIndex?e.props.activeIndex:f;return[(0,i.cloneElement)(e,e1(e1(e1({},r.props),P),{},{activeIndex:T})),null,null]}if(!l()(I))return[M].concat(eJ(a.renderActivePoints({item:r,activePoint:I,basePoint:R,childIndex:f,isRange:v})))}else{var I,R,D,N=(null!=(D=a.getItemByXY(a.state.activeCoordinate))?D:{graphicalItem:M}).graphicalItem,F=N.item,B=void 0===F?e:F,L=N.childIndex,z=e1(e1(e1({},r.props),P),{},{activeIndex:L});return[(0,i.cloneElement)(B,z),null,null]}return v?[M,null,null]:[M,null]}),e2(a,"renderCustomized",function(e,t,n){return(0,i.cloneElement)(e,e1(e1({key:"recharts-customized-".concat(n)},a.props),a.state))}),e2(a,"renderMap",{CartesianGrid:{handler:e6,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:e6},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:e6},YAxis:{handler:e6},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!=(n=e.id)?n:(0,k.NF)("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=v()(a.triggeredAfterMouseMove,null!=(o=e.throttleDelay)?o:1e3/60),a.state={},a}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&eY(r,e),n=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!=(e=this.props.margin.left)?e:0,top:null!=(t=this.props.margin.top)?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,i=(0,E.BU)(t,O.m);if(i){var a=i.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length-1)){var l=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=tt(this.state,n,a,l),s=this.state.tooltipTicks[a].coordinate,c=(this.state.offset.top+r)/2,f="horizontal"===o?{x:s,y:c}:{y:s,x:c},p=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});p&&(f=e1(e1({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:l,activePayload:u,activeCoordinate:f};this.setState(d),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin){var n,r;this.accessibilityManager.setDetails({offset:{left:null!=(n=this.props.margin.left)?n:0,top:null!=(r=this.props.margin.top)?r:0}})}return null}},{key:"componentDidUpdate",value:function(e){(0,E.OV)([(0,E.BU)(e.children,O.m)],[(0,E.BU)(this.props.children,O.m)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=(0,E.BU)(this.props.children,O.m);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return u.indexOf(t)>=0?t:o}return o}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r=(0,Y.A3)(n),o={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},i=n.width/t.offsetWidth||1,a=this.inRange(o.chartX,o.chartY,i);if(!a)return null;var l=this.state,u=l.xAxisMap,s=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&s){var c=(0,k.lX)(u).scale,f=(0,k.lX)(s).scale,p=c&&c.invert?c.invert(o.chartX):null,d=f&&f.invert?f.invert(o.chartY):null;return e1(e1({},o),{},{xValue:p,yValue:d})}var h=tn(this.state,this.props.data,this.props.layout,a);return h?e1(e1({},o),h):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,i=t/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var l=this.state,u=l.angleAxisMap,s=l.radiusAxisMap;if(u&&s){var c=(0,k.lX)(u);return(0,em.yy)({x:o,y:i},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=(0,E.BU)(e,O.m),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),e1(e1({},(0,eS._U)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){ew.on(eO,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ew.removeListener(eO,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o{var r=n(90843);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,l=i.length,u=n.length;++o=u)return s;return s*("desc"==n[o]?-1:1)}}return e.index-t.index}},33958:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("filled","caret-down-filled","IconCaretDownFilled",[["path",{d:"M18 9c.852 0 1.297 .986 .783 1.623l-.076 .084l-6 6a1 1 0 0 1 -1.32 .083l-.094 -.083l-6 -6l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057v-.118l.005 -.058l.009 -.06l.01 -.052l.032 -.108l.027 -.067l.07 -.132l.065 -.09l.073 -.081l.094 -.083l.077 -.054l.096 -.054l.036 -.017l.067 -.027l.108 -.032l.053 -.01l.06 -.01l.057 -.004l12.059 -.002z",key:"svg-0"}]])},34024:(e,t,n)=>{var r=n(21248),o=n(87567);e.exports=function(e,t){return e&&r(e,t,o)}},35342:(e,t,n)=>{var r=n(83965),o=n(93803);e.exports=function(e,t){return r(o(e,t),1)}},35555:(e,t,n)=>{"use strict";n.d(t,{J:()=>j});var r=n(55729),o=n(38822),i=n.n(o),a=n(98499),l=n.n(a),u=n(23356),s=n.n(u),c=n(50212),f=n(25599),p=n(93780),d=n(53645),h=n(31829);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var g=["offset"];function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1;"insideStart"===l?(o=m+A*s,a=w):"insideEnd"===l?(o=b-A*s,a=!w):"end"===l&&(o=b+A*s,a=w),a=S<=0?a:!a;var j=(0,h.IZ)(p,y,O,o),E=(0,h.IZ)(p,y,O,o+(a?1:-1)*359),P="M".concat(j.x,",").concat(j.y,"\n A").concat(O,",").concat(O,",0,1,").concat(+!a,",\n ").concat(E.x,",").concat(E.y),M=i()(e.id)?(0,d.NF)("recharts-radial-line-"):e.id;return r.createElement("text",x({},n,{dominantBaseline:"central",className:(0,c.A)("recharts-radial-bar-label",f)}),r.createElement("defs",null,r.createElement("path",{id:M,d:P})),r.createElement("textPath",{xlinkHref:"#".concat(M)},t))},S=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,i=t.cy,a=t.innerRadius,l=t.outerRadius,u=(t.startAngle+t.endAngle)/2;if("outside"===r){var s=(0,h.IZ)(o,i,l+n,u),c=s.x;return{x:c,y:s.y,textAnchor:c>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=(0,h.IZ)(o,i,(a+l)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},A=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t.x,a=t.y,l=t.width,u=t.height,c=u>=0?1:-1,f=c*r,p=c>0?"end":"start",h=c>0?"start":"end",y=l>=0?1:-1,g=y*r,v=y>0?"end":"start",m=y>0?"start":"end";if("top"===o)return b(b({},{x:i+l/2,y:a-c*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(a-n.y,0),width:l}:{});if("bottom"===o)return b(b({},{x:i+l/2,y:a+u+f,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(n.y+n.height-(a+u),0),width:l}:{});if("left"===o){var x={x:i-g,y:a+u/2,textAnchor:v,verticalAnchor:"middle"};return b(b({},x),n?{width:Math.max(x.x-n.x,0),height:u}:{})}if("right"===o){var w={x:i+l+g,y:a+u/2,textAnchor:m,verticalAnchor:"middle"};return b(b({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:u}:{})}var O=n?{width:l,height:u}:{};return"insideLeft"===o?b({x:i+g,y:a+u/2,textAnchor:m,verticalAnchor:"middle"},O):"insideRight"===o?b({x:i+l-g,y:a+u/2,textAnchor:v,verticalAnchor:"middle"},O):"insideTop"===o?b({x:i+l/2,y:a+f,textAnchor:"middle",verticalAnchor:h},O):"insideBottom"===o?b({x:i+l/2,y:a+u-f,textAnchor:"middle",verticalAnchor:p},O):"insideTopLeft"===o?b({x:i+g,y:a+f,textAnchor:m,verticalAnchor:h},O):"insideTopRight"===o?b({x:i+l-g,y:a+f,textAnchor:v,verticalAnchor:h},O):"insideBottomLeft"===o?b({x:i+g,y:a+u-f,textAnchor:m,verticalAnchor:p},O):"insideBottomRight"===o?b({x:i+l-g,y:a+u-f,textAnchor:v,verticalAnchor:p},O):s()(o)&&((0,d.Et)(o.x)||(0,d._3)(o.x))&&((0,d.Et)(o.y)||(0,d._3)(o.y))?b({x:i+(0,d.F4)(o.x,l),y:a+(0,d.F4)(o.y,u),textAnchor:"end",verticalAnchor:"end"},O):b({x:i+l/2,y:a+u/2,textAnchor:"middle",verticalAnchor:"middle"},O)};function j(e){var t,n=e.offset,o=b({offset:void 0===n?5:n},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,g)),a=o.viewBox,u=o.position,s=o.value,h=o.children,y=o.content,v=o.className,m=o.textBreakAll;if(!a||i()(s)&&i()(h)&&!(0,r.isValidElement)(y)&&!l()(y))return null;if((0,r.isValidElement)(y))return(0,r.cloneElement)(y,o);if(l()(y)){if(t=(0,r.createElement)(y,o),(0,r.isValidElement)(t))return t}else t=w(o);var j="cx"in a&&(0,d.Et)(a.cx),E=(0,p.J9)(o,!0);if(j&&("insideStart"===u||"insideEnd"===u||"end"===u))return O(o,t,E);var P=j?S(o):A(o);return r.createElement(f.E,x({className:(0,c.A)("recharts-label",void 0===v?"":v)},E,P,{breakAll:m}),t)}j.displayName="Label";var E=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,l=e.radius,u=e.innerRadius,s=e.outerRadius,c=e.x,f=e.y,p=e.top,h=e.left,y=e.width,g=e.height,v=e.clockWise,m=e.labelViewBox;if(m)return m;if((0,d.Et)(y)&&(0,d.Et)(g)){if((0,d.Et)(c)&&(0,d.Et)(f))return{x:c,y:f,width:y,height:g};if((0,d.Et)(p)&&(0,d.Et)(h))return{x:p,y:h,width:y,height:g}}return(0,d.Et)(c)&&(0,d.Et)(f)?{x:c,y:f,width:0,height:0}:(0,d.Et)(t)&&(0,d.Et)(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:u||0,outerRadius:s||l||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};j.parseViewBox=E,j.renderCallByParent=function(e,t){var n,o,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&i&&!e.label)return null;var a=e.children,u=E(e),c=(0,p.aS)(a,j).map(function(e,n){return(0,r.cloneElement)(e,{viewBox:t||u,key:"label-".concat(n)})});if(!i)return c;return[(n=e.label,o=t||u,!n?null:!0===n?r.createElement(j,{key:"label-implicit",viewBox:o}):(0,d.vh)(n)?r.createElement(j,{key:"label-implicit",viewBox:o,value:n}):(0,r.isValidElement)(n)?n.type===j?(0,r.cloneElement)(n,{key:"label-implicit",viewBox:o}):r.createElement(j,{key:"label-implicit",content:n,viewBox:o}):l()(n)?r.createElement(j,{key:"label-implicit",content:n,viewBox:o}):s()(n)?r.createElement(j,x({viewBox:o},n,{key:"label-implicit"})):null)].concat(function(e){if(Array.isArray(e))return v(e)}(c)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||function(e,t){if(e){if("string"==typeof e)return v(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,void 0)}}(c)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},36022:e=>{e.exports=function(e){return this.__data__.has(e)}},36647:(e,t,n)=>{var r=n(68988),o=n(16799),i=n(87567);e.exports=function(e){return function(t,n,a){var l=Object(t);if(!o(t)){var u=r(n,3);t=i(t),n=function(e){return u(l[e],e,l)}}var s=e(t,n,a);return s>-1?l[u?t[s]:s]:void 0}}},37390:(e,t,n)=>{var r=n(88601),o=n(24127),i=n(68988),a=n(93733),l=n(1864),u=n(3540),s=n(33883),c=n(5549),f=n(91544);e.exports=function(e,t,n){t=t.length?r(t,function(e){return f(e)?function(t){return o(t,1===e.length?e[0]:e)}:e}):[c];var p=-1;return t=r(t,u(i)),l(a(e,function(e,n,o){return{criteria:r(t,function(t){return t(e)}),index:++p,value:e}}),function(e,t){return s(e,t,n)})}},38302:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i{e.exports=function(e){return null==e}},38867:(e,t,n)=>{var r=n(19962),o=n(70930),i=n(5549);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},39696:(e,t,n)=>{"use strict";function r(e,t){return"function"==typeof e?e(t):e}function o(e,t){return n=>{t.setState(t=>({...t,[e]:r(n,t[e])}))}}function i(e){return e instanceof Function}function a(e,t,n){let r,o=[];return()=>{let i,a;n.key&&n.debug&&(i=Date.now());let l=e();if(!(l.length!==o.length||l.some((e,t)=>o[t]!==e)))return r;if(o=l,n.key&&n.debug&&(a=Date.now()),r=t(...l),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){let e=Math.round((Date.now()-i)*100)/100,t=Math.round((Date.now()-a)*100)/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{Object.assign(o,null==t.createHeader?void 0:t.createHeader(o,e))}),o}function u(e,t,n,r){var o,i;let a=0,u=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&u(e.columns,t+1)},0)};u(e);let s=[],c=(e,t)=>{let o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{let a,u=[...i].reverse()[0],s=e.column.depth===o.depth,c=!1;if(s&&e.column.parent?a=e.column.parent:(a=e.column,c=!0),u&&(null==u?void 0:u.column)===a)u.subHeaders.push(e);else{let o=l(n,a,{id:[r,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:c,placeholderId:c?`${i.filter(e=>e.column===a).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),s.push(o),t>0&&c(i,t-1)};c(t.map((e,t)=>l(n,e,{depth:a,index:t})),a-1),s.reverse();let f=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],f(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return f(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}n.d(t,{HT:()=>z,ZR:()=>B});let s={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},c=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),f=null;function p(e){return"touchstart"===e.type}let d=(e,t,n)=>{var r;let o=n.toLowerCase();return!!(null==(r=e.getValue(t))?void 0:r.toLowerCase().includes(o))};d.autoRemove=e=>S(e);let h=(e,t,n)=>{var r;return!!(null==(r=e.getValue(t))?void 0:r.includes(n))};h.autoRemove=e=>S(e);let y=(e,t,n)=>{var r;return(null==(r=e.getValue(t))?void 0:r.toLowerCase())===n.toLowerCase()};y.autoRemove=e=>S(e);let g=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};g.autoRemove=e=>S(e)||!(null!=e&&e.length);let v=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});v.autoRemove=e=>S(e)||!(null!=e&&e.length);let m=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});m.autoRemove=e=>S(e)||!(null!=e&&e.length);let b=(e,t,n)=>e.getValue(t)===n;b.autoRemove=e=>S(e);let x=(e,t,n)=>e.getValue(t)==n;x.autoRemove=e=>S(e);let w=(e,t,n)=>{let[r,o]=n,i=e.getValue(t);return i>=r&&i<=o};w.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(o)?1/0:o;if(i>a){let e=i;i=a,a=e}return[i,a]},w.autoRemove=e=>S(e)||S(e[0])&&S(e[1]);let O={includesString:d,includesStringSensitive:h,equalsString:y,arrIncludes:g,arrIncludesAll:v,arrIncludesSome:m,equals:b,weakEquals:x,inNumberRange:w};function S(e){return null==e||""===e}function A(e,t,n){return!!e&&!!e.autoRemove&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}let j={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o*=1)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=0,r=0;return t.forEach(t=>{let o=t.getValue(e);"number"==typeof o&&(n=Math.min(n,o),r=Math.max(r,o))}),(n+r)/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},E=()=>({pageIndex:0,pageSize:10}),P=()=>({left:[],right:[]}),M=(e,t,n,r)=>{var o;let i=r.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(o=i.subRows)&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>M(e,t.id,n,r))};function C(e,t){let n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;let a=k(e,n);if(a&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function k(e,t){var n;return null!=(n=t[e.id])&&n}function _(e,t,n){if(e.subRows&&e.subRows.length){let n=!0,r=!1;return e.subRows.forEach(e=>{(!r||n)&&(k(e,t)?r=!0:n=!1)}),n?"all":!!r&&"some"}return!1}let T=/([0-9]+)/gm;function I(e,t){return e===t?0:e>t?1:-1}function R(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function D(e,t){let n=e.split(T).filter(Boolean),r=t.split(T).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),a=[o,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return -1}return n.length-r.length}let N={alphanumeric:(e,t,n)=>D(R(e.getValue(n)).toLowerCase(),R(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>D(R(e.getValue(n)),R(t.getValue(n))),text:(e,t,n)=>I(R(e.getValue(n)).toLowerCase(),R(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>I(R(e.getValue(n)),R(t.getValue(n))),datetime:(e,t,n)=>{let r=e.getValue(n),o=t.getValue(n);return r>o?1:rI(e.getValue(n),t.getValue(n))},F=[{createTable:e=>({getHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,a;let l=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],s=null!=(a=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?a:[];return u(t,[...l,...n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=o&&o.includes(e.id))),...s],e)},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>u(t,n=n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=o&&o.includes(e.id))),e,"center"),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;return u(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;return u(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:a(()=>[e.getHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:a(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:a(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:a(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:a(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:a(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:a(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:a(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:a(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:a(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:a(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:a(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,a,l,u;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(l=null==(u=n[0])?void 0:u.headers)?l:[]].map(e=>e.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})})},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},getIsVisible:()=>{var n,r;return null==(n=null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},getCanHide:()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:a(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:a(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{let t=(t,n)=>a(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),resetColumnVisibility:t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},toggleAllColumnsVisible:t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},_getOrderColumnsFn:a(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;var i=o;if(!(null!=t&&t.length)||!n)return i;let a=i.filter(e=>!t.includes(e.id));return"remove"===n?a:[...t.map(e=>i.find(t=>t.id===e)).filter(Boolean),...a]},{key:!1})})},{getInitialState:e=>({columnPinning:P(),...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>({pin:n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,a,l,u;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(u=null==e?void 0:e.right)?u:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},getCanPin:()=>e.getLeafColumns().some(e=>{var n,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=t.options.enablePinning)||r)}),getIsPinned:()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(e=>null==r?void 0:r.includes(e)),a=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!a&&"right"},getPinnedIndex:()=>{var n,r,o;let i=e.getIsPinned();return i?null!=(n=null==(r=t.getState().columnPinning)||null==(o=r[i])?void 0:o.indexOf(e.id))?n:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),{key:"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),{key:"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var n,r;return e.setColumnPinning(t?P():null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:P())},getIsSomeColumnsPinned:t=>{var n,r,o;let i=e.getState().columnPinning;return t?!!(null==(n=i[t])?void 0:n.length):!!((null==(r=i.left)?void 0:r.length)||(null==(o=i.right)?void 0:o.length))},getLeftLeafColumns:a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),onGlobalFilterChange:o("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n,r;let o=null==(n=e.getCoreRowModel().flatRows[0])||null==(r=n._getAllCellsByColumnId()[t.id])?void 0:r.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?O.includesString:"number"==typeof r?O.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?O.equals:Array.isArray(r)?O.arrIncludes:O.weakEquals},getFilterFn:()=>{var n,r;return i(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:O[e.columnDef.filterFn]},getCanFilter:()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},getCanGlobalFilter:()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var n,r;return null==(n=t.getState().columnFilters)||null==(r=n.find(t=>t.id===e.id))?void 0:r.value},getFilterIndex:()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},setFilterValue:n=>{t.setColumnFilters(t=>{var o,i;let a=e.getFilterFn(),l=null==t?void 0:t.find(t=>t.id===e.id),u=r(n,l?l.value:void 0);if(A(a,u,e))return null!=(o=null==t?void 0:t.filter(t=>t.id!==e.id))?o:[];let s={id:e.id,value:u};return l?null!=(i=null==t?void 0:t.map(t=>t.id===e.id?s:t))?i:[]:null!=t&&t.length?[...t,s]:[s]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>O.includesString,getGlobalFilterFn:()=>{var t,n;let{globalFilterFn:r}=e.options;return i(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:O[r]},setColumnFilters:t=>{let n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var o;return null==(o=r(t,e))?void 0:o.filter(e=>{let t=n.find(t=>t.id===e.id);return!(t&&A(t.getFilterFn(),e.value,t))&&!0})})},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel(),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return N.datetime;if("string"==typeof n&&(r=!0,n.split(T).length>1))return N.alphanumeric}return r?N.text:N.basic},getAutoSortDir:()=>{let n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},getSortingFn:()=>{var n,r;if(!e)throw Error();return i(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:N[e.columnDef.sortingFn]},toggleSorting:(n,r)=>{let o=e.getNextSortingOrder(),i=null!=n;t.setSorting(a=>{let l,u=null==a?void 0:a.find(t=>t.id===e.id),s=null==a?void 0:a.findIndex(t=>t.id===e.id),c=[],f=i?n:"desc"===o;if("toggle"!=(l=null!=a&&a.length&&e.getCanMultiSort()&&r?u?"toggle":"add":null!=a&&a.length&&s!==a.length-1?"replace":u?"toggle":"replace")||i||o||(l="remove"),"add"===l){var p;(c=[...a,{id:e.id,desc:f}]).splice(0,c.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))}else c="toggle"===l?a.map(t=>t.id===e.id?{...t,desc:f}:t):"remove"===l?a.filter(t=>t.id!==e.id):[{id:e.id,desc:f}];return c})},getFirstSortDir:()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},getNextSortingOrder:n=>{var r,o;let i=e.getFirstSortDir(),a=e.getIsSorted();return a?(a===i||null!=(r=t.options.enableSortingRemoval)&&!r||!!n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},getCanSort:()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},getCanMultiSort:()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},getIsSorted:()=>{var n;let r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},getSortIndex:()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},clearSorting:()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},getToggleSortingHandler:()=>{let n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}}),createTable:e=>({setSorting:t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),resetSorting:t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()})},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},getCanGroup:()=>{var n,r,o,i;return null!=(n=null==(r=null!=(o=null==(i=e.columnDef.enableGrouping)||i)?o:t.options.enableGrouping)||r)?n:!!e.accessorFn},getIsGrouped:()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},getGroupedIndex:()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},getToggleGroupingHandler:()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},getAutoAggregationFn:()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?j.sum:"[object Date]"===Object.prototype.toString.call(r)?j.extent:void 0},getAggregationFn:()=>{var n,r;if(!e)throw Error();return i(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:j[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,t,n,r)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===n.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=n.subRows)&&t.length)}})},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;return{_autoResetExpanded:()=>{var r,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},setExpanded:t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),toggleAllRowsExpanded:t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},resetExpanded:t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},getCanSomeRowsExpand:()=>e.getRowModel().flatRows.some(e=>e.getCanExpand()),getToggleAllRowsExpandedHandler:()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},getIsAllRowsExpanded:()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},getExpandedDepth:()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let n=e.split(".");t=Math.max(t,n.length)}),t},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()}},createRow:(e,t)=>({toggleExpanded:n=>{t.setExpanded(r=>{var o;let i=!0===r||!!(null!=r&&r[e.id]),a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=r,n=null!=(o=n)?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){let{[e.id]:t,...n}=a;return n}return r})},getIsExpanded:()=>{var n;let r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},getCanExpand:()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!!(null!=(o=e.subRows)&&o.length)},getToggleExpandedHandler:()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}})},{getInitialState:e=>({...e,pagination:{...E(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,n=!1;return{_autoResetPageIndex:()=>{var r,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>r(t,e)),resetPagination:t=>{var n;e.setPagination(t?E():null!=(n=e.initialState.pagination)?n:E())},setPageIndex:t=>{e.setPagination(n=>{let o=r(t,n.pageIndex);return o=Math.max(0,Math.min(o,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...n,pageIndex:o}})},resetPageIndex:t=>{var n,r,o;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(o=r.pagination)?void 0:o.pageIndex)?n:0)},resetPageSize:t=>{var n,r,o;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(o=r.pagination)?void 0:o.pageSize)?n:10)},setPageSize:t=>{e.setPagination(e=>{let n=Math.max(1,r(t,e.pageSize)),o=Math.floor(e.pageSize*e.pageIndex/n);return{...e,pageIndex:o,pageSize:n}})},setPageCount:t=>e.setPagination(n=>{var o;let i=r(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof i&&(i=Math.max(-1,i)),{...n,pageCount:i}}),getPageOptions:a(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return -1===n||0!==n&&te.setPageIndex(e=>e-1),nextPage:()=>e.setPageIndex(e=>e+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),getPageCount:()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},toggleAllRowsSelected:t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},toggleAllPageRowsSelected:t=>e.setRowSelection(n=>{let r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{M(o,t.id,r,e)}),o}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:a(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?C(e,n):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:a(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?C(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:a(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?C(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},getIsAllPageRowsSelected:()=>{let t=e.getPaginationRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},getIsSomeRowsSelected:()=>{var t;let n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.some(e=>e.getIsSelected()||e.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:n=>{let r=e.getIsSelected();t.setRowSelection(o=>{if(n=void 0!==n?n:!r,r===n)return o;let i={...o};return M(i,e.id,n,t),i})},getIsSelected:()=>{let{rowSelection:n}=t.getState();return k(e,n)},getIsSomeSelected:()=>{let{rowSelection:n}=t.getState();return"some"===_(e,n)},getIsAllSubRowsSelected:()=>{let{rowSelection:n}=t.getState();return"all"===_(e,n)},getCanSelect:()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},getCanSelectSubRows:()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},getCanMultiSelect:()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},getToggleSelectedHandler:()=>{let t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}})},{getDefaultColumnDef:()=>s,getInitialState:e=>({columnSizing:{},columnSizingInfo:c(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var n,r,o;let i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:s.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:s.size),null!=(o=e.columnDef.maxSize)?o:s.maxSize)},getStart:n=>{let r=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=r.findIndex(t=>t.id===e.id);if(o>0){let e=r[o-1];return e.getStart(n)+e.getSize()}return 0},resetSize:()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},getCanResize:()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let t=0,n=e=>{if(e.subHeaders.length)e.subHeaders.forEach(n);else{var r;t+=null!=(r=e.column.getSize())?r:0}};return n(e),t},getStart:()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},getResizeHandler:()=>{let n=t.getColumn(e.column.id),r=null==n?void 0:n.getCanResize();return o=>{if(!n||!r||(null==o.persist||o.persist(),p(o)&&o.touches&&o.touches.length>1))return;let i=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[n.id,n.getSize()]],l=p(o)?Math.round(o.touches[0].clientX):o.clientX,u={},s=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var t,r;let o=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),i=Math.max(o/(null!=(r=null==e?void 0:e.startSize)?r:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*i,0))/100}),{...e,deltaOffset:o,deltaPercentage:i}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...u})))},c=e=>{s("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d={moveHandler:e=>s("move",e.clientX),upHandler:e=>{document.removeEventListener("mousemove",d.moveHandler),document.removeEventListener("mouseup",d.upHandler),c(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),s("move",e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",h.moveHandler),document.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(null==(t=e.touches[0])?void 0:t.clientX)}},y=!!function(){if("boolean"==typeof f)return f;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return f=e}()&&{passive:!1};p(o)?(document.addEventListener("touchmove",h.moveHandler,y),document.addEventListener("touchend",h.upHandler,y)):(document.addEventListener("mousemove",d.moveHandler,y),document.addEventListener("mouseup",d.upHandler,y)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:n.id}))}}}),createTable:e=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},resetHeaderSizeInfo:t=>{var n;e.setColumnSizingInfo(t?c():null!=(n=e.initialState.columnSizingInfo)?n:c())},getTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getLeftTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getCenterTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getRightTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}})}];function B(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:F},o=n._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n)),{}),i={...null!=(t=e.initialState)?t:{}};n._features.forEach(e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i});let l=[],u=!1,s={_features:F,options:{...o,...e},initialState:i,_queue:e=>{l.push(e),u||(u=!0,Promise.resolve().then(()=>{for(;l.length;)l.shift()();u=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{var t;t=r(e,n.options),n.options=n.options.mergeOptions?n.options.mergeOptions(o,t):{...o,...t}},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,r)=>{var o;return null!=(o=null==n.options.getRowId?void 0:n.options.getRowId(e,t,r))?o:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:e=>{let t=n.getRowModel().rowsById[e];if(!t)throw Error();return t},_getDefaultColumnDef:a(()=>[n.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:a(()=>[n._getColumnDefs()],e=>{let t=function(e,r,o){return void 0===o&&(o=0),e.map(e=>{let i=function(e,t,n,r){var o,i;let l,u={...e._getDefaultColumnDef(),...t},s=u.accessorKey,c=null!=(o=null!=(i=u.id)?i:s?s.replace(".","_"):void 0)?o:"string"==typeof u.header?u.header:void 0;if(u.accessorFn?l=u.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(let e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[u.accessorKey]),!c)throw Error();let f={id:`${String(c)}`,accessorFn:l,parent:r,depth:n,columnDef:u,columns:[],getFlatColumns:a(()=>[!0],()=>{var e;return[f,...null==(e=f.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:a(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=f.columns)&&t.length?e(f.columns.flatMap(e=>e.getLeafColumns())):[f]},{key:"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};return f=e._features.reduce((t,n)=>Object.assign(t,null==n.createColumn?void 0:n.createColumn(f,e)),f)}(n,e,o,r);return i.columns=e.columns?t(e.columns,i,o+1):[],i})};return t(e)},{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:a(()=>[n.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:a(()=>[n.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:a(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>n._getAllFlatColumnsById()[e]};return Object.assign(n,s),n._features.forEach(e=>Object.assign(n,null==e.createTable?void 0:e.createTable(n))),n}let L=(e,t,n,r,o,i)=>{let l={id:t,index:r,original:n,depth:o,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(l._valuesCache.hasOwnProperty(t))return l._valuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return l._valuesCache[t]=n.accessorFn(l.original,r),l._valuesCache[t]},getUniqueValues:t=>{if(l._uniqueValuesCache.hasOwnProperty(t))return l._uniqueValuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return n.columnDef.getUniqueValues?l._uniqueValuesCache[t]=n.columnDef.getUniqueValues(l.original,r):l._uniqueValuesCache[t]=[l.getValue(t)],l._uniqueValuesCache[t]},renderValue:t=>{var n;return null!=(n=l.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>{var e,t;let n,r;return e=l.subRows,t=e=>e.subRows,n=[],(r=e=>{e.forEach(e=>{n.push(e);let o=t(e);null!=o&&o.length&&r(o)})})(e),n},getAllCells:a(()=>[e.getAllLeafColumns()],t=>t.map(t=>{var n;let r;return n=t.id,r={id:`${l.id}_${t.id}`,row:l,column:t,getValue:()=>l.getValue(n),renderValue:()=>{var t;return null!=(t=r.getValue())?t:e.options.renderFallbackValue},getContext:a(()=>[e,t,l,r],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),{key:!1,debug:()=>e.options.debugAll})},e._features.forEach(n=>{Object.assign(r,null==n.createCell?void 0:n.createCell(r,t,l,e))},{}),r}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:a(()=>[l.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;ta(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);let a=[];for(let u=0;u{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}},40387:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]])},40684:(e,t,n)=>{"use strict";n.d(t,{u:()=>h});var r=n(50212),o=n(55729),i=n(47687),a=n.n(i),l=n(53645),u=n(7571),s=n(93780);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(n,2)||function(e,t){if(e){if("string"==typeof e)return d(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),T=_[0],I=_[1],R=(0,o.useCallback)(function(e,t){I(function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}})},[]);(0,o.useEffect)(function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;R(r,o),null==(t=k.current)||t.call(k,r,o)};A>0&&(e=a()(e,A,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=C.current.getBoundingClientRect();return R(n.width,n.height),t.observe(C.current),function(){t.disconnect()}},[R,A]);var D=(0,o.useMemo)(function(){var e=T.containerWidth,t=T.containerHeight;if(e<0||t<0)return null;(0,u.R)((0,l._3)(y)||(0,l._3)(v),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,v),(0,u.R)(!i||i>0,"The aspect(%s) must be greater than zero.",i);var n=(0,l._3)(y)?e:y,r=(0,l._3)(v)?t:v;i&&i>0&&(n?r=n/i:r&&(n=r*i),w&&r>w&&(r=w)),(0,u.R)(n>0||r>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,r,y,v,b,x,i);var a=!Array.isArray(O)&&(0,s.Mn)(O.type).endsWith("Chart");return o.Children.map(O,function(e){return o.isValidElement(e)?(0,o.cloneElement)(e,p({width:n,height:r},a?{style:p({height:"100%",width:"100%",maxHeight:r,maxWidth:n},e.props.style)}:{})):e})},[i,O,v,w,x,b,T,y]);return o.createElement("div",{id:j?"".concat(j):void 0,className:(0,r.A)("recharts-responsive-container",E),style:p(p({},void 0===M?{}:M),{},{width:y,height:v,minWidth:b,minHeight:x,maxHeight:w}),ref:C},D)})},41499:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(){var t=new r,n=[],o=[],i=l;function u(e){let r=t.get(e);if(void 0===r){if(i!==l)return i;t.set(e,r=n.push(e)-1)}return o[r%o.length]}return u.domain=function(e){if(!arguments.length)return n.slice();for(let o of(n=[],t=new r,e))t.has(o)||t.set(o,n.push(o)-1);return u},u.range=function(e){return arguments.length?(o=Array.from(e),u):o.slice()},u.unknown=function(e){return arguments.length?(i=e,u):i},u.copy=function(){return e(n,o).unknown(i)},a.C.apply(u,arguments),u},h:()=>l});class r extends Map{constructor(e,t=i){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(o(this,e))}has(e){return super.has(o(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function o({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function i(e){return null!==e&&"object"==typeof e?e.valueOf():e}var a=n(58905);let l=Symbol("implicit")},42130:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(t,n){var u,s,c=typeof n;return null==n||"boolean"===c?(0,l.A)(n):("number"===c?i.A:"string"===c?(s=(0,r.Ay)(n))?(n=s,o.Ay):a.A:n instanceof r.Ay?o.Ay:n instanceof Date?function(e,t){var n=new Date;return e*=1,t*=1,function(r){return n.setTime(e*(1-r)+t*r),n}}:!ArrayBuffer.isView(u=n)||u instanceof DataView?Array.isArray(n)?function(t,n){var r,o=n?n.length:0,i=t?Math.min(o,t.length):0,a=Array(i),l=Array(o);for(r=0;r{e.exports=n(36647)(n(76560))},45005:(e,t,n)=>{"use strict";n.d(t,{n:()=>T});var r=n(6029),o=n(60466),i=n(3001),a=n(26615);n(55729);var l=n(6406),u=n(76),s=n(5618),c=n(80616),f=n(37666),p=n(60481),d=n(43016),h=n(36254);let[y,g]=(0,h.F)("Accordion component was not found in the tree");var v=n(89876),m=n(66062),b=n(8737);let[x,w]=(0,h.F)("Accordion.Item component was not found in the tree");var O={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};let S={},A=(0,d.P9)((e,t)=>{let{classNames:n,className:o,style:i,styles:a,vars:l,chevron:u,icon:s,onClick:f,onKeyDown:d,children:h,disabled:y,mod:v,...x}=(0,c.Y)("AccordionControl",S,e),{value:O}=w(),A=g(),j=A.isItemActive(O),E="number"==typeof A.order,P=`h${A.order}`,M=(0,r.jsxs)(b.N,{...x,...A.getStyles("control",{className:o,classNames:n,style:i,styles:a,variant:A.variant}),unstyled:A.unstyled,mod:["accordion-control",{active:j,"chevron-position":A.chevronPosition,disabled:y},v],ref:t,onClick:e=>{f?.(e),A.onChange(O)},type:"button",disabled:y,"aria-expanded":j,"aria-controls":A.getRegionId(O),id:A.getControlId(O),onKeyDown:(0,m.Y)({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:A.loop,orientation:"vertical",onKeyDown:d}),children:[(0,r.jsx)(p.a,{component:"span",mod:{rotate:!A.disableChevronRotation&&j,position:A.chevronPosition},...A.getStyles("chevron",{classNames:n,styles:a}),children:u||A.chevron}),(0,r.jsx)("span",{...A.getStyles("label",{classNames:n,styles:a}),children:h}),s&&(0,r.jsx)(p.a,{component:"span",mod:{"chevron-position":A.chevronPosition},...A.getStyles("icon",{classNames:n,styles:a}),children:s})]});return E?(0,r.jsx)(P,{...A.getStyles("itemTitle",{classNames:n,styles:a}),children:M}):M});A.displayName="@mantine/core/AccordionControl",A.classes=O;let j={},E=(0,d.P9)((e,t)=>{let{classNames:n,className:o,style:i,styles:a,vars:l,value:u,mod:s,...f}=(0,c.Y)("AccordionItem",j,e),d=g();return(0,r.jsx)(x,{value:{value:u},children:(0,r.jsx)(p.a,{ref:t,mod:[{active:d.isItemActive(u)},s],...d.getStyles("item",{className:o,classNames:n,styles:a,style:i,variant:d.variant}),...f})})});E.displayName="@mantine/core/AccordionItem",E.classes=O;var P=n(22599);let M={},C=(0,d.P9)((e,t)=>{let{classNames:n,className:o,style:i,styles:a,vars:l,children:u,...s}=(0,c.Y)("AccordionPanel",M,e),{value:f}=w(),p=g();return(0,r.jsx)(P.S,{ref:t,...p.getStyles("panel",{className:o,classNames:n,style:i,styles:a}),...s,in:p.isItemActive(f),transitionDuration:p.transitionDuration??200,role:"region",id:p.getRegionId(f),"aria-labelledby":p.getControlId(f),children:(0,r.jsx)("div",{...p.getStyles("content",{classNames:n,styles:a}),children:u})})});C.displayName="@mantine/core/AccordionPanel",C.classes=O;let k={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevron:(0,r.jsx)(v.U,{})},_=(0,s.V)((e,{transitionDuration:t,chevronSize:n,radius:r})=>({root:{"--accordion-transition-duration":void 0===t?void 0:`${t}ms`,"--accordion-chevron-size":void 0===n?void 0:(0,a.D)(n),"--accordion-radius":void 0===r?void 0:(0,u.nJ)(r)}}));function T(e){let t=(0,c.Y)("Accordion",k,e),{classNames:n,className:a,style:u,styles:s,unstyled:d,vars:h,children:g,multiple:v,value:m,defaultValue:b,onChange:x,id:w,loop:S,transitionDuration:A,disableChevronRotation:j,chevronPosition:E,chevronSize:P,order:M,chevron:C,variant:T,radius:I,...R}=t,D=(0,o.B)(w),[N,F]=(0,i.Z)({value:m,defaultValue:b,finalValue:v?[]:null,onChange:x}),B=(0,f.I)({name:"Accordion",classes:O,props:t,className:a,style:u,classNames:n,styles:s,unstyled:d,vars:h,varsResolver:_});return(0,r.jsx)(y,{value:{isItemActive:e=>Array.isArray(N)?N.includes(e):e===N,onChange:e=>{F(Array.isArray(N)?N.includes(e)?N.filter(t=>t!==e):[...N,e]:e===N?null:e)},getControlId:(0,l.r)(`${D}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:(0,l.r)(`${D}-panel`,"Accordion.Item component was rendered with invalid value or without value"),transitionDuration:A,disableChevronRotation:j,chevronPosition:E,order:M,chevron:C,loop:S,getStyles:B,variant:T,unstyled:d},children:(0,r.jsx)(p.a,{...B("root"),id:D,...R,variant:T,"data-accordion":!0,children:g})})}T.extend=e=>e,T.withProps=(0,d.LE)(T),T.classes=O,T.displayName="@mantine/core/Accordion",T.Item=E,T.Panel=C,T.Control=A,T.Chevron=v.U},45556:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","chart-bar","IconChartBar",[["path",{d:"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M4 20h14",key:"svg-3"}]])},45852:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},45895:(e,t,n)=>{var r=n(5549),o=n(24964),i=n(27288);e.exports=function(e,t){return i(o(e,t,r),e+"")}},46181:(e,t,n)=>{"use strict";n.d(t,{a:()=>O});var r=n(6029);n(55729);var o=n(76),i=n(5618),a=n(80616),l=n(37666),u=n(60481),s=n(43016),c=n(20158),f=n(48930);let[p,d]=(0,f.e)(),[h,y]=(0,f.e)();var g={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};let v={},m=(0,i.V)((e,{gap:t},{size:n})=>({group:{"--pg-gap":void 0!==t?(0,o.YC)(t):(0,o.YC)(n,"pg-gap")}})),b=(0,s.P9)((e,t)=>{let n=(0,a.Y)("PillGroup",v,e),{classNames:o,className:i,style:s,styles:c,unstyled:f,vars:p,size:y,disabled:b,...x}=n,w=d(),O=w?.size||y||void 0,S=(0,l.I)({name:"PillGroup",classes:g,props:n,className:i,style:s,classNames:o,styles:c,unstyled:f,vars:p,varsResolver:m,stylesCtx:{size:O},rootSelector:"group"});return(0,r.jsx)(h,{value:{size:O,disabled:b},children:(0,r.jsx)(u.a,{ref:t,size:O,...S("group"),...x})})});b.classes=g,b.displayName="@mantine/core/PillGroup";let x={variant:"default"},w=(0,i.V)((e,{radius:t},{size:n})=>({root:{"--pill-fz":(0,o.YC)(n,"pill-fz"),"--pill-height":(0,o.YC)(n,"pill-height"),"--pill-radius":void 0===t?void 0:(0,o.nJ)(t)}})),O=(0,s.P9)((e,t)=>{let n=(0,a.Y)("Pill",x,e),{classNames:o,className:i,style:s,styles:f,unstyled:p,vars:h,variant:v,children:m,withRemoveButton:b,onRemove:O,removeButtonProps:S,radius:A,size:j,disabled:E,mod:P,...M}=n,C=y(),k=d(),_=j||C?.size||void 0,T=k?.variant==="filled"?"contrast":v||"default",I=(0,l.I)({name:"Pill",classes:g,props:n,className:i,style:s,classNames:o,styles:f,unstyled:p,vars:h,varsResolver:w,stylesCtx:{size:_}});return(0,r.jsxs)(u.a,{component:"span",ref:t,variant:T,size:_,...I("root",{variant:T}),mod:[{"with-remove":b&&!E,disabled:E||C?.disabled},P],...M,children:[(0,r.jsx)("span",{...I("label"),children:m}),b&&(0,r.jsx)(c.J,{variant:"transparent",radius:A,tabIndex:-1,"aria-hidden":!0,unstyled:p,...S,...I("remove",{className:S?.className,style:S?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),S?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),O?.(),S?.onClick?.(e)}})]})});O.classes=g,O.displayName="@mantine/core/Pill",O.Group=b},46271:(e,t,n)=>{"use strict";n.d(t,{u:()=>_});var r=n(55729),o=n(98499),i=n.n(o),a=n(60449),l=n.n(a),u=n(50212),s=n(5688),c=n(3780),f=n(25599),p=n(35555),d=n(53645),h=n(27281),y=n(93780),g=n(32347),v=["viewBox"],m=["viewBox"],b=["ticks"];function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function j(e,t){for(var n=0;n0?this.props:h)),o<=0||a<=0||!y||!y.length)?null:r.createElement(c.W,{className:(0,u.A)("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),p.J.renderCallByParent(this.props))}}],n=[{key:"renderTickItem",value:function(e,t,n){return r.isValidElement(e)?r.cloneElement(e,t):i()(e)?e(t):r.createElement(f.E,w({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],t&&j(o.prototype,t),n&&j(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(r.Component);C(_,"displayName","CartesianAxis"),C(_,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"})},46554:(e,t,n)=>{"use strict";function r(e){return function(){return e}}n.d(t,{A:()=>r})},47122:(e,t,n)=>{"use strict";n.d(t,{h:()=>g});var r=n(55729),o=n(50212),i=n(2549),a=n(46271),l=n(1509);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.d(t,{R:()=>r});var r=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t}},47687:(e,t,n)=>{var r=n(12364),o=n(23356);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},47803:(e,t,n)=>{"use strict";n.d(t,{i:()=>u});let r=Math.PI,o=2*r,i=o-1e-6;function a(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return a;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t1e-6)if(Math.abs(f*u-s*c)>1e-6&&i){let d=n-a,h=o-l,y=u*u+s*s,g=Math.sqrt(y),v=Math.sqrt(p),m=i*Math.tan((r-Math.acos((y+p-(d*d+h*h))/(2*g*v)))/2),b=m/v,x=m/g;Math.abs(b-1)>1e-6&&this._append`L${e+b*c},${t+b*f}`,this._append`A${i},${i},0,0,${+(f*d>c*h)},${this._x1=e+x*u},${this._y1=t+x*s}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,a,l,u){if(e*=1,t*=1,n*=1,u=!!u,n<0)throw Error(`negative radius: ${n}`);let s=n*Math.cos(a),c=n*Math.sin(a),f=e+s,p=t+c,d=1^u,h=u?a-l:l-a;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,n&&(h<0&&(h=h%o+o),h>i?this._append`A${n},${n},0,1,${d},${e-s},${t-c}A${n},${n},0,1,${d},${this._x1=f},${this._y1=p}`:h>1e-6&&this._append`A${n},${n},0,${+(h>=r)},${d},${this._x1=e+n*Math.cos(l)},${this._y1=t+n*Math.sin(l)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n*=1}v${+r}h${-n}Z`}toString(){return this._}}function u(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new l(t)}l.prototype},48546:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},48877:(e,t,n)=>{var r=n(66581),o=n(16799),i=n(13920),a=n(23356);e.exports=function(e,t,n){if(!a(n))return!1;var l=typeof t;return("number"==l?!!(o(n)&&i(t,n.length)):"string"==l&&t in n)&&r(n[t],e)}},49109:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("filled","caret-up-filled","IconCaretUpFilled",[["path",{d:"M11.293 7.293a1 1 0 0 1 1.32 -.083l.094 .083l6 6l.083 .094l.054 .077l.054 .096l.017 .036l.027 .067l.032 .108l.01 .053l.01 .06l.004 .057l.002 .059l-.002 .059l-.005 .058l-.009 .06l-.01 .052l-.032 .108l-.027 .067l-.07 .132l-.065 .09l-.073 .081l-.094 .083l-.077 .054l-.096 .054l-.036 .017l-.067 .027l-.108 .032l-.053 .01l-.06 .01l-.057 .004l-.059 .002h-12c-.852 0 -1.297 -.986 -.783 -1.623l.076 -.084l6 -6z",key:"svg-0"}]])},49355:e=>{e.exports=function(e){return e.split("")}},49726:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,z:()=>a});var r=n(58905),o=n(41499);function i(){var e,t,n=(0,o.A)().unknown(void 0),a=n.domain,l=n.range,u=0,s=1,c=!1,f=0,p=0,d=.5;function h(){var n=a().length,r=s{var r=n(34024);e.exports=n(10656)(r)},51068:(e,t,n)=>{var r=n(97554);e.exports=function(e){return r(e)&&e!=+e}},52797:(e,t,n)=>{"use strict";n.d(t,{yp:()=>T,GG:()=>L,NE:()=>I,nZ:()=>R,xQ:()=>D});var r=n(55729),o=n(98499),i=n.n(o),a=n(64022),l=n.n(a),u=n(59513),s=n.n(u),c=n(83817),f=n.n(c),p=n(2390),d=n(50212),h=n(92224),y=n(93780);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return m(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],l=i[1];(0,r.useEffect)(function(){if(o.current&&o.current.getTotalLength)try{var e=o.current.getTotalLength();e&&l(e)}catch(e){}},[]);var u=n.x,s=n.y,c=n.upperWidth,f=n.lowerWidth,p=n.height,g=n.className,b=n.animationEasing,S=n.animationDuration,A=n.animationBegin,j=n.isUpdateAnimationActive;if(u!==+u||s!==+s||c!==+c||f!==+f||p!==+p||0===c&&0===f||0===p)return null;var E=(0,d.A)("recharts-trapezoid",g);return j?r.createElement(h.Ay,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:p,x:u,y:s},to:{upperWidth:c,lowerWidth:f,height:p,x:u,y:s},duration:S,animationEasing:b,isActive:j},function(e){var t=e.upperWidth,i=e.lowerWidth,l=e.height,u=e.x,s=e.y;return r.createElement(h.Ay,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:A,duration:S,easing:b},r.createElement("path",v({},(0,y.J9)(n,!0),{className:E,d:w(u,s,t,i,l),ref:o})))}):r.createElement("g",null,r.createElement("path",v({},(0,y.J9)(n,!0),{className:E,d:w(u,s,c,f,p)})))},A=n(11107),j=n(3780),E=n(54460),P=["option","shapeType","propTransformer","activeClassName","isActive"];function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,P);if((0,r.isValidElement)(n))t=(0,r.cloneElement)(n,k(k({},f),(0,r.isValidElement)(n)?n.props:n));else if(i()(n))t=n(f);else if(l()(n)&&!s()(n)){var p=(void 0===a?function(e,t){return k(k({},t),e)}:a)(n,f);t=r.createElement(_,{shapeType:o,elementProps:p})}else t=r.createElement(_,{shapeType:o,elementProps:f});return c?r.createElement(j.W,{className:void 0===u?"recharts-active-shape":u},t):t}function I(e,t){return null!=t&&"trapezoids"in e.props}function R(e,t){return null!=t&&"sectors"in e.props}function D(e,t){return null!=t&&"points"in e.props}function N(e,t){var n,r,o=e.x===(null==t||null==(n=t.labelViewBox)?void 0:n.x)||e.x===t.x,i=e.y===(null==t||null==(r=t.labelViewBox)?void 0:r.y)||e.y===t.y;return o&&i}function F(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function B(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function L(e){var t,n,r,o=e.activeTooltipItem,i=e.graphicalItem,a=e.itemData,l=(I(i,o)?t="trapezoids":R(i,o)?t="sectors":D(i,o)&&(t="points"),t),u=I(i,o)?null==(n=o.tooltipPayload)||null==(n=n[0])||null==(n=n.payload)?void 0:n.payload:R(i,o)?null==(r=o.tooltipPayload)||null==(r=r[0])||null==(r=r.payload)?void 0:r.payload:D(i,o)?o.payload:{},s=a.filter(function(e,t){var n=f()(u,e),r=i.props[l].filter(function(e){var t;return(I(i,o)?t=N:R(i,o)?t=F:D(i,o)&&(t=B),t)(e,o)}),a=i.props[l].indexOf(r[r.length-1]);return n&&t===a});return a.indexOf(s[s.length-1])}},53645:(e,t,n)=>{"use strict";n.d(t,{CG:()=>b,Dj:()=>x,Et:()=>d,F4:()=>v,NF:()=>g,_3:()=>p,eP:()=>w,lX:()=>m,sA:()=>f,vh:()=>h});var r=n(84450),o=n.n(r),i=n(51068),a=n.n(i),l=n(60449),u=n.n(l),s=n(97554),c=n.n(s),f=function(e){return 0===e?0:e>0?1:-1},p=function(e){return o()(e)&&e.indexOf("%")===e.length-1},d=function(e){return c()(e)&&!a()(e)},h=function(e){return d(e)||o()(e)},y=0,g=function(e){var t=++y;return"".concat(e||"").concat(t)},v=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!d(e)&&!o()(e))return r;if(p(e)){var l=e.indexOf("%");n=t*parseFloat(e.slice(0,l))/100}else n=+e;return a()(n)&&(n=r),i&&n>t&&(n=t),n},m=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},b=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r{"use strict";n.d(t,{i:()=>I});var r=n(55729),o=n(6797),i=n.n(o);let a=Math.cos,l=Math.sin,u=Math.sqrt,s=Math.PI,c=2*s,f={draw(e,t){let n=u(t/s);e.moveTo(n,0),e.arc(0,0,n,0,c)}},p=u(1/3),d=2*p,h=l(s/10)/l(7*s/10),y=l(c/10)*h,g=-a(c/10)*h,v=u(3),m=u(3)/2,b=1/u(12),x=(b/2+1)*3;var w=n(46554),O=n(47803);u(3),u(3);var S=n(50212),A=n(93780);function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var E=["type","size","sizeType"];function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,E)),{},{type:o,size:l,sizeType:s}),p=c.className,d=c.cx,h=c.cy,y=(0,A.J9)(c,!0);return d===+d&&h===+h&&l===+l?r.createElement("path",P({},y,{className:(0,S.A)("recharts-symbols",p),transform:"translate(".concat(d,", ").concat(h,")"),d:(t=k["symbol".concat(i()(o))]||f,(function(e,t){let n=null,r=(0,O.i)(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:(0,w.A)(e||f),t="function"==typeof t?t:(0,w.A)(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,w.A)(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,w.A)(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o})().type(t).size(T(l,s,o))())})):null};I.registerSymbol=function(e,t){k["symbol".concat(i()(e))]=t}},55426:(e,t,n)=>{"use strict";n.d(t,{u:()=>u});var r=n(55729),o=n(50212),i=n(93780),a=["children","width","height","viewBox","className","style","title","desc"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),y=s||{width:n,height:u,x:0,y:0},g=(0,o.A)("recharts-surface",c);return r.createElement("svg",l({},(0,i.J9)(h,!0,"svg"),{className:g,width:n,height:u,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),r.createElement("title",null,p),r.createElement("desc",null,d),t)}},56073:(e,t,n)=>{var r=n(50956);e.exports=function(e,t){var n;return r(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}},56121:(e,t,n)=>{e.exports=n(61847)()},56464:(e,t,n)=>{"use strict";n.d(t,{I:()=>q});var r=n(55729);function o(){}function i(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function a(e){this._context=e}function l(e){this._context=e}function u(e){this._context=e}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},l.prototype={areaStart:o,areaEnd:o,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:i(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:i(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class s{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function c(e){this._context=e}function f(e){this._context=e}function p(e){return new f(e)}c.prototype={areaStart:o,areaEnd:o,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e*=1,t*=1,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function d(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0);return((i<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs((i*o+a*r)/(r+o)))||0}function h(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function y(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,o+l*t,i-l,a-l*n,i,a)}function g(e){this._context=e}function v(e){this._context=new m(e)}function m(e){this._context=e}function b(e){this._context=e}function x(e){var t,n,r=e.length-1,o=Array(r),i=Array(r),a=Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(t=0,i[r-1]=(e[r]+o[r-1])/2;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var O=n(71947),S=n(46554),A=n(47803);function j(e){return e[0]}function E(e){return e[1]}function P(e,t){var n=(0,S.A)(!0),r=null,o=p,i=null,a=(0,A.i)(l);function l(l){var u,s,c,f=(l=(0,O.A)(l)).length,p=!1;for(null==r&&(i=o(c=a())),u=0;u<=f;++u)!(u=f;--p)l.point(v[p],m[p]);l.lineEnd(),l.areaEnd()}g&&(v[c]=+e(d,c,s),m[c]=+t(d,c,s),l.point(r?+r(d,c,s):v[c],n?+n(d,c,s):m[c]))}if(h)return l=null,h+""||null}function c(){return P().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?j:(0,S.A)(+e),t="function"==typeof t?t:void 0===t?(0,S.A)(0):(0,S.A)(+t),n="function"==typeof n?n:void 0===n?E:(0,S.A)(+n),s.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,S.A)(+t),r=null,s):e},s.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,S.A)(+t),s):e},s.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,S.A)(+e),s):r},s.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,S.A)(+e),n=null,s):t},s.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,S.A)(+e),s):t},s.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,S.A)(+e),s):n},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(n)},s.lineX1=function(){return c().x(r).y(t)},s.defined=function(e){return arguments.length?(o="function"==typeof e?e:(0,S.A)(!!e),s):o},s.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),s):a},s.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),s):i},s}var C=n(6797),k=n.n(C),_=n(98499),T=n.n(_),I=n(50212),R=n(27281),D=n(93780),N=n(53645);function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var t=1;t(u=(a=Math.ceil(p/7))>u?a+1:u+1)&&(i=u,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((u=s.length)-(i=c.length)<0&&(i=u,r=c,c=s,s=r),n=0;i;)n=(s[--i]=s[i]+c[i]+n)/1e7|0,s[i]%=1e7;for(n&&(s.unshift(n),++o),u=s.length;0==s[--u];)s.pop();return t.d=s,t.e=o,l?E(t,p):t}function v(e,t,n){if(e!==~~e||en)throw Error(s+e)}function m(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;te.e^this.s<0?1:-1;for(t=0,n=(r=this.d.length)<(o=e.d.length)?r:o;te.d[t]^this.s<0?1:-1;return r===o?0:r>o^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var e=this.d.length-1,t=(e-this.e)*7;if(e=this.d[e])for(;e%10==0;e/=10)t--;return t<0?0:t},y.dividedBy=y.div=function(e){return b(this,new this.constructor(e))},y.dividedToIntegerBy=y.idiv=function(e){var t=this.constructor;return E(b(this,new t(e),0,1),t.precision)},y.equals=y.eq=function(e){return!this.cmp(e)},y.exponent=function(){return w(this)},y.greaterThan=y.gt=function(e){return this.cmp(e)>0},y.greaterThanOrEqualTo=y.gte=function(e){return this.cmp(e)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(e){return 0>this.cmp(e)},y.lessThanOrEqualTo=y.lte=function(e){return 1>this.cmp(e)},y.logarithm=y.log=function(e){var t,n=this.constructor,r=n.precision,o=r+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(i))throw Error(u+"NaN");if(this.s<1)throw Error(u+(this.s?"NaN":"-Infinity"));return this.eq(i)?new n(0):(l=!1,t=b(A(this,o),A(e,o),o),l=!0,E(t,r))},y.minus=y.sub=function(e){return e=new this.constructor(e),this.s==e.s?P(this,e):g(this,(e.s=-e.s,e))},y.modulo=y.mod=function(e){var t,n=this.constructor,r=n.precision;if(!(e=new n(e)).s)throw Error(u+"NaN");return this.s?(l=!1,t=b(this,e,0,1).times(e),l=!0,this.minus(t)):E(new n(this),r)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return A(this)},y.negated=y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},y.plus=y.add=function(e){return e=new this.constructor(e),this.s==e.s?g(this,e):P(this,(e.s=-e.s,e))},y.precision=y.sd=function(e){var t,n,r;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(s+e);if(t=w(this)+1,n=7*(r=this.d.length-1)+1,r=this.d[r]){for(;r%10==0;r/=10)n--;for(r=this.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},y.squareRoot=y.sqrt=function(){var e,t,n,r,o,i,a,s=this.constructor;if(this.s<1){if(!this.s)return new s(0);throw Error(u+"NaN")}for(e=w(this),l=!1,0==(o=Math.sqrt(+this))||o==1/0?(((t=m(this.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),r=new s(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new s(o.toString()),o=a=(n=s.precision)+3;;)if(r=(i=r).plus(b(this,i,a+2)).times(.5),m(i.d).slice(0,a)===(t=m(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(E(i,n+1,0),i.times(i).eq(this)){r=i;break}}else if("9999"!=t)break;a+=4}return l=!0,E(r,n)},y.times=y.mul=function(e){var t,n,r,o,i,a,u,s,c,f=this.constructor,p=this.d,d=(e=new f(e)).d;if(!this.s||!e.s)return new f(0);for(e.s*=this.s,n=this.e+e.e,(s=p.length)<(c=d.length)&&(i=p,p=d,d=i,a=s,s=c,c=a),i=[],r=a=s+c;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,o=s+r;o>r;)u=i[o]+d[r]*p[o-r-1]+t,i[o--]=u%1e7|0,t=u/1e7|0;i[o]=(i[o]+t)%1e7|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,l?E(e,f.precision):e},y.toDecimalPlaces=y.todp=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(v(e,0,1e9),void 0===t?t=r.rounding:v(t,0,8),E(n,e+w(n)+1,t))},y.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=M(r,!0):(v(e,0,1e9),void 0===t?t=o.rounding:v(t,0,8),n=M(r=E(new o(r),e+1,t),!0,e+1)),n},y.toFixed=function(e,t){var n,r,o=this.constructor;return void 0===e?M(this):(v(e,0,1e9),void 0===t?t=o.rounding:v(t,0,8),n=M((r=E(new o(this),e+w(this)+1,t)).abs(),!1,e+w(r)+1),this.isneg()&&!this.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var e=this.constructor;return E(new e(this),w(this)+1,e.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(e){var t,n,r,o,a,s,c=this,p=c.constructor,d=+(e=new p(e));if(!e.s)return new p(i);if(!(c=new p(c)).s){if(e.s<1)throw Error(u+"Infinity");return c}if(c.eq(i))return c;if(r=p.precision,e.eq(i))return E(c,r);if(s=(t=e.e)>=(n=e.d.length-1),a=c.s,s){if((n=d<0?-d:d)<=0x1fffffffffffff){for(o=new p(i),t=Math.ceil(r/7+4),l=!1;n%2&&C((o=o.times(c)).d,t),0!==(n=f(n/2));)C((c=c.times(c)).d,t);return l=!0,e.s<0?new p(i).div(o):E(o,r)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,c.s=1,l=!1,o=e.times(A(c,r+12)),l=!0,(o=x(o)).s=a,o},y.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?(n=w(o),r=M(o,n<=i.toExpNeg||n>=i.toExpPos)):(v(e,1,1e9),void 0===t?t=i.rounding:v(t,0,8),n=w(o=E(new i(o),e,t)),r=M(o,e<=n||n<=i.toExpNeg,e)),r},y.toSignificantDigits=y.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(v(e,1,1e9),void 0===t?t=n.rounding:v(t,0,8)),E(new n(this),e,t)},y.toString=y.valueOf=y.val=y.toJSON=function(){var e=w(this),t=this.constructor;return M(this,e<=t.toExpNeg||e>=t.toExpPos)};var b=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%1e7|0,r=n/1e7|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]1;)e.shift()}return function(r,o,i,a){var l,s,c,f,p,d,h,y,g,v,m,b,x,O,S,A,j,P,M=r.constructor,C=r.s==o.s?1:-1,k=r.d,_=o.d;if(!r.s)return new M(r);if(!o.s)throw Error(u+"Division by zero");for(c=0,s=r.e-o.e,j=_.length,S=k.length,y=(h=new M(C)).d=[];_[c]==(k[c]||0);)++c;if(_[c]>(k[c]||0)&&--s,(b=null==i?i=M.precision:a?i+(w(r)-w(o))+1:i)<0)return new M(0);if(b=b/7+2|0,c=0,1==j)for(f=0,_=_[0],b++;(c1&&(_=e(_,f),k=e(k,f),j=_.length,S=k.length),O=j,v=(g=k.slice(0,j)).length;v=1e7/2&&++A;do f=0,(l=t(_,g,j,v))<0?(m=g[0],j!=v&&(m=1e7*m+(g[1]||0)),(f=m/A|0)>1?(f>=1e7&&(f=1e7-1),d=(p=e(_,f)).length,v=g.length,1==(l=t(p,g,d,v))&&(f--,n(p,j16)throw Error(c+w(e));if(!e.s)return new d(i);for(null==t?(l=!1,u=h):u=t,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),f+=5;for(u+=Math.log(p(2,f))/Math.LN10*2+5|0,n=r=o=new d(i),d.precision=u;;){if(r=E(r.times(e),u),n=n.times(++s),m((a=o.plus(b(r,n,u))).d).slice(0,u)===m(o.d).slice(0,u)){for(;f--;)o=E(o.times(o),u);return d.precision=h,null==t?(l=!0,E(o,h)):o}o=a}}function w(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function O(e,t,n){if(t>e.LN10.sd())throw l=!0,n&&(e.precision=n),Error(u+"LN10 precision limit exceeded");return E(new e(e.LN10),t)}function S(e){for(var t="";e--;)t+="0";return t}function A(e,t){var n,r,o,a,s,c,f,p,d,h=1,y=e,g=y.d,v=y.constructor,x=v.precision;if(y.s<1)throw Error(u+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new v(0);if(null==t?(l=!1,p=x):p=t,y.eq(10))return null==t&&(l=!0),O(v,p);if(v.precision=p+=10,r=(n=m(g)).charAt(0),!(15e14>Math.abs(a=w(y))))return f=O(v,p+2,x).times(a+""),y=A(new v(r+"."+n.slice(1)),p-10).plus(f),v.precision=x,null==t?(l=!0,E(y,x)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=m((y=y.times(e)).d)).charAt(0),h++;for(a=w(y),r>1?(y=new v("0."+n),a++):y=new v(r+"."+n.slice(1)),c=s=y=b(y.minus(i),y.plus(i),p),d=E(y.times(y),p),o=3;;){if(s=E(s.times(d),p),m((f=c.plus(b(s,new v(o),p))).d).slice(0,p)===m(c.d).slice(0,p))return c=c.times(2),0!==a&&(c=c.plus(O(v,p+2,x).times(a+""))),c=b(c,new v(h),p),v.precision=x,null==t?(l=!0,E(c,x)):c;c=f,o+=2}}function j(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,e.e=f((n=n-r-1)/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),rh||e.e<-h))throw Error(c+n)}else e.s=0,e.e=0,e.d=[0];return e}function E(e,t,n){var r,o,i,a,u,s,d,y,g=e.d;for(a=1,i=g[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=7,o=t,d=g[y=0];else{if((y=Math.ceil((r+1)/7))>=(i=g.length))return e;for(a=1,d=i=g[y];i>=10;i/=10)a++;r%=7,o=r-7+a}if(void 0!==n&&(u=d/(i=p(10,a-o-1))%10|0,s=t<0||void 0!==g[y+1]||d%i,s=n<4?(u||s)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||s||6==n&&(r>0?o>0?d/p(10,a-o):0:g[y-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return s?(i=w(e),g.length=1,t=t-i-1,g[0]=p(10,(7-t%7)%7),e.e=f(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==r?(g.length=y,i=1,y--):(g.length=y+1,i=p(10,7-r),g[y]=o>0?(d/p(10,a-o)%p(10,o)|0)*i:0),s)for(;;)if(0==y){1e7==(g[0]+=i)&&(g[0]=1,++e.e);break}else{if(g[y]+=i,1e7!=g[y])break;g[y--]=0,i=1}for(r=g.length;0===g[--r];)g.pop();if(l&&(e.e>h||e.e<-h))throw Error(c+w(e));return e}function P(e,t){var n,r,o,i,a,u,s,c,f,p,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),l?E(t,h):t;if(s=e.d,p=t.d,r=t.e,c=e.e,s=s.slice(),a=c-r){for((f=a<0)?(n=s,a=-a,u=p.length):(n=p,r=c,u=s.length),a>(o=Math.max(Math.ceil(h/7),u)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=s.length)<(u=p.length))&&(u=o),o=0;o0;--o)s[u++]=0;for(o=p.length;o>a;){if(s[--o]0?i=i.charAt(0)+"."+i.slice(1)+S(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+S(-o-1)+i,n&&(r=n-a)>0&&(i+=S(r))):o>=a?(i+=S(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+S(r))):((r=o+1)0&&(o+1===a&&(i+="."),i+=S(r))),e.s<0?"-"+i:i}function C(e,t){if(e.length>t)return e.length=t,!0}function k(e){if(!e||"object"!=typeof e)throw Error(u+"Object expected");var t,n,r,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(s+n+": "+r);if(void 0!==(r=e[n="LN10"]))if(r==Math.LN10)this[n]=new this(r);else throw Error(s+n+": "+r);return this}(a=function e(t){var n,r,o;function i(e){if(!(this instanceof i))return new i(e);if(this.constructor=i,e instanceof i){this.s=e.s,this.e=e.e,this.d=(e=e.d)?e.slice():e;return}if("number"==typeof e){if(0*e!=0)throw Error(s+e);if(e>0)this.s=1;else if(e<0)e=-e,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(e===~~e&&e<1e7){this.e=0,this.d=[e];return}return j(this,e.toString())}if("string"!=typeof e)throw Error(s+e);if(45===e.charCodeAt(0)?(e=e.slice(1),this.s=-1):this.s=1,d.test(e))j(this,e);else throw Error(s+e)}if(i.prototype=y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=k,void 0===t&&(t={}),t)for(n=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];n{"use strict";n.d(t,{Q:()=>u});var r=n(32716),o=n(13297),i=n(2893),a=n(47122),l=n(83687),u=(0,r.gu)({chartName:"AreaChart",GraphicalChild:o.G,axisComponents:[{axisType:"xAxis",AxisComp:i.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:l.pr})},57140:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},57174:(e,t,n)=>{var r=n(83420),o=n(29496),i=n(68988),a=n(91544),l=n(48877);e.exports=function(e,t,n){var u=a(e)?r:o;return n&&l(e,t,n)&&(t=void 0),u(e,i(t,3))}},58905:(e,t,n)=>{"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function o(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}n.d(t,{C:()=>r,K:()=>o})},59513:(e,t,n)=>{var r=n(33573),o=n(3619);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},60449:(e,t,n)=>{var r=n(24127);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},61847:(e,t,n)=>{"use strict";var r=n(4140);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},63778:(e,t,n)=>{var r=n(57140),o=n(88274),i=n(25907),a=n(43092);e.exports=function(e){return i(e)?r(a(e)):o(e)}},64370:(e,t,n)=>{"use strict";n.d(t,{s:()=>I});var r=n(55729),o=n(98499),i=n.n(o),a=n(50212),l=n(7571),u=n(55426),s=n(54460),c=n(27281);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t');var x=t.inactive?d:t.color;return r.createElement("li",p({className:m,style:y,key:"legend-item-".concat(n)},(0,c.XC)(e.props,t,n)),r.createElement(u.u,{width:o,height:o,viewBox:h,style:g},e.renderIcon(t)),r.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},s?s(b,t,n):b))})}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,o=e.align;return t&&t.length?r.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?o:"left"}},this.renderItems()):null}}],function(e,t){for(var n=0;n1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?j({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,l=r.margin,u=r.chartWidth,s=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((s||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),j(j({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,o=t.width,i=t.height,a=t.wrapperStyle,l=t.payloadUniqBy,u=t.payload,s=j(j({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return r.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,t){if(r.isValidElement(e))return r.cloneElement(e,t);if("function"==typeof e)return r.createElement(e,t);t.ref;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,S);return r.createElement(b,n)}(n,j(j({},this.props),{},{payload:(0,w.s)(u,l,T)})))}}],n=[{key:"getWithHeight",value:function(e,t){var n=j(j({},this.defaultProps),e.props).layout;return"vertical"===n&&(0,x.Et)(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],t&&E(o.prototype,t),n&&E(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(r.PureComponent);k(I,"displayName","Legend"),k(I,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},65049:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var r=n(64370),o=n(1509),i=n(93780);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{u:()=>g});var r=n(55729),o=n(73403),i=n(3780),a=n(93780),l=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l),v=(0,a.J9)(g,!1);"x"===this.props.direction&&"number"!==h.type&&(0,o.A)(!1);var m=p.map(function(e){var o,a,l=d(e,f),p=l.x,g=l.y,m=l.value,b=l.errorVal;if(!b)return null;var x=[];if(Array.isArray(b)){var w=function(e){if(Array.isArray(e))return e}(b)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(b,2)||function(e,t){if(e){if("string"==typeof e)return c(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,2)}}(b,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();o=w[0],a=w[1]}else o=a=b;if("vertical"===n){var O=h.scale,S=g+t,A=S+u,j=S-u,E=O(m-o),P=O(m+a);x.push({x1:P,y1:A,x2:P,y2:j}),x.push({x1:E,y1:S,x2:P,y2:S}),x.push({x1:E,y1:A,x2:E,y2:j})}else if("horizontal"===n){var M=y.scale,C=p+t,k=C-u,_=C+u,T=M(m-o),I=M(m+a);x.push({x1:k,y1:I,x2:_,y2:I}),x.push({x1:C,y1:T,x2:C,y2:I}),x.push({x1:k,y1:T,x2:_,y2:T})}return r.createElement(i.W,s({className:"recharts-errorBar",key:"bar-".concat(x.map(function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))},v),x.map(function(e){return r.createElement("line",s({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))}))});return r.createElement(i.W,{className:"recharts-errorBars"},m)}}],function(e,t){for(var n=0;n{var r=n(38302),o=n(2882),i=n(91994);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},67290:(e,t,n)=>{var r=n(6802),o=n(28469),i=n(20764);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},67872:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","arrow-down","IconArrowDown",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]])},68668:(e,t,n)=>{var r=n(66678);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},68988:(e,t,n)=>{var r=n(67290),o=n(10931),i=n(5549),a=n(91544),l=n(63778);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):l(e)}},70930:e=>{e.exports=function(e,t){return e>t}},71947:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}n.d(t,{A:()=>r}),Array.prototype.slice},73403:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});function r(e,t){if(!e)throw Error("Invariant failed")}},75115:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l});var r=n(30988);function o(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}var i=n(28816);function a(e,t){var n=t-e;return n?function(t){return e+t*n}:(0,i.A)(isNaN(e)?t:e)}let l=function e(t){var n,o=1==(n=+t)?a:function(e,t){var r,o,a;return t-e?(r=e,o=t,r=Math.pow(r,a=n),o=Math.pow(o,a)-r,a=1/a,function(e){return Math.pow(r+e*o,a)}):(0,i.A)(isNaN(e)?t:e)};function l(e,t){var n=o((e=(0,r.Qh)(e)).r,(t=(0,r.Qh)(t)).r),i=o(e.g,t.g),l=o(e.b,t.b),u=a(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=l(t),e.opacity=u(t),e+""}}return l.gamma=e,l}(1);function u(e){return function(t){var n,o,i=t.length,a=Array(i),l=Array(i),u=Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],l=r>0?e[r-1]:2*i-a,u=r{var r=n(38302),o=n(68988),i=n(98888),a=Math.max;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return -1;var u=null==n?0:i(n);return u<0&&(u=a(l+u,0)),r(e,o(t,3),u)}},78383:e=>{e.exports=function(){}},78895:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j});var r=n(55729),o=n(38822),i=n.n(o),a=n(23356),l=n.n(a),u=n(98499),s=n.n(u),c=n(16419),f=n.n(c),p=n(35555),d=n(3780),h=n(93780),y=n(1509);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v=["valueAccessor"],m=["data","dataKey","clockWise","id","textBreakAll"];function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var A=function(e){return Array.isArray(e.value)?f()(e.value):e.value};function j(e){var t=e.valueAccessor,n=void 0===t?A:t,o=S(e,v),a=o.data,l=o.dataKey,u=o.clockWise,s=o.id,c=o.textBreakAll,f=S(o,m);return a&&a.length?r.createElement(d.W,{className:"recharts-label-list"},a.map(function(e,t){var o=i()(l)?n(e,t):(0,y.kr)(e&&e.payload,l),a=i()(s)?{}:{id:"".concat(s,"-").concat(t)};return r.createElement(p.J,x({},(0,h.J9)(e,!0),f,a,{parentViewBox:e.parentViewBox,value:o,textBreakAll:c,viewBox:p.J.parseViewBox(i()(u)?e:O(O({},e),{},{clockWise:u})),key:"label-".concat(t),index:t}))})):null}j.displayName="LabelList",j.renderCallByParent=function(e,t){var n,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&o&&!e.label)return null;var i=e.children,a=(0,h.aS)(i,j).map(function(e,n){return(0,r.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});return o?[(n=e.label,!n?null:!0===n?r.createElement(j,{key:"labelList-implicit",data:t}):r.isValidElement(n)||s()(n)?r.createElement(j,{key:"labelList-implicit",data:t,content:n}):l()(n)?r.createElement(j,x({data:t},n,{key:"labelList-implicit"})):null)].concat(function(e){if(Array.isArray(e))return b(e)}(a)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return b(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,void 0)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):a}},79220:(e,t,n)=>{"use strict";n.d(t,{Kv:()=>i,N4:()=>a});var r=n(55729),o=n(39696);function i(e,t){var n,o,i;let a;return e?"function"==typeof(o=n=e)&&(a=Object.getPrototypeOf(o)).prototype&&a.prototype.isReactComponent||"function"==typeof n||"object"==typeof(i=n)&&"symbol"==typeof i.$$typeof&&["react.memo","react.forward_ref"].includes(i.$$typeof.description)?r.createElement(e,t):e:null}function a(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState(()=>({current:(0,o.ZR)(t)})),[i,a]=r.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...i,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}},79860:(e,t,n)=>{var r=n(31736),o=n(78383),i=n(48546);e.exports=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o},82694:e=>{e.exports=function(e,t){return e.has(t)}},83420:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}},83687:(e,t,n)=>{"use strict";n.d(t,{P2:()=>w,bx:()=>O,pr:()=>v,sl:()=>m,vh:()=>b});var r=n(1905),o=n.n(r),i=n(57174),a=n.n(i),l=n(1509),u=n(93780),s=n(53645),c=n(2055);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n0&&(M=Math.min((e||0)-(C[t-1]||0),M))}),Number.isFinite(M)){var k=M/P,_="vertical"===b.layout?n.height:n.width;if("gap"===b.padding&&(u=k*_/2),"no-gap"===b.padding){var T=(0,s.F4)(e.barCategoryGap,k*_),I=k*_/2;u=I-T-(I-T)/_*T}}}c="xAxis"===r?[n.left+(S.left||0)+(u||0),n.left+n.width-(S.right||0)-(u||0)]:"yAxis"===r?"horizontal"===f?[n.top+n.height-(S.bottom||0),n.top+(S.top||0)]:[n.top+(S.top||0)+(u||0),n.top+n.height-(S.bottom||0)-(u||0)]:b.range,j&&(c=[c[1],c[0]]);var R=(0,l.W7)(b,o,v),D=R.scale,N=R.realScaleType;D.domain(w).range(c),(0,l.YB)(D);var F=(0,l.w7)(D,h(h({},b),{},{realScaleType:N}));"xAxis"===r?(m="top"===x&&!A||"bottom"===x&&A,p=n.left,d=g[E]-m*b.height):"yAxis"===r&&(m="left"===x&&!A||"right"===x&&A,p=g[E]-m*b.width,d=n.top);var B=h(h(h({},b),F),{},{realScaleType:N,x:p,y:d,scale:D,width:"xAxis"===r?n.width:b.width,height:"yAxis"===r?n.height:b.height});return B.bandSize=(0,l.Hj)(B,F),b.hide||"xAxis"!==r?b.hide||(g[E]+=(m?-1:1)*B.width):g[E]+=(m?-1:1)*B.height,h(h({},i),{},y({},a,B))},{})},m=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},b=function(e){return m({x:e.x1,y:e.y1},{x:e.x2,y:e.y2})},x=function(){var e,t;function n(e){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");this.scale=e}return e=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],t=[{key:"create",value:function(e){return new n(e)}}],e&&p(n.prototype,e),t&&p(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();y(x,"EPS",1e-4);var w=function(e){var t=Object.keys(e).reduce(function(t,n){return h(h({},t),{},y({},n,x.create(e[n])))},{});return h(h({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return o()(e,function(e,n){return t[n].apply(e,{bandAware:r,position:i})})},isInRange:function(e){return a()(e,function(e,n){return t[n].isInRange(e)})}})},O=function(e){var t=e.width,n=e.height,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(r%180+180)%180*Math.PI/180,i=Math.atan(n/t);return Math.abs(o>i&&o{var r=n(7855);e.exports=function(e,t){return r(e,t)}},84450:(e,t,n)=>{var r=n(33573),o=n(91544),i=n(3619);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},84905:(e,t,n)=>{var r=n(19962),o=n(13917),i=n(5549);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},86152:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r{var r=n(17877),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},87383:(e,t,n)=>{"use strict";n.d(t,{jG:()=>l});var r=n(18896),o=n.n(r),i=n(55729);"function"==typeof SuppressedError&&SuppressedError;var a={Link:"link",Button:"button"};function l(){return{CSVDownloader:function(){var e=this,t=function(t){var n=t.children,r=t.data,l=void 0===r?{}:r,u=t.filename,s=t.type,c=void 0===s?a.Link:s,f=t.style,p=void 0===f?{}:f,d=t.className,h=void 0===d?"":d,y=t.bom,g=void 0!==y&&y,v=t.config,m=void 0===v?{}:v,b=function(){var t,n,r;return t=void 0,n=void 0,r=function(){var e,t,n,r,i,a;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(u){var s=[l,u];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]{"use strict";n.d(t,{T:()=>j});var r=n(55729),o=n(98499),i=n.n(o),a=n(50212),l=n(3780),u=n(35555),s=n(83687),c=n(47374),f=n(53645),p=n(7571),d=n(2390),h=n(93780);function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=n(24127);e.exports=function(e){return function(t){return r(t,e)}}},88859:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});var r={isSsr:!("u">typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return r[e]},set:function(e,t){if("string"==typeof e)r[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach(function(t){r[t]=e[t]})}}}},90199:e=>{var t="\\ud800-\\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+n+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",s="(?:\\u200d(?:"+[o,i,a].join("|")+")"+u+l+")*",c=RegExp(r+"(?="+r+")|"+("(?:"+[o+n+"?",n,i,a,"["+t+"]"].join("|"))+")"+(u+l+s),"g");e.exports=function(e){return e.match(c)||[]}},90505:(e,t,n)=>{"use strict";n.d(t,{A3:()=>f,Pu:()=>c});var r=n(88859);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||r.m.isSsr)return{width:0,height:0};var o=(Object.keys(t=a({},n)).forEach(function(e){t[e]||delete t[e]}),t),i=JSON.stringify({text:e,copyStyle:o});if(l.widthCache[i])return l.widthCache[i];try{var c=document.getElementById(s);c||((c=document.createElement("span")).setAttribute("id",s),c.setAttribute("aria-hidden","true"),document.body.appendChild(c));var f=a(a({},u),o);Object.assign(c.style,f),c.textContent="".concat(e);var p=c.getBoundingClientRect(),d={width:p.width,height:p.height};return l.widthCache[i]=d,++l.cacheCount>2e3&&(l.cacheCount=0,l.widthCache={}),d}catch(e){return{width:0,height:0}}},f=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}}},90843:(e,t,n)=>{var r=n(50515);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),l=void 0!==t,u=null===t,s=t==t,c=r(t);if(!u&&!c&&!a&&e>t||a&&l&&s&&!u&&!c||o&&l&&s||!n&&s||!i)return 1;if(!o&&!a&&!c&&e{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},91994:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r{"use strict";n.d(t,{E:()=>u});var r=n(32716),o=n(2055),i=n(2893),a=n(47122),l=n(83687),u=(0,r.gu)({chartName:"BarChart",GraphicalChild:o.y,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:i.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:l.pr})},92224:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>eN});var r=n(55729),o=n(56121),i=n.n(o),a=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty;function s(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function c(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,i=o.get(t),a=o.get(n);if(i&&a)return i===n&&a===t;o.set(t,n),o.set(n,t);var l=e(t,n,r);return o.delete(t),o.delete(n),l}}function f(e){return a(e).concat(l(e))}var p=Object.hasOwn||function(e,t){return u.call(e,t)};function d(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var h="_owner",y=Object.getOwnPropertyDescriptor,g=Object.keys;function v(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function m(e,t){return d(e.getTime(),t.getTime())}function b(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.entries(),l=0;(r=a.next())&&!r.done;){for(var u=t.entries(),s=!1,c=0;(o=u.next())&&!o.done;){var f=r.value,p=f[0],d=f[1],h=o.value,y=h[0],g=h[1];!s&&!i[c]&&(s=n.equals(p,y,l,c,e,t,n)&&n.equals(d,g,p,y,e,t,n))&&(i[c]=!0),c++}if(!s)return!1;l++}return!0}function x(e,t,n){var r,o=g(e),i=o.length;if(g(t).length!==i)return!1;for(;i-- >0;)if((r=o[i])===h&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!p(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function w(e,t,n){var r,o,i,a=f(e),l=a.length;if(f(t).length!==l)return!1;for(;l-- >0;)if((r=a[l])===h&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!p(t,r)||!n.equals(e[r],t[r],r,r,e,t,n)||(o=y(e,r),i=y(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable)))return!1;return!0}function O(e,t){return d(e.valueOf(),t.valueOf())}function S(e,t){return e.source===t.source&&e.flags===t.flags}function A(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.values();(r=a.next())&&!r.done;){for(var l=t.values(),u=!1,s=0;(o=l.next())&&!o.done;)!u&&!i[s]&&(u=n.equals(r.value,o.value,r.value,o.value,e,t,n))&&(i[s]=!0),s++;if(!u)return!1}return!0}function j(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var E=Array.isArray,P="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,M=Object.assign,C=Object.prototype.toString.call.bind(Object.prototype.toString),k=_();function _(e){void 0===e&&(e={});var t,n,r,o,i,a,l,u,f,p=e.circular,d=e.createInternalComparator,h=e.createState,y=e.strict,g=(n=(t=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?w:v,areDatesEqual:m,areMapsEqual:r?s(b,w):b,areObjectsEqual:r?w:x,arePrimitiveWrappersEqual:O,areRegExpsEqual:S,areSetsEqual:r?s(A,w):A,areTypedArraysEqual:r?w:j};if(n&&(o=M({},o,n(o))),t){var i=c(o.areArraysEqual),a=c(o.areMapsEqual),l=c(o.areObjectsEqual),u=c(o.areSetsEqual);o=M({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:l,areSetsEqual:u})}return o}(e)).areArraysEqual,r=t.areDatesEqual,o=t.areMapsEqual,i=t.areObjectsEqual,a=t.arePrimitiveWrappersEqual,l=t.areRegExpsEqual,u=t.areSetsEqual,f=t.areTypedArraysEqual,function(e,t,s){if(e===t)return!0;if(null==e||null==t||"object"!=typeof e||"object"!=typeof t)return e!=e&&t!=t;var c=e.constructor;if(c!==t.constructor)return!1;if(c===Object)return i(e,t,s);if(E(e))return n(e,t,s);if(null!=P&&P(e))return f(e,t,s);if(c===Date)return r(e,t,s);if(c===RegExp)return l(e,t,s);if(c===Map)return o(e,t,s);if(c===Set)return u(e,t,s);var p=C(e);return"[object Date]"===p?r(e,t,s):"[object RegExp]"===p?l(e,t,s):"[object Map]"===p?o(e,t,s):"[object Set]"===p?u(e,t,s):"[object Object]"===p?"function"!=typeof e.then&&"function"!=typeof t.then&&i(e,t,s):"[object Arguments]"===p?i(e,t,s):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&a(e,t,s)}),k=d?d(g):function(e,t,n,r,o,i,a){return g(e,t,a)};return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(e,a){var l=r(),u=l.cache;return n(e,a,{cache:void 0===u?t?new WeakMap:void 0:u,equals:o,meta:l.meta,strict:i})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return n(e,t,a)}}({circular:void 0!==p&&p,comparator:g,createState:h,equals:k,strict:void 0!==y&&y})}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(o){if(n<0&&(n=o),o-n>t)e(o),n=-1;else{var i;i=r,"u">typeof requestAnimationFrame&&requestAnimationFrame(i)}})}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),4!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(c,4)||H(c,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();i=f[0],a=f[1],l=f[2],u=f[3]}else U(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}U([i,l,a,u].every(function(e){return"number"==typeof e&&e>=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var p=q(i,l),d=q(a,u),h=(e=i,t=l,function(n){var r;return W([].concat(function(e){if(Array.isArray(e))return G(e)}(r=$(e,t).map(function(e,t){return e*t}).slice(1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||H(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),n)}),y=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o,i=p(n)-t,a=h(n);if(1e-4>Math.abs(i-t)||a<1e-4)break;n=(o=n-i/a)>1?1:o<0?0:o}return d(n)};return y.isStepper=!1,y},K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,l=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,l=r*a/1e3+e;return 1e-4>Math.abs(l-t)&&1e-4>Math.abs(i)?[t,0]:[l,i]};return l.isStepper=!0,l.dt=a,l},Y=function(){for(var e=arguments.length,t=Array(e),n=0;ntypeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||en(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ee(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(r,2)||en(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1];return ee(ee({},n),{},{from:i,velocity:a})}return n},n);return r<1?z(function(e,t){return ei(t)?ee(ee({},t),{},{velocity:eo(t.velocity,o[e].velocity,r),from:eo(t.from,o[e].from,r)}):t},n):e(t,o,r-1)};let el=function(e,t,n,r,o){var i,a,l=[Object.keys(e),Object.keys(t)].reduce(function(e,t){return e.filter(function(e){return t.includes(e)})}),u=l.reduce(function(n,r){return ee(ee({},n),{},et({},r,[e[r],t[r]]))},{}),s=l.reduce(function(n,r){return ee(ee({},n),{},et({},r,{from:e[r],velocity:0,to:t[r]}))},{}),c=-1,f=function(){return null};return f=n.isStepper?function(r){i||(i=r);var a=(r-i)/n.dt;s=ea(n,s,a),o(ee(ee(ee({},e),t),z(function(e,t){return t.from},s))),i=r,Object.values(s).filter(ei).length&&(c=requestAnimationFrame(f))}:function(i){a||(a=i);var l=(i-a)/r,s=z(function(e,t){return eo.apply(void 0,Z(t).concat([n(l)]))},u);if(o(ee(ee(ee({},e),t),s)),l<1)c=requestAnimationFrame(f);else{var p=z(function(e,t){return eo.apply(void 0,Z(t).concat([n(1)]))},u);o(ee(ee(ee({},e),t),p))}},function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}};function eu(e){return(eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var es=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function ec(e){return function(e){if(Array.isArray(e))return ef(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ef(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ef(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ef(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?n[o-1]:r,p=s||Object.keys(u);if("function"==typeof l||"spring"===l)return[].concat(ec(e),[t.runJSAnimation.bind(t,{from:f.style,to:u,duration:i,easing:l}),i]);var d=V(p,i,l),h=ed(ed(ed({},f.style),u),{},{transition:d});return[].concat(ec(e),[h,i,c]).filter(L)},[a,Math.max(void 0===l?0:l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=(t=function(){return null},n=!1,r=function e(r){if(!n){if(Array.isArray(r)){if(!r.length)return;var o=function(e){if(Array.isArray(e))return e}(r)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return R(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,void 0)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o.slice(1);return"number"==typeof i?void T(e.bind(null,a),i):(e(i),void T(e.bind(null,a)))}"object"===I(r)&&t(r),"function"==typeof r&&r()}},{stop:function(){n=!0},start:function(e){n=!1,r(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}));var t,n,r,o=e.begin,i=e.duration,a=e.attributeName,l=e.to,u=e.easing,s=e.onAnimationStart,c=e.onAnimationEnd,f=e.steps,p=e.children,d=this.manager;if(this.unSubscribe=d.subscribe(this.handleStyleChange),"function"==typeof u||"function"==typeof p||"spring"===u)return void this.runJSAnimation(e);if(f.length>1)return void this.runStepAnimation(e);var h=a?eh({},a,l):l,y=V(Object.keys(h),i,u);d.start([s,o,ed(ed({},h),{},{transition:y}),i,c])}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration),o=(e.attributeName,e.easing,e.isActive),i=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,es)),a=r.Children.count(t),l=this.state.style;if("function"==typeof t)return t(l);if(!o||0===a||n<=0)return t;var u=function(e){var t=e.props,n=t.style,o=t.className;return(0,r.cloneElement)(e,ed(ed({},i),{},{style:ed(ed({},void 0===n?{}:n),l),className:o}))};return 1===a?u(r.Children.only(t)):r.createElement("div",null,r.Children.map(t,function(e){return u(e)}))}}],function(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)},0):Number.isFinite(n)?n:0},eR=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&eM(i,e);var t,n,o=(t=function(){if("u"=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,eS));return r.createElement(eO.Ay,ej({},o,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return r.createElement(ex,e.state,r.Children.only(n))})}}],function(e,t){for(var n=0;n{"use strict";n.d(t,{e:()=>k});var r=n(55729),o=n(98499),i=n.n(o),a=n(13731),l=n.n(a),u=n(50212),s=n(3780),c=n(35555),f=n(47374),p=n(53645),d=n(83687),h=n(7571),y=n(93780),g=n(2549);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(A,2)||function(e,t){if(e){if("string"==typeof e)return j(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,2)}}(A,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),C=E[0],k=C.x,_=C.y,T=E[1],I=T.x,R=T.y,D=O(O({clipPath:(0,f.R)(e,"hidden")?"url(#".concat(b,")"):void 0},(0,y.J9)(e,!0)),{},{x1:k,y1:_,x2:I,y2:R});return r.createElement(s.W,{className:(0,u.A)("recharts-reference-line",v)},P(l,D),c.J.renderCallByParent(e,(0,d.vh)({x1:k,y1:_,x2:I,y2:R})))}var k=function(e){var t;function n(){var e,t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=b(e),function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,m()?Reflect.construct(e,t||[],b(this).constructor):e.apply(this,t))}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&x(n,e),t=[{key:"render",value:function(){return r.createElement(C,this.props)}}],function(e,t){for(var n=0;n{"use strict";n.d(t,{s:()=>l});var r=n(831),o=n.n(r),i=n(98499),a=n.n(i);function l(e,t,n){return!0===t?o()(e,n):a()(t)?o()(e,t):e}},93733:(e,t,n)=>{var r=n(50956),o=n(16799);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},93780:(e,t,n)=>{"use strict";n.d(t,{AW:()=>B,BU:()=>M,J9:()=>I,Me:()=>C,Mn:()=>S,OV:()=>R,X_:()=>F,aS:()=>P,ee:()=>N,sT:()=>_});var r=n(60449),o=n.n(r),i=n(38822),a=n.n(i),l=n(84450),u=n.n(l),s=n(98499),c=n.n(s),f=n(23356),p=n.n(f),d=n(55729),h=n(16878),y=n(53645),g=n(5688),v=n(27281),m=["children"],b=["children"];function x(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var O={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},S=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},A=null,j=null,E=function e(t){if(t===A&&Array.isArray(j))return j;var n=[];return d.Children.forEach(t,function(t){a()(t)||((0,h.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),j=n,A=t,n};function P(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return S(e)}):[S(t)],E(e).forEach(function(e){var t=o()(e,"type.displayName")||o()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)}),n}function M(e,t){var n=P(e,t);return n&&n[0]}var C=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!!(0,y.Et)(n)&&!(n<=0)&&!!(0,y.Et)(r)&&!(r<=0)},k=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],_=function(e){return e&&"object"===w(e)&&"clipDot"in e},T=function(e,t,n,r){var o,i=null!=(o=null===v.VU||void 0===v.VU?void 0:v.VU[r])?o:[];return!c()(e)&&(r&&i.includes(t)||v.QQ.includes(t))||n&&v.j2.includes(t)},I=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,d.isValidElement)(e)&&(r=e.props),!p()(r))return null;var o={};return Object.keys(r).forEach(function(e){var i;T(null==(i=r)?void 0:i[e],e,t,n)&&(o[e]=r[e])}),o},R=function e(t,n){if(t===n)return!0;var r=d.Children.count(t);if(r!==d.Children.count(n))return!1;if(0===r)return!0;if(1===r)return D(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o=0)n.push(e);else if(e){var i=S(e.type),a=t[i]||{},l=a.handler,s=a.once;if(l&&(!s||!r[i])){var c=l(e,i,o);n.push(c),r[i]=!0}}}),n},F=function(e){var t=e&&e.type;return t&&O[t]?O[t]:null},B=function(e,t){return E(t).indexOf(e)}},93803:(e,t,n)=>{var r=n(88601),o=n(68988),i=n(93733),a=n(91544);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},95099:(e,t,n)=>{"use strict";n.d(t,{q:()=>l});var r=n(28171),o=n(43379),i=class extends r.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,o.PL)()},t)}getOptimisticResult(e){return e.behavior=(0,o.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:l,isRefetchError:u}=r,s=n.fetchMeta?.fetchMore?.direction,c=l&&"forward"===s,f=i&&"forward"===s,p=l&&"backward"===s,d=i&&"backward"===s;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,o.rB)(t,n.data),hasPreviousPage:(0,o.RQ)(t,n.data),isFetchNextPageError:c,isFetchingNextPage:f,isFetchPreviousPageError:p,isFetchingPreviousPage:d,isRefetchError:u&&!c&&!p,isRefetching:a&&!f&&!d}}},a=n(34185);function l(e,t){return(0,a.t)(e,i,t)}},95486:(e,t,n)=>{var r=n(2603),o=n(9819),i=n(18053),a=n(60567);e.exports=function(e){return function(t){var n=o(t=a(t))?i(t):void 0,l=n?n[0]:t.charAt(0),u=n?r(n,1).join(""):t.slice(1);return l[e]()+u}}},95801:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw TypeError("The listener must be a function");var l=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],l]:e._events[u].push(l):(e._events[u]=l,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),l.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=Array(i);o{var r=n(15051),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var u=1&n,s=r(e),c=s.length;if(c!=r(t).length&&!u)return!1;for(var f=c;f--;){var p=s[f];if(!(u?p in t:o.call(t,p)))return!1}var d=l.get(e),h=l.get(t);if(d&&h)return d==t&&h==e;var y=!0;l.set(e,t),l.set(t,e);for(var g=u;++f{var r=n(33573),o=n(3619);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},97767:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","arrow-up","IconArrowUp",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]])},98501:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{var r=n(11061);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/pages/_app-35c9ed614de0b91d.js b/out/_next/static/chunks/pages/_app-35c9ed614de0b91d.js new file mode 100644 index 0000000..d2acc7f --- /dev/null +++ b/out/_next/static/chunks/pages/_app-35c9ed614de0b91d.js @@ -0,0 +1,31 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{17:e=>{"use strict";e.exports=Object},76:(e,t,r)=>{"use strict";r.d(t,{GY:()=>a,YC:()=>o,dh:()=>l,ks:()=>c,nJ:()=>s,ny:()=>u});var n=r(90324),i=r(26615);function o(e,t="size",r=!0){if(void 0!==e)return(0,n.t)(e)?r?(0,i.D)(e):e:`var(--${t}-${e})`}function a(e){return o(e,"mantine-spacing")}function s(e){return void 0===e?"var(--mantine-radius-default)":o(e,"mantine-radius")}function u(e){return o(e,"mantine-font-size")}function c(e){return o(e,"mantine-line-height",!1)}function l(e){if(e)return o(e,"mantine-shadow",!1)}},226:(e,t)=>{"use strict";function r(e){return function(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.width,s=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],u=t.match(s);if(!u)return null;var c=u[0],l=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(l)?i(l,function(e){return e.test(c)}):n(l,function(e){return e.test(c)});return r=e.valueCallback?e.valueCallback(f):f,{value:r=o.valueCallback?o.valueCallback(r):r,rest:t.slice(c.length)}}}function n(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function i(e,t){for(var r=0;r{"use strict";r.d(t,{Y:()=>o});var n=r(55729),i=r(9825);function o(e,t){let r="number"==typeof t?t:t.delay,o="number"!=typeof t&&t.flushOnUnmount,a=(0,i.c)(e),s=(0,n.useRef)(0),u=(0,n.useRef)(()=>{}),c=Object.assign((0,n.useCallback)((...e)=>{window.clearTimeout(s.current);let t=()=>{0!==s.current&&(s.current=0,a(...e))};u.current=t,c.flush=t,s.current=window.setTimeout(t,r)},[a,r]),{flush:u.current});return(0,n.useEffect)(()=>()=>{window.clearTimeout(s.current),o&&c.flush()},[c,o]),c}},299:(e,t,r)=>{"use strict";function n(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}r.d(t,{A:()=>n})},387:(e,t,r)=>{"use strict";r.d(t,{R0:()=>M,jC:()=>E,lr:()=>w,vM:()=>x});var n=r(75155),i=r(55729),o=r(81278),a=r(29326),s=r(97895),u=r(43465),c=r(43407),l=r(28180),f=r(22497),d=r(41038),h=r(6065),p=r(76089),m=r(13759),y=r(57820),g=r(92917);let b="Live Tail",v=1e3,_=(e,t)=>`${(0,p.Yq)(e[0],{isUTC:t,format:"normal",clock:"24h"})} - ${(0,p.Yq)(e[1],{isUTC:t,format:"normal",clock:"24h"})}`;function S(e){return""===e||e.includes(b)}function E(e){let t=(0,a.A)(new Date);return[(0,s.A)(t,e),t]}function w(e,t){return(0,m.c0)(e,t)}function T(e,t){let[r,n]=w(e,t);if(null!=r&&null!=n)return[r,n]}function x({defaultValue:e=b,defaultTimeRange:t=[-1,-1],isLiveEnabled:r=!0}){let n=(0,o.useRouter)().isReady,s=(0,g.ZC)(n),{userPreferences:{isUTC:c}}=(0,y.HW)(),[l,f]=(0,i.useState)(void 0),[d,p]=(0,h.useQueryParams)({from:(0,h.withDefault)(h.NumberParam,void 0),to:(0,h.withDefault)(h.NumberParam,void 0)},{updateType:"pushIn",enableBatching:!0}),m=(0,i.useMemo)(()=>({from:d.from??t[0],to:d.to??t[1]}),[d,t]),[E,x]=(0,h.useQueryParam)("tq",(0,h.withDefault)(h.StringParam,""),{updateType:"pushIn",enableBatching:!0}),A=(0,g.ZC)(E);(0,i.useEffect)(()=>{if(n&&!s)if(""!=E)f(E);else if(null!=d.from&&null!=d.to){let e=_([new Date(d.from),new Date(d.to)],c);f(e),x(e)}else f(e)},[d,e,E,n,c,s,x,f]);let[O,M]=(0,i.useState)(void 0),[R,C]=(0,i.useState)(void 0),I=n&&-1!=m.from&&-1!=m.to?_([new Date(m.from),new Date(m.to)],c):void 0,N=(0,i.useRef)(void 0);(0,i.useEffect)(()=>{if(n&&!S(E)&&A!=E){let e=T(E,c);N.current=e,null!=e&&null==d.from&&null==d.to&&p({from:e[0].getTime(),to:e[1].getTime()})}},[n,E,c,d,p,A]);let P=(0,i.useMemo)(()=>{if(n&&-1!=m.from&&-1!=m.to)return[new Date(m.from),new Date(m.to)];if(n&&-1==m.from&&-1==m.to&&null!=O)return O;if(n&&-1==m.from&&-1==m.to&&null==O&&null!=R)return R;{if(n&&-1==m.from&&-1==m.to&&null==O&&null==R&&!S(E)&&null!=N.current)return N.current;if(!(n&&-1==m.from&&-1==m.to&&null==O&&null==R&&S(E)))return[new Date,new Date];let e=(0,a.A)(new Date);return[(0,u.A)(e,{minutes:15}),e]}},[n,m,O,R,E]),k=(0,i.useMemo)(()=>n&&r&&-1==m.from&&-1==m.to&&(""==E||E.includes(b)),[n,r,m,E]),D=()=>{let e=(0,a.A)(new Date);M([(0,u.A)(e,{minutes:15}),e])};(0,i.useEffect)(()=>{let e;return k&&(D(),e=setInterval(D,v)),()=>{null!=e&&(clearInterval(e),e=void 0)}},[k]);let L=(0,i.useCallback)(e=>{if(!1===k&&e)C(void 0),p({from:void 0,to:void 0}),f(b),x(b),D();else if(k&&!1===e&&null!=O){let[e,t]=O;C(O),p({from:e.getTime(),to:t.getTime()}),M(void 0);let r=_([e,t],c);f(r),x(r)}},[k,p,f,O,c,x]);return{isReady:n,isLive:k,displayedTimeInputValue:l??I??e,setDisplayedTimeInputValue:f,searchedTimeRange:P,onSearch:(0,i.useCallback)(e=>{let[t,r]=w(e,c);if(null!=t&&null!=r)if(p({from:t.getTime(),to:r.getTime()}),-1===e.toLowerCase().indexOf("past")){let e=_([t,r],c);f(e),x(e)}else x(e)},[c,p,f,x]),onTimeRangeSelect:(0,i.useCallback)((e,t)=>{p({from:e.getTime(),to:t.getTime()});let r=_([e,t],c);f(r),x(r)},[c,p,f,x]),setIsLive:L}}let A=(e,t)=>{let r=(0,c.A)({start:e,end:t}),n=(0,l.A)(r);return`Past ${n}`},O={from:d.YC,to:d.YC};function M(e){let t,r,a,s,u,c,l,h,p=(0,n.c)(35),{initialDisplayValue:m,initialTimeRange:g,showRelativeInterval:b,setDisplayedTimeInputValue:v,updateInput:S}=e,E=(0,o.useRouter)().isReady,{userPreferences:T}=(0,y.HW)(),{isUTC:x}=T;p[0]!==m||p[1]!==g||p[2]!==x?(t=()=>m??_(g,x),p[0]=m,p[1]=g,p[2]=x,p[3]=t):t=p[3];let[M,C]=(0,i.useState)(t),I=v??C;p[4]===Symbol.for("react.memo_cache_sentinel")?(r={history:"push"},p[4]=r):r=p[4];let[N,P]=(0,d.ab)(O,r),{from:k,to:D}=N;p[5]!==k||p[6]!==g||p[7]!==D?(a=null!=k&&null!=D?[new Date(k),new Date(D)]:g,p[5]=k,p[6]=g,p[7]=D,p[8]=a):a=p[8];let[L,j]=(0,i.useState)(a);p[9]!==x||p[10]!==P?(s=e=>{let[t,r]=w(e,x);null!=t&&null!=r&&P({from:t.getTime(),to:r.getTime()})},p[9]=x,p[10]=P,p[11]=s):s=p[11];let U=s;p[12]!==I||p[13]!==k||p[14]!==m||p[15]!==g||p[16]!==E||p[17]!==x||p[18]!==b||p[19]!==D||p[20]!==S?(u=()=>{if(null!=k&&null!=D&&E){let e=new Date(k),t=new Date(D);if((0,f.A)(e)&&(0,f.A)(t)){j([e,t]);let r=b&&A(e,t)||_([e,t],x);!1!==S&&I(r)}}else if(null==k&&null==D&&E){j(g);let e=_(g,x);!1!==S&&(b?I(m??e):I(e))}},c=[E,x,k,D,m,g,b,I,S],p[12]=I,p[13]=k,p[14]=m,p[15]=g,p[16]=E,p[17]=x,p[18]=b,p[19]=D,p[20]=S,p[21]=u,p[22]=c):(u=p[21],c=p[22]),(0,i.useEffect)(u,c),p[23]!==I||p[24]!==x||p[25]!==P?(l=(e,t,r)=>{P({from:e.getTime(),to:t.getTime()}),j([e,t]);let n=_([e,t],x);null!==r&&I(r??n)},p[23]=I,p[24]=x,p[25]=P,p[26]=l):l=p[26];let B=l;return p[27]!==M||p[28]!==k||p[29]!==E||p[30]!==U||p[31]!==L||p[32]!==B||p[33]!==D?(h={from:k,to:D,isReady:E,displayedTimeInputValue:M,setDisplayedTimeInputValue:R,searchedTimeRange:L,onSearch:U,onTimeRangeSelect:B},p[27]=M,p[28]=k,p[29]=E,p[30]=U,p[31]=L,p[32]=B,p[33]=D,p[34]=h):h=p[34],h}function R(){}},872:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var n=p(r(73858)),i=p(r(46531)),o=p(r(3514)),a=p(r(15179)),s=p(r(94229)),u=p(r(83605)),c=r(75520),l=p(r(78229)),f=p(r(42462)),d=r(31055),h=p(r(29771));function p(e){return e&&e.__esModule?e:{default:e}}var m=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,g=/^'([^]*?)'?$/,b=/''/g,v=/[a-zA-Z]/;function _(e,t,r){(0,f.default)(2,arguments);var p,g,b,_,E,w,T,x,A,O,M,R,C,I,N,P,k,D,L=String(t),j=(0,d.getDefaultOptions)(),U=null!=(p=null!=(g=null==r?void 0:r.locale)?g:j.locale)?p:h.default,B=(0,l.default)(null!=(b=null!=(_=null!=(E=null!=(w=null==r?void 0:r.firstWeekContainsDate)?w:null==r||null==(T=r.locale)||null==(x=T.options)?void 0:x.firstWeekContainsDate)?E:j.firstWeekContainsDate)?_:null==(A=j.locale)||null==(O=A.options)?void 0:O.firstWeekContainsDate)?b:1);if(!(B>=1&&B<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=(0,l.default)(null!=(M=null!=(R=null!=(C=null!=(I=null==r?void 0:r.weekStartsOn)?I:null==r||null==(N=r.locale)||null==(P=N.options)?void 0:P.weekStartsOn)?C:j.weekStartsOn)?R:null==(k=j.locale)||null==(D=k.options)?void 0:D.weekStartsOn)?M:0);if(!(F>=0&&F<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw RangeError("locale must contain localize property");if(!U.formatLong)throw RangeError("locale must contain formatLong property");var z=(0,o.default)(e);if(!(0,n.default)(z))throw RangeError("Invalid time value");var $=(0,u.default)(z),V=(0,i.default)(z,$),Y={firstWeekContainsDate:B,weekStartsOn:F,locale:U,_originalDate:z};return L.match(y).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,s.default[t])(e,U.formatLong):e}).join("").match(m).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return S(n);var o=a.default[i];if(o)return!(null!=r&&r.useAdditionalWeekYearTokens)&&(0,c.isProtectedWeekYearToken)(n)&&(0,c.throwProtectedError)(n,t,String(e)),!(null!=r&&r.useAdditionalDayOfYearTokens)&&(0,c.isProtectedDayOfYearToken)(n)&&(0,c.throwProtectedError)(n,t,String(e)),o(V,n,U.localize,Y);if(i.match(v))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("")}function S(e){var t=e.match(g);return t?t[1].replace(b,"'"):e}e.exports=t.default},1404:(e,t,r)=>{"use strict";var n=r(29143);Object.defineProperty(t,"__esModule",{value:!0}),t.allEnv=void 0;let i=r(18e3);t.allEnv=function(){return(0,i.isBrowser)()?window.__ENV:n.env}},1827:(e,t,r)=>{"use strict";r.d(t,{D:()=>n,e:()=>i}),r(55729),r(6029);let[n,i]=(0,r(48930).e)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0})},1983:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})},2068:(e,t,r)=>{"use strict";var n=r(16638);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},2091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(66918));function i(e){return e&&e.__esModule?e:{default:e}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},s={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};t.default={date:(0,n.default)({formats:o,defaultWidth:"full"}),time:(0,n.default)({formats:a,defaultWidth:"full"}),dateTime:(0,n.default)({formats:s,defaultWidth:"full"})},e.exports=t.default},2301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZodError=t.quotelessJson=t.ZodIssueCode=void 0;let n=r(27176);t.ZodIssueCode=n.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),t.quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class i extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;ne.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}t.ZodError=i,i.create=e=>new i(e)},2663:(e,t,r)=>{"use strict";r.d(t,{t:()=>o});var n=r(24090),i=r(4308),o=new class extends n.Q{#e=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!i.S$&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}}},3001:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(55729);function i({value:e,defaultValue:t,finalValue:r,onChange:i=()=>{}}){let[o,a]=(0,n.useState)(void 0!==t?t:r),s=(e,...t)=>{a(e),i?.(e,...t)};return void 0!==e?[e,i,!0]:[o,s,!1]}},3140:(e,t,r)=>{"use strict";var n,i=r(17),o=r(74002),a=r(61924),s=r(44451),u=r(43339),c=r(69497),l=r(72206),f=r(7016),d=r(33923),h=r(91925),p=r(37025),m=r(75739),y=r(41605),g=r(41167),b=r(2068),v=Function,_=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(27654),E=r(3194),w=function(){throw new l},T=S?function(){try{return arguments.callee,w}catch(e){try{return S(arguments,"callee").get}catch(e){return w}}}():w,x=r(72562)(),A=r(50865),O=r(61429),M=r(92709),R=r(57379),C=r(95185),I={},N="u">typeof Uint8Array&&A?A(Uint8Array):n,P={__proto__:null,"%AggregateError%":"u"typeof Map&&x&&A?A(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"typeof Set&&x&&A?A(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===V(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=H(e),n=r.length>0?r[0]:"",i=W("%"+n+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],F(r,B([0,1],u)));for(var f=1,d=!0;f=r.length){var y=S(a,h);a=(d=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[h]}else d=U(a,h),a=a[h];d&&!s&&(P[o]=a)}}return a}},3194:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},3387:e=>{"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},3389:(e,t,r)=>{"use strict";r.d(t,{j:()=>i});var n=r(93778);function i(e){let{m:t,mx:r,my:i,mt:o,mb:a,ml:s,mr:u,me:c,ms:l,p:f,px:d,py:h,pt:p,pb:m,pl:y,pr:g,pe:b,ps:v,bd:_,bg:S,c:E,opacity:w,ff:T,fz:x,fw:A,lts:O,ta:M,lh:R,fs:C,tt:I,td:N,w:P,miw:k,maw:D,h:L,mih:j,mah:U,bgsz:B,bgp:F,bgr:z,bga:$,pos:V,top:Y,left:q,bottom:H,right:W,inset:G,display:Z,flex:K,hiddenFrom:X,visibleFrom:J,lightHidden:Q,darkHidden:ee,sx:et,...er}=e;return{styleProps:(0,n.J)({m:t,mx:r,my:i,mt:o,mb:a,ml:s,mr:u,me:c,ms:l,p:f,px:d,py:h,pt:p,pb:m,pl:y,pr:g,pe:b,ps:v,bd:_,bg:S,c:E,opacity:w,ff:T,fz:x,fw:A,lts:O,ta:M,lh:R,fs:C,tt:I,td:N,w:P,miw:k,maw:D,h:L,mih:j,mah:U,bgsz:B,bgp:F,bgr:z,bga:$,pos:V,top:Y,left:q,bottom:H,right:W,inset:G,display:Z,flex:K,hiddenFrom:X,visibleFrom:J,lightHidden:Q,darkHidden:ee,sx:et}),rest:er}}r(55729),r(6029)},3458:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3465:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(55729);function i(e,t){let r=(0,n.useRef)(!1);(0,n.useEffect)(()=>()=>{r.current=!1},[]),(0,n.useEffect)(()=>{if(r.current)return e();r.current=!0},t)}},3514:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(r(42462));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){(0,n.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===o(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"u">typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}e.exports=t.default},3635:(e,t,r)=>{"use strict";r.d(t,{Y:()=>m});var n=r(6029),i=r(55729),o=r(76),a=r(5618),s=r(80616),u=r(37666),c=r(60481),l=r(43016);function f(e){return i.Children.toArray(e).filter(Boolean)}var d={root:"m_4081bf90"};let h={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},p=(0,a.V)((e,{grow:t,preventGrowOverflow:r,gap:n,align:i,justify:a,wrap:s},{childWidth:u})=>({root:{"--group-child-width":t&&r?u:void 0,"--group-gap":(0,o.GY)(n),"--group-align":i,"--group-justify":a,"--group-wrap":s}})),m=(0,l.P9)((e,t)=>{let r=(0,s.Y)("Group",h,e),{classNames:i,className:a,style:l,styles:m,unstyled:y,children:g,gap:b,align:v,justify:_,wrap:S,grow:E,preventGrowOverflow:w,vars:T,variant:x,__size:A,mod:O,...M}=r,R=f(g),C=R.length,I=(0,o.GY)(b??"md"),N={childWidth:`calc(${100/C}% - (${I} - ${I} / ${C}))`},P=(0,u.I)({name:"Group",props:r,stylesCtx:N,className:a,style:l,classes:d,classNames:i,styles:m,unstyled:y,vars:T,varsResolver:p});return(0,n.jsx)(c.a,{...P("root"),ref:t,variant:x,mod:[{grow:E},O],size:A,...M,children:R})});m.classes=d,m.displayName="@mantine/core/Group"},4308:(e,t,r)=>{"use strict";r.d(t,{BH:()=>m,Cp:()=>p,EN:()=>h,Eh:()=>c,F$:()=>d,MK:()=>l,S$:()=>n,ZM:()=>A,ZZ:()=>T,Zw:()=>o,d2:()=>u,f8:()=>y,gn:()=>a,hT:()=>x,j3:()=>s,lQ:()=>i,nJ:()=>f,pl:()=>S,rX:()=>E,y9:()=>w,yy:()=>_});var n="u"=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function l(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==d(a,t.options))return!1}else if(!p(t.queryKey,a))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function f(e,t){let{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(h(t.options.mutationKey)!==h(o))return!1}else if(!p(t.options.mutationKey,o))return!1}return(!n||t.state.status===n)&&(!i||!!i(t))}function d(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>b(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!p(e[r],t[r]))}function m(e,t){if(e===t)return e;let r=g(e)&&g(t);if(r||b(e)&&b(t)){let n=r?e:Object.keys(e),i=n.length,o=r?t:Object.keys(t),a=o.length,s=r?[]:{},u=0;for(let i=0;i{setTimeout(t,e)})}function S(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?m(e,t):t}function E(e){return e}function w(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function T(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var x=Symbol();function A(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==x?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},4404:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(33492),o=Object.keys,a=o?function(e){return o(e)}:r(40174),s=Object.keys;a.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},5440:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(55729).createContext(null)},5618:(e,t,r)=>{"use strict";function n(e){return e}r.d(t,{V:()=>n})},6027:(e,t,r)=>{"use strict";r.d(t,{E:()=>o,q:()=>i});var n={};function i(){return n}function o(e){n=e}},6065:(e,t,r)=>{"use strict";let n,i,o;r.d(t,{NumberParam:()=>a.hc,QueryParamProvider:()=>O,StringParam:()=>a.fr,useQueryParam:()=>U,useQueryParams:()=>D,withDefault:()=>a.IQ});var a=r(28730),s=r(55729);class u{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,t,r,n){this.paramsMap.set(e,{stringified:t,decoded:r,decode:n})}has(e,t,r){if(!this.paramsMap.has(e))return!1;let n=this.paramsMap.get(e);return!!n&&n.stringified===t&&(null==r||n.decode===r)}get(e){var t;if(this.paramsMap.has(e))return null==(t=this.paramsMap.get(e))?void 0:t.decoded}registerParams(e){for(let t of e){let e=this.registeredParams.get(t)||0;this.registeredParams.set(t,e+1)}}unregisterParams(e){for(let t of e){let e=(this.registeredParams.get(t)||0)-1;e<=0?(this.registeredParams.delete(t),this.paramsMap.has(t)&&this.paramsMap.delete(t)):this.registeredParams.set(t,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}}let c=new u;function l(e,t){var r,n,i;let o={},s=!1,u=Object.keys(e),c=u;if(t.includeKnownParams||!1!==t.includeKnownParams&&0===u.length){let e=Object.keys(null!=(r=t.params)?r:{});c.push(...e)}for(let r of c){let u=e[r];if(null!=u&&"object"==typeof u){o[r]=u;continue}s=!0,o[r]=null!=(i=null==(n=t.params)?void 0:n[r])?i:a.fr}return s?o:e}function f(e,t,r,n){var i;if(!r||!t.length)return e;let o={...e},a=!1;for(let e of t)Object.prototype.hasOwnProperty.call(o,e)||(o[e]=null!=(i=r[e])?i:n,a=!0);return a?o:e}let d=Object.prototype.hasOwnProperty;function h(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function p(e,t,r){var n,i;if(h(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(let a=0;ae.split("\0")))}function v(e,t){var r;let n={};for(let i in e)(null==(r=t[i])?void 0:r.urlName)!=null?n[t[i].urlName]=e[i]:n[i]=e[i];return n}let _={},S=(e,t,r)=>{if(n===t&&o===e&&i===r)return _;n=t,o=e;let a=e(null!=t?t:"");i=r;let s=b(r);for(let[e,t]of Object.entries(a)){(null==s?void 0:s[e])&&(delete a[e],a[e=s[e]]=t);let r=_[e];p(t,r)&&(a[e]=r)}return _=a,a};function E(e,t){null==t&&(t={});let r={...e,...t};return t.params&&e.params&&(r.params={...e.params,...t.params}),r}let w={adapter:{},options:{searchStringToObject:a.eR,objectToSearchString:a.oO,updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},T=s.createContext(w);function x(){let e=s.useContext(T);if(void 0===e||e===w)throw Error("useQueryParams must be used within a QueryParamProvider");return e}function A({children:e,adapter:t,options:r}){let{adapter:n,options:i}=s.useContext(T),o=s.useMemo(()=>({adapter:null!=t?t:n,options:E(i,r)}),[t,r,n,i]);return s.createElement(T.Provider,{value:o},e)}function O({children:e,adapter:t,options:r}){let n=t;return n?s.createElement(n,null,t=>s.createElement(A,{adapter:t,options:r},e)):s.createElement(A,{options:r},e)}function M(e,t){var r;for(let n in e)(null==(r=t[n])?void 0:r.default)!==void 0&&void 0!==e[n]&&t[n].encode(t[n].default)===e[n]&&(e[n]=void 0)}function R({changes:e,updateType:t,currentSearchString:r,paramConfigMap:n,options:i}){let o,s,u,{searchStringToObject:l,objectToSearchString:d}=i;null==t&&(t=i.updateType);let h=S(l,r),p=f(n,Object.keys(e),i.params);return s="function"==typeof e?e(m(h,p,c)):e,o=(0,a.Vl)(p,s),i.removeDefaultsFromUrl&&M(o,p),o=v(o,p),(null==(u=d("push"===t||"replace"===t?o:{...h,...o}))?void 0:u.length)&&"?"!==u[0]&&(u=`?${u}`),null!=u?u:""}function C({searchString:e,adapter:t,navigate:r,updateType:n}){let i={...t.location,search:e};r&&("string"==typeof n&&n.startsWith("replace")?t.replace(i):t.push(i))}let I=e=>e(),N=e=>setTimeout(()=>e(),0),P=[];function k(e,{immediate:t}={}){P.push(e);let r=t?I:N;1===P.length&&r(()=>{let t,r=P.slice();P.length=0;let n=r[0].currentSearchString;for(let e=0;eE(n,u),[n,u]),h=l(o,d),p=S(d.searchStringToObject,r.location.search,g(h));d.includeAllParams&&(h=f(h,Object.keys(p),d.params,a.fr));let m=i(p,h,c),b=Object.keys(h).join("\0");(0,s.useEffect)(()=>{let e=b.split("\0");return c.registerParams(e),()=>{c.unregisterParams(e)}},[b]);let v={adapter:r,paramConfigMap:h,options:d},_=(0,s.useRef)(v);null==_.current&&(_.current=v),(0,s.useEffect)(()=>{_.current.adapter=r,_.current.paramConfigMap=h,_.current.options=d},[r,h,d]);let[w]=(0,s.useState)(()=>(e,t)=>{let{adapter:r,paramConfigMap:n,options:i}=_.current;null==t&&(t=i.updateType),k({changes:e,updateType:t,currentSearchString:r.location.search,paramConfigMap:n,options:i,adapter:r},{immediate:!i.enableBatching})});return[m,w]}var L=D;function j(e,t){let r;return{paramConfigMap:r=void 0===e?{}:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,"inherit"])):e,options:t}}let U=(e,t,r)=>{let[n,i]=L((0,s.useMemo)(()=>({[e]:null!=t?t:"inherit"}),[e,t]),r);return[n[e],(0,s.useCallback)((t,r)=>"function"==typeof t?i(r=>{let n=t(r[e]);return{[e]:n}},r):i({[e]:t},r),[e,i])]}},6338:(e,t)=>{"use strict";function r(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(i.length)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},6385:module=>{var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;rtypeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},6406:(e,t,r)=>{"use strict";function n(e,t){return r=>{if("string"!=typeof r||0===r.trim().length)throw Error(t);return`${e}-${r}`}}r.d(t,{r:()=>n})},6663:(e,t,r)=>{"use strict";let n;r.d(t,{qt:()=>eE,tm:()=>ti,Sj:()=>p,Ml:()=>W,n:()=>X,Lr:()=>z,WF:()=>$,eN:()=>ew,hw:()=>e_,aP:()=>V,Xi:()=>ev,jv:()=>er,k1:()=>ey,Vb:()=>eh,kY:()=>o,CZ:()=>ec,Jv:()=>ei,Ih:()=>el,DN:()=>ef,Ut:()=>es,Tq:()=>eS,WM:()=>ep,iS:()=>Z,PQ:()=>H,l1:()=>eb,rS:()=>F,bv:()=>Q,Ii:()=>eg,_c:()=>eT,$i:()=>em,EV:()=>ex,b8:()=>ea,lK:()=>p,Kz:()=>eu,ND:()=>U,K5:()=>Y,BG:()=>ey,y0:()=>eo,aR:()=>p,_Z:()=>q,fZ:()=>ee,_:()=>G,a0:()=>K,bz:()=>eB,YO:()=>eV,o:()=>eP,zM:()=>ek,au:()=>tn,Ie:()=>eO,p6:()=>eD,fm:()=>k,gM:()=>eW,QZ:()=>e4,k5:()=>e2,fH:()=>eQ,Nl:()=>eR,E$:()=>eG,fn:()=>eM,RZ:()=>e0,eu:()=>e1,Tj:()=>eX,oi:()=>eN,fc:()=>e6,Zm:()=>ez,ch:()=>eU,me:()=>e8,ai:()=>eI,Ik:()=>eY,yN:()=>tr,p7:()=>tt,lq:()=>e5,Di:()=>te,Tk:()=>e7,vk:()=>e9,iv:()=>e3,g1:()=>eK,hZ:()=>eJ,re:()=>eq,Yj:()=>eC,HR:()=>eL,Gu:()=>e4,PV:()=>eZ,Vx:()=>ej,KC:()=>eH,L5:()=>eF,rI:()=>e$});var i,o,a=r(64892),s=r(78974),u=r(19086);!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(i||(i={}));var c=r(8722),l=r(45859);class f{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let d=(e,t)=>{if((0,c.fn)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new a.G(e.common.issues);return this._error=t,this._error}}};function h(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:o}=e;return"invalid_enum_value"===t.code?{message:o??i.defaultError}:void 0===i.data?{message:o??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:o??r??i.defaultError}},description:i}}class p{get description(){return this._def.description}_getType(e){return(0,l.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,l.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new c.MY,ctx:{common:e.parent.common,data:e.data,parsedType:(0,l.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,c.xP)(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)},n=this._parseSync({data:e,path:r.path,parent:r});return d(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return(0,c.fn)(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>(0,c.fn)(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)},n=this._parse({data:e,path:r.path,parent:r});return d(r,await ((0,c.xP)(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),o=()=>n.addIssue({code:a.eq.custom,...r(t)});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new ey({schema:this,typeName:o.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return eg.create(this,this._def)}nullable(){return eb.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return X.create(this)}promise(){return em.create(this,this._def)}or(e){return ee.create([this,e],this._def)}and(e){return ei.create(this,e,this._def)}transform(e){return new ey({...h(this._def),schema:this,typeName:o.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new ev({...h(this._def),innerType:this,defaultValue:t,typeName:o.ZodDefault})}brand(){return new ew({typeName:o.ZodBranded,type:this,...h(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new e_({...h(this._def),innerType:this,catchValue:t,typeName:o.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eT.create(this,e)}readonly(){return ex.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let m=/^c[^\s-]{8,}$/i,y=/^[0-9a-z]+$/,g=/^[0-9A-HJKMNP-TV-Z]{26}$/i,b=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,v=/^[a-z0-9_-]{21}$/i,_=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,S=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,E=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,w="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",T=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,x=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,A=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,O=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,M=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,R=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,C="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",I=RegExp(`^${C}$`);function N(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function P(e){return RegExp(`^${N(e)}$`)}function k(e){let t=`${C}T${N(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}function D(e,t){return!!(("v4"===t||!t)&&T.test(e)||("v6"===t||!t)&&A.test(e))}function L(e,t){if(!_.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}function j(e,t){return!!(("v4"===t||!t)&&x.test(e)||("v6"===t||!t)&&O.test(e))}class U extends p{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==l.Zp.string){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.string,received:t.parsedType}),c.uY}let r=new c.MY;for(let i of this._def.checks)if("min"===i.kind)e.data.lengthi.value&&(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("length"===i.kind){let n=e.data.length>i.value,o=e.data.lengthe.test(t),{validation:t,code:a.eq.invalid_string,...i.errToObj(r)})}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...i.errToObj(e)})}url(e){return this._addCheck({kind:"url",...i.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...i.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...i.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...i.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...i.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...i.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...i.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...i.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...i.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...i.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...i.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...i.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...i.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...i.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...i.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...i.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...i.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...i.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...i.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...i.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...i.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...i.errToObj(t)})}nonempty(e){return this.min(1,i.errToObj(e))}trim(){return new U({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuen?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}U.create=e=>new U({checks:[],typeName:o.ZodString,coerce:e?.coerce??!1,...h(e)});class F extends p{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==l.Zp.number){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.number,received:t.parsedType}),c.uY}let r=new c.MY;for(let n of this._def.checks)"int"===n.kind?l.ZS.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.datan.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==B(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.not_finite,message:n.message}),r.dirty()):l.ZS.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,r,n){return new F({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:i.toString(n)}]})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:i.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:i.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:i.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:i.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&l.ZS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.valuenew F({checks:[],typeName:o.ZodNumber,coerce:e?.coerce||!1,...h(e)});class z extends p{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==l.Zp.bigint)return this._getInvalidInput(e);let r=new c.MY;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.datan.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):l.ZS.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.bigint,received:t.parsedType}),c.uY}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,r,n){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:i.toString(n)}]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew z({checks:[],typeName:o.ZodBigInt,coerce:e?.coerce??!1,...h(e)});class $ extends p{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==l.Zp.boolean){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.boolean,received:t.parsedType}),c.uY}return(0,c.OK)(e.data)}}$.create=e=>new $({typeName:o.ZodBoolean,coerce:e?.coerce||!1,...h(e)});class V extends p{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==l.Zp.date){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.date,received:t.parsedType}),c.uY}if(Number.isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_date}),c.uY}let r=new c.MY;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()n.value&&(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):l.ZS.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:i.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:i.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew V({checks:[],coerce:e?.coerce||!1,typeName:o.ZodDate,...h(e)});class Y extends p{_parse(e){if(this._getType(e)!==l.Zp.symbol){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.symbol,received:t.parsedType}),c.uY}return(0,c.OK)(e.data)}}Y.create=e=>new Y({typeName:o.ZodSymbol,...h(e)});class q extends p{_parse(e){if(this._getType(e)!==l.Zp.undefined){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.undefined,received:t.parsedType}),c.uY}return(0,c.OK)(e.data)}}q.create=e=>new q({typeName:o.ZodUndefined,...h(e)});class H extends p{_parse(e){if(this._getType(e)!==l.Zp.null){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.null,received:t.parsedType}),c.uY}return(0,c.OK)(e.data)}}H.create=e=>new H({typeName:o.ZodNull,...h(e)});class W extends p{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,c.OK)(e.data)}}W.create=e=>new W({typeName:o.ZodAny,...h(e)});class G extends p{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,c.OK)(e.data)}}G.create=e=>new G({typeName:o.ZodUnknown,...h(e)});class Z extends p{_parse(e){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.never,received:t.parsedType}),c.uY}}Z.create=e=>new Z({typeName:o.ZodNever,...h(e)});class K extends p{_parse(e){if(this._getType(e)!==l.Zp.undefined){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.void,received:t.parsedType}),c.uY}return(0,c.OK)(e.data)}}K.create=e=>new K({typeName:o.ZodVoid,...h(e)});class X extends p{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==l.Zp.array)return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.array,received:t.parsedType}),c.uY;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.lengthn.maxLength.value&&((0,c.zn)(t,{code:a.eq.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new f(t,e,t.path,r)))).then(e=>c.MY.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new f(t,e,t.path,r)));return c.MY.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new X({...this._def,minLength:{value:e,message:i.toString(t)}})}max(e,t){return new X({...this._def,maxLength:{value:e,message:i.toString(t)}})}length(e,t){return new X({...this._def,exactLength:{value:e,message:i.toString(t)}})}nonempty(e){return this.min(1,e)}}function J(e){if(e instanceof Q){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=eg.create(J(n))}return new Q({...e._def,shape:()=>t})}if(e instanceof X)return new X({...e._def,type:J(e.element)});if(e instanceof eg)return eg.create(J(e.unwrap()));if(e instanceof eb)return eb.create(J(e.unwrap()));if(e instanceof eo)return eo.create(e.items.map(e=>J(e)));else return e}X.create=(e,t)=>new X({type:e,minLength:null,maxLength:null,exactLength:null,typeName:o.ZodArray,...h(t)});class Q extends p{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=l.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==l.Zp.object){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.object,received:t.parsedType}),c.uY}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof Z&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||o.push(e);let s=[];for(let e of i){let t=n[e],i=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new f(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof Z){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&((0,c.zn)(r,{code:a.eq.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new f(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>c.MY.mergeObjectSync(t,e)):c.MY.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return i.errToObj,new Q({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:i.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new Q({...this._def,unknownKeys:"strip"})}passthrough(){return new Q({...this._def,unknownKeys:"passthrough"})}extend(e){return new Q({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Q({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:o.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Q({...this._def,catchall:e})}pick(e){let t={};for(let r of l.ZS.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new Q({...this._def,shape:()=>t})}omit(e){let t={};for(let r of l.ZS.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new Q({...this._def,shape:()=>t})}deepPartial(){return J(this)}partial(e){let t={};for(let r of l.ZS.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new Q({...this._def,shape:()=>t})}required(e){let t={};for(let r of l.ZS.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eg;)e=e._def.innerType;t[r]=e}return new Q({...this._def,shape:()=>t})}keyof(){return ed(l.ZS.objectKeys(this.shape))}}Q.create=(e,t)=>new Q({shape:()=>e,unknownKeys:"strip",catchall:Z.create(),typeName:o.ZodObject,...h(t)}),Q.strictCreate=(e,t)=>new Q({shape:()=>e,unknownKeys:"strict",catchall:Z.create(),typeName:o.ZodObject,...h(t)}),Q.lazycreate=(e,t)=>new Q({shape:e,unknownKeys:"strip",catchall:Z.create(),typeName:o.ZodObject,...h(t)});class ee extends p{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new a.G(e.ctx.common.issues));return(0,c.zn)(t,{code:a.eq.invalid_union,unionErrors:r}),c.uY}if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(n);{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new a.G(e));return(0,c.zn)(t,{code:a.eq.invalid_union,unionErrors:i}),c.uY}}get options(){return this._def.options}}ee.create=(e,t)=>new ee({options:e,typeName:o.ZodUnion,...h(t)});let et=e=>{if(e instanceof el)return et(e.schema);if(e instanceof ey)return et(e.innerType());if(e instanceof ef)return[e.value];if(e instanceof eh)return e.options;if(e instanceof ep)return l.ZS.objectValues(e.enum);else if(e instanceof ev)return et(e._def.innerType);else if(e instanceof q)return[void 0];else if(e instanceof H)return[null];else if(e instanceof eg)return[void 0,...et(e.unwrap())];else if(e instanceof eb)return[null,...et(e.unwrap())];else if(e instanceof ew)return et(e.unwrap());else if(e instanceof ex)return et(e.unwrap());else if(e instanceof e_)return et(e._def.innerType);else return[]};class er extends p{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.Zp.object)return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.object,received:t.parsedType}),c.uY;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):((0,c.zn)(t,{code:a.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),c.uY)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=et(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new er({typeName:o.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...h(r)})}}function en(e,t){let r=(0,l.CR)(e),n=(0,l.CR)(t);if(e===t)return{valid:!0,data:e};if(r===l.Zp.object&&n===l.Zp.object){let r=l.ZS.objectKeys(t),n=l.ZS.objectKeys(e).filter(e=>-1!==r.indexOf(e)),i={...e,...t};for(let r of n){let n=en(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===l.Zp.array&&n===l.Zp.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let n=0;n{if((0,c.G4)(e)||(0,c.G4)(n))return c.uY;let i=en(e.value,n.value);return i.valid?(((0,c.DM)(e)||(0,c.DM)(n))&&t.dirty(),{status:t.value,value:i.data}):((0,c.zn)(r,{code:a.eq.invalid_intersection_types}),c.uY)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ei.create=(e,t,r)=>new ei({left:e,right:t,typeName:o.ZodIntersection,...h(r)});class eo extends p{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.Zp.array)return(0,c.zn)(r,{code:a.eq.invalid_type,expected:l.Zp.array,received:r.parsedType}),c.uY;if(r.data.lengththis._def.items.length&&((0,c.zn)(r,{code:a.eq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new f(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>c.MY.mergeArray(t,e)):c.MY.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new eo({...this._def,rest:e})}}eo.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eo({items:e,typeName:o.ZodTuple,rest:null,...h(t)})};class ea extends p{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.Zp.object)return(0,c.zn)(r,{code:a.eq.invalid_type,expected:l.Zp.object,received:r.parsedType}),c.uY;let n=[],i=this._def.keyType,o=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new f(r,e,r.path,e)),value:o._parse(new f(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?c.MY.mergeObjectAsync(t,n):c.MY.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new ea(t instanceof p?{keyType:e,valueType:t,typeName:o.ZodRecord,...h(r)}:{keyType:U.create(),valueType:e,typeName:o.ZodRecord,...h(t)})}}class es extends p{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.Zp.map)return(0,c.zn)(r,{code:a.eq.invalid_type,expected:l.Zp.map,received:r.parsedType}),c.uY;let n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([e,t],o)=>({key:n._parse(new f(r,e,r.path,[o,"key"])),value:i._parse(new f(r,t,r.path,[o,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return c.uY;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return c.uY;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}es.create=(e,t,r)=>new es({valueType:t,keyType:e,typeName:o.ZodMap,...h(r)});class eu extends p{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.Zp.set)return(0,c.zn)(r,{code:a.eq.invalid_type,expected:l.Zp.set,received:r.parsedType}),c.uY;let n=this._def;null!==n.minSize&&r.data.sizen.maxSize.value&&((0,c.zn)(r,{code:a.eq.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return c.uY;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let s=[...r.data.values()].map((e,t)=>i._parse(new f(r,e,r.path,t)));return r.common.async?Promise.all(s).then(e=>o(e)):o(s)}min(e,t){return new eu({...this._def,minSize:{value:e,message:i.toString(t)}})}max(e,t){return new eu({...this._def,maxSize:{value:e,message:i.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eu.create=(e,t)=>new eu({valueType:e,minSize:null,maxSize:null,typeName:o.ZodSet,...h(t)});class ec extends p{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.Zp.function)return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.function,received:t.parsedType}),c.uY;function r(e,r){return(0,c.y7)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,s.$W)(),u.A].filter(e=>!!e),issueData:{code:a.eq.invalid_arguments,argumentsError:r}})}function n(e,r){return(0,c.y7)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,s.$W)(),u.A].filter(e=>!!e),issueData:{code:a.eq.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof em){let e=this;return(0,c.OK)(async function(...t){let s=new a.G([]),u=await e._def.args.parseAsync(t,i).catch(e=>{throw s.addIssue(r(t,e)),s}),c=await Reflect.apply(o,this,u);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw s.addIssue(n(c,e)),s})})}{let e=this;return(0,c.OK)(function(...t){let s=e._def.args.safeParse(t,i);if(!s.success)throw new a.G([r(t,s.error)]);let u=Reflect.apply(o,this,s.data),c=e._def.returns.safeParse(u,i);if(!c.success)throw new a.G([n(u,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ec({...this._def,args:eo.create(e).rest(G.create())})}returns(e){return new ec({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ec({args:e||eo.create([]).rest(G.create()),returns:t||G.create(),typeName:o.ZodFunction,...h(r)})}}class el extends p{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}el.create=(e,t)=>new el({getter:e,typeName:o.ZodLazy,...h(t)});class ef extends p{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{received:t.data,code:a.eq.invalid_literal,expected:this._def.value}),c.uY}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ed(e,t){return new eh({values:e,typeName:o.ZodEnum,...h(t)})}ef.create=(e,t)=>new ef({value:e,typeName:o.ZodLiteral,...h(t)});class eh extends p{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return(0,c.zn)(t,{expected:l.ZS.joinValues(r),received:t.parsedType,code:a.eq.invalid_type}),c.uY}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return(0,c.zn)(t,{received:t.data,code:a.eq.invalid_enum_value,options:r}),c.uY}return(0,c.OK)(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eh.create(e,{...this._def,...t})}exclude(e,t=this._def){return eh.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eh.create=ed;class ep extends p{_parse(e){let t=l.ZS.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==l.Zp.string&&r.parsedType!==l.Zp.number){let e=l.ZS.objectValues(t);return(0,c.zn)(r,{expected:l.ZS.joinValues(e),received:r.parsedType,code:a.eq.invalid_type}),c.uY}if(this._cache||(this._cache=new Set(l.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=l.ZS.objectValues(t);return(0,c.zn)(r,{received:r.data,code:a.eq.invalid_enum_value,options:e}),c.uY}return(0,c.OK)(e.data)}get enum(){return this._def.values}}ep.create=(e,t)=>new ep({values:e,typeName:o.ZodNativeEnum,...h(t)});class em extends p{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.Zp.promise&&!1===t.common.async)return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.promise,received:t.parsedType}),c.uY;let r=t.parsedType===l.Zp.promise?t.data:Promise.resolve(t.data);return(0,c.OK)(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}em.create=(e,t)=>new em({type:e,typeName:o.ZodPromise,...h(t)});class ey extends p{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===o.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{(0,c.zn)(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return c.uY;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?c.uY:"dirty"===n.status||"dirty"===t.value?(0,c.jm)(n.value):n});{if("aborted"===t.value)return c.uY;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?c.uY:"dirty"===n.status||"dirty"===t.value?(0,c.jm)(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?c.uY:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?c.uY:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>(0,c.fn)(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):c.uY);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!(0,c.fn)(e))return c.uY;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}l.ZS.assertNever(n)}}ey.create=(e,t,r)=>new ey({schema:e,typeName:o.ZodEffects,effect:t,...h(r)}),ey.createWithPreprocess=(e,t,r)=>new ey({schema:t,effect:{type:"preprocess",transform:e},typeName:o.ZodEffects,...h(r)});class eg extends p{_parse(e){return this._getType(e)===l.Zp.undefined?(0,c.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:o.ZodOptional,...h(t)});class eb extends p{_parse(e){return this._getType(e)===l.Zp.null?(0,c.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eb.create=(e,t)=>new eb({innerType:e,typeName:o.ZodNullable,...h(t)});class ev extends p{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===l.Zp.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:o.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...h(t)});class e_ extends p{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return(0,c.xP)(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new a.G(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new a.G(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:o.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...h(t)});class eS extends p{_parse(e){if(this._getType(e)!==l.Zp.nan){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.nan,received:t.parsedType}),c.uY}return{status:"valid",value:e.data}}}eS.create=e=>new eS({typeName:o.ZodNaN,...h(e)});let eE=Symbol("zod_brand");class ew extends p{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eT extends p{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?c.uY:"dirty"===e.status?(t.dirty(),(0,c.jm)(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?c.uY:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eT({in:e,out:t,typeName:o.ZodPipeline})}}class ex extends p{_parse(e){let t=this._def.innerType._parse(e),r=e=>((0,c.fn)(e)&&(e.value=Object.freeze(e.value)),e);return(0,c.xP)(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eA(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function eO(e,t={},r){return e?W.create().superRefine((n,i)=>{let o=e(n);if(o instanceof Promise)return o.then(e=>{if(!e){let e=eA(t,n),o=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:o})}});if(!o){let e=eA(t,n),o=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:o})}}):W.create()}ex.create=(e,t)=>new ex({innerType:e,typeName:o.ZodReadonly,...h(t)});let eM={object:Q.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(o||(o={}));let eR=(e,t={message:`Input not instance of ${e.name}`})=>eO(t=>t instanceof e,t),eC=U.create,eI=F.create,eN=eS.create,eP=z.create,ek=$.create,eD=V.create,eL=Y.create,ej=q.create,eU=H.create,eB=W.create,eF=G.create,ez=Z.create,e$=K.create,eV=X.create,eY=Q.create,eq=Q.strictCreate,eH=ee.create,eW=er.create,eG=ei.create,eZ=eo.create,eK=ea.create,eX=es.create,eJ=eu.create,eQ=ec.create,e0=el.create,e1=ef.create,e2=eh.create,e6=ep.create,e3=em.create,e4=ey.create,e5=eg.create,e8=eb.create,e9=ey.createWithPreprocess,e7=eT.create,te=()=>eC().optional(),tt=()=>eI().optional(),tr=()=>ek().optional(),tn={string:e=>U.create({...e,coerce:!0}),number:e=>F.create({...e,coerce:!0}),boolean:e=>$.create({...e,coerce:!0}),bigint:e=>z.create({...e,coerce:!0}),date:e=>V.create({...e,coerce:!0})},ti=c.uY},7016:e=>{"use strict";e.exports=URIError},7686:e=>{e.exports={style:{fontFamily:"'IBM Plex Mono', 'IBM Plex Mono Fallback'",fontStyle:"normal"},className:"__className_713f3f",variable:"__variable_713f3f"}},7978:e=>{"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},8722:(e,t,r)=>{"use strict";r.d(t,{DM:()=>h,G4:()=>d,I3:()=>a,MY:()=>u,OK:()=>f,fn:()=>p,jm:()=>l,uY:()=>c,xP:()=>m,y7:()=>o,zn:()=>s});var n=r(78974),i=r(19086);let o=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}},a=[];function s(e,t){let r=(0,n.$W)(),a=o({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===i.A?void 0:i.A].filter(e=>!!e)});e.common.issues.push(a)}class u{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return c;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return u.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return c;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let c=Object.freeze({status:"aborted"}),l=e=>({status:"dirty",value:e}),f=e=>({status:"valid",value:e}),d=e=>"aborted"===e.status,h=e=>"dirty"===e.status,p=e=>"valid"===e.status,m=e=>"u">typeof Promise&&e instanceof Promise},8737:(e,t,r)=>{"use strict";r.d(t,{N:()=>l});var n=r(6029);r(55729);var i=r(80616),o=r(37666),a=r(60481),s=r(63863),u={root:"m_87cf2631"};let c={__staticSelector:"UnstyledButton"},l=(0,s.v)((e,t)=>{let r=(0,i.Y)("UnstyledButton",c,e),{className:s,component:l="button",__staticSelector:f,unstyled:d,classNames:h,styles:p,style:m,...y}=r,g=(0,o.I)({name:f,props:r,classes:u,className:s,style:m,classNames:h,styles:p,unstyled:d});return(0,n.jsx)(a.a,{...g("root",{focusable:!0}),component:l,ref:t,type:"button"===l?"button":void 0,...y})});l.classes=u,l.displayName="@mantine/core/UnstyledButton"},8804:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(6027),i=r(96442),o=r(91715),a=r(77561),s=r(97895),u=r(41742),c=r(79849),l=r(89250),f=r(80577);function d(e,t,r){(0,l.A)(2,arguments);var d,h,p,m,y,g,b,v,_,S,E,w=(0,u.A)(e),T=(0,u.A)(t),x=(0,n.q)(),A=null!=(d=null!=(h=null==r?void 0:r.locale)?h:x.locale)?d:a.A,O=(0,f.A)(null!=(p=null!=(m=null!=(y=null!=(g=null==r?void 0:r.weekStartsOn)?g:null==r||null==(b=r.locale)||null==(v=b.options)?void 0:v.weekStartsOn)?y:x.weekStartsOn)?m:null==(_=x.locale)||null==(S=_.options)?void 0:S.weekStartsOn)?p:0);if(!A.localize)throw RangeError("locale must contain localize property");if(!A.formatLong)throw RangeError("locale must contain formatLong property");if(!A.formatRelative)throw RangeError("locale must contain formatRelative property");var M=(0,i.A)(w,T);if(isNaN(M))throw RangeError("Invalid time value");E=M<-6?"other":M<-1?"lastWeek":M<0?"yesterday":M<1?"today":M<2?"tomorrow":M<7?"nextWeek":"other";var R=(0,s.A)(w,(0,c.A)(w)),C=(0,s.A)(T,(0,c.A)(T)),I=A.formatRelative(E,R,C,{locale:A,weekStartsOn:O});return(0,o.A)(w,I,{locale:A,weekStartsOn:O})}},9069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRedirectError:function(){return a},getRedirectStatusCodeFromError:function(){return f},getRedirectTypeFromError:function(){return l},getURLFromRedirectError:function(){return c},permanentRedirect:function(){return u},redirect:function(){return s}});let n=r(84732),i=r(54918),o;function a(e,t,r=n.RedirectStatusCode.TemporaryRedirect){let o=Object.defineProperty(Error(i.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return o.digest=`${i.REDIRECT_ERROR_CODE};${t};${e};${r};`,o}function s(e,t){throw a(e,t??=o?.getStore()?.isAction?i.RedirectType.push:i.RedirectType.replace,n.RedirectStatusCode.TemporaryRedirect)}function u(e,t=i.RedirectType.replace){throw a(e,t,n.RedirectStatusCode.PermanentRedirect)}function c(e){return(0,i.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function l(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return e.digest.split(";",2)[1]}function f(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9617:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=a(r(872)),i=a(r(10275)),o=a(r(88015));function a(e){return e&&e.__esModule?e:{default:e}}var s=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function u(e,t,r){var a=String(t),u=r||{},c=a.match(s);if(c){var l=(0,o.default)(e,u);a=c.reduce(function(e,t){if("'"===t[0])return e;var r=e.indexOf(t),n="'"===e[r-1],o=e.replace(t,"'"+i.default[t[0]](l,t,null,u)+"'");return n?o.substring(0,r-1)+o.substring(r+1):o},a)}return(0,n.default)(e,a,u)}e.exports=t.default},9825:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(55729);function i(e){let t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e}),(0,n.useMemo)(()=>(...e)=>t.current?.(...e),[])}},9953:(e,t,r)=>{"use strict";r.d(t,{A:()=>U});var n=r(6029),i=r(55729),o=r(3001),a=r(74003);function s(e,t,r="ltr"){let n=(0,i.useRef)(null),o=(0,i.useRef)(!1),u=(0,i.useRef)(!1),c=(0,i.useRef)(0),[l,f]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{o.current=!0},[]),(0,i.useEffect)(()=>{let i=n.current,s=({x:t,y:n})=>{cancelAnimationFrame(c.current),c.current=requestAnimationFrame(()=>{if(o.current&&i){i.style.userSelect="none";let o=i.getBoundingClientRect();if(o.width&&o.height){let i=(0,a.q)((t-o.left)/o.width,0,1);e({x:"ltr"===r?i:1-i,y:(0,a.q)((n-o.top)/o.height,0,1)})}}})},l=()=>{document.addEventListener("mousemove",y),document.addEventListener("mouseup",p),document.addEventListener("touchmove",b),document.addEventListener("touchend",p)},d=()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",p),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",p)},h=()=>{!u.current&&o.current&&(u.current=!0,"function"==typeof t?.onScrubStart&&t.onScrubStart(),f(!0),l())},p=()=>{u.current&&o.current&&(u.current=!1,f(!1),d(),setTimeout(()=>{"function"==typeof t?.onScrubEnd&&t.onScrubEnd()},0))},m=e=>{h(),e.preventDefault(),y(e)},y=e=>s({x:e.clientX,y:e.clientY}),g=e=>{e.cancelable&&e.preventDefault(),h(),b(e)},b=e=>{e.cancelable&&e.preventDefault(),s({x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY})};return i?.addEventListener("mousedown",m),i?.addEventListener("touchstart",g,{passive:!1}),()=>{i&&(i.removeEventListener("mousedown",m),i.removeEventListener("touchstart",g))}},[r,e]),{ref:n,active:l}}var u=r(56655),c=r(26615),l=r(76);function f(e,t){return 0===t.length?e:t.reduce((t,r)=>Math.abs(r-e){let{getStyles:c}=v();return(0,n.jsx)(_.a,{tabIndex:-1,variant:r,size:e,ref:u,...c("root"),...s})});S.displayName="@mantine/core/SliderRoot";var E=r(56738);let w=(0,i.forwardRef)(({max:e,min:t,value:r,position:o,label:a,dragging:s,onMouseDown:u,onKeyDownCapture:c,labelTransitionProps:l,labelAlwaysOn:f,thumbLabel:d,onFocus:h,onBlur:p,showLabelOnHover:m,isHovered:y,children:g=null,disabled:b},S)=>{let{getStyles:w}=v(),[T,x]=(0,i.useState)(!1),A=f||s||T||m&&y;return(0,n.jsxs)(_.a,{tabIndex:0,role:"slider","aria-label":d,"aria-valuemax":e,"aria-valuemin":t,"aria-valuenow":r,ref:S,__vars:{"--slider-thumb-offset":`${o}%`},...w("thumb",{focusable:!0}),mod:{dragging:s,disabled:b},onFocus:e=>{x(!0),"function"==typeof h&&h(e)},onBlur:e=>{x(!1),"function"==typeof p&&p(e)},onTouchStart:u,onMouseDown:u,onKeyDownCapture:c,onClick:e=>e.stopPropagation(),children:[g,(0,n.jsx)(E.e,{mounted:null!=a&&!!A,transition:"fade",duration:0,...l,children:e=>(0,n.jsx)("div",{...w("label",{style:e}),children:a})})]})});function T({value:e,min:t,max:r}){return Math.min(Math.max((e-t)/(r-t)*100,0),100)}function x({mark:e,offset:t,value:r,inverted:n=!1}){return n?"number"==typeof t&&e.value<=t||e.value>=r:"number"==typeof t?e.value>=t&&e.value<=r:e.value<=r}function A({marks:e,min:t,max:r,disabled:o,value:a,offset:s,inverted:u}){let{getStyles:c}=v();if(!e)return null;let l=e.map((e,l)=>(0,i.createElement)(_.a,{...c("markWrapper"),__vars:{"--mark-offset":`${T({value:e.value,min:t,max:r})}%`},key:l},(0,n.jsx)(_.a,{...c("mark"),mod:{filled:x({mark:e,value:a,offset:s,inverted:u}),disabled:o}}),e.label&&(0,n.jsx)("div",{...c("markLabel"),children:e.label})));return(0,n.jsx)("div",{children:l})}function O({filled:e,children:t,offset:r,disabled:i,marksOffset:o,inverted:a,containerProps:s,...u}){let{getStyles:c}=v();return(0,n.jsx)(_.a,{...c("trackContainer"),mod:{disabled:i},...s,children:(0,n.jsxs)(_.a,{...c("track"),mod:{inverted:a,disabled:i},children:[(0,n.jsx)(_.a,{mod:{inverted:a,disabled:i},__vars:{"--slider-bar-width":`calc(${e}% + var(--slider-size))`,"--slider-bar-offset":`calc(${r}% - var(--slider-size))`},...c("bar")}),t,(0,n.jsx)(A,{...u,offset:o,disabled:i,inverted:a})]})})}function M({value:e,containerWidth:t,min:r,max:n,step:i,precision:o}){let a=(t?Math.min(Math.max(e,0),t)/t:e)*(n-r),s=Math.max((0!==a?Math.round(a/i)*i:0)+r,r);return void 0!==o?Number(s.toFixed(o)):s}function R(e,t){return parseFloat(e.toFixed(t))}function C(e){if(!e)return 0;let t=e.toString().split(".");return t.length>1?t[1].length:0}function I(e,t){let r=[...t].sort((e,t)=>e.value-t.value).find(t=>t.value>e);return r?r.value:e}function N(e,t){let r=[...t].sort((e,t)=>t.value-e.value).find(t=>t.valuee.value-t.value);return t.length>0?t[0].value:0}function k(e){let t=[...e].sort((e,t)=>e.value-t.value);return t.length>0?t[t.length-1].value:100}w.displayName="@mantine/core/SliderThumb",A.displayName="@mantine/core/SliderMarks",O.displayName="@mantine/core/SliderTrack";var D={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};let L={radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},labelAlwaysOn:!1,thumbLabel:"",showLabelOnHover:!0,disabled:!1,scale:e=>e},j=(0,d.V)((e,{size:t,color:r,thumbSize:n,radius:i})=>({root:{"--slider-size":(0,l.YC)(t,"slider-size"),"--slider-color":r?(0,h.r)(r,e):void 0,"--slider-radius":void 0===i?void 0:(0,l.nJ)(i),"--slider-thumb-size":void 0!==n?(0,c.D)(n):"calc(var(--slider-size) * 2)"}})),U=(0,y.P9)((e,t)=>{let r=(0,p.Y)("Slider",L,e),{classNames:c,styles:l,value:d,onChange:h,onChangeEnd:y,size:v,min:_,max:E,step:x,precision:A,defaultValue:U,name:B,marks:F,label:z,labelTransitionProps:$,labelAlwaysOn:V,thumbLabel:Y,showLabelOnHover:q,thumbChildren:H,disabled:W,unstyled:G,scale:Z,inverted:K,className:X,style:J,vars:Q,hiddenInputProps:ee,restrictToMarks:et,thumbProps:er,...en}=r,ei=(0,m.I)({name:"Slider",props:r,classes:D,classNames:c,className:X,styles:l,style:J,vars:Q,varsResolver:j,unstyled:G}),{dir:eo}=(0,g.jH)(),[ea,es]=(0,i.useState)(!1),[eu,ec]=(0,o.Z)({value:"number"==typeof d?(0,a.q)(d,_,E):d,defaultValue:"number"==typeof U?(0,a.q)(U,_,E):U,finalValue:(0,a.q)(0,_,E),onChange:h}),el=(0,i.useRef)(eu),ef=(0,i.useRef)(y);(0,i.useEffect)(()=>{ef.current=y},[y]);let ed=(0,i.useRef)(null),eh=(0,i.useRef)(null),ep=T({value:eu,min:_,max:E}),em=Z(eu),ey="function"==typeof z?z(em):z,eg=A??C(x),{ref:eb,active:ev}=s((0,i.useCallback)(({x:e})=>{if(!W){let t=M({value:e,min:_,max:E,step:x,precision:eg});ec(et&&F?.length?f(t,F.map(e=>e.value)):t),el.current=t}},[W,_,E,x,eg,ec,F,et]),{onScrubEnd:(0,i.useCallback)(()=>{if(!W&&ef.current){let e=et&&F?.length?f(el.current,F.map(e=>e.value)):el.current;ef.current(e)}},[W,F,et])},eo),e_=(0,i.useCallback)(e=>{!W&&ef.current&&ef.current(e)},[W]),eS=e=>{if(!W)switch(e.key){case"ArrowUp":{if(e.preventDefault(),eh.current?.focus(),et&&F){let e=I(eu,F);ec(e),e_(e);break}let t=R(Math.min(Math.max(eu+x,_),E),eg);ec(t),e_(t);break}case"ArrowRight":{if(e.preventDefault(),eh.current?.focus(),et&&F){let e="rtl"===eo?N(eu,F):I(eu,F);ec(e),e_(e);break}let t=R(Math.min(Math.max("rtl"===eo?eu-x:eu+x,_),E),eg);ec(t),e_(t);break}case"ArrowDown":{if(e.preventDefault(),eh.current?.focus(),et&&F){let e=N(eu,F);ec(e),e_(e);break}let t=R(Math.min(Math.max(eu-x,_),E),eg);ec(t),e_(t);break}case"ArrowLeft":{if(e.preventDefault(),eh.current?.focus(),et&&F){let e="rtl"===eo?I(eu,F):N(eu,F);ec(e),e_(e);break}let t=R(Math.min(Math.max("rtl"===eo?eu+x:eu-x,_),E),eg);ec(t),e_(t);break}case"Home":if(e.preventDefault(),eh.current?.focus(),et&&F){ec(P(F)),e_(P(F));break}ec(_),e_(_);break;case"End":if(e.preventDefault(),eh.current?.focus(),et&&F){ec(k(F)),e_(k(F));break}ec(E),e_(E)}};return(0,n.jsx)(b,{value:{getStyles:ei},children:(0,n.jsxs)(S,{...en,ref:(0,u.pc)(t,ed),onKeyDownCapture:eS,onMouseDownCapture:()=>ed.current?.focus(),size:v,disabled:W,children:[(0,n.jsx)(O,{inverted:K,offset:0,filled:ep,marks:F,min:_,max:E,value:em,disabled:W,containerProps:{ref:eb,onMouseEnter:q?()=>es(!0):void 0,onMouseLeave:q?()=>es(!1):void 0},children:(0,n.jsx)(w,{max:E,min:_,value:em,position:ep,dragging:ev,label:ey,ref:eh,labelTransitionProps:$,labelAlwaysOn:V,thumbLabel:Y,showLabelOnHover:q,isHovered:ea,disabled:W,...er,children:H})}),(0,n.jsx)("input",{type:"hidden",name:B,value:em,...ee})]})})});U.classes=D,U.displayName="@mantine/core/Slider"},10060:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(41742),i=r(81839),o=r(33901),a=r(89250),s=r(80577),u=r(6027);function c(e,t){(0,a.A)(1,arguments);var r,n,c,l,f,d,h,p,m=(0,u.q)(),y=(0,s.A)(null!=(r=null!=(n=null!=(c=null!=(l=null==t?void 0:t.firstWeekContainsDate)?l:null==t||null==(f=t.locale)||null==(d=f.options)?void 0:d.firstWeekContainsDate)?c:m.firstWeekContainsDate)?n:null==(h=m.locale)||null==(p=h.options)?void 0:p.firstWeekContainsDate)?r:1),g=(0,o.A)(e,t),b=new Date(0);return b.setUTCFullYear(g,0,y),b.setUTCHours(0,0,0,0),(0,i.A)(b,t)}var l=6048e5;function f(e,t){(0,a.A)(1,arguments);var r=(0,n.A)(e);return Math.round(((0,i.A)(r,t).getTime()-c(r,t).getTime())/l)+1}},10275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(80780)),i=o(r(11827));function o(e){return e&&e.__esModule?e:{default:e}}var a=6e4;function s(e,t){var r=e?(0,i.default)(e,t,!0)/a:t.getTimezoneOffset();if(Number.isNaN(r))throw RangeError("Invalid time zone specified: "+e);return r}function u(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length0?"-":"+",i=Math.abs(e);return n+u(Math.floor(i/60),2)+r+u(Math.floor(i%60),2)}function l(e,t){return e%60==0?(e>0?"-":"+")+u(Math.abs(e)/60,2):c(e,t)}function f(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(0===o)return r+String(i);var a=t||"";return r+String(i)+a+u(o,2)}t.default={X:function(e,t,r,n){var i=s(n.timeZone,n._originalDate||e);if(0===i)return"Z";switch(t){case"X":return l(i);case"XXXX":case"XX":return c(i);default:return c(i,":")}},x:function(e,t,r,n){var i=s(n.timeZone,n._originalDate||e);switch(t){case"x":return l(i);case"xxxx":case"xx":return c(i);default:return c(i,":")}},O:function(e,t,r,n){var i=s(n.timeZone,n._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+f(i,":");default:return"GMT"+c(i,":")}},z:function(e,t,r,i){var o=i._originalDate||e;switch(t){case"z":case"zz":case"zzz":return(0,n.default)("short",o,i);default:return(0,n.default)("long",o,i)}}},e.exports=t.default},10342:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(56343),i=r(89250),o=r(80577);function a(e,t){(0,i.A)(2,arguments);var r=(0,o.A)(t);return(0,n.A)(e,-r)}},10372:()=>{},11255:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(41742),i=r(89250);function o(e,t){(0,i.A)(2,arguments);var r=(0,n.A)(e),o=(0,n.A)(t),a=r.getTime()-o.getTime();return a<0?-1:a>0?1:a}},11370:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(34405),i=r(89250),o=r(23714);function a(e,t,r){(0,i.A)(2,arguments);var a=(0,n.A)(e,t)/1e3;return(0,o.u)(null==r?void 0:r.roundingMethod)(a)}},11460:(e,t,r)=>{"use strict";var n=r(93529),i=r(74818),o=r(97598),a=r(48203),s=r(84781),u=i(a(),Object);n(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},11689:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(41742),i=r(89250);function o(e){(0,i.A)(1,arguments);var t=(0,n.A)(e);return t.setHours(23,59,59,999),t}},11827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var n=o(r(47462)),i=o(r(26193));function o(e){return e&&e.__esModule?e:{default:e}}var a=36e5,s=6e4,u=/^(Z)$/,c=/^([+-]\d{2})$/,l=/^([+-]\d{2}):?(\d{2})$/;function f(e,t,r){if(!e||(n=u.exec(e)))return 0;if(n=c.exec(e))return m(o=parseInt(n[1],10))?-(o*a):NaN;if(n=l.exec(e)){var n,i,o=parseInt(n[1],10),f=parseInt(n[2],10);return m(o,f)?(i=Math.abs(o)*a+f*s,o>0?-i:i):NaN}if(g(e)){t=new Date(t||Date.now());var y=h(r?t:d(t),e);return-(r?y:p(t,y,e))}return NaN}function d(e){return(0,i.default)(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function h(e,t){var r=(0,n.default)(e,t),o=(0,i.default)(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),a=e.getTime(),s=a%1e3;return o-(a-=s>=0?s:1e3+s)}function p(e,t,r){var n=e.getTime()-t,i=h(new Date(n),r);if(t===i)return t;var o=h(new Date(n-=i-t),r);return i===o?i:Math.max(i,o)}function m(e,t){return -23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var y={};function g(e){if(y[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),y[e]=!0,!0}catch(e){return!1}}e.exports=t.default},12436:e=>{e.exports={focusRing:"focus_focusRing__UFS1R"}},12896:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var n=r(66404);function i(e,t){let r={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},i=(0,n.r)(r.from,t),o=(0,n.r)(r.to,t);return`linear-gradient(${r.deg}deg, ${i} 0%, ${o} 100%)`}},13202:(e,t,r)=>{"use strict";let n=r(62701);e.exports="function"==typeof n.randomUUID?n.randomUUID:r(60769)},13448:(e,t,r)=>{"use strict";r.d(t,{$:()=>s,s:()=>a});var n=r(95913),i=r(77332),o=r(43064),a=class extends i.k{#n;#i;#o;constructor(e){super(),this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#n=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){this.#o=(0,o.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let t="pending"===this.state.status,r=!this.#o.canStart();try{if(!t){this.#a({type:"pending",variables:e,isPaused:r}),await this.#i.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:r})}let n=await this.#o.start();return await this.#i.config.onSuccess?.(n,e,this.state.context,this),await this.options.onSuccess?.(n,e,this.state.context),await this.#i.config.onSettled?.(n,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(n,null,e,this.state.context),this.#a({type:"success",data:n}),n}catch(t){try{throw await this.#i.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#i.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#a({type:"error",error:t})}}finally{this.#i.runNext(this)}}#a(e){let t=t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),n.j.batch(()=>{this.#n.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},13525:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var n=r(55729),i=r(3465);function o({opened:e,shouldReturnFocus:t=!0}){let r=(0,n.useRef)(null),o=()=>{r.current&&"focus"in r.current&&"function"==typeof r.current.focus&&r.current?.focus({preventScroll:!0})};return(0,i.C)(()=>{let n=-1,i=e=>{"Tab"===e.key&&window.clearTimeout(n)};return document.addEventListener("keydown",i),e?r.current=document.activeElement:t&&(n=window.setTimeout(o,10)),()=>{window.clearTimeout(n),document.removeEventListener("keydown",i)}},[e,t]),o}},13634:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(41742),i=r(89250);function o(e){(0,i.A)(1,arguments);var t=(0,n.A)(e);return t.setHours(0,0,0,0),t}},13759:(e,t,r)=>{"use strict";function n(e,t){e.assign("day",t.getDate()),e.assign("month",t.getMonth()+1),e.assign("year",t.getFullYear())}function i(e,t){e.assign("hour",t.getHours()),e.assign("minute",t.getMinutes()),e.assign("second",t.getSeconds()),e.assign("millisecond",t.getMilliseconds()),e.assign("meridiem",12>t.getHours()?t9.AM:t9.PM)}function o(e,t){e.imply("day",t.getDate()),e.imply("month",t.getMonth()+1),e.imply("year",t.getFullYear())}function a(e,t){e.imply("hour",t.getHours()),e.imply("minute",t.getMinutes()),e.imply("second",t.getSeconds()),e.imply("millisecond",t.getMilliseconds()),e.imply("meridiem",12>t.getHours()?t9.AM:t9.PM)}r.d(t,{eh:()=>rl,U$:()=>rc,e2:()=>ra,pA:()=>ro,gw:()=>rs,ad:()=>rf,zG:()=>ru,c0:()=>ri}),function(e){e[e.AM=0]="AM",e[e.PM=1]="PM"}(t9||(t9={})),function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"}(t7||(t7={})),function(e){e[e.JANUARY=1]="JANUARY",e[e.FEBRUARY=2]="FEBRUARY",e[e.MARCH=3]="MARCH",e[e.APRIL=4]="APRIL",e[e.MAY=5]="MAY",e[e.JUNE=6]="JUNE",e[e.JULY=7]="JULY",e[e.AUGUST=8]="AUGUST",e[e.SEPTEMBER=9]="SEPTEMBER",e[e.OCTOBER=10]="OCTOBER",e[e.NOVEMBER=11]="NOVEMBER",e[e.DECEMBER=12]="DECEMBER"}(re||(re={}));let s={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:{timezoneOffsetDuringDst:120,timezoneOffsetNonDst:60,dstStart:e=>c(e,re.MARCH,t7.SUNDAY,2),dstEnd:e=>c(e,re.OCTOBER,t7.SUNDAY,3)},CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CT:{timezoneOffsetDuringDst:-300,timezoneOffsetNonDst:-360,dstStart:e=>u(e,re.MARCH,t7.SUNDAY,2,2),dstEnd:e=>u(e,re.NOVEMBER,t7.SUNDAY,1,2)},CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:{timezoneOffsetDuringDst:-240,timezoneOffsetNonDst:-300,dstStart:e=>u(e,re.MARCH,t7.SUNDAY,2,2),dstEnd:e=>u(e,re.NOVEMBER,t7.SUNDAY,1,2)},FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MT:{timezoneOffsetDuringDst:-360,timezoneOffsetNonDst:-420,dstStart:e=>u(e,re.MARCH,t7.SUNDAY,2,2),dstEnd:e=>u(e,re.NOVEMBER,t7.SUNDAY,1,2)},MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:{timezoneOffsetDuringDst:-420,timezoneOffsetNonDst:-480,dstStart:e=>u(e,re.MARCH,t7.SUNDAY,2,2),dstEnd:e=>u(e,re.NOVEMBER,t7.SUNDAY,1,2)},PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function u(e,t,r,n,i=0){let o=0,a=0;for(;an.dstStart(t.getFullYear())&&!(t>n.dstEnd(t.getFullYear()))?n.timezoneOffsetDuringDst:n.timezoneOffsetNonDst}let f={day:0,second:0,millisecond:0};function d(e,t){let r=new Date(e);if(t.y&&(t.year=t.y,delete t.y),t.mo&&(t.month=t.mo,delete t.mo),t.M&&(t.month=t.M,delete t.M),t.w&&(t.week=t.w,delete t.w),t.d&&(t.day=t.d,delete t.d),t.h&&(t.hour=t.h,delete t.h),t.m&&(t.minute=t.m,delete t.m),t.s&&(t.second=t.s,delete t.s),t.ms&&(t.millisecond=t.ms,delete t.ms),"year"in t){let e=Math.floor(t.year);r.setFullYear(r.getFullYear()+e);let n=t.year-e;n>0&&(t.month=t?.month??0,t.month+=12*n)}if("quarter"in t){let e=Math.floor(t.quarter);r.setMonth(r.getMonth()+3*e)}if("month"in t){let e=Math.floor(t.month);r.setMonth(r.getMonth()+e);let n=t.month-e;n>0&&(t.week=t?.week??0,t.week+=4*n)}if("week"in t){let e=Math.floor(t.week);r.setDate(r.getDate()+7*e);let n=t.week-e;n>0&&(t.day=t?.day??0,t.day+=Math.round(7*n))}if("day"in t){let e=Math.floor(t.day);r.setDate(r.getDate()+e);let n=t.day-e;n>0&&(t.hour=t?.hour??0,t.hour+=Math.round(24*n))}if("hour"in t){let e=Math.floor(t.hour);r.setHours(r.getHours()+e);let n=t.hour-e;n>0&&(t.minute=t?.minute??0,t.minute+=Math.round(60*n))}if("minute"in t){let e=Math.floor(t.minute);r.setMinutes(r.getMinutes()+e);let n=t.minute-e;n>0&&(t.second=t?.second??0,t.second+=Math.round(60*n))}if("second"in t){let e=Math.floor(t.second);r.setSeconds(r.getSeconds()+e);let n=t.second-e;n>0&&(t.millisecond=t?.millisecond??0,t.millisecond+=Math.round(1e3*n))}if("millisecond"in t){let e=Math.floor(t.millisecond);r.setMilliseconds(r.getMilliseconds()+e)}return r}function h(e){let t={};for(let r in e)t[r]=-e[r];return t}class p{instant;timezoneOffset;constructor(e,t){this.instant=e??new Date,this.timezoneOffset=t??null}static fromDate(e){return new p(e)}static fromInput(e,t){if(e instanceof Date)return p.fromDate(e);let r=e?.instant??new Date,n=l(e?.timezone,r,t);return new p(r,n)}getDateWithAdjustedTimezone(){let e=new Date(this.instant);return null!==this.timezoneOffset&&e.setMinutes(e.getMinutes()-this.getSystemTimezoneAdjustmentMinute(this.instant)),e}getSystemTimezoneAdjustmentMinute(e,t){(!e||0>e.getTime())&&(e=new Date);let r=-e.getTimezoneOffset(),n=t??this.timezoneOffset??r;return r-n}getTimezoneOffset(){return this.timezoneOffset??-this.instant.getTimezoneOffset()}}class m{knownValues;impliedValues;reference;_tags=new Set;constructor(e,t){if(this.reference=e,this.knownValues={},this.impliedValues={},t)for(const e in t)this.knownValues[e]=t[e];const r=e.getDateWithAdjustedTimezone();this.imply("day",r.getDate()),this.imply("month",r.getMonth()+1),this.imply("year",r.getFullYear()),this.imply("hour",12),this.imply("minute",0),this.imply("second",0),this.imply("millisecond",0)}static createRelativeFromReference(e,t=f){let r=d(e.getDateWithAdjustedTimezone(),t),o=new m(e);return o.addTag("result/relativeDate"),"hour"in t||"minute"in t||"second"in t||"millisecond"in t?(o.addTag("result/relativeDateAndTime"),i(o,r),n(o,r),o.assign("timezoneOffset",e.getTimezoneOffset())):(a(o,r),o.imply("timezoneOffset",e.getTimezoneOffset()),"day"in t?(o.assign("day",r.getDate()),o.assign("month",r.getMonth()+1),o.assign("year",r.getFullYear()),o.assign("weekday",r.getDay())):"week"in t?(o.assign("day",r.getDate()),o.assign("month",r.getMonth()+1),o.assign("year",r.getFullYear()),o.imply("weekday",r.getDay())):(o.imply("day",r.getDate()),"month"in t?(o.assign("month",r.getMonth()+1),o.assign("year",r.getFullYear())):(o.imply("month",r.getMonth()+1),"year"in t?o.assign("year",r.getFullYear()):o.imply("year",r.getFullYear())))),o}get(e){return e in this.knownValues?this.knownValues[e]:e in this.impliedValues?this.impliedValues[e]:null}isCertain(e){return e in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(e,t){return e in this.knownValues||(this.impliedValues[e]=t),this}assign(e,t){return this.knownValues[e]=t,delete this.impliedValues[e],this}addDurationAsImplied(e){let t=d(this.dateWithoutTimezoneAdjustment(),e);return("day"in e||"week"in e||"month"in e||"year"in e)&&(this.delete(["day","weekday","month","year"]),this.imply("day",t.getDate()),this.imply("weekday",t.getDay()),this.imply("month",t.getMonth()+1),this.imply("year",t.getFullYear())),("second"in e||"minute"in e||"hour"in e)&&(this.delete(["second","minute","hour"]),this.imply("second",t.getSeconds()),this.imply("minute",t.getMinutes()),this.imply("hour",t.getHours())),this}delete(e){for(let t of("string"==typeof e&&(e=[e]),e))delete this.knownValues[t],delete this.impliedValues[t]}clone(){let e=new m(this.reference);for(let t in e.knownValues={},e.impliedValues={},this.knownValues)e.knownValues[t]=this.knownValues[t];for(let t in this.impliedValues)e.impliedValues[t]=this.impliedValues[t];return e}isOnlyDate(){return!this.isCertain("hour")&&!this.isCertain("minute")&&!this.isCertain("second")}isOnlyTime(){return!this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")&&!this.isCertain("year")}isOnlyWeekdayComponent(){return this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")}isDateWithUnknownYear(){return this.isCertain("month")&&!this.isCertain("year")}isValidDate(){let e=this.dateWithoutTimezoneAdjustment();return e.getFullYear()===this.get("year")&&e.getMonth()===this.get("month")-1&&e.getDate()===this.get("day")&&(null==this.get("hour")||e.getHours()==this.get("hour"))&&(null==this.get("minute")||e.getMinutes()==this.get("minute"))}toString(){return`[ParsingComponents { + tags: ${JSON.stringify(Array.from(this._tags).sort())}, + knownValues: ${JSON.stringify(this.knownValues)}, + impliedValues: ${JSON.stringify(this.impliedValues)}}, + reference: ${JSON.stringify(this.reference)}]`}date(){let e=this.dateWithoutTimezoneAdjustment(),t=this.reference.getSystemTimezoneAdjustmentMinute(e,this.get("timezoneOffset"));return new Date(e.getTime()+6e4*t)}addTag(e){return this._tags.add(e),this}addTags(e){for(let t of e)this._tags.add(t);return this}tags(){return new Set(this._tags)}dateWithoutTimezoneAdjustment(){let e=new Date(this.get("year"),this.get("month")-1,this.get("day"),this.get("hour"),this.get("minute"),this.get("second"),this.get("millisecond"));return e.setFullYear(this.get("year")),e}}class y{refDate;index;text;reference;start;end;constructor(e,t,r,n,i){this.reference=e,this.refDate=e.instant,this.index=t,this.text=r,this.start=n||new m(e),this.end=i}clone(){let e=new y(this.reference,this.index,this.text);return e.start=this.start?this.start.clone():null,e.end=this.end?this.end.clone():null,e}date(){return this.start.date()}addTag(e){return this.start.addTag(e),this.end&&this.end.addTag(e),this}addTags(e){return this.start.addTags(e),this.end&&this.end.addTags(e),this}tags(){let e=new Set(this.start.tags());if(this.end)for(let t of this.end.tags())e.add(t);return e}toString(){let e=Array.from(this.tags()).sort();return`[ParsingResult {index: ${this.index}, text: '${this.text}', tags: ${JSON.stringify(e)} ...}]`}}function g(e,t,r="\\s{0,5},?\\s{0,5}"){let n=t.replace(/\((?!\?)/g,"(?:");return`${e}${n}(?:${r}${n}){0,10}`}function b(e){return e instanceof Array?[...e]:e instanceof Map?Array.from(e.keys()):Object.keys(e)}function v(e){let t=b(e).sort((e,t)=>t.length-e.length).join("|").replace(/\./g,"\\.");return`(?:${t})`}function _(e){return e<100&&(e>50?e+=1900:e+=2e3),e}function S(e,t,r){let n=new Date(e);n.setMonth(r-1),n.setDate(t);let i=d(n,{year:1}),o=d(n,{year:-1});return Math.abs(i.getTime()-e.getTime())31)return t.index=t.index+t[Z].length,null;if(r.start.assign("month",n),r.start.assign("day",i),t[J]){let e=k(t[J]);r.start.assign("year",e)}else{let t=S(e.refDate,i,n);r.start.imply("year",t)}if(t[K]){let e=N(t[K]);r.end=r.start.clone(),r.end.assign("day",e)}return r}}let ee=RegExp(`(${v(T)})(?:-|/|\\s*,?\\s*)(${I})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${I})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${P}))?(?=\\W|$)(?!\\:\\d)`,"i"),et=1,er=2,en=3,ei=4;class eo extends V{shouldSkipYearLikeDate;constructor(e){super(),this.shouldSkipYearLikeDate=e}innerPattern(){return ee}innerExtract(e,t){let r=T[t[et].toLowerCase()],n=N(t[er]);if(n>31||this.shouldSkipYearLikeDate&&!t[en]&&!t[ei]&&t[er].match(/^2[0-5]$/))return null;let i=e.createParsingComponents({day:n,month:r}).addTag("parser/ENMonthNameMiddleEndianParser");if(t[ei]){let e=k(t[ei]);i.assign("year",e)}else{let t=S(e.refDate,n,r);i.imply("year",t)}if(!t[en])return i;let o=N(t[en]),a=e.createParsingResult(t.index,t[0]);return a.start=i,a.end=i.clone(),a.end.assign("day",o),a}}let ea=RegExp(`((?:in)\\s*)?(${v(T)})\\s*(?:(?:,|-|of)?\\s*(${P})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i"),es=1,eu=2,ec=3;class el extends V{innerPattern(){return ea}innerExtract(e,t){let r=t[eu].toLowerCase();if(t[0].length<=3&&!w[r])return null;let n=e.createParsingResult(t.index+(t[es]||"").length,t.index+t[0].length);n.start.imply("day",1),n.start.addTag("parser/ENMonthNameParser");let i=T[r];if(n.start.assign("month",i),t[ec]){let e=k(t[ec]);n.start.assign("year",e)}else{let t=S(e.refDate,1,i);n.start.imply("year",t)}return n}}let ef=RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${v(T)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i"),ed=1,eh=2,ep=3,em=4;class ey extends V{strictMonthDateOrder;constructor(e){super(),this.strictMonthDateOrder=e}innerPattern(){return ef}innerExtract(e,t){let r=parseInt(t[ed]),n=parseInt(t[em]),i=t[ep]?parseInt(t[ep]):T[t[eh].toLowerCase()];if(i<1||i>12){if(this.strictMonthDateOrder)return null;n>=1&&n<=12&&([i,n]=[n,i])}return n<1||n>31?null:{day:n,month:i,year:r}}}let eg=RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i"),eb=1,ev=2;class e_ extends V{innerPattern(){return eg}innerExtract(e,t){let r=parseInt(t[ev]),n=parseInt(t[eb]);return e.createParsingComponents().imply("day",1).assign("month",n).assign("year",r)}}function eS(e,t,r,n){return RegExp(`${e}${t}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${r}`,n)}function eE(e,t){return RegExp(`^(${e})(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`,"i")}let ew=2,eT=3,ex=4,eA=5,eO=6;class eM{strictMode;constructor(e=!1){this.strictMode=e}patternFlags(){return"i"}primaryPatternLeftBoundary(){return"(^|\\s|T|\\b)"}primarySuffix(){return"(?!/)(?=\\W|$)"}followingSuffix(){return"(?!/)(?=\\W|$)"}pattern(e){return this.getPrimaryTimePatternThroughCache()}extract(e,t){let r=this.extractPrimaryTimeComponents(e,t);if(!r)return t[0].match(/^\d{4}/)?t.index+=4:t.index+=t[0].length,null;let n=t.index+t[1].length,i=t[0].substring(t[1].length),o=e.createParsingResult(n,i,r);t.index+=t[0].length;let a=e.text.substring(t.index),s=this.getFollowingTimePatternThroughCache().exec(a);return i.match(/^\d{3,4}/)&&s&&(s[0].match(/^\s*([+-])\s*\d{2,4}$/)||s[0].match(/^\s*([+-])\s*\d{2}\W\d{2}/))?null:!s||s[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(o):(o.end=this.extractFollowingTimeComponents(e,s,o),o.end&&(o.text+=s[0]),this.checkAndReturnWithFollowingPattern(o))}extractPrimaryTimeComponents(e,t,r=!1){let n=e.createParsingComponents(),i=0,o=null,a=parseInt(t[ew]);if(a>100){if(4==t[ew].length&&null==t[eT]&&!t[eO]||this.strictMode||null!=t[eT])return null;i=a%100,a=Math.floor(a/100)}if(a>24)return null;if(null!=t[eT]){if(1==t[eT].length&&!t[eO])return null;i=parseInt(t[eT])}if(i>=60)return null;if(a>12&&(o=t9.PM),null!=t[eO]){if(a>12)return null;let e=t[eO][0].toLowerCase();"a"==e&&(o=t9.AM,12==a&&(a=0)),"p"==e&&(o=t9.PM,12!=a&&(a+=12))}if(n.assign("hour",a),n.assign("minute",i),null!==o?n.assign("meridiem",o):a<12?n.imply("meridiem",t9.AM):n.imply("meridiem",t9.PM),null!=t[eA]){let e=parseInt(t[eA].substring(0,3));if(e>=1e3)return null;n.assign("millisecond",e)}if(null!=t[ex]){let e=parseInt(t[ex]);if(e>=60)return null;n.assign("second",e)}return n}extractFollowingTimeComponents(e,t,r){let n=e.createParsingComponents();if(null!=t[eA]){let e=parseInt(t[eA].substring(0,3));if(e>=1e3)return null;n.assign("millisecond",e)}if(null!=t[ex]){let e=parseInt(t[ex]);if(e>=60)return null;n.assign("second",e)}let i=parseInt(t[ew]),o=0,a=-1;if(null!=t[eT]?o=parseInt(t[eT]):i>100&&(o=i%100,i=Math.floor(i/100)),o>=60||i>24)return null;if(i>=12&&(a=t9.PM),null!=t[eO]){if(i>12)return null;let e=t[eO][0].toLowerCase();"a"==e&&(a=t9.AM,12==i&&(i=0,n.isCertain("day")||n.imply("day",n.get("day")+1))),"p"==e&&(a=t9.PM,12!=i&&(i+=12)),r.start.isCertain("meridiem")||(a==t9.AM?(r.start.imply("meridiem",t9.AM),12==r.start.get("hour")&&r.start.assign("hour",0)):(r.start.imply("meridiem",t9.PM),12!=r.start.get("hour")&&r.start.assign("hour",r.start.get("hour")+12)))}return n.assign("hour",i),n.assign("minute",o),a>=0?n.assign("meridiem",a):r.start.isCertain("meridiem")&&r.start.get("hour")>12?r.start.get("hour")-12>i?n.imply("meridiem",t9.AM):i<=12&&(n.assign("hour",i+12),n.assign("meridiem",t9.PM)):i>12?n.imply("meridiem",t9.PM):i<=12&&n.imply("meridiem",t9.AM),n.date().getTime()24)return null}return e}checkAndReturnWithFollowingPattern(e){if(e.text.match(/^\d+-\d+$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(t){if(this.strictMode)return null;let e=t[1],r=t[2];if(r.includes(".")&&!r.match(/\d(\.\d{2})+$/))return null;let n=parseInt(r),i=parseInt(e);if(n>24||i>24)return null}return e}cachedPrimaryPrefix=null;cachedPrimarySuffix=null;cachedPrimaryTimePattern=null;getPrimaryTimePatternThroughCache(){let e=this.primaryPrefix(),t=this.primarySuffix();return this.cachedPrimaryPrefix===e&&this.cachedPrimarySuffix===t||(this.cachedPrimaryTimePattern=eS(this.primaryPatternLeftBoundary(),e,t,this.patternFlags()),this.cachedPrimaryPrefix=e,this.cachedPrimarySuffix=t),this.cachedPrimaryTimePattern}cachedFollowingPhase=null;cachedFollowingSuffix=null;cachedFollowingTimePatten=null;getFollowingTimePatternThroughCache(){let e=this.followingPhase(),t=this.followingSuffix();return this.cachedFollowingPhase===e&&this.cachedFollowingSuffix===t||(this.cachedFollowingTimePatten=eE(e,t),this.cachedFollowingPhase=e,this.cachedFollowingSuffix=t),this.cachedFollowingTimePatten}}class eR extends eM{constructor(e){super(e)}followingPhase(){return"\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*"}primaryPrefix(){return"(?:(?:at|from)\\s*)??"}primarySuffix(){return"(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(e,t){let r=super.extractPrimaryTimeComponents(e,t);if(!r)return r;if(t[0].endsWith("night")){let e=r.get("hour");e>=6&&e<12?(r.assign("hour",r.get("hour")+12),r.assign("meridiem",t9.PM)):e<6&&r.assign("meridiem",t9.AM)}if(t[0].endsWith("afternoon")){r.assign("meridiem",t9.PM);let e=r.get("hour");e>=0&&e<=6&&r.assign("hour",r.get("hour")+12)}return t[0].endsWith("morning")&&(r.assign("meridiem",t9.AM),12>r.get("hour")&&r.assign("hour",r.get("hour"))),r.addTag("parser/ENTimeExpressionParser")}extractFollowingTimeComponents(e,t,r){let n=super.extractFollowingTimeComponents(e,t,r);return n&&n.addTag("parser/ENTimeExpressionParser"),n}}let eC=RegExp(`(${B})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i"),eI=RegExp(`(${F})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i");class eN extends V{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?eI:eC}innerExtract(e,t){let r=z(t[1]);return r?m.createRelativeFromReference(e.reference,h(r)):null}}let eP=RegExp(`(${B})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,"i"),ek=RegExp(`(${F})\\s{0,5}(later|after|from now)(?=\\W|$)`,"i"),eD=1;class eL extends V{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?ek:eP}innerExtract(e,t){let r=z(t[eD]);return r?m.createRelativeFromReference(e.reference,r):null}}class ej{refine(e,t){return t.filter(t=>this.isValid(e,t))}}class eU{refine(e,t){if(t.length<2)return t;let r=[],n=t[0],i=null;for(let o=1;o{console.log(`${this.constructor.name} merged ${t} and ${r} into ${o}`)}),n=o}else r.push(n),n=i}return null!=n&&r.push(n),r}}class eB extends eU{shouldMergeResults(e,t,r){return!t.end&&!r.end&&null!=e.match(this.patternBetween())}mergeResults(e,t,r){if(t.start.isOnlyWeekdayComponent()||r.start.isOnlyWeekdayComponent()||(r.start.getCertainComponents().forEach(e=>{t.start.isCertain(e)||t.start.imply(e,r.start.get(e))}),t.start.getCertainComponents().forEach(e=>{r.start.isCertain(e)||r.start.imply(e,t.start.get(e))})),t.start.date()>r.start.date()){let e=t.start.date(),n=r.start.date();r.start.isOnlyWeekdayComponent()&&d(n,{day:7})>e?(n=d(n,{day:7}),r.start.imply("day",n.getDate()),r.start.imply("month",n.getMonth()+1),r.start.imply("year",n.getFullYear())):t.start.isOnlyWeekdayComponent()&&d(e,{day:-7})e?(n=d(n,{year:1}),r.start.imply("year",n.getFullYear())):t.start.isDateWithUnknownYear()&&d(e,{year:-1})r.get("hour")&&(t.isCertain("hour")?r.assign("hour",r.get("hour")+12):r.imply("hour",r.get("hour")+12)),r.addTags(e.tags()),r.addTags(t.tags()),r}class eV extends eU{shouldMergeResults(e,t,r){return(t.start.isOnlyDate()&&r.start.isOnlyTime()||r.start.isOnlyDate()&&t.start.isOnlyTime())&&null!=e.match(this.patternBetween())}mergeResults(e,t,r){let n=t.start.isOnlyDate()?ez(t,r):ez(r,t);return n.index=t.index,n.text=t.text+e+r.text,n}}class eY extends eV{patternBetween(){return RegExp("^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$")}}let eq=RegExp("^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)","i");class eH{timezoneOverrides;constructor(e){this.timezoneOverrides=e}refine(e,t){let r=e.option.timezones??{};return t.forEach(t=>{let n=e.text.substring(t.index+t.text.length),i=eq.exec(n);if(!i)return;let o=i[1].toUpperCase(),a=l(o,t.start.date()??t.refDate??new Date,{...this.timezoneOverrides,...r});if(null==a)return;e.debug(()=>{console.log(`Extracting timezone: '${o}' into: ${a} for: ${t.start}`)});let s=t.start.get("timezoneOffset");!(null!==s&&a!=s&&(t.start.isCertain("timezoneOffset")||o!=i[1]))&&(!t.start.isOnlyDate()||o==i[1])&&(t.text+=i[0],t.start.isCertain("timezoneOffset")||t.start.assign("timezoneOffset",a),null==t.end||t.end.isCertain("timezoneOffset")||t.end.assign("timezoneOffset",a))}),t}}let eW=RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?","i"),eG=1,eZ=2,eK=3;class eX{refine(e,t){return t.forEach(function(t){if(t.start.isCertain("timezoneOffset"))return;let r=e.text.substring(t.index+t.text.length),n=eW.exec(r);if(!n)return;e.debug(()=>{console.log(`Extracting timezone: '${n[0]}' into : ${t}`)});let i=60*parseInt(n[eZ])+parseInt(n[eK]||"0");i>840||("-"===n[eG]&&(i=-i),null!=t.end&&t.end.assign("timezoneOffset",i),t.start.assign("timezoneOffset",i),t.text+=n[0])}),t}}class eJ{refine(e,t){if(t.length<2)return t;let r=[],n=t[0];for(let i=1;i=n.index+n.text.length){r.push(n),n=o;continue}let a=null,s=null;o.text.length>n.text.length?(a=o,s=n):(a=n,s=o),e.debug(()=>{console.log(`${this.constructor.name} remove ${s} by ${a}`)}),n=a}return null!=n&&r.push(n),r}}class eQ{refine(e,t){return e.option.forwardDate&&t.forEach(t=>{let r=e.reference.getDateWithAdjustedTimezone();if(t.start.isOnlyTime()&&e.reference.instant>t.start.date()){let r=e.reference.getDateWithAdjustedTimezone(),n=new Date(r);n.setDate(n.getDate()+1),o(t.start,n),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} time from the ref date (${r}) to the following day (${n})`)}),t.end&&t.end.isOnlyTime()&&(o(t.end,n),t.start.date()>t.end.date()&&(n.setDate(n.getDate()+1),o(t.end,n)))}if(t.start.isOnlyWeekdayComponent()&&r>t.start.date()){let n=t.start.get("weekday")-r.getDay();if(n<=0&&(n+=7),r=d(r,{day:n}),o(t.start,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.start})`)}),t.end&&t.end.isOnlyWeekdayComponent()){let n=t.end.get("weekday")-r.getDay();n<=0&&(n+=7),r=d(r,{day:n}),o(t.end,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.end})`)})}}if(t.start.isDateWithUnknownYear()&&r>t.start.date())for(let n=0;n<3&&r>t.start.date();n++)t.start.imply("year",t.start.get("year")+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} year (${t.start})`)}),t.end&&!t.end.isCertain("year")&&(t.end.imply("year",t.end.get("year")+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} month (${t.start})`)}))}),t}}class e0 extends ej{strictMode;constructor(e){super(),this.strictMode=e}isValid(e,t){return t.text.replace(" ","").match(/^\d*(\.\d*)?$/)?(e.debug(()=>{console.log(`Removing unlikely result '${t.text}'`)}),!1):t.start.isValidDate()?t.end&&!t.end.isValidDate()?(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.end})`)}),!1):!this.strictMode||this.isStrictModeValid(e,t):(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.start})`)}),!1)}isStrictModeValid(e,t){return!t.start.isOnlyWeekdayComponent()||(e.debug(()=>{console.log(`(Strict) Removing weekday only component: ${t} (${t.end})`)}),!1)}}let e1=RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)","i"),e2=1,e6=2,e3=3,e4=4,e5=5,e8=6,e9=7,e7=8,te=9,tt=10;class tr extends V{innerPattern(){return e1}innerExtract(e,t){let r=e.createParsingComponents({year:parseInt(t[e2]),month:parseInt(t[e6]),day:parseInt(t[e3])});if(null!=t[e4]&&(r.assign("hour",parseInt(t[e4])),r.assign("minute",parseInt(t[e5])),null!=t[e8]&&r.assign("second",parseInt(t[e8])),null!=t[e9]&&r.assign("millisecond",parseInt(t[e9])),null!=t[e7])){let e=0;if(t[te]){let r=parseInt(t[te]),n=0;null!=t[tt]&&(n=parseInt(t[tt])),(e=60*r)<0?e-=n:e+=n}r.assign("timezoneOffset",e)}return r.addTag("parser/ISOFormatParser")}}class tn extends eU{mergeResults(e,t,r){let n=r.clone();return n.index=t.index,n.text=t.text+e+n.text,n.start.assign("weekday",t.start.get("weekday")),n.end&&n.end.assign("weekday",t.start.get("weekday")),n}shouldMergeResults(e,t,r){return t.start.isOnlyWeekdayComponent()&&!t.start.isCertain("hour")&&r.start.isCertain("day")&&null!=e.match(/^,?\s*$/)}}function ti(e,t=!1){return e.parsers.unshift(new tr),e.refiners.unshift(new tn),e.refiners.unshift(new eX),e.refiners.unshift(new eJ),e.refiners.push(new eH),e.refiners.push(new eJ),e.refiners.push(new eQ),e.refiners.push(new e0(t)),e}function to(e){let t=e.getDateWithAdjustedTimezone(),r=new m(e,{});return n(r,t),i(r,t),r.assign("timezoneOffset",e.getTimezoneOffset()),r.addTag("casualReference/now"),r}function ta(e){let t=e.getDateWithAdjustedTimezone(),r=new m(e,{});return n(r,t),a(r,t),r.delete("meridiem"),r.addTag("casualReference/today"),r}function ts(e){return tc(e,1).addTag("casualReference/yesterday")}function tu(e){return tl(e,1).addTag("casualReference/tomorrow")}function tc(e,t){return tl(e,-t)}function tl(e,t){let r=e.getDateWithAdjustedTimezone(),i=new m(e,{}),o=new Date(r.getTime());return o.setDate(o.getDate()+t),n(i,o),a(i,o),i.delete("meridiem"),i}function tf(e,t=22){let r=e.getDateWithAdjustedTimezone(),i=new m(e,{});return n(i,r),i.imply("hour",t),i.imply("meridiem",t9.PM),i.addTag("casualReference/tonight"),i}function td(e,t=20){let r=new m(e,{});return r.imply("meridiem",t9.PM),r.imply("hour",t),r.addTag("casualReference/evening"),r}function th(e){let t=new m(e,{});return e.getDateWithAdjustedTimezone().getHours()>2&&t.addDurationAsImplied({day:1}),t.assign("hour",0),t.imply("minute",0),t.imply("second",0),t.imply("millisecond",0),t.addTag("casualReference/midnight"),t}function tp(e,t=6){let r=new m(e,{});return r.imply("meridiem",t9.AM),r.imply("hour",t),r.imply("minute",0),r.imply("second",0),r.imply("millisecond",0),r.addTag("casualReference/morning"),r}function tm(e,t=15){let r=new m(e,{});return r.imply("meridiem",t9.PM),r.imply("hour",t),r.imply("minute",0),r.imply("second",0),r.imply("millisecond",0),r.addTag("casualReference/afternoon"),r}function ty(e){let t=new m(e,{});return t.imply("meridiem",t9.AM),t.assign("hour",12),t.imply("minute",0),t.imply("second",0),t.imply("millisecond",0),t.addTag("casualReference/noon"),t}let tg=/(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i;class tb extends V{innerPattern(e){return tg}innerExtract(e,t){let r=e.refDate,i=t[0].toLowerCase(),o=e.createParsingComponents();switch(i){case"now":o=to(e.reference);break;case"today":o=ta(e.reference);break;case"yesterday":o=ts(e.reference);break;case"tomorrow":case"tmr":case"tmrw":o=tu(e.reference);break;case"tonight":o=tf(e.reference);break;case"overmorrow":o=tl(e.reference,2);break;default:if(i.match(/last\s*night/)){if(r.getHours()>6){let e=new Date(r.getTime());e.setDate(e.getDate()-1),r=e}n(o,r),o.imply("hour",0)}}return o.addTag("parser/ENCasualDateParser"),o}}let tv=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i;class t_ extends V{innerPattern(){return tv}innerExtract(e,t){let r=null;switch(t[1].toLowerCase()){case"afternoon":r=tm(e.reference);break;case"evening":case"night":r=td(e.reference);break;case"midnight":r=th(e.reference);break;case"morning":r=tp(e.reference);break;case"noon":case"midday":r=ty(e.reference)}return r&&r.addTag("parser/ENCasualTimeParser"),r}}function tS(e,t,r){let n=tE(e.getDateWithAdjustedTimezone(),t,r),i=new m(e);return(i=i.addDurationAsImplied({day:n})).assign("weekday",t),i}function tE(e,t,r){let n=e.getDay();switch(r){case"this":return tT(e,t);case"last":return tx(e,t);case"next":if(n==t7.SUNDAY)return t==t7.SUNDAY?7:t;if(n==t7.SATURDAY){if(t==t7.SATURDAY)return 7;if(t==t7.SUNDAY)return 8;return 1+t}if(t=0&&(r-=7),r}let tA=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${v(E)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(this|last|past|next)\\s*week)?(?=\\W|$)`,"i"),tO=1,tM=2,tR=3;class tC extends V{innerPattern(){return tA}innerExtract(e,t){let r,n=t[tO],i=t[tR],o=n||i;o=(o=o||"").toLowerCase();let a=null;"last"==o||"past"==o?a="last":"next"==o?a="next":"this"==o&&(a="this");let s=t[tM].toLowerCase();if(void 0!==E[s])r=E[s];else if("weekend"==s)r="last"==a?t7.SUNDAY:t7.SATURDAY;else{if("weekday"!=s)return null;let t=e.reference.getDateWithAdjustedTimezone().getDay();t==t7.SUNDAY||t==t7.SATURDAY?r="last"==a?t7.FRIDAY:t7.MONDAY:(r=t-1,r=(r="last"==a?r-1:r+1)%5+1)}return tS(e.reference,r,a)}}let tI=RegExp(`(this|last|past|next|after\\s*this)\\s*(${v(M)})(?=\\s*)(?=\\W|$)`,"i"),tN=1,tP=2;class tk extends V{innerPattern(){return tI}innerExtract(e,t){let r=t[tN].toLowerCase(),n=t[tP].toLowerCase(),i=M[n];if("next"==r||r.startsWith("after")){let t={};return t[i]=1,m.createRelativeFromReference(e.reference,t)}if("last"==r||"past"==r){let t={};return t[i]=-1,m.createRelativeFromReference(e.reference,t)}let o=e.createParsingComponents(),a=new Date(e.reference.instant.getTime());return n.match(/week/i)?(a.setDate(a.getDate()-a.getDay()),o.imply("day",a.getDate()),o.imply("month",a.getMonth()+1),o.imply("year",a.getFullYear())):n.match(/month/i)?(a.setDate(1),o.imply("day",a.getDate()),o.assign("year",a.getFullYear()),o.assign("month",a.getMonth()+1)):n.match(/year/i)&&(a.setDate(1),a.setMonth(0),o.imply("day",a.getDate()),o.imply("month",a.getMonth()+1),o.assign("year",a.getFullYear())),o}}let tD=RegExp("([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)","i"),tL=1,tj=5,tU=2,tB=3,tF=4;class tz{groupNumberMonth;groupNumberDay;constructor(e){this.groupNumberMonth=e?tB:tU,this.groupNumberDay=e?tU:tB}pattern(){return tD}extract(e,t){let r=t.index+t[tL].length,n=t.index+t[0].length-t[tj].length;if(r>0&&e.text.substring(0,r).match("\\d/?$")||ni.indexOf("/"))return;let o=e.createParsingResult(r,i),a=parseInt(t[this.groupNumberMonth]),s=parseInt(t[this.groupNumberDay]);if((a<1||a>12)&&a>12)if(!(s>=1)||!(s<=12)||!(a<=31))return null;else[s,a]=[a,s];if(s<1||s>31)return null;if(o.start.assign("day",s),o.start.assign("month",a),t[tF]){let e=_(parseInt(t[tF]));o.start.assign("year",e)}else{let t=S(e.refDate,s,a);o.start.imply("year",t)}return o.addTag("parser/SlashDateFormatParser")}}let t$=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${B})(?=\\W|$)`,"i"),tV=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${F})(?=\\W|$)`,"i");class tY extends V{allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?t$:tV}innerExtract(e,t){let r=t[1].toLowerCase(),n=z(t[2]);if(!n)return null;switch(r){case"last":case"past":case"-":n=h(n)}return m.createRelativeFromReference(e.reference,n)}}function tq(e){return null!=e.text.match(/^[+-]/i)}function tH(e){return null!=e.text.match(/^-/i)}class tW extends eU{shouldMergeResults(e,t,r){return!!e.match(/^\s*$/i)&&(tq(r)||tH(r))}mergeResults(e,t,r,n){let i=z(r.text);tH(r)&&(i=h(i));let o=m.createRelativeFromReference(p.fromDate(t.start.date()),i);return new y(t.reference,t.index,`${t.text}${e}${r.text}`,o)}}function tG(e){return null!=e.text.match(/\s+(before|from)$/i)}function tZ(e){return null!=e.text.match(/\s+(after|since)$/i)}class tK extends eU{patternBetween(){return/^\s*$/i}shouldMergeResults(e,t,r){return!!e.match(this.patternBetween())&&(!!tG(t)||!!tZ(t))&&!!r.start.get("day")&&!!r.start.get("month")&&!!r.start.get("year")}mergeResults(e,t,r){let n=z(t.text);tG(t)&&(n=h(n));let i=m.createRelativeFromReference(p.fromDate(r.start.date()),n);return new y(r.reference,t.index,`${t.text}${e}${r.text}`,i)}}let tX=RegExp(`^\\s*(${P})`,"i"),tJ=1;class tQ{refine(e,t){return t.forEach(function(t){if(!t.start.isDateWithUnknownYear())return;let r=e.text.substring(t.index+t.text.length),n=tX.exec(r);if(!n||n[0].trim().length<=3)return;e.debug(()=>{console.log(`Extracting year: '${n[0]}' into : ${t}`)});let i=k(n[tJ]);null!=t.end&&t.end.assign("year",i),t.start.assign("year",i),t.text+=n[0]}),t}}class t0 extends ej{constructor(){super()}isValid(e,t){let r=t.text.trim();return r===e.text.trim()||("may"!==r.toLowerCase()||e.text.substring(0,t.index).trim().match(/\b(in)$/i)?!r.toLowerCase().endsWith("the second")||(e.text.substring(t.index+t.text.length).trim().length>0&&e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1):(e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1))}}class t1{createCasualConfiguration(e=!1){let t=this.createConfiguration(!1,e);return t.parsers.push(new tb),t.parsers.push(new t_),t.parsers.push(new el),t.parsers.push(new tk),t.parsers.push(new tY),t.refiners.push(new t0),t}createConfiguration(e=!0,t=!1){let r=ti({parsers:[new tz(t),new W(e),new Q,new eo(t),new tC,new e_,new eR(e),new eN(e),new eL(e)],refiners:[new eY]},e);return r.parsers.unshift(new ey(e)),r.refiners.unshift(new tK),r.refiners.unshift(new tW),r.refiners.unshift(new eJ),r.refiners.push(new eY),r.refiners.push(new tQ),r.refiners.push(new eF),r}}class t2{parsers;refiners;defaultConfig=new t1;constructor(e){e=e||this.defaultConfig.createCasualConfiguration(),this.parsers=[...e.parsers],this.refiners=[...e.refiners]}clone(){return new t2({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(e,t,r){let n=this.parse(e,t,r);return n.length>0?n[0].start.date():null}parse(e,t,r){let n=new t6(e,t,r),i=[];return this.parsers.forEach(e=>{let t=t2.executeParser(n,e);i=i.concat(t)}),i.sort((e,t)=>e.index-t.index),this.refiners.forEach(function(e){i=e.refine(n,i)}),i}static executeParser(e,t){let r=[],n=t.pattern(e),i=e.text,o=e.text,a=n.exec(o);for(;a;){let s=a.index+i.length-o.length;a.index=s;let u=t.extract(e,a);if(!u){o=i.substring(a.index+1),a=n.exec(o);continue}let c=null;u instanceof y?c=u:u instanceof m?(c=e.createParsingResult(a.index,a[0])).start=u:c=e.createParsingResult(a.index,a[0],u);let l=c.index,f=c.text;e.debug(()=>console.log(`${t.constructor.name} extracted (at index=${l}) '${f}'`)),r.push(c),o=i.substring(l+f.length),a=n.exec(o)}return r}}class t6{text;option;reference;refDate;constructor(e,t,r){this.text=e,this.option=r??{},this.reference=p.fromInput(t,this.option.timezones),this.refDate=this.reference.instant}createParsingComponents(e){return e instanceof m?e:new m(this.reference,e)}createParsingResult(e,t,r,n){let i="string"==typeof t?t:this.text.substring(e,t),o=r?this.createParsingComponents(r):null,a=n?this.createParsingComponents(n):null;return new y(this.reference,e,i,o,a)}debug(e){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(e):this.option.debug.debug(e))}}let t3=new t1,t4=new t2(t3.createCasualConfiguration(!1));new t2(t3.createConfiguration(!0,!1)),new t2(t3.createCasualConfiguration(!0));let t5=t4;function t8(e,t,r){return t5.parse(e,t,r)}var t9,t7,re,rt=r(67264),rr=r.n(rt);function rn(e){if(!e)return null;let t=new Date,r=e.date();if(e.isCertain("hour")||e.isCertain("minute")||e.isCertain("second")||e.isCertain("millisecond")||(t.setHours(e.get("hour")||0),t.setMinutes(e.get("minute")||0),t.setSeconds(e.get("second")||0),t.setMilliseconds(e.get("millisecond")||0)),r>t){let n=t.getTime()+rr()("1d");if(r.getTime()<=n)return t;e.isCertain("year")||r.setFullYear(r.getFullYear()-1)}return r}function ri(e,t=!1){let r=t8(e,t?{timezone:0}:{});if(0===r.length)return[null,null];let n=1===r.length?r[0]:r[1],i=rn(n.start),o=rn(n.end)||new Date;return o&&i&&o"divider"!==t&&t[1]===e);return t?t[0]:void 0}let rc=["30s","1m","5m","15m","30m","1h","3h","6h","12h"],rl={"30s":{seconds:30},"1m":{minutes:1},"5m":{minutes:5},"15m":{minutes:15},"30m":{minutes:30},"1h":{hours:1},"3h":{hours:3},"6h":{hours:6},"12h":{hours:12}},rf=e=>{if(!e)return null;let t=t5.parse(e)[0];return rn(t?.start)}},14274:(e,t,r)=>{"use strict";var n=r(80656);e.exports=Function.prototype.bind||n},14292:(e,t,r)=>{"use strict";var n=r(74818),i=r(93529),o=r(78030),a=r(56315),s=r(62397),u=n(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},14333:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(53362);let i={y:function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return(0,n.A)("yy"===t?i%100:i,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):(0,n.A)(r+1,2)},d:function(e,t){return(0,n.A)(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return(0,n.A)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,n.A)(e.getUTCHours(),t.length)},m:function(e,t){return(0,n.A)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,n.A)(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,i=Math.floor(e.getUTCMilliseconds()*Math.pow(10,r-3));return(0,n.A)(i,t.length)}}},15179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(r(89680)),i=l(r(42503)),o=l(r(32358)),a=l(r(24708)),s=l(r(47961)),u=l(r(32454)),c=l(r(48577));function l(e){return e&&e.__esModule?e:{default:e}}var f="midnight",d="noon",h="morning",p="afternoon",m="evening",y="night";function g(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(0===o)return r+String(i);var a=t||"";return r+String(i)+a+(0,u.default)(o,2)}function b(e,t){return e%60==0?(e>0?"-":"+")+(0,u.default)(Math.abs(e)/60,2):v(e,t)}function v(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e);return n+(0,u.default)(Math.floor(i/60),2)+r+(0,u.default)(i%60,2)}t.default={G:function(e,t,r){var n=+(e.getUTCFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return c.default.y(e,t)},Y:function(e,t,r,n){var i=(0,s.default)(e,n),o=i>0?i:1-i;if("YY"===t){var a=o%100;return(0,u.default)(a,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):(0,u.default)(o,t.length)},R:function(e,t){var r=(0,o.default)(e);return(0,u.default)(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return(0,u.default)(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return(0,u.default)(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return(0,u.default)(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return c.default.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return(0,u.default)(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var i=(0,a.default)(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):(0,u.default)(i,t.length)},I:function(e,t,r){var n=(0,i.default)(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):(0,u.default)(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):c.default.d(e,t)},D:function(e,t,r){var i=(0,n.default)(e);return"Do"===t?r.ordinalNumber(i,{unit:"dayOfYear"}):(0,u.default)(i,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,u.default)(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,u.default)(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return(0,u.default)(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,i=e.getUTCHours();switch(n=12===i?d:0===i?f:i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,i=e.getUTCHours();switch(n=i>=17?m:i>=12?p:i>=4?h:y,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return c.default.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):c.default.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):(0,u.default)(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):(0,u.default)(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):c.default.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):c.default.s(e,t)},S:function(e,t){return c.default.S(e,t)},X:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return b(i);case"XXXX":case"XX":return v(i);default:return v(i,":")}},x:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return b(i);case"xxxx":case"xx":return v(i);default:return v(i,":")}},O:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+g(i,":");default:return"GMT"+v(i,":")}},z:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+g(i,":");default:return"GMT"+v(i,":")}},t:function(e,t,r,n){var i=Math.floor((n._originalDate||e).getTime()/1e3);return(0,u.default)(i,t.length)},T:function(e,t,r,n){var i=(n._originalDate||e).getTime();return(0,u.default)(i,t.length)}},e.exports=t.default},15242:(e,t,r)=>{"use strict";r.d(t,{o:()=>i,x:()=>o}),r(55729);var n=r(36254);r(6029);let[i,o]=(0,n.F)("ModalBase component was not found in tree")},15811:(e,t,r)=>{"use strict";function n(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}r.d(t,{z:()=>n})},15862:(e,t,r)=>{"use strict";r.d(t,{nW:()=>m,xd:()=>p});var n=r(6029),i=r(55729),o=r(47766),a=r(27202);let s="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",u="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function c(e){return!(e<0)&&!(e>9)&&parseInt(e.toString(),10)===e}function l(e){if(!(e.primaryColor in e.colors))throw Error(s);if("object"==typeof e.primaryShade&&(!c(e.primaryShade.dark)||!c(e.primaryShade.light))||"number"==typeof e.primaryShade&&!c(e.primaryShade))throw Error(u)}function f(e,t){if(!t)return l(e),e;let r=(0,a.$)(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(r.headings.fontFamily=t.fontFamily),l(r),r}let d=(0,i.createContext)(null),h=()=>(0,i.useContext)(d)||o.S;function p(){let e=(0,i.useContext)(d);if(!e)throw Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function m({theme:e,children:t,inherit:r=!0}){let a=h(),s=(0,i.useMemo)(()=>f(r?a:o.S,e),[e,a,r]);return(0,n.jsx)(d.Provider,{value:s,children:t})}m.displayName="@mantine/core/MantineThemeProvider"},16162:function(e,t,r){var n=r(29143);!function(t,r){e.exports=r()}(0,function(){"use strict";let e;var t,i,o="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==r.g?r.g:"u">typeof self?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){if(this instanceof e){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(t,r))}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var u={},c={},l=function(e,t){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function f(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var d=function(){return(d=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function p(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function m(e,t){return function(r,n){t(r,n,e)}}function y(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function g(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function b(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function E(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function w(){for(var e=[],t=0;t1||s(e,t)})})}function s(e,t){try{!function(e){e.value instanceof A?Promise.resolve(e.value.v).then(u,c):l(o[0][2],e)}(i[e](t))}catch(e){l(o[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function M(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:A(e[n](t)),done:!1}:i?i(t):t}:i}}function R(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=S(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function N(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&v(t,e,r);return I(t,e),t}function P(e){return e&&e.__esModule?e:{default:e}}function k(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function D(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function L(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function j(e,t,r){if(null!=t){var n;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var U="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function B(e){function t(t){e.error=e.hasError?new U(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,function(e){return t(e),r()})}catch(e){t(e)}}if(e.hasError)throw e.error}()}var F={__extends:f,__assign:d,__rest:h,__decorate:p,__param:m,__metadata:y,__awaiter:g,__generator:b,__createBinding:v,__exportStar:_,__values:S,__read:E,__spread:w,__spreadArrays:T,__spreadArray:x,__await:A,__asyncGenerator:O,__asyncDelegator:M,__asyncValues:R,__makeTemplateObject:C,__importStar:N,__importDefault:P,__classPrivateFieldGet:k,__classPrivateFieldSet:D,__classPrivateFieldIn:L,__addDisposableResource:j,__disposeResources:B},z=s(Object.freeze({__proto__:null,__addDisposableResource:j,get __assign(){return d},__asyncDelegator:M,__asyncGenerator:O,__asyncValues:R,__await:A,__awaiter:g,__classPrivateFieldGet:k,__classPrivateFieldIn:L,__classPrivateFieldSet:D,__createBinding:v,__decorate:p,__disposeResources:B,__esDecorate:function(e,t,r,n,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,u=n.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),d=!1,h=r.length-1;h>=0;h--){var p={};for(var m in n)p[m]="access"===m?{}:n[m];for(var m in n.access)p.access[m]=n.access[m];p.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var y=(0,r[h])("accessor"===u?{get:f.get,set:f.set}:f[c],p);if("accessor"===u){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(s=a(y.get))&&(f.get=s),(s=a(y.set))&&(f.set=s),(s=a(y.init))&&i.unshift(s)}else(s=a(y))&&("field"===u?i.unshift(s):f[c]=s)}l&&Object.defineProperty(l,n.name,f),d=!0},__exportStar:_,__extends:f,__generator:b,__importDefault:P,__importStar:N,__makeTemplateObject:C,__metadata:y,__param:m,__propKey:function(e){return"symbol"==typeof e?e:"".concat(e)},__read:E,__rest:h,__runInitializers:function(e,t,r){for(var n=arguments.length>2,i=0;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},ee=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},ei=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=n?i.bind(t):function(){}}return eJ.ALL&&(e=J.ALL),t=t||{},{error:r("error",J.ERROR),warn:r("warn",J.WARN),info:r("info",J.INFO),debug:r("debug",J.DEBUG),verbose:r("verbose",J.VERBOSE)}}(null!=(i=r.logLevel)?i:J.INFO,e);if(s&&!r.suppressOverrideMessage){var c=null!=(o=Error().stack)?o:"";s.warn("Current logger will be overwritten from "+c),u.warn("Current logger will overwrite one already registered from "+c)}return Z("diag",u,t,!0)},t.disable=function(){X("diag",t)},t.createComponentLogger=function(e){return new et(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),ea=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},es=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},eu=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=ea(e,2);return[t[0],t[1]]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],i=0;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},eB=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},e$=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i512||(this._internalState=e.split(",").reverse().reduce(function(e,t){var r=t.trim(),n=r.indexOf("=");if(-1!==n){var i=r.slice(0,n),o=r.slice(n+1,t.length);(function(e){return tc.test(e)})(i)&&function(e){return tl.test(e)&&!tf.test(e)}(o)&&e.set(i,o)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),th=eq.getInstance(),tp=eo.instance(),tm=new(function(){function e(){}return e.prototype.getMeter=function(e,t,r){return eM},e}()),ty="metrics",tg=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(e){return Z(ty,e,eo.instance())},e.prototype.getMeterProvider=function(){return K(ty)||tm},e.prototype.getMeter=function(e,t,r){return this.getMeterProvider().getMeter(e,t,r)},e.prototype.disable=function(){X(ty,eo.instance())},e})().getInstance(),tb=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}(),tv=eh("OpenTelemetry Baggage Key");function t_(e){return e.getValue(tv)||void 0}function tS(){return t_(eq.getInstance().active())}function tE(e,t){return e.setValue(tv,t)}function tw(e){return e.deleteValue(tv)}var tT,tx="propagation",tA=new tb,tO=(function(){function e(){this.createBaggage=ef,this.getBaggage=t_,this.getActiveBaggage=tS,this.setBaggage=tE,this.deleteBaggage=tw}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return Z(tx,e,eo.instance())},e.prototype.inject=function(e,t,r){return void 0===r&&(r=ej),this._getGlobalPropagator().inject(e,t,r)},e.prototype.extract=function(e,t,r){return void 0===r&&(r=eL),this._getGlobalPropagator().extract(e,t,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){X(tx,eo.instance())},e.prototype._getGlobalPropagator=function(){return K(tx)||tA},e})().getInstance(),tM="trace",tR=(function(){function e(){this._proxyTracerProvider=new ts,this.wrapSpanContext=e9,this.isSpanContextValid=e8,this.deleteSpan=e0,this.getSpan=eX,this.getActiveSpan=eJ,this.getSpanContext=e2,this.setSpan=eQ,this.setSpanContext=e1}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=Z(tM,this._proxyTracerProvider,eo.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return K(tM)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){X(tM,eo.instance()),this._proxyTracerProvider=new ts},e})().getInstance(),tC={context:th,diag:tp,metrics:tg,propagation:tO,trace:tR},tI=s(Object.freeze({__proto__:null,DiagConsoleLogger:eg,get DiagLogLevel(){return J},INVALID_SPANID:eH,INVALID_SPAN_CONTEXT:eG,INVALID_TRACEID:eW,ProxyTracer:to,ProxyTracerProvider:ts,ROOT_CONTEXT:em,get SamplingDecision(){return e7},get SpanKind(){return te},get SpanStatusCode(){return tt},get TraceFlags(){return eD},get ValueType(){return ep},baggageEntryMetadataFromString:ed,context:th,createContextKey:eh,createNoopMeter:function(){return eM},createTraceState:function(e){return new td(e)},default:tC,defaultTextMapGetter:eL,defaultTextMapSetter:ej,diag:tp,isSpanContextValid:e8,isValidSpanId:e5,isValidTraceId:e4,metrics:tg,propagation:tO,trace:tR})),tN={};function tP(e){for(var t={},r=e.length,n=0;n",license:"Apache-2.0",version:"0.1.0",homepage:"https://www.hyperdx.io",repository:{type:"git",url:"https://github.com/hyperdxio/hyperdx-js.git"},publishConfig:{access:"public"},files:["build/*"],main:"build/src/index.js",scripts:{clean:"rimraf coverage build tmp",prebuild:"npm run clean",build:"tsc -p tsconfig.release.json",postbuild:"npm run build:types","build:types":"tsc -d -p tsconfig.release.json --declarationMap --emitDeclarationOnly","build:watch":"tsc -w -p tsconfig.json",lint:"eslint . --ext .ts --ext .mts","ci:lint":"yarn lint && yarn tsc --noEmit",prettier:"prettier --config .prettierrc --write ."},dependencies:{"@opentelemetry/core":"^1.24.1","@opentelemetry/instrumentation":"^0.51.1","@opentelemetry/semantic-conventions":"^1.24.1","json-stringify-safe":"^5.0.1",shimmer:"^1.2.1",tslib:"^2.5.3"},devDependencies:{"@opentelemetry/api":"^1.8.0","@sentry/node":"7.x","@sentry/types-v7":"npm:@sentry/types@7.x","@sentry/types-v8":"npm:@sentry/types@8.x"},peerDependencies:{"@opentelemetry/api":"^1.3.0"},keywords:["sentry","exception","instrumentation","nodejs","opentelemetry","tracing"]},d2={},d6={exports:{}};!function(e,t){function r(e,t){var r=[],n=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"}),function(i,o){if(r.length>0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?n.splice(a,1/0,i):n.push(i),~r.indexOf(o)&&(o=t.call(this,i,o))}else r.push(o);return null==e?o:e.call(this,i,o)}}(e.exports=function(e,t,n,i){return JSON.stringify(e,r(t,i),n)}).getSerialize=r}(d6);var d3,d4,d5=d6.exports,d8=a(d5);function d9(){return d4||(d4=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getEventProcessor=e.getSpanNameFromEvent=e.isSentryEventAnException=e.extractSpanEventsFromException=e.extractSemAttrsFromEvent=e.SEMATTRS_SENTRY_VERSION=e.SEMATTRS_EXCEPTION_THREAD_ID=e.SEMATTRS_EXCEPTION_TAGS=e.SEMATTRS_EXCEPTION_PARSED_STACKTRACE=e.SEMATTRS_EXCEPTION_MODULES=e.SEMATTRS_EXCEPTION_MODULE=e.SEMATTRS_EXCEPTION_MECHANISM=void 0;let t=z.__importStar(tI),r=(tT||(tT=1,Object.defineProperty(tN,"__esModule",{value:!0}),tN.ExceptionEventName=void 0,tN.ExceptionEventName="exception"),tN),n=d0,i=d1,o=function(){if(d3)return d2;d3=1,Object.defineProperty(d2,"__esModule",{value:!0}),d2.jsonToString=void 0;let e=tI,t=z.__importDefault(d5);return d2.jsonToString=r=>{try{return JSON.stringify(r)}catch(n){return e.diag.error("Failed to stringify json",n),(0,t.default)(r)}},d2}(),a=t.default.trace.getTracer(i.name,i.version);e.SEMATTRS_EXCEPTION_MECHANISM="exception.mechanism",e.SEMATTRS_EXCEPTION_MODULE="exception.module",e.SEMATTRS_EXCEPTION_MODULES="exception.modules",e.SEMATTRS_EXCEPTION_PARSED_STACKTRACE="exception.parsed_stacktrace",e.SEMATTRS_EXCEPTION_TAGS="exception.tags",e.SEMATTRS_EXCEPTION_THREAD_ID="exception.thread_id",e.SEMATTRS_SENTRY_VERSION="sentry.version",e.extractSemAttrsFromEvent=(t,r,i)=>{var a,s,u,c,l,f;return{...i&&{[e.SEMATTRS_SENTRY_VERSION]:i},...t.modules&&{[e.SEMATTRS_EXCEPTION_MODULES]:(0,o.jsonToString)(t.modules)},[e.SEMATTRS_EXCEPTION_TAGS]:(0,o.jsonToString)({culture:null==(a=t.contexts)?void 0:a.culture,dist:t.dist,environment:t.environment,mechanism:r.mechanism,release:t.release}),...(null==(s=t.contexts)?void 0:s.app)&&{"app.build_type":t.contexts.app.build_type,"app.id":t.contexts.app.app_identifier,"app.memory":t.contexts.app.app_memory,"app.name":t.contexts.app.app_name,"app.start_time":t.contexts.app.app_start_time,"app.version":t.contexts.app.app_version},...(null==(u=t.contexts)?void 0:u.response)&&{[n.SEMATTRS_HTTP_STATUS_CODE]:t.contexts.response.status_code,[n.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH]:t.contexts.response.body_size,...(t.contexts.response.headers&&Object.entries(t.contexts.response.headers).reduce((e,[t,r])=>(e[`http.response.header.${t}`]=r,e)),{})},...(null==(c=t.contexts)?void 0:c.cloud_resource)&&{"cloud.provider":t.contexts.cloud_resource["cloud.provider"],"cloud.account.id":t.contexts.cloud_resource["cloud.account.id"],"cloud.region":t.contexts.cloud_resource["cloud.region"],"cloud.availability_zone":t.contexts.cloud_resource["cloud.availability_zone"],"cloud.platform":t.contexts.cloud_resource["cloud.platform"],"host.id":t.contexts.cloud_resource["host.id"],"host.type":t.contexts.cloud_resource["host.type"]},...(null==(l=t.contexts)?void 0:l.os)&&{"os.build_id":t.contexts.os.build,"os.kernel_version":t.contexts.os.kernel_version,"os.type":t.contexts.os.name,"os.version":t.contexts.os.version},...(null==(f=t.contexts)?void 0:f.device)&&{"device.id":t.contexts.device.device_unique_identifier,"device.manufacturer":t.contexts.device.manufacturer,"device.model.identifier":t.contexts.device.model_id,"device.model.name":t.contexts.device.model,"device.type":t.contexts.device.device_type,"device.battery_level":t.contexts.device.battery_level,"device.battery_status":t.contexts.device.battery_status,"device.orientation":t.contexts.device.orientation,"device.brand":t.contexts.device.brand,"device.sreen_resolution":t.contexts.device.screen_resolution,"device.screen_height_pixels":t.contexts.device.screen_height_pixels,"device.screen_width_pixels":t.contexts.device.screen_width_pixels,"device.screen_density":t.contexts.device.screen_density,"device.screen_dpi":t.contexts.device.screen_dpi,"device.online":t.contexts.device.online,"device.charging":t.contexts.device.charging,"device.supports_vibration":t.contexts.device.supports_vibration,"device.supports_accelerometer":t.contexts.device.supports_accelerometer,"device.supports_gyroscope":t.contexts.device.supports_gyroscope,"device.supports_audio":t.contexts.device.supports_audio,"device.supports_location_service":t.contexts.device.supports_location_service,"device.boot_time":t.contexts.device.boot_time,"device.low_memory":t.contexts.device.low_memory,"device.simulator":t.contexts.device.simulator,"device.memory_size":t.contexts.device.memory_size,"device.free_memory":t.contexts.device.free_memory,"device.usable_memory":t.contexts.device.usable_memory,"device.storage_size":t.contexts.device.storage_size,"device.free_storage":t.contexts.device.free_storage,"device.external_storage_size":t.contexts.device.external_storage_size,"device.external_free_storage":t.contexts.device.external_free_storage,"host.cpu.model.name":t.contexts.device.cpu_description,"host.cpu.count":t.contexts.device.processor_count,"host.cpu.frequency":t.contexts.device.processor_frequency},...t.server_name&&{"host.name":t.server_name}}},e.extractSpanEventsFromException=t=>({[n.SEMATTRS_EXCEPTION_MESSAGE]:t.value,[e.SEMATTRS_EXCEPTION_PARSED_STACKTRACE]:(0,o.jsonToString)(t.stacktrace),[n.SEMATTRS_EXCEPTION_TYPE]:t.type,...t.mechanism&&{[e.SEMATTRS_EXCEPTION_MECHANISM]:(0,o.jsonToString)(t.mechanism)},...t.module&&{[e.SEMATTRS_EXCEPTION_MODULE]:t.module},...t.thread_id&&{[e.SEMATTRS_EXCEPTION_THREAD_ID]:t.thread_id}}),e.isSentryEventAnException=e=>{var t,r;return(null==(r=null==(t=e.exception)?void 0:t.values)?void 0:r.length)>0},e.getSpanNameFromEvent=e=>{var t;return e.message?e.message:[null==(t=e.exception)?void 0:t.values[0].type,e.transaction].join(" ")},e.getEventProcessor=(n,i)=>(o,s,u,c)=>{try{if(t.diag.debug("Received Sentry event",o),(0,e.isSentryEventAnException)(o)){let l=n;null==l&&(l=a,t.diag.debug("Using default tracer")),(({customAttributes:n,event:i,hint:o,sentryVersion:a,span:s,spanStatus:u,tracer:c})=>{var l,f;let d=s,h=!1,p=1e3*i.timestamp,m=(0,e.extractSemAttrsFromEvent)(i,o,a);for(let o of(null==d&&(h=!0,d=c.startSpan((0,e.getSpanNameFromEvent)(i),{attributes:{...n,...m},startTime:p,kind:t.SpanKind.INTERNAL})),d.setStatus({code:u}),null!=(f=null==(l=i.exception)?void 0:l.values)?f:[]))d.addEvent(r.ExceptionEventName,(0,e.extractSpanEventsFromException)(o));h&&d.end(p)})({customAttributes:c,event:o,hint:s,sentryVersion:i,span:u,spanStatus:t.SpanStatusCode.ERROR,tracer:l})}}catch(e){t.diag.error("Error processing event",e)}return o}}($)),$}var d7={},he=function(){function e(){}return e.prototype.emit=function(e){},e}(),ht=new(function(){function e(){}return e.prototype.getLogger=function(e,t,r){return new he},e}()),hr="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{},hn=Symbol.for("io.opentelemetry.js.api.logs"),hi=hr,ho=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(e){return hi[hn]?this.getLoggerProvider():(hi[hn]=function(e,t,r){return function(e){return 1===e?t:r}}(0,e,ht),e)},e.prototype.getLoggerProvider=function(){var e,t;return null!=(t=null==(e=hi[hn])?void 0:e.call(hi,1))?t:ht},e.prototype.getLogger=function(e,t,r){return this.getLoggerProvider().getLogger(e,t,r)},e.prototype.disable=function(){delete hi[hn]},e})().getInstance();function ha(e){void 0===e&&(e=[]);for(var t=[],r=0,n=e.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]({name:"HyperDX",setupOnce(){},setup(e){var r;if(!e.on)return;let n=e.getSdkMetadata(),i=(0,t.getEventProcessor)(void 0,null==(r=n.sdk)?void 0:r.version);e.on("beforeSendEvent",(e,t)=>{i(e,t)})}}),e.hyperdxIntegration=e._hyperdxIntegration}(hA)),hA);class i extends t.InstrumentationBase{constructor(e={}){super(r.name,r.version,e)}setConfig(e={}){this._config=Object.assign({},e)}getConfig(){return this._config}init(){return[new t.InstrumentationNodeModuleDefinition("@sentry/node",[">=7.30.0 <9"],t=>(e.diag.debug(`Detected Sentry installed with SDK version: ${t.SDK_VERSION}`),this._wrap(t,"init",r=>(...i)=>{let o=r.apply(this,i);try{t.addIntegration instanceof Function?(t.addIntegration((0,n.hyperdxIntegration)()),e.diag.debug("Added HyperDX Sentry integration")):e.diag.error("Sentry SDK does not support addIntegration method")}catch(t){e.diag.error("Error adding HyperDX Sentry integration",t)}return o}),t),e=>{})]}}return d7.SentryNodeInstrumentation=i,d7}var hM,hR={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});let t=z;t.__exportStar(d9(),e),t.__exportStar(hO(),e),t.__exportStar((hM||(hM=1,Object.defineProperty(hR,"__esModule",{value:!0})),hR),e)}(c);var hC={},hI={},hN={},hP={},hk={};Object.defineProperty(hk,"__esModule",{value:!0});let hD=Object.prototype.toString;function hL(e,t){return hD.call(e)===`[object ${t}]`}function hj(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function hU(e){return hL(e,"Object")}function hB(e,t){try{return e instanceof t}catch(e){return!1}}hk.isDOMError=function(e){return hL(e,"DOMError")},hk.isDOMException=function(e){return hL(e,"DOMException")},hk.isElement=function(e){return"u">typeof Element&&hB(e,Element)},hk.isError=function(e){switch(hD.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return hB(e,Error)}},hk.isErrorEvent=function(e){return hL(e,"ErrorEvent")},hk.isEvent=function(e){return"u">typeof Event&&hB(e,Event)},hk.isInstanceOf=hB,hk.isParameterizedString=hj,hk.isPlainObject=hU,hk.isPrimitive=function(e){return null===e||hj(e)||"object"!=typeof e&&"function"!=typeof e},hk.isRegExp=function(e){return hL(e,"RegExp")},hk.isString=function(e){return hL(e,"String")},hk.isSyntheticEvent=function(e){return hU(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e},hk.isThenable=function(e){return!!(e&&e.then&&"function"==typeof e.then)},hk.isVueViewModel=function(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)};var hF={};Object.defineProperty(hF,"__esModule",{value:!0});let hz=hk;function h$(e,t,r=!1){return!!hz.isString(e)&&(hz.isRegExp(t)?t.test(e):!!hz.isString(t)&&(r?e===t:e.includes(t)))}hF.isMatchingPattern=h$,hF.safeJoin=function(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;tn&&(t=n);let i=Math.max(t-60,0);i<5&&(i=0);let o=Math.min(i+140,n);return o>n-5&&(o=n),o===n&&(i=Math.max(o-140,0)),r=r.slice(i,o),i>0&&(r=`'{snip} ${r}`),oh$(e,t,r))},hF.truncate=function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`},Object.defineProperty(hP,"__esModule",{value:!0});let hV=hk,hY=hF;function hq(e,t,r,n,i,o,a,s){if(o.length>=r+1)return o;let u=[...o];if(hV.isInstanceOf(n[i],Error)){hH(a,s);let o=e(t,n[i]),c=u.length;hW(o,i,c,s),u=hq(e,t,r,n[i],i,[o,...u],o,c)}return Array.isArray(n.errors)&&n.errors.forEach((n,o)=>{if(hV.isInstanceOf(n,Error)){hH(a,s);let c=e(t,n),l=u.length;hW(c,`errors[${o}]`,l,s),u=hq(e,t,r,n,i,[c,...u],c,l)}}),u}function hH(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function hW(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}hP.applyAggregateErrorsToEvent=function(e,t,r=250,n,i,o,a){var s,u;if(!(o.exception&&o.exception.values&&a&&hV.isInstanceOf(a.originalException,Error)))return;let c=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;c&&(o.exception.values=(s=hq(e,t,i,a.originalException,n,o.exception.values,c,0),u=r,s.map(e=>(e.value&&(e.value=hY.truncate(e.value,u)),e))))};var hG={},hZ={},hK={};Object.defineProperty(hK,"__esModule",{value:!0}),hK.SDK_VERSION="8.7.0",Object.defineProperty(hZ,"__esModule",{value:!0});let hX=hK,hJ=globalThis;hZ.GLOBAL_OBJ=hJ,hZ.getGlobalSingleton=function(e,t,r){let n=r||hJ,i=n.__SENTRY__=n.__SENTRY__||{},o=i[hX.SDK_VERSION]=i[hX.SDK_VERSION]||{};return o[e]||(o[e]=t())},Object.defineProperty(hG,"__esModule",{value:!0});let hQ=hk,h0=hZ.GLOBAL_OBJ;function h1(e,t){let r,n,i,o,a,s=e,u=[];if(!s||!s.tagName)return"";if(h0.HTMLElement&&s instanceof HTMLElement&&s.dataset){if(s.dataset.sentryComponent)return s.dataset.sentryComponent;if(s.dataset.sentryElement)return s.dataset.sentryElement}u.push(s.tagName.toLowerCase());let c=t&&t.length?t.filter(e=>s.getAttribute(e)).map(e=>[e,s.getAttribute(e)]):null;if(c&&c.length)c.forEach(e=>{u.push(`[${e[0]}="${e[1]}"]`)});else if(s.id&&u.push(`#${s.id}`),(r=s.className)&&hQ.isString(r))for(n=r.split(/\s+/),a=0;a";try{let r,n=e,i=5,o=[],a=0,s=0,u=" > ",c=u.length,l=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&a++1&&s+o.length*c+r.length>=f));)o.push(r),s+=r.length,n=n.parentNode;return o.reverse().join(u)}catch(e){return""}};var h2={},h6={};Object.defineProperty(h6,"__esModule",{value:!0}),h6.DEBUG_BUILD="u"{let n=h9[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}let pe=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return h4.DEBUG_BUILD?h8.forEach(r=>{t[r]=(...t)=>{e&&h7(()=>{h5.GLOBAL_OBJ.console[r](`Sentry Logger [${r}]:`,...t)})}}):h8.forEach(e=>{t[e]=()=>{}}),t}();h3.CONSOLE_LEVELS=h8,h3.consoleSandbox=h7,h3.logger=pe,h3.originalConsoleMethods=h9,Object.defineProperty(h2,"__esModule",{value:!0});let pt=h6,pr=h3,pn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function pi(e){let t=pn.exec(e);if(!t)return void pr.consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[r,n,i="",o,a="",s]=t.slice(1),u="",c=s,l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return po({host:o,pass:i,path:u,projectId:c,port:a,protocol:r,publicKey:n})}function po(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}h2.dsnFromString=pi,h2.dsnToString=function(e,t=!1){let{host:r,path:n,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${a}`},h2.makeDsn=function(e){let t="string"==typeof e?pi(e):po(e);if(t&&function(e){if(!pt.DEBUG_BUILD)return!0;let{port:t,projectId:r,protocol:n}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(pr.logger.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(r.match(/^\d+$/)?!function(e){return"http"===e||"https"===e}(n)?(pr.logger.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),1):t&&isNaN(parseInt(t,10))&&(pr.logger.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(pr.logger.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(t))return t};var pa={};Object.defineProperty(pa,"__esModule",{value:!0});class ps extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}pa.SentryError=ps;var pu={},pc={};Object.defineProperty(pc,"__esModule",{value:!0});let pl=hG,pf=h6,pd=hk,ph=h3,pp=hF;function pm(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){pf.DEBUG_BUILD&&ph.logger.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function py(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,pm(e,"__sentry_original__",t)}catch(e){}}function pg(e){if(pd.isError(e))return{message:e.message,name:e.name,stack:e.stack,...pv(e)};if(pd.isEvent(e)){let t={type:e.type,target:pb(e.target),currentTarget:pb(e.currentTarget),...pv(e)};return"u">typeof CustomEvent&&pd.isInstanceOf(e,CustomEvent)&&(t.detail=e.detail),t}return e}function pb(e){try{return pd.isElement(e)?pl.htmlTreeAsString(e):Object.prototype.toString.call(e)}catch(e){return""}}function pv(e){if("object"==typeof e&&null!==e){let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function p_(e,t){if(function(e){if(!pd.isPlainObject(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){let r=t.get(e);if(void 0!==r)return r;let n={};for(let r of(t.set(e,n),Object.keys(e)))void 0!==e[r]&&(n[r]=p_(e[r],t));return n}if(Array.isArray(e)){let r=t.get(e);if(void 0!==r)return r;let n=[];return t.set(e,n),e.forEach(e=>{n.push(p_(e,t))}),n}return e}pc.addNonEnumerableProperty=pm,pc.convertToPlainObject=pg,pc.dropUndefinedKeys=function(e){return p_(e,new Map)},pc.extractExceptionKeysForMessage=function(e,t=40){let r=Object.keys(pg(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return pp.truncate(r[0],t);for(let e=r.length;e>0;e--){let n=r.slice(0,e).join(", ");if(!(n.length>t))return e===r.length?n:pp.truncate(n,t)}return""},pc.fill=function(e,t,r){if(!(t in e))return;let n=e[t],i=r(n);"function"==typeof i&&py(i,n),e[t]=i},pc.getOriginalFunction=function(e){return e.__sentry_original__},pc.markFunctionWrapped=py,pc.objectify=function(e){let t;switch(!0){case null==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case pd.isPrimitive(e):t=new e.constructor(e);break;default:t=e}return t},pc.urlEncode=function(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")};var pS={},pE={};Object.defineProperty(pE,"__esModule",{value:!0});let pw=50,pT="?",px=/\(error: (.*)\)/,pA=/captureMessage|captureException/;function pO(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,n=0)=>{let i=[],o=e.split("\n");for(let e=r;e1024)continue;let a=px.test(r)?r.replace(px,"$1"):r;if(!a.match(/\S*Error: /)){for(let e of t){let t=e(a);if(t){i.push(t);break}}if(i.length>=pw+n)break}}return pM(i.slice(n))}}function pM(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),pA.test(t[t.length-1].function||"")&&(t.pop(),pA.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,pw).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||pT}))}let pR="";pE.UNKNOWN_FUNCTION=pT,pE.createStackParser=pO,pE.getFunctionName=function(e){try{return e&&"function"==typeof e&&e.name||pR}catch(e){return pR}},pE.stackParserFromStackParserOptions=function(e){return Array.isArray(e)?pO(...e):e},pE.stripSentryFramesAndReverse=pM,Object.defineProperty(pS,"__esModule",{value:!0});let pC=h6,pI=h3,pN=pE,pP={},pk={};pS.addHandler=function(e,t){pP[e]=pP[e]||[],pP[e].push(t)},pS.maybeInstrument=function(e,t){pk[e]||(t(),pk[e]=!0)},pS.resetInstrumentationHandlers=function(){Object.keys(pP).forEach(e=>{pP[e]=void 0})},pS.triggerHandlers=function(e,t){let r=e&&pP[e];if(r)for(let n of r)try{n(t)}catch(t){pC.DEBUG_BUILD&&pI.logger.error(`Error while triggering instrumentation handler. +Type: ${e} +Name: ${pN.getFunctionName(n)} +Error:`,t)}},Object.defineProperty(pu,"__esModule",{value:!0});let pD=h3,pL=pc,pj=hZ,pU=pS;function pB(){"console"in pj.GLOBAL_OBJ&&pD.CONSOLE_LEVELS.forEach(function(e){e in pj.GLOBAL_OBJ.console&&pL.fill(pj.GLOBAL_OBJ.console,e,function(t){return pD.originalConsoleMethods[e]=t,function(...t){let r={args:t,level:e};pU.triggerHandlers("console",r);let n=pD.originalConsoleMethods[e];n&&n.apply(pj.GLOBAL_OBJ.console,t)}})})}pu.addConsoleInstrumentationHandler=function(e){let t="console";pU.addHandler(t,e),pU.maybeInstrument(t,pB)};var pF={},pz={};Object.defineProperty(pz,"__esModule",{value:!0});let p$=h6,pV=h3,pY=hZ.GLOBAL_OBJ;function pq(){if(!("fetch"in pY))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function pH(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}pz.isNativeFunction=pH,pz.supportsDOMError=function(){try{return new DOMError(""),!0}catch(e){return!1}},pz.supportsDOMException=function(){try{return new DOMException(""),!0}catch(e){return!1}},pz.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch(e){return!1}},pz.supportsFetch=pq,pz.supportsNativeFetch=function(){if("string"==typeof EdgeRuntime)return!0;if(!pq())return!1;if(pH(pY.fetch))return!0;let e=!1,t=pY.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=pH(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){p$.DEBUG_BUILD&&pV.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e},pz.supportsReferrerPolicy=function(){if(!pq())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}},pz.supportsReportingObserver=function(){return"ReportingObserver"in pY};var pW={};Object.defineProperty(pW,"__esModule",{value:!0});let pG=hZ,pZ=1e3;function pK(){return Date.now()/pZ}let pX=function(){let{performance:e}=pG.GLOBAL_OBJ;if(!e||!e.now)return pK;let t=Date.now()-e.now(),r=null==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/pZ}();pW._browserPerformanceTimeOriginMode=void 0;let pJ=(()=>{let{performance:e}=pG.GLOBAL_OBJ;if(!e||!e.now)return void(pW._browserPerformanceTimeOriginMode="none");let t=36e5,r=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,o=i{let t={...i,endTimestamp:1e3*p1.timestampInSeconds(),response:e};return p6.triggerHandlers("fetch",t),e},e=>{let t={...i,endTimestamp:1e3*p1.timestampInSeconds(),error:e};throw p6.triggerHandlers("fetch",t),e})}})}function p4(e,t){return!!e&&"object"==typeof e&&!!e[t]}function p5(e){return"string"==typeof e?e:e?p4(e,"url")?e.url:e.toString?e.toString():"":""}function p8(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:p5(t),method:p4(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:p5(t),method:p4(t,"method")?String(t.method).toUpperCase():"GET"}}pF.addFetchInstrumentationHandler=function(e){let t="fetch";p6.addHandler(t,e),p6.maybeInstrument(t,p3)},pF.parseFetchArgs=p8;var p9={};Object.defineProperty(p9,"__esModule",{value:!0});let p7=hZ,me=pS,mt=null;function mr(){mt=p7.GLOBAL_OBJ.onerror,p7.GLOBAL_OBJ.onerror=function(e,t,r,n,i){let o={column:n,error:i,line:r,msg:e,url:t};return me.triggerHandlers("error",o),!(!mt||mt.__SENTRY_LOADER__)&&mt.apply(this,arguments)},p7.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}p9.addGlobalErrorInstrumentationHandler=function(e){let t="error";me.addHandler(t,e),me.maybeInstrument(t,mr)};var mn={};Object.defineProperty(mn,"__esModule",{value:!0});let mi=hZ,mo=pS,ma=null;function ms(){ma=mi.GLOBAL_OBJ.onunhandledrejection,mi.GLOBAL_OBJ.onunhandledrejection=function(e){let t=e;return mo.triggerHandlers("unhandledrejection",t),!(ma&&!ma.__SENTRY_LOADER__)||ma.apply(this,arguments)},mi.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}mn.addGlobalUnhandledRejectionInstrumentationHandler=function(e){let t="unhandledrejection";mo.addHandler(t,e),mo.maybeInstrument(t,ms)};var mu={},mc={exports:{}},ml={};Object.defineProperty(ml,"__esModule",{value:!0}),ml.getSDKSource=function(){return"npm"},ml.isBrowserBundle=function(){return"u">typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let r=ml;function i(e,t){return e.require(t)}t.dynamicRequire=i,t.isNodeEnv=function(){return!r.isBrowserBundle()&&"[object process]"===Object.prototype.toString.call(void 0!==n?n:0)},t.loadModule=function(t){let r;try{r=i(e,t)}catch(e){}try{let{cwd:n}=i(e,"process");r=i(e,`${n()}/node_modules/${t}`)}catch(e){}return r}}(mc,mc.exports);var mf=mc.exports;Object.defineProperty(mu,"__esModule",{value:!0});let md=mf,mh=hZ;mu.isBrowser=function(){return"u">typeof window&&(!md.isNodeEnv()||void 0!==mh.GLOBAL_OBJ.process&&"renderer"===mh.GLOBAL_OBJ.process.type)};var mp={};Object.defineProperty(mp,"__esModule",{value:!0}),mp.memoBuilder=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;emg.snipLine(e,0)),t.context_line=mg.snipLine(e[Math.min(n-1,i)],t.colno||0),t.post_context=e.slice(Math.min(i+1,n),i+1+r).map(e=>mg.snipLine(e,0))},mm.addExceptionMechanism=function(e,t){let r=mv(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n&&n.data,...t.data};r.mechanism.data=e}},mm.addExceptionTypeValue=function(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")},mm.arrayify=function(e){return Array.isArray(e)?e:[e]},mm.checkOrSetAlreadyCaught=function(e){if(e&&e.__sentry_captured__)return!0;try{my.addNonEnumerableProperty(e,"__sentry_captured__",!0)}catch(e){}return!1},mm.getEventDescription=function(e){let{message:t,event_id:r}=e;if(t)return t;let n=mv(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""},mm.parseSemver=function(e){let t=e.match(m_)||[],r=parseInt(t[1],10),n=parseInt(t[2],10),i=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(i)?void 0:i,prerelease:t[4]}},mm.uuid4=function(){let e=mb.GLOBAL_OBJ,t=e.crypto||e.msCrypto,r=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&r())>>e/4).toString(16))};var mS={};Object.defineProperty(mS,"__esModule",{value:!0});let mE=hk,mw=mp,mT=pc,mx=pE;function mA(e,t=100,r=1/0){try{return mO("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function mO(e,t,r=1/0,n=1/0,i=mw.memoBuilder()){let[a,s]=i;if(null==t||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;let u=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==o&&t===o)return"[Global]";if("u">typeof window&&t===window)return"[Window]";if("u">typeof document&&t===document)return"[Document]";if(mE.isVueViewModel(t))return"[VueViewModel]";if(mE.isSyntheticEvent(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${mx.getFunctionName(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!u.startsWith("[object "))return u;if(t.__sentry_skip_normalization__)return t;let c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===c)return u.replace("object ","");if(a(t))return"[Circular ~]";let l=t;if(l&&"function"==typeof l.toJSON)try{return mO("",l.toJSON(),c-1,n,i)}catch(e){}let f=Array.isArray(t)?[]:{},d=0,h=mT.convertToPlainObject(t);for(let e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(d>=n){f[e]="[MaxProperties ~]";break}let t=h[e];f[e]=mO(e,t,c-1,n,i),d++}return s(t),f}mS.normalize=mA,mS.normalizeToSize=function e(t,r=3,n=102400){let i=mA(t,r);return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?e(t,r-1,n):i},mS.normalizeUrlToBase=function(e,t){let r=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),n=e;try{n=decodeURI(e)}catch(e){}return n.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(RegExp(`(file://)?/*${r}/*`,"ig"),"app:///")};var mM={};function mR(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;)e.unshift("..");return e}Object.defineProperty(mM,"__esModule",{value:!0});let mC=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function mI(e){let t=e.length>1024?`${e.slice(-1024)}`:e,r=mC.exec(t);return r?r.slice(1):[]}function mN(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=mR(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function mP(e){let t=0;for(;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}function mk(e){let t=mD(e),r="/"===e.slice(-1),n=mR(e.split("/").filter(e=>!!e),!t).join("/");return n||t||(n="."),n&&r&&(n+="/"),(t?"/":"")+n}function mD(e){return"/"===e.charAt(0)}mM.basename=function(e,t){let r=mI(e)[2];return t&&r.slice(-1*t.length)===t&&(r=r.slice(0,r.length-t.length)),r},mM.dirname=function(e){let t=mI(e),r=t[0],n=t[1];return r||n?(n&&(n=n.slice(0,n.length-1)),r+n):"."},mM.isAbsolute=mD,mM.join=function(...e){return mk(e.join("/"))},mM.normalizePath=mk,mM.relative=function(e,t){e=mN(e).slice(1),t=mN(t).slice(1);let r=mP(e.split("/")),n=mP(t.split("/")),i=Math.min(r.length,n.length),o=i;for(let e=0;e{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new mB((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{i?r(n):t(n)})})}__init(){this._resolve=e=>{this._setResult(TN.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(TN.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===TN.PENDING&&(mU.isThenable(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===TN.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===TN.RESOLVED&&e[1](this._value),this._state===TN.REJECTED&&e[2](this._value),e[0]=!0)})}}}mj.SyncPromise=mB,mj.rejectedSyncPromise=function(e){return new mB((t,r)=>{r(e)})},mj.resolvedSyncPromise=function(e){return new mB(t=>{t(e)})},Object.defineProperty(mL,"__esModule",{value:!0});let mF=pa,mz=mj;mL.makePromiseBuffer=function(e){let t=[];function r(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(n){if(!(void 0===e||t.lengthr(i)).then(null,()=>r(i).then(null,()=>{})),i},drain:function(e){return new mz.SyncPromise((r,n)=>{let i=t.length;if(!i)return r(!0);let o=setTimeout(()=>{e&&e>0&&r(!1)},e);t.forEach(e=>{mz.resolvedSyncPromise(e).then(()=>{--i||(clearTimeout(o),r(!0))},n)})})}}};var m$={},mV={};Object.defineProperty(mV,"__esModule",{value:!0}),mV.parseCookie=function(e){let t={},r=0;for(;re.length>0&&","!==e).length},mY.getSanitizedUrlString=function(e){let{protocol:t,host:r,path:n}=e;return`${t?`${t}://`:""}${r&&r.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${n}`},mY.parseUrl=function(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}},mY.stripUrlQueryAndFragment=function(e){return e.split(/[\?#]/,1)[0]},Object.defineProperty(m$,"__esModule",{value:!0});let mq=mV,mH=h6,mW=hk,mG=h3,mZ=mS,mK=mY,mX={ip:!1,request:!0,transaction:!0,user:!0},mJ=["cookies","data","headers","method","query_string","url"],mQ=["id","username","email"];function m0(e,t={}){let r=e.method&&e.method.toUpperCase(),n="",i="url";t.customRoute||e.route?(n=t.customRoute||`${e.baseUrl||""}${e.route&&e.route.path}`,i="route"):(e.originalUrl||e.url)&&(n=mK.stripUrlQueryAndFragment(e.originalUrl||e.url||""));let o="";return t.method&&r&&(o+=r),t.method&&t.path&&(o+=" "),t.path&&n&&(o+=n),[o,i]}function m1(e,t){let{include:r=mJ}=t||{},n={},i=e.headers||{},o=e.method,a=i.host||e.hostname||e.host||"",s="https"===e.protocol||e.socket&&e.socket.encrypted?"https":"http",u=e.originalUrl||e.url||"",c=u.startsWith(s)?u:`${s}://${a}${u}`;return r.forEach(t=>{switch(t){case"headers":n.headers=i,r.includes("cookies")||delete n.headers.cookie;break;case"method":n.method=o;break;case"url":n.url=c;break;case"cookies":n.cookies=e.cookies||i.cookie&&mq.parseCookie(i.cookie)||{};break;case"query_string":n.query_string=function(e){let t=e.originalUrl||e.url||"";if(t){t.startsWith("/")&&(t=`http://dogs.are.great${t}`);try{let r=e.query||new URL(t).search.slice(1);return r.length?r:void 0}catch(e){return}}}(e);break;case"data":if("GET"===o||"HEAD"===o)break;void 0!==e.body&&(n.data=mW.isString(e.body)?e.body:JSON.stringify(mZ.normalize(e.body)));break;default:({}).hasOwnProperty.call(e,t)&&(n[t]=e[t])}}),n}function m2(e){let t={};try{e.forEach((e,r)=>{"string"==typeof e&&(t[r]=e)})}catch(e){mH.DEBUG_BUILD&&mG.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return t}m$.DEFAULT_USER_INCLUDES=mQ,m$.addRequestDataToEvent=function(e,t,r){let n={...mX,...r&&r.include};if(n.request){let r=Array.isArray(n.request)?m1(t,{include:n.request}):m1(t);e.request={...e.request,...r}}if(n.user){let r=t.user&&mW.isPlainObject(t.user)?function(e,t){let r={};return(Array.isArray(t)?t:mQ).forEach(t=>{e&&t in e&&(r[t]=e[t])}),r}(t.user,n.user):{};Object.keys(r).length&&(e.user={...e.user,...r})}if(n.ip){let r=t.ip||t.socket&&t.socket.remoteAddress;r&&(e.user={...e.user,ip_address:r})}return n.transaction&&!e.transaction&&"transaction"===e.type&&(e.transaction=function(e,t){switch(t){case"path":return m0(e,{path:!0})[0];case"handler":return e.route&&e.route.stack&&e.route.stack[0]&&e.route.stack[0].name||"";default:return m0(e,{path:!0,method:!0,customRoute:e._reconstructedRoute?e._reconstructedRoute:void 0})[0]}}(t,n.transaction)),e},m$.extractPathForTransaction=m0,m$.extractRequestData=m1,m$.winterCGHeadersToDict=m2,m$.winterCGRequestToRequestData=function(e){let t=m2(e.headers);return{method:e.method,url:e.url,headers:t}};var m6={};Object.defineProperty(m6,"__esModule",{value:!0});let m3=["fatal","error","warning","log","info","debug"];m6.severityLevelFromString=function(e){return"warn"===e?"warning":m3.includes(e)?e:"log"},m6.validSeverityLevels=m3;var m4={};Object.defineProperty(m4,"__esModule",{value:!0});let m5=pE;function m8(e,t=!1){return!(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==e&&!e.includes("node_modules/")}function m9(e){let t=/^\s*[-]{4,}$/,r=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return n=>{let i=n.match(r);if(i){let t,r,n,o,a;if(i[1]){let e=(n=i[1]).lastIndexOf(".");if("."===n[e-1]&&e--,e>0){t=n.slice(0,e),r=n.slice(e+1);let i=t.indexOf(".Module");i>0&&(n=n.slice(i+1),t=t.slice(0,i))}o=void 0}r&&(o=t,a=r),""===r&&(a=void 0,n=void 0),void 0===n&&(a=a||m5.UNKNOWN_FUNCTION,n=o?`${o}.${a}`:a);let s=i[2]&&i[2].startsWith("file://")?i[2].slice(7):i[2],u="native"===i[5];return s&&s.match(/\/[A-Z]:/)&&(s=s.slice(1)),s||!i[5]||u||(s=i[5]),{filename:s,module:e?e(s):void 0,function:n,lineno:parseInt(i[3],10)||void 0,colno:parseInt(i[4],10)||void 0,in_app:m8(s,u)}}if(n.match(t))return{filename:n}}}m4.filenameIsInApp=m8,m4.node=m9,m4.nodeStackLineParser=function(e){return[90,m9(e)]};var m7={},ye={};Object.defineProperty(ye,"__esModule",{value:!0});let yt=h6,yr=hk,yn=h3,yi="sentry-",yo=/^sentry-/,ya=8192;function ys(e){if(e&&(yr.isString(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let r=yu(t);for(let t of Object.keys(r))e[t]=r[t];return e},{}):yu(e)}function yu(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,r])=>(e[t]=r,e),{})}ye.BAGGAGE_HEADER_NAME="baggage",ye.MAX_BAGGAGE_STRING_LENGTH=ya,ye.SENTRY_BAGGAGE_KEY_PREFIX=yi,ye.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=yo,ye.baggageHeaderToDynamicSamplingContext=function(e){let t=ys(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.match(yo)&&(e[t.slice(7)]=r),e),{});return Object.keys(r).length>0?r:void 0},ye.dynamicSamplingContextToSentryBaggageHeader=function(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,r],n)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,o=0===n?i:`${e},${i}`;return o.length>ya?(yt.DEBUG_BUILD&&yn.logger.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},"")}(Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${yi}${t}`]=r),e),{}))},ye.parseBaggageHeader=ys,Object.defineProperty(m7,"__esModule",{value:!0});let yc=ye,yl=mm,yf=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function yd(e){let t;if(!e)return;let r=e.match(yf);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}m7.TRACEPARENT_REGEXP=yf,m7.extractTraceparentData=yd,m7.generateSentryTraceHeader=function(e=yl.uuid4(),t=yl.uuid4().substring(16),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`},m7.propagationContextFromHeaders=function(e,t){let r=yd(e),n=yc.baggageHeaderToDynamicSamplingContext(t),{traceId:i,parentSpanId:o,parentSampled:a}=r||{};return r?{traceId:i||yl.uuid4(),parentSpanId:o||yl.uuid4().substring(16),spanId:yl.uuid4().substring(16),sampled:a,dsc:n||{}}:{traceId:i||yl.uuid4(),spanId:yl.uuid4().substring(16)}};var yh={};Object.defineProperty(yh,"__esModule",{value:!0});let yp=h2,ym=mS,yy=pc,yg=hZ;function yb(e,t){for(let r of e[1])if(t(r,r[0].type))return!0;return!1}function yv(e){return yg.GLOBAL_OBJ.__SENTRY__&&yg.GLOBAL_OBJ.__SENTRY__.encodePolyfill?yg.GLOBAL_OBJ.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}let y_={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};yh.addItemToEnvelope=function(e,t){let[r,n]=e;return[r,[...n,t]]},yh.createAttachmentEnvelopeItem=function(e){let t="string"==typeof e.data?yv(e.data):e.data;return[yy.dropUndefinedKeys({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]},yh.createEnvelope=function(e,t=[]){return[e,t]},yh.createEventEnvelopeHeaders=function(e,t,r,n){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:yp.dsnToString(n)},...i&&{trace:yy.dropUndefinedKeys({...i})}}},yh.createSpanEnvelopeItem=function(e){return[{type:"span"},e]},yh.envelopeContainsItemType=function(e,t){return yb(e,(e,r)=>t.includes(r))},yh.envelopeItemTypeToDataCategory=function(e){return y_[e]},yh.forEachEnvelopeItem=yb,yh.getSdkMetadataForEnvelopeHeader=function(e){if(!e||!e.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}},yh.parseEnvelope=function(e){let t="string"==typeof e?yv(e):e;function r(e){let r=t.subarray(0,e);return t=t.subarray(e+1),r}function n(){var e;let n=t.indexOf(10);return n<0&&(n=t.length),JSON.parse((e=r(n),yg.GLOBAL_OBJ.__SENTRY__&&yg.GLOBAL_OBJ.__SENTRY__.decodePolyfill?yg.GLOBAL_OBJ.__SENTRY__.decodePolyfill(e):(new TextDecoder).decode(e)))}let i=n(),o=[];for(;t.length;){let e=n(),t="number"==typeof e.length?e.length:void 0;o.push([e,t?r(t):n()])}return[i,o]},yh.serializeEnvelope=function(e){let[t,r]=e,n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[yv(n),e]:n.push("string"==typeof e?yv(e):e)}for(let e of r){let[t,r]=e;if(i(` +${JSON.stringify(t)} +`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify(ym.normalize(r))}i(e)}}return"string"==typeof n?n:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(n)};var yS={};Object.defineProperty(yS,"__esModule",{value:!0});let yE=yh,yw=pW;yS.createClientReportEnvelope=function(e,t,r){let n=[{type:"client_report"},{timestamp:r||yw.dateTimestampInSeconds(),discarded_events:e}];return yE.createEnvelope(t?{dsn:t}:{},[n])};var yT={};Object.defineProperty(yT,"__esModule",{value:!0});let yx=6e4;function yA(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?yx:n-t}function yO(e,t){return e[t]||e.all||0}yT.DEFAULT_RETRY_AFTER=6e4,yT.disabledUntil=yO,yT.isRateLimited=function(e,t,r=Date.now()){return yO(e,t)>r},yT.parseRetryAfterHeader=yA,yT.updateRateLimits=function(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},o=r&&r["x-sentry-rate-limits"],a=r&&r["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,r,,,o]=e.split(":",5),a=parseInt(t,10),s=1e3*(isNaN(a)?60:a);if(r)for(let e of r.split(";"))"metric_bucket"===e&&o&&!o.split(";").includes("custom")||(i[e]=n+s);else i.all=n+s}else a?i.all=n+yA(a,n):429===t&&(i.all=n+6e4);return i};var yM={};Object.defineProperty(yM,"__esModule",{value:!0}),yM.makeFifoCache=function(e){let t=[],r={};return{add(n,i){for(;t.length>=e;){let e=t.shift();void 0!==e&&delete r[e]}r[n]&&this.delete(n),t.push(n),r[n]=i},clear(){r={},t=[]},get:e=>r[e],size:()=>t.length,delete(e){if(!r[e])return!1;delete r[e];for(let r=0;r{let e=i.getTimeMs();!1===o&&e>t+r&&(o=!0,a&&n()),e{i.reset()},enabled:e=>{a=e}}};var y$={};Object.defineProperty(y$,"__esModule",{value:!0}),y$.LRUMap=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}};var yV={},yY={};Object.defineProperty(yY,"__esModule",{value:!0}),yY._nullishCoalesce=function(e,t){return null!=e?e:t()},Object.defineProperty(yV,"__esModule",{value:!0});let yq=yY;yV._asyncNullishCoalesce=async function(e,t){return yq._nullishCoalesce(e,t)};var yH={};Object.defineProperty(yH,"__esModule",{value:!0}),yH._asyncOptionalChain=async function(e){let t,r=e[0],n=1;for(;nr.call(t,...e)),t=void 0)}return r};var yW={};Object.defineProperty(yW,"__esModule",{value:!0});let yG=yH;yW._asyncOptionalChainDelete=async function(e){let t=await yG._asyncOptionalChain(e);return null==t||t};var yZ={};Object.defineProperty(yZ,"__esModule",{value:!0}),yZ._optionalChain=function(e){let t,r=e[0],n=1;for(;nr.call(t,...e)),t=void 0)}return r};var yK={};Object.defineProperty(yK,"__esModule",{value:!0});let yX=yZ;yK._optionalChainDelete=function(e){let t=yX._optionalChain(e);return null==t||t};var yJ={};Object.defineProperty(yJ,"__esModule",{value:!0});let yQ=mm;yJ.generatePropagationContext=function(){return{traceId:yQ.uuid4(),spanId:yQ.uuid4().substring(16)}};var y0={};Object.defineProperty(y0,"__esModule",{value:!0}),y0.escapeStringForRegex=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};var y1={};Object.defineProperty(y1,"__esModule",{value:!0});let y2=hZ.GLOBAL_OBJ;y1.supportsHistory=function(){let e=y2.chrome,t=e&&e.app&&e.app.runtime,r="history"in y2&&!!y2.history.pushState&&!!y2.history.replaceState;return!t&&r},function(e){Object.defineProperty(e,"__esModule",{value:!0});let t=hG,r=h2,n=pa,i=hZ,o=pu,a=pF,s=p9,u=mn,c=pS,l=hk,f=mu,d=h3,h=mp,p=mm,m=mf,y=mS,g=pc,b=mM,v=mL,_=m$,S=m6,E=pE,w=m4,T=hF,x=pz,A=mj,O=pW,M=m7,R=ml,C=yh,I=yS,N=yT,P=ye,k=mY,D=yM,L=yR,j=yU,U=y$,B=yV,F=yH,z=yW,$=yY,V=yZ,Y=yK,q=yJ,H=hK,W=y0,G=y1;e.applyAggregateErrorsToEvent=hP.applyAggregateErrorsToEvent,e.getComponentName=t.getComponentName,e.getDomElement=t.getDomElement,e.getLocationHref=t.getLocationHref,e.htmlTreeAsString=t.htmlTreeAsString,e.dsnFromString=r.dsnFromString,e.dsnToString=r.dsnToString,e.makeDsn=r.makeDsn,e.SentryError=n.SentryError,e.GLOBAL_OBJ=i.GLOBAL_OBJ,e.getGlobalSingleton=i.getGlobalSingleton,e.addConsoleInstrumentationHandler=o.addConsoleInstrumentationHandler,e.addFetchInstrumentationHandler=a.addFetchInstrumentationHandler,e.addGlobalErrorInstrumentationHandler=s.addGlobalErrorInstrumentationHandler,e.addGlobalUnhandledRejectionInstrumentationHandler=u.addGlobalUnhandledRejectionInstrumentationHandler,e.addHandler=c.addHandler,e.maybeInstrument=c.maybeInstrument,e.resetInstrumentationHandlers=c.resetInstrumentationHandlers,e.triggerHandlers=c.triggerHandlers,e.isDOMError=l.isDOMError,e.isDOMException=l.isDOMException,e.isElement=l.isElement,e.isError=l.isError,e.isErrorEvent=l.isErrorEvent,e.isEvent=l.isEvent,e.isInstanceOf=l.isInstanceOf,e.isParameterizedString=l.isParameterizedString,e.isPlainObject=l.isPlainObject,e.isPrimitive=l.isPrimitive,e.isRegExp=l.isRegExp,e.isString=l.isString,e.isSyntheticEvent=l.isSyntheticEvent,e.isThenable=l.isThenable,e.isVueViewModel=l.isVueViewModel,e.isBrowser=f.isBrowser,e.CONSOLE_LEVELS=d.CONSOLE_LEVELS,e.consoleSandbox=d.consoleSandbox,e.logger=d.logger,e.originalConsoleMethods=d.originalConsoleMethods,e.memoBuilder=h.memoBuilder,e.addContextToFrame=p.addContextToFrame,e.addExceptionMechanism=p.addExceptionMechanism,e.addExceptionTypeValue=p.addExceptionTypeValue,e.arrayify=p.arrayify,e.checkOrSetAlreadyCaught=p.checkOrSetAlreadyCaught,e.getEventDescription=p.getEventDescription,e.parseSemver=p.parseSemver,e.uuid4=p.uuid4,e.dynamicRequire=m.dynamicRequire,e.isNodeEnv=m.isNodeEnv,e.loadModule=m.loadModule,e.normalize=y.normalize,e.normalizeToSize=y.normalizeToSize,e.normalizeUrlToBase=y.normalizeUrlToBase,e.addNonEnumerableProperty=g.addNonEnumerableProperty,e.convertToPlainObject=g.convertToPlainObject,e.dropUndefinedKeys=g.dropUndefinedKeys,e.extractExceptionKeysForMessage=g.extractExceptionKeysForMessage,e.fill=g.fill,e.getOriginalFunction=g.getOriginalFunction,e.markFunctionWrapped=g.markFunctionWrapped,e.objectify=g.objectify,e.urlEncode=g.urlEncode,e.basename=b.basename,e.dirname=b.dirname,e.isAbsolute=b.isAbsolute,e.join=b.join,e.normalizePath=b.normalizePath,e.relative=b.relative,e.resolve=b.resolve,e.makePromiseBuffer=v.makePromiseBuffer,e.DEFAULT_USER_INCLUDES=_.DEFAULT_USER_INCLUDES,e.addRequestDataToEvent=_.addRequestDataToEvent,e.extractPathForTransaction=_.extractPathForTransaction,e.extractRequestData=_.extractRequestData,e.winterCGHeadersToDict=_.winterCGHeadersToDict,e.winterCGRequestToRequestData=_.winterCGRequestToRequestData,e.severityLevelFromString=S.severityLevelFromString,e.validSeverityLevels=S.validSeverityLevels,e.UNKNOWN_FUNCTION=E.UNKNOWN_FUNCTION,e.createStackParser=E.createStackParser,e.getFunctionName=E.getFunctionName,e.stackParserFromStackParserOptions=E.stackParserFromStackParserOptions,e.stripSentryFramesAndReverse=E.stripSentryFramesAndReverse,e.filenameIsInApp=w.filenameIsInApp,e.node=w.node,e.nodeStackLineParser=w.nodeStackLineParser,e.isMatchingPattern=T.isMatchingPattern,e.safeJoin=T.safeJoin,e.snipLine=T.snipLine,e.stringMatchesSomePattern=T.stringMatchesSomePattern,e.truncate=T.truncate,e.isNativeFunction=x.isNativeFunction,e.supportsDOMError=x.supportsDOMError,e.supportsDOMException=x.supportsDOMException,e.supportsErrorEvent=x.supportsErrorEvent,e.supportsFetch=x.supportsFetch,e.supportsNativeFetch=x.supportsNativeFetch,e.supportsReferrerPolicy=x.supportsReferrerPolicy,e.supportsReportingObserver=x.supportsReportingObserver,e.SyncPromise=A.SyncPromise,e.rejectedSyncPromise=A.rejectedSyncPromise,e.resolvedSyncPromise=A.resolvedSyncPromise,Object.defineProperty(e,"_browserPerformanceTimeOriginMode",{enumerable:!0,get:()=>O._browserPerformanceTimeOriginMode}),e.browserPerformanceTimeOrigin=O.browserPerformanceTimeOrigin,e.dateTimestampInSeconds=O.dateTimestampInSeconds,e.timestampInSeconds=O.timestampInSeconds,e.TRACEPARENT_REGEXP=M.TRACEPARENT_REGEXP,e.extractTraceparentData=M.extractTraceparentData,e.generateSentryTraceHeader=M.generateSentryTraceHeader,e.propagationContextFromHeaders=M.propagationContextFromHeaders,e.getSDKSource=R.getSDKSource,e.isBrowserBundle=R.isBrowserBundle,e.addItemToEnvelope=C.addItemToEnvelope,e.createAttachmentEnvelopeItem=C.createAttachmentEnvelopeItem,e.createEnvelope=C.createEnvelope,e.createEventEnvelopeHeaders=C.createEventEnvelopeHeaders,e.createSpanEnvelopeItem=C.createSpanEnvelopeItem,e.envelopeContainsItemType=C.envelopeContainsItemType,e.envelopeItemTypeToDataCategory=C.envelopeItemTypeToDataCategory,e.forEachEnvelopeItem=C.forEachEnvelopeItem,e.getSdkMetadataForEnvelopeHeader=C.getSdkMetadataForEnvelopeHeader,e.parseEnvelope=C.parseEnvelope,e.serializeEnvelope=C.serializeEnvelope,e.createClientReportEnvelope=I.createClientReportEnvelope,e.DEFAULT_RETRY_AFTER=N.DEFAULT_RETRY_AFTER,e.disabledUntil=N.disabledUntil,e.isRateLimited=N.isRateLimited,e.parseRetryAfterHeader=N.parseRetryAfterHeader,e.updateRateLimits=N.updateRateLimits,e.BAGGAGE_HEADER_NAME=P.BAGGAGE_HEADER_NAME,e.MAX_BAGGAGE_STRING_LENGTH=P.MAX_BAGGAGE_STRING_LENGTH,e.SENTRY_BAGGAGE_KEY_PREFIX=P.SENTRY_BAGGAGE_KEY_PREFIX,e.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=P.SENTRY_BAGGAGE_KEY_PREFIX_REGEX,e.baggageHeaderToDynamicSamplingContext=P.baggageHeaderToDynamicSamplingContext,e.dynamicSamplingContextToSentryBaggageHeader=P.dynamicSamplingContextToSentryBaggageHeader,e.parseBaggageHeader=P.parseBaggageHeader,e.getNumberOfUrlSegments=k.getNumberOfUrlSegments,e.getSanitizedUrlString=k.getSanitizedUrlString,e.parseUrl=k.parseUrl,e.stripUrlQueryAndFragment=k.stripUrlQueryAndFragment,e.makeFifoCache=D.makeFifoCache,e.eventFromMessage=L.eventFromMessage,e.eventFromUnknownInput=L.eventFromUnknownInput,e.exceptionFromError=L.exceptionFromError,e.parseStackFrames=L.parseStackFrames,e.callFrameToStackFrame=j.callFrameToStackFrame,e.watchdogTimer=j.watchdogTimer,e.LRUMap=U.LRUMap,e._asyncNullishCoalesce=B._asyncNullishCoalesce,e._asyncOptionalChain=F._asyncOptionalChain,e._asyncOptionalChainDelete=z._asyncOptionalChainDelete,e._nullishCoalesce=$._nullishCoalesce,e._optionalChain=V._optionalChain,e._optionalChainDelete=Y._optionalChainDelete,e.generatePropagationContext=q.generatePropagationContext,e.SDK_VERSION=H.SDK_VERSION,e.escapeStringForRegex=W.escapeStringForRegex,e.supportsHistory=G.supportsHistory}(hN);var y6={};Object.defineProperty(y6,"__esModule",{value:!0}),y6.DEBUG_BUILD="u"=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}gr.closeSession=function(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),gi(e,r)},gr.makeSession=function(e){let t=gn.timestampInSeconds(),r={sid:gn.uuid4(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(function(e){return gn.dropUndefinedKeys({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})})(r)};return e&&gi(r,e),r},gr.updateSession=gi;var go={};Object.defineProperty(go,"__esModule",{value:!0});let ga=hN,gs="_sentrySpan";go._getSpanForScope=function(e){return e[gs]},go._setSpanForScope=function(e,t){t?ga.addNonEnumerableProperty(e,gs,t):delete e[gs]},Object.defineProperty(gt,"__esModule",{value:!0});let gu=hN,gc=gr,gl=go;class gf{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=gu.generatePropagationContext()}clone(){let e=new gf;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,gl._setSpanForScope(e,gl._getSpanForScope(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&gc.updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,[r,n]=t instanceof gd?[t.getScopeData(),t.getRequestSession()]:gu.isPlainObject(t)?[e,e.requestSession]:[],{tags:i,extra:o,user:a,contexts:s,level:u,fingerprint:c=[],propagationContext:l}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),c.length&&(this._fingerprint=c),l&&(this._propagationContext=l),n&&(this._requestSession=n),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,gl._setSpanForScope(this,void 0),this._attachments=[],this._propagationContext=gu.generatePropagationContext(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:gu.dateTimestampInSeconds(),...e},i=this._breadcrumbs;return i.push(n),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:gl._getSpanForScope(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t&&t.event_id?t.event_id:gu.uuid4();if(!this._client)return gu.logger.warn("No client configured on scope - will not capture exception!"),r;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){let n=r&&r.event_id?r.event_id:gu.uuid4();if(!this._client)return gu.logger.warn("No client configured on scope - will not capture message!"),n;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){let r=t&&t.event_id?t.event_id:gu.uuid4();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):gu.logger.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let gd=gf;gt.Scope=gd,Object.defineProperty(ge,"__esModule",{value:!0});let gh=hN,gp=gt;ge.getDefaultCurrentScope=function(){return gh.getGlobalSingleton("defaultCurrentScope",()=>new gp.Scope)},ge.getDefaultIsolationScope=function(){return gh.getGlobalSingleton("defaultIsolationScope",()=>new gp.Scope)},Object.defineProperty(y7,"__esModule",{value:!0});let gm=hN,gy=ge,gg=gt,gb=y5;class gv{constructor(e,t){let r,n;r=e||new gg.Scope,n=t||new gg.Scope,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t,r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return gm.isThenable(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}_popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}}function g_(){let e=gb.getMainCarrier(),t=gb.getSentryCarrier(e);return t.stack=t.stack||new gv(gy.getDefaultCurrentScope(),gy.getDefaultIsolationScope())}function gS(e){return g_().withScope(e)}function gE(e,t){let r=g_();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function gw(e){return g_().withScope(()=>e(g_().getIsolationScope()))}y7.AsyncContextStack=gv,y7.getStackAsyncContextStrategy=function(){return{withIsolationScope:gw,withScope:gS,withSetScope:gE,withSetIsolationScope:(e,t)=>gw(t),getCurrentScope:()=>g_().getScope(),getIsolationScope:()=>g_().getIsolationScope()}},Object.defineProperty(y4,"__esModule",{value:!0});let gT=y5,gx=y7;y4.getAsyncContextStrategy=function(e){let t=gT.getSentryCarrier(e);return t.acs?t.acs:gx.getStackAsyncContextStrategy()},y4.setAsyncContextStrategy=function(e){let t=gT.getMainCarrier();gT.getSentryCarrier(t).acs=e};var gA={};Object.defineProperty(gA,"__esModule",{value:!0});let gO=hN,gM=y4,gR=y5,gC=gt;function gI(){let e=gR.getMainCarrier();return gM.getAsyncContextStrategy(e).getCurrentScope()}gA.getClient=function(){return gI().getClient()},gA.getCurrentScope=gI,gA.getGlobalScope=function(){return gO.getGlobalSingleton("globalScope",()=>new gC.Scope)},gA.getIsolationScope=function(){let e=gR.getMainCarrier();return gM.getAsyncContextStrategy(e).getIsolationScope()},gA.withIsolationScope=function(...e){let t=gR.getMainCarrier(),r=gM.getAsyncContextStrategy(t);if(2===e.length){let[t,n]=e;return t?r.withSetIsolationScope(t,n):r.withIsolationScope(n)}return r.withIsolationScope(e[0])},gA.withScope=function(...e){let t=gR.getMainCarrier(),r=gM.getAsyncContextStrategy(t);if(2===e.length){let[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])};var gN={};Object.defineProperty(gN,"__esModule",{value:!0});let gP=hN,gk="_sentryMetrics";gN.getMetricSummaryJsonForSpan=function(e){let t=e[gk];if(!t)return;let r={};for(let[,[e,n]]of t)r[e]||(r[e]=[]),r[e].push(gP.dropUndefinedKeys(n));return r},gN.updateMetricSummaryOnSpan=function(e,t,r,n,i,o,a){let s=e[gk]||(e[gk]=new Map),u=`${t}:${r}@${i}`,c=s.get(a);if(c){let[,e]=c;s.set(a,[u,{min:Math.min(e.min,n),max:Math.max(e.max,n),count:e.count+=1,sum:e.sum+=n,tags:e.tags}])}else s.set(a,[u,{min:n,max:n,count:1,sum:n,tags:o}])};var gD={};Object.defineProperty(gD,"__esModule",{value:!0}),gD.SEMANTIC_ATTRIBUTE_CACHE_HIT="cache.hit",gD.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE="cache.item_size",gD.SEMANTIC_ATTRIBUTE_CACHE_KEY="cache.key",gD.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME="sentry.exclusive_time",gD.SEMANTIC_ATTRIBUTE_PROFILE_ID="sentry.profile_id",gD.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON="sentry.idle_span_finish_reason",gD.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT="sentry.measurement_unit",gD.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE="sentry.measurement_value",gD.SEMANTIC_ATTRIBUTE_SENTRY_OP="sentry.op",gD.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN="sentry.origin",gD.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE="sentry.sample_rate",gD.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE="sentry.source";var gL={};Object.defineProperty(gL,"__esModule",{value:!0});let gj=1,gU=2;function gB(e){if(e<400&&e>=100)return{code:gj};if(e>=400&&e<500)switch(e){case 401:return{code:gU,message:"unauthenticated"};case 403:return{code:gU,message:"permission_denied"};case 404:return{code:gU,message:"not_found"};case 409:return{code:gU,message:"already_exists"};case 413:return{code:gU,message:"failed_precondition"};case 429:return{code:gU,message:"resource_exhausted"};case 499:return{code:gU,message:"cancelled"};default:return{code:gU,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:gU,message:"unimplemented"};case 503:return{code:gU,message:"unavailable"};case 504:return{code:gU,message:"deadline_exceeded"};default:return{code:gU,message:"internal_error"}}return{code:gU,message:"unknown_error"}}gL.SPAN_STATUS_ERROR=2,gL.SPAN_STATUS_OK=gj,gL.SPAN_STATUS_UNSET=0,gL.getSpanStatusFromHttpCode=gB,gL.setHttpStatus=function(e,t){e.setAttribute("http.response.status_code",t);let r=gB(t);"unknown_error"!==r.message&&e.setStatus(r)},Object.defineProperty(y3,"__esModule",{value:!0});let gF=hN,gz=y4,g$=y5,gV=gA,gY=gN,gq=gD,gH=gL,gW=go,gG=1;function gZ(e){return"number"==typeof e?gK(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?gK(e.getTime()):gF.timestampInSeconds()}function gK(e){return e>0x2540be3ff?e/1e3:e}function gX(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{let{spanId:t,traceId:r}=e.spanContext();if(function(e){let t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){let{attributes:n,startTime:i,name:o,endTime:a,parentSpanId:s,status:u}=e;return gF.dropUndefinedKeys({span_id:t,trace_id:r,data:n,description:o,parent_span_id:s,start_timestamp:gZ(i),timestamp:gZ(a)||void 0,status:gQ(u),op:n[gq.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:n[gq.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:gY.getMetricSummaryJsonForSpan(e)})}return{span_id:t,trace_id:r}}catch(e){return{}}}function gJ(e){let{traceFlags:t}=e.spanContext();return t===gG}function gQ(e){if(e&&e.code!==gH.SPAN_STATUS_UNSET)return e.code===gH.SPAN_STATUS_OK?"ok":e.message||"unknown_error"}let g0="_sentryChildSpans",g1="_sentryRootSpan";function g2(){let e=g$.getMainCarrier(),t=gz.getAsyncContextStrategy(e);return t.getActiveSpan?t.getActiveSpan():gW._getSpanForScope(gV.getCurrentScope())}y3.TRACE_FLAG_NONE=0,y3.TRACE_FLAG_SAMPLED=gG,y3.addChildSpanToSpan=function(e,t){let r=e[g1]||e;gF.addNonEnumerableProperty(t,g1,r),e[g0]?e[g0].add(t):gF.addNonEnumerableProperty(e,g0,new Set([t]))},y3.getActiveSpan=g2,y3.getRootSpan=function(e){return e[g1]||e},y3.getSpanDescendants=function(e){let t=new Set;return function e(r){if(!t.has(r)&&gJ(r))for(let n of(t.add(r),r[g0]?Array.from(r[g0]):[]))e(n)}(e),Array.from(t)},y3.getStatusMessage=gQ,y3.removeChildSpanFromSpan=function(e,t){e[g0]&&e[g0].delete(t)},y3.spanIsSampled=gJ,y3.spanTimeInputToSeconds=gZ,y3.spanToJSON=gX,y3.spanToTraceContext=function(e){let{spanId:t,traceId:r}=e.spanContext(),{parent_span_id:n}=gX(e);return gF.dropUndefinedKeys({parent_span_id:n,span_id:t,trace_id:r})},y3.spanToTraceHeader=function(e){let{traceId:t,spanId:r}=e.spanContext(),n=gJ(e);return gF.generateSentryTraceHeader(t,r,n)},y3.spanToTransactionTraceContext=function(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:o,status:a,origin:s}=gX(e);return gF.dropUndefinedKeys({parent_span_id:o,span_id:t,trace_id:r,data:n,op:i,status:a,origin:s})},y3.updateMetricSummaryOnActiveSpan=function(e,t,r,n,i,o){let a=g2();a&&gY.updateMetricSummaryOnSpan(a,e,t,r,n,i,o)},Object.defineProperty(hI,"__esModule",{value:!0});let g6=hN,g3=y6,g4=y3,g5=gL,g8=!1;function g9(){let e=g4.getActiveSpan(),t=e&&g4.getRootSpan(e);if(t){let e="internal_error";g3.DEBUG_BUILD&&g6.logger.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:g5.SPAN_STATUS_ERROR,message:e})}}g9.tag="sentry_tracingErrorCallback",hI.registerSpanErrorInstrumentation=function(){g8||(g8=!0,g6.addGlobalErrorInstrumentationHandler(g9),g6.addGlobalUnhandledRejectionInstrumentationHandler(g9))};var g7={};Object.defineProperty(g7,"__esModule",{value:!0});let be=hN,bt="_sentryScope",br="_sentryIsolationScope";g7.stripUrlQueryAndFragment=be.stripUrlQueryAndFragment,g7.getCapturedScopesOnSpan=function(e){return{scope:e[bt],isolationScope:e[br]}},g7.setCapturedScopesOnSpan=function(e,t,r){e&&(be.addNonEnumerableProperty(e,br,r),be.addNonEnumerableProperty(e,bt,t))};var bn={};Object.defineProperty(bn,"__esModule",{value:!0});let bi=hI;bn.addTracingExtensions=function(){bi.registerSpanErrorInstrumentation()};var bo={},ba={};Object.defineProperty(ba,"__esModule",{value:!0});let bs=gA;ba.hasTracingEnabled=function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||function(){let e=bs.getClient();return e&&e.getOptions()}();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)};var bu={};Object.defineProperty(bu,"__esModule",{value:!0});let bc=hN,bl=y3;bu.SentryNonRecordingSpan=class{constructor(e={}){this._traceId=e.traceId||bc.uuid4(),this._spanId=e.spanId||bc.uuid4().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:bl.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}};var bf={},bd={};Object.defineProperty(bd,"__esModule",{value:!0});let bh=hN;bd.handleCallbackErrors=function(e,t,r=()=>{}){let n;try{n=e()}catch(e){throw t(e),r(),e}return function(e,t,r){return bh.isThenable(e)?e.then(e=>(r(),e),e=>{throw t(e),r(),e}):(r(),e)}(n,t,r)};var bp={},bm={};Object.defineProperty(bm,"__esModule",{value:!0}),bm.DEFAULT_ENVIRONMENT="production",Object.defineProperty(bp,"__esModule",{value:!0});let by=hN,bg=bm,bb=gA,bv=gD,b_=y3,bS="_frozenDsc";function bE(e,t){let r=t.getOptions(),{publicKey:n}=t.getDsn()||{},i=by.dropUndefinedKeys({environment:r.environment||bg.DEFAULT_ENVIRONMENT,release:r.release,public_key:n,trace_id:e});return t.emit("createDsc",i),i}function bw(e){let t=bb.getClient();if(!t)return{};let r=bE(b_.spanToJSON(e).trace_id||"",t),n=b_.getRootSpan(e);if(!n)return r;let i=n[bS];if(i)return i;let o=b_.spanToJSON(n),a=o.data||{},s=a[bv.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];null!=s&&(r.sample_rate=`${s}`);let u=a[bv.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return u&&"url"!==u&&(r.transaction=o.description),r.sampled=String(b_.spanIsSampled(n)),t.emit("createDsc",r),r}bp.freezeDscOnSpan=function(e,t){let r=e;by.addNonEnumerableProperty(r,bS,t)},bp.getDynamicSamplingContextFromClient=bE,bp.getDynamicSamplingContextFromSpan=bw,bp.spanToBaggageHeader=function(e){let t=bw(e);return by.dynamicSamplingContextToSentryBaggageHeader(t)};var bT={};Object.defineProperty(bT,"__esModule",{value:!0});let bx=hN,bA=y6,bO=y3;bT.logSpanEnd=function(e){if(!bA.DEBUG_BUILD)return;let{description:t="< unknown name >",op:r="< unknown op >"}=bO.spanToJSON(e),{spanId:n}=e.spanContext(),i=`[Tracing] Finishing "${r}" ${bO.getRootSpan(e)===e?"root ":""}span "${t}" with ID ${n}`;bx.logger.log(i)},bT.logSpanStart=function(e){if(!bA.DEBUG_BUILD)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=bO.spanToJSON(e),{spanId:i}=e.spanContext(),o=bO.spanIsSampled(e),a=bO.getRootSpan(e),s=a===e,u=`[Tracing] Starting ${o?"sampled":"unsampled"} ${s?"root ":""}span`,c=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];if(n&&c.push(`parent ID: ${n}`),!s){let{op:e,description:t}=bO.spanToJSON(a);c.push(`root ID: ${a.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}bx.logger.log(`${u} + ${c.join("\n ")}`)};var bM={},bR={};Object.defineProperty(bR,"__esModule",{value:!0});let bC=hN,bI=y6;bR.parseSampleRate=function(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;bI.DEBUG_BUILD&&bC.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)},Object.defineProperty(bM,"__esModule",{value:!0});let bN=hN,bP=y6,bk=ba,bD=bR;bM.sampleSpan=function(e,t){let r;if(!bk.hasTracingEnabled(e))return[!1];r="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;let n=bD.parseSampleRate(r);return void 0===n?(bP.DEBUG_BUILD&&bN.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):n?Math.random()a(bF.spanToJSON(e)):e=>bF.spanToJSON(e),u=[];for(let t of e){let e=s(t);e&&u.push(bU.createSpanEnvelopeItem(e))}return bU.createEnvelope(o,u)};var bz={};Object.defineProperty(bz,"__esModule",{value:!0});let b$=gD,bV=y3;bz.setMeasurement=function(e,t,r){let n=bV.getActiveSpan(),i=n&&bV.getRootSpan(n);i&&i.addEvent(e,{[b$.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[b$.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:r})},bz.timedEventsToMeasurements=function(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[b$.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=r[b$.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})}),t},Object.defineProperty(bL,"__esModule",{value:!0});let bY=hN,bq=gA,bH=y6,bW=bj,bG=gN,bZ=gD,bK=y3,bX=bp,bJ=bT,bQ=bz,b0=g7;class b1{constructor(e={}){this._traceId=e.traceId||bY.uuid4(),this._spanId=e.spanId||bY.uuid4().substring(16),this._startTime=e.startTimestamp||bY.timestampInSeconds(),this._attributes={},this.setAttributes({[bZ.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[bZ.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?bK.TRACE_FLAG_SAMPLED:bK.TRACE_FLAG_NONE}}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach(t=>this.setAttribute(t,e[t]))}updateStartTime(e){this._startTime=bK.spanTimeInputToSeconds(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=bK.spanTimeInputToSeconds(e),bJ.logSpanEnd(this),this._onSpanEnded())}getSpanJSON(){return bY.dropUndefinedKeys({data:this._attributes,description:this._name,op:this._attributes[bZ.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:bK.getStatusMessage(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[bZ.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:bG.getMetricSummaryJsonForSpan(this),profile_id:this._attributes[bZ.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[bZ.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:bQ.timedEventsToMeasurements(this._events),is_segment:this._isStandaloneSpan&&bK.getRootSpan(this)===this||void 0,segment_id:this._isStandaloneSpan?bK.getRootSpan(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){bH.DEBUG_BUILD&&bY.logger.log("[Tracing] Adding an event to span:",e);let n=b2(t)?t:r||bY.timestampInSeconds(),i=b2(t)?{}:t||{},o={name:e,time:bK.spanTimeInputToSeconds(n),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=bq.getClient();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===bK.getRootSpan(this)))return;if(this._isStandaloneSpan)return void function(e){let t=bq.getClient();if(!t)return;let r=e[1];if(!r||0===r.length)return t.recordDroppedEvent("before_send","span");let n=t.getTransport();n&&n.send(e).then(null,e=>{bH.DEBUG_BUILD&&bY.logger.error("Error while sending span:",e)})}(bW.createSpanEnvelope([this],e));let t=this._convertSpanToTransaction();t&&(b0.getCapturedScopesOnSpan(this).scope||bq.getCurrentScope()).captureEvent(t)}_convertSpanToTransaction(){if(!b6(bK.spanToJSON(this)))return;this._name||(bH.DEBUG_BUILD&&bY.logger.warn("Transaction has no name, falling back to ``."),this._name="");let{scope:e,isolationScope:t}=b0.getCapturedScopesOnSpan(this),r=(e||bq.getCurrentScope()).getClient()||bq.getClient();if(!0!==this._sampled)return bH.DEBUG_BUILD&&bY.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(r&&r.recordDroppedEvent("sample_rate","transaction"));let n=bK.getSpanDescendants(this).filter(e=>e!==this&&!function(e){return e instanceof b1&&e.isStandaloneSpan()}(e)).map(e=>bK.spanToJSON(e)).filter(b6),i=this._attributes[bZ.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],o={contexts:{trace:bK.spanToTransactionTraceContext(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...bY.dropUndefinedKeys({dynamicSamplingContext:bX.getDynamicSamplingContextFromSpan(this)})},_metrics_summary:bG.getMetricSummaryJsonForSpan(this),...i&&{transaction_info:{source:i}}},a=bQ.timedEventsToMeasurements(this._events);return a&&Object.keys(a).length&&(bH.DEBUG_BUILD&&bY.logger.log("[Measurements] Adding measurements to transaction",JSON.stringify(a,void 0,2)),o.measurements=a),o}}function b2(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function b6(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}bL.SentrySpan=b1,Object.defineProperty(bf,"__esModule",{value:!0});let b3=hN,b4=y5,b5=gA,b8=y4,b9=y6,b7=gD,ve=bd,vt=ba,vr=go,vn=y3,vi=bp,vo=bT,va=bM,vs=bu,vu=bL,vc=gL,vl=g7,vf="__SENTRY_SUPPRESS_TRACING__";function vd(e,t){let r=vm();return r.withActiveSpan?r.withActiveSpan(e,t):b5.withScope(r=>(vr._setSpanForScope(r,e||void 0),t(r)))}function vh({parentSpan:e,spanContext:t,forceTransaction:r,scope:n}){let i;if(!vt.hasTracingEnabled())return new vs.SentryNonRecordingSpan;let o=b5.getIsolationScope();if(e&&!r)i=function(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[vf]&&vn.spanIsSampled(e),a=o?new vu.SentrySpan({...r,parentSpanId:n,traceId:i,sampled:o}):new vs.SentryNonRecordingSpan({traceId:i});vn.addChildSpanToSpan(e,a);let s=b5.getClient();return s&&(s.emit("spanStart",a),r.endTimestamp&&s.emit("spanEnd",a)),a}(e,n,t),vn.addChildSpanToSpan(e,i);else if(e){let r=vi.getDynamicSamplingContextFromSpan(e),{traceId:o,spanId:a}=e.spanContext(),s=vn.spanIsSampled(e);i=vy({traceId:o,parentSpanId:a,...t},n,s),vi.freezeDscOnSpan(i,r)}else{let{traceId:e,dsc:r,parentSpanId:a,sampled:s}={...o.getPropagationContext(),...n.getPropagationContext()};i=vy({traceId:e,parentSpanId:a,...t},n,s),r&&vi.freezeDscOnSpan(i,r)}return vo.logSpanStart(i),vl.setCapturedScopesOnSpan(i,n,o),i}function vp(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=vn.spanTimeInputToSeconds(e.startTime),delete r.startTime,r}return t}function vm(){let e=b4.getMainCarrier();return b8.getAsyncContextStrategy(e)}function vy(e,t,r){let n=b5.getClient(),i=n&&n.getOptions()||{},{name:o="",attributes:a}=e,[s,u]=t.getScopeData().sdkProcessingMetadata[vf]?[!1]:va.sampleSpan(i,{name:o,parentSampled:r,attributes:a,transactionContext:{name:o,parentSampled:r}}),c=new vu.SentrySpan({...e,attributes:{[b7.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",...e.attributes},sampled:s});return void 0!==u&&c.setAttribute(b7.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,u),n&&n.emit("spanStart",c),c}function vg(e){let t=vr._getSpanForScope(e);if(!t)return;let r=b5.getClient();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?vn.getRootSpan(t):t}bf.continueTrace=({sentryTrace:e,baggage:t},r)=>b5.withScope(n=>{let i=b3.propagationContextFromHeaders(e,t);return n.setPropagationContext(i),r()}),bf.startInactiveSpan=function(e){let t=vm();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=vp(e),n=e.scope||b5.getCurrentScope(),i=vg(n);return e.onlyIfParent&&!i?new vs.SentryNonRecordingSpan:vh({parentSpan:i,spanContext:r,forceTransaction:e.forceTransaction,scope:n})},bf.startNewTrace=function(e){return b5.withScope(t=>(t.setPropagationContext(b3.generatePropagationContext()),b9.DEBUG_BUILD&&b3.logger.info(`Starting a new trace with id ${t.getPropagationContext().traceId}`),vd(null,e)))},bf.startSpan=function(e,t){let r=vm();if(r.startSpan)return r.startSpan(e,t);let n=vp(e);return b5.withScope(e.scope,r=>{let i=vg(r),o=e.onlyIfParent&&!i?new vs.SentryNonRecordingSpan:vh({parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r});return vr._setSpanForScope(r,o),ve.handleCallbackErrors(()=>t(o),()=>{let{status:e}=vn.spanToJSON(o);!o.isRecording()||e&&"ok"!==e||o.setStatus({code:vc.SPAN_STATUS_ERROR,message:"internal_error"})},()=>o.end())})},bf.startSpanManual=function(e,t){let r=vm();if(r.startSpanManual)return r.startSpanManual(e,t);let n=vp(e);return b5.withScope(e.scope,r=>{let i=vg(r),o=e.onlyIfParent&&!i?new vs.SentryNonRecordingSpan:vh({parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r});function a(){o.end()}return vr._setSpanForScope(r,o),ve.handleCallbackErrors(()=>t(o,a),()=>{let{status:e}=vn.spanToJSON(o);!o.isRecording()||e&&"ok"!==e||o.setStatus({code:vc.SPAN_STATUS_ERROR,message:"internal_error"})})})},bf.suppressTracing=function(e){let t=vm();return t.suppressTracing?t.suppressTracing(e):b5.withScope(t=>(t.setSDKProcessingMetadata({[vf]:!0}),e()))},bf.withActiveSpan=vd,Object.defineProperty(bo,"__esModule",{value:!0});let vb=hN,vv=gA,v_=y6,vS=gD,vE=ba,vw=go,vT=y3,vx=bu,vA=gL,vO=bf,vM={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};bo.TRACING_DEFAULTS=vM,bo.startIdleSpan=function(e,t={}){let r=new Map,n,i=!1,o="externalFinish",a=!t.disableAutoFinish,{idleTimeout:s=vM.idleTimeout,finalTimeout:u=vM.finalTimeout,childSpanTimeout:c=vM.childSpanTimeout,beforeSpanEnd:l}=t,f=vv.getClient();if(!f||!vE.hasTracingEnabled())return new vx.SentryNonRecordingSpan;let d=vv.getCurrentScope(),h=vT.getActiveSpan(),p=function(e){let t=vO.startInactiveSpan(e);return vw._setSpanForScope(vv.getCurrentScope(),t),v_.DEBUG_BUILD&&vb.logger.log("[Tracing] Started span is an idle span"),t}(e);function m(e=vb.timestampInSeconds()){let t=vT.getSpanDescendants(p).filter(e=>e!==p);if(!t.length)return void p.end(e);let r=t.map(e=>vT.spanToJSON(e).timestamp).filter(e=>!!e),n=r.length?Math.max(...r):void 0,i=vT.spanTimeInputToSeconds(e),o=vT.spanToJSON(p).start_timestamp,a=Math.min(o?o+u/1e3:1/0,Math.max(o||-1/0,Math.min(i,n||1/0)));p.end(a)}function y(){n&&(clearTimeout(n),n=void 0)}function g(e){y(),n=setTimeout(()=>{!i&&0===r.size&&a&&(o="idleTimeout",m(e))},s)}function b(e){n=setTimeout(()=>{!i&&a&&(o="heartbeatFailed",m(e))},c)}return f.on("spanStart",e=>{var t;i||e===p||vT.spanToJSON(e).timestamp||vT.getSpanDescendants(p).includes(e)&&(t=e.spanContext().spanId,y(),r.set(t,!0),b(vb.timestampInSeconds()+c/1e3))}),f.on("spanEnd",e=>{var t;i||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&g(vb.timestampInSeconds()+s/1e3),e===p&&function(){i=!0,r.clear(),l&&l(p),vw._setSpanForScope(d,h);let e=vT.spanToJSON(p),{timestamp:t,start_timestamp:n}=e;if(!t||!n)return;(e.data||{})[vS.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||p.setAttribute(vS.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,o),vb.logger.log(`[Tracing] Idle span "${e.op}" finished`);let a=vT.getSpanDescendants(p).filter(e=>e!==p),c=0;a.forEach(e=>{e.isRecording()&&(e.setStatus({code:vA.SPAN_STATUS_ERROR,message:"cancelled"}),e.end(t),v_.DEBUG_BUILD&&vb.logger.log("[Tracing] Cancelling span since span ended early",JSON.stringify(e,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=vT.spanToJSON(e),i=n<=t,o=r-n<(u+s)/1e3;if(v_.DEBUG_BUILD){let t=JSON.stringify(e,void 0,2);i?o||vb.logger.log("[Tracing] Discarding span since it finished after idle span final timeout",t):vb.logger.log("[Tracing] Discarding span since it happened after idle span was finished",t)}o&&i||(vT.removeChildSpanFromSpan(p,e),c++)}),c>0&&p.setAttribute("sentry.idle_span_discarded_spans",c)}())}),f.on("idleSpanEnableAutoFinish",e=>{e===p&&(a=!0,g(),r.size&&b())}),t.disableAutoFinish||g(),setTimeout(()=>{i||(p.setStatus({code:vA.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),o="finalTimeout",m())},u),p};var vR={},vC={},vI={};Object.defineProperty(vI,"__esModule",{value:!0});let vN=hN,vP=y6;vI.notifyEventProcessors=function e(t,r,n,i=0){return new vN.SyncPromise((o,a)=>{let s=t[i];if(null===r||"function"!=typeof s)o(r);else{let u=s({...r},n);vP.DEBUG_BUILD&&s.id&&null===u&&vN.logger.log(`Event processor "${s.id}" dropped event`),vN.isThenable(u)?u.then(r=>e(t,r,n,i+1).then(o)).then(null,a):e(t,u,n,i+1).then(o).then(null,a)}})};var vk={};Object.defineProperty(vk,"__esModule",{value:!0});let vD=hN,vL=bp,vj=y3;function vU(e,t,r){if(r&&Object.keys(r).length)for(let n in e[t]={...e[t]},r)Object.prototype.hasOwnProperty.call(r,n)&&(e[t][n]=r[n])}vk.applyScopeDataToEvent=function(e,t){let{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:o}=t;!function(e,t){let{extra:r,tags:n,user:i,contexts:o,level:a,transactionName:s}=t,u=vD.dropUndefinedKeys(r);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});let c=vD.dropUndefinedKeys(n);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});let l=vD.dropUndefinedKeys(i);l&&Object.keys(l).length&&(e.user={...l,...e.user});let f=vD.dropUndefinedKeys(o);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),a&&(e.level=a),s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),n&&function(e,t){e.contexts={trace:vj.spanToTraceContext(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:vL.getDynamicSamplingContextFromSpan(t),...e.sdkProcessingMetadata};let r=vj.getRootSpan(t),n=vj.spanToJSON(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,n),function(e,t){e.fingerprint=e.fingerprint?vD.arrayify(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,r),function(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,o)},vk.mergeAndOverwriteScopeData=vU,vk.mergeScopeData=function(e,t){let{extra:r,tags:n,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:f,propagationContext:d,transactionName:h,span:p}=t;vU(e,"extra",r),vU(e,"tags",n),vU(e,"user",i),vU(e,"contexts",o),vU(e,"sdkProcessingMetadata",s),a&&(e.level=a),h&&(e.transactionName=h),p&&(e.span=p),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...d}},Object.defineProperty(vC,"__esModule",{value:!0});let vB=hN,vF=bm,vz=gA,v$=vI,vV=gt,vY=vk,vq=new WeakMap;function vH(e,t){let r,n=vB.GLOBAL_OBJ._sentryDebugIds;if(!n)return;let i=vq.get(t);i?r=i:(r=new Map,vq.set(t,r));let o=Object.keys(n).reduce((e,i)=>{let o,a=r.get(i);a?o=a:(o=t(i),r.set(i,o));for(let t=o.length-1;t>=0;t--){let r=o[t];if(r.filename){e[r.filename]=n[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=o[e.filename])})})}catch(e){}}function vW(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.keys(t).forEach(e=>{r.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}let vG=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];vC.applyDebugIds=vH,vC.applyDebugMeta=vW,vC.parseEventHintOrCaptureContext=function(e){if(e)return function(e){return e instanceof vV.Scope||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>vG.includes(e))}(e)?{captureContext:e}:e},vC.prepareEvent=function(e,t,r,n,i,o){let{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,u={...t,event_id:t.event_id||r.event_id||vB.uuid4(),timestamp:t.timestamp||vB.dateTimestampInSeconds()},c=r.integrations||e.integrations.map(e=>e.name);!function(e,t){let{environment:r,release:n,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?r:vF.DEFAULT_ENVIRONMENT),void 0===e.release&&void 0!==n&&(e.release=n),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=vB.truncate(e.message,o));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=vB.truncate(a.value,o));let s=e.request;s&&s.url&&(s.url=vB.truncate(s.url,o))}(u,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(u,c),void 0===t.type&&vH(u,e.stackParser);let l=function(e,t){if(!t)return e;let r=e?e.clone():new vV.Scope;return r.update(t),r}(n,r.captureContext);r.mechanism&&vB.addExceptionMechanism(u,r.mechanism);let f=i?i.getEventProcessors():[],d=vz.getGlobalScope().getScopeData();if(o){let e=o.getScopeData();vY.mergeScopeData(d,e)}if(l){let e=l.getScopeData();vY.mergeScopeData(d,e)}let h=[...r.attachments||[],...d.attachments];h.length&&(r.attachments=h),vY.applyScopeDataToEvent(u,d);let p=[...f,...d.eventProcessors];return v$.notifyEventProcessors(p,u,r).then(e=>(e&&vW(e),"number"==typeof a&&a>0?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:vB.normalize(e.data,t,r)}}))},...e.user&&{user:vB.normalize(e.user,t,r)},...e.contexts&&{contexts:vB.normalize(e.contexts,t,r)},...e.extra&&{extra:vB.normalize(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=vB.normalize(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:vB.normalize(e.data,t,r)}}))),n}(e,a,s):e))},Object.defineProperty(vR,"__esModule",{value:!0});let vZ=hN,vK=bm,vX=gA,vJ=y6,vQ=gr,v0=vC;function v1(e,t){let r=vX.getCurrentScope(),n=vX.getClient();if(n){if(n.captureCheckIn)return n.captureCheckIn(e,t,r);vJ.DEBUG_BUILD&&vZ.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else vJ.DEBUG_BUILD&&vZ.logger.warn("Cannot capture check-in. No client defined.");return vZ.uuid4()}function v2(){let e=vX.getIsolationScope(),t=vX.getCurrentScope(),r=t.getSession()||e.getSession();r&&vQ.closeSession(r),v6(),e.setSession(),t.setSession()}function v6(){let e=vX.getIsolationScope(),t=vX.getCurrentScope(),r=vX.getClient(),n=t.getSession()||e.getSession();n&&r&&r.captureSession(n)}vR.addEventProcessor=function(e){vX.getIsolationScope().addEventProcessor(e)},vR.captureCheckIn=v1,vR.captureEvent=function(e,t){return vX.getCurrentScope().captureEvent(e,t)},vR.captureException=function(e,t){return vX.getCurrentScope().captureException(e,v0.parseEventHintOrCaptureContext(t))},vR.captureMessage=function(e,t){let r="string"==typeof t?t:void 0,n="string"!=typeof t?{captureContext:t}:void 0;return vX.getCurrentScope().captureMessage(e,r,n)},vR.captureSession=function(e=!1){e?v2():v6()},vR.close=async function(e){let t=vX.getClient();return t?t.close(e):(vJ.DEBUG_BUILD&&vZ.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))},vR.endSession=v2,vR.flush=async function(e){let t=vX.getClient();return t?t.flush(e):(vJ.DEBUG_BUILD&&vZ.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))},vR.isEnabled=function(){let e=vX.getClient();return!!e&&!1!==e.getOptions().enabled&&!!e.getTransport()},vR.isInitialized=function(){return!!vX.getClient()},vR.lastEventId=function(){return vX.getIsolationScope().lastEventId()},vR.setContext=function(e,t){vX.getIsolationScope().setContext(e,t)},vR.setExtra=function(e,t){vX.getIsolationScope().setExtra(e,t)},vR.setExtras=function(e){vX.getIsolationScope().setExtras(e)},vR.setTag=function(e,t){vX.getIsolationScope().setTag(e,t)},vR.setTags=function(e){vX.getIsolationScope().setTags(e)},vR.setUser=function(e){vX.getIsolationScope().setUser(e)},vR.startSession=function(e){let t=vX.getClient(),r=vX.getIsolationScope(),n=vX.getCurrentScope(),{release:i,environment:o=vK.DEFAULT_ENVIRONMENT}=t&&t.getOptions()||{},{userAgent:a}=vZ.GLOBAL_OBJ.navigator||{},s=vQ.makeSession({release:i,environment:o,user:n.getUser()||r.getUser(),...a&&{userAgent:a},...e}),u=r.getSession();return u&&"ok"===u.status&&vQ.updateSession(u,{status:"exited"}),v2(),r.setSession(s),n.setSession(s),s},vR.withMonitor=function(e,t,r){let n=v1({monitorSlug:e,status:"in_progress"},r),i=vZ.timestampInSeconds();function o(t){v1({monitorSlug:e,status:t,checkInId:n,duration:vZ.timestampInSeconds()-i})}return vX.withIsolationScope(()=>{let e;try{e=t()}catch(e){throw o("error"),e}return vZ.isThenable(e)?Promise.resolve(e).then(()=>{o("ok")},()=>{o("error")}):o("ok"),e})};var v3={};Object.defineProperty(v3,"__esModule",{value:!0});let v4=hN,v5=gA;v3.SessionFlusher=class{constructor(e,t){this._client=e,this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._intervalId=setInterval(()=>this.flush(),1e3*this.flushTimeout),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=t}flush(){let e=this.getSessionAggregates();0!==e.aggregates.length&&(this._pendingAggregates={},this._client.sendSession(e))}getSessionAggregates(){let e=Object.keys(this._pendingAggregates).map(e=>this._pendingAggregates[parseInt(e)]),t={attrs:this._sessionAttrs,aggregates:e};return v4.dropUndefinedKeys(t)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;let e=v5.getIsolationScope(),t=e.getRequestSession();t&&t.status&&(this._incrementSessionStatusCount(t.status,new Date),e.setRequestSession(void 0))}_incrementSessionStatusCount(e,t){let r=new Date(t).setSeconds(0,0);this._pendingAggregates[r]=this._pendingAggregates[r]||{};let n=this._pendingAggregates[r];switch(n.started||(n.started=new Date(r).toISOString()),e){case"errored":return n.errored=(n.errored||0)+1,n.errored;case"ok":return n.exited=(n.exited||0)+1,n.exited;default:return n.crashed=(n.crashed||0)+1,n.crashed}}};var v8={};Object.defineProperty(v8,"__esModule",{value:!0});let v9=hN,v7="7";function _e(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}v8.getEnvelopeEndpointWithUrlEncodedAuth=function(e,t,r){return t||`${function(e){return`${_e(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return v9.urlEncode({sentry_key:e.publicKey,sentry_version:v7,...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,r)}`},v8.getReportDialogEndpoint=function(e,t){let r=v9.makeDsn(e);if(!r)return"";let n=`${_e(r)}embed/error-page/`,i=`dsn=${v9.dsnToString(r)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${n}?${i}`};var _t={},_r={};Object.defineProperty(_r,"__esModule",{value:!0});let _n=hN,_i=gA,_o=y6,_a=[];function _s(e,t,r){if(r[t.name])_o.DEBUG_BUILD&&_n.logger.log(`Integration skipped because it was already installed: ${t.name}`);else{if(r[t.name]=t,-1===_a.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),_a.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}_o.DEBUG_BUILD&&_n.logger.log(`Integration installed: ${t.name}`)}}_r.addIntegration=function(e){let t=_i.getClient();t?t.addIntegration(e):_o.DEBUG_BUILD&&_n.logger.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)},_r.afterSetupIntegrations=function(e,t){for(let r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)},_r.defineIntegration=function(e){return e},_r.getIntegrationsToSetup=function(e){let t=e.defaultIntegrations||[],r=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let n=function(e){let t={};return e.forEach(e=>{let{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.keys(t).map(e=>t[e])}(Array.isArray(r)?[...t,...r]:"function"==typeof r?_n.arrayify(r(t)):t),i=function(e,t){for(let r=0;r"Debug"===e.name);if(-1!==i){let[e]=n.splice(i,1);n.push(e)}return n},_r.installedIntegrations=_a,_r.setupIntegration=_s,_r.setupIntegrations=function(e,t){let r={};return t.forEach(t=>{t&&_s(e,t,r)}),r},Object.defineProperty(_t,"__esModule",{value:!0});let _u=hN,_c=v8,_l=gA,_f=y6,_d=bj,_h=_r,_p=gr,_m=bp,_y=bR,_g=vC,_b="Not capturing exception because it's already been captured.";function _v(e){return void 0===e.type}function __(e){return"transaction"===e.type}_t.BaseClient=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=_u.makeDsn(e.dsn):_f.DEBUG_BUILD&&_u.logger.warn("No DSN provided, client will not send events."),this._dsn){const t=_c.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,r){let n=_u.uuid4();if(_u.checkOrSetAlreadyCaught(e))return _f.DEBUG_BUILD&&_u.logger.log(_b),n;let i={event_id:n,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r))),i.event_id}captureMessage(e,t,r,n){let i={event_id:_u.uuid4(),...r},o=_u.isParameterizedString(e)?e:String(e),a=_u.isPrimitive(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(a.then(e=>this._captureEvent(e,i,n))),i.event_id}captureEvent(e,t,r){let n=_u.uuid4();if(t&&t.originalException&&_u.checkOrSetAlreadyCaught(t.originalException))return _f.DEBUG_BUILD&&_u.logger.log(_b),n;let i={event_id:n,...t},o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,o||r)),i.event_id}captureSession(e){"string"!=typeof e.release?_f.DEBUG_BUILD&&_u.logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),_p.updateSession(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>t.flush(e).then(e=>r&&e))):_u.resolvedSyncPromise(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];_h.setupIntegration(this,e,this._integrations),t||_h.afterSetupIntegrations(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=_d.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=_u.addItemToEnvelope(r,_u.createAttachmentEnvelopeItem(e));let n=this.sendEnvelope(r);n&&n.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=_d.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){let r=`${e}:${t}`;_f.DEBUG_BUILD&&_u.logger.log(`Adding outcome: "${r}"`),this._outcomes[r]=this._outcomes[r]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,e=>(_f.DEBUG_BUILD&&_u.logger.error("Error while sending event:",e),e)):(_f.DEBUG_BUILD&&_u.logger.error("Transport disabled"),_u.resolvedSyncPromise({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=_h.setupIntegrations(this,e),_h.afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,t){let r=!1,n=!1,i=t.exception&&t.exception.values;if(i)for(let e of(n=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){r=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&r)&&(_p.updateSession(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new _u.SyncPromise(t=>{let r=0,n=setInterval(()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n=_l.getIsolationScope()){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),_g.prepareEvent(i,e,t,r,this,n).then(e=>{if(null===e)return e;let t={...n.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:r,spanId:n,parentSpanId:i,dsc:o}=t;e.contexts={trace:_u.dropUndefinedKeys({trace_id:r,span_id:n,parent_span_id:i}),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:o||_m.getDynamicSamplingContextFromClient(r,this),...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then(e=>e.event_id,e=>{if(_f.DEBUG_BUILD){let t=e;"log"===t.logLevel?_u.logger.log(t.message):_u.logger.warn(t)}})}_processEvent(e,t,r){let n=this.getOptions(),{sampleRate:i}=n,o=__(e),a=_v(e),s=e.type||"error",u=`before send for type \`${s}\``,c=void 0===i?void 0:_y.parseSampleRate(i);if(a&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),_u.rejectedSyncPromise(new _u.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let l="replay_event"===s?"replay":s,f=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,r,f).then(r=>{if(null===r)throw this.recordDroppedEvent("event_processor",l,e),new _u.SentryError("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?r:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if(_u.isThenable(e))return e.then(e=>{if(!_u.isPlainObject(e)&&null!==e)throw new _u.SentryError(r);return e},e=>{throw new _u.SentryError(`${t} rejected with ${e}`)});if(!_u.isPlainObject(e)&&null!==e)throw new _u.SentryError(r);return e}(function(e,t,r){let{beforeSend:n,beforeSendTransaction:i,beforeSendSpan:o}=e;if(_v(t)&&n)return n(t,r);if(__(t)){if(t.spans&&o){let e=[];for(let r of t.spans){let t=o(r);t&&e.push(t)}t.spans=e}if(i)return i(t,r)}return t}(n,r,t),u)}).then(n=>{if(null===n)throw this.recordDroppedEvent("before_send",l,e),new _u.SentryError(`${u} returned \`null\`, will not send event.`,"log");let i=r&&r.getSession();!o&&i&&this._updateSessionFromEvent(i,n);let a=n.transaction_info;if(o&&a&&n.transaction!==e.transaction){let e="custom";n.transaction_info={...a,source:e}}return this.sendEvent(n,t),n}).then(null,e=>{if(e instanceof _u.SentryError)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new _u.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[r,n]=t.split(":");return{reason:r,category:n,quantity:e[t]}})}};var _S={},_E={};Object.defineProperty(_E,"__esModule",{value:!0});let _w=hN;_E.createCheckInEnvelope=function(e,t,r,n,i){let o={sent_at:(new Date).toISOString()};r&&r.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&i&&(o.dsn=_w.dsnToString(i)),t&&(o.trace=_w.dropUndefinedKeys(t));let a=function(e){return[{type:"check_in"},e]}(e);return _w.createEnvelope(o,[a])},Object.defineProperty(_S,"__esModule",{value:!0});let _T=hN,_x=_t,_A=_E,_O=gA,_M=y6,_R=v3,_C=hI,_I=go,_N=y3,_P=bp;class _k extends _x.BaseClient{constructor(e){_C.registerSpanErrorInstrumentation(),super(e)}eventFromException(e,t){return _T.resolvedSyncPromise(_T.eventFromUnknownInput(this,this._options.stackParser,e,t))}eventFromMessage(e,t="info",r){return _T.resolvedSyncPromise(_T.eventFromMessage(this._options.stackParser,e,t,r,this._options.attachStacktrace))}captureException(e,t,r){if(this._options.autoSessionTracking&&this._sessionFlusher){let e=_O.getIsolationScope().getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureException(e,t,r)}captureEvent(e,t,r){if(this._options.autoSessionTracking&&this._sessionFlusher&&"exception"===(e.type||"exception")&&e.exception&&e.exception.values&&e.exception.values.length>0){let e=_O.getIsolationScope().getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureEvent(e,t,r)}close(e){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(e)}initSessionFlusher(){let{release:e,environment:t}=this._options;e?this._sessionFlusher=new _R.SessionFlusher(this,{release:e,environment:t}):_M.DEBUG_BUILD&&_T.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}captureCheckIn(e,t,r){let n="checkInId"in e&&e.checkInId?e.checkInId:_T.uuid4();if(!this._isEnabled())return _M.DEBUG_BUILD&&_T.logger.warn("SDK not enabled, will not capture checkin."),n;let{release:i,environment:o,tunnel:a}=this.getOptions(),s={check_in_id:n,monitor_slug:e.monitorSlug,status:e.status,release:i,environment:o};"duration"in e&&(s.duration=e.duration),t&&(s.monitor_config={schedule:t.schedule,checkin_margin:t.checkinMargin,max_runtime:t.maxRuntime,timezone:t.timezone,failure_issue_threshold:t.failureIssueThreshold,recovery_threshold:t.recoveryThreshold});let[u,c]=this._getTraceInfoFromScope(r);c&&(s.contexts={trace:c});let l=_A.createCheckInEnvelope(s,u,this.getSdkMetadata(),a,this.getDsn());return _M.DEBUG_BUILD&&_T.logger.info("Sending checkin:",e.monitorSlug,e.status),this.sendEnvelope(l),n}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():_M.DEBUG_BUILD&&_T.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")}_prepareEvent(e,t,r,n){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:(e.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,t,r,n)}_getTraceInfoFromScope(e){if(!e)return[void 0,void 0];let t=_I._getSpanForScope(e);if(t){let e=_N.getRootSpan(t);return[_P.getDynamicSamplingContextFromSpan(e),_N.spanToTraceContext(e)]}let{traceId:r,spanId:n,parentSpanId:i,dsc:o}=e.getPropagationContext(),a={trace_id:r,span_id:n,parent_span_id:i};return o?[o,a]:[_P.getDynamicSamplingContextFromClient(r,this),a]}}_S.ServerRuntimeClient=_k;var _D={};Object.defineProperty(_D,"__esModule",{value:!0});let _L=hN,_j=gA,_U=y6;function _B(e){_j.getCurrentScope().setClient(e)}_D.initAndBind=function(e,t){!0===t.debug&&(_U.DEBUG_BUILD?_L.logger.enable():_L.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),_j.getCurrentScope().update(t.initialScope);let r=new e(t);_B(r),r.init()},_D.setCurrentClient=_B;var _F={};Object.defineProperty(_F,"__esModule",{value:!0});let _z=hN,_$=y6;function _V(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}_F.DEFAULT_TRANSPORT_BUFFER_SIZE=64,_F.createTransport=function(e,t,r=_z.makePromiseBuffer(e.bufferSize||64)){let n={};return{send:function(i){let o=[];if(_z.forEachEnvelopeItem(i,(t,r)=>{let i=_z.envelopeItemTypeToDataCategory(r);if(_z.isRateLimited(n,i)){let n=_V(t,r);e.recordDroppedEvent("ratelimit_backoff",i,n)}else o.push(t)}),0===o.length)return _z.resolvedSyncPromise({});let a=_z.createEnvelope(i[0],o),s=t=>{_z.forEachEnvelopeItem(a,(r,n)=>{let i=_V(r,n);e.recordDroppedEvent(t,_z.envelopeItemTypeToDataCategory(n),i)})};return r.add(()=>t({body:_z.serializeEnvelope(a)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&_$.DEBUG_BUILD&&_z.logger.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=_z.updateRateLimits(n,e),e),e=>{throw s("network_error"),e})).then(e=>e,e=>{if(e instanceof _z.SentryError)return _$.DEBUG_BUILD&&_z.logger.error("Skipped sending event because buffer is full."),s("queue_overflow"),_z.resolvedSyncPromise({});throw e})},flush:e=>r.drain(e)}};var _Y={};Object.defineProperty(_Y,"__esModule",{value:!0});let _q=hN,_H=y6,_W=5e3;_Y.MIN_DELAY=100,_Y.START_DELAY=_W,_Y.makeOfflineTransport=function(e){function t(...e){_H.DEBUG_BUILD&&_q.logger.info("[Offline]:",...e)}return r=>{let n=e(r);if(!r.createStore)throw Error("No `createStore` function was provided");let i=r.createStore(r),o,a=_W;function s(e){o&&clearTimeout(o),"number"!=typeof(o=setTimeout(async()=>{o=void 0;let e=await i.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=(new Date).toISOString(),c(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))&&o.unref&&o.unref()}function u(){o||(s(a),a=Math.min(2*a,36e5))}async function c(e,o=!1){if(!o&&_q.envelopeContainsItemType(e,["replay_event","replay_recording"]))return await i.push(e),s(100),{};try{let t=await n.send(e),r=100;if(t){if(t.headers&&t.headers["retry-after"])r=_q.parseRetryAfterHeader(t.headers["retry-after"]);else if(t.headers&&t.headers["x-sentry-rate-limits"])r=6e4;else if((t.statusCode||0)>=400)return t}return s(r),a=_W,t}catch(n){if(await function(e,t,n){return!_q.envelopeContainsItemType(e,["client_report"])&&(!r.shouldStore||r.shouldStore(e,t,n))}(e,n,a))return o?await i.unshift(e):await i.push(e),u(),t("Error sending. Event queued.",n),{};throw n}}return r.flushAtStartup&&u(),{send:c,flush:e=>n.flush(e)}}};var _G={};Object.defineProperty(_G,"__esModule",{value:!0});let _Z=hN,_K=v8;function _X(e,t){let r;return _Z.forEachEnvelopeItem(e,(e,n)=>(t.includes(n)&&(r=Array.isArray(e)?e[1]:void 0),!!r)),r}_G.eventFromEnvelope=_X,_G.makeMultiplexedTransport=function(e,t){return r=>{let n=e(r),i=new Map;function o(t,n){let o=n?`${t}:${n}`:t,a=i.get(o);if(!a){let s=_Z.dsnFromString(t);if(!s)return;let u=_K.getEnvelopeEndpointWithUrlEncodedAuth(s,r.tunnel);a=n?(function(e,t){return r=>{let n=e(r);return{...n,send:async e=>{let r=_X(e,["event","transaction","profile","replay_event"]);return r&&(r.release=t),n.send(e)}}}})(e,n)({...r,url:u}):e({...r,url:u}),i.set(o,a)}return[t,a]}return{send:async function(e){let r=t({envelope:e,getEvent:function(t){return _X(e,t&&t.length?t:["event"])}}).map(e=>"string"==typeof e?o(e,void 0):o(e.dsn,e.release)).filter(e=>!!e);return 0===r.length&&r.push(["",n]),(await Promise.all(r.map(([t,r])=>r.send(function(e,t){return _Z.createEnvelope(t?{...e[0],dsn:t}:e[0],e[1])}(e,t)))))[0]},flush:async function(e){let t=[...i.values(),n];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}};var _J={};function _Q(e){return"/"===e[e.length-1]?e.slice(0,-1):e}Object.defineProperty(_J,"__esModule",{value:!0}),_J.isSentryRequestUrl=function(e,t){let r=t&&t.getDsn(),n=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){return!!t&&_Q(e)===_Q(t)}(e,n)};var _0={};Object.defineProperty(_0,"__esModule",{value:!0}),_0.parameterize=function(e,...t){let r=new String(String.raw(e,...t));return r.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=t,r};var _1={};Object.defineProperty(_1,"__esModule",{value:!0});let _2=hN;_1.applySdkMetadata=function(e,t,r=[t],n="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${n}:@sentry/${e}`,version:_2.SDK_VERSION})),version:_2.SDK_VERSION}),e._metadata=i};var _6={};Object.defineProperty(_6,"__esModule",{value:!0});let _3=hN,_4=gA,_5=100;_6.addBreadcrumb=function(e,t){let r=_4.getClient(),n=_4.getIsolationScope();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=_5}=r.getOptions();if(o<=0)return;let a={timestamp:_3.dateTimestampInSeconds(),...e},s=i?_3.consoleSandbox(()=>i(a,t)):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,o))};var _8={};Object.defineProperty(_8,"__esModule",{value:!0});let _9=hN,_7=gA,Se=_r,St=new WeakMap;_8.functionToStringIntegration=Se.defineIntegration(()=>({name:"FunctionToString",setupOnce(){e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let r=_9.getOriginalFunction(this),n=St.has(_7.getClient())&&void 0!==r?r:this;return e.apply(n,t)}}catch(e){}},setup(e){St.set(e,!0)}}));var Sr={};Object.defineProperty(Sr,"__esModule",{value:!0});let Sn=hN,Si=y6,So=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/];function Sa(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&""!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(t):null}catch(t){return Si.DEBUG_BUILD&&Sn.logger.error(`Cannot extract url for event ${Sn.getEventDescription(e)}`),null}}Sr.inboundFiltersIntegration=_r.defineIntegration((e={})=>({name:"InboundFilters",processEvent:(t,r,n)=>!function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(Si.DEBUG_BUILD&&Sn.logger.warn(`Event dropped due to being internal Sentry Error. +Event: ${Sn.getEventDescription(e)}`),!0):!function(e,t){return!e.type&&!!t&&!!t.length&&(function(e){let t,r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(r.push(t.value),t.type&&r.push(`${t.type}: ${t.value}`)),r})(e).some(e=>Sn.stringMatchesSomePattern(e,t))}(e,t.ignoreErrors)?!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let r=e.transaction;return!!r&&Sn.stringMatchesSomePattern(r,t)}(e,t.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let r=Sa(e);return!!r&&Sn.stringMatchesSomePattern(r,t)}(e,t.denyUrls)?!function(e,t){if(!t||!t.length)return!0;let r=Sa(e);return!r||Sn.stringMatchesSomePattern(r,t)}(e,t.allowUrls)&&(Si.DEBUG_BUILD&&Sn.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Event: ${Sn.getEventDescription(e)}. +Url: ${Sa(e)}`),!0):(Si.DEBUG_BUILD&&Sn.logger.warn(`Event dropped due to being matched by \`denyUrls\` option. +Event: ${Sn.getEventDescription(e)}. +Url: ${Sa(e)}`),!0):(Si.DEBUG_BUILD&&Sn.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${Sn.getEventDescription(e)}`),!0):(Si.DEBUG_BUILD&&Sn.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${Sn.getEventDescription(e)}`),!0)}(t,function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:So],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,n.getOptions()))?t:null}));var Ss={};Object.defineProperty(Ss,"__esModule",{value:!0});let Su=hN;Ss.linkedErrorsIntegration=_r.defineIntegration((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){let o=i.getOptions();Su.applyAggregateErrorsToEvent(Su.exceptionFromError,o.stackParser,o.maxValueLength,r,t,e,n)}}});var Sc={},Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});let Sf=hN,Sd=new Map,Sh=new Set;function Sp(e,t){return function(e){if(Sf.GLOBAL_OBJ._sentryModuleMetadata)for(let t of Object.keys(Sf.GLOBAL_OBJ._sentryModuleMetadata)){let r=Sf.GLOBAL_OBJ._sentryModuleMetadata[t];if(!Sh.has(t)){for(let n of(Sh.add(t),e(t).reverse()))if(n.filename){Sd.set(n.filename,r);break}}}}(e),Sd.get(t)}Sl.addMetadataToStackFrames=function(e,t){try{t.exception.values.forEach(t=>{if(t.stacktrace)for(let r of t.stacktrace.frames||[]){if(!r.filename)continue;let t=Sp(e,r.filename);t&&(r.module_metadata=t)}})}catch(e){}},Sl.getMetadataForUrl=Sp,Sl.stripMetadataFromStackFrames=function(e){try{e.exception.values.forEach(e=>{if(e.stacktrace)for(let t of e.stacktrace.frames||[])delete t.module_metadata})}catch(e){}},Object.defineProperty(Sc,"__esModule",{value:!0});let Sm=hN,Sy=Sl;Sc.moduleMetadataIntegration=_r.defineIntegration(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{Sm.forEachEnvelopeItem(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(Sy.stripMetadataFromStackFrames(t),e[1]=t)}})})},processEvent(e,t,r){let n=r.getOptions().stackParser;return Sy.addMetadataToStackFrames(n,e),e}}));var Sg={};Object.defineProperty(Sg,"__esModule",{value:!0});let Sb=hN,Sv={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"};Sg.requestDataIntegration=_r.defineIntegration((e={})=>{let t={...Sv,...e,include:{...Sv.include,...e.include,user:e.include&&"boolean"==typeof e.include.user?e.include.user:{...Sv.include.user,...(e.include||{}).user}}};return{name:"RequestData",processEvent(e){let{sdkProcessingMetadata:r={}}=e,n=r.request;if(!n)return e;let i=function(e){let t,{transactionNamingScheme:r,include:{ip:n,user:i,...o}}=e,a=["method"];for(let[e,t]of Object.entries(o))t&&a.push(e);if(void 0===i)t=!0;else if("boolean"==typeof i)t=i;else{let e=[];for(let[t,r]of Object.entries(i))r&&e.push(t);t=e}return{include:{ip:n,user:t,request:0!==a.length?a:void 0,transaction:r}}}(t);return Sb.addRequestDataToEvent(e,n,i)}}});var S_={};Object.defineProperty(S_,"__esModule",{value:!0});let SS=hN,SE=gA,Sw=vR;S_.captureConsoleIntegration=_r.defineIntegration((e={})=>{let t=e.levels||SS.CONSOLE_LEVELS;return{name:"CaptureConsole",setup(e){"console"in SS.GLOBAL_OBJ&&SS.addConsoleInstrumentationHandler(({args:r,level:n})=>{SE.getClient()===e&&t.includes(n)&&function(e,t){let r={level:SS.severityLevelFromString(t),extra:{arguments:e}};SE.withScope(n=>{if(n.addEventProcessor(e=>(e.logger="console",SS.addExceptionMechanism(e,{handled:!1,type:"console"}),e)),"assert"===t){if(!e[0]){let t=`Assertion failed: ${SS.safeJoin(e.slice(1)," ")||"console.assert"}`;n.setExtra("arguments",e.slice(1)),Sw.captureMessage(t,r)}return}let i=e.find(e=>e instanceof Error);if(i)return void Sw.captureException(i,r);let o=SS.safeJoin(e," ");Sw.captureMessage(o,r)})}(r,n)})}}});var ST={};Object.defineProperty(ST,"__esModule",{value:!0});let Sx=hN;ST.debugIntegration=_r.defineIntegration((e={})=>{let t={debugger:!1,stringify:!1,...e};return{name:"Debug",setup(e){e.on("beforeSendEvent",(e,r)=>{t.debugger,Sx.consoleSandbox(()=>{t.stringify?(console.log(JSON.stringify(e,null,2)),r&&Object.keys(r).length&&console.log(JSON.stringify(r,null,2))):(console.log(e),r&&Object.keys(r).length&&console.log(r))})})}}});var SA={};Object.defineProperty(SA,"__esModule",{value:!0});let SO=hN,SM=y6,SR=_r.defineIntegration(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(SC(t,e))return SM.DEBUG_BUILD&&SO.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function SC(e,t){return!!t&&(!!function(e,t){let r=e.message,n=t.message;return(!!r||!!n)&&(!r||!!n)&&(!!r||!n)&&r===n&&!!SN(e,t)&&!!SI(e,t)&&!0}(e,t)||!!function(e,t){let r=SP(t),n=SP(e);return!!r&&!!n&&r.type===n.type&&r.value===n.value&&!!SN(e,t)&&!!SI(e,t)}(e,t))}function SI(e,t){let r=Sk(e),n=Sk(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e{let{depth:t=3,captureErrorCause:r=!0}=e;return{name:"ExtraErrorData",processEvent:(e,n)=>(function(e,t={},r,n){if(!t.originalException||!SL.isError(t.originalException))return e;let i=t.originalException.name||t.originalException.constructor.name,o=function(e,t){try{let r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],n={};for(let t of Object.keys(e)){if(-1!==r.indexOf(t))continue;let i=e[t];n[t]=SL.isError(i)?i.toString():i}if(t&&void 0!==e.cause&&(n.cause=SL.isError(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){let t=e.toJSON();for(let e of Object.keys(t)){let r=t[e];n[e]=SL.isError(r)?r.toString():r}}return n}catch(e){Sj.DEBUG_BUILD&&SL.logger.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,n);if(o){let t={...e.contexts},n=SL.normalize(o,r);return SL.isPlainObject(n)&&(SL.addNonEnumerableProperty(n,"__sentry_skip_normalization__",!0),t[i]=n),{...e,contexts:t}}return e})(e,n,t,r)}});var SU={};Object.defineProperty(SU,"__esModule",{value:!0});let SB=hN,SF=_r.defineIntegration((e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in SB.GLOBAL_OBJ&&void 0!==SB.GLOBAL_OBJ.window,i=e.iteratee||Sz({isBrowser:n,root:t,prefix:r});function o(e){return{...e,frames:e&&e.frames&&e.frames.map(e=>i(e))}}return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:o(e.stacktrace)}}))}}}catch(t){return e}}(t)),t}}});function Sz({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let i=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),o=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(i||o){let e=i?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,o=t?SB.relative(t,e):SB.basename(e);n.filename=`${r}${o}`}return n}}SU.generateIteratee=Sz,SU.rewriteFramesIntegration=SF;var S$={};Object.defineProperty(S$,"__esModule",{value:!0});let SV=hN;S$.sessionTimingIntegration=_r.defineIntegration(()=>{let e=1e3*SV.timestampInSeconds();return{name:"SessionTiming",processEvent(t){let r=1e3*SV.timestampInSeconds();return{...t,extra:{...t.extra,"session:start":e,"session:duration":r-e,"session:end":r}}}}});var SY={};Object.defineProperty(SY,"__esModule",{value:!0});let Sq=hN;function SH(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function SW(e){let t=new Set;for(let r of e.issues)r.path&&t.add(r.path[0]);let r=Array.from(t);return`Failed to validate keys: ${Sq.truncate(r.join(", "),100)}`}function SG(e,t,r){var n;return t.exception&&t.exception.values&&r&&r.originalException&&(n=r.originalException,Sq.isError(n)&&"ZodError"===n.name&&Array.isArray(n.errors))&&0!==r.originalException.issues.length?{...t,exception:{...t.exception,values:[{...t.exception.values[0],value:SW(r.originalException)},...t.exception.values.slice(1)]},extra:{...t.extra,"zoderror.issues":r.originalException.errors.slice(0,e).map(SH)}}:t}let SZ=_r.defineIntegration((e={})=>{let t=e.limit||10;return{name:"ZodErrors",processEvent:(e,r)=>SG(t,e,r)}});SY.applyZodErrorsToEvent=SG,SY.zodErrorsIntegration=SZ;var SK={},SX={};Object.defineProperty(SX,"__esModule",{value:!0}),SX.COUNTER_METRIC_TYPE="c",SX.DEFAULT_BROWSER_FLUSH_INTERVAL=5e3,SX.DEFAULT_FLUSH_INTERVAL=1e4,SX.DISTRIBUTION_METRIC_TYPE="d",SX.GAUGE_METRIC_TYPE="g",SX.MAX_WEIGHT=1e4,SX.SET_METRIC_TYPE="s",Object.defineProperty(SK,"__esModule",{value:!0});let SJ=hN,SQ=gA,S0=y6,S1=y3,S2=bf,S6=bd,S3=SX;function S4(e,t){let r=SJ.getGlobalSingleton("globalMetricsAggregators",()=>new WeakMap),n=r.get(e);if(n)return n;let i=new t(e);return e.on("flush",()=>i.flush()),e.on("close",()=>i.close()),r.set(e,i),i}function S5(e,t,r,n,i={}){let o=i.client||SQ.getClient();if(!o)return;let a=S1.getActiveSpan(),s=a?S1.getRootSpan(a):void 0,u=s&&S1.spanToJSON(s).description,{unit:c,tags:l,timestamp:f}=i,{release:d,environment:h}=o.getOptions(),p={};d&&(p.release=d),h&&(p.environment=h),u&&(p.transaction=u),S0.DEBUG_BUILD&&SJ.logger.log(`Adding value of ${n} to ${t} metric ${r}`),S4(o,e).add(t,r,n,c,{...p,...l},f)}function S8(e,t,r,n){S5(e,S3.DISTRIBUTION_METRIC_TYPE,t,S9(r),n)}function S9(e){return"string"==typeof e?parseInt(e):e}SK.metrics={increment:function(e,t,r=1,n){S5(e,S3.COUNTER_METRIC_TYPE,t,S9(r),n)},distribution:S8,set:function(e,t,r,n){S5(e,S3.SET_METRIC_TYPE,t,r,n)},gauge:function(e,t,r,n){S5(e,S3.GAUGE_METRIC_TYPE,t,S9(r),n)},timing:function(e,t,r,n="second",i){if("function"==typeof r){let n=SJ.timestampInSeconds();return S2.startSpanManual({op:"metrics.timing",name:t,startTime:n,onlyIfParent:!0},o=>S6.handleCallbackErrors(()=>r(),()=>{},()=>{let r=SJ.timestampInSeconds();S8(e,t,r-n,{...i,unit:"second"}),o.end(r)}))}S8(e,t,r,{...i,unit:n})},getMetricsAggregatorForClient:S4};var S7={},Ee={},Et={},Er={};Object.defineProperty(Er,"__esModule",{value:!0});let En=hN;function Ei(e){return e.replace(/[^\w\-./]+/gi,"")}let Eo=[["\n","\\n"],["\r","\\r"],[" ","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Ea(e){return[...e].reduce((e,t)=>e+function(e){for(let[t,r]of Eo)if(e===t)return r;return e}(t),"")}Er.getBucketKey=function(e,t,r,n){let i=Object.entries(En.dropUndefinedKeys(n)).sort((e,t)=>e[0].localeCompare(t[0]));return`${e}${t}${r}${i}`},Er.sanitizeMetricKey=function(e){return e.replace(/[^\w\-.]+/gi,"_")},Er.sanitizeTags=function(e){let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[Ei(r)]=Ea(String(e[r])));return t},Er.sanitizeUnit=function(e){return e.replace(/[^\w]+/gi,"_")},Er.serializeMetricBuckets=function(e){let t="";for(let r of e){let e=Object.entries(r.tags),n=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(",")}`:"";t+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${n}|T${r.timestamp} +`}return t},Er.simpleHash=function(e){let t=0;for(let r=0;r>>0},Object.defineProperty(Et,"__esModule",{value:!0});let Es=hN,Eu=Er;function Ec(e,t,r,n){let i={sent_at:(new Date).toISOString()};r&&r.sdk&&(i.sdk={name:r.sdk.name,version:r.sdk.version}),n&&t&&(i.dsn=Es.dsnToString(t));let o=function(e){let t=Eu.serializeMetricBuckets(e);return[{type:"statsd",length:t.length},t]}(e);return Es.createEnvelope(i,[o])}Et.captureAggregateMetrics=function(e,t){Es.logger.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);let r=Ec(t,e.getDsn(),e.getSdkMetadata(),e.getOptions().tunnel);e.sendEnvelope(r)},Et.createMetricEnvelope=Ec;var El={};Object.defineProperty(El,"__esModule",{value:!0});let Ef=SX,Ed=Er;class Eh{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}}class Ep{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,ethis._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}}class Em{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}}class Ey{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>"string"==typeof e?Ed.simpleHash(e):e).join(":")}}let Eg={[Ef.COUNTER_METRIC_TYPE]:Eh,[Ef.GAUGE_METRIC_TYPE]:Ep,[Ef.DISTRIBUTION_METRIC_TYPE]:Em,[Ef.SET_METRIC_TYPE]:Ey};El.CounterMetric=Eh,El.DistributionMetric=Em,El.GaugeMetric=Ep,El.METRIC_MAP=Eg,El.SetMetric=Ey,Object.defineProperty(Ee,"__esModule",{value:!0});let Eb=hN,Ev=y3,E_=SX,ES=Et,EE=El,Ew=Er;Ee.MetricsAggregator=class{constructor(e){this._client=e,this._buckets=new Map,this._bucketsTotalWeight=0,this._interval=setInterval(()=>this._flush(),E_.DEFAULT_FLUSH_INTERVAL),this._interval.unref&&this._interval.unref(),this._flushShift=Math.floor(Math.random()*E_.DEFAULT_FLUSH_INTERVAL/1e3),this._forceFlush=!1}add(e,t,r,n="none",i={},o=Eb.timestampInSeconds()){let a=Math.floor(o),s=Ew.sanitizeMetricKey(t),u=Ew.sanitizeTags(i),c=Ew.sanitizeUnit(n),l=Ew.getBucketKey(e,s,c,u),f=this._buckets.get(l),d=f&&e===E_.SET_METRIC_TYPE?f.metric.weight:0;f?(f.metric.add(r),f.timestamp=E_.MAX_WEIGHT&&this.flush()}flush(){this._forceFlush=!0,this._flush()}close(){this._forceFlush=!0,clearInterval(this._interval),this._flush()}_flush(){if(this._forceFlush)return this._forceFlush=!1,this._bucketsTotalWeight=0,this._captureMetrics(this._buckets),void this._buckets.clear();let e=Math.floor(Eb.timestampInSeconds())-E_.DEFAULT_FLUSH_INTERVAL/1e3-this._flushShift,t=new Map;for(let[r,n]of this._buckets)n.timestamp<=e&&(t.set(r,n),this._bucketsTotalWeight-=n.metric.weight);for(let[e]of t)this._buckets.delete(e);this._captureMetrics(t)}_captureMetrics(e){if(e.size>0){let t=Array.from(e).map(([,e])=>e);ES.captureAggregateMetrics(this._client,t)}}},Object.defineProperty(S7,"__esModule",{value:!0});let ET=Ee,Ex=SK;S7.metricsDefault={increment:function(e,t=1,r){Ex.metrics.increment(ET.MetricsAggregator,e,t,r)},distribution:function(e,t,r){Ex.metrics.distribution(ET.MetricsAggregator,e,t,r)},set:function(e,t,r){Ex.metrics.set(ET.MetricsAggregator,e,t,r)},gauge:function(e,t,r){Ex.metrics.gauge(ET.MetricsAggregator,e,t,r)},timing:function(e,t,r="second",n){return Ex.metrics.timing(ET.MetricsAggregator,e,t,r,n)},getMetricsAggregatorForClient:function(e){return Ex.metrics.getMetricsAggregatorForClient(e,ET.MetricsAggregator)}};var EA={};Object.defineProperty(EA,"__esModule",{value:!0});let EO=hN,EM=y3,ER=SX,EC=Et,EI=El,EN=Er;EA.BrowserMetricsAggregator=class{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),ER.DEFAULT_BROWSER_FLUSH_INTERVAL)}add(e,t,r,n="none",i={},o=EO.timestampInSeconds()){let a=Math.floor(o),s=EN.sanitizeMetricKey(t),u=EN.sanitizeTags(i),c=EN.sanitizeUnit(n),l=EN.getBucketKey(e,s,c,u),f=this._buckets.get(l),d=f&&e===ER.SET_METRIC_TYPE?f.metric.weight:0;f?(f.metric.add(r),f.timestamptypeof Request&&Ek.isInstanceOf(e,Request)?e.headers:void 0);if(f){if("u">typeof Headers&&Ek.isInstanceOf(f,Headers)){let e=new Headers(f);return e.append("sentry-trace",c),l&&e.append(Ek.BAGGAGE_HEADER_NAME,l),e}if(Array.isArray(f)){let e=[...f,["sentry-trace",c]];return l&&e.push([Ek.BAGGAGE_HEADER_NAME,l]),e}{let e="baggage"in f?f.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),l&&t.push(l),{...f,"sentry-trace":c,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":c,baggage:l}}EP.addTracingHeadersToFetchRequest=EV,EP.instrumentFetchRequest=function(e,t,r,n,i="auto.http.browser"){if(!e.fetchData)return;let o=Ej.hasTracingEnabled()&&t(e.fetchData.url);if(e.endTimestamp&&o){let t=e.fetchData.__span;if(!t)return;let r=n[t];return void(r&&(!function(e,t){if(t.response){EF.setHttpStatus(e,t.response.status);let r=t.response&&t.response.headers&&t.response.headers.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:EF.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(r,e),delete n[t]))}let a=ED.getCurrentScope(),s=ED.getClient(),{method:u,url:c}=e.fetchData,l=function(e){try{return new URL(e).href}catch(e){return}}(c),f=l?Ek.parseUrl(l).host:void 0,d=!!EU.getActiveSpan(),h=o&&d?Ez.startInactiveSpan({name:`${u} ${c}`,attributes:{url:c,type:"fetch","http.method":u,"http.url":l,"server.address":f,[EL.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:i,[EL.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"}}):new EB.SentryNonRecordingSpan;if(e.fetchData.__span=h.spanContext().spanId,n[h.spanContext().spanId]=h,r(e.fetchData.url)&&s){let t=e.args[0];e.args[1]=e.args[1]||{};let r=e.args[1];r.headers=EV(t,s,a,r,Ej.hasTracingEnabled()&&d?h:void 0)}return h};var EY={};Object.defineProperty(EY,"__esModule",{value:!0});let Eq=hN,EH=gA,EW=vR,EG=gD,EZ=bf,EK={mechanism:{handled:!1,data:{function:"trpcMiddleware"}}};EY.trpcMiddleware=function(e={}){return function(t){let{path:r,type:n,next:i,rawInput:o}=t,a=EH.getClient(),s=a&&a.getOptions(),u={procedure_type:n};function c(e){"object"==typeof e&&null!==e&&"ok"in e&&!e.ok&&"error"in e&&EW.captureException(e.error,EK)}return(void 0!==e.attachRpcInput?e.attachRpcInput:s&&s.sendDefaultPii)&&(u.input=Eq.normalize(o)),EW.setContext("trpc",u),EZ.startSpanManual({name:`trpc/${r}`,op:"rpc.server",attributes:{[EG.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[EG.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"}},e=>{let t;try{t=i()}catch(t){throw EW.captureException(t,EK),e.end(),t}return Eq.isThenable(t)?t.then(t=>(c(t),e.end(),t),t=>{throw EW.captureException(t,EK),e.end(),t}):(c(t),e.end(),t)})}};var EX={};Object.defineProperty(EX,"__esModule",{value:!0});let EJ=hN,EQ=gA;EX.captureFeedback=function(e,t={},r=EQ.getCurrentScope()){let{message:n,name:i,email:o,url:a,source:s,associatedEventId:u}=e,c={contexts:{feedback:EJ.dropUndefinedKeys({contact_email:o,name:i,message:n,url:a,source:s,associated_event_id:u})},type:"feedback",level:"info"},l=r&&r.getClient()||EQ.getClient();return l&&l.emit("beforeSendFeedback",c,t),r.captureEvent(c,t)};var E0={};Object.defineProperty(E0,"__esModule",{value:!0});let E1=_6,E2=gA,E6=vR;function E3(){return{bindClient(e){E2.getCurrentScope().setClient(e)},withScope:E2.withScope,getClient:()=>E2.getClient(),getScope:E2.getCurrentScope,getIsolationScope:E2.getIsolationScope,captureException:(e,t)=>E2.getCurrentScope().captureException(e,t),captureMessage:(e,t,r)=>E2.getCurrentScope().captureMessage(e,t,r),captureEvent:E6.captureEvent,addBreadcrumb:E1.addBreadcrumb,setUser:E6.setUser,setTags:E6.setTags,setTag:E6.setTag,setExtra:E6.setExtra,setExtras:E6.setExtras,setContext:E6.setContext,getIntegration(e){let t=E2.getClient();return t&&t.getIntegrationByName(e.id)||null},startSession:E6.startSession,endSession:E6.endSession,captureSession(e){if(e)return E6.endSession();!function(){let e=E2.getCurrentScope(),t=E2.getClient(),r=e.getSession();t&&r&&t.captureSession(r)}()}}}E0.getCurrentHub=E3,E0.getCurrentHubShim=E3,Object.defineProperty(hC,"__esModule",{value:!0});let E4=g7,E5=bn,E8=bo,E9=bL,E7=bu,we=gL,wt=bf,wr=bp,wn=bz,wi=bM,wo=bT,wa=gD,ws=bj,wu=vR,wc=gA,wl=ge,wf=y4,wd=y5,wh=gr,wp=v3,wm=gt,wy=vI,wg=v8,wb=_t,wv=_S,w_=_D,wS=_F,wE=_Y,ww=_G,wT=_r,wx=vk,wA=vC,wO=_E,wM=ba,wR=_J,wC=bd,wI=_0,wN=y3,wP=bR,wk=_1,wD=bm,wL=_6,wj=_8,wU=Sr,wB=Ss,wF=Sc,wz=Sg,w$=S_,wV=ST,wY=SA,wq=SD,wH=SU,wW=S$,wG=SY,wZ=SK,wK=S7,wX=EA,wJ=gN,wQ=EP,w0=EY,w1=EX,w2=E0,w6=hN;hC.registerSpanErrorInstrumentation=hI.registerSpanErrorInstrumentation,hC.getCapturedScopesOnSpan=E4.getCapturedScopesOnSpan,hC.setCapturedScopesOnSpan=E4.setCapturedScopesOnSpan,hC.addTracingExtensions=E5.addTracingExtensions,hC.TRACING_DEFAULTS=E8.TRACING_DEFAULTS,hC.startIdleSpan=E8.startIdleSpan,hC.SentrySpan=E9.SentrySpan,hC.SentryNonRecordingSpan=E7.SentryNonRecordingSpan,hC.SPAN_STATUS_ERROR=we.SPAN_STATUS_ERROR,hC.SPAN_STATUS_OK=we.SPAN_STATUS_OK,hC.SPAN_STATUS_UNSET=we.SPAN_STATUS_UNSET,hC.getSpanStatusFromHttpCode=we.getSpanStatusFromHttpCode,hC.setHttpStatus=we.setHttpStatus,hC.continueTrace=wt.continueTrace,hC.startInactiveSpan=wt.startInactiveSpan,hC.startNewTrace=wt.startNewTrace,hC.startSpan=wt.startSpan,hC.startSpanManual=wt.startSpanManual,hC.suppressTracing=wt.suppressTracing,hC.withActiveSpan=wt.withActiveSpan,hC.getDynamicSamplingContextFromClient=wr.getDynamicSamplingContextFromClient,hC.getDynamicSamplingContextFromSpan=wr.getDynamicSamplingContextFromSpan,hC.spanToBaggageHeader=wr.spanToBaggageHeader,hC.setMeasurement=wn.setMeasurement,hC.timedEventsToMeasurements=wn.timedEventsToMeasurements,hC.sampleSpan=wi.sampleSpan,hC.logSpanEnd=wo.logSpanEnd,hC.logSpanStart=wo.logSpanStart,hC.SEMANTIC_ATTRIBUTE_CACHE_HIT=wa.SEMANTIC_ATTRIBUTE_CACHE_HIT,hC.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=wa.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,hC.SEMANTIC_ATTRIBUTE_CACHE_KEY=wa.SEMANTIC_ATTRIBUTE_CACHE_KEY,hC.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=wa.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,hC.SEMANTIC_ATTRIBUTE_PROFILE_ID=wa.SEMANTIC_ATTRIBUTE_PROFILE_ID,hC.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=wa.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,hC.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=wa.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,hC.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=wa.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,hC.SEMANTIC_ATTRIBUTE_SENTRY_OP=wa.SEMANTIC_ATTRIBUTE_SENTRY_OP,hC.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=wa.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,hC.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=wa.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,hC.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=wa.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,hC.createEventEnvelope=ws.createEventEnvelope,hC.createSessionEnvelope=ws.createSessionEnvelope,hC.createSpanEnvelope=ws.createSpanEnvelope,hC.addEventProcessor=wu.addEventProcessor,hC.captureCheckIn=wu.captureCheckIn,hC.captureEvent=wu.captureEvent,hC.captureException=wu.captureException,hC.captureMessage=wu.captureMessage,hC.captureSession=wu.captureSession,hC.close=wu.close,hC.endSession=wu.endSession,hC.flush=wu.flush,hC.isEnabled=wu.isEnabled,hC.isInitialized=wu.isInitialized,hC.lastEventId=wu.lastEventId,hC.setContext=wu.setContext,hC.setExtra=wu.setExtra,hC.setExtras=wu.setExtras,hC.setTag=wu.setTag,hC.setTags=wu.setTags,hC.setUser=wu.setUser,hC.startSession=wu.startSession,hC.withMonitor=wu.withMonitor,hC.getClient=wc.getClient,hC.getCurrentScope=wc.getCurrentScope,hC.getGlobalScope=wc.getGlobalScope,hC.getIsolationScope=wc.getIsolationScope,hC.withIsolationScope=wc.withIsolationScope,hC.withScope=wc.withScope,hC.getDefaultCurrentScope=wl.getDefaultCurrentScope,hC.getDefaultIsolationScope=wl.getDefaultIsolationScope,hC.setAsyncContextStrategy=wf.setAsyncContextStrategy,hC.getMainCarrier=wd.getMainCarrier,hC.closeSession=wh.closeSession,hC.makeSession=wh.makeSession,hC.updateSession=wh.updateSession,hC.SessionFlusher=wp.SessionFlusher,hC.Scope=wm.Scope,hC.notifyEventProcessors=wy.notifyEventProcessors,hC.getEnvelopeEndpointWithUrlEncodedAuth=wg.getEnvelopeEndpointWithUrlEncodedAuth,hC.getReportDialogEndpoint=wg.getReportDialogEndpoint,hC.BaseClient=wb.BaseClient,hC.ServerRuntimeClient=wv.ServerRuntimeClient,hC.initAndBind=w_.initAndBind,hC.setCurrentClient=w_.setCurrentClient,hC.createTransport=wS.createTransport,hC.makeOfflineTransport=wE.makeOfflineTransport,hC.makeMultiplexedTransport=ww.makeMultiplexedTransport,hC.addIntegration=wT.addIntegration,hC.defineIntegration=wT.defineIntegration,hC.getIntegrationsToSetup=wT.getIntegrationsToSetup,hC.applyScopeDataToEvent=wx.applyScopeDataToEvent,hC.mergeScopeData=wx.mergeScopeData,hC.prepareEvent=wA.prepareEvent,hC.createCheckInEnvelope=wO.createCheckInEnvelope,hC.hasTracingEnabled=wM.hasTracingEnabled,hC.isSentryRequestUrl=wR.isSentryRequestUrl,hC.handleCallbackErrors=wC.handleCallbackErrors,hC.parameterize=wI.parameterize,hC.addChildSpanToSpan=wN.addChildSpanToSpan,hC.getActiveSpan=wN.getActiveSpan,hC.getRootSpan=wN.getRootSpan,hC.getSpanDescendants=wN.getSpanDescendants,hC.getStatusMessage=wN.getStatusMessage,hC.spanIsSampled=wN.spanIsSampled,hC.spanToJSON=wN.spanToJSON,hC.spanToTraceContext=wN.spanToTraceContext,hC.spanToTraceHeader=wN.spanToTraceHeader,hC.parseSampleRate=wP.parseSampleRate,hC.applySdkMetadata=wk.applySdkMetadata,hC.DEFAULT_ENVIRONMENT=wD.DEFAULT_ENVIRONMENT,hC.addBreadcrumb=wL.addBreadcrumb,hC.functionToStringIntegration=wj.functionToStringIntegration,hC.inboundFiltersIntegration=wU.inboundFiltersIntegration,hC.linkedErrorsIntegration=wB.linkedErrorsIntegration,hC.moduleMetadataIntegration=wF.moduleMetadataIntegration,hC.requestDataIntegration=wz.requestDataIntegration,hC.captureConsoleIntegration=w$.captureConsoleIntegration,hC.debugIntegration=wV.debugIntegration,hC.dedupeIntegration=wY.dedupeIntegration,hC.extraErrorDataIntegration=wq.extraErrorDataIntegration,hC.rewriteFramesIntegration=wH.rewriteFramesIntegration,hC.sessionTimingIntegration=wW.sessionTimingIntegration,hC.zodErrorsIntegration=wG.zodErrorsIntegration,hC.metrics=wZ.metrics,hC.metricsDefault=wK.metricsDefault,hC.BrowserMetricsAggregator=wX.BrowserMetricsAggregator,hC.getMetricSummaryJsonForSpan=wJ.getMetricSummaryJsonForSpan,hC.addTracingHeadersToFetchRequest=wQ.addTracingHeadersToFetchRequest,hC.instrumentFetchRequest=wQ.instrumentFetchRequest,hC.trpcMiddleware=w0.trpcMiddleware,hC.captureFeedback=w1.captureFeedback,hC.getCurrentHub=w2.getCurrentHub,hC.getCurrentHubShim=w2.getCurrentHubShim,hC.SDK_VERSION=w6.SDK_VERSION;var w3={name:"@hyperdx/instrumentation-exception",author:"Warren ",license:"Apache-2.0",version:"0.1.0",homepage:"https://www.hyperdx.io",repository:{type:"git",url:"https://github.com/hyperdxio/hyperdx-js.git"},publishConfig:{access:"public"},files:["build/*"],main:"build/src/index.js",scripts:{clean:"rimraf coverage build tmp",prebuild:"npm run clean",build:"tsc -p tsconfig.release.json",postbuild:"npm run build:types","build:types":"tsc -d -p tsconfig.release.json --declarationMap --emitDeclarationOnly","build:watch":"tsc -w -p tsconfig.json",lint:"eslint . --ext .ts --ext .mts","ci:lint":"yarn lint && yarn tsc --noEmit",prettier:"prettier --config .prettierrc --write .",test:"jest","test:watch":"jest --watch"},dependencies:{"@hyperdx/instrumentation-sentry-node":"^0.1.0","@opentelemetry/core":"^1.24.1","@opentelemetry/instrumentation":"^0.51.1","@opentelemetry/semantic-conventions":"^1.24.1","@sentry/core":"^8.7.0","@sentry/types":"^8.7.0","@sentry/utils":"^8.7.0","json-stringify-safe":"^5.0.1",shimmer:"^1.2.1",tslib:"^2.5.3"},devDependencies:{"@opentelemetry/api":"^1.8.0","@types/jest":"^29.5.12",jest:"^29.7.0","ts-jest":"^29.1.4"},peerDependencies:{"@opentelemetry/api":"^1.3.0"},keywords:["exception","instrumentation","nodejs","opentelemetry","tracing"]},w4={};Object.defineProperty(w4,"__esModule",{value:!0}),w4.eventFromUnknownInput=w4.eventFromMessage=w4.eventFromException=w4.exceptionFromError=void 0;let w5=hC,w8=hN;function w9(e,t){let r=Tt(e,t),n={type:t&&t.name,value:Tn(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function w7(e,t,r,n){let i=(0,w5.getClient)(),o=i&&i.getOptions().normalizeDepth,a=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(t),s={__serialized__:(0,w8.normalizeToSize)(t,o)};if(a)return{exception:{values:[w9(e,a)]},extra:s};let u={exception:{values:[{type:(0,w8.isEvent)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:Ta(t,{isUnhandledRejection:n})}]},extra:s};if(r){let t=Tt(e,r);t.length&&(u.exception.values[0].stacktrace={frames:t})}return u}function Te(e,t){return{exception:{values:[w9(e,t)]}}}function Tt(e,t){let r=t.stacktrace||t.stack||"",n=function(e){return e&&Tr.test(e.message)?1:0}(t),i=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(r,n,i)}catch(e){}return[]}w4.exceptionFromError=w9;let Tr=/Minified React error #\d+;/i;function Tn(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Ti(e,t,r,n,i){let o;if((0,w8.isErrorEvent)(t)&&t.error)return Te(e,t.error);if((0,w8.isDOMError)(t)||(0,w8.isDOMException)(t)){let i=t;if("stack"in t)o=Te(e,t);else{let t=i.name||((0,w8.isDOMError)(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;o=To(e,a,r,n),(0,w8.addExceptionTypeValue)(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return(0,w8.isError)(t)?Te(e,t):((0,w8.isPlainObject)(t)||(0,w8.isEvent)(t)?o=w7(e,t,r,i):(o=To(e,t,r,n),(0,w8.addExceptionTypeValue)(o,`${t}`,void 0)),(0,w8.addExceptionMechanism)(o,{synthetic:!0}),o)}function To(e,t,r,n){let i={};if(n&&r){let n=Tt(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]})}if((0,w8.isParameterizedString)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}function Ta(e,{isUnhandledRejection:t}){let r=(0,w8.extractExceptionKeysForMessage)(e),n=t?"promise rejection":"exception";return(0,w8.isErrorEvent)(e)?`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``:(0,w8.isEvent)(e)?`Event \`${function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}w4.eventFromException=function(e,t,r,n){let i=Ti(e,t,r&&r.syntheticException||void 0,n);return(0,w8.addExceptionMechanism)(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),(0,w8.resolvedSyncPromise)(i)},w4.eventFromMessage=function(e,t,r="info",n,i){let o=To(e,t,n&&n.syntheticException||void 0,i);return o.level=r,n&&n.event_id&&(o.event_id=n.event_id),(0,w8.resolvedSyncPromise)(o)},w4.eventFromUnknownInput=Ti;var Ts={},Tu={};Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.wrap=Tu.ignoreNextOnError=Tu.shouldIgnoreOnError=Tu.WINDOW=void 0;let Tc=hC,Tl=hN;Tu.WINDOW=Tl.GLOBAL_OBJ;let Tf=0;function Td(){Tf++,setTimeout(()=>{Tf--})}Tu.shouldIgnoreOnError=function(){return Tf>0},Tu.ignoreNextOnError=Td,Tu.wrap=function e(t,r={},n){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e)return e;if((0,Tl.getOriginalFunction)(t))return t}catch(e){return t}let i=function(){let i=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let o=i.map(t=>e(t,r));return t.apply(this,o)}catch(e){throw Td(),(0,Tc.withScope)(t=>{t.addEventProcessor(e=>(r.mechanism&&((0,Tl.addExceptionTypeValue)(e,void 0,void 0),(0,Tl.addExceptionMechanism)(e,r.mechanism)),e.extra={...e.extra,arguments:i},e)),(0,Tc.captureException)(e)}),e}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=t[e])}catch(e){}(0,Tl.markFunctionWrapped)(i,t),(0,Tl.addNonEnumerableProperty)(t,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>t.name})}catch(e){}return i},Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.browserApiErrorsIntegration=void 0;let Th=hN,Tp=Tu,Tm=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];function Ty(e){return function(...t){let r=t[0];return t[0]=(0,Tp.wrap)(r,{mechanism:{data:{function:(0,Th.getFunctionName)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Tg(e){return function(t){return e.apply(this,[(0,Tp.wrap)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,Th.getFunctionName)(e)},handled:!1,type:"instrument"}})])}}function Tb(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,Th.fill)(r,e,function(t){let r={mechanism:{data:{function:e,handler:(0,Th.getFunctionName)(t)},handled:!1,type:"instrument"}},n=(0,Th.getOriginalFunction)(t);return n&&(r.mechanism.data.handler=(0,Th.getFunctionName)(n)),(0,Tp.wrap)(t,r)})}),e.apply(this,t)}}function Tv(e){let t=Tp.WINDOW,r=t[e]&&t[e].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,Th.fill)(r,"addEventListener",function(t){return function(r,n,i){try{"function"==typeof n.handleEvent&&(n.handleEvent=(0,Tp.wrap)(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,Th.getFunctionName)(n),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[r,(0,Tp.wrap)(n,{mechanism:{data:{function:"addEventListener",handler:(0,Th.getFunctionName)(n),target:e},handled:!1,type:"instrument"}}),i])}}),(0,Th.fill)(r,"removeEventListener",function(e){return function(t,r,n){let i=r;try{let r=i&&i.__sentry_wrapped__;r&&e.call(this,t,r,n)}catch(e){}return e.call(this,t,i,n)}}))}Ts.browserApiErrorsIntegration=(0,hC.defineIntegration)((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,Th.fill)(Tp.WINDOW,"setTimeout",Ty),t.setInterval&&(0,Th.fill)(Tp.WINDOW,"setInterval",Ty),t.requestAnimationFrame&&(0,Th.fill)(Tp.WINDOW,"requestAnimationFrame",Tg),t.XMLHttpRequest&&"XMLHttpRequest"in Tp.WINDOW&&(0,Th.fill)(XMLHttpRequest.prototype,"send",Tb);let e=t.eventTarget;e&&(Array.isArray(e)?e:Tm).forEach(Tv)}}});var T_={};Object.defineProperty(T_,"__esModule",{value:!0}),T_.applySourceContextToFrame=T_.contextLinesIntegration=void 0;let TS=hC,TE=hN,Tw=TE.GLOBAL_OBJ;function TT(e,t,r,n){return e.filename===r&&e.lineno&&t.length&&(0,TE.addContextToFrame)(t,e,n),e}T_.contextLinesIntegration=(0,TS.defineIntegration)((e={})=>{let t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>(function(e,t){let r=Tw.document,n=Tw.location&&(0,TE.stripUrlQueryAndFragment)(Tw.location.href);if(!r||!n)return e;let i=e.exception&&e.exception.values;if(!i||!i.length)return e;let o=r.documentElement.innerHTML;if(!o)return e;let a=["","",...o.split("\n"),""];return i.forEach(e=>{let r=e.stacktrace;r&&r.frames&&(r.frames=r.frames.map(e=>TT(e,a,n,t)))}),e})(e,t)}}),T_.applySourceContextToFrame=TT;var Tx={};Object.defineProperty(Tx,"__esModule",{value:!0}),Tx.httpContextIntegration=void 0;let TA=Tu;Tx.httpContextIntegration=(0,hC.defineIntegration)(()=>({name:"HttpContext",preprocessEvent(e){if(!TA.WINDOW.navigator&&!TA.WINDOW.location&&!TA.WINDOW.document)return;let t=e.request&&e.request.url||TA.WINDOW.location&&TA.WINDOW.location.href,{referrer:r}=TA.WINDOW.document||{},{userAgent:n}=TA.WINDOW.navigator||{},i={...e.request&&e.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},o={...e.request,...t&&{url:t},headers:i};e.request=o}}));var TO={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hyperdxIntegration=e._hyperdxIntegration=void 0;let t=hC;e._hyperdxIntegration=(e={})=>({name:"HyperDX",processEvent(e){var t,r,n,i,o,a,s,u;let c=function(e){let t,r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(r.push(t.value),t.type&&r.push(`${t.type}: ${t.value}`)),r}(e);c.length>0&&(e.message=c[c.length-1]);let l=null==(t=e.exception)?void 0:t.values;if(l&&l.length>0){for(let e of l)if(null==(r=e.stacktrace)?void 0:r.frames){let t=[],r=null;for(let c=e.stacktrace.frames.length-1;c>=0;c--){let l=e.stacktrace.frames[c];(null==(n=l.filename)?void 0:n.includes("framework-"))||(null==(i=l.function)?void 0:i.endsWith("hdxReportString"))||(null==(o=l.function)?void 0:o.endsWith("hdxReportError"))||(null==(a=l.function)?void 0:a.endsWith("hdxReportErrorEvent"))||(null==(s=l.function)?void 0:s.endsWith("hdxReportEvent"))||((null==(u=l.function)?void 0:u.endsWith("hdxReport"))?r=l.filename:r&&l.filename===r?r=null:t.unshift(l))}e.stacktrace.frames=t}}return e}}),e.hyperdxIntegration=(0,t.defineIntegration)(e._hyperdxIntegration)}(TO);var TM={};Object.defineProperty(TM,"__esModule",{value:!0}),TM.linkedErrorsIntegration=void 0;let TR=hN,TC=w4;TM.linkedErrorsIntegration=(0,hC.defineIntegration)((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){let o=i.getOptions();(0,TR.applyAggregateErrorsToEvent)(TC.exceptionFromError,o.stackParser,o.maxValueLength,r,t,e,n)}}});var TI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultStackParser=e.defaultStackLineParsers=e.opera11StackLineParser=e.opera10StackLineParser=e.winjsStackLineParser=e.geckoStackLineParser=e.chromeStackLineParser=void 0;let t=hN;function r(e,r,n,i){let o={filename:e,function:""===r?t.UNKNOWN_FUNCTION:r,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==i&&(o.colno=i),o}let n=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/\((\S*)(?::(\d+))(?::(\d+))\)/;e.chromeStackLineParser=[30,e=>{let o=n.exec(e);if(o){if(o[2]&&0===o[2].indexOf("eval")){let e=i.exec(o[2]);e&&(o[2]=e[1],o[3]=e[2],o[4]=e[3])}let[e,n]=l(o[1]||t.UNKNOWN_FUNCTION,o[2]);return r(n,e,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}}];let o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,a=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;e.geckoStackLineParser=[50,e=>{let n=o.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){let e=a.exec(n[3]);e&&(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]="")}let e=n[3],i=n[1]||t.UNKNOWN_FUNCTION;return[i,e]=l(i,e),r(e,i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}];let s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;e.winjsStackLineParser=[40,e=>{let n=s.exec(e);return n?r(n[2],n[1]||t.UNKNOWN_FUNCTION,+n[3],n[4]?+n[4]:void 0):void 0}];let u=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;e.opera10StackLineParser=[10,e=>{let n=u.exec(e);return n?r(n[2],n[3]||t.UNKNOWN_FUNCTION,+n[1]):void 0}];let c=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i;e.opera11StackLineParser=[20,e=>{let n=c.exec(e);return n?r(n[5],n[3]||n[4]||t.UNKNOWN_FUNCTION,+n[1],+n[2]):void 0}],e.defaultStackLineParsers=[e.chromeStackLineParser,e.geckoStackLineParser],e.defaultStackParser=(0,t.createStackParser)(...e.defaultStackLineParsers);let l=(e,r)=>{let n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:t.UNKNOWN_FUNCTION,n?`safari-extension:${r}`:`safari-web-extension:${r}`]:[e,r]}}(TI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.recordException=e.buildEventFromException=e.applyIntegrations=e.setupIntegrations=void 0;let t=c,r=tI,n=hC,i=w3,o=w4,a=Ts,s=T_,u=Tx,l=TO,f=TM,d=TI,h=r.trace.getTracer(i.name,i.version),p=[(0,n.inboundFiltersIntegration)(),(0,s.contextLinesIntegration)(),(0,a.browserApiErrorsIntegration)(),(0,f.linkedErrorsIntegration)(),(0,u.httpContextIntegration)(),(0,l.hyperdxIntegration)()],m={integrations:p,stackParser:d.defaultStackParser,maxValueLength:250,transport:{}},y={getOptions:()=>m};e.setupIntegrations=()=>{var e,t;for(let r of p)null==(e=r.setupOnce)||e.call(r),null==(t=r.setup)||t.call(r,y)},e.applyIntegrations=async(e,t)=>{var r;for(let n of p)await (null==(r=n.preprocessEvent)?void 0:r.call(n,e,t,y));for(let r of p)"function"==typeof r.processEvent&&(e=await r.processEvent(e,t,y));return e},e.buildEventFromException=async(t,i)=>{let a=(0,o.eventFromUnknownInput)(d.defaultStackParser,t);try{a=await (0,n.prepareEvent)(m,a,i)}catch(e){r.diag.error("Failed to prepare event",e)}return(0,e.applyIntegrations)(a,i)},e.recordException=async(n,i)=>{try{let{tracer:r,span:o,attributes:a,...s}=null!=i?i:{},u=Object.keys(s).length>0?s:{mechanism:{type:"generic",handled:!0}};(0,t.getEventProcessor)(null!=r?r:h)(await (0,e.buildEventFromException)(n,{data:u}),u,o,a)}catch(e){r.diag.error("Failed to capture exception",e)}}}(u);var TN,TP,Tk={},TD={};function TL(){return TP||(TP=1,Object.defineProperty(TD,"__esModule",{value:!0}),TD.getElementXPath=TD.limitLen=void 0,TD.limitLen=function(e,t){return e.length>t?e.substring(0,t):e},TD.getElementXPath=function e(t,r){if(t.nodeType===Node.DOCUMENT_NODE)return"/";let n=function(e,t){let r=e.nodeType,n=function(e){if(!e.parentNode)return 0;let t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let r=Array.from(e.parentNode.childNodes);return(r=r.filter(r=>{let n=r.localName;return t.indexOf(r.nodeType)>=0&&n===e.localName})).length>=1?r.indexOf(e)+1:0}(e),i="";if(r===Node.ELEMENT_NODE){let r=e.getAttribute("id");if(t&&r)return`//*[@id="${r}"]`;i=e.localName}else if(r===Node.TEXT_NODE||r===Node.CDATA_SECTION_NODE)i="text()";else{if(r!==Node.COMMENT_NODE)return"";i="comment()"}return i&&n>1?`/${i}[${n}]`:`/${i}`}(t,r);if(r&&n.indexOf("@id")>0)return n;let i="";return t.parentNode&&(i+=e(t.parentNode,!1)),i+=n}),TD}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HyperDXErrorInstrumentation=e.ERROR_INSTRUMENTATION_VERSION=e.ERROR_INSTRUMENTATION_NAME=void 0;let t=hx,r=z.__importStar(hp),n=u,i=TL();function o(e){return e&&""!==e.trim()&&!e.startsWith("[object")&&"error"!==e}function a(e){return void 0===e?"(undefined)":e.toString()}function s(e,t){t&&t.stack&&o(t.stack)&&e.setAttribute("error.stack",(0,i.limitLen)(t.stack.toString(),4096))}e.ERROR_INSTRUMENTATION_NAME="errors",e.ERROR_INSTRUMENTATION_VERSION="1";class c extends t.InstrumentationBase{constructor(t){super(e.ERROR_INSTRUMENTATION_NAME,e.ERROR_INSTRUMENTATION_VERSION,t),this._consoleErrorHandler=e=>(...t)=>(this.hdxReport("console.error",t),e.apply(this,t)),this._unhandledRejectionListener=e=>{this.hdxReport("unhandledrejection",e.reason)},this._errorListener=e=>{this.hdxReport("onerror",e)},this._documentErrorListener=e=>{this.hdxReport("eventListener.error",e)}}init(){}enable(){r.wrap(console,"error",this._consoleErrorHandler),window.addEventListener("unhandledrejection",this._unhandledRejectionListener),window.addEventListener("error",this._errorListener),document.documentElement.addEventListener("error",this._documentErrorListener,{capture:!0})}disable(){r.unwrap(console,"error"),window.removeEventListener("unhandledrejection",this._unhandledRejectionListener),window.removeEventListener("error",this._errorListener),document.documentElement.removeEventListener("error",this._documentErrorListener,{capture:!0})}hdxReportError(e,t){let r=t.message||t.toString();if(!o(r)&&!t.stack)return;let a=Date.now(),u=this.tracer.startSpan(e,{startTime:a});u.setAttribute("component","error"),u.setAttribute("error",!0),u.setAttribute("error.object",o(t.name)?t.name:t.constructor&&t.constructor.name?t.constructor.name:"Error"),u.setAttribute("error.message",(0,i.limitLen)(r,1024)),s(u,t),(0,n.recordException)(t,{tracer:this.tracer,span:u}).finally(()=>{u.end(a)})}hdxReportString(e,t,r){if(!o(t))return;let a=Date.now(),u=this.tracer.startSpan(e,{startTime:a});u.setAttribute("component","error"),u.setAttribute("error",!0),u.setAttribute("error.object","String"),u.setAttribute("error.message",(0,i.limitLen)(t,1024)),r?(s(u,r),(0,n.recordException)(r,{tracer:this.tracer,span:u}).finally(()=>{u.end(a)})):u.end(a)}hdxReportErrorEvent(e,t){t.error?this.hdxReport(e,t.error):t.message&&this.hdxReport(e,t.message)}hdxReportEvent(e,t){if(!t.target&&!o(t.type))return;let r=Date.now(),a=this.tracer.startSpan(e,{startTime:r});a.setAttribute("component","error"),a.setAttribute("error.type",t.type),t.target&&(a.setAttribute("target_element",t.target.tagName),a.setAttribute("target_xpath",(0,i.getElementXPath)(t.target,!0)),a.setAttribute("target_src",t.target.src)),(0,n.recordException)(t,{tracer:this.tracer,span:a}).finally(()=>{a.end(r)})}hdxReport(e,t){if(!Array.isArray(t)||0!==t.length)if(t instanceof Array&&1===t.length&&(t=t[0]),t instanceof Error)this.hdxReportError(e,t);else if(t instanceof ErrorEvent)this.hdxReportErrorEvent(e,t);else if(t instanceof Event)this.hdxReportEvent(e,t);else if("string"==typeof t)this.hdxReportString(e,t);else if(t instanceof Array){let r=t.find(e=>e instanceof Error);this.hdxReportString(e,t.map(e=>a(e)).join(" "),r)}else this.hdxReportString(e,a(t))}}e.HyperDXErrorInstrumentation=c}(Tk);var Tj=eh("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function TU(e){return e.setValue(Tj,!0)}function TB(e){return!0===e.getValue(Tj)}var TF="=",Tz=";",T$=",",TV="baggage",TY=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};function Tq(e){var t=e.split(Tz);if(!(t.length<=0)){var r=t.shift();if(r){var n=r.indexOf(TF);if(!(n<=0)){var i,o=decodeURIComponent(r.substring(0,n).trim()),a=decodeURIComponent(r.substring(n+1).trim());return t.length>0&&(i=ed(t.join(Tz))),{key:o,value:a,metadata:i}}}}}function TH(e){return"string"!=typeof e||0===e.length?{}:e.split(T$).map(function(e){return Tq(e)}).filter(function(e){return void 0!==e&&e.value.length>0}).reduce(function(e,t){return e[t.key]=t.value,e},{})}var TW=function(){function e(){}return e.prototype.inject=function(e,t,r){var n=tO.getBaggage(e);if(n&&!TB(e)){var i=function(e){return e.reduce(function(e,t){var r=""+e+(""!==e?T$:"")+t;return r.length>8192?e:r},"")}((function(e){return e.getAllEntries().map(function(e){var t=TY(e,2),r=t[0],n=t[1],i=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(i+=Tz+n.metadata.toString()),i})})(n).filter(function(e){return e.length<=4096}).slice(0,180));i.length>0&&r.set(t,TV,i)}},e.prototype.extract=function(e,t,r){var n=r.get(t,TV),i=Array.isArray(n)?n.join(T$):n;if(!i)return e;var o={};return 0===i.length?e:(i.split(T$).forEach(function(e){var t=Tq(e);if(t){var r={value:t.value};t.metadata&&(r.metadata=t.metadata),o[t.key]=r}}),0===Object.entries(o).length?e:tO.setBaggage(e,tO.createBaggage(o)))},e.prototype.fields=function(){return[TV]},e}(),TG=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},TZ=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};function TK(e){var t,r,n={};if("object"!=typeof e||null==e)return n;try{for(var i=TG(Object.entries(e)),o=i.next();!o.done;o=i.next()){var a=TZ(o.value,2),s=a[0],u=a[1];TX(s)?TJ(u)?Array.isArray(u)?n[s]=u.slice():n[s]=u:tp.warn("Invalid attribute value set for key: "+s):tp.warn("Invalid attribute key: "+s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function TX(e){return"string"==typeof e&&e.length>0}function TJ(e){return null==e||(Array.isArray(e)?function(e){var t,r,n;try{for(var i=TG(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(null!=a){if(!n){if(TQ(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return!0}(e):TQ(e))}function TQ(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var T0,T1=function(e){tp.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){for(var t={},r=e;null!==r;)Object.getOwnPropertyNames(r).forEach(function(e){if(!t[e]){var n=r[e];n&&(t[e]=String(n))}}),r=Object.getPrototypeOf(r);return t}(e))}(e))};function T2(e){try{T1(e)}catch(e){}}!function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"}(T0||(T0={}));var T6=",",T3=["OTEL_SDK_DISABLED"];function T4(e){return T3.indexOf(e)>-1}var T5=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function T8(e){return T5.indexOf(e)>-1}var T9=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function T7(e){return T9.indexOf(e)>-1}var xe=1/0,xt=128,xr={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:J.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:xe,OTEL_ATTRIBUTE_COUNT_LIMIT:xt,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:xe,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:xt,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:xe,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:xt,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:T0.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function xn(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function xi(e,t,r,n,i){if(void 0===n&&(n=-1/0),void 0===i&&(i=1/0),void 0!==r[e]){var o=Number(r[e]);isNaN(o)||(t[e]=oi?i:o)}}function xo(e,t,r,n){void 0===n&&(n=T6);var i=r[e];"string"==typeof i&&(t[e]=i.split(n).map(function(e){return e.trim()}))}var xa={ALL:J.ALL,VERBOSE:J.VERBOSE,DEBUG:J.DEBUG,INFO:J.INFO,WARN:J.WARN,ERROR:J.ERROR,NONE:J.NONE};function xs(e,t,r){var n=r[e];if("string"==typeof n){var i=xa[n.toUpperCase()];null!=i&&(t[e]=i)}}function xu(e){var t={};for(var r in xr){var n=r;if("OTEL_LOG_LEVEL"===n)xs(n,t,e);else if(T4(n))xn(n,t,e);else if(T8(n))xi(n,t,e);else if(T7(n))xo(n,t,e);else{var i=e[n];null!=i&&(t[n]=String(i))}}return t}var xc="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{};function xl(){return Object.assign({},xr,xu(xc))}function xf(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function xd(e){for(var t=new Uint8Array(e.length/2),r=0,n=0;n=xb&&(r[1]-=xb,r[0]+=1),r}!function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(xp||(xp={}));var xM,xR,xC=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},xI=function(){function e(e){var t;void 0===e&&(e={}),this._propagators=null!=(t=e.propagators)?t:[],this._fields=Array.from(new Set(this._propagators.map(function(e){return"function"==typeof e.fields?e.fields():[]}).reduce(function(e,t){return e.concat(t)},[])))}return e.prototype.inject=function(e,t,r){var n,i;try{for(var o=xC(this._propagators),a=o.next();!a.done;a=o.next()){var s=a.value;try{s.inject(e,t,r)}catch(e){tp.warn("Failed to inject with "+s.constructor.name+". Err: "+e.message)}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.extract=function(e,t,r){return this._propagators.reduce(function(e,n){try{return n.extract(e,t,r)}catch(e){tp.warn("Failed to inject with "+n.constructor.name+". Err: "+e.message)}return e},e)},e.prototype.fields=function(){return this._fields.slice()},e}(),xN="[_0-9a-z-*/]",xP=RegExp("^(?:[a-z]"+xN+"{0,255}|"+("[a-z0-9]"+xN+"{0,240}@[a-z]")+xN+"{0,13})$"),xk=/^[ -~]{0,255}[!-~]$/,xD=/,|=/,xL=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,t),r},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,r){return t.push(r+"="+e.get(r)),t},[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(function(e,t){var r=t.trim(),n=r.indexOf("=");if(-1!==n){var i=r.slice(0,n),o=r.slice(n+1,t.length);(function(e){return xP.test(e)})(i)&&function(e){return xk.test(e)&&!xD.test(e)}(o)&&e.set(i,o)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),xj="traceparent",xU="tracestate",xB=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$"),xF=function(){function e(){}return e.prototype.inject=function(e,t,r){var n=tR.getSpanContext(e);if(n&&!TB(e)&&e8(n)){var i="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||eD.NONE).toString(16);r.set(t,xj,i),n.traceState&&r.set(t,xU,n.traceState.serialize())}},e.prototype.extract=function(e,t,r){var n=r.get(t,xj);if(!n)return e;var i=Array.isArray(n)?n[0]:n;if("string"!=typeof i)return e;var o=function(e){var t=xB.exec(e);return t?"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}(i);if(!o)return e;o.isRemote=!0;var a=r.get(t,xU);if(a){var s=Array.isArray(a)?a.join(","):a;o.traceState=new xL("string"==typeof s?s:void 0)}return tR.setSpanContext(e,o)},e.prototype.fields=function(){return[xj,xU]},e}(),xz=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:e7.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),x$=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:e7.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}(),xV="[object Object]",xY="[object Null]",xq="[object Undefined]",xH=Function.prototype.toString,xW=xH.call(Object),xG=(xM=Object.getPrototypeOf,xR=Object,function(e){return xM(xR(e))}),xZ=Object.prototype,xK=xZ.hasOwnProperty,xX=Symbol?Symbol.toStringTag:void 0,xJ=xZ.toString;function xQ(e){if(!function(e){return null!=e&&"object"==typeof e}(e)||function(e){return null==e?void 0===e?xq:xY:xX&&xX in Object(e)?function(e){var t=xK.call(e,xX),r=e[xX],n=!1;try{e[xX]=void 0,n=!0}catch(e){}var i=xJ.call(e);return n&&(t?e[xX]=r:delete e[xX]),i}(e):function(e){return xJ.call(e)}(e)}(e)!==xV)return!1;var t=xG(e);if(null===t)return!0;var r=xK.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&xH.call(r)===xW}var x0=20;function x1(e){return x3(e)?e.slice():e}function x2(e,t,r,n){var i;if(void 0===r&&(r=0),!(r>x0)){if(r++,x8(e)||x8(t)||x4(t))i=x1(t);else if(x3(e)){if(i=e.slice(),x3(t))for(var o=0,a=t.length;o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function x7(e,t){return"string"==typeof t?e===t:!!e.match(t)}function Ae(e,t){var r,n;if(!t)return!1;try{for(var i=x9(t),o=i.next();!o.done;o=i.next())if(x7(e,o.value))return!0}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1}var At,Ar=function(){function e(){var e=this;this._promise=new Promise(function(t,r){e._resolve=t,e._reject=r})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(e){this._resolve(e)},e.prototype.reject=function(e){this._reject(e)},e}(),An=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Ai=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Au=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Ac=function(){function e(e,t,r,n,i,o,a,s,u,c){void 0===a&&(a=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:tt.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=r,this._spanContext=n,this.parentSpanId=o,this.kind=i,this.links=a;var l=Date.now();this._performanceStartTime=xm.now(),this._performanceOffset=l-(this._performanceStartTime+x_()),this._startTimeProvided=null!=s,this.startTime=this._getTime(null!=s?s:l),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,null!=c&&this.setAttributes(c),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return null==t||this._isSpanEnded()||(0===e.length?tp.warn("Invalid attribute key: "+e):TJ(t)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?this._droppedAttributesCount++:this.attributes[e]=this._truncateToSize(t):tp.warn("Invalid attribute value set for key: "+e)),this},e.prototype.setAttributes=function(e){var t,r;try{for(var n=As(Object.entries(e)),i=n.next();!i.done;i=n.next()){var o=Au(i.value,2),a=o[0],s=o[1];this.setAttribute(a,s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.addEvent=function(e,t,r){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return tp.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&tp.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),xA(t)&&(xA(r)||(r=t),t=void 0);var n=TK(t);return this.events.push({name:e,attributes:n,time:this._getTime(r),droppedAttributesCount:0}),this},e.prototype.setStatus=function(e){return this._isSpanEnded()||(this.status=e),this},e.prototype.updateName=function(e){return this._isSpanEnded()||(this.name=e),this},e.prototype.end=function(e){this._isSpanEnded()?tp.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once."):(this._ended=!0,this.endTime=this._getTime(e),this._duration=function(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=xb),[r,n]}(this.startTime,this.endTime),this._duration[0]<0&&(tp.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&tp.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},e.prototype._getTime=function(e){if("number"==typeof e&&e=1?1:e<=0?0:e},e.prototype._accumulate=function(e){for(var t=0,r=0;r>>0}return t},e}(),Ap=xl(),Am=T0.AlwaysOn,Ay=1;function Ag(){return{sampler:Ab(Ap),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:xl().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:xl().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:xl().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:xl().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:xl().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:xl().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:xl().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:xl().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function Ab(e){switch(void 0===e&&(e=xl()),e.OTEL_TRACES_SAMPLER){case T0.AlwaysOn:return new Af;case T0.AlwaysOff:return new Al;case T0.ParentBasedAlwaysOn:return new Ad({root:new Af});case T0.ParentBasedAlwaysOff:return new Ad({root:new Al});case T0.TraceIdRatio:return new Ah(Av(e));case T0.ParentBasedTraceIdRatio:return new Ad({root:new Ah(Av(e))});default:return tp.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+Am+'".'),new Af}}function Av(e){if(void 0===e.OTEL_TRACES_SAMPLER_ARG||""===e.OTEL_TRACES_SAMPLER_ARG)return tp.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+Ay+"."),Ay;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(tp.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+Ay+"."),Ay):t<0||t>1?(tp.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+Ay+"."),Ay):t}function A_(e){var t,r,n,i,o,a,s,u,c,l,f,d,h=Object.assign({},e.spanLimits),p=xu(xc);return h.attributeCountLimit=null!=(a=null!=(o=null!=(i=null!=(r=null==(t=e.spanLimits)?void 0:t.attributeCountLimit)?r:null==(n=e.generalLimits)?void 0:n.attributeCountLimit)?i:p.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)?o:p.OTEL_ATTRIBUTE_COUNT_LIMIT)?a:xt,h.attributeValueLengthLimit=null!=(d=null!=(f=null!=(l=null!=(u=null==(s=e.spanLimits)?void 0:s.attributeValueLengthLimit)?u:null==(c=e.generalLimits)?void 0:c.attributeValueLengthLimit)?l:p.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)?f:p.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)?d:xe,Object.assign({},e,{spanLimits:h})}var AS=function(){function e(e,t){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var r=xl();this._maxExportBatchSize="number"==typeof(null==t?void 0:t.maxExportBatchSize)?t.maxExportBatchSize:r.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==t?void 0:t.maxQueueSize)?t.maxQueueSize:r.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==t?void 0:t.scheduledDelayMillis)?t.scheduledDelayMillis:r.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==t?void 0:t.exportTimeoutMillis)?t.exportTimeoutMillis:r.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new Ao(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(tp.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&eD.SAMPLED&&this._addToBuffer(e)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var e=this;return Promise.resolve().then(function(){return e.onShutdown()}).then(function(){return e._flushAll()}).then(function(){return e._exporter.shutdown()})},e.prototype._addToBuffer=function(e){this._finishedSpans.length>=this._maxQueueSize?(0===this._droppedSpansCount&&tp.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++):(this._droppedSpansCount>0&&(tp.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer())},e.prototype._flushAll=function(){var e=this;return new Promise(function(t,r){for(var n=[],i=0,o=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize);i0&&(e._clearTimer(),e._maybeStartTimer())}).catch(function(t){e._isExporting=!1,T2(t)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();void 0===this._timer&&(this._timer=setTimeout(function(){return t()},this._scheduledDelayMillis),this._timer)}},e.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},e}(),AE=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Aw=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.onInit(r),n}return AE(t,e),t.prototype.onInit=function(e){var t=this;!0!==(null==e?void 0:e.disableAutoFlushOnDocumentHide)&&"u">typeof document&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&t.forceFlush()},this._pageHideListener=function(){t.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){"u">typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t}(AS),AT=function(){this.generateTraceId=AA(16),this.generateSpanId=AA(8)},Ax=Array(32);function AA(e){return function(){for(var t=0;t<2*e;t++)Ax[t]=Math.floor(16*Math.random())+48,Ax[t]>=58&&(Ax[t]+=39);return String.fromCharCode.apply(null,Ax.slice(0,2*e))}}var AO,AM=function(){function e(e,t,r){this._tracerProvider=r;var n,i,o,a,s=(n=t,i={sampler:Ab()},(a=Object.assign({},o=Ag(),i,n)).generalLimits=Object.assign({},o.generalLimits,n.generalLimits||{}),a.spanLimits=Object.assign({},o.spanLimits,n.spanLimits||{}),a);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=t.idGenerator||new AT,this.resource=r.resource,this.instrumentationLibrary=e}return e.prototype.startSpan=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r=th.active()),t.root&&(r=tR.deleteSpan(r));var n=tR.getSpan(r);if(TB(r))return tp.debug("Instrumentation suppressed, returning Noop Span"),tR.wrapSpanContext(eG);var i,o,a,s,u,c,l=null==n?void 0:n.spanContext(),f=this._idGenerator.generateSpanId();l&&tR.isSpanContextValid(l)?(s=l.traceId,u=l.traceState,c=l.spanId):s=this._idGenerator.generateTraceId();var d=null!=(i=t.kind)?i:te.INTERNAL,h=(null!=(o=t.links)?o:[]).map(function(e){return{context:e.context,attributes:TK(e.attributes)}}),p=TK(t.attributes),m=this._sampler.shouldSample(r,s,e,d,p,h);u=null!=(a=m.traceState)?a:u;var y={traceId:s,spanId:f,traceFlags:m.decision===e7.RECORD_AND_SAMPLED?eD.SAMPLED:eD.NONE,traceState:u};if(m.decision===e7.NOT_RECORD)return tp.debug("Recording is off, propagating context in a non-recording span"),tR.wrapSpanContext(y);var g=TK(Object.assign(p,m.attributes));return new Ac(this,r,e,y,d,c,h,t.startTime,void 0,g)},e.prototype.startActiveSpan=function(e,t,r,n){var i,o,a;if(!(arguments.length<2)){2==arguments.length?a=t:3==arguments.length?(i=t,a=r):(i=t,o=r,a=n);var s=null!=o?o:th.active(),u=this.startSpan(e,i,s),c=tR.setSpan(s,u);return th.with(c,a,void 0,u)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}(),AR=function(){return(AR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},AP=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return tp.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[fh]="unknown_service",t[fb]=xy[fb],t[fg]=xy[fg],t[fv]=xy[fv],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&tp.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return AC(this,void 0,void 0,function(){return AI(this,function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var i=AR(AR({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(i,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,i=AN(e,2),o=i[0],a=i[1];return AR(AR(AR(AR({},n._syncAttributes),o),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(i)},e.EMPTY=new e({}),e}(),Ak=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},AD=function(){function e(e){this._spanProcessors=e}return e.prototype.forceFlush=function(){var e,t,r=[];try{for(var n=Ak(this._spanProcessors),i=n.next();!i.done;i=n.next()){var o=i.value;r.push(o.forceFlush())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return new Promise(function(e){Promise.all(r).then(function(){e()}).catch(function(t){T2(t||Error("MultiSpanProcessor: forceFlush failed")),e()})})},e.prototype.onStart=function(e,t){var r,n;try{for(var i=Ak(this._spanProcessors),o=i.next();!o.done;o=i.next())o.value.onStart(e,t)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.onEnd=function(e){var t,r;try{for(var n=Ak(this._spanProcessors),i=n.next();!i.done;i=n.next())i.value.onEnd(e)}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.shutdown=function(){var e,t,r=[];try{for(var n=Ak(this._spanProcessors),i=n.next();!i.done;i=n.next()){var o=i.value;r.push(o.shutdown())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return new Promise(function(e,t){Promise.all(r).then(function(){e()},t)})},e}(),AL=function(){function e(){}return e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}();!function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"}(AO||(AO={}));var Aj,AU,AB,AF=function(){function e(e){void 0===e&&(e={}),this._registeredSpanProcessors=[],this._tracers=new Map;var t,r=function(){for(var e=[],t=0;t0;)r=x2(r,e.shift(),0,n);return r}({},Ag(),A_(e));this.resource=null!=(t=r.resource)?t:AP.empty(),this.resource=AP.default().merge(this.resource),this._config=Object.assign({},r,{resource:this.resource});var n=this._buildExporterFromEnv();if(void 0!==n){var i=new Aw(n);this.activeSpanProcessor=i}else this.activeSpanProcessor=new AL}return e.prototype.getTracer=function(e,t,r){var n=e+"@"+(t||"")+":"+((null==r?void 0:r.schemaUrl)||"");return this._tracers.has(n)||this._tracers.set(n,new AM({name:e,version:t,schemaUrl:null==r?void 0:r.schemaUrl},this._config,this)),this._tracers.get(n)},e.prototype.addSpanProcessor=function(e){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch(function(e){return tp.error("Error while trying to shutdown current span processor",e)}),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new AD(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(e){void 0===e&&(e={}),tR.setGlobalTracerProvider(this),void 0===e.propagator&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&th.setGlobalContextManager(e.contextManager),e.propagator&&tO.setGlobalPropagator(e.propagator)},e.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map(function(t){return new Promise(function(r){var n,i=setTimeout(function(){r(Error("Span processor did not completed within timeout period of "+e+" ms")),n=AO.timeout},e);t.forceFlush().then(function(){clearTimeout(i),n!==AO.timeout&&r(n=AO.resolved)}).catch(function(e){clearTimeout(i),n=AO.error,r(e)})})});return new Promise(function(e,r){Promise.all(t).then(function(t){var n=t.filter(function(e){return e!==AO.resolved});n.length>0?r(n):e()}).catch(function(e){return r([e])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(e){var t;return null==(t=this.constructor._registeredPropagators.get(e))?void 0:t()},e.prototype._getSpanExporter=function(e){var t;return null==(t=this.constructor._registeredExporters.get(e))?void 0:t()},e.prototype._buildPropagatorFromEnv=function(){var e=this,t=Array.from(new Set(xl().OTEL_PROPAGATORS)),r=t.map(function(t){var r=e._getPropagator(t);return r||tp.warn('Propagator "'+t+'" requested through environment variable is unavailable.'),r}).reduce(function(e,t){return t&&e.push(t),e},[]);return 0===r.length?void 0:1===t.length?r[0]:new xI({propagators:r})},e.prototype._buildExporterFromEnv=function(){var e=xl().OTEL_TRACES_EXPORTER;if("none"!==e&&""!==e){var t=this._getSpanExporter(e);return t||tp.error('Exporter "'+e+'" requested through environment variable is unavailable.'),t}},e._registeredPropagators=new Map([["tracecontext",function(){return new xF}],["baggage",function(){return new TW}]]),e._registeredExporters=new Map,e}(),Az=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},A$=function(){function e(){}return e.prototype.export=function(e,t){return this._sendSpans(e,t)},e.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},e.prototype.forceFlush=function(){return Promise.resolve()},e.prototype._exportInfo=function(e){var t;return{resource:{attributes:e.resource.attributes},traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:null==(t=e.spanContext().traceState)?void 0:t.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:xT(e.startTime),duration:xT(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}},e.prototype._sendSpans=function(e,t){var r,n;try{for(var i=Az(e),o=i.next();!o.done;o=i.next()){var a=o.value;console.dir(this._exportInfo(a),{depth:3})}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}if(t)return t({code:xp.SUCCESS})},e}(),AV=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},AY=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},AW=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=o)return e.addEvent(t,i),e}function AQ(e,t){AJ(e,Aj.FETCH_START,t),AJ(e,Aj.DOMAIN_LOOKUP_START,t),AJ(e,Aj.DOMAIN_LOOKUP_END,t),AJ(e,Aj.CONNECT_START,t),AX(t,"name")&&t.name.startsWith("https:")&&AJ(e,Aj.SECURE_CONNECTION_START,t),AJ(e,Aj.CONNECT_END,t),AJ(e,Aj.REQUEST_START,t),AJ(e,Aj.RESPONSE_START,t),AJ(e,Aj.RESPONSE_END,t);var r=t[Aj.ENCODED_BODY_SIZE];void 0!==r&&e.setAttribute(oL.HTTP_RESPONSE_CONTENT_LENGTH,r);var n=t[Aj.DECODED_BODY_SIZE];void 0!==n&&r!==n&&e.setAttribute(oL.HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,n)}function A0(){return"u">typeof location?location.origin:void 0}function A1(e,t,r,n,i,o){void 0===i&&(i=new WeakSet);var a=A2(e),s=function(e,t,r,n,i,o){var a=xw(t),s=xw(r),u=n.filter(function(t){var r=xw(xE(t[Aj.FETCH_START])),n=xw(xE(t[Aj.RESPONSE_END]));return t.initiatorType.toLowerCase()===(o||"xmlhttprequest")&&t.name===e&&r>=a&&n<=s});return u.length>0&&(u=u.filter(function(e){return!i.has(e)})),u}(e=a.toString(),t,r,n,i,o);if(0===s.length)return{mainRequest:void 0};if(1===s.length)return{mainRequest:s[0]};var u=function(e){return e.slice().sort(function(e,t){var r=e[Aj.FETCH_START],n=t[Aj.FETCH_START];return r>n?1:r1){var c=u[0],l=function(e,t,r){for(var n,i=xw(r),o=xw(xE(t)),a=e[1],s=e.length,u=1;u=o&&(!n||ftypeof document?document.baseURI:"u">typeof location?location.href:void 0);var t=(AU||(AU=document.createElement("a")),AU);return t.href=e,t}function A6(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";var r=function(e,t){var r=e.nodeType,n=function(e){if(!e.parentNode)return 0;var t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);var r=Array.from(e.parentNode.childNodes);return(r=r.filter(function(r){var n=r.localName;return t.indexOf(r.nodeType)>=0&&n===e.localName})).length>=1?r.indexOf(e)+1:0}(e),i="";if(r===Node.ELEMENT_NODE){var o=e.getAttribute("id");if(t&&o)return'//*[@id="'+o+'"]';i=e.localName}else if(r===Node.TEXT_NODE||r===Node.CDATA_SECTION_NODE)i="text()";else{if(r!==Node.COMMENT_NODE)return"";i="comment()"}return i&&n>1?"/"+i+"["+n+"]":"/"+i}(e,t);if(t&&r.indexOf("@id")>0)return r;var n="";return e.parentNode&&(n+=A6(e.parentNode,!1)),n+=r}function A3(e,t){var r=t||[];return("string"==typeof r||r instanceof RegExp)&&(r=[r]),A2(e).origin===A0()||r.some(function(t){return x7(e,t)})}!function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"}(Aj||(Aj={})),function(e){e.DOCUMENT_LOAD="documentLoad",e.DOCUMENT_FETCH="documentFetch",e.RESOURCE_FETCH="resourceFetch"}(AB||(AB={})),function(e){e.FIRST_PAINT="firstPaint",e.FIRST_CONTENTFUL_PAINT="firstContentfulPaint"}(Mt||(Mt={}));var A4={"first-paint":Mt.FIRST_PAINT,"first-contentful-paint":Mt.FIRST_CONTENTFUL_PAINT},A5=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),A8=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,"@opentelemetry/instrumentation-document-load","0.38.0",t)||this;return r.component="document-load",r.version="1",r.moduleName=r.component,r}return A5(t,e),t.prototype.init=function(){},t.prototype._onDocumentLoaded=function(){var e=this;window.setTimeout(function(){e._collectPerformance()})},t.prototype._addResourcesSpans=function(e){var t,r,n=this,i=null==(r=(t=xm).getEntriesByType)?void 0:r.call(t,"resource");i&&i.forEach(function(t){n._initResourceSpan(t,e)})},t.prototype._collectPerformance=function(){var e=this,t=Array.from(document.getElementsByTagName("meta")).find(function(e){return e.getAttribute("name")===xj}),r=function(){var e,t,r={},n=null==(t=(e=xm).getEntriesByType)?void 0:t.call(e,"navigation")[0];if(n)Object.values(Aj).forEach(function(e){if(AX(n,e)){var t=n[e];"number"==typeof t&&(r[e]=t)}});else{var i=xm.timing;i&&Object.values(Aj).forEach(function(e){if(AX(i,e)){var t=i[e];"number"==typeof t&&(r[e]=t)}})}return r}(),n=t&&t.content||"";th.with(tO.extract(em,{traceparent:n}),function(){var t,n=e._startSpan(AB.DOCUMENT_LOAD,Aj.FETCH_START,r);n&&(th.with(tR.setSpan(th.active(),n),function(){var t=e._startSpan(AB.DOCUMENT_FETCH,Aj.FETCH_START,r);t&&(t.setAttribute(iP,location.href),th.with(tR.setSpan(th.active(),t),function(){var n;AQ(t,r),e._addCustomAttributesOnSpan(t,null==(n=e._getConfig().applyCustomAttributesOnSpan)?void 0:n.documentFetch),e._endSpan(t,Aj.RESPONSE_END,r)}))}),n.setAttribute(iP,location.href),n.setAttribute(iB,navigator.userAgent),e._addResourcesSpans(n),AJ(n,Aj.FETCH_START,r),AJ(n,Aj.UNLOAD_EVENT_START,r),AJ(n,Aj.UNLOAD_EVENT_END,r),AJ(n,Aj.DOM_INTERACTIVE,r),AJ(n,Aj.DOM_CONTENT_LOADED_EVENT_START,r),AJ(n,Aj.DOM_CONTENT_LOADED_EVENT_END,r),AJ(n,Aj.DOM_COMPLETE,r),AJ(n,Aj.LOAD_EVENT_START,r),AJ(n,Aj.LOAD_EVENT_END,r),function(e){var t,r,n=null==(r=(t=xm).getEntriesByType)?void 0:r.call(t,"paint");n&&n.forEach(function(t){var r=t.name,n=t.startTime;AX(A4,r)&&e.addEvent(A4[r],n)})}(n),e._addCustomAttributesOnSpan(n,null==(t=e._getConfig().applyCustomAttributesOnSpan)?void 0:t.documentLoad),e._endSpan(n,Aj.LOAD_EVENT_END,r))})},t.prototype._endSpan=function(e,t,r){e&&(AX(r,t)?e.end(r[t]):e.end())},t.prototype._initResourceSpan=function(e,t){var r,n=this._startSpan(AB.RESOURCE_FETCH,Aj.FETCH_START,e,t);n&&(n.setAttribute(iP,e.name),AQ(n,e),this._addCustomAttributesOnResourceSpan(n,e,null==(r=this._getConfig().applyCustomAttributesOnSpan)?void 0:r.resourceFetch),this._endSpan(n,Aj.RESPONSE_END,e))},t.prototype._startSpan=function(e,t,r,n){if(AX(r,t)&&"number"==typeof r[t])return this.tracer.startSpan(e,{startTime:r[t]},n?tR.setSpan(th.active(),n):void 0)},t.prototype._waitForPageLoad=function(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))},t.prototype._getConfig=function(){return this._config},t.prototype._addCustomAttributesOnSpan=function(e,t){var r=this;t&&hS(function(){return t(e)},function(e){e&&r._diag.error("addCustomAttributesOnSpan",e)},!0)},t.prototype._addCustomAttributesOnResourceSpan=function(e,t,r){var n=this;r&&hS(function(){return r(e,t)},function(e){e&&n._diag.error("addCustomAttributesOnResourceSpan",e)},!0)},t.prototype.enable=function(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()},t.prototype.disable=function(){window.removeEventListener("load",this._onDocumentLoaded)},t}(hb);function A9(e,t){if(e&&e[1]&&e[2]){let r=e[1],n=e[2];t.setAttribute("link.traceId",r),t.setAttribute("link.spanId",n)}}let A7=RegExp("traceparent;desc=['\"]00-([0-9a-f]{32})-([0-9a-f]{16})-01['\"]");function Oe(e,t){for(let r of e.split(","))A9((r=r.trim()).match(A7),t)}let Ot=/00-([0-9a-f]{32})-([0-9a-f]{16})-01/,Or=["beacon","fetch","xmlhttprequest"];!function(e){e.EVENT_TYPE="event_type",e.TARGET_ELEMENT="target_element",e.TARGET_XPATH="target_xpath",e.HTTP_URL="http.url"}(Mr||(Mr={}));var On="0.38.0",Oi=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Oo=["click"];function Oa(){return!1}var Os=function(e){function t(t){var r,n=e.call(this,"@opentelemetry/instrumentation-user-interaction",On,t)||this;return n.version=On,n.moduleName="user-interaction",n._spansData=new WeakMap,n._wrappedListeners=new WeakMap,n._eventsSpanMap=new WeakMap,n._eventNames=new Set(null!=(r=null==t?void 0:t.eventNames)?r:Oo),n._shouldPreventSpanCreation="function"==typeof(null==t?void 0:t.shouldPreventSpanCreation)?t.shouldPreventSpanCreation:Oa,n}return Oi(t,e),t.prototype.init=function(){},t.prototype._checkForTimeout=function(e,t){var r=this._spansData.get(t);r&&("setTimeout"===e.source?r.hrTimeLastTimeout=xS():"Promise.then"!==e.source&&"setTimeout"!==e.source&&(r.hrTimeLastTimeout=void 0))},t.prototype._allowEventName=function(e){return this._eventNames.has(e)},t.prototype._createSpan=function(e,t,r){var n;if(e instanceof HTMLElement&&e.getAttribute&&!e.hasAttribute("disabled")&&this._allowEventName(t)){var i=A6(e,!0);try{var o=this.tracer.startSpan(t,{attributes:((n={})[Mr.EVENT_TYPE]=t,n[Mr.TARGET_ELEMENT]=e.tagName,n[Mr.TARGET_XPATH]=i,n[Mr.HTTP_URL]=window.location.href,n)},r?tR.setSpan(th.active(),r):void 0);if(!0===this._shouldPreventSpanCreation(t,e,o))return;return this._spansData.set(o,{taskCount:0}),o}catch(e){this._diag.error("failed to start create new user interaction span",e)}}},t.prototype._decrementTask=function(e){var t=this._spansData.get(e);t&&(t.taskCount--,0===t.taskCount&&this._tryToEndSpan(e,t.hrTimeLastTimeout))},t.prototype._getCurrentSpan=function(e){var t=e.get("OT_ZONE_CONTEXT");return t?tR.getSpan(t):t},t.prototype._incrementTask=function(e){var t=this._spansData.get(e);t&&t.taskCount++},t.prototype.addPatchedListener=function(e,t,r,n){var i=this._wrappedListeners.get(r);i||(i=new Map,this._wrappedListeners.set(r,i));var o=i.get(t);return o||(o=new Map,i.set(t,o)),!o.has(e)&&(o.set(e,n),!0)},t.prototype.removePatchedListener=function(e,t,r){var n=this._wrappedListeners.get(r);if(n){var i=n.get(t);if(i){var o=i.get(e);return o&&(i.delete(e),0===i.size&&(n.delete(t),0===n.size&&this._wrappedListeners.delete(r))),o}}},t.prototype._invokeListener=function(e,t,r){return"function"==typeof e?e.apply(t,r):e.handleEvent(r[0])},t.prototype._patchAddEventListener=function(){var e=this;return function(t){return function(r,n,i){if(!n)return t.call(this,r,n,i);var o=i&&"object"==typeof i&&i.once,a=function(){for(var t,i=this,a=[],s=0;s0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Od=1e4;function Oh(e){return"number"==typeof e?e<=0?Op(e,Od):e:function(){var e,t=Number(null!=(e=xl().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)?e:xl().OTEL_EXPORTER_OTLP_TIMEOUT);return t<=0?Op(t,Od):t}()}function Op(e,t){return tp.warn("Timeout must be greater than 0",e),t}var Om=function(){function e(e){void 0===e&&(e={}),this._sendingPromises=[],this.url=this.getDefaultUrl(e),"string"==typeof e.hostname&&(this.hostname=e.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new Ao(this._shutdown,this),this._concurrencyLimit="number"==typeof e.concurrencyLimit?e.concurrencyLimit:30,this.timeoutMillis=Oh(e.timeoutMillis),this.onInit(e)}return e.prototype.export=function(e,t){this._shutdownOnce.isCalled?t({code:xp.FAILED,error:Error("Exporter has been shutdown")}):this._sendingPromises.length>=this._concurrencyLimit?t({code:xp.FAILED,error:Error("Concurrent export limit reached")}):this._export(e).then(function(){t({code:xp.SUCCESS})}).catch(function(e){t({code:xp.FAILED,error:e})})},e.prototype._export=function(e){var t=this;return new Promise(function(r,n){try{tp.debug("items to be sent",e),t.send(e,r,n)}catch(e){n(e)}})},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},e.prototype._shutdown=function(){return tp.debug("shutdown started"),this.onShutdown(),this.forceFlush()},e}(),Oy=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Og=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.name="OTLPExporterError",i.data=n,i.code=r,i}return Oy(t,e),t}(Error),Ob=function(){return(Ob=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};function O_(e,t,r,n,i,o){var a,s,u=!1,c=setTimeout(function(){(clearTimeout(a),u=!0,s.readyState===XMLHttpRequest.DONE)?o(new Og("Request Timeout")):s.abort()},n),l=function(n,f){void 0===n&&(n=5),void 0===f&&(f=1e3),(s=new XMLHttpRequest).open("POST",t),Object.entries(Ob(Ob({},{Accept:"application/json","Content-Type":"application/json"}),r)).forEach(function(e){var t=Ov(e,2),r=t[0],n=t[1];s.setRequestHeader(r,n)}),s.send(e),s.onreadystatechange=function(){if(s.readyState===XMLHttpRequest.DONE&&!1===u)if(s.status>=200&&s.status<=299)tp.debug("xhr success",e),i(),clearTimeout(c),clearTimeout(a);else if(s.status&&[429,502,503,504].includes(s.status)&&n>0){var t=void 0;f*=1.5,a=setTimeout(function(){l(n-1,f)},t=s.getResponseHeader("Retry-After")?function(e){if(null==e)return -1;var t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?1e3*t:-1;var r=new Date(e).getTime()-Date.now();return r>=0?r:0}(s.getResponseHeader("Retry-After")):Math.round(Math.random()*(5e3-f)+f))}else o(new Og("Failed to export with XHR (status: "+s.status+")",s.status)),clearTimeout(c),clearTimeout(a)},s.onabort=function(){u&&o(new Og("Request Timeout")),clearTimeout(c),clearTimeout(a)},s.onerror=function(){u&&o(new Og("Request Timeout")),clearTimeout(c),clearTimeout(a)}};l()}var OS=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),OE=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,t)||this;return r._useXHR=!1,r._useXHR=!!t.headers||"function"!=typeof navigator.sendBeacon,r._useXHR?r._headers=Object.assign({},function(e){void 0===e&&(e={});var t={};return Object.entries(e).forEach(function(e){var r=Of(e,2),n=r[0],i=r[1];void 0!==i?t[n]=String(i):tp.warn('Header "'+n+'" has invalid value ('+i+") and will be ignored")}),t}(t.headers),TH(xl().OTEL_EXPORTER_OTLP_HEADERS)):r._headers={},r}return OS(t,e),t.prototype.onInit=function(){},t.prototype.onShutdown=function(){},t.prototype.send=function(e,t,r){var n=this;if(this._shutdownOnce.isCalled)tp.debug("Shutdown already started. Cannot send objects");else{var i=JSON.stringify(this.convert(e)),o=new Promise(function(e,t){n._useXHR?O_(i,n.url,n._headers,n.timeoutMillis,e,t):function(e,t,r,n,i){navigator.sendBeacon(t,new Blob([e],r))?(tp.debug("sendBeacon - can send",e),n()):i(new Og("sendBeacon - cannot send "+e))}(i,n.url,{type:"application/json"},e,t)}).then(t,r);this._sendingPromises.push(o);var a=function(){var e=n._sendingPromises.indexOf(o);n._sendingPromises.splice(e,1)};o.then(a,a)}},t}(Om);function Ow(e){var t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function OT(e){var t;return{low:Number(BigInt.asUintN(32,t=Ow(e))),high:Number(BigInt.asUintN(32,t>>BigInt(32)))}}var Ox="u">typeof BigInt?function(e){return Ow(e).toString()}:xw;function OA(e){return e}function OO(e){if(void 0!==e)return xd(e)}var OM={encodeHrTime:OT,encodeSpanContext:xd,encodeOptionalSpanContext:OO},OR=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};function OC(e){return{name:e.name,version:e.version}}function OI(e){return Object.keys(e).map(function(t){return ON(t,e[t])})}function ON(e,t){return{key:e,value:OP(t)}}function OP(e){var t=typeof e;return"string"===t?{stringValue:e}:"number"===t?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:"boolean"===t?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(OP)}}:"object"===t&&null!=e?{kvlistValue:{values:Object.entries(e).map(function(e){var t=OR(e,2);return ON(t[0],t[1])})}}:{}}function Ok(e,t){var r,n=e.spanContext(),i=e.status;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:t.encodeOptionalSpanContext(e.parentSpanId),traceState:null==(r=n.traceState)?void 0:r.serialize(),name:e.name,kind:null==e.kind?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:OI(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(function(e){return function(e,t){return{attributes:e.attributes?OI(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)}),droppedEventsCount:e.droppedEventsCount,status:{code:i.code,message:i.message},links:e.links.map(function(e){return function(e,t){var r;return{attributes:e.attributes?OI(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:null==(r=e.context.traceState)?void 0:r.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)}),droppedLinksCount:e.droppedLinksCount}}function OD(e){return{attributes:OI(e.attributes),droppedAttributesCount:0}}var OL=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Oj=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};function OU(e,t){return{resourceSpans:OB(e,function(e){if(void 0===e)return OM;var t,r,n=null==(t=e.useLongBits)||t,i=null!=(r=e.useHex)&&r;return{encodeHrTime:n?OT:Ox,encodeSpanContext:i?OA:xd,encodeOptionalSpanContext:i?OA:OO}}(t))}}function OB(e,t){for(var r=function(e){var t,r,n=new Map;try{for(var i=OL(e),o=i.next();!o.done;o=i.next()){var a=o.value,s=n.get(a.resource);s||(s=new Map,n.set(a.resource,s));var u=a.instrumentationLibrary.name+"@"+(a.instrumentationLibrary.version||"")+":"+(a.instrumentationLibrary.schemaUrl||""),c=s.get(u);c||(c=[],s.set(u,c)),c.push(a)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}(e),n=[],i=r.entries(),o=i.next();!o.done;){for(var a=Oj(o.value,2),s=a[0],u=[],c=a[1].values(),l=c.next();!l.done;){var f=l.value;if(f.length>0){var d=f.map(function(e){return Ok(e,t)});u.push({scope:OC(f[0].instrumentationLibrary),spans:d,schemaUrl:f[0].instrumentationLibrary.schemaUrl})}l=c.next()}var h={resource:OD(s),scopeSpans:u,schemaUrl:void 0};n.push(h),o=i.next()}return n}var OF=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Oz="v1/traces",O$="http://localhost:4318/"+Oz,OV=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,t)||this;return r._headers=Object.assign(r._headers,TH(xl().OTEL_EXPORTER_OTLP_TRACES_HEADERS)),r}return OF(t,e),t.prototype.convert=function(e){return OU(e,{useHex:!0,useLongBits:!1})},t.prototype.getDefaultUrl=function(e){return"string"==typeof e.url?e.url:xl().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length>0?function(e){try{var t=new URL(e);return""===t.pathname&&(t.pathname=t.pathname+"/"),t.toString()}catch(t){return tp.warn("Could not parse export URL: '"+e+"'"),e}}(xl().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT):xl().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?function(e,t){return e.endsWith("/")||(e+="/"),e+t}(xl().OTEL_EXPORTER_OTLP_ENDPOINT,Oz):O$},t}(OE);function OY(e){return"x".repeat(e/4).replace(/x/g,function(){return(16*Math.random()|0).toString(16)})}function Oq(e,t,r){return!1===e?e:(void 0!==e||!r)&&Object.assign({},t,e)}function OH(e){return"function"==typeof e}function OW(e,t,r){let n=e[t];hp.wrap(e,t,r),e[t].toString=n.toString.bind(n)}function OG(e){for(;e.__original&&e.__original!==e;)e=e.__original;return e}function OZ(e,t){let r=new Map(t.map(e=>[e,e.toLowerCase().replace(/-/g,"_")]));return(t,n)=>{for(let[i,o]of r){let r=n(i);if(void 0===r)continue;let a=`http.${e}.header.${o}`;"string"==typeof r?t.setAttribute(a,[r]):Array.isArray(r)?t.setAttribute(a,r):t.setAttribute(a,[r])}}}let OK=144e5,OX=900,OJ="__rum_sid",OQ,O0,O1,O2=!1;function O6(){O2=!0}function O3(e){let t=Date.now();return e>t||t>e+OK}function O4(){let e,t=function(e){let t=decodeURIComponent(document.cookie).split(";");for(let r=0;r=0?n="back-forward-cache":r&&(document.prerendering||Mf()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:n}},Mh=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},Mp=function(e,t,r,n){var i,o;return function(a){t.value>=0&&(a||n)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,r),e(t))}},Mm=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},My=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},Mg=function(e){var t=!1;return function(r){t||(e(r),t=!0)}},Mb=-1,Mv=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},M_=function(e){"hidden"===document.visibilityState&&Mb>-1&&(Mb="visibilitychange"===e.type?e.timeStamp:0,ME())},MS=function(){addEventListener("visibilitychange",M_,!0),addEventListener("prerenderingchange",M_,!0)},ME=function(){removeEventListener("visibilitychange",M_,!0),removeEventListener("prerenderingchange",M_,!0)},Mw=function(){return Mb<0&&(Mb=Mv(),MS(),Mc(function(){setTimeout(function(){Mb=Mv(),MS()},0)})),{get firstHiddenTime(){return Mb}}},MT=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},Mx=[1800,3e3],MA=[.1,.25],MO=function(e,t){t=t||{},function(e,t){t=t||{},MT(function(){var r,n=Mw(),i=Md("FCP"),o=Mh("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTimen.value&&(n.value=i,n.entries=o,r())},s=Mh("layout-shift",a);s&&(r=Mp(e,n,MA,t.reportAllChanges),My(function(){a(s.takeRecords()),r(!0)}),Mc(function(){i=0,r=Mp(e,n=Md("CLS",0),MA,t.reportAllChanges),Mm(function(){return r()})}),setTimeout(r,0))}))},MM={passive:!0,capture:!0},MR=new Date,MC=function(e,t){Mn||(Mn=t,Mi=e,Mo=new Date,MP(removeEventListener),MI())},MI=function(){if(Mi>=0&&Mi1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var r=function(){MC(e,t),i()},n=function(){i()},i=function(){removeEventListener("pointerup",r,MM),removeEventListener("pointercancel",n,MM)};addEventListener("pointerup",r,MM),addEventListener("pointercancel",n,MM)}(t,e):MC(t,e)}},MP=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,MN,MM)})},Mk=[100,300],MD=0,ML=1/0,Mj=0,MU=function(e){e.forEach(function(e){e.interactionId&&(ML=Math.min(ML,e.interactionId),MD=(Mj=Math.max(Mj,e.interactionId))?(Mj-ML)/7+1:0)})},MB=function(){return Ms?MD:performance.interactionCount||0},MF=function(){"interactionCount"in performance||Ms||(Ms=Mh("event",MU,{type:"event",buffered:!0,durationThreshold:0}))},Mz=[200,500],M$=0,MV=function(){return MB()-M$},MY=[],Mq={},MH=function(e){var t=MY[MY.length-1],r=Mq[e.interactionId];if(r||MY.length<10||e.duration>t.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};Mq[n.id]=n,MY.push(n)}MY.sort(function(e,t){return t.latency-e.latency}),MY.splice(10).forEach(function(e){delete Mq[e.id]})}},MW=[2500,4e3],MG={};let MZ={};function MK(e,t,r){if(MZ[t])return;MZ[t]=!0;let n=r.value,i=Date.now(),o=e.startSpan("webvitals",{startTime:i});o.setAttribute(t,n),o.end(i)}function MX(e){let t=e.getTracer("webvitals");!function(e,t){t=t||{},MT(function(){var r,n=Mw(),i=Md("FID"),o=function(e){e.startTime{MK(t,"fid",e)}),MO(e=>{MK(t,"cls",e)}),function(e,t){t=t||{},MT(function(){var r,n=Mw(),i=Md("LCP"),o=function(e){var t=e[e.length-1];t&&t.startTime{MK(t,"lcp",e)}),function(e,t){t=t||{},MT(function(){MF();var r,n,i=Md("INP"),o=function(e){e.forEach(function(e){e.interactionId&&MH(e),"first-input"!==e.entryType||MY.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||MH(e)});var t,r=(t=Math.min(MY.length-1,Math.floor(MV()/50)),MY[t]);r&&r.latency!==i.value&&(i.value=r.latency,i.entries=r.entries,n())},a=Mh("event",o,{durationThreshold:null!=(r=t.durationThreshold)?r:40});n=Mp(e,i,Mz,t.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),My(function(){o(a.takeRecords()),i.value<0&&MV()>0&&(i.value=0,i.entries=[]),n(!0)}),Mc(function(){MY=[],M$=MB(),n=Mp(e,i=Md("INP"),Mz,t.reportAllChanges)}))})}(e=>{MK(t,"inp",e)})}let MJ="longtask",MQ="browser-longtask",M0="post-doc-load-resource",M1=["img","script"],M2=e=>e instanceof HTMLScriptElement||e instanceof HTMLImageElement;class M6 extends hb{constructor(e={}){const t=Object.assign({},{allowedInitiatorTypes:M1},e);super(M0,O7,t),this.config=t,this.urlToContextMap={}}init(){}enable(){window.PerformanceObserver&&window.addEventListener("load",()=>{this._startPerformanceObserver()}),window.MutationObserver&&this._startHeadMutationObserver()}disable(){this.performanceObserver&&this.performanceObserver.disconnect(),this.headMutationObserver&&this.headMutationObserver.disconnect()}onBeforeContextChange(){this._processHeadMutationObserverRecords(this.headMutationObserver.takeRecords())}_startPerformanceObserver(){this.performanceObserver=new PerformanceObserver(e=>{"complete"===window.document.readyState&&e.getEntries().forEach(e=>{this.config.allowedInitiatorTypes.includes(e.initiatorType)&&this._createSpan(e)})}),this.performanceObserver.observe({entryTypes:["resource"]})}_startHeadMutationObserver(){this.headMutationObserver=new MutationObserver(this._processHeadMutationObserverRecords.bind(this)),this.headMutationObserver.observe(document.head,{childList:!0})}_processHeadMutationObserverRecords(e){th.active()!==em&&e.flatMap(e=>Array.from(e.addedNodes||[])).filter(M2).forEach(e=>{try{let t=e.getAttribute("src");if(!t)return;let r=new URL(t,location.origin);this.urlToContextMap[r.toString()]=th.active()}catch(e){}})}_createSpan(e){if(Ae(e.name,this.config.ignoreUrls))return;let t=new URL(e.name,location.origin),r=this.tracer.startSpan("resourceFetch",{startTime:e.fetchStart},this.urlToContextMap[t.toString()]);r.setAttribute("component",M0),r.setAttribute(oL.HTTP_URL,e.name),r.setAttribute(oL.HTTP_METHOD,"GET"),AQ(r,e);let n=e.responseEnd;n&&n>0?r.end(n):r.end()}}class M3 extends AK{shutdown(){return new Promise(e=>{tO.disable(),th.disable(),tR.disable(),e()}).then(()=>super.shutdown())}}class M4{constructor(){this.events={}}addEventListener(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t)}removeEventListener(e,t){if(!this.events[e])return;let r=this.events[e].indexOf(t);r>=0&&this.events[e].splice(r,1)}emit(e,t){let r=this.events[e];r&&r.forEach(e=>{Promise.resolve({payload:t}).then(e)})}}let M5="__splunk_context";class M8{constructor(e={}){this._config=e,this._enabled=!1,this._currentContext=em,this._hashChangeContext=null,this._contextResumingListeners=new WeakMap,this._messagePorts=new WeakMap}_bindFunction(e,t=em){let r=this,n=function(...n){return r.with(t,()=>e.apply(this,n))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),n}active(){return this._currentContext}bind(e,t){return OH(t)?this._bindFunction(t,e):t}disable(){return this._enabled&&(this._config.async&&(this._unpatchTimeouts(),this._unpatchPromise(),this._unpatchMutationObserver(),this._unpatchEvents(),this._unpatchMessageChannel()),this._currentContext=em,this._enabled=!1),this}enable(){return this._enabled||(this._config.async&&(this._patchTimeouts(),this._patchPromise(),this._patchMutationObserver(),this._patchEvents(),this._patchMessageChannel()),this._enabled=!0,this._currentContext=em),this}bindActiveToArgument(e,t){OH(e[t])&&(e[t]=this.bind(this.active(),e[t]))}_patchTimeouts(){let e=this;OW(window,"setTimeout",t=>function(...r){return(!r[1]||r[1]<=34)&&e.bindActiveToArgument(r,0),t.apply(this,r)}),window.setImmediate&&OW(window,"setImmediate",t=>function(...r){return e.bindActiveToArgument(r,0),t.apply(this,r)}),window.requestAnimationFrame&&OW(window,"requestAnimationFrame",t=>function(...r){return e.bindActiveToArgument(r,0),t.apply(this,r)})}_unpatchTimeouts(){hp.unwrap(window,"setTimeout"),window.setImmediate&&hp.unwrap(window,"setImmediate")}_patchPromise(){if(!window.Promise)return;let e=this;OW(Promise.prototype,"then",t=>function(...r){return e.bindActiveToArgument(r,0),e.bindActiveToArgument(r,1),t.apply(this,r)}),OW(Promise.prototype,"catch",t=>function(...r){return e.bindActiveToArgument(r,0),t.apply(this,r)}),OW(Promise.prototype,"finally",t=>function(...r){return e.bindActiveToArgument(r,0),t.apply(this,r)})}_unpatchPromise(){window.Promise&&(hp.unwrap(Promise.prototype,"then"),hp.unwrap(Promise.prototype,"catch"),hp.unwrap(Promise.prototype,"finally"))}_patchMutationObserver(){let e=this;OW(window,"MutationObserver",t=>class extends t{constructor(...t){if(OH(t[0])){const r=t[0];t[0]=function(...t){return this[M5]&&e._enabled?e.with(this[M5],r,this,...t):r.apply(this,t)}}super(...t),Object.defineProperty(this,M5,{value:null,writable:!0,enumerable:!1})}observe(...t){if(t[0]&&t[0]instanceof Text&&!t[0].parentNode&&t[1]&&t[1].characterData){let r=this,n=t[0],i=Object.getOwnPropertyDescriptor(CharacterData.prototype,"data");Object.defineProperty(n,"data",Object.assign(Object.assign({},i),{enumerable:!1,set:function(...t){let n=e.active();return n&&(r[M5]=n),i.set.apply(this,t)}}))}return super.observe(...t)}})}_unpatchMutationObserver(){hp.unwrap(window,"MutationObserver")}_getListenersMap(e,t){this._contextResumingListeners.has(e)||this._contextResumingListeners.set(e,new Map);let r=this._contextResumingListeners.get(e);return r.has(t)||r.set(t,new WeakMap),r.get(t)}_patchEvents(){let e=this;OW(XMLHttpRequest.prototype,"addEventListener",t=>function(...r){if(OH(r[1])){let t=e._getListenersMap(this,r[0]),n=t.get(r[1]);n||(n=e.bind(e.active(),r[1]),t.set(r[1],n)),r[1]=n}return t.apply(this,r)}),OW(XMLHttpRequest.prototype,"removeEventListener",t=>function(...r){if(OH(r[1])){let t=e._getListenersMap(this,r[0]).get(r[1]);t&&(r[1]=t)}return t.apply(this,r)}),["onabort","onerror","onload","onloadend","onloadstart","onprogress","ontimeout"].forEach(t=>{let r=Object.getOwnPropertyDescriptor(XMLHttpRequestEventTarget.prototype,t);r&&(OW(r,"get",e=>function(){let t=e.call(this);return OH(t)&&t._orig?t._orig:t}),OW(r,"set",t=>function(r){if(OH(r)){let t=r,n=e.bind(e.active(),r);n._orig=t,r=n}return t.call(this,r)}),Object.defineProperty(XMLHttpRequestEventTarget.prototype,t,r))}),OW(Window.prototype,"addEventListener",t=>function(...r){if("hashchange"===r[0]&&OH(r[1])){let t=e._getListenersMap(this,r[0]),n=t.get(r[1]);n||(n=e._getWrappedEventListener(r[1],()=>e._hashChangeContext),t.set(r[1],n)),r[1]=n}return t.apply(this,r)});let t=Object.getOwnPropertyDescriptor(window,"onhashchange");OW(t,"get",e=>function(){let t=e.call(this);return OH(t)&&t._orig?t._orig:t}),OW(t,"set",t=>function(r){if(OH(r)){let t=e._getWrappedEventListener(r,()=>e._hashChangeContext);t._orig=r,r=t}return t.call(this,r)}),Object.defineProperty(window,"onhashchange",t)}_unpatchEvents(){hp.unwrap(XMLHttpRequest.prototype,"addEventListener"),hp.unwrap(XMLHttpRequest.prototype,"removeEventListener")}_patchMessageChannel(){let e=this;OW(window,"MessageChannel",t=>class extends t{constructor(...t){super(...t),e._messagePorts.set(this.port1,this.port2),e._messagePorts.set(this.port2,this.port1),Object.defineProperty(this.port1,M5,{value:null,writable:!0,enumerable:!1}),Object.defineProperty(this.port2,M5,{value:null,writable:!0,enumerable:!1})}}),OW(MessagePort.prototype,"postMessage",t=>function(...r){let n=e.active();if(!e._messagePorts.has(this)||!n)return t.apply(this,r);let i=e._messagePorts.get(this);i[M5]=n;let o=t.apply(this,r);return OG(setTimeout)(()=>{i[M5]===n&&(i[M5]=null)},100),o}),OW(MessagePort.prototype,"addEventListener",t=>function(...r){if("message"===r[0]&&OH(r[1])){let t=e._getListenersMap(this,r[0]),n=t.get(r[1]);n||(n=e._getWrappedEventListener(r[1],()=>this[M5]),t.set(r[1],n)),r[1]=n}return t.apply(this,r)}),OW(MessagePort.prototype,"removeEventListener",t=>function(...r){if("message"===r[0]&&OH(r[1])){let t=e._getListenersMap(this,r[0]).get(r[1]);t&&(r[1]=t)}return t.apply(this,r)});let t=Object.getOwnPropertyDescriptor(MessagePort.prototype,"onmessage");OW(t,"get",e=>function(){let t=e.call(this);return OH(t)&&t._orig?t._orig:t}),OW(t,"set",t=>function(r){if(OH(r)){let t=e._getWrappedEventListener(r,()=>this[M5]);t._orig=r,r=t}return t.call(this,r)}),Object.defineProperty(MessagePort.prototype,"onmessage",t)}_getWrappedEventListener(e,t){let r=this;return function(...n){let i=t();return i&&r._enabled?r.with(i,e,this,...n):e.apply(this,n)}}_unpatchMessageChannel(){hp.unwrap(window,"MessageChannel"),hp.unwrap(MessagePort.prototype,"postMessage"),hp.unwrap(MessagePort.prototype,"addEventListener"),hp.unwrap(MessagePort.prototype,"removeEventListener");let e=Object.getOwnPropertyDescriptor(MessagePort.prototype,"onmessage");hp.unwrap(e,"get"),hp.unwrap(e,"set"),Object.defineProperty(MessagePort.prototype,"onmessage",e)}with(e,t,r,...n){var i,o,a,s;try{null==(o=(i=this._config).onBeforeContextStart)||o.call(i)}catch(e){}let u=this._currentContext;this._currentContext=e||em;let c=location.hash;try{let e=t.call(r,...n);return null==(s=(a=this._config).onBeforeContextEnd)||s.call(a),e}finally{this._currentContext=u,c!==location.hash&&(this._hashChangeContext=e,OG(setTimeout)(()=>{this._hashChangeContext===e&&(this._hashChangeContext=null)},33))}}}class M9{constructor(e){this._globalAttributes=null!=e?e:{}}setGlobalAttributes(e){if(e)Object.assign(this._globalAttributes,e);else for(let e of Object.keys(this._globalAttributes))delete this._globalAttributes[e]}getGlobalAttributes(){return this._globalAttributes}forceFlush(){return Promise.resolve()}onStart(e){e.setAttribute("location.href",location.href),e.setAttributes(this._globalAttributes)}onEnd(){}shutdown(){return Promise.resolve()}}let M7="messaging.socket.io.namespace",Re="messaging.socket.io.event_name",Rt=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];class Rr extends Aw{constructor(e,t){super(e,t)}onInit(e){!0!==(null==e?void 0:e.disableAutoFlushOnDocumentHide)&&"u">typeof document&&(this._visibilityChangeListener=()=>{"hidden"===document.visibilityState&&this.forceFlush().catch(e=>T2(e))},this._pageHideListener=()=>{this.forceFlush().catch(e=>T2(e))},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}}var Rn=a(function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}),Ri="object"==typeof o&&o&&o.Object===Object&&o,Ro="object"==typeof self&&self&&self.Object===Object&&self,Ra=(Ri||Ro||Function("return this")()).Symbol,Rs=Ra,Ru=Object.prototype,Rc=Ru.hasOwnProperty,Rl=Ru.toString,Rf=Rs?Rs.toStringTag:void 0,Rd=function(e){var t=Rc.call(e,Rf),r=e[Rf];try{e[Rf]=void 0;var n=!0}catch(e){}var i=Rl.call(e);return n&&(t?e[Rf]=r:delete e[Rf]),i},Rh=Object.prototype.toString,Rp=Rd,Rm=function(e){return Rh.call(e)},Ry=Ra?Ra.toStringTag:void 0,Rg=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ry&&Ry in Object(e)?Rp(e):Rm(e)},Rb=function(e,t){return function(r){return e(t(r))}}(Object.getPrototypeOf,Object),Rv=function(e){return null!=e&&"object"==typeof e},R_=Rg,RS=Rb,RE=Rv,Rw=Object.prototype,RT=Function.prototype.toString,Rx=Rw.hasOwnProperty,RA=RT.call(Object),RO=a(function(e){if(!RE(e)||"[object Object]"!=R_(e))return!1;var t=RS(e);if(null===t)return!0;var r=Rx.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&RT.call(r)==RA}),RM=Rg,RR=Array.isArray,RC=Rv,RI=a(function(e){return"string"==typeof e||!RR(e)&&RC(e)&&"[object String]"==RM(e)});let RN="console";!function(e){e.COMPONENT="component",e.HTTP_ERROR_NAME="http.error_name",e.HTTP_STATUS_TEXT="http.status_text"}(RP||(RP={}));var RP,Rk,RD,RL="0.51.1",Rj=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),RU="object"==typeof n&&"node"===(null==(Rk=n.release)?void 0:Rk.name),RB=function(e){function t(t){var r=e.call(this,"@opentelemetry/instrumentation-fetch",RL,t)||this;return r.component="fetch",r.version=RL,r.moduleName=r.component,r._usedResources=new WeakSet,r._tasksCount=0,r}return Rj(t,e),t.prototype.init=function(){},t.prototype._getConfig=function(){return this._config},t.prototype._addChildSpan=function(e,t){var r=this.tracer.startSpan("CORS Preflight",{startTime:t[Aj.FETCH_START]},tR.setSpan(th.active(),e));this._getConfig().ignoreNetworkEvents||AQ(r,t),r.end(t[Aj.RESPONSE_END])},t.prototype._addFinalSpanAttributes=function(e,t){var r=A2(t.url);e.setAttribute(oL.HTTP_STATUS_CODE,t.status),null!=t.statusText&&e.setAttribute(RP.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(oL.HTTP_HOST,r.host),e.setAttribute(oL.HTTP_SCHEME,r.protocol.replace(":","")),"u">typeof navigator&&e.setAttribute(oL.HTTP_USER_AGENT,navigator.userAgent)},t.prototype._addHeaders=function(e,t){if(!A3(t,this._getConfig().propagateTraceHeaderCorsUrls)){var r={};return tO.inject(th.active(),r),void(Object.keys(r).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}e instanceof Request?tO.inject(th.active(),e.headers,{set:function(e,t,r){return e.set(t,"string"==typeof r?r:String(r))}}):e.headers instanceof Headers?tO.inject(th.active(),e.headers,{set:function(e,t,r){return e.set(t,"string"==typeof r?r:String(r))}}):e.headers instanceof Map?tO.inject(th.active(),e.headers,{set:function(e,t,r){return e.set(t,"string"==typeof r?r:String(r))}}):(r={},tO.inject(th.active(),r),e.headers=Object.assign({},r,e.headers||{}))},t.prototype._clearResources=function(){0===this._tasksCount&&this._getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},t.prototype._createSpan=function(e,t){var r;if(void 0===t&&(t={}),!Ae(e,this._getConfig().ignoreUrls)){var n=(t.method||"GET").toUpperCase(),i="HTTP "+n;return this.tracer.startSpan(i,{kind:te.CLIENT,attributes:((r={})[RP.COMPONENT]=this.moduleName,r[oL.HTTP_METHOD]=n,r[oL.HTTP_URL]=e,r)})}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._findResourceAndAddNetworkEvents=function(e,t,r){var n=t.entries;if(!n.length){if(!performance.getEntriesByType)return;n=performance.getEntriesByType("resource")}var i=A1(t.spanUrl,t.startTime,r,n,this._usedResources,"fetch");if(i.mainRequest){var o=i.mainRequest;this._markResourceAsUsed(o);var a=i.corsPreFlightRequest;a&&(this._addChildSpan(e,a),this._markResourceAsUsed(a)),this._getConfig().ignoreNetworkEvents||AQ(e,o)}},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._endSpan=function(e,t,r){var n=this,i=xv(Date.now()),o=xS();this._addFinalSpanAttributes(e,r),setTimeout(function(){var r;null==(r=t.observer)||r.disconnect(),n._findResourceAndAddNetworkEvents(e,t,o),n._tasksCount--,n._clearResources(),e.end(i)},300)},t.prototype._patchConstructor=function(){var e=this;return function(t){var r=e;return function(){for(var e=[],n=0;n=200&&t.status<400?r._endSpan(e,u,t):r._endSpan(e,u,{status:t.status,statusText:t.statusText,url:o})}function f(e,t,r){try{var n=r.clone(),i=r.clone(),o=n.body;if(o){var a=o.getReader(),s=function(){a.read().then(function(t){t.done?l(e,i):s()},function(t){c(e,t)})};s()}else l(e,r)}finally{t(r)}}function d(e,t,r){try{c(e,r)}finally{t(r)}}return new Promise(function(e,n){return th.with(tR.setSpan(th.active(),s),function(){return r._addHeaders(a,o),r._tasksCount++,t.apply(i,a instanceof Request?[a]:[o,a]).then(f.bind(i,s,e),d.bind(i,s,n))})})}}},t.prototype._applyAttributesAfterFetch=function(e,t,r){var n=this,i=this._getConfig().applyCustomAttributesOnSpan;i&&hS(function(){return i(e,t,r)},function(e){e&&n._diag.error("applyCustomAttributesOnSpan",e)},!0)},t.prototype._prepareSpanData=function(e){var t=xS(),r=[];if("function"!=typeof PerformanceObserver)return{entries:r,startTime:t,spanUrl:e};var n=new PerformanceObserver(function(t){t.getEntries().forEach(function(t){"fetch"===t.initiatorType&&t.name===e&&r.push(t)})});return n.observe({entryTypes:["resource"]}),{entries:r,observer:n,startTime:t,spanUrl:e}},t.prototype.enable=function(){RU?this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()"):(hE(fetch)&&(this._unwrap(xc,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(xc,"fetch",this._patchConstructor()))},t.prototype.disable=function(){RU||(this._unwrap(xc,"fetch"),this._usedResources=new WeakSet)},t}(hb);!function(e){e.METHOD_OPEN="open",e.METHOD_SEND="send",e.EVENT_ABORT="abort",e.EVENT_ERROR="error",e.EVENT_LOAD="loaded",e.EVENT_TIMEOUT="timeout"}(RD||(RD={}));var RF,Rz="0.51.1";!function(e){e.HTTP_STATUS_TEXT="http.status_text"}(RF||(RF={}));var R$=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),RV=function(e){function t(t){var r=e.call(this,"@opentelemetry/instrumentation-xml-http-request",Rz,t)||this;return r.component="xml-http-request",r.version=Rz,r.moduleName=r.component,r._tasksCount=0,r._xhrMem=new WeakMap,r._usedResources=new WeakSet,r}return R$(t,e),t.prototype.init=function(){},t.prototype._getConfig=function(){return this._config},t.prototype._addHeaders=function(e,t){if(!A3(A2(t).href,this._getConfig().propagateTraceHeaderCorsUrls)){var r={};return tO.inject(th.active(),r),void(Object.keys(r).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}var n={};tO.inject(th.active(),n),Object.keys(n).forEach(function(t){e.setRequestHeader(t,String(n[t]))})},t.prototype._addChildSpan=function(e,t){var r=this;th.with(tR.setSpan(th.active(),e),function(){var e=r.tracer.startSpan("CORS Preflight",{startTime:t[Aj.FETCH_START]});r._getConfig().ignoreNetworkEvents||AQ(e,t),e.end(t[Aj.RESPONSE_END])})},t.prototype._addFinalSpanAttributes=function(e,t,r){if("string"==typeof r){var n=A2(r);void 0!==t.status&&e.setAttribute(oL.HTTP_STATUS_CODE,t.status),void 0!==t.statusText&&e.setAttribute(RF.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(oL.HTTP_HOST,n.host),e.setAttribute(oL.HTTP_SCHEME,n.protocol.replace(":","")),e.setAttribute(oL.HTTP_USER_AGENT,navigator.userAgent)}},t.prototype._applyAttributesAfterXHR=function(e,t){var r=this,n=this._getConfig().applyCustomAttributesOnSpan;"function"==typeof n&&hS(function(){return n(e,t)},function(e){e&&r._diag.error("applyCustomAttributesOnSpan",e)},!0)},t.prototype._addResourceObserver=function(e,t){var r=this._xhrMem.get(e);r&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(r.createdResources={observer:new PerformanceObserver(function(e){var n=e.getEntries(),i=A2(t);n.forEach(function(e){"xmlhttprequest"===e.initiatorType&&e.name===i.href&&r.createdResources&&r.createdResources.entries.push(e)})}),entries:[]},r.createdResources.observer.observe({entryTypes:["resource"]}))},t.prototype._clearResources=function(){0===this._tasksCount&&this._getConfig().clearTimingResources&&(xm.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},t.prototype._findResourceAndAddNetworkEvents=function(e,t,r,n,i){if(r&&n&&i&&e.createdResources){var o=e.createdResources.entries;o&&o.length||(o=xm.getEntriesByType("resource"));var a=A1(A2(r).href,n,i,o,this._usedResources);if(a.mainRequest){var s=a.mainRequest;this._markResourceAsUsed(s);var u=a.corsPreFlightRequest;u&&(this._addChildSpan(t,u),this._markResourceAsUsed(u)),this._getConfig().ignoreNetworkEvents||AQ(t,s)}}},t.prototype._cleanPreviousSpanInformation=function(e){var t=this._xhrMem.get(e);if(t){var r=t.callbackToRemoveEvents;r&&r(),this._xhrMem.delete(e)}},t.prototype._createSpan=function(e,t,r){var n;if(!Ae(t,this._getConfig().ignoreUrls)){var i=r.toUpperCase(),o=this.tracer.startSpan(i,{kind:te.CLIENT,attributes:((n={})[oL.HTTP_METHOD]=r,n[oL.HTTP_URL]=A2(t).toString(),n)});return o.addEvent(RD.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:o,spanUrl:t}),o}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._patchOpen=function(){var e=this;return function(t){var r=e;return function(){for(var e=[],n=0;nnew OV({url:e.url,headers:{authorization:e.authHeader}})},spanProcessor:{factory:(e,t)=>new Rr(e,t)},apiKey:void 0};function Rq(e,t,r){!(t in e)||r in e&&e[r]!==RY[r]||(e[r]=e[t])}let RH=[{Instrument:class extends A8{constructor(e={}){super(e);const t=this,r=t._endSpan.bind(this);t._endSpan=(e,t,n)=>{var i;let o=e;if(e&&e.setAttribute("component",this.component),e&&"documentLoad"!==o.name){if("documentFetch"===o.name&&!n.serverTiming&&performance.getEntriesByType){let e=performance.getEntriesByType("navigation");(null==(i=e[0])?void 0:i.serverTiming)&&(n.serverTiming=e[0].serverTiming)}!function(e,t){if(e.serverTiming)for(let r of e.serverTiming)"traceparent"===r.name&&r.description&&A9(r.description.match(Ot),t)}(n,e),e.setAttribute(oL.HTTP_METHOD,"GET")}return e&&"documentLoad"===o.name&&function(e){document.referrer&&""!==document.referrer&&e.setAttribute("document.referrer",document.referrer),window.screen&&e.setAttribute("screen.xy",window.screen.width+"x"+window.screen.height)}(e),r(e,t,n)};const n=t._initResourceSpan.bind(this);t._initResourceSpan=(t,r)=>{-1!==Or.indexOf(t.initiatorType)||Ae(t.name,e.ignoreUrls)||n(t,r)}}},confKey:"document",disable:!1},{Instrument:class extends RV{constructor(e={}){super(e);const t=this._createSpan.bind(this);this._createSpan=(r,n,i)=>{var o;let a=t(r,n,i);return a&&((null==(o=e.advancedNetworkCapture)?void 0:o.call(e))&&r.addEventListener("readystatechange",function(){if(r.readyState===r.OPENED)hp.wrap(r,"setRequestHeader",e=>function(t,r){return OZ("request",[t])(a,()=>r),e.apply(this,arguments)}),hp.wrap(r,"send",e=>function(t){return t&&a.setAttribute("http.request.body",t.toString()),e.apply(this,arguments)});else if(r.readyState===r.DONE){let e=r.getAllResponseHeaders().split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return r&&n&&(e[r]=n),e},{});OZ("response",Object.keys(e))(a,t=>e[t]),a.setAttribute("http.response.body",r.responseText),hp.unwrap(r,"setRequestHeader"),hp.unwrap(r,"send")}}),r.addEventListener("readystatechange",function(){if(r.readyState===r.HEADERS_RECEIVED&&-1!==r.getAllResponseHeaders().toLowerCase().indexOf("server-timing")){let e=r.getResponseHeader("server-timing");null!==e&&Oe(e,a)}}),a.setAttribute("component",this.moduleName),a.updateName(`HTTP ${i.toUpperCase()}`)),a};const r=this._addResourceObserver.bind(this);this._addResourceObserver=(e,t)=>{"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&r(e,t)}}},confKey:"xhr",disable:!1},{Instrument:class extends Os{constructor(e={}){if(!e.eventNames){const t=Object.entries(Object.assign({},Ou,e.events)).filter(([e,t])=>t).map(([e])=>e);e.eventNames=t}super(e),this._routingTracer=tR.getTracer(Ol,"1");const t=this._createSpan.bind(this);this._createSpan=(e,r,n)=>{e===document&&(e=document.documentElement);let i=t(e,r,n);return i&&i.setAttribute("component",this.moduleName),i};const r=this._patchAddEventListener.bind(this);this._patchAddEventListener=()=>{let e=r();return t=>{let r=e(t);return function(e,n,i){return!function(e){return e&&("function"==typeof e||"object"==typeof e&&"function"==typeof e.handleEvent)}(n)?t.call(this,e,n,i):(null===i&&(i=void 0),r.call(this,e,n,i))}}}}setTracerProvider(e){super.setTracerProvider(e),this._routingTracer=e.getTracer(Ol,"1")}getZoneWithPrototype(){}enable(){this.__hashChangeHandler=e=>{this._emitRouteChangeSpan(e.oldURL)},window.addEventListener("hashchange",this.__hashChangeHandler),super.enable()}disable(){super.disable(),window.removeEventListener("hashchange",this.__hashChangeHandler)}_patchHistoryMethod(){let e=this;return t=>function(...r){let n=location.href,i=t.apply(this,r);return n!==location.href&&e._emitRouteChangeSpan(n),i}}_emitRouteChangeSpan(e){let t=Date.now(),r=this._routingTracer.startSpan("routeChange",{startTime:t});r.setAttribute("component",this.moduleName),r.setAttribute("prev.href",e),r.end(t)}},confKey:"interactions",disable:!1},{Instrument:M6,confKey:"postload",disable:!1},{Instrument:class extends RB{constructor(e={}){const t=e.applyCustomAttributesOnSpan;e.applyCustomAttributesOnSpan=function(r,n,i){var o;if(r.updateName(`HTTP ${(n.method||"GET").toUpperCase()}`),r.setAttribute("component","fetch"),(null==(o=e.advancedNetworkCapture)?void 0:o.call(e))&&r&&(n.headers&&OZ("request",Object.keys(n.headers))(r,e=>{var t;return null==(t=n.headers)?void 0:t[e]}),n.body&&(n.body instanceof ReadableStream?r.setAttribute("http.request.body","[ReadableStream]"):r.setAttribute("http.request.body",n.body.toString())),i instanceof Response)){if(i.headers){let e=[];i.headers.forEach((t,r)=>{e.push(r)}),OZ("response",e)(r,e=>{var t;return null!=(t=i.headers.get(e))?t:""})}i.clone().text().then(e=>{r.setAttribute("http.response.body",e)}).catch(()=>{})}if(r&&i instanceof Response&&i.headers){let e=i.headers.get("Server-Timing");e&&Oe(e,r)}t&&t(r,n,i)},super(e)}enable(){window.fetch&&super.enable()}},confKey:"fetch",disable:!1},{Instrument:class extends hb{constructor(e){super("splunk-websocket",O7,e),this.listener2ws2patched=new WeakMap,this._config=e}init(){}enable(){let e=this;hp.wrap(window,"WebSocket",function(){class t extends WebSocket{constructor(t,r){if(Ae(t,e._config.ignoreUrls))return void super(t,r);const n=e.tracer.startSpan("connect",{kind:te.CLIENT,attributes:{component:"websocket"}});t&&n.setAttribute("http.url",t),r&&("string"==typeof r?n.setAttribute("protocols",r):n.setAttribute("protocols",JSON.stringify(r)));try{super(t,r)}catch(t){throw e.endSpanExceptionally(n,t),t}this.addEventListener("open",function(){n.end()}),this.addEventListener("error",function(t){n.isRecording()?e.endSpanExceptionally(n,Error(t.error||t.message||"Could not connect.")):e.startSpan(this,"error",te.CLIENT).end()}),e.patchSend(this),e.patchEventListener(this)}}return t})}disable(){hp.unwrap(window,"WebSocket")}startSpan(e,t,r){let n=this.tracer.startSpan(t,{kind:r});return n.setAttribute("component","websocket"),n.setAttribute("protocol",e.protocol),n.setAttribute("http.url",e.url),n}patchSend(e){let t=this,r=e.send;e.send=function(...n){let i,o=t.startSpan(e,"send",te.PRODUCER),a=n.length>0?Me(n[0]):void 0;o.setAttribute("http.request_content_length",a);try{i=r.apply(e,n)}catch(e){throw t.endSpanExceptionally(o,e),e}return!1===i&&t.endSpanExceptionally(o,Error("Failed to send frame.")),o.end(),i}}addPatchedListener(e,t,r){let n=this.listener2ws2patched.get(t);return n||(n=new Map,this.listener2ws2patched.set(t,n)),!n.has(e)&&(n.set(e,r),!0)}removePatchedListener(e,t){let r=this.listener2ws2patched.get(t);if(!r)return;let n=r.get(e);return n&&(r.delete(e),0===r.size&&this.listener2ws2patched.delete(e)),n}patchEventListener(e){let t=this,r=e.addEventListener.bind(e);e.addEventListener=function(n,i,o){if("message"!==n)return void r(n,i,o);let a="boolean"==typeof o||null==o?void 0:o.once,s=function(...r){let n=this,o=r;a&&t.removePatchedListener(e,i);let s=t.startSpan(e,"onmessage",te.CONSUMER);o&&o[0]&&o[0].data&&s.setAttribute("http.response_content_length",Me(o[0].data)),th.with(tR.setSpan(th.active(),s),()=>{let e;return e="function"==typeof i?i.apply(n,o):i.handleEvent(r[0]),s.end(),e})};t.addPatchedListener(e,i,s)&&r.apply(e,[n,s,o])};let n=e.removeEventListener;e.removeEventListener=function(r,i,o){if("message"!==r)return n.call(e,r,i,o);let a=t.removePatchedListener(e,i);return a?n.call(e,r,a,o):n.call(e,r,i,o)}}endSpanExceptionally(e,t){e.setAttribute("error",!0),e.setAttribute("error.message",t.message),e.setAttribute("error.object",t.name?t.name:t.constructor&&t.constructor.name?t.constructor.name:"Error"),e.end()}},confKey:"websocket",disable:!0},{Instrument:class extends hb{constructor(e={}){super(MQ,O7,Object.assign({},e))}init(){}enable(){this.isSupported()&&(this._longtaskObserver=new PerformanceObserver(e=>{e.getEntries().forEach(e=>this._createSpanFromEntry(e))}),this._longtaskObserver.observe({type:MJ,buffered:!0}))}disable(){this.isSupported()&&this._longtaskObserver.disconnect()}_createSpanFromEntry(e){let t=this.tracer.startSpan(MJ,{startTime:e.startTime});t.setAttribute("component",MQ),t.setAttribute("longtask.name",e.name),t.setAttribute("longtask.entry_type",e.entryType),t.setAttribute("longtask.duration",e.duration);let r=e.attribution;Array.isArray(r)&&r.forEach((e,r)=>{let n=e>1?`longtask.attribution[${r}]`:"longtask.attribution";t.setAttribute(`${n}.name`,e.name),t.setAttribute(`${n}.entry_type`,e.entryType),t.setAttribute(`${n}.start_time`,e.startTime),t.setAttribute(`${n}.duration`,e.duration),t.setAttribute(`${n}.container_type`,e.containerType),t.setAttribute(`${n}.container_src`,e.containerSrc),t.setAttribute(`${n}.container_id`,e.containerId),t.setAttribute(`${n}.container_name`,e.containerName)}),t.end(e.startTime+e.duration)}isSupported(){return(window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes||[]).includes(MJ)}},confKey:"longtask",disable:!1},{Instrument:Tk.HyperDXErrorInstrumentation,confKey:Tk.ERROR_INSTRUMENTATION_NAME,disable:!1},{Instrument:class extends hb{constructor(e={}){super("page-visibility",O7,Object.assign({},e)),this.unloading=!1}init(){}enable(){document.hidden&&this._createSpan(document.hidden),this.unloadListener=()=>{this.unloading=!0},this.visibilityListener=()=>{this.unloading||this._createSpan(document.hidden)},window.addEventListener("beforeunload",this.unloadListener),window.addEventListener("visibilitychange",this.visibilityListener)}disable(){window.removeEventListener("beforeunload",this.unloadListener),window.removeEventListener("visibilitychange",this.visibilityListener)}_createSpan(e){let t=Date.now(),r=this.tracer.startSpan("visibility",{startTime:t});r.setAttribute("hidden",e),r.end(t)}},confKey:"visibility",disable:!0},{Instrument:class extends hb{constructor(e={}){super("splunk-connectivity",O7,Object.assign({},e)),this.offlineStart=navigator.onLine?null:Date.now()}init(){}enable(){this.offlineListener=()=>{this.offlineStart=Date.now()},this.onlineListener=()=>{this.offlineStart&&(this._createSpan(!1,this.offlineStart),this._createSpan(!0,Date.now()))},window.addEventListener("offline",this.offlineListener),window.addEventListener("online",this.onlineListener)}disable(){window.removeEventListener("offline",this.offlineListener),window.removeEventListener("online",this.onlineListener)}_createSpan(e,t){let r=this.tracer.startSpan("connectivity",{startTime:t});r.setAttribute("online",e),r.end(t)}},confKey:"connectivity",disable:!0},{Instrument:class extends hb{constructor(e={}){super("splunk-socket.io-client",O7,Object.assign({target:"io"},e)),this.listeners=new WeakMap}init(){}getConfig(){return this._config}patchSocketIo(e){if(!function(e){return"function"==typeof e&&"function"==typeof e.Socket}(e))return void this._diag.debug("Doesn't seem like socket.io-client",e);let t=this;this._wrap(e.Socket.prototype,"emit",e=>function(r,...n){let i=t.tracer.startSpan(`${r} send`,{kind:te.PRODUCER,attributes:{[oL.MESSAGING_SYSTEM]:"socket.io",[oL.MESSAGING_DESTINATION]:this.nsp,[oL.MESSAGING_DESTINATION_KIND]:u$.TOPIC,[M7]:this.nsp,[Re]:r}});try{return th.with(tR.setSpan(th.active(),i),()=>e.apply(this,[r,...n]))}catch(t){let e;throw t instanceof Error&&(i.recordException(t),e=t.message),i.setStatus({code:tt.ERROR,message:e}),t}finally{i.end()}}),this._wrap(e.Socket.prototype,"on",e=>function(r,n){let i;return Rt.includes(r)||"function"!=typeof n?e.call(this,r,n):(t.listeners.has(n)?i=t.listeners.get(n):(i=function(...e){let i=t.tracer.startSpan(`${r} ${uW.RECEIVE}`,{kind:te.CONSUMER,attributes:{[oL.MESSAGING_SYSTEM]:"socket.io",[oL.MESSAGING_DESTINATION]:this.nsp,[oL.MESSAGING_DESTINATION_KIND]:u$.TOPIC,[oL.MESSAGING_OPERATION]:uW.RECEIVE,[M7]:this.nsp,[Re]:r}});try{n.call(this,e)}catch(e){throw e instanceof Error&&i.recordException(e),e}finally{i.end()}},t.listeners.set(n,i)),e.call(this,r,i))}),e.Socket.prototype.addEventListener=e.Socket.prototype.on,this._wrap(e.Socket.prototype,"off",e=>function(r,n){return!r||Rt.includes(r)||"function"!=typeof n?e.call(this,r,n):t.listeners.has(n)?e.call(this,r,t.listeners.get(n)):e.call(this,r,n)}),e.Socket.prototype.removeListener=e.Socket.prototype.off,e.Socket.prototype.removeEventListener=e.Socket.prototype.off,e.Socket.prototype.removeAllListeners=e.Socket.prototype.off,this._onDisable=()=>{this._unwrap(e.Socket.prototype,"emit"),this._unwrap(e.Socket.prototype,"on"),e.Socket.prototype.addEventListener=e.Socket.prototype.on,this._unwrap(e.Socket.prototype,"off"),e.Socket.prototype.removeListener=e.Socket.prototype.off,e.Socket.prototype.removeEventListener=e.Socket.prototype.off,e.Socket.prototype.removeAllListeners=e.Socket.prototype.off}}enable(){let e=this.getConfig();e.target&&("string"==typeof e.target?this._onDisable=function(e,t){if(window[e])return t(window[e]),()=>{};let r=window[e],n=!1;return Object.defineProperty(window,e,{get:()=>r,set(r){delete window[e],n=!0,window[e]=r,t(r)},configurable:!0,enumerable:!1}),()=>{n||window[e]!==r||(delete window[e],void 0!==r&&(window[e]=r))}}(e.target,e=>this.patchSocketIo(e)):this.patchSocketIo(e.target))}disable(){this._onDisable&&(this._onDisable(),this._onDisable=void 0)}},confKey:"socketio",disable:!0},{Instrument:class extends hb{_createSpan(e,...t){let r=Date.now(),n=(e=>{let t,r=[];for(let n of e)if(Rn(n)){null==t&&RO(n)&&(t=n);try{let e=JSON.stringify(n);null!=e&&r.push(e)}catch(e){}}else r.push(n);return t?Object.assign(Object.assign({},t),e.length>1&&{message:r.join(" ")}):r.join(" ")})(t),i=RI(n)?n:(e=>{let t="[HyperDX] Failed to stringify",r=!1;try{t=JSON.stringify(e)}catch(e){r=!0}if(r)try{t=d8(e)}catch(e){}return t})(n),o=this.tracer.startSpan(`console.${e}`,{kind:te.INTERNAL,startTime:r}),a=e;"log"===e&&(a="info"),o.setAttribute("component",RN),o.setAttribute("level",a),o.setAttribute("message",i),RO(n)&&o.setAttributes(n),o.end(r)}constructor(e={}){super(RN,O7,Object.assign({},e)),this._consoleLogHandler=e=>(...t)=>(this._createSpan("log",...t),e.apply(this,t)),this._consoleInfoHandler=e=>(...t)=>(this._createSpan("info",...t),e.apply(this,t)),this._consoleWarnHandler=e=>(...t)=>(this._createSpan("warn",...t),e.apply(this,t)),this._consoleDebugHandler=e=>(...t)=>(this._createSpan("debug",...t),e.apply(this,t))}init(){}enable(){hp.wrap(console,"debug",this._consoleDebugHandler),hp.wrap(console,"info",this._consoleInfoHandler),hp.wrap(console,"log",this._consoleLogHandler),hp.wrap(console,"warn",this._consoleWarnHandler)}disable(){hp.unwrap(console,"debug"),hp.unwrap(console,"info"),hp.unwrap(console,"log"),hp.unwrap(console,"warn")}},confKey:"console",disable:!0}];RH.map(e=>e.confKey).reduce((e,t)=>(e[t]=!1,e),{webvitals:!1});let RW,RG,RZ,RK,RX,RJ=!1,RQ={DEFAULT_AUTO_INSTRUMENTED_EVENTS:Ou,DEFAULT_AUTO_INSTRUMENTED_EVENT_NAMES:Oc,AlwaysOnSampler:Af,AlwaysOffSampler:Al,ParentBasedSampler:Ad,SessionBasedSampler:class{constructor({ratio:e=1,sampled:t=new x$,notSampled:r=new xz}={}){this._ratio=this._normalize(e),this._upperBound=Math.floor(0xffffffff*this._ratio),this._sampled=t,this._notSampled=r}shouldSample(e,t,r,n,i,o){let a=O9();return this._currentSession!==a&&(this._currentSessionSampled=this._accumulate(a)=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let r=0;r>>0}return t}},get inited(){return RJ},_internalInit:function(e){RQ.init(Object.assign(Object.assign({},RY),e))},init:function(e){var t;"OTEL_TRACES_EXPORTER"in xc||(xc.OTEL_TRACES_EXPORTER="none");let r=(e,t)=>"function"==typeof e&&!0!==e.__wrapped&&e.name===t,n=r(null==console?void 0:console.log,"log")?console.log:()=>{},i=r(null==console?void 0:console.warn,"warn")?console.warn:n,o=r(null==console?void 0:console.error,"error")?console.error:n,a=r(null==console?void 0:console.debug,"debug")?console.debug:n,s=r(null==console?void 0:console.trace,"trace")?console.trace:n;if(tp.setLogger({error:(...e)=>{r(o,"error")&&o(...e)},warn:(...e)=>{r(i,"warn")&&i(...e)},info:(...e)=>{r(n,"log")&&n(...e)},debug:(...e)=>{r(a,"debug")&&a(...e)},verbose:(...e)=>{r(s,"trace")&&s(...e)}},{suppressOverrideMessage:!0,logLevel:(null==e?void 0:e.debug)?J.DEBUG:J.NONE}),"object"!=typeof window)return void tp.error("Rum: Non-browser environment detected, aborting");if("function"!=typeof Symbol)return void tp.error("Rum: browser not supported, disabling instrumentation.");RX=new M4;let u=Object.assign({},RY,(Rq(t=e,"app","applicationName"),Rq(t,"environment","deploymentEnvironment"),t),{exporter:Object.assign({},RY.exporter,e.exporter)});if(RJ)return void tp.warn("Rum already init()ed.");if(!u.debug){if(!u.url)throw Error("Rum.init( {url: 'https://something'} ) is required.");if(!u.url.startsWith("https")&&!u.allowInsecureUrl)throw Error("Not using https is unsafe, if you want to force it use allowInsecureUrl option.")}let c=OY(64);RG=function(e,t,r){r&&(O0=r),OQ=e,O2=!0,O1=t,O8();let n=setInterval(()=>O8(),6e4);return["click","scroll","mousedown","keydown","touchend","visibilitychange"].forEach(e=>document.addEventListener(e,O6,{capture:!0,passive:!0})),{deinit:()=>{clearInterval(n),OQ=void 0,O1=void 0}}}(c,RX,u.cookieDomain).deinit;let{ignoreUrls:l,applicationName:f,deploymentEnvironment:d,version:h}=u,p={ignoreUrls:l,enabled:!1},m=Object.assign(Object.assign({},xy),{[fT.TELEMETRY_SDK_NAME]:"@hyperdx/otel-web",[fT.TELEMETRY_SDK_VERSION]:O7,[fT.SERVICE_NAME]:f,"rum.version":O7,"rum.scriptInstance":c}),y=window.syntheticsRunId;y&&(m["Synthetics-RunId"]=y);let g=new M3(Object.assign(Object.assign({},u.tracer),{resource:new AP(m)}));Object.defineProperty(g.resource.attributes,"rum.sessionId",{get:()=>O9(),configurable:!0,enumerable:!0});let b=RH.map(({Instrument:e,confKey:t,disable:r})=>{let n=Oq(u.instrumentations[t],p,r);if(n){let r=new e(n);return t===Tk.ERROR_INSTRUMENTATION_NAME&&r instanceof Tk.HyperDXErrorInstrumentation&&(RZ=r),"postload"===t&&r instanceof M6&&(RK=r),r}return null}).filter(e=>!!e);if(this.attributesProcessor=new M9(Object.assign(Object.assign(Object.assign({},d?{environment:d,"deployment.environment":d}:{}),h?{"app.version":h}:{}),u.globalAttributes||{})),g.addSpanProcessor(this.attributesProcessor),u.url){let e=function(e){return e.exporter.factory({url:e.url,onAttributesSerializing:e.exporter.onAttributesSerializing,authHeader:e.apiKey})}(u),t=u.spanProcessor.factory(e,{scheduledDelayMillis:u.bufferTimeout,maxExportBatchSize:u.bufferSize});g.addSpanProcessor(t),this._processor=t}u.debug&&g.addSpanProcessor(new Aq(new A$)),window.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&this._processor.forceFlush()}),g.register({contextManager:new M8(Object.assign(Object.assign({},u.context),{onBeforeContextStart:()=>null==RK?void 0:RK.onBeforeContextChange(),onBeforeContextEnd:()=>null==RK?void 0:RK.onBeforeContextChange()}))}),RW=hs({tracerProvider:g,instrumentations:b}),this.provider=g,!1!==Oq(u.instrumentations.webvitals)&&MX(g),RJ=!0,tp.info("Rum.init() complete")},deinit(){RJ&&(null==RW||RW(),RW=void 0,null==RG||RG(),RG=void 0,this.provider.shutdown(),delete this.provider,RX=void 0,tp.disable(),RJ=!1)},setGlobalAttributes(e){var t,r;null==(t=this.attributesProcessor)||t.setGlobalAttributes(e),null==RX||RX.emit("global-attributes-changed",{attributes:(null==(r=this.attributesProcessor)?void 0:r.getGlobalAttributes())||{}})},getGlobalAttributes(){var e;return(null==(e=this.attributesProcessor)?void 0:e.getGlobalAttributes())||{}},addAction(e,t){if(!RJ)return void tp.debug("Rum not inited");let r=Date.now(),n=this.provider.getTracer("custom-action").startSpan(e,{startTime:r});n.setAttributes(t),n.end(r)},_experimental_getGlobalAttributes(){return this.getGlobalAttributes()},recordException(e,t){if(!RJ)return void tp.debug("Rum not inited");let r=this.provider.getTracer("record-exception");return u.recordException(e,{tracer:r,attributes:t})},error(...e){RJ?RZ?RZ.hdxReport("Rum.error",e):tp.error("Error was reported, but error instrumentation is disabled."):tp.debug("Rum not inited")},addEventListener(e,t){null==RX||RX.addEventListener(e,t)},removeEventListener(e,t){null==RX||RX.removeEventListener(e,t)},_experimental_addEventListener(e,t){return this.addEventListener(e,t)},_experimental_removeEventListener(e,t){return this.removeEventListener(e,t)},getSessionId:()=>O9(),_experimental_getSessionId(){return this.getSessionId()}};var R0,R1=function(){return(R1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function R6(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function R3(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(t)+s)+u+")";var c=t.split("/"),l=s.split("/");c.pop();for(var f=0,d=l;f=t.length);){var o=n(Cm);if(","===o.slice(-1))o=Cg(e,o.substring(0,o.length-1)),i.push(o);else{var a="";o=Cg(e,o);for(var s=!1;;){var u=t.charAt(r);if(""===u){i.push((o+a).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){r+=1,i.push((o+a).trim());break}"("===u&&(s=!0)}a+=u,r+=1}}}return i.join(", ")}(e,n):"style"===r&&n?Cu(n,Cb()):"object"===t&&"data"===r&&n?Cg(e,n):n}function C_(e,t,r){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=0;nt?(n&&(clearTimeout(n),n=null),i=a,e.apply(u,c)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(u,c)},s))}}function CM(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return CM(e,t,o||{},!0)}}function CR(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}function CC(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function CI(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function CN(e,t){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){var r=!1;if("string"==typeof t){if(void 0!==e.closest)return null!==e.closest("."+t);r=e.classList.contains(t)}else e.classList.forEach(function(e){t.test(e)&&(r=!0)});return r||CN(e.parentNode,t)}return e.nodeType,e.TEXT_NODE,CN(e.parentNode,t)}function CP(e){return"__sn"in e&&e.__sn.id===Cr}function Ck(e,t){if(R4(e))return!1;var r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Ck(e.parentNode,t))}function CD(e){return!!e.changedTouches}function CL(e){return"__sn"in e&&e.__sn.type===R0.Element&&"iframe"===e.__sn.tagName}function Cj(e){return!!(null==e?void 0:e.shadowRoot)}function CU(e){return"__ln"in e}"u">typeof window&&window.Proxy&&window.Reflect&&(CA=new Proxy(CA,{get:function(e,t,r){return"map"===t&&console.error(Cx),Reflect.get(e,t,r)}}));var CB=function(){function e(){this.length=0,this.head=null}return e.prototype.get=function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;r=0;b--){var v=a.get(b);if(v&&(y=e.mirror.getId(v.value.parentNode),g=s(v.value),-1!==y&&-1!==g)){m=v;break}}if(!m){for(;a.head;)a.removeNode(a.head.value);break}p=m.previous,a.removeNode(m.value),u(m.value)}var _={texts:e.texts.map(function(t){return{id:e.mirror.getId(t.node),value:t.value}}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){return{id:e.mirror.getId(t.node),attributes:t.attributes}}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:o};(_.texts.length||_.attributes.length||_.removes.length||_.adds.length)&&(e.texts=[],e.attributes=[],e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.movedMap={},e.mutationCb(_))}},this.processMutation=function(t){var r,n,i,o;if(!CP(t.target))switch(t.type){case"characterData":var a=t.target.textContent;CN(t.target,e.blockClass)||a===t.oldValue||e.texts.push({value:C_(t.target,e.maskTextClass,e.maskTextSelector)&&a?e.maskTextFn?e.maskTextFn(a):a.replace(/[\S]/g,"*"):a,node:t.target});break;case"attributes":var s=t.target;if(a=t.target.getAttribute(t.attributeName),"value"===t.attributeName&&(a=R5({maskInputOptions:e.maskInputOptions,tagName:t.target.tagName,type:t.target.getAttribute("type"),value:a,maskInputFn:e.maskInputFn})),CN(t.target,e.blockClass)||a===t.oldValue)return;var u=e.attributes.find(function(e){return e.node===t.target});if(u||(u={node:t.target,attributes:{}},e.attributes.push(u)),"style"===t.attributeName){var c=e.doc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue),void 0!==u.attributes.style&&null!==u.attributes.style||(u.attributes.style={});var l=u.attributes.style;try{for(var f=R2(Array.from(s.style)),d=f.next();!d.done;d=f.next()){var h=d.value,p=s.style.getPropertyValue(h),m=s.style.getPropertyPriority(h);p===c.style.getPropertyValue(h)&&m===c.style.getPropertyPriority(h)||(l[h]=""===m?p:[p,m])}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}try{for(var y=R2(Array.from(c.style)),g=y.next();!g.done;g=y.next())h=g.value,""===s.style.getPropertyValue(h)&&(l[h]=!1)}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}}else u.attributes[t.attributeName]=Cv(e.doc,t.target.tagName,t.attributeName,a);break;case"childList":t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=R4(t.target)?e.mirror.getId(t.target.host):e.mirror.getId(t.target);CN(t.target,e.blockClass)||CP(r)||(e.addedSet.has(r)?(C$(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||Ck(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[CF(n,i)]?C$(e.movedSet,r):e.removes.push({parentId:i,id:n,isShadow:!!R4(t.target)||void 0})),e.mapRemoves.push(r))})}},this.genAdds=function(t,r){if(!r||!CN(r,e.blockClass)){if(Cz(t)){if(CP(t))return;e.movedSet.add(t);var n=null;r&&Cz(r)&&(n=r.__sn.id),n&&(e.movedMap[CF(t.__sn.id,n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);CN(t,e.blockClass)||t.childNodes.forEach(function(t){return e.genAdds(t)})}}}return e.prototype.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(function(r){t[r]=e[r]})},e.prototype.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},e.prototype.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},e.prototype.isFrozen=function(){return this.frozen},e.prototype.lock=function(){this.locked=!0,this.canvasManager.lock()},e.prototype.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},e.prototype.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}(),CH=[],CW="u">typeof CSSGroupingRule,CG="u">typeof CSSMediaRule,CZ="u">typeof CSSSupportsRule,CK="u">typeof CSSConditionRule;function CX(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(t){return e.target}}function CJ(e,t){var r,n,i=new Cq;CH.push(i),i.init(e);var o=window.MutationObserver||window.__rrMutationObserver,a=null==(n=null==(r=null==window?void 0:window.Zone)?void 0:r.__symbol__)?void 0:n.call(r,"MutationObserver");a&&window[a]&&(o=window[a]);var s=new o(i.processMutations.bind(i));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function CQ(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.sampling;if(!1===o.mouseInteraction)return function(){};var a=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,s=[];return Object.keys(Cf).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var o=e.toLowerCase(),a=function(e){return function(r){var o=CX(r);if(!CN(o,i)){var a=CD(r)?r.changedTouches[0]:r;if(a){var s=n.getId(o),u=a.clientX,c=a.clientY;t({type:Cf[e],id:s,x:u,y:c})}}}}(e);s.push(CT(o,a,r))}),function(){s.forEach(function(e){return e()})}}function C0(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass;return CT("scroll",CO(function(e){var o=CX(e);if(o&&!CN(o,i)){var a=n.getId(o);if(o===r){var s=r.scrollingElement||r.documentElement;t({id:a,x:s.scrollLeft,y:s.scrollTop})}else t({id:a,x:o.scrollLeft,y:o.scrollTop})}},e.sampling.scroll||100),r)}function C1(e,t){var r=R1({},e);return t||delete r.userTriggered,r}var C2=["INPUT","TEXTAREA","SELECT"],C6=new WeakMap;function C3(e){return function(e,t){if(CW&&e.parentRule instanceof CSSGroupingRule||CG&&e.parentRule instanceof CSSMediaRule||CZ&&e.parentRule instanceof CSSSupportsRule||CK&&e.parentRule instanceof CSSConditionRule){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else t.unshift(r=Array.from(e.parentStyleSheet.cssRules).indexOf(e));return t}(e,[])}function C4(e,t){void 0===t&&(t={});var r,n,i=e.doc.defaultView;if(!i)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,l=e.styleDeclarationCb,f=e.canvasMutationCb,d=e.fontCb;e.mutationCb=function(){for(var e=[],n=0;ntypeof DragEvent&&e instanceof DragEvent?Cl.Drag:e instanceof MouseEvent?Cl.MouseMove:Cl.TouchMove)},a,{trailing:!1}),f=[CT("mousemove",l,n),CT("touchmove",l,n),CT("drag",l,n)];return function(){f.forEach(function(e){return e()})}}(e),s=CQ(e),u=C0(e),c=function(e){var t=e.viewportResizeCb,r=-1,n=-1;return CT("resize",CO(function(){var e=CC(),i=CI();r===e&&n===i||(t({width:Number(i),height:Number(e)}),r=e,n=i)},200),window)}(e),l=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.ignoreClass,a=e.maskInputOptions,s=e.maskInputFn,u=e.sampling,c=e.userTriggeredOnInput;function l(e){var t=CX(e),n=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(0>C2.indexOf(t.tagName))&&!CN(t,i)){var u=t.type;if(!t.classList.contains(o)){var l=t.value,d=!1;"radio"===u||"checkbox"===u?d=t.checked:(a[t.tagName.toLowerCase()]||a[u])&&(l=R5({maskInputOptions:a,tagName:t.tagName,type:u,value:l,maskInputFn:s})),f(t,C1({text:l,isChecked:d,userTriggered:n},c));var h=t.name;"radio"===u&&h&&d&&r.querySelectorAll('input[type="radio"][name="'.concat(h,'"]')).forEach(function(e){e!==t&&f(e,C1({text:e.value,isChecked:!d,userTriggered:!1},c))})}}}function f(e,r){var i=C6.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){C6.set(e,r);var o=n.getId(e);t(R1(R1({},r),{id:o}))}}var d=("last"===u.input?["change"]:["input","change"]).map(function(e){return CT(e,l,r)}),h=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),p=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return h&&h.set&&d.push.apply(d,R3([],R6(p.map(function(e){return CM(e[0],e[1],{set:function(){l({target:this})}})})),!1)),function(){d.forEach(function(e){return e()})}}(e),f=function(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.mirror,i=e.sampling,o=function(e){return CO(function(i){var o=CX(i);if(o&&!CN(o,r)){var a=o,s=a.currentTime,u=a.volume,c=a.muted;t({type:e,id:n.getId(o),currentTime:s,volume:u,muted:c})}},i.media||500)},a=[CT("play",o(0)),CT("pause",o(1)),CT("seeked",o(2)),CT("volumechange",o(3))];return function(){a.forEach(function(e){return e()})}}(e),d=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=t.win,o=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(e,t){var i=n.getId(this.ownerNode);return -1!==i&&r({id:i,adds:[{rule:e,index:t}]}),o.apply(this,arguments)};var a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(e){var t=n.getId(this.ownerNode);return -1!==t&&r({id:t,removes:[{index:e}]}),a.apply(this,arguments)};var s={};CW?s.CSSGroupingRule=i.CSSGroupingRule:(CG&&(s.CSSMediaRule=i.CSSMediaRule),CK&&(s.CSSConditionRule=i.CSSConditionRule),CZ&&(s.CSSSupportsRule=i.CSSSupportsRule));var u={};return Object.entries(s).forEach(function(e){var t=R6(e,2),i=t[0],o=t[1];u[i]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=function(e,t){var o=n.getId(this.parentStyleSheet.ownerNode);return -1!==o&&r({id:o,adds:[{rule:e,index:R3(R3([],R6(C3(this)),!1),[t||0],!1)}]}),u[i].insertRule.apply(this,arguments)},o.prototype.deleteRule=function(e){var t=n.getId(this.parentStyleSheet.ownerNode);return -1!==t&&r({id:t,removes:[{index:R3(R3([],R6(C3(this)),!1),[e],!1)}]}),u[i].deleteRule.apply(this,arguments)}}),function(){i.CSSStyleSheet.prototype.insertRule=o,i.CSSStyleSheet.prototype.deleteRule=a,Object.entries(s).forEach(function(e){var t=R6(e,2),r=t[0],n=t[1];n.prototype.insertRule=u[r].insertRule,n.prototype.deleteRule=u[r].deleteRule})}}(e,{win:i}),h=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=t.win,o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=function(e,t,i){var a,s,u=n.getId(null==(s=null==(a=this.parentRule)?void 0:a.parentStyleSheet)?void 0:s.ownerNode);return -1!==u&&r({id:u,set:{property:e,value:t,priority:i},index:C3(this.parentRule)}),o.apply(this,arguments)};var a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=function(e){var t,i,o=n.getId(null==(i=null==(t=this.parentRule)?void 0:t.parentStyleSheet)?void 0:i.ownerNode);return -1!==o&&r({id:o,remove:{property:e},index:C3(this.parentRule)}),a.apply(this,arguments)},function(){i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a}}(e,{win:i}),p=e.collectFonts?function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,r){var n=new a(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var s=CR(r.fonts,"add",function(e){return function(r){return setTimeout(function(){var e=o.get(r);e&&(t(e),o.delete(r))},0),e.apply(this,[r])}});return i.push(function(){n.FontFace=a}),i.push(s),function(){i.forEach(function(e){return e()})}}(e):function(){},m=[];try{for(var y=R2(e.plugins),g=y.next();!g.done;g=y.next()){var b=g.value;m.push(b.observer(b.callback,i,b.options))}}catch(e){r={error:e}}finally{try{g&&!g.done&&(n=y.return)&&n.call(y)}finally{if(r)throw r.error}}return function(){CH.forEach(function(e){return e.reset()}),o.disconnect(),a(),s(),u(),c(),l(),f(),d(),h(),p(),m.forEach(function(e){return e()})}}for(var C5=function(){function e(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}return e.prototype.addIframe=function(e){this.iframes.set(e,!0)},e.prototype.addLoadListener=function(e){this.loadListener=e},e.prototype.attachIframe=function(e,t){var r;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null==(r=this.loadListener)||r.call(this,e)},e}(),C8=function(){function e(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;var t=this;this.restorePatches.push(CR(HTMLElement.prototype,"attachShadow",function(e){return function(){var r=e.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,this.ownerDocument),r}}))}return e.prototype.addShadowRoot=function(e,t){CJ(R1(R1({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),C0(R1(R1({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))},e.prototype.observeAttachShadow=function(e){if(e.contentWindow){var t=this;this.restorePatches.push(CR(e.contentWindow.HTMLElement.prototype,"attachShadow",function(r){return function(){var n=r.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),n}}))}},e.prototype.reset=function(){this.restorePatches.forEach(function(e){return e()})},e}(),C9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C7="u">2],i+=C9[(3&r[t])<<4|r[t+1]>>4],i+=C9[(15&r[t+1])<<2|r[t+2]>>6],i+=C9[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[In(e.buffer,t,r),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?{rr_type:e.constructor.name,src:e.src}:e instanceof ImageData?{rr_type:e.constructor.name,args:[In(e.data,t,r),e.width,e.height]}:Io(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:Ir(e,t,r)}:e}var Ii=function(e,t,r){return R3([],R6(e),!1).map(function(e){return In(e,t,r)})},Io=function(e,t){return!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]}).find(function(r){return e instanceof t[r]})};function Ia(e,t,r,n,i,o){var a,s,u=[],c=Object.getOwnPropertyNames(e),l=function(a){try{if("function"!=typeof e[a])return"continue";var s=CR(e,a,function(s){return function(){for(var u=[],c=0;ct.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}();function Il(e){return R1(R1({},e),{timestamp:Date.now()})}var If={map:{},getId:function(e){return e&&e.__sn?e.__sn.id:-1},getNode:function(e){return this.map[e]||null},removeNodeFromMap:function(e){var t=this,r=e.__sn&&e.__sn.id;delete this.map[r],e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},has:function(e){return this.map.hasOwnProperty(e)},reset:function(){this.map={}}};function Id(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,a=e.blockSelector,s=void 0===a?null:a,u=e.ignoreClass,c=void 0===u?"rr-ignore":u,l=e.maskTextClass,f=void 0===l?"rr-mask":l,d=e.maskTextSelector,h=void 0===d?null:d,p=e.inlineStylesheet,m=void 0===p||p,y=e.maskAllInputs,g=e.maskInputOptions,b=e.slimDOMOptions,v=e.maskInputFn,_=e.maskTextFn,S=e.hooks,E=e.packFn,w=e.sampling,T=void 0===w?{}:w,x=e.mousemoveWait,A=e.recordCanvas,O=void 0!==A&&A,M=e.userTriggeredOnInput,R=void 0!==M&&M,C=e.collectFonts,I=void 0!==C&&C,N=e.inlineImages,P=void 0!==N&&N,k=e.plugins,D=e.keepIframeSrcFn,L=void 0===D?function(){return!1}:D;if(!t)throw Error("emit function is required");void 0!==x&&void 0===T.mousemove&&(T.mousemove=x);var j,U,B=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==g?g:{password:!0},F=!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===b,headMetaDescKeywords:"all"===b}:b||{};void 0===j&&(j=window),"NodeList"in j&&!j.NodeList.prototype.forEach&&(j.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in j&&!j.DOMTokenList.prototype.forEach&&(j.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(e){if(!(0 in arguments))throw TypeError("1 argument is required");do if(this===e)return!0;while(e=e&&e.parentNode);return!1});var z=0;Is=function(e,i){var o;if((null==(o=CH[0])?void 0:o.isFrozen())&&e.type!==Cc.FullSnapshot&&(e.type!==Cc.IncrementalSnapshot||e.data.source!==Cl.Mutation)&&CH.forEach(function(e){return e.unfreeze()}),t(function(e){var t,r;try{for(var n=R2(k||[]),i=n.next();!i.done;i=n.next()){var o=i.value;o.eventProcessor&&(e=o.eventProcessor(e))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return E&&(e=E(e)),e}(e),i),e.type===Cc.FullSnapshot)U=e,z=0;else if(e.type===Cc.IncrementalSnapshot){if(e.data.source===Cl.Mutation&&e.data.isAttachIframe)return;z++;var a=n&&z>=n,s=r&&e.timestamp-U.timestamp>r;(a||s)&&Iu(!0)}};var $=function(e){Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.Mutation},e)}))},V=function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.Scroll},e)}))},Y=function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.CanvasMutation},e)}))},q=new C5({mutationCb:$}),H=new Ic({recordCanvas:O,mutationCb:Y,win:window,blockClass:o,mirror:If}),W=new C8({mutationCb:$,scrollCb:V,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:f,maskTextSelector:h,inlineStylesheet:m,maskInputOptions:B,maskTextFn:_,maskInputFn:v,recordCanvas:O,inlineImages:P,sampling:T,slimDOMOptions:F,iframeManager:q,canvasManager:H},mirror:If});Iu=function(e){void 0===e&&(e=!1),Is(Il({type:Cc.Meta,data:{href:window.location.href,width:CI(),height:CC()}}),e),CH.forEach(function(e){return e.lock()});var t,r,n,i,a=R6(function(e,t){var r=t||{},n=r.blockClass,i=void 0===n?"rr-block":n,o=r.blockSelector,a=void 0===o?null:o,s=r.maskTextClass,u=void 0===s?"rr-mask":s,c=r.maskTextSelector,l=void 0===c?null:c,f=r.inlineStylesheet,d=void 0===f||f,h=r.inlineImages,p=void 0!==h&&h,m=r.recordCanvas,y=void 0!==m&&m,g=r.maskAllInputs,b=void 0!==g&&g,v=r.maskTextFn,_=r.maskInputFn,S=r.slimDOM,E=void 0!==S&&S,w=r.dataURLOptions,T=r.preserveWhiteSpace,x=r.onSerialize,A=r.onIframeLoad,O=r.iframeLoadTimeout,M=r.keepIframeSrcFn,R={};return[Cw(e,{doc:e,map:R,blockClass:i,blockSelector:a,maskTextClass:u,maskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===b?{password:!0}:b,maskTextFn:v,maskInputFn:_,slimDOMOptions:!0===E||"all"===E?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===E,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===E?{}:E,dataURLOptions:w,inlineImages:p,recordCanvas:y,preserveWhiteSpace:T,onSerialize:x,onIframeLoad:A,iframeLoadTimeout:O,keepIframeSrcFn:void 0===M?function(){return!1}:M}),R]}(document,{blockClass:o,blockSelector:s,maskTextClass:f,maskTextSelector:h,inlineStylesheet:m,maskAllInputs:B,maskTextFn:_,slimDOM:F,recordCanvas:O,inlineImages:P,onSerialize:function(e){CL(e)&&q.addIframe(e),Cj(e)&&W.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){q.attachIframe(e,t),W.observeAttachShadow(e)},keepIframeSrcFn:L}),2),u=a[0],c=a[1];if(!u)return console.warn("Failed to snapshot the document");If.map=c,Is(Il({type:Cc.FullSnapshot,data:{node:u,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null==document?void 0:document.documentElement.scrollLeft)||(null==(r=null==(t=null==document?void 0:document.body)?void 0:t.parentElement)?void 0:r.scrollLeft)||(null==document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null==document?void 0:document.documentElement.scrollTop)||(null==(i=null==(n=null==document?void 0:document.body)?void 0:n.parentElement)?void 0:i.scrollTop)||(null==document?void 0:document.body.scrollTop)||0}}})),CH.forEach(function(e){return e.unlock()})};try{var G=[];G.push(CT("DOMContentLoaded",function(){Is(Il({type:Cc.DomContentLoaded,data:{}}))}));var Z=function(e){var t;return C4({mutationCb:$,mousemoveCb:function(e,t){return Is(Il({type:Cc.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.MouseInteraction},e)}))},scrollCb:V,viewportResizeCb:function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.ViewportResize},e)}))},inputCb:function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.Input},e)}))},mediaInteractionCb:function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.StyleDeclaration},e)}))},canvasMutationCb:Y,fontCb:function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.Font},e)}))},blockClass:o,ignoreClass:c,maskTextClass:f,maskTextSelector:h,maskInputOptions:B,inlineStylesheet:m,sampling:T,recordCanvas:O,inlineImages:P,userTriggeredOnInput:R,collectFonts:I,doc:e,maskInputFn:v,maskTextFn:_,blockSelector:s,slimDOMOptions:F,mirror:If,iframeManager:q,shadowDomManager:W,canvasManager:H,plugins:(null==(t=null==k?void 0:k.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return Is(Il({type:Cc.Plugin,data:{plugin:e.name,payload:t}}))}}}))||[]},S)};q.addLoadListener(function(e){G.push(Z(e.contentDocument))});var K=function(){Iu(),G.push(Z(document))};return"interactive"===document.readyState||"complete"===document.readyState?K():G.push(CT("load",function(){Is(Il({type:Cc.Load,data:{}})),K()},window)),function(){G.forEach(function(e){return e()})}}catch(e){console.warn(e)}}Id.addCustomEvent=function(e,t){if(!Is)throw Error("please add custom event after start recording");Is(Il({type:Cc.Custom,data:{tag:e,payload:t}}))},Id.freezePage=function(){CH.forEach(function(e){return e.freeze()})},Id.takeFullSnapshot=function(e){if(!Iu)throw Error("please take full snapshot after start recording");Iu(e)},Id.mirror=If;var Ih=Uint8Array,Ip=Uint16Array,Im=Uint32Array,Iy=new Ih([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Ig=new Ih([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ib=new Ih([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Iv=function(e,t){for(var r=new Ip(31),n=0;n<31;++n)r[n]=t+=1<>>1|(21845&Ix)<<1;IA=(61680&(IA=(52428&IA)>>>2|(13107&IA)<<2))>>>4|(3855&IA)<<4,IT[Ix]=((65280&IA)>>>8|(255&IA)<<8)>>>1}var IO=function(e,t,r){for(var n=e.length,i=0,o=new Ip(t);i>>u]=c}else for(a=new Ip(n),i=0;i>>15-e[i]);return a},IM=new Ih(288);for(Ix=0;Ix<144;++Ix)IM[Ix]=8;for(Ix=144;Ix<256;++Ix)IM[Ix]=9;for(Ix=256;Ix<280;++Ix)IM[Ix]=7;for(Ix=280;Ix<288;++Ix)IM[Ix]=8;var IR=new Ih(32);for(Ix=0;Ix<32;++Ix)IR[Ix]=5;var IC=IO(IM,9,0),II=IO(IR,5,0),IN=function(e){return(e+7)/8|0},IP=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8},Ik=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},ID=function(e,t){for(var r=[],n=0;nd&&(d=o[n].s);var h=new Ip(d+1),p=IL(r[l-1],h,0);if(p>t){n=0;var m=0,y=p-t,g=1<t))break;m+=g-(1<>>=y;m>0;){var v=o[n].s;h[v]=0&&m;--n){var _=o[n].s;h[_]==t&&(--h[_],++m)}p=t}return[new Ih(h),p]},IL=function(e,t,r){return -1==e.s?Math.max(IL(e.l,t,r+1),IL(e.r,t,r+1)):t[e.s]=r},Ij=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Ip(++t),n=0,i=e[0],o=1,a=function(e){r[n++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return[r.subarray(0,n),t]},IU=function(e,t){for(var r=0,n=0;n>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o4&&!A[Ib[M-1]];--M);var R,C,I,N,P=c+5<<3,k=IU(i,IM)+IU(o,IR)+a,D=IU(i,d)+IU(o,m)+a+14+3*M+IU(w,A)+(2*w[16]+3*w[17]+7*w[18]);if(P<=k&&P<=D)return IB(t,l,e.subarray(u,u+c));if(IP(t,l,1+(D15&&(IP(t,l,B[T]>>>5&127),l+=B[T]>>>12)}}}else R=IC,C=IM,I=II,N=IR;for(T=0;T255){Ik(t,l,R[(F=n[T]>>>18&31)+257]),l+=C[F+257],F>7&&(IP(t,l,n[T]>>>23&31),l+=Iy[F]);var z=31&n[T];Ik(t,l,I[z]),l+=N[z],z>3&&(Ik(t,l,n[T]>>>5&8191),l+=Ig[z])}else Ik(t,l,R[n[T]]),l+=C[n[T]];return Ik(t,l,R[256]),l+C[256]},Iz=new Im([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),I$=new Ih(0),IV=function(e,t,r,n,i,o){var a=e.length,s=new Ih(n+a+5*(1+Math.ceil(a/7e3))+i),u=s.subarray(n,s.length-i),c=0;if(!t||a<8)for(var l=0;l<=a;l+=65535){var f=l+65535;f>=a&&(u[c>>3]=o),c=IB(u,c+1,e.subarray(l,f))}else{for(var d=Iz[t-1],h=d>>>13,p=8191&d,m=(1<7e3||A>24576)&&N>423){c=IF(e,u,0,S,E,w,x,A,M,l-M,c),A=T=x=0,M=l;for(var P=0;P<286;++P)E[P]=0;for(P=0;P<30;++P)w[P]=0}var k=2,D=0,L=p,j=C-I&32767;if(N>2&&R==_(l-j))for(var U=Math.min(h,N)-1,B=Math.min(32767,l),F=Math.min(258,N);j<=B&&--L&&C!=I;){if(e[l+k]==e[l+k-j]){for(var z=0;zk){if(k=z,D=j,z>U)break;var $=Math.min(j,z-2),V=0;for(P=0;P<$;++P){var Y=l-j+P+32768&32767,q=Y-y[Y]+32768&32767;q>V&&(V=q,I=Y)}}}j+=(C=I)-(I=y[C])+32768&32767}if(D){S[A++]=0x10000000|IE[k]<<18|Iw[D];var H=31&IE[k],W=31&Iw[D];x+=Iy[H]+Ig[W],++E[257+H],++w[W],O=l+k,++T}else S[A++]=e[l],++E[e[l]]}}c=IF(e,u,o,S,E,w,x,A,M,l-M,c),!o&&7&c&&(c=IB(u,c+1,I$))}return function(e,t,r){(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length);var n=new(2==e.BYTES_PER_ELEMENT?Ip:4==e.BYTES_PER_ELEMENT?Im:Ih)(r-t);return n.set(e.subarray(t,r)),n}(s,0,n+IN(c)+i)},IY=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&-0x12477ce0)^r>>>1;e[t]=r}return e}(),Iq=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};function IH(e,t){t||(t={});var r=function(){var e=-1;return{p:function(t){for(var r=e,n=0;n>>8;e=r},d:function(){return~e}}}(),n=e.length;r.p(e);var i,o,a,s,u,c=(i=e,o=t,a=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),s=8,IV(i,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+o.mem,a,s,!u)),l=c.length;return function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:2*(9==t.level),e[9]=3,0!=t.mtime&&Iq(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}}(c,t),Iq(c,l-8,r.d()),Iq(c,l-4,n),c}var IW="u">typeof TextDecoder&&new TextDecoder;try{IW.decode(I$,{stream:!0})}catch(e){}var IG=null;try{IG=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function IZ(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function IK(e){return!0===(e&&e.__isLong__)}function IX(e){var t=Math.clz32(e&-e);return e?31-t:t}IZ.prototype.__isLong__,Object.defineProperty(IZ.prototype,"__isLong__",{value:!0}),IZ.isLong=IK;var IJ={},IQ={};function I0(e,t){var r,n,i;return t?(i=0<=(e>>>=0)&&e<256)&&(n=IQ[e])?n:(r=I2(e,0,!0),i&&(IQ[e]=r),r):(i=-128<=(e|=0)&&e<128)&&(n=IJ[e])?n:(r=I2(e,e<0?-1:0,!1),i&&(IJ[e]=r),r)}function I1(e,t){if(isNaN(e))return t?Nt:Ne;if(t){if(e<0)return Nt;if(e>=I8)return Na}else{if(e<=-I9)return Ns;if(e+1>=I9)return No}return e<0?I1(-e,t).neg():I2(e%I5|0,e/I5|0,t)}function I2(e,t,r){return new IZ(e,t,r)}IZ.fromInt=I0,IZ.fromNumber=I1,IZ.fromBits=I2;var I6=Math.pow;function I3(e,t,r){if(0===e.length)throw Error("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?Nt:Ne;if((r=r||10)<2||360)throw Error("interior hyphen");if(0===n)return I3(e.substring(1),t,r).neg();for(var n,i=I1(I6(r,8)),o=Ne,a=0;a>>0:this.low},Nu.toNumber=function(){return this.unsigned?(this.high>>>0)*I5+(this.low>>>0):this.high*I5+(this.low>>>0)},Nu.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((o=s).isZero())return u+a;for(;u.length<6;)u="0"+u;a=""+u+a}},Nu.getHighBits=function(){return this.high},Nu.getHighBitsUnsigned=function(){return this.high>>>0},Nu.getLowBits=function(){return this.low},Nu.getLowBitsUnsigned=function(){return this.low>>>0},Nu.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Ns)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<=0},Nu.isOdd=function(){return!(1&~this.low)},Nu.isEven=function(){return!(1&this.low)},Nu.equals=function(e){return IK(e)||(e=I4(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},Nu.eq=Nu.equals,Nu.notEquals=function(e){return!this.eq(e)},Nu.neq=Nu.notEquals,Nu.ne=Nu.notEquals,Nu.lessThan=function(e){return 0>this.comp(e)},Nu.lt=Nu.lessThan,Nu.lessThanOrEqual=function(e){return 0>=this.comp(e)},Nu.lte=Nu.lessThanOrEqual,Nu.le=Nu.lessThanOrEqual,Nu.greaterThan=function(e){return this.comp(e)>0},Nu.gt=Nu.greaterThan,Nu.greaterThanOrEqual=function(e){return this.comp(e)>=0},Nu.gte=Nu.greaterThanOrEqual,Nu.ge=Nu.greaterThanOrEqual,Nu.compare=function(e){if(IK(e)||(e=I4(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},Nu.comp=Nu.compare,Nu.negate=function(){return!this.unsigned&&this.eq(Ns)?Ns:this.not().add(Nr)},Nu.neg=Nu.negate,Nu.add=function(e){IK(e)||(e=I4(e));var t,r,n,i=this.high>>>16,o=65535&this.high,a=this.low>>>16,s=65535&this.low,u=e.high>>>16,c=65535&e.high,l=e.low>>>16,f=0;return n=0+((t=0+((r=0+(s+(65535&e.low)))>>>16)+(a+l))>>>16),f+=(n+=o+c)>>>16,f+=i+u,I2((t&=65535)<<16|(r&=65535),(f&=65535)<<16|(n&=65535),this.unsigned)},Nu.subtract=function(e){return IK(e)||(e=I4(e)),this.add(e.neg())},Nu.sub=Nu.subtract,Nu.multiply=function(e){if(this.isZero())return this;if(IK(e)||(e=I4(e)),IG)return I2(IG.mul(this.low,this.high,e.low,e.high),IG.get_high(),this.unsigned);if(e.isZero())return this.unsigned?Nt:Ne;if(this.eq(Ns))return e.isOdd()?Ns:Ne;if(e.eq(Ns))return this.isOdd()?Ns:Ne;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(I7)&&e.lt(I7))return I1(this.toNumber()*e.toNumber(),this.unsigned);var t,r,n,i=this.high>>>16,o=65535&this.high,a=this.low>>>16,s=65535&this.low,u=e.high>>>16,c=65535&e.high,l=e.low>>>16,f=65535&e.low,d=0;return n=0+((t=0+((r=0+s*f)>>>16)+a*f)>>>16),t&=65535,n+=(t+=s*l)>>>16,d+=(n+=o*f)>>>16,n&=65535,d+=(n+=a*l)>>>16,n&=65535,d+=(n+=s*c)>>>16,d+=i*f+o*l+a*c+s*u,I2((t&=65535)<<16|(r&=65535),(d&=65535)<<16|(n&=65535),this.unsigned)},Nu.mul=Nu.multiply,Nu.divide=function(e){if(IK(e)||(e=I4(e)),e.isZero())throw Error("division by zero");if(IG)return this.unsigned||-0x80000000!==this.high||-1!==e.low||-1!==e.high?I2((this.unsigned?IG.div_u:IG.div_s)(this.low,this.high,e.low,e.high),IG.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?Nt:Ne;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return Nt;if(e.gt(this.shru(1)))return Nn;n=Nt}else{if(this.eq(Ns))return e.eq(Nr)||e.eq(Ni)?Ns:e.eq(Ns)?Nr:(t=this.shr(1).div(e).shl(1)).eq(Ne)?e.isNegative()?Nr:Ni:(r=this.sub(e.mul(t)),n=t.add(r.div(e)));if(e.eq(Ns))return this.unsigned?Nt:Ne;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();n=Ne}for(r=this;r.gte(e);){t=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var t,r,n,i=Math.ceil(Math.log(t)/Math.LN2),o=i<=48?1:I6(2,i-48),a=I1(t),s=a.mul(e);s.isNegative()||s.gt(r);)s=(a=I1(t-=o,this.unsigned)).mul(e);a.isZero()&&(a=Nr),n=n.add(a),r=r.sub(s)}return n},Nu.div=Nu.divide,Nu.modulo=function(e){return IK(e)||(e=I4(e)),IG?I2((this.unsigned?IG.rem_u:IG.rem_s)(this.low,this.high,e.low,e.high),IG.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},Nu.mod=Nu.modulo,Nu.rem=Nu.modulo,Nu.not=function(){return I2(~this.low,~this.high,this.unsigned)},Nu.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},Nu.clz=Nu.countLeadingZeros,Nu.countTrailingZeros=function(){return this.low?IX(this.low):IX(this.high)+32},Nu.ctz=Nu.countTrailingZeros,Nu.and=function(e){return IK(e)||(e=I4(e)),I2(this.low&e.low,this.high&e.high,this.unsigned)},Nu.or=function(e){return IK(e)||(e=I4(e)),I2(this.low|e.low,this.high|e.high,this.unsigned)},Nu.xor=function(e){return IK(e)||(e=I4(e)),I2(this.low^e.low,this.high^e.high,this.unsigned)},Nu.shiftLeft=function(e){return IK(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?I2(this.low<>>32-e,this.unsigned):I2(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):I2(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},Nu.shr=Nu.shiftRight,Nu.shiftRightUnsigned=function(e){return IK(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?I2(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):I2(32===e?this.high:this.high>>>e-32,0,this.unsigned)},Nu.shru=Nu.shiftRightUnsigned,Nu.shr_u=Nu.shiftRightUnsigned,Nu.rotateLeft=function(e){var t;return IK(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?I2(this.high,this.low,this.unsigned):e<32?(t=32-e,I2(this.low<>>t,this.high<>>t,this.unsigned)):(t=32-(e-=32),I2(this.high<>>t,this.low<>>t,this.unsigned))},Nu.rotl=Nu.rotateLeft,Nu.rotateRight=function(e){var t;return IK(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?I2(this.high,this.low,this.unsigned):e<32?(t=32-e,I2(this.high<>>e,this.low<>>e,this.unsigned)):(t=32-(e-=32),I2(this.low<>>e,this.high<>>e,this.unsigned))},Nu.rotr=Nu.rotateRight,Nu.toSigned=function(){return this.unsigned?I2(this.low,this.high,!1):this},Nu.toUnsigned=function(){return this.unsigned?this:I2(this.low,this.high,!0)},Nu.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},Nu.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},Nu.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},IZ.fromBytes=function(e,t,r){return r?IZ.fromBytesLE(e,t):IZ.fromBytesBE(e,t)},IZ.fromBytesLE=function(e,t){return new IZ(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},IZ.fromBytesBE=function(e,t){return new IZ(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};var Nc={},Nl={},Nf=function(e,t){for(var r=Array(arguments.length-1),n=0,i=2,o=!0;i1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var r=Array(64),n=Array(123),i=0;i<64;)n[r[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;t.encode=function(e,t,n){for(var i,o=null,a=[],s=0,u=0;t>2],i=(3&c)<<4,u=1;break;case 1:a[s++]=r[i|c>>4],i=(15&c)<<2,u=2;break;case 2:a[s++]=r[i|c>>6],a[s++]=r[63&c],u=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return u&&(a[s++]=r[i],a[s++]=61,1===u&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var o="invalid encoding";t.decode=function(e,t,r){for(var i,a=r,s=0,u=0;u1)break;if(void 0===(c=n[c]))throw Error(o);switch(s){case 0:i=c,s=1;break;case 1:t[r++]=i<<2|(48&c)>>4,i=c,s=2;break;case 2:t[r++]=(15&i)<<4|(60&c)>>2,i=c,s=3;break;case 3:t[r++]=(3&i)<<6|c,s=0}}if(1===s)throw Error(o);return r-a},t.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(Nd);var Nh=Np;function Np(){this._listeners={}}Np.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},Np.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],n=0;ntypeof Float32Array?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),n=128===r[3];function i(e,n,i){t[0]=e,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3]}function o(e,n,i){t[0]=e,n[i]=r[3],n[i+1]=r[2],n[i+2]=r[1],n[i+3]=r[0]}function a(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],t[0]}function s(e,n){return r[3]=e[n],r[2]=e[n+1],r[1]=e[n+2],r[0]=e[n+3],t[0]}e.writeFloatLE=n?i:o,e.writeFloatBE=n?o:i,e.readFloatLE=n?a:s,e.readFloatBE=n?s:a}():function(){function t(e,t,r,n){var i=+(t<0);if(i&&(t=-t),0===t)e(1/t>0?0:0x80000000,r,n);else if(isNaN(t))e(0x7fc00000,r,n);else if(t>34028234663852886e22)e((i<<31|0x7f800000)>>>0,r,n);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var o=Math.floor(Math.log(t)/Math.LN2);e((i<<31|o+127<<23|8388607&Math.round(t*Math.pow(2,-o)*8388608))>>>0,r,n)}}function r(e,t,r){var n=e(t,r),i=2*(n>>31)+1,o=n>>>23&255,a=8388607&n;return 255===o?a?NaN:1/0*i:0===o?1401298464324817e-60*i*a:i*Math.pow(2,o-150)*(a+8388608)}e.writeFloatLE=t.bind(null,Ng),e.writeFloatBE=t.bind(null,Nb),e.readFloatLE=r.bind(null,Nv),e.readFloatBE=r.bind(null,N_)}(),"u">typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function i(e,n,i){t[0]=e,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3],n[i+4]=r[4],n[i+5]=r[5],n[i+6]=r[6],n[i+7]=r[7]}function o(e,n,i){t[0]=e,n[i]=r[7],n[i+1]=r[6],n[i+2]=r[5],n[i+3]=r[4],n[i+4]=r[3],n[i+5]=r[2],n[i+6]=r[1],n[i+7]=r[0]}function a(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function s(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?i:o,e.writeDoubleBE=n?o:i,e.readDoubleLE=n?a:s,e.readDoubleBE=n?s:a}():function(){function t(e,t,r,n,i,o){var a,s=+(n<0);if(s&&(n=-n),0===n)e(0,i,o+t),e(1/n>0?0:0x80000000,i,o+r);else if(isNaN(n))e(0,i,o+t),e(0x7ff80000,i,o+r);else if(n>17976931348623157e292)e(0,i,o+t),e((s<<31|0x7ff00000)>>>0,i,o+r);else if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,i,o+t),e((s<<31|a/0x100000000)>>>0,i,o+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(0x10000000000000*(a=n*Math.pow(2,-u))>>>0,i,o+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,i,o+r)}}function r(e,t,r,n,i){var o=e(n,i+t),a=e(n,i+r),s=2*(a>>31)+1,u=a>>>20&2047,c=0x100000000*(1048575&a)+o;return 2047===u?c?NaN:1/0*s:0===u?5e-324*s*c:s*Math.pow(2,u-1075)*(c+0x10000000000000)}e.writeDoubleLE=t.bind(null,Ng,0,4),e.writeDoubleBE=t.bind(null,Nb,4,0),e.readDoubleLE=r.bind(null,Nv,0,4),e.readDoubleBE=r.bind(null,N_,4,0)}(),e}function Ng(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function Nb(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function Nv(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function N_(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}var NS=function(e){return null},NE={};!function(e){var t=e;t.length=function(e){for(var t=0,r=0,n=0;n191&&n<224?o[a++]=(31&n)<<6|63&e[t++]:n>239&&n<365?(n=((7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[a++]=55296+(n>>10),o[a++]=56320+(1023&n)):o[a++]=(15&n)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),a=0);return i?(a&&i.push(String.fromCharCode.apply(String,o.slice(0,a))),i.join("")):String.fromCharCode.apply(String,o.slice(0,a))},t.write=function(e,t,r){for(var n,i,o=r,a=0;a>6|192:(55296==(64512&n)&&56320==(64512&(i=e.charCodeAt(a+1)))?(n=65536+((1023&n)<<10)+(1023&i),++a,t[r++]=n>>18|240,t[r++]=n>>12&63|128):t[r++]=n>>12|224,t[r++]=n>>6&63|128),t[r++]=63&n|128);return r-o}}(NE);var Nw,NT,Nx,NA=function(e,t,r){var n=r||8192,i=n>>>1,o=null,a=n;return function(r){if(r<1||r>i)return e(r);a+r>n&&(o=e(n),a=0);var s=t.call(o,a,a+=r);return 7&a&&(a=1+(7|a)),s}};function NO(){return Nx||(Nx=1,function(e){var t=e;function r(e,t,r){for(var n=Object.keys(t),i=0;i>>0,this.hi=t>>>0}var r=t.zero=new t(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var n=t.zeroHash="\0\0\0\0\0\0\0\0";t.fromNumber=function(e){if(0===e)return r;var n=e<0;n&&(e=-e);var i=e>>>0,o=(e-i)/0x100000000>>>0;return n&&(o=~o>>>0,i=~i>>>0,++i>0xffffffff&&(i=0,++o>0xffffffff&&(o=0))),new t(i,o)},t.from=function(n){if("number"==typeof n)return t.fromNumber(n);if(e.isString(n)){if(!e.Long)return t.fromNumber(parseInt(n,10));n=e.Long.fromString(n)}return n.low||n.high?new t(n.low>>>0,n.high>>>0):r},t.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+0x100000000*r)}return this.lo+0x100000000*this.hi},t.prototype.toLong=function(t){return e.Long?new e.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var i=String.prototype.charCodeAt;return t.fromHash=function(e){return e===n?r:new t((i.call(e,0)|i.call(e,1)<<8|i.call(e,2)<<16|i.call(e,3)<<24)>>>0,(i.call(e,4)|i.call(e,5)<<8|i.call(e,6)<<16|i.call(e,7)<<24)>>>0)},t.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},t.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},t.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},t.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10},Nw}(),t.isNode=!!(void 0!==o&&o&&o.process&&o.process.versions&&o.process.versions.node),t.global=t.isNode&&o||"u">typeof window&&window||"u">typeof self&&self||o,t.emptyArray=Object.freeze?Object.freeze([]):[],t.emptyObject=Object.freeze?Object.freeze({}):{},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.isString=function(e){return"string"==typeof e||e instanceof String},t.isObject=function(e){return e&&"object"==typeof e},t.isset=t.isSet=function(e,t){var r=e[t];return!(null==r||!e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},t.Buffer=function(){try{var e=t.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),t._Buffer_from=null,t._Buffer_allocUnsafe=null,t.newBuffer=function(e){return"number"==typeof e?t.Buffer?t._Buffer_allocUnsafe(e):new t.Array(e):t.Buffer?t._Buffer_from(e):"u"typeof Uint8Array?Uint8Array:Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||t.inquire("long"),t.key2Re=/^true|false|0|1$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(e){return e?t.LongBits.from(e).toHash():t.LongBits.zeroHash},t.longFromHash=function(e,r){var n=t.LongBits.fromHash(e);return t.Long?t.Long.fromBits(n.lo,n.hi,r):n.toNumber(!!r)},t.merge=r,t.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},t.newError=n,t.ProtocolError=n("ProtocolError"),t.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},t.oneOfSetter=function(e){return function(t){for(var r=0;r>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function N$(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}Nj.create=NU(),Nj.alloc=function(e){return new NC.Array(e)},NC.Array!==Array&&(Nj.alloc=NC.pool(Nj.alloc,NC.Array.prototype.subarray)),Nj.prototype._push=function(e,t,r){return this.tail=this.tail.next=new Nk(e,t,r),this.len+=t,this},NF.prototype=Object.create(Nk.prototype),NF.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},Nj.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new NF((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},Nj.prototype.int32=function(e){return e<0?this._push(Nz,10,NI.fromNumber(e)):this.uint32(e)},Nj.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},Nj.prototype.uint64=function(e){var t=NI.from(e);return this._push(Nz,t.length(),t)},Nj.prototype.int64=Nj.prototype.uint64,Nj.prototype.sint64=function(e){var t=NI.from(e).zzEncode();return this._push(Nz,t.length(),t)},Nj.prototype.bool=function(e){return this._push(NB,1,+!!e)},Nj.prototype.fixed32=function(e){return this._push(N$,4,e>>>0)},Nj.prototype.sfixed32=Nj.prototype.fixed32,Nj.prototype.fixed64=function(e){var t=NI.from(e);return this._push(N$,4,t.lo)._push(N$,4,t.hi)},Nj.prototype.sfixed64=Nj.prototype.fixed64,Nj.prototype.float=function(e){return this._push(NC.float.writeFloatLE,4,e)},Nj.prototype.double=function(e){return this._push(NC.float.writeDoubleLE,8,e)};var NV=NC.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(NB,1,0);if(NC.isString(e)){var r=Nj.alloc(t=NN.length(e));NN.decode(e,r,0),e=r}return this.uint32(t)._push(NV,t,e)},Nj.prototype.string=function(e){var t=NP.length(e);return t?this.uint32(t)._push(NP.write,t,e):this._push(NB,1,0)},Nj.prototype.fork=function(){return this.states=new NL(this),this.head=this.tail=new Nk(ND,0,0),this.len=0,this},Nj.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Nk(ND,0,0),this.len=0),this},Nj.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},Nj.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},Nj._configure=function(e){NM=e,Nj.create=NU(),NM._configure()};var NY=NW,Nq=NR;(NW.prototype=Object.create(Nq.prototype)).constructor=NW;var NH=NO();function NW(){Nq.call(this)}function NG(e,t,r){e.length<40?NH.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}NW._configure=function(){NW.alloc=NH._Buffer_allocUnsafe,NW.writeBytesBuffer=NH.Buffer&&NH.Buffer.prototype instanceof Uint8Array&&"set"===NH.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(NW.writeBytesBuffer,t,e),this},NW.prototype.string=function(e){var t=NH.Buffer.byteLength(e);return this.uint32(t),t&&this._push(NG,t,e),this},NW._configure();var NZ,NK=N1,NX=NO(),NJ=NX.LongBits,NQ=NX.utf8;function N0(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function N1(e){this.buf=e,this.pos=0,this.len=e.length}var N2,N6="u">typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new N1(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new N1(e);throw Error("illegal buffer")},N3=function(){return NX.Buffer?function(e){return(N1.create=function(e){return NX.Buffer.isBuffer(e)?new NZ(e):N6(e)})(e)}:N6};function N4(){var e=new NJ(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw N0(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw N0(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function N5(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function N8(){if(this.pos+8>this.len)throw N0(this,8);return new NJ(N5(this.buf,this.pos+=4),N5(this.buf,this.pos+=4))}N1.create=N3(),N1.prototype._slice=NX.Array.prototype.subarray||NX.Array.prototype.slice,N1.prototype.uint32=(N2=0xffffffff,function(){if(N2=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(N2=(N2|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(N2=(N2|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(N2=(N2|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(N2=(N2|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return N2;if((this.pos+=5)>this.len)throw this.pos=this.len,N0(this,10);return N2}),N1.prototype.int32=function(){return 0|this.uint32()},N1.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},N1.prototype.bool=function(){return 0!==this.uint32()},N1.prototype.fixed32=function(){if(this.pos+4>this.len)throw N0(this,4);return N5(this.buf,this.pos+=4)},N1.prototype.sfixed32=function(){if(this.pos+4>this.len)throw N0(this,4);return 0|N5(this.buf,this.pos+=4)},N1.prototype.float=function(){if(this.pos+4>this.len)throw N0(this,4);var e=NX.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},N1.prototype.double=function(){if(this.pos+8>this.len)throw N0(this,4);var e=NX.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},N1.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw N0(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,r):t===r?new this.buf.constructor(0):this._slice.call(this.buf,t,r)},N1.prototype.string=function(){var e=this.bytes();return NQ.read(e,0,e.length)},N1.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw N0(this,e);this.pos+=e}else do if(this.pos>=this.len)throw N0(this);while(128&this.buf[this.pos++]);return this},N1.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},N1._configure=function(e){NZ=e,N1.create=N3(),NZ._configure();var t=NX.Long?"toLong":"toNumber";NX.merge(N1.prototype,{int64:function(){return N4.call(this)[t](!1)},uint64:function(){return N4.call(this)[t](!0)},sint64:function(){return N4.call(this).zzDecode()[t](!1)},fixed64:function(){return N8.call(this)[t](!0)},sfixed64:function(){return N8.call(this)[t](!1)}})};var N9=Pt,N7=NK;(Pt.prototype=Object.create(N7.prototype)).constructor=Pt;var Pe=NO();function Pt(e){N7.call(this,e)}Pt._configure=function(){Pe.Buffer&&(Pt.prototype._slice=Pe.Buffer.prototype.slice)},Pt.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},Pt._configure();var Pr={},Pn=Po,Pi=NO();function Po(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");Pi.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!r}(Po.prototype=Object.create(Pi.EventEmitter.prototype)).constructor=Po,Po.prototype.rpcCall=function e(t,r,n,i,o){if(!i)throw TypeError("request must be specified");var a=this;if(!o)return Pi.asPromise(e,a,t,r,n,i);if(a.rpcImpl)try{return a.rpcImpl(t,r[a.requestDelimited?"encodeDelimited":"encode"](i).finish(),function(e,r){if(e)return a.emit("error",e,t),o(e);if(null!==r){if(!(r instanceof n))try{r=n[a.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return a.emit("error",e,t),o(e)}return a.emit("data",r,t),o(null,r)}a.end(!0)})}catch(e){return a.emit("error",e,t),void setTimeout(function(){o(e)},0)}setTimeout(function(){o(Error("already ended"))},0)},Po.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},function(e){e.Service=Pn}(Pr);var Pa={};!function(e){var t=e;function r(){t.util._configure(),t.Writer._configure(t.BufferWriter),t.Reader._configure(t.BufferReader)}t.build="minimal",t.Writer=NR,t.BufferWriter=NY,t.Reader=NK,t.BufferReader=N9,t.util=NO(),t.rpc=Pr,t.roots=Pa,t.configure=r,r()}(Nc);var Ps=a(Nc);let Pu={encode:(e,t=Ps.Writer.create())=>(void 0!==e.stringValue&&t.uint32(10).string(e.stringValue),void 0!==e.boolValue&&t.uint32(16).bool(e.boolValue),void 0!==e.intValue&&t.uint32(24).int64(e.intValue),void 0!==e.doubleValue&&t.uint32(33).double(e.doubleValue),void 0!==e.arrayValue&&Pc.encode(e.arrayValue,t.uint32(42).fork()).ldelim(),void 0!==e.kvlistValue&&Pl.encode(e.kvlistValue,t.uint32(50).fork()).ldelim(),void 0!==e.bytesValue&&t.uint32(58).bytes(e.bytesValue),t),decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={stringValue:void 0,boolValue:void 0,intValue:void 0,doubleValue:void 0,arrayValue:void 0,kvlistValue:void 0,bytesValue:void 0};for(;r.pos>>3){case 1:if(10!==e)break;i.stringValue=r.string();continue;case 2:if(16!==e)break;i.boolValue=r.bool();continue;case 3:if(24!==e)break;i.intValue=Pm(r.int64());continue;case 4:if(33!==e)break;i.doubleValue=r.double();continue;case 5:if(42!==e)break;i.arrayValue=Pc.decode(r,r.uint32());continue;case 6:if(50!==e)break;i.kvlistValue=Pl.decode(r,r.uint32());continue;case 7:if(58!==e)break;i.bytesValue=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({stringValue:Py(e.stringValue)?globalThis.String(e.stringValue):void 0,boolValue:Py(e.boolValue)?globalThis.Boolean(e.boolValue):void 0,intValue:Py(e.intValue)?globalThis.Number(e.intValue):void 0,doubleValue:Py(e.doubleValue)?globalThis.Number(e.doubleValue):void 0,arrayValue:Py(e.arrayValue)?Pc.fromJSON(e.arrayValue):void 0,kvlistValue:Py(e.kvlistValue)?Pl.fromJSON(e.kvlistValue):void 0,bytesValue:Py(e.bytesValue)?Pp(e.bytesValue):void 0}),toJSON(e){let t={};return void 0!==e.stringValue&&(t.stringValue=e.stringValue),void 0!==e.boolValue&&(t.boolValue=e.boolValue),void 0!==e.intValue&&(t.intValue=Math.round(e.intValue)),void 0!==e.doubleValue&&(t.doubleValue=e.doubleValue),void 0!==e.arrayValue&&(t.arrayValue=Pc.toJSON(e.arrayValue)),void 0!==e.kvlistValue&&(t.kvlistValue=Pl.toJSON(e.kvlistValue)),void 0!==e.bytesValue&&(t.bytesValue=function(e){if(globalThis.Buffer)return globalThis.Buffer.from(e).toString("base64");{let t=[];return e.forEach(e=>{t.push(globalThis.String.fromCharCode(e))}),globalThis.btoa(t.join(""))}}(e.bytesValue)),t},create:e=>Pu.fromPartial(null!=e?e:{}),fromPartial(e){var t,r,n,i,o;let a={stringValue:void 0,boolValue:void 0,intValue:void 0,doubleValue:void 0,arrayValue:void 0,kvlistValue:void 0,bytesValue:void 0};return a.stringValue=null!=(t=e.stringValue)?t:void 0,a.boolValue=null!=(r=e.boolValue)?r:void 0,a.intValue=null!=(n=e.intValue)?n:void 0,a.doubleValue=null!=(i=e.doubleValue)?i:void 0,a.arrayValue=void 0!==e.arrayValue&&null!==e.arrayValue?Pc.fromPartial(e.arrayValue):void 0,a.kvlistValue=void 0!==e.kvlistValue&&null!==e.kvlistValue?Pl.fromPartial(e.kvlistValue):void 0,a.bytesValue=null!=(o=e.bytesValue)?o:void 0,a}},Pc={encode(e,t=Ps.Writer.create()){if(void 0!==e.values&&0!==e.values.length)for(let r of e.values)Pu.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={values:[]};for(;r.pos>>3){case 1:if(10!==e)break;i.values.push(Pu.decode(r,r.uint32()));continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({values:globalThis.Array.isArray(null==e?void 0:e.values)?e.values.map(e=>Pu.fromJSON(e)):[]}),toJSON(e){var t;let r={};return(null==(t=e.values)?void 0:t.length)&&(r.values=e.values.map(e=>Pu.toJSON(e))),r},create:e=>Pc.fromPartial(null!=e?e:{}),fromPartial(e){var t;let r={values:[]};return r.values=(null==(t=e.values)?void 0:t.map(e=>Pu.fromPartial(e)))||[],r}},Pl={encode(e,t=Ps.Writer.create()){if(void 0!==e.values&&0!==e.values.length)for(let r of e.values)Pf.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={values:[]};for(;r.pos>>3){case 1:if(10!==e)break;i.values.push(Pf.decode(r,r.uint32()));continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({values:globalThis.Array.isArray(null==e?void 0:e.values)?e.values.map(e=>Pf.fromJSON(e)):[]}),toJSON(e){var t;let r={};return(null==(t=e.values)?void 0:t.length)&&(r.values=e.values.map(e=>Pf.toJSON(e))),r},create:e=>Pl.fromPartial(null!=e?e:{}),fromPartial(e){var t;let r={values:[]};return r.values=(null==(t=e.values)?void 0:t.map(e=>Pf.fromPartial(e)))||[],r}},Pf={encode:(e,t=Ps.Writer.create())=>(void 0!==e.key&&""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&Pu.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={key:"",value:void 0};for(;r.pos>>3){case 1:if(10!==e)break;i.key=r.string();continue;case 2:if(18!==e)break;i.value=Pu.decode(r,r.uint32());continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({key:Py(e.key)?globalThis.String(e.key):"",value:Py(e.value)?Pu.fromJSON(e.value):void 0}),toJSON(e){let t={};return void 0!==e.key&&""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=Pu.toJSON(e.value)),t},create:e=>Pf.fromPartial(null!=e?e:{}),fromPartial(e){var t;let r={key:"",value:void 0};return r.key=null!=(t=e.key)?t:"",r.value=void 0!==e.value&&null!==e.value?Pu.fromPartial(e.value):void 0,r}},Pd={encode:(e,t=Ps.Writer.create())=>(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),void 0!==e.version&&""!==e.version&&t.uint32(18).string(e.version),t),decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={name:"",version:""};for(;r.pos>>3){case 1:if(10!==e)break;i.name=r.string();continue;case 2:if(18!==e)break;i.version=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({name:Py(e.name)?globalThis.String(e.name):"",version:Py(e.version)?globalThis.String(e.version):""}),toJSON(e){let t={};return void 0!==e.name&&""!==e.name&&(t.name=e.name),void 0!==e.version&&""!==e.version&&(t.version=e.version),t},create:e=>Pd.fromPartial(null!=e?e:{}),fromPartial(e){var t,r;let n={name:"",version:""};return n.name=null!=(t=e.name)?t:"",n.version=null!=(r=e.version)?r:"",n}},Ph={encode:(e,t=Ps.Writer.create())=>(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),void 0!==e.version&&""!==e.version&&t.uint32(18).string(e.version),t),decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={name:"",version:""};for(;r.pos>>3){case 1:if(10!==e)break;i.name=r.string();continue;case 2:if(18!==e)break;i.version=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({name:Py(e.name)?globalThis.String(e.name):"",version:Py(e.version)?globalThis.String(e.version):""}),toJSON(e){let t={};return void 0!==e.name&&""!==e.name&&(t.name=e.name),void 0!==e.version&&""!==e.version&&(t.version=e.version),t},create:e=>Ph.fromPartial(null!=e?e:{}),fromPartial(e){var t,r;let n={name:"",version:""};return n.name=null!=(t=e.name)?t:"",n.version=null!=(r=e.version)?r:"",n}};function Pp(e){if(globalThis.Buffer)return Uint8Array.from(globalThis.Buffer.from(e,"base64"));{let t=globalThis.atob(e),r=new Uint8Array(t.length);for(let e=0;e>>3){case 1:if(10!==e)break;i.attributes.push(Pf.decode(r,r.uint32()));continue;case 2:if(16!==e)break;i.droppedAttributesCount=r.uint32();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({attributes:globalThis.Array.isArray(null==e?void 0:e.attributes)?e.attributes.map(e=>Pf.fromJSON(e)):[],droppedAttributesCount:Pb(e.droppedAttributesCount)?globalThis.Number(e.droppedAttributesCount):0}),toJSON(e){var t;let r={};return(null==(t=e.attributes)?void 0:t.length)&&(r.attributes=e.attributes.map(e=>Pf.toJSON(e))),void 0!==e.droppedAttributesCount&&0!==e.droppedAttributesCount&&(r.droppedAttributesCount=Math.round(e.droppedAttributesCount)),r},create:e=>Pg.fromPartial(null!=e?e:{}),fromPartial(e){var t,r;let n={attributes:[],droppedAttributesCount:0};return n.attributes=(null==(t=e.attributes)?void 0:t.map(e=>Pf.fromPartial(e)))||[],n.droppedAttributesCount=null!=(r=e.droppedAttributesCount)?r:0,n}};function Pb(e){return null!=e}function Pv(e){switch(e){case 0:case"SEVERITY_NUMBER_UNSPECIFIED":return t.SEVERITY_NUMBER_UNSPECIFIED;case 1:case"SEVERITY_NUMBER_TRACE":return t.SEVERITY_NUMBER_TRACE;case 2:case"SEVERITY_NUMBER_TRACE2":return t.SEVERITY_NUMBER_TRACE2;case 3:case"SEVERITY_NUMBER_TRACE3":return t.SEVERITY_NUMBER_TRACE3;case 4:case"SEVERITY_NUMBER_TRACE4":return t.SEVERITY_NUMBER_TRACE4;case 5:case"SEVERITY_NUMBER_DEBUG":return t.SEVERITY_NUMBER_DEBUG;case 6:case"SEVERITY_NUMBER_DEBUG2":return t.SEVERITY_NUMBER_DEBUG2;case 7:case"SEVERITY_NUMBER_DEBUG3":return t.SEVERITY_NUMBER_DEBUG3;case 8:case"SEVERITY_NUMBER_DEBUG4":return t.SEVERITY_NUMBER_DEBUG4;case 9:case"SEVERITY_NUMBER_INFO":return t.SEVERITY_NUMBER_INFO;case 10:case"SEVERITY_NUMBER_INFO2":return t.SEVERITY_NUMBER_INFO2;case 11:case"SEVERITY_NUMBER_INFO3":return t.SEVERITY_NUMBER_INFO3;case 12:case"SEVERITY_NUMBER_INFO4":return t.SEVERITY_NUMBER_INFO4;case 13:case"SEVERITY_NUMBER_WARN":return t.SEVERITY_NUMBER_WARN;case 14:case"SEVERITY_NUMBER_WARN2":return t.SEVERITY_NUMBER_WARN2;case 15:case"SEVERITY_NUMBER_WARN3":return t.SEVERITY_NUMBER_WARN3;case 16:case"SEVERITY_NUMBER_WARN4":return t.SEVERITY_NUMBER_WARN4;case 17:case"SEVERITY_NUMBER_ERROR":return t.SEVERITY_NUMBER_ERROR;case 18:case"SEVERITY_NUMBER_ERROR2":return t.SEVERITY_NUMBER_ERROR2;case 19:case"SEVERITY_NUMBER_ERROR3":return t.SEVERITY_NUMBER_ERROR3;case 20:case"SEVERITY_NUMBER_ERROR4":return t.SEVERITY_NUMBER_ERROR4;case 21:case"SEVERITY_NUMBER_FATAL":return t.SEVERITY_NUMBER_FATAL;case 22:case"SEVERITY_NUMBER_FATAL2":return t.SEVERITY_NUMBER_FATAL2;case 23:case"SEVERITY_NUMBER_FATAL3":return t.SEVERITY_NUMBER_FATAL3;case 24:case"SEVERITY_NUMBER_FATAL4":return t.SEVERITY_NUMBER_FATAL4;default:return t.UNRECOGNIZED}}!function(e){e[e.SEVERITY_NUMBER_UNSPECIFIED=0]="SEVERITY_NUMBER_UNSPECIFIED",e[e.SEVERITY_NUMBER_TRACE=1]="SEVERITY_NUMBER_TRACE",e[e.SEVERITY_NUMBER_TRACE2=2]="SEVERITY_NUMBER_TRACE2",e[e.SEVERITY_NUMBER_TRACE3=3]="SEVERITY_NUMBER_TRACE3",e[e.SEVERITY_NUMBER_TRACE4=4]="SEVERITY_NUMBER_TRACE4",e[e.SEVERITY_NUMBER_DEBUG=5]="SEVERITY_NUMBER_DEBUG",e[e.SEVERITY_NUMBER_DEBUG2=6]="SEVERITY_NUMBER_DEBUG2",e[e.SEVERITY_NUMBER_DEBUG3=7]="SEVERITY_NUMBER_DEBUG3",e[e.SEVERITY_NUMBER_DEBUG4=8]="SEVERITY_NUMBER_DEBUG4",e[e.SEVERITY_NUMBER_INFO=9]="SEVERITY_NUMBER_INFO",e[e.SEVERITY_NUMBER_INFO2=10]="SEVERITY_NUMBER_INFO2",e[e.SEVERITY_NUMBER_INFO3=11]="SEVERITY_NUMBER_INFO3",e[e.SEVERITY_NUMBER_INFO4=12]="SEVERITY_NUMBER_INFO4",e[e.SEVERITY_NUMBER_WARN=13]="SEVERITY_NUMBER_WARN",e[e.SEVERITY_NUMBER_WARN2=14]="SEVERITY_NUMBER_WARN2",e[e.SEVERITY_NUMBER_WARN3=15]="SEVERITY_NUMBER_WARN3",e[e.SEVERITY_NUMBER_WARN4=16]="SEVERITY_NUMBER_WARN4",e[e.SEVERITY_NUMBER_ERROR=17]="SEVERITY_NUMBER_ERROR",e[e.SEVERITY_NUMBER_ERROR2=18]="SEVERITY_NUMBER_ERROR2",e[e.SEVERITY_NUMBER_ERROR3=19]="SEVERITY_NUMBER_ERROR3",e[e.SEVERITY_NUMBER_ERROR4=20]="SEVERITY_NUMBER_ERROR4",e[e.SEVERITY_NUMBER_FATAL=21]="SEVERITY_NUMBER_FATAL",e[e.SEVERITY_NUMBER_FATAL2=22]="SEVERITY_NUMBER_FATAL2",e[e.SEVERITY_NUMBER_FATAL3=23]="SEVERITY_NUMBER_FATAL3",e[e.SEVERITY_NUMBER_FATAL4=24]="SEVERITY_NUMBER_FATAL4",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(t||(t={})),function(e){e[e.LOG_RECORD_FLAG_UNSPECIFIED=0]="LOG_RECORD_FLAG_UNSPECIFIED",e[e.LOG_RECORD_FLAG_TRACE_FLAGS_MASK=255]="LOG_RECORD_FLAG_TRACE_FLAGS_MASK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={}));let P_={encode(e,t=Ps.Writer.create()){if(void 0!==e.resourceLogs&&0!==e.resourceLogs.length)for(let r of e.resourceLogs)PS.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={resourceLogs:[]};for(;r.pos>>3){case 1:if(10!==e)break;i.resourceLogs.push(PS.decode(r,r.uint32()));continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({resourceLogs:globalThis.Array.isArray(null==e?void 0:e.resourceLogs)?e.resourceLogs.map(e=>PS.fromJSON(e)):[]}),toJSON(e){var t;let r={};return(null==(t=e.resourceLogs)?void 0:t.length)&&(r.resourceLogs=e.resourceLogs.map(e=>PS.toJSON(e))),r},create:e=>P_.fromPartial(null!=e?e:{}),fromPartial(e){var t;let r={resourceLogs:[]};return r.resourceLogs=(null==(t=e.resourceLogs)?void 0:t.map(e=>PS.fromPartial(e)))||[],r}},PS={encode(e,t=Ps.Writer.create()){if(void 0!==e.resource&&Pg.encode(e.resource,t.uint32(10).fork()).ldelim(),void 0!==e.scopeLogs&&0!==e.scopeLogs.length)for(let r of e.scopeLogs)PE.encode(r,t.uint32(18).fork()).ldelim();if(void 0!==e.instrumentationLibraryLogs&&0!==e.instrumentationLibraryLogs.length)for(let r of e.instrumentationLibraryLogs)Pw.encode(r,t.uint32(8002).fork()).ldelim();return void 0!==e.schemaUrl&&""!==e.schemaUrl&&t.uint32(26).string(e.schemaUrl),t},decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={resource:void 0,scopeLogs:[],instrumentationLibraryLogs:[],schemaUrl:""};for(;r.pos>>3){case 1:if(10!==e)break;i.resource=Pg.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.scopeLogs.push(PE.decode(r,r.uint32()));continue;case 1e3:if(8002!==e)break;i.instrumentationLibraryLogs.push(Pw.decode(r,r.uint32()));continue;case 3:if(26!==e)break;i.schemaUrl=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({resource:PR(e.resource)?Pg.fromJSON(e.resource):void 0,scopeLogs:globalThis.Array.isArray(null==e?void 0:e.scopeLogs)?e.scopeLogs.map(e=>PE.fromJSON(e)):[],instrumentationLibraryLogs:globalThis.Array.isArray(null==e?void 0:e.instrumentationLibraryLogs)?e.instrumentationLibraryLogs.map(e=>Pw.fromJSON(e)):[],schemaUrl:PR(e.schemaUrl)?globalThis.String(e.schemaUrl):""}),toJSON(e){var t,r;let n={};return void 0!==e.resource&&(n.resource=Pg.toJSON(e.resource)),(null==(t=e.scopeLogs)?void 0:t.length)&&(n.scopeLogs=e.scopeLogs.map(e=>PE.toJSON(e))),(null==(r=e.instrumentationLibraryLogs)?void 0:r.length)&&(n.instrumentationLibraryLogs=e.instrumentationLibraryLogs.map(e=>Pw.toJSON(e))),void 0!==e.schemaUrl&&""!==e.schemaUrl&&(n.schemaUrl=e.schemaUrl),n},create:e=>PS.fromPartial(null!=e?e:{}),fromPartial(e){var t,r,n;let i={resource:void 0,scopeLogs:[],instrumentationLibraryLogs:[],schemaUrl:""};return i.resource=void 0!==e.resource&&null!==e.resource?Pg.fromPartial(e.resource):void 0,i.scopeLogs=(null==(t=e.scopeLogs)?void 0:t.map(e=>PE.fromPartial(e)))||[],i.instrumentationLibraryLogs=(null==(r=e.instrumentationLibraryLogs)?void 0:r.map(e=>Pw.fromPartial(e)))||[],i.schemaUrl=null!=(n=e.schemaUrl)?n:"",i}},PE={encode(e,t=Ps.Writer.create()){if(void 0!==e.scope&&Ph.encode(e.scope,t.uint32(10).fork()).ldelim(),void 0!==e.logRecords&&0!==e.logRecords.length)for(let r of e.logRecords)Px.encode(r,t.uint32(18).fork()).ldelim();return void 0!==e.schemaUrl&&""!==e.schemaUrl&&t.uint32(26).string(e.schemaUrl),t},decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={scope:void 0,logRecords:[],schemaUrl:""};for(;r.pos>>3){case 1:if(10!==e)break;i.scope=Ph.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.logRecords.push(Px.decode(r,r.uint32()));continue;case 3:if(26!==e)break;i.schemaUrl=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({scope:PR(e.scope)?Ph.fromJSON(e.scope):void 0,logRecords:globalThis.Array.isArray(null==e?void 0:e.logRecords)?e.logRecords.map(e=>Px.fromJSON(e)):[],schemaUrl:PR(e.schemaUrl)?globalThis.String(e.schemaUrl):""}),toJSON(e){var t;let r={};return void 0!==e.scope&&(r.scope=Ph.toJSON(e.scope)),(null==(t=e.logRecords)?void 0:t.length)&&(r.logRecords=e.logRecords.map(e=>Px.toJSON(e))),void 0!==e.schemaUrl&&""!==e.schemaUrl&&(r.schemaUrl=e.schemaUrl),r},create:e=>PE.fromPartial(null!=e?e:{}),fromPartial(e){var t,r;let n={scope:void 0,logRecords:[],schemaUrl:""};return n.scope=void 0!==e.scope&&null!==e.scope?Ph.fromPartial(e.scope):void 0,n.logRecords=(null==(t=e.logRecords)?void 0:t.map(e=>Px.fromPartial(e)))||[],n.schemaUrl=null!=(r=e.schemaUrl)?r:"",n}},Pw={encode(e,t=Ps.Writer.create()){if(void 0!==e.instrumentationLibrary&&Pd.encode(e.instrumentationLibrary,t.uint32(10).fork()).ldelim(),void 0!==e.logRecords&&0!==e.logRecords.length)for(let r of e.logRecords)Px.encode(r,t.uint32(18).fork()).ldelim();return void 0!==e.schemaUrl&&""!==e.schemaUrl&&t.uint32(26).string(e.schemaUrl),t},decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={instrumentationLibrary:void 0,logRecords:[],schemaUrl:""};for(;r.pos>>3){case 1:if(10!==e)break;i.instrumentationLibrary=Pd.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.logRecords.push(Px.decode(r,r.uint32()));continue;case 3:if(26!==e)break;i.schemaUrl=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({instrumentationLibrary:PR(e.instrumentationLibrary)?Pd.fromJSON(e.instrumentationLibrary):void 0,logRecords:globalThis.Array.isArray(null==e?void 0:e.logRecords)?e.logRecords.map(e=>Px.fromJSON(e)):[],schemaUrl:PR(e.schemaUrl)?globalThis.String(e.schemaUrl):""}),toJSON(e){var t;let r={};return void 0!==e.instrumentationLibrary&&(r.instrumentationLibrary=Pd.toJSON(e.instrumentationLibrary)),(null==(t=e.logRecords)?void 0:t.length)&&(r.logRecords=e.logRecords.map(e=>Px.toJSON(e))),void 0!==e.schemaUrl&&""!==e.schemaUrl&&(r.schemaUrl=e.schemaUrl),r},create:e=>Pw.fromPartial(null!=e?e:{}),fromPartial(e){var t,r;let n={instrumentationLibrary:void 0,logRecords:[],schemaUrl:""};return n.instrumentationLibrary=void 0!==e.instrumentationLibrary&&null!==e.instrumentationLibrary?Pd.fromPartial(e.instrumentationLibrary):void 0,n.logRecords=(null==(t=e.logRecords)?void 0:t.map(e=>Px.fromPartial(e)))||[],n.schemaUrl=null!=(r=e.schemaUrl)?r:"",n}};function PT(){return{timeUnixNano:0,observedTimeUnixNano:0,severityNumber:0,severityText:"",body:void 0,attributes:[],droppedAttributesCount:0,flags:0,traceId:new Uint8Array(0),spanId:new Uint8Array(0)}}let Px={encode(e,t=Ps.Writer.create()){if(void 0!==e.timeUnixNano&&0!==e.timeUnixNano&&t.uint32(9).fixed64(e.timeUnixNano),void 0!==e.observedTimeUnixNano&&0!==e.observedTimeUnixNano&&t.uint32(89).fixed64(e.observedTimeUnixNano),void 0!==e.severityNumber&&0!==e.severityNumber&&t.uint32(16).int32(e.severityNumber),void 0!==e.severityText&&""!==e.severityText&&t.uint32(26).string(e.severityText),void 0!==e.body&&Pu.encode(e.body,t.uint32(42).fork()).ldelim(),void 0!==e.attributes&&0!==e.attributes.length)for(let r of e.attributes)Pf.encode(r,t.uint32(50).fork()).ldelim();return void 0!==e.droppedAttributesCount&&0!==e.droppedAttributesCount&&t.uint32(56).uint32(e.droppedAttributesCount),void 0!==e.flags&&0!==e.flags&&t.uint32(69).fixed32(e.flags),void 0!==e.traceId&&0!==e.traceId.length&&t.uint32(74).bytes(e.traceId),void 0!==e.spanId&&0!==e.spanId.length&&t.uint32(82).bytes(e.spanId),t},decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i=PT();for(;r.pos>>3){case 1:if(9!==e)break;i.timeUnixNano=PM(r.fixed64());continue;case 11:if(89!==e)break;i.observedTimeUnixNano=PM(r.fixed64());continue;case 2:if(16!==e)break;i.severityNumber=r.int32();continue;case 3:if(26!==e)break;i.severityText=r.string();continue;case 5:if(42!==e)break;i.body=Pu.decode(r,r.uint32());continue;case 6:if(50!==e)break;i.attributes.push(Pf.decode(r,r.uint32()));continue;case 7:if(56!==e)break;i.droppedAttributesCount=r.uint32();continue;case 8:if(69!==e)break;i.flags=r.fixed32();continue;case 9:if(74!==e)break;i.traceId=r.bytes();continue;case 10:if(82!==e)break;i.spanId=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({timeUnixNano:PR(e.timeUnixNano)?globalThis.Number(e.timeUnixNano):0,observedTimeUnixNano:PR(e.observedTimeUnixNano)?globalThis.Number(e.observedTimeUnixNano):0,severityNumber:PR(e.severityNumber)?Pv(e.severityNumber):0,severityText:PR(e.severityText)?globalThis.String(e.severityText):"",body:PR(e.body)?Pu.fromJSON(e.body):void 0,attributes:globalThis.Array.isArray(null==e?void 0:e.attributes)?e.attributes.map(e=>Pf.fromJSON(e)):[],droppedAttributesCount:PR(e.droppedAttributesCount)?globalThis.Number(e.droppedAttributesCount):0,flags:PR(e.flags)?globalThis.Number(e.flags):0,traceId:PR(e.traceId)?PA(e.traceId):new Uint8Array(0),spanId:PR(e.spanId)?PA(e.spanId):new Uint8Array(0)}),toJSON(e){var r;let n={};return void 0!==e.timeUnixNano&&0!==e.timeUnixNano&&(n.timeUnixNano=Math.round(e.timeUnixNano)),void 0!==e.observedTimeUnixNano&&0!==e.observedTimeUnixNano&&(n.observedTimeUnixNano=Math.round(e.observedTimeUnixNano)),void 0!==e.severityNumber&&0!==e.severityNumber&&(n.severityNumber=function(e){switch(e){case t.SEVERITY_NUMBER_UNSPECIFIED:return"SEVERITY_NUMBER_UNSPECIFIED";case t.SEVERITY_NUMBER_TRACE:return"SEVERITY_NUMBER_TRACE";case t.SEVERITY_NUMBER_TRACE2:return"SEVERITY_NUMBER_TRACE2";case t.SEVERITY_NUMBER_TRACE3:return"SEVERITY_NUMBER_TRACE3";case t.SEVERITY_NUMBER_TRACE4:return"SEVERITY_NUMBER_TRACE4";case t.SEVERITY_NUMBER_DEBUG:return"SEVERITY_NUMBER_DEBUG";case t.SEVERITY_NUMBER_DEBUG2:return"SEVERITY_NUMBER_DEBUG2";case t.SEVERITY_NUMBER_DEBUG3:return"SEVERITY_NUMBER_DEBUG3";case t.SEVERITY_NUMBER_DEBUG4:return"SEVERITY_NUMBER_DEBUG4";case t.SEVERITY_NUMBER_INFO:return"SEVERITY_NUMBER_INFO";case t.SEVERITY_NUMBER_INFO2:return"SEVERITY_NUMBER_INFO2";case t.SEVERITY_NUMBER_INFO3:return"SEVERITY_NUMBER_INFO3";case t.SEVERITY_NUMBER_INFO4:return"SEVERITY_NUMBER_INFO4";case t.SEVERITY_NUMBER_WARN:return"SEVERITY_NUMBER_WARN";case t.SEVERITY_NUMBER_WARN2:return"SEVERITY_NUMBER_WARN2";case t.SEVERITY_NUMBER_WARN3:return"SEVERITY_NUMBER_WARN3";case t.SEVERITY_NUMBER_WARN4:return"SEVERITY_NUMBER_WARN4";case t.SEVERITY_NUMBER_ERROR:return"SEVERITY_NUMBER_ERROR";case t.SEVERITY_NUMBER_ERROR2:return"SEVERITY_NUMBER_ERROR2";case t.SEVERITY_NUMBER_ERROR3:return"SEVERITY_NUMBER_ERROR3";case t.SEVERITY_NUMBER_ERROR4:return"SEVERITY_NUMBER_ERROR4";case t.SEVERITY_NUMBER_FATAL:return"SEVERITY_NUMBER_FATAL";case t.SEVERITY_NUMBER_FATAL2:return"SEVERITY_NUMBER_FATAL2";case t.SEVERITY_NUMBER_FATAL3:return"SEVERITY_NUMBER_FATAL3";case t.SEVERITY_NUMBER_FATAL4:return"SEVERITY_NUMBER_FATAL4";case t.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.severityNumber)),void 0!==e.severityText&&""!==e.severityText&&(n.severityText=e.severityText),void 0!==e.body&&(n.body=Pu.toJSON(e.body)),(null==(r=e.attributes)?void 0:r.length)&&(n.attributes=e.attributes.map(e=>Pf.toJSON(e))),void 0!==e.droppedAttributesCount&&0!==e.droppedAttributesCount&&(n.droppedAttributesCount=Math.round(e.droppedAttributesCount)),void 0!==e.flags&&0!==e.flags&&(n.flags=Math.round(e.flags)),void 0!==e.traceId&&0!==e.traceId.length&&(n.traceId=PO(e.traceId)),void 0!==e.spanId&&0!==e.spanId.length&&(n.spanId=PO(e.spanId)),n},create:e=>Px.fromPartial(null!=e?e:{}),fromPartial(e){var t,r,n,i,o,a,s,u,c;let l=PT();return l.timeUnixNano=null!=(t=e.timeUnixNano)?t:0,l.observedTimeUnixNano=null!=(r=e.observedTimeUnixNano)?r:0,l.severityNumber=null!=(n=e.severityNumber)?n:0,l.severityText=null!=(i=e.severityText)?i:"",l.body=void 0!==e.body&&null!==e.body?Pu.fromPartial(e.body):void 0,l.attributes=(null==(o=e.attributes)?void 0:o.map(e=>Pf.fromPartial(e)))||[],l.droppedAttributesCount=null!=(a=e.droppedAttributesCount)?a:0,l.flags=null!=(s=e.flags)?s:0,l.traceId=null!=(u=e.traceId)?u:new Uint8Array(0),l.spanId=null!=(c=e.spanId)?c:new Uint8Array(0),l}};function PA(e){if(globalThis.Buffer)return Uint8Array.from(globalThis.Buffer.from(e,"base64"));{let t=globalThis.atob(e),r=new Uint8Array(t.length);for(let e=0;e{t.push(globalThis.String.fromCharCode(e))}),globalThis.btoa(t.join(""))}}function PM(e){if(e.gt(globalThis.Number.MAX_SAFE_INTEGER))throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}function PR(e){return null!=e}Ps.util.Long!==IZ&&(Ps.util.Long=IZ,Ps.configure());let PC="0.16.2",PI={"Content-Type":"application/x-protobuf","Content-Encoding":"gzip"},PN=P_;function PP(e){return Array.isArray(e)}function Pk(e){return!function(e){return!!e&&"object"==typeof e&&!PP(e)}(e)?PP(e)?{arrayValue:{values:e.map(e=>Pk(e))}}:"string"==typeof e?{stringValue:e}:"number"==typeof e?{doubleValue:e}:"boolean"==typeof e?{boolValue:e}:{}:{kvlistValue:{values:Object.entries(e).map(([e,t])=>({key:e,value:Pk(t)}))}}}class PD{constructor(e){this.config=e}constructLogData(e){var t,r,n;return{resourceLogs:[{resource:{attributes:null==(n=null==(r=Pk((null==(t=this.config.resource)?void 0:t.attributes)||{}))?void 0:r.kvlistValue)?void 0:n.values},scopeLogs:[{scope:{name:"rum.rr-web",version:PC},logRecords:e.map(e=>{var t;return{body:Pk(e.body),timeUnixNano:1e6*e.timeUnixNano,attributes:null==(t=Pk(e.attributes||{}).kvlistValue)?void 0:t.values}})}]}]}}export(e){if(0===e.length)return;let t=this.constructLogData(e);this.config.debug&&console.log("otlp request",t);let r=IH(PN.encode(t).finish()),n=this.config.headers?Object.assign({},PI,this.config.headers):PI;fetch(this.config.beaconUrl,{method:"POST",body:r,headers:n}).catch(()=>{})}}class PL{constructor(e,t){this.logs=[],this.scheduledDelayMillis=(null==t?void 0:t.scheduledDelayMillis)||5e3,this.exporter=e,window.addEventListener("unload",()=>{this._flushAll()})}onLog(e){this.logs.push(e),void 0===this.timeout&&(this.timeout=setTimeout(()=>{this.timeout=void 0,this._flushAll()},this.scheduledDelayMillis))}_flushAll(){this.lastBatchSent=Date.now(),th.with(TU(th.active()),()=>{let e=this.logs.splice(0,this.logs.length);this.exporter.export(e)})}}function Pj(e,t,r){return{body:e,timeUnixNano:t,attributes:r}}class PU{constructor(e,t={}){var r,n;this.rrweb=e,this.options=t,this.bucketSize=100,this.refillRate=10,this.mutationBuckets={},this.loggedTracker={},this.refillBuckets=()=>{Object.keys(this.mutationBuckets).forEach(e=>{this.mutationBuckets[e]=this.mutationBuckets[e]+this.refillRate,this.mutationBuckets[e]>=this.bucketSize&&delete this.mutationBuckets[e]})},this.getNodeOrRelevantParent=e=>{let t=this.rrweb.mirror.getNode(e);if("svg"!==(null==t?void 0:t.nodeName)&&t instanceof Element){let e=t.closest("svg");if(e)return[this.rrweb.mirror.getId(e),e]}return[e,t]},this.numberOfChanges=e=>{var t,r,n,i,o,a,s,u;return(null!=(r=null==(t=e.removes)?void 0:t.length)?r:0)+(null!=(i=null==(n=e.attributes)?void 0:n.length)?i:0)+(null!=(a=null==(o=e.texts)?void 0:o.length)?a:0)+(null!=(u=null==(s=e.adds)?void 0:s.length)?u:0)},this.throttleMutations=e=>{if(3!==e.type||0!==e.data.source)return e;let t=e.data,r=this.numberOfChanges(t);t.attributes&&(t.attributes=t.attributes.filter(e=>{var t,r,n;let[i,o]=this.getNodeOrRelevantParent(e.id);return 0!==this.mutationBuckets[i]&&(this.mutationBuckets[i]=null!=(t=this.mutationBuckets[i])?t:this.bucketSize,this.mutationBuckets[i]=Math.max(this.mutationBuckets[i]-1,0),0===this.mutationBuckets[i]&&(this.loggedTracker[i]||(this.loggedTracker[i]=!0,null==(n=(r=this.options).onBlockedNode)||n.call(r,i,o))),e)}));let n=this.numberOfChanges(t);return 0!==n||r===n?e:void 0},this.refillRate=null!=(r=this.options.refillRate)?r:this.refillRate,this.bucketSize=null!=(n=this.options.bucketSize)?n:this.bucketSize,setInterval(()=>{this.refillBuckets()},1e3)}}var PB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};let PF=972800,Pz=new TextEncoder,P$=new TextDecoder,PV,PY,Pq,PH,PW=!1,PG=0,PZ=!1,PK=1,PX=1,PJ={get inited(){return!!PW},init(e){if(PW)return;if("u"{let r=`OpenTelemetry Session Recorder: Rate limiting recording mutations on node ${e}. This can be due to excessive animations.`,n=Date.now(),i=PV.startSpan("console.warn",{kind:te.INTERNAL,startTime:n});i.setAttribute("component","console"),i.setAttribute("level","warn"),i.setAttribute("message",r),i.end(n),o&&console.warn(r,t),clearTimeout(PH),PH=setTimeout(()=>{Id.takeFullSnapshot()},1e3)}}),PW=Id(Object.assign(Object.assign({maskAllInputs:!0,maskTextSelector:"*"},a),{emit(e){if(PZ)return;if(r.attributes["rum.sessionId"]!==PY){if(document.hidden)return;PY=r.attributes["rum.sessionId"],PG=Date.now(),PK=1,PX=1,Id.takeFullSnapshot()}if(e.timestamp>PG+1446e4)return;let t=Pq?Pq.throttleMutations(e):e;if(!t)return;let n=t.timestamp,i=PK++,a=Pz.encode(function(e){if(e.length>5e6){let t=/data:([\w/\-.]+);(\w+),([^)"]*)/gim;for(let r of e.matchAll(t))e="image/"===r[1].toLocaleLowerCase().slice(0,6)?e.replace(r[0],"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg=="):e.replace(r[0],"")}return e}(JSON.stringify(t))),s=Math.ceil(a.byteLength/PF);for(let e=0;etypeof window}return new class{constructor(){this._advancedNetworkCapture=!1}init({advancedNetworkCapture:e=!1,apiKey:t,blockClass:r,captureConsole:n,consoleCapture:i,debug:o=!1,disableIntercom:a=!1,disableReplay:s=!1,ignoreClass:u,ignoreUrls:c,instrumentations:l={},maskAllInputs:f=!0,maskAllText:d=!1,maskClass:h,recordCanvas:p=!1,sampling:m,service:y,tracePropagationTargets:g,url:b}){var v;if(!PQ())return;null==t?console.warn("HyperDX: Missing apiKey, telemetry will not be saved."):""===t?console.warn("HyperDX: apiKey is empty string, telemetry will not be saved."):"string"!=typeof t&&console.warn("HyperDX: apiKey must be a string, telemetry will not be saved.");let _=null!=b?b:"https://in-otel.hyperdx.io";this._advancedNetworkCapture=e,RQ.init({debug:o,url:`${_}/v1/traces`,allowInsecureUrl:!0,apiKey:t,app:y,ignoreUrls:c,instrumentations:{visibility:!0,console:null!=(v=null!=n?n:i)&&v,fetch:{...null!=g?{propagateTraceHeaderCorsUrls:g}:{},advancedNetworkCapture:()=>this._advancedNetworkCapture},xhr:{...null!=g?{propagateTraceHeaderCorsUrls:g}:{},advancedNetworkCapture:()=>this._advancedNetworkCapture},...l}}),!0!==s&&PJ.init({apiKey:t,blockClass:r,debug:o,ignoreClass:u,maskAllInputs:f,maskTextClass:h,maskTextSelector:d?"*":void 0,recordCanvas:p,sampling:m,url:`${_}/v1/logs`});let S=tC.trace.getTracer("@hyperdx/browser");!0!==a&&(function(e){return new Promise((t,r)=>{let n=0,i=setInterval(()=>{n>20&&(clearInterval(i),r(Error(`Global ${e} not found`))),window[e]&&(clearInterval(i),t(window[e])),n++},100)})})("Intercom").then(()=>{window.Intercom("onShow",()=>{let e=this.getSessionUrl();if(null!=e){let t={hyperdxSessionUrl:e};window.Intercom("update",t),window.Intercom("trackEvent","HyperDX",t);let r=Date.now(),n=S.startSpan("intercom.onShow",{startTime:r});n.setAttribute("component","intercom"),n.end(r)}})}).catch(()=>{})}stopSessionRecorder(){PQ()&&PJ.stop()}resumeSessionRecorder(){PQ()&&PJ.resume()}addAction(e,t){PQ()&&RQ.addAction(e,t)}recordException(e,t){PQ()&&RQ.recordException(e,t)}enableAdvancedNetworkCapture(){this._advancedNetworkCapture=!0}disableAdvancedNetworkCapture(){this._advancedNetworkCapture=!1}setGlobalAttributes(e){PQ()&&RQ.setGlobalAttributes(e)}getSessionId(){return RQ.getSessionId()}getSessionUrl(){let e=Date.now(),t=e-144e5,r=e+144e5;return RQ.inited?`https://www.hyperdx.io/sessions?q=process.tag.rum.sessionId%3A"${RQ.getSessionId()}"&sid=${RQ.getSessionId()}&sfrom=${t}&sto=${r}&ts=${e}`:void 0}attachToReactErrorBoundary(e){if(!e)return console.warn("Attempted to attach to an ErrorBoundary that does not exist.");let t=this.recordException,r=e.prototype.componentDidCatch;e.prototype.componentDidCatch=function(e,n){t(e,{componentStack:null==n?void 0:n.componentStack}),r.call(this,e,n)}}}})},16638:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},17547:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultErrorMap=void 0,t.setErrorMap=a,t.getErrorMap=s;let i=n(r(40467));t.defaultErrorMap=i.default;let o=i.default;function a(e){o=e}function s(){return o}},18e3:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=void 0,t.isBrowser=function(){return!!("u">typeof window&&window.__ENV)}},19086:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(64892),i=r(45859);let o=(e,t)=>{let r;switch(e.code){case n.eq.invalid_type:r=e.received===i.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case n.eq.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,i.ZS.jsonStringifyReplacer)}`;break;case n.eq.unrecognized_keys:r=`Unrecognized key(s) in object: ${i.ZS.joinValues(e.keys,", ")}`;break;case n.eq.invalid_union:r="Invalid input";break;case n.eq.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${i.ZS.joinValues(e.options)}`;break;case n.eq.invalid_enum_value:r=`Invalid enum value. Expected ${i.ZS.joinValues(e.options)}, received '${e.received}'`;break;case n.eq.invalid_arguments:r="Invalid function arguments";break;case n.eq.invalid_return_type:r="Invalid function return type";break;case n.eq.invalid_date:r="Invalid date";break;case n.eq.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:i.ZS.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case n.eq.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case n.eq.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case n.eq.custom:r="Invalid input";break;case n.eq.invalid_intersection_types:r="Intersection results could not be merged";break;case n.eq.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case n.eq.not_finite:r="Number must be finite";break;default:r=t.defaultError,i.ZS.assertNever(e)}return{message:r}}},19589:(e,t,r)=>{"use strict";r.d(t,{K:()=>c});var n=r(6029);r(55729);var i=r(85824),o=r(78704);function a(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function s(e){return(0,o.H)(e).reduce((t,r)=>void 0!==e[r]?`${t}${a(r)}:${e[r]};`:t,"").trim()}function u({selector:e,styles:t,media:r,container:n}){let i=t?s(t):"",o=Array.isArray(r)?r.map(t=>`@media${t.query}{${e}{${s(t.styles)}}}`):[],a=Array.isArray(n)?n.map(t=>`@container ${t.query}{${e}{${s(t.styles)}}}`):[];return`${i?`${e}{${i}}`:""}${o.join("")}${a.join("")}`.trim()}function c(e){let t=(0,i.WV)();return(0,n.jsx)("style",{"data-mantine-styles":"inline",nonce:t?.(),dangerouslySetInnerHTML:{__html:u(e)}})}},19848:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(24090),i=r(4308),o=new class extends n.Q{#s;#t;#r;constructor(){super(),this.#r=e=>{if(!i.S$&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#s!==e&&(this.#s=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#s?this.#s:globalThis.document?.visibilityState!=="hidden"}}},20158:(e,t,r)=>{"use strict";r.d(t,{J:()=>y});var n=r(6029),i=r(26615),o=r(55729),a=r(76),s=r(5618),u=r(80616),c=r(37666),l=r(63863),f=r(8737);let d=(0,o.forwardRef)(({size:e="var(--cb-icon-size, 70%)",style:t,...r},i)=>(0,n.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:i,...r,children:(0,n.jsx)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));d.displayName="@mantine/core/CloseIcon";var h={root:"m_86a44da5","root--subtle":"m_220c80f2"};let p={variant:"subtle"},m=(0,s.V)((e,{size:t,radius:r,iconSize:n})=>({root:{"--cb-size":(0,a.YC)(t,"cb-size"),"--cb-radius":void 0===r?void 0:(0,a.nJ)(r),"--cb-icon-size":(0,i.D)(n)}})),y=(0,l.v)((e,t)=>{let r=(0,u.Y)("CloseButton",p,e),{iconSize:i,children:o,vars:a,radius:s,className:l,classNames:y,style:g,styles:b,unstyled:v,"data-disabled":_,disabled:S,variant:E,icon:w,mod:T,__staticSelector:x,...A}=r,O=(0,c.I)({name:x||"CloseButton",props:r,className:l,style:g,classes:h,classNames:y,styles:b,unstyled:v,vars:a,varsResolver:m});return(0,n.jsxs)(f.N,{ref:t,...A,unstyled:v,variant:E,disabled:S,mod:[{disabled:S||_},T],...O("root",{variant:E,active:!S&&!_}),children:[w||(0,n.jsx)(d,{}),o]})});y.classes=h,y.displayName="@mantine/core/CloseButton"},20586:(e,t,r)=>{"use strict";var n=r(29143);Object.defineProperty(t,"__esModule",{value:!0}),t.env=void 0;let i=r(18e3);t.env=function(e){return(0,i.isBrowser)()?window.__ENV[e]:n.env[e]}},21093:(e,t,r)=>{"use strict";var n,i=r(83639),o=r(27654);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(e){return u(null==e?e:s(e))}},21667:(e,t,r)=>{"use strict";var n=r(24813),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,r){for(var n=0,i=e.length;n=3&&(i=r),c(e)?a(e,t,i):"string"==typeof e?s(e,t,i):u(e,t,i)}},21981:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(41742),i=r(89250);function o(e){(0,i.A)(1,arguments);var t=(0,n.A)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}},22497:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(47971),i=r(41742),o=r(89250);function a(e){return(0,o.A)(1,arguments),(!!(0,n.A)(e)||"number"==typeof e)&&!isNaN(Number((0,i.A)(e)))}},22623:(e,t,r)=>{"use strict";r.d(t,{t:()=>h});var n=r(6029);r(55729);var i=r(76),o=r(5618),a=r(80616),s=r(37666),u=r(60481),c=r(63863),l={root:"m_1b7284a3"};let f={},d=(0,o.V)((e,{radius:t,shadow:r})=>({root:{"--paper-radius":void 0===t?void 0:(0,i.nJ)(t),"--paper-shadow":(0,i.dh)(r)}})),h=(0,c.v)((e,t)=>{let r=(0,a.Y)("Paper",f,e),{classNames:i,className:o,style:c,styles:h,unstyled:p,withBorder:m,vars:y,radius:g,shadow:b,variant:v,mod:_,...S}=r,E=(0,s.I)({name:"Paper",props:r,classes:l,className:o,style:c,classNames:i,styles:h,unstyled:p,vars:y,varsResolver:d});return(0,n.jsx)(u.a,{ref:t,mod:[{"data-with-border":m},_],...E("root"),variant:v,...S})});h.classes=l,h.displayName="@mantine/core/Paper"},22843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=s(r(3514)),i=s(r(42462)),o=s(r(78229)),a=r(31055);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){(0,i.default)(1,arguments);var r,s,u,c,l,f,d,h,p=(0,a.getDefaultOptions)(),m=(0,o.default)(null!=(r=null!=(s=null!=(u=null!=(c=null==t?void 0:t.weekStartsOn)?c:null==t||null==(l=t.locale)||null==(f=l.options)?void 0:f.weekStartsOn)?u:p.weekStartsOn)?s:null==(d=p.locale)||null==(h=d.options)?void 0:h.weekStartsOn)?r:0);if(!(m>=0&&m<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=(0,n.default)(e),g=y.getUTCDay(),b=7*(g{"use strict";r.d(t,{u:()=>o});var n={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},i="trunc";function o(e){return e?n[e]:n[i]}},24090:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});var n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},24345:(e,t,r)=>{"use strict";var n=r(21667),i=r(96779),o=r(62094),a=r(81074),s=r(27654),u=a("Object.prototype.toString"),c=r(27721)(),l="u"-1?t:"Object"===t&&g(e)}return s?y(e):null}},24708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=s(r(3514)),i=s(r(22843)),o=s(r(34738)),a=s(r(42462));function s(e){return e&&e.__esModule?e:{default:e}}var u=6048e5;function c(e,t){(0,a.default)(1,arguments);var r=(0,n.default)(e);return Math.round(((0,i.default)(r,t).getTime()-(0,o.default)(r,t).getTime())/u)+1}e.exports=t.default},24813:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{if(a(e))return!1;return n.call(e),!0}catch(e){return!1}},u=Object.prototype.toString,c="[object Object]",l="[object Function]",f="[object GeneratorFunction]",d="[object HTMLAllCollection]",h="[object HTML document.all class]",p="[object HTMLCollection]",m="function"==typeof Symbol&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if("object"==typeof document){var b=document.all;u.call(b)===u.call(document.all)&&(g=function(e){if((y||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return(t===d||t===h||t===p||t===c)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(g(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(g(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(m)return s(e);if(a(e))return!1;var t=u.call(e);return(t===l||t===f||!!/^\[object HTML/.test(t))&&s(e)}},24935:(e,t,r)=>{"use strict";r.d(t,{B:()=>u});var n=r(55729),i=r(3001);function o(e,t,r){for(let r=e-1;r>=0;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r;if(r){for(let e=t.length-1;e>-1;e-=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e}return e}function a(e,t,r){for(let r=e+1;r{h||(p(!0),l?.(e))},[p,l,h]),w=(0,n.useCallback)((e="unknown")=>{h&&(p(!1),c?.(e))},[p,c,h]),T=(0,n.useCallback)((e="unknown")=>{h?w(e):E(e)},[w,E,h]),x=(0,n.useCallback)(()=>{let e=document.querySelector(`#${m.current} [data-combobox-selected]`);e?.removeAttribute("data-combobox-selected"),e?.removeAttribute("aria-selected")},[]),A=(0,n.useCallback)(e=>{let t=document.getElementById(m.current),r=t?.querySelectorAll("[data-combobox-option]");if(!r)return null;let n=e>=r.length?0:e<0?r.length-1:e;return(y.current=n,r?.[n]&&!r[n].hasAttribute("data-combobox-disabled"))?(x(),r[n].setAttribute("data-combobox-selected","true"),r[n].setAttribute("aria-selected","true"),r[n].scrollIntoView({block:"nearest",behavior:d}),r[n].id):null},[d,x]),O=(0,n.useCallback)(()=>{let e=document.querySelector(`#${m.current} [data-combobox-active]`);return e?A(Array.from(document.querySelectorAll(`#${m.current} [data-combobox-option]`)).findIndex(t=>t===e)):A(0)},[A]),M=(0,n.useCallback)(()=>A(a(y.current,document.querySelectorAll(`#${m.current} [data-combobox-option]`),f)),[A,f]),R=(0,n.useCallback)(()=>A(o(y.current,document.querySelectorAll(`#${m.current} [data-combobox-option]`),f)),[A,f]),C=(0,n.useCallback)(()=>A(s(document.querySelectorAll(`#${m.current} [data-combobox-option]`))),[A]),I=(0,n.useCallback)((e="selected",t)=>{S.current=window.setTimeout(()=>{let r=document.querySelectorAll(`#${m.current} [data-combobox-option]`),n=Array.from(r).findIndex(t=>t.hasAttribute(`data-combobox-${e}`));y.current=n,t?.scrollIntoView&&r[n]?.scrollIntoView({block:"nearest",behavior:d})},0)},[]),N=(0,n.useCallback)(()=>{y.current=-1,x()},[x]),P=(0,n.useCallback)(()=>{let e=document.querySelectorAll(`#${m.current} [data-combobox-option]`),t=e?.[y.current];t?.click()},[]),k=(0,n.useCallback)(e=>{m.current=e},[]),D=(0,n.useCallback)(()=>{v.current=window.setTimeout(()=>g.current.focus(),0)},[]),L=(0,n.useCallback)(()=>{_.current=window.setTimeout(()=>b.current.focus(),0)},[]),j=(0,n.useCallback)(()=>y.current,[]);return(0,n.useEffect)(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(_.current),window.clearTimeout(S.current)},[]),{dropdownOpened:h,openDropdown:E,closeDropdown:w,toggleDropdown:T,selectedOptionIndex:y.current,getSelectedOptionIndex:j,selectOption:A,selectFirstOption:C,selectActiveOption:O,selectNextOption:M,selectPreviousOption:R,resetSelectedOption:N,updateSelectedOptionIndex:I,listId:m.current,setListId:k,clickSelectedOption:P,searchRef:g,focusSearchInput:D,targetRef:b,focusTarget:L}}},25062:(e,t,r)=>{"use strict";r.d(t,{$:()=>x});var n=r(6029),i=r(26615);r(55729);var o=r(76),a=r(5618),s=r(80616),u=r(37666),c=r(60481),l=r(63863),f=r(94720),d=r(56738),h=r(8737),p=r(43016),m={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};let y={orientation:"horizontal"},g=(0,a.V)((e,{borderWidth:t})=>({group:{"--button-border-width":(0,i.D)(t)}})),b=(0,p.P9)((e,t)=>{let r=(0,s.Y)("ButtonGroup",y,e),{className:i,style:o,classNames:a,styles:l,unstyled:f,orientation:d,vars:h,borderWidth:p,variant:b,mod:v,..._}=(0,s.Y)("ButtonGroup",y,e),S=(0,u.I)({name:"ButtonGroup",props:r,classes:m,className:i,style:o,classNames:a,styles:l,unstyled:f,vars:h,varsResolver:g,rootSelector:"group"});return(0,n.jsx)(c.a,{...S("group"),ref:t,variant:b,mod:[{"data-orientation":d},v],role:"group",..._})});b.classes=m,b.displayName="@mantine/core/ButtonGroup";let v={},_=(0,a.V)((e,{radius:t,color:r,gradient:n,variant:i,autoContrast:a,size:s})=>{let u=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:i||"filled",autoContrast:a});return{groupSection:{"--section-height":(0,o.YC)(s,"section-height"),"--section-padding-x":(0,o.YC)(s,"section-padding-x"),"--section-fz":s?.includes("compact")?(0,o.ny)(s.replace("compact-","")):(0,o.ny)(s),"--section-radius":void 0===t?void 0:(0,o.nJ)(t),"--section-bg":r||i?u.background:void 0,"--section-color":u.color,"--section-bd":r||i?u.border:void 0}}}),S=(0,p.P9)((e,t)=>{let r=(0,s.Y)("ButtonGroupSection",v,e),{className:i,style:o,classNames:a,styles:l,unstyled:f,vars:d,variant:h,gradient:p,radius:y,autoContrast:g,...b}=(0,s.Y)("ButtonGroupSection",v,e),S=(0,u.I)({name:"ButtonGroupSection",props:r,classes:m,className:i,style:o,classNames:a,styles:l,unstyled:f,vars:d,varsResolver:_,rootSelector:"groupSection"});return(0,n.jsx)(c.a,{...S("groupSection"),ref:t,variant:h,...b})});S.classes=m,S.displayName="@mantine/core/ButtonGroupSection";let E={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${(0,i.D)(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},w={},T=(0,a.V)((e,{radius:t,color:r,gradient:n,variant:i,size:a,justify:s,autoContrast:u})=>{let c=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:i||"filled",autoContrast:u});return{root:{"--button-justify":s,"--button-height":(0,o.YC)(a,"button-height"),"--button-padding-x":(0,o.YC)(a,"button-padding-x"),"--button-fz":a?.includes("compact")?(0,o.ny)(a.replace("compact-","")):(0,o.ny)(a),"--button-radius":void 0===t?void 0:(0,o.nJ)(t),"--button-bg":r||i?c.background:void 0,"--button-hover":r||i?c.hover:void 0,"--button-color":c.color,"--button-bd":r||i?c.border:void 0,"--button-hover-color":r||i?c.hoverColor:void 0}}}),x=(0,l.v)((e,t)=>{let r=(0,s.Y)("Button",w,e),{style:i,vars:o,className:a,color:l,disabled:p,children:y,leftSection:g,rightSection:b,fullWidth:v,variant:_,radius:S,loading:x,loaderProps:A,gradient:O,classNames:M,styles:R,unstyled:C,"data-disabled":I,autoContrast:N,mod:P,...k}=r,D=(0,u.I)({name:"Button",props:r,classes:m,className:a,style:i,classNames:M,styles:R,unstyled:C,vars:o,varsResolver:T}),L=!!g,j=!!b;return(0,n.jsxs)(h.N,{ref:t,...D("root",{active:!p&&!x&&!I}),unstyled:C,variant:_,disabled:p||x,mod:[{disabled:p||I,loading:x,block:v,"with-left-section":L,"with-right-section":j},P],...k,children:[(0,n.jsx)(d.e,{mounted:!!x,transition:E,duration:150,children:e=>(0,n.jsx)(c.a,{component:"span",...D("loader",{style:e}),"aria-hidden":!0,children:(0,n.jsx)(f.a,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...A})})}),(0,n.jsxs)("span",{...D("inner"),children:[g&&(0,n.jsx)(c.a,{component:"span",...D("section"),mod:{position:"left"},children:g}),(0,n.jsx)(c.a,{component:"span",mod:{loading:x},...D("label"),children:y}),b&&(0,n.jsx)(c.a,{component:"span",...D("section"),mod:{position:"right"},children:b})]})]})});x.classes=m,x.displayName="@mantine/core/Button",x.Group=b,x.GroupSection=S},25169:(e,t,r)=>{"use strict";var n=r(24345);e.exports=function(e){return!!n(e)}},25496:(e,t,r)=>{"use strict";let n;var i=r(29143);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return null!=e?e:t()}function s(e){let t,r=e[0],n=1;for(;nr.call(t,...e)),t=void 0)}return r}Object.defineProperty(t,"__esModule",{value:!0});var u=r(64700),c=r(35362),l=r(71963),f=o(r(79339)),d=60,h=t.b="u">typeof window&&"u">typeof window.document,p=t.c="u">typeof i&&null!=i.versions&&null!=i.versions.node;function m(e){return e.split(",").map(e=>e.trim()).filter(e=>e.length>0)}function y(e){let t=0,r=0,n=!1,i=!1,o=[],a="";for(let s of e+","){if('"'===s&&!n){i=!i,a+=s;continue}if("'"===s&&!i){n=!n,a+=s;continue}if(!n&&!i&&("("===s?t++:")"===s?t--:"["===s?r++:"]"===s&&r--),","!==s||0!==t||0!==r||n||i)a+=s;else{let e=a.trim();e&&o.push(e),a=""}}return o}function g(e){return y(e)[0]}var b=e=>{if(!e.includes("."))return!1;let t=!1,r=!1,n=!1,i=[],o="";for(let a of e)if("'"!==a||t||r){if(n)continue;'"'!==a||r?"`"!==a||t?"."!==a||t||r?o+=a:(i.push(o),o=""):(r=!r,o+=a):(t=!t,o+=a)}else n=!n;return t||r||i.push(o),!i.some(e=>0===e.trim().length)&&i.filter(e=>e.trim().length>0&&isNaN(Number(e))&&!(e.startsWith("'")&&e.endsWith("'"))).length>1};function v(e){let t=[],r=!1,n=!1,i="",o=(e,r)=>{b(e)&&t.push({index:r-e.length,expr:e}),i=""},a=0,s=!1;for(;a{let t=null,r=null;try{return t=e(),[r,t]}catch(e){return[r=e,t]}},M=t.q=e=>{let[t,r]=O(()=>JSON.parse(e));return r},R={normal:{"12h":"MMM d h:mm:ss a","24h":"MMM d HH:mm:ss"},short:{"12h":"MMM d h:mma","24h":"MMM d HH:mm"},withMs:{"12h":"MMM d h:mm:ss.SSS a","24h":"MMM d HH:mm:ss.SSS"},withYear:{"12h":"MMM d yyyy h:mm:ss a","24h":"MMM d yyyy HH:mm:ss"},time:{"12h":"h:mm:ss a","24h":"HH:mm:ss"}},C=t.r=(e,{isUTC:t=!1,format:r="normal",clock:n="12h"})=>{let i=R[r][n];return t?l.formatInTimeZone.call(void 0,e,"Etc/UTC",i):c.format.call(void 0,e,i)};function I(e,t){let r={version:"0.1.0",name:e.name,tiles:[]},n=(e,t)=>{let r=u.M.strip().parse(structuredClone(e));return r.config.source=a(t.find(e=>e.id===r.config.source),()=>({name:""})).name,r},i=(e,t)=>{let r=u.O.strip().parse(structuredClone(e));return r.source=a(s([t,"access",e=>e.find,"call",t=>t(t=>t.id===e.source),"optionalAccess",e=>e.name]),()=>""),r};for(let i of e.tiles)r.tiles.push(n(i,t));if(e.filters)for(let n of(r.filters=[],a(e.filters,()=>[])))r.filters.push(i(n,t));return r}function N(e){let t={name:e.name,tiles:[],tags:[]},r=e=>structuredClone(e),n=e=>structuredClone(e);for(let n of e.tiles)t.tiles.push(r(n));if(e.filters)for(let r of(t.filters=[],e.filters))t.filters.push(n(r));return t}var P=e=>{if(!(!e||0===e.length))return"string"==typeof e?y(e)[0]:e[0]},k=t.v=e=>{let t=e.trim().toUpperCase();return t.endsWith("DESC")?e.slice(0,t.lastIndexOf("DESC")).trim():t.endsWith("ASC")?e.slice(0,t.lastIndexOf("ASC")).trim():e},D=t.w=e=>{let t=P(e.orderBy);if(!t||null==e.timestampValueExpression)return!1;let r="string"==typeof t?k(t):t.valueExpression;return y(e.timestampValueExpression).some(e=>r.includes(e))},L=t.x=e=>{let t=P(e);return!!t&&!("string"==typeof t?t.trim().toUpperCase().endsWith("DESC"):"DESC"===t.ordering)};function j(e){if(1!==y(e).length)return;let t=e.match(/(toStartOf\w+)\s*\(/);if(t){let[r,n]=t,i=e.indexOf(r)+r.length,o=e.lastIndexOf(")"),a=y(e.substring(i,o)),s=a[0];if(null==s)return void console.error(`Failed to parse column argument from ${e}`);let u=a.length>1?`, ${a.slice(1).join(", ")}`:"";return{function:n.trim(),columnArgument:s,formattedRemainingArgs:u}}}function U(e,t){if(!t||!e)return e;let r=[e];for(let n of y(t)){let t=j(n);if(n===e.trim()||n.startsWith("toUnixTimestamp")&&n.includes(e)||n.startsWith("toDateTime")&&n.includes(e))break;t&&t.columnArgument===e.trim()&&r.push(n)}return r.join(", ")}function B([e,t],r){let n=x(e,r),i=x(t,r);if(i.getTime()e.length])?e.filter(({setting:e,value:t})=>e.length&&t.length).map(({setting:e,value:t})=>`${e} = ${a($(t),()=>`'${t}'`)}`).join(", "):void 0}function Y({typeFull:e}){let t=/^\s*text\s*\((.+)\)\s*$/,r=e.match(t);if(!r)return void console.error(`Invalid text index type ${e}.`);let n=r[1].trim(),i=s([y,"call",e=>e(n),"access",e=>e.map,"call",e=>e(e=>{let[t,r]=e.split("=").map(e=>e.trim());return{key:t,value:r}}),"access",e=>e.find,"call",e=>e(e=>"tokenizer"===e.key),"optionalAccess",e=>e.value]);if(!i)return void console.error(`Invalid tokenizer argument in index type ${e}: ${i}`,n,y(n));let o=i.split("(")[0].trim(),a=i.substring(i.indexOf("(")+1,i.lastIndexOf(")")).trim();switch(o){case"splitByNonAlpha":return{type:"splitByNonAlpha"};case"array":return{type:"array"};case"ngrams":return a?{type:"ngrams",n:Number.parseInt(a,10)}:{type:"ngrams",n:3};case"sparseGrams":{let e=a.split(",").map(e=>e.trim()).filter(e=>!!e),t={type:"sparseGrams",minLength:3,maxLength:10};return e.length>=1&&(t.minLength=Number.parseInt(e[0],10)),e.length>=2&&(t.maxLength=Number.parseInt(e[1],10)),e.length>=3&&(t.minCutoffLength=Number.parseInt(e[2],10)),t}case"splitByString":{if(!a)return{type:"splitByString",separators:[" "]};let e=e=>{for(let{pattern:t,replacement:r}of[{pattern:/\\a/g,replacement:"a"},{pattern:/\\b/g,replacement:"b"},{pattern:/\\e/g,replacement:"e"},{pattern:/\\f/g,replacement:"\f"},{pattern:/\\n/g,replacement:` +`},{pattern:/\\r/g,replacement:"\r"},{pattern:/\\t/g,replacement:" "},{pattern:/\\v/g,replacement:"\v"},{pattern:/\\0/g,replacement:"\0"},{pattern:/\\\\/g,replacement:"\\"},{pattern:/\\'/g,replacement:"'"},{pattern:/\\"/g,replacement:'"'},{pattern:/\\`/g,replacement:"`"},{pattern:/\\\//g,replacement:"/"},{pattern:/\\=/g,replacement:"="}])e=e.replace(t,r);return e},t=a.match(/\[(.*)\]/);if(!t)return{type:"splitByString",separators:[" "]};let r=t[1],n=[],i="",o=!1,s="";for(let t=0;t{"use strict";r.d(t,{A:()=>o});var n=r(29326),i=r(89250);function o(e,t){(0,i.A)(2,arguments);var r=(0,n.A)(e),o=(0,n.A)(t);return r.getTime()===o.getTime()}},25655:(e,t,r)=>{"use strict";var n;let i;Object.defineProperty(t,"__esModule",{value:!0}),t.discriminatedUnion=t.date=t.boolean=t.bigint=t.array=t.any=t.coerce=t.ZodFirstPartyTypeKind=t.late=t.ZodSchema=t.Schema=t.ZodReadonly=t.ZodPipeline=t.ZodBranded=t.BRAND=t.ZodNaN=t.ZodCatch=t.ZodDefault=t.ZodNullable=t.ZodOptional=t.ZodTransformer=t.ZodEffects=t.ZodPromise=t.ZodNativeEnum=t.ZodEnum=t.ZodLiteral=t.ZodLazy=t.ZodFunction=t.ZodSet=t.ZodMap=t.ZodRecord=t.ZodTuple=t.ZodIntersection=t.ZodDiscriminatedUnion=t.ZodUnion=t.ZodObject=t.ZodArray=t.ZodVoid=t.ZodNever=t.ZodUnknown=t.ZodAny=t.ZodNull=t.ZodUndefined=t.ZodSymbol=t.ZodDate=t.ZodBoolean=t.ZodBigInt=t.ZodNumber=t.ZodString=t.ZodType=void 0,t.NEVER=t.void=t.unknown=t.union=t.undefined=t.tuple=t.transformer=t.symbol=t.string=t.strictObject=t.set=t.record=t.promise=t.preprocess=t.pipeline=t.ostring=t.optional=t.onumber=t.oboolean=t.object=t.number=t.nullable=t.null=t.never=t.nativeEnum=t.nan=t.map=t.literal=t.lazy=t.intersection=t.instanceof=t.function=t.enum=t.effect=void 0,t.datetimeRegex=P,t.custom=ex;let o=r(2301),a=r(17547),s=r(92536),u=r(48603),c=r(27176);class l{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let f=(e,t)=>{if((0,u.isValid)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new o.ZodError(e.common.issues);return this._error=t,this._error}}};function d(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:o}=e;return"invalid_enum_value"===t.code?{message:o??i.defaultError}:void 0===i.data?{message:o??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:o??r??i.defaultError}},description:i}}class h{get description(){return this._def.description}_getType(e){return(0,c.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,c.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new u.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,c.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,u.isAsync)(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,c.getParsedType)(e)},n=this._parseSync({data:e,path:r.path,parent:r});return f(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,c.getParsedType)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return(0,u.isValid)(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>(0,u.isValid)(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,c.getParsedType)(e)},n=this._parse({data:e,path:r.path,parent:r});return f(r,await ((0,u.isAsync)(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),a=()=>n.addIssue({code:o.ZodIssueCode.custom,...r(t)});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new em({schema:this,typeName:n.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ey.create(this,this._def)}nullable(){return eg.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return K.create(this)}promise(){return ep.create(this,this._def)}or(e){return Q.create([this,e],this._def)}and(e){return en.create(this,e,this._def)}transform(e){return new em({...d(this._def),schema:this,typeName:n.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new eb({...d(this._def),innerType:this,defaultValue:t,typeName:n.ZodDefault})}brand(){return new eS({typeName:n.ZodBranded,type:this,...d(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new ev({...d(this._def),innerType:this,catchValue:t,typeName:n.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eE.create(this,e)}readonly(){return ew.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}t.ZodType=h,t.Schema=h,t.ZodSchema=h;let p=/^c[^\s-]{8,}$/i,m=/^[0-9a-z]+$/,y=/^[0-9A-HJKMNP-TV-Z]{26}$/i,g=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,b=/^[a-z0-9_-]{21}$/i,v=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,_=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,S=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,E="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",w=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,T=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,x=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,A=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,O=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,M=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,R="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",C=RegExp(`^${R}$`);function I(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function N(e){return RegExp(`^${I(e)}$`)}function P(e){let t=`${R}T${I(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}function k(e,t){return!!(("v4"===t||!t)&&w.test(e)||("v6"===t||!t)&&x.test(e))}function D(e,t){if(!v.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}function L(e,t){return!!(("v4"===t||!t)&&T.test(e)||("v6"===t||!t)&&A.test(e))}class j extends h{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==c.ZodParsedType.string){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.string,received:t.parsedType}),u.INVALID}let r=new u.ParseStatus;for(let n of this._def.checks)if("min"===n.kind)e.data.lengthn.value&&(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if("length"===n.kind){let i=e.data.length>n.value,a=e.data.lengthe.test(t),{validation:t,code:o.ZodIssueCode.invalid_string,...s.errorUtil.errToObj(r)})}_addCheck(e){return new j({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...s.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...s.errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...s.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...s.errorUtil.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...s.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...s.errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...s.errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...s.errorUtil.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...s.errorUtil.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...s.errorUtil.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...s.errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...s.errorUtil.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...s.errorUtil.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...s.errorUtil.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...s.errorUtil.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...s.errorUtil.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...s.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...s.errorUtil.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...s.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...s.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...s.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...s.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...s.errorUtil.errToObj(t)})}nonempty(e){return this.min(1,s.errorUtil.errToObj(e))}trim(){return new j({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new j({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new j({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuen?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}t.ZodString=j,j.create=e=>new j({checks:[],typeName:n.ZodString,coerce:e?.coerce??!1,...d(e)});class B extends h{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==c.ZodParsedType.number){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.number,received:t.parsedType}),u.INVALID}let r=new u.ParseStatus;for(let n of this._def.checks)"int"===n.kind?c.util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.datan.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==U(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.not_finite,message:n.message}),r.dirty()):c.util.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,s.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.errorUtil.toString(t))}setLimit(e,t,r,n){return new B({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:s.errorUtil.toString(n)}]})}_addCheck(e){return new B({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:s.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:s.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:s.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:s.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:s.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:s.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:s.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:s.errorUtil.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&c.util.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.valuenew B({checks:[],typeName:n.ZodNumber,coerce:e?.coerce||!1,...d(e)});class F extends h{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==c.ZodParsedType.bigint)return this._getInvalidInput(e);let r=new u.ParseStatus;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.datan.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):c.util.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.bigint,received:t.parsedType}),u.INVALID}gte(e,t){return this.setLimit("min",e,!0,s.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.errorUtil.toString(t))}setLimit(e,t,r,n){return new F({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:s.errorUtil.toString(n)}]})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:s.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:s.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:s.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:s.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.errorUtil.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew F({checks:[],typeName:n.ZodBigInt,coerce:e?.coerce??!1,...d(e)});class z extends h{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==c.ZodParsedType.boolean){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.boolean,received:t.parsedType}),u.INVALID}return(0,u.OK)(e.data)}}t.ZodBoolean=z,z.create=e=>new z({typeName:n.ZodBoolean,coerce:e?.coerce||!1,...d(e)});class $ extends h{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==c.ZodParsedType.date){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.date,received:t.parsedType}),u.INVALID}if(Number.isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_date}),u.INVALID}let r=new u.ParseStatus;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()n.value&&(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):c.util.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new $({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:s.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:s.errorUtil.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew $({checks:[],coerce:e?.coerce||!1,typeName:n.ZodDate,...d(e)});class V extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.symbol){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.symbol,received:t.parsedType}),u.INVALID}return(0,u.OK)(e.data)}}t.ZodSymbol=V,V.create=e=>new V({typeName:n.ZodSymbol,...d(e)});class Y extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.undefined){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.undefined,received:t.parsedType}),u.INVALID}return(0,u.OK)(e.data)}}t.ZodUndefined=Y,Y.create=e=>new Y({typeName:n.ZodUndefined,...d(e)});class q extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.null){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.null,received:t.parsedType}),u.INVALID}return(0,u.OK)(e.data)}}t.ZodNull=q,q.create=e=>new q({typeName:n.ZodNull,...d(e)});class H extends h{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,u.OK)(e.data)}}t.ZodAny=H,H.create=e=>new H({typeName:n.ZodAny,...d(e)});class W extends h{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,u.OK)(e.data)}}t.ZodUnknown=W,W.create=e=>new W({typeName:n.ZodUnknown,...d(e)});class G extends h{_parse(e){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.never,received:t.parsedType}),u.INVALID}}t.ZodNever=G,G.create=e=>new G({typeName:n.ZodNever,...d(e)});class Z extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.undefined){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.void,received:t.parsedType}),u.INVALID}return(0,u.OK)(e.data)}}t.ZodVoid=Z,Z.create=e=>new Z({typeName:n.ZodVoid,...d(e)});class K extends h{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==c.ZodParsedType.array)return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.array,received:t.parsedType}),u.INVALID;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.lengthn.maxLength.value&&((0,u.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new l(t,e,t.path,r)))).then(e=>u.ParseStatus.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new l(t,e,t.path,r)));return u.ParseStatus.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new K({...this._def,minLength:{value:e,message:s.errorUtil.toString(t)}})}max(e,t){return new K({...this._def,maxLength:{value:e,message:s.errorUtil.toString(t)}})}length(e,t){return new K({...this._def,exactLength:{value:e,message:s.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}function X(e){if(e instanceof J){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=ey.create(X(n))}return new J({...e._def,shape:()=>t})}if(e instanceof K)return new K({...e._def,type:X(e.element)});if(e instanceof ey)return ey.create(X(e.unwrap()));if(e instanceof eg)return eg.create(X(e.unwrap()));if(e instanceof ei)return ei.create(e.items.map(e=>X(e)));else return e}t.ZodArray=K,K.create=(e,t)=>new K({type:e,minLength:null,maxLength:null,exactLength:null,typeName:n.ZodArray,...d(t)});class J extends h{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=c.util.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==c.ZodParsedType.object){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.object,received:t.parsedType}),u.INVALID}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof G&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||a.push(e);let s=[];for(let e of i){let t=n[e],i=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new l(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof G){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)a.length>0&&((0,u.addIssueToContext)(r,{code:o.ZodIssueCode.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let n=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new l(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>u.ParseStatus.mergeObjectSync(t,e)):u.ParseStatus.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return s.errorUtil.errToObj,new J({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:s.errorUtil.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new J({...this._def,unknownKeys:"strip"})}passthrough(){return new J({...this._def,unknownKeys:"passthrough"})}extend(e){return new J({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new J({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:n.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new J({...this._def,catchall:e})}pick(e){let t={};for(let r of c.util.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new J({...this._def,shape:()=>t})}omit(e){let t={};for(let r of c.util.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new J({...this._def,shape:()=>t})}deepPartial(){return X(this)}partial(e){let t={};for(let r of c.util.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new J({...this._def,shape:()=>t})}required(e){let t={};for(let r of c.util.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ey;)e=e._def.innerType;t[r]=e}return new J({...this._def,shape:()=>t})}keyof(){return ef(c.util.objectKeys(this.shape))}}t.ZodObject=J,J.create=(e,t)=>new J({shape:()=>e,unknownKeys:"strip",catchall:G.create(),typeName:n.ZodObject,...d(t)}),J.strictCreate=(e,t)=>new J({shape:()=>e,unknownKeys:"strict",catchall:G.create(),typeName:n.ZodObject,...d(t)}),J.lazycreate=(e,t)=>new J({shape:e,unknownKeys:"strip",catchall:G.create(),typeName:n.ZodObject,...d(t)});class Q extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new o.ZodError(e.ctx.common.issues));return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_union,unionErrors:r}),u.INVALID}if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(n);{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new o.ZodError(e));return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_union,unionErrors:i}),u.INVALID}}get options(){return this._def.options}}t.ZodUnion=Q,Q.create=(e,t)=>new Q({options:e,typeName:n.ZodUnion,...d(t)});let ee=e=>{if(e instanceof ec)return ee(e.schema);if(e instanceof em)return ee(e.innerType());if(e instanceof el)return[e.value];if(e instanceof ed)return e.options;if(e instanceof eh)return c.util.objectValues(e.enum);else if(e instanceof eb)return ee(e._def.innerType);else if(e instanceof Y)return[void 0];else if(e instanceof q)return[null];else if(e instanceof ey)return[void 0,...ee(e.unwrap())];else if(e instanceof eg)return[null,...ee(e.unwrap())];else if(e instanceof eS)return ee(e.unwrap());else if(e instanceof ew)return ee(e.unwrap());else if(e instanceof ev)return ee(e._def.innerType);else return[]};class et extends h{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.ZodParsedType.object)return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.object,received:t.parsedType}),u.INVALID;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):((0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),u.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let i=new Map;for(let r of t){let t=ee(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let n of t){if(i.has(n))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);i.set(n,r)}}return new et({typeName:n.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...d(r)})}}function er(e,t){let r=(0,c.getParsedType)(e),n=(0,c.getParsedType)(t);if(e===t)return{valid:!0,data:e};if(r===c.ZodParsedType.object&&n===c.ZodParsedType.object){let r=c.util.objectKeys(t),n=c.util.objectKeys(e).filter(e=>-1!==r.indexOf(e)),i={...e,...t};for(let r of n){let n=er(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===c.ZodParsedType.array&&n===c.ZodParsedType.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let n=0;n{if((0,u.isAborted)(e)||(0,u.isAborted)(n))return u.INVALID;let i=er(e.value,n.value);return i.valid?(((0,u.isDirty)(e)||(0,u.isDirty)(n))&&t.dirty(),{status:t.value,value:i.data}):((0,u.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_intersection_types}),u.INVALID)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}t.ZodIntersection=en,en.create=(e,t,r)=>new en({left:e,right:t,typeName:n.ZodIntersection,...d(r)});class ei extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.ZodParsedType.array)return(0,u.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.array,received:r.parsedType}),u.INVALID;if(r.data.lengththis._def.items.length&&((0,u.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new l(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>u.ParseStatus.mergeArray(t,e)):u.ParseStatus.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new ei({...this._def,rest:e})}}t.ZodTuple=ei,ei.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ei({items:e,typeName:n.ZodTuple,rest:null,...d(t)})};class eo extends h{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.ZodParsedType.object)return(0,u.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.object,received:r.parsedType}),u.INVALID;let n=[],i=this._def.keyType,a=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new l(r,e,r.path,e)),value:a._parse(new l(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?u.ParseStatus.mergeObjectAsync(t,n):u.ParseStatus.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new eo(t instanceof h?{keyType:e,valueType:t,typeName:n.ZodRecord,...d(r)}:{keyType:j.create(),valueType:e,typeName:n.ZodRecord,...d(t)})}}t.ZodRecord=eo;class ea extends h{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.ZodParsedType.map)return(0,u.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.map,received:r.parsedType}),u.INVALID;let n=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([e,t],o)=>({key:n._parse(new l(r,e,r.path,[o,"key"])),value:i._parse(new l(r,t,r.path,[o,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of a){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return u.INVALID;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of a){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return u.INVALID;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}t.ZodMap=ea,ea.create=(e,t,r)=>new ea({valueType:t,keyType:e,typeName:n.ZodMap,...d(r)});class es extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.ZodParsedType.set)return(0,u.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.set,received:r.parsedType}),u.INVALID;let n=this._def;null!==n.minSize&&r.data.sizen.maxSize.value&&((0,u.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let r=new Set;for(let n of e){if("aborted"===n.status)return u.INVALID;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let s=[...r.data.values()].map((e,t)=>i._parse(new l(r,e,r.path,t)));return r.common.async?Promise.all(s).then(e=>a(e)):a(s)}min(e,t){return new es({...this._def,minSize:{value:e,message:s.errorUtil.toString(t)}})}max(e,t){return new es({...this._def,maxSize:{value:e,message:s.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}t.ZodSet=es,es.create=(e,t)=>new es({valueType:e,minSize:null,maxSize:null,typeName:n.ZodSet,...d(t)});class eu extends h{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.ZodParsedType.function)return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.function,received:t.parsedType}),u.INVALID;function r(e,r){return(0,u.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,a.getErrorMap)(),a.defaultErrorMap].filter(e=>!!e),issueData:{code:o.ZodIssueCode.invalid_arguments,argumentsError:r}})}function n(e,r){return(0,u.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,a.getErrorMap)(),a.defaultErrorMap].filter(e=>!!e),issueData:{code:o.ZodIssueCode.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},s=t.data;if(this._def.returns instanceof ep){let e=this;return(0,u.OK)(async function(...t){let a=new o.ZodError([]),u=await e._def.args.parseAsync(t,i).catch(e=>{throw a.addIssue(r(t,e)),a}),c=await Reflect.apply(s,this,u);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw a.addIssue(n(c,e)),a})})}{let e=this;return(0,u.OK)(function(...t){let a=e._def.args.safeParse(t,i);if(!a.success)throw new o.ZodError([r(t,a.error)]);let u=Reflect.apply(s,this,a.data),c=e._def.returns.safeParse(u,i);if(!c.success)throw new o.ZodError([n(u,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eu({...this._def,args:ei.create(e).rest(W.create())})}returns(e){return new eu({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eu({args:e||ei.create([]).rest(W.create()),returns:t||W.create(),typeName:n.ZodFunction,...d(r)})}}t.ZodFunction=eu;class ec extends h{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}t.ZodLazy=ec,ec.create=(e,t)=>new ec({getter:e,typeName:n.ZodLazy,...d(t)});class el extends h{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{received:t.data,code:o.ZodIssueCode.invalid_literal,expected:this._def.value}),u.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ef(e,t){return new ed({values:e,typeName:n.ZodEnum,...d(t)})}t.ZodLiteral=el,el.create=(e,t)=>new el({value:e,typeName:n.ZodLiteral,...d(t)});class ed extends h{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return(0,u.addIssueToContext)(t,{expected:c.util.joinValues(r),received:t.parsedType,code:o.ZodIssueCode.invalid_type}),u.INVALID}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return(0,u.addIssueToContext)(t,{received:t.data,code:o.ZodIssueCode.invalid_enum_value,options:r}),u.INVALID}return(0,u.OK)(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ed.create(e,{...this._def,...t})}exclude(e,t=this._def){return ed.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}t.ZodEnum=ed,ed.create=ef;class eh extends h{_parse(e){let t=c.util.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==c.ZodParsedType.string&&r.parsedType!==c.ZodParsedType.number){let e=c.util.objectValues(t);return(0,u.addIssueToContext)(r,{expected:c.util.joinValues(e),received:r.parsedType,code:o.ZodIssueCode.invalid_type}),u.INVALID}if(this._cache||(this._cache=new Set(c.util.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=c.util.objectValues(t);return(0,u.addIssueToContext)(r,{received:r.data,code:o.ZodIssueCode.invalid_enum_value,options:e}),u.INVALID}return(0,u.OK)(e.data)}get enum(){return this._def.values}}t.ZodNativeEnum=eh,eh.create=(e,t)=>new eh({values:e,typeName:n.ZodNativeEnum,...d(t)});class ep extends h{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.ZodParsedType.promise&&!1===t.common.async)return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.promise,received:t.parsedType}),u.INVALID;let r=t.parsedType===c.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,u.OK)(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}t.ZodPromise=ep,ep.create=(e,t)=>new ep({type:e,typeName:n.ZodPromise,...d(t)});class em extends h{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===n.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{(0,u.addIssueToContext)(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return u.INVALID;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?u.INVALID:"dirty"===n.status||"dirty"===t.value?(0,u.DIRTY)(n.value):n});{if("aborted"===t.value)return u.INVALID;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?u.INVALID:"dirty"===n.status||"dirty"===t.value?(0,u.DIRTY)(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?u.INVALID:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?u.INVALID:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>(0,u.isValid)(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):u.INVALID);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!(0,u.isValid)(e))return u.INVALID;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}c.util.assertNever(n)}}t.ZodEffects=em,t.ZodTransformer=em,em.create=(e,t,r)=>new em({schema:e,typeName:n.ZodEffects,effect:t,...d(r)}),em.createWithPreprocess=(e,t,r)=>new em({schema:t,effect:{type:"preprocess",transform:e},typeName:n.ZodEffects,...d(r)});class ey extends h{_parse(e){return this._getType(e)===c.ZodParsedType.undefined?(0,u.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodOptional=ey,ey.create=(e,t)=>new ey({innerType:e,typeName:n.ZodOptional,...d(t)});class eg extends h{_parse(e){return this._getType(e)===c.ZodParsedType.null?(0,u.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodNullable=eg,eg.create=(e,t)=>new eg({innerType:e,typeName:n.ZodNullable,...d(t)});class eb extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===c.ZodParsedType.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}t.ZodDefault=eb,eb.create=(e,t)=>new eb({innerType:e,typeName:n.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...d(t)});class ev extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return(0,u.isAsync)(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new o.ZodError(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new o.ZodError(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}t.ZodCatch=ev,ev.create=(e,t)=>new ev({innerType:e,typeName:n.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...d(t)});class e_ extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.nan){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.nan,received:t.parsedType}),u.INVALID}return{status:"valid",value:e.data}}}t.ZodNaN=e_,e_.create=e=>new e_({typeName:n.ZodNaN,...d(e)}),t.BRAND=Symbol("zod_brand");class eS extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}t.ZodBranded=eS;class eE extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?u.INVALID:"dirty"===e.status?(t.dirty(),(0,u.DIRTY)(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?u.INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eE({in:e,out:t,typeName:n.ZodPipeline})}}t.ZodPipeline=eE;class ew extends h{_parse(e){let t=this._def.innerType._parse(e),r=e=>((0,u.isValid)(e)&&(e.value=Object.freeze(e.value)),e);return(0,u.isAsync)(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eT(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function ex(e,t={},r){return e?H.create().superRefine((n,i)=>{let o=e(n);if(o instanceof Promise)return o.then(e=>{if(!e){let e=eT(t,n),o=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:o})}});if(!o){let e=eT(t,n),o=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:o})}}):H.create()}t.ZodReadonly=ew,ew.create=(e,t)=>new ew({innerType:e,typeName:n.ZodReadonly,...d(t)}),t.late={object:J.lazycreate},function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(n||(t.ZodFirstPartyTypeKind=n={})),t.instanceof=(e,t={message:`Input not instance of ${e.name}`})=>ex(t=>t instanceof e,t);let eA=j.create;t.string=eA;let eO=B.create;t.number=eO,t.nan=e_.create,t.bigint=F.create;let eM=z.create;t.boolean=eM,t.date=$.create,t.symbol=V.create,t.undefined=Y.create,t.null=q.create,t.any=H.create,t.unknown=W.create,t.never=G.create,t.void=Z.create,t.array=K.create,t.object=J.create,t.strictObject=J.strictCreate,t.union=Q.create,t.discriminatedUnion=et.create,t.intersection=en.create,t.tuple=ei.create,t.record=eo.create,t.map=ea.create,t.set=es.create,t.function=eu.create,t.lazy=ec.create,t.literal=el.create,t.enum=ed.create,t.nativeEnum=eh.create,t.promise=ep.create;let eR=em.create;t.effect=eR,t.transformer=eR,t.optional=ey.create,t.nullable=eg.create,t.preprocess=em.createWithPreprocess,t.pipeline=eE.create,t.ostring=()=>eA().optional(),t.onumber=()=>eO().optional(),t.oboolean=()=>eM().optional(),t.coerce={string:e=>j.create({...e,coerce:!0}),number:e=>B.create({...e,coerce:!0}),boolean:e=>z.create({...e,coerce:!0}),bigint:e=>F.create({...e,coerce:!0}),date:e=>$.create({...e,coerce:!0})},t.NEVER=u.INVALID},25878:(e,t,r)=>{"use strict";r.d(t,{c:()=>f});var n=r(6029),i=r(55729),o=r(50212),a=r(41271),s=r(22623),u=r(56738),c=r(15242),l=r(31188);let f=(0,i.forwardRef)(({transitionProps:e,className:t,innerProps:r,onKeyDown:i,style:f,...d},h)=>{let p=(0,c.x)();return(0,n.jsx)(u.e,{mounted:p.opened,transition:"pop",...p.transitionProps,onExited:()=>{p.onExitTransitionEnd?.(),p.transitionProps?.onExited?.()},onEntered:()=>{p.onEnterTransitionEnd?.(),p.transitionProps?.onEntered?.()},...e,children:e=>(0,n.jsx)("div",{...r,className:(0,o.A)({[l.A.inner]:!p.unstyled},r.className),children:(0,n.jsx)(a.s,{active:p.opened&&p.trapFocus,innerRef:h,children:(0,n.jsx)(s.t,{...d,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":p.bodyMounted?p.getBodyId():void 0,"aria-labelledby":p.titleMounted?p.getTitleId():void 0,style:[f,e],className:(0,o.A)({[l.A.content]:!p.unstyled},t),unstyled:p.unstyled,children:d.children})})})})});f.displayName="@mantine/core/ModalBaseContent"},26193:(e,t)=>{"use strict";function r(e,t,r,n,i,o,a){var s=new Date(0);return s.setUTCFullYear(e,t,r),s.setUTCHours(n,i,o,a),s}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},26572:(e,t,r)=>{"use strict";var n=r(14274),i=r(57379),o=r(95605);e.exports=function(){return o(n,i,arguments)}},26615:(e,t,r)=>{"use strict";function n(e){return"0rem"===e?"0rem":`calc(${e} * var(--mantine-scale))`}function i(e,{shouldScale:t=!1}={}){function r(i){if(0===i||"0"===i)return`0${e}`;if("number"==typeof i){let r=`${i/16}${e}`;return t?n(r):r}if("string"==typeof i){if(""===i||i.startsWith("calc(")||i.startsWith("clamp(")||i.includes("rgba("))return i;if(i.includes(","))return i.split(",").map(e=>r(e)).join(",");if(i.includes(" "))return i.split(" ").map(e=>r(e)).join(" ");if(i.includes(e))return t?n(i):i;let o=i.replace("px","");if(!Number.isNaN(Number(o))){let r=`${Number(o)/16}${e}`;return t?n(r):r}}return i}return r}r.d(t,{D:()=>o,em:()=>a});let o=i("rem",{shouldScale:!0}),a=i("em")},26654:()=>{},27166:(e,t,r)=>{"use strict";r.d(t,{a:()=>V});var n=r(6029),i=r(55729),o=r(69626),a=r(80616),s=r(43016),u=r(65837);let[c,l]=(0,r(36254).F)("Modal component was not found in tree");var f={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};let d={},h=(0,s.P9)((e,t)=>{let{classNames:r,className:i,style:o,styles:s,vars:c,...f}=(0,a.Y)("ModalBody",d,e),h=l();return(0,n.jsx)(u.v,{ref:t,...h.getStyles("body",{classNames:r,style:o,styles:s,className:i}),...f})});h.classes=f,h.displayName="@mantine/core/ModalBody";var p=r(68373);let m={},y=(0,s.P9)((e,t)=>{let{classNames:r,className:i,style:o,styles:s,vars:u,...c}=(0,a.Y)("ModalCloseButton",m,e),f=l();return(0,n.jsx)(p.F,{ref:t,...f.getStyles("close",{classNames:r,style:o,styles:s,className:i}),...c})});y.classes=f,y.displayName="@mantine/core/ModalCloseButton";var g=r(26615),b=r(25878),v=r(87816);let _={},S=(0,s.P9)((e,t)=>{let{classNames:r,className:i,style:o,styles:s,vars:u,children:c,__hidden:f,...d}=(0,a.Y)("ModalContent",_,e),h=l(),p=h.scrollAreaComponent||v.a;return(0,n.jsx)(b.c,{...h.getStyles("content",{className:i,style:o,styles:s,classNames:r}),innerProps:h.getStyles("inner",{className:i,style:o,styles:s,classNames:r}),"data-full-screen":h.fullScreen||void 0,"data-modal-content":!0,"data-hidden":f||void 0,ref:t,...d,children:(0,n.jsx)(p,{style:{maxHeight:h.fullScreen?"100dvh":`calc(100dvh - (${(0,g.D)(h.yOffset)} * 2))`},children:c})})});S.classes=f,S.displayName="@mantine/core/ModalContent";var E=r(62358);let w={},T=(0,s.P9)((e,t)=>{let{classNames:r,className:i,style:o,styles:s,vars:u,...c}=(0,a.Y)("ModalHeader",w,e),f=l();return(0,n.jsx)(E.m,{ref:t,...f.getStyles("header",{classNames:r,style:o,styles:s,className:i}),...c})});T.classes=f,T.displayName="@mantine/core/ModalHeader";var x=r(97762);let A={},O=(0,s.P9)((e,t)=>{let{classNames:r,className:i,style:o,styles:s,vars:u,...c}=(0,a.Y)("ModalOverlay",A,e),f=l();return(0,n.jsx)(x.V,{ref:t,...f.getStyles("overlay",{classNames:r,style:o,styles:s,className:i}),...c})});O.classes=f,O.displayName="@mantine/core/ModalOverlay";var M=r(76),R=r(5618),C=r(37666),I=r(43256),N=r(53993);let P={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:(0,o.I)("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},k=(0,R.V)((e,{radius:t,size:r,yOffset:n,xOffset:i})=>({root:{"--modal-radius":void 0===t?void 0:(0,M.nJ)(t),"--modal-size":(0,M.YC)(r,"modal-size"),"--modal-y-offset":(0,g.D)(n),"--modal-x-offset":(0,g.D)(i)}})),D=(0,s.P9)((e,t)=>{let r=(0,a.Y)("ModalRoot",P,e),{classNames:i,className:o,style:s,styles:u,unstyled:l,vars:d,yOffset:h,scrollAreaComponent:p,radius:m,fullScreen:y,centered:g,xOffset:b,__staticSelector:v,..._}=r,S=(0,C.I)({name:v,classes:f,props:r,className:o,style:s,classNames:i,styles:u,unstyled:l,vars:d,varsResolver:k});return(0,n.jsx)(c,{value:{yOffset:h,scrollAreaComponent:p,getStyles:S,fullScreen:y},children:(0,n.jsx)(I.f,{ref:t,...S("root"),"data-full-screen":y||void 0,"data-centered":g||void 0,"data-offset-scrollbars":p===N.F.Autosize||void 0,unstyled:l,..._})})});D.classes=f,D.displayName="@mantine/core/ModalRoot";let[L,j]=(0,r(48930).e)();function U({children:e}){let[t,r]=(0,i.useState)([]),[a,s]=(0,i.useState)((0,o.I)("modal"));return(0,n.jsx)(L,{value:{stack:t,addModal:(e,t)=>{r(t=>[...new Set([...t,e])]),s(e=>"number"==typeof t&&"number"==typeof e?Math.max(e,t):e)},removeModal:e=>r(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${a} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:a},children:e})}U.displayName="@mantine/core/ModalStack";var B=r(66951);let F={},z=(0,s.P9)((e,t)=>{let{classNames:r,className:i,style:o,styles:s,vars:u,...c}=(0,a.Y)("ModalTitle",F,e),f=l();return(0,n.jsx)(B.$,{ref:t,...f.getStyles("title",{classNames:r,style:o,styles:s,className:i}),...c})});z.classes=f,z.displayName="@mantine/core/ModalTitle";let $={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:(0,o.I)("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},V=(0,s.P9)((e,t)=>{let{title:r,withOverlay:s,overlayProps:u,withCloseButton:c,closeButtonProps:l,children:f,radius:d,opened:p,stackId:m,zIndex:g,...b}=(0,a.Y)("Modal",$,e),v=j(),_=!!r||c,E=v&&m?{closeOnEscape:v.currentId===m,trapFocus:v.currentId===m,zIndex:v.getZIndex(m)}:{},w=!1!==s&&(m&&v?v.currentId===m:p);return(0,i.useEffect)(()=>{v&&m&&(p?v.addModal(m,g||(0,o.I)("modal")):v.removeModal(m))},[p,m,g]),(0,n.jsxs)(D,{ref:t,radius:d,opened:p,zIndex:v&&m?v.getZIndex(m):g,...b,...E,children:[s&&(0,n.jsx)(O,{visible:w,transitionProps:v&&m?{duration:0}:void 0,...u}),(0,n.jsxs)(S,{radius:d,__hidden:!!v&&!!m&&!!p&&m!==v.currentId,children:[_&&(0,n.jsxs)(T,{children:[r&&(0,n.jsx)(z,{children:r}),c&&(0,n.jsx)(y,{...l})]}),(0,n.jsx)(h,{children:f})]})]})});V.classes=f,V.displayName="@mantine/core/Modal",V.Root=D,V.Overlay=O,V.Content=S,V.Body=h,V.Header=T,V.Title=z,V.CloseButton=y,V.Stack=U},27176:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.getParsedType=t.ZodParsedType=t.objectUtil=t.util=void 0,function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(r||(t.util=r={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(n||(t.objectUtil=n={})),t.ZodParsedType=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);let i=e=>{switch(typeof e){case"undefined":return t.ZodParsedType.undefined;case"string":return t.ZodParsedType.string;case"number":return Number.isNaN(e)?t.ZodParsedType.nan:t.ZodParsedType.number;case"boolean":return t.ZodParsedType.boolean;case"function":return t.ZodParsedType.function;case"bigint":return t.ZodParsedType.bigint;case"symbol":return t.ZodParsedType.symbol;case"object":if(Array.isArray(e))return t.ZodParsedType.array;if(null===e)return t.ZodParsedType.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return t.ZodParsedType.promise;if("u">typeof Map&&e instanceof Map)return t.ZodParsedType.map;if("u">typeof Set&&e instanceof Set)return t.ZodParsedType.set;if("u">typeof Date&&e instanceof Date)return t.ZodParsedType.date;return t.ZodParsedType.object;default:return t.ZodParsedType.unknown}};t.getParsedType=i},27202:(e,t,r)=>{"use strict";function n(e){return e&&"object"==typeof e&&!Array.isArray(e)}function i(e,t){let r={...e},o=t;return n(e)&&n(t)&&Object.keys(t).forEach(t=>{n(o[t])&&t in e?r[t]=i(r[t],o[t]):r[t]=o[t]}),r}r.d(t,{$:()=>i})},27273:(e,t,r)=>{"use strict";function n(e){return e.reduce((e,t)=>"group"in t?{...e,...n(t.items)}:(e[t.value]=t,e),{})}r.d(t,{D:()=>n})},27299:e=>{"use strict";let t=(async function*(){}).constructor;e.exports=()=>t},27654:(e,t,r)=>{"use strict";var n=r(31652);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},27721:(e,t,r)=>{"use strict";var n=r(47684);e.exports=function(){return n()&&!!Symbol.toStringTag}},28160:(e,t,r)=>{"use strict";var n=r(3194),i=r(69497),o=r(72206),a=r(27654);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===u&&f?f.writable:!u});else if(!l&&(s||u||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},28180:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(6027),i=r(77561),o=["years","months","weeks","days","hours","minutes","seconds"];function a(e,t){if(arguments.length<1)throw TypeError("1 argument required, but only ".concat(arguments.length," present"));var r,a,s,u,c,l=(0,n.q)(),f=null!=(r=null!=(a=null==t?void 0:t.locale)?a:l.locale)?r:i.A,d=null!=(s=null==t?void 0:t.format)?s:o,h=null!=(u=null==t?void 0:t.zero)&&u,p=null!=(c=null==t?void 0:t.delimiter)?c:" ";return f.formatDistance?d.reduce(function(t,r){var n="x".concat(r.replace(/(^.)/,function(e){return e.toUpperCase()})),i=e[r];return"number"==typeof i&&(h||e[r])?t.concat(f.formatDistance(n,i)):t},[]).join(p):""}},28730:(e,t,r)=>{"use strict";function n(e,t,r=!0){let i=(...n)=>{let i=e.decode(...n);return void 0===i||r&&null===i?t:i};return{...e,default:t,decode:i}}function i(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;let r=e instanceof Array?e[0]:e;return null==r||t||""!==r?r:null}r.d(t,{hc:()=>a,fr:()=>o,Vl:()=>s,oO:()=>c,eR:()=>u,IQ:()=>n});let o={encode:function(e){return null==e?e:String(e)},decode:function(e){let t=i(e,!0);return null==t?t:String(t)}},a={encode:function(e){return null==e?e:String(e)},decode:function(e){let t=i(e);return null==t?t:""===t?null:+t}};function s(e,t){let r={};for(let n of Object.keys(t)){let i=t[n];e[n]?r[n]=e[n].encode(t[n]):r[n]=null==i?i:String(i)}return r}function u(e){let t=new URLSearchParams(e),r={};for(let[e,n]of t)Object.prototype.hasOwnProperty.call(r,e)?Array.isArray(r[e])?r[e].push(n):r[e]=[r[e],n]:r[e]=n;return r}function c(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(void 0!==n&&null!==n)if(Array.isArray(n))for(let e of n)t.append(r,null!=e?e:"");else t.append(r,n);return t.toString()}'{}[],":'.split("").map(e=>[e,encodeURIComponent(e)])},28751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return o.ReadonlyURLSearchParams},RedirectType:function(){return c.RedirectType},ServerInsertedHTMLContext:function(){return s.ServerInsertedHTMLContext},forbidden:function(){return c.forbidden},notFound:function(){return c.notFound},permanentRedirect:function(){return c.permanentRedirect},redirect:function(){return c.redirect},unauthorized:function(){return c.unauthorized},unstable_isUnrecognizedActionError:function(){return u.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return c.unstable_rethrow},useParams:function(){return m},usePathname:function(){return h},useRouter:function(){return p},useSearchParams:function(){return d},useSelectedLayoutSegment:function(){return g},useSelectedLayoutSegments:function(){return y},useServerInsertedHTML:function(){return s.useServerInsertedHTML}});let n=r(13514)._(r(55729)),i=r(39003),o=r(66522),a=r(37459),s=r(96352),u=r(52176),c=r(84350),l,f;function d(){f?.("useSearchParams()");let e=(0,n.useContext)(o.SearchParamsContext);return(0,n.useMemo)(()=>e?new o.ReadonlyURLSearchParams(e):null,[e])}function h(){return l?.("usePathname()"),(0,n.useContext)(o.PathnameContext)}function p(){let e=(0,n.useContext)(i.AppRouterContext);if(null===e)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return e}function m(){return l?.("useParams()"),(0,n.useContext)(o.PathParamsContext)}function y(e="children"){l?.("useSelectedLayoutSegments()");let t=(0,n.useContext)(i.LayoutRouterContext);return t?(0,a.getSelectedLayoutSegmentPath)(t.parentTree,e):null}function g(e="children"){l?.("useSelectedLayoutSegment()"),(0,n.useContext)(o.NavigationPromisesContext);let t=y(e);return(0,a.computeSelectedLayoutSegment)(t,e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29326:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(41742),i=r(89250);function o(e){(0,i.A)(1,arguments);var t=(0,n.A)(e);return t.setMilliseconds(0),t}},29499:(e,t,r)=>{"use strict";r.d(t,{Q:()=>a});var n=r(55729),i=r(71775),o=r(3465);function a({opened:e,floating:t,position:r,positionDependencies:a}){let[s,u]=(0,n.useState)(0);(0,n.useEffect)(()=>{if(t.refs.reference.current&&t.refs.floating.current&&e)return(0,i.ll)(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,s,r]),(0,o.C)(()=>{t.update()},a),(0,o.C)(()=>{u(e=>e+1)},[e])}},29548:(e,t,r)=>{"use strict";r.d(t,{A:()=>eh});var n,i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function a(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;itypeof window?s.useLayoutEffect:s.useEffect,m=new WeakMap;function y(e,t){var r=h(t||null,function(t){return e.forEach(function(e){return d(e,t)})});return p(function(){var t=m.get(r);if(t){var n=new Set(t),i=new Set(e),o=r.current;n.forEach(function(e){i.has(e)||d(e,null)}),i.forEach(function(e){n.has(e)||d(e,o)})}m.set(r,e)},[e]),r}var g=function(){return(g=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function v(e){return e}function _(e,t){void 0===t&&(t=v);var r=[],n=!1;return{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}"function"==typeof SuppressedError&&SuppressedError;var S=function(e){void 0===e&&(e={});var t=_(null);return t.options=g({async:!0,ssr:!1},e),t}(),E=function(){},w=s.forwardRef(function(e,t){var r=s.useRef(null),n=s.useState({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:E}),a=n[0],u=n[1],c=e.forwardProps,l=e.children,f=e.className,d=e.removeScrollBar,h=e.enabled,p=e.shards,m=e.sideCar,g=e.noRelative,b=e.noIsolation,v=e.inert,_=e.allowPinchZoom,w=e.as,T=void 0===w?"div":w,x=e.gapMode,A=o(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=m,M=y([r,t]),R=i(i({},A),a);return s.createElement(s.Fragment,null,h&&s.createElement(O,{sideCar:S,removeScrollBar:d,shards:p,noRelative:g,noIsolation:b,inert:v,setCallbacks:u,allowPinchZoom:!!_,lockRef:r,gapMode:x}),c?s.cloneElement(s.Children.only(l),i(i({},R),{ref:M})):s.createElement(T,i({},R,{className:f,ref:M}),l))});w.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},w.classNames={fullWidth:c,zeroRight:u};var T=function(e){var t=e.sideCar,r=b(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return s.createElement(n,g({},r))};function x(e,t){return e.useMedium(t),T}T.isSideCarExport=!0;var A=function(){return n||r.nc};function O(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=A();return t&&e.setAttribute("nonce",t),e}function M(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function R(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var C=function(){var e=0,t=null;return{add:function(r){0==e&&(t=O())&&(M(t,r),R(t)),e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},I=function(){var e=C();return function(t,r){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},N=function(){var e=I();return function(t){return e(t.styles,t.dynamic),null}},P={left:0,top:0,right:0,gap:0},k=function(e){return parseInt(e||"",10)||0},D=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[k(r),k(n),k(i)]},L=function(e){if(void 0===e&&(e="margin"),"u"