@kb-labs/qa-entry 2.82.0 → 2.87.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 (41) hide show
  1. package/dist/widgets/117.js +1 -2
  2. package/dist/widgets/165.js +1 -2
  3. package/dist/widgets/326.js +1 -2
  4. package/dist/widgets/370.js +1 -2
  5. package/dist/widgets/405.js +1 -2
  6. package/dist/widgets/418.js +5 -6
  7. package/dist/widgets/451.js +1 -2
  8. package/dist/widgets/50.js +1 -2
  9. package/dist/widgets/546.js +1 -2
  10. package/dist/widgets/669.js +1 -2
  11. package/dist/widgets/694.js +1 -2
  12. package/dist/widgets/707.js +1 -2
  13. package/dist/widgets/775.js +1 -2
  14. package/dist/widgets/{162.js → 805.js} +10 -11
  15. package/dist/widgets/919.js +6 -7
  16. package/dist/widgets/945.js +1 -2
  17. package/dist/widgets/968.js +4 -5
  18. package/dist/widgets/__federation_expose_QADashboard.js +1 -2
  19. package/dist/widgets/mf-manifest.json +7 -7
  20. package/dist/widgets/mf-stats.json +25 -16
  21. package/dist/widgets/remoteEntry.js +4 -5
  22. package/package.json +7 -7
  23. package/dist/widgets/117.js.map +0 -1
  24. package/dist/widgets/162.js.map +0 -1
  25. package/dist/widgets/165.js.map +0 -1
  26. package/dist/widgets/326.js.map +0 -1
  27. package/dist/widgets/370.js.map +0 -1
  28. package/dist/widgets/405.js.map +0 -1
  29. package/dist/widgets/418.js.map +0 -1
  30. package/dist/widgets/451.js.map +0 -1
  31. package/dist/widgets/50.js.map +0 -1
  32. package/dist/widgets/546.js.map +0 -1
  33. package/dist/widgets/669.js.map +0 -1
  34. package/dist/widgets/694.js.map +0 -1
  35. package/dist/widgets/707.js.map +0 -1
  36. package/dist/widgets/775.js.map +0 -1
  37. package/dist/widgets/919.js.map +0 -1
  38. package/dist/widgets/945.js.map +0 -1
  39. package/dist/widgets/968.js.map +0 -1
  40. package/dist/widgets/__federation_expose_QADashboard.js.map +0 -1
  41. package/dist/widgets/remoteEntry.js.map +0 -1
@@ -1,2 +1 @@
1
- "use strict";(self.webpackChunk_kb_labs_qa_entry=self.webpackChunk_kb_labs_qa_entry||[]).push([["117"],{2924(e,r,n){n.r(r),n.d(r,{UIAccordion:()=>eV,UIAlert:()=>e7,UIAreaChart:()=>ei,UIAvatar:()=>G,UIAvatarGroup:()=>X,UIBadge:()=>w,UIBarChart:()=>ec,UIBox:()=>m,UIBreadcrumb:()=>eX,UIButton:()=>M,UICard:()=>z,UICheckbox:()=>ez,UICheckboxGroup:()=>eF,UICol:()=>T,UIColumnChart:()=>eo,UIDatePicker:()=>eD,UIDescriptions:()=>ep,UIDescriptionsItem:()=>ex,UIDiffViewer:()=>rM,UIDivider:()=>k,UIDrawer:()=>rb,UIDropdown:()=>eY,UIDropdownButton:()=>eJ,UIEmptyState:()=>e9,UIErrorState:()=>rr,UIFlex:()=>h,UIForm:()=>eB,UIFormItem:()=>eM,UIFormList:()=>eP,UIHeader:()=>e6,UIIcon:()=>_,UIIconButton:()=>H,UIInput:()=>eU,UIInputNumber:()=>eL,UIInputPassword:()=>eT,UIInputSearch:()=>eC,UIInputTextArea:()=>ek,UIJsonViewer:()=>rC,UILineChart:()=>er,UIList:()=>eb,UIListItem:()=>eS,UIListItemMeta:()=>ev,UIMarkdownViewer:()=>rT,UIMenu:()=>eZ,UIMessage:()=>rd,UIMetricCard:()=>J,UIModal:()=>rp,UIModalConfirm:()=>rx,UIModalError:()=>ry,UIModalInfo:()=>rm,UIModalSuccess:()=>rh,UIModalWarning:()=>rj,UINotification:()=>rg,UIPage:()=>e1,UIPageHeader:()=>e4,UIPageSection:()=>e5,UIPieChart:()=>ea,UIPopconfirm:()=>rS,UIPopover:()=>rv,UIProgress:()=>ef,UIRadio:()=>eW,UIRadioGroup:()=>eN,UIRangePicker:()=>eR,UIResult:()=>rc,UIRow:()=>U,UISegmented:()=>eq,UISelect:()=>ew,UIShimmerText:()=>V,UISkeleton:()=>rn,UISkeletonButton:()=>ro,UISkeletonImage:()=>ri,UISkeletonInput:()=>rt,UISkeletonNode:()=>rl,UISkeletonText:()=>ra,UISlider:()=>eG,UISpace:()=>S,UISpaceCompact:()=>v,UISpin:()=>rs,UIStack:()=>b,UIStatistic:()=>eu,UIStatisticCountdown:()=>eg,UIStatisticsChart:()=>ed,UISteps:()=>eQ,UISwitch:()=>eA,UITable:()=>q,UITabs:()=>eO,UITag:()=>A,UIText:()=>x,UITimePicker:()=>e$,UITimeline:()=>em,UITimelineItem:()=>eh,UITitle:()=>R,UITooltip:()=>rI,UITree:()=>ey,UITreeDirectoryTree:()=>ej,UITreeNode:()=>eI,UITypographyLink:()=>I,UITypographyParagraph:()=>j,UITypographyText:()=>y,UIUpload:()=>e_,UIUploadDragger:()=>eH,createFillFunction:()=>Z,registerIconRenderer:()=>N,useChartColors:()=>Q,useUIForm:()=>eE,useUIMessage:()=>ru,useUINotification:()=>rf,useUITheme:()=>K});var o=n(296),t=n(5783),i=n(4552),l=n(2913),a=n(5505),s=n(5793),c=n(7346),d=n(1499),u=n(3292),g=n(6911),f=n(6831),{useToken:p}=o.theme;function x({children:e,size:r="base",weight:n="normal",color:o="primary",as:l="span",className:a,style:s}){let{token:c}=p(),d={primary:c.colorText,secondary:c.colorTextSecondary,success:c.colorSuccess,warning:c.colorWarning,error:c.colorError,info:c.colorInfo},u={...{fontSize:t.typography.fontSize[r][0],lineHeight:t.typography.fontSize[r][1].lineHeight,fontWeight:t.typography.fontWeight[n],color:d[o]},...s};return(0,i.jsx)(l,{style:u,className:a,children:e})}function m({children:e,p:r,pt:n,pr:o,pb:l,pl:a,m:s,mt:c,mr:d,mb:u,ml:g,as:f="div",className:p,style:x}){let h={...void 0!==r&&{padding:t.spacing[r]},...void 0!==n&&{paddingTop:t.spacing[n]},...void 0!==o&&{paddingRight:t.spacing[o]},...void 0!==l&&{paddingBottom:t.spacing[l]},...void 0!==a&&{paddingLeft:t.spacing[a]},...void 0!==s&&{margin:t.spacing[s]},...void 0!==c&&{marginTop:t.spacing[c]},...void 0!==d&&{marginRight:t.spacing[d]},...void 0!==u&&{marginBottom:t.spacing[u]},...void 0!==g&&{marginLeft:t.spacing[g]},...x};return(0,i.jsx)(f,{style:h,className:p,children:e})}function h({children:e,direction:r="row",justify:n="start",align:o="stretch",gap:l,wrap:a="nowrap",as:s="div",className:c,style:d}){let u={display:"flex",flexDirection:r,justifyContent:{start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly"}[n],alignItems:{start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"}[o],flexWrap:a,...void 0!==l&&{gap:t.spacing[l]},...d};return(0,i.jsx)(s,{style:u,className:c,children:e})}function y(e){return(0,i.jsx)(o.Typography.Text,{...e})}function j(e){return(0,i.jsx)(o.Typography.Paragraph,{...e})}function I(e){return(0,i.jsx)(o.Typography.Link,{...e})}function b({direction:e="vertical",spacing:r=2,align:n,children:o,as:t,className:l,style:a}){return(0,i.jsx)(h,{direction:"vertical"===e?"column":"row",gap:r,align:n,as:t,className:l,style:a,children:o})}function S(e){return(0,i.jsx)(o.Space,{...e})}function v(e){return(0,i.jsx)(o.Space.Compact,{...e})}function U(e){return(0,i.jsx)(o.Row,{...e})}function T(e){return(0,i.jsx)(o.Col,{...e})}function k(e){return(0,i.jsx)(o.Divider,{...e})}var{useToken:C}=o.theme;function w({variant:e="default",children:r,...n}){let{token:t}=C(),l={success:t.colorSuccess,warning:t.colorWarning,error:t.colorError,info:t.colorInfo,default:t.colorTextSecondary};return r?(0,i.jsx)(o.Badge,{color:l[e],text:r,...n}):(0,i.jsx)(o.Badge,{status:{success:"success",warning:"warning",error:"error",info:"processing",default:"default"}[e],...n})}var B={},M=l.forwardRef(function({variant:e="default",className:r,...n},t){let l=[B.uiButton,r].filter(Boolean).join(" ");return(0,i.jsx)(o.Button,{ref:t,type:e,className:l,...n})}),{useToken:E}=o.theme,P={default:{tint:"transparent",accent:"transparent",border:"var(--border-primary, #e8eaed)"},success:{tint:"rgba(82,196,26,0.07)",accent:"#52c41a",border:"rgba(82,196,26,0.25)"},warning:{tint:"rgba(250,173,20,0.08)",accent:"#faad14",border:"rgba(250,173,20,0.30)"},error:{tint:"rgba(255,77,79,0.07)",accent:"#ff4d4f",border:"rgba(255,77,79,0.25)"},info:{tint:"rgba(12,102,255,0.07)",accent:"#0c66ff",border:"rgba(12,102,255,0.20)"}};function z({title:e,subtitle:r,extra:n,footer:t,children:l,size:a="default",bordered:s=!0,hoverable:c=!1,loading:d=!1,status:u="default",...g}){let{token:f}=E(),p=P[u],h=e||r?(0,i.jsxs)(m,{children:[e&&("string"==typeof e?(0,i.jsx)(x,{size:"lg",weight:"semibold",as:"div",children:e}):e),r&&(0,i.jsx)(x,{size:"sm",color:"secondary",as:"div",style:{marginTop:f.marginXXS},children:r})]}):void 0;return(0,i.jsxs)(o.Card,{title:h,extra:n,size:a,variant:s?"outlined":"borderless",hoverable:c,loading:d,...g,style:{boxShadow:c?"0 4px 16px rgba(0,0,0,0.08)":"0 1px 3px rgba(0,0,0,0.06)",transition:"box-shadow 200ms ease, transform 200ms ease",backgroundColor:"default"!==u?p.tint:void 0,borderColor:p.border,borderTopColor:"default"!==u?p.accent:p.border,borderTopWidth:"default"!==u?3:1,overflow:"hidden",...g.style},children:[l,t&&(0,i.jsx)(m,{mt:3,pt:3,style:{borderTop:`1px solid ${f.colorBorder}`},children:t})]})}var{useToken:F}=o.theme;function A({variant:e="default",color:r,children:n,closable:t,onClose:l,icon:a,...s}){let{token:c}=F(),d={success:c.colorSuccess,warning:c.colorWarning,error:c.colorError,info:c.colorInfo,default:c.colorPrimary,neutral:c.colorTextSecondary};return(0,i.jsx)(o.Tag,{color:r??d[e],closable:t,onClose:l,icon:a,...s,children:n})}var{Title:D}=o.Typography,{useToken:$}=o.theme;function R({level:e=1,children:r,subtitle:n,className:o,style:l}){let{token:a}=$();return n?(0,i.jsxs)(m,{mb:n?2:3,children:[(0,i.jsx)(D,{level:e,className:o,style:{margin:0,...l},children:r}),(0,i.jsx)(x,{size:"base",color:"secondary",as:"div",style:{marginTop:t.spacing["1"]},children:n})]}):(0,i.jsx)(D,{level:e,className:o,style:{marginBottom:t.spacing["3"],...l},children:r})}var L={},W=null;function N(e){W=e}function _({icon:e,name:r,size:n="base",color:o="inherit",spin:t=!1,onClick:a,className:s,style:c}){let d=[L.uiIcon,"anticon",L[`size-${n}`],L[`color-${o}`],t&&L.spin,a&&L.clickable,s].filter(Boolean).join(" "),u=null,g=r||("string"==typeof e?e:null);return(g?W?u=W(g):(console.warn(`Icon "${g}" could not be loaded. Call registerIconRenderer() at app startup.`),u=null):l.isValidElement(e)&&(u=e),u)?(0,i.jsx)("span",{className:d,style:c,onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,onKeyDown:a?e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a())}:void 0,children:u}):null}var H=({icon:e,name:r,onClick:n,size:o="base",color:t="primary",...l})=>(0,i.jsx)(_,{icon:e,name:r,size:o,color:t,onClick:n,style:{cursor:"pointer",transition:"opacity 0.2s",...l.style},...l});function G(e){return(0,i.jsx)(o.Avatar,{...e})}function X(e){return(0,i.jsx)(o.Avatar.Group,{...e})}function K(){return o.theme.useToken()}var O={};function V({children:e,color:r="var(--text-secondary, #9CA3AF)",highlight:n="var(--text-primary, #111827)",duration:o="2s",className:t,style:l}){return(0,i.jsx)("span",{className:[O.shimmer,t].filter(Boolean).join(" "),style:{"--shimmer-color-1":r,"--shimmer-color-2":r,"--shimmer-highlight":n,"--shimmer-duration":o,...l},children:e})}var{useToken:Y}=o.theme;function J({label:e,value:r,trend:n="neutral",delta:t,unit:l,size:a="default",showDelta:s=!0,loading:c=!1}){let{token:d}=Y(),u="up"===n?d.colorSuccess:"down"===n?d.colorError:d.colorText;return(0,i.jsx)(o.Card,{size:a,loading:c,style:{height:"100%"},children:(0,i.jsxs)(m,{children:[(0,i.jsx)(x,{size:"sm",color:"secondary",as:"div",children:e}),(0,i.jsxs)(h,{align:"baseline",gap:2,style:{marginTop:d.marginXS},children:[(0,i.jsx)(x,{size:"2xl",weight:"bold",as:"div",style:{color:u},children:r}),l&&(0,i.jsx)(x,{size:"base",color:"secondary",children:l})]}),s&&void 0!==t&&(0,i.jsx)(h,{align:"center",gap:1,style:{marginTop:d.marginXS},children:(0,i.jsxs)(x,{size:"sm",style:{color:t>=0?d.colorSuccess:d.colorError},children:["up"===n?"↑":"down"===n?"↓":""," ",Math.abs(t),"%"]})})]})})}function q({columns:e,dataSource:r,rowKey:n="id",loading:t,pagination:l,rowSelection:a,onRow:s,size:c="middle",bordered:d=!1,expandable:u,className:g,style:f,scroll:p}){return(0,i.jsx)(o.Table,{columns:e,dataSource:r,rowKey:n,loading:t,pagination:l,rowSelection:a,onRow:s,size:c,bordered:d,expandable:u,className:g,style:f,scroll:p})}function Q(){return(0,l.useMemo)(()=>{let e=["#1677ff","#52c41a","#faad14","#ff4d4f","#1890ff","#722ed1","#eb2f96","#13c2c2","#fa8c16","#2f54eb"];console.log("[useChartColors] Created palette:",{colors:e});let r=[...e,"#e6f4ff","#f6ffed","#fffbe6","#fff2f0","#e6f4ff","#f759ab","#9254de","#40a9ff","#73d13d","#ffc53d"],n=r=>e[r%e.length]||"#1890ff";return{colors:e,extendedColors:r,getColor:n,mapColors:(e,r)=>{let o=Array.from(new Set(e.map(e=>String(e[r]??"")))),t={};return o.forEach((e,r)=>{t[e]=n(r)}),t}}},[])}function Z(e,r){return n=>{let o=String(n[r]??""),t=Object.keys(e)[0];return e[o]||(t?e[t]:"#1890ff")||"#1890ff"}}var{useToken:ee}=o.theme;function er({colors:e,disableAutoColors:r,...n}){let o=function(){let{token:e}=ee();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=Q(),s=l.useMemo(()=>{let o=n.colorField||n.seriesField;if(console.log("[UILineChart] Debug info:",{hasColorField:o,colorField:n.colorField,seriesField:n.seriesField,disableAutoColors:r,hasData:!!n.data,dataLength:n.data?.length,customColors:e,paletteColors:t.colors}),r||!o||!n.data)return console.log("[UILineChart] Skipping auto-colors:",{disableAutoColors:r,hasColorField:o,hasData:!!n.data}),n;let i=e||t.colors;return console.log("[UILineChart] Applying colors:",{source:e?"custom":"palette",colors:i}),{...n,scale:{...n.scale,color:{range:i}}}},[n,e,t.colors,r]);return(0,i.jsx)(a.A,{...s,theme:o})}var{useToken:en}=o.theme;function eo({colors:e,...r}){let n=function(){let{token:e}=en();return l.useMemo(()=>({defaultColor:e.colorPrimary,colors10:[e.colorInfo,e.colorSuccess,e.colorWarning,e.colorError,e.colorPrimary,e.colorInfoBg,e.colorSuccessBg,e.colorWarningBg,e.colorErrorBg,e.colorPrimaryBg],colors20:[e.colorInfo,e.colorSuccess,e.colorWarning,e.colorError,e.colorPrimary,e.colorInfoBg,e.colorSuccessBg,e.colorWarningBg,e.colorErrorBg,e.colorPrimaryBg,e.colorInfoBorder,e.colorSuccessBorder,e.colorWarningBorder,e.colorErrorBorder,e.colorPrimaryBorder,e.colorInfoText,e.colorSuccessText,e.colorWarningText,e.colorErrorText,e.colorPrimaryText],styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),o=e?{...n,colors10:e,colors20:e}:n;return(0,i.jsx)(s.A,{...r,theme:o})}var{useToken:et}=o.theme;function ei({colors:e,disableAutoColors:r,...n}){let o=function(){let{token:e}=et();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=Q(),a=l.useMemo(()=>{if(r||!n.colorField||!n.data)return n;let o=e||t.colors;return{...n,scale:{...n.scale,color:{range:o}}}},[n,e,t.colors,r]);return(0,i.jsx)(c.A,{...a,theme:o})}var{useToken:el}=o.theme;function ea({colors:e,disableAutoColors:r,...n}){let o=function(){let{token:e}=el();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=Q(),a=l.useMemo(()=>{if(r||!n.colorField||!n.data)return n;let o=e||t.colors;return{...n,scale:{...n.scale,color:{range:o}}}},[n,e,t.colors,r]);return(0,i.jsx)(d.A,{...a,theme:o})}var{useToken:es}=o.theme;function ec({colors:e,disableAutoColors:r,...n}){let o=function(){let{token:e}=es();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=Q(),a=l.useMemo(()=>{if(r||!n.seriesField||!n.data)return n;let o=e||t.colors;return{...n,scale:{...n.scale,color:{range:o}}}},[n,e,t.colors,r]);return(0,i.jsx)(u.A,{...a,theme:o})}function ed({data:e,loading:r=!1,title:n,metrics:t=[],xField:a="date",yField:s="value",colorField:c="category",style:d,height:u=350,showLegend:f=!0,chartProps:p}){let m=Q(),h=l.useMemo(()=>m.colors.slice(0,Math.max(t.length,3)),[m.colors,t.length]),y=l.useMemo(()=>e?0===t.length?e:e.flatMap(e=>{let r=[];for(let n of t){let o;o=n.key in e&&"number"==typeof e[n.key]?e[n.key]:e.metrics&&n.key in e.metrics?e.metrics[n.key]:0,n.transform&&(o=n.transform(o)),r.push({[a]:e.date?g(e.date).format("YYYY-MM-DD"):e[a],[c]:n.label,[s]:o})}return r}):[],[e,t,a,s,c]),j=()=>(0,i.jsxs)(i.Fragment,{children:[r&&(0,i.jsx)("div",{style:{textAlign:"center",padding:"40px 0"},children:(0,i.jsx)(x,{color:"secondary",children:"Loading chart data..."})}),!r&&(!y||0===y.length)&&(0,i.jsx)("div",{style:{textAlign:"center",padding:"40px 0"},children:(0,i.jsx)(x,{color:"secondary",children:"No data available for the selected date range"})}),!r&&y&&y.length>0&&(0,i.jsxs)("div",{children:[f&&0!==t.length?(0,i.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:12,gap:16},children:t.map((e,r)=>(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,i.jsx)("span",{style:{display:"inline-block",width:10,height:10,borderRadius:"50%",backgroundColor:h[r%h.length]}}),(0,i.jsx)("span",{style:{fontSize:13,fontWeight:500},children:e.label})]},e.label))}):null,(0,i.jsx)(er,{data:y,xField:a,yField:s,colorField:c,height:u,colors:h,scale:{color:{range:h}},axis:{x:{label:{autoRotate:!1}},y:{label:{formatter:e=>{let r=Number(e);return r>=1e6?`${(r/1e6).toFixed(1)}M`:r>=1e3?`${(r/1e3).toFixed(1)}K`:r.toLocaleString()}}}},style:{shape:"smooth",lineWidth:2},legend:!1,tooltip:{title:e=>e[a],items:[e=>{let r=t.find(r=>r.label===e[c]),n=t.findIndex(r=>r.label===e[c]),o=e[s]?.toLocaleString()||"0";return r?.format&&null!=e[s]&&(o=r.format(e[s])),{name:e[c],value:o,color:h[n>=0?n:0]}}]},...p})]})]});return n?(0,i.jsx)(o.Card,{title:n,style:{marginTop:16,...d},children:j()}):(0,i.jsx)("div",{style:d,children:j()})}function eu(e){return(0,i.jsx)(o.Statistic,{...e})}function eg(e){return(0,i.jsx)(o.Statistic.Countdown,{...e})}function ef(e){return(0,i.jsx)(o.Progress,{...e})}function ep(e){return(0,i.jsx)(o.Descriptions,{...e})}function ex(e){return(0,i.jsx)(o.Descriptions.Item,{...e})}function em(e){return(0,i.jsx)(o.Timeline,{...e})}function eh(e){return(0,i.jsx)(o.Timeline.Item,{...e})}function ey(e){return(0,i.jsx)(o.Tree,{...e})}function ej(e){return(0,i.jsx)(o.Tree.DirectoryTree,{...e})}function eI(e){return(0,i.jsx)(o.Tree.TreeNode,{...e})}function eb(e){return(0,i.jsx)(o.List,{...e})}function eS(e){return(0,i.jsx)(o.List.Item,{...e})}function ev(e){return(0,i.jsx)(o.List.Item.Meta,{...e})}function eU({value:e,defaultValue:r,placeholder:n,disabled:t,prefix:l,suffix:a,maxLength:s,showCount:c,allowClear:d,onChange:u,onPressEnter:g,...f}){return(0,i.jsx)(o.Input,{value:e,defaultValue:r,placeholder:n,disabled:t,prefix:l,suffix:a,maxLength:s,showCount:c,allowClear:d,onChange:e=>{u?.(e.target.value)},onPressEnter:g,...f})}function eT(e){return(0,i.jsx)(o.Input.Password,{...e})}function ek(e){return(0,i.jsx)(o.Input.TextArea,{...e})}function eC(e){return(0,i.jsx)(o.Input.Search,{...e})}function ew({options:e=[],value:r,defaultValue:n,placeholder:t,disabled:l,loading:a,allowClear:s,showSearch:c,mode:d,onChange:u,...g}){let f=e.map(e=>({label:e.icon||e.description?(0,i.jsxs)(h,{align:"center",gap:2,style:{width:"100%"},children:[e.icon&&(0,i.jsx)("span",{children:e.icon}),(0,i.jsx)("span",{style:{flex:1},children:e.label}),e.description&&(0,i.jsx)("span",{style:{fontSize:"0.85em",opacity:.7},children:e.description})]}):e.label,value:e.value,disabled:e.disabled}));return(0,i.jsx)(o.Select,{options:f,value:r,defaultValue:n,placeholder:t,disabled:l,loading:a,allowClear:s,showSearch:c,mode:d,onChange:u,...g})}function eB({layout:e="vertical",onFinish:r,onFinishFailed:n,initialValues:t,children:l,...a}){return(0,i.jsx)(o.Form,{layout:e,onFinish:r,onFinishFailed:n,initialValues:t,...a,children:l})}function eM(e){return(0,i.jsx)(o.Form.Item,{...e})}var eE=o.Form.useForm;function eP(e){return(0,i.jsx)(o.Form.List,{...e})}function ez({children:e,checked:r,defaultChecked:n,disabled:t,indeterminate:l,onChange:a,...s}){return(0,i.jsx)(o.Checkbox,{checked:r,defaultChecked:n,disabled:t,indeterminate:l,onChange:e=>{a?.(e.target.checked)},...s,children:e})}function eF({options:e,value:r,defaultValue:n,disabled:l,gap:a=2,onChange:s}){return(0,i.jsx)(o.Checkbox.Group,{value:r,defaultValue:n,disabled:l,onChange:s,children:(0,i.jsx)(m,{children:e.map((r,n)=>(0,i.jsxs)(m,{mb:n<e.length-1?a:0,children:[(0,i.jsx)(o.Checkbox,{value:r.value,disabled:r.disabled,children:r.label}),r.description&&(0,i.jsx)(x,{size:"sm",color:"secondary",as:"div",style:{marginLeft:t.spacing["6"],marginTop:t.spacing["1"]},children:r.description})]},r.value))})})}function eA({checked:e,defaultChecked:r,disabled:n,loading:t,size:l="default",label:a,labelPosition:s="right",checkedChildren:c,unCheckedChildren:d,onChange:u,...g}){let f=(0,i.jsx)(o.Switch,{checked:e,defaultChecked:r,disabled:n,loading:t,size:l,checkedChildren:c,unCheckedChildren:d,onChange:u,...g});return a?(0,i.jsxs)(h,{align:"center",gap:2,children:["left"===s&&(0,i.jsx)(x,{children:a}),f,"right"===s&&(0,i.jsx)(x,{children:a})]}):f}function eD({value:e,defaultValue:r,placeholder:n,disabled:t,format:l,allowClear:a=!0,showTime:s,onChange:c,...d}){return(0,i.jsx)(o.DatePicker,{value:e,defaultValue:r,placeholder:n,disabled:t,format:l,allowClear:a,showTime:s,onChange:c,...d})}function e$({value:e,defaultValue:r,placeholder:n,disabled:t,format:l,allowClear:a=!0,onChange:s,...c}){return(0,i.jsx)(o.TimePicker,{value:e,defaultValue:r,placeholder:n,disabled:t,format:l,allowClear:a,onChange:s,...c})}function eR(e){return(0,i.jsx)(o.DatePicker.RangePicker,{...e})}function eL(e){return(0,i.jsx)(o.InputNumber,{...e})}function eW(e){return(0,i.jsx)(o.Radio,{...e})}function eN(e){return(0,i.jsx)(o.Radio.Group,{...e})}function e_(e){return(0,i.jsx)(o.Upload,{...e})}function eH(e){return(0,i.jsx)(o.Upload.Dragger,{...e})}function eG(e){return(0,i.jsx)(o.Slider,{...e})}function eX({items:e,separator:r,className:n}){let t=e.map(e=>({title:e.icon?(0,i.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[e.icon,(0,i.jsx)("span",{children:e.title})]}):e.title,href:e.href,onClick:e.onClick}));return(0,i.jsx)(o.Breadcrumb,{items:t,separator:r,className:n})}function eK({items:e,syncUrl:r,activeKey:n,defaultActiveKey:t,tabPosition:l="top",type:a="line",size:s="middle",onChange:c,onEdit:d,className:u,style:g}){let[p,x]=(0,f.useSearchParams)(),m=(0,f.useNavigate)(),h=(0,f.useParams)(),y=e[0]?.key??"",j=n,I=!0===r||"search"===r,b=r&&"object"==typeof r&&"path"===r.mode;I?j=p.get("tab")??y:b&&(j=h.tab??y);let S=e.map(e=>({key:e.key,label:e.icon?(0,i.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[e.icon,(0,i.jsx)("span",{children:e.label})]}):e.label,children:e.children,disabled:e.disabled,closable:e.closable}));return(0,i.jsx)(o.Tabs,{items:S,activeKey:j,defaultActiveKey:r?void 0:t,tabPosition:l,type:a,size:s,onChange:e=>{I?x(e===y?{}:{tab:e}):b&&"object"==typeof r&&m(e===y?r.basePath:`${r.basePath}/${e}`),c?.(e)},onEdit:d?(e,r)=>{d("string"==typeof e?e:"",r)}:void 0,className:u,style:g})}function eO(e){return(0,i.jsx)(eK,{...e})}function eV({items:e,activeKey:r,defaultActiveKey:n,accordion:t=!1,bordered:l=!0,ghost:a=!1,size:s="middle",onChange:c,className:d,style:u}){let g=e.map(e=>({key:e.key,label:e.label,children:e.children,extra:e.extra,showArrow:e.showArrow,collapsible:e.collapsible}));return(0,i.jsx)(o.Collapse,{items:g,activeKey:r,defaultActiveKey:n,accordion:t,bordered:l,ghost:a,size:s,onChange:c,className:d,style:u})}function eY(e){return(0,i.jsx)(o.Dropdown,{...e})}function eJ(e){return(0,i.jsx)(o.Dropdown.Button,{...e})}function eq(e){return(0,i.jsx)(o.Segmented,{...e})}function eQ(e){return(0,i.jsx)(o.Steps,{...e})}function eZ(e){return(0,i.jsx)(o.Menu,{...e})}var{useToken:e0}=o.theme;function e1({children:e,width:r="default",variant:n="default",className:o,style:t}){let{token:l}=e0(),a="document"===n,s={maxWidth:{default:"1280px",wide:"1600px",full:"100%"}[r],margin:"0 auto",padding:l.padding,...a&&{backgroundColor:l.colorBgContainer,borderRadius:l.borderRadiusLG,boxShadow:"0 1px 3px rgba(0,0,0,0.06)"},minHeight:a?void 0:"100%",...t};return(0,i.jsx)(m,{as:"main",className:o,style:s,children:e})}var{useToken:e2}=o.theme;function e6({title:e,subtitle:r,breadcrumb:n,actions:o,className:l,style:a}){let{token:s}=e2(),c={borderBottom:`1px solid ${s.colorBorder}`,paddingBottom:t.spacing["4"],marginBottom:t.spacing["6"],...a};return(0,i.jsxs)(m,{className:l,style:c,children:[n&&(0,i.jsx)(m,{mb:2,children:n}),(0,i.jsxs)(h,{justify:"between",align:"start",gap:4,children:[(0,i.jsxs)(m,{style:{flex:1},children:[(0,i.jsx)(R,{level:1,style:{marginBottom:r?t.spacing["2"]:0},children:e}),r&&(0,i.jsx)(x,{size:"base",color:"secondary",children:r})]}),o&&(0,i.jsx)(m,{style:{flexShrink:0},children:o})]})]})}var{useToken:e3}=o.theme;function e4({title:e,description:r,icon:n,breadcrumbs:o,actions:t,tabs:l,onBack:a,children:s}){let{token:c}=e3(),d=!!l;return(0,i.jsxs)("div",{style:{marginBottom:24*!d},children:[(a||o&&o.length>0)&&(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:c.marginXS,marginBottom:c.marginXS},children:[a&&(0,i.jsx)(M,{variant:"text",size:"small",icon:(0,i.jsx)(_,{name:"ArrowLeftOutlined"}),onClick:a,style:{padding:"0 4px"}}),o&&o.length>0&&(0,i.jsx)(eX,{items:o.map(e=>({title:e.title,...e.href?{href:e.href}:{}}))})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:c.marginSM},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:c.marginSM,minWidth:0},children:[n&&(0,i.jsx)("span",{style:{fontSize:24,color:c.colorPrimary,flexShrink:0,display:"flex",alignItems:"center"},children:n}),(0,i.jsxs)("div",{style:{minWidth:0},children:["string"==typeof e?(0,i.jsx)("h2",{style:{margin:0,fontSize:c.fontSizeHeading3,fontWeight:c.fontWeightStrong,color:c.colorTextHeading,lineHeight:1.3},children:e}):e,r&&(0,i.jsx)("div",{style:{marginTop:4},children:"string"==typeof r?(0,i.jsx)(x,{color:"secondary",size:"sm",children:r}):r})]})]}),t&&(0,i.jsx)("div",{style:{display:"flex",alignItems:"center",gap:c.marginXS,flexShrink:0},children:t})]}),s&&(0,i.jsx)("div",{style:{marginTop:c.marginSM},children:s}),d&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k,{style:{marginBottom:0}}),l]})]})}function e5({children:e,gap:r=24,style:n,...o}){return(0,i.jsx)("div",{style:{marginBottom:r,...n},...o,children:e})}function e7({variant:e="info",title:r,message:n,description:t,showIcon:l,closable:a,onClose:s,action:c,icon:d,className:u,style:g}){return(0,i.jsx)(o.Alert,{type:e,message:r||n,description:r?t||n:t,showIcon:l,closable:a,onClose:s,action:c,icon:d,className:u,style:g})}var{useToken:e8}=o.theme;function e9({icon:e,title:r,description:n,action:l,children:a,useDefaultImage:s,image:c,className:d,style:u}){let{token:g}=e8(),f=a??l;if(s||void 0!==c)return(0,i.jsx)(o.Empty,{description:n,image:c,className:d,style:u,children:f});let p={padding:t.spacing["8"],textAlign:"center",...u};return(0,i.jsx)(m,{className:d,style:p,children:(0,i.jsxs)(h,{direction:"column",align:"center",gap:3,children:[e&&(0,i.jsx)(m,{style:{fontSize:"48px",color:g.colorTextSecondary},children:e}),r&&(0,i.jsx)(x,{size:"lg",weight:"semibold",children:r}),n&&(0,i.jsx)(x,{size:"base",color:"secondary",children:n}),f&&(0,i.jsx)(m,{mt:2,children:f})]})})}e9.PRESENTED_IMAGE_SIMPLE=o.Empty.PRESENTED_IMAGE_SIMPLE,e9.PRESENTED_IMAGE_DEFAULT=o.Empty.PRESENTED_IMAGE_DEFAULT;var{useToken:re}=o.theme;function rr({icon:e,title:r="Something went wrong",description:n,details:o,showRetry:l=!1,retryText:a="Try again",onRetry:s,action:c,className:d,style:u}){let{token:g}=re(),f={padding:t.spacing["8"],textAlign:"center",...u};return(0,i.jsx)(m,{className:d,style:f,children:(0,i.jsxs)(h,{direction:"column",align:"center",gap:3,children:[e&&(0,i.jsx)(m,{style:{fontSize:"48px",color:g.colorError},children:e}),(0,i.jsx)(x,{size:"lg",weight:"semibold",color:"error",children:r}),n&&(0,i.jsx)(x,{size:"base",color:"secondary",children:n}),o&&(0,i.jsx)(m,{p:3,style:{backgroundColor:g.colorErrorBg,borderRadius:g.borderRadius,maxWidth:"600px",width:"100%"},children:(0,i.jsx)(x,{size:"sm",as:"pre",style:{margin:0,textAlign:"left",whiteSpace:"pre-wrap"},children:o})}),(l||c)&&(0,i.jsx)(m,{mt:2,children:c||(0,i.jsx)(M,{variant:"primary",onClick:s,children:a})})]})})}function rn({loading:e=!0,children:r,avatar:n,avatarShape:t="circle",lines:l=3,title:a=!0,active:s=!0,className:c,style:d}){return(0,i.jsx)(o.Skeleton,{loading:e,avatar:!!n&&{shape:t},paragraph:{rows:l},title:a,active:s,className:c,style:d,children:r})}function ro(e){return(0,i.jsx)(o.Skeleton.Button,{...e})}function rt(e){return(0,i.jsx)(o.Skeleton.Input,{...e})}function ri(e){return(0,i.jsx)(o.Skeleton.Image,{...e})}function rl(e){return(0,i.jsx)(o.Skeleton.Node,{...e})}function ra({width:e="100%",height:r="1em",gap:n=6,className:t,style:l}){let a=Array.isArray(e)?e:[e];return(0,i.jsx)("span",{className:t,style:{display:"inline-flex",flexDirection:"column",gap:n,...l},children:a.map((e,n)=>(0,i.jsx)("span",{style:{display:"inline-block",width:e,height:r,overflow:"hidden",borderRadius:4,flexShrink:0},children:(0,i.jsx)(o.Skeleton.Input,{active:!0,size:"small",style:{width:"100%",minWidth:"unset",height:"100%",display:"block"}})},n))})}function rs(e){return(0,i.jsx)(o.Spin,{...e})}function rc(e){return(0,i.jsx)(o.Result,{...e})}var rd=o.message;function ru(){return o.message.useMessage()}var rg=o.notification;function rf(){return o.notification.useNotification()}function rp({open:e,title:r,children:n,width:t="default",closable:l=!0,maskClosable:a=!0,footer:s,okText:c,cancelText:d,confirmLoading:u,onOk:g,onCancel:f,onClose:p,className:x,style:m}){let h={small:416,default:520,large:800,full:window.innerWidth-64},y="number"==typeof t?t:h[t];return(0,i.jsx)(o.Modal,{open:e,title:r,width:y,closable:l,maskClosable:a,footer:s,okText:c,cancelText:d,confirmLoading:u,onOk:g,onCancel:f||p,className:x,style:m,children:n})}var rx=o.Modal.confirm,rm=o.Modal.info,rh=o.Modal.success,ry=o.Modal.error,rj=o.Modal.warning;function rI({title:e,children:r,placement:n="top",arrow:t=!0,trigger:l="hover",open:a,className:s}){return(0,i.jsx)(o.Tooltip,{title:e,placement:n,arrow:t,trigger:l,open:a,className:s,children:r})}function rb(e){return(0,i.jsx)(o.Drawer,{...e})}function rS(e){return(0,i.jsx)(o.Popconfirm,{...e})}function rv(e){return(0,i.jsx)(o.Popover,{...e})}var{useToken:rU}=o.theme;function rT({content:e,className:r,style:n}){let o,{token:t}=rU(),l={padding:t.padding,backgroundColor:t.colorBgContainer,borderRadius:t.borderRadius,border:`1px solid ${t.colorBorder}`,lineHeight:1.6,...n},a={fontFamily:t.fontFamily,fontSize:t.fontSize,color:t.colorText};return(0,i.jsx)(m,{className:r,style:l,children:(0,i.jsx)("div",{style:a,dangerouslySetInnerHTML:{__html:(o=(o=(o=(o=(o=(o=(o=e.replace(/^### (.*$)/gim,"<h3>$1</h3>")).replace(/^## (.*$)/gim,"<h2>$1</h2>")).replace(/^# (.*$)/gim,"<h1>$1</h1>")).replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>")).replace(/\*(.*?)\*/g,"<em>$1</em>")).replace(/`(.*?)`/g,"<code>$1</code>")).replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2">$1</a>')).replace(/\n/g,"<br />")}})})}var{useToken:rk}=o.theme;function rC({data:e,collapsed:r=!1,indent:n=2,showLineNumbers:o=!1,className:t,style:a}){let{token:s}=rk(),c=l.useMemo(()=>{try{return JSON.stringify(e,null,n)}catch(e){return`Error: ${e instanceof Error?e.message:"Invalid JSON"}`}},[e,n]),d=c.split("\n"),u={backgroundColor:s.colorBgContainer,borderRadius:s.borderRadius,border:`1px solid ${s.colorBorder}`,overflow:"auto",maxHeight:"600px",...a},g={display:"block",fontFamily:'Consolas, Monaco, "Courier New", monospace',fontSize:"13px",lineHeight:"1.6",padding:s.padding,margin:0,whiteSpace:"pre",color:s.colorText},f={display:"inline-block",width:"40px",color:s.colorTextSecondary,userSelect:"none",textAlign:"right",marginRight:s.marginSM},p=rw(c,s);return(0,i.jsx)(m,{className:t,style:u,children:(0,i.jsx)("pre",{style:g,children:o?d.map((e,r)=>(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{style:f,children:r+1}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:rw(e,s)}})]},r)):(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:p}})})})}function rw(e,r){return(e=(e=(e=(e=e.replace(/"([^"]+)":/g,`<span style="color: ${r.colorPrimary}">"$1"</span>:`)).replace(/: "([^"]*)"/g,`: <span style="color: ${r.colorSuccess}">"$1"</span>`)).replace(/: (\d+)/g,`: <span style="color: ${r.colorWarning}">$1</span>`)).replace(/: (true|false)/g,`: <span style="color: ${r.colorInfo}">$1</span>`)).replace(/: (null)/g,`: <span style="color: ${r.colorTextSecondary}">$1</span>`)}var rB={add:{bg:"rgba(22, 163, 74, 0.12)",border:"var(--success, #16a34a)",color:"var(--success, #16a34a)"},remove:{bg:"rgba(220, 38, 38, 0.12)",border:"var(--error, #dc2626)",color:"var(--error, #dc2626)"},header:{bg:"var(--bg-tertiary, rgba(0,0,0,0.04))",border:"transparent",color:"var(--text-secondary, #6b7280)"},context:{bg:"transparent",border:"transparent",color:"inherit"}};function rM({diff:e,showLineNumbers:r=!0,maxHeight:n=500,className:o,style:t}){if(!e||""===e.trim())return(0,i.jsx)("div",{style:{padding:16,textAlign:"center"},children:(0,i.jsx)(y,{type:"secondary",children:"No changes to display"})});let l=e.split("\n");return(0,i.jsx)("div",{className:o,style:{background:"var(--bg-tertiary, rgba(0,0,0,0.02))",border:"1px solid var(--border-primary, rgba(0,0,0,0.1))",borderRadius:"var(--radius-md, 6px)",fontFamily:'Monaco, Menlo, "Courier New", monospace',fontSize:13,lineHeight:1.5,maxHeight:n,overflow:"auto",...t},children:l.map((e,n)=>{let o=e.startsWith("@@")?"header":e.startsWith("+")?"add":e.startsWith("-")?"remove":"context",t=rB[o],l="add"===o||"remove"===o;return(0,i.jsxs)("div",{style:{display:"flex",background:t.bg,borderLeft:l?`3px solid ${t.border}`:"none",paddingLeft:l?8:11},children:[r&&(0,i.jsx)("span",{style:{minWidth:44,textAlign:"right",paddingRight:12,userSelect:"none",color:"var(--text-secondary, #6c757d)",fontSize:12},children:n+1}),(0,i.jsx)("pre",{style:{margin:0,padding:0,color:t.color,whiteSpace:"pre",flex:1},children:e})]},n)})})}}}]);
2
- //# sourceMappingURL=117.js.map
1
+ "use strict";(self.rspackChunk_kb_labs_qa_entry=self.rspackChunk_kb_labs_qa_entry||[]).push([[117],{2924(e,r,n){n.r(r),n.d(r,{UIAccordion:()=>eV,UIAlert:()=>e7,UIAreaChart:()=>ei,UIAvatar:()=>G,UIAvatarGroup:()=>X,UIBadge:()=>w,UIBarChart:()=>ec,UIBox:()=>m,UIBreadcrumb:()=>eX,UIButton:()=>M,UICard:()=>z,UICheckbox:()=>ez,UICheckboxGroup:()=>eF,UICol:()=>T,UIColumnChart:()=>eo,UIDatePicker:()=>eD,UIDescriptions:()=>ep,UIDescriptionsItem:()=>ex,UIDiffViewer:()=>rM,UIDivider:()=>k,UIDrawer:()=>rb,UIDropdown:()=>eY,UIDropdownButton:()=>eJ,UIEmptyState:()=>e9,UIErrorState:()=>rr,UIFlex:()=>h,UIForm:()=>eB,UIFormItem:()=>eM,UIFormList:()=>eP,UIHeader:()=>e6,UIIcon:()=>_,UIIconButton:()=>H,UIInput:()=>eU,UIInputNumber:()=>eL,UIInputPassword:()=>eT,UIInputSearch:()=>eC,UIInputTextArea:()=>ek,UIJsonViewer:()=>rC,UILineChart:()=>er,UIList:()=>eb,UIListItem:()=>eS,UIListItemMeta:()=>ev,UIMarkdownViewer:()=>rT,UIMenu:()=>eZ,UIMessage:()=>rd,UIMetricCard:()=>J,UIModal:()=>rp,UIModalConfirm:()=>rx,UIModalError:()=>ry,UIModalInfo:()=>rm,UIModalSuccess:()=>rh,UIModalWarning:()=>rj,UINotification:()=>rg,UIPage:()=>e1,UIPageHeader:()=>e4,UIPageSection:()=>e5,UIPieChart:()=>ea,UIPopconfirm:()=>rS,UIPopover:()=>rv,UIProgress:()=>ef,UIRadio:()=>eW,UIRadioGroup:()=>eN,UIRangePicker:()=>eR,UIResult:()=>rc,UIRow:()=>U,UISegmented:()=>eq,UISelect:()=>ew,UIShimmerText:()=>V,UISkeleton:()=>rn,UISkeletonButton:()=>ro,UISkeletonImage:()=>ri,UISkeletonInput:()=>rt,UISkeletonNode:()=>rl,UISkeletonText:()=>ra,UISlider:()=>eG,UISpace:()=>S,UISpaceCompact:()=>v,UISpin:()=>rs,UIStack:()=>b,UIStatistic:()=>eu,UIStatisticCountdown:()=>eg,UIStatisticsChart:()=>ed,UISteps:()=>eQ,UISwitch:()=>eA,UITable:()=>q,UITabs:()=>eO,UITag:()=>A,UIText:()=>x,UITimePicker:()=>e$,UITimeline:()=>em,UITimelineItem:()=>eh,UITitle:()=>R,UITooltip:()=>rI,UITree:()=>ey,UITreeDirectoryTree:()=>ej,UITreeNode:()=>eI,UITypographyLink:()=>I,UITypographyParagraph:()=>j,UITypographyText:()=>y,UIUpload:()=>e_,UIUploadDragger:()=>eH,createFillFunction:()=>Z,registerIconRenderer:()=>N,useChartColors:()=>Q,useUIForm:()=>eE,useUIMessage:()=>ru,useUINotification:()=>rf,useUITheme:()=>K});var o=n(296),t=n(5783),i=n(4552),l=n(2913),a=n(5505),s=n(5793),c=n(7346),d=n(1499),u=n(3292),g=n(6911),f=n(6831),{useToken:p}=o.theme;function x({children:e,size:r="base",weight:n="normal",color:o="primary",as:l="span",className:a,style:s}){let{token:c}=p(),d={primary:c.colorText,secondary:c.colorTextSecondary,success:c.colorSuccess,warning:c.colorWarning,error:c.colorError,info:c.colorInfo},u={...{fontSize:t.typography.fontSize[r][0],lineHeight:t.typography.fontSize[r][1].lineHeight,fontWeight:t.typography.fontWeight[n],color:d[o]},...s};return(0,i.jsx)(l,{style:u,className:a,children:e})}function m({children:e,p:r,pt:n,pr:o,pb:l,pl:a,m:s,mt:c,mr:d,mb:u,ml:g,as:f="div",className:p,style:x}){let h={...void 0!==r&&{padding:t.spacing[r]},...void 0!==n&&{paddingTop:t.spacing[n]},...void 0!==o&&{paddingRight:t.spacing[o]},...void 0!==l&&{paddingBottom:t.spacing[l]},...void 0!==a&&{paddingLeft:t.spacing[a]},...void 0!==s&&{margin:t.spacing[s]},...void 0!==c&&{marginTop:t.spacing[c]},...void 0!==d&&{marginRight:t.spacing[d]},...void 0!==u&&{marginBottom:t.spacing[u]},...void 0!==g&&{marginLeft:t.spacing[g]},...x};return(0,i.jsx)(f,{style:h,className:p,children:e})}function h({children:e,direction:r="row",justify:n="start",align:o="stretch",gap:l,wrap:a="nowrap",as:s="div",className:c,style:d}){let u={display:"flex",flexDirection:r,justifyContent:{start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly"}[n],alignItems:{start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"}[o],flexWrap:a,...void 0!==l&&{gap:t.spacing[l]},...d};return(0,i.jsx)(s,{style:u,className:c,children:e})}function y(e){return(0,i.jsx)(o.Typography.Text,{...e})}function j(e){return(0,i.jsx)(o.Typography.Paragraph,{...e})}function I(e){return(0,i.jsx)(o.Typography.Link,{...e})}function b({direction:e="vertical",spacing:r=2,align:n,children:o,as:t,className:l,style:a}){return(0,i.jsx)(h,{direction:"vertical"===e?"column":"row",gap:r,align:n,as:t,className:l,style:a,children:o})}function S(e){return(0,i.jsx)(o.Space,{...e})}function v(e){return(0,i.jsx)(o.Space.Compact,{...e})}function U(e){return(0,i.jsx)(o.Row,{...e})}function T(e){return(0,i.jsx)(o.Col,{...e})}function k(e){return(0,i.jsx)(o.Divider,{...e})}var{useToken:C}=o.theme;function w({variant:e="default",children:r,...n}){let{token:t}=C(),l={success:t.colorSuccess,warning:t.colorWarning,error:t.colorError,info:t.colorInfo,default:t.colorTextSecondary};return r?(0,i.jsx)(o.Badge,{color:l[e],text:r,...n}):(0,i.jsx)(o.Badge,{status:{success:"success",warning:"warning",error:"error",info:"processing",default:"default"}[e],...n})}var B={},M=l.forwardRef(function({variant:e="default",className:r,...n},t){let l=[B.uiButton,r].filter(Boolean).join(" ");return(0,i.jsx)(o.Button,{ref:t,type:e,className:l,...n})}),{useToken:E}=o.theme,P={default:{tint:"transparent",accent:"transparent",border:"var(--border-primary, #e8eaed)"},success:{tint:"rgba(82,196,26,0.07)",accent:"#52c41a",border:"rgba(82,196,26,0.25)"},warning:{tint:"rgba(250,173,20,0.08)",accent:"#faad14",border:"rgba(250,173,20,0.30)"},error:{tint:"rgba(255,77,79,0.07)",accent:"#ff4d4f",border:"rgba(255,77,79,0.25)"},info:{tint:"rgba(12,102,255,0.07)",accent:"#0c66ff",border:"rgba(12,102,255,0.20)"}};function z({title:e,subtitle:r,extra:n,footer:t,children:l,size:a="default",bordered:s=!0,hoverable:c=!1,loading:d=!1,status:u="default",...g}){let{token:f}=E(),p=P[u],h=e||r?(0,i.jsxs)(m,{children:[e&&("string"==typeof e?(0,i.jsx)(x,{size:"lg",weight:"semibold",as:"div",children:e}):e),r&&(0,i.jsx)(x,{size:"sm",color:"secondary",as:"div",style:{marginTop:f.marginXXS},children:r})]}):void 0;return(0,i.jsxs)(o.Card,{title:h,extra:n,size:a,variant:s?"outlined":"borderless",hoverable:c,loading:d,...g,style:{boxShadow:c?"0 4px 16px rgba(0,0,0,0.08)":"0 1px 3px rgba(0,0,0,0.06)",transition:"box-shadow 200ms ease, transform 200ms ease",backgroundColor:"default"!==u?p.tint:void 0,borderColor:p.border,borderTopColor:"default"!==u?p.accent:p.border,borderTopWidth:"default"!==u?3:1,overflow:"hidden",...g.style},children:[l,t&&(0,i.jsx)(m,{mt:3,pt:3,style:{borderTop:`1px solid ${f.colorBorder}`},children:t})]})}var{useToken:F}=o.theme;function A({variant:e="default",color:r,children:n,closable:t,onClose:l,icon:a,...s}){let{token:c}=F(),d={success:c.colorSuccess,warning:c.colorWarning,error:c.colorError,info:c.colorInfo,default:c.colorPrimary,neutral:c.colorTextSecondary};return(0,i.jsx)(o.Tag,{color:r??d[e],closable:t,onClose:l,icon:a,...s,children:n})}var{Title:D}=o.Typography,{useToken:$}=o.theme;function R({level:e=1,children:r,subtitle:n,className:o,style:l}){let{token:a}=$();return n?(0,i.jsxs)(m,{mb:n?2:3,children:[(0,i.jsx)(D,{level:e,className:o,style:{margin:0,...l},children:r}),(0,i.jsx)(x,{size:"base",color:"secondary",as:"div",style:{marginTop:t.spacing["1"]},children:n})]}):(0,i.jsx)(D,{level:e,className:o,style:{marginBottom:t.spacing["3"],...l},children:r})}var L={},W=null;function N(e){W=e}function _({icon:e,name:r,size:n="base",color:o="inherit",spin:t=!1,onClick:a,className:s,style:c}){let d=[L.uiIcon,"anticon",L[`size-${n}`],L[`color-${o}`],t&&L.spin,a&&L.clickable,s].filter(Boolean).join(" "),u=null,g=r||("string"==typeof e?e:null);return(g?W?u=W(g):(console.warn(`Icon "${g}" could not be loaded. Call registerIconRenderer() at app startup.`),u=null):l.isValidElement(e)&&(u=e),u)?(0,i.jsx)("span",{className:d,style:c,onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,onKeyDown:a?e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a())}:void 0,children:u}):null}var H=({icon:e,name:r,onClick:n,size:o="base",color:t="primary",...l})=>(0,i.jsx)(_,{icon:e,name:r,size:o,color:t,onClick:n,style:{cursor:"pointer",transition:"opacity 0.2s",...l.style},...l});function G(e){return(0,i.jsx)(o.Avatar,{...e})}function X(e){return(0,i.jsx)(o.Avatar.Group,{...e})}function K(){return o.theme.useToken()}var O={};function V({children:e,color:r="var(--text-secondary, #9CA3AF)",highlight:n="var(--text-primary, #111827)",duration:o="2s",className:t,style:l}){return(0,i.jsx)("span",{className:[O.shimmer,t].filter(Boolean).join(" "),style:{"--shimmer-color-1":r,"--shimmer-color-2":r,"--shimmer-highlight":n,"--shimmer-duration":o,...l},children:e})}var{useToken:Y}=o.theme;function J({label:e,value:r,trend:n="neutral",delta:t,unit:l,size:a="default",showDelta:s=!0,loading:c=!1}){let{token:d}=Y(),u="up"===n?d.colorSuccess:"down"===n?d.colorError:d.colorText;return(0,i.jsx)(o.Card,{size:a,loading:c,style:{height:"100%"},children:(0,i.jsxs)(m,{children:[(0,i.jsx)(x,{size:"sm",color:"secondary",as:"div",children:e}),(0,i.jsxs)(h,{align:"baseline",gap:2,style:{marginTop:d.marginXS},children:[(0,i.jsx)(x,{size:"2xl",weight:"bold",as:"div",style:{color:u},children:r}),l&&(0,i.jsx)(x,{size:"base",color:"secondary",children:l})]}),s&&void 0!==t&&(0,i.jsx)(h,{align:"center",gap:1,style:{marginTop:d.marginXS},children:(0,i.jsxs)(x,{size:"sm",style:{color:t>=0?d.colorSuccess:d.colorError},children:["up"===n?"↑":"down"===n?"↓":""," ",Math.abs(t),"%"]})})]})})}function q({columns:e,dataSource:r,rowKey:n="id",loading:t,pagination:l,rowSelection:a,onRow:s,size:c="middle",bordered:d=!1,expandable:u,className:g,style:f,scroll:p}){return(0,i.jsx)(o.Table,{columns:e,dataSource:r,rowKey:n,loading:t,pagination:l,rowSelection:a,onRow:s,size:c,bordered:d,expandable:u,className:g,style:f,scroll:p})}function Q(){return(0,l.useMemo)(()=>{let e=["#1677ff","#52c41a","#faad14","#ff4d4f","#1890ff","#722ed1","#eb2f96","#13c2c2","#fa8c16","#2f54eb"];console.log("[useChartColors] Created palette:",{colors:e});let r=[...e,"#e6f4ff","#f6ffed","#fffbe6","#fff2f0","#e6f4ff","#f759ab","#9254de","#40a9ff","#73d13d","#ffc53d"],n=r=>e[r%e.length]||"#1890ff";return{colors:e,extendedColors:r,getColor:n,mapColors:(e,r)=>{let o=Array.from(new Set(e.map(e=>String(e[r]??"")))),t={};return o.forEach((e,r)=>{t[e]=n(r)}),t}}},[])}function Z(e,r){return n=>{let o=String(n[r]??""),t=Object.keys(e)[0];return e[o]||(t?e[t]:"#1890ff")||"#1890ff"}}var{useToken:ee}=o.theme;function er({colors:e,disableAutoColors:r,...n}){let o=function(){let{token:e}=ee();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=Q(),s=l.useMemo(()=>{let o=n.colorField||n.seriesField;if(console.log("[UILineChart] Debug info:",{hasColorField:o,colorField:n.colorField,seriesField:n.seriesField,disableAutoColors:r,hasData:!!n.data,dataLength:n.data?.length,customColors:e,paletteColors:t.colors}),r||!o||!n.data)return console.log("[UILineChart] Skipping auto-colors:",{disableAutoColors:r,hasColorField:o,hasData:!!n.data}),n;let i=e||t.colors;return console.log("[UILineChart] Applying colors:",{source:e?"custom":"palette",colors:i}),{...n,scale:{...n.scale,color:{range:i}}}},[n,e,t.colors,r]);return(0,i.jsx)(a.A,{...s,theme:o})}var{useToken:en}=o.theme;function eo({colors:e,...r}){let n=function(){let{token:e}=en();return l.useMemo(()=>({defaultColor:e.colorPrimary,colors10:[e.colorInfo,e.colorSuccess,e.colorWarning,e.colorError,e.colorPrimary,e.colorInfoBg,e.colorSuccessBg,e.colorWarningBg,e.colorErrorBg,e.colorPrimaryBg],colors20:[e.colorInfo,e.colorSuccess,e.colorWarning,e.colorError,e.colorPrimary,e.colorInfoBg,e.colorSuccessBg,e.colorWarningBg,e.colorErrorBg,e.colorPrimaryBg,e.colorInfoBorder,e.colorSuccessBorder,e.colorWarningBorder,e.colorErrorBorder,e.colorPrimaryBorder,e.colorInfoText,e.colorSuccessText,e.colorWarningText,e.colorErrorText,e.colorPrimaryText],styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),o=e?{...n,colors10:e,colors20:e}:n;return(0,i.jsx)(s.A,{...r,theme:o})}var{useToken:et}=o.theme;function ei({colors:e,disableAutoColors:r,...n}){let o=function(){let{token:e}=et();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=Q(),a=l.useMemo(()=>{if(r||!n.colorField||!n.data)return n;let o=e||t.colors;return{...n,scale:{...n.scale,color:{range:o}}}},[n,e,t.colors,r]);return(0,i.jsx)(c.A,{...a,theme:o})}var{useToken:el}=o.theme;function ea({colors:e,disableAutoColors:r,...n}){let o=function(){let{token:e}=el();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=Q(),a=l.useMemo(()=>{if(r||!n.colorField||!n.data)return n;let o=e||t.colors;return{...n,scale:{...n.scale,color:{range:o}}}},[n,e,t.colors,r]);return(0,i.jsx)(d.A,{...a,theme:o})}var{useToken:es}=o.theme;function ec({colors:e,disableAutoColors:r,...n}){let o=function(){let{token:e}=es();return l.useMemo(()=>({defaultColor:e.colorPrimary,styleSheet:{backgroundColor:e.colorBgContainer,fontFamily:e.fontFamily,fontSize:e.fontSize,color:e.colorText}}),[e])}(),t=Q(),a=l.useMemo(()=>{if(r||!n.seriesField||!n.data)return n;let o=e||t.colors;return{...n,scale:{...n.scale,color:{range:o}}}},[n,e,t.colors,r]);return(0,i.jsx)(u.A,{...a,theme:o})}function ed({data:e,loading:r=!1,title:n,metrics:t=[],xField:a="date",yField:s="value",colorField:c="category",style:d,height:u=350,showLegend:f=!0,chartProps:p}){let m=Q(),h=l.useMemo(()=>m.colors.slice(0,Math.max(t.length,3)),[m.colors,t.length]),y=l.useMemo(()=>e?0===t.length?e:e.flatMap(e=>{let r=[];for(let n of t){let o;o=n.key in e&&"number"==typeof e[n.key]?e[n.key]:e.metrics&&n.key in e.metrics?e.metrics[n.key]:0,n.transform&&(o=n.transform(o)),r.push({[a]:e.date?g(e.date).format("YYYY-MM-DD"):e[a],[c]:n.label,[s]:o})}return r}):[],[e,t,a,s,c]),j=()=>(0,i.jsxs)(i.Fragment,{children:[r&&(0,i.jsx)("div",{style:{textAlign:"center",padding:"40px 0"},children:(0,i.jsx)(x,{color:"secondary",children:"Loading chart data..."})}),!r&&(!y||0===y.length)&&(0,i.jsx)("div",{style:{textAlign:"center",padding:"40px 0"},children:(0,i.jsx)(x,{color:"secondary",children:"No data available for the selected date range"})}),!r&&y&&y.length>0&&(0,i.jsxs)("div",{children:[f&&0!==t.length?(0,i.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:12,gap:16},children:t.map((e,r)=>(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,i.jsx)("span",{style:{display:"inline-block",width:10,height:10,borderRadius:"50%",backgroundColor:h[r%h.length]}}),(0,i.jsx)("span",{style:{fontSize:13,fontWeight:500},children:e.label})]},e.label))}):null,(0,i.jsx)(er,{data:y,xField:a,yField:s,colorField:c,height:u,colors:h,scale:{color:{range:h}},axis:{x:{label:{autoRotate:!1}},y:{label:{formatter:e=>{let r=Number(e);return r>=1e6?`${(r/1e6).toFixed(1)}M`:r>=1e3?`${(r/1e3).toFixed(1)}K`:r.toLocaleString()}}}},style:{shape:"smooth",lineWidth:2},legend:!1,tooltip:{title:e=>e[a],items:[e=>{let r=t.find(r=>r.label===e[c]),n=t.findIndex(r=>r.label===e[c]),o=e[s]?.toLocaleString()||"0";return r?.format&&null!=e[s]&&(o=r.format(e[s])),{name:e[c],value:o,color:h[n>=0?n:0]}}]},...p})]})]});return n?(0,i.jsx)(o.Card,{title:n,style:{marginTop:16,...d},children:j()}):(0,i.jsx)("div",{style:d,children:j()})}function eu(e){return(0,i.jsx)(o.Statistic,{...e})}function eg(e){return(0,i.jsx)(o.Statistic.Countdown,{...e})}function ef(e){return(0,i.jsx)(o.Progress,{...e})}function ep(e){return(0,i.jsx)(o.Descriptions,{...e})}function ex(e){return(0,i.jsx)(o.Descriptions.Item,{...e})}function em(e){return(0,i.jsx)(o.Timeline,{...e})}function eh(e){return(0,i.jsx)(o.Timeline.Item,{...e})}function ey(e){return(0,i.jsx)(o.Tree,{...e})}function ej(e){return(0,i.jsx)(o.Tree.DirectoryTree,{...e})}function eI(e){return(0,i.jsx)(o.Tree.TreeNode,{...e})}function eb(e){return(0,i.jsx)(o.List,{...e})}function eS(e){return(0,i.jsx)(o.List.Item,{...e})}function ev(e){return(0,i.jsx)(o.List.Item.Meta,{...e})}function eU({value:e,defaultValue:r,placeholder:n,disabled:t,prefix:l,suffix:a,maxLength:s,showCount:c,allowClear:d,onChange:u,onPressEnter:g,...f}){return(0,i.jsx)(o.Input,{value:e,defaultValue:r,placeholder:n,disabled:t,prefix:l,suffix:a,maxLength:s,showCount:c,allowClear:d,onChange:e=>{u?.(e.target.value)},onPressEnter:g,...f})}function eT(e){return(0,i.jsx)(o.Input.Password,{...e})}function ek(e){return(0,i.jsx)(o.Input.TextArea,{...e})}function eC(e){return(0,i.jsx)(o.Input.Search,{...e})}function ew({options:e=[],value:r,defaultValue:n,placeholder:t,disabled:l,loading:a,allowClear:s,showSearch:c,mode:d,onChange:u,...g}){let f=e.map(e=>({label:e.icon||e.description?(0,i.jsxs)(h,{align:"center",gap:2,style:{width:"100%"},children:[e.icon&&(0,i.jsx)("span",{children:e.icon}),(0,i.jsx)("span",{style:{flex:1},children:e.label}),e.description&&(0,i.jsx)("span",{style:{fontSize:"0.85em",opacity:.7},children:e.description})]}):e.label,value:e.value,disabled:e.disabled}));return(0,i.jsx)(o.Select,{options:f,value:r,defaultValue:n,placeholder:t,disabled:l,loading:a,allowClear:s,showSearch:c,mode:d,onChange:u,...g})}function eB({layout:e="vertical",onFinish:r,onFinishFailed:n,initialValues:t,children:l,...a}){return(0,i.jsx)(o.Form,{layout:e,onFinish:r,onFinishFailed:n,initialValues:t,...a,children:l})}function eM(e){return(0,i.jsx)(o.Form.Item,{...e})}var eE=o.Form.useForm;function eP(e){return(0,i.jsx)(o.Form.List,{...e})}function ez({children:e,checked:r,defaultChecked:n,disabled:t,indeterminate:l,onChange:a,...s}){return(0,i.jsx)(o.Checkbox,{checked:r,defaultChecked:n,disabled:t,indeterminate:l,onChange:e=>{a?.(e.target.checked)},...s,children:e})}function eF({options:e,value:r,defaultValue:n,disabled:l,gap:a=2,onChange:s}){return(0,i.jsx)(o.Checkbox.Group,{value:r,defaultValue:n,disabled:l,onChange:s,children:(0,i.jsx)(m,{children:e.map((r,n)=>(0,i.jsxs)(m,{mb:n<e.length-1?a:0,children:[(0,i.jsx)(o.Checkbox,{value:r.value,disabled:r.disabled,children:r.label}),r.description&&(0,i.jsx)(x,{size:"sm",color:"secondary",as:"div",style:{marginLeft:t.spacing["6"],marginTop:t.spacing["1"]},children:r.description})]},r.value))})})}function eA({checked:e,defaultChecked:r,disabled:n,loading:t,size:l="default",label:a,labelPosition:s="right",checkedChildren:c,unCheckedChildren:d,onChange:u,...g}){let f=(0,i.jsx)(o.Switch,{checked:e,defaultChecked:r,disabled:n,loading:t,size:l,checkedChildren:c,unCheckedChildren:d,onChange:u,...g});return a?(0,i.jsxs)(h,{align:"center",gap:2,children:["left"===s&&(0,i.jsx)(x,{children:a}),f,"right"===s&&(0,i.jsx)(x,{children:a})]}):f}function eD({value:e,defaultValue:r,placeholder:n,disabled:t,format:l,allowClear:a=!0,showTime:s,onChange:c,...d}){return(0,i.jsx)(o.DatePicker,{value:e,defaultValue:r,placeholder:n,disabled:t,format:l,allowClear:a,showTime:s,onChange:c,...d})}function e$({value:e,defaultValue:r,placeholder:n,disabled:t,format:l,allowClear:a=!0,onChange:s,...c}){return(0,i.jsx)(o.TimePicker,{value:e,defaultValue:r,placeholder:n,disabled:t,format:l,allowClear:a,onChange:s,...c})}function eR(e){return(0,i.jsx)(o.DatePicker.RangePicker,{...e})}function eL(e){return(0,i.jsx)(o.InputNumber,{...e})}function eW(e){return(0,i.jsx)(o.Radio,{...e})}function eN(e){return(0,i.jsx)(o.Radio.Group,{...e})}function e_(e){return(0,i.jsx)(o.Upload,{...e})}function eH(e){return(0,i.jsx)(o.Upload.Dragger,{...e})}function eG(e){return(0,i.jsx)(o.Slider,{...e})}function eX({items:e,separator:r,className:n}){let t=e.map(e=>({title:e.icon?(0,i.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[e.icon,(0,i.jsx)("span",{children:e.title})]}):e.title,href:e.href,onClick:e.onClick}));return(0,i.jsx)(o.Breadcrumb,{items:t,separator:r,className:n})}function eK({items:e,syncUrl:r,activeKey:n,defaultActiveKey:t,tabPosition:l="top",type:a="line",size:s="middle",onChange:c,onEdit:d,className:u,style:g}){let[p,x]=(0,f.useSearchParams)(),m=(0,f.useNavigate)(),h=(0,f.useParams)(),y=e[0]?.key??"",j=n,I=!0===r||"search"===r,b=r&&"object"==typeof r&&"path"===r.mode;I?j=p.get("tab")??y:b&&(j=h.tab??y);let S=e.map(e=>({key:e.key,label:e.icon?(0,i.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[e.icon,(0,i.jsx)("span",{children:e.label})]}):e.label,children:e.children,disabled:e.disabled,closable:e.closable}));return(0,i.jsx)(o.Tabs,{items:S,activeKey:j,defaultActiveKey:r?void 0:t,tabPosition:l,type:a,size:s,onChange:e=>{I?x(e===y?{}:{tab:e}):b&&"object"==typeof r&&m(e===y?r.basePath:`${r.basePath}/${e}`),c?.(e)},onEdit:d?(e,r)=>{d("string"==typeof e?e:"",r)}:void 0,className:u,style:g})}function eO(e){return(0,i.jsx)(eK,{...e})}function eV({items:e,activeKey:r,defaultActiveKey:n,accordion:t=!1,bordered:l=!0,ghost:a=!1,size:s="middle",onChange:c,className:d,style:u}){let g=e.map(e=>({key:e.key,label:e.label,children:e.children,extra:e.extra,showArrow:e.showArrow,collapsible:e.collapsible}));return(0,i.jsx)(o.Collapse,{items:g,activeKey:r,defaultActiveKey:n,accordion:t,bordered:l,ghost:a,size:s,onChange:c,className:d,style:u})}function eY(e){return(0,i.jsx)(o.Dropdown,{...e})}function eJ(e){return(0,i.jsx)(o.Dropdown.Button,{...e})}function eq(e){return(0,i.jsx)(o.Segmented,{...e})}function eQ(e){return(0,i.jsx)(o.Steps,{...e})}function eZ(e){return(0,i.jsx)(o.Menu,{...e})}var{useToken:e0}=o.theme;function e1({children:e,width:r="default",variant:n="default",className:o,style:t}){let{token:l}=e0(),a="document"===n,s={maxWidth:{default:"1280px",wide:"1600px",full:"100%"}[r],margin:"0 auto",padding:l.padding,...a&&{backgroundColor:l.colorBgContainer,borderRadius:l.borderRadiusLG,boxShadow:"0 1px 3px rgba(0,0,0,0.06)"},minHeight:a?void 0:"100%",...t};return(0,i.jsx)(m,{as:"main",className:o,style:s,children:e})}var{useToken:e2}=o.theme;function e6({title:e,subtitle:r,breadcrumb:n,actions:o,className:l,style:a}){let{token:s}=e2(),c={borderBottom:`1px solid ${s.colorBorder}`,paddingBottom:t.spacing["4"],marginBottom:t.spacing["6"],...a};return(0,i.jsxs)(m,{className:l,style:c,children:[n&&(0,i.jsx)(m,{mb:2,children:n}),(0,i.jsxs)(h,{justify:"between",align:"start",gap:4,children:[(0,i.jsxs)(m,{style:{flex:1},children:[(0,i.jsx)(R,{level:1,style:{marginBottom:r?t.spacing["2"]:0},children:e}),r&&(0,i.jsx)(x,{size:"base",color:"secondary",children:r})]}),o&&(0,i.jsx)(m,{style:{flexShrink:0},children:o})]})]})}var{useToken:e3}=o.theme;function e4({title:e,description:r,icon:n,breadcrumbs:o,actions:t,tabs:l,onBack:a,children:s}){let{token:c}=e3(),d=!!l;return(0,i.jsxs)("div",{style:{marginBottom:24*!d},children:[(a||o&&o.length>0)&&(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:c.marginXS,marginBottom:c.marginXS},children:[a&&(0,i.jsx)(M,{variant:"text",size:"small",icon:(0,i.jsx)(_,{name:"ArrowLeftOutlined"}),onClick:a,style:{padding:"0 4px"}}),o&&o.length>0&&(0,i.jsx)(eX,{items:o.map(e=>({title:e.title,...e.href?{href:e.href}:{}}))})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:c.marginSM},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:c.marginSM,minWidth:0},children:[n&&(0,i.jsx)("span",{style:{fontSize:24,color:c.colorPrimary,flexShrink:0,display:"flex",alignItems:"center"},children:n}),(0,i.jsxs)("div",{style:{minWidth:0},children:["string"==typeof e?(0,i.jsx)("h2",{style:{margin:0,fontSize:c.fontSizeHeading3,fontWeight:c.fontWeightStrong,color:c.colorTextHeading,lineHeight:1.3},children:e}):e,r&&(0,i.jsx)("div",{style:{marginTop:4},children:"string"==typeof r?(0,i.jsx)(x,{color:"secondary",size:"sm",children:r}):r})]})]}),t&&(0,i.jsx)("div",{style:{display:"flex",alignItems:"center",gap:c.marginXS,flexShrink:0},children:t})]}),s&&(0,i.jsx)("div",{style:{marginTop:c.marginSM},children:s}),d&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k,{style:{marginBottom:0}}),l]})]})}function e5({children:e,gap:r=24,style:n,...o}){return(0,i.jsx)("div",{style:{marginBottom:r,...n},...o,children:e})}function e7({variant:e="info",title:r,message:n,description:t,showIcon:l,closable:a,onClose:s,action:c,icon:d,className:u,style:g}){return(0,i.jsx)(o.Alert,{type:e,message:r||n,description:r?t||n:t,showIcon:l,closable:a,onClose:s,action:c,icon:d,className:u,style:g})}var{useToken:e8}=o.theme;function e9({icon:e,title:r,description:n,action:l,children:a,useDefaultImage:s,image:c,className:d,style:u}){let{token:g}=e8(),f=a??l;if(s||void 0!==c)return(0,i.jsx)(o.Empty,{description:n,image:c,className:d,style:u,children:f});let p={padding:t.spacing["8"],textAlign:"center",...u};return(0,i.jsx)(m,{className:d,style:p,children:(0,i.jsxs)(h,{direction:"column",align:"center",gap:3,children:[e&&(0,i.jsx)(m,{style:{fontSize:"48px",color:g.colorTextSecondary},children:e}),r&&(0,i.jsx)(x,{size:"lg",weight:"semibold",children:r}),n&&(0,i.jsx)(x,{size:"base",color:"secondary",children:n}),f&&(0,i.jsx)(m,{mt:2,children:f})]})})}e9.PRESENTED_IMAGE_SIMPLE=o.Empty.PRESENTED_IMAGE_SIMPLE,e9.PRESENTED_IMAGE_DEFAULT=o.Empty.PRESENTED_IMAGE_DEFAULT;var{useToken:re}=o.theme;function rr({icon:e,title:r="Something went wrong",description:n,details:o,showRetry:l=!1,retryText:a="Try again",onRetry:s,action:c,className:d,style:u}){let{token:g}=re(),f={padding:t.spacing["8"],textAlign:"center",...u};return(0,i.jsx)(m,{className:d,style:f,children:(0,i.jsxs)(h,{direction:"column",align:"center",gap:3,children:[e&&(0,i.jsx)(m,{style:{fontSize:"48px",color:g.colorError},children:e}),(0,i.jsx)(x,{size:"lg",weight:"semibold",color:"error",children:r}),n&&(0,i.jsx)(x,{size:"base",color:"secondary",children:n}),o&&(0,i.jsx)(m,{p:3,style:{backgroundColor:g.colorErrorBg,borderRadius:g.borderRadius,maxWidth:"600px",width:"100%"},children:(0,i.jsx)(x,{size:"sm",as:"pre",style:{margin:0,textAlign:"left",whiteSpace:"pre-wrap"},children:o})}),(l||c)&&(0,i.jsx)(m,{mt:2,children:c||(0,i.jsx)(M,{variant:"primary",onClick:s,children:a})})]})})}function rn({loading:e=!0,children:r,avatar:n,avatarShape:t="circle",lines:l=3,title:a=!0,active:s=!0,className:c,style:d}){return(0,i.jsx)(o.Skeleton,{loading:e,avatar:!!n&&{shape:t},paragraph:{rows:l},title:a,active:s,className:c,style:d,children:r})}function ro(e){return(0,i.jsx)(o.Skeleton.Button,{...e})}function rt(e){return(0,i.jsx)(o.Skeleton.Input,{...e})}function ri(e){return(0,i.jsx)(o.Skeleton.Image,{...e})}function rl(e){return(0,i.jsx)(o.Skeleton.Node,{...e})}function ra({width:e="100%",height:r="1em",gap:n=6,className:t,style:l}){let a=Array.isArray(e)?e:[e];return(0,i.jsx)("span",{className:t,style:{display:"inline-flex",flexDirection:"column",gap:n,...l},children:a.map((e,n)=>(0,i.jsx)("span",{style:{display:"inline-block",width:e,height:r,overflow:"hidden",borderRadius:4,flexShrink:0},children:(0,i.jsx)(o.Skeleton.Input,{active:!0,size:"small",style:{width:"100%",minWidth:"unset",height:"100%",display:"block"}})},n))})}function rs(e){return(0,i.jsx)(o.Spin,{...e})}function rc(e){return(0,i.jsx)(o.Result,{...e})}var rd=o.message;function ru(){return o.message.useMessage()}var rg=o.notification;function rf(){return o.notification.useNotification()}function rp({open:e,title:r,children:n,width:t="default",closable:l=!0,maskClosable:a=!0,footer:s,okText:c,cancelText:d,confirmLoading:u,onOk:g,onCancel:f,onClose:p,className:x,style:m}){let h={small:416,default:520,large:800,full:window.innerWidth-64},y="number"==typeof t?t:h[t];return(0,i.jsx)(o.Modal,{open:e,title:r,width:y,closable:l,maskClosable:a,footer:s,okText:c,cancelText:d,confirmLoading:u,onOk:g,onCancel:f||p,className:x,style:m,children:n})}var rx=o.Modal.confirm,rm=o.Modal.info,rh=o.Modal.success,ry=o.Modal.error,rj=o.Modal.warning;function rI({title:e,children:r,placement:n="top",arrow:t=!0,trigger:l="hover",open:a,className:s}){return(0,i.jsx)(o.Tooltip,{title:e,placement:n,arrow:t,trigger:l,open:a,className:s,children:r})}function rb(e){return(0,i.jsx)(o.Drawer,{...e})}function rS(e){return(0,i.jsx)(o.Popconfirm,{...e})}function rv(e){return(0,i.jsx)(o.Popover,{...e})}var{useToken:rU}=o.theme;function rT({content:e,className:r,style:n}){let o,{token:t}=rU(),l={padding:t.padding,backgroundColor:t.colorBgContainer,borderRadius:t.borderRadius,border:`1px solid ${t.colorBorder}`,lineHeight:1.6,...n},a={fontFamily:t.fontFamily,fontSize:t.fontSize,color:t.colorText};return(0,i.jsx)(m,{className:r,style:l,children:(0,i.jsx)("div",{style:a,dangerouslySetInnerHTML:{__html:(o=(o=(o=(o=(o=(o=(o=e.replace(/^### (.*$)/gim,"<h3>$1</h3>")).replace(/^## (.*$)/gim,"<h2>$1</h2>")).replace(/^# (.*$)/gim,"<h1>$1</h1>")).replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>")).replace(/\*(.*?)\*/g,"<em>$1</em>")).replace(/`(.*?)`/g,"<code>$1</code>")).replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2">$1</a>')).replace(/\n/g,"<br />")}})})}var{useToken:rk}=o.theme;function rC({data:e,collapsed:r=!1,indent:n=2,showLineNumbers:o=!1,className:t,style:a}){let{token:s}=rk(),c=l.useMemo(()=>{try{return JSON.stringify(e,null,n)}catch(e){return`Error: ${e instanceof Error?e.message:"Invalid JSON"}`}},[e,n]),d=c.split("\n"),u={backgroundColor:s.colorBgContainer,borderRadius:s.borderRadius,border:`1px solid ${s.colorBorder}`,overflow:"auto",maxHeight:"600px",...a},g={display:"block",fontFamily:'Consolas, Monaco, "Courier New", monospace',fontSize:"13px",lineHeight:"1.6",padding:s.padding,margin:0,whiteSpace:"pre",color:s.colorText},f={display:"inline-block",width:"40px",color:s.colorTextSecondary,userSelect:"none",textAlign:"right",marginRight:s.marginSM},p=rw(c,s);return(0,i.jsx)(m,{className:t,style:u,children:(0,i.jsx)("pre",{style:g,children:o?d.map((e,r)=>(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{style:f,children:r+1}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:rw(e,s)}})]},r)):(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:p}})})})}function rw(e,r){return(e=(e=(e=(e=e.replace(/"([^"]+)":/g,`<span style="color: ${r.colorPrimary}">"$1"</span>:`)).replace(/: "([^"]*)"/g,`: <span style="color: ${r.colorSuccess}">"$1"</span>`)).replace(/: (\d+)/g,`: <span style="color: ${r.colorWarning}">$1</span>`)).replace(/: (true|false)/g,`: <span style="color: ${r.colorInfo}">$1</span>`)).replace(/: (null)/g,`: <span style="color: ${r.colorTextSecondary}">$1</span>`)}var rB={add:{bg:"rgba(22, 163, 74, 0.12)",border:"var(--success, #16a34a)",color:"var(--success, #16a34a)"},remove:{bg:"rgba(220, 38, 38, 0.12)",border:"var(--error, #dc2626)",color:"var(--error, #dc2626)"},header:{bg:"var(--bg-tertiary, rgba(0,0,0,0.04))",border:"transparent",color:"var(--text-secondary, #6b7280)"},context:{bg:"transparent",border:"transparent",color:"inherit"}};function rM({diff:e,showLineNumbers:r=!0,maxHeight:n=500,className:o,style:t}){if(!e||""===e.trim())return(0,i.jsx)("div",{style:{padding:16,textAlign:"center"},children:(0,i.jsx)(y,{type:"secondary",children:"No changes to display"})});let l=e.split("\n");return(0,i.jsx)("div",{className:o,style:{background:"var(--bg-tertiary, rgba(0,0,0,0.02))",border:"1px solid var(--border-primary, rgba(0,0,0,0.1))",borderRadius:"var(--radius-md, 6px)",fontFamily:'Monaco, Menlo, "Courier New", monospace',fontSize:13,lineHeight:1.5,maxHeight:n,overflow:"auto",...t},children:l.map((e,n)=>{let o=e.startsWith("@@")?"header":e.startsWith("+")?"add":e.startsWith("-")?"remove":"context",t=rB[o],l="add"===o||"remove"===o;return(0,i.jsxs)("div",{style:{display:"flex",background:t.bg,borderLeft:l?`3px solid ${t.border}`:"none",paddingLeft:l?8:11},children:[r&&(0,i.jsx)("span",{style:{minWidth:44,textAlign:"right",paddingRight:12,userSelect:"none",color:"var(--text-secondary, #6c757d)",fontSize:12},children:n+1}),(0,i.jsx)("pre",{style:{margin:0,padding:0,color:t.color,whiteSpace:"pre",flex:1},children:e})]},n)})})}}}]);
@@ -1,2 +1 @@
1
- "use strict";(self.webpackChunk_kb_labs_qa_entry=self.webpackChunk_kb_labs_qa_entry||[]).push([["165"],{1597(e,t,i){var r=i(2913);function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal"),c=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,i){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:f,key:null==r?null:""+r,children:e,containerInfo:t,implementation:i}}(e,t,null,i)},t.flushSync=function(e){var t=c.T,i=s.p;try{if(c.T=null,s.p=2,e)return e()}finally{c.T=t,s.p=i,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var i=t.as,r=y(i,t.crossOrigin),n="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===i?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:n,fetchPriority:o}):"script"===i&&s.d.X(e,{crossOrigin:r,integrity:n,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var i=y(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var i=t.as,r=y(i,t.crossOrigin);s.d.L(e,i,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var i=y(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,i){return c.H.useFormState(e,t,i)},t.useFormStatus=function(){return c.H.useHostTransitionStatus()},t.version="19.2.5"},1297(e,t,i){!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=i(1597)}}]);
2
- //# sourceMappingURL=165.js.map
1
+ "use strict";(self.rspackChunk_kb_labs_qa_entry=self.rspackChunk_kb_labs_qa_entry||[]).push([[165],{1597(e,t,r){var i=r(2913);function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal"),c=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:f,key:null==i?null:""+i,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.flushSync=function(e){var t=c.T,r=s.p;try{if(c.T=null,s.p=2,e)return e()}finally{c.T=t,s.p=r,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin),n="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:n,fetchPriority:o}):"script"===r&&s.d.X(e,{crossOrigin:i,integrity:n,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=y(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin);s.d.L(e,r,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=y(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,r){return c.H.useFormState(e,t,r)},t.useFormStatus=function(){return c.H.useHostTransitionStatus()},t.version="19.2.5"},1297(e,t,r){!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(1597)}}]);
@@ -1,2 +1 @@
1
- "use strict";(self.webpackChunk_kb_labs_qa_entry=self.webpackChunk_kb_labs_qa_entry||[]).push([["326"],{6026(e,r){var n=Symbol.for("react.transitional.element");function t(e,r,t){var a=null;if(void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),"key"in r)for(var s in t={},r)"key"!==s&&(t[s]=r[s]);else t=r;return{$$typeof:n,type:e,key:a,ref:void 0!==(r=t.ref)?r:null,props:t}}r.Fragment=Symbol.for("react.fragment"),r.jsx=t,r.jsxs=t},4552(e,r,n){e.exports=n(6026)}}]);
2
- //# sourceMappingURL=326.js.map
1
+ "use strict";(self.rspackChunk_kb_labs_qa_entry=self.rspackChunk_kb_labs_qa_entry||[]).push([[326],{6026(e,r){var n=Symbol.for("react.transitional.element");function s(e,r,s){var t=null;if(void 0!==s&&(t=""+s),void 0!==r.key&&(t=""+r.key),"key"in r)for(var a in s={},r)"key"!==a&&(s[a]=r[a]);else s=r;return{$$typeof:n,type:e,key:t,ref:void 0!==(r=s.ref)?r:null,props:s}}r.Fragment=Symbol.for("react.fragment"),r.jsx=s,r.jsxs=s},4552(e,r,n){e.exports=n(6026)}}]);
@@ -1,2 +1 @@
1
- "use strict";(self.webpackChunk_kb_labs_qa_entry=self.webpackChunk_kb_labs_qa_entry||[]).push([["370"],{3481(r,e,o){o.r(e),o.d(e,{PageContextProvider:()=>d,getAntDesignComponents:()=>I,getAntDesignTokens:()=>P,useData:()=>b,useEventBus:()=>y,useInfiniteData:()=>f,useMutateData:()=>m,useNavigation:()=>E,useNotification:()=>H,usePage:()=>u,usePageContext:()=>g,usePermissions:()=>F,useSSE:()=>B,useTheme:()=>A,useWebSocket:()=>k});var t=o(2913),a=o(4552),c=o(5997),n=o(101),i=o(6831),l=o(296),v=o(5783),s=(0,t.createContext)(null);function d({children:r,value:e}){return(0,a.jsx)(s.Provider,{value:e,children:r})}function g(){let r=(0,t.useContext)(s);if(!r)throw Error("usePage() must be used inside a PageContextProvider (are you inside a Studio page?)");return r}function u(){return g()}function y(){let r=(0,c.useEventBusContext)(),{pluginId:e,pageId:o}=g(),a=(0,t.useRef)([]);return(0,t.useEffect)(()=>()=>{for(let r of a.current)r();a.current=[]},[]),{publish:(0,t.useCallback)((t,a)=>{r.publish(t,a,e,o)},[r,e,o]),subscribe:(0,t.useCallback)((t,c)=>{let n=r.subscribe(t,c,e,o);return a.current.push(n),n},[r,e,o])}}function b(r,e){let o=function(r,e){if(!e||0===Object.keys(e).length)return r;let o=new URLSearchParams;for(let[r,t]of Object.entries(e))null!=t&&o.set(r,String(t));let t=r.includes("?")?"&":"?";return`${r}${t}${o.toString()}`}(r,e?.params),t=(0,n.useQuery)({queryKey:["studio-data",o],queryFn:()=>p(o),enabled:e?.enabled,staleTime:e?.staleTime,refetchInterval:e?.pollingMs||void 0,select:e?.select});return{data:t.data,isLoading:t.isLoading,isError:t.isError,error:t.error,refetch:t.refetch,isFetching:t.isFetching}}function m(r,e="POST"){let o="string"==typeof e?{method:e}:e,t=o.method??"POST",a=o.mapBody,c=(0,n.useMutation)({mutationFn:async e=>{let o="function"==typeof r?r(e):r,c=a?a(e):e,n=null!=c,i=await fetch(`${x()}/api${o}`,{method:t,headers:n?{"Content-Type":"application/json"}:{},body:n?JSON.stringify(c):void 0});if(!i.ok)throw Error(`${t} ${o} failed: ${i.status} ${i.statusText}`);let l=await i.json();return l&&"object"==typeof l&&"ok"in l&&"data"in l?l.data:l}});return{mutate:c.mutate,mutateAsync:c.mutateAsync,isLoading:c.isPending,isError:c.isError,error:c.error,data:c.data}}function x(){if("u">typeof window){let r=window.__KB_STUDIO_CONFIG__,e=r?.KB_API_BASE_URL;if(e)try{return new URL(e).origin}catch{}}return""}async function p(r){let e=await fetch(`${x()}/api${r}`);if(!e.ok)throw Error(`GET ${r} failed: ${e.status} ${e.statusText}`);let o=await e.json();return o&&"object"==typeof o&&"ok"in o&&"data"in o?o.data:o}function B(r,e={}){let{events:o="message",doneEvent:a,enabled:c=!0,reconnect:n=!1,maxReconnects:i=5,reconnectIntervalMs:l=2e3,maxEvents:v=0,parse:s=S,params:d,onEvent:g,onOpen:u,onError:y,onDone:b}=e,[m,x]=(0,t.useState)([]),[p,f]=(0,t.useState)(void 0),[h,k]=(0,t.useState)(null),[C,T]=(0,t.useState)(!1),[F,E]=(0,t.useState)(0),H=(0,t.useRef)(null),w=(0,t.useRef)(null),A=(0,t.useRef)(!1),P=(0,t.useRef)(g),I=(0,t.useRef)(u),D=(0,t.useRef)(y),L=(0,t.useRef)(b),R=(0,t.useRef)(s);P.current=g,I.current=u,D.current=y,L.current=b,R.current=s;let W=JSON.stringify(o),$=JSON.stringify(d),O=(0,t.useCallback)(()=>{A.current=!0,w.current&&(clearTimeout(w.current),w.current=null),H.current&&(H.current.close(),H.current=null),T(!1)},[]),_=(0,t.useCallback)(()=>{x([]),f(void 0)},[]);return(0,t.useEffect)(()=>{if(!r||!c){H.current&&(H.current.close(),H.current=null),T(!1);return}A.current=!1,x([]),f(void 0),k(null),E(0);let e=0;return!function t(){let c=new EventSource(function(r,e){let o=r.startsWith("http")?r:`/api${r}`;if(!e||0===Object.keys(e).length)return o;let t=new URLSearchParams;for(let[r,o]of Object.entries(e))null!=o&&t.set(r,String(o));let a=o.includes("?")?"&":"?";return`${o}${a}${t.toString()}`}(r,d));H.current=c;let s=Array.isArray(o)?o:[o],g=r=>{try{let e=R.current(r.data);f(e),x(r=>{let o=[...r,e];return v>0&&o.length>v?o.slice(-v):o}),P.current?.(e)}catch(e){let r=e instanceof Error?e:Error("Failed to parse SSE event data");k(r),D.current?.(r)}};for(let r of s)c.addEventListener(r,g);a&&c.addEventListener(a,()=>{c.close(),H.current=null,T(!1),L.current?.()}),c.onopen=()=>{e=0,E(0),T(!0),k(null),I.current?.()},c.onerror=()=>{if(c.close(),H.current=null,T(!1),A.current)return;let r=Error("SSE connection lost");k(r),D.current?.(r),n&&e<i&&(E(++e),w.current=setTimeout(t,l*Math.pow(2,e-1)))}}(),()=>{A.current=!0,w.current&&(clearTimeout(w.current),w.current=null),H.current&&(H.current.close(),H.current=null)}},[r,c,a,n,i,l,v,W,$]),{events:m,latest:p,isConnected:C,error:h,close:O,clear:_,reconnectCount:F}}function S(r){return JSON.parse(r)}function f(r,e){let{getNextCursor:o,params:t,enabled:a,staleTime:c,cursorParam:i="cursor",initialCursor:l}=e,v=(0,n.useInfiniteQuery)({queryKey:["studio-infinite",r,t],queryFn:async({pageParam:e})=>h(function(r,e,o,t){let a=new URLSearchParams;if(e)for(let[r,o]of Object.entries(e))null!=o&&a.set(r,String(o));null!=t&&a.set(o,String(t));let c=a.toString(),n=r.startsWith("http")?r:`/api${r}`;return c?`${n}?${c}`:n}(r,t,i,e)),initialPageParam:l,getNextPageParam:o,enabled:a,staleTime:c}),s=v.data?.pages??[],d=s.flatMap(r=>Array.isArray(r)?r:[r]);return{pages:s,data:d,isLoading:v.isLoading,isFetching:v.isFetching,isFetchingNextPage:v.isFetchingNextPage,hasNextPage:v.hasNextPage,fetchNextPage:v.fetchNextPage,error:v.error,isError:v.isError,refetch:v.refetch}}async function h(r){let e=await fetch(r);if(!e.ok)throw Error(`GET ${r} failed: ${e.status} ${e.statusText}`);let o=await e.json();return o&&"object"==typeof o&&"ok"in o&&"data"in o?o.data:o}function k(r,e={}){let{enabled:o=!0,reconnect:a=!1,maxReconnects:c=5,reconnectIntervalMs:n=2e3,protocols:i,parse:l=C,serialize:v=T,maxMessages:s=100,onMessage:d,onOpen:g,onClose:u,onError:y}=e,[b,m]=(0,t.useState)([]),[x,p]=(0,t.useState)(void 0),[B,S]=(0,t.useState)("disconnected"),[f,h]=(0,t.useState)(null),[F,E]=(0,t.useState)(0),H=(0,t.useRef)(null),w=(0,t.useRef)(null),A=(0,t.useRef)(!1),P=(0,t.useRef)(d),I=(0,t.useRef)(g),D=(0,t.useRef)(u),L=(0,t.useRef)(y),R=(0,t.useRef)(l),W=(0,t.useRef)(v);P.current=d,I.current=g,D.current=u,L.current=y,R.current=l,W.current=v;let $=(0,t.useCallback)(()=>{w.current&&(clearTimeout(w.current),w.current=null),H.current&&(H.current.close(),H.current=null)},[]),O=(0,t.useCallback)(()=>{if(!r)return;$(),A.current=!1,S("connecting"),h(null);let e=0;!function o(){let t=function(r){if(r.startsWith("ws://")||r.startsWith("wss://"))return r;let e=r.startsWith("/")?r:`/${r}`;if("u">typeof window){let r=window.__KB_STUDIO_CONFIG__,o=r?.KB_API_BASE_URL;if(o)try{let r=new URL(o).origin,t=r.startsWith("https")?"wss:":"ws:";return`${t}//${new URL(r).host}${e}`}catch{}}let o="https:"===window.location.protocol?"wss:":"ws:";return`${o}//${window.location.host}${e}`}(r),l=i?new WebSocket(t,i):new WebSocket(t);H.current=l,l.onopen=r=>{e=0,E(0),S("connected"),h(null),I.current?.(r)},l.onmessage=r=>{try{let e=R.current(r.data);p(e),m(r=>{let o=[...r,e];return s>0&&o.length>s?o.slice(-s):o}),P.current?.(e)}catch{}},l.onclose=r=>{H.current=null,S("disconnected"),D.current?.(r),!A.current&&a&&e<c&&1e3!==r.code&&(E(++e),w.current=setTimeout(o,n*Math.pow(2,e-1)))},l.onerror=r=>{S("error"),h(r),L.current?.(r)}}()},[r,i,a,c,n,s,$]),_=(0,t.useCallback)((r,e)=>{A.current=!0,w.current&&(clearTimeout(w.current),w.current=null),H.current&&(H.current.close(r,e),H.current=null),S("disconnected")},[]),M=(0,t.useCallback)(r=>{H.current?.readyState===WebSocket.OPEN&&H.current.send(W.current(r))},[]),N=(0,t.useCallback)(r=>{H.current?.readyState===WebSocket.OPEN&&H.current.send(r)},[]),z=(0,t.useCallback)(()=>{m([]),p(void 0)},[]);return(0,t.useEffect)(()=>{if(!r||!o){$(),S("disconnected");return}return m([]),p(void 0),O(),()=>{A.current=!0,$()}},[r,o]),{send:M,sendRaw:N,messages:b,latest:x,status:B,isConnected:"connected"===B,error:f,connect:O,disconnect:_,clear:z,reconnectCount:F}}function C(r){return JSON.parse(r)}function T(r){return JSON.stringify(r)}function F(){let{permissions:r}=g();return{hasPermission:(0,t.useCallback)(e=>r.includes(e),[r]),permissions:r}}function E(){let r=(0,i.useNavigate)(),e=(0,i.useLocation)(),o=(0,t.useCallback)(e=>r(e),[r]),a=(0,t.useCallback)(()=>r(-1),[r]),c=(0,t.useCallback)(r=>window.open(r,"_blank","noopener"),[]);return{navigate:o,currentPath:e.pathname,goBack:a,openExternal:c}}function H(){let r=(0,t.useCallback)(r=>{l.notification[r.type]({message:r.message,description:r.description,duration:r.duration??4.5})},[]),e=(0,t.useCallback)((e,o)=>r({type:"success",message:e,description:o}),[r]),o=(0,t.useCallback)((e,o)=>r({type:"error",message:e,description:o}),[r]),a=(0,t.useCallback)((e,o)=>r({type:"warning",message:e,description:o}),[r]),c=(0,t.useCallback)((e,o)=>r({type:"info",message:e,description:o}),[r]);return{notify:r,success:e,error:o,warning:a,info:c}}var w={bgPrimary:v.lightSemanticColors["bg-primary"],bgSecondary:v.lightSemanticColors["bg-secondary"],bgTertiary:v.lightSemanticColors["bg-tertiary"],textPrimary:v.lightSemanticColors["text-primary"],textSecondary:v.lightSemanticColors["text-secondary"],textTertiary:v.lightSemanticColors["text-tertiary"],textInverse:v.lightSemanticColors["text-inverse"],borderPrimary:v.lightSemanticColors["border-primary"],borderSecondary:v.lightSemanticColors["border-secondary"],link:v.lightSemanticColors.link,linkHover:v.lightSemanticColors["link-hover"],accentSubtle:v.lightSemanticColors["accent-subtle"],success:v.lightSemanticColors.success,warning:v.lightSemanticColors.warning,error:v.lightSemanticColors.error,info:v.lightSemanticColors.info,disabled:v.lightSemanticColors.disabled,shadow:v.lightSemanticColors.shadow};function A(){let{token:r}=l.theme.useToken();return{mode:"light",antdToken:r,semantic:w,tokens:{colors:v.colors,spacing:v.spacing,typography:v.typography,radius:v.radius,shadows:v.shadows}}}function P(){return{colorPrimary:"var(--link, #0c66ff)",colorPrimaryHover:"var(--link-hover, #0050cc)",colorPrimaryActive:"var(--link-hover, #0050cc)",colorPrimaryBg:"var(--accent-subtle, #dbeafe)",colorPrimaryBgHover:"var(--accent-subtle, #dbeafe)",colorPrimaryBorder:"var(--link, #0c66ff)",colorPrimaryBorderHover:"var(--link-hover, #0050cc)",colorPrimaryText:"var(--link, #0c66ff)",colorPrimaryTextHover:"var(--link-hover, #0050cc)",colorPrimaryTextActive:"var(--link-hover, #0050cc)",colorSuccess:"var(--success, #16A34A)",colorSuccessHover:"var(--success, #16A34A)",colorSuccessActive:"var(--success, #16A34A)",colorSuccessBg:"var(--bg-tertiary, #F3F4F6)",colorSuccessBgHover:"var(--bg-tertiary, #F3F4F6)",colorSuccessBorder:"var(--success, #16A34A)",colorSuccessBorderHover:"var(--success, #16A34A)",colorSuccessText:"var(--success, #16A34A)",colorSuccessTextHover:"var(--success, #16A34A)",colorSuccessTextActive:"var(--success, #16A34A)",colorWarning:"var(--warning, #F59E0B)",colorWarningHover:"var(--warning, #F59E0B)",colorWarningActive:"var(--warning, #F59E0B)",colorWarningBg:"var(--bg-tertiary, #F3F4F6)",colorWarningBgHover:"var(--bg-tertiary, #F3F4F6)",colorWarningBorder:"var(--warning, #F59E0B)",colorWarningBorderHover:"var(--warning, #F59E0B)",colorWarningText:"var(--warning, #F59E0B)",colorWarningTextHover:"var(--warning, #F59E0B)",colorWarningTextActive:"var(--warning, #F59E0B)",colorWarningOutline:"rgba(245, 158, 11, 0.2)",colorError:"var(--error, #DC2626)",colorErrorHover:"var(--error, #DC2626)",colorErrorActive:"var(--error, #DC2626)",colorErrorBg:"var(--bg-tertiary, #F3F4F6)",colorErrorBgHover:"var(--bg-tertiary, #F3F4F6)",colorErrorBorder:"var(--error, #DC2626)",colorErrorBorderHover:"var(--error, #DC2626)",colorErrorText:"var(--error, #DC2626)",colorErrorTextHover:"var(--error, #DC2626)",colorErrorTextActive:"var(--error, #DC2626)",colorErrorOutline:"rgba(220, 38, 38, 0.2)",colorInfo:"var(--info, #0EA5E9)",colorInfoHover:"var(--info, #0EA5E9)",colorInfoActive:"var(--info, #0EA5E9)",colorInfoBg:"var(--bg-tertiary, #F3F4F6)",colorInfoBgHover:"var(--bg-tertiary, #F3F4F6)",colorInfoBorder:"var(--info, #0EA5E9)",colorInfoBorderHover:"var(--info, #0EA5E9)",colorInfoText:"var(--info, #0EA5E9)",colorInfoTextHover:"var(--info, #0EA5E9)",colorInfoTextActive:"var(--info, #0EA5E9)",colorBgContainer:"var(--bg-secondary, #FFFFFF)",colorBgBase:"var(--bg-primary, #F9FAFB)",colorBgElevated:"var(--bg-secondary, #FFFFFF)",colorBgLayout:"var(--bg-primary, #F9FAFB)",colorBgSpotlight:"var(--bg-tertiary, #F3F4F6)",colorBgMask:"rgba(0, 0, 0, 0.45)",colorBgTextHover:"var(--bg-hover, #F3F4F6)",colorBgTextActive:"var(--bg-hover, #F3F4F6)",colorBgContainerDisabled:"var(--bg-tertiary, #F3F4F6)",colorText:"var(--text-primary, #111827)",colorTextBase:"var(--text-primary, #111827)",colorTextSecondary:"var(--text-secondary, #6B7280)",colorTextTertiary:"var(--text-tertiary, #6B7280)",colorTextQuaternary:"var(--text-tertiary, #6B7280)",colorTextDisabled:"var(--disabled, #9CA3AF)",colorTextHeading:"var(--text-primary, #111827)",colorTextLabel:"var(--text-secondary, #6B7280)",colorTextDescription:"var(--text-secondary, #6B7280)",colorTextPlaceholder:"var(--text-tertiary, #6B7280)",colorTextLightSolid:"var(--text-inverse, #FFFFFF)",colorBorder:"var(--border-primary, #E5E7EB)",colorBorderSecondary:"var(--border-secondary, #D4D4D4)",colorBorderBg:"var(--bg-secondary, #FFFFFF)",colorSplit:"var(--border-primary, #E5E7EB)",colorFill:"var(--bg-tertiary, #F3F4F6)",colorFillSecondary:"var(--bg-tertiary, #F3F4F6)",colorFillTertiary:"var(--bg-primary, #F9FAFB)",colorFillQuaternary:"var(--bg-primary, #F9FAFB)",colorFillContent:"var(--bg-hover, #F3F4F6)",colorFillContentHover:"var(--bg-hover, #F3F4F6)",colorFillAlter:"var(--bg-tertiary, #F3F4F6)",colorWhite:"#FFFFFF",boxShadow:"0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04)",boxShadowSecondary:"0 4px 12px rgba(0,0,0,0.08)",boxShadowTertiary:"0 8px 24px rgba(0,0,0,0.08)",borderRadius:8,borderRadiusLG:12,borderRadiusSM:6,borderRadiusXS:4,borderRadiusOuter:6,controlHeight:36,controlHeightLG:40,controlHeightSM:28,controlHeightXS:22,fontFamily:"var(--font-body, 'Inter', 'Segoe UI', sans-serif)",fontSize:14,fontSizeLG:16,fontSizeSM:12,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,fontWeightStrong:600,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,padding:16,paddingLG:24,paddingSM:12,paddingXS:8,paddingXXS:4,margin:16,marginLG:24,marginSM:12,marginXS:8,marginXXS:4,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",colorLink:"var(--link, #0c66ff)",colorLinkHover:"var(--link-hover, #0050cc)",colorLinkActive:"var(--link-hover, #0050cc)",colorIcon:"var(--text-secondary, #6B7280)",colorIconHover:"var(--text-primary, #111827)",colorHighlight:"var(--link, #0c66ff)",controlOutline:"rgba(12, 102, 255, 0.15)",controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"var(--bg-hover, #F3F4F6)",controlItemBgActive:"var(--accent-subtle, #dbeafe)",controlItemBgActiveHover:"var(--accent-subtle, #dbeafe)",controlItemBgActiveDisabled:"var(--bg-tertiary, #F3F4F6)",controlTmpOutline:"rgba(12, 102, 255, 0.08)",screenXS:480,screenSM:576,screenMD:768,screenLG:992,screenXL:1200,screenXXL:1600}}function I(){return{Table:{headerBg:"var(--bg-tertiary)",headerColor:"var(--text-primary)",borderColor:"var(--border-primary)",colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",rowHoverBg:"var(--bg-hover)",rowSelectedBg:"var(--accent-subtle)",rowSelectedHoverBg:"var(--accent-subtle)",rowExpandedBg:"var(--bg-secondary)",bodySortBg:"var(--bg-tertiary)",headerSortActiveBg:"var(--bg-tertiary)",headerSortHoverBg:"var(--bg-tertiary)",headerFilterHoverBg:"var(--bg-tertiary)",fixedHeaderSortActiveBg:"var(--bg-tertiary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",expandIconBg:"var(--bg-secondary)",footerBg:"var(--bg-tertiary)",footerColor:"var(--text-primary)",selectionColumnWidth:60,stickyScrollBarBg:"var(--bg-tertiary)",stickyScrollBarBorderRadius:4},Tag:{defaultBg:"var(--bg-tertiary)",defaultColor:"var(--text-primary)",colorBorder:"var(--border-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"},Badge:{colorError:"var(--error)",colorSuccess:"var(--success)",colorWarning:"var(--warning)",colorInfo:"var(--info)",colorText:"var(--text-primary)"},Alert:{colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)",colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",colorSuccessBg:"var(--bg-tertiary)",colorErrorBg:"var(--bg-tertiary)",colorWarningBg:"var(--bg-tertiary)",colorInfoBg:"var(--bg-tertiary)",colorSuccessBorder:"var(--success)",colorErrorBorder:"var(--error)",colorWarningBorder:"var(--warning)",colorInfoBorder:"var(--info)"},Card:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBorderSecondary:"var(--border-primary)",headerBg:"var(--bg-secondary)",actionsBg:"var(--bg-tertiary)",extraColor:"var(--text-secondary)"},Descriptions:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorBorder:"var(--border-primary)"},Button:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",colorPrimaryActive:"var(--link-hover)",primaryColor:"var(--text-inverse)",primaryShadow:"0 2px 0 rgba(12, 102, 255, 0.15)",defaultBg:"var(--bg-secondary)",defaultColor:"var(--text-primary)",defaultBorderColor:"var(--border-primary)",defaultShadow:"0 2px 0 rgba(0, 0, 0, 0.015)",defaultHoverBg:"var(--bg-hover)",defaultHoverColor:"var(--text-primary)",defaultHoverBorderColor:"var(--border-secondary)",defaultActiveBg:"var(--bg-hover)",defaultActiveColor:"var(--text-primary)",defaultActiveBorderColor:"var(--border-secondary)",ghostBg:"transparent",defaultGhostColor:"var(--text-primary)",defaultGhostBorderColor:"var(--border-primary)",borderColorDisabled:"var(--border-primary)",colorBgContainerDisabled:"var(--bg-tertiary)",textTextColor:"var(--text-secondary)",textTextHoverColor:"var(--text-primary)",textTextActiveColor:"var(--text-primary)",textHoverBg:"var(--accent-subtle)",linkHoverBg:"transparent",colorLink:"var(--link)",colorLinkHover:"var(--link-hover)",colorLinkActive:"var(--link-hover)",solidTextColor:"var(--text-primary)",dangerColor:"var(--error)",dangerShadow:"0 2px 0 rgba(220, 38, 38, 0.1)",colorErrorBg:"transparent",colorErrorBgHover:"var(--bg-hover)",colorErrorBorder:"var(--error)",colorErrorBorderHover:"var(--error)",colorErrorHover:"var(--error)",colorErrorActive:"var(--error)"},Input:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorTextPlaceholder:"var(--text-tertiary)",hoverBorderColor:"var(--border-secondary)",activeBorderColor:"var(--link)",activeShadow:"0 0 0 3px rgba(12, 102, 255, 0.12)",errorActiveShadow:"0 0 0 2px rgba(220, 38, 38, 0.1)",warningActiveShadow:"0 0 0 2px rgba(245, 158, 11, 0.1)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Select:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",colorTextPlaceholder:"var(--text-tertiary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",optionSelectedBg:"var(--accent-subtle)",optionSelectedColor:"var(--link)",optionActiveBg:"var(--bg-hover)",optionSelectedFontWeight:600,multipleItemBg:"var(--bg-tertiary)",multipleItemBorderColor:"var(--border-primary)",multipleItemColorDisabled:"var(--disabled)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",selectorBg:"var(--bg-secondary)"},Dropdown:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorTextDisabled:"var(--disabled)",controlItemBgHover:"var(--bg-hover)",controlItemBgActive:"var(--accent-subtle)",controlItemBgActiveHover:"var(--accent-subtle)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",colorBgContainer:"var(--bg-secondary)",colorSplit:"var(--border-primary)",paddingBlock:8,controlPaddingHorizontal:12},Menu:{colorText:"var(--text-primary)",colorTextSecondary:"var(--text-secondary)",colorBgContainer:"var(--bg-sidebar)",colorBorder:"var(--border-primary)",colorSplit:"var(--border-primary)",itemColor:"var(--text-primary)",itemBg:"var(--bg-secondary)",itemHoverBg:"var(--bg-hover)",itemHoverColor:"var(--link)",itemSelectedBg:"var(--accent-subtle)",itemSelectedColor:"var(--link)",itemActiveBg:"var(--accent-subtle)",colorActiveBarBorderSize:0,darkItemBg:"var(--bg-secondary)",darkItemColor:"var(--text-primary)",darkItemHoverBg:"var(--bg-hover)",darkItemSelectedBg:"var(--accent-subtle)",darkItemSelectedColor:"var(--link)",darkSubMenuItemBg:"var(--bg-secondary)",subMenuItemBg:"var(--bg-secondary)",popupBg:"var(--bg-secondary)",colorPrimary:"var(--link)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",groupTitleColor:"var(--text-tertiary)",groupTitleFontSize:11,itemBorderRadius:8,subMenuItemBorderRadius:6,itemPaddingInline:12},Tabs:{colorText:"var(--text-secondary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorBorderSecondary:"var(--border-primary)",colorPrimary:"var(--link)",itemHoverColor:"var(--link)",itemSelectedColor:"var(--link)",itemActiveColor:"var(--link)",inkBarColor:"var(--link)"},Modal:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",headerBg:"var(--bg-secondary)",footerBg:"var(--bg-tertiary)",contentBg:"var(--bg-secondary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Drawer:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Popover:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)"},Tooltip:{colorText:"var(--text-primary)",colorBgSpotlight:"var(--bg-secondary)",colorTextLightSolid:"var(--text-primary)"},List:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorSplit:"var(--border-primary)",metaMarginBottom:8,avatarMarginRight:16},Switch:{colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)"},Radio:{colorPrimary:"var(--link)",colorText:"var(--text-primary)",buttonCheckedBg:"var(--link)",buttonCheckedBgDisabled:"var(--disabled)",buttonColor:"var(--text-primary)",buttonSolidCheckedColor:"var(--text-inverse)",buttonSolidCheckedBg:"var(--link)",buttonSolidCheckedHoverBg:"var(--link-hover)",buttonSolidCheckedActiveBg:"var(--link-hover)"},Checkbox:{colorPrimary:"var(--link)",colorText:"var(--text-primary)"},DatePicker:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",colorTextPlaceholder:"var(--text-tertiary)",colorTextDisabled:"var(--disabled)",colorLink:"var(--link)",colorLinkHover:"var(--link-hover)",cellHoverBg:"var(--bg-hover)",cellActiveWithRangeBg:"var(--accent-subtle)",cellBgDisabled:"var(--bg-tertiary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Form:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorError:"var(--error)",colorWarning:"var(--warning)"},Pagination:{colorText:"var(--text-primary)",colorTextDisabled:"var(--disabled)",colorBgContainer:"var(--bg-secondary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",itemBg:"var(--bg-secondary)",itemActiveBg:"var(--link)",itemActiveBgDisabled:"var(--bg-tertiary)",itemInputBg:"var(--bg-secondary)",itemLinkBg:"var(--bg-secondary)",colorBgTextHover:"var(--bg-hover)"},Steps:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",colorPrimary:"var(--link)",colorBorder:"var(--border-primary)"},Breadcrumb:{colorText:"var(--text-secondary)",colorTextDescription:"var(--text-tertiary)",linkColor:"var(--link)",linkHoverColor:"var(--link-hover)",separatorColor:"var(--text-tertiary)"},Progress:{colorText:"var(--text-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",remainingColor:"var(--bg-tertiary)"},Skeleton:{colorFill:"var(--bg-tertiary)",colorFillContent:"var(--bg-hover)"},Spin:{colorPrimary:"var(--link)",colorBgContainer:"var(--bg-secondary)"},Divider:{colorSplit:"var(--border-primary)",colorText:"var(--text-secondary)"},Layout:{headerBg:"var(--bg-secondary)",bodyBg:"var(--bg-primary)",triggerBg:"var(--bg-tertiary)",colorText:"var(--text-primary)"},Collapse:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorBgContainer:"var(--bg-secondary)",headerBg:"var(--bg-tertiary)"},Carousel:{colorBgContainer:"var(--bg-secondary)",dotActiveWidth:24},Anchor:{colorPrimary:"var(--link)",colorText:"var(--text-secondary)",linkPaddingBlock:4},Timeline:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",tailColor:"var(--border-primary)",dotBg:"var(--bg-secondary)"},Transfer:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",controlItemBgActive:"var(--bg-hover)"},Tree:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorPrimary:"var(--link)",nodeHoverBg:"var(--bg-hover)",nodeSelectedBg:"var(--accent-subtle)"},TreeSelect:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",nodeHoverBg:"var(--bg-hover)",nodeSelectedBg:"var(--accent-subtle)"},Cascader:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",optionSelectedBg:"var(--bg-hover)"},Segmented:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorBgLayout:"var(--bg-tertiary)",itemSelectedBg:"var(--bg-secondary)",itemSelectedColor:"var(--link)",itemHoverBg:"var(--bg-hover)"},Rate:{colorText:"var(--warning)"},Slider:{colorPrimary:"var(--link)",colorPrimaryBorder:"var(--link)",trackBg:"var(--bg-tertiary)",trackHoverBg:"var(--bg-hover)"},Upload:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",colorBorder:"var(--border-primary)",colorFillAlter:"var(--bg-tertiary)",colorPrimary:"var(--link)"},Calendar:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",itemActiveBg:"var(--accent-subtle)"},Image:{colorTextLightSolid:"var(--text-primary)",colorBgMask:"rgba(0, 0, 0, 0.45)"},Statistic:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)"},Result:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorTextDescription:"var(--text-secondary)"},Empty:{colorText:"var(--text-secondary)",colorTextDescription:"var(--text-tertiary)"},Message:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",contentBg:"var(--bg-secondary)",contentPadding:"10px 16px",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"},Notification:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"}}}v.darkSemanticColors["bg-primary"],v.darkSemanticColors["bg-secondary"],v.darkSemanticColors["bg-tertiary"],v.darkSemanticColors["text-primary"],v.darkSemanticColors["text-secondary"],v.darkSemanticColors["text-tertiary"],v.darkSemanticColors["text-inverse"],v.darkSemanticColors["border-primary"],v.darkSemanticColors["border-secondary"],v.darkSemanticColors.link,v.darkSemanticColors["link-hover"],v.darkSemanticColors["accent-subtle"],v.darkSemanticColors.success,v.darkSemanticColors.warning,v.darkSemanticColors.error,v.darkSemanticColors.info,v.darkSemanticColors.disabled,v.darkSemanticColors.shadow}}]);
2
- //# sourceMappingURL=370.js.map
1
+ "use strict";(self.rspackChunk_kb_labs_qa_entry=self.rspackChunk_kb_labs_qa_entry||[]).push([[370],{3481(r,e,o){o.r(e),o.d(e,{PageContextProvider:()=>d,getAntDesignComponents:()=>I,getAntDesignTokens:()=>P,useData:()=>b,useEventBus:()=>y,useInfiniteData:()=>f,useMutateData:()=>m,useNavigation:()=>E,useNotification:()=>H,usePage:()=>u,usePageContext:()=>g,usePermissions:()=>F,useSSE:()=>B,useTheme:()=>w,useWebSocket:()=>k});var t=o(2913),a=o(4552),c=o(5997),n=o(101),i=o(6831),l=o(296),v=o(5783),s=(0,t.createContext)(null);function d({children:r,value:e}){return(0,a.jsx)(s.Provider,{value:e,children:r})}function g(){let r=(0,t.useContext)(s);if(!r)throw Error("usePage() must be used inside a PageContextProvider (are you inside a Studio page?)");return r}function u(){return g()}function y(){let r=(0,c.useEventBusContext)(),{pluginId:e,pageId:o}=g(),a=(0,t.useRef)([]);return(0,t.useEffect)(()=>()=>{for(let r of a.current)r();a.current=[]},[]),{publish:(0,t.useCallback)((t,a)=>{r.publish(t,a,e,o)},[r,e,o]),subscribe:(0,t.useCallback)((t,c)=>{let n=r.subscribe(t,c,e,o);return a.current.push(n),n},[r,e,o])}}function b(r,e){let o=function(r,e){if(!e||0===Object.keys(e).length)return r;let o=new URLSearchParams;for(let[r,t]of Object.entries(e))null!=t&&o.set(r,String(t));let t=r.includes("?")?"&":"?";return`${r}${t}${o.toString()}`}(r,e?.params),t=(0,n.useQuery)({queryKey:["studio-data",o],queryFn:()=>p(o),enabled:e?.enabled,staleTime:e?.staleTime,refetchInterval:e?.pollingMs||void 0,select:e?.select});return{data:t.data,isLoading:t.isLoading,isError:t.isError,error:t.error,refetch:t.refetch,isFetching:t.isFetching}}function m(r,e="POST"){let o="string"==typeof e?{method:e}:e,t=o.method??"POST",a=o.mapBody,c=(0,n.useMutation)({mutationFn:async e=>{let o="function"==typeof r?r(e):r,c=a?a(e):e,n=null!=c,i=await fetch(`${x()}/api${o}`,{method:t,headers:n?{"Content-Type":"application/json"}:{},body:n?JSON.stringify(c):void 0});if(!i.ok)throw Error(`${t} ${o} failed: ${i.status} ${i.statusText}`);let l=await i.json();return l&&"object"==typeof l&&"ok"in l&&"data"in l?l.data:l}});return{mutate:c.mutate,mutateAsync:c.mutateAsync,isLoading:c.isPending,isError:c.isError,error:c.error,data:c.data}}function x(){if("u">typeof window){let r=window.__KB_STUDIO_CONFIG__,e=r?.KB_API_BASE_URL;if(e)try{return new URL(e).origin}catch{}}return""}async function p(r){let e=await fetch(`${x()}/api${r}`);if(!e.ok)throw Error(`GET ${r} failed: ${e.status} ${e.statusText}`);let o=await e.json();return o&&"object"==typeof o&&"ok"in o&&"data"in o?o.data:o}function B(r,e={}){let{events:o="message",doneEvent:a,enabled:c=!0,reconnect:n=!1,maxReconnects:i=5,reconnectIntervalMs:l=2e3,maxEvents:v=0,parse:s=S,params:d,onEvent:g,onOpen:u,onError:y,onDone:b}=e,[m,x]=(0,t.useState)([]),[p,f]=(0,t.useState)(void 0),[h,k]=(0,t.useState)(null),[C,T]=(0,t.useState)(!1),[F,E]=(0,t.useState)(0),H=(0,t.useRef)(null),A=(0,t.useRef)(null),w=(0,t.useRef)(!1),P=(0,t.useRef)(g),I=(0,t.useRef)(u),D=(0,t.useRef)(y),L=(0,t.useRef)(b),R=(0,t.useRef)(s);P.current=g,I.current=u,D.current=y,L.current=b,R.current=s;let W=JSON.stringify(o),$=JSON.stringify(d),O=(0,t.useCallback)(()=>{w.current=!0,A.current&&(clearTimeout(A.current),A.current=null),H.current&&(H.current.close(),H.current=null),T(!1)},[]),_=(0,t.useCallback)(()=>{x([]),f(void 0)},[]);return(0,t.useEffect)(()=>{if(!r||!c){H.current&&(H.current.close(),H.current=null),T(!1);return}w.current=!1,x([]),f(void 0),k(null),E(0);let e=0;return!function t(){let c=new EventSource(function(r,e){let o=r.startsWith("http")?r:`/api${r}`;if(!e||0===Object.keys(e).length)return o;let t=new URLSearchParams;for(let[r,o]of Object.entries(e))null!=o&&t.set(r,String(o));let a=o.includes("?")?"&":"?";return`${o}${a}${t.toString()}`}(r,d));H.current=c;let s=Array.isArray(o)?o:[o],g=r=>{try{let e=R.current(r.data);f(e),x(r=>{let o=[...r,e];return v>0&&o.length>v?o.slice(-v):o}),P.current?.(e)}catch(e){let r=e instanceof Error?e:Error("Failed to parse SSE event data");k(r),D.current?.(r)}};for(let r of s)c.addEventListener(r,g);a&&c.addEventListener(a,()=>{c.close(),H.current=null,T(!1),L.current?.()}),c.onopen=()=>{e=0,E(0),T(!0),k(null),I.current?.()},c.onerror=()=>{if(c.close(),H.current=null,T(!1),w.current)return;let r=Error("SSE connection lost");k(r),D.current?.(r),n&&e<i&&(E(++e),A.current=setTimeout(t,l*Math.pow(2,e-1)))}}(),()=>{w.current=!0,A.current&&(clearTimeout(A.current),A.current=null),H.current&&(H.current.close(),H.current=null)}},[r,c,a,n,i,l,v,W,$]),{events:m,latest:p,isConnected:C,error:h,close:O,clear:_,reconnectCount:F}}function S(r){return JSON.parse(r)}function f(r,e){let{getNextCursor:o,params:t,enabled:a,staleTime:c,cursorParam:i="cursor",initialCursor:l}=e,v=(0,n.useInfiniteQuery)({queryKey:["studio-infinite",r,t],queryFn:async({pageParam:e})=>h(function(r,e,o,t){let a=new URLSearchParams;if(e)for(let[r,o]of Object.entries(e))null!=o&&a.set(r,String(o));null!=t&&a.set(o,String(t));let c=a.toString(),n=r.startsWith("http")?r:`/api${r}`;return c?`${n}?${c}`:n}(r,t,i,e)),initialPageParam:l,getNextPageParam:o,enabled:a,staleTime:c}),s=v.data?.pages??[],d=s.flatMap(r=>Array.isArray(r)?r:[r]);return{pages:s,data:d,isLoading:v.isLoading,isFetching:v.isFetching,isFetchingNextPage:v.isFetchingNextPage,hasNextPage:v.hasNextPage,fetchNextPage:v.fetchNextPage,error:v.error,isError:v.isError,refetch:v.refetch}}async function h(r){let e=await fetch(r);if(!e.ok)throw Error(`GET ${r} failed: ${e.status} ${e.statusText}`);let o=await e.json();return o&&"object"==typeof o&&"ok"in o&&"data"in o?o.data:o}function k(r,e={}){let{enabled:o=!0,reconnect:a=!1,maxReconnects:c=5,reconnectIntervalMs:n=2e3,protocols:i,parse:l=C,serialize:v=T,maxMessages:s=100,onMessage:d,onOpen:g,onClose:u,onError:y}=e,[b,m]=(0,t.useState)([]),[x,p]=(0,t.useState)(void 0),[B,S]=(0,t.useState)("disconnected"),[f,h]=(0,t.useState)(null),[F,E]=(0,t.useState)(0),H=(0,t.useRef)(null),A=(0,t.useRef)(null),w=(0,t.useRef)(!1),P=(0,t.useRef)(d),I=(0,t.useRef)(g),D=(0,t.useRef)(u),L=(0,t.useRef)(y),R=(0,t.useRef)(l),W=(0,t.useRef)(v);P.current=d,I.current=g,D.current=u,L.current=y,R.current=l,W.current=v;let $=(0,t.useCallback)(()=>{A.current&&(clearTimeout(A.current),A.current=null),H.current&&(H.current.close(),H.current=null)},[]),O=(0,t.useCallback)(()=>{if(!r)return;$(),w.current=!1,S("connecting"),h(null);let e=0;!function o(){let t=function(r){if(r.startsWith("ws://")||r.startsWith("wss://"))return r;let e=r.startsWith("/")?r:`/${r}`;if("u">typeof window){let r=window.__KB_STUDIO_CONFIG__,o=r?.KB_API_BASE_URL;if(o)try{let r=new URL(o).origin,t=r.startsWith("https")?"wss:":"ws:";return`${t}//${new URL(r).host}${e}`}catch{}}let o="https:"===window.location.protocol?"wss:":"ws:";return`${o}//${window.location.host}${e}`}(r),l=i?new WebSocket(t,i):new WebSocket(t);H.current=l,l.onopen=r=>{e=0,E(0),S("connected"),h(null),I.current?.(r)},l.onmessage=r=>{try{let e=R.current(r.data);p(e),m(r=>{let o=[...r,e];return s>0&&o.length>s?o.slice(-s):o}),P.current?.(e)}catch{}},l.onclose=r=>{H.current=null,S("disconnected"),D.current?.(r),!w.current&&a&&e<c&&1e3!==r.code&&(E(++e),A.current=setTimeout(o,n*Math.pow(2,e-1)))},l.onerror=r=>{S("error"),h(r),L.current?.(r)}}()},[r,i,a,c,n,s,$]),_=(0,t.useCallback)((r,e)=>{w.current=!0,A.current&&(clearTimeout(A.current),A.current=null),H.current&&(H.current.close(r,e),H.current=null),S("disconnected")},[]),M=(0,t.useCallback)(r=>{H.current?.readyState===WebSocket.OPEN&&H.current.send(W.current(r))},[]),N=(0,t.useCallback)(r=>{H.current?.readyState===WebSocket.OPEN&&H.current.send(r)},[]),z=(0,t.useCallback)(()=>{m([]),p(void 0)},[]);return(0,t.useEffect)(()=>{if(!r||!o){$(),S("disconnected");return}return m([]),p(void 0),O(),()=>{w.current=!0,$()}},[r,o]),{send:M,sendRaw:N,messages:b,latest:x,status:B,isConnected:"connected"===B,error:f,connect:O,disconnect:_,clear:z,reconnectCount:F}}function C(r){return JSON.parse(r)}function T(r){return JSON.stringify(r)}function F(){let{permissions:r}=g();return{hasPermission:(0,t.useCallback)(e=>r.includes(e),[r]),permissions:r}}function E(){let r=(0,i.useNavigate)(),e=(0,i.useLocation)(),o=(0,t.useCallback)(e=>r(e),[r]),a=(0,t.useCallback)(()=>r(-1),[r]),c=(0,t.useCallback)(r=>window.open(r,"_blank","noopener"),[]);return{navigate:o,currentPath:e.pathname,goBack:a,openExternal:c}}function H(){let r=(0,t.useCallback)(r=>{l.notification[r.type]({message:r.message,description:r.description,duration:r.duration??4.5})},[]),e=(0,t.useCallback)((e,o)=>r({type:"success",message:e,description:o}),[r]),o=(0,t.useCallback)((e,o)=>r({type:"error",message:e,description:o}),[r]),a=(0,t.useCallback)((e,o)=>r({type:"warning",message:e,description:o}),[r]),c=(0,t.useCallback)((e,o)=>r({type:"info",message:e,description:o}),[r]);return{notify:r,success:e,error:o,warning:a,info:c}}var A={bgPrimary:v.lightSemanticColors["bg-primary"],bgSecondary:v.lightSemanticColors["bg-secondary"],bgTertiary:v.lightSemanticColors["bg-tertiary"],textPrimary:v.lightSemanticColors["text-primary"],textSecondary:v.lightSemanticColors["text-secondary"],textTertiary:v.lightSemanticColors["text-tertiary"],textInverse:v.lightSemanticColors["text-inverse"],borderPrimary:v.lightSemanticColors["border-primary"],borderSecondary:v.lightSemanticColors["border-secondary"],link:v.lightSemanticColors.link,linkHover:v.lightSemanticColors["link-hover"],accentSubtle:v.lightSemanticColors["accent-subtle"],success:v.lightSemanticColors.success,warning:v.lightSemanticColors.warning,error:v.lightSemanticColors.error,info:v.lightSemanticColors.info,disabled:v.lightSemanticColors.disabled,shadow:v.lightSemanticColors.shadow};function w(){let{token:r}=l.theme.useToken();return{mode:"light",antdToken:r,semantic:A,tokens:{colors:v.colors,spacing:v.spacing,typography:v.typography,radius:v.radius,shadows:v.shadows}}}function P(){return{colorPrimary:"var(--link, #0c66ff)",colorPrimaryHover:"var(--link-hover, #0050cc)",colorPrimaryActive:"var(--link-hover, #0050cc)",colorPrimaryBg:"var(--accent-subtle, #dbeafe)",colorPrimaryBgHover:"var(--accent-subtle, #dbeafe)",colorPrimaryBorder:"var(--link, #0c66ff)",colorPrimaryBorderHover:"var(--link-hover, #0050cc)",colorPrimaryText:"var(--link, #0c66ff)",colorPrimaryTextHover:"var(--link-hover, #0050cc)",colorPrimaryTextActive:"var(--link-hover, #0050cc)",colorSuccess:"var(--success, #16A34A)",colorSuccessHover:"var(--success, #16A34A)",colorSuccessActive:"var(--success, #16A34A)",colorSuccessBg:"var(--bg-tertiary, #F3F4F6)",colorSuccessBgHover:"var(--bg-tertiary, #F3F4F6)",colorSuccessBorder:"var(--success, #16A34A)",colorSuccessBorderHover:"var(--success, #16A34A)",colorSuccessText:"var(--success, #16A34A)",colorSuccessTextHover:"var(--success, #16A34A)",colorSuccessTextActive:"var(--success, #16A34A)",colorWarning:"var(--warning, #F59E0B)",colorWarningHover:"var(--warning, #F59E0B)",colorWarningActive:"var(--warning, #F59E0B)",colorWarningBg:"var(--bg-tertiary, #F3F4F6)",colorWarningBgHover:"var(--bg-tertiary, #F3F4F6)",colorWarningBorder:"var(--warning, #F59E0B)",colorWarningBorderHover:"var(--warning, #F59E0B)",colorWarningText:"var(--warning, #F59E0B)",colorWarningTextHover:"var(--warning, #F59E0B)",colorWarningTextActive:"var(--warning, #F59E0B)",colorWarningOutline:"rgba(245, 158, 11, 0.2)",colorError:"var(--error, #DC2626)",colorErrorHover:"var(--error, #DC2626)",colorErrorActive:"var(--error, #DC2626)",colorErrorBg:"var(--bg-tertiary, #F3F4F6)",colorErrorBgHover:"var(--bg-tertiary, #F3F4F6)",colorErrorBorder:"var(--error, #DC2626)",colorErrorBorderHover:"var(--error, #DC2626)",colorErrorText:"var(--error, #DC2626)",colorErrorTextHover:"var(--error, #DC2626)",colorErrorTextActive:"var(--error, #DC2626)",colorErrorOutline:"rgba(220, 38, 38, 0.2)",colorInfo:"var(--info, #0EA5E9)",colorInfoHover:"var(--info, #0EA5E9)",colorInfoActive:"var(--info, #0EA5E9)",colorInfoBg:"var(--bg-tertiary, #F3F4F6)",colorInfoBgHover:"var(--bg-tertiary, #F3F4F6)",colorInfoBorder:"var(--info, #0EA5E9)",colorInfoBorderHover:"var(--info, #0EA5E9)",colorInfoText:"var(--info, #0EA5E9)",colorInfoTextHover:"var(--info, #0EA5E9)",colorInfoTextActive:"var(--info, #0EA5E9)",colorBgContainer:"var(--bg-secondary, #FFFFFF)",colorBgBase:"var(--bg-primary, #F9FAFB)",colorBgElevated:"var(--bg-secondary, #FFFFFF)",colorBgLayout:"var(--bg-primary, #F9FAFB)",colorBgSpotlight:"var(--bg-tertiary, #F3F4F6)",colorBgMask:"rgba(0, 0, 0, 0.45)",colorBgTextHover:"var(--bg-hover, #F3F4F6)",colorBgTextActive:"var(--bg-hover, #F3F4F6)",colorBgContainerDisabled:"var(--bg-tertiary, #F3F4F6)",colorText:"var(--text-primary, #111827)",colorTextBase:"var(--text-primary, #111827)",colorTextSecondary:"var(--text-secondary, #6B7280)",colorTextTertiary:"var(--text-tertiary, #6B7280)",colorTextQuaternary:"var(--text-tertiary, #6B7280)",colorTextDisabled:"var(--disabled, #9CA3AF)",colorTextHeading:"var(--text-primary, #111827)",colorTextLabel:"var(--text-secondary, #6B7280)",colorTextDescription:"var(--text-secondary, #6B7280)",colorTextPlaceholder:"var(--text-tertiary, #6B7280)",colorTextLightSolid:"var(--text-inverse, #FFFFFF)",colorBorder:"var(--border-primary, #E5E7EB)",colorBorderSecondary:"var(--border-secondary, #D4D4D4)",colorBorderBg:"var(--bg-secondary, #FFFFFF)",colorSplit:"var(--border-primary, #E5E7EB)",colorFill:"var(--bg-tertiary, #F3F4F6)",colorFillSecondary:"var(--bg-tertiary, #F3F4F6)",colorFillTertiary:"var(--bg-primary, #F9FAFB)",colorFillQuaternary:"var(--bg-primary, #F9FAFB)",colorFillContent:"var(--bg-hover, #F3F4F6)",colorFillContentHover:"var(--bg-hover, #F3F4F6)",colorFillAlter:"var(--bg-tertiary, #F3F4F6)",colorWhite:"#FFFFFF",boxShadow:"0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04)",boxShadowSecondary:"0 4px 12px rgba(0,0,0,0.08)",boxShadowTertiary:"0 8px 24px rgba(0,0,0,0.08)",borderRadius:8,borderRadiusLG:12,borderRadiusSM:6,borderRadiusXS:4,borderRadiusOuter:6,controlHeight:36,controlHeightLG:40,controlHeightSM:28,controlHeightXS:22,fontFamily:"var(--font-body, 'Inter', 'Segoe UI', sans-serif)",fontSize:14,fontSizeLG:16,fontSizeSM:12,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,fontWeightStrong:600,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,padding:16,paddingLG:24,paddingSM:12,paddingXS:8,paddingXXS:4,margin:16,marginLG:24,marginSM:12,marginXS:8,marginXXS:4,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",colorLink:"var(--link, #0c66ff)",colorLinkHover:"var(--link-hover, #0050cc)",colorLinkActive:"var(--link-hover, #0050cc)",colorIcon:"var(--text-secondary, #6B7280)",colorIconHover:"var(--text-primary, #111827)",colorHighlight:"var(--link, #0c66ff)",controlOutline:"rgba(12, 102, 255, 0.15)",controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"var(--bg-hover, #F3F4F6)",controlItemBgActive:"var(--accent-subtle, #dbeafe)",controlItemBgActiveHover:"var(--accent-subtle, #dbeafe)",controlItemBgActiveDisabled:"var(--bg-tertiary, #F3F4F6)",controlTmpOutline:"rgba(12, 102, 255, 0.08)",screenXS:480,screenSM:576,screenMD:768,screenLG:992,screenXL:1200,screenXXL:1600}}function I(){return{Table:{headerBg:"var(--bg-tertiary)",headerColor:"var(--text-primary)",borderColor:"var(--border-primary)",colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",rowHoverBg:"var(--bg-hover)",rowSelectedBg:"var(--accent-subtle)",rowSelectedHoverBg:"var(--accent-subtle)",rowExpandedBg:"var(--bg-secondary)",bodySortBg:"var(--bg-tertiary)",headerSortActiveBg:"var(--bg-tertiary)",headerSortHoverBg:"var(--bg-tertiary)",headerFilterHoverBg:"var(--bg-tertiary)",fixedHeaderSortActiveBg:"var(--bg-tertiary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",expandIconBg:"var(--bg-secondary)",footerBg:"var(--bg-tertiary)",footerColor:"var(--text-primary)",selectionColumnWidth:60,stickyScrollBarBg:"var(--bg-tertiary)",stickyScrollBarBorderRadius:4},Tag:{defaultBg:"var(--bg-tertiary)",defaultColor:"var(--text-primary)",colorBorder:"var(--border-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"},Badge:{colorError:"var(--error)",colorSuccess:"var(--success)",colorWarning:"var(--warning)",colorInfo:"var(--info)",colorText:"var(--text-primary)"},Alert:{colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)",colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",colorSuccessBg:"var(--bg-tertiary)",colorErrorBg:"var(--bg-tertiary)",colorWarningBg:"var(--bg-tertiary)",colorInfoBg:"var(--bg-tertiary)",colorSuccessBorder:"var(--success)",colorErrorBorder:"var(--error)",colorWarningBorder:"var(--warning)",colorInfoBorder:"var(--info)"},Card:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBorderSecondary:"var(--border-primary)",headerBg:"var(--bg-secondary)",actionsBg:"var(--bg-tertiary)",extraColor:"var(--text-secondary)"},Descriptions:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorBorder:"var(--border-primary)"},Button:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",colorPrimaryActive:"var(--link-hover)",primaryColor:"var(--text-inverse)",primaryShadow:"0 2px 0 rgba(12, 102, 255, 0.15)",defaultBg:"var(--bg-secondary)",defaultColor:"var(--text-primary)",defaultBorderColor:"var(--border-primary)",defaultShadow:"0 2px 0 rgba(0, 0, 0, 0.015)",defaultHoverBg:"var(--bg-hover)",defaultHoverColor:"var(--text-primary)",defaultHoverBorderColor:"var(--border-secondary)",defaultActiveBg:"var(--bg-hover)",defaultActiveColor:"var(--text-primary)",defaultActiveBorderColor:"var(--border-secondary)",ghostBg:"transparent",defaultGhostColor:"var(--text-primary)",defaultGhostBorderColor:"var(--border-primary)",borderColorDisabled:"var(--border-primary)",colorBgContainerDisabled:"var(--bg-tertiary)",textTextColor:"var(--text-secondary)",textTextHoverColor:"var(--text-primary)",textTextActiveColor:"var(--text-primary)",textHoverBg:"var(--accent-subtle)",linkHoverBg:"transparent",colorLink:"var(--link)",colorLinkHover:"var(--link-hover)",colorLinkActive:"var(--link-hover)",solidTextColor:"var(--text-primary)",dangerColor:"var(--error)",dangerShadow:"0 2px 0 rgba(220, 38, 38, 0.1)",colorErrorBg:"transparent",colorErrorBgHover:"var(--bg-hover)",colorErrorBorder:"var(--error)",colorErrorBorderHover:"var(--error)",colorErrorHover:"var(--error)",colorErrorActive:"var(--error)"},Input:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorTextPlaceholder:"var(--text-tertiary)",hoverBorderColor:"var(--border-secondary)",activeBorderColor:"var(--link)",activeShadow:"0 0 0 3px rgba(12, 102, 255, 0.12)",errorActiveShadow:"0 0 0 2px rgba(220, 38, 38, 0.1)",warningActiveShadow:"0 0 0 2px rgba(245, 158, 11, 0.1)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Select:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",colorTextPlaceholder:"var(--text-tertiary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",optionSelectedBg:"var(--accent-subtle)",optionSelectedColor:"var(--link)",optionActiveBg:"var(--bg-hover)",optionSelectedFontWeight:600,multipleItemBg:"var(--bg-tertiary)",multipleItemBorderColor:"var(--border-primary)",multipleItemColorDisabled:"var(--disabled)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",selectorBg:"var(--bg-secondary)"},Dropdown:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorTextDisabled:"var(--disabled)",controlItemBgHover:"var(--bg-hover)",controlItemBgActive:"var(--accent-subtle)",controlItemBgActiveHover:"var(--accent-subtle)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",colorBgContainer:"var(--bg-secondary)",colorSplit:"var(--border-primary)",paddingBlock:8,controlPaddingHorizontal:12},Menu:{colorText:"var(--text-primary)",colorTextSecondary:"var(--text-secondary)",colorBgContainer:"var(--bg-sidebar)",colorBorder:"var(--border-primary)",colorSplit:"var(--border-primary)",itemColor:"var(--text-primary)",itemBg:"var(--bg-secondary)",itemHoverBg:"var(--bg-hover)",itemHoverColor:"var(--link)",itemSelectedBg:"var(--accent-subtle)",itemSelectedColor:"var(--link)",itemActiveBg:"var(--accent-subtle)",colorActiveBarBorderSize:0,darkItemBg:"var(--bg-secondary)",darkItemColor:"var(--text-primary)",darkItemHoverBg:"var(--bg-hover)",darkItemSelectedBg:"var(--accent-subtle)",darkItemSelectedColor:"var(--link)",darkSubMenuItemBg:"var(--bg-secondary)",subMenuItemBg:"var(--bg-secondary)",popupBg:"var(--bg-secondary)",colorPrimary:"var(--link)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",groupTitleColor:"var(--text-tertiary)",groupTitleFontSize:11,itemBorderRadius:8,subMenuItemBorderRadius:6,itemPaddingInline:12},Tabs:{colorText:"var(--text-secondary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorBorderSecondary:"var(--border-primary)",colorPrimary:"var(--link)",itemHoverColor:"var(--link)",itemSelectedColor:"var(--link)",itemActiveColor:"var(--link)",inkBarColor:"var(--link)"},Modal:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",headerBg:"var(--bg-secondary)",footerBg:"var(--bg-tertiary)",contentBg:"var(--bg-secondary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Drawer:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Popover:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)"},Tooltip:{colorText:"var(--text-primary)",colorBgSpotlight:"var(--bg-secondary)",colorTextLightSolid:"var(--text-primary)"},List:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorSplit:"var(--border-primary)",metaMarginBottom:8,avatarMarginRight:16},Switch:{colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)"},Radio:{colorPrimary:"var(--link)",colorText:"var(--text-primary)",buttonCheckedBg:"var(--link)",buttonCheckedBgDisabled:"var(--disabled)",buttonColor:"var(--text-primary)",buttonSolidCheckedColor:"var(--text-inverse)",buttonSolidCheckedBg:"var(--link)",buttonSolidCheckedHoverBg:"var(--link-hover)",buttonSolidCheckedActiveBg:"var(--link-hover)"},Checkbox:{colorPrimary:"var(--link)",colorText:"var(--text-primary)"},DatePicker:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",colorTextPlaceholder:"var(--text-tertiary)",colorTextDisabled:"var(--disabled)",colorLink:"var(--link)",colorLinkHover:"var(--link-hover)",cellHoverBg:"var(--bg-hover)",cellActiveWithRangeBg:"var(--accent-subtle)",cellBgDisabled:"var(--bg-tertiary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)"},Form:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorError:"var(--error)",colorWarning:"var(--warning)"},Pagination:{colorText:"var(--text-primary)",colorTextDisabled:"var(--disabled)",colorBgContainer:"var(--bg-secondary)",colorPrimary:"var(--link)",colorPrimaryHover:"var(--link-hover)",itemBg:"var(--bg-secondary)",itemActiveBg:"var(--link)",itemActiveBgDisabled:"var(--bg-tertiary)",itemInputBg:"var(--bg-secondary)",itemLinkBg:"var(--bg-secondary)",colorBgTextHover:"var(--bg-hover)"},Steps:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",colorPrimary:"var(--link)",colorBorder:"var(--border-primary)"},Breadcrumb:{colorText:"var(--text-secondary)",colorTextDescription:"var(--text-tertiary)",linkColor:"var(--link)",linkHoverColor:"var(--link-hover)",separatorColor:"var(--text-tertiary)"},Progress:{colorText:"var(--text-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",remainingColor:"var(--bg-tertiary)"},Skeleton:{colorFill:"var(--bg-tertiary)",colorFillContent:"var(--bg-hover)"},Spin:{colorPrimary:"var(--link)",colorBgContainer:"var(--bg-secondary)"},Divider:{colorSplit:"var(--border-primary)",colorText:"var(--text-secondary)"},Layout:{headerBg:"var(--bg-secondary)",bodyBg:"var(--bg-primary)",triggerBg:"var(--bg-tertiary)",colorText:"var(--text-primary)"},Collapse:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBorder:"var(--border-primary)",colorBgContainer:"var(--bg-secondary)",headerBg:"var(--bg-tertiary)"},Carousel:{colorBgContainer:"var(--bg-secondary)",dotActiveWidth:24},Anchor:{colorPrimary:"var(--link)",colorText:"var(--text-secondary)",linkPaddingBlock:4},Timeline:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",tailColor:"var(--border-primary)",dotBg:"var(--bg-secondary)"},Transfer:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",controlItemBgActive:"var(--bg-hover)"},Tree:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorPrimary:"var(--link)",nodeHoverBg:"var(--bg-hover)",nodeSelectedBg:"var(--accent-subtle)"},TreeSelect:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",nodeHoverBg:"var(--bg-hover)",nodeSelectedBg:"var(--accent-subtle)"},Cascader:{colorText:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorBgElevated:"var(--bg-secondary)",optionSelectedBg:"var(--bg-hover)"},Segmented:{colorText:"var(--text-primary)",colorTextLabel:"var(--text-secondary)",colorBgLayout:"var(--bg-tertiary)",itemSelectedBg:"var(--bg-secondary)",itemSelectedColor:"var(--link)",itemHoverBg:"var(--bg-hover)"},Rate:{colorText:"var(--warning)"},Slider:{colorPrimary:"var(--link)",colorPrimaryBorder:"var(--link)",trackBg:"var(--bg-tertiary)",trackHoverBg:"var(--bg-hover)"},Upload:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)",colorBorder:"var(--border-primary)",colorFillAlter:"var(--bg-tertiary)",colorPrimary:"var(--link)"},Calendar:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgContainer:"var(--bg-secondary)",colorBorder:"var(--border-primary)",itemActiveBg:"var(--accent-subtle)"},Image:{colorTextLightSolid:"var(--text-primary)",colorBgMask:"rgba(0, 0, 0, 0.45)"},Statistic:{colorText:"var(--text-primary)",colorTextDescription:"var(--text-secondary)"},Result:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorTextDescription:"var(--text-secondary)"},Empty:{colorText:"var(--text-secondary)",colorTextDescription:"var(--text-tertiary)"},Message:{colorText:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",contentBg:"var(--bg-secondary)",contentPadding:"10px 16px",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"},Notification:{colorText:"var(--text-primary)",colorTextHeading:"var(--text-primary)",colorBgElevated:"var(--bg-secondary)",colorBorder:"var(--border-primary)",colorIcon:"var(--text-secondary)",colorIconHover:"var(--text-primary)",colorSuccess:"var(--success)",colorError:"var(--error)",colorWarning:"var(--warning)",colorInfo:"var(--info)"}}}v.darkSemanticColors["bg-primary"],v.darkSemanticColors["bg-secondary"],v.darkSemanticColors["bg-tertiary"],v.darkSemanticColors["text-primary"],v.darkSemanticColors["text-secondary"],v.darkSemanticColors["text-tertiary"],v.darkSemanticColors["text-inverse"],v.darkSemanticColors["border-primary"],v.darkSemanticColors["border-secondary"],v.darkSemanticColors.link,v.darkSemanticColors["link-hover"],v.darkSemanticColors["accent-subtle"],v.darkSemanticColors.success,v.darkSemanticColors.warning,v.darkSemanticColors.error,v.darkSemanticColors.info,v.darkSemanticColors.disabled,v.darkSemanticColors.shadow}}]);
@@ -1,2 +1 @@
1
- "use strict";(self.webpackChunk_kb_labs_qa_entry=self.webpackChunk_kb_labs_qa_entry||[]).push([["405"],{2482(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),d=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,b={};function m(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||h}function v(){}function S(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var E=S.prototype=new v;E.constructor=S,_(E,m.prototype),E.isPureReactComponent=!0;var w=Array.isArray;function g(){}var k={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function j(e,t,r){var o=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==o?o:null,props:r}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var R=/\/+/g;function $(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function T(e,t,o){if(null==e)return e;var u=[],c=0;return!function e(t,o,u,c,s){var a,i,f,l=typeof t;("undefined"===l||"boolean"===l)&&(t=null);var y=!1;if(null===t)y=!0;else switch(l){case"bigint":case"string":case"number":y=!0;break;case"object":switch(t.$$typeof){case n:case r:y=!0;break;case p:return e((y=t._init)(t._payload),o,u,c,s)}}if(y)return s=s(t),y=""===c?"."+$(t,0):c,w(s)?(u="",null!=y&&(u=y.replace(R,"$&/")+"/"),e(s,o,u,"",function(e){return e})):null!=s&&(C(s)&&(a=s,i=u+(null==s.key||t&&t.key===s.key?"":(""+s.key).replace(R,"$&/")+"/")+y,s=j(a.type,i,a.props)),o.push(s)),1;y=0;var h=""===c?".":c+":";if(w(t))for(var _=0;_<t.length;_++)l=h+$(c=t[_],_),y+=e(c,o,u,l,s);else if("function"==typeof(_=null===(f=t)||"object"!=typeof f?null:"function"==typeof(f=d&&f[d]||f["@@iterator"])?f:null))for(t=_.call(t),_=0;!(c=t.next()).done;)l=h+$(c=c.value,_++),y+=e(c,o,u,l,s);else if("object"===l){if("function"==typeof t.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(g,g):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),o,u,c,s);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(o=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}return y}(e,u,"","",function(e){return t.call(o,e,c++)}),u}function x(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};t.Activity=y,t.Children={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=c,t.PureComponent=S,t.StrictMode=u,t.Suspense=f,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return k.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=_({},e.props),o=e.key;if(null!=t)for(u in void 0!==t.key&&(o=""+t.key),t)H.call(t,u)&&"key"!==u&&"__self"!==u&&"__source"!==u&&("ref"!==u||void 0!==t.ref)&&(r[u]=t[u]);var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];r.children=c}return j(e.type,o,r)},t.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:s,_context:e},e},t.createElement=function(e,t,n){var r,o={},u=null;if(null!=t)for(r in void 0!==t.key&&(u=""+t.key),t)H.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var s=Array(c),a=0;a<c;a++)s[a]=arguments[a+2];o.children=s}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===o[r]&&(o[r]=c[r]);return j(e,u,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:i,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=k.T,n={};k.T=n;try{var r=e(),o=k.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(g,A)}catch(e){A(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),k.T=t}},t.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},t.use=function(e){return k.H.use(e)},t.useActionState=function(e,t,n){return k.H.useActionState(e,t,n)},t.useCallback=function(e,t){return k.H.useCallback(e,t)},t.useContext=function(e){return k.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return k.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return k.H.useEffect(e,t)},t.useEffectEvent=function(e){return k.H.useEffectEvent(e)},t.useId=function(){return k.H.useId()},t.useImperativeHandle=function(e,t,n){return k.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return k.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return k.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return k.H.useMemo(e,t)},t.useOptimistic=function(e,t){return k.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return k.H.useReducer(e,t,n)},t.useRef=function(e){return k.H.useRef(e)},t.useState=function(e){return k.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return k.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return k.H.useTransition()},t.version="19.2.5"},6740(e,t,n){e.exports=n(2482)}}]);
2
- //# sourceMappingURL=405.js.map
1
+ "use strict";(self.rspackChunk_kb_labs_qa_entry=self.rspackChunk_kb_labs_qa_entry||[]).push([[405],{2482(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),a=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),d=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,b={};function m(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||h}function v(){}function S(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var E=S.prototype=new v;E.constructor=S,_(E,m.prototype),E.isPureReactComponent=!0;var g=Array.isArray;function k(){}var w={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function j(e,t,r){var o=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==o?o:null,props:r}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var R=/\/+/g;function $(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function T(e,t,o){if(null==e)return e;var u=[],s=0;return!function e(t,o,u,s,c){var a,i,f,l=typeof t;("undefined"===l||"boolean"===l)&&(t=null);var y=!1;if(null===t)y=!0;else switch(l){case"bigint":case"string":case"number":y=!0;break;case"object":switch(t.$$typeof){case n:case r:y=!0;break;case p:return e((y=t._init)(t._payload),o,u,s,c)}}if(y)return c=c(t),y=""===s?"."+$(t,0):s,g(c)?(u="",null!=y&&(u=y.replace(R,"$&/")+"/"),e(c,o,u,"",function(e){return e})):null!=c&&(C(c)&&(a=c,i=u+(null==c.key||t&&t.key===c.key?"":(""+c.key).replace(R,"$&/")+"/")+y,c=j(a.type,i,a.props)),o.push(c)),1;y=0;var h=""===s?".":s+":";if(g(t))for(var _=0;_<t.length;_++)l=h+$(s=t[_],_),y+=e(s,o,u,l,c);else if("function"==typeof(_=null===(f=t)||"object"!=typeof f?null:"function"==typeof(f=d&&f[d]||f["@@iterator"])?f:null))for(t=_.call(t),_=0;!(s=t.next()).done;)l=h+$(s=s.value,_++),y+=e(s,o,u,l,c);else if("object"===l){if("function"==typeof t.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),o,u,s,c);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(o=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}return y}(e,u,"","",function(e){return t.call(o,e,s++)}),u}function x(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};t.Activity=y,t.Children={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=s,t.PureComponent=S,t.StrictMode=u,t.Suspense=f,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=_({},e.props),o=e.key;if(null!=t)for(u in void 0!==t.key&&(o=""+t.key),t)H.call(t,u)&&"key"!==u&&"__self"!==u&&"__source"!==u&&("ref"!==u||void 0!==t.ref)&&(r[u]=t[u]);var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return j(e.type,o,r)},t.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:c,_context:e},e},t.createElement=function(e,t,n){var r,o={},u=null;if(null!=t)for(r in void 0!==t.key&&(u=""+t.key),t)H.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var c=Array(s),a=0;a<s;a++)c[a]=arguments[a+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return j(e,u,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:i,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),o=w.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,A)}catch(e){A(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),w.T=t}},t.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},t.use=function(e){return w.H.use(e)},t.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},t.useCallback=function(e,t){return w.H.useCallback(e,t)},t.useContext=function(e){return w.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return w.H.useEffect(e,t)},t.useEffectEvent=function(e){return w.H.useEffectEvent(e)},t.useId=function(){return w.H.useId()},t.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return w.H.useMemo(e,t)},t.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},t.useRef=function(e){return w.H.useRef(e)},t.useState=function(e){return w.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return w.H.useTransition()},t.version="19.2.5"},6740(e,t,n){e.exports=n(2482)}}]);