apitestcenter 0.18.2 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD-PARTY-NOTICES-UI.txt +40 -10
- package/dist/THIRD-PARTY-NOTICES.txt +3 -3
- package/dist/cli.mjs +341 -335
- package/dist/ui/404/index.html +1 -1
- package/dist/ui/404.html +1 -1
- package/dist/ui/__next.__PAGE__.txt +17 -17
- package/dist/ui/__next._full.txt +18 -18
- package/dist/ui/__next._tree.txt +2 -2
- package/dist/ui/_next/static/chunks/0faedhifzwobh.js +31 -0
- package/dist/ui/_next/static/chunks/{0q8iq_7i4ohjr.js → 0glo5t3rr5ux5.js} +2 -2
- package/dist/ui/_next/static/chunks/0jksxb6220hcg.js +4 -0
- package/dist/ui/_next/static/chunks/0jq6xbzrkaewp.js +2 -0
- package/dist/ui/_next/static/chunks/1-9ymrwk2b425.js +1 -0
- package/dist/ui/_next/static/chunks/13ez75q2t6tkt.js +51 -0
- package/dist/ui/_next/static/chunks/{12whdxhkvkd-y.js → 1s068j2ev364j.js} +1 -1
- package/dist/ui/_next/static/chunks/{3wtqdtu331_vc.js → 2-ccpn24ve6pz.js} +3 -3
- package/dist/ui/_next/static/chunks/20hgurwocz54g.js +123 -0
- package/dist/ui/_next/static/chunks/26cw_brv1ud3e.js +27 -0
- package/dist/ui/_next/static/chunks/2at40-h3piqdk.js +50 -0
- package/dist/ui/_next/static/chunks/2d4j4s35zfogt.js +3 -0
- package/dist/ui/_next/static/chunks/2eitm7108zqkh.js +50 -0
- package/dist/ui/_next/static/chunks/{2c1b5jqwxl4ra.js → 2ihpgl_z3eude.js} +87 -86
- package/dist/ui/_next/static/chunks/2lr6d098vgexb.js +1 -0
- package/dist/ui/_next/static/chunks/2qci5ienr5rb9.css +3 -0
- package/dist/ui/_next/static/chunks/33purk5k-9o6l.js +1 -0
- package/dist/ui/_next/static/chunks/{0-zga2d528cxt.js → 3ixmudnloab4j.js} +3 -3
- package/dist/ui/_next/static/chunks/3ps_0myey2cxz.js +22 -0
- package/dist/ui/_next/static/chunks/3rshqqryni7gb.js +2 -0
- package/dist/ui/_next/static/chunks/45bkmnyf6ozrx.js +50 -0
- package/dist/ui/_not-found/__next._full.txt +13 -13
- package/dist/ui/_not-found/__next._not-found.__PAGE__.txt +12 -12
- package/dist/ui/_not-found/__next._tree.txt +2 -2
- package/dist/ui/_not-found/index.html +1 -1
- package/dist/ui/_not-found/index.txt +13 -13
- package/dist/ui/compare/__next._full.txt +18 -18
- package/dist/ui/compare/__next._tree.txt +2 -2
- package/dist/ui/compare/__next.compare.__PAGE__.txt +17 -17
- package/dist/ui/compare/index.html +1 -1
- package/dist/ui/compare/index.txt +18 -18
- package/dist/ui/connections/__next._full.txt +16 -16
- package/dist/ui/connections/__next._tree.txt +2 -2
- package/dist/ui/connections/__next.connections.__PAGE__.txt +15 -15
- package/dist/ui/connections/index.html +2 -2
- package/dist/ui/connections/index.txt +16 -16
- package/dist/ui/history/__next._full.txt +19 -19
- package/dist/ui/history/__next._tree.txt +2 -2
- package/dist/ui/history/__next.history.__PAGE__.txt +18 -18
- package/dist/ui/history/index.html +1 -1
- package/dist/ui/history/index.txt +19 -19
- package/dist/ui/home/__next._full.txt +18 -18
- package/dist/ui/home/__next._tree.txt +2 -2
- package/dist/ui/home/__next.home.__PAGE__.txt +17 -17
- package/dist/ui/home/index.html +1 -1
- package/dist/ui/home/index.txt +18 -18
- package/dist/ui/index.html +1 -1
- package/dist/ui/index.txt +18 -18
- package/dist/ui/preview/__next._full.txt +17 -17
- package/dist/ui/preview/__next._tree.txt +2 -2
- package/dist/ui/preview/__next.preview.__PAGE__.txt +16 -16
- package/dist/ui/preview/index.html +1 -1
- package/dist/ui/preview/index.txt +17 -17
- package/dist/ui/suite/__next._full.txt +15 -15
- package/dist/ui/suite/__next._tree.txt +2 -2
- package/dist/ui/suite/__next.suite.__PAGE__.txt +14 -14
- package/dist/ui/suite/index.html +1 -1
- package/dist/ui/suite/index.txt +15 -15
- package/dist/ui/tests/__next._full.txt +13 -13
- package/dist/ui/tests/__next._tree.txt +2 -2
- package/dist/ui/tests/__next.tests.__PAGE__.txt +12 -12
- package/dist/ui/tests/index.html +1 -1
- package/dist/ui/tests/index.txt +13 -13
- package/package.json +1 -1
- package/dist/ui/_next/static/chunks/03ligbvtk7nsc.js +0 -123
- package/dist/ui/_next/static/chunks/03y58w9gmwqc-.js +0 -50
- package/dist/ui/_next/static/chunks/08rlo-0gnct9m.js +0 -50
- package/dist/ui/_next/static/chunks/0bgmfb8f3pd8e.js +0 -1
- package/dist/ui/_next/static/chunks/0g9k0swrer6i5.js +0 -1
- package/dist/ui/_next/static/chunks/1-t79a3q7gmjn.js +0 -31
- package/dist/ui/_next/static/chunks/14dtemzsvcfmn.js +0 -50
- package/dist/ui/_next/static/chunks/1mm60-ywpri7b.js +0 -2
- package/dist/ui/_next/static/chunks/20j4wusnbtqa2.js +0 -4
- package/dist/ui/_next/static/chunks/243c1-49gb3pr.js +0 -1
- package/dist/ui/_next/static/chunks/2sb9zma7ae-_f.js +0 -27
- package/dist/ui/_next/static/chunks/2sjog4to0fmbb.css +0 -3
- package/dist/ui/_next/static/chunks/2su0ql-zu4q0_.js +0 -3
- package/dist/ui/_next/static/chunks/3-rdixjnndtyk.js +0 -51
- package/dist/ui/_next/static/chunks/32_tmz8ibsdo3.js +0 -22
- package/dist/ui/_next/static/chunks/3wzu1zkfqdmn6.js +0 -2
- /package/dist/ui/_next/static/{8uBf4sRL82dkVbEC6zib9 → P0KsXFffpHNOo_vW1PSSr}/_buildManifest.js +0 -0
- /package/dist/ui/_next/static/{8uBf4sRL82dkVbEC6zib9 → P0KsXFffpHNOo_vW1PSSr}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/_next/static/{8uBf4sRL82dkVbEC6zib9 → P0KsXFffpHNOo_vW1PSSr}/_ssgManifest.js +0 -0
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,27895,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={WarningIcon:function(){return u},errorStyles:function(){return l},errorThemeCss:function(){return i}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});e.r(36437);let a=e.r(72587);e.r(55218);let l={container:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},card:{marginTop:"-32px",maxWidth:"325px",padding:"32px 28px",textAlign:"left"},icon:{marginBottom:"24px"},title:{fontSize:"24px",fontWeight:500,letterSpacing:"-0.02em",lineHeight:"32px",margin:"0 0 12px 0",color:"var(--next-error-title)"},message:{fontSize:"14px",fontWeight:400,lineHeight:"21px",margin:"0 0 20px 0",color:"var(--next-error-message)"},form:{margin:0},buttonGroup:{display:"flex",gap:"8px",alignItems:"center"},button:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-text)",background:"var(--next-error-btn-bg)",border:"var(--next-error-btn-border)"},buttonSecondary:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-secondary-text)",background:"var(--next-error-btn-secondary-bg)",border:"var(--next-error-btn-secondary-border)"},digestFooter:{position:"fixed",bottom:"32px",left:"0",right:"0",textAlign:"center",fontFamily:'ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace',fontSize:"12px",lineHeight:"18px",fontWeight:400,margin:"0",color:"var(--next-error-digest)"}},i=`
|
|
2
|
-
:root {
|
|
3
|
-
--next-error-bg: #fff;
|
|
4
|
-
--next-error-text: #171717;
|
|
5
|
-
--next-error-title: #171717;
|
|
6
|
-
--next-error-message: #171717;
|
|
7
|
-
--next-error-digest: #666666;
|
|
8
|
-
--next-error-btn-text: #fff;
|
|
9
|
-
--next-error-btn-bg: #171717;
|
|
10
|
-
--next-error-btn-border: none;
|
|
11
|
-
--next-error-btn-secondary-text: #171717;
|
|
12
|
-
--next-error-btn-secondary-bg: transparent;
|
|
13
|
-
--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
|
|
14
|
-
}
|
|
15
|
-
@media (prefers-color-scheme: dark) {
|
|
16
|
-
:root {
|
|
17
|
-
--next-error-bg: #0a0a0a;
|
|
18
|
-
--next-error-text: #ededed;
|
|
19
|
-
--next-error-title: #ededed;
|
|
20
|
-
--next-error-message: #ededed;
|
|
21
|
-
--next-error-digest: #a0a0a0;
|
|
22
|
-
--next-error-btn-text: #0a0a0a;
|
|
23
|
-
--next-error-btn-bg: #ededed;
|
|
24
|
-
--next-error-btn-border: none;
|
|
25
|
-
--next-error-btn-secondary-text: #ededed;
|
|
26
|
-
--next-error-btn-secondary-bg: transparent;
|
|
27
|
-
--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
|
|
31
|
-
`.replace(/\n\s*/g,"");function u(){return(0,a.jsx)("svg",{width:"32",height:"32",viewBox:"-0.2 -1.5 32 32",fill:"none",style:l.icon,children:(0,a.jsx)("path",{d:"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",fill:"var(--next-error-title)"})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},50965,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}}),e.r(36437);let n=e.r(72587);e.r(55218);let o=e.r(34262),a=e.r(27895),l=function({error:e}){let r=e?.digest,t=!!r;return(0,o.handleISRError)({error:e}),(0,n.jsxs)("html",{id:"__next_error__",children:[(0,n.jsx)("head",{children:(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:a.errorThemeCss}})}),(0,n.jsxs)("body",{children:[(0,n.jsx)("div",{style:a.errorStyles.container,children:(0,n.jsxs)("div",{style:a.errorStyles.card,children:[(0,n.jsx)(a.WarningIcon,{}),(0,n.jsx)("h1",{style:a.errorStyles.title,children:"This page couldn’t load"}),(0,n.jsx)("p",{style:a.errorStyles.message,children:t?"A server error occurred. Reload to try again.":"Reload to try again, or go back."}),(0,n.jsxs)("div",{style:a.errorStyles.buttonGroup,children:[(0,n.jsx)("form",{style:a.errorStyles.form,children:(0,n.jsx)("button",{type:"submit",style:a.errorStyles.button,children:"Reload"})}),!t&&(0,n.jsx)("button",{type:"button",style:a.errorStyles.buttonSecondary,onClick:()=>{window.history.length>1?window.history.back():window.location.href="/"},children:"Back"})]})]})}),r&&(0,n.jsxs)("p",{style:a.errorStyles.digestFooter,children:["ERROR ",r]})]})]})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},86424,(e,r,t)=>{e.i(11158),Object.defineProperty(t,"__esModule",{value:!0});var n={ErrorBoundary:function(){return b},ErrorBoundaryHandler:function(){return y}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let a=e.r(56421),l=e.r(72587),i=a._(e.r(55218)),u=e.r(18930),d=e.r(88820);e.r(79028);let s=e.r(34262),c=e.r(74388),f=e.r(7716),p="u">typeof window&&(0,c.isBot)(window.navigator.userAgent);class y extends i.default.Component{static{this.contextType=f.AppRouterContext}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.retry=()=>{(0,i.startTransition)(()=>{this.context?.refresh(),this.reset()})},this.state={error:null,previousPathname:this.props.pathname}}static getDerivedStateFromError(e){if((0,d.isNextRouterError)(e))throw e;return{error:{thrownValue:e}}}static getDerivedStateFromProps(e,r){let{error:t}=r;return e.pathname!==r.previousPathname&&r.error?{error:null,previousPathname:e.pathname}:{error:r.error,previousPathname:e.pathname}}render(){if(this.state.error&&!p){let e=this.state.error.thrownValue;return(0,s.handleISRError)({error:e}),(0,l.jsxs)(l.Fragment,{children:[this.props.errorStyles,this.props.errorScripts,(0,l.jsx)(this.props.errorComponent,{error:e,reset:this.reset,retry:this.retry})]})}return this.props.children}}function b({errorComponent:e,errorStyles:r,errorScripts:t,children:n}){let o=(0,u.useUntrackedPathname)();return e?(0,l.jsx)(y,{pathname:o,errorComponent:e,errorStyles:r,errorScripts:t,children:n}):(0,l.jsx)(l.Fragment,{children:n})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},34262,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleISRError",{enumerable:!0,get:function(){return o}});let n=e.r(22411);function o({error:e}){if(!n.workUnitAsyncStorage)return;let r=n.workUnitAsyncStorage.getStore();switch(r?.type){case"prerender":case"prerender-client":case"prerender-legacy":throw e&&console.error(e),e;case"request":case"prerender-runtime":case"validation-client":case"cache":case"private-cache":case"unstable-cache":case"build-time-generator":case void 0:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},79028,(e,r,t)=>{e.i(11158),Object.defineProperty(t,"__esModule",{value:!0});var n={handleHardNavError:function(){return l},useNavFailureHandler:function(){return i}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});e.r(55218);let a=e.r(23648);function l(e){return"u">typeof window&&!!window.next.__pendingUrl&&(0,a.createHrefFromUrl)(new URL(window.location.href))!==(0,a.createHrefFromUrl)(window.next.__pendingUrl)&&(console.error("Error occurred during navigation, falling back to hard navigation",e),window.location.href=window.next.__pendingUrl.toString(),!0)}function i(){}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},18930,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useUntrackedPathname",{enumerable:!0,get:function(){return l}});let n=e.r(55218),o=e.r(51828),a=e.r(22411);function l(){return!function(){if("u"<typeof window){let e=a.workUnitAsyncStorage.getStore();if(!e)return!1;switch(e.type){case"prerender":case"prerender-client":case"validation-client":let r=e.fallbackRouteParams;return!!r&&r.size>0}}return!1}()?(0,n.useContext)(o.PathnameContext):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},42365,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={RedirectBoundary:function(){return p},RedirectErrorBoundary:function(){return f}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let a=e.r(56421),l=e.r(72587),i=a._(e.r(55218)),u=e.r(4784),d=e.r(9784),s=e.r(28806);function c({redirect:e,reset:r,redirectType:t}){let n=(0,u.useRouter)();return(0,i.useEffect)(()=>{i.default.startTransition(()=>{"push"===t?n.push(e,{}):n.replace(e,{}),r()})},[e,t,r,n]),null}class f extends i.default.Component{constructor(e){super(e),this.state={redirect:null,redirectType:null}}static getDerivedStateFromError(e){if((0,s.isRedirectError)(e)){let r=(0,d.getURLFromRedirectError)(e),t=(0,d.getRedirectTypeFromError)(e);return"handled"in e?{redirect:null,redirectType:null}:{redirect:r,redirectType:t}}throw e}render(){let{redirect:e,redirectType:r}=this.state;return null!==e&&null!==r?(0,l.jsx)(c,{redirect:e,redirectType:r,reset:()=>this.setState({redirect:null})}):this.props.children}}function p({children:e}){let r=(0,u.useRouter)();return(0,l.jsx)(f,{router:r,children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},3668,(e,r,t)=>{function n(e){return Array.isArray(e)?`${e[0]}|${e[1]}|${e[2]}`:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},10063,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={createHeadKey:function(){return l},createSegmentKey:function(){return a.createRouterCacheKey}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let a=e.r(3668);function l(e){let r=[e.value],t=e.parent;for(;null!==t;){let e=t.value;"string"==typeof e&&r.push(e),t=t.parent}return JSON.stringify(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},72024,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},88987,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={MetadataBoundary:function(){return i},OutletBoundary:function(){return d},RootLayoutBoundary:function(){return s},ViewportBoundary:function(){return u}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let a=e.r(71455),l={[a.METADATA_BOUNDARY_NAME]:function({children:e}){return e},[a.VIEWPORT_BOUNDARY_NAME]:function({children:e}){return e},[a.OUTLET_BOUNDARY_NAME]:function({children:e}){return e},[a.ROOT_LAYOUT_BOUNDARY_NAME]:function({children:e}){return e}},i=l[a.METADATA_BOUNDARY_NAME.slice(0)],u=l[a.VIEWPORT_BOUNDARY_NAME.slice(0)],d=l[a.OUTLET_BOUNDARY_NAME.slice(0)],s=l[a.ROOT_LAYOUT_BOUNDARY_NAME.slice(0)]},71455,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={METADATA_BOUNDARY_NAME:function(){return a},OUTLET_BOUNDARY_NAME:function(){return i},ROOT_LAYOUT_BOUNDARY_NAME:function(){return u},VIEWPORT_BOUNDARY_NAME:function(){return l}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let a="__next_metadata_boundary__",l="__next_viewport_boundary__",i="__next_outlet_boundary__",u="__next_root_layout_boundary__"}])})();
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53356,e=>{var t=e.i(72587),s=e.i(32610),n=e.i(62766);e.i(24856);var r=e.i(2385),a=e.i(53012),l=e.i(93250),i=e.i(84355),o=e.i(20621),c=e.i(67951),d=e.i(91694),m=e.i(27813),u=e.i(88293),p=e.i(96659),h=e.i(87283),f=e.i(75998),x=e.i(70989),y=e.i(55218),v=e.i(67754),b=e.i(6980),g=e.i(29724),w=e.i(39170),k=e.i(28867),j=e.i(56396),N=e.i(19656),S=e.i(59180),C=e.i(88231),$=e.i(88153);function T(e){return"run"===e.kind?e.startedAt:e.savedAt}function F(e){return new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function _({run:e,slo:s}){let n=(0,r.F)(e.verdict,{slo:s}).overall;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("span",{className:"min-w-0 flex-1 truncate text-sm text-ink",children:[e.baseline?(0,t.jsx)(l.f,{size:11,className:"mr-1 inline fill-current align-[-1px] text-accent","aria-label":"Reference run"}):null,e.name]}),"failed"===e.status||"cancelled"===e.status?(0,t.jsx)("span",{className:"shrink-0 text-xs text-mute capitalize",children:e.status}):(0,t.jsx)(b.VerdictTag,{level:n})]}),(0,t.jsx)("div",{className:"mt-0.5 truncate font-mono text-xs text-mute",children:e.endpoint}),(0,t.jsxs)("div",{className:"mt-0.5 flex flex-wrap gap-x-3 font-mono text-xs text-mute",children:[(0,t.jsxs)("span",{children:["p95 ",(0,N.E)(e.p95)]}),(0,t.jsxs)("span",{children:[(0,N.Z)(e.errorRate)," err"]}),(0,t.jsx)("span",{children:F(e.startedAt)})]}),e.note?(0,t.jsx)("p",{className:"mt-1 line-clamp-1 text-xs text-ink",children:e.note}):null]})}function E({compare:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(c.f,{size:13,className:"shrink-0 text-accent","aria-label":"Compare"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm text-ink",children:e.name})]}),(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-0.5 text-xs text-mute",children:[e.titles.map((e,s)=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full",style:{background:(0,C.f)(s)},"aria-hidden":!0}),e]},s)),(0,t.jsx)("span",{className:"font-mono",children:F(e.savedAt)})]})]})}function M({name:e,note:s,onSave:n}){let[r,a]=(0,y.useState)(e),[l,i]=(0,y.useState)(s??"");return(0,y.useEffect)(()=>a(e),[e]),(0,y.useEffect)(()=>i(s??""),[s]),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"sr-only",children:"Name"}),(0,t.jsx)("input",{value:r,onChange:e=>a(e.target.value),onBlur:()=>r.trim()!==e&&void n({name:r}),onKeyDown:e=>"Enter"===e.key&&e.target.blur(),className:"w-full rounded-md border border-transparent bg-transparent px-1 py-0.5 text-xl font-medium text-ink hover:border-line focus:border-accent focus:outline-none",title:"Click to rename"})]}),(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"sr-only",children:"Note"}),(0,t.jsx)("textarea",{value:l,rows:l?2:1,onChange:e=>i(e.target.value),onBlur:()=>l.trim()!==(s??"")&&void n({note:l}),placeholder:"Add a note — what changed, which build, why you ran it…",className:"input resize-y text-sm"})]})]})}function I({summary:e,related:s,onSelect:n,onDelete:r,onReveal:a}){let l=(0,j.d)(),{refresh:i}=(0,S.K)(),[c,d]=(0,y.useState)(null),[u,h]=(0,y.useState)(null);if((0,y.useEffect)(()=>{if(!e)return;let t=!1;return S.c.run(e.id).then(e=>!t&&d(e)).catch(e=>!t&&h(e instanceof Error?e.message:"Could not read the file")),()=>{t=!0}},[e?.id,e?.bytes]),!e)return null;let f=s.filter(t=>t.endpoint===e.endpoint);async function x(t){try{await S.c.updateRun(e.id,t),await i()}catch(e){l(e instanceof Error?e.message:"Could not save","error")}}return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)(M,{name:e.name,note:e.note,onSave:x}),(0,t.jsx)("p",{className:"mt-1 px-1 font-mono text-xs break-all text-mute",children:e.file})]}),(0,t.jsxs)("div",{className:"flex shrink-0 gap-2",children:[(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary py-1.5 text-xs",onClick:()=>a(e.id),children:[(0,t.jsx)(o.f,{size:13}),"Show file"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-danger py-1.5 text-xs",onClick:()=>r(e.id),children:[(0,t.jsx)(p.f,{size:13}),"Delete"]})]})]}),e.error?(0,t.jsx)("p",{role:"alert",className:"rounded-md border border-bad/40 bg-bad/10 px-3 py-2 font-mono text-xs text-bad",children:e.error}):null,f.length>=2?(0,t.jsx)(v.N,{runs:f,selectedId:e.id,onSelect:n}):null,u?(0,t.jsx)("p",{className:"text-sm text-bad",children:u}):c&&c.report.id===e.id?(0,t.jsx)(g.f,{report:c.report,source:"session",showTitle:!1}):(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-mute",children:[(0,t.jsx)(m.f,{size:14,className:"animate-spin"})," Opening…"]})]})}function L({summary:e,onDelete:s,onReveal:n}){let a=(0,j.d)(),{slo:l}=(0,$.G)(),{refresh:i}=(0,S.K)(),[d,u]=(0,y.useState)(null);if((0,y.useEffect)(()=>{if(!e)return;let t=!1;return S.c.compare(e.id).then(e=>!t&&u(e)).catch(()=>void 0),()=>{t=!0}},[e?.id,e?.bytes]),!e)return null;async function h(t){try{await S.c.updateCompare(e.id,t),await i()}catch(e){a(e instanceof Error?e.message:"Could not save","error")}}return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("p",{className:"px-1 text-xs tracking-wide text-accent uppercase",children:["Compare · ","parallel"===e.mode?"all at once":"one after another"]}),(0,t.jsx)(M,{name:e.name,note:e.note,onSave:h}),(0,t.jsx)("p",{className:"mt-1 px-1 font-mono text-xs break-all text-mute",children:e.file})]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-wrap gap-2",children:[(0,t.jsxs)(f.default,{href:`/compare?compare=${e.id}`,className:"btn btn-primary py-1.5 text-xs",children:[(0,t.jsx)(c.f,{size:13}),"Open overlay"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary py-1.5 text-xs",onClick:()=>n(e.id),children:[(0,t.jsx)(o.f,{size:13}),"Show file"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-danger py-1.5 text-xs",onClick:()=>s(e.id),children:[(0,t.jsx)(p.f,{size:13}),"Delete"]})]})]}),d?(0,t.jsx)("ul",{className:"grid gap-2 @2xl:grid-cols-2",children:d.apis.map((e,s)=>(0,t.jsxs)("li",{className:"rounded-lg border border-line bg-panel p-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-sm text-ink",children:[(0,t.jsx)("span",{className:"h-2 w-2 shrink-0 rounded-full",style:{background:(0,C.f)(s)},"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:e.title})]}),(0,t.jsx)(b.VerdictTag,{level:(0,r.s)(e.report,{slo:l}).overall})]}),(0,t.jsxs)("p",{className:"mt-1 truncate font-mono text-xs text-mute",children:[e.report.definition.method," ",e.report.definition.url]}),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap gap-x-4 font-mono text-xs text-ink",children:[(0,t.jsxs)("span",{children:["p95 ",(0,N.E)(e.report.summary.latencyMs.p95)]}),(0,t.jsxs)("span",{children:[(0,N.Z)(e.report.summary.http.failed.rate)," err"]}),(0,t.jsxs)("span",{children:[e.report.summary.http.requests.toLocaleString()," req"]})]})]},e.id))}):(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-mute",children:[(0,t.jsx)(m.f,{size:14,className:"animate-spin"})," Opening…"]})]})}function D({index:e,onChanged:s,onReveal:n}){let r=(0,w.L)(),l=(0,j.d)();return(0,t.jsxs)("details",{className:"mx-1 mb-3 rounded-md border border-warn/40 bg-warn/10 px-3 py-2 text-sm",children:[(0,t.jsxs)("summary",{className:"cursor-pointer text-ink",children:[(0,t.jsx)(a.f,{size:13,className:"mr-1 inline align-[-2px] text-warn","aria-hidden":!0}),e.invalid.length," ",1===e.invalid.length?"file":"files"," in your history folder couldn't be read"]}),(0,t.jsx)("ul",{className:"mt-2 space-y-1",children:e.invalid.map(e=>(0,t.jsxs)("li",{className:"text-xs",children:[(0,t.jsxs)("span",{className:"font-mono text-ink",children:[e.folder,"/",e.file]}),(0,t.jsx)("span",{className:"block text-mute",children:e.reason})]},`${e.folder}/${e.file}`))}),(0,t.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,t.jsx)("button",{type:"button",className:"btn btn-secondary py-1 text-xs",onClick:n,children:"Show folder"}),(0,t.jsx)("button",{type:"button",className:"btn btn-danger py-1 text-xs",onClick:async()=>{await r({title:"Delete the unreadable files?",body:"They are not valid APITestCenter records. If you edited one by hand, fix it instead and it will reappear.",confirmLabel:"Delete files",tone:"danger"})&&(await S.c.remove({invalid:e.invalid.map(({folder:e,file:t})=>({folder:e,file:t}))}),await s(),l("Unreadable files deleted","success"))},children:"Delete them"})]})]})}function R({filtered:e,hasAny:s}){return(0,t.jsx)("p",{className:"px-3 py-6 text-sm text-mute",children:e&&s?"Nothing matches. Clear the search or filter.":"No saved records yet."})}function A(){return(0,t.jsxs)("div",{className:"flex h-full flex-col items-center justify-center px-6 py-16 text-center",children:[(0,t.jsx)("div",{className:"grid h-12 w-12 place-items-center rounded-full bg-accent-dim text-accent",children:(0,t.jsx)(d.f,{size:22,strokeWidth:1.75,"aria-hidden":!0})}),(0,t.jsx)("h2",{className:"mt-4 text-base font-medium text-ink",children:"Your history is empty"}),(0,t.jsx)("p",{className:"mt-2 max-w-sm text-sm text-mute",children:"Every performance test and compare is saved here automatically, as a JSON file on this computer. Nothing leaves your machine."}),(0,t.jsxs)("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[(0,t.jsxs)(f.default,{href:"/",className:"btn btn-primary text-sm",children:[(0,t.jsx)(i.f,{size:14}),"Test an API"]}),(0,t.jsxs)(f.default,{href:"/compare",className:"btn btn-secondary text-sm",children:[(0,t.jsx)(c.f,{size:14}),"Compare APIs"]})]})]})}e.s(["default",0,function(){let e=(0,n.K)("history",{min:280}),r=(0,x.useRouter)(),a=(0,j.d)(),l=(0,w.L)(),{slo:i}=(0,$.G)(),{index:d,loading:f,error:v,refresh:b}=(0,S.K)(),[g,C]=(0,y.useState)(""),[F,M]=(0,y.useState)("all"),[z,q]=(0,y.useState)(null),[U,O]=(0,y.useState)(new Set),[P,H]=(0,y.useState)(!1),V=d?.runs??[],W=d?.compares??[],B=(0,y.useMemo)(()=>{let e=g.trim().toLowerCase();return[..."compares"===F?[]:V.filter(e=>"baselines"!==F||e.baseline),..."runs"===F||"baselines"===F?[]:W].filter(t=>!e||t.name.toLowerCase().includes(e)||(t.note??"").toLowerCase().includes(e)||("run"===t.kind?t.endpoint.toLowerCase().includes(e):t.titles.join(" ").toLowerCase().includes(e))).sort((e,t)=>Date.parse(T(t))-Date.parse(T(e)))},[V,W,g,F]);(0,y.useEffect)(()=>{if(d&&!(z&&("run"===z.kind?V.some(e=>e.id===z.id):W.some(e=>e.id===z.id)))){let e=B[0];q(e?{kind:e.kind,id:e.id}:null)}},[d]);let K=[...U].filter(e=>e.startsWith("run:")).map(e=>e.slice(4)),J=[...U].filter(e=>e.startsWith("compare:")).map(e=>e.slice(8));async function X(e,t){let s=e.length+t.length;if(await l({title:`Delete ${s} ${1===s?"record":"records"}?`,body:"The JSON files are removed from your history folder. This cannot be undone — export first if you want a copy.",confirmLabel:"Delete",tone:"danger"})){H(!0);try{let{removed:s}=await S.c.remove({runs:e,compares:t});O(new Set),await b(),a(`Deleted ${s} ${1===s?"record":"records"}`,"success")}catch(e){a(e instanceof Error?e.message:"Delete failed","error")}finally{H(!1)}}}async function Y(e){try{await S.c.reveal(e)}catch(e){a(e instanceof Error?e.message:"Could not open the folder","error")}}let Z=function(e){let t=new Map,s=new Date,n=new Date(s.getTime()-864e5),r=(e,t)=>e.toDateString()===t.toDateString();for(let a of e){let e=new Date(T(a)),l=r(e,s)?"Today":r(e,n)?"Yesterday":e.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric",year:e.getFullYear()===s.getFullYear()?void 0:"numeric"}),i=t.get(l)??[];i.push(a),t.set(l,i)}return[...t]}(B);return(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("header",{className:"flex flex-wrap items-center gap-x-4 gap-y-2 border-b border-line bg-panel px-4 py-3 lg:px-6",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h1",{className:"text-lg font-medium text-ink",children:"History"}),(0,t.jsx)("p",{className:"truncate text-xs text-mute",title:d?.dataDir,children:d?`${V.length} load ${1===V.length?"test":"tests"} \xb7 ${W.length} ${1===W.length?"compare":"compares"} \xb7 ${(0,N.L)(d.totalBytes)} on this computer`:f?"Loading…":"History is unavailable"})]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary py-1.5 text-sm",onClick:()=>void Y(),disabled:!d,children:[(0,t.jsx)(o.f,{size:15}),"Show folder"]})]}),v&&!d?(0,t.jsxs)("div",{role:"alert",className:"m-6 rounded-md border border-bad/40 bg-bad/10 px-4 py-3 text-sm text-ink",children:[(0,t.jsx)("p",{className:"font-medium text-bad",children:"Can't reach the engine"}),(0,t.jsxs)("p",{className:"mt-1",children:["History is stored by the local engine. Start it with pnpm dev, then come back. (",v,")"]})]}):null,(0,t.jsxs)("div",{ref:e.gridRef,style:e.gridStyle,className:"relative grid min-h-0 flex-1 overflow-y-auto lg:grid-cols-[minmax(20rem,26rem)_minmax(0,1fr)] lg:overflow-hidden",children:[(0,t.jsx)(s.f,{label:"History list width",...e.splitter}),(0,t.jsxs)("section",{"aria-label":"Saved records",className:"flex min-h-0 flex-col border-line lg:border-r",children:[(0,t.jsxs)("div",{className:"space-y-2 border-b border-line px-4 py-3",children:[(0,t.jsxs)("label",{className:"relative block",children:[(0,t.jsx)("span",{className:"sr-only",children:"Search history"}),(0,t.jsx)(u.f,{size:14,className:"pointer-events-none absolute top-1/2 left-2.5 -translate-y-1/2 text-mute","aria-hidden":!0}),(0,t.jsx)("input",{value:g,onChange:e=>C(e.target.value),placeholder:"Search name, URL, or note",className:"input pl-8"})]}),(0,t.jsx)(k.f,{label:"Show",value:F,onChange:M,options:[{value:"all",label:"All"},{value:"runs",label:"Performance tests"},{value:"compares",label:"Compares"},{value:"baselines",label:"Reference runs"}]})]}),U.size>0?(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 border-b border-line bg-accent-dim px-4 py-2 text-sm",children:[(0,t.jsxs)("span",{className:"text-ink",children:[U.size," selected"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary ml-auto py-1 text-xs",disabled:K.length<2||K.length>6||J.length>0,title:K.length<2?"Tick 2–6 performance tests to overlay them":"Overlay these runs on Compare",onClick:()=>r.push(`/compare?ids=${K.join(",")}`),children:[(0,t.jsx)(c.f,{size:13}),"Overlay"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-danger py-1 text-xs",disabled:P,onClick:()=>void X(K,J),children:[(0,t.jsx)(p.f,{size:13}),"Delete"]}),(0,t.jsx)("button",{type:"button","aria-label":"Clear selection",className:"rounded p-1 text-mute hover:text-ink",onClick:()=>O(new Set),children:(0,t.jsx)(h.X,{size:14})})]}):null,(0,t.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto px-2 py-2",children:[d?.invalid.length?(0,t.jsx)(D,{index:d,onChanged:b,onReveal:()=>void Y()}):null,f&&!d?(0,t.jsxs)("p",{className:"flex items-center gap-2 px-3 py-6 text-sm text-mute",children:[(0,t.jsx)(m.f,{size:14,className:"animate-spin"})," Reading your history folder…"]}):0===B.length?(0,t.jsx)(R,{filtered:!!g||"all"!==F,hasAny:V.length+W.length>0}):Z.map(([e,s])=>(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)("h2",{className:"px-2 py-1 text-xs font-medium text-mute",children:e}),(0,t.jsx)("ul",{className:"space-y-0.5",children:s.map(e=>{let s=`${e.kind}:${e.id}`,n=z?.kind===e.kind&&z.id===e.id;return(0,t.jsxs)("li",{className:`flex items-start gap-2 rounded-md px-2 py-2 ${n?"bg-accent-dim":"hover:bg-panel-2"}`,children:[(0,t.jsx)("input",{type:"checkbox",checked:U.has(s),onChange:()=>{let t;return t=`${e.kind}:${e.id}`,void O(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},"aria-label":`Select ${e.name}`,className:"mt-1 accent-[var(--accent)]"}),(0,t.jsx)("button",{type:"button",onClick:()=>q({kind:e.kind,id:e.id}),"aria-current":n?"true":void 0,className:"min-w-0 flex-1 text-left",children:"run"===e.kind?(0,t.jsx)(_,{run:e,slo:i}):(0,t.jsx)(E,{compare:e})})]},s)})})]},e))]})]}),(0,t.jsx)("section",{"aria-label":"Details",className:"@container min-h-0 min-w-0 overflow-y-auto px-4 py-4 lg:px-6",children:z?.kind==="run"?(0,t.jsx)(I,{summary:V.find(e=>e.id===z.id),related:V,onSelect:e=>q({kind:"run",id:e}),onDelete:e=>void X([e],[]),onReveal:e=>void Y({folder:"runs",id:e})},z.id):z?.kind==="compare"?(0,t.jsx)(L,{summary:W.find(e=>e.id===z.id),onDelete:e=>void X([],[e]),onReveal:e=>void Y({folder:"compares",id:e})},z.id):d?(0,t.jsx)(A,{}):null})]})]})}])},37837,e=>{var t=e.i(72587),s=e.i(55218),n=e.i(90484),r=e.i(14865);e.s(["f",0,function({anchor:e,open:a,onClose:l,children:i,label:o,width:c=280,role:d="dialog"}){let m=(0,s.useRef)(null),[u,p]=(0,s.useState)(null);return((0,s.useLayoutEffect)(()=>{if(!a)return;let t=()=>{if(!e.current)return;let t=(0,r.C)(e.current),s=(0,r.v)(),n=m.current?.offsetHeight??320,a=s.height-t.bottom-8,l=t.top-8,i=a<Math.min(n,240)&&l>a,o=Math.min(Math.max(8,t.right-c),s.width-c-8);p({top:i?Math.max(8,t.top-Math.min(n,l)-4):t.bottom+4,left:o,maxHeight:Math.max(160,(i?l:a)-4)})};t();let s=window.requestAnimationFrame(t);return window.addEventListener("resize",t),()=>{window.cancelAnimationFrame(s),window.removeEventListener("resize",t)}},[a,e,c]),(0,s.useEffect)(()=>{if(!a)return;let t=t=>{let s=t.target;m.current?.contains(s)||e.current?.contains(s)||l()},s=t=>{"Escape"===t.key&&(t.stopPropagation(),l(),e.current?.focus())},n=e=>{m.current?.contains(e.target)||l()},r=t=>{e.current?.contains(t.target)&&(t.stopPropagation(),t.preventDefault(),l())};return document.addEventListener("pointerdown",t,!0),document.addEventListener("click",r,!0),document.addEventListener("keydown",s,!0),document.addEventListener("scroll",n,!0),()=>{document.removeEventListener("pointerdown",t,!0),document.removeEventListener("click",r,!0),document.removeEventListener("keydown",s,!0),document.removeEventListener("scroll",n,!0)}},[a,l,e]),(0,s.useEffect)(()=>{a&&window.setTimeout(()=>m.current?.querySelector("[role=menuitem], input, select, button")?.focus(),0)},[a]),!a||"u"<typeof document)?null:(0,n.createPortal)((0,t.jsx)("div",{ref:m,role:d,"aria-label":o,style:{top:u?.top??-9999,left:u?.left??-9999,width:c,maxHeight:u?.maxHeight},className:"anim-pop fixed z-[70] overflow-auto rounded-lg border border-line bg-panel p-3 shadow-2xl",children:i}),document.body)}])},32610,e=>{var t=e.i(72587),s=e.i(55218);e.s(["f",0,function({orientation:e,label:n,value:r,onMove:a,onStep:l,onReset:i,onDragging:o,className:c="",style:d}){let[m,u]=(0,s.useState)(!1);(0,s.useEffect)(()=>o?.(m),[m,o]),(0,s.useEffect)(()=>{if(!m)return;let t=e=>a(e.clientX,e.clientY),s=()=>u(!1);return document.body.style.userSelect="none",document.body.style.cursor="vertical"===e?"col-resize":"row-resize",window.addEventListener("pointermove",t),window.addEventListener("pointerup",s),()=>{document.body.style.userSelect="",document.body.style.cursor="",window.removeEventListener("pointermove",t),window.removeEventListener("pointerup",s)}},[m,a,e]);let p="vertical"===e;return(0,t.jsx)("div",{role:"separator",tabIndex:0,"aria-orientation":e,"aria-label":n,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(r),title:`${n} — drag, or double-click to reset`,onPointerDown:e=>{0===e.button&&(e.preventDefault(),u(!0))},onDoubleClick:i,style:{...d,outline:"none"},onKeyDown:e=>{let t=p?"ArrowLeft":"ArrowUp";e.key===t||e.key===(p?"ArrowRight":"ArrowDown")?(e.preventDefault(),l(e.key===t?-1:1,e.shiftKey)):("Enter"===e.key||"Home"===e.key)&&(e.preventDefault(),i())},className:`group z-20 hidden touch-none outline-none lg:block ${p?"w-2 cursor-col-resize":"h-2 cursor-row-resize"} ${c}`,children:(0,t.jsx)("span",{"aria-hidden":!0,className:`pointer-events-none absolute bg-accent opacity-0 transition-opacity group-hover:opacity-60 group-focus-visible:opacity-100 ${m?"opacity-100":""} ${p?"inset-y-0 left-1/2 w-0.5 -translate-x-1/2":"inset-x-0 top-1/2 h-0.5 -translate-y-1/2"}`})})}])},30617,e=>{e.i(24856);var t=e.i(46306),s=e.i(36558),n=e.i(2385),r=e.i(17219);let a={base:0,header:1,desc:2,pass:3,warn:4,fail:5};function l(e){return String(e).replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("\n"," ")}function i(e,t,s){if("level"===e)return"pass"===t?a.pass:"warn"===t?a.warn:"fail"===t?a.fail:a.base;let n="number"==typeof t?t:Number(t);return"errors"===e?n>=s.errorFail?a.fail:n>=s.errorWarn?a.warn:a.pass:n>=s.p95FailMs?a.fail:n>=s.p95WarnMs?a.warn:a.pass}let o=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2
|
-
<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
|
|
3
|
-
<fonts count="3">
|
|
4
|
-
<font><sz val="11"/><name val="Calibri"/></font>
|
|
5
|
-
<font><b/><sz val="11"/><color rgb="FFFFFFFF"/><name val="Calibri"/></font>
|
|
6
|
-
<font><sz val="10"/><color rgb="FF5C6778"/><name val="Calibri"/></font>
|
|
7
|
-
</fonts>
|
|
8
|
-
<fills count="6">
|
|
9
|
-
<fill><patternFill patternType="none"/></fill>
|
|
10
|
-
<fill><patternFill patternType="gray125"/></fill>
|
|
11
|
-
<fill><patternFill patternType="solid"><fgColor rgb="FF0B8F7C"/></patternFill></fill>
|
|
12
|
-
<fill><patternFill patternType="solid"><fgColor rgb="FFDCFCE7"/></patternFill></fill>
|
|
13
|
-
<fill><patternFill patternType="solid"><fgColor rgb="FFFEF3C7"/></patternFill></fill>
|
|
14
|
-
<fill><patternFill patternType="solid"><fgColor rgb="FFFECACA"/></patternFill></fill>
|
|
15
|
-
</fills>
|
|
16
|
-
<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>
|
|
17
|
-
<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>
|
|
18
|
-
<cellXfs count="6">
|
|
19
|
-
<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>
|
|
20
|
-
<xf numFmtId="0" fontId="1" fillId="2" borderId="0" xfId="0" applyFont="1" applyFill="1" applyAlignment="1"><alignment horizontal="center" vertical="center"/></xf>
|
|
21
|
-
<xf numFmtId="0" fontId="2" fillId="0" borderId="0" xfId="0" applyFont="1" applyAlignment="1"><alignment wrapText="1" vertical="center"/></xf>
|
|
22
|
-
<xf numFmtId="0" fontId="0" fillId="3" borderId="0" xfId="0" applyFill="1"/>
|
|
23
|
-
<xf numFmtId="0" fontId="0" fillId="4" borderId="0" xfId="0" applyFill="1"/>
|
|
24
|
-
<xf numFmtId="0" fontId="0" fillId="5" borderId="0" xfId="0" applyFill="1"/>
|
|
25
|
-
</cellXfs>
|
|
26
|
-
</styleSheet>`;async function c(e,r,l){let o=(0,n.s)(e,{slo:r}),c=(0,n.v)(r),m=(0,t.$)(l,(0,t.L)(e));return d([{name:"Overview",rows:[[{v:"Key",s:a.header},{v:"Value",s:a.header},{v:"What this means",s:a.header}],...(0,s.E)(e).map(e=>{let t=a.base;return"failed_rate"===e.key&&(t=i("errors",e.value,c)),"latency_p95_ms"===e.key&&(t=i("latency",e.value,c)),(e.key.startsWith("status_5")||"status_0"===e.key)&&(t=Number(e.value)>0?a.fail:a.pass),e.key.startsWith("status_4")&&Number(e.value)>0&&(t=a.warn),e.key.startsWith("threshold:")&&(t="pass"===e.value?a.pass:a.fail),[{v:e.key},{v:e.value,s:t},{v:e.description,s:a.desc}]})]},{name:"Result summary",rows:[[{v:"Field",s:a.header},{v:"Level",s:a.header},{v:"What this means",s:a.header}],[{v:"overall"},{v:o.overall,s:i("level",o.overall,c)},{v:o.headline,s:a.desc}],...o.aspects.map(e=>[{v:e.title},{v:e.level,s:i("level",e.level,c)},{v:e.summary,s:a.desc}]),[{v:"disclaimer"},{v:""},{v:o.disclaimer,s:a.desc}],...m.map((e,s)=>[{v:`chart_${s+1}`},{v:`${e.w}x${e.h}`},{v:t.p[e.id],s:a.desc}])]},{name:"Second by second",rows:[s.V.map(e=>({v:e.header,s:a.header})),...e.buckets.map(e=>(0,s.u)(e).map((e,t)=>{let n=s.V[t]?.key,r=a.base;return"p95_ms"===n&&(r=i("latency",e,c)),"failed_rate"===n&&(r=i("errors",e,c)),"http_5xx"===n&&Number(e)>0&&(r=a.fail),"http_0"===n&&Number(e)>0&&(r=a.fail),"http_4xx"===n&&Number(e)>0&&(r=a.warn),"http_2xx"===n&&Number(e)>0&&(r=a.pass),{v:e,s:r}}))]}])}function d(e){let t={"[Content_Types].xml":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
27
|
-
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
|
|
28
|
-
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
|
|
29
|
-
<Default Extension="xml" ContentType="application/xml"/>
|
|
30
|
-
<Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/>
|
|
31
|
-
<Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/>
|
|
32
|
-
${e.map((e,t)=>` <Override PartName="/xl/worksheets/sheet${t+1}.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`).join("\n")}
|
|
33
|
-
</Types>`,"_rels/.rels":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
34
|
-
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
|
35
|
-
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>
|
|
36
|
-
</Relationships>`,"xl/workbook.xml":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
37
|
-
<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
|
|
38
|
-
<sheets>
|
|
39
|
-
${e.map((e,t)=>` <sheet name="${l(e.name.replace(/[:\\/?*[\]]/g," ").trim().slice(0,31)||"Sheet")}" sheetId="${t+1}" r:id="rId${t+1}"/>`).join("\n")}
|
|
40
|
-
</sheets>
|
|
41
|
-
</workbook>`,"xl/_rels/workbook.xml.rels":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
42
|
-
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
|
43
|
-
${e.map((e,t)=>` <Relationship Id="rId${t+1}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet${t+1}.xml"/>`).join("\n")}
|
|
44
|
-
<Relationship Id="rId${e.length+1}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>
|
|
45
|
-
</Relationships>`,"xl/styles.xml":o};return e.forEach((e,s)=>{var n;let r,a,i;return t[`xl/worksheets/sheet${s+1}.xml`]=(n=e.rows,a=Array.from({length:r=n[0]?.length??0},(e,t)=>{let s=function(e,t,s=10,n=48){let r=s;for(let s of e){let e=s[t]?.v;void 0!==e&&(r=Math.max(r,String(e).length+2))}return Math.min(n,r)}(n,t,t===r-1&&r>=3?36:12,t===r-1&&r>=3?72:42);return`<col min="${t+1}" max="${t+1}" width="${s}" customWidth="1"/>`}).join(""),i=n.map((e,t)=>`<row r="${t+1}" ht="${0===t?22:18}" customHeight="1">${e.map((e,s)=>{var n;let r,a;return n=t+1,r=`${function(e){let t=e+1,s="";for(;t>0;)s=String.fromCharCode(65+(t-1)%26)+s,t=Math.floor((t-1)/26);return s}(s)}${n}`,a=void 0!==e.s?` s="${e.s}"`:"","number"==typeof e.v&&Number.isFinite(e.v)?`<c r="${r}"${a}><v>${e.v}</v></c>`:`<c r="${r}"${a} t="inlineStr"><is><t xml:space="preserve">${l(e.v)}</t></is></c>`}).join("")}</row>`).join(""),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
46
|
-
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
|
|
47
|
-
<sheetViews><sheetView workbookViewId="0"><pane ySplit="1" topLeftCell="A2" activePane="bottomLeft" state="frozen"/></sheetView></sheetViews>
|
|
48
|
-
<cols>${a}</cols>
|
|
49
|
-
<sheetData>${i}</sheetData>
|
|
50
|
-
</worksheet>`)}),new Blob([(0,r.f)(t)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})}e.s(["S",0,a,"a",0,c,"F",0,d])},62766,e=>{var t=e.i(55218);let s="apitestcenter-pane-sizes",n=(e,t,s)=>Math.min(s,Math.max(t,e));function r(e){let[s,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=window.matchMedia(e),s=()=>n(t.matches);return s(),t.addEventListener("change",s),()=>t.removeEventListener("change",s)},[e]),s}e.s(["K",0,function(e,{min:a=220,max:l=900,rest:i=360}={}){let o=r("(min-width: 1024px)"),c=(0,t.useRef)(null),d=`${s}:${e}`,[m,u]=(0,t.useState)(null),[p,h]=(0,t.useState)(0);(0,t.useEffect)(()=>{try{let e=Number(JSON.parse(localStorage.getItem(d)??"null"));Number.isFinite(e)&&e>0&&u(e)}catch{}},[d]),(0,t.useEffect)(()=>{let e=[...c.current?.children??[]].find(e=>"separator"!==e.getAttribute("role"));if(!e)return;let t=new ResizeObserver(()=>h(e.getBoundingClientRect().width));return t.observe(e),()=>t.disconnect()},[o]);let f=(0,t.useCallback)(e=>{let t=c.current?.getBoundingClientRect(),s=null===e?null:Math.round(n(e,a,Math.max(a,Math.min(l,(t?.width??l+i)-i))));u(s);try{null===s?localStorage.removeItem(d):localStorage.setItem(d,JSON.stringify(s))}catch{}},[l,a,i,d]),x=()=>c.current?.getBoundingClientRect();return{wide:o,gridRef:c,gridStyle:o&&null!==m?{gridTemplateColumns:`${m}px minmax(0,1fr)`}:void 0,splitter:{orientation:"vertical",value:(m??p)/Math.max(1,x()?.width??1)*100,onMove:e=>{let t=x();t&&f(e-t.left)},onStep:(e,t)=>f((m??p)+16*e*(t?4:1)),onReset:()=>f(null),className:"absolute inset-y-0 -translate-x-1/2",style:{left:`${p}px`}}}},"f",0,function(e,a){let l=r("(min-width: 1024px)"),i=r("(min-width: 1536px)"),o=(0,t.useRef)(null),[c,d]=(0,t.useState)({panel:null,beside:null,below:null});(0,t.useEffect)(()=>{try{let e=JSON.parse(localStorage.getItem(s)??"null"),t=e=>"number"==typeof e&&Number.isFinite(e)?e:null;e&&d({panel:t(e.panel),beside:t(e.beside),below:t(e.below)})}catch{}},[]);let m=(0,t.useCallback)(e=>{d(t=>{let n={...t,...e};try{localStorage.setItem(s,JSON.stringify(n))}catch{}return n})},[]),u=n(c.panel??(i?256:240),180,480),p=a?u:0,h=n("below"===e?c.below??.5:c.beside??(i?5/12:.5),.2,.8),f=l?"below"===e?{gridTemplateColumns:`${p}px minmax(0,1fr)`,gridTemplateRows:`minmax(0,${h}fr) minmax(0,${1-h}fr)`}:{gridTemplateColumns:`${p}px minmax(0,${h}fr) minmax(0,${1-h}fr)`}:void 0,x=()=>o.current?.getBoundingClientRect(),y=(0,t.useCallback)(e=>{let t=x();t&&m({panel:n(e-t.left,180,Math.min(480,.4*t.width))})},[m]),v=(0,t.useCallback)((t,s)=>{let r=x();r&&("below"===e?m({below:n((s-r.top)/r.height,.2,.8)}):m({beside:n((t-r.left-p)/Math.max(1,r.width-p),.2,.8)}))},[m,e,p]);return{wide:l,gridRef:o,gridStyle:f,panelWidth:l?u:void 0,panel:{value:u/480*100,onMove:e=>y(e),onStep:(e,t)=>m({panel:n(u+16*e*(t?4:1),180,480)}),onReset:()=>m({panel:null}),style:{left:`${p}px`}},split:{value:100*h,onMove:v,onStep:(t,s)=>m("below"===e?{below:n(h+.02*t*(s?5:1),.2,.8)}:{beside:n(h+.02*t*(s?5:1),.2,.8)}),onReset:()=>m("below"===e?{below:null}:{beside:null}),style:"below"===e?{top:`${100*h}%`,left:`${p}px`,right:0}:{left:`calc(${p}px + (100% - ${p}px) * ${h})`,top:0,bottom:0}}}}])},61230,17847,e=>{e.s(["f",0,function(e){try{return decodeURI(e.replace(/\+/g,"%20")).replace(/%2C/gi,",").replace(/%24/g,"$").replace(/%27/g,"'").replace(/%3A/gi,":").replace(/%2F/gi,"/").replace(/%3D/gi,"=")}catch{return e}}],61230);var t=e.i(72587),s=e.i(55218),n=e.i(90484),r=e.i(14865);e.s(["c",0,function({at:e,label:a,onClose:l,children:i}){let o=(0,s.useRef)(null),[c,d]=(0,s.useState)(null);return((0,s.useLayoutEffect)(()=>{let t=o.current;if(!t)return;let s=(0,r.v)();d({left:Math.max(8,Math.min(e.x,s.width-t.offsetWidth-8)),top:Math.max(8,Math.min(e.y,s.height-t.offsetHeight-8))}),t.querySelector('[role="menuitem"]:not(:disabled)')?.focus()},[e]),(0,s.useEffect)(()=>{let e=e=>{o.current?.contains(e.target)||l()},t=e=>{if("Escape"===e.key)e.stopPropagation(),l();else if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault();let t=[...o.current?.querySelectorAll('[role="menuitem"]:not(:disabled)')??[]],s=t.indexOf(document.activeElement);t[(s+("ArrowDown"===e.key?1:-1)+t.length)%t.length]?.focus()}};return document.addEventListener("pointerdown",e,!0),document.addEventListener("scroll",e,!0),window.addEventListener("resize",l),window.addEventListener("keydown",t,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("scroll",e,!0),window.removeEventListener("resize",l),window.removeEventListener("keydown",t,!0)}},[l]),"u"<typeof document)?null:(0,n.createPortal)((0,t.jsx)("div",{ref:o,role:"menu","aria-label":a,style:{left:c?.left??-9999,top:c?.top??-9999},className:"fixed z-[80] w-56 rounded-lg border border-line bg-panel p-1 shadow-2xl",children:i}),document.body)},"d",0,function({icon:e,label:s,hint:n,onSelect:r,danger:a=!1,disabled:l=!1}){return(0,t.jsxs)("button",{type:"button",role:"menuitem",disabled:l,onClick:r,className:`flex w-full items-center gap-2.5 rounded-md px-2.5 py-1.5 text-left text-sm disabled:opacity-40 ${a?"text-bad hover:bg-bad/10":"text-ink hover:bg-panel-2"}`,children:[(0,t.jsx)("span",{className:`flex w-4 shrink-0 justify-center ${a?"":"text-mute"}`,"aria-hidden":!0,children:e?(0,t.jsx)(e,{size:14}):null}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:s}),n?(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-mute",children:n}):null]})},"U",0,function({children:e}){return(0,t.jsx)("div",{className:"px-2.5 pt-1.5 pb-1 text-[11px] font-medium tracking-wide text-mute uppercase",children:e})},"Z",0,function(){return(0,t.jsx)("div",{role:"separator",className:"my-1 h-px bg-line"})}],17847)},17219,e=>{let t=new Uint32Array(256).map((e,t)=>{let s=t;for(let e=0;e<8;e++)s=1&s?0xedb88320^s>>>1:s>>>1;return s>>>0});function s(e){let t=new Uint8Array(2);return new DataView(t.buffer).setUint16(0,e,!0),t}function n(e){let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),t}function r(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),s=0;for(let n of e)t.set(n,s),s+=n.length;return t}e.s(["f",0,function(e){let a=new TextEncoder,l=[],i=[],o=0;for(let[c,d]of Object.entries(e)){let e=a.encode(c),m="string"==typeof d?a.encode(d):d,u=function(e){let s=0xffffffff;for(let n of e)s=t[(s^n)&255]^s>>>8;return(0xffffffff^s)>>>0}(m),p=r([n(0x4034b50),s(20),s(0),s(0),s(0),s(0),n(u),n(m.length),n(m.length),s(e.length),s(0),e,m]),h=r([n(0x2014b50),s(20),s(20),s(0),s(0),s(0),s(0),n(u),n(m.length),n(m.length),s(e.length),s(0),s(0),s(0),s(0),n(0),n(o),e]);l.push(p),i.push(h),o+=p.length}let c=r(i),d=r([n(0x6054b50),s(0),s(0),s(Object.keys(e).length),s(Object.keys(e).length),n(c.length),n(o),s(0)]),m=r([...l,c,d]);return new Blob([m.buffer.slice(m.byteOffset,m.byteOffset+m.byteLength)],{type:"application/zip"})}])},13643,e=>{let t=(0,e.i(99522).f)("bell-off",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]);e.s(["f",0,t],13643)},95211,e=>{let t=(0,e.i(99522).f)("columns-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);e.s(["f",0,t],95211)},81538,e=>{let t=(0,e.i(99522).f)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["f",0,t],81538)},13163,e=>{let t=(0,e.i(99522).f)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["f",0,t],13163)},3792,e=>{let t=(0,e.i(99522).f)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["f",0,t],3792)},95927,e=>{let t=(0,e.i(99522).f)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["f",0,t],95927)},66478,14168,e=>{let t=(0,e.i(99522).f)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);async function s(e){let t=await e.json().catch(()=>null);if(!e.ok)throw Error(t?.error??`Engine error (${e.status})`);return t}e.s(["f",0,t],66478);let n=(e,t,s)=>fetch(t,{method:e,headers:void 0===s?void 0:{"content-type":"application/json"},body:void 0===s?void 0:JSON.stringify(s)});e.s(["Y",0,{plan:e=>fetch(`/engine/suites/plan?collection=${encodeURIComponent(e)}`,{cache:"no-store"}).then(e=>s(e)),savePlan:(e,t)=>n("PUT","/engine/suites/plan",{collection:e,...t}).then(e=>s(e)),start:e=>n("POST","/engine/suites/runs",e).then(e=>s(e)),get:e=>fetch(`/engine/suites/runs/${encodeURIComponent(e)}`,{cache:"no-store"}).then(e=>s(e)),stop:e=>n("POST",`/engine/suites/runs/${encodeURIComponent(e)}/stop`).then(e=>s(e))},"W",0,function(e){return`/suite?c=${encodeURIComponent(e)}`}],14168)},36558,e=>{function t(e,s=2){if(!Number.isFinite(e))return 0;let n=10**s;return Math.round(e*n)/n}function s(e){return e>=100?Math.round(e):e>=10?t(e,1):t(e,2)}function n(e){return e>=10?Math.round(e):t(e,1)}function r(e,t=e=>e){return null==e?"":t(e)}e.s(["V",0,[{key:"elapsed_s",header:"Seconds into test",description:"Seconds from the start of the run."},{key:"ts",header:"Clock time",description:"Wall-clock time for this one-second sample."},{key:"vus",header:"Concurrent users",description:"Virtual users (VUs) active in this second."},{key:"rps",header:"Requests per second",description:"Completed requests in this second."},{key:"p50_ms",header:"Median latency (ms)",description:"Half of requests this second were faster than this."},{key:"p95_ms",header:"95th percentile (ms)",description:"95% of requests this second were faster than this."},{key:"p99_ms",header:"99th percentile (ms)",description:"The slow tail this second — 1 in 100 was slower."},{key:"failed_rate",header:"Error rate",description:"Share of requests that failed in this second (0–1)."},{key:"http_2xx",header:"Success (2xx)",description:"Successful HTTP responses this second."},{key:"http_4xx",header:"Client errors (4xx)",description:"Client / auth errors this second."},{key:"http_5xx",header:"Server errors (5xx)",description:"Server errors this second."},{key:"http_0",header:"Network failures",description:"No HTTP status (timeout / reset) this second."},{key:"bytes_in",header:"Bytes received",description:"Response bytes this second."},{key:"bytes_out",header:"Bytes sent",description:"Request bytes this second."},{key:"p90_ms",header:"90th percentile (ms)",description:"90% of requests this second were faster than this."},{key:"p999_ms",header:"99.9th percentile (ms)",description:"1 in 1,000 requests this second was slower than this."},{key:"max_ms",header:"Slowest (ms)",description:"Slowest request this second."},{key:"ttfb_ms",header:"Server time (ms)",description:"Average time to first byte this second — the server's own work."},{key:"connect_ms",header:"TCP connect (ms)",description:"Average TCP connect time this second (0 when connections are reused)."},{key:"tls_ms",header:"TLS handshake (ms)",description:"Average TLS handshake time this second."},{key:"checks_passed",header:"Checks passed",description:"Response checks that passed this second."},{key:"checks_failed",header:"Checks failed",description:"Response checks that failed this second."},{key:"dropped",header:"Dropped requests",description:"Rate mode: requests k6 could not start this second."}],"u",0,function(e){return[e.elapsedS,e.ts,t(e.vus,1),s(e.rps),n(e.p50Ms),n(e.p95Ms),n(e.p99Ms),t(e.failedRate,4),e.http2xx,e.http4xx,e.http5xx,e.http0,e.bytesIn,e.bytesOut,r(e.p90Ms,n),r(e.p999Ms,n),r(e.maxMs,n),r(e.ttfbMs,n),r(e.connectMs,n),r(e.tlsMs,n),r(e.checksPassed),r(e.checksFailed),r(e.dropped)]},"E",0,function(e){let{summary:r}=e,a=[{key:"run_id",value:e.id,description:"Id of this run in this browser tab."},{key:"test_name",value:e.testName,description:"Display name (method, path, time)."},{key:"status",value:e.status,description:"completed, failed, cancelled, or still running."},{key:"started_at",value:e.startedAt,description:"When the load test started (UTC)."},{key:"ended_at",value:e.endedAt,description:"When the load test finished (UTC)."},{key:"method",value:e.definition.method,description:"HTTP method that was repeated."},{key:"url",value:e.definition.url,description:"Target URL (secrets are not exported)."},{key:"auth_mode",value:e.definition.auth.mode,description:"Auth used: none, bearer, basic, or api_key. The secret is not exported."},{key:"executor",value:e.definition.load.executor,description:"Load pattern: constant-vus (steady) or ramping-vus (ramp / hold / down)."},{key:"requests",value:r.http.requests,description:"How many HTTP calls finished. Zero usually means the target never answered."},{key:"rps_avg",value:s(r.http.rps.avg),description:"Average requests per second completed by this generator."},{key:"rps_max",value:s(r.http.rps.max),description:"Peak requests per second in any one-second sample."},{key:"failed_count",value:r.http.failed.count,description:"Requests that failed (4xx, 5xx, timeout, or no status)."},{key:"failed_rate",value:t(r.http.failed.rate,4),description:"Failed / total. Default warning bar is 1% (0.01)."},{key:"latency_min_ms",value:n(r.latencyMs.min),description:"Fastest request (milliseconds)."},{key:"latency_mean_ms",value:n(r.latencyMs.mean),description:"Average response time. Slow outliers pull this up."},{key:"latency_p50_ms",value:n(r.latencyMs.median),description:"Median — half of requests were faster than this."},{key:"latency_p95_ms",value:n(r.latencyMs.p95),description:"95th percentile — 95% of requests were faster. Usual headline latency."},{key:"latency_p99_ms",value:n(r.latencyMs.p99),description:"99th percentile — the slow tail (1 in 100 was slower)."},{key:"latency_max_ms",value:n(r.latencyMs.max),description:"Slowest single request."},{key:"vus_max",value:r.vus.max,description:"Peak concurrent users (virtual users / VUs)."},{key:"vus_avg",value:t(r.vus.avg,1),description:"Average concurrent users over the run."},{key:"bytes_in",value:r.data.bytesIn,description:"Response bytes received by the generator."},{key:"bytes_out",value:r.data.bytesOut,description:"Request bytes sent by the generator."},{key:"phase_ttfb_avg_ms",value:n(r.phasesMs.ttfb.avg),description:"Time to first byte — waiting on the server after the connection is up."},{key:"phase_tls_avg_ms",value:n(r.phasesMs.tls.avg),description:"TLS handshake time. High values often mean a far or overloaded endpoint."}];for(let[e,t]of Object.entries(r.http.status)){let s="0"===e?"No HTTP status (timeout / network).":Number(e)>=500?"Server error.":Number(e)>=400?"Client / auth error.":"Success-class response.";a.push({key:`status_${e}`,value:t,description:`How many responses had status ${e}. ${s}`})}for(let e of r.thresholds)a.push({key:`threshold:${e.name}`,value:e.ok?"pass":"fail",description:"k6 threshold result for this run."});return a}])}])})();
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6980,e=>{var t=e.i(72587);e.i(24856);var s=e.i(90870),n=e.i(2385),a=e.i(36163),r=e.i(78451),l=e.i(90139),i=e.i(95486),o=e.i(1245),c=e.i(33577),d=e.i(89932),u=e.i(85905),m=e.i(47677),h=e.i(20621),x=e.i(91694),p=e.i(30197),f=e.i(27813),b=e.i(99522);let y=(0,b.f)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),g=(0,b.f)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);var v=e.i(3792),k=e.i(5769),j=e.i(71189);let w=(0,b.f)("rows-2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]]);var N=e.i(95927),S=e.i(50962),q=e.i(66478);let $=(0,b.f)("square-x",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var C=e.i(10281),E=e.i(87283),R=e.i(55218),M=e.i(63343),O=e.i(44794),z=e.i(31753),L=e.i(29724),I=e.i(60566),P=e.i(39170),A=e.i(13318),T=e.i(68228),D=e.i(59100);let U=(0,b.f)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);var F=e.i(80707),J=e.i(56396);e.i(42674);var _=e.i(5305),V=e.i(6278);let H="\0new";function B(e,t){if(!t.has("baseUrl"))return"baseUrl";let s="api";try{s=new URL(e).hostname.split(".")[0].replace(/[^A-Za-z0-9]/g,"")||"api"}catch{}let n=`${s}Url`;for(let e=2;t.has(n);e++)n=`${s}Url${e}`;return n}function K({draft:e,sent:s,onChange:n}){let{environments:a,activeEnv:r,vars:l}=(0,V.U)(),[i,o]=(0,R.useState)(!1),c=function(e){try{let t=new URL(e);if(!/^https?:$/.test(t.protocol)||["localhost","127.0.0.1"].includes(t.hostname))return[];let s=t.origin,n=t.pathname.split("/").filter(Boolean);return n.length>=2?[s,`${s}/${n[0]}`]:[s]}catch{return[]}}(e.url),d=new Set(Object.values(l).map(e=>e.trim().replace(/\/+$/,"")));return!s||!c.length||c.some(e=>d.has(e))?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>o(!0),className:"inline-flex items-center gap-1 rounded-md px-1.5 py-1 text-accent hover:underline",title:"Keep this server address in an environment",children:[(0,t.jsx)(U,{size:13,"aria-hidden":!0})," Save ",c[0].replace(/^https?:\/\//,"")," as a base URL"]}),i?(0,t.jsx)(W,{draft:e,addresses:c,environments:a,activeEnvId:r?.id??null,onChange:n,onClose:()=>o(!1)}):null]})}function W({draft:e,addresses:s,environments:n,activeEnvId:a,onChange:r,onClose:l}){let i=(0,J.d)(),{index:o,saveEnvironments:c,setActiveEnv:d,refresh:u}=(0,V.U)(),[m,h]=(0,R.useState)(s[0]),[x,p]=(0,R.useState)(a??n[0]?.id??H),[f,b]=(0,R.useState)(()=>{try{return new URL(s[0]).hostname.split(".").slice(0,2).join(" ")}catch{return"My API"}}),y=n.find(e=>e.id===x)??null,g=(0,R.useMemo)(()=>new Set((y?.variables??[]).map(e=>e.key)),[y]),[v,k]=(0,R.useState)(()=>B(s[0],g)),[j,w]=(0,R.useState)(!0),[N,S]=(0,R.useState)(!1),q=(0,R.useRef)(null);(0,R.useEffect)(()=>q.current?.focus(),[]),(0,R.useEffect)(()=>k(B(m,g)),[m,g]);let $=(o?.requests??[]).filter(t=>t.url.startsWith(m)&&t.url!==e.url),C=y?.variables.find(e=>e.key===v),M=D.y.test(v)&&(x!==H||f.trim());async function O(){if(M&&!N){S(!0);try{let t=x===H?globalThis.crypto?.randomUUID?.()??`env-${Date.now().toString(36)}`:x,s=structuredClone(n),a=s.find(e=>e.id===t);a||(a={id:t,name:f.trim(),variables:[]},s.push(a)),a.variables=[...a.variables.filter(e=>e.key!==v),{key:v,value:m,secret:!1}],await c(s),d(t),r((0,_.e)(e,`{{${v}}}${e.url.slice(m.length)}`));let o=0,h=0;if(j){for(let e of $){let t=await V.v.get(e.id).catch(()=>null);if(!t||t.secretsMissing?.length){h++;continue}let s=(0,_.i)(t.request);s.url.startsWith(m)&&(await V.v.update(e.id,{name:t.name,collection:t.collection,request:(0,_.e)(s,`{{${v}}}${s.url.slice(m.length)}`)}),o++)}await u()}i(`Saved {{${v}}} in ${a.name}.${o?` ${o} other saved request${1===o?"":"s"} now use it.`:""}${h?` ${h} left as they were (a saved secret isn't available).`:""} Save this request to keep the change.`,"success"),l()}catch(e){i(e instanceof Error?e.message:"Could not save the base URL","error")}finally{S(!1)}}}return(0,t.jsx)("div",{className:"fixed inset-0 z-[75] flex items-center-safe justify-center overflow-y-auto bg-black/50 p-4 sm:p-16",role:"presentation",onMouseDown:e=>e.target===e.currentTarget&&!N&&l(),children:(0,t.jsxs)("form",{role:"dialog","aria-modal":"true","aria-labelledby":"save-base-title",onSubmit:e=>{e.preventDefault(),O()},onKeyDown:e=>"Escape"===e.key&&!N&&l(),className:"w-full max-w-lg space-y-4 rounded-xl border border-line bg-panel p-5 shadow-2xl",children:[(0,t.jsxs)("header",{className:"flex items-center gap-2",children:[(0,t.jsx)("h2",{id:"save-base-title",className:"text-base font-medium text-ink",children:"Save as a base URL"}),(0,t.jsx)("button",{type:"button",onClick:l,"aria-label":"Close",className:"ml-auto rounded p-1 text-mute hover:text-ink",children:(0,t.jsx)(E.X,{size:16})})]}),(0,t.jsx)("p",{className:"text-sm text-mute",children:"Keep the server address in an environment, so you type only the path — and switch servers (UAT, Prod) by switching environments."}),(0,t.jsxs)("fieldset",{className:"space-y-1.5",children:[(0,t.jsx)("legend",{className:"mb-1 text-xs text-mute",children:"Address"}),s.map(e=>(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm text-ink",children:[(0,t.jsx)("input",{type:"radio",name:"address",checked:m===e,onChange:()=>h(e)}),(0,t.jsx)("span",{className:"font-mono text-xs break-all",children:e})]},e))]}),(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs text-mute",children:["Environment",(0,t.jsx)(F.f,{label:"Environment",value:x,onChange:p,options:[...n.map(e=>({value:e.id,label:e.name,hint:`${e.variables.length} variables`})),{value:H,label:"New environment…"}],className:"rounded-md border border-line bg-panel-2 px-2 py-1.5 text-sm text-ink"})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs text-mute",children:["Variable name",(0,t.jsx)("input",{ref:q,value:v,onChange:e=>k(e.target.value.replace(/[^\w.-]/g,"")),className:"input py-1.5 font-mono text-sm"})]}),x===H?(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs text-mute sm:col-span-2",children:["New environment name",(0,t.jsx)("input",{value:f,onChange:e=>b(e.target.value),className:"input py-1.5 text-sm"})]}):null]}),C&&C.value!==m?(0,t.jsxs)("p",{className:"text-xs text-warn",children:[`{{${v}}}`," already exists in this environment (",C.value,") — it will be replaced."]}):null,(0,t.jsxs)("p",{className:"rounded-md bg-panel-2 px-3 py-2 font-mono text-xs text-ink break-all",children:[`{{${v}}}`,(0,t.jsx)("span",{className:"text-mute",children:e.url.slice(m.length)||"/"})]}),$.length?(0,t.jsxs)("label",{className:"flex items-start gap-2 text-sm text-ink",children:[(0,t.jsx)("input",{type:"checkbox",checked:j,onChange:e=>w(e.target.checked),className:"mt-1"}),(0,t.jsxs)("span",{children:["Also switch ",$.length," other saved request",1===$.length?"":"s"," that use this address",(0,t.jsxs)("span",{className:"block text-xs text-mute",children:[$.slice(0,3).map(e=>e.name).join(", "),$.length>3?` and ${$.length-3} more`:""]})]})]}):null,(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",className:"btn btn-secondary",onClick:l,disabled:N,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:"btn btn-primary",disabled:!M||N,children:"Save base URL"})]})]})})}var Z=e.i(65638),G=e.i(37837),X=e.i(17847);function Q(e,t){let s=(0,R.useRef)(!0);(0,R.useEffect)(()=>{if(s.current){s.current=!1;return}let t=e.current;!t||function(){try{return window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch{return!1}}()||"function"!=typeof t.animate||t.animate([{opacity:.35,transform:"translateY(3px)"},{opacity:1,transform:"none"}],{duration:180,easing:"cubic-bezier(0.2, 0, 0, 1)"})},[e,t])}var Y=e.i(97716);let ee=(e,t)=>"number"==typeof t?`${e}[${t}]`:/^[A-Za-z_$][\w$]*$/.test(t)?`${e}.${t}`:`${e}[${JSON.stringify(t)}]`;var et=e.i(96659),es=e.i(19656);function en({requestId:e,refreshKey:s,onOpen:n}){let a=(0,R.useRef)(null),[r,l]=(0,R.useState)(!1),[i,o]=(0,R.useState)([]),c=()=>void fetch(`/engine/responses/${e}`,{cache:"no-store"}).then(e=>e.ok?e.json():{answers:[]}).then(e=>o(e.answers)).catch(()=>void 0);return((0,R.useEffect)(c,[e,s]),i.length<2)?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{ref:a,type:"button",onClick:()=>l(e=>!e),"aria-expanded":r,title:"Earlier answers of this request — open one, or see what changed",className:"inline-flex items-center gap-1 rounded-md border border-line px-2 py-0.5 text-xs text-mute hover:border-accent hover:text-ink",children:[(0,t.jsx)(x.f,{size:12,"aria-hidden":!0})," Earlier · ",i.length-1]}),(0,t.jsx)(G.f,{anchor:a,open:r,onClose:()=>l(!1),label:"Earlier answers",width:340,children:(0,t.jsxs)("div",{className:"max-h-80 overflow-auto p-1",children:[(0,t.jsxs)("p",{className:"px-2 py-1.5 text-xs text-mute",children:["The last ",i.length," answers of this request, newest first · ",(0,es.L)(i.reduce((e,t)=>e+t.size,0))," kept"]}),(0,t.jsx)("ul",{children:i.map((s,a)=>{let r;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:async()=>{let t=await fetch(`/engine/responses/${e}/${a}`,{cache:"no-store"});t.ok&&n(await t.json(),a),l(!1)},className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-xs hover:bg-panel-2",children:[(0,t.jsx)("span",{className:`rounded border px-1.5 font-mono ${(0,I.Z)(s.status)}`,children:s.status||"ERR"}),(0,t.jsx)("span",{className:"text-ink",children:0===a?"Latest":(r=new Date(s.at),new Date().toDateString()===r.toDateString()?r.toLocaleTimeString():r.toLocaleString())}),(0,t.jsxs)("span",{className:"ml-auto font-mono text-mute",children:[Math.round(s.durationMs)," ms"]}),(0,t.jsx)("span",{className:"w-16 text-right font-mono text-mute",children:(0,es.L)(s.size)}),s.checks?(0,t.jsxs)("span",{className:s.passed===s.checks?"text-ok":"text-bad",children:[s.passed,"/",s.checks]}):null]})},s.at)})}),(0,t.jsxs)("button",{type:"button",onClick:async()=>{await fetch(`/engine/responses/${e}`,{method:"DELETE"}),l(!1),c()},className:"mt-1 flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs text-mute hover:bg-panel-2 hover:text-bad",children:[(0,t.jsx)(et.f,{size:12,"aria-hidden":!0})," Forget these answers"]})]})})]})}function ea(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}let er=e=>{let t="string"==typeof e?JSON.stringify(e):JSON.stringify(e)??"undefined";return t.length>80?`${t.slice(0,79)}…`:t};function el({earlier:e,latest:s}){let n=(0,R.useMemo)(()=>(function(e,t,s=200){let n,a;try{n=JSON.parse(e),a=JSON.parse(t)}catch{return null}let r=[],l=(e,t,n,a)=>{if(r.length>=s)return;let i=null!==t&&"object"==typeof t;if(null!==e&&"object"==typeof e&&i&&Array.isArray(e)===Array.isArray(t)&&a<40){if(Array.isArray(e)&&Array.isArray(t)){for(let i=0;i<Math.max(e.length,t.length)&&(i>=e.length?r.push({path:ee(n,i),kind:"added",after:t[i]}):i>=t.length?r.push({path:ee(n,i),kind:"removed",before:e[i]}):l(e[i],t[i],ee(n,i),a+1),!(r.length>=s));i++);return}for(let i of new Set([...Object.keys(e),...Object.keys(t)]))if(i in t?i in e?l(e[i],t[i],ee(n,i),a+1):r.push({path:ee(n,i),kind:"added",after:t[i]}):r.push({path:ee(n,i),kind:"removed",before:e[i]}),r.length>=s)break;return}JSON.stringify(e)!==JSON.stringify(t)&&r.push({path:n,kind:"changed",before:e,after:t})};return l(n,a,"$",0),r})(e.body,s.body),[e.body,s.body]),a=(0,R.useMemo)(()=>(function(e,t,s=3e3){let n=e.split("\n"),a=t.split("\n"),r=n.length>s||a.length>s;n=n.slice(0,s),a=a.slice(0,s);let l=0;for(;l<n.length&&l<a.length&&n[l]===a[l];)l++;let i=n.length,o=a.length;for(;i>l&&o>l&&n[i-1]===a[o-1];)i--,o--;let c=n.slice(l,i),d=a.slice(l,o),u=n.slice(0,l).map(e=>({kind:"same",text:e}));if(c.length*d.length>4e6)u.push(...c.map(e=>({kind:"removed",text:e})),...d.map(e=>({kind:"added",text:e})));else{let e=d.length+1,t=new Uint32Array((c.length+1)*e);for(let s=c.length-1;s>=0;s--)for(let n=d.length-1;n>=0;n--)t[s*e+n]=c[s]===d[n]?t[(s+1)*e+n+1]+1:Math.max(t[(s+1)*e+n],t[s*e+n+1]);let s=0,n=0;for(;s<c.length&&n<d.length;)c[s]===d[n]?(u.push({kind:"same",text:c[s]}),s++,n++):t[(s+1)*e+n]>=t[s*e+n+1]?u.push({kind:"removed",text:c[s++]}):u.push({kind:"added",text:d[n++]});for(;s<c.length;)u.push({kind:"removed",text:c[s++]});for(;n<d.length;)u.push({kind:"added",text:d[n++]})}return u.push(...n.slice(i).map(e=>({kind:"same",text:e}))),{lines:u,cut:r}})(ea(e.body),ea(s.body)),[e.body,s.body]),r=a.lines.filter(e=>"same"!==e.kind).length;return(0,t.jsxs)("div",{className:"space-y-3 overflow-auto",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-mute",children:[(0,t.jsxs)("span",{children:["Status ",(0,t.jsx)("span",{className:"font-mono text-ink",children:e.status})," → ",(0,t.jsx)("span",{className:"font-mono text-ink",children:s.status}),e.status===s.status?" (same)":""]}),(0,t.jsxs)("span",{children:["Time ",(0,t.jsxs)("span",{className:"font-mono text-ink",children:[Math.round(e.durationMs)," ms"]})," → ",(0,t.jsxs)("span",{className:"font-mono text-ink",children:[Math.round(s.durationMs)," ms"]})]}),(0,t.jsx)("span",{children:r?`${r} line${1===r?"":"s"} differ`:"The body is the same"})]}),e.masked?(0,t.jsx)("p",{className:"text-xs text-mute",children:"Values that look like secrets were hidden when the earlier answer was kept, so they show as changed."}):null,n&&n.length?(0,t.jsxs)("section",{"aria-label":"Changed fields",children:[(0,t.jsxs)("h3",{className:"mb-1 text-xs font-medium text-mute",children:[n.length," field",1===n.length?"":"s"," changed",n.length>=200?" (the first 200)":""]}),(0,t.jsx)("ul",{className:"max-h-56 space-y-0.5 overflow-auto rounded-md border border-line bg-panel-2 p-2 font-mono text-xs",children:n.map((e,s)=>(0,t.jsxs)("li",{children:[(0,t.jsx)("span",{className:"text-ink",children:e.path})," ","changed"===e.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-bad line-through decoration-bad/60",children:er(e.before)})," → ",(0,t.jsx)("span",{className:"text-ok",children:er(e.after)})]}):"added"===e.kind?(0,t.jsxs)("span",{className:"text-ok",children:["added ",er(e.after)]}):(0,t.jsxs)("span",{className:"text-bad",children:["removed (was ",er(e.before),")"]})]},s))})]}):null,(0,t.jsxs)("section",{"aria-label":"Line by line",children:[(0,t.jsxs)("h3",{className:"mb-1 text-xs font-medium text-mute",children:["Line by line",a.cut?" (the first 3,000 lines)":""]}),(0,t.jsx)("pre",{className:"max-h-[28rem] overflow-auto rounded-md border border-line bg-panel-2 py-2 font-mono text-[12.5px] leading-5",children:a.lines.map((e,s)=>(0,t.jsxs)("div",{className:"added"===e.kind?"bg-ok/10 text-ok":"removed"===e.kind?"bg-bad/10 text-bad":"text-ink",children:[(0,t.jsx)("span",{className:"inline-block w-5 select-none text-center text-mute",children:"added"===e.kind?"+":"removed"===e.kind?"−":" "}),e.text]},s))})]})]})}var ei=e.i(21206),eo=e.i(20054);let ec="apitestcenter-lab-draft";var ed=e.i(59180),eu=e.i(88153),em=e.i(2603),eh=e.i(28950),ex=e.i(99822),ep=e.i(62766),ef=e.i(32610),eb=e.i(14865),ey=e.i(46679),eg=e.i(65238),ev=e.i(7149),ek=e.i(727),ej=e.i(45672),ew=e.i(69578),eN=e.i(17118),eS=e.i(40945),eq=e.i(27122);function e$({steps:e,startedAt:s,onCancel:n}){let[a,r]=(0,R.useState)(()=>Date.now()),[l]=(0,R.useState)(()=>new Map);for(let t of e)"start"!==t.state||l.has(t.id)||l.set(t.id,Date.now());(0,R.useEffect)(()=>{let e=window.setInterval(()=>r(Date.now()),100);return()=>window.clearInterval(e)},[]);let i=e=>e<1e3?`${e} ms`:`${(e/1e3).toFixed(1)} s`;return a-s<250?(0,t.jsx)("div",{className:"flex-1","aria-busy":"true"}):(0,t.jsxs)("div",{role:"status","aria-label":"Sending",className:"flex flex-1 flex-col items-center justify-center gap-5 py-10",children:[(0,t.jsxs)("ul",{className:"w-full max-w-md space-y-2",children:[e.map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-2.5 text-sm",children:["done"===e.state?(0,t.jsx)(eN.f,{size:16,className:"shrink-0 text-ok","aria-label":"done"}):"failed"===e.state?(0,t.jsx)(eq.f,{size:16,className:"shrink-0 text-bad","aria-label":"failed"}):(0,t.jsx)(f.f,{size:16,className:"shrink-0 animate-spin text-accent","aria-label":"running"}),(0,t.jsx)("span",{className:`min-w-0 flex-1 truncate ${"start"===e.state?"text-ink":"text-mute"}`,children:e.label}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-xs text-mute",children:void 0!==e.ms?i(e.ms):i(a-(l.get(e.id)??a))})]},e.id)),e.every(e=>"start"!==e.state)?(0,t.jsxs)("li",{className:"flex items-center gap-2.5 text-sm text-mute",children:[(0,t.jsx)(eS.f,{size:16,className:"shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{className:"flex-1",children:"Starting…"})]}):null]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("button",{type:"button",className:"btn btn-secondary py-1.5 text-sm",onClick:n,children:"Cancel"}),(0,t.jsxs)("span",{className:"font-mono text-xs text-mute",children:[i(a-s)," in all"]})]})]})}var eC=e.i(48181),eE=e.i(25120),eR=e.i(97942),eM=e.i(91549);let eO=(0,eE.f)("apitestcenter-lab-saved"),ez="apitestcenter-requests-panel",eL="lab:answers",eI=(0,eE.f)("apitestcenter-lab-tabs"),eP=()=>Math.random().toString(36).slice(2,10),eA=JSON.stringify((0,_.t)()),eT=()=>({key:eP(),draft:(0,_.t)(),saved:null,result:null,liveId:null,liveOpen:!1}),eD=e=>e.saved?.name??(e.draft.url.trim()?(0,_.m)(e.draft).replace(/ · \d.*$/,"").replace(/^[A-Z]+ /,""):"New request"),eU=e=>e.saved?JSON.stringify(e.draft)!==e.saved.snapshot:JSON.stringify(e.draft)!==eA,eF={GET:"text-ok",POST:"text-warn",PUT:"text-accent",PATCH:"text-accent",DELETE:"text-bad"},eJ=(0,eE.f)("apitestcenter-last-run");function e_(e){try{sessionStorage.setItem(eJ,e)}catch{}}function eV(){return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,t.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-accent opacity-60"}),(0,t.jsx)("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-accent"})]}),"Load running"]})}function eH({title:e,lines:s,action:n}){return(0,t.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center rounded-lg border border-dashed border-line px-6 py-14 text-center",children:[(0,t.jsx)("h2",{className:"text-base font-medium text-ink",children:e}),(0,t.jsx)("div",{className:"mt-2 max-w-md space-y-1.5 text-sm text-mute",children:s.map((e,s)=>(0,t.jsx)("p",{children:e},s))}),n?(0,t.jsx)("div",{className:"mt-5",children:n}):null]})}function eB({runs:e,current:s,disabled:a,onPick:r}){let{slo:l}=(0,eu.G)(),[o,c]=(0,R.useState)(!1),d=(0,R.useRef)(null),u=(0,R.useMemo)(()=>e.slice(0,30),[e]);return(0,R.useEffect)(()=>{if(!o)return;let e=e=>{d.current?.contains(e.target)||c(!1)},t=e=>"Escape"===e.key&&c(!1);return document.addEventListener("pointerdown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e),document.removeEventListener("keydown",t)}},[o]),(0,t.jsxs)("div",{ref:d,className:"relative",children:[(0,t.jsxs)("button",{type:"button",disabled:a,"aria-haspopup":"listbox","aria-expanded":o,onClick:()=>c(e=>!e),className:"inline-flex items-center gap-1 rounded-md border border-line px-2 py-1 text-xs text-mute hover:text-ink disabled:opacity-40",children:["Recent runs",u.length?(0,t.jsx)("span",{className:"rounded bg-panel-2 px-1 font-mono text-[10px] text-ink",children:u.length}):null,(0,t.jsx)(i.f,{size:12})]}),o?(0,t.jsx)("ul",{role:"listbox","aria-label":"Recent runs",className:"absolute right-0 z-30 mt-1 max-h-80 w-80 overflow-auto rounded-md border border-line bg-panel p-1 shadow-xl",children:u.map(e=>{let a=(0,n.F)(e.verdict,{slo:l}).overall,i=s?.id===e.id;return(0,t.jsx)("li",{role:"option","aria-selected":i,children:(0,t.jsxs)("button",{type:"button",onClick:()=>{r(e),c(!1)},className:`flex w-full items-center justify-between gap-2 rounded px-2 py-1.5 text-left text-xs ${i?"bg-accent-dim text-ink":"text-ink hover:bg-panel-2"}`,children:[(0,t.jsxs)("span",{className:"min-w-0 truncate",children:[e.baseline?(0,t.jsx)("span",{className:"mr-1 text-accent",title:"Baseline",children:"◆"}):null,e.name]}),(0,t.jsx)(eK,{level:a})]})},e.id)})}):null]})}function eK({level:e}){let s="pass"===e?"text-ok":"fail"===e?"text-bad":"text-warn";return(0,t.jsxs)("span",{className:`shrink-0 font-mono text-xs uppercase ${s}`,children:[(0,t.jsxs)("span",{"aria-hidden":!0,children:["pass"===e?"✓":"fail"===e?"✕":"!"," "]}),e]})}function eW(){let{slo:e,setSlo:s,ready:n}=(0,eu.G)(),[a,r]=(0,R.useState)(!1),[l,i]=(0,R.useState)(500),[o,c]=(0,R.useState)(0),[d,u]=(0,R.useState)(1),[m,h]=(0,R.useState)(99),[x,p]=(0,R.useState)(!1),f=(0,R.useRef)(!1);function b(e){let t={on:a,p95:l,p99:o,errPct:d,checksPct:m,abort:x,...e};if(r(t.on),i(t.p95),c(t.p99),u(t.errPct),h(t.checksPct),p(t.abort),!t.on||!(t.p95>0)||t.errPct<0)return s(null);s({p95Ms:t.p95,errorRate:t.errPct/100,p99Ms:t.p99>0?t.p99:void 0,checksRate:Math.min(100,Math.max(0,t.checksPct))/100,abortOnFail:t.abort})}(0,R.useEffect)(()=>{n&&!f.current&&(f.current=!0,e&&(r(!0),i(e.p95Ms),c(e.p99Ms??0),u(Number((100*e.errorRate).toFixed(4))),h(null!=e.checksRate?Number((100*e.checksRate).toFixed(2)):99),p(!0===e.abortOnFail)))},[n,e]);let y=(e,s,n,a)=>(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"mb-1 block text-xs text-mute",children:e}),(0,t.jsx)("input",{type:"number",min:a.min,max:a.max,step:a.step,value:s,onChange:e=>b({[n]:Number(e.target.value)}),className:"input font-mono"}),a.hint?(0,t.jsx)("span",{className:"mt-1 block text-xs text-mute",children:a.hint}):null]});return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("p",{className:"text-sm text-mute",children:"Targets decide whether a performance test passes. They are sent to k6 as thresholds, drive the verdict and the report colours, and are remembered on this computer."}),(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm text-ink",children:[(0,t.jsx)("input",{type:"checkbox",checked:a,onChange:e=>b({on:e.target.checked}),className:"accent-[var(--accent)]"}),"Use my own performance targets"]}),a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[y("p95 must stay under (ms)",l,"p95",{min:1}),y("p99 must stay under (ms)",o,"p99",{min:0,hint:"0 = no p99 target"}),y("Error rate must stay under (%)",d,"errPct",{min:0,max:100,step:.1}),y("Checks must pass at least (%)",m,"checksPct",{min:0,max:100,step:.1,hint:"Only used when the request has checks"})]}),(0,t.jsxs)("label",{className:"flex items-start gap-2 rounded-md border border-line px-3 py-2.5 text-sm text-ink",children:[(0,t.jsx)("input",{type:"checkbox",checked:x,onChange:e=>b({abort:e.target.checked}),className:"mt-0.5 accent-[var(--accent)]"}),(0,t.jsxs)("span",{children:["Stop the test early if a target is clearly missed",(0,t.jsx)("span",{className:"block text-xs text-mute",children:"After a 10-second warm-up, k6 ends the run as soon as a target fails — saves time and stops hammering a struggling API."})]})]})]}):(0,t.jsx)("p",{className:"rounded-md bg-panel-2 px-3 py-2 text-sm text-mute",children:"Using built-in defaults: warn at p95 ≥ 500 ms or errors ≥ 1%, fail at p95 ≥ 2 s or errors ≥ 5%. No thresholds are sent to k6."})]})}function eZ({dirty:e,isSaved:s,title:n,onSave:a,onSaveAs:r,onHistory:l,onExport:o}){let[c,d]=(0,R.useState)(!1),p=(0,R.useRef)(null);return(0,t.jsxs)("div",{className:"inline-flex",children:[(0,t.jsxs)("button",{type:"button",onClick:a,disabled:s&&!e,title:n,className:"btn btn-secondary rounded-r-none border-r-0",children:[(0,t.jsx)(N.f,{size:16,"aria-hidden":!0}),"Save",e?(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-accent","aria-label":"unsaved changes"}):null]}),(0,t.jsx)("button",{ref:p,type:"button",onClick:()=>d(e=>!e),"aria-label":"More ways to save","aria-haspopup":"menu","aria-expanded":c,className:"btn btn-secondary rounded-l-none px-2",children:(0,t.jsx)(i.f,{size:14,"aria-hidden":!0})}),(0,t.jsx)(G.f,{anchor:p,open:c,onClose:()=>d(!1),label:"More ways to save",width:220,role:"menu",children:(0,t.jsxs)("div",{className:"-m-2",children:[(0,t.jsx)(X.d,{icon:s?u.f:h.f,label:s?"Save as a new request…":"Save to a folder…",onSelect:()=>{d(!1),r()}}),l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(X.Z,{}),(0,t.jsx)(X.d,{icon:x.f,label:"Version history…",onSelect:()=>{d(!1),l()}})]}):null,o?(0,t.jsx)(X.d,{icon:m.f,label:"Export…",onSelect:()=>{d(!1),o()}}):null]})})]})}e.s(["LabPage",0,function(){var e;let i=(0,J.d)(),m=(0,P.L)(),x=(0,eo.J)(),b=(0,em.P)(),{slo:N}=(0,eu.G)(),{vars:D,activeEnv:U,refresh:F,rememberValues:H}=(0,V.U)(),[B,W]=(0,R.useState)(null),[G,ee]=(0,R.useState)(!1),[et,es]=(0,R.useState)(!0),ea=(0,R.useRef)(null),[er,eN]=(0,R.useState)(_.t),[eS,eq]=(0,R.useState)(_.j),[eE,eK]=(0,R.useState)(!1),[eG,eX]=(0,R.useState)(null),[eQ,eY]=(0,R.useState)(null),[e0,e1]=(0,R.useState)(!1),[e2,e5]=(0,R.useState)(null),[e6,e9]=(0,R.useState)(!1),e3=(0,R.useRef)(null),e7=(0,R.useRef)(null);Q(e3,B?.id),Q(e7,eG);let[e4,e8]=(0,R.useState)(!1),[te,tt]=(0,R.useState)([]),[ts,tn]=(0,R.useState)(0),ta=(0,R.useRef)(null),[tr,tl]=(0,R.useState)(!1),[ti,to]=(0,R.useState)(!1),[tc,td]=(0,R.useState)(null),[tu,tm]=(0,R.useState)(null),{index:th,refresh:tx}=(0,ed.K)(),tp=th?.runs??[],[tf,tb]=(0,R.useState)("response"),[ty,tg]=(0,R.useState)(!1),{layout:tv,setLayout:tk}=(0,eb.x)(),tj="below"===tv,tw=(0,ep.f)(tv,et),[tN,tS]=(0,R.useState)(!1),[tq,t$]=(0,R.useState)([]),[tC,tE]=(0,R.useState)("");(0,ex.R)(e0||tq.some(e=>e.key!==tC&&e.liveOpen),"a live connection is open");let tR=tu?.status==="running"||tu?.status==="queued",tM=(0,_.k)(er),tO=(0,_.w)(eS),tz=e4||tr;(0,R.useEffect)(()=>{let e=null;try{e=sessionStorage.getItem(eJ)}catch{}e&&(0,ei.c)(e).then(async t=>{if(t)return tm(t);let s=await ed.c.run(e).catch(()=>null);s&&tm({id:s.report.id,status:s.report.status,report:s.report})});let t=function(){try{let e=sessionStorage.getItem(ec);if(!e)return null;let t=JSON.parse(e);if(2===t.v)return{request:(0,_.i)(t.request),load:(0,_.W)(t.load)};return{request:(0,_.i)(t),load:(0,_.W)(t)}}catch{return null}}();t&&eq(t.load);let s=[],n="";try{let e=JSON.parse(localStorage.getItem(eI)??"null"),t=(0,eh.q)(eL)??{};s=(e?.tabs??[]).map(e=>({key:e.key||eP(),draft:(0,_.i)(e.draft),saved:e.saved??null,result:t[e.key]??null,liveId:null,liveOpen:!1})),n=e?.active??"",es("closed"!==localStorage.getItem(ez))}catch{}if(!s.length){let e=null;try{e=JSON.parse(sessionStorage.getItem(eO)??"null")}catch{}s=[{...eT(),draft:t?.request??(0,_.t)(),saved:e}]}let a=s.find(e=>e.key===n)??s[0];t$(s),tE(a.key),eN(a.draft),W(a.saved),eX(a.result),eK(!0)},[]),(0,R.useEffect)(()=>{if(!eE)return;let e={};for(let t of tq){let s=t.key===tC?eG:t.result;s&&(e[t.key]=s)}(0,eh.V)(eL,e)},[eE,tq,tC,eG]),(0,R.useEffect)(()=>{if(!eE)return;let e=window.setTimeout(()=>{try{sessionStorage.setItem(ec,JSON.stringify({v:2,request:er,load:eS}))}catch{}try{let e=tq.map(e=>e.key===tC?{key:e.key,draft:er,saved:B}:{key:e.key,draft:e.draft,saved:e.saved});localStorage.setItem(eI,JSON.stringify({tabs:e,active:tC}))}catch{}},250);return()=>window.clearTimeout(e)},[er,eS,eE,tq,tC,B]),(0,R.useEffect)(()=>{if(!tu||!tR)return;let e=!1,t=window.setInterval(async()=>{let t=await (0,ei.c)(tu.id);if(t&&!e&&(tm(t),(0,ei.P)(t.status))){tx();let e="completed"===t.status?"finished":t.status;i(`Performance test ${e}`,"failed"===t.status?"error":"success");let s=(0,n.s)(t.report,{slo:N});(0,ek.G)({title:`Performance test ${e}`,body:`${t.report.testName}
|
|
2
|
-
${"completed"===t.status?s.headline:t.error??"See the report for details."}`,ok:"completed"===t.status&&"fail"!==s.overall})}},500);return()=>{e=!0,window.clearInterval(t)}},[tu?.id,tR]);let tL=!!B&&JSON.stringify(er)!==B.snapshot;function tI(e){W(e);try{e?sessionStorage.setItem(eO,JSON.stringify(e)):sessionStorage.removeItem(eO)}catch{}}function tP(e){es(e);try{localStorage.setItem(ez,e?"open":"closed")}catch{}}async function tA(e){try{let t={name:e?.name??B.name,collection:e?.collection??B.collection,request:er},s=B&&!e?await V.v.update(B.id,t):await V.v.create(t);tI({id:s.id,name:s.name,collection:s.collection,snapshot:JSON.stringify(er)}),ee(!1),await F(),i(`Saved “${s.name}”${s.collection?` in ${s.collection}`:""}`,"success")}catch(e){i(e instanceof Error?e.message:"Could not save the request","error")}}let tT=()=>({key:tC,draft:er,saved:B,result:eG,liveId:eQ,liveOpen:e0});function tD(e){tE(e.key),eN(e.draft),tI(e.saved),eX(e.result),eY(e.liveId),e1(e.liveOpen),e5(null),e9(!1),to(!1),td(null),ee(!1),tb("response")}function tU(e){if(e===tC)return;let t=tq.find(t=>t.key===e);t&&(t$(e=>e.map(e=>e.key===tC?tT():e)),tD(t))}function tF(e,t){let s=!B&&!eG&&!eQ&&JSON.stringify(er)===eA,n={key:s?tC:eP(),draft:e,saved:t,result:null,liveId:null,liveOpen:!1};t$(e=>{if(s)return e.map(e=>e.key===tC?n:e);let t=e.map(e=>e.key===tC?tT():e),a=t.findIndex(e=>e.key===tC);return[...t.slice(0,a+1),n,...t.slice(a+1)]}),tD(n)}async function tJ(e){let t=tq.map(e=>e.key===tC?tT():e),s=t.filter(t=>e.includes(t.key));if(!s.length)return;let n=s.filter(eU);if(n.length){let e=1===s.length;if(!await m({title:e?`Close “${eD(n[0])}” without saving?`:`Close ${s.length} tabs?`,body:e?"Its changes have not been saved.":1===n.length?`“${eD(n[0])}” has changes that are not saved.`:`${n.length} of them have changes that are not saved.`,confirmLabel:"Close",tone:"danger"}))return}for(let e of s)e.liveId&&Y.D.close(e.liveId);let a=t.filter(t=>!e.includes(t.key));if(!e.includes(tC))return t$(a);let r=t.findIndex(e=>e.key===tC),l=t.slice(r+1).find(t=>!e.includes(t.key))??t.slice(0,r).reverse().find(t=>!e.includes(t.key))??eT();t$(a.length?a:[l]),tD(l)}let[t_,tV]=(0,R.useState)(null),[tH,tB]=(0,R.useState)(!1);async function tK(){try{let e=await V.v.index(),t=t=>e.requests.find(e=>"Practice"===e.collection&&e.name===t),s=t("Sign in")?.id??(await V.v.create({name:"Sign in",collection:"Practice",request:{...(0,_.e)({...(0,_.t)(),method:"POST"},"{{practiceApi}}/login"),bodyMode:"json",bodyText:'{\n "username": "you",\n "password": "demo"\n}',checks:[{type:"status",expect:"200"}]}})).id,n=t("My orders"),a=n?await V.v.get(n.id):await V.v.create({name:"My orders",collection:"Practice",request:{...(0,_.e)((0,_.t)(),"{{practiceApi}}/orders"),authMode:"bearer",token:"{{token}}",checks:[{type:"status",expect:"200"}],before:{requestId:s,requestName:"Sign in",extract:[{name:"token",from:"json",path:"data.token"}]}}});await F(),tP(!0),await tW(a),i("Added Practice → Sign in and My orders. Press Send: it signs in first, then uses the token.","success")}catch(e){i(e instanceof Error?e.message:"Could not add the practice requests","error")}}function tW(e){if(B?.id===e.id)return;let t=tq.find(t=>t.key!==tC&&t.saved?.id===e.id);if(t)return tU(t.key);let s=(0,_.i)(e.request);tF(s,{id:e.id,name:e.name,collection:e.collection,snapshot:JSON.stringify(s)})}(0,R.useEffect)(()=>{let e=()=>tB(!(0,ej.v)());return e(),window.addEventListener(ej.c,e),()=>window.removeEventListener(ej.c,e)},[]);let tZ=(0,R.useRef)(()=>{});tZ.current=e=>{let t=(0,_.i)(e.request),s={id:e.id,name:e.name,collection:e.collection,snapshot:JSON.stringify(t)};B?.id===e.id?(eN(t),tI(s)):t$(n=>n.map(n=>n.saved?.id===e.id?{...n,draft:t,saved:s}:n))},(0,R.useEffect)(()=>{let e=e=>tZ.current(e.detail);return window.addEventListener(eR.H,e),()=>window.removeEventListener(eR.H,e)},[]),(0,R.useEffect)(()=>{let e=e=>{let t=e.detail;W(e=>e?.id===t.id?{...e,name:t.name,collection:t.collection}:e),t$(e=>e.map(e=>e.saved?.id===t.id?{...e,saved:{...e.saved,name:t.name,collection:t.collection}}:e))};return window.addEventListener(Z.C,e),()=>window.removeEventListener(Z.C,e)},[]);let tG=(0,R.useRef)(tW);tG.current=tW;let tX=(0,R.useRef)(tF);function tQ(){tF((0,_.t)(),null),window.setTimeout(()=>ea.current?.focus(),0)}async function tY(){try{td(null);let e=await (0,eg.c)(er,B?.collection,D),t=(0,_.x)(e.draft,e.vars,U?.name),s=/^wss?:\/\//i.test(t.url),n=s?(0,_.e)(t,t.url.replace(/^ws/i,"http")):t,a=(0,_.M)(n,(0,_.S)(eS),(0,_.m)(n,B?.name),(0,_.n)(N));return e.contract&&!s&&(a.contract=e.contract),s&&(a.request={...a.request,url:a.request.url.replace(/^http/i,"ws")}),await (0,ey.f)(a,t,D,U?.name)}catch(e){return td(e instanceof Error?e.message:"Request is not valid"),null}}async function t0(){try{let e={...er,method:"POST",bodyMode:"graphql",graphqlQuery:s.V,graphqlVariables:"",graphqlOperation:"IntrospectionQuery",graphqlErrorsFail:!1,checks:[],saveValues:[],testData:null},t=await (0,eg.c)(e,B?.collection,D),n=(0,_.x)(t.draft,t.vars,U?.name),{request:a,auth:r,options:l,setup:i}=await (0,ey.f)((0,_.M)(n,(0,_.S)(eS),"schema"),n,D,U?.name),o=await fetch("/engine/graphql/introspect",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({request:a,auth:r,options:l,setup:i})}),c=await o.json();return o.ok?c:{status:0,body:"",error:c.error??`Engine error (${o.status})`}}catch(e){return{status:0,body:"",error:e instanceof Error?e.message:String(e)}}}tX.current=tF,(0,R.useEffect)(()=>{let e=()=>{let e=null;try{e=sessionStorage.getItem(ew.M),sessionStorage.removeItem(ew.M)}catch{}e&&V.v.get(e).then(e=>tG.current(e)).catch(()=>i("That saved request is gone","error"));let t=null;try{t=sessionStorage.getItem(ew.n),sessionStorage.removeItem(ew.n)}catch{}if(t)try{let e=JSON.parse(t);tX.current((0,_.e)((0,_.i)(e),e.url??""),null)}catch{}};return eE&&e(),window.addEventListener(ew.V,e),()=>window.removeEventListener(ew.V,e)},[eE]);let[t1,t2]=(0,R.useState)(0);async function t5(){if(tz||!tM)return;let e=performance.now(),s=await tY(),n=Math.round(performance.now()-e);if(!s)return;if(/^wss?:\/\//i.test(s.request.url)){if(eQ&&e0)return void await Y.D.close(eQ);e8(!0),tb("response");try{eQ&&Y.D.close(eQ);let{id:e}=await Y.D.connect({request:s.request,auth:s.auth,options:s.options});eX(null),eY(e),e1(!0)}catch(e){td(e instanceof Error?e.message:"Could not connect")}finally{e8(!1)}return}if("production"===(0,eC.v)(U)&&!(0,eC.p)(s.request.method)&&!await m({title:`Send ${s.request.method} to ${U.name}?`,body:(0,t.jsxs)(t.Fragment,{children:["This request can change real data on ",(0,ei.q)(s.request.url),"."]}),confirmLabel:`Send to ${U.name}`,tone:"danger"}))return;e8(!0),to(!1),tb("response");let a=new AbortController;ta.current=a,tn(Date.now()),tt([{id:"prepare",label:"Prepared: folders, connection, variables",state:"done",ms:n}]);try{eY(null);let e=await (0,ei.V)(s,B?.id,{signal:a.signal,onStep:e=>tt(t=>t.some(t=>t.id===e.id)?t.map(t=>t.id===e.id?e:t):[...t,e])});e5(null),e9(!1),eX(e);let t=(e.saved??[]).flatMap(e=>e.found&&void 0!==e.value?[{name:e.name,value:e.value}]:[]);H(t,B?.name??"the last Send")}finally{e8(!1),ta.current=null}}async function t6(e=!1){if(tz||tR||!tM||!x.k6Ready)return;if(tO)return void td(tO);let s=await tY();if(s){if(to(!1),!e){tl(!0);try{let e=await (0,ei.V)(s);if(eX(e),!(0,ei.A)(e)){to(!0),tb("response");return}}finally{tl(!1)}}if("production"===(0,eC.v)(U)){if(!await m({title:`Performance test ${U.name}?`,body:(0,t.jsxs)(t.Fragment,{children:["A performance test sends many requests at once to ",(0,ei.q)(s.request.url),". Real users of that system may notice."]}),confirmLabel:"Start performance test",tone:"danger"}))return}else if((0,ei.n)(eS.preset,s.load,s.request.url)&&!await m({title:`Start a ${(0,M.A)(eS)} performance test against ${(0,ei.q)(s.request.url)}?`,body:(0,t.jsxs)(t.Fragment,{children:["This is a ",(0,t.jsx)("span",{className:"text-ink",children:eS.preset})," profile against a non-local host (",(0,M.A)(eS),"). Only load-test systems you own or are allowed to test.",(0,t.jsxs)("span",{className:"mt-2 block",children:["Each simulated user sends its next request as soon as the last one returns, so a few dozen users can mean thousands of requests per second. Public sites and APIs behind a CDN or firewall usually answer that with ",(0,t.jsx)("span",{className:"text-ink",children:"429"})," or"," ",(0,t.jsx)("span",{className:"text-ink",children:"403"})," and may block this computer for a while — test a staging server, or use Requests per second mode with a modest rate."]})]}),confirmLabel:"Start performance test",tone:"danger"}))return;try{let e=await (0,ei.Q)(s);e_(e.id),tm(e),tb("report")}catch(e){i(e instanceof Error?e.message:"Failed to start load","error")}}}async function t9(){if(!tu)return;let e=await (0,ei.Z)(tu.id);e?tm(e):i("Could not reach the engine to stop the run","error")}(0,R.useEffect)(()=>{t1&&t5()},[t1]),(0,em.B)({send:()=>void t5(),run:()=>void t6(),focusUrl:()=>ea.current?.focus(),save:()=>B?void tA():ee(!0),toggleSaved:()=>tP(!et)});let t3=/^wss?:\/\//i.test((0,r.N)(er.url,D).text),t7=t3?"Performance tests of WebSockets aren't available yet — Connect to try it":x.k6Ready?tM?tO??void 0:"Enter a URL first":x.k6Label,t4=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button","data-tour":"send",onClick:()=>void t5(),disabled:tz||!tM,title:t3?e0?"Close the connection":`Open the WebSocket (${b}+Enter)`:`Send one request (${b}+Enter)`,className:t3&&e0?"btn btn-secondary":"btn btn-primary",children:[e4?(0,t.jsx)(f.f,{size:16,className:"animate-spin"}):t3?e0?(0,t.jsx)(C.f,{size:16}):(0,t.jsx)(k.f,{size:16}):(0,t.jsx)(S.f,{size:16}),t3?e0?"Disconnect":"Connect":"Send"]}),tR?(0,t.jsxs)("button",{type:"button",onClick:()=>void t9(),disabled:tu?.stopping,className:"btn btn-danger",children:[tu?.stopping?(0,t.jsx)(f.f,{size:16,className:"animate-spin"}):(0,t.jsx)(q.f,{size:16}),tu?.stopping?"Stopping…":"Stop"]}):(0,t.jsxs)("button",{type:"button","data-tour":"run",onClick:()=>void t6(),disabled:tz||!!t7,title:t7??`Check the request, then run the load profile (${b}+Shift+Enter)`,className:"btn btn-secondary",children:[tr?(0,t.jsx)(f.f,{size:16,className:"animate-spin"}):(0,t.jsx)(v.f,{size:16}),tr?"Checking…":"Run performance test"]}),(0,t.jsx)(eZ,{dirty:B?tL:JSON.stringify(er)!==eA,isSaved:!!B,onHistory:B?()=>(0,eR.g)(B.id):void 0,onExport:B?()=>(0,eM.q)({kind:"request",id:B.id,name:B.name,collection:B.collection}):void 0,title:`Save request (${b}+S)`,onSave:()=>B?void tA():ee(!0),onSaveAs:()=>ee(!0)})]}),t8=tq.map(e=>e.key===tC?tT():e);return(0,t.jsx)(ev.$,{collection:B?.collection,url:er.url,children:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[t8.length?(0,t.jsxs)("div",{className:"flex shrink-0 items-stretch border-b border-line bg-canvas",children:[(0,t.jsx)("button",{type:"button",onClick:()=>tP(!et),"aria-label":et?`Hide saved requests (${b}+B)`:`Show saved requests (${b}+B)`,"aria-pressed":et,title:et?`Hide saved requests (${b}+B)`:`Show saved requests (${b}+B)`,className:`hidden shrink-0 items-center border-r border-line px-3 hover:bg-panel/60 hover:text-ink lg:flex ${et?"text-ink":"text-mute"}`,children:(0,t.jsx)(h.f,{size:15,"aria-hidden":!0})}),(0,t.jsx)("div",{role:"tablist","aria-label":"Open requests",className:"flex min-w-0 items-stretch overflow-x-auto",children:t8.map(e=>{let s=e.key===tC,n=eD(e);return(0,t.jsxs)("div",{onContextMenu:t=>{t.preventDefault();let s=Number(document.documentElement.style.zoom)||1;tV({key:e.key,x:t.clientX/s,y:t.clientY/s})},onMouseDown:t=>{1===t.button&&(t.preventDefault(),tJ([e.key]))},className:`flex max-w-60 min-w-0 shrink-0 items-center border-r border-line ${s?"bg-panel shadow-[inset_0_2px_0_var(--accent)]":"hover:bg-panel/60"}`,children:[(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":s,onClick:()=>tU(e.key),onKeyDown:t=>{if("ContextMenu"===t.key||t.shiftKey&&"F10"===t.key){t.preventDefault();let s=(0,eb.C)(t.currentTarget);tV({key:e.key,x:s.left+8,y:s.bottom})}},title:e.saved?.collection?`${e.saved.collection} / ${n}`:n,className:"tab-btn flex min-w-0 items-center gap-2 py-2 pr-1 pl-3 text-sm",children:[(0,t.jsx)("span",{className:`font-mono text-[11px] font-semibold ${eF[e.draft.method]??"text-mute"}`,children:"DELETE"===e.draft.method?"DEL":e.draft.method}),(0,t.jsx)("span",{className:`truncate ${s?"text-ink":"text-mute"}`,children:n})]}),e.saved&&eU(e)?(0,t.jsx)("span",{title:"Not saved","aria-label":"not saved",className:"h-1.5 w-1.5 shrink-0 rounded-full bg-accent"}):null,(0,t.jsx)("button",{type:"button",onClick:()=>{tJ([e.key])},"aria-label":`Close ${n}`,title:"Close (middle click)",className:"mx-1 shrink-0 rounded p-1 text-mute hover:bg-panel-2 hover:text-ink",children:(0,t.jsx)(E.X,{size:13,"aria-hidden":!0})})]},e.key)})}),t_?(()=>{let e=t8.map(e=>e.key),s=e.indexOf(t_.key),n=t8[s];if(!n)return null;let a=e=>()=>{tV(null),e()},r=t8.filter(e=>!eU(e)).map(e=>e.key);return(0,t.jsxs)(X.c,{at:t_,label:`Actions for ${eD(n)}`,onClose:()=>tV(null),children:[(0,t.jsx)(X.d,{icon:E.X,label:"Close",hint:"Middle click",onSelect:a(()=>void tJ([t_.key]))}),(0,t.jsx)(X.d,{icon:$,label:"Close others",disabled:e.length<2,onSelect:a(()=>void tJ(e.filter(e=>e!==t_.key)))}),(0,t.jsx)(X.d,{icon:l.f,label:"Close to the right",disabled:s===e.length-1,onSelect:a(()=>void tJ(e.slice(s+1)))}),(0,t.jsx)(X.d,{icon:o.f,label:"Close unchanged",disabled:!r.length,onSelect:a(()=>void tJ(r))}),(0,t.jsx)(X.d,{icon:p.f,label:"Close all",onSelect:a(()=>void tJ(e))}),(0,t.jsx)(X.Z,{}),(0,t.jsx)(X.d,{icon:u.f,label:"Duplicate",onSelect:a(()=>(function(e){let t=e===tC?tT():tq.find(t=>t.key===e);if(!t)return;let s={key:eP(),draft:structuredClone(t.draft),saved:null,result:null,liveId:null,liveOpen:!1};t$(t=>{let n=t.map(e=>e.key===tC?tT():e),a=n.findIndex(t=>t.key===e);return[...n.slice(0,a+1),s,...n.slice(a+1)]}),tD(s)})(t_.key))}),(0,t.jsx)(X.d,{icon:d.f,label:"Copy URL",disabled:!n.draft.url.trim(),onSelect:a(()=>void navigator.clipboard.writeText(n.draft.url).then(()=>i("Copied the URL","success"),()=>i("Could not copy","error")))})]})})():null,(0,t.jsx)("button",{type:"button",onClick:()=>tQ(),"aria-label":"New request tab",title:"New request",className:"shrink-0 px-3 text-mute hover:bg-panel/60 hover:text-ink",children:(0,t.jsx)(j.f,{size:15,"aria-hidden":!0})}),(0,t.jsx)("div",{className:"ml-auto flex shrink-0 items-center px-2",children:(0,t.jsx)(T.f,{compact:!0,drafts:[er],collections:[B?.collection]})})]}):null,(0,t.jsxs)("header",{className:"border-b border-line bg-panel px-4 py-3 lg:px-6",children:[(0,t.jsx)("h1",{className:"sr-only",children:"Test an API"}),(0,t.jsx)(O.f,{ref:ea,draft:er,onChange:e=>{eN(e),td(null)},onImported:e=>i(e,"success"),actions:t4}),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-mute empty:hidden",children:[(0,t.jsx)(K,{draft:er,sent:!!(eG&&eG.status>0),onChange:eN}),G?(0,t.jsx)(Z.Z,{initial:{name:B?.name??(0,_.m)(er).replace(/ · \d.*$/,""),collection:B?.collection??""},onSave:(e,t)=>void tA({name:e,collection:t}),onCancel:()=>ee(!1)}):null,tc?(0,t.jsx)("span",{className:"text-bad",role:"alert",children:tc}):null]})]}),(0,t.jsxs)("div",{ref:tw.gridRef,style:ty?void 0:tw.gridStyle,className:`relative grid min-h-0 flex-1 overflow-y-auto ${tN?"":"transition-[grid-template-columns] duration-200 ease-out"} motion-reduce:transition-none lg:overflow-hidden ${ty?"":tj?`lg:grid-rows-[minmax(0,1fr)_minmax(0,1fr)] ${et?"lg:grid-cols-[15rem_minmax(0,1fr)] 2xl:grid-cols-[16rem_minmax(0,1fr)]":"lg:grid-cols-[0rem_minmax(0,1fr)]"}`:et?"lg:grid-cols-[15rem_minmax(0,1fr)_minmax(0,1fr)] 2xl:grid-cols-[16rem_minmax(0,5fr)_minmax(0,7fr)]":"lg:grid-cols-[0rem_minmax(0,1fr)_minmax(0,1fr)] 2xl:grid-cols-[0rem_minmax(0,5fr)_minmax(0,7fr)]"}`,children:[ty?null:(0,t.jsx)("div",{inert:!et,"aria-hidden":!et||void 0,className:`min-h-0 min-w-0 overflow-hidden transition-opacity duration-200 motion-reduce:transition-none ${tj?"lg:row-span-2":""} ${et?"opacity-100":"opacity-0 max-lg:hidden"}`,children:(0,t.jsx)("div",{className:"flex h-full w-[15rem] flex-col 2xl:w-[16rem] [&>aside]:flex-1",style:tw.panelWidth?{width:tw.panelWidth}:void 0,children:(0,t.jsx)(Z.N,{activeId:B?.id??null,onOpen:e=>void tW(e),onNew:()=>void tQ()})})}),!ty&&et?(0,t.jsx)(ef.f,{orientation:"vertical",label:"Saved requests panel width",value:tw.panel.value,onMove:e=>tw.panel.onMove(e),onStep:tw.panel.onStep,onReset:tw.panel.onReset,onDragging:tS,className:"absolute inset-y-0 -translate-x-1/2",style:tw.panel.style}):null,ty?null:(0,t.jsx)(ef.f,{orientation:tj?"horizontal":"vertical",label:tj?"Request and response heights":"Request and response widths",value:tw.split.value,onMove:tw.split.onMove,onStep:tw.split.onStep,onReset:tw.split.onReset,onDragging:tS,className:tj?"absolute -translate-y-1/2":"absolute -translate-x-1/2",style:tw.split.style}),ty?null:(0,t.jsx)("section",{ref:e3,"aria-label":"Request",className:"min-w-0 px-4 py-4 lg:overflow-y-auto lg:px-6",children:(0,t.jsx)(z.p,{id:"lab-request",draft:er,onChange:eN,checkResults:eG?.checks,lastBody:eG?.body,lastResult:eG??void 0,setupResult:eG?.setup,savedResults:eG?.saved,currentId:B?.id,collection:B?.collection,introspect:t0,extraTabs:[{id:"load",label:"Performance",badge:eS.stages?.length?"stages":"rate"===eS.mode?`${eS.rps}/s`:`${eS.vus} users \xb7 ${eS.duration}`,content:(0,t.jsx)(M.B,{load:eS,onChange:eq})},{id:"targets",label:"Goals",content:(0,t.jsx)(eW,{})}]})}),(0,t.jsxs)("section",{ref:e7,"aria-label":"Results",className:`@container flex min-h-[32rem] min-w-0 flex-col border-line bg-panel/40 px-4 py-4 lg:min-h-0 lg:overflow-y-auto lg:px-6 ${tj&&!ty?"lg:border-t":"lg:border-l"}`,children:[(0,t.jsx)(A.i,{id:"lab-results",label:"Results",value:tf,onChange:tb,items:[{id:"response",label:"Response",badge:eG?eG.status||"ERR":void 0},{id:"report",label:tR?(0,t.jsx)(eV,{}):"Performance report"}],trailing:(0,t.jsxs)(t.Fragment,{children:["report"===tf&&tp.length>0?(0,t.jsx)(eB,{runs:tp,current:tu,disabled:tR,onPick:async e=>{try{let t=await ed.c.run(e.id);e_(e.id),tm({id:t.report.id,status:t.report.status,report:t.report})}catch(e){i(e instanceof Error?e.message:"Could not open that run","error")}}}):null,ty?null:(0,t.jsx)("button",{type:"button",onClick:()=>tk(tj?"beside":"below"),"aria-label":tj?"Show the response beside the request":"Show the response below the request",title:tj?"Response beside the request":"Response below the request",className:"hidden rounded p-1.5 text-mute hover:bg-panel-2 hover:text-ink lg:block",children:tj?(0,t.jsx)(c.f,{size:14}):(0,t.jsx)(w,{size:14})}),(0,t.jsx)("button",{type:"button",onClick:()=>tg(e=>!e),"aria-label":ty?"Show the request editor":"Expand results to full width",title:ty?"Show the request editor":"Expand results",className:"hidden rounded p-1.5 text-mute hover:bg-panel-2 hover:text-ink lg:block",children:ty?(0,t.jsx)(g,{size:14}):(0,t.jsx)(y,{size:14})})]})}),(0,t.jsx)("div",{...(0,A.q)("lab-results",tf),className:"flex min-h-0 flex-1 flex-col pt-4",children:"response"===tf?(0,t.jsxs)(t.Fragment,{children:[ti&&eG?(0,t.jsxs)("div",{role:"alert",className:"mb-4 flex flex-wrap items-center gap-3 rounded-md border border-warn/40 bg-warn/10 px-3 py-2.5",children:[(0,t.jsxs)("p",{className:"min-w-0 flex-1 text-sm text-ink",children:[(0,t.jsx)("span",{className:"font-medium text-warn",children:"Performance test not started."})," The check returned"," ",eG.status||"an error",", not 2xx. Fix the request, or run anyway if this status is expected."]}),(0,t.jsx)("button",{type:"button",className:"btn btn-secondary py-1.5 text-xs",onClick:()=>void t6(!0),children:"Run anyway"})]}):null,e4&&te.length?(0,t.jsx)(e$,{steps:te,startedAt:ts,onCancel:()=>ta.current?.abort()}):eQ&&!eG?(0,t.jsx)(Y.d,{id:eQ,onClosed:()=>e1(!1)}):eG&&e2?(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 rounded-md border border-accent/40 bg-accent/10 px-3 py-2 text-xs",children:[(0,t.jsxs)("span",{className:"text-ink",children:[e6?"What changed since":"An earlier answer —"," ",new Date(e2.answer.at).toLocaleString()]}),(0,t.jsxs)("span",{className:"ml-auto flex gap-2",children:[(0,t.jsx)("button",{type:"button",className:"text-accent hover:underline",onClick:()=>e9(e=>!e),children:e6?"Show that answer":"Compare with the latest"}),(0,t.jsx)("button",{type:"button",className:"text-accent hover:underline",onClick:()=>e5(null),children:"Back to the latest"})]})]}),e6?(0,t.jsx)(el,{earlier:e2.answer,latest:eG}):(0,t.jsx)(I.p,{result:{ok:(e=e2.answer).status>=200&&e.status<400,status:e.status,statusText:String(e.status),headers:e.headers,body:e.body,truncated:e.truncated,durationMs:e.durationMs,url:e.url,...e.error?{error:e.error}:{},...e.checks?{checks:e.checks}:{}}})]}):eG?(0,t.jsx)(I.p,{result:eG,onWaitLonger:e=>{eN(t=>({...t,timeout:e})),t2(e=>e+1),i(`This request now waits up to ${e} — save it to keep that`,"success")},extra:B?.id?(0,t.jsx)(en,{requestId:B.id,refreshKey:eG,onOpen:(e,t)=>0===t?e5(null):(e5({answer:e,index:t}),e9(!1))}):null,onSaveExample:()=>{eN(e=>({...e,mock:(0,a.j)(eG.status,eG.headers,eG.body)})),i(B?"Kept as the mock example — save the request to keep it":"Kept as the mock example — save the request to use it in the mock server","success")}}):tH?(0,t.jsx)(ej.y,{practiceReady:!!x.demoApi,onSimple:()=>void(tF({...(0,_.e)((0,_.t)(),"{{practiceApi}}/products"),checks:[{type:"status",expect:"2xx"},{type:"json",path:"items[0].name",op:"exists",value:""}]},null),i("Practice request ready — press Send","success")),onSignIn:()=>void tK(),onHide:()=>(0,ej.e)(!0)}):(0,t.jsx)(eH,{title:"Send a request to see the response",lines:[(0,t.jsx)(t.Fragment,{children:"Paste a URL — or a whole curl command from your browser's DevTools — into the bar above."}),(0,t.jsxs)(t.Fragment,{children:["Press ",(0,t.jsx)("span",{className:"kbd",children:b}),"+",(0,t.jsx)("span",{className:"kbd",children:"Enter"})," to send it."]})]})]}):tu?(0,t.jsxs)(t.Fragment,{children:[tu.error?(0,t.jsx)("p",{role:"alert",className:"mb-3 rounded-md border border-bad/40 bg-bad/10 px-3 py-2 text-sm text-bad",children:tu.error}):null,(0,t.jsx)(L.f,{report:tu.report,source:"session",live:tR,probe:eG})]}):(0,t.jsx)(eH,{title:"No performance test yet",lines:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-ink",children:"Run performance test"})," sends one check request first, then runs"," ",(0,t.jsx)("span",{className:"font-mono text-ink",children:(0,M.A)(eS)})," with k6."]}),(0,t.jsx)(t.Fragment,{children:"Change users, duration, and ramps in the Performance tab. Set pass/fail goals in Goals."})],action:(0,t.jsxs)("button",{type:"button",className:"btn btn-primary",disabled:tz||!!t7,title:t7,onClick:()=>void t6(),children:[(0,t.jsx)(v.f,{size:16}),"Run performance test"]})})})]})]})]})})},"VerdictTag",0,eK],6980)},90139,1245,33577,85905,e=>{var t=e.i(99522);let s=(0,t.f)("arrow-right-to-line",[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]]);e.s(["f",0,s],90139);var n=e.i(95754);e.s(["f",()=>n.f],1245);let a=(0,t.f)("columns-2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);e.s(["f",0,a],33577);let r=(0,t.f)("copy-plus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["f",0,r],85905)},30197,e=>{let t=(0,e.i(99522).f)("list-x",[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"m19 10-4 4",key:"1tz659"}],["path",{d:"m15 10 4 4",key:"1n7nei"}]]);e.s(["f",0,t],30197)}])})();
|