@techdocs/cli 1.9.0-next.0 → 1.9.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/embedded-app/.config-schema.json +322 -46
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/index.html.tmpl +1 -1
- package/dist/embedded-app/static/9234.26971228.chunk.js +4 -0
- package/dist/embedded-app/static/9234.26971228.chunk.js.map +1 -0
- package/dist/embedded-app/static/{main.a2e1e30a.js → main.5b071983.js} +2 -2
- package/dist/embedded-app/static/{main.a2e1e30a.js.map → main.5b071983.js.map} +1 -1
- package/dist/embedded-app/static/module-remix-run.ae6d33c5.js +13 -0
- package/dist/embedded-app/static/module-remix-run.ae6d33c5.js.map +1 -0
- package/dist/embedded-app/static/{runtime.a2e1e30a.js → runtime.5b071983.js} +2 -2
- package/dist/embedded-app/static/{runtime.a2e1e30a.js.map → runtime.5b071983.js.map} +1 -1
- package/dist/embedded-app/static/{vendor.a2e1e30a.js → vendor.5b071983.js} +4 -4
- package/dist/embedded-app/static/{vendor.a2e1e30a.js.map → vendor.5b071983.js.map} +1 -1
- package/dist/package.json.cjs.js +1 -1
- package/package.json +3 -3
- package/dist/embedded-app/static/9234.6839c56f.chunk.js +0 -4
- package/dist/embedded-app/static/9234.6839c56f.chunk.js.map +0 -1
- package/dist/embedded-app/static/module-remix-run.ba6397c2.js +0 -13
- package/dist/embedded-app/static/module-remix-run.ba6397c2.js.map +0 -1
- /package/dist/embedded-app/static/{createComponent.975d1e1e..svg → createComponent.975d1e1e.svg} +0 -0
- /package/dist/embedded-app/static/{mic-drop.fe3ef4d0..svg → mic-drop.fe3ef4d0.svg} +0 -0
- /package/dist/embedded-app/static/{missingAnnotation.67f79e98..svg → missingAnnotation.67f79e98.svg} +0 -0
- /package/dist/embedded-app/static/{noBuild.1715fa71..svg → noBuild.1715fa71.svg} +0 -0
- /package/dist/embedded-app/static/{noInformation.4b426325..svg → noInformation.4b426325.svg} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8792],{86519:(H,b,t)=>{"use strict";t.d(b,{c:()=>n});const n=Symbol.for("CATALOG_FILTER_EXISTS_0e15b590c0b343a2bae3e787e84c2111")},72348:(H,b,t)=>{"use strict";t.d(b,{P:()=>d,_P:()=>a,oQ:()=>n});const n="default",a="backstage.io/view-url",d="backstage.io/edit-url",x="kubernetes.io/api-server",m="kubernetes.io/api-server-certificate-authority",h="kubernetes.io/auth-provider"},6820:(H,b,t)=>{"use strict";t.d(b,{KU:()=>x,U2:()=>m,sM:()=>d});var n=t(72348);function a(h){let u=h.indexOf(":");const g=h.indexOf("/");g!==-1&&g<u&&(u=-1);const p=u===-1?void 0:h.slice(0,u),y=g===-1?void 0:h.slice(u+1,g),E=h.slice(Math.max(u+1,g+1));if(p===""||y===""||E==="")throw new TypeError(`Entity reference "${h}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:p,namespace:y,name:E}}function d(h){return{kind:h.kind,namespace:h.metadata.namespace||n.oQ,name:h.metadata.name}}function x(h,u){if(!h)throw new Error("Entity reference must not be empty");const g=u?.defaultKind,p=u?.defaultNamespace||n.oQ;let y,E,v;if(typeof h=="string"){const P=a(h);y=P.kind??g,E=P.namespace??p,v=P.name}else y=h.kind??g,E=h.namespace??p,v=h.name;if(y)if(E){if(!v){const P=JSON.stringify(h);throw new Error(`Entity reference ${P} had missing or empty name`)}}else{const P=JSON.stringify(h);throw new Error(`Entity reference ${P} had missing or empty namespace`)}else{const P=JSON.stringify(h);throw new Error(`Entity reference ${P} had missing or empty kind (e.g. did not start with "component:" or similar)`)}return{kind:y,namespace:E,name:v}}function m(h){let u,g,p;return"metadata"in h?(u=h.kind,g=h.metadata.namespace??n.oQ,p=h.metadata.name):(u=h.kind,g=h.namespace??n.oQ,p=h.name),`${u.toLocaleLowerCase("en-US")}:${g.toLocaleLowerCase("en-US")}/${p.toLocaleLowerCase("en-US")}`}},51372:(H,b,t)=>{"use strict";t.d(b,{fT:()=>g,jn:()=>P,nC:()=>u,sA:()=>T,vv:()=>n});const n="ownedBy",a="ownerOf",d="consumesApi",x="apiConsumedBy",m="providesApi",h="apiProvidedBy",u="dependsOn",g="dependencyOf",p="parentOf",y="childOf",E="memberOf",v="hasMember",P="partOf",T="hasPart"},17736:(H,b,t)=>{"use strict";t.d(b,{Eo:()=>n,I4:()=>d});const n="backstage.io/managed-by-location",a="backstage.io/managed-by-origin-location",d="backstage.io/source-location"},78692:(H,b,t)=>{"use strict";t.d(b,{Cr:()=>h,KL:()=>m,aY:()=>x});var n=t(6820),a=t(17736);const d=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;function x(u){if(typeof u!="string")throw new TypeError(`Unable to parse location ref '${u}', unexpected argument ${typeof u}`);const g=u.indexOf(":");if(g<0)throw new TypeError(`Unable to parse location ref '${u}', expected '<type>:<target>', e.g. 'url:https://host/path'`);const p=u.substring(0,g).trim(),y=u.substring(g+1).trim();if(!p||!y)throw new TypeError(`Unable to parse location ref '${u}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if(p==="http"||p==="https")throw new TypeError(`Invalid location ref '${u}', please prefix it with 'url:', e.g. 'url:${u}'`);if(d.test(y))throw new TypeError(`Invalid location ref '${u}', target is a javascript: URL`);return{type:p,target:y}}function m(u){const{type:g,target:p}=u;if(g){if(!p)throw new TypeError("Unable to stringify location ref, empty target")}else throw new TypeError("Unable to stringify location ref, empty type");if(d.test(p))throw new TypeError(`Invalid location ref '${g}:${p}', target is a javascript: URL`);return`${g}:${p}`}function h(u){const g=u.metadata?.annotations?.[a.I4]??u.metadata?.annotations?.[a.Eo];if(!g)throw new Error(`Entity '${(0,n.U2)(u)}' is missing location`);return x(g)}},77310:(H,b,t)=>{"use strict";t.d(b,{z:()=>p});var n=t(31085),a=t(10394),d=t(54917),x=t(14041),m=t(69578),h=t(40697),u=t(25577),g=t(37916);function p(y){const{text:E,language:v,showLineNumbers:P=!1,highlightedNumbers:T,customStyle:M,showCopyCodeButton:O=!1}=y,B=(0,d.A)(),$=B.palette.type==="dark"?h.A:u.A,D=B.palette.type==="dark"?"#256bf3":"#e6ffed";return(0,n.jsxs)(a.A,{position:"relative",children:[(0,n.jsx)(m.A,{customStyle:M,language:v,style:$,showLineNumbers:P,wrapLines:!0,lineNumberStyle:{color:B.palette.textVerySubtle},lineProps:Q=>T?.includes(Q)?{style:{backgroundColor:D}}:{},children:E}),O&&(0,n.jsx)(a.A,{position:"absolute",top:0,right:0,children:(0,n.jsx)(g.l,{text:E})})]})}},37916:(H,b,t)=>{"use strict";t.d(b,{l:()=>E});var n=t(31085),a=t(72427),d=t(39837),x=t(29365),m=t(71677),h=t(99594),u=t(14041),g=t(36338),p=t(10315),y=t(87849);function E(v){const{t:P}=(0,y.i)(p.O),{text:T,tooltipDelay:M=1e3,tooltipText:O=P("copyTextButton.tooltipText"),"aria-label":B="Copy text"}=v,$=(0,a.gf)(d.m),[D,Q]=(0,u.useState)(!1),[{error:G},k]=(0,g.A)();(0,u.useEffect)(()=>{G&&$.post(G)},[G,$]);const W=q=>{q.stopPropagation(),Q(!0),k(T)};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(m.Ay,{id:"copy-test-tooltip",title:O,placement:"top",leaveDelay:M,onClose:()=>Q(!1),open:D,children:(0,n.jsx)(x.A,{onClick:W,"aria-label":B,children:(0,n.jsx)(h.A,{})})})})}},44186:(H,b,t)=>{"use strict";t.d(b,{p:()=>P});var n=t(31085),a=t(42899),d=t(58837),x=t(72501),m=t(14041);const h=t.p+"static/missingAnnotation.67f79e98..svg",u=t.p+"static/noInformation.4b426325..svg",g=t.p+"static/createComponent.975d1e1e..svg",p=t.p+"static/noBuild.1715fa71..svg",y=(0,d.A)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),E=({missing:T})=>{const M=y();switch(T){case"field":return(0,n.jsx)("img",{src:h,className:M.generalImg,alt:"annotation is missing"});case"info":return(0,n.jsx)("img",{src:u,alt:"no Information",className:M.generalImg});case"content":return(0,n.jsx)("img",{src:g,alt:"create Component",className:M.generalImg});case"data":return(0,n.jsx)("img",{src:p,alt:"no Build",className:M.generalImg});default:return null}},v=(0,d.A)(T=>({root:{backgroundColor:T.palette.background.default,padding:T.spacing(2,0,0,0)},action:{marginTop:T.spacing(2)},imageContainer:{position:"relative"}}),{name:"BackstageEmptyState"});function P(T){const{title:M,description:O,missing:B,action:$}=T,D=v();return(0,n.jsxs)(a.A,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:D.root,spacing:2,children:[(0,n.jsx)(a.A,{item:!0,xs:12,md:6,children:(0,n.jsxs)(a.A,{container:!0,direction:"column",children:[(0,n.jsx)(a.A,{item:!0,xs:!0,children:(0,n.jsx)(x.A,{variant:"h5",children:M})}),(0,n.jsx)(a.A,{item:!0,xs:!0,children:(0,n.jsx)(x.A,{variant:"body1",children:O})}),(0,n.jsx)(a.A,{item:!0,xs:!0,className:D.action,children:$})]})}),(0,n.jsx)(a.A,{item:!0,xs:12,md:6,className:D.imageContainer,children:typeof B=="string"?(0,n.jsx)(E,{missing:B}):B.customImage})]})}},22020:(H,b,t)=>{"use strict";t.d(b,{b:()=>E});var n=t(31085),a=t(58837),d=t(58007),x=t(8109),m=t(5951),h=t(14041),u=t(37916),g=t(88640);const p=(0,a.A)(v=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:v.spacing(2)},divider:{margin:v.spacing(2)}}),{name:"BackstageErrorPanel"}),y=({error:v,message:P,stack:T,children:M})=>{const O=p();return(0,n.jsxs)(d.A,{dense:!0,children:[(0,n.jsxs)(x.A,{alignItems:"flex-start",children:[(0,n.jsx)(m.A,{classes:{secondary:O.text},primary:"Error",secondary:v}),(0,n.jsx)(u.l,{text:v})]}),(0,n.jsxs)(x.A,{alignItems:"flex-start",children:[(0,n.jsx)(m.A,{classes:{secondary:O.text},primary:"Message",secondary:P}),(0,n.jsx)(u.l,{text:P})]}),T&&(0,n.jsxs)(x.A,{alignItems:"flex-start",children:[(0,n.jsx)(m.A,{classes:{secondary:O.text},primary:"Stack Trace",secondary:T}),(0,n.jsx)(u.l,{text:T})]}),M]})};function E(v){const{title:P,error:T,defaultExpanded:M,titleFormat:O,children:B}=v;return(0,n.jsx)(g.B,{severity:"error",title:P??T.message,defaultExpanded:M,titleFormat:O,children:(0,n.jsx)(y,{error:T.name,message:T.message,stack:T.stack,children:B})})}},18956:(H,b,t)=>{"use strict";t.d(b,{m:()=>u});var n=t(31085),a=t(14041),d=t(72501),x=t(58837),m=t(31129);const h=(0,x.A)(()=>({icon:{color:"#f3ba37",cursor:"pointer",display:"inline-flex"},iconBorder:{color:"inherit",cursor:"pointer",display:"inline-flex"}}),{name:"BackstageFavoriteToggleIcon"});function u(p){const{isFavorite:y}=p,E=h();return(0,n.jsx)(d.A,{component:"span",className:y?E.icon:E.iconBorder,children:y?(0,n.jsx)(m.Gg,{}):(0,n.jsx)(m.KG,{})})}function g(p){const{id:y,title:E,isFavorite:v,onToggle:P,...T}=p;return _jsx(Tooltip,{id:y,title:E,children:_jsx(IconButton,{"aria-label":E,id:y,onClick:()=>P(!v),color:"inherit",...T,children:_jsx(u,{isFavorite:v})})})}},72072:(H,b,t)=>{"use strict";t.d(b,{N_:()=>J});var n=t(31085),a=t(72427),d=t(65461),x=t(93368),m=t(49203),h=t(58837),u=t(72501),g=t(53373),p=t.n(g),y=t(45250),E=t.n(y),v=t(14041),P=t(18690),T=t(73657),M=t(39330),O=t(82266);function B(){const[Y]=(0,P.AV)((0,n.jsx)(P.qh,{index:!0,element:(0,n.jsx)("div",{})}));return!Y.index}const $=(0,h.A)(Y=>({visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",overflow:"hidden",position:"absolute",userSelect:"none",whiteSpace:"nowrap",height:1,width:1},externalLink:{position:"relative"},externalLinkIcon:{verticalAlign:"bottom",marginLeft:Y.spacing(.5)}}),{name:"Link"}),D=()=>{const X=(0,O.n)().getSystemIcon("externalLink")||M.A,lt=$();return(0,n.jsx)(X,{className:lt.externalLinkIcon})},Q=Y=>/^([a-z+.-]+):/.test(Y),G=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,k=window.open;if(k&&!k.__backstage){const Y=function(...lt){const gt=String(lt[0]);if(G.test(gt))throw new Error("Rejected window.open() with a javascript: URL as a security precaution");return k.apply(this,lt)};Y.__backstage=!0,window.open=Y}const W=()=>{try{return(0,a.gf)(d.U).getOptionalString("app.baseUrl")}catch{return}},q=()=>{const Y="http://sample.dev",X=W()??"/",{pathname:lt}=new URL(X,Y);return(0,y.trimEnd)(lt,"/")},N=Y=>{let X=String(Y);const lt=q(),gt=Q(X),xt=X.startsWith(lt);return!gt&&!xt&&(X=lt.concat(X)),X},rt=Y=>Y instanceof Array?Y.map(rt).join(" ").trim():typeof Y=="object"&&Y?rt(Y?.props?.children):["string","number"].includes(typeof Y)?String(Y):"",J=v.forwardRef(({onClick:Y,noTrack:X,externalLinkIcon:lt,...gt},xt)=>{const wt=$(),Tt=(0,x.s)(),dt=B()?N(gt.to):gt.to,ct=rt(gt.children)||dt,mt=Q(dt),pt=mt&&!!/^https?:/.exec(dt);if(G.test(dt))throw new Error("Link component rejected javascript: URL as a security precaution");const St=Ot=>{Y?.(Ot),X||Tt.captureEvent("click",ct,{attributes:{to:dt}})};return mt?(0,n.jsxs)(m.A,{...pt?{target:"_blank",rel:"noopener"}:{},...gt,...gt["aria-label"]?{"aria-label":`${gt["aria-label"]}, Opens in a new window`}:{},ref:xt,href:dt,onClick:St,className:p()(wt.externalLink,gt.className),children:[gt.children,lt&&(0,n.jsx)(D,{}),(0,n.jsx)(u.A,{component:"span",className:wt.visuallyHidden,children:", Opens in a new window"})]}):(0,n.jsx)(m.A,{...gt,ref:xt,component:T.N_,to:dt,onClick:St})})},73896:(H,b,t)=>{"use strict";t.d(b,{z:()=>h});var n=t(31085),a=t(64947),d=t(14041),x=t(72072);const m=d.forwardRef((g,p)=>(0,n.jsx)(x.N_,{ref:p,...g,color:"initial"})),h=d.forwardRef((g,p)=>(0,n.jsx)(a.A,{ref:p,component:m,...g})),u=null},4650:(H,b,t)=>{"use strict";t.d(b,{h:()=>E});var n=t(31085),a=t(58837),d=t(45872),x=t(61125),m=t(14041),h=t(77310);const u=(0,a.A)(v=>({markdown:{"& table":{borderCollapse:"collapse",border:`1px solid ${v.palette.border}`},"& th, & td":{border:`1px solid ${v.palette.border}`,padding:v.spacing(1)},"& td":{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:v.spacing(3,2,3,2.5),borderBottom:0},"& th":{backgroundColor:v.palette.background.paper},"& tr":{backgroundColor:v.palette.background.paper},"& tr:nth-child(odd)":{backgroundColor:v.palette.background.default},"& a":{color:v.palette.link},"& img":{maxWidth:"100%"}}}),{name:"BackstageMarkdownContent"}),g=(v,P)=>P?typeof P=="string"?v+P:m.Children.toArray(P.props.children).reduce(g,v):v,p=({level:v,children:P})=>{const O=m.Children.toArray(P).reduce(g,"").toLocaleLowerCase("en-US").replace(/\W/g,"-");return m.createElement(`h${v}`,{id:O},P)},y={code:({inline:v,className:P,children:T,...M})=>{const O=String(T).replace(/\n+$/,""),B=/language-(\w+)/.exec(P||"");return!v&&B?(0,n.jsx)(h.z,{language:B[1],text:O}):(0,n.jsx)("code",{className:P,...M,children:T})},h1:p,h2:p,h3:p,h4:p,h5:p,h6:p};function E(v){const{content:P,dialect:T="gfm",linkTarget:M,transformLinkUri:O,transformImageUri:B,className:$}=v,D=u();return(0,n.jsx)(d.$,{remarkPlugins:T==="gfm"?[x.A]:[],className:`${D.markdown} ${$??""}`.trim(),children:P,components:y,linkTarget:M,transformLinkUri:O,transformImageUri:B})}},68146:(H,b,t)=>{"use strict";t.d(b,{k:()=>h});var n=t(31085),a=t(10394),d=t(88951),x=t(54917),m=t(14041);function h(u){const g=(0,x.A)(),[p,y]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{const E=setTimeout(()=>y(!0),g.transitions.duration.short);return()=>clearTimeout(E)},[g.transitions.duration.short]),p?(0,n.jsx)(d.A,{...u,"data-testid":"progress"}):(0,n.jsx)(a.A,{display:"none","data-testid":"progress"})}},66917:(H,b,t)=>{"use strict";t.d(b,{w:()=>q});var n=t(31085),a=t(10394),d=t(69076),x=t(67720),m=t(95061),h=t(41857),u=t(48543),g=t(26343),p=t(81215),y=t(87051),E=t(12398),v=t(58837),P=t(72501),T=t(14041),M=t(10437);const O=(0,v.A)(N=>(0,E.A)({icon:{position:"absolute",right:N.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageClosedDropdown"}),$=()=>{const N=O();return(0,n.jsx)(M.A,{className:N.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M7.5 8L6 9.5L12.0703 15.5703L18.1406 9.5L16.6406 8L12.0703 12.5703L7.5 8Z",fill:"currentColor"})})},D=(0,v.A)(N=>(0,E.A)({icon:{position:"absolute",right:N.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageOpenedDropdown"}),G=()=>{const N=D();return(0,n.jsx)(M.A,{className:N.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M16.5 16L18 14.5L11.9297 8.42969L5.85938 14.5L7.35938 16L11.9297 11.4297L16.5 16Z",fill:"currentColor"})})},k=(0,y.A)(N=>(0,E.A)({root:{"label + &":{marginTop:N.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:N.palette.primary.main}},input:{borderRadius:N.shape.borderRadius,position:"relative",backgroundColor:N.palette.background.paper,border:"1px solid #ced4da",fontSize:N.typography.body1.fontSize,padding:N.spacing(1.25,3.25,1.25,1.5),transition:N.transitions.create(["border-color","box-shadow"]),"&:focus":{background:N.palette.background.paper,borderRadius:N.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(h.A),W=(0,v.A)(N=>(0,E.A)({formControl:{margin:N.spacing(1,0)},label:{transform:"initial",fontWeight:"bold",fontSize:N.typography.body2.fontSize,fontFamily:N.typography.fontFamily,color:N.palette.text.primary,"&.Mui-focused":{color:N.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:N.typography.body2.fontSize,fontFamily:N.typography.fontFamily,color:N.palette.text.primary,"&.Mui-focused":{color:N.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function q(N){const{multiple:rt,items:J,label:Y,placeholder:X,selected:lt,onChange:gt,triggerReset:xt,native:wt=!1,disabled:Tt=!1,margin:dt,"data-testid":ct="select"}=N,mt=W(),[pt,St]=(0,T.useState)(lt||(rt?[]:"")),[Ot,ut]=(0,T.useState)(!1);(0,T.useEffect)(()=>{St(rt?[]:"")},[xt,rt]),(0,T.useEffect)(()=>{St(lt||(rt?[]:""))},[lt,rt]);const At=nt=>{St(nt.target.value),gt(nt.target.value)},ht=nt=>{if(Tt){nt.preventDefault();return}ut(U=>rt&&!(nt.target instanceof HTMLElement)?!0:!U)},et=()=>{ut(!1)},vt=nt=>()=>{const U=pt.filter(V=>V!==nt);St(U),gt(U)};return(0,n.jsx)(a.A,{className:mt.root,children:(0,n.jsxs)(m.A,{className:mt.formControl,children:[(0,n.jsx)(u.A,{className:mt.formLabel,children:Y}),(0,n.jsxs)(p.A,{"aria-label":Y,value:pt,native:wt,disabled:Tt,"data-testid":ct,displayEmpty:!0,multiple:rt,margin:dt,onChange:At,open:Ot,onOpen:ht,onClose:et,input:(0,n.jsx)(k,{}),label:Y,renderValue:nt=>rt&&pt.length!==0?(0,n.jsx)(a.A,{className:mt.chips,children:nt.map(U=>{const V=J.find(yt=>yt.value===U);return V?(0,n.jsx)(x.A,{label:V?.label,clickable:!0,onDelete:vt(U),className:mt.chip},V?.value):!1})}):(0,n.jsx)(P.A,{children:pt.length===0?X||"":J.find(U=>U.value===nt)?.label}),IconComponent:()=>Ot?(0,n.jsx)(G,{}):(0,n.jsx)($,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[!!X&&!rt&&(0,n.jsx)(g.A,{value:[],children:X}),wt?J&&J.map(nt=>(0,n.jsx)("option",{value:nt.value,children:nt.label},nt.value)):J&&J.map(nt=>(0,n.jsxs)(g.A,{value:nt.value,children:[rt&&(0,n.jsx)(d.A,{color:"primary",checked:pt.includes(nt.value)||!1,className:mt.checkbox}),nt.label]},nt.value))]})]})})}},27586:(H,b,t)=>{"use strict";t.d(b,{Y:()=>J});var n=t(31085),a=t(82266),d=t(72427),x=t(65461),m=t(10394),h=t(64947),u=t(93453),g=t(29365),p=t(68804),y=t(5951),E=t(26343),v=t(28233),P=t(55197),T=t(58837),M=t(72501),O=t(5893),B=t(14041),$=t(10795),D=t(31129),Q=t(72072),G=t(10315),k=t(87849);const W=(0,T.A)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),q=({icon:Y})=>{const X=(0,a.n)(),lt=Y?X.getSystemIcon(Y)??D.NT:D.NT;return(0,n.jsx)(lt,{})},N=({link:Y})=>(0,n.jsx)(Q.N_,{to:Y.url,children:Y.title??Y.url}),rt=({item:Y})=>(0,n.jsxs)(E.A,{button:!1,children:[(0,n.jsx)(p.A,{children:(0,n.jsx)(q,{icon:Y.icon})}),(0,n.jsx)(y.A,{primary:Y.title,secondary:Y.links?.reduce((X,lt,gt)=>[...X,gt>0&&(0,n.jsx)("br",{},gt),(0,n.jsx)(N,{link:lt},lt.url)],[])})]});function J(Y){const{t:X}=(0,k.i)(G.O),{title:lt,items:gt,children:xt}=Y,{items:wt}=(0,$.l)(),[Tt,dt]=(0,B.useState)(!1),[ct,mt]=(0,B.useState)(null),pt=W(),St=(0,d.gf)(x.U).getOptionalConfig("app.support"),Ot=(0,O.A)(ht=>ht.breakpoints.down("sm")),ut=ht=>{mt(ht.currentTarget),dt(!0)},At=()=>{dt(!1)};return St?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.A,{display:"flex",ml:1,children:Ot?(0,n.jsx)(g.A,{color:"primary",size:"small",onClick:ut,"data-testid":"support-button","aria-label":"Support",children:(0,n.jsx)(D.NT,{})}):(0,n.jsx)(h.A,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:ut,startIcon:(0,n.jsx)(D.NT,{}),children:X("supportButton.title")})}),(0,n.jsxs)(P.Ay,{"data-testid":"support-button-popover",open:Tt,anchorEl:ct,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:At,children:[(0,n.jsxs)(v.A,{className:pt.popoverList,autoFocusItem:!!ct,children:[lt&&(0,n.jsx)(E.A,{button:!1,alignItems:"flex-start",className:pt.menuItem,children:(0,n.jsx)(M.A,{variant:"subtitle1",children:lt})}),B.Children.map(xt,(ht,et)=>(0,n.jsx)(E.A,{button:!1,alignItems:"flex-start",className:pt.menuItem,children:ht},`child-${et}`)),(gt??wt).map((ht,et)=>(0,n.jsx)(rt,{item:ht},`item-${et}`))]}),(0,n.jsx)(u.A,{children:(0,n.jsx)(h.A,{color:"primary",onClick:At,"aria-label":"Close",children:X("supportButton.close")})})]})]}):null}},14209:(H,b,t)=>{"use strict";t.d(b,{X:()=>et});var n=t(31085),a=t(25301),d=t(10394),x=t(29365),m=t(87051),h=t(58837),u=t(54917),g=t(72501),p=t(83313),y=t(89019),E=t(62461),v=t(68887),P=t(63798),T=t(64704),M=t(6774),O=t(75625),B=t(65859),$=t(45917),D=t(5416),Q=t(33494),G=t(80113),k=t(26229),W=t(46802),q=t(45250),N=t(14041),rt=t(64947),J=t(66917),Y=t(10315),X=t(87849);const lt=(0,h.A)(U=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:U.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:U.spacing(7.5),justifyContent:"space-between",borderBottom:`1px solid ${U.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:U.spacing(2)}}}),{name:"BackstageTableFilters"}),gt=U=>{const V=lt(),{onChangeFilters:yt}=U,{t:It}=(0,X.i)(Y.O),[Ct,Dt]=(0,N.useState)({...U.selectedFilters}),[Nt,se]=(0,N.useState)(!1),Bt=()=>{Dt({}),se(kt=>!kt)};return(0,N.useEffect)(()=>{yt(Ct)},[Ct,yt]),(0,n.jsxs)(d.A,{className:V.root,children:[(0,n.jsxs)(d.A,{className:V.header,children:[(0,n.jsx)(d.A,{className:V.value,children:It("table.filter.title")}),(0,n.jsx)(rt.A,{color:"primary",onClick:Bt,children:It("table.filter.clearAll")})]}),(0,n.jsx)(d.A,{className:V.filters,children:U.filters?.length&&U.filters.map(kt=>(0,n.jsx)(J.w,{triggerReset:Nt,...kt.element,selected:Ct[kt.element.label],onChange:ae=>Dt({...Ct,[kt.element.label]:ae})},kt.element.label))})]})};var xt=t(78467);function wt(U){return(0,n.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:U.colSpan,children:(0,n.jsx)(d.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"15rem"},children:(0,n.jsx)(xt.A,{size:"5rem"})})})})})}const Tt={Add:(0,N.forwardRef)((U,V)=>(0,n.jsx)(p.A,{...U,ref:V})),Check:(0,N.forwardRef)((U,V)=>(0,n.jsx)(E.A,{...U,ref:V})),Clear:(0,N.forwardRef)((U,V)=>(0,n.jsx)(T.A,{...U,ref:V})),Delete:(0,N.forwardRef)((U,V)=>(0,n.jsx)(M.A,{...U,ref:V})),DetailPanel:(0,N.forwardRef)((U,V)=>(0,n.jsx)(P.A,{...U,ref:V})),Edit:(0,N.forwardRef)((U,V)=>(0,n.jsx)(O.A,{...U,ref:V})),Export:(0,N.forwardRef)((U,V)=>(0,n.jsx)(k.A,{...U,ref:V})),Filter:(0,N.forwardRef)((U,V)=>(0,n.jsx)(B.A,{...U,ref:V})),FirstPage:(0,N.forwardRef)((U,V)=>(0,n.jsx)(D.A,{...U,ref:V})),LastPage:(0,N.forwardRef)((U,V)=>(0,n.jsx)(Q.A,{...U,ref:V})),NextPage:(0,N.forwardRef)((U,V)=>(0,n.jsx)(P.A,{...U,ref:V})),PreviousPage:(0,N.forwardRef)((U,V)=>(0,n.jsx)(v.A,{...U,ref:V})),ResetSearch:(0,N.forwardRef)((U,V)=>(0,n.jsx)(T.A,{...U,ref:V})),Search:(0,N.forwardRef)((U,V)=>(0,n.jsx)($.A,{...U,ref:V})),SortArrow:(0,N.forwardRef)((U,V)=>(0,n.jsx)(y.A,{...U,ref:V})),ThirdStateCheck:(0,N.forwardRef)((U,V)=>(0,n.jsx)(G.A,{...U,ref:V})),ViewColumn:(0,N.forwardRef)((U,V)=>(0,n.jsx)(W.A,{...U,ref:V}))};function dt(U,V){const yt=V.split(".");let It=U[yt[0]];for(let Ct=1;Ct<yt.length;++Ct){if(It===void 0)return It;const Dt=yt[Ct];It=It[Dt]}return It}const ct=(0,m.A)(U=>({header:{padding:U.spacing(1,2,1,2.5),borderTop:`1px solid ${U.palette.grey.A100}`,borderBottom:`1px solid ${U.palette.grey.A100}`,fontWeight:U.typography.fontWeightBold,position:"static",wordBreak:"normal",textTransform:"uppercase"}}),{name:"BackstageTableHeader"})(a.rV),mt=(0,m.A)(U=>({root:{padding:U.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:U.typography.fontWeightBold}},searchField:{paddingRight:U.spacing(2)}}),{name:"BackstageTableToolbar"})(a.Nb),pt=(0,h.A)(U=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:U.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),St=(0,h.A)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"});function Ot(U,V){return U.map(yt=>{const It=yt.headerStyle??{};let Ct=yt.cellStyle||{};if(yt.highlight)if(It.color=V.palette.textContrast,typeof Ct=="object")Ct.fontWeight=V.typography.fontWeightBold;else{const Dt=Ct;Ct=(Nt,se,Bt)=>({...Dt(Nt,se,Bt),fontWeight:V.typography.fontWeightBold})}return{...yt,headerStyle:It,cellStyle:Ct}})}function ut(U,V){return(0,q.transform)(U,(yt,It,Ct)=>{(0,q.isEqual)(It,V[Ct])||(yt[Ct]=It)})}const At={search:"",filtersOpen:!1,filters:{}};function ht(U){const{toolbarRef:V,setSearch:yt,hasFilters:It,selectedFiltersLength:Ct,toggleFilters:Dt}=U,Nt=pt(),se=(0,N.useCallback)(Bt=>{U.onSearchChanged(Bt),yt(Bt)},[U,yt]);return It?(0,n.jsxs)(d.A,{className:Nt.root,children:[(0,n.jsxs)(d.A,{className:Nt.root,children:[(0,n.jsx)(x.A,{onClick:Dt,"aria-label":"filter list",children:(0,n.jsx)(B.A,{})}),(0,n.jsxs)(g.A,{className:Nt.title,children:["Filters (",Ct,")"]})]}),(0,n.jsx)(mt,{...U,ref:V,onSearchChanged:se})]}):(0,n.jsx)(mt,{...U,ref:V,onSearchChanged:se})}function et(U){const{data:V,columns:yt,emptyContent:It,options:Ct,title:Dt,subtitle:Nt,localization:se,filters:Bt,initialState:kt,onStateChange:ae,components:Kt,isLoading:Gt,style:Wt,...ee}=U,Ne=St(),sn=(0,u.A)(),Ge={...At,...kt},[_e,re]=(0,N.useState)(Ge.filtersOpen),qe=(0,N.useCallback)(()=>re(Ee=>!Ee),[re]),[de,Te]=(0,N.useState)(Ge.filters),[We,ue]=(0,N.useState)(Ge.search);(0,N.useEffect)(()=>{if(ae){const Ee=ut({search:We,filtersOpen:_e,filters:de},At);ae(Ee)}},[We,_e,de,ae]);const Ye=(0,N.useCallback)(Ee=>yt.find(Ze=>Ze.title===Ee)?.field,[yt]),ln=(0,N.useMemo)(()=>{if(typeof V=="function"||!de)return V;const Ee=Object.values(de);return V&&Ee.flat().length?V.filter(ze=>!!Object.entries(de).filter(([,De])=>!!De.length).every(([De,Le])=>{const Me=dt(ze,Ye(De));return Array.isArray(Me)&&Array.isArray(Le)?Me.some(ke=>Le.includes(ke)):Array.isArray(Me)?Me.includes(Le):Array.isArray(Le)?Le.includes(Me):Me===Le})):V},[V,de,Ye]),rn=Object.values(de).flat().length,on=!!Bt?.length,tn=(0,N.useCallback)(Ee=>(0,n.jsx)(ht,{setSearch:ue,hasFilters:on,selectedFiltersLength:rn,toggleFilters:qe,...Ee}),[qe,on,rn,ue]),Re=typeof V!="function"&&V.length===0,Ke=yt.length,Qe=(0,N.useMemo)(()=>vt({hasNoRows:Re,emptyContent:It,columnCount:Ke,loading:Gt}),[Re,It,Ke,Gt]);return(0,n.jsxs)(d.A,{className:Ne.root,children:[_e&&V&&typeof V!="function"&&Bt?.length&&(0,n.jsx)(gt,{filters:nt(Bt,V,yt),selectedFilters:de,onChangeFilters:Te}),(0,n.jsx)(a.Ay,{components:{Header:ct,Body:Qe,Toolbar:tn,...Kt},options:Ct,columns:Ot(yt,sn),icons:Tt,title:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.A,{variant:"h5",component:"h2",children:Dt}),Nt&&(0,n.jsx)(g.A,{color:"textSecondary",variant:"body1",children:Nt})]}),data:ln,style:{width:"100%",...Wt},localization:{toolbar:{searchPlaceholder:"Search",searchTooltip:"Search"},...se},...ee})]})}et.icons=Object.freeze(Tt);function vt({columnCount:U,emptyContent:V,hasNoRows:yt,loading:It}){return Ct=>It?(0,n.jsx)(wt,{colSpan:U}):V&&yt?(0,n.jsx)("tbody",{children:(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:U,children:V})})}):(0,n.jsx)(a.C6,{...Ct})}function nt(U,V,yt){const It=Dt=>{const Nt=new Set,se=Bt=>{Bt!=null&&Nt.add(Bt)};return V&&V.forEach(Bt=>{const kt=dt(Bt,yt.find(ae=>ae.title===Dt)?.field);Array.isArray(kt)?kt.forEach(se):se(kt)}),Nt},Ct=Dt=>({placeholder:"All results",label:Dt.column,multiple:Dt.type==="multiple-select",items:[...It(Dt.column)].sort().map(Nt=>({label:Nt,value:Nt}))});return U.map(Dt=>({type:Dt.type,element:Ct(Dt)}))}},88640:(H,b,t)=>{"use strict";t.d(b,{B:()=>Q});var n=t(31085),a=t(268),d=t(58837),x=t(8973),m=t(29655),h=t(91567),u=t(42899),g=t(72501),p=t(9181),y=t(6924),E=t(14041),v=t(4650);const P=(G,k)=>(k.palette.type==="light"?a.e$:a.a)(k.palette[G].light,.6),T=(G,k)=>(k.palette.type==="light"?a.a:a.e$)(k.palette[G].light,.9),M=(0,d.A)(G=>({root:{marginRight:G.spacing(1),fill:({severity:k})=>P(k,G)}})),O=({severity:G})=>{const k=M({severity:G});return(0,n.jsx)(p.A,{classes:k})},B=({severity:G})=>{const k=M({severity:G});return(0,n.jsx)(y.A,{classes:k})},$=(0,d.A)(G=>({panel:{backgroundColor:({severity:k})=>T(k,G),color:({severity:k})=>P(k,G),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:k})=>P(k,G),fontWeight:G.typography.fontWeightBold},markdownContent:{"& p":{display:"inline"}},message:{width:"100%",display:"block",color:({severity:k})=>P(k,G),backgroundColor:({severity:k})=>T(k,G)},details:{width:"100%",display:"block",color:G.palette.textContrast,backgroundColor:G.palette.background.default,border:`1px solid ${G.palette.border}`,padding:G.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"}),D=G=>G.charAt(0).toLocaleUpperCase("en-US")+G.slice(1);function Q(G){const{severity:k="warning",title:W,titleFormat:q,message:N,children:rt,defaultExpanded:J}=G,Y=$({severity:k}),X=D(k)+(W?`: ${W}`:"");return(0,n.jsxs)(x.A,{defaultExpanded:J??!1,className:Y.panel,role:"alert",children:[(0,n.jsxs)(m.A,{expandIcon:(0,n.jsx)(B,{severity:k}),className:Y.summary,children:[(0,n.jsx)(O,{severity:k}),(0,n.jsx)(g.A,{className:Y.summaryText,variant:"subtitle1",children:q==="markdown"?(0,n.jsx)(v.h,{content:X,className:Y.markdownContent}):X})]}),(N||rt)&&(0,n.jsx)(h.A,{children:(0,n.jsxs)(u.A,{container:!0,children:[N&&(0,n.jsx)(u.A,{item:!0,xs:12,children:(0,n.jsx)(g.A,{className:Y.message,variant:"body1",children:N})}),rt&&(0,n.jsx)(u.A,{item:!0,xs:12,className:Y.details,children:rt})]})})]})}},10795:(H,b,t)=>{"use strict";t.d(b,{l:()=>h});var n=t(72427),a=t(65461),d=t(10315),x=t(87849);const m=()=>{const{t:u}=(0,x.i)(d.O);return{url:"https://github.com/backstage/backstage/issues",items:[{title:u("supportConfig.default.title"),icon:"warning",links:[{title:u("supportConfig.default.linkTitle"),url:"https://github.com/backstage/backstage/blob/master/app-config.yaml"}]}]}};function h(){const p=(0,n.Q2)().get(a.U)?.getOptionalConfig("app.support"),y=m();return p?{url:p.getString("url"),items:p.getConfigArray("items").flatMap(E=>({title:E.getString("title"),icon:E.getOptionalString("icon"),links:(E.getOptionalConfigArray("links")??[]).flatMap(v=>({url:v.getString("url"),title:v.getOptionalString("title")??""}))}))}:y}},31129:(H,b,t)=>{"use strict";t.d(b,{Gg:()=>B,KG:()=>$,NT:()=>T,z9:()=>m});var n=t(31085),a=t(82266),d=t(27799),x=t(14041);function m(D){const{id:Q,Fallback:G=d.A,...k}=D,q=(0,a.n)().getSystemIcon(Q)??G;return(0,n.jsx)(q,{...k})}function h(D){return _jsx(m,{id:"brokenImage",...D})}function u(D){return _jsx(m,{id:"catalog",...D})}function g(D){return _jsx(m,{id:"chat",...D})}function p(D){return _jsx(m,{id:"dashboard",...D})}function y(D){return _jsx(m,{id:"docs",...D})}function E(D){return _jsx(m,{id:"email",...D})}function v(D){return _jsx(m,{id:"github",...D})}function P(D){return _jsx(m,{id:"group",...D})}function T(D){return(0,n.jsx)(m,{id:"help",...D})}function M(D){return _jsx(m,{id:"user",...D})}function O(D){return _jsx(m,{id:"warning",...D})}function B(D){return(0,n.jsx)(m,{id:"star",...D})}function $(D){return(0,n.jsx)(m,{id:"unstarred",...D})}},26280:(H,b,t)=>{"use strict";t.d(b,{U:()=>u});var n=t(31085),a=t(58837),d=t(53373),x=t.n(d),m=t(14041);const h=(0,a.A)(g=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:g.spacing(3),paddingBottom:g.spacing(3),paddingLeft:g.spacing(2),paddingRight:g.spacing(2),[g.breakpoints.up("sm")]:{paddingLeft:g.spacing(3),paddingRight:g.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function u(g){const{className:p,stretch:y,noPadding:E,children:v,...P}=g,T=h();return(0,n.jsx)("article",{...P,className:x()(T.root,p,{[T.stretch]:y,[T.noPadding]:E}),children:v})}},59428:(H,b,t)=>{"use strict";t.d(b,{d:()=>y});var n=t(31085),a=t(10394),d=t(58837),x=t(72501),m=t(14041),h=t(93285);const u=E=>(0,d.A)(v=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:v.spacing(2),textAlign:E.textAlign},leftItemsBox:{flex:"1 1 auto",minWidth:0,overflow:"visible"},rightItemsBox:{flex:"0 1 auto",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginLeft:v.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}),g=({title:E,className:v})=>(0,n.jsx)(x.A,{variant:"h4",component:"h2",className:v,"data-testid":"header-title",children:E}),p=({description:E,className:v})=>E?(0,n.jsx)(x.A,{variant:"body2",className:v,"data-testid":"header-description",children:E}):null;function y(E){const{description:v,title:P,titleComponent:T=void 0,children:M,descriptionComponent:O=void 0,textAlign:B="left"}=E,$=u({textAlign:B})(),D=T||(0,n.jsx)(g,{title:P,className:$.title}),Q=O||(0,n.jsx)(p,{description:v,className:$.description});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.m,{title:P}),(0,n.jsxs)(a.A,{className:$.container,children:[(0,n.jsxs)(a.A,{className:$.leftItemsBox,children:[D,Q]}),(0,n.jsx)(a.A,{className:$.rightItemsBox,children:M})]})]})}},12173:(H,b,t)=>{"use strict";t.d(b,{M:()=>$});var n=t(31085),a=t(42899),d=t(58837),x=t(72501),m=t(14041),h=t(18690),u=t(72072),g=t(10795);const p=t.p+"static/mic-drop.fe3ef4d0..svg",y=(0,d.A)(D=>({micDrop:{maxWidth:"60%",bottom:D.spacing(2),right:D.spacing(2),[D.breakpoints.down("xs")]:{maxWidth:"96%",bottom:"unset",right:"unset",margin:D.spacing(10,"auto",4)}}}),{name:"BackstageErrorPageMicDrop"}),E=()=>{const D=y();return(0,n.jsx)("img",{src:p,className:D.micDrop,alt:"Girl dropping mic from her hands"})};var v=t(77310),P=t(87849),T=t(10315);const M=(0,d.A)(D=>({title:{paddingBottom:D.spacing(5),[D.breakpoints.down("xs")]:{paddingBottom:D.spacing(4),fontSize:D.typography.h3.fontSize}}}),{name:"BackstageErrorPageStackDetails"});function O(D){const{stack:Q}=D,G=M(),{t:k}=(0,P.i)(T.O),[W,q]=(0,m.useState)(!1);return W?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.A,{variant:"h6",className:G.title,children:(0,n.jsx)(u.N_,{to:"#",onClick:()=>q(!1),children:k("errorPage.showLessDetails")})}),(0,n.jsx)(v.z,{text:Q,language:"text",showCopyCodeButton:!0,showLineNumbers:!0})]}):(0,n.jsx)(x.A,{variant:"h6",className:G.title,children:(0,n.jsx)(u.N_,{to:"#",onClick:()=>q(!0),children:k("errorPage.showMoreDetails")})})}const B=(0,d.A)(D=>({container:{padding:D.spacing(8),[D.breakpoints.down("xs")]:{padding:D.spacing(2)}},title:{paddingBottom:D.spacing(5),[D.breakpoints.down("xs")]:{paddingBottom:D.spacing(4),fontSize:D.typography.h3.fontSize}},subtitle:{color:D.palette.textSubtle}}),{name:"BackstageErrorPage"});function $(D){const{status:Q="",statusMessage:G,additionalInfo:k,supportUrl:W,stack:q}=D,N=B(),rt=(0,h.Zp)(),J=(0,g.l)(),{t:Y}=(0,P.i)(T.O);return(0,n.jsxs)(a.A,{container:!0,className:N.container,children:[(0,n.jsxs)(a.A,{item:!0,xs:12,sm:8,md:4,children:[(0,n.jsx)(x.A,{"data-testid":"error",variant:"body1",className:N.subtitle,children:Y("errorPage.subtitle",{status:Q,statusMessage:G})}),(0,n.jsx)(x.A,{variant:"body1",className:N.subtitle,children:k}),(0,n.jsx)(x.A,{variant:"h2",className:N.title,children:Y("errorPage.title")}),(0,n.jsxs)(x.A,{variant:"h6",className:N.title,children:[(0,n.jsx)(u.N_,{to:"#","data-testid":"go-back-link",onClick:()=>rt(-1),children:Y("errorPage.goBack")}),"... or please"," ",(0,n.jsx)(u.N_,{to:W||J.url,children:"contact support"})," if you think this is a bug."]}),q&&(0,n.jsx)(O,{stack:q})]}),(0,n.jsx)(E,{})]})}},69814:(H,b,t)=>{"use strict";t.d(b,{Y:()=>rt});var n=t(31085),a=t(72427),d=t(65461),x=t(10394),m=t(42899),h=t(58837),u=t(71677),g=t(72501),p=t(14041),y=t(93285),E=t(72072),v=t(45634),P=t(58007),T=t(8109),M=t(55197),O=t(87051);const B=(0,O.A)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(g.A),$=(0,O.A)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(x.A),D=(0,O.A)({root:{fontStyle:"italic"}},{name:"BreadcrumbsCurrentPage"})(x.A);function Q(J){const{children:Y,...X}=J,[lt,gt]=p.useState(null),xt=p.Children.toArray(Y),[wt,Tt,...dt]=xt,ct=dt.length?dt.pop():xt[xt.length-1],mt=xt.length>3,pt=ut=>{gt(ut.currentTarget)},St=()=>{gt(null)},Ot=!!lt;return(0,n.jsxs)(p.Fragment,{children:[(0,n.jsxs)(v.A,{"aria-label":"breadcrumb",...X,children:[xt.length>1&&(0,n.jsx)($,{clone:!0,children:wt}),xt.length>2&&(0,n.jsx)($,{clone:!0,children:Tt}),mt&&(0,n.jsx)(B,{onClick:pt,children:"..."}),(0,n.jsx)(D,{children:ct})]}),(0,n.jsx)(M.Ay,{open:Ot,anchorEl:lt,onClose:St,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,n.jsx)(P.A,{children:dt.map((ut,At)=>(0,n.jsx)(T.A,{button:!0,children:(0,n.jsx)($,{clone:!0,children:ut})},At))})})]})}var G=t(73524);const k=(0,h.A)(J=>({header:{gridArea:"pageHeader",padding:J.spacing(3),width:"100%",boxShadow:J.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:J.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[J.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:J.page.fontColor,wordBreak:"break-word",fontSize:J.typography.h3.fontSize,marginBottom:0},subtitle:{color:J.page.fontColor,opacity:.8,display:"inline-block",marginTop:J.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:J.spacing(1),color:J.page.fontColor},breadcrumb:{color:J.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-J.spacing(.3),marginBottom:J.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-J.spacing(.3),marginBottom:J.spacing(.3)}}),{name:"BackstageHeader"}),W=({type:J,typeLink:Y,classes:X,pageTitle:lt})=>J?Y?(0,n.jsxs)(Q,{className:X.breadcrumb,children:[(0,n.jsx)(E.N_,{to:Y,children:J}),(0,n.jsx)(g.A,{children:lt})]}):(0,n.jsx)(g.A,{className:X.type,children:J}):null,q=({pageTitle:J,classes:Y,tooltip:X})=>{const{contentRef:lt}=(0,G.H)(),gt=(0,n.jsx)(g.A,{ref:lt,tabIndex:-1,className:Y.title,variant:"h1",children:J});return X?(0,n.jsx)(u.Ay,{title:X,placement:"top-start",children:gt}):gt},N=({classes:J,subtitle:Y})=>Y?typeof Y!="string"?(0,n.jsx)(n.Fragment,{children:Y}):(0,n.jsx)(g.A,{className:J.subtitle,variant:"subtitle2",component:"span",children:Y}):null;function rt(J){const{children:Y,pageTitleOverride:X,style:lt,subtitle:gt,title:xt,tooltip:wt,type:Tt,typeLink:dt}=J,ct=k(),pt=(0,a.gf)(d.U).getOptionalString("app.title")||"Backstage",St=X||xt,Ot=xt||X,ut=`${St} | %s | ${pt}`,At=`${St} | ${pt}`;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.m,{titleTemplate:ut,defaultTitle:At}),(0,n.jsxs)("header",{style:lt,className:ct.header,children:[(0,n.jsxs)(x.A,{className:ct.leftItemsBox,children:[(0,n.jsx)(W,{classes:ct,type:Tt,typeLink:dt,pageTitle:Ot}),(0,n.jsx)(q,{classes:ct,pageTitle:Ot,tooltip:wt}),(0,n.jsx)(N,{classes:ct,subtitle:gt})]}),(0,n.jsx)(m.A,{container:!0,className:ct.rightItemsBox,spacing:4,children:Y})]})]})}},24504:(H,b,t)=>{"use strict";t.d(b,{Y:()=>h});var n=t(31085),a=t(14041),d=t(58837),x=t(50868);const m=(0,d.A)(u=>({root:{display:"grid",gridTemplateAreas:"'pageHeader pageHeader pageHeader' 'pageSubheader pageSubheader pageSubheader' 'pageNav pageContent pageSidebar'",gridTemplateRows:"max-content auto 1fr",gridTemplateColumns:"auto 1fr auto",overflowY:"auto",height:"100vh",[u.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function h(u){const{themeId:g,children:p}=u,y=m();return(0,n.jsx)(x.A,{theme:E=>({...E,page:E.getPageTheme({themeId:g})}),children:(0,n.jsx)("main",{className:y.root,children:p})})}},27155:(H,b,t)=>{"use strict";t.d(b,{d:()=>m});var n=t(31085),a=t(14041),d=t(69814),x=t(24504);function m(h){const{themeId:u,children:g,...p}=h;return(0,n.jsxs)(x.Y,{themeId:u,children:[(0,n.jsx)(d.Y,{...p}),g]})}},73524:(H,b,t)=>{"use strict";t.d(b,{G:()=>v,H:()=>P});var n=t(31085),a=t(10394),d=t(58837),x=t(5893),m=t(14041),h=t(72664),u=function(T){return T.SIDEBAR_PIN_STATE="sidebarPinState",T}(u||{});const g={getSidebarPinState(){let T;try{T=JSON.parse(window.localStorage.getItem("sidebarPinState")||"true")}catch{return!0}return!!T},setSidebarPinState(T){return window.localStorage.setItem("sidebarPinState",JSON.stringify(T))}};var p=t(34435);const y=(0,d.A)(T=>({root:{width:"100%",transition:"padding-left 0.1s ease-out",isolation:"isolate",[T.breakpoints.up("sm")]:{paddingLeft:M=>M.isPinned?M.sidebarConfig.drawerWidthOpen:M.sidebarConfig.drawerWidthClosed},[T.breakpoints.down("xs")]:{paddingBottom:M=>M.sidebarConfig.mobileSidebarHeight},"@media print":{padding:"0px !important"}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),E=(0,m.createContext)({content:{contentRef:void 0}});function v(T){const[M,O]=(0,m.useState)(()=>g.getSidebarPinState()),{sidebarConfig:B}=(0,m.useContext)(h.yY),$=(0,m.useRef)(null),D=(0,m.useMemo)(()=>({content:{contentRef:$}}),[$]);(0,m.useEffect)(()=>{g.setSidebarPinState(M)},[M]);const Q=(0,x.A)(W=>W.breakpoints.down("xs"),{noSsr:!0}),G=()=>O(!M),k=y({isPinned:M,sidebarConfig:B});return(0,n.jsx)(p.qj,{value:{isPinned:M,toggleSidebarPinState:G,isMobile:Q},children:(0,n.jsx)(E.Provider,{value:D,children:(0,n.jsx)(a.A,{className:k.root,children:T.children})})})}function P(){const{content:T}=(0,m.useContext)(E);return{focusContent:(0,m.useCallback)(()=>{T?.contentRef?.current?.focus()},[T]),contentRef:T?.contentRef}}},34435:(H,b,t)=>{"use strict";t.d(b,{Ut:()=>p,qj:()=>g});var n=t(31085),a=t(43836),d=t(10602),x=t(14041);const m={isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1},h=(0,x.createContext)(m),u=(0,a.tK)("sidebar-pin-state-context");function g(y){const{children:E,value:v}=y;return(0,n.jsx)(h.Provider,{value:v,children:(0,n.jsx)(u.Provider,{value:(0,d.B)({1:v}),children:E})})}const p=()=>{const y=(0,x.useContext)(u),E=(0,x.useContext)(h);if(y===void 0)return E||m;const v=y.atVersion(1);if(v===void 0)throw new Error("No context found for version 1.");return v}},72664:(H,b,t)=>{"use strict";t.d(b,{Rv:()=>h,U1:()=>E,hC:()=>m,i8:()=>g,yY:()=>y});var n=t(14041);const a=72,d=24,x=18,m={drawerWidthClosed:a,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:a,iconSize:a-d*2,iconPadding:d,selectedIndicatorWidth:3,userBadgePadding:x,userBadgeDiameter:a-x*2,mobileSidebarHeight:56},h=v=>({...m,...v,iconContainerWidth:m.drawerWidthClosed,iconSize:m.drawerWidthClosed-m.iconPadding*2,userBadgeDiameter:m.drawerWidthClosed-m.userBadgePadding*2}),u={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:m.defaultOpenDelayMs+200},g=v=>({...u,...v}),p="@backstage/core/sidebar-intro-dismissed",y=(0,n.createContext)({sidebarConfig:m,submenuConfig:u}),E=(0,n.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}})},10315:(H,b,t)=>{"use strict";t.d(b,{O:()=>a});var n=t(93184);const a=(0,n.h)({id:"core-components",messages:{signIn:{title:"Sign In",loginFailed:"Login failed",customProvider:{title:"Custom User",subtitle:`Enter your own User ID and credentials.
|
|
1
|
+
(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8792],{86519:(H,b,t)=>{"use strict";t.d(b,{c:()=>n});const n=Symbol.for("CATALOG_FILTER_EXISTS_0e15b590c0b343a2bae3e787e84c2111")},72348:(H,b,t)=>{"use strict";t.d(b,{P:()=>d,_P:()=>a,oQ:()=>n});const n="default",a="backstage.io/view-url",d="backstage.io/edit-url",x="kubernetes.io/api-server",m="kubernetes.io/api-server-certificate-authority",h="kubernetes.io/auth-provider"},6820:(H,b,t)=>{"use strict";t.d(b,{KU:()=>x,U2:()=>m,sM:()=>d});var n=t(72348);function a(h){let u=h.indexOf(":");const g=h.indexOf("/");g!==-1&&g<u&&(u=-1);const p=u===-1?void 0:h.slice(0,u),y=g===-1?void 0:h.slice(u+1,g),E=h.slice(Math.max(u+1,g+1));if(p===""||y===""||E==="")throw new TypeError(`Entity reference "${h}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:p,namespace:y,name:E}}function d(h){return{kind:h.kind,namespace:h.metadata.namespace||n.oQ,name:h.metadata.name}}function x(h,u){if(!h)throw new Error("Entity reference must not be empty");const g=u?.defaultKind,p=u?.defaultNamespace||n.oQ;let y,E,v;if(typeof h=="string"){const P=a(h);y=P.kind??g,E=P.namespace??p,v=P.name}else y=h.kind??g,E=h.namespace??p,v=h.name;if(y)if(E){if(!v){const P=JSON.stringify(h);throw new Error(`Entity reference ${P} had missing or empty name`)}}else{const P=JSON.stringify(h);throw new Error(`Entity reference ${P} had missing or empty namespace`)}else{const P=JSON.stringify(h);throw new Error(`Entity reference ${P} had missing or empty kind (e.g. did not start with "component:" or similar)`)}return{kind:y,namespace:E,name:v}}function m(h){let u,g,p;return"metadata"in h?(u=h.kind,g=h.metadata.namespace??n.oQ,p=h.metadata.name):(u=h.kind,g=h.namespace??n.oQ,p=h.name),`${u.toLocaleLowerCase("en-US")}:${g.toLocaleLowerCase("en-US")}/${p.toLocaleLowerCase("en-US")}`}},51372:(H,b,t)=>{"use strict";t.d(b,{fT:()=>g,jn:()=>P,nC:()=>u,sA:()=>T,vv:()=>n});const n="ownedBy",a="ownerOf",d="consumesApi",x="apiConsumedBy",m="providesApi",h="apiProvidedBy",u="dependsOn",g="dependencyOf",p="parentOf",y="childOf",E="memberOf",v="hasMember",P="partOf",T="hasPart"},17736:(H,b,t)=>{"use strict";t.d(b,{Eo:()=>n,I4:()=>d});const n="backstage.io/managed-by-location",a="backstage.io/managed-by-origin-location",d="backstage.io/source-location"},78692:(H,b,t)=>{"use strict";t.d(b,{Cr:()=>h,KL:()=>m,aY:()=>x});var n=t(6820),a=t(17736);const d=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;function x(u){if(typeof u!="string")throw new TypeError(`Unable to parse location ref '${u}', unexpected argument ${typeof u}`);const g=u.indexOf(":");if(g<0)throw new TypeError(`Unable to parse location ref '${u}', expected '<type>:<target>', e.g. 'url:https://host/path'`);const p=u.substring(0,g).trim(),y=u.substring(g+1).trim();if(!p||!y)throw new TypeError(`Unable to parse location ref '${u}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if(p==="http"||p==="https")throw new TypeError(`Invalid location ref '${u}', please prefix it with 'url:', e.g. 'url:${u}'`);if(d.test(y))throw new TypeError(`Invalid location ref '${u}', target is a javascript: URL`);return{type:p,target:y}}function m(u){const{type:g,target:p}=u;if(g){if(!p)throw new TypeError("Unable to stringify location ref, empty target")}else throw new TypeError("Unable to stringify location ref, empty type");if(d.test(p))throw new TypeError(`Invalid location ref '${g}:${p}', target is a javascript: URL`);return`${g}:${p}`}function h(u){const g=u.metadata?.annotations?.[a.I4]??u.metadata?.annotations?.[a.Eo];if(!g)throw new Error(`Entity '${(0,n.U2)(u)}' is missing location`);return x(g)}},77310:(H,b,t)=>{"use strict";t.d(b,{z:()=>p});var n=t(31085),a=t(10394),d=t(54917),x=t(14041),m=t(69578),h=t(40697),u=t(25577),g=t(37916);function p(y){const{text:E,language:v,showLineNumbers:P=!1,highlightedNumbers:T,customStyle:M,showCopyCodeButton:O=!1}=y,B=(0,d.A)(),$=B.palette.type==="dark"?h.A:u.A,D=B.palette.type==="dark"?"#256bf3":"#e6ffed";return(0,n.jsxs)(a.A,{position:"relative",children:[(0,n.jsx)(m.A,{customStyle:M,language:v,style:$,showLineNumbers:P,wrapLines:!0,lineNumberStyle:{color:B.palette.textVerySubtle},lineProps:Q=>T?.includes(Q)?{style:{backgroundColor:D}}:{},children:E}),O&&(0,n.jsx)(a.A,{position:"absolute",top:0,right:0,children:(0,n.jsx)(g.l,{text:E})})]})}},37916:(H,b,t)=>{"use strict";t.d(b,{l:()=>E});var n=t(31085),a=t(72427),d=t(39837),x=t(29365),m=t(71677),h=t(99594),u=t(14041),g=t(36338),p=t(10315),y=t(87849);function E(v){const{t:P}=(0,y.i)(p.O),{text:T,tooltipDelay:M=1e3,tooltipText:O=P("copyTextButton.tooltipText"),"aria-label":B="Copy text"}=v,$=(0,a.gf)(d.m),[D,Q]=(0,u.useState)(!1),[{error:G},k]=(0,g.A)();(0,u.useEffect)(()=>{G&&$.post(G)},[G,$]);const W=q=>{q.stopPropagation(),Q(!0),k(T)};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(m.Ay,{id:"copy-test-tooltip",title:O,placement:"top",leaveDelay:M,onClose:()=>Q(!1),open:D,children:(0,n.jsx)(x.A,{onClick:W,"aria-label":B,children:(0,n.jsx)(h.A,{})})})})}},44186:(H,b,t)=>{"use strict";t.d(b,{p:()=>P});var n=t(31085),a=t(42899),d=t(58837),x=t(72501),m=t(14041);const h=t.p+"static/missingAnnotation.67f79e98.svg",u=t.p+"static/noInformation.4b426325.svg",g=t.p+"static/createComponent.975d1e1e.svg",p=t.p+"static/noBuild.1715fa71.svg",y=(0,d.A)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),E=({missing:T})=>{const M=y();switch(T){case"field":return(0,n.jsx)("img",{src:h,className:M.generalImg,alt:"annotation is missing"});case"info":return(0,n.jsx)("img",{src:u,alt:"no Information",className:M.generalImg});case"content":return(0,n.jsx)("img",{src:g,alt:"create Component",className:M.generalImg});case"data":return(0,n.jsx)("img",{src:p,alt:"no Build",className:M.generalImg});default:return null}},v=(0,d.A)(T=>({root:{backgroundColor:T.palette.background.default,padding:T.spacing(2,0,0,0)},action:{marginTop:T.spacing(2)},imageContainer:{position:"relative"}}),{name:"BackstageEmptyState"});function P(T){const{title:M,description:O,missing:B,action:$}=T,D=v();return(0,n.jsxs)(a.A,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:D.root,spacing:2,children:[(0,n.jsx)(a.A,{item:!0,xs:12,md:6,children:(0,n.jsxs)(a.A,{container:!0,direction:"column",children:[(0,n.jsx)(a.A,{item:!0,xs:!0,children:(0,n.jsx)(x.A,{variant:"h5",children:M})}),(0,n.jsx)(a.A,{item:!0,xs:!0,children:(0,n.jsx)(x.A,{variant:"body1",children:O})}),(0,n.jsx)(a.A,{item:!0,xs:!0,className:D.action,children:$})]})}),(0,n.jsx)(a.A,{item:!0,xs:12,md:6,className:D.imageContainer,children:typeof B=="string"?(0,n.jsx)(E,{missing:B}):B.customImage})]})}},22020:(H,b,t)=>{"use strict";t.d(b,{b:()=>E});var n=t(31085),a=t(58837),d=t(58007),x=t(8109),m=t(5951),h=t(14041),u=t(37916),g=t(88640);const p=(0,a.A)(v=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:v.spacing(2)},divider:{margin:v.spacing(2)}}),{name:"BackstageErrorPanel"}),y=({error:v,message:P,stack:T,children:M})=>{const O=p();return(0,n.jsxs)(d.A,{dense:!0,children:[(0,n.jsxs)(x.A,{alignItems:"flex-start",children:[(0,n.jsx)(m.A,{classes:{secondary:O.text},primary:"Error",secondary:v}),(0,n.jsx)(u.l,{text:v})]}),(0,n.jsxs)(x.A,{alignItems:"flex-start",children:[(0,n.jsx)(m.A,{classes:{secondary:O.text},primary:"Message",secondary:P}),(0,n.jsx)(u.l,{text:P})]}),T&&(0,n.jsxs)(x.A,{alignItems:"flex-start",children:[(0,n.jsx)(m.A,{classes:{secondary:O.text},primary:"Stack Trace",secondary:T}),(0,n.jsx)(u.l,{text:T})]}),M]})};function E(v){const{title:P,error:T,defaultExpanded:M,titleFormat:O,children:B}=v;return(0,n.jsx)(g.B,{severity:"error",title:P??T.message,defaultExpanded:M,titleFormat:O,children:(0,n.jsx)(y,{error:T.name,message:T.message,stack:T.stack,children:B})})}},18956:(H,b,t)=>{"use strict";t.d(b,{m:()=>u});var n=t(31085),a=t(14041),d=t(72501),x=t(58837),m=t(31129);const h=(0,x.A)(()=>({icon:{color:"#f3ba37",cursor:"pointer",display:"inline-flex"},iconBorder:{color:"inherit",cursor:"pointer",display:"inline-flex"}}),{name:"BackstageFavoriteToggleIcon"});function u(p){const{isFavorite:y}=p,E=h();return(0,n.jsx)(d.A,{component:"span",className:y?E.icon:E.iconBorder,children:y?(0,n.jsx)(m.Gg,{}):(0,n.jsx)(m.KG,{})})}function g(p){const{id:y,title:E,isFavorite:v,onToggle:P,...T}=p;return _jsx(Tooltip,{id:y,title:E,children:_jsx(IconButton,{"aria-label":E,id:y,onClick:()=>P(!v),color:"inherit",...T,children:_jsx(u,{isFavorite:v})})})}},72072:(H,b,t)=>{"use strict";t.d(b,{N_:()=>J});var n=t(31085),a=t(72427),d=t(65461),x=t(93368),m=t(49203),h=t(58837),u=t(72501),g=t(53373),p=t.n(g),y=t(45250),E=t.n(y),v=t(14041),P=t(18690),T=t(73657),M=t(39330),O=t(82266);function B(){const[Y]=(0,P.AV)((0,n.jsx)(P.qh,{index:!0,element:(0,n.jsx)("div",{})}));return!Y.index}const $=(0,h.A)(Y=>({visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",overflow:"hidden",position:"absolute",userSelect:"none",whiteSpace:"nowrap",height:1,width:1},externalLink:{position:"relative"},externalLinkIcon:{verticalAlign:"bottom",marginLeft:Y.spacing(.5)}}),{name:"Link"}),D=()=>{const X=(0,O.n)().getSystemIcon("externalLink")||M.A,lt=$();return(0,n.jsx)(X,{className:lt.externalLinkIcon})},Q=Y=>/^([a-z+.-]+):/.test(Y),G=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,k=window.open;if(k&&!k.__backstage){const Y=function(...lt){const gt=String(lt[0]);if(G.test(gt))throw new Error("Rejected window.open() with a javascript: URL as a security precaution");return k.apply(this,lt)};Y.__backstage=!0,window.open=Y}const W=()=>{try{return(0,a.gf)(d.U).getOptionalString("app.baseUrl")}catch{return}},q=()=>{const Y="http://sample.dev",X=W()??"/",{pathname:lt}=new URL(X,Y);return(0,y.trimEnd)(lt,"/")},N=Y=>{let X=String(Y);const lt=q(),gt=Q(X),xt=X.startsWith(lt);return!gt&&!xt&&(X=lt.concat(X)),X},rt=Y=>Y instanceof Array?Y.map(rt).join(" ").trim():typeof Y=="object"&&Y?rt(Y?.props?.children):["string","number"].includes(typeof Y)?String(Y):"",J=v.forwardRef(({onClick:Y,noTrack:X,externalLinkIcon:lt,...gt},xt)=>{const wt=$(),Tt=(0,x.s)(),dt=B()?N(gt.to):gt.to,ct=rt(gt.children)||dt,mt=Q(dt),pt=mt&&!!/^https?:/.exec(dt);if(G.test(dt))throw new Error("Link component rejected javascript: URL as a security precaution");const St=Ot=>{Y?.(Ot),X||Tt.captureEvent("click",ct,{attributes:{to:dt}})};return mt?(0,n.jsxs)(m.A,{...pt?{target:"_blank",rel:"noopener"}:{},...gt,...gt["aria-label"]?{"aria-label":`${gt["aria-label"]}, Opens in a new window`}:{},ref:xt,href:dt,onClick:St,className:p()(wt.externalLink,gt.className),children:[gt.children,lt&&(0,n.jsx)(D,{}),(0,n.jsx)(u.A,{component:"span",className:wt.visuallyHidden,children:", Opens in a new window"})]}):(0,n.jsx)(m.A,{...gt,ref:xt,component:T.N_,to:dt,onClick:St})})},73896:(H,b,t)=>{"use strict";t.d(b,{z:()=>h});var n=t(31085),a=t(64947),d=t(14041),x=t(72072);const m=d.forwardRef((g,p)=>(0,n.jsx)(x.N_,{ref:p,...g,color:"initial"})),h=d.forwardRef((g,p)=>(0,n.jsx)(a.A,{ref:p,component:m,...g})),u=null},4650:(H,b,t)=>{"use strict";t.d(b,{h:()=>E});var n=t(31085),a=t(58837),d=t(45872),x=t(61125),m=t(14041),h=t(77310);const u=(0,a.A)(v=>({markdown:{"& table":{borderCollapse:"collapse",border:`1px solid ${v.palette.border}`},"& th, & td":{border:`1px solid ${v.palette.border}`,padding:v.spacing(1)},"& td":{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:v.spacing(3,2,3,2.5),borderBottom:0},"& th":{backgroundColor:v.palette.background.paper},"& tr":{backgroundColor:v.palette.background.paper},"& tr:nth-child(odd)":{backgroundColor:v.palette.background.default},"& a":{color:v.palette.link},"& img":{maxWidth:"100%"}}}),{name:"BackstageMarkdownContent"}),g=(v,P)=>P?typeof P=="string"?v+P:m.Children.toArray(P.props.children).reduce(g,v):v,p=({level:v,children:P})=>{const O=m.Children.toArray(P).reduce(g,"").toLocaleLowerCase("en-US").replace(/\W/g,"-");return m.createElement(`h${v}`,{id:O},P)},y={code:({inline:v,className:P,children:T,...M})=>{const O=String(T).replace(/\n+$/,""),B=/language-(\w+)/.exec(P||"");return!v&&B?(0,n.jsx)(h.z,{language:B[1],text:O}):(0,n.jsx)("code",{className:P,...M,children:T})},h1:p,h2:p,h3:p,h4:p,h5:p,h6:p};function E(v){const{content:P,dialect:T="gfm",linkTarget:M,transformLinkUri:O,transformImageUri:B,className:$}=v,D=u();return(0,n.jsx)(d.$,{remarkPlugins:T==="gfm"?[x.A]:[],className:`${D.markdown} ${$??""}`.trim(),children:P,components:y,linkTarget:M,transformLinkUri:O,transformImageUri:B})}},68146:(H,b,t)=>{"use strict";t.d(b,{k:()=>h});var n=t(31085),a=t(10394),d=t(88951),x=t(54917),m=t(14041);function h(u){const g=(0,x.A)(),[p,y]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{const E=setTimeout(()=>y(!0),g.transitions.duration.short);return()=>clearTimeout(E)},[g.transitions.duration.short]),p?(0,n.jsx)(d.A,{...u,"data-testid":"progress"}):(0,n.jsx)(a.A,{display:"none","data-testid":"progress"})}},66917:(H,b,t)=>{"use strict";t.d(b,{w:()=>q});var n=t(31085),a=t(10394),d=t(69076),x=t(67720),m=t(95061),h=t(41857),u=t(48543),g=t(26343),p=t(81215),y=t(87051),E=t(12398),v=t(58837),P=t(72501),T=t(14041),M=t(10437);const O=(0,v.A)(N=>(0,E.A)({icon:{position:"absolute",right:N.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageClosedDropdown"}),$=()=>{const N=O();return(0,n.jsx)(M.A,{className:N.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M7.5 8L6 9.5L12.0703 15.5703L18.1406 9.5L16.6406 8L12.0703 12.5703L7.5 8Z",fill:"currentColor"})})},D=(0,v.A)(N=>(0,E.A)({icon:{position:"absolute",right:N.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageOpenedDropdown"}),G=()=>{const N=D();return(0,n.jsx)(M.A,{className:N.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M16.5 16L18 14.5L11.9297 8.42969L5.85938 14.5L7.35938 16L11.9297 11.4297L16.5 16Z",fill:"currentColor"})})},k=(0,y.A)(N=>(0,E.A)({root:{"label + &":{marginTop:N.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:N.palette.primary.main}},input:{borderRadius:N.shape.borderRadius,position:"relative",backgroundColor:N.palette.background.paper,border:"1px solid #ced4da",fontSize:N.typography.body1.fontSize,padding:N.spacing(1.25,3.25,1.25,1.5),transition:N.transitions.create(["border-color","box-shadow"]),"&:focus":{background:N.palette.background.paper,borderRadius:N.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(h.A),W=(0,v.A)(N=>(0,E.A)({formControl:{margin:N.spacing(1,0)},label:{transform:"initial",fontWeight:"bold",fontSize:N.typography.body2.fontSize,fontFamily:N.typography.fontFamily,color:N.palette.text.primary,"&.Mui-focused":{color:N.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:N.typography.body2.fontSize,fontFamily:N.typography.fontFamily,color:N.palette.text.primary,"&.Mui-focused":{color:N.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function q(N){const{multiple:rt,items:J,label:Y,placeholder:X,selected:lt,onChange:gt,triggerReset:xt,native:wt=!1,disabled:Tt=!1,margin:dt,"data-testid":ct="select"}=N,mt=W(),[pt,St]=(0,T.useState)(lt||(rt?[]:"")),[Ot,ut]=(0,T.useState)(!1);(0,T.useEffect)(()=>{St(rt?[]:"")},[xt,rt]),(0,T.useEffect)(()=>{St(lt||(rt?[]:""))},[lt,rt]);const At=nt=>{St(nt.target.value),gt(nt.target.value)},ht=nt=>{if(Tt){nt.preventDefault();return}ut(U=>rt&&!(nt.target instanceof HTMLElement)?!0:!U)},et=()=>{ut(!1)},vt=nt=>()=>{const U=pt.filter(V=>V!==nt);St(U),gt(U)};return(0,n.jsx)(a.A,{className:mt.root,children:(0,n.jsxs)(m.A,{className:mt.formControl,children:[(0,n.jsx)(u.A,{className:mt.formLabel,children:Y}),(0,n.jsxs)(p.A,{"aria-label":Y,value:pt,native:wt,disabled:Tt,"data-testid":ct,displayEmpty:!0,multiple:rt,margin:dt,onChange:At,open:Ot,onOpen:ht,onClose:et,input:(0,n.jsx)(k,{}),label:Y,renderValue:nt=>rt&&pt.length!==0?(0,n.jsx)(a.A,{className:mt.chips,children:nt.map(U=>{const V=J.find(yt=>yt.value===U);return V?(0,n.jsx)(x.A,{label:V?.label,clickable:!0,onDelete:vt(U),className:mt.chip},V?.value):!1})}):(0,n.jsx)(P.A,{children:pt.length===0?X||"":J.find(U=>U.value===nt)?.label}),IconComponent:()=>Ot?(0,n.jsx)(G,{}):(0,n.jsx)($,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[!!X&&!rt&&(0,n.jsx)(g.A,{value:[],children:X}),wt?J&&J.map(nt=>(0,n.jsx)("option",{value:nt.value,children:nt.label},nt.value)):J&&J.map(nt=>(0,n.jsxs)(g.A,{value:nt.value,children:[rt&&(0,n.jsx)(d.A,{color:"primary",checked:pt.includes(nt.value)||!1,className:mt.checkbox}),nt.label]},nt.value))]})]})})}},27586:(H,b,t)=>{"use strict";t.d(b,{Y:()=>J});var n=t(31085),a=t(82266),d=t(72427),x=t(65461),m=t(10394),h=t(64947),u=t(93453),g=t(29365),p=t(68804),y=t(5951),E=t(26343),v=t(28233),P=t(55197),T=t(58837),M=t(72501),O=t(5893),B=t(14041),$=t(10795),D=t(31129),Q=t(72072),G=t(10315),k=t(87849);const W=(0,T.A)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),q=({icon:Y})=>{const X=(0,a.n)(),lt=Y?X.getSystemIcon(Y)??D.NT:D.NT;return(0,n.jsx)(lt,{})},N=({link:Y})=>(0,n.jsx)(Q.N_,{to:Y.url,children:Y.title??Y.url}),rt=({item:Y})=>(0,n.jsxs)(E.A,{button:!1,children:[(0,n.jsx)(p.A,{children:(0,n.jsx)(q,{icon:Y.icon})}),(0,n.jsx)(y.A,{primary:Y.title,secondary:Y.links?.reduce((X,lt,gt)=>[...X,gt>0&&(0,n.jsx)("br",{},gt),(0,n.jsx)(N,{link:lt},lt.url)],[])})]});function J(Y){const{t:X}=(0,k.i)(G.O),{title:lt,items:gt,children:xt}=Y,{items:wt}=(0,$.l)(),[Tt,dt]=(0,B.useState)(!1),[ct,mt]=(0,B.useState)(null),pt=W(),St=(0,d.gf)(x.U).getOptionalConfig("app.support"),Ot=(0,O.A)(ht=>ht.breakpoints.down("sm")),ut=ht=>{mt(ht.currentTarget),dt(!0)},At=()=>{dt(!1)};return St?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.A,{display:"flex",ml:1,children:Ot?(0,n.jsx)(g.A,{color:"primary",size:"small",onClick:ut,"data-testid":"support-button","aria-label":"Support",children:(0,n.jsx)(D.NT,{})}):(0,n.jsx)(h.A,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:ut,startIcon:(0,n.jsx)(D.NT,{}),children:X("supportButton.title")})}),(0,n.jsxs)(P.Ay,{"data-testid":"support-button-popover",open:Tt,anchorEl:ct,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:At,children:[(0,n.jsxs)(v.A,{className:pt.popoverList,autoFocusItem:!!ct,children:[lt&&(0,n.jsx)(E.A,{button:!1,alignItems:"flex-start",className:pt.menuItem,children:(0,n.jsx)(M.A,{variant:"subtitle1",children:lt})}),B.Children.map(xt,(ht,et)=>(0,n.jsx)(E.A,{button:!1,alignItems:"flex-start",className:pt.menuItem,children:ht},`child-${et}`)),(gt??wt).map((ht,et)=>(0,n.jsx)(rt,{item:ht},`item-${et}`))]}),(0,n.jsx)(u.A,{children:(0,n.jsx)(h.A,{color:"primary",onClick:At,"aria-label":"Close",children:X("supportButton.close")})})]})]}):null}},14209:(H,b,t)=>{"use strict";t.d(b,{X:()=>et});var n=t(31085),a=t(25301),d=t(10394),x=t(29365),m=t(87051),h=t(58837),u=t(54917),g=t(72501),p=t(83313),y=t(89019),E=t(62461),v=t(68887),P=t(63798),T=t(64704),M=t(6774),O=t(75625),B=t(65859),$=t(45917),D=t(5416),Q=t(33494),G=t(80113),k=t(26229),W=t(46802),q=t(45250),N=t(14041),rt=t(64947),J=t(66917),Y=t(10315),X=t(87849);const lt=(0,h.A)(U=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:U.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:U.spacing(7.5),justifyContent:"space-between",borderBottom:`1px solid ${U.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:U.spacing(2)}}}),{name:"BackstageTableFilters"}),gt=U=>{const V=lt(),{onChangeFilters:yt}=U,{t:It}=(0,X.i)(Y.O),[Ct,Dt]=(0,N.useState)({...U.selectedFilters}),[Nt,se]=(0,N.useState)(!1),Bt=()=>{Dt({}),se(kt=>!kt)};return(0,N.useEffect)(()=>{yt(Ct)},[Ct,yt]),(0,n.jsxs)(d.A,{className:V.root,children:[(0,n.jsxs)(d.A,{className:V.header,children:[(0,n.jsx)(d.A,{className:V.value,children:It("table.filter.title")}),(0,n.jsx)(rt.A,{color:"primary",onClick:Bt,children:It("table.filter.clearAll")})]}),(0,n.jsx)(d.A,{className:V.filters,children:U.filters?.length&&U.filters.map(kt=>(0,n.jsx)(J.w,{triggerReset:Nt,...kt.element,selected:Ct[kt.element.label],onChange:ae=>Dt({...Ct,[kt.element.label]:ae})},kt.element.label))})]})};var xt=t(78467);function wt(U){return(0,n.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:U.colSpan,children:(0,n.jsx)(d.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"15rem"},children:(0,n.jsx)(xt.A,{size:"5rem"})})})})})}const Tt={Add:(0,N.forwardRef)((U,V)=>(0,n.jsx)(p.A,{...U,ref:V})),Check:(0,N.forwardRef)((U,V)=>(0,n.jsx)(E.A,{...U,ref:V})),Clear:(0,N.forwardRef)((U,V)=>(0,n.jsx)(T.A,{...U,ref:V})),Delete:(0,N.forwardRef)((U,V)=>(0,n.jsx)(M.A,{...U,ref:V})),DetailPanel:(0,N.forwardRef)((U,V)=>(0,n.jsx)(P.A,{...U,ref:V})),Edit:(0,N.forwardRef)((U,V)=>(0,n.jsx)(O.A,{...U,ref:V})),Export:(0,N.forwardRef)((U,V)=>(0,n.jsx)(k.A,{...U,ref:V})),Filter:(0,N.forwardRef)((U,V)=>(0,n.jsx)(B.A,{...U,ref:V})),FirstPage:(0,N.forwardRef)((U,V)=>(0,n.jsx)(D.A,{...U,ref:V})),LastPage:(0,N.forwardRef)((U,V)=>(0,n.jsx)(Q.A,{...U,ref:V})),NextPage:(0,N.forwardRef)((U,V)=>(0,n.jsx)(P.A,{...U,ref:V})),PreviousPage:(0,N.forwardRef)((U,V)=>(0,n.jsx)(v.A,{...U,ref:V})),ResetSearch:(0,N.forwardRef)((U,V)=>(0,n.jsx)(T.A,{...U,ref:V})),Search:(0,N.forwardRef)((U,V)=>(0,n.jsx)($.A,{...U,ref:V})),SortArrow:(0,N.forwardRef)((U,V)=>(0,n.jsx)(y.A,{...U,ref:V})),ThirdStateCheck:(0,N.forwardRef)((U,V)=>(0,n.jsx)(G.A,{...U,ref:V})),ViewColumn:(0,N.forwardRef)((U,V)=>(0,n.jsx)(W.A,{...U,ref:V}))};function dt(U,V){const yt=V.split(".");let It=U[yt[0]];for(let Ct=1;Ct<yt.length;++Ct){if(It===void 0)return It;const Dt=yt[Ct];It=It[Dt]}return It}const ct=(0,m.A)(U=>({header:{padding:U.spacing(1,2,1,2.5),borderTop:`1px solid ${U.palette.grey.A100}`,borderBottom:`1px solid ${U.palette.grey.A100}`,fontWeight:U.typography.fontWeightBold,position:"static",wordBreak:"normal",textTransform:"uppercase"}}),{name:"BackstageTableHeader"})(a.rV),mt=(0,m.A)(U=>({root:{padding:U.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:U.typography.fontWeightBold}},searchField:{paddingRight:U.spacing(2)}}),{name:"BackstageTableToolbar"})(a.Nb),pt=(0,h.A)(U=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:U.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),St=(0,h.A)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"});function Ot(U,V){return U.map(yt=>{const It=yt.headerStyle??{};let Ct=yt.cellStyle||{};if(yt.highlight)if(It.color=V.palette.textContrast,typeof Ct=="object")Ct.fontWeight=V.typography.fontWeightBold;else{const Dt=Ct;Ct=(Nt,se,Bt)=>({...Dt(Nt,se,Bt),fontWeight:V.typography.fontWeightBold})}return{...yt,headerStyle:It,cellStyle:Ct}})}function ut(U,V){return(0,q.transform)(U,(yt,It,Ct)=>{(0,q.isEqual)(It,V[Ct])||(yt[Ct]=It)})}const At={search:"",filtersOpen:!1,filters:{}};function ht(U){const{toolbarRef:V,setSearch:yt,hasFilters:It,selectedFiltersLength:Ct,toggleFilters:Dt}=U,Nt=pt(),se=(0,N.useCallback)(Bt=>{U.onSearchChanged(Bt),yt(Bt)},[U,yt]);return It?(0,n.jsxs)(d.A,{className:Nt.root,children:[(0,n.jsxs)(d.A,{className:Nt.root,children:[(0,n.jsx)(x.A,{onClick:Dt,"aria-label":"filter list",children:(0,n.jsx)(B.A,{})}),(0,n.jsxs)(g.A,{className:Nt.title,children:["Filters (",Ct,")"]})]}),(0,n.jsx)(mt,{...U,ref:V,onSearchChanged:se})]}):(0,n.jsx)(mt,{...U,ref:V,onSearchChanged:se})}function et(U){const{data:V,columns:yt,emptyContent:It,options:Ct,title:Dt,subtitle:Nt,localization:se,filters:Bt,initialState:kt,onStateChange:ae,components:Kt,isLoading:Gt,style:Wt,...ee}=U,Ne=St(),sn=(0,u.A)(),Ge={...At,...kt},[_e,re]=(0,N.useState)(Ge.filtersOpen),qe=(0,N.useCallback)(()=>re(Ee=>!Ee),[re]),[de,Te]=(0,N.useState)(Ge.filters),[We,ue]=(0,N.useState)(Ge.search);(0,N.useEffect)(()=>{if(ae){const Ee=ut({search:We,filtersOpen:_e,filters:de},At);ae(Ee)}},[We,_e,de,ae]);const Ye=(0,N.useCallback)(Ee=>yt.find(Ze=>Ze.title===Ee)?.field,[yt]),ln=(0,N.useMemo)(()=>{if(typeof V=="function"||!de)return V;const Ee=Object.values(de);return V&&Ee.flat().length?V.filter(ze=>!!Object.entries(de).filter(([,De])=>!!De.length).every(([De,Le])=>{const Me=dt(ze,Ye(De));return Array.isArray(Me)&&Array.isArray(Le)?Me.some(ke=>Le.includes(ke)):Array.isArray(Me)?Me.includes(Le):Array.isArray(Le)?Le.includes(Me):Me===Le})):V},[V,de,Ye]),rn=Object.values(de).flat().length,on=!!Bt?.length,tn=(0,N.useCallback)(Ee=>(0,n.jsx)(ht,{setSearch:ue,hasFilters:on,selectedFiltersLength:rn,toggleFilters:qe,...Ee}),[qe,on,rn,ue]),Re=typeof V!="function"&&V.length===0,Ke=yt.length,Qe=(0,N.useMemo)(()=>vt({hasNoRows:Re,emptyContent:It,columnCount:Ke,loading:Gt}),[Re,It,Ke,Gt]);return(0,n.jsxs)(d.A,{className:Ne.root,children:[_e&&V&&typeof V!="function"&&Bt?.length&&(0,n.jsx)(gt,{filters:nt(Bt,V,yt),selectedFilters:de,onChangeFilters:Te}),(0,n.jsx)(a.Ay,{components:{Header:ct,Body:Qe,Toolbar:tn,...Kt},options:Ct,columns:Ot(yt,sn),icons:Tt,title:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.A,{variant:"h5",component:"h2",children:Dt}),Nt&&(0,n.jsx)(g.A,{color:"textSecondary",variant:"body1",children:Nt})]}),data:ln,style:{width:"100%",...Wt},localization:{toolbar:{searchPlaceholder:"Search",searchTooltip:"Search"},...se},...ee})]})}et.icons=Object.freeze(Tt);function vt({columnCount:U,emptyContent:V,hasNoRows:yt,loading:It}){return Ct=>It?(0,n.jsx)(wt,{colSpan:U}):V&&yt?(0,n.jsx)("tbody",{children:(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:U,children:V})})}):(0,n.jsx)(a.C6,{...Ct})}function nt(U,V,yt){const It=Dt=>{const Nt=new Set,se=Bt=>{Bt!=null&&Nt.add(Bt)};return V&&V.forEach(Bt=>{const kt=dt(Bt,yt.find(ae=>ae.title===Dt)?.field);Array.isArray(kt)?kt.forEach(se):se(kt)}),Nt},Ct=Dt=>({placeholder:"All results",label:Dt.column,multiple:Dt.type==="multiple-select",items:[...It(Dt.column)].sort().map(Nt=>({label:Nt,value:Nt}))});return U.map(Dt=>({type:Dt.type,element:Ct(Dt)}))}},88640:(H,b,t)=>{"use strict";t.d(b,{B:()=>Q});var n=t(31085),a=t(268),d=t(58837),x=t(8973),m=t(29655),h=t(91567),u=t(42899),g=t(72501),p=t(9181),y=t(6924),E=t(14041),v=t(4650);const P=(G,k)=>(k.palette.type==="light"?a.e$:a.a)(k.palette[G].light,.6),T=(G,k)=>(k.palette.type==="light"?a.a:a.e$)(k.palette[G].light,.9),M=(0,d.A)(G=>({root:{marginRight:G.spacing(1),fill:({severity:k})=>P(k,G)}})),O=({severity:G})=>{const k=M({severity:G});return(0,n.jsx)(p.A,{classes:k})},B=({severity:G})=>{const k=M({severity:G});return(0,n.jsx)(y.A,{classes:k})},$=(0,d.A)(G=>({panel:{backgroundColor:({severity:k})=>T(k,G),color:({severity:k})=>P(k,G),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:k})=>P(k,G),fontWeight:G.typography.fontWeightBold},markdownContent:{"& p":{display:"inline"}},message:{width:"100%",display:"block",color:({severity:k})=>P(k,G),backgroundColor:({severity:k})=>T(k,G)},details:{width:"100%",display:"block",color:G.palette.textContrast,backgroundColor:G.palette.background.default,border:`1px solid ${G.palette.border}`,padding:G.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"}),D=G=>G.charAt(0).toLocaleUpperCase("en-US")+G.slice(1);function Q(G){const{severity:k="warning",title:W,titleFormat:q,message:N,children:rt,defaultExpanded:J}=G,Y=$({severity:k}),X=D(k)+(W?`: ${W}`:"");return(0,n.jsxs)(x.A,{defaultExpanded:J??!1,className:Y.panel,role:"alert",children:[(0,n.jsxs)(m.A,{expandIcon:(0,n.jsx)(B,{severity:k}),className:Y.summary,children:[(0,n.jsx)(O,{severity:k}),(0,n.jsx)(g.A,{className:Y.summaryText,variant:"subtitle1",children:q==="markdown"?(0,n.jsx)(v.h,{content:X,className:Y.markdownContent}):X})]}),(N||rt)&&(0,n.jsx)(h.A,{children:(0,n.jsxs)(u.A,{container:!0,children:[N&&(0,n.jsx)(u.A,{item:!0,xs:12,children:(0,n.jsx)(g.A,{className:Y.message,variant:"body1",children:N})}),rt&&(0,n.jsx)(u.A,{item:!0,xs:12,className:Y.details,children:rt})]})})]})}},10795:(H,b,t)=>{"use strict";t.d(b,{l:()=>h});var n=t(72427),a=t(65461),d=t(10315),x=t(87849);const m=()=>{const{t:u}=(0,x.i)(d.O);return{url:"https://github.com/backstage/backstage/issues",items:[{title:u("supportConfig.default.title"),icon:"warning",links:[{title:u("supportConfig.default.linkTitle"),url:"https://github.com/backstage/backstage/blob/master/app-config.yaml"}]}]}};function h(){const p=(0,n.Q2)().get(a.U)?.getOptionalConfig("app.support"),y=m();return p?{url:p.getString("url"),items:p.getConfigArray("items").flatMap(E=>({title:E.getString("title"),icon:E.getOptionalString("icon"),links:(E.getOptionalConfigArray("links")??[]).flatMap(v=>({url:v.getString("url"),title:v.getOptionalString("title")??""}))}))}:y}},31129:(H,b,t)=>{"use strict";t.d(b,{Gg:()=>B,KG:()=>$,NT:()=>T,z9:()=>m});var n=t(31085),a=t(82266),d=t(27799),x=t(14041);function m(D){const{id:Q,Fallback:G=d.A,...k}=D,q=(0,a.n)().getSystemIcon(Q)??G;return(0,n.jsx)(q,{...k})}function h(D){return _jsx(m,{id:"brokenImage",...D})}function u(D){return _jsx(m,{id:"catalog",...D})}function g(D){return _jsx(m,{id:"chat",...D})}function p(D){return _jsx(m,{id:"dashboard",...D})}function y(D){return _jsx(m,{id:"docs",...D})}function E(D){return _jsx(m,{id:"email",...D})}function v(D){return _jsx(m,{id:"github",...D})}function P(D){return _jsx(m,{id:"group",...D})}function T(D){return(0,n.jsx)(m,{id:"help",...D})}function M(D){return _jsx(m,{id:"user",...D})}function O(D){return _jsx(m,{id:"warning",...D})}function B(D){return(0,n.jsx)(m,{id:"star",...D})}function $(D){return(0,n.jsx)(m,{id:"unstarred",...D})}},26280:(H,b,t)=>{"use strict";t.d(b,{U:()=>u});var n=t(31085),a=t(58837),d=t(53373),x=t.n(d),m=t(14041);const h=(0,a.A)(g=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:g.spacing(3),paddingBottom:g.spacing(3),paddingLeft:g.spacing(2),paddingRight:g.spacing(2),[g.breakpoints.up("sm")]:{paddingLeft:g.spacing(3),paddingRight:g.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function u(g){const{className:p,stretch:y,noPadding:E,children:v,...P}=g,T=h();return(0,n.jsx)("article",{...P,className:x()(T.root,p,{[T.stretch]:y,[T.noPadding]:E}),children:v})}},59428:(H,b,t)=>{"use strict";t.d(b,{d:()=>y});var n=t(31085),a=t(10394),d=t(58837),x=t(72501),m=t(14041),h=t(93285);const u=E=>(0,d.A)(v=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:v.spacing(2),textAlign:E.textAlign},leftItemsBox:{flex:"1 1 auto",minWidth:0,overflow:"visible"},rightItemsBox:{flex:"0 1 auto",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginLeft:v.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}),g=({title:E,className:v})=>(0,n.jsx)(x.A,{variant:"h4",component:"h2",className:v,"data-testid":"header-title",children:E}),p=({description:E,className:v})=>E?(0,n.jsx)(x.A,{variant:"body2",className:v,"data-testid":"header-description",children:E}):null;function y(E){const{description:v,title:P,titleComponent:T=void 0,children:M,descriptionComponent:O=void 0,textAlign:B="left"}=E,$=u({textAlign:B})(),D=T||(0,n.jsx)(g,{title:P,className:$.title}),Q=O||(0,n.jsx)(p,{description:v,className:$.description});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.m,{title:P}),(0,n.jsxs)(a.A,{className:$.container,children:[(0,n.jsxs)(a.A,{className:$.leftItemsBox,children:[D,Q]}),(0,n.jsx)(a.A,{className:$.rightItemsBox,children:M})]})]})}},12173:(H,b,t)=>{"use strict";t.d(b,{M:()=>$});var n=t(31085),a=t(42899),d=t(58837),x=t(72501),m=t(14041),h=t(18690),u=t(72072),g=t(10795);const p=t.p+"static/mic-drop.fe3ef4d0.svg",y=(0,d.A)(D=>({micDrop:{maxWidth:"60%",bottom:D.spacing(2),right:D.spacing(2),[D.breakpoints.down("xs")]:{maxWidth:"96%",bottom:"unset",right:"unset",margin:D.spacing(10,"auto",4)}}}),{name:"BackstageErrorPageMicDrop"}),E=()=>{const D=y();return(0,n.jsx)("img",{src:p,className:D.micDrop,alt:"Girl dropping mic from her hands"})};var v=t(77310),P=t(87849),T=t(10315);const M=(0,d.A)(D=>({title:{paddingBottom:D.spacing(5),[D.breakpoints.down("xs")]:{paddingBottom:D.spacing(4),fontSize:D.typography.h3.fontSize}}}),{name:"BackstageErrorPageStackDetails"});function O(D){const{stack:Q}=D,G=M(),{t:k}=(0,P.i)(T.O),[W,q]=(0,m.useState)(!1);return W?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.A,{variant:"h6",className:G.title,children:(0,n.jsx)(u.N_,{to:"#",onClick:()=>q(!1),children:k("errorPage.showLessDetails")})}),(0,n.jsx)(v.z,{text:Q,language:"text",showCopyCodeButton:!0,showLineNumbers:!0})]}):(0,n.jsx)(x.A,{variant:"h6",className:G.title,children:(0,n.jsx)(u.N_,{to:"#",onClick:()=>q(!0),children:k("errorPage.showMoreDetails")})})}const B=(0,d.A)(D=>({container:{padding:D.spacing(8),[D.breakpoints.down("xs")]:{padding:D.spacing(2)}},title:{paddingBottom:D.spacing(5),[D.breakpoints.down("xs")]:{paddingBottom:D.spacing(4),fontSize:D.typography.h3.fontSize}},subtitle:{color:D.palette.textSubtle}}),{name:"BackstageErrorPage"});function $(D){const{status:Q="",statusMessage:G,additionalInfo:k,supportUrl:W,stack:q}=D,N=B(),rt=(0,h.Zp)(),J=(0,g.l)(),{t:Y}=(0,P.i)(T.O);return(0,n.jsxs)(a.A,{container:!0,className:N.container,children:[(0,n.jsxs)(a.A,{item:!0,xs:12,sm:8,md:4,children:[(0,n.jsx)(x.A,{"data-testid":"error",variant:"body1",className:N.subtitle,children:Y("errorPage.subtitle",{status:Q,statusMessage:G})}),(0,n.jsx)(x.A,{variant:"body1",className:N.subtitle,children:k}),(0,n.jsx)(x.A,{variant:"h2",className:N.title,children:Y("errorPage.title")}),(0,n.jsxs)(x.A,{variant:"h6",className:N.title,children:[(0,n.jsx)(u.N_,{to:"#","data-testid":"go-back-link",onClick:()=>rt(-1),children:Y("errorPage.goBack")}),"... or please"," ",(0,n.jsx)(u.N_,{to:W||J.url,children:"contact support"})," if you think this is a bug."]}),q&&(0,n.jsx)(O,{stack:q})]}),(0,n.jsx)(E,{})]})}},69814:(H,b,t)=>{"use strict";t.d(b,{Y:()=>rt});var n=t(31085),a=t(72427),d=t(65461),x=t(10394),m=t(42899),h=t(58837),u=t(71677),g=t(72501),p=t(14041),y=t(93285),E=t(72072),v=t(45634),P=t(58007),T=t(8109),M=t(55197),O=t(87051);const B=(0,O.A)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(g.A),$=(0,O.A)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(x.A),D=(0,O.A)({root:{fontStyle:"italic"}},{name:"BreadcrumbsCurrentPage"})(x.A);function Q(J){const{children:Y,...X}=J,[lt,gt]=p.useState(null),xt=p.Children.toArray(Y),[wt,Tt,...dt]=xt,ct=dt.length?dt.pop():xt[xt.length-1],mt=xt.length>3,pt=ut=>{gt(ut.currentTarget)},St=()=>{gt(null)},Ot=!!lt;return(0,n.jsxs)(p.Fragment,{children:[(0,n.jsxs)(v.A,{"aria-label":"breadcrumb",...X,children:[xt.length>1&&(0,n.jsx)($,{clone:!0,children:wt}),xt.length>2&&(0,n.jsx)($,{clone:!0,children:Tt}),mt&&(0,n.jsx)(B,{onClick:pt,children:"..."}),(0,n.jsx)(D,{children:ct})]}),(0,n.jsx)(M.Ay,{open:Ot,anchorEl:lt,onClose:St,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,n.jsx)(P.A,{children:dt.map((ut,At)=>(0,n.jsx)(T.A,{button:!0,children:(0,n.jsx)($,{clone:!0,children:ut})},At))})})]})}var G=t(73524);const k=(0,h.A)(J=>({header:{gridArea:"pageHeader",padding:J.spacing(3),width:"100%",boxShadow:J.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:J.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[J.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:J.page.fontColor,wordBreak:"break-word",fontSize:J.typography.h3.fontSize,marginBottom:0},subtitle:{color:J.page.fontColor,opacity:.8,display:"inline-block",marginTop:J.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:J.spacing(1),color:J.page.fontColor},breadcrumb:{color:J.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-J.spacing(.3),marginBottom:J.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-J.spacing(.3),marginBottom:J.spacing(.3)}}),{name:"BackstageHeader"}),W=({type:J,typeLink:Y,classes:X,pageTitle:lt})=>J?Y?(0,n.jsxs)(Q,{className:X.breadcrumb,children:[(0,n.jsx)(E.N_,{to:Y,children:J}),(0,n.jsx)(g.A,{children:lt})]}):(0,n.jsx)(g.A,{className:X.type,children:J}):null,q=({pageTitle:J,classes:Y,tooltip:X})=>{const{contentRef:lt}=(0,G.H)(),gt=(0,n.jsx)(g.A,{ref:lt,tabIndex:-1,className:Y.title,variant:"h1",children:J});return X?(0,n.jsx)(u.Ay,{title:X,placement:"top-start",children:gt}):gt},N=({classes:J,subtitle:Y})=>Y?typeof Y!="string"?(0,n.jsx)(n.Fragment,{children:Y}):(0,n.jsx)(g.A,{className:J.subtitle,variant:"subtitle2",component:"span",children:Y}):null;function rt(J){const{children:Y,pageTitleOverride:X,style:lt,subtitle:gt,title:xt,tooltip:wt,type:Tt,typeLink:dt}=J,ct=k(),pt=(0,a.gf)(d.U).getOptionalString("app.title")||"Backstage",St=X||xt,Ot=xt||X,ut=`${St} | %s | ${pt}`,At=`${St} | ${pt}`;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.m,{titleTemplate:ut,defaultTitle:At}),(0,n.jsxs)("header",{style:lt,className:ct.header,children:[(0,n.jsxs)(x.A,{className:ct.leftItemsBox,children:[(0,n.jsx)(W,{classes:ct,type:Tt,typeLink:dt,pageTitle:Ot}),(0,n.jsx)(q,{classes:ct,pageTitle:Ot,tooltip:wt}),(0,n.jsx)(N,{classes:ct,subtitle:gt})]}),(0,n.jsx)(m.A,{container:!0,className:ct.rightItemsBox,spacing:4,children:Y})]})]})}},24504:(H,b,t)=>{"use strict";t.d(b,{Y:()=>h});var n=t(31085),a=t(14041),d=t(58837),x=t(50868);const m=(0,d.A)(u=>({root:{display:"grid",gridTemplateAreas:"'pageHeader pageHeader pageHeader' 'pageSubheader pageSubheader pageSubheader' 'pageNav pageContent pageSidebar'",gridTemplateRows:"max-content auto 1fr",gridTemplateColumns:"auto 1fr auto",overflowY:"auto",height:"100vh",[u.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function h(u){const{themeId:g,children:p}=u,y=m();return(0,n.jsx)(x.A,{theme:E=>({...E,page:E.getPageTheme({themeId:g})}),children:(0,n.jsx)("main",{className:y.root,children:p})})}},27155:(H,b,t)=>{"use strict";t.d(b,{d:()=>m});var n=t(31085),a=t(14041),d=t(69814),x=t(24504);function m(h){const{themeId:u,children:g,...p}=h;return(0,n.jsxs)(x.Y,{themeId:u,children:[(0,n.jsx)(d.Y,{...p}),g]})}},73524:(H,b,t)=>{"use strict";t.d(b,{G:()=>v,H:()=>P});var n=t(31085),a=t(10394),d=t(58837),x=t(5893),m=t(14041),h=t(72664),u=function(T){return T.SIDEBAR_PIN_STATE="sidebarPinState",T}(u||{});const g={getSidebarPinState(){let T;try{T=JSON.parse(window.localStorage.getItem("sidebarPinState")||"true")}catch{return!0}return!!T},setSidebarPinState(T){return window.localStorage.setItem("sidebarPinState",JSON.stringify(T))}};var p=t(34435);const y=(0,d.A)(T=>({root:{width:"100%",transition:"padding-left 0.1s ease-out",isolation:"isolate",[T.breakpoints.up("sm")]:{paddingLeft:M=>M.isPinned?M.sidebarConfig.drawerWidthOpen:M.sidebarConfig.drawerWidthClosed},[T.breakpoints.down("xs")]:{paddingBottom:M=>M.sidebarConfig.mobileSidebarHeight},"@media print":{padding:"0px !important"}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),E=(0,m.createContext)({content:{contentRef:void 0}});function v(T){const[M,O]=(0,m.useState)(()=>g.getSidebarPinState()),{sidebarConfig:B}=(0,m.useContext)(h.yY),$=(0,m.useRef)(null),D=(0,m.useMemo)(()=>({content:{contentRef:$}}),[$]);(0,m.useEffect)(()=>{g.setSidebarPinState(M)},[M]);const Q=(0,x.A)(W=>W.breakpoints.down("xs"),{noSsr:!0}),G=()=>O(!M),k=y({isPinned:M,sidebarConfig:B});return(0,n.jsx)(p.qj,{value:{isPinned:M,toggleSidebarPinState:G,isMobile:Q},children:(0,n.jsx)(E.Provider,{value:D,children:(0,n.jsx)(a.A,{className:k.root,children:T.children})})})}function P(){const{content:T}=(0,m.useContext)(E);return{focusContent:(0,m.useCallback)(()=>{T?.contentRef?.current?.focus()},[T]),contentRef:T?.contentRef}}},34435:(H,b,t)=>{"use strict";t.d(b,{Ut:()=>p,qj:()=>g});var n=t(31085),a=t(43836),d=t(10602),x=t(14041);const m={isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1},h=(0,x.createContext)(m),u=(0,a.tK)("sidebar-pin-state-context");function g(y){const{children:E,value:v}=y;return(0,n.jsx)(h.Provider,{value:v,children:(0,n.jsx)(u.Provider,{value:(0,d.B)({1:v}),children:E})})}const p=()=>{const y=(0,x.useContext)(u),E=(0,x.useContext)(h);if(y===void 0)return E||m;const v=y.atVersion(1);if(v===void 0)throw new Error("No context found for version 1.");return v}},72664:(H,b,t)=>{"use strict";t.d(b,{Rv:()=>h,U1:()=>E,hC:()=>m,i8:()=>g,yY:()=>y});var n=t(14041);const a=72,d=24,x=18,m={drawerWidthClosed:a,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:a,iconSize:a-d*2,iconPadding:d,selectedIndicatorWidth:3,userBadgePadding:x,userBadgeDiameter:a-x*2,mobileSidebarHeight:56},h=v=>({...m,...v,iconContainerWidth:m.drawerWidthClosed,iconSize:m.drawerWidthClosed-m.iconPadding*2,userBadgeDiameter:m.drawerWidthClosed-m.userBadgePadding*2}),u={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:m.defaultOpenDelayMs+200},g=v=>({...u,...v}),p="@backstage/core/sidebar-intro-dismissed",y=(0,n.createContext)({sidebarConfig:m,submenuConfig:u}),E=(0,n.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}})},10315:(H,b,t)=>{"use strict";t.d(b,{O:()=>a});var n=t(93184);const a=(0,n.h)({id:"core-components",messages:{signIn:{title:"Sign In",loginFailed:"Login failed",customProvider:{title:"Custom User",subtitle:`Enter your own User ID and credentials.
|
|
2
2
|
This selection will not be stored.`,userId:"User ID",tokenInvalid:"Token is not a valid OpenID Connect JWT Token",continue:"Continue",idToken:"ID Token (optional)"},guestProvider:{title:"Guest",subtitle:`Enter as a Guest User.
|
|
3
3
|
You will not have a verified identity, meaning some features might be unavailable.`,enter:"Enter"}},skipToContent:"Skip to content",copyTextButton:{tooltipText:"Text copied to clipboard"},simpleStepper:{reset:"Reset",finish:"Finish",next:"Next",skip:"Skip",back:"Back"},errorPage:{subtitle:"ERROR {{status}}: {{statusMessage}}",title:"Looks like someone dropped the mic!",goBack:"Go back",showMoreDetails:"Show more details",showLessDetails:"Show less details"},emptyState:{missingAnnotation:{title:"Missing Annotation",actionTitle:"Add the annotation to your component YAML as shown in the highlighted example below:",readMore:"Read more"}},supportConfig:{default:{title:"Support Not Configured",linkTitle:"Add `app.support` config key"}},errorBoundary:{title:"Please contact {{slackChannel}} for help."},oauthRequestDialog:{title:"Login Required",authRedirectTitle:"This will trigger a http redirect to OAuth Login.",login:"Log in",rejectAll:"Reject All"},supportButton:{title:"Support",close:"Close"},table:{filter:{title:"Filters",clearAll:"Clear all"}},alertDisplay:{message_one:"({{ count }} older message)",message_other:"({{ count }} older messages)"},autoLogout:{stillTherePrompt:{title:"Logging out due to inactivity",buttonText:"Yes! Don't log me out"}},proxiedSignInPage:{title:"You do not appear to be signed in. Please try reloading the browser page."}}})},25862:(H,b,t)=>{"use strict";t.d(b,{Ig:()=>u,pn:()=>h});var n=t(31085),a=t(43836),d=t(10602),x=t(14041);const m=(0,a.tK)("analytics-context"),h=()=>{const p=(0,x.useContext)(m);if(p===void 0)return{routeRef:"unknown",pluginId:"root",extension:"App"};const y=p.atVersion(1);if(y===void 0)throw new Error("No context found for version 1.");return y},u=p=>{const{attributes:y,children:E}=p,P={...h(),...y},T=(0,d.B)({1:P});return(0,n.jsx)(m.Provider,{value:T,children:E})};function g(p,y){const E=v=>_jsx(u,{attributes:y,children:_jsx(p,{...v})});return E.displayName=`WithAnalyticsContext(${p.displayName||p.name||"Component"})`,E}},67237:(H,b,t)=>{"use strict";t.d(b,{J:()=>x,t:()=>d});var n=t(63544);const a=(0,n.Q)("core-plugin-api:analytics-tracker-events",()=>({mostRecentGatheredNavigation:void 0,mostRecentRoutableExtensionRender:void 0,beforeUnloadRegistered:!1})),d="_ROUTABLE-EXTENSION-RENDERED";class x{analyticsApi;context;constructor(h,u={routeRef:"unknown",pluginId:"root",extension:"App"}){this.analyticsApi=h,this.context=u,a.beforeUnloadRegistered||(addEventListener("beforeunload",()=>{a.mostRecentGatheredNavigation&&(this.analyticsApi.captureEvent({...a.mostRecentGatheredNavigation,...a.mostRecentRoutableExtensionRender}),a.mostRecentGatheredNavigation=void 0,a.mostRecentRoutableExtensionRender=void 0)},{once:!0,passive:!0}),a.beforeUnloadRegistered=!0)}setContext(h){this.context=h}captureEvent(h,u,{value:g,attributes:p}={}){const{_routeNodeType:y,...E}=this.context;if(h===d){a.mostRecentGatheredNavigation&&(a.mostRecentRoutableExtensionRender={context:{...E,extension:"App"}});return}if(a.mostRecentGatheredNavigation){try{this.analyticsApi.captureEvent({...a.mostRecentGatheredNavigation,...a.mostRecentRoutableExtensionRender})}catch(v){console.warn("Error during analytics event capture. %o",v)}a.mostRecentGatheredNavigation=void 0,a.mostRecentRoutableExtensionRender=void 0}if(h==="navigate"&&y==="gathered"&&E.pluginId==="root"){a.mostRecentGatheredNavigation={action:h,subject:u,value:g,attributes:p,context:E};return}try{this.analyticsApi.captureEvent({action:h,subject:u,value:g,attributes:p,context:E})}catch(v){console.warn("Error during analytics event capture. %o",v)}}}},93368:(H,b,t)=>{"use strict";t.d(b,{s:()=>u});var n=t(25862),a=t(72427),d=t(99303),x=t(14041),m=t(67237);function h(){try{return(0,a.gf)(d.c)}catch{return{captureEvent:()=>{}}}}function u(){const g=(0,x.useRef)(null),p=(0,n.pn)(),y=h();function E(){return g.current===null&&(g.current=new m.J(y)),g.current}const v=E();return v.setContext(p),v}},36017:(H,b,t)=>{"use strict";t.d(b,{k:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.alert"})},99303:(H,b,t)=>{"use strict";t.d(b,{c:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.analytics"})},65461:(H,b,t)=>{"use strict";t.d(b,{U:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.config"})},57405:(H,b,t)=>{"use strict";t.d(b,{I:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.discovery"})},39837:(H,b,t)=>{"use strict";t.d(b,{m:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.error"})},63636:(H,b,t)=>{"use strict";t.d(b,{B:()=>d,S:()=>a});var n=t(55309),a=function(x){return x[x.None=0]="None",x[x.Active=1]="Active",x}({});const d=(0,n.y)({id:"core.featureflags"})},70795:(H,b,t)=>{"use strict";t.d(b,{a:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.fetch"})},16009:(H,b,t)=>{"use strict";t.d(b,{K:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.identity"})},56038:(H,b,t)=>{"use strict";t.d(b,{J:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.translation"})},55309:(H,b,t)=>{"use strict";t.d(b,{y:()=>a});class n{config;constructor(x){if(this.config=x,!x.id.split(".").flatMap(h=>h.split("-")).every(h=>h.match(/^[a-z][a-z0-9]*$/)))throw new Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${x.id}'`)}get id(){return this.config.id}get T(){throw new Error(`tried to read ApiRef.T of ${this}`)}toString(){return`apiRef{${this.config.id}}`}}function a(d){return new n(d)}},12935:(H,b,t)=>{"use strict";t.d(b,{b:()=>n});function n(a,d){return"id"in a?{api:a,deps:{},factory:()=>d}:a}},72427:(H,b,t)=>{"use strict";t.d(b,{Q2:()=>m,gf:()=>h});var n=t(31085),a=t(14041),d=t(43836),x=t(97142);function m(){const g=(0,d.qO)("api-context");if(!g)throw new x.EH("API context is not available");const p=g.atVersion(1);if(!p)throw new x.EH("ApiContext v1 not available");return p}function h(g){const y=m().get(g);if(!y)throw new x.EH(`No implementation available for ${g}`);return y}function u(g){return function(y){const E=P=>{const T=m(),M={};for(const O in g)if(g.hasOwnProperty(O)){const B=g[O],$=T.get(B);if(!$)throw new NotImplementedError(`No implementation available for ${B}`);M[O]=$}return _jsx(y,{...P,...M})},v=y.displayName||y.name||"Component";return E.displayName=`withApis(${v})`,E}}},82266:(H,b,t)=>{"use strict";t.d(b,{n:()=>a});var n=t(43836);const a=()=>{const d=(0,n.qO)("app-context");if(!d)throw new Error("App context is not available");const x=d.atVersion(1);if(!x)throw new Error("AppContext v1 not available");return x}},19402:(H,b,t)=>{"use strict";t.d(b,{E:()=>m,h:()=>x});var n=t(63544);const a=(0,n.Q)("component-data-store",()=>new WeakMap),d="__backstage_data";function x(h,u,g){const p=h;let y=p[d]??a.get(h);if(y||(y={map:new Map},Object.defineProperty(p,d,{enumerable:!1,configurable:!0,writable:!1,value:y}),a.set(h,y)),y.map.has(u)){const E=h.displayName||h.name;throw new Error(`Attempted to attach duplicate data "${u}" to component "${E}"`)}y.map.set(u,g)}function m(h,u){if(!h)return;const g=h.type;if(!g)return;const p=g[d]??a.get(g);if(p)return p.map.get(u)}},88758:(H,b,t)=>{"use strict";t.d(b,{NC:()=>E,zZ:()=>v,QJ:()=>y});var n=t(31085),a=t(14041),d=t(93368),x=t(25862),m=t(82266),h=t(9222),u=t(19402);class g extends a.Component{static getDerivedStateFromError(T){return{error:T}}state={error:void 0};handleErrorReset=()=>{this.setState({error:void 0})};render(){const{error:T}=this.state,{app:M,plugin:O}=this.props,{ErrorBoundaryFallback:B}=M.getComponents();return T?(0,n.jsx)(B,{error:T,resetError:this.handleErrorReset,plugin:O}):this.props.children}}var p=t(67237);function y(P){const{component:T,mountPoint:M,name:O}=P;return v({component:{lazy:()=>T().then(B=>{const $=Q=>{const G=(0,d.s)();try{(0,h.S)(M)}catch(k){if(typeof k=="object"&&k!==null){const{message:W}=k;if(typeof W=="string"&&W.startsWith("No path for "))throw new Error(`Routable extension component with mount point ${M} was not discovered in the app element tree. Routable extension components may not be rendered by other components and must be directly available as an element within the App provider component.`)}throw k}return(0,a.useEffect)(()=>{G.captureEvent(p.t,"")},[G]),(0,n.jsx)(B,{...Q})},D=O||B.displayName||B.name||"LazyComponent";return $.displayName=`RoutableExtension(${D})`,$},B=>D=>{const Q=(0,m.n)(),{BootErrorPage:G}=Q.getComponents();return(0,n.jsx)(G,{step:"load-chunk",error:B})})},data:{"core.mountPoint":M},name:O})}function E(P){const{component:T,name:M}=P;return v({component:T,name:M})}function v(P){const{data:T={},name:M}=P;M||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name.");let O;if("lazy"in P.component){const $=P.component.lazy;O=(0,a.lazy)(()=>$().then(D=>({default:D})))}else O=P.component.sync;const B=M||O.displayName||O.name||"Component";return{expose($){const D=Q=>{const G=(0,m.n)(),{Progress:k}=G.getComponents(),W=T?.["core.mountPoint"];return(0,n.jsx)(a.Suspense,{fallback:(0,n.jsx)(k,{}),children:(0,n.jsx)(g,{app:G,plugin:$,children:(0,n.jsx)(x.Ig,{attributes:{pluginId:$.getId(),...M&&{extension:M},...W&&{routeRef:W.id}},children:(0,n.jsx)(O,{...Q})})})})};(0,u.h)(D,"core.plugin",$),(0,u.h)(D,"core.extensionName",M);for(const[Q,G]of Object.entries(T))(0,u.h)(D,Q,G);return D.displayName=`Extension(${B})`,D}}}},82442:(H,b,t)=>{"use strict";t.d(b,{O:()=>u});var n=t(14041),a=t(19402),d=t(72427),x=t(63636);function m(g,p,y,E){return n.Children.toArray(g).flatMap(v=>{if(!(0,n.isValidElement)(v))return[];if(v.type===n.Fragment)return m(v.props.children,p,y,E);if((0,a.E)(v,"core.featureFlagged")){const P=v.props;return("with"in P?p.isActive(P.with):!p.isActive(P.without))?m(v.props.children,p,y,E):[]}if(y===void 0||y(v))return[v];if(E)throw new Error(E);return m(v.props.children,p,y,E)})}class h{node;featureFlagsApi;constructor(p,y){this.node=p,this.featureFlagsApi=y}selectByComponentData(p){const y=m(this.node,this.featureFlagsApi,E=>(0,a.E)(E,p.key)!==void 0,p.withStrictError);return new h(y,this.featureFlagsApi)}findComponentData(p){return m(this.node,this.featureFlagsApi,E=>(0,a.E)(E,p.key)!==void 0).map(E=>(0,a.E)(E,p.key)).filter(E=>E!==void 0)}getElements(){return m(this.node,this.featureFlagsApi)}}function u(g,p,y=[]){const E=(0,d.gf)(x.B),v=new h(g,E);return(0,n.useMemo)(()=>p(v),[g,...y])}},9803:(H,b,t)=>{"use strict";t.d(b,{i:()=>a});class n{config;constructor(x){this.config=x}getId(){return this.config.id}getApis(){return this.config.apis??[]}getFeatureFlags(){return this.config.featureFlags?.slice()??[]}get routes(){return this.config.routes??{}}get externalRoutes(){return this.config.externalRoutes??{}}provide(x){return x.expose(this)}toString(){return`plugin{${this.config.id}}`}}function a(d){return new n(d)}},34569:(H,b,t)=>{"use strict";t.d(b,{H:()=>d});var n=t(59598);class a{id;params;[x=n.b];constructor(h,u){this.id=h,this.params=u,this[x]="absolute"}get title(){return this.id}toString(){return`routeRef{type=absolute,id=${this.id}}`}}function d(m){return new a(m.id,m.params??[])}var x},59598:(H,b,t)=>{"use strict";t.d(b,{b:()=>a});var n=t(63544);const a=(0,n.Q)("route-ref-type",()=>Symbol("route-ref-type"))},9222:(H,b,t)=>{"use strict";t.d(b,{S:()=>x});var n=t(14041),a=t(18690),d=t(43836);function x(m){const{pathname:h}=(0,a.zy)(),u=(0,d.qO)("routing-context");if(!u)throw new Error("Routing context is not available");const g=u.atVersion(1),p=(0,n.useMemo)(()=>g&&g.resolve(m,{pathname:h}),[g,m,h]);if(!u)throw new Error("useRouteRef used outside of routing context");if(!g)throw new Error("RoutingContext v1 not available");const y="optional"in m&&m.optional;if(!p&&!y)throw new Error(`No path for ${m}`);return p}},93184:(H,b,t)=>{"use strict";t.d(b,{h:()=>x,v:()=>m});var n=t(99833);function a(h){const u=new Array;function g(p,y){for(const[E,v]of Object.entries(p))typeof v=="string"?u.push([y+E,v]):g(v,`${y}${E}.`)}return g(h,""),Object.fromEntries(u)}class d{#t;#n;#e;constructor(u){this.#t=u.id,this.#n=a(u.messages)}$$type="@backstage/TranslationRef";version="v1";get id(){return this.#t}get T(){throw new Error("Not implemented")}getDefaultMessages(){return this.#n}setDefaultResource(u){this.#e=u}getDefaultResource(){return this.#e}toString(){return`TranslationRef{id=${this.id}}`}}function x(h){const u=new d(h);return h.translations&&u.setDefaultResource((0,n.o)({ref:u,translations:h.translations})),u}function m(h){const u=h;if(u.$$type!=="@backstage/TranslationRef")throw new Error(`Invalid translation ref, bad type '${u.$$type}'`);if(u.version!=="v1")throw new Error(`Invalid translation ref, bad version '${u.version}'`);return u}},99833:(H,b,t)=>{"use strict";t.d(b,{Y:()=>n,o:()=>a});function n(d){const x=d;if(x.$$type!=="@backstage/TranslationResource")throw new Error(`Invalid translation resource, bad type '${x.$$type}'`);if(x.version!=="v1")throw new Error(`Invalid translation resource, bad version '${x.version}'`);return x}function a(d){return{$$type:"@backstage/TranslationResource",version:"v1",id:d.ref.id,resources:Object.entries(d.translations).map(([x,m])=>({language:x,loader:()=>m().then(h=>{const u=h.default;return{messages:u?.$$type==="@backstage/TranslationMessages"?u.messages:u}})}))}}},87849:(H,b,t)=>{"use strict";t.d(b,{i:()=>h});var n=t(14041),a=t(72427),d=t(39837),x=t(56038);const m=new WeakSet,h=u=>{const g=(0,a.gf)(d.m),p=(0,a.gf)(x.J),[y,E]=(0,n.useState)(()=>p.getTranslation(u)),v=(0,n.useMemo)(()=>p.translation$(u),[p,u]),P=(0,n.useCallback)(M=>{if(!m.has(u)){const O=`Failed to load translation resource '${u.id}'; caused by ${M}`;console.error(O),g.post(new Error(O)),m.add(u)}},[g,u]);(0,n.useEffect)(()=>{const M=v.subscribe({next(O){O.ready&&E(O)},error(O){P(O)}});return()=>{M.unsubscribe()}},[v,P]);const T=(0,n.useRef)(!0);if((0,n.useEffect)(()=>{T.current?T.current=!1:E(p.getTranslation(u))},[p,u]),!y.ready)throw new Promise(M=>{const O=v.subscribe({next(B){B.ready&&(O.unsubscribe(),M())},error(B){O.unsubscribe(),P(B),M()}})});return{t:y.t}}},70835:(H,b,t)=>{"use strict";t.d(b,{o:()=>d});var n=t(59750);async function a(x){try{const m=await x.text();if(m){if(x.headers.get("content-type")?.startsWith("application/json"))try{const h=JSON.parse(m);if(h.error&&h.response)return h}catch{}return{error:{name:"Error",message:`Request failed with status ${x.status} ${x.statusText}, ${m}`},response:{statusCode:x.status}}}}catch{}return{error:{name:"Error",message:`Request failed with status ${x.status} ${x.statusText}`},response:{statusCode:x.status}}}class d extends Error{response;body;cause;statusCode;statusText;static async fromResponse(m){const h=await a(m),u=h.response.statusCode||m.status,g=m.statusText,p=`Request failed with ${u} ${g}`,y=(0,n.cy)(h.error);return new d({message:p,response:m,data:h,cause:y,statusCode:u,statusText:g})}constructor(m){super(m.message),this.name="ResponseError",this.response=m.response,this.body=m.data,this.cause=m.cause,this.statusCode=m.statusCode,this.statusText=m.statusText}}},93007:(H,b,t)=>{"use strict";t.d(b,{b:()=>n});function n(d){if(typeof d!="object"||d===null||Array.isArray(d))return!1;const x=d;return!(typeof x.name!="string"||x.name===""||typeof x.message!="string")}function a(d){if(typeof d!="object"||d===null||Array.isArray(d))throw new Error(`Encountered invalid error, not an object, got '${d}'`);const x=d;if(typeof x.name!="string"||x.name==="")throw new Error(`Encountered error object without a name, got '${d}'`);if(typeof x.message!="string")throw new Error(`Encountered error object without a message, got '${d}'`)}},97142:(H,b,t)=>{"use strict";t.d(b,{m_:()=>u,EH:()=>y});var n=t(93007),a=t(59750);class d extends Error{cause;constructor(T,M){let O=T;if(M!==void 0){const B=(0,a.M5)(M);O?O+=`; caused by ${B}`:O=`caused by ${B}`}super(O),Error.captureStackTrace?.(this,this.constructor),(!this.name||this.name==="Error")&&this.constructor.name!=="Error"&&(this.name=this.constructor.name),this.cause=(0,n.b)(M)?M:void 0}}class x extends null{name="InputError"}class m extends null{name="AuthenticationError"}class h extends null{name="NotAllowedError"}class u extends d{name="NotFoundError"}class g extends null{name="ConflictError"}class p extends null{name="NotModifiedError"}class y extends d{name="NotImplementedError"}class E extends null{}class v extends d{constructor(T,M){super(T,M),this.name=(0,n.b)(M)?M.name:"Error"}}},59750:(H,b,t)=>{"use strict";t.d(b,{M5:()=>h,cy:()=>m});var n=t(69655),a=t.n(n),d=t(93007);function x(u,g){const y={name:"Unknown",message:"<no reason given>",...serializeErrorInternal(u)};return g?.includeStack||(delete y.stack,y.cause&&typeof y.cause=="object"&&"stack"in y.cause&&delete y.cause.stack),y}function m(u){const g=(0,n.deserializeError)(u);return u.stack||(g.stack=void 0),g}function h(u){if((0,d.b)(u)){const g=String(u);return g!=="[object Object]"?g:`${u.name}: ${u.message}`}return`unknown error '${u}'`}},96726:(H,b,t)=>{"use strict";t.d(b,{L:()=>Me,Y:()=>ke});var n=t(59869);const a="amazonaws.com";function d(R){const l=R.getOptionalString("endpoint"),A=R.getOptionalBoolean("s3ForcePathStyle")??!1;let w,st;if(l){try{const zt=new URL(l);w=zt.host,st=zt.pathname}catch{throw new Error(`invalid awsS3 integration config, endpoint '${l}' is not a valid URL`)}if(st!=="/")throw new Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${l}'`)}else w=a;const Z=R.getOptionalString("accessKeyId"),ot=R.getOptionalString("secretAccessKey")?.trim(),Pt=R.getOptionalString("roleArn"),$t=R.getOptionalString("externalId");return{host:w,endpoint:l,s3ForcePathStyle:A,accessKeyId:Z,secretAccessKey:ot,roleArn:Pt,externalId:$t}}function x(R){const l=R.map(d);return l.some(A=>A.host===a)||l.push({host:a}),l}class m{integrationConfig;static factory=({config:l})=>{const A=x(l.getOptionalConfigArray("integrations.awsS3")??[]);return(0,n.oS)(A.map(w=>new m(w)),w=>w.config.host)};get type(){return"awsS3"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}constructor(l){this.integrationConfig=l}resolveUrl(l){return(0,n.ku)(l)}resolveEditUrl(l){return l}}const h="console.aws.amazon.com";function u(R){const l=R.getOptionalString("accessKeyId"),A=R.getOptionalString("secretAccessKey")?.trim(),w=R.getOptionalString("roleArn"),st=R.getOptionalString("externalId"),Z=R.getString("region");return{host:R.getOptionalString("host")||`${Z}.${h}`,accessKeyId:l,secretAccessKey:A,roleArn:w,externalId:st,region:Z}}function g(R){return R.map(u)}class p{integrationConfig;static factory=({config:l})=>{const A=g(l.getOptionalConfigArray("integrations.awsCodeCommit")??[]);return(0,n.oS)(A.map(w=>new p(w)),w=>w.config.host)};get type(){return"awsCodeCommit"}get config(){return this.integrationConfig}get title(){return this.integrationConfig.host}constructor(l){this.integrationConfig=l}resolveUrl(l){return(0,n.ku)(l)}resolveEditUrl(l){const w=new URL(l).pathname.match(/^\/codesuite\/codecommit\/repositories\/([^\/]+)\//);if(!w)throw new Error("");const[,st]=w;return y(l,st,"edit")}}function y(R,l,A){const w=A==="edit"?"files/edit":A;return R.replace(new RegExp(`/codesuite/codecommit/repositories/${l}/(browse|files/edit)/`),`/codesuite/codecommit/repositories/${l}/${w}/`)}const E="GB";class v{static fromRepoUrl(l){const A=new URL(l);let w,st,Z;const ot=A.pathname.split("/").map(qt=>decodeURIComponent(qt));if(ot[2]==="_git"?(w=ot[1],st=Z=ot[3]):ot[3]==="_git"?(w=ot[1],st=ot[2],Z=ot[4]):ot[4]==="_git"&&(w=`${ot[1]}/${ot[2]}`,st=ot[3],Z=ot[5]),!w||!st||!Z)throw new Error("Azure URL must point to a git repository");const Pt=A.searchParams.get("path")??void 0;let $t;const zt=A.searchParams.get("version");if(zt){if(zt.slice(0,2)!=="GB")throw new Error("Azure URL version must point to a git branch");$t=zt.slice(2)}return new v(A.origin,w,st,Z,Pt,$t)}#t;#n;#e;#s;#r;#o;constructor(l,A,w,st,Z,ot){this.#t=l,this.#n=A,this.#e=w,this.#s=st,this.#r=Z,this.#o=ot}#a=(...l)=>{const A=new URL(this.#t);return A.pathname=l.map(w=>encodeURIComponent(w)).join("/"),A};toRepoUrl(){let l;return this.#e===this.#s?l=this.#a(this.#n,"_git",this.#s):l=this.#a(this.#n,this.#e,"_git",this.#s),this.#r&&l.searchParams.set("path",this.#r),this.#o&&l.searchParams.set("version",E+this.#o),l.toString()}toFileUrl(){if(!this.#r)throw new Error("Azure URL must point to a specific path to be able to download a file");const l=this.#a(this.#n,this.#e,"_apis","git","repositories",this.#s,"items");return l.searchParams.set("api-version","6.0"),l.searchParams.set("path",this.#r),this.#o&&l.searchParams.set("version",this.#o),l.toString()}toArchiveUrl(){const l=this.#a(this.#n,this.#e,"_apis","git","repositories",this.#s,"items");return l.searchParams.set("recursionLevel","full"),l.searchParams.set("download","true"),l.searchParams.set("api-version","6.0"),this.#r&&l.searchParams.set("scopePath",this.#r),this.#o&&l.searchParams.set("version",this.#o),l.toString()}toCommitsUrl(){const l=this.#a(this.#n,this.#e,"_apis","git","repositories",this.#s,"commits");return l.searchParams.set("api-version","6.0"),this.#o&&l.searchParams.set("searchCriteria.itemVersion.version",this.#o),l.toString()}getOwner(){return this.#n}getProject(){return this.#e}getRepo(){return this.#s}getPath(){return this.#r}getRef(){return this.#o}}const P="dev.azure.com",T=["clientId","clientSecret","tenantId","personalAccessToken"],M=new Map([["ClientSecret",["clientId","clientSecret","tenantId"]],["ManagedIdentity",["clientId"]],["PersonalAccessToken",["personalAccessToken"]]]);function O(R){for(const l of M.entries()){const[A,w]=l,st=T.filter(Z=>!w.includes(Z));if(w.every(Z=>R[Z]!==void 0)&&st.every(Z=>R[Z]===void 0))return{kind:A,organizations:R.organizations,...w.reduce((Z,ot)=>(Z[ot]=R[ot],Z),{})}}throw new Error("is not a valid credential")}function B(R){const l=R.getOptionalString("host")??P;let A=R.getOptionalConfigArray("credentials")?.map(Z=>({organizations:Z.getOptionalStringArray("organizations"),personalAccessToken:Z.getOptionalString("personalAccessToken")?.trim(),tenantId:Z.getOptionalString("tenantId"),clientId:Z.getOptionalString("clientId"),clientSecret:Z.getOptionalString("clientSecret")?.trim()}));const w=R.getOptionalString("token")?.trim();if(R.getOptional("credential")!==void 0&&R.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'credential' and 'credentials' cannot be used together. Use 'credentials' instead.");if(R.getOptional("token")!==void 0&&R.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'token' and 'credentials' cannot be used together. Use 'credentials' instead.");if(w!==void 0){const Z=[{personalAccessToken:w}];A=A?.concat(Z)??Z}if(R.getOptional("credential")!==void 0){const Z=[{organizations:R.getOptionalStringArray("credential.organizations"),token:R.getOptionalString("credential.token")?.trim(),tenantId:R.getOptionalString("credential.tenantId"),clientId:R.getOptionalString("credential.clientId"),clientSecret:R.getOptionalString("credential.clientSecret")?.trim()}];A=A?.concat(Z)??Z}if(!(0,n.HO)(l))throw new Error(`Invalid Azure integration config, '${l}' is not a valid host`);let st;if(A!==void 0){const Z=A?.reduce((ot,Pt,$t)=>{let zt;try{O(Pt)}catch(qt){zt=qt.message}return zt!==void 0&&ot.push(`credential at position ${$t+1} ${zt}`),ot},Array.of()).concat(Object.entries(A.filter(ot=>ot.organizations!==void 0&&ot.organizations.length>0).reduce((ot,Pt,$t)=>(Pt.organizations?.forEach(zt=>{ot[zt]||(ot[zt]=[]),ot[zt].push($t+1)}),ot),{})).filter(([ot,Pt])=>Pt.length>1).reduce((ot,[Pt,$t])=>(ot.push(`organization ${Pt} is specified multiple times in credentials at positions ${$t.slice(0,$t.length-1).join(", ")} and ${$t[$t.length-1]}`),ot),Array.of()));if(Z?.length>0)throw new Error(`Invalid Azure integration config for ${l}: ${Z.join("; ")}`);if(st=A.map(ot=>O(ot)),st.some(ot=>ot.kind!=="PersonalAccessToken")&&l!==P)throw new Error(`Invalid Azure integration config for ${l}, only personal access tokens can be used with hosts other than ${P}`);if(st.filter(ot=>ot.organizations===void 0||ot.organizations.length===0).length>1)throw new Error(`Invalid Azure integration config for ${l}, you cannot specify multiple credentials without organizations`)}return{host:l,credentials:st}}function $(R){const l=R.map(B);return l.some(A=>A.host===P)||l.push({host:P}),l}class D{integrationConfig;static factory=({config:l})=>{const A=$(l.getOptionalConfigArray("integrations.azure")??[]);return(0,n.oS)(A.map(w=>new D(w)),w=>w.config.host)};constructor(l){this.integrationConfig=l}get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(l){const{url:A,base:w}=l;if((0,n.AY)(A))return A;try{const st=v.fromRepoUrl(w),Z=new URL(w),ot=new URL(`https://a.com${st.getPath()??""}`),Pt=new URL(A,ot).pathname;return Z.searchParams.set("path",Pt),l.lineNumber&&(Z.searchParams.set("line",String(l.lineNumber)),Z.searchParams.set("lineEnd",String(l.lineNumber+1)),Z.searchParams.set("lineStartColumn","1"),Z.searchParams.set("lineEndColumn","1")),Z.toString()}catch{return new URL(A,w).toString()}}resolveEditUrl(l){return l}}var Q=t(52536),G=t.n(Q);const k="bitbucket.org",W="https://api.bitbucket.org/2.0";function q(R){const l=k,A=W,w=R.getString("username"),st=R.getString("appPassword")?.trim();return{host:l,apiBaseUrl:A,username:w,appPassword:st}}function N(R){const l=R.map(q);return l.length===0&&l.push({host:k,apiBaseUrl:W}),l}class rt{integrationConfig;static factory=({config:l})=>{const A=N(l.getOptionalConfigArray("integrations.bitbucketCloud")??[]);return(0,n.oS)(A.map(w=>new rt(w)),w=>w.config.host)};constructor(l){this.integrationConfig=l}get type(){return"bitbucketCloud"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(l){const A=(0,n.ku)(l);if(l.lineNumber){const w=new URL(A);return w.hash=`lines-${l.lineNumber}`,w.toString()}return A}resolveEditUrl(l){const A=G()(l),w=new URL(l);return w.searchParams.set("mode","edit"),w.searchParams.set("at",A.ref),w.toString()}}var J=t(45250);const Y="bitbucket.org",X="https://api.bitbucket.org/2.0";function lt(R){const l=R.getOptionalString("host")??Y;let A=R.getOptionalString("apiBaseUrl");const w=R.getOptionalString("token")?.trim(),st=R.getOptionalString("username"),Z=R.getOptionalString("appPassword")?.trim();if(!(0,n.HO)(l))throw new Error(`Invalid Bitbucket integration config, '${l}' is not a valid host`);return A?A=(0,J.trimEnd)(A,"/"):l===Y?A=X:A=`https://${l}/rest/api/1.0`,{host:l,apiBaseUrl:A,token:w,username:st,appPassword:Z}}function gt(R){const l=R.map(lt);return l.some(A=>A.host===Y)||l.push({host:Y,apiBaseUrl:X}),l}class xt{integrationConfig;static factory=({config:l})=>{const A=gt(l.getOptionalConfigArray("integrations.bitbucket")??[...l.getOptionalConfigArray("integrations.bitbucketCloud")??[],...l.getOptionalConfigArray("integrations.bitbucketServer")??[]]);return(0,n.oS)(A.map(w=>new xt(w)),w=>w.config.host)};constructor(l){this.integrationConfig=l}get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(l){const A=(0,n.ku)(l);if(!l.lineNumber)return A;const w=new URL(A);return this.integrationConfig.host==="bitbucket.org"?w.hash=`lines-${l.lineNumber}`:w.hash=`${l.lineNumber}`,w.toString()}resolveEditUrl(l){const A=G()(l),w=new URL(l);return w.searchParams.set("mode","edit"),w.searchParams.set("spa","0"),w.searchParams.set("at",A.ref),w.toString()}}function wt(R){const l=R.getString("host");let A=R.getOptionalString("apiBaseUrl");const w=R.getOptionalString("token")?.trim(),st=R.getOptionalString("username"),Z=R.getOptionalString("password");if(!(0,n.HO)(l))throw new Error(`Invalid Bitbucket Server integration config, '${l}' is not a valid host`);return A?A=(0,J.trimEnd)(A,"/"):A=`https://${l}/rest/api/1.0`,{host:l,apiBaseUrl:A,token:w,username:st,password:Z}}function Tt(R){return R.map(wt)}class dt{integrationConfig;static factory=({config:l})=>{const A=Tt(l.getOptionalConfigArray("integrations.bitbucketServer")??[]);return(0,n.oS)(A.map(w=>new dt(w)),w=>w.config.host)};constructor(l){this.integrationConfig=l}get type(){return"bitbucketServer"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(l){const A=(0,n.ku)(l);if(l.lineNumber){const w=new URL(A);return w.hash=l.lineNumber.toString(),w.toString()}return A}resolveEditUrl(l){return l.includes("?")?l.substring(0,l.indexOf("?")):l}}function ct(R){const l=R.getString("host");let A=R.getOptionalString("baseUrl"),w=R.getOptionalString("cloneUrl"),st=R.getString("gitilesBaseUrl");const Z=R.getOptionalString("username"),ot=R.getOptionalString("password")?.trim();if((0,n.HO)(l)){if(A&&!(0,n.AY)(A))throw new Error(`Invalid Gerrit integration config, '${A}' is not a valid baseUrl`);if(w&&!(0,n.AY)(w))throw new Error(`Invalid Gerrit integration config, '${w}' is not a valid cloneUrl`);if(!(0,n.AY)(st))throw new Error(`Invalid Gerrit integration config, '${st}' is not a valid gitilesBaseUrl`)}else throw new Error(`Invalid Gerrit integration config, '${l}' is not a valid host`);return A?A=(0,J.trimEnd)(A,"/"):A=`https://${l}`,st?st=(0,J.trimEnd)(st,"/"):st=`https://${l}`,w?w=(0,J.trimEnd)(w,"/"):w=A,{host:l,baseUrl:A,cloneUrl:w,gitilesBaseUrl:st,username:Z,password:ot}}function mt(R){return R.map(ct)}var pt=t(1048).hp;const St=")]}'";function Ot(R,l){const A=new URL(R.gitilesBaseUrl),w=new URL(l),Z=w.pathname.substring(w.pathname.startsWith("/a/")?2:0).replace(A.pathname,"").split("/").filter(Be=>!!Be),ot=Z.indexOf("+");if(ot<=0)throw new Error(`Unable to parse project from url: ${l}`);const Pt=trimStart(Z.slice(0,ot).join("/"),"/"),$t=Z.indexOf("heads");if($t<=0)throw new Error(`Unable to parse branch from url: ${l}`);const zt=Z[$t+1],qt=Z.slice($t+2).join("/");return{branch:zt,filePath:qt===""?"/":qt,project:Pt}}function ut(R,l){const A=new URL(R.gitilesBaseUrl),w=new URL(l),Z=(0,J.trimStart)(w.pathname.substring(w.pathname.startsWith("/a/")?2:0).replace(A.pathname,""),"/").split("/").filter(Ht=>!!Ht),ot=(0,J.takeWhile)(Z,Ht=>Ht!=="+");if(ot.length===0)throw new Error(`Unable to parse gitiles url: ${l}`);const Pt=Z.slice(ot.length+1),$t=(0,J.join)(ot,"/");if(Pt.length>0&&Pt[0]==="HEAD"){const Ht=Pt.shift(),le=(0,J.join)(Pt,"/");return{project:$t,ref:Ht,refType:"head",path:le||"/",basePath:(0,J.trimEnd)(l.replace(le,""),"/")}}if(Pt.length>0&&Pt[0].length===40){const Ht=Pt.shift(),le=(0,J.join)(Pt,"/");return{project:$t,ref:Ht,refType:"sha",path:le||"/",basePath:(0,J.trimEnd)(l.replace(le,""),"/")}}const zt=(0,J.join)(Pt,"/"),Be=/^refs\/(?<refsReference>heads|tags)\/(?<ref>.*?)(\/|$)/.exec(zt);if(Be){const Ht=Be[0];let le;const{refsReference:ne,ref:je}=Be.groups||{},we=zt.replace(Ht,"");switch(ne){case"heads":le="branch";break;case"tags":le="tag";break;default:throw new Error(`Unable to parse gitiles url: ${l}`)}return{project:$t,ref:je,refType:le,path:we||"/",basePath:(0,J.trimEnd)(l.replace(we,""),"/")}}throw new Error(`Unable to parse gitiles : ${l}`)}function At(R,l,A,w){return`${R.gitilesBaseUrl}/${l}/+/refs/heads/${A}/${trimStart(w,"/")}`}function ht(R,l,A,w){const st=w==="/"||w===""?".tar.gz":`/${w}.tar.gz`;return`${nt(R)}/${l}/+archive/refs/heads/${A}${st}`}function et(R,l){const{path:A,ref:w,project:st,refType:Z}=ut(R,l),ot=A==="/"||A===""?".tar.gz":`/${A}.tar.gz`;if(Z==="branch")return`${nt(R)}/${st}/+archive/refs/heads/${w}${ot}`;if(Z==="sha")return`${nt(R)}/${st}/+archive/${w}${ot}`;throw new Error(`Unsupported gitiles ref type: ${Z}`)}function vt(R){return R.password?"/a/":"/"}function nt(R){if(!R.baseUrl||!R.gitilesBaseUrl)throw new Error("Unexpected Gerrit config values. baseUrl or gitilesBaseUrl not set.");if(R.gitilesBaseUrl.startsWith(R.baseUrl))return R.gitilesBaseUrl.replace(R.baseUrl.concat("/"),R.baseUrl.concat(vt(R)));if(R.password)throw new Error("Since the baseUrl (Gerrit) is not part of the gitilesBaseUrl, an authentication URL could not be constructed.");return R.gitilesBaseUrl}function U(R,l){const{branch:A,project:w}=Ot(R,l);return`${R.baseUrl}${vt(R)}projects/${encodeURIComponent(w)}/branches/${A}`}function V(R,l){const{project:A}=Ot(R,l);return`${R.cloneUrl}${vt(R)}${A}`}function yt(R,l){const{ref:A,refType:w,path:st,project:Z}=ut(R,l);if(w==="branch")return`${R.baseUrl}${vt(R)}projects/${encodeURIComponent(Z)}/branches/${A}/files/${encodeURIComponent(st)}/content`;if(w==="sha")return`${R.baseUrl}${vt(R)}projects/${encodeURIComponent(Z)}/commits/${A}/files/${encodeURIComponent(st)}/content`;throw new Error(`Unsupported gitiles ref type: ${w}`)}function It(R){return`${R.baseUrl}${vt(R)}projects/`}function Ct(R){const l={};if(!R.password)return l;const A=pt.from(`${R.username}:${R.password}`,"utf8");return l.Authorization=`Basic ${A.toString("base64")}`,{headers:l}}async function Dt(R){const l=await R.text();if(l.startsWith(St))try{return JSON.parse(l.slice(St.length))}catch(A){throw new Error(`Invalid response from Gerrit: ${l.slice(0,10)} - ${A}`)}throw new Error(`Gerrit JSON body prefix missing. Found: ${l.slice(0,10)}`)}class Nt{integrationConfig;static factory=({config:l})=>{const A=mt(l.getOptionalConfigArray("integrations.gerrit")??[]);return(0,n.oS)(A.map(w=>new Nt(w)),w=>w.config.host)};constructor(l){this.integrationConfig=l}get type(){return"gerrit"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(l){const{url:A,base:w,lineNumber:st}=l;let Z;if(A.startsWith("/")){const{basePath:ot}=ut(this.config,w);return ot+A}return A?Z=new URL(A,w):Z=new URL(w),st&&(Z.hash=st.toString()),Z.toString()}resolveEditUrl(l){return l}}var se=t(36021);const Bt="gitlab.com",kt="https://gitlab.com/api/v4";function ae(R){const l=R.getString("host");let A=R.getOptionalString("apiBaseUrl");const w=R.getOptionalString("token")?.trim();let st=R.getOptionalString("baseUrl");if(A?A=(0,J.trimEnd)(A,"/"):l===Bt&&(A=kt),st?st=(0,J.trimEnd)(st,"/"):st=`https://${l}`,(0,n.HO)(l)){if(!A||!(0,n.AY)(A))throw new Error(`Invalid GitLab integration config, '${A}' is not a valid apiBaseUrl`);if(!(0,n.AY)(st))throw new Error(`Invalid GitLab integration config, '${st}' is not a valid baseUrl`)}else throw new Error(`Invalid GitLab integration config, '${l}' is not a valid host`);return{host:l,token:w,apiBaseUrl:A,baseUrl:st}}function Kt(R){const l=R.map(ae);return l.some(A=>A.host===Bt)||l.push({host:Bt,apiBaseUrl:kt,baseUrl:`https://${Bt}`}),l}function Gt(R){let l="";return R.host!==Bt&&(l=new URL(R.baseUrl).pathname),trimEnd(l,"/")}class Wt{integrationConfig;static factory=({config:l})=>{const A=Kt(l.getOptionalConfigArray("integrations.gitlab")??[]);return(0,n.oS)(A.map(w=>new Wt(w)),w=>w.config.host)};constructor(l){this.integrationConfig=l}get type(){return"gitlab"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(l){return(0,n.ku)(l)}resolveEditUrl(l){return ee(l,"edit")}}function ee(R,l){return R.replace(/\/\-\/(blob|tree|edit)\//,`/-/${l}/`)}function Ne(R){const l=R.getString("host");let A=R.getOptionalString("baseUrl");const w=R.getOptionalString("username"),st=R.getOptionalString("password")?.trim();if((0,n.HO)(l)){if(A&&!(0,n.AY)(A))throw new Error(`Invalid Gitea integration config, '${A}' is not a valid baseUrl`)}else throw new Error(`Invalid Gitea integration config, '${l}' is not a valid host`);return A?A=(0,J.trimEnd)(A,"/"):A=`https://${l}`,{host:l,baseUrl:A,username:w,password:st}}var sn=t(1048).hp;function Ge(R,l){const A=Te(R,l);return`${A.url}/${A.owner}/${A.name}/_edit/${A.ref}/${A.path}`}function _e(R,l){const A=Te(R,l);return`${A.url}/api/v1/repos/${A.owner}/${A.name}/contents/${A.path}?ref=${A.ref}`}function re(R,l){const A=Te(R,l);return`${A.url}/api/v1/repos/${A.owner}/${A.name}/archive/${A.ref}.tar.gz`}function qe(R,l){const A=Te(R,l);return`${A.url}/api/v1/repos/${A.owner}/${A.name}/git/commits/${A.ref}`}function de(R){const l={},{username:A,password:w}=R;return w?(A?l.Authorization=`basic ${sn.from(`${A}:${w}`).toString("base64")}`:l.Authorization=`token ${w}`,{headers:l}):l}function Te(R,l){const A=R.baseUrl??`https://${R.host}`;try{const[w,st,Z,ot,Pt,$t,...zt]=l.replace(A,"").split("/"),qt=zt.join("/").replace(/^\//,"");return{url:A,owner:st,name:Z,ref:$t,path:qt}}catch(w){throw new Error(`Incorrect URL: ${l}, ${w}`)}}class We{config;static factory=({config:l})=>{const w=(l.getOptionalConfigArray("integrations.gitea")??[]).map(st=>Ne(st));return(0,n.oS)(w.map(st=>new We(st)),st=>st.config.host)};constructor(l){this.config=l}get type(){return"gitea"}get title(){return this.config.host}resolveUrl(l){return(0,n.ku)(l)}resolveEditUrl(l){return Ge(this.config,l)}}function ue(R){const l=R.getString("host"),A=R.getOptionalString("token"),w=R.getOptionalString("apiKey");if(!(0,n.HO)(l))throw new Error(`Invalid Harness Code integration config, '${l}' is not a valid host`);return{host:l,apiKey:w,token:A}}function Ye(R,l){const A=Re(R,l);return`${A.baseUrl}/ng/account/${A.accountId}/module/code${A.orgName!==""?`/orgs/${A.orgName}`:""}${A.projectName!==""?`/projects/${A.projectName}`:""}/repos/${A.repoName}/files/${A.branch}/~/${A.path}`}function ln(R,l){const A=Re(R,l);let w=`${A.baseUrl}/gateway/code/api/v1/repos/${A.accountId}`;return A.orgName&&(w+=`/${A.orgName}`),A.projectName&&(w+=`/${A.projectName}`),w+=`/${A.repoName}/+/raw/${A.path}?routingId=${A.accountId}&git_ref=refs/heads/${A.refString}`,w}function rn(R,l){const A=Re(R,l);let w=`${A.baseUrl}/gateway/code/api/v1/repos/${A.accountId}`;return A.orgName&&(w+=`/${A.orgName}`),A.projectName&&(w+=`/${A.projectName}`),w+=`/${A.repoName}/+/archive/${A.branch}.zip?routingId=${A.accountId}`,w}function on(R,l){const A=Re(R,l);let w=`${A.baseUrl}/gateway/code/api/v1/repos/${A.accountId}`;return A.orgName&&(w+=`/${A.orgName}`),A.projectName&&(w+=`/${A.projectName}`),w+=`/${A.repoName}/+/content?routingId=${A.accountId}&include_commit=true&git_ref=refs/heads/${A.branch}`,w}function tn(R){const l={},{token:A,apiKey:w}=R;return w?l["x-api-key"]=w:A&&(l.Authorization=`Bearer ${A}`),{headers:l}}function Re(R,l){const A=`https://${R.host}`;try{const w=new URL(l),st=w.pathname.split("/").filter(ie=>ie!==""),Z=w.pathname.split("/"),ot=st.findIndex(ie=>ie==="account")+1,Pt=st[ot],$t=st.findIndex(ie=>ie==="orgs"),zt=$t!==-1?st[$t+1]:"",qt=st.findIndex(ie=>ie==="projects"),Be=qt!==-1?st[qt+1]:"",Ht=st.findIndex((ie,dn)=>ie==="repos"&&dn>Math.max(ot,$t,qt))+1,le=st[Ht],ne=Z.slice(Z.findIndex(ie=>ie==="files"||ie==="edit")+1),je=ne.findIndex(ie=>ie==="~"),we=ne.slice(0,je).join("/"),xn=je!==-1?ne.slice(je+1).join("/").replace(/^\//,""):"";return{baseUrl:A,accountId:Pt,orgName:zt,projectName:Be,refString:we,path:xn,repoName:le,refDashStr:ne.slice(0,je).join("-"),branch:je!==-1?ne.slice(0,je).join("/"):ne.join("/")}}catch(w){throw new Error(`Incorrect URL: ${l}, ${w}`)}}class Ke{config;static factory=({config:l})=>{const w=(l.getOptionalConfigArray("integrations.harness")??[]).map(st=>ue(st));return(0,n.oS)(w.map(st=>new Ke(st)),st=>st.config.host)};constructor(l){this.config=l}get type(){return"harness"}get title(){return this.config.host}resolveUrl(l){return(0,n.ku)(l)}resolveEditUrl(l){return Ye(this.config,l)}}const Qe="blob.core.windows.net";function Ee(R){const l=R.getOptionalString("endpoint"),A=R.getString("accountName"),w=R.getOptionalString("accountKey")?.trim(),st=R.getOptionalString("sasToken")?.trim(),Z=R.getOptionalString("connectionString")?.trim(),ot=R.getOptionalString("endpointSuffix")?.trim();let Pt,$t;if(l){try{const qt=new URL(l);Pt=qt.host,$t=qt.pathname}catch{throw new Error(`invalid azureBlobStorage integration config, endpoint '${l}' is not a valid URL`)}if($t!=="/")throw new Error(`invalid azureBlobStorage integration config, endpoints cannot contain path, got '${l}'`)}else Pt=Qe;const zt=R.has("aadCredential")?{clientId:R.getString("aadCredential.clientId"),tenantId:R.getString("aadCredential.tenantId"),clientSecret:R.getString("aadCredential.clientSecret")?.trim()}:void 0;if(w&&st)throw new Error(`Invalid Azure Blob Storage config for ${A}: Both account key and SAS token cannot be used simultaneously.`);if(zt&&(w||st))throw new Error(`Invalid Azure Blob Storage config for ${A}: Cannot use both Azure AD credentials and account keys/SAS tokens for the same account.`);return{host:Pt,endpoint:l,accountName:A,accountKey:w,sasToken:st,connectionString:Z,endpointSuffix:ot,aadCredential:zt}}function Ze(R){const l=R.map(Ee);return l.some(A=>A.host===Qe)||l.push({host:Qe}),l}class ze{integrationConfig;static factory=({config:l})=>{const A=Ze(l.getOptionalConfigArray("integrations.azureBlobStorage")??[]);return(0,n.oS)(A.map(w=>new ze(w)),w=>w.config.host)};get type(){return"azureBlobStorage"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}constructor(l){this.integrationConfig=l}resolveUrl(l){return(0,n.ku)(l)}resolveEditUrl(l){return l}}class De{byType;static fromConfig(l){return new De({awsS3:m.factory({config:l}),awsCodeCommit:p.factory({config:l}),azureBlobStorage:ze.factory({config:l}),azure:D.factory({config:l}),bitbucket:xt.factory({config:l}),bitbucketCloud:rt.factory({config:l}),bitbucketServer:dt.factory({config:l}),gerrit:Nt.factory({config:l}),github:se.U.factory({config:l}),gitlab:Wt.factory({config:l}),gitea:We.factory({config:l}),harness:Ke.factory({config:l})})}constructor(l){this.byType=l}get awsS3(){return this.byType.awsS3}get awsCodeCommit(){return this.byType.awsCodeCommit}get azureBlobStorage(){return this.byType.azureBlobStorage}get azure(){return this.byType.azure}get bitbucket(){return this.byType.bitbucket}get bitbucketCloud(){return this.byType.bitbucketCloud}get bitbucketServer(){return this.byType.bitbucketServer}get gerrit(){return this.byType.gerrit}get github(){return this.byType.github}get gitlab(){return this.byType.gitlab}get gitea(){return this.byType.gitea}get harness(){return this.byType.harness}list(){return Object.values(this.byType).flatMap(l=>l.list())}byUrl(l){let A=Object.values(this.byType).map(w=>w.byUrl(l)).filter(Boolean);if(A.length>1){const w=A.filter(st=>!(st instanceof xt));w.length!==0&&(A=w)}return A[0]}byHost(l){return Object.values(this.byType).map(A=>A.byHost(l)).find(Boolean)}resolveUrl(l){const A=this.byUrl(l.base);return A?A.resolveUrl(l):(0,n.ku)(l)}resolveEditUrl(l){const A=this.byUrl(l);return A?A.resolveEditUrl(l):l}}var Le=t(55309);class Me{static fromConfig(l){return De.fromConfig(l)}}const ke=(0,Le.y)({id:"integration.scmintegrations"})},36021:(H,b,t)=>{"use strict";t.d(b,{U:()=>g,F:()=>p});var n=t(59869),a=t(45250);const d="github.com",x="https://api.github.com",m="https://raw.githubusercontent.com";function h(y){const E=y.getOptionalString("host")??d;let v=y.getOptionalString("apiBaseUrl"),P=y.getOptionalString("rawBaseUrl");const T=y.getOptionalString("token")?.trim(),M=y.getOptionalConfigArray("apps")?.map(O=>({appId:O.getNumber("appId"),clientId:O.getString("clientId"),clientSecret:O.getString("clientSecret"),webhookSecret:O.getString("webhookSecret"),privateKey:O.getString("privateKey"),allowedInstallationOwners:O.getOptionalStringArray("allowedInstallationOwners")}));if(!(0,n.HO)(E))throw new Error(`Invalid GitHub integration config, '${E}' is not a valid host`);return v?v=(0,a.trimEnd)(v,"/"):E===d&&(v=x),P?P=(0,a.trimEnd)(P,"/"):E===d&&(P=m),{host:E,apiBaseUrl:v,rawBaseUrl:P,token:T,apps:M}}function u(y){const E=y.map(h);return E.some(v=>v.host===d)||E.push({host:d,apiBaseUrl:x,rawBaseUrl:m}),E}class g{integrationConfig;static factory=({config:E})=>{const v=u(E.getOptionalConfigArray("integrations.github")??[]);return(0,n.oS)(v.map(P=>new g(P)),P=>P.config.host)};constructor(E){this.integrationConfig=E}get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(E){return p((0,n.ku)(E),"tree")}resolveEditUrl(E){return p(E,"edit")}parseRateLimitInfo(E){return{isRateLimited:E.status===429||E.status===403&&E.headers.get("x-ratelimit-remaining")==="0"}}}function p(y,E){return y.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,(v,P,T,M)=>`//${P}/${T}/${M}/${E}/`)}},59869:(H,b,t)=>{"use strict";t.d(b,{AY:()=>h,HO:()=>m,ku:()=>g,oS:()=>u});var n=t(52536),a=t.n(n),d=t(45250),x=t.n(d);function m(y){const E=new URL("http://example.com");return E.host=y,E.host===y}function h(y){try{return new URL(y),!0}catch{return!1}}function u(y,E){return{list(){return y},byUrl(v){try{const P=typeof v=="string"?new URL(v):v;return y.find(T=>E(T)===P.host)}catch{return}},byHost(v){return y.find(P=>E(P)===v)}}}function g(y){const{url:E,base:v,lineNumber:P}=y;try{return new URL(E),E}catch{}let T;if(E.startsWith("/")){const{href:M,filepath:O}=a()(v);T=new URL(M);const B=(0,d.trimEnd)(T.pathname.substring(0,T.pathname.length-O.length),"/");T.pathname=`${B}${E}`}else T=new URL(E,v);return T.search=new URL(v).search,P&&(T.hash=`L${P}`),T.toString()}function p(y){beforeAll(()=>y.listen({onUnhandledRequest:"error"})),afterAll(()=>y.close()),afterEach(()=>y.resetHandlers())}},47149:(H,b,t)=>{"use strict";var n={};t.r(n),t.d(n,{TechDocsPlugin:()=>h.Ju});var a=t(31085),d=t(14041),x=t(25873),m=t(18690),h=t(39278),u=t(8915),g=t(72020),p=t(99730),y=t(64947),E=t(12173),v=t(22020),P=t(68146),T=t(73657);function M({children:r}){return(0,m.Ri)()?(0,a.jsx)(a.Fragment,{children:r}):(0,a.jsx)(m.fS,{children:r})}const O=()=>(0,a.jsx)(E.M,{status:"404",statusMessage:"PAGE NOT FOUND"}),B=({step:r,error:e})=>{let s="";return r==="load-config"?s=`The configuration failed to load, someone should have a look at this error: ${e.message}`:r==="load-chunk"&&(s=`Lazy loaded chunk failed to load, try to reload the page: ${e.message}`),(0,a.jsx)(M,{children:(0,a.jsx)(E.M,{statusMessage:s,stack:e.stack})})},$=({error:r,resetError:e,plugin:s})=>(0,a.jsx)(v.b,{title:`Error in ${s?.getId()}`,defaultExpanded:!0,error:r,children:(0,a.jsx)(y.A,{variant:"outlined",onClick:e,children:"Retry"})}),D={Progress:P.k,Router:T.Kd,NotFoundErrorPage:O,BootErrorPage:B,ErrorBoundaryFallback:$},Q="Invalid discovery URL pattern,";class G{parts;static compile(e){const s=e.split(/\{\{\s*pluginId\s*\}\}/),o=s.join("pluginId");let i;try{i=new URL(o)}catch{throw new Error(`${Q} URL '${o}' is invalid`)}if(i.hash)throw new Error(`${Q} URL must not have a hash`);if(i.search)throw new Error(`${Q} URL must not have a query`);if(o.endsWith("/"))throw new Error(`${Q} URL must not end with a slash`);return new G(s)}constructor(e){this.parts=e}async getBaseUrl(e){return this.parts.join(encodeURIComponent(e))}}var k=t(96403),W=t.n(k);class q{isClosed=!1;terminatingError;observable=new(W())(e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(this.subscribers.add(e),()=>{this.subscribers.delete(e)}));subscribers=new Set;[Symbol.observable](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.subscribers.forEach(s=>s.next(e))}error(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(s=>s.error(e))}complete(){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,s,o){const i=typeof e=="function"?{next:e,error:s,complete:o}:e;return this.observable.subscribe(i)}}class N{isClosed;currentValue;terminatingError;observable;constructor(e){this.isClosed=!1,this.currentValue=e,this.terminatingError=void 0,this.observable=new(W())(s=>this.isClosed?(this.terminatingError?s.error(this.terminatingError):s.complete(),()=>{}):(s.next(this.currentValue),this.subscribers.add(s),()=>{this.subscribers.delete(s)}))}subscribers=new Set;[Symbol.observable](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.currentValue=e,this.subscribers.forEach(s=>s.next(e))}error(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(s=>s.error(e))}complete(){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,s,o){const i=typeof e=="function"?{next:e,error:s,complete:o}:e;return this.observable.subscribe(i)}}class rt{subject=new q;post(e){this.subject.next(e)}alert$(){return this.subject}}class J{captureEvent(e){}}class Y{alertApi;errorApi;constructor(e,s){this.alertApi=e,this.errorApi=s}post(e,s){return s?.hidden||this.alertApi.post({message:e.message,severity:"error"}),this.errorApi.post(e,s)}error$(){return this.errorApi.error$()}}class X{subject=new q;post(e,s){this.subject.next({error:e,context:s})}error$(){return this.subject}}class lt{static forward(e,s){window.addEventListener("unhandledrejection",o=>{e.post(o.reason,s)})}}const gt=new Map;class xt{namespace;errorApi;constructor(e,s){this.namespace=e,this.errorApi=s,this.subscribers=new Set,this.observable=new(W())(o=>(this.subscribers.add(o),()=>{this.subscribers.delete(o)}))}static hasSubscribed=!1;static create(e){return new xt(e.namespace??"",e.errorApi)}static addStorageEventListener(){window.addEventListener("storage",e=>{for(const[s,o]of gt.entries())e.key?.startsWith(s)&&o.handleStorageChange(e.key)})}get(e){return this.snapshot(e).value}snapshot(e){let s,o="absent";try{const i=localStorage.getItem(this.getKeyName(e));i&&(s=JSON.parse(i,(c,S)=>(typeof S=="object"&&S!==null&&Object.freeze(S),S)),o="present")}catch{this.errorApi.post(new Error(`Error when parsing JSON config from storage for: ${e}`))}return{key:e,value:s,presence:o}}forBucket(e){const s=`${this.namespace}/${e}`;return gt.has(s)||gt.set(s,new xt(s,this.errorApi)),gt.get(s)}async set(e,s){localStorage.setItem(this.getKeyName(e),JSON.stringify(s)),this.notifyChanges(e)}async remove(e){localStorage.removeItem(this.getKeyName(e)),this.notifyChanges(e)}observe$(e){return xt.hasSubscribed||(xt.addStorageEventListener(),xt.hasSubscribed=!0),this.observable.filter(({key:s})=>s===e)}handleStorageChange(e){if(!e?.startsWith(this.namespace))return;const s=e?.slice(`${this.namespace}/`.length);s.includes("/")||this.notifyChanges(decodeURIComponent(s))}getKeyName(e){return`${this.namespace}/${encodeURIComponent(e)}`}notifyChanges(e){const s=this.snapshot(e);for(const o of this.subscribers)o.next(s)}subscribers;observable}function wt(r){let e=r.baseImplementation||t.g.fetch;const s=[r.middleware??[]].flat().reverse();for(const o of s)e=o.apply(e);return{fetch:e}}class Tt{identityApi;allowUrl;headerName;headerValue;static create(e){const s=dt(e),o=e.header?.name||"authorization",i=e.header?.value||(c=>`Bearer ${c}`);return new Tt(e.identityApi,s,o,i)}constructor(e,s,o,i){this.identityApi=e,this.allowUrl=s,this.headerName=o,this.headerValue=i}apply(e){return async(s,o)=>{const i=new Request(s,o),{token:c}=await this.identityApi.getCredentials();return i.headers.get(this.headerName)||typeof c!="string"||!c||!this.allowUrl(i.url)?e(s,o):(i.headers.set(this.headerName,this.headerValue(c)),e(i))}}}function dt(r){return r.allowUrl?r.allowUrl:r.urlPrefixAllowlist?ct(r.urlPrefixAllowlist):r.config?ct([r.config.getString("backend.baseUrl")]):()=>!1}function ct(r){const e=r.map(s=>s.replace(/\/$/,""));return s=>e.some(o=>s===o||s.startsWith(`${o}/`))}function mt(r,e){return!e||e==="/"?r:`${r.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}class pt{discoveryApi;constructor(e){this.discoveryApi=e}apply(e){return async(s,o)=>{const i=new Request(s,o),c="plugin://";if(!i.url.startsWith(c))return e(s,o);const{hostname:S,pathname:C,search:I,hash:z,username:tt,password:ft}=new URL(`http://${i.url.substring(c.length)}`);let it=await this.discoveryApi.getBaseUrl(S);if(tt||ft){const Lt=new URL(it),Vt=`${tt}${ft?`:${ft}`:""}@`;it=`${Lt.protocol}//${Vt}${Lt.host}${Lt.pathname}`}const Et=`${mt(it,C)}${I}${z}`;return e(Et,typeof s=="string"||St(s)?o:s)}}}function St(r){return typeof r=="object"&&r?.constructor===URL}class Ot{static resolvePluginProtocol(e){return new pt(e.discoveryApi)}static injectIdentityAuth(e){return Tt.create(e)}constructor(){}}function ut(r,e){for(const s of e)if(!r.has(s))return!1;return!0}function At(r,...e){const s=new Set(r);for(const o of e)for(const i of o)s.add(i);return s}class ht{requests=[];subject=new N(this.getCurrentPending());request(e){return new Promise((s,o)=>{this.requests.push({scopes:e,resolve:s,reject:o}),this.subject.next(this.getCurrentPending())})}resolve(e,s){this.requests=this.requests.filter(o=>ut(e,o.scopes)?(o.resolve(s),!1):!0),this.subject.next(this.getCurrentPending())}reject(e){this.requests.forEach(s=>s.reject(e)),this.requests=[],this.subject.next(this.getCurrentPending())}pending(){return this.subject}getCurrentPending(){const e=this.requests.length===0?void 0:this.requests.slice(1).reduce((s,o)=>At(s,o.scopes),this.requests[0].scopes);return{scopes:e,resolve:s=>{e&&this.resolve(e,s)},reject:s=>{e&&this.reject(s)}}}}class et{subject=new N([]);currentRequests=[];handlerCount=0;createAuthRequester(e){const s=new ht,o=this.handlerCount;return this.handlerCount++,s.pending().subscribe({next:i=>{const c=this.currentRequests.slice(),S=this.makeAuthRequest(i,e);S?c[o]=S:delete c[o],this.currentRequests=c,this.subject.next(c.filter(Boolean))}}),i=>s.request(i)}makeAuthRequest(e,s){const{scopes:o}=e;if(o)return{provider:s.provider,trigger:async()=>{const i=await s.onAuthRequest(o);e.resolve(i)},reject:()=>{const i=new Error("Login failed, rejected by user");i.name="RejectedError",e.reject(i)}}}authRequest$(){return this.subject}}function vt(r){return new Promise((e,s)=>{const o=r.width||500,i=r.height||700,c=window.screen.width/2-o/2,S=window.screen.height/2-i/2,C=window.open(r.url,r.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${o},height=${i},top=${S},left=${c}`);let I="";if(!C||typeof C.closed>"u"||C.closed){const it=new Error("Failed to open auth popup.");it.name="PopupRejectedError",s(it);return}const z=it=>{if(it.source!==C||it.origin!==r.origin)return;const{data:Et}=it;if(Et.type==="config_info"){I=Et.targetOrigin;return}if(Et.type!=="authorization_response")return;const Lt=Et;if("error"in Lt){const Vt=new Error(Lt.error.message);Vt.name=Lt.error.name,s(Vt)}else e(Lt.response);ft()},tt=setInterval(()=>{if(C.closed){const it=`Login failed, ${I&&I!==window.location.origin?`Incorrect app origin, expected ${I}`:"popup was closed"}`,Et=new Error(it);Et.name="PopupClosedError",s(Et),ft()}},100);function ft(){window.removeEventListener("message",z),clearInterval(tt)}window.addEventListener("message",z)})}let nt=!1;function U(r){return[...r].join(" ")}class V{discoveryApi;environment;provider;joinScopesFunc;authRequester;sessionTransform;enableExperimentalRedirectFlow;popupOptions;constructor(e){const{configApi:s,discoveryApi:o,environment:i,provider:c,joinScopes:S=U,oauthRequestApi:C,sessionTransform:I=tt=>tt,popupOptions:z}=e;!nt&&!s&&(console.warn("DEPRECATION WARNING: Authentication providers require a configApi instance to configure the authentication flow. Please provide one to the authentication provider constructor."),nt=!0),this.enableExperimentalRedirectFlow=s?s.getOptionalBoolean("enableExperimentalRedirectFlow")??!1:!1,this.authRequester=C.createAuthRequester({provider:c,onAuthRequest:async tt=>this.enableExperimentalRedirectFlow?this.executeRedirect(tt):this.showPopup(tt)}),this.discoveryApi=o,this.environment=i,this.provider=c,this.joinScopesFunc=S,this.sessionTransform=I,this.popupOptions=z}async createSession(e){return e.instantPopup?this.enableExperimentalRedirectFlow?this.executeRedirect(e.scopes):this.showPopup(e.scopes):this.authRequester(e.scopes)}async refreshSession(e){const s=await fetch(await this.buildUrl("/refresh",{optional:!0,...e&&{scope:this.joinScopesFunc(e)}}),{headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(i=>{throw new Error(`Auth refresh request failed, ${i}`)});if(!s.ok){const i=new Error(`Auth refresh request failed, ${s.statusText}`);throw i.status=s.status,i}const o=await s.json();if(o.error){const i=new Error(o.error.message);throw o.error.name&&(i.name=o.error.name),i}return await this.sessionTransform(o)}async removeSession(){const e=await fetch(await this.buildUrl("/logout"),{method:"POST",headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(s=>{throw new Error(`Logout request failed, ${s}`)});if(!e.ok){const s=new Error(`Logout request failed, ${e.statusText}`);throw s.status=e.status,s}}async showPopup(e){const s=this.joinScopesFunc(e),o=await this.buildUrl("/start",{scope:s,origin:window.location.origin,flow:"popup"}),i=this.popupOptions?.size?.fullscreen?window.screen.width:this.popupOptions?.size?.width||450,c=this.popupOptions?.size?.fullscreen?window.screen.height:this.popupOptions?.size?.height||730,S=await vt({url:o,name:`${this.provider.title} Login`,origin:new URL(o).origin,width:i,height:c});return await this.sessionTransform(S)}async executeRedirect(e){const s=this.joinScopesFunc(e);return window.location.href=await this.buildUrl("/start",{scope:s,origin:window.location.origin,redirectUrl:window.location.href,flow:"redirect"}),new Promise(()=>{})}async buildUrl(e,s){const o=await this.discoveryApi.getBaseUrl("auth"),i=this.buildQueryString({...s,env:this.environment});return`${o}/${this.provider.id}${e}${i}`}buildQueryString(e){if(!e)return"";const s=Object.entries(e).map(([o,i])=>{if(typeof i=="string")return`${encodeURIComponent(o)}=${encodeURIComponent(i)}`;if(i)return encodeURIComponent(o)}).filter(Boolean).join("&");return s?`?${s}`:""}}function yt(r,e){for(const s of e)if(!r.has(s))return!1;return!0}class It{options;constructor(e){this.options=e}sessionExistsAndHasScope(e,s){if(!e)return!1;if(!s||this.options.sessionScopes===void 0)return!0;const o=this.options.sessionScopes(e);return yt(o,s)}getExtendedScope(e,s){const o=new Set(this.options.defaultScopes);if(e&&this.options.sessionScopes!==void 0){const i=this.options.sessionScopes(e);for(const c of i)o.add(c)}if(s)for(const i of s)o.add(i);return o}}var Ct=t(55309),Dt=function(r){return r.SignedIn="SignedIn",r.SignedOut="SignedOut",r}({});const Nt=(0,Ct.y)({id:"core.auth.google"}),se=(0,Ct.y)({id:"core.auth.github"}),Bt=(0,Ct.y)({id:"core.auth.okta"}),kt=(0,Ct.y)({id:"core.auth.gitlab"}),ae=(0,Ct.y)({id:"core.auth.microsoft"}),Kt=(0,Ct.y)({id:"core.auth.onelogin"}),Gt=(0,Ct.y)({id:"core.auth.bitbucket"}),Wt=(0,Ct.y)({id:"core.auth.bitbucket-server"}),ee=(0,Ct.y)({id:"core.auth.atlassian"}),Ne=(0,Ct.y)({id:"core.auth.vmware-cloud"});class sn{subject=new N(Dt.SignedOut);signedIn=!1;setIsSignedIn(e){this.signedIn!==e&&(this.signedIn=e,this.subject.next(this.signedIn?Dt.SignedIn:Dt.SignedOut))}sessionState$(){return this.subject}}class Ge{connector;helper;sessionScopesFunc;sessionShouldRefreshFunc;stateTracker=new sn;refreshPromise;currentSession;constructor(e){const{connector:s,defaultScopes:o=new Set,sessionScopes:i,sessionShouldRefresh:c}=e;this.connector=s,this.sessionScopesFunc=i,this.sessionShouldRefreshFunc=c,this.helper=new It({sessionScopes:i,defaultScopes:o})}async getSession(e){if(this.helper.sessionExistsAndHasScope(this.currentSession,e.scopes)){if(!this.sessionShouldRefreshFunc(this.currentSession))return this.currentSession;try{const o=await this.collapsedSessionRefresh(e.scopes),i=this.sessionScopesFunc(this.currentSession),c=this.sessionScopesFunc(o);return yt(c,i)&&(this.currentSession=o),o}catch(o){if(e.optional)return;throw o}}if(!e.instantPopup)try{const s=await this.collapsedSessionRefresh(e.scopes);return this.currentSession=s,this.getSession(e)}catch{}if(!e.optional)return this.currentSession=await this.connector.createSession({...e,scopes:this.helper.getExtendedScope(this.currentSession,e.scopes)}),this.stateTracker.setIsSignedIn(!0),this.currentSession}async removeSession(){this.currentSession=void 0,await this.connector.removeSession(),this.stateTracker.setIsSignedIn(!1)}sessionState$(){return this.stateTracker.sessionState$()}async collapsedSessionRefresh(e){if(this.refreshPromise)return this.refreshPromise;this.refreshPromise=this.connector.refreshSession(this.helper.getExtendedScope(this.currentSession,e));try{const s=await this.refreshPromise;if(!this.helper.sessionExistsAndHasScope(s,e))throw new Error("Refreshed session did not receive the required scopes");return this.stateTracker.setIsSignedIn(!0),s}finally{delete this.refreshPromise}}}const _e={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class re{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=_e,oauthRequestApi:S,defaultScopes:C=[],scopeTransform:I=it=>it,popupOptions:z}=e,tt=new V({configApi:s,discoveryApi:o,environment:i,provider:c,oauthRequestApi:S,sessionTransform({backstageIdentity:it,...Et}){const Lt={...Et,providerInfo:{idToken:Et.providerInfo.idToken,accessToken:Et.providerInfo.accessToken,scopes:re.normalizeScopes(I,Et.providerInfo.scope),expiresAt:Et.providerInfo.expiresInSeconds?new Date(Date.now()+Et.providerInfo.expiresInSeconds*1e3):void 0}};return it&&(Lt.backstageIdentity={token:it.token,identity:it.identity,expiresAt:it.expiresInSeconds?new Date(Date.now()+it.expiresInSeconds*1e3):void 0}),Lt},popupOptions:z}),ft=new Ge({connector:tt,defaultScopes:new Set(C),sessionScopes:it=>it.providerInfo.scopes,sessionShouldRefresh:it=>{let Et=1/0;return it.providerInfo?.expiresAt&&(Et=Math.min(Et,(it.providerInfo.expiresAt.getTime()-Date.now())/1e3)),it.backstageIdentity?.expiresAt&&(Et=Math.min(Et,(it.backstageIdentity.expiresAt.getTime()-Date.now())/1e3)),Et<60*3}});return new re({sessionManager:ft,scopeTransform:I})}sessionManager;scopeTransform;constructor(e){this.sessionManager=e.sessionManager,this.scopeTransform=e.scopeTransform}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(e,s){const o=re.normalizeScopes(this.scopeTransform,e);return(await this.sessionManager.getSession({...s,scopes:o}))?.providerInfo.accessToken??""}async getIdToken(e={}){return(await this.sessionManager.getSession({...e,scopes:new Set(["openid"])}))?.providerInfo.idToken??""}async getBackstageIdentity(e={}){return(await this.sessionManager.getSession(e))?.backstageIdentity}async getProfile(e={}){return(await this.sessionManager.getSession(e))?.profile}static normalizeScopes(e,s){if(!s)return new Set;const o=Array.isArray(s)?s:s.split(/[\s|,]/).filter(Boolean);return new Set(e(o))}}const qe={id:"google",title:"Google",icon:()=>null},de="https://www.googleapis.com/auth/";class Te{static create(e){const{configApi:s,discoveryApi:o,oauthRequestApi:i,environment:c="development",provider:S=qe,defaultScopes:C=["openid",`${de}userinfo.email`,`${de}userinfo.profile`]}=e;return re.create({configApi:s,discoveryApi:o,oauthRequestApi:i,provider:S,environment:c,defaultScopes:C,scopeTransform(I){return I.map(z=>z==="openid"?z:z==="profile"||z==="email"?`${de}userinfo.${z}`:z.startsWith(de)?z:`${de}${z}`)}})}}const We={id:"microsoft",title:"Microsoft",icon:()=>null};class ue{oauth2;configApi;environment;provider;oauthRequestApi;discoveryApi;scopeTransform;static MicrosoftGraphID="00000003-0000-0000-c000-000000000000";static create(e){return new ue(e)}constructor(e){const{configApi:s,environment:o="development",provider:i=We,oauthRequestApi:c,discoveryApi:S,defaultScopes:C=["openid","offline_access","profile","email","User.Read"],scopeTransform:I=z=>z.concat("offline_access")}=e;this.configApi=s,this.environment=o,this.provider=i,this.oauthRequestApi=c,this.discoveryApi=S,this.scopeTransform=I,this.oauth2={[ue.MicrosoftGraphID]:re.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform,defaultScopes:C})}}microsoftGraph(){return this.oauth2[ue.MicrosoftGraphID]}static resourceForScopes(e){const s=[...new Set(e.split(" ").map(ue.resourceForScope).filter(i=>i!=="openid"))];if(s.length>1)return Promise.reject(new Error(`Requested access token with scopes from multiple Azure resources: ${s.join(", ")}. Access tokens can only have a single audience.`));const o=s[0]??ue.MicrosoftGraphID;return Promise.resolve(o)}static resourceForScope(e){const s=e.match(/^(?<resourceURI>.*)\/(?<scp>[^\/]*)$/)?.groups;if(s){const{resourceURI:o}=s;return o.replace(/^api:\/\//,"")}switch(e){case"email":case"openid":case"offline_access":case"profile":return"openid";default:return ue.MicrosoftGraphID}}async getAccessToken(e,s){const o=e===void 0?ue.MicrosoftGraphID:await ue.resourceForScopes(Array.isArray(e)?e.join(" "):e);return o in this.oauth2||(this.oauth2[o]=re.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform})),this.oauth2[o].getAccessToken(e,s)}getIdToken(e){return this.microsoftGraph().getIdToken(e)}getProfile(e){return this.microsoftGraph().getProfile(e)}getBackstageIdentity(e){return this.microsoftGraph().getBackstageIdentity(e)}signIn(){return this.microsoftGraph().signIn()}signOut(){return this.microsoftGraph().signOut()}sessionState$(){return this.microsoftGraph().sessionState$()}}const Ye={id:"github",title:"GitHub",icon:()=>null};class ln{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=Ye,oauthRequestApi:S,defaultScopes:C=["read:user"]}=e;return re.create({configApi:s,discoveryApi:o,oauthRequestApi:S,provider:c,environment:i,defaultScopes:C})}}const rn={id:"okta",title:"Okta",icon:()=>null},on=new Set(["openid","profile","email","phone","address","groups","offline_access"]),tn="okta.";class Re{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=rn,oauthRequestApi:S,defaultScopes:C=["openid","email","profile","offline_access"]}=e;return re.create({configApi:s,discoveryApi:o,oauthRequestApi:S,provider:c,environment:i,defaultScopes:C,scopeTransform(I){return I.map(z=>on.has(z)||z.startsWith(tn)?z:`${tn}${z}`)}})}}const Ke={id:"gitlab",title:"GitLab",icon:()=>null};class Qe{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=Ke,oauthRequestApi:S,defaultScopes:C=["read_user"]}=e;return re.create({configApi:s,discoveryApi:o,oauthRequestApi:S,provider:c,environment:i,defaultScopes:C})}}const Ee={id:"onelogin",title:"onelogin",icon:()=>null},Ze=new Set(["openid","profile","email","phone","address","groups","offline_access"]),ze="onelogin.";class De{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=Ee,oauthRequestApi:S}=e;return re.create({configApi:s,discoveryApi:o,oauthRequestApi:S,provider:c,environment:i,defaultScopes:["openid","email","profile","offline_access"],scopeTransform(C){return C.map(I=>Ze.has(I)||I.startsWith(ze)?I:`${ze}${I}`)}})}}const Le={id:"bitbucket",title:"Bitbucket",icon:()=>null};class Me{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=Le,oauthRequestApi:S,defaultScopes:C=["account"]}=e;return re.create({configApi:s,discoveryApi:o,oauthRequestApi:S,provider:c,environment:i,defaultScopes:C})}}const ke={id:"bitbucketServer",title:"Bitbucket Server",icon:()=>null};class R{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=ke,oauthRequestApi:S,defaultScopes:C=["PROJECT_ADMIN"]}=e;return re.create({configApi:s,discoveryApi:o,oauthRequestApi:S,provider:c,environment:i,defaultScopes:C})}}const l={id:"atlassian",title:"Atlassian",icon:()=>null};class A{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=l,oauthRequestApi:S}=e;return re.create({configApi:s,discoveryApi:o,oauthRequestApi:S,provider:c,environment:i})}}const w={id:"vmwareCloudServices",title:"VMware Cloud",icon:()=>null};class st{static create(e){const{configApi:s,discoveryApi:o,oauthRequestApi:i,environment:c="development",provider:S=w,defaultScopes:C=["openid"]}=e;return re.create({configApi:s,discoveryApi:o,oauthRequestApi:i,provider:S,environment:c,defaultScopes:C})}}var Z=t(12935),ot=t(57405),Pt=t(65461),$t=t(36017),zt=t(99303),qt=t(39837);const Be=(0,Ct.y)({id:"core.storage"});var Ht=t(70795),le=t(16009);const ne=(0,Ct.y)({id:"core.oauthrequest"});var je=t(96824),we=t(70835),xn=t(10288),ie=t.n(xn),dn=t(20938),Yt=t(46195),en=t(54241);const un=Yt.z.lazy(()=>Yt.z.object({rule:Yt.z.string(),resourceType:Yt.z.string(),params:Yt.z.record(Yt.z.any()).optional()}).or(Yt.z.object({anyOf:Yt.z.array(un).nonempty()})).or(Yt.z.object({allOf:Yt.z.array(un).nonempty()})).or(Yt.z.object({not:un}))),rs=Yt.z.object({result:Yt.z.literal(en.b.ALLOW).or(Yt.z.literal(en.b.DENY))}),Ws=Yt.z.union([Yt.z.object({result:Yt.z.literal(en.b.ALLOW).or(Yt.z.literal(en.b.DENY))}),Yt.z.object({result:Yt.z.literal(en.b.CONDITIONAL),pluginId:Yt.z.string(),resourceType:Yt.z.string(),conditions:un})]),os=(r,e)=>Yt.z.object({items:Yt.z.array(Yt.z.intersection(Yt.z.object({id:Yt.z.string()}),r)).refine(s=>s.length===e.size&&s.every(({id:o})=>e.has(o)),{message:"Items in response do not match request"})});class as{enabled;discovery;constructor(e){this.discovery=e.discovery,this.enabled=e.config.getOptionalBoolean("permission.enabled")??!1}async authorize(e,s){return this.makeRequest(e,rs,s)}async authorizeConditional(e,s){return this.makeRequest(e,Ws,s)}async makeRequest(e,s,o){if(!this.enabled)return e.map(tt=>({result:en.b.ALLOW}));const i={items:e.map(tt=>({id:dn.A(),...tt}))},c=await this.discovery.getBaseUrl("permission"),S=await ie()(`${c}/authorize`,{method:"POST",body:JSON.stringify(i),headers:{...this.getAuthorizationHeader(o?.token),"content-type":"application/json"}});if(!S.ok)throw await we.o.fromResponse(S);const C=await S.json(),z=os(s,new Set(i.items.map(({id:tt})=>tt))).parse(C).items.reduce((tt,ft)=>(tt[ft.id]=ft,tt),{});return i.items.map(tt=>z[tt.id])}getAuthorizationHeader(e){return e?{Authorization:`Bearer ${e}`}:{}}}class Cn{permissionClient;identityApi;constructor(e,s){this.permissionClient=e,this.identityApi=s}static create(e){const{config:s,discovery:o,identity:i}=e,c=new as({discovery:o,config:s});return new Cn(c,i)}async authorize(e){return(await this.permissionClient.authorize([e],await this.identityApi.getCredentials()))[0]}}const is=[(0,Z.b)({api:ot.I,deps:{configApi:Pt.U},factory:({configApi:r})=>G.compile(`${r.getString("backend.baseUrl")}/api/{{ pluginId }}`)}),(0,Z.b)({api:$t.k,deps:{},factory:()=>new rt}),(0,Z.b)({api:zt.c,deps:{},factory:()=>new J}),(0,Z.b)({api:qt.m,deps:{alertApi:$t.k},factory:({alertApi:r})=>{const e=new Y(r,new X);return lt.forward(e,{hidden:!1}),e}}),(0,Z.b)({api:Be,deps:{errorApi:qt.m},factory:({errorApi:r})=>xt.create({errorApi:r})}),(0,Z.b)({api:Ht.a,deps:{configApi:Pt.U,identityApi:le.K,discoveryApi:ot.I},factory:({configApi:r,identityApi:e,discoveryApi:s})=>wt({middleware:[Ot.resolvePluginProtocol({discoveryApi:s}),Ot.injectIdentityAuth({identityApi:e,config:r})]})}),(0,Z.b)({api:ne,deps:{},factory:()=>new et}),(0,Z.b)({api:Nt,deps:{discoveryApi:ot.I,oauthRequestApi:ne,configApi:Pt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>Te.create({configApi:s,discoveryApi:r,oauthRequestApi:e,environment:s.getOptionalString("auth.environment")})}),(0,Z.b)({api:ae,deps:{discoveryApi:ot.I,oauthRequestApi:ne,configApi:Pt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>ue.create({configApi:s,discoveryApi:r,oauthRequestApi:e,environment:s.getOptionalString("auth.environment")})}),(0,Z.b)({api:se,deps:{discoveryApi:ot.I,oauthRequestApi:ne,configApi:Pt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>ln.create({configApi:s,discoveryApi:r,oauthRequestApi:e,defaultScopes:["read:user"],environment:s.getOptionalString("auth.environment")})}),(0,Z.b)({api:Bt,deps:{discoveryApi:ot.I,oauthRequestApi:ne,configApi:Pt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>Re.create({configApi:s,discoveryApi:r,oauthRequestApi:e,environment:s.getOptionalString("auth.environment")})}),(0,Z.b)({api:kt,deps:{discoveryApi:ot.I,oauthRequestApi:ne,configApi:Pt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>Qe.create({configApi:s,discoveryApi:r,oauthRequestApi:e,environment:s.getOptionalString("auth.environment")})}),(0,Z.b)({api:Kt,deps:{discoveryApi:ot.I,oauthRequestApi:ne,configApi:Pt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>De.create({configApi:s,discoveryApi:r,oauthRequestApi:e,environment:s.getOptionalString("auth.environment")})}),(0,Z.b)({api:Gt,deps:{discoveryApi:ot.I,oauthRequestApi:ne,configApi:Pt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>Me.create({configApi:s,discoveryApi:r,oauthRequestApi:e,defaultScopes:["account"],environment:s.getOptionalString("auth.environment")})}),(0,Z.b)({api:Wt,deps:{discoveryApi:ot.I,oauthRequestApi:ne,configApi:Pt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>R.create({configApi:s,discoveryApi:r,oauthRequestApi:e,defaultScopes:["REPO_READ"],environment:s.getOptionalString("auth.environment")})}),(0,Z.b)({api:ee,deps:{discoveryApi:ot.I,oauthRequestApi:ne,configApi:Pt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>A.create({configApi:s,discoveryApi:r,oauthRequestApi:e,environment:s.getOptionalString("auth.environment")})}),(0,Z.b)({api:Ne,deps:{discoveryApi:ot.I,oauthRequestApi:ne,configApi:Pt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>st.create({configApi:s,discoveryApi:r,oauthRequestApi:e,environment:s.getOptionalString("auth.environment")})}),(0,Z.b)({api:je.x,deps:{discovery:ot.I,identity:le.K,config:Pt.U},factory:({config:r,discovery:e,identity:s})=>Cn.create({config:r,discovery:e,identity:s})})];var bn=t(14451),cs=t(27799),Bn=t(94389),ls=t(20947),jn=t(20473),ds=t(45917),Un=t(39347),hn=t(63309),us=t(82451),hs=t(85121),$n=t(17400),gs=t(42226),ps=t(69550),Fn=t(52755),Nn=t(89350),fs=t(8911),Sn=t(33602),On=t(48108),ms=t(77225),kn=t(55700),Wn=t(71865),vs=t(80109),ys=t(15303),Es=t(39330);const As={brokenImage:cs.A,catalog:fs.A,scaffolder:ls.A,techdocs:jn.A,search:ds.A,chat:Un.A,dashboard:hn.A,docs:us.A,email:hs.A,github:gs.A,group:Sn.A,help:ps.A,"kind:api":$n.A,"kind:component":Nn.A,"kind:domain":bn.A,"kind:group":Sn.A,"kind:location":Fn.A,"kind:system":Bn.A,"kind:user":On.A,"kind:resource":kn.A,"kind:template":Wn.A,user:On.A,warning:ms.A,star:vs.A,unstarred:ys.A,externalLink:Es.A};var xs=t(58733),Cs=t(55288),bs=t(91360),Ss=t(50868),Os=t(12285),Ps=t(87271),Kn=t(64636);Kn.A.configure(r=>`v5-${r}`);const Ts=(0,Cs.A)({productionPrefix:"jss4-"});function zn(r){const{children:e,theme:s,noCssBaseline:o=!1}=r,i=s.getTheme("v4"),c=s.getTheme("v5");let S;o||(S=(0,a.jsx)(xs.Ay,{}));let C=(0,a.jsxs)(a.Fragment,{children:[S,e]});return i&&(C=(0,a.jsx)(bs.Ay,{generateClassName:Ts,children:(0,a.jsx)(Ss.A,{theme:i,children:C})})),c&&(C=(0,a.jsx)(Os.A,{injectFirst:!0,children:(0,a.jsx)(Ps.A,{theme:c,children:C})})),C}const Hn={light:{type:"light",mode:"light",background:{default:"#F8F8F8",paper:"#FFFFFF"},status:{ok:"#1DB954",warning:"#FF9800",error:"#E22134",running:"#1F5493",pending:"#FFED51",aborted:"#757575"},bursts:{fontColor:"#FEFEFE",slackChannelText:"#ddd",backgroundColor:{default:"#7C3699"},gradient:{linear:"linear-gradient(-137deg, #4BB8A5 0%, #187656 100%)"}},primary:{main:"#1F5493"},banner:{info:"#2E77D0",error:"#E22134",text:"#FFFFFF",link:"#000000",closeButtonColor:"#FFFFFF",warning:"#FF9800"},border:"#E6E6E6",textContrast:"#000000",textVerySubtle:"#DDD",textSubtle:"#6E6E6E",highlight:"#FFFBCC",errorBackground:"#FFEBEE",warningBackground:"#F59B23",infoBackground:"#ebf5ff",errorText:"#CA001B",infoText:"#004e8a",warningText:"#000000",linkHover:"#2196F3",link:"#0A6EBE",gold:"#FFD600",navigation:{background:"#171717",indicator:"#9BF0E1",color:"#b5b5b5",selectedColor:"#FFF",navItem:{hoverBackground:"#404040"},submenu:{background:"#404040"}},pinSidebarButton:{icon:"#181818",background:"#BDBDBD"},tabbar:{indicator:"#9BF0E1"}},dark:{type:"dark",mode:"dark",background:{default:"#333333",paper:"#424242"},status:{ok:"#71CF88",warning:"#FFB84D",error:"#F84C55",running:"#3488E3",pending:"#FEF071",aborted:"#9E9E9E"},bursts:{fontColor:"#FEFEFE",slackChannelText:"#ddd",backgroundColor:{default:"#7C3699"},gradient:{linear:"linear-gradient(-137deg, #4BB8A5 0%, #187656 100%)"}},primary:{main:"#9CC9FF",dark:"#82BAFD"},secondary:{main:"#FF88B2"},banner:{info:"#2E77D0",error:"#E22134",text:"#FFFFFF",link:"#000000",closeButtonColor:"#FFFFFF",warning:"#FF9800"},border:"#E6E6E6",textContrast:"#FFFFFF",textVerySubtle:"#727272",textSubtle:"#CCCCCC",highlight:"#FFFBCC",errorBackground:"#FFEBEE",warningBackground:"#F59B23",infoBackground:"#ebf5ff",errorText:"#CA001B",infoText:"#004e8a",warningText:"#000000",linkHover:"#82BAFD",link:"#9CC9FF",gold:"#FFD600",navigation:{background:"#424242",indicator:"#9BF0E1",color:"#b5b5b5",selectedColor:"#FFF",navItem:{hoverBackground:"#404040"},submenu:{background:"#404040"}},pinSidebarButton:{icon:"#404040",background:"#BDBDBD"},tabbar:{indicator:"#9BF0E1"}}};var Rs=t(98392),Pn=t(17161);const Ue={wave:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1368' height='401' x='0' y='0' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M437 116C223 116 112 0 112 0h1256v400c-82 0-225-21-282-109-112-175-436-175-649-175z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1368 400V282C891-29 788 40 711 161 608 324 121 372 0 361v39h1368z'/%3e%3cpath fill='url(%23paint2_linear)' d='M1368 244v156H0V94c92-24 198-46 375 0l135 41c176 51 195 109 858 109z'/%3e%3cpath fill='url(%23paint3_linear)' d='M1252 400h116c-14-7-35-14-116-16-663-14-837-128-1013-258l-85-61C98 28 46 8 0 0v400h1252z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M-172-98h1671v601H-172z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='602' x2='1093.5' y1='-960.5' y2='272' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='482' x2='480' y1='1058.5' y2='70.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='424' x2='446.1' y1='-587.5' y2='274.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='587' x2='349' y1='-1120.5' y2='341' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e")`,wave2:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1764' height='479' x='-229' y='-6' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M0 400h1350C1321 336 525 33 179-2c-345-34-395 236-408 402H0z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1378 177v223H0V217s219 75 327 52C436 246 717-35 965 45s254 144 413 132z'/%3e%3cpath fill='url(%23paint2_linear)' d='M26 400l-78-16c-170 205-44-6-137-30l-4-1 4 1 137 30c37-45 89-110 159-201 399-514-45 238 1176-50 275-65 354-39 91 267H26z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='431' x2='397.3' y1='-599' y2='372.8' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='236.5' x2='446.6' y1='-586' y2='381.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='851.8' x2='640.4' y1='-867.2' y2='363.7' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e")`,round:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='2269' height='1408' x='-610' y='-509' maskUnits='userSpaceOnUse'%3e%3ccircle cx='1212.8' cy='74.8' r='317.5' fill='url(%23paint0_linear)' transform='rotate(-52 1213 75)'/%3e%3ccircle cx='737.8' cy='445.8' r='317.5' fill='url(%23paint1_linear)' transform='rotate(-116 738 446)'/%3e%3ccircle cx='601.8' cy='52.8' r='418.6' fill='url(%23paint2_linear)' transform='rotate(-117 602 53)'/%3e%3ccircle cx='999.8' cy='364' r='389.1' fill='url(%23paint3_linear)' transform='rotate(31 1000 364)'/%3e%3cellipse cx='-109.2' cy='263.5' fill='url(%23paint4_linear)' rx='429.2' ry='465.8' transform='rotate(-85 -109 264)'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='1301.2' x2='161.4' y1='-1879.7' y2='-969.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='826.2' x2='-313.6' y1='-1508.7' y2='-598.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='718.4' x2='-784.3' y1='-2524' y2='-1324.2' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='1108.2' x2='-288.6' y1='-2031.1' y2='-915.9' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint4_linear' x1='10.4' x2='-1626.5' y1='-2603.8' y2='-1399.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e")`},be={darkGrey:["#171717","#383838"],marineBlue:["#006D8F","#0049A1"],veryBlue:["#0027AF","#270094"],rubyRed:["#98002B","#8D1134"],toastyOrange:["#BE2200","#A41D00"],purpleSky:["#8912CA","#3E00EA"],eveningSea:["#00FFF2","#035355"],teal:["#005B4B"],pinkSea:["#C8077A","#C2297D"],greens:["#4BB8A5","#187656"]};function $e(r){const{colors:e,shape:s,options:o}=r,c=`linear-gradient(90deg, ${(e.length===1?[e[0],e[0]]:e).join(", ")})`,S=`${s}, ${c}`,C=o?.fontColor??"#FFFFFF";return{colors:e,shape:s,backgroundImage:S,fontColor:C}}const ws={home:$e({colors:be.teal,shape:Ue.wave}),documentation:$e({colors:be.pinkSea,shape:Ue.wave2}),tool:$e({colors:be.purpleSky,shape:Ue.round}),service:$e({colors:be.marineBlue,shape:Ue.wave}),website:$e({colors:be.veryBlue,shape:Ue.wave}),library:$e({colors:be.rubyRed,shape:Ue.wave}),other:$e({colors:be.darkGrey,shape:Ue.wave}),app:$e({colors:be.toastyOrange,shape:Ue.wave}),apis:$e({colors:be.teal,shape:Ue.wave2}),card:$e({colors:be.greens,shape:Ue.wave})},Vn=16,Is='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif',f="home",L={htmlFontSize:Vn,fontFamily:Is,h1:{fontSize:54,fontWeight:700,marginBottom:10},h2:{fontSize:40,fontWeight:700,marginBottom:8},h3:{fontSize:32,fontWeight:700,marginBottom:6},h4:{fontWeight:700,fontSize:28,marginBottom:6},h5:{fontWeight:700,fontSize:24,marginBottom:4},h6:{fontWeight:700,fontSize:20,marginBottom:2}};function j(r){const{palette:e,htmlFontSize:s=Vn,fontFamily:o=Is,defaultPageTheme:i=f,pageTheme:c=ws,typography:S}=r;if(!c[i])throw new Error(`${i} is not defined in pageTheme.`);return L.htmlFontSize=s,L.fontFamily=o,{palette:e,typography:S??L,page:c[i],getPageTheme:({themeId:C})=>c[C]??c[i]}}var F=t(80012);const K={MuiCssBaseline:{styleOverrides:r=>({html:{height:"100%",fontFamily:r.typography.fontFamily},body:{height:"100%",fontFamily:r.typography.fontFamily,overscrollBehaviorY:"none",fontSize:"0.875rem",lineHeight:1.43,"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:r.palette.background.paper,width:"1em"},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:r.palette.textVerySubtle,border:`3px solid ${r.palette.background.paper}`},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:r.palette.mode==="dark"?(0,F.a)(r.palette.textVerySubtle,.2):(0,F.e$)(r.palette.textVerySubtle,.2)},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:r.palette.mode==="dark"?(0,F.a)(r.palette.textVerySubtle,.2):(0,F.e$)(r.palette.textVerySubtle,.2)}},a:{color:"inherit",textDecoration:"none"}})},MuiGrid:{defaultProps:{spacing:2}},MuiSwitch:{defaultProps:{color:"primary"}},MuiTableRow:{styleOverrides:{root:({theme:r})=>({"&:nth-of-type(odd)":{backgroundColor:r.palette.background.default}}),hover:{"&:hover":{cursor:"pointer"}},head:({theme:r})=>({"&:nth-of-type(odd)":{backgroundColor:r.palette.background.paper}})}},MuiTableCell:{styleOverrides:{root:({theme:r})=>({wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:r.spacing(3,2,3,2.5),borderBottom:0}),sizeSmall:({theme:r})=>({padding:r.spacing(1.5,2,1.5,2.5)}),head:({theme:r})=>({wordBreak:"break-word",overflow:"hidden",color:r.palette.textSubtle,fontWeight:"normal",lineHeight:"1"})}},MuiTabs:{styleOverrides:{root:{minHeight:24}}},MuiTab:{styleOverrides:{root:({theme:r})=>({color:r.palette.link,minHeight:24,textTransform:"initial",letterSpacing:"0.07em","&:hover":{color:(0,F.e$)(r.palette.link,.3),background:(0,F.a)(r.palette.link,.95)},[r.breakpoints.up("md")]:{minWidth:120,fontSize:r.typography.pxToRem(14),fontWeight:500}}),textColorPrimary:({theme:r})=>({color:r.palette.link})}},MuiTableSortLabel:{styleOverrides:{root:{color:"inherit","&:hover":{color:"inherit"},"&:focus":{color:"inherit"},"&.Mui-active":{fontWeight:"bold",color:"inherit"}}}},MuiListItemText:{styleOverrides:{dense:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}},MuiButton:{styleOverrides:{text:{padding:void 0}}},MuiChip:{styleOverrides:{root:({theme:r})=>({marginRight:r.spacing(1),marginBottom:r.spacing(1)}),label:({theme:r})=>({lineHeight:r.spacing(2.5),fontWeight:r.typography.fontWeightMedium,fontSize:r.spacing(1.75)}),labelSmall:({theme:r})=>({fontSize:r.spacing(1.5)}),deleteIcon:({theme:r})=>({width:r.spacing(3),height:r.spacing(3),margin:r.spacing(0,.75,0,-.75)}),deleteIconSmall:({theme:r})=>({width:r.spacing(2),height:r.spacing(2),margin:r.spacing(0,.5,0,-.5)})}},MuiCard:{styleOverrides:{root:{display:"flex",flexDirection:"column"}}},MuiCardHeader:{styleOverrides:{root:{paddingBottom:0}}},MuiCardContent:{styleOverrides:{root:{flexGrow:1,"&:last-child":{paddingBottom:void 0}}}},MuiCardActions:{styleOverrides:{root:{justifyContent:"flex-end"}}},MuiLink:{defaultProps:{underline:"hover"}},MuiPaper:{styleOverrides:{root:{backgroundImage:"unset"}}}},_=r=>(...e)=>{const s=e.length===0?[1]:e,o=(i,c)=>typeof i=="string"?i:c*i;return s.map(i=>{const c=o(i,r);return typeof c=="number"?`${c}px`:c}).join(" ")};function at(r,e){if(!e||typeof e=="string")return;const s=typeof e=="function"?e(r):e;if(s)return{"@global":s}}function bt(r,e){if(!(!e||typeof e=="string")){if(typeof e=="object"){const s={...r},o=r.spacing(1);return typeof o=="number"&&(s.spacing=_(o)),Object.fromEntries(Object.entries(e).map(([i,c])=>typeof c=="function"?[i,c({theme:s})]:[i,c]))}return e}}const Rt=/^&.Mui-([\w-]+)$/;function jt(r){let e=r;if(!r||typeof r!="object")return e;for(const s of Object.keys(r)){const o=r[s];if(!(!o||typeof o!="object"))for(const i of Object.keys(o)){const c=i,S=c.match(Rt);if(S){const[,C]=S,{[c]:I,...z}=o;I&&(e={...e,[s]:z,[C]:I})}}}return e}function Mt(r,e={}){const s={},o={};for(const i of Object.keys(e)){const c=e[i];c&&("styleOverrides"in c&&(i==="MuiCssBaseline"?s[i]=at(r,c.styleOverrides):s[i]=jt(bt(r,c.styleOverrides))),"defaultProps"in c&&(o[i]=c.defaultProps))}return{overrides:s,props:o}}class Ut{#t=new Map;constructor(e,s){this.#t=new Map,e&&this.#t.set("v4",e),s&&this.#t.set("v5",s)}getTheme(e){return this.#t.get(e)}}function Zt(r){const e=j(r),s={...K,...r.components},o=(0,Pn.A)({...e,components:s}),i=Mt(o,s),c={...(0,Rs.A)(e),...i};return new Ut(c,o)}function he(r){const e=adaptV4Theme(r),s=createTheme(r);return new Ut(s,createV5Theme(e))}const Ft={light:Zt({palette:Hn.light}),dark:Zt({palette:Hn.dark})};var Jt=t(75962),fe=t(87145);const ce=[{id:"light",title:"Light Theme",variant:"light",icon:(0,a.jsx)(fe.A,{}),Provider:({children:r})=>(0,a.jsx)(zn,{theme:Ft.light,children:r})},{id:"dark",title:"Dark Theme",variant:"dark",icon:(0,a.jsx)(Jt.A,{}),Provider:({children:r})=>(0,a.jsx)(zn,{theme:Ft.dark,children:r})}];var Xt=t(73466),Qt=t(39067),ge=t.n(Qt);class te{holders;constructor(...e){this.holders=e}get(e){for(const s of this.holders){const o=s.get(e);if(o)return o}}}var _t=t(43836),oe=t(10602);const He=(0,_t.tK)("api-context"),Se=r=>{const{apis:e,children:s}=r,o=(0,d.useContext)(He)?.atVersion(1),i=o?new te(e,o):e;return(0,a.jsx)(He.Provider,{value:(0,oe.B)({1:i}),children:s})};Se.propTypes={apis:ge().shape({get:ge().func.isRequired}).isRequired,children:ge().node};const gn=/^[a-z][a-z0-9]*(?:[-_][a-z][a-z0-9]*)*$/i;function Ve(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function pe(r){return typeof r!="object"||r===null?r:Array.isArray(r)?r.map(pe):Object.fromEntries(Object.entries(r).map(([e,s])=>[e,pe(s)]))}function pn(r,e){if(r===null)return;if(r===void 0)return e===void 0?void 0:pn(e);if(typeof r!="object"||Array.isArray(r))return r;const s=Ve(e)?e:{},o={};for(const i of new Set([...Object.keys(r),...Object.keys(s)])){const c=pn(r[i],s[i]);c!==void 0&&(o[i]=c)}return o}function Tn(r){if(r===null)return"null";if(Array.isArray(r))return"array";const e=typeof r;return e==="number"&&isNaN(r)?"nan":e==="string"&&r===""?"empty-string":e}const Fe={type(r,e,s,o){return`Invalid type in config for key '${r}' in '${e}', got ${s}, wanted ${o}`},missing(r,e){return`Missing required config value at '${r}' in '${e}'`},convert(r,e,s){return`Unable to convert config value for key '${r}' in '${e}' to a ${s}`}};class fn{data;context;fallback;prefix;filteredKeys;notifiedFilteredKeys;static fromConfigs(e){return e.length===0?new fn(void 0):e.reduce((s,{data:o,context:i,filteredKeys:c,deprecatedKeys:S})=>{const C=new fn(o,i,s);if(C.filteredKeys=c,S)for(const{key:I,description:z}of S)console.warn(`The configuration key '${I}' of ${i} is deprecated and may be removed soon. ${z||""}`);return C},void 0)}constructor(e,s="mock-config",o,i=""){this.data=e,this.context=s,this.fallback=o,this.prefix=i,this.notifiedFilteredKeys=new Set}has(e){const s=this.readValue(e);return s===null?!1:s!==void 0?!0:this.fallback?.has(e)??!1}keys(){const e=this.data?Object.keys(this.data):[],s=this.fallback?.keys()??[];return[...new Set([...e,...s])].filter(o=>this.data?.[o]!==null)}get(e){const s=this.getOptional(e);if(s===void 0)throw new Error(Fe.missing(this.fullKey(e??""),this.context));return s}getOptional(e){const s=pe(this.readValue(e)),o=this.fallback?.getOptional(e);if(s!==null)return s===void 0?pn(o):o===void 0?pn(s):pn(s,o)}getConfig(e){const s=this.getOptionalConfig(e);if(s===void 0)throw new Error(Fe.missing(this.fullKey(e),this.context));return s}getOptionalConfig(e){const s=this.readValue(e),o=this.fallback?.getOptionalConfig(e);if(Ve(s))return this.copy(s,e,o);if(s!==null){if(s!==void 0)throw new TypeError(Fe.type(this.fullKey(e),this.context,Tn(s),"object"));return o}}getConfigArray(e){const s=this.getOptionalConfigArray(e);if(s===void 0)throw new Error(Fe.missing(this.fullKey(e),this.context));return s}getOptionalConfigArray(e){const s=this.readConfigValue(e,o=>{if(!Array.isArray(o))return{expected:"object-array"};for(const[i,c]of o.entries())if(!Ve(c))return{expected:"object-array",value:c,key:`${e}[${i}]`};return!0});if(s)return s.map((o,i)=>this.copy(o,`${e}[${i}]`))}getNumber(e){const s=this.getOptionalNumber(e);if(s===void 0)throw new Error(Fe.missing(this.fullKey(e),this.context));return s}getOptionalNumber(e){const s=this.readConfigValue(e,i=>typeof i=="number"||typeof i=="string"||{expected:"number"});if(typeof s=="number"||s===void 0)return s;const o=Number(s);if(!Number.isFinite(o))throw new Error(Fe.convert(this.fullKey(e),this.context,"number"));return o}getBoolean(e){const s=this.getOptionalBoolean(e);if(s===void 0)throw new Error(Fe.missing(this.fullKey(e),this.context));return s}getOptionalBoolean(e){const s=this.readConfigValue(e,i=>typeof i=="boolean"||typeof i=="number"||typeof i=="string"||{expected:"boolean"});if(typeof s=="boolean"||s===void 0)return s;const o=String(s).trim();if(/^(?:y|yes|true|1|on)$/i.test(o))return!0;if(/^(?:n|no|false|0|off)$/i.test(o))return!1;throw new Error(Fe.convert(this.fullKey(e),this.context,"boolean"))}getString(e){const s=this.getOptionalString(e);if(s===void 0)throw new Error(Fe.missing(this.fullKey(e),this.context));return s}getOptionalString(e){return this.readConfigValue(e,s=>typeof s=="string"&&s!==""||{expected:"string"})}getStringArray(e){const s=this.getOptionalStringArray(e);if(s===void 0)throw new Error(Fe.missing(this.fullKey(e),this.context));return s}getOptionalStringArray(e){return this.readConfigValue(e,s=>{if(!Array.isArray(s))return{expected:"string-array"};for(const[o,i]of s.entries())if(typeof i!="string"||i==="")return{expected:"string-array",value:i,key:`${e}[${o}]`};return!0})}fullKey(e){return`${this.prefix}${this.prefix?".":""}${e}`}copy(e,s,o){const i=new fn(e,this.context,o,this.fullKey(s));return i.filteredKeys=this.filteredKeys,i}readConfigValue(e,s){const o=this.readValue(e);if(o===void 0)return this.fallback?.readConfigValue(e,s);if(o===null)return;const i=s(o);if(i!==!0){const{key:c=e,value:S=o,expected:C}=i;throw new TypeError(Fe.type(this.fullKey(c),this.context,Tn(S),C))}return o}readValue(e){const s=e?e.split("."):[];for(const i of s)if(!gn.test(i))throw new TypeError(`Invalid config key '${e}'`);if(this.data===void 0)return;let o=this.data;for(const[i,c]of s.entries())if(Ve(o))o=o[c];else if(o!=null){const S=this.fullKey(s.slice(0,i).join("."));throw new TypeError(Fe.type(S,this.context,Tn(o),"object"))}return o}}const Rn="theme";class Gn{themes;static createWithStorage(e){const s=new Gn(e);if(!window.localStorage)return s;const o=window.localStorage.getItem(Rn)??void 0;return s.setActiveThemeId(o),s.activeThemeId$().subscribe(i=>{i?window.localStorage.setItem(Rn,i):window.localStorage.removeItem(Rn)}),window.addEventListener("storage",i=>{if(i.key===Rn){const c=localStorage.getItem(Rn)??void 0;s.setActiveThemeId(c)}}),s}activeThemeId;subject;constructor(e){this.themes=e,this.subject=new N(void 0)}getInstalledThemes(){return this.themes.slice()}activeThemeId$(){return this.subject}getActiveThemeId(){return this.activeThemeId}setActiveThemeId(e){this.activeThemeId=e,this.subject.next(e)}}var mn=t(63636);function Ks(r){if(r.length<3)throw new Error(`The '${r}' feature flag must have a minimum length of three characters.`);if(r.length>150)throw new Error(`The '${r}' feature flag must not exceed 150 characters.`);if(!r.match(/^[a-z]+[a-z0-9-]+$/))throw new Error(`The '${r}' feature flag must start with a lowercase letter and only contain lowercase letters, numbers and hyphens. Examples: feature-flag-one, alpha, release-2020`)}class $r{registeredFeatureFlags=[];flags;registerFlag(e){Ks(e.name),this.registeredFeatureFlags.push(e)}getRegisteredFlags(){return this.registeredFeatureFlags.slice()}isActive(e){return this.flags||(this.flags=this.load()),this.flags.get(e)===mn.S.Active}save(e){this.flags||(this.flags=this.load()),e.merge||this.flags.clear();for(const[o,i]of Object.entries(e.states))this.flags.set(o,i);const s=Array.from(this.flags.entries()).filter(([,o])=>o===mn.S.Active);window.localStorage.setItem("featureFlags",JSON.stringify(Object.fromEntries(s)))}load(){try{const e=window.localStorage.getItem("featureFlags");if(!e)return new Map;const s=JSON.parse(e);if(typeof s!="object"||s===null||Array.isArray(s))return new Map;const o=Object.entries(s).filter(([i,c])=>(Ks(i),c===mn.S.Active));return new Map(o)}catch{return new Map}}}const Yn=(0,Ct.y)({id:"core.apptheme"}),zs=(0,Ct.y)({id:"core.applanguage"});var Fr=t(56038),Hs=function(r){return r[r.default=10]="default",r[r.app=50]="app",r[r.static=100]="static",r}(Hs||{});class Nr{factories=new Map;register(e,s){const o=Hs[e],i=this.factories.get(s.api.id);return i&&i.priority>=o?!1:(this.factories.set(s.api.id,{priority:o,factory:s}),!0)}get(e){const s=this.factories.get(e.id);if(s)return s.factory}getAllApis(){const e=new Set;for(const{factory:s}of this.factories.values())e.add(s.api);return e}}class Ds{factories;static validateFactories(e,s){for(const o of s){const i=[o],c=new Set;for(;i.length;){const S=i.shift(),C=e.get(S);if(C)for(const I of Object.values(C.deps)){if(I.id===o.id)throw new Error(`Circular dependency of api factory for ${o}`);c.has(I)||(c.add(I),i.push(I))}}}}apis;constructor(e){this.factories=e,this.apis=new Map}get(e){return this.load(e)}load(e,s=[]){const o=this.apis.get(e.id);if(o)return o;const i=this.factories.get(e);if(!i)return;if(s.includes(i.api))throw new Error(`Circular dependency of api factory for ${i.api}`);const c=this.loadDeps(e,i.deps,[...s,i.api]),S=i.factory(c);return this.apis.set(e.id,S),S}loadDeps(e,s,o){const i={};for(const c in s)if(s.hasOwnProperty(c)){const S=s[c],C=this.load(S,o);if(!C)throw new Error(`No API factory available for dependency ${S} of dependent ${e}`);i[c]=C}return i}}function kr(r){const e={};for(const o in r.collectors)r.collectors.hasOwnProperty(o)&&(e[o]=r.collectors[o]());const s=[{node:d.Children.toArray(r.root),parent:void 0,contexts:{}}];for(;s.length!==0;){const{node:o,parent:i,contexts:c}=s.shift();d.Children.forEach(o,S=>{if(!(0,d.isValidElement)(S))return;const C={};for(const I in e)if(e.hasOwnProperty(I)){const z=e[I];C[I]=z.visit(z.accumulator,S,i,c[I])}for(const I of r.discoverers){const z=I(S);z&&s.push({node:z,parent:S,contexts:C})}})}return Object.fromEntries(Object.entries(e).map(([o,i])=>[o,i.accumulator]))}function Qn(r,e){return()=>({accumulator:r(),visit:e})}function Wr(r){return r.props?.children}function Kr(r){if(r.props?.path&&r.props?.element)return r.props?.element}var Ae=t(19402);const zr=Qn(()=>new Set,(r,e)=>{const s=(0,Ae.E)(e,"core.plugin");s&&r.add(s)});var wn=t(72427);const Vs=r=>{const{children:e}=r,s=(0,wn.gf)(mn.B),o="with"in r?s.isActive(r.with):!s.isActive(r.without);return(0,a.jsx)(a.Fragment,{children:o?e:null})};(0,Ae.h)(Vs,"core.featureFlagged",!0);const Zn={caseSensitive:!1,path:"*",element:"match-all",routeRefs:new Set,plugins:new Set};function Jn(r){const e=r;return e?.type?e.type.displayName??e.type.name??String(e.type):String(e)}const Gs=r=>{const e=new Set;return r&&e.add(r),e};function Ys(r,e=new Array){return d.Children.forEach(r,s=>{if(!(0,d.isValidElement)(s))return;const o=(0,Ae.E)(s,"core.mountPoint");if(o){const i=(0,Ae.E)(s,"core.plugin");e.push({routeRef:o,plugin:i})}Ys(s.props.children,e)}),e}const Hr=Qn(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,s,o)=>{if(o?.isElementAncestor)return o;if(s?.props.element===e)return{...o,isElementAncestor:!0};const i=e.props?.path,c=(0,Ae.E)(e,"core.mountPoint");if(c&&i)throw new Error(`Path property may not be set directly on a routable extension "${Jn(e)}"`);const S=o?.obj?.children??r.objects;if(i!==void 0){if(typeof i!="string")throw new Error(`Element path must be a string at "${Jn(e)}"`);const C=i.startsWith("/")?i.slice(1):i,I=e.props.element;if((0,Ae.E)(e,"core.gatherMountPoints")){if(I)throw new Error(`Mount point gatherers may not have an element prop "${Jn(e)}"`);const z={path:C,element:"gathered",routeRefs:new Set,caseSensitive:!!e.props?.caseSensitive,children:[Zn],plugins:new Set};return S.push(z),{obj:z,gatherPath:C,routeRef:o?.routeRef,gatherRouteRef:o?.routeRef}}if(I){const[z,...tt]=Ys(I);if(tt.length>0)throw new Error(`Route element with path "${i}" may not contain multiple routable extensions`);if(!z)return o;const{routeRef:ft,plugin:it}=z,Et={path:C,element:"mounted",routeRefs:new Set([ft]),caseSensitive:!!e.props?.caseSensitive,children:[Zn],plugins:Gs(it)};return S.push(Et),r.paths.set(ft,C),r.parents.set(ft,o?.routeRef),{obj:Et,routeRef:ft??o?.routeRef,gatherPath:C,gatherRouteRef:o?.gatherRouteRef}}}if(c){if(o?.gatherPath===void 0)throw new Error(`Routable extension "${Jn(e)}" with mount point "${c}" must be assigned a path`);o?.obj?.routeRefs.add(c);const C=(0,Ae.E)(e,"core.plugin");return C&&o?.obj?.plugins.add(C),r.paths.set(c,o.gatherPath),r.parents.set(c,o?.gatherRouteRef),{...o,routeRef:c}}return o}),Vr=Qn(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,s,o)=>{if(s?.props.element===e)return o;let i=o?.obj,c=o?.routeRef,S=o?.sticky;const C=e.props?.path,I=i?.children??r.objects,z=!!e.props?.caseSensitive;let tt=o?.path;if((0,Ae.E)(e,"core.gatherMountPoints")){if(!C)throw new Error("Mount point gatherer must have a path");tt=C}const ft=e.props?.element;let it=(0,Ae.E)(e,"core.mountPoint");if(!it&&(0,d.isValidElement)(ft)&&(it=(0,Ae.E)(ft,"core.mountPoint")),it){let Lt=C;if(tt&&(Lt?tt=void 0:Lt=tt),!Lt)throw new Error("Mounted routable extension must have a path");r.paths.set(it,Lt),c&&S?(r.parents.set(it,c),C&&(c=it,S=!1)):(r.parents.set(it,c),c=it),C?(i={caseSensitive:z,path:C,element:"mounted",routeRefs:new Set([it]),children:[Zn],plugins:Gs((0,Ae.E)(e.props.element,"core.plugin"))},I.push(i)):i?.routeRefs.add(it)}if((0,Ae.E)(e,"core.gatherMountPoints")&&(S=!0),(0,Ae.E)(e,"core.gatherMountPoints")){if(!C)throw new Error("Mount point gatherer must have a path");it||(i={caseSensitive:z,path:C,element:"gathered",routeRefs:new Set,children:[Zn],plugins:o?.obj?.plugins||new Set},I.push(i))}return{obj:i,path:tt,routeRef:c,sticky:S}}),Gr=Qn(()=>new Set,(r,e)=>{if(e.type===Vs){const s=e.props;r.add("with"in s?s.with:s.without)}});var In=t(21613),Yr=t(63544);const Dn=(0,Yr.Q)("route-ref-type",()=>Symbol("route-ref-type"));function Qs(r){return r[Dn]==="absolute"}function Zs(r){return r[Dn]==="sub"}function Qr(r){return r[Dn]==="external"}function Xn(...r){const e=r.join("/").replace(/\/\/+/g,"/");return e!=="/"&&e.endsWith("/")?e.slice(0,-1):e}var Zr=t(46155),Jr=t.n(Zr);function Xr(r,e,s){let o,i="";if(Qs(r))o=r;else if(Zs(r))o=r.parent,i=r.path;else if(Qr(r)){const C=s.get(r);if(!C)return[void 0,""];if(Qs(C))o=C;else if(Zs(C))o=C.parent,i=C.path;else throw new Error(`ExternalRouteRef was bound to invalid target, ${C}`)}else throw r[Dn]?new Error(`Unknown or invalid route ref type, ${r[Dn]}`):new Error(`Unknown object passed to useRouteRef, got ${r}`);if(!o)return[void 0,""];const c=e.get(o);if(c===void 0)return[void 0,""];const S=Xn(c,i);return[o,S]}function _r(r,e,s,o,i){const c=(0,In.ue)(i,e)??[],S=Array();let C=-1;for(let tt=r;tt&&(C=c.findIndex(ft=>ft.route.routeRefs.has(tt)),C===-1);tt=o.get(tt))S.unshift(tt);S.length===0&&(C-=1);const I=C===-1?"":c[C].pathname,z=S.slice(0,-1).map(tt=>{const ft=s.get(tt);if(ft===void 0)throw new Error(`No path for ${tt}`);if(ft.includes(":"))throw new Error(`Cannot route to ${r} with parent ${tt} as it has parameters`);return ft});return`${Xn(I,...z)}/`}class qr{routePaths;routeParents;routeObjects;routeBindings;appBasePath;constructor(e,s,o,i,c){this.routePaths=e,this.routeParents=s,this.routeObjects=o,this.routeBindings=i,this.appBasePath=c}resolve(e,s){const[o,i]=Xr(e,this.routePaths,this.routeBindings);if(!o)return;let c;typeof s=="string"?c=this.trimPath(s):s.pathname?c={...s,pathname:this.trimPath(s.pathname)}:c=s;const S=this.appBasePath+_r(o,c,this.routePaths,this.routeParents,this.routeObjects);return(...[I])=>{const z=I&&Jr()(I,tt=>typeof tt=="string"?tt.replaceAll(/[&?#;\/]/g,ft=>encodeURIComponent(ft)):tt);return Xn(S,(0,In.tW)(i,z))}}trimPath(e){return e&&(e.startsWith(this.appBasePath)?e.slice(this.appBasePath.length):e)}}const to=(0,_t.tK)("routing-context"),eo=({routePaths:r,routeParents:e,routeObjects:s,routeBindings:o,basePath:i="",children:c})=>{const S=new qr(r,e,s,o,i),C=(0,oe.B)({1:S});return(0,a.jsx)(to.Provider,{value:C,children:c})};function no(r,e){const s=new Set(e.values());s.delete(void 0);for(const o of e.keys()){if(s.has(o))continue;let i=o,c="";for(;i;){const C=r.get(i);if(C===void 0)throw new Error(`No path for ${i}`);c=Xn(C,c),i=e.get(i)}const S=c.match(/:(\w+)/g);if(S){for(let C=0;C<S.length;C++)for(let I=C+1;I<S.length;I++)if(S[I]===S[C])throw new Error(`Parameter ${S[I]} is duplicated in path ${c}`)}}}function so(r,e){for(const s of e)if(s.externalRoutes){for(const[o,i]of Object.entries(s.externalRoutes))if(!i.optional&&!r.has(i))throw new Error(`External route '${o}' of the '${s.getId()}' plugin must be bound to a target route. See https://backstage.io/link?bind-routes for details.`)}}const ro=(0,_t.tK)("app-context"),oo=({appContext:r,children:e})=>{const s=(0,oe.B)({1:r});return(0,a.jsx)(ro.Provider,{value:s,children:e})},Js="app",ao=`${Js}-auth-cookie-expires-at`,io=5*6e4,Xs=5e3,co=2,lo=5*6e4;function uo({discoveryApi:r,fetchApi:e,errorApi:s}){let o=!1,i,c=!0,S=Xs;const C="BroadcastChannel"in window?new BroadcastChannel(ao):void 0,I=it=>{const Et=(1+3*Math.random())*6e4;return Math.max(it-Date.now(),io)-Et},z=async()=>{try{const Et=`${await r.getBaseUrl(Js)}/.backstage/auth/v1/cookie`,Lt=await e.fetch(Et,{credentials:"include"});if(!Lt.ok)throw new Error(`Request failed with status ${Lt.status} ${Lt.statusText}, see request towards ${Et} for more details`);const Vt=await Lt.json();if(!Vt.expiresAt)throw new Error("No expiration date in response");const Ce=Date.parse(Vt.expiresAt);if(Number.isNaN(Ce))throw new Error("Invalid expiration date in response");c=!0,C?.postMessage({action:"COOKIE_REFRESH_SUCCESS",payload:{expiresAt:new Date(Ce).toISOString()}}),ft(I(Ce))}catch(it){c?(c=!1,S=Xs):(S=Math.min(lo,S*co),console.error("Session cookie refresh failed",it),s.post(new Error("Session refresh failed, see developer console for details"))),ft(S)}},tt=it=>{const{data:Et}=it;if(!(Et===null||typeof Et!="object")&&"action"in Et&&Et.action==="COOKIE_REFRESH_SUCCESS"){const Lt=Date.parse(Et.payload.expiresAt);if(Number.isNaN(Lt)){console.warn("Received invalid expiration from session refresh channel");return}ft(I(Lt))}};function ft(it){o||(i&&clearTimeout(i),i=setTimeout(z,it))}return C?.addEventListener("message",tt),z(),()=>{o=!0,i&&clearTimeout(i),C?.removeEventListener("message",tt),C?.close()}}function _s(r){return new Error(`Tried to access IdentityApi ${r} before app was loaded`)}function Ls(r){console.warn(`WARNING: Call to ${r} is deprecated and will break in the future`)}class ho{target;waitForTarget;resolveTarget=()=>{};signOutTargetUrl="/";#t;constructor(){this.waitForTarget=new Promise(e=>{this.resolveTarget=e})}setTarget(e,s){this.target=e,this.signOutTargetUrl=s.signOutTargetUrl,this.resolveTarget(e)}getUserId(){if(!this.target)throw _s("getUserId");if(!this.target.getUserId)throw new Error("IdentityApi does not implement getUserId");return Ls("getUserId"),this.target.getUserId()}getProfile(){if(!this.target)throw _s("getProfile");if(!this.target.getProfile)throw new Error("IdentityApi does not implement getProfile");return Ls("getProfile"),this.target.getProfile()}async getProfileInfo(){return this.waitForTarget.then(e=>e.getProfileInfo())}async getBackstageIdentity(){const e=await this.waitForTarget.then(s=>s.getBackstageIdentity());return e.userEntityRef.match(/^.*:.*\/.*$/)||console.warn(`WARNING: The App IdentityApi provided an invalid userEntityRef, '${e.userEntityRef}'. It must be a full Entity Reference of the form '<kind>:<namespace>/<name>'.`),e}async getCredentials(){return this.waitForTarget.then(e=>e.getCredentials())}async getIdToken(){return this.waitForTarget.then(e=>{if(!e.getIdToken)throw new Error("IdentityApi does not implement getIdToken");return Ls("getIdToken"),e.getIdToken()})}async signOut(){await this.waitForTarget.then(e=>e.signOut()),await this.#t?.(),window.location.href=this.signOutTargetUrl}enableCookieAuth(e){if(this.#t)return;const s=uo(e);this.#t=async()=>{s();const o=await e.discoveryApi.getBaseUrl("app");try{await fetch(`${o}/.backstage/auth/v1/cookie`,{method:"DELETE",credentials:"include"})}catch{}}}}var go=t(1394);function po(r,e,s){if(r!==void 0){const i=s.find(c=>c.id===r);if(i)return i}if(e){const i=s.find(c=>c.variant==="dark");if(i)return i}const o=s.find(i=>i.variant==="light");return o||s[0]}const fo=()=>{const r=(0,d.useMemo)(()=>window.matchMedia("(prefers-color-scheme: dark)"),[]),[e,s]=(0,d.useState)(r.matches);return(0,d.useEffect)(()=>{const o=i=>{s(i.matches)};return r.addListener(o),()=>{r.removeListener(o)}},[r]),e};function qs({children:r}){const e=(0,wn.gf)(Yn),s=(0,go.A)(e.activeThemeId$(),e.getActiveThemeId()),o=window.matchMedia?fo():!1,i=po(s,o,e.getInstalledThemes());if(!i)throw new Error("App has no themes");return(0,a.jsx)(i.Provider,{children:r})}const tr=async()=>mo();function mo(r="__APP_INJECTED_RUNTIME_CONFIG__"){const e=new Array,s=[{context:"app-config.yaml",data:{app:{title:"Techdocs Preview App",baseUrl:"http://localhost:3000"},backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}}}];if(s){if(!Array.isArray(s))throw new Error("Static configuration has invalid format");e.push(...s)}const o=document.querySelectorAll('script[type="backstage.io/config"]');if(o.length>0)for(const c of o)try{const S=c.textContent;if(!S)throw new Error("tag is empty");let C;try{C=JSON.parse(S)}catch(I){throw new Error(`failed to parse config; ${I}`)}if(!Array.isArray(C))throw new Error("data is not an array");e.push(...C)}catch(S){throw new Error(`Failed to load config from script tag, ${S.message}`)}else if(r!=="__app_injected_runtime_config__".toLocaleUpperCase("en-US"))try{const c=JSON.parse(r);Array.isArray(c)?e.push(...c):e.push({data:c,context:"env"})}catch(c){throw new Error(`Failed to load runtime configuration, ${c}`)}const i=window.__APP_CONFIG__;return i&&e.push({context:"window",data:i}),e}class vo{apis=[];add(e,s){return this.apis.push([e.id,s]),s}build(){return new vn(new Map(this.apis))}}class vn{apis;static builder(){return new vo}static from(e){return new vn(new Map(e.map(([s,o])=>[s.id,o])))}static with(e,s){return new vn(new Map([[e.id,s]]))}constructor(e){this.apis=e}with(e,s){return new vn(new Map([...this.apis,[e.id,s]]))}get(e){return this.apis.get(e.id)}}function yo(r){const e=new Map,s=new Map;for(const o of r){for(const[i,c]of Object.entries(o.routes??{})){const S=`${o.getId()}.${i}`;if(e.has(S))throw new Error(`Unexpected duplicate route '${S}'`);e.set(S,c)}for(const[i,c]of Object.entries(o.externalRoutes??{})){const S=`${o.getId()}.${i}`;if(s.has(S))throw new Error(`Unexpected duplicate external route '${S}'`);s.set(S,c)}}return{routes:e,externalRoutes:s}}function Eo(r,e,s){const o=yo(s),i=new Map,c=new Set;r&&r({bind:(I,z)=>{for(const[tt,ft]of Object.entries(z)){const it=I[tt];if(!it)throw new Error(`Key ${tt} is not an existing external route`);if(!ft&&!it.optional)throw new Error(`External route ${tt} is required but was ${ft===!1?"disabled":"not provided"}`);ft?i.set(it,ft):ft===!1&&c.add(it)}}});const S=e.getOptionalConfig("app.routes.bindings")?.get();if(S)for(const[C,I]of Object.entries(S)){if(!Ao(I))throw new Error(`Invalid config at app.routes.bindings['${C}'], value must be a non-empty string or false`);const z=o.externalRoutes.get(C);if(!z)throw new Error(`Invalid config at app.routes.bindings, '${C}' is not a valid external route`);if(!(i.has(z)||c.has(z)))if(I===!1)c.add(z);else{const tt=o.routes.get(I);if(!tt)throw new Error(`Invalid config at app.routes.bindings['${C}'], '${I}' is not a valid route`);i.set(z,tt)}}for(const C of o.externalRoutes.values())if(!i.has(C)&&!c.has(C)){const I="getDefaultTarget"in C?C.getDefaultTarget():void 0;if(I){const z=o.routes.get(I);z&&i.set(C,z)}}return i}function Ao(r){return!!(r===!1||typeof r=="string"&&r)}function Ln(){const[r]=(0,m.AV)((0,a.jsx)(m.qh,{index:!0,element:(0,a.jsx)("div",{})}));return!r.index}const er=(0,d.createContext)(void 0);var nr=t(82266),sr=t(93368),xo=t(25862);const Co=(r,e)=>{try{const o=(0,In.ue)(e,{pathname:r})?.filter(I=>I?.route.routeRefs?.size>0).pop(),i=o?.route;if(!i||i.path===""&&r!=="/")return;let c;i.routeRefs.size===1&&(c=i.routeRefs.values().next().value);let S;i.plugins.size===1&&(S=i.plugins.values().next().value);const C=Object.entries(o?.params||{}).reduce((I,[z,tt])=>(tt!==void 0&&z!=="*"&&(I[z]=tt),I),{});return{extension:"App",pluginId:S?.getId()||"root",...c?{routeRef:c.id}:{},_routeNodeType:i.element,params:C}}catch{return}},bo=({pathname:r,search:e,hash:s,attributes:o})=>{const i=(0,sr.s)();return(0,d.useEffect)(()=>{i.captureEvent("navigate",`${r}${e}${s}`,{attributes:o})},[i,r,e,s,o]),null},_n=({routeObjects:r})=>{const{pathname:e,search:s,hash:o}=(0,m.zy)(),{params:i,...c}=Co(e,r)||{params:{}};return(0,a.jsx)(xo.Ig,{attributes:c,children:(0,a.jsx)(bo,{pathname:e,search:s,hash:o,attributes:i})})};function So(r){return Ln()?Ms(r):""}function Ms(r){let{pathname:e}=new URL(r.getOptionalString("app.baseUrl")??"/","http://sample.dev");return e=e.replace(/\/*$/,""),e}function rr({component:r,appIdentityProxy:e,children:s}){const[o,i]=(0,d.useState)(),c=(0,wn.gf)(Pt.U),S=Ms(c);return o?(e.setTarget(o,{signOutTargetUrl:S||"/"}),(0,a.jsx)(a.Fragment,{children:s})):(0,a.jsx)(r,{onSignInSuccess:i})}function or(r){const{Router:e,SignInPage:s}=(0,nr.n)().getComponents(),o=(0,wn.gf)(Pt.U),i=Ms(o),c=`${i}/*`,S=(0,d.useContext)(er);if(!S)throw new Error("AppRouter must be rendered within the AppProvider");const{routeObjects:C,appIdentityProxy:I}=S;return s?Ln()?(0,a.jsxs)(e,{children:[(0,a.jsx)(_n,{routeObjects:C}),(0,a.jsx)(rr,{component:s,appIdentityProxy:I,children:(0,a.jsx)(m.BV,{children:(0,a.jsx)(m.qh,{path:c,element:(0,a.jsx)(a.Fragment,{children:r.children})})})})]}):(0,a.jsxs)(e,{basename:i,children:[(0,a.jsx)(_n,{routeObjects:C}),(0,a.jsx)(rr,{component:s,appIdentityProxy:I,children:r.children})]}):(I.setTarget({getUserId:()=>"guest",getIdToken:async()=>{},getProfile:()=>({email:"guest@example.com",displayName:"Guest"}),getProfileInfo:async()=>({email:"guest@example.com",displayName:"Guest"}),getBackstageIdentity:async()=>({type:"user",userEntityRef:"user:default/guest",ownershipEntityRefs:["user:default/guest"]}),getCredentials:async()=>({}),signOut:async()=>{}},{signOutTargetUrl:i||"/"}),Ln()?(0,a.jsxs)(e,{children:[(0,a.jsx)(_n,{routeObjects:C}),(0,a.jsx)(m.BV,{children:(0,a.jsx)(m.qh,{path:c,element:(0,a.jsx)(a.Fragment,{children:r.children})})})]}):(0,a.jsxs)(e,{basename:i,children:[(0,a.jsx)(_n,{routeObjects:C}),r.children]}))}(0,Ae.h)(or,"core.type","AppRouter");const Mn="language",Je="en";class qn{static create(e){const s=e?.availableLanguages??[Je];if(s.length!==new Set(s).size)throw new Error(`Supported languages may not contain duplicates, got '${s.join("', '")}'`);if(!s.includes(Je))throw new Error(`Supported languages must include '${Je}'`);const o=e?.defaultLanguage??Je;if(!s.includes(o))throw new Error(`Initial language must be one of the supported languages, got '${o}'`);return new qn(s,o)}static createWithStorage(e){const s=qn.create(e);if(!window.localStorage)return s;const o=window.localStorage.getItem(Mn),{languages:i}=s.getAvailableLanguages();return o&&i.includes(o)&&s.setLanguage(o),s.language$().subscribe(({language:c})=>{c!==window.localStorage.getItem(Mn)&&window.localStorage.setItem(Mn,c)}),window.addEventListener("storage",c=>{if(c.key===Mn){const S=localStorage.getItem(Mn)??void 0;S&&s.setLanguage(S)}}),s}#t;#n;#e;constructor(e,s){this.#t=e,this.#n=s,this.#e=new N({language:this.#n})}getAvailableLanguages(){return{languages:this.#t.slice()}}setLanguage(e){const s=e??Je;if(s!==this.#n){if(s&&!this.#t.includes(s))throw new Error(`Failed to change language to '${s}', available languages are '${this.#t.join("', '")}'`);this.#n=s,this.#e.next({language:s})}}getLanguage(){return{language:this.#n}}language$(){return this.#e}}var Oo=t(47304),Po=t(99833),ar=t(93184);function ir(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==null))}class To{onLoad;#t;#n;#e;constructor(e){this.onLoad=e,this.#t=new Set,this.#n=new Map,this.#e=new Map}addTranslationResource(e){const s=(0,Po.Y)(e);for(const o of s.resources){const i=this.#s(o.language,s.id);this.#e.has(i)||this.#e.set(i,o.loader)}}#s(e,s){return`${e}/${s}`}needsLoading(e,s){const o=this.#s(e,s);return this.#e.get(o)?!this.#t.has(o):!1}async load(e,s){const o=this.#s(e,s),i=this.#e.get(o);if(!i||this.#t.has(o))return;const c=this.#n.get(o);if(c){await c;return}const S=i().then(C=>{this.onLoad({language:e,namespace:s,messages:C.messages}),this.#t.add(o)},C=>{throw this.#t.add(o),C});this.#n.set(o,S),await S}}class Bs{static create(e){const{languages:s}=e.languageApi.getAvailableLanguages(),o=(0,Oo.Q_)({fallbackLng:Je,supportedLngs:s,interpolation:{escapeValue:!1},ns:[],defaultNS:!1,fallbackNS:!1,initImmediate:!1});if(o.init(),!o.isInitialized)throw new Error("i18next was unexpectedly not initialized");const{language:i}=e.languageApi.getLanguage();i!==Je&&o.changeLanguage(i);const c=new To(I=>{o.addResourceBundle(I.language,I.namespace,ir(I.messages),!1,!0)}),S=e?.resources||[];for(let I=S.length-1;I>=0;I--){const z=S[I];z.$$type==="@backstage/TranslationResource"?c.addTranslationResource(z):z.$$type==="@backstage/TranslationMessages"&&o.addResourceBundle(Je,z.id,ir(z.messages),!0,!1)}const C=new Bs(o,c,e.languageApi.getLanguage().language);return e.languageApi.language$().subscribe(({language:I})=>{C.#o(I)}),C}#t;#n;#e;#s=new Set;#r=new Set;constructor(e,s,o){this.#t=e,this.#n=s,this.#e=o}getTranslation(e){const s=(0,ar.v)(e);return this.#i(s),this.#a(s)}translation$(e){const s=(0,ar.v)(e);return this.#i(s),new(W())(o=>{let i={};const c=()=>{i={};const C=i;this.#n.load(this.#e,s.id).then(()=>{if(C===i){const I=this.#a(s);I.ready&&o.next(I)}},I=>{C===i&&o.error(Array.isArray(I)?I[0]:I)})},S=()=>{const C=this.#a(s);C.ready?o.next(C):c()};return this.#n.needsLoading(this.#e,s.id)&&c(),this.#r.add(S),()=>{this.#r.delete(S)}})}#o(e){this.#e!==e&&(this.#e=e,this.#t.changeLanguage(e),this.#r.forEach(s=>s()))}#a(e){return this.#n.needsLoading(this.#e,e.id)?{ready:!1}:{ready:!0,t:this.#t.getFixedT(null,e.id)}}#i(e){if(this.#s.has(e.id))return;this.#s.add(e.id);const s=e.getDefaultMessages();this.#t.addResourceBundle(Je,e.id,s,!0,!1);const o=e.getDefaultResource();o&&this.#n.addTranslationResource(o)}}function cr(r){const e=new URL(r);return e.protocol=document.location.protocol,e.hostname=document.location.hostname,e.port=document.location.port,e.toString().replace(/\/$/,"")}function Ro(r){const e=fn.fromConfigs(r),s=e.getOptionalString("app.baseUrl"),o=e.getOptionalString("backend.baseUrl");let i=r,c,S;if(s&&o){const C=new URL(s).origin,I=new URL(o).origin;if(C===I){const z=cr(o);o!==z&&(c=z)}}if(s){const C=cr(s);s!==C&&(S=C)}return(S||c)&&(i=i.concat({data:{app:S&&{baseUrl:S},backend:c&&{baseUrl:c}},context:"relative-resolver"})),i}function wo(){return(document.querySelector('meta[name="backstage-app-mode"]')?.getAttribute("content")??"public")==="protected"}function Io(r,e,s){const o=!!r,i=(0,Xt.A)(r||(()=>Promise.resolve([])));let c;if(o&&i.loading){const{Progress:I}=e;c=(0,a.jsx)(I,{})}else if(i.error){const{BootErrorPage:I}=e;c=(0,a.jsx)(I,{step:"load-config",error:i.error})}const{ThemeProvider:S=qs}=e;return c?{node:(0,a.jsx)(Se,{apis:vn.with(Yn,s),children:(0,a.jsx)(S,{children:c})})}:{api:fn.fromConfigs(i.value?.length?Ro(i.value):[])}}class Do{app;constructor(e){this.app=e}getPlugins(){return this.app.getPlugins()}getSystemIcon(e){return this.app.getSystemIcon(e)}getSystemIcons(){return this.app.getSystemIcons()}getComponents(){return this.app.getComponents()}}class Lo{apiHolder;configApi;apis;icons;plugins;featureFlags;components;themes;configLoader;defaultApis;bindRoutes;appLanguageApi;translationResources;appIdentityProxy=new ho;apiFactoryRegistry;constructor(e){this.apis=e.apis??[],this.icons=e.icons,this.plugins=new Set(e.plugins??[]),this.featureFlags=e.featureFlags??[],this.components=e.components,this.themes=e.themes,this.configLoader=e.configLoader??tr,this.defaultApis=e.defaultApis??[],this.bindRoutes=e.bindRoutes,this.apiFactoryRegistry=new Nr,this.appLanguageApi=qn.createWithStorage({defaultLanguage:e.__experimentalTranslations?.defaultLanguage,availableLanguages:e.__experimentalTranslations?.availableLanguages}),this.translationResources=e.__experimentalTranslations?.resources??[]}getPlugins(){return Array.from(this.plugins)}getSystemIcon(e){return this.icons[e]}getSystemIcons(){return this.icons}getComponents(){return this.components}createRoot(e){const s=this.getProvider();return()=>(0,a.jsx)(s,{children:e})}#t=!1;getProvider(){if(this.#t)throw new Error("app.getProvider() or app.createRoot() has already been called, and can only be called once");this.#t=!0;const e=new Do(this);let s,o;return({children:c})=>{const S=(0,d.useRef)(!0),C=(0,d.useMemo)(()=>Gn.createWithStorage(this.themes),[]),{routing:I,featureFlags:z}=(0,d.useMemo)(()=>{const Vt=Ln();Vt&&console.warn(`
|
|
4
4
|
DEPRECATION WARNING: React Router Beta is deprecated and support for it will be removed in a future release.
|
|
@@ -550,4 +550,4 @@ ${j.href}
|
|
|
550
550
|
|
|
551
551
|
Feedback:`),Rt=K?.type==="github"?(0,gs.F)(F.href,"blob"):F.href,jt=Nn()(Rt),Mt=`/${jt.organization}/${jt.name}`,Ut=j.cloneNode();switch(K?.type){case"gitlab":Ut.href=`${F.origin}${Mt}/issues/new?issue[title]=${at}&issue[description]=${bt}`;break;case"github":Ut.href=`${F.origin}${Mt}/issues/new?title=${at}&body=${bt}`;break;default:return L}return hn(a.createElement(ps.A),Ut),Ut.style.paddingLeft="5px",Ut.title="Leave feedback for this page",Ut.id="git-feedback-link",j?.insertAdjacentElement("beforebegin",Ut),L};var Sn=t(38097);const On=(0,x.A)(f=>({button:{color:f.palette.primary.light,textDecoration:"underline"}})),ms=({message:f,handleButtonClick:L,autoHideDuration:j})=>{const F=On(),[K,_]=(0,a.useState)(!0),at=()=>_(!1);return(0,n.jsx)(Sn.A,{open:K,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:j,color:"primary",onClose:at,message:f,action:(0,n.jsx)(nt.A,{classes:{root:F.button},size:"small",onClick:()=>{at(),L()},children:"Redirect now"})})},kn=(f,L)=>{const F=K=>{const _=jn(window.location.href),at=new URL(K,_);if(at.hostname!==window.location.hostname){const Rt=window.location.pathname,jt=Rt.indexOf(L),Mt=Rt.slice(0,jt+L.length);return new URL(Mt,_).href}return at.href};return K=>{for(const _ of Array.from(K.querySelectorAll("meta")))if(_.getAttribute("http-equiv")==="refresh"){const at=_.getAttribute("content")?.split("url=");if(!at||at.length<2)return K;const bt=at[1],Rt=F(bt);if(window.location.href===Rt)return K;const jt=document.createElement("div");return hn((0,n.jsx)(ms,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>f(Rt),autoHideDuration:3e3}),jt),document.body.appendChild(jt),setTimeout(()=>{f(Rt)},3e3),K}return K}},Wn=()=>f=>(setTimeout(()=>{const L=f?.querySelectorAll("li.md-nav__item--active");L.length!==0&&(L.forEach(F=>{const K=F?.querySelector("input");K?.checked||K?.click()}),L[L.length-1].scrollIntoView())},200),f);var vs=t(50868),ys=t(10437),Es=t(71677),As=t(87051),xs=t(36338);const Cs=(0,As.A)(f=>({tooltip:{fontSize:"inherit",color:f.palette.text.primary,margin:0,padding:f.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(Es.Ay),bs=()=>(0,n.jsx)(ys.A,{children:(0,n.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})}),Ss=({text:f})=>{const[L,j]=(0,a.useState)(!1),[,F]=(0,xs.A)(),K=(0,a.useCallback)(()=>{F(f),j(!0)},[f,F]),_=(0,a.useCallback)(()=>{j(!1)},[j]);return(0,n.jsx)(Cs,{title:"Copied to clipboard",placement:"left",open:L,onClose:_,leaveDelay:1e3,children:(0,n.jsx)(ht.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:K,children:(0,n.jsx)(bs,{})})})},Os=f=>L=>{const j=L.querySelectorAll("pre > code");for(const F of j){const K=F.textContent||"",_=document.createElement("div");F?.parentElement?.prepend(_),hn((0,n.jsx)(vs.A,{theme:f,children:(0,n.jsx)(Ss,{text:K})}),_)}return L},Ps=({baseUrl:f,onClick:L})=>j=>(Array.from(j.getElementsByTagName("a")).forEach(F=>{F.addEventListener("click",K=>{const at=F.getAttribute("href");at&&at.startsWith(f)&&!F.hasAttribute("download")&&(K.preventDefault(),L(K,at))})}),j),Kn=({onLoading:f,onLoaded:L})=>j=>(f(),j.addEventListener(p,function F(){L(),j.removeEventListener(p,F)}),j);function Ts(f,L){const j=new URL(L),F=`${j.origin}${j.pathname.replace(/\/$/,"")}`,K=f.replace(F,"").replace(/^\/+/,""),_=new URL(`http://localhost/${K}`);return`${_.pathname}${_.search}${_.hash}`}function zn(){const f=(0,a.useRef)((0,Bt.Zp)()),j=(0,rt.gf)(X.U).getOptionalString("app.baseUrl");return(0,a.useCallback)(K=>{let _=K;if(j)try{_=Ts(K,j)}catch{}f.current(_)},[j])}const Hn="screen and (max-width: 76.1875em)",Rs=f=>{const L=zn(),j=(0,De.A)(),F=(0,ze.A)(Hn),K=qt(),_=is(),at=(0,J.s)(),bt=(0,rt.gf)(Ye.s),Rt=(0,rt.gf)(Le.Y),jt=(0,rt.gf)(X.U),{state:Mt,path:Ut,content:Zt}=Re(),{"*":he=""}=(0,Bt.g)(),[Ft,Jt]=(0,a.useState)(null),fe=E(Ft),ce=(0,a.useCallback)(()=>{if(!Ft)return;Ft.querySelectorAll(".md-sidebar").forEach(_t=>{if(F)_t.style.top="0px";else{const He=document?.querySelector(".techdocs-reader-page")?.getBoundingClientRect().top??0;let Se=Ft.getBoundingClientRect().top??0;const Ve=Ft.querySelector(".md-container > .md-tabs")?.getBoundingClientRect().height??0;Se<He&&(Se=He);const pe=Math.max(Se,0)+Ve;_t.style.top=`${pe}px`;const Tn=Ft.querySelector(".md-container > .md-footer")?.getBoundingClientRect().top??window.innerHeight;_t.style.height=`${Tn-pe}px`}_t.style.setProperty("opacity","1")})},[Ft,F]);(0,a.useEffect)(()=>(window.addEventListener("resize",ce),window.addEventListener("scroll",ce,!0),()=>{window.removeEventListener("resize",ce),window.removeEventListener("scroll",ce,!0)}),[Ft,ce]);const Xt=(0,a.useCallback)(()=>{if(!Ft)return;const te=Ft.querySelector(".md-footer");te&&(te.style.width=`${Ft.getBoundingClientRect().width}px`)},[Ft]);(0,a.useEffect)(()=>(window.addEventListener("resize",Xt),()=>{window.removeEventListener("resize",Xt)}),[Ft,Xt]),(0,a.useEffect)(()=>{fe||(Xt(),ce())},[Mt,fe,Xt,ce]);const Qt=(0,a.useCallback)((te,_t)=>bn(te,[K,Bn({techdocsStorageApi:bt,entityId:f,path:_t}),ls(),us(),hs(),$n(),fs(Rt),_]),[f,Rt,bt,K,_]),ge=(0,a.useCallback)(async te=>bn(te,[kn(L,f.name),Wn(),Os(j),Ps({baseUrl:jt.getOptionalString("app.baseUrl")||window.location.origin,onClick:(_t,oe)=>{const He=_t.ctrlKey||_t.metaKey,Se=new URL(oe),gn=_t.target?.innerText||oe,Ve=oe.replace(window.location.origin,"");at.captureEvent("click",gn,{attributes:{to:Ve}}),Se.hash?He?window.open(oe,"_blank"):(window.location.pathname!==Se.pathname?L(oe):window.history.pushState(null,document.title,Se.hash),te?.querySelector(`[id="${Se.hash.slice(1)}"]`)?.scrollIntoView()):He?window.open(oe,"_blank"):L(oe)}}),Kn({onLoading:()=>{},onLoaded:()=>{te.querySelector(".md-nav__title")?.removeAttribute("for")}}),Kn({onLoading:()=>{Array.from(te.querySelectorAll(".md-sidebar")).forEach(oe=>{oe.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[j,L,at,f.name,jt]);return(0,a.useEffect)(()=>{if(!Zt)return()=>{};let te=!0;return Qt(Zt,Ut).then(async _t=>{if(!_t?.innerHTML||!te||he!==Ut)return;window.scroll({top:0});const oe=await ge(_t);Jt(oe)}),()=>{te=!1}},[Zt,he,Ut,Qt,ge]),Ft};var Pn=t(41883),Ue=t(72020),be=t(99730);const $e=()=>{const f=(0,Ue.YR)(),{shadowRoot:L}=(0,m.V)(),j=L?.querySelector('[data-md-component="content"]'),F=L?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let K=F?.querySelector('[data-techdocs-addons-location="primary sidebar"]');K||(K=document.createElement("div"),K.setAttribute("data-techdocs-addons-location","primary sidebar"),F?.prepend(K));const _=L?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let at=_?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return at||(at=document.createElement("div"),at.setAttribute("data-techdocs-addons-location","secondary sidebar"),_?.prepend(at)),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Pn.A,{container:K,children:f.renderComponentsByLocation(be.e.PrimarySidebar)}),(0,n.jsx)(Pn.A,{container:j,children:f.renderComponentsByLocation(be.e.Content)}),(0,n.jsx)(Pn.A,{container:at,children:f.renderComponentsByLocation(be.e.SecondarySidebar)})]})},ws=(0,x.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Vn=Qe(f=>{const{withSearch:L=!0,searchResultUrlMapper:j,onReady:F}=f,K=ws(),{entityMetadata:{value:_,loading:at},entityRef:bt,setShadowRoot:Rt}=(0,m.V)(),{state:jt}=Re(),Mt=Rs(bt),Ut=window.location.pathname,Zt=window.location.hash,he=E(Mt),[Ft]=M([`[id="${Zt.slice(1)}"]`]);(0,a.useEffect)(()=>{he||(Zt?Ft&&Ft.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[Ut,Zt,Ft,he]);const Jt=(0,a.useCallback)(fe=>{Rt(fe),F instanceof Function&&F()},[Rt,F]);return at===!1&&!_?(0,n.jsx)($.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Mt?(0,n.jsx)(D.U,{children:(0,n.jsxs)(d.A,{container:!0,children:[(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(Ze,{})}),L&&(0,n.jsx)(d.A,{className:K.search,xs:"auto",item:!0,children:(0,n.jsx)(Gt,{entityId:bt,entityTitle:_?.metadata?.title,searchResultUrlMapper:j})}),(0,n.jsxs)(d.A,{xs:12,item:!0,children:[(jt==="CHECKING"||he)&&(0,n.jsx)(Q.k,{}),(0,n.jsx)(v,{element:Mt,onAppend:Jt,children:(0,n.jsx)($e,{})})]})]})}):(0,n.jsx)(D.U,{children:(0,n.jsx)(d.A,{container:!0,children:(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(Ze,{})})})})}),Is=null},45061:(H,b,t)=>{"use strict";t.d(b,{T:()=>Y});var n=t(31085),a=t(14041),d=t(93285),x=t(42899),m=t(4387),h=t(13660),u=t(72020),g=t(86892),p=t(99730),y=t(67871),E=t(8859),v=t(34428),P=t(51372),T=t(58837),M=t(268),O=t(72501),B=t(72072);const $=(0,T.A)(X=>({root:{textAlign:"left"},label:{color:X.page.fontColor,fontWeight:X.typography.fontWeightBold,letterSpacing:0,fontSize:X.typography.fontSize,marginBottom:X.spacing(1)/2,lineHeight:1},value:{color:(0,M.X4)(X.page.fontColor,.8),fontSize:X.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),D=({value:X,className:lt,typographyRootComponent:gt})=>(0,n.jsx)(O.A,{component:gt??(typeof X=="string"?"p":"span"),className:lt,children:X});function Q(X){const{label:lt,value:gt,url:xt,contentTypograpyRootComponent:wt}=X,Tt=$(),dt=(0,n.jsx)(D,{className:Tt.value,value:gt||"<Unknown>",typographyRootComponent:wt});return(0,n.jsx)(x.A,{item:!0,children:(0,n.jsxs)(O.A,{component:"span",className:Tt.root,children:[(0,n.jsx)(O.A,{className:Tt.label,children:lt}),xt?(0,n.jsx)(B.N_,{to:xt,children:dt}):dt]})})}var G=t(69814),k=t(72427),W=t(65461),q=t(9222),N=t(45250),rt=t(82779);const J=(0,n.jsx)(m.A,{animation:"wave",variant:"text",height:40}),Y=X=>{const{children:lt}=X,gt=(0,u.YR)(),xt=(0,k.gf)(W.U),{title:wt,setTitle:Tt,subtitle:dt,setSubtitle:ct,entityRef:mt,metadata:{value:pt,loading:St},entityMetadata:{value:Ot,loading:ut}}=(0,g.V)();(0,a.useEffect)(()=>{pt&&(Tt(pt.site_name),ct(()=>{let{site_description:Dt}=pt;return(!Dt||Dt==="None")&&(Dt=""),Dt}))},[pt,Tt,ct]);const At=xt.getOptional("app.title")||"Backstage",ht=[wt,dt,At].filter(Boolean).join(" | "),{locationMetadata:et,spec:vt}=Ot||{},nt=vt?.lifecycle,U=Ot?(0,y.t)(Ot,P.vv):[],V=(0,q.S)(rt.rQ)(),yt=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q,{label:(0,N.capitalize)(Ot?.kind||"entity"),value:(0,n.jsx)(E.z,{color:"inherit",entityRef:mt,title:Ot?.metadata.title,defaultKind:"Component"})}),U.length>0&&(0,n.jsx)(Q,{label:"Owner",value:(0,n.jsx)(v.i,{color:"inherit",entityRefs:U,defaultKind:"group"})}),nt?(0,n.jsx)(Q,{label:"Lifecycle",value:String(nt)}):null,et&&et.type!=="dir"&&et.type!=="file"?(0,n.jsx)(Q,{label:"",value:(0,n.jsxs)(x.A,{container:!0,direction:"column",alignItems:"center",children:[(0,n.jsx)(x.A,{style:{padding:0},item:!0,children:(0,n.jsx)(h.A,{style:{marginTop:"-25px"}})}),(0,n.jsx)(x.A,{style:{padding:0},item:!0,children:"Source"})]}),url:et.target}):null]});return!ut&&Ot===void 0||!St&&pt===void 0?null:(0,n.jsxs)(G.Y,{type:"Documentation",typeLink:V,title:wt||J,subtitle:dt===""?void 0:dt||J,children:[(0,n.jsx)(d.A,{titleTemplate:"%s",children:(0,n.jsx)("title",{children:ht})}),yt,lt,gt.renderComponentsByLocation(p.e.Header)]})}},82779:(H,b,t)=>{"use strict";t.d(b,{Oc:()=>d,Ri:()=>x,rQ:()=>a});var n=t(34569);const a=(0,n.H)({id:"techdocs:index-page"}),d=(0,n.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),x=(0,n.H)({id:"techdocs:catalog-reader-view"})},27698:(H,b,t)=>{"use strict";t.r(b),t.d(b,{TechDocsSearchResultListItem:()=>y});var n=t(31085),a=t(14041),d=t(68804),x=t(5951),m=t(58837),h=t(72501),u=t(72072),g=t(70734);const p=(0,m.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),y=E=>{const{result:v,highlight:P,lineClamp:T=5,asListItem:M=!0,asLink:O=!0,title:B,icon:$}=E,D=p(),Q=({children:W})=>O?(0,n.jsx)(u.N_,{noTrack:!0,to:v.location,children:W}):(0,n.jsx)(n.Fragment,{children:W}),G=()=>{const W=P?.fields.title?(0,n.jsx)(g.e,{text:P.fields.title,preTag:P.preTag,postTag:P.postTag}):v.title,q=P?.fields.entityTitle?(0,n.jsx)(g.e,{text:P.fields.entityTitle,preTag:P.preTag,postTag:P.postTag}):v.entityTitle,N=P?.fields.name?(0,n.jsx)(g.e,{text:P.fields.name,preTag:P.preTag,postTag:P.postTag}):v.name;return v?(0,n.jsx)(x.A,{className:D.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,n.jsx)(Q,{children:B||(0,n.jsxs)(n.Fragment,{children:[W," | ",q??N," docs"]})}),secondary:(0,n.jsx)(h.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:T,overflow:"hidden"},color:"textSecondary",variant:"body2",children:P?.fields.text?(0,n.jsx)(g.e,{text:P.fields.text,preTag:P.preTag,postTag:P.postTag}):v.text})}):null},k=({children:W})=>M?(0,n.jsxs)(n.Fragment,{children:[$&&(0,n.jsx)(d.A,{children:typeof $=="function"?$(v):$}),(0,n.jsx)("div",{className:D.flexContainer,children:W})]}):(0,n.jsx)(n.Fragment,{children:W});return(0,n.jsx)(k,{children:(0,n.jsx)(G,{})})}},97184:(H,b,t)=>{const a=document.querySelector('meta[name="backstage-public-path"]')?.getAttribute("content");a&&(t.p=a)},86973:()=>{}},H=>{var b=n=>H(H.s=n);H.O(0,[1751,1888,5067,1678,235,6587,1975,5042,7400,4538,4121],()=>(b(97184),b(47149)));var t=H.O()}]);})();
|
|
552
552
|
|
|
553
|
-
//# sourceMappingURL=main.
|
|
553
|
+
//# sourceMappingURL=main.5b071983.js.map
|