Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
build
/
File Content:
5511.93023985e5c5efe49ae2.js.map
{"version":3,"file":"5511.93023985e5c5efe49ae2.js","mappings":"kNAQO,SAASA,EAAgB,CAC9B,GAAAC,EAAK,WACL,KAAAC,EAAOC,EACP,WAAAC,EAAa,EACf,EAIG,CACD,OACE,gBAAC,YACC,gBAAC,UACC,GAAAH,EACA,QAAQ,YACR,KAAK,IACL,KAAK,IACL,YAAY,iBACZ,YAAaG,EACb,aAAcA,EACd,OAAO,QAEP,gBAAC,QAAK,EAAE,wBAAwB,KAAAF,CAAA,CAAY,CAC9C,CACF,CAEJ,C,0BC1BO,MAAMG,EAAuB,OACvBF,EAAmB,OAUnBG,MAAO,QAAK,SAAcC,EAAc,CACnD,KAAM,CAAE,KAAAC,EAAM,QAAAC,EAAS,aAAAC,EAAc,aAAAC,EAAc,SAAAC,CAAS,EAAIL,EAG1D,CAAE,OAAAM,EAAQ,OAAAC,EAAQ,iBAAAC,EAAkB,iBAAAC,CAAiB,EAAIR,EAMzDS,EAAkB,GAAKT,EAAK,UAAY,EAGxCU,KAAO,MACX,CACE,GAAIL,EAAO,EACX,GAAIA,EAAO,EACX,GAAIC,EAAO,EACX,GAAIA,EAAO,CACb,EACAC,KAAmB,MAAoCA,CAAgB,EAAI,GAAK,IAChFC,KAAmB,MAAoCA,CAAgB,EAAI,GAAK,IAChFC,CACF,EAEME,EAAW,YAAYX,EAAK,KAC5BY,EAAkB,oBAAoBZ,EAAK,KAEjD,OACE,gCACE,gBAACR,EAAe,CAAC,GAAImB,EAAU,WAAYF,CAAA,CAAiB,EAC5D,gBAACjB,EAAe,CAAC,GAAIoB,EAAiB,KAAMf,EAAsB,WAAYY,CAAA,CAAiB,EAC/F,gBAAC,KACC,QAAUI,GAAUZ,EAAQY,EAAOb,CAAI,EACvC,MAAO,CAAE,OAAQ,SAAU,EAC3B,aAAY,cAAcK,EAAO,UAAUC,EAAO,MAElD,gBAAC,QACC,aAAcF,E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C,CACvE,KAAM,CAAE,MAAAD,EAAO,WAAAmC,EAAY,SAAAD,EAAU,IAAAX,EAAK,MAAAyD,EAAO,MAAAC,CAAM,EAAInD,GAAQ,EAC7D,CAAE,MAAOoD,EAAc,IAAK9E,CAAO,EAAIL,GAA0B,CACrE,MAAAC,EACA,OAAA/D,EACA,MAAAgE,CACF,CAAC,EACK,CAAE,SAAAwB,EAAU,UAAAvB,CAAU,EAAIgF,EAChC,MAAO,CAAE,QAAS3D,EAAK,OAAAnB,EAAQ,SAAAqB,EAAU,UAAAvB,EAAW,MAAAF,EAAO,WAAAmC,EAAY,SAAAD,EAAU,UAAW8C,EAAO,UAAWC,CAAM,CACtH,CAEA,SAASvB,IAAW,CAClB,KAAM,CAACN,EAAWC,CAAY,KAAI,YAA6B,MAAS,EAClEC,KAAiB,eAAY,IAAMD,EAAa,MAAS,EAAG,CAACA,CAAY,CAAC,EAC1E,CAACE,EAAWC,CAAY,KAAI,YAA6B,MAAS,EAClEC,KAAiB,eAAY,IAAMD,EAAa,MAAS,EAAG,CAACA,CAAY,CAAC,EAEhF,MAAO,CAAE,UAAAJ,EAAW,aAAAC,EAAc,eAAAC,EAAgB,UAAAC,EAAW,aAAAC,EAAc,eAAAC,CAAe,CAC5F,C,8DCrYO,SAASX,EAAoBqC,EAAqB,CACvD,SAAO,WAAQ,OACN,MAAcA,CAAM,EAC1B,CAACA,CAAM,CAAC,CACb,C","sources":["webpack://grafana/./public/app/plugins/panel/nodeGraph/EdgeArrowMarker.tsx","webpack://grafana/./public/app/plugins/panel/nodeGraph/Edge.tsx","webpack://grafana/./public/app/plugins/panel/nodeGraph/EdgeLabel.tsx","webpack://grafana/./public/app/plugins/panel/nodeGraph/Legend.tsx","webpack://grafana/./public/app/plugins/panel/nodeGraph/Marker.tsx","webpack://grafana/./public/app/plugins/panel/nodeGraph/ViewControls.tsx","webpack://grafana/./public/app/plugins/panel/nodeGraph/createLayoutWorker.ts","webpack://grafana/./public/app/plugins/panel/nodeGraph/useNodeLimit.ts","webpack://grafana/./public/app/plugins/panel/nodeGraph/layout.ts","webpack://grafana/./public/app/plugins/panel/nodeGraph/useContextMenu.tsx","webpack://grafana/./public/app/plugins/panel/nodeGraph/useFocusPositionOnLayout.ts","webpack://grafana/./public/app/plugins/panel/nodeGraph/useHighlight.ts","webpack://grafana/./public/app/plugins/panel/nodeGraph/usePanning.ts","webpack://grafana/./public/app/plugins/panel/nodeGraph/useZoom.ts","webpack://grafana/./public/app/plugins/panel/nodeGraph/NodeGraph.tsx","webpack://grafana/./public/app/plugins/panel/nodeGraph/useCategorizeFrames.ts"],"sourcesContent":["import React from 'react';\n\nimport { defaultEdgeColor } from './Edge';\n\n/**\n * In SVG you need to supply this kind of marker that can be then referenced from a line segment as an ending of the\n * line turning in into arrow. Needs to be included in the svg element and then referenced as markerEnd=\"url(#triangle)\"\n */\nexport function EdgeArrowMarker({\n id = 'triangle',\n fill = defaultEdgeColor,\n headHeight = 10,\n}: {\n id?: string;\n fill?: string;\n headHeight?: number;\n}) {\n return (\n <defs>\n <marker\n id={id}\n viewBox=\"0 0 10 10\"\n refX=\"1\" // shift the arrow head slightly closer to the center of the line it will be attached to, to ensure no empty space is shown between the line and the arrow head\n refY=\"5\"\n markerUnits=\"userSpaceOnUse\"\n markerWidth={headHeight} // equal to the height just for simplicily\n markerHeight={headHeight}\n orient=\"auto\"\n >\n <path d=\"M 0 0 L 10 5 L 0 10 z\" fill={fill} />\n </marker>\n </defs>\n );\n}\n","import React, { MouseEvent, memo } from 'react';\n\nimport { EdgeArrowMarker } from './EdgeArrowMarker';\nimport { computeNodeCircumferenceStrokeWidth, nodeR } from './Node';\nimport { EdgeDatum, NodeDatum } from './types';\nimport { shortenLine } from './utils';\n\nexport const highlightedEdgeColor = '#a00';\nexport const defaultEdgeColor = '#999';\n\ninterface Props {\n edge: EdgeDatum;\n hovering: boolean;\n onClick: (event: MouseEvent<SVGElement>, link: EdgeDatum) => void;\n onMouseEnter: (id: string) => void;\n onMouseLeave: (id: string) => void;\n}\n\nexport const Edge = memo(function Edge(props: Props) {\n const { edge, onClick, onMouseEnter, onMouseLeave, hovering } = props;\n\n // Not great typing but after we do layout these properties are full objects not just references\n const { source, target, sourceNodeRadius, targetNodeRadius } = edge as {\n source: NodeDatum;\n target: NodeDatum;\n sourceNodeRadius: number;\n targetNodeRadius: number;\n };\n const arrowHeadHeight = 10 + edge.thickness * 2; // resized value, just to make the UI nicer\n\n // As the nodes have some radius we want edges to end outside of the node circle.\n const line = shortenLine(\n {\n x1: source.x!,\n y1: source.y!,\n x2: target.x!,\n y2: target.y!,\n },\n sourceNodeRadius + computeNodeCircumferenceStrokeWidth(sourceNodeRadius) / 2 || nodeR,\n targetNodeRadius + computeNodeCircumferenceStrokeWidth(targetNodeRadius) / 2 || nodeR,\n arrowHeadHeight\n );\n\n const markerId = `triangle-${edge.id}`;\n const coloredMarkerId = `triangle-colored-${edge.id}`;\n\n return (\n <>\n <EdgeArrowMarker id={markerId} headHeight={arrowHeadHeight} />\n <EdgeArrowMarker id={coloredMarkerId} fill={highlightedEdgeColor} headHeight={arrowHeadHeight} />\n <g\n onClick={(event) => onClick(event, edge)}\n style={{ cursor: 'pointer' }}\n aria-label={`Edge from: ${source.id} to: ${target.id}`}\n >\n <line\n strokeWidth={(hovering ? 1 : 0) + (edge.highlighted ? 1 : 0) + edge.thickness}\n stroke={edge.highlighted ? highlightedEdgeColor : defaultEdgeColor}\n x1={line.x1}\n y1={line.y1}\n x2={line.x2}\n y2={line.y2}\n markerEnd={`url(#${edge.highlighted ? coloredMarkerId : markerId})`}\n />\n <line\n stroke={'transparent'}\n x1={line.x1}\n y1={line.y1}\n x2={line.x2}\n y2={line.y2}\n strokeWidth={20}\n onMouseEnter={() => {\n onMouseEnter(edge.id);\n }}\n onMouseLeave={() => {\n onMouseLeave(edge.id);\n }}\n />\n </g>\n </>\n );\n});\n","import { css } from '@emotion/css';\nimport React, { memo } from 'react';\n\nimport { GrafanaTheme2 } from '@grafana/data';\nimport { useStyles2 } from '@grafana/ui';\n\nimport { nodeR } from './Node';\nimport { EdgeDatum, NodeDatum } from './types';\nimport { shortenLine } from './utils';\n\nconst getStyles = (theme: GrafanaTheme2) => {\n return {\n mainGroup: css`\n pointer-events: none;\n font-size: 8px;\n `,\n\n background: css`\n fill: ${theme.components.tooltip.background};\n `,\n\n text: css`\n fill: ${theme.components.tooltip.text};\n `,\n };\n};\n\ninterface Props {\n edge: EdgeDatum;\n}\nexport const EdgeLabel = memo(function EdgeLabel(props: Props) {\n const { edge } = props;\n // Not great typing, but after we do layout these properties are full objects not just references\n const { source, target, sourceNodeRadius, targetNodeRadius } = edge as {\n source: NodeDatum;\n target: NodeDatum;\n sourceNodeRadius: number;\n targetNodeRadius: number;\n };\n\n // As the nodes have some radius we want edges to end outside the node circle.\n const line = shortenLine(\n {\n x1: source.x!,\n y1: source.y!,\n x2: target.x!,\n y2: target.y!,\n },\n sourceNodeRadius || nodeR,\n targetNodeRadius || nodeR\n );\n\n const middle = {\n x: line.x1 + (line.x2 - line.x1) / 2,\n y: line.y1 + (line.y2 - line.y1) / 2,\n };\n const styles = useStyles2(getStyles);\n\n const stats = [edge.mainStat, edge.secondaryStat].filter((x) => x);\n const height = stats.length > 1 ? '30' : '15';\n const middleOffset = stats.length > 1 ? 15 : 7.5;\n let offset = stats.length > 1 ? -5 : 2.5;\n\n const contents: JSX.Element[] = [];\n stats.forEach((stat, index) => {\n contents.push(\n <text key={index} className={styles.text} x={middle.x} y={middle.y + offset} textAnchor={'middle'}>\n {stat}\n </text>\n );\n offset += 15;\n });\n\n return (\n <g className={styles.mainGroup}>\n <rect\n className={styles.background}\n x={middle.x - 40}\n y={middle.y - middleOffset}\n width=\"80\"\n height={height}\n rx=\"5\"\n />\n {contents}\n </g>\n );\n});\n","import { css } from '@emotion/css';\nimport React, { useCallback } from 'react';\n\nimport { Field, FieldColorModeId, GrafanaTheme2 } from '@grafana/data';\nimport { LegendDisplayMode } from '@grafana/schema';\nimport { Icon, useStyles2, useTheme2, VizLegend, VizLegendItem, VizLegendListItem } from '@grafana/ui';\n\nimport { Config } from './layout';\nimport { NodeDatum } from './types';\n\nfunction getStyles() {\n return {\n item: css`\n label: LegendItem;\n flex-grow: 0;\n `,\n\n legend: css`\n label: Legend;\n pointer-events: all;\n `,\n };\n}\n\ninterface Props {\n nodes: NodeDatum[];\n onSort: (sort: Config['sort']) => void;\n sort?: Config['sort'];\n sortable: boolean;\n}\n\nexport const Legend = function Legend(props: Props) {\n const { nodes, onSort, sort, sortable } = props;\n\n const theme = useTheme2();\n const styles = useStyles2(getStyles);\n const colorItems = getColorLegendItems(nodes, theme);\n\n const onClick = useCallback(\n (item: VizLegendItem<ItemData>) => {\n onSort({\n field: item.data!.field,\n ascending: item.data!.field === sort?.field ? !sort?.ascending : false,\n });\n },\n [sort, onSort]\n );\n\n return (\n <VizLegend<ItemData>\n className={styles.legend}\n displayMode={LegendDisplayMode.List}\n placement={'bottom'}\n items={colorItems}\n itemRenderer={(item) => {\n return (\n <>\n <VizLegendListItem item={item} className={styles.item} onLabelClick={sortable ? onClick : undefined} />\n {sortable &&\n (sort?.field === item.data!.field ? <Icon name={sort!.ascending ? 'arrow-up' : 'arrow-down'} /> : '')}\n </>\n );\n }}\n />\n );\n};\n\ninterface ItemData {\n field: Field;\n}\n\nfunction getColorLegendItems(nodes: NodeDatum[], theme: GrafanaTheme2): Array<VizLegendItem<ItemData>> {\n if (!nodes.length) {\n return [];\n }\n const fields = [nodes[0].mainStat, nodes[0].secondaryStat].filter((item): item is NonNullable<typeof item> =>\n Boolean(item)\n );\n\n const node = nodes.find((n) => n.arcSections.length > 0);\n if (node) {\n if (node.arcSections[0]!.config?.color?.mode === FieldColorModeId.Fixed) {\n // We assume in this case we have a set of fixed colors which map neatly into a basic legend.\n\n // Lets collect and deduplicate as there isn't a requirement for 0 size arc section to be defined\n fields.push(...new Set(nodes.map((n) => n.arcSections).flat()));\n }\n }\n\n if (nodes[0].color) {\n fields.push(nodes[0].color);\n }\n\n return fields.map((f) => {\n const item: VizLegendItem = {\n label: f.config.displayName || f.name,\n yAxis: 0,\n data: { field: f },\n };\n if (f.config.color?.mode === FieldColorModeId.Fixed && f.config.color?.fixedColor) {\n item.color = theme.visualization.getColorByName(f.config.color?.fixedColor || '');\n } else if (f.config.color?.mode) {\n item.gradient = f.config.color?.mode;\n }\n\n if (!(item.color || item.gradient)) {\n // Defaults to gray color\n item.color = theme.visualization.getColorByName('');\n }\n\n return item;\n });\n}\n","import { css } from '@emotion/css';\nimport React, { MouseEvent, memo } from 'react';\n\nimport { GrafanaTheme2 } from '@grafana/data';\nimport { useStyles2 } from '@grafana/ui';\n\nimport { NodesMarker } from './types';\n\nconst nodeR = 40;\n\nconst getStyles = (theme: GrafanaTheme2) => ({\n mainGroup: css`\n cursor: pointer;\n font-size: 10px;\n `,\n\n mainCircle: css`\n fill: ${theme.components.panel.background};\n stroke: ${theme.colors.border.strong};\n `,\n text: css`\n width: 50px;\n height: 50px;\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n `,\n});\n\nexport const Marker = memo(function Marker(props: {\n marker: NodesMarker;\n onClick?: (event: MouseEvent<SVGElement>, marker: NodesMarker) => void;\n}) {\n const { marker, onClick } = props;\n const { node } = marker;\n const styles = useStyles2(getStyles);\n\n if (!(node.x !== undefined && node.y !== undefined)) {\n return null;\n }\n\n return (\n <g\n data-node-id={node.id}\n className={styles.mainGroup}\n onClick={(event) => {\n onClick?.(event, marker);\n }}\n aria-label={`Hidden nodes marker: ${node.id}`}\n >\n <circle className={styles.mainCircle} r={nodeR} cx={node.x} cy={node.y} />\n <g>\n <foreignObject x={node.x - 25} y={node.y - 25} width=\"50\" height=\"50\">\n <div className={styles.text}>\n {/* we limit the count to 101 so if we have more than 100 nodes we don't have exact count */}\n <span>{marker.count > 100 ? '>100' : marker.count} nodes</span>\n </div>\n </foreignObject>\n </g>\n </g>\n );\n});\n","import { css } from '@emotion/css';\nimport React, { useState } from 'react';\n\nimport { Button, HorizontalGroup, useStyles2, VerticalGroup } from '@grafana/ui';\n\nfunction getStyles() {\n return {\n wrapper: css`\n label: wrapper;\n pointer-events: all;\n `,\n };\n}\n\ninterface Props<Config> {\n config: Config;\n onConfigChange: (config: Config) => void;\n onPlus: () => void;\n onMinus: () => void;\n scale: number;\n disableZoomOut?: boolean;\n disableZoomIn?: boolean;\n}\n\n/**\n * Control buttons for zoom but also some layout config inputs mainly for debugging.\n */\nexport function ViewControls<Config extends Record<string, any>>(props: Props<Config>) {\n const { config, onConfigChange, onPlus, onMinus, disableZoomOut, disableZoomIn } = props;\n const [showConfig, setShowConfig] = useState(false);\n\n // For debugging the layout, should be removed here and maybe moved to panel config later on\n const allowConfiguration = false;\n const styles = useStyles2(getStyles);\n\n return (\n <div className={styles.wrapper}>\n <VerticalGroup spacing=\"sm\">\n <HorizontalGroup spacing=\"xs\">\n <Button\n icon={'plus-circle'}\n onClick={onPlus}\n size={'md'}\n title={'Zoom in'}\n variant=\"secondary\"\n disabled={disableZoomIn}\n />\n <Button\n icon={'minus-circle'}\n onClick={onMinus}\n size={'md'}\n title={'Zoom out'}\n variant=\"secondary\"\n disabled={disableZoomOut}\n />\n </HorizontalGroup>\n <HorizontalGroup spacing=\"xs\">\n <Button\n icon={'code-branch'}\n onClick={() => onConfigChange({ ...config, gridLayout: false })}\n size={'md'}\n title={'Default layout'}\n variant=\"secondary\"\n disabled={!config.gridLayout}\n />\n <Button\n icon={'apps'}\n onClick={() => onConfigChange({ ...config, gridLayout: true })}\n size={'md'}\n title={'Grid layout'}\n variant=\"secondary\"\n disabled={config.gridLayout}\n />\n </HorizontalGroup>\n </VerticalGroup>\n\n {allowConfiguration && (\n <Button size={'xs'} fill=\"text\" onClick={() => setShowConfig((showConfig) => !showConfig)}>\n {showConfig ? 'Hide config' : 'Show config'}\n </Button>\n )}\n\n {allowConfiguration &&\n showConfig &&\n Object.keys(config)\n .filter((k) => k !== 'show')\n .map((k) => (\n <div key={k}>\n {k}\n <input\n style={{ width: 50 }}\n type={'number'}\n value={config[k]}\n onChange={(e) => {\n onConfigChange({ ...config, [k]: parseFloat(e.target.value) });\n }}\n />\n </div>\n ))}\n </div>\n );\n}\n","import { CorsWorker as Worker } from 'app/core/utils/CorsWorker';\n\nexport const createWorker = () => new Worker(new URL('./layout.worker.js', import.meta.url));\nexport const createMsaglWorker = () => new Worker(new URL('./layoutMsagl.worker.js', import.meta.url));\n","import { fromPairs, uniq } from 'lodash';\nimport { useMemo } from 'react';\n\nimport { Config } from './layout';\nimport { EdgeDatumLayout, NodeDatum, NodesMarker } from './types';\n\ntype NodesMap = Record<string, NodeDatum>;\ntype EdgesMap = Record<string, EdgeDatumLayout[]>;\n\n/**\n * Limits the number of nodes by going from the roots breadth first until we have desired number of nodes.\n */\nexport function useNodeLimit(\n nodes: NodeDatum[],\n edges: EdgeDatumLayout[],\n limit: number,\n config: Config,\n rootId?: string\n): { nodes: NodeDatum[]; edges: EdgeDatumLayout[]; markers?: NodesMarker[] } {\n // This is pretty expensive also this happens once in the layout code when initializing position but it's a bit\n // tricky to do it only once and reuse the results because layout directly modifies the nodes.\n const [edgesMap, nodesMap] = useMemo(() => {\n // Make sure we don't compute this until we have all the data.\n if (!(nodes.length && edges.length)) {\n return [{}, {}];\n }\n\n const edgesMap = edges.reduce<EdgesMap>((acc, e) => {\n acc[e.source.id] = [...(acc[e.source.id] ?? []), e];\n acc[e.target.id] = [...(acc[e.target.id] ?? []), e];\n return acc;\n }, {});\n\n const nodesMap = nodes.reduce<NodesMap>((acc, node) => {\n acc[node.id] = node;\n return acc;\n }, {});\n return [edgesMap, nodesMap];\n }, [edges, nodes]);\n\n return useMemo(() => {\n if (nodes.length <= limit) {\n return { nodes, edges };\n }\n\n if (config.gridLayout) {\n return limitGridLayout(nodes, limit, rootId);\n }\n\n return limitGraphLayout(nodes, edges, nodesMap, edgesMap, limit, rootId);\n }, [edges, edgesMap, limit, nodes, nodesMap, rootId, config.gridLayout]);\n}\n\nexport function limitGraphLayout(\n nodes: NodeDatum[],\n edges: EdgeDatumLayout[],\n nodesMap: NodesMap,\n edgesMap: EdgesMap,\n limit: number,\n rootId?: string\n) {\n let roots;\n if (rootId) {\n roots = [nodesMap[rootId]];\n } else {\n roots = nodes.filter((n) => n.incoming === 0);\n // TODO: same code as layout\n if (!roots.length) {\n roots = [nodes[0]];\n }\n }\n\n const { visibleNodes, markers } = collectVisibleNodes(limit, roots, nodesMap, edgesMap);\n\n const markersWithStats = collectMarkerStats(markers, visibleNodes, nodesMap, edgesMap);\n const markersMap = fromPairs(markersWithStats.map((m) => [m.node.id, m]));\n\n for (const marker of markersWithStats) {\n if (marker.count === 1) {\n delete markersMap[marker.node.id];\n visibleNodes[marker.node.id] = marker.node;\n }\n }\n\n // Show all edges between visible nodes or placeholder markers\n const visibleEdges = edges.filter(\n (e) =>\n (visibleNodes[e.source.id] || markersMap[e.source.id]) && (visibleNodes[e.target.id] || markersMap[e.target.id])\n );\n\n return {\n nodes: Object.values(visibleNodes),\n edges: visibleEdges,\n markers: Object.values(markersMap),\n };\n}\n\nexport function limitGridLayout(nodes: NodeDatum[], limit: number, rootId?: string) {\n let start = 0;\n let stop = limit;\n let markers: NodesMarker[] = [];\n\n if (rootId) {\n const index = nodes.findIndex((node) => node.id === rootId);\n const prevLimit = Math.floor(limit / 2);\n let afterLimit = prevLimit;\n start = index - prevLimit;\n if (start < 0) {\n afterLimit += Math.abs(start);\n start = 0;\n }\n stop = index + afterLimit + 1;\n\n if (stop > nodes.length) {\n if (start > 0) {\n start = Math.max(0, start - (stop - nodes.length));\n }\n stop = nodes.length;\n }\n\n if (start > 1) {\n markers.push({ node: nodes[start - 1], count: start });\n }\n\n if (nodes.length - stop > 1) {\n markers.push({ node: nodes[stop], count: nodes.length - stop });\n }\n } else {\n if (nodes.length - limit > 1) {\n markers = [{ node: nodes[limit], count: nodes.length - limit }];\n }\n }\n\n return {\n nodes: nodes.slice(start, stop),\n edges: [],\n markers,\n };\n}\n\n/**\n * Breath first traverse of the graph collecting all the nodes until we reach the limit. It also returns markers which\n * are nodes on the edges which did not make it into the limit but can be used as clickable markers for manually\n * expanding the graph.\n * @param limit\n * @param roots - Nodes where to start the traversal. In case of exploration this can be any node that user clicked on.\n * @param nodesMap - Node id to node\n * @param edgesMap - This is a map of node id to a list of edges (both ingoing and outgoing)\n */\nfunction collectVisibleNodes(\n limit: number,\n roots: NodeDatum[],\n nodesMap: Record<string, NodeDatum>,\n edgesMap: Record<string, EdgeDatumLayout[]>\n): { visibleNodes: Record<string, NodeDatum>; markers: NodeDatum[] } {\n const visibleNodes: Record<string, NodeDatum> = {};\n let stack = [...roots];\n\n while (Object.keys(visibleNodes).length < limit && stack.length > 0) {\n let current = stack.shift()!;\n\n // We are already showing this node. This can happen because graphs can be cyclic\n if (visibleNodes[current!.id]) {\n continue;\n }\n\n // Show this node\n visibleNodes[current.id] = current;\n const edges = edgesMap[current.id] || [];\n\n // Add any nodes that are connected to it on top of the stack to be considered in the next pass\n const connectedNodes = edges.map((e) => {\n // We don't care about direction here. Should not make much difference but argument could be made that with\n // directed graphs it should walk the graph directionally. Problem is when we focus on a node in the middle of\n // graph (not going from the \"natural\" root) we also want to show what was \"before\".\n const id = e.source.id === current.id ? e.target.id : e.source.id;\n return nodesMap[id];\n });\n stack = stack.concat(connectedNodes);\n }\n\n // Right now our stack contains all the nodes which are directly connected to the graph but did not make the cut.\n // Some of them though can be nodes we already are showing so we have to filter them and then use them as markers.\n const markers = uniq(stack.filter((n) => !visibleNodes[n.id]));\n\n return { visibleNodes, markers };\n}\n\nfunction collectMarkerStats(\n markers: NodeDatum[],\n visibleNodes: Record<string, NodeDatum>,\n nodesMap: Record<string, NodeDatum>,\n edgesMap: Record<string, EdgeDatumLayout[]>\n): NodesMarker[] {\n return markers.map((marker) => {\n const nodesToCount: Record<string, NodeDatum> = {};\n let count = 0;\n let stack = [marker];\n while (stack.length > 0 && count <= 101) {\n let current = stack.shift()!;\n\n // We are showing this node so not going to count it as hidden.\n if (visibleNodes[current.id] || nodesToCount[current.id]) {\n continue;\n }\n\n if (!nodesToCount[current.id]) {\n count++;\n }\n nodesToCount[current.id] = current;\n\n const edges = edgesMap[current.id] || [];\n\n const connectedNodes = edges.map((e) => {\n const id = e.source.id === current.id ? e.target.id : e.source.id;\n return nodesMap[id];\n });\n stack = stack.concat(connectedNodes);\n }\n\n return {\n node: marker,\n count: count,\n };\n });\n}\n","import { useEffect, useMemo, useRef, useState } from 'react';\nimport { useUnmount } from 'react-use';\nimport useMountedState from 'react-use/lib/useMountedState';\n\nimport { Field } from '@grafana/data';\nimport { config as grafanaConfig } from '@grafana/runtime';\n\nimport { createWorker, createMsaglWorker } from './createLayoutWorker';\nimport { EdgeDatum, EdgeDatumLayout, NodeDatum } from './types';\nimport { useNodeLimit } from './useNodeLimit';\nimport { graphBounds } from './utils';\n\nexport interface Config {\n linkDistance: number;\n linkStrength: number;\n forceX: number;\n forceXStrength: number;\n forceCollide: number;\n tick: number;\n gridLayout: boolean;\n sort?: {\n // Either a arc field or stats field\n field: Field;\n ascending: boolean;\n };\n}\n\n// Config mainly for the layout but also some other parts like current layout. The layout variables can be changed only\n// if you programmatically enable the config editor (for development only) see ViewControls. These could be moved to\n// panel configuration at some point (apart from gridLayout as that can be switched be user right now.).\nexport const defaultConfig: Config = {\n linkDistance: 150,\n linkStrength: 0.5,\n forceX: 2000,\n forceXStrength: 0.02,\n forceCollide: 100,\n tick: 300,\n gridLayout: false,\n};\n\n/**\n * This will return copy of the nods and edges with x,y positions filled in. Also the layout changes source/target props\n * in edges from string ids to actual nodes.\n */\nexport function useLayout(\n rawNodes: NodeDatum[],\n rawEdges: EdgeDatum[],\n config: Config = defaultConfig,\n nodeCountLimit: number,\n width: number,\n rootNodeId?: string\n) {\n const [nodesGraph, setNodesGraph] = useState<NodeDatum[]>([]);\n const [edgesGraph, setEdgesGraph] = useState<EdgeDatumLayout[]>([]);\n\n const [loading, setLoading] = useState(false);\n\n const isMounted = useMountedState();\n const layoutWorkerCancelRef = useRef<(() => void) | undefined>();\n\n useUnmount(() => {\n if (layoutWorkerCancelRef.current) {\n layoutWorkerCancelRef.current();\n }\n });\n\n // Also we compute both layouts here. Grid layout should not add much time and we can more easily just cache both\n // so this should happen only once for a given response data.\n //\n // Also important note is that right now this works on all the nodes even if they are not visible. This means that\n // the node position is stable even when expanding different parts of graph. It seems like a reasonable thing but\n // implications are that:\n // - limiting visible nodes count does not have a positive perf effect\n // - graphs with high node count can seem weird (very sparse or spread out) when we show only some nodes but layout\n // is done for thousands of nodes but we also do this only once in the graph lifecycle.\n // We could re-layout this on visible nodes change but this may need smaller visible node limit to keep the perf\n // (as we would run layout on every click) and also would be very weird without any animation to understand what is\n // happening as already visible nodes would change positions.\n useEffect(() => {\n if (rawNodes.length === 0) {\n setNodesGraph([]);\n setEdgesGraph([]);\n setLoading(false);\n return;\n }\n\n // Layered layout is better but also more expensive, so we switch to default force based layout for bigger graphs.\n const layoutType =\n grafanaConfig.featureToggles.nodeGraphDotLayout && rawNodes.length <= 500 ? 'layered' : 'default';\n\n setLoading(true);\n // This is async but as I wanted to still run the sync grid layout, and you cannot return promise from effect so\n // having callback seems ok here.\n const cancel = layout(rawNodes, rawEdges, layoutType, ({ nodes, edges }) => {\n if (isMounted()) {\n setNodesGraph(nodes);\n setEdgesGraph(edges as EdgeDatumLayout[]);\n setLoading(false);\n }\n });\n layoutWorkerCancelRef.current = cancel;\n return cancel;\n }, [rawNodes, rawEdges, isMounted]);\n\n // Compute grid separately as it is sync and do not need to be inside effect. Also it is dependant on width while\n // default layout does not care and we don't want to recalculate that on panel resize.\n const [nodesGrid, edgesGrid] = useMemo(() => {\n if (rawNodes.length === 0) {\n return [[], []];\n }\n\n const rawNodesCopy = rawNodes.map((n) => ({ ...n }));\n const rawEdgesCopy = rawEdges.map((e) => ({ ...e }));\n gridLayout(rawNodesCopy, width, config.sort);\n\n return [rawNodesCopy, rawEdgesCopy as EdgeDatumLayout[]];\n }, [config.sort, rawNodes, rawEdges, width]);\n\n // Limit the nodes so we don't show all for performance reasons. Here we don't compute both at the same time so\n // changing the layout can trash internal memoization at the moment.\n const {\n nodes: nodesWithLimit,\n edges: edgesWithLimit,\n markers,\n } = useNodeLimit(\n config.gridLayout ? nodesGrid : nodesGraph,\n config.gridLayout ? edgesGrid : edgesGraph,\n nodeCountLimit,\n config,\n rootNodeId\n );\n\n // Get bounds based on current limited number of nodes.\n const bounds = useMemo(\n () => graphBounds([...nodesWithLimit, ...(markers || []).map((m) => m.node)]),\n [nodesWithLimit, markers]\n );\n\n return {\n nodes: nodesWithLimit,\n edges: edgesWithLimit,\n markers,\n bounds,\n hiddenNodesCount: rawNodes.length - nodesWithLimit.length,\n loading,\n };\n}\n\n/**\n * Wraps the layout code in a worker as it can take long and we don't want to block the main thread.\n * Returns a cancel function to terminate the worker.\n */\nfunction layout(\n nodes: NodeDatum[],\n edges: EdgeDatum[],\n engine: 'default' | 'layered',\n done: (data: { nodes: NodeDatum[]; edges: EdgeDatum[] }) => void\n) {\n const worker = engine === 'default' ? createWorker() : createMsaglWorker();\n\n worker.onmessage = (event: MessageEvent<{ nodes: NodeDatum[]; edges: EdgeDatumLayout[] }>) => {\n for (let i = 0; i < nodes.length; i++) {\n // These stats needs to be Field class but the data is stringified over the worker boundary\n event.data.nodes[i] = {\n ...nodes[i],\n ...event.data.nodes[i],\n };\n }\n done(event.data);\n };\n\n worker.postMessage({\n nodes: nodes.map((n) => ({\n id: n.id,\n incoming: n.incoming,\n })),\n edges,\n config: defaultConfig,\n });\n\n return () => {\n worker.terminate();\n };\n}\n\n/**\n * Set the nodes in simple grid layout sorted by some stat.\n */\nfunction gridLayout(\n nodes: NodeDatum[],\n width: number,\n sort?: {\n field: Field;\n ascending: boolean;\n }\n) {\n const spacingVertical = 140;\n const spacingHorizontal = 120;\n const padding = spacingHorizontal / 2;\n const perRow = Math.min(Math.floor((width - padding * 2) / spacingVertical), nodes.length);\n const midPoint = Math.floor(((perRow - 1) * spacingHorizontal) / 2);\n\n if (sort) {\n nodes.sort((node1, node2) => {\n const val1 = sort!.field.values[node1.dataFrameRowIndex];\n const val2 = sort!.field.values[node2.dataFrameRowIndex];\n\n // Let's pretend we don't care about type of the stats for a while (they can be strings)\n return sort!.ascending ? val1 - val2 : val2 - val1;\n });\n }\n\n for (const [index, node] of nodes.entries()) {\n const row = Math.floor(index / perRow);\n const column = index % perRow;\n node.x = column * spacingHorizontal - midPoint;\n node.y = -60 + row * spacingVertical;\n }\n}\n","import { css } from '@emotion/css';\nimport React, { MouseEvent, useCallback, useState } from 'react';\n\nimport { DataFrame, Field, GrafanaTheme2, LinkModel } from '@grafana/data';\nimport { ContextMenu, MenuGroup, MenuItem, useStyles2 } from '@grafana/ui';\n\nimport { Config } from './layout';\nimport { EdgeDatum, NodeDatum } from './types';\nimport { getEdgeFields, getNodeFields, statToString } from './utils';\n\n/**\n * Hook that contains state of the context menu, both for edges and nodes and provides appropriate component when\n * opened context menu should be opened.\n */\nexport function useContextMenu(\n getLinks: (dataFrame: DataFrame, rowIndex: number) => LinkModel[],\n // This can be undefined if we only use edge dataframe\n nodes: DataFrame | undefined,\n // This can be undefined if we have only single node\n edges: DataFrame | undefined,\n config: Config,\n setConfig: (config: Config) => void,\n setFocusedNodeId: (id: string) => void\n): {\n onEdgeOpen: (event: MouseEvent<SVGElement>, edge: EdgeDatum) => void;\n onNodeOpen: (event: MouseEvent<SVGElement>, node: NodeDatum) => void;\n MenuComponent: React.ReactNode;\n} {\n const [menu, setMenu] = useState<JSX.Element | undefined>(undefined);\n\n const onNodeOpen = useCallback(\n (event: MouseEvent<SVGElement>, node: NodeDatum) => {\n const [label, showGridLayout] = config.gridLayout\n ? ['Show in Graph layout', false]\n : ['Show in Grid layout', true];\n\n const extraNodeItem = [\n {\n label: label,\n onClick: (node: NodeDatum) => {\n setFocusedNodeId(node.id);\n setConfig({ ...config, gridLayout: showGridLayout });\n setMenu(undefined);\n },\n },\n ];\n\n const links = nodes ? getLinks(nodes, node.dataFrameRowIndex) : [];\n const renderer = getItemsRenderer(links, node, extraNodeItem);\n setMenu(makeContextMenu(<NodeHeader node={node} nodes={nodes} />, event, setMenu, renderer));\n },\n [config, nodes, getLinks, setMenu, setConfig, setFocusedNodeId]\n );\n\n const onEdgeOpen = useCallback(\n (event: MouseEvent<SVGElement>, edge: EdgeDatum) => {\n if (!edges) {\n // This could happen if we have only one node and no edges, in which case this is not needed as there is no edge\n // to click on.\n return;\n }\n const links = getLinks(edges, edge.dataFrameRowIndex);\n const renderer = getItemsRenderer(links, edge);\n setMenu(makeContextMenu(<EdgeHeader edge={edge} edges={edges} />, event, setMenu, renderer));\n },\n [edges, getLinks, setMenu]\n );\n\n return { onEdgeOpen, onNodeOpen, MenuComponent: menu };\n}\n\nfunction makeContextMenu(\n header: JSX.Element,\n event: MouseEvent<SVGElement>,\n setMenu: (el: JSX.Element | undefined) => void,\n renderer?: () => React.ReactNode\n) {\n return (\n <ContextMenu\n renderHeader={() => header}\n renderMenuItems={renderer}\n onClose={() => setMenu(undefined)}\n x={event.pageX}\n y={event.pageY}\n />\n );\n}\n\nfunction getItemsRenderer<T extends NodeDatum | EdgeDatum>(\n links: LinkModel[],\n item: T,\n extraItems?: Array<LinkData<T>> | undefined\n) {\n if (!(links.length || extraItems?.length)) {\n return undefined;\n }\n const items = getItems(links);\n return () => {\n let groups = items?.map((group, index) => (\n <MenuGroup key={`${group.label}${index}`} label={group.label}>\n {(group.items || []).map(mapMenuItem(item))}\n </MenuGroup>\n ));\n\n if (extraItems) {\n groups = [...extraItems.map(mapMenuItem(item)), ...groups];\n }\n return groups;\n };\n}\n\nfunction mapMenuItem<T extends NodeDatum | EdgeDatum>(item: T) {\n return function NodeGraphMenuItem(link: LinkData<T>) {\n return (\n <MenuItem\n key={link.label}\n url={link.url}\n label={link.label}\n ariaLabel={link.ariaLabel}\n onClick={\n link.onClick\n ? (event) => {\n if (!(event?.ctrlKey || event?.metaKey || event?.shiftKey)) {\n event?.preventDefault();\n event?.stopPropagation();\n link.onClick?.(item);\n }\n }\n : undefined\n }\n target={'_self'}\n />\n );\n };\n}\n\ntype LinkData<T extends NodeDatum | EdgeDatum> = {\n label: string;\n ariaLabel?: string;\n url?: string;\n onClick?: (item: T) => void;\n};\n\nfunction getItems(links: LinkModel[]) {\n const defaultGroup = 'Open in Explore';\n const groups = links.reduce<{ [group: string]: Array<{ l: LinkModel; newTitle?: string }> }>((acc, l) => {\n let group;\n let title;\n if (l.title.indexOf('/') !== -1) {\n group = l.title.split('/')[0];\n title = l.title.split('/')[1];\n acc[group] = acc[group] || [];\n acc[group].push({ l, newTitle: title });\n } else {\n acc[defaultGroup] = acc[defaultGroup] || [];\n acc[defaultGroup].push({ l });\n }\n\n return acc;\n }, {});\n\n return Object.keys(groups).map((key) => {\n return {\n label: key,\n ariaLabel: key,\n items: groups[key].map((link) => ({\n label: link.newTitle || link.l.title,\n ariaLabel: link.newTitle || link.l.title,\n url: link.l.href,\n onClick: link.l.onClick,\n })),\n };\n });\n}\n\nfunction FieldRow({ field, index }: { field: Field; index: number }) {\n return (\n <HeaderRow\n label={field.config?.displayName || field.name}\n value={statToString(field.config, field.values[index] || '')}\n />\n );\n}\n\nfunction HeaderRow({ label, value }: { label: string; value: string }) {\n const styles = useStyles2(getLabelStyles);\n return (\n <tr>\n <td className={styles.label}>{label}: </td>\n <td className={styles.value}>{value}</td>\n </tr>\n );\n}\n\n/**\n * Shows some field values in a table on top of the context menu.\n */\nfunction NodeHeader({ node, nodes }: { node: NodeDatum; nodes?: DataFrame }) {\n const rows = [];\n if (nodes) {\n const fields = getNodeFields(nodes);\n for (const f of [fields.title, fields.subTitle, fields.mainStat, fields.secondaryStat, ...fields.details]) {\n if (f && f.values[node.dataFrameRowIndex]) {\n rows.push(<FieldRow key={f.name} field={f} index={node.dataFrameRowIndex} />);\n }\n }\n } else {\n // Fallback if we don't have nodes dataFrame. Can happen if we use just the edges frame to construct this.\n if (node.title) {\n rows.push(<HeaderRow key=\"title\" label={'Title'} value={node.title} />);\n }\n if (node.subTitle) {\n rows.push(<HeaderRow key=\"subtitle\" label={'Subtitle'} value={node.subTitle} />);\n }\n }\n\n return (\n <table style={{ width: '100%' }}>\n <tbody>{rows}</tbody>\n </table>\n );\n}\n\n/**\n * Shows some of the field values in a table on top of the context menu.\n */\nfunction EdgeHeader(props: { edge: EdgeDatum; edges: DataFrame }) {\n const index = props.edge.dataFrameRowIndex;\n const fields = getEdgeFields(props.edges);\n const valueSource = fields.source?.values[index] || '';\n const valueTarget = fields.target?.values[index] || '';\n\n const rows = [];\n if (valueSource && valueTarget) {\n rows.push(<HeaderRow key={'header-row'} label={'Source → Target'} value={`${valueSource} → ${valueTarget}`} />);\n }\n\n for (const f of [fields.mainStat, fields.secondaryStat, ...fields.details]) {\n if (f && f.values[index]) {\n rows.push(<FieldRow key={`field-row-${index}`} field={f} index={index} />);\n }\n }\n\n return (\n <table style={{ width: '100%' }}>\n <tbody>{rows}</tbody>\n </table>\n );\n}\n\nexport const getLabelStyles = (theme: GrafanaTheme2) => {\n return {\n label: css`\n label: Label;\n line-height: 1.25;\n color: ${theme.colors.text.disabled};\n font-size: ${theme.typography.size.sm};\n font-weight: ${theme.typography.fontWeightMedium};\n padding-right: ${theme.spacing(1)};\n `,\n value: css`\n label: Value;\n font-size: ${theme.typography.size.sm};\n font-weight: ${theme.typography.fontWeightMedium};\n color: ${theme.colors.text.primary};\n `,\n };\n};\n","import usePrevious from 'react-use/lib/usePrevious';\n\nimport { Config } from './layout';\nimport { NodeDatum } from './types';\n\nexport function useFocusPositionOnLayout(config: Config, nodes: NodeDatum[], focusedNodeId: string | undefined) {\n const prevLayoutGrid = usePrevious(config.gridLayout);\n let focusPosition;\n if (prevLayoutGrid === true && !config.gridLayout && focusedNodeId) {\n const node = nodes.find((n) => n.id === focusedNodeId);\n if (node) {\n focusPosition = {\n x: -node.x!,\n y: -node.y!,\n };\n }\n }\n\n return focusPosition;\n}\n","import { useEffect, useState } from 'react';\nimport useMountedState from 'react-use/lib/useMountedState';\n\nexport function useHighlight(focusedNodeId?: string) {\n const [highlightId, setHighlightId] = useState<string>();\n const mounted = useMountedState();\n useEffect(() => {\n if (focusedNodeId) {\n setHighlightId(focusedNodeId);\n setTimeout(() => {\n if (mounted()) {\n setHighlightId(undefined);\n }\n }, 500);\n }\n }, [focusedNodeId, mounted]);\n\n return highlightId;\n}\n","import { useEffect, useRef, RefObject, useState, useMemo } from 'react';\nimport useMountedState from 'react-use/lib/useMountedState';\nimport usePrevious from 'react-use/lib/usePrevious';\n\nimport { Bounds } from './utils';\n\nexport interface State {\n isPanning: boolean;\n position: {\n x: number;\n y: number;\n };\n}\n\ninterface Options {\n scale?: number;\n bounds?: Bounds;\n focus?: {\n x: number;\n y: number;\n };\n}\n\n/**\n * Based on https://github.com/streamich/react-use/blob/master/src/useSlider.ts\n * Returns position x/y coordinates which can be directly used in transform: translate().\n * @param scale - Can be used when we want to scale the movement if we are moving a scaled element. We need to do it\n * here because we don't want to change the pos when scale changes.\n * @param bounds - If set the panning cannot go outside of those bounds.\n * @param focus - Position to focus on.\n */\nexport function usePanning<T extends Element>({ scale = 1, bounds, focus }: Options = {}): {\n state: State;\n ref: RefObject<T>;\n} {\n const isMounted = useMountedState();\n const isPanning = useRef(false);\n const frame = useRef(0);\n const panRef = useRef<T>(null);\n\n const initial = { x: 0, y: 0 };\n // As we return a diff of the view port to be applied we need as translate coordinates we have to invert the\n // bounds of the content to get the bounds of the view port diff.\n const viewBounds = useMemo(\n () => ({\n right: bounds ? -bounds.left : Infinity,\n left: bounds ? -bounds.right : -Infinity,\n bottom: bounds ? -bounds.top : -Infinity,\n top: bounds ? -bounds.bottom : Infinity,\n }),\n [bounds]\n );\n\n // We need to keep some state so we can compute the position diff and add that to the previous position.\n const startMousePosition = useRef(initial);\n const prevPosition = useRef(initial);\n // We cannot use the state as that would rerun the effect on each state change which we don't want so we have to keep\n // separate variable for the state that won't cause useEffect eval\n const currentPosition = useRef(initial);\n\n const [state, setState] = useState<State>({\n isPanning: false,\n position: initial,\n });\n\n useEffect(() => {\n const startPanning = (event: Event) => {\n if (!isPanning.current && isMounted()) {\n isPanning.current = true;\n // Snapshot the current position of both mouse pointer and the element\n startMousePosition.current = getEventXY(event);\n prevPosition.current = { ...currentPosition.current };\n setState((state) => ({ ...state, isPanning: true }));\n bindEvents();\n }\n };\n\n const stopPanning = () => {\n if (isPanning.current && isMounted()) {\n isPanning.current = false;\n setState((state) => ({ ...state, isPanning: false }));\n unbindEvents();\n }\n };\n\n const onPanStart = (event: Event) => {\n startPanning(event);\n onPan(event);\n };\n\n const bindEvents = () => {\n document.addEventListener('mousemove', onPan);\n document.addEventListener('mouseup', stopPanning);\n document.addEventListener('touchmove', onPan);\n document.addEventListener('touchend', stopPanning);\n };\n\n const unbindEvents = () => {\n document.removeEventListener('mousemove', onPan);\n document.removeEventListener('mouseup', stopPanning);\n document.removeEventListener('touchmove', onPan);\n document.removeEventListener('touchend', stopPanning);\n };\n\n const onPan = (event: Event) => {\n cancelAnimationFrame(frame.current);\n const pos = getEventXY(event);\n\n frame.current = requestAnimationFrame(() => {\n if (isMounted() && panRef.current) {\n // Get the diff by which we moved the mouse.\n let xDiff = pos.x - startMousePosition.current.x;\n let yDiff = pos.y - startMousePosition.current.y;\n\n // Add the diff to the position from the moment we started panning.\n currentPosition.current = {\n x: inBounds(prevPosition.current.x + xDiff / scale, viewBounds.left, viewBounds.right),\n y: inBounds(prevPosition.current.y + yDiff / scale, viewBounds.top, viewBounds.bottom),\n };\n setState((state) => ({\n ...state,\n position: {\n ...currentPosition.current,\n },\n }));\n }\n });\n };\n\n const ref = panRef.current;\n if (ref) {\n ref.addEventListener('mousedown', onPanStart);\n ref.addEventListener('touchstart', onPanStart);\n }\n return () => {\n if (ref) {\n ref.removeEventListener('mousedown', onPanStart);\n ref.removeEventListener('touchstart', onPanStart);\n }\n };\n }, [scale, viewBounds, isMounted]);\n\n const previousFocus = usePrevious(focus);\n\n // We need to update the state in case need to focus on something but we want to do it only once when the focus\n // changes to something new.\n useEffect(() => {\n if (focus && previousFocus?.x !== focus.x && previousFocus?.y !== focus.y) {\n const position = {\n x: inBounds(focus.x, viewBounds.left, viewBounds.right),\n y: inBounds(focus.y, viewBounds.top, viewBounds.bottom),\n };\n setState({\n position,\n isPanning: false,\n });\n\n currentPosition.current = position;\n prevPosition.current = position;\n }\n }, [focus, previousFocus, viewBounds, currentPosition, prevPosition]);\n\n let position = state.position;\n // This part prevents an ugly jump from initial position to the focused one as the set state in the effects is after\n // initial render.\n if (focus && previousFocus?.x !== focus.x && previousFocus?.y !== focus.y) {\n position = focus;\n }\n\n return {\n state: {\n ...state,\n position: {\n x: inBounds(position.x, viewBounds.left, viewBounds.right),\n y: inBounds(position.y, viewBounds.top, viewBounds.bottom),\n },\n },\n ref: panRef,\n };\n}\n\nfunction inBounds(value: number, min: number | undefined, max: number | undefined) {\n return Math.min(Math.max(value, min ?? -Infinity), max ?? Infinity);\n}\n\n// The issue here is that TouchEvent is undefined while using instanceof in Firefox and Safari\n// which will throw an exception but if it's event.changedTouches it will be undefined\n// and the if check will fail so it will go to the else but will not throw an exception\nfunction getEventXY(event: Event): { x: number; y: number } {\n if ('changedTouches' in event && event instanceof TouchEvent) {\n return { x: event.changedTouches[0].clientX, y: event.changedTouches[0].clientY };\n } else if (event instanceof MouseEvent) {\n return { x: event.clientX, y: event.clientY };\n }\n return { x: 0, y: 0 };\n}\n","import { useCallback, useEffect, useRef, useState } from 'react';\n\nconst defaultOptions: Options = {\n stepDown: (s) => s / 1.5,\n stepUp: (s) => s * 1.5,\n min: 0.13,\n max: 2.25,\n};\n\ninterface Options {\n /**\n * Allows you to specify how the step up will be handled so you can do fractional steps based on previous value.\n */\n stepUp: (scale: number) => number;\n stepDown: (scale: number) => number;\n\n /**\n * Set max and min values. If stepUp/down overshoots these bounds this will return min or max but internal scale value\n * will still be what ever the step functions returned last.\n */\n min?: number;\n max?: number;\n}\n\n/**\n * Keeps state and returns handlers that can be used to implement zooming functionality ideally by using it with\n * 'transform: scale'. It returns handler for manual buttons with zoom in/zoom out function and a ref that can be\n * used to zoom in/out with mouse wheel.\n */\nexport function useZoom({ stepUp, stepDown, min, max } = defaultOptions) {\n const ref = useRef<HTMLElement | null>(null);\n const [scale, setScale] = useState(1);\n\n const onStepUp = useCallback(() => {\n if (scale < (max ?? Infinity)) {\n setScale(stepUp(scale));\n }\n }, [scale, stepUp, max]);\n\n const onStepDown = useCallback(() => {\n if (scale > (min ?? -Infinity)) {\n setScale(stepDown(scale));\n }\n }, [scale, stepDown, min]);\n\n const onWheel = useCallback(\n function (wheelEvent: WheelEvent) {\n // Seems like typing for the addEventListener is lacking a bit\n\n // Only do this with special key pressed similar to how google maps work.\n // TODO: I would guess this won't work very well with touch right now\n if (wheelEvent.ctrlKey || wheelEvent.metaKey) {\n wheelEvent.preventDefault();\n\n setScale(Math.min(Math.max(min ?? -Infinity, scale + Math.min(wheelEvent.deltaY, 2) * -0.01), max ?? Infinity));\n\n if (wheelEvent.deltaY < 0) {\n const newScale = scale + Math.max(wheelEvent.deltaY, -4) * -0.015;\n setScale(Math.max(min ?? -Infinity, newScale));\n } else if (wheelEvent.deltaY > 0) {\n const newScale = scale + Math.min(wheelEvent.deltaY, 4) * -0.015;\n setScale(Math.min(max ?? Infinity, newScale));\n }\n }\n },\n [min, max, scale]\n );\n\n useEffect(() => {\n if (!ref.current) {\n return;\n }\n\n const zoomRef = ref.current;\n\n // Adds listener for wheel event, we need the passive: false to be able to prevent default otherwise that\n // cannot be used with passive listeners.\n zoomRef.addEventListener('wheel', onWheel, { passive: false });\n return () => {\n if (zoomRef) {\n zoomRef.removeEventListener('wheel', onWheel);\n }\n };\n }, [onWheel]);\n\n return {\n onStepUp,\n onStepDown,\n scale: Math.max(Math.min(scale, max ?? Infinity), min ?? -Infinity),\n isMax: scale >= (max ?? Infinity),\n isMin: scale <= (min ?? -Infinity),\n ref,\n };\n}\n","import { css } from '@emotion/css';\nimport cx from 'classnames';\nimport React, { memo, MouseEvent, useCallback, useEffect, useMemo, useState } from 'react';\nimport useMeasure from 'react-use/lib/useMeasure';\n\nimport { DataFrame, GrafanaTheme2, LinkModel } from '@grafana/data';\nimport { Icon, Spinner, useStyles2 } from '@grafana/ui';\n\nimport { Edge } from './Edge';\nimport { EdgeLabel } from './EdgeLabel';\nimport { Legend } from './Legend';\nimport { Marker } from './Marker';\nimport { Node } from './Node';\nimport { ViewControls } from './ViewControls';\nimport { Config, defaultConfig, useLayout } from './layout';\nimport { EdgeDatum, NodeDatum, NodesMarker } from './types';\nimport { useCategorizeFrames } from './useCategorizeFrames';\nimport { useContextMenu } from './useContextMenu';\nimport { useFocusPositionOnLayout } from './useFocusPositionOnLayout';\nimport { useHighlight } from './useHighlight';\nimport { usePanning } from './usePanning';\nimport { useZoom } from './useZoom';\nimport { processNodes, Bounds, findConnectedNodesForEdge, findConnectedNodesForNode } from './utils';\n\nconst getStyles = (theme: GrafanaTheme2) => ({\n wrapper: css`\n label: wrapper;\n height: 100%;\n width: 100%;\n overflow: hidden;\n position: relative;\n `,\n\n svg: css`\n label: svg;\n height: 100%;\n width: 100%;\n overflow: visible;\n font-size: 10px;\n cursor: move;\n `,\n\n svgPanning: css`\n label: svgPanning;\n user-select: none;\n `,\n\n noDataMsg: css`\n height: 100%;\n width: 100%;\n display: grid;\n place-items: center;\n font-size: ${theme.typography.h4.fontSize};\n color: ${theme.colors.text.secondary};\n `,\n\n mainGroup: css`\n label: mainGroup;\n will-change: transform;\n `,\n\n viewControls: css`\n label: viewControls;\n position: absolute;\n left: 2px;\n bottom: 3px;\n right: 0;\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n pointer-events: none;\n `,\n legend: css`\n label: legend;\n background: ${theme.colors.background.secondary};\n box-shadow: ${theme.shadows.z1};\n padding-bottom: 5px;\n margin-right: 10px;\n `,\n viewControlsWrapper: css`\n margin-left: auto;\n `,\n alert: css`\n label: alert;\n padding: 5px 8px;\n font-size: 10px;\n text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);\n border-radius: ${theme.shape.radius.default};\n align-items: center;\n position: absolute;\n top: 0;\n right: 0;\n background: ${theme.colors.warning.main};\n color: ${theme.colors.warning.contrastText};\n `,\n loadingWrapper: css`\n label: loadingWrapper;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n `,\n});\n\n// Limits the number of visible nodes, mainly for performance reasons. Nodes above the limit are accessible by expanding\n// parts of the graph. The specific number is arbitrary but should be a number of nodes where panning, zooming and other\n// interactions will be without any lag for most users.\nconst defaultNodeCountLimit = 200;\n\ninterface Props {\n dataFrames: DataFrame[];\n getLinks: (dataFrame: DataFrame, rowIndex: number) => LinkModel[];\n nodeLimit?: number;\n}\nexport function NodeGraph({ getLinks, dataFrames, nodeLimit }: Props) {\n const nodeCountLimit = nodeLimit || defaultNodeCountLimit;\n const { edges: edgesDataFrames, nodes: nodesDataFrames } = useCategorizeFrames(dataFrames);\n\n const [measureRef, { width, height }] = useMeasure();\n const [config, setConfig] = useState<Config>(defaultConfig);\n\n const firstNodesDataFrame = nodesDataFrames[0];\n const firstEdgesDataFrame = edgesDataFrames[0];\n\n // TODO we should be able to allow multiple dataframes for both edges and nodes, could be issue with node ids which in\n // that case should be unique or figure a way to link edges and nodes dataframes together.\n const processed = useMemo(\n () => processNodes(firstNodesDataFrame, firstEdgesDataFrame),\n [firstEdgesDataFrame, firstNodesDataFrame]\n );\n\n // We need hover state here because for nodes we also highlight edges and for edges have labels separate to make\n // sure they are visible on top of everything else\n const { nodeHover, setNodeHover, clearNodeHover, edgeHover, setEdgeHover, clearEdgeHover } = useHover();\n const [hoveringIds, setHoveringIds] = useState<string[]>([]);\n useEffect(() => {\n let linked: string[] = [];\n if (nodeHover) {\n linked = findConnectedNodesForNode(processed.nodes, processed.edges, nodeHover);\n } else if (edgeHover) {\n linked = findConnectedNodesForEdge(processed.nodes, processed.edges, edgeHover);\n }\n setHoveringIds(linked);\n }, [nodeHover, edgeHover, processed]);\n\n // This is used for navigation from grid to graph view. This node will be centered and briefly highlighted.\n const [focusedNodeId, setFocusedNodeId] = useState<string>();\n const setFocused = useCallback((e: MouseEvent, m: NodesMarker) => setFocusedNodeId(m.node.id), [setFocusedNodeId]);\n\n // May seem weird that we do layout first and then limit the nodes shown but the problem is we want to keep the node\n // position stable which means we need the full layout first and then just visually hide the nodes. As hiding/showing\n // nodes should not have effect on layout it should not be recalculated.\n const { nodes, edges, markers, bounds, hiddenNodesCount, loading } = useLayout(\n processed.nodes,\n processed.edges,\n config,\n nodeCountLimit,\n width,\n focusedNodeId\n );\n\n // If we move from grid to graph layout, and we have focused node lets get its position to center there. We want to\n // do it specifically only in that case.\n const focusPosition = useFocusPositionOnLayout(config, nodes, focusedNodeId);\n const { panRef, zoomRef, onStepUp, onStepDown, isPanning, position, scale, isMaxZoom, isMinZoom } = usePanAndZoom(\n bounds,\n focusPosition\n );\n\n const { onEdgeOpen, onNodeOpen, MenuComponent } = useContextMenu(\n getLinks,\n firstNodesDataFrame,\n firstEdgesDataFrame,\n config,\n setConfig,\n setFocusedNodeId\n );\n const styles = useStyles2(getStyles);\n\n // This cannot be inline func, or it will create infinite render cycle.\n const topLevelRef = useCallback(\n (r: HTMLDivElement) => {\n measureRef(r);\n zoomRef.current = r;\n },\n [measureRef, zoomRef]\n );\n\n const highlightId = useHighlight(focusedNodeId);\n\n return (\n <div ref={topLevelRef} className={styles.wrapper}>\n {loading ? (\n <div className={styles.loadingWrapper}>\n Computing layout \n <Spinner />\n </div>\n ) : null}\n\n {dataFrames.length && processed.nodes.length ? (\n <svg\n ref={panRef}\n viewBox={`${-(width / 2)} ${-(height / 2)} ${width} ${height}`}\n className={cx(styles.svg, isPanning && styles.svgPanning)}\n >\n <g\n className={styles.mainGroup}\n style={{ transform: `scale(${scale}) translate(${Math.floor(position.x)}px, ${Math.floor(position.y)}px)` }}\n >\n {!config.gridLayout && (\n <Edges\n edges={edges}\n nodeHoveringId={nodeHover}\n edgeHoveringId={edgeHover}\n onClick={onEdgeOpen}\n onMouseEnter={setEdgeHover}\n onMouseLeave={clearEdgeHover}\n />\n )}\n <Nodes\n nodes={nodes}\n onMouseEnter={setNodeHover}\n onMouseLeave={clearNodeHover}\n onClick={onNodeOpen}\n hoveringIds={hoveringIds || [highlightId]}\n />\n\n <Markers markers={markers || []} onClick={setFocused} />\n {/*We split the labels from edges so that they are shown on top of everything else*/}\n {!config.gridLayout && <EdgeLabels edges={edges} nodeHoveringId={nodeHover} edgeHoveringId={edgeHover} />}\n </g>\n </svg>\n ) : (\n <div className={styles.noDataMsg}>No data</div>\n )}\n\n <div className={styles.viewControls}>\n {nodes.length ? (\n <div className={styles.legend}>\n <Legend\n sortable={config.gridLayout}\n nodes={nodes}\n sort={config.sort}\n onSort={(sort) => {\n setConfig({\n ...config,\n sort: sort,\n });\n }}\n />\n </div>\n ) : null}\n\n <div className={styles.viewControlsWrapper}>\n <ViewControls<Config>\n config={config}\n onConfigChange={(cfg) => {\n if (cfg.gridLayout !== config.gridLayout) {\n setFocusedNodeId(undefined);\n }\n setConfig(cfg);\n }}\n onMinus={onStepDown}\n onPlus={onStepUp}\n scale={scale}\n disableZoomIn={isMaxZoom}\n disableZoomOut={isMinZoom}\n />\n </div>\n </div>\n\n {hiddenNodesCount > 0 && (\n <div className={styles.alert} aria-label={'Nodes hidden warning'}>\n <Icon size=\"sm\" name={'info-circle'} /> {hiddenNodesCount} nodes are hidden for performance reasons.\n </div>\n )}\n\n {MenuComponent}\n </div>\n );\n}\n\n// Active -> emphasized, inactive -> de-emphasized, and default -> normal styling\nexport type HoverState = 'active' | 'inactive' | 'default';\n\n// These components are here as a perf optimisation to prevent going through all nodes and edges on every pan/zoom.\ninterface NodesProps {\n nodes: NodeDatum[];\n onMouseEnter: (id: string) => void;\n onMouseLeave: (id: string) => void;\n onClick: (event: MouseEvent<SVGElement>, node: NodeDatum) => void;\n hoveringIds?: string[];\n}\nconst Nodes = memo(function Nodes(props: NodesProps) {\n return (\n <>\n {props.nodes.map((n) => (\n <Node\n key={n.id}\n node={n}\n onMouseEnter={props.onMouseEnter}\n onMouseLeave={props.onMouseLeave}\n onClick={props.onClick}\n hovering={\n !props.hoveringIds || props.hoveringIds.length === 0\n ? 'default'\n : props.hoveringIds?.includes(n.id)\n ? 'active'\n : 'inactive'\n }\n />\n ))}\n </>\n );\n});\n\ninterface MarkersProps {\n markers: NodesMarker[];\n onClick: (event: MouseEvent<SVGElement>, marker: NodesMarker) => void;\n}\nconst Markers = memo(function Nodes(props: MarkersProps) {\n return (\n <>\n {props.markers.map((m) => (\n <Marker key={'marker-' + m.node.id} marker={m} onClick={props.onClick} />\n ))}\n </>\n );\n});\n\ninterface EdgesProps {\n edges: EdgeDatum[];\n nodeHoveringId?: string;\n edgeHoveringId?: string;\n onClick: (event: MouseEvent<SVGElement>, link: EdgeDatum) => void;\n onMouseEnter: (id: string) => void;\n onMouseLeave: (id: string) => void;\n}\nconst Edges = memo(function Edges(props: EdgesProps) {\n return (\n <>\n {props.edges.map((e) => (\n <Edge\n key={e.id}\n edge={e}\n hovering={\n (e.source as NodeDatum).id === props.nodeHoveringId ||\n (e.target as NodeDatum).id === props.nodeHoveringId ||\n props.edgeHoveringId === e.id\n }\n onClick={props.onClick}\n onMouseEnter={props.onMouseEnter}\n onMouseLeave={props.onMouseLeave}\n />\n ))}\n </>\n );\n});\n\ninterface EdgeLabelsProps {\n edges: EdgeDatum[];\n nodeHoveringId?: string;\n edgeHoveringId?: string;\n}\nconst EdgeLabels = memo(function EdgeLabels(props: EdgeLabelsProps) {\n return (\n <>\n {props.edges.map((e, index) => {\n // We show the edge label in case user hovers over the edge directly or if they hover over node edge is\n // connected to.\n const shouldShow =\n (e.source as NodeDatum).id === props.nodeHoveringId ||\n (e.target as NodeDatum).id === props.nodeHoveringId ||\n props.edgeHoveringId === e.id;\n\n const hasStats = e.mainStat || e.secondaryStat;\n return shouldShow && hasStats && <EdgeLabel key={e.id} edge={e} />;\n })}\n </>\n );\n});\n\nfunction usePanAndZoom(bounds: Bounds, focus?: { x: number; y: number }) {\n const { scale, onStepDown, onStepUp, ref, isMax, isMin } = useZoom();\n const { state: panningState, ref: panRef } = usePanning<SVGSVGElement>({\n scale,\n bounds,\n focus,\n });\n const { position, isPanning } = panningState;\n return { zoomRef: ref, panRef, position, isPanning, scale, onStepDown, onStepUp, isMaxZoom: isMax, isMinZoom: isMin };\n}\n\nfunction useHover() {\n const [nodeHover, setNodeHover] = useState<string | undefined>(undefined);\n const clearNodeHover = useCallback(() => setNodeHover(undefined), [setNodeHover]);\n const [edgeHover, setEdgeHover] = useState<string | undefined>(undefined);\n const clearEdgeHover = useCallback(() => setEdgeHover(undefined), [setEdgeHover]);\n\n return { nodeHover, setNodeHover, clearNodeHover, edgeHover, setEdgeHover, clearEdgeHover };\n}\n","import { useMemo } from 'react';\n\nimport { DataFrame } from '@grafana/data';\n\nimport { getGraphFrame } from './utils';\n\n/**\n * As we need 2 dataframes for the service map, one with nodes and one with edges we have to figure out which is which.\n * Right now we do not have any metadata for it so we just check preferredVisualisationType and then column names.\n * TODO: maybe we could use column labels to have a better way to do this\n */\nexport function useCategorizeFrames(series: DataFrame[]) {\n return useMemo(() => {\n return getGraphFrame(series);\n }, [series]);\n}\n"],"names":["EdgeArrowMarker","id","fill","defaultEdgeColor","headHeight","highlightedEdgeColor","Edge","props","edge","onClick","onMouseEnter","onMouseLeave","hovering","source","target","sourceNodeRadius","targetNodeRadius","arrowHeadHeight","line","markerId","coloredMarkerId","event","getStyles","theme","EdgeLabel","middle","styles","stats","height","middleOffset","offset","contents","stat","index","Legend","nodes","onSort","sort","sortable","colorItems","getColorLegendItems","item","VizLegend","VizLegendListItem","Icon","fields","node","n","f","nodeR","Marker","marker","ViewControls","config","onConfigChange","onPlus","onMinus","disableZoomOut","disableZoomIn","showConfig","setShowConfig","allowConfiguration","Button","k","e","createWorker","createMsaglWorker","useNodeLimit","edges","limit","rootId","edgesMap","nodesMap","acc","limitGridLayout","limitGraphLayout","roots","visibleNodes","markers","collectVisibleNodes","markersWithStats","collectMarkerStats","markersMap","visibleEdges","start","stop","prevLimit","afterLimit","stack","current","connectedNodes","nodesToCount","count","defaultConfig","useLayout","rawNodes","rawEdges","nodeCountLimit","width","rootNodeId","nodesGraph","setNodesGraph","edgesGraph","setEdgesGraph","loading","setLoading","isMounted","useMountedState","layoutWorkerCancelRef","useUnmount","layoutType","cancel","layout","nodesGrid","edgesGrid","rawNodesCopy","rawEdgesCopy","gridLayout","nodesWithLimit","edgesWithLimit","bounds","m","engine","done","worker","i","perRow","midPoint","node1","node2","val1","val2","row","column","useContextMenu","getLinks","setConfig","setFocusedNodeId","menu","setMenu","onNodeOpen","label","showGridLayout","extraNodeItem","links","renderer","getItemsRenderer","makeContextMenu","NodeHeader","EdgeHeader","header","ContextMenu","extraItems","items","getItems","groups","group","MenuGroup","mapMenuItem","link","MenuItem","defaultGroup","l","title","key","FieldRow","field","HeaderRow","value","getLabelStyles","rows","valueSource","valueTarget","useFocusPositionOnLayout","focusedNodeId","prevLayoutGrid","usePrevious","focusPosition","useHighlight","highlightId","setHighlightId","mounted","usePanning","scale","focus","isPanning","frame","panRef","initial","viewBounds","startMousePosition","prevPosition","currentPosition","state","setState","startPanning","getEventXY","bindEvents","stopPanning","unbindEvents","onPanStart","onPan","pos","xDiff","yDiff","inBounds","ref","previousFocus","position","min","max","defaultOptions","s","useZoom","stepUp","stepDown","setScale","onStepUp","onStepDown","onWheel","wheelEvent","newScale","zoomRef","defaultNodeCountLimit","NodeGraph","dataFrames","nodeLimit","edgesDataFrames","nodesDataFrames","useCategorizeFrames","measureRef","useMeasure","firstNodesDataFrame","firstEdgesDataFrame","processed","nodeHover","setNodeHover","clearNodeHover","edgeHover","setEdgeHover","clearEdgeHover","useHover","hoveringIds","setHoveringIds","linked","setFocused","hiddenNodesCount","isMaxZoom","isMinZoom","usePanAndZoom","onEdgeOpen","MenuComponent","topLevelRef","r","Spinner","Edges","Nodes","Markers","EdgeLabels","cfg","Node","shouldShow","hasStats","isMax","isMin","panningState","series"],"sourceRoot":""}
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
static
---
0755
0.c88fc16b6533c8976681.js
11857 bytes
0644
0.c88fc16b6533c8976681.js.map
46011 bytes
0644
1118.6d1cbbd2070e00a7483d.js
9459 bytes
0644
1118.6d1cbbd2070e00a7483d.js.map
22012 bytes
0644
1121.6c31bf81768d3312b0d4.js
11557 bytes
0644
1121.6c31bf81768d3312b0d4.js.map
40274 bytes
0644
1122.1b3b5a9bdf4a2fc70a83.js
4310 bytes
0644
1122.1b3b5a9bdf4a2fc70a83.js.map
9301 bytes
0644
1133.cd705902767ed2e9bf55.js
107191 bytes
0644
1133.cd705902767ed2e9bf55.js.map
459177 bytes
0644
1216.ddb58ad09e0c4e3f4079.js
12860 bytes
0644
1216.ddb58ad09e0c4e3f4079.js.map
47906 bytes
0644
1282.2347f27d5b3a18a42a1e.js
2965 bytes
0644
1282.2347f27d5b3a18a42a1e.js.map
6699 bytes
0644
1345.8570fef914aafab94513.js
2223 bytes
0644
1345.8570fef914aafab94513.js.map
5201 bytes
0644
1347.8ad23b870a6e21306189.js
32035 bytes
0644
1347.8ad23b870a6e21306189.js.map
89851 bytes
0644
1420.f2553cafc235b7c32261.js
14576 bytes
0644
1420.f2553cafc235b7c32261.js.map
32839 bytes
0644
1438.897db349b7f48a15b9eb.js
2830 bytes
0644
1438.897db349b7f48a15b9eb.js.map
6911 bytes
0644
1446.babd36e7134aac1046c4.js
1832 bytes
0644
1446.babd36e7134aac1046c4.js.map
3282 bytes
0644
1488.ff35935a06f41b02b6cc.js
316 bytes
0644
1488.ff35935a06f41b02b6cc.js.map
1206 bytes
0644
1560.30962127c91e5eae9982.js
8916 bytes
0644
1560.30962127c91e5eae9982.js.map
20515 bytes
0644
1660.e1f66118fb028d12074f.js
21866 bytes
0644
1660.e1f66118fb028d12074f.js.map
71039 bytes
0644
1698.68ff1ef08e94a87836b3.js
12570 bytes
0644
1698.68ff1ef08e94a87836b3.js.map
46006 bytes
0644
1708.f42a783c0f6c7a317d49.js
2249 bytes
0644
1708.f42a783c0f6c7a317d49.js.map
2954 bytes
0644
1710.d96221051fceaf8c89dd.js
10172 bytes
0644
1710.d96221051fceaf8c89dd.js.map
22097 bytes
0644
1740.e57d920c47a11759ade4.js
6204 bytes
0644
1740.e57d920c47a11759ade4.js.map
13740 bytes
0644
1888.0ede69d3190c536744b9.js
6822 bytes
0644
1888.0ede69d3190c536744b9.js.map
15421 bytes
0644
1914.58113477b565d57e8bfe.js
10710 bytes
0644
1914.58113477b565d57e8bfe.js.map
23555 bytes
0644
198.b84c0e4f5759344ae05a.js
8267 bytes
0644
198.b84c0e4f5759344ae05a.js.map
19446 bytes
0644
205.6c51b5e35c8147226738.js
3542 bytes
0644
205.6c51b5e35c8147226738.js.map
8376 bytes
0644
2058.0e5df44647184aaf02e2.js
1252 bytes
0644
2058.0e5df44647184aaf02e2.js.map
4744 bytes
0644
2077.12b2df3682085a92a810.js
34133 bytes
0644
2077.12b2df3682085a92a810.js.map
122011 bytes
0644
2094.259625d8acf28b9c7361.js
16518 bytes
0644
2094.259625d8acf28b9c7361.js.map
41269 bytes
0644
21.afca69f2d336e287a655.js
6172 bytes
0644
21.afca69f2d336e287a655.js.map
17305 bytes
0644
2136.9c8dcd43d3af327f51f5.js
498667 bytes
0644
2136.9c8dcd43d3af327f51f5.js.map
1908011 bytes
0644
2228.cf629cf4a83c5b6c2671.js
269 bytes
0644
2228.cf629cf4a83c5b6c2671.js.map
457 bytes
0644
2244.9324c28eca7d2ffb7568.js
3396 bytes
0644
2244.9324c28eca7d2ffb7568.js.map
7683 bytes
0644
2261.ac6a26854d5acee00776.js
106373 bytes
0644
2261.ac6a26854d5acee00776.js.map
478562 bytes
0644
2278.bdd73b14b6337c6b14e4.js
5754 bytes
0644
2278.bdd73b14b6337c6b14e4.js.map
13399 bytes
0644
2398.3de0e7aa3057b7dcf9da.js
8016 bytes
0644
2398.3de0e7aa3057b7dcf9da.js.map
18383 bytes
0644
2514.c86950e9813e27962050.js
1983 bytes
0644
2514.c86950e9813e27962050.js.map
4863 bytes
0644
2571.345ecfd2b82551018f2e.js
162139 bytes
0644
2571.345ecfd2b82551018f2e.js.map
2046 bytes
0644
2586.972e9a7d564398afee76.js
6385 bytes
0644
2586.972e9a7d564398afee76.js.map
14676 bytes
0644
2658.f4100815829c4d37d35c.js
5432 bytes
0644
2658.f4100815829c4d37d35c.js.map
13650 bytes
0644
2686.2fbaa7db9c01d59cad8d.js
2815 bytes
0644
2686.2fbaa7db9c01d59cad8d.js.map
6564 bytes
0644
2692.20098ad0182743d98d62.js
2282 bytes
0644
2692.20098ad0182743d98d62.js.map
5680 bytes
0644
2694.a31d749361a36eb167da.js
2726 bytes
0644
2694.a31d749361a36eb167da.js.map
3618 bytes
0644
2745.2e5ec1fdf377d2940fb4.js
33584 bytes
0644
2745.2e5ec1fdf377d2940fb4.js.map
120277 bytes
0644
2962.4c3147d8ee365fe296ef.js
7640 bytes
0644
2962.4c3147d8ee365fe296ef.js.map
17621 bytes
0644
3042.248a4194805a8500fd28.js
19010 bytes
0644
3042.248a4194805a8500fd28.js.map
38148 bytes
0644
3062.4e9a427c2a59d53f902e.js
4663 bytes
0644
3062.4e9a427c2a59d53f902e.js.map
10650 bytes
0644
3082.c09cff56c35d736ee8b6.js
52872 bytes
0644
3082.c09cff56c35d736ee8b6.js.map
56822 bytes
0644
3096.8d41728a4f5010bc56a2.js
4378 bytes
0644
3096.8d41728a4f5010bc56a2.js.map
10739 bytes
0644
3098.f22ad6dab13d06477be0.js
31462 bytes
0644
3098.f22ad6dab13d06477be0.js.map
85588 bytes
0644
3182.1d531f28507c00e391fc.js
13817 bytes
0644
3182.1d531f28507c00e391fc.js.map
26653 bytes
0644
3407.666eb88a718e66b93f72.js
34425 bytes
0644
3407.666eb88a718e66b93f72.js.map
103716 bytes
0644
3418.d31d882b87bd5a2ef66f.js
33061 bytes
0644
3418.d31d882b87bd5a2ef66f.js.map
114234 bytes
0644
3541.8d063e3d43d55745d89b.js
20582 bytes
0644
3541.8d063e3d43d55745d89b.js.map
67154 bytes
0644
3543.eecef49ce94da5ee0418.js
136752 bytes
0644
3543.eecef49ce94da5ee0418.js.map
446118 bytes
0644
3622.976b1aef94b333e450b9.js
1260 bytes
0644
3622.976b1aef94b333e450b9.js.map
2819 bytes
0644
3686.102abfc00452299017bb.js
87 bytes
0644
3718.3993946b7a0eb8f64b4d.js
23620 bytes
0644
3718.3993946b7a0eb8f64b4d.js.map
92024 bytes
0644
3726.3adfe210678d2cd26969.js
31765 bytes
0644
3726.3adfe210678d2cd26969.js.map
118227 bytes
0644
398.4e93ffb675609ea7a9c6.js
2990 bytes
0644
398.4e93ffb675609ea7a9c6.js.map
7145 bytes
0644
4114.953b39a9ce57caa0e87a.js
2536 bytes
0644
4114.953b39a9ce57caa0e87a.js.map
6028 bytes
0644
4120.67bf5d203ed4a2eb5f1b.js
3229 bytes
0644
4120.67bf5d203ed4a2eb5f1b.js.map
7533 bytes
0644
4209.c7060d489834063658f5.js
17352 bytes
0644
4209.c7060d489834063658f5.js.map
30980 bytes
0644
4254.c5f4a5512b252e3a5796.js
71716 bytes
0644
4254.c5f4a5512b252e3a5796.js.map
237783 bytes
0644
4289.d5662b0904798ff437e9.js
16496 bytes
0644
4289.d5662b0904798ff437e9.js.map
32015 bytes
0644
4334.bc078c368a20ed3257b6.js
2598 bytes
0644
4334.bc078c368a20ed3257b6.js.map
6308 bytes
0644
4630.b604ea691184ba563d59.js
5585 bytes
0644
4630.b604ea691184ba563d59.js.map
11866 bytes
0644
4680.358dfdd92851f69ecc97.js
4573 bytes
0644
4680.358dfdd92851f69ecc97.js.map
10841 bytes
0644
4698.696713071ff5d9929a11.js
3682 bytes
0644
4698.696713071ff5d9929a11.js.map
8967 bytes
0644
4787.bd938ea7cb58d64ee246.js
738 bytes
0644
4787.bd938ea7cb58d64ee246.js.map
2168 bytes
0644
4839.17a10e0ceca3eb8954b4.js
39585 bytes
0644
4839.17a10e0ceca3eb8954b4.js.map
145699 bytes
0644
494.8cf705bc1ea509187c88.js
3796 bytes
0644
494.8cf705bc1ea509187c88.js.map
8987 bytes
0644
4958.cd447d877778fc5af081.js
4923 bytes
0644
4958.cd447d877778fc5af081.js.map
11000 bytes
0644
4962.0da526ad79f816a15985.js
2242 bytes
0644
4962.0da526ad79f816a15985.js.map
4978 bytes
0644
50.7b1e44d5b9dbbed566be.js
617497 bytes
0644
50.7b1e44d5b9dbbed566be.js.map
2271464 bytes
0644
5017.003cacead1bba1cba035.js
3567142 bytes
0644
5017.003cacead1bba1cba035.js.map
13214665 bytes
0644
5130.4d31108de97088a3b014.js
2850 bytes
0644
5130.4d31108de97088a3b014.js.map
6536 bytes
0644
5196.064b914693b6a5591a48.js
4035 bytes
0644
5196.064b914693b6a5591a48.js.map
10273 bytes
0644
5240.eceb5f73f807ac22d800.js
704 bytes
0644
5240.eceb5f73f807ac22d800.js.map
2618 bytes
0644
5277.ce6608b6f47246e32767.js
269 bytes
0644
5277.ce6608b6f47246e32767.js.map
457 bytes
0644
5280.4348c762594edebf7d0e.js
16657 bytes
0644
5280.4348c762594edebf7d0e.js.map
89146 bytes
0644
5356.eabc0dc2021a3814a65f.js
10156 bytes
0644
5356.eabc0dc2021a3814a65f.js.map
25249 bytes
0644
5358.7c5e9e1b192582f3082d.js
6173 bytes
0644
5358.7c5e9e1b192582f3082d.js.map
19652 bytes
0644
5364.ac21c32fd45a27bc998a.js
3070 bytes
0644
5364.ac21c32fd45a27bc998a.js.map
7368 bytes
0644
5398.d0c11aa7c1232f4afe44.js
81872 bytes
0644
5398.d0c11aa7c1232f4afe44.js.map
769414 bytes
0644
5428.e85b0800b30feca9d7dc.js
330175 bytes
0644
5428.e85b0800b30feca9d7dc.js.map
530929 bytes
0644
5511.93023985e5c5efe49ae2.js
21275 bytes
0644
5511.93023985e5c5efe49ae2.js.map
93188 bytes
0644
5550.9284e42acc3f2bbdfc9d.js
7039 bytes
0644
5550.9284e42acc3f2bbdfc9d.js.map
16382 bytes
0644
558.701e8b4db7b852c4a10d.js
12211 bytes
0644
558.701e8b4db7b852c4a10d.js.map
24505 bytes
0644
5618.638c32d58d896f3f7261.js
3348 bytes
0644
5618.638c32d58d896f3f7261.js.map
8181 bytes
0644
5648.cb3fd92dbbc06f7d45d2.js
57392 bytes
0644
5648.cb3fd92dbbc06f7d45d2.js.map
60585 bytes
0644
5786.db7abc3b8e4f474a8f7b.js
5325 bytes
0644
5786.db7abc3b8e4f474a8f7b.js.map
11885 bytes
0644
5807.f05d997ece5811bbc849.js
2922915 bytes
0644
5807.f05d997ece5811bbc849.js.map
10524334 bytes
0644
5950.30ec6aaa9dcece6c3b3c.js
4616249 bytes
0644
5950.30ec6aaa9dcece6c3b3c.js.map
19277501 bytes
0644
6018.f4de7ac19ac8f0c774e6.js
5861 bytes
0644
6018.f4de7ac19ac8f0c774e6.js.map
13314 bytes
0644
6029.0549a3fcb50e73c4b256.js
409895 bytes
0644
6029.0549a3fcb50e73c4b256.js.map
998408 bytes
0644
6185.883629fcc773b4968b24.js
2258 bytes
0644
6185.883629fcc773b4968b24.js.map
4788 bytes
0644
6263.e4ef9aaa3073ebacc3a5.js
54594 bytes
0644
6263.e4ef9aaa3073ebacc3a5.js.map
242030 bytes
0644
6302.257b2eb06c25ee74090e.js
8440 bytes
0644
6302.257b2eb06c25ee74090e.js.map
19322 bytes
0644
6359.f824c85233ec703f8cea.js
11411 bytes
0644
6359.f824c85233ec703f8cea.js.map
41881 bytes
0644
6377.45d36c143a694fc45bd3.js
20571 bytes
0644
6377.45d36c143a694fc45bd3.js.map
79590 bytes
0644
6378.27b1e6d863a0a3b85962.js
977993 bytes
0644
6378.27b1e6d863a0a3b85962.js.map
3865587 bytes
0644
6414.192cf271de6ecbbbcb11.js
3984 bytes
0644
6414.192cf271de6ecbbbcb11.js.map
9134 bytes
0644
6446.b4b93ee91aa1bb57ea93.js
7731 bytes
0644
6446.b4b93ee91aa1bb57ea93.js.map
17485 bytes
0644
6464.f379e014f9909e621de6.js
34429 bytes
0644
6464.f379e014f9909e621de6.js.map
113303 bytes
0644
6499.9f52e0855fd4782a8b45.js
78297 bytes
0644
6499.9f52e0855fd4782a8b45.js.map
273155 bytes
0644
6587.bfb1ca0c32c6f325b0df.js
135004 bytes
0644
6587.bfb1ca0c32c6f325b0df.js.map
541974 bytes
0644
660.838743295c2108f3492d.js
43101 bytes
0644
660.838743295c2108f3492d.js.map
100340 bytes
0644
6678.a615dbe07b8a3e591e66.js
14725 bytes
0644
6678.a615dbe07b8a3e591e66.js.map
51145 bytes
0644
680.1a328432fae403eacab3.js
53846 bytes
0644
680.1a328432fae403eacab3.js.map
57615 bytes
0644
6830.0c200fec1efc2be388e2.js
5811 bytes
0644
6830.0c200fec1efc2be388e2.js.map
13972 bytes
0644
6934.fa19d392db34411fb300.js
168944 bytes
0644
6934.fa19d392db34411fb300.js.map
540337 bytes
0644
6940.9c5d3a2dcf9d7d58fa2c.js
3408 bytes
0644
6940.9c5d3a2dcf9d7d58fa2c.js.map
8039 bytes
0644
6969.f8f153735314f9426000.js
1119 bytes
0644
6969.f8f153735314f9426000.js.map
4230 bytes
0644
6990.cc2f5674128929a3f870.js
4418 bytes
0644
6990.cc2f5674128929a3f870.js.map
10503 bytes
0644
7048.117de444b1e1cb5a1360.js
4365 bytes
0644
7048.117de444b1e1cb5a1360.js.map
10316 bytes
0644
7166.480da6892ee84ee8bb53.js
593985 bytes
0644
7166.480da6892ee84ee8bb53.js.map
2430098 bytes
0644
7200.dc60128b9d612fc7b5b0.js
3634 bytes
0644
7200.dc60128b9d612fc7b5b0.js.map
8184 bytes
0644
7246.3adf293a34fa2043387b.js
4306 bytes
0644
7246.3adf293a34fa2043387b.js.map
9084 bytes
0644
7400.024c96bd5b99b8b47a63.js
14112 bytes
0644
7400.024c96bd5b99b8b47a63.js.map
64001 bytes
0644
7409.24316c87d08c1053c46a.js
3287 bytes
0644
7409.24316c87d08c1053c46a.js.map
11649 bytes
0644
7455.845968885abe369e6479.js
19801 bytes
0644
7455.845968885abe369e6479.js.map
77213 bytes
0644
7466.09e6e197d2507f62097d.js
11670 bytes
0644
7466.09e6e197d2507f62097d.js.map
24830 bytes
0644
7515.95323f0dfbd0de010e5c.js
1083 bytes
0644
7515.95323f0dfbd0de010e5c.js.map
1321 bytes
0644
7613.6334cff4df12cc157522.js
808779 bytes
0644
7613.6334cff4df12cc157522.js.map
991378 bytes
0644
7836.6a7e4207e70fc2dc235f.js
7192 bytes
0644
7836.6a7e4207e70fc2dc235f.js.map
17613 bytes
0644
7882.1a3cc418752c83396970.js
3743 bytes
0644
7882.1a3cc418752c83396970.js.map
14950 bytes
0644
7886.485c46f14540aa23cf70.js
8668 bytes
0644
7886.485c46f14540aa23cf70.js.map
20124 bytes
0644
7914.2b1a06c504df18e20fe4.js
2390 bytes
0644
7914.2b1a06c504df18e20fe4.js.map
6418 bytes
0644
7982.6761217193d3060dbf0e.js
188973 bytes
0644
7982.6761217193d3060dbf0e.js.map
1737667 bytes
0644
8054.094788468423bb88ee68.js
38124 bytes
0644
8054.094788468423bb88ee68.js.map
132296 bytes
0644
8107.92bd414247a1d05c014f.js
5144 bytes
0644
8107.92bd414247a1d05c014f.js.map
15320 bytes
0644
8230.2eedae6021a4715c6dea.js
2413 bytes
0644
8230.2eedae6021a4715c6dea.js.map
5812 bytes
0644
8332.f4b05d2f028641445650.js
3177 bytes
0644
8332.f4b05d2f028641445650.js.map
7186 bytes
0644
8334.c95ec0eb6900c0cf7e89.js
7803 bytes
0644
8334.c95ec0eb6900c0cf7e89.js.map
17714 bytes
0644
8390.1fd9505094c8cf8830ab.js
2096 bytes
0644
8390.1fd9505094c8cf8830ab.js.map
5157 bytes
0644
84.a6f8658e6a033d642231.js
30608 bytes
0644
84.a6f8658e6a033d642231.js.map
142543 bytes
0644
8494.4470c87b7093ddf70db7.js
2180 bytes
0644
8494.4470c87b7093ddf70db7.js.map
4863 bytes
0644
8542.1391ab96a455b01963a7.js
1514 bytes
0644
8542.1391ab96a455b01963a7.js.map
3249 bytes
0644
8566.e05562713181c6ca30fe.js
3852 bytes
0644
8566.e05562713181c6ca30fe.js.map
8781 bytes
0644
8730.3dcdd8cbf22c63b45d78.js
2109 bytes
0644
8730.3dcdd8cbf22c63b45d78.js.map
2893 bytes
0644
8786.1b0e43b80c82c73e2096.js
1535 bytes
0644
8786.1b0e43b80c82c73e2096.js.map
4055 bytes
0644
8902.37d0b14aa6ef24687b7b.js
2673 bytes
0644
8902.37d0b14aa6ef24687b7b.js.map
5993 bytes
0644
8990.5a822b8788ebf0bdba81.js
3969 bytes
0644
8990.5a822b8788ebf0bdba81.js.map
9161 bytes
0644
9034.200fc7a09b466256c9a9.js
3486 bytes
0644
9034.200fc7a09b466256c9a9.js.map
8180 bytes
0644
9038.7ae2448b9cc5c423aeca.js
4937 bytes
0644
9038.7ae2448b9cc5c423aeca.js.map
11973 bytes
0644
9118.3121c6b96ec7dc211973.js
48311 bytes
0644
9118.3121c6b96ec7dc211973.js.map
62149 bytes
0644
9150.9eb62d45f9b21cb38850.js
10056 bytes
0644
9150.9eb62d45f9b21cb38850.js.map
21143 bytes
0644
9199.9897e268d6d13e834d4c.js
2307 bytes
0644
9199.9897e268d6d13e834d4c.js.map
8853 bytes
0644
9320.c403e78b78aa6df1d0bd.js
336139 bytes
0644
9320.c403e78b78aa6df1d0bd.js.map
1624993 bytes
0644
9355.421530b20c759bb75633.js
22098 bytes
0644
9355.421530b20c759bb75633.js.map
66961 bytes
0644
9384.a0d5fc49f1b15b3e311e.js
2855 bytes
0644
9384.a0d5fc49f1b15b3e311e.js.map
3717 bytes
0644
9390.fa2af7f3d3d9600c08ee.js
4201 bytes
0644
9390.fa2af7f3d3d9600c08ee.js.map
9682 bytes
0644
946.f2494c0c39a9590349b9.js
9194 bytes
0644
946.f2494c0c39a9590349b9.js.map
22193 bytes
0644
9510.4cfa85a51931dc20573a.js
2949 bytes
0644
9510.4cfa85a51931dc20573a.js.map
6939 bytes
0644
9521.de2a74ca5eb365810ca5.js
46306 bytes
0644
9521.de2a74ca5eb365810ca5.js.map
51040 bytes
0644
9538.996ade7a03ccdb01942d.js
64493 bytes
0644
9538.996ade7a03ccdb01942d.js.map
49212 bytes
0644
9569.a8d60b39654a160cb917.js
27965 bytes
0644
9569.a8d60b39654a160cb917.js.map
99160 bytes
0644
9643.b408884004ca73c102bc.js
627 bytes
0644
9643.b408884004ca73c102bc.js.map
2195 bytes
0644
968.22e079d28acb4131d34c.js
4001 bytes
0644
968.22e079d28acb4131d34c.js.map
9740 bytes
0644
970.a61e37b9b897c8098261.js
5239 bytes
0644
970.a61e37b9b897c8098261.js.map
13858 bytes
0644
9711.d6e977bd60f0e5ba673d.js
13555 bytes
0644
9711.d6e977bd60f0e5ba673d.js.map
43973 bytes
0644
9737.3340c89ea96d33307cc7.js
1001 bytes
0644
9737.3340c89ea96d33307cc7.js.map
3504 bytes
0644
9739.5a801055fcf72bf4d06f.js
1147 bytes
0644
9739.5a801055fcf72bf4d06f.js.map
4390 bytes
0644
9772.49e918c9331237552c0b.js
141 bytes
0644
9772.49e918c9331237552c0b.js.map
416 bytes
0644
9838.b8f01dc360f0c2151291.js
4003 bytes
0644
9838.b8f01dc360f0c2151291.js.map
8118 bytes
0644
AdminAuthentication.b7044adf53b669e61a87.js
22504 bytes
0644
AdminAuthentication.b7044adf53b669e61a87.js.map
67352 bytes
0644
AdminEditOrgPage.96fb6c37346641f44246.js
6369 bytes
0644
AdminEditOrgPage.96fb6c37346641f44246.js.map
20602 bytes
0644
AdminFeatureTogglesPage.22157fe31f358f1c4f09.js
4939 bytes
0644
AdminFeatureTogglesPage.22157fe31f358f1c4f09.js.map
16531 bytes
0644
AdminListOrgsPage.f01c8496fd635e20124b.js
2702 bytes
0644
AdminListOrgsPage.f01c8496fd635e20124b.js.map
7735 bytes
0644
AdminSettings.845c6def917892a0c1f9.js
1903 bytes
0644
AdminSettings.845c6def917892a0c1f9.js.map
5580 bytes
0644
AlertAmRoutes.10a0d9a23a082caf12c8.js
54554 bytes
0644
AlertAmRoutes.10a0d9a23a082caf12c8.js.map
208792 bytes
0644
AlertGroups.efd523dc41621f9f7935.js
10088 bytes
0644
AlertGroups.efd523dc41621f9f7935.js.map
39108 bytes
0644
AlertRuleListIndex.f0b17a6119cc5ea575ed.js
44623 bytes
0644
AlertRuleListIndex.f0b17a6119cc5ea575ed.js.map
156842 bytes
0644
AlertRuleListLegacy.8e675db4469232c87308.js
6270 bytes
0644
AlertRuleListLegacy.8e675db4469232c87308.js.map
18086 bytes
0644
AlertSilences.4ff252ad4c0057124d5d.js
24687 bytes
0644
AlertSilences.4ff252ad4c0057124d5d.js.map
83377 bytes
0644
AlertTabCtrl.d3377d127a336a69beb5.js
9844 bytes
0644
AlertTabCtrl.d3377d127a336a69beb5.js.map
27934 bytes
0644
AlertingAdmin.e62f9c73a69abe6a1ac0.js
10523 bytes
0644
AlertingAdmin.e62f9c73a69abe6a1ac0.js.map
37393 bytes
0644
AlertingFeatureTogglePage.f971bb7b2ad4ceb0acbd.js
672 bytes
0644
AlertingFeatureTogglePage.f971bb7b2ad4ceb0acbd.js.map
1220 bytes
0644
AlertingHome.0d6be993ef4a3df37345.js
33492 bytes
0644
AlertingHome.0d6be993ef4a3df37345.js.map
106868 bytes
0644
AlertingRedirectToRule.37a0040f89e20b99b751.js
3648 bytes
0644
AlertingRedirectToRule.37a0040f89e20b99b751.js.map
10875 bytes
0644
AlertingRuleForm.66bb5b2724b31ae6a5a4.js
79931 bytes
0644
AlertingRuleForm.66bb5b2724b31ae6a5a4.js.map
292923 bytes
0644
AlertingUpgrade.c757b99e306db50cdb16.js
31333 bytes
0644
AlertingUpgrade.c757b99e306db50cdb16.js.map
98330 bytes
0644
AngularApp.7e72879caebef22a5217.js
72809 bytes
0644
AngularApp.7e72879caebef22a5217.js.map
102853 bytes
0644
ApiKeysPage.12b0cd511f7b1e9c50dc.js
8422 bytes
0644
ApiKeysPage.12b0cd511f7b1e9c50dc.js.map
23375 bytes
0644
BenchmarksPage.3a183df3d44714f9a96a.js
2941 bytes
0644
BenchmarksPage.3a183df3d44714f9a96a.js.map
9749 bytes
0644
ChangePasswordPage.5e0562f6a9674bd95cfe.js
470 bytes
0644
ChangePasswordPage.5e0562f6a9674bd95cfe.js.map
1195 bytes
0644
Connections.b53c715b9b9a782d8647.js
32448 bytes
0644
Connections.b53c715b9b9a782d8647.js.map
112998 bytes
0644
CorrelationsFeatureToggle.71addced22f59948b708.js
674 bytes
0644
CorrelationsFeatureToggle.71addced22f59948b708.js.map
1149 bytes
0644
CorrelationsPage.4e02feddf752bdf7cfe6.js
22725 bytes
0644
CorrelationsPage.4e02feddf752bdf7cfe6.js.map
69262 bytes
0644
CreateTeam.dbde5b87278cf087cc5e.js
3046 bytes
0644
CreateTeam.dbde5b87278cf087cc5e.js.map
9594 bytes
0644
DashboardImport.06e6c4c03113061aae6c.js
18153 bytes
0644
DashboardImport.06e6c4c03113061aae6c.js.map
58242 bytes
0644
DashboardListPage.dac1fe75fbaa4f9b1c23.js
30967 bytes
0644
DashboardListPage.dac1fe75fbaa4f9b1c23.js.map
108517 bytes
0644
DashboardPage.5e50193556ad6b828f5d.js
2786 bytes
0644
DashboardPage.5e50193556ad6b828f5d.js.map
8754 bytes
0644
DashboardPageProxy.9a6d60e5cac89c11c71c.js
65136 bytes
0644
DashboardPageProxy.9a6d60e5cac89c11c71c.js.map
226791 bytes
0644
DataTrailsPage.aa19ca6750eb3f91ac5d.js
331 bytes
0644
DataTrailsPage.aa19ca6750eb3f91ac5d.js.map
582 bytes
0644
EditNotificationChannelLegacy.75122e6dbfb215d89d81.js
10507 bytes
0644
EditNotificationChannelLegacy.75122e6dbfb215d89d81.js.map
37444 bytes
0644
EmbeddedDashboard.3856404d3d608c739864.js
1768 bytes
0644
EmbeddedDashboard.3856404d3d608c739864.js.map
5917 bytes
0644
FolderAlerting.a0fe69e3574320c8a74a.js
9633 bytes
0644
FolderAlerting.a0fe69e3574320c8a74a.js.map
29985 bytes
0644
FolderLibraryPanelsPage.95dd7bf6735e202a79d2.js
8599 bytes
0644
FolderLibraryPanelsPage.95dd7bf6735e202a79d2.js.map
25919 bytes
0644
LibraryPanelsPage.4a952d4aa9c21984995a.js
2704 bytes
0644
LibraryPanelsPage.4a952d4aa9c21984995a.js.map
7623 bytes
0644
ListPublicDashboardPage.469a693c4011a5193fcd.js
4713 bytes
0644
ListPublicDashboardPage.469a693c4011a5193fcd.js.map
14309 bytes
0644
MuteTimings.cb66b37f52c9ee3ce1da.js
20855 bytes
0644
MuteTimings.cb66b37f52c9ee3ce1da.js.map
58932 bytes
0644
NewNotificationChannelLegacy.1d57814bc534bb1a3681.js
9785 bytes
0644
NewNotificationChannelLegacy.1d57814bc534bb1a3681.js.map
32951 bytes
0644
NewOrgPage.2bb0e1cab09f0cbd0310.js
1325 bytes
0644
NewOrgPage.2bb0e1cab09f0cbd0310.js.map
3158 bytes
0644
NotificationsListLegacyPage.33212668898a6db361a8.js
2547 bytes
0644
NotificationsListLegacyPage.33212668898a6db361a8.js.map
6671 bytes
0644
NotificationsListPage.1eb9cb05bf88eee08291.js
1620 bytes
0644
NotificationsListPage.1eb9cb05bf88eee08291.js.map
3378 bytes
0644
NotificationsPage.d26b90d7348139106351.js
4646 bytes
0644
NotificationsPage.d26b90d7348139106351.js.map
25381 bytes
0644
OrgDetailsPage.2d5c98f188683c2e1d3b.js
6742 bytes
0644
OrgDetailsPage.2d5c98f188683c2e1d3b.js.map
17850 bytes
0644
PlaylistEditPage.d14b3673a1bb03ca0dbb.js
6892 bytes
0644
PlaylistEditPage.d14b3673a1bb03ca0dbb.js.map
19989 bytes
0644
PlaylistNewPage.13696f39b95b8416ede2.js
6583 bytes
0644
PlaylistNewPage.13696f39b95b8416ede2.js.map
19084 bytes
0644
PlaylistPage.8f45dcc09add615f90e8.js
7895 bytes
0644
PlaylistPage.8f45dcc09add615f90e8.js.map
25502 bytes
0644
PlaylistStartPage.8be462b13a24cddee188.js
275 bytes
0644
PlaylistStartPage.8be462b13a24cddee188.js.map
698 bytes
0644
PluginListPage.815b65d32380d0a800f7.js
12167 bytes
0644
PluginListPage.815b65d32380d0a800f7.js.map
43537 bytes
0644
PluginPage.c790de5e17a0b728dd3a.js
314 bytes
0644
PluginPage.c790de5e17a0b728dd3a.js.map
668 bytes
0644
ProfileFeatureTogglePage.a14257ebc5da1e8c85e0.js
552 bytes
0644
ProfileFeatureTogglePage.a14257ebc5da1e8c85e0.js.map
1012 bytes
0644
PublicDashboardPage.51c7c24941781e091898.js
4295 bytes
0644
PublicDashboardPage.51c7c24941781e091898.js.map
14393 bytes
0644
SelectOrgPage.695c19a5101a3a03ee28.js
1124 bytes
0644
SelectOrgPage.695c19a5101a3a03ee28.js.map
2993 bytes
0644
SendResetMailPage.f16b7172a87070f57227.js
1736 bytes
0644
SendResetMailPage.f16b7172a87070f57227.js.map
4350 bytes
0644
ServerStats.3fbd2493deb8f4598755.js
3863 bytes
0644
ServerStats.3fbd2493deb8f4598755.js.map
11534 bytes
0644
ServiceAccountCreatePage.4f989fb6cd2a41193ff0.js
2440 bytes
0644
ServiceAccountCreatePage.4f989fb6cd2a41193ff0.js.map
7939 bytes
0644
ServiceAccountPage.bc7c35b63b03ccc89628.js
14806 bytes
0644
ServiceAccountPage.bc7c35b63b03ccc89628.js.map
51593 bytes
0644
ServiceAccountsPage.baaa08c045390c05e276.js
14565 bytes
0644
ServiceAccountsPage.baaa08c045390c05e276.js.map
46399 bytes
0644
SignupInvited.81ad56aceb8dd1839e15.js
2360 bytes
0644
SignupInvited.81ad56aceb8dd1839e15.js.map
6096 bytes
0644
SnapshotListPage.519c760ed66124a771ff.js
3061 bytes
0644
SnapshotListPage.519c760ed66124a771ff.js.map
9043 bytes
0644
SoloPanelPage.c729750a88c3fa90d1cc.js
3229 bytes
0644
SoloPanelPage.c729750a88c3fa90d1cc.js.map
12316 bytes
0644
SoloPanelPageOld.6518c21ccaf29701fa97.js
1727 bytes
0644
SoloPanelPageOld.6518c21ccaf29701fa97.js.map
5509 bytes
0644
StoragePage.9b93a99e75f7f2842c11.js
14081 bytes
0644
StoragePage.9b93a99e75f7f2842c11.js.map
48740 bytes
0644
SupportBundles.567d512b3f919b8112e4.js
3058 bytes
0644
SupportBundles.567d512b3f919b8112e4.js.map
8751 bytes
0644
SupportBundlesCreate.fc6b6e4cf6366f751081.js
2779 bytes
0644
SupportBundlesCreate.fc6b6e4cf6366f751081.js.map
8882 bytes
0644
TeamList.2e23d37c91734f608f09.js
9019 bytes
0644
TeamList.2e23d37c91734f608f09.js.map
30348 bytes
0644
TeamPages.4f6177b4c6ec769c72d8.js
22839 bytes
0644
TeamPages.4f6177b4c6ec769c72d8.js.map
66001 bytes
0644
TestStuffPage.8ddabdd17d265b771b17.js
2654 bytes
0644
TestStuffPage.8ddabdd17d265b771b17.js.map
8058 bytes
0644
UserCreatePage.72e86cf2c9a3ce50cff3.js
1470 bytes
0644
UserCreatePage.72e86cf2c9a3ce50cff3.js.map
3788 bytes
0644
UserInvitePage.c8243c9cee4b06e10222.js
2576 bytes
0644
UserInvitePage.c8243c9cee4b06e10222.js.map
6594 bytes
0644
UserListPage.acbb5778a782ca90c7ba.js
25463 bytes
0644
UserListPage.acbb5778a782ca90c7ba.js.map
79671 bytes
0644
UserProfileEditPage.7cc4c218d9e4664250e3.js
14593 bytes
0644
UserProfileEditPage.7cc4c218d9e4664250e3.js.map
42901 bytes
0644
UsersListPage.1b61c82d62ca416b6f2f.js
8800 bytes
0644
UsersListPage.1b61c82d62ca416b6f2f.js.map
30059 bytes
0644
alert-rules-drawer-content.1fd9de3b496d077a5f3a.js
957 bytes
0644
alert-rules-drawer-content.1fd9de3b496d077a5f3a.js.map
3199 bytes
0644
alert-rules-toolbar-button.6f275f0d03748b6c297d.js
1429 bytes
0644
alert-rules-toolbar-button.6f275f0d03748b6c297d.js.map
4041 bytes
0644
alertmanagerPlugin.d13ca72afb3f996bb284.js
3810 bytes
0644
alertmanagerPlugin.d13ca72afb3f996bb284.js.map
10753 bytes
0644
app.b11fde05d43f9632a473.js
920821 bytes
0644
app.b11fde05d43f9632a473.js.map
69088 bytes
0644
assets-manifest.json
280835 bytes
0644
azureMonitorPlugin.0bc37a9d4e3bd8421cc0.js
232 bytes
0644
azureMonitorPlugin.0bc37a9d4e3bd8421cc0.js.map
600 bytes
0644
brace.fcd4b1c7e8b9264ab02c.js
371235 bytes
0644
brace.fcd4b1c7e8b9264ab02c.js.map
1132097 bytes
0644
canvasPanel.a46aa5e57d26b1fcc380.js
485254 bytes
0644
canvasPanel.a46aa5e57d26b1fcc380.js.map
2136916 bytes
0644
cloudMonitoringPlugin.c6ea431eae8e9ad2c7b1.js
198 bytes
0644
cloudMonitoringPlugin.c6ea431eae8e9ad2c7b1.js.map
555 bytes
0644
cloudwatchPlugin.06ef34f60000c4f7ea37.js
192 bytes
0644
cloudwatchPlugin.06ef34f60000c4f7ea37.js.map
544 bytes
0644
dark.7fa24d1908c1c96e6fcc.js
134 bytes
0644
elasticsearchPlugin.3f2edb012f5162b48903.js
214 bytes
0644
elasticsearchPlugin.3f2edb012f5162b48903.js.map
583 bytes
0644
explore-feature-toggle-page.897d9f08c342ad4c0702.js
612 bytes
0644
explore-feature-toggle-page.897d9f08c342ad4c0702.js.map
1280 bytes
0644
explore.476912733278e2a99729.js
165810 bytes
0644
explore.476912733278e2a99729.js.map
579148 bytes
0644
geomapPanel.14b9605971a38c51d262.js
417078 bytes
0644
geomapPanel.14b9605971a38c51d262.js.map
540371 bytes
0644
grafana.dark.8c716fbcf630eae84ced.css
209089 bytes
0644
grafana.light.b8b3904788f25480f4a1.css
209047 bytes
0644
grafanaPlugin.1cb208185a89de28dc3a.js
8654 bytes
0644
grafanaPlugin.1cb208185a89de28dc3a.js.map
28174 bytes
0644
graphPlugin.f47f722cdfc0ceb85136.js
70277 bytes
0644
graphPlugin.f47f722cdfc0ceb85136.js.map
243430 bytes
0644
graphitePlugin.d59175976346917781fe.js
75305 bytes
0644
graphitePlugin.d59175976346917781fe.js.map
272016 bytes
0644
heatmapPanel.f6f29a53ed0f682b4404.js
37545 bytes
0644
heatmapPanel.f6f29a53ed0f682b4404.js.map
158066 bytes
0644
influxdbPlugin.140a7777089f9559c11c.js
68843 bytes
0644
influxdbPlugin.140a7777089f9559c11c.js.map
265085 bytes
0644
jaegerPlugin.d254fd4a19ef0cb5b4f5.js
19727 bytes
0644
jaegerPlugin.d254fd4a19ef0cb5b4f5.js.map
65603 bytes
0644
light.af65e5ce03b9ed0aa2b1.js
134 bytes
0644
loki-query-field.a588d587d9d762b18f22.js
191 bytes
0644
loki-query-field.a588d587d9d762b18f22.js.map
548 bytes
0644
lokiPlugin.77364509de280321b6f8.js
185 bytes
0644
lokiPlugin.77364509de280321b6f8.js.map
536 bytes
0644
mixedPlugin.f36bd557a883d9a67538.js
180 bytes
0644
mssqlPlugin.88775f59ced74c2283c5.js
20457 bytes
0644
mssqlPlugin.88775f59ced74c2283c5.js.map
61420 bytes
0644
mysqlPlugin.72fb44411afd8165d201.js
17323 bytes
0644
mysqlPlugin.72fb44411afd8165d201.js.map
45415 bytes
0644
nodeGraphPanel.9a7cdd8efdae281cbe28.js
2107 bytes
0644
nodeGraphPanel.9a7cdd8efdae281cbe28.js.map
7132 bytes
0644
opentsdbPlugin.418b8c8ea0d97ed99edb.js
22866 bytes
0644
opentsdbPlugin.418b8c8ea0d97ed99edb.js.map
82180 bytes
0644
parcaPlugin.7f2e6dde7161b08ceed2.js
11184 bytes
0644
parcaPlugin.7f2e6dde7161b08ceed2.js.map
42340 bytes
0644
postgresPlugin.f88c598bae2653ae177b.js
18902 bytes
0644
postgresPlugin.f88c598bae2653ae177b.js.map
54304 bytes
0644
prom-query-field.ff217c474ea457bdd65e.js
14104 bytes
0644
prom-query-field.ff217c474ea457bdd65e.js.map
76811 bytes
0644
prometheusPlugin.2ba02c28d3f7293e903e.js
224 bytes
0644
prometheusPlugin.2ba02c28d3f7293e903e.js.map
699 bytes
0644
pyroscopePlugin.eb14b78419d619d90dca.js
22269 bytes
0644
pyroscopePlugin.eb14b78419d619d90dca.js.map
86896 bytes
0644
react-monaco-editor.988b1aa5e90b11f9941a.js
15759 bytes
0644
react-monaco-editor.988b1aa5e90b11f9941a.js.map
51544 bytes
0644
runtime.4b7e1b5735d2ed64b824.js
13640 bytes
0644
runtime.4b7e1b5735d2ed64b824.js.map
35122 bytes
0644
tableOldPlugin.8c72b8399d197aeebe16.js
25242 bytes
0644
tableOldPlugin.8c72b8399d197aeebe16.js.map
80497 bytes
0644
tempoPlugin.efa8c2a55984263b4b61.js
182 bytes
0644
tempoPlugin.efa8c2a55984263b4b61.js.map
529 bytes
0644
testDataDSPlugin.9717509b124d754e4f35.js
120550 bytes
0644
testDataDSPlugin.9717509b124d754e4f35.js.map
303302 bytes
0644
visjs-network.d93b3aa71ac24c8cde84.js
459653 bytes
0644
visjs-network.d93b3aa71ac24c8cde84.js.map
1951742 bytes
0644
zipkinPlugin.70f0f24b6d0b6e673ccb.js
13172 bytes
0644
zipkinPlugin.70f0f24b6d0b6e673ccb.js.map
46861 bytes
0644
N4ST4R_ID | Naxtarrr