@perses-dev/prometheus-plugin 0.57.1 → 0.58.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__mf/css/async/1872.85c2cbf6.css +1 -0
- package/__mf/font/inter-cyrillic-300-normal.432f2b21.woff +0 -0
- package/__mf/font/inter-cyrillic-300-normal.9da91009.woff2 +0 -0
- package/__mf/font/inter-cyrillic-400-normal.372704ff.woff2 +0 -0
- package/__mf/font/inter-cyrillic-400-normal.a6b6ef6f.woff +0 -0
- package/__mf/font/inter-cyrillic-500-normal.7c15bba8.woff2 +0 -0
- package/__mf/font/inter-cyrillic-500-normal.b9f8c929.woff +0 -0
- package/__mf/font/inter-cyrillic-600-normal.2f42892a.woff2 +0 -0
- package/__mf/font/inter-cyrillic-600-normal.c3987adc.woff +0 -0
- package/__mf/font/inter-cyrillic-700-normal.93eba3c3.woff +0 -0
- package/__mf/font/inter-cyrillic-700-normal.e9e5b2dc.woff2 +0 -0
- package/__mf/font/inter-cyrillic-900-normal.f285bd7a.woff2 +0 -0
- package/__mf/font/inter-cyrillic-900-normal.ffbd8a3a.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-300-normal.95bb9038.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-300-normal.cfc143a9.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-400-normal.2a31c04b.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-400-normal.f572b170.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-500-normal.5a6bb1da.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-500-normal.fe0d9b14.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-600-normal.ecbdecad.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-600-normal.f7b3c15b.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-700-normal.4b4022a6.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-700-normal.74b516d2.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-900-normal.9970ddb5.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-900-normal.a0d59adc.woff2 +0 -0
- package/__mf/font/inter-greek-300-normal.0d7be683.woff2 +0 -0
- package/__mf/font/inter-greek-300-normal.8f0b988e.woff +0 -0
- package/__mf/font/inter-greek-400-normal.cc58c11b.woff +0 -0
- package/__mf/font/inter-greek-400-normal.d7020e3c.woff2 +0 -0
- package/__mf/font/inter-greek-500-normal.d9a33207.woff +0 -0
- package/__mf/font/inter-greek-500-normal.f41f43db.woff2 +0 -0
- package/__mf/font/inter-greek-600-normal.4ec0c1c1.woff +0 -0
- package/__mf/font/inter-greek-600-normal.cc532937.woff2 +0 -0
- package/__mf/font/inter-greek-700-normal.5ec6c758.woff +0 -0
- package/__mf/font/inter-greek-700-normal.97f0eeeb.woff2 +0 -0
- package/__mf/font/inter-greek-900-normal.46b66369.woff2 +0 -0
- package/__mf/font/inter-greek-900-normal.9ae3a3c5.woff +0 -0
- package/__mf/font/inter-greek-ext-300-normal.10247a66.woff2 +0 -0
- package/__mf/font/inter-greek-ext-300-normal.4668e5cb.woff +0 -0
- package/__mf/font/inter-greek-ext-400-normal.4ce1df5d.woff2 +0 -0
- package/__mf/font/inter-greek-ext-400-normal.88ede1ea.woff +0 -0
- package/__mf/font/inter-greek-ext-500-normal.7a4aa726.woff +0 -0
- package/__mf/font/inter-greek-ext-500-normal.cbd51e2d.woff2 +0 -0
- package/__mf/font/inter-greek-ext-600-normal.089a95ee.woff +0 -0
- package/__mf/font/inter-greek-ext-600-normal.1f33d317.woff2 +0 -0
- package/__mf/font/inter-greek-ext-700-normal.31f1075d.woff +0 -0
- package/__mf/font/inter-greek-ext-700-normal.827cd618.woff2 +0 -0
- package/__mf/font/inter-greek-ext-900-normal.531bcee7.woff +0 -0
- package/__mf/font/inter-greek-ext-900-normal.8a9b36b9.woff2 +0 -0
- package/__mf/font/inter-latin-300-normal.15fb600d.woff2 +0 -0
- package/__mf/font/inter-latin-300-normal.6f95f590.woff +0 -0
- package/__mf/font/inter-latin-400-normal.2c7a775c.woff +0 -0
- package/__mf/font/inter-latin-400-normal.ef6d3f52.woff2 +0 -0
- package/__mf/font/inter-latin-500-normal.b7b43ace.woff2 +0 -0
- package/__mf/font/inter-latin-500-normal.cb4c8ceb.woff +0 -0
- package/__mf/font/inter-latin-600-normal.8fb1a964.woff2 +0 -0
- package/__mf/font/inter-latin-600-normal.ce0f5f43.woff +0 -0
- package/__mf/font/inter-latin-700-normal.953b7aa5.woff2 +0 -0
- package/__mf/font/inter-latin-700-normal.9c21d4dc.woff +0 -0
- package/__mf/font/inter-latin-900-normal.2a8028ec.woff2 +0 -0
- package/__mf/font/inter-latin-900-normal.fa252135.woff +0 -0
- package/__mf/font/inter-latin-ext-300-normal.167cc8c9.woff2 +0 -0
- package/__mf/font/inter-latin-ext-300-normal.f695be66.woff +0 -0
- package/__mf/font/inter-latin-ext-400-normal.32a25442.woff2 +0 -0
- package/__mf/font/inter-latin-ext-400-normal.4edcaace.woff +0 -0
- package/__mf/font/inter-latin-ext-500-normal.a19a84a6.woff +0 -0
- package/__mf/font/inter-latin-ext-500-normal.d9b491de.woff2 +0 -0
- package/__mf/font/inter-latin-ext-600-normal.38b075d8.woff2 +0 -0
- package/__mf/font/inter-latin-ext-600-normal.49faa47a.woff +0 -0
- package/__mf/font/inter-latin-ext-700-normal.93534b50.woff +0 -0
- package/__mf/font/inter-latin-ext-700-normal.b63daa1a.woff2 +0 -0
- package/__mf/font/inter-latin-ext-900-normal.0efdb307.woff +0 -0
- package/__mf/font/inter-latin-ext-900-normal.9c0fc2c7.woff2 +0 -0
- package/__mf/font/inter-vietnamese-300-normal.aad496d8.woff +0 -0
- package/__mf/font/inter-vietnamese-300-normal.ad9ef503.woff2 +0 -0
- package/__mf/font/inter-vietnamese-400-normal.a9dd2faf.woff +0 -0
- package/__mf/font/inter-vietnamese-400-normal.de4fc44f.woff2 +0 -0
- package/__mf/font/inter-vietnamese-500-normal.7c0a695f.woff2 +0 -0
- package/__mf/font/inter-vietnamese-500-normal.a3a73b95.woff +0 -0
- package/__mf/font/inter-vietnamese-600-normal.9d518599.woff2 +0 -0
- package/__mf/font/inter-vietnamese-600-normal.c5ce3fcb.woff +0 -0
- package/__mf/font/inter-vietnamese-700-normal.bc68b199.woff +0 -0
- package/__mf/font/inter-vietnamese-700-normal.faf12809.woff2 +0 -0
- package/__mf/font/inter-vietnamese-900-normal.2b782045.woff +0 -0
- package/__mf/font/inter-vietnamese-900-normal.e639b65a.woff2 +0 -0
- package/__mf/js/Prometheus.d3a12aa6.js +7 -0
- package/__mf/js/async/1432.0bb0ef6b.js +1 -0
- package/__mf/js/async/1605.7c7a0998.js +110 -0
- package/__mf/js/async/{1605.dc180cb8.js.LICENSE.txt → 1605.7c7a0998.js.LICENSE.txt} +1 -1
- package/__mf/js/async/1616.ed429c53.js +1 -0
- package/__mf/js/async/1728.e8350fb6.js +1 -0
- package/__mf/js/async/1872.7a33d27d.js +7 -0
- package/__mf/js/async/{1266.72ab943c.js.LICENSE.txt → 1872.7a33d27d.js.LICENSE.txt} +19 -1
- package/__mf/js/async/1969.a1e1979e.js +1 -0
- package/__mf/js/async/2043.c2948add.js +2 -0
- package/__mf/js/async/{2186.e58838a5.js → 2186.9a98bd8f.js} +2 -2
- package/__mf/js/async/2228.53db17f4.js +2 -0
- package/__mf/js/async/{4657.f0c3ccd6.js.LICENSE.txt → 2228.53db17f4.js.LICENSE.txt} +17 -1
- package/__mf/js/async/2340.1f49ce2e.js +1 -0
- package/__mf/js/async/2506.baf20a10.js +1 -0
- package/__mf/js/async/2814.fbf52858.js +1 -0
- package/__mf/js/async/2979.1d711dae.js +1 -0
- package/__mf/js/async/3499.19c4bfa6.js +1 -0
- package/__mf/js/async/392.233c0945.js +2 -0
- package/__mf/js/async/3963.81c8be7e.js +1 -0
- package/__mf/js/async/4121.9ed83f2a.js +2 -0
- package/__mf/js/async/425.b9d2dc6f.js +1 -0
- package/__mf/js/async/4402.2c6a54dd.js +1 -0
- package/__mf/js/async/4626.90ae092f.js +1 -0
- package/__mf/js/async/4987.f7360bdf.js +1 -0
- package/__mf/js/async/5002.bd952313.js +1 -0
- package/__mf/js/async/5071.5fcfd9a8.js +1 -0
- package/__mf/js/async/5440.52ec91ad.js +2 -0
- package/__mf/js/async/5587.e4d331db.js +1 -0
- package/__mf/js/async/5763.ccf403b7.js +1 -0
- package/__mf/js/async/5922.ba33c996.js +1 -0
- package/__mf/js/async/6274.f04c9ecd.js +2 -0
- package/__mf/js/async/6438.b86a2aba.js +1 -0
- package/__mf/js/async/6507.71182781.js +1 -0
- package/__mf/js/async/7177.0ab860e0.js +1 -0
- package/__mf/js/async/7192.bbf62500.js +1 -0
- package/__mf/js/async/7647.82297501.js +1 -0
- package/__mf/js/async/7670.3e71874a.js +1 -0
- package/__mf/js/async/7862.e13fbb9d.js +2 -0
- package/__mf/js/async/7894.9fe90396.js +1 -0
- package/__mf/js/async/7968.253f5f1d.js +1 -0
- package/__mf/js/async/7978.be30c741.js +1 -0
- package/__mf/js/async/8356.6a2bfd53.js +1 -0
- package/__mf/js/async/8470.84935087.js +2 -0
- package/__mf/js/async/873.6aafbb7b.js +1 -0
- package/__mf/js/async/8750.7d02f3b6.js +3 -0
- package/__mf/js/async/8888.3a188176.js +1 -0
- package/__mf/js/async/9184.e6de21be.js +1 -0
- package/__mf/js/async/9235.85fb6b63.js +1 -0
- package/__mf/js/async/941.075ed563.js +2 -0
- package/__mf/js/async/9588.dfdaeff2.js +1 -0
- package/__mf/js/async/9594.d1a3d0d9.js +1 -0
- package/__mf/js/async/9745.0a6c90a2.js +1 -0
- package/__mf/js/async/9836.888f4ed2.js +1 -0
- package/__mf/js/async/9916.11d16715.js +22 -0
- package/__mf/js/async/__federation_expose_PrometheusDatasource.2d013450.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusExplorer.f82cdff6.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.c01296a1.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.e47f56d4.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusPromQLVariable.593376e2.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.ee2d94d2.js +1 -0
- package/__mf/js/main.31c60b65.js +7 -0
- package/lib/cjs/components/promql/format.js +6 -6
- package/lib/cjs/components/promql/serialize.js +4 -4
- package/lib/cjs/model/prometheus-client.js +25 -20
- package/lib/cjs/model/time.js +2 -2
- package/lib/cjs/plugins/PrometheusDatasourceEditor.js +10 -48
- package/lib/cjs/plugins/PrometheusLabelNamesVariable.js +3 -2
- package/lib/cjs/plugins/PrometheusLabelValuesVariable.js +3 -2
- package/lib/cjs/plugins/PrometheusPromQLVariable.js +3 -2
- package/lib/cjs/plugins/interpolation.js +54 -0
- package/lib/cjs/plugins/prometheus-datasource.js +15 -42
- package/lib/cjs/plugins/prometheus-time-series-query/get-time-series-data.js +12 -4
- package/lib/cjs/plugins/prometheus-time-series-query/replace-prom-builtin-variables.js +3 -3
- package/lib/components/TreeNode.d.ts.map +1 -1
- package/lib/components/TreeNode.js.map +1 -1
- package/lib/components/promql/format.d.ts.map +1 -1
- package/lib/components/promql/format.js +6 -6
- package/lib/components/promql/format.js.map +1 -1
- package/lib/components/promql/serialize.js +4 -4
- package/lib/components/promql/serialize.js.map +1 -1
- package/lib/components/query.d.ts +2 -1
- package/lib/components/query.d.ts.map +1 -1
- package/lib/components/query.js.map +1 -1
- package/lib/explore/PrometheusExplorer.d.ts.map +1 -1
- package/lib/explore/PrometheusExplorer.js +1 -1
- package/lib/explore/PrometheusExplorer.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.d.ts +1 -1
- package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.d.ts.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/display/list/MetricList.d.ts +1 -1
- package/lib/explore/PrometheusMetricsFinder/display/list/MetricList.d.ts.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/display/list/MetricList.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.d.ts +1 -1
- package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.d.ts.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.d.ts +1 -1
- package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.d.ts.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/MetricOverview.d.ts +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/MetricOverview.d.ts.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/MetricOverview.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/JobTab.d.ts +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/JobTab.d.ts.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/JobTab.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/JobTab.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.d.ts +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.d.ts.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/SimilarTab.d.ts +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/SimilarTab.d.ts.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/SimilarTab.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/SimilarTab.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/types.d.ts +1 -1
- package/lib/explore/PrometheusMetricsFinder/types.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/utils.d.ts +2 -1
- package/lib/explore/PrometheusMetricsFinder/utils.d.ts.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/utils.js.map +1 -1
- package/lib/model/api-types.d.ts +2 -2
- package/lib/model/api-types.d.ts.map +1 -1
- package/lib/model/api-types.js.map +1 -1
- package/lib/model/prometheus-client.d.ts +17 -14
- package/lib/model/prometheus-client.d.ts.map +1 -1
- package/lib/model/prometheus-client.js +20 -17
- package/lib/model/prometheus-client.js.map +1 -1
- package/lib/model/prometheus-selectors.d.ts +1 -1
- package/lib/model/prometheus-selectors.d.ts.map +1 -1
- package/lib/model/prometheus-selectors.js.map +1 -1
- package/lib/model/time.d.ts +1 -1
- package/lib/model/time.d.ts.map +1 -1
- package/lib/model/time.js +1 -1
- package/lib/model/time.js.map +1 -1
- package/lib/plugins/PrometheusDatasourceEditor.d.ts.map +1 -1
- package/lib/plugins/PrometheusDatasourceEditor.js +11 -8
- package/lib/plugins/PrometheusDatasourceEditor.js.map +1 -1
- package/lib/plugins/PrometheusLabelNamesVariable.d.ts.map +1 -1
- package/lib/plugins/PrometheusLabelNamesVariable.js +3 -2
- package/lib/plugins/PrometheusLabelNamesVariable.js.map +1 -1
- package/lib/plugins/PrometheusLabelValuesVariable.d.ts.map +1 -1
- package/lib/plugins/PrometheusLabelValuesVariable.js +3 -2
- package/lib/plugins/PrometheusLabelValuesVariable.js.map +1 -1
- package/lib/plugins/PrometheusPromQLVariable.d.ts.map +1 -1
- package/lib/plugins/PrometheusPromQLVariable.js +3 -2
- package/lib/plugins/PrometheusPromQLVariable.js.map +1 -1
- package/lib/plugins/interpolation.d.ts +12 -0
- package/lib/plugins/interpolation.d.ts.map +1 -0
- package/lib/plugins/interpolation.js +38 -0
- package/lib/plugins/interpolation.js.map +1 -0
- package/lib/plugins/prometheus-datasource.d.ts.map +1 -1
- package/lib/plugins/prometheus-datasource.js +16 -43
- package/lib/plugins/prometheus-datasource.js.map +1 -1
- package/lib/plugins/prometheus-time-series-query/get-time-series-data.d.ts.map +1 -1
- package/lib/plugins/prometheus-time-series-query/get-time-series-data.js +11 -3
- package/lib/plugins/prometheus-time-series-query/get-time-series-data.js.map +1 -1
- package/lib/plugins/prometheus-time-series-query/query-editor-model.d.ts +1 -1
- package/lib/plugins/prometheus-time-series-query/query-editor-model.js.map +1 -1
- package/lib/plugins/prometheus-time-series-query/replace-prom-builtin-variables.js +3 -3
- package/lib/plugins/prometheus-time-series-query/replace-prom-builtin-variables.js.map +1 -1
- package/lib/plugins/prometheus-time-series-query/time-series-query-model.d.ts +1 -1
- package/lib/plugins/prometheus-time-series-query/time-series-query-model.d.ts.map +1 -1
- package/lib/plugins/prometheus-time-series-query/time-series-query-model.js.map +1 -1
- package/lib/plugins/types.d.ts +3 -2
- package/lib/plugins/types.d.ts.map +1 -1
- package/lib/plugins/types.js.map +1 -1
- package/mf-manifest.json +312 -294
- package/mf-stats.json +331 -297
- package/package.json +8 -7
- package/__mf/css/async/1233.d3010b86.css +0 -1
- package/__mf/css/async/1324.d3010b86.css +0 -1
- package/__mf/css/async/9518.d3010b86.css +0 -1
- package/__mf/font/lato-all-300-normal.322bdf14.woff +0 -0
- package/__mf/font/lato-all-400-normal.63513b00.woff +0 -0
- package/__mf/font/lato-all-700-normal.bb27db94.woff +0 -0
- package/__mf/font/lato-all-900-normal.a27049a3.woff +0 -0
- package/__mf/font/lato-latin-300-normal.c5195215.woff2 +0 -0
- package/__mf/font/lato-latin-400-normal.b7ffde23.woff2 +0 -0
- package/__mf/font/lato-latin-700-normal.d5eb20bc.woff2 +0 -0
- package/__mf/font/lato-latin-900-normal.d884a71c.woff2 +0 -0
- package/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2 +0 -0
- package/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2 +0 -0
- package/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2 +0 -0
- package/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2 +0 -0
- package/__mf/js/Prometheus.3e36625f.js +0 -6
- package/__mf/js/async/1233.0ab88b51.js +0 -1
- package/__mf/js/async/1266.72ab943c.js +0 -7
- package/__mf/js/async/1324.ce01eced.js +0 -1
- package/__mf/js/async/1432.0c3e4ed0.js +0 -1
- package/__mf/js/async/1605.dc180cb8.js +0 -110
- package/__mf/js/async/1616.7587ce79.js +0 -1
- package/__mf/js/async/1728.77be26a7.js +0 -1
- package/__mf/js/async/1969.372d36b8.js +0 -1
- package/__mf/js/async/2043.d0fbb886.js +0 -2
- package/__mf/js/async/208.72798a8d.js +0 -4
- package/__mf/js/async/208.72798a8d.js.LICENSE.txt +0 -15
- package/__mf/js/async/2506.1e336b3b.js +0 -1
- package/__mf/js/async/3184.6b4ad42e.js +0 -1
- package/__mf/js/async/3499.bef2e2e5.js +0 -1
- package/__mf/js/async/392.f1b4a590.js +0 -2
- package/__mf/js/async/3963.5fef6ffb.js +0 -1
- package/__mf/js/async/3996.69a9c1dc.js +0 -1
- package/__mf/js/async/4121.828d661d.js +0 -2
- package/__mf/js/async/425.1ec8867f.js +0 -1
- package/__mf/js/async/4626.173e602a.js +0 -1
- package/__mf/js/async/4657.f0c3ccd6.js +0 -2
- package/__mf/js/async/4987.c12b89cb.js +0 -1
- package/__mf/js/async/5002.e4f54e8e.js +0 -1
- package/__mf/js/async/5071.e1c33fa7.js +0 -1
- package/__mf/js/async/529.2303b01b.js +0 -1
- package/__mf/js/async/54.5c908585.js +0 -22
- package/__mf/js/async/5440.8ced5513.js +0 -2
- package/__mf/js/async/5587.4d72fc35.js +0 -1
- package/__mf/js/async/5763.4ba478ff.js +0 -1
- package/__mf/js/async/5922.d1619ac1.js +0 -1
- package/__mf/js/async/6274.478a68f8.js +0 -2
- package/__mf/js/async/6283.181cb622.js +0 -2
- package/__mf/js/async/6969.b959b6f8.js +0 -1
- package/__mf/js/async/7177.205c9aaf.js +0 -1
- package/__mf/js/async/7192.d835931b.js +0 -1
- package/__mf/js/async/7894.9c5245d7.js +0 -1
- package/__mf/js/async/7968.6ac0ce96.js +0 -1
- package/__mf/js/async/7978.9532d5b8.js +0 -1
- package/__mf/js/async/8356.789e1dfb.js +0 -1
- package/__mf/js/async/8470.9b14a625.js +0 -2
- package/__mf/js/async/873.448eab23.js +0 -1
- package/__mf/js/async/8888.59eb50a2.js +0 -1
- package/__mf/js/async/9020.01c02370.js +0 -1
- package/__mf/js/async/9184.43a8d927.js +0 -1
- package/__mf/js/async/9235.36c3cd8c.js +0 -1
- package/__mf/js/async/9351.715f25c3.js +0 -1
- package/__mf/js/async/941.53b13124.js +0 -2
- package/__mf/js/async/9518.38e38a33.js +0 -1
- package/__mf/js/async/9588.9081c7de.js +0 -1
- package/__mf/js/async/9605.a92ec9c1.js +0 -1
- package/__mf/js/async/9836.00da6086.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusDatasource.3c1c02b3.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusExplorer.f4a5fd3b.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.e524cab6.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.0677c3da.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusPromQLVariable.c52e7d2f.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.d384e1e0.js +0 -1
- package/__mf/js/main.6ad7fbba.js +0 -6
- /package/__mf/js/async/{2043.d0fbb886.js.LICENSE.txt → 2043.c2948add.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.f1b4a590.js.LICENSE.txt → 392.233c0945.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4121.828d661d.js.LICENSE.txt → 4121.9ed83f2a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5440.8ced5513.js.LICENSE.txt → 5440.52ec91ad.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6274.478a68f8.js.LICENSE.txt → 6274.f04c9ecd.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6283.181cb622.js.LICENSE.txt → 7862.e13fbb9d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{8470.9b14a625.js.LICENSE.txt → 8470.84935087.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.53b13124.js.LICENSE.txt → 941.075ed563.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{54.5c908585.js.LICENSE.txt → 9916.11d16715.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self["chunk_Prometheus "]=self["chunk_Prometheus "]||[]).push([["2814"],{2582(e,t,o){o.d(t,{A:()=>T});var n,r=o(70451),i=o(11750),l=o(81023),s=o(24726),a=o(88091),u=o(88404),d=o(42872),c=o(77308),h=o(23434),m=o(72052),f=o(29009),p=o(46733);function g(e){return(0,p.Ay)("MuiInputAdornment",e)}let v=(0,f.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var x=o(62540);let I=(0,c.A)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[`position${(0,s.A)(o.position)}`],!0===o.disablePointerEvents&&t.disablePointerEvents,t[o.variant]]}})((0,h.A)(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${v.positionStart}&:not(.${v.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),T=r.forwardRef(function(e,t){let o=(0,m.b)({props:e,name:"MuiInputAdornment"}),{children:c,className:h,component:f="div",disablePointerEvents:p=!1,disableTypography:v=!1,position:T,variant:S,...C}=o,w=(0,d.A)()||{},H=S;S&&w.variant,w&&!H&&(H=w.variant);let y={...o,hiddenLabel:w.hiddenLabel,size:w.size,disablePointerEvents:p,position:T,variant:H},b=(e=>{let{classes:t,disablePointerEvents:o,hiddenLabel:n,position:r,size:i,variant:a}=e,u={root:["root",o&&"disablePointerEvents",r&&`position${(0,s.A)(r)}`,a,n&&"hiddenLabel",i&&`size${(0,s.A)(i)}`]};return(0,l.A)(u,g,t)})(y);return(0,x.jsx)(u.A.Provider,{value:null,children:(0,x.jsx)(I,{as:f,ownerState:y,className:(0,i.A)(b.root,h),ref:t,...C,children:"string"!=typeof c||v?(0,x.jsxs)(r.Fragment,{children:["start"===T?n||(n=(0,x.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):null,c]}):(0,x.jsx)(a.A,{color:"textSecondary",children:c})})})})},8072(e,t,o){o.d(t,{A:()=>u});var n=o(70451),r=o(31789),i=o(70320),l=o(45827);let s={...n}.useSyncExternalStore;function a(e={}){let{themeId:t}=e;return function(e,o={}){let a=(0,l.A)();a&&t&&(a=a[t]||a);let u="u">typeof window&&void 0!==window.matchMedia,{defaultMatches:d=!1,matchMedia:c=u?window.matchMedia:null,ssrMatchMedia:h=null,noSsr:m=!1}=(0,i.A)({name:"MuiUseMediaQuery",props:o,theme:a}),f="function"==typeof e?e(a):e;return(f=f.replace(/^@media( ?)/m,"")).includes("print")&&console.warn("MUI: You have provided a `print` query to the `useMediaQuery` hook.\nUsing the print media query to modify print styles can lead to unexpected results.\nConsider using the `displayPrint` field in the `sx` prop instead.\nMore information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."),(void 0!==s?function(e,t,o,r,i){let l=n.useCallback(()=>t,[t]),a=n.useMemo(()=>{if(i&&o)return()=>o(e).matches;if(null!==r){let{matches:t}=r(e);return()=>t}return l},[l,e,r,i,o]),[u,d]=n.useMemo(()=>{if(null===o)return[l,()=>()=>{}];let t=o(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[l,o,e]);return s(d,u,a)}:function(e,t,o,i,l){let[s,a]=n.useState(()=>l&&o?o(e).matches:i?i(e).matches:t);return(0,r.A)(()=>{if(!o)return;let t=o(e),n=()=>{a(t.matches)};return n(),t.addEventListener("change",n),()=>{t.removeEventListener("change",n)}},[e,o]),s})(f,d,c,h,m)}}a();let u=a({themeId:o(93724).A})},98029(e,t,o){var n;t.default=void 0,t.default=(0,((n=o(1448))&&n.__esModule?n:{default:n}).default)("M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z","Delete")},98599(e,t,o){var n;t.default=void 0,t.default=(0,((n=o(1448))&&n.__esModule?n:{default:n}).default)("M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z","Magnify")},74649(e,t,o){o.d(t,{Sd:()=>t4,aY:()=>tD});var n=o(62540),r=o(70451),i=o.n(r),l=o(20231),s=o.n(l);function a(e){e()}function u(e,t){return o=>e(t(o))}function d(e){return void 0!==e}function c(){}function h(e,t){return t(e)}function m(...e){return e}function f(e){e(2)}function p(e){return e(4)}function g(e,t){return e(1,e=>t(0,e))}function v(e,t){let o=e(1,e=>{o(),t(e)});return o}function x(e){let t,o;return n=>r=>{t=r,o&&clearTimeout(o),o=setTimeout(()=>{n(t)},e)}}function I(e,t){return e===t}function T(e=I){let t;return o=>n=>{e(t,n)||(t=n,o(n))}}function S(e){return t=>o=>{e(o)&&t(o)}}function C(e){return t=>u(t,e)}function w(e){return t=>()=>{t(e)}}function H(e,...t){let o=function(...e){return t=>e.reduceRight(h,t)}(...t);return(t,n)=>{switch(t){case 2:f(e);return;case 1:return e(1,o(n))}}}function y(e,t){return o=>n=>{o(t=e(t,n))}}function b(e){return t=>o=>{e>0?e--:t(o)}}function z(e){let t=null,o;return n=>r=>{t=r,o||(o=setTimeout(()=>{o=void 0,n(t)},e))}}function R(...e){let t=Array(e.length),o=0,n=null,r=2**e.length-1;return e.forEach((e,i)=>{let l=2**i;e(1,e=>{let s=o;o|=l,t[i]=e,s!==r&&o===r&&n&&(n(),n=null)})}),e=>i=>{let l=()=>{e([i].concat(t))};o===r?l():n=l}}function E(e){let t=e,o=B();return(e,n)=>{switch(e){case 0:t=n;break;case 1:n(t);break;case 4:return t}return o(e,n)}}function k(e,t){var o;return o=E(t),g(e,o),o}function B(){let e=[];return(t,o)=>{switch(t){case 0:e.slice().forEach(e=>{e(o)});return;case 2:e.splice(0,e.length);return;case 1:return e.push(o),()=>{let t=e.indexOf(o);t>-1&&e.splice(t,1)}}}}function L(e){var t;return t=B(),g(e,t),t}function M(e,t=[],{singleton:o}={singleton:!0}){return{constructor:e,dependencies:t,id:A(),singleton:o}}let A=()=>Symbol();function P(...e){let t=B(),o=Array(e.length),n=0,r=2**e.length-1;return e.forEach((e,i)=>{let l=2**i;e(1,e=>{o[i]=e,(n|=l)===r&&t(0,o)})}),function(e,i){switch(e){case 2:return void f(t);case 1:return n===r&&i(o),t(1,i)}}}function F(e,t=I){return H(e,T(t))}function j(...e){return function(t,o){switch(t){case 2:return;case 1:return function(...e){return()=>{e.map(a)}}(...e.map(e=>e(1,o)))}}}let O=1,W={0:"debug",3:"error",[O]:"log",2:"warn"},V=M(()=>{let e=E(3);return{log:E((t,o,n=O)=>{n>=((typeof globalThis>"u"?window:globalThis).VIRTUOSO_LOG_LEVEL??p(e))&&console[W[n]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,o)}),logLevel:e}},[],{singleton:!0});function D(e,t,o){return G(e,t,o).callbackRef}function G(e,t,o){let n=i().useRef(null),r=i().useMemo(()=>"u">typeof ResizeObserver?new ResizeObserver(t=>{let n=()=>{let o=t[0].target;null!==o.offsetParent&&e(o)};o?n():requestAnimationFrame(n)}):null,[e,o]);return{callbackRef:e=>{e&&t?(r?.observe(e),n.current=e):(n.current&&r?.unobserve(n.current),n.current=null)},ref:n}}function _(e,t,o,n,r,l,s,a,u){return G(i().useCallback(o=>{let i,u=function(e,t,o,n){let r=e.length;if(0===r)return null;let i=[];for(let l=0;l<r;l++){let r=e.item(l);if(void 0===r.dataset.index)continue;let s=parseInt(r.dataset.index),a=parseFloat(r.dataset.knownSize),u=t(r,o);if(0===u&&n("Zero-sized element, this should not happen",{child:r},3),u===a)continue;let d=i[i.length-1];0===i.length||d.size!==u||d.endIndex!==s-1?i.push({endIndex:s,size:u,startIndex:s}):i[i.length-1].endIndex++}return i}(o.children,t,a?"offsetWidth":"offsetHeight",r),d=o.parentElement;for(;void 0===d.dataset.virtuosoScroller;)d=d.parentElement;let c="window"===d.lastElementChild.dataset.viewportType;c&&(i=d.ownerDocument.defaultView);let h=s?a?s.scrollLeft:s.scrollTop:c?a?i.scrollX||i.document.documentElement.scrollLeft:i.scrollY||i.document.documentElement.scrollTop:a?d.scrollLeft:d.scrollTop;n({scrollHeight:s?a?s.scrollWidth:s.scrollHeight:c?a?i.document.documentElement.scrollWidth:i.document.documentElement.scrollHeight:a?d.scrollWidth:d.scrollHeight,scrollTop:Math.max(h,0),viewportHeight:s?a?s.offsetWidth:s.offsetHeight:c?a?i.innerWidth:i.innerHeight:a?d.offsetWidth:d.offsetHeight}),l?.(a?N("column-gap",getComputedStyle(o).columnGap,r):N("row-gap",getComputedStyle(o).rowGap,r)),null!==u&&e(u)},[e,t,r,l,s,n,a]),o,u)}function N(e,t,o){return"normal"!==t&&t?.endsWith("px")!==!0&&o(`${e} was not resolved to pixel value correctly`,t,2),"normal"===t?0:parseInt(t??"0",10)}function $(e,t,o){let n=i().useRef(null),r=i().useCallback(o=>{let r,i;if(!o?.offsetParent)return;let l=o.getBoundingClientRect(),a=l.width;if(t){let e=t.getBoundingClientRect(),o=l.top-e.top;i=e.height-Math.max(0,o),r=o+t.scrollTop}else{let e=s.current.ownerDocument.defaultView;i=e.innerHeight-Math.max(0,l.top),r=l.top+e.scrollY}n.current={listHeight:l.height,offsetTop:r,visibleHeight:i,visibleWidth:a},e(n.current)},[e,t]),{callbackRef:l,ref:s}=G(r,!0,o),a=i().useCallback(()=>{r(s.current)},[r,s]);return i().useEffect(()=>{if(t){t.addEventListener("scroll",a);let e=new ResizeObserver(()=>{requestAnimationFrame(a)});return e.observe(t),()=>{t.removeEventListener("scroll",a),e.unobserve(t)}}let e=s.current?.ownerDocument.defaultView;return e?.addEventListener("scroll",a),e?.addEventListener("resize",a),()=>{e?.removeEventListener("scroll",a),e?.removeEventListener("resize",a)}},[a,t,s]),l}let K=M(()=>{let e=B(),t=B(),o=E(0),n=B(),r=E(0),i=B(),l=B(),s=E(0),a=E(0),u=E(0),d=E(0),c=B(),h=B(),m=E(!1),f=E(!1),p=E(!1);return g(H(e,C(({scrollTop:e})=>e)),t),g(H(e,C(({scrollHeight:e})=>e)),l),g(t,r),{deviation:o,fixedFooterHeight:u,fixedHeaderHeight:a,footerHeight:d,headerHeight:s,horizontalDirection:f,scrollBy:h,scrollContainerState:e,scrollHeight:l,scrollingInProgress:m,scrollTo:c,scrollTop:t,skipAnimationFrameInResizeObserver:p,smoothScrollTargetReached:n,statefulScrollTop:r,viewportHeight:i}},[],{singleton:!0}),q={lvl:0};function U(e,t){let o=e.length;if(0===o)return[];let{index:n,value:r}=t(e[0]),i=[];for(let l=1;l<o;l++){let{index:o,value:s}=t(e[l]);i.push({end:o-1,start:n,value:r}),n=o,r=s}return i.push({end:1/0,start:n,value:r}),i}function Y(e){return e===q}function Z(e,t){if(!Y(e))return t===e.k?e.v:t<e.k?Z(e.l,t):Z(e.r,t)}function X(e,t,o="k"){if(Y(e))return[-1/0,void 0];if(Number(e[o])===t)return[e.k,e.v];if(Number(e[o])<t){let n=X(e.r,t,o);return n[0]===-1/0?[e.k,e.v]:n}return X(e.l,t,o)}function J(e,t,o){return Y(e)?er(t,o,1):t===e.k?eo(e,{k:t,v:o}):t<e.k?el(ei(eo(e,{l:J(e.l,t,o)}))):el(ei(eo(e,{r:J(e.r,t,o)})))}function Q(e,t,o){if(Y(e))return[];let n=X(e,t)[0];return U(function e(t,o,n){if(Y(t))return[];let{k:r,l:i,r:l,v:s}=t,a=[];return r>o&&(a=a.concat(e(i,o,n))),r>=o&&r<=n&&a.push({k:r,v:s}),r<=n&&(a=a.concat(e(l,o,n))),a}(e,n,o),({k:e,v:t})=>({index:e,value:t}))}function ee(e){return Y(e)?[]:[...ee(e.l),{k:e.k,v:e.v},...ee(e.r)]}function et(e){let{l:t,lvl:o,r:n}=e;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(en(t))return ei(eo(e,{lvl:o-1}));if(!Y(t)&&!Y(t.r))return eo(t.r,{l:eo(t,{r:t.r.l}),lvl:o,r:eo(e,{l:t.r.r,lvl:o-1})});throw Error("Unexpected empty nodes")}if(en(e))return el(eo(e,{lvl:o-1}));if(!Y(n)&&!Y(n.l)){let t=n.l,r=en(t)?n.lvl-1:n.lvl;return eo(t,{l:eo(e,{lvl:o-1,r:t.l}),lvl:t.lvl+1,r:el(eo(n,{l:t.r,lvl:r}))})}throw Error("Unexpected empty nodes")}function eo(e,t){return er(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function en(e){return Y(e)||e.lvl>e.r.lvl}function er(e,t,o,n=q,r=q){return{k:e,l:n,lvl:o,r,v:t}}function ei(e){let{l:t}=e;return Y(t)||t.lvl!==e.lvl?e:eo(t,{r:eo(e,{l:t.r})})}function el(e){let{lvl:t,r:o}=e;return Y(o)||Y(o.r)||o.lvl!==t||o.r.lvl!==t?e:eo(o,{l:eo(e,{r:o.l}),lvl:t+1})}function es(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function ea(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}let eu=M(()=>({recalcInProgress:E(!1)}),[],{singleton:!0});function ed(e,t,o,n=0){let r=e.length-1;for(;n<=r;){let i=Math.floor((n+r)/2),l=o(e[i],t);if(0===l)return i;if(-1===l){if(r-n<2)return i-1;r=i-1}else{if(r===n)return i;n=i+1}}throw Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function ec(e,t){return Math.round(e.getBoundingClientRect()[t])}function eh(e){return!Y(e.groupOffsetTree)}function em({index:e},t){return t===e?0:t<e?-1:1}function ef({offset:e},t){return t===e?0:t<e?-1:1}function ep(e,t,o){if(0===t.length)return 0;let{index:n,offset:r,size:i}=t[ed(t,e,em)],l=e-n,s=i*l+(l-1)*o+r;return s>0?s+o:s}function eg(e,t){if(!eh(t))return e;let o=0;for(;t.groupIndices[o]<=e+o;)o++;return e+o}function ev(e,t,o){if("u">typeof e.groupIndex)return t.groupIndices[e.groupIndex]+1;let n=eg("LAST"===e.index?o:e.index,t);return Math.max(0,n,Math.min(o,n))}function ex(e,[t,o,n,r]){t.length>0&&n("received item sizes",t,0);let i=e.sizeTree,l=i,s=0;if(o.length>0&&Y(i)&&2===t.length){let e=t[0].size,n=t[1].size;l=o.reduce((t,o)=>J(J(t,o,e),o+1,n),l)}else[l,s]=function(e,t){let o=Y(e)?0:1/0;for(let n of t){let{endIndex:t,size:r,startIndex:i}=n;if(o=Math.min(o,i),Y(e)){e=J(e,0,r);continue}let l=Q(e,i-1,t+1);if(l.some(function(e){let{endIndex:t,size:o,startIndex:n}=e;return e=>e.start===n&&(e.end===t||e.end===1/0)&&e.value===o}(n)))continue;let s=!1,a=!1;for(let{end:o,start:n,value:i}of l)s?(t>=n||r===i)&&(e=function e(t,o){if(Y(t))return q;let{k:n,l:r,r:i}=t;if(o===n){if(Y(r))return i;if(Y(i))return r;let[e,o]=function e(t){return Y(t.r)?[t.k,t.v]:e(t.r)}(r);return et(eo(t,{k:e,l:function e(t){return Y(t.r)?t.l:et(eo(t,{r:e(t.r)}))}(r),v:o}))}return o<n?et(eo(t,{l:e(r,o)})):et(eo(t,{r:e(i,o)}))}(e,n)):(a=i!==r,s=!0),o>t&&t>=n&&i!==r&&(e=J(e,t+1,i));a&&(e=J(e,i,r))}return[e,o]}(l,t);if(l===i)return e;let{lastIndex:a,lastOffset:u,lastSize:d,offsetTree:c}=eT(e.offsetTree,s,l,r);return{groupIndices:o,groupOffsetTree:o.reduce((e,t)=>J(e,t,ep(t,c,r)),q),lastIndex:a,lastOffset:u,lastSize:d,offsetTree:c,sizeTree:l}}function eI(e,t){let o=0,n=0;for(;o<e;)o+=t[n+1]-t[n]-1,n++;return n-(o!==e)}function eT(e,t,o,n){let r=e,i=0,l=0,s=0,a=0;if(0!==t){a=ed(r,t-1,em),s=r[a].offset;let e=X(o,t-1);i=e[0],l=e[1],r.length&&r[a].size===X(o,t)[1]&&(a-=1),r=r.slice(0,a+1)}else r=[];for(let{start:e,value:a}of Q(o,t,1/0)){let t=e-i,o=t*l+s+t*n;r.push({index:e,offset:o,size:a}),i=e,s=o,l=a}return{lastIndex:i,lastOffset:s,lastSize:l,offsetTree:r}}function eS(e){return{index:e.index,value:e}}let eC={offsetHeight:"height",offsetWidth:"width"},ew=M(([{log:e},{recalcInProgress:t}])=>{let o=B(),n=B(),r=k(n,0),i=B(),l=B(),s=E(0),a=E([]),u=E(void 0),d=E(void 0),c=E(void 0),h=E(void 0),m=E((e,t)=>ec(e,eC[t])),f=E(void 0),v=E(0),x={groupIndices:[],groupOffsetTree:q,lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:q},I=k(H(o,R(a,e,v),y(ex,x),T()),x),w=k(H(a,T(),y((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),C(({prev:e})=>e)),[]);g(H(a,S(e=>e.length>0),R(I,v),C(([e,t,o])=>{let n=e.reduce((e,n,r)=>J(e,n,ep(n,t.offsetTree,o)||r),q);return{...t,groupIndices:e,groupOffsetTree:n}})),I),g(H(n,R(I),S(([e,{lastIndex:t}])=>e<t),C(([e,{lastIndex:t,lastSize:o}])=>[{endIndex:t,size:o,startIndex:e}])),o),g(u,d);let b=k(H(u,C(e=>void 0===e)),!0);g(H(d,S(e=>void 0!==e&&Y(p(I).sizeTree)),C(e=>{let t=p(c),o=p(a).length>0;return void 0!==t&&0!==t?o?[{endIndex:0,size:t,startIndex:0},{endIndex:1,size:e,startIndex:1}]:[]:[{endIndex:0,size:e,startIndex:0}]})),o),g(H(h,S(e=>void 0!==e&&e.length>0&&Y(p(I).sizeTree)),C(e=>{let t=[],o=e[0],n=0;for(let r=1;r<e.length;r++){let i=e[r];i!==o&&(t.push({endIndex:r-1,size:o,startIndex:n}),o=i,n=r)}return t.push({endIndex:e.length-1,size:o,startIndex:n}),t})),o),g(H(a,R(c,d),S(([,e,t])=>void 0!==e&&void 0!==t),C(([e,t,o])=>{let n=[];for(let r=0;r<e.length;r++){let i=e[r],l=e[r+1];n.push({startIndex:i,endIndex:i,size:t}),void 0!==l&&n.push({startIndex:i+1,endIndex:l-1,size:o})}return n})),o);let z=L(H(o,R(I),y(({sizes:e},[t,o])=>({changed:o!==e,sizes:o}),{changed:!1,sizes:x}),C(e=>e.changed)));H(s,y((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),C(e=>e.diff))(1,e=>{let{groupIndices:o}=p(I);if(e>0)t(0,!0),i(0,e+eI(e,o));else if(e<0){let t=p(w);t.length>0&&(e-=eI(-e,t)),l(0,e)}}),H(s,R(e))(1,([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},3)});let M=L(i);g(H(i,R(I),C(([e,t])=>{let o=t.groupIndices.length>0,n=[],r=t.lastSize;if(o){let o=Z(t.sizeTree,0),i=0,l=0;for(;i<e;){let e=t.groupIndices[l],s=t.groupIndices.length===l+1?1/0:t.groupIndices[l+1]-e-1;n.push({endIndex:e,size:o,startIndex:e}),n.push({endIndex:e+1+s-1,size:r,startIndex:e+1}),l++,i+=s+1}let s=ee(t.sizeTree);return i!==e&&s.shift(),s.reduce((t,{k:o,v:n})=>{let r=t.ranges;return 0!==t.prevSize&&(r=[...t.ranges,{endIndex:o+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:o+e,prevSize:n,ranges:r}},{prevIndex:e,prevSize:0,ranges:n}).ranges}return ee(t.sizeTree).reduce((t,{k:o,v:n})=>({prevIndex:o+e,prevSize:n,ranges:[...t.ranges,{endIndex:o+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:r,ranges:[]}).ranges})),o);let A=L(H(l,R(I,v),C(([e,{offsetTree:t},o])=>ep(-e,t,o))));return g(H(l,R(I,v),C(([e,t,o])=>{if(t.groupIndices.length>0){if(Y(t.sizeTree))return t;let n=q,r=p(w),i=0,l=0,s=0;for(;i<-e;){s=r[l];let e=r[l+1]-s-1;l++,i+=e+1}return n=ee(t.sizeTree).reduce((t,{k:o,v:n})=>J(t,Math.max(0,o+e),n),n),i!==-e&&(n=J(n,0,Z(t.sizeTree,s)),n=J(n,1,X(t.sizeTree,-e+1)[1])),{...t,sizeTree:n,...eT(t.offsetTree,0,n,o)}}let n=ee(t.sizeTree).reduce((t,{k:o,v:n})=>J(t,Math.max(0,o+e),n),q);return{...t,sizeTree:n,...eT(t.offsetTree,0,n,o)}})),I),{beforeUnshiftWith:M,data:f,defaultItemSize:d,firstItemIndex:s,fixedItemSize:u,fixedGroupSize:c,gap:v,groupIndices:a,heightEstimates:h,itemSize:m,listRefresh:z,shiftWith:l,shiftWithOffset:A,sizeRanges:o,sizes:I,statefulTotalCount:r,totalCount:n,trackItemSizes:b,unshiftWith:i}},m(V,eu),{singleton:!0});function eH(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}let ey=M(([{groupIndices:e,sizes:t,totalCount:o},{headerHeight:n,scrollTop:r}])=>{let i=B(),l=B(),s=L(H(i,C(eH)));return g(H(s,C(e=>e.totalCount)),o),g(H(s,C(e=>e.groupIndices)),e),g(H(P(r,t,n),S(([e,t])=>eh(t)),C(([e,t,o])=>X(t.groupOffsetTree,Math.max(e-o,0),"v")[0]),T(),C(e=>[e])),l),{groupCounts:i,topItemsIndexes:l}},m(ew,K)),eb=M(([{log:e}])=>{let t=E(!1),o=L(H(t,S(e=>e),T()));return t(1,t=>{t&&p(e)("props updated",{},0)}),{didMount:o,propsReady:t}},m(V),{singleton:!0}),ez="u">typeof document&&"scrollBehavior"in document.documentElement.style;function eR(e){let t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&ez||(t.behavior="auto"),void 0===t.offset&&(t.offset=0),t}let eE=M(([{gap:e,listRefresh:t,sizes:o,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,footerHeight:l,headerHeight:s,scrollingInProgress:a,scrollTo:u,smoothScrollTargetReached:d,viewportHeight:c},{log:h}])=>{let m=B(),f=B(),p=E(0),x=null,I=null,T=null;function S(){null!==x&&(x(),x=null),null!==T&&(T(),T=null),I&&(clearTimeout(I),I=null),a(0,!1)}return g(H(m,R(o,c,n,p,s,l,h),R(e,i,r),C(([[e,o,n,r,i,l,s,u],c,h,p])=>{let g=eR(e),{align:C,behavior:w,offset:y}=g,b=r-1,z=ev(g,o,b),R=ep(z,o.offsetTree,c)+l;"end"===C?(R+=h+X(o.sizeTree,z)[1]-n+p,z===b&&(R+=s)):"center"===C?R+=(h+X(o.sizeTree,z)[1]-n+p)/2:R-=i,void 0!==y&&0!==y&&(R+=y);let E=t=>{S(),t?(u("retrying to scroll to",{location:e},0),m(0,e)):(f(0,!0),u("list did not change, scroll successful",{},0))};if(S(),"smooth"===w){let e=!1;T=t(1,t=>{e=e||t}),x=v(d,()=>{E(e)})}else x=v(H(t,e=>{let t=setTimeout(()=>{e(!1)},150);return o=>{o&&(e(!0),clearTimeout(t))}}),E);return I=setTimeout(()=>{S()},1200),a(0,!0),u("scrolling from index to",{behavior:w,index:z,top:R},0),{behavior:w,top:R}})),u),{scrollTargetReached:f,scrollToIndex:m,topListHeight:p}},m(ew,K,V),{singleton:!0});function ek(e,t){0===e?t():requestAnimationFrame(()=>{ek(e-1,t)})}function eB(e,t){return"number"==typeof e?e:"LAST"===e.index?t-1:e.index}let eL=M(([{defaultItemSize:e,listRefresh:t,sizes:o},{scrollTop:n},{scrollTargetReached:r,scrollToIndex:i},{didMount:l}])=>{let s=E(!0),a=E(0),u=E(!0);return g(H(l,R(a),S(([e,t])=>0!==t),w(!1)),s),g(H(l,R(a),S(([e,t])=>0!==t),w(!1)),u),H(P(t,l),R(s,o,e,u),S(([[,e],t,{sizeTree:o},n,r])=>e&&(!Y(o)||d(n))&&!t&&!r),R(a))(1,([,e])=>{v(r,()=>{u(0,!0)}),ek(4,()=>{v(n,()=>{s(0,!0)}),i(0,e)})}),{initialItemFinalLocationReached:u,initialTopMostItemIndex:a,scrolledToInitialItem:s}},m(ew,K,eE,eb),{singleton:!0});function eM(e,t){return 1.01>Math.abs(e-t)}let eA="down",eP={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},eF=M(([{footerHeight:e,headerHeight:t,scrollBy:o,scrollContainerState:n,scrollTop:r,viewportHeight:i}])=>{let l=E(!1),s=E(!0),a=B(),u=B(),d=E(4),c=E(0),h=k(H(j(H(F(r),b(1),w(!0)),H(F(r),b(1),w(!1),x(100))),T()),!1),m=k(H(j(H(o,w(!0)),H(o,w(!1),x(200))),T()),!1);g(H(P(F(r),F(c)),C(([e,t])=>e<=t),T()),s),g(H(s,z(50)),u);let f=L(H(P(n,F(i),F(t),F(e),F(d)),y((e,[{scrollHeight:t,scrollTop:o},n,r,i,l])=>{let s={scrollHeight:t,scrollTop:o,viewportHeight:n};if(o+n-t>-l){let t,n;return o>e.state.scrollTop?(t="SCROLLED_DOWN",n=e.state.scrollTop-o):(t="SIZE_DECREASED",n=e.state.scrollTop-o||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:n,state:s}}return{atBottom:!1,notAtBottomBecause:s.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":n<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":o<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:s}},eP),T((e,t)=>void 0!==e&&e.atBottom===t.atBottom))),v=k(H(n,y((e,{scrollHeight:t,scrollTop:o,viewportHeight:n})=>{if(!eM(e.scrollHeight,t)){let r=t-(o+n)<1;return e.scrollTop!==o&&r?{changed:!0,jump:e.scrollTop-o,scrollHeight:t,scrollTop:o}:{changed:!0,jump:0,scrollHeight:t,scrollTop:o}}return{changed:!1,jump:0,scrollHeight:t,scrollTop:o}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),S(e=>e.changed),C(e=>e.jump)),0);g(H(f,C(e=>e.atBottom)),l),g(H(l,z(50)),a);let I=E(eA);g(H(n,C(({scrollTop:e})=>e),T(),y((e,t)=>p(m)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?"up":eA,prevScrollTop:t},{direction:eA,prevScrollTop:0}),C(e=>e.direction)),I),g(H(n,z(50),w("none")),I);let M=E(0);return g(H(h,S(e=>!e),w(0)),M),g(H(r,z(100),R(h),S(([e,t])=>t),y(([e,t],[o])=>[t,o],[0,0]),C(([e,t])=>t-e)),M),{atBottomState:f,atBottomStateChange:a,atBottomThreshold:d,atTopStateChange:u,atTopThreshold:c,isAtBottom:l,isAtTop:s,isScrolling:h,lastJumpDueToItemResize:v,scrollDirection:I,scrollVelocity:M}},m(K)),ej="bottom",eO="none";function eW(e,t,o){return"number"==typeof e?"up"===o&&"top"===t||o===eA&&t===ej?e:0:"up"===o?"top"===t?e.main:e.reverse:t===ej?e.main:e.reverse}function eV(e,t){return"number"==typeof e?e:e[t]??0}let eD=M(([{deviation:e,fixedHeaderHeight:t,headerHeight:o,scrollTop:n,viewportHeight:r}])=>{let i=B(),l=E(0),s=E(0),a=E(0),u=k(H(P(F(n),F(r),F(o),F(i,ea),F(a),F(l),F(t),F(e),F(s)),C(([e,t,o,[n,r],i,l,s,a,u])=>{let d=e-a,c=Math.max(o-d,0),h=eO,m=eV(u,"top"),f=eV(u,ej);return n-=a,n+=o+s,r+=o+s,n>e+(l+s)-m&&(h="up"),(r-=a)<e-c+t+f&&(h=eA),h!==eO?[Math.max(d-o-eW(i,"top",h)-m,0),d-c-s+t+eW(i,ej,h)+f]:null}),S(e=>null!==e),T(ea)),[0,0]);return{increaseViewportBy:s,listBoundary:i,overscan:a,topListHeight:l,visibleRange:u}},m(K),{singleton:!0}),eG={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function e_(e,t,o,n,r,i){let{lastIndex:l,lastOffset:s,lastSize:a}=r,u=0,d=0;if(e.length>0){u=e[0].offset;let t=e[e.length-1];d=t.offset+t.size}let c=o-l,h=u,m=s+c*a+(c-1)*n-d;return{bottom:d,firstItemIndex:i,items:e$(e,r,i),offsetBottom:m,offsetTop:u,top:h,topItems:e$(t,r,i),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:o}}function eN(e,t,o,n,r,i){let l=0;if(o.groupIndices.length>0)for(let t of o.groupIndices){if(t-l>=e)break;l++}let s=e+l,a=eB(t,s);return e_(Array.from({length:s}).map((e,t)=>({data:i[t+a],index:t+a,offset:0,size:0})),[],s,r,o,n)}function e$(e,t,o){if(0===e.length)return[];if(!eh(t))return e.map(e=>({...e,index:e.index+o,originalIndex:e.index}));let n=e[0].index,r=e[e.length-1].index,i=[],l=Q(t.groupOffsetTree,n,r),s,a=0;for(let n of e){let e;(!s||s.end<n.index)&&(s=l.shift(),a=t.groupIndices.indexOf(s.start)),e=n.index===s.start?{index:a,type:"group"}:{groupIndex:a,index:n.index-(a+1)+o},i.push({...e,data:n.data,offset:n.offset,originalIndex:n.index,size:n.size})}return i}function eK(e,t){return void 0===e?0:"number"==typeof e?e:e[t]??0}let eq=M(([{data:e,firstItemIndex:t,gap:o,sizes:n,totalCount:r},i,{listBoundary:l,topListHeight:s,visibleRange:a},{initialTopMostItemIndex:u,scrolledToInitialItem:c},{topListHeight:h},m,{didMount:f},{recalcInProgress:v}])=>{let x=E([]),I=E(0),w=B(),y=E(0);g(i.topItemsIndexes,x);let b=k(H(P(f,v,F(a,ea),F(r),F(n),F(u),c,F(x),F(t),F(o),F(y),e),S(([e,t,,o,,,,,,,,n])=>{let r=void 0!==n&&n.length!==o;return e&&!t&&!r}),C(([,,[e,t],o,n,r,i,l,s,a,u,d])=>{var c;let{offsetTree:h,sizeTree:m}=n,f=p(I);if(0===o)return{...eG,totalCount:o};if(0===e&&0===t)return 0===f?{...eG,totalCount:o}:eN(f,r,n,s,a,d||[]);if(Y(m))return f>0?null:e_(function(e,t,o){if(eh(t)){let n=eg(e,t);return[{index:X(t.groupOffsetTree,n)[0],offset:0,size:0},{data:o?.[0],index:n,offset:0,size:0}]}return[{data:o?.[0],index:e,offset:0,size:0}]}(eB(r,o),n,d),[],o,a,n,s);let g=[];if(l.length>0){let e=l[0],t=l[l.length-1],o=0;for(let n of Q(m,e,t)){let r=n.value,i=Math.max(n.start,e),l=Math.min(n.end,t);for(let e=i;e<=l;e++)g.push({data:d?.[e],index:e,offset:o,size:r}),o+=r}}if(!i)return e_([],g,o,a,n,s);let v=l.length>0?l[l.length-1]+1:0,x=function(e,t,o,n=0){let r,i;return n>0&&(t=Math.max(t,e[ed(e,n,em)].offset)),U((r=ed(e,t,ef),i=ed(e,o,ef,r),e.slice(r,i+1)),eS)}(h,e,t,v);if(0===x.length)return null;let T=o-1,S=((o=>{for(let n of x){let r=n.value,i=r.offset,l=n.start,s=r.size;if(r.offset<e){let t=(l+=Math.floor((e-r.offset+a)/(s+a)))-n.start;i+=t*s+t*a}l<v&&(i+=(v-l)*s,l=v);let u=Math.min(n.end,T);for(let e=l;e<=u&&!(i>=t);e++)o.push({data:d?.[e],index:e,offset:i,size:s}),i+=s+a}})(c=[]),c),C=eK(u,"top"),w=eK(u,ej);if(S.length>0&&(C>0||w>0)){let e=S[0],t=S[S.length-1];if(C>0&&e.index>v){let t=Math.min(C,e.index-v),o=[],n=e.offset;for(let r=e.index-1;r>=e.index-t;r--){let t=Q(m,r,r)[0]?.value??e.size;n-=t+a,o.unshift({data:d?.[r],index:r,offset:n,size:t})}S.unshift(...o)}if(w>0&&t.index<T){let e=Math.min(w,T-t.index),o=t.offset+t.size+a;for(let n=t.index+1;n<=t.index+e;n++){let e=Q(m,n,n)[0]?.value??t.size;S.push({data:d?.[n],index:n,offset:o,size:e}),o+=e+a}}}return e_(S,g,o,a,n,s)}),S(e=>null!==e),T()),eG);g(H(e,S(d),C(e=>e?.length)),r),g(H(b,C(e=>e.topListHeight)),h),g(h,s),g(H(b,C(e=>[e.top,e.bottom])),l),g(H(b,C(e=>e.items)),w);let M=L(H(b,S(({items:e})=>e.length>0),R(r,e),S(([{items:e},t])=>e[e.length-1].originalIndex===t-1),C(([,e,t])=>[e-1,t]),T(ea),C(([e])=>e))),A=L(H(b,z(200),S(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),C(({items:e})=>e[0].index),T())),j=L(H(b,S(({items:e})=>e.length>0),C(({items:e})=>{let t=0,o=e.length-1;for(;"group"===e[t].type&&t<o;)t++;for(;"group"===e[o].type&&o>t;)o--;return{endIndex:e[o].index,startIndex:e[t].index}}),T(es)));return{endReached:M,initialItemCount:I,itemsRendered:w,listState:b,minOverscanItemCount:y,rangeChanged:j,startReached:A,topItemsIndexes:x,...m}},m(ew,ey,eD,eL,eE,eF,eb,eu),{singleton:!0}),eU=M(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:o,headerHeight:n},{listState:r}])=>{let i=B(),l=k(H(P(o,e,n,t,r),C(([e,t,o,n,r])=>e+t+o+n+r.offsetBottom+r.bottom)),0);return g(F(l),i),{totalListHeight:l,totalListHeightChanged:i}},m(K,eq),{singleton:!0}),eY=M(([{viewportHeight:e},{totalListHeight:t}])=>{let o=E(!1),n=k(H(P(o,e,t),S(([e])=>e),C(([,e,t])=>Math.max(0,e-t)),z(0),T()),0);return{alignToBottom:o,paddingTopAddition:n}},m(K,eU),{singleton:!0}),eZ=M(()=>({context:E(null)})),eX=({itemBottom:e,itemTop:t,locationParams:{align:o,behavior:n,...r},viewportBottom:i,viewportTop:l})=>t<l?{...r,align:o??"start",...void 0!==n?{behavior:n}:{}}:e>i?{...r,align:o??"end",...void 0!==n?{behavior:n}:{}}:null,eJ=M(([{gap:e,sizes:t,totalCount:o},{fixedFooterHeight:n,fixedHeaderHeight:r,headerHeight:i,scrollingInProgress:l,scrollTop:s,viewportHeight:a},{scrollToIndex:u}])=>{let d=B();return g(H(d,R(t,a,o,i,r,n,s),R(e),C(([[e,t,o,n,r,i,s,a],u])=>{let{calculateViewLocation:d=eX,done:c,...h}=e,m=ev(e,t,n-1),f=ep(m,t.offsetTree,u)+r+i,g=d({itemBottom:f+X(t.sizeTree,m)[1],itemTop:f,locationParams:h,viewportBottom:a+o-s,viewportTop:a+i});return null!==g?c&&v(H(l,S(e=>!e),b(p(l)?1:2)),c):c?.(),g}),S(e=>null!==e)),u),{scrollIntoView:d}},m(ew,K,eE,eq,V),{singleton:!0});function eQ(e){return!1!==e&&("smooth"===e?"smooth":"auto")}let e0=M(([{listRefresh:e,totalCount:t,fixedItemSize:o,data:n},{atBottomState:r,isAtBottom:i},{scrollToIndex:l},{scrolledToInitialItem:s},{didMount:a,propsReady:u},{log:d},{scrollingInProgress:c},{context:h},{scrollIntoView:m}])=>{let f=E(!1),x=B(),I=null;function T(e){l(0,{align:"end",behavior:e,index:"LAST"})}function w(e){setTimeout(v(r,t=>{e&&!t.atBottom&&"SIZE_INCREASED"===t.notAtBottomBecause&&null===I&&(p(d)("scrolling to bottom due to increased size",{},0),T("auto"))}),100)}H(P(H(F(t),b(1)),a),R(F(f),i,s,c),C(([[e,t],o,n,r,i])=>{let l,s=t&&r,a="auto";return s&&(l=n||i,a="function"==typeof o?eQ(o(l)):l&&eQ(o),s=s&&!1!==a),{followOutputBehavior:a,shouldFollow:s,totalCount:e}}),S(({shouldFollow:e})=>e))(1,({followOutputBehavior:t,totalCount:n})=>{null!==I&&(I(),I=null),void 0!==p(o)?requestAnimationFrame(()=>{p(d)("following output to ",{totalCount:n},0),T(t)}):I=v(e,()=>{p(d)("following output to ",{totalCount:n},0),T(t),I=null})}),H(P(F(f),t,u),S(([e,,t])=>!1!==e&&t),y(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),S(({refreshed:e})=>e),R(f,t))(1,([,e])=>{p(s)&&w(!1!==e)}),x(1,()=>{w(!1!==p(f))}),P(F(f),r)(1,([e,t])=>{!1===e||t.atBottom||"VIEWPORT_HEIGHT_DECREASING"!==t.notAtBottomBecause||T("auto")});let k=E(null),L=B();return g(j(H(F(n),C(e=>e?.length??0)),H(F(t))),L),H(P(H(L,b(1)),a),R(F(k),s,c,h),C(([[e,t],o,n,r,i])=>t&&n&&o?.({context:i,totalCount:e,scrollingInProgress:r})),S(e=>!!e),z(0))(1,t=>{null!==I&&(I(),I=null),void 0!==p(o)?requestAnimationFrame(()=>{p(d)("scrolling into view",{}),m(0,t)}):I=v(e,()=>{p(d)("scrolling into view",{}),m(0,t),I=null})}),{autoscrollToBottom:x,followOutput:f,scrollIntoViewOnChange:k}},m(ew,eF,eE,eL,eb,V,K,eZ,eJ)),e1=M(([{data:e,firstItemIndex:t,gap:o,sizes:n},{initialTopMostItemIndex:r},{initialItemCount:i,listState:l},{didMount:s}])=>(g(H(s,R(i),S(([,e])=>0!==e),R(r,n,t,o,e),C(([[,e],t,o,n,r,i=[]])=>eN(e,t,o,n,r,i))),l),{}),m(ew,eL,eq,eb),{singleton:!0}),e2=M(([{didMount:e},{scrollTo:t},{listState:o}])=>{let n=E(0);return H(e,R(n),S(([,e])=>0!==e),C(([,e])=>({top:e})))(1,e=>{v(H(o,b(1),S(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{t(0,e)})})}),{initialScrollTop:n}},m(eb,K,eq),{singleton:!0}),e5=M(([{scrollVelocity:e}])=>{let t=E(!1),o=B(),n=E(!1);return g(H(e,R(n,t,o),S(([e,t])=>!1!==t&&void 0!==t),C(([e,t,o,n])=>{let{enter:r,exit:i}=t;if(o){if(i(e,n))return!1}else if(r(e,n))return!0;return o}),T()),t),H(P(t,e,o),R(n))(1,([[e,t,o],n])=>{e&&!1!==n&&void 0!==n&&n.change&&n.change(t,o)}),{isSeeking:t,scrollSeekConfiguration:n,scrollSeekRangeChanged:o,scrollVelocity:e}},m(eF),{singleton:!0}),e4=M(([{scrollContainerState:e,scrollTo:t}])=>{let o=B(),n=B(),r=B(),i=E(!1),l=E(void 0);return g(H(P(o,n),C(([{scrollTop:e,viewportHeight:t},{offsetTop:o,listHeight:n}])=>({scrollHeight:n,scrollTop:Math.max(0,e-o),viewportHeight:t}))),e),g(H(t,R(n),C(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),r),{customScrollParent:l,useWindowScroll:i,windowScrollContainerState:o,windowScrollTo:r,windowViewportRect:n}},m(K)),e9=M(([{sizeRanges:e,sizes:t},{headerHeight:o,scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:l,windowScrollContainerState:s,windowViewportRect:a}])=>{let u=B(),c=E(void 0),h=E(null),m=E(null);return g(s,h),g(a,m),H(u,R(t,n,l,h,m,o))(1,([e,t,o,n,r,i,l])=>{let s=ee(t.sizeTree).map(({k:e,v:t},o,n)=>{let r=n[o+1];return{endIndex:void 0!==r?r.k-1:1/0,size:t,startIndex:e}});n&&null!==r&&null!==i&&(o=r.scrollTop-i.offsetTop),e({ranges:s,scrollTop:o-=l})}),g(H(c,S(d),C(e3)),r),g(H(i,R(c),S(([,e])=>void 0!==e),T(),C(([,e])=>e.ranges)),e),{getState:u,restoreStateFrom:c}},m(ew,K,eL,eb,e4));function e3(e){return{align:"start",index:0,offset:e.scrollTop}}let e7=M(([{topItemsIndexes:e}])=>{let t=E(0);return g(H(t,S(e=>e>=0),C(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},m(eq));function e8(e){let t=!1,o;return()=>(t||(t=!0,o=e()),o)}let e6=e8(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),te=M(([{deviation:e,scrollBy:t,scrollingInProgress:o,scrollTop:n},{isAtBottom:r,isScrolling:i,lastJumpDueToItemResize:l,scrollDirection:s},{listState:a},{beforeUnshiftWith:u,gap:d,shiftWithOffset:c,sizes:h},{log:m},{recalcInProgress:f}])=>{let p=L(H(a,R(l),y(([,e,t,o],[{bottom:n,items:r,offsetBottom:i,totalCount:l},s])=>{let a=n+i,u=0;return t===l&&e.length>0&&r.length>0&&(0===r[0].originalIndex&&0===e[0].originalIndex||0!=(u=a-o)&&(u+=s)),[u,r,l,a]},[0,[],0,0]),S(([e])=>0!==e),R(n,s,o,r,m,f),S(([,e,t,o,,,n])=>!n&&!o&&0!==e&&"up"===t),C(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},0),e))));function v(o){o>0?(t(0,{behavior:"auto",top:-o}),e(0,0)):(e(0,0),t(0,{behavior:"auto",top:-o}))}return H(p,R(e,i))(1,([t,o,n])=>{n&&e6()?e(0,o-t):v(-t)}),H(P(k(i,!1),e,f),S(([e,t,o])=>!e&&!o&&0!==t),C(([e,t])=>t),z(1))(1,v),g(H(c,C(e=>({top:-e}))),t),H(u,R(h,d),C(([e,{groupIndices:t,lastSize:o,sizeTree:n},r])=>{if(0===t.length)return e*(o+r);let i=0,l=Z(n,0),s=0,a=0;for(;s<e;){s++,i+=l;let n=t.length===a+1?1/0:t[a+1]-t[a]-1;s+n>e&&(i-=l,n=e-s+1),s+=n,i+=n*(o+r),a++}return i}))(1,o=>{e(0,o),requestAnimationFrame(()=>{t(0,{top:o}),requestAnimationFrame(()=>{e(0,0),f(0,!1)})})}),{deviation:e}},m(K,eF,eq,ew,V,eu)),tt=M(([e,t,o,n,r,i,l,s,a,u,d])=>({...e,...t,...o,...n,...r,...i,...l,...s,...a,...u,...d}),m(eD,e1,eb,e5,eU,e2,eY,e4,eJ,V,eZ)),to=M(([{data:e,defaultItemSize:t,firstItemIndex:o,fixedItemSize:n,fixedGroupSize:r,gap:i,groupIndices:l,heightEstimates:s,itemSize:a,sizeRanges:u,sizes:d,statefulTotalCount:c,totalCount:h,trackItemSizes:m},{initialItemFinalLocationReached:f,initialTopMostItemIndex:p,scrolledToInitialItem:v},x,I,T,S,{scrollToIndex:w},y,{topItemCount:b},{groupCounts:z},R])=>{let{listState:E,minOverscanItemCount:k,topItemsIndexes:B,rangeChanged:L,...M}=S;return g(L,R.scrollSeekRangeChanged),g(H(R.windowViewportRect,C(e=>e.visibleHeight)),x.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:o,fixedItemHeight:n,fixedGroupHeight:r,gap:i,groupCounts:z,heightEstimates:s,initialItemFinalLocationReached:f,initialTopMostItemIndex:p,scrolledToInitialItem:v,sizeRanges:u,topItemCount:b,topItemsIndexes:B,totalCount:h,...T,groupIndices:l,itemSize:a,listState:E,minOverscanItemCount:k,scrollToIndex:w,statefulTotalCount:c,trackItemSizes:m,rangeChanged:L,...M,...R,...x,sizes:d,...I}},m(ew,eL,K,e9,e0,eq,eE,te,e7,ey,tt)),tn="u">typeof document?i().useLayoutEffect:i().useEffect;function tr(e,t,o){let r=Object.keys(t.required||{}),l=Object.keys(t.optional||{}),s=Object.keys(t.methods||{}),a=Object.keys(t.events||{}),u=i().createContext({});function d(e,o){for(let n of(void 0!==e.propsReady&&(0,e.propsReady)(0,!1),r))(0,e[t.required[n]])(0,o[n]);for(let n of l)n in o&&(0,e[t.optional[n]])(0,o[n]);void 0!==e.propsReady&&(0,e.propsReady)(0,!0)}function h(e){return a.reduce((o,n)=>{var r;let i,l,s;return o[n]=(r=e[t.events[n]],s=()=>i?.(),function(e,t){switch(e){case 1:return t?l===t?void 0:(s(),l=t,i=r(1,t)):(s(),c);case 2:s(),l=null;return}}),o},{})}return{Component:i().forwardRef(function(c,m){var p;let{children:g,...v}=c,[x]=i().useState(()=>{var t;let o,n;return o=new Map,d(t=(n=({constructor:e,dependencies:t,id:r,singleton:i})=>{if(i&&o.has(r))return o.get(r);let l=e(t.map(e=>n(e)));return i&&o.set(r,l),l})(e),v),t}),[I]=i().useState(()=>h(x));return tn(()=>{for(let e of a)e in v&&(0,I[e])(1,v[e]);return()=>{Object.values(I).map(f)}},[v,I,x]),tn(()=>{d(x,v)}),i().useImperativeHandle(m,(p=s.reduce((e,o)=>(e[o]=e=>{(0,x[t.methods[o]])(0,e)},e),{}),()=>p)),(0,n.jsx)(u.Provider,{value:x,children:void 0!==o?(0,n.jsx)(o,{...function(e,t){let o={},n={},r=0,i=e.length;for(;r<i;)n[e[r]]=1,r+=1;for(let e in t)Object.hasOwn(n,e)||(o[e]=t[e]);return o}([...r,...l,...a],v),children:g}):g})}),useEmitter:(e,t)=>{let o=i().useContext(u)[e];tn(()=>o(1,t),[t,o])},useEmitterValue:parseInt(i().version)>=18?e=>{let t=i().useContext(u)[e],o=i().useCallback(e=>t(1,e),[t]);return i().useSyncExternalStore(o,()=>p(t),()=>p(t))}:e=>{let t=i().useContext(u)[e],[o,n]=i().useState(()=>p(t));return tn(()=>t(1,e=>{e!==o&&n(()=>e)}),[t,o]),o},usePublisher:e=>{let t=i().useContext(u);return i().useCallback(o=>{(0,t[e])(0,o)},[t,e])}}}let ti=i().createContext(void 0),tl=i().createContext(void 0),ts="-webkit-sticky",ta="sticky",tu=e8(()=>{if(typeof document>"u")return ta;let e=document.createElement("div");return e.style.position=ts,e.style.position===ts?ts:ta}),td="u">typeof document?i().useLayoutEffect:i().useEffect;function tc(e){return"self"in e}function th(e,t,o,n=c,r,l){let a=i().useRef(null),u=i().useRef(null),d=i().useRef(null),h=i().useCallback(o=>{let n,r,i,a=o.target;if("body"in a||tc(a)){let e=tc(a)?a:a.defaultView;i=!0===l?e.scrollX:e.scrollY,n=!0===l?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,r=!0===l?e.innerWidth:e.innerHeight}else i=!0===l?a.scrollLeft:a.scrollTop,n=!0===l?a.scrollWidth:a.scrollHeight,r=!0===l?a.offsetWidth:a.offsetHeight;let c=()=>{e({scrollHeight:n,scrollTop:Math.max(i,0),viewportHeight:r})};!0===o.suppressFlushSync?c():s().flushSync(c),null!==u.current&&(i===u.current||i<=0||i===n-r)&&(u.current=null,t(!0),d.current&&(clearTimeout(d.current),d.current=null))},[e,t,l]);return i().useEffect(()=>{let e=r||a.current;return n(r||a.current),h({suppressFlushSync:!0,target:e}),e.addEventListener("scroll",h,{passive:!0}),()=>{n(null),e.removeEventListener("scroll",h)}},[a,h,o,n,r]),{scrollByCallback:function(e){!0===l&&(e={...void 0!==e.behavior?{behavior:e.behavior}:{},...void 0!==e.top?{left:e.top}:{}}),a.current.scrollBy(e)},scrollerRef:a,scrollToCallback:function(o){let n,r,i,s=a.current;if(!s||(!0===l?"offsetWidth"in s&&0===s.offsetWidth:"offsetHeight"in s&&0===s.offsetHeight))return;let c="smooth"===o.behavior;tc(s)?(r=Math.max(ec(s.document.documentElement,!0===l?"width":"height"),!0===l?s.document.documentElement.scrollWidth:s.document.documentElement.scrollHeight),n=!0===l?s.innerWidth:s.innerHeight,i=!0===l?window.scrollX:window.scrollY):(r=s[!0===l?"scrollWidth":"scrollHeight"],n=ec(s,!0===l?"width":"height"),i=s[!0===l?"scrollLeft":"scrollTop"]);let h=r-n;if(o.top=Math.ceil(Math.max(Math.min(h,o.top),0)),eM(n,r)||o.top===i){e({scrollHeight:r,scrollTop:i,viewportHeight:n}),c&&t(!0);return}c?(u.current=o.top,d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{d.current=null,u.current=null,t(!0)},1e3)):u.current=null,!0===l&&(o={...void 0!==o.behavior?{behavior:o.behavior}:{},left:o.top}),s.scrollTo(o)}}}function tm(e){return e}let tf=M(()=>{let e=E(e=>`Item ${e}`),t=E(e=>`Group ${e}`),o=E({}),n=E(tm),r=E("div"),i=E(c),l=(e,t=null)=>k(H(o,C(t=>t[e]),T()),t);return{components:o,computeItemKey:n,EmptyPlaceholder:l("EmptyPlaceholder"),FooterComponent:l("Footer"),GroupComponent:l("Group","div"),groupContent:t,HeaderComponent:l("Header"),HeaderFooterTag:r,ItemComponent:l("Item","div"),itemContent:e,ListComponent:l("List","div"),ScrollerComponent:l("Scroller","div"),scrollerRef:i,ScrollSeekPlaceholder:l("ScrollSeekPlaceholder"),TopItemListComponent:l("TopItemList")}}),tp=M(([e,t])=>({...e,...t}),m(to,tf)),tg=({height:e})=>(0,n.jsx)("div",{style:{height:e}}),tv={overflowAnchor:"none",position:tu(),zIndex:1},tx={overflowAnchor:"none"},tI={...tx,display:"inline-block",height:"100%"},tT=i().memo(function({showTopList:e=!1}){let t=tj("listState"),o=tO("sizeRanges"),l=tj("useWindowScroll"),s=tj("customScrollParent"),a=tO("windowScrollContainerState"),u=tO("scrollContainerState"),d=tj("itemContent"),h=tj("context"),m=tj("groupContent"),f=tj("trackItemSizes"),p=tj("itemSize"),g=tj("log"),v=tO("gap"),x=tj("horizontalDirection"),{callbackRef:I}=_(o,p,f,e?c:s||l?a:u,g,v,s,x,tj("skipAnimationFrameInResizeObserver")),[T,S]=i().useState(0);tF("deviation",e=>{T!==e&&S(e)});let C=tj("EmptyPlaceholder"),w=tj("ScrollSeekPlaceholder")??tg,H=tj("ListComponent"),y=tj("ItemComponent"),b=tj("GroupComponent"),z=tj("computeItemKey"),R=tj("isSeeking"),E=tj("groupIndices").length>0,k=tj("alignToBottom"),B=tj("initialItemFinalLocationReached"),L=e?{}:{boxSizing:"border-box",...x?{display:"inline-block",height:"100%",marginLeft:0!==T?T:k?"auto":0,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:"nowrap"}:{marginTop:0!==T?T:k?"auto":0,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...B?{}:{visibility:"hidden"}};return e||0!==t.totalCount||null==C?(0,n.jsx)(H,{...tb(H,h),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:I,style:L,children:(e?t.topItems:t.items).map(e=>{let o=e.originalIndex,n=z(o+t.firstItemIndex,e.data,h);return R?(0,r.createElement)(w,{...tb(w,h),height:e.size,index:e.index,key:n,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?(0,r.createElement)(b,{...tb(b,h),"data-index":o,"data-item-index":e.index,"data-known-size":e.size,key:n,style:tv},m(e.index,h)):(0,r.createElement)(y,{...tb(y,h),...tz(y,e.data),"data-index":o,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:n,style:x?tI:tx},E?d(e.index,e.groupIndex,e.data,h):d(e.index,e.data,h))})}):(0,n.jsx)(C,{...tb(C,h)})}),tS={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},tC={outline:"none",overflowX:"auto",position:"relative"},tw=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:void 0}),tH=(e,t,o=0)=>({...tw(e),position:t?"relative":"absolute",top:t?-o:0}),ty={position:tu(),top:0,width:"100%",zIndex:1};function tb(e,t){if("string"!=typeof e)return{context:t}}function tz(e,t){return{item:"string"==typeof e?void 0:t}}let tR=i().memo(function(){let e=tj("HeaderComponent"),t=tO("headerHeight"),o=tj("HeaderFooterTag"),r=D(i().useMemo(()=>e=>{t(ec(e,"height"))},[t]),!0,tj("skipAnimationFrameInResizeObserver")),l=tj("context");return null!=e?(0,n.jsx)(o,{ref:r,children:(0,n.jsx)(e,{...tb(e,l)})}):null}),tE=i().memo(function(){let e=tj("FooterComponent"),t=tO("footerHeight"),o=tj("HeaderFooterTag"),r=D(i().useMemo(()=>e=>{t(ec(e,"height"))},[t]),!0,tj("skipAnimationFrameInResizeObserver")),l=tj("context");return null!=e?(0,n.jsx)(o,{ref:r,children:(0,n.jsx)(e,{...tb(e,l)})}):null});function tk({useEmitter:e,useEmitterValue:t,usePublisher:o}){return i().memo(function({children:r,style:i,context:l,...s}){let a=o("scrollContainerState"),u=t("ScrollerComponent"),d=o("smoothScrollTargetReached"),c=t("scrollerRef"),h=t("horizontalDirection")||!1,{scrollByCallback:m,scrollerRef:f,scrollToCallback:p}=th(a,d,u,c,void 0,h);return e("scrollTo",p),e("scrollBy",m),(0,n.jsx)(u,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:f,style:{...h?tC:tS,...i},tabIndex:0,...s,...tb(u,l),children:r})})}function tB({useEmitter:e,useEmitterValue:t,usePublisher:o}){return i().memo(function({children:r,style:l,context:s,...a}){let u=o("windowScrollContainerState"),d=t("ScrollerComponent"),c=o("smoothScrollTargetReached"),h=t("totalListHeight"),m=t("deviation"),f=t("customScrollParent"),p=i().useRef(null),{scrollByCallback:g,scrollerRef:v,scrollToCallback:x}=th(u,c,d,t("scrollerRef"),f);return td(()=>(v.current=f||p.current?.ownerDocument.defaultView,()=>{v.current=null}),[v,f]),e("windowScrollTo",x),e("scrollBy",g),(0,n.jsx)(d,{ref:p,"data-virtuoso-scroller":!0,style:{position:"relative",...l,...0!==h?{height:h+m}:void 0},...a,...tb(d,s),children:r})})}let tL=({children:e})=>{let t=i().useContext(ti),o=tO("viewportHeight"),r=tO("fixedItemHeight"),l=tj("alignToBottom"),s=tj("horizontalDirection"),a=D(i().useMemo(()=>u(o,e=>ec(e,s?"width":"height")),[o,s]),!0,tj("skipAnimationFrameInResizeObserver"));return i().useEffect(()=>{t&&(o(t.viewportHeight),r(t.itemHeight))},[t,o,r]),(0,n.jsx)("div",{"data-viewport-type":"element",ref:a,style:tw(l),children:e})},tM=({children:e})=>{let t=i().useContext(ti),o=tO("windowViewportRect"),r=tO("fixedItemHeight"),l=tj("customScrollParent"),s=tj("useWindowScroll"),a=tj("topListHeight"),u=$(o,l,tj("skipAnimationFrameInResizeObserver")),d=tj("alignToBottom");return i().useEffect(()=>{t&&(r(t.itemHeight),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,o,r]),(0,n.jsx)("div",{"data-viewport-type":"window",ref:u,style:tH(d,s,a),children:e})},tA=({children:e})=>{let t=tj("TopItemListComponent")??"div",o=tj("headerHeight"),r={...ty,marginTop:`${o}px`},i=tj("context");return(0,n.jsx)(t,{style:r,...tb(t,i),children:e})},{Component:tP,useEmitter:tF,useEmitterValue:tj,usePublisher:tO}=tr(tp,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},i().memo(function(e){let t=tj("useWindowScroll"),o=tj("topItemsIndexes").length>0,r=tj("customScrollParent"),i=tj("context");return(0,n.jsxs)(r||t?tV:tW,{...e,context:i,children:[o&&(0,n.jsx)(tA,{children:(0,n.jsx)(tT,{showTopList:!0})}),(0,n.jsxs)(r||t?tM:tL,{children:[(0,n.jsx)(tR,{}),(0,n.jsx)(tT,{}),(0,n.jsx)(tE,{})]})]})})),tW=tk({useEmitter:tF,useEmitterValue:tj,usePublisher:tO}),tV=tB({useEmitter:tF,useEmitterValue:tj,usePublisher:tO}),tD=tP,tG=M(()=>{let e=E(e=>(0,n.jsxs)("td",{children:["Item $",e]})),t=E(null),o=E(e=>(0,n.jsxs)("td",{colSpan:1e3,children:["Group ",e]})),r=E(null),i=E(null),l=E({}),s=E(tm),a=E(c),u=(e,t=null)=>k(H(l,C(t=>t[e]),T()),t);return{components:l,computeItemKey:s,context:t,EmptyPlaceholder:u("EmptyPlaceholder"),FillerRow:u("FillerRow"),fixedFooterContent:i,fixedHeaderContent:r,itemContent:e,groupContent:o,ScrollerComponent:u("Scroller","div"),scrollerRef:a,ScrollSeekPlaceholder:u("ScrollSeekPlaceholder"),TableBodyComponent:u("TableBody","tbody"),TableComponent:u("Table","table"),TableFooterComponent:u("TableFoot","tfoot"),TableHeadComponent:u("TableHead","thead"),TableRowComponent:u("TableRow","tr"),GroupComponent:u("Group","tr")}}),t_=M(([e,t])=>({...e,...t}),m(to,tG)),tN=({height:e})=>(0,n.jsx)("tr",{children:(0,n.jsx)("td",{style:{height:e}})}),t$=({height:e})=>(0,n.jsx)("tr",{children:(0,n.jsx)("td",{style:{border:0,height:e,padding:0}})}),tK={overflowAnchor:"none"},tq={position:tu(),zIndex:2,overflowAnchor:"none"},tU=i().memo(function({showTopList:e=!1}){let t=t0("listState"),o=t0("computeItemKey"),n=t0("firstItemIndex"),i=t0("context"),l=t0("isSeeking"),s=t0("fixedHeaderHeight"),a=t0("groupIndices").length>0,u=t0("itemContent"),d=t0("groupContent"),c=t0("ScrollSeekPlaceholder")??tN,h=t0("GroupComponent"),m=t0("TableRowComponent"),f=(e?t.topItems:[]).reduce((e,t,o)=>(0===o?e.push(t.size):e.push(e[o-1]+t.size),e),[]);return(e?t.topItems:t.items).map(t=>{let p=t.originalIndex,g=o(p+n,t.data,i),v=e?0===p?0:f[p-1]:0;return l?(0,r.createElement)(c,{...tb(c,i),height:t.size,index:t.index,key:g,type:t.type||"item"}):"group"===t.type?(0,r.createElement)(h,{...tb(h,i),"data-index":p,"data-item-index":t.index,"data-known-size":t.size,key:g,style:{...tq,top:s}},d(t.index,i)):(0,r.createElement)(m,{...tb(m,i),...tz(m,t.data),"data-index":p,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:g,style:e?{...tq,top:s+v}:tK},a?u(t.index,t.groupIndex,t.data,i):u(t.index,t.data,i))})}),tY=i().memo(function(){let e=t0("listState"),t=t0("topItemsIndexes").length>0,o=t1("sizeRanges"),r=t0("useWindowScroll"),l=t0("customScrollParent"),s=t1("windowScrollContainerState"),a=t1("scrollContainerState"),u=t0("trackItemSizes"),{callbackRef:d,ref:c}=_(o,t0("itemSize"),u,l||r?s:a,t0("log"),void 0,l,!1,t0("skipAnimationFrameInResizeObserver")),[h,m]=i().useState(0);tQ("deviation",e=>{h!==e&&(c.current.style.marginTop=`${e}px`,m(e))});let f=t0("EmptyPlaceholder"),p=t0("FillerRow")??t$,g=t0("TableBodyComponent"),v=t0("paddingTopAddition"),x=t0("statefulTotalCount"),I=t0("context");if(0===x&&null!=f)return(0,n.jsx)(f,{...tb(f,I)});let T=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),S=e.offsetTop+v+h-T,C=e.offsetBottom,w=S>0?(0,n.jsx)(p,{context:I,height:S},"padding-top"):null,H=C>0?(0,n.jsx)(p,{context:I,height:C},"padding-bottom"):null;return(0,n.jsxs)(g,{"data-testid":"virtuoso-item-list",ref:d,...tb(g,I),children:[w,t&&(0,n.jsx)(tU,{showTopList:!0}),(0,n.jsx)(tU,{}),H]})}),tZ=({children:e})=>{let t=i().useContext(ti),o=t1("viewportHeight"),r=t1("fixedItemHeight"),l=D(i().useMemo(()=>u(o,e=>ec(e,"height")),[o]),!0,t0("skipAnimationFrameInResizeObserver"));return i().useEffect(()=>{t&&(o(t.viewportHeight),r(t.itemHeight))},[t,o,r]),(0,n.jsx)("div",{"data-viewport-type":"element",ref:l,style:tw(!1),children:e})},tX=({children:e})=>{let t=i().useContext(ti),o=t1("windowViewportRect"),r=t1("fixedItemHeight"),l=t0("customScrollParent"),s=t0("useWindowScroll"),a=$(o,l,t0("skipAnimationFrameInResizeObserver"));return i().useEffect(()=>{t&&(r(t.itemHeight),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,o,r]),(0,n.jsx)("div",{"data-viewport-type":"window",ref:a,style:tH(!1,s),children:e})},{Component:tJ,useEmitter:tQ,useEmitterValue:t0,usePublisher:t1}=tr(t_,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},i().memo(function(e){let t=t0("useWindowScroll"),o=t0("customScrollParent"),r=t1("fixedHeaderHeight"),l=t1("fixedFooterHeight"),s=t0("fixedHeaderContent"),a=t0("fixedFooterContent"),d=t0("context"),c=D(i().useMemo(()=>u(r,e=>ec(e,"height")),[r]),!0,t0("skipAnimationFrameInResizeObserver")),h=D(i().useMemo(()=>u(l,e=>ec(e,"height")),[l]),!0,t0("skipAnimationFrameInResizeObserver")),m=o||t?t5:t2,f=o||t?tX:tZ,p=t0("TableComponent"),g=t0("TableHeadComponent"),v=t0("TableFooterComponent"),x=s?(0,n.jsx)(g,{ref:c,style:{position:"sticky",top:0,zIndex:2},...tb(g,d),children:s()},"TableHead"):null,I=a?(0,n.jsx)(v,{ref:h,style:{bottom:0,position:"sticky",zIndex:1},...tb(v,d),children:a()},"TableFoot"):null;return(0,n.jsx)(m,{...e,...tb(m,d),children:(0,n.jsx)(f,{children:(0,n.jsxs)(p,{style:{borderSpacing:0,overflowAnchor:"none"},...tb(p,d),children:[x,(0,n.jsx)(tY,{},"TableBody"),I]})})})})),t2=tk({useEmitter:tQ,useEmitterValue:t0,usePublisher:t1}),t5=tB({useEmitter:tQ,useEmitterValue:t0,usePublisher:t1}),t4=tJ,t9={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},t3={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:t7,floor:t8,max:t6,min:oe,round:ot}=Math;function oo(e,t,o){return Array.from({length:t-e+1}).map((t,n)=>({data:null===o?null:o[n+e],index:n+e}))}function on(e,t){return void 0!==e&&e.width===t.width&&e.height===t.height}function or(e,t){return void 0!==e&&e.column===t.column&&e.row===t.row}let oi=M(([{increaseViewportBy:e,listBoundary:t,overscan:o,visibleRange:n},{footerHeight:r,headerHeight:i,scrollBy:l,scrollContainerState:s,scrollTo:a,scrollTop:u,smoothScrollTargetReached:d,viewportHeight:c},h,m,{didMount:f,propsReady:p},{customScrollParent:x,useWindowScroll:I,windowScrollContainerState:y,windowScrollTo:M,windowViewportRect:A},j])=>{let O=E(0),W=E(0),V=E(t9),D=E({height:0,width:0}),G=E({height:0,width:0}),_=B(),N=B(),$=E(0),K=E(null),q=E({column:0,row:0}),U=B(),Y=B(),Z=E(!1),X=E(0),J=E(!0),Q=E(!1),ee=E(!1);H(f,R(X),S(([e,t])=>0!==t))(1,()=>{J(0,!1)}),H(P(f,J,G,D,X,Q),S(([e,t,o,n,,r])=>e&&!t&&0!==o.height&&0!==n.height&&!r))(1,([,,,,e])=>{Q(0,!0),ek(1,()=>{_(0,e)}),v(H(u),()=>{t(0,[0,0]),J(0,!0)})}),g(H(Y,S(e=>null!=e&&e.scrollTop>0),w(0)),W),H(f,R(Y),S(([,e])=>null!=e))(1,([,e])=>{e&&(D(0,e.viewport),G(0,e.item),q(0,e.gap),e.scrollTop>0&&(Z(0,!0),v(H(u,b(1)),e=>{Z(0,!1)}),a(0,{top:e.scrollTop})))}),g(H(D,C(({height:e})=>e)),c),g(H(P(F(D,on),F(G,on),F(q,(e,t)=>void 0!==e&&e.column===t.column&&e.row===t.row),F(u)),C(([e,t,o,n])=>({gap:o,item:t,scrollTop:n,viewport:e}))),U),g(H(P(F(O),n,F(q,or),F(G,on),F(D,on),F(K),F(W),F(Z),F(J),F(X)),S(([,,,,,,,e])=>!e),C(([e,[t,o],n,r,i,l,s,,a,u])=>{let d,c,{column:h,row:m}=n,{height:f,width:p}=r,{width:g}=i;if(0===s&&(0===e||0===g))return t9;if(0===p){var v;let t=eB(u,e),o=t+Math.max(s-1,0);return v=oo(t,o,l),{...t3,items:v}}let x=ol(g,p,h);a?0===t&&0===o&&s>0?(d=0,c=s-1):(d=x*t8((t+m)/(f+m)),c=oe(e-1,t6(c=x*t7((o+m)/(f+m))-1,x-1)),d=oe(c,t6(0,d))):(d=0,c=-1);let I=oo(d,c,l),{bottom:T,top:S}=os(i,n,r,I),C=t7(e/x);return{bottom:T,itemHeight:f,items:I,itemWidth:p,offsetBottom:C*f+(C-1)*m-T,offsetTop:S,top:S}})),V),g(H(K,S(e=>null!==e),C(e=>e.length)),O),g(H(P(D,G,V,q),S(([e,t,{items:o}])=>o.length>0&&0!==t.height&&0!==e.height),C(([e,t,{items:o},n])=>{let{bottom:r,top:i}=os(e,n,t,o);return[i,r]}),T(ea)),t);let et=E(!1);g(H(u,R(et),C(([e,t])=>t||0!==e)),et);let eo=L(H(P(V,O),S(([{items:e}])=>e.length>0),R(et),S(([[e,t],o])=>{let n=e.items[e.items.length-1].index===t-1;return(o||e.bottom>0&&e.itemHeight>0&&0===e.offsetBottom&&e.items.length===t)&&n}),C(([[,e]])=>e-1),T())),en=L(H(F(V),S(({items:e})=>e.length>0&&0===e[0].index),w(0),T())),er=L(H(F(V),R(Z),S(([{items:e},t])=>e.length>0&&!t),C(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),T(es),z(0)));g(er,m.scrollSeekRangeChanged),g(H(_,R(D,G,O,q),C(([e,t,o,n,r])=>{let i=eR(e),{align:l,behavior:s,offset:a}=i,u=i.index;"LAST"===u&&(u=n-1);let d=oa(t,r,o,u=t6(0,u,oe(n-1,u)));return"end"===l?d=ot(d-t.height+o.height):"center"===l&&(d=ot(d-t.height/2+o.height/2)),void 0!==a&&0!==a&&(d+=a),{behavior:s,top:d}})),a);let ei=k(H(V,C(e=>e.offsetBottom+e.bottom)),0);return g(H(A,C(e=>({height:e.visibleHeight,width:e.visibleWidth}))),D),{customScrollParent:x,data:K,deviation:$,footerHeight:r,gap:q,headerHeight:i,increaseViewportBy:e,initialItemCount:W,itemDimensions:G,overscan:o,restoreStateFrom:Y,scrollBy:l,scrollContainerState:s,scrollHeight:N,scrollTo:a,scrollToIndex:_,scrollTop:u,smoothScrollTargetReached:d,totalCount:O,useWindowScroll:I,viewportDimensions:D,windowScrollContainerState:y,windowScrollTo:M,windowViewportRect:A,...m,gridState:V,horizontalDirection:ee,initialTopMostItemIndex:X,totalListHeight:ei,...h,endReached:eo,propsReady:p,rangeChanged:er,startReached:en,stateChanged:U,stateRestoreInProgress:Z,...j}},m(eD,K,eF,e5,eb,e4,V));function ol(e,t,o){return t6(1,t8((e+o)/(t8(t)+o)))}function os(e,t,o,n){let{height:r}=o;if(void 0===r||0===n.length)return{bottom:0,top:0};let i=oa(e,t,o,n[0].index);return{bottom:oa(e,t,o,n[n.length-1].index)+r,top:i}}function oa(e,t,o,n){let r=t8(n/ol(e.width,o.width,t.column)),i=r*o.height+t6(0,r-1)*t.row;return i>0?i+t.row:i}let ou=M(()=>{let e=E(e=>`Item ${e}`),t=E({}),o=E(null),n=E("virtuoso-grid-item"),r=E("virtuoso-grid-list"),i=E(tm),l=E("div"),s=E(c),a=(e,o=null)=>k(H(t,C(t=>t[e]),T()),o),u=E(!1),d=E(!1);return g(F(d),u),{components:t,computeItemKey:i,context:o,FooterComponent:a("Footer"),HeaderComponent:a("Header"),headerFooterTag:l,itemClassName:n,ItemComponent:a("Item","div"),itemContent:e,listClassName:r,ListComponent:a("List","div"),readyStateChanged:u,reportReadyState:d,ScrollerComponent:a("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:a("ScrollSeekPlaceholder","div")}}),od=M(([e,t])=>({...e,...t}),m(oi,ou)),oc=i().memo(function(){let e=ov("gridState"),t=ov("listClassName"),o=ov("itemClassName"),l=ov("itemContent"),s=ov("computeItemKey"),a=ov("isSeeking"),u=ox("scrollHeight"),d=ov("ItemComponent"),c=ov("ListComponent"),h=ov("ScrollSeekPlaceholder"),m=ov("context"),f=ox("itemDimensions"),p=ox("gap"),g=ov("log"),v=ov("stateRestoreInProgress"),x=ox("reportReadyState"),I=D(i().useMemo(()=>e=>{u(e.parentElement.parentElement.scrollHeight);let t=e.firstChild;if(null!==t){let{height:e,width:o}=t.getBoundingClientRect();f({height:e,width:o})}p({column:oS("column-gap",getComputedStyle(e).columnGap,g),row:oS("row-gap",getComputedStyle(e).rowGap,g)})},[u,f,p,g]),!0,!1);return td(()=>{e.itemHeight>0&&e.itemWidth>0&&x(!0)},[e]),v?null:(0,n.jsx)(c,{className:t,ref:I,...tb(c,m),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{let i=s(t.index,t.data,m);return a?(0,n.jsx)(h,{...tb(h,m),height:e.itemHeight,index:t.index,width:e.itemWidth},i):(0,r.createElement)(d,{...tb(d,m),className:o,"data-index":t.index,key:i},l(t.index,t.data,m))})})}),oh=i().memo(function(){let e=ov("HeaderComponent"),t=ox("headerHeight"),o=ov("headerFooterTag"),r=D(i().useMemo(()=>e=>{t(ec(e,"height"))},[t]),!0,!1),l=ov("context");return null!=e?(0,n.jsx)(o,{ref:r,children:(0,n.jsx)(e,{...tb(e,l)})}):null}),om=i().memo(function(){let e=ov("FooterComponent"),t=ox("footerHeight"),o=ov("headerFooterTag"),r=D(i().useMemo(()=>e=>{t(ec(e,"height"))},[t]),!0,!1),l=ov("context");return null!=e?(0,n.jsx)(o,{ref:r,children:(0,n.jsx)(e,{...tb(e,l)})}):null}),of=({children:e})=>{let t=i().useContext(tl),o=ox("itemDimensions"),r=ox("viewportDimensions"),l=D(i().useMemo(()=>e=>{r(e.getBoundingClientRect())},[r]),!0,!1);return i().useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),o({height:t.itemHeight,width:t.itemWidth}))},[t,r,o]),(0,n.jsx)("div",{ref:l,style:tw(!1),children:e})},op=({children:e})=>{let t=i().useContext(tl),o=ox("windowViewportRect"),r=ox("itemDimensions"),l=ov("customScrollParent"),s=ov("useWindowScroll"),a=$(o,l,!1);return i().useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,o,r]),(0,n.jsx)("div",{ref:a,style:tH(!1,s),children:e})},{useEmitter:og,useEmitterValue:ov,usePublisher:ox}=tr(od,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},i().memo(function({...e}){let t=ov("useWindowScroll"),o=ov("customScrollParent"),r=o||t?oT:oI,i=o||t?op:of,l=ov("context");return(0,n.jsx)(r,{...e,...tb(r,l),children:(0,n.jsxs)(i,{children:[(0,n.jsx)(oh,{}),(0,n.jsx)(oc,{}),(0,n.jsx)(om,{})]})})})),oI=tk({useEmitter:og,useEmitterValue:ov,usePublisher:ox}),oT=tB({useEmitter:og,useEmitterValue:ov,usePublisher:ox});function oS(e,t,o){return"normal"!==t&&t?.endsWith("px")!==!0&&o(`${e} was not resolved to pixel value correctly`,t,2),"normal"===t?0:parseInt(t??"0",10)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self["chunk_Prometheus "]=self["chunk_Prometheus "]||[]).push([["2979"],{315(e,t,i){i.d(t,{A:()=>o});var a=i(68335),r=i(77308),n=i(72052);let o=(0,a.A)({createStyledComponent:(0,r.A)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,n.b)({props:e,name:"MuiStack"})})},68335(e,t,i){i.d(t,{A:()=>v});var a=i(70451),r=i(11750),n=i(6121),o=i(46733),s=i(81023),l=i(7939),c=i(51327),h=i(20523),u=i(80787),d=i(85351),p=i(89187),f=i(62540);let O=(0,u.A)(),m=(0,l.A)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function P(e){return(0,c.A)({props:e,name:"MuiStack",defaultTheme:O})}let g=({ownerState:e,theme:t})=>{let i={display:"flex",flexDirection:"column",...(0,d.NI)({theme:t},(0,d.kW)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let a=(0,p.LX)(t),r=Object.keys(t.breakpoints.values).reduce((t,i)=>(("object"==typeof e.spacing&&null!=e.spacing[i]||"object"==typeof e.direction&&null!=e.direction[i])&&(t[i]=!0),t),{}),o=(0,d.kW)({values:e.direction,base:r}),s=(0,d.kW)({values:e.spacing,base:r});"object"==typeof o&&Object.keys(o).forEach((e,t,i)=>{if(!o[e]){let a=t>0?o[i[t-1]]:"column";o[e]=a}}),i=(0,n.A)(i,(0,d.NI)({theme:t},s,(t,i)=>e.useFlexGap?{gap:(0,p._W)(a,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[i?o[i]:e.direction]}`]:(0,p._W)(a,t)}}))}return(0,d.iZ)(t.breakpoints,i)};function v(e={}){let{createStyledComponent:t=m,useThemeProps:i=P,componentName:n="MuiStack"}=e,l=t(g);return a.forwardRef(function(e,t){let c,u=i(e),{component:d="div",direction:p="column",spacing:O=0,divider:m,children:P,className:g,useFlexGap:v=!1,...y}=(0,h.A)(u),b=(0,s.A)({root:["root"]},e=>(0,o.Ay)(n,e),{});return(0,f.jsx)(l,{as:d,ownerState:{direction:p,spacing:O,useFlexGap:v},ref:t,className:(0,r.A)(b.root,g),...y,children:m?(c=a.Children.toArray(P).filter(Boolean)).reduce((e,t,i)=>(e.push(t),i<c.length-1&&e.push(a.cloneElement(m,{key:`separator-${i}`})),e),[]):P})})}},7939(e,t,i){i.d(t,{A:()=>a});let a=(0,i(57867).Ay)()},70320(e,t,i){i.d(t,{A:()=>r});var a=i(52215);function r(e){let{theme:t,name:i,props:r}=e;return t&&t.components&&t.components[i]&&t.components[i].defaultProps?(0,a.A)(t.components[i].defaultProps,r):r}},51327(e,t,i){i.d(t,{A:()=>n});var a=i(70320),r=i(26041);function n({props:e,name:t,defaultTheme:i,themeId:o}){let s=(0,r.A)(i);return o&&(s=s[o]||s),(0,a.A)({theme:s,name:t,props:e})}},74830(e,t,i){var a;t.default=void 0,t.default=(0,((a=i(1448))&&a.__esModule?a:{default:a}).default)("M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z","AlertCircle")},7800(e,t,i){var a;t.default=void 0,t.default=(0,((a=i(1448))&&a.__esModule?a:{default:a}).default)("M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z","Close")},93196(e,t,i){var a;t.default=void 0,t.default=(0,((a=i(1448))&&a.__esModule?a:{default:a}).default)("M3,3H9V7H3V3M15,10H21V14H15V10M15,17H21V21H15V17M13,13H7V18H13V20H7L5,20V9H7V11H13V13Z","FileTree")},98207(e,t,i){i.d(t,{TI:()=>es});var a,r,n,o,s,l,c,h,u=i(782),d=i(31650);let p={inf:177,nan:178,bool:1,ignoring:2,on:3,group_left:4,group_right:5,offset:6},f=(e,t)=>p[e.toLowerCase()]||-1,O={avg:8,atan2:7,bottomk:9,count:10,count_values:11,group:12,max:13,min:14,quantile:15,limitk:16,limit_ratio:17,stddev:18,stdvar:19,sum:20,topk:21,by:22,without:23,and:24,or:25,unless:26,start:27,end:28,smoothed:29,anchored:30,fill:31,fill_left:32,fill_right:33},m=(e,t)=>O[e.toLowerCase()]||-1,P=(0,d.pn)({LineComment:d._A.comment,LabelName:d._A.labelName,StringLiteral:d._A.string,NumberDurationLiteral:d._A.number,NumberDurationLiteralInDurationContext:d._A.number,Identifier:d._A.variableName,"Abs Absent AbsentOverTime Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramAvg HistogramCount HistogramFraction HistogramQuantile HistogramSum DoubleExponentialSmoothing Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Time Timestamp Vector Year":d._A.function(d._A.variableName),"Avg Bottomk Count Count_values Group LimitK LimitRatio Max Min Quantile Stddev Stdvar Sum Topk":d._A.operatorKeyword,"By Without Bool On Ignoring GroupLeft GroupRight Offset Start End Smoothed Anchored":d._A.modifier,"And Unless Or":d._A.logicOperator,"Sub Add Mul Mod Div Atan2 Eql Neq Lte Lss Gte Gtr EqlRegex EqlSingle NeqRegex Pow At":d._A.operator,UnaryOp:d._A.arithmeticOperator,"( )":d._A.paren,"[ ]":d._A.squareBracket,"{ }":d._A.brace,"⚠":d._A.invalid}),g={__proto__:null,absent_over_time:379,absent:381,abs:383,acos:385,acosh:387,asin:389,asinh:391,atan:393,atanh:395,avg_over_time:397,ceil:399,changes:401,clamp:403,clamp_max:405,clamp_min:407,cos:409,cosh:411,count_over_time:413,days_in_month:415,day_of_month:417,day_of_week:419,day_of_year:421,deg:423,delta:425,deriv:427,exp:429,first_over_time:431,floor:433,histogram_count:435,histogram_fraction:437,histogram_quantile:439,histogram_quantiles:441,histogram_stddev:443,histogram_stdvar:445,histogram_sum:447,histogram_avg:449,double_exponential_smoothing:451,hour:453,idelta:455,increase:457,info:459,irate:461,label_replace:463,label_join:465,last_over_time:467,ln:469,log10:471,log2:473,mad_over_time:475,max_over_time:477,min_over_time:479,ts_of_first_over_time:481,ts_of_max_over_time:483,ts_of_min_over_time:485,ts_of_last_over_time:487,minute:489,month:491,pi:493,predict_linear:495,present_over_time:497,quantile_over_time:499,rad:501,rate:503,resets:505,round:507,scalar:509,sgn:511,sin:513,sinh:515,sort:517,sort_desc:519,sort_by_label:521,sort_by_label_desc:523,sqrt:525,stddev_over_time:527,stdvar_over_time:529,sum_over_time:531,tan:533,tanh:535,timestamp:537,time:539,vector:541,year:543},v=u.U1.deserialize({version:14,states:"<zOYQPOOO(WQPOOOOQO'#DR'#DRO(]QPO'#DQOOQO'#D`'#D`O(hQPO'#FrQ/oQQOOOOQO'#Dq'#DqO(cQPO'#DpOYQPO'#FoOYQPO'#FqO1YQSO'#FtO1eQQO'#FsOOQO'#Fs'#FsOOQO'#GX'#GXOOQO'#Dr'#DrOOQO'#Dt'#DtOOQO'#Du'#DuOOQO'#Dv'#DvOOQO'#Dw'#DwOOQO'#Dx'#DxOOQO'#Dy'#DyOOQO'#Dz'#DzOOQO'#D{'#D{OOQO'#D|'#D|OOQO'#D}'#D}OOQO'#EO'#EOOOQO'#EP'#EPOOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETOOQO'#EU'#EUOOQO'#EV'#EVOOQO'#EW'#EWOOQO'#EX'#EXOOQO'#EY'#EYOOQO'#EZ'#EZOOQO'#E['#E[OOQO'#E]'#E]OOQO'#E^'#E^OOQO'#E_'#E_OOQO'#E`'#E`OOQO'#Ea'#EaOOQO'#Eb'#EbOOQO'#Ec'#EcOOQO'#Ed'#EdOOQO'#Ee'#EeOOQO'#Ef'#EfOOQO'#Eg'#EgOOQO'#Eh'#EhOOQO'#Ei'#EiOOQO'#Ej'#EjOOQO'#Ek'#EkOOQO'#El'#ElOOQO'#Em'#EmOOQO'#En'#EnOOQO'#Eo'#EoOOQO'#Ep'#EpOOQO'#Eq'#EqOOQO'#Er'#ErOOQO'#Es'#EsOOQO'#Et'#EtOOQO'#Eu'#EuOOQO'#Ev'#EvOOQO'#Ew'#EwOOQO'#Ex'#ExOOQO'#Ey'#EyOOQO'#Ez'#EzOOQO'#E{'#E{OOQO'#E|'#E|OOQO'#E}'#E}OOQO'#FO'#FOOOQO'#FP'#FPOOQO'#FQ'#FQOOQO'#FR'#FROOQO'#FS'#FSOOQO'#FT'#FTOOQO'#FU'#FUOOQO'#FV'#FVOOQO'#FW'#FWOOQO'#FX'#FXOOQO'#FY'#FYOOQO'#FZ'#FZOOQO'#F['#F[OOQO'#F]'#F]OOQO'#F^'#F^OOQO'#F_'#F_OOQO'#F`'#F`OOQO'#Fa'#FaOOQO'#Fb'#FbOOQO'#Fc'#FcOOQO'#Fd'#FdOOQO'#Fe'#FeOOQO'#Ff'#FfOOQO'#Fg'#FgOOQO'#Fh'#FhOOQO'#Fi'#FiQOQPOOO3[QPO'#DSO3aQPO'#DXO(cQPO,59lO3hQQO,59lOOQO,59z,59zO5bQPO,59tO5bQPO,59tO5bQPO,59tO5bQPO,59tO5bQPO,59tO<rQPO,5<UO<rQPO,5<WOOQO,5<X,5<XOOQO,5<Y,5<YO=fQPO,5<gOOQO,5:[,5:[O=pQQO,5<ZO=wQQO,5<]OOQO'#DV'#DVO?kQPO'#FuO?yQPO,5<`OOQO,5<`,5<`O@VQPO,5<`OOQO,5<_,5<_O@_QSO'#DTOOQO,59n,59nOOQO,59s,59sO@jQQO,59sOOQO1G/W1G/WOOQO'#D['#D[O3[QPO'#D]O@tQPO'#D_O@yQPO'#DaOAOQPO'#DbOOQO'#D^'#D^OHRQPO'#D^OHYQPO'#D^OOQO'#G]'#G]OHaQPO'#G]O! hQPO'#G]OYQPO1G/`OYQPO1G/`OYQPO1G/`OYQPO1G/`OYQPO1G/`OOQO'#Fk'#FkO! rQPO'#FkO! }QSO1G1pOOQO1G1r1G1rO!!VQPO'#D`OOQO'#F}'#F}OOQO1G2R1G2RO!!bQPO1G2ROOQO1G1u1G1uOOQO'#Fv'#FvO!!gQPO,5<aO!!lQPO,5<fO!!qQSO1G1zO!!|QPO1G1zOOQO1G1z1G1zOOQO,59o,59oO!#UQPO,59oOYQPO'#GQO!#^QPO1G/_OOQO1G/_1G/_O!#fQPO,59wO=TQPO,59yO=TQPO,59{O=TQPO,59|OOQO,59x,59xOOQO,5<w,5<wO!*sQPO,5<wO!3bQQO7+$zO!3rQQO7+$zO!5^QQO7+$zO!5zQQO7+$zO!7oQQO7+$zOOQO,5<V,5<VOOQO7+'[7+'[O!8`QPO7+'bO!8gQPO7+'mOOQO1G1{1G1{OOQO1G2Q1G2QO!8lQPO,5<mOOQO,5<m,5<mOOQO7+'f7+'fO!9QQSO7+'fOOQO-E:P-E:PO!9]QSO1G/ZO!9hQPO1G/ZOOQO1G/Z1G/ZO!9pQQO,5<lOOQO-E:O-E:OOOQO7+$y7+$yO!9zQPO1G/cO!ARQPO1G/eO!AWQPO1G/gO!A]QPO1G/hOOQO1G2c1G2cOOQO<<J|<<J|O!AbQPO<<J|OOQO<<KX<<KXOOQO<<KQ<<KQP!AgQSO'#GROOQO,5<k,5<kOOQO7+$u7+$uO!AoQSO7+$uOOQO-E9}-E9}OOQO7+$}7+$}OOQO7+%P7+%POOQO7+%R7+%ROOQO7+%S7+%SOOQOAN@hAN@hOOQO<<Ha<<HaP!AzQSO'#GP",stateData:"!BS~O$zOSrOS~OWQOXQOYQOZQO[QO]QO^QO_QO`QOaQObQOcQOdQOeQOz^O!g[O$wSO$xSO$|XO%QTO%RTO%SSO%T_O%U`O%VaO%WbO%XcO%YdO%ZeO%[fO%]gO%^hO%_iO%`jO%akO%blO%cmO%dnO%eoO%fpO%gqO%hrO%isO%jtO%kuO%lvO%mwO%nxO%oyO%pzO%q{O%r|O%s}O%t!OO%u!PO%v!QO%w!RO%x!SO%y!TO%z!UO%{!VO%|!WO%}!XO&O!YO&P!ZO&Q![O&R!]O&S!^O&T!_O&U!`O&V!aO&W!bO&X!cO&Y!dO&Z!eO&[!fO&]!gO&^!hO&_!iO&`!jO&a!kO&b!lO&c!mO&d!nO&e!oO&f!pO&g!qO&h!rO&i!sO&j!tO&k!uO&l!vO&m!wO&n!xO&o!yO&p!zO&q!{O&r!|O&s!}O&t#OO&u#PO&v#QO&w#RO&x#SO&y#TO&}ZO~O!g#UO~Of#VOg#VO$|#WO~O$w#ZO$x#ZO%S#ZOW$fXX$fXY$fXZ$fX[$fX]$fX^$fX_$fX`$fXa$fXb$fXc$fXd$fXe$fXz$fX!g$fX$w$fX$x$fX$|$fX%Q$fX%R$fX%S$fX%T$fX%U$fX%V$fX%W$fX%X$fX%Y$fX%Z$fX%[$fX%]$fX%^$fX%_$fX%`$fX%a$fX%b$fX%c$fX%d$fX%e$fX%f$fX%g$fX%h$fX%i$fX%j$fX%k$fX%l$fX%m$fX%n$fX%o$fX%p$fX%q$fX%r$fX%s$fX%t$fX%u$fX%v$fX%w$fX%x$fX%y$fX%z$fX%{$fX%|$fX%}$fX&O$fX&P$fX&Q$fX&R$fX&S$fX&T$fX&U$fX&V$fX&W$fX&X$fX&Y$fX&Z$fX&[$fX&]$fX&^$fX&_$fX&`$fX&a$fX&b$fX&c$fX&d$fX&e$fX&f$fX&g$fX&h$fX&i$fX&j$fX&k$fX&l$fX&m$fX&n$fX&o$fX&p$fX&q$fX&r$fX&s$fX&t$fX&u$fX&v$fX&w$fX&x$fX&y$fX&}$fX~OU#bOV#[Oh#_Oi#`Oj#_Om#dOn#cO}#[O!V#[O!W#[O!X#[O!Y#]O!Z#]O![#^O!]#^O!^#^O!_#^O!`#^O!a#^O!b#^O!c#^O$p#eO&z#aO~Ox#jOz#iO'O#lO~O&}ZOU$gXV$gXh$gXi$gXj$gXm$gXn$gX}$gX!V$gX!W$gX!X$gX!Y$gX!Z$gX![$gX!]$gX!^$gX!_$gX!`$gX!a$gX!b$gX!c$gX$p$gX$v$gX&z$gX%O$gX$}$gX~O$|#oO~O%O#qO~PYOf#VOg#VOUtaVtahtaitajtamtanta}ta!Vta!Wta!Xta!Yta!Zta![ta!]ta!^ta!_ta!`ta!ata!bta!cta$pta$vta&zta%Ota$}ta~OP#tOQ#uOR#uOo#vOp#wOq#xOW%PPX%PPY%PPZ%PP[%PP]%PP^%PP_%PP`%PPa%PPb%PPc%PPd%PPe%PPz%PP!g%PP$w%PP$x%PP$|%PP%Q%PP%R%PP%S%PP%T%PP%U%PP%V%PP%W%PP%X%PP%Y%PP%Z%PP%[%PP%]%PP%^%PP%_%PP%`%PP%a%PP%b%PP%c%PP%d%PP%e%PP%f%PP%g%PP%h%PP%i%PP%j%PP%k%PP%l%PP%m%PP%n%PP%o%PP%p%PP%q%PP%r%PP%s%PP%t%PP%u%PP%v%PP%w%PP%x%PP%y%PP%z%PP%{%PP%|%PP%}%PP&O%PP&P%PP&Q%PP&R%PP&S%PP&T%PP&U%PP&V%PP&W%PP&X%PP&Y%PP&Z%PP&[%PP&]%PP&^%PP&_%PP&`%PP&a%PP&b%PP&c%PP&d%PP&e%PP&f%PP&g%PP&h%PP&i%PP&j%PP&k%PP&l%PP&m%PP&n%PP&o%PP&p%PP&q%PP&r%PP&s%PP&t%PP&u%PP&v%PP&w%PP&x%PP&y%PP&}%PP~O$w$UO$x$UO%Q$VO%R$VO%S$UO~O$wSO$xSO%Q$YO%R$YO%SSO~Ok$ZOl$ZO~P=TO%O$^O~P/oO}#[OU$eaV$eah$eai$eaj$eam$ean$ea!V$ea!W$ea!X$ea!Y$ea!Z$ea![$ea!]$ea!^$ea!_$ea!`$ea!a$ea!b$ea!c$ea$p$ea$v$ea&z$ea%O$ea$}$ea~O!c$_O$k$_O$l$_O$m$_O~O!c$_O$k$_O$l$_O$m$_O$}$bO'O$dO~Ox$fOz#iO%O$eO~O$}$gO%O$iO~P/oO$|$kO~O$|$lO~O$|$mO~OW!QXX!QXY!QXZ!QX[!QX]!QX^!QX_!QX`!QXa!QXb!QXc!QXd!QXe!QXz!QX!g!QX$w!QX$x!QX$|!QX%Q!QX%R!QX%S!QX%T!QX%U!QX%V!QX%W!QX%X!QX%Y!QX%Z!QX%[!QX%]!QX%^!QX%_!QX%`!QX%a!QX%b!QX%c!QX%d!QX%e!QX%f!QX%g!QX%h!QX%i!QX%j!QX%k!QX%l!QX%m!QX%n!QX%o!QX%p!QX%q!QX%r!QX%s!QX%t!QX%u!QX%v!QX%w!QX%x!QX%y!QX%z!QX%{!QX%|!QX%}!QX&O!QX&P!QX&Q!QX&R!QX&S!QX&T!QX&U!QX&V!QX&W!QX&X!QX&Y!QX&Z!QX&[!QX&]!QX&^!QX&_!QX&`!QX&a!QX&b!QX&c!QX&d!QX&e!QX&f!QX&g!QX&h!QX&i!QX&j!QX&k!QX&l!QX&m!QX&n!QX&o!QX&p!QX&q!QX&r!QX&s!QX&t!QX&u!QX&v!QX&w!QX&x!QX&y!QX&}!QX~Oq#xO~PATOp#wO~PATOo#vOp#wOq#xOW%PXX%PXY%PXZ%PX[%PX]%PX^%PX_%PX`%PXa%PXb%PXc%PXd%PXe%PXz%PX!g%PX$w%PX$x%PX$|%PX%Q%PX%R%PX%S%PX%T%PX%U%PX%V%PX%W%PX%X%PX%Y%PX%Z%PX%[%PX%]%PX%^%PX%_%PX%`%PX%a%PX%b%PX%c%PX%d%PX%e%PX%f%PX%g%PX%h%PX%i%PX%j%PX%k%PX%l%PX%m%PX%n%PX%o%PX%p%PX%q%PX%r%PX%s%PX%t%PX%u%PX%v%PX%w%PX%x%PX%y%PX%z%PX%{%PX%|%PX%}%PX&O%PX&P%PX&Q%PX&R%PX&S%PX&T%PX&U%PX&V%PX&W%PX&X%PX&Y%PX&Z%PX&[%PX&]%PX&^%PX&_%PX&`%PX&a%PX&b%PX&c%PX&d%PX&e%PX&f%PX&g%PX&h%PX&i%PX&j%PX&k%PX&l%PX&m%PX&n%PX&o%PX&p%PX&q%PX&r%PX&s%PX&t%PX&u%PX&v%PX&w%PX&x%PX&y%PX&}%PX~OQ#uOR#uO~PHaO$w$vO$x$vO%S$vO~O&{$wO&|$xO~O$w#ZO$x#ZO%S#ZO~O$|$yO~Oz$zO~Oz${O~Ox#jOz#iO'O%OO~O$}%PO'O%OO~O$}%RO%O%TO~O$}$gO%O%WO~OS%XOT%XOW!PaX!PaY!PaZ!Pa[!Pa]!Pa^!Pa_!Pa`!Paa!Pab!Pac!Pad!Pae!Pao!Pap!Paq!Paz!Pa!g!Pa$w!Pa$x!Pa$|!Pa%Q!Pa%R!Pa%S!Pa%T!Pa%U!Pa%V!Pa%W!Pa%X!Pa%Y!Pa%Z!Pa%[!Pa%]!Pa%^!Pa%_!Pa%`!Pa%a!Pa%b!Pa%c!Pa%d!Pa%e!Pa%f!Pa%g!Pa%h!Pa%i!Pa%j!Pa%k!Pa%l!Pa%m!Pa%n!Pa%o!Pa%p!Pa%q!Pa%r!Pa%s!Pa%t!Pa%u!Pa%v!Pa%w!Pa%x!Pa%y!Pa%z!Pa%{!Pa%|!Pa%}!Pa&O!Pa&P!Pa&Q!Pa&R!Pa&S!Pa&T!Pa&U!Pa&V!Pa&W!Pa&X!Pa&Y!Pa&Z!Pa&[!Pa&]!Pa&^!Pa&_!Pa&`!Pa&a!Pa&b!Pa&c!Pa&d!Pa&e!Pa&f!Pa&g!Pa&h!Pa&i!Pa&j!Pa&k!Pa&l!Pa&m!Pa&n!Pa&o!Pa&p!Pa&q!Pa&r!Pa&s!Pa&t!Pa&u!Pa&v!Pa&w!Pa&x!Pa&y!Pa&}!Pa~Oo#vOp#wOq#xOW%PaX%PaY%PaZ%Pa[%Pa]%Pa^%Pa_%Pa`%Paa%Pab%Pac%Pad%Pae%Paz%Pa!g%Pa$w%Pa$x%Pa$|%Pa%Q%Pa%R%Pa%S%Pa%T%Pa%U%Pa%V%Pa%W%Pa%X%Pa%Y%Pa%Z%Pa%[%Pa%]%Pa%^%Pa%_%Pa%`%Pa%a%Pa%b%Pa%c%Pa%d%Pa%e%Pa%f%Pa%g%Pa%h%Pa%i%Pa%j%Pa%k%Pa%l%Pa%m%Pa%n%Pa%o%Pa%p%Pa%q%Pa%r%Pa%s%Pa%t%Pa%u%Pa%v%Pa%w%Pa%x%Pa%y%Pa%z%Pa%{%Pa%|%Pa%}%Pa&O%Pa&P%Pa&Q%Pa&R%Pa&S%Pa&T%Pa&U%Pa&V%Pa&W%Pa&X%Pa&Y%Pa&Z%Pa&[%Pa&]%Pa&^%Pa&_%Pa&`%Pa&a%Pa&b%Pa&c%Pa&d%Pa&e%Pa&f%Pa&g%Pa&h%Pa&i%Pa&j%Pa&k%Pa&l%Pa&m%Pa&n%Pa&o%Pa&p%Pa&q%Pa&r%Pa&s%Pa&t%Pa&u%Pa&v%Pa&w%Pa&x%Pa&y%Pa&}%Pa~O}#[OU|qh|qi|qj|qm|qn|q!Y|q!Z|q![|q!]|q!^|q!_|q!`|q!a|q!b|q!c|q$p|q$v|q&z|q%O|q$}|q~OV|q!V|q!W|q!X|q~P!1zOV#[O!V#[O!W#[O!X#[O~P!1zOV#[O}#[O!V#[O!W#[O!X#[O!Y#]O!Z#]OU|qh|qi|qj|qm|qn|q$p|q$v|q&z|q%O|q$}|q~O![|q!]|q!^|q!_|q!`|q!a|q!b|q!c|q~P!4SO![#^O!]#^O!^#^O!_#^O!`#^O!a#^O!b#^O!c#^O~P!4SOV#[Oh#_Oj#_O}#[O!V#[O!W#[O!X#[O!Y#]O!Z#]O![#^O!]#^O!^#^O!_#^O!`#^O!a#^O!b#^O!c#^O~OU|qi|qm|qn|q$p|q$v|q&z|q%O|q$}|q~P!6hO&{%^O~P<rO%O%`O~O!c$_O$k$_O$l$_O$m$_O$}$ua'O$ua~Ox#jOz#iO'O%aO~Ox%cOz#iO%O%dO~O$}%eO%O%dO~O$}$ta%O$ta~P/oO$|#oOW!PiX!PiY!PiZ!Pi[!Pi]!Pi^!Pi_!Pi`!Pia!Pib!Pic!Pid!Pie!Pio!Pip!Piq!Piz!Pi!g!Pi$w!Pi$x!Pi%Q!Pi%R!Pi%S!Pi%T!Pi%U!Pi%V!Pi%W!Pi%X!Pi%Y!Pi%Z!Pi%[!Pi%]!Pi%^!Pi%_!Pi%`!Pi%a!Pi%b!Pi%c!Pi%d!Pi%e!Pi%f!Pi%g!Pi%h!Pi%i!Pi%j!Pi%k!Pi%l!Pi%m!Pi%n!Pi%o!Pi%p!Pi%q!Pi%r!Pi%s!Pi%t!Pi%u!Pi%v!Pi%w!Pi%x!Pi%y!Pi%z!Pi%{!Pi%|!Pi%}!Pi&O!Pi&P!Pi&Q!Pi&R!Pi&S!Pi&T!Pi&U!Pi&V!Pi&W!Pi&X!Pi&Y!Pi&Z!Pi&[!Pi&]!Pi&^!Pi&_!Pi&`!Pi&a!Pi&b!Pi&c!Pi&d!Pi&e!Pi&f!Pi&g!Pi&h!Pi&i!Pi&j!Pi&k!Pi&l!Pi&m!Pi&n!Pi&o!Pi&p!Pi&q!Pi&r!Pi&s!Pi&t!Pi&u!Pi&v!Pi&w!Pi&x!Pi&y!Pi&}!Pi~O%O%hO~O%O%iO~O%O%jO~O&{%kO~Ox#jOz#iO~Ox%cOz#iO%O%lO~Ox%cOz#iO~O",goto:"+h%QPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP%R%_%k%qP%zP&[%RP&e&l&v'U'`'x(VPPPPPPPPPPPPP%R(d(pP(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p%R(|%R%R%R%R%R%R)V%R)c)r)zPPP)r%RP*RP*U*[*bPPPPP*iPPP+Xe^OXY#W$P$Q$R$S$T$geROXY#W$P$Q$R$S$T$gQ#XRR#s#YQ#p#VQ$j#uR%g%XQ#kZQ$f#oU$|$b%P%bV%c%R%e%mQ#YRQ#fWR#s#XZ$O#[#]#^#_#`Y#}#[#]#^#_#`R$p$OY#|#[#]#^#_#`S$o#}$OR%]$pa#y#[#]#^#_#`#}$O$pd^OXY#W$P$Q$R$S$T$gQ$[#eQ%Y$kQ%Z$lR%[$m`#z#[#]#^#_#`#}$O$pR$n#{`#{#[#]#^#_#`#}$O$pR$n#zeWOXY#W$P$Q$R$S$T$geVOXY#W$P$Q$R$S$T$gQ$W#aQ$X#bR%_$xeYOXY#W$P$Q$R$S$T$gd]OXY#W$P$Q$R$S$T$gR#n[Q#mZV$}$b%P%bQ$`#jT$a#k$|R$]#eQ%S$fR%f%SQ$h#rR%V$hS$c#k#mR%Q$cQUOQ#gXQ#hYQ#r#WQ$q$PQ$r$QQ$s$RQ$t$SQ$u$TR%U$gQ$P#[Q$Q#]Q$R#^Q$S#_R$T#`",nodeNames:"⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End Smoothed Anchored Fill FillLeft FillRight LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause FillModifier FillClause NumberDurationLiteral FillLeftClause FillRightClause Mul Div Mod Add Sub Eql Gte Gtr TrimUpper TrimLower Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp FirstOverTime Floor HistogramCount HistogramFraction HistogramQuantile HistogramQuantiles HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime TsOfFirstOverTime TsOfMaxOverTime TsOfMinOverTime TsOfLastOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext OffsetExpr AnchoredExpr SmoothedExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",maxTerm:276,nodeProps:[["group",-14,36,42,44,50,66,152,154,155,156,157,158,159,161,169,"Expr"]],propSources:[P],skippedNodes:[0,34],repeatNodeCount:3,tokenData:"4{~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*u!Q!R*z!R![+u![!]1O!^!_1z!_!`2a!`!a2v!b!c3]!c!}3b!}#O3x#P#Q3}#Q#R4S#R#S3b#S#T4X#T#o3b#o#p4q#q#r4v#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~#qY$z~X^#lpq#l#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~$dQ!_!`$j#r#s$o~$oO!c~~$tO$m~~$yWz~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f<%lO$t~%hOz~~%kRO;'S$t;'S;=`%t;=`O$t~%yXz~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f;=`<%l$t<%lO$t~&iP;=`<%l$t~&qSr~OY&lZ;'S&l;'S;=`&}<%lO&l~'QP;=`<%l&l~'YO!X~~'_Wz~OY'YZw'Ywx%cx#O'Y#O#P'w#P;'S'Y;'S;=`(u<%lO'Y~'zRO;'S'Y;'S;=`(T;=`O'Y~(YXz~OY'YZw'Ywx%cx#O'Y#O#P'w#P;'S'Y;'S;=`(u;=`<%l'Y<%lO'Y~(xP;=`<%l'Y~)QO$|~~)VO%O~~)[O!V~R)cO%RP!YQ~)hO$}~R)oO%QP!ZQ~)rP!Q![)u~)zS%S~!Q![)u!g!h*W#R#S)o#X#Y*W~*ZR{|*d}!O*d!Q![*j~*gP!Q![*j~*oQ%S~!Q![*j#R#S*d~*zO!W~~+P[%S~!O!P)o!Q![+u!g!h*W#R#S,m#W#X-X#X#Y*W#[#]-p#a#b.U#g#h.x#k#l/Z#l#m0d#m#n/u~+zZ%S~!O!P)o!Q![+u!g!h*W#R#S,m#W#X-X#X#Y*W#[#]-p#a#b.U#g#h.x#k#l/Z#m#n/u~,pP!Q![,s~,xT%S~!O!P)o!Q![,s!g!h*W#R#S,m#X#Y*W~-^P%S~!Q![-a~-dS!Q![-a#[#]-p#a#b.U#g#h.x~-uP%S~!Q![-x~-{R!Q![-x#a#b.U#g#h.x~.ZQ%S~!Q![.a#g#h.s~.dR!Q![.a#a#b.m#g#h.x~.pP#g#h.s~.xO%S~~.}P%S~!Q![/Q~/TQ!Q![/Q#a#b.m~/`P%S~!Q![/c~/fT!Q![/c#W#X-X#[#]-p#a#b.U#g#h.x~/zP%S~!Q![/}~0QU!Q![/}#W#X-X#[#]-p#a#b.U#g#h.x#k#l/Z~0gR!Q![0p!c!i0p#T#Z0p~0uR%S~!Q![0p!c!i0p#T#Z0pV1VT&|S!gR!Q![1f![!]1f!c!}1f#R#S1f#T#o1fR1kT!gR!Q![1f![!]1f!c!}1f#R#S1f#T#o1f~2PQ!b~!P!Q2V!_!`2[~2[O!_~~2aO!a~~2fQ$kP!_!`2l#r#s2qQ2qO![Q~2vO$l~~2{Q!^~!P!Q3R!_!`3W~3WO!`~~3]O!]~~3bO$p~V3iT!gRxS!Q![3b![!]1f!c!}3b#R#S3b#T#o3b~3}O&z~~4SO&{~~4XO}~~4[TO#S4X#S#T%c#T;'S4X;'S;=`4k<%lO4X~4nP;=`<%l4X~4vO&}~~4{O'O~",tokenizers:[0,1,2],topRules:{PromQL:[0,35],MetricName:[1,172]},specialized:[{term:69,get:(e,t)=>f(e)<<1,external:f},{term:69,get:(e,t)=>m(e)<<1|1,external:m,extend:!0},{term:69,get:e=>g[e]||-1}],tokenPrec:0});(a=s||(s={})).none="none",a.vector="vector",a.scalar="scalar",a.matrix="matrix",a.string="string";let y={71:{name:"abs",argTypes:[s.vector],variadic:0,returnType:s.vector},70:{name:"absent",argTypes:[s.vector],variadic:0,returnType:s.vector},68:{name:"absent_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},72:{name:"acos",argTypes:[s.vector],variadic:0,returnType:s.vector},73:{name:"acosh",argTypes:[s.vector],variadic:0,returnType:s.vector},74:{name:"asin",argTypes:[s.vector],variadic:0,returnType:s.vector},75:{name:"asinh",argTypes:[s.vector],variadic:0,returnType:s.vector},76:{name:"atan",argTypes:[s.vector],variadic:0,returnType:s.vector},77:{name:"atanh",argTypes:[s.vector],variadic:0,returnType:s.vector},78:{name:"avg_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},79:{name:"ceil",argTypes:[s.vector],variadic:0,returnType:s.vector},80:{name:"changes",argTypes:[s.matrix],variadic:0,returnType:s.vector},81:{name:"clamp",argTypes:[s.vector,s.scalar,s.scalar],variadic:0,returnType:s.vector},82:{name:"clamp_max",argTypes:[s.vector,s.scalar],variadic:0,returnType:s.vector},83:{name:"clamp_min",argTypes:[s.vector,s.scalar],variadic:0,returnType:s.vector},84:{name:"cos",argTypes:[s.vector],variadic:0,returnType:s.vector},85:{name:"Cosh",argTypes:[s.vector],variadic:0,returnType:s.vector},86:{name:"count_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},87:{name:"days_in_month",argTypes:[s.vector],variadic:1,returnType:s.vector},88:{name:"day_of_month",argTypes:[s.vector],variadic:1,returnType:s.vector},89:{name:"day_of_week",argTypes:[s.vector],variadic:1,returnType:s.vector},90:{name:"day_of_year",argTypes:[s.vector],variadic:1,returnType:s.vector},91:{name:"deg",argTypes:[s.vector],variadic:0,returnType:s.vector},92:{name:"delta",argTypes:[s.matrix],variadic:0,returnType:s.vector},93:{name:"deriv",argTypes:[s.matrix],variadic:0,returnType:s.vector},94:{name:"exp",argTypes:[s.vector],variadic:0,returnType:s.vector},95:{name:"first_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},96:{name:"floor",argTypes:[s.vector],variadic:0,returnType:s.vector},104:{name:"histogram_avg",argTypes:[s.vector],variadic:0,returnType:s.vector},97:{name:"histogram_count",argTypes:[s.vector],variadic:0,returnType:s.vector},98:{name:"histogram_fraction",argTypes:[s.scalar,s.scalar,s.vector],variadic:0,returnType:s.vector},99:{name:"histogram_quantile",argTypes:[s.scalar,s.vector],variadic:0,returnType:s.vector},100:{name:"histogram_quantiles",argTypes:[s.vector,s.string,s.scalar,s.scalar],variadic:10,returnType:s.vector},101:{name:"histogram_stddev",argTypes:[s.vector],variadic:0,returnType:s.vector},102:{name:"histogram_stdvar",argTypes:[s.vector],variadic:0,returnType:s.vector},103:{name:"histogram_sum",argTypes:[s.vector],variadic:0,returnType:s.vector},105:{name:"double_exponential_smoothing",argTypes:[s.matrix,s.scalar,s.scalar],variadic:0,returnType:s.vector},106:{name:"hour",argTypes:[s.vector],variadic:1,returnType:s.vector},107:{name:"idelta",argTypes:[s.matrix],variadic:0,returnType:s.vector},108:{name:"increase",argTypes:[s.matrix],variadic:0,returnType:s.vector},109:{name:"info",argTypes:[s.vector,s.vector],variadic:1,returnType:s.vector},110:{name:"irate",argTypes:[s.matrix],variadic:0,returnType:s.vector},111:{name:"label_replace",argTypes:[s.vector,s.string,s.string,s.string,s.string],variadic:0,returnType:s.vector},112:{name:"label_join",argTypes:[s.vector,s.string,s.string,s.string],variadic:-1,returnType:s.vector},113:{name:"last_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},114:{name:"ln",argTypes:[s.vector],variadic:0,returnType:s.vector},115:{name:"log10",argTypes:[s.vector],variadic:0,returnType:s.vector},116:{name:"log2",argTypes:[s.vector],variadic:0,returnType:s.vector},117:{name:"mad_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},118:{name:"max_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},119:{name:"min_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},120:{name:"ts_of_first_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},121:{name:"ts_of_max_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},122:{name:"ts_of_min_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},123:{name:"ts_of_last_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},124:{name:"minute",argTypes:[s.vector],variadic:1,returnType:s.vector},125:{name:"month",argTypes:[s.vector],variadic:1,returnType:s.vector},126:{name:"pi",argTypes:[],variadic:0,returnType:s.vector},127:{name:"predict_linear",argTypes:[s.matrix,s.scalar],variadic:0,returnType:s.vector},128:{name:"present_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},129:{name:"quantile_over_time",argTypes:[s.scalar,s.matrix],variadic:0,returnType:s.vector},130:{name:"rad",argTypes:[s.vector],variadic:0,returnType:s.vector},131:{name:"rate",argTypes:[s.matrix],variadic:0,returnType:s.vector},132:{name:"resets",argTypes:[s.matrix],variadic:0,returnType:s.vector},133:{name:"round",argTypes:[s.vector,s.scalar],variadic:1,returnType:s.vector},134:{name:"scalar",argTypes:[s.vector],variadic:0,returnType:s.scalar},135:{name:"sgn",argTypes:[s.vector],variadic:0,returnType:s.vector},136:{name:"sin",argTypes:[s.vector],variadic:0,returnType:s.vector},137:{name:"Sinh",argTypes:[s.vector],variadic:0,returnType:s.vector},138:{name:"sort",argTypes:[s.vector],variadic:0,returnType:s.vector},139:{name:"sort_desc",argTypes:[s.vector],variadic:0,returnType:s.vector},140:{name:"sort_by_label",argTypes:[s.vector,s.string],variadic:-1,returnType:s.vector},141:{name:"sort_by_label_desc",argTypes:[s.vector,s.string],variadic:-1,returnType:s.vector},142:{name:"sqrt",argTypes:[s.vector],variadic:0,returnType:s.vector},143:{name:"stddev_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},144:{name:"stdvar_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},145:{name:"sum_over_time",argTypes:[s.matrix],variadic:0,returnType:s.vector},146:{name:"tan",argTypes:[s.vector],variadic:0,returnType:s.vector},147:{name:"tanh",argTypes:[s.vector],variadic:0,returnType:s.vector},149:{name:"time",argTypes:[],variadic:0,returnType:s.scalar},148:{name:"timestamp",argTypes:[s.vector],variadic:0,returnType:s.vector},150:{name:"vector",argTypes:[s.scalar],variadic:0,returnType:s.vector},151:{name:"year",argTypes:[s.vector],variadic:1,returnType:s.vector}};class b{constructor(e,t,i){this.type=e,this.name=t,this.value=i}matchesEmpty(){switch(this.type){case 165:return""===this.value;case 65:return""!==this.value;default:return!1}}}function _(e,t){let i=[];return e.forEach(e=>{i.push(function(e,t){let i=new b(0,"",""),a=e.cursor();switch(a.type.id){case 168:if(!a.next())break;do switch(a.type.id){case 41:i.name=t.sliceDoc(a.from,a.to).slice(1,-1);break;case 164:{let e=a.node.firstChild;e&&(i.type=e.type.id);break}case 42:i.value=t.sliceDoc(a.from,a.to).slice(1,-1)}while(a.nextSibling());break;case 163:if(!a.next())break;do switch(a.type.id){case 40:i.name=t.sliceDoc(a.from,a.to);break;case 164:{let e=a.node.firstChild;e&&(i.type=e.type.id);break}case 42:i.value=t.sliceDoc(a.from,a.to).slice(1,-1)}while(a.nextSibling());break;case 41:i.name="__name__",i.value=t.sliceDoc(a.from,a.to).slice(1,-1),i.type=165}return i}(e,t))}),i}function $(e,t,i){if(!t||0===t.length)return e;let a="";for(let e of t){if(e.name===i||""===e.value)continue;let t="";switch(e.type){case 165:default:t="=";break;case 65:t="!=";break;case 167:t="!~";break;case 166:t="=~"}let r=`${e.name}${t}"${e.value}"`;a=""===a?r:`${a},${r}`}return`${e}{${a}}`}function Q(e,t){for(;;){if(!e||e.type.id===t)return e;e=e.parent}return null}function X(e,...t){let i=e.cursor();if(!i.next())return!1;let a=!1;do a=t.some(e=>i.type.id===e||i.type.name===e);while(!a&&i.nextSibling());return a}function T(e,...t){let i=e.cursor();if(!i.next())return!1;let a=0;do i.type.is(t[a])&&a++;while(a<t.length&&i.nextSibling());return a>=t.length}function S(e){var t;if(!e)return s.none;switch(e.type.id){case 36:case 161:return s.vector;case 154:case 156:case 155:return S(e.firstChild);case 42:return s.string;case 50:return s.scalar;case 152:case 158:return s.matrix;case 157:case 159:case 169:return S(e.getChild("Expr"));case 44:{let t=S(e.firstChild),i=S(e.lastChild);if(t===s.scalar&&i===s.scalar)return s.scalar;return s.vector}case 66:{let i=null==(t=e.firstChild)?void 0:t.firstChild;if(!i)return s.none;return y[i.type.id].returnType}default:return s.none}}(r=l||(l={})).CardOneToOne="one-to-one",r.CardManyToOne="many-to-one",r.CardOneToMany="one-to-many",r.CardManyToMany="many-to-many";var k=i(63960);class x{constructor(e){this.tree=(0,k.mv)(e),this.state=e,this.diagnostics=[]}getDiagnostics(){return this.diagnostics.sort((e,t)=>e.from-t.from)}analyze(){this.checkAST(this.tree.topNode.firstChild),this.diagnoseAllErrorNodes()}diagnoseAllErrorNodes(){let e=this.tree.cursor();for(;e.next();)if(0===e.type.id&&e.to!==this.tree.topNode.to){let t=e.node.parent;this.diagnostics.push({severity:"error",message:"unexpected expression",from:t?t.from:e.from,to:t?t.to:e.to})}}checkAST(e){if(!e)return s.none;switch(e.type.id){case 36:this.checkAggregationExpr(e);break;case 44:this.checkBinaryExpr(e);break;case 66:this.checkCallFunction(e);break;case 157:case 152:this.checkAST(e.getChild("Expr"));break;case 159:{let t=this.checkAST(e.getChild("Expr"));t!==s.scalar&&t!==s.vector&&this.addDiagnostic(e,`unary expression only allowed on expressions of type scalar or instant vector, got ${t}`);break}case 156:this.checkAnchoredSmoothedExpr(e,[131,108,92]);break;case 155:this.checkAnchoredSmoothedExpr(e,[132,80,131,108,92]);break;case 158:{let t=this.checkAST(e.getChild("Expr"));t!==s.vector&&this.addDiagnostic(e,`subquery is only allowed on instant vector, got ${t} in ${e.name} instead`);break}case 161:this.checkVectorSelector(e);break;case 169:{let t=this.checkAST(e.getChild("Expr"));t!==s.vector&&t!==s.matrix&&this.addDiagnostic(e,"@ modifier must be preceded by an instant selector vector or range vector selector or a subquery")}}return S(e)}checkAggregationExpr(e){var t;let i=null==(t=e.firstChild)?void 0:t.firstChild;if(!i)return void this.addDiagnostic(e,"aggregation operator expected in aggregation expression but got nothing");let a=e.getChild(43),r=a?a.getChildren("Expr"):[];r.length?(this.expectType(r[r.length-1],s.vector,"aggregation expression"),(21===i.type.id||9===i.type.id||16===i.type.id||17===i.type.id||15===i.type.id)&&this.expectType(r[0],s.scalar,"aggregation parameter"),11===i.type.id&&this.expectType(r[0],s.string,"aggregation parameter")):this.addDiagnostic(e,"unable to find the parameter for the expression")}checkBinaryExpr(e){let t=e.firstChild,i=e.lastChild;if(!t||!i)return void this.addDiagnostic(e,"left or right expression is missing in binary expression");let a=this.checkAST(t),r=this.checkAST(i),n=e.getChild(46),o=X(e,58,65,63,64,59,60),c=T(e,62),h=T(e,61),u=X(e,24,25,26);n?o||this.addDiagnostic(e,"bool modifier can only be used on comparison operators"):a===s.scalar&&r===s.scalar&&(o?this.addDiagnostic(e,"comparisons between scalars must use BOOL modifier"):c?this.addDiagnostic(e,'operator ">/" not allowed for Scalar operations'):h&&this.addDiagnostic(e,'operator "</" not allowed for Scalar operations'));let d=function(e,t){if(!t||44!==t.type.id)return null;let i={card:l.CardOneToOne,matchingLabels:[],on:!1,include:[],fill:{lhs:null,rhs:null}},a=t.getChild(47);if(a){i.on=null!==a.getChild(3);let t=a.getChild(39);for(let a of t?t.getChildren(40):[])i.matchingLabels.push(e.sliceDoc(a.from,a.to));let r=a.getChild(4),n=a.getChild(5),o=r||n;if(o){i.card=r?l.CardManyToOne:l.CardOneToMany;let t=o.nextSibling;for(let a of(null==t?void 0:t.getChildren(40))||[])i.include.push(e.sliceDoc(a.from,a.to))}}let r=t.getChild(48);if(r){let t=r.getChild(49),a=r.getChild(51),n=r.getChild(52),o=t=>{let i=t.getChild(50);return i?parseFloat(e.sliceDoc(i.from,i.to)):null};if(t){let e=o(t);i.fill.lhs=e,i.fill.rhs=e}a&&(i.fill.lhs=o(a)),n&&(i.fill.rhs=o(n))}return X(t,24,25,26)&&i.card===l.CardOneToOne&&(i.card=l.CardManyToMany),i}(this.state,e);if(null!==d&&d.on)for(let t of d.matchingLabels)for(let i of d.include)t===i&&this.addDiagnostic(e,`label "${t}" must not occur in ON and GROUP clause at once`);a!==s.scalar&&a!==s.vector&&this.addDiagnostic(t,"binary expression must contain only scalar and instant vector types"),r!==s.scalar&&r!==s.vector&&this.addDiagnostic(i,"binary expression must contain only scalar and instant vector types"),(a!==s.vector||r!==s.vector)&&null!==d?d.matchingLabels.length>0&&this.addDiagnostic(e,"vector matching only allowed between instant vectors"):u&&(((null==d?void 0:d.card)===l.CardOneToMany||(null==d?void 0:d.card)===l.CardManyToOne)&&this.addDiagnostic(e,"no grouping allowed for set operations"),(null==d?void 0:d.card)!==l.CardManyToMany&&this.addDiagnostic(e,"set operations must always be many-to-many")),(a===s.scalar||r===s.scalar)&&u&&this.addDiagnostic(e,"set operator not allowed in binary scalar expression")}checkCallFunction(e){var t;let i=null==(t=e.firstChild)?void 0:t.firstChild;if(!i)return void this.addDiagnostic(e,"function not defined");let a=e.getChild(43),r=a?a.getChildren("Expr"):[],n=y[i.type.id],o=n.argTypes.length;if(0===n.variadic)r.length!==o&&this.addDiagnostic(e,`expected ${o} argument(s) in call to "${n.name}", got ${r.length}`);else{let t=o-1;if(t>r.length)this.addDiagnostic(e,`expected at least ${t} argument(s) in call to "${n.name}", got ${r.length}`);else{let i=t+n.variadic;n.variadic>0&&i<r.length&&this.addDiagnostic(e,`expected at most ${i} argument(s) in call to "${n.name}", got ${r.length}`)}}"info"===n.name&&r.length>1&&r[1].getChild(69)&&this.addDiagnostic(e,`expected label selectors as the second argument to "info" function, got ${r[1].type}`);let s=0;for(let e=0;e<r.length;e++){if((s=e)>=n.argTypes.length){if(0===n.variadic)break;s=n.argTypes.length-1}this.expectType(r[e],n.argTypes[s],`call to function "${n.name}"`)}}checkAnchoredSmoothedExpr(e,t){var i,a;let r=S(e);if(r!==s.vector&&r!==s.matrix)return void this.addDiagnostic(e,`smoothed/anchored expression only allowed on instant vector or range vector selector, got ${r} instead`);let n=null==(i=e.parent)?void 0:i.parent;if(!n||66!==n.type.id)return;let o=null==(a=n.firstChild)?void 0:a.firstChild;o?t.includes(o.type.id)||this.addDiagnostic(e,"smoothed/anchored expression can only be used in specific functions"):this.addDiagnostic(e,"function not defined")}checkVectorSelector(e){let t=e.getChild(162),i=[];for(let e of[41,168,163])i=i.concat(_(t?t.getChildren(e):[],this.state));let a="",r=e.getChild(69);if(r&&(a=this.state.sliceDoc(r.from,r.to)),""!==a){let t=i.find(e=>"__name__"===e.name);t&&this.addDiagnostic(e,`metric name must not be set twice: ${a} or ${t.value}`),i.push(new b(165,"__name__",a))}else{let t=i.filter(e=>"__name__"===e.name);t.length>1&&this.addDiagnostic(e,`metric name must not be set twice: ${t[0].value} or ${t[1].value}`)}i.every(e=>e.matchesEmpty())&&this.addDiagnostic(e,"vector selector must contain at least one non-empty matcher")}expectType(e,t,i){let a=this.checkAST(e);a!==t&&this.addDiagnostic(e,`expected type ${t} in ${i}, got ${a}`)}addDiagnostic(e,t){this.diagnostics.push({severity:"error",message:t,from:e.from,to:e.to})}}var w=i(9714);let A=[{label:"y"},{label:"w"},{label:"d"},{label:"h"},{label:"m"},{label:"s"},{label:"ms"}],E=[{label:"^"},{label:"*"},{label:"/"},{label:"%"},{label:"+"},{label:"-"},{label:"=="},{label:">="},{label:">"},{label:"<"},{label:"</"},{label:">/"},{label:"<="},{label:"!="},{label:"atan2"},{label:"and"},{label:"or"},{label:"unless"}],C=[{label:"avg",detail:"aggregation",info:"Calculate the average over dimensions",type:"keyword"},{label:"bottomk",detail:"aggregation",info:"Smallest k elements by sample value",type:"keyword"},{label:"count",detail:"aggregation",info:"Count number of elements in the vector",type:"keyword"},{label:"count_values",detail:"aggregation",info:"Count number of elements with the same value",type:"keyword"},{label:"group",detail:"aggregation",info:"Group series, while setting the sample value to 1",type:"keyword"},{label:"limitk",detail:"aggregation",info:"Sample k elements",type:"keyword"},{label:"limit_ratio",detail:"aggregation",info:"Sample given ratio of elements",type:"keyword"},{label:"max",detail:"aggregation",info:"Select maximum over dimensions",type:"keyword"},{label:"min",detail:"aggregation",info:"Select minimum over dimensions",type:"keyword"},{label:"quantile",detail:"aggregation",info:"Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions",type:"keyword"},{label:"stddev",detail:"aggregation",info:"Calculate population standard deviation over dimensions",type:"keyword"},{label:"stdvar",detail:"aggregation",info:"Calculate population standard variance over dimensions",type:"keyword"},{label:"sum",detail:"aggregation",info:"Calculate sum over dimensions",type:"keyword"},{label:"topk",detail:"aggregation",info:"Largest k elements by sample value",type:"keyword"}],R=[{label:"sum(rate(__input_vector__[5m]))",type:"function",detail:"snippet",info:"Sum over rates of increase",apply:(0,w.UA)("sum(rate(${__input_vector__}[5m]))")},{label:"histogram_quantile(__quantile__, sum by(le) (rate(__histogram_metric__[5m])))",type:"function",detail:"snippet",info:"Approximate a quantile value from an aggregated histogram",apply:(0,w.UA)("histogram_quantile(${__quantile__}, sum by(le) (rate(${__histogram_metric__}[5m])))")},{label:'label_replace(__input_vector__, "__dst__", "__replacement__", "__src__", "__regex__")',type:"function",detail:"snippet",info:"Set or replace a label value in an input vector",apply:(0,w.UA)('label_replace(${__input_vector__}, "${__dst__}", "${__replacement__}", "${__src__}", "${__regex__}")')},{label:"topk(__rank_number__, __input_vector__)",type:"function",detail:"snippet",info:"Largest k elements by sample value",apply:(0,w.UA)("topk(${__rank_number__}, ${__input_vector__})")},{label:"bottomk(__rank_number__, __input_vector__)",type:"function",detail:"snippet",info:"Smallest k elements by sample value",apply:(0,w.UA)("bottomk(${__rank_number__}, ${__input_vector__})")},{label:'count_values("__label_name__", __input_vector__)',type:"function",detail:"snippet",info:"Count the number of series per distinct sample value",apply:(0,w.UA)('count_values("${__label_name__}", ${__metric__})')}],F=[{label:"="},{label:"!="},{label:"=~"},{label:"!~"}],D=[{label:"on",info:"Match only on specified labels",type:"keyword"},{label:"ignoring",info:"Ignore specified labels for matching",type:"keyword"},{label:"group_left",info:"Allow many-to-one matching",type:"keyword"},{label:"group_right",info:"Allow one-to-many matching",type:"keyword"},{label:"bool",info:"Return boolean result (0 or 1) instead of filtering",type:"keyword"},{label:"fill",info:"Fill in missing series on both sides",type:"keyword"},{label:"fill_left",info:"Fill in missing series on the left side",type:"keyword"},{label:"fill_right",info:"Fill in missing series on the right side",type:"keyword"}],M=[{label:"start()",info:"resolve to the start of the query",type:"keyword"},{label:"end()",info:"resolve to the end of the query",type:"keyword"}],q=[{label:"abs",detail:"function",info:"Return absolute values of input series",type:"function"},{label:"absent",detail:"function",info:"Determine whether input vector is empty",type:"function"},{label:"absent_over_time",detail:"function",info:"Determine whether input range vector is empty",type:"function"},{label:"acos",detail:"function",info:"Calculate the arccosine, in radians, for input series",type:"function"},{label:"acosh",detail:"function",info:"Calculate the inverse hyperbolic cosine, in radians, for input series",type:"function"},{label:"asin",detail:"function",info:"Calculate the arcsine, in radians, for input series",type:"function"},{label:"asinh",detail:"function",info:"Calculate the inverse hyperbolic sine, in radians, for input series",type:"function"},{label:"atan",detail:"function",info:"Calculate the arctangent, in radians, for input series",type:"function"},{label:"atanh",detail:"function",info:"Calculate the inverse hyperbolic tangent, in radians, for input series",type:"function"},{label:"avg_over_time",detail:"function",info:"Average series values over time",type:"function"},{label:"ceil",detail:"function",info:"Round up values of input series to nearest integer",type:"function"},{label:"changes",detail:"function",info:"Return number of value changes in input series over time",type:"function"},{label:"clamp",detail:"function",info:"Limit the value of input series between a minimum and a maximum",type:"function"},{label:"clamp_max",detail:"function",info:"Limit the value of input series to a maximum",type:"function"},{label:"clamp_min",detail:"function",info:"Limit the value of input series to a minimum",type:"function"},{label:"cos",detail:"function",info:"Calculate the cosine, in radians, for input series",type:"function",boost:-1},{label:"cosh",detail:"function",info:"Calculate the hyperbolic cosine, in radians, for input series",type:"function",boost:-1},{label:"count_over_time",detail:"function",info:"Count the number of values for each input series",type:"function"},{label:"days_in_month",detail:"function",info:"Return the number of days in current month for provided timestamps",type:"function"},{label:"day_of_month",detail:"function",info:"Return the day of the month for provided timestamps",type:"function"},{label:"day_of_week",detail:"function",info:"Return the day of the week for provided timestamps",type:"function"},{label:"day_of_year",detail:"function",info:"Return the day of the year for provided timestamps",type:"function"},{label:"deg",detail:"function",info:"Convert radians to degrees for input series",type:"function",boost:-1},{label:"delta",detail:"function",info:"Calculate the difference between beginning and end of a range vector (for gauges)",type:"function"},{label:"deriv",detail:"function",info:"Calculate the per-second derivative over series in a range vector (for gauges)",type:"function"},{label:"exp",detail:"function",info:"Calculate exponential function for input vector values",type:"function"},{label:"floor",detail:"function",info:"Round down values of input series to nearest integer",type:"function"},{label:"histogram_avg",detail:"function",info:"Return the average of observations from a native histogram",type:"function"},{label:"histogram_count",detail:"function",info:"Return the count of observations from a native histogram",type:"function"},{label:"histogram_fraction",detail:"function",info:"Calculate fractions of observations within an interval from a native histogram",type:"function"},{label:"histogram_quantile",detail:"function",info:"Calculate quantiles from native histograms and from conventional histogram buckets",type:"function"},{label:"histogram_quantiles",detail:"function",info:"Calculate multiple quantiles from native histograms and from conventional histogram buckets",type:"function"},{label:"histogram_sum",detail:"function",info:"Return the sum of observations from a native histogram",type:"function"},{label:"histogram_stddev",detail:"function",info:"Estimate the standard deviation of observations from a native histogram",type:"function"},{label:"histogram_stdvar",detail:"function",info:"Estimate the standard variance of observations from a native histogram",type:"function"},{label:"double_exponential_smoothing",detail:"function",info:"Calculate smoothed value of input series",type:"function"},{label:"hour",detail:"function",info:"Return the hour of the day for provided timestamps",type:"function"},{label:"idelta",detail:"function",info:"Calculate the difference between the last two samples of a range vector (for counters)",type:"function"},{label:"increase",detail:"function",info:"Calculate the increase in value over a range of time (for counters)",type:"function"},{label:"info",detail:"function",info:"Add data labels from corresponding info metrics",type:"function"},{label:"irate",detail:"function",info:"Calculate the per-second increase over the last two samples of a range vector (for counters)",type:"function"},{label:"label_replace",detail:"function",info:"Set or replace label values",type:"function"},{label:"label_join",detail:"function",info:"Join together label values into new label",type:"function"},{label:"first_over_time",detail:"function",info:"Return the value of the oldest sample in the specified interval",type:"function"},{label:"last_over_time",detail:"function",info:"Return the value of the most recent sample in the specified interval",type:"function"},{label:"ln",detail:"function",info:"Calculate natural logarithm of input series",type:"function"},{label:"log10",detail:"function",info:"Calulcate base-10 logarithm of input series",type:"function"},{label:"log2",detail:"function",info:"Calculate base-2 logarithm of input series",type:"function"},{label:"mad_over_time",detail:"function",info:"Return the median absolute deviation over time for input series",type:"function"},{label:"max_over_time",detail:"function",info:"Return the maximum value over time for input series",type:"function"},{label:"min_over_time",detail:"function",info:"Return the minimum value over time for input series",type:"function"},{label:"ts_of_max_over_time",detail:"function",info:"Return the timestamp of the maximum value over time for input series",type:"function"},{label:"ts_of_min_over_time",detail:"function",info:"Return the timestamp of the minimum value over time for input series",type:"function"},{label:"ts_of_first_over_time",detail:"function",info:"Return the timestamp of the first value over time for input series",type:"function"},{label:"ts_of_last_over_time",detail:"function",info:"Return the timestamp of the last value over time for input series",type:"function"},{label:"minute",detail:"function",info:"Return the minute of the hour for provided timestamps",type:"function"},{label:"month",detail:"function",info:"Return the month for provided timestamps",type:"function"},{label:"pi",detail:"function",info:"Return pi",type:"function"},{label:"predict_linear",detail:"function",info:"Predict the value of a gauge into the future",type:"function"},{label:"present_over_time",detail:"function",info:"the value 1 for any series in the specified interval",type:"function"},{label:"quantile_over_time",detail:"function",info:"Calculate value quantiles over time for input series",type:"function"},{label:"rad",detail:"function",info:"Convert degrees to radians for input series",type:"function",boost:-1},{label:"rate",detail:"function",info:"Calculate per-second increase over a range vector (for counters)",type:"function"},{label:"resets",detail:"function",info:"Return number of value decreases (resets) in input series of time",type:"function"},{label:"round",detail:"function",info:"Round values of input series to nearest integer",type:"function"},{label:"scalar",detail:"function",info:"Convert single-element series vector into scalar value",type:"function"},{label:"sgn",detail:"function",info:"Returns the sign of the instant vector",type:"function"},{label:"sin",detail:"function",info:"Calculate the sine, in radians, for input series",type:"function"},{label:"sinh",detail:"function",info:"Calculate the hyperbolic sine, in radians, for input series",type:"function"},{label:"sort",detail:"function",info:"Sort input series ascendingly by value",type:"function"},{label:"sort_desc",detail:"function",info:"Sort input series descendingly by value",type:"function"},{label:"sort_by_label",detail:"function",info:"Sort input series ascendingly by label value",type:"function"},{label:"sort_by_label_desc",detail:"function",info:"Sort input series descendingly by value value",type:"function"},{label:"sqrt",detail:"function",info:"Return the square root for input series",type:"function"},{label:"stddev_over_time",detail:"function",info:"Calculate the standard deviation within input series over time",type:"function"},{label:"stdvar_over_time",detail:"function",info:"Calculate the standard variance within input series over time",type:"function"},{label:"sum_over_time",detail:"function",info:"Calculate the sum over the values of input series over time",type:"function"},{label:"tan",detail:"function",info:"Calculate the tangent, in radians, for input series",type:"function"},{label:"tanh",detail:"function",info:"Calculate the hyperbolic tangent, in radians, for input series",type:"function"},{label:"time",detail:"function",info:"Return the Unix timestamp at the current evaluation time",type:"function"},{label:"timestamp",detail:"function",info:"Return the Unix timestamp for the samples in the input vector",type:"function"},{label:"vector",detail:"function",info:"Convert a scalar value into a single-element series vector",type:"function"},{label:"year",detail:"function",info:"Return the year for provided timestamps",type:"function"}],L=[{label:"by",info:"Keep the listed labels, remove all others.",type:"keyword"},{label:"without",info:"Remove the listed labels, preserve all others.",type:"keyword"}],z=[{label:"nan",info:"Floating-point NaN value",type:"constant"},{label:"inf",info:"Floating-point infinity",type:"constant"}];function W(e,t){let i=Q(e,161);return i&&(i=i.getChild(69))?t.sliceDoc(i.from,i.to):""}(n=c||(c={}))[n.MetricName=0]="MetricName",n[n.LabelName=1]="LabelName",n[n.LabelValue=2]="LabelValue",n[n.Function=3]="Function",n[n.Aggregation=4]="Aggregation",n[n.BinOpModifier=5]="BinOpModifier",n[n.BinOp=6]="BinOp",n[n.MatchOp=7]="MatchOp",n[n.AggregateOpModifier=8]="AggregateOpModifier",n[n.Duration=9]="Duration",n[n.Offset=10]="Offset",n[n.Bool=11]="Bool",n[n.AtModifiers=12]="AtModifiers",n[n.Number=13]="Number";let V=RegExp(`^(\\d+(${A.map(e=>e.label).join("|")}))+$`);function N(e,t){if(t.from>=t.to)return!1;let i=e.sliceDoc(t.from,t.to);return V.test(i)}function Y(e){var t;let i=e.parent;if(null!==i&&(null==(t=i.firstChild)?void 0:t.type.id)===37){let e=i.firstChild.firstChild;if(null!==e&&[21,9,16,17,11].includes(e.type.id))return!0}return!1}class U{constructor(e,t=1e4){this.prometheusClient=e,this.maxMetricsMetadata=t}getPrometheusClient(){return this.prometheusClient}destroy(){var e,t;null==(t=null==(e=this.prometheusClient)?void 0:e.destroy)||t.call(e)}promQL(e){let{state:t,pos:i}=e,a=(0,k.mv)(t).resolve(i,-1),r=function(e,t,i){var a,r,n,o,s,l,h,u,d,p,f,O,m,P,g,v,y,b,$,S,k;let x=[];switch(t.type.id){case 0:{if((null==(a=t.parent)?void 0:a.type.id)===154){x.push({kind:c.Duration});break}if((null==(r=t.parent)?void 0:r.type.id)===163||(null==(n=t.parent)?void 0:n.type.id)===168){x.push({kind:c.MatchOp});break}if((null==(o=t.parent)?void 0:o.type.id)===152||(null==(s=t.parent)?void 0:s.type.id)===158&&X(t.parent,153)){x.push({kind:c.Duration});break}let i=e.sliceDoc(t.from,t.to);E.filter(e=>e.label.includes(i)).length>0&&x.push({kind:c.BinOp});break}case 69:{if((null==(l=t.parent)?void 0:l.type.id)===0){let i=t.parent.parent;if((null==i?void 0:i.type.id)===169){x.push({kind:c.AtModifiers});break}if((null==i?void 0:i.type.id)===36){x.push({kind:c.AggregateOpModifier},{kind:c.BinOp});break}if((null==i?void 0:i.type.id)===161){let i=W(t,e);C.filter(e=>e.label===i).length>0&&x.push({kind:c.AggregateOpModifier}),x.push({kind:c.BinOp},{kind:c.Offset});break}if(i&&T(i,"Expr")){x.push({kind:c.BinOp},{kind:c.Offset});break}}let i=null==(h=t.parent)?void 0:h.parent;if(!i){x.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to)});break}T(i,"Expr","Expr")&&43!==i.type.id?44!==i.type.id||X(i,0)||(x.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to)},{kind:c.Function},{kind:c.Aggregation},{kind:c.BinOpModifier},{kind:c.Number}),X(i,58,59,60,63,64,65)&&!X(i,46)&&x.push({kind:c.Bool})):(x.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to)},{kind:c.Function},{kind:c.Aggregation}),43!==i.type.id&&152!==i.type.id&&x.push({kind:c.Number}));break}case 35:null!==t.firstChild&&0===t.firstChild.type.id&&x.push({kind:c.MetricName,metricName:""},{kind:c.Function},{kind:c.Aggregation},{kind:c.Number});break;case 39:x.push({kind:c.LabelName,metricName:function(e,t){let i=Q(e,36);if(!i)return"";let a="";return i.cursor().iterate(e=>{if(161===e.type.id&&(a=W(e.node,t)))return!1}),a}(t,e)});break;case 162:if(i>=t.to)break;x.push({kind:c.LabelName,metricName:W(t,e)});break;case 40:(null==(u=t.parent)?void 0:u.type.id)===39?x.push({kind:c.LabelName}):(null==(d=t.parent)?void 0:d.type.id)===163&&x.push({kind:c.LabelName,metricName:W(t,e)});break;case 42:if((null==(p=t.parent)?void 0:p.type.id)===163||(null==(f=t.parent)?void 0:f.type.id)===168){let i="";(null==(O=t.parent.firstChild)?void 0:O.type.id)===40?i=e.sliceDoc(t.parent.firstChild.from,t.parent.firstChild.to):(null==(m=t.parent.firstChild)?void 0:m.type.id)===41&&(i=e.sliceDoc(t.parent.firstChild.from,t.parent.firstChild.to).slice(1,-1));let a=W(t,e),r=Q(t,162),n=[];for(let t of[41,168,163])n=n.concat(_(r?r.getChildren(t):[],e));x.push({kind:c.LabelValue,metricName:a,labelName:i,matchers:n})}else(null==(g=null==(P=t.parent)?void 0:P.parent)?void 0:g.type.id)===39?x.push({kind:c.LabelName}):(null==(y=null==(v=t.parent)?void 0:v.parent)?void 0:y.type.id)===162&&x.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to).slice(1,-1)});break;case 50:(null==(b=t.parent)?void 0:b.type.id)===0&&(null==($=t.parent.parent)?void 0:$.type.id)===158?N(e,t)||x.push({kind:c.Duration}):x.push({kind:c.Number});break;case 153:N(e,t)||x.push({kind:c.Duration});break;case 154:x.push({kind:c.Duration});break;case 43:if(Y(t)){if(null===t.firstChild||t.firstChild.from<=i&&t.firstChild.to>=i){x.push({kind:c.Number});break}x.push({kind:c.MetricName,metricName:""},{kind:c.Function},{kind:c.Aggregation});break}x.push({kind:c.MetricName,metricName:""},{kind:c.Function},{kind:c.Aggregation});break;case 65:(null==(S=t.parent)?void 0:S.type.id)===164?x.push({kind:c.MatchOp}):(null==(k=t.parent)?void 0:k.type.id)===44&&x.push({kind:c.BinOp});break;case 165:case 166:case 167:case 164:x.push({kind:c.MatchOp});break;case 45:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 24:case 26:case 25:case 44:x.push({kind:c.BinOp})}return x}(t,a,i),n=Promise.resolve([]),o=!1,s=!0;for(let e of r)switch(e.kind){case c.Aggregation:o=!0,n=n.then(e=>e.concat(C));break;case c.Function:o=!0,n=n.then(e=>e.concat(q));break;case c.BinOpModifier:n=n.then(e=>e.concat(D));break;case c.BinOp:n=n.then(e=>e.concat(E));break;case c.MatchOp:n=n.then(e=>e.concat(F));break;case c.AggregateOpModifier:n=n.then(e=>e.concat(L));break;case c.Duration:s=!1,n=n.then(e=>e.concat(A));break;case c.Offset:n=n.then(e=>e.concat([{label:"offset"}]));break;case c.Bool:n=n.then(e=>e.concat([{label:"bool"}]));break;case c.AtModifiers:n=n.then(e=>e.concat(M));break;case c.Number:n=n.then(e=>e.concat(z));break;case c.MetricName:n=n.then(t=>this.autocompleteMetricName(t,e));break;case c.LabelName:n=n.then(t=>this.autocompleteLabelName(t,e));break;case c.LabelValue:n=n.then(t=>this.autocompleteLabelValue(t,e))}return n.then(e=>{var r,n;return function(e,t,i,a=!1,r=!0){return a&&e.push(...R),{from:t,to:i,options:e,validFor:r?/^[a-zA-Z0-9_:]+$/:void 0}}(e,function(e,t,i){var a,r,n,o,s,l,c;let h=e.doc.slice(t.from,i).toString(),u=t.from;if(162===t.type.id||39===t.type.id){let e;e=t.from+1,null!==t.firstChild&&(e=i),u=e}else 43===t.type.id&&null===t.firstChild||42===t.type.id&&((null==(a=t.parent)?void 0:a.type.id)===163||(null==(r=t.parent)?void 0:r.type.id)===168)?u++:(154===t.type.id||153===t.type.id&&!A.map(e=>e.label).includes(h[h.length-1])||50===t.type.id&&(null==(n=t.parent)?void 0:n.type.id)===0&&(null==(o=t.parent.parent)?void 0:o.type.id)===158||43===t.type.id&&Y(t)&&null!==t.firstChild||0===t.type.id&&((null==(s=t.parent)?void 0:s.type.id)===154||(null==(l=t.parent)?void 0:l.type.id)===152||(null==(c=t.parent)?void 0:c.type.id)===158&&X(t.parent,153)))&&(u=i);return u}(t,a,i),0===a.type.id?i:162===a.type.id||39===a.type.id||43===a.type.id||152===a.type.id||158===a.type.id?a.to-1:42===a.type.id&&((null==(r=a.parent)?void 0:r.type.id)===163||(null==(n=a.parent)?void 0:n.type.id)===168)?a.parent.to-1:a.to,o,s)})}autocompleteMetricName(e,t){if(!this.prometheusClient)return e;let i=new Map;return this.prometheusClient.metricNames(t.metricName).then(e=>{var t;for(let t of e)i.set(t,{label:t,type:"constant"});if(e.length<=this.maxMetricsMetadata)return null==(t=this.prometheusClient)?void 0:t.metricMetadata()}).then(t=>{var a;if(t)for(let[e,r]of i){let i=null!=(a=t[e])?a:t[e.replace(/(_count|_sum|_bucket|_total)$/,"")];if(i){if(i.length>1)for(let e of i)""===r.detail?r.detail=e.type:r.detail!==e.type&&(r.detail="unknown",r.info="multiple different definitions for this metric"),""===r.info?r.info=e.help:r.info!==e.help&&(r.info="multiple different definitions for this metric");else if(1===i.length){let{type:t,help:a}=i[0];("histogram"===t||"summary"===t)&&(e.endsWith("_count")&&(t="counter",a=`The total number of observations for: ${a}`),e.endsWith("_sum")&&(t="counter",a=`The total sum of observations for: ${a}`),e.endsWith("_bucket")&&(t="counter",a=`The total count of observations for a bucket in the histogram: ${a}`)),r.detail=t,r.info=a}}}return e.concat(Array.from(i.values()))})}autocompleteLabelName(e,t){return this.prometheusClient?this.prometheusClient.labelNames(t.metricName).then(t=>e.concat(t.map(e=>({label:e,type:"constant"})))):e}autocompleteLabelValue(e,t){return this.prometheusClient&&t.labelName?this.prometheusClient.labelValues(t.labelName,t.metricName,t.matchers).then(t=>e.concat(t.map(e=>({label:e,type:"text"})))):e}}var G={hasSubscribers:!1},j="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,Z=new Set,H="object"==typeof process&&process?process:{},I=e=>!!e&&e===Math.floor(e)&&e>0&&isFinite(e),B=e=>I(e)?e<=256?Uint8Array:e<=65536?Uint16Array:e<=0x100000000?Uint32Array:e<=Number.MAX_SAFE_INTEGER?J:null:null,J=class extends Array{constructor(e){super(e),this.fill(0)}},K=class e{heap;length;static #e=!1;static create(t){let i=B(t);if(!i)return[];e.#e=!0;let a=new e(t,i);return e.#e=!1,a}constructor(t,i){if(!e.#e)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(t),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},ee=class e{#e;#t;#i;#a;#r;#n;#o;#s;get perf(){return this.#s}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#c;#h;#u;#d;#p;#f;#O;#m;#P;#g;#v;#y;#b;#_;#$;#Q;#X;#T;static unsafeExposeInternals(e){return{starts:e.#y,ttls:e.#b,autopurgeTimers:e.#_,sizes:e.#v,keyMap:e.#h,keyList:e.#u,valList:e.#d,next:e.#p,prev:e.#f,get head(){return e.#O},get tail(){return e.#m},free:e.#P,isBackgroundFetch:t=>e.#S(t),backgroundFetch:(t,i,a,r)=>e.#k(t,i,a,r),moveToTail:t=>e.#x(t),indexes:t=>e.#w(t),rindexes:t=>e.#A(t),isStale:t=>e.#E(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#c}get size(){return this.#l}get fetchMethod(){return this.#n}get memoMethod(){return this.#o}get dispose(){return this.#i}get onInsert(){return this.#a}get disposeAfter(){return this.#r}constructor(t){let{max:i=0,ttl:a,ttlResolution:r=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:l,dispose:c,onInsert:h,disposeAfter:u,noDisposeOnSet:d,noUpdateTTL:p,maxSize:f=0,maxEntrySize:O=0,sizeCalculation:m,fetchMethod:P,memoMethod:g,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:y,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:_,ignoreFetchAbort:$,perf:Q}=t;if(void 0!==Q&&"function"!=typeof Q?.now)throw TypeError("perf option must have a now() method if specified");if(this.#s=Q??j,0!==i&&!I(i))throw TypeError("max option must be a nonnegative integer");let X=i?B(i):Array;if(!X)throw Error("invalid max value: "+i);if(this.#e=i,this.#t=f,this.maxEntrySize=O||this.#t,this.sizeCalculation=m,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw TypeError("sizeCalculation set to non-function")}if(void 0!==g&&"function"!=typeof g)throw TypeError("memoMethod must be a function if defined");if(this.#o=g,void 0!==P&&"function"!=typeof P)throw TypeError("fetchMethod must be a function if specified");if(this.#n=P,this.#Q=!!P,this.#h=new Map,this.#u=Array.from({length:i}).fill(void 0),this.#d=Array.from({length:i}).fill(void 0),this.#p=new X(i),this.#f=new X(i),this.#O=0,this.#m=0,this.#P=K.create(i),this.#l=0,this.#c=0,"function"==typeof c&&(this.#i=c),"function"==typeof h&&(this.#a=h),"function"==typeof u?(this.#r=u,this.#g=[]):(this.#r=void 0,this.#g=void 0),this.#$=!!this.#i,this.#T=!!this.#a,this.#X=!!this.#r,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!v,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!_,this.ignoreFetchAbort=!!$,0!==this.maxEntrySize){if(0!==this.#t&&!I(this.#t))throw TypeError("maxSize must be a positive integer if specified");if(!I(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#C()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!y,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=I(r)||0===r?r:1,this.ttlAutopurge=!!n,this.ttl=a||0,this.ttl){if(!I(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#R()}if(0===this.#e&&0===this.ttl&&0===this.#t)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let t="LRU_CACHE_UNBOUNDED";(e=>!Z.has(e))(t)&&(Z.add(t),((e,t,i,a)=>{"function"==typeof H.emitWarning?H.emitWarning(e,t,i,a):console.error(`[${i}] ${t}: ${e}`)})("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,e))}}getRemainingTTL(e){return this.#h.has(e)?1/0:0}#R(){let e=new J(this.#e),t=new J(this.#e);this.#b=e,this.#y=t;let i=this.ttlAutopurge?Array.from({length:this.#e}):void 0;this.#_=i,this.#F=(i,r,n=this.#s.now())=>{t[i]=0!==r?n:0,e[i]=r,a(i,r)},this.#D=i=>{t[i]=0!==e[i]?this.#s.now():0,a(i,e[i])};let a=this.ttlAutopurge?(e,t)=>{if(i?.[e]&&(clearTimeout(i[e]),i[e]=void 0),t&&0!==t&&i){let a=setTimeout(()=>{this.#E(e)&&this.#M(this.#u[e],"expire")},t+1);a.unref&&a.unref(),i[e]=a}}:()=>{};this.#q=(i,a)=>{if(e[a]){let o=e[a],s=t[a];if(!o||!s)return;i.ttl=o,i.start=s,i.now=r||n();let l=i.now-s;i.remainingTTL=o-l}};let r=0,n=()=>{let e=this.#s.now();if(this.ttlResolution>0){r=e;let t=setTimeout(()=>r=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=i=>{let a=this.#h.get(i);if(void 0===a)return 0;let o=e[a],s=t[a];return o&&s?o-((r||n())-s):1/0},this.#E=i=>{let a=t[i],o=e[i];return!!o&&!!a&&(r||n())-a>o}}#D=()=>{};#q=()=>{};#F=()=>{};#E=()=>!1;#C(){let e=new J(this.#e);this.#c=0,this.#v=e,this.#L=t=>{this.#c-=e[t],e[t]=0},this.#z=(e,t,i,a)=>{if(this.#S(t))return 0;if(!I(i))if(a){if("function"!=typeof a)throw TypeError("sizeCalculation must be a function");if(!I(i=a(t,e)))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#W=(t,i,a)=>{if(e[t]=i,this.#t){let i=this.#t-e[t];for(;this.#c>i;)this.#V(!0)}this.#c+=e[t],a&&(a.entrySize=i,a.totalCalculatedSize=this.#c)}}#L=e=>{};#W=(e,t,i)=>{};#z=(e,t,i,a)=>{if(i||a)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#w({allowStale:e=this.allowStale}={}){if(this.#l)for(let t=this.#m;this.#N(t)&&((e||!this.#E(t))&&(yield t),t!==this.#O);)t=this.#f[t]}*#A({allowStale:e=this.allowStale}={}){if(this.#l)for(let t=this.#O;this.#N(t)&&((e||!this.#E(t))&&(yield t),t!==this.#m);)t=this.#p[t]}#N(e){return void 0!==e&&this.#h.get(this.#u[e])===e}*entries(){for(let e of this.#w())void 0===this.#d[e]||void 0===this.#u[e]||this.#S(this.#d[e])||(yield[this.#u[e],this.#d[e]])}*rentries(){for(let e of this.#A())void 0===this.#d[e]||void 0===this.#u[e]||this.#S(this.#d[e])||(yield[this.#u[e],this.#d[e]])}*keys(){for(let e of this.#w()){let t=this.#u[e];void 0===t||this.#S(this.#d[e])||(yield t)}}*rkeys(){for(let e of this.#A()){let t=this.#u[e];void 0===t||this.#S(this.#d[e])||(yield t)}}*values(){for(let e of this.#w())void 0===this.#d[e]||this.#S(this.#d[e])||(yield this.#d[e])}*rvalues(){for(let e of this.#A())void 0===this.#d[e]||this.#S(this.#d[e])||(yield this.#d[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let i of this.#w()){let a=this.#d[i],r=this.#S(a)?a.__staleWhileFetching:a;if(void 0!==r&&e(r,this.#u[i],this))return this.#Y(this.#u[i],t)}}forEach(e,t=this){for(let i of this.#w()){let a=this.#d[i],r=this.#S(a)?a.__staleWhileFetching:a;void 0!==r&&e.call(t,r,this.#u[i],this)}}rforEach(e,t=this){for(let i of this.#A()){let a=this.#d[i],r=this.#S(a)?a.__staleWhileFetching:a;void 0!==r&&e.call(t,r,this.#u[i],this)}}purgeStale(){let e=!1;for(let t of this.#A({allowStale:!0}))this.#E(t)&&(this.#M(this.#u[t],"expire"),e=!0);return e}info(e){let t=this.#h.get(e);if(void 0===t)return;let i=this.#d[t],a=this.#S(i)?i.__staleWhileFetching:i;if(void 0===a)return;let r={value:a};if(this.#b&&this.#y){let e=this.#b[t],i=this.#y[t];e&&i&&(r.ttl=e-(this.#s.now()-i),r.start=Date.now())}return this.#v&&(r.size=this.#v[t]),r}dump(){let e=[];for(let t of this.#w({allowStale:!0})){let i=this.#u[t],a=this.#d[t],r=this.#S(a)?a.__staleWhileFetching:a;if(void 0===r||void 0===i)continue;let n={value:r};if(this.#b&&this.#y){n.ttl=this.#b[t];let e=this.#s.now()-this.#y[t];n.start=Math.floor(Date.now()-e)}this.#v&&(n.size=this.#v[t]),e.unshift([i,n])}return e}load(e){for(let[t,i]of(this.clear(),e)){if(i.start){let e=Date.now()-i.start;i.start=this.#s.now()-e}this.#U(t,i.value,i)}}set(e,t,i={}){let{status:a=G.hasSubscribers?{}:void 0}=i;i.status=a,a&&(a.op="set",a.key=e,void 0!==t&&(a.value=t),a.cache=this);let r=this.#U(e,t,i);return a&&G.hasSubscribers&&G.publish(a),r}#U(e,t,i,a){let{ttl:r=this.ttl,start:n,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=i;if(void 0===t)return l&&(l.set="deleted"),this.delete(e),this;let{noUpdateTTL:c=this.noUpdateTTL}=i,h=this.#S(t);l&&!h&&(l.value=t);let u=this.#z(e,t,i.size||0,s,l);if(this.maxEntrySize&&u>this.maxEntrySize)return this.#M(e,"set"),l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this;let d=0===this.#l?void 0:this.#h.get(e);if(void 0===d)d=0===this.#l?this.#m:0!==this.#P.length?this.#P.pop():this.#l===this.#e?this.#V(!1):this.#l,this.#u[d]=e,this.#d[d]=t,this.#h.set(e,d),this.#p[this.#m]=d,this.#f[d]=this.#m,this.#m=d,this.#l++,this.#W(d,u,l),l&&(l.set="add"),c=!1,this.#T&&!h&&this.#a?.(t,e,"add");else{this.#x(d);let i=this.#d[d];if(t!==i){if(!o)if(this.#S(i)){i!==a&&i.__abortController.abort(Error("replaced"));let{__staleWhileFetching:r}=i;void 0!==r&&r!==t&&(this.#$&&this.#i?.(r,e,"set"),this.#X&&this.#g?.push([r,e,"set"]))}else this.#$&&this.#i?.(i,e,"set"),this.#X&&this.#g?.push([i,e,"set"]);if(this.#L(d),this.#W(d,u,l),this.#d[d]=t,!h){let a=i&&this.#S(i)?i.__staleWhileFetching:i,r=void 0===a?"add":t!==a?"replace":"update";l&&(l.set=r,void 0!==a&&(l.oldValue=a)),this.#T&&this.onInsert?.(t,e,r)}}else h||(l&&(l.set="update"),this.#T&&this.onInsert?.(t,e,"update"))}if(0===r||this.#b||this.#R(),this.#b&&(c||this.#F(d,r,n),l&&this.#q(l,d)),!o&&this.#X&&this.#g){let e=this.#g,t;for(;t=e?.shift();)this.#r?.(...t)}return this}pop(){try{for(;this.#l;){let e=this.#d[this.#O];if(this.#V(!0),this.#S(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#X&&this.#g){let e=this.#g,t;for(;t=e?.shift();)this.#r?.(...t)}}}#V(e){let t=this.#O,i=this.#u[t],a=this.#d[t],r=this.#S(a);r&&a.__abortController.abort(Error("evicted"));let n=r?a.__staleWhileFetching:a;return(this.#$||this.#X)&&void 0!==n&&(this.#$&&this.#i?.(n,i,"evict"),this.#X&&this.#g?.push([n,i,"evict"])),this.#L(t),this.#_?.[t]&&(clearTimeout(this.#_[t]),this.#_[t]=void 0),e&&(this.#u[t]=void 0,this.#d[t]=void 0,this.#P.push(t)),1===this.#l?(this.#O=this.#m=0,this.#P.length=0):this.#O=this.#p[t],this.#h.delete(i),this.#l--,t}has(e,t={}){let{status:i=G.hasSubscribers?{}:void 0}=t;t.status=i,i&&(i.op="has",i.key=e,i.cache=this);let a=this.#G(e,t);return G.hasSubscribers&&G.publish(i),a}#G(e,t={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:a}=t,r=this.#h.get(e);if(void 0!==r){let e=this.#d[r];if(this.#S(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#E(r))return i&&this.#D(r),a&&(a.has="hit",this.#q(a,r)),!0;a&&(a.has="stale",this.#q(a,r))}else a&&(a.has="miss");return!1}peek(e,t={}){let{status:i=G.hasSubscribers||G.hasSubscribers?{}:void 0}=t;i&&(i.op="peek",i.key=e,i.cache=this),t.status=i;let a=this.#j(e,t);return G.hasSubscribers&&G.publish(i),a}#j(e,t){let{status:i,allowStale:a=this.allowStale}=t,r=this.#h.get(e);if(void 0===r||!a&&this.#E(r)){i&&(i.peek=void 0===r?"miss":"stale");return}let n=this.#d[r],o=this.#S(n)?n.__staleWhileFetching:n;return i&&(void 0!==o?(i.peek="hit",i.value=o):i.peek="miss"),o}#k(e,t,i,a){let r=void 0===t?void 0:this.#d[t];if(this.#S(r))return r;let n=new AbortController,{signal:o}=i;o?.addEventListener("abort",()=>n.abort(o.reason),{signal:n.signal});let s={signal:n.signal,options:i,context:a},l=(a,r=!1)=>{let{aborted:o}=n.signal,l=i.ignoreFetchAbort&&void 0!==a,h=i.ignoreFetchAbort||!!(i.allowStaleOnFetchAbort&&void 0!==a);if(i.status&&(o&&!r?(i.status.fetchAborted=!0,i.status.fetchError=n.signal.reason,l&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),o&&!l&&!r)return c(n.signal.reason,h);let d=this.#d[t];return(d===u||void 0===d&&l&&r)&&(void 0===a?void 0!==u.__staleWhileFetching?this.#d[t]=u.__staleWhileFetching:this.#M(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.#U(e,a,s.options,u))),a},c=(a,r)=>{let{aborted:o}=n.signal,s=o&&i.allowStaleOnFetchAbort,l=s||i.allowStaleOnFetchRejection,c=l||i.noDeleteOnFetchRejection;if(this.#d[t]===u&&(c&&(r||void 0!==u.__staleWhileFetching)?s||(this.#d[t]=u.__staleWhileFetching):this.#M(e,"fetch")),l)return i.status&&void 0!==u.__staleWhileFetching&&(i.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw a},h=(t,a)=>{let o=this.#n?.(e,r,s);n.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(t(void 0),i.allowStaleOnFetchAbort&&(t=e=>l(e,!0)))}),o&&o instanceof Promise?o.then(e=>t(void 0===e?void 0:e),a):void 0!==o&&t(o)};i.status&&(i.status.fetchDispatched=!0);let u=new Promise(h).then(l,e=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=e),c(e,!1))),d=Object.assign(u,{__abortController:n,__staleWhileFetching:r,__returned:void 0});return void 0===t?(this.#U(e,d,{...s.options,status:void 0}),t=this.#h.get(e)):this.#d[t]=d,d}#S(e){return!!this.#Q&&!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof AbortController}fetch(e,t={}){let i=G.hasSubscribers,{status:a=G.hasSubscribers||G.hasSubscribers?{}:void 0}=t;t.status=a,a&&t.context&&(a.context=t.context);let r=this.#Z(e,t);return a&&i&&(a.trace=!0,G.tracePromise(()=>r,a).catch(()=>{})),r}async #Z(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:u=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:f,forceRefresh:O=!1,status:m,signal:P}=t;if(m&&(m.op="fetch",m.key=e,O&&(m.forceRefresh=!0),m.cache=this),!this.#Q)return m&&(m.fetch="get"),this.#Y(e,{allowStale:i,updateAgeOnGet:a,noDeleteOnStaleGet:r,status:m});let g={allowStale:i,updateAgeOnGet:a,noDeleteOnStaleGet:r,ttl:n,noDisposeOnSet:o,size:s,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:u,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:m,signal:P},v=this.#h.get(e);if(void 0===v){m&&(m.fetch="miss");let t=this.#k(e,v,g,f);return t.__returned=t}{let t=this.#d[v];if(this.#S(t)){let e=i&&void 0!==t.__staleWhileFetching;return m&&(m.fetch="inflight",e&&(m.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let r=this.#E(v);if(!O&&!r)return m&&(m.fetch="hit"),this.#x(v),a&&this.#D(v),m&&this.#q(m,v),t;let n=this.#k(e,v,g,f),o=void 0!==n.__staleWhileFetching&&i;return m&&(m.fetch=r?"stale":"refresh",o&&r&&(m.returnedStale=!0)),o?n.__staleWhileFetching:n.__returned=n}}forceFetch(e,t={}){let i=G.hasSubscribers,{status:a=G.hasSubscribers||G.hasSubscribers?{}:void 0}=t;t.status=a,a&&t.context&&(a.context=t.context);let r=this.#H(e,t);return a&&i&&(a.trace=!0,G.tracePromise(()=>r,a).catch(()=>{})),r}async #H(e,t={}){let i=await this.#Z(e,t);if(void 0===i)throw Error("fetch() returned undefined");return i}memo(e,t={}){let{status:i=G.hasSubscribers?{}:void 0}=t;t.status=i,i&&(i.op="memo",i.key=e,t.context&&(i.context=t.context),i.cache=this);let a=this.#I(e,t);return i&&(i.value=a),G.hasSubscribers&&G.publish(i),a}#I(e,t={}){let i=this.#o;if(!i)throw Error("no memoMethod provided to constructor");let{context:a,status:r,forceRefresh:n,...o}=t;r&&n&&(r.forceRefresh=!0);let s=this.#Y(e,o),l=n||void 0===s;if(r&&(r.memo=l?"miss":"hit",l||(r.value=s)),!l)return s;let c=i(e,s,{options:o,context:a});return r&&(r.value=c),this.#U(e,c,o),c}get(e,t={}){let{status:i=G.hasSubscribers?{}:void 0}=t;t.status=i,i&&(i.op="get",i.key=e,i.cache=this);let a=this.#Y(e,t);return i&&(void 0!==a&&(i.value=a),G.hasSubscribers&&G.publish(i)),a}#Y(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:n}=t,o=this.#h.get(e);if(void 0===o){n&&(n.get="miss");return}let s=this.#d[o],l=this.#S(s);return n&&this.#q(n,o),this.#E(o)?l?(n&&(n.get="stale-fetching"),i&&void 0!==s.__staleWhileFetching?(n&&(n.returnedStale=!0),s.__staleWhileFetching):void 0):(r||this.#M(e,"expire"),n&&(n.get="stale"),i?(n&&(n.returnedStale=!0),s):void 0):(n&&(n.get=l?"fetching":"hit"),this.#x(o),a&&this.#D(o),l?s.__staleWhileFetching:s)}#B(e,t){this.#f[t]=e,this.#p[e]=t}#x(e){e!==this.#m&&(e===this.#O?this.#O=this.#p[e]:this.#B(this.#f[e],this.#p[e]),this.#B(this.#m,e),this.#m=e)}delete(e){return this.#M(e,"delete")}#M(e,t){G.hasSubscribers&&G.publish({op:"delete",delete:t,key:e,cache:this});let i=!1;if(0!==this.#l){let a=this.#h.get(e);if(void 0!==a)if(this.#_?.[a]&&(clearTimeout(this.#_?.[a]),this.#_[a]=void 0),i=!0,1===this.#l)this.#J(t);else{this.#L(a);let i=this.#d[a];if(this.#S(i)?i.__abortController.abort(Error("deleted")):(this.#$||this.#X)&&(this.#$&&this.#i?.(i,e,t),this.#X&&this.#g?.push([i,e,t])),this.#h.delete(e),this.#u[a]=void 0,this.#d[a]=void 0,a===this.#m)this.#m=this.#f[a];else if(a===this.#O)this.#O=this.#p[a];else{let e=this.#f[a];this.#p[e]=this.#p[a];let t=this.#p[a];this.#f[t]=this.#f[a]}this.#l--,this.#P.push(a)}}if(this.#X&&this.#g?.length){let e=this.#g,t;for(;t=e?.shift();)this.#r?.(...t)}return i}clear(){return this.#J("delete")}#J(e){for(let t of this.#A({allowStale:!0})){let i=this.#d[t];if(this.#S(i))i.__abortController.abort(Error("deleted"));else{let a=this.#u[t];this.#$&&this.#i?.(i,a,e),this.#X&&this.#g?.push([i,a,e])}}if(this.#h.clear(),this.#d.fill(void 0),this.#u.fill(void 0),this.#b&&this.#y){for(let e of(this.#b.fill(0),this.#y.fill(0),this.#_??[]))void 0!==e&&clearTimeout(e);this.#_?.fill(void 0)}if(this.#v&&this.#v.fill(0),this.#O=0,this.#m=0,this.#P.length=0,this.#c=0,this.#l=0,this.#X&&this.#g){let e=this.#g,t;for(;t=e?.shift();)this.#r?.(...t)}}};class et{constructor(e){this.httpMethod="POST",this.apiPrefix="/api/v1",this.fetchFn=(e,t)=>fetch(e,t),this.requestHeaders=new Headers,this.abortControllers=new Set,this.url=e.url?e.url:"",this.errorHandler=e.httpErrorHandler,this.lookbackInterval=e.lookbackInterval,e.fetchFn&&(this.fetchFn=e.fetchFn),e.httpMethod&&(this.httpMethod=e.httpMethod),e.apiPrefix&&(this.apiPrefix=e.apiPrefix),e.requestHeaders&&(this.requestHeaders=e.requestHeaders)}labelNames(e){let t=new URLSearchParams;if(this.lookbackInterval){let e=new Date,i=new Date(e.getTime()-this.lookbackInterval);t.set("start",i.toISOString()),t.set("end",e.toISOString())}e&&e.length>0&&t.set("match[]",$(e));let i=this.buildRequest(this.labelsEndpoint(),t);return this.fetchAPI(i.uri,{method:this.httpMethod,body:i.body}).catch(e=>(this.errorHandler&&this.errorHandler(e),[]))}labelValues(e,t,i){let a=new URLSearchParams;if(this.lookbackInterval){let e=new Date,t=new Date(e.getTime()-this.lookbackInterval);a.set("start",t.toISOString()),a.set("end",e.toISOString())}return t&&t.length>0&&a.set("match[]",$(t,i,e)),this.fetchAPI(`${this.labelValuesEndpoint().replace(/:name/gi,e)}?${a}`).catch(e=>(this.errorHandler&&this.errorHandler(e),[]))}metricMetadata(){return this.fetchAPI(this.metricMetadataEndpoint()).catch(e=>(this.errorHandler&&this.errorHandler(e),{}))}series(e,t,i){let a=new URLSearchParams;if(this.lookbackInterval){let e=new Date,t=new Date(e.getTime()-this.lookbackInterval);a.set("start",t.toISOString()),a.set("end",e.toISOString())}a.set("match[]",$(e,t,i));let r=this.buildRequest(this.seriesEndpoint(),a);return this.fetchAPI(r.uri,{method:this.httpMethod,body:r.body}).catch(e=>(this.errorHandler&&this.errorHandler(e),[]))}metricNames(){return this.labelValues("__name__")}flags(){return this.fetchAPI(this.flagsEndpoint()).catch(e=>(this.errorHandler&&this.errorHandler(e),{}))}destroy(){for(let e of this.abortControllers)e.abort();this.abortControllers.clear()}fetchAPI(e,t){let i=new AbortController;return this.abortControllers.add(i),t?(t.headers=this.requestHeaders,t.signal=i.signal):t={headers:this.requestHeaders,signal:i.signal},this.fetchFn(this.url+e,t).then(e=>{if(!e.ok&&![400,422,503].includes(e.status))throw Error(e.statusText);return e}).then(e=>e.json()).then(e=>{if("error"===e.status)throw Error(void 0!==e.error?e.error:'missing "error" field in response JSON');if(void 0===e.data)throw Error('missing "data" field in response JSON');return e.data}).finally(()=>{this.abortControllers.delete(i)})}buildRequest(e,t){let i=e,a=t;return"GET"===this.httpMethod&&(i=`${i}?${t}`,a=null),{uri:i,body:a}}labelsEndpoint(){return`${this.apiPrefix}/labels`}labelValuesEndpoint(){return`${this.apiPrefix}/label/:name/values`}seriesEndpoint(){return`${this.apiPrefix}/series`}metricMetadataEndpoint(){return`${this.apiPrefix}/metadata`}flagsEndpoint(){return`${this.apiPrefix}/status/flags`}}class ei{constructor(e){const t={ttl:e&&e.maxAge?e.maxAge:3e5,ttlAutopurge:!0};this.completeAssociation=new ee(t),this.metricMetadata={},this.labelValues=new ee(t),this.labelNames=[],this.flags={},(null==e?void 0:e.initialMetricList)&&this.setLabelValues("__name__",e.initialMetricList)}getAssociations(e){let t=this.completeAssociation.get(e);return t||(t=new Map,this.completeAssociation.set(e,t)),t}setAssociations(e,t){t.forEach(t=>{let i=this.getAssociations(e);for(let[e,a]of Object.entries(t)){if("__name__"===e)continue;let t=i.get(e);void 0===t?i.set(e,new Set([a])):t.add(a)}})}setLabelValuesAssociation(e,t,i){let a=this.getAssociations(e),r=a.get(t);void 0===r?a.set(t,new Set(i)):i.forEach(e=>{r.add(e)})}setLabelNamesAssociation(e,t){let i=this.getAssociations(e);t.forEach(e=>{"__name__"!==e&&(i.has(e)||i.set(e,new Set))})}setFlags(e){this.flags=e}getFlags(){return this.flags}setMetricMetadata(e){this.metricMetadata=e}getMetricMetadata(){return this.metricMetadata}setLabelNames(e,t){t&&t.length>0&&this.setLabelNamesAssociation(t,e),this.labelNames=e}getLabelNames(e){if(!e||0===e.length)return this.labelNames;let t=this.completeAssociation.get(e);return t?Array.from(t.keys()):[]}setLabelValues(e,t,i){i&&i.length>0&&this.setLabelValuesAssociation(i,e,t),this.labelValues.set(e,t)}getLabelValues(e,t){if(!t||0===t.length)return this.labelValues.get(e)||[];let i=this.completeAssociation.get(t);if(i){let t=i.get(e);return t?Array.from(t):[]}return[]}}class ea{constructor(e,t){this.client=e,this.cache=new ei(t)}labelNames(e){let t=this.cache.getLabelNames(e);return t&&t.length>0?Promise.resolve(t):this.client.labelNames(e).then(t=>(this.cache.setLabelNames(t,e),this.cache.getLabelNames(e)))}labelValues(e,t){let i=this.cache.getLabelValues(e,t);return i&&i.length>0?Promise.resolve(i):this.client.labelValues(e,t).then(i=>(this.cache.setLabelValues(e,i,t),i))}metricMetadata(){let e=this.cache.getMetricMetadata();return e&&Object.keys(e).length>0?Promise.resolve(e):this.client.metricMetadata().then(e=>(this.cache.setMetricMetadata(e),e))}series(e){return this.client.series(e).then(t=>(this.cache.setAssociations(e,t),t))}metricNames(){return this.labelValues("__name__")}flags(){let e=this.cache.getFlags();return e&&Object.keys(e).length>0?Promise.resolve(e):this.client.flags().then(e=>(this.cache.setFlags(e),e))}destroy(){var e,t;null==(t=(e=this.client).destroy)||t.call(e)}}function er(e){if(null==e?void 0:e.completeStrategy)return e.completeStrategy;if(null==e?void 0:e.remote){var t;return"function"==typeof(t=e.remote).labelNames&&"function"==typeof t.labelValues&&"function"==typeof t.metricMetadata&&"function"==typeof t.series&&"function"==typeof t.metricNames?new U(e.remote,e.maxMetricsMetadata):new U(new ea(new et(e.remote),e.remote.cache),e.maxMetricsMetadata)}return new U}var en=i(13313);class eo{promQL(){return e=>{let t=new x(e.state);return t.analyze(),t.getDiagnostics()}}}(o=h||(h={})).PromQL="PromQL",o.MetricName="MetricName";class es{constructor(){this.complete=er(),this.lint=new eo,this.enableLinter=!0,this.enableCompletion=!0}setComplete(e){return this.complete=er(e),this}getComplete(){return this.complete}activateCompletion(e){return this.enableCompletion=e,this}setLinter(e){return this.lint=e,this}getLinter(){return this.lint}activateLinter(e){return this.enableLinter=e,this}destroy(){var e,t;null==(t=(e=this.complete).destroy)||t.call(e)}asExtension(e=h.PromQL){var t,i;let a=k.bj.define({parser:v.configure({top:e}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}}),r=[a];if(this.enableCompletion){let e=a.data.of({autocomplete:e=>this.complete.promQL(e)});r=r.concat(e)}return this.enableLinter&&(r=r.concat((t=this.lint.promQL,i=this.lint,(0,en.bu)(t.call(i))))),r}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self["chunk_Prometheus "]=self["chunk_Prometheus "]||[]).push([["3499"],{57438(e,r,t){"use strict";t.d(r,{A:()=>w});var o=t(70451),a=t(11750),n=t(59238),l=t(81023),i=t(93399),s=t(24726),u=t(77308),d=t(56599),p=t(23434),c=t(26952),y=t(72052),v=t(88091),b=t(82561),f=t(95279),A=t(62540);let m={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},h=(0,u.A)(v.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,r[`underline${(0,s.A)(t.underline)}`],"button"===t.component&&r.button]}})((0,p.A)(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>"always"===e&&"inherit"!==r.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter((0,c.A)()).map(([r])=>({props:{underline:"always",color:r},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.4)`:(0,n.X4)(e.palette[r].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,n.X4)(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:(0,n.X4)(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${b.A.focusVisible}`]:{outline:"auto"}}}]}))),w=o.forwardRef(function(e,r){let t=(0,y.b)({props:e,name:"MuiLink"}),u=(0,d.A)(),{className:p,color:c="primary",component:v="a",onBlur:w,onFocus:g,TypographyClasses:x,underline:C="always",variant:T="inherit",sx:M,...R}=t,[k,H]=o.useState(!1),$={...t,color:c,component:v,focusVisible:k,underline:C,variant:T},O=(e=>{let{classes:r,component:t,focusVisible:o,underline:a}=e,n={root:["root",`underline${(0,s.A)(a)}`,"button"===t&&"button",o&&"focusVisible"]};return(0,l.A)(n,b.t,r)})($);return(0,A.jsx)(h,{color:c,className:(0,a.A)(O.root,p),classes:x,component:v,onBlur:e=>{(0,i.A)(e.target)||H(!1),w&&w(e)},onFocus:e=>{(0,i.A)(e.target)&&H(!0),g&&g(e)},ref:r,ownerState:$,variant:T,...R,sx:[...void 0===m[c]?[{color:c}]:[],...Array.isArray(M)?M:[M]],style:{...R.style,..."always"===C&&"inherit"!==c&&!m[c]&&{"--Link-underlineColor":(({theme:e,ownerState:r})=>{let t=r.color,o=(0,f.Yn)(e,`palette.${t}.main`,!1)||(0,f.Yn)(e,`palette.${t}`,!1)||r.color,a=(0,f.Yn)(e,`palette.${t}.mainChannel`)||(0,f.Yn)(e,`palette.${t}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:(0,n.X4)(o,.4)})({theme:u,ownerState:$})}}})})},82561(e,r,t){"use strict";t.d(r,{A:()=>l,t:()=>n});var o=t(29009),a=t(46733);function n(e){return(0,a.Ay)("MuiLink",e)}let l=(0,o.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"])},91394(e,r,t){"use strict";t.d(r,{A:()=>f});var o=t(70451),a=t(11750),n=t(81023),l=t(70872),i=t(77308),s=t(23434),u=t(72052),d=t(29009),p=t(46733);function c(e){return(0,p.Ay)("MuiTable",e)}(0,d.A)("MuiTable",["root","stickyHeader"]);var y=t(62540);let v=(0,i.A)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,t.stickyHeader&&r.stickyHeader]}})((0,s.A)(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),b="table",f=o.forwardRef(function(e,r){let t=(0,u.b)({props:e,name:"MuiTable"}),{className:i,component:s=b,padding:d="normal",size:p="medium",stickyHeader:f=!1,...A}=t,m={...t,component:s,padding:d,size:p,stickyHeader:f},h=(e=>{let{classes:r,stickyHeader:t}=e;return(0,n.A)({root:["root",t&&"stickyHeader"]},c,r)})(m),w=o.useMemo(()=>({padding:d,size:p,stickyHeader:f}),[d,p,f]);return(0,y.jsx)(l.A.Provider,{value:w,children:(0,y.jsx)(v,{as:s,role:s===b?null:"table",ref:r,className:(0,a.A)(h.root,i),ownerState:m,...A})})})},5139(e,r,t){"use strict";t.d(r,{A:()=>f});var o=t(70451),a=t(11750),n=t(81023),l=t(91644),i=t(77308),s=t(72052),u=t(29009),d=t(46733);function p(e){return(0,d.Ay)("MuiTableBody",e)}(0,u.A)("MuiTableBody",["root"]);var c=t(62540);let y=(0,i.A)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"table-row-group"}),v={variant:"body"},b="tbody",f=o.forwardRef(function(e,r){let t=(0,s.b)({props:e,name:"MuiTableBody"}),{className:o,component:i=b,...u}=t,d={...t,component:i},f=(e=>{let{classes:r}=e;return(0,n.A)({root:["root"]},p,r)})(d);return(0,c.jsx)(l.A.Provider,{value:v,children:(0,c.jsx)(y,{className:(0,a.A)(f.root,o),as:i,ref:r,role:i===b?null:"rowgroup",ownerState:d,...u})})})},347(e,r,t){"use strict";t.d(r,{A:()=>y});var o=t(70451),a=t(11750),n=t(81023),l=t(77308),i=t(72052),s=t(29009),u=t(46733);function d(e){return(0,u.Ay)("MuiTableContainer",e)}(0,s.A)("MuiTableContainer",["root"]);var p=t(62540);let c=(0,l.A)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,r)=>r.root})({width:"100%",overflowX:"auto"}),y=o.forwardRef(function(e,r){let t=(0,i.b)({props:e,name:"MuiTableContainer"}),{className:o,component:l="div",...s}=t,u={...t,component:l},y=(e=>{let{classes:r}=e;return(0,n.A)({root:["root"]},d,r)})(u);return(0,p.jsx)(c,{ref:r,as:l,className:(0,a.A)(y.root,o),ownerState:u,...s})})},70561(e,r,t){"use strict";t.d(r,{A:()=>f});var o=t(70451),a=t(11750),n=t(81023),l=t(91644),i=t(77308),s=t(72052),u=t(29009),d=t(46733);function p(e){return(0,d.Ay)("MuiTableHead",e)}(0,u.A)("MuiTableHead",["root"]);var c=t(62540);let y=(0,i.A)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"table-header-group"}),v={variant:"head"},b="thead",f=o.forwardRef(function(e,r){let t=(0,s.b)({props:e,name:"MuiTableHead"}),{className:o,component:i=b,...u}=t,d={...t,component:i},f=(e=>{let{classes:r}=e;return(0,n.A)({root:["root"]},p,r)})(d);return(0,c.jsx)(l.A.Provider,{value:v,children:(0,c.jsx)(y,{as:i,className:(0,a.A)(f.root,o),ref:r,role:i===b?null:"rowgroup",ownerState:d,...u})})})},3399(e,r,t){"use strict";t.d(r,{A:()=>A});var o=t(70451),a=t(11750),n=t(81023),l=t(59238),i=t(91644),s=t(77308),u=t(23434),d=t(72052),p=t(29009),c=t(46733);function y(e){return(0,c.Ay)("MuiTableRow",e)}let v=(0,p.A)("MuiTableRow",["root","selected","hover","head","footer"]);var b=t(62540);let f=(0,s.A)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,t.head&&r.head,t.footer&&r.footer]}})((0,u.A)(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${v.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${v.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),A=o.forwardRef(function(e,r){let t=(0,d.b)({props:e,name:"MuiTableRow"}),{className:l,component:s="tr",hover:u=!1,selected:p=!1,...c}=t,v=o.useContext(i.A),A={...t,component:s,hover:u,selected:p,head:v&&"head"===v.variant,footer:v&&"footer"===v.variant},m=(e=>{let{classes:r,selected:t,hover:o,head:a,footer:l}=e;return(0,n.A)({root:["root",t&&"selected",o&&"hover",a&&"head",l&&"footer"]},y,r)})(A);return(0,b.jsx)(f,{as:s,ref:r,className:(0,a.A)(m.root,l),role:"tr"===s?null:"row",ownerState:A,...c})})},29917(e,r,t){"use strict";var o;r.default=void 0,r.default=(0,((o=t(1448))&&o.__esModule?o:{default:o}).default)("M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12M8.8,14L10,12.8V4H14V12.8L15.2,14H8.8Z","PinOutline")},40362(e,r,t){"use strict";var o=t(56441);function a(){}function n(){}n.resetWarningCache=a,e.exports=function(){function e(e,r,t,a,n,l){if(l!==o){var i=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 i.name="Invariant Violation",i}}function r(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:a};return t.PropTypes=t,t}},62688(e,r,t){e.exports=t(40362)()},56441(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
|