tractive-device-farm 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/plugin.js CHANGED
@@ -307,7 +307,21 @@ class DevicePlugin extends base_plugin_1.default {
307
307
  throw new Error(`"${error}", Please check the remote appium server log to know the reason for failure`);
308
308
  }
309
309
  deleteSession(next, driver, sessionId) {
310
+ var _a;
310
311
  return __awaiter(this, void 0, void 0, function* () {
312
+ // Within a single plugin, Appium routes deleteSession to this dedicated
313
+ // method instead of handle(), so dashboardHandle never sees it. Invoke
314
+ // the dashboard's terminate path here BEFORE next() — once next() tears
315
+ // the driver down, the stop-recording POST returns NoSuchDriverError and
316
+ // the screen recording is lost. Without this, sessionTerminated only
317
+ // runs via SessionManager's 5-min idle timer, by which point the session
318
+ // is gone and video_path stays NULL in the DB.
319
+ try {
320
+ yield (0, session_handler_1.dashboardHandle)(() => Promise.resolve(), driver, 'deleteSession', sessionId);
321
+ }
322
+ catch (err) {
323
+ logger_1.default.warn(`Dashboard deleteSession handling failed: ${(_a = err === null || err === void 0 ? void 0 : err.message) !== null && _a !== void 0 ? _a : err}`);
324
+ }
311
325
  (0, device_service_1.unblockDevice)({ session_id: sessionId });
312
326
  logger_1.default.info(`📱 Unblocking the device that is blocked for session ${sessionId}`);
313
327
  return yield next();
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "/device-farm/dashboard/static/css/main.52778f63.chunk.css",
4
- "main.js": "/device-farm/dashboard/static/js/main.f68d4156.chunk.js",
5
- "main.js.map": "/device-farm/dashboard/static/js/main.f68d4156.chunk.js.map",
4
+ "main.js": "/device-farm/dashboard/static/js/main.01cca034.chunk.js",
5
+ "main.js.map": "/device-farm/dashboard/static/js/main.01cca034.chunk.js.map",
6
6
  "runtime-main.js": "/device-farm/dashboard/static/js/runtime-main.6dc6563e.js",
7
7
  "runtime-main.js.map": "/device-farm/dashboard/static/js/runtime-main.6dc6563e.js.map",
8
8
  "static/css/2.58a45539.chunk.css": "/device-farm/dashboard/static/css/2.58a45539.chunk.css",
@@ -20,6 +20,6 @@
20
20
  "static/css/2.58a45539.chunk.css",
21
21
  "static/js/2.f7672eec.chunk.js",
22
22
  "static/css/main.52778f63.chunk.css",
23
- "static/js/main.f68d4156.chunk.js"
23
+ "static/js/main.01cca034.chunk.js"
24
24
  ]
25
25
  }
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/device-farm/dashboard/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/device-farm/dashboard/logo192.png"/><link rel="manifest" href="/device-farm/dashboard/manifest.json"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"/><title>Appium Dashboard</title><link href="/device-farm/dashboard/static/css/2.58a45539.chunk.css" rel="stylesheet"><link href="/device-farm/dashboard/static/css/main.52778f63.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,u,i=r[0],c=r[1],l=r[2],p=0,s=[];p<i.length;p++)u=i[p],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);s.length;)s.shift()();return a.push.apply(a,l||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(a.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={1:0},a=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var a,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{3:"39e9d0dc"}[e]+".chunk.js"}(e);var c=new Error;a=function(r){i.onerror=i.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",c.name="ChunkLoadError",c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){a({type:"timeout",target:i})}),12e4);i.onerror=i.onload=a,document.head.appendChild(i)}return Promise.all(r)},u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="/device-farm/dashboard/",u.oe=function(e){throw console.error(e),e};var i=this["webpackJsonpappium-dashboard-web"]=this["webpackJsonpappium-dashboard-web"]||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var f=c;t()}([])</script><script src="/device-farm/dashboard/static/js/2.f7672eec.chunk.js"></script><script src="/device-farm/dashboard/static/js/main.f68d4156.chunk.js"></script></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/device-farm/dashboard/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/device-farm/dashboard/logo192.png"/><link rel="manifest" href="/device-farm/dashboard/manifest.json"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"/><title>Appium Dashboard</title><link href="/device-farm/dashboard/static/css/2.58a45539.chunk.css" rel="stylesheet"><link href="/device-farm/dashboard/static/css/main.52778f63.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,u,i=r[0],c=r[1],l=r[2],p=0,s=[];p<i.length;p++)u=i[p],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);s.length;)s.shift()();return a.push.apply(a,l||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(a.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={1:0},a=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var a,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{3:"39e9d0dc"}[e]+".chunk.js"}(e);var c=new Error;a=function(r){i.onerror=i.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",c.name="ChunkLoadError",c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){a({type:"timeout",target:i})}),12e4);i.onerror=i.onload=a,document.head.appendChild(i)}return Promise.all(r)},u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="/device-farm/dashboard/",u.oe=function(e){throw console.error(e),e};var i=this["webpackJsonpappium-dashboard-web"]=this["webpackJsonpappium-dashboard-web"]||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var f=c;t()}([])</script><script src="/device-farm/dashboard/static/js/2.f7672eec.chunk.js"></script><script src="/device-farm/dashboard/static/js/main.01cca034.chunk.js"></script></body></html>
@@ -0,0 +1,2 @@
1
+ (this["webpackJsonpappium-dashboard-web"]=this["webpackJsonpappium-dashboard-web"]||[]).push([[0],{216:function(e){e.exports=JSON.parse('{"v":"5.6.10","fr":70,"ip":30,"op":210,"w":800,"h":600,"nm":"\u5408\u6210 1","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 18","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":340,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"t":30,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":121,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 17","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":320,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":10,"s":[0]},{"t":40,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":121,"st":10,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 16","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":300,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":20,"s":[0]},{"t":50,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":121,"st":20,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 15","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":280,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":30,"s":[0]},{"t":60,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":121,"st":30,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 14","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":260,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":40,"s":[0]},{"t":70,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":121,"st":40,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 13","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":240,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":50,"s":[0]},{"t":80,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":121,"st":50,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 12","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":220,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":60,"s":[0]},{"t":90,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":181,"st":60,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 11","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":200,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":70,"s":[0]},{"t":100,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":181,"st":70,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 10","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":80,"s":[0]},{"t":110,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":181,"st":80,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 9","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":160,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":90,"s":[0]},{"t":120,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":181,"st":90,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 8","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":140,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":100,"s":[0]},{"t":130,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":181,"st":100,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 7","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":120,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":110,"s":[0]},{"t":140,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":181,"st":110,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 6","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":100,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":120,"s":[0]},{"t":150,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":78,"op":420,"st":120,"bm":0},{"ddd":0,"ind":14,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 5","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":80,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":130,"s":[0]},{"t":160,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":78,"op":430,"st":130,"bm":0},{"ddd":0,"ind":15,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":60,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":140,"s":[0]},{"t":170,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":78,"op":440,"st":140,"bm":0},{"ddd":0,"ind":16,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":40,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":150,"s":[0]},{"t":180,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":78,"op":450,"st":150,"bm":0},{"ddd":0,"ind":17,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":20,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":160,"s":[0]},{"t":190,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":78,"op":460,"st":160,"bm":0},{"ddd":0,"ind":18,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":170,"s":[0]},{"t":200,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":78,"op":470,"st":170,"bm":0},{"ddd":0,"ind":19,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 24","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":340,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":180,"s":[0]},{"t":210,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":180,"op":301,"st":180,"bm":0},{"ddd":0,"ind":20,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 23","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":320,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":190,"s":[0]},{"t":220,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":180,"op":301,"st":190,"bm":0},{"ddd":0,"ind":21,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 22","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":300,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":200,"s":[0]},{"t":230,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":180,"op":301,"st":200,"bm":0},{"ddd":0,"ind":22,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 21","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":280,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":210,"s":[0]},{"t":240,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":180,"op":301,"st":210,"bm":0},{"ddd":0,"ind":23,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 20","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":260,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":220,"s":[0]},{"t":250,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":180,"op":301,"st":220,"bm":0},{"ddd":0,"ind":24,"ty":4,"nm":"\u5f62\u72b6\u56fe\u5c42 19","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":240,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"\u692d\u5706\u8def\u5f84 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":230,"s":[0]},{"t":260,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"\u4fee\u526a\u8def\u5f84 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.03529411764705882,0.43137254901960786,0.9333333333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"\u63cf\u8fb9 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"\u53d8\u6362"}],"nm":"\u692d\u5706 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":180,"op":301,"st":230,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"\u9884\u5408\u6210 1","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[400,300,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ef":[{"ty":5,"nm":"\u7b80\u5355\u963b\u585e\u5de5\u5177","np":4,"mn":"ADBE Simple Choker","ix":1,"en":1,"ef":[{"ty":7,"nm":"\u89c6\u56fe","mn":"ADBE Simple Choker-0001","ix":1,"v":{"a":0,"k":1,"ix":1}},{"ty":0,"nm":"\u963b\u585e\u906e\u7f69","mn":"ADBE Simple Choker-0002","ix":2,"v":{"a":0,"k":14,"ix":2}}]},{"ty":5,"nm":"\u68af\u5ea6\u6e10\u53d8","np":10,"mn":"ADBE Ramp","ix":2,"en":1,"ef":[{"ty":3,"nm":"\u6e10\u53d8\u8d77\u70b9","mn":"ADBE Ramp-0001","ix":1,"v":{"a":0,"k":[400,0],"ix":1}},{"ty":2,"nm":"\u8d77\u59cb\u989c\u8272","mn":"ADBE Ramp-0002","ix":2,"v":{"a":0,"k":[0.263066768646,1,0.867243647575,1],"ix":2}},{"ty":3,"nm":"\u6e10\u53d8\u7ec8\u70b9","mn":"ADBE Ramp-0003","ix":3,"v":{"a":0,"k":[400,600],"ix":3}},{"ty":2,"nm":"\u7ed3\u675f\u989c\u8272","mn":"ADBE Ramp-0004","ix":4,"v":{"a":0,"k":[0.354580283165,1,0.820018112659,1],"ix":4}},{"ty":7,"nm":"\u6e10\u53d8\u5f62\u72b6","mn":"ADBE Ramp-0005","ix":5,"v":{"a":0,"k":1,"ix":5}},{"ty":0,"nm":"\u6e10\u53d8\u6563\u5c04","mn":"ADBE Ramp-0006","ix":6,"v":{"a":0,"k":0,"ix":6}},{"ty":0,"nm":"\u4e0e\u539f\u59cb\u56fe\u50cf\u6df7\u5408","mn":"ADBE Ramp-0007","ix":7,"v":{"a":0,"k":0,"ix":7}},{"ty":6,"nm":"","mn":"ADBE Ramp-0008","ix":8,"v":0}]}],"w":800,"h":600,"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"\u9884\u5408\u6210 1","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":56,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[400,320,0],"ix":2},"a":{"a":0,"k":[400,300,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ef":[{"ty":5,"nm":"\u7b80\u5355\u963b\u585e\u5de5\u5177","np":4,"mn":"ADBE Simple Choker","ix":1,"en":1,"ef":[{"ty":7,"nm":"\u89c6\u56fe","mn":"ADBE Simple Choker-0001","ix":1,"v":{"a":0,"k":1,"ix":1}},{"ty":0,"nm":"\u963b\u585e\u906e\u7f69","mn":"ADBE Simple Choker-0002","ix":2,"v":{"a":0,"k":14,"ix":2}}]},{"ty":5,"nm":"\u68af\u5ea6\u6e10\u53d8","np":10,"mn":"ADBE Ramp","ix":2,"en":1,"ef":[{"ty":3,"nm":"\u6e10\u53d8\u8d77\u70b9","mn":"ADBE Ramp-0001","ix":1,"v":{"a":0,"k":[400,0],"ix":1}},{"ty":2,"nm":"\u8d77\u59cb\u989c\u8272","mn":"ADBE Ramp-0002","ix":2,"v":{"a":0,"k":[0.263066768646,1,0.867243647575,1],"ix":2}},{"ty":3,"nm":"\u6e10\u53d8\u7ec8\u70b9","mn":"ADBE Ramp-0003","ix":3,"v":{"a":0,"k":[400,600],"ix":3}},{"ty":2,"nm":"\u7ed3\u675f\u989c\u8272","mn":"ADBE Ramp-0004","ix":4,"v":{"a":0,"k":[0.354580283165,1,0.820018112659,1],"ix":4}},{"ty":7,"nm":"\u6e10\u53d8\u5f62\u72b6","mn":"ADBE Ramp-0005","ix":5,"v":{"a":0,"k":1,"ix":5}},{"ty":0,"nm":"\u6e10\u53d8\u6563\u5c04","mn":"ADBE Ramp-0006","ix":6,"v":{"a":0,"k":0,"ix":6}},{"ty":0,"nm":"\u4e0e\u539f\u59cb\u56fe\u50cf\u6df7\u5408","mn":"ADBE Ramp-0007","ix":7,"v":{"a":0,"k":0,"ix":7}},{"ty":6,"nm":"","mn":"ADBE Ramp-0008","ix":8,"v":0}]},{"ty":29,"nm":"\u9ad8\u65af\u6a21\u7cca","np":5,"mn":"ADBE Gaussian Blur 2","ix":3,"en":1,"ef":[{"ty":0,"nm":"\u6a21\u7cca\u5ea6","mn":"ADBE Gaussian Blur 2-0001","ix":1,"v":{"a":0,"k":41.3,"ix":1}},{"ty":7,"nm":"\u6a21\u7cca\u65b9\u5411","mn":"ADBE Gaussian Blur 2-0002","ix":2,"v":{"a":0,"k":1,"ix":2}},{"ty":7,"nm":"\u91cd\u590d\u8fb9\u7f18\u50cf\u7d20","mn":"ADBE Gaussian Blur 2-0003","ix":3,"v":{"a":0,"k":0,"ix":3}}]}],"w":800,"h":600,"ip":0,"op":300,"st":0,"bm":0}],"markers":[]}')},326:function(e,n,t){},389:function(e,n,t){},390:function(e,n,t){"use strict";t.r(n);var i=t(5),r=t.n(i),c=t(39),a=t.n(c),s=(t(326),function(e){e&&e instanceof Function&&t.e(3).then(t.bind(null,468)).then((function(n){var t=n.getCLS,i=n.getFID,r=n.getFCP,c=n.getLCP,a=n.getTTFB;t(e),i(e),r(e),c(e),a(e)}))}),o=t(21),l=t(100),d=t(119),b=t(207),u=t(24),x=t.n(u),j=t(23),p={INIT_APP:"INIT_APP",INIT_SESSION_SAGA:"INIT_SESSION_SAGA",INIT_BUILD_SAGA:"INIT_BUILD_SAGA",FETCH_SESSIONS_INIT:"FETCH_SESSION_INIT",FETCH_SESSIONS_SUCCESS:"FETCH_SESSION_SUCCESS",FETCH_SESSION:"FETCH_SESSION",FETCH_SESSION_SUCCESS:"FETCH_SESSION_SUCCESS",SELECT_SESSION:"SELECT_SESSION",DESELECT_SESSION:"DESELECT_SESSION",SET_SESSION_FILTER:"SET_SESSION_FILTER",DELETE_SESSION:"DELETE_SESSION",DELETE_ALL_SESSION:"DELETE_ALL_SESSION",PAUSE_SESSION:"PAUSE_SESSION",RUN_SCRIPT_FOR_SESSION:"RUN_SCRIPT_FOR_SESSION",RUN_SCRIPT_FOR_SESSION_FINISH:"RUN_SCRIPT_FOR_SESSION_FINISH",RESET_SCRIPT_RESPONSE_FOR_SESSION:"RESET_SCRIPT_RESPONSE_FOR_SESSION",RESUME_SESSION:"RESUME_SESSION",SESSION_STATE_CHANGE_FINISH:"SESSION_STATE_CHANGE_FINISH",FETCH_SESSION_TEXT_LOG:"FETCH_SESSION_TEXT_LOG",FETCH_SESSION_TEXT_LOG_SUCCESS:"FETCH_SESSION_TEXT_LOG_SUCCESS",FETCH_SESSION_DEVICE_LOG:"FETCH_SESSION_DEVICE_LOG",FETCH_SESSION_DEVICE_LOG_SUCCESS:"FETCH_SESSION_DEVICE_LOG_SUCCESS",FETCH_SESSION_DEBUG_LOG:"FETCH_SESSION_DEBUG_LOG",FETCH_SESSION_DEBUG_LOG_SUCCESS:"FETCH_SESSION_DEBUG_LOG_SUCCESS",FETCH_SESSION_HTTP_LOG:"FETCH_SESSION_HTTP_LOG",FETCH_SESSION_HTTP_LOG_SUCCESS:"FETCH_SESSION_HTTP_LOG_SUCCESS",FETCH_SESSION_PROFILING_DATA:"FETCH_SESSION_PROFILING_DATA",FETCH_SESSION_PROFILING_DATA_SUCCESS:"FETCH_SESSION_PROFILING_DATA_SUCCESS",FETCH_SESSIONS_BY_BUILD_ID:"FETCH_SESSIONS_BY_BUILD_ID",POLLING_INIT:"POLLING_INIT",POLLING_STOP:"POLLING_STOP",ADD_POLLING_TASK:"ADD_POLLING_TASK",REMOVE_POLLING_TASK:"REMOVE_POLLING_TASK",SESSION_DELETE_INIT:"SESSION_DELETE_INIT",SESSION_DELETE_FINISH:"SESSION_DELETE_FINISH",FETCH_BUILD_INIT:"FETCH_BUILD_INIT",FETCH_BUILD:"FETCH_BUILD",FETCH_BUILD_SUCCESS:"FETCH_BUILD_SUCCESS",SET_BUILD_FILTER:"SET_BUILD_FILTER",SELECT_BUILD:"SELECT_BUILD",DESELECT_BUILD:"DESELECT_BUILD",INIT_METRICS_SAGA:"INIT_METRICS_SAGA",FETCH_METRICS_INIT:"FETCH_METRICS_INIT",FETCH_METRICS_SUCCESS:"FETCH_METRICS_SUCCESS",FETCH_METRICS_FAILURE:"FETCH_METRICS_FAILURE",SET_METRICS_FILTER:"SET_METRICS_FILTER"},h=x.a.mark(O);function O(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(j.e)({type:p.INIT_SESSION_SAGA});case 2:return e.next=4,Object(j.e)({type:p.INIT_BUILD_SAGA});case 4:return e.next=6,Object(j.e)({type:p.POLLING_INIT});case 6:return e.next=8,Object(j.e)({type:p.INIT_METRICS_SAGA});case 8:case"end":return e.stop()}}),h)}var f=t(1);function m(e){console.log(e)}var g=x.a.mark(y),k=x.a.mark(E),v=x.a.mark(I),S=x.a.mark(w);function _(e){return Object(d.c)((function(n){var t=setInterval((function(){n("")}),e);return function(){clearInterval(t)}}))}function y(e,n,t){var i,r,c;return x.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:m("Scheduler Ready");case 1:return a.next=4,Object(j.f)(e);case 4:i=Object(f.a)(t),a.prev=5,i.s();case 7:if((r=i.n()).done){a.next=13;break}return c=r.value,a.next=11,Object(j.e)(n,c);case 11:a.next=7;break;case 13:a.next=18;break;case 15:a.prev=15,a.t0=a.catch(5),i.e(a.t0);case 18:return a.prev=18,i.f(),a.finish(18);case 21:m("scheduled tasks"),a.next=1;break;case 24:case"end":return a.stop()}}),g,null,[[5,15,18,21]])}function E(e){var n;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:m("Executor Ready");case 1:return t.next=4,Object(j.f)(e);case 4:return n=t.sent,t.next=7,Object(j.e)(n);case 7:m("executed tasks"),t.next=1;break;case 10:case"end":return t.stop()}}),k)}function I(e){var n;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:m("Aggregator Ready"),n=x.a.mark((function n(){var t,i,r,c;return x.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(j.f)([p.ADD_POLLING_TASK,p.REMOVE_POLLING_TASK]);case 2:t=n.sent,i=t.type,r=t.payload,m(e),n.t0=i,n.next=n.t0===p.ADD_POLLING_TASK?9:n.t0===p.REMOVE_POLLING_TASK?12:16;break;case 9:return e.find((function(e){return e.type===r.type}))?m("Duplicate task was scheduled"):e.push(r),n.abrupt("break",16);case 12:return c=e.filter((function(e){return e.type!==r.type})),e.length=0,Array.prototype.push.apply(e,c),n.abrupt("break",16);case 16:m(e);case 17:case"end":return n.stop()}}),n)}));case 2:return t.delegateYield(n(),"t0",4);case 4:t.next=2;break;case 6:case"end":return t.stop()}}),v)}function w(){var e,n,t,i,r,c;return x.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e=_(1e4),n=[],t=Object(d.a)(),a.next=5,Object(j.d)(I,n);case 5:return i=a.sent,a.next=8,Object(j.d)(y,e,t,n);case 8:return r=a.sent,a.next=11,Object(j.d)(E,t);case 11:return c=a.sent,a.next=14,Object(j.f)(p.POLLING_STOP);case 14:return a.next=16,Object(j.b)(e.close);case 16:return a.next=18,Object(j.c)(i);case 18:return a.next=20,Object(j.c)(r);case 20:return a.next=22,Object(j.c)(c);case 22:case"end":return a.stop()}}),S)}var A=t(138),C=t(2),T=t(4),L=t(11),D=t(103),N=t.n(D),F=t(208),B=t.n(F),R={baseURL:"/device-farm/api"};function H(e){return B.a.stringify(e,{arrayFormat:"comma"})}var G="df_token";N.a.interceptors.request.use((function(e){var n,t=window.localStorage.getItem(G);t&&(e.headers=null!==(n=e.headers)&&void 0!==n?n:{},e.headers.Authorization="Bearer ".concat(t));return e})),N.a.interceptors.response.use((function(e){return e}),(function(e){var n;if(401===(null===e||void 0===e||null===(n=e.response)||void 0===n?void 0:n.status)){try{window.localStorage.removeItem(G)}catch(i){}var t=window.location.pathname+window.location.search;window.location.assign("/device-farm/login?from=".concat(encodeURIComponent(t)))}return Promise.reject(e)}));var P=function(){function e(){Object(C.a)(this,e)}return Object(T.a)(e,null,[{key:"get",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return N.a.get(e,Object(L.a)(Object(L.a)(Object(L.a)({},R),t),{},{params:n,paramsSerializer:H})).then((function(e){return e.data})).catch((function(e){return e.response.data}))}},{key:"post",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return N.a.post(e,n,Object(L.a)(Object(L.a)(Object(L.a)({},R),i),{},{params:t,paramsSerializer:H})).then((function(e){return e.data})).catch((function(e){return e.response.data}))}},{key:"delete",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return N.a.delete(e,Object(L.a)(Object(L.a)(Object(L.a)({},R),t),{},{params:n,paramsSerializer:H})).then((function(e){return e.data})).catch((function(e){return e.response.data}))}}]),e}();P.base_url="/device-farm/dashboard";var U=function(){function e(){Object(C.a)(this,e)}return Object(T.a)(e,null,[{key:"getAllSessions",value:function(e){return P.get("/sessions",e||{})}},{key:"getSessionsByBuild",value:function(e,n){return P.get("/builds/".concat(e,"/sessions"),n||{})}},{key:"getTextLogsForSession",value:function(e){return P.get("/sessions/".concat(e,"/logs/text"),{})}},{key:"getDeviceLogsForSession",value:function(e){return P.get("/sessions/".concat(e,"/logs/device"),{})}},{key:"getDebugLogsForSession",value:function(e){return P.get("/sessions/".concat(e,"/logs/debug"),{})}},{key:"getSessionById",value:function(e){return P.get("/sessions/".concat(e),{})}},{key:"deleteSessionById",value:function(e){return P.delete("/sessions/".concat(e))}},{key:"deleteAllSessions",value:function(){return P.delete("/sessions")}},{key:"getSessionTextLogs",value:function(e){return P.get("/sessions/".concat(e,"/logs/text"),{})}},{key:"pauseSession",value:function(e){return P.post("/debug/".concat(e,"/pause"),{})}},{key:"resumeSession",value:function(e){return P.post("/debug/".concat(e,"/play"),{})}},{key:"getAppProfilingForSession",value:function(e){return P.get("/sessions/".concat(e,"/profiling_data"))}},{key:"getHttpLogsForSession",value:function(e){return P.get("/sessions/".concat(e,"/http_logs"))}},{key:"runDriverScript",value:function(e){var n=e.sessionId,t=e.script,i=e.timeoutMs;return P.post("/debug/".concat(n,"/execute_driver_script"),{script:t,timeout:i})}}]),e}(),V=function(e){return{type:p.FETCH_SESSIONS_BY_BUILD_ID,payload:e}},z=function(e){return{type:p.FETCH_SESSION_SUCCESS,payload:e}},M=function(e){return{type:p.SELECT_SESSION,payload:e}},X=function(e){return{type:p.FETCH_SESSION_TEXT_LOG,payload:e}},Y=function(e){return{type:p.FETCH_SESSION_DEVICE_LOG,payload:e}},K=function(e){return{type:p.FETCH_SESSION_DEBUG_LOG,payload:e}},W=function(e){return{type:p.SET_SESSION_FILTER,payload:e}},Q=function(e){return{type:p.SESSION_DELETE_FINISH,payload:e}},J=function(e){return{type:p.SESSION_STATE_CHANGE_FINISH,payload:e}},Z=t(58),q=t.n(Z),$=["build_id","buildId"],ee=x.a.mark(je),ne=x.a.mark(pe),te=x.a.mark(he),ie=x.a.mark(Oe),re=x.a.mark(fe),ce=x.a.mark(me),ae=x.a.mark(ge),se=x.a.mark(ke),oe=x.a.mark(ve),le=x.a.mark(Se),de=x.a.mark(_e),be=x.a.mark(ye),ue=x.a.mark(Ee),xe=x.a.mark(Ie);function je(e){var n,t;return x.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=Object(Z.omitBy)(null===e||void 0===e?void 0:e.payload,(function(e){return!e})),i.next=3,U.getAllSessions(n);case 3:if(!(t=i.sent).success){i.next=7;break}return i.next=7,Object(j.e)(z({count:t.result.count,rows:t.result.rows}));case 7:case"end":return i.stop()}}),ee)}function pe(e){var n,t,i,r,c,a,s;return x.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(e&&e.payload){o.next=3;break}return console.warn("[fetchAllSessionsByBuild] Missing payload, skipping fetch"),o.abrupt("return");case 3:if(n=e.payload,t={},"string"===typeof n?i=n:"object"===typeof n&&(r=n.build_id,c=n.buildId,a=Object(A.a)(n,$),i=c||r,t=a),i){o.next=10;break}return console.warn("[fetchAllSessionsByBuild] Missing buildId, skipping fetch"),console.log("payload:",n),o.abrupt("return");case 10:return o.next=12,U.getSessionsByBuild(i,t);case 12:if(!(s=o.sent)||!s.success){o.next=16;break}return o.next=16,Object(j.e)(z({count:s.result.count,rows:s.result.rows}));case 16:case"end":return o.stop()}}),ne)}function he(e){var n;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.payload){t.next=7;break}return t.next=3,U.getSessionById(e.payload);case 3:if(!(n=t.sent).success){t.next=7;break}return t.next=7,Object(j.e)(z(n.result));case 7:case"end":return t.stop()}}),te)}function Oe(e){var n;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.payload){t.next=7;break}return t.next=3,U.getTextLogsForSession(e.payload);case 3:if(!(n=t.sent).success){t.next=7;break}return t.next=7,Object(j.e)((i=n.result,{type:p.FETCH_SESSION_TEXT_LOG_SUCCESS,payload:i}));case 7:case"end":return t.stop()}var i}),ie)}function fe(e){var n;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.payload){t.next=7;break}return t.next=3,U.getDeviceLogsForSession(e.payload);case 3:if(!(n=t.sent).success){t.next=7;break}return t.next=7,Object(j.e)((i=n.result,{type:p.FETCH_SESSION_DEVICE_LOG_SUCCESS,payload:i}));case 7:case"end":return t.stop()}var i}),re)}function me(e){var n;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.payload){t.next=7;break}return t.next=3,U.getDebugLogsForSession(e.payload);case 3:if(!(n=t.sent).success){t.next=7;break}return t.next=7,Object(j.e)((i=n.result,{type:p.FETCH_SESSION_DEBUG_LOG_SUCCESS,payload:i}));case 7:case"end":return t.stop()}var i}),ce)}function ge(e){var n;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.payload){t.next=7;break}return t.next=3,U.getHttpLogsForSession(e.payload);case 3:if(!(n=t.sent).success){t.next=7;break}return t.next=7,Object(j.e)((i=n.result,{type:p.FETCH_SESSION_HTTP_LOG_SUCCESS,payload:i}));case 7:case"end":return t.stop()}var i}),ae)}function ke(e){var n;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.payload){t.next=6;break}return t.next=3,U.deleteSessionById(e.payload);case 3:return n=t.sent,t.next=6,Object(j.e)(Q(n));case 6:case"end":return t.stop()}}),se)}function ve(){var e;return x.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,U.deleteAllSessions();case 2:return e=n.sent,n.next=5,Object(j.e)(Q(e));case 5:case"end":return n.stop()}}),oe)}function Se(e){var n;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.payload){t.next=6;break}return t.next=3,U.pauseSession(e.payload);case 3:return n=t.sent,t.next=6,Object(j.e)(J(n));case 6:case"end":return t.stop()}}),le)}function _e(e){var n;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.payload){t.next=6;break}return t.next=3,U.resumeSession(e.payload);case 3:return n=t.sent,t.next=6,Object(j.e)(J(n));case 6:case"end":return t.stop()}}),de)}function ye(e){var n;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.payload){t.next=6;break}return t.next=3,U.getAppProfilingForSession(e.payload);case 3:return n=t.sent,t.next=6,Object(j.e)((i={count:n.result.length,rows:n.result},{type:p.FETCH_SESSION_PROFILING_DATA_SUCCESS,payload:i}));case 6:case"end":return t.stop()}var i}),be)}function Ee(e){var n;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.payload){t.next=6;break}return t.next=3,U.runDriverScript(e.payload);case 3:return n=t.sent,t.next=6,Object(j.e)((i=n.result,{type:p.RUN_SCRIPT_FOR_SESSION_FINISH,payload:i}));case 6:case"end":return t.stop()}var i}),ue)}function Ie(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(j.a)([Object(j.g)(p.FETCH_SESSIONS_INIT,je),Object(j.g)(p.FETCH_SESSIONS_BY_BUILD_ID,pe),Object(j.h)(p.FETCH_SESSION,he),Object(j.h)(p.FETCH_SESSION_TEXT_LOG,Oe),Object(j.h)(p.FETCH_SESSION_DEVICE_LOG,fe),Object(j.h)(p.FETCH_SESSION_DEBUG_LOG,me),Object(j.h)(p.FETCH_SESSION_HTTP_LOG,ge),Object(j.h)(p.FETCH_SESSION_PROFILING_DATA,ye),Object(j.h)(p.DELETE_SESSION,ke),Object(j.h)(p.DELETE_ALL_SESSION,ve),Object(j.h)(p.SET_SESSION_FILTER,V),Object(j.h)(p.PAUSE_SESSION,Se),Object(j.h)(p.RESUME_SESSION,_e),Object(j.h)(p.RUN_SCRIPT_FOR_SESSION,Ee)]);case 2:case"end":return e.stop()}}),xe)}var we=function(){function e(){Object(C.a)(this,e)}return Object(T.a)(e,null,[{key:"getAllBuilds",value:function(e){return P.get("/builds",e||{})}},{key:"getBuildById",value:function(e){return P.get("/builds/".concat(e),{})}},{key:"deleteAllBuilds",value:function(){return P.delete("/builds")}}]),e}(),Ae=function(e){return{type:p.FETCH_BUILD_INIT,payload:e}},Ce=function(e){return{type:p.FETCH_BUILD_SUCCESS,payload:e}},Te=function(e){return{type:p.SELECT_BUILD,payload:e}},Le=x.a.mark(Fe),De=x.a.mark(Be),Ne=x.a.mark(Re);function Fe(e){var n,t;return x.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=Object(Z.omitBy)(null===e||void 0===e?void 0:e.payload,(function(e){return!e})),i.next=3,we.getAllBuilds(n);case 3:if(!(t=i.sent).success){i.next=7;break}return i.next=7,Object(j.e)(Ce({count:t.result.count,rows:t.result.rows}));case 7:case"end":return i.stop()}}),Le)}function Be(e){var n;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.payload){t.next=7;break}return t.next=3,we.getBuildById(e.payload);case 3:if(!(n=t.sent).success){t.next=7;break}return t.next=7,Object(j.e)(Ce(n.result));case 7:case"end":return t.stop()}}),De)}function Re(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(j.a)([Object(j.g)(p.FETCH_BUILD_INIT,Fe),Object(j.h)(p.FETCH_BUILD,Be),Object(j.h)(p.SET_BUILD_FILTER,Fe)]);case 2:case"end":return e.stop()}}),Ne)}var He=function(){function e(){Object(C.a)(this,e)}return Object(T.a)(e,null,[{key:"getMetrics",value:function(e){return P.get("/metrics",e||{})}}]),e}(),Ge=function(e){return{type:p.FETCH_METRICS_SUCCESS,payload:e}},Pe=function(e){return{type:p.FETCH_METRICS_FAILURE,payload:e}},Ue=x.a.mark(ze),Ve=x.a.mark(Me);function ze(e){var n,t;return x.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=Object(Z.omitBy)((null===e||void 0===e?void 0:e.payload)||{},(function(e){return void 0===e||null===e||""===e})),i.next=3,He.getMetrics(n);case 3:if(!(null===(t=i.sent)||void 0===t?void 0:t.success)){i.next=9;break}return i.next=7,Object(j.e)(Ge(t.result));case 7:i.next=11;break;case 9:return i.next=11,Object(j.e)(Pe("Failed to load metrics"));case 11:case"end":return i.stop()}}),Ue)}function Me(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(j.a)([Object(j.h)(p.FETCH_METRICS_INIT,ze),Object(j.h)(p.SET_METRICS_FILTER,ze)]);case 2:case"end":return e.stop()}}),Ve)}var Xe=x.a.mark(Ye);function Ye(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(j.a)([Object(j.h)(p.INIT_APP,O),Object(j.h)(p.INIT_BUILD_SAGA,Re),Object(j.h)(p.INIT_SESSION_SAGA,Ie),Object(j.h)(p.POLLING_INIT,w),Object(j.h)(p.INIT_METRICS_SAGA,Me)]);case 2:case"end":return e.stop()}}),Xe)}var Ke,We,Qe,Je,Ze,qe,$e,en=t(13),nn=function(e,n){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,i=arguments.length>1?arguments[1]:void 0;return n[i.type]?n[i.type](t,i):t}},tn=nn({count:0,items:[],isLoading:!1},(Ke={},Object(en.a)(Ke,p.FETCH_SESSIONS_INIT,(function(e){return Object(L.a)(Object(L.a)({},e),{},{isLoading:!0})})),Object(en.a)(Ke,p.FETCH_SESSIONS_SUCCESS,(function(e,n){var t,i;return Object(L.a)(Object(L.a)({},e),{},{count:null===(t=n.payload)||void 0===t?void 0:t.count,items:null===(i=n.payload)||void 0===i?void 0:i.rows,isLoading:!1})})),Ke)),rn=nn({text:{count:0,items:[],isLoading:!1},device:{count:0,items:[],isLoading:!1},debug:{count:0,items:[],isLoading:!1},profiling:{count:0,items:[],isLoading:!1},http:{count:0,items:[],isLoading:!1}},(We={},Object(en.a)(We,p.FETCH_SESSION_TEXT_LOG,(function(e){return Object(L.a)(Object(L.a)({},e),{},{text:Object(L.a)(Object(L.a)({},e.text),{},{isLoading:!0})})})),Object(en.a)(We,p.FETCH_SESSION_TEXT_LOG_SUCCESS,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{text:{count:n.payload.count,items:n.payload.rows,isLoading:!1}})})),Object(en.a)(We,p.FETCH_SESSION_DEVICE_LOG,(function(e){return Object(L.a)(Object(L.a)({},e),{},{device:Object(L.a)(Object(L.a)({},e.device),{},{isLoading:!0})})})),Object(en.a)(We,p.FETCH_SESSION_DEVICE_LOG_SUCCESS,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{device:{count:n.payload.count,items:n.payload.rows,isLoading:!1}})})),Object(en.a)(We,p.FETCH_SESSION_DEBUG_LOG,(function(e){return Object(L.a)(Object(L.a)({},e),{},{debug:Object(L.a)(Object(L.a)({},e.debug),{},{isLoading:!0})})})),Object(en.a)(We,p.FETCH_SESSION_DEBUG_LOG_SUCCESS,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{debug:{count:n.payload.count,items:n.payload.rows,isLoading:!1}})})),Object(en.a)(We,p.FETCH_SESSION_HTTP_LOG,(function(e){return Object(L.a)(Object(L.a)({},e),{},{http:Object(L.a)(Object(L.a)({},e.http),{},{isLoading:!0})})})),Object(en.a)(We,p.FETCH_SESSION_HTTP_LOG_SUCCESS,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{http:{count:n.payload.count,items:n.payload.rows,isLoading:!1}})})),Object(en.a)(We,p.FETCH_SESSION_PROFILING_DATA,(function(e){return Object(L.a)(Object(L.a)({},e),{},{profiling:Object(L.a)(Object(L.a)({},e.profiling),{},{isLoading:!0})})})),Object(en.a)(We,p.FETCH_SESSION_PROFILING_DATA_SUCCESS,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{profiling:{count:n.payload.count,items:n.payload.rows,isLoading:!1}})})),We)),cn=nn({count:0,items:[],isLoading:!1},(Qe={},Object(en.a)(Qe,p.FETCH_BUILD_INIT,(function(e){return Object(L.a)(Object(L.a)({},e),{},{isLoading:!0})})),Object(en.a)(Qe,p.FETCH_BUILD_SUCCESS,(function(e,n){var t,i;return Object(L.a)(Object(L.a)({},e),{},{count:null===(t=n.payload)||void 0===t?void 0:t.count,items:null===(i=n.payload)||void 0===i?void 0:i.rows,isLoading:!1})})),Qe)),an=nn({data:null,filter:{days:30},isLoading:!1,error:null},(Je={},Object(en.a)(Je,p.FETCH_METRICS_INIT,(function(e){return Object(L.a)(Object(L.a)({},e),{},{isLoading:!0,error:null})})),Object(en.a)(Je,p.FETCH_METRICS_SUCCESS,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{data:n.payload,isLoading:!1,error:null})})),Object(en.a)(Je,p.FETCH_METRICS_FAILURE,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{isLoading:!1,error:n.payload})})),Object(en.a)(Je,p.SET_METRICS_FILTER,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{filter:Object(L.a)(Object(L.a)({},e.filter),n.payload)})})),Je)),sn=Object(l.combineReducers)({sessions:tn,builds:cn,logs:rn,metrics:an}),on=nn(!1,Object(en.a)({},p.INIT_APP,(function(){return!0}))),ln=nn({session:null,build:null},(Ze={},Object(en.a)(Ze,p.SELECT_SESSION,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{session:n.payload})})),Object(en.a)(Ze,p.DESELECT_SESSION,(function(e){return Object(L.a)(Object(L.a)({},e),{},{session:null})})),Object(en.a)(Ze,p.SELECT_BUILD,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{build:n.payload})})),Object(en.a)(Ze,p.DESELECT_BUILD,(function(e){return Object(L.a)(Object(L.a)({},e),{},{build:null})})),Ze)),dn="light",bn=nn({name:dn,config:{light:{colors:{primary:"#5b7fff",secondary:"#13151d",tertiary:"#1a1d28",border:"#1f2235",font:"#dde1ef",success:"#2dd975",error:"#f45858",warning:"#e8c14a",tab_active_header:"#5b7fff",greyscale:["#dde1ef","#dde1ef","#8892a8","#4a5068","#1a1d28","#13151d","#0c0d12"],controls:{background:"#1a1d28"},components:{session_card_running_status:"#5b7fff",session_card_active_bg:"#22263a",session_card_default_bg:"#13151d",log_entry_hover:"#1a1d28",profiling_chart_system_cpu_border:"rgb(194, 230, 153)",profiling_chart_system_cpu_background:"rgba(194, 230, 153, 0.3)",profiling_chart_app_cpu_border:"rgb(49, 163, 84)",profiling_chart_app_cpu_background:"rgba(49, 163, 84, 0.3)",profiling_chart_system_memory_border:"rgb(65, 182, 196)",profiling_chart_system_memory_background:"rgba(65, 182, 196, 0.3)",profiling_chart_app_memory_border:"rgb(34, 94, 168)",profiling_chart_app_memory_background:"rgba(34, 94, 168, 0.3)",http_logs_table_bg:"#0c0d12",http_logs_table_border:"#1f2235",http_logs_table_color:"#dde1ef",http_logs_table_header_bg:"#0c0d12",http_logs_table_header_color:"#8892a8",http_logs_table_row_hover:"#1a1d28",http_logs_table_row_active:"#22263a",http_logs_table_even_row_bg:"#131620",http_logs_table_icon_api:"#2dd975",http_logs_table_icon_document:"#5b7fff",http_logs_table_icon_script:"#e8c14a",http_logs_details_header_active:"#1a1d28"}},fonts:{size:{M:"10px",L:"12px",XL:"14px",XXL:"16px"},weight:{M:"200",L:"400",XL:"500",XXL:"700"}},borderRadius:{M:"4px",L:"6px",XL:"12px",XXL:"24px"}}}.light},{}),un=nn({session:{status:[],device_udid:"",deviceName:""},build:{user:"",project:[],platform_name:[]}},(qe={},Object(en.a)(qe,p.SET_SESSION_FILTER,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{session:n.payload})})),Object(en.a)(qe,p.SET_BUILD_FILTER,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{build:n.payload})})),qe)),xn=nn({delete:{isPending:!1,response:null},state:{isPending:!1,response:null},script:{isPending:!1,response:null}},($e={},Object(en.a)($e,p.DELETE_SESSION,(function(e){return Object(L.a)(Object(L.a)({},e),{},{delete:{isPending:!0}})})),Object(en.a)($e,p.SESSION_DELETE_FINISH,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{delete:{isPending:!1,response:n.payload}})})),Object(en.a)($e,p.PAUSE_SESSION,(function(e){return Object(L.a)(Object(L.a)({},e),{},{state:{isPending:!0}})})),Object(en.a)($e,p.RESUME_SESSION,(function(e){return Object(L.a)(Object(L.a)({},e),{},{state:{isPending:!0}})})),Object(en.a)($e,p.RESET_SCRIPT_RESPONSE_FOR_SESSION,(function(e){return Object(L.a)(Object(L.a)({},e),{},{script:{isPending:!1,response:null}})})),Object(en.a)($e,p.RUN_SCRIPT_FOR_SESSION,(function(e){return Object(L.a)(Object(L.a)({},e),{},{script:{isPending:!0}})})),Object(en.a)($e,p.RUN_SCRIPT_FOR_SESSION_FINISH,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{script:{isPending:!1,response:n.payload}})})),Object(en.a)($e,p.SESSION_STATE_CHANGE_FINISH,(function(e,n){return Object(L.a)(Object(L.a)({},e),{},{state:{isPending:!1,response:n.payload}})})),$e)),jn=Object(l.combineReducers)({theme:bn,selected:ln,appInitialised:on,sessionFilter:un,buildFilter:un,loaders:xn}),pn=Object(l.combineReducers)({entities:sn,ui:jn}),hn=Object(d.b)(),On=Object(l.createStore)(pn,Object(b.composeWithDevTools)(Object(l.applyMiddleware)(hn)));hn.run(Ye);var fn=t(7),mn=t(75),gn=t(45),kn=t(8);var vn,Sn,_n,yn=(vn="/device-farm/dashboard")&&new RegExp(/^(https?):\/\/[^\s$.?#].[^\s]*$/gi).test(vn)?new URL("/device-farm/dashboard").pathname:"/device-farm/dashboard",En=function(e){return"".concat(yn,"/builds/").concat(e,"/sessions")},In="".concat(yn,"/metrics"),wn=60,An=50,Cn=function(e){return e.entities.sessions.items},Tn=function(e){return e.entities.sessions.isLoading},Ln=function(e){return e.ui.selected.session},Dn=function(e){return e.ui.loaders.delete.isPending},Nn=function(e){return e.ui.loaders.delete.response},Fn=function(e){return e.ui.loaders.state.isPending},Bn=function(e){return e.ui.loaders.state.response},Rn=function(e){return e.ui.loaders.script.isPending},Hn=function(e){return e.ui.loaders.script.response},Gn=t(3),Pn=100/12,Un=kn.b.div(Sn||(Sn=Object(fn.a)(["\n flex-basis: ","%;\n width: ","%;\n display: flex;\n height: 100%;\n ",";\n padding: ",";\n\n & > * {\n height: 100%;\n width: 100%;\n }\n"])),(function(e){return Pn*e.grid}),(function(e){return Pn*e.grid}),(function(e){return e.scrollable?"overflow: auto":""}),(function(e){return e.padding}));function Vn(e){var n=e.children,t=e.className,i=e.grid,r=e.scrollable,c=e.padding;return Object(Gn.jsx)(Un,{className:t,grid:i,scrollable:r,padding:c,children:n})}var zn,Mn,Xn=kn.b.div(_n||(_n=Object(fn.a)(["\n display: flex;\n align-items: center;\n\n ","\n"])),(function(e){return e.responsive&&"{\n @media (max-width: ".concat(e.responsiveWidth,"px) {\n display: flex;\n flex-direction: column;\n overflow: scroll;\n & > * {\n height: auto;\n width: 100%;\n }\n }")}));function Yn(e){var n=e.children,t=e.className,i=e.responsive,r=e.responsiveWidth;return Object(Gn.jsx)(Xn,{className:t,responsive:i,responsiveWidth:r,children:n})}var Kn=kn.b.div(zn||(zn=Object(fn.a)(["\n height: ",";\n display: flex;\n padding: ",";\n text-align: ",";\n ",";\n\n & > * {\n height: 100%;\n width: 100%;\n }\n"])),(function(e){return e.height}),(function(e){return e.padding}),(function(e){return e.align}),(function(e){return e.scrollable?"overflow: auto":""}));function Wn(e){var n=e.children,t=e.className,i=e.height,r=e.padding,c=e.scrollable,a=e.align;return Object(Gn.jsx)(Kn,{className:t,height:i,padding:r,scrollable:c,align:a,children:n})}var Qn=kn.b.div(Mn||(Mn=Object(fn.a)(["\n height: ",";\n ",";\n"])),(function(e){return e.height}),(function(e){return e.responsive&&"{\n @media (max-width: ".concat(e.responsiveWidth,"px) {\n display: flex;\n flex-direction: columns;\n height: ").concat(e.heightOnResize,";\n }\n & > * {\n width: 100%;\n }\n }")}));function Jn(e){var n=e.children,t=e.className,i=e.responsive,r=void 0!==i&&i,c=e.responsiveWidth,a=e.heightOnResize,s=e.height;return Object(Gn.jsx)(Qn,{className:t,responsive:r,responsiveWidth:c,heightOnResize:a,height:s,children:n})}var Zn,qn,$n=t(12),et=function(e){return"\n background: rgba(12, 13, 18, 0.85);\n backdrop-filter: blur(14px);\n -webkit-backdrop-filter: blur(14px);\n color: ".concat(e.colors.greyscale[0],";\n border-bottom: 1px solid ").concat(e.colors.border,";\n")},nt=kn.b.div(Zn||(Zn=Object(fn.a)(["\n display: flex;\n height: 100%;\n width: 100%;\n align-items: center;\n justify-content: center;\n"])));function tt(e){var n=e.children;return Object(Gn.jsx)(nt,{children:n})}var it,rt,ct,at,st,ot,lt=kn.b.p(qn||(qn=Object(fn.a)(["\n font-size: ",";\n"])),(function(e){return e.size||it.XL}));function dt(e){var n=e.size,t=e.children;return Object(Gn.jsx)(tt,{children:Object(Gn.jsx)(lt,{size:n,children:t})})}!function(e){e.L="10px",e.XL="15px",e.XXL="20px"}(it||(it={}));var bt=kn.b.div(rt||(rt=Object(fn.a)([""])));function ut(e){var n=e.children;return Object(Gn.jsx)(bt,{children:n})}var xt,jt,pt,ht,Ot,ft=40,mt=kn.b.div(ct||(ct=Object(fn.a)(["\n overflow: auto;\n height: 100%;\n"]))),gt=kn.b.div(at||(at=Object(fn.a)(["\n height: ","px;\n border-bottom: 1px solid ",";\n"])),ft,(function(e){return e.theme.colors.border})),kt=kn.b.div(st||(st=Object(fn.a)(["\n display: inline-block;\n border-bottom: 3px solid\n ",";\n padding: 10px;\n cursor: ",";\n color: ",";\n margin-right: 20px;\n font-weight: 600;\n font-size: 13px;\n"])),(function(e){return e.active?e.theme.colors.tab_active_header:"transparent"}),(function(e){return e.active?"default":"pointer"}),(function(e){return e.active?e.theme.colors.tab_active_header:"inherit"})),vt=kn.b.div(ot||(ot=Object(fn.a)([""])));function St(e){var n=e.selected,t=function(e){var n=[];return r.a.Children.forEach(e,(function(e){if(e){var t=e.props;n.push({name:t.name,children:t.children})}})),n}(e.children),c=t.find((function(e){return e.name===n})),a=Object(i.useState)(null===c||void 0===c?void 0:c.name),s=Object($n.a)(a,2),o=s[0],l=s[1],d=t.find((function(e){return e.name===o}))||t[0];return Object(Gn.jsxs)(mt,{children:[Object(Gn.jsx)(gt,{children:t.map((function(e){return Object(Gn.jsx)(kt,{active:(null===d||void 0===d?void 0:d.name)===e.name,onClick:function(){return l(e.name)},children:e.name},e.name)}))}),Object(Gn.jsx)(vt,{children:null===d||void 0===d?void 0:d.children})]})}var _t=kn.b.div(xt||(xt=Object(fn.a)(["\n word-break: break-word;\n padding: 10px;\n"]))),yt=kn.b.div(jt||(jt=Object(fn.a)(["\n height: ",";\n overflow: auto;\n\n @media (max-width: ","px) {\n height: 100%;\n } ;\n"])),(function(e){return e.height}),(function(e){return e.responsiveWidth})),Et=kn.b.div(pt||(pt=Object(fn.a)(["\n width: 100%;\n display: flex;\n padding: 5px;\n margin-top: 10px;\n &:hover {\n background: ",";\n }\n"])),(function(e){return e.theme.colors.greyscale[5]})),It=kn.b.div(ht||(ht=Object(fn.a)(["\n min-width: 230px;\n font-weight: 600;\n"]))),wt=kn.b.div(Ot||(Ot=Object(fn.a)(["\n flex-wrap: wrap;\n"]))),At=function(e,n){var t="Capabilities"==e?n.capabilities:n.capabilities.desired;return t?Object.keys(t).filter((function(e){return"desired"!=e&&""!=t[e]})).map((function(e){return Object(Gn.jsxs)(Et,{children:[Object(Gn.jsx)(It,{children:e}),Object(Gn.jsx)(wt,{children:"object"==typeof t[e]||"boolean"==typeof t[e]?JSON.stringify(t[e],null,2):t[e]})]},e)})):null};function Ct(e){var n=e.session,t=e.height,i=e.responsiveWidth,r="calc(100vh - ".concat(t+ft,"px)");return Object(Gn.jsx)(_t,{children:Object(Gn.jsxs)(St,{selected:"Capabilities",children:[Object(Gn.jsx)(ut,{name:"Capabilities",children:Object(Gn.jsx)(yt,{height:r,responsiveWidth:i,children:At("Capabilities",n)})}),Object(Gn.jsx)(ut,{name:"Desired Capabilities",children:Object(Gn.jsx)(yt,{height:r,responsiveWidth:i,children:At("Desired Capabilities",n)})})]})})}var Tt,Lt,Dt=function(e){return{type:p.ADD_POLLING_TASK,payload:e}},Nt=function(e){return{type:p.REMOVE_POLLING_TASK,payload:e}},Ft=function(e){return e.entities.logs.text.items},Bt=function(e){return e.entities.logs.text.isLoading},Rt=function(e){return e.entities.logs.device.items},Ht=function(e){return e.entities.logs.device.isLoading},Gt=function(e){return e.entities.logs.debug.items},Pt=function(e){return e.entities.logs.debug.isLoading},Ut=function(e){return e.entities.logs.http.items},Vt=function(e){return e.entities.logs.http.isLoading},zt=function(e){return e.entities.logs.profiling.items},Mt=function(e){return e.entities.logs.profiling.isLoading},Xt=t(19),Yt=t(460),Kt=kn.b.div(Tt||(Tt=Object(fn.a)(["\n & ."," {\n width: 10px;\n display: inline-block;\n }\n\n & input {\n position: relative;\n top: 2px;\n }\n"])),Xt.a.CONTROL_INDICATOR);function Wt(e){var n=e.checked,t=e.label,i=e.onChange;return Object(Gn.jsx)(Kt,{children:Object(Gn.jsx)(Yt.a,{checked:n,label:t,onChange:function(e){return i&&i(e.target.checked)}})})}var Qt="20px",Jt=kn.b.div(Lt||(Lt=Object(fn.a)(["\n background: ",";\n width: ",";\n\n & ."," {\n border: none;\n span {\n display: inline-block;\n width: ",";\n }\n input {\n display: inline-block;\n height: ",";\n width: ",";\n vertical-align: super;\n border: 1px solid ",";\n border-radius: ",";\n font-size: 12px;\n padding: 14px 8px;\n\n &:focus {\n outline: none;\n }\n }\n }\n"])),(function(e){return e.theme.colors.controls.background}),(function(e){return e.width}),Xt.a.INPUT_GROUP,Qt,(function(e){return e.height}),(function(e){return e.hasIcon?"calc(100% - ".concat(Qt,")"):"100%"}),(function(e){return e.theme.colors.border}),(function(e){return e.theme.borderRadius.M}));function Zt(e){var n=e.className,t=e.name,i=e.value,r=e.type,c=void 0===r?"text":r,a=e.leftIcon,s=e.placeholder,o=e.rightElement,l=e.onChange,d=e.height,b=e.width;return Object(Gn.jsx)(Jt,{className:n,height:d||"20px",width:b||"100%",hasIcon:!!a,children:Object(Gn.jsx)(Yt.b,{name:t,value:i,type:c,leftIcon:a,placeholder:s,rightElement:o,onChange:l})})}var qt,$t,ei=t(215),ni=t.n(ei),ti=t(216),ii=kn.b.div(qt||(qt=Object(fn.a)(["\n width: ",";\n"])),(function(e){return e.width}));function ri(e){var n,t=e.name,i=e.width;if("spinner"===t)n=ti;else n={};return Object(Gn.jsx)(ii,{width:i,children:Object(Gn.jsx)(ni.a,{animationData:n})})}var ci,ai=kn.b.div($t||($t=Object(fn.a)(["\n width: ",";\n"])),(function(e){switch(e.size){case"XS":return"40px";case"S":return"50px";case"M":return"70px";default:return"100px";case"XL":return"200px"}}));function si(e){var n=e.size;return Object(Gn.jsx)(ai,{size:n,children:Object(Gn.jsx)(ri,{name:"spinner"})})}!function(e){e.XS="XS",e.S="S",e.M="M",e.L="L",e.XL="XL"}(ci||(ci={}));var oi,li,di=t(114),bi=t.n(di),ui=t(62),xi=t(221),ji=t(116),pi=t(135),hi=t(102),Oi=t(222),fi=t(223),mi=t(136),gi=t(122),ki=t(227),vi=t(225),Si=t(224),_i=t(226),yi=t(459);!function(e){e.S="12",e.M="14",e.L="16",e.XL="18",e.XXL="20",e.XXXL="25"}(li||(li={}));var Ei=kn.b.span(oi||(oi=Object(fn.a)(["\n font-size: ","px;\n vertical-align: middle;\n color: ",";\n"])),(function(e){return e.size||14}),(function(e){return e.color}));function Ii(e){var n,t=e.name,i=e.onClick,r=e.size,c=e.color;switch(t){case"home":n=Object(Gn.jsx)(ui.i,{});break;case"android":n=Object(Gn.jsx)(xi.a,{});break;case"ios":n=Object(Gn.jsx)(ui.c,{});break;case"safari":n=Object(Gn.jsx)(ji.c,{});break;case"chrome":n=Object(Gn.jsx)(ui.g,{});break;case"arrow-up":n=Object(Gn.jsx)(ui.b,{});break;case"arrow-down":n=Object(Gn.jsx)(ui.a,{});break;case"success":n=Object(Gn.jsx)(ui.d,{});break;case"error":n=Object(Gn.jsx)(hi.c,{});break;case"time":n=Object(Gn.jsx)(gi.a,{});break;case"filter":n=Object(Gn.jsx)(ui.h,{});break;case"delete":n=Object(Gn.jsx)(ui.l,{});break;case"mobile":n=Object(Gn.jsx)(pi.b,{});break;case"exclamation":n=Object(Gn.jsx)(gi.c,{});break;case"pause":n=Object(Gn.jsx)(Oi.a,{});break;case"play":n=Object(Gn.jsx)(ui.j,{});break;case"collapse":n=Object(Gn.jsx)(fi.a,{});break;case"close":n=Object(Gn.jsx)(pi.a,{});break;case"expand-arrow":n=Object(Gn.jsx)(hi.b,{});break;case"collapse-arrow":n=Object(Gn.jsx)(hi.a,{});break;case"document":n=Object(Gn.jsx)(mi.a,{});break;case"api":n=Object(Gn.jsx)(hi.d,{});break;case"square":n=Object(Gn.jsx)(gi.d,{});break;case"image":n=Object(Gn.jsx)(mi.b,{});break;case"css":n=Object(Gn.jsx)(ji.a,{});break;case"code":n=Object(Gn.jsx)(gi.b,{});break;case"terminal":n=Object(Gn.jsx)(Si.a,{});break;case"debug":n=Object(Gn.jsx)(vi.a,{});break;case"stop":n=Object(Gn.jsx)(ui.k,{});break;case"code-format":n=Object(Gn.jsx)(ji.b,{});break;case"maximize":n=Object(Gn.jsx)(_i.a,{});break;case"minimize":n=Object(Gn.jsx)(ki.a,{});break;case"chevron-up":n=Object(Gn.jsx)(ui.f,{});break;case"chevron-down":n=Object(Gn.jsx)(ui.e,{});break;default:n=null}return function(e,n){var t=n.tooltip,i=n.tooltipPosition;return t?Object(Gn.jsx)(yi.a,{title:t,placement:i,arrow:!0,classes:{tooltip:"custom-tooltip-container",arrow:"custom-tooltip-arrow"},children:e}):e}(Object(Gn.jsx)(Ei,{onClick:i,size:r,className:"icon",color:c,children:n}),e)}var wi,Ai,Ci,Ti,Li,Di,Ni,Fi,Bi,Ri,Hi=t(165),Gi=t(228),Pi=t(229),Ui={github:Gi.a,nightOwl:Pi.a},Vi=kn.b.span(wi||(wi=Object(fn.a)(["\n display: inline-block;\n width: 2em;\n user-select: none;\n opacity: 0.3;\n"]))),zi=kn.b.pre(Ai||(Ai=Object(fn.a)(["\n text-align: left;\n margin: 5px 0;\n background: transparent !important;\n\n & {\n .token-line {\n white-space: break-spaces;\n word-break: break-all;\n }\n }\n"]))),Mi=Object(kn.b)(Hi.a)(Ci||(Ci=Object(fn.a)([""])));function Xi(e){var n=e.code,t=e.language,i=e.theme,r=void 0===i?"github":i,c=e.lineNumber,a=void 0!==c&&c;return Object(Gn.jsx)(Mi,Object(L.a)(Object(L.a)({},Hi.b),{},{theme:Ui[r],code:n,language:t,children:function(e){var n=e.className,t=e.style,i=e.tokens,r=e.getLineProps,c=e.getTokenProps;return Object(Gn.jsx)(zi,{className:n,style:t,children:i.map((function(e,n){return Object(Gn.jsxs)("div",Object(L.a)(Object(L.a)({},r({line:e,key:n})),{},{children:[!!a&&Object(Gn.jsx)(Vi,{children:n+1}),e.map((function(e,n){return Object(Gn.jsx)("span",Object(L.a)({},c({token:e,key:n})),n)}))]}),n)}))})}}))}var Yi,Ki,Wi,Qi,Ji=kn.b.div(Ti||(Ti=Object(fn.a)(["\n padding: 10px;\n border-bottom: 1px solid ",";\n ","\n"])),(function(e){return e.theme.colors.border}),(function(e){return e.expandable?"\n cursor: pointer;\n &:hover {\n background: ".concat(e.theme.colors.components.log_entry_hover,";\n }\n "):""})),Zi=kn.b.div(Li||(Li=Object(fn.a)([""]))),qi=kn.b.div(Di||(Di=Object(fn.a)([""]))),$i=kn.b.div(Ni||(Ni=Object(fn.a)(["\n color: ",";\n"])),(function(e){return e.theme.colors.greyscale[3]})),er=kn.b.div(Fi||(Fi=Object(fn.a)(["\n font-size: 11px;\n margin-left: 15px;\n"]))),nr=kn.b.div(Bi||(Bi=Object(fn.a)(["\n text-align: right;\n"]))),tr=kn.b.div(Ri||(Ri=Object(fn.a)(["\n border: 1px solid ",";\n background: ",";\n margin: 20px 10px 10px;\n padding: 10px;\n border-radius: ",";\n max-height: 200px;\n overflow: auto;\n"])),(function(e){return e.theme.colors.border}),(function(e){return e.theme.colors.greyscale[5]}),(function(e){return e.theme.borderRadius.M}));function ir(e){var n=e.entry,t=Object(i.useState)(!1),r=Object($n.a)(t,2),c=r[0],a=r[1];return Object(Gn.jsxs)(Ji,{onClick:function(){return a(!c)},expandable:!!n.args,children:[Object(Gn.jsx)(Zi,{children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:2,children:Object(Gn.jsx)($i,{children:Object(Gn.jsx)(bi.a,{format:"DD-MM-YYYY HH:mm:ss",children:n.timestamp})})}),Object(Gn.jsx)(Vn,{grid:9,children:Object(Gn.jsx)(er,{children:n.message})}),Object(Gn.jsx)(Vn,{grid:1,children:n.args&&Object(Gn.jsx)(nr,{children:c?Object(Gn.jsx)(Ii,{name:"arrow-up"}):Object(Gn.jsx)(Ii,{name:"arrow-down"})})})]})}),Object(Gn.jsx)(qi,{children:n.args&&c&&Object(Gn.jsx)(tr,{children:Object(Gn.jsx)(Xi,{code:JSON.stringify(n.args,null,2),language:"json"})})})]})}var rr,cr,ar,sr,or,lr=kn.b.div(Yi||(Yi=Object(fn.a)([""]))),dr=kn.b.div(Ki||(Ki=Object(fn.a)(["\n ",";\n padding: 10px;\n"])),(function(e){return et(e.theme)})),br=kn.b.div(Wi||(Wi=Object(fn.a)([""]))),ur=Object(kn.b)(Zt)(Qi||(Qi=Object(fn.a)(["\n background: transparent;\n border-bottom: 1px solid #fff;\n\n &&& input {\n background: transparent;\n color: #fff;\n border: none;\n }\n\n &&& path {\n background: #fff;\n stroke: #fff;\n }\n"])));function xr(e){var n=e.session,t=e.parentHeight,r=Object(i.useState)(""),c=Object($n.a)(r,2),a=c[0],s=c[1],l=function(e){return Object(o.d)(Gt).filter((function(n){return n.message&&n.message.indexOf(e)>=0})).map((function(e){return Object(Gn.jsx)(ir,{entry:e},e)}))}(a),d=Object(o.d)(Pt),b=Object(o.c)(),u=Object(i.useState)(!n.is_completed),x=Object($n.a)(u,2),j=x[0],p=x[1];Object(i.useEffect)((function(){return b(K(n.session_id)),n.is_completed?h(!1):j&&h(!0),function(){h(!1)}}),[n.session_id,n.is_completed]);var h=Object(i.useCallback)((function(e){b(e?Dt(K(n.session_id)):Nt(K(n.session_id))),p(e)}),[]);return d?Object(Gn.jsx)(tt,{children:Object(Gn.jsx)(si,{})}):Object(Gn.jsx)(lr,{children:Object(Gn.jsxs)(Jn,{children:[Object(Gn.jsx)(Wn,{height:"".concat(50,"px"),children:Object(Gn.jsx)(dr,{children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:4,children:Object(Gn.jsx)(ur,{name:"search",type:"text",leftIcon:"search",placeholder:"Filter logs",value:a,onChange:function(e){return s(e.target.value)}})}),n.is_completed?null:Object(Gn.jsx)(Vn,{grid:4,padding:"0px 10px",children:Object(Gn.jsx)(Wt,{label:"Enable Polling",checked:j,onChange:function(e){return h(e)}})})]})})}),Object(Gn.jsx)(Wn,{height:"calc(100vh - ".concat(90+t,"px)"),scrollable:!0,children:Object(Gn.jsx)(br,{children:l.length?l:Object(Gn.jsx)(tt,{children:Object(Gn.jsx)(dt,{children:"No Logs available"})})})})]})})}var jr=kn.b.div(rr||(rr=Object(fn.a)(["\n padding: 3px 3px 3px 3px;\n font-size: 13px;\n line-height: 20px;\n &:hover {\n background: #32383f;\n }\n"])));var pr=kn.b.div(cr||(cr=Object(fn.a)([""]))),hr=kn.b.div(ar||(ar=Object(fn.a)(["\n ",";\n padding: 10px;\n"])),(function(e){return et(e.theme)})),Or=kn.b.div(sr||(sr=Object(fn.a)(["\n background: #24292e;\n color: #cfd6dc;\n padding: 10px;\n word-break: break-word;\n overflow: scroll;\n"]))),fr=Object(kn.b)(Zt)(or||(or=Object(fn.a)(["\n background: transparent;\n border-bottom: 1px solid #fff;\n\n &&& input {\n background: transparent;\n color: #fff;\n border: none;\n }\n\n &&& path {\n background: #fff;\n stroke: #fff;\n }\n"])));function mr(e){var n=e.session,t=e.parentHeight,r=Object(i.useState)(""),c=Object($n.a)(r,2),a=c[0],s=c[1],l=function(e){return Object(o.d)(Rt).filter((function(n){return n.message&&n.message.indexOf(e)>=0})).map((function(e,n){return Object(Gn.jsx)(jr,{children:e.message},n)}))}(a),d=Object(o.d)(Ht),b=Object(o.c)(),u=Object(i.useState)(!n.is_completed),x=Object($n.a)(u,2),j=x[0],p=x[1];Object(i.useEffect)((function(){return b(Y(n.session_id)),n.is_completed?h(!1):j&&h(!0),function(){h(!1)}}),[n.session_id,n.is_completed]);var h=Object(i.useCallback)((function(e){b(e?Dt(Y(n.session_id)):Nt(Y(n.session_id))),p(e)}),[]);return d?Object(Gn.jsx)(tt,{children:Object(Gn.jsx)(si,{})}):Object(Gn.jsx)(pr,{children:Object(Gn.jsxs)(Jn,{children:[Object(Gn.jsx)(Wn,{height:"".concat(50,"px"),children:Object(Gn.jsx)(hr,{children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:4,children:Object(Gn.jsx)(fr,{name:"search",type:"text",leftIcon:"search",placeholder:"Filter logs",value:a,onChange:function(e){return s(e.target.value)}})}),n.is_completed?null:Object(Gn.jsx)(Vn,{grid:4,padding:"0px 10px",children:Object(Gn.jsx)(Wt,{label:"Enable Polling",checked:j,onChange:function(e){return h(e)}})})]})})}),Object(Gn.jsx)(Wn,{height:"calc(100vh - ".concat(90+t,"px)"),scrollable:!0,children:Object(Gn.jsx)(Or,{children:l})})]})})}var gr,kr,vr,Sr,_r,yr,Er,Ir,wr,Ar,Cr,Tr,Lr,Dr,Nr,Fr,Br="/device-farm/api",Rr=function(){function e(){Object(C.a)(this,e)}return Object(T.a)(e,null,[{key:"getTimeDiffInSecs",value:function(e,n){return Math.ceil((n.getTime()-e.getTime())/1e3)}},{key:"convertTimeToReadableFormat",value:function(n,t){return e.getReadableDuration(n,t).trim()}},{key:"getReadableDuration",value:function(e,n){var t=Math.round((n.getTime()-e.getTime())/1e3);if(t<=0)return"".concat(Math.round(n.getTime()-e.getTime())," ms");for(var i=[[Math.floor(t/31536e3),"y"],[Math.floor(t%31536e3/86400),"d"],[Math.floor(t%31536e3%86400/3600),"h"],[Math.floor(t%31536e3%86400%3600/60),"m"],[t%31536e3%86400%3600%60,"s"]],r="",c=0,a=i.length;c<a;c++)0!==i[c][0]&&(r+=" "+i[c][0]+i[c][1]);return"".concat(r)}},{key:"filterSessionList",value:function(e,n){var t=[];return n.name&&t.push((function(e){var t;return e.session_id.indexOf(n.name)>=0||(null===(t=e.name)||void 0===t?void 0:t.toLowerCase().indexOf(n.name.toLowerCase()))>=0})),n.os&&t.push((function(e){return e.platform_name.toLowerCase()==n.os.toLowerCase()})),n.status&&t.push((function(e){return e.session_status.toLowerCase()==n.status.toLowerCase()})),n.device_udid&&t.push((function(e){var t;return(null===(t=e.udid)||void 0===t?void 0:t.toLowerCase().indexOf(n.device_udid.toLowerCase()))>=0})),t.reduce((function(e,n){return e.filter(n)}),e)}},{key:"urlParamsToObject",value:function(e){return Object.fromEntries(e)}},{key:"parseJsonSchema",value:function(e,n){var t={};return Object.keys(e).forEach((function(i){n[i]&&(e[i].valid?e[i].valid&&("function"===typeof e[i].valid&&e[i].valid(n[i])||Array.isArray(e[i].valid)&&e[i].valid.indexOf(n[i])>=0)&&(t[i]=n[i]):t[i]=n[i])})),t}},{key:"parseJson",value:function(e){if(q.a.isString(e))try{return JSON.stringify(JSON.parse(e),null,2)}catch(n){}return e}},{key:"getVideoForSession",value:function(e){return"".concat(Br,"/sessions/").concat(e,"/video")}},{key:"getDownloadVideoForSession",value:function(e){return"".concat(Br,"/sessions/").concat(e,"/video/download")}},{key:"getLiveVideoForSession",value:function(e){return"".concat(Br,"/sessions/").concat(e,"/live_video")}},{key:"getScreenshotForLog",value:function(e,n){return"".concat(Br,"/sessions/").concat(e,"/log/").concat(n,"/screen-shot")}},{key:"hash",value:function(e){return JSON.stringify(e)}}]),e}(),Hr=t(55),Gr=t.n(Hr),Pr=t(230),Ur=kn.b.div(gr||(gr=Object(fn.a)(["\n border: 1px solid ",";\n background: ",";\n padding: 15px 15px 5px;\n margin: 20px 0 5px 0px;\n max-height: 200px;\n overflow: auto;\n border-radius: ",";\n"])),(function(e){return e.theme.colors.border}),(function(e){return e.theme.colors.greyscale[5]}),(function(e){return e.theme.borderRadius.M})),Vr=kn.b.div(kr||(kr=Object(fn.a)(["\n padding-bottom: 10px;\n font-size: 11px;\n color: ",";\n font-weight: 900;\n text-transform: uppercase;\n"])),(function(e){return e.theme.colors.greyscale[2]})),zr=Object(kn.b)(Ur)(vr||(vr=Object(fn.a)(["\n border: 1px solid rgba(244, 88, 88, 0.3);\n border-left: 5px solid ",";\n background: rgba(244, 88, 88, 0.08);\n color: ",";\n\n & .text-log-params-json-entry-key {\n text-transform: capitalize;\n }\n"])),(function(e){return e.theme.colors.error}),(function(e){return e.theme.colors.error})),Mr=Object(kn.b)(zr)(Sr||(Sr=Object(fn.a)(["\n border: 1px solid rgba(232, 193, 74, 0.3);\n border-left: 5px solid ",";\n background: rgba(232, 193, 74, 0.08);\n color: ",";\n"])),(function(e){return e.theme.colors.warning}),(function(e){return e.theme.colors.warning})),Xr=kn.b.div(_r||(_r=Object(fn.a)(["\n font-size: 12px;\n padding-bottom: 10px;\n"]))),Yr=Object(kn.b)(Xr)(yr||(yr=Object(fn.a)([""]))),Kr=Object(kn.b)(Xr)(Er||(Er=Object(fn.a)(["\n font-weight: 500;\n"]))),Wr=Object(kn.b)(Kr)(Ir||(Ir=Object(fn.a)(["\n text-transform: capitalize;\n"])));function Qr(e,n){var t="string"!==typeof n.value?JSON.stringify(n.value,null,2):n.value;return"error"==n.type?Object(Gn.jsxs)(Mr,{children:[Object(Gn.jsxs)(Wr,{children:[n.value.error,":"]}),Object(Gn.jsx)(Yr,{children:n.value.message})]}):Object(Gn.jsxs)(Ur,{children:[Object(Gn.jsx)(Vr,{children:e}),Object(Gn.jsx)(Yr,{children:Object(Gn.jsx)(Xi,{code:t,language:"json"})})]})}function Jr(e){return e.start_time&&e.end_time?Rr.convertTimeToReadableFormat(new Date(e.start_time),new Date(e.end_time)).replace(/hrs|hr/g,"h").replace(/mins|min/g,"m").replace(/secs|sec/g,"s"):""}var Zr,qr,$r,ec=kn.b.div(wr||(wr=Object(fn.a)(["\n padding: 10px;\n border-bottom: 1px solid ",";\n ","\n &:hover {\n background: ",";\n }\n"])),(function(e){return e.theme.colors.border}),(function(e){if(e.expandable)return"\n cursor: pointer;\n "}),(function(e){return e.theme.colors.components.log_entry_hover})),nc=kn.b.div(Ar||(Ar=Object(fn.a)(["\n color: ",";\n }\n"])),(function(e){return e.isError?Gr()(e.theme.colors.warning).brighten(-1).hex():"inherit"})),tc=kn.b.div(Cr||(Cr=Object(fn.a)(["\n color: ",";\n font-weight: ",";\n letter-spacing: -0.2px;\n"])),(function(e){return e.theme.colors.greyscale[3]}),(function(e){return e.theme.fonts.weight.L})),ic=kn.b.div(Tr||(Tr=Object(fn.a)(["\n color: ",";\n"])),(function(e){return e.theme.colors.greyscale[3]})),rc=kn.b.span(Lr||(Lr=Object(fn.a)(["\n margin-left: 10px;\n"]))),cc=kn.b.div(Dr||(Dr=Object(fn.a)(["\n text-align: right;\n cursor: pointer;\n"]))),ac=kn.b.a(Nr||(Nr=Object(fn.a)(["\n padding: 15px;\n display: flex;\n margin-right: auto;\n cursor: pointer;\n"]))),sc=Object(kn.b)(Pr.LazyLoadImage)(Fr||(Fr=Object(fn.a)(["\n max-width: 300px;\n max-height: 600px;\n height: auto;\n"])));function oc(e){var n=Object(i.useState)(!1),t=Object($n.a)(n,2),r=t[0],c=t[1],a=e.entry,s=e.showScreenShots;return Object(Gn.jsx)(ec,{onClick:function(){return c(!r)},expandable:!!a.params,children:Object(Gn.jsxs)(Jn,{children:[Object(Gn.jsx)(Wn,{children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:4,children:Object(Gn.jsx)(nc,{isError:a.is_error,children:a.title})}),Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(tc,{children:a.title_info})}),Object(Gn.jsx)(Vn,{grid:1,children:""!=Jr(a)?Object(Gn.jsxs)(ic,{children:[Object(Gn.jsx)(Ii,{name:"time"}),Object(Gn.jsx)(rc,{children:Jr(a)})]}):null}),Object(Gn.jsx)(Vn,{grid:1,children:a.params?Object(Gn.jsx)(cc,{children:r?Object(Gn.jsx)(Ii,{name:"arrow-up",onClick:function(){return c(!1)}}):Object(Gn.jsx)(Ii,{name:"arrow-down",onClick:function(){return c(!0)}})}):null})]})}),null!=a.response?Object(Gn.jsx)(Wn,{children:Qr("Response",a.response)}):null,null!=a.params&&r?Object(Gn.jsx)(Wn,{children:Qr("Params",a.params)}):null,s&&null!=a.screen_shot?Object(Gn.jsx)(Wn,{children:Object(Gn.jsx)(ac,{target:"blank",href:Rr.getScreenshotForLog(a.session_id,a.log_id),children:Object(Gn.jsx)(sc,{src:Rr.getScreenshotForLog(a.session_id,a.log_id),effect:"opacity"})})}):null]})})}var lc=kn.b.div(Zr||(Zr=Object(fn.a)([""]))),dc=kn.b.div(qr||(qr=Object(fn.a)(["\n ",";\n padding: 16px 10px;\n"])),(function(e){return et(e.theme)})),bc=kn.b.div($r||($r=Object(fn.a)([""])));function uc(e){var n=e.session,t=e.parentHeight,r=Object(i.useState)(!0),c=Object($n.a)(r,2),a=c[0],s=c[1],l=Object(i.useState)(!1),d=Object($n.a)(l,2),b=d[0],u=d[1],x=Object(i.useState)(!n.is_completed),j=Object($n.a)(x,2),p=j[0],h=j[1],O=function(e,n){return Object(o.d)(Ft).filter((function(e){return!n||e.is_error})).map((function(n,t){return Object(Gn.jsx)(oc,{entry:n,showScreenShots:e},t)}))}(a,b),f=Object(o.d)(Bt),m=Object(o.c)();Object(i.useEffect)((function(){return m(X(n.session_id)),n.is_completed?g(!1):p&&g(!0),function(){g(!1)}}),[n.session_id,n.is_completed]);var g=Object(i.useCallback)((function(e){m(e?Dt(X(n.session_id)):Nt(X(n.session_id))),h(e)}),[n.session_id]);return f?Object(Gn.jsx)(tt,{children:Object(Gn.jsx)(si,{})}):Object(Gn.jsx)(lc,{children:Object(Gn.jsxs)(Jn,{children:[Object(Gn.jsx)(Wn,{height:"".concat(50,"px"),children:Object(Gn.jsx)(dc,{children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:2,children:Object(Gn.jsx)(Wt,{label:"Show Images",checked:a,onChange:function(e){return s(e)}})}),Object(Gn.jsx)(Vn,{grid:2.5,children:Object(Gn.jsx)(Wt,{label:"Show Errors Only",checked:b,onChange:function(e){return u(e)}})}),n.is_completed?null:Object(Gn.jsx)(Vn,{grid:3,padding:"0px 10px",children:Object(Gn.jsx)(Wt,{label:"Enable Polling",checked:p,onChange:function(e){return g(e)}})})]})})}),Object(Gn.jsx)(Wn,{height:"calc(100vh - ".concat(90+t,"px)"),scrollable:!0,children:O.length?Object(Gn.jsx)(bc,{children:O}):Object(Gn.jsx)(dt,{children:"No logs"})})]})})}var xc,jc,pc=t(35),hc=t(83),Oc=function(e){return e.ui.theme.config};pc.f.register(pc.e,pc.l,pc.n,pc.k,pc.r,pc.s,pc.i,pc.h);var fc=kn.b.div(xc||(xc=Object(fn.a)(["\n max-width: 700px !important;\n display: flex;\n flex-direction: column;\n margin: auto;\n"]))),mc=kn.b.div(jc||(jc=Object(fn.a)(["\n margin: 25px 0 40px 0;\n"])));function gc(e){return Math.ceil(Number(e)/1024)}function kc(e){return{responsive:!0,aspectRatio:3,plugins:{legend:{position:"top",labels:{usePointStyle:!0}},title:{display:!0,text:"CPU [".concat(e.device_info.total_cpu," processors = ").concat(100*e.device_info.total_cpu," %]")},tooltip:{callbacks:{label:function(e){return e.dataset.label+" : "+e.parsed.y}}}},parsing:{xAxisKey:"timestamp",yAxisKey:"cpu"},scales:{y:{min:-1,max:100*e.device_info.total_cpu}}}}function vc(e,n,t){return{datasets:[{label:"Total CPU Usage %",data:n.map((function(e){return{timestamp:e.timestamp,cpu:e.total_cpu_used}})),fill:!0,borderColor:t.colors.components.profiling_chart_system_cpu_border,backgroundColor:t.colors.components.profiling_chart_system_cpu_background},{label:"".concat(e.capabilities.appPackage," %"),data:n.map((function(e){return{timestamp:e.timestamp,cpu:e.cpu}})),fill:!0,borderColor:t.colors.components.profiling_chart_app_cpu_border,backgroundColor:t.colors.components.profiling_chart_app_cpu_background}]}}function Sc(e){var n=gc(e.device_info.total_memory);return{responsive:!0,plugins:{legend:{position:"top",labels:{usePointStyle:!0}},title:{display:!0,text:"MEMORY [".concat(n," MB]")},tooltip:{callbacks:{label:function(e){return e.dataset.label+" : "+e.parsed.y}}}},parsing:{xAxisKey:"timestamp",yAxisKey:"memory"},aspectRatio:3,scales:{y:{min:0,max:500*Math.ceil(n/500),ticks:{stepSize:500}}}}}function _c(e,n,t){return{datasets:[{label:"Total Memory Usage (MB)",data:n.map((function(e){return{timestamp:e.timestamp,memory:Math.ceil(Number(e.total_memory_used)/1024)}})),fill:!0,borderColor:t.colors.components.profiling_chart_system_memory_border,backgroundColor:t.colors.components.profiling_chart_system_memory_background},{label:"".concat(e.capabilities.appPackage," (MB)"),data:n.map((function(e){return{timestamp:e.timestamp,memory:gc(e.memory)}})),fill:!0,borderColor:t.colors.components.profiling_chart_app_memory_border,backgroundColor:t.colors.components.profiling_chart_app_memory_background}]}}function yc(e){var n=e.session,t=e.parentHeight,r=Object(o.c)(),c=Object(o.d)(Oc),a=Object(o.d)(Mt),s=function(e){var n=Object(o.d)(zt).map((function(n){return Object(L.a)(Object(L.a)({},n),{},{timestamp:Rr.getTimeDiffInSecs(new Date(e.created_at),new Date(n.timestamp))+"s"})}));return q.a.uniqBy(n,"timestamp")}(n);return Object(i.useEffect)((function(){var e;r((e=n.session_id,{type:p.FETCH_SESSION_PROFILING_DATA,payload:e}))}),[n.session_id]),a?Object(Gn.jsx)(tt,{children:Object(Gn.jsx)(si,{})}):Object(Gn.jsx)(Jn,{children:Object(Gn.jsx)(Wn,{height:"calc(100vh - ".concat(t,"px)"),scrollable:!0,children:Object(Gn.jsxs)(fc,{children:[Object(Gn.jsx)(mc,{children:Object(Gn.jsx)(hc.c,{options:kc(n),data:vc(n,s,c)})}),Object(Gn.jsx)(mc,{children:Object(Gn.jsx)(hc.c,{options:Sc(n),data:_c(n,s,c)})})]})})})}var Ec,Ic,wc,Ac,Cc,Tc,Lc,Dc,Nc,Fc,Bc,Rc,Hc,Gc=t(20),Pc=kn.b.div(Ec||(Ec=Object(fn.a)(["\n height: ",";\n"])),(function(e){return e.height})),Uc=kn.b.div(Ic||(Ic=Object(fn.a)(["\n display: flex;\n flex-drirection: column;\n align-items: center;\n align-content: center;\n gap: 5px;\n border: 1px solid\n ",";\n border-top: none;\n background: ",";\n color: ",";\n padding-top: 5px;\n\n .icon {\n cursor: pointer;\n }\n"])),(function(e){return e.theme.colors.components.http_logs_table_border}),(function(e){return e.theme.colors.components.http_logs_table_header_bg}),(function(e){return e.theme.colors.components.http_logs_table_header_color})),Vc=kn.b.div(wc||(wc=Object(fn.a)(["\n padding: 5px 5px 0 5px;\n background: ",";\n color: ",";\n border-radius: 4px;\n cursor: pointer;\n font-weight: 600;\n padding-bottom: 5px;\n transition: background 0.15s, color 0.15s;\n"])),(function(e){return e.active?"rgba(91, 127, 255, 0.15)":"transparent"}),(function(e){return e.active?e.theme.colors.tab_active_header:e.theme.colors.greyscale[2]})),zc=kn.b.div(Ac||(Ac=Object(fn.a)(["\n height: ",";\n overflow: auto;\n background: ",";\n color: ",";\n"])),(function(e){return e.height}),(function(e){return e.theme.colors.components.http_logs_table_bg}),(function(e){return e.theme.colors.components.http_logs_table_color})),Mc=kn.b.div(Cc||(Cc=Object(fn.a)(["\n padding: 10px 5px 10px 5px;\n\n ","\n"])),(function(e){return e.expanded&&"border-bottom: 1px solid ".concat(e.theme.colors.components.http_logs_table_border)})),Xc=kn.b.div(Tc||(Tc=Object(fn.a)(["\n display: flex;\n padding: 5px;\n display-direction: row;\n cursor: pointer;\n\n &:hover {\n background: ",";\n }\n"])),(function(e){return e.theme.colors.components.http_logs_table_row_hover})),Yc=kn.b.span(Lc||(Lc=Object(fn.a)(["\n font-weight: 500;\n font-size: 12px;\n"]))),Kc=kn.b.div(Dc||(Dc=Object(fn.a)(["\n padding: 10px 10px 10px 20px;\n"]))),Wc=kn.b.div(Nc||(Nc=Object(fn.a)(["\n padding-bottom: 7px;\n"]))),Qc=kn.b.span(Fc||(Fc=Object(fn.a)(["\n color: ",";\n font-weight: 600;\n padding-right: 2px;\n"])),(function(e){return Gr()(e.theme.colors.components.http_logs_table_color).brighten(.9).hex()})),Jc=kn.b.span(Bc||(Bc=Object(fn.a)(["\n font-size: 11px;\n white-space: break-space;\n word-break: break-all;\n padding-left: 2px;\n"]))),Zc=Object(kn.b)(dt)(Rc||(Rc=Object(fn.a)(["\n color: ",";\n font-size: 14px;\n"])),(function(e){return e.theme.colors.components.http_logs_table_color}));function qc(e){var n=e.header,t=e.expand,r=e.details,c=e.showCount,a=void 0!==c&&c,s=Object(i.useState)(t),o=Object($n.a)(s,2),l=o[0],d=o[1],b=function(){return d(!l)},u=Object(i.useMemo)((function(){var e=Object.keys(r).filter((function(e){return!!r[e]})).map((function(e,n){return Object(Gn.jsxs)(Wc,{children:[Object(Gn.jsxs)(Qc,{children:[e,":"]}),Object(Gn.jsx)(Jc,{children:r[e]})]},n)}));return Object(Gn.jsx)(Kc,{children:e})}),[r]);return Object(Gn.jsxs)(Mc,{expanded:l,children:[Object(Gn.jsxs)(Xc,{active:l,onClick:b,children:[Object(Gn.jsx)(Ii,{name:l?"collapse-arrow":"expand-arrow",onClick:b}),Object(Gn.jsx)(Yc,{children:"".concat(n," ").concat(a?"(".concat(Object.keys(r).length,")"):"")})]}),!!l&&u]})}!function(e){e.HEADERS="Headers",e.RESPONSE="Response",e.PAYLOAD="Payload"}(Hc||(Hc={}));var $c,ea,na,ta,ia,ra,ca,aa,sa,oa=new RegExp(/form-urlencoded/g);function la(e,n){return oa.test(e)?n:Object(Gn.jsx)(Xi,{code:Rr.parseJson(n),language:"json",lineNumber:!0})}function da(e){var n=e.log,t=e.onClose,r=e.parentHeight,c=Object(i.useState)(Hc.HEADERS),a=Object($n.a)(c,2),s=a[0],o=a[1],l=Object(i.useState)([Hc.HEADERS,Hc.PAYLOAD,Hc.RESPONSE]),d=Object($n.a)(l,1)[0],b=Object(i.useCallback)((function(e){o(e)}),[]),u=Object(i.useMemo)((function(){var e=d.map((function(e){return Object(Gn.jsx)(Vc,{onClick:function(){return b(e)},active:s==e,children:e},e)}));return Object(Gn.jsxs)(Uc,{children:[Object(Gn.jsx)(Ii,{name:"close",onClick:t,size:li.L}),e]})}),[d,s]);return Object(Gn.jsxs)(Pc,{height:"calc(100vh - ".concat(r,"px)"),children:[u,function(e){var t;switch(e){case Hc.HEADERS:t=Object(Gn.jsxs)(zc,{height:"calc(100vh - ".concat(r+20,"px)"),children:[Object(Gn.jsx)(qc,{header:"General",details:{"Request URL":n.url,Method:n.method,"Status Code":n.response_status,"Status Text":n.response_status_text},expand:!0}),Object(Gn.jsx)(qc,{header:"Request Headers",details:n.request_headers,showCount:!0,expand:!0}),Object(Gn.jsx)(qc,{header:"Response Headers",details:n.response_headers,showCount:!0,expand:!0})]});break;case Hc.RESPONSE:t=n.response_body?la(n.response_content_type,n.response_body):Object(Gn.jsx)(tt,{children:Object(Gn.jsx)(Zc,{children:"Response not available"})});break;case Hc.PAYLOAD:t=n.request_post_data?la(n.request_content_type,n.request_post_data):Object(Gn.jsx)(tt,{children:Object(Gn.jsx)(Zc,{children:"Payload not available"})})}return Object(Gn.jsx)(zc,{height:"calc(100vh - ".concat(r+20,"px)"),children:t})}(s)]})}var ba,ua,xa,ja,pa,ha=kn.b.table($c||($c=Object(fn.a)(["\n width: 100%;\n display: flex;\n flex-direction: column;\n height: ",";\n border-right: 1px solid ",";\n background: ",";\n color: ",";\n"])),(function(e){return e.height}),(function(e){return e.theme.colors.greyscale[3]}),(function(e){return e.theme.colors.components.http_logs_table_bg}),(function(e){return e.theme.colors.components.http_logs_table_color})),Oa=kn.b.thead(ea||(ea=Object(fn.a)(["\n color: ",";\n background: ",";\n"])),(function(e){return e.theme.colors.components.http_logs_table_header_color}),(function(e){return e.theme.colors.components.http_logs_table_header_bg})),fa=kn.b.tbody(na||(na=Object(fn.a)(["\n height: ",";\n overflow: auto;\n\n & > {\n tr {\n border-bottom: 1px solid\n ",";\n }\n\n tr:hover {\n background: ",";\n }\n }\n"])),(function(e){return e.height}),(function(e){return e.theme.colors.components.http_logs_table_border}),(function(e){return e.theme.colors.components.http_logs_table_row_hover})),ma=kn.b.th(ta||(ta=Object(fn.a)(["\n width: ","%;\n height: ","px;\n display: flex;\n align-content: center;\n justify-content: center;\n border-left: 1px solid\n ",";\n font-weight: 600;\n"])),(function(e){return e.width}),20,(function(e){return e.theme.colors.components.http_logs_table_border})),ga=kn.b.tr(ia||(ia=Object(fn.a)(["\n display: flex;\n width: 100%;\n align-items: center;\n height: 25px;\n\n &:nth-child(even) {\n background : ",";\n }\n \n color: ","}!important ;\n\n "," \n"])),(function(e){return e.theme.colors.components.http_logs_table_even_row_bg}),(function(e){return e.failed?Gr()(e.theme.colors.error).brighten(1).hex():"inherit"}),(function(e){return!!e.active&&"background: ".concat(e.theme.colors.components.http_logs_table_row_active,"!important;")})),ka=kn.b.td(ra||(ra=Object(fn.a)(["\n width: ","%;\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 1px 4px;\n font-size: 11px;\n height: 21px;\n font-weight: 400;\n cursor: pointer;\n border-left: 1px solid\n ",";\n"])),(function(e){return e.width}),(function(e){return e.theme.colors.components.http_logs_table_border})),va=kn.b.div(ca||(ca=Object(fn.a)(["\n height: ",";\n"])),(function(e){return e.height})),Sa=kn.b.div(aa||(aa=Object(fn.a)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n"]))),_a=kn.b.span(sa||(sa=Object(fn.a)(["\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-left: 5px;\n"]))),ya=[{key:"url",label:"Name",width:65,getComponent:function(e,n){var t=e.url;try{var i=new URL(e.url);t="/"==i.pathname?e.url:"".concat(i.pathname.split("/").pop());var r=e.url.split("?");t="".concat(t).concat(r.length>1?"?"+r.pop():"")}catch(c){}return Object(Gn.jsxs)(Sa,{children:[Ea(e.request_type,n),Object(Gn.jsx)(_a,{children:t})]})}},{key:"method",label:"Method",width:10},{key:"response_status",label:"Status",width:10},{key:"request_type",label:"Type",width:15}];function Ea(e,n){var t=li.S,i=n.colors.components;switch(e.toLowerCase()){case"xhr":case"fetch":return Object(Gn.jsx)(Ii,{name:"api",size:t,color:i.http_logs_table_icon_api});case"document":return Object(Gn.jsx)(Ii,{name:"document",size:t,color:i.http_logs_table_icon_document});case"image":return Object(Gn.jsx)(Ii,{name:"image",size:t});case"stylesheet":return Object(Gn.jsx)(Ii,{name:"css",size:t});case"script":return Object(Gn.jsx)(Ii,{name:"code",size:t,color:i.http_logs_table_icon_script});default:return Object(Gn.jsx)(Ii,{name:"square",size:t})}}function Ia(e){return e?[Object(L.a)(Object(L.a)({},ya[0]),{},{width:100})]:ya}function wa(e){var n=Ia(e).map((function(e){return Object(Gn.jsx)(ma,{width:e.width,children:e.label},"th-".concat(e.key))}));return Object(Gn.jsx)(ga,{failed:!1,children:n},"tr-header")}function Aa(e,n,t,i){return e.map((function(e,r){var c=Ia(!!n).map((function(n){var c=e[n.key];return q.a.isFunction(n.getComponent)?c=n.getComponent(e,i):q.a.isFunction(n.getCellValue)&&(c=n.getCellValue(e)),Object(Gn.jsx)(ka,{width:n.width,onClick:function(){return t(e)},children:c},"td-".concat(r,"-").concat(n.key))})),a=e.response_status>=400&&e.response_status<=600;return Object(Gn.jsx)(ga,{failed:a,active:(null===n||void 0===n?void 0:n.id)==e.id,children:c},"tr-".concat(r))}))}function Ca(e){var n=e.logs,t=e.parentHeight,r=Object(o.d)(Oc),c=Object(i.useState)(null),a=Object($n.a)(c,2),s=a[0],l=a[1],d=Object(i.useCallback)((function(e){l(e)}),[]);return Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:s?4:12,children:Object(Gn.jsxs)(ha,{height:"calc(100vh - ".concat(t,"px)"),children:[Object(Gn.jsx)(Oa,{children:wa(!!s)}),Object(Gn.jsx)(fa,{height:"calc(100vh - ".concat(t+20,"px)"),children:Aa(n,s,(function(e){return d(e)}),r)})]})}),s?Object(Gn.jsx)(Vn,{grid:8,children:Object(Gn.jsx)(va,{height:"calc(100vh - ".concat(t,"px)"),children:Object(Gn.jsx)(da,{log:s,onClose:function(){return d(null)},parentHeight:t})})}):null]})}var Ta,La=kn.b.div(ba||(ba=Object(fn.a)([""]))),Da=kn.b.div(ua||(ua=Object(fn.a)(["\n background: ",";\n border: 1px solid ",";\n padding-left: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n"])),(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.border})),Na=kn.b.div(xa||(xa=Object(fn.a)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n gap: 4px;\n margin: auto;\n"]))),Fa=kn.b.div(ja||(ja=Object(fn.a)(["\n background: ",";\n color: ",";\n padding: 3px 7px 3px 7px;\n border-radius: 12px;\n cursor: pointer;\n\n ",";\n"])),(function(e){return e.isSelected?Gr()(e.theme.colors.primary).brighten(2).hex():"transparent"}),(function(e){return e.theme.colors.greyscale[6]}),(function(e){return!e.isSelected&&"&:hover {\n background: ".concat(Gr()(e.theme.colors.primary).brighten(1.5).hex(),"\n }")})),Ba=Object(kn.b)(Zt)(pa||(pa=Object(fn.a)(["\n background: transparent;\n\n &&& input {\n background: transparent;\n color: #fff;\n background: ",";\n border: 1px solid\n ",";\n height: 25px;\n padding: 0 0 0 5px;\n ::placeholder {\n color: ",";\n opacity: 1;\n line-height: 90px;\n }\n }\n\n &&& path {\n background: #fff;\n stroke: #fff;\n }\n"])),(function(e){return Gr()(e.theme.colors.primary).brighten(.6).hex()}),(function(e){return Gr()(e.theme.colors.primary).brighten(1).hex()}),(function(e){return Gr()(e.theme.colors.primary).brighten(4).hex()})),Ra=[{label:"All",id:0,filterRegex:/xhr|fetch/i},{label:"XHR/Fetch",id:1,filterRegex:/xhr|fetch/i},{label:"JS",id:2,filterRegex:/script/i},{label:"CSS",id:3,filterRegex:/stylesheet/i},{label:"Img",id:4,filterRegex:/image/i},{label:"Media",id:5,filterRegex:/media/i},{label:"Font",id:6,filterRegex:/font/i},{label:"Doc",id:7,filterRegex:/document/i},{label:"Other",id:8,filterRegex:/other/i}];function Ha(e){var n=e.session,t=e.parentHeight,r=Object(o.d)(Vt),c=Object(o.c)(),a=Object(i.useState)(0),s=Object($n.a)(a,2),l=s[0],d=s[1],b=Object(i.useState)(""),u=Object($n.a)(b,2),x=u[0],j=u[1],h=function(e){var n=e.textFilter,t=e.requestTypeFilterId,i=void 0===t?0:t,r=Object(o.d)(Ut),c=[];if(n&&c.push((function(e){return e.url&&e.url.indexOf(n)>=0})),i>0){var a=Ra.filter((function(e){return e.id==i}))[0];c.push((function(e){return new RegExp(a.filterRegex).test(e.request_type)}))}return c.reduce((function(e,n){return e.filter(n)}),Object(Gc.a)(r))}({requestTypeFilterId:l,textFilter:x}),O=Object(i.useCallback)((function(e){d(e)}),[]),f=Object(i.useCallback)((function(e){j(e)}),[]);return Object(i.useEffect)((function(){var e;c((e=n.session_id,{type:p.FETCH_SESSION_HTTP_LOG,payload:e}))}),[n.session_id]),r?Object(Gn.jsx)(tt,{children:Object(Gn.jsx)(si,{})}):Object(Gn.jsx)(La,{children:Object(Gn.jsxs)(Jn,{children:[Object(Gn.jsx)(Wn,{height:"".concat(40,"px"),children:Object(Gn.jsx)(Da,{children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:3,children:Object(Gn.jsx)(Ba,{name:"search",type:"text",placeholder:"Filter logs",leftIcon:"filter",width:"200px",value:x,onChange:function(e){return f(e.target.value)}})}),Object(Gn.jsx)(Vn,{grid:9,children:Object(Gn.jsx)(Na,{children:Ra.map((function(e){return Object(Gn.jsx)(Fa,{isSelected:e.id==l,onClick:function(){return O(e.id)},children:e.label},e.label)}))})})]})})}),Object(Gn.jsx)(Wn,{height:"calc(100vh - ".concat(80+t,"px)"),children:Object(Gn.jsx)(Ca,{logs:h,parentHeight:80+t})})]})})}var Ga,Pa,Ua,Va,za,Ma=kn.b.div(Ta||(Ta=Object(fn.a)(["\n border: 1px solid ",";\n border-bottom: none;\n margin: 20px;\n overflow: hidden;\n"])),(function(e){return e.theme.colors.border}));function Xa(e){var n=e.session,t=e.parentHeight;return Object(Gn.jsx)(Ma,{children:Object(Gn.jsxs)(St,{selected:Ga.TEXTLOGS,children:[Object(Gn.jsx)(ut,{name:Ga.TEXTLOGS,children:Object(Gn.jsx)(uc,{session:n,parentHeight:t})}),Object(Gn.jsx)(ut,{name:Ga.DEVICELOGS,children:Object(Gn.jsx)(mr,{session:n,parentHeight:t})}),Object(Gn.jsx)(ut,{name:Ga.DEBUGLOGS,children:Object(Gn.jsx)(xr,{session:n,parentHeight:t})}),n.is_completed&&n.is_profiling_available&&Object(Gn.jsx)(ut,{name:Ga.PROFILING,children:Object(Gn.jsx)(yc,{session:n,parentHeight:t})}),n.is_completed&&n.is_http_logs_available&&Object(Gn.jsx)(ut,{name:Ga.NETWORK,children:Object(Gn.jsx)(Ha,{session:n,parentHeight:t})})]})})}!function(e){e.TEXTLOGS="Text Logs",e.DEVICELOGS="Device Logs",e.DEBUGLOGS="Debug Logs",e.PROFILING="App profiling",e.NETWORK="Network Logs"}(Ga||(Ga={}));var Ya,Ka,Wa,Qa,Ja=[{label:"Session ID",key:"session_id"},{label:"OS",key:"platform_name",icon:function(e){return{android:Object(Gn.jsx)(Ii,{name:"android",size:li.XL}),ios:Object(Gn.jsx)(Ii,{name:"ios",size:li.XL})}[e.platform_name.toLowerCase()]}},{label:"Os Version",key:"platform_version"},{label:"Start Time",formatValue:function(e){return Object(Gn.jsx)(bi.a,{format:"DD-MMM-YYYY HH:mm:ss",children:e.start_time})}},{label:"End Time",formatValue:function(e){return e.end_time?Object(Gn.jsx)(bi.a,{format:"DD-MMM-YYYY HH:mm:ss",children:e.end_time}):"-"}},{label:"Duration",formatValue:function(e){return Rr.getReadableDuration(new Date(e.start_time),e.end_time?new Date(e.end_time):new Date)}},{label:"Device Name",key:"device_name"},{label:"UDID",key:"udid"},{label:"App Version",key:"app_version"},{or:[{label:"App",key:"app",formatValue:function(e){return e.app.split("/").pop()}},{label:"Browser",key:"browser_name",icon:function(e){return{safari:Object(Gn.jsx)(Ii,{name:"safari",size:li.M}),chrome:Object(Gn.jsx)(Ii,{name:"chrome",size:li.M})}[e.browser_name]}}]}],Za=kn.b.div(Pa||(Pa=Object(fn.a)(["\n background: ",";\n padding: 10px;\n border-bottom: 1px solid ",";\n"])),(function(e){return e.theme.colors.greyscale[5]}),(function(e){return e.theme.colors.border})),qa=kn.b.div(Ua||(Ua=Object(fn.a)(["\n display: inline-block;\n width: 33%;\n padding: 5px 0px;\n"]))),$a=kn.b.div(Va||(Va=Object(fn.a)(["\n margin-right: 20px;\n font-size: 13px;\n font-weight: 600;\n color: ",";\n min-width: 95px;\n text-overflow: ellipsis;\n"])),(function(e){return e.theme.colors.greyscale[2]})),es=kn.b.div(za||(za=Object(fn.a)(["\n font-size: 12px;\n display: flex;\n flex-direction: row;\n align-items: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis !important;\n\n & > span {\n margin-right: 5px;\n }\n"]))),ns=function(e,n){if(n.or&&(n=n.or.filter((function(n){return!!e[n.key]}))[0]),n)return n.formatValue&&"function"==typeof n.template?n.formatValue(e):Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:3,children:Object(Gn.jsxs)($a,{children:[n.label,":"]})}),Object(Gn.jsx)(Vn,{grid:9,children:Object(Gn.jsxs)(es,{children:[n.icon&&n.icon(e),n.formatValue?n.formatValue(e):e[n.key]]})})]})};function ts(e){var n=e.session;return Object(Gn.jsx)(Za,{children:Ja.map((function(e,t){return Object(Gn.jsx)(qa,{children:ns(n,e)},t)}))})}var is,rs,cs,as,ss,os,ls,ds=kn.b.div(Ya||(Ya=Object(fn.a)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 100%;\n gap: 10px;\n"]))),bs=kn.b.div(Ka||(Ka=Object(fn.a)(["\n height: 90%;\n width: 100%;\n"]))),us=kn.b.video(Wa||(Wa=Object(fn.a)(["\n width: 100%;\n height: auto;\n max-height: 100%;\n"]))),xs=kn.b.a(Qa||(Qa=Object(fn.a)(["\n width: 50%;\n color: #fff;\n background: #6fc76b;\n padding: 5px;\n margin-right: 10px;\n margin-left: 10px;\n border-radius: 10px;\n text-align: center;\n font-size: 14px;\n"])));function js(e){var n=e.url,t=e.width,i=e.downloadUrl,r=e.session_id;return Object(Gn.jsxs)(ds,{children:[Object(Gn.jsx)(bs,{children:Object(Gn.jsx)(us,{className:"react-player",src:n,width:t||"100%",controls:!0,controlsList:"nodownload"})}),Object(Gn.jsx)(xs,{href:i,download:r,children:"Download Video"})]})}var ps=kn.b.div(is||(is=Object(fn.a)(["\n height: ",";\n transition: height 1s 0.1s ease-in-out, opacity 2s ease-in-out;\n overflow: hidden;\n position: relative;\n padding: 10px 0 10px 0;\n"])),(function(e){return e.height})),hs=kn.b.div(rs||(rs=Object(fn.a)(["\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n\n /* box shadow*/\n -webkit-box-shadow: 0px 10px 10px -10px #000000;\n -moz-box-shadow: 0px 10px 10px -10px #000000;\n box-shadow: 0px 10px 10px -10px #000000;\n\n & p {\n text-align: center;\n }\n"]))),Os=kn.b.div(cs||(cs=Object(fn.a)(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n"]))),fs=kn.b.img(as||(as=Object(fn.a)(["\n height: 100%;\n widht: 100%;\n object-fit: scale-down;\n top: 10px;\n left: 10px;\n border: 1px solid ",";\n display: ",";\n"])),(function(e){return e.theme.colors.border}),(function(e){return e.hide?"none":"block"})),ms=kn.b.div(ss||(ss=Object(fn.a)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-tems: center;\n"]))),gs=kn.b.span(os||(os=Object(fn.a)(['\n color: red;\n position: absolute;\n top: 10px;\n right: 10px;\n font-weight: 500;\n\n @keyframes blink {\n 20% {\n opacity: 0.8;\n }\n 40% {\n opacity: 0.4;\n }\n 60% {\n opacity: 0;\n }\n 80% {\n opacity: 0.4;\n }\n 100% {\n opacity: 0.8;\n }\n }\n\n &::before {\n content: "";\n display: inline-block;\n background: red;\n margin-right: 5px;\n height: 8px;\n width: 8px;\n border-radius: 50%;\n animation: blink 1s step-start 0s infinite;\n }\n']))),ks=kn.b.div(ls||(ls=Object(fn.a)(["\n position: absolute;\n bottom: 10px;\n right: 5px;\n cursor: pointer;\n"]))),vs=function(e){return e.is_completed?"Error occured while saving the video":"Video will be available once the execution is completed"};function Ss(e){var n=e.session,t=e.height,r=e.onVideoSizeChanged,c=e.isFullScreen,a=Object(i.useState)(!0),s=Object($n.a)(a,2),o=s[0],l=s[1],d=Object(i.useState)(!1),b=Object($n.a)(d,2),u=b[0],x=b[1],j=Object(i.useCallback)((function(e){l(!1),x(e)}),[]);Object(i.useEffect)((function(){n.is_completed||(l(!0),x(!1))}),[n.session_id,n.session_status]);return Object(Gn.jsx)(ps,{height:t,children:!n.is_completed&&n.live_stream_port?Object(Gn.jsxs)(Os,{children:[o&&Object(Gn.jsxs)(ms,{children:[Object(Gn.jsx)(si,{}),Object(Gn.jsx)(dt,{children:"Loading live video.."})]}),u&&Object(Gn.jsx)(hs,{children:Object(Gn.jsx)(dt,{children:"Unable to render live video"})}),Object(Gn.jsx)(fs,{src:Rr.getLiveVideoForSession(n.session_id),onLoad:function(){return j(!1)},onError:function(){return j(!0)},hide:o||u}),!o&&!u&&Object(Gn.jsxs)(Gn.Fragment,{children:[Object(Gn.jsx)(gs,{children:"LIVE"}),Object(Gn.jsx)(ks,{children:c?Object(Gn.jsx)(Ii,{name:"minimize",size:li.M,tooltip:"Minimize",onClick:function(){return r(!1)}}):Object(Gn.jsx)(Ii,{name:"maximize",tooltip:"Expand",size:li.M,onClick:function(){return r(!0)}})})]})]}):n.is_completed&&n.video_path?Object(Gn.jsx)(js,{session_id:n.session_id,downloadUrl:Rr.getDownloadVideoForSession(n.session_id),url:Rr.getVideoForSession(n.session_id)}):Object(Gn.jsx)(hs,{children:Object(Gn.jsx)(dt,{children:vs(n)})})})}var _s,ys,Es,Is=t(161),ws=(t(386),kn.b.div(_s||(_s=Object(fn.a)(["\n padding: 0 30px 0px 0;\n display: flex;\n justify-content: end;\n align-items: center;\n color: #fff;\n & .icon {\n cursor: pointer;\n }\n"])))),As=kn.b.div(ys||(ys=Object(fn.a)(["\n display: flex;\n align-items: center;\n height: 25px !important;\n gap: 12px;\n"]))),Cs=kn.b.div(Es||(Es=Object(fn.a)(["\n margin-left: 20px;\n"])));function Ts(e){var n=e.session,t=e.paused,r=e.debugging,c=e.onStateChanged,a=e.onDebuggingToggled,s=Object(o.c)(),l=Object(o.d)(Dn),d=Object(o.d)(Fn),b=Object(o.d)(Nn),u=Object(o.d)(Bn),x=function(e){e?!t&&h(n.session_id):O(n.session_id),a(e)},j=Object(i.useCallback)((function(e){s({type:p.DELETE_SESSION,payload:e})}),[]),h=Object(i.useCallback)((function(e){s({type:p.PAUSE_SESSION,payload:e})}),[]),O=Object(i.useCallback)((function(e){s({type:p.RESUME_SESSION,payload:e})}),[]);return Object(i.useEffect)((function(){b&&b.success&&s(M(null))}),[b]),Object(i.useEffect)((function(){u&&(u.success?c(!t):(Is.b.error(u.message,{position:"top-right",autoClose:2e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0}),r&&a(!r)))}),[u]),Object(Gn.jsxs)(ws,{children:[Object(Gn.jsx)(Is.a,{}),Object(Gn.jsxs)(As,{children:[!n.is_completed&&(d?Object(Gn.jsx)(si,{size:ci.S}):(li.L,r?Object(Gn.jsx)(Gn.Fragment,{}):t?Object(Gn.jsx)(Ii,{name:"play",tooltip:"Resume",size:li.XL,onClick:function(){return O(n.session_id)}}):Object(Gn.jsx)(Ii,{name:"pause",tooltip:"Pause",size:li.XL,onClick:function(){return h(n.session_id)}}))),!n.is_completed&&(r?Object(Gn.jsx)(Ii,{name:"stop",tooltip:"Stop debugging",size:li.XL,onClick:function(){return x(!1)}}):Object(Gn.jsx)(Ii,{name:"debug",tooltip:"Pause & Debug",size:li.XL,onClick:function(){return x(!0)}})),n.is_completed&&(l?Object(Gn.jsx)(si,{size:ci.S}):Object(Gn.jsx)("div",{children:Object(Gn.jsx)(Cs,{children:Object(Gn.jsx)(Ii,{name:"delete",tooltip:"Delete",size:li.L,onClick:function(){return j(n.session_id)}})})}))]})]})}var Ls,Ds,Ns,Fs,Bs,Rs,Hs,Gs,Ps,Us,Vs,zs,Ms,Xs,Ys,Ks,Ws,Qs,Js,Zs,qs,$s=t(235),eo=t(162),no=t(236),to=kn.b.div(Ls||(Ls=Object(fn.a)(["\n height: ",";\n padding: 5px 10px 0px 10px;\n"])),(function(e){return e.height})),io=kn.b.div(Ds||(Ds=Object(fn.a)(["\n height: 100%;\n display: flex;\n flex-direction: column;\n"]))),ro=kn.b.div(Ns||(Ns=Object(fn.a)(["\n height: ",";\n\n & .cm-theme-dark,\n .cm-editor {\n height: 100%;\n font-size: 13px;\n }\n"])),(function(e){return e.height})),co=kn.b.div(Fs||(Fs=Object(fn.a)(["\n display: flex;\n align-items: flex-end;\n justify-items: center;\n flex-direction: column;\n background: #4f535a;\n border: 1px solid #6f747c;\n"]))),ao=kn.b.div(Bs||(Bs=Object(fn.a)(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: row;\n gap: 15px;\n height: 100%;\n margin-right: 10px;\n\n & > .icon {\n cursor: pointer;\n }\n"]))),so=kn.b.div(Rs||(Rs=Object(fn.a)(["\n font-size: 11px;\n display: flex;\n flex-direction: row;\n align-items: center;\n white-space: nowrap;\n overflow: hidden;\n cursor: pointer;\n\n & > span {\n padding-right: 5px;\n padding-top: 1px;\n }\n"]))),oo=Object(kn.b)(so)(Hs||(Hs=Object(fn.a)(["\n color: ",";\n font-weight: 400;\n max-width: 120px;\n"])),(function(e){return e.theme.colors.greyscale[6]})),lo=Object(kn.b)(to)(Gs||(Gs=Object(fn.a)(["\n padding: 0;\n display: flex:\n flex-direction: column;\n"]))),bo=kn.b.div(Ps||(Ps=Object(fn.a)(["\n height: 20px;\n background: #2a2121;\n border: 1px solid #666666;\n display: flex;\n flex-direction: column;\n padding-left: 10px;\n align-items: flex-start;\n justify-content: center;\n"]))),uo=Object(kn.b)(so)(Us||(Us=Object(fn.a)(["\n color: ",";\n font-weight: 400;\n font-size: 11px;\n"])),(function(e){return e.theme.colors.greyscale[6]})),xo=kn.b.div(Vs||(Vs=Object(fn.a)(["\n height: 100%;\n background: #282c34;\n overflow: auto;\n padding: 10px 0 10px 5px;\n"]))),jo=kn.b.div(zs||(zs=Object(fn.a)(["\n padding: 3px 3px 3px 3px;\n font-size: 11px;\n line-height: 20px;\n white-space: pre-wrap;\n\n color: ",";\n\n &:hover {\n background: #32383f;\n }\n"])),(function(e){return e.error?"#e77a7a":"#cfd6dc"})),po='/* Run webdriver.io script using driver object \n* Avaliable objects are driver, console and Promise \n* Example: \n* await driver.$("~Login").click();\n* console.log(await driver.$("~Title").getText());\n*/\n';function ho(e){var n=e.session,t=e.parentHeight,r=Object(o.c)(),c=Object(o.d)(Rn),a=Object(o.d)(Hn),s=Object(i.useState)(""),l=Object($n.a)(s,2),d=l[0],b=l[1],u=Object(i.useState)(!0),x=Object($n.a)(u,2),j=x[0],h=x[1],O=Object(i.useCallback)((function(){if(!a)return[];var e=[],n=[].concat(Object(Gc.a)((null===a||void 0===a?void 0:a.logs)||[]),[{level:"result",message:[null===a||void 0===a?void 0:a.result]}]);return console.log(n),n.filter(Boolean).forEach((function(n,t){n.message.forEach((function(n,i){n&&"object"==typeof n?n.stack?e.push(Object(Gn.jsx)(jo,{error:!0,children:n.stack},"log-line-".concat(t,"-m-").concat(i,"-stack"))):e.push(Object(Gn.jsx)(jo,{error:!1,children:JSON.stringify(n,null,2)},"log-line-".concat(t,"-m-").concat(i,"-message"))):(n&&!q.a.isString(n)&&(n=JSON.stringify(n)),e.push(Object(Gn.jsx)(jo,{error:!1,children:n||"null"},"log-line-".concat(t,"-m-").concat(i,"-message"))))}))})),e}),[a]);Object(i.useEffect)((function(){r({type:p.RESET_SCRIPT_RESPONSE_FOR_SESSION,payload:null}),b(po)}),[n.session_id]);return Object(Gn.jsx)(to,{height:"calc(100vh - ".concat(t,"px)"),children:Object(Gn.jsxs)(Jn,{height:"100%",children:[Object(Gn.jsx)(Wn,{height:"".concat(30,"px"),children:Object(Gn.jsx)(co,{children:Object(Gn.jsxs)(ao,{children:[Object(Gn.jsx)(Ii,{name:"code-format",size:li.S,color:"#ffffff",tooltip:"Format code",onClick:function(){b(Object(eo.js)(d,{indent_size:2,space_in_empty_paren:!0}))}}),Object(Gn.jsx)(Ii,{name:"terminal",size:li.L,color:"#ffffff",tooltip:j?"Close console":"Open console",onClick:function(){return h(!j)}}),c?Object(Gn.jsxs)(oo,{children:[Object(Gn.jsx)(si,{size:ci.XS}),"Running.."]}):Object(Gn.jsxs)(oo,{onClick:function(){var e;r((e={sessionId:n.session_id,script:d},{type:p.RUN_SCRIPT_FOR_SESSION,payload:e}))},children:[Object(Gn.jsx)(Ii,{name:"play",size:li.S,color:"#86ed86",tooltip:"Run script"}),"Run"]})]})})}),Object(Gn.jsx)(Wn,{height:"calc(100vh - ".concat(t+30,"px)"),children:Object(Gn.jsxs)(io,{children:[Object(Gn.jsx)(ro,{height:j?"60%":"100%",children:Object(Gn.jsx)($s.a,{placeholder:Object(eo.js)(po,{indent_size:2,space_in_empty_paren:!0}),value:d,height:"100",extensions:[Object(no.a)()],onChange:function(e){!function(e){b(e)}(e)},theme:"dark"})}),!!j&&Object(Gn.jsxs)(lo,{height:"40%",children:[Object(Gn.jsx)(bo,{children:Object(Gn.jsxs)(uo,{children:[Object(Gn.jsx)(Ii,{name:"terminal",size:li.L,color:"#ffffff"}),"Console"]})}),Object(Gn.jsx)(xo,{children:O()})]})]})})]})})}var Oo,fo,mo,go,ko,vo,So,_o,yo=kn.b.div(Ms||(Ms=Object(fn.a)(["\n @-webkit-keyframes progress {\n 0% {\n background-position: 0 0;\n }\n\n to {\n background-position: 200px 0;\n }\n }\n\n @keyframes progress {\n 0% {\n background-position: 0 0;\n }\n\n to {\n background-position: 200px 0;\n }\n }\n\n @keyframes session-summary-expand {\n 0% {\n bottom: -5px;\n }\n 50% {\n bottom: 0px;\n }\n 100% {\n bottom: -5px;\n }\n }\n\n & > * {\n .collapsible-row {\n transition: height 0.75s ease-out;\n }\n }\n"]))),Eo=kn.b.div(Xs||(Xs=Object(fn.a)(["\n ",";\n padding: 14px 10px;\n"])),(function(e){return et(e.theme)})),Io=kn.b.div(Ys||(Ys=Object(fn.a)(["\n font-size: ",";\n"])),(function(e){return e.theme.fonts.size.XXL})),wo=kn.b.div(Ks||(Ks=Object(fn.a)(["\n border: 1px solid rgba(244, 88, 88, 0.3);\n border-left: 5px solid ",";\n background: rgba(244, 88, 88, 0.08);\n color: ",";\n border-radius: ",";\n overflow: scroll;\n padding: 10px;\n margin: 0 15px 0 15px;\n z-index: 1;\n font-size: 13px;\n"])),(function(e){return e.theme.colors.error}),(function(e){return e.theme.colors.error}),(function(e){return e.theme.borderRadius.M})),Ao=kn.b.div(Ws||(Ws=Object(fn.a)(["\n animation: progress 2s linear infinite;\n"]))),Co=Object(kn.b)(Ao)(Qs||(Qs=Object(fn.a)(["\n background: repeating-linear-gradient(\n -45deg,\n #3d85c6,\n #3d85c6 10px,\n #9fc5e8 0,\n #9fc5e8 20px\n );\n"]))),To=Object(kn.b)(Ao)(Js||(Js=Object(fn.a)(["\n background: repeating-linear-gradient(\n -45deg,\n #f1c232,\n #f1c232 10px,\n #fff2cc 0,\n #fff2cc 20px\n );\n"]))),Lo=kn.b.div(Zs||(Zs=Object(fn.a)(["\n position: relative;\n display: flex;\n justify-contents: center;\n align-items: center;\n flex-direction: column;\n transition: all 1s;\n height: auto;\n"]))),Do=kn.b.div(qs||(qs=Object(fn.a)(["\n position: absolute;\n animation: session-summary-expand 1s linear infinite;\n cursor: pointer;\n\n & > {\n .icon {\n color: #12bbef;\n }\n }\n"]))),No=1400;function Fo(e){return e&&"FAILED"===e.session_status&&e.session_status_message}function Bo(e,n){return n?Object(Gn.jsx)(yi.a,{title:"Paused",arrow:!0,children:Object(Gn.jsx)(To,{})}):e.is_completed?Object(Gn.jsx)(Gn.Fragment,{}):Object(Gn.jsx)(yi.a,{title:"Running",arrow:!0,children:Object(Gn.jsx)(Co,{})})}function Ro(){var e=Object(o.d)(Ln),n=Object(i.useState)(null===e||void 0===e?void 0:e.is_paused),t=Object($n.a)(n,2),r=t[0],c=t[1],a=Object(i.useState)(!1),s=Object($n.a)(a,2),l=s[0],d=s[1],b=Object(i.useState)(!1),u=Object($n.a)(b,2),x=u[0],j=u[1],p=Object(i.useState)(!1),h=Object($n.a)(p,2),O=h[0],f=h[1],m=Object(i.useCallback)((function(e){f(e)}),[]),g=function(e,n){return(n?0:110)+wn+An+10+(Fo(e)?80:0)}(e,O),k=Object(i.useMemo)((function(){return x&&!(null===e||void 0===e?void 0:e.is_completed)?"calc(100vh - ".concat(g,"px)"):"".concat(400,"px")}),[x,null===e||void 0===e?void 0:e.session_id]),v=Object(i.useCallback)((function(e){j(e)}),[]);Object(i.useEffect)((function(){c(!(null===e||void 0===e?void 0:e.is_completed)&&(null===e||void 0===e?void 0:e.is_paused)),d(!1),j(x&&!(null===e||void 0===e?void 0:e.is_completed))}),[null===e||void 0===e?void 0:e.session_id,null===e||void 0===e?void 0:e.is_completed]);return e?Object(Gn.jsx)(yo,{children:Object(Gn.jsxs)(Jn,{children:[Object(Gn.jsx)(Wn,{height:"".concat(An,"px"),children:Object(Gn.jsx)(Eo,{children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:10,children:Object(Gn.jsx)(Io,{children:e.name||e.session_id})}),Object(Gn.jsx)(Vn,{grid:2,children:Object(Gn.jsx)(Ts,{session:e,paused:r,debugging:l,onDebuggingToggled:function(e){return function(e){d(e)}(e)},onStateChanged:function(e){return function(e){c(e)}(e)}})})]})})}),Object(Gn.jsx)(Wn,{height:"".concat(O?0:110,"px"),className:"collapsible-row",children:Object(Gn.jsxs)(Lo,{children:[!O&&Object(Gn.jsx)(ts,{session:e}),Object(Gn.jsx)(Do,{className:O?"down":"up",children:Object(Gn.jsx)(Ii,{name:O?"chevron-down":"chevron-up",size:li.XL,color:"#ff4433",tooltip:O?"View Summary":"Hide Summary",onClick:function(){return m(!O)}})})]})}),(!e.is_completed||e.is_paused)&&Object(Gn.jsx)(Wn,{height:"4px",children:Bo(e,r)}),Fo(e)&&Object(Gn.jsx)(Wn,{height:"".concat(80,"px"),padding:"10px",children:Object(Gn.jsx)(wo,{children:e.session_status_message})}),Object(Gn.jsx)(Wn,{height:"calc(100vh - ".concat(g,"px)"),children:Object(Gn.jsxs)(Yn,{responsiveWidth:No,responsive:!0,children:[Object(Gn.jsx)(Vn,{grid:4,children:Object(Gn.jsxs)(Jn,{responsive:!0,responsiveWidth:No,heightOnResize:k,children:[Object(Gn.jsx)(Wn,{children:Object(Gn.jsx)(Ss,{session:e,onVideoSizeChanged:v,isFullScreen:x,height:k})}),x?null:Object(Gn.jsx)(Wn,{children:Object(Gn.jsx)(Ct,{responsiveWidth:No,session:e,height:g+400})})]})}),Object(Gn.jsx)(Vn,{grid:8,children:l?Object(Gn.jsx)(ho,{session:e,parentHeight:g}):Object(Gn.jsx)(Xa,{session:e,parentHeight:g})})]})})]})}):Object(Gn.jsx)(dt,{children:"Select a Session"})}var Ho=function(e,n){return e?"PASSED"===n?Object(Gn.jsx)(Ii,{name:"success",size:li.XXL}):"TIMEOUT"===n?Object(Gn.jsx)(Ii,{name:"exclamation",size:li.XXL}):Object(Gn.jsx)(Ii,{name:"error",size:li.XXL}):Object(Gn.jsx)(si,{size:"M"})},Go=function(e){if(e.name)return e.name;var n="".concat(e.platform_name," ").concat(e.platform_version).toLowerCase();return e.browser_name&&(n+=", ".concat(e.browser_name)),n},Po=kn.b.div(Oo||(Oo=Object(fn.a)(["\n padding: 10px 15px;\n border-bottom: 1px solid\n ",";\n cursor: pointer;\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &.active {\n background-color: ",";\n }\n"])),(function(e){return Gr()(e.theme.colors.border).brighten(.7).hex()}),(function(e){return e.theme.colors.components.session_card_default_bg}),(function(e){return e.theme.colors.greyscale[4]}),(function(e){return e.theme.colors.components.session_card_active_bg})),Uo=kn.b.div(fo||(fo=Object(fn.a)(["\n font-weight: 400;\n font-size: 13px;\n text-transform: capitalize;\n"]))),Vo=kn.b.div(mo||(mo=Object(fn.a)(["\n color: ",";\n"])),(function(e){return e.theme.colors.greyscale[2]})),zo=kn.b.div(go||(go=Object(fn.a)(["\n color: ",";\n"])),(function(e){switch(e.status){case"PASSED":return e.theme.colors.success;case"RUNNING":return e.theme.colors.components.session_card_running_status;case"FAILED":case"TIMEOUT":return e.theme.colors.error}})),Mo=Object(kn.b)(zo)(ko||(ko=Object(fn.a)([""]))),Xo=Object(kn.b)(zo)(vo||(vo=Object(fn.a)(["\n font-weight: 600;\n font-size: 11px;\n"]))),Yo=kn.b.div(So||(So=Object(fn.a)(["\n font-size: 12px;\n display: flex;\n flex-direction: row;\n align-items: center;\n white-space: nowrap;\n overflow: hidden;\n\n & > span {\n padding-right: 5px;\n }\n"]))),Ko=Object(kn.b)(Yo)(_o||(_o=Object(fn.a)(["\n color: ",";\n font-weight: 500;\n max-width: 120px;\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])),(function(e){return e.theme.colors.greyscale[2]}));function Wo(e){var n,t=e.session,i=t.session_id,r=t.device_name,c=t.start_time,a=t.session_status,s=t.is_completed,o=(n=c,Rr.convertTimeToReadableFormat(new Date(n),new Date).split(" ")[0]),l=Object(gn.f)();return Object(Gn.jsx)(Po,{className:e.selected?"active":"",onClick:function(){var e;l.push((e=i,"".concat(yn,"/session/").concat(e)))},children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:11,children:Object(Gn.jsxs)(Jn,{children:[Object(Gn.jsx)(Wn,{padding:"10px 30px 10px 0",children:Object(Gn.jsx)(Uo,{children:Go(t)})}),Object(Gn.jsx)(Wn,{padding:"0 0 5px 0",children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:3,children:Object(Gn.jsx)(Xo,{status:a,children:a})}),Object(Gn.jsx)(Vn,{grid:5,children:Object(Gn.jsx)(yi.a,{title:r,arrow:!0,children:Object(Gn.jsxs)(Ko,{children:[Object(Gn.jsx)(Ii,{name:"mobile"}),r]})})}),Object(Gn.jsx)(Vn,{grid:4,children:Object(Gn.jsxs)(Vo,{children:[o," ago"]})})]})})]})}),Object(Gn.jsx)(Vn,{grid:1,children:Object(Gn.jsx)(tt,{children:Object(Gn.jsx)(Mo,{status:a,children:Ho(s,a)})})})]})})}var Qo,Jo=[{label:"RUNNING",value:"running"},{label:"PASSED",value:"passed"},{label:"FAILED",value:"failed"},{label:"TIMEOUT",value:"timeout"}],Zo={ios:{"iPhone XS":"00008020-000930C10A38002E","iPhone X":"122e949df238deb70754a5997bfed5c9136c6a47","iPhone 12 mini":"00008101-00196DD026F0001E"},android:{"Samsung Galaxy S10":"RF8MC25GVTK","Redmi Note 14":"q8oz6t7prsvs6le6"}},qo=function(e){return Object.values(e.ui.sessionFilter.session).filter((function(e){return!!e&&e.length})).length},$o=function(e){return e.ui.sessionFilter.session},el=function(e){return Object.values(e.ui.buildFilter.build).filter((function(e){return!!e&&e.length})).length},nl=function(e){return e.ui.buildFilter.build},tl=t(466),il=Object(kn.b)(tl.a)(Qo||(Qo=Object(fn.a)(["\n && {\n display: inline-block;\n width: auto;\n padding: ",";\n background-color: ",";\n color: ",";\n border-color: ",";\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n }\n"])),(function(e){return"contained"===e.variant?"3px 15px":"2px 15px"}),(function(e){return"contained"===e.variant&&e.theme.colors.primary}),(function(e){return("text"===e.variant||"outlined"===e.variant)&&e.theme.colors.primary}),(function(e){return"outlined"===e.variant&&e.theme.colors.primary}),(function(e){return"contained"===e.variant&&Gr()(e.theme.colors.primary).brighten(1).hex()}),(function(e){return"outlined"===e.variant&&e.theme.colors.primary}));function rl(e){var n=e.variant,t=void 0===n?"contained":n,i=e.onClick,r=e.children,c=e.className;return Object(Gn.jsx)(il,{className:c,variant:t,onClick:i,children:r})}var cl,al,sl,ol,ll,dl,bl,ul=t(461),xl=t(464),jl=kn.b.div(cl||(cl=Object(fn.a)([""]))),pl=Object(kn.b)(ul.a)(al||(al=Object(fn.a)(["\n width: 100%;\n font-size: 12px !important;\n\n & > .MuiSelect-select {\n padding: 7px 10px;\n }\n\n .MuiMenuItem-root {\n font-size: 12px !important;\n }\n"]))),hl=function(e){return"string"===typeof e?{value:e,label:e}:e};function Ol(e){var n,t,r=e.options,c=e.selected,a=e.onChange,s=e.multiple,o=void 0!==s&&s,l=Object(i.useMemo)((function(){return r.map(hl)}),[Rr.hash(r)]),d=Object(i.useCallback)((function(e){a&&a(e.target.value)}),[]);return Object(Gn.jsx)(jl,{children:Object(Gn.jsx)(pl,{onChange:d,value:(n=o,t=c,t?n&&q.a.isString(t)?t.split(","):t:[]),multiple:o,children:l.map((function(e){return Object(Gn.jsx)(xl.a,{value:e.value,children:e.label},e.value)}))})})}var fl=kn.b.div(sl||(sl=Object(fn.a)(["\n width: 400px;\n padding: 10px;\n"]))),ml=kn.b.div(ol||(ol=Object(fn.a)([""]))),gl=kn.b.div(ll||(ll=Object(fn.a)([""]))),kl=kn.b.div(dl||(dl=Object(fn.a)([""]))),vl=Object(kn.b)(rl)(bl||(bl=Object(fn.a)(["\n && {\n margin: 0px 10px;\n }\n"])));function Sl(e){var n=e.onApply,t=e.platform,r=Object(o.d)($o),c=Object(i.useState)(r.status),a=Object($n.a)(c,2),s=a[0],l=a[1],d=Object(i.useState)(r.device_udid),b=Object($n.a)(d,2),u=b[0],x=b[1],j=Object(i.useState)(!1),p=Object($n.a)(j,2),h=p[0],O=p[1],f=Object(i.useState)(r.deviceName),m=Object($n.a)(f,2),g=m[0],k=m[1],v=Object(i.useMemo)((function(){return t&&Zo[t]?Object.keys(Zo[t]):[]}),[t]),S=Object(i.useCallback)((function(){n({status:s,device_udid:u,deviceName:g})}),[s,u,g]),_=Object(i.useCallback)((function(){n({status:[],device_udid:"",deviceName:""})}),[s,u,g]);return Object(i.useEffect)((function(){O([s,u,g].some((function(e){return!!e})))}),[s,u,g]),Object(Gn.jsx)(fl,{children:Object(Gn.jsxs)(Jn,{children:[Object(Gn.jsx)(Wn,{padding:"10px 0px",children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(ml,{children:"Status:"})}),Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(gl,{children:Object(Gn.jsx)(Ol,{multiple:!0,options:Jo,onChange:function(e){return l(e)},selected:s})})})]})}),t&&v.length>0?Object(Gn.jsx)(Wn,{padding:"10px 0px",children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(ml,{children:"Device:"})}),Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(gl,{children:Object(Gn.jsx)(Ol,{options:v,onChange:function(e){var n=Zo[t][e];k(e),x(n)},selected:g})})})]})}):void 0===t?Object(Gn.jsx)(Wn,{padding:"10px 0px",children:Object(Gn.jsx)(ml,{children:"Select a build first"})}):Object(Gn.jsx)(Wn,{padding:"10px 0px",children:Object(Gn.jsx)(ml,{children:"No devices available for this platform"})}),Object(Gn.jsx)(Wn,{padding:"10px 0px",children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(ml,{children:"UDID:"})}),Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(gl,{children:Object(Gn.jsx)(Zt,{onChange:function(e){return x(e.target.value)},value:u})})})]})}),Object(Gn.jsx)(Wn,{align:"center",padding:"20px 0px 0px",children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(kl,{children:Object(Gn.jsx)(vl,{onClick:S,children:"Apply"})})}),h?Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(kl,{children:Object(Gn.jsx)(vl,{onClick:_,children:"Clear"})})}):Object(Gn.jsx)(Gn.Fragment,{})]})})]})})}var _l,yl,El,Il=t(462),wl=kn.b.div(_l||(_l=Object(fn.a)([""]))),Al=kn.b.div(yl||(yl=Object(fn.a)(["\n cursor: pointer;\n"]))),Cl=kn.b.div(El||(El=Object(fn.a)(["\n padding: 10px;\n"])));function Tl(e){var n=e.children,t=e.id,i=void 0===t?"simple-popover":t,c=e.vertical,a=void 0===c?"bottom":c,s=e.horizontal,o=void 0===s?"left":s,l=e.controlled,d=e.open,b=e.onOpen,u=e.onClose,x=r.a.useRef(null),j=r.a.useState(!1),p=Object($n.a)(j,2),h=p[0],O=p[1];return Object(Gn.jsxs)(wl,{children:[Object(Gn.jsx)(Al,{onClick:function(){O(!0),b&&b()},ref:x,children:n[0]}),Object(Gn.jsx)(Il.b,{id:i,open:l?!!d:h,anchorEl:x.current,onClose:function(){O(!1),u&&u()},anchorOrigin:{vertical:a,horizontal:o},children:Object(Gn.jsx)(Cl,{children:n[1]})})]})}function Ll(e){var n=e.match(/dashboard\/builds\/([a-f0-9\-]{36})(?:\/sessions)?/);return(null===n||void 0===n?void 0:n[1])||null}var Dl,Nl,Fl,Bl,Rl,Hl,Gl,Pl=t(458),Ul=kn.b.div(Dl||(Dl=Object(fn.a)(["\n border-right: 1px solid ",";\n width: 100%;\n"])),(function(e){return e.theme.colors.border})),Vl=kn.b.div(Nl||(Nl=Object(fn.a)([""]))),zl=kn.b.div(Fl||(Fl=Object(fn.a)(["\n ",";\n padding: 7px 5px;\n"])),(function(e){return et(e.theme)})),Ml=kn.b.div(Bl||(Bl=Object(fn.a)(["\n padding: 10px;\n"]))),Xl=kn.b.div(Rl||(Rl=Object(fn.a)(["\n display: inline-block;\n font-size: 13px;\n padding-left: 4px;\n"]))),Yl=kn.b.div(Hl||(Hl=Object(fn.a)([""]))),Kl=Object(kn.b)(Pl.a)(Gl||(Gl=Object(fn.a)(["\n position: relative;\n left: 17px;\n top: -2px;\n"])));function Wl(e){var n=new URLSearchParams(e),t={name:"",os:{valid:["ios","android"]},status:{valid:["running","failed","passed","timeout"]},device_udid:"",start_time:{valid:function(e){return!isNaN(new Date(e).getDate())}}};return Rr.parseJsonSchema(t,Rr.urlParamsToObject(n))}function Ql(){var e,n,t=Object(o.c)(),r=Object(o.d)(Cn),c=Object(o.d)(Tn),a=Object(o.d)(Ln),s=(Wl(window.location.search),Object(i.useState)(!1)),l=Object($n.a)(s,2),d=l[0],b=l[1],u=Object(o.d)(qo),x=Object(i.useState)(),j=Object($n.a)(x,2),p=j[0],h=j[1],O=Ll(location.pathname),f=Object(i.useMemo)((function(){return Wl(window.location.search)}),[window.location.search]);Object(i.useEffect)((function(){O&&h(O)}),[O]),Object(i.useEffect)((function(){!O&&(null===a||void 0===a?void 0:a.build_id)&&h(a.build_id)}),[O,a]),Object(i.useEffect)((function(){p&&(Object.keys(f).length>0?(t(V(Object(L.a)({buildId:p},f))),t(W(Object(L.a)({buildId:p},f)))):t(V(p)))}),[p,f,t]);var m=Object(i.useCallback)((function(e){if(p){var n=Object(L.a)(Object(L.a)({},e),{},{buildId:p});console.log("fetching sessions from 4",p),t(W(n)),t(V(n))}}),[p,t]),g=r.filter((function(e){return e.build_id===p}));return Object(Gn.jsx)(Ul,{children:Object(Gn.jsxs)(Jn,{children:[Object(Gn.jsx)(Wn,{height:"".concat(An,"px"),children:Object(Gn.jsx)(zl,{children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:10,children:Object(Gn.jsxs)(Tl,{controlled:!0,onOpen:function(){return b(!0)},onClose:function(){return b(!1)},open:d,children:[Object(Gn.jsxs)(Ml,{children:[Object(Gn.jsx)(Ii,{name:"filter",size:li.S}),Object(Gn.jsx)(Xl,{children:"FILTERS"}),Object(Gn.jsx)(Kl,{badgeContent:u,color:"secondary"})]}),Object(Gn.jsx)(Yl,{children:Object(Gn.jsx)(Sl,{platform:null===(e=g[0])||void 0===e||null===(n=e.platform_name)||void 0===n?void 0:n.toLowerCase(),onApply:function(e){m(e),b(!1)}})})]})}),c?Object(Gn.jsx)(Vn,{grid:2,children:Object(Gn.jsx)(si,{})}):null]})})}),Object(Gn.jsx)(Wn,{height:"calc(100vh - ".concat(110,"px)"),scrollable:!0,children:Object(Gn.jsx)(Vl,{children:g.length>0?g.map((function(e){return Object(Gn.jsx)(Wo,{selected:(null===a||void 0===a?void 0:a.session_id)===e.session_id,session:e},e.session_id)})):Object(Gn.jsx)(dt,{children:"No sessions found for given filter."})})})]})})}var Jl,Zl,ql,$l,ed,nd=function(e){return e.entities.builds.items},td=function(e){return e.ui.selected.build},id=function(e){var n=e.session;return n.running>0?Object(Gn.jsx)(si,{size:"M"}):n.failed>0?Object(Gn.jsx)(Ii,{name:"error",size:li.XL,color:"red"}):n.timeout>0?Object(Gn.jsx)(Ii,{name:"exclamation",size:li.XL,color:"red"}):Object(Gn.jsx)(Ii,{name:"success",size:li.XL,color:"green"})},rd=kn.b.div(Jl||(Jl=Object(fn.a)(["\n padding: 10px 15px;\n border-bottom: 1px solid\n ",";\n cursor: pointer;\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &.active {\n background-color: ",";\n }\n"])),(function(e){return Gr()(e.theme.colors.border).brighten(.7).hex()}),(function(e){return e.theme.colors.components.session_card_default_bg}),(function(e){return e.theme.colors.greyscale[4]}),(function(e){return e.theme.colors.components.session_card_active_bg})),cd=kn.b.div(Zl||(Zl=Object(fn.a)(["\n font-size: 12px;\n display: flex;\n flex-direction: row;\n align-items: center;\n white-space: nowrap;\n overflow: hidden;\n\n & > span {\n padding-right: 5px;\n }\n"]))),ad=Object(kn.b)(cd)(ql||(ql=Object(fn.a)(["\n color: ",";\n font-weight: 400;\n max-width: 120px;\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])),(function(e){return e.theme.colors.greyscale[2]})),sd=kn.b.div($l||($l=Object(fn.a)(["\n font-weight: 400;\n font-size: 11px;\n text-transform: capitalize;\n"]))),od=kn.b.div(ed||(ed=Object(fn.a)(["\n color: ",";\n"])),(function(e){return e.theme.colors.greyscale[2]}));function ld(e){var n,t=e.build,i=e.selected,r=t.build_id,c=t.build_name,a=t.created_at,s=t.session,l=t.platform_name,d=Object(o.c)(),b=(n=a,Rr.convertTimeToReadableFormat(new Date(n),new Date).split(" ")[0]),u=Object(gn.f)();return Object(Gn.jsxs)(rd,{className:i?"active":"",onClick:function(){u.push(En(r)),d(V(r))},children:[Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:9,children:Object(Gn.jsxs)(Jn,{children:[Object(Gn.jsx)(Wn,{padding:"10px 30px 10px 0",children:Object(Gn.jsx)(sd,{children:c})}),Object(Gn.jsx)(Wn,{padding:"0 0 5px 0",children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:4,children:Object(Gn.jsxs)(od,{children:[b," ago"]})}),Object(Gn.jsx)(Vn,{grid:4,children:Object(Gn.jsx)(yi.a,{title:"the test platform",arrow:!0,children:Object(Gn.jsxs)(ad,{children:[Object(Gn.jsx)(Ii,{name:l.toLowerCase()}),l]})})})]})})]})}),Object(Gn.jsx)(Vn,{grid:3,children:Object(Gn.jsx)(tt,{children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsxs)("div",{style:{paddingRight:"5px"},children:[s.total," tests"]}),Object(Gn.jsx)("div",{children:id(t)})]})})})]}),Object(Gn.jsx)(Vn,{grid:12,children:Object(Gn.jsxs)("span",{children:["By ",Object(Gn.jsx)("strong",{children:t.user})]})})]})}var dd,bd,ud,xd,jd,pd,hd,Od,fd,md,gd,kd,vd=[{label:"IOS",value:"ios"},{label:"ANDROID",value:"android"}],Sd=[{label:"Stage",value:"Stage"},{label:"Production",value:"Production"}],_d=[{label:"anass.arakia@tractive.com",value:"anass.arakia@tractive.com"},{label:"Jenkins",value:"jenkins"}],yd=kn.b.div(dd||(dd=Object(fn.a)(["\n width: 400px;\n padding: 10px;\n"]))),Ed=kn.b.div(bd||(bd=Object(fn.a)([""]))),Id=kn.b.div(ud||(ud=Object(fn.a)([""]))),wd=kn.b.div(xd||(xd=Object(fn.a)([""]))),Ad=Object(kn.b)(rl)(jd||(jd=Object(fn.a)(["\n && {\n margin: 0px 10px;\n }\n"])));function Cd(e){var n=e.onApply,t=Object(o.d)(nl),r=Object(i.useState)(t.user),c=Object($n.a)(r,2),a=c[0],s=c[1],l=Object(i.useState)(t.project),d=Object($n.a)(l,2),b=d[0],u=d[1],x=Object(i.useState)(t.platform_name),j=Object($n.a)(x,2),p=j[0],h=j[1],O=Object(i.useState)(!1),f=Object($n.a)(O,2),m=f[0],g=f[1],k=Object(i.useCallback)((function(){n({user:a,project:b,platformName:p})}),[a,b,p]),v=Object(i.useCallback)((function(){n({user:a,project:b,platformName:p})}),[a,b,p]);return Object(i.useEffect)((function(){g([a,b,p].some((function(e){return!!e})))}),[a,b,p]),Object(Gn.jsx)(yd,{children:Object(Gn.jsxs)(Jn,{children:[Object(Gn.jsx)(Wn,{padding:"10px 0px",children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(Ed,{children:"Platform:"})}),Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(Id,{children:Object(Gn.jsx)(Ol,{multiple:!0,options:vd,onChange:function(e){return h(e)},selected:p})})})]})}),Object(Gn.jsx)(Wn,{padding:"10px 0px",children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(Ed,{children:"Project:"})}),Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(Id,{children:Object(Gn.jsx)(Ol,{multiple:!0,options:Sd,onChange:function(e){return u(e)},selected:b})})})]})}),Object(Gn.jsx)(Wn,{padding:"10px 0px",children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(Ed,{children:"User:"})}),Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(Id,{children:Object(Gn.jsx)(Ol,{multiple:!1,options:_d,onChange:function(e){return s(e)},selected:a})})})]})}),Object(Gn.jsx)(Wn,{align:"center",padding:"20px 0px 0px",children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(wd,{children:Object(Gn.jsx)(Ad,{onClick:k,children:"Apply"})})}),m?Object(Gn.jsx)(Vn,{grid:6,children:Object(Gn.jsx)(wd,{children:Object(Gn.jsx)(Ad,{onClick:v,children:"Clear"})})}):Object(Gn.jsx)(Gn.Fragment,{})]})})]})})}var Td=kn.b.div(pd||(pd=Object(fn.a)(["\n border-right: 1px solid ",";\n width: 100%;\n"])),(function(e){return e.theme.colors.border})),Ld=kn.b.div(hd||(hd=Object(fn.a)([""]))),Dd=kn.b.div(Od||(Od=Object(fn.a)(["\n ",";\n padding: 7px 5px;\n"])),(function(e){return et(e.theme)})),Nd=kn.b.div(fd||(fd=Object(fn.a)(["\n padding: 10px;\n"]))),Fd=kn.b.div(md||(md=Object(fn.a)(["\n display: inline-block;\n font-size: 13px;\n padding-left: 4px;\n"]))),Bd=kn.b.div(gd||(gd=Object(fn.a)([""]))),Rd=Object(kn.b)(Pl.a)(kd||(kd=Object(fn.a)(["\n positive: relative;\n left: 17px;\n top: -2px;\n"])));function Hd(){var e=Object(o.c)(),n=Object(o.d)(nd),t=function(e){var n=new URLSearchParams(e),t={name:"",os:{valid:["ios","android"]},status:{valid:["running","failed","passed","timeout"]},device_udid:"",start_time:{valid:function(e){return!isNaN(new Date(e).getDate())}}};return Rr.parseJsonSchema(t,Rr.urlParamsToObject(n))}(window.location.search),r=Object(o.d)(td);Object(i.useEffect)((function(){Object.keys(t).length?u(t):e(Ae())}),[]),Object(i.useEffect)((function(){r||e(Ae())}),[r]),Object(i.useEffect)((function(){return e(Dt(Ae())),function(){e(Nt(Ae()))}}),[]);var c=Object(o.d)(Tn),a=Object(i.useState)(!1),s=Object($n.a)(a,2),l=s[0],d=s[1],b=Object(o.d)(el),u=Object(i.useCallback)((function(n){e(function(e){return{type:p.SET_BUILD_FILTER,payload:e}}(n)),e(Nt(Ae())),e(Dt(Ae(n)))}),[]);return Object(Gn.jsx)(Td,{children:Object(Gn.jsxs)(Jn,{children:[Object(Gn.jsx)(Wn,{height:"".concat(An,"px"),children:Object(Gn.jsx)(Dd,{children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:10,children:Object(Gn.jsxs)(Tl,{controlled:!0,onOpen:function(){return d(!0)},onClose:function(){return d(!1)},open:l,children:[Object(Gn.jsxs)(Nd,{children:[Object(Gn.jsx)(Ii,{name:"filter",size:li.S}),Object(Gn.jsx)(Fd,{children:"FILTERS"}),Object(Gn.jsx)(Rd,{badgeContent:b,color:"secondary"})]}),Object(Gn.jsx)(Bd,{children:Object(Gn.jsx)(Cd,{onApply:function(e){u(e),d(!1)}})})]})}),c?Object(Gn.jsx)(Vn,{grid:2,children:Object(Gn.jsx)(si,{})}):null]})})}),Object(Gn.jsx)(Wn,{height:"calc(100vh - ".concat(110,"px)"),scrollable:!0,children:Object(Gn.jsx)(Ld,{children:n.length>0?Object(Gn.jsx)(Gn.Fragment,{children:n.map((function(e){return Object(Gn.jsx)(ld,{build:e,selected:(null===r||void 0===r?void 0:r.build_id)===e.build_id},e.build_id)}))}):Object(Gn.jsx)(dt,{children:"No Builds found for given filter."})})})]})})}t(389);var Gd,Pd,Ud,Vd,zd,Md=function(){return Object(Gn.jsxs)("div",{className:"header-container",children:[Object(Gn.jsxs)("div",{className:"header-logo-container",children:[Object(Gn.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYYAAABgCAYAAAAZ6tXOAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABKNSURBVHgB7Z3tddy2EoZH9+R/1EGYCuxUELqCK1fgdQWRKzBdgZwKtKnAdgXLW4GcCpapwE4FczECKFE0ycUMwF1y9T7n4Ky0yw+QBGcGg8HgghYCMxfuo3TlhSuXrrwMn23p8j2UJnz+7cpX+f/i4uIrAQAAMHNBJ8IpAhH2G1d+J68QLikPDXkl8cWV2imKhgAAACwTUQauXLuy4+Oxc2VDAAAAloO4iVy5ceUbn469K7fsXVYAAABOAXuFcMvL45ahIAAA4Hiwdxm95+XzngAAAMyLE7ZX7N02a2HPGIMAAID8sO8l3PJ6kTGQXJFRAACwWrKEqzqBKnMOPrlS0LppXHmFEFcAwHPmP5SIUwpv3MeO1q8UhMKVO3dNVwQAAM+UJMXAfvB2S/kmpy0BuZZPjIFpAADQweuIOkoFygEAAGLg56EUWqAcAADPCvXgcxCUFc1P0yn/kk+WJ4ir52fy4wFtor25qdyA9AcCAJwEfkyyKYgs+IogkYXgHs4fPB97Vz6ynwcRLezZh8lehX33PB9vCABwVNx795LHc6vdMjIYnJbwgHIjuZNEoJeUiVDPLedH6vqSAABHwb1vb/BeLhj2OY/2nA95mBXPOKEs1LnivIn79oxJcADMTnh/NfKkIHBcOG+a7I/HFK6hgeXsQXwiAMCssN4Q3RE4HpxvXGHPGV1GhuvYcL5ezzUBAGZB5ATbQG/+GLC3tnO4YnZLeGjheu44nW9LuB4AzhH2i3lZ2BDIwqGZzxKamioA/7y4uJD8Q9/pxEh4myu/SZ0oDbknmN8AwDzA6DoxP439wN7ts6E0PjhBXNHCcHUSi0QUVYpwl2N8cceqKSOhJ7KWF+P7EhQ+ODusbQptcW443R9f0cJhPxCeQvYBL/aRVGvhlgDIDNvHGAoCWRh0JbH31RVk5/MSewp9pOfgPmqyIw24JABANkIvvCEdNWZC52PMlZQyy7dx5S0ZYD9RRUoT46Jh73Ypw7/fjW6d167ckV0RijuqJgCeCcEYKhW7bA1CW2SIpkdukjkgEtZNLMnSnQtdx33vOPL/+4l93vOPEVN7NsyCZHvXtSXbmADDlQQWDuvbaEkGFOfZEMjKkCspZUD2g9YyYL8oztBCP/K/NIz3A/vckE/kdzmwz522IYaeRkqkEuY1AJCZ4I6WnkAzsklNfsXFLYF5Yfug854MRJ6v7GwfY92r68I+GZ91zsY3ygSjxwAWDh+px9A7ZxnOK+WaMbY3K0/GGNhb7wXZUKelVpxPtqvD3zHjH+IOKzVjDhJ26fZ55/60CLtL7fkAAPGEd6smcBT6rqT/ko3G2J0rIrf72bBP7HYPhGuwxkJjnWgAwFnQVwwl2bAuYmMRwrH7WAW8dazBqlQBAGBRPCgG9tE8BdmoyUYdud3/Rv6e4ivZ+Eg2pSLuK0zlBwCsnu4Yg3Wxiy/WiSWynxOmYqH/MbFZ3021DdsXE/t8SKiTjDWIUilJj7iTtpSGKKWGbFjSaTRk518CAJwdORTDZ0qjcuUXGvbRN6686n4RBLd8NxTiKvyVYdb1F7IphuSVpFzdpcfykQywj+dWDZ678/1KC4Qf1/gtOl+3a/3WlAA/TqQsej+JQSCGiLW3eRRCz7Stf9H7uTUsFn8dIJ3wnrRtoW8UNhQ5WbhPVzG8IBs1JRCSsL0OQk389HJx8p24jLZDSdpCT0OUQ0mPUUoNeaVQUzqi7G5IT0HPlCBsY++ZzFJ/PXAMefbSG9zQxL102zVahRbCG6WtiAFyeWDbhny7/qHnGY6jmevzLoeA7tybkiKNFrePfNTkDZ3Pml70gessSMcN+6SVQ4iif6c8/xA/3OcgU7RZHD6kyJAgqLWRjV+CQRh7jpIi23LYXj5qV/4i3w7iXeVsm79wRwrYr8e8CaWkmQmxz+35VNa88X6Y5nLkIlynCsoE62aP7wf2v+L4ex6dKiHUa8d2brkzm5/197ikBDLUv8uOI2cJG67TXKdM5y9H7p2WpLk5bEvMWUQeWxZN23Mae/ZZI+Jczmwjyo3EPs3GbqSSBWVm4nyfOP4hfGIDdEJ4PYrhW2/fG9ZxHVkn7XHH2HMwLPhIioH9hMtc9e+z5wOGEp+BYgjH2bGOpEW4eIYlSXk4ZVAqe54wEv4TTlyQjYNd5HBsufhy4Of736bOz/4FkZmOt6FcH9h+6nxX4XwxD/4fMsCITIrh4R6xt9CiBH2HyXYX2swd5UtVUpBPtZKSXDIa9kI7Z/37FOSv5zksNvWXcntpmxsywF45FaTjzwPHlGc0Np6aQuHK7VgbaMNVrcKsidjmPU1fVEEjvkRXafGpittBfNebUORv0XbXCeeLeeGsfmEohkjY57zakJIpH3AwDESoJgcCDLCd6bgPBOEyhyAYouKFLLs7I+LViPepe6xzkrSGg4yVjXpdgtFU0bxUPOA+O4ZiKCO2uep/Ebo5MiAzVrebEeWwocMcxfID4wSlYLGI6wO/f6J5heofNBP8mFDymIK6JF1661URBlq1k1ZLo7K8Um4/OjHYajQZ2YTzPXBozeccFBHbXA64h2K6uU+2UbjEYrZryEZBIAarm2R0gmPoFs9q0c8F26JZcvEyKKVzJTrip4OqfQZDVqNMRtMIhXY8lxtxjOuuoX0MxRDVjeuG0il8dZf8dNAptsuo7VqC5VAPfRkEa0UrJFinx+4pdPlzyqWxdkKvoSYdv5MOrReiHvoyyLOKTsP71rhuFcOcgjLGV1/3/tdYLw/bKhrAnC9BQ2A2JsYX1uwOOTQuNidfwxK35442n1vJkRFl/DgZU8NYfU7VaxQu2/O3E9ysiqGI2EYW2rijaWvobe9/jbbuT8yTG15ObP+d4hpJQWBp1ENfctoa5dIexFD4mx7fA2mr0gZnd68EoZIimO9ng9OjQSJ1LyjOpSb7vB75TY459p7IvSkpni2NR/k1dATEoGA/cbFQ7FZSnKFZko7BpU4T2nFNfhJjO+tdkHYg7fd35TEfFWII77MQG08+NnnpG/diadm2tGjZO8aGhxfdke+ifNBsXDCHTgivZx6DlWrk3Du2Ic/4cuKaCk5fOKk8cN9u2cZu6tih7jLZaj+yv7wLBRngIyzUwzPMFzHUO2oBLtbPMSgzHWfHh9tX2w5Ux+0ewLJ6WfSgTqigPGyZOHbLIy8l216U3cj5rjvnu2ZFpAHbZjBmW8nNAp+/YigHzmsxJL6xQlhx2mSvcuK4lroL0T2McI6tpl4Rx1yrYrCs0lgeOOZL3eGyTeirSHc/Vc+su+Md68nq12U/5dtKVj8p26zQk/q5ed2KYReO0Z38dhm+u7d8R857zXo2pMR4HqHMfExTO++dq6IEeKWKIRxXa/B9PHC8W9axGTnOTnEMk5zhYQNhENNOHXKudfyG08k2P4FtWMLissHrVAx7TrNed6zDPLjHNmOhnDie1hhLal/s20dFifC6FYO2nU6myGCd+2fMuNG68gsywIoeajdcNSZ6qE8/XNQE+xnOW0pHlFuycki4Jss9fO68SsyIGzVm1EEbnZJr3yfwY+rsWBoypmNvkbj5DCnpV41h7Wh5TuXQDxy/Zn3LWPspKZ46Zf0bipRR3bTbNdkoE/ZtozJyWtqiHP5JFDbWaBQoBh0frI1cCMI1etyIEl4qwRjZMoZWoSXVHTxBZkKXiu3FcP088L02dUY98n1J8ch6NBuyExWB+qAYJJc5+5zpmhdN0E4E6TNH3K7Ehddkx5IrBQuj6NlSGlrhGrss7BQSFpgjLYa27tpkcGCcmryAjJV192Nf3XUMgkG7oXi2E4r9F4rnio4QRt2f+fyF9JSJ7iTtCzLrMdmWIVGoCWjIYQFrjZgcijuX8lfVPdMCVIDM+ZM2vf9L0jHlhtS249npK4Yt2Ujx689xU1KOab0WWHQ6/qZ0tM85qht9hGMIhWLbhkButO7rvhdBIye+HDCCCloYfcUg1pCl4W+sI+U0T6M3WXWG7mFLA4tOTS4Be2zWWm/QwZA/qWxlHOtTYJw0WtHCE8UQbpbV8o3JhjrEHJa2tpvYYr2GmgAAa0MbZbbpfcawSqNxKLvqZ7KxMY41iDZtKB8NGa4hobcgZAtjBLOSw21ZUB40PY+CQHaCwNZ4F970PmNYpWz4qf9FCMmrST+4IshiD79pdpBeijvfK5petaqhR+UhA8uXE9u96kYPKLDOWt4ijPBkNKSjoHRyBUs0mo3F6IK7chbEYxH7TGWCmCYT7uiaCz008mpLR1A2P418fyhD6RiSN+TG3Yx3mp2CYP01xOe22li+kwHKbV/Qd3x8MiAkSkJ+/9/QtjEoH3YfDDqfjoZ0SHtJ9fe+oDw0pKMkuCznYEvehRzbm6wonljPhci5WOV05WTcWzoVbM9YyTlmQx8L9plfrSxqDQBeV0qMijLAuqRok+kNIs4VnVKgQ5npWEl1zwmvOCXGyLksCTNjKCLPr82ZtaGZmVrBLaW78ontUUpHg9OXUzyd5gYtGh+xCNZrsmMNTviB0EtuFLtcpp6fvTK6ItDHOq46hcbFrI2ivJlbvo4qBkNOkS73SxUuWTmEuqUsp4ixhWWgnc38h6Vdsl/HY0N50U4oFcvSNM+m095vOXJNkudCoqwbIzoyMpxf4wLPIl/ZpwwfbAuH1nxOsYgLWqhy6LwkBdlBJNIyqEmH+qUK236i/Fgs1S0rU2+zd7O07V2ufxU9+iOT832uDelxtCH2Bfl2XJIS9tlcpfcpK2tKW/jBOJ5UDMEiTrlhBfnKL8ZCCTdSbkhBdj6gt7AMjNZeQb5dbg5tGLZJbS+DJFiq4kq4PSTc2Y/7iKu0bwTJ36dcW3hxGKz2KSwBKVvSU5Bvx7cxCiIoBDEqpD1XnWP80BZ+osNIFMcbsr8YhVTEVahyN/+kVjb79N6pUSnNc09dvEDkRSxJR0HerSJtW1w6YuE14TcxZF6EY5Y0L9YIwA35uUNS79qVfzu//RKOWUzsL0pDHUF45ojVnjqOFBui+gQxNN3zkHZscRVuyLcFUWxfQ+m2h5/Jt+mxUH8JwLl2ddDJRs63bOOOT9CFZT/otuM8FLRQ+BlGJXXOv+dlUkbUfcenQz0Yz2cWldQ5p3Xt+y4bMsK2pUdz8WQN8ENjDPeEbpY1zUSX0pW9q8B7PoKA5ae+tJLSgQtpuaw5QkzqnsuNoUXcUiWBNiVQSoSSNv/S0PlP5VWRnsSDSylKMQQqype6oiLvG5tFQXQUwj6cK0f8N1xICyYYL6ucbBiMjVO6dDAY/UiKAfw51XAM7pwcRrgF6fXf9yCjFUPQZpK6Imfa4Yp8D+KW/USzlMlHogyk+ykDbd8on0IQ2msHy0YadUMrJPilT2Utnqq3sjgSQ1ezPD9XB2nHpzJy7nuQMYPPD4QBErn4G8rLJhQR8DX5wROJT5cG23S1MD8u59iumfsifJY0H+/gQlo+kXm3UmnmOrb0SNkP+2SbSBdBQz6/WEOgRYIRStKRdV6TO9YmtIWUtW4sNK58VykGQbo6oduZY3nDIcpQHgbFON8YqYUPligDcBqC8TKXcpCxgJLmUzqtchCDKLfxNUTtylsohR/Yki5/kpDdwg/KoaHjGQq1K6/FwNKMMTwQujraCRxrpMa4wvoIgk6UQ6422pC3qrd0BIKf+Veazy0mikd6wegpDGBY+nO2NReC/JmzLVA49tvQHu7diibFEHhN573kYEPIhbRaROC5IingxfXZkB0REL9dHDnldai/CARpgw3loY16+VUds/780EQnzTo2NFNboHAsqftvfaPHrBg6Vtk5Dlw1BL/rWRAsLmmnEvXTRO7WWowiQK8vbOt7ZEFe2I5QqElPG0Ip+8v1VKe8nrUQUlrUEZuaJrRZ6LQFMcrFdWV5jm3bFvk22h4uKBF+zMNyLtxHIF3oc52AFcA+PUtbZEZoQY8KQ/Lif71Y8II4IfiiDbaQGc5Fb5OG/KxX+azRjs+b0J4L8m1iqj3cK7pYYzdZMYTKbeh8cq/I4IumGwkAAGdFyhjDAyeOwc7JOygFAADICOtzqCyJigAAAOSH16kcKgIAADAfvC7lUBEAAID54XUoh4oAAAAcD162cqgIAADA8eFlKoeKAAAAnA5elnKoCAAAwOnhZSiHawIAALAcRDDz6dgQAACA5cGGBesTkUWuSwIAALBcnKB+GQT23OzZJ5kCAACwdJzALoLgnlMpFAQAAGA9zKgc9lAKAACwUmZQDnfsc9YDAABYKyLIg0BPZQulAAAAZ0QQ7GalQAAAAM4Ptk2EqwgAAMD5olQOFQEAADh/2E+E208oBJkHcUUAAACeD+wjliSNRndg+i70KDDIDAAAM/B/S3lMiHVv4akAAAAASUVORK5CYII=",alt:"Tractive Appium Dashboard",className:"header-logo-image"}),Object(Gn.jsx)("div",{className:"header-logo",children:"Tractive Appium Dashboard"})]}),Object(Gn.jsxs)("nav",{className:"header-nav",children:[Object(Gn.jsx)(mn.b,{exact:!0,to:yn||"/",className:"header-nav-link",activeClassName:"header-nav-link--active",isActive:function(e,n){return!!e||!n.pathname.startsWith(In)},children:"Dashboard"}),Object(Gn.jsx)(mn.b,{to:In,className:"header-nav-link",activeClassName:"header-nav-link--active",children:"Metrics"})]})]})};function Xd(){var e=Object(gn.f)(),n=Object(o.c)(),t=Object(gn.g)(),r=Object(o.d)(Cn),c=function(e){var n=e.match(new RegExp(/dashboard\/session\/(.*)/));return(null===n||void 0===n?void 0:n.length)?n[1]:null}(t.pathname),a=Object(o.d)(nd),s=Ll(t.pathname);Object(i.useEffect)((function(){if(c){var e=r.find((function(e){return e.session_id===c}));n(e?M(e):{type:p.FETCH_SESSIONS_INIT,payload:c})}}),[c,r]);var l=Object(o.d)((function(e){return e.entities.sessions.items.find((function(e){return e.session_id===c}))}));return Object(i.useEffect)((function(){if(l&&(n(M(l)),l.build_id)){var e=a.find((function(e){return e.build_id===l.build_id}));e&&n(Te(e))}}),[l,a]),Object(i.useEffect)((function(){if(!t.pathname.includes("/session/")){var i=s&&a.find((function(e){return e.build_id===s}))||a[0];if(i){var r=En(i.build_id);!s||s===i.build_id&&t.pathname.includes("/sessions")||e.push(r),n(Te(i))}}}),[s,a,t.pathname]),Object(Gn.jsx)(Gn.Fragment,{children:Object(Gn.jsxs)(Jn,{children:[Object(Gn.jsx)(Wn,{height:"".concat(wn,"px"),children:Object(Gn.jsx)(Md,{})}),Object(Gn.jsx)(Wn,{height:"calc(100vh - ".concat(wn,"px)"),children:Object(Gn.jsxs)(Yn,{children:[Object(Gn.jsx)(Vn,{grid:2.5,children:Object(Gn.jsx)(Hd,{})}),Object(Gn.jsx)(Vn,{grid:2.5,children:Object(Gn.jsx)(Ql,{})}),Object(Gn.jsx)(Vn,{grid:7.5,children:Object(Gn.jsx)(gn.b,{history:e,children:Object(Gn.jsx)(gn.c,{children:Object(Gn.jsx)(gn.a,{children:Object(Gn.jsx)(Ro,{})})})})})]})})]})})}function Yd(){return Object(Gn.jsx)(Xd,{})}var Kd,Wd,Qd,Jd,Zd,qd=kn.b.div(Gd||(Gd=Object(fn.a)(["\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 20px;\n flex-wrap: wrap;\n"]))),$d=kn.b.span(Pd||(Pd=Object(fn.a)(["\n font-size: 11px;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: #8892a8;\n margin-right: 4px;\n"]))),eb=kn.b.div(Ud||(Ud=Object(fn.a)(["\n display: inline-flex;\n background: #13151d;\n border: 1px solid #1f2235;\n border-radius: 8px;\n overflow: hidden;\n"]))),nb=kn.b.button(Vd||(Vd=Object(fn.a)(["\n background: ",";\n color: ",";\n border: none;\n padding: 7px 14px;\n font-size: 12px;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.15s, color 0.15s;\n\n &:hover {\n color: #dde1ef;\n background: rgba(91, 127, 255, 0.1);\n }\n\n & + & {\n border-left: 1px solid #1f2235;\n }\n"])),(function(e){return e.active?"rgba(91, 127, 255, 0.2)":"transparent"}),(function(e){return e.active?"#dde1ef":"#8892a8"})),tb=kn.b.input(zd||(zd=Object(fn.a)(["\n background: #13151d;\n border: 1px solid #1f2235;\n border-radius: 8px;\n padding: 7px 12px;\n font-size: 12px;\n color: #dde1ef;\n outline: none;\n min-width: 140px;\n\n &::placeholder {\n color: #4a5068;\n }\n\n &:focus {\n border-color: #5b7fff;\n }\n"]))),ib=[{label:"24h",days:1},{label:"7d",days:7},{label:"30d",days:30},{label:"90d",days:90}],rb=["ANDROID","IOS"];function cb(e){var n=e.filter,t=e.onChange,i=new Set((n.platform||"").split(",").filter(Boolean));return Object(Gn.jsxs)(qd,{children:[Object(Gn.jsx)($d,{children:"Range"}),Object(Gn.jsx)(eb,{children:ib.map((function(e){return Object(Gn.jsx)(nb,{active:n.days===e.days,onClick:function(){return t({days:e.days})},children:e.label},e.days)}))}),Object(Gn.jsx)($d,{children:"Platform"}),Object(Gn.jsx)(eb,{children:rb.map((function(e){return Object(Gn.jsx)(nb,{active:i.has(e),onClick:function(){return function(e){i.has(e)?i.delete(e):i.add(e);var n=Array.from(i).join(",");t({platform:n||void 0})}(e)},children:e},e)}))}),Object(Gn.jsx)(tb,{placeholder:"App version",value:n.app_version||"",onChange:function(e){return t({app_version:e.target.value||void 0})}}),Object(Gn.jsx)(tb,{placeholder:"User",value:n.user||"",onChange:function(e){return t({user:e.target.value||void 0})}})]})}var ab,sb,ob,lb=kn.b.div(Kd||(Kd=Object(fn.a)(["\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));\n gap: 12px;\n margin-bottom: 24px;\n"]))),db=kn.b.div(Wd||(Wd=Object(fn.a)(["\n background: #13151d;\n border: 1px solid #1f2235;\n border-radius: 10px;\n padding: 16px 18px;\n display: flex;\n flex-direction: column;\n gap: 6px;\n"]))),bb=kn.b.div(Qd||(Qd=Object(fn.a)(["\n font-size: 11px;\n color: #8892a8;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n font-weight: 500;\n"]))),ub=kn.b.div(Jd||(Jd=Object(fn.a)(["\n font-size: 24px;\n font-weight: 600;\n color: ",";\n"])),(function(e){return e.accent||"#dde1ef"})),xb=kn.b.div(Zd||(Zd=Object(fn.a)(["\n font-size: 11px;\n color: #8892a8;\n"])));function jb(e){if(!e||e<0)return"\u2014";if(e<60)return"".concat(e.toFixed(0),"s");var n=Math.floor(e/60),t=Math.round(e%60);return"".concat(n,"m ").concat(t,"s")}function pb(e){var n=e.kpis,t=n.pass_rate>=90?"#2dd975":n.pass_rate>=70?"#e8c14a":"#f45858";return Object(Gn.jsxs)(lb,{children:[Object(Gn.jsxs)(db,{children:[Object(Gn.jsx)(bb,{children:"Total sessions"}),Object(Gn.jsx)(ub,{children:n.total.toLocaleString()}),Object(Gn.jsxs)(xb,{children:[n.passed," passed \xb7 ",n.failed," failed",n.timeout?" \xb7 ".concat(n.timeout," timeout"):"",n.running?" \xb7 ".concat(n.running," running"):""]})]}),Object(Gn.jsxs)(db,{children:[Object(Gn.jsx)(bb,{children:"Pass rate"}),Object(Gn.jsxs)(ub,{accent:t,children:[n.pass_rate.toFixed(1),"%"]}),Object(Gn.jsx)(xb,{children:"of completed sessions"})]}),Object(Gn.jsxs)(db,{children:[Object(Gn.jsx)(bb,{children:"Avg duration"}),Object(Gn.jsx)(ub,{children:jb(n.avg_duration_sec)}),Object(Gn.jsx)(xb,{children:"per session"})]}),Object(Gn.jsxs)(db,{children:[Object(Gn.jsx)(bb,{children:"Flaky tests"}),Object(Gn.jsx)(ub,{accent:n.flaky_rate>5?"#e8c14a":"#dde1ef",children:n.flaky_tests}),Object(Gn.jsxs)(xb,{children:[n.flaky_rate.toFixed(1),"% of named tests"]})]}),Object(Gn.jsxs)(db,{children:[Object(Gn.jsx)(bb,{children:"Builds"}),Object(Gn.jsx)(ub,{children:n.unique_builds}),Object(Gn.jsx)(xb,{children:"tested in window"})]}),Object(Gn.jsxs)(db,{children:[Object(Gn.jsx)(bb,{children:"App versions"}),Object(Gn.jsx)(ub,{children:n.unique_app_versions}),Object(Gn.jsx)(xb,{children:"distinct"})]})]})}pc.f.register(pc.e,pc.l,pc.n,pc.k,pc.c,pc.r,pc.s,pc.i,pc.h);var hb,Ob,fb,mb,gb,kb,vb,Sb=kn.b.div(ab||(ab=Object(fn.a)(["\n background: #13151d;\n border: 1px solid #1f2235;\n border-radius: 10px;\n padding: 18px 20px;\n"]))),_b=kn.b.div(sb||(sb=Object(fn.a)(["\n font-size: 13px;\n font-weight: 600;\n color: #dde1ef;\n margin-bottom: 16px;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n"]))),yb=kn.b.div(ob||(ob=Object(fn.a)(["\n height: 240px;\n"]))),Eb={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",labels:{color:"#8892a8",usePointStyle:!0,boxWidth:8}},tooltip:{backgroundColor:"rgba(12, 13, 18, 0.95)",borderColor:"#1f2235",borderWidth:1,titleColor:"#dde1ef",bodyColor:"#dde1ef"}},scales:{x:{ticks:{color:"#8892a8",maxRotation:0,autoSkip:!0},grid:{color:"rgba(31, 34, 53, 0.5)"}},y:{ticks:{color:"#8892a8"},grid:{color:"rgba(31, 34, 53, 0.5)"},beginAtZero:!0}}};function Ib(e){var n=e.trend,t={labels:n.map((function(e){return e.day.slice(5)})),datasets:[{label:"Passed",data:n.map((function(e){return e.passed})),backgroundColor:"#2dd975",stack:"s"},{label:"Failed",data:n.map((function(e){return e.failed})),backgroundColor:"#f45858",stack:"s"},{label:"Timeout",data:n.map((function(e){return e.timeout})),backgroundColor:"#e8c14a",stack:"s"}]},i=Object(L.a)(Object(L.a)({},Eb),{},{scales:{x:Object(L.a)(Object(L.a)({},Eb.scales.x),{},{stacked:!0}),y:Object(L.a)(Object(L.a)({},Eb.scales.y),{},{stacked:!0})}});return Object(Gn.jsxs)(Sb,{children:[Object(Gn.jsx)(_b,{children:"Sessions per day"}),Object(Gn.jsx)(yb,{children:Object(Gn.jsx)(hc.a,{data:t,options:i})})]})}function wb(e){var n=e.trend,t={labels:n.map((function(e){return e.day.slice(5)})),datasets:[{label:"Avg duration (s)",data:n.map((function(e){return e.avg_duration_sec})),borderColor:"#5b7fff",backgroundColor:"rgba(91, 127, 255, 0.15)",fill:!0,tension:.3,pointRadius:2}]};return Object(Gn.jsxs)(Sb,{children:[Object(Gn.jsx)(_b,{children:"Average session duration"}),Object(Gn.jsx)(yb,{children:Object(Gn.jsx)(hc.c,{data:t,options:Eb})})]})}pc.f.register(pc.a,pc.s,pc.i);var Ab=kn.b.div(hb||(hb=Object(fn.a)(["\n background: #13151d;\n border: 1px solid #1f2235;\n border-radius: 10px;\n padding: 18px 20px;\n display: flex;\n flex-direction: column;\n"]))),Cb=kn.b.div(Ob||(Ob=Object(fn.a)(["\n font-size: 13px;\n font-weight: 600;\n color: #dde1ef;\n margin-bottom: 16px;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n"]))),Tb=kn.b.div(fb||(fb=Object(fn.a)(["\n display: grid;\n grid-template-columns: 180px 1fr;\n gap: 24px;\n align-items: center;\n"]))),Lb=kn.b.div(mb||(mb=Object(fn.a)(["\n width: 180px;\n height: 180px;\n"]))),Db=kn.b.div(gb||(gb=Object(fn.a)(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"]))),Nb=kn.b.div(kb||(kb=Object(fn.a)(["\n display: flex;\n justify-content: space-between;\n font-size: 12px;\n color: #dde1ef;\n padding-bottom: 8px;\n border-bottom: 1px solid #1f2235;\n &:last-child {\n border-bottom: none;\n }\n"]))),Fb=kn.b.span(vb||(vb=Object(fn.a)(["\n display: inline-block;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background: ",";\n margin-right: 8px;\n"])),(function(e){return e.color})),Bb=["#5b7fff","#2dd975","#e8c14a","#f45858","#a06bff"];function Rb(e){var n=e.data;if(!n.length)return Object(Gn.jsxs)(Ab,{children:[Object(Gn.jsx)(Cb,{children:"Platform split"}),Object(Gn.jsx)("div",{style:{color:"#8892a8",fontSize:12},children:"No data"})]});var t={labels:n.map((function(e){return e.platform})),datasets:[{data:n.map((function(e){return e.total})),backgroundColor:n.map((function(e,n){return Bb[n%Bb.length]})),borderColor:"#0c0d12",borderWidth:2}]};return Object(Gn.jsxs)(Ab,{children:[Object(Gn.jsx)(Cb,{children:"Platform split"}),Object(Gn.jsxs)(Tb,{children:[Object(Gn.jsx)(Lb,{children:Object(Gn.jsx)(hc.b,{data:t,options:{responsive:!0,maintainAspectRatio:!1,cutout:"65%",plugins:{legend:{display:!1},tooltip:{backgroundColor:"rgba(12, 13, 18, 0.95)",borderColor:"#1f2235",borderWidth:1,titleColor:"#dde1ef",bodyColor:"#dde1ef"}}}})}),Object(Gn.jsx)(Db,{children:n.map((function(e,n){return Object(Gn.jsxs)(Nb,{children:[Object(Gn.jsxs)("span",{children:[Object(Gn.jsx)(Fb,{color:Bb[n%Bb.length]}),e.platform]}),Object(Gn.jsxs)("span",{style:{color:"#8892a8"},children:[e.total," \xb7 ",e.pass_rate.toFixed(1),"% pass"]})]},e.platform)}))})]})]})}var Hb,Gb,Pb,Ub,Vb,zb,Mb=t(133),Xb=t.n(Mb),Yb=kn.b.div(Hb||(Hb=Object(fn.a)(["\n background: #13151d;\n border: 1px solid #1f2235;\n border-radius: 10px;\n padding: 18px 20px;\n"]))),Kb=kn.b.div(Gb||(Gb=Object(fn.a)(["\n font-size: 13px;\n font-weight: 600;\n color: #dde1ef;\n margin-bottom: 12px;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n"]))),Wb=kn.b.div(Pb||(Pb=Object(fn.a)(["\n display: block;\n width: 100%;\n overflow-x: auto;\n"]))),Qb=kn.b.table(Ub||(Ub=Object(fn.a)(["\n width: 100%;\n border-collapse: collapse;\n font-size: 12px;\n color: #dde1ef;\n\n th,\n td {\n text-align: left;\n padding: 8px 10px;\n border-bottom: 1px solid #1f2235;\n white-space: nowrap;\n }\n\n th {\n font-size: 11px;\n font-weight: 500;\n color: #8892a8;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n }\n\n tbody tr:hover {\n background: #1a1d28;\n }\n\n tbody tr {\n cursor: default;\n }\n\n tbody tr.clickable {\n cursor: pointer;\n }\n"]))),Jb=kn.b.span(Vb||(Vb=Object(fn.a)(["\n color: ",";\n font-weight: 600;\n"])),(function(e){return e.color})),Zb=kn.b.div(zb||(zb=Object(fn.a)(["\n color: #8892a8;\n font-size: 12px;\n padding: 12px 0;\n"])));function qb(e){return e>=90?"#2dd975":e>=70?"#e8c14a":"#f45858"}function $b(e){if(!e||e<0)return"\u2014";if(e<60)return"".concat(e.toFixed(0),"s");var n=Math.floor(e/60),t=Math.round(e%60);return"".concat(n,"m ").concat(t,"s")}function eu(e){var n=e.rows;return Object(Gn.jsxs)(Yb,{children:[Object(Gn.jsx)(Kb,{children:"Top failing tests"}),n.length?Object(Gn.jsx)(Wb,{children:Object(Gn.jsxs)(Qb,{children:[Object(Gn.jsx)("thead",{children:Object(Gn.jsxs)("tr",{children:[Object(Gn.jsx)("th",{children:"Test"}),Object(Gn.jsx)("th",{children:"Failed"}),Object(Gn.jsx)("th",{children:"Passed"}),Object(Gn.jsx)("th",{children:"Pass rate"}),Object(Gn.jsx)("th",{children:"Last failure"})]})}),Object(Gn.jsx)("tbody",{children:n.map((function(e){return Object(Gn.jsxs)("tr",{children:[Object(Gn.jsx)("td",{title:e.name,children:e.name.length>70?e.name.slice(0,70)+"\u2026":e.name}),Object(Gn.jsx)("td",{children:Object(Gn.jsx)(Jb,{color:"#f45858",children:e.failed})}),Object(Gn.jsx)("td",{children:e.passed}),Object(Gn.jsx)("td",{children:Object(Gn.jsxs)(Jb,{color:qb(e.pass_rate),children:[e.pass_rate.toFixed(1),"%"]})}),Object(Gn.jsx)("td",{style:{color:"#8892a8"},children:e.last_failure_at?Xb()(e.last_failure_at).fromNow():"\u2014"})]},e.name)}))})]})}):Object(Gn.jsx)(Zb,{children:"No failing tests in this window \ud83c\udf89"})]})}function nu(e){var n=e.rows;return Object(Gn.jsxs)(Yb,{children:[Object(Gn.jsx)(Kb,{children:"Device reliability"}),n.length?Object(Gn.jsx)(Wb,{children:Object(Gn.jsxs)(Qb,{children:[Object(Gn.jsx)("thead",{children:Object(Gn.jsxs)("tr",{children:[Object(Gn.jsx)("th",{children:"Device"}),Object(Gn.jsx)("th",{children:"Platform"}),Object(Gn.jsx)("th",{children:"Sessions"}),Object(Gn.jsx)("th",{children:"Pass rate"}),Object(Gn.jsx)("th",{children:"Avg duration"})]})}),Object(Gn.jsx)("tbody",{children:n.map((function(e){return Object(Gn.jsxs)("tr",{children:[Object(Gn.jsxs)("td",{children:[Object(Gn.jsx)("div",{children:e.device_name}),Object(Gn.jsx)("div",{style:{color:"#8892a8",fontSize:11},children:e.udid})]}),Object(Gn.jsx)("td",{style:{color:"#8892a8"},children:e.platform}),Object(Gn.jsx)("td",{children:e.total}),Object(Gn.jsx)("td",{children:Object(Gn.jsxs)(Jb,{color:qb(e.pass_rate),children:[e.pass_rate.toFixed(1),"%"]})}),Object(Gn.jsx)("td",{style:{color:"#8892a8"},children:$b(e.avg_duration_sec)})]},"".concat(e.device_name,"-").concat(e.udid))}))})]})}):Object(Gn.jsx)(Zb,{children:"No device data"})]})}function tu(e){var n=e.rows,t=Object(gn.f)();return Object(Gn.jsxs)(Yb,{children:[Object(Gn.jsx)(Kb,{children:"Recent builds"}),n.length?Object(Gn.jsx)(Wb,{children:Object(Gn.jsxs)(Qb,{children:[Object(Gn.jsx)("thead",{children:Object(Gn.jsxs)("tr",{children:[Object(Gn.jsx)("th",{children:"Build"}),Object(Gn.jsx)("th",{children:"User"}),Object(Gn.jsx)("th",{children:"Platform"}),Object(Gn.jsx)("th",{children:"App version"}),Object(Gn.jsx)("th",{children:"Sessions"}),Object(Gn.jsx)("th",{children:"Pass rate"}),Object(Gn.jsx)("th",{children:"Avg duration"}),Object(Gn.jsx)("th",{children:"Created"})]})}),Object(Gn.jsx)("tbody",{children:n.map((function(e){return Object(Gn.jsxs)("tr",{className:"clickable",onClick:function(){return t.push(En(e.build_id))},children:[Object(Gn.jsx)("td",{children:e.build_name||e.build_id}),Object(Gn.jsx)("td",{style:{color:"#8892a8"},children:e.user||"\u2014"}),Object(Gn.jsx)("td",{style:{color:"#8892a8"},children:e.platform||"\u2014"}),Object(Gn.jsx)("td",{style:{color:"#8892a8"},children:e.app_version||"\u2014"}),Object(Gn.jsx)("td",{children:e.total}),Object(Gn.jsx)("td",{children:Object(Gn.jsxs)(Jb,{color:qb(e.pass_rate),children:[e.pass_rate.toFixed(1),"%"]})}),Object(Gn.jsx)("td",{style:{color:"#8892a8"},children:$b(e.avg_duration_sec)}),Object(Gn.jsx)("td",{style:{color:"#8892a8"},children:e.created_at?Xb()(e.created_at).fromNow():"\u2014"})]},e.build_id)}))})]})}):Object(Gn.jsx)(Zb,{children:"No builds"})]})}function iu(e){var n=e.rows;return Object(Gn.jsxs)(Yb,{children:[Object(Gn.jsx)(Kb,{children:"App version breakdown"}),n.length?Object(Gn.jsx)(Wb,{children:Object(Gn.jsxs)(Qb,{children:[Object(Gn.jsx)("thead",{children:Object(Gn.jsxs)("tr",{children:[Object(Gn.jsx)("th",{children:"App version"}),Object(Gn.jsx)("th",{children:"Sessions"}),Object(Gn.jsx)("th",{children:"Passed"}),Object(Gn.jsx)("th",{children:"Failed"}),Object(Gn.jsx)("th",{children:"Pass rate"})]})}),Object(Gn.jsx)("tbody",{children:n.map((function(e){return Object(Gn.jsxs)("tr",{children:[Object(Gn.jsx)("td",{children:e.app_version}),Object(Gn.jsx)("td",{children:e.total}),Object(Gn.jsx)("td",{children:e.passed}),Object(Gn.jsx)("td",{children:Object(Gn.jsx)(Jb,{color:"#f45858",children:e.failed})}),Object(Gn.jsx)("td",{children:Object(Gn.jsxs)(Jb,{color:qb(e.pass_rate),children:[e.pass_rate.toFixed(1),"%"]})})]},e.app_version)}))})]})}):Object(Gn.jsx)(Zb,{children:"No version data"})]})}var ru,cu,au,su,ou,lu,du,bu,uu,xu=function(e){return e.entities.metrics.data},ju=function(e){return e.entities.metrics.filter},pu=function(e){return e.entities.metrics.isLoading},hu=function(e){return e.entities.metrics.error},Ou=kn.b.div(ru||(ru=Object(fn.a)(["\n height: calc(100vh - ","px);\n overflow-y: auto;\n padding: 28px 32px 64px 32px;\n background: #0c0d12;\n"])),wn),fu=kn.b.h1(cu||(cu=Object(fn.a)(["\n font-size: 22px;\n font-weight: 600;\n color: #dde1ef;\n margin: 0 0 6px 0;\n"]))),mu=kn.b.div(au||(au=Object(fn.a)(["\n font-size: 12px;\n color: #8892a8;\n margin-bottom: 24px;\n"]))),gu=kn.b.div(su||(su=Object(fn.a)(["\n display: grid;\n grid-template-columns: 2fr 1fr;\n gap: 16px;\n margin-bottom: 16px;\n\n @media (max-width: 1100px) {\n grid-template-columns: 1fr;\n }\n"]))),ku=kn.b.div(ou||(ou=Object(fn.a)(["\n margin-bottom: 16px;\n"]))),vu=kn.b.div(lu||(lu=Object(fn.a)(["\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 240px;\n"]))),Su=kn.b.div(du||(du=Object(fn.a)(["\n color: #f45858;\n background: rgba(244, 88, 88, 0.08);\n border: 1px solid rgba(244, 88, 88, 0.3);\n border-radius: 8px;\n padding: 14px 16px;\n font-size: 13px;\n"])));function _u(){var e=Object(o.c)(),n=Object(o.d)(xu),t=Object(o.d)(ju),r=Object(o.d)(pu),c=Object(o.d)(hu);Object(i.useEffect)((function(){e({type:p.FETCH_METRICS_INIT,payload:t})}),[]);return Object(Gn.jsxs)(Jn,{children:[Object(Gn.jsx)(Wn,{height:"".concat(wn,"px"),children:Object(Gn.jsx)(Md,{})}),Object(Gn.jsx)(Wn,{height:"calc(100vh - ".concat(wn,"px)"),children:Object(Gn.jsxs)(Ou,{children:[Object(Gn.jsx)(fu,{children:"Metrics"}),Object(Gn.jsx)(mu,{children:"Analytics and reporting across recent test runs and builds"}),Object(Gn.jsx)(cb,{filter:t,onChange:function(n){e({type:p.SET_METRICS_FILTER,payload:n})}}),c&&Object(Gn.jsx)(Su,{children:c}),r&&!n?Object(Gn.jsx)(vu,{children:Object(Gn.jsx)(si,{})}):n?Object(Gn.jsxs)(Gn.Fragment,{children:[Object(Gn.jsx)(pb,{kpis:n.kpis}),Object(Gn.jsxs)(gu,{children:[Object(Gn.jsx)(Ib,{trend:n.trend}),Object(Gn.jsx)(Rb,{data:n.platform_split})]}),Object(Gn.jsx)(ku,{children:Object(Gn.jsx)(wb,{trend:n.trend})}),Object(Gn.jsx)(ku,{children:Object(Gn.jsx)(tu,{rows:n.build_health})}),Object(Gn.jsxs)(gu,{children:[Object(Gn.jsx)(eu,{rows:n.top_failing_tests}),Object(Gn.jsx)(iu,{rows:n.app_versions})]}),Object(Gn.jsx)(ku,{children:Object(Gn.jsx)(nu,{rows:n.device_reliability})})]}):null]})})]})}function yu(){return Object(Gn.jsx)(_u,{})}function Eu(){return null}var Iu,wu=kn.b.div(bu||(bu=Object(fn.a)(["\n height: 100vh;\n"]))),Au=kn.b.p(uu||(uu=Object(fn.a)(["\n text-align: center;\n"])));function Cu(){return Object(Gn.jsx)(wu,{children:Object(Gn.jsx)(tt,{children:Object(Gn.jsxs)(Gn.Fragment,{children:[Object(Gn.jsx)(si,{size:ci.XL}),Object(Gn.jsx)(Au,{children:"Loading"})]})})})}var Tu=kn.b.div(Iu||(Iu=Object(fn.a)(["\n font-family: 'Inter', system-ui, -apple-system, sans-serif;\n font-size: ",";\n color: ",";\n background: ",";\n min-height: 100vh;\n"])),(function(e){return e.theme.fonts.size.L}),(function(e){return e.theme.colors.greyscale[0]}),(function(e){return e.theme.colors.greyscale[6]}));var Lu=Object(o.b)((function(e){return{theme:Oc(e),isAppInitialised:e.ui.appInitialised}}))((function(e){var n=e.theme,t=e.isAppInitialised,r=Object(o.c)();return Object(i.useEffect)((function(){r({type:p.INIT_APP})}),[]),Object(Gn.jsx)(kn.a,{theme:n,children:Object(Gn.jsx)(Tu,{children:t?Object(Gn.jsx)(mn.a,{children:Object(Gn.jsxs)(gn.c,{children:[Object(Gn.jsx)(gn.a,{path:In,component:yu}),Object(Gn.jsx)(gn.a,{path:yn,component:Yd}),Object(Gn.jsx)(gn.a,{component:Eu})]})}):Object(Gn.jsx)(Cu,{})})})}));a.a.render(Object(Gn.jsx)(r.a.StrictMode,{children:Object(Gn.jsx)(o.a,{store:On,children:Object(Gn.jsx)(Lu,{})})}),document.getElementById("root")),s()}},[[390,1,2]]]);
2
+ //# sourceMappingURL=main.01cca034.chunk.js.map