@techdocs/cli 0.0.0-nightly-20231020021216 → 0.0.0-nightly-20231021021049

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.
@@ -0,0 +1,487 @@
1
+ (()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[179],{88797:function(V,T,t){"use strict";t.d(T,{n:function(){return o}});const o=Symbol.for("CATALOG_FILTER_EXISTS_0e15b590c0b343a2bae3e787e84c2111")},34106:function(V,T,t){"use strict";t.d(T,{Tf:function(){return d},l2:function(){return i},zG:function(){return o}});const o="default",i="backstage.io/view-url",d="backstage.io/edit-url",S="kubernetes.io/api-server",p="kubernetes.io/api-server-certificate-authority",f="kubernetes.io/auth-provider"},74314:function(V,T,t){"use strict";t.d(T,{eE:function(){return p},iB:function(){return d},of:function(){return S}});var o=t(34106);function i(f){let l=f.indexOf(":");const g=f.indexOf("/");g!==-1&&g<l&&(l=-1);const b=l===-1?void 0:f.slice(0,l),A=g===-1?void 0:f.slice(l+1,g),P=f.slice(Math.max(l+1,g+1));if(b===""||A===""||P==="")throw new TypeError(`Entity reference "${f}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:b,namespace:A,name:P}}function d(f){return{kind:f.kind,namespace:f.metadata.namespace||o.zG,name:f.metadata.name}}function S(f,l){if(!f)throw new Error("Entity reference must not be empty");const g=l==null?void 0:l.defaultKind,b=(l==null?void 0:l.defaultNamespace)||o.zG;let A,P,C;if(typeof f=="string"){const j=i(f);var x;A=(x=j.kind)!==null&&x!==void 0?x:g;var E;P=(E=j.namespace)!==null&&E!==void 0?E:b,C=j.name}else{var I;A=(I=f.kind)!==null&&I!==void 0?I:g;var R;P=(R=f.namespace)!==null&&R!==void 0?R:b,C=f.name}if(A)if(P){if(!C){const j=JSON.stringify(f);throw new Error(`Entity reference ${j} had missing or empty name`)}}else{const j=JSON.stringify(f);throw new Error(`Entity reference ${j} had missing or empty namespace`)}else{const j=JSON.stringify(f);throw new Error(`Entity reference ${j} had missing or empty kind (e.g. did not start with "component:" or similar)`)}return{kind:A,namespace:P,name:C}}function p(f){let l,g,b;if("metadata"in f){l=f.kind;var A;g=(A=f.metadata.namespace)!==null&&A!==void 0?A:o.zG,b=f.metadata.name}else{l=f.kind;var P;g=(P=f.namespace)!==null&&P!==void 0?P:o.zG,b=f.name}return`${l.toLocaleLowerCase("en-US")}:${g.toLocaleLowerCase("en-US")}/${b.toLocaleLowerCase("en-US")}`}},8709:function(V,T,t){"use strict";t.d(T,{S4:function(){return o},aS:function(){return E},cz:function(){return x},nP:function(){return l},w$:function(){return g}});const o="ownedBy",i="ownerOf",d="consumesApi",S="apiConsumedBy",p="providesApi",f="apiProvidedBy",l="dependsOn",g="dependencyOf",b="parentOf",A="childOf",P="memberOf",C="hasMember",x="partOf",E="hasPart"},90663:function(V,T,t){"use strict";t.d(T,{M6:function(){return d},P1:function(){return o}});const o="backstage.io/managed-by-location",i="backstage.io/managed-by-origin-location",d="backstage.io/source-location"},51547:function(V,T,t){"use strict";t.d(T,{CV:function(){return f},NZ:function(){return p},Ou:function(){return S}});var o=t(74314),i=t(90663);const d=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;function S(l){if(typeof l!="string")throw new TypeError(`Unable to parse location ref '${l}', unexpected argument ${typeof l}`);const g=l.indexOf(":");if(g<0)throw new TypeError(`Unable to parse location ref '${l}', expected '<type>:<target>', e.g. 'url:https://host/path'`);const b=l.substring(0,g).trim(),A=l.substring(g+1).trim();if(!b||!A)throw new TypeError(`Unable to parse location ref '${l}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if(b==="http"||b==="https")throw new TypeError(`Invalid location ref '${l}', please prefix it with 'url:', e.g. 'url:${l}'`);if(d.test(A))throw new TypeError(`Invalid location ref '${l}', target is a javascript: URL`);return{type:b,target:A}}function p(l){const{type:g,target:b}=l;if(g){if(!b)throw new TypeError("Unable to stringify location ref, empty target")}else throw new TypeError("Unable to stringify location ref, empty type");if(d.test(b))throw new TypeError(`Invalid location ref '${g}:${b}', target is a javascript: URL`);return`${g}:${b}`}function f(l){var g,b,A,P,C;const x=(C=(b=l.metadata)===null||b===void 0||(g=b.annotations)===null||g===void 0?void 0:g[i.M6])!==null&&C!==void 0?C:(P=l.metadata)===null||P===void 0||(A=P.annotations)===null||A===void 0?void 0:A[i.P1];if(!x)throw new Error(`Entity '${(0,o.eE)(l)}' is missing location`);return S(x)}},9791:function(V,T,t){"use strict";t.d(T,{O:function(){return b}});var o=t(52322),i=t(62774),d=t(60364),S=t(2784),p=t(83229),f=t(26639),l=t(39595),g=t(58033);function b(A){const{text:P,language:C,showLineNumbers:x=!1,highlightedNumbers:E,customStyle:I,showCopyCodeButton:R=!1}=A,j=(0,d.Z)(),F=j.palette.type==="dark"?f.Z:l.Z,Z=j.palette.type==="dark"?"#256bf3":"#e6ffed";return(0,o.jsxs)(i.Z,{position:"relative",children:[(0,o.jsx)(p.Z,{customStyle:I,language:C,style:F,showLineNumbers:x,wrapLines:!0,lineNumberStyle:{color:j.palette.textVerySubtle},lineProps:m=>E!=null&&E.includes(m)?{style:{backgroundColor:Z}}:{},children:P}),R&&(0,o.jsx)(i.Z,{position:"absolute",top:0,right:0,children:(0,o.jsx)(g.b,{text:P})})]})}},58033:function(V,T,t){"use strict";t.d(T,{b:function(){return b}});var o=t(52322),i=t(44394),d=t(58513),S=t(61837),p=t(80030),f=t(19353),l=t(2784),g=t(95074);function b(A){const{text:P,tooltipDelay:C=1e3,tooltipText:x="Text copied to clipboard","aria-label":E="Copy text"}=A,I=(0,i.h_)(d.V),[R,j]=(0,l.useState)(!1),[{error:F},Z]=(0,g.Z)();(0,l.useEffect)(()=>{F&&I.post(F)},[F,I]);const m=G=>{G.stopPropagation(),j(!0),Z(P)};return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(p.ZP,{id:"copy-test-tooltip",title:x,placement:"top",leaveDelay:C,onClose:()=>j(!1),open:R,children:(0,o.jsx)(S.Z,{onClick:m,"aria-label":E,children:(0,o.jsx)(f.Z,{})})})})}},70249:function(V,T,t){"use strict";t.d(T,{u:function(){return x}});var o=t(52322),i=t(60905),d=t(79692),S=t(90436),p=t(2784),f=t.p+"static/missingAnnotation.67f79e98..svg",l=t.p+"static/noInformation.4b426325..svg",g=t.p+"static/createComponent.975d1e1e..svg",b=t.p+"static/noBuild.1715fa71..svg";const A=(0,d.Z)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),P=({missing:E})=>{const I=A();switch(E){case"field":return(0,o.jsx)("img",{src:f,className:I.generalImg,alt:"annotation is missing"});case"info":return(0,o.jsx)("img",{src:l,alt:"no Information",className:I.generalImg});case"content":return(0,o.jsx)("img",{src:g,alt:"create Component",className:I.generalImg});case"data":return(0,o.jsx)("img",{src:b,alt:"no Build",className:I.generalImg});default:return null}},C=(0,d.Z)(E=>({root:{backgroundColor:E.palette.background.default,padding:E.spacing(2,0,0,0)},action:{marginTop:E.spacing(2)},imageContainer:{position:"relative"}}),{name:"BackstageEmptyState"});function x(E){const{title:I,description:R,missing:j,action:F}=E,Z=C();return(0,o.jsxs)(i.Z,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:Z.root,spacing:2,children:[(0,o.jsx)(i.Z,{item:!0,xs:12,md:6,children:(0,o.jsxs)(i.Z,{container:!0,direction:"column",children:[(0,o.jsx)(i.Z,{item:!0,xs:!0,children:(0,o.jsx)(S.Z,{variant:"h5",children:I})}),(0,o.jsx)(i.Z,{item:!0,xs:!0,children:(0,o.jsx)(S.Z,{variant:"body1",children:R})}),(0,o.jsx)(i.Z,{item:!0,xs:!0,className:Z.action,children:F})]})}),(0,o.jsx)(i.Z,{item:!0,xs:12,md:6,className:Z.imageContainer,children:typeof j=="string"?(0,o.jsx)(P,{missing:j}):j.customImage})]})}},74359:function(V,T,t){"use strict";t.d(T,{y:function(){return P}});var o=t(52322),i=t(79692),d=t(11776),S=t(38402),p=t(49378),f=t(2784),l=t(58033),g=t(538);const b=(0,i.Z)(C=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:C.spacing(2)},divider:{margin:C.spacing(2)}}),{name:"BackstageErrorPanel"}),A=({error:C,message:x,stack:E,children:I})=>{const R=b();return(0,o.jsxs)(d.Z,{dense:!0,children:[(0,o.jsxs)(S.Z,{alignItems:"flex-start",children:[(0,o.jsx)(p.Z,{classes:{secondary:R.text},primary:"Error",secondary:C}),(0,o.jsx)(l.b,{text:C})]}),(0,o.jsxs)(S.Z,{alignItems:"flex-start",children:[(0,o.jsx)(p.Z,{classes:{secondary:R.text},primary:"Message",secondary:x}),(0,o.jsx)(l.b,{text:x})]}),E&&(0,o.jsxs)(S.Z,{alignItems:"flex-start",children:[(0,o.jsx)(p.Z,{classes:{secondary:R.text},primary:"Stack Trace",secondary:E}),(0,o.jsx)(l.b,{text:E})]}),I]})};function P(C){const{title:x,error:E,defaultExpanded:I,children:R}=C;return(0,o.jsx)(g.G,{severity:"error",title:x!=null?x:E.message,defaultExpanded:I,children:(0,o.jsx)(A,{error:E.name,message:E.message,stack:E.stack,children:R})})}},98864:function(V,T,t){"use strict";t.d(T,{rU:function(){return H}});var o=t(52322),i=t(44394),d=t(6542),S=t(62369),p=t(86689),f=t(79692),l=t(90436),g=t(72779),b=t.n(g),A=t(76635),P=t.n(A),C=t(2784),x=t(73557),E=t(71597);function I(){const[z]=(0,x.is)((0,o.jsx)(x.AW,{index:!0,element:(0,o.jsx)("div",{})}));return!z.index}const R=(0,f.Z)({visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",height:1,width:1},externalLink:{position:"relative"}},{name:"Link"}),j=z=>/^([a-z+.-]+):/.test(z),F=/^[\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 z=function(...et){const rt=String(et[0]);if(F.test(rt))throw new Error("Rejected window.open() with a javascript: URL as a security precaution");return Z.apply(this,et)};z.__backstage=!0,window.open=z}const m=()=>{try{return(0,i.h_)(d.D).getOptionalString("app.baseUrl")}catch{return}},G=()=>{const z="http://sample.dev";var k;const et=(k=m())!==null&&k!==void 0?k:"/",{pathname:rt}=new URL(et,z);return(0,A.trimEnd)(rt,"/")},st=z=>{let k=String(z);const et=G(),rt=j(k),At=k.startsWith(et);return!rt&&!At&&(k=et.concat(k)),k},q=z=>{if(z instanceof Array)return z.map(q).join(" ").trim();if(typeof z=="object"&&z){var k;return q(z==null||(k=z.props)===null||k===void 0?void 0:k.children)}return["string","number"].includes(typeof z)?String(z):""},H=C.forwardRef(({onClick:z,noTrack:k,...et},rt)=>{const At=R(),Ct=(0,S.z)(),ut=I()?st(et.to):et.to,Ot=q(et.children)||ut,xt=j(ut),Pt=xt&&!!/^https?:/.exec(ut);if(F.test(ut))throw new Error("Link component rejected javascript: URL as a security precaution");const ot=U=>{z==null||z(U),k||Ct.captureEvent("click",Ot,{attributes:{to:ut}})};return xt?(0,o.jsxs)(p.Z,{...Pt?{target:"_blank",rel:"noopener"}:{},...et,...et["aria-label"]?{"aria-label":`${et["aria-label"]}, Opens in a new window`}:{},ref:rt,href:ut,onClick:ot,className:b()(At.externalLink,et.className),children:[et.children,(0,o.jsx)(l.Z,{component:"span",className:At.visuallyHidden,children:", Opens in a new window"})]}):(0,o.jsx)(p.Z,{...et,ref:rt,component:E.rU,to:ut,onClick:ot})})},15929:function(V,T,t){"use strict";t.d(T,{Q:function(){return f}});var o=t(52322),i=t(77277),d=t(2784),S=t(98864);const p=d.forwardRef((g,b)=>(0,o.jsx)(S.rU,{ref:b,...g,color:"initial"})),f=d.forwardRef((g,b)=>(0,o.jsx)(i.Z,{ref:b,component:p,...g})),l=null},55015:function(V,T,t){"use strict";t.d(T,{E:function(){return f}});var o=t(52322),i=t(62774),d=t(67358),S=t(60364),p=t(2784);function f(l){const g=(0,S.Z)(),[b,A]=(0,p.useState)(!1);return(0,p.useEffect)(()=>{const P=setTimeout(()=>A(!0),g.transitions.duration.short);return()=>clearTimeout(P)},[g.transitions.duration.short]),b?(0,o.jsx)(d.Z,{...l,"data-testid":"progress"}):(0,o.jsx)(i.Z,{display:"none"})}},35879:function(V,T,t){"use strict";t.d(T,{H:function(){return H}});var o=t(52322),i=t(62774),d=t(21324),S=t(7089),p=t(30192),f=t(74603),l=t(56939),g=t(12231),b=t(73698),A=t(15459),P=t(42494),C=t(79692),x=t(90436),E=t(2784),I=t(72379);const R=(0,C.Z)(z=>(0,P.Z)({icon:{position:"absolute",right:z.spacing(.5),pointerEvents:"none"}}),{name:"BackstageClosedDropdown"});var F=()=>{const z=R();return(0,o.jsx)(I.Z,{className:z.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M7.5 8L6 9.5L12.0703 15.5703L18.1406 9.5L16.6406 8L12.0703 12.5703L7.5 8Z",fill:"#616161"})})};const Z=(0,C.Z)(z=>(0,P.Z)({icon:{position:"absolute",right:z.spacing(.5),pointerEvents:"none"}}),{name:"BackstageOpenedDropdown"});var G=()=>{const z=Z();return(0,o.jsx)(I.Z,{className:z.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M16.5 16L18 14.5L11.9297 8.42969L5.85938 14.5L7.35938 16L11.9297 11.4297L16.5 16Z",fill:"#616161"})})};const st=(0,A.Z)(z=>(0,P.Z)({root:{"label + &":{marginTop:z.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:z.palette.primary.main}},input:{borderRadius:z.shape.borderRadius,position:"relative",backgroundColor:z.palette.background.paper,border:"1px solid #ced4da",fontSize:z.typography.body1.fontSize,padding:z.spacing(1.25,3.25,1.25,1.5),transition:z.transitions.create(["border-color","box-shadow"]),fontFamily:"Helvetica Neue","&:focus":{background:z.palette.background.paper,borderRadius:z.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(f.Z),q=(0,C.Z)(z=>(0,P.Z)({formControl:{margin:z.spacing(1,0),maxWidth:300},label:{transform:"initial",fontWeight:"bold",fontSize:z.typography.body2.fontSize,fontFamily:z.typography.fontFamily,color:z.palette.text.primary,"&.Mui-focused":{color:z.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:z.typography.body2.fontSize,fontFamily:z.typography.fontFamily,color:z.palette.text.primary,"&.Mui-focused":{color:z.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function H(z){const{multiple:k,items:et,label:rt,placeholder:At,selected:Ct,onChange:ut,triggerReset:Ot,native:xt=!1,disabled:Pt=!1,margin:ot}=z,U=q(),[_,J]=(0,E.useState)(Ct||(k?[]:"")),[at,ct]=(0,E.useState)(!1);(0,E.useEffect)(()=>{J(k?[]:"")},[Ot,k]),(0,E.useEffect)(()=>{J(Ct||(k?[]:""))},[Ct,k]);const W=ht=>{J(ht.target.value),ut(ht.target.value)},K=ht=>{if(Pt){ht.preventDefault();return}ct(ft=>k&&!(ht.target instanceof HTMLElement)?!0:!ft)},pt=()=>{ct(!1)},yt=ht=>()=>{const ft=_.filter(lt=>lt!==ht);J(ft),ut(ft)};return(0,o.jsx)(i.Z,{className:U.root,children:(0,o.jsxs)(p.Z,{className:U.formControl,children:[(0,o.jsx)(l.Z,{className:U.formLabel,children:rt}),(0,o.jsxs)(b.Z,{"aria-label":rt,value:_,native:xt,disabled:Pt,"data-testid":"select",displayEmpty:!0,multiple:k,margin:ot,onChange:W,open:at,onOpen:K,onClose:pt,input:(0,o.jsx)(st,{}),label:rt,renderValue:ht=>{var ft;return k&&_.length!==0?(0,o.jsx)(i.Z,{className:U.chips,children:ht.map(lt=>{var Tt,Rt;return(0,o.jsx)(S.Z,{label:(Tt=et.find(It=>It.value===lt))===null||Tt===void 0?void 0:Tt.label,clickable:!0,onDelete:yt(lt),className:U.chip},(Rt=et.find(It=>It.value===lt))===null||Rt===void 0?void 0:Rt.value)})}):(0,o.jsx)(x.Z,{children:_.length===0?At||"":(ft=et.find(lt=>lt.value===ht))===null||ft===void 0?void 0:ft.label})},IconComponent:()=>at?(0,o.jsx)(G,{}):(0,o.jsx)(F,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[At&&!k&&(0,o.jsx)(g.Z,{value:[],children:At}),xt?et&&et.map(ht=>(0,o.jsx)("option",{value:ht.value,children:ht.label},ht.value)):et&&et.map(ht=>(0,o.jsxs)(g.Z,{value:ht.value,children:[k&&(0,o.jsx)(d.Z,{color:"primary",checked:_.includes(ht.value)||!1,className:U.checkbox}),ht.label]},ht.value))]})]})})}},13788:function(V,T,t){"use strict";t.d(T,{q:function(){return ot}});var o=t(52322),i=t(80851),d=t(62774),S=t(77277),p=t(49429),f=t(61837),l=t(86136),g=t(49378),b=t(12231),A=t(50758),P=t(79784),C=t(79692),x=t(90436),E=t(41156),I=t(2784),R=t(77770),j=t(80079);function F(U,_){const at=(0,i.q)().getSystemIcon(U);return at?(0,o.jsx)(at,{..._}):(0,o.jsx)(j.Z,{..._})}function Z(U){return F("brokenImage",U)}function m(U){return F("catalog",U)}function G(U){return F("chat",U)}function st(U){return F("dashboard",U)}function q(U){return F("docs",U)}function H(U){return F("email",U)}function z(U){return F("github",U)}function k(U){return F("group",U)}function et(U){return F("help",U)}function rt(U){return F("user",U)}function At(U){return F("warning",U)}var Ct=t(98864);const ut=(0,C.Z)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),Ot=({icon:U})=>{const _=(0,i.q)();var J;const at=U&&(J=_.getSystemIcon(U))!==null&&J!==void 0?J:et;return(0,o.jsx)(at,{})},xt=({link:U})=>{var _;return(0,o.jsx)(Ct.rU,{to:U.url,children:(_=U.title)!==null&&_!==void 0?_:U.url})},Pt=({item:U})=>{var _;return(0,o.jsxs)(b.Z,{children:[(0,o.jsx)(l.Z,{children:(0,o.jsx)(Ot,{icon:U.icon})}),(0,o.jsx)(g.Z,{primary:U.title,secondary:(_=U.links)===null||_===void 0?void 0:_.reduce((J,at,ct)=>[...J,ct>0&&(0,o.jsx)("br",{},ct),(0,o.jsx)(xt,{link:at},at.url)],[])})]})};function ot(U){const{title:_,items:J,children:at}=U,{items:ct}=(0,R.v)(),[W,K]=(0,I.useState)(!1),[pt,yt]=(0,I.useState)(null),ht=ut(),ft=(0,E.Z)(Rt=>Rt.breakpoints.down("sm")),lt=Rt=>{yt(Rt.currentTarget),K(!0)},Tt=()=>{K(!1)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Z,{display:"flex",ml:1,children:ft?(0,o.jsx)(f.Z,{color:"primary",size:"small",onClick:lt,"data-testid":"support-button","aria-label":"Support",children:(0,o.jsx)(et,{})}):(0,o.jsx)(S.Z,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:lt,startIcon:(0,o.jsx)(et,{}),children:"Support"})}),(0,o.jsxs)(P.ZP,{"data-testid":"support-button-popover",open:W,anchorEl:pt,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:Tt,children:[(0,o.jsxs)(A.Z,{className:ht.popoverList,autoFocusItem:Boolean(pt),children:[_&&(0,o.jsx)(b.Z,{alignItems:"flex-start",className:ht.menuItem,children:(0,o.jsx)(x.Z,{variant:"subtitle1",children:_})}),I.Children.map(at,(Rt,It)=>(0,o.jsx)(b.Z,{alignItems:"flex-start",className:ht.menuItem,children:Rt},`child-${It}`)),(J!=null?J:ct).map((Rt,It)=>(0,o.jsx)(Pt,{item:Rt},`item-${It}`))]}),(0,o.jsx)(p.Z,{children:(0,o.jsx)(S.Z,{color:"primary",onClick:Tt,"aria-label":"Close",children:"Close"})})]})]})}},84462:function(V,T,t){"use strict";t.d(T,{i:function(){return ct}});var o=t(52322),i=t(67222),d=t(62774),S=t(61837),p=t(15459),f=t(79692),l=t(60364),g=t(90436),b=t(21070),A=t(90324),P=t(98281),C=t(48049),x=t(51209),E=t(33375),I=t(44233),R=t(27604),j=t(36444),F=t(37971),Z=t(59709),m=t(17373),G=t(3702),st=t(93111),q=t(76635),H=t(2784),z=t(77277),k=t(35879);const et=(0,f.Z)(W=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:W.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:W.spacing(7.5),justifyContent:"space-between",borderBottom:`1px solid ${W.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:W.spacing(2)}}}),{name:"BackstageTableFilters"}),rt=W=>{var K;const pt=et(),{onChangeFilters:yt}=W,[ht,ft]=(0,H.useState)({...W.selectedFilters}),[lt,Tt]=(0,H.useState)(!1),Rt=()=>{ft({}),Tt(It=>!It)};return(0,H.useEffect)(()=>{yt(ht)},[ht,yt]),(0,o.jsxs)(d.Z,{className:pt.root,children:[(0,o.jsxs)(d.Z,{className:pt.header,children:[(0,o.jsx)(d.Z,{className:pt.value,children:"Filters"}),(0,o.jsx)(z.Z,{color:"primary",onClick:Rt,children:"Clear all"})]}),(0,o.jsx)(d.Z,{className:pt.filters,children:((K=W.filters)===null||K===void 0?void 0:K.length)&&W.filters.map(It=>(0,o.jsx)(k.H,{triggerReset:lt,...It.element,selected:ht[It.element.label],onChange:Gt=>ft({...ht,[It.element.label]:Gt})},It.element.label))})]})};var At=t(4614);const Ct={Add:(0,H.forwardRef)((W,K)=>(0,o.jsx)(b.Z,{...W,ref:K})),Check:(0,H.forwardRef)((W,K)=>(0,o.jsx)(P.Z,{...W,ref:K})),Clear:(0,H.forwardRef)((W,K)=>(0,o.jsx)(E.Z,{...W,ref:K})),Delete:(0,H.forwardRef)((W,K)=>(0,o.jsx)(I.Z,{...W,ref:K})),DetailPanel:(0,H.forwardRef)((W,K)=>(0,o.jsx)(x.Z,{...W,ref:K})),Edit:(0,H.forwardRef)((W,K)=>(0,o.jsx)(R.Z,{...W,ref:K})),Export:(0,H.forwardRef)((W,K)=>(0,o.jsx)(G.Z,{...W,ref:K})),Filter:(0,H.forwardRef)((W,K)=>(0,o.jsx)(j.Z,{...W,ref:K})),FirstPage:(0,H.forwardRef)((W,K)=>(0,o.jsx)(F.Z,{...W,ref:K})),LastPage:(0,H.forwardRef)((W,K)=>(0,o.jsx)(Z.Z,{...W,ref:K})),NextPage:(0,H.forwardRef)((W,K)=>(0,o.jsx)(x.Z,{...W,ref:K})),PreviousPage:(0,H.forwardRef)((W,K)=>(0,o.jsx)(C.Z,{...W,ref:K})),ResetSearch:(0,H.forwardRef)((W,K)=>(0,o.jsx)(E.Z,{...W,ref:K})),Search:(0,H.forwardRef)((W,K)=>(0,o.jsx)(j.Z,{...W,ref:K})),SortArrow:(0,H.forwardRef)((W,K)=>(0,o.jsx)(A.Z,{...W,ref:K})),ThirdStateCheck:(0,H.forwardRef)((W,K)=>(0,o.jsx)(m.Z,{...W,ref:K})),ViewColumn:(0,H.forwardRef)((W,K)=>(0,o.jsx)(st.Z,{...W,ref:K}))};function ut(W,K){const pt=K.split(".");let yt=W[pt[0]];for(let ht=1;ht<pt.length;++ht){if(yt===void 0)return yt;const ft=pt[ht];yt=yt[ft]}return yt}const Ot=(0,p.Z)(W=>({header:{padding:W.spacing(1,2,1,2.5),borderTop:`1px solid ${W.palette.grey.A100}`,borderBottom:`1px solid ${W.palette.grey.A100}`,fontWeight:W.typography.fontWeightBold,position:"static",wordBreak:"normal"}}),{name:"BackstageTableHeader"})(i.W$),xt=(0,p.Z)(W=>({root:{padding:W.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:W.typography.fontWeightBold}},searchField:{paddingRight:W.spacing(2)}}),{name:"BackstageTableToolbar"})(i.UW),Pt=(0,f.Z)(W=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:W.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),ot=(0,f.Z)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"});function U(W,K){return W.map(pt=>{var yt;const ht=(yt=pt.headerStyle)!==null&&yt!==void 0?yt:{};let ft=pt.cellStyle||{};if(pt.highlight)if(ht.color=K.palette.textContrast,typeof ft=="object")ft.fontWeight=K.typography.fontWeightBold;else{const lt=ft;ft=(Tt,Rt,It)=>({...lt(Tt,Rt,It),fontWeight:K.typography.fontWeightBold})}return{...pt,headerStyle:ht,cellStyle:ft}})}function _(W,K){return(0,q.transform)(W,(pt,yt,ht)=>{(0,q.isEqual)(yt,K[ht])||(pt[ht]=yt)})}const J={search:"",filtersOpen:!1,filters:{}};function at(W){const{toolbarRef:K,setSearch:pt,hasFilters:yt,selectedFiltersLength:ht,toggleFilters:ft}=W,lt=Pt(),Tt=(0,H.useCallback)(Rt=>{W.onSearchChanged(Rt),pt(Rt)},[W,pt]);return yt?(0,o.jsxs)(d.Z,{className:lt.root,children:[(0,o.jsxs)(d.Z,{className:lt.root,children:[(0,o.jsx)(S.Z,{onClick:ft,"aria-label":"filter list",children:(0,o.jsx)(j.Z,{})}),(0,o.jsxs)(g.Z,{className:lt.title,children:["Filters (",ht,")"]})]}),(0,o.jsx)(xt,{...W,ref:K,onSearchChanged:Tt})]}):(0,o.jsx)(xt,{...W,ref:K,onSearchChanged:Tt})}function ct(W){const{data:K,columns:pt,options:yt,title:ht,subtitle:ft,filters:lt,initialState:Tt,emptyContent:Rt,onStateChange:It,components:Gt,isLoading:Qt,...pe}=W,kt=ot(),Wt=(0,l.Z)(),Yt={...J,...Tt},[se,be]=(0,H.useState)(Yt.filtersOpen),Pe=(0,H.useCallback)(()=>be(u=>!u),[be]),[Ue,Ie]=(0,H.useState)(0),[Qe,ze]=(0,H.useState)(K),[ye,Je]=(0,H.useState)(Yt.filters),Xe=U(pt,Wt),[He,re]=(0,H.useState)(Yt.search);(0,H.useEffect)(()=>{if(It){const u=_({search:He,filtersOpen:se,filters:ye},J);It(u)}},[He,se,ye,It]);const qe={headerStyle:{textTransform:"uppercase"}},Re=(0,H.useCallback)(u=>{var D;return(D=pt.find(B=>B.title===u))===null||D===void 0?void 0:D.field},[pt]);(0,H.useEffect)(()=>{if(typeof K=="function")return;if(!ye){ze(K);return}const u=Object.values(ye);if(K&&u.flat().length){const D=K.filter(B=>!!Object.entries(ye).filter(([,tt])=>!!tt.length).every(([tt,dt])=>{const Et=ut(B,Re(tt));return Array.isArray(Et)&&Array.isArray(dt)?Et.some(Vt=>dt.includes(Vt)):Array.isArray(Et)?Et.includes(dt):Array.isArray(dt)?dt.includes(Et):Et===dt}));ze(D)}else ze(K);Ie(u.flat().length)},[K,ye,Re]);const Te=(u,D)=>{const B=dt=>{const Et=new Set,Vt=Zt=>{Zt!=null&&Et.add(Zt)};return D&&D.forEach(Zt=>{const jt=ut(Zt,Re(dt));Array.isArray(jt)?jt.forEach(Vt):Vt(jt)}),Et},tt=dt=>({placeholder:"All results",label:dt.column,multiple:dt.type==="multiple-select",items:[...B(dt.column)].sort().map(Et=>({label:Et,value:Et}))});return u.map(dt=>({type:dt.type,element:tt(dt)}))},je=!!(lt!=null&&lt.length),he=(0,H.useCallback)(u=>(0,o.jsx)(at,{setSearch:re,hasFilters:je,selectedFiltersLength:Ue,toggleFilters:Pe,...u}),[Pe,je,Ue,re]),$e=typeof K!="function"&&K.length===0,Fe=pt.length,L=(0,H.useCallback)(u=>Qt?(0,o.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:Fe,children:(0,o.jsx)(d.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"15rem"},children:(0,o.jsx)(At.Z,{size:"5rem"})})})})}):Rt&&$e?(0,o.jsx)("tbody",{children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:Fe,children:Rt})})}):(0,o.jsx)(i.os,{...u}),[$e,Rt,Fe,Qt]);return(0,o.jsxs)(d.Z,{className:kt.root,children:[se&&K&&typeof K!="function"&&(lt==null?void 0:lt.length)&&(0,o.jsx)(rt,{filters:Te(lt,K),selectedFilters:ye,onChangeFilters:Je}),(0,o.jsx)(i.ZP,{components:{Header:Ot,Toolbar:he,Body:L,...Gt},options:{...qe,...yt},columns:Xe,icons:Ct,title:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g.Z,{variant:"h5",component:"h2",children:ht}),ft&&(0,o.jsx)(g.Z,{color:"textSecondary",variant:"body1",children:ft})]}),data:typeof K=="function"?K:Qe,style:{width:"100%"},localization:{toolbar:{searchPlaceholder:"Filter",searchTooltip:"Filter"}},...pe})]})}ct.icons=Object.freeze(Ct)},538:function(V,T,t){"use strict";t.d(T,{G:function(){return Z}});var o=t(52322),i=t(41128),d=t(79692),S=t(27616),p=t(8284),f=t(70660),l=t(60905),g=t(90436),b=t(91750),A=t(38016),P=t(2784);const C=(m,G)=>(G.palette.type==="light"?i._j:i.$n)(G.palette[m].light,.6),x=(m,G)=>(G.palette.type==="light"?i.$n:i._j)(G.palette[m].light,.9),E=(0,d.Z)(m=>({root:{marginRight:m.spacing(1),fill:({severity:G})=>C(G,m)}})),I=({severity:m})=>{const G=E({severity:m});return(0,o.jsx)(b.Z,{classes:G})},R=({severity:m})=>{const G=E({severity:m});return(0,o.jsx)(A.Z,{classes:G})},j=(0,d.Z)(m=>({content:{lineBreak:"anywhere"},panel:{backgroundColor:({severity:G})=>x(G,m),color:({severity:G})=>C(G,m),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:G})=>C(G,m),fontWeight:m.typography.fontWeightBold},message:{width:"100%",display:"block",color:({severity:G})=>C(G,m),backgroundColor:({severity:G})=>x(G,m)},details:{width:"100%",display:"block",color:m.palette.textContrast,backgroundColor:m.palette.background.default,border:`1px solid ${m.palette.border}`,padding:m.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"}),F=m=>m.charAt(0).toLocaleUpperCase("en-US")+m.slice(1);function Z(m){const{severity:G="warning",title:st,message:q,children:H,defaultExpanded:z}=m,k=j({severity:G}),et=F(G)+(st?`: ${st}`:"");return(0,o.jsxs)(S.Z,{defaultExpanded:z!=null?z:!1,className:k.panel,role:"alert",children:[(0,o.jsxs)(p.Z,{expandIcon:(0,o.jsx)(R,{severity:G}),classes:{content:k.content},className:k.summary,children:[(0,o.jsx)(I,{severity:G}),(0,o.jsx)(g.Z,{className:k.summaryText,variant:"subtitle1",children:et})]}),(q||H)&&(0,o.jsx)(f.Z,{children:(0,o.jsxs)(l.Z,{container:!0,children:[q&&(0,o.jsx)(l.Z,{item:!0,xs:12,children:(0,o.jsx)(g.Z,{className:k.message,variant:"body1",children:q})}),H&&(0,o.jsx)(l.Z,{item:!0,xs:12,className:k.details,children:H})]})})]})}},77770:function(V,T,t){"use strict";t.d(T,{v:function(){return S}});var o=t(44394),i=t(6542);const d={url:"https://github.com/backstage/backstage/issues",items:[{title:"Support Not Configured",icon:"warning",links:[{title:"Add `app.support` config key",url:"https://github.com/backstage/backstage/blob/master/app-config.yaml"}]}]};function S(){const f=(0,o.I_)().get(i.D),l=f==null?void 0:f.getOptionalConfig("app.support");return l?{url:l.getString("url"),items:l.getConfigArray("items").flatMap(g=>{var b;return{title:g.getString("title"),icon:g.getOptionalString("icon"),links:((b=g.getOptionalConfigArray("links"))!==null&&b!==void 0?b:[]).flatMap(A=>({url:A.getString("url"),title:A.getString("title")}))}})}:d}},42398:function(V,T,t){"use strict";t.d(T,{V:function(){return l}});var o=t(52322),i=t(79692),d=t(72779),S=t.n(d),p=t(2784);const f=(0,i.Z)(g=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:g.spacing(3),paddingBottom:g.spacing(3),paddingLeft:g.spacing(2),paddingRight:g.spacing(2),[g.breakpoints.up("sm")]:{paddingLeft:g.spacing(3),paddingRight:g.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function l(g){const{className:b,stretch:A,noPadding:P,children:C,...x}=g,E=f();return(0,o.jsx)("article",{...x,className:S()(E.root,b,{[E.stretch]:A,[E.noPadding]:P}),children:C})}},30706:function(V,T,t){"use strict";t.d(T,{y:function(){return b}});var o=t(52322),i=t(62774),d=t(79692),S=t(90436),p=t(2784),f=t(18671);const l=A=>(0,d.Z)(P=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:P.spacing(2),textAlign:A.textAlign},leftItemsBox:{flex:"1 1 auto",minWidth:0,overflow:"visible"},rightItemsBox:{flex:"0 1 auto",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginLeft:P.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}),g=({title:A="Unknown page",className:P})=>(0,o.jsx)(S.Z,{variant:"h4",component:"h2",className:P,"data-testid":"header-title",children:A});function b(A){const{description:P,title:C,titleComponent:x=void 0,children:E,textAlign:I="left"}=A,R=l({textAlign:I})(),j=x||(0,o.jsx)(g,{title:C,className:R.title});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.q,{title:C}),(0,o.jsxs)(i.Z,{className:R.container,children:[(0,o.jsxs)(i.Z,{className:R.leftItemsBox,children:[j,P&&(0,o.jsx)(S.Z,{className:R.description,variant:"body2",children:P})]}),(0,o.jsx)(i.Z,{className:R.rightItemsBox,children:E})]})]})}},87435:function(V,T,t){"use strict";t.d(T,{m:function(){return x}});var o=t(52322),i=t(60905),d=t(79692),S=t(90436),p=t(2784),f=t(73557),l=t(98864),g=t(77770),b=t.p+"static/mic-drop.fe3ef4d0..svg";const A=(0,d.Z)(E=>({micDrop:{maxWidth:"60%",bottom:E.spacing(2),right:E.spacing(2),[E.breakpoints.down("xs")]:{maxWidth:"96%",bottom:"unset",right:"unset",margin:E.spacing(10,"auto",4)}}}),{name:"BackstageErrorPageMicDrop"}),P=()=>{const E=A();return(0,o.jsx)("img",{src:b,className:E.micDrop,alt:"Girl dropping mic from her hands"})},C=(0,d.Z)(E=>({container:{padding:E.spacing(8),[E.breakpoints.down("xs")]:{padding:E.spacing(2)}},title:{paddingBottom:E.spacing(5),[E.breakpoints.down("xs")]:{paddingBottom:E.spacing(4),fontSize:E.typography.h3.fontSize}},subtitle:{color:E.palette.textSubtle}}),{name:"BackstageErrorPage"});function x(E){const{status:I,statusMessage:R,additionalInfo:j,supportUrl:F}=E,Z=C(),m=(0,f.s0)(),G=(0,g.v)();return(0,o.jsxs)(i.Z,{container:!0,spacing:0,className:Z.container,children:[(0,o.jsxs)(i.Z,{item:!0,xs:12,sm:8,md:4,children:[(0,o.jsxs)(S.Z,{"data-testid":"error",variant:"body1",className:Z.subtitle,children:["ERROR ",I,": ",R]}),(0,o.jsx)(S.Z,{variant:"body1",className:Z.subtitle,children:j}),(0,o.jsx)(S.Z,{variant:"h2",className:Z.title,children:"Looks like someone dropped the mic!"}),(0,o.jsxs)(S.Z,{variant:"h6",children:[(0,o.jsx)(l.rU,{to:"#","data-testid":"go-back-link",onClick:()=>m(-1),children:"Go back"}),"... or please"," ",(0,o.jsx)(l.rU,{to:F||G.url,children:"contact support"})," if you think this is a bug."]})]}),(0,o.jsx)(P,{})]})}},48037:function(V,T,t){"use strict";t.d(T,{h:function(){return z}});var o=t(52322),i=t(44394),d=t(6542),S=t(62774),p=t(60905),f=t(79692),l=t(80030),g=t(90436),b=t(2784),A=t(18671),P=t(98864),C=t(16173),x=t(11776),E=t(38402),I=t(79784),R=t(15459);const j=(0,R.Z)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(g.Z),F=(0,R.Z)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(S.Z);function Z(k){const{children:et,...rt}=k,[At,Ct]=b.useState(null),ut=b.Children.toArray(et),[Ot,xt,...Pt]=ut,ot=Pt.length?Pt.pop():ut[ut.length-1],U=ut.length>3,_=ct=>{Ct(ct.currentTarget)},J=()=>{Ct(null)},at=Boolean(At);return(0,o.jsxs)(b.Fragment,{children:[(0,o.jsxs)(C.Z,{"aria-label":"breadcrumb",...rt,children:[ut.length>1&&(0,o.jsx)(F,{clone:!0,children:Ot}),ut.length>2&&(0,o.jsx)(F,{clone:!0,children:xt}),U&&(0,o.jsx)(j,{onClick:_,children:"..."}),(0,o.jsx)(S.Z,{style:{fontStyle:"italic"},children:ot})]}),(0,o.jsx)(I.ZP,{open:at,anchorEl:At,onClose:J,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,o.jsx)(x.Z,{children:Pt.map((ct,W)=>(0,o.jsx)(E.Z,{button:!0,children:(0,o.jsx)(F,{clone:!0,children:ct})},W))})})]})}var m=t(44409);const G=(0,f.Z)(k=>({header:{gridArea:"pageHeader",padding:k.spacing(3),width:"100%",boxShadow:k.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:k.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[k.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:k.page.fontColor,wordBreak:"break-word",fontSize:k.typography.h3.fontSize,marginBottom:0},subtitle:{color:k.page.fontColor,opacity:.8,display:"inline-block",marginTop:k.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:k.spacing(1),color:k.page.fontColor},breadcrumb:{color:k.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-k.spacing(.3),marginBottom:k.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-k.spacing(.3),marginBottom:k.spacing(.3)}}),{name:"BackstageHeader"}),st=({type:k,typeLink:et,classes:rt,pageTitle:At})=>k?et?(0,o.jsxs)(Z,{className:rt.breadcrumb,children:[(0,o.jsx)(P.rU,{to:et,children:k}),(0,o.jsx)(g.Z,{children:At})]}):(0,o.jsx)(g.Z,{className:rt.type,children:k}):null,q=({pageTitle:k,classes:et,tooltip:rt})=>{const{contentRef:At}=(0,m.r)(),Ct=(0,o.jsx)(g.Z,{ref:At,tabIndex:-1,className:et.title,variant:"h1",children:k});return rt?(0,o.jsx)(l.ZP,{title:rt,placement:"top-start",children:Ct}):Ct},H=({classes:k,subtitle:et})=>et?typeof et!="string"?(0,o.jsx)(o.Fragment,{children:et}):(0,o.jsx)(g.Z,{className:k.subtitle,variant:"subtitle2",component:"span",children:et}):null;function z(k){const{children:et,pageTitleOverride:rt,style:At,subtitle:Ct,title:ut,tooltip:Ot,type:xt,typeLink:Pt}=k,ot=G(),_=(0,i.h_)(d.D).getOptionalString("app.title")||"Backstage",J=rt||ut,at=ut||rt,ct=`${J} | %s | ${_}`,W=`${J} | ${_}`;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A.q,{titleTemplate:ct,defaultTitle:W}),(0,o.jsxs)("header",{style:At,className:ot.header,children:[(0,o.jsxs)(S.Z,{className:ot.leftItemsBox,children:[(0,o.jsx)(st,{classes:ot,type:xt,typeLink:Pt,pageTitle:at}),(0,o.jsx)(q,{classes:ot,pageTitle:at,tooltip:Ot}),(0,o.jsx)(H,{classes:ot,subtitle:Ct})]}),(0,o.jsx)(p.Z,{container:!0,className:ot.rightItemsBox,spacing:4,children:et})]})]})}},67880:function(V,T,t){"use strict";t.d(T,{T:function(){return f}});var o=t(52322),i=t(2784),d=t(79692),S=t(41547);const p=(0,d.Z)(l=>({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",[l.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function f(l){const{themeId:g,children:b}=l,A=p();return(0,o.jsx)(S.Z,{theme:P=>({...P,page:P.getPageTheme({themeId:g})}),children:(0,o.jsx)("main",{className:A.root,children:b})})}},32166:function(V,T,t){"use strict";t.d(T,{g:function(){return p}});var o=t(52322),i=t(2784),d=t(48037),S=t(67880);function p(f){const{themeId:l,children:g,...b}=f;return(0,o.jsxs)(S.T,{themeId:l,children:[(0,o.jsx)(d.h,{...b}),g]})}},44409:function(V,T,t){"use strict";t.d(T,{t:function(){return C},r:function(){return x}});var o=t(52322),i=t(62774),d=t(79692),S=t(41156),p=t(2784),f=t(76921),l;(function(E){E.SIDEBAR_PIN_STATE="sidebarPinState"})(l||(l={}));const g={getSidebarPinState(){let E;try{E=JSON.parse(window.localStorage.getItem("sidebarPinState")||"true")}catch{return!0}return!!E},setSidebarPinState(E){return window.localStorage.setItem("sidebarPinState",JSON.stringify(E))}};var b=t(93539);const A=(0,d.Z)(E=>({root:{width:"100%",transition:"padding-left 0.1s ease-out",isolation:"isolate",[E.breakpoints.up("sm")]:{paddingLeft:I=>I.isPinned?I.sidebarConfig.drawerWidthOpen:I.sidebarConfig.drawerWidthClosed},[E.breakpoints.down("xs")]:{paddingBottom:I=>I.sidebarConfig.mobileSidebarHeight},"@media print":{padding:"0px !important"}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),P=(0,p.createContext)({content:{contentRef:void 0}});function C(E){const[I,R]=(0,p.useState)(()=>g.getSidebarPinState()),{sidebarConfig:j}=(0,p.useContext)(f.kG),F=(0,p.useRef)(null),Z=(0,p.useMemo)(()=>({content:{contentRef:F}}),[F]);(0,p.useEffect)(()=>{g.setSidebarPinState(I)},[I]);const m=(0,S.Z)(q=>q.breakpoints.down("xs"),{noSsr:!0}),G=()=>R(!I),st=A({isPinned:I,sidebarConfig:j});return(0,o.jsx)(b.lE,{value:{isPinned:I,toggleSidebarPinState:G,isMobile:m},children:(0,o.jsx)(P.Provider,{value:Z,children:(0,o.jsx)(i.Z,{className:st.root,children:E.children})})})}function x(){const{content:E}=(0,p.useContext)(P);return{focusContent:(0,p.useCallback)(()=>{var R,j;E==null||(j=E.contentRef)===null||j===void 0||(R=j.current)===null||R===void 0||R.focus()},[E]),contentRef:E==null?void 0:E.contentRef}}},93539:function(V,T,t){"use strict";t.d(T,{Pf:function(){return b},lE:function(){return g}});var o=t(52322),i=t(29651),d=t(68993),S=t(2784);const p={isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1},f=(0,S.createContext)(p),l=(0,i.CT)("sidebar-pin-state-context");function g(A){const{children:P,value:C}=A;return(0,o.jsx)(f.Provider,{value:C,children:(0,o.jsx)(l.Provider,{value:(0,d.E)({1:C}),children:P})})}const b=()=>{const A=(0,S.useContext)(l),P=(0,S.useContext)(f);if(A===void 0)return P||p;const C=A.atVersion(1);if(C===void 0)throw new Error("No context found for version 1.");return C}},76921:function(V,T,t){"use strict";t.d(T,{$E:function(){return f},Ag:function(){return P},kG:function(){return A},po:function(){return p},rW:function(){return g}});var o=t(2784);const i=72,d=24,S=18,p={drawerWidthClosed:i,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:i,iconSize:i-d*2,iconPadding:d,selectedIndicatorWidth:3,userBadgePadding:S,userBadgeDiameter:i-S*2,mobileSidebarHeight:56},f=C=>({...p,...C,iconContainerWidth:p.drawerWidthClosed,iconSize:p.drawerWidthClosed-p.iconPadding*2,userBadgeDiameter:p.drawerWidthClosed-p.userBadgePadding*2}),l={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:p.defaultOpenDelayMs+200},g=C=>({...l,...C}),b="@backstage/core/sidebar-intro-dismissed",A=(0,o.createContext)({sidebarConfig:p,submenuConfig:l}),P=(0,o.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}})},72388:function(V,T,t){"use strict";t.d(T,{Os:function(){return f},fC:function(){return l}});var o=t(52322),i=t(29651),d=t(68993),S=t(2784);const p=(0,i.CT)("analytics-context"),f=()=>{const b=(0,S.useContext)(p);if(b===void 0)return{routeRef:"unknown",pluginId:"root",extension:"App"};const A=b.atVersion(1);if(A===void 0)throw new Error("No context found for version 1.");return A},l=b=>{const{attributes:A,children:P}=b,x={...f(),...A},E=(0,d.E)({1:x});return(0,o.jsx)(p.Provider,{value:E,children:P})};function g(b,A){const P=C=>_jsx(l,{attributes:A,children:_jsx(b,{...C})});return P.displayName=`WithAnalyticsContext(${b.displayName||b.name||"Component"})`,P}},7355:function(V,T,t){"use strict";t.d(T,{f:function(){return p},h:function(){return S}});var o=t(87612),i=t(96087);const d=(0,i.u)("core-plugin-api:analytics-tracker-events",()=>({mostRecentGatheredNavigation:void 0,mostRecentRoutableExtensionRender:void 0,beforeUnloadRegistered:!1})),S="_ROUTABLE-EXTENSION-RENDERED";class p{setContext(l){this.context=l}captureEvent(l,g,{value:b,attributes:A}={}){const{_routeNodeType:P,...C}=this.context;if(l===S){d.mostRecentGatheredNavigation&&(d.mostRecentRoutableExtensionRender={context:{...C,extension:"App"}});return}if(d.mostRecentGatheredNavigation){try{this.analyticsApi.captureEvent({...d.mostRecentGatheredNavigation,...d.mostRecentRoutableExtensionRender})}catch(x){console.warn("Error during analytics event capture. %o",x)}d.mostRecentGatheredNavigation=void 0,d.mostRecentRoutableExtensionRender=void 0}if(l==="navigate"&&P==="gathered"&&C.pluginId==="root"){d.mostRecentGatheredNavigation={action:l,subject:g,value:b,attributes:A,context:C};return}try{this.analyticsApi.captureEvent({action:l,subject:g,value:b,attributes:A,context:C})}catch(x){console.warn("Error during analytics event capture. %o",x)}}constructor(l,g={routeRef:"unknown",pluginId:"root",extension:"App"}){(0,o._)(this,"analyticsApi",void 0),(0,o._)(this,"context",void 0),this.analyticsApi=l,this.context=g,d.beforeUnloadRegistered||(addEventListener("beforeunload",()=>{d.mostRecentGatheredNavigation&&(this.analyticsApi.captureEvent({...d.mostRecentGatheredNavigation,...d.mostRecentRoutableExtensionRender}),d.mostRecentGatheredNavigation=void 0,d.mostRecentRoutableExtensionRender=void 0)},{once:!0,passive:!0}),d.beforeUnloadRegistered=!0)}}},62369:function(V,T,t){"use strict";t.d(T,{z:function(){return l}});var o=t(72388),i=t(44394),d=t(86386),S=t(2784),p=t(7355);function f(){try{return(0,i.h_)(d.v)}catch{return{captureEvent:()=>{}}}}function l(){const g=(0,S.useRef)(null),b=(0,o.Os)(),A=f();function P(){return g.current===null&&(g.current=new p.f(A)),g.current}const C=P();return C.setContext(b),C}},78847:function(V,T,t){"use strict";t.d(T,{$:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.alert"})},86386:function(V,T,t){"use strict";t.d(T,{v:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.analytics"})},6542:function(V,T,t){"use strict";t.d(T,{D:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.config"})},96727:function(V,T,t){"use strict";t.d(T,{N:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.discovery"})},58513:function(V,T,t){"use strict";t.d(T,{V:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.error"})},82723:function(V,T,t){"use strict";t.d(T,{C:function(){return i},W:function(){return d}});var o=t(95965),i;(function(S){S[S.None=0]="None",S[S.Active=1]="Active"})(i||(i={}));const d=(0,o.T)({id:"core.featureflags"})},85094:function(V,T,t){"use strict";t.d(T,{g:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.fetch"})},77186:function(V,T,t){"use strict";t.d(T,{$:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.identity"})},96253:function(V,T,t){"use strict";t.d(T,{o:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.translation"})},95965:function(V,T,t){"use strict";t.d(T,{T:function(){return d}});var o=t(87612);class i{get id(){return this.config.id}get T(){throw new Error(`tried to read ApiRef.T of ${this}`)}toString(){return`apiRef{${this.config.id}}`}constructor(p){if((0,o._)(this,"config",void 0),this.config=p,!p.id.split(".").flatMap(l=>l.split("-")).every(l=>l.match(/^[a-z][a-z0-9]*$/)))throw new Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${p.id}'`)}}function d(S){return new i(S)}},42380:function(V,T,t){"use strict";t.d(T,{n:function(){return o}});function o(i,d){return"id"in i?{api:i,deps:{},factory:()=>d}:i}},44394:function(V,T,t){"use strict";t.d(T,{I_:function(){return S},h_:function(){return p}});var o=t(52322),i=t(2784),d=t(29651);function S(){const l=(0,d.Vt)("api-context");if(!l)throw new Error("API context is not available");const g=l.atVersion(1);if(!g)throw new Error("ApiContext v1 not available");return g}function p(l){const b=S().get(l);if(!b)throw new Error(`No implementation available for ${l}`);return b}function f(l){return function(b){const A=C=>{const x=S(),E={};for(const I in l)if(l.hasOwnProperty(I)){const R=l[I],j=x.get(R);if(!j)throw new Error(`No implementation available for ${R}`);E[I]=j}return _jsx(b,{...C,...E})},P=b.displayName||b.name||"Component";return A.displayName=`withApis(${P})`,A}}},80851:function(V,T,t){"use strict";t.d(T,{q:function(){return i}});var o=t(29651);const i=()=>{const d=(0,o.Vt)("app-context");if(!d)throw new Error("App context is not available");const S=d.atVersion(1);if(!S)throw new Error("AppContext v1 not available");return S}},62584:function(V,T,t){"use strict";t.d(T,{I:function(){return p},R:function(){return S}});var o=t(96087);const i=(0,o.u)("component-data-store",()=>new WeakMap),d="__backstage_data";function S(f,l,g){const b=f;var A;let P=(A=b[d])!==null&&A!==void 0?A:i.get(f);if(P||(P={map:new Map},Object.defineProperty(b,d,{enumerable:!1,configurable:!0,writable:!1,value:P}),i.set(f,P)),P.map.has(l)){const C=f.displayName||f.name;throw new Error(`Attempted to attach duplicate data "${l}" to component "${C}"`)}P.map.set(l,g)}function p(f,l){if(!f)return;const g=f.type;if(!g)return;var b;const A=(b=g[d])!==null&&b!==void 0?b:i.get(g);if(A)return A.map.get(l)}},82963:function(V,T,t){"use strict";t.d(T,{CO:function(){return C},YO:function(){return x},P4:function(){return P}});var o=t(52322),i=t(2784),d=t(62369),S=t(72388),p=t(80851),f=t(37321),l=t(62584),g=t(87612);class b extends i.Component{static getDerivedStateFromError(I){return{error:I}}render(){const{error:I}=this.state,{app:R,plugin:j}=this.props,{ErrorBoundaryFallback:F}=R.getComponents();return I?(0,o.jsx)(F,{error:I,resetError:this.handleErrorReset,plugin:j}):this.props.children}constructor(...I){super(...I),(0,g._)(this,"state",{error:void 0}),(0,g._)(this,"handleErrorReset",()=>{this.setState({error:void 0})})}}var A=t(7355);function P(E){const{component:I,mountPoint:R,name:j}=E;return x({component:{lazy:()=>I().then(F=>{const Z=G=>{const st=(0,d.z)();try{(0,f.t)(R)}catch(q){if(typeof q=="object"&&q!==null){const{message:H}=q;if(typeof H=="string"&&H.startsWith("No path for "))throw new Error(`Routable extension component with mount point ${R} 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 q}return(0,i.useEffect)(()=>{st.captureEvent(A.h,"")},[st]),(0,o.jsx)(F,{...G})},m=j||F.displayName||F.name||"LazyComponent";return Z.displayName=`RoutableExtension(${m})`,Z},F=>m=>{const G=(0,p.q)(),{BootErrorPage:st}=G.getComponents();return(0,o.jsx)(st,{step:"load-chunk",error:F})})},data:{"core.mountPoint":R},name:j})}function C(E){const{component:I,name:R}=E;return x({component:I,name:R})}function x(E){const{data:I={},name:R}=E;R||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name.");let j;if("lazy"in E.component){const Z=E.component.lazy;j=(0,i.lazy)(()=>Z().then(m=>({default:m})))}else j=E.component.sync;const F=R||j.displayName||j.name||"Component";return{expose(Z){const m=G=>{const st=(0,p.q)(),{Progress:q}=st.getComponents(),H=I==null?void 0:I["core.mountPoint"];return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(q,{}),children:(0,o.jsx)(b,{app:st,plugin:Z,children:(0,o.jsx)(S.fC,{attributes:{pluginId:Z.getId(),...R&&{extension:R},...H&&{routeRef:H.id}},children:(0,o.jsx)(j,{...G})})})})};(0,l.R)(m,"core.plugin",Z),(0,l.R)(m,"core.extensionName",R);for(const[G,st]of Object.entries(I))(0,l.R)(m,G,st);return m.displayName=`Extension(${F})`,m}}}},2532:function(V,T,t){"use strict";t.d(T,{v:function(){return g}});var o=t(87612),i=t(2784),d=t(62584),S=t(44394),p=t(82723);function f(b,A,P,C){return i.Children.toArray(b).flatMap(x=>{if(!(0,i.isValidElement)(x))return[];if(x.type===i.Fragment)return f(x.props.children,A,P,C);if((0,d.I)(x,"core.featureFlagged")){const E=x.props;return("with"in E?A.isActive(E.with):!A.isActive(E.without))?f(x.props.children,A,P,C):[]}if(P===void 0||P(x))return[x];if(C)throw new Error(C);return f(x.props.children,A,P,C)})}class l{selectByComponentData(A){const P=f(this.node,this.featureFlagsApi,C=>(0,d.I)(C,A.key)!==void 0,A.withStrictError);return new l(P,this.featureFlagsApi)}findComponentData(A){return f(this.node,this.featureFlagsApi,C=>(0,d.I)(C,A.key)!==void 0).map(C=>(0,d.I)(C,A.key)).filter(C=>C!==void 0)}getElements(){return f(this.node,this.featureFlagsApi)}constructor(A,P){(0,o._)(this,"node",void 0),(0,o._)(this,"featureFlagsApi",void 0),this.node=A,this.featureFlagsApi=P}}function g(b,A,P=[]){const C=(0,S.h_)(p.W),x=new l(b,C);return(0,i.useMemo)(()=>A(x),[b,...P])}},15006:function(V,T,t){"use strict";t.d(T,{r:function(){return d}});var o=t(87612);class i{getId(){return this.config.id}getApis(){var p;return(p=this.config.apis)!==null&&p!==void 0?p:[]}getFeatureFlags(){var p,f;return(f=(p=this.config.featureFlags)===null||p===void 0?void 0:p.slice())!==null&&f!==void 0?f:[]}get routes(){var p;return(p=this.config.routes)!==null&&p!==void 0?p:{}}get externalRoutes(){var p;return(p=this.config.externalRoutes)!==null&&p!==void 0?p:{}}provide(p){return p.expose(this)}toString(){return`plugin{${this.config.id}}`}constructor(p){(0,o._)(this,"config",void 0),this.config=p}}function d(S){return new i(S)}},30283:function(V,T,t){"use strict";t.d(T,{N:function(){return f}});var o=t(87612),i=t(92918);let d=i.K,S=d;class p{get title(){return this.id}toString(){return`routeRef{type=absolute,id=${this.id}}`}constructor(g,b){(0,o._)(this,"id",void 0),(0,o._)(this,"params",void 0),(0,o._)(this,S,void 0),this.id=g,this.params=b,this[d]="absolute"}}function f(l){var g;return new p(l.id,(g=l.params)!==null&&g!==void 0?g:[])}},92918:function(V,T,t){"use strict";t.d(T,{K:function(){return i}});var o=t(96087);const i=(0,o.u)("route-ref-type",()=>Symbol("route-ref-type"))},37321:function(V,T,t){"use strict";t.d(T,{t:function(){return S}});var o=t(2784),i=t(73557),d=t(29651);function S(p){const{pathname:f}=(0,i.TH)(),l=(0,d.Vt)("routing-context");if(!l)throw new Error("Routing context is not available");const g=l.atVersion(1),b=(0,o.useMemo)(()=>g&&g.resolve(p,{pathname:f}),[g,p,f]);if(!l)throw new Error("useRouteRef used outside of routing context");if(!g)throw new Error("RoutingContext v1 not available");const A="optional"in p&&p.optional;if(!b&&!A)throw new Error(`No path for ${p}`);return b}},35304:function(V,T,t){"use strict";t.d(T,{F:function(){return A},y:function(){return P}});var o=t(88412),i=t(52475),d=t(80956),S=t(87612),p=t(18015),f=new WeakMap,l=new WeakMap,g=new WeakMap;class b{get id(){return(0,o._)(this,f)}get T(){throw new Error("Not implemented")}getDefaultMessages(){return(0,o._)(this,l)}setDefaultResource(x){(0,d._)(this,g,x)}getDefaultResource(){return(0,o._)(this,g)}toString(){return`TranslationRef{id=${this.id}}`}constructor(x){(0,i._)(this,f,{writable:!0,value:void 0}),(0,i._)(this,l,{writable:!0,value:void 0}),(0,i._)(this,g,{writable:!0,value:void 0}),(0,S._)(this,"$$type","@backstage/TranslationRef"),(0,S._)(this,"version","v1"),(0,d._)(this,f,x.id),(0,d._)(this,l,x.messages)}}function A(C){const x=new b(C);return C.translations&&x.setDefaultResource((0,p.N)({ref:x,translations:C.translations})),x}function P(C){const x=C;if(x.$$type!=="@backstage/TranslationRef")throw new Error(`Invalid translation ref, bad type '${x.$$type}'`);if(x.version!=="v1")throw new Error(`Invalid translation ref, bad version '${x.version}'`);return x}},18015:function(V,T,t){"use strict";t.d(T,{N:function(){return i},W:function(){return o}});function o(d){const S=d;if(S.$$type!=="@backstage/TranslationResource")throw new Error(`Invalid translation resource, bad type '${S.$$type}'`);if(S.version!=="v1")throw new Error(`Invalid translation resource, bad version '${S.version}'`);return S}function i(d){return{$$type:"@backstage/TranslationResource",version:"v1",id:d.ref.id,resources:Object.entries(d.translations).map(([S,p])=>({language:S,loader:()=>p().then(f=>{const l=f.default;return{messages:(l==null?void 0:l.$$type)==="@backstage/TranslationMessages"?l.messages:l}})}))}}},41385:function(V,T,t){"use strict";t.d(T,{V:function(){return S}});var o=t(87612),i=t(48998);async function d(p){try{const l=await p.text();if(l){var f;if(!((f=p.headers.get("content-type"))===null||f===void 0)&&f.startsWith("application/json"))try{const g=JSON.parse(l);if(g.error&&g.response)return g}catch{}return{error:{name:"Error",message:`Request failed with status ${p.status} ${p.statusText}, ${l}`},response:{statusCode:p.status}}}}catch{}return{error:{name:"Error",message:`Request failed with status ${p.status} ${p.statusText}`},response:{statusCode:p.status}}}class S extends Error{static async fromResponse(f){const l=await d(f),g=l.response.statusCode||f.status,b=l.error.name||f.statusText,A=`Request failed with ${g} ${b}`,P=(0,i.Fq)(l.error);return new S({message:A,response:f,data:l,cause:P})}constructor(f){super(f.message),(0,o._)(this,"response",void 0),(0,o._)(this,"body",void 0),(0,o._)(this,"cause",void 0),this.name="ResponseError",this.response=f.response,this.body=f.data,this.cause=f.cause}}},30474:function(V,T,t){"use strict";t.d(T,{V:function(){return o}});function o(d){if(typeof d!="object"||d===null||Array.isArray(d))return!1;const S=d;return!(typeof S.name!="string"||S.name===""||typeof S.message!="string")}function i(d){if(typeof d!="object"||d===null||Array.isArray(d))throw new Error(`Encountered invalid error, not an object, got '${d}'`);const S=d;if(typeof S.name!="string"||S.name==="")throw new Error(`Encountered error object without a name, got '${d}'`);if(typeof S.message!="string")throw new Error(`Encountered error object without a message, got '${d}'`)}},48998:function(V,T,t){"use strict";t.d(T,{Fq:function(){return p},n:function(){return f}});var o=t(24852),i=t.n(o),d=t(30474);function S(l,g){const A={name:"Unknown",message:"<no reason given>",...serializeErrorInternal(l)};return g!=null&&g.includeStack||delete A.stack,A}function p(l){const g=(0,o.deserializeError)(l);return l.stack||(g.stack=void 0),g}function f(l){if((0,d.V)(l)){const g=String(l);return g!=="[object Object]"?g:`${l.name}: ${l.message}`}return`unknown error '${l}'`}},91657:function(V,T,t){"use strict";t.d(T,{a:function(){return $e},q:function(){return Fe}});var o=t(87612),i=t(38264);const d="amazonaws.com";function S(L){const u=L.getOptionalString("endpoint");var D;const B=(D=L.getOptionalBoolean("s3ForcePathStyle"))!==null&&D!==void 0?D:!1;let tt,dt;if(u){try{const Dt=new URL(u);tt=Dt.host,dt=Dt.pathname}catch{throw new Error(`invalid awsS3 integration config, endpoint '${u}' is not a valid URL`)}if(dt!=="/")throw new Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${u}'`)}else tt=d;const Et=L.getOptionalString("accessKeyId"),Vt=L.getOptionalString("secretAccessKey"),Zt=L.getOptionalString("roleArn"),jt=L.getOptionalString("externalId");return{host:tt,endpoint:u,s3ForcePathStyle:B,accessKeyId:Et,secretAccessKey:Vt,roleArn:Zt,externalId:jt}}function p(L){const u=L.map(S);return u.some(D=>D.host===d)||u.push({host:d}),u}class f{get type(){return"awsS3"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){return(0,i.FI)(u)}resolveEditUrl(u){return u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(f,"factory",({config:L})=>{var u;const D=p((u=L.getOptionalConfigArray("integrations.awsS3"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(B=>new f(B)),B=>B.config.host)});var l=t(88412),g=t(52475),b=t(80956);const A="GB";var P=new WeakMap,C=new WeakMap,x=new WeakMap,E=new WeakMap,I=new WeakMap,R=new WeakMap,j=new WeakMap;class F{static fromRepoUrl(u){const D=new URL(u);let B,tt,dt;const Et=D.pathname.split("/").map(ie=>decodeURIComponent(ie));if(Et[2]==="_git"?(B=Et[1],tt=dt=Et[3]):Et[3]==="_git"?(B=Et[1],tt=Et[2],dt=Et[4]):Et[4]==="_git"&&(B=`${Et[1]}/${Et[2]}`,tt=Et[3],dt=Et[5]),!B||!tt||!dt)throw new Error("Azure URL must point to a git repository");var Vt;const Zt=(Vt=D.searchParams.get("path"))!==null&&Vt!==void 0?Vt:void 0;let jt;const Dt=D.searchParams.get("version");if(Dt){if(Dt.slice(0,2)!=="GB")throw new Error("Azure URL version must point to a git branch");jt=Dt.slice(2)}return new F(D.origin,B,tt,dt,Zt,jt)}toRepoUrl(){let u;return(0,l._)(this,x)===(0,l._)(this,E)?u=(0,l._)(this,j).call(this,(0,l._)(this,C),"_git",(0,l._)(this,E)):u=(0,l._)(this,j).call(this,(0,l._)(this,C),(0,l._)(this,x),"_git",(0,l._)(this,E)),(0,l._)(this,I)&&u.searchParams.set("path",(0,l._)(this,I)),(0,l._)(this,R)&&u.searchParams.set("version",A+(0,l._)(this,R)),u.toString()}toFileUrl(){if(!(0,l._)(this,I))throw new Error("Azure URL must point to a specific path to be able to download a file");const u=(0,l._)(this,j).call(this,(0,l._)(this,C),(0,l._)(this,x),"_apis","git","repositories",(0,l._)(this,E),"items");return u.searchParams.set("api-version","6.0"),u.searchParams.set("path",(0,l._)(this,I)),(0,l._)(this,R)&&u.searchParams.set("version",(0,l._)(this,R)),u.toString()}toArchiveUrl(){const u=(0,l._)(this,j).call(this,(0,l._)(this,C),(0,l._)(this,x),"_apis","git","repositories",(0,l._)(this,E),"items");return u.searchParams.set("recursionLevel","full"),u.searchParams.set("download","true"),u.searchParams.set("api-version","6.0"),(0,l._)(this,I)&&u.searchParams.set("scopePath",(0,l._)(this,I)),(0,l._)(this,R)&&u.searchParams.set("version",(0,l._)(this,R)),u.toString()}toCommitsUrl(){const u=(0,l._)(this,j).call(this,(0,l._)(this,C),(0,l._)(this,x),"_apis","git","repositories",(0,l._)(this,E),"commits");return u.searchParams.set("api-version","6.0"),(0,l._)(this,R)&&u.searchParams.set("searchCriteria.itemVersion.version",(0,l._)(this,R)),u.toString()}getOwner(){return(0,l._)(this,C)}getProject(){return(0,l._)(this,x)}getRepo(){return(0,l._)(this,E)}getPath(){return(0,l._)(this,I)}getRef(){return(0,l._)(this,R)}constructor(u,D,B,tt,dt,Et){(0,g._)(this,P,{writable:!0,value:void 0}),(0,g._)(this,C,{writable:!0,value:void 0}),(0,g._)(this,x,{writable:!0,value:void 0}),(0,g._)(this,E,{writable:!0,value:void 0}),(0,g._)(this,I,{writable:!0,value:void 0}),(0,g._)(this,R,{writable:!0,value:void 0}),(0,g._)(this,j,{writable:!0,value:(...Vt)=>{const Zt=new URL((0,l._)(this,P));return Zt.pathname=Vt.map(jt=>encodeURIComponent(jt)).join("/"),Zt}}),(0,b._)(this,P,u),(0,b._)(this,C,D),(0,b._)(this,x,B),(0,b._)(this,E,tt),(0,b._)(this,I,dt),(0,b._)(this,R,Et)}}const Z="dev.azure.com",m=["clientId","clientSecret","tenantId","personalAccessToken"],G=new Map([["ClientSecret",["clientId","clientSecret","tenantId"]],["ManagedIdentity",["clientId"]],["PersonalAccessToken",["personalAccessToken"]]]);function st(L){for(const u of G.entries()){const[D,B]=u,tt=m.filter(dt=>!B.includes(dt));if(B.every(dt=>L[dt]!==void 0)&&tt.every(dt=>L[dt]===void 0))return{kind:D,organizations:L.organizations,...B.reduce((dt,Et)=>(dt[Et]=L[Et],dt),{})}}throw new Error("is not a valid credential")}function q(L){var u,D;const B=(D=L.getOptionalString("host"))!==null&&D!==void 0?D:Z;let tt=(u=L.getOptionalConfigArray("credentials"))===null||u===void 0?void 0:u.map(jt=>({organizations:jt.getOptionalStringArray("organizations"),personalAccessToken:jt.getOptionalString("personalAccessToken"),tenantId:jt.getOptionalString("tenantId"),clientId:jt.getOptionalString("clientId"),clientSecret:jt.getOptionalString("clientSecret")}));const dt=L.getOptionalString("token");if(L.getOptional("credential")!==void 0&&L.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'credential' and 'credentials' cannot be used together. Use 'credentials' instead.");if(L.getOptional("token")!==void 0&&L.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'token' and 'credentials' cannot be used together. Use 'credentials' instead.");if(dt!==void 0){const jt=[{personalAccessToken:dt}];var Et;tt=(Et=tt==null?void 0:tt.concat(jt))!==null&&Et!==void 0?Et:jt}if(L.getOptional("credential")!==void 0){const jt=[{organizations:L.getOptionalStringArray("credential.organizations"),token:L.getOptionalString("credential.token"),tenantId:L.getOptionalString("credential.tenantId"),clientId:L.getOptionalString("credential.clientId"),clientSecret:L.getOptionalString("credential.clientSecret")}];var Vt;tt=(Vt=tt==null?void 0:tt.concat(jt))!==null&&Vt!==void 0?Vt:jt}if(!(0,i.bK)(B))throw new Error(`Invalid Azure integration config, '${B}' is not a valid host`);let Zt;if(tt!==void 0){const jt=tt==null?void 0:tt.reduce((Dt,ie,Ce)=>{let De;try{st(ie)}catch(We){De=We.message}return De!==void 0&&Dt.push(`credential at position ${Ce+1} ${De}`),Dt},Array.of()).concat(Object.entries(tt.filter(Dt=>Dt.organizations!==void 0&&Dt.organizations.length>0).reduce((Dt,ie,Ce)=>{var De;return(De=ie.organizations)===null||De===void 0||De.forEach(We=>{Dt[We]||(Dt[We]=[]),Dt[We].push(Ce+1)}),Dt},{})).filter(([Dt,ie])=>ie.length>1).reduce((Dt,[ie,Ce])=>(Dt.push(`organization ${ie} is specified multiple times in credentials at positions ${Ce.slice(0,Ce.length-1).join(", ")} and ${Ce[Ce.length-1]}`),Dt),Array.of()));if((jt==null?void 0:jt.length)>0)throw new Error(`Invalid Azure integration config for ${B}: ${jt.join("; ")}`);if(Zt=tt.map(Dt=>st(Dt)),Zt.some(Dt=>Dt.kind!=="PersonalAccessToken")&&B!==Z)throw new Error(`Invalid Azure integration config for ${B}, only personal access tokens can be used with hosts other than ${Z}`);if(Zt.filter(Dt=>Dt.organizations===void 0||Dt.organizations.length===0).length>1)throw new Error(`Invalid Azure integration config for ${B}, you cannot specify multiple credentials without organizations`)}return{host:B,credentials:Zt}}function H(L){const u=L.map(q);return u.some(D=>D.host===Z)||u.push({host:Z}),u}class z{get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const{url:D,base:B}=u;if((0,i.jv)(D))return D;try{const dt=F.fromRepoUrl(B),Et=new URL(B);var tt;const Vt=new URL(`https://a.com${(tt=dt.getPath())!==null&&tt!==void 0?tt:""}`),Zt=new URL(D,Vt).pathname;return Et.searchParams.set("path",Zt),u.lineNumber&&(Et.searchParams.set("line",String(u.lineNumber)),Et.searchParams.set("lineEnd",String(u.lineNumber+1)),Et.searchParams.set("lineStartColumn","1"),Et.searchParams.set("lineEndColumn","1")),Et.toString()}catch{return new URL(D,B).toString()}}resolveEditUrl(u){return u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(z,"factory",({config:L})=>{var u;const D=H((u=L.getOptionalConfigArray("integrations.azure"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(B=>new z(B)),B=>B.config.host)});var k=t(82717),et=t.n(k);const rt="bitbucket.org",At="https://api.bitbucket.org/2.0";function Ct(L){const u=rt,D=At,B=L.getString("username"),tt=L.getString("appPassword");return{host:u,apiBaseUrl:D,username:B,appPassword:tt}}function ut(L){const u=L.map(Ct);return u.length===0&&u.push({host:rt,apiBaseUrl:At}),u}class Ot{get type(){return"bitbucketCloud"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const D=(0,i.FI)(u);if(u.lineNumber){const B=new URL(D);return B.hash=`lines-${u.lineNumber}`,B.toString()}return D}resolveEditUrl(u){const D=et()(u),B=new URL(u);return B.searchParams.set("mode","edit"),B.searchParams.set("at",D.ref),B.toString()}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(Ot,"factory",({config:L})=>{var u;const D=ut((u=L.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(B=>new Ot(B)),B=>B.config.host)});var xt=t(76635);const Pt="bitbucket.org",ot="https://api.bitbucket.org/2.0";function U(L){var u;const D=(u=L.getOptionalString("host"))!==null&&u!==void 0?u:Pt;let B=L.getOptionalString("apiBaseUrl");const tt=L.getOptionalString("token"),dt=L.getOptionalString("username"),Et=L.getOptionalString("appPassword");if(!(0,i.bK)(D))throw new Error(`Invalid Bitbucket integration config, '${D}' is not a valid host`);return B?B=(0,xt.trimEnd)(B,"/"):D===Pt?B=ot:B=`https://${D}/rest/api/1.0`,{host:D,apiBaseUrl:B,token:tt,username:dt,appPassword:Et}}function _(L){const u=L.map(U);return u.some(D=>D.host===Pt)||u.push({host:Pt,apiBaseUrl:ot}),u}class J{get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const D=(0,i.FI)(u);if(!u.lineNumber)return D;const B=new URL(D);return this.integrationConfig.host==="bitbucket.org"?B.hash=`lines-${u.lineNumber}`:B.hash=`${u.lineNumber}`,B.toString()}resolveEditUrl(u){const D=et()(u),B=new URL(u);return B.searchParams.set("mode","edit"),B.searchParams.set("spa","0"),B.searchParams.set("at",D.ref),B.toString()}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(J,"factory",({config:L})=>{var u,D,B;const tt=_((B=L.getOptionalConfigArray("integrations.bitbucket"))!==null&&B!==void 0?B:[...(u=L.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&u!==void 0?u:[],...(D=L.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&D!==void 0?D:[]]);return(0,i.gz)(tt.map(dt=>new J(dt)),dt=>dt.config.host)});function at(L){const u=L.getString("host");let D=L.getOptionalString("apiBaseUrl");const B=L.getOptionalString("token"),tt=L.getOptionalString("username"),dt=L.getOptionalString("password");if(!(0,i.bK)(u))throw new Error(`Invalid Bitbucket Server integration config, '${u}' is not a valid host`);return D?D=(0,xt.trimEnd)(D,"/"):D=`https://${u}/rest/api/1.0`,{host:u,apiBaseUrl:D,token:B,username:tt,password:dt}}function ct(L){return L.map(at)}class W{get type(){return"bitbucketServer"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const D=(0,i.FI)(u);if(u.lineNumber){const B=new URL(D);return B.hash=u.lineNumber.toString(),B.toString()}return D}resolveEditUrl(u){return u.includes("?")?u.substring(0,u.indexOf("?")):u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(W,"factory",({config:L})=>{var u;const D=ct((u=L.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(B=>new W(B)),B=>B.config.host)});function K(L){const u=L.getString("host");let D=L.getOptionalString("baseUrl"),B=L.getOptionalString("cloneUrl"),tt=L.getOptionalString("gitilesBaseUrl");const dt=L.getOptionalString("username"),Et=L.getOptionalString("password");if((0,i.bK)(u)){if(D&&!(0,i.jv)(D))throw new Error(`Invalid Gerrit integration config, '${D}' is not a valid baseUrl`);if(B&&!(0,i.jv)(B))throw new Error(`Invalid Gerrit integration config, '${B}' is not a valid cloneUrl`);if(tt&&!(0,i.jv)(tt))throw new Error(`Invalid Gerrit integration config, '${tt}' is not a valid gitilesBaseUrl`)}else throw new Error(`Invalid Gerrit integration config, '${u}' is not a valid host`);return D?D=(0,xt.trimEnd)(D,"/"):D=`https://${u}`,tt?tt=(0,xt.trimEnd)(tt,"/"):tt=`https://${u}`,B?B=(0,xt.trimEnd)(B,"/"):B=D,{host:u,baseUrl:D,cloneUrl:B,gitilesBaseUrl:tt,username:dt,password:Et}}function pt(L){return L.map(K)}var yt=t(48834).lW;const ht=")]}'";function ft(L,u){const D=new URL(L.gitilesBaseUrl),B=new URL(u),dt=B.pathname.substring(B.pathname.startsWith("/a/")?2:0).replace(D.pathname,"").split("/").filter(ie=>!!ie),Et=dt.indexOf("+");if(Et<=0)throw new Error(`Unable to parse project from url: ${u}`);const Vt=(0,xt.trimStart)(dt.slice(0,Et).join("/"),"/"),Zt=dt.indexOf("heads");if(Zt<=0)throw new Error(`Unable to parse branch from url: ${u}`);const jt=dt[Zt+1],Dt=dt.slice(Zt+2).join("/");return{branch:jt,filePath:Dt===""?"/":Dt,project:Vt}}function lt(L,u,D,B){return`${L.gitilesBaseUrl}/${u}/+/refs/heads/${D}/${(0,xt.trimStart)(B,"/")}`}function Tt(L,u,D,B){const tt=B==="/"||B===""?".tar.gz":`/${B}.tar.gz`;return`${It(L)}/${u}/+archive/refs/heads/${D}${tt}`}function Rt(L){return L.password?"/a/":"/"}function It(L){if(!L.baseUrl||!L.gitilesBaseUrl)throw new Error("Unexpected Gerrit config values. baseUrl or gitilesBaseUrl not set.");if(L.gitilesBaseUrl.startsWith(L.baseUrl))return L.gitilesBaseUrl.replace(L.baseUrl.concat("/"),L.baseUrl.concat(Rt(L)));if(L.password)throw new Error("Since the baseUrl (Gerrit) is not part of the gitilesBaseUrl, an authentication URL could not be constructed.");return L.gitilesBaseUrl}function Gt(L,u){const{branch:D,project:B}=ft(L,u);return`${L.baseUrl}${Rt(L)}projects/${encodeURIComponent(B)}/branches/${D}`}function Qt(L,u){const{project:D}=ft(L,u);return`${L.cloneUrl}${Rt(L)}${D}`}function pe(L,u){const{branch:D,filePath:B,project:tt}=ft(L,u);return`${L.baseUrl}${Rt(L)}projects/${encodeURIComponent(tt)}/branches/${D}/files/${encodeURIComponent(B)}/content`}function kt(L){return`${L.baseUrl}${Rt(L)}projects/`}function Wt(L){const u={};if(!L.password)return u;const D=yt.from(`${L.username}:${L.password}`,"utf8");return u.Authorization=`Basic ${D.toString("base64")}`,{headers:u}}async function Yt(L){const u=await L.text();if(u.startsWith(ht))try{return JSON.parse(u.slice(ht.length))}catch(D){throw new Error(`Invalid response from Gerrit: ${u.slice(0,10)} - ${D}`)}throw new Error(`Gerrit JSON body prefix missing. Found: ${u.slice(0,10)}`)}class se{get type(){return"gerrit"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const{url:D,base:B,lineNumber:tt}=u;let dt;if(D.startsWith("/")){const{branch:Et,project:Vt}=ft(this.config,B);return lt(this.config,Vt,Et,D)}return D?dt=new URL(D,B):dt=new URL(B),tt&&(dt.hash=tt.toString()),dt.toString()}resolveEditUrl(u){return u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(se,"factory",({config:L})=>{var u;const D=pt((u=L.getOptionalConfigArray("integrations.gerrit"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(B=>new se(B)),B=>B.config.host)});var be=t(61800);const Pe="gitlab.com",Ue="https://gitlab.com/api/v4";function Ie(L){const u=L.getString("host");let D=L.getOptionalString("apiBaseUrl");const B=L.getOptionalString("token");let tt=L.getOptionalString("baseUrl");if(D?D=(0,xt.trimEnd)(D,"/"):u===Pe&&(D=Ue),tt?tt=(0,xt.trimEnd)(tt,"/"):tt=`https://${u}`,(0,i.bK)(u)){if(!D||!(0,i.jv)(D))throw new Error(`Invalid GitLab integration config, '${D}' is not a valid apiBaseUrl`);if(!(0,i.jv)(tt))throw new Error(`Invalid GitLab integration config, '${tt}' is not a valid baseUrl`)}else throw new Error(`Invalid GitLab integration config, '${u}' is not a valid host`);return{host:u,token:B,apiBaseUrl:D,baseUrl:tt}}function Qe(L){const u=L.map(Ie);return u.some(D=>D.host===Pe)||u.push({host:Pe,apiBaseUrl:Ue,baseUrl:`https://${Pe}`}),u}function ze(L){let u="";return L.host!==Pe&&(u=new URL(L.baseUrl).pathname),trimEnd(u,"/")}class ye{get type(){return"gitlab"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){return(0,i.FI)(u)}resolveEditUrl(u){return Je(u,"edit")}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(ye,"factory",({config:L})=>{var u;const D=Qe((u=L.getOptionalConfigArray("integrations.gitlab"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(B=>new ye(B)),B=>B.config.host)});function Je(L,u){return L.replace(/\/\-\/(blob|tree|edit)\//,`/-/${u}/`)}function Xe(L){const u=L.getString("host");let D=L.getOptionalString("baseUrl");const B=L.getOptionalString("username"),tt=L.getOptionalString("password");if(!(0,i.bK)(u))throw new Error(`Invalid Gitea integration config, '${u}' is not a valid host`);return D?D=(0,xt.trimEnd)(D,"/"):D=`https://${u}`,{host:u,baseUrl:D,username:B,password:tt}}var He=t(48834).lW;function re(L,u){try{var D;const B=(D=L.baseUrl)!==null&&D!==void 0?D:`https://${L.host}`,[tt,dt,Et,Vt,Zt,jt,...Dt]=u.replace(B,"").split("/"),ie=Dt.join("/").replace(/^\//,"");return`${B}/${dt}/${Et}/_edit/${jt}/${ie}`}catch(B){throw new Error(`Incorrect URL: ${u}, ${B}`)}}function qe(L,u){try{var D;const B=(D=L.baseUrl)!==null&&D!==void 0?D:`https://${L.host}`,[tt,dt,Et,Vt,Zt,jt,...Dt]=u.replace(B,"").split("/"),ie=Dt.join("/").replace(/^\//,"");return`${B}/api/v1/repos/${dt}/${Et}/contents/${ie}?ref=${jt}`}catch(B){throw new Error(`Incorrect URL: ${u}, ${B}`)}}function Re(L){const u={},{username:D,password:B}=L;return B?(D?u.Authorization=`basic ${He.from(`${D}:${B}`).toString("base64")}`:u.Authorization=`token ${B}`,{headers:u}):u}class Te{get type(){return"gitea"}get title(){return this.config.host}resolveUrl(u){return(0,i.FI)(u)}resolveEditUrl(u){return re(this.config,u)}constructor(u){(0,o._)(this,"config",void 0),this.config=u}}(0,o._)(Te,"factory",({config:L})=>{var u;const B=((u=L.getOptionalConfigArray("integrations.gitea"))!==null&&u!==void 0?u:[]).map(tt=>Xe(tt));return(0,i.gz)(B.map(tt=>new Te(tt)),tt=>tt.config.host)});class je{static fromConfig(u){return new je({awsS3:f.factory({config:u}),azure:z.factory({config:u}),bitbucket:J.factory({config:u}),bitbucketCloud:Ot.factory({config:u}),bitbucketServer:W.factory({config:u}),gerrit:se.factory({config:u}),github:be.X.factory({config:u}),gitlab:ye.factory({config:u}),gitea:Te.factory({config:u})})}get awsS3(){return this.byType.awsS3}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}list(){return Object.values(this.byType).flatMap(u=>u.list())}byUrl(u){let D=Object.values(this.byType).map(B=>B.byUrl(u)).filter(Boolean);if(D.length>1){const B=D.filter(tt=>!(tt instanceof J));B.length!==0&&(D=B)}return D[0]}byHost(u){return Object.values(this.byType).map(D=>D.byHost(u)).find(Boolean)}resolveUrl(u){const D=this.byUrl(u.base);return D?D.resolveUrl(u):(0,i.FI)(u)}resolveEditUrl(u){const D=this.byUrl(u);return D?D.resolveEditUrl(u):u}constructor(u){(0,o._)(this,"byType",void 0),this.byType=u}}var he=t(95965);class $e{static fromConfig(u){return je.fromConfig(u)}}const Fe=(0,he.T)({id:"integration.scmintegrations"})},61800:function(V,T,t){"use strict";t.d(T,{X:function(){return b},B:function(){return A}});var o=t(87612),i=t(38264),d=t(76635);const S="github.com",p="https://api.github.com",f="https://raw.githubusercontent.com";function l(P){var C,x;const E=(x=P.getOptionalString("host"))!==null&&x!==void 0?x:S;let I=P.getOptionalString("apiBaseUrl"),R=P.getOptionalString("rawBaseUrl");const j=P.getOptionalString("token"),F=(C=P.getOptionalConfigArray("apps"))===null||C===void 0?void 0:C.map(Z=>({appId:Z.getNumber("appId"),clientId:Z.getString("clientId"),clientSecret:Z.getString("clientSecret"),webhookSecret:Z.getString("webhookSecret"),privateKey:Z.getString("privateKey"),allowedInstallationOwners:Z.getOptionalStringArray("allowedInstallationOwners")}));if(!(0,i.bK)(E))throw new Error(`Invalid GitHub integration config, '${E}' is not a valid host`);return I?I=(0,d.trimEnd)(I,"/"):E===S&&(I=p),R?R=(0,d.trimEnd)(R,"/"):E===S&&(R=f),{host:E,apiBaseUrl:I,rawBaseUrl:R,token:j,apps:F}}function g(P){const C=P.map(l);return C.some(x=>x.host===S)||C.push({host:S,apiBaseUrl:p,rawBaseUrl:f}),C}class b{get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(C){return A((0,i.FI)(C),"tree")}resolveEditUrl(C){return A(C,"edit")}constructor(C){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=C}}(0,o._)(b,"factory",({config:P})=>{var C;const x=g((C=P.getOptionalConfigArray("integrations.github"))!==null&&C!==void 0?C:[]);return(0,i.gz)(x.map(E=>new b(E)),E=>E.config.host)});function A(P,C){return P.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,(x,E,I,R)=>`//${E}/${I}/${R}/${C}/`)}},38264:function(V,T,t){"use strict";t.d(T,{FI:function(){return g},bK:function(){return p},gz:function(){return l},jv:function(){return f}});var o=t(82717),i=t.n(o),d=t(76635),S=t.n(d);function p(A){const P=new URL("http://example.com");return P.host=A,P.host===A}function f(A){try{return new URL(A),!0}catch{return!1}}function l(A,P){return{list(){return A},byUrl(C){try{const x=typeof C=="string"?new URL(C):C;return A.find(E=>P(E)===x.host)}catch{return}},byHost(C){return A.find(x=>P(x)===C)}}}function g(A){const{url:P,base:C,lineNumber:x}=A;try{return new URL(P),P}catch{}let E;if(P.startsWith("/")){const{filepath:I}=i()(C);E=new URL(C);const R=(0,d.trimEnd)(E.pathname.substring(0,E.pathname.length-I.length),"/");E.pathname=`${R}${P}`}else E=new URL(P,C);return E.search=new URL(C).search,x&&(E.hash=`L${x}`),E.toString()}function b(A){beforeAll(()=>A.listen({onUnhandledRequest:"error"})),afterAll(()=>A.close()),afterEach(()=>A.resetHandlers())}},81025:function(V,T,t){"use strict";var o={};t.r(o),t.d(o,{TechDocsPlugin:function(){return f.s4}});var i=t(52322),d=t(2784),S=t(17029),p=t(73557),f=t(4577),l=t(29895),g=t(2296),b=t(57058),A=t(77277),P=t(87435),C=t(74359),x=t(55015),E=t(71597);function I({children:r}){return(0,p.GV)()?(0,i.jsx)(i.Fragment,{children:r}):(0,i.jsx)(p.VA,{children:r})}const R=()=>(0,i.jsx)(P.m,{status:"404",statusMessage:"PAGE NOT FOUND"}),j=({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,i.jsx)(I,{children:(0,i.jsx)(P.m,{status:"501",statusMessage:n})})},F=({error:r,resetError:e,plugin:n})=>(0,i.jsx)(C.y,{title:`Error in ${n==null?void 0:n.getId()}`,defaultExpanded:!0,error:r,children:(0,i.jsx)(A.Z,{variant:"outlined",onClick:e,children:"Retry"})}),Z={Progress:x.E,Router:E.VK,NotFoundErrorPage:R,BootErrorPage:j,ErrorBoundaryFallback:F};var m=t(87612);const G="Invalid discovery URL pattern,";class st{static compile(e){const n=e.split(/\{\{\s*pluginId\s*\}\}/),s=n.join("pluginId");let a;try{a=new URL(s)}catch{throw new Error(`${G} URL '${s}' is invalid`)}if(a.hash)throw new Error(`${G} URL must not have a hash`);if(a.search)throw new Error(`${G} URL must not have a query`);if(s.endsWith("/"))throw new Error(`${G} URL must not end with a slash`);return new st(n)}async getBaseUrl(e){return this.parts.join(encodeURIComponent(e))}constructor(e){(0,m._)(this,"parts",void 0),this.parts=e}}var q=t(82394),H=t.n(q);let z=Symbol.observable;class k{[z](){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,s){const a=typeof e=="function"?{next:e,error:n,complete:s}:e;return this.observable.subscribe(a)}constructor(){(0,m._)(this,"isClosed",!1),(0,m._)(this,"terminatingError",void 0),(0,m._)(this,"observable",new(H())(e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(this.subscribers.add(e),()=>{this.subscribers.delete(e)}))),(0,m._)(this,"subscribers",new Set)}}let et=Symbol.observable;class rt{[et](){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,s){const a=typeof e=="function"?{next:e,error:n,complete:s}:e;return this.observable.subscribe(a)}constructor(e){(0,m._)(this,"isClosed",void 0),(0,m._)(this,"currentValue",void 0),(0,m._)(this,"terminatingError",void 0),(0,m._)(this,"observable",void 0),(0,m._)(this,"subscribers",new Set),this.isClosed=!1,this.currentValue=e,this.terminatingError=void 0,this.observable=new(H())(n=>this.isClosed?(this.terminatingError?n.error(this.terminatingError):n.complete(),()=>{}):(n.next(this.currentValue),this.subscribers.add(n),()=>{this.subscribers.delete(n)}))}}class At{post(e){this.subject.next(e)}alert$(){return this.subject}constructor(){(0,m._)(this,"subject",new k)}}class Ct{captureEvent(e){}}class ut{post(e,n){return n!=null&&n.hidden||this.alertApi.post({message:e.message,severity:"error"}),this.errorApi.post(e,n)}error$(){return this.errorApi.error$()}constructor(e,n){(0,m._)(this,"alertApi",void 0),(0,m._)(this,"errorApi",void 0),this.alertApi=e,this.errorApi=n}}class Ot{post(e,n){this.subject.next({error:e,context:n})}error$(){return this.subject}constructor(){(0,m._)(this,"subject",new k)}}class xt{static forward(e,n){window.addEventListener("unhandledrejection",s=>{e.post(s.reason,n)})}}const Pt=new Map;class ot{static create(e){var n;return new ot((n=e.namespace)!==null&&n!==void 0?n:"",e.errorApi)}static addStorageEventListener(){window.addEventListener("storage",e=>{for(const[s,a]of Pt.entries()){var n;!((n=e.key)===null||n===void 0)&&n.startsWith(s)&&a.handleStorageChange(e.key)}})}get(e){return this.snapshot(e).value}snapshot(e){let n,s="absent";try{const a=localStorage.getItem(this.getKeyName(e));a&&(n=JSON.parse(a,(c,y)=>(typeof y=="object"&&y!==null&&Object.freeze(y),y)),s="present")}catch{this.errorApi.post(new Error(`Error when parsing JSON config from storage for: ${e}`))}return{key:e,value:n,presence:s}}forBucket(e){const n=`${this.namespace}/${e}`;return Pt.has(n)||Pt.set(n,new ot(n,this.errorApi)),Pt.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 ot.hasSubscribed||(ot.addStorageEventListener(),ot.hasSubscribed=!0),this.observable.filter(({key:n})=>n===e)}handleStorageChange(e){if(!(e!=null&&e.startsWith(this.namespace)))return;const n=e==null?void 0: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 s of this.subscribers)s.next(n)}constructor(e,n){(0,m._)(this,"namespace",void 0),(0,m._)(this,"errorApi",void 0),(0,m._)(this,"subscribers",void 0),(0,m._)(this,"observable",void 0),this.namespace=e,this.errorApi=n,this.subscribers=new Set,this.observable=new(H())(s=>(this.subscribers.add(s),()=>{this.subscribers.delete(s)}))}}(0,m._)(ot,"hasSubscribed",!1);function U(r){let e=r.baseImplementation||t.g.fetch;var n;const s=[(n=r.middleware)!==null&&n!==void 0?n:[]].flat().reverse();for(const a of s)e=a.apply(e);return{fetch:e}}class _{static create(e){var n,s;const a=J(e),c=((n=e.header)===null||n===void 0?void 0:n.name)||"authorization",y=((s=e.header)===null||s===void 0?void 0:s.value)||(v=>`Bearer ${v}`);return new _(e.identityApi,a,c,y)}apply(e){return async(n,s)=>{const a=new Request(n,s),{token:c}=await this.identityApi.getCredentials();return a.headers.get(this.headerName)||typeof c!="string"||!c||!this.allowUrl(a.url)?e(n,s):(a.headers.set(this.headerName,this.headerValue(c)),e(a))}}constructor(e,n,s,a){(0,m._)(this,"identityApi",void 0),(0,m._)(this,"allowUrl",void 0),(0,m._)(this,"headerName",void 0),(0,m._)(this,"headerValue",void 0),this.identityApi=e,this.allowUrl=n,this.headerName=s,this.headerValue=a}}function J(r){return r.allowUrl?r.allowUrl:r.urlPrefixAllowlist?at(r.urlPrefixAllowlist):r.config?at([r.config.getString("backend.baseUrl")]):()=>!1}function at(r){const e=r.map(n=>n.replace(/\/$/,""));return n=>e.some(s=>n===s||n.startsWith(`${s}/`))}function ct(r,e){return!e||e==="/"?r:`${r.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}class W{apply(e){return async(n,s)=>{const a=new Request(n,s),c="plugin://";if(!a.url.startsWith(c))return e(n,s);const{hostname:y,pathname:v,search:w,hash:$,username:X,password:it}=new URL(`http://${a.url.substring(c.length)}`);let vt=await this.discoveryApi.getBaseUrl(y);if(X||it){const mt=new URL(vt),Ft=`${X}${it?`:${it}`:""}@`;vt=`${mt.protocol}//${Ft}${mt.host}${mt.pathname}`}const gt=`${ct(vt,v)}${w}${$}`;return e(gt,typeof n=="string"||K(n)?s:n)}}constructor(e){(0,m._)(this,"discoveryApi",void 0),this.discoveryApi=e}}function K(r){return typeof r=="object"&&(r==null?void 0:r.constructor)===URL}class pt{static resolvePluginProtocol(e){return new W(e.discoveryApi)}static injectIdentityAuth(e){return _.create(e)}constructor(){}}function yt(r,e){for(const n of e)if(!r.has(n))return!1;return!0}function ht(r,...e){const n=new Set(r);for(const s of e)for(const a of s)n.add(a);return n}class ft{request(e){return new Promise((n,s)=>{this.requests.push({scopes:e,resolve:n,reject:s}),this.subject.next(this.getCurrentPending())})}resolve(e,n){this.requests=this.requests.filter(s=>yt(e,s.scopes)?(s.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,s)=>ht(n,s.scopes),this.requests[0].scopes);return{scopes:e,resolve:n=>{e&&this.resolve(e,n)},reject:n=>{e&&this.reject(n)}}}constructor(){(0,m._)(this,"requests",[]),(0,m._)(this,"subject",new rt(this.getCurrentPending()))}}class lt{createAuthRequester(e){const n=new ft,s=this.handlerCount;return this.handlerCount++,n.pending().subscribe({next:a=>{const c=this.currentRequests.slice(),y=this.makeAuthRequest(a,e);y?c[s]=y:delete c[s],this.currentRequests=c,this.subject.next(c.filter(Boolean))}}),a=>n.request(a)}makeAuthRequest(e,n){const{scopes:s}=e;if(s)return{provider:n.provider,trigger:async()=>{const a=await n.onAuthRequest(s);e.resolve(a)},reject:()=>{const a=new Error("Login failed, rejected by user");a.name="RejectedError",e.reject(a)}}}authRequest$(){return this.subject}constructor(){(0,m._)(this,"subject",new rt([])),(0,m._)(this,"currentRequests",[]),(0,m._)(this,"handlerCount",0)}}function Tt(r){return new Promise((e,n)=>{const s=r.width||500,a=r.height||700,c=window.screen.width/2-s/2,y=window.screen.height/2-a/2,v=window.open(r.url,r.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${s},height=${a},top=${y},left=${c}`);let w="";if(!v||typeof v.closed=="undefined"||v.closed){const vt=new Error("Failed to open auth popup.");vt.name="PopupRejectedError",n(vt);return}const $=vt=>{if(vt.source!==v||vt.origin!==r.origin)return;const{data:gt}=vt;if(gt.type==="config_info"){w=gt.targetOrigin;return}if(gt.type!=="authorization_response")return;const mt=gt;if("error"in mt){const Ft=new Error(mt.error.message);Ft.name=mt.error.name,n(Ft)}else e(mt.response);it()},X=setInterval(()=>{if(v.closed){const vt=`Login failed, ${w&&w!==window.location.origin?`Incorrect app origin, expected ${w}`:"popup was closed"}`,gt=new Error(vt);gt.name="PopupClosedError",n(gt),it()}},100);function it(){window.removeEventListener("message",$),clearInterval(X)}window.addEventListener("message",$)})}let Rt=!1;function It(r){return[...r].join(" ")}class Gt{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)}}),{headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(a=>{throw new Error(`Auth refresh request failed, ${a}`)});if(!n.ok){const a=new Error(`Auth refresh request failed, ${n.statusText}`);throw a.status=n.status,a}const s=await n.json();if(s.error){const a=new Error(s.error.message);throw s.error.name&&(a.name=s.error.name),a}return await this.sessionTransform(s)}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){var n,s,a,c,y,v,w,$;const X=this.joinScopesFunc(e),it=await this.buildUrl("/start",{scope:X,origin:window.location.origin,flow:"popup"}),vt=!((s=this.popupOptions)===null||s===void 0||(n=s.size)===null||n===void 0)&&n.fullscreen?window.screen.width:((c=this.popupOptions)===null||c===void 0||(a=c.size)===null||a===void 0?void 0:a.width)||450,gt=!((v=this.popupOptions)===null||v===void 0||(y=v.size)===null||y===void 0)&&y.fullscreen?window.screen.height:(($=this.popupOptions)===null||$===void 0||(w=$.size)===null||w===void 0?void 0:w.height)||730,mt=await Tt({url:it,name:`${this.provider.title} Login`,origin:new URL(it).origin,width:vt,height:gt});return await this.sessionTransform(mt)}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 s=await this.discoveryApi.getBaseUrl("auth"),a=this.buildQueryString({...n,env:this.environment});return`${s}/${this.provider.id}${e}${a}`}buildQueryString(e){if(!e)return"";const n=Object.entries(e).map(([s,a])=>{if(typeof a=="string")return`${encodeURIComponent(s)}=${encodeURIComponent(a)}`;if(a)return encodeURIComponent(s)}).filter(Boolean).join("&");return n?`?${n}`:""}constructor(e){(0,m._)(this,"discoveryApi",void 0),(0,m._)(this,"environment",void 0),(0,m._)(this,"provider",void 0),(0,m._)(this,"joinScopesFunc",void 0),(0,m._)(this,"authRequester",void 0),(0,m._)(this,"sessionTransform",void 0),(0,m._)(this,"enableExperimentalRedirectFlow",void 0),(0,m._)(this,"popupOptions",void 0);const{configApi:n,discoveryApi:s,environment:a,provider:c,joinScopes:y=It,oauthRequestApi:v,sessionTransform:w=it=>it,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);var X;this.enableExperimentalRedirectFlow=n&&(X=n.getOptionalBoolean("enableExperimentalRedirectFlow"))!==null&&X!==void 0?X:!1,this.authRequester=v.createAuthRequester({provider:c,onAuthRequest:async it=>this.enableExperimentalRedirectFlow?this.executeRedirect(it):this.showPopup(it)}),this.discoveryApi=s,this.environment=a,this.provider=c,this.joinScopesFunc=y,this.sessionTransform=w,this.popupOptions=$}}function Qt(r,e){for(const n of e)if(!r.has(n))return!1;return!0}class pe{sessionExistsAndHasScope(e,n){if(!e)return!1;if(!n||this.options.sessionScopes===void 0)return!0;const s=this.options.sessionScopes(e);return Qt(s,n)}getExtendedScope(e,n){const s=new Set(this.options.defaultScopes);if(e&&this.options.sessionScopes!==void 0){const a=this.options.sessionScopes(e);for(const c of a)s.add(c)}if(n)for(const a of n)s.add(a);return s}constructor(e){(0,m._)(this,"options",void 0),this.options=e}}var kt=t(95965),Wt;(function(r){r.SignedIn="SignedIn",r.SignedOut="SignedOut"})(Wt||(Wt={}));const Yt=(0,kt.T)({id:"core.auth.google"}),se=(0,kt.T)({id:"core.auth.github"}),be=(0,kt.T)({id:"core.auth.okta"}),Pe=(0,kt.T)({id:"core.auth.gitlab"}),Ue=(0,kt.T)({id:"core.auth.microsoft"}),Ie=(0,kt.T)({id:"core.auth.onelogin"}),Qe=(0,kt.T)({id:"core.auth.bitbucket"}),ze=(0,kt.T)({id:"core.auth.bitbucket-server"}),ye=(0,kt.T)({id:"core.auth.atlassian"});class Je{setIsSignedIn(e){this.signedIn!==e&&(this.signedIn=e,this.subject.next(this.signedIn?Wt.SignedIn:Wt.SignedOut))}sessionState$(){return this.subject}constructor(){(0,m._)(this,"subject",new rt(Wt.SignedOut)),(0,m._)(this,"signedIn",!1)}}class Xe{async getSession(e){if(this.helper.sessionExistsAndHasScope(this.currentSession,e.scopes)){if(!this.sessionShouldRefreshFunc(this.currentSession))return this.currentSession;try{const s=await this.collapsedSessionRefresh(e.scopes),a=this.sessionScopesFunc(this.currentSession),c=this.sessionScopesFunc(s);return Qt(c,a)&&(this.currentSession=s),s}catch(s){if(e.optional)return;throw s}}if(!this.currentSession&&!e.instantPopup)try{const n=await this.collapsedSessionRefresh(e.scopes);return this.currentSession=n,this.getSession(e)}catch{}if(!e.optional)return this.currentSession=await this.connector.createSession({...e,scopes:this.helper.getExtendedScope(this.currentSession,e.scopes)}),this.stateTracker.setIsSignedIn(!0),this.currentSession}async removeSession(){this.currentSession=void 0,await this.connector.removeSession(),this.stateTracker.setIsSignedIn(!1)}sessionState$(){return this.stateTracker.sessionState$()}async collapsedSessionRefresh(e){if(this.refreshPromise)return this.refreshPromise;this.refreshPromise=this.connector.refreshSession(e);try{const n=await this.refreshPromise;return this.stateTracker.setIsSignedIn(!0),n}finally{delete this.refreshPromise}}constructor(e){(0,m._)(this,"connector",void 0),(0,m._)(this,"helper",void 0),(0,m._)(this,"sessionScopesFunc",void 0),(0,m._)(this,"sessionShouldRefreshFunc",void 0),(0,m._)(this,"stateTracker",new Je),(0,m._)(this,"refreshPromise",void 0),(0,m._)(this,"currentSession",void 0);const{connector:n,defaultScopes:s=new Set,sessionScopes:a,sessionShouldRefresh:c}=e;this.connector=n,this.sessionScopesFunc=a,this.sessionShouldRefreshFunc=c,this.helper=new pe({sessionScopes:a,defaultScopes:s})}}const He={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class re{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=He,oauthRequestApi:y,defaultScopes:v=[],scopeTransform:w=vt=>vt,popupOptions:$}=e,X=new Gt({configApi:n,discoveryApi:s,environment:a,provider:c,oauthRequestApi:y,sessionTransform({backstageIdentity:vt,...gt}){const mt={...gt,providerInfo:{idToken:gt.providerInfo.idToken,accessToken:gt.providerInfo.accessToken,scopes:re.normalizeScopes(w,gt.providerInfo.scope),expiresAt:gt.providerInfo.expiresInSeconds?new Date(Date.now()+gt.providerInfo.expiresInSeconds*1e3):void 0}};if(vt){var Ft;const Ht=(Ft=vt.expiresInSeconds)!==null&&Ft!==void 0?Ft:gt.providerInfo.expiresInSeconds;mt.backstageIdentity={token:vt.token,identity:vt.identity,expiresAt:Ht?new Date(Date.now()+Ht*1e3):void 0}}return mt},popupOptions:$}),it=new Xe({connector:X,defaultScopes:new Set(v),sessionScopes:vt=>vt.providerInfo.scopes,sessionShouldRefresh:vt=>{var gt,mt;let Ft=1/0;return!((gt=vt.providerInfo)===null||gt===void 0)&&gt.expiresAt&&(Ft=Math.min(Ft,(vt.providerInfo.expiresAt.getTime()-Date.now())/1e3)),!((mt=vt.backstageIdentity)===null||mt===void 0)&&mt.expiresAt&&(Ft=Math.min(Ft,(vt.backstageIdentity.expiresAt.getTime()-Date.now())/1e3)),Ft<60*5}});return new re({sessionManager:it,scopeTransform:w})}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(e,n){const s=re.normalizeScopes(this.scopeTransform,e),a=await this.sessionManager.getSession({...n,scopes:s});var c;return(c=a==null?void 0:a.providerInfo.accessToken)!==null&&c!==void 0?c:""}async getIdToken(e={}){const n=await this.sessionManager.getSession({...e,scopes:new Set(["openid"])});var s;return(s=n==null?void 0:n.providerInfo.idToken)!==null&&s!==void 0?s:""}async getBackstageIdentity(e={}){const n=await this.sessionManager.getSession(e);return n==null?void 0:n.backstageIdentity}async getProfile(e={}){const n=await this.sessionManager.getSession(e);return n==null?void 0:n.profile}static normalizeScopes(e,n){if(!n)return new Set;const s=Array.isArray(n)?n:n.split(/[\s|,]/).filter(Boolean);return new Set(e(s))}constructor(e){(0,m._)(this,"sessionManager",void 0),(0,m._)(this,"scopeTransform",void 0),this.sessionManager=e.sessionManager,this.scopeTransform=e.scopeTransform}}const qe={id:"google",title:"Google",icon:()=>null},Re="https://www.googleapis.com/auth/";class Te{static create(e){const{configApi:n,discoveryApi:s,oauthRequestApi:a,environment:c="development",provider:y=qe,defaultScopes:v=["openid",`${Re}userinfo.email`,`${Re}userinfo.profile`]}=e;return re.create({configApi:n,discoveryApi:s,oauthRequestApi:a,provider:y,environment:c,defaultScopes:v,scopeTransform(w){return w.map($=>$==="openid"?$:$==="profile"||$==="email"?`${Re}userinfo.${$}`:$.startsWith(Re)?$:`${Re}${$}`)}})}}const je={id:"microsoft",title:"Microsoft",icon:()=>null};class he{static create(e){return new he(e)}microsoftGraph(){return this.oauth2[he.MicrosoftGraphID]}static resourceForScopes(e){const n=[...new Set(e.split(" ").map(he.resourceForScope).filter(c=>c!=="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.`));var s;const a=(s=n[0])!==null&&s!==void 0?s:he.MicrosoftGraphID;return Promise.resolve(a)}static resourceForScope(e){var n;const s=(n=e.match(RegExp("^(?<resourceURI>.*)\\/(?<scp>[^\\/]*)$")))===null||n===void 0?void 0:n.groups;if(s){const{resourceURI:a}=s;return a.replace(/^api:\/\//,"")}switch(e){case"email":case"openid":case"offline_access":case"profile":return"openid";default:return he.MicrosoftGraphID}}async getAccessToken(e,n){const s=e===void 0?he.MicrosoftGraphID:await he.resourceForScopes(Array.isArray(e)?e.join(" "):e);return s in this.oauth2||(this.oauth2[s]=re.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform})),this.oauth2[s].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$()}constructor(e){(0,m._)(this,"oauth2",void 0),(0,m._)(this,"configApi",void 0),(0,m._)(this,"environment",void 0),(0,m._)(this,"provider",void 0),(0,m._)(this,"oauthRequestApi",void 0),(0,m._)(this,"discoveryApi",void 0),(0,m._)(this,"scopeTransform",void 0);const{configApi:n,environment:s="development",provider:a=je,oauthRequestApi:c,discoveryApi:y,defaultScopes:v=["openid","offline_access","profile","email","User.Read"],scopeTransform:w=$=>$.concat("offline_access")}=e;this.configApi=n,this.environment=s,this.provider=a,this.oauthRequestApi=c,this.discoveryApi=y,this.scopeTransform=w,this.oauth2={[he.MicrosoftGraphID]:re.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform,defaultScopes:v})}}}(0,m._)(he,"MicrosoftGraphID","00000003-0000-0000-c000-000000000000");const $e={id:"github",title:"GitHub",icon:()=>null};class Fe{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=$e,oauthRequestApi:y,defaultScopes:v=["read:user"]}=e;return re.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v})}}const L={id:"okta",title:"Okta",icon:()=>null},u=new Set(["openid","profile","email","phone","address","groups","offline_access"]),D="okta.";class B{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=L,oauthRequestApi:y,defaultScopes:v=["openid","email","profile","offline_access"]}=e;return re.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v,scopeTransform(w){return w.map($=>u.has($)||$.startsWith(D)?$:`${D}${$}`)}})}}const tt={id:"gitlab",title:"GitLab",icon:()=>null};class dt{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=tt,oauthRequestApi:y,defaultScopes:v=["read_user"]}=e;return re.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v})}}const Et={id:"onelogin",title:"onelogin",icon:()=>null},Vt=new Set(["openid","profile","email","phone","address","groups","offline_access"]),Zt="onelogin.";class jt{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=Et,oauthRequestApi:y}=e;return re.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:["openid","email","profile","offline_access"],scopeTransform(v){return v.map(w=>Vt.has(w)||w.startsWith(Zt)?w:`${Zt}${w}`)}})}}const Dt={id:"bitbucket",title:"Bitbucket",icon:()=>null};class ie{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=Dt,oauthRequestApi:y,defaultScopes:v=["team"]}=e;return re.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v})}}const Ce={id:"bitbucketServer",title:"Bitbucket Server",icon:()=>null};class De{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=Ce,oauthRequestApi:y,defaultScopes:v=["PROJECT_ADMIN"]}=e;return re.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a,defaultScopes:v})}}const We={id:"atlassian",title:"Atlassian",icon:()=>null};class no{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=We,oauthRequestApi:y}=e;return re.create({configApi:n,discoveryApi:s,oauthRequestApi:y,provider:c,environment:a})}}var qt=t(42380),fe=t(96727),ae=t(6542),Tn=t(78847),oo=t(86386),wn=t(58513);const In=(0,kt.T)({id:"core.storage"});var Dn=t(85094),tn=t(77186);const ee=(0,kt.T)({id:"core.oauthrequest"}),ro=(0,kt.T)({id:"plugin.permission.api"});var Ge=t(41385),so=t(96279),Mn=t.n(so),io=t(9571),_t=t(30195),Be;(function(r){r.DENY="DENY",r.ALLOW="ALLOW",r.CONDITIONAL="CONDITIONAL"})(Be||(Be={}));const on=_t.z.lazy(()=>_t.z.object({rule:_t.z.string(),resourceType:_t.z.string(),params:_t.z.record(_t.z.any()).optional()}).or(_t.z.object({anyOf:_t.z.array(on).nonempty()})).or(_t.z.object({allOf:_t.z.array(on).nonempty()})).or(_t.z.object({not:on}))),ao=_t.z.object({result:_t.z.literal(Be.ALLOW).or(_t.z.literal(Be.DENY))}),lo=_t.z.union([_t.z.object({result:_t.z.literal(Be.ALLOW).or(_t.z.literal(Be.DENY))}),_t.z.object({result:_t.z.literal(Be.CONDITIONAL),pluginId:_t.z.string(),resourceType:_t.z.string(),conditions:on})]),co=(r,e)=>_t.z.object({items:_t.z.array(_t.z.intersection(_t.z.object({id:_t.z.string()}),r)).refine(n=>n.length===e.size&&n.every(({id:s})=>e.has(s)),{message:"Items in response do not match request"})});class uo{async authorize(e,n){return this.makeRequest(e,ao,n)}async authorizeConditional(e,n){return this.makeRequest(e,lo,n)}async makeRequest(e,n,s){if(!this.enabled)return e.map(X=>({result:Be.ALLOW}));const a={items:e.map(X=>({id:io.Z(),...X}))},c=await this.discovery.getBaseUrl("permission"),y=await Mn()(`${c}/authorize`,{method:"POST",body:JSON.stringify(a),headers:{...this.getAuthorizationHeader(s==null?void 0:s.token),"content-type":"application/json"}});if(!y.ok)throw await Ge.V.fromResponse(y);const v=await y.json(),$=co(n,new Set(a.items.map(({id:X})=>X))).parse(v).items.reduce((X,it)=>(X[it.id]=it,X),{});return a.items.map(X=>$[X.id])}getAuthorizationHeader(e){return e?{Authorization:`Bearer ${e}`}:{}}constructor(e){(0,m._)(this,"enabled",void 0),(0,m._)(this,"discovery",void 0),this.discovery=e.discovery;var n;this.enabled=(n=e.config.getOptionalBoolean("permission.enabled"))!==null&&n!==void 0?n:!1}}class rn{static create(e){const{config:n,discovery:s,identity:a}=e,c=new uo({discovery:s,config:n});return new rn(c,a)}async authorize(e){return(await this.permissionClient.authorize([e],await this.identityApi.getCredentials()))[0]}constructor(e,n){(0,m._)(this,"permissionClient",void 0),(0,m._)(this,"identityApi",void 0),this.permissionClient=e,this.identityApi=n}}const ho=[(0,qt.n)({api:fe.N,deps:{configApi:ae.D},factory:({configApi:r})=>st.compile(`${r.getString("backend.baseUrl")}/api/{{ pluginId }}`)}),(0,qt.n)({api:Tn.$,deps:{},factory:()=>new At}),(0,qt.n)({api:oo.v,deps:{},factory:()=>new Ct}),(0,qt.n)({api:wn.V,deps:{alertApi:Tn.$},factory:({alertApi:r})=>{const e=new ut(r,new Ot);return xt.forward(e,{hidden:!1}),e}}),(0,qt.n)({api:In,deps:{errorApi:wn.V},factory:({errorApi:r})=>ot.create({errorApi:r})}),(0,qt.n)({api:Dn.g,deps:{configApi:ae.D,identityApi:tn.$,discoveryApi:fe.N},factory:({configApi:r,identityApi:e,discoveryApi:n})=>U({middleware:[pt.resolvePluginProtocol({discoveryApi:n}),pt.injectIdentityAuth({identityApi:e,config:r})]})}),(0,qt.n)({api:ee,deps:{},factory:()=>new lt}),(0,qt.n)({api:Yt,deps:{discoveryApi:fe.N,oauthRequestApi:ee,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Te.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,qt.n)({api:Ue,deps:{discoveryApi:fe.N,oauthRequestApi:ee,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>he.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,qt.n)({api:se,deps:{discoveryApi:fe.N,oauthRequestApi:ee,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Fe.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["read:user"],environment:n.getOptionalString("auth.environment")})}),(0,qt.n)({api:be,deps:{discoveryApi:fe.N,oauthRequestApi:ee,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>B.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,qt.n)({api:Pe,deps:{discoveryApi:fe.N,oauthRequestApi:ee,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>dt.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,qt.n)({api:Ie,deps:{discoveryApi:fe.N,oauthRequestApi:ee,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>jt.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,qt.n)({api:Qe,deps:{discoveryApi:fe.N,oauthRequestApi:ee,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>ie.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["team"],environment:n.getOptionalString("auth.environment")})}),(0,qt.n)({api:ze,deps:{discoveryApi:fe.N,oauthRequestApi:ee,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>De.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["REPO_READ"]})}),(0,qt.n)({api:ye,deps:{discoveryApi:fe.N,oauthRequestApi:ee,configApi:ae.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>no.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,qt.n)({api:ro,deps:{discovery:fe.N,identity:tn.$,config:ae.D},factory:({config:r,discovery:e,identity:n})=>rn.create({config:r,discovery:e,identity:n})})];var fo=t(43642),go=t(80079),po=t(90941),vo=t(32915),Ln=t(40562),pn=t(21853),mo=t(60744),yo=t(66569),Eo=t(30254),xo=t(13384),Co=t(15933),Ao=t(58838),So=t(86737),Oo=t(4989),bo=t(44407),Po=t(18628),jn=t(84219),Bn=t(98685),Ro=t(39781),To=t(39412),wo=t(78258);const Io={brokenImage:go.Z,catalog:Po.Z,scaffolder:vo.Z,techdocs:Ln.Z,search:pn.Z,chat:mo.Z,dashboard:yo.Z,docs:Eo.Z,email:xo.Z,github:Ao.Z,group:jn.Z,help:So.Z,"kind:api":Co.Z,"kind:component":bo.Z,"kind:domain":fo.Z,"kind:group":jn.Z,"kind:location":Oo.Z,"kind:system":po.Z,"kind:user":Bn.Z,"kind:resource":To.Z,"kind:template":wo.Z,user:Bn.Z,warning:Ro.Z};var Do=t(87561),Mo=t(12536),Lo=t(19219),Un=t(41547),jo=t(3493),Bo=t(81887);const Uo=(0,Mo.Z)({productionPrefix:"jss4-"});function $n(r){const{children:e,theme:n,noCssBaseline:s=!1}=r,a=n.getTheme("v4"),c=n.getTheme("v5");let y;s||(y=(0,i.jsx)(Do.ZP,{}));let v=(0,i.jsxs)(i.Fragment,{children:[y,e]});return a&&(v=(0,i.jsx)(Lo.ZP,{generateClassName:Uo,children:(0,i.jsx)(Un.Z,{theme:a,children:v})})),c&&(v=(0,i.jsx)(jo.Z,{injectFirst:!0,children:(0,i.jsx)(Bo.Z,{theme:c,children:v})})),v}const sn={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 Mt=t(88412),ge=t(52475),Ee=t(80956),$o=t(73689),Fo=t(93606);const Me={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")`},h={darkGrey:["#171717","#383838"],marineBlue:["#006D8F","#0049A1"],veryBlue:["#0027AF","#270094"],rubyRed:["#98002B","#8D1134"],toastyOrange:["#BE2200","#A41D00"],purpleSky:["#8912CA","#3E00EA"],eveningSea:["#00FFF2","#035355"],teal:["#005B4B"],pinkSea:["#C8077A","#C2297D"],greens:["#4BB8A5","#187656"]};function O(r){const{colors:e,shape:n,options:s}=r,c=`linear-gradient(90deg, ${(e.length===1?[e[0],e[0]]:e).join(", ")})`,y=`${n}, ${c}`;var v;const w=(v=s==null?void 0:s.fontColor)!==null&&v!==void 0?v:"#FFFFFF";return{colors:e,shape:n,backgroundImage:y,fontColor:w}}const M={home:O({colors:h.teal,shape:Me.wave}),documentation:O({colors:h.pinkSea,shape:Me.wave2}),tool:O({colors:h.purpleSky,shape:Me.round}),service:O({colors:h.marineBlue,shape:Me.wave}),website:O({colors:h.veryBlue,shape:Me.wave}),library:O({colors:h.rubyRed,shape:Me.wave}),other:O({colors:h.darkGrey,shape:Me.wave}),app:O({colors:h.toastyOrange,shape:Me.wave}),apis:O({colors:h.teal,shape:Me.wave2}),card:O({colors:h.greens,shape:Me.wave})},N=16,Y='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif',Q="home";function nt(r){const{palette:e,htmlFontSize:n=N,fontFamily:s=Y,defaultPageTheme:a=Q,pageTheme:c=M,typography:y}=r;if(!c[a])throw new Error(`${a} is not defined in pageTheme.`);const v={htmlFontSize:n,fontFamily:s,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}};return{palette:e,typography:y!=null?y:v,page:c[a],getPageTheme:({themeId:w})=>{var $;return($=c[w])!==null&&$!==void 0?$:c[a]}}}var St=t(47591);const wt={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},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,St._j)(r.palette.link,.3),background:(0,St.$n)(r.palette.link,.95)},[r.breakpoints.up("md")]:{minWidth:120,fontSize:r.typography.pxToRem(14),fontWeight:500}}),textColorPrimary:({theme:r})=>({color:r.palette.link})}},MuiTableSortLabel:{styleOverrides:{root:{color:"inherit","&:hover":{color:"inherit"},"&:focus":{color:"inherit"},"&.Mui-active":{fontWeight:"bold",color:"inherit"}}}},MuiListItemText:{styleOverrides:{dense:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}},MuiButton:{styleOverrides:{text:{padding:void 0}}},MuiChip:{styleOverrides:{root:({theme:r})=>({marginRight:r.spacing(1),marginBottom:r.spacing(1)}),label:({theme:r})=>({lineHeight:r.spacing(2.5),fontWeight:r.typography.fontWeightMedium,fontSize:r.spacing(1.75)}),labelSmall:({theme:r})=>({fontSize:r.spacing(1.5)}),deleteIcon:({theme:r})=>({width:r.spacing(3),height:r.spacing(3),margin:r.spacing(0,.75,0,-.75)}),deleteIconSmall:({theme:r})=>({width:r.spacing(2),height:r.spacing(2),margin:r.spacing(0,.5,0,-.5)})}},MuiCard:{styleOverrides:{root:{display:"flex",flexDirection:"column"}}},MuiCardHeader:{styleOverrides:{root:{paddingBottom:0}}},MuiCardContent:{styleOverrides:{root:{flexGrow:1,"&:last-child":{paddingBottom:void 0}}}},MuiCardActions:{styleOverrides:{root:{justifyContent:"flex-end"}}},MuiLink:{defaultProps:{underline:"hover"}}},Lt=r=>(...e)=>{const n=e.length===0?[1]:e,s=(a,c)=>typeof a=="string"?a:c*a;return n.map(a=>{const c=s(a,r);return typeof c=="number"?`${c}px`:c}).join(" ")};function Bt(r,e){if(!e||typeof e=="string")return;const n=typeof e=="function"?e(r):e;if(n)return{"@global":n}}function Kt(r,e){if(!(!e||typeof e=="string")){if(typeof e=="object"){const n={...r},s=r.spacing(1);return typeof s=="number"&&(n.spacing=Lt(s)),Object.fromEntries(Object.entries(e).map(([a,c])=>typeof c=="function"?[a,c({theme:n})]:[a,c]))}return e}}const bt=/^&.Mui-([\w-]+)$/;function de(r){let e=r;if(!r||typeof r!="object")return e;for(const n of Object.keys(r)){const s=r[n];if(!(!s||typeof s!="object"))for(const a of Object.keys(s)){const c=a,y=c.match(bt);if(y){const[,v]=y,{[c]:w,...$}=s;w&&(e={...e,[n]:$,[v]:w})}}}return e}function le(r,e={}){const n={},s={};for(const a of Object.keys(e)){const c=e[a];c&&("styleOverrides"in c&&(a==="MuiCssBaseline"?n[a]=Bt(r,c.styleOverrides):n[a]=de(Kt(r,c.styleOverrides))),"defaultProps"in c&&(s[a]=c.defaultProps))}return{overrides:n,props:s}}var Ut=new WeakMap;class Nt{getTheme(e){return(0,Mt._)(this,Ut).get(e)}constructor(e,n){(0,ge._)(this,Ut,{writable:!0,value:new Map}),(0,Ee._)(this,Ut,new Map),e&&(0,Mt._)(this,Ut).set("v4",e),n&&(0,Mt._)(this,Ut).set("v5",n)}}function ne(r){const e=nt(r),n={...wt,...r.components},s=(0,Fo.Z)({...e,components:n}),a=le(s,n),c={...(0,$o.Z)(e),...a};return new Nt(c,s)}function te(r){const e=adaptV4Theme(r),n=createTheme(r);return new Nt(n,e)}const $t={light:ne({palette:sn.light}),dark:ne({palette:sn.dark})};var zt=t(98192),Jt=t(15222);const ve=[{id:"light",title:"Light Theme",variant:"light",icon:(0,i.jsx)(Jt.Z,{}),Provider:({children:r})=>(0,i.jsx)($n,{theme:$t.light,children:r})},{id:"dark",title:"Dark Theme",variant:"dark",icon:(0,i.jsx)(zt.Z,{}),Provider:({children:r})=>(0,i.jsx)($n,{theme:$t.dark,children:r})}];var Se=t(64279),ue=t(13980),Le=t.n(ue);class Ve{get(e){for(const n of this.holders){const s=n.get(e);if(s)return s}}constructor(...e){(0,m._)(this,"holders",void 0),this.holders=e}}var oe=t(29651),_e=t(68993);const Fn=(0,oe.CT)("api-context"),Wo=r=>{var e;const{apis:n,children:s}=r,a=(e=(0,d.useContext)(Fn))===null||e===void 0?void 0:e.atVersion(1),c=a?new Ve(n,a):n;return(0,i.jsx)(Fn.Provider,{value:(0,_e.E)({1:c}),children:s})};Wo.propTypes={apis:Le().shape({get:Le().func.isRequired}).isRequired,children:Le().node};var Qr=t(9850),Jr=t.n(Qr),Xr=t(12782),qr=t.n(Xr);const ts=/^[a-z][a-z0-9]*(?:[-_][a-z][a-z0-9]*)*$/i;function vn(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function No(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 we={type(r,e,n,s){return`Invalid type in config for key '${r}' in '${e}', got ${n}, wanted ${s}`},missing(r){return`Missing required config value at '${r}'`},convert(r,e,n){return`Unable to convert config value for key '${r}' in '${e}' to a ${n}`}};class an{static fromConfigs(e){return e.length===0?new an(void 0):e.reduce((n,{data:s,context:a,filteredKeys:c,deprecatedKeys:y})=>{const v=new an(s,a,n);if(v.filteredKeys=c,y)for(const{key:w,description:$}of y)console.warn(`The configuration key '${w}' of ${a} is deprecated and may be removed soon. ${$||""}`);return v},void 0)}has(e){var n;if(this.readValue(e)!==void 0)return!0;var a;return(a=(n=this.fallback)===null||n===void 0?void 0:n.has(e))!==null&&a!==void 0?a:!1}keys(){var e;const n=this.data?Object.keys(this.data):[];var s;const a=(s=(e=this.fallback)===null||e===void 0?void 0:e.keys())!==null&&s!==void 0?s:[];return[...new Set([...n,...a])]}get(e){const n=this.getOptional(e);if(n===void 0)throw new Error(we.missing(this.fullKey(e!=null?e:"")));return n}getOptional(e){var n;const s=Jr()(this.readValue(e)),a=(n=this.fallback)===null||n===void 0?void 0:n.getOptional(e);if(s===void 0){if(!1)var c;return a}else if(a===void 0)return s;return qr()({},{value:a},{value:s},(y,v)=>!vn(v)||!vn(y)?v:void 0).value}getConfig(e){const n=this.getOptionalConfig(e);if(n===void 0)throw new Error(we.missing(this.fullKey(e)));return n}getOptionalConfig(e){var n;const s=this.readValue(e),a=(n=this.fallback)===null||n===void 0?void 0:n.getOptionalConfig(e);if(vn(s))return this.copy(s,e,a);if(s!==void 0)throw new TypeError(we.type(this.fullKey(e),this.context,No(s),"object"));return a}getConfigArray(e){const n=this.getOptionalConfigArray(e);if(n===void 0)throw new Error(we.missing(this.fullKey(e)));return n}getOptionalConfigArray(e){const n=this.readConfigValue(e,a=>{if(!Array.isArray(a))return{expected:"object-array"};for(const[c,y]of a.entries())if(!vn(y))return{expected:"object-array",value:y,key:`${e}[${c}]`};return!0});if(!n){if(!1)var s;return}return n.map((a,c)=>this.copy(a,`${e}[${c}]`))}getNumber(e){const n=this.getOptionalNumber(e);if(n===void 0)throw new Error(we.missing(this.fullKey(e)));return n}getOptionalNumber(e){const n=this.readConfigValue(e,a=>typeof a=="number"||typeof a=="string"||{expected:"number"});if(typeof n=="number"||n===void 0)return n;const s=Number(n);if(!Number.isFinite(s))throw new Error(we.convert(this.fullKey(e),this.context,"number"));return s}getBoolean(e){const n=this.getOptionalBoolean(e);if(n===void 0)throw new Error(we.missing(this.fullKey(e)));return n}getOptionalBoolean(e){const n=this.readConfigValue(e,a=>typeof a=="boolean"||typeof a=="number"||typeof a=="string"||{expected:"boolean"});if(typeof n=="boolean"||n===void 0)return n;const s=String(n).trim();if(/^(?:y|yes|true|1|on)$/i.test(s))return!0;if(/^(?:n|no|false|0|off)$/i.test(s))return!1;throw new Error(we.convert(this.fullKey(e),this.context,"boolean"))}getString(e){const n=this.getOptionalString(e);if(n===void 0)throw new Error(we.missing(this.fullKey(e)));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(we.missing(this.fullKey(e)));return n}getOptionalStringArray(e){return this.readConfigValue(e,n=>{if(!Array.isArray(n))return{expected:"string-array"};for(const[s,a]of n.entries())if(typeof a!="string"||a==="")return{expected:"string-array",value:a,key:`${e}[${s}]`};return!0})}fullKey(e){return`${this.prefix}${this.prefix?".":""}${e}`}copy(e,n,s){const a=new an(e,this.context,s,this.fullKey(n));return a.filteredKeys=this.filteredKeys,a}readConfigValue(e,n){const s=this.readValue(e);if(s===void 0){var a;if(!1)var c;return(a=this.fallback)===null||a===void 0?void 0:a.readConfigValue(e,n)}const y=n(s);if(y!==!0){const{key:v=e,value:w=s,expected:$}=y;throw new TypeError(we.type(this.fullKey(v),this.context,No(w),$))}return s}readValue(e){const n=e?e.split("."):[];for(const a of n)if(!ts.test(a))throw new TypeError(`Invalid config key '${e}'`);if(this.data===void 0)return;let s=this.data;for(const[a,c]of n.entries())if(vn(s))s=s[c];else if(s!==void 0){const y=this.fullKey(n.slice(0,a).join("."));throw new TypeError(we.type(y,this.context,No(s),"object"))}return s}constructor(e,n="mock-config",s,a=""){(0,m._)(this,"data",void 0),(0,m._)(this,"context",void 0),(0,m._)(this,"fallback",void 0),(0,m._)(this,"prefix",void 0),(0,m._)(this,"filteredKeys",void 0),(0,m._)(this,"notifiedFilteredKeys",void 0),this.data=e,this.context=n,this.fallback=s,this.prefix=a,this.notifiedFilteredKeys=new Set}}const mn="theme";class Wn{static createWithStorage(e){const n=new Wn(e);if(!window.localStorage)return n;var s;const a=(s=window.localStorage.getItem(mn))!==null&&s!==void 0?s:void 0;return n.setActiveThemeId(a),n.activeThemeId$().subscribe(c=>{c?window.localStorage.setItem(mn,c):window.localStorage.removeItem(mn)}),window.addEventListener("storage",c=>{if(c.key===mn){var y;const v=(y=localStorage.getItem(mn))!==null&&y!==void 0?y:void 0;n.setActiveThemeId(v)}}),n}getInstalledThemes(){return this.themes.slice()}activeThemeId$(){return this.subject}getActiveThemeId(){return this.activeThemeId}setActiveThemeId(e){this.activeThemeId=e,this.subject.next(e)}constructor(e){(0,m._)(this,"themes",void 0),(0,m._)(this,"activeThemeId",void 0),(0,m._)(this,"subject",void 0),this.themes=e,this.subject=new rt(void 0)}}var ln=t(82723);function nr(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 es{registerFlag(e){nr(e.name),this.registeredFeatureFlags.push(e)}getRegisteredFlags(){return this.registeredFeatureFlags.slice()}isActive(e){return this.flags||(this.flags=this.load()),this.flags.get(e)===ln.C.Active}save(e){this.flags||(this.flags=this.load()),e.merge||this.flags.clear();for(const[s,a]of Object.entries(e.states))this.flags.set(s,a);const n=Array.from(this.flags.entries()).filter(([,s])=>s===ln.C.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 s=Object.entries(n).filter(([a,c])=>(nr(a),c===ln.C.Active));return new Map(s)}catch{return new Map}}constructor(){(0,m._)(this,"registeredFeatureFlags",[]),(0,m._)(this,"flags",void 0)}}const Nn=(0,kt.T)({id:"core.apptheme"}),or=(0,kt.T)({id:"core.applanguage"});var ns=t(96253);class Zo{static validateFactories(e,n){for(const s of n){const a=[s],c=new Set;for(;a.length;){const y=a.shift(),v=e.get(y);if(v)for(const w of Object.values(v.deps)){if(w.id===s.id)throw new Error(`Circular dependency of api factory for ${s}`);c.has(w)||(c.add(w),a.push(w))}}}}get(e){return this.load(e)}load(e,n=[]){const s=this.apis.get(e.id);if(s)return s;const a=this.factories.get(e);if(!a)return;if(n.includes(a.api))throw new Error(`Circular dependency of api factory for ${a.api}`);const c=this.loadDeps(e,a.deps,[...n,a.api]),y=a.factory(c);return this.apis.set(e.id,y),y}loadDeps(e,n,s){const a={};for(const c in n)if(n.hasOwnProperty(c)){const y=n[c],v=this.load(y,s);if(!v)throw new Error(`No API factory available for dependency ${y} of dependent ${e}`);a[c]=v}return a}constructor(e){(0,m._)(this,"factories",void 0),(0,m._)(this,"apis",void 0),this.factories=e,this.apis=new Map}}var Ko;(function(r){r[r.default=10]="default",r[r.app=50]="app",r[r.static=100]="static"})(Ko||(Ko={}));class os{register(e,n){const s=Ko[e],a=this.factories.get(n.api.id);return a&&a.priority>=s?!1:(this.factories.set(n.api.id,{priority:s,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}constructor(){(0,m._)(this,"factories",new Map)}}function rs(r){const e={};for(const s in r.collectors)r.collectors.hasOwnProperty(s)&&(e[s]=r.collectors[s]());const n=[{node:d.Children.toArray(r.root),parent:void 0,contexts:{}}];for(;n.length!==0;){const{node:s,parent:a,contexts:c}=n.shift();d.Children.forEach(s,y=>{if(!(0,d.isValidElement)(y))return;const v={};for(const w in e)if(e.hasOwnProperty(w)){const $=e[w];v[w]=$.visit($.accumulator,y,a,c[w])}for(const w of r.discoverers){const $=w(y);$&&n.push({node:$,parent:y,contexts:v})}})}return Object.fromEntries(Object.entries(e).map(([s,a])=>[s,a.accumulator]))}function Zn(r,e){return()=>({accumulator:r(),visit:e})}function ss(r){var e;return(e=r.props)===null||e===void 0?void 0:e.children}function is(r){var e,n;if(!((e=r.props)===null||e===void 0)&&e.path&&(!((n=r.props)===null||n===void 0)&&n.element)){var s;return(s=r.props)===null||s===void 0?void 0:s.element}}var xe=t(62584);const as=Zn(()=>new Set,(r,e)=>{const n=(0,xe.I)(e,"core.plugin");n&&r.add(n)});var yn=t(44394);const rr=r=>{const{children:e}=r,n=(0,yn.h_)(ln.W),s="with"in r?n.isActive(r.with):!n.isActive(r.without);return(0,i.jsx)(i.Fragment,{children:s?e:null})};(0,xe.R)(rr,"core.featureFlagged",!0);const Kn={caseSensitive:!1,path:"*",element:"match-all",routeRefs:new Set,plugins:new Set};function kn(r){const e=r;if(e!=null&&e.type){var n,s;return(s=(n=e.type.displayName)!==null&&n!==void 0?n:e.type.name)!==null&&s!==void 0?s:String(e.type)}return String(e)}const sr=r=>{const e=new Set;return r&&e.add(r),e};function ir(r,e=new Array){return d.Children.forEach(r,n=>{if(!(0,d.isValidElement)(n))return;const s=(0,xe.I)(n,"core.mountPoint");if(s){const a=(0,xe.I)(n,"core.plugin");e.push({routeRef:s,plugin:a})}ir(n.props.children,e)}),e}const ls=Zn(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,s)=>{var a,c;if(s!=null&&s.isElementAncestor)return s;if((n==null?void 0:n.props.element)===e)return{...s,isElementAncestor:!0};const y=(a=e.props)===null||a===void 0?void 0:a.path,v=(0,xe.I)(e,"core.mountPoint");if(v&&y)throw new Error(`Path property may not be set directly on a routable extension "${kn(e)}"`);var w;const $=(w=s==null||(c=s.obj)===null||c===void 0?void 0:c.children)!==null&&w!==void 0?w:r.objects;if(y!==void 0){if(typeof y!="string")throw new Error(`Element path must be a string at "${kn(e)}"`);const mt=y.startsWith("/")?y.slice(1):y,Ft=e.props.element;if((0,xe.I)(e,"core.gatherMountPoints")){var X;if(Ft)throw new Error(`Mount point gatherers may not have an element prop "${kn(e)}"`);const Ht={path:mt,element:"gathered",routeRefs:new Set,caseSensitive:Boolean((X=e.props)===null||X===void 0?void 0:X.caseSensitive),children:[Kn],plugins:new Set};return $.push(Ht),{obj:Ht,gatherPath:mt,routeRef:s==null?void 0:s.routeRef,gatherRouteRef:s==null?void 0:s.routeRef}}if(Ft){var it;const[Ht,...Xt]=ir(Ft);if(Xt.length>0)throw new Error(`Route element with path "${y}" may not contain multiple routable extensions`);if(!Ht)return s;const{routeRef:ce,plugin:ke}=Ht,Rn={path:mt,element:"mounted",routeRefs:new Set([ce]),caseSensitive:Boolean((it=e.props)===null||it===void 0?void 0:it.caseSensitive),children:[Kn],plugins:sr(ke)};return $.push(Rn),r.paths.set(ce,mt),r.parents.set(ce,s==null?void 0:s.routeRef),{obj:Rn,routeRef:ce!=null?ce:s==null?void 0:s.routeRef,gatherPath:mt,gatherRouteRef:s==null?void 0:s.gatherRouteRef}}}if(v){var vt;if((s==null?void 0:s.gatherPath)===void 0)throw new Error(`Routable extension "${kn(e)}" with mount point "${v}" must be assigned a path`);s==null||(vt=s.obj)===null||vt===void 0||vt.routeRefs.add(v);const mt=(0,xe.I)(e,"core.plugin");if(mt){var gt;s==null||(gt=s.obj)===null||gt===void 0||gt.plugins.add(mt)}return r.paths.set(v,s.gatherPath),r.parents.set(v,s==null?void 0:s.gatherRouteRef),{...s,routeRef:v}}return s}),cs=Zn(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,s)=>{var a,c,y;if((n==null?void 0:n.props.element)===e)return s;let v=s==null?void 0:s.obj,w=s==null?void 0:s.routeRef,$=s==null?void 0:s.sticky;const X=(a=e.props)===null||a===void 0?void 0:a.path;var it;const vt=(it=v==null?void 0:v.children)!==null&&it!==void 0?it:r.objects,gt=Boolean((c=e.props)===null||c===void 0?void 0:c.caseSensitive);let mt=s==null?void 0:s.path;if((0,xe.I)(e,"core.gatherMountPoints")){if(!X)throw new Error("Mount point gatherer must have a path");mt=X}const Ft=(y=e.props)===null||y===void 0?void 0:y.element;let Ht=(0,xe.I)(e,"core.mountPoint");if(!Ht&&(0,d.isValidElement)(Ft)&&(Ht=(0,xe.I)(Ft,"core.mountPoint")),Ht){let ke=X;if(mt&&(ke?mt=void 0:ke=mt),!ke)throw new Error("Mounted routable extension must have a path");r.paths.set(Ht,ke),w&&$?(r.parents.set(Ht,w),X&&(w=Ht,$=!1)):(r.parents.set(Ht,w),w=Ht),X?(v={caseSensitive:gt,path:X,element:"mounted",routeRefs:new Set([Ht]),children:[Kn],plugins:sr((0,xe.I)(e.props.element,"core.plugin"))},vt.push(v)):v==null||v.routeRefs.add(Ht)}if((0,xe.I)(e,"core.gatherMountPoints")&&($=!0),(0,xe.I)(e,"core.gatherMountPoints")){if(!X)throw new Error("Mount point gatherer must have a path");if(!Ht){var ce;v={caseSensitive:gt,path:X,element:"gathered",routeRefs:new Set,children:[Kn],plugins:(s==null||(ce=s.obj)===null||ce===void 0?void 0:ce.plugins)||new Set},vt.push(v)}}return{obj:v,path:mt,routeRef:w,sticky:$}}),ds=Zn(()=>new Set,(r,e)=>{if(e.type===rr){const n=e.props;r.add("with"in n?n.with:n.without)}});var En=t(84800),us=t(96087);const xn=(0,us.u)("route-ref-type",()=>Symbol("route-ref-type"));function ar(r){return r[xn]==="absolute"}function lr(r){return r[xn]==="sub"}function hs(r){return r[xn]==="external"}function zn(...r){const e=r.join("/").replace(/\/\/+/g,"/");return e!=="/"&&e.endsWith("/")?e.slice(0,-1):e}var fs=t(34519),gs=t.n(fs);function ps(r,e,n){let s,a="";if(ar(r))s=r;else if(lr(r))s=r.parent,a=r.path;else if(hs(r)){const v=n.get(r);if(!v)return[void 0,""];if(ar(v))s=v;else if(lr(v))s=v.parent,a=v.path;else throw new Error(`ExternalRouteRef was bound to invalid target, ${v}`)}else throw r[xn]?new Error(`Unknown or invalid route ref type, ${r[xn]}`):new Error(`Unknown object passed to useRouteRef, got ${r}`);if(!s)return[void 0,""];const c=e.get(s);if(c===void 0)return[void 0,""];const y=zn(c,a);return[s,y]}function vs(r,e,n,s,a){var c;const y=(c=(0,En.fp)(a,e))!==null&&c!==void 0?c:[],v=Array();let w=-1;for(let it=r;it&&(w=y.findIndex(vt=>vt.route.routeRefs.has(it)),w===-1);it=s.get(it))v.unshift(it);v.length===0&&(w-=1);const $=w===-1?"":y[w].pathname,X=v.slice(0,-1).map(it=>{const vt=n.get(it);if(vt===void 0)throw new Error(`No path for ${it}`);if(vt.includes(":"))throw new Error(`Cannot route to ${r} with parent ${it} as it has parameters`);return vt});return`${zn($,...X)}/`}class ms{resolve(e,n){const[s,a]=ps(e,this.routePaths,this.routeBindings);if(!s)return;let c;typeof n=="string"?c=this.trimPath(n):n.pathname?c={...n,pathname:this.trimPath(n.pathname)}:c=n;const y=this.appBasePath+vs(s,c,this.routePaths,this.routeParents,this.routeObjects);return(...[w])=>{const $=w&&gs()(w,X=>typeof X=="string"?X.replaceAll(/[&?#;\/]/g,it=>encodeURIComponent(it)):X);return zn(y,(0,En.Gn)(a,$))}}trimPath(e){return e&&(e.startsWith(this.appBasePath)?e.slice(this.appBasePath.length):e)}constructor(e,n,s,a,c){(0,m._)(this,"routePaths",void 0),(0,m._)(this,"routeParents",void 0),(0,m._)(this,"routeObjects",void 0),(0,m._)(this,"routeBindings",void 0),(0,m._)(this,"appBasePath",void 0),this.routePaths=e,this.routeParents=n,this.routeObjects=s,this.routeBindings=a,this.appBasePath=c}}const ys=(0,oe.CT)("routing-context"),Es=({routePaths:r,routeParents:e,routeObjects:n,routeBindings:s,basePath:a="",children:c})=>{const y=new ms(r,e,n,s,a),v=(0,_e.E)({1:y});return(0,i.jsx)(ys.Provider,{value:v,children:c})};function xs(r,e){const n=new Set(e.values());n.delete(void 0);for(const s of e.keys()){if(n.has(s))continue;let a=s,c="";for(;a;){const v=r.get(a);if(v===void 0)throw new Error(`No path for ${a}`);c=zn(v,c),a=e.get(a)}const y=c.match(/:(\w+)/g);if(y){for(let v=0;v<y.length;v++)for(let w=v+1;w<y.length;w++)if(y[w]===y[v])throw new Error(`Parameter ${y[w]} is duplicated in path ${c}`)}}}function Cs(r,e){for(const n of e)if(n.externalRoutes){for(const[s,a]of Object.entries(n.externalRoutes))if(!a.optional&&!r.has(a))throw new Error(`External route '${s}' of the '${n.getId()}' plugin must be bound to a target route. See https://backstage.io/link?bind-routes for details.`)}}const As=(0,oe.CT)("app-context"),Ss=({appContext:r,children:e})=>{const n=(0,_e.E)({1:r});return(0,i.jsx)(As.Provider,{value:n,children:e})};function cr(r){return new Error(`Tried to access IdentityApi ${r} before app was loaded`)}function ko(r){console.warn(`WARNING: Call to ${r} is deprecated and will break in the future`)}class Os{setTarget(e,n){this.target=e,this.signOutTargetUrl=n.signOutTargetUrl,this.resolveTarget(e)}getUserId(){if(!this.target)throw cr("getUserId");if(!this.target.getUserId)throw new Error("IdentityApi does not implement getUserId");return ko("getUserId"),this.target.getUserId()}getProfile(){if(!this.target)throw cr("getProfile");if(!this.target.getProfile)throw new Error("IdentityApi does not implement getProfile");return ko("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 ko("getIdToken"),e.getIdToken()})}async signOut(){await this.waitForTarget.then(e=>e.signOut()),window.location.href=this.signOutTargetUrl}constructor(){(0,m._)(this,"target",void 0),(0,m._)(this,"waitForTarget",void 0),(0,m._)(this,"resolveTarget",()=>{}),(0,m._)(this,"signOutTargetUrl","/"),this.waitForTarget=new Promise(e=>{this.resolveTarget=e})}}var bs=t(72164);function Ps(r,e,n){if(r!==void 0){const a=n.find(c=>c.id===r);if(a)return a}if(e){const a=n.find(c=>c.variant==="dark");if(a)return a}const s=n.find(a=>a.variant==="light");return s||n[0]}const Rs=()=>{const r=(0,d.useMemo)(()=>window.matchMedia("(prefers-color-scheme: dark)"),[]),[e,n]=(0,d.useState)(r.matches);return(0,d.useEffect)(()=>{const s=a=>{n(a.matches)};return r.addListener(s),()=>{r.removeListener(s)}},[r]),e};function dr({children:r}){const e=(0,yn.h_)(Nn),n=(0,bs.Z)(e.activeThemeId$(),e.getActiveThemeId()),s=Boolean(window.matchMedia)?Rs():!1,a=Ps(n,s,e.getInstalledThemes());if(!a)throw new Error("App has no themes");return(0,i.jsx)(a.Provider,{children:r})}const ur=async()=>Ts();function Ts(r="__APP_INJECTED_RUNTIME_CONFIG__"){const e=[{context:"app-config.yaml",data:{app:{title:"Techdocs Preview App",baseUrl:"http://localhost:3000"},backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}}}];if(!e)throw new Error("No static configuration provided");if(!Array.isArray(e))throw new Error("Static configuration has invalid format");const n=e.slice();if(r!=="__app_injected_runtime_config__".toLocaleUpperCase("en-US"))try{const a=JSON.parse(r);Array.isArray(a)?n.push(...a):n.push({data:a,context:"env"})}catch(a){throw new Error(`Failed to load runtime configuration, ${a}`)}const s=window.__APP_CONFIG__;return s&&n.push({context:"window",data:s}),n}class ws{add(e,n){return this.apis.push([e.id,n]),n}build(){return new cn(new Map(this.apis))}constructor(){(0,m._)(this,"apis",[])}}class cn{static builder(){return new ws}static from(e){return new cn(new Map(e.map(([n,s])=>[n.id,s])))}static with(e,n){return new cn(new Map([[e.id,n]]))}with(e,n){return new cn(new Map([...this.apis,[e.id,n]]))}get(e){return this.apis.get(e.id)}constructor(e){(0,m._)(this,"apis",void 0),this.apis=e}}function Is(r){const e=new Map;return r&&r({bind:(s,a)=>{for(const[c,y]of Object.entries(a)){const v=s[c];if(!v)throw new Error(`Key ${c} is not an existing external route`);if(!y&&!v.optional)throw new Error(`External route ${c} is required but was undefined`);y&&e.set(v,y)}}}),e}function Cn(){const[r]=(0,p.is)((0,i.jsx)(p.AW,{index:!0,element:(0,i.jsx)("div",{})}));return!r.index}const hr=(0,d.createContext)(void 0);var fr=t(80851),gr=t(62369),Ds=t(72388);const Ms=(r,e)=>{try{const n=(0,En.fp)(e,{pathname:r}),s=n==null?void 0:n.filter(w=>{var $;return(w==null||($=w.route.routeRefs)===null||$===void 0?void 0:$.size)>0}).pop(),a=s==null?void 0:s.route;if(!a||a.path===""&&r!=="/")return;let c;a.routeRefs.size===1&&(c=a.routeRefs.values().next().value);let y;a.plugins.size===1&&(y=a.plugins.values().next().value);const v=Object.entries((s==null?void 0:s.params)||{}).reduce((w,[$,X])=>(X!==void 0&&$!=="*"&&(w[$]=X),w),{});return{extension:"App",pluginId:(y==null?void 0:y.getId())||"root",...c?{routeRef:c.id}:{},_routeNodeType:a.element,params:v}}catch{return}},Ls=({pathname:r,search:e,hash:n,attributes:s})=>{const a=(0,gr.z)();return(0,d.useEffect)(()=>{a.captureEvent("navigate",`${r}${e}${n}`,{attributes:s})},[a,r,e,n,s]),null},Hn=({routeObjects:r})=>{const{pathname:e,search:n,hash:s}=(0,p.TH)(),{params:a,...c}=Ms(e,r)||{params:{}};return(0,i.jsx)(Ds.fC,{attributes:c,children:(0,i.jsx)(Ls,{pathname:e,search:n,hash:s,attributes:a})})};function js(r){return Cn()?zo(r):""}function zo(r){var e;let{pathname:n}=new URL((e=r.getOptionalString("app.baseUrl"))!==null&&e!==void 0?e:"/","http://sample.dev");return n=n.replace(/\/*$/,""),n}function pr({component:r,appIdentityProxy:e,children:n}){const[s,a]=(0,d.useState)(),c=(0,yn.h_)(ae.D),y=zo(c);return s?(e.setTarget(s,{signOutTargetUrl:y||"/"}),(0,i.jsx)(i.Fragment,{children:n})):(0,i.jsx)(r,{onSignInSuccess:a})}function vr(r){const{Router:e,SignInPage:n}=(0,fr.q)().getComponents(),s=(0,yn.h_)(ae.D),a=zo(s),c=`${a}/*`,y=(0,d.useContext)(hr);if(!y)throw new Error("AppRouter must be rendered within the AppProvider");const{routeObjects:v,appIdentityProxy:w}=y;return n?Cn()?(0,i.jsxs)(e,{children:[(0,i.jsx)(Hn,{routeObjects:v}),(0,i.jsx)(pr,{component:n,appIdentityProxy:w,children:(0,i.jsx)(p.Z5,{children:(0,i.jsx)(p.AW,{path:c,element:(0,i.jsx)(i.Fragment,{children:r.children})})})})]}):(0,i.jsxs)(e,{basename:a,children:[(0,i.jsx)(Hn,{routeObjects:v}),(0,i.jsx)(pr,{component:n,appIdentityProxy:w,children:r.children})]}):(w.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:a||"/"}),Cn()?(0,i.jsxs)(e,{children:[(0,i.jsx)(Hn,{routeObjects:v}),(0,i.jsx)(p.Z5,{children:(0,i.jsx)(p.AW,{path:c,element:(0,i.jsx)(i.Fragment,{children:r.children})})})]}):(0,i.jsxs)(e,{basename:a,children:[(0,i.jsx)(Hn,{routeObjects:v}),r.children]}))}(0,xe.R)(vr,"core.type","AppRouter");const An="language",Ne="en";var Sn=new WeakMap,dn=new WeakMap,Gn=new WeakMap;class Vn{static create(e){var n;const s=(n=e==null?void 0:e.availableLanguages)!==null&&n!==void 0?n:[Ne];if(s.length!==new Set(s).size)throw new Error(`Supported languages may not contain duplicates, got '${s.join("', '")}'`);if(!s.includes(Ne))throw new Error(`Supported languages must include '${Ne}'`);var a;const c=(a=e==null?void 0:e.defaultLanguage)!==null&&a!==void 0?a:Ne;if(!s.includes(c))throw new Error(`Initial language must be one of the supported languages, got '${c}'`);return new Vn(s,c)}static createWithStorage(e){const n=Vn.create(e);if(!window.localStorage)return n;const s=window.localStorage.getItem(An),{languages:a}=n.getAvailableLanguages();return s&&a.includes(s)&&n.setLanguage(s),n.language$().subscribe(({language:c})=>{c!==window.localStorage.getItem(An)&&window.localStorage.setItem(An,c)}),window.addEventListener("storage",c=>{if(c.key===An){var y;const v=(y=localStorage.getItem(An))!==null&&y!==void 0?y:void 0;v&&n.setLanguage(v)}}),n}getAvailableLanguages(){return{languages:(0,Mt._)(this,Sn).slice()}}setLanguage(e){const n=e!=null?e:Ne;if(n!==(0,Mt._)(this,dn)){if(n&&!(0,Mt._)(this,Sn).includes(n))throw new Error(`Failed to change language to '${n}', available languages are '${(0,Mt._)(this,Sn).join("', '")}'`);(0,Ee._)(this,dn,n),(0,Mt._)(this,Gn).next({language:n})}}getLanguage(){return{language:(0,Mt._)(this,dn)}}language$(){return(0,Mt._)(this,Gn)}constructor(e,n){(0,ge._)(this,Sn,{writable:!0,value:void 0}),(0,ge._)(this,dn,{writable:!0,value:void 0}),(0,ge._)(this,Gn,{writable:!0,value:void 0}),(0,Ee._)(this,Sn,e),(0,Ee._)(this,dn,n),(0,Ee._)(this,Gn,new rt({language:(0,Mt._)(this,dn)}))}}var Ze=t(29190),_n=t(15356),Bs=t(24991),Us=t(18015),mr=t(35304);function yr(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==null))}var un=new WeakMap,Yn=new WeakMap,hn=new WeakMap,Qn=new WeakSet;class $s{addTranslationResource(e){const n=(0,Us.W)(e);for(const s of n.resources){const a=(0,Ze._)(this,Qn,Ho).call(this,s.language,n.id);(0,Mt._)(this,hn).has(a)||(0,Mt._)(this,hn).set(a,s.loader)}}needsLoading(e,n){const s=(0,Ze._)(this,Qn,Ho).call(this,e,n);return(0,Mt._)(this,hn).get(s)?!(0,Mt._)(this,un).has(s):!1}async load(e,n){const s=(0,Ze._)(this,Qn,Ho).call(this,e,n),a=(0,Mt._)(this,hn).get(s);if(!a||(0,Mt._)(this,un).has(s))return;const c=(0,Mt._)(this,Yn).get(s);if(c){await c;return}const y=a().then(v=>{this.onLoad({language:e,namespace:n,messages:v.messages}),(0,Mt._)(this,un).add(s)},v=>{throw(0,Mt._)(this,un).add(s),v});(0,Mt._)(this,Yn).set(s,y),await y}constructor(e){(0,_n._)(this,Qn),(0,m._)(this,"onLoad",void 0),(0,ge._)(this,un,{writable:!0,value:void 0}),(0,ge._)(this,Yn,{writable:!0,value:void 0}),(0,ge._)(this,hn,{writable:!0,value:void 0}),this.onLoad=e,(0,Ee._)(this,un,new Set),(0,Ee._)(this,Yn,new Map),(0,Ee._)(this,hn,new Map)}}function Ho(r,e){return`${r}/${e}`}var On=new WeakMap,fn=new WeakMap,en=new WeakMap,Go=new WeakMap,Jn=new WeakMap,Er=new WeakSet,Xn=new WeakSet,Vo=new WeakSet;class _o{static create(e){const{languages:n}=e.languageApi.getAvailableLanguages(),s=(0,Bs.Fs)({fallbackLng:Ne,supportedLngs:n,interpolation:{escapeValue:!1},ns:[],defaultNS:!1,fallbackNS:!1,initImmediate:!1});if(s.init(),!s.isInitialized)throw new Error("i18next was unexpectedly not initialized");const{language:a}=e.languageApi.getLanguage();a!==Ne&&s.changeLanguage(a);const c=new $s(w=>{s.addResourceBundle(w.language,w.namespace,yr(w.messages),!1,!0)}),y=(e==null?void 0:e.resources)||[];for(let w=y.length-1;w>=0;w--){const $=y[w];$.$$type==="@backstage/TranslationResource"?c.addTranslationResource($):$.$$type==="@backstage/TranslationMessages"&&s.addResourceBundle(Ne,$.id,yr($.messages),!0,!1)}const v=new _o(s,c,e.languageApi.getLanguage().language);return e.languageApi.language$().subscribe(({language:w})=>{(0,Ze._)(v,Er,Fs).call(v,w)}),v}getTranslation(e){const n=(0,mr.y)(e);return(0,Ze._)(this,Vo,xr).call(this,n),(0,Ze._)(this,Xn,Yo).call(this,n)}translation$(e){const n=(0,mr.y)(e);return(0,Ze._)(this,Vo,xr).call(this,n),new(H())(s=>{let a={};const c=()=>{a={};const v=a;(0,Mt._)(this,fn).load((0,Mt._)(this,en),n.id).then(()=>{if(v===a){const w=(0,Ze._)(this,Xn,Yo).call(this,n);w.ready&&s.next(w)}},w=>{v===a&&s.error(Array.isArray(w)?w[0]:w)})},y=()=>{const v=(0,Ze._)(this,Xn,Yo).call(this,n);v.ready?s.next(v):c()};return(0,Mt._)(this,fn).needsLoading((0,Mt._)(this,en),n.id)&&c(),(0,Mt._)(this,Jn).add(y),()=>{(0,Mt._)(this,Jn).delete(y)}})}constructor(e,n,s){(0,_n._)(this,Er),(0,_n._)(this,Xn),(0,_n._)(this,Vo),(0,ge._)(this,On,{writable:!0,value:void 0}),(0,ge._)(this,fn,{writable:!0,value:void 0}),(0,ge._)(this,en,{writable:!0,value:void 0}),(0,ge._)(this,Go,{writable:!0,value:new Set}),(0,ge._)(this,Jn,{writable:!0,value:new Set}),(0,Ee._)(this,On,e),(0,Ee._)(this,fn,n),(0,Ee._)(this,en,s)}}function Fs(r){(0,Mt._)(this,en)!==r&&((0,Ee._)(this,en,r),(0,Mt._)(this,On).changeLanguage(r),(0,Mt._)(this,Jn).forEach(e=>e()))}function Yo(r){return(0,Mt._)(this,fn).needsLoading((0,Mt._)(this,en),r.id)?{ready:!1}:{ready:!0,t:(0,Mt._)(this,On).getFixedT(null,r.id)}}function xr(r){if((0,Mt._)(this,Go).has(r.id))return;(0,Mt._)(this,Go).add(r.id);const e=r.getDefaultMessages();(0,Mt._)(this,On).addResourceBundle(Ne,r.id,e,!0,!1);const n=r.getDefaultResource();n&&(0,Mt._)(this,fn).addTranslationResource(n)}function Cr(r){const e=new URL(r);return e.protocol=document.location.protocol,e.hostname=document.location.hostname,e.port=document.location.port,e.toString().replace(/\/$/,"")}function Ws(r){const e=an.fromConfigs(r),n=e.getOptionalString("app.baseUrl"),s=e.getOptionalString("backend.baseUrl");let a=r,c,y;if(n&&s){const v=new URL(n).origin,w=new URL(s).origin;if(v===w){const $=Cr(s);s!==$&&(c=$)}}if(n){const v=Cr(n);n!==v&&(y=v)}return(y||c)&&(a=a.concat({data:{app:y&&{baseUrl:y},backend:c&&{baseUrl:c}},context:"relative-resolver"})),a}function Ns(r,e,n){var s;const a=Boolean(r),c=(0,Se.default)(r||(()=>Promise.resolve([])));let y;if(a&&c.loading){const{Progress:$}=e;y=(0,i.jsx)($,{})}else if(c.error){const{BootErrorPage:$}=e;y=(0,i.jsx)($,{step:"load-config",error:c.error})}const{ThemeProvider:v=dr}=e;return y?{node:(0,i.jsx)(Wo,{apis:cn.with(Nn,n),children:(0,i.jsx)(v,{children:y})})}:{api:an.fromConfigs(!((s=c.value)===null||s===void 0)&&s.length?Ws(c.value):[])}}class Zs{getPlugins(){return this.app.getPlugins()}getSystemIcon(e){return this.app.getSystemIcon(e)}getSystemIcons(){return this.app.getSystemIcons()}getComponents(){return this.app.getComponents()}constructor(e){(0,m._)(this,"app",void 0),this.app=e}}var Qo=new WeakMap;class Ks{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,i.jsx)(n,{children:e})}getProvider(){if((0,Mt._)(this,Qo))throw new Error("app.getProvider() or app.createRoot() has already been called, and can only be called once");(0,Ee._)(this,Qo,!0);const e=new Zs(this);let n=!1;return({children:a})=>{const c=(0,d.useRef)(!0),y=(0,d.useMemo)(()=>Wn.createWithStorage(this.themes),[]),{routing:v,featureFlags:w,routeBindings:$}=(0,d.useMemo)(()=>{const mt=rs({root:a,discoverers:[ss,is],collectors:{routing:Cn()?cs:ls,collectedPlugins:as,featureFlags:ds}});return mt.collectedPlugins.forEach(Ft=>this.plugins.add(Ft)),this.verifyPlugins(this.plugins),this.getApiHolder(),{...mt,routeBindings:Is(this.bindRoutes)}},[a]);n||(n=!0,xs(v.paths,v.parents),Cs($,this.plugins));const X=Ns(this.configLoader,this.components,y),it="api"in X;if(it){const{api:mt}=X;this.configApi=mt}if("node"in X)return X.node;if(it&&c.current){c.current=!1;const mt=this.getApiHolder().get(ln.W);if(mt){for(const Xt of this.featureFlags)mt.registerFlag({...Xt,pluginId:""});for(const Xt of this.plugins.values())if("getFeatureFlags"in Xt)for(const ce of Xt.getFeatureFlags())mt.registerFlag({name:ce.name,pluginId:Xt.getId()});else for(const ce of Xt.output())ce.type==="feature-flag"&&mt.registerFlag({name:ce.name,pluginId:Xt.getId()});const Ft=mt.getRegisteredFlags(),Ht=new Set(Ft.map(Xt=>Xt.name));for(const Xt of w)Ht.has(Xt)||mt.registerFlag({name:Xt,pluginId:""})}}const{ThemeProvider:vt=dr,Progress:gt}=this.components;return(0,i.jsx)(Wo,{apis:this.getApiHolder(),children:(0,i.jsx)(Ss,{appContext:e,children:(0,i.jsx)(vt,{children:(0,i.jsx)(Es,{routePaths:v.paths,routeParents:v.parents,routeObjects:v.objects,routeBindings:$,basePath:js(X.api),children:(0,i.jsx)(hr.Provider,{value:{routeObjects:v.objects,appIdentityProxy:this.appIdentityProxy},children:(0,i.jsx)(d.Suspense,{fallback:(0,i.jsx)(gt,{}),children:a})})})})})})}}getRouter(){return vr}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 Zo.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder}this.apiFactoryRegistry.register("static",{api:Nn,deps:{},factory:()=>Wn.createWithStorage(this.themes)}),this.apiFactoryRegistry.register("static",{api:ae.D,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:tn.$,deps:{},factory:()=>this.appIdentityProxy}),this.apiFactoryRegistry.register("static",{api:or,deps:{},factory:()=>this.appLanguageApi}),this.apiFactoryRegistry.register("default",{api:ns.o,deps:{languageApi:or},factory:({languageApi:e})=>_o.create({languageApi:e,resources:this.translationResources})}),this.apiFactoryRegistry.register("default",{api:ln.W,deps:{},factory:()=>new es});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 Zo.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder=new Zo(this.apiFactoryRegistry),this.apiHolder}verifyPlugins(e){const n=new Set;for(const s of e){const a=s.getId();if(n.has(a))throw new Error(`Duplicate plugin found '${a}'`);n.add(a)}}constructor(e){var n,s,a;(0,m._)(this,"apiHolder",void 0),(0,m._)(this,"configApi",void 0),(0,m._)(this,"apis",void 0),(0,m._)(this,"icons",void 0),(0,m._)(this,"plugins",void 0),(0,m._)(this,"featureFlags",void 0),(0,m._)(this,"components",void 0),(0,m._)(this,"themes",void 0),(0,m._)(this,"configLoader",void 0),(0,m._)(this,"defaultApis",void 0),(0,m._)(this,"bindRoutes",void 0),(0,m._)(this,"appLanguageApi",void 0),(0,m._)(this,"translationResources",void 0),(0,m._)(this,"appIdentityProxy",new Os),(0,m._)(this,"apiFactoryRegistry",void 0),(0,ge._)(this,Qo,{writable:!0,value:!1});var c;this.apis=(c=e.apis)!==null&&c!==void 0?c:[],this.icons=e.icons;var y;this.plugins=new Set((y=e.plugins)!==null&&y!==void 0?y:[]);var v;this.featureFlags=(v=e.featureFlags)!==null&&v!==void 0?v:[],this.components=e.components,this.themes=e.themes;var w;this.configLoader=(w=e.configLoader)!==null&&w!==void 0?w:ur;var $;this.defaultApis=($=e.defaultApis)!==null&&$!==void 0?$:[],this.bindRoutes=e.bindRoutes,this.apiFactoryRegistry=new os,this.appLanguageApi=Vn.createWithStorage({defaultLanguage:(n=e.__experimentalTranslations)===null||n===void 0?void 0:n.defaultLanguage,availableLanguages:(s=e.__experimentalTranslations)===null||s===void 0?void 0:s.availableLanguages});var X;this.translationResources=(X=(a=e.__experimentalTranslations)===null||a===void 0?void 0:a.resources)!==null&&X!==void 0?X:[]}}function ks(r){return new Ks(r)}function zs(r){var e,n,s,a;return ks({...r,apis:(e=r==null?void 0:r.apis)!==null&&e!==void 0?e:[],bindRoutes:r==null?void 0:r.bindRoutes,components:{...Z,...r==null?void 0:r.components},configLoader:r==null?void 0:r.configLoader,defaultApis:ho,icons:{...Io,...r==null?void 0:r.icons},plugins:(n=r==null?void 0:r.plugins)!==null&&n!==void 0?n:[],featureFlags:(s=r==null?void 0:r.featureFlags)!==null&&s!==void 0?s:[],themes:(a=r==null?void 0:r.themes)!==null&&a!==void 0?a:ve})}var qn=t(2532);let Ar=!1;const Sr=r=>{const e=(0,fr.q)(),{NotFoundErrorPage:n}=e.getComponents(),s=(0,d.useMemo)(()=>Cn(),[]),c=[...(0,qn.v)(r.children,y=>y.getElements().flatMap(v=>{let w=v.props.path;if(w==="")return[];var $;w=($=w==null?void 0:w.replace(/\/\*$/,""))!==null&&$!==void 0?$:"/";let X=s?v:v.props.element;return!s&&!X&&(X=v,Ar||(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] />} />."),Ar=!0)),[{path:w,element:X,children:v.props.children?[{path:w==="/"?"/":"*",element:v.props.children}]:void 0}]}).sort((v,w)=>w.path.localeCompare(v.path)).map(v=>({...v,path:v.path==="/"?"/":`${v.path}/*`}))),{path:"*",element:(0,i.jsx)(n,{})}];return(0,p.V$)(c)};(0,xe.R)(Sr,"core.type","FlatRoutes");var bn=t(74314),Hs=t(51547),Gs=t(88797);function Or(r){return!r.cursor}function la(r){return!Or(r)}class Vs{async getEntityAncestors(e,n){const{kind:s,namespace:a,name:c}=(0,bn.of)(e.entityRef);return await this.requestRequired("GET",`/entities/by-name/${encodeURIComponent(s)}/${encodeURIComponent(a)}/${encodeURIComponent(c)}/ancestry`,n)}async getLocationById(e,n){return await this.requestOptional("GET",`/locations/${encodeURIComponent(e)}`,n)}async getEntities(e,n){const{filter:s=[],fields:a=[],order:c,offset:y,limit:v,after:w}=e!=null?e:{},$=this.getParams(s);if(a.length&&$.push(`fields=${a.map(encodeURIComponent).join(",")}`),c)for(const gt of[c].flat())gt&&$.push(`order=${encodeURIComponent(gt.order)}:${encodeURIComponent(gt.field)}`);y!==void 0&&$.push(`offset=${y}`),v!==void 0&&$.push(`limit=${v}`),w!==void 0&&$.push(`after=${encodeURIComponent(w)}`);const X=$.length?`?${$.join("&")}`:"",it=await this.requestRequired("GET",`/entities${X}`,n),vt=(gt,mt)=>{var Ft,Ht;if(((Ft=gt.metadata)===null||Ft===void 0?void 0:Ft.name)===void 0||gt.kind===void 0||((Ht=mt.metadata)===null||Ht===void 0?void 0:Ht.name)===void 0||mt.kind===void 0)return 0;const Xt=(0,bn.eE)(gt),ce=(0,bn.eE)(mt);return Xt<ce?-1:Xt>ce?1:0};return{items:it.sort(vt)}}async getEntitiesByRefs(e,n){var s;const a={entityRefs:e.entityRefs};!((s=e.fields)===null||s===void 0)&&s.length&&(a.fields=e.fields);const y=`${await this.discoveryApi.getBaseUrl("catalog")}/entities/by-refs`,v=await this.fetchApi.fetch(y,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(a)});if(!v.ok)throw await Ge.V.fromResponse(v);const{items:w}=await v.json();return{items:w.map($=>$!=null?$:void 0)}}async queryEntities(e={},n){const s=[];if(Or(e)){var a,c;const{fields:v=[],filter:w,limit:$,orderFields:X,fullTextFilter:it}=e;s.push(...this.getParams(w)),$!==void 0&&s.push(`limit=${$}`),X!==void 0&&(Array.isArray(X)?X:[X]).forEach(({field:gt,order:mt})=>s.push(`orderField=${gt},${mt}`)),v.length&&s.push(`fields=${v.map(encodeURIComponent).join(",")}`);const vt=it==null||(a=it.term)===null||a===void 0?void 0:a.trim();vt&&s.push(`fullTextFilterTerm=${vt}`),!(it==null||(c=it.fields)===null||c===void 0)&&c.length&&s.push(`fullTextFilterFields=${it.fields.join(",")}`)}else{const{fields:v=[],limit:w,cursor:$}=e;s.push(`cursor=${$}`),w!==void 0&&s.push(`limit=${w}`),v.length&&s.push(`fields=${v.map(encodeURIComponent).join(",")}`)}const y=s.length?`?${s.join("&")}`:"";return this.requestRequired("GET",`/entities/by-query${y}`,n)}async getEntityByRef(e,n){const{kind:s,namespace:a,name:c}=(0,bn.of)(e);return this.requestOptional("GET",`/entities/by-name/${encodeURIComponent(s)}/${encodeURIComponent(a)}/${encodeURIComponent(c)}`,n)}async getEntityByName(e,n){const{kind:s,namespace:a="default",name:c}=e;return this.requestOptional("GET",`/entities/by-name/${encodeURIComponent(s)}/${encodeURIComponent(a)}/${encodeURIComponent(c)}`,n)}async refreshEntity(e,n){const s=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/refresh`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify({entityRef:e})});if(s.status!==200)throw new Error(await s.text())}async getEntityFacets(e,n){const{filter:s=[],facets:a}=e,c=this.getParams(s);for(const v of a)c.push(`facet=${encodeURIComponent(v)}`);const y=c.length?`?${c.join("&")}`:"";return await this.requestOptional("GET",`/entity-facets${y}`,n)}async addLocation(e,n){const{type:s="url",target:a,dryRun:c}=e,y=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/locations${c?"?dryRun=true":""}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify({type:s,target:a})});if(y.status!==201)throw new Error(await y.text());const{location:v,entities:w,exists:$}=await y.json();if(!v)throw new Error(`Location wasn't added: ${a}`);return{location:v,entities:w,exists:$}}async getLocationByRef(e,n){return(await this.requestRequired("GET","/locations",n)).map(a=>a.data).find(a=>e===(0,Hs.NZ)(a))}async removeLocationById(e,n){await this.requestIgnored("DELETE",`/locations/${encodeURIComponent(e)}`,n)}async removeEntityByUid(e,n){await this.requestIgnored("DELETE",`/entities/by-uid/${encodeURIComponent(e)}`,n)}async validateEntity(e,n,s){const a=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/validate-entity`,{headers:{"Content-Type":"application/json",...(s==null?void 0:s.token)&&{Authorization:`Bearer ${s==null?void 0:s.token}`}},method:"POST",body:JSON.stringify({entity:e,location:n})});if(a.ok)return{valid:!0};if(a.status!==400)throw await Ge.V.fromResponse(a);const{errors:c=[]}=await a.json();return{valid:!1,errors:c}}async requestIgnored(e,n,s){const a=`${await this.discoveryApi.getBaseUrl("catalog")}${n}`,c=s!=null&&s.token?{Authorization:`Bearer ${s.token}`}:{},y=await this.fetchApi.fetch(a,{method:e,headers:c});if(!y.ok)throw await Ge.V.fromResponse(y)}async requestRequired(e,n,s){const a=`${await this.discoveryApi.getBaseUrl("catalog")}${n}`,c=s!=null&&s.token?{Authorization:`Bearer ${s.token}`}:{},y=await this.fetchApi.fetch(a,{method:e,headers:c});if(!y.ok)throw await Ge.V.fromResponse(y);return y.json()}async requestOptional(e,n,s){const a=`${await this.discoveryApi.getBaseUrl("catalog")}${n}`,c=s!=null&&s.token?{Authorization:`Bearer ${s.token}`}:{},y=await this.fetchApi.fetch(a,{method:e,headers:c});if(!y.ok){if(y.status===404)return;throw await Ge.V.fromResponse(y)}return await y.json()}getParams(e=[]){const n=[];for(const s of[e].flat()){const a=[];for(const[c,y]of Object.entries(s))for(const v of[y].flat())v===Gs.n?a.push(encodeURIComponent(c)):typeof v=="string"&&a.push(`${encodeURIComponent(c)}=${encodeURIComponent(v)}`);a.length&&n.push(`filter=${a.join(",")}`)}return n}constructor(e){(0,m._)(this,"discoveryApi",void 0),(0,m._)(this,"fetchApi",void 0),this.discoveryApi=e.discoveryApi,this.fetchApi=e.fetchApi||{fetch:Mn()}}}var _s=t(88624),Ys=t(36802),br=t(36434),Pn=t(65524),Qs=t(15006),Oe=t(82963),Js=t(53945),gn=t(76635);async function Xs({storageApi:r}){const e=r.forBucket("settings"),n=r.forBucket("starredEntities"),s=e.snapshot("starredEntities").value;if(!(0,gn.isArray)(s))return;var a;const c=new Set((a=n.snapshot("entityRefs").value)!==null&&a!==void 0?a:[]);s.filter(gn.isString).map(y=>y.split(":")).filter(y=>y.length===4&&y[0]==="entity").map(([y,v,w,$])=>(0,bn.eE)({kind:v,namespace:w,name:$})).forEach(y=>c.add(y)),await n.set("entityRefs",Array.from(c)),await e.remove("starredEntities")}class qs{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}notifyChanges(){for(const e of this.subscribers)e.next(new Set(this.starredEntities))}constructor(e){(0,m._)(this,"settingsStore",void 0),(0,m._)(this,"starredEntities",void 0),(0,m._)(this,"subscribers",new Set),(0,m._)(this,"observable",new(H())(s=>(s.next(new Set(this.starredEntities)),this.subscribers.add(s),()=>{this.subscribers.delete(s)}))),Xs(e).then(),this.settingsStore=e.storageApi.forBucket("starredEntities");var n;this.starredEntities=new Set((n=this.settingsStore.snapshot("entityRefs").value)!==null&&n!==void 0?n:[]),this.settingsStore.observe$("entityRefs").subscribe({next:s=>{var a;this.starredEntities=new Set((a=s.value)!==null&&a!==void 0?a:[]),this.notifyChanges()}})}}const Ae=(0,Qs.r)({id:"catalog",apis:[(0,qt.n)({api:_s.A,deps:{discoveryApi:fe.N,fetchApi:Dn.g},factory:({discoveryApi:r,fetchApi:e})=>new Vs({discoveryApi:r,fetchApi:e})}),(0,qt.n)({api:Ys.p,deps:{storageApi:In},factory:({storageApi:r})=>new qs({storageApi:r})})],routes:{catalogIndex:Pn._Z,catalogEntity:br.w},externalRoutes:{createComponent:Pn.yw,viewTechDoc:Pn.jU,createFromTemplate:Pn.ql}}),ca=Ae.provide((0,Oe.P4)({name:"CatalogIndexPage",component:()=>Promise.all([t.e(3893),t.e(1600)]).then(t.bind(t,51600)).then(r=>r.CatalogPage),mountPoint:Pn._Z})),ti=Ae.provide((0,Oe.P4)({name:"CatalogEntityPage",component:()=>t.e(8951).then(t.bind(t,78951)).then(r=>r.CatalogEntityPage),mountPoint:br.w})),da=Ae.provide((0,Oe.CO)({name:"EntityAboutCard",component:{lazy:()=>Promise.all([t.e(4966),t.e(7893)]).then(t.bind(t,37893)).then(r=>r.AboutCard)}})),ua=Ae.provide((0,Oe.CO)({name:"EntityLinksCard",component:{lazy:()=>t.e(7750).then(t.bind(t,17750)).then(r=>r.EntityLinksCard)}})),ha=Ae.provide((0,Oe.CO)({name:"EntityLabelsCard",component:{lazy:()=>t.e(5877).then(t.bind(t,85877)).then(r=>r.EntityLabelsCard)}})),fa=Ae.provide((0,Oe.CO)({name:"EntityHasSystemsCard",component:{lazy:()=>t.e(5458).then(t.bind(t,5458)).then(r=>r.HasSystemsCard)}})),ga=Ae.provide((0,Oe.CO)({name:"EntityHasComponentsCard",component:{lazy:()=>t.e(1105).then(t.bind(t,1105)).then(r=>r.HasComponentsCard)}})),pa=Ae.provide((0,Oe.CO)({name:"EntityHasSubcomponentsCard",component:{lazy:()=>t.e(2440).then(t.bind(t,82440)).then(r=>r.HasSubcomponentsCard)}})),va=Ae.provide((0,Oe.CO)({name:"EntityHasResourcesCard",component:{lazy:()=>t.e(9770).then(t.bind(t,79770)).then(r=>r.HasResourcesCard)}})),ma=Ae.provide((0,Oe.CO)({name:"EntityDependsOnComponentsCard",component:{lazy:()=>t.e(9545).then(t.bind(t,19545)).then(r=>r.DependsOnComponentsCard)}})),ya=Ae.provide((0,Oe.CO)({name:"EntityDependencyOfComponentsCard",component:{lazy:()=>t.e(184).then(t.bind(t,40184)).then(r=>r.DependencyOfComponentsCard)}})),Ea=Ae.provide((0,Oe.CO)({name:"EntityDependsOnResourcesCard",component:{lazy:()=>t.e(1032).then(t.bind(t,81032)).then(r=>r.DependsOnResourcesCard)}})),xa=Ae.provide((0,Oe.CO)({name:"RelatedEntitiesCard",component:{lazy:()=>t.e(3487).then(t.bind(t,33487)).then(r=>r.RelatedEntitiesCard)}})),Ca=Ae.provide((0,Js.E5)({name:"CatalogSearchResultListItem",component:()=>t.e(7670).then(t.bind(t,27670)).then(r=>r.CatalogSearchResultListItem),predicate:r=>r.type==="software-catalog"}));var Pr=t(91657),Rr=t(58496);class ei{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){return`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(e,n){const a=`${await this.getApiOrigin()}/${n}`,c=await fetch(`${a.endsWith("/")?a:`${a}/`}index.html`);if(c.status===404)throw new Error("Page not found");return c.text()}async syncEntityDocs(e){return"cached"}async getBaseUrl(e,n,s){const a=await this.getApiOrigin();return new URL(e,`${a}/${s}`).toString()}constructor({configApi:e,discoveryApi:n,identityApi:s}){(0,m._)(this,"configApi",void 0),(0,m._)(this,"discoveryApi",void 0),(0,m._)(this,"identityApi",void 0),this.configApi=e,this.discoveryApi=n,this.identityApi=s}}class ni{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:""}}constructor({configApi:e,discoveryApi:n,identityApi:s}){(0,m._)(this,"configApi",void 0),(0,m._)(this,"discoveryApi",void 0),(0,m._)(this,"identityApi",void 0),this.configApi=e,this.discoveryApi=n,this.identityApi=s}}const oi=[(0,qt.n)({api:Rr.D,deps:{configApi:ae.D,discoveryApi:fe.N,identityApi:tn.$},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new ei({configApi:r,discoveryApi:e,identityApi:n})}),(0,qt.n)({api:Rr.g,deps:{configApi:ae.D,discoveryApi:fe.N,identityApi:tn.$},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new ni({configApi:r,discoveryApi:e,identityApi:n})}),(0,qt.n)({api:Pr.q,deps:{configApi:ae.D},factory:({configApi:r})=>Pr.a.fromConfig(r)})],ri={backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}},si={backend:{baseUrl:"http://localhost:7007"},techdocs:{builder:"external"}};async function ii(){const r=await fetch("/.detect");return r.ok?(await r.text()).trim()==="techdocs-cli-server":!1}async function ai(){const r=await ur(),e=await ii();return[...r,{context:"detected",data:e?ri:si}]}var Ke=t(79692),li=t(58845);const ci=(0,Ke.Z)({svg:{width:"auto",height:30},path:{fill:"#7df3e1"}});var di=()=>{const r=ci();return(0,i.jsx)("svg",{className:r.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2079.95 456.05",children:(0,i.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"})})};const ui=(0,Ke.Z)({svg:{width:"auto",height:28},path:{fill:"#7df3e1"}});var hi=()=>{const r=ui();return(0,i.jsx)("svg",{className:r.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 337.46 428.5",children:(0,i.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"})})},me=t(76921);const Tr={isOpen:!1,setOpen:()=>{}},wr=(0,d.createContext)(Tr),Ir=(0,oe.CT)("sidebar-open-state-context");function Dr(r){const{children:e,value:n}=r;return(0,i.jsx)(wr.Provider,{value:n,children:(0,i.jsx)(Ir.Provider,{value:(0,_e.E)({1:n}),children:e})})}const Jo=()=>{const r=(0,d.useContext)(Ir),e=(0,d.useContext)(wr);if(r===void 0)return e||Tr;const n=r.atVersion(1);if(n===void 0)throw new Error("No context found for version 1.");return n};var Mr=t(98864),Lr=t(44409),Ye=t(62774),jr=t(41156),fi=t(72779),nn=t.n(fi),gi=t(50023),Br=t(61837),pi=t(4190),Xo=t(90436),vi=t(87685),mi=t(44882),yi=t(57998);const Ur=(0,d.createContext)({selectedMenuItemIndex:-1,setSelectedMenuItemIndex:()=>{}});var qo=t(93539);const Ei=(0,Ke.Z)(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"}})),xi=r=>{const{to:e,label:n,icon:s,value:a}=r,{sidebarConfig:c}=(0,d.useContext)(me.kG),y=Ei({sidebarConfig:c}),v=(0,p.TH)(),{selectedMenuItemIndex:w,setSelectedMenuItemIndex:$}=(0,d.useContext)(Ur),X=(vt,gt)=>{$(gt===w?-1:gt)},it=a===w&&w>=0||a!==w&&!(w>=0)&&e===v.pathname;return(0,i.jsx)(yi.Z,{"aria-label":n,label:n,icon:s,component:Mr.rU,to:e||v.pathname,onChange:X,value:a,selected:it,classes:y})},$r=r=>{const{children:e,to:n,label:s,icon:a,value:c}=r,{isMobile:y}=(0,qo.Pf)();return y?(0,i.jsx)(xi,{to:n,label:s,icon:a,value:c}):(0,i.jsx)(i.Fragment,{children:e})},Fr=(0,Ke.Z)(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`})})),Ci=r=>(0,gn.orderBy)(r,({props:{priority:e}})=>Number.isInteger(e)?e:-1,"desc"),Ai=d.createElement($r).type,Si=({children:r,label:e="Menu",open:n,onClose:s})=>{const{sidebarConfig:a}=(0,d.useContext)(me.kG),c=Fr({sidebarConfig:a});return(0,i.jsxs)(pi.ZP,{anchor:"bottom",open:n,onClose:s,ModalProps:{BackdropProps:{classes:{root:c.marginMobileSidebar}}},classes:{root:c.marginMobileSidebar,paperAnchorBottom:c.overlay},children:[(0,i.jsxs)(Ye.Z,{className:c.overlayHeader,children:[(0,i.jsx)(Xo.Z,{variant:"h3",children:e}),(0,i.jsx)(Br.Z,{onClick:s,classes:{root:c.overlayHeaderClose},children:(0,i.jsx)(vi.Z,{})})]}),(0,i.jsx)(Ye.Z,{component:"nav",children:r})]})},Oi=r=>{const{sidebarConfig:e}=(0,d.useContext)(me.kG),{children:n}=r,s=Fr({sidebarConfig:e}),a=(0,p.TH)(),[c,y]=(0,d.useState)(-1);(0,d.useEffect)(()=>{y(-1)},[a.pathname]);let v=(0,qn.v)(n,$=>$.getElements().filter(X=>X.type===Ai));if(n)v.length?v=Ci(v):v.push((0,i.jsx)($r,{icon:(0,i.jsx)(mi.Z,{}),children:n},"default_menu"));else return null;const w=c>=0&&!v[c].props.to;return(0,i.jsx)(Dr,{value:{isOpen:!0,setOpen:()=>{}},children:(0,i.jsxs)(Ur.Provider,{value:{selectedMenuItemIndex:c,setSelectedMenuItemIndex:y},children:[(0,i.jsx)(Si,{label:v[c]&&v[c].props.label,open:w,onClose:()=>y(-1),children:v[c]&&v[c].props.children}),(0,i.jsx)(gi.Z,{className:s.root,"data-testid":"mobile-sidebar-root",component:"nav",children:v})]})})},Wr=(0,Ke.Z)(r=>({drawer:{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",left:0,top:0,bottom:0,zIndex:r.zIndex.appBar,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 Nr;(function(r){r[r.Closed=0]="Closed",r[r.Idle=1]="Idle",r[r.Open=2]="Open"})(Nr||(Nr={}));const bi=r=>{const{sidebarConfig:e}=(0,d.useContext)(me.kG),{openDelayMs:n=e.defaultOpenDelayMs,closeDelayMs:s=e.defaultCloseDelayMs,disableExpandOnHover:a,children:c}=r,y=Wr({sidebarConfig:e}),v=(0,jr.Z)(Xt=>Xt.breakpoints.down("md"),{noSsr:!0}),[w,$]=(0,d.useState)(0),X=(0,d.useRef)(),{isPinned:it,toggleSidebarPinState:vt}=(0,qo.Pf)(),gt=()=>{it||a||(X.current&&(clearTimeout(X.current),X.current=void 0),w!==2&&!v&&(X.current=window.setTimeout(()=>{X.current=void 0,$(2)},n),$(1)))},mt=()=>{it||a||(X.current&&(clearTimeout(X.current),X.current=void 0),w===1?$(0):w===2&&(X.current=window.setTimeout(()=>{X.current=void 0,$(0)},s)))},Ft=w===2&&!v||it,Ht=Xt=>{Xt?($(2),vt()):($(0),vt())};return(0,i.jsxs)("nav",{style:{},"aria-label":"sidebar nav",children:[(0,i.jsx)(Ri,{}),(0,i.jsx)(Dr,{value:{isOpen:Ft,setOpen:Ht},children:(0,i.jsx)(Ye.Z,{className:y.root,"data-testid":"sidebar-root",onMouseEnter:a?()=>{}:gt,onFocus:a?()=>{}:gt,onMouseLeave:a?()=>{}:mt,onBlur:a?()=>{}:mt,children:(0,i.jsx)(Ye.Z,{className:nn()(y.drawer,y.drawerWidth,{[y.drawerOpen]:Ft}),children:c})})})]})},Pi=r=>{var e;const n=(0,me.$E)((e=r.sidebarOptions)!==null&&e!==void 0?e:{});var s;const a=(0,me.rW)((s=r.submenuOptions)!==null&&s!==void 0?s:{}),{children:c,disableExpandOnHover:y,openDelayMs:v,closeDelayMs:w}=r,{isMobile:$}=(0,qo.Pf)();return $?(0,i.jsx)(Oi,{children:c}):(0,i.jsx)(me.kG.Provider,{value:{sidebarConfig:n,submenuConfig:a},children:(0,i.jsx)(bi,{openDelayMs:v,closeDelayMs:w,disableExpandOnHover:y,children:c})})};function Ri(){const{sidebarConfig:r}=(0,d.useContext)(me.kG),{focusContent:e,contentRef:n}=(0,Lr.r)(),s=Wr({sidebarConfig:r});return n!=null&&n.current?(0,i.jsx)(A.Z,{onClick:e,variant:"contained",className:nn()(s.visuallyHidden),children:"Skip to content"}):null}var Ti=t(26739),to=t(1667),wi=t(83543),Ii=t(59797),Zr=t(98989);const Di=(0,Ke.Z)(r=>({root:{zIndex:1e3,position:"relative",overflow:"visible",width:r.spacing(7)+1},drawer:e=>{var n,s;return{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",[r.breakpoints.up("sm")]:{marginLeft:e.left,transition:r.transitions.create("margin-left",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.shortest})},top:0,bottom:0,padding:0,background:(s=(n=r.palette.navigation.submenu)===null||n===void 0?void 0:n.background)!==null&&s!==void 0?s:"#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=>({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.common.white,padding:r.spacing(2.5),[r.breakpoints.down("xs")]:{display:"none"}}}),{name:"BackstageSidebarSubmenu"}),Mi=r=>{const{isOpen:e}=Jo(),{sidebarConfig:n,submenuConfig:s}=(0,d.useContext)(me.kG),a=e?n.drawerWidthOpen:n.drawerWidthClosed,c=Di({left:a,submenuConfig:s}),{isHoveredOn:y}=(0,d.useContext)(me.Ag),[v,w]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{w(y)},[y]),(0,i.jsxs)(Ye.Z,{className:nn()(c.drawer,{[c.drawerOpen]:v}),children:[(0,i.jsx)(Xo.Z,{variant:"h5",component:"span",className:c.title,children:r.title}),r.children]})};var Li=t(19126),Kr=t.n(Li);function kr(r,e,n=!1){const s=new URLSearchParams(e.search).toString(),a=Kr().parse(s),c=new URLSearchParams(r.search).toString(),y=Kr().parse(c),v=n?gn.isEqual:gn.isMatch;return(0,gn.isEqual)(e.pathname,r.pathname)&&v(y,a)}const ji=r=>(0,Ke.Z)(e=>{var n,s,a,c;return{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:(a=(n=e.palette.navigation.navItem)===null||n===void 0?void 0:n.hoverBackground)!==null&&a!==void 0?a:"#404040"}},highlighted:{background:(c=(s=e.palette.navigation.navItem)===null||s===void 0?void 0:s.hoverBackground)!==null&&c!==void 0?c:"#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 eo(r){return(0,d.useMemo)(()=>ji(r),[r])()}const Bi=(r,e)=>(0,qn.v)(r.props.children,n=>{let s=!1;return n.getElements().forEach(({props:{to:a,dropdownItems:c}})=>{if(!s){if(c!=null&&c.length){c.forEach(({to:y})=>s=s||kr(e,(0,En.i3)(y)));return}a&&(s=kr(e,(0,En.i3)(a)))}}),s},[e.pathname]);function tr(r){return r.to===void 0}const Ui=d.createElement(Mi).type,$i=d.forwardRef(function({to:e,end:n,style:s,className:a,activeStyle:c,caseSensitive:y,activeClassName:v="active","aria-current":w="page",...$},X){let{pathname:it}=(0,p.TH)(),{pathname:vt}=(0,p.WU)(e);y||(it=it.toLocaleLowerCase("en-US"),vt=vt.toLocaleLowerCase("en-US"));let gt=it===vt;!gt&&!n&&(gt=it.startsWith(`${vt}/`));const mt=gt?w:void 0;return(0,i.jsx)(E.rU,{...$,to:e,ref:X,"aria-current":mt,style:{...s,...gt?c:void 0},className:nn()([typeof a!="function"?a:void 0,gt?v:void 0])})}),zr=(0,d.forwardRef)((r,e)=>{const{icon:n,text:s,hasNotifications:a=!1,hasSubmenu:c=!1,disableHighlight:y=!1,onClick:v,noTrack:w,children:$,className:X,...it}=r,{sidebarConfig:vt}=(0,d.useContext)(me.kG),gt=eo(vt),{isOpen:mt}=Jo(),Ft=!mt&&c?{display:"flex",marginLeft:"20px"}:{lineHeight:"0"},Ht=(0,i.jsxs)(Ye.Z,{style:Ft,children:[(0,i.jsx)(n,{fontSize:"small"}),!mt&&c?(0,i.jsx)(Zr.Z,{fontSize:"small"}):(0,i.jsx)(i.Fragment,{})]}),Xt=(0,i.jsx)(Ti.Z,{color:"secondary",variant:"dot",overlap:"circular",invisible:!a,className:nn()({[gt.closedItemIcon]:!mt}),children:Ht}),ce=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Ye.Z,{"data-testid":"login-button",className:gt.iconContainer,children:Xt}),s&&(0,i.jsx)(Xo.Z,{variant:"subtitle2",component:"span",className:gt.label,children:s}),(0,i.jsx)("div",{className:gt.secondaryAction,children:$})]}),ke=mt?ce:Xt,Rn={onClick:v,className:nn()(X,gt.root,mt?gt.open:gt.closed,tr(r)&&gt.buttonItem,{[gt.highlightable]:!y})},_r=(0,gr.z)(),{pathname:er}=(0,p.WU)(!tr(r)&&r.to?r.to:""),Yr=(0,d.useCallback)(ra=>{if(!w){const sa="click",ia=s!=null?s:"Sidebar Item",aa=er?{attributes:{to:er}}:void 0;_r.captureEvent(sa,ia,aa)}v==null||v(ra)},[_r,s,er,w,v]);return tr(r)?(0,i.jsx)(A.Z,{role:"button","aria-label":s,...Rn,ref:e,onClick:Yr,children:ke}):(0,i.jsx)($i,{...Rn,activeClassName:gt.selected,to:r.to?r.to:"",ref:e,"aria-label":s||r.to,...it,onClick:Yr,children:ke})}),Fi=({children:r,...e})=>{const{sidebarConfig:n}=(0,d.useContext)(me.kG),s=eo(n),[a,c]=(0,d.useState)(!1),y=(0,p.TH)(),v=Bi(r,y),w=(0,jr.Z)(vt=>vt.breakpoints.down("sm")),$=()=>{c(!0)},X=()=>{c(!1)},it=()=>w?a?(0,i.jsx)(Ii.Z,{fontSize:"small",className:s.submenuArrow}):(0,i.jsx)(wi.Z,{fontSize:"small",className:s.submenuArrow}):!a&&(0,i.jsx)(Zr.Z,{fontSize:"small",className:s.submenuArrow});return(0,i.jsx)(me.Ag.Provider,{value:{isHoveredOn:a,setIsHoveredOn:c},children:(0,i.jsxs)("div",{"data-testid":"item-with-submenu",onMouseLeave:X,onTouchStart:a?X:$,onMouseEnter:$,className:nn()(a&&s.highlighted),children:[(0,i.jsx)(zr,{hasSubmenu:!0,className:v?s.selected:"",...e,children:it()}),a&&r]})})},Hr=(0,d.forwardRef)((r,e)=>{const[n]=(0,qn.v)(r.children,s=>s.getElements().filter(a=>a.type===Ui));return n?(0,i.jsx)(Fi,{...r,children:n}):(0,i.jsx)(zr,{...r,ref:e})});function Oa(r){const{sidebarConfig:e}=useContext(SidebarConfigContext),[n,s]=useState(""),a=eo(e),c=r.icon?r.icon:SearchIcon,y=()=>{r.onSearch(n),s("")},v=it=>{it.key==="Enter"&&(it.preventDefault(),y())},w=it=>{s(it.target.value)},$=it=>{it.preventDefault(),it.stopPropagation()},X=it=>{y(),it.preventDefault()};return _jsx(Box,{className:a.searchRoot,children:_jsx(Hr,{icon:c,to:r.to,onClick:X,disableHighlight:!0,children:_jsx(TextField,{placeholder:"Search",value:n,onClick:$,onChange:w,onKeyDown:v,className:a.searchContainer,InputProps:{disableUnderline:!0,className:a.searchField},inputProps:{className:a.searchFieldHTMLInput}})})})}const ba=(0,to.Z)("div")({flex:1},{name:"BackstageSidebarSpace"}),Pa=(0,to.Z)("div")({height:8},{name:"BackstageSidebarSpacer"}),Wi=(0,to.Z)("hr")(({theme:r})=>({height:1,width:"100%",background:"#383838",border:"none",margin:r.spacing(1.2,0)}),{name:"BackstageSidebarDivider"}),Ni=r=>({overflowY:"auto","&::-webkit-scrollbar":{backgroundColor:r.palette.background.default,width:"5px",borderRadius:"5px"},"&::-webkit-scrollbar-thumb":{backgroundColor:r.palette.text.secondary,borderRadius:"5px"}}),Ra=(0,to.Z)("div")(({theme:r})=>{const e=Ni(r);return{flex:"0 1 auto",overflowX:"hidden",width:"calc(100% - 5px)",minHeight:"48px",overflowY:"hidden","@media (hover: none)":e,"&:hover":e}}),Ta=()=>{const{sidebarConfig:r}=useContext(SidebarConfigContext),e=eo(r),{isOpen:n,setOpen:s}=useSidebarOpenState();if(useMediaQuery(y=>y.breakpoints.down("md"),{noSsr:!0}))return null;const c=()=>{s(!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,{})})})},Zi=(0,Ke.Z)({root:{width:me.po.drawerWidthClosed,height:3*me.po.logoHeight,display:"flex",flexFlow:"row nowrap",alignItems:"center",marginBottom:-14},link:{width:me.po.drawerWidthClosed,marginLeft:24}}),Ki=()=>{const r=Zi(),{isOpen:e}=Jo();return(0,i.jsx)("div",{className:r.root,children:(0,i.jsx)(Mr.rU,{to:"/docs/default/component/local/",underline:"none",className:r.link,children:e?(0,i.jsx)(di,{}):(0,i.jsx)(hi,{})})})},ki=({children:r})=>(0,i.jsxs)(Lr.t,{children:[(0,i.jsxs)(Pi,{children:[(0,i.jsx)(Ki,{}),(0,i.jsx)(Wi,{}),(0,i.jsx)(Hr,{icon:li.Z,to:"/docs/default/component/local",text:"Docs Preview"})]}),r]});var zi=t(80030),Hi=t(32388),Gi=t(4142),Vi=t(65386),_i=t(77873);const Yi=(0,Ke.Z)(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 Gr;(function(r){r.LIGHT="light",r.DARK="dark"})(Gr||(Gr={}));const Qi=()=>{const r=(0,yn.h_)(Nn),e=Yi(),[n,s]=(0,d.useState)(r.getActiveThemeId()==="dark"?"dark":"light"),a={light:{icon:Gi.Z,title:"Dark theme"},dark:{icon:Hi.Z,title:"Light theme"}},{title:c,icon:y}=a[n],v=()=>{s(w=>{const $=w==="light"?"dark":"light";return r.setActiveThemeId($),$})};return(0,i.jsx)(Ye.Z,{display:"flex",alignItems:"center",mr:2,children:(0,i.jsx)(zi.ZP,{title:c,arrow:!0,children:(0,i.jsx)(Br.Z,{size:"small",onClick:v,children:(0,i.jsx)(y,{className:e.headerIcon})})})})},Ji=()=>(0,i.jsxs)(f.I6,{children:[(0,i.jsx)(Vi.S,{}),(0,i.jsx)(_i.F,{withSearch:!1})]}),Xi=(0,i.jsx)(Ji,{}),Vr=zs({apis:oi,configLoader:ai,plugins:Object.values(o)}),qi=Vr.getProvider(),ta=Vr.getRouter(),ea=f.s4.provide((0,g.KY)({name:"ThemeToggleAddon",component:Qi,location:b.o.Header})),na=(0,i.jsxs)(Sr,{children:[(0,i.jsx)(p.Fg,{to:"/docs/default/component/local/"},"/"),(0,i.jsx)(p.AW,{path:"/catalog/:namespace/:kind/:name",element:(0,i.jsx)(ti,{})}),(0,i.jsx)(p.AW,{path:"/docs",element:(0,i.jsx)(f.Jl,{}),children:(0,i.jsx)(l.u,{})}),(0,i.jsxs)(p.AW,{path:"/docs/:namespace/:kind/:name/*",element:(0,i.jsx)(f.I6,{}),children:[Xi,(0,i.jsx)(g.DR,{children:(0,i.jsx)(ea,{})})]})]});var oa=()=>(0,i.jsx)(qi,{children:(0,i.jsx)(ta,{children:(0,i.jsx)(ki,{children:na})})});S.createRoot(document.getElementById("root")).render((0,i.jsx)(oa,{}))},29651:function(V,T,t){"use strict";t.d(T,{CT:function(){return d},Vt:function(){return S}});var o=t(2784),i=t(96087);function d(f){return(0,i.u)(f,()=>(0,o.createContext)(void 0))}function S(f){return(0,o.useContext)(d(f))}function p(f){return{set(l){globalThis[`__@backstage/${f}__`]=createContext(createVersionedValueMap(l))},reset(){delete globalThis[`__@backstage/${f}__`]}}}},68993:function(V,T,t){"use strict";t.d(T,{E:function(){return o}});function o(i){Object.freeze(i);const d={atVersion(S){return i[S]}};return Object.defineProperty(d,"$map",{configurable:!0,enumerable:!0,get(){return i}}),d}},96087:function(V,T,t){"use strict";t.d(T,{u:function(){return S}});function o(){return typeof window!="undefined"&&window.Math===Math?window:typeof self!="undefined"&&self.Math===Math?self:Function("return this")()}const i=o(),d=p=>`__@backstage/${p}__`;function S(p,f){const l=d(p);let g=i[l];return g||(g=f(),i[l]=g,g)}},88624:function(V,T,t){"use strict";t.d(T,{A:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"plugin.catalog.service"})},36802:function(V,T,t){"use strict";t.d(T,{p:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"catalog-react.starred-entities"})},30389:function(V,T,t){"use strict";t.d(T,{_i:function(){return x}});var o=t(52322),i=t(2784),d=t(41156),S=t(60364),p=t(77277),f=t(4190),l=t(62774),g=t(90436),b=t(60905),A=t(36444);const P=E=>{var I;const R=(0,d.Z)(G=>{var st,q;return G.breakpoints.down((q=(st=E.options)===null||st===void 0?void 0:st.drawerBreakpoint)!==null&&q!==void 0?q:"md")}),j=(0,S.Z)(),[F,Z]=(0,i.useState)(!1);var m;return R?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.Z,{style:{marginTop:j.spacing(1),marginLeft:j.spacing(1)},onClick:()=>Z(!0),startIcon:(0,o.jsx)(A.Z,{}),children:"Filters"}),(0,o.jsx)(f.ZP,{open:F,onClose:()=>Z(!1),anchor:(m=(I=E.options)===null||I===void 0?void 0:I.drawerAnchor)!==null&&m!==void 0?m:"left",disableAutoFocus:!0,keepMounted:!0,variant:"temporary",children:(0,o.jsxs)(l.Z,{m:2,children:[(0,o.jsx)(g.Z,{variant:"h6",component:"h2",style:{marginBottom:j.spacing(1)},children:"Filters"}),E.children]})})]}):(0,o.jsx)(b.Z,{item:!0,lg:2,children:E.children})},C=E=>(0,o.jsx)(b.Z,{item:!0,xs:12,lg:10,children:E.children}),x=E=>(0,o.jsx)(b.Z,{container:!0,style:{position:"relative"},children:E.children});x.Filters=P,x.Content=C},77605:function(V,T,t){"use strict";t.d(T,{K:function(){return z}});var o=t(52322),i=t(62774),d=t(90436),S=t(38016),p=t(88013),f=t(2784),l=t(44394),g=t(64279),b=t(88624),A=t(21324),P=t(5806),C=t(19996),x=t(25505);const E=(0,o.jsx)(x.Z,{fontSize:"small"}),I=(0,o.jsx)(C.Z,{fontSize:"small"});function R({selected:k}){return(0,o.jsx)(A.Z,{icon:E,checkedIcon:I,checked:k})}const j=(0,f.memo)(k=>{const{selected:et,value:rt,availableOptions:At,showCounts:Ct}=k,ut=Ct?`${rt} (${At==null?void 0:At[rt]})`:rt;return(0,o.jsx)(P.Z,{control:(0,o.jsx)(R,{selected:et}),label:ut,onClick:Ot=>Ot.preventDefault()})});var F=t(79692),Z=t(86619),m=t(72779),G=t.n(m);const st=(0,F.Z)({input:{}},{name:"CatalogReactEntityAutocompletePickerInput"});function q(k){const et=st();return(0,o.jsx)(Z.Z,{variant:"outlined",...k,className:G()(et.input,k.className)})}var H=t(25942);function z(k){var et;const{label:rt,name:At,path:Ct,showCounts:ut,Filter:Ot,InputProps:xt,initialSelectedOptions:Pt=[]}=k,{updateFilters:ot,filters:U,queryParameters:{[At]:_}}=(0,H.wp)(),J=(0,l.h_)(b.A),{value:at}=(0,g.default)(async()=>{var lt;const Tt=Ct,{facets:Rt}=await J.getEntityFacets({facets:[Tt],filter:(lt=U.kind)===null||lt===void 0?void 0:lt.getCatalogFilters()});return Object.fromEntries(Rt[Tt].map(({value:It,count:Gt})=>[It,Gt]))},[U.kind]),ct=(0,f.useMemo)(()=>[_].flat().filter(Boolean),[_]);var W;const[K,pt]=(0,f.useState)(ct.length?ct:(W=(et=U[At])===null||et===void 0?void 0:et.values)!==null&&W!==void 0?W:Pt);(0,f.useEffect)(()=>{ct.length&&pt(ct)},[ct]);const yt=Object.keys(at!=null?at:{}),ht=K.length&&yt.length;(0,f.useEffect)(()=>{ot({[At]:ht?new Ot(K):void 0})},[At,ht,K,Ot,ot]);const ft=U[At];return ft&&typeof ft=="object"&&!("values"in ft)||!yt.length||yt.length<=1?null:(0,o.jsx)(i.Z,{pb:1,pt:1,children:(0,o.jsxs)(d.Z,{variant:"button",component:"label",children:[rt,(0,o.jsx)(p.ZP,{multiple:!0,disableCloseOnSelect:!0,options:yt,value:K,onChange:(lt,Tt)=>pt(Tt),renderOption:(lt,{selected:Tt})=>(0,o.jsx)(j,{selected:Tt,value:lt,availableOptions:at,showCounts:!!ut}),size:"small",popupIcon:(0,o.jsx)(S.Z,{"data-testid":`${String(At)}-picker-expand`}),renderInput:lt=>(0,o.jsx)(q,{...lt,...xt})})]})})}},63833:function(V,T,t){"use strict";t.d(T,{d:function(){return ot}});var o=t(52322),i=t(74314),d=t(79692),S=t(62774),p=t(90436),f=t(5806),l=t(21324),g=t(86619),b=t(19996),A=t(25505),P=t(38016),C=t(88013),x=t(2784),E=t(25942),I=t(4967),R=t(6232),j=t(98685),F=t(62367),Z=t(86540),m=t(44394),G=t(69294),st=t(88624);function q({enabled:U}){const _=(0,m.h_)(st.A),[J]=(0,x.useState)(async()=>{if(!U)return[];const at="relations.ownedBy";return _.getEntityFacets({facets:[at]}).then(ct=>ct.facets[at].map(W=>W.value).map(W=>{const{kind:K,name:pt,namespace:yt}=(0,i.of)(W);return{apiVersion:"backstage.io/v1beta1",kind:K,metadata:{name:pt,namespace:yt}}}).sort((W,K)=>(W.metadata.namespace||"").localeCompare(K.metadata.namespace||"","en-US")||W.metadata.name.localeCompare(K.metadata.name,"en-US")||W.kind.localeCompare(K.kind,"en-US"))).catch(()=>[])});return(0,G.default)(async(at,ct)=>{const W=await J;if(!W)return{items:[]};var K;const pt=(K=ct==null?void 0:ct.limit)!==null&&K!==void 0?K:20,{text:yt,start:ht}=H(at),ft=W.filter(Tt=>et(yt,Tt)),lt=ht+pt;return{items:ft.slice(0,lt),...k({entities:ft,limit:lt,payload:{text:yt,start:lt}})}},[J],{loading:!0,value:{items:[]}})}function H(U){return z(U)&&U.cursor?JSON.parse(atob(U.cursor)):{text:U.text||"",start:0}}function z(U){return!!U.cursor}function k({entities:U,limit:_,payload:J}){return U.length>_?{cursor:btoa(JSON.stringify(J))}:{}}function et(U,_){var J;const at=U.trim();return _.kind.includes(at)||((J=_.metadata.namespace)===null||J===void 0?void 0:J.includes(at))||_.metadata.name.includes(at)}function rt(){const U=(0,m.h_)(st.A);return(0,G.default)(async(_,J)=>{const at=_,ct=_;var W;const K=(W=J==null?void 0:J.limit)!==null&&W!==void 0?W:20;if(ct.cursor){const yt=await U.queryEntities({cursor:ct.cursor,limit:K});return{cursor:yt.pageInfo.nextCursor,items:[...ct.items,...yt.items]}}const pt=await U.queryEntities({fullTextFilter:{term:at.text||"",fields:["metadata.name","kind","spec.profile.displayname","metadata.title"]},filter:{kind:["User","Group"]},orderFields:[{field:"metadata.name",order:"asc"}],limit:K});return{cursor:pt.pageInfo.nextCursor,items:pt.items}},[],{loading:!0})}var At=t(21638);function Ct({mode:U,initialSelectedOwnersRefs:_}){const J=U==="owners-only",at=rt(),ct=q({enabled:J}),[W,K]=J?ct:at;return[W,K,ut({enabled:!J,initialSelectedOwnersRefs:_})]}function ut({enabled:U,initialSelectedOwnersRefs:_}){const J=(0,x.useRef)({}),at=(0,m.h_)(st.A),[,ct]=(0,G.default)(async()=>{(await at.getEntitiesByRefs({entityRefs:_})).items.forEach(K=>{K&&(J.current[(0,i.eE)(K)]=K)})},[]);return(0,At.n)(()=>{U&&_.length>0&&ct()}),{getEntity:W=>J.current[W],setEntity:W=>{J.current[(0,i.eE)(W)]=W}}}const Ot=(0,d.Z)({input:{}},{name:"CatalogReactEntityOwnerPicker"}),xt=(0,o.jsx)(A.Z,{fontSize:"small"}),Pt=(0,o.jsx)(b.Z,{fontSize:"small"}),ot=U=>{var _,J;const at=Ot(),{mode:ct="owners-only"}=U||{},{updateFilters:W,filters:K,queryParameters:{owners:pt}}=(0,E.wp)(),[yt,ht]=(0,x.useState)(""),ft=(0,x.useMemo)(()=>[pt].flat().filter(Boolean),[pt]);var lt;const[Tt,Rt]=(0,x.useState)(ft.length?ft:(lt=(_=K.owners)===null||_===void 0?void 0:_.values)!==null&&lt!==void 0?lt:[]),[{value:It,loading:Gt},Qt,pe]=Ct({mode:ct,initialSelectedOwnersRefs:Tt});(0,R.b)(()=>Qt({text:yt}),[yt,Qt],250);const kt=(It==null?void 0:It.items)||[];return(0,x.useEffect)(()=>{if(ft.length){const Wt=new I.rf(ft);Rt(Wt.values)}},[ft]),(0,x.useEffect)(()=>{W({owners:Tt.length?new I.rf(Tt):void 0})},[Tt,W]),["user","group"].includes(((J=K.kind)===null||J===void 0?void 0:J.value.toLocaleLowerCase("en-US"))||"")?null:(0,o.jsx)(S.Z,{pb:1,pt:1,children:(0,o.jsxs)(p.Z,{variant:"button",component:"label",children:["Owner",(0,o.jsx)(C.ZP,{multiple:!0,disableCloseOnSelect:!0,loading:Gt,options:kt,value:Tt,getOptionSelected:(Wt,Yt)=>typeof Yt=="string"?(0,i.eE)(Wt)===Yt:Wt===Yt,getOptionLabel:Wt=>{const Yt=typeof Wt=="string"?pe.getEntity(Wt)||(0,i.of)(Wt,{defaultKind:"group",defaultNamespace:"default"}):Wt;return(0,Z.w)(Yt,(0,Z.$)(Yt))},onChange:(Wt,Yt)=>{ht(""),Rt(Yt.map(se=>{const be=typeof se=="string"?se:(0,i.eE)(se);return typeof se!="string"&&pe.setEntity(se),be}))},filterOptions:Wt=>Wt,renderOption:(Wt,{selected:Yt})=>{const se=Wt.kind.toLocaleLowerCase("en-US")==="group";return(0,o.jsx)(f.Z,{control:(0,o.jsx)(l.Z,{icon:xt,checkedIcon:Pt,checked:Yt}),onClick:be=>be.preventDefault(),label:(0,o.jsxs)(S.Z,{display:"flex",flexWrap:"wrap",alignItems:"center",children:[se?(0,o.jsx)(F.Z,{fontSize:"small"}):(0,o.jsx)(j.Z,{fontSize:"small"}),"\xA0",(0,Z.w)(Wt,(0,Z.$)(Wt,{defaultKind:Wt.kind}))]})})},size:"small",popupIcon:(0,o.jsx)(P.Z,{"data-testid":"owner-picker-expand"}),renderInput:Wt=>(0,o.jsx)(g.Z,{...Wt,className:at.input,onChange:Yt=>{ht(Yt.currentTarget.value)},variant:"outlined"}),ListboxProps:{onScroll:Wt=>{const Yt=Wt.currentTarget;Math.abs(Yt.scrollHeight-Yt.clientHeight-Yt.scrollTop)<1&&(It!=null&&It.cursor)&&Qt({items:It.items,cursor:It.cursor})},"data-testid":"owner-picker-listbox"}})]})})}},41748:function(V,T,t){"use strict";t.d(T,{d:function(){return A}});var o=t(52322),i=t(74314),d=t(34106),S=t(2784),p=t(36434),f=t(86540),l=t(98864),g=t(37321),b=t(80030);const A=(0,S.forwardRef)((P,C)=>{const{entityRef:x,defaultKind:E,title:I,children:R,...j}=P,F=(0,g.t)(p.w);let Z,m,G;if(typeof x=="string"){const k=(0,i.of)(x);Z=k.kind,m=k.namespace,G=k.name}else"metadata"in x?(Z=x.kind,m=x.metadata.namespace,G=x.metadata.name):(Z=x.kind,m=x.namespace,G=x.name);Z=Z.toLocaleLowerCase("en-US");var st;m=(st=m==null?void 0:m.toLocaleLowerCase("en-US"))!==null&&st!==void 0?st:d.zG;const q={kind:encodeURIComponent(Z),namespace:encodeURIComponent(m),name:encodeURIComponent(G)},H=(0,f.$)({kind:Z,namespace:m,name:G},{defaultKind:E}),z=(0,o.jsxs)(l.rU,{...j,ref:C,to:F(q),children:[R,!R&&(I!=null?I:H)]});return I?(0,o.jsx)(b.ZP,{title:H,children:z}):z})},68138:function(V,T,t){"use strict";t.d(T,{r:function(){return P}});var o=t(52322),i=t(2784),d=t(41748),S=t(74314),p=t(55015),f=t(74359),l=t(64279),g=t(88624),b=t(44394);function A(C){const{entityRefs:x,defaultKind:E,getTitle:I,...R}=C,j=(0,b.h_)(g.A),{value:F=new Array,loading:Z,error:m}=(0,l.default)(async()=>{const G=x.reduce((q,H)=>typeof H=="object"&&"metadata"in H?q:[...q,(0,S.of)(H)],new Array),st=x.filter(q=>typeof q=="object"&&"metadata"in q);return G.length>0?[...(await j.getEntities({filter:G.map(q=>({kind:q.kind,"metadata.namespace":q.namespace,"metadata.name":q.name}))})).items,...st]:st},[x]);return Z?(0,o.jsx)(p.E,{}):m?(0,o.jsx)(f.y,{error:m}):(0,o.jsx)(o.Fragment,{children:F.map((G,st)=>(0,o.jsxs)(i.Fragment,{children:[st>0&&", ",(0,o.jsx)(d.d,{...R,defaultKind:E,entityRef:G,title:I(G)})]},st))})}function P(C){const{entityRefs:x,defaultKind:E,fetchEntities:I,getTitle:R,...j}=C;return I?(0,o.jsx)(A,{...j,defaultKind:E,entityRefs:x,getTitle:R}):(0,o.jsx)(o.Fragment,{children:x.map((F,Z)=>(0,o.jsxs)(i.Fragment,{children:[Z>0&&", ",(0,o.jsx)(d.d,{...j,defaultKind:E,entityRef:F,title:R?R(F):void 0})]},Z))})}},86540:function(V,T,t){"use strict";t.d(T,{$:function(){return S},w:function(){return p}});var o=t(34106),i=t(72579),d=t.n(i);function S(f,l){const g=l==null?void 0:l.defaultKind;let b,A,P;return"metadata"in f?(b=f.kind,A=f.metadata.namespace,P=f.metadata.name):(b=f.kind,A=f.namespace,P=f.name),(A===void 0||A==="")&&(A=o.zG),(l==null?void 0:l.defaultNamespace)!==void 0?(l==null?void 0:l.defaultNamespace)===A&&(A=void 0):A===o.zG&&(A=void 0),b=b.toLocaleLowerCase("en-US"),b=g&&g.toLocaleLowerCase("en-US")===b?void 0:b,`${b?`${b}:`:""}${A?`${A}/`:""}${P}`}function p(f,l){for(const g of["spec.profile.displayName","metadata.title"]){const b=d()(f,g);if(b&&typeof b=="string")return b}return l}},97894:function(V,T,t){"use strict";t.d(T,{x:function(){return l}});var o=t(52322),i=t(79692),d=t(2784),S=t(4967),p=t(77605);const f=(0,i.Z)({input:{}},{name:"CatalogReactEntityTagPicker"}),l=g=>{const b=f();return(0,o.jsx)(p.K,{label:"Tags",name:"tags",path:"metadata.tags",Filter:S.Cu,showCounts:g.showCounts,InputProps:{className:b.input}})}},23433:function(V,T,t){"use strict";t.d(T,{E:function(){return H}});var o=t(52322),i=t(44394),d=t(6542),S=t(79692),p=t(94339),f=t(90436),l=t(11776),g=t(12231),b=t(86136),A=t(49378),P=t(9520),C=t(47603),x=t(11640),E=t(76635),I=t.n(E),R=t(2784),j=t(4967),F=t(25942),Z=t(42870),m=t(81269),G=t(64039);const st=(0,S.Z)(z=>({root:{backgroundColor:"rgba(0, 0, 0, .11)",boxShadow:"none",margin:z.spacing(1,0,1,0)},title:{margin:z.spacing(1,0,0,1),textTransform:"uppercase",fontSize:12,fontWeight:"bold"},listIcon:{minWidth:30,color:z.palette.text.primary},menuItem:{minHeight:z.spacing(6)},groupWrapper:{margin:z.spacing(1,1,2,1)}}),{name:"CatalogReactUserListPicker"});function q(z){return[{name:"Personal",items:[{id:"owned",label:"Owned",icon:C.Z},{id:"starred",label:"Starred",icon:x.Z}]},{name:z!=null?z:"Company",items:[{id:"all",label:"All"}]}]}const H=z=>{const{initialFilter:k,availableFilters:et}=z,rt=st(),At=(0,i.h_)(d.D);var Ct;const ut=(Ct=At.getOptionalString("organization.name"))!==null&&Ct!==void 0?Ct:"Company",{filters:Ot,updateFilters:xt,backendEntities:Pt,queryParameters:{kind:ot,user:U},loading:_}=(0,F.wp)(),J=["starred","all"],at=q(ut).map(Gt=>({...Gt,items:Gt.items.filter(({id:Qt})=>["group","user"].some(pe=>pe===ot)?J.includes(Qt):!et||et.includes(Qt))})).filter(({items:Gt})=>!!Gt.length),{isStarredEntity:ct}=(0,Z.C)(),{isOwnedEntity:W,loading:K}=(0,m.Z)(),pt=_||K,yt=(0,R.useMemo)(()=>new j.IZ("owned",W,ct),[W,ct]),ht=(0,R.useMemo)(()=>new j.IZ("starred",W,ct),[W,ct]),ft=(0,R.useMemo)(()=>[U].flat()[0],[U]),[lt,Tt]=(0,R.useState)(ft!=null?ft:k),Rt=(0,R.useMemo)(()=>Pt.filter((0,G.G)((0,E.compact)(Object.values({...Ot,user:void 0})))),[Ot,Pt]),It=(0,R.useMemo)(()=>({all:Rt.length,starred:Rt.filter(Gt=>ht.filterEntity(Gt)).length,owned:Rt.filter(Gt=>yt.filterEntity(Gt)).length}),[Rt,ht,yt]);return(0,R.useEffect)(()=>{ft&&Tt(ft)},[ft]),(0,R.useEffect)(()=>{!pt&&lt&&lt!=="all"&&It[lt]===0&&Tt("all")},[pt,It,lt,Tt]),(0,R.useEffect)(()=>{xt({user:lt?new j.IZ(lt,W,ct):void 0})},[lt,W,ct,xt]),(0,o.jsx)(p.Z,{className:rt.root,children:at.map(Gt=>(0,o.jsxs)(R.Fragment,{children:[(0,o.jsx)(f.Z,{variant:"subtitle2",component:"span",className:rt.title,children:Gt.name}),(0,o.jsx)(p.Z,{className:rt.groupWrapper,children:(0,o.jsx)(l.Z,{disablePadding:!0,dense:!0,role:"menu","aria-label":Gt.name,children:Gt.items.map(Qt=>{var pe,kt;return(0,o.jsxs)(g.Z,{role:"none presentation",button:!0,divider:!0,onClick:()=>Tt(Qt.id),selected:Qt.id===((pe=Ot.user)===null||pe===void 0?void 0:pe.value),className:rt.menuItem,disabled:It[Qt.id]===0,"data-testid":`user-picker-${Qt.id}`,tabIndex:0,ContainerProps:{role:"menuitem"},children:[Qt.icon&&(0,o.jsx)(b.Z,{className:rt.listIcon,children:(0,o.jsx)(Qt.icon,{fontSize:"small"})}),(0,o.jsx)(A.Z,{children:(0,o.jsxs)(f.Z,{variant:"body1",children:[Qt.label," "]})}),(0,o.jsx)(P.Z,{children:(kt=It[Qt.id])!==null&&kt!==void 0?kt:"-"})]},Qt.id)})})})]},Gt.name))})}},4967:function(V,T,t){"use strict";t.d(T,{A5:function(){return E},Bf:function(){return f},Cu:function(){return l},IZ:function(){return C},Qe:function(){return P},mM:function(){return x},rf:function(){return b},zH:function(){return A},zo:function(){return p}});var o=t(87612),i=t(8709),d=t(74314),S=t(75435);class p{getCatalogFilters(){return{kind:this.value}}toQueryValue(){return this.value}constructor(R){(0,o._)(this,"value",void 0),this.value=R}}class f{getTypes(){return Array.isArray(this.value)?this.value:[this.value]}getCatalogFilters(){return{"spec.type":this.getTypes()}}toQueryValue(){return this.getTypes()}constructor(R){(0,o._)(this,"value",void 0),this.value=R}}class l{filterEntity(R){return this.values.every(j=>{var F;return((F=R.metadata.tags)!==null&&F!==void 0?F:[]).includes(j)})}toQueryValue(){return this.values}constructor(R){(0,o._)(this,"values",void 0),this.values=R}}class g{filterEntity(R){const j=this.toUpperArray(this.value.split(/\s/)),F=this.toUpperArray([R.metadata.tags]),Z=this.toUpperArray([R.metadata.name,R.metadata.title]);for(const m of j)if(F.every(G=>G!==m)&&Z.every(G=>!G.includes(m)))return!1;return!0}toUpperArray(R){return R.flat().filter(j=>Boolean(j)).map(j=>j.toLocaleUpperCase("en-US"))}constructor(R){_define_property(this,"value",void 0),this.value=R}}class b{filterEntity(R){return this.values.some(j=>(0,S.h)(R,i.S4).some(F=>(0,d.eE)(F)===j))}toQueryValue(){return this.values}constructor(R){(0,o._)(this,"values",void 0),this.values=R.reduce((j,F)=>{try{return j.push((0,d.eE)((0,d.of)(F,{defaultKind:"Group"}))),j}catch{return j}},[])}}class A{filterEntity(R){return this.values.some(j=>{var F;return((F=R.spec)===null||F===void 0?void 0:F.lifecycle)===j})}toQueryValue(){return this.values}constructor(R){(0,o._)(this,"values",void 0),this.values=R}}class P{filterEntity(R){return this.values.some(j=>R.metadata.namespace===j)}toQueryValue(){return this.values}constructor(R){(0,o._)(this,"values",void 0),this.values=R}}class C{filterEntity(R){switch(this.value){case"owned":return this.isOwnedEntity(R);case"starred":return this.isStarredEntity(R);default:return!0}}toQueryValue(){return this.value}constructor(R,j,F){(0,o._)(this,"value",void 0),(0,o._)(this,"isOwnedEntity",void 0),(0,o._)(this,"isStarredEntity",void 0),this.value=R,this.isOwnedEntity=j,this.isStarredEntity=F}}class x{filterEntity(R){var j;const F=(j=R.metadata.annotations)===null||j===void 0?void 0:j["backstage.io/orphan"];return F!==void 0&&this.value.toString()===F}constructor(R){(0,o._)(this,"value",void 0),this.value=R}}class E{filterEntity(R){var j,F;const Z=(R==null||(F=R.status)===null||F===void 0||(j=F.items)===null||j===void 0?void 0:j.length)>0;return Z!==void 0&&this.value===Z}constructor(R){(0,o._)(this,"value",void 0),this.value=R}}},25942:function(V,T,t){"use strict";t.d(T,{UO:function(){return I},wp:function(){return R}});var o=t(52322),i=t(76635),d=t.n(i),S=t(19126),p=t.n(S),f=t(2784),l=t(73557),g=t(69294),b=t(48760),A=t(90736),P=t(88624),C=t(64039),x=t(44394);const E=(0,f.createContext)(void 0),I=j=>{const F=(0,A.default)(),Z=(0,x.h_)(P.A),[m,G]=(0,f.useState)({}),st=(0,l.TH)(),q=(0,f.useMemo)(()=>{var ut;return(ut=p().parse(st.search,{ignoreQueryPrefix:!0}).filters)!==null&&ut!==void 0?ut:{}},[st]),[H,z]=(0,f.useState)(()=>({appliedFilters:{},entities:[],backendEntities:[]})),[{loading:k,error:et},rt]=(0,g.default)(async()=>{const ut=(0,i.compact)(Object.values(m)),Ot=(0,C.G)(ut),xt=(0,C.w)(ut),Pt=(0,C.w)((0,i.compact)(Object.values(H.appliedFilters))),ot=Object.keys(m).reduce((_,J)=>{const at=m[J];return at!=null&&at.toQueryValue&&(_[J]=at.toQueryValue()),_},{});if((0,i.isEqual)(Pt,xt))z({appliedFilters:m,backendEntities:H.backendEntities,entities:H.backendEntities.filter(Ot)});else{const _=await Z.getEntities({filter:xt});z({appliedFilters:m,backendEntities:_.items,entities:_.items.filter(Ot)})}if(F()){var U;const _=p().parse(st.search,{ignoreQueryPrefix:!0}),J=p().stringify({..._,filters:ot},{addQueryPrefix:!0,arrayFormat:"repeat"}),at=`${window.location.pathname}${J}`;(U=window.history)===null||U===void 0||U.replaceState(null,document.title,at)}},[Z,q,m,H],{loading:!0});(0,b.Z)(rt,10,[m]);const At=(0,f.useCallback)(ut=>{G(Ot=>{const xt=typeof ut=="function"?ut(Ot):ut;return{...Ot,...xt}})},[]),Ct=(0,f.useMemo)(()=>({filters:H.appliedFilters,entities:H.entities,backendEntities:H.backendEntities,updateFilters:At,queryParameters:q,loading:k,error:et}),[H,At,q,k,et]);return(0,o.jsx)(E.Provider,{value:Ct,children:j.children})};function R(){const j=(0,f.useContext)(E);if(!j)throw new Error("useEntityList must be used within EntityListProvider");return j}},81269:function(V,T,t){"use strict";t.d(T,{Z:function(){return g}});var o=t(8709),i=t(74314),d=t(44394),S=t(77186),p=t(2784),f=t(64279),l=t(75435);function g(){const b=(0,d.h_)(S.$),{loading:A,value:P}=(0,f.default)(async()=>{const{ownershipEntityRefs:x}=await b.getBackstageIdentity();return x},[]),C=(0,p.useMemo)(()=>{const x=new Set(P!=null?P:[]);return E=>{const I=(0,l.h)(E,o.S4).map(i.eE);for(const R of I)if(x.has(R))return!0;return!1}},[P]);return(0,p.useMemo)(()=>({loading:A,isOwnedEntity:C}),[A,C])}},42870:function(V,T,t){"use strict";t.d(T,{C:function(){return l}});var o=t(74314),i=t(44394),d=t(2784),S=t(72164),p=t(36802);function f(g){return typeof g=="string"?g:(0,o.eE)(g)}function l(){const g=(0,i.h_)(p.p),b=(0,S.Z)((0,d.useMemo)(()=>g.starredEntitie$(),[g]),new Set),A=(0,d.useCallback)(C=>b.has(f(C)),[b]),P=(0,d.useCallback)(C=>g.toggleStarred(f(C)).then(),[g]);return{starredEntities:b,toggleStarredEntity:P,isStarredEntity:A}}},36434:function(V,T,t){"use strict";t.d(T,{w:function(){return d}});var o=t(30283),i=t(96087);const d=(0,i.u)("catalog:entity-route-ref",()=>(0,o.N)({id:"catalog:entity",params:["namespace","kind","name"]}));function S(p){var f,l;return{kind:p.kind.toLocaleLowerCase("en-US"),namespace:(l=(f=p.metadata.namespace)===null||f===void 0?void 0:f.toLocaleLowerCase("en-US"))!==null&&l!==void 0?l:DEFAULT_NAMESPACE,name:p.metadata.name}}},64039:function(V,T,t){"use strict";t.d(T,{G:function(){return i},w:function(){return o}});function o(d){return d.reduce((S,p)=>({...S,...p.getCatalogFilters?p.getCatalogFilters():{}}),{})}function i(d){return S=>d.every(p=>!p.filterEntity||p.filterEntity(S))}},75435:function(V,T,t){"use strict";t.d(T,{h:function(){return i}});var o=t(74314);function i(d,S,p){var f;let l=(d==null||(f=d.relations)===null||f===void 0?void 0:f.filter(g=>g.type===S).map(g=>(0,o.of)(g.targetRef)))||[];return p!=null&&p.kind&&(l=l.filter(g=>g.kind.toLocaleLowerCase("en-US")===p.kind.toLocaleLowerCase("en-US"))),l}},65524:function(V,T,t){"use strict";t.d(T,{yw:function(){return g},ql:function(){return A},_Z:function(){return P},jU:function(){return b}});var o=t(87612),i=t(92918);let d=i.K,S=d;class p{toString(){return`routeRef{type=external,id=${this.id}}`}constructor(x,E,I){(0,o._)(this,"id",void 0),(0,o._)(this,"params",void 0),(0,o._)(this,"optional",void 0),(0,o._)(this,S,void 0),this.id=x,this.params=E,this.optional=I,this[d]="external"}}function f(C){var x;return new p(C.id,(x=C.params)!==null&&x!==void 0?x:[],Boolean(C.optional))}var l=t(30283);const g=f({id:"create-component",optional:!0}),b=f({id:"view-techdoc",optional:!0,params:["namespace","kind","name"]}),A=f({id:"create-from-template",optional:!0,params:["namespace","templateName"]}),P=(0,l.N)({id:"catalog"})},76079:function(V,T,t){"use strict";t.d(T,{F:function(){return p}});var o=t(52322),i=t(2784),d=t(79692);const S=(0,d.Z)(()=>({highlight:{}}),{name:"BackstageHighlightedSearchResultText"}),p=f=>{const{text:l,preTag:g,postTag:b}=f,A=S(),P=(0,i.useMemo)(()=>l.split(new RegExp(`(${g}.+?${b})`)),[b,g,l]);return(0,o.jsx)(o.Fragment,{children:P.map((C,x)=>C.includes(g)?(0,o.jsx)("mark",{className:A.highlight,children:C.replace(new RegExp(`${g}|${b}`,"g"),"")},x):C)})}},53945:function(V,T,t){"use strict";t.d(T,{E5:function(){return b}});var o=t(52322),i=t(2784),d=t(62369),S=t(82963),p=t(38402);const f="search.results.list.items.extensions.v1",l=(C,x)=>{for(const E of C){if(!isValidElement(E))continue;const I=getComponentData(E,f);if(I!=null&&I(x))return cloneElement(E,{rank:x.rank,highlight:x.highlight,result:x.document,...E.props})}return null},g=C=>{const{rank:x,result:E,noTrack:I,children:R,alignItems:j="flex-start",...F}=C,Z=(0,d.z)(),m=(0,i.useCallback)(()=>{I||E&&Z.captureEvent("discover",E.title,{attributes:{to:E.location},value:x})},[x,E,I,Z]);return(0,o.jsx)(p.Z,{divider:!0,alignItems:j,onClickCapture:m,...F,children:R})},b=C=>{const{name:x,component:E,predicate:I=()=>!0}=C;return(0,S.YO)({name:x,component:{lazy:()=>E().then(R=>j=>(0,o.jsx)(g,{rank:j.rank,result:j.result,noTrack:j.noTrack,children:(0,i.createElement)(R,j)}))},data:{[f]:I}})},A=C=>{const x=useElementFilter(C,E=>E.selectByComponentData({key:f}).getElements(),[C]);return useCallback((E,I)=>{const R=l(x,E);return _jsx(Fragment,{children:R!=null?R:_jsx(g,{rank:E.rank,result:E.document,children:_jsx(DefaultResultListItem,{rank:E.rank,highlight:E.highlight,result:E.document})})},I)},[x])},P=C=>{const{results:x,children:E,...I}=C,R=A(E);return _jsx(List,{...I,children:x.map(R)})}},2296:function(V,T,t){"use strict";t.d(T,{$L:function(){return I},DR:function(){return b},KY:function(){return P},Zz:function(){return g},jM:function(){return l}});var o=t(52322),i=t(2784),d=t(73557),S=t(62584),p=t(82963),f=t(2532);const l="techdocs.addons.addon.v1",g="techdocs.addons.wrapper.v1",b=()=>null;(0,S.R)(b,g,!0);const A=R=>`${l}.${R.toLocaleLowerCase("en-US")}`;function P(R){const{name:j,component:F}=R;return(0,p.YO)({name:j,component:{sync:Z=>(0,o.jsx)(F,{...Z})},data:{[l]:R,[A(j)]:!0}})}const C=(R,j)=>R.selectByComponentData({key:j}).getElements()[0],x=R=>R.selectByComponentData({key:g}).selectByComponentData({key:l}),E=R=>R.selectByComponentData({key:g}).findComponentData({key:l}),I=()=>{const R=(0,d.pC)(),j=(0,f.v)(R,x),F=(0,f.v)(R,E),Z=(0,i.useCallback)(st=>{if(!j||!st)return null;const q=A(st.name);var H;return(H=C(j,q))!==null&&H!==void 0?H:null},[j]),m=(0,i.useCallback)(st=>{const q=F.find(H=>H.name===st);return q?Z(q):null},[F,Z]),G=(0,i.useCallback)(st=>{const q=F.filter(H=>H.location===st);return q.length?q.map(Z):null},[F,Z]);return{renderComponentByName:m,renderComponentsByLocation:G}}},58496:function(V,T,t){"use strict";t.d(T,{D:function(){return d},g:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"plugin.techdocs.service"}),d=(0,o.T)({id:"plugin.techdocs.storageservice"})},68979:function(V,T,t){"use strict";t.d(T,{Z:function(){return R},x:function(){return j}});var o=t(52322),i=t(2784),d=t(64279),S=t(77446),p=t(74314),f=t(29651),l=t(68993),g=t(44394),b=t(6542),A=t(72388),P=t(58496);function C(F,Z){return Z.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")||(F.kind=F.kind.toLocaleLowerCase(),F.name=F.name.toLocaleLowerCase(),F.namespace=F.namespace.toLocaleLowerCase()),F}const x=(F,Z)=>(0,p.eE)(F)===(0,p.eE)(Z),E={title:"",subtitle:"",setTitle:()=>{},setSubtitle:()=>{},setShadowRoot:()=>{},metadata:{loading:!0},entityMetadata:{loading:!0},entityRef:{kind:"",name:"",namespace:""}},I=(0,f.CT)("techdocs-reader-page-context"),R=(0,i.memo)(F=>{const{entityRef:Z,children:m}=F,G=(0,g.h_)(P.g),st=(0,g.h_)(b.D),q=(0,d.default)(async()=>G.getEntityMetadata(Z),[Z]),H=(0,S.Z)(async()=>G.getTechDocsMetadata(Z),[Z]),[z,k]=(0,i.useState)(E.title),[et,rt]=(0,i.useState)(E.subtitle),[At,Ct]=(0,i.useState)(E.shadowRoot);(0,i.useEffect)(()=>{At&&!H.value&&!H.loading&&H.retry()},[H.value,H.loading,At,H.retry,H]);const ut={metadata:H,entityRef:C(Z,st),entityMetadata:q,shadowRoot:At,setShadowRoot:Ct,title:z,setTitle:k,subtitle:et,setSubtitle:rt},Ot=(0,l.E)({1:ut});return(0,o.jsx)(A.fC,{attributes:{entityRef:(0,p.eE)(Z)},children:(0,o.jsx)(I.Provider,{value:Ot,children:m instanceof Function?m(ut):m})})},(F,Z)=>x(F.entityRef,Z.entityRef)),j=()=>{const F=(0,i.useContext)(I);if(F===void 0)return E;const Z=F.atVersion(1);if(Z===void 0)throw new Error("No context found for version 1.");return Z}},57058:function(V,T,t){"use strict";t.d(T,{o:function(){return o}});const o=Object.freeze({Header:"Header",Subheader:"Subheader",Settings:"Settings",PrimarySidebar:"PrimarySidebar",SecondarySidebar:"SecondarySidebar",Content:"Content"})},51953:function(V,T,t){"use strict";t.d(T,{D:function(){return o}});function o(i,d){return d.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")?i:i.toLocaleLowerCase("en-US")}},29895:function(V,T,t){"use strict";t.d(T,{u:function(){return H}});var o=t(52322),i=t(2784),d=t(42398),S=t(30706),p=t(13788),f=t(25942),l=t(30389),g=t(23433),b=t(63833),A=t(97894),P=t(42081),C=t(88797);class x{getCatalogFilters(){return{"metadata.annotations.backstage.io/techdocs-ref":C.n}}}const E=()=>{const{updateFilters:z}=(0,f.wp)();return(0,i.useEffect)(()=>{z({techdocs:new x})},[z]),null};var I=t(95074),R=t(76635),j=t(538),F=t(9791),Z=t(42870),m=t(16787),G=t(45342),st=t(49079);const q=z=>{var k;const{columns:et,actions:rt,options:At}=z,{loading:Ct,error:ut,entities:Ot,filters:xt}=(0,f.wp)(),{isStarredEntity:Pt,toggleStarredEntity:ot}=(0,Z.C)(),[,U]=(0,I.Z)();var _;const J=(0,R.capitalize)((_=(k=xt.user)===null||k===void 0?void 0:k.value)!==null&&_!==void 0?_:"all"),at=[G.n.createCopyDocsUrlAction(U),G.n.createStarEntityAction(Pt,ot)];return ut?(0,o.jsx)(j.G,{severity:"error",title:"Could not load available documentation.",children:(0,o.jsx)(F.O,{language:"text",text:ut.toString()})}):(0,o.jsx)(m.H,{title:J,entities:Ot,loading:Ct,actions:rt||at,columns:et,options:At})};q.columns=st.N,q.actions=G.n;const H=z=>{const{initialFilter:k="owned",columns:et,actions:rt}=z;return(0,o.jsx)(P.j,{children:(0,o.jsxs)(d.V,{children:[(0,o.jsx)(S.y,{title:"",children:(0,o.jsx)(p.q,{children:"Discover documentation in your ecosystem."})}),(0,o.jsx)(f.UO,{children:(0,o.jsxs)(l._i,{children:[(0,o.jsxs)(l._i.Filters,{children:[(0,o.jsx)(E,{}),(0,o.jsx)(g.E,{initialFilter:k}),(0,o.jsx)(b.d,{}),(0,o.jsx)(A.x,{})]}),(0,o.jsx)(l._i.Content,{children:(0,o.jsx)(q,{actions:rt,columns:et})})]})})]})})}},16787:function(V,T,t){"use strict";t.d(T,{H:function(){return j}});var o=t(52322),i=t(2784),d=t(95074),S=t(37321),p=t(44394),f=t(6542),l=t(8709),g=t(75435),b=t(86540),A=t(95573),P=t(84462),C=t(70249),x=t(15929),E=t(45342),I=t(49079),R=t(51953);const j=F=>{const{entities:Z,title:m,loading:G,columns:st,actions:q,options:H}=F,[,z]=(0,d.Z)(),k=(0,S.t)(A.Fw),et=(0,p.h_)(f.D);if(!Z)return null;const rt=Z.map(xt=>{const Pt=(0,g.h)(xt,l.S4);var ot;return{entity:xt,resolved:{docsUrl:k({namespace:(0,R.D)((ot=xt.metadata.namespace)!==null&&ot!==void 0?ot:"default",et),kind:(0,R.D)(xt.kind,et),name:(0,R.D)(xt.metadata.name,et)}),ownedByRelations:Pt,ownedByRelationsTitle:Pt.map(U=>(0,b.$)(U,{defaultKind:"group"})).join(", ")}}}),At=[I.N.createNameColumn(),I.N.createOwnerColumn(),I.N.createKindColumn(),I.N.createTypeColumn()],Ct=[E.n.createCopyDocsUrlAction(z)],ut=20,Ot=rt&&rt.length>ut;return(0,o.jsx)(o.Fragment,{children:G||rt&&rt.length>0?(0,o.jsx)(P.i,{isLoading:G,options:{paging:Ot,pageSize:ut,search:!0,actionsColumnIndex:-1,...H},data:rt,columns:st||At,actions:q||Ct,title:m?`${m} (${rt.length})`:`All (${rt.length})`}):(0,o.jsx)(C.u,{missing:"data",title:"No documents to show",description:"Create your own document. Check out our Getting Started Information",action:(0,o.jsx)(x.Q,{color:"primary",to:"https://backstage.io/docs/features/techdocs/getting-started",variant:"contained",children:"DOCS"})})})};j.columns=I.N,j.actions=E.n},45342:function(V,T,t){"use strict";t.d(T,{n:function(){return g}});var o=t(52322),i=t(2784),d=t(39981),S=t(2337),p=t(11640),f=t(28347);const l=(0,S.Z)({root:{color:"#f3ba37"}})(p.Z),g={createCopyDocsUrlAction(b){return A=>({icon:()=>(0,o.jsx)(d.Z,{fontSize:"small"}),tooltip:"Click to copy documentation link to clipboard",onClick:()=>b(`${window.location.origin}${A.resolved.docsUrl}`)})},createStarEntityAction(b,A){return P=>{const C=P.entity,x=b(C);return{cellStyle:{paddingLeft:"1em"},icon:()=>x?(0,o.jsx)(l,{}):(0,o.jsx)(f.Z,{}),tooltip:x?"Remove from favorites":"Add to favorites",onClick:()=>A(C)}}}}},49079:function(V,T,t){"use strict";t.d(T,{N:function(){return A}});var o=t(52322),i=t(2784),d=t(62774),S=t(79692);const p=(0,S.Z)(P=>({value:{marginBottom:P.spacing(.75)},subvalue:{color:P.palette.textSubtle,fontWeight:"normal"}}),{name:"BackstageSubvalueCell"});function f(P){const{value:C,subvalue:x}=P,E=p();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Z,{className:E.value,children:C}),(0,o.jsx)(d.Z,{className:E.subvalue,children:x})]})}var l=t(98864),g=t(68138);function b(P){return P.metadata.title||P.metadata.name}const A={createNameColumn(){return{title:"Document",field:"entity.metadata.name",highlight:!0,render:P=>(0,o.jsx)(f,{value:(0,o.jsx)(l.rU,{to:P.resolved.docsUrl,children:b(P.entity)}),subvalue:P.entity.metadata.description})}},createOwnerColumn(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:P})=>(0,o.jsx)(g.r,{entityRefs:P.ownedByRelations,defaultKind:"group"})}},createKindColumn(){return{title:"Kind",field:"entity.kind"}},createTypeColumn(){return{title:"Type",field:"entity.spec.type"}}}},42081:function(V,T,t){"use strict";t.d(T,{j:function(){return f}});var o=t(52322),i=t(2784),d=t(32166),S=t(44394),p=t(6542);const f=l=>{const{children:g}=l,b=(0,S.h_)(p.D);var A;const P=`Documentation available in ${(A=b.getOptionalString("organization.name"))!==null&&A!==void 0?A:"Backstage"}`;return(0,o.jsx)(d.g,{title:"Documentation",subtitle:P,themeId:"documentation",children:g})}},4577:function(V,T,t){"use strict";t.d(T,{Jl:function(){return Ot},I6:function(){return xt},s4:function(){return rt}});var o=t(58496),i=t(87612),d=t(41385),S=t(48998),p=t(30474);class f extends Error{constructor(U,_){var J,at;let ct=U;if(_!==void 0){const W=(0,S.n)(_);ct?ct+=`; caused by ${W}`:ct=`caused by ${W}`}super(ct),(0,i._)(this,"cause",void 0),(J=(at=Error).captureStackTrace)===null||J===void 0||J.call(at,this,this.constructor),(!this.name||this.name==="Error")&&this.constructor.name!=="Error"&&(this.name=this.constructor.name),this.cause=(0,p.V)(_)?_:void 0}}class l extends null{constructor(...U){super(...U),_define_property(this,"name","InputError")}}class g extends null{constructor(...U){super(...U),_define_property(this,"name","AuthenticationError")}}class b extends null{constructor(...U){super(...U),_define_property(this,"name","NotAllowedError")}}class A extends f{constructor(...U){super(...U),(0,i._)(this,"name","NotFoundError")}}class P extends null{constructor(...U){super(...U),_define_property(this,"name","ConflictError")}}class C extends null{constructor(...U){super(...U),_define_property(this,"name","NotModifiedError")}}class x extends null{constructor(...U){super(...U),_define_property(this,"name","NotImplementedError")}}class E extends null{}class I extends null{constructor(U,_){super(U,_),this.name=isError(_)?_.name:"Error"}}var R=t(54847);class j{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getTechDocsMetadata(U){const{kind:_,namespace:J,name:at}=U,W=`${await this.getApiOrigin()}/metadata/techdocs/${J}/${_}/${at}`,K=await this.fetchApi.fetch(`${W}`);if(!K.ok)throw await d.V.fromResponse(K);return await K.json()}async getEntityMetadata(U){const{kind:_,namespace:J,name:at}=U,W=`${await this.getApiOrigin()}/metadata/entity/${J}/${_}/${at}`,K=await this.fetchApi.fetch(`${W}`);if(!K.ok)throw await d.V.fromResponse(K);return await K.json()}constructor(U){(0,i._)(this,"configApi",void 0),(0,i._)(this,"discoveryApi",void 0),(0,i._)(this,"fetchApi",void 0),this.configApi=U.configApi,this.discoveryApi=U.discoveryApi,this.fetchApi=U.fetchApi}}class F{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){var U;return(U=this.configApi.getOptionalString("techdocs.storageUrl"))!==null&&U!==void 0?U:`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(U,_){const{kind:J,namespace:at,name:ct}=U,K=`${await this.getStorageUrl()}/${at}/${J}/${ct}/${_}`,pt=await this.fetchApi.fetch(`${K.endsWith("/")?K:`${K}/`}index.html`);let yt="";switch(pt.status){case 404:throw yt="Page not found. ",_||(yt+="This could be because there is no index.md file in the root of the docs directory of this repository."),new A(yt);case 500:throw yt="Could not generate documentation or an error in the TechDocs backend. ",new Error(yt);default:break}return pt.text()}async syncEntityDocs(U,_=()=>{}){const{kind:J,namespace:at,name:ct}=U,K=`${await this.getApiOrigin()}/sync/${at}/${J}/${ct}`,{token:pt}=await this.identityApi.getCredentials();return new Promise((yt,ht)=>{const ft=new R.EventSourcePolyfill(K,{withCredentials:!0,headers:pt?{Authorization:`Bearer ${pt}`}:{}});ft.addEventListener("log",lt=>{lt.data&&_(JSON.parse(lt.data))}),ft.addEventListener("finish",lt=>{let Tt=!1;lt.data&&({updated:Tt}=JSON.parse(lt.data)),yt(Tt?"updated":"cached")}),ft.onerror=lt=>{switch(ft.close(),lt.status){case 404:ht(new A(lt.message));return;default:ht(new Error(lt.data));return}}})}async getBaseUrl(U,_,J){const{kind:at,namespace:ct,name:W}=_,pt=`${await this.getApiOrigin()}/static/docs/${ct}/${at}/${W}/${J}`;return new URL(U,pt.endsWith("/")?pt:`${pt}/`).toString()}constructor(U){(0,i._)(this,"configApi",void 0),(0,i._)(this,"discoveryApi",void 0),(0,i._)(this,"identityApi",void 0),(0,i._)(this,"fetchApi",void 0),this.configApi=U.configApi,this.discoveryApi=U.discoveryApi,this.identityApi=U.identityApi,this.fetchApi=U.fetchApi}}var Z=t(95573),m=t(15006),G=t(42380),st=t(6542),q=t(96727),H=t(77186),z=t(85094),k=t(82963),et=t(53945);const rt=(0,m.r)({id:"techdocs",apis:[(0,G.n)({api:o.D,deps:{configApi:st.D,discoveryApi:q.N,identityApi:H.$,fetchApi:z.g},factory:({configApi:ot,discoveryApi:U,identityApi:_,fetchApi:J})=>new F({configApi:ot,discoveryApi:U,identityApi:_,fetchApi:J})}),(0,G.n)({api:o.g,deps:{configApi:st.D,discoveryApi:q.N,fetchApi:z.g},factory:({configApi:ot,discoveryApi:U,fetchApi:_})=>new j({configApi:ot,discoveryApi:U,fetchApi:_})})],routes:{root:Z._Z,docRoot:Z.Fw,entityContent:Z.pd}}),At=rt.provide((0,k.P4)({name:"TechdocsPage",component:()=>t.e(967).then(t.bind(t,80967)).then(ot=>ot.Router),mountPoint:Z._Z})),Ct=rt.provide((0,k.P4)({name:"EntityTechdocsContent",component:()=>t.e(967).then(t.bind(t,80967)).then(ot=>ot.EmbeddedDocsRouter),mountPoint:Z.pd})),ut=rt.provide((0,k.P4)({name:"TechDocsCustomHome",component:()=>t.e(2924).then(t.bind(t,12924)).then(ot=>ot.TechDocsCustomHome),mountPoint:Z._Z})),Ot=rt.provide((0,k.P4)({name:"TechDocsIndexPage",component:()=>t.e(8662).then(t.bind(t,18662)).then(ot=>ot.TechDocsIndexPage),mountPoint:Z._Z})),xt=rt.provide((0,k.P4)({name:"TechDocsReaderPage",component:()=>t.e(5914).then(t.bind(t,35914)).then(ot=>ot.TechDocsReaderPage),mountPoint:Z.Fw})),Pt=rt.provide((0,et.E5)({name:"TechDocsSearchResultListItem",component:()=>Promise.resolve().then(t.bind(t,55511)).then(ot=>ot.TechDocsSearchResultListItem),predicate:ot=>ot.type==="techdocs"}))},77873:function(V,T,t){"use strict";t.d(T,{F:function(){return Fo}});var o=t(52322),i=t(2784),d=t(79692),S=t(60905),p=t(68979),f=t(70882),l=t(50236),g=t(19219),b=t(55015);const A="TECH_DOCS_SHADOW_DOM_STYLE_LOAD",P=h=>{(0,i.useEffect)(()=>{if(!h)return()=>{};const O=h.querySelectorAll('head > link[rel="stylesheet"]');var M;let N=(M=O==null?void 0:O.length)!==null&&M!==void 0?M:0;const Y=new CustomEvent(A);if(!N)return h.dispatchEvent(Y),()=>{};const Q=()=>{--N===0&&h.dispatchEvent(Y)};return O==null||O.forEach(nt=>{nt.addEventListener("load",Q)}),()=>{O==null||O.forEach(nt=>{nt.removeEventListener("load",Q)})}},[h])},C=h=>{const[O,M]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!h)return()=>{};M(!0);const N=h.style;N.setProperty("opacity","0");const Y=()=>{M(!1),N.setProperty("opacity","1")};return h.addEventListener(A,Y),()=>{h.removeEventListener(A,Y)}},[h]),O},x=h=>{const{element:O,onAppend:M,children:N}=h,[Y,Q]=(0,i.useState)((0,f.Ue)({...(0,l.Z)(),insertionPoint:void 0}));P(O);const nt=C(O),St=(0,i.useCallback)(wt=>{if(!O||!wt)return;Q((0,f.Ue)({...(0,l.Z)(),insertionPoint:O.querySelector("head")||void 0}));let Lt=wt.shadowRoot;Lt||(Lt=wt.attachShadow({mode:"open"})),Lt.replaceChildren(O),typeof M=="function"&&M(Lt)},[O,M]);return(0,o.jsxs)(o.Fragment,{children:[nt&&(0,o.jsx)(b.E,{}),(0,o.jsxs)(g.ZP,{jss:Y,sheetsManager:new Map,children:[(0,o.jsx)("div",{ref:St,"data-testid":"techdocs-native-shadowroot"}),N]})]})};var E=t(54073);const I=()=>{const{shadowRoot:h}=(0,p.x)();return h},R=h=>{const O=I();return O?h.map(M=>O==null?void 0:O.querySelectorAll(M)).filter(M=>M.length).map(M=>Array.from(M)).flat():[]},j=h=>h.toString()&&h.rangeCount&&h.getRangeAt(0).getBoundingClientRect().top,F=(h=0)=>{const O=I(),[M,N]=useState(null),Y=useMemo(()=>debounce(()=>{const Q=O,nt=Q.getSelection?Q.getSelection():document.getSelection();nt&&j(nt)?N(nt):N(null)},h),[O,N,h]);return useEffect(()=>(window.document.addEventListener("selectionchange",Y),()=>{Y.cancel(),window.document.removeEventListener("selectionchange",Y)}),[Y]),M};var Z=t(87435),m=t(42398),G=t(76635),st=t(64279),q=t(1849),H=t(29651),z=t(68993),k=t(44394),et=t(72388),rt=t(6542),At=t(95965);const Ct=(0,At.T)({id:"plugin.search.queryservice"});class ut{query(){return Promise.resolve(this.mockedResults||{results:[]})}constructor(O){_define_property(this,"mockedResults",void 0),this.mockedResults=O}}const Ot=(0,H.CT)("search-context"),xt=()=>{const h=(0,i.useContext)(Ot);if(!h)throw new Error("useSearch must be used within a SearchContextProvider");const O=h.atVersion(1);if(!O)throw new Error("No SearchContext v1 found");return O},Pt=()=>(0,i.useContext)(Ot)!==void 0,ot={term:"",types:[],filters:{},pageLimit:void 0,pageCursor:void 0},U=(h=ot)=>{var O,M,N,Y;const Q=(0,k.h_)(Ct),[nt,St]=(0,i.useState)(h.term),[wt,Lt]=(0,i.useState)(h.types),[Bt,Kt]=(0,i.useState)(h.filters),[bt,de]=(0,i.useState)(h.pageLimit),[le,Ut]=(0,i.useState)(h.pageCursor),Nt=(0,q.Z)(nt),ne=(0,q.Z)(Bt),te=(0,st.default)(()=>Q.query({term:nt,types:wt,filters:Bt,pageLimit:bt,pageCursor:le}),[nt,wt,Bt,bt,le]),$t=!te.loading&&!te.error&&((O=te.value)===null||O===void 0?void 0:O.nextPageCursor),zt=!te.loading&&!te.error&&((M=te.value)===null||M===void 0?void 0:M.previousPageCursor),Jt=(0,i.useCallback)(()=>{var ue;Ut((ue=te.value)===null||ue===void 0?void 0:ue.nextPageCursor)},[(N=te.value)===null||N===void 0?void 0:N.nextPageCursor]),ve=(0,i.useCallback)(()=>{var ue;Ut((ue=te.value)===null||ue===void 0?void 0:ue.previousPageCursor)},[(Y=te.value)===null||Y===void 0?void 0:Y.previousPageCursor]);return(0,i.useEffect)(()=>{Nt!==void 0&&nt!==Nt&&Ut(void 0)},[nt,Nt,Ut]),(0,i.useEffect)(()=>{ne!==void 0&&!(0,G.isEqual)(Bt,ne)&&Ut(void 0)},[Bt,ne,Ut]),{result:te,term:nt,setTerm:St,types:wt,setTypes:Lt,filters:Bt,setFilters:Kt,pageLimit:bt,setPageLimit:de,pageCursor:le,setPageCursor:Ut,fetchNextPage:$t?Jt:void 0,fetchPreviousPage:zt?ve:void 0}},_=h=>{const{initialState:O,children:M}=h,N=U(O);return(0,o.jsx)(et.fC,{attributes:{searchTypes:N.types.sort().join(",")},children:(0,o.jsx)(Ot.Provider,{value:(0,z.E)({1:N}),children:M})})},J=h=>{const{initialState:O,inheritParentContextIfAvailable:M,children:N}=h,Y=Pt(),Q=(0,k.h_)(rt.D),nt=O!=null?O:{},St=Q.has("search.query.pageLimit")?{pageLimit:Q.getNumber("search.query.pageLimit")}:{},wt={...ot,...nt,...St};return Y&&M?(0,o.jsx)(o.Fragment,{children:N}):(0,o.jsx)(_,{initialState:wt,children:N})};var at=t(4614),ct=t(88013),W=t(50581),K=t(61837),pt=t(86619),yt=t(77277),ht=t(21853),ft=t(48760),lt=t(62369);const Tt=({children:h})=>{var O;const M=Bt=>(0,q.Z)(Bt)!==Bt,N=(0,lt.z)(),{term:Y,result:Q}=xt();var nt;const St=(nt=(O=Q.value)===null||O===void 0?void 0:O.numberOfResults)!==null&&nt!==void 0?nt:void 0,Lt=M(Q.loading)&&!Q.loading;return(0,i.useEffect)(()=>{Y&&Lt&&N.captureEvent("search",Y,{value:St})},[N,Y,St,Lt]),(0,o.jsx)(o.Fragment,{children:h})};function Rt(h){return(0,i.forwardRef)((O,M)=>(0,o.jsx)(J,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(h,{...O,ref:M})}))}const It=Rt((0,i.forwardRef)((h,O)=>{const{onChange:M,onKeyDown:N=()=>{},onClear:Y=()=>{},onSubmit:Q=()=>{},debounceTime:nt=200,clearButton:St=!0,fullWidth:wt=!0,value:Lt,label:Bt,placeholder:Kt,inputProps:bt={},InputProps:de={},endAdornment:le,...Ut}=h,Nt=(0,k.h_)(rt.D),[ne,te]=(0,i.useState)(""),$t=(0,i.useRef)("");(0,i.useEffect)(()=>{te(oe=>oe===$t.current?String(Lt):oe)},[Lt,$t]),(0,ft.Z)(()=>{$t.current=ne,M(ne)},nt,[ne]);const zt=(0,i.useCallback)(oe=>{te(oe.target.value)},[te]),Jt=(0,i.useCallback)(oe=>{N&&N(oe),Q&&oe.key==="Enter"&&Q()},[N,Q]),ve=(0,i.useCallback)(()=>{$t.current="",M(""),te(""),Y&&Y()},[M,Y]),Se=Bt?void 0:"Search",ue=Kt!=null?Kt:`Search in ${Nt.getOptionalString("app.title")||"Backstage"}`,Le=(0,o.jsx)(W.Z,{position:"start",children:(0,o.jsx)(K.Z,{"aria-label":"Query",size:"small",disabled:!0,children:(0,o.jsx)(ht.Z,{})})}),Ve=(0,o.jsx)(W.Z,{position:"end",children:(0,o.jsx)(yt.Z,{"aria-label":"Clear",size:"small",onClick:ve,onKeyDown:oe=>{oe.key==="Enter"&&oe.stopPropagation()},children:"Clear"})});return(0,o.jsx)(Tt,{children:(0,o.jsx)(pt.Z,{id:"search-bar-text-field","data-testid":"search-bar-next",variant:"outlined",margin:"normal",inputRef:O,value:ne,label:Bt,placeholder:ue,InputProps:{startAdornment:Le,endAdornment:St?Ve:le,...de},inputProps:{"aria-label":Se,...bt},fullWidth:wt,onChange:zt,onKeyDown:Jt,...Ut})})})),Gt=Rt((0,i.forwardRef)((h,O)=>{const{value:M="",onChange:N,...Y}=h,{term:Q,setTerm:nt}=xt();(0,i.useEffect)(()=>{M&&nt(String(M))},[M,nt]);const St=(0,i.useCallback)(wt=>{N?N(wt):nt(wt)},[N,nt]);return(0,o.jsx)(et.fC,{attributes:{pluginId:"search",extension:"SearchBar"},children:(0,o.jsx)(It,{...Y,ref:O,value:Q,onChange:St})})})),Qt=(0,d.Z)(h=>({loading:{right:h.spacing(1),position:"absolute"}})),pe=h=>O=>(0,o.jsx)(J,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(h,{...O})}),kt=()=>{const h=Qt();return(0,o.jsx)(at.Z,{className:h.loading,"data-testid":"search-autocomplete-progressbar",color:"inherit",size:20})},Wt=pe(function(O){const{loading:M,value:N,onChange:Y=()=>{},options:Q=[],getOptionLabel:nt=$t=>String($t),inputPlaceholder:St,inputDebounceTime:wt,freeSolo:Lt=!0,fullWidth:Bt=!0,clearOnBlur:Kt=!1,"data-testid":bt="search-autocomplete",...de}=O,{setTerm:le}=xt(),Ut=(0,i.useCallback)($t=>$t?typeof $t=="string"?$t:nt($t):"",[nt]),Nt=(0,i.useMemo)(()=>Ut(N),[N,Ut]),ne=(0,i.useCallback)(($t,zt,Jt,ve)=>{le(Ut(zt)),Y($t,zt,Jt,ve)},[Ut,le,Y]),te=(0,i.useCallback)(({InputProps:{ref:$t,className:zt,endAdornment:Jt},InputLabelProps:ve,...Se})=>(0,o.jsx)(Gt,{...Se,ref:$t,clearButton:!1,value:Nt,placeholder:St,debounceTime:wt,endAdornment:M?(0,o.jsx)(kt,{}):Jt,InputProps:{className:zt}}),[M,Nt,St,wt]);return(0,o.jsx)(ct.ZP,{...de,"data-testid":bt,value:N,onChange:ne,options:Q,getOptionLabel:nt,renderInput:te,freeSolo:Lt,fullWidth:Bt,clearOnBlur:Kt})});var Yt=t(73557),se=t(55511);const be=h=>h==null?void 0:h.document,Pe=h=>{const{entityId:O,entityTitle:M,debounceTime:N=150}=h,[Y,Q]=(0,i.useState)(!1),nt=(0,Yt.s0)(),{setFilters:St,result:{loading:wt,value:Lt}}=xt(),[Bt,Kt]=(0,i.useState)([]);(0,i.useEffect)(()=>{let Nt=!0;if(Nt&&Lt){const ne=Lt.results.slice(0,10);Kt(ne)}return()=>{Nt=!1}},[wt,Lt]);const{kind:bt,name:de,namespace:le}=O;(0,i.useEffect)(()=>{St(Nt=>({...Nt,kind:bt,namespace:le,name:de}))},[bt,le,de,St]);const Ut=(Nt,ne)=>{if(be(ne)){const{location:te}=ne.document;nt(te)}};return(0,o.jsx)(Wt,{"data-testid":"techdocs-search-bar",size:"small",open:Y,getOptionLabel:()=>"",filterOptions:Nt=>Nt,onClose:()=>{Q(!1)},onFocus:()=>{Q(!0)},onChange:Ut,blurOnSelect:!0,noOptionsText:"No results found",value:null,options:Bt,renderOption:({document:Nt,highlight:ne})=>(0,o.jsx)(se.TechDocsSearchResultListItem,{result:Nt,lineClamp:3,asListItem:!1,asLink:!1,title:Nt.title,highlight:ne}),loading:wt,inputDebounceTime:N,inputPlaceholder:`Search ${M||O.name} docs`,freeSolo:!1})},Ue=h=>{const O={term:"",types:["techdocs"],pageCursor:"",filters:h.entityId};return(0,o.jsx)(J,{initialState:O,children:(0,o.jsx)(Pe,{...h})})};var Ie=t(99688),Qe=t(80851);const ze=(0,i.lazy)(()=>Promise.all([t.e(8629),t.e(6051)]).then(t.bind(t,76051)).then(h=>({default:h.RealLogViewer})));function ye(h){const{Progress:O}=(0,Qe.q)().getComponents();return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(O,{}),children:(0,o.jsx)(ze,{...h})})}var Je=t(42494),Xe=t(90436),He=t(4190),re=t(87685);const qe=(0,d.Z)(h=>(0,Je.Z)({paper:{width:"100%",[h.breakpoints.up("sm")]:{width:"75%"},[h.breakpoints.up("md")]:{width:"50%"},padding:h.spacing(2.5)},root:{height:"100%",overflow:"hidden"},logs:{background:h.palette.background.default}})),Re=({buildLog:h,onClose:O})=>{const M=qe(),N=h.length===0?"Waiting for logs...":h.join(`
2
+ `);return(0,o.jsxs)(S.Z,{container:!0,direction:"column",className:M.root,spacing:0,wrap:"nowrap",children:[(0,o.jsxs)(S.Z,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",spacing:0,wrap:"nowrap",children:[(0,o.jsx)(Xe.Z,{variant:"h5",children:"Build Details"}),(0,o.jsx)(K.Z,{title:"Close the drawer",onClick:O,color:"inherit",children:(0,o.jsx)(re.Z,{})},"dismiss")]}),(0,o.jsx)(S.Z,{item:!0,xs:!0,children:(0,o.jsx)(ye,{text:N,classes:{root:M.logs}})})]})},Te=({buildLog:h})=>{const O=qe(),[M,N]=(0,i.useState)(!1);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(yt.Z,{color:"inherit",onClick:()=>N(!0),children:"Show Build Logs"}),(0,o.jsx)(He.ZP,{classes:{paper:O.paper},anchor:"right",open:M,onClose:()=>N(!1),children:(0,o.jsx)(Re,{buildLog:h,onClose:()=>N(!1)})})]})},je=({errorMessage:h})=>{const O=(0,k.h_)(rt.D).getOptionalString("techdocs.builder");let M="";return O!=="local"&&(M="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,o.jsx)(Z.m,{status:"404",statusMessage:h||"Documentation not found",additionalInfo:M})};var he=t(77446),$e=t(58496);function Fe({contentLoading:h,content:O,activeSyncState:M}){return h||M==="BUILD_READY_RELOAD"||!O&&M==="CHECKING"?"CHECKING":!O&&M==="BUILDING"?"INITIAL_BUILD":O?M==="BUILDING"?"CONTENT_STALE_REFRESHING":M==="BUILD_READY"?"CONTENT_STALE_READY":M==="ERROR"?"CONTENT_STALE_ERROR":"CONTENT_FRESH":"CONTENT_NOT_FOUND"}function L(h,O){const M={...h};switch(O.type){case"sync":O.state==="CHECKING"&&(M.buildLog=[]),M.activeSyncState=O.state,M.syncError=O.syncError;break;case"contentLoading":M.contentLoading=!0,M.contentError=void 0;break;case"content":typeof O.path=="string"&&(M.path=O.path),M.contentLoading=!1,M.content=O.content,M.contentError=O.contentError;break;case"buildLog":M.buildLog=M.buildLog.concat(O.log);break;default:throw new Error}return["BUILD_READY","BUILD_READY_RELOAD"].includes(M.activeSyncState)&&["contentLoading","content"].includes(O.type)&&(M.activeSyncState="UP_TO_DATE",M.buildLog=[]),M}function u(h,O,M,N){var Y,Q;const[nt,St]=(0,i.useReducer)(L,{activeSyncState:"CHECKING",path:N,contentLoading:!0,buildLog:[]}),wt=(0,k.h_)($e.D),{retry:Lt}=(0,he.Z)(async()=>{St({type:"contentLoading"});try{const bt=await wt.getEntityDocs({kind:h,namespace:O,name:M},N);return St({type:"content",content:bt,path:N}),bt}catch(bt){St({type:"content",contentError:bt,path:N})}},[wt,h,O,M,N]),Bt=(0,i.useRef)({content:void 0,reload:()=>{}});return Bt.current={content:nt.content,reload:Lt},(0,st.default)(async()=>{St({type:"sync",state:"CHECKING"});const bt=setTimeout(()=>{St({type:"sync",state:"BUILDING"})},1e3);try{switch(await wt.syncEntityDocs({kind:h,namespace:O,name:M},le=>{St({type:"buildLog",log:le})})){case"updated":Bt.current.content?St({type:"sync",state:"BUILD_READY"}):(Bt.current.reload(),St({type:"sync",state:"BUILD_READY_RELOAD"}));break;case"cached":St({type:"sync",state:"UP_TO_DATE"});break;default:St({type:"sync",state:"ERROR",syncError:new Error("Unexpected return state")});break}}catch(de){St({type:"sync",state:"ERROR",syncError:de})}finally{clearTimeout(bt)}},[h,M,O,wt,St,Bt]),{state:(0,i.useMemo)(()=>Fe({activeSyncState:nt.activeSyncState,contentLoading:nt.contentLoading,content:nt.content}),[nt.activeSyncState,nt.content,nt.contentLoading]),contentReload:Lt,path:nt.path,content:nt.content,contentErrorMessage:(Y=nt.contentError)===null||Y===void 0?void 0:Y.toString(),syncErrorMessage:(Q=nt.syncError)===null||Q===void 0?void 0:Q.toString(),buildLog:nt.buildLog}}const D=(0,i.createContext)({}),B=()=>(0,i.useContext)(D),tt=h=>{const{children:O}=h,{"*":M=""}=(0,Yt.UO)(),{entityRef:N}=(0,p.x)(),{kind:Y,namespace:Q,name:nt}=N,St=u(Y,Q,nt,M);return(0,o.jsx)(D.Provider,{value:St,children:O instanceof Function?O(St):O})},dt=h=>O=>(0,o.jsx)(tt,{children:(0,o.jsx)(h,{...O})}),Et=(0,d.Z)(h=>({root:{marginBottom:h.spacing(2)},message:{wordBreak:"break-word",overflowWrap:"anywhere"}})),Vt=()=>{let h=null;const O=Et(),{state:M,contentReload:N,contentErrorMessage:Y,syncErrorMessage:Q,buildLog:nt}=B();return M==="INITIAL_BUILD"&&(h=(0,o.jsx)(Ie.Z,{classes:{root:O.root},variant:"outlined",severity:"info",icon:(0,o.jsx)(at.Z,{size:"24px"}),action:(0,o.jsx)(Te,{buildLog:nt}),children:"Documentation is accessed for the first time and is being prepared. The subsequent loads are much faster."})),M==="CONTENT_STALE_REFRESHING"&&(h=(0,o.jsx)(Ie.Z,{variant:"outlined",severity:"info",icon:(0,o.jsx)(at.Z,{size:"24px"}),action:(0,o.jsx)(Te,{buildLog:nt}),classes:{root:O.root},children:"A newer version of this documentation is being prepared and will be available shortly."})),M==="CONTENT_STALE_READY"&&(h=(0,o.jsx)(Ie.Z,{variant:"outlined",severity:"success",action:(0,o.jsx)(yt.Z,{color:"inherit",onClick:()=>N(),children:"Refresh"}),classes:{root:O.root},children:"A newer version of this documentation is now available, please refresh to view."})),M==="CONTENT_STALE_ERROR"&&(h=(0,o.jsxs)(Ie.Z,{variant:"outlined",severity:"error",action:(0,o.jsx)(Te,{buildLog:nt}),classes:{root:O.root,message:O.message},children:["Building a newer version of this documentation failed."," ",Q]})),M==="CONTENT_NOT_FOUND"&&(h=(0,o.jsxs)(o.Fragment,{children:[Q&&(0,o.jsxs)(Ie.Z,{variant:"outlined",severity:"error",action:(0,o.jsx)(Te,{buildLog:nt}),classes:{root:O.root,message:O.message},children:["Building a newer version of this documentation failed."," ",Q]}),(0,o.jsx)(je,{errorMessage:Y})]})),h};var Zt=t(60364),jt=t(41156),Dt=t(91657),ie=t(35368),Ce=t.n(ie);const De=/main\.[A-Fa-f0-9]{8}\.min\.css$/,We=/^https:\/\/fonts\.googleapis\.com/,no=/^https:\/\/fonts\.gstatic\.com/,qt=h=>h.nodeName==="LINK",fe=h=>{const O=(h==null?void 0:h.getAttribute("href"))||"",M=O.match(De),N=O.match(We),Y=O.match(no);return M||N||Y},ae=h=>(qt(h)&&!fe(h)&&h.remove(),h),Tn=h=>h.nodeName==="IFRAME",oo=(h,O)=>{const M=h.getAttribute("src")||"";try{const{host:N}=new URL(M);return O.includes(N)}catch{return!1}},wn=h=>O=>(Tn(O)&&!oo(O,h)&&O.remove(),O),In=()=>{const h=(0,k.h_)(rt.D);return(0,i.useMemo)(()=>h.getOptionalConfig("techdocs.sanitizer"),[h])},Dn=()=>{const h=In();return(0,i.useCallback)(async O=>{const M=h==null?void 0:h.getOptionalStringArray("allowedIframeHosts");Ce().addHook("beforeSanitizeElements",ae);const N=["link"];return M&&(N.push("iframe"),Ce().addHook("beforeSanitizeElements",wn(M))),Ce().sanitize(O.outerHTML,{ADD_TAGS:N,FORBID_TAGS:["style"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0})},[h])};var tn=t(93539),ee=t(41128),ro=({theme:h})=>`
3
+ /*================== Variables ==================*/
4
+ /*
5
+ 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.
6
+ 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.
7
+ */
8
+
9
+ :host {
10
+ /* FONT */
11
+ --md-default-fg-color: ${h.palette.text.primary};
12
+ --md-default-fg-color--light: ${h.palette.text.secondary};
13
+ --md-default-fg-color--lighter: ${(0,ee.$n)(h.palette.text.secondary,.7)};
14
+ --md-default-fg-color--lightest: ${(0,ee.$n)(h.palette.text.secondary,.3)};
15
+
16
+ /* BACKGROUND */
17
+ --md-default-bg-color:${h.palette.background.default};
18
+ --md-default-bg-color--light: ${h.palette.background.paper};
19
+ --md-default-bg-color--lighter: ${(0,ee.$n)(h.palette.background.paper,.7)};
20
+ --md-default-bg-color--lightest: ${(0,ee.$n)(h.palette.background.paper,.3)};
21
+
22
+ /* PRIMARY */
23
+ --md-primary-fg-color: ${h.palette.primary.main};
24
+ --md-primary-fg-color--light: ${h.palette.primary.light};
25
+ --md-primary-fg-color--dark: ${h.palette.primary.dark};
26
+ --md-primary-bg-color: ${h.palette.primary.contrastText};
27
+ --md-primary-bg-color--light: ${(0,ee.$n)(h.palette.primary.contrastText,.7)};
28
+
29
+ /* ACCENT */
30
+ --md-accent-fg-color: var(--md-primary-fg-color);
31
+
32
+ /* SHADOW */
33
+ --md-shadow-z1: ${h.shadows[1]};
34
+ --md-shadow-z2: ${h.shadows[2]};
35
+ --md-shadow-z3: ${h.shadows[3]};
36
+
37
+ /* EXTENSIONS */
38
+ --md-admonition-fg-color: var(--md-default-fg-color);
39
+ --md-admonition-bg-color: var(--md-default-bg-color);
40
+ /* Admonitions and others are using SVG masks to define icons. These masks are defined as CSS variables. */
41
+ --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>');
42
+ --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>');
43
+ --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>');
44
+ --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>');
45
+ --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>');
46
+ --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>');
47
+ --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>');
48
+ --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>');
49
+ --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>');
50
+ --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>');
51
+ --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>');
52
+ --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>');
53
+ --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>');
54
+ --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>');
55
+ --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>');
56
+ --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>');
57
+ --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>');
58
+ --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>');
59
+ --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>');
60
+ --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>');
61
+ --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>');
62
+ --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>');
63
+ --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>');
64
+ --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>');
65
+ --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>');
66
+ --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>');
67
+ }
68
+
69
+ :host > * {
70
+ /* CODE */
71
+ --md-code-fg-color: ${h.palette.text.primary};
72
+ --md-code-bg-color: ${h.palette.background.paper};
73
+ --md-code-hl-color: ${(0,ee.Fq)(h.palette.warning.main,.5)};
74
+ --md-code-hl-keyword-color: ${h.palette.type==="dark"?h.palette.primary.light:h.palette.primary.dark};
75
+ --md-code-hl-function-color: ${h.palette.type==="dark"?h.palette.secondary.light:h.palette.secondary.dark};
76
+ --md-code-hl-string-color: ${h.palette.type==="dark"?h.palette.success.light:h.palette.success.dark};
77
+ --md-code-hl-number-color: ${h.palette.type==="dark"?h.palette.error.light:h.palette.error.dark};
78
+ --md-code-hl-constant-color: var(--md-code-hl-function-color);
79
+ --md-code-hl-special-color: var(--md-code-hl-function-color);
80
+ --md-code-hl-name-color: var(--md-code-fg-color);
81
+ --md-code-hl-comment-color: var(--md-default-fg-color--light);
82
+ --md-code-hl-generic-color: var(--md-default-fg-color--light);
83
+ --md-code-hl-variable-color: var(--md-default-fg-color--light);
84
+ --md-code-hl-operator-color: var(--md-default-fg-color--light);
85
+ --md-code-hl-punctuation-color: var(--md-default-fg-color--light);
86
+
87
+ /* TYPESET */
88
+ --md-typeset-font-size: 1rem;
89
+ --md-typeset-color: var(--md-default-fg-color);
90
+ --md-typeset-a-color: ${h.palette.link};
91
+ --md-typeset-table-color: ${h.palette.text.primary};
92
+ --md-typeset-del-color: ${h.palette.type==="dark"?(0,ee.Fq)(h.palette.error.dark,.5):(0,ee.Fq)(h.palette.error.light,.5)};
93
+ --md-typeset-ins-color: ${h.palette.type==="dark"?(0,ee.Fq)(h.palette.success.dark,.5):(0,ee.Fq)(h.palette.success.light,.5)};
94
+ --md-typeset-mark-color: ${h.palette.type==="dark"?(0,ee.Fq)(h.palette.warning.dark,.5):(0,ee.Fq)(h.palette.warning.light,.5)};
95
+ }
96
+
97
+ @media screen and (max-width: 76.1875em) {
98
+ :host > * {
99
+ /* TYPESET */
100
+ --md-typeset-font-size: .9rem;
101
+ }
102
+ }
103
+
104
+ @media screen and (max-width: 600px) {
105
+ :host > * {
106
+ /* TYPESET */
107
+ --md-typeset-font-size: .7rem;
108
+ }
109
+ }
110
+ `,Ge=({theme:h})=>`
111
+ /*================== Reset ==================*/
112
+
113
+ body {
114
+ --md-text-color: var(--md-default-fg-color);
115
+ --md-text-link-color: var(--md-accent-fg-color);
116
+ --md-text-font-family: ${h.typography.fontFamily};
117
+ font-family: var(--md-text-font-family);
118
+ background-color: unset;
119
+ }
120
+ `;const so="224px";var Mn=({theme:h,sidebar:O})=>`
121
+ /*================== Layout ==================*/
122
+
123
+ /* mkdocs material v9 compat */
124
+ .md-nav__title {
125
+ color: var(--md-default-fg-color);
126
+ }
127
+
128
+ .md-grid {
129
+ max-width: 100%;
130
+ margin: 0;
131
+ }
132
+
133
+ .md-nav {
134
+ font-size: calc(var(--md-typeset-font-size) * 0.9);
135
+ }
136
+ .md-nav__link {
137
+ display: flex;
138
+ align-items: center;
139
+ justify-content: space-between;
140
+ }
141
+ .md-nav__icon {
142
+ height: 20px !important;
143
+ width: 20px !important;
144
+ margin-left:${h.spacing(1)}px;
145
+ }
146
+ .md-nav__icon svg {
147
+ margin: 0;
148
+ width: 20px !important;
149
+ height: 20px !important;
150
+ }
151
+ .md-nav__icon:after {
152
+ width: 20px !important;
153
+ height: 20px !important;
154
+ }
155
+
156
+ .md-nav__item--active > .md-nav__link, a.md-nav__link--active {
157
+ text-decoration: underline;
158
+ color: var(--md-typeset-a-color);
159
+ }
160
+
161
+ .md-main__inner {
162
+ margin-top: 0;
163
+ }
164
+
165
+ .md-sidebar {
166
+ bottom: 75px;
167
+ position: fixed;
168
+ width: 16rem;
169
+ overflow-y: auto;
170
+ overflow-x: hidden;
171
+ scrollbar-color: rgb(193, 193, 193) #eee;
172
+ scrollbar-width: thin;
173
+ }
174
+ .md-sidebar .md-sidebar__scrollwrap {
175
+ width: calc(12.1rem);
176
+ }
177
+ .md-sidebar--secondary {
178
+ right: ${h.spacing(3)}px;
179
+ }
180
+ .md-sidebar::-webkit-scrollbar {
181
+ width: 5px;
182
+ }
183
+ .md-sidebar::-webkit-scrollbar-button {
184
+ width: 5px;
185
+ height: 5px;
186
+ }
187
+ .md-sidebar::-webkit-scrollbar-track {
188
+ background: #eee;
189
+ border: 1 px solid rgb(250, 250, 250);
190
+ box-shadow: 0px 0px 3px #dfdfdf inset;
191
+ border-radius: 3px;
192
+ }
193
+ .md-sidebar::-webkit-scrollbar-thumb {
194
+ width: 5px;
195
+ background: rgb(193, 193, 193);
196
+ border: transparent;
197
+ border-radius: 3px;
198
+ }
199
+ .md-sidebar::-webkit-scrollbar-thumb:hover {
200
+ background: rgb(125, 125, 125);
201
+ }
202
+
203
+ .md-content {
204
+ max-width: calc(100% - 16rem * 2);
205
+ margin-left: 16rem;
206
+ margin-bottom: 50px;
207
+ }
208
+
209
+ .md-footer {
210
+ position: fixed;
211
+ bottom: 0px;
212
+ pointer-events: none;
213
+ }
214
+
215
+ .md-footer-nav__link, .md-footer__link {
216
+ pointer-events: all;
217
+ }
218
+
219
+ .md-footer__title {
220
+ background-color: unset;
221
+ }
222
+ .md-footer-nav__link, .md-footer__link {
223
+ width: 16rem;
224
+ }
225
+
226
+ .md-dialog {
227
+ background-color: unset;
228
+ }
229
+
230
+ @media screen and (min-width: 76.25em) {
231
+ .md-sidebar {
232
+ height: auto;
233
+ }
234
+ }
235
+
236
+ @media screen and (max-width: 76.1875em) {
237
+ .md-nav {
238
+ transition: none !important;
239
+ background-color: var(--md-default-bg-color)
240
+ }
241
+ .md-nav--primary .md-nav__title {
242
+ cursor: auto;
243
+ color: var(--md-default-fg-color);
244
+ font-weight: 700;
245
+ white-space: normal;
246
+ line-height: 1rem;
247
+ height: auto;
248
+ display: flex;
249
+ flex-flow: column;
250
+ row-gap: 1.6rem;
251
+ padding: 1.2rem .8rem .8rem;
252
+ background-color: var(--md-default-bg-color);
253
+ }
254
+ .md-nav--primary .md-nav__title~.md-nav__list {
255
+ box-shadow: none;
256
+ }
257
+ .md-nav--primary .md-nav__title ~ .md-nav__list > :first-child {
258
+ border-top: none;
259
+ }
260
+ .md-nav--primary .md-nav__title .md-nav__button {
261
+ display: none;
262
+ }
263
+ .md-nav--primary .md-nav__title .md-nav__icon {
264
+ color: var(--md-default-fg-color);
265
+ position: static;
266
+ height: auto;
267
+ margin: 0 0 0 -0.2rem;
268
+ }
269
+ .md-nav--primary > .md-nav__title [for="none"] {
270
+ padding-top: 0;
271
+ }
272
+ .md-nav--primary .md-nav__item {
273
+ border-top: none;
274
+ }
275
+ .md-nav--primary :is(.md-nav__title,.md-nav__item) {
276
+ font-size : var(--md-typeset-font-size);
277
+ }
278
+ .md-nav .md-source {
279
+ display: none;
280
+ }
281
+
282
+ .md-sidebar {
283
+ height: 100%;
284
+ }
285
+ .md-sidebar--primary {
286
+ width: 12.1rem !important;
287
+ z-index: 200;
288
+ left: ${O.isPinned?`calc(-12.1rem + ${so})`:"calc(-12.1rem + 72px)"} !important;
289
+ }
290
+ .md-sidebar--secondary:not([hidden]) {
291
+ display: none;
292
+ }
293
+
294
+ .md-content {
295
+ max-width: 100%;
296
+ margin-left: 0;
297
+ }
298
+
299
+ .md-header__button {
300
+ margin: 0.4rem 0;
301
+ margin-left: 0.4rem;
302
+ padding: 0;
303
+ }
304
+
305
+ .md-overlay {
306
+ left: 0;
307
+ }
308
+
309
+ .md-footer {
310
+ position: static;
311
+ padding-left: 0;
312
+ }
313
+ .md-footer-nav__link {
314
+ /* footer links begin to overlap at small sizes without setting width */
315
+ width: 50%;
316
+ }
317
+ }
318
+
319
+ @media screen and (max-width: 600px) {
320
+ .md-sidebar--primary {
321
+ left: -12.1rem !important;
322
+ width: 12.1rem;
323
+ }
324
+ }
325
+
326
+
327
+ @media print {
328
+ .md-sidebar,
329
+ #toggle-sidebar {
330
+ display: none;
331
+ }
332
+
333
+ .md-content {
334
+ margin: 0;
335
+ width: 100%;
336
+ max-width: 100%;
337
+ }
338
+ }
339
+ `;const io=["h1","h2","h3","h4","h5","h6"];var _t=({theme:h})=>`
340
+ /*================== Typeset ==================*/
341
+
342
+ .md-typeset {
343
+ font-size: var(--md-typeset-font-size);
344
+ }
345
+
346
+ ${io.reduce((O,M)=>{var N;const Y=(N=h.typography.htmlFontSize)!==null&&N!==void 0?N:16,Q=h.typography[M],{lineHeight:nt,fontFamily:St,fontWeight:wt,fontSize:Lt}=Q,Bt=Kt=>{let bt=1;return typeof Kt=="number"&&(bt=Kt/Y*.6),typeof Kt=="string"&&(bt=Kt.replace("rem","")),`calc(${bt} * var(--md-typeset-font-size))`};return O.concat(`
347
+ .md-typeset ${M} {
348
+ color: var(--md-default-fg-color);
349
+ line-height: ${nt};
350
+ font-family: ${St};
351
+ font-weight: ${wt};
352
+ font-size: ${Bt(Lt)};
353
+ }
354
+ `)},"")}
355
+
356
+ .md-typeset .md-content__button {
357
+ color: var(--md-default-fg-color);
358
+ }
359
+
360
+ .md-typeset hr {
361
+ border-bottom: 0.05rem dotted ${h.palette.divider};
362
+ }
363
+
364
+ .md-typeset details {
365
+ font-size: var(--md-typeset-font-size) !important;
366
+ }
367
+ .md-typeset details summary {
368
+ padding-left: 2.5rem !important;
369
+ }
370
+ .md-typeset details summary:before,
371
+ .md-typeset details summary:after {
372
+ top: 50% !important;
373
+ width: 20px !important;
374
+ height: 20px !important;
375
+ transform: rotate(0deg) translateY(-50%) !important;
376
+ }
377
+ .md-typeset details[open] > summary:after {
378
+ transform: rotate(90deg) translateX(-50%) !important;
379
+ }
380
+
381
+ .md-typeset blockquote {
382
+ color: var(--md-default-fg-color--light);
383
+ border-left: 0.2rem solid var(--md-default-fg-color--light);
384
+ }
385
+
386
+ .md-typeset table:not([class]) {
387
+ font-size: var(--md-typeset-font-size);
388
+ border: 1px solid var(--md-default-fg-color);
389
+ border-bottom: none;
390
+ border-collapse: collapse;
391
+ }
392
+ .md-typeset table:not([class]) th {
393
+ font-weight: bold;
394
+ }
395
+ .md-typeset table:not([class]) td, .md-typeset table:not([class]) th {
396
+ border-bottom: 1px solid var(--md-default-fg-color);
397
+ }
398
+
399
+ .md-typeset pre > code::-webkit-scrollbar-thumb {
400
+ background-color: hsla(0, 0%, 0%, 0.32);
401
+ }
402
+ .md-typeset pre > code::-webkit-scrollbar-thumb:hover {
403
+ background-color: hsla(0, 0%, 0%, 0.87);
404
+ }
405
+ `,Be=()=>`
406
+ /*================== Animations ==================*/
407
+ /*
408
+ Disable CSS animations on link colors as they lead to issues in dark mode.
409
+ The dark mode color theme is applied later and theirfore there is always an animation from light to dark mode when navigation between pages.
410
+ */
411
+ .md-dialog, .md-nav__link, .md-footer__link, .md-typeset a, .md-typeset a::before, .md-typeset .headerlink {
412
+ transition: none;
413
+ }
414
+ `,on=({theme:h})=>`
415
+ /*================== Extensions ==================*/
416
+
417
+ /* HIGHLIGHT */
418
+ .highlight .md-clipboard:after {
419
+ content: unset;
420
+ }
421
+
422
+ .highlight .nx {
423
+ color: ${h.palette.type==="dark"?"#ff53a3":"#ec407a"};
424
+ }
425
+
426
+ /* CODE HILITE */
427
+ .codehilite .gd {
428
+ background-color: ${h.palette.type==="dark"?"rgba(248,81,73,0.65)":"#fdd"};
429
+ }
430
+
431
+ .codehilite .gi {
432
+ background-color: ${h.palette.type==="dark"?"rgba(46,160,67,0.65)":"#dfd"};
433
+ }
434
+
435
+ /* TABBED */
436
+ .tabbed-set>input:nth-child(1):checked~.tabbed-labels>:nth-child(1),
437
+ .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),
438
+ .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),
439
+ .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),
440
+ .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),
441
+ .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),
442
+ .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),
443
+ .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),
444
+ .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9),
445
+ .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),
446
+ .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),
447
+ .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),
448
+ .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),
449
+ .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),
450
+ .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),
451
+ .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),
452
+ .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),
453
+ .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),
454
+ .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),
455
+ .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20) {
456
+ color: var(--md-accent-fg-color);
457
+ border-color: var(--md-accent-fg-color);
458
+ }
459
+
460
+ /* TASK-LIST */
461
+ .task-list-control .task-list-indicator::before {
462
+ background-color: ${h.palette.action.disabledBackground};
463
+ }
464
+ .task-list-control [type="checkbox"]:checked + .task-list-indicator:before {
465
+ background-color: ${h.palette.success.main};
466
+ }
467
+
468
+ /* ADMONITION */
469
+ .admonition {
470
+ font-size: var(--md-typeset-font-size) !important;
471
+ }
472
+ .admonition .admonition-title {
473
+ padding-left: 2.5rem !important;
474
+ }
475
+
476
+ .admonition .admonition-title:before {
477
+ top: 50% !important;
478
+ width: 20px !important;
479
+ height: 20px !important;
480
+ transform: translateY(-50%) !important;
481
+ }
482
+ `;const ao=[ro,Ge,Mn,_t,Be,on],lo=()=>(0,tn.Pf)(),co=()=>{const h=lo(),O=(0,Zt.Z)();return(0,i.useMemo)(()=>{const M={theme:O,sidebar:h};return ao.reduce((N,Y)=>N+Y(M),"")},[O,h])},uo=()=>{const h=co();return(0,i.useCallback)(O=>(O.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${h}</style>`),O),[h])},rn=async(h,O)=>{let M;if(typeof h=="string")M=new DOMParser().parseFromString(h,"text/html").documentElement;else if(h instanceof Element)M=h;else throw new Error("dom is not a recognized type");for(const N of O)M=await N(M);return M},ho=(h,O,M)=>{const N=h==="src"&&O.endsWith(".svg"),Y=!O.match(/^([a-z]*:)?\/\//i),Q=O.startsWith(M);return N&&(Y||Q)},fo=({techdocsStorageApi:h,entityId:O,path:M})=>async N=>{const Y=await h.getApiOrigin(),Q=async(nt,St)=>{for(const wt of nt)if(wt.hasAttribute(St)){const Lt=wt.getAttribute(St);if(!Lt)return;const Bt=await h.getBaseUrl(Lt,O,M);if(ho(St,Lt,Y))try{const bt=await(await fetch(Bt,{credentials:"include"})).text();wt.setAttribute(St,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(bt)))}`)}catch{wt.setAttribute("alt",`Error: ${Lt}`)}else wt.setAttribute(St,Bt)}};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},go=()=>h=>(((M,N)=>{Array.from(M).filter(Y=>Y.hasAttribute(N)).forEach(Y=>{const Q=Y.getAttribute(N);if(Q){Q.match(/^https?:\/\//i)&&Y.setAttribute("target","_blank");try{const nt=po(window.location.href);Y.setAttribute(N,new URL(Q,nt).toString())}catch{Y.replaceWith(Y.textContent||Q)}}})})(Array.from(h.getElementsByTagName("a")),"href"),h);function po(h){const O=new URL(h);return!O.pathname.endsWith("/")&&!O.pathname.endsWith(".html")&&(O.pathname+="/"),O.toString()}var vo=t(44882);let Ln;Ln=Promise.resolve().then(t.t.bind(t,17029,19));function pn(h,O){Ln.then(M=>{"createRoot"in M?M.createRoot(O).render(h):M.render(h,O)})}const mo=()=>h=>{const O=h.querySelector('.md-header label[for="__drawer"]'),M=h.querySelector("article");if(!O||!M)return h;const N=O.cloneNode();return pn(i.createElement(vo.Z),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"),M==null||M.prepend(N),h},yo=()=>h=>{var O;return(O=h.querySelector(".md-header"))===null||O===void 0||O.remove(),h},Eo=()=>h=>{var O,M;return(O=h.querySelector(".md-footer .md-copyright"))===null||O===void 0||O.remove(),(M=h.querySelector(".md-footer-copyright"))===null||M===void 0||M.remove(),h};var xo=t(61800),Co=t(67097),Ao=t(82717),So=t.n(Ao);const Oo=h=>O=>{var M;const N=O.querySelector('[title="Edit this page"]');if(!N||!N.href)return O;const Y=new URL(N.href),Q=h.byUrl(Y);if((Q==null?void 0:Q.type)!=="github"&&(Q==null?void 0:Q.type)!=="gitlab")return O;const nt=((M=O.querySelector("article>h1"))===null||M===void 0?void 0:M.childNodes[0].textContent)||"",St=encodeURIComponent(`Documentation Feedback: ${nt}`),wt=encodeURIComponent(`Page source:
483
+ ${N.href}
484
+
485
+ Feedback:`),Lt=(Q==null?void 0:Q.type)==="github"?(0,xo.B)(Y.href,"blob"):Y.href,Bt=So()(Lt),Kt=`/${Bt.organization}/${Bt.name}`,bt=N.cloneNode();switch(Q==null?void 0:Q.type){case"gitlab":bt.href=`${Y.origin}${Kt}/issues/new?issue[title]=${St}&issue[description]=${wt}`;break;case"github":bt.href=`${Y.origin}${Kt}/issues/new?title=${St}&body=${wt}`;break;default:return O}return pn(i.createElement(Co.Z),bt),bt.style.paddingLeft="5px",bt.title="Leave feedback for this page",bt.id="git-feedback-link",N==null||N.insertAdjacentElement("beforebegin",bt),O},bo=()=>h=>(setTimeout(()=>{const O=h==null?void 0:h.querySelectorAll("li.md-nav__item--active");O.length!==0&&(O.forEach(N=>{const Y=N==null?void 0:N.querySelector("input");Y!=null&&Y.checked||Y==null||Y.click()}),O[O.length-1].scrollIntoView())},200),h);var Po=t(15459),jn=t(80030),Bn=t(72379),Ro=t(41547),To=t(95074);const wo=(0,Po.Z)(h=>({tooltip:{fontSize:"inherit",color:h.palette.text.primary,margin:0,padding:h.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(jn.ZP),Io=()=>(0,o.jsx)(Bn.Z,{children:(0,o.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"})}),Do=({text:h})=>{const[O,M]=(0,i.useState)(!1),[,N]=(0,To.Z)(),Y=(0,i.useCallback)(()=>{N(h),M(!0)},[h,N]),Q=(0,i.useCallback)(()=>{M(!1)},[M]);return(0,o.jsx)(wo,{title:"Copied to clipboard",placement:"left",open:O,onClose:Q,leaveDelay:1e3,children:(0,o.jsx)(K.Z,{style:{color:"inherit"},className:"md-clipboard md-icon",onClick:Y,children:(0,o.jsx)(Io,{})})})},Mo=h=>O=>{const M=O.querySelectorAll("pre > code");for(const Y of M){var N;const Q=Y.textContent||"",nt=document.createElement("div");Y==null||(N=Y.parentElement)===null||N===void 0||N.prepend(nt),pn((0,o.jsx)(Ro.Z,{theme:h,children:(0,o.jsx)(Do,{text:Q})}),nt)}return O},Lo=({baseUrl:h,onClick:O})=>M=>(Array.from(M.getElementsByTagName("a")).forEach(N=>{N.addEventListener("click",Y=>{const nt=N.getAttribute("href");nt&&nt.startsWith(h)&&!N.hasAttribute("download")&&(Y.preventDefault(),O(Y,nt))})}),M),Un=({onLoading:h,onLoaded:O})=>M=>(h(),M.addEventListener(A,function N(){O(),M.removeEventListener(A,N)}),M);function jo(h,O){const M=new URL(O),N=`${M.origin}${M.pathname.replace(/\/$/,"")}`,Y=h.replace(N,"").replace(/^\/+/,""),Q=new URL(`http://localhost/${Y}`);return`${Q.pathname}${Q.search}${Q.hash}`}function Bo(){const h=(0,Yt.s0)(),M=(0,k.h_)(rt.D).getOptionalString("app.baseUrl");return(0,i.useCallback)(Y=>{let Q=Y;if(M)try{Q=jo(Y,M)}catch{}h(Q)},[h,M])}const Uo="screen and (max-width: 76.1875em)",$n=h=>{const O=Bo(),M=(0,Zt.Z)(),N=(0,jt.Z)(Uo),Y=Dn(),Q=uo(),nt=(0,lt.z)(),St=(0,k.h_)($e.D),wt=(0,k.h_)(Dt.q),{state:Lt,path:Bt,content:Kt}=B(),[bt,de]=(0,i.useState)(null),le=C(bt),Ut=(0,i.useCallback)(()=>{if(!bt)return;bt.querySelectorAll(".md-sidebar").forEach(zt=>{if(N)zt.style.top="0px";else{var Jt;const Le=(Jt=document)===null||Jt===void 0?void 0:Jt.querySelector(".techdocs-reader-page");var ve;const Ve=(ve=Le==null?void 0:Le.getBoundingClientRect().top)!==null&&ve!==void 0?ve:0;var Se;let oe=(Se=bt.getBoundingClientRect().top)!==null&&Se!==void 0?Se:0;const _e=bt.querySelector(".md-container > .md-tabs");var ue;const Fn=(ue=_e==null?void 0:_e.getBoundingClientRect().height)!==null&&ue!==void 0?ue:0;oe<Ve&&(oe=Ve),zt.style.top=`${Math.max(oe,0)+Fn}px`}zt.style.setProperty("opacity","1")})},[bt,N]);(0,i.useEffect)(()=>(window.addEventListener("resize",Ut),window.addEventListener("scroll",Ut,!0),()=>{window.removeEventListener("resize",Ut),window.removeEventListener("scroll",Ut,!0)}),[bt,Ut]);const Nt=(0,i.useCallback)(()=>{if(!bt)return;const $t=bt.querySelector(".md-footer");$t&&($t.style.width=`${bt.getBoundingClientRect().width}px`)},[bt]);(0,i.useEffect)(()=>(window.addEventListener("resize",Nt),()=>{window.removeEventListener("resize",Nt)}),[bt,Nt]),(0,i.useEffect)(()=>{le||(Nt(),Ut())},[Lt,le,Nt,Ut]);const ne=(0,i.useCallback)(($t,zt)=>rn($t,[Y,fo({techdocsStorageApi:St,entityId:h,path:zt}),go(),mo(),yo(),Eo(),Oo(wt),Q]),[h,wt,St,Y,Q]),te=(0,i.useCallback)(async $t=>rn($t,[bo(),Mo(M),Lo({baseUrl:window.location.origin,onClick:(zt,Jt)=>{var ve;const Se=zt.ctrlKey||zt.metaKey,ue=new URL(Jt),Le=((ve=zt.target)===null||ve===void 0?void 0:ve.innerText)||Jt,Ve=Jt.replace(window.location.origin,"");if(nt.captureEvent("click",Le,{attributes:{to:Ve}}),ue.hash)if(Se)window.open(Jt,"_blank");else{var oe;O(Jt),$t==null||(oe=$t.querySelector(`[id="${ue.hash.slice(1)}"]`))===null||oe===void 0||oe.scrollIntoView()}else Se?window.open(Jt,"_blank"):O(Jt)}}),Un({onLoading:()=>{},onLoaded:()=>{var zt;(zt=$t.querySelector(".md-nav__title"))===null||zt===void 0||zt.removeAttribute("for")}}),Un({onLoading:()=>{Array.from($t.querySelectorAll(".md-sidebar")).forEach(Jt=>{Jt.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[M,O,nt]);return(0,i.useEffect)(()=>{if(!Kt)return()=>{};let $t=!0;return ne(Kt,Bt).then(async zt=>{if(!(zt!=null&&zt.innerHTML)||!$t)return;window.scroll({top:0});const Jt=await te(zt);de(Jt)}),()=>{$t=!1}},[Kt,Bt,ne,te]),bt};var sn=t(8560),Mt=t(2296),ge=t(57058);const Ee=()=>{const h=(0,Mt.$L)(),{shadowRoot:O}=(0,p.x)(),M=O==null?void 0:O.querySelector('[data-md-component="content"]'),N=O==null?void 0:O.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let Y=N==null?void 0:N.querySelector('[data-techdocs-addons-location="primary sidebar"]');Y||(Y=document.createElement("div"),Y.setAttribute("data-techdocs-addons-location","primary sidebar"),N==null||N.prepend(Y));const Q=O==null?void 0:O.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let nt=Q==null?void 0:Q.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return nt||(nt=document.createElement("div"),nt.setAttribute("data-techdocs-addons-location","secondary sidebar"),Q==null||Q.prepend(nt)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(sn.Z,{container:Y,children:h.renderComponentsByLocation(ge.o.PrimarySidebar)}),(0,o.jsx)(sn.Z,{container:M,children:h.renderComponentsByLocation(ge.o.Content)}),(0,o.jsx)(sn.Z,{container:nt,children:h.renderComponentsByLocation(ge.o.SecondarySidebar)})]})},$o=(0,d.Z)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Fo=dt(h=>{var O;const{withSearch:M=!0,onReady:N}=h,Y=$o(),{entityMetadata:{value:Q,loading:nt},entityRef:St,setShadowRoot:wt}=(0,p.x)(),Lt=$n(St),Bt=window.location.pathname,Kt=window.location.hash,bt=C(Lt),[de]=R([`[id="${Kt.slice(1)}"]`]);(0,i.useEffect)(()=>{if(!bt)if(Kt)de&&de.scrollIntoView();else{var Ut,Nt;(Nt=document)===null||Nt===void 0||(Ut=Nt.querySelector("header"))===null||Ut===void 0||Ut.scrollIntoView()}},[Bt,Kt,de,bt]);const le=(0,i.useCallback)(Ut=>{wt(Ut),N instanceof Function&&N()},[wt,N]);return nt===!1&&!Q?(0,o.jsx)(Z.m,{status:"404",statusMessage:"PAGE NOT FOUND"}):Lt?(0,o.jsx)(m.V,{children:(0,o.jsxs)(S.Z,{container:!0,children:[(0,o.jsx)(S.Z,{xs:12,item:!0,children:(0,o.jsx)(Vt,{})}),M&&(0,o.jsx)(S.Z,{className:Y.search,xs:"auto",item:!0,children:(0,o.jsx)(Ue,{entityId:St,entityTitle:Q==null||(O=Q.metadata)===null||O===void 0?void 0:O.title})}),(0,o.jsx)(S.Z,{xs:12,item:!0,children:(0,o.jsx)(x,{element:Lt,onAppend:le,children:(0,o.jsx)(Ee,{})})})]})}):(0,o.jsx)(m.V,{children:(0,o.jsx)(S.Z,{container:!0,children:(0,o.jsx)(S.Z,{xs:12,item:!0,children:(0,o.jsx)(Vt,{})})})})}),Me=null},65386:function(V,T,t){"use strict";t.d(T,{S:function(){return At}});var o=t(52322),i=t(2784),d=t(18671),S=t(60905),p=t(98069),f=t(60364),l=t(73250),g=t(2296),b=t(68979),A=t(57058),P=t(75435),C=t(41748),x=t(68138),E=t(8709),I=t(79692),R=t(41128),j=t(90436),F=t(98864);const Z=(0,I.Z)(Ct=>({root:{textAlign:"left"},label:{color:Ct.page.fontColor,fontWeight:Ct.typography.fontWeightBold,letterSpacing:0,fontSize:Ct.typography.fontSize,marginBottom:Ct.spacing(1)/2,lineHeight:1},value:{color:(0,R.Fq)(Ct.page.fontColor,.8),fontSize:Ct.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),m=({value:Ct,className:ut})=>(0,o.jsx)(j.Z,{component:typeof Ct=="string"?"p":"span",className:ut,children:Ct});function G(Ct){const{label:ut,value:Ot,url:xt}=Ct,Pt=Z(),ot=(0,o.jsx)(m,{className:Pt.value,value:Ot||"<Unknown>"});return(0,o.jsx)(S.Z,{item:!0,children:(0,o.jsxs)(j.Z,{component:"span",className:Pt.root,children:[(0,o.jsx)(j.Z,{className:Pt.label,children:ut}),xt?(0,o.jsx)(F.rU,{to:xt,children:ot}):ot]})})}var st=t(48037),q=t(44394),H=t(6542),z=t(37321),k=t(76635),et=t(95573);const rt=(0,o.jsx)(p.Z,{animation:"wave",variant:"text",height:40}),At=Ct=>{const{palette:{common:{white:ut}}}=(0,f.Z)(),{children:Ot}=Ct,xt=(0,g.$L)(),Pt=(0,q.h_)(H.D),{title:ot,setTitle:U,subtitle:_,setSubtitle:J,entityRef:at,metadata:{value:ct,loading:W},entityMetadata:{value:K,loading:pt}}=(0,b.x)();(0,i.useEffect)(()=>{ct&&(U(ct.site_name),J(()=>{let{site_description:kt}=ct;return(!kt||kt==="None")&&(kt=""),kt}))},[ct,U,J]);const yt=Pt.getOptional("app.title")||"Backstage",ht=[ot,_,yt].filter(Boolean).join(" | "),{locationMetadata:ft,spec:lt}=K||{},Tt=lt==null?void 0:lt.lifecycle,Rt=K?(0,P.h)(K,E.S4):[],It=(0,z.t)(et._Z)(),Gt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(G,{label:(0,k.capitalize)((K==null?void 0:K.kind)||"entity"),value:(0,o.jsx)(C.d,{color:"inherit",entityRef:at,title:K==null?void 0:K.metadata.title,defaultKind:"Component"})}),Rt.length>0&&(0,o.jsx)(G,{label:"Owner",value:(0,o.jsx)(x.r,{color:"inherit",entityRefs:Rt,defaultKind:"group"})}),Tt?(0,o.jsx)(G,{label:"Lifecycle",value:String(Tt)}):null,ft&&ft.type!=="dir"&&ft.type!=="file"?(0,o.jsx)(G,{label:"",value:(0,o.jsxs)(S.Z,{container:!0,direction:"column",alignItems:"center",style:{color:ut},children:[(0,o.jsx)(S.Z,{style:{padding:0},item:!0,children:(0,o.jsx)(l.Z,{style:{marginTop:"-25px"}})}),(0,o.jsx)(S.Z,{style:{padding:0},item:!0,children:"Source"})]}),url:ft.target}):null]});return!pt&&K===void 0||!W&&ct===void 0?null:(0,o.jsxs)(st.h,{type:"Documentation",typeLink:It,title:ot||rt,subtitle:_===""?void 0:_||rt,children:[(0,o.jsx)(d.Z,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:ht})}),Gt,Ot,xt.renderComponentsByLocation(A.o.Header)]})}},95573:function(V,T,t){"use strict";t.d(T,{Fw:function(){return d},_Z:function(){return i},pd:function(){return S}});var o=t(30283);const i=(0,o.N)({id:"techdocs:index-page"}),d=(0,o.N)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),S=(0,o.N)({id:"techdocs:catalog-reader-view"})},55511:function(V,T,t){"use strict";t.r(T),t.d(T,{TechDocsSearchResultListItem:function(){return A}});var o=t(52322),i=t(2784),d=t(79692),S=t(49378),p=t(86136),f=t(90436),l=t(98864),g=t(76079);const b=(0,d.Z)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),A=P=>{const{result:C,highlight:x,lineClamp:E=5,asListItem:I=!0,asLink:R=!0,title:j,icon:F}=P,Z=b(),m=({children:q})=>R?(0,o.jsx)(l.rU,{noTrack:!0,to:C.location,children:q}):(0,o.jsx)(o.Fragment,{children:q}),G=()=>{const q=x!=null&&x.fields.title?(0,o.jsx)(g.F,{text:x.fields.title,preTag:x.preTag,postTag:x.postTag}):C.title,H=x!=null&&x.fields.entityTitle?(0,o.jsx)(g.F,{text:x.fields.entityTitle,preTag:x.preTag,postTag:x.postTag}):C.entityTitle,z=x!=null&&x.fields.name?(0,o.jsx)(g.F,{text:x.fields.name,preTag:x.preTag,postTag:x.postTag}):C.name;return C?(0,o.jsx)(S.Z,{className:Z.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(m,{children:j||(0,o.jsxs)(o.Fragment,{children:[q," | ",H!=null?H:z," docs"]})}),secondary:(0,o.jsx)(f.Z,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:E,overflow:"hidden"},color:"textSecondary",variant:"body2",children:x!=null&&x.fields.text?(0,o.jsx)(g.F,{text:x.fields.text,preTag:x.preTag,postTag:x.postTag}):C.text})}):null},st=({children:q})=>I?(0,o.jsxs)(o.Fragment,{children:[F&&(0,o.jsx)(p.Z,{children:typeof F=="function"?F(C):F}),(0,o.jsx)("div",{className:Z.flexContainer,children:q})]}):(0,o.jsx)(o.Fragment,{children:q});return(0,o.jsx)(st,{children:(0,o.jsx)(G,{})})}},53260:function(){}},function(V){var T=function(o){return V(V.s=o)};V.O(0,[2370,6202,9284,7012,427,242,5109,6816,1213,5218,4736],function(){return T(81025)});var t=V.O()}]);})();
486
+
487
+ //# sourceMappingURL=main.8937445c.js.map