apitestcenter 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/THIRD-PARTY-NOTICES-UI.txt +1 -1
  2. package/dist/THIRD-PARTY-NOTICES.txt +1 -1
  3. package/dist/cli.mjs +392 -381
  4. package/dist/ui/404/index.html +1 -1
  5. package/dist/ui/404.html +1 -1
  6. package/dist/ui/__next.__PAGE__.txt +11 -11
  7. package/dist/ui/__next._full.txt +12 -12
  8. package/dist/ui/__next._tree.txt +2 -2
  9. package/dist/ui/_next/static/chunks/036rg3itpc5ge.js +50 -0
  10. package/dist/ui/_next/static/chunks/0e8f1i6w6dqos.js +50 -0
  11. package/dist/ui/_next/static/chunks/0ed__sgjyhon8.css +3 -0
  12. package/dist/ui/_next/static/chunks/0hvubzjy33qo9.js +2 -0
  13. package/dist/ui/_next/static/chunks/{2-fk7_1yukwm4.js → 1519k06vxy4mr.js} +1 -1
  14. package/dist/ui/_next/static/chunks/1wd-qahqqdfeq.js +27 -0
  15. package/dist/ui/_next/static/chunks/2aifruy-vhchn.js +50 -0
  16. package/dist/ui/_next/static/chunks/{3o926vjke_xbm.js → 2b31vf5n6d6th.js} +199 -88
  17. package/dist/ui/_next/static/chunks/33kvaxr7qvnue.js +50 -0
  18. package/dist/ui/_next/static/chunks/36wzwezwmtzq7.js +51 -0
  19. package/dist/ui/_next/static/chunks/3b26__7yusttj.js +1 -0
  20. package/dist/ui/_next/static/chunks/3n2xlaj16gyb-.js +2 -0
  21. package/dist/ui/_next/static/chunks/3r75fvzmnyvck.js +123 -0
  22. package/dist/ui/_next/static/chunks/3vso5wrs90xx-.js +50 -0
  23. package/dist/ui/_next/static/chunks/40y4-vb2nag2l.js +3 -0
  24. package/dist/ui/_not-found/__next._full.txt +11 -11
  25. package/dist/ui/_not-found/__next._not-found.__PAGE__.txt +10 -10
  26. package/dist/ui/_not-found/__next._tree.txt +2 -2
  27. package/dist/ui/_not-found/index.html +1 -1
  28. package/dist/ui/_not-found/index.txt +11 -11
  29. package/dist/ui/compare/__next._full.txt +12 -12
  30. package/dist/ui/compare/__next._tree.txt +2 -2
  31. package/dist/ui/compare/__next.compare.__PAGE__.txt +11 -11
  32. package/dist/ui/compare/index.html +1 -1
  33. package/dist/ui/compare/index.txt +12 -12
  34. package/dist/ui/connections/__next._full.txt +12 -12
  35. package/dist/ui/connections/__next._tree.txt +2 -2
  36. package/dist/ui/connections/__next.connections.__PAGE__.txt +11 -11
  37. package/dist/ui/connections/index.html +2 -2
  38. package/dist/ui/connections/index.txt +12 -12
  39. package/dist/ui/history/__next._full.txt +13 -13
  40. package/dist/ui/history/__next._tree.txt +2 -2
  41. package/dist/ui/history/__next.history.__PAGE__.txt +12 -12
  42. package/dist/ui/history/index.html +1 -1
  43. package/dist/ui/history/index.txt +13 -13
  44. package/dist/ui/home/__next._full.txt +12 -12
  45. package/dist/ui/home/__next._tree.txt +2 -2
  46. package/dist/ui/home/__next.home.__PAGE__.txt +11 -11
  47. package/dist/ui/home/index.html +1 -1
  48. package/dist/ui/home/index.txt +12 -12
  49. package/dist/ui/index.html +1 -1
  50. package/dist/ui/index.txt +12 -12
  51. package/dist/ui/preview/__next._full.txt +13 -13
  52. package/dist/ui/preview/__next._tree.txt +2 -2
  53. package/dist/ui/preview/__next.preview.__PAGE__.txt +12 -12
  54. package/dist/ui/preview/index.html +1 -1
  55. package/dist/ui/preview/index.txt +13 -13
  56. package/dist/ui/suite/__next._full.txt +12 -12
  57. package/dist/ui/suite/__next._tree.txt +2 -2
  58. package/dist/ui/suite/__next.suite.__PAGE__.txt +11 -11
  59. package/dist/ui/suite/index.html +1 -1
  60. package/dist/ui/suite/index.txt +12 -12
  61. package/dist/ui/tests/__next._full.txt +11 -11
  62. package/dist/ui/tests/__next._tree.txt +2 -2
  63. package/dist/ui/tests/__next.tests.__PAGE__.txt +10 -10
  64. package/dist/ui/tests/index.html +1 -1
  65. package/dist/ui/tests/index.txt +11 -11
  66. package/package.json +1 -1
  67. package/dist/ui/_next/static/chunks/0z965ndwtjbm_.js +0 -51
  68. package/dist/ui/_next/static/chunks/11ttwsn_q1n9e.js +0 -50
  69. package/dist/ui/_next/static/chunks/1dblkl6d18f29.js +0 -50
  70. package/dist/ui/_next/static/chunks/1g6q7zaut7pts.js +0 -50
  71. package/dist/ui/_next/static/chunks/1mj3_49yxxkvu.js +0 -3
  72. package/dist/ui/_next/static/chunks/22z3xj74zl8o3.js +0 -1
  73. package/dist/ui/_next/static/chunks/24xh2ng9tdid9.js +0 -50
  74. package/dist/ui/_next/static/chunks/2844deqm9c797.js +0 -50
  75. package/dist/ui/_next/static/chunks/2p2xxbfeii3so.css +0 -3
  76. package/dist/ui/_next/static/chunks/37fbrlydrkdac.js +0 -10
  77. package/dist/ui/_next/static/chunks/3ddcv0i2wy657.js +0 -2
  78. package/dist/ui/_next/static/chunks/3oetlmylrxpce.js +0 -123
  79. package/dist/ui/_next/static/chunks/41xixugzzb47w.js +0 -27
  80. /package/dist/ui/_next/static/{emu38N9csb28KU3jv4SH4 → u2V4Oq6faI2f3slbxdtb5}/_buildManifest.js +0 -0
  81. /package/dist/ui/_next/static/{emu38N9csb28KU3jv4SH4 → u2V4Oq6faI2f3slbxdtb5}/_clientMiddlewareManifest.js +0 -0
  82. /package/dist/ui/_next/static/{emu38N9csb28KU3jv4SH4 → u2V4Oq6faI2f3slbxdtb5}/_ssgManifest.js +0 -0
@@ -0,0 +1,50 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37837,e=>{"use strict";var t=e.i(14368),n=e.i(99181),r=e.i(68820),s=e.i(14865);e.s(["Popover",0,function({anchor:e,open:a,onClose:o,children:l,label:i,width:c=280,role:d="dialog"}){let u=(0,n.useRef)(null),[p,m]=(0,n.useState)(null);return((0,n.useLayoutEffect)(()=>{if(!a)return;let t=()=>{if(!e.current)return;let t=(0,s.pageRect)(e.current),n=(0,s.pageViewport)(),r=u.current?.offsetHeight??320,a=n.height-t.bottom-8,o=t.top-8,l=a<Math.min(r,240)&&o>a,i=Math.min(Math.max(8,t.right-c),n.width-c-8);m({top:l?Math.max(8,t.top-Math.min(r,o)-4):t.bottom+4,left:i,maxHeight:Math.max(160,(l?o:a)-4)})};t();let n=window.requestAnimationFrame(t);return window.addEventListener("resize",t),()=>{window.cancelAnimationFrame(n),window.removeEventListener("resize",t)}},[a,e,c]),(0,n.useEffect)(()=>{if(!a)return;let t=t=>{let n=t.target;u.current?.contains(n)||e.current?.contains(n)||o()},n=t=>{"Escape"===t.key&&(t.stopPropagation(),o(),e.current?.focus())},r=e=>{u.current?.contains(e.target)||o()},s=t=>{e.current?.contains(t.target)&&(t.stopPropagation(),t.preventDefault(),o())};return document.addEventListener("pointerdown",t,!0),document.addEventListener("click",s,!0),document.addEventListener("keydown",n,!0),document.addEventListener("scroll",r,!0),()=>{document.removeEventListener("pointerdown",t,!0),document.removeEventListener("click",s,!0),document.removeEventListener("keydown",n,!0),document.removeEventListener("scroll",r,!0)}},[a,o,e]),(0,n.useEffect)(()=>{a&&window.setTimeout(()=>u.current?.querySelector("[role=menuitem], input, select, button")?.focus(),0)},[a]),!a||"u"<typeof document)?null:(0,r.createPortal)((0,t.jsx)("div",{ref:u,role:d,"aria-label":i,style:{top:p?.top??-9999,left:p?.left??-9999,width:c,maxHeight:p?.maxHeight},className:"anim-pop fixed z-[70] overflow-auto rounded-lg border border-line bg-panel p-3 shadow-2xl",children:l}),document.body)}])},32610,e=>{"use strict";var t=e.i(14368),n=e.i(99181);e.s(["Splitter",0,function({orientation:e,label:r,value:s,onMove:a,onStep:o,onReset:l,onDragging:i,className:c="",style:d}){let[u,p]=(0,n.useState)(!1);(0,n.useEffect)(()=>i?.(u),[u,i]),(0,n.useEffect)(()=>{if(!u)return;let t=e=>a(e.clientX,e.clientY),n=()=>p(!1);return document.body.style.userSelect="none",document.body.style.cursor="vertical"===e?"col-resize":"row-resize",window.addEventListener("pointermove",t),window.addEventListener("pointerup",n),()=>{document.body.style.userSelect="",document.body.style.cursor="",window.removeEventListener("pointermove",t),window.removeEventListener("pointerup",n)}},[u,a,e]);let m="vertical"===e;return(0,t.jsx)("div",{role:"separator",tabIndex:0,"aria-orientation":e,"aria-label":r,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(s),title:`${r} — drag, or double-click to reset`,onPointerDown:e=>{0===e.button&&(e.preventDefault(),p(!0))},onDoubleClick:l,style:{...d,outline:"none"},onKeyDown:e=>{let t=m?"ArrowLeft":"ArrowUp";e.key===t||e.key===(m?"ArrowRight":"ArrowDown")?(e.preventDefault(),o(e.key===t?-1:1,e.shiftKey)):("Enter"===e.key||"Home"===e.key)&&(e.preventDefault(),l())},className:`group z-20 hidden touch-none outline-none lg:block ${m?"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 ${u?"opacity-100":""} ${m?"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=>{"use strict";e.i(24856);var t=e.i(46306),n=e.i(36558),r=e.i(2385),s=e.i(17219);let a={base:0,header:1,desc:2,pass:3,warn:4,fail:5};function o(e){return String(e).replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("\n","&#10;")}function l(e,t,n){if("level"===e)return"pass"===t?a.pass:"warn"===t?a.warn:"fail"===t?a.fail:a.base;let r="number"==typeof t?t:Number(t);return"errors"===e?r>=n.errorFail?a.fail:r>=n.errorWarn?a.warn:a.pass:r>=n.p95FailMs?a.fail:r>=n.p95WarnMs?a.warn:a.pass}let i=`<?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,s,o){let i=(0,r.buildVerdict)(e,{slo:s}),c=(0,r.verdictBars)(s),u=(0,t.normalizeChartLayout)(o,(0,t.hasThresholdTiles)(e));return d([{name:"Overview",rows:[[{v:"Key",s:a.header},{v:"Value",s:a.header},{v:"What this means",s:a.header}],...(0,n.summaryExportRows)(e).map(e=>{let t=a.base;return"failed_rate"===e.key&&(t=l("errors",e.value,c)),"latency_p95_ms"===e.key&&(t=l("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:i.overall,s:l("level",i.overall,c)},{v:i.headline,s:a.desc}],...i.aspects.map(e=>[{v:e.title},{v:e.level,s:l("level",e.level,c)},{v:e.summary,s:a.desc}]),[{v:"disclaimer"},{v:""},{v:i.disclaimer,s:a.desc}],...u.map((e,n)=>[{v:`chart_${n+1}`},{v:`${e.w}x${e.h}`},{v:t.CHART_TILE_TITLES[e.id],s:a.desc}])]},{name:"Second by second",rows:[n.SERIES_COLUMNS.map(e=>({v:e.header,s:a.header})),...e.buckets.map(e=>(0,n.seriesExportRow)(e).map((e,t)=>{let r=n.SERIES_COLUMNS[t]?.key,s=a.base;return"p95_ms"===r&&(s=l("latency",e,c)),"failed_rate"===r&&(s=l("errors",e,c)),"http_5xx"===r&&Number(e)>0&&(s=a.fail),"http_0"===r&&Number(e)>0&&(s=a.fail),"http_4xx"===r&&Number(e)>0&&(s=a.warn),"http_2xx"===r&&Number(e)>0&&(s=a.pass),{v:e,s}}))]}])}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="${o(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":i};return e.forEach((e,n)=>{var r;let s,a,l;return t[`xl/worksheets/sheet${n+1}.xml`]=(r=e.rows,a=Array.from({length:s=r[0]?.length??0},(e,t)=>{let n=function(e,t,n=10,r=48){let s=n;for(let n of e){let e=n[t]?.v;void 0!==e&&(s=Math.max(s,String(e).length+2))}return Math.min(r,s)}(r,t,t===s-1&&s>=3?36:12,t===s-1&&s>=3?72:42);return`<col min="${t+1}" max="${t+1}" width="${n}" customWidth="1"/>`}).join(""),l=r.map((e,t)=>`<row r="${t+1}" ht="${0===t?22:18}" customHeight="1">${e.map((e,n)=>{var r;let s,a;return r=t+1,s=`${function(e){let t=e+1,n="";for(;t>0;)n=String.fromCharCode(65+(t-1)%26)+n,t=Math.floor((t-1)/26);return n}(n)}${r}`,a=void 0!==e.s?` s="${e.s}"`:"","number"==typeof e.v&&Number.isFinite(e.v)?`<c r="${s}"${a}><v>${e.v}</v></c>`:`<c r="${s}"${a} t="inlineStr"><is><t xml:space="preserve">${o(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>${l}</sheetData>
50
+ </worksheet>`)}),new Blob([(0,s.zipStore)(t)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})}e.s(["S",0,a,"exportRunXlsx",0,c,"xlsxBook",0,d])},62766,e=>{"use strict";var t=e.i(99181);let n="apitestcenter-pane-sizes",r=(e,t,n)=>Math.min(n,Math.max(t,e));function s(e){let[n,r]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=window.matchMedia(e),n=()=>r(t.matches);return n(),t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[e]),n}e.s(["useColumnSplit",0,function(e,{min:a=220,max:o=900,rest:l=360}={}){let i=s("(min-width: 1024px)"),c=(0,t.useRef)(null),d=`${n}:${e}`,[u,p]=(0,t.useState)(null),[m,h]=(0,t.useState)(0);(0,t.useEffect)(()=>{try{let e=Number(JSON.parse(localStorage.getItem(d)??"null"));Number.isFinite(e)&&e>0&&p(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()},[i]);let f=(0,t.useCallback)(e=>{let t=c.current?.getBoundingClientRect(),n=null===e?null:Math.round(r(e,a,Math.max(a,Math.min(o,(t?.width??o+l)-l))));p(n);try{null===n?localStorage.removeItem(d):localStorage.setItem(d,JSON.stringify(n))}catch{}},[o,a,l,d]),y=()=>c.current?.getBoundingClientRect();return{wide:i,gridRef:c,gridStyle:i&&null!==u?{gridTemplateColumns:`${u}px minmax(0,1fr)`}:void 0,splitter:{orientation:"vertical",value:(u??m)/Math.max(1,y()?.width??1)*100,onMove:e=>{let t=y();t&&f(e-t.left)},onStep:(e,t)=>f((u??m)+16*e*(t?4:1)),onReset:()=>f(null),className:"absolute inset-y-0 -translate-x-1/2",style:{left:`${m}px`}}}},"usePaneSizes",0,function(e,a){let o=s("(min-width: 1024px)"),l=s("(min-width: 1536px)"),i=(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(n)??"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 u=(0,t.useCallback)(e=>{d(t=>{let r={...t,...e};try{localStorage.setItem(n,JSON.stringify(r))}catch{}return r})},[]),p=r(c.panel??(l?256:240),180,480),m=a?p:0,h=r("below"===e?c.below??.5:c.beside??(l?5/12:.5),.2,.8),f=o?"below"===e?{gridTemplateColumns:`${m}px minmax(0,1fr)`,gridTemplateRows:`minmax(0,${h}fr) minmax(0,${1-h}fr)`}:{gridTemplateColumns:`${m}px minmax(0,${h}fr) minmax(0,${1-h}fr)`}:void 0,y=()=>i.current?.getBoundingClientRect(),v=(0,t.useCallback)(e=>{let t=y();t&&u({panel:r(e-t.left,180,Math.min(480,.4*t.width))})},[u]),x=(0,t.useCallback)((t,n)=>{let s=y();s&&("below"===e?u({below:r((n-s.top)/s.height,.2,.8)}):u({beside:r((t-s.left-m)/Math.max(1,s.width-m),.2,.8)}))},[u,e,m]);return{wide:o,gridRef:i,gridStyle:f,panelWidth:o?p:void 0,panel:{value:p/480*100,onMove:e=>v(e),onStep:(e,t)=>u({panel:r(p+16*e*(t?4:1),180,480)}),onReset:()=>u({panel:null}),style:{left:`${m}px`}},split:{value:100*h,onMove:x,onStep:(t,n)=>u("below"===e?{below:r(h+.02*t*(n?5:1),.2,.8)}:{beside:r(h+.02*t*(n?5:1),.2,.8)}),onReset:()=>u("below"===e?{below:null}:{beside:null}),style:"below"===e?{top:`${100*h}%`,left:`${m}px`,right:0}:{left:`calc(${m}px + (100% - ${m}px) * ${h})`,top:0,bottom:0}}}}])},61230,17847,e=>{"use strict";e.s(["readableUrl",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(14368),n=e.i(99181),r=e.i(68820),s=e.i(14865);e.s(["ContextMenu",0,function({at:e,label:a,onClose:o,children:l}){let i=(0,n.useRef)(null),[c,d]=(0,n.useState)(null);return((0,n.useLayoutEffect)(()=>{let t=i.current;if(!t)return;let n=(0,s.pageViewport)();d({left:Math.max(8,Math.min(e.x,n.width-t.offsetWidth-8)),top:Math.max(8,Math.min(e.y,n.height-t.offsetHeight-8))}),t.querySelector('[role="menuitem"]:not(:disabled)')?.focus()},[e]),(0,n.useEffect)(()=>{let e=e=>{i.current?.contains(e.target)||o()},t=e=>{if("Escape"===e.key)e.stopPropagation(),o();else if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault();let t=[...i.current?.querySelectorAll('[role="menuitem"]:not(:disabled)')??[]],n=t.indexOf(document.activeElement);t[(n+("ArrowDown"===e.key?1:-1)+t.length)%t.length]?.focus()}};return document.addEventListener("pointerdown",e,!0),document.addEventListener("scroll",e,!0),window.addEventListener("resize",o),window.addEventListener("keydown",t,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("scroll",e,!0),window.removeEventListener("resize",o),window.removeEventListener("keydown",t,!0)}},[o]),"u"<typeof document)?null:(0,r.createPortal)((0,t.jsx)("div",{ref:i,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:l}),document.body)},"MenuItem",0,function({icon:e,label:n,hint:r,onSelect:s,danger:a=!1,disabled:o=!1}){return(0,t.jsxs)("button",{type:"button",role:"menuitem",disabled:o,onClick:s,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:n}),r?(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-mute",children:r}):null]})},"MenuLabel",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})},"MenuSeparator",0,function(){return(0,t.jsx)("div",{role:"separator",className:"my-1 h-px bg-line"})}],17847)},17219,e=>{"use strict";let t=new Uint32Array(256).map((e,t)=>{let n=t;for(let e=0;e<8;e++)n=1&n?0xedb88320^n>>>1:n>>>1;return n>>>0});function n(e){let t=new Uint8Array(2);return new DataView(t.buffer).setUint16(0,e,!0),t}function r(e){let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),t}function s(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}e.s(["zipStore",0,function(e){let a=new TextEncoder,o=[],l=[],i=0;for(let[c,d]of Object.entries(e)){let e=a.encode(c),u="string"==typeof d?a.encode(d):d,p=function(e){let n=0xffffffff;for(let r of e)n=t[(n^r)&255]^n>>>8;return(0xffffffff^n)>>>0}(u),m=s([r(0x4034b50),n(20),n(0),n(0),n(0),n(0),r(p),r(u.length),r(u.length),n(e.length),n(0),e,u]),h=s([r(0x2014b50),n(20),n(20),n(0),n(0),n(0),n(0),r(p),r(u.length),r(u.length),n(e.length),n(0),n(0),n(0),n(0),r(0),r(i),e]);o.push(m),l.push(h),i+=m.length}let c=s(l),d=s([r(0x6054b50),n(0),n(0),n(Object.keys(e).length),n(Object.keys(e).length),r(c.length),r(i),n(0)]),u=s([...o,c,d]);return new Blob([u.buffer.slice(u.byteOffset,u.byteOffset+u.byteLength)],{type:"application/zip"})}])},95211,e=>{"use strict";let t=(0,e.i(99522).default)("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(["Columns3",0,t],95211)},81538,e=>{"use strict";let t=(0,e.i(99522).default)("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(["MoreHorizontal",0,t],81538)},13163,e=>{"use strict";let t=(0,e.i(99522).default)("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(["Pencil",0,t],13163)},3792,e=>{"use strict";let t=(0,e.i(99522).default)("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(["Play",0,t],3792)},95927,e=>{"use strict";let t=(0,e.i(99522).default)("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(["Save",0,t],95927)},36558,e=>{"use strict";function t(e,n=2){if(!Number.isFinite(e))return 0;let r=10**n;return Math.round(e*r)/r}function n(e){return e>=100?Math.round(e):e>=10?t(e,1):t(e,2)}function r(e){return e>=10?Math.round(e):t(e,1)}function s(e,t=e=>e){return null==e?"":t(e)}e.s(["SERIES_COLUMNS",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."}],"seriesExportRow",0,function(e){return[e.elapsedS,e.ts,t(e.vus,1),n(e.rps),r(e.p50Ms),r(e.p95Ms),r(e.p99Ms),t(e.failedRate,4),e.http2xx,e.http4xx,e.http5xx,e.http0,e.bytesIn,e.bytesOut,s(e.p90Ms,r),s(e.p999Ms,r),s(e.maxMs,r),s(e.ttfbMs,r),s(e.connectMs,r),s(e.tlsMs,r),s(e.checksPassed),s(e.checksFailed),s(e.dropped)]},"summaryExportRows",0,function(e){let{summary:s}=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:s.http.requests,description:"How many HTTP calls finished. Zero usually means the target never answered."},{key:"rps_avg",value:n(s.http.rps.avg),description:"Average requests per second completed by this generator."},{key:"rps_max",value:n(s.http.rps.max),description:"Peak requests per second in any one-second sample."},{key:"failed_count",value:s.http.failed.count,description:"Requests that failed (4xx, 5xx, timeout, or no status)."},{key:"failed_rate",value:t(s.http.failed.rate,4),description:"Failed / total. Default warning bar is 1% (0.01)."},{key:"latency_min_ms",value:r(s.latencyMs.min),description:"Fastest request (milliseconds)."},{key:"latency_mean_ms",value:r(s.latencyMs.mean),description:"Average response time. Slow outliers pull this up."},{key:"latency_p50_ms",value:r(s.latencyMs.median),description:"Median — half of requests were faster than this."},{key:"latency_p95_ms",value:r(s.latencyMs.p95),description:"95th percentile — 95% of requests were faster. Usual headline latency."},{key:"latency_p99_ms",value:r(s.latencyMs.p99),description:"99th percentile — the slow tail (1 in 100 was slower)."},{key:"latency_max_ms",value:r(s.latencyMs.max),description:"Slowest single request."},{key:"vus_max",value:s.vus.max,description:"Peak concurrent users (virtual users / VUs)."},{key:"vus_avg",value:t(s.vus.avg,1),description:"Average concurrent users over the run."},{key:"bytes_in",value:s.data.bytesIn,description:"Response bytes received by the generator."},{key:"bytes_out",value:s.data.bytesOut,description:"Request bytes sent by the generator."},{key:"phase_ttfb_avg_ms",value:r(s.phasesMs.ttfb.avg),description:"Time to first byte — waiting on the server after the connection is up."},{key:"phase_tls_avg_ms",value:r(s.phasesMs.tls.avg),description:"TLS handshake time. High values often mean a far or overloaded endpoint."}];for(let[e,t]of Object.entries(s.http.status)){let n="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}. ${n}`})}for(let e of s.thresholds)a.push({key:`threshold:${e.name}`,value:e.ok?"pass":"fail",description:"k6 threshold result for this run."});return a}])}]);