@lvce-editor/renderer-process 30.57.1 → 30.57.2

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.
@@ -1,34 +1,38 @@
1
1
  const omitted = new Set(['SCRIPT', 'STYLE', 'LINK', 'META', 'BASE', 'NOSCRIPT']);
2
2
  const unsupported = new Set(['IFRAME', 'WEBVIEW', 'CANVAS', 'OBJECT', 'EMBED', 'VIDEO', 'AUDIO']);
3
+ // The allowlist covers HTML, SVG and accessibility attributes.
3
4
  const attributes$1 = /^(class|style|id|title|role|type|checked|disabled|selected|placeholder|width|height|viewBox|d|fill|stroke|cx|cy|r|x|y|x1|x2|y1|y2|points|transform|xmlns|aria-[\w-]+)$/i;
4
5
  const capture = document => {
5
- const visit = node => {
6
- if (node.nodeType === 3) return {
7
- text: node.textContent
6
+ const visit = original => {
7
+ if (original.nodeType === 3) return {
8
+ text: original.textContent
8
9
  };
9
- if (node.nodeType !== 1 || omitted.has(node.tagName)) return undefined;
10
+ if (original.nodeType !== 1) return undefined;
11
+ const node = original;
12
+ if (omitted.has(node.tagName)) return undefined;
13
+ // Attributes also work on XML elements without a dataset property.
10
14
  if (node.hasAttribute('data-session-replay-ignore')) return undefined;
11
15
  if (unsupported.has(node.tagName) || node.matches('.Terminal, .TerminalView, .xterm, [data-session-replay-placeholder]')) {
12
16
  const {
13
- width,
14
- height
17
+ height,
18
+ width
15
19
  } = node.getBoundingClientRect();
16
20
  return {
17
- tag: 'div',
18
21
  attrs: {
19
22
  class: 'SessionReplayPlaceholder',
20
23
  style: `background:#808080;color:white;width:${width}px;height:${height}px;overflow:hidden`
21
24
  },
22
25
  children: [{
23
26
  text: 'Content unavailable in replay'
24
- }]
27
+ }],
28
+ tag: 'div'
25
29
  };
26
30
  }
27
31
  if (node.matches('[data-session-replay-mask], input[type=password]')) return {
28
- tag: 'span',
29
32
  children: [{
30
33
  text: '••••••••'
31
- }]
34
+ }],
35
+ tag: 'span'
32
36
  };
33
37
  const attrs = Object.fromEntries([...node.attributes].filter(({
34
38
  name
@@ -36,23 +40,26 @@ const capture = document => {
36
40
  name,
37
41
  value
38
42
  }) => [name, value]));
39
- if (node.tagName === 'IMG' && node.src.startsWith('data:image/')) attrs.src = node.src;
43
+ if (node.tagName === 'IMG') {
44
+ const image = node;
45
+ if (image.src.startsWith('data:image/')) attrs.src = image.src;
46
+ }
40
47
  return {
41
- tag: node.localName,
42
48
  attrs,
43
- ...(node.namespaceURI === 'http://www.w3.org/2000/svg' ? {
49
+ tag: node.localName,
50
+ ...(node.namespaceURI === 'http://www.w3.org/2000/svg' && {
44
51
  svg: true
45
- } : {}),
46
- ...(typeof node.value === 'string' ? {
52
+ }),
53
+ ...('value' in node && typeof node.value === 'string' && {
47
54
  value: node.value
48
- } : {}),
49
- ...(typeof node.checked === 'boolean' ? {
55
+ }),
56
+ ...('checked' in node && typeof node.checked === 'boolean' && {
50
57
  checked: node.checked
51
- } : {}),
52
- ...(node.scrollTop || node.scrollLeft ? {
58
+ }),
59
+ ...((node.scrollTop || node.scrollLeft) && {
53
60
  scroll: [node.scrollLeft, node.scrollTop]
54
- } : {}),
55
- children: [...node.childNodes].map(visit).filter(Boolean)
61
+ }),
62
+ children: Array.from(node.childNodes, visit).filter(child => child !== undefined)
56
63
  };
57
64
  };
58
65
  const styles = [];
@@ -60,10 +67,11 @@ const capture = document => {
60
67
  if (!sheet || seen.has(sheet)) return '';
61
68
  seen.add(sheet);
62
69
  try {
63
- return [...sheet.cssRules].map(rule => {
64
- if (rule.type !== 3) return rule.cssText;
65
- const imported = visitSheet(rule.styleSheet, seen);
66
- return rule.media.mediaText ? `@media ${rule.media.mediaText} { ${imported} }` : imported;
70
+ return Array.from(sheet.cssRules, rule => {
71
+ if (!('styleSheet' in rule)) return rule.cssText;
72
+ const importRule = rule;
73
+ const imported = visitSheet(importRule.styleSheet, seen);
74
+ return importRule.media.mediaText ? `@media ${importRule.media.mediaText} { ${imported} }` : imported;
67
75
  }).join('\n');
68
76
  } catch {
69
77
  return '';
@@ -71,12 +79,12 @@ const capture = document => {
71
79
  };
72
80
  for (const sheet of [...document.styleSheets, ...document.adoptedStyleSheets]) styles.push(visitSheet(sheet));
73
81
  return {
74
- dom: visit(document.body),
75
- styles,
76
82
  documentElement: {
77
83
  className: document.documentElement.className,
78
84
  style: document.documentElement.style.cssText
79
85
  },
86
+ dom: visit(document.body),
87
+ styles,
80
88
  viewport: [document.defaultView.innerWidth, document.defaultView.innerHeight]
81
89
  };
82
90
  };
@@ -89,12 +97,14 @@ const observe = (document, record, onError) => {
89
97
  };
90
98
  const observer = new MutationObserver(mark);
91
99
  observer.observe(document.documentElement, {
92
- subtree: true,
93
- childList: true,
94
100
  attributes: true,
95
- characterData: true
101
+ characterData: true,
102
+ childList: true,
103
+ subtree: true
104
+ });
105
+ for (const type of ['input', 'change', 'scroll']) document.addEventListener(type, mark, {
106
+ capture: true
96
107
  });
97
- for (const type of ['input', 'change', 'scroll']) document.addEventListener(type, mark, true);
98
108
  document.defaultView.addEventListener('resize', mark);
99
109
  let lastStyles = '';
100
110
  const snapshot = async (force = false) => {
@@ -116,7 +126,9 @@ const observe = (document, record, onError) => {
116
126
  }
117
127
  };
118
128
  void snapshot(true);
119
- const timer = setInterval(snapshot, 100);
129
+ const timer = setInterval(() => {
130
+ void snapshot();
131
+ }, 100);
120
132
  return () => {
121
133
  stopped = true;
122
134
  clearInterval(timer);
@@ -134,13 +146,13 @@ const serializeMessage = message => {
134
146
  if (seen.has(value)) return '[circular]';
135
147
  seen.add(value);
136
148
  if (value instanceof Error) return {
137
- name: value.name,
138
149
  message: value.message,
150
+ name: value.name,
139
151
  stack: value.stack
140
152
  };
141
153
  if (value instanceof ArrayBuffer || ArrayBuffer.isView(value)) return {
142
- type: value.constructor.name,
143
- byteLength: value.byteLength
154
+ byteLength: value.byteLength,
155
+ type: value.constructor.name
144
156
  };
145
157
  if (value.constructor?.name === 'MessagePort') return {
146
158
  type: 'MessagePort'
@@ -151,8 +163,8 @@ const serializeMessage = message => {
151
163
 
152
164
  const createClient = url => {
153
165
  const worker = new Worker(url, {
154
- type: 'module',
155
- name: 'Session Replay Worker'
166
+ name: 'Session Replay Worker',
167
+ type: 'module'
156
168
  });
157
169
  const callbacks = new Map();
158
170
  let nextId = 0;
@@ -177,13 +189,18 @@ const createClient = url => {
177
189
  fail(new Error('Session replay worker failed to load'));
178
190
  };
179
191
  return {
192
+ dispose() {
193
+ disposed = true;
194
+ worker.terminate();
195
+ fail(new Error('Session replay worker is closed'));
196
+ },
180
197
  invoke(method, ...params) {
181
198
  if (disposed) return Promise.reject(new Error('Session replay worker is closed'));
182
199
  return new Promise((resolve, reject) => {
183
200
  const id = nextId++;
184
201
  callbacks.set(id, {
185
- resolve,
186
- reject
202
+ reject,
203
+ resolve: value => resolve(value)
187
204
  });
188
205
  try {
189
206
  worker.postMessage({
@@ -193,35 +210,35 @@ const createClient = url => {
193
210
  });
194
211
  } catch (error) {
195
212
  callbacks.delete(id);
196
- reject(error);
213
+ reject(error instanceof Error ? error : new Error(String(error)));
197
214
  }
198
215
  });
199
- },
200
- dispose() {
201
- disposed = true;
202
- worker.terminate();
203
- fail(new Error('Session replay worker is closed'));
204
216
  }
205
217
  };
206
218
  };
207
219
 
208
220
  const tags = new Set('body div span p pre code main section article header footer nav aside h1 h2 h3 h4 h5 h6 ul ol li table thead tbody tr td th button input textarea select option label form fieldset legend a img br hr strong em b i u s small details summary svg path rect circle ellipse line polyline polygon g defs clipPath text tspan'.split(' '));
221
+ // The allowlist covers HTML, SVG and accessibility attributes.
209
222
  const attributes = /^(class|style|id|title|role|type|checked|disabled|selected|placeholder|width|height|viewBox|d|fill|stroke|cx|cy|r|x|y|x1|x2|y1|y2|points|transform|xmlns|aria-[\w-]+)$/i;
210
223
  const renderFrame = (document, frame) => {
211
224
  let count = 0;
212
225
  const scrolls = [];
226
+ // Keep the inert DOM reconstruction and its bounds together.
227
+ // eslint-disable-next-line sonarjs/cognitive-complexity
213
228
  const visit = (value, depth = 0) => {
214
229
  if (++count > 100_000 || depth > 150 || !value || typeof value !== 'object') throw new Error('Invalid replay DOM');
215
230
  if (typeof value.text === 'string') return document.createTextNode(value.text);
216
- const tag = tags.has(value.tag) ? value.tag : 'div';
231
+ const tag = value.tag && tags.has(value.tag) ? value.tag : 'div';
217
232
  const node = value.svg ? document.createElementNS('http://www.w3.org/2000/svg', tag) : document.createElement(tag);
218
- for (const [key, val] of Object.entries(value.attrs || {})) {
233
+ const entries = Object.entries(value.attrs || {});
234
+ for (const [key, val] of entries) {
219
235
  if (attributes.test(key) && typeof val === 'string') node.setAttribute(key, val);
220
236
  if (key === 'src' && tag === 'img' && typeof val === 'string' && /^data:image\/(png|jpeg|gif|webp);base64,/.test(val)) node.setAttribute(key, val);
221
237
  }
222
- if (typeof value.value === 'string' && 'value' in node && node.type !== 'file') node.value = value.value;
223
- if (typeof value.checked === 'boolean') node.checked = value.checked;
224
- for (const child of value.children || []) node.append(visit(child, depth + 1));
238
+ if (typeof value.value === 'string' && 'value' in node && (!('type' in node) || node.type !== 'file')) node.value = value.value;
239
+ if (typeof value.checked === 'boolean' && 'checked' in node) node.checked = value.checked;
240
+ const children = value.children || [];
241
+ for (const child of children) node.append(visit(child, depth + 1));
225
242
  if (Array.isArray(value.scroll)) scrolls.push([node, value.scroll]);
226
243
  return node;
227
244
  };
@@ -236,8 +253,8 @@ const renderFrame = (document, frame) => {
236
253
  for (const [node, [x, y]] of scrolls) node.scrollTo(x, y);
237
254
  };
238
255
  const mountPlayer = async (container, {
239
- workerUrl,
240
- source
256
+ source,
257
+ workerUrl
241
258
  }) => {
242
259
  const client = createClient(workerUrl);
243
260
  container.replaceChildren();
@@ -251,7 +268,7 @@ const mountPlayer = async (container, {
251
268
  iframe.setAttribute('sandbox', 'allow-same-origin');
252
269
  iframe.style.cssText = 'border:0;pointer-events:none;display:block';
253
270
  const loaded = new Promise(resolve => {
254
- iframe.onload = resolve;
271
+ iframe.onload = () => resolve();
255
272
  });
256
273
  // An opaque, inert visual document: recorded markup cannot run scripts, submit forms or fetch URLs.
257
274
  iframe.srcdoc = '<!doctype html><html><head><meta http-equiv="Content-Security-Policy" content="default-src &#39;none&#39;; style-src &#39;unsafe-inline&#39;; img-src data:; font-src data:"></head><body></body></html>';
@@ -278,14 +295,16 @@ const mountPlayer = async (container, {
278
295
  let position = 0;
279
296
  let duration = 0;
280
297
  const show = result => {
281
- position = result.position;
282
- duration = result.duration;
298
+ ({
299
+ duration,
300
+ position
301
+ } = result);
283
302
  slider.max = String(Math.ceil(duration));
284
303
  slider.value = String(Math.round(position));
285
304
  status.textContent = `${(position / 1000).toFixed(1)} / ${(duration / 1000).toFixed(1)} s`;
286
305
  const [width, height] = result.frame.viewport || [1280, 720];
287
- iframe.style.width = `${Math.max(1, Math.min(16384, width))}px`;
288
- iframe.style.height = `${Math.max(1, Math.min(16384, height))}px`;
306
+ iframe.style.width = `${Math.max(1, Math.min(16_384, width))}px`;
307
+ iframe.style.height = `${Math.max(1, Math.min(16_384, height))}px`;
289
308
  renderFrame(iframe.contentDocument, result.frame);
290
309
  };
291
310
  const pause = () => {
@@ -300,7 +319,7 @@ const mountPlayer = async (container, {
300
319
  };
301
320
  const report = error => {
302
321
  pause();
303
- status.textContent = error.message;
322
+ status.textContent = error instanceof Error ? error.message : String(error);
304
323
  };
305
324
  slider.oninput = () => {
306
325
  pause();
@@ -318,7 +337,9 @@ const mountPlayer = async (container, {
318
337
  if (!playing || disposed) return;
319
338
  try {
320
339
  await seek(performance.now() - origin);
321
- if (position >= duration) pause();else if (playing) timer = setTimeout(tick, 50);
340
+ if (position >= duration) pause();else if (playing) timer = setTimeout(() => {
341
+ void tick();
342
+ }, 50);
322
343
  } catch (error) {
323
344
  report(error);
324
345
  }
@@ -349,10 +370,11 @@ const state$h = {
349
370
  const attached = new WeakSet();
350
371
  const workerUrl = new URL('sessionReplayWorkerMain.js', import.meta.url);
351
372
  const report = error => {
352
- state$h.lastError = error.message;
373
+ const message = error instanceof Error ? error.message : String(error);
374
+ state$h.lastError = message;
353
375
  state$h.stopObserving?.();
354
376
  state$h.stopObserving = undefined;
355
- console.warn(`Session replay: ${error.message}`);
377
+ console.warn(`Session replay: ${message}`);
356
378
  };
357
379
  const record$1 = (direction, message) => {
358
380
  if (!state$h.client || state$h.lastError) return;
@@ -1374,87 +1396,87 @@ const Use$1 = 91;
1374
1396
  const Reference$1 = 100;
1375
1397
 
1376
1398
  const VirtualDomElements = {
1377
- __proto__: null,
1378
- A,
1379
- Article,
1380
- Aside,
1381
- Audio: Audio$2,
1382
- BlockQuote,
1383
- Br,
1384
- Button,
1385
- Canvas,
1386
- Circle: Circle$1,
1387
- Cite,
1388
- Code,
1389
- Col,
1390
- ColGroup,
1391
- Data,
1392
- Dd,
1393
- Defs: Defs$1,
1394
- Del,
1395
- Div,
1396
- Dl,
1397
- Dt,
1398
- Ellipse: Ellipse$1,
1399
- Em,
1400
- Figcaption,
1401
- Figure,
1402
- Footer,
1403
- Form,
1404
- G: G$1,
1405
- H1,
1406
- H2,
1407
- H3,
1408
- H4,
1409
- H5,
1410
- H6,
1411
- Head,
1412
- Header,
1413
- Hr,
1414
- Html,
1415
- I,
1416
- Iframe,
1417
- Img,
1418
- Input,
1419
- Ins,
1420
- Kbd,
1421
- Label,
1422
- Li,
1423
- Line: Line$1,
1424
- Main,
1425
- Meta,
1426
- Nav,
1427
- Ol,
1428
- Option,
1429
- P,
1430
- Path: Path$1,
1431
- Polygon: Polygon$1,
1432
- Polyline: Polyline$1,
1433
- Pre,
1434
- Quote: Quote$2,
1435
- Rect: Rect$1,
1436
- Reference: Reference$1,
1437
- Search,
1438
- Section,
1439
- Select,
1440
- Span,
1441
- Strong,
1442
- Style,
1443
- Svg: Svg$1,
1444
- TBody,
1445
- THead,
1446
- Table,
1447
- Td,
1448
- Text: Text$1,
1449
- TextArea,
1450
- Tfoot,
1451
- Th,
1452
- Time,
1453
- Title,
1454
- Tr,
1455
- Ul,
1456
- Use: Use$1,
1457
- Video: Video$1
1399
+ __proto__: null,
1400
+ A,
1401
+ Article,
1402
+ Aside,
1403
+ Audio: Audio$2,
1404
+ BlockQuote,
1405
+ Br,
1406
+ Button,
1407
+ Canvas,
1408
+ Circle: Circle$1,
1409
+ Cite,
1410
+ Code,
1411
+ Col,
1412
+ ColGroup,
1413
+ Data,
1414
+ Dd,
1415
+ Defs: Defs$1,
1416
+ Del,
1417
+ Div,
1418
+ Dl,
1419
+ Dt,
1420
+ Ellipse: Ellipse$1,
1421
+ Em,
1422
+ Figcaption,
1423
+ Figure,
1424
+ Footer,
1425
+ Form,
1426
+ G: G$1,
1427
+ H1,
1428
+ H2,
1429
+ H3,
1430
+ H4,
1431
+ H5,
1432
+ H6,
1433
+ Head,
1434
+ Header,
1435
+ Hr,
1436
+ Html,
1437
+ I,
1438
+ Iframe,
1439
+ Img,
1440
+ Input,
1441
+ Ins,
1442
+ Kbd,
1443
+ Label,
1444
+ Li,
1445
+ Line: Line$1,
1446
+ Main,
1447
+ Meta,
1448
+ Nav,
1449
+ Ol,
1450
+ Option,
1451
+ P,
1452
+ Path: Path$1,
1453
+ Polygon: Polygon$1,
1454
+ Polyline: Polyline$1,
1455
+ Pre,
1456
+ Quote: Quote$2,
1457
+ Rect: Rect$1,
1458
+ Reference: Reference$1,
1459
+ Search,
1460
+ Section,
1461
+ Select,
1462
+ Span,
1463
+ Strong,
1464
+ Style,
1465
+ Svg: Svg$1,
1466
+ TBody,
1467
+ THead,
1468
+ Table,
1469
+ Td,
1470
+ Text: Text$1,
1471
+ TextArea,
1472
+ Tfoot,
1473
+ Th,
1474
+ Time,
1475
+ Title,
1476
+ Tr,
1477
+ Ul,
1478
+ Use: Use$1,
1479
+ Video: Video$1
1458
1480
  };
1459
1481
 
1460
1482
  const elementTagMap = {
@@ -1546,8 +1568,8 @@ const getElementTag$1 = type => {
1546
1568
  };
1547
1569
 
1548
1570
  const ElementTagMap = {
1549
- __proto__: null,
1550
- getElementTag: getElementTag$1
1571
+ __proto__: null,
1572
+ getElementTag: getElementTag$1
1551
1573
  };
1552
1574
 
1553
1575
  const Backspace$1 = 'Backspace';
@@ -4490,9 +4512,9 @@ const wrap = worker => {
4490
4512
  };
4491
4513
 
4492
4514
  const IpcParentWithModuleWorker = {
4493
- __proto__: null,
4494
- create: create$z,
4495
- wrap
4515
+ __proto__: null,
4516
+ create: create$z,
4517
+ wrap
4496
4518
  };
4497
4519
 
4498
4520
  const isMessagePort = value => {
@@ -4522,8 +4544,8 @@ const create$y = async ({
4522
4544
  };
4523
4545
 
4524
4546
  const IpcParentWithMessagePort = {
4525
- __proto__: null,
4526
- create: create$y
4547
+ __proto__: null,
4548
+ create: create$y
4527
4549
  };
4528
4550
 
4529
4551
  const create$x = async url => {
@@ -4539,8 +4561,8 @@ const create$x = async url => {
4539
4561
  };
4540
4562
 
4541
4563
  const IpcParentWithReferencePort = {
4542
- __proto__: null,
4543
- create: create$x
4564
+ __proto__: null,
4565
+ create: create$x
4544
4566
  };
4545
4567
 
4546
4568
  const workers = Object.create(null);
@@ -4583,8 +4605,8 @@ const create$w = async ({
4583
4605
  };
4584
4606
 
4585
4607
  const IpcParentWithModuleWorkerWithMessagePort = {
4586
- __proto__: null,
4587
- create: create$w
4608
+ __proto__: null,
4609
+ create: create$w
4588
4610
  };
4589
4611
 
4590
4612
  const isElectron = platform === Electron$1;
@@ -4608,8 +4630,8 @@ const create$v = async ({
4608
4630
  };
4609
4631
 
4610
4632
  const IpcParentWithElectron = {
4611
- __proto__: null,
4612
- create: create$v
4633
+ __proto__: null,
4634
+ create: create$v
4613
4635
  };
4614
4636
 
4615
4637
  const getModule = method => {
@@ -5545,18 +5567,18 @@ const dispatchEvent = (element, options) => {
5545
5567
  };
5546
5568
 
5547
5569
  const ElementActions = {
5548
- __proto__: null,
5549
- click,
5550
- contextMenu,
5551
- dispatchEvent,
5552
- hover,
5553
- keyDown,
5554
- keyUp,
5555
- keyboardEvent,
5556
- mouseDown,
5557
- mouseEvent,
5558
- mouseUp,
5559
- type
5570
+ __proto__: null,
5571
+ click,
5572
+ contextMenu,
5573
+ dispatchEvent,
5574
+ hover,
5575
+ keyDown,
5576
+ keyUp,
5577
+ keyboardEvent,
5578
+ mouseDown,
5579
+ mouseEvent,
5580
+ mouseUp,
5581
+ type
5560
5582
  };
5561
5583
 
5562
5584
  const querySelectorByText = (root, text) => {
@@ -5803,16 +5825,16 @@ const toHaveJSProperty$1 = (locator, {
5803
5825
  };
5804
5826
 
5805
5827
  const ConditionValues = {
5806
- __proto__: null,
5807
- toBeFocused: toBeFocused$1,
5808
- toContainText: toContainText$1,
5809
- toHaveAttribute: toHaveAttribute$1,
5810
- toHaveClass: toHaveClass$1,
5811
- toHaveCount: toHaveCount$1,
5812
- toHaveCss: toHaveCss$1,
5813
- toHaveId: toHaveId$1,
5814
- toHaveJSProperty: toHaveJSProperty$1,
5815
- toHaveText: toHaveText$1
5828
+ __proto__: null,
5829
+ toBeFocused: toBeFocused$1,
5830
+ toContainText: toContainText$1,
5831
+ toHaveAttribute: toHaveAttribute$1,
5832
+ toHaveClass: toHaveClass$1,
5833
+ toHaveCount: toHaveCount$1,
5834
+ toHaveCss: toHaveCss$1,
5835
+ toHaveId: toHaveId$1,
5836
+ toHaveJSProperty: toHaveJSProperty$1,
5837
+ toHaveText: toHaveText$1
5816
5838
  };
5817
5839
 
5818
5840
  const keyCodeMap = {
@@ -5911,8 +5933,8 @@ const press = options => {
5911
5933
  };
5912
5934
 
5913
5935
  const KeyboardActions = {
5914
- __proto__: null,
5915
- press
5936
+ __proto__: null,
5937
+ press
5916
5938
  };
5917
5939
 
5918
5940
  const toHaveCount = (elements, {
@@ -5925,9 +5947,9 @@ const toBeHidden = elements => {
5925
5947
  };
5926
5948
 
5927
5949
  const MultiElementConditions = {
5928
- __proto__: null,
5929
- toBeHidden,
5930
- toHaveCount
5950
+ __proto__: null,
5951
+ toBeHidden,
5952
+ toHaveCount
5931
5953
  };
5932
5954
 
5933
5955
  const toBeVisible = element => {
@@ -5991,17 +6013,17 @@ const toHaveCss = (element, {
5991
6013
  };
5992
6014
 
5993
6015
  const SingleElementConditions = {
5994
- __proto__: null,
5995
- toBeFocused,
5996
- toBeVisible,
5997
- toContainText,
5998
- toHaveAttribute,
5999
- toHaveClass,
6000
- toHaveCss,
6001
- toHaveId,
6002
- toHaveJSProperty,
6003
- toHaveText,
6004
- toHaveValue
6016
+ __proto__: null,
6017
+ toBeFocused,
6018
+ toBeVisible,
6019
+ toContainText,
6020
+ toHaveAttribute,
6021
+ toHaveClass,
6022
+ toHaveCss,
6023
+ toHaveId,
6024
+ toHaveJSProperty,
6025
+ toHaveText,
6026
+ toHaveValue
6005
6027
  };
6006
6028
 
6007
6029
  const retainItem = (item, index) => {
@@ -6398,11 +6420,11 @@ const dispose$g = state => {
6398
6420
  };
6399
6421
 
6400
6422
  const ImagePreview$1 = {
6401
- __proto__: null,
6402
- create: create$q,
6403
- dispose: dispose$g,
6404
- showError,
6405
- update
6423
+ __proto__: null,
6424
+ create: create$q,
6425
+ dispose: dispose$g,
6426
+ showError,
6427
+ update
6406
6428
  };
6407
6429
 
6408
6430
  const getNodeIndex = $Node => {
@@ -6452,19 +6474,19 @@ const handleContextMenu$6 = event => {
6452
6474
  const returnValue$8 = true;
6453
6475
 
6454
6476
  const ViewletActivityBarEvents = {
6455
- __proto__: null,
6456
- handleBlur: handleBlur$7,
6457
- handleContextMenu: handleContextMenu$6,
6458
- handleFocus: handleFocus$9,
6459
- handleMouseDown: handleMouseDown$3,
6460
- returnValue: returnValue$8
6477
+ __proto__: null,
6478
+ handleBlur: handleBlur$7,
6479
+ handleContextMenu: handleContextMenu$6,
6480
+ handleFocus: handleFocus$9,
6481
+ handleMouseDown: handleMouseDown$3,
6482
+ returnValue: returnValue$8
6461
6483
  };
6462
6484
 
6463
6485
  const Events$6 = ViewletActivityBarEvents;
6464
6486
 
6465
6487
  const ViewletActivityBar = {
6466
- __proto__: null,
6467
- Events: Events$6
6488
+ __proto__: null,
6489
+ Events: Events$6
6468
6490
  };
6469
6491
 
6470
6492
  const executeViewletCommand$1 = 'Viewlet.executeViewletCommand';
@@ -6480,8 +6502,8 @@ const send = (method, uid, ...args) => {
6480
6502
  };
6481
6503
 
6482
6504
  const ViewletEventRouter = {
6483
- __proto__: null,
6484
- send
6505
+ __proto__: null,
6506
+ send
6485
6507
  };
6486
6508
 
6487
6509
  const executeViewletCommand = (uid, command, ...args) => {
@@ -6625,15 +6647,15 @@ const handleAudioError = event => {
6625
6647
  };
6626
6648
 
6627
6649
  const ViewletAudioEvents = {
6628
- __proto__: null,
6629
- handleAudioError
6650
+ __proto__: null,
6651
+ handleAudioError
6630
6652
  };
6631
6653
 
6632
6654
  const Events$5 = ViewletAudioEvents;
6633
6655
 
6634
6656
  const ViewletAudio = {
6635
- __proto__: null,
6636
- Events: Events$5
6657
+ __proto__: null,
6658
+ Events: Events$5
6637
6659
  };
6638
6660
 
6639
6661
  const create$p = () => {
@@ -6652,11 +6674,11 @@ const setTime = (state, time) => {
6652
6674
  };
6653
6675
 
6654
6676
  const ViewletClock = {
6655
- __proto__: null,
6656
- create: create$p,
6657
- dispose: dispose$f,
6658
- refresh: refresh$3,
6659
- setTime
6677
+ __proto__: null,
6678
+ create: create$p,
6679
+ dispose: dispose$f,
6680
+ refresh: refresh$3,
6681
+ setTime
6660
6682
  };
6661
6683
 
6662
6684
  const applyUidWorkaround = element => {
@@ -6742,9 +6764,9 @@ const handlePointerDown$2 = event => {
6742
6764
  const returnValue$7 = true;
6743
6765
 
6744
6766
  const ViewletColorPickerEvents = {
6745
- __proto__: null,
6746
- handlePointerDown: handlePointerDown$2,
6747
- returnValue: returnValue$7
6767
+ __proto__: null,
6768
+ handlePointerDown: handlePointerDown$2,
6769
+ returnValue: returnValue$7
6748
6770
  };
6749
6771
 
6750
6772
  const setColor = (state, color) => {
@@ -6769,11 +6791,11 @@ const appendWidget$6 = state => {
6769
6791
  };
6770
6792
 
6771
6793
  const ViewletColorPicker = {
6772
- __proto__: null,
6773
- Events: ViewletColorPickerEvents,
6774
- appendWidget: appendWidget$6,
6775
- setColor,
6776
- setOffsetX
6794
+ __proto__: null,
6795
+ Events: ViewletColorPickerEvents,
6796
+ appendWidget: appendWidget$6,
6797
+ setColor,
6798
+ setOffsetX
6777
6799
  };
6778
6800
 
6779
6801
  const handleInput$5 = event => {
@@ -6792,9 +6814,9 @@ const handleFocus$7 = event => {
6792
6814
  };
6793
6815
 
6794
6816
  const ViewletDebugConsoleEvents = {
6795
- __proto__: null,
6796
- handleFocus: handleFocus$7,
6797
- handleInput: handleInput$5
6817
+ __proto__: null,
6818
+ handleFocus: handleFocus$7,
6819
+ handleInput: handleInput$5
6798
6820
  };
6799
6821
 
6800
6822
  const create$n = () => {
@@ -6812,9 +6834,9 @@ const setDom$9 = (state, dom) => {
6812
6834
  };
6813
6835
 
6814
6836
  const ViewletDebugConsole = {
6815
- __proto__: null,
6816
- create: create$n,
6817
- setDom: setDom$9
6837
+ __proto__: null,
6838
+ create: create$n,
6839
+ setDom: setDom$9
6818
6840
  };
6819
6841
 
6820
6842
  const handleKeyDown$2 = event => {
@@ -6836,9 +6858,9 @@ const handleBlur$5 = event => {
6836
6858
  };
6837
6859
 
6838
6860
  const ViewletDefineKeyBindingEvents = {
6839
- __proto__: null,
6840
- handleBlur: handleBlur$5,
6841
- handleKeyDown: handleKeyDown$2
6861
+ __proto__: null,
6862
+ handleBlur: handleBlur$5,
6863
+ handleKeyDown: handleKeyDown$2
6842
6864
  };
6843
6865
 
6844
6866
  const setValue$2 = (state, value) => {
@@ -6859,10 +6881,10 @@ const focus$d = state => {
6859
6881
  };
6860
6882
 
6861
6883
  const ViewletDefineKeyBinding = {
6862
- __proto__: null,
6863
- Events: ViewletDefineKeyBindingEvents,
6864
- focus: focus$d,
6865
- setValue: setValue$2
6884
+ __proto__: null,
6885
+ Events: ViewletDefineKeyBindingEvents,
6886
+ focus: focus$d,
6887
+ setValue: setValue$2
6866
6888
  };
6867
6889
 
6868
6890
  const handleClick$5 = index => {
@@ -6957,14 +6979,14 @@ const setErrorStack = (state, errorStack) => {
6957
6979
  };
6958
6980
 
6959
6981
  const ViewletDialog = {
6960
- __proto__: null,
6961
- create: create$m,
6962
- postAppend,
6963
- setButtons,
6964
- setCodeFrame,
6965
- setErrorMessage,
6966
- setErrorStack,
6967
- setHeader
6982
+ __proto__: null,
6983
+ create: create$m,
6984
+ postAppend,
6985
+ setButtons,
6986
+ setCodeFrame,
6987
+ setErrorMessage,
6988
+ setErrorStack,
6989
+ setHeader
6968
6990
  };
6969
6991
 
6970
6992
  const handleWheel$2 = event => {
@@ -6981,9 +7003,9 @@ const handleScrollBarPointerDown$2 = event => {
6981
7003
  };
6982
7004
 
6983
7005
  const ViewletDiffEditorEvents = {
6984
- __proto__: null,
6985
- handleScrollBarPointerDown: handleScrollBarPointerDown$2,
6986
- handleWheel: handleWheel$2
7006
+ __proto__: null,
7007
+ handleScrollBarPointerDown: handleScrollBarPointerDown$2,
7008
+ handleWheel: handleWheel$2
6987
7009
  };
6988
7010
 
6989
7011
  const setScrollBar = (state, scrollBarY, scrollBarHeight, scrollBarThumbClass) => {
@@ -6997,9 +7019,9 @@ const setScrollBar = (state, scrollBarY, scrollBarHeight, scrollBarThumbClass) =
6997
7019
  };
6998
7020
 
6999
7021
  const ViewletDiffEditor = {
7000
- __proto__: null,
7001
- Events: ViewletDiffEditorEvents,
7002
- setScrollBar
7022
+ __proto__: null,
7023
+ Events: ViewletDiffEditorEvents,
7024
+ setScrollBar
7003
7025
  };
7004
7026
 
7005
7027
  const handleClickAt$2 = event => {
@@ -7043,12 +7065,12 @@ const handleSashCornerPointerDown = create$o(event => {
7043
7065
  const returnValue$6 = true;
7044
7066
 
7045
7067
  const ViewletE2eTestEvents = {
7046
- __proto__: null,
7047
- handleClickAt: handleClickAt$2,
7048
- handleContextMenu: handleContextMenu$4,
7049
- handleLoad: handleLoad$3,
7050
- handleSashCornerPointerDown,
7051
- returnValue: returnValue$6
7068
+ __proto__: null,
7069
+ handleClickAt: handleClickAt$2,
7070
+ handleContextMenu: handleContextMenu$4,
7071
+ handleLoad: handleLoad$3,
7072
+ handleSashCornerPointerDown,
7073
+ returnValue: returnValue$6
7052
7074
  };
7053
7075
 
7054
7076
  // TODO could use browser view when running in electron
@@ -7093,10 +7115,10 @@ const setPreviewTransform = (state, transform) => {
7093
7115
  // }
7094
7116
 
7095
7117
  const ViewletE2eTest = {
7096
- __proto__: null,
7097
- Events: ViewletE2eTestEvents,
7098
- setIframe: setIframe$3,
7099
- setPreviewTransform
7118
+ __proto__: null,
7119
+ Events: ViewletE2eTestEvents,
7120
+ setIframe: setIframe$3,
7121
+ setPreviewTransform
7100
7122
  };
7101
7123
 
7102
7124
  const handleClickAt$1 = event => {
@@ -7121,11 +7143,11 @@ const handleContextMenu$3 = event => {
7121
7143
  const returnValue$5 = true;
7122
7144
 
7123
7145
  const ViewletE2eTestsEvents = {
7124
- __proto__: null,
7125
- handleClickAt: handleClickAt$1,
7126
- handleContextMenu: handleContextMenu$3,
7127
- handleLoad: handleLoad$2,
7128
- returnValue: returnValue$5
7146
+ __proto__: null,
7147
+ handleClickAt: handleClickAt$1,
7148
+ handleContextMenu: handleContextMenu$3,
7149
+ handleLoad: handleLoad$2,
7150
+ returnValue: returnValue$5
7129
7151
  };
7130
7152
 
7131
7153
  const sendToIframe = (contentWindow, message, origin, transfer) => {
@@ -7182,10 +7204,10 @@ const setPort$2 = (state, portId, origin) => {
7182
7204
  };
7183
7205
 
7184
7206
  const ViewletE2eTests = {
7185
- __proto__: null,
7186
- Events: ViewletE2eTestsEvents,
7187
- setIframe: setIframe$2,
7188
- setPort: setPort$2
7207
+ __proto__: null,
7208
+ Events: ViewletE2eTestsEvents,
7209
+ setIframe: setIframe$2,
7210
+ setPort: setPort$2
7189
7211
  };
7190
7212
 
7191
7213
  const Script = 2;
@@ -7202,9 +7224,9 @@ const handleBlur$4 = event => {
7202
7224
  };
7203
7225
 
7204
7226
  const ViewletEditorCodeGeneratorEvents = {
7205
- __proto__: null,
7206
- handleBlur: handleBlur$4,
7207
- handleFocusIn: handleFocusIn$3
7227
+ __proto__: null,
7228
+ handleBlur: handleBlur$4,
7229
+ handleFocusIn: handleFocusIn$3
7208
7230
  };
7209
7231
 
7210
7232
  const setBounds$9 = (state, x, y, width, height) => {
@@ -7243,12 +7265,12 @@ const focus$c = (state, key, source) => {
7243
7265
  };
7244
7266
 
7245
7267
  const ViewletEditorCodeGenerator = {
7246
- __proto__: null,
7247
- Events: ViewletEditorCodeGeneratorEvents,
7248
- appendWidget: appendWidget$5,
7249
- dispose: dispose$e,
7250
- focus: focus$c,
7251
- setBounds: setBounds$9
7268
+ __proto__: null,
7269
+ Events: ViewletEditorCodeGeneratorEvents,
7270
+ appendWidget: appendWidget$5,
7271
+ dispose: dispose$e,
7272
+ focus: focus$c,
7273
+ setBounds: setBounds$9
7252
7274
  };
7253
7275
 
7254
7276
  const Passive = {
@@ -7446,18 +7468,18 @@ const setBounds$8 = (state, x, y, width, height) => {
7446
7468
  };
7447
7469
 
7448
7470
  const ViewletEditorCompletion = {
7449
- __proto__: null,
7450
- attachEvents: attachEvents$6,
7451
- create: create$l,
7452
- dispose: dispose$d,
7453
- handleError: handleError$5,
7454
- setBounds: setBounds$8,
7455
- setContentHeight,
7456
- setDom: setDom$8,
7457
- setNegativeMargin,
7458
- setScrollBar,
7459
- setSize,
7460
- showLoading
7471
+ __proto__: null,
7472
+ attachEvents: attachEvents$6,
7473
+ create: create$l,
7474
+ dispose: dispose$d,
7475
+ handleError: handleError$5,
7476
+ setBounds: setBounds$8,
7477
+ setContentHeight,
7478
+ setDom: setDom$8,
7479
+ setNegativeMargin,
7480
+ setScrollBar,
7481
+ setSize,
7482
+ showLoading
7461
7483
  };
7462
7484
 
7463
7485
  const handleClose = () => {
@@ -7466,9 +7488,9 @@ const handleClose = () => {
7466
7488
  const returnValue$4 = true;
7467
7489
 
7468
7490
  const ViewletEditorCompletionDetailsEvents = {
7469
- __proto__: null,
7470
- handleClose,
7471
- returnValue: returnValue$4
7491
+ __proto__: null,
7492
+ handleClose,
7493
+ returnValue: returnValue$4
7472
7494
  };
7473
7495
 
7474
7496
  const create$k = () => {
@@ -7508,14 +7530,14 @@ const setBounds$7 = (state, x, y, width, height) => {
7508
7530
  };
7509
7531
 
7510
7532
  const ViewletEditorCompletionDetails = {
7511
- __proto__: null,
7512
- Events: ViewletEditorCompletionDetailsEvents,
7513
- appendWidget: appendWidget$4,
7514
- attachEvents: attachEvents$5,
7515
- create: create$k,
7516
- dispose: dispose$c,
7517
- setBounds: setBounds$7,
7518
- setDom: setDom$7
7533
+ __proto__: null,
7534
+ Events: ViewletEditorCompletionDetailsEvents,
7535
+ appendWidget: appendWidget$4,
7536
+ attachEvents: attachEvents$5,
7537
+ create: create$k,
7538
+ dispose: dispose$c,
7539
+ setBounds: setBounds$7,
7540
+ setDom: setDom$7
7519
7541
  };
7520
7542
 
7521
7543
  // TODO not sure whether created DOM node
@@ -7552,10 +7574,10 @@ const setBounds$6 = (state, x, y, width, height) => {
7552
7574
  };
7553
7575
 
7554
7576
  const ViewletEditorError = {
7555
- __proto__: null,
7556
- create: create$j,
7557
- setBounds: setBounds$6,
7558
- setDom: setDom$6
7577
+ __proto__: null,
7578
+ create: create$j,
7579
+ setBounds: setBounds$6,
7580
+ setDom: setDom$6
7559
7581
  };
7560
7582
 
7561
7583
  const returnValue$3 = true;
@@ -7580,9 +7602,9 @@ const handleSashPointerDown$2 = create$o(event => {
7580
7602
  });
7581
7603
 
7582
7604
  const ViewletEditorHoverEvents = {
7583
- __proto__: null,
7584
- handleSashPointerDown: handleSashPointerDown$2,
7585
- returnValue: returnValue$3
7605
+ __proto__: null,
7606
+ handleSashPointerDown: handleSashPointerDown$2,
7607
+ returnValue: returnValue$3
7586
7608
  };
7587
7609
 
7588
7610
  const setBounds$5 = (state, x, y, width, height) => {
@@ -7606,11 +7628,11 @@ const setDom$5 = (state, dom) => {
7606
7628
  };
7607
7629
 
7608
7630
  const ViewletEditorHover = {
7609
- __proto__: null,
7610
- Events: ViewletEditorHoverEvents,
7611
- appendWidget: appendWidget$3,
7612
- setBounds: setBounds$5,
7613
- setDom: setDom$5
7631
+ __proto__: null,
7632
+ Events: ViewletEditorHoverEvents,
7633
+ appendWidget: appendWidget$3,
7634
+ setBounds: setBounds$5,
7635
+ setDom: setDom$5
7614
7636
  };
7615
7637
 
7616
7638
  const LeftClick = 0;
@@ -7752,12 +7774,12 @@ const setDom$4 = (state, dom) => {
7752
7774
  };
7753
7775
 
7754
7776
  const ViewletEditorImage = {
7755
- __proto__: null,
7756
- attachEvents: attachEvents$4,
7757
- create: create$i,
7758
- setDom: setDom$4,
7759
- setDragging,
7760
- setTransform
7777
+ __proto__: null,
7778
+ attachEvents: attachEvents$4,
7779
+ create: create$i,
7780
+ setDom: setDom$4,
7781
+ setDragging,
7782
+ setTransform
7761
7783
  };
7762
7784
 
7763
7785
  const create$h = () => {
@@ -7776,10 +7798,10 @@ const refresh$2 = (state, context) => {
7776
7798
  };
7777
7799
 
7778
7800
  const ViewletEditorPlainText = {
7779
- __proto__: null,
7780
- create: create$h,
7781
- dispose: dispose$b,
7782
- refresh: refresh$2
7801
+ __proto__: null,
7802
+ create: create$h,
7803
+ dispose: dispose$b,
7804
+ refresh: refresh$2
7783
7805
  };
7784
7806
 
7785
7807
  const handleFocusIn$2 = event => {
@@ -7789,8 +7811,8 @@ const handleFocusIn$2 = event => {
7789
7811
  };
7790
7812
 
7791
7813
  const ViewletEditorSourceActionsEvents = {
7792
- __proto__: null,
7793
- handleFocusIn: handleFocusIn$2
7814
+ __proto__: null,
7815
+ handleFocusIn: handleFocusIn$2
7794
7816
  };
7795
7817
 
7796
7818
  const setBounds$4 = (state, x, y, width, height) => {
@@ -7811,11 +7833,11 @@ const dispose$a = state => {
7811
7833
  };
7812
7834
 
7813
7835
  const ViewletEditorSourceActions = {
7814
- __proto__: null,
7815
- Events: ViewletEditorSourceActionsEvents,
7816
- appendWidget: appendWidget$2,
7817
- dispose: dispose$a,
7818
- setBounds: setBounds$4
7836
+ __proto__: null,
7837
+ Events: ViewletEditorSourceActionsEvents,
7838
+ appendWidget: appendWidget$2,
7839
+ dispose: dispose$a,
7840
+ setBounds: setBounds$4
7819
7841
  };
7820
7842
 
7821
7843
  const create$g = () => {
@@ -7833,9 +7855,9 @@ const setMessage$3 = (state, message) => {
7833
7855
  };
7834
7856
 
7835
7857
  const ViewletEditorTextError = {
7836
- __proto__: null,
7837
- create: create$g,
7838
- setMessage: setMessage$3
7858
+ __proto__: null,
7859
+ create: create$g,
7860
+ setMessage: setMessage$3
7839
7861
  };
7840
7862
 
7841
7863
  const create$f = () => {
@@ -7860,10 +7882,10 @@ const setBounds$3 = (state, x, y, width, height) => {
7860
7882
  };
7861
7883
 
7862
7884
  const ViewletEditorWidgetError = {
7863
- __proto__: null,
7864
- create: create$f,
7865
- setBounds: setBounds$3,
7866
- setMessage: setMessage$2
7885
+ __proto__: null,
7886
+ create: create$f,
7887
+ setBounds: setBounds$3,
7888
+ setMessage: setMessage$2
7867
7889
  };
7868
7890
 
7869
7891
  const create$e = () => {
@@ -7879,11 +7901,11 @@ const focus$b = state => {};
7879
7901
  const dispose$9 = state => {};
7880
7902
 
7881
7903
  const ViewletEmpty = {
7882
- __proto__: null,
7883
- create: create$e,
7884
- dispose: dispose$9,
7885
- focus: focus$b,
7886
- refresh: refresh$1
7904
+ __proto__: null,
7905
+ create: create$e,
7906
+ dispose: dispose$9,
7907
+ focus: focus$b,
7908
+ refresh: refresh$1
7887
7909
  };
7888
7910
 
7889
7911
  const create$d = () => {
@@ -7895,8 +7917,8 @@ const create$d = () => {
7895
7917
  };
7896
7918
 
7897
7919
  const ViewletEmptyEditor = {
7898
- __proto__: null,
7899
- create: create$d
7920
+ __proto__: null,
7921
+ create: create$d
7900
7922
  };
7901
7923
 
7902
7924
  const create$c = () => {
@@ -7914,16 +7936,16 @@ const setMessage$1 = (state, message) => {
7914
7936
  };
7915
7937
 
7916
7938
  const ViewletError = {
7917
- __proto__: null,
7918
- create: create$c,
7919
- setMessage: setMessage$1
7939
+ __proto__: null,
7940
+ create: create$c,
7941
+ setMessage: setMessage$1
7920
7942
  };
7921
7943
 
7922
7944
  const commandMap$1 = {};
7923
7945
 
7924
7946
  const ViewletExtensionViewEvents = {
7925
- __proto__: null,
7926
- commandMap: commandMap$1
7947
+ __proto__: null,
7948
+ commandMap: commandMap$1
7927
7949
  };
7928
7950
 
7929
7951
  const setIframeCredentialless = ($Iframe, credentialless) => {
@@ -7977,10 +7999,10 @@ const setIframe$1 = (state, src, sandbox = [], srcDoc = '', csp = '', credential
7977
7999
  };
7978
8000
 
7979
8001
  const ViewletExtensionView = {
7980
- __proto__: null,
7981
- Events: ViewletExtensionViewEvents,
7982
- focus: focus$a,
7983
- setIframe: setIframe$1
8002
+ __proto__: null,
8003
+ Events: ViewletExtensionViewEvents,
8004
+ focus: focus$a,
8005
+ setIframe: setIframe$1
7984
8006
  };
7985
8007
 
7986
8008
  const handleInput$4 = event => {
@@ -8052,24 +8074,24 @@ const handleFocusReplaceAll = event => {
8052
8074
  const returnValue$2 = true;
8053
8075
 
8054
8076
  const ViewletFindWidgetEvents = {
8055
- __proto__: null,
8056
- handleClickClose: handleClickClose$1,
8057
- handleClickNextMatch,
8058
- handleClickPreviousMatch,
8059
- handleClickReplace,
8060
- handleClickReplaceAll,
8061
- handleClickToggleReplace,
8062
- handleFocus: handleFocus$5,
8063
- handleFocusClose,
8064
- handleFocusNext,
8065
- handleFocusPrevious,
8066
- handleFocusReplaceAll,
8067
- handleInput: handleInput$4,
8068
- handleInputBlur,
8069
- handleReplaceFocus,
8070
- handleReplaceInput,
8071
- handleToggleReplaceFocus,
8072
- returnValue: returnValue$2
8077
+ __proto__: null,
8078
+ handleClickClose: handleClickClose$1,
8079
+ handleClickNextMatch,
8080
+ handleClickPreviousMatch,
8081
+ handleClickReplace,
8082
+ handleClickReplaceAll,
8083
+ handleClickToggleReplace,
8084
+ handleFocus: handleFocus$5,
8085
+ handleFocusClose,
8086
+ handleFocusNext,
8087
+ handleFocusPrevious,
8088
+ handleFocusReplaceAll,
8089
+ handleInput: handleInput$4,
8090
+ handleInputBlur,
8091
+ handleReplaceFocus,
8092
+ handleReplaceInput,
8093
+ handleToggleReplaceFocus,
8094
+ returnValue: returnValue$2
8073
8095
  };
8074
8096
 
8075
8097
  const create$b = () => {
@@ -8132,15 +8154,15 @@ const dispose$8 = state => {
8132
8154
  const Events$4 = ViewletFindWidgetEvents;
8133
8155
 
8134
8156
  const ViewletFindWidget = {
8135
- __proto__: null,
8136
- Events: Events$4,
8137
- appendWidget: appendWidget$1,
8138
- create: create$b,
8139
- dispose: dispose$8,
8140
- focus: focus$9,
8141
- setBounds: setBounds$2,
8142
- setDom: setDom$3,
8143
- setValue: setValue$1
8157
+ __proto__: null,
8158
+ Events: Events$4,
8159
+ appendWidget: appendWidget$1,
8160
+ create: create$b,
8161
+ dispose: dispose$8,
8162
+ focus: focus$9,
8163
+ setBounds: setBounds$2,
8164
+ setDom: setDom$3,
8165
+ setValue: setValue$1
8144
8166
  };
8145
8167
 
8146
8168
  const handleLocationsMouseDown = event => {
@@ -8157,8 +8179,8 @@ const handleLocationsMouseDown = event => {
8157
8179
  };
8158
8180
 
8159
8181
  const ViewletLocationsEvents = {
8160
- __proto__: null,
8161
- handleLocationsMouseDown
8182
+ __proto__: null,
8183
+ handleLocationsMouseDown
8162
8184
  };
8163
8185
 
8164
8186
  const setFocusedIndex$1 = (state, oldFocusedIndex, newFocusedIndex) => {
@@ -8194,11 +8216,11 @@ const focus$8 = state => {
8194
8216
  };
8195
8217
 
8196
8218
  const ViewletImplementations = {
8197
- __proto__: null,
8198
- Events: ViewletLocationsEvents,
8199
- focus: focus$8,
8200
- handleError: handleError$3,
8201
- setFocusedIndex: setFocusedIndex$1
8219
+ __proto__: null,
8220
+ Events: ViewletLocationsEvents,
8221
+ focus: focus$8,
8222
+ handleError: handleError$3,
8223
+ setFocusedIndex: setFocusedIndex$1
8202
8224
  };
8203
8225
 
8204
8226
  const handleScrollBarPointerDown = event => {
@@ -8206,15 +8228,15 @@ const handleScrollBarPointerDown = event => {
8206
8228
  };
8207
8229
 
8208
8230
  const ViewletInlineDiffEditorEvents = {
8209
- __proto__: null,
8210
- handleScrollBarPointerDown,
8211
- handleWheel: handleWheel$2
8231
+ __proto__: null,
8232
+ handleScrollBarPointerDown,
8233
+ handleWheel: handleWheel$2
8212
8234
  };
8213
8235
 
8214
8236
  const ViewletInlineDiffEditor = {
8215
- __proto__: null,
8216
- Events: ViewletInlineDiffEditorEvents,
8217
- setScrollBar
8237
+ __proto__: null,
8238
+ Events: ViewletInlineDiffEditorEvents,
8239
+ setScrollBar
8218
8240
  };
8219
8241
 
8220
8242
  const handleResizerPointerMove = event => {
@@ -8264,11 +8286,11 @@ const handlePointerDown = event => {
8264
8286
  };
8265
8287
 
8266
8288
  const ViewletkeyBindingsEvents = {
8267
- __proto__: null,
8268
- handlePointerDown,
8269
- handleResizerPointerDown,
8270
- handleResizerPointerMove,
8271
- handleResizerPointerUp
8289
+ __proto__: null,
8290
+ handlePointerDown,
8291
+ handleResizerPointerDown,
8292
+ handleResizerPointerMove,
8293
+ handleResizerPointerUp
8272
8294
  };
8273
8295
 
8274
8296
  const setValue = (state, value) => {
@@ -8292,12 +8314,12 @@ const setColumnWidths = (state, columnWidth1, columnWidth2, columnWidth3) => {
8292
8314
  const Events$3 = ViewletkeyBindingsEvents;
8293
8315
 
8294
8316
  const ViewletKeyBindings = {
8295
- __proto__: null,
8296
- Events: Events$3,
8297
- setColumnWidths,
8298
- setScrollBar,
8299
- setSize,
8300
- setValue
8317
+ __proto__: null,
8318
+ Events: Events$3,
8319
+ setColumnWidths,
8320
+ setScrollBar,
8321
+ setSize,
8322
+ setValue
8301
8323
  };
8302
8324
 
8303
8325
  const getSashId = $Target => {
@@ -8516,10 +8538,10 @@ const setSashes = (state, sashSidebar, sashPanel) => {
8516
8538
  };
8517
8539
 
8518
8540
  const ViewletLayout = {
8519
- __proto__: null,
8520
- attachEvents: attachEvents$3,
8521
- create: create$a,
8522
- setSashes
8541
+ __proto__: null,
8542
+ attachEvents: attachEvents$3,
8543
+ create: create$a,
8544
+ setSashes
8523
8545
  };
8524
8546
 
8525
8547
  const ActivityBar = 'ActivityBar';
@@ -8624,15 +8646,15 @@ const disposeFindWidget = state => {
8624
8646
  const dispose$7 = state => {};
8625
8647
 
8626
8648
  const ViewletOutput = {
8627
- __proto__: null,
8628
- clear: clear$1,
8629
- create: create$9,
8630
- dispose: dispose$7,
8631
- disposeFindWidget,
8632
- focus: focus$7,
8633
- handleError: handleError$2,
8634
- openFindWidget,
8635
- setText
8649
+ __proto__: null,
8650
+ clear: clear$1,
8651
+ create: create$9,
8652
+ dispose: dispose$7,
8653
+ disposeFindWidget,
8654
+ focus: focus$7,
8655
+ handleError: handleError$2,
8656
+ openFindWidget,
8657
+ setText
8636
8658
  };
8637
8659
 
8638
8660
  const handleClickClose = event => {
@@ -8794,26 +8816,26 @@ const setActionsDom$1 = (state, actions, childUid) => {
8794
8816
  };
8795
8817
 
8796
8818
  const ViewletPanel = {
8797
- __proto__: null,
8798
- attachEvents: attachEvents$2,
8799
- create: create$8,
8800
- dispose: dispose$6,
8801
- focus: focus$6,
8802
- setActionsDom: setActionsDom$1,
8803
- setSelectedIndex,
8804
- setTabsDom: setTabsDom$1
8819
+ __proto__: null,
8820
+ attachEvents: attachEvents$2,
8821
+ create: create$8,
8822
+ dispose: dispose$6,
8823
+ focus: focus$6,
8824
+ setActionsDom: setActionsDom$1,
8825
+ setSelectedIndex,
8826
+ setTabsDom: setTabsDom$1
8805
8827
  };
8806
8828
 
8807
8829
  const ViewletReferences = {
8808
- __proto__: null,
8809
- Events: ViewletLocationsEvents,
8810
- focus: focus$8,
8811
- handleError: handleError$3,
8812
- setFocusedIndex: setFocusedIndex$1
8830
+ __proto__: null,
8831
+ Events: ViewletLocationsEvents,
8832
+ focus: focus$8,
8833
+ handleError: handleError$3,
8834
+ setFocusedIndex: setFocusedIndex$1
8813
8835
  };
8814
8836
 
8815
8837
  const ViewletRunAndDebug = {
8816
- __proto__: null
8838
+ __proto__: null
8817
8839
  };
8818
8840
 
8819
8841
  const handleLoadedMetadata = event => {
@@ -8843,9 +8865,9 @@ const setScreenCapture = (state, id) => {
8843
8865
  };
8844
8866
 
8845
8867
  const ViewletScreenCapture = {
8846
- __proto__: null,
8847
- create: create$7,
8848
- setScreenCapture
8868
+ __proto__: null,
8869
+ create: create$7,
8870
+ setScreenCapture
8849
8871
  };
8850
8872
 
8851
8873
  const Sidebar = 'Side Bar';
@@ -8930,13 +8952,13 @@ const focus$5 = async () => {
8930
8952
  };
8931
8953
 
8932
8954
  const ViewletSidebar = {
8933
- __proto__: null,
8934
- attachEvents: attachEvents$1,
8935
- create: create$6,
8936
- dispose: dispose$5,
8937
- focus: focus$5,
8938
- setActionsDom,
8939
- setTitle
8955
+ __proto__: null,
8956
+ attachEvents: attachEvents$1,
8957
+ create: create$6,
8958
+ dispose: dispose$5,
8959
+ focus: focus$5,
8960
+ setActionsDom,
8961
+ setTitle
8940
8962
  };
8941
8963
 
8942
8964
  const pendingSelections = new WeakMap();
@@ -9105,24 +9127,24 @@ const handleClickOpenExternal = () => {
9105
9127
  };
9106
9128
 
9107
9129
  const ViewletSimpleBrowserEvents = {
9108
- __proto__: null,
9109
- handleBlur: handleBlur$1,
9110
- handleClickBackward,
9111
- handleClickForward,
9112
- handleClickOpenExternal,
9113
- handleClickReload,
9114
- handleClickSuggestion,
9115
- handleFocus: handleFocus$1,
9116
- handleInput: handleInput$2
9130
+ __proto__: null,
9131
+ handleBlur: handleBlur$1,
9132
+ handleClickBackward,
9133
+ handleClickForward,
9134
+ handleClickOpenExternal,
9135
+ handleClickReload,
9136
+ handleClickSuggestion,
9137
+ handleFocus: handleFocus$1,
9138
+ handleInput: handleInput$2
9117
9139
  };
9118
9140
 
9119
9141
  const ViewletSimpleBrowser = {
9120
- __proto__: null,
9121
- Events: ViewletSimpleBrowserEvents
9142
+ __proto__: null,
9143
+ Events: ViewletSimpleBrowserEvents
9122
9144
  };
9123
9145
 
9124
9146
  const ViewletSimpleBrowserHistory = {
9125
- __proto__: null
9147
+ __proto__: null
9126
9148
  };
9127
9149
 
9128
9150
  const handleContextMenu$1 = event => {
@@ -9210,14 +9232,14 @@ const handleInput$1 = event => {
9210
9232
  };
9211
9233
 
9212
9234
  const ViewletSourceControlEvents = {
9213
- __proto__: null,
9214
- handleClick: handleClick$3,
9215
- handleContextMenu: handleContextMenu$1,
9216
- handleFocus,
9217
- handleInput: handleInput$1,
9218
- handleMouseOut,
9219
- handleMouseOver,
9220
- handleWheel: handleWheel$2
9235
+ __proto__: null,
9236
+ handleClick: handleClick$3,
9237
+ handleContextMenu: handleContextMenu$1,
9238
+ handleFocus,
9239
+ handleInput: handleInput$1,
9240
+ handleMouseOut,
9241
+ handleMouseOver,
9242
+ handleWheel: handleWheel$2
9221
9243
  };
9222
9244
 
9223
9245
  const focus$4 = state => {
@@ -9228,9 +9250,9 @@ const focus$4 = state => {
9228
9250
  };
9229
9251
 
9230
9252
  const ViewletSourceControl = {
9231
- __proto__: null,
9232
- Events: ViewletSourceControlEvents,
9233
- focus: focus$4
9253
+ __proto__: null,
9254
+ Events: ViewletSourceControlEvents,
9255
+ focus: focus$4
9234
9256
  };
9235
9257
 
9236
9258
  const handleClick$2 = event => {
@@ -9243,8 +9265,8 @@ const handleClick$2 = event => {
9243
9265
  };
9244
9266
 
9245
9267
  const ViewletStatusBarEvents = {
9246
- __proto__: null,
9247
- handleClick: handleClick$2
9268
+ __proto__: null,
9269
+ handleClick: handleClick$2
9248
9270
  };
9249
9271
 
9250
9272
  const create$5 = () => {
@@ -9275,10 +9297,10 @@ const focus$3 = state => {
9275
9297
  };
9276
9298
 
9277
9299
  const ViewletStatusBar = {
9278
- __proto__: null,
9279
- create: create$5,
9280
- focus: focus$3,
9281
- setDom: setDom$2
9300
+ __proto__: null,
9301
+ create: create$5,
9302
+ focus: focus$3,
9303
+ setDom: setDom$2
9282
9304
  };
9283
9305
 
9284
9306
  const handleClick$1 = event => {
@@ -9287,15 +9309,15 @@ const handleClick$1 = event => {
9287
9309
  };
9288
9310
 
9289
9311
  const ViewletStorageEvents = {
9290
- __proto__: null,
9291
- handleClick: handleClick$1
9312
+ __proto__: null,
9313
+ handleClick: handleClick$1
9292
9314
  };
9293
9315
 
9294
9316
  const Events$2 = ViewletStorageEvents;
9295
9317
 
9296
9318
  const ViewletStorage = {
9297
- __proto__: null,
9298
- Events: Events$2
9319
+ __proto__: null,
9320
+ Events: Events$2
9299
9321
  };
9300
9322
 
9301
9323
  const handleClickTab = event => {
@@ -9328,9 +9350,9 @@ const handleMouseDown$1 = event => {
9328
9350
  };
9329
9351
 
9330
9352
  const ViewletTerminalsEvents = {
9331
- __proto__: null,
9332
- handleClickTab,
9333
- handleMouseDown: handleMouseDown$1
9353
+ __proto__: null,
9354
+ handleClickTab,
9355
+ handleMouseDown: handleMouseDown$1
9334
9356
  };
9335
9357
 
9336
9358
  const Events$1 = ViewletTerminalsEvents;
@@ -9360,10 +9382,10 @@ const setTabsDom = (state, dom) => {
9360
9382
  };
9361
9383
 
9362
9384
  const ViewletTerminals = {
9363
- __proto__: null,
9364
- Events: Events$1,
9365
- create: create$4,
9366
- setTabsDom
9385
+ __proto__: null,
9386
+ Events: Events$1,
9387
+ create: create$4,
9388
+ setTabsDom
9367
9389
  };
9368
9390
 
9369
9391
  const isInsideTitleBarMenu$1 = $Element => {
@@ -9460,14 +9482,14 @@ const handleFocusIn$1 = event => {
9460
9482
  };
9461
9483
 
9462
9484
  const ViewletTitleBarMenuBarEvents = {
9463
- __proto__: null,
9464
- handleClick,
9465
- handleFocusIn: handleFocusIn$1,
9466
- handleFocusOut,
9467
- handleMenuClick,
9468
- handleMenuMouseOver,
9469
- handlePointerOut,
9470
- handlePointerOver
9485
+ __proto__: null,
9486
+ handleClick,
9487
+ handleFocusIn: handleFocusIn$1,
9488
+ handleFocusOut,
9489
+ handleMenuClick,
9490
+ handleMenuMouseOver,
9491
+ handlePointerOut,
9492
+ handlePointerOver
9471
9493
  };
9472
9494
 
9473
9495
  const activeId = 'TitleBarEntryActive';
@@ -9744,14 +9766,14 @@ const setMenus = (state, changes, uid) => {
9744
9766
  };
9745
9767
 
9746
9768
  const ViewletTitleBarMenuBar = {
9747
- __proto__: null,
9748
- Events: ViewletTitleBarMenuBarEvents,
9749
- closeMenu,
9750
- dispose: dispose$4,
9751
- focus: focus$2,
9752
- openMenu,
9753
- setFocusedIndex,
9754
- setMenus
9769
+ __proto__: null,
9770
+ Events: ViewletTitleBarMenuBarEvents,
9771
+ closeMenu,
9772
+ dispose: dispose$4,
9773
+ focus: focus$2,
9774
+ openMenu,
9775
+ setFocusedIndex,
9776
+ setMenus
9755
9777
  };
9756
9778
 
9757
9779
  const activeClassName = 'TitleBarActive';
@@ -9763,15 +9785,15 @@ const setFocused = (state, isFocused) => {
9763
9785
  };
9764
9786
 
9765
9787
  const ViewletTitleBar = {
9766
- __proto__: null,
9767
- Events: ViewletTitleBarMenuBarEvents,
9768
- closeMenu,
9769
- dispose: dispose$4,
9770
- focus: focus$2,
9771
- openMenu,
9772
- setFocused,
9773
- setFocusedIndex,
9774
- setMenus
9788
+ __proto__: null,
9789
+ Events: ViewletTitleBarMenuBarEvents,
9790
+ closeMenu,
9791
+ dispose: dispose$4,
9792
+ focus: focus$2,
9793
+ openMenu,
9794
+ setFocused,
9795
+ setFocusedIndex,
9796
+ setMenus
9775
9797
  };
9776
9798
 
9777
9799
  /**
@@ -9787,21 +9809,21 @@ const handleTitleBarButtonsClick = event => {
9787
9809
  const returnValue$1 = true;
9788
9810
 
9789
9811
  const ViewletTitleBarButtonsEvents = {
9790
- __proto__: null,
9791
- handleTitleBarButtonsClick,
9792
- returnValue: returnValue$1
9812
+ __proto__: null,
9813
+ handleTitleBarButtonsClick,
9814
+ returnValue: returnValue$1
9793
9815
  };
9794
9816
 
9795
9817
  const ViewletTitleBarButtons = {
9796
- __proto__: null,
9797
- Events: ViewletTitleBarButtonsEvents
9818
+ __proto__: null,
9819
+ Events: ViewletTitleBarButtonsEvents
9798
9820
  };
9799
9821
 
9800
9822
  const Events = {};
9801
9823
 
9802
9824
  const ViewletTitleBarIcon = {
9803
- __proto__: null,
9804
- Events
9825
+ __proto__: null,
9826
+ Events
9805
9827
  };
9806
9828
 
9807
9829
  const create$3 = () => {
@@ -9819,9 +9841,9 @@ const setDom$1 = (state, dom) => {
9819
9841
  };
9820
9842
 
9821
9843
  const ViewletTitleBarTitle = {
9822
- __proto__: null,
9823
- create: create$3,
9824
- setDom: setDom$1
9844
+ __proto__: null,
9845
+ create: create$3,
9846
+ setDom: setDom$1
9825
9847
  };
9826
9848
 
9827
9849
  const handleVideoError$1 = (code, message) => {
@@ -9843,13 +9865,13 @@ const handleVideoError = event => {
9843
9865
  };
9844
9866
 
9845
9867
  const ViewletVideoEvents = {
9846
- __proto__: null,
9847
- handleVideoError
9868
+ __proto__: null,
9869
+ handleVideoError
9848
9870
  };
9849
9871
 
9850
9872
  const ViewletVideo = {
9851
- __proto__: null,
9852
- Events: ViewletVideoEvents
9873
+ __proto__: null,
9874
+ Events: ViewletVideoEvents
9853
9875
  };
9854
9876
 
9855
9877
  const handleClickAt = event => {
@@ -9874,11 +9896,11 @@ const handleContextMenu = event => {
9874
9896
  const returnValue = true;
9875
9897
 
9876
9898
  const ViewletWebViewEvents = {
9877
- __proto__: null,
9878
- handleClickAt,
9879
- handleContextMenu,
9880
- handleLoad,
9881
- returnValue
9899
+ __proto__: null,
9900
+ handleClickAt,
9901
+ handleContextMenu,
9902
+ handleLoad,
9903
+ returnValue
9882
9904
  };
9883
9905
 
9884
9906
  // TODO could use browser view when running in electron
@@ -9934,11 +9956,11 @@ const setPosition = (state, id, x, y, width, height) => {
9934
9956
  };
9935
9957
 
9936
9958
  const ViewletWebView = {
9937
- __proto__: null,
9938
- Events: ViewletWebViewEvents,
9939
- setIframe,
9940
- setPort: setPort$1,
9941
- setPosition
9959
+ __proto__: null,
9960
+ Events: ViewletWebViewEvents,
9961
+ setIframe,
9962
+ setPort: setPort$1,
9963
+ setPosition
9942
9964
  };
9943
9965
 
9944
9966
  const moduleLoaders = {
@@ -11762,10 +11784,10 @@ const handleInput = event => {
11762
11784
  };
11763
11785
 
11764
11786
  const ViewletEditorRenameEvents = {
11765
- __proto__: null,
11766
- handleBlur,
11767
- handleFocusIn,
11768
- handleInput
11787
+ __proto__: null,
11788
+ handleBlur,
11789
+ handleFocusIn,
11790
+ handleInput
11769
11791
  };
11770
11792
 
11771
11793
  const setBounds = (state, x, y, width, height) => {
@@ -11786,11 +11808,11 @@ const dispose$1 = state => {
11786
11808
  };
11787
11809
 
11788
11810
  const ViewletEditorRename = {
11789
- __proto__: null,
11790
- Events: ViewletEditorRenameEvents,
11791
- appendWidget,
11792
- dispose: dispose$1,
11793
- setBounds
11811
+ __proto__: null,
11812
+ Events: ViewletEditorRenameEvents,
11813
+ appendWidget,
11814
+ dispose: dispose$1,
11815
+ setBounds
11794
11816
  };
11795
11817
 
11796
11818
  const handleContentSecurityPolicyViolation = event => {
@@ -12022,14 +12044,14 @@ const dispose = state => {
12022
12044
  };
12023
12045
 
12024
12046
  const ViewletTerminal2 = {
12025
- __proto__: null,
12026
- attachEvents,
12027
- create,
12028
- dispose,
12029
- focus,
12030
- handleMouseDown,
12031
- setTerminal,
12032
- write
12047
+ __proto__: null,
12048
+ attachEvents,
12049
+ create,
12050
+ dispose,
12051
+ focus,
12052
+ handleMouseDown,
12053
+ setTerminal,
12054
+ write
12033
12055
  };
12034
12056
 
12035
12057
  // based on https://github.com/microsoft/vscode/blob/5f87632829dc3ac80203e2377727935184399431/src/vs/base/browser/ui/aria/aria.ts (License MIT)
@@ -12105,8 +12127,8 @@ const alert$1 = message => {
12105
12127
  };
12106
12128
 
12107
12129
  const AriaAlert = {
12108
- __proto__: null,
12109
- alert: alert$1
12130
+ __proto__: null,
12131
+ alert: alert$1
12110
12132
  };
12111
12133
 
12112
12134
  export { invoke$1 as executeCommand, ready };