html-reporter 11.18.0 → 12.0.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.
Files changed (42) hide show
  1. package/build/lib/cli/commands/gui.js +1 -1
  2. package/build/lib/cli/commands/gui.js.map +1 -1
  3. package/build/lib/config/index.js +1 -1
  4. package/build/lib/config/index.js.map +1 -1
  5. package/build/lib/constants/defaults.js +3 -2
  6. package/build/lib/constants/defaults.js.map +1 -1
  7. package/build/lib/gui/server.js +2 -2
  8. package/build/lib/gui/server.js.map +1 -1
  9. package/build/lib/server-utils.js +2 -1
  10. package/build/lib/server-utils.js.map +1 -1
  11. package/build/lib/static/180.min.js +1 -0
  12. package/build/lib/static/394.min.js +1 -1
  13. package/build/lib/static/567.min.js +1 -1
  14. package/build/lib/static/632.min.js +1 -1
  15. package/build/lib/static/{81.min.css → 646.min.css} +1 -1
  16. package/build/lib/static/646.min.js +1 -0
  17. package/build/lib/static/657.min.js +1 -0
  18. package/build/lib/static/899.min.js +1 -0
  19. package/build/lib/static/gui.html +19 -28
  20. package/build/lib/static/gui.min.css +1 -1
  21. package/build/lib/static/gui.min.js +1 -1
  22. package/build/lib/static/index.html +19 -28
  23. package/build/lib/static/old-ui-gui.html +29 -0
  24. package/build/lib/static/old-ui-report.html +29 -0
  25. package/build/lib/static/oldGui.min.css +1 -0
  26. package/build/lib/static/oldGui.min.js +1 -0
  27. package/build/lib/static/oldReport.min.js +1 -0
  28. package/build/lib/static/report.min.js +1 -1
  29. package/build/lib/static/search-worker.min.js +1 -1
  30. package/build/package.json +1 -1
  31. package/package.json +1 -1
  32. package/build/lib/static/33.min.js +0 -1
  33. package/build/lib/static/81.min.js +0 -1
  34. package/build/lib/static/842.min.js +0 -1
  35. package/build/lib/static/884.min.js +0 -1
  36. package/build/lib/static/new-ui-gui.html +0 -38
  37. package/build/lib/static/new-ui-report.html +0 -38
  38. package/build/lib/static/newGui.min.css +0 -1
  39. package/build/lib/static/newGui.min.js +0 -1
  40. package/build/lib/static/newReport.min.js +0 -1
  41. /package/build/lib/static/{33.min.css → 657.min.css} +0 -0
  42. /package/build/lib/static/{report.min.css → oldReport.min.css} +0 -0
@@ -1,38 +0,0 @@
1
- <!doctype html><html><head><title>GUI report (New UI)</title><meta charset="utf-8"><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/><link id="dynamic-favicon" rel="icon" type="image/png" href="icons/favicon.png"/><link rel="preload" href="databaseUrls.json" as="fetch" crossorigin="anonymous"/><link rel="preload" href="sql-wasm.wasm" as="fetch" crossorigin="anonymous"/><link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&amp;family=Roboto+Mono:ital,wght@0,100..700;1,100..700&amp;display=swap" rel="stylesheet"><script defer="defer" src="sql-wasm.js"></script><script defer="defer" src="826.min.js"></script><script defer="defer" src="361.min.js"></script><script defer="defer" src="81.min.js"></script><script defer="defer" src="250.min.js"></script><script defer="defer" src="842.min.js"></script><script defer="defer" src="33.min.js"></script><script defer="defer" src="632.min.js"></script><script defer="defer" src="newGui.min.js"></script><link href="81.min.css" rel="stylesheet"><link href="33.min.css" rel="stylesheet"><link href="632.min.css" rel="stylesheet"><link href="newGui.min.css" rel="stylesheet"></head><script type="module">let uiMode;
2
- try {
3
- uiMode = JSON.parse(localStorage.getItem('html-reporter:ui-mode'));
4
- } catch { /* */ }
5
-
6
- function performRedirect(mode) {
7
- if (mode === 'old' && /\/new-ui(?:\.html)?$/.test(window.location.pathname)) {
8
- window.location.pathname = window.location.pathname.replace(/\/new-ui(\.html)?$/, (match, ending) => ending ? '/index.html' : '/');
9
- } else if (mode === 'new' && !/\/new-ui(?:\.html)?$/.test(window.location.pathname)) {
10
- window.location.pathname = window.location.pathname.replace(/\/(index\.html)?$/, (match, ending) => ending ? '/new-ui.html' : '/new-ui');
11
- }
12
- }
13
-
14
- async function getConfigData() {
15
- const staticRequest = fetch('data.js')
16
- .then(r => r.text())
17
- .then(jsCode => {
18
- const func = new Function(jsCode + '; return typeof data !== "undefined" ? data : null;');
19
- const dataFromStaticFile = func();
20
- return dataFromStaticFile?.config?.uiMode;
21
- });
22
-
23
- const guiRequest = fetch('/ui-mode')
24
- .then(r => r.json())
25
- .then(configData => configData.uiMode);
26
-
27
- return Promise.any([staticRequest, guiRequest]);
28
- }
29
-
30
- if (!uiMode) {
31
- try {
32
- uiMode = await getConfigData();
33
- } catch { /* */ }
34
- }
35
-
36
- if (typeof uiMode === 'string') {
37
- performRedirect(uiMode);
38
- }</script><body class="report"><div id="app"></div></body></html>
@@ -1,38 +0,0 @@
1
- <!doctype html><html><head><title>HTML report (New UI)</title><meta charset="utf-8"><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/><link id="dynamic-favicon" rel="icon" type="image/png" href="icons/favicon.png"/><link rel="preload" href="databaseUrls.json" as="fetch" crossorigin="anonymous"/><link rel="preload" href="sql-wasm.wasm" as="fetch" crossorigin="anonymous"/><link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&amp;family=Roboto+Mono:ital,wght@0,100..700;1,100..700&amp;display=swap" rel="stylesheet"><script defer="defer" src="data.js"></script><script defer="defer" src="sql-wasm.js"></script><script defer="defer" src="826.min.js"></script><script defer="defer" src="361.min.js"></script><script defer="defer" src="81.min.js"></script><script defer="defer" src="250.min.js"></script><script defer="defer" src="842.min.js"></script><script defer="defer" src="33.min.js"></script><script defer="defer" src="567.min.js"></script><script defer="defer" src="632.min.js"></script><script defer="defer" src="newReport.min.js"></script><link href="81.min.css" rel="stylesheet"><link href="33.min.css" rel="stylesheet"><link href="632.min.css" rel="stylesheet"></head><script type="module">let uiMode;
2
- try {
3
- uiMode = JSON.parse(localStorage.getItem('html-reporter:ui-mode'));
4
- } catch { /* */ }
5
-
6
- function performRedirect(mode) {
7
- if (mode === 'old' && /\/new-ui(?:\.html)?$/.test(window.location.pathname)) {
8
- window.location.pathname = window.location.pathname.replace(/\/new-ui(\.html)?$/, (match, ending) => ending ? '/index.html' : '/');
9
- } else if (mode === 'new' && !/\/new-ui(?:\.html)?$/.test(window.location.pathname)) {
10
- window.location.pathname = window.location.pathname.replace(/\/(index\.html)?$/, (match, ending) => ending ? '/new-ui.html' : '/new-ui');
11
- }
12
- }
13
-
14
- async function getConfigData() {
15
- const staticRequest = fetch('data.js')
16
- .then(r => r.text())
17
- .then(jsCode => {
18
- const func = new Function(jsCode + '; return typeof data !== "undefined" ? data : null;');
19
- const dataFromStaticFile = func();
20
- return dataFromStaticFile?.config?.uiMode;
21
- });
22
-
23
- const guiRequest = fetch('/ui-mode')
24
- .then(r => r.json())
25
- .then(configData => configData.uiMode);
26
-
27
- return Promise.any([staticRequest, guiRequest]);
28
- }
29
-
30
- if (!uiMode) {
31
- try {
32
- uiMode = await getConfigData();
33
- } catch { /* */ }
34
- }
35
-
36
- if (typeof uiMode === 'string') {
37
- performRedirect(uiMode);
38
- }</script><body class="report"><div id="app"></div></body></html>
@@ -1 +0,0 @@
1
- @keyframes blink{0%{opacity:1}to{opacity:.3}}.custom-icon_retry:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M13.509 0h-1.28a.324.324 0 0 0-.324.34l.107 2.234a6.68 6.68 0 0 0-5.1-2.358C3.222.216.213 3.227.216 6.917a6.696 6.696 0 0 0 11.183 4.965.325.325 0 0 0 .013-.47l-.917-.917a.323.323 0 0 0-.443-.015 4.73 4.73 0 0 1-3.14 1.184A4.75 4.75 0 0 1 2.16 6.912 4.75 4.75 0 0 1 6.912 2.16c1.644 0 3.092.833 3.945 2.1l-2.742-.13a.324.324 0 0 0-.339.323v1.28c0 .179.145.324.324.324h5.409a.324.324 0 0 0 .324-.324V.324A.324.324 0 0 0 13.509 0'/%3E%3C/svg%3E")}.section_status_success>.section__title .bullet_type-simple:before,.state-title_success:before{color:var(--report-color-success)}.section_status_error>.section__title .bullet_type-simple:before,.section_status_fail>.section__title .bullet_type-simple:before,.state-title_error:before,.state-title_fail:before{color:var(--report-color-fail)}.section_status_skipped>.section__title .bullet_type-simple:before,.state-title_skipped:before{color:#ccc}.section_status_idle>.section__title .ui.checkbox label:after,.section_status_idle>.section__title .ui.checkbox label:before,.tests-group>.tests-group__title .ui.checkbox label:after,.tests-group>.tests-group__title .ui.checkbox label:before{border-color:#000!important;color:#000!important}.section_status_queued>.section__title .bullet_type-simple:before .section_status_queued>.section__title .ui.checkbox label:before,.section_status_queued>.section__title .ui.checkbox label:after{border-color:#e7d700!important;color:#e7d700!important}.section_status_running>.section__title .bullet_type-simple:before,.section_status_running>.section__title .ui.checkbox label:after,.section_status_running>.section__title .ui.checkbox label:before{-webkit-animation:blink .5s linear 0s infinite alternate;animation:blink .5s linear 0s infinite alternate;border-color:#e7d700!important;color:#e7d700!important}.section_status_updated>.section__title,.section_status_updated>.section__title .bullet_type-simple:before,.section_status_updated>.section__title .ui.checkbox label:after,.section_status_updated>.section__title .ui.checkbox label:before{border-color:var(--report-color-success)!important;color:var(--report-color-success)!important}.report_show-only-errors .section_status_updated{display:none}.controls>.controls__item:not(:only-child){margin-bottom:5px}.controls>.controls__item:only-child{margin-bottom:10px}.controls__item{display:inline-block;margin-right:10px;vertical-align:top}.state-controls{display:flex;margin-top:10px;position:sticky;top:0;z-index:10}.button_type_suite-controls{margin-right:10px}.controls__item>.button_type_suite-controls{margin-right:0}.button_blink{-webkit-animation:blink .5s linear 0s infinite alternate;animation:blink .5s linear 0s infinite alternate}.ui.modal>.content{width:auto!important}.ui.button,.ui.buttons,.ui.buttons .button{background:rgba(224,225,226,.36);font-size:11px;font-weight:700}.ui.buttons .button{height:11px;line-height:10px}.ui.buttons{border-radius:var(--button-border-radius)}.ui.buttons:after{font-size:0}.ui.button:active,.ui.button:hover{background:rgba(202,203,205,.6)}.ui.active.button{background:#ffde5a;font-weight:400}.ui.active.button:active,.ui.active.button:hover{background:rgba(255,222,90,.6)}.custom-gui{display:flex;flex-direction:row;flex-wrap:wrap;margin-bottom:15px}.custom-gui_section-controls{margin-right:10px}.tab-switcher{margin-bottom:0}
@@ -1 +0,0 @@
1
- (()=>{"use strict";var t={42694(t,e,r){r.d(e,{Az:()=>z,DH:()=>V,Df:()=>m,Du:()=>I,GX:()=>J,K2:()=>D,Oo:()=>N,Ps:()=>R,RQ:()=>E,Tj:()=>k,Tl:()=>O,Wo:()=>L,YJ:()=>S,ZQ:()=>H,ar:()=>w,bj:()=>j,eR:()=>A,f2:()=>K,fh:()=>x,gM:()=>B,gU:()=>G,i:()=>M,j0:()=>$,qq:()=>P,t2:()=>q,tX:()=>T,vF:()=>g,vG:()=>F,wD:()=>U,yf:()=>Y});var n=r(86330),s=r(24586),a=r(90689),i=r(75799),o=r.n(i),u=r(88110),c=r.n(u),l=r(45250),f=r(84209),d=r(32779),p=r(81995);function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){(0,s.A)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function y(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return b(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){o=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var m=function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t.charCodeAt(r)%256);return c().hashBinary(e).substring(0,7)},_=[f.W2,f.I$,f.ff,f.vR,f.hh,f.fd,f.wF,f.qO,f.nY,f.$O],g=(0,l.pick)(console,["log","warn","error"]),w=function(t){return t===f.qO},I=function(t){return t===f.vR},O=function(t){return t===f.nY},T=function(t){return t===f.ff},k=function(t){return t===f.$O},A=function(t){return t===f.wF},E=function(t){return t===f.hh},R=function(t){return t===f.fd},S=function(t){if(!t.length)return f.qO;for(var e=new Set(t),r=0,n=_;r<n.length;r++){var s=n[r];if(e.has(s))return s}return console.error("Unknown statuses: "+JSON.stringify(t)),null},j=function(t,e){if((0,l.isEmpty)(e))return null!=t?t:"";try{var r=new URL(null!=t?t:"",e),n=new URL(e);r.host=n.host,r.protocol=n.protocol,r.port=n.port,r.username=n.username,r.password=n.password;var s,i=y(n.searchParams);try{for(i.s();!(s=i.n()).done;){var o=(0,a.A)(s.value,2),u=o[0],c=o[1];r.searchParams.append(u,c)}}catch(t){i.e(t)}finally{i.f()}return r.href}catch(r){return t||e||""}},P=function(t){try{var e=new URL(t);return e.pathname+e.search}catch(e){return t}},D=function(t){return(null==t?void 0:t.name)===p.U.ASSERT_VIEW},x=function(t){return(null==t?void 0:t.name)===p.U.IMAGE_DIFF},B=function(t){return(null==t?void 0:t.name)===p.U.NO_REF_IMAGE},N=function(t){return(null==t?void 0:t.name)===p.U.INVALID_REF_IMAGE},U=function(t){return D(t)||x(t)||B(t)},L=function(t){return!B(t)&&!x(t)&&!D(t)},C=["Tests were stopped by the user","NoRefImageError","Too many requests for session creation"],F=function(t){var e;if(t)return v(v({},(0,l.pick)(t,["name","message","stack","stateName","snippet"])),{},{stack:(e=t.stack,e&&C.some(function(t){return e.includes(t)})?e.split("\n")[0]:e)})},M=function(t){var e;if(!(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).some(function(t){return t.stateName&&(T(t.status)||I(t.status)||B(t)||x(t))})}(t.imagesInfo)||k(t.status)||t.error&&L(t.error)))return f.qO;var r,n=(null!==(e=t.imagesInfo)&&void 0!==e?e:[]).map(function(t){var e;return null!==(e=t.error)&&void 0!==e?e:{}});return n.some(function(t){return x(t)})||(void 0===(r={assertViewResults:n}.assertViewResults)?[]:r).some(function(t){return B(t)})?f.vR:(0,l.isEmpty)(t.error)?t.status:f.ff},G=function(t){if("string"!=typeof t)return!1;try{var e=new URL(t);return Boolean(e.host&&e.protocol)}catch(t){return!1}},q=function(){var t=(0,n.A)(o().mark(function t(e,n){var s,a,i,u,c,l;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(826),r.e(819)]).then(()=>r(92819));case 2:return s=t.sent,a=s.default,t.prev=4,t.next=7,a.get(e,n);case 7:return i=t.sent,u=i.data,c=i.status,t.abrupt("return",{data:u,status:c});case 13:return t.prev=13,t.t0=t.catch(4),g.warn("Error while fetching ".concat(e),t.t0),l=t.t0.response?t.t0.response.status:"unknown",t.abrupt("return",{data:null,status:l,error:t.t0});case 18:case"end":return t.stop()}},t,null,[[4,13]])}));return function(e,r){return t.apply(this,arguments)}}(),J=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,r=new URL(e).search;return t.map(function(t){try{var n=new URL(t,e);return function(t){try{return new URL(t),!1}catch(t){return!0}}(t)&&!n.search&&(n.search=r),n.href}catch(r){return g.warn("Can not normalize url '".concat(t," for base url '").concat(e,"'"),r),t}})},V=function(t){return Number(t)===d.kK},$=function(t){return Number(t)===d.Oi},H=function(t){return V(t)?d.X:d.kK};var K=function(t){return t.testPath.concat(t.browserId,t.attempt.toString()).join(" ")},Y=function(t){for(var e=0,r=t.length;e<t.length&&!t[e];)e++;for(;r>0&&!t[r-1];)r--;return t.slice(e,r)},W=function(t){var e=t.name;if(!e&&t.stack){var r=t.stack.indexOf(":");e=-1!==r?t.stack.slice(0,r):t.stack.slice(0,t.stack.indexOf("\n"))}return e||(e="Error"),t.message?"".concat(e,": ").concat(t.message):e},X=function(t){var e=W(t)+"\n",r=t.stack.indexOf(e);if(-1!==r)return t.stack.slice(r+e.length);var n=t.toString?t.toString()+"\n":"",s=t.stack.indexOf(n);if(n&&-1!==s)return t.stack.slice(s+n.length);var a=t.stack.indexOf(t.message),i=t.stack.indexOf("\n",a+t.message.length);return t.stack.slice(i+1)},z=function(t){if(!t||!t.snippet)return t;var e=function(t){var e=["name","message","stack"],r=new Error(t.message);e.forEach(function(t){delete r[t]});var n=Object.getOwnPropertyNames(t);return e.concat(n).forEach(function(e){r[e]=t[e]}),r}(t);if(delete e.snippet,!t.stack)return e.stack=[W(t),t.snippet].join("\n"),e;return e.stack=[W(t),t.snippet,""+X(t)+""].join("\n"),e}},72221(t,e,r){r.d(e,{$V:()=>b,ML:()=>_,Op:()=>w,Xm:()=>h,hB:()=>v,n0:()=>g});var n=r(83705),s=r(24586),a=r(86330),i=r(75799),o=r.n(i),u=r(45250),c=r(54061),l=r(42694),f=r(12e3);function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){(0,s.A)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function h(t,e){var r=function(){var t=(0,a.A)(o().mark(function t(r){var n,s,a,i;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n={responseType:"arraybuffer"},"function"==typeof e&&(n.onDownloadProgress=function(t){e(r,t.loaded/t.total)}),t.next=4,(0,l.t2)(r,n);case 4:return s=t.sent,a=s.data,i=s.status,t.abrupt("return",{url:r,status:i,data:a});case 8:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}();return(0,c.HI)(t,{loadDbJsonUrl:function(t){return(0,l.t2)(t)},prepareUrls:function(t,e){return(0,l.GX)(t,e)},formatData:function(t){return{url:t,status:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unknown",data:null}},loadDbUrl:r})}function v(t){return y.apply(this,arguments)}function y(){return(y=(0,a.A)(o().mark(function t(e){var r,s,a,i,u,l;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,window.initSqlJs();case 2:if(r=t.sent,s=e.map(function(t){return new Uint8Array(t)}),0!==(a=s.map(function(t){return new r.Database(t)})).length){t.next=9;break}return t.abrupt("return",null);case 9:if(1!==a.length){t.next=11;break}return t.abrupt("return",a[0]);case 11:return i=s.reduce(function(t,e){return t+e.length},0),u=new r.Database(void 0,i),l=a.map(function(t){return t.filename}),(0,c.KP)({db:u,dbPaths:l,getExistingTables:function(t){for(var e=[];t.step();)e.push.apply(e,(0,n.A)(t.get()));return e}}),a.forEach(function(t){return t.close()}),t.abrupt("return",u);case 17:case"end":return t.stop()}},t)}))).apply(this,arguments)}function b(t){return m.apply(this,arguments)}function m(){return(m=(0,a.A)(o().mark(function t(e){var r,n,s,a;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=new URL(e),t.next=3,(0,l.t2)(r.href,{responseType:"arraybuffer"});case 3:return n=t.sent,s=n.data,t.next=7,window.initSqlJs();case 7:return a=t.sent,t.abrupt("return",new a.Database(new Uint8Array(s)));case 9:case"end":return t.stop()}},t)}))).apply(this,arguments)}function _(){return new URL(f.Kv,window.location.href)}function g(t){var e=function(t,e){var r=t.exec((0,c.KE)(e))[0];if(!r)return console.warn('Table "'.concat(e,'" is empty')),[];return r}(t,f.Uh);if(!(0,u.isEmpty)(e))return e.values.sort(c.pb)}function w(t){t.close()}p(p({},c.default),{},{fetchDataFromDatabases:h,mergeDatabases:v,connectToDatabase:b,getMainDatabaseUrl:_,getSuitesTableRows:g,closeDatabase:w})},34567(t,e,r){r.d(e,{V:()=>D});var n=r(24586),s=r(55152),a=r(30414),i=r(29296),o=r(95309),u=r(72715),c=r(45250),l=r.n(c),f=r(42694),d=r(84209);function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach(function(e){(0,n.A)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var v=function(){function t(e){(0,s.A)(this,t),this._options=e}return(0,a.A)(t,[{key:"transform",value:function(t){var e,r,n,s,a,i=(0,f.bj)(t.url,this._options.baseHost),o=(null!==(e=t.imagesInfo)&&void 0!==e?e:[]).map(function(t){return l().isObject(t)&&"error"in t&&t.error?h(h({},t),{},{error:(0,f.vG)(t.error)}):t}),u=l().merge(l().cloneDeep(t.meta),{url:null!==(r=null!==(n=null===(s=t.meta)||void 0===s?void 0:s.url)&&void 0!==n?n:i)&&void 0!==r?r:"",file:t.file,sessionId:t.sessionId}),c=l().omitBy(u,l().isEmpty);return{suitePath:t.testPath,suiteName:l().last(t.testPath),name:t.browserId,suiteUrl:i,metaInfo:c,history:t.history,description:t.description,error:(0,f.vG)(t.error),skipReason:t.skipReason,imagesInfo:o,screenshot:Boolean(t.screenshot),multipleTabs:t.multipleTabs,status:t.status,timestamp:null!==(a=t.timestamp)&&void 0!==a?a:Date.now(),duration:t.duration,attachments:t.attachments}}}]),t}();function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function b(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach(function(e){(0,n.A)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var m=function(){function t(e){(0,s.A)(this,t),this._transformer=new v(e)}return(0,a.A)(t,[{key:"transform",value:function(t){var e=this._transformer.transform(t);return b(b({},l().omit(e,"imagesInfo")),{},{attempt:t.attempt,errorDetails:t.errorDetails})}}]),t}();function _(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return g(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){o=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach(function(e){(0,n.A)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var O=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.A)(this,t),this._transformer=new m(e),this._tree={suites:{byId:{},byHash:{},allIds:[],allRootIds:[]},browsers:{byId:{},allIds:[]},results:{byId:{},allIds:[]},images:{byId:{},allIds:[]}}}return(0,a.A)(t,[{key:"tree",get:function(){return this._tree}},{key:"sortTree",value:function(){var t=this;this._tree.suites.allRootIds.sort().forEach(function e(r){var n=t._tree.suites.byId[r];n.suiteIds&&n.suiteIds.sort().forEach(e),n.browserIds&&n.browserIds.sort()})}},{key:"addTestResult",value:function(t){var e=this,r=t.testPath,n=t.browserId,s=t.attempt,a=t.imagesInfo,i=void 0===a?[]:a,o=t.meta.browserVersion,u=void 0===o?d.yp.UNKNOWN:o,c=this._buildId(r),l=this._buildId(c,n),f=this._buildId(l,s.toString()),p=i.map(function(t,r){return e._buildId(f,t.stateName||"".concat(t.status,"_").concat(r))});this._addSuites(r,l),this._addBrowser({id:l,parentId:c,name:n,version:u},f,s),this._addResult({id:f,parentId:l,result:t},p),this._addImages(p,{imagesInfo:i,parentId:f}),this._setStatusForBranch(r)}},{key:"_buildId",value:function(){return[].concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).join(d.Xr)}},{key:"_addSuites",value:function(t,e){var r=this;t.reduce(function(t,n,s,a){var i=0===s,o=i?[n]:a.slice(0,s+1),u=r._buildId(o);if(!t.byId[u]){var c=i?null:r._buildId(o.slice(0,-1)),l={id:u,hash:(0,f.Df)(u),parentId:c,name:n,suitePath:o,root:i};r._addSuite(l)}var d=r._tree.suites.byId[u];if(s!==a.length-1){var p=r._buildId(u,a[s+1]);d.suiteIds?r._tree.suites.byId[p]&&d.suiteIds.includes(p)||d.suiteIds.push(p):d.suiteIds=[p]}else d.browserIds?r._tree.browsers.byId[e]&&d.browserIds.includes(e)||d.browserIds.push(e):d.browserIds=[e];return t},this._tree.suites)}},{key:"_addSuite",value:function(t){var e=this._tree.suites;e.byId[t.id]=t,e.byHash[t.hash]=t,e.allIds.push(t.id),t.root&&e.allRootIds.push(t.id)}},{key:"_addBrowser",value:function(t,e,r){var n=t.id,s=t.parentId,a=t.name,i=t.version,o=this._tree.browsers;o.byId[n]||(o.byId[n]={id:n,parentId:s,name:a,resultIds:[],version:i},o.allIds.push(n)),this._addResultIdToBrowser(n,e,r)}},{key:"_addResultIdToBrowser",value:function(t,e,r){this._tree.browsers.byId[t].resultIds[r]=e}},{key:"_addResult",value:function(t,e){var r=t.id,n=t.parentId,s=t.result,a=this._transformer.transform(s);this._tree.results.byId[r]||this._tree.results.allIds.push(r),this._tree.results.byId[r]=I(I({attempt:0,id:r,parentId:n},a),{},{imageIds:e})}},{key:"_addImages",value:function(t,e){var r=this,n=e.imagesInfo,s=e.parentId;t.forEach(function(t,e){r._tree.images.byId[t]=I(I({},n[e]),{},{id:t,parentId:s}),r._tree.images.allIds.push(t)})}},{key:"_setStatusForBranch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this._buildId(t);if(e){var r,n=this._tree.suites.byId[e],s=[],a=_(n.browserIds||[]);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i){var o=this._tree.browsers.byId[i].resultIds,u=o[o.length-1],c=this._tree.results.byId[u].status;c&&!s.includes(c)&&s.push(c)}}}catch(t){a.e(t)}finally{a.f()}var l,d=_(n.suiteIds||[]);try{for(d.s();!(l=d.n()).done;){var p=l.value;if(p){var h=this._tree.suites.byId[p].status;h&&!s.includes(h)&&s.push(h)}}}catch(t){d.e(t)}finally{d.f()}if(n.status=(0,f.YJ)(s)||void 0,n.status)for(var v=1;v<t.length;v++){var y=t.slice(0,-v),b=this._buildId(y),m=this._tree.suites.byId[b];if(m.status===n.status)return;if(m.status){this._setStatusForBranch(y);break}m.status=n.status}}}}],[{key:"create",value:function(){return new this(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}}]),t}(),T=function(t){try{return JSON.parse(t)}catch(t){return}},k=function(){function t(e,r){(0,s.A)(this,t),this._testResult=e,this._parsedTestResult={attempt:r}}return(0,a.A)(t,[{key:"assertViewResults",get:function(){return[]}},{key:"attempt",get:function(){return this._parsedTestResult.attempt}},{key:"browserId",get:function(){return this._testResult[d.do.name]}},{key:"description",get:function(){var t;return null!==(t=this._testResult[d.do.description])&&void 0!==t?t:void 0}},{key:"error",get:function(){return l().has(this._parsedTestResult,"error")||(this._parsedTestResult.error=T(this._testResult[d.do.error])),this._parsedTestResult.error}},{key:"errorDetails",get:function(){return null}},{key:"file",get:function(){var t;return l().has(this._parsedTestResult,"meta")||(this._parsedTestResult.meta=T(this._testResult[d.do.metaInfo])),null===(t=this._parsedTestResult.meta)||void 0===t?void 0:t.file}},{key:"fullName",get:function(){return l().has(this._parsedTestResult,"fullName")||(this._parsedTestResult.fullName=this.testPath.join(d.Xr)),this._parsedTestResult.fullName}},{key:"history",get:function(){return l().has(this._parsedTestResult,"history")||(this._parsedTestResult.history=T(this._testResult[d.do.history])),this._parsedTestResult.history}},{key:"id",get:function(){return this.testPath.concat(this.browserId,this.attempt.toString()).join(" ")}},{key:"imageDir",get:function(){return(0,f.f2)(this)}},{key:"imagesInfo",get:function(){return l().has(this._parsedTestResult,"imagesInfo")||(this._parsedTestResult.imagesInfo=T(this._testResult[d.do.imagesInfo])),this._parsedTestResult.imagesInfo}},{key:"meta",get:function(){var t;l().has(this._parsedTestResult,"meta")||(this._parsedTestResult.meta=null!==(t=T(this._testResult[d.do.metaInfo]))&&void 0!==t?t:{});return this._parsedTestResult.meta}},{key:"multipleTabs",get:function(){return Boolean(this._testResult[d.do.multipleTabs])}},{key:"screenshot",get:function(){var t;return null===(t=this.error)||void 0===t?void 0:t.screenshot}},{key:"sessionId",get:function(){var t;return l().has(this._parsedTestResult,"meta")||(this._parsedTestResult.meta=T(this._testResult[d.do.metaInfo])),null===(t=this._parsedTestResult.meta)||void 0===t?void 0:t.sessionId}},{key:"skipReason",get:function(){return this._testResult[d.do.skipReason]}},{key:"state",get:function(){return{name:this.testPath.at(-1)}}},{key:"status",get:function(){return this._testResult[d.do.status]}},{key:"testPath",get:function(){return l().has(this._parsedTestResult,"testPath")||(this._parsedTestResult.testPath=T(this._testResult[d.do.suitePath])),this._parsedTestResult.testPath}},{key:"timestamp",get:function(){return Number(this._testResult[d.do.timestamp])}},{key:"url",get:function(){return this._testResult[d.do.suiteUrl]}},{key:"duration",get:function(){return this._testResult[d.do.duration]}},{key:"attachments",get:function(){return l().has(this._parsedTestResult,"attachments")||(this._parsedTestResult.attachments=T(this._testResult[d.do.attachments])),this._parsedTestResult.attachments}}]),t}();function A(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return E(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){o=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function S(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?R(Object(r),!0).forEach(function(e){(0,n.A)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function j(t){var e=P();return function(){var r,n=(0,u.A)(t);if(e){var s=(0,u.A)(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return(0,o.A)(this,r)}}function P(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(P=function(){return!!t})()}var D=function(t){(0,i.A)(r,t);var e=j(r);function r(t){var n;return(0,s.A)(this,r),(n=e.call(this,t))._stats=S(S({},{total:0,passed:0,failed:0,skipped:0,retries:0}),{},{perBrowser:{}}),n._skips=[],n._failedTestIds={},n._passedTestIds={},n._skippedTestIds={},n}return(0,a.A)(r,[{key:"build",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=new Map,n={},s=A(e);try{for(s.s();!(t=s.n()).done;){var a=t.value,i=JSON.parse(a[d.do.suitePath]),o=a[d.do.name],u=this._buildId(i),c=this._buildId(u,o);r.set(c,r.has(c)?r.get(c)+1:0);var f=r.get(c),p=new k(a,f);x(n,p),this.addTestResult(p),this._calcStats(p,{testId:u,browserName:o})}}catch(t){s.e(t)}finally{s.f()}return this.sortTree(),{tree:this.tree,stats:this._stats,skips:this._skips,browsers:l().map(n,function(t,e){return{id:e,versions:Array.from(t)}})}}},{key:"_addResultIdToBrowser",value:function(t,e){this._tree.browsers.byId[t].resultIds.push(e)}},{key:"_calcStats",value:function(t,e){var r=e.testId,n=e.browserName,s=this._buildId(r,n),a=t.status,i=t.meta.browserVersion||d.yp.UNKNOWN;switch(this._stats.perBrowser[n]||(this._stats.perBrowser[n]={}),this._stats.perBrowser[n][i]||(this._stats.perBrowser[n][i]={total:0,passed:0,failed:0,skipped:0,retries:0}),a){case d.Hs.FAIL:case d.Hs.ERROR:return this._passedTestIds[s]?(delete this._passedTestIds[s],this._failedTestIds[s]=!0,this._stats.passed--,this._stats.failed++,this._stats.retries++,this._stats.perBrowser[n][i].passed--,this._stats.perBrowser[n][i].failed++,void this._stats.perBrowser[n][i].retries++):this._failedTestIds[s]?(this._stats.retries++,void this._stats.perBrowser[n][i].retries++):this._skippedTestIds[s]?(delete this._skippedTestIds[s],this._failedTestIds[s]=!0,this._stats.skipped--,this._stats.failed++,this._stats.retries++,this._stats.perBrowser[n][i].skipped--,this._stats.perBrowser[n][i].failed++,void this._stats.perBrowser[n][i].retries++):(this._failedTestIds[s]=!0,this._stats.failed++,this._stats.total++,this._stats.perBrowser[n][i].failed++,void this._stats.perBrowser[n][i].total++);case d.Hs.SUCCESS:return this._passedTestIds[s]?(this._stats.retries++,void this._stats.perBrowser[n][i].retries++):this._failedTestIds[s]?(delete this._failedTestIds[s],this._passedTestIds[s]=!0,this._stats.failed--,this._stats.passed++,this._stats.retries++,this._stats.perBrowser[n][i].failed--,this._stats.perBrowser[n][i].passed++,void this._stats.perBrowser[n][i].retries++):this._skippedTestIds[s]?(delete this._skippedTestIds[s],this._passedTestIds[s]=!0,this._stats.skipped--,this._stats.passed++,this._stats.retries++,this._stats.perBrowser[n][i].skipped--,this._stats.perBrowser[n][i].passed++,void this._stats.perBrowser[n][i].retries++):(this._passedTestIds[s]=!0,this._stats.passed++,this._stats.total++,this._stats.perBrowser[n][i].passed++,void this._stats.perBrowser[n][i].total++);case d.Hs.SKIPPED:if(this._failedTestIds[s])return delete this._failedTestIds[s],this._skippedTestIds[s]=!0,this._stats.failed--,this._stats.skipped++,this._stats.retries++,this._stats.perBrowser[n][i].failed--,this._stats.perBrowser[n][i].skipped++,this._stats.perBrowser[n][i].retries++,void this._skips.push({browser:n,suite:r,comment:t.skipReason});if(this._passedTestIds[s])return delete this._passedTestIds[s],this._skippedTestIds[s]=!0,this._stats.passed--,this._stats.skipped++,this._stats.retries++,this._stats.perBrowser[n][i].passed--,this._stats.perBrowser[n][i].skipped++,this._stats.perBrowser[n][i].retries++,void this._skips.push({browser:n,suite:r,comment:t.skipReason});if(this._skippedTestIds[s])return this._stats.retries++,void this._stats.perBrowser[n][i].retries++;this._skippedTestIds[s]=!0,this._skips.push({browser:n,suite:r,comment:t.skipReason}),this._stats.skipped++,this._stats.perBrowser[n][i].skipped++,this._stats.total++,this._stats.perBrowser[n][i].total++}}}]),r}(O);function x(t,e){var r=e.browserId;t[r]||(t[r]=new Set);var n=e.meta.browserVersion,s=void 0===n?d.yp.UNKNOWN:n;t[r].add(s)}},17140(t,e,r){r.d(e,{A7:()=>w,Dd:()=>k,Gb:()=>I,JD:()=>f,Ke:()=>R,L$:()=>h,Ml:()=>O,S2:()=>A,U9:()=>g,W$:()=>v,YA:()=>l,YJ:()=>y,_r:()=>E,aY:()=>b,jX:()=>d,mR:()=>p,og:()=>_,r6:()=>T,yT:()=>m});var n=r(86330),s=r(75799),a=r.n(s),i=r(21826),o=r(53490),u=r(72221),c=r(50021),l=function(){return{type:o.A.RETRY_TEST}},f=function(t){return{type:o.A.SET_REPEAT_COUNT,payload:{repeatCount:t}}},d=function(t){return{type:o.A.SET_REPEAT_LEFT,payload:{repeatLeft:t}}},p=function(t){return{type:o.A.SET_RUN_OPTIONS,payload:{runOptions:t}}},h=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).tests,e=void 0===t?[]:t;return function(){var t=(0,n.A)(a().mark(function t(r,n){var s,o;return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s=n(),o=s.repeatCount,r(l()),t.prev=2,t.next=5,i.A.post("/run",{tests:e,repeatCount:o});case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(2),console.error("Error while running tests:",t.t0);case 10:case"end":return t.stop()}},t,null,[[2,7]])}));return function(e,r){return t.apply(this,arguments)}}()},v=function(){return{type:o.A.RUN_ALL_TESTS}},y=function(){return function(){var t=(0,n.A)(a().mark(function t(e){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e(v()),t.next=3,e(h());case 3:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},b=function(){return{type:o.A.RUN_FAILED_TESTS}},m=function(t){var e=t.tests;return function(){var t=(0,n.A)(a().mark(function t(r){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r(b()),t.next=3,r(h({tests:e}));case 3:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},_=function(){return{type:o.A.RETRY_SUITE}},g=function(t){var e=t.tests;return function(){var t=(0,n.A)(a().mark(function t(r){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r(_()),t.next=3,r(h({tests:e}));case 3:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},w=function(t){var e=t.test;return function(){var t=(0,n.A)(a().mark(function t(r){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r(l()),t.next=3,r(h({tests:[e]}));case 3:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},I=function(){return{type:o.A.STOP_TESTS}},O=function(){return function(){var t=(0,n.A)(a().mark(function t(e){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.A.post("/stop");case 3:e(I()),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.error("Error while stopping tests:",t.t0);case 9:case"end":return t.stop()}},t,null,[[0,6]])}));return function(e){return t.apply(this,arguments)}}()},T=function(t){return{type:o.A.TESTS_END,payload:t}},k=function(){return function(){var t=(0,n.A)(a().mark(function t(e){var r,n;return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=(0,u.ML)(),t.next=4,(0,u.$V)(r.href);case 4:n=t.sent,e(T({db:n})),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),e((0,c.op)("testsEnd",t.t0));case 11:case"end":return t.stop()}},t,null,[[0,8]])}));return function(e){return t.apply(this,arguments)}}()},A=function(t){return{type:o.A.SUITE_BEGIN,payload:t}},E=function(t){return{type:o.A.TEST_BEGIN,payload:t}},R=function(t){return{type:o.A.TEST_RESULT,payload:t}}},69298(t,e,r){r.d(e,{$P:()=>T,U3:()=>k,VT:()=>I,d9:()=>g,iE:()=>O});var n,s=r(86330),a=r(83705),i=r(75799),o=r.n(i),u=r(59084),c=r(31146),l=new Set([]),f=new Map([]),d=0,p=new Map,h=new Map,v=function(t){var e;return null===(e=n)||void 0===e?void 0:e.postMessage(t)},y=function(t){var e,r,n=t.data.requestId;"search-result"===t.data.type?(null===(e=p.get(n))||void 0===e||e(t.data.data),p.delete(n)):(null===(r=h.get(n))||void 0===r||r(),h.delete(n))},b=function(){n=void 0,p.forEach(function(t){return t([])}),p.clear(),h.forEach(function(t){return t()}),h.clear()},m=function(t){return new Promise(function(e){h.set(t.requestId,e),v(t)})},_=function(t){var e,r=null===(e=t.attachments)||void 0===e?void 0:e.find(function(t){return t.type===c.w.Tags});return r?r.list.map(function(t){return t.title}):[]},g=function(t){var e=t.results.allIds,s={};if(e.forEach(function(e){var r=t.results.byId[e];s[r.parentId]=_(r)}),"undefined"!=typeof Worker){var a=n;a&&(b(),a.terminate()),(n=new Worker(new URL(r.p+r.u(358),r.b))).onmessage=y,n.onerror=b;var i=++d;return m({type:"init",requestId:i,data:s})}return Promise.resolve()},w=function(t,e){if("undefined"==typeof Worker)return Promise.resolve();if(!n)return g(t);var r=new Set([].concat((0,a.A)(Object.keys(e.browsers.byId)),(0,a.A)(Object.values(e.results.byId).map(function(t){return t.parentId})))),s={};r.forEach(function(e){var r=t.browsers.byId[e],n=null==r?void 0:r.resultIds.at(-1),a=n?t.results.byId[n]:void 0;a&&(s[e]=_(a))});var i=++d;return m({type:"patch",requestId:i,data:{removeIds:[].concat((0,a.A)(e.browsers.removedIds),(0,a.A)(r)),idTagMap:s}})},I=function(t){return l.has(t)},O=function(t){return f.get(t)||-1},T=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return a((0,u.setSearchLoading)(!0)),new Promise(function(s){if(r)s([]);else if(n){var a=++d;p.set(a,s),v({type:"search",requestId:a,data:{text:t,matchCase:e}})}else s([])}).then(function(r){l=new Set(r),f=new Map,r.forEach(function(t,e){f.set(t,r.length-e)}),a(s?(0,u.setMatchCaseFilter)({data:e}):(0,u.updateNameFilter)({data:t})),a((0,u.setSearchLoading)(!1))})},k=function(){var t=(0,s.A)(o().mark(function t(e,r,n,s){var a,i,u,c;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w(e,r);case 2:return a=n(),i=a.text,u=a.matchCase,c=a.useRegexFilter,t.next=5,T(i,u,c,!1,s);case 5:case"end":return t.stop()}},t)}));return function(e,r,n,s){return t.apply(this,arguments)}}()},55056(t,e,r){var n=r(24586),s=r(86330),a=r(75799),i=r.n(a),o=r(14041),u=r(25873),c=r(43144),l=r(77050),f=r(37304),d=r(8920),p=r(59084),h=r(91137),v=r(53490),y=r(48806),b=r(4669),m=r(69298);function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_(Object(r),!0).forEach(function(e){(0,n.A)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var w=document.getElementById("app");function I(){var t=(0,y.r)();return(0,o.useEffect)(function(){if(t)return d.A.dispatch((0,p.thunkInitGuiReport)({isNewUi:!0})),t&&(t.addEventListener(l.h.CONNECTED,function(){d.A.dispatch({type:v.A.UPDATE_LOADING_VISIBILITY,payload:!1}),d.A.dispatch((0,h.P)({isConnected:!0}))}),t.onerror=function(){d.A.dispatch({type:v.A.UPDATE_LOADING_IS_IN_PROGRESS,payload:!0}),d.A.dispatch({type:v.A.UPDATE_LOADING_TITLE,payload:"Lost connection to Testplane UI server. Trying to reconnect"}),d.A.dispatch({type:v.A.UPDATE_LOADING_VISIBILITY,payload:!0}),d.A.dispatch((0,h.P)({isConnected:!1}))},t.addEventListener(l.h.BEGIN_SUITE,function(t){var e=JSON.parse(t.data);d.A.dispatch((0,p.suiteBegin)(e))}),t.addEventListener(l.h.BEGIN_STATE,function(t){var e=JSON.parse(t.data);d.A.dispatch((0,p.testBegin)(e))}),[l.h.TEST_RESULT,l.h.ERROR].forEach(function(e){t.addEventListener(e,function(t){var e=JSON.parse(t.data);d.A.dispatch((0,p.testResult)(e))})}),t.addEventListener(l.h.END,function(){d.A.dispatch((0,p.thunkTestsEnd)())}),t.addEventListener(l.h.REPEAT_LEFT,function(t){var e=JSON.parse(t.data);d.A.dispatch((0,p.setRepeatLeft)(e.repeatLeft))}),t.addEventListener(l.h.TESTS_REFRESH_STARTED,function(){(0,c.flushSync)(function(){d.A.dispatch((0,p.setRefreshLoading)(!0))})}),t.addEventListener(l.h.TESTS_REFRESHED,function(){var t=(0,s.A)(i().mark(function t(e){var r,n,s,a,o,u,c,l;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(r=JSON.parse(e.data))){t.next=13;break}if(r.replacement?(n=d.A.getState(),s=n.db,d.A.dispatch((0,p.initGuiReport)(g(g({},r.replacement),{},{db:s,isNewUi:!0})))):d.A.dispatch((0,b.m7)(r)),a=function(){var t=d.A.getState().app;return{text:t.nameFilter||"",matchCase:Boolean(t.useMatchCaseFilter),useRegexFilter:Boolean(t.useRegexFilter)}},!r.replacement){t.next=11;break}return o=a(),u=o.text,c=o.matchCase,l=o.useRegexFilter,t.next=9,(0,m.$P)(u,c,l,!1,d.A.dispatch);case 9:t.next=13;break;case 11:return t.next=13,(0,m.U3)(d.A.getState().tree,r,a,d.A.dispatch);case 13:return t.prev=13,d.A.dispatch((0,p.setRefreshLoading)(!1)),t.finish(13);case 16:case"end":return t.stop()}},t,null,[[0,,13,16]])}));return function(e){return t.apply(this,arguments)}}()),t.addEventListener(l.h.TESTS_REFRESH_FAILED,function(){d.A.dispatch((0,p.setRefreshLoading)(!1))})),function(){d.A.dispatch((0,p.finGuiReport)())}},[t]),o.createElement(f.q,null)}(0,u.H)(w).render(o.createElement(y.L,null,o.createElement(I,null)))},48806(t,e,r){r.d(e,{L:()=>i,r:()=>o});var n=r(90689),s=r(14041),a=(0,s.createContext)(null),i=function(t){var e=t.children,r=(0,s.useState)(null),i=(0,n.A)(r,2),o=i[0],u=i[1];return(0,s.useEffect)(function(){var t=new EventSource("/events");return u(t),function(){t.close()}},[]),s.createElement(a.Provider,{value:o},e)},o=function(){return(0,s.useContext)(a)}},23501(t,e,r){r.d(e,{O:()=>i,s:()=>o});var n=r(86330),s=r(75799),a=r.n(s),i=function(t){return"error"in t},o=function(){var t=(0,n.A)(a().mark(function t(e){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",fetch("/update-time-travel-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(t){return t.json()}));case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},18009(){}};const e={};function r(n){const s=e[n];if(void 0!==s)return s.exports;const a=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=t,(()=>{const t=[];r.O=(e,n,s)=>{if(!n){for(var a=0;a<t.length;a++){let[n,s]=t[a],o=!0;for(var i=0;i<n.length;i++)Object.keys(r.O).every(t=>r.O[t](n[i]))?n.splice(i--,1):o=!1;if(o){t.splice(a--,1);const r=s();void 0!==r&&(e=r)}}return e}t.push([n,s])}})(),r.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.cw=t=>{var e;return()=>{if(t){var r=t;t=0,e={exports:{}},r.call(e.exports,e,e.exports)}return e.exports}},(()=>{const t=Object.getPrototypeOf;let e;r.t=function(n,s){if(1&s&&(n=this(n)),8&s)return n;if("object"==typeof n&&n){if(4&s&&n.__esModule)return n;if(16&s&&"function"==typeof n.then)return n}const a=Object.create(null);r.r(a);const i={};e=e||[null,t({}),t([]),t(t)];for(var o=2&s&&n;("object"==typeof o||"function"==typeof o)&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach(t=>i[t]=()=>n[t]);return i.default=()=>n,r.d(a,i),a}})(),r.d=(t,e)=>{if(Array.isArray(e))for(var n=0;n<e.length;){var s=e[n++],a=e[n++],i=0===a?{enumerable:!0,value:e[n++]}:{enumerable:!0,get:a};r.o(t,s)||Object.defineProperty(t,s,i)}else for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.f={},r.e=t=>Promise.all(Object.keys(r.f).reduce((e,n)=>(r.f[n](t,e),e),[])),r.u=t=>(358===t?"search-worker":t)+".min.js",r.miniCssF=t=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{const t={};r.l=(e,n,s,a)=>{if(t[e])return void t[e].push(n);let i,o;if(void 0!==s){const t=document.getElementsByTagName("script");for(var u=0;u<t.length;u++){const r=t[u];if(r.getAttribute("src")==e){i=r;break}}}i||(o=!0,i=document.createElement("script"),i.charset="utf-8",r.nc&&i.setAttribute("nonce",r.nc),i.src=e),t[e]=[n];const c=(r,n)=>{i.onerror=i.onload=null,clearTimeout(l);const s=t[e];if(delete t[e],i.parentNode?.removeChild(i),s?.forEach(t=>t(n)),r)return r(n)},l=setTimeout(c.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=c.bind(null,i.onerror),i.onload=c.bind(null,i.onload),o&&document.head.appendChild(i)}})(),r.r=t=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r.dn=t=>{var e=Object.getOwnPropertyDescriptor(t,"name");(!e||!e.writable&&e.configurable)&&Object.defineProperty(t,"name",{value:"default",configurable:!0})},(()=>{let t;r.g.importScripts&&(t=r.g.location+"");const e=r.g.document;if(!t&&e&&("SCRIPT"===e.currentScript?.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){const r=e.getElementsByTagName("script");if(r.length){let e=r.length-1;for(;e>-1&&(!t||!/^https?:/.test(t));)t=r[e--].src}}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=t})(),(()=>{r.b="undefined"!=typeof document&&document.baseURI||self.location.href;const t={228:0,567:0};r.f.j=(e,n)=>{let s=r.o(t,e)?t[e]:void 0;if(0!==s)if(s)n.push(s[2]);else{const a=new Promise((r,n)=>s=t[e]=[r,n]);n.push(s[2]=a);const i=new Error,o=n=>{if(r.o(t,e)&&(s=t[e],0!==s&&(t[e]=void 0),s)){const t=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;i.message="Loading chunk "+e+" failed.\n("+t+": "+r+")",i.name="ChunkLoadError",i.type=t,i.request=r,i.event=n,s[1](i)}};r.l(r.p+r.u(e),o,"chunk-"+e,e)}},r.O.j=e=>0===t[e];const e=(e,n)=>{let[s,a,i]=n;var o,u,c=0;if(s.some(e=>0!==t[e])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(i)var l=i(r)}for(e&&e(n);c<s.length;c++)u=s[c],r.o(t,u)&&t[u]&&t[u][0](),t[u]=0;return r.O(l)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),r.O(void 0,[826,361,81,250,842,33,632],()=>r(55056)),r.O(void 0,[826,361,81,250,842,33,632],()=>r(36539)),r.O(void 0,[826,361,81,250,842,33,632],()=>r(98200));let n=r.O(void 0,[826,361,81,250,842,33,632],()=>r(18009));n=r.O(n)})();
@@ -1 +0,0 @@
1
- (()=>{"use strict";var t={72221(t,e,n){n.d(e,{$V:()=>b,ML:()=>m,Op:()=>O,Xm:()=>h,hB:()=>v,n0:()=>g});var r=n(83705),o=n(24586),a=n(86330),u=n(75799),c=n.n(u),i=n(45250),s=n(54061),f=n(42694),p=n(12e3);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){(0,o.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function h(t,e){var n=function(){var t=(0,a.A)(c().mark(function t(n){var r,o,a,u;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r={responseType:"arraybuffer"},"function"==typeof e&&(r.onDownloadProgress=function(t){e(n,t.loaded/t.total)}),t.next=4,(0,f.t2)(n,r);case 4:return o=t.sent,a=o.data,u=o.status,t.abrupt("return",{url:n,status:u,data:a});case 8:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}();return(0,s.HI)(t,{loadDbJsonUrl:function(t){return(0,f.t2)(t)},prepareUrls:function(t,e){return(0,f.GX)(t,e)},formatData:function(t){return{url:t,status:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unknown",data:null}},loadDbUrl:n})}function v(t){return y.apply(this,arguments)}function y(){return(y=(0,a.A)(c().mark(function t(e){var n,o,a,u,i,f;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,window.initSqlJs();case 2:if(n=t.sent,o=e.map(function(t){return new Uint8Array(t)}),0!==(a=o.map(function(t){return new n.Database(t)})).length){t.next=9;break}return t.abrupt("return",null);case 9:if(1!==a.length){t.next=11;break}return t.abrupt("return",a[0]);case 11:return u=o.reduce(function(t,e){return t+e.length},0),i=new n.Database(void 0,u),f=a.map(function(t){return t.filename}),(0,s.KP)({db:i,dbPaths:f,getExistingTables:function(t){for(var e=[];t.step();)e.push.apply(e,(0,r.A)(t.get()));return e}}),a.forEach(function(t){return t.close()}),t.abrupt("return",i);case 17:case"end":return t.stop()}},t)}))).apply(this,arguments)}function b(t){return w.apply(this,arguments)}function w(){return(w=(0,a.A)(c().mark(function t(e){var n,r,o,a;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=new URL(e),t.next=3,(0,f.t2)(n.href,{responseType:"arraybuffer"});case 3:return r=t.sent,o=r.data,t.next=7,window.initSqlJs();case 7:return a=t.sent,t.abrupt("return",new a.Database(new Uint8Array(o)));case 9:case"end":return t.stop()}},t)}))).apply(this,arguments)}function m(){return new URL(p.Kv,window.location.href)}function g(t){var e=function(t,e){var n=t.exec((0,s.KE)(e))[0];if(!n)return console.warn('Table "'.concat(e,'" is empty')),[];return n}(t,p.Uh);if(!(0,i.isEmpty)(e))return e.values.sort(s.pb)}function O(t){t.close()}d(d({},s.default),{},{fetchDataFromDatabases:h,mergeDatabases:v,connectToDatabase:b,getMainDatabaseUrl:m,getSuitesTableRows:g,closeDatabase:O})},17140(t,e,n){n.d(e,{A7:()=>O,Dd:()=>A,Gb:()=>E,JD:()=>p,Ke:()=>P,L$:()=>h,Ml:()=>T,S2:()=>S,U9:()=>g,W$:()=>v,YA:()=>f,YJ:()=>y,_r:()=>j,aY:()=>b,jX:()=>l,mR:()=>d,og:()=>m,r6:()=>x,yT:()=>w});var r=n(86330),o=n(75799),a=n.n(o),u=n(21826),c=n(53490),i=n(72221),s=n(50021),f=function(){return{type:c.A.RETRY_TEST}},p=function(t){return{type:c.A.SET_REPEAT_COUNT,payload:{repeatCount:t}}},l=function(t){return{type:c.A.SET_REPEAT_LEFT,payload:{repeatLeft:t}}},d=function(t){return{type:c.A.SET_RUN_OPTIONS,payload:{runOptions:t}}},h=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).tests,e=void 0===t?[]:t;return function(){var t=(0,r.A)(a().mark(function t(n,r){var o,c;return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=r(),c=o.repeatCount,n(f()),t.prev=2,t.next=5,u.A.post("/run",{tests:e,repeatCount:c});case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(2),console.error("Error while running tests:",t.t0);case 10:case"end":return t.stop()}},t,null,[[2,7]])}));return function(e,n){return t.apply(this,arguments)}}()},v=function(){return{type:c.A.RUN_ALL_TESTS}},y=function(){return function(){var t=(0,r.A)(a().mark(function t(e){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e(v()),t.next=3,e(h());case 3:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},b=function(){return{type:c.A.RUN_FAILED_TESTS}},w=function(t){var e=t.tests;return function(){var t=(0,r.A)(a().mark(function t(n){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n(b()),t.next=3,n(h({tests:e}));case 3:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},m=function(){return{type:c.A.RETRY_SUITE}},g=function(t){var e=t.tests;return function(){var t=(0,r.A)(a().mark(function t(n){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n(m()),t.next=3,n(h({tests:e}));case 3:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},O=function(t){var e=t.test;return function(){var t=(0,r.A)(a().mark(function t(n){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n(f()),t.next=3,n(h({tests:[e]}));case 3:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},E=function(){return{type:c.A.STOP_TESTS}},T=function(){return function(){var t=(0,r.A)(a().mark(function t(e){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u.A.post("/stop");case 3:e(E()),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.error("Error while stopping tests:",t.t0);case 9:case"end":return t.stop()}},t,null,[[0,6]])}));return function(e){return t.apply(this,arguments)}}()},x=function(t){return{type:c.A.TESTS_END,payload:t}},A=function(){return function(){var t=(0,r.A)(a().mark(function t(e){var n,r;return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=(0,i.ML)(),t.next=4,(0,i.$V)(n.href);case 4:r=t.sent,e(x({db:r})),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),e((0,s.op)("testsEnd",t.t0));case 11:case"end":return t.stop()}},t,null,[[0,8]])}));return function(e){return t.apply(this,arguments)}}()},S=function(t){return{type:c.A.SUITE_BEGIN,payload:t}},j=function(t){return{type:c.A.TEST_BEGIN,payload:t}},P=function(t){return{type:c.A.TEST_RESULT,payload:t}}},69298(t,e,n){n.d(e,{$P:()=>m,VT:()=>b,d9:()=>y,iE:()=>w});n(75799);var r,o=n(59084),a=n(31146),u=new Set([]),c=new Map([]),i=0,s=new Map,f=new Map,p=function(t){var e;return null===(e=r)||void 0===e?void 0:e.postMessage(t)},l=function(t){var e,n,r=t.data.requestId;"search-result"===t.data.type?(null===(e=s.get(r))||void 0===e||e(t.data.data),s.delete(r)):(null===(n=f.get(r))||void 0===n||n(),f.delete(r))},d=function(){r=void 0,s.forEach(function(t){return t([])}),s.clear(),f.forEach(function(t){return t()}),f.clear()},h=function(t){return new Promise(function(e){f.set(t.requestId,e),p(t)})},v=function(t){var e,n=null===(e=t.attachments)||void 0===e?void 0:e.find(function(t){return t.type===a.w.Tags});return n?n.list.map(function(t){return t.title}):[]},y=function(t){var e=t.results.allIds,o={};if(e.forEach(function(e){var n=t.results.byId[e];o[n.parentId]=v(n)}),"undefined"!=typeof Worker){var a=r;a&&(d(),a.terminate()),(r=new Worker(new URL(n.p+n.u(358),n.b))).onmessage=l,r.onerror=d;var u=++i;return h({type:"init",requestId:u,data:o})}return Promise.resolve()},b=function(t){return u.has(t)},w=function(t){return c.get(t)||-1},m=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3?arguments[3]:void 0,f=arguments.length>4?arguments[4]:void 0;return f((0,o.setSearchLoading)(!0)),new Promise(function(o){if(n)o([]);else if(r){var a=++i;s.set(a,o),p({type:"search",requestId:a,data:{text:t,matchCase:e}})}else o([])}).then(function(n){u=new Set(n),c=new Map,n.forEach(function(t,e){c.set(t,n.length-e)}),f(a?(0,o.setMatchCaseFilter)({data:e}):(0,o.updateNameFilter)({data:t})),f((0,o.setSearchLoading)(!1))})}},51303(t,e,n){var r=n(14041),o=n(25873),a=n(37304),u=n(8920),c=n(59084),i=document.getElementById("app");function s(){return(0,r.useEffect)(function(){return u.A.dispatch((0,c.thunkInitStaticReport)({isNewUi:!0})),function(){u.A.dispatch((0,c.finStaticReport)())}},[]),r.createElement(a.q,null)}(0,o.H)(i).render(r.createElement(s,null))},48806(t,e,n){n.d(e,{r:()=>a});var r=n(14041),o=(0,r.createContext)(null),a=function(){return(0,r.useContext)(o)}},23501(t,e,n){n.d(e,{O:()=>u,s:()=>c});var r=n(86330),o=n(75799),a=n.n(o),u=function(t){return"error"in t},c=function(){var t=(0,r.A)(a().mark(function t(e){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",fetch("/update-time-travel-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(t){return t.json()}));case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()}};const e={};function n(r){const o=e[r];if(void 0!==o)return o.exports;const a=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=t,(()=>{const t=[];n.O=(e,r,o)=>{if(!r){for(var a=0;a<t.length;a++){let[r,o]=t[a],c=!0;for(var u=0;u<r.length;u++)Object.keys(n.O).every(t=>n.O[t](r[u]))?r.splice(u--,1):c=!1;if(c){t.splice(a--,1);const n=o();void 0!==n&&(e=n)}}return e}t.push([r,o])}})(),n.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.cw=t=>{var e;return()=>{if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},(()=>{const t=Object.getPrototypeOf;let e;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}const a=Object.create(null);n.r(a);const u={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&r;("object"==typeof c||"function"==typeof c)&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach(t=>u[t]=()=>r[t]);return u.default=()=>r,n.d(a,u),a}})(),n.d=(t,e)=>{if(Array.isArray(e))for(var r=0;r<e.length;){var o=e[r++],a=e[r++],u=0===a?{enumerable:!0,value:e[r++]}:{enumerable:!0,get:a};n.o(t,o)||Object.defineProperty(t,o,u)}else for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.f={},n.e=t=>Promise.all(Object.keys(n.f).reduce((e,r)=>(n.f[r](t,e),e),[])),n.u=t=>(358===t?"search-worker":t)+".min.js",n.miniCssF=t=>{},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{const t={};n.l=(e,r,o,a)=>{if(t[e])return void t[e].push(r);let u,c;if(void 0!==o){const t=document.getElementsByTagName("script");for(var i=0;i<t.length;i++){const n=t[i];if(n.getAttribute("src")==e){u=n;break}}}u||(c=!0,u=document.createElement("script"),u.charset="utf-8",n.nc&&u.setAttribute("nonce",n.nc),u.src=e),t[e]=[r];const s=(n,r)=>{u.onerror=u.onload=null,clearTimeout(f);const o=t[e];if(delete t[e],u.parentNode?.removeChild(u),o?.forEach(t=>t(r)),n)return n(r)},f=setTimeout(s.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=s.bind(null,u.onerror),u.onload=s.bind(null,u.onload),c&&document.head.appendChild(u)}})(),n.r=t=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.dn=t=>{var e=Object.getOwnPropertyDescriptor(t,"name");(!e||!e.writable&&e.configurable)&&Object.defineProperty(t,"name",{value:"default",configurable:!0})},(()=>{let t;n.g.importScripts&&(t=n.g.location+"");const e=n.g.document;if(!t&&e&&("SCRIPT"===e.currentScript?.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){const n=e.getElementsByTagName("script");if(n.length){let e=n.length-1;for(;e>-1&&(!t||!/^https?:/.test(t));)t=n[e--].src}}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),n.p=t})(),(()=>{n.b="undefined"!=typeof document&&document.baseURI||self.location.href;const t={869:0};n.f.j=(e,r)=>{let o=n.o(t,e)?t[e]:void 0;if(0!==o)if(o)r.push(o[2]);else{const a=new Promise((n,r)=>o=t[e]=[n,r]);r.push(o[2]=a);const u=new Error,c=r=>{if(n.o(t,e)&&(o=t[e],0!==o&&(t[e]=void 0),o)){const t=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;u.message="Loading chunk "+e+" failed.\n("+t+": "+n+")",u.name="ChunkLoadError",u.type=t,u.request=n,u.event=r,o[1](u)}};n.l(n.p+n.u(e),c,"chunk-"+e,e)}},n.O.j=e=>0===t[e];const e=(e,r)=>{let[o,a,u]=r;var c,i,s=0;if(o.some(e=>0!==t[e])){for(c in a)n.o(a,c)&&(n.m[c]=a[c]);if(u)var f=u(n)}for(e&&e(r);s<o.length;s++)i=o[s],n.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return n.O(f)},r=self.webpackChunk=self.webpackChunk||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),n.O(void 0,[826,361,81,250,842,33,567,632],()=>n(51303)),n.O(void 0,[826,361,81,250,842,33,567,632],()=>n(36539));let r=n.O(void 0,[826,361,81,250,842,33,567,632],()=>n(98200));r=n.O(r)})();
File without changes