@techdocs/cli 1.9.5 → 1.9.6-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/embedded-app/.config-schema.json +61 -56
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/index.html.tmpl +1 -1
- package/dist/embedded-app/static/{5724.bcd8e3eb.chunk.js → 5724.1b4014dd.chunk.js} +1 -1
- package/dist/embedded-app/static/{5724.bcd8e3eb.chunk.js.map → 5724.1b4014dd.chunk.js.map} +1 -1
- package/dist/embedded-app/static/main.ca6e1ae0.js +553 -0
- package/dist/embedded-app/static/main.ca6e1ae0.js.map +1 -0
- package/dist/embedded-app/static/{runtime.3980679c.js → runtime.ca6e1ae0.js} +2 -2
- package/dist/embedded-app/static/{runtime.3980679c.js.map → runtime.ca6e1ae0.js.map} +1 -1
- package/dist/embedded-app/static/{vendor.3980679c.js → vendor.ca6e1ae0.js} +1 -1
- package/dist/embedded-app/static/{vendor.3980679c.js.map → vendor.ca6e1ae0.js.map} +1 -1
- package/dist/package.json.cjs.js +1 -1
- package/package.json +7 -7
- package/dist/embedded-app/static/main.3980679c.js +0 -553
- package/dist/embedded-app/static/main.3980679c.js.map +0 -1
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8792],{86519:(H,S,t)=>{"use strict";t.d(S,{c:()=>s});const s=Symbol.for("CATALOG_FILTER_EXISTS_0e15b590c0b343a2bae3e787e84c2111")},72348:(H,S,t)=>{"use strict";t.d(S,{P:()=>x,_P:()=>a,oQ:()=>s});const s="default",a="backstage.io/view-url",x="backstage.io/edit-url",p="kubernetes.io/api-server",b="kubernetes.io/api-server-certificate-authority",h="kubernetes.io/auth-provider"},6820:(H,S,t)=>{"use strict";t.d(S,{KU:()=>p,U2:()=>b,sM:()=>x});var s=t(72348);function a(h){let d=h.indexOf(":");const f=h.indexOf("/");f!==-1&&f<d&&(d=-1);const u=d===-1?void 0:h.slice(0,d),y=f===-1?void 0:h.slice(d+1,f),g=h.slice(Math.max(d+1,f+1));if(u===""||y===""||g==="")throw new TypeError(`Entity reference "${h}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:u,namespace:y,name:g}}function x(h){return{kind:h.kind,namespace:h.metadata.namespace||s.oQ,name:h.metadata.name}}function p(h,d){if(!h)throw new Error("Entity reference must not be empty");const f=d?.defaultKind,u=d?.defaultNamespace||s.oQ;let y,g,C;if(typeof h=="string"){const O=a(h);y=O.kind??f,g=O.namespace??u,C=O.name}else y=h.kind??f,g=h.namespace??u,C=h.name;if(y)if(g){if(!C){const O=JSON.stringify(h);throw new Error(`Entity reference ${O} had missing or empty name`)}}else{const O=JSON.stringify(h);throw new Error(`Entity reference ${O} had missing or empty namespace`)}else{const O=JSON.stringify(h);throw new Error(`Entity reference ${O} had missing or empty kind (e.g. did not start with "component:" or similar)`)}return{kind:y,namespace:g,name:C}}function b(h){let d,f,u;return"metadata"in h?(d=h.kind,f=h.metadata.namespace??s.oQ,u=h.metadata.name):(d=h.kind,f=h.namespace??s.oQ,u=h.name),`${d.toLocaleLowerCase("en-US")}:${f.toLocaleLowerCase("en-US")}/${u.toLocaleLowerCase("en-US")}`}},51372:(H,S,t)=>{"use strict";t.d(S,{fT:()=>f,jn:()=>O,nC:()=>d,sA:()=>P,vv:()=>s});const s="ownedBy",a="ownerOf",x="consumesApi",p="apiConsumedBy",b="providesApi",h="apiProvidedBy",d="dependsOn",f="dependencyOf",u="parentOf",y="childOf",g="memberOf",C="hasMember",O="partOf",P="hasPart"},17736:(H,S,t)=>{"use strict";t.d(S,{Eo:()=>s,I4:()=>x});const s="backstage.io/managed-by-location",a="backstage.io/managed-by-origin-location",x="backstage.io/source-location"},78692:(H,S,t)=>{"use strict";t.d(S,{Cr:()=>h,KL:()=>b,aY:()=>p});var s=t(6820),a=t(17736);const x=/^[\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 p(d){if(typeof d!="string")throw new TypeError(`Unable to parse location ref '${d}', unexpected argument ${typeof d}`);const f=d.indexOf(":");if(f<0)throw new TypeError(`Unable to parse location ref '${d}', expected '<type>:<target>', e.g. 'url:https://host/path'`);const u=d.substring(0,f).trim(),y=d.substring(f+1).trim();if(!u||!y)throw new TypeError(`Unable to parse location ref '${d}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if(u==="http"||u==="https")throw new TypeError(`Invalid location ref '${d}', please prefix it with 'url:', e.g. 'url:${d}'`);if(x.test(y))throw new TypeError(`Invalid location ref '${d}', target is a javascript: URL`);return{type:u,target:y}}function b(d){const{type:f,target:u}=d;if(f){if(!u)throw new TypeError("Unable to stringify location ref, empty target")}else throw new TypeError("Unable to stringify location ref, empty type");if(x.test(u))throw new TypeError(`Invalid location ref '${f}:${u}', target is a javascript: URL`);return`${f}:${u}`}function h(d){const f=d.metadata?.annotations?.[a.I4]??d.metadata?.annotations?.[a.Eo];if(!f)throw new Error(`Entity '${(0,s.U2)(d)}' is missing location`);return p(f)}},77310:(H,S,t)=>{"use strict";t.d(S,{z:()=>f});var s=t(31085),a=t(10394),x=t(54917),p=t(69578),b=t(40697),h=t(25577),d=t(37916);function f(u){const{text:y,language:g,showLineNumbers:C=!1,highlightedNumbers:O,customStyle:P,showCopyCodeButton:B=!1}=u,L=(0,x.A)(),I=L.palette.type==="dark"?b.A:h.A,M=L.palette.type==="dark"?"#256bf3":"#e6ffed";return(0,s.jsxs)(a.A,{position:"relative",children:[(0,s.jsx)(p.A,{customStyle:P,language:g,style:I,showLineNumbers:C,wrapLines:!0,lineNumberStyle:{color:L.palette.textVerySubtle},lineProps:F=>O?.includes(F)?{style:{backgroundColor:M}}:{},children:y}),B&&(0,s.jsx)(a.A,{position:"absolute",top:0,right:0,children:(0,s.jsx)(d.l,{text:y})})]})}},37916:(H,S,t)=>{"use strict";t.d(S,{l:()=>g});var s=t(31085),a=t(72427),x=t(39837),p=t(29365),b=t(71677),h=t(99594),d=t(14041),f=t(36338),u=t(10315),y=t(87849);function g(C){const{t:O}=(0,y.i)(u.O),{text:P,tooltipDelay:B=1e3,tooltipText:L=O("copyTextButton.tooltipText"),"aria-label":I="Copy text"}=C,M=(0,a.gf)(x.m),[F,W]=(0,d.useState)(!1),[{error:X},z]=(0,f.A)();(0,d.useEffect)(()=>{X&&M.post(X)},[X,M]);const Y=K=>{K.stopPropagation(),W(!0),z(P)};return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(b.Ay,{id:"copy-test-tooltip",title:L,placement:"top",leaveDelay:B,onClose:()=>W(!1),open:F,children:(0,s.jsx)(p.A,{onClick:Y,"aria-label":I,children:(0,s.jsx)(h.A,{})})})})}},44186:(H,S,t)=>{"use strict";t.d(S,{p:()=>C});var s=t(31085),a=t(42899),x=t(58837),p=t(72501);const b=t.p+"static/missingAnnotation.67f79e98.svg",h=t.p+"static/noInformation.4b426325.svg",d=t.p+"static/createComponent.975d1e1e.svg",f=t.p+"static/noBuild.1715fa71.svg",u=(0,x.A)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),y=({missing:O})=>{const P=u();switch(O){case"field":return(0,s.jsx)("img",{src:b,className:P.generalImg,alt:"annotation is missing"});case"info":return(0,s.jsx)("img",{src:h,alt:"no Information",className:P.generalImg});case"content":return(0,s.jsx)("img",{src:d,alt:"create Component",className:P.generalImg});case"data":return(0,s.jsx)("img",{src:f,alt:"no Build",className:P.generalImg});default:return null}},g=(0,x.A)(O=>({root:{backgroundColor:O.palette.background.default,padding:O.spacing(2,0,0,0)},action:{marginTop:O.spacing(2)},imageContainer:{position:"relative"}}),{name:"BackstageEmptyState"});function C(O){const{title:P,description:B,missing:L,action:I}=O,M=g();return(0,s.jsxs)(a.A,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:M.root,spacing:2,children:[(0,s.jsx)(a.A,{item:!0,xs:12,md:6,children:(0,s.jsxs)(a.A,{container:!0,direction:"column",children:[(0,s.jsx)(a.A,{item:!0,xs:!0,children:(0,s.jsx)(p.A,{variant:"h5",children:P})}),(0,s.jsx)(a.A,{item:!0,xs:!0,children:(0,s.jsx)(p.A,{variant:"body1",children:B})}),(0,s.jsx)(a.A,{item:!0,xs:!0,className:M.action,children:I})]})}),(0,s.jsx)(a.A,{item:!0,xs:12,md:6,className:M.imageContainer,children:typeof L=="string"?(0,s.jsx)(y,{missing:L}):L.customImage})]})}},22020:(H,S,t)=>{"use strict";t.d(S,{b:()=>y});var s=t(31085),a=t(58837),x=t(58007),p=t(8109),b=t(5951),h=t(37916),d=t(88640);const f=(0,a.A)(g=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:g.spacing(2)},divider:{margin:g.spacing(2)}}),{name:"BackstageErrorPanel"}),u=({error:g,message:C,stack:O,children:P})=>{const B=f();return(0,s.jsxs)(x.A,{dense:!0,children:[(0,s.jsxs)(p.A,{alignItems:"flex-start",children:[(0,s.jsx)(b.A,{classes:{secondary:B.text},primary:"Error",secondary:g}),(0,s.jsx)(h.l,{text:g})]}),(0,s.jsxs)(p.A,{alignItems:"flex-start",children:[(0,s.jsx)(b.A,{classes:{secondary:B.text},primary:"Message",secondary:C}),(0,s.jsx)(h.l,{text:C})]}),O&&(0,s.jsxs)(p.A,{alignItems:"flex-start",children:[(0,s.jsx)(b.A,{classes:{secondary:B.text},primary:"Stack Trace",secondary:O}),(0,s.jsx)(h.l,{text:O})]}),P]})};function y(g){const{title:C,error:O,defaultExpanded:P,titleFormat:B,children:L}=g;return(0,s.jsx)(d.B,{severity:"error",title:C??O.message,defaultExpanded:P,titleFormat:B,children:(0,s.jsx)(u,{error:O.name,message:O.message,stack:O.stack,children:L})})}},18956:(H,S,t)=>{"use strict";t.d(S,{m:()=>h});var s=t(31085),a=t(72501),x=t(58837),p=t(31129);const b=(0,x.A)(()=>({icon:{color:"#f3ba37",cursor:"pointer",display:"inline-flex"},iconBorder:{color:"inherit",cursor:"pointer",display:"inline-flex"}}),{name:"BackstageFavoriteToggleIcon"});function h(f){const{isFavorite:u}=f,y=b();return(0,s.jsx)(a.A,{component:"span",className:u?y.icon:y.iconBorder,children:u?(0,s.jsx)(p.Gg,{}):(0,s.jsx)(p.KG,{})})}function d(f){const{id:u,title:y,isFavorite:g,onToggle:C,...O}=f;return _jsx(Tooltip,{id:u,title:y,children:_jsx(IconButton,{"aria-label":y,id:u,onClick:()=>C(!g),color:"inherit",...O,children:_jsx(h,{isFavorite:g})})})}},72072:(H,S,t)=>{"use strict";t.d(S,{N_:()=>Q});var s=t(31085),a=t(82266),x=t(72427),p=t(65461),b=t(93368),h=t(49203),d=t(58837),f=t(72501),u=t(53373),y=t.n(u),g=t(45250),C=t.n(g),O=t(14041),P=t(18690),B=t(73657),L=t(39330);function I(){const[J]=(0,P.AV)((0,s.jsx)(P.qh,{index:!0,element:(0,s.jsx)("div",{})}));return!J.index}const M=(0,d.A)(J=>({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:J.spacing(.5)}}),{name:"Link"}),F=()=>{const it=(0,a.n)().getSystemIcon("externalLink")||L.A,ht=M();return(0,s.jsx)(it,{className:ht.externalLinkIcon})},W=J=>/^([a-z+.-]+):/.test(J),X=/^[\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,z=window.open;if(z&&!z.__backstage){const J=function(...ht){const mt=String(ht[0]);if(X.test(mt))throw new Error("Rejected window.open() with a javascript: URL as a security precaution");return z.apply(this,ht)};J.__backstage=!0,window.open=J}const Y=()=>{try{return(0,x.gf)(p.U).getOptionalString("app.baseUrl")}catch{return}},K=()=>{const J="http://sample.dev",it=Y()??"/",{pathname:ht}=new URL(it,J);return(0,g.trimEnd)(ht,"/")},lt=J=>{let it=String(J);const ht=K(),mt=W(it),Et=it.startsWith(ht);return!mt&&!Et&&(it=ht.concat(it)),it},G=J=>J instanceof Array?J.map(G).join(" ").trim():typeof J=="object"&&J?G(J?.props?.children):["string","number"].includes(typeof J)?String(J):"",Q=(0,O.forwardRef)(({onClick:J,noTrack:it,externalLinkIcon:ht,...mt},Et)=>{const St=M(),It=(0,b.s)(),dt=I()?lt(mt.to):mt.to,ct=G(mt.children)||dt,At=W(dt),pt=At&&!!/^https?:/.exec(dt);if(X.test(dt))throw new Error("Link component rejected javascript: URL as a security precaution");const Ct=Pt=>{J?.(Pt),it||It.captureEvent("click",ct,{attributes:{to:dt}})};return At?(0,s.jsxs)(h.A,{...pt?{target:"_blank",rel:"noopener"}:{},...mt,...mt["aria-label"]?{"aria-label":`${mt["aria-label"]}, Opens in a new window`}:{},ref:Et,href:dt,onClick:Ct,className:y()(St.externalLink,mt.className),children:[mt.children,ht&&(0,s.jsx)(F,{}),(0,s.jsx)(f.A,{component:"span",className:St.visuallyHidden,children:", Opens in a new window"})]}):(0,s.jsx)(h.A,{...mt,ref:Et,component:B.N_,to:dt,onClick:Ct})})},73896:(H,S,t)=>{"use strict";t.d(S,{z:()=>h});var s=t(31085),a=t(64947),x=t(14041),p=t(72072);const b=(0,x.forwardRef)((f,u)=>(0,s.jsx)(p.N_,{ref:u,...f,color:"initial"})),h=(0,x.forwardRef)((f,u)=>(0,s.jsx)(a.A,{ref:u,component:b,...f})),d=null},4650:(H,S,t)=>{"use strict";t.d(S,{h:()=>g});var s=t(31085),a=t(58837),x=t(45872),p=t(61125),b=t(14041),h=t(77310);const d=(0,a.A)(C=>({markdown:{"& table":{borderCollapse:"collapse",border:`1px solid ${C.palette.border}`},"& th, & td":{border:`1px solid ${C.palette.border}`,padding:C.spacing(1)},"& td":{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:C.spacing(3,2,3,2.5),borderBottom:0},"& th":{backgroundColor:C.palette.background.paper},"& tr":{backgroundColor:C.palette.background.paper},"& tr:nth-child(odd)":{backgroundColor:C.palette.background.default},"& a":{color:C.palette.link},"& img":{maxWidth:"100%"}}}),{name:"BackstageMarkdownContent"}),f=(C,O)=>O?typeof O=="string"?C+O:b.Children.toArray(O.props.children).reduce(f,C):C,u=({level:C,children:O})=>{const L=b.Children.toArray(O).reduce(f,"").toLocaleLowerCase("en-US").replace(/\W/g,"-");return(0,b.createElement)(`h${C}`,{id:L},O)},y={code:({inline:C,className:O,children:P,...B})=>{const L=String(P).replace(/\n+$/,""),I=/language-(\w+)/.exec(O||"");return!C&&I?(0,s.jsx)(h.z,{language:I[1],text:L}):(0,s.jsx)("code",{className:O,...B,children:P})},h1:u,h2:u,h3:u,h4:u,h5:u,h6:u};function g(C){const{content:O,dialect:P="gfm",linkTarget:B,transformLinkUri:L,transformImageUri:I,className:M}=C,F=d();return(0,s.jsx)(x.$,{remarkPlugins:P==="gfm"?[p.A]:[],className:`${F.markdown} ${M??""}`.trim(),children:O,components:y,linkTarget:B,transformLinkUri:L,transformImageUri:I})}},68146:(H,S,t)=>{"use strict";t.d(S,{k:()=>h});var s=t(31085),a=t(10394),x=t(88951),p=t(54917),b=t(14041);function h(d){const f=(0,p.A)(),[u,y]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{const g=setTimeout(()=>y(!0),f.transitions.duration.short);return()=>clearTimeout(g)},[f.transitions.duration.short]),u?(0,s.jsx)(x.A,{...d,"data-testid":"progress"}):(0,s.jsx)(a.A,{display:"none","data-testid":"progress"})}},66917:(H,S,t)=>{"use strict";t.d(S,{w:()=>lt});var s=t(31085),a=t(10394),x=t(69076),p=t(67720),b=t(95061),h=t(41857),d=t(48543),f=t(26343),u=t(81215),y=t(87051),g=t(12398),C=t(58837),O=t(72501),P=t(92399),B=t(14041),L=t(10437);const I=(0,C.A)(G=>(0,g.A)({icon:{position:"absolute",right:G.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageClosedDropdown"}),F=()=>{const G=I();return(0,s.jsx)(L.A,{className:G.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M7.5 8L6 9.5L12.0703 15.5703L18.1406 9.5L16.6406 8L12.0703 12.5703L7.5 8Z",fill:"currentColor"})})},W=(0,C.A)(G=>(0,g.A)({icon:{position:"absolute",right:G.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageOpenedDropdown"}),z=()=>{const G=W();return(0,s.jsx)(L.A,{className:G.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M16.5 16L18 14.5L11.9297 8.42969L5.85938 14.5L7.35938 16L11.9297 11.4297L16.5 16Z",fill:"currentColor"})})},Y=(0,y.A)(G=>(0,g.A)({root:{"label + &":{marginTop:G.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:G.palette.primary.main}},input:{borderRadius:G.shape.borderRadius,position:"relative",backgroundColor:G.palette.background.paper,border:"1px solid #ced4da",fontSize:G.typography.body1.fontSize,padding:G.spacing(1.25,3.25,1.25,1.5),transition:G.transitions.create(["border-color","box-shadow"]),"&:focus":{background:G.palette.background.paper,borderRadius:G.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(h.A),K=(0,C.A)(G=>(0,g.A)({formControl:{margin:G.spacing(1,0)},label:{transform:"initial",fontWeight:"bold",fontSize:G.typography.body2.fontSize,fontFamily:G.typography.fontFamily,color:G.palette.text.primary,"&.Mui-focused":{color:G.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:G.typography.body2.fontSize,fontFamily:G.typography.fontFamily,color:G.palette.text.primary,"&.Mui-focused":{color:G.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function lt(G){const{multiple:Q,items:J,label:it,placeholder:ht,selected:mt,onChange:Et,triggerReset:St,native:It=!1,disabled:dt=!1,margin:ct,"data-testid":At="select"}=G,pt=K(),[Ct,Pt]=(0,B.useState)(mt||(Q?[]:"")),[at,gt]=(0,B.useState)(!1);(0,B.useEffect)(()=>{Pt(Q?[]:"")},[St,Q]),(0,B.useEffect)(()=>{Pt(mt||(Q?[]:""))},[mt,Q]);const yt=U=>{Pt(U.target.value),Et(U.target.value)},et=U=>{if(dt){U.preventDefault();return}gt(V=>Q&&!(U.target instanceof HTMLElement)?!0:!V)},vt=()=>{gt(!1)},rt=U=>()=>{const V=Ct.filter(nt=>nt!==U);Pt(V),Et(V)};return(0,s.jsx)(a.A,{className:pt.root,children:(0,s.jsxs)(b.A,{className:pt.formControl,children:[(0,s.jsx)(d.A,{className:pt.formLabel,children:it}),(0,s.jsxs)(u.A,{"aria-label":it,value:Ct,native:It,disabled:dt,"data-testid":At,displayEmpty:!0,multiple:Q,margin:ct,onChange:yt,open:at,onOpen:et,onClose:vt,input:(0,s.jsx)(Y,{}),label:it,renderValue:U=>Q&&Ct.length!==0?(0,s.jsx)(a.A,{className:pt.chips,children:U.map(V=>{const nt=J.find(xt=>xt.value===V);return nt?(0,s.jsx)(p.A,{"data-testid":"chip",label:nt?.label,clickable:!0,deleteIcon:(0,s.jsx)(P.A,{"data-testid":"cancel-icon",onMouseDown:xt=>xt.stopPropagation()}),onDelete:rt(V),className:pt.chip},nt?.value):!1})}):(0,s.jsx)(O.A,{children:Ct.length===0?ht||"":J.find(V=>V.value===U)?.label}),IconComponent:()=>at?(0,s.jsx)(z,{}):(0,s.jsx)(F,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[!!ht&&!Q&&(0,s.jsx)(f.A,{value:[],children:ht}),It?J&&J.map(U=>(0,s.jsx)("option",{value:U.value,children:U.label},U.value)):J&&J.map(U=>(0,s.jsxs)(f.A,{value:U.value,children:[Q&&(0,s.jsx)(x.A,{color:"primary",checked:Ct.includes(U.value)||!1,className:pt.checkbox}),U.label]},U.value))]})]})})}},27586:(H,S,t)=>{"use strict";t.d(S,{Y:()=>Q});var s=t(31085),a=t(82266),x=t(72427),p=t(65461),b=t(10394),h=t(64947),d=t(93453),f=t(29365),u=t(68804),y=t(5951),g=t(26343),C=t(28233),O=t(55197),P=t(58837),B=t(72501),L=t(5893),I=t(14041),M=t(10795),F=t(31129),W=t(72072),X=t(10315),z=t(87849);const Y=(0,P.A)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),K=({icon:J})=>{const it=(0,a.n)(),ht=J?it.getSystemIcon(J)??F.NT:F.NT;return(0,s.jsx)(ht,{})},lt=({link:J})=>(0,s.jsx)(W.N_,{to:J.url,children:J.title??J.url}),G=({item:J})=>(0,s.jsxs)(g.A,{button:!1,children:[(0,s.jsx)(u.A,{children:(0,s.jsx)(K,{icon:J.icon})}),(0,s.jsx)(y.A,{primary:J.title,secondary:J.links?.reduce((it,ht,mt)=>[...it,mt>0&&(0,s.jsx)("br",{},mt),(0,s.jsx)(lt,{link:ht},ht.url)],[])})]});function Q(J){const{t:it}=(0,z.i)(X.O),{title:ht,items:mt,children:Et}=J,{items:St}=(0,M.l)(),[It,dt]=(0,I.useState)(!1),[ct,At]=(0,I.useState)(null),pt=Y(),Ct=(0,x.gf)(p.U).getOptionalConfig("app.support"),Pt=(0,L.A)(yt=>yt.breakpoints.down("sm")),at=yt=>{At(yt.currentTarget),dt(!0)},gt=()=>{dt(!1)};return Ct?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b.A,{display:"flex",ml:1,children:Pt?(0,s.jsx)(f.A,{color:"primary",size:"small",onClick:at,"data-testid":"support-button","aria-label":"Support",children:(0,s.jsx)(F.NT,{})}):(0,s.jsx)(h.A,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:at,startIcon:(0,s.jsx)(F.NT,{}),children:it("supportButton.title")})}),(0,s.jsxs)(O.Ay,{"data-testid":"support-button-popover",open:It,anchorEl:ct,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:gt,children:[(0,s.jsxs)(C.A,{className:pt.popoverList,autoFocusItem:!!ct,children:[ht&&(0,s.jsx)(g.A,{button:!1,alignItems:"flex-start",className:pt.menuItem,children:(0,s.jsx)(B.A,{variant:"subtitle1",children:ht})}),I.Children.map(Et,(yt,et)=>(0,s.jsx)(g.A,{button:!1,alignItems:"flex-start",className:pt.menuItem,children:yt},`child-${et}`)),(mt??St).map((yt,et)=>(0,s.jsx)(G,{item:yt},`item-${et}`))]}),(0,s.jsx)(d.A,{children:(0,s.jsx)(h.A,{color:"primary",onClick:gt,"aria-label":"Close",children:it("supportButton.close")})})]})]}):null}},14209:(H,S,t)=>{"use strict";t.d(S,{X:()=>et});var s=t(31085),a=t(87849),x=t(25301),p=t(10394),b=t(29365),h=t(87051),d=t(58837),f=t(54917),u=t(72501),y=t(83313),g=t(89019),C=t(62461),O=t(68887),P=t(63798),B=t(64704),L=t(6774),I=t(75625),M=t(65859),F=t(45917),W=t(5416),X=t(33494),z=t(80113),Y=t(26229),K=t(46802),lt=t(45250),G=t(14041),Q=t(10315),J=t(64947),it=t(66917);const ht=(0,d.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"}),mt=U=>{const V=ht(),{onChangeFilters:nt}=U,{t:xt}=(0,a.i)(Q.O),[ut,Ut]=(0,G.useState)({...U.selectedFilters}),[Nt,kt]=(0,G.useState)(!1),_t=()=>{Ut({}),kt(Wt=>!Wt)};return(0,G.useEffect)(()=>{nt(ut)},[ut,nt]),(0,s.jsxs)(p.A,{className:V.root,children:[(0,s.jsxs)(p.A,{className:V.header,children:[(0,s.jsx)(p.A,{className:V.value,children:xt("table.filter.title")}),(0,s.jsx)(J.A,{color:"primary",onClick:_t,children:xt("table.filter.clearAll")})]}),(0,s.jsx)(p.A,{className:V.filters,children:U.filters?.length&&U.filters.map(Wt=>(0,s.jsx)(it.w,{triggerReset:Nt,...Wt.element,selected:ut[Wt.element.label],onChange:Gt=>Ut({...ut,[Wt.element.label]:Gt})},Wt.element.label))})]})};var Et=t(78467);function St(U){return(0,s.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,s.jsx)("tr",{children:(0,s.jsx)("td",{colSpan:U.colSpan,children:(0,s.jsx)(p.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"15rem"},children:(0,s.jsx)(Et.A,{size:"5rem"})})})})})}const It={Add:(0,G.forwardRef)((U,V)=>(0,s.jsx)(y.A,{...U,ref:V})),Check:(0,G.forwardRef)((U,V)=>(0,s.jsx)(C.A,{...U,ref:V})),Clear:(0,G.forwardRef)((U,V)=>(0,s.jsx)(B.A,{...U,ref:V})),Delete:(0,G.forwardRef)((U,V)=>(0,s.jsx)(L.A,{...U,ref:V})),DetailPanel:(0,G.forwardRef)((U,V)=>(0,s.jsx)(P.A,{...U,ref:V})),Edit:(0,G.forwardRef)((U,V)=>(0,s.jsx)(I.A,{...U,ref:V})),Export:(0,G.forwardRef)((U,V)=>(0,s.jsx)(Y.A,{...U,ref:V})),Filter:(0,G.forwardRef)((U,V)=>(0,s.jsx)(M.A,{...U,ref:V})),FirstPage:(0,G.forwardRef)((U,V)=>(0,s.jsx)(W.A,{...U,ref:V})),LastPage:(0,G.forwardRef)((U,V)=>(0,s.jsx)(X.A,{...U,ref:V})),NextPage:(0,G.forwardRef)((U,V)=>(0,s.jsx)(P.A,{...U,ref:V})),PreviousPage:(0,G.forwardRef)((U,V)=>(0,s.jsx)(O.A,{...U,ref:V})),ResetSearch:(0,G.forwardRef)((U,V)=>(0,s.jsx)(B.A,{...U,ref:V})),Search:(0,G.forwardRef)((U,V)=>(0,s.jsx)(F.A,{...U,ref:V})),SortArrow:(0,G.forwardRef)((U,V)=>(0,s.jsx)(g.A,{...U,ref:V})),ThirdStateCheck:(0,G.forwardRef)((U,V)=>(0,s.jsx)(z.A,{...U,ref:V})),ViewColumn:(0,G.forwardRef)((U,V)=>(0,s.jsx)(K.A,{...U,ref:V}))};function dt(U,V){const nt=V.split(".");let xt=U[nt[0]];for(let ut=1;ut<nt.length;++ut){if(xt===void 0)return xt;const Ut=nt[ut];xt=xt[Ut]}return xt}const ct=(0,h.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"})(x.rV),At=(0,h.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"})(x.Nb),pt=(0,d.A)(U=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:U.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),Ct=(0,d.A)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"});function Pt(U,V){return U.map(nt=>{const xt=nt.headerStyle??{};let ut=nt.cellStyle||{};if(nt.highlight)if(xt.color=V.palette.textContrast,typeof ut=="object")ut.fontWeight=V.typography.fontWeightBold;else{const Ut=ut;ut=(Nt,kt,_t)=>({...Ut(Nt,kt,_t),fontWeight:V.typography.fontWeightBold})}return{...nt,headerStyle:xt,cellStyle:ut}})}function at(U,V){return(0,lt.transform)(U,(nt,xt,ut)=>{(0,lt.isEqual)(xt,V[ut])||(nt[ut]=xt)})}const gt={search:"",filtersOpen:!1,filters:{}};function yt(U){const{toolbarRef:V,setSearch:nt,hasFilters:xt,selectedFiltersLength:ut,toggleFilters:Ut}=U,{t:Nt}=(0,a.i)(Q.O),kt=pt(),_t=(0,G.useCallback)(Wt=>{U.onSearchChanged(Wt),nt(Wt)},[U,nt]);return xt?(0,s.jsxs)(p.A,{className:kt.root,children:[(0,s.jsxs)(p.A,{className:kt.root,children:[(0,s.jsx)(b.A,{onClick:Ut,"aria-label":"filter list",children:(0,s.jsx)(M.A,{})}),(0,s.jsxs)(u.A,{className:kt.title,children:[Nt("table.filter.title")," (",ut,")"]})]}),(0,s.jsx)(At,{...U,ref:V,onSearchChanged:_t})]}):(0,s.jsx)(At,{...U,ref:V,onSearchChanged:_t})}function et(U){const{data:V,columns:nt,emptyContent:xt,options:ut,title:Ut,subtitle:Nt,localization:kt,filters:_t,initialState:Wt,onStateChange:Gt,components:$t,isLoading:Yt,style:le,...ge}=U,{t:Kt}=(0,a.i)(Q.O),se=Ct(),de=(0,f.A)(),Qe={...gt,...Wt},[ne,an]=(0,G.useState)(Qe.filtersOpen),Ke=(0,G.useCallback)(()=>an(Se=>!Se),[an]),[we,Ge]=(0,G.useState)(Qe.filters),[re,tn]=(0,G.useState)(Qe.search);(0,G.useEffect)(()=>{if(Gt){const Se=at({search:re,filtersOpen:ne,filters:we},gt);Gt(Se)}},[re,ne,we,Gt]);const en=(0,G.useCallback)(Se=>nt.find(Ze=>Ze.title===Se)?.field,[nt]),pn=(0,G.useMemo)(()=>{if(typeof V=="function"||!we)return V;const Se=Object.values(we);return V&&Se.flat().length?V.filter(Je=>!!Object.entries(we).filter(([,Ue])=>!!Ue.length).every(([Ue,$e])=>{const Me=dt(Je,en(Ue));return Array.isArray(Me)&&Array.isArray($e)?Me.some(cn=>$e.includes(cn)):Array.isArray(Me)?Me.includes($e):Array.isArray($e)?$e.includes(Me):Me===$e})):V},[V,we,en]),nn=Object.values(we).flat().length,sn=!!_t?.length,gn=(0,G.useCallback)(Se=>(0,s.jsx)(yt,{setSearch:tn,hasFilters:sn,selectedFiltersLength:nn,toggleFilters:Ke,...Se}),[Ke,sn,nn,tn]),ze=typeof V!="function"&&V.length===0,He=nt.length,Ve=(0,G.useMemo)(()=>vt({hasNoRows:ze,emptyContent:xt,columnCount:He,loading:Yt}),[ze,xt,He,Yt]);return(0,s.jsxs)(p.A,{className:se.root,children:[ne&&V&&typeof V!="function"&&_t?.length&&(0,s.jsx)(mt,{filters:rt(_t,V,nt,Kt),selectedFilters:we,onChangeFilters:Ge}),(0,s.jsx)(x.Ay,{components:{Header:ct,Body:Ve,Toolbar:gn,...$t},options:ut,columns:Pt(nt,de),icons:It,title:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.A,{variant:"h5",component:"h2",children:Ut}),Nt&&(0,s.jsx)(u.A,{color:"textSecondary",variant:"body1",children:Nt})]}),data:pn,style:{width:"100%",...le},localization:{...kt,body:{emptyDataSourceMessage:Kt("table.body.emptyDataSourceMessage"),...kt?.body},pagination:{firstTooltip:Kt("table.pagination.firstTooltip"),labelDisplayedRows:Kt("table.pagination.labelDisplayedRows"),labelRowsSelect:Kt("table.pagination.labelRowsSelect"),lastTooltip:Kt("table.pagination.lastTooltip"),nextTooltip:Kt("table.pagination.nextTooltip"),previousTooltip:Kt("table.pagination.previousTooltip"),...kt?.pagination},header:{actions:Kt("table.header.actions"),...kt?.header},toolbar:{searchPlaceholder:Kt("table.toolbar.search"),searchTooltip:Kt("table.toolbar.search"),...kt?.toolbar}},...ge})]})}et.icons=Object.freeze(It);function vt({columnCount:U,emptyContent:V,hasNoRows:nt,loading:xt}){return ut=>xt?(0,s.jsx)(St,{colSpan:U}):V&&nt?(0,s.jsx)("tbody",{children:(0,s.jsx)("tr",{children:(0,s.jsx)("td",{colSpan:U,children:V})})}):(0,s.jsx)(x.C6,{...ut})}function rt(U,V,nt,xt){const ut=Nt=>{const kt=new Set,_t=Wt=>{Wt!=null&&kt.add(Wt)};return V&&V.forEach(Wt=>{const Gt=dt(Wt,nt.find($t=>$t.title===Nt)?.field);Array.isArray(Gt)?Gt.forEach(_t):_t(Gt)}),kt},Ut=Nt=>({placeholder:xt("table.filter.placeholder"),label:Nt.column,multiple:Nt.type==="multiple-select",items:[...ut(Nt.column)].sort().map(kt=>({label:kt,value:kt}))});return U.map(Nt=>({type:Nt.type,element:Ut(Nt)}))}},88640:(H,S,t)=>{"use strict";t.d(S,{B:()=>F});var s=t(31085),a=t(268),x=t(58837),p=t(8973),b=t(29655),h=t(91567),d=t(42899),f=t(72501),u=t(9181),y=t(6924),g=t(4650);const C=(W,X)=>(X.palette.type==="light"?a.e$:a.a)(X.palette[W].light,.6),O=(W,X)=>(X.palette.type==="light"?a.a:a.e$)(X.palette[W].light,.9),P=(0,x.A)(W=>({root:{marginRight:W.spacing(1),fill:({severity:X})=>C(X,W)}})),B=({severity:W})=>{const X=P({severity:W});return(0,s.jsx)(u.A,{classes:X})},L=({severity:W})=>{const X=P({severity:W});return(0,s.jsx)(y.A,{classes:X})},I=(0,x.A)(W=>({panel:{backgroundColor:({severity:X})=>O(X,W),color:({severity:X})=>C(X,W),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:X})=>C(X,W),fontWeight:W.typography.fontWeightBold},markdownContent:{"& p":{display:"inline"}},message:{width:"100%",display:"block",color:({severity:X})=>C(X,W),backgroundColor:({severity:X})=>O(X,W)},details:{width:"100%",display:"block",color:W.palette.textContrast,backgroundColor:W.palette.background.default,border:`1px solid ${W.palette.border}`,padding:W.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"}),M=W=>W.charAt(0).toLocaleUpperCase("en-US")+W.slice(1);function F(W){const{severity:X="warning",title:z,titleFormat:Y,message:K,children:lt,defaultExpanded:G}=W,Q=I({severity:X}),J=M(X)+(z?`: ${z}`:"");return(0,s.jsxs)(p.A,{defaultExpanded:G??!1,className:Q.panel,role:"alert",children:[(0,s.jsxs)(b.A,{expandIcon:(0,s.jsx)(L,{severity:X}),className:Q.summary,children:[(0,s.jsx)(B,{severity:X}),(0,s.jsx)(f.A,{className:Q.summaryText,variant:"subtitle1",children:Y==="markdown"?(0,s.jsx)(g.h,{content:J,className:Q.markdownContent}):J})]}),(K||lt)&&(0,s.jsx)(h.A,{children:(0,s.jsxs)(d.A,{container:!0,children:[K&&(0,s.jsx)(d.A,{item:!0,xs:12,children:(0,s.jsx)(f.A,{className:Q.message,variant:"body1",children:K})}),lt&&(0,s.jsx)(d.A,{item:!0,xs:12,className:Q.details,children:lt})]})})]})}},10795:(H,S,t)=>{"use strict";t.d(S,{l:()=>h});var s=t(72427),a=t(65461),x=t(10315),p=t(87849);const b=()=>{const{t:d}=(0,p.i)(x.O);return{url:"https://github.com/backstage/backstage/issues",items:[{title:d("supportConfig.default.title"),icon:"warning",links:[{title:d("supportConfig.default.linkTitle"),url:"https://github.com/backstage/backstage/blob/master/app-config.yaml"}]}]}};function h(){const u=(0,s.Q2)().get(a.U)?.getOptionalConfig("app.support"),y=b();return u?{url:u.getString("url"),items:u.getConfigArray("items").flatMap(g=>({title:g.getString("title"),icon:g.getOptionalString("icon"),links:(g.getOptionalConfigArray("links")??[]).flatMap(C=>({url:C.getString("url"),title:C.getOptionalString("title")??""}))}))}:y}},31129:(H,S,t)=>{"use strict";t.d(S,{Gg:()=>L,KG:()=>I,NT:()=>O,z9:()=>p});var s=t(31085),a=t(82266),x=t(27799);function p(M){const{id:F,Fallback:W=x.A,...X}=M,Y=(0,a.n)().getSystemIcon(F)??W;return(0,s.jsx)(Y,{...X})}function b(M){return _jsx(p,{id:"brokenImage",...M})}function h(M){return _jsx(p,{id:"catalog",...M})}function d(M){return _jsx(p,{id:"chat",...M})}function f(M){return _jsx(p,{id:"dashboard",...M})}function u(M){return _jsx(p,{id:"docs",...M})}function y(M){return _jsx(p,{id:"email",...M})}function g(M){return _jsx(p,{id:"github",...M})}function C(M){return _jsx(p,{id:"group",...M})}function O(M){return(0,s.jsx)(p,{id:"help",...M})}function P(M){return _jsx(p,{id:"user",...M})}function B(M){return _jsx(p,{id:"warning",...M})}function L(M){return(0,s.jsx)(p,{id:"star",...M})}function I(M){return(0,s.jsx)(p,{id:"unstarred",...M})}},26280:(H,S,t)=>{"use strict";t.d(S,{U:()=>h});var s=t(31085),a=t(58837),x=t(53373),p=t.n(x);const b=(0,a.A)(d=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:d.spacing(3),paddingBottom:d.spacing(3),paddingLeft:d.spacing(2),paddingRight:d.spacing(2),[d.breakpoints.up("sm")]:{paddingLeft:d.spacing(3),paddingRight:d.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function h(d){const{className:f,stretch:u,noPadding:y,children:g,...C}=d,O=b();return(0,s.jsx)("article",{...C,className:p()(O.root,f,{[O.stretch]:u,[O.noPadding]:y}),children:g})}},59428:(H,S,t)=>{"use strict";t.d(S,{d:()=>u});var s=t(31085),a=t(10394),x=t(58837),p=t(72501),b=t(93285);const h=y=>(0,x.A)(g=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:g.spacing(2),textAlign:y.textAlign},leftItemsBox:{flex:"1 1 auto",minWidth:0,overflow:"visible"},rightItemsBox:{flex:"0 1 auto",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginLeft:g.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}),d=({title:y,className:g})=>(0,s.jsx)(p.A,{variant:"h4",component:"h2",className:g,"data-testid":"header-title",children:y}),f=({description:y,className:g})=>y?(0,s.jsx)(p.A,{variant:"body2",className:g,"data-testid":"header-description",children:y}):null;function u(y){const{description:g,title:C,titleComponent:O=void 0,children:P,descriptionComponent:B=void 0,textAlign:L="left"}=y,I=h({textAlign:L})(),M=O||(0,s.jsx)(d,{title:C,className:I.title}),F=B||(0,s.jsx)(f,{description:g,className:I.description});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b.m,{title:C}),(0,s.jsxs)(a.A,{className:I.container,children:[(0,s.jsxs)(a.A,{className:I.leftItemsBox,children:[M,F]}),(0,s.jsx)(a.A,{className:I.rightItemsBox,children:P})]})]})}},12173:(H,S,t)=>{"use strict";t.d(S,{M:()=>M});var s=t(31085),a=t(42899),x=t(58837),p=t(72501),b=t(18690),h=t(72072),d=t(10795);const f=t.p+"static/mic-drop.fe3ef4d0.svg",u=(0,x.A)(F=>({micDrop:{maxWidth:"60%",bottom:F.spacing(2),right:F.spacing(2),[F.breakpoints.down("xs")]:{maxWidth:"96%",bottom:"unset",right:"unset",margin:F.spacing(10,"auto",4)}}}),{name:"BackstageErrorPageMicDrop"}),y=()=>{const F=u();return(0,s.jsx)("img",{src:f,className:F.micDrop,alt:"Girl dropping mic from her hands"})};var g=t(14041),C=t(77310),O=t(87849),P=t(10315);const B=(0,x.A)(F=>({title:{paddingBottom:F.spacing(5),[F.breakpoints.down("xs")]:{paddingBottom:F.spacing(4),fontSize:F.typography.h3.fontSize}}}),{name:"BackstageErrorPageStackDetails"});function L(F){const{stack:W}=F,X=B(),{t:z}=(0,O.i)(P.O),[Y,K]=(0,g.useState)(!1);return Y?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.A,{variant:"h6",className:X.title,children:(0,s.jsx)(h.N_,{to:"#",onClick:()=>K(!1),children:z("errorPage.showLessDetails")})}),(0,s.jsx)(C.z,{text:W,language:"text",showCopyCodeButton:!0,showLineNumbers:!0})]}):(0,s.jsx)(p.A,{variant:"h6",className:X.title,children:(0,s.jsx)(h.N_,{to:"#",onClick:()=>K(!0),children:z("errorPage.showMoreDetails")})})}const I=(0,x.A)(F=>({container:{padding:F.spacing(8),[F.breakpoints.down("xs")]:{padding:F.spacing(2)}},title:{paddingBottom:F.spacing(5),[F.breakpoints.down("xs")]:{paddingBottom:F.spacing(4),fontSize:F.typography.h3.fontSize}},subtitle:{color:F.palette.textSubtle}}),{name:"BackstageErrorPage"});function M(F){const{status:W="",statusMessage:X,additionalInfo:z,supportUrl:Y,stack:K}=F,lt=I(),G=(0,b.Zp)(),Q=(0,d.l)(),{t:J}=(0,O.i)(P.O);return(0,s.jsxs)(a.A,{container:!0,className:lt.container,children:[(0,s.jsxs)(a.A,{item:!0,xs:12,sm:8,md:4,children:[(0,s.jsx)(p.A,{"data-testid":"error",variant:"body1",className:lt.subtitle,children:J("errorPage.subtitle",{status:W,statusMessage:X})}),(0,s.jsx)(p.A,{variant:"body1",className:lt.subtitle,children:z}),(0,s.jsx)(p.A,{variant:"h2",className:lt.title,children:J("errorPage.title")}),(0,s.jsxs)(p.A,{variant:"h6",className:lt.title,children:[(0,s.jsx)(h.N_,{to:"#","data-testid":"go-back-link",onClick:()=>G(-1),children:J("errorPage.goBack")}),"... or please"," ",(0,s.jsx)(h.N_,{to:Y||Q.url,children:"contact support"})," if you think this is a bug."]}),K&&(0,s.jsx)(L,{stack:K})]}),(0,s.jsx)(y,{})]})}},69814:(H,S,t)=>{"use strict";t.d(S,{Y:()=>G});var s=t(31085),a=t(72427),x=t(65461),p=t(10394),b=t(42899),h=t(58837),d=t(71677),f=t(72501),u=t(93285),y=t(72072),g=t(45634),C=t(58007),O=t(8109),P=t(55197),B=t(87051),L=t(14041);const I=(0,B.A)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(f.A),M=(0,B.A)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(p.A),F=(0,B.A)({root:{fontStyle:"italic"}},{name:"BreadcrumbsCurrentPage"})(p.A);function W(Q){const{children:J,...it}=Q,[ht,mt]=(0,L.useState)(null),Et=L.Children.toArray(J),[St,It,...dt]=Et,ct=dt.length?dt.pop():Et[Et.length-1],At=Et.length>3,pt=at=>{mt(at.currentTarget)},Ct=()=>{mt(null)},Pt=!!ht;return(0,s.jsxs)(L.Fragment,{children:[(0,s.jsxs)(g.A,{"aria-label":"breadcrumb",...it,children:[Et.length>1&&(0,s.jsx)(M,{clone:!0,children:St}),Et.length>2&&(0,s.jsx)(M,{clone:!0,children:It}),At&&(0,s.jsx)(I,{onClick:pt,children:"..."}),(0,s.jsx)(F,{children:ct})]}),(0,s.jsx)(P.Ay,{open:Pt,anchorEl:ht,onClose:Ct,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,s.jsx)(C.A,{children:dt.map((at,gt)=>(0,s.jsx)(O.A,{button:!0,children:(0,s.jsx)(M,{clone:!0,children:at})},gt))})})]})}var X=t(73524);const z=(0,h.A)(Q=>({header:{gridArea:"pageHeader",padding:Q.spacing(3),width:"100%",boxShadow:Q.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:Q.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[Q.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:Q.page.fontColor,wordBreak:"break-word",fontSize:Q.typography.h3.fontSize,marginBottom:0},subtitle:{color:Q.page.fontColor,opacity:.8,display:"inline-block",marginTop:Q.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:Q.spacing(1),color:Q.page.fontColor},breadcrumb:{color:Q.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-Q.spacing(.3),marginBottom:Q.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-Q.spacing(.3),marginBottom:Q.spacing(.3)}}),{name:"BackstageHeader"}),Y=({type:Q,typeLink:J,classes:it,pageTitle:ht})=>Q?J?(0,s.jsxs)(W,{className:it.breadcrumb,children:[(0,s.jsx)(y.N_,{to:J,children:Q}),(0,s.jsx)(f.A,{children:ht})]}):(0,s.jsx)(f.A,{className:it.type,children:Q}):null,K=({pageTitle:Q,classes:J,tooltip:it})=>{const{contentRef:ht}=(0,X.H)(),mt=(0,s.jsx)(f.A,{ref:ht,tabIndex:-1,className:J.title,variant:"h1",children:Q});return it?(0,s.jsx)(d.Ay,{title:it,placement:"top-start",children:mt}):mt},lt=({classes:Q,subtitle:J})=>J?typeof J!="string"?(0,s.jsx)(s.Fragment,{children:J}):(0,s.jsx)(f.A,{className:Q.subtitle,variant:"subtitle2",component:"span",children:J}):null;function G(Q){const{children:J,pageTitleOverride:it,style:ht,subtitle:mt,title:Et,tooltip:St,type:It,typeLink:dt}=Q,ct=z(),pt=(0,a.gf)(x.U).getOptionalString("app.title")||"Backstage",Ct=it||Et,Pt=Et||it,at=`${Ct} | %s | ${pt}`,gt=`${Ct} | ${pt}`;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.m,{titleTemplate:at,defaultTitle:gt}),(0,s.jsxs)("header",{style:ht,className:ct.header,children:[(0,s.jsxs)(p.A,{className:ct.leftItemsBox,children:[(0,s.jsx)(Y,{classes:ct,type:It,typeLink:dt,pageTitle:Pt}),(0,s.jsx)(K,{classes:ct,pageTitle:Pt,tooltip:St}),(0,s.jsx)(lt,{classes:ct,subtitle:mt})]}),(0,s.jsx)(b.A,{container:!0,className:ct.rightItemsBox,spacing:4,children:J})]})]})}},24504:(H,S,t)=>{"use strict";t.d(S,{Y:()=>d});var s=t(31085),a=t(58837),x=t(50868),p=t(53373),b=t.n(p);const h=(0,a.A)(f=>({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",[f.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function d(f){const{themeId:u,className:y,children:g}=f,C=h();return(0,s.jsx)(x.A,{theme:O=>({...O,page:O.getPageTheme({themeId:u})}),children:(0,s.jsx)("main",{className:b()(C.root,y),children:g})})}},27155:(H,S,t)=>{"use strict";t.d(S,{d:()=>p});var s=t(31085),a=t(69814),x=t(24504);function p(b){const{themeId:h,children:d,...f}=b;return(0,s.jsxs)(x.Y,{themeId:h,children:[(0,s.jsx)(a.Y,{...f}),d]})}},73524:(H,S,t)=>{"use strict";t.d(S,{G:()=>C,H:()=>O});var s=t(31085),a=t(10394),x=t(58837),p=t(5893),b=t(14041),h=t(72664),d=function(P){return P.SIDEBAR_PIN_STATE="sidebarPinState",P}(d||{});const f={getSidebarPinState(){let P;try{P=JSON.parse(window.localStorage.getItem("sidebarPinState")||"true")}catch{return!0}return!!P},setSidebarPinState(P){return window.localStorage.setItem("sidebarPinState",JSON.stringify(P))}};var u=t(34435);const y=(0,x.A)(P=>({root:{width:"100%",transition:"padding-left 0.1s ease-out",isolation:"isolate",[P.breakpoints.up("sm")]:{paddingLeft:B=>B.isPinned?B.sidebarConfig.drawerWidthOpen:B.sidebarConfig.drawerWidthClosed},[P.breakpoints.down("xs")]:{paddingBottom:B=>B.sidebarConfig.mobileSidebarHeight},"@media print":{padding:"0px !important"}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),g=(0,b.createContext)({content:{contentRef:void 0}});function C(P){const[B,L]=(0,b.useState)(()=>f.getSidebarPinState()),{sidebarConfig:I}=(0,b.useContext)(h.yY),M=(0,b.useRef)(null),F=(0,b.useMemo)(()=>({content:{contentRef:M}}),[M]);(0,b.useEffect)(()=>{f.setSidebarPinState(B)},[B]);const W=(0,p.A)(Y=>Y.breakpoints.down("xs"),{noSsr:!0}),X=()=>L(!B),z=y({isPinned:B,sidebarConfig:I});return(0,s.jsx)(u.qj,{value:{isPinned:B,toggleSidebarPinState:X,isMobile:W},children:(0,s.jsx)(g.Provider,{value:F,children:(0,s.jsx)(a.A,{className:z.root,children:P.children})})})}function O(){const{content:P}=(0,b.useContext)(g);return{focusContent:(0,b.useCallback)(()=>{P?.contentRef?.current?.focus()},[P]),contentRef:P?.contentRef}}},34435:(H,S,t)=>{"use strict";t.d(S,{Ut:()=>u,qj:()=>f});var s=t(31085),a=t(43836),x=t(10602),p=t(14041);const b={isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1},h=(0,p.createContext)(b),d=(0,a.tK)("sidebar-pin-state-context");function f(y){const{children:g,value:C}=y;return(0,s.jsx)(h.Provider,{value:C,children:(0,s.jsx)(d.Provider,{value:(0,x.B)({1:C}),children:g})})}const u=()=>{const y=(0,p.useContext)(d),g=(0,p.useContext)(h);if(y===void 0)return g||b;const C=y.atVersion(1);if(C===void 0)throw new Error("No context found for version 1.");return C}},72664:(H,S,t)=>{"use strict";t.d(S,{Rv:()=>h,U1:()=>g,hC:()=>b,i8:()=>f,yY:()=>y});var s=t(14041);const a=72,x=24,p=18,b={drawerWidthClosed:a,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:a,iconSize:a-x*2,iconPadding:x,selectedIndicatorWidth:3,userBadgePadding:p,userBadgeDiameter:a-p*2,mobileSidebarHeight:56},h=C=>({...b,...C,iconContainerWidth:b.drawerWidthClosed,iconSize:b.drawerWidthClosed-b.iconPadding*2,userBadgeDiameter:b.drawerWidthClosed-b.userBadgePadding*2}),d={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:b.defaultOpenDelayMs+200},f=C=>({...d,...C}),u="@backstage/core/sidebar-intro-dismissed",y=(0,s.createContext)({sidebarConfig:b,submenuConfig:d}),g=(0,s.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}})},10315:(H,S,t)=>{"use strict";t.d(S,{O:()=>a});var s=t(93184);const a=(0,s.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
|
+
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
|
+
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",message:"Sign-in to allow {{appTitle}} access to {{provider}} APIs and identities."},supportButton:{title:"Support",close:"Close"},table:{filter:{title:"Filters",clearAll:"Clear all",placeholder:"All results"},body:{emptyDataSourceMessage:"No records to display"},pagination:{firstTooltip:"First Page",labelDisplayedRows:"{from}-{to} of {count}",labelRowsSelect:"rows",lastTooltip:"Last Page",nextTooltip:"Next Page",previousTooltip:"Previous Page"},toolbar:{search:"Filter"},header:{actions:"Actions"}},alertDisplay:{message_one:"({{ count }} newer message)",message_other:"({{ count }} newer 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,S,t)=>{"use strict";t.d(S,{Ig:()=>d,pn:()=>h});var s=t(31085),a=t(43836),x=t(10602),p=t(14041);const b=(0,a.tK)("analytics-context"),h=()=>{const u=(0,p.useContext)(b);if(u===void 0)return{routeRef:"unknown",pluginId:"root",extension:"App"};const y=u.atVersion(1);if(y===void 0)throw new Error("No context found for version 1.");return y},d=u=>{const{attributes:y,children:g}=u,O={...h(),...y},P=(0,x.B)({1:O});return(0,s.jsx)(b.Provider,{value:P,children:g})};function f(u,y){const g=C=>_jsx(d,{attributes:y,children:_jsx(u,{...C})});return g.displayName=`WithAnalyticsContext(${u.displayName||u.name||"Component"})`,g}},67237:(H,S,t)=>{"use strict";t.d(S,{J:()=>p,t:()=>x});var s=t(63544);const a=(0,s.Q)("core-plugin-api:analytics-tracker-events",()=>({mostRecentGatheredNavigation:void 0,mostRecentRoutableExtensionRender:void 0,beforeUnloadRegistered:!1})),x="_ROUTABLE-EXTENSION-RENDERED";class p{analyticsApi;context;constructor(h,d={routeRef:"unknown",pluginId:"root",extension:"App"}){this.analyticsApi=h,this.context=d,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,d,{value:f,attributes:u}={}){const{_routeNodeType:y,...g}=this.context;if(h===x){a.mostRecentGatheredNavigation&&(a.mostRecentRoutableExtensionRender={context:{...g,extension:"App"}});return}if(a.mostRecentGatheredNavigation){try{this.analyticsApi.captureEvent({...a.mostRecentGatheredNavigation,...a.mostRecentRoutableExtensionRender})}catch(C){console.warn("Error during analytics event capture. %o",C)}a.mostRecentGatheredNavigation=void 0,a.mostRecentRoutableExtensionRender=void 0}if(h==="navigate"&&y==="gathered"&&g.pluginId==="root"){a.mostRecentGatheredNavigation={action:h,subject:d,value:f,attributes:u,context:g};return}try{this.analyticsApi.captureEvent({action:h,subject:d,value:f,attributes:u,context:g})}catch(C){console.warn("Error during analytics event capture. %o",C)}}}},93368:(H,S,t)=>{"use strict";t.d(S,{s:()=>d});var s=t(25862),a=t(72427),x=t(99303),p=t(14041),b=t(67237);function h(){try{return(0,a.gf)(x.c)}catch{return{captureEvent:()=>{}}}}function d(){const f=(0,p.useRef)(null),u=(0,s.pn)(),y=h();function g(){return f.current===null&&(f.current=new b.J(y)),f.current}const C=g();return C.setContext(u),C}},36017:(H,S,t)=>{"use strict";t.d(S,{k:()=>a});var s=t(55309);const a=(0,s.y)({id:"core.alert"})},99303:(H,S,t)=>{"use strict";t.d(S,{c:()=>a});var s=t(55309);const a=(0,s.y)({id:"core.analytics"})},65461:(H,S,t)=>{"use strict";t.d(S,{U:()=>a});var s=t(55309);const a=(0,s.y)({id:"core.config"})},57405:(H,S,t)=>{"use strict";t.d(S,{I:()=>a});var s=t(55309);const a=(0,s.y)({id:"core.discovery"})},39837:(H,S,t)=>{"use strict";t.d(S,{m:()=>a});var s=t(55309);const a=(0,s.y)({id:"core.error"})},63636:(H,S,t)=>{"use strict";t.d(S,{B:()=>x,S:()=>a});var s=t(55309),a=function(p){return p[p.None=0]="None",p[p.Active=1]="Active",p}({});const x=(0,s.y)({id:"core.featureflags"})},70795:(H,S,t)=>{"use strict";t.d(S,{a:()=>a});var s=t(55309);const a=(0,s.y)({id:"core.fetch"})},16009:(H,S,t)=>{"use strict";t.d(S,{K:()=>a});var s=t(55309);const a=(0,s.y)({id:"core.identity"})},56038:(H,S,t)=>{"use strict";t.d(S,{J:()=>a});var s=t(55309);const a=(0,s.y)({id:"core.translation"})},55309:(H,S,t)=>{"use strict";t.d(S,{y:()=>a});class s{config;constructor(p){if(this.config=p,!p.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 '${p.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(x){return new s(x)}},12935:(H,S,t)=>{"use strict";t.d(S,{b:()=>s});function s(a,x){return"id"in a?{api:a,deps:{},factory:()=>x}:a}},72427:(H,S,t)=>{"use strict";t.d(S,{Q2:()=>p,gf:()=>b});var s=t(31085),a=t(43836),x=t(97142);function p(){const d=(0,a.qO)("api-context");if(!d)throw new x.EH("API context is not available");const f=d.atVersion(1);if(!f)throw new x.EH("ApiContext v1 not available");return f}function b(d){const u=p().get(d);if(!u)throw new x.EH(`No implementation available for ${d}`);return u}function h(d){return function(u){const y=C=>{const O=p(),P={};for(const B in d)if(d.hasOwnProperty(B)){const L=d[B],I=O.get(L);if(!I)throw new NotImplementedError(`No implementation available for ${L}`);P[B]=I}return _jsx(u,{...C,...P})},g=u.displayName||u.name||"Component";return y.displayName=`withApis(${g})`,y}}},82266:(H,S,t)=>{"use strict";t.d(S,{n:()=>a});var s=t(43836);const a=()=>{const x=(0,s.qO)("app-context");if(!x)throw new Error("App context is not available");const p=x.atVersion(1);if(!p)throw new Error("AppContext v1 not available");return p}},19402:(H,S,t)=>{"use strict";t.d(S,{E:()=>b,h:()=>p});var s=t(63544);const a=(0,s.Q)("component-data-store",()=>new WeakMap),x="__backstage_data";function p(h,d,f){const u=h;let y=u[x]??a.get(h);if(y||(y={map:new Map},Object.defineProperty(u,x,{enumerable:!1,configurable:!0,writable:!1,value:y}),a.set(h,y)),y.map.has(d)){const g=h.displayName||h.name;throw new Error(`Attempted to attach duplicate data "${d}" to component "${g}"`)}y.map.set(d,f)}function b(h,d){if(!h)return;const f=h.type;if(!f)return;const u=f[x]??a.get(f);if(u)return u.map.get(d)}},88758:(H,S,t)=>{"use strict";t.d(S,{NC:()=>C,zZ:()=>O,QJ:()=>g});var s=t(31085),a=t(14041),x=t(93368),p=t(25862),b=t(82266),h=t(9222),d=t(19402);class f extends a.Component{static getDerivedStateFromError(B){return{error:B}}state={error:void 0};handleErrorReset=()=>{this.setState({error:void 0})};render(){const{error:B}=this.state,{app:L,plugin:I}=this.props,{ErrorBoundaryFallback:M}=L.getComponents();return B?(0,s.jsx)(M,{error:B,resetError:this.handleErrorReset,plugin:I}):this.props.children}}var u=t(67237),y=t(97142);function g(P){const{component:B,mountPoint:L,name:I}=P;return O({component:{lazy:()=>B().then(M=>{const F=X=>{const z=(0,x.s)();try{(0,h.S)(L)}catch(Y){if(typeof Y=="object"&&Y!==null){const{message:K}=Y;if(typeof K=="string"&&K.startsWith("No path for "))throw new Error(`Routable extension component with mount point ${L} 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 Y}return(0,a.useEffect)(()=>{z.captureEvent(u.t,"")},[z]),(0,s.jsx)(M,{...X})},W=I||M.displayName||M.name||"LazyComponent";return F.displayName=`RoutableExtension(${W})`,F})},data:{"core.mountPoint":L},name:I})}function C(P){const{component:B,name:L}=P;return O({component:B,name:L})}function O(P){const{data:B={},name:L}=P;L||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name.");let I;if("lazy"in P.component){const F=P.component.lazy;I=(0,a.lazy)(()=>F().then(W=>({default:W}),W=>{const X=L?` of the ${L} extension`:"";throw new y.HK(`Failed lazy loading${X}, try to reload the page`,W)}))}else I=P.component.sync;const M=L||I.displayName||I.name||"Component";return{expose(F){const W=X=>{const z=(0,b.n)(),{Progress:Y}=z.getComponents(),K=B?.["core.mountPoint"];return(0,s.jsx)(a.Suspense,{fallback:(0,s.jsx)(Y,{}),children:(0,s.jsx)(f,{app:z,plugin:F,children:(0,s.jsx)(p.Ig,{attributes:{pluginId:F.getId(),...L&&{extension:L},...K&&{routeRef:K.id}},children:(0,s.jsx)(I,{...X})})})})};(0,d.h)(W,"core.plugin",F),(0,d.h)(W,"core.extensionName",L);for(const[X,z]of Object.entries(B))(0,d.h)(W,X,z);return W.displayName=`Extension(${M})`,W}}}},82442:(H,S,t)=>{"use strict";t.d(S,{O:()=>d});var s=t(14041),a=t(19402),x=t(72427),p=t(63636);function b(f,u,y,g){return s.Children.toArray(f).flatMap(C=>{if(!(0,s.isValidElement)(C))return[];if(C.type===s.Fragment)return b(C.props.children,u,y,g);if((0,a.E)(C,"core.featureFlagged")){const O=C.props;return("with"in O?u.isActive(O.with):!u.isActive(O.without))?b(C.props.children,u,y,g):[]}if(y===void 0||y(C))return[C];if(g)throw new Error(g);return b(C.props.children,u,y,g)})}class h{node;featureFlagsApi;constructor(u,y){this.node=u,this.featureFlagsApi=y}selectByComponentData(u){const y=b(this.node,this.featureFlagsApi,g=>(0,a.E)(g,u.key)!==void 0,u.withStrictError);return new h(y,this.featureFlagsApi)}findComponentData(u){return b(this.node,this.featureFlagsApi,g=>(0,a.E)(g,u.key)!==void 0).map(g=>(0,a.E)(g,u.key)).filter(g=>g!==void 0)}getElements(){return b(this.node,this.featureFlagsApi)}}function d(f,u,y=[]){const g=(0,x.gf)(p.B),C=new h(f,g);return(0,s.useMemo)(()=>u(C),[f,...y])}},9803:(H,S,t)=>{"use strict";t.d(S,{i:()=>a});class s{config;constructor(p){this.config=p}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(p){return p.expose(this)}toString(){return`plugin{${this.config.id}}`}}function a(x){return new s(x)}},34569:(H,S,t)=>{"use strict";t.d(S,{H:()=>x});var s=t(59598);class a{id;params;[p=s.b];constructor(h,d){this.id=h,this.params=d,this[p]="absolute"}get title(){return this.id}toString(){return`routeRef{type=absolute,id=${this.id}}`}}function x(b){return new a(b.id,b.params??[])}var p},59598:(H,S,t)=>{"use strict";t.d(S,{b:()=>a});var s=t(63544);const a=(0,s.Q)("route-ref-type",()=>Symbol("route-ref-type"))},9222:(H,S,t)=>{"use strict";t.d(S,{S:()=>p});var s=t(14041),a=t(18690),x=t(43836);function p(b){const{pathname:h}=(0,a.zy)(),d=(0,x.qO)("routing-context");if(!d)throw new Error("Routing context is not available");const f=d.atVersion(1),u=(0,s.useMemo)(()=>f&&f.resolve(b,{pathname:h}),[f,b,h]);if(!d)throw new Error("useRouteRef used outside of routing context");if(!f)throw new Error("RoutingContext v1 not available");const y="optional"in b&&b.optional;if(!u&&!y)throw new Error(`No path for ${b}`);return u}},93184:(H,S,t)=>{"use strict";t.d(S,{h:()=>p,v:()=>b});var s=t(99833);function a(h){const d=new Array;function f(u,y){for(const[g,C]of Object.entries(u))typeof C=="string"?d.push([y+g,C]):f(C,`${y}${g}.`)}return f(h,""),Object.fromEntries(d)}class x{#t;#e;#n;constructor(d){this.#t=d.id,this.#e=a(d.messages)}$$type="@backstage/TranslationRef";version="v1";get id(){return this.#t}get T(){throw new Error("Not implemented")}getDefaultMessages(){return this.#e}setDefaultResource(d){this.#n=d}getDefaultResource(){return this.#n}toString(){return`TranslationRef{id=${this.id}}`}}function p(h){const d=new x(h);return h.translations&&d.setDefaultResource((0,s.o)({ref:d,translations:h.translations})),d}function b(h){const d=h;if(d.$$type!=="@backstage/TranslationRef")throw new Error(`Invalid translation ref, bad type '${d.$$type}'`);if(d.version!=="v1")throw new Error(`Invalid translation ref, bad version '${d.version}'`);return d}},99833:(H,S,t)=>{"use strict";t.d(S,{Y:()=>s,o:()=>a});function s(x){const p=x;if(p.$$type!=="@backstage/TranslationResource")throw new Error(`Invalid translation resource, bad type '${p.$$type}'`);if(p.version!=="v1")throw new Error(`Invalid translation resource, bad version '${p.version}'`);return p}function a(x){return{$$type:"@backstage/TranslationResource",version:"v1",id:x.ref.id,resources:Object.entries(x.translations).map(([p,b])=>({language:p,loader:()=>b().then(h=>{const d=h.default;return{messages:d?.$$type==="@backstage/TranslationMessages"?d.messages:d}})}))}}},87849:(H,S,t)=>{"use strict";t.d(S,{i:()=>h});var s=t(14041),a=t(72427),x=t(39837),p=t(56038);const b=new WeakSet,h=d=>{const f=(0,a.gf)(x.m),u=(0,a.gf)(p.J),[y,g]=(0,s.useState)(()=>u.getTranslation(d)),C=(0,s.useMemo)(()=>u.translation$(d),[u,d]),O=(0,s.useCallback)(B=>{if(!b.has(d)){const L=`Failed to load translation resource '${d.id}'; caused by ${B}`;console.error(L),f.post(new Error(L)),b.add(d)}},[f,d]);(0,s.useEffect)(()=>{const B=C.subscribe({next(L){L.ready&&g(L)},error(L){O(L)}});return()=>{B.unsubscribe()}},[C,O]);const P=(0,s.useRef)(!0);if((0,s.useEffect)(()=>{P.current?P.current=!1:g(u.getTranslation(d))},[u,d]),!y.ready)throw new Promise(B=>{const L=C.subscribe({next(I){I.ready&&(L.unsubscribe(),B())},error(I){L.unsubscribe(),O(I),B()}})});return{t:y.t}}},70835:(H,S,t)=>{"use strict";t.d(S,{o:()=>x});var s=t(59750);async function a(p){try{const b=await p.text();if(b){if(p.headers.get("content-type")?.startsWith("application/json"))try{const h=JSON.parse(b);if(h.error&&h.response)return h}catch{}return{error:{name:"Error",message:`Request failed with status ${p.status} ${p.statusText}, ${b}`},response:{statusCode:p.status}}}}catch{}return{error:{name:"Error",message:`Request failed with status ${p.status} ${p.statusText}`},response:{statusCode:p.status}}}class x extends Error{response;body;cause;statusCode;statusText;static async fromResponse(b){const h=await a(b),d=h.response.statusCode||b.status,f=b.statusText,u=`Request failed with ${d} ${f}`,y=(0,s.cy)(h.error);return new x({message:u,response:b,data:h,cause:y,statusCode:d,statusText:f})}constructor(b){super(b.message),this.name="ResponseError",this.response=b.response,this.body=b.data,this.cause=b.cause,this.statusCode=b.statusCode,this.statusText=b.statusText}}},93007:(H,S,t)=>{"use strict";t.d(S,{b:()=>s});function s(x){if(typeof x!="object"||x===null||Array.isArray(x))return!1;const p=x;return!(typeof p.name!="string"||p.name===""||typeof p.message!="string")}function a(x){if(typeof x!="object"||x===null||Array.isArray(x))throw new Error(`Encountered invalid error, not an object, got '${x}'`);const p=x;if(typeof p.name!="string"||p.name==="")throw new Error(`Encountered error object without a name, got '${x}'`);if(typeof p.message!="string")throw new Error(`Encountered error object without a message, got '${x}'`)}},97142:(H,S,t)=>{"use strict";t.d(S,{HK:()=>C,m_:()=>d,EH:()=>y});var s=t(93007),a=t(59750);class x extends Error{cause;constructor(P,B){let L=P;if(B!==void 0){const I=(0,a.M5)(B);L?L+=`; caused by ${I}`:L=`caused by ${I}`}super(L),Error.captureStackTrace?.(this,this.constructor),(!this.name||this.name==="Error")&&this.constructor.name!=="Error"&&(this.name=this.constructor.name),this.cause=(0,s.b)(B)?B:void 0}}class p extends null{name="InputError"}class b extends null{name="AuthenticationError"}class h extends null{name="NotAllowedError"}class d extends x{name="NotFoundError"}class f extends null{name="ConflictError"}class u extends null{name="NotModifiedError"}class y extends x{name="NotImplementedError"}class g extends null{}class C extends x{constructor(P,B){super(P,B),this.name=(0,s.b)(B)?B.name:"Error"}}},59750:(H,S,t)=>{"use strict";t.d(S,{M5:()=>h,cy:()=>b});var s=t(69655),a=t.n(s),x=t(93007);function p(d,f){const y={name:"Unknown",message:"<no reason given>",...serializeErrorInternal(d)};return f?.includeStack||(delete y.stack,y.cause&&typeof y.cause=="object"&&"stack"in y.cause&&delete y.cause.stack),y}function b(d){const f=(0,s.deserializeError)(d);return d.stack||(f.stack=void 0),f}function h(d){if((0,x.b)(d)){const f=String(d);return f!=="[object Object]"?f:`${d.name}: ${d.message}`}return`unknown error '${d}'`}},96726:(H,S,t)=>{"use strict";t.d(S,{L:()=>Me,Y:()=>cn});var s=t(59869);const a="amazonaws.com";function x(T){const l=T.getOptionalString("endpoint"),E=T.getOptionalBoolean("s3ForcePathStyle")??!1;let w,Z;if(l){try{const Qt=new URL(l);w=Qt.host,Z=Qt.pathname}catch{throw new Error(`invalid awsS3 integration config, endpoint '${l}' is not a valid URL`)}if(Z!=="/")throw new Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${l}'`)}else w=a;const _=T.getOptionalString("accessKeyId"),st=T.getOptionalString("secretAccessKey")?.trim(),jt=T.getOptionalString("roleArn"),zt=T.getOptionalString("externalId");return{host:w,endpoint:l,s3ForcePathStyle:E,accessKeyId:_,secretAccessKey:st,roleArn:jt,externalId:zt}}function p(T){const l=T.map(x);return l.some(E=>E.host===a)||l.push({host:a}),l}class b{integrationConfig;static factory=({config:l})=>{const E=p(l.getOptionalConfigArray("integrations.awsS3")??[]);return(0,s.oS)(E.map(w=>new b(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,s.ku)(l)}resolveEditUrl(l){return l}}const h="console.aws.amazon.com";function d(T){const l=T.getOptionalString("accessKeyId"),E=T.getOptionalString("secretAccessKey")?.trim(),w=T.getOptionalString("roleArn"),Z=T.getOptionalString("externalId"),_=T.getString("region");return{host:T.getOptionalString("host")||`${_}.${h}`,accessKeyId:l,secretAccessKey:E,roleArn:w,externalId:Z,region:_}}function f(T){return T.map(d)}class u{integrationConfig;static factory=({config:l})=>{const E=f(l.getOptionalConfigArray("integrations.awsCodeCommit")??[]);return(0,s.oS)(E.map(w=>new u(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,s.ku)(l)}resolveEditUrl(l){const w=new URL(l).pathname.match(/^\/codesuite\/codecommit\/repositories\/([^\/]+)\//);if(!w)throw new Error("");const[,Z]=w;return y(l,Z,"edit")}}function y(T,l,E){const w=E==="edit"?"files/edit":E;return T.replace(new RegExp(`/codesuite/codecommit/repositories/${l}/(browse|files/edit)/`),`/codesuite/codecommit/repositories/${l}/${w}/`)}const g="GB";class C{static fromRepoUrl(l){const E=new URL(l);let w,Z,_;const st=E.pathname.split("/").map(oe=>decodeURIComponent(oe));if(st[2]==="_git"?(w=st[1],Z=_=st[3]):st[3]==="_git"?(w=st[1],Z=st[2],_=st[4]):st[4]==="_git"&&(w=`${st[1]}/${st[2]}`,Z=st[3],_=st[5]),!w||!Z||!_)throw new Error("Azure URL must point to a git repository");const jt=E.searchParams.get("path")??void 0;let zt;const Qt=E.searchParams.get("version");if(Qt){if(Qt.slice(0,2)!=="GB")throw new Error("Azure URL version must point to a git branch");zt=Qt.slice(2)}return new C(E.origin,w,Z,_,jt,zt)}#t;#e;#n;#s;#o;#r;constructor(l,E,w,Z,_,st){this.#t=l,this.#e=E,this.#n=w,this.#s=Z,this.#o=_,this.#r=st}#a=(...l)=>{const E=new URL(this.#t);return E.pathname=l.map(w=>encodeURIComponent(w)).join("/"),E};toRepoUrl(){let l;return this.#n===this.#s?l=this.#a(this.#e,"_git",this.#s):l=this.#a(this.#e,this.#n,"_git",this.#s),this.#o&&l.searchParams.set("path",this.#o),this.#r&&l.searchParams.set("version",g+this.#r),l.toString()}toFileUrl(){if(!this.#o)throw new Error("Azure URL must point to a specific path to be able to download a file");const l=this.#a(this.#e,this.#n,"_apis","git","repositories",this.#s,"items");return l.searchParams.set("api-version","6.0"),l.searchParams.set("path",this.#o),this.#r&&l.searchParams.set("version",this.#r),l.toString()}toArchiveUrl(){const l=this.#a(this.#e,this.#n,"_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.#o&&l.searchParams.set("scopePath",this.#o),this.#r&&l.searchParams.set("version",this.#r),l.toString()}toCommitsUrl(){const l=this.#a(this.#e,this.#n,"_apis","git","repositories",this.#s,"commits");return l.searchParams.set("api-version","6.0"),this.#r&&l.searchParams.set("searchCriteria.itemVersion.version",this.#r),l.toString()}getOwner(){return this.#e}getProject(){return this.#n}getRepo(){return this.#s}getPath(){return this.#o}getRef(){return this.#r}}const O="dev.azure.com",P=["clientId","clientSecret","managedIdentityClientId","tenantId","personalAccessToken"],B=new Map([["ClientSecret",["clientId","clientSecret","tenantId"]],["ManagedIdentity",["clientId"]],["ManagedIdentityClientAssertion",["clientId","managedIdentityClientId","tenantId"]],["PersonalAccessToken",["personalAccessToken"]]]);function L(T){for(const l of B.entries()){const[E,w]=l,Z=P.filter(_=>!w.includes(_));if(w.every(_=>T[_]!==void 0)&&Z.every(_=>T[_]===void 0))return{kind:E,organizations:T.organizations,...w.reduce((_,st)=>(_[st]=T[st],_),{})}}throw new Error("is not a valid credential")}function I(T){const l=T.getOptionalString("host")??O;let E=T.getOptionalConfigArray("credentials")?.map(_=>({organizations:_.getOptionalStringArray("organizations"),personalAccessToken:_.getOptionalString("personalAccessToken")?.trim(),tenantId:_.getOptionalString("tenantId")?.trim(),clientId:_.getOptionalString("clientId")?.trim(),clientSecret:_.getOptionalString("clientSecret")?.trim(),managedIdentityClientId:_.getOptionalString("managedIdentityClientId")?.trim()}));const w=T.getOptionalString("token")?.trim();if(T.getOptional("credential")!==void 0&&T.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'credential' and 'credentials' cannot be used together. Use 'credentials' instead.");if(T.getOptional("token")!==void 0&&T.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 _=[{personalAccessToken:w}];E=E?.concat(_)??_}if(T.getOptional("credential")!==void 0){const _=[{organizations:T.getOptionalStringArray("credential.organizations"),token:T.getOptionalString("credential.token")?.trim(),tenantId:T.getOptionalString("credential.tenantId"),clientId:T.getOptionalString("credential.clientId"),clientSecret:T.getOptionalString("credential.clientSecret")?.trim()}];E=E?.concat(_)??_}if(!(0,s.HO)(l))throw new Error(`Invalid Azure integration config, '${l}' is not a valid host`);let Z;if(E!==void 0){const _=E?.reduce((st,jt,zt)=>{let Qt;try{L(jt)}catch(oe){Qt=oe.message}return Qt!==void 0&&st.push(`credential at position ${zt+1} ${Qt}`),st},Array.of()).concat(Object.entries(E.filter(st=>st.organizations!==void 0&&st.organizations.length>0).reduce((st,jt,zt)=>(jt.organizations?.forEach(Qt=>{st[Qt]||(st[Qt]=[]),st[Qt].push(zt+1)}),st),{})).filter(([st,jt])=>jt.length>1).reduce((st,[jt,zt])=>(st.push(`organization ${jt} is specified multiple times in credentials at positions ${zt.slice(0,zt.length-1).join(", ")} and ${zt[zt.length-1]}`),st),Array.of()));if(_?.length>0)throw new Error(`Invalid Azure integration config for ${l}: ${_.join("; ")}`);if(Z=E.map(st=>L(st)),Z.some(st=>st.kind!=="PersonalAccessToken")&&l!==O)throw new Error(`Invalid Azure integration config for ${l}, only personal access tokens can be used with hosts other than ${O}`);if(Z.filter(st=>st.organizations===void 0||st.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:Z,commitSigningKey:T.getOptionalString("commitSigningKey")}}function M(T){const l=T.map(I);return l.some(E=>E.host===O)||l.push({host:O}),l}class F{integrationConfig;static factory=({config:l})=>{const E=M(l.getOptionalConfigArray("integrations.azure")??[]);return(0,s.oS)(E.map(w=>new F(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:E,base:w}=l;if((0,s.AY)(E))return E;try{const Z=C.fromRepoUrl(w),_=new URL(w),st=new URL(`https://a.com${Z.getPath()??""}`),jt=new URL(E,st).pathname;return _.searchParams.set("path",jt),l.lineNumber&&(_.searchParams.set("line",String(l.lineNumber)),_.searchParams.set("lineEnd",String(l.lineNumber+1)),_.searchParams.set("lineStartColumn","1"),_.searchParams.set("lineEndColumn","1")),_.toString()}catch{return new URL(E,w).toString()}}resolveEditUrl(l){return l}}var W=t(52536),X=t.n(W);const z="bitbucket.org",Y="https://api.bitbucket.org/2.0";function K(T){const l=z,E=Y,w=T.getString("username"),Z=T.getString("appPassword")?.trim();return{host:l,apiBaseUrl:E,username:w,appPassword:Z,commitSigningKey:T.getOptionalString("commitSigningKey")}}function lt(T){const l=T.map(K);return l.length===0&&l.push({host:z,apiBaseUrl:Y}),l}class G{integrationConfig;static factory=({config:l})=>{const E=lt(l.getOptionalConfigArray("integrations.bitbucketCloud")??[]);return(0,s.oS)(E.map(w=>new G(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 E=(0,s.ku)(l);if(l.lineNumber){const w=new URL(E);return w.hash=`lines-${l.lineNumber}`,w.toString()}return E}resolveEditUrl(l){const E=X()(l),w=new URL(l);return w.searchParams.set("mode","edit"),w.searchParams.set("at",E.ref),w.toString()}}var Q=t(45250);const J="bitbucket.org",it="https://api.bitbucket.org/2.0";function ht(T){const l=T.getOptionalString("host")??J;let E=T.getOptionalString("apiBaseUrl");const w=T.getOptionalString("token")?.trim(),Z=T.getOptionalString("username"),_=T.getOptionalString("appPassword")?.trim();if(!(0,s.HO)(l))throw new Error(`Invalid Bitbucket integration config, '${l}' is not a valid host`);return E?E=(0,Q.trimEnd)(E,"/"):l===J?E=it:E=`https://${l}/rest/api/1.0`,{host:l,apiBaseUrl:E,token:w,username:Z,appPassword:_,commitSigningKey:T.getOptionalString("commitSigningKey")}}function mt(T){const l=T.map(ht);return l.some(E=>E.host===J)||l.push({host:J,apiBaseUrl:it}),l}class Et{integrationConfig;static factory=({config:l})=>{const E=mt(l.getOptionalConfigArray("integrations.bitbucket")??[...l.getOptionalConfigArray("integrations.bitbucketCloud")??[],...l.getOptionalConfigArray("integrations.bitbucketServer")??[]]);return(0,s.oS)(E.map(w=>new Et(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 E=(0,s.ku)(l);if(!l.lineNumber)return E;const w=new URL(E);return this.integrationConfig.host==="bitbucket.org"?w.hash=`lines-${l.lineNumber}`:w.hash=`${l.lineNumber}`,w.toString()}resolveEditUrl(l){const E=X()(l),w=new URL(l);return w.searchParams.set("mode","edit"),w.searchParams.set("spa","0"),w.searchParams.set("at",E.ref),w.toString()}}function St(T){const l=T.getString("host");let E=T.getOptionalString("apiBaseUrl");const w=T.getOptionalString("token")?.trim(),Z=T.getOptionalString("username"),_=T.getOptionalString("password");if(!(0,s.HO)(l))throw new Error(`Invalid Bitbucket Server integration config, '${l}' is not a valid host`);return E?E=(0,Q.trimEnd)(E,"/"):E=`https://${l}/rest/api/1.0`,{host:l,apiBaseUrl:E,token:w,username:Z,password:_,commitSigningKey:T.getOptionalString("commitSigningKey")}}function It(T){return T.map(St)}class dt{integrationConfig;static factory=({config:l})=>{const E=It(l.getOptionalConfigArray("integrations.bitbucketServer")??[]);return(0,s.oS)(E.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 E=(0,s.ku)(l);if(l.lineNumber){const w=new URL(E);return w.hash=l.lineNumber.toString(),w.toString()}return E}resolveEditUrl(l){return l.includes("?")?l.substring(0,l.indexOf("?")):l}}function ct(T){const l=T.getString("host");let E=T.getOptionalString("baseUrl"),w=T.getOptionalString("cloneUrl");const Z=T.getOptionalBoolean("disableEditUrl");let _=T.getString("gitilesBaseUrl");const st=T.getOptionalString("username"),jt=T.getOptionalString("password")?.trim();if((0,s.HO)(l)){if(E&&!(0,s.AY)(E))throw new Error(`Invalid Gerrit integration config, '${E}' is not a valid baseUrl`);if(w&&!(0,s.AY)(w))throw new Error(`Invalid Gerrit integration config, '${w}' is not a valid cloneUrl`);if(!(0,s.AY)(_))throw new Error(`Invalid Gerrit integration config, '${_}' is not a valid gitilesBaseUrl`)}else throw new Error(`Invalid Gerrit integration config, '${l}' is not a valid host`);return E?E=(0,Q.trimEnd)(E,"/"):E=`https://${l}`,w?w=(0,Q.trimEnd)(w,"/"):w=E,_=(0,Q.trimEnd)(_,"/"),{host:l,baseUrl:E,cloneUrl:w,disableEditUrl:Z,gitilesBaseUrl:_,username:st,password:jt,commitSigningKey:T.getOptionalString("commitSigningKey")}}function At(T){return T.map(ct)}var pt=t(1048).hp;const Ct=")]}'";function Pt(T,l){const E=new URL(T.gitilesBaseUrl),w=new URL(l),_=w.pathname.substring(w.pathname.startsWith("/a/")?2:0).replace(E.pathname,"").split("/").filter(Be=>!!Be),st=_.indexOf("+");if(st<=0)throw new Error(`Unable to parse project from url: ${l}`);const jt=trimStart(_.slice(0,st).join("/"),"/"),zt=_.indexOf("heads");if(zt<=0)throw new Error(`Unable to parse branch from url: ${l}`);const Qt=_[zt+1],oe=_.slice(zt+2).join("/");return{branch:Qt,filePath:oe===""?"/":oe,project:jt}}function at(T,l){const E=new URL(T.gitilesBaseUrl),w=new URL(l),_=(0,Q.trimStart)(w.pathname.substring(w.pathname.startsWith("/a/")?2:0).replace(E.pathname,""),"/").split("/").filter(fe=>!!fe),st=(0,Q.takeWhile)(_,fe=>fe!=="+");if(st.length===0)throw new Error(`Unable to parse gitiles url: ${l}`);const jt=_.slice(st.length+1),zt=(0,Q.join)(st,"/");if(jt.length>0&&jt[0]==="HEAD"){const fe=jt.shift(),te=(0,Q.join)(jt,"/");return{project:zt,ref:fe,refType:"head",path:te||"/",basePath:(0,Q.trimEnd)(l.replace(te,""),"/")}}if(jt.length>0&&jt[0].length===40){const fe=jt.shift(),te=(0,Q.join)(jt,"/");return{project:zt,ref:fe,refType:"sha",path:te||"/",basePath:(0,Q.trimEnd)(l.replace(te,""),"/")}}const Qt=(0,Q.join)(jt,"/"),Be=/^refs\/(?<refsReference>heads|tags)\/(?<ref>.*?)(\/|$)/.exec(Qt);if(Be){const fe=Be[0];let te;const{refsReference:ee,ref:ue}=Be.groups||{},rn=Qt.replace(fe,"");switch(ee){case"heads":te="branch";break;case"tags":te="tag";break;default:throw new Error(`Unable to parse gitiles url: ${l}`)}return{project:zt,ref:ue,refType:te,path:rn||"/",basePath:(0,Q.trimEnd)(l.replace(rn,""),"/")}}throw new Error(`Unable to parse gitiles : ${l}`)}function gt(T,l,E,w){return`${T.gitilesBaseUrl}/${l}/+/refs/heads/${E}/${trimStart(w,"/")}`}function yt(T,l,E,w){return`${T.baseUrl}/admin/repos/edit/repo/${l}/branch/refs/heads/${E}/file/${(0,Q.trimStart)(w,"/")}`}function et(T,l,E,w){const Z=w==="/"||w===""?".tar.gz":`/${w}.tar.gz`;return`${U(T)}/${l}/+archive/refs/heads/${E}${Z}`}function vt(T,l){const{path:E,ref:w,project:Z,refType:_}=at(T,l),st=E==="/"||E===""?".tar.gz":`/${E}.tar.gz`;if(_==="branch")return`${U(T)}/${Z}/+archive/refs/heads/${w}${st}`;if(_==="sha")return`${U(T)}/${Z}/+archive/${w}${st}`;throw new Error(`Unsupported gitiles ref type: ${_}`)}function rt(T){return T.password?"/a/":"/"}function U(T){if(!T.baseUrl||!T.gitilesBaseUrl)throw new Error("Unexpected Gerrit config values. baseUrl or gitilesBaseUrl not set.");if(T.gitilesBaseUrl.startsWith(T.baseUrl))return T.gitilesBaseUrl.replace(T.baseUrl.concat("/"),T.baseUrl.concat(rt(T)));if(T.password)throw new Error("Since the baseUrl (Gerrit) is not part of the gitilesBaseUrl, an authentication URL could not be constructed.");return T.gitilesBaseUrl}function V(T,l){const{branch:E,project:w}=Pt(T,l);return`${T.baseUrl}${rt(T)}projects/${encodeURIComponent(w)}/branches/${E}`}function nt(T,l){const{project:E}=Pt(T,l);return`${T.cloneUrl}${rt(T)}${E}`}function xt(T,l){const{ref:E,refType:w,path:Z,project:_}=at(T,l);if(w==="branch")return`${T.baseUrl}${rt(T)}projects/${encodeURIComponent(_)}/branches/${E}/files/${encodeURIComponent(Z)}/content`;if(w==="sha")return`${T.baseUrl}${rt(T)}projects/${encodeURIComponent(_)}/commits/${E}/files/${encodeURIComponent(Z)}/content`;throw new Error(`Unsupported gitiles ref type: ${w}`)}function ut(T){return`${T.baseUrl}${rt(T)}projects/`}function Ut(T){const l={};if(!T.password)return l;const E=pt.from(`${T.username}:${T.password}`,"utf8");return l.Authorization=`Basic ${E.toString("base64")}`,{headers:l}}async function Nt(T){const l=await T.text();if(l.startsWith(Ct))try{return JSON.parse(l.slice(Ct.length))}catch(E){throw new Error(`Invalid response from Gerrit: ${l.slice(0,10)} - ${E}`)}throw new Error(`Gerrit JSON body prefix missing. Found: ${l.slice(0,10)}`)}class kt{integrationConfig;static factory=({config:l})=>{const E=At(l.getOptionalConfigArray("integrations.gerrit")??[]);return(0,s.oS)(E.map(w=>new kt(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:E,base:w,lineNumber:Z}=l;let _;if(E.startsWith("/")){const{basePath:st}=at(this.config,w);return st+E}return E?_=new URL(E,w):_=new URL(w),Z&&(_.hash=Z.toString()),_.toString()}resolveEditUrl(l){if(this.config.disableEditUrl)return l;const E=at(this.config,l);return yt(this.config,E.project,E.ref,E.path)}}var _t=t(36021);const Wt="gitlab.com",Gt="https://gitlab.com/api/v4";function $t(T){const l=T.getString("host");let E=T.getOptionalString("apiBaseUrl");const w=T.getOptionalString("token")?.trim();let Z=T.getOptionalString("baseUrl");if(E?E=(0,Q.trimEnd)(E,"/"):l===Wt&&(E=Gt),Z?Z=(0,Q.trimEnd)(Z,"/"):Z=`https://${l}`,(0,s.HO)(l)){if(!E||!(0,s.AY)(E))throw new Error(`Invalid GitLab integration config, '${E}' is not a valid apiBaseUrl`);if(!(0,s.AY)(Z))throw new Error(`Invalid GitLab integration config, '${Z}' 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:E,baseUrl:Z,commitSigningKey:T.getOptionalString("commitSigningKey")}}function Yt(T){const l=T.map($t);return l.some(E=>E.host===Wt)||l.push({host:Wt,apiBaseUrl:Gt,baseUrl:`https://${Wt}`}),l}function le(T){let l="";return T.host!==Wt&&(l=new URL(T.baseUrl).pathname),trimEnd(l,"/")}class ge{integrationConfig;static factory=({config:l})=>{const E=Yt(l.getOptionalConfigArray("integrations.gitlab")??[]);return(0,s.oS)(E.map(w=>new ge(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,s.ku)(l)}resolveEditUrl(l){return Kt(l,"edit")}}function Kt(T,l){return T.replace(/\/\-\/(blob|tree|edit)\//,`/-/${l}/`)}function se(T){const l=T.getString("host");let E=T.getOptionalString("baseUrl");const w=T.getOptionalString("username"),Z=T.getOptionalString("password")?.trim();if((0,s.HO)(l)){if(E&&!(0,s.AY)(E))throw new Error(`Invalid Gitea integration config, '${E}' is not a valid baseUrl`)}else throw new Error(`Invalid Gitea integration config, '${l}' is not a valid host`);return E?E=(0,Q.trimEnd)(E,"/"):E=`https://${l}`,{host:l,baseUrl:E,username:w,password:Z,commitSigningKey:T.getOptionalString("commitSigningKey")}}var de=t(1048).hp;function Qe(T,l){const E=Ge(T,l);return`${E.url}/${E.owner}/${E.name}/_edit/${E.ref}/${E.path}`}function ne(T,l){const E=Ge(T,l);return`${E.url}/api/v1/repos/${E.owner}/${E.name}/contents/${E.path}?ref=${E.ref}`}function an(T,l){const E=Ge(T,l);return`${E.url}/api/v1/repos/${E.owner}/${E.name}/archive/${E.ref}.tar.gz`}function Ke(T,l){const E=Ge(T,l);return`${E.url}/api/v1/repos/${E.owner}/${E.name}/git/commits/${E.ref}`}function we(T){const l={},{username:E,password:w}=T;return w?(E?l.Authorization=`basic ${de.from(`${E}:${w}`).toString("base64")}`:l.Authorization=`token ${w}`,{headers:l}):l}function Ge(T,l){const E=T.baseUrl??`https://${T.host}`;try{const[w,Z,_,st,jt,zt,...Qt]=l.replace(E,"").split("/"),oe=Qt.join("/").replace(/^\//,"");return{url:E,owner:Z,name:_,ref:zt,path:oe}}catch(w){throw new Error(`Incorrect URL: ${l}, ${w}`)}}class re{config;static factory=({config:l})=>{const w=(l.getOptionalConfigArray("integrations.gitea")??[]).map(Z=>se(Z));return(0,s.oS)(w.map(Z=>new re(Z)),Z=>Z.config.host)};constructor(l){this.config=l}get type(){return"gitea"}get title(){return this.config.host}resolveUrl(l){return(0,s.ku)(l)}resolveEditUrl(l){return Qe(this.config,l)}}function tn(T){const l=T.getString("host"),E=T.getOptionalString("token"),w=T.getOptionalString("apiKey");if(!(0,s.HO)(l))throw new Error(`Invalid Harness Code integration config, '${l}' is not a valid host`);return{host:l,apiKey:w,token:E}}function en(T,l){const E=ze(T,l);return`${E.baseUrl}/ng/account/${E.accountId}/module/code${E.orgName!==""?`/orgs/${E.orgName}`:""}${E.projectName!==""?`/projects/${E.projectName}`:""}/repos/${E.repoName}/files/${E.branch}/~/${E.path}`}function pn(T,l){const E=ze(T,l);let w=`${E.baseUrl}/gateway/code/api/v1/repos/${E.accountId}`;return E.orgName&&(w+=`/${E.orgName}`),E.projectName&&(w+=`/${E.projectName}`),w+=`/${E.repoName}/+/raw/${E.path}?routingId=${E.accountId}&git_ref=refs/heads/${E.refString}`,w}function nn(T,l){const E=ze(T,l);let w=`${E.baseUrl}/gateway/code/api/v1/repos/${E.accountId}`;return E.orgName&&(w+=`/${E.orgName}`),E.projectName&&(w+=`/${E.projectName}`),w+=`/${E.repoName}/+/archive/${E.branch}.zip?routingId=${E.accountId}`,w}function sn(T,l){const E=ze(T,l);let w=`${E.baseUrl}/gateway/code/api/v1/repos/${E.accountId}`;return E.orgName&&(w+=`/${E.orgName}`),E.projectName&&(w+=`/${E.projectName}`),w+=`/${E.repoName}/+/content?routingId=${E.accountId}&include_commit=true&git_ref=refs/heads/${E.branch}`,w}function gn(T){const l={},{token:E,apiKey:w}=T;return w?l["x-api-key"]=w:E&&(l.Authorization=`Bearer ${E}`),{headers:l}}function ze(T,l){const E=`https://${T.host}`;try{const w=new URL(l),Z=w.pathname.split("/").filter(he=>he!==""),_=w.pathname.split("/"),st=Z.findIndex(he=>he==="account")+1,jt=Z[st],zt=Z.findIndex(he=>he==="orgs"),Qt=zt!==-1?Z[zt+1]:"",oe=Z.findIndex(he=>he==="projects"),Be=oe!==-1?Z[oe+1]:"",fe=Z.findIndex((he,Ft)=>he==="repos"&&Ft>Math.max(st,zt,oe))+1,te=Z[fe],ee=_.slice(_.findIndex(he=>he==="files"||he==="edit")+1),ue=ee.findIndex(he=>he==="~"),rn=ee.slice(0,ue).join("/"),fn=ue!==-1?ee.slice(ue+1).join("/").replace(/^\//,""):"";return{baseUrl:E,accountId:jt,orgName:Qt,projectName:Be,refString:rn,path:fn,repoName:te,refDashStr:ee.slice(0,ue).join("-"),branch:ue!==-1?ee.slice(0,ue).join("/"):ee.join("/")}}catch(w){throw new Error(`Incorrect URL: ${l}, ${w}`)}}class He{config;static factory=({config:l})=>{const w=(l.getOptionalConfigArray("integrations.harness")??[]).map(Z=>tn(Z));return(0,s.oS)(w.map(Z=>new He(Z)),Z=>Z.config.host)};constructor(l){this.config=l}get type(){return"harness"}get title(){return this.config.host}resolveUrl(l){return(0,s.ku)(l)}resolveEditUrl(l){return en(this.config,l)}}const Ve="blob.core.windows.net";function Se(T){const l=T.getOptionalString("endpoint"),E=T.getString("accountName"),w=T.getOptionalString("accountKey")?.trim(),Z=T.getOptionalString("sasToken")?.trim(),_=T.getOptionalString("connectionString")?.trim(),st=T.getOptionalString("endpointSuffix")?.trim();let jt,zt;if(l){try{const oe=new URL(l);jt=oe.host,zt=oe.pathname}catch{throw new Error(`invalid azureBlobStorage integration config, endpoint '${l}' is not a valid URL`)}if(zt!=="/")throw new Error(`invalid azureBlobStorage integration config, endpoints cannot contain path, got '${l}'`)}else jt=Ve;const Qt=T.has("aadCredential")?{clientId:T.getString("aadCredential.clientId"),tenantId:T.getString("aadCredential.tenantId"),clientSecret:T.getString("aadCredential.clientSecret")?.trim()}:void 0;if(w&&Z)throw new Error(`Invalid Azure Blob Storage config for ${E}: Both account key and SAS token cannot be used simultaneously.`);if(Qt&&(w||Z))throw new Error(`Invalid Azure Blob Storage config for ${E}: Cannot use both Azure AD credentials and account keys/SAS tokens for the same account.`);return{host:jt,endpoint:l,accountName:E,accountKey:w,sasToken:Z,connectionString:_,endpointSuffix:st,aadCredential:Qt}}function Ze(T){const l=T.map(Se);return l.some(E=>E.host===Ve)||l.push({host:Ve}),l}class Je{integrationConfig;static factory=({config:l})=>{const E=Ze(l.getOptionalConfigArray("integrations.azureBlobStorage")??[]);return(0,s.oS)(E.map(w=>new Je(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,s.ku)(l)}resolveEditUrl(l){return l}}class Ue{byType;static fromConfig(l){return new Ue({awsS3:b.factory({config:l}),awsCodeCommit:u.factory({config:l}),azureBlobStorage:Je.factory({config:l}),azure:F.factory({config:l}),bitbucket:Et.factory({config:l}),bitbucketCloud:G.factory({config:l}),bitbucketServer:dt.factory({config:l}),gerrit:kt.factory({config:l}),github:_t.U.factory({config:l}),gitlab:ge.factory({config:l}),gitea:re.factory({config:l}),harness:He.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 E=Object.values(this.byType).map(w=>w.byUrl(l)).filter(Boolean);if(E.length>1){const w=E.filter(Z=>!(Z instanceof Et));w.length!==0&&(E=w)}return E[0]}byHost(l){return Object.values(this.byType).map(E=>E.byHost(l)).find(Boolean)}resolveUrl(l){const E=this.byUrl(l.base);return E?E.resolveUrl(l):(0,s.ku)(l)}resolveEditUrl(l){const E=this.byUrl(l);return E?E.resolveEditUrl(l):l}}var $e=t(55309);class Me{static fromConfig(l){return Ue.fromConfig(l)}}const cn=(0,$e.y)({id:"integration.scmintegrations"})},36021:(H,S,t)=>{"use strict";t.d(S,{U:()=>f,F:()=>u});var s=t(59869),a=t(45250);const x="github.com",p="https://api.github.com",b="https://raw.githubusercontent.com";function h(y){const g=y.getOptionalString("host")??x;let C=y.getOptionalString("apiBaseUrl"),O=y.getOptionalString("rawBaseUrl");const P=y.getOptionalString("token")?.trim(),B=y.getOptionalConfigArray("apps")?.map(L=>({appId:L.getNumber("appId"),clientId:L.getString("clientId"),clientSecret:L.getString("clientSecret"),webhookSecret:L.getOptionalString("webhookSecret"),privateKey:L.getString("privateKey"),allowedInstallationOwners:L.getOptionalStringArray("allowedInstallationOwners")}));if(!(0,s.HO)(g))throw new Error(`Invalid GitHub integration config, '${g}' is not a valid host`);return C?C=(0,a.trimEnd)(C,"/"):g===x&&(C=p),O?O=(0,a.trimEnd)(O,"/"):g===x&&(O=b),{host:g,apiBaseUrl:C,rawBaseUrl:O,token:P,apps:B}}function d(y){const g=y.map(h);return g.some(C=>C.host===x)||g.push({host:x,apiBaseUrl:p,rawBaseUrl:b}),g}class f{integrationConfig;static factory=({config:g})=>{const C=d(g.getOptionalConfigArray("integrations.github")??[]);return(0,s.oS)(C.map(O=>new f(O)),O=>O.config.host)};constructor(g){this.integrationConfig=g}get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(g){return u((0,s.ku)(g),"tree")}resolveEditUrl(g){return u(g,"edit")}parseRateLimitInfo(g){return{isRateLimited:g.status===429||g.status===403&&g.headers.get("x-ratelimit-remaining")==="0"}}}function u(y,g){return y.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,(C,O,P,B)=>`//${O}/${P}/${B}/${g}/`)}},59869:(H,S,t)=>{"use strict";t.d(S,{AY:()=>h,HO:()=>b,ku:()=>f,oS:()=>d});var s=t(52536),a=t.n(s),x=t(45250),p=t.n(x);function b(y){const g=new URL("http://example.com");return g.host=y,g.host===y}function h(y){try{return new URL(y),!0}catch{return!1}}function d(y,g){return{list(){return y},byUrl(C){try{const O=typeof C=="string"?new URL(C):C;return y.find(P=>g(P)===O.host)}catch{return}},byHost(C){return y.find(O=>g(O)===C)}}}function f(y){const{url:g,base:C,lineNumber:O}=y;try{return new URL(g),g}catch{}let P;if(g.startsWith("/")){const{href:B,filepath:L}=a()(C);P=new URL(B);const I=(0,x.trimEnd)(P.pathname.substring(0,P.pathname.length-L.length),"/");P.pathname=`${I}${g}`}else P=new URL(g,C);return P.search=new URL(C).search,O&&(P.hash=`L${O}`),P.toString()}function u(y){beforeAll(()=>y.listen({onUnhandledRequest:"error"})),afterAll(()=>y.close()),afterEach(()=>y.resetHandlers())}},71543:(H,S,t)=>{"use strict";var s={};t.r(s),t.d(s,{TechDocsPlugin:()=>b.Ju});var a=t(31085),x=t(25873),p=t(18690),b=t(39278),h=t(8915),d=t(72020),f=t(99730),u=t(64947),y=t(12173),g=t(22020),C=t(68146),O=t(73657);function P({children:r}){return(0,p.Ri)()?(0,a.jsx)(a.Fragment,{children:r}):(0,a.jsx)(p.fS,{children:r})}const B=()=>(0,a.jsx)(y.M,{status:"404",statusMessage:"PAGE NOT FOUND"}),L=({step:r,error:e})=>{let n="";return r==="load-config"?n=`The configuration failed to load, someone should have a look at this error: ${e.message}`:r==="load-chunk"&&(n=`Lazy loaded chunk failed to load, try to reload the page: ${e.message}`),(0,a.jsx)(P,{children:(0,a.jsx)(y.M,{statusMessage:n,stack:e.stack})})},I=({error:r,resetError:e,plugin:n})=>(0,a.jsx)(g.b,{title:`Error in ${n?.getId()}`,defaultExpanded:!0,error:r,children:(0,a.jsx)(u.A,{variant:"outlined",onClick:e,children:"Retry"})}),M={Progress:C.k,Router:O.Kd,NotFoundErrorPage:B,BootErrorPage:L,ErrorBoundaryFallback:I},F="Invalid discovery URL pattern,";class W{parts;static compile(e){const n=e.split(/\{\{\s*pluginId\s*\}\}/),o=n.join("pluginId");let i;try{i=new URL(o)}catch{throw new Error(`${F} URL '${o}' is invalid`)}if(i.hash)throw new Error(`${F} URL must not have a hash`);if(i.search)throw new Error(`${F} URL must not have a query`);if(o.endsWith("/"))throw new Error(`${F} URL must not end with a slash`);return new W(n)}constructor(e){this.parts=e}async getBaseUrl(e){return this.parts.join(encodeURIComponent(e))}}class X{endpoints;defaultEndpoint;static fromConfig(e,n){const o=n?.pathPattern??"/api/{{ pluginId }}",i=e.getString("backend.baseUrl"),c=e.getOptionalConfigArray("discovery.endpoints")?.flatMap(A=>{const v=typeof A.get("target")=="object"?A.getOptionalString("target.external"):A.getString("target");if(!v)return[];const R=W.compile(v);return A.getStringArray("plugins").map($=>[$,R])});return new X(new Map(c),W.compile(`${i}${o}`))}constructor(e,n){this.endpoints=e,this.defaultEndpoint=n}async getBaseUrl(e){const n=this.endpoints.get(e);return n?n.getBaseUrl(e):this.defaultEndpoint.getBaseUrl(e)}}var z=t(96403),Y=t.n(z);class K{isClosed=!1;terminatingError;observable=new(Y())(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(n=>n.next(e))}error(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(n=>n.error(e))}complete(){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,n,o){const i=typeof e=="function"?{next:e,error:n,complete:o}:e;return this.observable.subscribe(i)}}class lt{isClosed;currentValue;terminatingError;observable;constructor(e){this.isClosed=!1,this.currentValue=e,this.terminatingError=void 0,this.observable=new(Y())(n=>this.isClosed?(this.terminatingError?n.error(this.terminatingError):n.complete(),()=>{}):(n.next(this.currentValue),this.subscribers.add(n),()=>{this.subscribers.delete(n)}))}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(n=>n.next(e))}error(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(n=>n.error(e))}complete(){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,n,o){const i=typeof e=="function"?{next:e,error:n,complete:o}:e;return this.observable.subscribe(i)}}class G{subject=new K;post(e){this.subject.next(e)}alert$(){return this.subject}}class Q{captureEvent(e){}}class J{alertApi;errorApi;constructor(e,n){this.alertApi=e,this.errorApi=n}post(e,n){return n?.hidden||this.alertApi.post({message:e.message,severity:"error"}),this.errorApi.post(e,n)}error$(){return this.errorApi.error$()}}class it{subject=new K;post(e,n){this.subject.next({error:e,context:n})}error$(){return this.subject}}class ht{static forward(e,n){window.addEventListener("unhandledrejection",o=>{e.post(o.reason,n)})}}const mt=new Map;class Et{namespace;errorApi;constructor(e,n){this.namespace=e,this.errorApi=n,this.subscribers=new Set,this.observable=new(Y())(o=>(this.subscribers.add(o),()=>{this.subscribers.delete(o)}))}static hasSubscribed=!1;static create(e){return new Et(e.namespace??"",e.errorApi)}static addStorageEventListener(){window.addEventListener("storage",e=>{for(const[n,o]of mt.entries())e.key?.startsWith(n)&&o.handleStorageChange(e.key)})}get(e){return this.snapshot(e).value}snapshot(e){let n,o="absent";try{const i=localStorage.getItem(this.getKeyName(e));i&&(n=JSON.parse(i,(c,A)=>(typeof A=="object"&&A!==null&&Object.freeze(A),A)),o="present")}catch{this.errorApi.post(new Error(`Error when parsing JSON config from storage for: ${e}`))}return{key:e,value:n,presence:o}}forBucket(e){const n=`${this.namespace}/${e}`;return mt.has(n)||mt.set(n,new Et(n,this.errorApi)),mt.get(n)}async set(e,n){localStorage.setItem(this.getKeyName(e),JSON.stringify(n)),this.notifyChanges(e)}async remove(e){localStorage.removeItem(this.getKeyName(e)),this.notifyChanges(e)}observe$(e){return Et.hasSubscribed||(Et.addStorageEventListener(),Et.hasSubscribed=!0),this.observable.filter(({key:n})=>n===e)}handleStorageChange(e){if(!e?.startsWith(this.namespace))return;const n=e?.slice(`${this.namespace}/`.length);n.includes("/")||this.notifyChanges(decodeURIComponent(n))}getKeyName(e){return`${this.namespace}/${encodeURIComponent(e)}`}notifyChanges(e){const n=this.snapshot(e);for(const o of this.subscribers)o.next(n)}subscribers;observable}function St(r){let e=r.baseImplementation||t.g.fetch;const n=[r.middleware??[]].flat().reverse();for(const o of n)e=o.apply(e);return{fetch:e}}class It{identityApi;allowUrl;headerName;headerValue;static create(e){const n=dt(e),o=e.header?.name||"authorization",i=e.header?.value||(c=>`Bearer ${c}`);return new It(e.identityApi,n,o,i)}static getDiscoveryUrlPrefixes(e){return(e.getOptionalConfigArray("discovery.endpoints")||[]).flatMap(o=>{const i=typeof o.get("target")=="object"?o.getString("target.external"):o.getString("target");return o.getStringArray("plugins").map(A=>i.replace(/\{\{\s*pluginId\s*\}\}/g,A))})}constructor(e,n,o,i){this.identityApi=e,this.allowUrl=n,this.headerName=o,this.headerValue=i}apply(e){return async(n,o)=>{const i=new Request(n,o),{token:c}=await this.identityApi.getCredentials();return i.headers.get(this.headerName)||typeof c!="string"||!c||!this.allowUrl(i.url)?e(n,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"),...It.getDiscoveryUrlPrefixes(r.config)]):()=>!1}function ct(r){const e=r.map(n=>n.replace(/\/$/,""));return n=>e.some(o=>n===o||n.startsWith(`${o}/`))}function At(r,e){return!e||e==="/"?r:`${r.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}class pt{discoveryApi;constructor(e){this.discoveryApi=e}apply(e){return async(n,o)=>{const i=new Request(n,o),c="plugin://";if(!i.url.startsWith(c))return e(n,o);const{hostname:A,pathname:v,search:R,hash:$,username:tt,password:ft}=new URL(`http://${i.url.substring(c.length)}`);let bt=await this.discoveryApi.getBaseUrl(A);if(tt||ft){const Mt=new URL(bt),Jt=`${tt}${ft?`:${ft}`:""}@`;bt=`${Mt.protocol}//${Jt}${Mt.host}${Mt.pathname}`}const Ot=`${At(bt,v)}${R}${$}`;return e(Ot,typeof n=="string"||Ct(n)?o:n)}}}function Ct(r){return typeof r=="object"&&r?.constructor===URL}class Pt{static resolvePluginProtocol(e){return new pt(e.discoveryApi)}static injectIdentityAuth(e){return It.create(e)}constructor(){}}function at(r,e){for(const n of e)if(!r.has(n))return!1;return!0}function gt(r,...e){const n=new Set(r);for(const o of e)for(const i of o)n.add(i);return n}class yt{requests=[];subject=new lt(this.getCurrentPending());request(e){return new Promise((n,o)=>{this.requests.push({scopes:e,resolve:n,reject:o}),this.subject.next(this.getCurrentPending())})}resolve(e,n){this.requests=this.requests.filter(o=>at(e,o.scopes)?(o.resolve(n),!1):!0),this.subject.next(this.getCurrentPending())}reject(e){this.requests.forEach(n=>n.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((n,o)=>gt(n,o.scopes),this.requests[0].scopes);return{scopes:e,resolve:n=>{e&&this.resolve(e,n)},reject:n=>{e&&this.reject(n)}}}}class et{subject=new K;currentRequests=[];handlerCount=0;createAuthRequester(e){const n=new yt,o=this.handlerCount;return this.handlerCount++,n.pending().subscribe({next:i=>{const c=this.currentRequests.slice(),A=this.makeAuthRequest(i,e);A?c[o]=A:delete c[o],this.currentRequests=c,this.subject.next(c.filter(Boolean))}}),i=>n.request(i)}makeAuthRequest(e,n){const{scopes:o}=e;if(o)return{provider:n.provider,trigger:async()=>{const i=await n.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,n)=>{const o=r.width||500,i=r.height||700,c=window.screen.width/2-o/2,A=window.screen.height/2-i/2,v=new URL(r.url).origin,R=window.open(r.url,r.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${o},height=${i},top=${A},left=${c}`);let $="";if(!R||typeof R.closed>"u"||R.closed){const Ot=new Error("Failed to open auth popup.");Ot.name="PopupRejectedError",n(Ot);return}const tt=Ot=>{if(Ot.source!==R||Ot.origin!==v)return;const{data:Mt}=Ot;if(Mt.type==="config_info"){$=Mt.targetOrigin;return}if(Mt.type!=="authorization_response")return;const Jt=Mt;if("error"in Jt){const ye=new Error(Jt.error.message);ye.name=Jt.error.name,n(ye)}else e(Jt.response);bt()},ft=setInterval(()=>{if(R.closed){const Ot=`Login failed, ${$&&$!==window.location.origin?`Incorrect app origin, expected ${$}`:"popup was closed"}`,Mt=new Error(Ot);Mt.name="PopupClosedError",n(Mt),bt()}},100);function bt(){window.removeEventListener("message",tt),clearInterval(ft)}window.addEventListener("message",tt)})}let rt=!1;function U(r){return[...r].join(" ")}class V{discoveryApi;environment;provider;joinScopesFunc;authRequester;sessionTransform;enableExperimentalRedirectFlow;popupOptions;constructor(e){const{configApi:n,discoveryApi:o,environment:i,provider:c,joinScopes:A=U,oauthRequestApi:v,sessionTransform:R=tt=>tt,popupOptions:$}=e;!rt&&!n&&(console.warn("DEPRECATION WARNING: Authentication providers require a configApi instance to configure the authentication flow. Please provide one to the authentication provider constructor."),rt=!0),this.enableExperimentalRedirectFlow=n?n.getOptionalBoolean("enableExperimentalRedirectFlow")??!1:!1,this.authRequester=v.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=A,this.sessionTransform=R,this.popupOptions=$}async createSession(e){return e.instantPopup?this.enableExperimentalRedirectFlow?this.executeRedirect(e.scopes):this.showPopup(e.scopes):this.authRequester(e.scopes)}async refreshSession(e){const n=await fetch(await this.buildUrl("/refresh",{optional:!0,...e&&{scope:this.joinScopesFunc(e.scopes)}}),{headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(i=>{throw new Error(`Auth refresh request failed, ${i}`)});if(!n.ok){const i=new Error(`Auth refresh request failed, ${n.statusText}`);throw i.status=n.status,i}const o=await n.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(n=>{throw new Error(`Logout request failed, ${n}`)});if(!e.ok){const n=new Error(`Logout request failed, ${e.statusText}`);throw n.status=e.status,n}}async showPopup(e){const n=this.joinScopesFunc(e),o=await this.buildUrl("/start",{scope:n,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,A=await vt({url:o,name:`${this.provider.title} Login`,width:i,height:c});return await this.sessionTransform(A)}async executeRedirect(e){const n=this.joinScopesFunc(e);return window.location.href=await this.buildUrl("/start",{scope:n,origin:window.location.origin,redirectUrl:window.location.href,flow:"redirect"}),new Promise(()=>{})}async buildUrl(e,n){const o=await this.discoveryApi.getBaseUrl("auth"),i=this.buildQueryString({...n,env:this.environment});return`${o}/${this.provider.id}${e}${i}`}buildQueryString(e){if(!e)return"";const n=Object.entries(e).map(([o,i])=>{if(typeof i=="string")return`${encodeURIComponent(o)}=${encodeURIComponent(i)}`;if(i)return encodeURIComponent(o)}).filter(Boolean).join("&");return n?`?${n}`:""}}function nt(r,e){for(const n of e)if(!r.has(n))return!1;return!0}class xt{options;constructor(e){this.options=e}sessionExistsAndHasScope(e,n){if(!e)return!1;if(!n||this.options.sessionScopes===void 0)return!0;const o=this.options.sessionScopes(e);return nt(o,n)}getExtendedScope(e,n){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(n)for(const i of n)o.add(i);return o}}var ut=t(55309),Ut=function(r){return r.SignedIn="SignedIn",r.SignedOut="SignedOut",r}({});const Nt=(0,ut.y)({id:"core.auth.google"}),kt=(0,ut.y)({id:"core.auth.github"}),_t=(0,ut.y)({id:"core.auth.okta"}),Wt=(0,ut.y)({id:"core.auth.gitlab"}),Gt=(0,ut.y)({id:"core.auth.microsoft"}),$t=(0,ut.y)({id:"core.auth.onelogin"}),Yt=(0,ut.y)({id:"core.auth.bitbucket"}),le=(0,ut.y)({id:"core.auth.bitbucket-server"}),ge=(0,ut.y)({id:"core.auth.atlassian"}),Kt=(0,ut.y)({id:"core.auth.vmware-cloud"});class se{subject=new lt(Ut.SignedOut);signedIn=!1;setIsSignedIn(e){this.signedIn!==e&&(this.signedIn=e,this.subject.next(this.signedIn?Ut.SignedIn:Ut.SignedOut))}sessionState$(){return this.subject}}class de{connector;helper;sessionScopesFunc;sessionShouldRefreshFunc;stateTracker=new se;refreshPromise;currentSession;constructor(e){const{connector:n,defaultScopes:o=new Set,sessionScopes:i,sessionShouldRefresh:c}=e;this.connector=n,this.sessionScopesFunc=i,this.sessionShouldRefreshFunc=c,this.helper=new xt({sessionScopes:i,defaultScopes:o})}async getSession(e){let n=!1;if(this.helper.sessionExistsAndHasScope(this.currentSession,e.scopes)){if(!this.sessionShouldRefreshFunc(this.currentSession))return this.currentSession;n=!0;try{const i=await this.collapsedSessionRefresh(e.scopes),c=this.sessionScopesFunc(this.currentSession),A=this.sessionScopesFunc(i);return nt(A,c)&&(this.currentSession=i),i}catch{if(this.removeLocalSession(),e.optional)return}}if(!n)try{const o=await this.collapsedSessionRefresh(e.scopes);return this.currentSession=o,this.getSession(e)}catch{this.removeLocalSession()}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}removeLocalSession(){this.currentSession=void 0,this.stateTracker.setIsSignedIn(!1)}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({scopes:this.helper.getExtendedScope(this.currentSession,e)});try{const n=await this.refreshPromise;if(!this.helper.sessionExistsAndHasScope(n,e))throw new Error("Refreshed session did not receive the required scopes");return this.stateTracker.setIsSignedIn(!0),n}finally{delete this.refreshPromise}}}const Qe={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class ne{static createAuthConnector(e){if("authConnector"in e)return e.authConnector;const{scopeTransform:n=$=>$,configApi:o,discoveryApi:i,environment:c="development",provider:A=Qe,oauthRequestApi:v,popupOptions:R}=e;return new V({configApi:o,discoveryApi:i,environment:c,provider:A,oauthRequestApi:v,sessionTransform({backstageIdentity:$,...tt}){const ft={...tt,providerInfo:{idToken:tt.providerInfo.idToken,accessToken:tt.providerInfo.accessToken,scopes:ne.normalizeScopes(tt.providerInfo.scope,{scopeTransform:n}),expiresAt:tt.providerInfo.expiresInSeconds?new Date(Date.now()+tt.providerInfo.expiresInSeconds*1e3):void 0}};return $&&(ft.backstageIdentity={token:$.token,identity:$.identity,expiresAt:$.expiresInSeconds?new Date(Date.now()+$.expiresInSeconds*1e3):void 0}),ft},popupOptions:R})}static create(e){const{defaultScopes:n=[],scopeTransform:o=A=>A}=e,i=ne.createAuthConnector(e),c=new de({connector:i,defaultScopes:new Set(n),sessionScopes:A=>A.providerInfo.scopes,sessionShouldRefresh:A=>{let v=1/0;return A.providerInfo?.expiresAt&&(v=Math.min(v,(A.providerInfo.expiresAt.getTime()-Date.now())/1e3)),A.backstageIdentity?.expiresAt&&(v=Math.min(v,(A.backstageIdentity.expiresAt.getTime()-Date.now())/1e3)),v<60*3}});return new ne({sessionManager:c,scopeTransform:o})}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,n){const o=ne.normalizeScopes(e,{scopeTransform:this.scopeTransform});return(await this.sessionManager.getSession({...n,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,n){if(!e)return new Set;const o=Array.isArray(e)?e:e.split(/[\s|,]/).filter(Boolean),i=n?n.scopeTransform(o):o;return new Set(i)}}const an={id:"google",title:"Google",icon:()=>null},Ke="https://www.googleapis.com/auth/";class we{static create(e){const{configApi:n,discoveryApi:o,oauthRequestApi:i,environment:c="development",provider:A=an,defaultScopes:v=["openid",`${Ke}userinfo.email`,`${Ke}userinfo.profile`]}=e;return ne.create({configApi:n,discoveryApi:o,oauthRequestApi:i,provider:A,environment:c,defaultScopes:v,scopeTransform(R){return R.map($=>$==="openid"?$:$==="profile"||$==="email"?`${Ke}userinfo.${$}`:$.startsWith(Ke)?$:`${Ke}${$}`)}})}}const Ge={id:"microsoft",title:"Microsoft",icon:()=>null};class re{oauth2;configApi;environment;provider;oauthRequestApi;discoveryApi;scopeTransform;static MicrosoftGraphID="00000003-0000-0000-c000-000000000000";static create(e){return new re(e)}constructor(e){const{configApi:n,environment:o="development",provider:i=Ge,oauthRequestApi:c,discoveryApi:A,defaultScopes:v=["openid","offline_access","profile","email","User.Read"],scopeTransform:R=$=>$.concat("offline_access")}=e;this.configApi=n,this.environment=o,this.provider=i,this.oauthRequestApi=c,this.discoveryApi=A,this.scopeTransform=R,this.oauth2={[re.MicrosoftGraphID]:ne.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform,defaultScopes:v})}}microsoftGraph(){return this.oauth2[re.MicrosoftGraphID]}static resourceForScopes(e){const n=[...new Set(e.split(" ").map(re.resourceForScope).filter(i=>i!=="openid"))];if(n.length>1)return Promise.reject(new Error(`Requested access token with scopes from multiple Azure resources: ${n.join(", ")}. Access tokens can only have a single audience.`));const o=n[0]??re.MicrosoftGraphID;return Promise.resolve(o)}static resourceForScope(e){const n=e.match(/^(?<resourceURI>.*)\/(?<scp>[^\/]*)$/)?.groups;if(n){const{resourceURI:o}=n;return o.replace(/^api:\/\//,"")}switch(e){case"email":case"openid":case"offline_access":case"profile":return"openid";default:return re.MicrosoftGraphID}}async getAccessToken(e,n){const o=e===void 0?re.MicrosoftGraphID:await re.resourceForScopes(Array.isArray(e)?e.join(" "):e);return o in this.oauth2||(this.oauth2[o]=ne.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform})),this.oauth2[o].getAccessToken(e,n)}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 tn={id:"github",title:"GitHub",icon:()=>null};class en{static create(e){const{configApi:n,discoveryApi:o,environment:i="development",provider:c=tn,oauthRequestApi:A,defaultScopes:v=["read:user"]}=e;return ne.create({configApi:n,discoveryApi:o,oauthRequestApi:A,provider:c,environment:i,defaultScopes:v})}}const pn={id:"okta",title:"Okta",icon:()=>null},nn=new Set(["openid","profile","email","phone","address","groups","offline_access"]),sn="okta.";class gn{static create(e){const{configApi:n,discoveryApi:o,environment:i="development",provider:c=pn,oauthRequestApi:A,defaultScopes:v=["openid","email","profile","offline_access"]}=e;return ne.create({configApi:n,discoveryApi:o,oauthRequestApi:A,provider:c,environment:i,defaultScopes:v,scopeTransform(R){return R.map($=>nn.has($)||$.startsWith(sn)?$:`${sn}${$}`)}})}}const ze={id:"gitlab",title:"GitLab",icon:()=>null};class He{static create(e){const{configApi:n,discoveryApi:o,environment:i="development",provider:c=ze,oauthRequestApi:A,defaultScopes:v=["read_user"]}=e;return ne.create({configApi:n,discoveryApi:o,oauthRequestApi:A,provider:c,environment:i,defaultScopes:v})}}const Ve={id:"onelogin",title:"onelogin",icon:()=>null},Se=new Set(["openid","profile","email","phone","address","groups","offline_access"]),Ze="onelogin.";class Je{static create(e){const{configApi:n,discoveryApi:o,environment:i="development",provider:c=Ve,oauthRequestApi:A}=e;return ne.create({configApi:n,discoveryApi:o,oauthRequestApi:A,provider:c,environment:i,defaultScopes:["openid","email","profile","offline_access"],scopeTransform(v){return v.map(R=>Se.has(R)||R.startsWith(Ze)?R:`${Ze}${R}`)}})}}const Ue={id:"bitbucket",title:"Bitbucket",icon:()=>null};class $e{static create(e){const{configApi:n,discoveryApi:o,environment:i="development",provider:c=Ue,oauthRequestApi:A,defaultScopes:v=["account"]}=e;return ne.create({configApi:n,discoveryApi:o,oauthRequestApi:A,provider:c,environment:i,defaultScopes:v})}}const Me={id:"bitbucketServer",title:"Bitbucket Server",icon:()=>null};class cn{static create(e){const{configApi:n,discoveryApi:o,environment:i="development",provider:c=Me,oauthRequestApi:A,defaultScopes:v=["PROJECT_ADMIN"]}=e;return ne.create({configApi:n,discoveryApi:o,oauthRequestApi:A,provider:c,environment:i,defaultScopes:v})}}const T={id:"atlassian",title:"Atlassian",icon:()=>null};class l{static create(e){const{configApi:n,discoveryApi:o,environment:i="development",provider:c=T,oauthRequestApi:A}=e;return ne.create({configApi:n,discoveryApi:o,oauthRequestApi:A,provider:c,environment:i})}}const E={id:"vmwareCloudServices",title:"VMware Cloud",icon:()=>null};class w{static create(e){const{configApi:n,discoveryApi:o,oauthRequestApi:i,environment:c="development",provider:A=E,defaultScopes:v=["openid"]}=e;return ne.create({configApi:n,discoveryApi:o,oauthRequestApi:i,provider:A,environment:c,defaultScopes:v})}}var Z=t(12935),_=t(57405),st=t(65461),jt=t(36017),zt=t(99303),Qt=t(39837);const oe=(0,ut.y)({id:"core.storage"});var Be=t(70795),fe=t(16009);const te=(0,ut.y)({id:"core.oauthrequest"});var ee=t(96824),ue=t(70835),rn=t(10288),fn=t.n(rn),he=t(20938),Ft=t(7578),Fe=t(54241),Ln=t(13646);const mn=Ft.z.lazy(()=>Ft.z.object({rule:Ft.z.string(),resourceType:Ft.z.string(),params:Ft.z.record(Ft.z.any()).optional()}).or(Ft.z.object({anyOf:Ft.z.array(mn).nonempty()})).or(Ft.z.object({allOf:Ft.z.array(mn).nonempty()})).or(Ft.z.object({not:mn}))),Mn=Ft.z.object({result:Ft.z.literal(Fe.b.ALLOW).or(Ft.z.literal(Fe.b.DENY))}),cs=Ft.z.object({result:Ft.z.array(Ft.z.union([Ft.z.literal(Fe.b.ALLOW),Ft.z.literal(Fe.b.DENY)]))}).or(Mn),ls=Ft.z.union([Ft.z.object({result:Ft.z.literal(Fe.b.ALLOW).or(Ft.z.literal(Fe.b.DENY))}),Ft.z.object({result:Ft.z.literal(Fe.b.CONDITIONAL),pluginId:Ft.z.string(),resourceType:Ft.z.string(),conditions:mn})]),Vs=(r,e)=>Ft.z.object({items:Ft.z.array(Ft.z.intersection(Ft.z.object({id:Ft.z.string()}),r)).refine(n=>n.length===e.size&&n.every(({id:o})=>e.has(o)),{message:"Items in response do not match request"})});class ds{enabled;discovery;enableBatchedRequests;constructor(e){this.discovery=e.discovery,this.enabled=e.config.getOptionalBoolean("permission.enabled")??!1,this.enableBatchedRequests=e.config.getOptionalBoolean("permission.EXPERIMENTAL_enableBatchedRequests")??!1}async authorize(e,n){return this.enabled?this.enableBatchedRequests?this.makeBatchedRequest(e,n):this.makeRequest(e,Mn,n):e.map(o=>({result:Fe.b.ALLOW}))}async authorizeConditional(e,n){return this.enabled?this.makeRequest(e,ls,n):e.map(o=>({result:Fe.b.ALLOW}))}async makeRequest(e,n,o){const i={items:e.map(v=>({id:he.A(),...v}))},A=(await this.makeRawRequest(i,n,o)).items.reduce((v,R)=>(v[R.id]=R,v),{});return i.items.map(v=>A[v.id])}async makeBatchedRequest(e,n){const o={};for(const A of e){const{permission:v,resourceRef:R}=A;(0,Ln.OL)(v)?(o[v.name]||={permission:v,resourceRef:[],id:he.A()},R&&o[v.name].resourceRef?.push(R)):o[v.name]||={permission:v,id:he.A()}}const c=(await this.makeRawRequest({items:Object.values(o)},cs,n)).items.reduce((A,v)=>(A[v.id]=v,A),{});return e.map(A=>{const{id:v}=o[A.permission.name],R=c[v];return Array.isArray(R.result)?{result:A.resourceRef?R.result.shift():R.result[0]}:{result:R.result}})}async makeRawRequest(e,n,o){const i=await this.discovery.getBaseUrl("permission"),c=await fn()(`${i}/authorize`,{method:"POST",body:JSON.stringify(e),headers:{...this.getAuthorizationHeader(o?.token),"content-type":"application/json"}});if(!c.ok)throw await ue.o.fromResponse(c);const A=await c.json();return Vs(n,new Set(e.items.map(({id:v})=>v))).parse(A)}getAuthorizationHeader(e){return e?{Authorization:`Bearer ${e}`}:{}}}class bn{permissionClient;identityApi;constructor(e,n){this.permissionClient=e,this.identityApi=n}static create(e){const{config:n,discovery:o,identity:i}=e,c=new ds({discovery:o,config:n});return new bn(c,i)}async authorize(e){return(await this.permissionClient.authorize([e],await this.identityApi.getCredentials()))[0]}}const us=[(0,Z.b)({api:_.I,deps:{configApi:st.U},factory:({configApi:r})=>X.fromConfig(r)}),(0,Z.b)({api:jt.k,deps:{},factory:()=>new G}),(0,Z.b)({api:zt.c,deps:{},factory:()=>new Q}),(0,Z.b)({api:Qt.m,deps:{alertApi:jt.k},factory:({alertApi:r})=>{const e=new J(r,new it);return ht.forward(e,{hidden:!1}),e}}),(0,Z.b)({api:oe,deps:{errorApi:Qt.m},factory:({errorApi:r})=>Et.create({errorApi:r})}),(0,Z.b)({api:Be.a,deps:{configApi:st.U,identityApi:fe.K,discoveryApi:_.I},factory:({configApi:r,identityApi:e,discoveryApi:n})=>St({middleware:[Pt.resolvePluginProtocol({discoveryApi:n}),Pt.injectIdentityAuth({identityApi:e,config:r})]})}),(0,Z.b)({api:te,deps:{},factory:()=>new et}),(0,Z.b)({api:Nt,deps:{discoveryApi:_.I,oauthRequestApi:te,configApi:st.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>we.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Z.b)({api:Gt,deps:{discoveryApi:_.I,oauthRequestApi:te,configApi:st.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>re.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Z.b)({api:kt,deps:{discoveryApi:_.I,oauthRequestApi:te,configApi:st.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>en.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["read:user"],environment:n.getOptionalString("auth.environment")})}),(0,Z.b)({api:_t,deps:{discoveryApi:_.I,oauthRequestApi:te,configApi:st.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>gn.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Z.b)({api:Wt,deps:{discoveryApi:_.I,oauthRequestApi:te,configApi:st.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>He.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Z.b)({api:$t,deps:{discoveryApi:_.I,oauthRequestApi:te,configApi:st.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Je.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Z.b)({api:Yt,deps:{discoveryApi:_.I,oauthRequestApi:te,configApi:st.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>$e.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["account"],environment:n.getOptionalString("auth.environment")})}),(0,Z.b)({api:le,deps:{discoveryApi:_.I,oauthRequestApi:te,configApi:st.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>cn.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["REPO_READ"],environment:n.getOptionalString("auth.environment")})}),(0,Z.b)({api:ge,deps:{discoveryApi:_.I,oauthRequestApi:te,configApi:st.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>l.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Z.b)({api:Kt,deps:{discoveryApi:_.I,oauthRequestApi:te,configApi:st.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>w.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Z.b)({api:ee.x,deps:{discovery:_.I,identity:fe.K,config:st.U},factory:({config:r,discovery:e,identity:n})=>bn.create({config:r,discovery:e,identity:n})})];var Bn=t(14451),jn=t(27799),Un=t(94389),hs=t(20947),ps=t(20473),$n=t(45917),gs=t(39347),Fn=t(63309),yn=t(82451),fs=t(85121),Nn=t(17400),ms=t(42226),ys=t(69550),kn=t(52755),Wn=t(89350),vs=t(8911),Sn=t(33602),On=t(48108),Es=t(77225),Kn=t(55700),zn=t(71865),As=t(80109),xs=t(15303),Cs=t(39330);const bs={brokenImage:jn.A,catalog:vs.A,scaffolder:hs.A,techdocs:ps.A,search:$n.A,chat:gs.A,dashboard:Fn.A,docs:yn.A,email:fs.A,github:ms.A,group:Sn.A,help:ys.A,"kind:api":Nn.A,"kind:component":Wn.A,"kind:domain":Bn.A,"kind:group":Sn.A,"kind:location":kn.A,"kind:system":Un.A,"kind:user":On.A,"kind:resource":Kn.A,"kind:template":zn.A,user:On.A,warning:Es.A,star:As.A,unstarred:xs.A,externalLink:Cs.A};var Tt=t(14041),Ss=t(58733),Os=t(55288),Ps=t(91360),Ts=t(50868),Rs=t(12285),ws=t(87271),Hn=t(64636);Hn.A.configure(r=>`v5-${r}`);const Is=(0,Os.A)({productionPrefix:"jss4-"});function Vn(r){const{children:e,theme:n,noCssBaseline:o=!1}=r,i=n.getTheme("v4"),c=n.getTheme("v5"),A=i?i.palette.type:c?.palette.mode,v="backstage";(0,Tt.useEffect)(()=>(document.body.setAttribute("data-theme-mode",A),document.body.setAttribute("data-theme-name",v),()=>{document.body.removeAttribute("data-theme-mode"),document.body.removeAttribute("data-theme-name")}),[A,v]);let R;o||(R=(0,a.jsx)(Ss.Ay,{}));let $=(0,a.jsxs)(a.Fragment,{children:[R,e]});return i&&($=(0,a.jsx)(Ps.Ay,{generateClassName:Is,children:(0,a.jsx)(Ts.A,{theme:i,children:$})})),c&&($=(0,a.jsx)(Rs.A,{injectFirst:!0,children:(0,a.jsx)(ws.A,{theme:c,children:$})})),$}const Gn={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 Ds=t(98392),Ls=t(17161);const Ne={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")`},Ie={darkGrey:["#171717","#383838"],marineBlue:["#006D8F","#0049A1"],veryBlue:["#0027AF","#270094"],rubyRed:["#98002B","#8D1134"],toastyOrange:["#BE2200","#A41D00"],purpleSky:["#8912CA","#3E00EA"],eveningSea:["#00CFC5","#035355"],teal:["#005B4B"],pinkSea:["#C8077A","#C2297D"],greens:["#4BB8A5","#187656"]};function ke(r){const{colors:e,shape:n,options:o}=r,c=`linear-gradient(90deg, ${(e.length===1?[e[0],e[0]]:e).join(", ")})`,A=`${n}, ${c}`,v=o?.fontColor??"#FFFFFF";return{colors:e,shape:n,backgroundImage:A,fontColor:v}}const Pn={home:ke({colors:Ie.teal,shape:Ne.wave}),documentation:ke({colors:Ie.pinkSea,shape:Ne.wave2}),tool:ke({colors:Ie.purpleSky,shape:Ne.round}),service:ke({colors:Ie.marineBlue,shape:Ne.wave}),website:ke({colors:Ie.veryBlue,shape:Ne.wave}),library:ke({colors:Ie.rubyRed,shape:Ne.wave}),other:ke({colors:Ie.darkGrey,shape:Ne.wave}),app:ke({colors:Ie.toastyOrange,shape:Ne.wave}),apis:ke({colors:Ie.teal,shape:Ne.wave2}),card:ke({colors:Ie.greens,shape:Ne.wave})},Yn=16,Qn='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif',Ms="home",Zn={htmlFontSize:Yn,fontFamily:Qn,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 m(r){const{palette:e,htmlFontSize:n=Yn,fontFamily:o=Qn,defaultPageTheme:i=Ms,pageTheme:c=Pn,typography:A}=r;if(!c[i])throw new Error(`${i} is not defined in pageTheme.`);return Zn.htmlFontSize=n,Zn.fontFamily=o,{palette:e,typography:A??Zn,page:c[i],getPageTheme:({themeId:v})=>c[v]??c[i]}}var D=t(80012);const j={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,D.a)(r.palette.textVerySubtle,.2):(0,D.e$)(r.palette.textVerySubtle,.2)},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:r.palette.mode==="dark"?(0,D.a)(r.palette.textVerySubtle,.2):(0,D.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,D.e$)(r.palette.link,.3),background:(0,D.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"},"&:focus svg":{opacity:.5},"&.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"}}},MuiMenuItem:{styleOverrides:{root:({theme:r})=>({"&:focus":{backgroundColor:r.palette.action.focus}})}}},N=r=>(...e)=>{const n=e.length===0?[1]:e,o=(i,c)=>typeof i=="string"?i:c*i;return n.map(i=>{const c=o(i,r);return typeof c=="number"?`${c}px`:c}).join(" ")};function k(r,e){if(!e||typeof e=="string")return;const n=typeof e=="function"?e(r):e;if(n)return{"@global":n}}function q(r,e){if(!(!e||typeof e=="string")){if(typeof e=="object"){const n={...r},o=r.spacing(1);return typeof o=="number"&&(n.spacing=N(o)),Object.fromEntries(Object.entries(e).map(([i,c])=>typeof c=="function"?[i,c({theme:n})]:[i,c]))}return e}}const ot=/^&.Mui-([\w-]+)$/;function Rt(r){let e=r;if(!r||typeof r!="object")return e;for(const n of Object.keys(r)){const o=r[n];if(!(!o||typeof o!="object"))for(const i of Object.keys(o)){const c=i,A=c.match(ot);if(A){const[,v]=A,{[c]:R,...$}=o;R&&(e={...e,[n]:$,[v]:R})}}}return e}function wt(r,e={}){const n={},o={};for(const i of Object.keys(e)){const c=e[i];c&&("styleOverrides"in c&&(i==="MuiCssBaseline"?n[i]=k(r,c.styleOverrides):n[i]=Rt(q(r,c.styleOverrides))),"defaultProps"in c&&(o[i]=c.defaultProps))}return{overrides:n,props:o}}class Lt{#t=new Map;constructor(e,n){this.#t=new Map,e&&this.#t.set("v4",e),n&&this.#t.set("v5",n)}getTheme(e){return this.#t.get(e)}}function Dt(r){const e=m(r),n={...j,...r.components},o=(0,Ls.A)({...e,components:n}),i=wt(o,n),c={...(0,Ds.A)(e),...i};return new Lt(c,o)}function Ht(r){const e=adaptV4Theme(r),n=createTheme(r);return new Lt(n,createV5Theme(e))}const Xt={light:Dt({palette:Gn.light}),dark:Dt({palette:Gn.dark})};var me=t(75962),pe=t(87145);const Bt=[{id:"light",title:"Light Theme",variant:"light",icon:(0,a.jsx)(pe.A,{}),Provider:({children:r})=>(0,a.jsx)(Vn,{theme:Xt.light,children:r})},{id:"dark",title:"Dark Theme",variant:"dark",icon:(0,a.jsx)(me.A,{}),Provider:({children:r})=>(0,a.jsx)(Vn,{theme:Xt.dark,children:r})}];var Oe=t(73466),ve=t(39067),Vt=t.n(ve);class Zt{holders;constructor(...e){this.holders=e}get(e){for(const n of this.holders){const o=n.get(e);if(o)return o}}}var ce=t(43836),Ee=t(10602);const ae=(0,ce.tK)("api-context"),ie=r=>{const{apis:e,children:n}=r,o=(0,Tt.useContext)(ae)?.atVersion(1),i=o?new Zt(e,o):e;return(0,a.jsx)(ae.Provider,{value:(0,Ee.B)({1:i}),children:n})};ie.propTypes={apis:Vt().shape({get:Vt().func.isRequired}).isRequired,children:Vt().node};const Ae=/^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$/i;function We(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,n])=>[e,Pe(n)]))}function Ye(r,e){if(r===null)return;if(r===void 0)return e===void 0?void 0:Ye(e);if(typeof r!="object"||Array.isArray(r))return r;const n=We(e)?e:{},o={};for(const i of new Set([...Object.keys(r),...Object.keys(n)])){const c=Ye(r[i],n[i]);c!==void 0&&(o[i]=c)}return o}function Xe(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 qt={type(r,e,n,o){return`Invalid type in config for key '${r}' in '${e}', got ${n}, wanted ${o}`},missing(r,e){return`Missing required config value at '${r}' in '${e}'`},convert(r,e,n){return`Unable to convert config value for key '${r}' in '${e}' to a ${n}`}};class ln{data;context;fallback;prefix;filteredKeys;notifiedFilteredKeys;static fromConfigs(e){return e.length===0?new ln(void 0):e.reduce((n,{data:o,context:i,filteredKeys:c,deprecatedKeys:A})=>{const v=new ln(o,i,n);if(v.filteredKeys=c,A)for(const{key:R,description:$}of A)console.warn(`The configuration key '${R}' of ${i} is deprecated and may be removed soon. ${$||""}`);return v},void 0)}constructor(e,n="mock-config",o,i=""){this.data=e,this.context=n,this.fallback=o,this.prefix=i,this.notifiedFilteredKeys=new Set}has(e){const n=this.readValue(e);return n===null?!1:n!==void 0?!0:this.fallback?.has(e)??!1}keys(){const e=this.data?Object.keys(this.data):[],n=this.fallback?.keys()??[];return[...new Set([...e,...n])].filter(o=>this.data?.[o]!==null)}get(e){const n=this.getOptional(e);if(n===void 0)throw new Error(qt.missing(this.fullKey(e??""),this.context));return n}getOptional(e){const n=Pe(this.readValue(e)),o=this.fallback?.getOptional(e);if(n!==null)return n===void 0?Ye(o):o===void 0?Ye(n):Ye(n,o)}getConfig(e){const n=this.getOptionalConfig(e);if(n===void 0)throw new Error(qt.missing(this.fullKey(e),this.context));return n}getOptionalConfig(e){const n=this.readValue(e),o=this.fallback?.getOptionalConfig(e);if(We(n))return this.copy(n,e,o);if(n!==null){if(n!==void 0)throw new TypeError(qt.type(this.fullKey(e),this.context,Xe(n),"object"));return o}}getConfigArray(e){const n=this.getOptionalConfigArray(e);if(n===void 0)throw new Error(qt.missing(this.fullKey(e),this.context));return n}getOptionalConfigArray(e){const n=this.readConfigValue(e,o=>{if(!Array.isArray(o))return{expected:"object-array"};for(const[i,c]of o.entries())if(!We(c))return{expected:"object-array",value:c,key:`${e}[${i}]`};return!0});if(n)return n.map((o,i)=>this.copy(o,`${e}[${i}]`))}getNumber(e){const n=this.getOptionalNumber(e);if(n===void 0)throw new Error(qt.missing(this.fullKey(e),this.context));return n}getOptionalNumber(e){const n=this.readConfigValue(e,i=>typeof i=="number"||typeof i=="string"||{expected:"number"});if(typeof n=="number"||n===void 0)return n;const o=Number(n);if(!Number.isFinite(o))throw new Error(qt.convert(this.fullKey(e),this.context,"number"));return o}getBoolean(e){const n=this.getOptionalBoolean(e);if(n===void 0)throw new Error(qt.missing(this.fullKey(e),this.context));return n}getOptionalBoolean(e){const n=this.readConfigValue(e,i=>typeof i=="boolean"||typeof i=="number"||typeof i=="string"||{expected:"boolean"});if(typeof n=="boolean"||n===void 0)return n;const o=String(n).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(qt.convert(this.fullKey(e),this.context,"boolean"))}getString(e){const n=this.getOptionalString(e);if(n===void 0)throw new Error(qt.missing(this.fullKey(e),this.context));return n}getOptionalString(e){return this.readConfigValue(e,n=>typeof n=="string"&&n!==""||{expected:"string"})}getStringArray(e){const n=this.getOptionalStringArray(e);if(n===void 0)throw new Error(qt.missing(this.fullKey(e),this.context));return n}getOptionalStringArray(e){return this.readConfigValue(e,n=>{if(!Array.isArray(n))return{expected:"string-array"};for(const[o,i]of n.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,n,o){const i=new ln(e,this.context,o,this.fullKey(n));return i.filteredKeys=this.filteredKeys,i}readConfigValue(e,n){const o=this.readValue(e);if(o===void 0)return this.fallback?.readConfigValue(e,n);if(o===null)return;const i=n(o);if(i!==!0){const{key:c=e,value:A=o,expected:v}=i;throw new TypeError(qt.type(this.fullKey(c),this.context,Xe(A),v))}return o}readValue(e){const n=e?e.split("."):[];for(const i of n)if(!Ae.test(i))throw new TypeError(`Invalid config key '${e}'`);if(this.data===void 0)return;let o=this.data;for(const[i,c]of n.entries())if(We(o))o=o[c];else if(o!=null){const A=this.fullKey(n.slice(0,i).join("."));throw new TypeError(qt.type(A,this.context,Xe(o),"object"))}return o}}const dn="theme";class Jn{themes;static createWithStorage(e){const n=new Jn(e);if(!window.localStorage)return n;const o=window.localStorage.getItem(dn)??void 0;return n.setActiveThemeId(o),n.activeThemeId$().subscribe(i=>{i?window.localStorage.setItem(dn,i):window.localStorage.removeItem(dn)}),window.addEventListener("storage",i=>{if(i.key===dn){const c=localStorage.getItem(dn)??void 0;n.setActiveThemeId(c)}}),n}activeThemeId;subject;constructor(e){this.themes=e,this.subject=new lt(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 vn=t(63636);function Gs(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 Wr{registeredFeatureFlags=[];flags;registerFlag(e){Gs(e.name),this.registeredFeatureFlags.push(e)}getRegisteredFlags(){return this.registeredFeatureFlags.slice()}isActive(e){return this.flags||(this.flags=this.load()),this.flags.get(e)===vn.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 n=Array.from(this.flags.entries()).filter(([,o])=>o===vn.S.Active);window.localStorage.setItem("featureFlags",JSON.stringify(Object.fromEntries(n)))}load(){try{const e=window.localStorage.getItem("featureFlags");if(!e)return new Map;const n=JSON.parse(e);if(typeof n!="object"||n===null||Array.isArray(n))return new Map;const o=Object.entries(n).filter(([i,c])=>(Gs(i),c===vn.S.Active));return new Map(o)}catch{return new Map}}}const Xn=(0,ut.y)({id:"core.apptheme"}),Ys=(0,ut.y)({id:"core.applanguage"});var Kr=t(56038),Qs=function(r){return r[r.default=10]="default",r[r.app=50]="app",r[r.static=100]="static",r}(Qs||{});class zr{factories=new Map;register(e,n){const o=Qs[e],i=this.factories.get(n.api.id);return i&&i.priority>=o?!1:(this.factories.set(n.api.id,{priority:o,factory:n}),!0)}get(e){const n=this.factories.get(e.id);if(n)return n.factory}getAllApis(){const e=new Set;for(const{factory:n}of this.factories.values())e.add(n.api);return e}}class Bs{factories;static validateFactories(e,n){for(const o of n){const i=[o],c=new Set;for(;i.length;){const A=i.shift(),v=e.get(A);if(v)for(const R of Object.values(v.deps)){if(R.id===o.id)throw new Error(`Circular dependency of api factory for ${o}`);c.has(R)||(c.add(R),i.push(R))}}}}apis;constructor(e){this.factories=e,this.apis=new Map}get(e){return this.load(e)}load(e,n=[]){const o=this.apis.get(e.id);if(o)return o;const i=this.factories.get(e);if(!i)return;if(n.includes(i.api))throw new Error(`Circular dependency of api factory for ${i.api}`);const c=this.loadDeps(e,i.deps,[...n,i.api]),A=i.factory(c);return this.apis.set(e.id,A),A}loadDeps(e,n,o){const i={};for(const c in n)if(n.hasOwnProperty(c)){const A=n[c],v=this.load(A,o);if(!v)throw new Error(`No API factory available for dependency ${A} of dependent ${e}`);i[c]=v}return i}}function Hr(r){const e={};for(const o in r.collectors)r.collectors.hasOwnProperty(o)&&(e[o]=r.collectors[o]());const n=[{node:Tt.Children.toArray(r.root),parent:void 0,contexts:{}}];for(;n.length!==0;){const{node:o,parent:i,contexts:c}=n.shift();Tt.Children.forEach(o,A=>{if(!(0,Tt.isValidElement)(A))return;const v={};for(const R in e)if(e.hasOwnProperty(R)){const $=e[R];v[R]=$.visit($.accumulator,A,i,c[R])}for(const R of r.discoverers){const $=R(A);$&&n.push({node:$,parent:A,contexts:v})}})}return Object.fromEntries(Object.entries(e).map(([o,i])=>[o,i.accumulator]))}function _n(r,e){return()=>({accumulator:r(),visit:e})}function Vr(r){return r.props?.children}function Gr(r){if(r.props?.path&&r.props?.element)return r.props?.element}var Te=t(19402);const Yr=_n(()=>new Set,(r,e)=>{const n=(0,Te.E)(e,"core.plugin");n&&r.add(n)});var Tn=t(72427);const Zs=r=>{const{children:e}=r,n=(0,Tn.gf)(vn.B),o="with"in r?n.isActive(r.with):!n.isActive(r.without);return(0,a.jsx)(a.Fragment,{children:o?e:null})};(0,Te.h)(Zs,"core.featureFlagged",!0);const qn={caseSensitive:!1,path:"*",element:"match-all",routeRefs:new Set,plugins:new Set};function ts(r){const e=r;return e?.type?e.type.displayName??e.type.name??String(e.type):String(e)}const Js=r=>{const e=new Set;return r&&e.add(r),e};function Xs(r,e=new Array){return Tt.Children.forEach(r,n=>{if(!(0,Tt.isValidElement)(n))return;const o=(0,Te.E)(n,"core.mountPoint");if(o){const i=(0,Te.E)(n,"core.plugin");e.push({routeRef:o,plugin:i})}Xs(n.props.children,e)}),e}const Qr=_n(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,o)=>{if(o?.isElementAncestor)return o;if(n?.props.element===e)return{...o,isElementAncestor:!0};const i=e.props?.path,c=(0,Te.E)(e,"core.mountPoint");if(c&&i)throw new Error(`Path property may not be set directly on a routable extension "${ts(e)}"`);const A=o?.obj?.children??r.objects;if(i!==void 0){if(typeof i!="string")throw new Error(`Element path must be a string at "${ts(e)}"`);const v=i.startsWith("/")?i.slice(1):i,R=e.props.element;if((0,Te.E)(e,"core.gatherMountPoints")){if(R)throw new Error(`Mount point gatherers may not have an element prop "${ts(e)}"`);const $={path:v,element:"gathered",routeRefs:new Set,caseSensitive:!!e.props?.caseSensitive,children:[qn],plugins:new Set};return A.push($),{obj:$,gatherPath:v,routeRef:o?.routeRef,gatherRouteRef:o?.routeRef}}if(R){const[$,...tt]=Xs(R);if(tt.length>0)throw new Error(`Route element with path "${i}" may not contain multiple routable extensions`);if(!$)return o;const{routeRef:ft,plugin:bt}=$,Ot={path:v,element:"mounted",routeRefs:new Set([ft]),caseSensitive:!!e.props?.caseSensitive,children:[qn],plugins:Js(bt)};return A.push(Ot),r.paths.set(ft,v),r.parents.set(ft,o?.routeRef),{obj:Ot,routeRef:ft??o?.routeRef,gatherPath:v,gatherRouteRef:o?.gatherRouteRef}}}if(c){if(o?.gatherPath===void 0)throw new Error(`Routable extension "${ts(e)}" with mount point "${c}" must be assigned a path`);o?.obj?.routeRefs.add(c);const v=(0,Te.E)(e,"core.plugin");return v&&o?.obj?.plugins.add(v),r.paths.set(c,o.gatherPath),r.parents.set(c,o?.gatherRouteRef),{...o,routeRef:c}}return o}),Zr=_n(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,o)=>{if(n?.props.element===e)return o;let i=o?.obj,c=o?.routeRef,A=o?.sticky;const v=e.props?.path,R=i?.children??r.objects,$=!!e.props?.caseSensitive;let tt=o?.path;if((0,Te.E)(e,"core.gatherMountPoints")){if(!v)throw new Error("Mount point gatherer must have a path");tt=v}const ft=e.props?.element;let bt=(0,Te.E)(e,"core.mountPoint");if(!bt&&(0,Tt.isValidElement)(ft)&&(bt=(0,Te.E)(ft,"core.mountPoint")),bt){let Mt=v;if(tt&&(Mt?tt=void 0:Mt=tt),!Mt)throw new Error("Mounted routable extension must have a path");r.paths.set(bt,Mt),c&&A?(r.parents.set(bt,c),v&&(c=bt,A=!1)):(r.parents.set(bt,c),c=bt),v?(i={caseSensitive:$,path:v,element:"mounted",routeRefs:new Set([bt]),children:[qn],plugins:Js((0,Te.E)(e.props.element,"core.plugin"))},R.push(i)):i?.routeRefs.add(bt)}if((0,Te.E)(e,"core.gatherMountPoints")&&(A=!0),(0,Te.E)(e,"core.gatherMountPoints")){if(!v)throw new Error("Mount point gatherer must have a path");bt||(i={caseSensitive:$,path:v,element:"gathered",routeRefs:new Set,children:[qn],plugins:o?.obj?.plugins||new Set},R.push(i))}return{obj:i,path:tt,routeRef:c,sticky:A}}),Jr=_n(()=>new Set,(r,e)=>{if(e.type===Zs){const n=e.props;r.add("with"in n?n.with:n.without)}});var Rn=t(21613),Xr=t(63544);const wn=(0,Xr.Q)("route-ref-type",()=>Symbol("route-ref-type"));function _s(r){return r[wn]==="absolute"}function qs(r){return r[wn]==="sub"}function _r(r){return r[wn]==="external"}function es(...r){const e=r.join("/").replace(/\/\/+/g,"/");return e!=="/"&&e.endsWith("/")?e.slice(0,-1):e}var qr=t(46155),to=t.n(qr);function eo(r,e,n){let o,i="";if(_s(r))o=r;else if(qs(r))o=r.parent,i=r.path;else if(_r(r)){const v=n.get(r);if(!v)return[void 0,""];if(_s(v))o=v;else if(qs(v))o=v.parent,i=v.path;else throw new Error(`ExternalRouteRef was bound to invalid target, ${v}`)}else throw r[wn]?new Error(`Unknown or invalid route ref type, ${r[wn]}`):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 A=es(c,i);return[o,A]}function no(r,e,n,o,i){const c=(0,Rn.ue)(i,e)??[],A=Array();let v=-1;for(let tt=r;tt&&(v=c.findIndex(ft=>ft.route.routeRefs.has(tt)),v===-1);tt=o.get(tt))A.unshift(tt);A.length===0&&(v-=1);const R=v===-1?"":c[v].pathname,$=A.slice(0,-1).map(tt=>{const ft=n.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`${es(R,...$)}/`}class so{routePaths;routeParents;routeObjects;routeBindings;appBasePath;constructor(e,n,o,i,c){this.routePaths=e,this.routeParents=n,this.routeObjects=o,this.routeBindings=i,this.appBasePath=c}resolve(e,n){const[o,i]=eo(e,this.routePaths,this.routeBindings);if(!o)return;let c;typeof n=="string"?c=this.trimPath(n):n.pathname?c={...n,pathname:this.trimPath(n.pathname)}:c=n;const A=this.appBasePath+no(o,c,this.routePaths,this.routeParents,this.routeObjects);return(...[R])=>{const $=R&&to()(R,tt=>typeof tt=="string"?tt.replaceAll(/[&?#;\/]/g,ft=>encodeURIComponent(ft)):tt);return es(A,(0,Rn.tW)(i,$))}}trimPath(e){return e&&(e.startsWith(this.appBasePath)?e.slice(this.appBasePath.length):e)}}const ro=(0,ce.tK)("routing-context"),oo=({routePaths:r,routeParents:e,routeObjects:n,routeBindings:o,basePath:i="",children:c})=>{const A=new so(r,e,n,o,i),v=(0,Ee.B)({1:A});return(0,a.jsx)(ro.Provider,{value:v,children:c})};function ao(r,e){const n=new Set(e.values());n.delete(void 0);for(const o of e.keys()){if(n.has(o))continue;let i=o,c="";for(;i;){const v=r.get(i);if(v===void 0)throw new Error(`No path for ${i}`);c=es(v,c),i=e.get(i)}const A=c.match(/:(\w+)/g);if(A){for(let v=0;v<A.length;v++)for(let R=v+1;R<A.length;R++)if(A[R]===A[v])throw new Error(`Parameter ${A[R]} is duplicated in path ${c}`)}}}function io(r,e){for(const n of e)if(n.externalRoutes){for(const[o,i]of Object.entries(n.externalRoutes))if(!i.optional&&!r.has(i))throw new Error(`External route '${o}' of the '${n.getId()}' plugin must be bound to a target route. See https://backstage.io/link?bind-routes for details.`)}}const co=(0,ce.tK)("app-context"),lo=({appContext:r,children:e})=>{const n=(0,Ee.B)({1:r});return(0,a.jsx)(co.Provider,{value:n,children:e})},tr="app",uo=`${tr}-auth-cookie-expires-at`,ho=5*6e4,er=5e3,po=2,go=5*6e4;function fo({discoveryApi:r,fetchApi:e,errorApi:n}){let o=!1,i,c=!0,A=er;const v="BroadcastChannel"in window?new BroadcastChannel(uo):void 0,R=bt=>{const Ot=(1+3*Math.random())*6e4;return Math.max(bt-Date.now(),ho)-Ot},$=async()=>{try{const Ot=`${await r.getBaseUrl(tr)}/.backstage/auth/v1/cookie`,Mt=await e.fetch(Ot,{credentials:"include"});if(!Mt.ok)throw new Error(`Request failed with status ${Mt.status} ${Mt.statusText}, see request towards ${Ot} for more details`);const Jt=await Mt.json();if(!Jt.expiresAt)throw new Error("No expiration date in response");const ye=Date.parse(Jt.expiresAt);if(Number.isNaN(ye))throw new Error("Invalid expiration date in response");c=!0,v?.postMessage({action:"COOKIE_REFRESH_SUCCESS",payload:{expiresAt:new Date(ye).toISOString()}}),ft(R(ye))}catch(bt){c?(c=!1,A=er):(A=Math.min(go,A*po),console.error("Session cookie refresh failed",bt),n.post(new Error("Session refresh failed, see developer console for details"))),ft(A)}},tt=bt=>{const{data:Ot}=bt;if(!(Ot===null||typeof Ot!="object")&&"action"in Ot&&Ot.action==="COOKIE_REFRESH_SUCCESS"){const Mt=Date.parse(Ot.payload.expiresAt);if(Number.isNaN(Mt)){console.warn("Received invalid expiration from session refresh channel");return}ft(R(Mt))}};function ft(bt){o||(i&&clearTimeout(i),i=setTimeout($,bt))}return v?.addEventListener("message",tt),$(),()=>{o=!0,i&&clearTimeout(i),v?.removeEventListener("message",tt),v?.close()}}function nr(r){return new Error(`Tried to access IdentityApi ${r} before app was loaded`)}function js(r){console.warn(`WARNING: Call to ${r} is deprecated and will break in the future`)}class mo{target;waitForTarget;resolveTarget=()=>{};signOutTargetUrl="/";#t;constructor(){this.waitForTarget=new Promise(e=>{this.resolveTarget=e})}setTarget(e,n){this.target=e,this.signOutTargetUrl=n.signOutTargetUrl,this.resolveTarget(e)}getUserId(){if(!this.target)throw nr("getUserId");if(!this.target.getUserId)throw new Error("IdentityApi does not implement getUserId");return js("getUserId"),this.target.getUserId()}getProfile(){if(!this.target)throw nr("getProfile");if(!this.target.getProfile)throw new Error("IdentityApi does not implement getProfile");return js("getProfile"),this.target.getProfile()}async getProfileInfo(){return this.waitForTarget.then(e=>e.getProfileInfo())}async getBackstageIdentity(){const e=await this.waitForTarget.then(n=>n.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 js("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 n=fo(e);this.#t=async()=>{n();const o=await e.discoveryApi.getBaseUrl("app");try{await fetch(`${o}/.backstage/auth/v1/cookie`,{method:"DELETE",credentials:"include"})}catch{}}}}var yo=t(1394);function vo(r,e,n){if(r!==void 0){const i=n.find(c=>c.id===r);if(i)return i}if(e){const i=n.find(c=>c.variant==="dark");if(i)return i}const o=n.find(i=>i.variant==="light");return o||n[0]}const Eo=()=>{const r=(0,Tt.useMemo)(()=>window.matchMedia("(prefers-color-scheme: dark)"),[]),[e,n]=(0,Tt.useState)(r.matches);return(0,Tt.useEffect)(()=>{const o=i=>{n(i.matches)};return r.addListener(o),()=>{r.removeListener(o)}},[r]),e};function sr({children:r}){const e=(0,Tn.gf)(Xn),n=(0,yo.A)(e.activeThemeId$(),e.getActiveThemeId()),o=window.matchMedia?Eo():!1,i=vo(n,o,e.getInstalledThemes());if(!i)throw new Error("App has no themes");return(0,a.jsx)(i.Provider,{children:r})}const rr=async()=>Ao();function Ao(r="__APP_INJECTED_RUNTIME_CONFIG__"){const e=new Array,n=[{context:"app-config.yaml",data:{app:{title:"Techdocs Preview App",baseUrl:"http://localhost:3000"},backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}}}];if(n){if(!Array.isArray(n))throw new Error("Static configuration has invalid format");e.push(...n)}const o=document.querySelectorAll('script[type="backstage.io/config"]');if(o.length>0)for(const c of o)try{const A=c.textContent;if(!A)throw new Error("tag is empty");let v;try{v=JSON.parse(A)}catch(R){throw new Error(`failed to parse config; ${R}`)}if(!Array.isArray(v))throw new Error("data is not an array");e.push(...v)}catch(A){throw new Error(`Failed to load config from script tag, ${A.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 xo{apis=[];add(e,n){return this.apis.push([e.id,n]),n}build(){return new En(new Map(this.apis))}}class En{apis;static builder(){return new xo}static from(e){return new En(new Map(e.map(([n,o])=>[n.id,o])))}static with(e,n){return new En(new Map([[e.id,n]]))}constructor(e){this.apis=e}with(e,n){return new En(new Map([...this.apis,[e.id,n]]))}get(e){return this.apis.get(e.id)}}function Co(r){const e=new Map,n=new Map;for(const o of r){for(const[i,c]of Object.entries(o.routes??{})){const A=`${o.getId()}.${i}`;if(e.has(A))throw new Error(`Unexpected duplicate route '${A}'`);e.set(A,c)}for(const[i,c]of Object.entries(o.externalRoutes??{})){const A=`${o.getId()}.${i}`;if(n.has(A))throw new Error(`Unexpected duplicate external route '${A}'`);n.set(A,c)}}return{routes:e,externalRoutes:n}}function bo(r,e,n){const o=Co(n),i=new Map,c=new Set;r&&r({bind:(R,$)=>{for(const[tt,ft]of Object.entries($)){const bt=R[tt];if(!bt)throw new Error(`Key ${tt} is not an existing external route`);if(!ft&&!bt.optional)throw new Error(`External route ${tt} is required but was ${ft===!1?"disabled":"not provided"}`);ft?i.set(bt,ft):ft===!1&&c.add(bt)}}});const A=e.getOptionalConfig("app.routes.bindings")?.get();if(A)for(const[v,R]of Object.entries(A)){if(!So(R))throw new Error(`Invalid config at app.routes.bindings['${v}'], value must be a non-empty string or false`);const $=o.externalRoutes.get(v);if(!$)throw new Error(`Invalid config at app.routes.bindings, '${v}' is not a valid external route`);if(!(i.has($)||c.has($)))if(R===!1)c.add($);else{const tt=o.routes.get(R);if(!tt)throw new Error(`Invalid config at app.routes.bindings['${v}'], '${R}' is not a valid route`);i.set($,tt)}}for(const v of o.externalRoutes.values())if(!i.has(v)&&!c.has(v)){const R="getDefaultTarget"in v?v.getDefaultTarget():void 0;if(R){const $=o.routes.get(R);$&&i.set(v,$)}}return i}function So(r){return!!(r===!1||typeof r=="string"&&r)}function In(){const[r]=(0,p.AV)((0,a.jsx)(p.qh,{index:!0,element:(0,a.jsx)("div",{})}));return!r.index}const or=(0,Tt.createContext)(void 0);var ar=t(82266),ir=t(93368),Oo=t(25862);const Po=(r,e)=>{try{const o=(0,Rn.ue)(e,{pathname:r})?.filter(R=>R?.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 A;i.plugins.size===1&&(A=i.plugins.values().next().value);const v=Object.entries(o?.params||{}).reduce((R,[$,tt])=>(tt!==void 0&&$!=="*"&&(R[$]=tt),R),{});return{extension:"App",pluginId:A?.getId()||"root",...c?{routeRef:c.id}:{},_routeNodeType:i.element,params:v}}catch{return}},To=({pathname:r,search:e,hash:n,attributes:o})=>{const i=(0,ir.s)();return(0,Tt.useEffect)(()=>{i.captureEvent("navigate",`${r}${e}${n}`,{attributes:o})},[i,r,e,n,o]),null},ns=({routeObjects:r})=>{const{pathname:e,search:n,hash:o}=(0,p.zy)(),{params:i,...c}=Po(e,r)||{params:{}};return(0,a.jsx)(Oo.Ig,{attributes:c,children:(0,a.jsx)(To,{pathname:e,search:n,hash:o,attributes:i})})};function Ro(r){return In()?Us(r):""}function Us(r){let{pathname:e}=new URL(r.getOptionalString("app.baseUrl")??"/","http://sample.dev");return e=e.replace(/\/*$/,""),e}function cr({component:r,appIdentityProxy:e,children:n}){const[o,i]=(0,Tt.useState)(),c=(0,Tn.gf)(st.U),A=Us(c);return o?(e.setTarget(o,{signOutTargetUrl:A||"/"}),(0,a.jsx)(a.Fragment,{children:n})):(0,a.jsx)(r,{onSignInSuccess:i})}function lr(r){const{Router:e,SignInPage:n}=(0,ar.n)().getComponents(),o=(0,Tn.gf)(st.U),i=Us(o),c=`${i}/*`,A=(0,Tt.useContext)(or);if(!A)throw new Error("AppRouter must be rendered within the AppProvider");const{routeObjects:v,appIdentityProxy:R}=A;return n?In()?(0,a.jsxs)(e,{children:[(0,a.jsx)(ns,{routeObjects:v}),(0,a.jsx)(cr,{component:n,appIdentityProxy:R,children:(0,a.jsx)(p.BV,{children:(0,a.jsx)(p.qh,{path:c,element:(0,a.jsx)(a.Fragment,{children:r.children})})})})]}):(0,a.jsxs)(e,{basename:i,children:[(0,a.jsx)(ns,{routeObjects:v}),(0,a.jsx)(cr,{component:n,appIdentityProxy:R,children:r.children})]}):(R.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||"/"}),In()?(0,a.jsxs)(e,{children:[(0,a.jsx)(ns,{routeObjects:v}),(0,a.jsx)(p.BV,{children:(0,a.jsx)(p.qh,{path:c,element:(0,a.jsx)(a.Fragment,{children:r.children})})})]}):(0,a.jsxs)(e,{basename:i,children:[(0,a.jsx)(ns,{routeObjects:v}),r.children]}))}(0,Te.h)(lr,"core.type","AppRouter");const Dn="language",_e="en";class ss{static create(e){const n=e?.availableLanguages??[_e];if(n.length!==new Set(n).size)throw new Error(`Supported languages may not contain duplicates, got '${n.join("', '")}'`);if(!n.includes(_e))throw new Error(`Supported languages must include '${_e}'`);const o=e?.defaultLanguage??_e;if(!n.includes(o))throw new Error(`Initial language must be one of the supported languages, got '${o}'`);return new ss(n,o)}static createWithStorage(e){const n=ss.create(e);if(!window.localStorage)return n;const o=window.localStorage.getItem(Dn),{languages:i}=n.getAvailableLanguages();return o&&i.includes(o)&&n.setLanguage(o),n.language$().subscribe(({language:c})=>{c!==window.localStorage.getItem(Dn)&&window.localStorage.setItem(Dn,c)}),window.addEventListener("storage",c=>{if(c.key===Dn){const A=localStorage.getItem(Dn)??void 0;A&&n.setLanguage(A)}}),n}#t;#e;#n;constructor(e,n){this.#t=e,this.#e=n,this.#n=new lt({language:this.#e})}getAvailableLanguages(){return{languages:this.#t.slice()}}setLanguage(e){const n=e??_e;if(n!==this.#e){if(n&&!this.#t.includes(n))throw new Error(`Failed to change language to '${n}', available languages are '${this.#t.join("', '")}'`);this.#e=n,this.#n.next({language:n})}}getLanguage(){return{language:this.#e}}language$(){return this.#n}}var wo=t(47304),Io=t(99833),dr=t(93184);function ur(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==null))}class Do{onLoad;#t;#e;#n;constructor(e){this.onLoad=e,this.#t=new Set,this.#e=new Map,this.#n=new Map}addTranslationResource(e){const n=(0,Io.Y)(e);for(const o of n.resources){const i=this.#s(o.language,n.id);this.#n.has(i)||this.#n.set(i,o.loader)}}#s(e,n){return`${e}/${n}`}needsLoading(e,n){const o=this.#s(e,n);return this.#n.get(o)?!this.#t.has(o):!1}async load(e,n){const o=this.#s(e,n),i=this.#n.get(o);if(!i||this.#t.has(o))return;const c=this.#e.get(o);if(c){await c;return}const A=i().then(v=>{this.onLoad({language:e,namespace:n,messages:v.messages}),this.#t.add(o)},v=>{throw this.#t.add(o),v});this.#e.set(o,A),await A}}class $s{#t;#e;#n;static fromI18n(e){const n=e.services.interpolator,o=n.format;let i;return n.format=(c,A,v,R)=>A?o(c,A,v,R):i?.(c,A,v,R)??c,new $s(Math.random().toString(36).substring(2,8),c=>{i=c})}constructor(e,n){this.#t=n,this.#e=e,this.#n=new RegExp(`\\$${e}\\(([^)]+)\\)`)}wrapT(e){return(n,o)=>{let i;this.#t(v=>{if((0,Tt.isValidElement)(v)){i||(i=new Map);const R=i.size.toString();return i.set(R,v),`$${this.#e}(${R})`}return v});const c=e(n,o);if(!i)return c;const A=c.split(this.#n);return(0,Tt.createElement)(Tt.Fragment,null,...A.map((v,R)=>R%2===0?v:i?.get(v)).filter(Boolean))}}}class Fs{static create(e){const{languages:n}=e.languageApi.getAvailableLanguages(),o=(0,wo.Q_)({fallbackLng:_e,supportedLngs:n,interpolation:{escapeValue:!1,alwaysFormat:!0},ns:[],defaultNS:!1,fallbackNS:!1,initImmediate:!1});if(o.init(),!o.isInitialized)throw new Error("i18next was unexpectedly not initialized");const i=$s.fromI18n(o),{language:c}=e.languageApi.getLanguage();c!==_e&&o.changeLanguage(c);const A=new Do($=>{o.addResourceBundle($.language,$.namespace,ur($.messages),!1,!0)}),v=e?.resources||[];for(let $=v.length-1;$>=0;$--){const tt=v[$];tt.$$type==="@backstage/TranslationResource"?A.addTranslationResource(tt):tt.$$type==="@backstage/TranslationMessages"&&o.addResourceBundle(_e,tt.id,ur(tt.messages),!0,!1)}const R=new Fs(o,A,e.languageApi.getLanguage().language,i);return e.languageApi.language$().subscribe(({language:$})=>{R.#a($)}),R}#t;#e;#n;#s;#o=new Set;#r=new Set;constructor(e,n,o,i){this.#t=e,this.#e=n,this.#n=o,this.#s=i}getTranslation(e){const n=(0,dr.v)(e);return this.#c(n),this.#i(n)}translation$(e){const n=(0,dr.v)(e);return this.#c(n),new(Y())(o=>{let i={};const c=()=>{i={};const v=i;this.#e.load(this.#n,n.id).then(()=>{if(v===i){const R=this.#i(n);R.ready&&o.next(R)}},R=>{v===i&&o.error(Array.isArray(R)?R[0]:R)})},A=()=>{const v=this.#i(n);v.ready?o.next(v):c()};return this.#e.needsLoading(this.#n,n.id)&&c(),this.#r.add(A),()=>{this.#r.delete(A)}})}#a(e){this.#n!==e&&(this.#n=e,this.#t.changeLanguage(e),this.#r.forEach(n=>n()))}#i(e){if(this.#e.needsLoading(this.#n,e.id))return{ready:!1};const n=this.#t.getFixedT(null,e.id);return{ready:!0,t:this.#s.wrapT(n)}}#c(e){if(this.#o.has(e.id))return;this.#o.add(e.id);const n=e.getDefaultMessages();this.#t.addResourceBundle(_e,e.id,n,!0,!1);const o=e.getDefaultResource();o&&this.#e.addTranslationResource(o)}}function hr(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 Lo(r){const e=ln.fromConfigs(r),n=e.getOptionalString("app.baseUrl"),o=e.getOptionalString("backend.baseUrl");let i=r,c,A;if(n&&o){const v=new URL(n).origin,R=new URL(o).origin;if(v===R){const $=hr(o);o!==$&&(c=$)}}if(n){const v=hr(n);n!==v&&(A=v)}return(A||c)&&(i=i.concat({data:{app:A&&{baseUrl:A},backend:c&&{baseUrl:c}},context:"relative-resolver"})),i}function Mo(){return(document.querySelector('meta[name="backstage-app-mode"]')?.getAttribute("content")??"public")==="protected"}function Bo(r,e,n){const o=!!r,i=(0,Oe.A)(r||(()=>Promise.resolve([])));let c;if(o&&i.loading){const{Progress:R}=e;c=(0,a.jsx)(R,{})}else if(i.error){const{BootErrorPage:R}=e;c=(0,a.jsx)(R,{step:"load-config",error:i.error})}const{ThemeProvider:A=sr}=e;return c?{node:(0,a.jsx)(ie,{apis:En.with(Xn,n),children:(0,a.jsx)(A,{children:c})})}:{api:ln.fromConfigs(i.value?.length?Lo(i.value):[])}}class jo{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 Uo{apiHolder;configApi;apis;icons;plugins;featureFlags;components;themes;configLoader;defaultApis;bindRoutes;appLanguageApi;translationResources;appIdentityProxy=new mo;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??rr,this.defaultApis=e.defaultApis??[],this.bindRoutes=e.bindRoutes,this.apiFactoryRegistry=new zr,this.appLanguageApi=ss.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 n=this.getProvider();return()=>(0,a.jsx)(n,{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 jo(this);let n,o;return({children:c})=>{const A=(0,Tt.useRef)(!0),v=(0,Tt.useMemo)(()=>Jn.createWithStorage(this.themes),[]),{routing:R,featureFlags:$}=(0,Tt.useMemo)(()=>{const Jt=In();Jt&&console.warn(`
|
|
4
|
+
DEPRECATION WARNING: React Router Beta is deprecated and support for it will be removed in a future release.
|
|
5
|
+
Please migrate to use React Router v6 stable.
|
|
6
|
+
See https://backstage.io/docs/tutorials/react-router-stable-migration
|
|
7
|
+
`);const ye=Hr({root:c,discoverers:[Vr,Gr],collectors:{routing:Jt?Zr:Qr,collectedPlugins:Yr,featureFlags:Jr}});return ye.collectedPlugins.forEach(je=>this.plugins.add(je)),this.verifyPlugins(this.plugins),this.getApiHolder(),ye},[c]),tt=Bo(this.configLoader,this.components,v),ft="api"in tt;if(ft){const{api:Jt}=tt;this.configApi=Jt}if("node"in tt)return tt.node;if(o)throw o;if(!n)try{n=bo(this.bindRoutes,tt.api,this.plugins),ao(R.paths,R.parents),io(n,this.plugins)}catch(Jt){throw o=Jt,Jt}if(ft&&A.current){A.current=!1;const Jt=this.getApiHolder().get(vn.B);if(Jt){for(const Le of this.featureFlags)Jt.registerFlag({...Le,pluginId:""});for(const Le of this.plugins.values())if("getFeatureFlags"in Le)for(const hn of Le.getFeatureFlags())Jt.registerFlag({name:hn.name,pluginId:Le.getId()});else for(const hn of Le.output())hn.type==="feature-flag"&&Jt.registerFlag({name:hn.name,pluginId:Le.getId()});const ye=Jt.getRegisteredFlags(),je=new Set(ye.map(Le=>Le.name));for(const Le of $)je.has(Le)||Jt.registerFlag({name:Le,pluginId:""})}}const{ThemeProvider:bt=sr,Progress:Ot}=this.components,Mt=this.getApiHolder();if(Mo()){const Jt=Mt.get(Qt.m),ye=Mt.get(Be.a),je=Mt.get(_.I);if(!Jt||!ye||!je)throw new Error("App is running in protected mode but missing required APIs");this.appIdentityProxy.enableCookieAuth({errorApi:Jt,fetchApi:ye,discoveryApi:je})}return(0,a.jsx)(ie,{apis:Mt,children:(0,a.jsx)(lo,{appContext:e,children:(0,a.jsx)(bt,{children:(0,a.jsx)(oo,{routePaths:R.paths,routeParents:R.parents,routeObjects:R.objects,routeBindings:n,basePath:Ro(tt.api),children:(0,a.jsx)(or.Provider,{value:{routeObjects:R.objects,appIdentityProxy:this.appIdentityProxy},children:(0,a.jsx)(Tt.Suspense,{fallback:(0,a.jsx)(Ot,{}),children:c})})})})})})}}getRouter(){return lr}getApiHolder(){if(this.apiHolder){for(const e of this.plugins)for(const n of e.getApis())this.apiFactoryRegistry.get(n.api)||this.apiFactoryRegistry.register("default",n);return Bs.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder}this.apiFactoryRegistry.register("static",{api:Xn,deps:{},factory:()=>Jn.createWithStorage(this.themes)}),this.apiFactoryRegistry.register("static",{api:st.U,deps:{},factory:()=>{if(!this.configApi)throw new Error("Tried to access config API before config was loaded");return this.configApi}}),this.apiFactoryRegistry.register("static",{api:fe.K,deps:{},factory:()=>this.appIdentityProxy}),this.apiFactoryRegistry.register("static",{api:Ys,deps:{},factory:()=>this.appLanguageApi}),this.apiFactoryRegistry.register("default",{api:Kr.J,deps:{languageApi:Ys},factory:({languageApi:e})=>Fs.create({languageApi:e,resources:this.translationResources})}),this.apiFactoryRegistry.register("default",{api:vn.B,deps:{},factory:()=>new Wr});for(const e of this.defaultApis)this.apiFactoryRegistry.register("default",e);for(const e of this.plugins)for(const n of e.getApis())if(!this.apiFactoryRegistry.register("default",n))throw new Error(`Plugin ${e.getId()} tried to register duplicate or forbidden API factory for ${n.api}`);for(const e of this.apis)if(!this.apiFactoryRegistry.register("app",e))throw new Error(`Duplicate or forbidden API factory for ${e.api} in app`);return Bs.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder=new Bs(this.apiFactoryRegistry),this.apiHolder}verifyPlugins(e){const n=new Set;for(const o of e){const i=o.getId();if(n.has(i))throw new Error(`Duplicate plugin found '${i}'`);n.add(i)}}}function $o(r){return new Uo(r)}function Fo(r){return $o({...r,apis:r?.apis??[],bindRoutes:r?.bindRoutes,components:{...M,...r?.components},configLoader:r?.configLoader,defaultApis:us,icons:{...bs,...r?.icons},plugins:r?.plugins??[],featureFlags:r?.featureFlags??[],themes:r?.themes??Bt})}var rs=t(82442);let pr=!1;const gr=r=>{const e=(0,ar.n)(),{NotFoundErrorPage:n}=e.getComponents(),o=(0,Tt.useMemo)(()=>In(),[]),c=[...(0,rs.O)(r.children,A=>A.getElements().flatMap(v=>{let R=v.props.path;if(R==="")return[];R=R?.replace(/\/\*$/,"")??"/";let $=o?v:v.props.element;return!o&&!$&&($=v,pr||(console.warn("DEPRECATION WARNING: All elements within <FlatRoutes> must be of type <Route> with an element prop. Existing usages of <Navigate key=[path] to=[to] /> should be replaced with <Route path=[path] element={<Navigate to=[to] />} />."),pr=!0)),[{path:R,element:$,children:v.props.children?[{path:R==="/"?"/":"*",element:v.props.children}]:void 0}]}).sort((v,R)=>R.path.localeCompare(v.path)).map(v=>({...v,path:v.path==="/"?"/":`${v.path}/*`}))),{path:"*",element:(0,a.jsx)(n,{})}];return(0,p.Ye)(c)};(0,Te.h)(gr,"core.type","FlatRoutes");var An=t(6820),No=t(78692),ko=t(86519);function Wo(r){return!r.cursor}function Ko(r,e){if(!r.length)return[];const{maxCountPerChunk:n=1e3,maxStringLengthPerChunk:o=90*2**10,extraStringLengthPerRef:i=3}=e??{},c=[];let A=0,v=0,R=0;for(let $=0;$<r.length;++$){const tt=r[$].length+i;R>0&&(v+tt>o||R+1>n)&&(c.push(r.slice(A,$)),A=$,v=0,R=0),v+=tt,R+=1}return c.push(r.slice(A,r.length)),c}const xe="catalog";var Ce=t(94214);class zo{discoveryApi;fetchApi;constructor(e){this.discoveryApi=e.discoveryApi,this.fetchApi=e.fetchApi||{fetch:fn()}}async deleteEntityByUid(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/entities/by-uid/{uid}").expand({uid:e.path.uid});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"DELETE"})}async getEntities(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/entities{?fields,limit,filter*,offset,after,order*}").expand({...e.query});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"GET"})}async getEntitiesByQuery(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/entities/by-query{?fields,limit,offset,orderField*,cursor,filter*,fullTextFilterTerm,fullTextFilterFields}").expand({...e.query});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"GET"})}async getEntitiesByRefs(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/entities/by-refs{?filter*}").expand({...e.query});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"POST",body:JSON.stringify(e.body)})}async getEntityAncestryByName(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/entities/by-name/{kind}/{namespace}/{name}/ancestry").expand({kind:e.path.kind,namespace:e.path.namespace,name:e.path.name});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"GET"})}async getEntityByName(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/entities/by-name/{kind}/{namespace}/{name}").expand({kind:e.path.kind,namespace:e.path.namespace,name:e.path.name});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"GET"})}async getEntityByUid(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/entities/by-uid/{uid}").expand({uid:e.path.uid});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"GET"})}async getEntityFacets(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/entity-facets{?facet*,filter*}").expand({...e.query});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"GET"})}async refreshEntity(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/refresh").expand({});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"POST",body:JSON.stringify(e.body)})}async validateEntity(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/validate-entity").expand({});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"POST",body:JSON.stringify(e.body)})}async analyzeLocation(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/analyze-location").expand({});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"POST",body:JSON.stringify(e.body)})}async createLocation(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/locations{?dryRun}").expand({...e.query});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"POST",body:JSON.stringify(e.body)})}async deleteLocation(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/locations/{id}").expand({id:e.path.id});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"DELETE"})}async getLocation(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/locations/{id}").expand({id:e.path.id});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"GET"})}async getLocationByEntity(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/locations/by-entity/{kind}/{namespace}/{name}").expand({kind:e.path.kind,namespace:e.path.namespace,name:e.path.name});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"GET"})}async getLocations(e,n){const o=await this.discoveryApi.getBaseUrl(xe),c=Ce.parse("/locations").expand({});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...n?.token&&{Authorization:`Bearer ${n?.token}`}},method:"GET"})}}class Ho{apiClient;constructor(e){this.apiClient=new zo(e)}async getEntityAncestors(e,n){return await this.requestRequired(await this.apiClient.getEntityAncestryByName({path:(0,An.KU)(e.entityRef)},n))}async getLocations(e,n){return{items:(await this.requestRequired(await this.apiClient.getLocations(e??{},n))).map(i=>i.data)}}async getLocationById(e,n){return await this.requestOptional(await this.apiClient.getLocation({path:{id:e}},n))}async getLocationByEntity(e,n){return await this.requestOptional(await this.apiClient.getLocationByEntity({path:(0,An.KU)(e)},n))}async getEntities(e,n){const{filter:o=[],fields:i=[],order:c,offset:A,limit:v,after:R}=e??{},$=[];if(c)for(const ft of[c].flat())ft&&$.push(`${ft.order}:${ft.field}`);return{items:await this.requestRequired(await this.apiClient.getEntities({query:{fields:i,limit:v,filter:this.getFilterValue(o),offset:A,after:R,order:c?$:void 0}},n))}}async getEntitiesByRefs(e,n){const o=async c=>{const A=await this.apiClient.getEntitiesByRefs({body:{entityRefs:c,fields:e.fields},query:{filter:this.getFilterValue(e.filter)}},n);if(!A.ok)throw await ue.o.fromResponse(A);return(await A.json()).items.map(R=>R??void 0)};let i;for(const c of Ko(e.entityRefs)){const A=await o(c);i?i.push(...A):i=A}return{items:i??[]}}async queryEntities(e={},n){const o={};if(Wo(e)){const{fields:i=[],filter:c,limit:A,offset:v,orderFields:R,fullTextFilter:$}=e;o.filter=this.getFilterValue(c),A!==void 0&&(o.limit=A),v!==void 0&&(o.offset=v),R!==void 0&&(o.orderField=(Array.isArray(R)?R:[R]).map(({field:ft,order:bt})=>`${ft},${bt}`)),i.length&&(o.fields=i);const tt=$?.term?.trim();tt&&(o.fullTextFilterTerm=tt),$?.fields?.length&&(o.fullTextFilterFields=$.fields)}else{const{fields:i=[],limit:c,cursor:A}=e;o.cursor=A,c!==void 0&&(o.limit=c),i.length&&(o.fields=i)}return this.requestRequired(await this.apiClient.getEntitiesByQuery({query:o},n))}async getEntityByRef(e,n){return this.requestOptional(await this.apiClient.getEntityByName({path:(0,An.KU)(e)},n))}async getEntityByName(e,n){const{kind:o,namespace:i="default",name:c}=e;return this.requestOptional(await this.apiClient.getEntityByName({path:{kind:o,namespace:i,name:c}},n))}async refreshEntity(e,n){const o=await this.apiClient.refreshEntity({body:{entityRef:e}},n);if(o.status!==200)throw await ue.o.fromResponse(o)}async getEntityFacets(e,n){const{filter:o=[],facets:i}=e;return await this.requestOptional(await this.apiClient.getEntityFacets({query:{facet:i,filter:this.getFilterValue(o)}},n))}async addLocation(e,n){const{type:o="url",target:i,dryRun:c}=e,A=await this.apiClient.createLocation({body:{type:o,target:i},query:{dryRun:c?"true":void 0}},n);if(A.status!==201)throw await ue.o.fromResponse(A);const{location:v,entities:R,exists:$}=await A.json();if(!v)throw new Error(`Location wasn't added: ${i}`);return{location:v,entities:R,exists:$}}async getLocationByRef(e,n){return(await this.requestRequired(await this.apiClient.getLocations({},n))).map(i=>i.data).find(i=>e===(0,No.KL)(i))}async removeLocationById(e,n){await this.requestIgnored(await this.apiClient.deleteLocation({path:{id:e}},n))}async removeEntityByUid(e,n){await this.requestIgnored(await this.apiClient.deleteEntityByUid({path:{uid:e}},n))}async validateEntity(e,n,o){const i=await this.apiClient.validateEntity({body:{entity:e,location:n}},o);if(i.ok)return{valid:!0};if(i.status!==400)throw await ue.o.fromResponse(i);const{errors:c=[]}=await i.json();return{valid:!1,errors:c}}async analyzeLocation(e,n){const o=await this.apiClient.analyzeLocation({body:e},n);if(o.status!==200)throw await ue.o.fromResponse(o);return o.json()}async requestIgnored(e){if(!e.ok)throw await ue.o.fromResponse(e)}async requestRequired(e){if(!e.ok)throw await ue.o.fromResponse(e);return e.json()}async requestOptional(e){if(!e.ok){if(e.status===404)return;throw await ue.o.fromResponse(e)}return await e.json()}getFilterValue(e=[]){const n=[];for(const o of[e].flat()){const i=[];for(const[c,A]of Object.entries(o))for(const v of[A].flat())v===ko.c?i.push(c):typeof v=="string"&&i.push(`${c}=${v}`);i.length&&n.push(i.join(","))}return n}}var fr=t(7341),Vo=t(18),Go=t(82292),mr=t(29207),xn=t(95203),Yo=t(9803),De=t(88758),Qo=t(54560),Cn=t(45250);async function Zo({storageApi:r}){const e=r.forBucket("settings"),n=r.forBucket("starredEntities"),o=e.snapshot("starredEntities").value;if(!(0,Cn.isArray)(o))return;const i=new Set(n.snapshot("entityRefs").value??[]);o.filter(Cn.isString).map(c=>c.split(":")).filter(c=>c.length===4&&c[0]==="entity").map(([c,A,v,R])=>(0,An.U2)({kind:A,namespace:v,name:R})).forEach(c=>i.add(c)),await n.set("entityRefs",Array.from(i)),await e.remove("starredEntities")}class Jo{settingsStore;starredEntities;constructor(e){Zo(e).then(),this.settingsStore=e.storageApi.forBucket("starredEntities"),this.starredEntities=new Set(this.settingsStore.snapshot("entityRefs").value??[]),this.settingsStore.observe$("entityRefs").subscribe({next:n=>{this.starredEntities=new Set(n.value??[]),this.notifyChanges()}})}async toggleStarred(e){this.starredEntities.has(e)?this.starredEntities.delete(e):this.starredEntities.add(e),await this.settingsStore.set("entityRefs",Array.from(this.starredEntities))}starredEntitie$(){return this.observable}subscribers=new Set;observable=new(Y())(e=>(e.next(new Set(this.starredEntities)),this.subscribers.add(e),()=>{this.subscribers.delete(e)}));notifyChanges(){for(const e of this.subscribers)e.next(new Set(this.starredEntities))}}function Ns(r){const{years:e=0,months:n=0,weeks:o=0,days:i=0,hours:c=0,minutes:A=0,seconds:v=0,milliseconds:R=0}=r;return((((e*365+n*30+o*7+i)*24+c)*60+A)*60+v)*1e3+R}var Xo=t(25033),_o=t.n(Xo),qo=t(88083);const ta={seconds:10},ea={milliseconds:50},na={api:Nn.A,component:Wn.A,system:Un.A,resource:Kn.A,domain:Bn.A,location:kn.A,user:On.A,group:Sn.A,template:zn.A};function yr(r){return{async:r.async,render:({entityRef:e,entity:n,context:o})=>({snapshot:(0,qo.T)(n||e,o),loadEntity:r.async})}}class sa extends Map{#t;#e=new Map;constructor(e){super(),this.#t=e}set(e,n){const o=super.set(e,n);return this.#e.set(e,Date.now()),o}get(e){if(!this.has(e))return;const n=this.#e.get(e);if(Date.now()-n>this.#t){this.delete(e);return}return super.get(e)}delete(e){return this.#e.delete(e),super.delete(e)}clear(){return this.#e.clear(),super.clear()}}class os{static createLocal(){return new os({renderer:yr({async:!1})})}static create(e){return new os(e)}#t;#e;#n;#s;#o;constructor(e){const n=e.cacheTtl??ta,o=e.batchDelay??ea,i=e.renderer??yr({async:!0}),c={};if(Object.entries(na).forEach(([A,v])=>{c[A.toLocaleLowerCase("en-US")]=v}),Object.entries(e.kindIcons??{}).forEach(([A,v])=>{c[A.toLocaleLowerCase("en-US")]=v}),i.async){if(!e.catalogApi)throw new TypeError("Asynchronous rendering requires a catalog API");this.#n=this.#a({cacheTtl:n,batchDelay:o,renderer:i,catalogApi:e.catalogApi})}this.#e=Ns(n),this.#t=new Map,this.#s=c,this.#o=i}forEntity(e,n){const{entityRef:o,kind:i,entity:c,needsLoad:A}=this.#r(e),v=bt=>{const{snapshot:Ot}=this.#o.render({entityRef:o,loading:bt.loading,entity:bt.entity,context:n||{}});return{...Ot,entityRef:o,Icon:this.#i(Ot.Icon,i)}};let R;try{R=v({loading:A,entity:c})}catch{R={primaryTitle:o,entityRef:o}}if(!A)return{snapshot:R,promise:Promise.resolve(R)};const $=Promise.resolve().then(()=>this.#n?.load(o)).then(bt=>v({loading:!1,entity:bt??c})).catch(()=>{}),tt=new(Y())(bt=>{let Ot=!1;return $.then(Mt=>{Mt&&bt.next(Mt)}).finally(()=>{Ot||bt.complete()}),()=>{Ot=!0}}),ft=$.then(bt=>bt??R);return{snapshot:R,update$:tt,promise:ft}}#r(e){if(typeof e!="string")return{entity:e,kind:e.kind,entityRef:(0,An.U2)(e),needsLoad:!1};const n=this.#t.get(e),o=n?.entity,c=(!n||Date.now()-n.updatedAt>this.#e)&&this.#o.async!==!1&&this.#n!==void 0;return{entity:o,kind:(0,An.KU)(e).kind,entityRef:e,needsLoad:c}}#a(e){const n=Ns(e.cacheTtl),o=Ns(e.batchDelay);return new(_o())(async i=>{const{items:c}=await e.catalogApi.getEntitiesByRefs({entityRefs:i,fields:["kind","metadata.name","metadata.namespace","metadata.title","metadata.description","spec.profile.displayName","spec.type"]}),A=Date.now();return i.forEach((v,R)=>{this.#t.set(v,{updatedAt:A,entity:c[R]})}),c},{name:"DefaultEntityPresentationApi",cacheMap:new sa(n),maxBatchSize:100,batchScheduleFn:o?i=>setTimeout(i,o):void 0})}#i(e,n){return e||(e===!1?!1:this.#s[n.toLocaleLowerCase("en-US")])}}const Re=(0,Yo.i)({id:"catalog",apis:[(0,Z.b)({api:fr.v,deps:{discoveryApi:_.I,fetchApi:Be.a},factory:({discoveryApi:r,fetchApi:e})=>new Ho({discoveryApi:r,fetchApi:e})}),(0,Z.b)({api:Vo.a,deps:{storageApi:oe},factory:({storageApi:r})=>new Jo({storageApi:r})}),(0,Z.b)({api:Go.n,deps:{catalogApi:fr.v},factory:({catalogApi:r})=>os.create({catalogApi:r})})],routes:{catalogIndex:xn.rQ,catalogEntity:mr.s},externalRoutes:{createComponent:xn.qP,viewTechDoc:xn.UJ,createFromTemplate:xn.Zg,unregisterRedirect:xn.pS}}),mi=Re.provide((0,De.QJ)({name:"CatalogIndexPage",component:()=>Promise.all([t.e(3720),t.e(5184),t.e(2177)]).then(t.bind(t,62177)).then(r=>r.CatalogPage),mountPoint:xn.rQ})),ra=Re.provide((0,De.QJ)({name:"CatalogEntityPage",component:()=>t.e(4516).then(t.bind(t,54516)).then(r=>r.CatalogEntityPage),mountPoint:mr.s})),yi=Re.provide((0,De.NC)({name:"EntityAboutCard",component:{lazy:()=>Promise.all([t.e(3720),t.e(1902),t.e(5724)]).then(t.bind(t,65724)).then(r=>r.AboutCard)}})),vi=Re.provide((0,De.NC)({name:"EntityLinksCard",component:{lazy:()=>t.e(8307).then(t.bind(t,18307)).then(r=>r.EntityLinksCard)}})),Ei=Re.provide((0,De.NC)({name:"EntityLabelsCard",component:{lazy:()=>t.e(3182).then(t.bind(t,63182)).then(r=>r.EntityLabelsCard)}})),Ai=Re.provide((0,De.NC)({name:"EntityHasSystemsCard",component:{lazy:()=>t.e(9652).then(t.bind(t,9652)).then(r=>r.HasSystemsCard)}})),xi=Re.provide((0,De.NC)({name:"EntityHasComponentsCard",component:{lazy:()=>t.e(2420).then(t.bind(t,52420)).then(r=>r.HasComponentsCard)}})),Ci=Re.provide((0,De.NC)({name:"EntityHasSubcomponentsCard",component:{lazy:()=>t.e(8384).then(t.bind(t,78384)).then(r=>r.HasSubcomponentsCard)}})),bi=Re.provide((0,De.NC)({name:"EntityHasSubdomainsCard",component:{lazy:()=>t.e(6415).then(t.bind(t,46415)).then(r=>r.HasSubdomainsCard)}})),Si=Re.provide((0,De.NC)({name:"EntityHasResourcesCard",component:{lazy:()=>t.e(6271).then(t.bind(t,56271)).then(r=>r.HasResourcesCard)}})),Oi=Re.provide((0,De.NC)({name:"EntityDependsOnComponentsCard",component:{lazy:()=>t.e(3632).then(t.bind(t,3632)).then(r=>r.DependsOnComponentsCard)}})),Pi=Re.provide((0,De.NC)({name:"EntityDependencyOfComponentsCard",component:{lazy:()=>t.e(124).then(t.bind(t,124)).then(r=>r.DependencyOfComponentsCard)}})),Ti=Re.provide((0,De.NC)({name:"EntityDependsOnResourcesCard",component:{lazy:()=>t.e(287).then(t.bind(t,20287)).then(r=>r.DependsOnResourcesCard)}})),Ri=Re.provide((0,De.NC)({name:"RelatedEntitiesCard",component:{lazy:()=>t.e(2401).then(t.bind(t,52401)).then(r=>r.RelatedEntitiesCard)}})),wi=Re.provide((0,Qo.ec)({name:"CatalogSearchResultListItem",component:()=>t.e(1297).then(t.bind(t,61297)).then(r=>r.CatalogSearchResultListItem),predicate:r=>r.type==="software-catalog"}));var vr=t(96726),Er=t(26679);class oa{configApi;discoveryApi;identityApi;constructor({configApi:e,discoveryApi:n,identityApi:o}){this.configApi=e,this.discoveryApi=n,this.identityApi=o}async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){return`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getOptionalString("techdocs.builder")||"local"}async getEntityDocs(e,n){const i=`${await this.getApiOrigin()}/${n}`,c=await fetch(`${i.endsWith("/")?i:`${i}/`}index.html`);if(c.status===404)throw new Error("Page not found");return c.text()}async syncEntityDocs(e){return"cached"}async getBaseUrl(e,n,o){const i=await this.getApiOrigin();return new URL(e,`${i}/${o}`).toString()}}class aa{configApi;discoveryApi;identityApi;constructor({configApi:e,discoveryApi:n,identityApi:o}){this.configApi=e,this.discoveryApi=n,this.identityApi=o}async getCookie(){return{expiresAt:new Date(Date.now()+6e5).toISOString()}}async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getEntityMetadata(e){return{apiVersion:"backstage.io/v1alpha1",kind:"Component",metadata:{name:"local"},spec:{owner:"test",lifecycle:"experimental"}}}async getTechDocsMetadata(e){return{site_name:"Live preview environment",site_description:""}}}const ia=[(0,Z.b)({api:Er.s,deps:{configApi:st.U,discoveryApi:_.I,identityApi:fe.K},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new oa({configApi:r,discoveryApi:e,identityApi:n})}),(0,Z.b)({api:Er.l,deps:{configApi:st.U,discoveryApi:_.I,identityApi:fe.K},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new aa({configApi:r,discoveryApi:e,identityApi:n})}),(0,Z.b)({api:vr.Y,deps:{configApi:st.U},factory:({configApi:r})=>vr.L.fromConfig(r)})],ca={backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}},la={backend:{baseUrl:"http://localhost:7007"},techdocs:{builder:"external"}};async function da(){const r=await fetch("/.detect");return r.ok?(await r.text()).trim()==="techdocs-cli-server":!1}async function ua(){const r=await rr(),e=await da();return[...r,{context:"detected",data:e?ca:la}]}var qe=t(58837),ha=t(3210);const pa=(0,qe.A)({svg:{width:"auto",height:30},path:{fill:"#7df3e1"}}),ga=()=>{const r=pa();return(0,a.jsx)("svg",{className:r.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2079.95 456.05",children:(0,a.jsx)("path",{className:r.path,d:"M302.9,180a80.62,80.62,0,0,0,13.44-10.37c.8-.77,1.55-1.54,2.31-2.31a81.89,81.89,0,0,0,7.92-9.37,62.37,62.37,0,0,0,6.27-10.77,48.6,48.6,0,0,0,4.36-16.4c1.49-19.39-10-38.67-35.62-54.22L198.42,14,78.16,129.22l-78.29,75,108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.69,49.69,0,0,0-6.8-8.87,89.78,89.78,0,0,0,19.28,2.15H259a85.09,85.09,0,0,0,31-5.79A80.88,80.88,0,0,0,302.9,180Zm-100.59,59.8c-19.32,18.51-50.4,21.24-75.7,5.9l-75.13-45.6,67.44-64.65,76.42,46.39C222.88,198.57,221.36,221.6,202.31,239.84Zm8.94-82.21L140.6,114.74,205,53l69.37,42.11c25.94,15.73,29.31,37.05,10.55,55A60.71,60.71,0,0,1,211.25,157.63Zm29.86,190c-19.57,18.75-46.17,29.08-74.88,29.08a123.84,123.84,0,0,1-64.11-18.19L-.13,296.51v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.85,87.85,0,0,1,241.11,347.67Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,257.52V282.2l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.79A86.86,86.86,0,0,1,241.11,308.68Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,218.54v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.12,19.68-41.49v-1.82A87.14,87.14,0,0,1,241.11,269.7Zm83.69,25.74a94.16,94.16,0,0,1-60.19,25.86h0V348a81.6,81.6,0,0,0,51.73-22.37c14-13.38,21.15-28.11,21-42.64v-2.2A95.14,95.14,0,0,1,324.8,295.44Zm-83.69,91.21c-19.57,18.75-46.17,29.09-74.88,29.09a123.76,123.76,0,0,1-64.11-18.2L-.13,335.49v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.35,87.35,0,0,1,241.11,386.65Zm85.75-210.21c-.68.69-1.35,1.38-2.06,2.05a99.19,99.19,0,0,1-22.23,15.69,94.53,94.53,0,0,1-26.24,8.71,97.84,97.84,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a52.7,52.7,0,0,1,1.13,12V231h.05A84.48,84.48,0,0,0,290,225.47a80.83,80.83,0,0,0,26.38-16.82c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,62.85,62.85,0,0,0,6.29-10.78,48.5,48.5,0,0,0,4.32-16.44c.09-1.23.2-2.47.19-3.7v-2c-.72,1-1.48,2.06-2.26,3.09A98,98,0,0,1,326.86,176.44Zm0,77.92c-.68.7-1.3,1.41-2,2.1a94.09,94.09,0,0,1-60.19,25.85h0V309h0a81.65,81.65,0,0,0,51.73-22.37,73.51,73.51,0,0,0,16.48-22.49,48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A95.81,95.81,0,0,1,326.82,254.36Zm0-39c-.68.7-1.3,1.41-2,2.1a92.22,92.22,0,0,1-10.62,8.65,93.53,93.53,0,0,1-11.63,7,95.63,95.63,0,0,1-37.94,10.18h-.05l0,26.67h0a81.63,81.63,0,0,0,51.73-22.37c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,63.16,63.16,0,0,0,6.29-10.77,48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A98.19,98.19,0,0,1,326.82,215.38Zm241-88.84q7.94,0,17.09.17t18.12,1a139.3,139.3,0,0,1,16.74,2.57,42.78,42.78,0,0,1,13.3,5.14,64.27,64.27,0,0,1,20.54,19.89Q662,168,662,186.54q0,19.54-9.49,33.78t-27.1,21.09v.68q22.78,4.82,34.87,20.58t12.08,38.4a72.62,72.62,0,0,1-4.83,26.06,65.29,65.29,0,0,1-14.33,22.46,71.57,71.57,0,0,1-23.47,15.78q-14,6-32.28,6H478.38V126.54Zm9,105.27q28,0,40.21-9.78t12.26-29.31q0-13-4.14-20.58a29.47,29.47,0,0,0-11.4-11.66A45,45,0,0,0,597,155.17a161.2,161.2,0,0,0-20.19-1.2h-65.6v77.84Zm16.57,112.13q21.74,0,34-11.66T639.59,300q0-12-4.48-19.88a34.85,34.85,0,0,0-11.91-12.52,50.14,50.14,0,0,0-17.09-6.52,105,105,0,0,0-20-1.88H511.17v84.7Zm274.79,26.74q-7.61,4.45-21.06,4.46-11.4,0-18.12-6.34t-6.74-20.75a70.17,70.17,0,0,1-28.13,20.75,97.87,97.87,0,0,1-57.65,3.6,53.51,53.51,0,0,1-18.82-8.58A41.19,41.19,0,0,1,705,348.56q-4.65-9.42-4.66-22.8,0-15.09,5.18-24.69a44.92,44.92,0,0,1,13.64-15.6,62.63,62.63,0,0,1,19.33-9.09q10.88-3.08,22.27-5.14,12.08-2.4,23-3.6a128,128,0,0,0,19.16-3.43c5.53-1.48,9.89-3.65,13.12-6.51s4.83-7,4.83-12.52q0-9.6-3.62-15.43a24.94,24.94,0,0,0-9.32-8.92,38.38,38.38,0,0,0-12.78-4.11,96.54,96.54,0,0,0-14-1q-18.63,0-31.07,7T736.6,249.29H707.26q.69-16.46,6.9-27.77a52.21,52.21,0,0,1,16.57-18.35,70,70,0,0,1,23.65-10.11A125.51,125.51,0,0,1,782.86,190a168.63,168.63,0,0,1,24,1.72,63.26,63.26,0,0,1,21.58,7A41.23,41.23,0,0,1,844,213.59q5.87,9.57,5.87,25v91q0,10.26,1.21,15.05t8.11,4.79a35.57,35.57,0,0,0,9-1.37Zm-47.64-90.87c-3.69,2.74-8.52,4.72-14.5,6s-12.26,2.27-18.82,3.07-13.17,1.71-19.85,2.73a73.7,73.7,0,0,0-18,4.94,32.62,32.62,0,0,0-12.94,9.73q-5,6.32-5,17.23a23.31,23.31,0,0,0,2.94,12.11,24.11,24.11,0,0,0,7.59,8,32,32,0,0,0,10.88,4.44,60.94,60.94,0,0,0,13.11,1.36q14.5,0,24.86-3.92a52.49,52.49,0,0,0,16.91-9.9,39.1,39.1,0,0,0,9.67-13,32.53,32.53,0,0,0,3.11-13.14ZM1002.07,225q-11.05-9.25-29.69-9.26-15.89,0-26.58,5.83A47.29,47.29,0,0,0,928.71,237a64.66,64.66,0,0,0-9.15,22.12A119.83,119.83,0,0,0,916.8,285a98.22,98.22,0,0,0,2.93,24,64.18,64.18,0,0,0,9.15,20.74,46.2,46.2,0,0,0,16.23,14.58q10,5.49,23.82,5.48,21.75,0,34-11.31t15-31.89h30q-4.83,32.91-24.68,50.75t-54,17.83q-20.37,0-36.07-6.52A69.86,69.86,0,0,1,907,350.11a79.92,79.92,0,0,1-15.88-28.63A118.64,118.64,0,0,1,885.73,285a129.41,129.41,0,0,1,5.18-37.21,85.63,85.63,0,0,1,15.71-30.17A73.46,73.46,0,0,1,933,197.35Q948.91,190,970,190a108.54,108.54,0,0,1,28.48,3.6,69.59,69.59,0,0,1,23.48,11.15,61,61,0,0,1,16.74,19q6.55,11.49,8.29,27.26h-30.38Q1013.11,234.21,1002.07,225Zm109.77-98.41v145l81.47-77.49h39.36l-70.77,64.46,75.95,112.82h-37.29l-61.1-92.59-27.62,25.38v67.21H1082.5V126.54Zm170.54,205.22a31.07,31.07,0,0,0,10.87,10.63,49,49,0,0,0,15.19,5.66,87.06,87.06,0,0,0,17.44,1.71,109.18,109.18,0,0,0,14.5-1,53.22,53.22,0,0,0,14-3.78,26.27,26.27,0,0,0,10.53-8q4.14-5.32,4.14-13.55,0-11.31-8.63-17.14a73.69,73.69,0,0,0-21.58-9.43q-12.94-3.6-28.13-6.52a146,146,0,0,1-28.14-8.23A58.16,58.16,0,0,1,1261,267.13q-8.64-9.6-8.63-26.75,0-13.38,6-23a49.26,49.26,0,0,1,15.53-15.61,71.76,71.76,0,0,1,21.4-8.91A99.41,99.41,0,0,1,1319,190a141.31,141.31,0,0,1,28,2.58,64.85,64.85,0,0,1,22.62,8.91,46.16,46.16,0,0,1,15.7,17.15q5.87,10.8,6.91,26.91h-29.35q-.69-8.57-4.48-14.23a29.36,29.36,0,0,0-9.67-9.08,44.16,44.16,0,0,0-12.94-5,67.68,67.68,0,0,0-14.33-1.54,87.29,87.29,0,0,0-13.29,1,45.28,45.28,0,0,0-12.26,3.6,24.49,24.49,0,0,0-9,6.86q-3.46,4.29-3.46,11.14a16.32,16.32,0,0,0,5.36,12.52,42.75,42.75,0,0,0,13.63,8.23,120,120,0,0,0,18.64,5.48q10.37,2.24,20.72,4.63,11,2.4,21.57,5.83A70.74,70.74,0,0,1,1382,284.1a44.55,44.55,0,0,1,13.12,14.23q5,8.58,5,21.26,0,16.13-6.73,26.75a52.5,52.5,0,0,1-17.61,17.14,73.89,73.89,0,0,1-24.51,9.09,146.3,146.3,0,0,1-27.1,2.57,126.24,126.24,0,0,1-28.31-3.09A69.56,69.56,0,0,1,1272,361.94a51.74,51.74,0,0,1-16.57-18.52q-6.21-11.49-6.9-27.95h29.34A32.65,32.65,0,0,0,1282.38,331.76Zm226.46-137.67v25.72h-35.56V329.88a31.37,31.37,0,0,0,.87,8.23,8.42,8.42,0,0,0,3.28,4.8,14.61,14.61,0,0,0,6.73,2.23,99.19,99.19,0,0,0,11.22.51h13.46v25.72H1486.4a105.8,105.8,0,0,1-19.5-1.55,28.65,28.65,0,0,1-13.12-5.65,24.09,24.09,0,0,1-7.42-11.66q-2.43-7.54-2.42-19.89V219.81h-30.38V194.09h30.38V140.94h29.34v53.15ZM1699.4,370.68q-7.61,4.45-21.06,4.46-11.4,0-18.12-6.34t-6.74-20.75a70.17,70.17,0,0,1-28.13,20.75,97.87,97.87,0,0,1-57.65,3.6,53.51,53.51,0,0,1-18.82-8.58,41.19,41.19,0,0,1-12.6-15.26q-4.65-9.42-4.66-22.8,0-15.09,5.18-24.69a44.92,44.92,0,0,1,13.64-15.6,62.63,62.63,0,0,1,19.33-9.09q10.88-3.08,22.27-5.14,12.07-2.4,23-3.6a128,128,0,0,0,19.16-3.43c5.53-1.48,9.89-3.65,13.12-6.51s4.83-7,4.83-12.52q0-9.6-3.62-15.43a24.94,24.94,0,0,0-9.32-8.92,38.38,38.38,0,0,0-12.78-4.11,96.54,96.54,0,0,0-14-1q-18.63,0-31.07,7t-13.46,26.57h-29.34q.67-16.46,6.9-27.77A52.21,52.21,0,0,1,1562,203.17a70,70,0,0,1,23.65-10.11,125.51,125.51,0,0,1,28.48-3.09,168.63,168.63,0,0,1,24,1.72,63.26,63.26,0,0,1,21.58,7,41.23,41.23,0,0,1,15.53,14.89q5.87,9.57,5.87,25v91q0,10.26,1.21,15.05t8.11,4.79a35.57,35.57,0,0,0,9-1.37Zm-47.64-90.87c-3.69,2.74-8.52,4.72-14.5,6s-12.26,2.27-18.82,3.07-13.17,1.71-19.85,2.73a73.7,73.7,0,0,0-17.95,4.94,32.62,32.62,0,0,0-12.94,9.73q-5,6.32-5,17.23a23.31,23.31,0,0,0,2.94,12.11,24.11,24.11,0,0,0,7.59,8,32,32,0,0,0,10.88,4.44,60.94,60.94,0,0,0,13.11,1.36q14.51,0,24.86-3.92a52.49,52.49,0,0,0,16.91-9.9,39.1,39.1,0,0,0,9.67-13,32.53,32.53,0,0,0,3.11-13.14Zm208.85,141.62q-20,21.6-62.83,21.6a122.11,122.11,0,0,1-25.37-2.74,78,78,0,0,1-23.48-8.92,54.41,54.41,0,0,1-17.43-16.11q-6.91-10-7.6-24.35h29.35a21.47,21.47,0,0,0,5,13.38,36.67,36.67,0,0,0,11.4,8.91,55.52,55.52,0,0,0,14.67,5,79.51,79.51,0,0,0,15.19,1.55q14.49,0,24.51-5A46,46,0,0,0,1840.59,401a56.53,56.53,0,0,0,9.49-21.09,117.46,117.46,0,0,0,2.94-27.09V341.19h-.7q-7.59,16.46-23,24.18a71.8,71.8,0,0,1-32.63,7.71q-20,0-34.86-7.2A72.88,72.88,0,0,1,1737,346.51a82.13,82.13,0,0,1-15-28.46,116.62,116.62,0,0,1-5-34.47,133.92,133.92,0,0,1,4.14-32.4A88.17,88.17,0,0,1,1735,221a75.49,75.49,0,0,1,25.55-22.29q15.87-8.75,39-8.75a66.21,66.21,0,0,1,31.07,7.38,52.13,52.13,0,0,1,22.09,22.11h.35V194.09h27.61V356.28Q1880.63,399.83,1860.61,421.43Zm-37.46-79.72a47.94,47.94,0,0,0,16.4-15.78,71.89,71.89,0,0,0,9.15-22.11,106.77,106.77,0,0,0,2.93-24.69,96.71,96.71,0,0,0-2.76-23,64,64,0,0,0-8.8-20.4,45.76,45.76,0,0,0-15.71-14.57q-9.66-5.49-23.47-5.49-14.16,0-24.17,5.32a46.77,46.77,0,0,0-16.4,14.23,60.14,60.14,0,0,0-9.32,20.57,99.69,99.69,0,0,0-2.93,24.35,120.63,120.63,0,0,0,2.42,24,67.5,67.5,0,0,0,8.28,21.77,46.37,46.37,0,0,0,15.54,15.78q9.66,6,24.16,6T1823.15,341.71Zm228,18.34q-20,15.09-50.41,15.09-21.4,0-37.11-6.86a73.16,73.16,0,0,1-26.41-19.2,81.52,81.52,0,0,1-16-29.49,141.12,141.12,0,0,1-6-37.38,106.1,106.1,0,0,1,6.21-37A88.56,88.56,0,0,1,1938.8,216a79.09,79.09,0,0,1,26.58-19.2A81.66,81.66,0,0,1,1999,190q23.82,0,39.53,9.78a78,78,0,0,1,25.2,24.86,98.18,98.18,0,0,1,13.12,32.91,140.6,140.6,0,0,1,2.93,34h-133.6a70,70,0,0,0,2.76,22.12,49.9,49.9,0,0,0,10,18.51A49.1,49.1,0,0,0,1976.6,345q10.7,4.82,25.2,4.8,18.65,0,30.55-8.57t15.71-26.06h29Q2071.18,345,2051.17,360.05Zm-7.08-113.84a50,50,0,0,0-10.7-16,53.1,53.1,0,0,0-56.62-10.63,47.48,47.48,0,0,0-15.71,10.81,51.69,51.69,0,0,0-10.35,15.94,60.18,60.18,0,0,0-4.49,19.37h102.53A59.47,59.47,0,0,0,2044.09,246.21ZM302.9,180a80.62,80.62,0,0,0,13.44-10.37c.8-.77,1.55-1.54,2.31-2.31a81.89,81.89,0,0,0,7.92-9.37,62.37,62.37,0,0,0,6.27-10.77,48.6,48.6,0,0,0,4.36-16.4c1.49-19.39-10-38.67-35.62-54.22L198.42,14,78.16,129.22l-78.29,75,108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.69,49.69,0,0,0-6.8-8.87,89.78,89.78,0,0,0,19.28,2.15H259a85.09,85.09,0,0,0,31-5.79A80.88,80.88,0,0,0,302.9,180Zm-100.59,59.8c-19.32,18.51-50.4,21.24-75.7,5.9l-75.13-45.6,67.44-64.65,76.42,46.39C222.88,198.57,221.36,221.6,202.31,239.84Zm8.94-82.21L140.6,114.74,205,53l69.37,42.11c25.94,15.73,29.31,37.05,10.55,55A60.71,60.71,0,0,1,211.25,157.63Zm29.86,190c-19.57,18.75-46.17,29.08-74.88,29.08a123.84,123.84,0,0,1-64.11-18.19L-.13,296.51v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.85,87.85,0,0,1,241.11,347.67Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,257.52V282.2l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.79A86.86,86.86,0,0,1,241.11,308.68Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,218.54v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.12,19.68-41.49v-1.82A87.14,87.14,0,0,1,241.11,269.7Zm83.69,25.74a94.16,94.16,0,0,1-60.19,25.86h0V348a81.6,81.6,0,0,0,51.73-22.37c14-13.38,21.15-28.11,21-42.64v-2.2A95.14,95.14,0,0,1,324.8,295.44Zm-83.69,91.21c-19.57,18.75-46.17,29.09-74.88,29.09a123.76,123.76,0,0,1-64.11-18.2L-.13,335.49v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.35,87.35,0,0,1,241.11,386.65Zm85.75-210.21c-.68.69-1.35,1.38-2.06,2.05a99.19,99.19,0,0,1-22.23,15.69,94.53,94.53,0,0,1-26.24,8.71,97.84,97.84,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a52.7,52.7,0,0,1,1.13,12V231h.05A84.48,84.48,0,0,0,290,225.47a80.83,80.83,0,0,0,26.38-16.82c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,62.85,62.85,0,0,0,6.29-10.78,48.5,48.5,0,0,0,4.32-16.44c.09-1.23.2-2.47.19-3.7v-2c-.72,1-1.48,2.06-2.26,3.09A98,98,0,0,1,326.86,176.44Zm0,77.92c-.68.7-1.3,1.41-2,2.1a94.09,94.09,0,0,1-60.19,25.85h0V309h0a81.65,81.65,0,0,0,51.73-22.37,73.51,73.51,0,0,0,16.48-22.49,48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A95.81,95.81,0,0,1,326.82,254.36Zm0-39c-.68.7-1.3,1.41-2,2.1a92.22,92.22,0,0,1-10.62,8.65,93.53,93.53,0,0,1-11.63,7,95.63,95.63,0,0,1-37.94,10.18h-.05l0,26.67h0a81.63,81.63,0,0,0,51.73-22.37c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,63.16,63.16,0,0,0,6.29-10.77,48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A98.19,98.19,0,0,1,326.82,215.38Z"})})},fa=(0,qe.A)({svg:{width:"auto",height:28},path:{fill:"#7df3e1"}}),ma=()=>{const r=fa();return(0,a.jsx)("svg",{className:r.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 337.46 428.5",children:(0,a.jsx)("path",{className:r.path,d:"M303,166.05a80.69,80.69,0,0,0,13.45-10.37c.79-.77,1.55-1.53,2.3-2.3a83.12,83.12,0,0,0,7.93-9.38A63.69,63.69,0,0,0,333,133.23a48.58,48.58,0,0,0,4.35-16.4c1.49-19.39-10-38.67-35.62-54.22L198.56,0,78.3,115.23,0,190.25l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.22,49.22,0,0,0-6.8-8.87A89.17,89.17,0,0,0,259,178.29h.15a85.08,85.08,0,0,0,31-5.79A80.88,80.88,0,0,0,303,166.05ZM202.45,225.86c-19.32,18.51-50.4,21.23-75.7,5.9L51.61,186.15l67.45-64.64,76.41,46.38C223,184.58,221.49,207.61,202.45,225.86Zm8.93-82.22-70.65-42.89L205.14,39,274.51,81.1c25.94,15.72,29.31,37,10.55,55A60.69,60.69,0,0,1,211.38,143.64Zm29.86,190c-19.57,18.75-46.17,29.09-74.88,29.09a123.73,123.73,0,0,1-64.1-18.2L0,282.52v24.67L108.6,373.1a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.27,87.27,0,0,1,241.24,333.68Zm0-39c-19.57,18.75-46.17,29.08-74.88,29.08a123.81,123.81,0,0,1-64.1-18.19L0,243.53v24.68l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.5v-1.78A87.27,87.27,0,0,1,241.24,294.7Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.81,123.81,0,0,1-64.1-18.19L0,204.55v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.82A86.09,86.09,0,0,1,241.24,255.71Zm83.7,25.74a94.15,94.15,0,0,1-60.2,25.86h0V334a81.6,81.6,0,0,0,51.74-22.37c14-13.38,21.14-28.11,21-42.64v-2.19A94.92,94.92,0,0,1,324.94,281.45Zm-83.7,91.21c-19.57,18.76-46.17,29.09-74.88,29.09a123.73,123.73,0,0,1-64.1-18.2L0,321.5v24.68l108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A86.29,86.29,0,0,1,241.24,372.66ZM327,162.45c-.68.69-1.35,1.38-2.05,2.06a94.37,94.37,0,0,1-10.64,8.65,91.35,91.35,0,0,1-11.6,7,94.53,94.53,0,0,1-26.24,8.71,97.69,97.69,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a53.27,53.27,0,0,1,1.14,12V217h.05a84.41,84.41,0,0,0,25.35-5.55,81,81,0,0,0,26.39-16.82c.8-.77,1.5-1.56,2.26-2.34a82.08,82.08,0,0,0,7.93-9.38A63.76,63.76,0,0,0,333,172.17a48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7V150q-1.08,1.54-2.25,3.09A96.73,96.73,0,0,1,327,162.45Zm0,77.92c-.69.7-1.31,1.41-2,2.1a94.2,94.2,0,0,1-60.2,25.86h0l0,26.67h0a81.6,81.6,0,0,0,51.74-22.37A73.51,73.51,0,0,0,333,250.13a48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.47.19-3.71v-2.19c-.74,1.07-1.46,2.15-2.27,3.21A95.68,95.68,0,0,1,327,240.37Zm0-39c-.69.7-1.31,1.41-2,2.1a93.18,93.18,0,0,1-10.63,8.65,91.63,91.63,0,0,1-11.63,7,95.47,95.47,0,0,1-37.94,10.18h0V256h0a81.65,81.65,0,0,0,51.74-22.37c.8-.77,1.5-1.56,2.26-2.34a82.08,82.08,0,0,0,7.93-9.38A63.76,63.76,0,0,0,333,211.15a48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.46,2.16-2.27,3.22A95.68,95.68,0,0,1,327,201.39Z"})})};var be=t(72664);const Ar={isOpen:!1,setOpen:()=>{}},xr=(0,Tt.createContext)(Ar),Cr=(0,ce.tK)("sidebar-open-state-context");function br(r){const{children:e,value:n}=r;return(0,a.jsx)(xr.Provider,{value:n,children:(0,a.jsx)(Cr.Provider,{value:(0,Ee.B)({1:n}),children:e})})}const ks=()=>{const r=(0,Tt.useContext)(Cr),e=(0,Tt.useContext)(xr);if(r===void 0)return e||Ar;const n=r.atVersion(1);if(n===void 0)throw new Error("No context found for version 1.");return n};var Sr=t(72072),Or=t(73524),on=t(10394),Pr=t(5893),ya=t(53373),un=t.n(ya),va=t(1125),Tr=t(29365),Ea=t(73845),Ws=t(72501),Aa=t(32881),xa=t(27326),Ca=t(13085);const Rr=(0,Tt.createContext)({selectedMenuItemIndex:-1,setSelectedMenuItemIndex:()=>{}});var Ks=t(34435);const ba=(0,qe.A)(r=>({root:{flexGrow:0,margin:r.spacing(0,2),color:r.palette.navigation.color},selected:e=>({color:`${r.palette.navigation.selectedColor}!important`,borderTop:`solid ${e.sidebarConfig.selectedIndicatorWidth}px ${r.palette.navigation.indicator}`,marginTop:"-1px"}),label:{display:"none"}})),Sa=r=>{const{to:e,label:n,icon:o,value:i}=r,{sidebarConfig:c}=(0,Tt.useContext)(be.yY),A=ba({sidebarConfig:c}),v=(0,p.zy)(),{selectedMenuItemIndex:R,setSelectedMenuItemIndex:$}=(0,Tt.useContext)(Rr),tt=(bt,Ot)=>{$(Ot===R?-1:Ot)},ft=i===R&&R>=0||i!==R&&!(R>=0)&&e===v.pathname;return(0,a.jsx)(Ca.A,{"aria-label":n,label:n,icon:o,component:Sr.N_,to:e||v.pathname,onChange:tt,value:i,selected:ft,classes:A})},wr=r=>{const{children:e,to:n,label:o,icon:i,value:c}=r,{isMobile:A}=(0,Ks.Ut)();return A?(0,a.jsx)(Sa,{to:n,label:o,icon:i,value:c}):(0,a.jsx)(a.Fragment,{children:e})},Ir=(0,qe.A)(r=>({root:{position:"fixed",backgroundColor:r.palette.navigation.background,color:r.palette.navigation.color,bottom:0,left:0,right:0,zIndex:r.zIndex.snackbar,borderTop:"1px solid #383838","@media print":{display:"none"}},overlay:e=>({background:r.palette.navigation.background,width:"100%",bottom:`${e.sidebarConfig.mobileSidebarHeight}px`,height:`calc(100% - ${e.sidebarConfig.mobileSidebarHeight}px)`,flex:"0 1 auto",overflow:"auto"}),overlayHeader:{display:"flex",color:r.palette.navigation.color,alignItems:"center",justifyContent:"space-between",padding:r.spacing(2,3)},overlayHeaderClose:{color:r.palette.navigation.color},marginMobileSidebar:e=>({marginBottom:`${e.sidebarConfig.mobileSidebarHeight}px`})})),Oa=r=>(0,Cn.orderBy)(r,({props:{priority:e}})=>Number.isInteger(e)?e:-1,"desc"),Pa=(0,Tt.createElement)(wr).type,Ta=({children:r,label:e="Menu",open:n,onClose:o})=>{const{sidebarConfig:i}=(0,Tt.useContext)(be.yY),c=Ir({sidebarConfig:i});return(0,a.jsxs)(Ea.Ay,{anchor:"bottom",open:n,onClose:o,ModalProps:{BackdropProps:{classes:{root:c.marginMobileSidebar}}},classes:{root:c.marginMobileSidebar,paperAnchorBottom:c.overlay},children:[(0,a.jsxs)(on.A,{className:c.overlayHeader,children:[(0,a.jsx)(Ws.A,{variant:"h3",children:e}),(0,a.jsx)(Tr.A,{onClick:o,classes:{root:c.overlayHeaderClose},children:(0,a.jsx)(Aa.A,{})})]}),(0,a.jsx)(on.A,{component:"nav",children:r})]})},Ra=r=>{const{sidebarConfig:e}=(0,Tt.useContext)(be.yY),{children:n}=r,o=Ir({sidebarConfig:e}),i=(0,p.zy)(),[c,A]=(0,Tt.useState)(-1);(0,Tt.useEffect)(()=>{A(-1)},[i.pathname]);let v=(0,rs.O)(n,$=>$.getElements().filter(tt=>tt.type===Pa));if(n)v.length?v=Oa(v):v.push((0,a.jsx)(wr,{icon:(0,a.jsx)(xa.A,{}),children:n},"default_menu"));else return null;const R=c>=0&&!v[c].props.to;return(0,a.jsx)(br,{value:{isOpen:!0,setOpen:()=>{}},children:(0,a.jsxs)(Rr.Provider,{value:{selectedMenuItemIndex:c,setSelectedMenuItemIndex:A},children:[(0,a.jsx)(Ta,{label:v[c]&&v[c].props.label,open:R,onClose:()=>A(-1),children:v[c]&&v[c].props.children}),(0,a.jsx)(va.A,{className:o.root,"data-testid":"mobile-sidebar-root",component:"nav",children:v})]})})};var wa=t(87849),Ia=t(10315);const Dr=(0,qe.A)(r=>({root:{left:0,top:0,bottom:0,zIndex:r.zIndex.appBar,position:"fixed"},drawer:{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",left:0,top:0,bottom:0,position:"absolute",background:r.palette.navigation.background,overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",transition:r.transitions.create("width",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.shortest}),"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"},"@media print":{display:"none"}},drawerWidth:e=>({width:e.sidebarConfig.drawerWidthClosed}),drawerOpen:e=>({width:e.sidebarConfig.drawerWidthOpen,transition:r.transitions.create("width",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.shorter})}),visuallyHidden:{top:0,position:"absolute",zIndex:1e3,transform:"translateY(-200%)","&:focus":{transform:"translateY(5px)"}}}),{name:"BackstageSidebar"});var Da=function(r){return r[r.Closed=0]="Closed",r[r.Idle=1]="Idle",r[r.Open=2]="Open",r}(Da||{});const La=r=>{const{sidebarConfig:e}=(0,Tt.useContext)(be.yY),{openDelayMs:n=e.defaultOpenDelayMs,closeDelayMs:o=e.defaultCloseDelayMs,disableExpandOnHover:i,children:c}=r,A=Dr({sidebarConfig:e}),v=(0,Pr.A)(je=>je.breakpoints.down("md"),{noSsr:!0}),[R,$]=(0,Tt.useState)(0),tt=(0,Tt.useRef)(),{isPinned:ft,toggleSidebarPinState:bt}=(0,Ks.Ut)(),Ot=()=>{ft||i||(tt.current&&(clearTimeout(tt.current),tt.current=void 0),R!==2&&!v&&(tt.current=window.setTimeout(()=>{tt.current=void 0,$(2)},n),$(1)))},Mt=()=>{ft||i||(tt.current&&(clearTimeout(tt.current),tt.current=void 0),R===1?$(0):R===2&&(tt.current=window.setTimeout(()=>{tt.current=void 0,$(0)},o)))},Jt=R===2&&!v||ft,ye=je=>{je?($(2),bt()):($(0),bt())};return(0,a.jsxs)("nav",{style:{},"aria-label":"sidebar nav",children:[(0,a.jsx)(Ba,{}),(0,a.jsx)(br,{value:{isOpen:Jt,setOpen:ye},children:(0,a.jsx)(on.A,{className:A.root,"data-testid":"sidebar-root",onMouseEnter:i?()=>{}:Ot,onFocus:i?()=>{}:Ot,onMouseLeave:i?()=>{}:Mt,onBlur:i?()=>{}:Mt,children:(0,a.jsx)(on.A,{className:un()(A.drawer,A.drawerWidth,{[A.drawerOpen]:Jt}),children:c})})})]})},Ma=r=>{const e=(0,be.Rv)(r.sidebarOptions??{}),n=(0,be.i8)(r.submenuOptions??{}),{children:o,disableExpandOnHover:i,openDelayMs:c,closeDelayMs:A}=r,{isMobile:v}=(0,Ks.Ut)();return v?(0,a.jsx)(Ra,{children:o}):(0,a.jsx)(be.yY.Provider,{value:{sidebarConfig:e,submenuConfig:n},children:(0,a.jsx)(La,{openDelayMs:c,closeDelayMs:A,disableExpandOnHover:i,children:o})})};function Ba(){const{sidebarConfig:r}=(0,Tt.useContext)(be.yY),{focusContent:e,contentRef:n}=(0,Or.H)(),o=Dr({sidebarConfig:r}),{t:i}=(0,wa.i)(Ia.O);return n?.current?(0,a.jsx)(u.A,{onClick:e,variant:"contained",className:un()(o.visuallyHidden),children:i("skipToContent")}):null}var ja=t(94509),as=t(58502),Ua=t(79065),$a=t(55704),Lr=t(62248);const Fa=(0,qe.A)(r=>({root:{zIndex:1e3,position:"relative",overflow:"visible",width:r.spacing(7)+1},drawer:e=>({display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",opacity:0,[r.breakpoints.up("sm")]:{marginLeft:e.left,transition:r.transitions.create(["margin-left","opacity"],{easing:r.transitions.easing.sharp,duration:e.submenuConfig.defaultOpenDelayMs})},top:0,bottom:0,padding:0,background:r.palette.navigation.submenu?.background??"#404040",overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",cursor:"default",width:e.submenuConfig.drawerWidthClosed,transitionDelay:`${e.submenuConfig.defaultOpenDelayMs}ms`,"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"}}),drawerOpen:e=>({marginLeft:e.left,opacity:1,width:e.submenuConfig.drawerWidthOpen,[r.breakpoints.down("xs")]:{width:"100%",position:"relative",paddingLeft:r.spacing(3),left:0,top:0}}),title:{fontSize:r.typography.h5.fontSize,fontWeight:r.typography.fontWeightMedium,color:r.palette.navigation.color,padding:r.spacing(2.5),[r.breakpoints.down("xs")]:{display:"none"}}}),{name:"BackstageSidebarSubmenu"}),Na=r=>{const{isOpen:e}=ks(),{sidebarConfig:n,submenuConfig:o}=(0,Tt.useContext)(be.yY),i=e?n.drawerWidthOpen:n.drawerWidthClosed,c=Fa({left:i,submenuConfig:o}),{isHoveredOn:A}=(0,Tt.useContext)(be.U1),[v,R]=(0,Tt.useState)(!1);return(0,Tt.useEffect)(()=>{R(A)},[A]),(0,a.jsxs)(on.A,{className:un()(c.drawer,{[c.drawerOpen]:v}),children:[(0,a.jsx)(Ws.A,{variant:"h5",component:"span",className:c.title,children:r.title}),r.children]})};var ka=t(45810),Mr=t.n(ka);function Br(r,e,n=!1){const o=new URLSearchParams(e.search).toString(),i=Mr().parse(o),c=new URLSearchParams(r.search).toString(),A=Mr().parse(c),v=n?Cn.isEqual:Cn.isMatch;return(0,Cn.isEqual)(e.pathname,r.pathname)&&v(A,i)}const Wa=r=>(0,qe.A)(e=>({root:{color:e.palette.navigation.color,display:"flex",flexFlow:"row nowrap",alignItems:"center",height:48,cursor:"pointer"},buttonItem:{background:"none",border:"none",width:"100%",margin:0,padding:0,textAlign:"inherit",font:"inherit",textTransform:"none"},closed:{width:r.drawerWidthClosed,justifyContent:"center"},open:{[e.breakpoints.up("sm")]:{width:r.drawerWidthOpen}},highlightable:{"&:hover":{background:e.palette.navigation.navItem?.hoverBackground??"#404040"}},highlighted:{background:e.palette.navigation.navItem?.hoverBackground??"#404040"},label:{fontWeight:"bold",whiteSpace:"nowrap",lineHeight:"auto",flex:"3 1 auto",width:"110px",overflow:"hidden","text-overflow":"ellipsis"},iconContainer:{boxSizing:"border-box",height:"100%",width:r.iconContainerWidth,marginRight:-e.spacing(2),display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"0"},searchRoot:{marginBottom:12},searchField:{color:"#b5b5b5",fontWeight:e.typography.fontWeightBold,fontSize:e.typography.fontSize},searchFieldHTMLInput:{padding:e.spacing(2,0,2)},searchContainer:{width:r.drawerWidthOpen-r.iconContainerWidth},secondaryAction:{width:e.spacing(6),textAlign:"center",marginRight:e.spacing(1)},closedItemIcon:{width:"100%",justifyContent:"center"},submenuArrow:{display:"flex"},expandButton:{background:"none",border:"none",color:e.palette.navigation.color,width:"100%",cursor:"pointer",position:"relative",height:48},arrows:{position:"absolute",right:10},selected:{"&$root":{borderLeft:`solid ${r.selectedIndicatorWidth}px ${e.palette.navigation.indicator}`,color:e.palette.navigation.selectedColor},"&$closed":{width:r.drawerWidthClosed},"& $closedItemIcon":{paddingRight:r.selectedIndicatorWidth},"& $iconContainer":{marginLeft:-r.selectedIndicatorWidth}}}),{name:"BackstageSidebarItem"});function is(r){return(0,Tt.useMemo)(()=>Wa(r),[r])()}const Ka=(r,e)=>(0,rs.O)(r.props.children,n=>{let o=!1;return n.getElements().forEach(({props:{to:i,dropdownItems:c}})=>{if(!o){if(c?.length){c.forEach(({to:A})=>o=o||Br(e,(0,Rn.o1)(A)));return}i&&(o=Br(e,(0,Rn.o1)(i)))}}),o},[e.pathname]);function zs(r){return r.to===void 0}const za=(0,Tt.createElement)(Na).type,Ha=(0,Tt.forwardRef)(function({to:e,end:n,style:o,className:i,activeStyle:c,caseSensitive:A,activeClassName:v="active","aria-current":R="page",...$},tt){let{pathname:ft}=(0,p.zy)(),{pathname:bt}=(0,p.x$)(e);A||(ft=ft.toLocaleLowerCase("en-US"),bt=bt.toLocaleLowerCase("en-US"));let Ot=ft===bt;!Ot&&!n&&(Ot=ft.startsWith(`${bt}/`));const Mt=Ot?R:void 0;return(0,a.jsx)(O.N_,{...$,to:e,ref:tt,"aria-current":Mt,style:{...o,...Ot?c:void 0},className:un()([typeof i!="function"?i:void 0,Ot?v:void 0])})}),jr=(0,Tt.forwardRef)((r,e)=>{const{icon:n,text:o,hasNotifications:i=!1,hasSubmenu:c=!1,disableHighlight:A=!1,onClick:v,noTrack:R,children:$,className:tt,...ft}=r,{sidebarConfig:bt}=(0,Tt.useContext)(be.yY),Ot=is(bt),{isOpen:Mt}=ks(),Jt=!Mt&&c?{display:"flex",marginLeft:"20px"}:{lineHeight:"0"},ye=(0,a.jsxs)(on.A,{style:Jt,children:[(0,a.jsx)(n,{fontSize:"small"}),!Mt&&c?(0,a.jsx)(Lr.A,{fontSize:"small"}):(0,a.jsx)(a.Fragment,{})]}),je=(0,a.jsx)(ja.A,{color:"secondary",variant:"dot",overlap:"circular",invisible:!i,className:un()({[Ot.closedItemIcon]:!Mt}),children:ye}),Le=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(on.A,{"data-testid":"login-button",className:Ot.iconContainer,children:je}),o&&(0,a.jsx)(Ws.A,{variant:"subtitle2",component:"span",className:Ot.label,children:o}),(0,a.jsx)("div",{className:Ot.secondaryAction,children:$})]}),hn=Mt?Le:je,Fr={onClick:v,className:un()(tt,Ot.root,Mt?Ot.open:Ot.closed,zs(r)&&Ot.buttonItem,{[Ot.highlightable]:!A})},Nr=(0,ir.s)(),{pathname:Hs}=(0,p.x$)(!zs(r)&&r.to?r.to:""),kr=(0,Tt.useCallback)(hi=>{if(!R){const pi="click",gi=o??"Sidebar Item",fi=Hs?{attributes:{to:Hs}}:void 0;Nr.captureEvent(pi,gi,fi)}v?.(hi)},[Nr,o,Hs,R,v]);return zs(r)?(0,a.jsx)(u.A,{role:"button","aria-label":o,...Fr,ref:e,onClick:kr,children:hn}):(0,a.jsx)(Ha,{...Fr,activeClassName:Ot.selected,to:r.to?r.to:"",ref:e,"aria-label":o||r.to,...ft,onClick:kr,children:hn})}),Va=({children:r,...e})=>{const{sidebarConfig:n}=(0,Tt.useContext)(be.yY),o=is(n),[i,c]=(0,Tt.useState)(!1),A=(0,p.zy)(),v=Ka(r,A),R=(0,Pr.A)(bt=>bt.breakpoints.down("sm")),$=()=>{c(!0)},tt=()=>{c(!1)},ft=()=>R?i?(0,a.jsx)($a.A,{fontSize:"small",className:o.submenuArrow}):(0,a.jsx)(Ua.A,{fontSize:"small",className:o.submenuArrow}):!i&&(0,a.jsx)(Lr.A,{fontSize:"small",className:o.submenuArrow});return(0,a.jsx)(be.U1.Provider,{value:{isHoveredOn:i,setIsHoveredOn:c},children:(0,a.jsxs)("div",{"data-testid":"item-with-submenu",onMouseLeave:tt,onTouchStart:i?tt:$,onMouseEnter:$,className:un()(i&&o.highlighted),children:[(0,a.jsx)(jr,{hasSubmenu:!0,className:v?o.selected:"",...e,children:ft()}),i&&r]})})},Ur=(0,Tt.forwardRef)((r,e)=>{const[n]=(0,rs.O)(r.children,o=>o.getElements().filter(i=>i.type===za));return n?(0,a.jsx)(Va,{...r,children:n}):(0,a.jsx)(jr,{...r,ref:e})});function Li(r){const{sidebarConfig:e}=useContext(SidebarConfigContext),[n,o]=useState(""),i=is(e),c=r.icon?r.icon:SearchIcon,A=()=>{r.onSearch(n),o("")},v=ft=>{ft.key==="Enter"&&(ft.preventDefault(),A())},R=ft=>{o(ft.target.value)},$=ft=>{ft.preventDefault(),ft.stopPropagation()},tt=ft=>{A(),ft.preventDefault()};return _jsx(Box,{className:i.searchRoot,children:_jsx(Ur,{icon:c,to:r.to,onClick:tt,disableHighlight:!0,children:_jsx(TextField,{placeholder:"Search",value:n,onClick:$,onChange:R,onKeyDown:v,className:i.searchContainer,InputProps:{disableUnderline:!0,className:i.searchField},inputProps:{className:i.searchFieldHTMLInput}})})})}const Mi=(0,as.A)("div")({flex:1},{name:"BackstageSidebarSpace"}),Bi=(0,as.A)("div")({height:8},{name:"BackstageSidebarSpacer"}),Ga=(0,as.A)("hr")(({theme:r})=>({height:1,width:"100%",background:"#383838",border:"none",margin:r.spacing(1.2,0)}),{name:"BackstageSidebarDivider"}),Ya=r=>({overflowY:"auto","&::-webkit-scrollbar":{backgroundColor:r.palette.background.default,width:"5px",borderRadius:"5px"},"&::-webkit-scrollbar-thumb":{backgroundColor:r.palette.text.secondary,borderRadius:"5px"}}),ji=(0,as.A)("div")(({theme:r})=>{const e=Ya(r);return{flex:"0 1 auto",overflowX:"hidden",width:"100%",minHeight:"48px",overflowY:"hidden","@media (hover: none)":e,"&:hover":e}}),Ui=()=>{const{sidebarConfig:r}=useContext(SidebarConfigContext),e=is(r),{isOpen:n,setOpen:o}=useSidebarOpenState();if(useMediaQuery(A=>A.breakpoints.down("md"),{noSsr:!0}))return null;const c=()=>{o(!n)};return _jsx(Button,{role:"button",onClick:c,className:e.expandButton,"aria-label":"Expand Sidebar","data-testid":"sidebar-expand-button",children:_jsx(Box,{className:e.arrows,children:n?_jsx(DoubleArrowLeft,{}):_jsx(DoubleArrowRight,{})})})},Qa=(0,qe.A)({root:{width:be.hC.drawerWidthClosed,height:3*be.hC.logoHeight,display:"flex",flexFlow:"row nowrap",alignItems:"center",marginBottom:-14},link:{width:be.hC.drawerWidthClosed,marginLeft:24}}),Za=()=>{const r=Qa(),{isOpen:e}=ks();return(0,a.jsx)("div",{className:r.root,children:(0,a.jsx)(Sr.N_,{to:"/docs/default/component/local/",underline:"none",className:r.link,children:e?(0,a.jsx)(ga,{}):(0,a.jsx)(ma,{})})})},Ja=({children:r})=>(0,a.jsxs)(Or.G,{children:[(0,a.jsxs)(Ma,{children:[(0,a.jsx)(Za,{}),(0,a.jsx)(Ga,{}),(0,a.jsx)(Ur,{icon:ha.A,to:"/docs/default/component/local",text:"Docs Preview"})]}),r]});var Xa=t(71677),_a=t(62437),qa=t(55484),ti=t(45061),ei=t(13976);const ni=(0,qe.A)(r=>({headerIcon:{color:r.palette.common.white,width:"32px",height:"32px"},content:{backgroundColor:r.palette.background.default},contentToolbar:{display:"flex",justifyContent:"flex-end",padding:0}}));var si=function(r){return r.LIGHT="light",r.DARK="dark",r}(si||{});const ri=()=>{const r=(0,Tn.gf)(Xn),e=ni(),[n,o]=(0,Tt.useState)(r.getActiveThemeId()==="dark"?"dark":"light"),i={light:{icon:qa.A,title:"Dark theme"},dark:{icon:_a.A,title:"Light theme"}},{title:c,icon:A}=i[n],v=()=>{o(R=>{const $=R==="light"?"dark":"light";return r.setActiveThemeId($),$})};return(0,a.jsx)(on.A,{display:"flex",alignItems:"center",mr:2,children:(0,a.jsx)(Xa.Ay,{title:c,arrow:!0,children:(0,a.jsx)(Tr.A,{size:"small",onClick:v,children:(0,a.jsx)(A,{className:e.headerIcon})})})})},oi=()=>(0,a.jsxs)(b.Wj,{children:[(0,a.jsx)(ti.T,{}),(0,a.jsx)(ei.p,{withSearch:!1})]}),ai=(0,a.jsx)(oi,{}),$r=Fo({apis:ia,configLoader:ua,plugins:Object.values(s)}),ii=$r.getProvider(),ci=$r.getRouter(),li=b.Ju.provide((0,d.Hr)({name:"ThemeToggleAddon",component:ri,location:f.e.Header})),di=(0,a.jsxs)(gr,{children:[(0,a.jsx)(p.C5,{to:"/docs/default/component/local/"},"/"),(0,a.jsx)(p.qh,{path:"/catalog/:namespace/:kind/:name",element:(0,a.jsx)(ra,{})}),(0,a.jsx)(p.qh,{path:"/docs",element:(0,a.jsx)(b.$j,{}),children:(0,a.jsx)(h.K,{})}),(0,a.jsxs)(p.qh,{path:"/docs/:namespace/:kind/:name/*",element:(0,a.jsx)(b.Wj,{}),children:[ai,(0,a.jsx)(d.po,{children:(0,a.jsx)(li,{})})]})]}),ui=()=>(0,a.jsx)(ii,{children:(0,a.jsx)(ci,{children:(0,a.jsx)(Ja,{children:di})})});x.createRoot(document.getElementById("root")).render((0,a.jsx)(ui,{}))},43836:(H,S,t)=>{"use strict";t.d(S,{qO:()=>p,tK:()=>x});var s=t(14041),a=t(63544);function x(h){return(0,a.Q)(h,()=>(0,s.createContext)(void 0))}function p(h){return(0,s.useContext)(x(h))}function b(h){return{set(d){globalThis[`__@backstage/${h}__`]=createContext(createVersionedValueMap(d))},reset(){delete globalThis[`__@backstage/${h}__`]}}}},10602:(H,S,t)=>{"use strict";t.d(S,{B:()=>s});function s(a){Object.freeze(a);const x={atVersion(p){return a[p]}};return Object.defineProperty(x,"$map",{configurable:!0,enumerable:!0,get(){return a}}),x}},63544:(H,S,t)=>{"use strict";t.d(S,{Q:()=>p});function s(){return typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")()}const a=s(),x=b=>`__@backstage/${b}__`;function p(b,h){const d=x(b);let f=a[d];return f||(f=h(),a[d]=f,f)}},7341:(H,S,t)=>{"use strict";t.d(S,{v:()=>a});var s=t(55309);const a=(0,s.y)({id:"plugin.catalog.service"})},82292:(H,S,t)=>{"use strict";t.d(S,{n:()=>a});var s=t(55309);const a=(0,s.y)({id:"plugin.catalog.entity-presentation"})},88083:(H,S,t)=>{"use strict";t.d(S,{T:()=>b});var s=t(6820),a=t(72348),x=t(46123),p=t.n(x);function b(u,y){const{kind:g,namespace:C,name:O,title:P,description:B,displayName:L,type:I}=d(u),M=(0,s.U2)({kind:g||"unknown",namespace:C||a.oQ,name:O||"unknown"}),F=f({kind:g,namespace:C,name:O,context:y}),W=[L,P,F].find(z=>z&&typeof z=="string"),X=[W!==M?M:void 0,I,B].filter(z=>z&&typeof z=="string").join(" | ");return{entityRef:M,primaryTitle:W,secondaryTitle:X||void 0,Icon:void 0}}const h=u=>!!u&&typeof u=="string";function d(u){if(typeof u=="string"){let y=u.indexOf(":");const g=u.indexOf("/");g!==-1&&g<y&&(y=-1);const C=y===-1?void 0:u.slice(0,y),O=g===-1?void 0:u.slice(y+1,g),P=u.slice(Math.max(y+1,g+1));return{kind:C,namespace:O,name:P}}if(typeof u=="object"&&u!==null){const y=[p()(u,"kind")].find(h),g=[p()(u,"metadata.namespace"),p()(u,"namespace")].find(h),C=[p()(u,"metadata.name"),p()(u,"name")].find(h),O=[p()(u,"metadata.title")].find(h),P=[p()(u,"metadata.description")].find(h),B=[p()(u,"spec.profile.displayName")].find(h),L=[p()(u,"spec.type")].find(h);return{kind:y,namespace:g,name:C,title:O,description:P,displayName:B,type:L}}return{}}function f(u){const y=u.kind?.toLocaleLowerCase("en-US")||"unknown",g=u.namespace||a.oQ,C=u.name||"unknown",O=u.context?.defaultKind?.toLocaleLowerCase("en-US"),P=u.context?.defaultNamespace?.toLocaleLowerCase("en-US");let B=C;return(P&&g.toLocaleLowerCase("en-US")!==P||g!==a.oQ)&&(B=`${g}/${B}`),O&&y.toLocaleLowerCase("en-US")!==O&&(B=`${y}:${B}`),B}},3169:(H,S,t)=>{"use strict";t.d(S,{f:()=>d});var s=t(6820),a=t(72427),x=t(14041),p=t(82292),b=t(88083);function h(f,u,y){const[g,C]=(0,x.useState)(f);return(0,x.useEffect)(()=>{C(f);const O=u?.subscribe({next:P=>{C(P)},complete:()=>{O?.unsubscribe()}});return()=>{O?.unsubscribe()}},y),g}function d(f,u){const g=(0,a.Q2)().get(p.n),C=[g,JSON.stringify(f),JSON.stringify(u||null)],O=(0,x.useMemo)(()=>{if(!g){const P=(0,b.T)(f,u);return{snapshot:P,promise:Promise.resolve(P)}}return g.forEntity(typeof f=="string"||"metadata"in f?f:(0,s.U2)(f),u)},C);return h(O.snapshot,O.update$,[O])}},18:(H,S,t)=>{"use strict";t.d(S,{a:()=>a});var s=t(55309);const a=(0,s.y)({id:"catalog-react.starred-entities"})},22995:(H,S,t)=>{"use strict";t.d(S,{Q:()=>z});var s=t(31085),a=t(10394),x=t(72501),p=t(4321),b=t(87263),h=t(16249),d=t(33145),f=t(58837),u=t(87051),y=t(12398),g=t(6924),C=t(20577),O=t(14041),P=t(45250),B=t.n(P),L=t(53373),I=t.n(L);const M=(0,f.A)(Y=>({root:{margin:Y.spacing(1,0)},label:{position:"relative",fontWeight:"bold",fontSize:Y.typography.body2.fontSize,fontFamily:Y.typography.fontFamily,color:Y.palette.text.primary,"& > span":{top:0,left:0,position:"absolute"}}}),{name:"BackstageAutocomplete"}),F=(0,u.A)(Y=>(0,y.A)({root:{},paper:{margin:0},hasClearIcon:{},hasPopupIcon:{},focused:{},inputRoot:{marginTop:24,backgroundColor:Y.palette.background.paper,"$root$hasClearIcon$hasPopupIcon &":{paddingBlock:Y.spacing(.75),paddingInlineStart:Y.spacing(.75)},"$root$focused &":{outline:"none"},"$root &:hover > fieldset":{borderColor:"#ced4da"},"$root$focused & > fieldset":{borderWidth:1,borderColor:Y.palette.primary.main}},popupIndicator:{padding:0,margin:0,color:"#616161","&:hover":{backgroundColor:"unset"},'& [class*="MuiTouchRipple-root"]':{display:"none"}},endAdornment:{"$root$hasClearIcon$hasPopupIcon &":{right:4}},input:{"$root$hasClearIcon$hasPopupIcon &":{fontSize:Y.typography.body1.fontSize,paddingBlock:Y.spacing(.8125)}}}),{name:"BackstageAutocompleteBase"})(C.Ay),W=Y=>(0,s.jsx)(b.A,{...Y,transition:!0,placement:"bottom-start",children:({TransitionProps:K})=>(0,s.jsx)(d.A,{...K,style:{transformOrigin:"0 0 0"},children:(0,s.jsx)(a.A,{children:Y.children})})}),X=Y=>(0,s.jsx)(p.A,{...Y,elevation:8});function z(Y){const{label:K,name:lt,LabelProps:G,TextFieldProps:Q,...J}=Y,it=M(),ht=(0,O.useCallback)(Et=>(0,s.jsx)(h.A,{...(0,P.merge)(Et,Q),variant:"outlined"}),[Q]),mt=(0,s.jsx)(F,{size:"small",...J,renderInput:J.renderInput??ht,popupIcon:(0,s.jsx)(g.A,{"data-testid":`${lt}-expand`}),PaperComponent:X,PopperComponent:W});return(0,s.jsx)(a.A,{className:it.root,children:K?(0,s.jsxs)(x.A,{...G,className:I()(it.label,G?.className),component:"label",children:[(0,s.jsx)(a.A,{component:"span",children:K}),mt]}):mt})}},54203:(H,S,t)=>{"use strict";t.d(S,{GI:()=>B});var s=t(31085),a=t(14041),x=t(10394),p=t(64947),b=t(73845),h=t(42899),d=t(72501),f=t(5893),u=t(54917),y=t(65859),g=t(64630),C=t(87849);const O=L=>{const I=(0,f.A)(z=>z.breakpoints.down(L.options?.drawerBreakpoint??"md"),{noSsr:!0}),M=(0,u.A)(),[F,W]=(0,a.useState)(!1),{t:X}=(0,C.i)(g.j);return I?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.A,{style:{marginTop:M.spacing(1),marginLeft:M.spacing(1)},onClick:()=>W(!0),startIcon:(0,s.jsx)(y.A,{}),children:X("catalogFilter.buttonTitle")}),(0,s.jsx)(b.Ay,{open:F,onClose:()=>W(!1),anchor:L.options?.drawerAnchor??"left",disableAutoFocus:!0,keepMounted:!0,variant:"temporary",children:(0,s.jsxs)(x.A,{m:2,children:[(0,s.jsx)(d.A,{variant:"h6",component:"h2",style:{marginBottom:M.spacing(1)},children:X("catalogFilter.title")}),L.children]})})]}):(0,s.jsx)(h.A,{item:!0,lg:2,children:L.children})},P=L=>(0,s.jsx)(h.A,{item:!0,xs:12,lg:10,children:L.children}),B=L=>(0,s.jsx)(h.A,{container:!0,style:{position:"relative"},children:L.children});B.Filters=O,B.Content=P},47144:(H,S,t)=>{"use strict";t.d(S,{y:()=>X});var s=t(31085),a=t(10394),x=t(58837),p=t(14041),b=t(72427),h=t(73466),d=t(7341),f=t(69076),u=t(86901),y=t(44148),g=t(41260);const C=(0,s.jsx)(g.A,{fontSize:"small"}),O=(0,s.jsx)(y.A,{fontSize:"small"});function P({selected:z}){return(0,s.jsx)(f.A,{icon:C,checkedIcon:O,checked:z})}const B=(0,p.memo)(z=>{const{selected:Y,value:K,availableOptions:lt,showCounts:G}=z,Q=G?`${K} (${lt?.[K]})`:K;return(0,s.jsx)(u.A,{control:(0,s.jsx)(P,{selected:Y}),label:Q,onClick:J=>J.preventDefault()})});var L=t(21405),I=t(26796),M=t(22995),F=t(45250);const W=(0,x.A)({root:{},label:{textTransform:"none",fontWeight:"bold"}},{name:"CatalogReactEntityAutocompletePicker"});function X(z){const{label:Y,name:K,path:lt,showCounts:G,Filter:Q,InputProps:J,initialSelectedOptions:it=[],filtersForAvailableValues:ht=["kind"],hidden:mt}=z,Et=W(),{updateFilters:St,filters:It,queryParameters:{[K]:dt}}=(0,L.nK)(),ct=(0,b.gf)(d.v),At=ht.map(rt=>It[rt]),{value:pt}=(0,h.A)(async()=>{const rt=lt,{facets:U}=await ct.getEntityFacets({facets:[rt],filter:(0,I.Rr)(At.filter(Boolean))});return Object.fromEntries(U[rt].map(({value:V,count:nt})=>[V,nt]))},[...At]),Ct=(0,p.useMemo)(()=>[dt].flat().filter(Boolean),[dt]),Pt=It[K]?.values,[at,gt]=(0,p.useState)(Ct.length?Ct:Pt??it);(0,p.useEffect)(()=>{Ct.length&>(Ct)},[Ct]);const yt=Object.keys(pt??{}),et=at.length&&yt.length;(0,p.useEffect)(()=>{St({[K]:et?new Q(at):void 0})},[K,et,at,Q,St]),(0,p.useEffect)(()=>{if(!et)return;const rt=Pt??[];(0,F.isEqual)(rt,at)||gt(rt)},[Pt]);const vt=It[K];return vt&&typeof vt=="object"&&!("values"in vt)||!yt.length||mt?null:(0,s.jsx)(a.A,{className:Et.root,pb:1,pt:1,children:(0,s.jsx)(M.Q,{multiple:!0,disableCloseOnSelect:!0,label:Y,name:`${String(K)}-picker`,options:yt,value:at,TextFieldProps:J,onChange:(rt,U)=>gt(U),renderOption:(rt,{selected:U})=>(0,s.jsx)(B,{selected:U,value:rt,availableOptions:pt,showCounts:!!G})})})}},72987:(H,S,t)=>{"use strict";t.d(S,{t:()=>Pt});var s=t(31085),a=t(6820),x=t(10394),p=t(69076),b=t(86901),h=t(72501),d=t(71677),f=t(58837),u=t(44148),y=t(41260),g=t(14041),C=t(21405),O=t(92822),P=t(92367),B=t(48108),L=t(47966),I=t(90184),M=t(72427),F=t(87290),W=t(7341);function X({enabled:at}){const gt=(0,M.gf)(W.v),[yt]=(0,g.useState)(async()=>{if(!at)return[];const et="relations.ownedBy";return gt.getEntityFacets({facets:[et]}).then(vt=>vt.facets[et].map(rt=>rt.value).map(rt=>{const{kind:U,name:V,namespace:nt}=(0,a.KU)(rt);return{apiVersion:"backstage.io/v1beta1",kind:U,metadata:{name:V,namespace:nt}}}).sort((rt,U)=>rt.kind.localeCompare(U.kind,"en-US")||rt.metadata.namespace.localeCompare(U.metadata.namespace,"en-US")||rt.metadata.name.localeCompare(U.metadata.name,"en-US"))).catch(()=>[])});return(0,F.A)(async(et,vt)=>{const rt=await yt;if(!rt)return{items:[]};const U=vt?.limit??20,{text:V,start:nt}=z(et),xt=rt.filter(Ut=>lt(V,Ut)),ut=nt+U;return{items:xt.slice(0,ut),...K({entities:xt,limit:ut,payload:{text:V,start:ut}})}},[yt],{loading:!0,value:{items:[]}})}function z(at){return Y(at)&&at.cursor?JSON.parse(atob(at.cursor)):{text:at.text||"",start:0}}function Y(at){return!!at.cursor}function K({entities:at,limit:gt,payload:yt}){return at.length>gt?{cursor:btoa(JSON.stringify(yt))}:{}}function lt(at,gt){const yt=at.trim();return gt.kind.includes(yt)||gt.metadata.namespace?.includes(yt)||gt.metadata.name.includes(yt)}function G(){const at=(0,M.gf)(W.v);return(0,F.A)(async(gt,yt)=>{const et=gt,vt=gt,rt=yt?.limit??20;if(vt.cursor){const V=await at.queryEntities({cursor:vt.cursor,limit:rt});return{cursor:V.pageInfo.nextCursor,items:[...vt.items,...V.items]}}const U=await at.queryEntities({fullTextFilter:{term:et.text||"",fields:["metadata.name","kind","spec.profile.displayname","metadata.title"]},filter:{kind:["User","Group"]},orderFields:[{field:"metadata.name",order:"asc"}],limit:rt});return{cursor:U.pageInfo.nextCursor,items:U.items}},[],{loading:!0})}var Q=t(76842);function J({mode:at,initialSelectedOwnersRefs:gt}){const yt=at==="owners-only",et=G(),vt=X({enabled:yt}),[rt,U]=yt?vt:et;return[rt,U,it({enabled:!yt,initialSelectedOwnersRefs:gt})]}function it({enabled:at,initialSelectedOwnersRefs:gt}){const yt=(0,g.useRef)({}),et=(0,M.gf)(W.v),[,vt]=(0,F.A)(async()=>{(await et.getEntitiesByRefs({entityRefs:gt})).items.forEach(U=>{U&&(yt.current[(0,a.U2)(U)]=U)})},[]);return(0,Q.u)(()=>{at&>.length>0&&vt()}),{getEntity:rt=>yt.current[rt],setEntity:rt=>{yt.current[(0,a.U2)(rt)]=rt}}}var ht=t(87051),mt=t(3169),Et=t(64630),St=t(87849),It=t(22995);const dt=(0,f.A)({root:{},label:{},input:{},fullWidth:{width:"100%"},boxLabel:{width:"100%",textOverflow:"ellipsis",overflow:"hidden"}},{name:"CatalogReactEntityOwnerPicker"}),ct=(0,ht.A)(at=>({label:{width:"100%"},root:{width:"90%"}}),{name:"FixedWidthFormControlLabel"})(b.A),At=(0,s.jsx)(y.A,{fontSize:"small"}),pt=(0,s.jsx)(u.A,{fontSize:"small"});function Ct(at){const gt=dt(),yt=at.entity.kind.toLocaleLowerCase("en-US")==="group",{primaryTitle:et}=(0,mt.f)(at.entity);return(0,s.jsx)(x.A,{className:gt.fullWidth,children:(0,s.jsx)(ct,{className:gt.fullWidth,control:(0,s.jsx)(p.A,{icon:At,checkedIcon:pt,checked:at.isSelected}),onClick:vt=>vt.preventDefault(),label:(0,s.jsx)(d.Ay,{title:et,children:(0,s.jsxs)(x.A,{display:"flex",alignItems:"center",children:[yt?(0,s.jsx)(L.A,{fontSize:"small"}):(0,s.jsx)(B.A,{fontSize:"small"}),"\xA0",(0,s.jsx)(x.A,{className:gt.boxLabel,children:(0,s.jsx)(h.A,{noWrap:!0,children:et})})]})})})})}const Pt=at=>{const gt=dt(),{mode:yt="owners-only"}=at||{},{updateFilters:et,filters:vt,queryParameters:{owners:rt}}=(0,C.nK)(),[U,V]=(0,g.useState)(""),{t:nt}=(0,St.i)(Et.j),xt=(0,g.useMemo)(()=>[rt].flat().filter(Boolean),[rt]),[ut,Ut]=(0,g.useState)(xt.length?xt:vt.owners?.values??[]),[{value:Nt,loading:kt},_t,Wt]=J({mode:yt,initialSelectedOwnersRefs:ut});(0,P.s)(()=>_t({text:U}),[U,_t],250);const Gt=Nt?.items||[];return(0,g.useEffect)(()=>{if(xt.length){const $t=new O.N9(xt);Ut($t.values)}},[xt]),(0,g.useEffect)(()=>{et({owners:ut.length?new O.N9(ut):void 0})},[ut,et]),["user","group"].includes(vt.kind?.value.toLocaleLowerCase("en-US")||"")?null:(0,s.jsx)(x.A,{className:gt.root,pb:1,pt:1,children:(0,s.jsx)(It.Q,{label:nt("entityOwnerPicker.title"),multiple:!0,disableCloseOnSelect:!0,loading:kt,options:Gt,value:ut,getOptionSelected:($t,Yt)=>typeof Yt=="string"?(0,a.U2)($t)===Yt:$t===Yt,getOptionLabel:$t=>{const Yt=typeof $t=="string"?Wt.getEntity($t)||(0,a.KU)($t,{defaultKind:"group",defaultNamespace:"default"}):$t;return(0,I.Z)(Yt,(0,I.S)(Yt))},onChange:($t,Yt)=>{V(""),Ut(Yt.map(le=>{const ge=typeof le=="string"?le:(0,a.U2)(le);return typeof le!="string"&&Wt.setEntity(le),ge}))},filterOptions:$t=>$t,renderOption:($t,{selected:Yt})=>(0,s.jsx)(Ct,{entity:$t,isSelected:Yt}),name:"owner-picker",onInputChange:($t,Yt)=>{V(Yt)},ListboxProps:{onScroll:$t=>{const Yt=$t.currentTarget;Math.abs(Yt.scrollHeight-Yt.clientHeight-Yt.scrollTop)<1&&Nt?.cursor&&_t({items:Nt.items,cursor:Nt.cursor})},"data-testid":"owner-picker-listbox"},LabelProps:{className:gt.label},TextFieldProps:{className:gt.input}})})}},8859:(H,S,t)=>{"use strict";t.d(S,{z:()=>C});var s=t(31085),a=t(72072),x=t(9222),p=t(14041),b=t(29207),h=t(10394),d=t(71677),f=t(58837),u=t(3169);const y=(0,f.A)(P=>({root:{display:"inline-flex",alignItems:"center",textDecoration:"inherit"},icon:{marginRight:P.spacing(.5),color:P.palette.text.secondary,"& svg":{verticalAlign:"middle"}}}),{name:"CatalogReactEntityDisplayName"}),g=P=>{const{entityRef:B,hideIcon:L,disableTooltip:I,defaultKind:M,defaultNamespace:F}=P,W=y(),{primaryTitle:X,secondaryTitle:z,Icon:Y}=(0,u.f)(B,{defaultKind:M,defaultNamespace:F});let K=(0,s.jsx)(s.Fragment,{children:X});return K=(0,s.jsxs)(h.A,{component:"span",className:W.root,children:[Y&&!L?(0,s.jsx)(h.A,{component:"span",className:W.icon,children:(0,s.jsx)(Y,{fontSize:"inherit"})}):null,K]}),z&&!I&&(K=(0,s.jsx)(d.Ay,{enterDelay:1500,title:z,children:K})),K},C=(0,p.forwardRef)((P,B)=>{const{entityRef:L,defaultKind:I,defaultNamespace:M,title:F,children:W,hideIcon:X,disableTooltip:z,...Y}=P,K=O(P.entityRef),lt=W??F??(0,s.jsx)(g,{entityRef:L,defaultKind:I,defaultNamespace:M,hideIcon:X,disableTooltip:z});return(0,s.jsx)(a.N_,{...Y,ref:B,to:K,children:lt})});function O(P){const B=(0,x.S)(b.s),L=(0,b.$)(P,{encodeParams:!0});return B(L)}},34428:(H,S,t)=>{"use strict";t.d(S,{i:()=>b});var s=t(31085),a=t(6820),x=t(14041),p=t(8859);function b(h){const{entityRefs:d,hideIcons:f,...u}=h;return(0,s.jsx)(s.Fragment,{children:d.map((y,g)=>{const C=typeof y=="string"?y:(0,a.U2)(y);return(0,s.jsxs)(x.Fragment,{children:[g>0&&", ",(0,s.jsx)(p.z,{...u,entityRef:y,hideIcon:f})]},`${g}.${C}`)})})}},90184:(H,S,t)=>{"use strict";t.d(S,{S:()=>p,Z:()=>b});var s=t(72348),a=t(46123),x=t.n(a);function p(h,d){const f=d?.defaultKind;let u,y,g;return"metadata"in h?(u=h.kind,y=h.metadata.namespace,g=h.metadata.name):(u=h.kind,y=h.namespace,g=h.name),(y===void 0||y==="")&&(y=s.oQ),d?.defaultNamespace!==void 0?d?.defaultNamespace===y&&(y=void 0):y===s.oQ&&(y=void 0),u=u.toLocaleLowerCase("en-US"),u=f&&f.toLocaleLowerCase("en-US")===u?void 0:u,`${u?`${u}:`:""}${y?`${y}/`:""}${g}`}function b(h,d){for(const f of["spec.profile.displayName","metadata.title"]){const u=x()(h,f);if(u&&typeof u=="string")return u}return d}},91035:(H,S,t)=>{"use strict";t.d(S,{m:()=>f});var s=t(31085),a=t(58837),x=t(92822),p=t(47144),b=t(64630),h=t(87849);const d=(0,a.A)({input:{}},{name:"CatalogReactEntityTagPicker"}),f=u=>{const y=d(),{t:g}=(0,h.i)(b.j);return(0,s.jsx)(p.y,{label:g("entityTagPicker.title"),name:"tags",path:"metadata.tags",Filter:x.q_,showCounts:u.showCounts,InputProps:{className:y.input},initialSelectedOptions:u.initialFilter?u.initialFilter:[],hidden:u.hidden})}},67626:(H,S,t)=>{"use strict";t.d(S,{y:()=>It});var s=t(31085),a=t(72427),x=t(65461),p=t(40703),b=t(58007),h=t(68804),d=t(65569),f=t(5951),u=t(26343),y=t(72501),g=t(58837),C=t(9684),O=t(31129),P=t(14041),B=t(92822),L=t(21405),I=t(16009),M=t(45250),F=t(73466),W=t(7341),X=t(26796),z=t(87290),Y=t(48899);function K(){const dt=(0,a.gf)(I.K),ct=(0,a.gf)(W.v),{filters:At}=(0,L.nK)(),{value:pt,loading:Ct}=(0,F.A)(async()=>(await dt.getBackstageIdentity()).ownershipEntityRefs,[]),{user:Pt,owners:at,...gt}=At,{orderFields:yt,...et}=(0,X.$3)((0,M.compact)(Object.values(gt))),[{value:vt,loading:rt},U]=(0,z.A)(async nt=>{const xt=lt(nt.owners,nt.ownershipEntityRefs);if(xt===void 0)return 0;const{["metadata.name"]:ut,...Ut}=nt.filter.filter,{totalItems:Nt}=await ct.queryEntities({...nt.filter,filter:{...Ut,"relations.ownedBy":xt},limit:0});return Nt},[],{loading:!0});return(0,Y.A)(()=>{Object.keys(et.filter).length!==0&&pt!==void 0&&U({ownershipEntityRefs:pt,owners:at,filter:et})},[pt,at,et]),{count:vt,loading:Ct||rt,filter:(0,P.useMemo)(()=>B.tN.owned(pt??[]),[pt]),ownershipEntityRefs:pt}}function lt(dt,ct){if(ct===void 0)return;const At=dt?.values??[];if(At.length){const pt=(0,M.intersection)(At,ct);return pt.length===0?void 0:pt}return ct}function G(){const dt=(0,a.gf)(W.v),{filters:ct}=(0,L.nK)(),At=(0,P.useRef)(),pt=(0,P.useMemo)(()=>{const{user:at,...gt}=ct,yt=(0,M.compact)(Object.values(gt)),{orderFields:et,...vt}=(0,X.$3)(yt),rt={...vt,limit:0};return Object.keys(vt.filter).length===0?(At.current=void 0,At.current):(0,M.isEqual)(rt,At.current)?At.current:(At.current=rt,rt)},[ct]),{value:Ct,loading:Pt}=(0,F.A)(async()=>{if(pt===void 0)return 0;const{totalItems:at}=await dt.queryEntities(pt);return at},[pt]);return{count:Ct,loading:Pt}}var Q=t(6820),J=t(56889);function it(){const dt=(0,a.gf)(W.v),{filters:ct}=(0,L.nK)(),{starredEntities:At}=(0,J.I)(),pt=(0,P.useRef)(),Ct=(0,P.useMemo)(()=>{const{user:yt,...et}=ct,vt=(0,M.compact)(Object.values(et)),{orderFields:rt,...U}=(0,X.$3)(vt),nt={...U,filter:{...U.filter,["metadata.name"]:Array.from(At).map(xt=>(0,Q.KU)(xt).name)},limit:1e3};return(0,M.isEqual)(nt,pt.current)?pt.current:(pt.current=nt,nt)},[ct,At]),{value:Pt,loading:at}=(0,F.A)(async()=>At.size?(await dt.queryEntities(Ct)).items.map(et=>(0,Q.U2)({kind:et.kind,namespace:et.metadata.namespace,name:et.metadata.name})).filter(et=>At.has(et)).length:0,[Ct,At]),gt=(0,P.useMemo)(()=>B.tN.starred(Array.from(At)),[At]);return{count:Pt,loading:at,filter:gt}}var ht=t(87849),mt=t(64630);const Et=(0,g.A)(dt=>({root:{backgroundColor:"rgba(0, 0, 0, .11)",boxShadow:"none",margin:dt.spacing(1,0,1,0)},title:{margin:dt.spacing(1,0,0,1),textTransform:"uppercase",fontSize:12,fontWeight:"bold"},listIcon:{minWidth:30,color:dt.palette.text.primary},menuItem:{minHeight:dt.spacing(6)},groupWrapper:{margin:dt.spacing(1,1,2,1)}}),{name:"CatalogReactUserListPicker"});function St(dt,ct){return[{name:ct("userListPicker.personalFilter.title"),items:[{id:"owned",label:ct("userListPicker.personalFilter.ownedLabel"),icon:C.A},{id:"starred",label:ct("userListPicker.personalFilter.starredLabel"),icon:O.Gg}]},{name:dt,items:[{id:"all",label:ct("userListPicker.orgFilterAllLabel")}]}]}const It=dt=>{const{initialFilter:ct,availableFilters:At,hidden:pt,alwaysKeepFilters:Ct}=dt,Pt=Et(),at=(0,a.gf)(x.U),{t:gt}=(0,ht.i)(mt.j),yt=at.getOptionalString("organization.name")??gt("userListPicker.defaultOrgName"),{filters:et,updateFilters:vt,queryParameters:{kind:rt,user:U}}=(0,L.nK)(),V=["starred","all"],nt=St(yt,gt).map(Kt=>({...Kt,items:Kt.items.filter(({id:se})=>["group","user"].some(de=>de===rt)?V.includes(se):!At||At.includes(se))})).filter(({items:Kt})=>!!Kt.length),{count:xt,loading:ut,filter:Ut}=K(),{count:Nt}=G(),{count:kt,filter:_t,loading:Wt}=it(),Gt=(0,P.useMemo)(()=>[U].flat()[0],[U]),[$t,Yt]=(0,P.useState)(Gt??ct),le=(0,P.useMemo)(()=>({all:Nt,starred:kt,owned:xt}),[kt,xt,Nt]);(0,P.useEffect)(()=>{Gt&&Yt(Gt)},[Gt]);const ge=ut||Wt;return(0,P.useEffect)(()=>{!ge&&$t&&$t!=="all"&&le[$t]===0&&!Ct&&Yt("all")},[ge,le,$t,Yt,Ct]),(0,P.useEffect)(()=>{if(!$t||ge)return;vt({user:$t==="owned"?Ut:$t==="starred"?_t:B.tN.all()})},[$t,_t,Ut,vt,ge]),pt?null:(0,s.jsx)(p.A,{className:Pt.root,children:nt.map(Kt=>(0,s.jsxs)(P.Fragment,{children:[(0,s.jsx)(y.A,{variant:"subtitle2",component:"span",className:Pt.title,children:Kt.name}),(0,s.jsx)(p.A,{className:Pt.groupWrapper,children:(0,s.jsx)(b.A,{disablePadding:!0,dense:!0,role:"menu","aria-label":Kt.name,children:Kt.items.map((se,de)=>(0,s.jsxs)(u.A,{role:"none presentation",divider:de!==Kt.items.length-1,onClick:()=>Yt(se.id),selected:se.id===et.user?.value,className:Pt.menuItem,disabled:le[se.id]===0,"data-testid":`user-picker-${se.id}`,tabIndex:0,ContainerProps:{role:"menuitem"},children:[se.icon&&(0,s.jsx)(h.A,{className:Pt.listIcon,children:(0,s.jsx)(se.icon,{fontSize:"small"})}),(0,s.jsx)(f.A,{children:(0,s.jsxs)(y.A,{variant:"body1",children:[se.label," "]})}),(0,s.jsx)(d.A,{children:le[se.id]??"-"})]},se.id))})})]},Kt.name))})}},92822:(H,S,t)=>{"use strict";t.d(S,{I5:()=>u,Kf:()=>O,N9:()=>f,V3:()=>d,gM:()=>p,gZ:()=>C,mT:()=>P,qA:()=>b,q_:()=>h,tN:()=>g,z:()=>y});var s=t(6820),a=t(51372),x=t(67871);class p{value;label;constructor(I,M){this.value=I,this.label=M}getCatalogFilters(){return{kind:this.value}}toQueryValue(){return this.value}}class b{value;constructor(I){this.value=I}getTypes(){return Array.isArray(this.value)?this.value:[this.value]}getCatalogFilters(){return{"spec.type":this.getTypes()}}toQueryValue(){return this.getTypes()}}class h{values;constructor(I){this.values=I}filterEntity(I){return this.values.every(M=>(I.metadata.tags??[]).includes(M))}getCatalogFilters(){return{"metadata.tags":this.values}}toQueryValue(){return this.values}}class d{value;constructor(I){this.value=I}filterEntity(I){const M=this.toUpperArray(this.value.split(/\s/)),F=this.toUpperArray([I.metadata.tags]),W=this.toUpperArray([I.metadata.name,I.metadata.title,I.spec?.profile?.displayName]);for(const X of M)if(F.every(z=>z!==X)&&W.every(z=>!z.includes(X)))return!1;return!0}getFullTextFilters(){return{term:this.value,fields:["metadata.name","metadata.title","spec.profile.displayName"]}}toQueryValue(){return this.value}toUpperArray(I){return I.flat().filter(M=>!!M).map(M=>M.toLocaleUpperCase("en-US"))}}class f{values;constructor(I){this.values=I.reduce((M,F)=>{try{return M.push((0,s.U2)((0,s.KU)(F,{defaultKind:"Group"}))),M}catch{return M}},[])}getCatalogFilters(){return{"relations.ownedBy":this.values}}filterEntity(I){return this.values.some(M=>(0,x.t)(I,a.vv).some(F=>(0,s.U2)(F)===M))}toQueryValue(){return this.values}}class u{values;constructor(I){this.values=I}getCatalogFilters(){return{"spec.lifecycle":this.values}}filterEntity(I){return this.values.some(M=>I.spec?.lifecycle===M)}toQueryValue(){return this.values}}class y{values;constructor(I){this.values=I}getCatalogFilters(){return{"metadata.namespace":this.values}}filterEntity(I){return this.values.some(M=>I.metadata.namespace===M)}toQueryValue(){return this.values}}class g{value;refs;constructor(I,M){this.value=I,this.refs=M}static owned(I){return new g("owned",I)}static all(){return new g("all")}static starred(I){return new g("starred",I)}getCatalogFilters(){return this.value==="owned"?{"relations.ownedBy":this.refs??[]}:this.value==="starred"?{"metadata.name":this.refs?.map(I=>(0,s.KU)(I).name)??[]}:{}}filterEntity(I){if(this.value==="starred")return this.refs?.includes((0,s.U2)(I))??!0;if(this.value==="owned"){const M=(0,x.t)(I,a.vv);return this.refs?.some(F=>M.some(W=>(0,s.U2)(W)===F))??!1}return!0}toQueryValue(){return this.value}}class C{value;isOwnedEntity;isStarredEntity;constructor(I,M,F){this.value=I,this.isOwnedEntity=M,this.isStarredEntity=F}filterEntity(I){switch(this.value){case"owned":return this.isOwnedEntity(I);case"starred":return this.isStarredEntity(I);default:return!0}}toQueryValue(){return this.value}}class O{value;constructor(I){this.value=I}getCatalogFilters(){return this.value?{"metadata.annotations.backstage.io/orphan":String(this.value)}:{}}filterEntity(I){const M=I.metadata.annotations?.["backstage.io/orphan"];return M!==void 0&&this.value.toString()===M}}class P{value;constructor(I){this.value=I}filterEntity(I){const M=I?.status?.items?.length>0;return M!==void 0&&this.value===M}}class B{values;constructor(I){this.values=I}getOrderFilters(){return this.values.map(([I,M])=>({field:I,order:M}))}toQueryValue(){return this.values.flat()}}},21405:(H,S,t)=>{"use strict";t.d(S,{B9:()=>B,nK:()=>L});var s=t(31085),a=t(45250),x=t.n(a),p=t(45810),b=t.n(p),h=t(14041),d=t(18690),f=t(87290),u=t(22771),y=t(71581),g=t(7341),C=t(26796),O=t(72427);const P=(0,h.createContext)(void 0),B=I=>{const M=(0,y.A)(),F=(0,O.gf)(g.v),[W,X]=(0,h.useState)({}),z=(0,d.zy)(),K=I.pagination===!0?"cursor":typeof I.pagination=="object"?I.pagination.mode??"cursor":"none",lt=typeof I.pagination=="object"?I.pagination.limit??20:20,{queryParameters:G,cursor:Q,offset:J,limit:it}=(0,h.useMemo)(()=>{const et=b().parse(z.search,{ignoreQueryPrefix:!0});let vt=lt;if(typeof et.limit=="string"){const U=Number.parseInt(et.limit,10);isNaN(U)||(vt=U)}const rt=typeof et.offset=="string"&&K==="offset"?Number.parseInt(et.offset,10):void 0;return{queryParameters:et.filters??{},cursor:typeof et.cursor=="string"&&K==="cursor"?et.cursor:void 0,offset:K==="offset"&&rt&&!isNaN(rt)?rt:void 0,limit:vt}},[K,z.search,lt]),[ht,mt]=(0,h.useState)(Q),[Et,St]=(0,h.useState)(J),[It,dt]=(0,h.useState)(it),[ct,At]=(0,h.useState)(()=>({appliedFilters:{},entities:[],backendEntities:[],pageInfo:{},offset:Et,limit:It})),[{loading:pt,error:Ct},Pt]=(0,f.A)(async()=>{const et=W.kind?.value?.toLocaleLowerCase("en-US"),vt=et==="user"||et==="group"?{...W,owners:void 0}:W,rt=(0,a.compact)(Object.values(vt)),U=Object.keys(W).reduce((V,nt)=>{const xt=W[nt];return xt?.toQueryValue&&(V[nt]=xt.toQueryValue()),V},{});if(K!=="none")if(ht){if(ht!==ct.appliedCursor){const V=(0,C.be)(rt),nt=await F.queryEntities({cursor:ht,limit:It});At({appliedFilters:W,appliedCursor:ht,backendEntities:nt.items,entities:nt.items.filter(V),pageInfo:nt.pageInfo,totalItems:nt.totalItems})}}else{const V=(0,C.be)(rt),nt=(0,C.$3)(rt),xt=(0,C.$3)((0,a.compact)(Object.values(ct.appliedFilters)));if(K==="offset"&&(ct.limit!==It||ct.offset!==Et)||!(0,a.isEqual)(xt,nt)){const ut=await F.queryEntities({...nt,limit:It,offset:Et});At({appliedFilters:W,backendEntities:ut.items,entities:ut.items.filter(V),pageInfo:ut.pageInfo,totalItems:ut.totalItems,limit:It,offset:Et})}}else{const V=(0,C.be)(rt),nt=(0,C.Rr)(rt),xt=(0,C.Rr)((0,a.compact)(Object.values(ct.appliedFilters)));if((0,a.isEqual)(xt,nt)){const ut=ct.backendEntities.filter(V);At({appliedFilters:W,backendEntities:ct.backendEntities,entities:ut,totalItems:ut.length})}else{const ut=await F.getEntities({filter:nt}),Ut=ut.items.filter(V);At({appliedFilters:W,backendEntities:ut.items,entities:Ut,totalItems:Ut.length})}}if(M()){const V=b().parse(z.search,{ignoreQueryPrefix:!0}),nt=b().stringify({...V,filters:U,...K==="none"?{}:{cursor:ht,limit:It,offset:Et}},{addQueryPrefix:!0,arrayFormat:"repeat"}),xt=`${window.location.pathname}${nt}`;window.history?.replaceState(null,document.title,xt)}},[F,G,W,ct,ht,K,It,Et],{loading:!0});(0,u.A)(Pt,10,[W,ht,It,Et]);const at=(0,h.useCallback)(et=>{K==="cursor"?mt(void 0):K==="offset"&&St(0),X(vt=>{const rt=typeof et=="function"?et(vt):et;return{...vt,...rt}})},[K]),gt=(0,h.useMemo)(()=>{if(K!=="cursor")return;const et=ct.pageInfo?.prevCursor,vt=ct.pageInfo?.nextCursor;return{prev:et?()=>mt(et):void 0,next:vt?()=>mt(vt):void 0}},[K,ct.pageInfo]),yt=(0,h.useMemo)(()=>({filters:ct.appliedFilters,entities:ct.entities,backendEntities:ct.backendEntities,updateFilters:at,queryParameters:G,loading:pt,error:Ct,pageInfo:gt,totalItems:ct.totalItems,limit:It,offset:Et,setLimit:dt,setOffset:St,paginationMode:K}),[ct,at,G,pt,Ct,gt,It,Et,K,dt,St]);return(0,s.jsx)(P.Provider,{value:yt,children:I.children})};function L(){const I=(0,h.useContext)(P);if(!I)throw new Error("useEntityList must be used within EntityListProvider");return I}},56889:(H,S,t)=>{"use strict";t.d(S,{I:()=>d});var s=t(6820),a=t(72427),x=t(14041),p=t(1394),b=t(18);function h(f){return typeof f=="string"?f:(0,s.U2)(f)}function d(){const f=(0,a.gf)(b.a),u=(0,p.A)((0,x.useMemo)(()=>f.starredEntitie$(),[f]),new Set),y=(0,x.useCallback)(C=>u.has(h(C)),[u]),g=(0,x.useCallback)(C=>f.toggleStarred(h(C)).then(),[f]);return{starredEntities:u,toggleStarredEntity:g,isStarredEntity:y}}},29207:(H,S,t)=>{"use strict";t.d(S,{$:()=>h,s:()=>b});var s=t(6820),a=t(72348),x=t(34569),p=t(63544);const b=(0,p.Q)("catalog:entity-route-ref",()=>(0,x.H)({id:"catalog:entity",params:["namespace","kind","name"]}));function h(d,f){let u,y,g;if(typeof d=="string"){const O=(0,s.KU)(d);u=O.kind,y=O.namespace,g=O.name}else"metadata"in d?(u=d.kind,y=d.metadata.namespace,g=d.metadata.name):(u=d.kind,y=d.namespace,g=d.name);u=u.toLocaleLowerCase("en-US"),y=y?.toLocaleLowerCase("en-US")??a.oQ;const{encodeParams:C=!1}=f||{};return C&&(u=encodeURIComponent(u),y=encodeURIComponent(y),g=encodeURIComponent(g)),{kind:u,namespace:y,name:g}}},64630:(H,S,t)=>{"use strict";t.d(S,{j:()=>a});var s=t(93184);const a=(0,s.h)({id:"catalog-react",messages:{catalogFilter:{title:"Filters",buttonTitle:"Filters"},entityKindPicker:{title:"Kind",errorMessage:"Failed to load entity kinds"},entityLifecyclePicker:{title:"Lifecycle"},entityNamespacePicker:{title:"Namespace"},entityOwnerPicker:{title:"Owner"},entityProcessingStatusPicker:{title:"Processing Status"},entityTagPicker:{title:"Tags"},entityPeekAheadPopover:{title:"Drill into the entity to see all of the tags.",emailCardAction:{title:"Email {{email}}",subTitle:"mailto {{email}}"},entityCardActionsTitle:"Show details"},entitySearchBar:{placeholder:"Search"},entityTypePicker:{title:"Type",errorMessage:"Failed to load entity types",optionAllTitle:"all"},favoriteEntity:{addToFavorites:"Add to favorites",removeFromFavorites:"Remove from favorites"},inspectEntityDialog:{title:"Entity Inspector",closeButtonTitle:"Close",ancestryPage:{title:"Ancestry"},colocatedPage:{title:"Colocated",description:"These are the entities that are colocated with this entity - as in, they originated from the same data source (e.g. came from the same YAML file), or from the same origin (e.g. the originally registered URL).",alertNoLocation:"Entity had no location information.",alertNoEntity:"There were no other entities on this location."},jsonPage:{title:"Entity as JSON",description:"This is the raw entity data as received from the catalog, on JSON form."},overviewPage:{title:"Overview"},yamlPage:{title:"Entity as YAML",description:"This is the raw entity data as received from the catalog, on YAML form."}},unregisterEntityDialog:{title:"Are you sure you want to unregister this entity?",cancelButtonTitle:"Cancel",deleteButtonTitle:"Delete Entity",deleteEntitySuccessMessage:"Removed entity {{entityName}}",bootstrapState:{title:'You cannot unregister this entity, since it originates from a protected Backstage configuration (location "{{location}}"). If you believe this is in error, please contact the {{appTitle}} integrator.',advancedDescription:"You have the option to delete the entity itself from the catalog. Note that this should only be done if you know that the catalog file has been deleted at, or moved from, its origin location. If that is not the case, the entity will reappear shortly as the next refresh round is performed by the catalog.",advancedOptions:"Advanced Options"},onlyDeleteStateTitle:"This entity does not seem to originate from a registered location. You therefore only have the option to delete it outright from the catalog.",unregisterState:{title:"This action will unregister the following entities:",subTitle:"Located at the following location:",description:"To undo, just re-register the entity in {{appTitle}}.",unregisterButtonTitle:"Unregister Location",advancedOptions:"Advanced Options",advancedDescription:"You also have the option to delete the entity itself from the catalog. Note that this should only be done if you know that the catalog file has been deleted at, or moved from, its origin location. If that is not the case, the entity will reappear shortly as the next refresh round is performed by the catalog."},errorStateTitle:"Internal error: Unknown state"},userListPicker:{defaultOrgName:"Company",personalFilter:{title:"Personal",ownedLabel:"Owned",starredLabel:"Starred"},orgFilterAllLabel:"All"}}})},26796:(H,S,t)=>{"use strict";t.d(S,{$3:()=>p,Rr:()=>b,be:()=>h});var s=t(92822);function a(d){return!!d.getFullTextFilters}function x(d){return!!d.getOrderFilters}function p(d){const f=d.reduce((g,C)=>({...g,...C.getCatalogFilters?C.getCatalogFilters():{}}),{}),u=d.find(a)?.getFullTextFilters(),y=d.find(x)?.getOrderFilters()||[{field:"metadata.name",order:"asc"}];return{filter:f,fullTextFilter:u,orderFields:y}}function b(d){const f={};return d.forEach(u=>{u instanceof s.q_||u instanceof s.N9||u instanceof s.I5||u instanceof s.z||u instanceof s.tN||u instanceof s.Kf||u instanceof s.V3||u instanceof s.gZ||Object.assign(f,u.getCatalogFilters?.()||{})}),f}function h(d){return f=>d.every(u=>!u.filterEntity||u.filterEntity(f))}},67871:(H,S,t)=>{"use strict";t.d(S,{t:()=>a});var s=t(6820);function a(x,p,b){let h=x?.relations?.filter(d=>d.type===p).map(d=>(0,s.KU)(d.targetRef))||[];return b?.kind&&(h=h.filter(d=>d.kind.toLocaleLowerCase("en-US")===b.kind.toLocaleLowerCase("en-US"))),h}},95203:(H,S,t)=>{"use strict";t.d(S,{qP:()=>h,Zg:()=>f,rQ:()=>y,pS:()=>u,UJ:()=>d});var s=t(59598);class a{id;params;optional;defaultTarget;[p=s.b];constructor(C,O,P,B){this.id=C,this.params=O,this.optional=P,this.defaultTarget=B,this[p]="external"}toString(){return`routeRef{type=external,id=${this.id}}`}getDefaultTarget(){return this.defaultTarget}}function x(g){return new a(g.id,g.params??[],!!g.optional,g?.defaultTarget)}var p,b=t(34569);const h=x({id:"create-component",optional:!0,defaultTarget:"scaffolder.createComponent"}),d=x({id:"view-techdoc",optional:!0,params:["namespace","kind","name"],defaultTarget:"techdocs.docRoot"}),f=x({id:"create-from-template",optional:!0,params:["namespace","templateName"],defaultTarget:"scaffolder.selectedTemplate"}),u=x({id:"catalog:unregister-redirect",optional:!0}),y=(0,b.H)({id:"catalog"})},13646:(H,S,t)=>{"use strict";t.d(S,{OL:()=>a});function s(f,u){return f.name===u.name}function a(f,u){return"resourceType"in f?!u||f.resourceType===u:!1}function x(f){return f.attributes.action==="create"}function p(f){return f.attributes.action==="read"}function b(f){return f.attributes.action==="update"}function h(f){return f.attributes.action==="delete"}function d(f){return{authorize:async(u,y)=>await f.authorize(u,y),authorizeConditional(u,y){const g=u;return f.authorize(g,y)}}}},54241:(H,S,t)=>{"use strict";t.d(S,{b:()=>s});var s=function(a){return a.DENY="DENY",a.ALLOW="ALLOW",a.CONDITIONAL="CONDITIONAL",a}({})},96824:(H,S,t)=>{"use strict";t.d(S,{x:()=>a});var s=t(55309);const a=(0,s.y)({id:"plugin.permission.api"})},70734:(H,S,t)=>{"use strict";t.d(S,{e:()=>b});var s=t(31085),a=t(14041),x=t(58837);const p=(0,x.A)(()=>({highlight:{}}),{name:"BackstageHighlightedSearchResultText"}),b=h=>{const{text:d,preTag:f,postTag:u}=h,y=p(),g=(0,a.useMemo)(()=>d.split(new RegExp(`(${f}.+?${u})`)),[u,f,d]);return(0,s.jsx)(s.Fragment,{children:g.map((C,O)=>C.includes(f)?(0,s.jsx)("mark",{className:y.highlight,children:C.replace(new RegExp(`${f}|${u}`,"g"),"")},O):C)})}},54560:(H,S,t)=>{"use strict";t.d(S,{ec:()=>u});var s=t(31085),a=t(14041),x=t(93368),p=t(88758),b=t(8109);const h="search.results.list.items.extensions.v1",d=(C,O)=>{for(const P of C)if(!(!isValidElement(P)||!getComponentData(P,h)?.(O)))return cloneElement(P,{rank:O.rank,highlight:O.highlight,result:O.document,...P.props});return null},f=C=>{const{rank:O,result:P,noTrack:B,children:L,alignItems:I="flex-start",...M}=C,F=(0,x.s)(),W=(0,a.useCallback)(()=>{B||P&&F.captureEvent("discover",P.title,{attributes:{to:P.location},value:O})},[O,P,B,F]);return(0,s.jsx)(b.A,{divider:!0,alignItems:I,onClickCapture:W,...M,children:L})},u=C=>{const{name:O,component:P,predicate:B=()=>!0}=C;return(0,p.zZ)({name:O,component:{lazy:()=>P().then(L=>I=>(0,s.jsx)(f,{rank:I.rank,result:I.result,noTrack:I.noTrack,children:(0,a.createElement)(L,I)}))},data:{[h]:B}})},y=C=>{const O=useElementFilter(C,P=>P.selectByComponentData({key:h}).getElements(),[C]);return useCallback((P,B)=>{const L=d(O,P);return _jsx(Fragment,{children:L??_jsx(f,{rank:P.rank,result:P.document,children:_jsx(DefaultResultListItem,{rank:P.rank,highlight:P.highlight,result:P.document})})},B)},[O])},g=C=>{const{results:O,children:P,...B}=C,L=y(P);return _jsx(List,{...B,children:O.map(L)})}},86202:(H,S,t)=>{"use strict";t.d(S,{As:()=>s,GO:()=>a,qH:()=>x});const s="backstage.io/techdocs-ref",a="backstage.io/techdocs-entity",x="backstage.io/techdocs-entity-path"},72020:(H,S,t)=>{"use strict";t.d(S,{AF:()=>f,Hr:()=>g,Wm:()=>d,YR:()=>B,po:()=>u});var s=t(31085),a=t(14041),x=t(18690),p=t(19402),b=t(88758),h=t(82442);const d="techdocs.addons.addon.v1",f="techdocs.addons.wrapper.v1",u=()=>null;(0,p.h)(u,f,!0);const y=L=>`${d}.${L.toLocaleLowerCase("en-US")}`;function g(L){const{name:I,component:M}=L;return(0,b.zZ)({name:I,component:{sync:F=>(0,s.jsx)(M,{...F})},data:{[d]:L,[y(I)]:!0}})}const C=(L,I)=>L.selectByComponentData({key:I}).getElements()[0],O=L=>L.selectByComponentData({key:f}).selectByComponentData({key:d}),P=L=>L.selectByComponentData({key:f}).findComponentData({key:d}),B=()=>{const L=(0,x.P1)(),I=(0,h.O)(L,O),M=(0,h.O)(L,P),F=(0,a.useCallback)(z=>{if(!I||!z)return null;const Y=y(z.name);return C(I,Y)??null},[I]),W=(0,a.useCallback)(z=>{const Y=M.find(K=>K.name===z);return Y?F(Y):null},[M,F]),X=(0,a.useCallback)(z=>{const Y=M.filter(K=>K.location===z);return Y.length?Y.map(F):null},[M,F]);return{renderComponentByName:W,renderComponentsByLocation:X}}},26679:(H,S,t)=>{"use strict";t.d(S,{l:()=>a,s:()=>x});var s=t(55309);const a=(0,s.y)({id:"plugin.techdocs.service"}),x=(0,s.y)({id:"plugin.techdocs.storageservice"})},88572:(H,S,t)=>{"use strict";t.d(S,{R:()=>L,V:()=>I});var s=t(31085),a=t(14041),x=t(73466),p=t(28966),b=t(6820),h=t(43836),d=t(10602),f=t(72427),u=t(65461),y=t(25862),g=t(26679),C=t(65614);const O=(M,F)=>(0,b.U2)(M)===(0,b.U2)(F),P={title:"",subtitle:"",setTitle:()=>{},setSubtitle:()=>{},setShadowRoot:()=>{},metadata:{loading:!0},entityMetadata:{loading:!0},entityRef:{kind:"",name:"",namespace:""}},B=(0,h.tK)("techdocs-reader-page-context"),L=(0,a.memo)(M=>{const{entityRef:F,children:W}=M,X=(0,f.gf)(g.l),z=(0,f.gf)(u.U),Y=(0,x.A)(async()=>X.getEntityMetadata(F),[F]),K=(0,p.A)(async()=>X.getTechDocsMetadata(F),[F]),[lt,G]=(0,a.useState)(P.title),[Q,J]=(0,a.useState)(P.subtitle),[it,ht]=(0,a.useState)(P.shadowRoot);(0,a.useEffect)(()=>{it&&!K.value&&!K.loading&&K.retry()},[K.value,K.loading,it,K.retry,K]);const mt={metadata:K,entityRef:(0,C.Lf)(F,z),entityMetadata:Y,shadowRoot:it,setShadowRoot:ht,title:lt,setTitle:G,subtitle:Q,setSubtitle:J},Et=(0,d.B)({1:mt});return(0,s.jsx)(y.Ig,{attributes:{entityRef:(0,b.U2)(F)},children:(0,s.jsx)(B.Provider,{value:Et,children:W instanceof Function?W(mt):W})})},(M,F)=>O(M.entityRef,F.entityRef)),I=()=>{const M=(0,a.useContext)(B);if(M===void 0)return P;const F=M.atVersion(1);if(F===void 0)throw new Error("No context found for version 1.");return F}},65614:(H,S,t)=>{"use strict";t.d(S,{Lf:()=>x,b1:()=>b,oN:()=>p});var s=t(6820),a=t(86202);function x(h,d){return d.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")||(h.kind=h.kind.toLocaleLowerCase(),h.name=h.name.toLocaleLowerCase(),h.namespace=h.namespace.toLocaleLowerCase()),h}function p(h){let d=h.metadata.annotations?.[a.qH];return d?(d.startsWith("/")||(d=`/${d}`),d):""}const b=(h,d)=>{if(!d)return;let{namespace:f,kind:u,name:y}=(0,s.sM)(h);if(h.metadata.annotations?.[a.GO])try{const O=(0,s.KU)(h.metadata.annotations?.[a.GO]);f=O.namespace,u=O.kind,y=O.name}catch{}const g=d({namespace:f,kind:u,name:y}),C=p(h);return`${g}${C}`}},99730:(H,S,t)=>{"use strict";t.d(S,{e:()=>s});const s=Object.freeze({Header:"Header",Subheader:"Subheader",Settings:"Settings",PrimarySidebar:"PrimarySidebar",SecondarySidebar:"SecondarySidebar",Content:"Content"})},95768:(H,S,t)=>{"use strict";t.d(S,{V:()=>s});function s(a,x){return x.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")?a:a.toLocaleLowerCase("en-US")}},8915:(H,S,t)=>{"use strict";t.d(S,{K:()=>It});var s=t(31085),a=t(59428),x=t(27586),p=t(26280),b=t(21405),h=t(54203),d=t(67626),f=t(72987),u=t(91035),y=t(81859),g=t(14041),C=t(86519),O=t(86202);class P{getCatalogFilters(){return{[`metadata.annotations.${O.As}`]:C.c}}}const B=()=>{const{updateFilters:dt}=(0,b.nK)();return(0,g.useEffect)(()=>{dt({techdocs:new P})},[dt]),null};var L=t(36338),I=t(45250),M=t(88640),F=t(77310),W=t(9222),X=t(72427),z=t(65461),Y=t(56889),K=t(27125),lt=t(14209),G=t(92822);function Q(dt){const{actions:ct,columns:At,data:pt,isLoading:Ct,options:Pt}=dt,{updateFilters:at,setLimit:gt,setOffset:yt,limit:et,totalItems:vt,offset:rt}=(0,b.nK)(),[U,V]=(0,g.useState)(rt&&et?Math.floor(rt/et):0);return(0,g.useEffect)(()=>{vt&&U*et>=vt?yt(Math.max(0,vt-et)):yt(Math.max(0,U*et))},[yt,U,et,vt]),(0,s.jsx)(lt.X,{columns:At,data:pt,options:{paginationPosition:"both",pageSizeOptions:[5,10,20,50,100],pageSize:et,emptyRowsWhenPaging:!1,actionsColumnIndex:-1,...Pt},actions:ct,onSearchChange:nt=>at({text:nt?new G.V3(nt):void 0}),page:U,onPageChange:nt=>{V(nt)},onRowsPerPageChange:nt=>{gt(nt)},totalCount:vt,localization:{pagination:{labelDisplayedRows:""}},isLoading:Ct})}function J(dt){const{actions:ct,columns:At,data:pt,next:Ct,prev:Pt,title:at,isLoading:gt,options:yt,...et}=dt;return(0,s.jsx)(lt.X,{title:gt?"":at,columns:At,data:pt,options:{paginationPosition:"both",...yt,pageSizeOptions:[],showFirstLastPageButtons:!1,pageSize:Number.MAX_SAFE_INTEGER,emptyRowsWhenPaging:!1,actionsColumnIndex:-1},onPageChange:vt=>{vt>0?Ct?.():Pt?.()},page:Pt?1:0,totalCount:Ct?Number.MAX_VALUE:Number.MAX_SAFE_INTEGER,localization:{pagination:{labelDisplayedRows:""}},isLoading:gt,...et})}var it=t(84295),ht=t(42717),mt=t(82779),Et=t(23747);const St=dt=>{const{columns:ct,actions:At,options:pt}=dt,{loading:Ct,error:Pt,entities:at,filters:gt,paginationMode:yt,pageInfo:et}=(0,b.nK)(),{isStarredEntity:vt,toggleStarredEntity:rt}=(0,Y.I)(),[,U]=(0,L.A)(),V=(0,W.S)(mt.Oc),nt=(0,X.gf)(z.U),xt=(0,I.capitalize)(gt.user?.value??"all"),ut=[it.f.createCopyDocsUrlAction(U),it.f.createStarEntityAction(vt,rt)],Ut=(0,Et.H)(at,V,nt);return yt==="cursor"?(0,s.jsx)(J,{columns:ct||ht.F,isLoading:Ct,title:xt,actions:At||ut,options:pt,data:Ut,next:et?.next,prev:et?.prev}):yt==="offset"?(0,s.jsx)(Q,{columns:ct||ht.F,isLoading:Ct,title:xt,actions:At||ut,options:pt,data:Ut}):Pt?(0,s.jsx)(M.B,{severity:"error",title:"Could not load available documentation.",children:(0,s.jsx)(F.z,{language:"text",text:Pt.toString()})}):(0,s.jsx)(K.o,{title:xt,entities:at,loading:Ct,actions:At||ut,columns:ct,options:pt})};St.columns=ht.B,St.actions=it.f;const It=dt=>{const{initialFilter:ct="owned",columns:At,actions:pt,ownerPickerMode:Ct,pagination:Pt,options:at,PageWrapper:gt,CustomHeader:yt}=dt,et=gt||y.S,vt=yt||(()=>(0,s.jsx)(a.d,{title:"",children:(0,s.jsx)(x.Y,{children:"Discover documentation in your ecosystem."})}));return(0,s.jsx)(et,{children:(0,s.jsxs)(p.U,{children:[(0,s.jsx)(vt,{}),(0,s.jsx)(b.B9,{pagination:Pt,children:(0,s.jsxs)(h.GI,{children:[(0,s.jsxs)(h.GI.Filters,{children:[(0,s.jsx)(B,{}),(0,s.jsx)(d.y,{initialFilter:ct}),(0,s.jsx)(f.t,{mode:Ct}),(0,s.jsx)(u.m,{})]}),(0,s.jsx)(h.GI.Content,{children:(0,s.jsx)(St,{actions:pt,columns:At,options:at})})]})})]})})}},27125:(H,S,t)=>{"use strict";t.d(S,{o:()=>O});var s=t(31085),a=t(36338),x=t(9222),p=t(72427),b=t(65461),h=t(82779),d=t(14209),f=t(44186),u=t(73896),y=t(84295),g=t(42717),C=t(23747);const O=P=>{const{entities:B,title:L,loading:I,columns:M,actions:F,options:W}=P,[,X]=(0,a.A)(),z=(0,x.S)(h.Oc),Y=(0,p.gf)(b.U);if(!B)return null;const K=(0,C.H)(B,z,Y),lt=[y.f.createCopyDocsUrlAction(X)],G=20,Q=K&&K.length>G;return(0,s.jsx)(s.Fragment,{children:I||K&&K.length>0?(0,s.jsx)(d.X,{isLoading:I,options:{paging:Q,pageSize:G,search:!0,actionsColumnIndex:-1,...W},data:K,columns:M||g.F,actions:F||lt,title:L?`${L} (${K.length})`:`All (${K.length})`}):(0,s.jsx)(f.p,{missing:"data",title:"No documents to show",description:"Create your own document. Check out our Getting Started Information",action:(0,s.jsx)(u.z,{color:"primary",to:"https://backstage.io/docs/features/techdocs/getting-started",variant:"contained",children:"DOCS"})})})};O.columns=g.B,O.actions=y.f},84295:(H,S,t)=>{"use strict";t.d(S,{f:()=>p});var s=t(31085),a=t(55290),x=t(18956);const p={createCopyDocsUrlAction(b){return h=>({icon:()=>(0,s.jsx)(a.A,{fontSize:"small"}),tooltip:"Click to copy documentation link to clipboard",onClick:()=>b(`${window.location.origin}${h.resolved.docsUrl}`)})},createStarEntityAction(b,h){return d=>{const f=d.entity,u=b(f);return{cellStyle:{paddingLeft:"1em"},icon:()=>(0,s.jsx)(x.m,{isFavorite:u}),tooltip:u?"Remove from favorites":"Add to favorites",onClick:()=>h(f)}}}}},42717:(H,S,t)=>{"use strict";t.d(S,{B:()=>u,F:()=>y});var s=t(31085),a=t(10394),x=t(58837);const p=(0,x.A)(g=>({value:{marginBottom:g.spacing(.75)},subvalue:{color:g.palette.textSubtle,fontWeight:"normal"}}),{name:"BackstageSubvalueCell"});function b(g){const{value:C,subvalue:O}=g,P=p();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.A,{className:P.value,children:C}),(0,s.jsx)(a.A,{className:P.subvalue,children:O})]})}var h=t(72072),d=t(34428);function f(g){return g.metadata.title||g.metadata.name}const u={createTitleColumn(g){return{...u.createNameColumn(),field:"entity.metadata.title",hidden:g?.hidden}},createNameColumn(){return{title:"Document",field:"entity.metadata.name",highlight:!0,searchable:!0,defaultSort:"asc",customSort:(g,C)=>{const O=f(g.entity).toLocaleLowerCase(),P=f(C.entity).toLocaleLowerCase();return O.localeCompare(P)},render:g=>(0,s.jsx)(b,{value:(0,s.jsx)(h.N_,{to:g.resolved.docsUrl,children:f(g.entity)}),subvalue:g.entity.metadata.description})}},createOwnerColumn(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:g})=>(0,s.jsx)(d.i,{entityRefs:g.ownedByRelations,defaultKind:"group"})}},createKindColumn(){return{title:"Kind",field:"entity.kind"}},createTypeColumn(){return{title:"Type",field:"entity.spec.type"}}},y=[u.createTitleColumn({hidden:!0}),u.createNameColumn(),u.createOwnerColumn(),u.createKindColumn(),u.createTypeColumn()]},23747:(H,S,t)=>{"use strict";t.d(S,{H:()=>b});var s=t(51372),a=t(67871),x=t(90184),p=t(95768);function b(h,d,f){return h.map(u=>{const y=(0,a.t)(u,s.vv);return{entity:u,resolved:{docsUrl:d({namespace:(0,p.V)(u.metadata.namespace??"default",f),kind:(0,p.V)(u.kind,f),name:(0,p.V)(u.metadata.name,f)}),ownedByRelations:y,ownedByRelationsTitle:y.map(g=>(0,x.S)(g,{defaultKind:"group"})).join(", ")}}})}},81859:(H,S,t)=>{"use strict";t.d(S,{S:()=>b});var s=t(31085),a=t(27155),x=t(72427),p=t(65461);const b=h=>{const{children:d,CustomPageWrapper:f}=h,y=`Documentation available in ${(0,x.gf)(p.U).getOptionalString("organization.name")??"Backstage"}`;return(0,s.jsx)(s.Fragment,{children:f?(0,s.jsx)(f,{children:d}):(0,s.jsx)(a.d,{title:"Documentation",subtitle:y,themeId:"documentation",children:d})})}},39278:(H,S,t)=>{"use strict";t.d(S,{$j:()=>F,Wj:()=>W,Ju:()=>B});var s=t(26679),a=t(70835),x=t(97142),p=t(92110);class b{configApi;discoveryApi;fetchApi;constructor(Y){this.configApi=Y.configApi,this.discoveryApi=Y.discoveryApi,this.fetchApi=Y.fetchApi}async getCookie(){const K=`${await this.getApiOrigin()}/cookie`,lt=await this.fetchApi.fetch(`${K}`,{credentials:"include"});if(!lt.ok)throw await a.o.fromResponse(lt);return await lt.json()}async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getTechDocsMetadata(Y){const{kind:K,namespace:lt,name:G}=Y,J=`${await this.getApiOrigin()}/metadata/techdocs/${lt}/${K}/${G}`,it=await this.fetchApi.fetch(`${J}`);if(!it.ok)throw await a.o.fromResponse(it);return await it.json()}async getEntityMetadata(Y){const{kind:K,namespace:lt,name:G}=Y,J=`${await this.getApiOrigin()}/metadata/entity/${lt}/${K}/${G}`,it=await this.fetchApi.fetch(`${J}`);if(!it.ok)throw await a.o.fromResponse(it);return await it.json()}}class h{configApi;discoveryApi;fetchApi;constructor(Y){this.configApi=Y.configApi,this.discoveryApi=Y.discoveryApi,this.fetchApi=Y.fetchApi}async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){return this.configApi.getOptionalString("techdocs.storageUrl")??`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getOptionalString("techdocs.builder")||"local"}async getEntityDocs(Y,K){const{kind:lt,namespace:G,name:Q}=Y,it=`${await this.getStorageUrl()}/${G}/${lt}/${Q}/${K}`,ht=await this.fetchApi.fetch(`${it.endsWith("/")?it:`${it}/`}index.html`);let mt="";switch(ht.status){case 404:throw mt="Page not found. ",K||(mt+="This could be because there is no index.md file in the root of the docs directory of this repository."),new x.m_(mt);case 500:throw mt="Could not generate documentation or an error in the TechDocs backend. ",new Error(mt);default:break}return ht.text()}async syncEntityDocs(Y,K=()=>{}){const{kind:lt,namespace:G,name:Q}=Y,it=`${await this.getApiOrigin()}/sync/${G}/${lt}/${Q}`;return new Promise((ht,mt)=>{const Et=new AbortController;(0,p.y)(it,{fetch:this.fetchApi.fetch,signal:Et.signal,onmessage(St){if(St.event==="log")St.data&&K(JSON.parse(St.data));else if(St.event==="finish"){let It=!1;St.data&&({updated:It}=JSON.parse(St.data)),ht(It?"updated":"cached")}else St.event==="error"&&mt(new Error(St.data))},onerror(St){throw Et.abort(),mt(St),St}})})}async getBaseUrl(Y,K,lt){const{kind:G,namespace:Q,name:J}=K,ht=`${await this.getApiOrigin()}/static/docs/${Q}/${G}/${J}/${lt}`;return new URL(Y,ht.endsWith("/")?ht:`${ht}/`).toString()}}var d=t(82779),f=t(9803),u=t(12935),y=t(65461),g=t(57405),C=t(70795),O=t(88758),P=t(54560);const B=(0,f.i)({id:"techdocs",apis:[(0,u.b)({api:s.s,deps:{configApi:y.U,discoveryApi:g.I,fetchApi:C.a},factory:({configApi:z,discoveryApi:Y,fetchApi:K})=>new h({configApi:z,discoveryApi:Y,fetchApi:K})}),(0,u.b)({api:s.l,deps:{configApi:y.U,discoveryApi:g.I,fetchApi:C.a},factory:({configApi:z,discoveryApi:Y,fetchApi:K})=>new b({configApi:z,discoveryApi:Y,fetchApi:K})})],routes:{root:d.rQ,docRoot:d.Oc,entityContent:d.Ri}}),L=B.provide((0,O.QJ)({name:"TechdocsPage",component:()=>t.e(8803).then(t.bind(t,38803)).then(z=>z.Router),mountPoint:d.rQ})),I=B.provide((0,O.QJ)({name:"EntityTechdocsContent",component:()=>t.e(8803).then(t.bind(t,38803)).then(z=>z.LegacyEmbeddedDocsRouter),mountPoint:d.Ri})),M=B.provide((0,O.QJ)({name:"TechDocsCustomHome",component:()=>t.e(5470).then(t.bind(t,25470)).then(z=>z.TechDocsCustomHome),mountPoint:d.rQ})),F=B.provide((0,O.QJ)({name:"TechDocsIndexPage",component:()=>t.e(5788).then(t.bind(t,85788)).then(z=>z.TechDocsIndexPage),mountPoint:d.rQ})),W=B.provide((0,O.QJ)({name:"TechDocsReaderPage",component:()=>t.e(4036).then(t.bind(t,84036)).then(z=>z.TechDocsReaderPage),mountPoint:d.Oc})),X=B.provide((0,P.ec)({name:"TechDocsSearchResultListItem",component:()=>Promise.resolve().then(t.bind(t,27698)).then(z=>z.TechDocsSearchResultListItem),predicate:z=>z.type==="techdocs"}))},13976:(H,S,t)=>{"use strict";t.d(S,{p:()=>Ms});var s=t(31085),a=t(14041),x=t(42899),p=t(58837),b=t(88572),h=t(9394),d=t(91360),f=t(22856);const u="TECH_DOCS_SHADOW_DOM_STYLE_LOAD",y=m=>{(0,a.useEffect)(()=>{if(!m)return()=>{};const D=m.querySelectorAll('head > link[rel="stylesheet"]');let j=D?.length??0;const N=new CustomEvent(u);if(!j)return m.dispatchEvent(N),()=>{};const k=()=>{--j===0&&m.dispatchEvent(N)};return D?.forEach(q=>{q.addEventListener("load",k)}),()=>{D?.forEach(q=>{q.removeEventListener("load",k)})}},[m])},g=m=>{const[D,j]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(!m)return()=>{};j(!0);const N=m.style;N.setProperty("opacity","0");const k=()=>{j(!1),N.setProperty("opacity","1")};return m.addEventListener(u,k),()=>{m.removeEventListener(u,k)}},[m]),D},C=m=>{const{element:D,onAppend:j,children:N}=m,[k,q]=(0,a.useState)((0,h.vt)({...(0,f.A)(),insertionPoint:void 0}));y(D);const ot=(0,a.useCallback)(Rt=>{if(!D||!Rt)return;q((0,h.vt)({...(0,f.A)(),insertionPoint:D.querySelector("head")||void 0}));let wt=Rt.shadowRoot;wt||(wt=Rt.attachShadow({mode:"open"})),wt.replaceChildren(D),typeof j=="function"&&j(wt)},[D,j]);return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(d.Ay,{jss:k,sheetsManager:new Map,children:[(0,s.jsx)("div",{ref:ot,"data-testid":"techdocs-native-shadowroot"}),N]})})};var O=t(12784);const P=()=>{const{shadowRoot:m}=(0,b.V)();return m},B=m=>{const D=P(),[j,N]=(0,a.useState)(D?.firstChild);return(0,a.useEffect)(()=>{let k;return D&&(k=new MutationObserver(()=>{N(D?.firstChild)}),k.observe(D,{attributes:!0,characterData:!0,childList:!0,subtree:!0})),()=>k?.disconnect()},[D]),!j||!(j instanceof HTMLElement)?[]:m.map(k=>j.querySelectorAll(k)).filter(k=>k.length).map(k=>Array.from(k)).flat()},L=m=>m.toString()&&m.rangeCount&&m.getRangeAt(0).getBoundingClientRect().top,I=(m=0)=>{const D=P(),[j,N]=useState(null),k=useMemo(()=>debounce(()=>{const q=D,ot=q.getSelection?q.getSelection():document.getSelection();ot&&L(ot)?N(ot):N(null)},m),[D,N,m]);return useEffect(()=>(window.document.addEventListener("selectionchange",k),()=>{k.cancel(),window.document.removeEventListener("selectionchange",k)}),[k]),j};var M=t(26280),F=t(68146),W=t(45250),X=t(73466),z=t(5877),Y=t(43836),K=t(10602),lt=t(72427),G=t(93368),Q=t(25862),J=t(65461),it=t(55309);const ht=(0,it.y)({id:"plugin.search.queryservice"});class mt{mockedResults;constructor(D){this.mockedResults=D}query(){return Promise.resolve(this.mockedResults||{results:[]})}}const Et=(0,Y.tK)("search-context"),St=()=>{const m=(0,a.useContext)(Et);if(!m)throw new Error("useSearch must be used within a SearchContextProvider");const D=m.atVersion(1);if(!D)throw new Error("No SearchContext v1 found");return D},It=()=>(0,a.useContext)(Et)!==void 0,dt={term:"",types:[],filters:{},pageLimit:void 0,pageCursor:void 0},ct=(m=dt)=>{const D=(0,lt.gf)(ht),j=(0,G.s)(),[N,k]=(0,a.useState)(m.term),[q,ot]=(0,a.useState)(m.types),[Rt,wt]=(0,a.useState)(m.filters),[Lt,Dt]=(0,a.useState)(m.pageLimit),[Ht,Xt]=(0,a.useState)(m.pageCursor),me=(0,z.A)(N),pe=(0,z.A)(Rt),Bt=(0,X.A)(async()=>{const Ee=await D.query({term:N,types:q,filters:Rt,pageLimit:Lt,pageCursor:Ht});return N&&j.captureEvent("search",N,{value:Ee.numberOfResults}),Ee},[N,q,Rt,Lt,Ht]),Oe=!Bt.loading&&!Bt.error&&Bt.value?.nextPageCursor,ve=!Bt.loading&&!Bt.error&&Bt.value?.previousPageCursor,Vt=(0,a.useCallback)(()=>{Xt(Bt.value?.nextPageCursor)},[Bt.value?.nextPageCursor]),Zt=(0,a.useCallback)(()=>{Xt(Bt.value?.previousPageCursor)},[Bt.value?.previousPageCursor]);return(0,a.useEffect)(()=>{me!==void 0&&N!==me&&Xt(void 0)},[N,me,Xt]),(0,a.useEffect)(()=>{pe!==void 0&&!(0,W.isEqual)(Rt,pe)&&Xt(void 0)},[Rt,pe,Xt]),{result:Bt,term:N,setTerm:k,types:q,setTypes:ot,filters:Rt,setFilters:wt,pageLimit:Lt,setPageLimit:Dt,pageCursor:Ht,setPageCursor:Xt,fetchNextPage:Oe?Vt:void 0,fetchPreviousPage:ve?Zt:void 0}},At=m=>{const{initialState:D,children:j}=m,N=ct(D);return(0,s.jsx)(Q.Ig,{attributes:{searchTypes:N.types.sort().join(",")},children:(0,s.jsx)(Et.Provider,{value:(0,K.B)({1:N}),children:j})})},pt=m=>{const{initialState:D,inheritParentContextIfAvailable:j,children:N}=m,k=It(),q=(0,lt.gf)(J.U),ot=D??{},Rt=q.has("search.query.pageLimit")?{pageLimit:q.getNumber("search.query.pageLimit")}:{},wt={...dt,...ot,...Rt};return k&&j?(0,s.jsx)(s.Fragment,{children:N}):(0,s.jsx)(At,{initialState:wt,children:N})};var Ct=t(78467),Pt=t(20577),at=t(82266),gt=t(29365),yt=t(34839),et=t(16249),vt=t(64947),rt=t(45917),U=t(22771),V=t(87849),nt=t(93184);const xt=(0,nt.h)({id:"search-react",messages:{searchBar:{title:"Search",placeholder:"Search in {{org}}",clearButtonTitle:"Clear"},searchFilter:{allOptionTitle:"All"},searchPagination:{limitLabel:"Results per page:",limitText:"of {{num}}"},noResultsDescription:"Sorry, no results were found",searchResultGroup:{linkTitle:"See All",addFilterButtonTitle:"Add filter"},searchResultPager:{previous:"Previous",next:"Next"}}}),ut=(0,a.forwardRef)((m,D)=>{const{onChange:j,onKeyDown:N=()=>{},onClear:k=()=>{},onSubmit:q=()=>{},debounceTime:ot=200,clearButton:Rt=!0,fullWidth:wt=!0,value:Lt,label:Dt,placeholder:Ht,inputProps:Xt={},InputProps:me={},endAdornment:pe,...Bt}=m,Oe=(0,lt.gf)(J.U),[ve,Vt]=(0,a.useState)(""),Zt=(0,a.useRef)(""),{t:ce}=(0,V.i)(xt);(0,a.useEffect)(()=>{Vt(qt=>qt===Zt.current?String(Lt):qt)},[Lt,Zt]),(0,U.A)(()=>{Zt.current=ve,j(ve)},ot,[ve]);const Ee=(0,a.useCallback)(qt=>{Vt(qt.target.value)},[Vt]),ae=(0,a.useCallback)(qt=>{N&&N(qt),q&&qt.key==="Enter"&&q()},[N,q]),ie=(0,a.useCallback)(()=>{Zt.current="",j(""),Vt(""),k&&k()},[j,k]),Ae=Dt?void 0:ce("searchBar.title"),We=Ht??ce("searchBar.placeholder",{org:Oe.getOptionalString("app.title")||"Backstage"}),Pe=(0,at.n)().getSystemIcon("search")||rt.A,Ye=(0,s.jsx)(yt.A,{position:"start",children:(0,s.jsx)(gt.A,{"aria-label":"Query",size:"small",disabled:!0,children:(0,s.jsx)(Pe,{})})}),Xe=(0,s.jsx)(yt.A,{position:"end",children:(0,s.jsx)(vt.A,{"aria-label":ce("searchBar.clearButtonTitle"),size:"small",onClick:ie,onKeyDown:qt=>{qt.key==="Enter"&&qt.stopPropagation()},children:ce("searchBar.clearButtonTitle")})});return(0,s.jsx)(pt,{inheritParentContextIfAvailable:!0,children:(0,s.jsx)(et.A,{id:"search-bar-text-field","data-testid":"search-bar-next",variant:"outlined",margin:"normal",inputRef:D,value:ve,label:Dt,placeholder:We,InputProps:{startAdornment:Ye,endAdornment:Rt?Xe:pe,...me},inputProps:{"aria-label":Ae,...Xt},fullWidth:wt,onChange:Ee,onKeyDown:ae,...Bt})})}),Ut=(0,a.forwardRef)((m,D)=>{const{value:j="",onChange:N,...k}=m,{term:q,setTerm:ot}=St();(0,a.useEffect)(()=>{j&&ot(String(j))},[j,ot]);const Rt=(0,a.useCallback)(wt=>{N?N(wt):ot(wt)},[N,ot]);return(0,s.jsx)(pt,{inheritParentContextIfAvailable:!0,children:(0,s.jsx)(Q.Ig,{attributes:{pluginId:"search",extension:"SearchBar"},children:(0,s.jsx)(ut,{...k,ref:D,value:q,onChange:Rt})})})}),Nt=(0,p.A)(m=>({loading:{right:m.spacing(1),position:"absolute"}})),kt=m=>D=>(0,s.jsx)(pt,{inheritParentContextIfAvailable:!0,children:(0,s.jsx)(m,{...D})}),_t=()=>{const m=Nt();return(0,s.jsx)(Ct.A,{className:m.loading,"data-testid":"search-autocomplete-progressbar",color:"inherit",size:20})},Wt=kt(function(D){const{loading:j,value:N,onChange:k=()=>{},options:q=[],getOptionLabel:ot=Zt=>String(Zt),inputPlaceholder:Rt,inputDebounceTime:wt,freeSolo:Lt=!0,fullWidth:Dt=!0,clearOnBlur:Ht=!1,"data-testid":Xt="search-autocomplete",...me}=D,{setTerm:pe}=St(),Bt=(0,a.useCallback)(Zt=>Zt?typeof Zt=="string"?Zt:ot(Zt):"",[ot]),Oe=(0,a.useMemo)(()=>Bt(N),[N,Bt]),ve=(0,a.useCallback)((Zt,ce,Ee,ae)=>{pe(Bt(ce)),k(Zt,ce,Ee,ae)},[Bt,pe,k]),Vt=(0,a.useCallback)(({InputProps:{ref:Zt,className:ce,endAdornment:Ee},InputLabelProps:ae,...ie})=>(0,s.jsx)(Ut,{...ie,ref:Zt,clearButton:!1,value:Oe,placeholder:Rt,debounceTime:wt,endAdornment:j?(0,s.jsx)(_t,{}):Ee,InputProps:{className:ce}}),[j,Oe,Rt,wt]);return(0,s.jsx)(Pt.Ay,{...me,"data-testid":Xt,value:N,onChange:ve,options:q,getOptionLabel:ot,renderInput:Vt,freeSolo:Lt,fullWidth:Dt,clearOnBlur:Ht})});var Gt=t(18690),$t=t(27698);const Yt=m=>m?.document,le=m=>{const{entityId:D,entityTitle:j,debounceTime:N=150,searchResultUrlMapper:k}=m,[q,ot]=(0,a.useState)(!1),Rt=(0,Gt.Zp)(),{setFilters:wt,term:Lt,result:{loading:Dt,value:Ht}}=St(),[Xt,me]=(0,a.useState)([]);(0,a.useEffect)(()=>{let Vt=!0;if(Vt&&Ht){const Zt=Ht.results.slice(0,10);me(Zt)}return()=>{Vt=!1}},[Dt,Ht]);const{kind:pe,name:Bt,namespace:Oe}=D;(0,a.useEffect)(()=>{wt(Vt=>({...Vt,kind:pe,namespace:Oe,name:Bt}))},[pe,Oe,Bt,wt]);const ve=(Vt,Zt)=>{if(Yt(Zt)){const{location:ce}=Zt.document;Rt(k?k(ce):ce)}};return(0,s.jsx)(Wt,{"data-testid":"techdocs-search-bar",size:"small",open:q&&!!Lt,getOptionLabel:()=>"",filterOptions:Vt=>Vt,onClose:()=>{ot(!1)},onOpen:()=>{ot(!0)},onChange:ve,blurOnSelect:!0,noOptionsText:"No results found",value:null,options:Xt,renderOption:({document:Vt,highlight:Zt})=>(0,s.jsx)($t.TechDocsSearchResultListItem,{result:Vt,lineClamp:3,asListItem:!1,asLink:!1,title:Vt.title,highlight:Zt}),loading:Dt,inputDebounceTime:N,inputPlaceholder:`Search ${j||D.name} docs`,freeSolo:!1})},ge=m=>{const D={term:"",types:["techdocs"],pageCursor:"",filters:m.entityId};return(0,s.jsx)(pt,{initialState:D,children:(0,s.jsx)(le,{...m})})};var Kt=t(74219);const se=(0,a.lazy)(()=>Promise.all([t.e(3308),t.e(9234)]).then(t.bind(t,99234)).then(m=>({default:m.RealLogViewer})));function de(m){const{Progress:D}=(0,at.n)().getComponents();return(0,s.jsx)(a.Suspense,{fallback:(0,s.jsx)(D,{}),children:(0,s.jsx)(se,{...m})})}var Qe=t(73845),ne=t(72501),an=t(12398),Ke=t(32881);const we=(0,p.A)(m=>(0,an.A)({paper:{width:"100%",[m.breakpoints.up("sm")]:{width:"75%"},[m.breakpoints.up("md")]:{width:"50%"},padding:m.spacing(2.5)},root:{height:"100%",overflow:"hidden"},logs:{background:m.palette.background.default}})),Ge=({buildLog:m,onClose:D})=>{const j=we(),N=m.length===0?"Waiting for logs...":m.join(`
|
|
8
|
+
`);return(0,s.jsxs)(x.A,{container:!0,direction:"column",className:j.root,spacing:0,wrap:"nowrap",children:[(0,s.jsxs)(x.A,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",spacing:0,wrap:"nowrap",children:[(0,s.jsx)(ne.A,{variant:"h5",children:"Build Details"}),(0,s.jsx)(gt.A,{title:"Close the drawer",onClick:D,color:"inherit",children:(0,s.jsx)(Ke.A,{})},"dismiss")]}),(0,s.jsx)(x.A,{item:!0,xs:!0,children:(0,s.jsx)(de,{text:N,classes:{root:j.logs}})})]})},re=({buildLog:m})=>{const D=we(),[j,N]=(0,a.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(vt.A,{color:"inherit",onClick:()=>N(!0),children:"Show Build Logs"}),(0,s.jsx)(Qe.Ay,{classes:{paper:D.paper},anchor:"right",open:j,onClose:()=>N(!1),children:(0,s.jsx)(Ge,{buildLog:m,onClose:()=>N(!1)})})]})};var tn=t(12173);const en=({errorMessage:m})=>{const D=(0,lt.gf)(J.U).getOptionalString("techdocs.builder"),j=(0,G.s)(),{entityRef:N}=(0,b.V)(),k=(0,Gt.zy)();(0,a.useEffect)(()=>{const{pathname:ot,search:Rt,hash:wt}=k;j.captureEvent("not-found",`${ot}${Rt}${wt}`,{attributes:N})},[j,N,k]);let q="";return[void 0,"local"].includes(D)||(q="Note that techdocs.builder is not set to 'local' in your config, which means this Backstage app will not generate docs if they are not found. Make sure the project's docs are generated and published by some external process (e.g. CI/CD pipeline). Or change techdocs.builder to 'local' to generate docs from this Backstage instance."),(0,s.jsx)(tn.M,{status:"404",statusMessage:m||"Documentation not found",additionalInfo:q})};var pn=t(28966),nn=t(26679);function sn({contentLoading:m,content:D,activeSyncState:j}){return m||j==="BUILD_READY_RELOAD"||!D&&j==="CHECKING"?"CHECKING":!D&&j==="BUILDING"?"INITIAL_BUILD":D?j==="BUILDING"?"CONTENT_STALE_REFRESHING":j==="BUILD_READY"?"CONTENT_STALE_READY":j==="ERROR"?"CONTENT_STALE_ERROR":"CONTENT_FRESH":"CONTENT_NOT_FOUND"}function gn(m,D){const j={...m};switch(D.type){case"sync":D.state==="CHECKING"&&(j.buildLog=[]),j.activeSyncState=D.state,j.syncError=D.syncError;break;case"contentLoading":j.contentLoading=!0,j.contentError=void 0;break;case"content":typeof D.path=="string"&&(j.path=D.path),j.contentLoading=!1,j.content=D.content,j.contentError=D.contentError;break;case"buildLog":j.buildLog=j.buildLog.concat(D.log);break;default:throw new Error}return["BUILD_READY","BUILD_READY_RELOAD"].includes(j.activeSyncState)&&["contentLoading","content"].includes(D.type)&&(j.activeSyncState="UP_TO_DATE",j.buildLog=[]),j}function ze(m,D,j,N){const[k,q]=(0,a.useReducer)(gn,{activeSyncState:"CHECKING",path:N,contentLoading:!0,buildLog:[]}),ot=(0,lt.gf)(nn.s),{retry:Rt}=(0,pn.A)(async()=>{q({type:"contentLoading"});try{const Dt=await ot.getEntityDocs({kind:m,namespace:D,name:j},N);return q({type:"content",content:Dt,path:N}),Dt}catch(Dt){q({type:"content",contentError:Dt,path:N})}},[ot,m,D,j,N]),wt=(0,a.useRef)({content:void 0,reload:()=>{}});wt.current={content:k.content,reload:Rt},(0,X.A)(async()=>{q({type:"sync",state:"CHECKING"});const Dt=setTimeout(()=>{q({type:"sync",state:"BUILDING"})},1e3);try{switch(await ot.syncEntityDocs({kind:m,namespace:D,name:j},Xt=>{q({type:"buildLog",log:Xt})})){case"updated":wt.current.content?q({type:"sync",state:"BUILD_READY"}):(wt.current.reload(),q({type:"sync",state:"BUILD_READY_RELOAD"}));break;case"cached":q({type:"sync",state:"UP_TO_DATE"});break;default:q({type:"sync",state:"ERROR",syncError:new Error("Unexpected return state")});break}}catch(Ht){q({type:"sync",state:"ERROR",syncError:Ht})}finally{clearTimeout(Dt)}},[m,j,D,ot,q,wt]);const Lt=(0,a.useMemo)(()=>sn({activeSyncState:k.activeSyncState,contentLoading:k.contentLoading,content:k.content}),[k.activeSyncState,k.content,k.contentLoading]);return(0,a.useMemo)(()=>({state:Lt,contentReload:Rt,path:k.path,content:k.content,contentErrorMessage:k.contentError?.toString(),syncErrorMessage:k.syncError?.toString(),buildLog:k.buildLog}),[Lt,Rt,k.path,k.content,k.contentError,k.syncError,k.buildLog])}const He=(0,a.createContext)({}),Ve=()=>(0,a.useContext)(He),Se=m=>{const{children:D}=m,{"*":j=""}=(0,Gt.g)(),{entityRef:N}=(0,b.V)(),{kind:k,namespace:q,name:ot}=N,Rt=ze(k,q,ot,j);return(0,s.jsx)(He.Provider,{value:Rt,children:D instanceof Function?D(Rt):D})},Ze=m=>D=>(0,s.jsx)(Se,{children:(0,s.jsx)(m,{...D})}),Je=(0,p.A)(m=>({root:{marginBottom:m.spacing(2)},message:{wordBreak:"break-word",overflowWrap:"anywhere"}})),Ue=()=>{let m=null;const D=Je(),{state:j,contentReload:N,contentErrorMessage:k,syncErrorMessage:q,buildLog:ot}=Ve();return j==="INITIAL_BUILD"&&(m=(0,s.jsx)(Kt.A,{classes:{root:D.root},variant:"outlined",severity:"info",icon:(0,s.jsx)(Ct.A,{size:"24px"}),action:(0,s.jsx)(re,{buildLog:ot}),children:"Documentation is accessed for the first time and is being prepared. The subsequent loads are much faster."})),j==="CONTENT_STALE_REFRESHING"&&(m=(0,s.jsx)(Kt.A,{variant:"outlined",severity:"info",icon:(0,s.jsx)(Ct.A,{size:"24px"}),action:(0,s.jsx)(re,{buildLog:ot}),classes:{root:D.root},children:"A newer version of this documentation is being prepared and will be available shortly."})),j==="CONTENT_STALE_READY"&&(m=(0,s.jsx)(Kt.A,{variant:"outlined",severity:"success",action:(0,s.jsx)(vt.A,{color:"inherit",onClick:()=>N(),children:"Refresh"}),classes:{root:D.root},children:"A newer version of this documentation is now available, please refresh to view."})),j==="CONTENT_STALE_ERROR"&&(m=(0,s.jsxs)(Kt.A,{variant:"outlined",severity:"error",action:(0,s.jsx)(re,{buildLog:ot}),classes:{root:D.root,message:D.message},children:["Building a newer version of this documentation failed."," ",q]})),j==="CONTENT_NOT_FOUND"&&(m=(0,s.jsxs)(s.Fragment,{children:[q&&(0,s.jsxs)(Kt.A,{variant:"outlined",severity:"error",action:(0,s.jsx)(re,{buildLog:ot}),classes:{root:D.root,message:D.message},children:["Building a newer version of this documentation failed."," ",q]}),(0,s.jsx)(en,{errorMessage:k})]})),m};var $e=t(5893),Me=t(54917),cn=t(96726),T=t(71651),l=t.n(T);const E=/main\.[A-Fa-f0-9]{8}\.min\.css$/,w=/^https:\/\/fonts\.googleapis\.com/,Z=/^https:\/\/fonts\.gstatic\.com/,_=m=>m.nodeName==="LINK",st=m=>{const D=m?.getAttribute("href")||"",j=D.match(E),N=D.match(w),k=D.match(Z);return j||N||k},jt=m=>(_(m)&&!st(m)&&m.remove(),m),zt=m=>m.nodeName==="IFRAME",Qt=(m,D)=>{const j=m.getAttribute("src")||"";try{const{host:N}=new URL(j);return D.includes(N)}catch{return!1}},oe=m=>D=>(zt(D)&&!Qt(D,m)&&D.remove(),D),Be=()=>{const m=(0,lt.gf)(J.U);return(0,a.useMemo)(()=>m.getOptionalConfig("techdocs.sanitizer"),[m])},fe=()=>{const m=Be();return(0,a.useCallback)(async D=>{const j=m?.getOptionalStringArray("allowedIframeHosts");l().addHook("beforeSanitizeElements",jt);const N=["link","meta"];j&&(N.push("iframe"),l().addHook("beforeSanitizeElements",oe(j))),l().addHook("uponSanitizeElement",(Lt,Dt)=>{Dt.tagName==="meta"&&(Lt.getAttribute("http-equiv")==="refresh"&&Lt.getAttribute("content")?.includes("url=")||Lt.parentNode?.removeChild(Lt))}),l().addHook("uponSanitizeAttribute",(Lt,Dt)=>{Lt.tagName!=="meta"&&(Dt.attrName==="http-equiv"||Dt.attrName==="content")&&Lt.removeAttribute(Dt.attrName)});const k=m?.getOptionalString("allowedCustomElementTagNameRegExp"),q=m?.getOptionalString("allowedCustomElementAttributeNameRegExp"),Rt=["callto","cid","ftp","ftps","http","https","mailto","matrix","sms","tel","xmpp",...m?.getOptionalStringArray("additionalAllowedURIProtocols")||[]].filter(Boolean),wt=new RegExp(`^(?:${Rt.join("|")}:|[^a-z]|[a-z+.-]+(?:[^a-z+.\\-:]|$))`,"i");return l().sanitize(D.outerHTML,{ADD_TAGS:N,FORBID_TAGS:["style"],ADD_ATTR:["http-equiv","content","dominant-baseline"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0,ALLOWED_URI_REGEXP:wt,CUSTOM_ELEMENT_HANDLING:{tagNameCheck:k?new RegExp(k):void 0,attributeNameCheck:q?new RegExp(q):void 0}})},[m])};var te=t(34435),ee=t(268);const ue=({theme:m})=>`
|
|
9
|
+
/*================== Variables ==================*/
|
|
10
|
+
/*
|
|
11
|
+
As the MkDocs output is rendered in shadow DOM, the CSS variable definitions on the root selector are not applied. Instead, they have to be applied on :host.
|
|
12
|
+
As there is no way to transform the served main*.css yet (for example in the backend), we have to copy from main*.css and modify them.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
:host {
|
|
16
|
+
/* FONT */
|
|
17
|
+
--md-default-fg-color: ${m.palette.text.primary};
|
|
18
|
+
--md-default-fg-color--light: ${m.palette.text.secondary};
|
|
19
|
+
--md-default-fg-color--lighter: ${(0,ee.a)(m.palette.text.secondary,.7)};
|
|
20
|
+
--md-default-fg-color--lightest: ${(0,ee.a)(m.palette.text.secondary,.3)};
|
|
21
|
+
|
|
22
|
+
/* BACKGROUND */
|
|
23
|
+
--md-default-bg-color:${m.palette.background.default};
|
|
24
|
+
--md-default-bg-color--light: ${m.palette.background.paper};
|
|
25
|
+
--md-default-bg-color--lighter: ${(0,ee.a)(m.palette.background.paper,.7)};
|
|
26
|
+
--md-default-bg-color--lightest: ${(0,ee.a)(m.palette.background.paper,.3)};
|
|
27
|
+
|
|
28
|
+
/* PRIMARY */
|
|
29
|
+
--md-primary-fg-color: ${m.palette.primary.main};
|
|
30
|
+
--md-primary-fg-color--light: ${m.palette.primary.light};
|
|
31
|
+
--md-primary-fg-color--dark: ${m.palette.primary.dark};
|
|
32
|
+
--md-primary-bg-color: ${m.palette.primary.contrastText};
|
|
33
|
+
--md-primary-bg-color--light: ${(0,ee.a)(m.palette.primary.contrastText,.7)};
|
|
34
|
+
|
|
35
|
+
/* ACCENT */
|
|
36
|
+
--md-accent-fg-color: var(--md-primary-fg-color);
|
|
37
|
+
--md-accent-fg-color--transparent: ${(0,ee.X4)(m.palette.primary.main,.1)};
|
|
38
|
+
--md-accent-bg-color: var(--md-primary-bg-color);
|
|
39
|
+
--md-accent-bg-color--light: var(--md-primary-bg-color--light);
|
|
40
|
+
|
|
41
|
+
/* SHADOW */
|
|
42
|
+
--md-shadow-z1: ${m.shadows[1]};
|
|
43
|
+
--md-shadow-z2: ${m.shadows[2]};
|
|
44
|
+
--md-shadow-z3: ${m.shadows[3]};
|
|
45
|
+
|
|
46
|
+
/* EXTENSIONS */
|
|
47
|
+
--md-admonition-fg-color: var(--md-default-fg-color);
|
|
48
|
+
--md-admonition-bg-color: var(--md-default-bg-color);
|
|
49
|
+
/* Admonitions and others are using SVG masks to define icons. These masks are defined as CSS variables. */
|
|
50
|
+
--md-admonition-icon--note: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z"/></svg>');
|
|
51
|
+
--md-admonition-icon--abstract: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 5h16v2H4V5m0 4h16v2H4V9m0 4h16v2H4v-2m0 4h10v2H4v-2z"/></svg>');
|
|
52
|
+
--md-admonition-icon--info: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 002 12a10 10 0 0010 10 10 10 0 0010-10A10 10 0 0012 2z"/></svg>');
|
|
53
|
+
--md-admonition-icon--tip: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.55 11.2c-.23-.3-.5-.56-.76-.82-.65-.6-1.4-1.03-2.03-1.66C13.3 7.26 13 4.85 13.91 3c-.91.23-1.75.75-2.45 1.32-2.54 2.08-3.54 5.75-2.34 8.9.04.1.08.2.08.33 0 .22-.15.42-.35.5-.22.1-.46.04-.64-.12a.83.83 0 01-.15-.17c-1.1-1.43-1.28-3.48-.53-5.12C5.89 10 5 12.3 5.14 14.47c.04.5.1 1 .27 1.5.14.6.4 1.2.72 1.73 1.04 1.73 2.87 2.97 4.84 3.22 2.1.27 4.35-.12 5.96-1.6 1.8-1.66 2.45-4.32 1.5-6.6l-.13-.26c-.2-.46-.47-.87-.8-1.25l.05-.01m-3.1 6.3c-.28.24-.73.5-1.08.6-1.1.4-2.2-.16-2.87-.82 1.19-.28 1.89-1.16 2.09-2.05.17-.8-.14-1.46-.27-2.23-.12-.74-.1-1.37.18-2.06.17.38.37.76.6 1.06.76 1 1.95 1.44 2.2 2.8.04.14.06.28.06.43.03.82-.32 1.72-.92 2.27h.01z"/></svg>');
|
|
54
|
+
--md-admonition-icon--success: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2m-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
|
|
55
|
+
--md-admonition-icon--question: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.07 11.25l-.9.92C13.45 12.89 13 13.5 13 15h-2v-.5c0-1.11.45-2.11 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41a2 2 0 00-2-2 2 2 0 00-2 2H8a4 4 0 014-4 4 4 0 014 4 3.2 3.2 0 01-.93 2.25M13 19h-2v-2h2M12 2A10 10 0 002 12a10 10 0 0010 10 10 10 0 0010-10c0-5.53-4.5-10-10-10z"/></svg>');
|
|
56
|
+
--md-admonition-icon--warning: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 14h-2v-4h2m0 8h-2v-2h2M1 21h22L12 2 1 21z"/></svg>');
|
|
57
|
+
--md-admonition-icon--failure: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12 6.47 2 12 2m3.59 5L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41 15.59 7z"/></svg>');
|
|
58
|
+
--md-admonition-icon--danger: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.5 20l4.86-9.73H13V4l-5 9.73h3.5V20M12 2c2.75 0 5.1 1 7.05 2.95C21 6.9 22 9.25 22 12s-1 5.1-2.95 7.05C17.1 21 14.75 22 12 22s-5.1-1-7.05-2.95C3 17.1 2 14.75 2 12s1-5.1 2.95-7.05C6.9 3 9.25 2 12 2z"/></svg>');
|
|
59
|
+
--md-admonition-icon--bug: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 12h-4v-2h4m0 6h-4v-2h4m6-6h-2.81a5.985 5.985 0 00-1.82-1.96L17 4.41 15.59 3l-2.17 2.17a6.002 6.002 0 00-2.83 0L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8z"/></svg>');
|
|
60
|
+
--md-admonition-icon--example: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 13v-2h14v2H7m0 6v-2h14v2H7M7 7V5h14v2H7M3 8V5H2V4h2v4H3m-1 9v-1h3v4H2v-1h2v-.5H3v-1h1V17H2m2.25-7a.75.75 0 01.75.75c0 .2-.08.39-.21.52L3.12 13H5v1H2v-.92L4 11H2v-1h2.25z"/></svg>');
|
|
61
|
+
--md-admonition-icon--quote: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3l-2 4z"/></svg>');
|
|
62
|
+
--md-footnotes-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.42L5.83 13H21V7h-2z"/></svg>');
|
|
63
|
+
--md-details-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>');
|
|
64
|
+
--md-tasklist-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg>');
|
|
65
|
+
--md-tasklist-icon--checked: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
|
|
66
|
+
--md-nav-icon--prev: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>');
|
|
67
|
+
--md-nav-icon--next: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>');
|
|
68
|
+
--md-toc-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 9h14V7H3v2m0 4h14v-2H3v2m0 4h14v-2H3v2m16 0h2v-2h-2v2m0-10v2h2V7h-2m0 6h2v-2h-2v2z"/></svg>');
|
|
69
|
+
--md-clipboard-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12V1z"/></svg>');
|
|
70
|
+
--md-search-result-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h7c-.41-.25-.8-.56-1.14-.9-.33-.33-.61-.7-.86-1.1H6V4h7v5h5v1.18c.71.16 1.39.43 2 .82V8l-6-6m6.31 16.9c1.33-2.11.69-4.9-1.4-6.22-2.11-1.33-4.91-.68-6.22 1.4-1.34 2.11-.69 4.89 1.4 6.22 1.46.93 3.32.93 4.79.02L22 23.39 23.39 22l-3.08-3.1m-3.81.1a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5 2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5z"/></svg>');
|
|
71
|
+
--md-source-forks-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm0 2.122a2.25 2.25 0 1 0-1.5 0v.878A2.25 2.25 0 0 0 5.75 8.5h1.5v2.128a2.251 2.251 0 1 0 1.5 0V8.5h1.5a2.25 2.25 0 0 0 2.25-2.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75h-4.5A.75.75 0 0 1 5 6.25v-.878zm3.75 7.378a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm3-8.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5z"/></svg>');
|
|
72
|
+
--md-source-repositories-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 1 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 0 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5v-9zm10.5-1V9h-8c-.356 0-.694.074-1 .208V2.5a1 1 0 0 1 1-1h8zM5 12.25v3.25a.25.25 0 0 0 .4.2l1.45-1.087a.25.25 0 0 1 .3 0L8.6 15.7a.25.25 0 0 0 .4-.2v-3.25a.25.25 0 0 0-.25-.25h-3.5a.25.25 0 0 0-.25.25z"/></svg>');
|
|
73
|
+
--md-source-stars-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.75.75 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694v.001z"/></svg>');
|
|
74
|
+
--md-source-version-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M2.5 7.775V2.75a.25.25 0 0 1 .25-.25h5.025a.25.25 0 0 1 .177.073l6.25 6.25a.25.25 0 0 1 0 .354l-5.025 5.025a.25.25 0 0 1-.354 0l-6.25-6.25a.25.25 0 0 1-.073-.177zm-1.5 0V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.75 1.75 0 0 1 1 7.775zM6 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"/></svg>');
|
|
75
|
+
--md-version-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="m310.6 246.6-127.1 128c-7.1 6.3-15.3 9.4-23.5 9.4s-16.38-3.125-22.63-9.375l-127.1-128C.224 237.5-2.516 223.7 2.438 211.8S19.07 192 32 192h255.1c12.94 0 24.62 7.781 29.58 19.75s3.12 25.75-6.08 34.85z"/></svg>');
|
|
76
|
+
|
|
77
|
+
--md-status--updated: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>cellphone-arrow-down</title><path d="M17,1H7A2,2 0 0,0 5,3V21A2,2 0 0,0 7,23H17A2,2 0 0,0 19,21V3A2,2 0 0,0 17,1M17,19H7V5H17V19M16,13H13V8H11V13H8L12,17L16,13Z" /></svg>');
|
|
78
|
+
--md-status: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2v6Z"/></svg>');
|
|
79
|
+
--md-status--new: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12m-10 5h-2v-2h2v2m0-4h-2V7h2v6Z"/></svg>');
|
|
80
|
+
--md-status--deprecated: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9m0 5h2v9H9V8m4 0h2v9h-2V8Z"/></svg>');
|
|
81
|
+
--md-status--encrypted: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4m0 6c1.4 0 2.8 1.1 2.8 2.5V11c.6 0 1.2.6 1.2 1.3v3.5c0 .6-.6 1.2-1.3 1.2H9.2c-.6 0-1.2-.6-1.2-1.3v-3.5c0-.6.6-1.2 1.2-1.2V9.5C9.2 8.1 10.6 7 12 7m0 1.2c-.8 0-1.5.5-1.5 1.3V11h3V9.5c0-.8-.7-1.3-1.5-1.3Z"/></svg>');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:host > * {
|
|
85
|
+
/* CODE */
|
|
86
|
+
--md-code-fg-color: ${m.palette.text.primary};
|
|
87
|
+
--md-code-bg-color: ${m.palette.code?.background??m.palette.background.paper};
|
|
88
|
+
--md-code-hl-color: ${(0,ee.X4)(m.palette.warning.main,.5)};
|
|
89
|
+
--md-code-hl-color--light: var(--md-code-hl-color);
|
|
90
|
+
--md-code-hl-keyword-color: ${m.palette.type==="dark"?m.palette.primary.light:m.palette.primary.dark};
|
|
91
|
+
--md-code-hl-function-color: ${m.palette.type==="dark"?m.palette.secondary.light:m.palette.secondary.dark};
|
|
92
|
+
--md-code-hl-string-color: ${m.palette.type==="dark"?m.palette.success.light:m.palette.success.dark};
|
|
93
|
+
--md-code-hl-number-color: ${m.palette.type==="dark"?m.palette.error.light:m.palette.error.dark};
|
|
94
|
+
--md-code-hl-constant-color: var(--md-code-hl-function-color);
|
|
95
|
+
--md-code-hl-special-color: var(--md-code-hl-function-color);
|
|
96
|
+
--md-code-hl-name-color: var(--md-code-fg-color);
|
|
97
|
+
--md-code-hl-comment-color: var(--md-default-fg-color--light);
|
|
98
|
+
--md-code-hl-generic-color: var(--md-default-fg-color--light);
|
|
99
|
+
--md-code-hl-variable-color: var(--md-default-fg-color--light);
|
|
100
|
+
--md-code-hl-operator-color: var(--md-default-fg-color--light);
|
|
101
|
+
--md-code-hl-punctuation-color: var(--md-default-fg-color--light);
|
|
102
|
+
|
|
103
|
+
/* TYPESET */
|
|
104
|
+
--md-typeset-font-size: 1rem;
|
|
105
|
+
--md-typeset-color: var(--md-default-fg-color);
|
|
106
|
+
--md-typeset-a-color: ${m.palette.link};
|
|
107
|
+
--md-typeset-table-color: ${m.palette.text.primary};
|
|
108
|
+
--md-typeset-table-color--light: ${(0,ee.X4)(m.palette.text.primary,.05)};
|
|
109
|
+
--md-typeset-del-color: ${m.palette.type==="dark"?(0,ee.X4)(m.palette.error.dark,.5):(0,ee.X4)(m.palette.error.light,.5)};
|
|
110
|
+
--md-typeset-ins-color: ${m.palette.type==="dark"?(0,ee.X4)(m.palette.success.dark,.5):(0,ee.X4)(m.palette.success.light,.5)};
|
|
111
|
+
--md-typeset-mark-color: ${m.palette.type==="dark"?(0,ee.X4)(m.palette.warning.dark,.5):(0,ee.X4)(m.palette.warning.light,.5)};
|
|
112
|
+
--md-typeset-kbd-color: var(--md-code-bg-color);
|
|
113
|
+
--md-typeset-kbd-accent-color var(--md-code-bg-color);
|
|
114
|
+
--md-typeset-kbd-border-color: var(--md-default-fg-color--light);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@media screen and (max-width: 76.1875em) {
|
|
118
|
+
:host > * {
|
|
119
|
+
/* TYPESET */
|
|
120
|
+
--md-typeset-font-size: .9rem;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media screen and (max-width: 600px) {
|
|
125
|
+
:host > * {
|
|
126
|
+
/* TYPESET */
|
|
127
|
+
--md-typeset-font-size: .7rem;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
--md-footer-bg-color: var(--md-default-bg-color);
|
|
132
|
+
--md-footer-bg-color--dark: var(--md-default-bg-color);
|
|
133
|
+
`,rn=({theme:m})=>`
|
|
134
|
+
/*================== Reset ==================*/
|
|
135
|
+
|
|
136
|
+
body {
|
|
137
|
+
--md-text-color: var(--md-default-fg-color);
|
|
138
|
+
--md-text-link-color: var(--md-accent-fg-color);
|
|
139
|
+
--md-text-font-family: ${m.typography.fontFamily};
|
|
140
|
+
font-family: var(--md-text-font-family);
|
|
141
|
+
background-color: unset;
|
|
142
|
+
}
|
|
143
|
+
`,fn="224px",he=({theme:m,sidebar:D})=>`
|
|
144
|
+
/*================== Layout ==================*/
|
|
145
|
+
|
|
146
|
+
/* mkdocs material v9 compat */
|
|
147
|
+
.md-nav__title {
|
|
148
|
+
color: var(--md-default-fg-color);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.md-grid {
|
|
152
|
+
max-width: 100%;
|
|
153
|
+
margin: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.md-nav {
|
|
157
|
+
font-size: calc(var(--md-typeset-font-size) * 0.9);
|
|
158
|
+
}
|
|
159
|
+
.md-nav__link:not(:has(svg)) {
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
justify-content: space-between;
|
|
163
|
+
}
|
|
164
|
+
.md-nav__link:has(svg) > .md-ellipsis {
|
|
165
|
+
flex-grow: 1;
|
|
166
|
+
}
|
|
167
|
+
.md-nav__icon {
|
|
168
|
+
height: 20px !important;
|
|
169
|
+
width: 20px !important;
|
|
170
|
+
margin-left:${m.spacing(1)}px;
|
|
171
|
+
}
|
|
172
|
+
.md-nav__icon svg {
|
|
173
|
+
margin: 0;
|
|
174
|
+
width: 20px !important;
|
|
175
|
+
height: 20px !important;
|
|
176
|
+
}
|
|
177
|
+
.md-nav__icon:after {
|
|
178
|
+
width: 20px !important;
|
|
179
|
+
height: 20px !important;
|
|
180
|
+
}
|
|
181
|
+
.md-status--updated::after {
|
|
182
|
+
-webkit-mask-image: var(--md-status--updated);
|
|
183
|
+
mask-image: var(--md-status--updated);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.md-nav__item--active > .md-nav__link, a.md-nav__link--active {
|
|
187
|
+
text-decoration: underline;
|
|
188
|
+
color: var(--md-typeset-a-color);
|
|
189
|
+
}
|
|
190
|
+
.md-nav__link--active > .md-status:after {
|
|
191
|
+
background-color: var(--md-typeset-a-color);
|
|
192
|
+
}
|
|
193
|
+
.md-nav__link[href]:hover > .md-status:after {
|
|
194
|
+
background-color: var(--md-accent-fg-color);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.md-main__inner {
|
|
198
|
+
margin-top: 0;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.md-sidebar {
|
|
202
|
+
bottom: 75px;
|
|
203
|
+
position: fixed;
|
|
204
|
+
width: 16rem;
|
|
205
|
+
overflow-y: auto;
|
|
206
|
+
overflow-x: hidden;
|
|
207
|
+
scrollbar-color: rgb(193, 193, 193) #eee;
|
|
208
|
+
scrollbar-width: thin;
|
|
209
|
+
}
|
|
210
|
+
.md-sidebar .md-sidebar__scrollwrap {
|
|
211
|
+
width: calc(16rem);
|
|
212
|
+
overflow-y: hidden;
|
|
213
|
+
}
|
|
214
|
+
@supports selector(::-webkit-scrollbar) {
|
|
215
|
+
[dir=ltr] .md-sidebar__inner {
|
|
216
|
+
padding-right: calc(100% - 15.1rem);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
.md-sidebar--secondary {
|
|
220
|
+
right: ${m.spacing(3)}px;
|
|
221
|
+
}
|
|
222
|
+
.md-sidebar::-webkit-scrollbar {
|
|
223
|
+
width: 5px;
|
|
224
|
+
}
|
|
225
|
+
.md-sidebar::-webkit-scrollbar-button {
|
|
226
|
+
width: 5px;
|
|
227
|
+
height: 5px;
|
|
228
|
+
}
|
|
229
|
+
.md-sidebar::-webkit-scrollbar-track {
|
|
230
|
+
background: #eee;
|
|
231
|
+
border: 1 px solid rgb(250, 250, 250);
|
|
232
|
+
box-shadow: 0px 0px 3px #dfdfdf inset;
|
|
233
|
+
border-radius: 3px;
|
|
234
|
+
}
|
|
235
|
+
.md-sidebar::-webkit-scrollbar-thumb {
|
|
236
|
+
width: 5px;
|
|
237
|
+
background: rgb(193, 193, 193);
|
|
238
|
+
border: transparent;
|
|
239
|
+
border-radius: 3px;
|
|
240
|
+
}
|
|
241
|
+
.md-sidebar::-webkit-scrollbar-thumb:hover {
|
|
242
|
+
background: rgb(125, 125, 125);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.md-content {
|
|
246
|
+
max-width: calc(100% - 16rem * 2);
|
|
247
|
+
margin-left: 16rem;
|
|
248
|
+
margin-bottom: 50px;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.md-content > .md-sidebar {
|
|
252
|
+
left: 16rem;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.md-footer {
|
|
256
|
+
position: fixed;
|
|
257
|
+
bottom: 0px;
|
|
258
|
+
pointer-events: none;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.md-footer-nav__link, .md-footer__link {
|
|
262
|
+
pointer-events: all;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.md-footer__title {
|
|
266
|
+
background-color: unset;
|
|
267
|
+
}
|
|
268
|
+
.md-footer-nav__link, .md-footer__link {
|
|
269
|
+
width: 16rem;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.md-dialog {
|
|
273
|
+
background-color: unset;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
@media screen and (min-width: 76.25em) {
|
|
277
|
+
.md-sidebar {
|
|
278
|
+
height: auto;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@media screen and (max-width: 76.1875em) {
|
|
283
|
+
.md-nav {
|
|
284
|
+
transition: none !important;
|
|
285
|
+
background-color: var(--md-default-bg-color)
|
|
286
|
+
}
|
|
287
|
+
.md-nav--primary .md-nav__title {
|
|
288
|
+
cursor: auto;
|
|
289
|
+
color: var(--md-default-fg-color);
|
|
290
|
+
font-weight: 700;
|
|
291
|
+
white-space: normal;
|
|
292
|
+
line-height: 1rem;
|
|
293
|
+
height: auto;
|
|
294
|
+
display: flex;
|
|
295
|
+
flex-flow: column;
|
|
296
|
+
row-gap: 1.6rem;
|
|
297
|
+
padding: 1.2rem .8rem .8rem;
|
|
298
|
+
background-color: var(--md-default-bg-color);
|
|
299
|
+
}
|
|
300
|
+
.md-nav--primary .md-nav__title~.md-nav__list {
|
|
301
|
+
box-shadow: none;
|
|
302
|
+
}
|
|
303
|
+
.md-nav--primary .md-nav__title ~ .md-nav__list > :first-child {
|
|
304
|
+
border-top: none;
|
|
305
|
+
}
|
|
306
|
+
.md-nav--primary .md-nav__title .md-nav__button {
|
|
307
|
+
display: none;
|
|
308
|
+
}
|
|
309
|
+
.md-nav--primary .md-nav__title .md-nav__icon {
|
|
310
|
+
color: var(--md-default-fg-color);
|
|
311
|
+
position: static;
|
|
312
|
+
height: auto;
|
|
313
|
+
margin: 0 0 0 -0.2rem;
|
|
314
|
+
}
|
|
315
|
+
.md-nav--primary > .md-nav__title [for="none"] {
|
|
316
|
+
padding-top: 0;
|
|
317
|
+
}
|
|
318
|
+
.md-nav--primary .md-nav__item {
|
|
319
|
+
border-top: none;
|
|
320
|
+
}
|
|
321
|
+
.md-nav--primary :is(.md-nav__title,.md-nav__item) {
|
|
322
|
+
font-size : var(--md-typeset-font-size);
|
|
323
|
+
}
|
|
324
|
+
.md-nav .md-source {
|
|
325
|
+
display: none;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.md-sidebar {
|
|
329
|
+
height: 100%;
|
|
330
|
+
}
|
|
331
|
+
.md-sidebar--primary {
|
|
332
|
+
width: 16rem !important;
|
|
333
|
+
z-index: 200;
|
|
334
|
+
left: ${D.isPinned?`calc(-16rem + ${fn})`:"calc(-16rem + 72px)"} !important;
|
|
335
|
+
}
|
|
336
|
+
.md-sidebar--secondary:not([hidden]) {
|
|
337
|
+
display: none;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
[data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary {
|
|
341
|
+
transform: translateX(16rem);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.md-content {
|
|
345
|
+
max-width: 100%;
|
|
346
|
+
margin-left: 0;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.md-header__button {
|
|
350
|
+
margin: 0.4rem 0;
|
|
351
|
+
margin-left: 0.4rem;
|
|
352
|
+
padding: 0;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.md-overlay {
|
|
356
|
+
left: 0;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.md-footer {
|
|
360
|
+
position: static;
|
|
361
|
+
padding-left: 0;
|
|
362
|
+
}
|
|
363
|
+
.md-footer-nav__link {
|
|
364
|
+
/* footer links begin to overlap at small sizes without setting width */
|
|
365
|
+
width: 50%;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
@media screen and (max-width: 600px) {
|
|
370
|
+
.md-sidebar--primary {
|
|
371
|
+
left: -16rem !important;
|
|
372
|
+
width: 16rem;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
@media print {
|
|
378
|
+
.md-sidebar,
|
|
379
|
+
#toggle-sidebar {
|
|
380
|
+
display: none;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.md-content {
|
|
384
|
+
margin: 0;
|
|
385
|
+
width: 100%;
|
|
386
|
+
max-width: 100%;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
`,Ft=["h1","h2","h3","h4","h5","h6"],Fe=/(em)|(rem)/gi,Ln=/var\(|\)/gi,mn=({theme:m})=>`
|
|
390
|
+
/*================== Typeset ==================*/
|
|
391
|
+
|
|
392
|
+
.md-typeset {
|
|
393
|
+
font-size: var(--md-typeset-font-size);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
${Ft.reduce((D,j)=>{const N=m.typography.htmlFontSize??16,k=m.typography[j],{lineHeight:q,fontFamily:ot,fontWeight:Rt,fontSize:wt}=k,Lt=Dt=>{if(typeof Dt=="number")return Lt(`${Dt/N*.6}rem`);if(typeof Dt=="string"){if(Dt.match(Ln)){const Ht=window.getComputedStyle(document.body).getPropertyValue(Dt.replaceAll(Ln,""));if(Ht!=="")return Lt(Ht)}else if(Dt.match(Fe))return`calc(${Dt.replace(Fe,"")} * var(--md-typeset-font-size))`}return Dt};return D.concat(`
|
|
397
|
+
.md-typeset ${j} {
|
|
398
|
+
color: var(--md-default-fg-color);
|
|
399
|
+
line-height: ${q};
|
|
400
|
+
font-family: ${ot};
|
|
401
|
+
font-weight: ${Rt};
|
|
402
|
+
font-size: ${Lt(wt)};
|
|
403
|
+
}
|
|
404
|
+
`)},"")}
|
|
405
|
+
|
|
406
|
+
.md-typeset .md-content__button {
|
|
407
|
+
color: var(--md-default-fg-color);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.md-typeset hr {
|
|
411
|
+
border-bottom: 0.05rem dotted ${m.palette.divider};
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.md-typeset details {
|
|
415
|
+
font-size: var(--md-typeset-font-size) !important;
|
|
416
|
+
}
|
|
417
|
+
.md-typeset details summary {
|
|
418
|
+
padding-left: 2.5rem !important;
|
|
419
|
+
}
|
|
420
|
+
.md-typeset details summary:before,
|
|
421
|
+
.md-typeset details summary:after {
|
|
422
|
+
top: 50% !important;
|
|
423
|
+
width: 20px !important;
|
|
424
|
+
height: 20px !important;
|
|
425
|
+
transform: rotate(0deg) translateY(-50%) !important;
|
|
426
|
+
}
|
|
427
|
+
.md-typeset details[open] > summary:after {
|
|
428
|
+
transform: rotate(90deg) translateX(-50%) !important;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.md-typeset blockquote {
|
|
432
|
+
color: var(--md-default-fg-color--light);
|
|
433
|
+
border-left: 0.2rem solid var(--md-default-fg-color--light);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.md-typeset table:not([class]) {
|
|
437
|
+
font-size: var(--md-typeset-font-size);
|
|
438
|
+
border: 1px solid var(--md-default-fg-color);
|
|
439
|
+
border-bottom: none;
|
|
440
|
+
border-collapse: collapse;
|
|
441
|
+
border-radius: ${m.shape.borderRadius}px;
|
|
442
|
+
}
|
|
443
|
+
.md-typeset table:not([class]) th {
|
|
444
|
+
font-weight: bold;
|
|
445
|
+
}
|
|
446
|
+
.md-typeset table:not([class]) td, .md-typeset table:not([class]) th {
|
|
447
|
+
border-bottom: 1px solid var(--md-default-fg-color);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.md-typeset pre > code::-webkit-scrollbar-thumb {
|
|
451
|
+
background-color: hsla(0, 0%, 0%, 0.32);
|
|
452
|
+
}
|
|
453
|
+
.md-typeset pre > code::-webkit-scrollbar-thumb:hover {
|
|
454
|
+
background-color: hsla(0, 0%, 0%, 0.87);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.md-typeset code {
|
|
458
|
+
word-break: keep-all;
|
|
459
|
+
}
|
|
460
|
+
`,Mn=()=>`
|
|
461
|
+
/*================== Animations ==================*/
|
|
462
|
+
/*
|
|
463
|
+
Disable CSS animations on link colors as they lead to issues in dark mode.
|
|
464
|
+
The dark mode color theme is applied later and theirfore there is always an animation from light to dark mode when navigation between pages.
|
|
465
|
+
*/
|
|
466
|
+
.md-dialog, .md-nav__link, .md-footer__link, .md-typeset a, .md-typeset a::before, .md-typeset .headerlink {
|
|
467
|
+
transition: none;
|
|
468
|
+
}
|
|
469
|
+
`,cs=({theme:m})=>`
|
|
470
|
+
/*================== Extensions ==================*/
|
|
471
|
+
|
|
472
|
+
/* HIGHLIGHT */
|
|
473
|
+
.highlight .md-clipboard:after {
|
|
474
|
+
content: unset;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.highlight .nx {
|
|
478
|
+
color: ${m.palette.type==="dark"?"#ff53a3":"#ec407a"};
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/* CODE HILITE */
|
|
482
|
+
.codehilite .gd {
|
|
483
|
+
background-color: ${m.palette.type==="dark"?"rgba(248,81,73,0.65)":"#fdd"};
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.codehilite .gi {
|
|
487
|
+
background-color: ${m.palette.type==="dark"?"rgba(46,160,67,0.65)":"#dfd"};
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/* TABBED */
|
|
491
|
+
.tabbed-set>input:nth-child(1):checked~.tabbed-labels>:nth-child(1),
|
|
492
|
+
.tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),
|
|
493
|
+
.tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),
|
|
494
|
+
.tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),
|
|
495
|
+
.tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),
|
|
496
|
+
.tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),
|
|
497
|
+
.tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),
|
|
498
|
+
.tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),
|
|
499
|
+
.tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9),
|
|
500
|
+
.tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),
|
|
501
|
+
.tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),
|
|
502
|
+
.tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),
|
|
503
|
+
.tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),
|
|
504
|
+
.tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),
|
|
505
|
+
.tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),
|
|
506
|
+
.tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),
|
|
507
|
+
.tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),
|
|
508
|
+
.tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),
|
|
509
|
+
.tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),
|
|
510
|
+
.tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20) {
|
|
511
|
+
color: var(--md-accent-fg-color);
|
|
512
|
+
border-color: var(--md-accent-fg-color);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/* TASK-LIST */
|
|
516
|
+
.task-list-control .task-list-indicator::before {
|
|
517
|
+
background-color: ${m.palette.action.disabledBackground};
|
|
518
|
+
}
|
|
519
|
+
.task-list-control [type="checkbox"]:checked + .task-list-indicator:before {
|
|
520
|
+
background-color: ${m.palette.success.main};
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/* ADMONITION */
|
|
524
|
+
.admonition {
|
|
525
|
+
font-size: var(--md-typeset-font-size) !important;
|
|
526
|
+
}
|
|
527
|
+
.admonition .admonition-title {
|
|
528
|
+
padding-left: 2.5rem !important;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.admonition .admonition-title:before {
|
|
532
|
+
top: 50% !important;
|
|
533
|
+
width: 20px !important;
|
|
534
|
+
height: 20px !important;
|
|
535
|
+
transform: translateY(-50%) !important;
|
|
536
|
+
}
|
|
537
|
+
`,ls={dark:["#only-light","#gh-light-mode-only"],light:["#only-dark","#gh-dark-mode-only"]},ds=[ue,rn,he,mn,Mn,cs,({theme:m})=>`
|
|
538
|
+
/*================== Palette ==================*/
|
|
539
|
+
/*
|
|
540
|
+
When color palette toggle is enabled in material theme for Mkdocs, there is a possibility to show conditionally
|
|
541
|
+
images by adding #only-dark or #only-light to resource hash. Backstage doesn't use mkdocs color palette mechanism,
|
|
542
|
+
so there is a need to add css rules from palette*.css manually.
|
|
543
|
+
*/
|
|
544
|
+
|
|
545
|
+
${ls[m.palette.type].map(D=>`img[src$="${D}"]`).join(", ")} {
|
|
546
|
+
display: none;
|
|
547
|
+
}
|
|
548
|
+
`],bn=()=>(0,te.Ut)(),us=()=>{const m=bn(),D=(0,Me.A)();return(0,a.useMemo)(()=>{const j={theme:D,sidebar:m};return ds.reduce((N,k)=>N+k(j),"")},[D,m])},Bn=()=>{const m=us();return(0,a.useCallback)(D=>(D.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${m}</style>`),D),[m])},jn=async(m,D)=>{let j;if(typeof m=="string")j=new DOMParser().parseFromString(m,"text/html").documentElement;else if(m instanceof Element)j=m;else throw new Error("dom is not a recognized type");for(const N of D)j=await N(j);return j},Un=(m,D,j)=>{const N=new URL(D,"https://ignored.com").pathname,k=m==="src"&&N.endsWith(".svg"),q=!D.match(/^([a-z]*:)?\/\//i),ot=D.startsWith(j);return k&&(q||ot)},hs=({techdocsStorageApi:m,entityId:D,path:j})=>async N=>{const k=await m.getApiOrigin(),q=async(ot,Rt)=>{for(const wt of ot)if(wt.hasAttribute(Rt)){const Lt=wt.getAttribute(Rt);if(!Lt)return;const Dt=await m.getBaseUrl(Lt,D,j);if(Un(Rt,Lt,k))try{const Xt=await(await fetch(Dt,{credentials:"include"})).text();wt.setAttribute(Rt,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(Xt)))}`)}catch{wt.setAttribute("alt",`Error: ${Lt}`)}else wt.setAttribute(Rt,Dt)}};return await Promise.all([q(N.querySelectorAll("img"),"src"),q(N.querySelectorAll("script"),"src"),q(N.querySelectorAll("source"),"src"),q(N.querySelectorAll("link"),"href"),q(N.querySelectorAll("a[download]"),"href")]),N},ps=()=>m=>(((j,N)=>{Array.from(j).filter(k=>k.hasAttribute(N)).forEach(k=>{const q=k.getAttribute(N);if(q){q.match(/^https?:\/\//i)&&k.setAttribute("target","_blank");try{const ot=$n(window.location.href);k.setAttribute(N,new URL(q,ot).toString())}catch{k.replaceWith(k.textContent||q)}}})})(Array.from(m.getElementsByTagName("a")),"href"),m);function $n(m){const D=new URL(m);return!D.pathname.endsWith("/")&&!D.pathname.endsWith(".html")&&(D.pathname+="/"),D.toString()}var gs=t(27326);let Fn;Fn=Promise.resolve().then(t.t.bind(t,25873,19));function yn(m,D){Fn.then(j=>{"createRoot"in j?j.createRoot(D).render(m):j.render(m,D)})}const fs=()=>m=>{const D=m.querySelector('.md-header label[for="__drawer"]'),j=m.querySelector("article");if(!D||!j)return m;const N=D.cloneNode();return yn((0,a.createElement)(gs.A),N),N.id="toggle-sidebar",N.title="Toggle Sidebar",N.classList.add("md-content__button"),N.style.setProperty("padding","0 0 0 5px"),N.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),j?.prepend(N),m},Nn=()=>m=>(m.querySelector(".md-header")?.remove(),m),ms=()=>m=>(m.querySelector(".md-footer .md-copyright")?.remove(),m.querySelector(".md-footer-copyright")?.remove(),m);var ys=t(36021),kn=t(90292),Wn=t(52536),vs=t.n(Wn);const Sn=m=>D=>{const j=D.querySelector('[title="Edit this page"]');if(!j||!j.href)return D;const N=new URL(j.href),k=m.byUrl(N);if(k?.type!=="github"&&k?.type!=="gitlab")return D;const q=D.querySelector("article>h1")?.childNodes[0].textContent||"",ot=encodeURIComponent(`Documentation Feedback: ${q}`),Rt=encodeURIComponent(`Page source:
|
|
549
|
+
${j.href}
|
|
550
|
+
|
|
551
|
+
Feedback:`),wt=k?.type==="github"?(0,ys.F)(N.href,"blob"):N.href,Lt=vs()(wt),Dt=`/${Lt.organization}/${Lt.name}`,Ht=j.cloneNode();switch(k?.type){case"gitlab":Ht.href=`${N.origin}${Dt}/issues/new?issue[title]=${ot}&issue[description]=${Rt}`;break;case"github":Ht.href=`${N.origin}${Dt}/issues/new?title=${ot}&body=${Rt}`;break;default:return D}return yn((0,a.createElement)(kn.A),Ht),Ht.style.paddingLeft="5px",Ht.title="Leave feedback for this page",Ht.id="git-feedback-link",j?.insertAdjacentElement("beforebegin",Ht),D};var On=t(38097);const Es=(0,p.A)(m=>({button:{color:m.palette.primary.light,textDecoration:"underline"}})),Kn=({message:m,handleButtonClick:D,autoHideDuration:j})=>{const N=Es(),[k,q]=(0,a.useState)(!0),ot=()=>q(!1);return(0,s.jsx)(On.A,{open:k,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:j,color:"primary",onClose:ot,message:m,action:(0,s.jsx)(vt.A,{classes:{root:N.button},size:"small",onClick:()=>{ot(),D()},children:"Redirect now"})})},zn=(m,D)=>{const N=k=>{const q=$n(window.location.href),ot=new URL(k,q);if(ot.hostname!==window.location.hostname){const wt=window.location.pathname,Lt=wt.indexOf(D),Dt=wt.slice(0,Lt+D.length);return new URL(Dt,q).href}return ot.href};return k=>{for(const q of Array.from(k.querySelectorAll("meta")))if(q.getAttribute("http-equiv")==="refresh"){const ot=q.getAttribute("content")?.split("url=");if(!ot||ot.length<2)return k;const Rt=ot[1],wt=N(Rt);if(window.location.href===wt)return k;const Lt=document.createElement("div");return yn((0,s.jsx)(Kn,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>m(wt),autoHideDuration:3e3}),Lt),document.body.appendChild(Lt),setTimeout(()=>{m(wt)},3e3),k}return k}},As=()=>m=>(setTimeout(()=>{const D=m?.querySelectorAll("li.md-nav__item--active");D.length!==0&&(D.forEach(N=>{const k=N?.querySelector("input");k?.checked||k?.click()}),D[D.length-1].scrollIntoView())},200),m);var xs=t(50868),Cs=t(10437),bs=t(71677),Tt=t(87051),Ss=t(36338);const Os=(0,Tt.A)(m=>({tooltip:{fontSize:"inherit",color:m.palette.text.primary,margin:0,padding:m.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(bs.Ay),Ps=()=>(0,s.jsx)(Cs.A,{children:(0,s.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"})}),Ts=({text:m})=>{const[D,j]=(0,a.useState)(!1),[,N]=(0,Ss.A)(),k=(0,a.useCallback)(()=>{N(m),j(!0)},[m,N]),q=(0,a.useCallback)(()=>{j(!1)},[j]);return(0,s.jsx)(Os,{title:"Copied to clipboard",placement:"left",open:D,onClose:q,leaveDelay:1e3,children:(0,s.jsx)(gt.A,{style:{position:"absolute"},className:"md-clipboard md-icon",onClick:k,"aria-label":"Copy to clipboard",children:(0,s.jsx)(Ps,{})})})},Rs=m=>D=>{const j=D.querySelectorAll("pre > code");for(const N of j){const k=N.textContent||"",q=document.createElement("div");N?.parentElement?.prepend(q),yn((0,s.jsx)(xs.A,{theme:m,children:(0,s.jsx)(Ts,{text:k})}),q)}return D},ws=({baseUrl:m,onClick:D})=>j=>(Array.from(j.getElementsByTagName("a")).forEach(N=>{N.addEventListener("click",k=>{const ot=N.getAttribute("href");ot&&ot.startsWith(m)&&!N.hasAttribute("download")&&(k.preventDefault(),D(k,ot))})}),j),Hn=({onLoading:m,onLoaded:D})=>j=>(m(),j.addEventListener(u,function N(){D(),j.removeEventListener(u,N)}),j);function Is(){return m=>(m.querySelectorAll("label.md-nav__link[for]").forEach(j=>{j.setAttribute("tabIndex","0"),j.addEventListener("keydown",N=>{const k=N;if(k.key==="Enter"||k.key===" "){const q=j.getAttribute("for");if(!q)return;const ot=m.querySelector(`#${q}`);ot&&ot.type==="checkbox"&&(ot.checked=!ot.checked,ot.dispatchEvent(new Event("change",{bubbles:!0})),N.preventDefault(),N.stopPropagation())}})}),m)}function Vn(m,D){const j=new URL(D),N=`${j.origin}${j.pathname.replace(/\/$/,"")}`,k=m.replace(N,"").replace(/^\/+/,""),q=new URL(`http://localhost/${k}`);return`${q.pathname}${q.search}${q.hash}`}function Gn(){const m=(0,a.useRef)((0,Gt.Zp)()),j=(0,lt.gf)(J.U).getOptionalString("app.baseUrl");return(0,a.useCallback)(k=>{let q=k;if(j)try{q=Vn(k,j)}catch{}m.current(q)},[j])}const Ds="screen and (max-width: 76.1875em)",Ls=m=>{const D=(0,Gt.zy)(),j=(0,Gt.Zp)(),{"*":N=""}=(0,Gt.g)();(0,a.useLayoutEffect)(()=>{N===""&&m&&j(`${D.pathname}${m}`,{replace:!0})},[])},Ne=(m,D)=>{const j=Gn(),N=(0,Me.A)(),k=(0,$e.A)(Ds),q=fe(),ot=Bn(),Rt=(0,G.s)(),wt=(0,lt.gf)(nn.s),Lt=(0,lt.gf)(cn.Y),Dt=(0,lt.gf)(J.U),{state:Ht,path:Xt,content:me}=Ve(),{"*":pe=""}=(0,Gt.g)(),[Bt,Oe]=(0,a.useState)(null),ve=g(Bt);Ls(D);const Vt=(0,a.useCallback)(()=>{if(!Bt)return;Bt.querySelectorAll(".md-sidebar").forEach(ie=>{if(k)ie.style.top="0px";else{const We=document?.querySelector(".techdocs-reader-page")?.getBoundingClientRect().top??0;let Pe=Bt.getBoundingClientRect().top??0;const Xe=Bt.querySelector(".md-container > .md-tabs")?.getBoundingClientRect().height??0;Pe<We&&(Pe=We);const qt=Math.max(Pe,0)+Xe;ie.style.top=`${qt}px`;const dn=Bt.querySelector(".md-container > .md-footer")?.getBoundingClientRect().top??window.innerHeight;ie.style.height=`${dn-qt}px`}ie.style.setProperty("opacity","1")})},[Bt,k]);(0,a.useEffect)(()=>(window.addEventListener("resize",Vt),window.addEventListener("scroll",Vt,!0),()=>{window.removeEventListener("resize",Vt),window.removeEventListener("scroll",Vt,!0)}),[Bt,Vt]);const Zt=(0,a.useCallback)(()=>{if(!Bt)return;const ae=Bt.querySelector(".md-footer");ae&&(ae.style.width=`${Bt.getBoundingClientRect().width}px`)},[Bt]);(0,a.useEffect)(()=>(window.addEventListener("resize",Zt),()=>{window.removeEventListener("resize",Zt)}),[Bt,Zt]),(0,a.useEffect)(()=>{ve||(Zt(),Vt())},[Ht,ve,Zt,Vt]);const ce=(0,a.useCallback)((ae,ie)=>jn(ae,[q,hs({techdocsStorageApi:wt,entityId:m,path:ie}),ps(),fs(),Nn(),ms(),Sn(Lt),ot]),[m,Lt,wt,q,ot]),Ee=(0,a.useCallback)(async ae=>jn(ae,[zn(j,m.name),As(),Rs(N),ws({baseUrl:Dt.getOptionalString("app.baseUrl")||window.location.origin,onClick:(ie,Ae)=>{const We=ie.ctrlKey||ie.metaKey,Pe=new URL(Ae),Ye=ie.target?.innerText||Ae,Xe=Ae.replace(window.location.origin,"");Rt.captureEvent("click",Ye,{attributes:{to:Xe}}),Pe.hash?We?window.open(Ae,"_blank"):(window.location.pathname!==Pe.pathname?j(Ae):window.history.pushState(null,document.title,Pe.hash),ae?.querySelector(`[id="${Pe.hash.slice(1)}"]`)?.scrollIntoView(),ae?.querySelector(`[id="${Pe.hash.slice(1)}"]`)?.querySelector("a, button, [tabindex]")?.focus()):We?window.open(Ae,"_blank"):j(Ae)}}),Hn({onLoading:()=>{},onLoaded:()=>{ae.querySelector(".md-nav__title")?.removeAttribute("for")}}),Hn({onLoading:()=>{Array.from(ae.querySelectorAll(".md-sidebar")).forEach(Ae=>{Ae.style.setProperty("opacity","0")})},onLoaded:()=>{}}),Is()]),[N,j,Rt,m.name,Dt]);return(0,a.useEffect)(()=>{if(!me)return()=>{};let ae=!0;return ce(me,Xt).then(async ie=>{if(!ie?.innerHTML||!ae||pe!==Xt)return;window.scroll({top:0});const Ae=await Ee(ie);Oe(Ae)}),()=>{ae=!1}},[me,pe,Xt,ce,Ee]),Bt};var Ie=t(41883),ke=t(72020),Pn=t(99730);const Yn=()=>{const m=(0,ke.YR)(),{shadowRoot:D}=(0,b.V)(),j=D?.querySelector('[data-md-component="content"]'),N=D?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let k=N?.querySelector('[data-techdocs-addons-location="primary sidebar"]');k||(k=document.createElement("div"),k.setAttribute("data-techdocs-addons-location","primary sidebar"),N?.prepend(k));const q=D?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let ot=q?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return ot||(ot=document.createElement("div"),ot.setAttribute("data-techdocs-addons-location","secondary sidebar"),q?.prepend(ot)),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ie.A,{container:k,children:m.renderComponentsByLocation(Pn.e.PrimarySidebar)}),(0,s.jsx)(Ie.A,{container:j,children:m.renderComponentsByLocation(Pn.e.Content)}),(0,s.jsx)(Ie.A,{container:ot,children:m.renderComponentsByLocation(Pn.e.SecondarySidebar)})]})},Qn=(0,p.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Ms=Ze(m=>{const{withSearch:D=!0,searchResultUrlMapper:j,onReady:N}=m,k=Qn(),{entityMetadata:{value:q,loading:ot},entityRef:Rt,setShadowRoot:wt}=(0,b.V)(),{state:Lt}=Ve(),Dt=Ne(Rt,m.defaultPath),Ht=window.location.pathname,Xt=window.location.hash,me=g(Dt),[pe]=B([`[id="${Xt.slice(1)}"]`]),Bt=(0,at.n)(),{NotFoundErrorPage:Oe}=Bt.getComponents();(0,a.useEffect)(()=>{me||(Xt?pe&&pe.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[Ht,Xt,pe,me]);const ve=(0,a.useCallback)(Vt=>{wt(Vt),N instanceof Function&&N()},[wt,N]);return ot===!1&&!q?(0,s.jsx)(Oe,{}):Dt?(0,s.jsx)(M.U,{children:(0,s.jsxs)(x.A,{container:!0,children:[(0,s.jsx)(x.A,{xs:12,item:!0,children:(0,s.jsx)(Ue,{})}),D&&(0,s.jsx)(x.A,{className:k.search,xs:"auto",item:!0,children:(0,s.jsx)(ge,{entityId:Rt,entityTitle:q?.metadata?.title,searchResultUrlMapper:j})}),(0,s.jsxs)(x.A,{xs:12,item:!0,children:[(Lt==="CHECKING"||me)&&(0,s.jsx)(F.k,{}),(0,s.jsx)(C,{element:Dt,onAppend:ve,children:(0,s.jsx)(Yn,{})})]})]})}):(0,s.jsx)(M.U,{children:(0,s.jsx)(x.A,{container:!0,children:(0,s.jsx)(x.A,{xs:12,item:!0,children:(0,s.jsx)(Ue,{})})})})}),Zn=null},45061:(H,S,t)=>{"use strict";t.d(S,{T:()=>Et});var s=t(31085),a=t(14041),x=t(93285),p=t(42899),b=t(4387),h=t(13660),d=t(72020),f=t(88572),u=t(99730),y=t(82292),g=t(67871),C=t(8859),O=t(34428),P=t(51372),B=t(6820),L=t(58837),I=t(268),M=t(72501),F=t(72072);const W=(0,L.A)(St=>({root:{textAlign:"left"},label:{color:St.page.fontColor,fontWeight:St.typography.fontWeightBold,letterSpacing:0,fontSize:St.typography.fontSize,marginBottom:St.spacing(1)/2,lineHeight:1},value:{color:(0,I.X4)(St.page.fontColor,.8),fontSize:St.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),X=({value:St,className:It,typographyRootComponent:dt})=>(0,s.jsx)(M.A,{component:dt??(typeof St=="string"?"p":"span"),className:It,children:St});function z(St){const{label:It,value:dt,url:ct,contentTypograpyRootComponent:At}=St,pt=W(),Ct=(0,s.jsx)(X,{className:pt.value,value:dt||"<Unknown>",typographyRootComponent:At});return(0,s.jsx)(p.A,{item:!0,children:(0,s.jsxs)(M.A,{component:"span",className:pt.root,children:[(0,s.jsx)(M.A,{className:pt.label,children:It}),ct?(0,s.jsx)(F.N_,{to:ct,children:Ct}):Ct]})})}var Y=t(69814),K=t(72427),lt=t(65461),G=t(9222),Q=t(56005),J=t.n(Q),it=t(82779),ht=t(18690);const mt=(0,s.jsx)(b.A,{animation:"wave",variant:"text",height:40}),Et=St=>{const{children:It}=St,dt=(0,d.YR)(),ct=(0,K.gf)(lt.U),At=(0,K.gf)(y.n),{"*":pt=""}=(0,ht.g)(),{title:Ct,setTitle:Pt,subtitle:at,setSubtitle:gt,entityRef:yt,metadata:{value:et,loading:vt},entityMetadata:{value:rt,loading:U}}=(0,f.V)();(0,a.useEffect)(()=>{et&&(Pt(et.site_name),gt(()=>{let{site_description:de}=et;return(!de||de==="None")&&(de=""),de}))},[et,Pt,gt]);const V=ct.getOptional("app.title")||"Backstage",{locationMetadata:nt,spec:xt}=rt||{},ut=xt?.lifecycle,Ut=rt?(0,g.t)(rt,P.vv):[],Nt=(0,G.S)(it.rQ)(),kt=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z,{label:J()(rt?.kind||"entity"),value:(0,s.jsx)(C.z,{color:"inherit",entityRef:yt,title:rt?.metadata.title,defaultKind:"Component"})}),Ut.length>0&&(0,s.jsx)(z,{label:"Owner",value:(0,s.jsx)(O.i,{color:"inherit",entityRefs:Ut,defaultKind:"group"})}),ut?(0,s.jsx)(z,{label:"Lifecycle",value:String(ut)}):null,nt&&nt.type!=="dir"&&nt.type!=="file"?(0,s.jsx)(z,{label:"",value:(0,s.jsxs)(p.A,{container:!0,direction:"column",alignItems:"center",children:[(0,s.jsx)(p.A,{style:{padding:0},item:!0,children:(0,s.jsx)(h.A,{style:{marginTop:"-25px"}})}),(0,s.jsx)(p.A,{style:{padding:0},item:!0,children:"Source"})]}),url:nt.target}):null]});if(!U&&rt===void 0||!vt&&et===void 0)return null;const Gt=(0,B.U2)(yt),$t=At.forEntity(Gt).snapshot.primaryTitle,Yt=de=>de.replace(/\/$/,""),le=de=>de.replace(/-/g," ").split(" ").map(J()).join(" ");let ge=[];pt!==""&&(ge=Yt(pt).split("/").slice(0,3).map(le));const se=[V,$t,...ge].join(" | ");return(0,s.jsxs)(Y.Y,{type:"Documentation",typeLink:Nt,title:Ct||mt,subtitle:at===""?void 0:at||mt,children:[(0,s.jsx)(x.A,{titleTemplate:"%s",children:(0,s.jsx)("title",{children:se})}),kt,It,dt.renderComponentsByLocation(u.e.Header)]})}},82779:(H,S,t)=>{"use strict";t.d(S,{Oc:()=>x,Ri:()=>p,rQ:()=>a});var s=t(34569);const a=(0,s.H)({id:"techdocs:index-page"}),x=(0,s.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),p=(0,s.H)({id:"techdocs:catalog-reader-view"})},27698:(H,S,t)=>{"use strict";t.r(S),t.d(S,{TechDocsSearchResultListItem:()=>u});var s=t(31085),a=t(68804),x=t(5951),p=t(58837),b=t(72501),h=t(72072),d=t(70734);const f=(0,p.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),u=y=>{const{result:g,highlight:C,lineClamp:O=5,asListItem:P=!0,asLink:B=!0,title:L,icon:I}=y,M=f(),F=({children:z})=>B?(0,s.jsx)(h.N_,{noTrack:!0,to:g.location,children:z}):(0,s.jsx)(s.Fragment,{children:z}),W=()=>{const z=C?.fields.title?(0,s.jsx)(d.e,{text:C.fields.title,preTag:C.preTag,postTag:C.postTag}):g.title,Y=C?.fields.entityTitle?(0,s.jsx)(d.e,{text:C.fields.entityTitle,preTag:C.preTag,postTag:C.postTag}):g.entityTitle,K=C?.fields.name?(0,s.jsx)(d.e,{text:C.fields.name,preTag:C.preTag,postTag:C.postTag}):g.name;return g?(0,s.jsx)(x.A,{className:M.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,s.jsx)(F,{children:L||(0,s.jsxs)(s.Fragment,{children:[z," | ",Y??K," docs"]})}),secondary:(0,s.jsx)(b.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:O,overflow:"hidden"},color:"textSecondary",variant:"body2",children:C?.fields.text?(0,s.jsx)(d.e,{text:C.fields.text,preTag:C.preTag,postTag:C.postTag}):g.text})}):null},X=({children:z})=>P?(0,s.jsxs)(s.Fragment,{children:[I&&(0,s.jsx)(a.A,{children:typeof I=="function"?I(g):I}),(0,s.jsx)("div",{className:M.flexContainer,children:z})]}):(0,s.jsx)(s.Fragment,{children:z});return(0,s.jsx)(X,{children:(0,s.jsx)(W,{})})}},97184:(H,S,t)=>{const a=document.querySelector('meta[name="backstage-public-path"]')?.getAttribute("content");a&&(t.p=a)},86973:()=>{}},H=>{var S=s=>H(H.s=s);H.O(0,[1751,1888,5067,1678,235,5042,6587,7400,1975,4538,4121],()=>(S(97184),S(71543)));var t=H.O()}]);})();
|
|
552
|
+
|
|
553
|
+
//# sourceMappingURL=main.ca6e1ae0.js.map
|