@appland/appmap 3.53.1 → 3.54.0
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@appland/appmap-v3.54.0](https://github.com/getappmap/appmap-js/compare/@appland/appmap-v3.53.1...@appland/appmap-v3.54.0) (2022-12-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Diff 'change' option ([ee70ee8](https://github.com/getappmap/appmap-js/commit/ee70ee8fa282685cc5cf8892e81618df7b7f2204))
|
|
7
|
+
|
|
1
8
|
# [@appland/appmap-v3.53.1](https://github.com/getappmap/appmap-js/compare/@appland/appmap-v3.53.0...@appland/appmap-v3.53.1) (2022-12-13)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequenceDiagram.js","sourceRoot":"","sources":["../../src/cmds/sequenceDiagram.ts"],"names":[],"mappings":";;;AAAA,0CAAyD;AACzD,+BAA+C;
|
|
1
|
+
{"version":3,"file":"sequenceDiagram.js","sourceRoot":"","sources":["../../src/cmds/sequenceDiagram.ts"],"names":[],"mappings":";;;AAAA,0CAAyD;AACzD,+BAA+C;AAE/C,0EAAuE;AACvE,oCAAmC;AACnC,4CAA8C;AAC9C,gEAMmC;AAEtB,QAAA,OAAO,GAAG,yBAAyB,CAAC;AACpC,QAAA,QAAQ,GAAG,2CAA2C,CAAC;AAE7D,MAAM,OAAO,GAAG,CAAC,IAAgB,EAAE,EAAE;IAC1C,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE;QACxB,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,IAAI;KACnB,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;QACvB,QAAQ,EAAE,2BAA2B;QACrC,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,GAAG;K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2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
-
};
|
|
24
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
3
|
exports.handler = exports.builder = exports.describe = exports.command = void 0;
|
|
26
4
|
const async_1 = require("async");
|
|
@@ -29,11 +7,9 @@ const promises_1 = require("fs/promises");
|
|
|
29
7
|
const glob_1 = require("glob");
|
|
30
8
|
const util_1 = require("util");
|
|
31
9
|
const handleWorkingDirectory_1 = require("../lib/handleWorkingDirectory");
|
|
32
|
-
const
|
|
33
|
-
const buildDiffDiagram_1 = __importDefault(require("@appland/sequence-diagram/dist/buildDiffDiagram"));
|
|
34
|
-
const diff_1 = __importStar(require("@appland/sequence-diagram/dist/diff"));
|
|
35
|
-
const types_1 = require("@appland/sequence-diagram/dist/types");
|
|
10
|
+
const sequence_diagram_1 = require("@appland/sequence-diagram");
|
|
36
11
|
const utils_1 = require("../utils");
|
|
12
|
+
const path_1 = require("path");
|
|
37
13
|
exports.command = 'sequence-diagram-diff base-diagram head-diagram';
|
|
38
14
|
exports.describe = 'Diff sequence diagrams that are represented as JSON';
|
|
39
15
|
const builder = (args) => {
|
|
@@ -72,13 +48,13 @@ async function readDiagramFile(fileName) {
|
|
|
72
48
|
if (action.children)
|
|
73
49
|
action.children.forEach((child) => resolveActors(child));
|
|
74
50
|
};
|
|
75
|
-
diagram.rootActions.forEach((action) => (0,
|
|
51
|
+
diagram.rootActions.forEach((action) => (0, sequence_diagram_1.setParent)(action));
|
|
76
52
|
diagram.rootActions.forEach((action) => resolveActors(action));
|
|
77
53
|
return diagram;
|
|
78
54
|
}
|
|
79
|
-
async function performDiff(
|
|
80
|
-
const result = (0,
|
|
81
|
-
const changes = result.
|
|
55
|
+
async function performDiff(format, outputFileName, baseFileName, base, head, headFileName) {
|
|
56
|
+
const result = (0, sequence_diagram_1.diff)(base, head, {});
|
|
57
|
+
const changes = result.moves.filter((move) => move.moveType !== sequence_diagram_1.MoveType.AdvanceBoth);
|
|
82
58
|
if (changes.length === 0) {
|
|
83
59
|
if (headFileName) {
|
|
84
60
|
console.log(`${baseFileName} and ${headFileName} are identical`);
|
|
@@ -88,7 +64,7 @@ async function performDiff(formatter, outputFileName, baseFileName, base, head,
|
|
|
88
64
|
}
|
|
89
65
|
return;
|
|
90
66
|
}
|
|
91
|
-
const diagram = (0,
|
|
67
|
+
const diagram = (0, sequence_diagram_1.buildDiffDiagram)(result);
|
|
92
68
|
let description;
|
|
93
69
|
if (headFileName) {
|
|
94
70
|
description = `Diff ${baseFileName} with ${headFileName}`;
|
|
@@ -96,21 +72,22 @@ async function performDiff(formatter, outputFileName, baseFileName, base, head,
|
|
|
96
72
|
else {
|
|
97
73
|
description = `Diff ${baseFileName}`;
|
|
98
74
|
}
|
|
99
|
-
const template =
|
|
100
|
-
|
|
75
|
+
const template = (0, sequence_diagram_1.format)(format, diagram, description);
|
|
76
|
+
const outputPath = [outputFileName, template.extension].join('');
|
|
77
|
+
await (0, promises_1.writeFile)(outputPath, template.diagram);
|
|
78
|
+
console.log(`Printed diagram ${outputPath}`);
|
|
101
79
|
return diagram;
|
|
102
80
|
}
|
|
103
81
|
const handler = async (argv) => {
|
|
104
82
|
(0, utils_1.verbose)(argv.verbose);
|
|
105
|
-
(
|
|
106
|
-
await (0, promises_1.mkdir)(argv.outputDir, { recursive: true });
|
|
107
|
-
const { baseDiagram: baseDiagramFile, headDiagram: headDiagramFile } = argv;
|
|
108
|
-
const formatter = formatter_1.default[argv.format];
|
|
109
|
-
if (!formatter) {
|
|
83
|
+
if (!sequence_diagram_1.Formatters.includes(argv.format)) {
|
|
110
84
|
console.log(`Invalid format: ${argv.format}`);
|
|
111
85
|
process.exitCode = 1;
|
|
112
86
|
return;
|
|
113
87
|
}
|
|
88
|
+
(0, handleWorkingDirectory_1.handleWorkingDirectory)(argv.directory);
|
|
89
|
+
await (0, promises_1.mkdir)(argv.outputDir, { recursive: true });
|
|
90
|
+
const { baseDiagram: baseDiagramFile, headDiagram: headDiagramFile } = argv;
|
|
114
91
|
[baseDiagramFile, headDiagramFile].forEach((fileName) => {
|
|
115
92
|
if (!(0, fs_1.existsSync)(fileName))
|
|
116
93
|
throw new Error(`${fileName} does not exist`);
|
|
@@ -118,7 +95,7 @@ const handler = async (argv) => {
|
|
|
118
95
|
const compareFiles = async () => {
|
|
119
96
|
const baseDiagram = await readDiagramFile(baseDiagramFile);
|
|
120
97
|
const headDiagram = await readDiagramFile(headDiagramFile);
|
|
121
|
-
performDiff(
|
|
98
|
+
performDiff(argv.format, (0, path_1.join)(argv.outputDir, 'diff'), baseDiagramFile, baseDiagram, headDiagram, headDiagramFile);
|
|
122
99
|
};
|
|
123
100
|
const compareDirectories = async () => {
|
|
124
101
|
const diagramData = new Map();
|
|
@@ -154,7 +131,7 @@ const handler = async (argv) => {
|
|
|
154
131
|
console.log(`Diagram ${fileName} exists only in ${baseDiagramFile}`);
|
|
155
132
|
continue;
|
|
156
133
|
}
|
|
157
|
-
performDiff(
|
|
134
|
+
performDiff(argv.format, [fileName, 'diff'].join('.'), fileName, diagramData.get(baseDiagramFile).diagrams.get(fileName), diagramData.get(headDiagramFile).diagrams.get(fileName));
|
|
158
135
|
}
|
|
159
136
|
};
|
|
160
137
|
const isFile = [baseDiagramFile, headDiagramFile].map((fileName) => (0, fs_1.statSync)(fileName).isFile());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequenceDiagramDiff.js","sourceRoot":"","sources":["../../src/cmds/sequenceDiagramDiff.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sequenceDiagramDiff.js","sourceRoot":"","sources":["../../src/cmds/sequenceDiagramDiff.ts"],"names":[],"mappings":";;;AAAA,iCAA8B;AAC9B,2BAA0C;AAC1C,0CAAyD;AACzD,+BAA4B;AAC5B,+BAAiC;AAEjC,0EAAuE;AACvE,gEAWmC;AACnC,oCAAmC;AACnC,+BAA4B;AAEf,QAAA,OAAO,GAAG,iDAAiD,CAAC;AAC5D,QAAA,QAAQ,GAAG,qDAAqD,CAAC;AAEvE,MAAM,OAAO,GAAG,CAAC,IAAgB,EAAE,EAAE;IAC1C,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE;QAC9B,QAAQ,EAAE,2CAA2C;KACtD,CAAC,CAAC;IACH,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE;QAC9B,QAAQ,EAAE,2CAA2C;KACtD,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;QACvB,QAAQ,EAAE,2BAA2B;QACrC,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,GAAG;KACX,CAAC,CAAC;IACH,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE;QACxB,QAAQ,EAAE,kDAAkD;QAC5D,OAAO,EAAE,GAAG;KACb,CAAC,CAAC;IACH,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QACpB,QAAQ,EAAE,eAAe;QACzB,OAAO,E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KAC5B;SAAM;QACL,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;KACpE;AACH,CAAC,CAAC;AA1FW,QAAA,OAAO,WA0FlB"}
|
package/built/html/page.js
CHANGED
|
@@ -105,11 +105,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`),pe=m,Z=S);let f={code:
|
|
|
105
105
|
/
|
|
106
106
|
`)]):e._e(),e._v(`
|
|
107
107
|
`+e._s(e.nodesLength)+` results
|
|
108
|
-
`)]),e._v(" "),r("div",{staticClass:"trace-filter__arrow",on:{click:e.onNextArrow}},[r("ArrowSearchRightIcon")],1)]):e._e()])},staticRenderFns:[]},function(e){e&&e("data-v-07f84e90_0",{source:'.trace-filter{padding:1rem 1.25rem;display:flex;justify-content:flex-start;align-items:center;font-family:"IBM Plex Sans","Helvetica Neue",Helvetica,Arial,sans-serif}.trace-filter__form{flex:1;position:relative;border-radius:.5rem;border:2px solid #7f6be6}.trace-filter__form--show-suggestions{border-radius:.5rem .5rem 0 0}.trace-filter__prefix{position:absolute;top:50%;left:0;width:2rem;display:flex;justify-content:center;align-items:center;transform:translateY(-50%);text-align:center;color:#ccc}.trace-filter__prefix svg{position:relative;left:3px;width:14px;height:14px;fill:#716e85}.trace-filter__input{border:none;width:100%;padding:.5rem 2rem;font:inherit;font-size:.75rem;color:#e7e7e7;background:0 0;outline:0}.trace-filter__input::-moz-placeholder,.trace-filter__input::-webkit-placeholder,.trace-filter__input::placeholder{color:#808b98}.trace-filter__suffix{position:absolute;top:50%;right:5px;width:1rem;height:1rem;display:flex;justify-content:center;align-items:center;transform:translateY(-50%);text-align:center;color:#716e85;transition:color .3s ease-in;cursor:pointer}.trace-filter__suffix:active,.trace-filter__suffix:hover{color:#e1e2e2;transition-timing-function:ease-out}.trace-filter__suffix svg{width:14px;height:14px;fill:currentColor}.trace-filter__suggestions{display:none;position:absolute;top:100%;left:-2px;right:-2px;border-radius:0 0 .5rem .5rem;border:2px solid #7f6be6;border-top:1px solid #2c2b32;margin:0;padding:0;max-height:112px;list-style:none;overflow-x:hidden;overflow-y:auto;background:#191919;z-index:1}.trace-filter__form--show-suggestions .trace-filter__suggestions{display:block}.trace-filter__suggestions-item{padding:0 .75rem;height:22px;font-size:12px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#a0a0a0;cursor:pointer}.trace-filter__suggestions-item--selected,.trace-filter__suggestions-item:active,.trace-filter__suggestions-item:hover{color:#eaeaea;background-color:#292929}.trace-filter__arrows{display:flex;align-items:center;padding:0 1.25rem}.trace-filter__arrows-text{margin:0 .5rem;font-size:.75rem;color:#ccc}.trace-filter__arrow{padding:.25rem;font-size:0;cursor:pointer}',map:void 0,media:void 0})},{name:"v-trace-filter",components:{ArrowSearchLeftIcon:{functional:!0,render(e,t){let{_c:r,_v:n,data:i,children:a=[]}=t,{class:s,staticClass:o,style:u,staticStyle:l,attrs:d={},...h}=i;return r("svg",{class:[s,o],style:[u,l],attrs:Object.assign({width:"7",height:"13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),...h},a.concat([r("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.853.147a.5.5 0 010 .708L1.208 6.5l5.645 5.646a.5.5 0 11-.708.707L.147 6.854a.5.5 0 010-.708l5.998-6a.5.5 0 01.708 0z",fill:"#716E85"}})]))}},ArrowSearchRightIcon:{functional:!0,render(e,t){let{_c:r,_v:n,data:i,children:a=[]}=t,{class:s,staticClass:o,style:u,staticStyle:l,attrs:d={},...h}=i;return r("svg",{class:[s,o],style:[u,l],attrs:Object.assign({width:"7",height:"13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),...h},a.concat([r("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M.147 12.853a.5.5 0 010-.708L5.792 6.5.147.855A.5.5 0 01.855.147l5.998 5.999a.5.5 0 010 .708l-5.998 6a.5.5 0 01-.708 0z",fill:"#716E85"}})]))}},CloseThinIcon:Rf,SearchIcon:A4},props:{nodesLength:{type:Number,require:!1,default:0},currentIndex:{type:Number,default:null},suggestions:{type:Array,default:()=>[]}},data:()=>({filterValue:"",showSuggestions:!1,selectedSuggestion:!1}),watch:{filterValue:{handler(e){this.$emit("onChange",e)}},selectedSuggestion:{handler(e){if(e===!1)return;let t=this.$refs.suggestionsList.querySelectorAll("li")[e];t.offsetTop<this.$refs.suggestionsList.scrollTop?this.$refs.suggestionsList.scrollTop=t.offsetTop:t.offsetTop>=this.$refs.suggestionsList.scrollTop+this.$refs.suggestionsList.offsetHeight-2&&(this.$refs.suggestionsList.scrollTop=t.offsetTop-4*t.offsetHeight)}}},computed:{formClasses(){let e=["trace-filter__form"];return this.showSuggestions&&this.suggestionsList.length&&e.push("trace-filter__form--show-suggestions"),e},suggestionsList(){let{suggestions:e}=this,t=this.filterValue.includes('"')?/([^"]*)$/:/([^\s]*)$/,r=this.filterValue.match(t).pop().trim();return!r||/^".+"$/g.test(r)||/^id:.+$/g.test(r)||/^label:.+$/g.test(r)||(e=e.filter(n=>new RegExp(r,"ig").test(n))),e}},methods:{setValue(e){this.filterValue=e},clearValue(){this.filterValue=""},onPrevArrow(){this.$emit("onPrevArrow")},onNextArrow(){this.$emit("onNextArrow")},getSuggestionClasses(e){let t=["trace-filter__suggestions-item"];return e===this.selectedSuggestion&&t.push("trace-filter__suggestions-item--selected"),t},onInputFocus(){this.showSuggestions=!0,this.selectedSuggestion=!1},onInputBlur(){this.filterValue.endsWith(" ")||(this.filterValue+=" ")},onFormSubmit(){this.$refs.input===window.document.activeElement&&this.showSuggestions&&this.suggestionsList.length&&this.selectedSuggestion!==!1&&this.makeSelection(this.suggestionsList[this.selectedSuggestion].toString()),this.$refs.input.blur(),this.showSuggestions=!1},makeSelection(e){let t=this.filterValue.match(/(?:[^\s"]+|"[^"]*")+/g),r=t?t[t.length-1]:null;this.filterValue.endsWith(" ")||!r||/^".+"$/g.test(r)||/^id:.+$/g.test(r)||/^label:.+$/g.test(r)||t.pop(),this.filterValue=`${t?t.join(" ")+" ":""}"${e}" `},onWindowClick(e){Ft(e.target,this.$refs.form)||this.$refs.input===window.document.activeElement||(this.showSuggestions=!1)},onWindowKeyUp(e){if(this.$refs.input===window.document.activeElement)switch(e.key){case"Escape":this.showSuggestions=!1,this.$refs.input.blur();break;case"ArrowDown":this.selectedSuggestion!==!1&&this.selectedSuggestion!==this.suggestionsList.length-1?this.selectedSuggestion+=1:this.selectedSuggestion=0;break;case"ArrowUp":this.selectedSuggestion!==!1&&this.selectedSuggestion!==0?this.selectedSuggestion-=1:this.selectedSuggestion=this.suggestionsList.length-1;break;default:this.selectedSuggestion=!1}}},created(){window.addEventListener("click",this.onWindowClick),window.addEventListener("keyup",this.onWindowKeyUp,!0)},destroyed(){window.removeEventListener("click",this.onWindowClick),window.removeEventListener("keyup",this.onWindowKeyUp,!0)}},void 0,!1,void 0,!1,X,void 0,void 0),DiagramGray:bZ},store:KJ,data:()=>({renderKey:0,isLoading:!0,isPanelResizing:!1,initialPanelWidth:0,initialClientX:0,version:null,versionText:"",VIEW_COMPONENT:"viewComponent",VIEW_FLOW:"viewFlow",filters:{rootObjects:[],declutter:{limitRootEvents:{on:!0,default:!0},hideMediaRequests:{on:!0,default:!0},hideUnlabeled:{on:!1,default:!1},hideElapsedTimeUnder:{on:!1,default:!1,time:100},hideName:{on:!1,default:!1,names:[]}}},traceFilterValue:"",currentTraceFilterIndex:0}),props:{appMapUploadable:{type:Boolean,default:!1}},watch:{"$store.state.currentView":{handler(e){this.onChangeTab(this.$refs[e]),this.$refs.tabs.activateTab(this.$refs[e]),this.$root.$emit("stateChanged","currentView")}},"$store.getters.selectedObject":{handler(e){if(e){if(e instanceof Re||this.setView("viewComponent"),e instanceof Re){let t=this.highlightedNodes.findIndex(r=>r===e);this.currentTraceFilterIndex=t>=0?t:void 0}}else this.currentTraceFilterIndex=void 0;this.$root.$emit("stateChanged","selectedObject")}},"$store.getters.selectedLabel":{handler(){this.$root.$emit("stateChanged","selectedObject")}},"$store.getters.focusedEvent":{handler(e){e&&(this.setView("viewFlow"),this.$nextTick(()=>{this.$refs.diagramFlow.focusFocused()}))}},highlightedNodes:{handler(){this.currentTraceFilterIndex=0,this.selectCurrentHighlightedEvent()}},currentTraceFilterIndex:{handler(){this.selectCurrentHighlightedEvent()}},filteredAppMap:{handler(){this.selectedObject&&this.setSelectedObject(this.selectedObject.fqid)}}},computed:{classes(){return this.isLoading?"app--loading":""},filteredAppMap(){let{appMap:e}=this.$store.state,{classMap:t}=e,r=e.rootEvents();this.filters.declutter.limitRootEvents.on&&(r=r.filter(a=>a.httpServerRequest));let n=r.reduce((a,s)=>(s.traverse(o=>a.push(o)),a),[]);if(this.filters.rootObjects.length){let a=[];t.codeObjects.forEach(s=>{this.filters.rootObjects.forEach(o=>{this.codeObjectIsMatched(s,o)&&(a=a.concat(s.allEvents.map(u=>[u.id,u.linkedEvent.id])))})}),a.length&&(n=n.filter(s=>a.some(o=>s.id>=o[0]&&s.id<=o[1])))}this.filters.declutter.hideMediaRequests.on&&(n=this.filterMediaRequests(n)),this.filters.declutter.hideUnlabeled.on&&(n=n.filter(a=>a.labels.size>0||a.codeObject.type!==Y.FUNCTION)),this.filters.declutter.hideElapsedTimeUnder.on&&this.filters.declutter.hideElapsedTimeUnder.time>0&&(n=n.filter(a=>a.returnEvent&&a.returnEvent.elapsedTime&&a.returnEvent.elapsedTime>=this.filters.declutter.hideElapsedTimeUnder.time/1e3)),this.filters.declutter.hideName.on&&this.filters.declutter.hideName.names.length&&t.codeObjects.forEach(a=>{this.filters.declutter.hideName.names.forEach(s=>{this.codeObjectIsMatched(a,s)&&(n=n.filter(o=>!a.allEvents.includes(o)))})});let i=new Set(n.filter(a=>a.isCall()).map(a=>a.id));return Pr({events:n.filter(a=>i.has(a.id)||i.has(a.parent_id)),classMap:t.roots.map(a=>({...a.data})),metadata:e.metadata}).build()},rootObjectsSuggestions(){return this.$store.state.appMap.classMap.codeObjects.map(e=>e.fqid).filter(e=>!this.filters.rootObjects.includes(e))},hideNamesSuggestions(){return this.filteredAppMap.classMap.codeObjects.map(e=>e.fqid).filter(e=>!this.filters.declutter.hideName.names.includes(e))},eventsSuggestions(){let e=new Set(this.highlightedNodes.map(r=>r.id)),t=new Set(this.filteredAppMap.events.filter(r=>r.isCall()&&!e.has(r.id)).map(r=>r.toString()));return Array.from(t)},eventsById(){return this.filteredAppMap.events.reduce((e,t)=>(e[t.id]=t.callEvent,e),{})},eventsByLabel(){return this.filteredAppMap.events.filter(e=>e.isCall()).reduce((e,t)=>(t.labels.forEach(r=>{e[r]=e[r]||[],e[r].push(t.callEvent)}),e),{})},highlightedNodes(){let e=new Set;if(this.traceFilterValue){let t=this.traceFilterValue.match(/(?:[^\s"]+|"[^"]*"|"[^"]*)+/g);t&&(this.traceFilterValue.endsWith(" ")||t.pop(),t.forEach(r=>{if(/^".+"$/g.test(r)){let a=r.slice(1,-1);return void this.filteredAppMap.events.forEach(s=>{s.isCall()&&s.toString()===a&&e.add(s)})}let[n,i]=r.split(":");switch(n){case"id":{let a=parseInt(i,10);if(Number.isNaN(a))break;let s=this.eventsById[a];s?e.add(s):this.filters.declutter.limitRootEvents.on&&this.$store.state.appMap.rootEvents().some(o=>o.id===a)&&this.$nextTick(()=>{this.filters.declutter.limitRootEvents.on=!1});break}case"label":{let a=this.eventsByLabel[i];a&&a.forEach(s=>e.add(s));break}default:if(r.length<3)break;this.filteredAppMap.events.forEach(a=>{a.isCall()&&a.toString().toLowerCase().includes(r.toString().toLowerCase())&&e.add(a)})}}))}return Array.from(e).sort((t,r)=>t.id-r.id)},highlightedEvent(){return this.highlightedNodes[this.currentTraceFilterIndex]},selectedObject(){return this.$store.getters.selectedObject},selectedEvent(){return this.selectedObject instanceof Re?[this.selectedObject]:[]},selectedLabel(){return this.$store.getters.selectedLabel},focusedEvent(){return this.$store.getters.focusedEvent},currentView(){return this.$store.state.currentView},isViewingComponent(){return this.currentView==="viewComponent"},isViewingFlow(){return this.currentView==="viewFlow"},prevSelectedObject(){return this.$store.getters.prevSelectedObject},canGoBack(){return this.$store.getters.canPopStack},isEmptyAppMap(){let e=this.filteredAppMap,t=Array.isArray(e.events)&&e.events.length,r=Array.isArray(e.classMap.codeObjects)&&e.classMap.codeObjects.length;return!(this.filtersChanged||this.traceFilterValue||t&&r)},filtersChanged(){return this.filters.rootObjects.length>0||Object.values(this.filters.declutter).some(e=>typeof e.on=="boolean"&&e.on!==e.default||typeof on=="function"&&e.on()!==e.default)}},methods:{loadData(e){this.$store.commit("setAppMapData",e);let t=this.$store.state.appMap.rootEvents().some(r=>r.httpServerRequest);this.filters.declutter.limitRootEvents.on=t,this.filters.declutter.limitRootEvents.default=t,this.isLoading=!1},showInstructions(){this.$refs.instructions.open(),this.$root.$emit("showInstructions")},showVersionNotification(e,t=""){this.version=e,this.versionText=t},onNotificationOpen(){this.$root.$emit("notificationOpen")},onNotificationClose(){this.version=null,this.versionText="",this.$root.$emit("notificationClose")},onChangeTab(e){let t=Object.values(this.$refs).findIndex(n=>n===e);if(t===-1)return;let r=Object.keys(this.$refs)[t];this.setView(r),this.$root.$emit("changeTab",r)},setView(e){this.currentView!==e&&this.$store.commit("setView",e)},getState(){let e={};this.currentView!=="viewComponent"&&(e.currentView=this.currentView),this.selectedObject&&this.selectedObject.fqid?e.selectedObject=this.selectedObject.fqid:this.selectedLabel&&(e.selectedObject="label:"+this.selectedLabel),this.traceFilterValue&&(e.traceFilter=this.traceFilterValue);let{declutter:t}=this.filters;return e.filters=Object.entries({rootObjects:t.rootObjects,limitRootEvents:t.limitRootEvents.on,hideMediaRequests:t.hideMediaRequests.on,hideUnlabeled:t.hideUnlabeled.on,hideElapsedTimeUnder:!!t.hideElapsedTimeUnder.on&&t.hideElapsedTimeUnder.time,hideName:!!t.hideName.on&&t.hideName.names}).reduce((n,[i,a])=>{let s=this.filters.declutter[i];return(Array.isArray(a)&&a.length!==0||s&&s.default!==a)&&(n[i]=a),n},{}),Object.keys(e.filters).length===0&&delete e.filters,Object.keys(e).length===0?"":(r=JSON.stringify(e),xf.Buffer.from(r,"utf-8").toString("base64").replace(/=/g,"").replace(/_/g,"/").replace(/-/g,"+"));var r},setSelectedObject(e){let[t,r,n]=e.match(/^([a-z]+):(.+)/);if(!t)return;if(r==="label")return void this.$store.commit("selectLabel",n);let{classMap:i,events:a}=this.filteredAppMap,s=null;if(r==="event"){let o=parseInt(n,10);if(Number.isNaN(o))return;s=a.find(u=>u.id===o)}else s=i.codeObjects.find(o=>o.fqid===e);this.$store.commit("selectObject",s)},setState(e){return new Promise(t=>{if(!e)return void t();let r;var n;e.trimLeft().startsWith("{")?r=e:(n=e,r=xf.Buffer.from(n,"base64").toString("utf-8"));let i=JSON.parse(r);if(i.selectedObject)do{let s=i.selectedObject,[o,u,l]=s.match(/^([a-z]+):(.+)/);if(!o)break;if(u==="label"){this.$store.commit("selectLabel",l);break}let{classMap:d,events:h}=this.filteredAppMap,E=null;if(u==="event"){let b=parseInt(l,10);if(Number.isNaN(b))break;E=h.find(A=>A.id===b),E||(E=this.$store.state.appMap.events.find(A=>A.id===b),E&&Object.keys(this.filters.declutter).forEach(A=>{this.filters.declutter[A].on=!1}))}else E=d.codeObjects.find(b=>b.fqid===s);E&&this.$store.commit("selectObject",E)}while(0);let{filters:a}=i;a&&("rootObjects"in a&&(this.filters.declutter.rootObjects=a.rootObjects),"limitRootEvents"in a&&(this.filters.declutter.limitRootEvents.on=a.limitRootEvents),"hideMediaRequests"in a&&(this.filters.declutter.hideMediaRequests.on=a.hideMediaRequests),"hideUnlabeled"in a&&(this.filters.declutter.hideUnlabeled.on=a.hideUnlabeled),"hideElapsedTimeUnder"in a&&a.hideElapsedTimeUnder!==!1&&(this.filters.declutter.hideElapsedTimeUnder.on=!0,this.filters.declutter.hideElapsedTimeUnder.time=a.hideElapsedTimeUnder),"hideName"in a&&a.hideName!==!1&&(this.filters.declutter.hideName.on=!0,this.filters.declutter.hideName.names=a.hideName)),this.$nextTick(()=>{i.currentView&&this.setView(i.currentView),i.traceFilter?this.$nextTick(()=>{i.traceFilter.endsWith(" ")||(i.traceFilter+=" "),this.$refs.traceFilter.setValue(i.traceFilter),t()}):t()})})},clearSelection(){this.currentTraceFilterIndex=0,this.$store.commit("clearObjectStack"),this.$root.$emit("clearSelection")},goBack(){this.$store.commit("popObjectStack")},resetDiagram(){this.clearSelection(),this.resetFilters(),this.renderKey+=1},uploadAppmap(){this.$root.$emit("uploadAppmap")},onClickTraceEvent(e){this.$store.commit("selectObject",e)},startResizing(e){document.body.style.userSelect="none",this.isPanelResizing=!0,this.initialPanelWidth=this.$refs.mainColumnLeft.offsetWidth,this.initialClientX=e.clientX},makeResizing(e){if(this.isPanelResizing){let r=.75*window.innerWidth,n=this.initialPanelWidth+(e.clientX-this.initialClientX);n=Math.max(280,n),n=Math.min(r,n),this.$refs.mainColumnLeft.style.width=n+"px"}},stopResizing(){document.body.style.userSelect="",this.isPanelResizing=!1},resetFilters(){this.filters.rootObjects=[],Object.keys(this.filters.declutter).forEach(e=>{this.filters.declutter[e].on=this.filters.declutter[e].default}),this.filters.declutter.hideName.names=[]},addHiddenName(e){let t=e.trim();t&&!this.filters.declutter.hideName.names.includes(t)&&(this.filters.declutter.hideName.names.push(t),this.filters.declutter.hideName.on=!0)},removeHiddenName(e){this.filters.declutter.hideName.names.splice(e,1),this.filters.declutter.hideName.names.length===0&&(this.filters.declutter.hideName.on=!1)},addRootObject(e){let t=e.trim();t&&!this.filters.rootObjects.includes(t)&&this.filters.rootObjects.push(t)},removeRootObject(e){this.filters.rootObjects.splice(e,1)},filterMediaRequests(e){let t=[],r=["application/javascript","application/ecmascript","audio/.+","font/.+","image/.+","text/javascript","text/ecmascript","text/css","video/.+"].map(i=>new RegExp(i,"i")),n=new Set(["aac","avi","bmp","css","flv","gif","htm","html","ico","jpeg","jpg","js","json","jsonld","mid","midi","mjs","mov","mp3","mp4","mpeg","oga","ogg","ogv","ogx","opus","otf","png","svg","tif","tiff","ts","ttf","wav","weba","webm","webp","woff","woff2","xhtml","3gp","3g2"]);return e.forEach(i=>{if(i.requestMethod==="GET"&&i.requestPath){let a=i.requestPath.match(/.*\.([\S]*)$/);a&&n.has(a[1])&&t.push(i.id)}else if(i.http_server_response){let a;if(i.http_server_response.headers){let s=Object.keys(i.http_server_response.headers).filter(o=>o.toLowerCase()==="content-type")[0];a=i.http_server_response.headers[s]}else i.http_server_response.mime_type&&(a=i.http_server_response.mime_type);a&&r.some(s=>s.test(a))&&t.push(i.parent_id)}}),e.filter(i=>!t.includes(i.id))},codeObjectIsMatched(e,t){if(t.startsWith("label:")){let r=new RegExp(`^${t.replace("label:","").replace("*",".*")}$`,"ig");return Array.from(e.labels).some(n=>r.test(n))}if(t.includes("*")){if(new RegExp(`^${t.replace("*",".*")}$`,"ig").test(e.fqid))return!0}else if(t===e.fqid)return!0;return!1},prevTraceFilter(){if(this.highlightedNodes.length!==0){if(Number.isFinite(this.currentTraceFilterIndex))this.currentTraceFilterIndex-=1;else{let[e]=this.selectedEvent;if(e){let t=this.highlightedNodes.filter(r=>r.id<e.id).pop();this.currentTraceFilterIndex=this.highlightedNodes.findIndex(r=>r===t)}else this.currentTraceFilterIndex=-1}this.currentTraceFilterIndex<0&&(this.currentTraceFilterIndex=this.highlightedNodes.length-1)}},nextTraceFilter(){if(this.highlightedNodes.length!==0){if(Number.isFinite(this.currentTraceFilterIndex))this.currentTraceFilterIndex+=1;else{let[e]=this.selectedEvent;if(e){let t=this.highlightedNodes.filter(r=>r.id>e.id).shift();this.currentTraceFilterIndex=this.highlightedNodes.findIndex(r=>r===t)}else this.currentTraceFilterIndex=0}(this.currentTraceFilterIndex>=this.highlightedNodes.length||this.currentTraceFilterIndex<0)&&(this.currentTraceFilterIndex=0)}},selectCurrentHighlightedEvent(){this.highlightedEvent&&this.$store.commit("selectObject",this.highlightedEvent)}},mounted(){this.$root.$on("makeRoot",e=>{this.addRootObject(e.fqid)}),this.$root.$on("removeRoot",e=>{this.removeRootObject(this.filters.rootObjects.indexOf(e))}),this.$root.$on("addHiddenName",e=>{this.addHiddenName(e)})}},void 0,!1,void 0,!1,X,void 0,void 0),OZ={added:{color:"#a6e22e",style:"solid"},removed:{color:"#cd1414",style:"solid"},changed:{color:"#ead656",style:"dashed"}},NZ=j({render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"diff"},[r("div",{staticClass:"diff__column"},[r("v-diagram-trace",{ref:"base",attrs:{events:e.eventsBase,selectedEvents:e.selectedEventsBase,highlightColor:e.highlightConfig.color,highlightStyle:e.highlightConfig.style,zoomControls:!1,highlightAll:e.changeType!=="changed"}}),e._v(" "),r("div",{staticClass:"diff__filters"},[r("v-popper-menu",{attrs:{position:"bottom right",showDot:e.filtersChanged},scopedSlots:e._u([{key:"icon",fn:function(){return[r("v-cog")]},proxy:!0},{key:"body",fn:function(){return[r("h2",[e._v("Filters")]),e._v(" "),r("div",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.filters.unlabeled.on,expression:"filters.unlabeled.on"}],attrs:{type:"checkbox",id:"unlabeled-events"},domProps:{checked:Array.isArray(e.filters.unlabeled.on)?e._i(e.filters.unlabeled.on,null)>-1:e.filters.unlabeled.on},on:{change:function(n){var i=e.filters.unlabeled.on,a=n.target,s=!!a.checked;if(Array.isArray(i)){var o=e._i(i,null);a.checked?o<0&&e.$set(e.filters.unlabeled,"on",i.concat([null])):o>-1&&e.$set(e.filters.unlabeled,"on",i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.filters.unlabeled,"on",s)}}}),e._v(" "),r("label",{attrs:{for:"unlabeled-events"}},[e._v("Unlabeled events")])]),e._v(" "),r("div",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.filters.labeled.on,expression:"filters.labeled.on"}],attrs:{type:"checkbox",id:"labeled-events"},domProps:{checked:Array.isArray(e.filters.labeled.on)?e._i(e.filters.labeled.on,null)>-1:e.filters.labeled.on},on:{change:function(n){var i=e.filters.labeled.on,a=n.target,s=!!a.checked;if(Array.isArray(i)){var o=e._i(i,null);a.checked?o<0&&e.$set(e.filters.labeled,"on",i.concat([null])):o>-1&&e.$set(e.filters.labeled,"on",i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.filters.labeled,"on",s)}}}),e._v(" "),r("label",{attrs:{for:"labeled-events"}},[e._v("Labeled events")])]),e._v(" "),r("div",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.filters.http.on,expression:"filters.http.on"}],attrs:{type:"checkbox",id:"http-server-requests"},domProps:{checked:Array.isArray(e.filters.http.on)?e._i(e.filters.http.on,null)>-1:e.filters.http.on},on:{change:function(n){var i=e.filters.http.on,a=n.target,s=!!a.checked;if(Array.isArray(i)){var o=e._i(i,null);a.checked?o<0&&e.$set(e.filters.http,"on",i.concat([null])):o>-1&&e.$set(e.filters.http,"on",i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.filters.http,"on",s)}}}),e._v(" "),r("label",{attrs:{for:"http-server-requests"}},[e._v("HTTP server requests")])]),e._v(" "),r("div",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.filters.sql.on,expression:"filters.sql.on"}],attrs:{type:"checkbox",id:"sql-queries"},domProps:{checked:Array.isArray(e.filters.sql.on)?e._i(e.filters.sql.on,null)>-1:e.filters.sql.on},on:{change:function(n){var i=e.filters.sql.on,a=n.target,s=!!a.checked;if(Array.isArray(i)){var o=e._i(i,null);a.checked?o<0&&e.$set(e.filters.sql,"on",i.concat([null])):o>-1&&e.$set(e.filters.sql,"on",i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.filters.sql,"on",s)}}}),e._v(" "),r("label",{attrs:{for:"sql-queries"}},[e._v("SQL queries")])])]},proxy:!0}])})],1)],1),e._v(" "),r("div",{staticClass:"diff__column"},[r("v-diagram-trace",{ref:"working",attrs:{events:e.eventsWorking,selectedEvents:e.selectedEventsWorking,highlightColor:e.highlightConfig.color,highlightStyle:e.highlightConfig.style,zoomControls:!1,highlightAll:e.changeType!=="changed"}})],1)])},staticRenderFns:[]},function(e){e&&e("data-v-6500db33_0",{source:"body,html{width:100%;height:100%;margin:0}*{box-sizing:border-box}code{color:#6fddd6}.diff{display:grid;grid-template-columns:50%;grid-template-rows:max(1fr,100%);height:100vh;color:#7f7f7f;background-color:#1e1e1e}.diff__column{position:relative;overflow-y:scroll;width:100%;grid-row:1;border-style:solid;border-color:#010306;border-width:0 2px}.diff__filters{position:absolute;top:.5rem;left:.5rem}",map:void 0,media:void 0})},{name:"v-diff",components:{VDiagramTrace:O4,VPopperMenu:N4,VCog:{functional:!0,render(e,t){let{_c:r,_v:n,data:i,children:a=[]}=t,{class:s,staticClass:o,style:u,staticStyle:l,attrs:d={},...h}=i;return r("svg",{class:["svg-inline--fa fa-cog fa-w-16",s,o],style:[u,l],attrs:Object.assign({"aria-hidden":"true","data-prefix":"fas","data-icon":"cog",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},d),...h},a.concat([r("path",{attrs:{fill:"currentColor",d:"M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"}})]))}}},props:{base:[String,Object],working:[String,Object]},watch:{allChanges:{handler(e){let{base:t,working:r}=this.$refs;if(t.clearTransform(),t.focusSelector(".trace-node"),r.clearTransform(),r.focusSelector(".trace-node"),e.length){let[n,i]=e[0];this.highlight(n,i)}}}},data:()=>({changeType:null,hideOverlay:!1,displayUnlabeledEvents:!0,selectedEventsBase:[],selectedEventsWorking:[],renderKey:0,filters:{unlabeled:{on:!0,filter:e=>!e.sql&&!e.httpServerRequest&&e.labels.size===0},labeled:{on:!0,filter:e=>e.labels.size>0},sql:{on:!0,filter:e=>Boolean(e.sql)},http:{on:!0,filter:e=>Boolean(e.httpServerRequest)}}}),computed:{baseAppMap(){return Pr(this.base).normalize().build()},workingAppMap(){return Pr(this.working).normalize().build()},highlightConfig(){return OZ[this.changeType]||{}},filteredBaseAppMap(){return Pr({events:this.baseAppMap.data.events.filter(e=>this.filterEvent(e)),classMap:this.baseAppMap.classMap.codeObjects.map(e=>e.data),metadata:this.baseAppMap.metadata}).build()},filteredWorkingAppMap(){return Pr({events:this.workingAppMap.data.events.filter(e=>this.filterEvent(e)),classMap:this.workingAppMap.classMap.codeObjects.map(e=>e.data),metadata:this.workingAppMap.metadata}).build()},eventsBase(){return _s(this.filteredBaseAppMap.events)},eventsWorking(){return _s(this.filteredWorkingAppMap.events)},filterFuncs(){return Object.values(this.filters).filter(e=>{let{on:t}=e;return typeof t=="boolean"?t:typeof t=="function"&&t()}).map(e=>e.filter)},filtersChanged(){return Object.values(this.filters).some(e=>typeof e.on=="boolean"&&e.on===!1||typeof on=="function"&&e.on()===!1)},allChanges(){let e=Ht.getDiff(this.filteredBaseAppMap,this.filteredWorkingAppMap),t=[];return e.added.forEach(r=>t.push(["added",r,r[0].id/this.baseAppMap.events.length])),e.removed.forEach(r=>t.push(["removed",r,r[0].id/this.baseAppMap.events.length])),e.changed.forEach(r=>t.push(["changed",r,r[0].id/this.baseAppMap.events.length])),t.sort((r,n)=>r[2]-n[2])}},methods:{highlight(e,t){if(this.changeType=e,this.hideOverlay=!1,e==="changed"){let[r,n]=t;this.selectedEventsBase=[r],this.selectedEventsWorking=[n]}else e==="removed"?(this.selectedEventsWorking=[],this.selectedEventsBase=t):e==="added"&&(this.selectedEventsWorking=t,this.selectedEventsBase=[])},filterEvent(e){return Boolean(this.filterFuncs.find(t=>t(e)))}},mounted(){let e=0,t=()=>{if(!this.allChanges.length)return;let[r,n]=this.allChanges[e];this.highlight(r,n)};document.addEventListener("keypress",r=>{r.key==="Enter"&&(e=(e+1)%this.allChanges.length,t())}),t()}},void 0,!1,void 0,!1,X,void 0,void 0);function Fa(e){return e&&e.data&&e.data.attrs&&e.data.attrs.id?e.data.attrs.id:""}var wZ=j({},void 0,{name:"multi-page",props:{page:{type:Number,default:0},disabledPages:{type:Set,default:()=>new Set}},data(){return{currentPage:Fa(this.$slots.default.filter(e=>e.tag)[0])}},render(e){return e("div",this.slots().map(t=>{let r=Fa(t);return e("div",{style:{display:r===this.currentPage?"":"none"}},[t])}))},watch:{currentPage:{immediate:!0,handler(e){this.$root.$emit("open-page",e)}}},methods:{slots(){return this.$slots.default.filter(e=>e.tag&&!this.disabledPages.has(Fa(e)))},getPageId(e){let t=this.slots(),r=t.findIndex(i=>Fa(i)===this.currentPage),n=t.length;return Fa(t[Math.max(0,Math.min(r+e,n))])},next(){let e=this.getPageId(1);this.jumpTo(e)},previous(){let e=this.getPageId(-1);this.jumpTo(e)},jumpTo(e){this.$root.$emit("page",e),this.currentPage=e}},mounted(){this.$root.$on("page-next",this.next),this.$root.$on("page-previous",this.previous),this.$root.$on("page-jump-to",this.jumpTo);let e=this.slots();e.forEach(({componentInstance:t},r)=>{t.$set(t,"first",r===0),t.$set(t,"last",r===e.length-1)})}},void 0,void 0,void 0,!1,void 0,void 0,void 0),br=j({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"qs"},[t("div",{staticClass:"qs-container"},[t("div",{staticClass:"appmap-header"},[t("AppMapLogo",{attrs:{width:"120"}})],1),this._v(" "),t("div",{staticClass:"qs-content"},[this._t("default")],2),this._v(" "),t("div",{staticClass:"qs-help"},[t("HelpIcon",{staticClass:"qs-help__icon"}),this._v(" "),this._m(0)],1)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"qs-help__text"},[this._v(`
|
|
108
|
+
`)]),e._v(" "),r("div",{staticClass:"trace-filter__arrow",on:{click:e.onNextArrow}},[r("ArrowSearchRightIcon")],1)]):e._e()])},staticRenderFns:[]},function(e){e&&e("data-v-07f84e90_0",{source:'.trace-filter{padding:1rem 1.25rem;display:flex;justify-content:flex-start;align-items:center;font-family:"IBM Plex Sans","Helvetica Neue",Helvetica,Arial,sans-serif}.trace-filter__form{flex:1;position:relative;border-radius:.5rem;border:2px solid #7f6be6}.trace-filter__form--show-suggestions{border-radius:.5rem .5rem 0 0}.trace-filter__prefix{position:absolute;top:50%;left:0;width:2rem;display:flex;justify-content:center;align-items:center;transform:translateY(-50%);text-align:center;color:#ccc}.trace-filter__prefix svg{position:relative;left:3px;width:14px;height:14px;fill:#716e85}.trace-filter__input{border:none;width:100%;padding:.5rem 2rem;font:inherit;font-size:.75rem;color:#e7e7e7;background:0 0;outline:0}.trace-filter__input::-moz-placeholder,.trace-filter__input::-webkit-placeholder,.trace-filter__input::placeholder{color:#808b98}.trace-filter__suffix{position:absolute;top:50%;right:5px;width:1rem;height:1rem;display:flex;justify-content:center;align-items:center;transform:translateY(-50%);text-align:center;color:#716e85;transition:color .3s ease-in;cursor:pointer}.trace-filter__suffix:active,.trace-filter__suffix:hover{color:#e1e2e2;transition-timing-function:ease-out}.trace-filter__suffix svg{width:14px;height:14px;fill:currentColor}.trace-filter__suggestions{display:none;position:absolute;top:100%;left:-2px;right:-2px;border-radius:0 0 .5rem .5rem;border:2px solid #7f6be6;border-top:1px solid #2c2b32;margin:0;padding:0;max-height:112px;list-style:none;overflow-x:hidden;overflow-y:auto;background:#191919;z-index:1}.trace-filter__form--show-suggestions .trace-filter__suggestions{display:block}.trace-filter__suggestions-item{padding:0 .75rem;height:22px;font-size:12px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#a0a0a0;cursor:pointer}.trace-filter__suggestions-item--selected,.trace-filter__suggestions-item:active,.trace-filter__suggestions-item:hover{color:#eaeaea;background-color:#292929}.trace-filter__arrows{display:flex;align-items:center;padding:0 1.25rem}.trace-filter__arrows-text{margin:0 .5rem;font-size:.75rem;color:#ccc}.trace-filter__arrow{padding:.25rem;font-size:0;cursor:pointer}',map:void 0,media:void 0})},{name:"v-trace-filter",components:{ArrowSearchLeftIcon:{functional:!0,render(e,t){let{_c:r,_v:n,data:i,children:a=[]}=t,{class:s,staticClass:o,style:u,staticStyle:l,attrs:d={},...h}=i;return r("svg",{class:[s,o],style:[u,l],attrs:Object.assign({width:"7",height:"13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),...h},a.concat([r("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.853.147a.5.5 0 010 .708L1.208 6.5l5.645 5.646a.5.5 0 11-.708.707L.147 6.854a.5.5 0 010-.708l5.998-6a.5.5 0 01.708 0z",fill:"#716E85"}})]))}},ArrowSearchRightIcon:{functional:!0,render(e,t){let{_c:r,_v:n,data:i,children:a=[]}=t,{class:s,staticClass:o,style:u,staticStyle:l,attrs:d={},...h}=i;return r("svg",{class:[s,o],style:[u,l],attrs:Object.assign({width:"7",height:"13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),...h},a.concat([r("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M.147 12.853a.5.5 0 010-.708L5.792 6.5.147.855A.5.5 0 01.855.147l5.998 5.999a.5.5 0 010 .708l-5.998 6a.5.5 0 01-.708 0z",fill:"#716E85"}})]))}},CloseThinIcon:Rf,SearchIcon:A4},props:{nodesLength:{type:Number,require:!1,default:0},currentIndex:{type:Number,default:null},suggestions:{type:Array,default:()=>[]}},data:()=>({filterValue:"",showSuggestions:!1,selectedSuggestion:!1}),watch:{filterValue:{handler(e){this.$emit("onChange",e)}},selectedSuggestion:{handler(e){if(e===!1)return;let t=this.$refs.suggestionsList.querySelectorAll("li")[e];t.offsetTop<this.$refs.suggestionsList.scrollTop?this.$refs.suggestionsList.scrollTop=t.offsetTop:t.offsetTop>=this.$refs.suggestionsList.scrollTop+this.$refs.suggestionsList.offsetHeight-2&&(this.$refs.suggestionsList.scrollTop=t.offsetTop-4*t.offsetHeight)}}},computed:{formClasses(){let e=["trace-filter__form"];return this.showSuggestions&&this.suggestionsList.length&&e.push("trace-filter__form--show-suggestions"),e},suggestionsList(){let{suggestions:e}=this,t=this.filterValue.includes('"')?/([^"]*)$/:/([^\s]*)$/,r=this.filterValue.match(t).pop().trim();return!r||/^".+"$/g.test(r)||/^id:.+$/g.test(r)||/^label:.+$/g.test(r)||(e=e.filter(n=>new RegExp(r,"ig").test(n))),e}},methods:{setValue(e){this.filterValue=e},clearValue(){this.filterValue=""},onPrevArrow(){this.$emit("onPrevArrow")},onNextArrow(){this.$emit("onNextArrow")},getSuggestionClasses(e){let t=["trace-filter__suggestions-item"];return e===this.selectedSuggestion&&t.push("trace-filter__suggestions-item--selected"),t},onInputFocus(){this.showSuggestions=!0,this.selectedSuggestion=!1},onInputBlur(){this.filterValue.endsWith(" ")||(this.filterValue+=" ")},onFormSubmit(){this.$refs.input===window.document.activeElement&&this.showSuggestions&&this.suggestionsList.length&&this.selectedSuggestion!==!1&&this.makeSelection(this.suggestionsList[this.selectedSuggestion].toString()),this.$refs.input.blur(),this.showSuggestions=!1},makeSelection(e){let t=this.filterValue.match(/(?:[^\s"]+|"[^"]*")+/g),r=t?t[t.length-1]:null;this.filterValue.endsWith(" ")||!r||/^".+"$/g.test(r)||/^id:.+$/g.test(r)||/^label:.+$/g.test(r)||t.pop(),this.filterValue=`${t?t.join(" ")+" ":""}"${e}" `},onWindowClick(e){Ft(e.target,this.$refs.form)||this.$refs.input===window.document.activeElement||(this.showSuggestions=!1)},onWindowKeyUp(e){if(this.$refs.input===window.document.activeElement)switch(e.key){case"Escape":this.showSuggestions=!1,this.$refs.input.blur();break;case"ArrowDown":this.selectedSuggestion!==!1&&this.selectedSuggestion!==this.suggestionsList.length-1?this.selectedSuggestion+=1:this.selectedSuggestion=0;break;case"ArrowUp":this.selectedSuggestion!==!1&&this.selectedSuggestion!==0?this.selectedSuggestion-=1:this.selectedSuggestion=this.suggestionsList.length-1;break;default:this.selectedSuggestion=!1}}},created(){window.addEventListener("click",this.onWindowClick),window.addEventListener("keyup",this.onWindowKeyUp,!0)},destroyed(){window.removeEventListener("click",this.onWindowClick),window.removeEventListener("keyup",this.onWindowKeyUp,!0)}},void 0,!1,void 0,!1,X,void 0,void 0),DiagramGray:bZ},store:KJ,data:()=>({renderKey:0,isLoading:!0,isPanelResizing:!1,initialPanelWidth:0,initialClientX:0,version:null,versionText:"",VIEW_COMPONENT:"viewComponent",VIEW_FLOW:"viewFlow",filters:{rootObjects:[],declutter:{limitRootEvents:{on:!0,default:!0},hideMediaRequests:{on:!0,default:!0},hideUnlabeled:{on:!1,default:!1},hideElapsedTimeUnder:{on:!1,default:!1,time:100},hideName:{on:!1,default:!1,names:[]}}},traceFilterValue:"",currentTraceFilterIndex:0}),props:{appMapUploadable:{type:Boolean,default:!1}},watch:{"$store.state.currentView":{handler(e){this.onChangeTab(this.$refs[e]),this.$refs.tabs.activateTab(this.$refs[e]),this.$root.$emit("stateChanged","currentView")}},"$store.getters.selectedObject":{handler(e){if(e){if(e instanceof Re||this.setView("viewComponent"),e instanceof Re){let t=this.highlightedNodes.findIndex(r=>r===e);this.currentTraceFilterIndex=t>=0?t:void 0}}else this.currentTraceFilterIndex=void 0;this.$root.$emit("stateChanged","selectedObject")}},"$store.getters.selectedLabel":{handler(){this.$root.$emit("stateChanged","selectedObject")}},"$store.getters.focusedEvent":{handler(e){e&&(this.setView("viewFlow"),this.$nextTick(()=>{this.$refs.diagramFlow.focusFocused()}))}},highlightedNodes:{handler(){this.currentTraceFilterIndex=0,this.selectCurrentHighlightedEvent()}},currentTraceFilterIndex:{handler(){this.selectCurrentHighlightedEvent()}},filteredAppMap:{handler(){this.selectedObject&&this.setSelectedObject(this.selectedObject.fqid)}}},computed:{classes(){return this.isLoading?"app--loading":""},filteredAppMap(){let{appMap:e}=this.$store.state,{classMap:t}=e,r=e.rootEvents();this.filters.declutter.limitRootEvents.on&&(r=r.filter(a=>a.httpServerRequest));let n=r.reduce((a,s)=>(s.traverse(o=>a.push(o)),a),[]);if(this.filters.rootObjects.length){let a=[];t.codeObjects.forEach(s=>{this.filters.rootObjects.forEach(o=>{this.codeObjectIsMatched(s,o)&&(a=a.concat(s.allEvents.map(u=>[u.id,u.linkedEvent.id])))})}),a.length&&(n=n.filter(s=>a.some(o=>s.id>=o[0]&&s.id<=o[1])))}this.filters.declutter.hideMediaRequests.on&&(n=this.filterMediaRequests(n)),this.filters.declutter.hideUnlabeled.on&&(n=n.filter(a=>a.labels.size>0||a.codeObject.type!==Y.FUNCTION)),this.filters.declutter.hideElapsedTimeUnder.on&&this.filters.declutter.hideElapsedTimeUnder.time>0&&(n=n.filter(a=>a.returnEvent&&a.returnEvent.elapsedTime&&a.returnEvent.elapsedTime>=this.filters.declutter.hideElapsedTimeUnder.time/1e3)),this.filters.declutter.hideName.on&&this.filters.declutter.hideName.names.length&&t.codeObjects.forEach(a=>{this.filters.declutter.hideName.names.forEach(s=>{this.codeObjectIsMatched(a,s)&&(n=n.filter(o=>!a.allEvents.includes(o)))})});let i=new Set(n.filter(a=>a.isCall()).map(a=>a.id));return Pr({events:n.filter(a=>i.has(a.id)||i.has(a.parent_id)),classMap:t.roots.map(a=>({...a.data})),metadata:e.metadata}).build()},rootObjectsSuggestions(){return this.$store.state.appMap.classMap.codeObjects.map(e=>e.fqid).filter(e=>!this.filters.rootObjects.includes(e))},hideNamesSuggestions(){return this.filteredAppMap.classMap.codeObjects.map(e=>e.fqid).filter(e=>!this.filters.declutter.hideName.names.includes(e))},eventsSuggestions(){let e=new Set(this.highlightedNodes.map(r=>r.id)),t=new Set(this.filteredAppMap.events.filter(r=>r.isCall()&&!e.has(r.id)).map(r=>r.toString()));return Array.from(t)},eventsById(){return this.filteredAppMap.events.reduce((e,t)=>(e[t.id]=t.callEvent,e),{})},eventsByLabel(){return this.filteredAppMap.events.filter(e=>e.isCall()).reduce((e,t)=>(t.labels.forEach(r=>{e[r]=e[r]||[],e[r].push(t.callEvent)}),e),{})},highlightedNodes(){let e=new Set;if(this.traceFilterValue){let t=this.traceFilterValue.match(/(?:[^\s"]+|"[^"]*"|"[^"]*)+/g);t&&(this.traceFilterValue.endsWith(" ")||t.pop(),t.forEach(r=>{if(/^".+"$/g.test(r)){let a=r.slice(1,-1);return void this.filteredAppMap.events.forEach(s=>{s.isCall()&&s.toString()===a&&e.add(s)})}let[n,i]=r.split(":");switch(n){case"id":{let a=parseInt(i,10);if(Number.isNaN(a))break;let s=this.eventsById[a];s?e.add(s):this.filters.declutter.limitRootEvents.on&&this.$store.state.appMap.rootEvents().some(o=>o.id===a)&&this.$nextTick(()=>{this.filters.declutter.limitRootEvents.on=!1});break}case"label":{let a=this.eventsByLabel[i];a&&a.forEach(s=>e.add(s));break}default:if(r.length<3)break;this.filteredAppMap.events.forEach(a=>{a.isCall()&&a.toString().toLowerCase().includes(r.toString().toLowerCase())&&e.add(a)})}}))}return Array.from(e).sort((t,r)=>t.id-r.id)},highlightedEvent(){return this.highlightedNodes[this.currentTraceFilterIndex]},selectedObject(){return this.$store.getters.selectedObject},selectedEvent(){return this.selectedObject instanceof Re?[this.selectedObject]:[]},selectedLabel(){return this.$store.getters.selectedLabel},focusedEvent(){return this.$store.getters.focusedEvent},currentView(){return this.$store.state.currentView},isViewingComponent(){return this.currentView==="viewComponent"},isViewingFlow(){return this.currentView==="viewFlow"},prevSelectedObject(){return this.$store.getters.prevSelectedObject},canGoBack(){return this.$store.getters.canPopStack},isEmptyAppMap(){let e=this.filteredAppMap,t=Array.isArray(e.events)&&e.events.length,r=Array.isArray(e.classMap.codeObjects)&&e.classMap.codeObjects.length;return!(this.filtersChanged||this.traceFilterValue||t&&r)},filtersChanged(){return this.filters.rootObjects.length>0||Object.values(this.filters.declutter).some(e=>typeof e.on=="boolean"&&e.on!==e.default||typeof on=="function"&&e.on()!==e.default)}},methods:{loadData(e){this.$store.commit("setAppMapData",e);let t=this.$store.state.appMap.rootEvents().some(r=>r.httpServerRequest);this.filters.declutter.limitRootEvents.on=t,this.filters.declutter.limitRootEvents.default=t,this.isLoading=!1},showInstructions(){this.$refs.instructions.open(),this.$root.$emit("showInstructions")},showVersionNotification(e,t=""){this.version=e,this.versionText=t},onNotificationOpen(){this.$root.$emit("notificationOpen")},onNotificationClose(){this.version=null,this.versionText="",this.$root.$emit("notificationClose")},onChangeTab(e){let t=Object.values(this.$refs).findIndex(n=>n===e);if(t===-1)return;let r=Object.keys(this.$refs)[t];this.setView(r),this.$root.$emit("changeTab",r)},setView(e){this.currentView!==e&&this.$store.commit("setView",e)},getState(){let e={};this.currentView!=="viewComponent"&&(e.currentView=this.currentView),this.selectedObject&&this.selectedObject.fqid?e.selectedObject=this.selectedObject.fqid:this.selectedLabel&&(e.selectedObject="label:"+this.selectedLabel),this.traceFilterValue&&(e.traceFilter=this.traceFilterValue);let{declutter:t}=this.filters;return e.filters=Object.entries({rootObjects:t.rootObjects,limitRootEvents:t.limitRootEvents.on,hideMediaRequests:t.hideMediaRequests.on,hideUnlabeled:t.hideUnlabeled.on,hideElapsedTimeUnder:!!t.hideElapsedTimeUnder.on&&t.hideElapsedTimeUnder.time,hideName:!!t.hideName.on&&t.hideName.names}).reduce((n,[i,a])=>{let s=this.filters.declutter[i];return(Array.isArray(a)&&a.length!==0||s&&s.default!==a)&&(n[i]=a),n},{}),Object.keys(e.filters).length===0&&delete e.filters,Object.keys(e).length===0?"":(r=JSON.stringify(e),xf.Buffer.from(r,"utf-8").toString("base64").replace(/=/g,"").replace(/_/g,"/").replace(/-/g,"+"));var r},setSelectedObject(e){let[t,r,n]=e.match(/^([a-z]+):(.+)/);if(!t)return;if(r==="label")return void this.$store.commit("selectLabel",n);let{classMap:i,events:a}=this.filteredAppMap,s=null;if(r==="event"){let o=parseInt(n,10);if(Number.isNaN(o))return;s=a.find(u=>u.id===o)}else s=i.codeObjects.find(o=>o.fqid===e);this.$store.commit("selectObject",s)},setState(e){return new Promise(t=>{if(!e)return void t();let r;var n;e.trimLeft().startsWith("{")?r=e:(n=e,r=xf.Buffer.from(n,"base64").toString("utf-8"));let i=JSON.parse(r);if(i.selectedObject)do{let s=i.selectedObject,[o,u,l]=s.match(/^([a-z]+):(.+)/);if(!o)break;if(u==="label"){this.$store.commit("selectLabel",l);break}let{classMap:d,events:h}=this.filteredAppMap,E=null;if(u==="event"){let b=parseInt(l,10);if(Number.isNaN(b))break;E=h.find(A=>A.id===b),E||(E=this.$store.state.appMap.events.find(A=>A.id===b),E&&Object.keys(this.filters.declutter).forEach(A=>{this.filters.declutter[A].on=!1}))}else E=d.codeObjects.find(b=>b.fqid===s);E&&this.$store.commit("selectObject",E)}while(0);let{filters:a}=i;a&&("rootObjects"in a&&(this.filters.declutter.rootObjects=a.rootObjects),"limitRootEvents"in a&&(this.filters.declutter.limitRootEvents.on=a.limitRootEvents),"hideMediaRequests"in a&&(this.filters.declutter.hideMediaRequests.on=a.hideMediaRequests),"hideUnlabeled"in a&&(this.filters.declutter.hideUnlabeled.on=a.hideUnlabeled),"hideElapsedTimeUnder"in a&&a.hideElapsedTimeUnder!==!1&&(this.filters.declutter.hideElapsedTimeUnder.on=!0,this.filters.declutter.hideElapsedTimeUnder.time=a.hideElapsedTimeUnder),"hideName"in a&&a.hideName!==!1&&(this.filters.declutter.hideName.on=!0,this.filters.declutter.hideName.names=a.hideName)),this.$nextTick(()=>{i.currentView&&this.setView(i.currentView),i.traceFilter?this.$nextTick(()=>{i.traceFilter.endsWith(" ")||(i.traceFilter+=" "),this.$refs.traceFilter.setValue(i.traceFilter),t()}):t()})})},clearSelection(){this.currentTraceFilterIndex=0,this.$store.commit("clearObjectStack"),this.$root.$emit("clearSelection")},goBack(){this.$store.commit("popObjectStack")},resetDiagram(){this.clearSelection(),this.resetFilters(),this.renderKey+=1},uploadAppmap(){this.$root.$emit("uploadAppmap")},onClickTraceEvent(e){this.$store.commit("selectObject",e)},startResizing(e){document.body.style.userSelect="none",this.isPanelResizing=!0,this.initialPanelWidth=this.$refs.mainColumnLeft.offsetWidth,this.initialClientX=e.clientX},makeResizing(e){if(this.isPanelResizing){let r=.75*window.innerWidth,n=this.initialPanelWidth+(e.clientX-this.initialClientX);n=Math.max(280,n),n=Math.min(r,n),this.$refs.mainColumnLeft.style.width=n+"px"}},stopResizing(){document.body.style.userSelect="",this.isPanelResizing=!1},resetFilters(){this.filters.rootObjects=[],Object.keys(this.filters.declutter).forEach(e=>{this.filters.declutter[e].on=this.filters.declutter[e].default}),this.filters.declutter.hideName.names=[]},addHiddenName(e){let t=e.trim();t&&!this.filters.declutter.hideName.names.includes(t)&&(this.filters.declutter.hideName.names.push(t),this.filters.declutter.hideName.on=!0)},removeHiddenName(e){this.filters.declutter.hideName.names.splice(e,1),this.filters.declutter.hideName.names.length===0&&(this.filters.declutter.hideName.on=!1)},addRootObject(e){let t=e.trim();t&&!this.filters.rootObjects.includes(t)&&this.filters.rootObjects.push(t)},removeRootObject(e){this.filters.rootObjects.splice(e,1)},filterMediaRequests(e){let t=[],r=["application/javascript","application/ecmascript","audio/.+","font/.+","image/.+","text/javascript","text/ecmascript","text/css","video/.+"].map(i=>new RegExp(i,"i")),n=new Set(["aac","avi","bmp","css","flv","gif","htm","html","ico","jpeg","jpg","js","json","jsonld","mid","midi","mjs","mov","mp3","mp4","mpeg","oga","ogg","ogv","ogx","opus","otf","png","svg","tif","tiff","ts","ttf","wav","weba","webm","webp","woff","woff2","xhtml","3gp","3g2"]);return e.forEach(i=>{if(i.requestMethod==="GET"&&i.requestPath){let a=i.requestPath.match(/.*\.([\S]*)$/);a&&n.has(a[1])&&t.push(i.id)}else if(i.http_server_response){let a;if(i.http_server_response.headers){let s=Object.keys(i.http_server_response.headers).filter(o=>o.toLowerCase()==="content-type")[0];a=i.http_server_response.headers[s]}else i.http_server_response.mime_type&&(a=i.http_server_response.mime_type);a&&r.some(s=>s.test(a))&&t.push(i.parent_id)}}),e.filter(i=>!t.includes(i.id))},codeObjectIsMatched(e,t){if(t.startsWith("label:")){let r=new RegExp(`^${t.replace("label:","").replace("*",".*")}$`,"ig");return Array.from(e.labels).some(n=>r.test(n))}if(t.includes("*")){if(new RegExp(`^${t.replace("*",".*")}$`,"ig").test(e.fqid))return!0}else if(t===e.fqid)return!0;return!1},prevTraceFilter(){if(this.highlightedNodes.length!==0){if(Number.isFinite(this.currentTraceFilterIndex))this.currentTraceFilterIndex-=1;else{let[e]=this.selectedEvent;if(e){let t=this.highlightedNodes.filter(r=>r.id<e.id).pop();this.currentTraceFilterIndex=this.highlightedNodes.findIndex(r=>r===t)}else this.currentTraceFilterIndex=-1}this.currentTraceFilterIndex<0&&(this.currentTraceFilterIndex=this.highlightedNodes.length-1)}},nextTraceFilter(){if(this.highlightedNodes.length!==0){if(Number.isFinite(this.currentTraceFilterIndex))this.currentTraceFilterIndex+=1;else{let[e]=this.selectedEvent;if(e){let t=this.highlightedNodes.filter(r=>r.id>e.id).shift();this.currentTraceFilterIndex=this.highlightedNodes.findIndex(r=>r===t)}else this.currentTraceFilterIndex=0}(this.currentTraceFilterIndex>=this.highlightedNodes.length||this.currentTraceFilterIndex<0)&&(this.currentTraceFilterIndex=0)}},selectCurrentHighlightedEvent(){this.highlightedEvent&&this.$store.commit("selectObject",this.highlightedEvent)}},mounted(){this.$root.$on("makeRoot",e=>{this.addRootObject(e.fqid)}),this.$root.$on("removeRoot",e=>{this.removeRootObject(this.filters.rootObjects.indexOf(e))}),this.$root.$on("addHiddenName",e=>{this.addHiddenName(e)})}},void 0,!1,void 0,!1,X,void 0,void 0),OZ={added:{color:"#a6e22e",style:"solid"},removed:{color:"#cd1414",style:"solid"},changed:{color:"#ead656",style:"dashed"}},NZ=j({render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"diff"},[r("div",{staticClass:"diff__column"},[r("v-diagram-trace",{ref:"base",attrs:{events:e.eventsBase,selectedEvents:e.selectedEventsBase,highlightColor:e.highlightConfig.color,highlightStyle:e.highlightConfig.style,zoomControls:!1,highlightAll:e.changeType!=="changed"}}),e._v(" "),r("div",{staticClass:"diff__filters"},[r("v-popper-menu",{attrs:{position:"bottom right",showDot:e.filtersChanged},scopedSlots:e._u([{key:"icon",fn:function(){return[r("v-cog")]},proxy:!0},{key:"body",fn:function(){return[r("h2",[e._v("Filters")]),e._v(" "),r("div",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.filters.unlabeled.on,expression:"filters.unlabeled.on"}],attrs:{type:"checkbox",id:"unlabeled-events"},domProps:{checked:Array.isArray(e.filters.unlabeled.on)?e._i(e.filters.unlabeled.on,null)>-1:e.filters.unlabeled.on},on:{change:function(n){var i=e.filters.unlabeled.on,a=n.target,s=!!a.checked;if(Array.isArray(i)){var o=e._i(i,null);a.checked?o<0&&e.$set(e.filters.unlabeled,"on",i.concat([null])):o>-1&&e.$set(e.filters.unlabeled,"on",i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.filters.unlabeled,"on",s)}}}),e._v(" "),r("label",{attrs:{for:"unlabeled-events"}},[e._v("Unlabeled events")])]),e._v(" "),r("div",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.filters.labeled.on,expression:"filters.labeled.on"}],attrs:{type:"checkbox",id:"labeled-events"},domProps:{checked:Array.isArray(e.filters.labeled.on)?e._i(e.filters.labeled.on,null)>-1:e.filters.labeled.on},on:{change:function(n){var i=e.filters.labeled.on,a=n.target,s=!!a.checked;if(Array.isArray(i)){var o=e._i(i,null);a.checked?o<0&&e.$set(e.filters.labeled,"on",i.concat([null])):o>-1&&e.$set(e.filters.labeled,"on",i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.filters.labeled,"on",s)}}}),e._v(" "),r("label",{attrs:{for:"labeled-events"}},[e._v("Labeled events")])]),e._v(" "),r("div",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.filters.http.on,expression:"filters.http.on"}],attrs:{type:"checkbox",id:"http-server-requests"},domProps:{checked:Array.isArray(e.filters.http.on)?e._i(e.filters.http.on,null)>-1:e.filters.http.on},on:{change:function(n){var i=e.filters.http.on,a=n.target,s=!!a.checked;if(Array.isArray(i)){var o=e._i(i,null);a.checked?o<0&&e.$set(e.filters.http,"on",i.concat([null])):o>-1&&e.$set(e.filters.http,"on",i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.filters.http,"on",s)}}}),e._v(" "),r("label",{attrs:{for:"http-server-requests"}},[e._v("HTTP server requests")])]),e._v(" "),r("div",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.filters.sql.on,expression:"filters.sql.on"}],attrs:{type:"checkbox",id:"sql-queries"},domProps:{checked:Array.isArray(e.filters.sql.on)?e._i(e.filters.sql.on,null)>-1:e.filters.sql.on},on:{change:function(n){var i=e.filters.sql.on,a=n.target,s=!!a.checked;if(Array.isArray(i)){var o=e._i(i,null);a.checked?o<0&&e.$set(e.filters.sql,"on",i.concat([null])):o>-1&&e.$set(e.filters.sql,"on",i.slice(0,o).concat(i.slice(o+1)))}else e.$set(e.filters.sql,"on",s)}}}),e._v(" "),r("label",{attrs:{for:"sql-queries"}},[e._v("SQL queries")])])]},proxy:!0}])})],1)],1),e._v(" "),r("div",{staticClass:"diff__column"},[r("v-diagram-trace",{ref:"working",attrs:{events:e.eventsWorking,selectedEvents:e.selectedEventsWorking,highlightColor:e.highlightConfig.color,highlightStyle:e.highlightConfig.style,zoomControls:!1,highlightAll:e.changeType!=="changed"}})],1)])},staticRenderFns:[]},function(e){e&&e("data-v-6500db33_0",{source:"body,html{width:100%;height:100%;margin:0}*{box-sizing:border-box}code{color:#6fddd6}.diff{display:grid;grid-template-columns:50%;grid-template-rows:max(1fr,100%);height:100vh;color:#7f7f7f;background-color:#1e1e1e}.diff__column{position:relative;overflow-y:scroll;width:100%;grid-row:1;border-style:solid;border-color:#010306;border-width:0 2px}.diff__filters{position:absolute;top:.5rem;left:.5rem}",map:void 0,media:void 0})},{name:"v-diff",components:{VDiagramTrace:O4,VPopperMenu:N4,VCog:{functional:!0,render(e,t){let{_c:r,_v:n,data:i,children:a=[]}=t,{class:s,staticClass:o,style:u,staticStyle:l,attrs:d={},...h}=i;return r("svg",{class:["svg-inline--fa fa-cog fa-w-16",s,o],style:[u,l],attrs:Object.assign({"aria-hidden":"true","data-prefix":"fas","data-icon":"cog",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},d),...h},a.concat([r("path",{attrs:{fill:"currentColor",d:"M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"}})]))}}},props:{base:[String,Object],working:[String,Object]},watch:{allChanges:{handler(e){let{base:t,working:r}=this.$refs;if(t.clearTransform(),t.focusSelector(".trace-node"),r.clearTransform(),r.focusSelector(".trace-node"),e.length){let[n,i]=e[0];this.highlight(n,i)}}}},data:()=>({changeType:null,hideOverlay:!1,displayUnlabeledEvents:!0,selectedEventsBase:[],selectedEventsWorking:[],renderKey:0,filters:{unlabeled:{on:!0,filter:e=>!e.sql&&!e.httpServerRequest&&e.labels.size===0},labeled:{on:!0,filter:e=>e.labels.size>0},sql:{on:!0,filter:e=>Boolean(e.sql)},http:{on:!0,filter:e=>Boolean(e.httpServerRequest)}}}),computed:{baseAppMap(){return Pr(this.base).normalize().build()},workingAppMap(){return Pr(this.working).normalize().build()},highlightConfig(){return OZ[this.changeType]||{}},filteredBaseAppMap(){return Pr({events:this.baseAppMap.data.events.filter(e=>this.filterEvent(e)),classMap:this.baseAppMap.classMap.codeObjects.map(e=>e.data),metadata:this.baseAppMap.metadata}).build()},filteredWorkingAppMap(){return Pr({events:this.workingAppMap.data.events.filter(e=>this.filterEvent(e)),classMap:this.workingAppMap.classMap.codeObjects.map(e=>e.data),metadata:this.workingAppMap.metadata}).build()},eventsBase(){return _s(this.filteredBaseAppMap.events)},eventsWorking(){return _s(this.filteredWorkingAppMap.events)},filterFuncs(){return Object.values(this.filters).filter(e=>{let{on:t}=e;return typeof t=="boolean"?t:typeof t=="function"&&t()}).map(e=>e.filter)},filtersChanged(){return Object.values(this.filters).some(e=>typeof e.on=="boolean"&&e.on===!1||typeof on=="function"&&e.on()===!1)},allChanges(){let e=Ht.getDiff(this.filteredBaseAppMap,this.filteredWorkingAppMap),t=[];return e.added.forEach(r=>t.push(["added",r,r[0].id/this.baseAppMap.events.length])),e.removed.forEach(r=>t.push(["removed",r,r[0].id/this.baseAppMap.events.length])),e.changed.forEach(r=>t.push(["changed",r,r[0].id/this.baseAppMap.events.length])),t.sort((r,n)=>r[2]-n[2])}},methods:{highlight(e,t){if(this.changeType=e,this.hideOverlay=!1,e==="changed"){let[r,n]=t;this.selectedEventsBase=[r],this.selectedEventsWorking=[n]}else e==="removed"?(this.selectedEventsWorking=[],this.selectedEventsBase=t):e==="added"&&(this.selectedEventsWorking=t,this.selectedEventsBase=[])},filterEvent(e){return Boolean(this.filterFuncs.find(t=>t(e)))}},mounted(){let e=0,t=()=>{if(!this.allChanges.length)return;let[r,n]=this.allChanges[e];this.highlight(r,n)};document.addEventListener("keypress",r=>{r.key==="Enter"&&(e=(e+1)%this.allChanges.length,t())}),t()}},void 0,!1,void 0,!1,X,void 0,void 0);function Fa(e){return e&&e.data&&e.data.attrs&&e.data.attrs.id?e.data.attrs.id:""}var wZ=j({},void 0,{name:"multi-page",props:{page:{type:Number,default:0},disabledPages:{type:Set,default:()=>new Set}},data(){return{currentPage:Fa(this.$slots.default.filter(e=>e.tag)[0])}},render(e){return e("div",this.slots().map(t=>{let r=Fa(t);return e("div",{style:{display:r===this.currentPage?"":"none"}},[t])}))},watch:{currentPage:{immediate:!0,handler(e){this.$root.$emit("open-page",e)}}},methods:{slots(){return this.$slots.default.filter(e=>e.tag&&!this.disabledPages.has(Fa(e)))},getPageId(e){let t=this.slots(),r=t.findIndex(i=>Fa(i)===this.currentPage),n=t.length;return Fa(t[Math.max(0,Math.min(r+e,n))])},next(){let e=this.getPageId(1);this.jumpTo(e)},previous(){let e=this.getPageId(-1);this.jumpTo(e)},jumpTo(e){this.$root.$emit("page",e),this.currentPage=e}},mounted(){this.$root.$on("page-next",this.next),this.$root.$on("page-previous",this.previous),this.$root.$on("page-jump-to",this.jumpTo);let e=this.slots();e.forEach(({componentInstance:t},r)=>{t.$set(t,"first",r===0),t.$set(t,"last",r===e.length-1)})}},void 0,void 0,void 0,!1,void 0,void 0,void 0),br=j({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"qs"},[t("div",{staticClass:"qs-container"},[t("div",{staticClass:"appmap-header"},[t("AppMapLogo",{attrs:{width:"120"}})],1),this._v(" "),t("div",{staticClass:"qs-content"},[this._t("default")],2),this._v(" "),this.displayHelp?t("div",{staticClass:"qs-help"},[t("HelpIcon",{staticClass:"qs-help__icon"}),this._v(" "),this._m(0)],1):this._e()])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"qs-help__text"},[this._v(`
|
|
109
109
|
Stuck?
|
|
110
110
|
`),t("a",{attrs:{href:"mailto:support@appmap.io",target:"_blank"}},[this._v(`
|
|
111
111
|
Send us an email at support@appmap.io
|
|
112
|
-
`)])])}]},function(e){e&&e("data-v-
|
|
112
|
+
`)])])}]},function(e){e&&e("data-v-30b5d6e2_0",{source:'body,html{width:100%;height:100%;margin:0}*{box-sizing:border-box}::-moz-selection,::-webkit-selection,::selection{background-color:#3794ff;color:#e3e5e8}.qs{position:relative;width:100%;min-height:100vh;padding:2rem;font-family:var(--vscode-font-family, "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:var(--vscode-font-size,14px);font-weight:var(--vscode-font-weight,normal);line-height:1.75;color:#e3e5e8;background-color:#1e1e1e}.qs h1,.qs h2,.qs h3,.qs h4,.qs h5,.qs h6{margin:0}.qs p{margin:0;line-height:1.75}.qs p.mb10{margin-bottom:10px}.qs p.mb20{margin-bottom:20px}.qs a{color:#2a84ef;text-decoration:none;transition:all .3s ease}.qs a:hover{color:#fff}.qs code{margin:20px 0;display:block;border:1px solid #454545;border-radius:8px;max-width:80%;padding:12px 20px;color:#d7ba7d}.qs code.inline{display:inline-block;padding:0 5px;margin:0 5px;border:none;color:#c6c6c6;background-color:rgba(0,0,0,.25)}.qs ul{padding-left:10px}.qs-container{max-width:930px;margin:auto}.qs-content{margin-bottom:12px;background:#242c41;filter:drop-shadow(2px 2px 2px var(--vscode-welcomePage-tileShadow, rgba(0, 0, 0, .36)));border-radius:8px;margin:1em auto;padding:2em;overflow:hidden}.qs-help{margin-bottom:12px;display:flex;justify-content:flex-start;align-items:center}.qs-help__icon{margin:0 15px;width:22px;height:22px}.qs-help__text{line-height:18px}header{margin-block-end:2em}h1{margin-block-start:0;font-size:2em;line-height:2.25rem;margin-bottom:.25rem}article{margin-bottom:2.5em}.center{margin:auto}.fit{width:fit-content}',map:void 0,media:void 0})},{name:"QuickstartLayout",components:{HelpIcon:{functional:!0,render(e,t){let{_c:r,_v:n,data:i,children:a=[]}=t,{class:s,staticClass:o,style:u,staticStyle:l,attrs:d={},...h}=i;return r("svg",{class:[s,o],style:[u,l],attrs:Object.assign({viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"},d),...h},a.concat([r("circle",{attrs:{cx:"11",cy:"11",r:"10.5",stroke:"#2A84EF"}}),r("path",{attrs:{d:"M9.933 14.256v-2.952c.984-.048 1.752-.288 2.304-.72.564-.432.846-1.026.846-1.782V8.55c0-.612-.192-1.098-.576-1.458-.384-.372-.9-.558-1.548-.558-.696 0-1.254.198-1.674.594-.408.396-.684.9-.828 1.512l-1.332-.504c.108-.384.264-.75.468-1.098a3.632 3.632 0 011.926-1.584c.432-.156.93-.234 1.494-.234 1.116 0 1.998.306 2.646.918.648.612.972 1.44.972 2.484 0 .576-.102 1.08-.306 1.512-.192.42-.444.78-.756 1.08-.312.3-.666.54-1.062.72-.396.18-.792.306-1.188.378v1.944H9.933zm.702 3.96c-.384 0-.666-.096-.846-.288-.168-.192-.252-.444-.252-.756v-.234c0-.312.084-.564.252-.756.18-.192.462-.288.846-.288.384 0 .66.096.828.288.18.192.27.444.27.756v.234c0 .312-.09.564-.27.756-.168.192-.444.288-.828.288z",fill:"#fff"}})]))}},AppMapLogo:v4},props:{displayHelp:{type:Boolean,default:!0}}},void 0,!1,void 0,!1,X,void 0,void 0),IZ=j({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:this.classes},[t("div",{staticClass:"accordion__header"},[this._t("header")],2),this._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:this.open,expression:"open"}],staticClass:"accordion__body"},[this._t("default")],2)])},staticRenderFns:[]},function(e){e&&e("data-v-12c7d887_0",{source:".accordion--open{border:1px solid rgba(200,200,255,.1)}.accordion--open .accordion__header{background-color:rgba(200,200,255,.1)}.accordion--disabled .accordion__header{cursor:default;color:#808b98}.accordion--disabled .accordion__header:hover{background-color:rgba(200,200,255,.05)}.accordion__header{cursor:pointer;user-select:none;width:100%;display:block;padding:1em;text-align:left}.accordion__header:hover{background-color:rgba(200,200,255,.1)}.accordion__body{margin-top:1em}",map:void 0,media:void 0})},{name:"Accordion",props:{disabled:{type:Boolean,default:!1},open:{type:Boolean,default:!1}},computed:{classes(){return{accordion:!0,"accordion--open":this.open,"accordion--disabled":this.disabled}}}},void 0,!1,void 0,!1,X,void 0,void 0),u4={functional:!0,render(e,t){let{_c:r,_v:n,data:i,children:a=[]}=t,{class:s,staticClass:o,style:u,staticStyle:l,attrs:d={},...h}=i;return r("svg",{class:[s,o],style:[u,l],attrs:Object.assign({viewBox:"0 0 226 226",xmlns:"http://www.w3.org/2000/svg"},d),...h},a.concat([r("g",{attrs:{"clip-path":"url(#clip0_1_7)"}},[r("path",{attrs:{d:"M220.703 98.875H207.3c-6.141-41.349-38.826-74.034-80.175-80.175V5.297A5.297 5.297 0 00121.828 0h-17.656a5.297 5.297 0 00-5.297 5.297V18.7C57.526 24.84 24.841 57.526 18.7 98.875H5.297A5.297 5.297 0 000 104.172v17.656a5.297 5.297 0 005.297 5.297H18.7c6.14 41.349 38.826 74.034 80.175 80.175v13.403a5.298 5.298 0 005.297 5.297h17.656a5.298 5.298 0 005.297-5.297V207.3c41.349-6.141 74.034-38.826 80.175-80.175h13.403a5.298 5.298 0 005.297-5.297v-17.656a5.298 5.298 0 00-5.297-5.297zm-93.578 79.733v-17.936a5.298 5.298 0 00-5.297-5.297h-17.656a5.298 5.298 0 00-5.297 5.297v17.936c-25.678-5.474-46.002-25.774-51.483-51.483h17.936a5.297 5.297 0 005.297-5.297v-17.656a5.297 5.297 0 00-5.297-5.297H47.392c5.474-25.678 25.774-46.002 51.483-51.483v17.936a5.297 5.297 0 005.297 5.297h17.656a5.297 5.297 0 005.297-5.297V47.392c25.678 5.474 46.002 25.774 51.483 51.483h-17.936a5.298 5.298 0 00-5.297 5.297v17.656a5.298 5.298 0 005.297 5.297h17.936c-5.474 25.678-25.774 46.002-51.483 51.483zm0-65.608c0 7.801-6.324 14.125-14.125 14.125S98.875 120.801 98.875 113 105.199 98.875 113 98.875s14.125 6.324 14.125 14.125z"}})]),r("defs",[r("clipPath",{attrs:{id:"clip0_1_7"}},[r("path",{attrs:{fill:"#fff",d:"M0 0h226v226H0z"}})])])]))}},l4={functional:!0,render(e,t){let{_c:r,_v:n,data:i,children:a=[]}=t,{class:s,staticClass:o,style:u,staticStyle:l,attrs:d={},...h}=i;return r("svg",{class:[s,o],style:[u,l],attrs:Object.assign({viewBox:"0 0 179 188",xmlns:"http://www.w3.org/2000/svg"},d),...h},a.concat([r("path",{attrs:{d:"M0 43.203v127.165c0 4.156 3.552 6.998 6.818 5.456l42.904-23.074v-141L6.252 32.294c-1.845.872-3.427 2.378-4.541 4.322C.596 38.56 0 40.855 0 43.203zM59.667 152.75l59.666 23.5v-141l-59.666-23.5v141zM172.182 12.176L129.278 35.25v141l43.469-20.544c1.846-.872 3.428-2.377 4.543-4.322 1.114-1.944 1.71-4.239 1.71-6.587V17.632c0-4.156-3.552-6.998-6.818-5.456z"}})]))}},c4={functional:!0,render(e,t){let{_c:r,_v:n,data:i,children:a=[]}=t,{class:s,staticClass:o,style:u,staticStyle:l,attrs:d={},...h}=i;return r("svg",{class:[s,o],style:[u,l],attrs:Object.assign({viewBox:"0 0 199 199",xmlns:"http://www.w3.org/2000/svg"},d),...h},a.concat([r("g",{attrs:{"clip-path":"url(#clip0_1_5)"}},[r("path",{attrs:{d:"M.08 114.416l52.498-.001a35.651 35.651 0 003.285 11.726L10.86 153.252C4.956 143.071 1.231 130.121.08 114.416zm51.227 76.491l19.98-48.522a35.535 35.535 0 01-5.806-3.869l-37.106 37.107c7.575 6.824 15.377 11.936 22.932 15.284zm-25.498-17.741l37.034-37.035c-1.918-1.929-3.686-4.217-5.312-6.847l-44.895 27.045c4.078 6.634 8.609 12.378 13.173 16.837zm122.041 2.459l-37.129-37.128c-.406.328-.818.648-1.238.958l27.094 44.978c3.782-2.354 7.537-5.373 11.273-8.808zm-14.279 10.701l-27.038-44.884c-10.092 5.636-20.724 6.823-32.03 2.463l-19.938 48.422c27.284 11.065 55.564 7.895 79.006-6.001zM66.74 82.27L39.647 37.293c-3.951 2.535-7.704 5.483-11.274 8.807L65.5 83.23c.408-.326.821-.645 1.239-.959zM0 110.863l52.378-.001c.113-9.265 3.386-17.755 10.466-25.266L25.81 48.561C8.712 66.678.199 87.473 0 110.863zm88.11-35.734l.002-52.376c-17.385.106-32.65 4.79-45.46 12.647L69.69 80.284c5.083-2.984 11.14-5.045 18.42-5.154zm72.45-14.426l-38.653 38.654a36.434 36.434 0 011.73 7.952h52.506c-.343-15.928-5.598-31.459-15.583-46.606zm15.655 50.159h-52.372c-.182 9.81-3.848 18.751-10.465 25.269l37.037 37.035c17.031-16.761 25.311-37.681 25.8-62.304zm-84.55-88.031l-.003 52.504c2.753.312 5.396.91 7.955 1.732l38.639-38.64c-13.654-9.552-29.749-14.91-46.592-15.596zm75.833-21.822c-15.222 4.453-21.584 21.448-15.073 34.465L99.037 88.862c-12.596-6.28-29.113-.61-34.124 14.005-6.108 17.817 9.423 35.681 27.889 32.079 16.328-3.186 24.218-21.062 17.283-34.985l53.438-53.437c13.471 6.695 30.912-.414 34.746-16.19 4.442-18.282-12.694-34.613-30.771-29.325z"}})]),r("defs",[r("clipPath",{attrs:{id:"clip0_1_5"}},[r("path",{attrs:{fill:"#fff",d:"M0 0h199v199H0z"}})])])]))}},Ua=j({render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{class:e.classes},[e.first?e._e():r("v-button",{attrs:{label:"Back",kind:"ghost","data-cy":"back-button"},nativeOn:{click:function(n){return e.$root.$emit("page-previous")}}}),e._v(" "),e.last?e._e():r("v-button",{attrs:{c:"",kind:"ghost",label:"Next","data-cy":"next-button"},nativeOn:{click:function(n){return e.$root.$emit("page-next")}}})],1)},staticRenderFns:[]},function(e){e&&e("data-v-7a9ab51c_0",{source:".buttons[data-v-7a9ab51c]{display:flex;flex-direction:row;justify-content:space-between}.buttons--right[data-v-7a9ab51c]{justify-content:right}",map:void 0,media:void 0})},{name:"navigation-buttons",components:{VButton:ri},props:{first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},computed:{classes(){return{buttons:!0,"buttons--right":this.first}}}},"data-v-7a9ab51c",!1,void 0,!1,X,void 0,void 0),If=j({render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"code-snippet",attrs:{"data-cy":"code-snippet"}},[r("span",{ref:"input",staticClass:"input code-snippet__input",attrs:{type:"text",role:"textbox"},on:{click:e.onInputFocus,copy:e.onCopy}},e._l(e.textLines,function(n,i){return r("div",{key:i,staticClass:"code-snippet__line"},[e._v(`
|
|
113
113
|
`+e._s(n)+`
|
|
114
114
|
`)])}),0),e._v(" "),r("v-popper",{ref:"popper",attrs:{placement:"top"}},[r("button",{staticClass:"code-snippet__btn",attrs:{type:"button","data-cy":"code-snippet-button",disabled:!e.hasClipboardAPI},on:{click:e.copyToClipboard}},[r("ClipboardIcon",{staticClass:"code-snippet__btn-icon"})],1)])],1)},staticRenderFns:[]},function(e){e&&e("data-v-d1e1a800_0",{source:".code-snippet[data-v-d1e1a800]{margin:1rem 0;border-radius:.5rem;border:1px solid #3794ff;display:flex;align-items:stretch;color:#fff;background-color:rgba(0,0,0,.25);max-width:100%}.code-snippet__line[data-v-d1e1a800]{min-height:1rem}.code-snippet__input[data-v-d1e1a800]{flex:1;font-family:monospace;color:#c6c6c6;padding:.75rem 1.25rem;margin:0;border:none;border-right:1px solid #3794ff;border-radius:0;background:0 0;outline:0;appearance:none;font-size:1rem}.code-snippet__btn[data-v-d1e1a800]{height:100%;padding:0 1rem;margin:0;border:none;border-radius:0 6px 6px 0;color:#fff;background-color:#3794ff;opacity:.85;outline:0;appearance:none;cursor:pointer;transition:.25s ease opacity}.code-snippet__btn[disabled][data-v-d1e1a800]{opacity:.5;pointer-events:none}.code-snippet__btn[data-v-d1e1a800]:hover{color:rgba(255,255,255,.9);opacity:1}.code-snippet__btn[data-v-d1e1a800]:active{color:rgba(255,255,255,.65)}.code-snippet__btn-icon[data-v-d1e1a800]{width:1em;fill:currentColor}",map:void 0,media:void 0})},{name:"VCodeSnippet",components:{ClipboardIcon:{functional:!0,render(e,t){let{_c:r,_v:n,data:i,children:a=[]}=t,{class:s,staticClass:o,style:u,staticStyle:l,attrs:d={},...h}=i;return r("svg",{class:[s,o],style:[u,l],attrs:Object.assign({viewBox:"0 0 17 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),...h},a.concat([r("path",{attrs:{d:"M5.466 18.633h-4.1V6.334H12.3v2.733h1.367V5.651l-.684-.683h-2.05V3.6H9.566a2.733 2.733 0 00-5.466 0H2.65v1.367H.683L0 5.65v13.666L.683 20h4.783v-1.367zm0-15.305A1.367 1.367 0 016.56 2.235c.266-.052.542-.024.792.082.252.095.467.267.615.492a1.367 1.367 0 01-1.9 1.9 1.285 1.285 0 01-.491-.616 1.367 1.367 0 01-.11-.765zm9.675 12.928l-1.475 1.49v-7.312h-1.367v7.298l-1.476-1.476-.97.97 2.651 2.637h.97l2.638-2.637-.97-.97zm-8.09-5.685h.97l2.638 2.637-.97.97-1.476-1.476V20H6.846v-7.311l-1.475 1.49-.97-.97 2.65-2.638z"}})]))}},VPopper:ni},props:{clipboardText:{type:String,required:!1,default:""},messageSuccess:{type:String,required:!1,default:"Copied to clipboard!"}},data:()=>({hasClipboardAPI:navigator&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"}),computed:{transformedText(){return this.clipboardText.replace(/\\n/g,`
|
|
115
115
|
`)},textLines(){return this.transformedText.split(/\n/g)}},methods:{onInputFocus(){window.getSelection().selectAllChildren(this.$refs.input)},copyToClipboard(){let e=this.transformedText.trim();e&&this.hasClipboardAPI&&(navigator.clipboard.writeText(e.replace(/\n/g,`
|
|
@@ -229,9 +229,9 @@ See exactly how functions, web services, data stores, security, I/O and dependen
|
|
|
229
229
|
`)]):e._e()])]),e._v(" "),r("div",{staticClass:"findings-list"},[r("ul",{staticClass:"list"},[r("li",{attrs:{"data-cy":"finding-table"}},[r("ul",{staticClass:"item header"},[r("li",{staticClass:"finding-name",attrs:{"data-cy":"column-header-name"},on:{click:function(n){return e.updateSorting("name")}}},[r("h3",[e._v("Finding Name")])]),e._v(" "),r("li",{attrs:{"data-cy":"column-header-category"},on:{click:function(n){return e.updateSorting("category")}}},[r("h3",[e._v("Category")])])])]),e._v(" "),e._l(e.sortedAndFilteredUniqueFindings,function(n){return r("li",{key:n.hash_v2,attrs:{"data-cy":"finding"}},[r("ul",{staticClass:"item",on:{click:function(i){return e.openFindingInfo(n.hash_v2)}}},[r("li",{staticClass:"finding-name"},[e._v(e._s(n.ruleTitle))]),e._v(" "),r("li",[e._v(e._s(n.impactDomain))])])])})],2)])])])])])},staticRenderFns:[]},function(e){e&&e("data-v-2b12f8dc_0",{source:'@charset "UTF-8";.analysis-findings .header-wrap[data-v-2b12f8dc]{display:flex;flex-direction:row;justify-content:space-between}.analysis-findings .header-wrap .header-controls[data-v-2b12f8dc]{display:flex;flex-direction:row;gap:1rem;align-items:flex-start}.analysis-findings .header-wrap .header-controls .btn[data-v-2b12f8dc]{border:1px solid #8f81d4b3;border-radius:.5rem;padding:.2rem .5rem;transition:all .3s ease}.analysis-findings .header-wrap .header-controls .btn[data-v-2b12f8dc]:hover{background-color:#8f81d4b3;color:#e3e5e8;cursor:pointer}.analysis-findings .subhead[data-v-2b12f8dc]{font-size:1.1rem;color:#808b98;line-height:1.6rem;text-transform:uppercase}.analysis-findings .branch[data-v-2b12f8dc]{font-size:1rem;color:#e3e5e8;line-height:1.6rem;font-weight:500}.analysis-findings .findings-overview h3[data-v-2b12f8dc]{color:#808b98}.analysis-findings .findings-overview ul[data-v-2b12f8dc]{list-style-type:none;display:flex;flex-direction:row;gap:1rem;justify-content:flex-start;padding:0}.analysis-findings .findings-overview ul li[data-v-2b12f8dc]{border-radius:.5rem;background-color:#010306;padding:.25rem 1rem .25rem 1.5rem;transition:all .3s ease}.analysis-findings .findings-overview ul li[data-v-2b12f8dc]:hover{background-color:#e3e5e8;color:#010306;cursor:pointer}.analysis-findings .findings-overview ul li.total[data-v-2b12f8dc]{padding:.25rem 1rem}.analysis-findings .findings-overview ul li.security[data-v-2b12f8dc]::before{content:"\u2022";color:#9d1616;font-weight:700;display:inline-block;width:1em;margin-left:-1em}.analysis-findings .findings-overview ul li.performance[data-v-2b12f8dc]::before{content:"\u2022";color:#b54b0f;font-weight:700;display:inline-block;width:1em;margin-left:-1em}.analysis-findings .findings-overview ul li.stability[data-v-2b12f8dc]::before{content:"\u2022";color:#d6993f;font-weight:700;display:inline-block;width:1em;margin-left:-1em}.analysis-findings .findings-overview ul li.maintainability[data-v-2b12f8dc]::before{content:"\u2022";color:#69ad34;font-weight:700;display:inline-block;width:1em;margin-left:-1em}.analysis-findings .findings-list[data-v-2b12f8dc]{margin:0 -1.75rem}.analysis-findings .findings-list ul[data-v-2b12f8dc]{padding:0;list-style-type:none}.analysis-findings .findings-list ul li[data-v-2b12f8dc]{padding:.25rem 1rem;width:100%;transition:all .3s ease}.analysis-findings .findings-list ul li[data-v-2b12f8dc]:hover{background-color:#1b2131}.analysis-findings .findings-list .list[data-v-2b12f8dc]{display:flex;flex-direction:column;align-content:center}.analysis-findings .findings-list .list li[data-v-2b12f8dc]{border-bottom:1px solid #3f4d72}.analysis-findings .findings-list .item[data-v-2b12f8dc]{display:flex;flex-direction:row}.analysis-findings .findings-list .item li[data-v-2b12f8dc]{border-bottom:0}.analysis-findings .findings-list .item li[data-v-2b12f8dc]:first-of-type{border-top:0}.analysis-findings .findings-list .item li[data-v-2b12f8dc]:hover{cursor:pointer}.analysis-findings .findings-list .item.header[data-v-2b12f8dc]{font-weight:800;color:#808b98}.analysis-findings .findings-list .item.header li[data-v-2b12f8dc]{padding-bottom:0}.b-0[data-v-2b12f8dc]{border:none}',map:void 0,media:void 0})},{name:"analysis-findings",components:{VQuickstartLayout:br},props:{findings:{default:()=>[],type:Array}},data:()=>({sortBy:"name",sortAscending:!0,filterBy:"all"}),methods:{updateSorting(e){this.sortBy===e&&(this.sortAscending=!this.sortAscending),this.sortBy=e},updateFilter(e){this.filterBy=e},sortFindings(e){this.sortBy==="category"?this.sortFindingsByCategory(e):this.sortBy==="name"&&this.sortFindingsByName(e)},sortFindingsByName(e){e.sort((t,r)=>this.sortAscending?t.ruleTitle<r.ruleTitle?-1:1:t.ruleTitle<r.ruleTitle?1:-1)},sortFindingsByCategory(e){e.sort((t,r)=>this.sortAscending?t.impactDomain<r.impactDomain?-1:1:t.impactDomain<r.impactDomain?1:-1)},filterFindings(e){return this.filterBy==="all"?e:e.filter(t=>(t.impactDomain&&t.impactDomain.toLowerCase())===this.filterBy)},openFindingInfo(e){this.$root.$emit("open-finding-info",e)},openProblemsTab(){this.$root.$emit("open-problems-tab")}},computed:{sortedAndFilteredUniqueFindings(){let{uniqueFindings:e}=this,t=this.filterFindings(e);return this.sortFindings(t),t},uniqueFindings(){return Object.values(this.findings.reduce((e,{finding:t})=>(e[t.hash_v2]=t,e),{}))},findingsByImpactDomain(){return this.uniqueFindings.reduce((e,t)=>(e[t.impactDomain&&t.impactDomain.toLowerCase()||"unknown"].push(t),e),{security:[],performance:[],stability:[],maintainability:[],unknown:[]})},numSecurityFindings(){return this.findingsByImpactDomain.security.length},numPerformanceFindings(){return this.findingsByImpactDomain.performance.length},numStabilityFindings(){return this.findingsByImpactDomain.stability.length},numMaintainabilityFindings(){return this.findingsByImpactDomain.maintainability.length}}},"data-v-2b12f8dc",!1,void 0,!1,X,void 0,void 0),UZ=j({render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-quickstart-layout",[e.hasNoData?r("section",{staticClass:"finding-details"},[r("h1",{attrs:{"data-cy":"title"}},[e._v("Oops, Something Went Wrong!")]),e._v(" "),r("p",[e._v("We couldn't find any information about this finding")])]):r("div",[r("section",{staticClass:"finding-details"},[r("div",{staticClass:"header-wrap"},[r("header",[r("h4",{staticClass:"subhead"},[e._v("Finding")]),e._v(" "),r("h1",{attrs:{"data-cy":"title"}},[e._v(e._s(e.title))]),e._v(" "),e.description?r("p",{attrs:{"data-cy":"description"}},[e._v(e._s(e.description))]):e._e(),e._v(" "),r("a",{attrs:{href:e.docsLink,"data-cy":"docs-link"}},[e._v("Learn More")])]),e._v(" "),r("div",{staticClass:"header-controls"},[r("div",{staticClass:"btn",on:{click:function(n){return e.backToOverview()}}},[e._v("Open Findings Overview")])])]),e._v(" "),r("main",[r("div",{staticClass:"finding-details-wrap row"},[r("div",{staticClass:"findings-overview"},[r("h3",[e._v("Finding Overview")]),e._v(" "),r("ul",{staticClass:"card stack"},[r("li",{attrs:{"data-cy":"category"}},[e._v("Category: "+e._s(e.category))]),e._v(" "),e._l(e.references,function(n,i){return r("li",{key:i,attrs:{"data-cy":"reference"}},[e._v(`
|
|
230
230
|
Reference: `),r("a",{attrs:{href:n}},[e._v(e._s(i))])])})],2)]),e._v(" "),r("div",{staticClass:"event-summary",attrs:{"data-cy":"event-summary"}},[r("h3",[e._v("Event Summary")]),e._v(" "),r("ul",{staticClass:"card stack"},[r("li",[r("span",{staticClass:"code"},[e._v(" "+e._s(e.message))])])])])]),e._v(" "),r("div",{staticClass:"stack-trace finding-details-wrap col"},[r("h3",[e._v("Stack Trace")]),e._v(" "),r("ul",{staticClass:"card"},e._l(e.stackLocations,function(n){return r("li",{key:n.uri.path,attrs:{"data-cy":"stack-trace"}},[r("v-popper",{staticClass:"hover-text-popper",attrs:{"data-cy":"popper",text:n.uri.path,placement:"top","text-align":"left"}},[r("a",{attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.openInSourceCode(n)}}},[e._v(e._s(e.displayLocation(n)))])])],1)}),0)])])]),e._v(" "),r("div",{staticClass:"analysis-findings full-width"},[r("h3",{attrs:{"data-cy":"associated-maps-title"}},[r("VAppmapPin"),e._v(`
|
|
231
231
|
Found in `+e._s(e.associatedMaps.length)+" AppMap"+e._s(e.associatedMaps.length===1?void 0:"s")+`
|
|
232
|
-
`)],1),e._v(" "),r("ul",{staticClass:"appmap-list"},e._l(e.associatedMaps,function(n){return r("li",{key:n.fullPath,attrs:{"data-cy":"associated-map"}},[r("a",{attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.openMap(n.fullPath,n.uri)}}},[e._v(e._s(n.appMapName))])])}),0)])])])},staticRenderFns:[]},function(e){e&&e("data-v-418c73fe_0",{source:".analysis-findings.full-width[data-v-418c73fe]{margin:0 -1.75rem}.analysis-findings.full-width h3[data-v-418c73fe]{padding:0 2rem}.analysis-findings.full-width .appmap-list[data-v-418c73fe]{padding:0;border-top:1px solid #3f4d72}.analysis-findings.full-width .appmap-list li[data-v-418c73fe]{padding:.5rem 2rem;border-bottom:1px solid #3f4d72}.analysis-findings.full-width .appmap-list li a[data-v-418c73fe]{color:#e3e5e8}.analysis-findings.full-width .appmap-list li[data-v-418c73fe]:hover{background-color:#1b2131}.finding-details .header-wrap[data-v-418c73fe]{display:flex;flex-direction:row;justify-content:space-between}.finding-details .header-wrap header p[data-v-418c73fe]{margin:1rem 0}.finding-details .header-wrap .header-controls[data-v-418c73fe]{display:flex;flex-direction:row;gap:1rem;align-items:flex-start;justify-content:flex-end;width:100%}.finding-details .header-wrap .header-controls .btn[data-v-418c73fe]{border:1px solid #8f81d4b3;border-radius:.5rem;padding:.2rem .5rem;transition:all .3s ease}.finding-details .header-wrap .header-controls .btn[data-v-418c73fe]:hover{background-color:#8f81d4b3;color:#e3e5e8;cursor:pointer}.finding-details .subhead[data-v-418c73fe]{font-size:1.1rem;color:#808b98;line-height:1.6rem;text-transform:uppercase}.finding-details .findings-sort[data-v-418c73fe]{display:flex;flex-direction:row;align-items:center}.finding-details .findings-sort select[data-v-418c73fe]{border-radius:6px;border:1px solid #8f81d4b3;background-color:transparent;color:#e3e5e8;padding:.4rem .5rem;margin-left:.35rem}.finding-details .finding-details-wrap[data-v-418c73fe]{display:flex;gap:2rem;justify-content:space-between}.finding-details .finding-details-wrap.row[data-v-418c73fe]{flex-direction:row}.finding-details .finding-details-wrap.col[data-v-418c73fe]{flex-direction:column;gap:0}.finding-details .finding-details-wrap h3[data-v-418c73fe]{color:#808b98}.finding-details .finding-details-wrap ul[data-v-418c73fe]{list-style-type:none;display:flex;flex-direction:column;gap:1rem;justify-content:flex-start;padding:0;width:100%}.finding-details .finding-details-wrap ul li[data-v-418c73fe]{border-radius:.5rem;background-color:#010306;padding:.25rem 1rem .25rem 1.5rem;transition:all .3s ease}.finding-details .finding-details-wrap .code[data-v-418c73fe]{font-weight:800;color:#808b98}.finding-details .finding-details-wrap .card[data-v-418c73fe]{border-radius:.5rem;background-color:#010306;padding:.25rem 0;gap:0}.finding-details .finding-details-wrap .card li[data-v-418c73fe]{border-bottom:1px solid #242c41;border-radius:0;width:100%}.finding-details .finding-details-wrap .card li[data-v-418c73fe]:last-of-type{border-bottom:0}.finding-details .finding-details-wrap .cardul.stack[data-v-418c73fe]{display:flex;flex-direction:column}.finding-details .finding-details-wrap .event-summary[data-v-418c73fe],.finding-details .finding-details-wrap .findings-overview[data-v-418c73fe]{width:100%}.finding-details .findings-list[data-v-418c73fe]{margin:0 -1.75rem}.finding-details .findings-list ul[data-v-418c73fe]{padding:0;list-style-type:none}.finding-details .findings-list ul li[data-v-418c73fe]{padding:.25rem 1rem;width:100%;transition:all .3s ease}.finding-details .findings-list ul li[data-v-418c73fe]:hover{background-color:#1b2131}.finding-details.full-width[data-v-418c73fe]{width:100%;margin:0 -1.75rem}.b-0[data-v-418c73fe]{border:none}",map:void 0,media:void 0})},{name:"FindingDetails",components:{VQuickstartLayout:br,VAppmapPin:{functional:!0,render(e,t){let{_c:r,_v:n,data:i,children:a=[]}=t,{class:s,staticClass:o,style:u,staticStyle:l,attrs:d={},...h}=i;return r("svg",{class:[s,o],style:[u,l],attrs:Object.assign({width:"10",height:"15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),...h},a.concat([r("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.8 13.796C7.214 11.618 10 7.062 10 5A5 5 0 000 5c0 2.061 2.787 6.618 4.2 8.796a.949.949 0 001.6 0zM2.978 8H2l3-6 3 6h-.977L5 3.8 2.977 8z",fill:"#FF07AA"}})]))}},VPopper:ni},mixins:[ln],props:{findings:{default:()=>[],type:Array}},methods:{displayLocation(e){let t=e.range[0]&&e.range[0].line,{truncatedPath:r}=e;return t&&t!==0?`${r}:${t}`:""+r},openInSourceCode(e){this.$root.$emit("open-in-source-code",e)},openMap(e,t){this.$root.$emit("open-map",e,t)},backToOverview(){this.$root.$emit("open-findings-overview")}},computed:{hasNoData(){return this.findings.length===0},representativeFinding(){return this.findings[0]},associatedMaps(){return this.findings.map(e=>{let t=e.appMapUri,r=e.finding.appMapFile,{appMapName:n}=e;return{fullPath:r,appMapName:n,uri:t}})},stackLocations(){return this.representativeFinding.stackLocations},category(){return this.representativeFinding.finding.impactDomain},title(){return this.representativeFinding.finding.ruleTitle},message(){return this.representativeFinding.finding.message},description(){return this.representativeFinding.ruleInfo&&this.representativeFinding.ruleInfo.description},references(){return this.representativeFinding.ruleInfo&&this.representativeFinding.ruleInfo.references||{}},docsLink(){return"https://appmap.io/docs/analysis/rules-reference.html#"+this.representativeFinding.finding.ruleId}}},"data-v-418c73fe",!1,void 0,!1,X,void 0,void 0),qZ=j({render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-quickstart-layout",[r("section",{staticClass:"appmap-signin"},[r("header",[r("h1",{attrs:{"data-cy":"title"}},[e._v("Welcome to AppMap")])
|
|
233
|
-
Continue without
|
|
234
|
-
`)])])])])])])},staticRenderFns:[]},function(e){e&&e("data-v-
|
|
232
|
+
`)],1),e._v(" "),r("ul",{staticClass:"appmap-list"},e._l(e.associatedMaps,function(n){return r("li",{key:n.fullPath,attrs:{"data-cy":"associated-map"}},[r("a",{attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.openMap(n.fullPath,n.uri)}}},[e._v(e._s(n.appMapName))])])}),0)])])])},staticRenderFns:[]},function(e){e&&e("data-v-418c73fe_0",{source:".analysis-findings.full-width[data-v-418c73fe]{margin:0 -1.75rem}.analysis-findings.full-width h3[data-v-418c73fe]{padding:0 2rem}.analysis-findings.full-width .appmap-list[data-v-418c73fe]{padding:0;border-top:1px solid #3f4d72}.analysis-findings.full-width .appmap-list li[data-v-418c73fe]{padding:.5rem 2rem;border-bottom:1px solid #3f4d72}.analysis-findings.full-width .appmap-list li a[data-v-418c73fe]{color:#e3e5e8}.analysis-findings.full-width .appmap-list li[data-v-418c73fe]:hover{background-color:#1b2131}.finding-details .header-wrap[data-v-418c73fe]{display:flex;flex-direction:row;justify-content:space-between}.finding-details .header-wrap header p[data-v-418c73fe]{margin:1rem 0}.finding-details .header-wrap .header-controls[data-v-418c73fe]{display:flex;flex-direction:row;gap:1rem;align-items:flex-start;justify-content:flex-end;width:100%}.finding-details .header-wrap .header-controls .btn[data-v-418c73fe]{border:1px solid #8f81d4b3;border-radius:.5rem;padding:.2rem .5rem;transition:all .3s ease}.finding-details .header-wrap .header-controls .btn[data-v-418c73fe]:hover{background-color:#8f81d4b3;color:#e3e5e8;cursor:pointer}.finding-details .subhead[data-v-418c73fe]{font-size:1.1rem;color:#808b98;line-height:1.6rem;text-transform:uppercase}.finding-details .findings-sort[data-v-418c73fe]{display:flex;flex-direction:row;align-items:center}.finding-details .findings-sort select[data-v-418c73fe]{border-radius:6px;border:1px solid #8f81d4b3;background-color:transparent;color:#e3e5e8;padding:.4rem .5rem;margin-left:.35rem}.finding-details .finding-details-wrap[data-v-418c73fe]{display:flex;gap:2rem;justify-content:space-between}.finding-details .finding-details-wrap.row[data-v-418c73fe]{flex-direction:row}.finding-details .finding-details-wrap.col[data-v-418c73fe]{flex-direction:column;gap:0}.finding-details .finding-details-wrap h3[data-v-418c73fe]{color:#808b98}.finding-details .finding-details-wrap ul[data-v-418c73fe]{list-style-type:none;display:flex;flex-direction:column;gap:1rem;justify-content:flex-start;padding:0;width:100%}.finding-details .finding-details-wrap ul li[data-v-418c73fe]{border-radius:.5rem;background-color:#010306;padding:.25rem 1rem .25rem 1.5rem;transition:all .3s ease}.finding-details .finding-details-wrap .code[data-v-418c73fe]{font-weight:800;color:#808b98}.finding-details .finding-details-wrap .card[data-v-418c73fe]{border-radius:.5rem;background-color:#010306;padding:.25rem 0;gap:0}.finding-details .finding-details-wrap .card li[data-v-418c73fe]{border-bottom:1px solid #242c41;border-radius:0;width:100%}.finding-details .finding-details-wrap .card li[data-v-418c73fe]:last-of-type{border-bottom:0}.finding-details .finding-details-wrap .cardul.stack[data-v-418c73fe]{display:flex;flex-direction:column}.finding-details .finding-details-wrap .event-summary[data-v-418c73fe],.finding-details .finding-details-wrap .findings-overview[data-v-418c73fe]{width:100%}.finding-details .findings-list[data-v-418c73fe]{margin:0 -1.75rem}.finding-details .findings-list ul[data-v-418c73fe]{padding:0;list-style-type:none}.finding-details .findings-list ul li[data-v-418c73fe]{padding:.25rem 1rem;width:100%;transition:all .3s ease}.finding-details .findings-list ul li[data-v-418c73fe]:hover{background-color:#1b2131}.finding-details.full-width[data-v-418c73fe]{width:100%;margin:0 -1.75rem}.b-0[data-v-418c73fe]{border:none}",map:void 0,media:void 0})},{name:"FindingDetails",components:{VQuickstartLayout:br,VAppmapPin:{functional:!0,render(e,t){let{_c:r,_v:n,data:i,children:a=[]}=t,{class:s,staticClass:o,style:u,staticStyle:l,attrs:d={},...h}=i;return r("svg",{class:[s,o],style:[u,l],attrs:Object.assign({width:"10",height:"15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),...h},a.concat([r("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.8 13.796C7.214 11.618 10 7.062 10 5A5 5 0 000 5c0 2.061 2.787 6.618 4.2 8.796a.949.949 0 001.6 0zM2.978 8H2l3-6 3 6h-.977L5 3.8 2.977 8z",fill:"#FF07AA"}})]))}},VPopper:ni},mixins:[ln],props:{findings:{default:()=>[],type:Array}},methods:{displayLocation(e){let t=e.range[0]&&e.range[0].line,{truncatedPath:r}=e;return t&&t!==0?`${r}:${t}`:""+r},openInSourceCode(e){this.$root.$emit("open-in-source-code",e)},openMap(e,t){this.$root.$emit("open-map",e,t)},backToOverview(){this.$root.$emit("open-findings-overview")}},computed:{hasNoData(){return this.findings.length===0},representativeFinding(){return this.findings[0]},associatedMaps(){return this.findings.map(e=>{let t=e.appMapUri,r=e.finding.appMapFile,{appMapName:n}=e;return{fullPath:r,appMapName:n,uri:t}})},stackLocations(){return this.representativeFinding.stackLocations},category(){return this.representativeFinding.finding.impactDomain},title(){return this.representativeFinding.finding.ruleTitle},message(){return this.representativeFinding.finding.message},description(){return this.representativeFinding.ruleInfo&&this.representativeFinding.ruleInfo.description},references(){return this.representativeFinding.ruleInfo&&this.representativeFinding.ruleInfo.references||{}},docsLink(){return"https://appmap.io/docs/analysis/rules-reference.html#"+this.representativeFinding.finding.ruleId}}},"data-v-418c73fe",!1,void 0,!1,X,void 0,void 0),qZ=j({render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-quickstart-layout",{attrs:{"display-help":!1}},[r("section",{staticClass:"appmap-signin"},[r("header",[r("h1",{attrs:{"data-cy":"title"}},[e._v("Welcome to AppMap")])]),e._v(" "),r("main",[r("div",{staticClass:"login"},[r("div",{staticClass:"login-sub"},[r("a",{staticClass:"btn-auth center",attrs:{"data-cy":"auth-button"},on:{click:function(n){return n.preventDefault(),e.$root.$emit("perform-auth")}}},[r("v-appmap-logo"),e._v(" "),r("v-button",{staticClass:"cta-button b-0",attrs:{label:e.enableButtonLabel}})],1),e._v(" "),r("a",{staticClass:"secondary-link",attrs:{href:"#"},on:{click:function(n){return e.$root.$emit("skip-sign-in")}}},[e._v(`
|
|
233
|
+
Continue without signing in.
|
|
234
|
+
`)])])])])])])},staticRenderFns:[]},function(e){e&&e("data-v-169f4d9e_0",{source:"header[data-v-169f4d9e]{display:flex;justify-content:center;margin-bottom:16px}header h1[data-v-169f4d9e]{margin-bottom:0}main[data-v-169f4d9e]{justify-content:center}.qs .appmap-signin h1[data-v-169f4d9e]{margin:0 0 .5rem 0}section.appmap-signin .login[data-v-169f4d9e]{display:flex;flex-direction:column;gap:1rem;justify-content:center}section.appmap-signin .login .login-sub[data-v-169f4d9e]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center}section.appmap-signin .login .login-sub .secondary-link[data-v-169f4d9e]{margin-left:.5rem}section.appmap-signin .login .secondary-link[data-v-169f4d9e]{text-align:center;color:#5c76a5}section.appmap-signin .login .secondary-link[data-v-169f4d9e]:hover{color:#e3e5e8;text-decoration:underline}a.btn.signin[data-v-169f4d9e]{border:1px solid #ff07aa;border-radius:.5rem;color:#e3e5e8;padding:.4rem .8rem;display:flex;align-items:center;width:max-content}a.btn.signin svg[data-v-169f4d9e]{width:1rem;height:1rem;margin:0 .5rem 0 0}a.btn.signin[data-v-169f4d9e]:hover{background-color:#ff07aa}.analysis-feature-list[data-v-169f4d9e]{list-style-type:none;padding:0}.analysis-feature-list h2[data-v-169f4d9e]{display:flex;align-items:center;color:#e3e5e8}.analysis-feature-list h2 svg[data-v-169f4d9e]{margin-right:.5rem}.analysis-feature-list li[data-v-169f4d9e]{color:#808b98;margin-bottom:1rem}.analysis-feature-list li ul[data-v-169f4d9e]{list-style-type:disc;padding:0 2.8rem}.analysis-feature-list li ul li[data-v-169f4d9e]{margin-bottom:unset}.btn-auth[data-v-169f4d9e]{align-items:center;background-color:#071223;border:3px solid #37445f;border-radius:1rem;box-shadow:0 0 20px 0 rgba(0,0,0,.2);display:flex;flex-direction:row;justify-content:center;padding:.7rem 1.2rem;transition:all .3s ease;margin:0;width:max-content;margin-bottom:8px}.btn-auth .cta-button[data-v-169f4d9e]{padding:.5rem .5rem .5rem 4rem}.btn-auth svg[data-v-169f4d9e]{margin-right:-3rem;margin-left:.5rem;width:32px}.btn-auth[data-v-169f4d9e]:hover{background-color:#010306;box-shadow:0 0 20px 0 rgba(0,0,0,.2);border-color:#5f729a}.btn-auth:hover .cta-button[data-v-169f4d9e]{background:0 0}.b-0[data-v-169f4d9e]{border:none!important}",map:void 0,media:void 0})},{name:"SignIn",components:{VQuickstartLayout:br,VButton:ri,VAppmapLogo:D4},mixins:[ln],props:{},methods:{},computed:{enableButtonLabel(){return this.userAuthenticated?"Enable AppMap Runtime Analysis":"Sign in to continue"}}},"data-v-169f4d9e",!1,void 0,!1,X,void 0,void 0),jZ={__proto__:null,VButton:ri,VDetailsPanel:T4,VTabs:x4,VVsCodeExtension:wf,VDiff:NZ,VInstallGuide:$Z,VAnalysisFindings:FZ,VFindingDetails:UZ,VOpenAppmaps:L4,VSignIn:qZ},Of=function(e){Of.installed||(Of.installed=!0,Object.entries(jZ).forEach(([t,r])=>{e.component(t,r)}))},B4={install:Of};bn.use(kr.default);bn.use(B4);async function zZ(){return new bn({el:"#app",render:e=>e(wf,{ref:"ui",props:{appMapUploadable:!0}}),async mounted(){let t=new URL(document.location).searchParams.get("appmap"),r=await fetch(`/appmap?file=${encodeURIComponent(t)}`),{ui:n}=this.$refs;n.loadData(await r.json()||{})}})}zZ();})();
|
|
235
235
|
/*!
|
|
236
236
|
* @appland/sql-parser - v1.5.0
|
|
237
237
|
* @copyright 2015-2022 Code School (http://codeschool.com)
|