@techdocs/cli 1.5.0-next.3 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,487 @@
1
+ (()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[179],{88797:function(Y,R,t){"use strict";t.d(R,{n:function(){return o}});const o=Symbol.for("CATALOG_FILTER_EXISTS_0e15b590c0b343a2bae3e787e84c2111")},34106:function(Y,R,t){"use strict";t.d(R,{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",g="kubernetes.io/auth-provider"},74314:function(Y,R,t){"use strict";t.d(R,{eE:function(){return p},iB:function(){return d},of:function(){return S}});var o=t(34106);function i(g){let c=g.indexOf(":");const f=g.indexOf("/");f!==-1&&f<c&&(c=-1);const C=c===-1?void 0:g.slice(0,c),A=f===-1?void 0:g.slice(c+1,f),O=g.slice(Math.max(c+1,f+1));if(C===""||A===""||O==="")throw new TypeError(`Entity reference "${g}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:C,namespace:A,name:O}}function d(g){return{kind:g.kind,namespace:g.metadata.namespace||o.zG,name:g.metadata.name}}function S(g,c){var f,C;if(!g)throw new Error("Entity reference must not be empty");const A=(f=c)===null||f===void 0?void 0:f.defaultKind,O=((C=c)===null||C===void 0?void 0:C.defaultNamespace)||o.zG;let x,P,E;if(typeof g=="string"){const W=i(g);var M;x=(M=W.kind)!==null&&M!==void 0?M:A;var b;P=(b=W.namespace)!==null&&b!==void 0?b:O,E=W.name}else{var L;x=(L=g.kind)!==null&&L!==void 0?L:A;var $;P=($=g.namespace)!==null&&$!==void 0?$:O,E=g.name}if(x)if(P){if(!E){const W=JSON.stringify(g);throw new Error(`Entity reference ${W} had missing or empty name`)}}else{const W=JSON.stringify(g);throw new Error(`Entity reference ${W} had missing or empty namespace`)}else{const W=JSON.stringify(g);throw new Error(`Entity reference ${W} had missing or empty kind (e.g. did not start with "component:" or similar)`)}return{kind:x,namespace:P,name:E}}function p(g){let c,f,C;if("metadata"in g){c=g.kind;var A;f=(A=g.metadata.namespace)!==null&&A!==void 0?A:o.zG,C=g.metadata.name}else{c=g.kind;var O;f=(O=g.namespace)!==null&&O!==void 0?O:o.zG,C=g.name}return`${c.toLocaleLowerCase("en-US")}:${f.toLocaleLowerCase("en-US")}/${C.toLocaleLowerCase("en-US")}`}},8709:function(Y,R,t){"use strict";t.d(R,{S4:function(){return o},aS:function(){return E},cz:function(){return P},nP:function(){return c},w$:function(){return f}});const o="ownedBy",i="ownerOf",d="consumesApi",S="apiConsumedBy",p="providesApi",g="apiProvidedBy",c="dependsOn",f="dependencyOf",C="parentOf",A="childOf",O="memberOf",x="hasMember",P="partOf",E="hasPart"},90663:function(Y,R,t){"use strict";t.d(R,{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(Y,R,t){"use strict";t.d(R,{CV:function(){return g},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(c){if(typeof c!="string")throw new TypeError(`Unable to parse location ref '${c}', unexpected argument ${typeof c}`);const f=c.indexOf(":");if(f<0)throw new TypeError(`Unable to parse location ref '${c}', expected '<type>:<target>', e.g. 'url:https://host/path'`);const C=c.substring(0,f).trim(),A=c.substring(f+1).trim();if(!C||!A)throw new TypeError(`Unable to parse location ref '${c}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if(C==="http"||C==="https")throw new TypeError(`Invalid location ref '${c}', please prefix it with 'url:', e.g. 'url:${c}'`);if(d.test(A))throw new TypeError(`Invalid location ref '${c}', target is a javascript: URL`);return{type:C,target:A}}function p(c){const{type:f,target:C}=c;if(f){if(!C)throw new TypeError("Unable to stringify location ref, empty target")}else throw new TypeError("Unable to stringify location ref, empty type");if(d.test(C))throw new TypeError(`Invalid location ref '${f}:${C}', target is a javascript: URL`);return`${f}:${C}`}function g(c){var f,C,A,O,x;const P=(x=(C=c.metadata)===null||C===void 0||(f=C.annotations)===null||f===void 0?void 0:f[i.M6])!==null&&x!==void 0?x:(O=c.metadata)===null||O===void 0||(A=O.annotations)===null||A===void 0?void 0:A[i.P1];if(!P)throw new Error(`Entity '${(0,o.eE)(c)}' is missing location`);return S(P)}},9791:function(Y,R,t){"use strict";t.d(R,{O:function(){return C}});var o=t(52322),i=t(62774),d=t(60364),S=t(2784),p=t(83229),g=t(26639),c=t(39595),f=t(58033);function C(A){const{text:O,language:x,showLineNumbers:P=!1,highlightedNumbers:E,customStyle:M,showCopyCodeButton:b=!1}=A,L=(0,d.Z)(),$=L.palette.type==="dark"?g.Z:c.Z,W=L.palette.type==="dark"?"#256bf3":"#e6ffed";return(0,o.jsxs)(i.Z,{position:"relative",children:[(0,o.jsx)(p.Z,{customStyle:M,language:x,style:$,showLineNumbers:P,wrapLines:!0,lineNumberStyle:{color:L.palette.textVerySubtle},lineProps:y=>{var N;return!((N=E)===null||N===void 0)&&N.includes(y)?{style:{backgroundColor:W}}:{}},children:O}),b&&(0,o.jsx)(i.Z,{position:"absolute",top:0,right:0,children:(0,o.jsx)(f.b,{text:O})})]})}},58033:function(Y,R,t){"use strict";t.d(R,{b:function(){return C}});var o=t(52322),i=t(44394),d=t(58513),S=t(61837),p=t(80030),g=t(19353),c=t(2784),f=t(95074);function C(A){const{text:O,tooltipDelay:x=1e3,tooltipText:P="Text copied to clipboard","aria-label":E="Copy text"}=A,M=(0,i.h_)(d.V),[b,L]=(0,c.useState)(!1),[{error:$},W]=(0,f.Z)();(0,c.useEffect)(()=>{$&&M.post($)},[$,M]);const y=N=>{N.stopPropagation(),L(!0),W(O)};return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(p.ZP,{id:"copy-test-tooltip",title:P,placement:"top",leaveDelay:x,onClose:()=>L(!1),open:b,children:(0,o.jsx)(S.Z,{onClick:y,"aria-label":E,children:(0,o.jsx)(g.Z,{})})})})}},70249:function(Y,R,t){"use strict";t.d(R,{u:function(){return P}});var o=t(52322),i=t(60905),d=t(79692),S=t(90436),p=t(2784),g=t.p+"static/missingAnnotation.67f79e98..svg",c=t.p+"static/noInformation.4b426325..svg",f=t.p+"static/createComponent.975d1e1e..svg",C=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"}),O=({missing:E})=>{const M=A();switch(E){case"field":return(0,o.jsx)("img",{src:g,className:M.generalImg,alt:"annotation is missing"});case"info":return(0,o.jsx)("img",{src:c,alt:"no Information",className:M.generalImg});case"content":return(0,o.jsx)("img",{src:f,alt:"create Component",className:M.generalImg});case"data":return(0,o.jsx)("img",{src:C,alt:"no Build",className:M.generalImg});default:return null}},x=(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 P(E){const{title:M,description:b,missing:L,action:$}=E,W=x();return(0,o.jsxs)(i.Z,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:W.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:M})}),(0,o.jsx)(i.Z,{item:!0,xs:!0,children:(0,o.jsx)(S.Z,{variant:"body1",children:b})}),(0,o.jsx)(i.Z,{item:!0,xs:!0,className:W.action,children:$})]})}),(0,o.jsx)(i.Z,{item:!0,xs:12,md:6,className:W.imageContainer,children:typeof L=="string"?(0,o.jsx)(O,{missing:L}):L.customImage})]})}},74359:function(Y,R,t){"use strict";t.d(R,{y:function(){return O}});var o=t(52322),i=t(79692),d=t(11776),S=t(38402),p=t(49378),g=t(2784),c=t(58033),f=t(538);const C=(0,i.Z)(x=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:x.spacing(2)},divider:{margin:x.spacing(2)}}),{name:"BackstageErrorPanel"}),A=({error:x,message:P,stack:E,children:M})=>{const b=C();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:b.text},primary:"Error",secondary:x}),(0,o.jsx)(c.b,{text:x})]}),(0,o.jsxs)(S.Z,{alignItems:"flex-start",children:[(0,o.jsx)(p.Z,{classes:{secondary:b.text},primary:"Message",secondary:P}),(0,o.jsx)(c.b,{text:P})]}),E&&(0,o.jsxs)(S.Z,{alignItems:"flex-start",children:[(0,o.jsx)(p.Z,{classes:{secondary:b.text},primary:"Stack Trace",secondary:E}),(0,o.jsx)(c.b,{text:E})]}),M]})};function O(x){const{title:P,error:E,defaultExpanded:M,children:b}=x;return(0,o.jsx)(f.G,{severity:"error",title:P!=null?P:E.message,defaultExpanded:M,children:(0,o.jsx)(A,{error:E.name,message:E.message,stack:E.stack,children:b})})}},98864:function(Y,R,t){"use strict";t.d(R,{rU:function(){return G}});var o=t(52322),i=t(44394),d=t(6542),S=t(62369),p=t(86689),g=t(79692),c=t(90436),f=t(72779),C=t.n(f),A=t(76635),O=t.n(A),x=t(2784),P=t(73557),E=t(71597);function M(){const[K]=(0,P.is)((0,o.jsx)(P.AW,{index:!0,element:(0,o.jsx)("div",{})}));return!K.index}const b=(0,g.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"}),L=K=>/^([a-z+.-]+):/.test(K),$=/^[\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,W=window.open;if(W&&!W.__backstage){const K=function(...Q){const st=String(Q[0]);if($.test(st))throw new Error("Rejected window.open() with a javascript: URL as a security precaution");return W.apply(this,Q)};K.__backstage=!0,window.open=K}const y=()=>{try{return(0,i.h_)(d.D).getOptionalString("app.baseUrl")}catch{return}},N=()=>{const K="http://sample.dev";var z;const Q=(z=y())!==null&&z!==void 0?z:"/",{pathname:st}=new URL(Q,K);return(0,A.trimEnd)(st,"/")},at=K=>{let z=String(K);const Q=N(),st=L(z),Ct=z.startsWith(Q);return!st&&!Ct&&(z=Q.concat(z)),z},J=K=>{if(K instanceof Array)return K.map(J).join(" ").trim();if(typeof K=="object"&&K){var z,Q;return J((Q=K)===null||Q===void 0||(z=Q.props)===null||z===void 0?void 0:z.children)}return["string","number"].includes(typeof K)?String(K):""},G=x.forwardRef(({onClick:K,noTrack:z,...Q},st)=>{const Ct=b(),Et=(0,S.z)(),mt=M()?at(Q.to):Q.to,bt=J(Q.children)||mt,gt=L(mt),Pt=gt&&!!/^https?:/.exec(mt);if($.test(mt))throw new Error("Link component rejected javascript: URL as a security precaution");const lt=V=>{var k;(k=K)===null||k===void 0||k(V),z||Et.captureEvent("click",bt,{attributes:{to:mt}})};return gt?(0,o.jsxs)(p.Z,{...Pt?{target:"_blank",rel:"noopener"}:{},...Q,...Q["aria-label"]?{"aria-label":`${Q["aria-label"]}, Opens in a new window`}:{},ref:st,href:mt,onClick:lt,className:C()(Ct.externalLink,Q.className),children:[Q.children,(0,o.jsx)(c.Z,{component:"span",className:Ct.visuallyHidden,children:", Opens in a new window"})]}):(0,o.jsx)(p.Z,{...Q,ref:st,component:E.rU,to:mt,onClick:lt})})},15929:function(Y,R,t){"use strict";t.d(R,{Q:function(){return g}});var o=t(52322),i=t(77277),d=t(2784),S=t(98864);const p=d.forwardRef((f,C)=>(0,o.jsx)(S.rU,{ref:C,...f,color:"initial"})),g=d.forwardRef((f,C)=>(0,o.jsx)(i.Z,{ref:C,component:p,...f})),c=null},55015:function(Y,R,t){"use strict";t.d(R,{E:function(){return g}});var o=t(52322),i=t(62774),d=t(67358),S=t(60364),p=t(2784);function g(c){const f=(0,S.Z)(),[C,A]=(0,p.useState)(!1);return(0,p.useEffect)(()=>{const O=setTimeout(()=>A(!0),f.transitions.duration.short);return()=>clearTimeout(O)},[f.transitions.duration.short]),C?(0,o.jsx)(d.Z,{...c,"data-testid":"progress"}):(0,o.jsx)(i.Z,{display:"none"})}},35879:function(Y,R,t){"use strict";t.d(R,{H:function(){return G}});var o=t(52322),i=t(62774),d=t(21324),S=t(7089),p=t(30192),g=t(74603),c=t(56939),f=t(12231),C=t(73698),A=t(15459),O=t(42494),x=t(79692),P=t(90436),E=t(2784),M=t(72379);const b=(0,x.Z)(K=>(0,O.Z)({icon:{position:"absolute",right:K.spacing(.5),pointerEvents:"none"}}),{name:"BackstageClosedDropdown"});var $=()=>{const K=b();return(0,o.jsx)(M.Z,{className:K.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 W=(0,x.Z)(K=>(0,O.Z)({icon:{position:"absolute",right:K.spacing(.5),pointerEvents:"none"}}),{name:"BackstageOpenedDropdown"});var N=()=>{const K=W();return(0,o.jsx)(M.Z,{className:K.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 at=(0,A.Z)(K=>(0,O.Z)({root:{"label + &":{marginTop:K.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:K.palette.primary.main}},input:{borderRadius:K.shape.borderRadius,position:"relative",backgroundColor:K.palette.background.paper,border:"1px solid #ced4da",fontSize:K.typography.body1.fontSize,padding:K.spacing(1.25,3.25,1.25,1.5),transition:K.transitions.create(["border-color","box-shadow"]),fontFamily:"Helvetica Neue","&:focus":{background:K.palette.background.paper,borderRadius:K.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(g.Z),J=(0,x.Z)(K=>(0,O.Z)({formControl:{margin:K.spacing(1,0),maxWidth:300},label:{transform:"initial",fontWeight:"bold",fontSize:K.typography.body2.fontSize,fontFamily:K.typography.fontFamily,color:K.palette.text.primary,"&.Mui-focused":{color:K.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:K.typography.body2.fontSize,fontFamily:K.typography.fontFamily,color:K.palette.text.primary,"&.Mui-focused":{color:K.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function G(K){const{multiple:z,items:Q,label:st,placeholder:Ct,selected:Et,onChange:mt,triggerReset:bt,native:gt=!1,disabled:Pt=!1,margin:lt}=K,V=J(),[k,et]=(0,E.useState)(Et||(z?[]:"")),[it,ct]=(0,E.useState)(!1);(0,E.useEffect)(()=>{et(z?[]:"")},[bt,z]),(0,E.useEffect)(()=>{et(Et||(z?[]:""))},[Et,z]);const F=dt=>{et(dt.target.value),mt(dt.target.value)},H=dt=>{if(Pt){dt.preventDefault();return}ct(At=>z&&!(dt.target instanceof HTMLElement)?!0:!At)},ft=()=>{ct(!1)},ht=dt=>()=>{const At=k.filter(vt=>vt!==dt);et(At),mt(At)};return(0,o.jsx)(i.Z,{className:V.root,children:(0,o.jsxs)(p.Z,{className:V.formControl,children:[(0,o.jsx)(c.Z,{className:V.formLabel,children:st}),(0,o.jsxs)(C.Z,{"aria-label":st,value:k,native:gt,disabled:Pt,"data-testid":"select",displayEmpty:!0,multiple:z,margin:lt,onChange:F,open:it,onOpen:H,onClose:ft,input:(0,o.jsx)(at,{}),label:st,renderValue:dt=>{var At;return z&&k.length!==0?(0,o.jsx)(i.Z,{className:V.chips,children:dt.map(vt=>{var It,wt;return(0,o.jsx)(S.Z,{label:(It=Q.find(Lt=>Lt.value===vt))===null||It===void 0?void 0:It.label,clickable:!0,onDelete:ht(vt),className:V.chip},(wt=Q.find(Lt=>Lt.value===vt))===null||wt===void 0?void 0:wt.value)})}):(0,o.jsx)(P.Z,{children:k.length===0?Ct||"":(At=Q.find(vt=>vt.value===dt))===null||At===void 0?void 0:At.label})},IconComponent:()=>it?(0,o.jsx)(N,{}):(0,o.jsx)($,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[Ct&&!z&&(0,o.jsx)(f.Z,{value:[],children:Ct}),gt?Q&&Q.map(dt=>(0,o.jsx)("option",{value:dt.value,children:dt.label},dt.value)):Q&&Q.map(dt=>(0,o.jsxs)(f.Z,{value:dt.value,children:[z&&(0,o.jsx)(d.Z,{color:"primary",checked:k.includes(dt.value)||!1,className:V.checkbox}),dt.label]},dt.value))]})]})})}},13788:function(Y,R,t){"use strict";t.d(R,{q:function(){return V}});var o=t(52322),i=t(80851),d=t(62774),S=t(77277),p=t(49429),g=t(61837),c=t(86136),f=t(49378),C=t(12231),A=t(50758),O=t(79784),x=t(79692),P=t(90436),E=t(41156),M=t(2784),b=t(77770),L=t(80079);function $(k,et){const ct=(0,i.q)().getSystemIcon(k);return ct?(0,o.jsx)(ct,{...et}):(0,o.jsx)(L.Z,{...et})}function W(k){return $("brokenImage",k)}function y(k){return $("catalog",k)}function N(k){return $("chat",k)}function at(k){return $("dashboard",k)}function J(k){return $("docs",k)}function G(k){return $("email",k)}function K(k){return $("github",k)}function z(k){return $("group",k)}function Q(k){return $("help",k)}function st(k){return $("user",k)}function Ct(k){return $("warning",k)}var Et=t(98864);const mt=(0,x.Z)({popoverList:{minWidth:260,maxWidth:400}},{name:"BackstageSupportButton"}),bt=({icon:k})=>{const et=(0,i.q)();var it;const ct=k&&(it=et.getSystemIcon(k))!==null&&it!==void 0?it:Q;return(0,o.jsx)(ct,{})};var gt;const Pt=({link:k})=>(0,o.jsx)(Et.rU,{to:k.url,children:(gt=k.title)!==null&&gt!==void 0?gt:k.url}),lt=({item:k})=>{var et;return(0,o.jsxs)(C.Z,{children:[(0,o.jsx)(c.Z,{children:(0,o.jsx)(bt,{icon:k.icon})}),(0,o.jsx)(f.Z,{primary:k.title,secondary:(et=k.links)===null||et===void 0?void 0:et.reduce((it,ct,F)=>[...it,F>0&&(0,o.jsx)("br",{},F),(0,o.jsx)(Pt,{link:ct},ct.url)],[])})]})};function V(k){const{title:et,items:it,children:ct}=k,{items:F}=(0,b.v)(),[H,ft]=(0,M.useState)(!1),[ht,dt]=(0,M.useState)(null),At=mt(),vt=(0,E.Z)(Lt=>Lt.breakpoints.down("sm")),It=Lt=>{dt(Lt.currentTarget),ft(!0)},wt=()=>{ft(!1)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Z,{display:"flex",ml:1,children:vt?(0,o.jsx)(g.Z,{color:"primary",size:"small",onClick:It,"data-testid":"support-button","aria-label":"Support",children:(0,o.jsx)(Q,{})}):(0,o.jsx)(S.Z,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:It,startIcon:(0,o.jsx)(Q,{}),children:"Support"})}),(0,o.jsxs)(O.ZP,{"data-testid":"support-button-popover",open:H,anchorEl:ht,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:wt,children:[(0,o.jsxs)(A.Z,{className:At.popoverList,autoFocusItem:Boolean(ht),children:[et&&(0,o.jsx)(C.Z,{alignItems:"flex-start",children:(0,o.jsx)(P.Z,{variant:"subtitle1",children:et})}),M.Children.map(ct,(Lt,kt)=>(0,o.jsx)(C.Z,{alignItems:"flex-start",children:Lt},`child-${kt}`)),(it!=null?it:F).map((Lt,kt)=>(0,o.jsx)(lt,{item:Lt},`item-${kt}`))]}),(0,o.jsx)(p.Z,{children:(0,o.jsx)(S.Z,{color:"primary",onClick:wt,"aria-label":"Close",children:"Close"})})]})]})}},84462:function(Y,R,t){"use strict";t.d(R,{i:function(){return ct}});var o=t(52322),i=t(67222),d=t(62774),S=t(61837),p=t(15459),g=t(79692),c=t(60364),f=t(90436),C=t(21070),A=t(90324),O=t(98281),x=t(48049),P=t(51209),E=t(33375),M=t(44233),b=t(27604),L=t(36444),$=t(37971),W=t(59709),y=t(17373),N=t(3702),at=t(93111),J=t(76635),G=t(2784),K=t(77277),z=t(35879);const Q=(0,g.Z)(F=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:F.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:F.spacing(7.5),justifyContent:"space-between",borderBottom:`1px solid ${F.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:F.spacing(2)}}}),{name:"BackstageTableFilters"}),st=F=>{var H;const ft=Q(),{onChangeFilters:ht}=F,[dt,At]=(0,G.useState)({...F.selectedFilters}),[vt,It]=(0,G.useState)(!1),wt=()=>{At({}),It(Lt=>!Lt)};return(0,G.useEffect)(()=>{ht(dt)},[dt,ht]),(0,o.jsxs)(d.Z,{className:ft.root,children:[(0,o.jsxs)(d.Z,{className:ft.header,children:[(0,o.jsx)(d.Z,{className:ft.value,children:"Filters"}),(0,o.jsx)(K.Z,{color:"primary",onClick:wt,children:"Clear all"})]}),(0,o.jsx)(d.Z,{className:ft.filters,children:((H=F.filters)===null||H===void 0?void 0:H.length)&&F.filters.map(Lt=>(0,o.jsx)(z.H,{triggerReset:vt,...Lt.element,selected:dt[Lt.element.label],onChange:kt=>At({...dt,[Lt.element.label]:kt})},Lt.element.label))})]})};var Ct=t(4614);const Et={Add:(0,G.forwardRef)((F,H)=>(0,o.jsx)(C.Z,{...F,ref:H})),Check:(0,G.forwardRef)((F,H)=>(0,o.jsx)(O.Z,{...F,ref:H})),Clear:(0,G.forwardRef)((F,H)=>(0,o.jsx)(E.Z,{...F,ref:H})),Delete:(0,G.forwardRef)((F,H)=>(0,o.jsx)(M.Z,{...F,ref:H})),DetailPanel:(0,G.forwardRef)((F,H)=>(0,o.jsx)(P.Z,{...F,ref:H})),Edit:(0,G.forwardRef)((F,H)=>(0,o.jsx)(b.Z,{...F,ref:H})),Export:(0,G.forwardRef)((F,H)=>(0,o.jsx)(N.Z,{...F,ref:H})),Filter:(0,G.forwardRef)((F,H)=>(0,o.jsx)(L.Z,{...F,ref:H})),FirstPage:(0,G.forwardRef)((F,H)=>(0,o.jsx)($.Z,{...F,ref:H})),LastPage:(0,G.forwardRef)((F,H)=>(0,o.jsx)(W.Z,{...F,ref:H})),NextPage:(0,G.forwardRef)((F,H)=>(0,o.jsx)(P.Z,{...F,ref:H})),PreviousPage:(0,G.forwardRef)((F,H)=>(0,o.jsx)(x.Z,{...F,ref:H})),ResetSearch:(0,G.forwardRef)((F,H)=>(0,o.jsx)(E.Z,{...F,ref:H})),Search:(0,G.forwardRef)((F,H)=>(0,o.jsx)(L.Z,{...F,ref:H})),SortArrow:(0,G.forwardRef)((F,H)=>(0,o.jsx)(A.Z,{...F,ref:H})),ThirdStateCheck:(0,G.forwardRef)((F,H)=>(0,o.jsx)(y.Z,{...F,ref:H})),ViewColumn:(0,G.forwardRef)((F,H)=>(0,o.jsx)(at.Z,{...F,ref:H}))};function mt(F,H){const ft=H.split(".");let ht=F[ft[0]];for(let dt=1;dt<ft.length;++dt){if(ht===void 0)return ht;const At=ft[dt];ht=ht[At]}return ht}const bt=(0,p.Z)(F=>({header:{padding:F.spacing(1,2,1,2.5),borderTop:`1px solid ${F.palette.grey.A100}`,borderBottom:`1px solid ${F.palette.grey.A100}`,fontWeight:F.typography.fontWeightBold,position:"static",wordBreak:"normal"}}),{name:"BackstageTableHeader"})(i.W$),gt=(0,p.Z)(F=>({root:{padding:F.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:F.typography.fontWeightBold}},searchField:{paddingRight:F.spacing(2)}}),{name:"BackstageTableToolbar"})(i.UW),Pt=(0,g.Z)(F=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:F.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),lt=(0,g.Z)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"});function V(F,H){return F.map(ft=>{var ht;const dt=(ht=ft.headerStyle)!==null&&ht!==void 0?ht:{};let At=ft.cellStyle||{};if(ft.highlight)if(dt.color=H.palette.textContrast,typeof At=="object")At.fontWeight=H.typography.fontWeightBold;else{const vt=At;At=(It,wt,Lt)=>({...vt(It,wt,Lt),fontWeight:H.typography.fontWeightBold})}return{...ft,headerStyle:dt,cellStyle:At}})}function k(F,H){return(0,J.transform)(F,(ft,ht,dt)=>{(0,J.isEqual)(ht,H[dt])||(ft[dt]=ht)})}const et={search:"",filtersOpen:!1,filters:{}};function it(F){const{toolbarRef:H,setSearch:ft,hasFilters:ht,selectedFiltersLength:dt,toggleFilters:At}=F,vt=Pt(),It=(0,G.useCallback)(wt=>{F.onSearchChanged(wt),ft(wt)},[F,ft]);return ht?(0,o.jsxs)(d.Z,{className:vt.root,children:[(0,o.jsxs)(d.Z,{className:vt.root,children:[(0,o.jsx)(S.Z,{onClick:At,"aria-label":"filter list",children:(0,o.jsx)(L.Z,{})}),(0,o.jsxs)(f.Z,{className:vt.title,children:["Filters (",dt,")"]})]}),(0,o.jsx)(gt,{...F,ref:H,onSearchChanged:It})]}):(0,o.jsx)(gt,{...F,ref:H,onSearchChanged:It})}function ct(F){var H,ft;const{data:ht,columns:dt,options:At,title:vt,subtitle:It,filters:wt,initialState:Lt,emptyContent:kt,onStateChange:Qt,components:ee,isLoading:Zt,...be}=F,Wt=lt(),zt=(0,c.Z)(),ae={...et,...Lt},[he,Ke]=(0,G.useState)(ae.filtersOpen),Xe=(0,G.useCallback)(()=>Ke(B=>!B),[Ke]),[qe,gn]=(0,G.useState)(0),[$e,ke]=(0,G.useState)(ht),[ye,rn]=(0,G.useState)(ae.filters),le=V(dt,zt),[tn,Me]=(0,G.useState)(ae.search);(0,G.useEffect)(()=>{if(Qt){const B=k({search:tn,filtersOpen:he,filters:ye},et);Qt(B)}},[tn,he,ye,Qt]);const ze={headerStyle:{textTransform:"uppercase"}},Le=(0,G.useCallback)(B=>{var ot;return(ot=dt.find(xt=>xt.title===B))===null||ot===void 0?void 0:ot.field},[dt]);(0,G.useEffect)(()=>{if(typeof ht=="function")return;if(!ye){ke(ht);return}const B=Object.values(ye);if(ht&&B.flat().length){const ot=ht.filter(xt=>!!Object.entries(ye).filter(([,St])=>!!St.length).every(([St,Mt])=>{const Ut=mt(xt,Le(St));return Array.isArray(Ut)&&Array.isArray(Mt)?Ut.some(ne=>Mt.includes(ne)):Array.isArray(Ut)?Ut.includes(Mt):Array.isArray(Mt)?Mt.includes(Ut):Ut===Mt}));ke(ot)}else ke(ht);gn(B.flat().length)},[ht,ye,Le]);const fe=(B,ot)=>{const xt=Mt=>{const Ut=new Set,ne=Jt=>{Jt!=null&&Ut.add(Jt)};return ot&&ot.forEach(Jt=>{const ce=mt(Jt,Le(Mt));Array.isArray(ce)?ce.forEach(ne):ne(ce)}),Ut},St=Mt=>({placeholder:"All results",label:Mt.column,multiple:Mt.type==="multiple-select",items:[...xt(Mt.column)].sort().map(Ut=>({label:Ut,value:Ut}))});return B.map(Mt=>({type:Mt.type,element:St(Mt)}))},_e=!!(!((H=wt)===null||H===void 0)&&H.length),sn=(0,G.useCallback)(B=>(0,o.jsx)(it,{setSearch:Me,hasFilters:_e,selectedFiltersLength:qe,toggleFilters:Xe,...B}),[Xe,_e,qe,Me]),D=typeof ht!="function"&&ht.length===0,u=dt.length,U=(0,G.useCallback)(B=>Zt?(0,o.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:u,children:(0,o.jsx)(d.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"15rem"},children:(0,o.jsx)(Ct.Z,{size:"5rem"})})})})}):kt&&D?(0,o.jsx)("tbody",{children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:u,children:kt})})}):(0,o.jsx)(i.os,{...B}),[D,kt,u,Zt]);return(0,o.jsxs)(d.Z,{className:Wt.root,children:[he&&ht&&typeof ht!="function"&&((ft=wt)===null||ft===void 0?void 0:ft.length)&&(0,o.jsx)(st,{filters:fe(wt,ht),selectedFilters:ye,onChangeFilters:rn}),(0,o.jsx)(i.ZP,{components:{Header:bt,Toolbar:sn,Body:U,...ee},options:{...ze,...At},columns:le,icons:Et,title:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.Z,{variant:"h5",component:"h2",children:vt}),It&&(0,o.jsx)(f.Z,{color:"textSecondary",variant:"body1",children:It})]}),data:typeof ht=="function"?ht:$e,style:{width:"100%"},localization:{toolbar:{searchPlaceholder:"Filter",searchTooltip:"Filter"}},...be})]})}ct.icons=Object.freeze(Et)},538:function(Y,R,t){"use strict";t.d(R,{G:function(){return W}});var o=t(52322),i=t(41128),d=t(79692),S=t(27616),p=t(8284),g=t(70660),c=t(60905),f=t(90436),C=t(91750),A=t(38016),O=t(2784);const x=(y,N)=>(N.palette.type==="light"?i._j:i.$n)(N.palette[y].light,.6),P=(y,N)=>(N.palette.type==="light"?i.$n:i._j)(N.palette[y].light,.9),E=(0,d.Z)(y=>({root:{marginRight:y.spacing(1),fill:({severity:N})=>x(N,y)}})),M=({severity:y})=>{const N=E({severity:y});return(0,o.jsx)(C.Z,{classes:N})},b=({severity:y})=>{const N=E({severity:y});return(0,o.jsx)(A.Z,{classes:N})},L=(0,d.Z)(y=>({panel:{backgroundColor:({severity:N})=>P(N,y),color:({severity:N})=>x(N,y),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:N})=>x(N,y),fontWeight:y.typography.fontWeightBold},message:{width:"100%",display:"block",color:({severity:N})=>x(N,y),backgroundColor:({severity:N})=>P(N,y)},details:{width:"100%",display:"block",color:y.palette.textContrast,backgroundColor:y.palette.background.default,border:`1px solid ${y.palette.border}`,padding:y.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"}),$=y=>y.charAt(0).toLocaleUpperCase("en-US")+y.slice(1);function W(y){const{severity:N="warning",title:at,message:J,children:G,defaultExpanded:K}=y,z=L({severity:N}),Q=$(N)+(at?`: ${at}`:"");return(0,o.jsxs)(S.Z,{defaultExpanded:K!=null?K:!1,className:z.panel,role:"alert",children:[(0,o.jsxs)(p.Z,{expandIcon:(0,o.jsx)(b,{severity:N}),className:z.summary,children:[(0,o.jsx)(M,{severity:N}),(0,o.jsx)(f.Z,{className:z.summaryText,variant:"subtitle1",children:Q})]}),(J||G)&&(0,o.jsx)(g.Z,{children:(0,o.jsxs)(c.Z,{container:!0,children:[J&&(0,o.jsx)(c.Z,{item:!0,xs:12,children:(0,o.jsx)(f.Z,{className:z.message,variant:"body1",children:J})}),G&&(0,o.jsx)(c.Z,{item:!0,xs:12,className:z.details,children:G})]})})]})}},77770:function(Y,R,t){"use strict";t.d(R,{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(){var p;const f=(p=(0,o.I_)().get(i.D))===null||p===void 0?void 0:p.getOptionalConfig("app.support");if(!f)return d;var C;return{url:f.getString("url"),items:f.getConfigArray("items").flatMap(A=>({title:A.getString("title"),icon:A.getOptionalString("icon"),links:((C=A.getOptionalConfigArray("links"))!==null&&C!==void 0?C:[]).flatMap(O=>({url:O.getString("url"),title:O.getString("title")}))}))}}},42398:function(Y,R,t){"use strict";t.d(R,{V:function(){return c}});var o=t(52322),i=t(79692),d=t(72779),S=t.n(d),p=t(2784);const g=(0,i.Z)(f=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:f.spacing(3),paddingBottom:f.spacing(3),paddingLeft:f.spacing(2),paddingRight:f.spacing(2),[f.breakpoints.up("sm")]:{paddingLeft:f.spacing(3),paddingRight:f.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function c(f){const{className:C,stretch:A,noPadding:O,children:x,...P}=f,E=g();return(0,o.jsx)("article",{...P,className:S()(E.root,C,{[E.stretch]:A,[E.noPadding]:O}),children:x})}},30706:function(Y,R,t){"use strict";t.d(R,{y:function(){return C}});var o=t(52322),i=t(62774),d=t(79692),S=t(90436),p=t(2784),g=t(18671);const c=A=>(0,d.Z)(O=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:O.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:O.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}),f=({title:A="Unknown page",className:O})=>(0,o.jsx)(S.Z,{variant:"h4",component:"h2",className:O,"data-testid":"header-title",children:A});function C(A){const{description:O,title:x,titleComponent:P=void 0,children:E,textAlign:M="left"}=A,b=c({textAlign:M})(),L=P||(0,o.jsx)(f,{title:x,className:b.title});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g.q,{title:x}),(0,o.jsxs)(i.Z,{className:b.container,children:[(0,o.jsxs)(i.Z,{className:b.leftItemsBox,children:[L,O&&(0,o.jsx)(S.Z,{className:b.description,variant:"body2",children:O})]}),(0,o.jsx)(i.Z,{className:b.rightItemsBox,children:E})]})]})}},87435:function(Y,R,t){"use strict";t.d(R,{m:function(){return P}});var o=t(52322),i=t(60905),d=t(79692),S=t(90436),p=t(2784),g=t(73557),c=t(98864),f=t(77770),C=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"}),O=()=>{const E=A();return(0,o.jsx)("img",{src:C,className:E.micDrop,alt:"Girl dropping mic from her hands"})},x=(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 P(E){const{status:M,statusMessage:b,additionalInfo:L,supportUrl:$}=E,W=x(),y=(0,g.s0)(),N=(0,f.v)();return(0,o.jsxs)(i.Z,{container:!0,spacing:0,className:W.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:W.subtitle,children:["ERROR ",M,": ",b]}),(0,o.jsx)(S.Z,{variant:"body1",className:W.subtitle,children:L}),(0,o.jsx)(S.Z,{variant:"h2",className:W.title,children:"Looks like someone dropped the mic!"}),(0,o.jsxs)(S.Z,{variant:"h6",children:[(0,o.jsx)(c.rU,{to:"#","data-testid":"go-back-link",onClick:()=>y(-1),children:"Go back"}),"... or please"," ",(0,o.jsx)(c.rU,{to:$||N.url,children:"contact support"})," if you think this is a bug."]})]}),(0,o.jsx)(O,{})]})}},48037:function(Y,R,t){"use strict";t.d(R,{h:function(){return K}});var o=t(52322),i=t(44394),d=t(6542),S=t(62774),p=t(60905),g=t(79692),c=t(80030),f=t(90436),C=t(2784),A=t(18671),O=t(98864),x=t(16173),P=t(11776),E=t(38402),M=t(79784),b=t(15459);const L=(0,b.Z)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(f.Z),$=(0,b.Z)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(S.Z);function W(z){const{children:Q,...st}=z,[Ct,Et]=C.useState(null),mt=C.Children.toArray(Q),[bt,gt,...Pt]=mt,lt=Pt.length?Pt.pop():mt[mt.length-1],V=mt.length>3,k=ct=>{Et(ct.currentTarget)},et=()=>{Et(null)},it=Boolean(Ct);return(0,o.jsxs)(C.Fragment,{children:[(0,o.jsxs)(x.Z,{"aria-label":"breadcrumb",...st,children:[mt.length>1&&(0,o.jsx)($,{clone:!0,children:bt}),mt.length>2&&(0,o.jsx)($,{clone:!0,children:gt}),V&&(0,o.jsx)(L,{onClick:k,children:"..."}),(0,o.jsx)(S.Z,{style:{fontStyle:"italic"},children:lt})]}),(0,o.jsx)(M.ZP,{open:it,anchorEl:Ct,onClose:et,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,o.jsx)(P.Z,{children:Pt.map((ct,F)=>(0,o.jsx)(E.Z,{button:!0,children:(0,o.jsx)($,{clone:!0,children:ct})},F))})})]})}var y=t(44409);const N=(0,g.Z)(z=>({header:{gridArea:"pageHeader",padding:z.spacing(3),width:"100%",boxShadow:z.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:z.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[z.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:z.page.fontColor,wordBreak:"break-word",fontSize:z.typography.h3.fontSize,marginBottom:0},subtitle:{color:z.page.fontColor,opacity:.8,display:"inline-block",marginTop:z.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:z.spacing(1),color:z.page.fontColor},breadcrumb:{color:z.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-z.spacing(.3),marginBottom:z.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-z.spacing(.3),marginBottom:z.spacing(.3)}}),{name:"BackstageHeader"}),at=({type:z,typeLink:Q,classes:st,pageTitle:Ct})=>z?Q?(0,o.jsxs)(W,{className:st.breadcrumb,children:[(0,o.jsx)(O.rU,{to:Q,children:z}),(0,o.jsx)(f.Z,{children:Ct})]}):(0,o.jsx)(f.Z,{className:st.type,children:z}):null,J=({pageTitle:z,classes:Q,tooltip:st})=>{const{contentRef:Ct}=(0,y.r)(),Et=(0,o.jsx)(f.Z,{ref:Ct,tabIndex:-1,className:Q.title,variant:"h1",children:z});return st?(0,o.jsx)(c.ZP,{title:st,placement:"top-start",children:Et}):Et},G=({classes:z,subtitle:Q})=>Q?typeof Q!="string"?(0,o.jsx)(o.Fragment,{children:Q}):(0,o.jsx)(f.Z,{className:z.subtitle,variant:"subtitle2",component:"span",children:Q}):null;function K(z){const{children:Q,pageTitleOverride:st,style:Ct,subtitle:Et,title:mt,tooltip:bt,type:gt,typeLink:Pt}=z,lt=N(),k=(0,i.h_)(d.D).getOptionalString("app.title")||"Backstage",et=st||mt,it=mt||st,ct=`${et} | %s | ${k}`,F=`${et} | ${k}`;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A.q,{titleTemplate:ct,defaultTitle:F}),(0,o.jsxs)("header",{style:Ct,className:lt.header,children:[(0,o.jsxs)(S.Z,{className:lt.leftItemsBox,children:[(0,o.jsx)(at,{classes:lt,type:gt,typeLink:Pt,pageTitle:it}),(0,o.jsx)(J,{classes:lt,pageTitle:it,tooltip:bt}),(0,o.jsx)(G,{classes:lt,subtitle:Et})]}),(0,o.jsx)(p.Z,{container:!0,className:lt.rightItemsBox,spacing:4,children:Q})]})]})}},67880:function(Y,R,t){"use strict";t.d(R,{T:function(){return g}});var o=t(52322),i=t(2784),d=t(79692),S=t(41547);const p=(0,d.Z)(c=>({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",[c.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function g(c){const{themeId:f,children:C}=c,A=p();return(0,o.jsx)(S.Z,{theme:O=>({...O,page:O.getPageTheme({themeId:f})}),children:(0,o.jsx)("main",{className:A.root,children:C})})}},32166:function(Y,R,t){"use strict";t.d(R,{g:function(){return p}});var o=t(52322),i=t(2784),d=t(48037),S=t(67880);function p(g){const{themeId:c,children:f,...C}=g;return(0,o.jsxs)(S.T,{themeId:c,children:[(0,o.jsx)(d.h,{...C}),f]})}},44409:function(Y,R,t){"use strict";t.d(R,{t:function(){return x},r:function(){return P}});var o=t(52322),i=t(62774),d=t(79692),S=t(41156),p=t(2784),g=t(76921),c;(function(E){E.SIDEBAR_PIN_STATE="sidebarPinState"})(c||(c={}));const f={getSidebarPinState(){let E;try{E=JSON.parse(window.localStorage.getItem(c.SIDEBAR_PIN_STATE)||"true")}catch{return!0}return!!E},setSidebarPinState(E){return window.localStorage.setItem(c.SIDEBAR_PIN_STATE,JSON.stringify(E))}};var C=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:M=>M.isPinned?M.sidebarConfig.drawerWidthOpen:M.sidebarConfig.drawerWidthClosed},[E.breakpoints.down("xs")]:{paddingBottom:M=>M.sidebarConfig.mobileSidebarHeight},"@media print":{padding:"0px !important"}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),O=(0,p.createContext)({content:{contentRef:void 0}});function x(E){const[M,b]=(0,p.useState)(()=>f.getSidebarPinState()),{sidebarConfig:L}=(0,p.useContext)(g.kG),$=(0,p.useRef)(null),W=(0,p.useMemo)(()=>({content:{contentRef:$}}),[$]);(0,p.useEffect)(()=>{f.setSidebarPinState(M)},[M]);const y=(0,S.Z)(J=>J.breakpoints.down("xs"),{noSsr:!0}),N=()=>b(!M),at=A({isPinned:M,sidebarConfig:L});return(0,o.jsx)(C.lE,{value:{isPinned:M,toggleSidebarPinState:N,isMobile:y},children:(0,o.jsx)(O.Provider,{value:W,children:(0,o.jsx)(i.Z,{className:at.root,children:E.children})})})}function P(){var E;const{content:M}=(0,p.useContext)(O);return{focusContent:(0,p.useCallback)(()=>{var L,$,W;(W=M)===null||W===void 0||($=W.contentRef)===null||$===void 0||(L=$.current)===null||L===void 0||L.focus()},[M]),contentRef:(E=M)===null||E===void 0?void 0:E.contentRef}}},93539:function(Y,R,t){"use strict";t.d(R,{Pf:function(){return C},lE:function(){return f}});var o=t(52322),i=t(29651),d=t(68993),S=t(2784);const p={isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1},g=(0,S.createContext)(p),c=(0,i.CT)("sidebar-pin-state-context");function f(A){const{children:O,value:x}=A;return(0,o.jsx)(g.Provider,{value:x,children:(0,o.jsx)(c.Provider,{value:(0,d.E)({1:x}),children:O})})}const C=()=>{const A=(0,S.useContext)(c),O=(0,S.useContext)(g);if(A===void 0)return O||p;const x=A.atVersion(1);if(x===void 0)throw new Error("No context found for version 1.");return x}},76921:function(Y,R,t){"use strict";t.d(R,{$E:function(){return g},Ag:function(){return O},kG:function(){return A},po:function(){return p},rW:function(){return f}});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},g=x=>({...p,...x,iconContainerWidth:p.drawerWidthClosed,iconSize:p.drawerWidthClosed-p.iconPadding*2,userBadgeDiameter:p.drawerWidthClosed-p.userBadgePadding*2}),c={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:p.defaultOpenDelayMs+200},f=x=>({...c,...x}),C="@backstage/core/sidebar-intro-dismissed",A=(0,o.createContext)({sidebarConfig:p,submenuConfig:c}),O=(0,o.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}})},72388:function(Y,R,t){"use strict";t.d(R,{Os:function(){return g},fC:function(){return c}});var o=t(52322),i=t(29651),d=t(68993),S=t(2784);const p=(0,i.CT)("analytics-context"),g=()=>{const C=(0,S.useContext)(p);if(C===void 0)return{routeRef:"unknown",pluginId:"root",extension:"App"};const A=C.atVersion(1);if(A===void 0)throw new Error("No context found for version 1.");return A},c=C=>{const{attributes:A,children:O}=C,P={...g(),...A},E=(0,d.E)({1:P});return(0,o.jsx)(p.Provider,{value:E,children:O})};function f(C,A){const O=x=>_jsx(c,{attributes:A,children:_jsx(C,{...x})});return O.displayName=`WithAnalyticsContext(${C.displayName||C.name||"Component"})`,O}},7355:function(Y,R,t){"use strict";t.d(R,{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(c){this.context=c}captureEvent(c,f,{value:C,attributes:A}={}){const{_routeNodeType:O,...x}=this.context;if(c===S){d.mostRecentGatheredNavigation&&(d.mostRecentRoutableExtensionRender={context:{...x,extension:"App"}});return}if(d.mostRecentGatheredNavigation){try{this.analyticsApi.captureEvent({...d.mostRecentGatheredNavigation,...d.mostRecentRoutableExtensionRender})}catch(P){console.warn("Error during analytics event capture. %o",P)}d.mostRecentGatheredNavigation=void 0,d.mostRecentRoutableExtensionRender=void 0}if(c==="navigate"&&O==="gathered"&&x.pluginId==="root"){d.mostRecentGatheredNavigation={action:c,subject:f,value:C,attributes:A,context:x};return}try{this.analyticsApi.captureEvent({action:c,subject:f,value:C,attributes:A,context:x})}catch(P){console.warn("Error during analytics event capture. %o",P)}}constructor(c,f={routeRef:"unknown",pluginId:"root",extension:"App"}){(0,o._)(this,"analyticsApi",void 0),(0,o._)(this,"context",void 0),this.analyticsApi=c,this.context=f,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(Y,R,t){"use strict";t.d(R,{z:function(){return c}});var o=t(72388),i=t(44394),d=t(86386),S=t(2784),p=t(7355);function g(){try{return(0,i.h_)(d.v)}catch{return{captureEvent:()=>{}}}}function c(){const f=(0,S.useRef)(null),C=(0,o.Os)(),A=g();function O(){return f.current===null&&(f.current=new p.f(A)),f.current}const x=O();return x.setContext(C),x}},78847:function(Y,R,t){"use strict";t.d(R,{$:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.alert"})},86386:function(Y,R,t){"use strict";t.d(R,{v:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.analytics"})},6542:function(Y,R,t){"use strict";t.d(R,{D:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.config"})},96727:function(Y,R,t){"use strict";t.d(R,{N:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.discovery"})},58513:function(Y,R,t){"use strict";t.d(R,{V:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.error"})},82723:function(Y,R,t){"use strict";t.d(R,{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(Y,R,t){"use strict";t.d(R,{g:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.fetch"})},77186:function(Y,R,t){"use strict";t.d(R,{$:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.identity"})},95965:function(Y,R,t){"use strict";t.d(R,{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(c=>c.split("-")).every(c=>c.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(Y,R,t){"use strict";t.d(R,{n:function(){return o}});function o(i,d){return"id"in i?{api:i,deps:{},factory:()=>d}:i}},44394:function(Y,R,t){"use strict";t.d(R,{I_:function(){return S},h_:function(){return p}});var o=t(52322),i=t(2784),d=t(29651);function S(){const c=(0,d.Vt)("api-context");if(!c)throw new Error("API context is not available");const f=c.atVersion(1);if(!f)throw new Error("ApiContext v1 not available");return f}function p(c){const C=S().get(c);if(!C)throw new Error(`No implementation available for ${c}`);return C}function g(c){return function(C){const A=x=>{const P=S(),E={};for(const M in c)if(c.hasOwnProperty(M)){const b=c[M],L=P.get(b);if(!L)throw new Error(`No implementation available for ${b}`);E[M]=L}return _jsx(C,{...x,...E})},O=C.displayName||C.name||"Component";return A.displayName=`withApis(${O})`,A}}},80851:function(Y,R,t){"use strict";t.d(R,{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(Y,R,t){"use strict";t.d(R,{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(g,c,f){const C=g;var A;let O=(A=C[d])!==null&&A!==void 0?A:i.get(g);if(O||(O={map:new Map},Object.defineProperty(C,d,{enumerable:!1,configurable:!0,writable:!1,value:O}),i.set(g,O)),O.map.has(c)){const x=g.displayName||g.name;throw new Error(`Attempted to attach duplicate data "${c}" to component "${x}"`)}O.map.set(c,f)}function p(g,c){if(!g)return;const f=g.type;if(!f)return;var C;const A=(C=f[d])!==null&&C!==void 0?C:i.get(f);if(A)return A.map.get(c)}},82963:function(Y,R,t){"use strict";t.d(R,{CO:function(){return P},YO:function(){return E},P4:function(){return x}});var o=t(52322),i=t(2784),d=t(62369),S=t(72388),p=t(80851),g=t(37321),c=t(62584),f=t(87612);class C extends i.Component{static getDerivedStateFromError(b){return{error:b}}render(){const{error:b}=this.state,{app:L,plugin:$}=this.props,{ErrorBoundaryFallback:W}=L.getComponents();return b?(0,o.jsx)(W,{error:b,resetError:this.handleErrorReset,plugin:$}):this.props.children}constructor(...b){super(...b),(0,f._)(this,"state",{error:void 0}),(0,f._)(this,"handleErrorReset",()=>{this.setState({error:void 0})})}}var A=t(24797),O=t(7355);function x(M){const{component:b,mountPoint:L,name:$}=M;return E({component:{lazy:()=>b().then(W=>{const y=at=>{const J=(0,d.z)();try{(0,g.t)(L)}catch(G){if(typeof G=="object"&&G!==null){const{message:K}=G;if(typeof K=="string"&&K.startsWith("No path for "))throw new Error(`Routable extension component with mount point ${L} was not discovered in the app element tree. Routable extension components may not be rendered by other components and must be directly available as an element within the App provider component.`)}throw G}return(0,i.useEffect)(()=>{J.captureEvent(O.h,"")},[J]),(0,o.jsx)(W,{...at})},N=$||W.displayName||W.name||"LazyComponent";return y.displayName=`RoutableExtension(${N})`,y},W=>N=>{const at=(0,p.q)(),{BootErrorPage:J}=at.getComponents();return(0,o.jsx)(J,{step:"load-chunk",error:W})})},data:{"core.mountPoint":L},name:$})}function P(M){const{component:b,name:L}=M;return E({component:b,name:L})}function E(M){const{data:b={},name:L}=M;L||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name.");let $;if("lazy"in M.component){const y=M.component.lazy;$=(0,i.lazy)(()=>y().then(N=>({default:N})))}else $=M.component.sync;const W=L||$.displayName||$.name||"Component";return{expose(y){const N=at=>{var J;const G=(0,p.q)(),{Progress:K}=G.getComponents(),z=(J=b)===null||J===void 0?void 0:J["core.mountPoint"];return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(K,{}),children:(0,o.jsx)(C,{app:G,plugin:y,children:(0,o.jsx)(S.fC,{attributes:{pluginId:y.getId(),...L&&{extension:L},...z&&{routeRef:z.id}},children:(0,o.jsx)(A.o,{plugin:y,children:(0,o.jsx)($,{...at})})})})})};(0,c.R)(N,"core.plugin",y),(0,c.R)(N,"core.extensionName",L);for(const[at,J]of Object.entries(b))(0,c.R)(N,at,J);return N.displayName=`Extension(${W})`,N}}}},2532:function(Y,R,t){"use strict";t.d(R,{v:function(){return f}});var o=t(87612),i=t(2784),d=t(62584),S=t(44394),p=t(82723);function g(C,A,O,x){return i.Children.toArray(C).flatMap(P=>{if(!(0,i.isValidElement)(P))return[];if(P.type===i.Fragment)return g(P.props.children,A,O,x);if((0,d.I)(P,"core.featureFlagged")){const E=P.props;return("with"in E?A.isActive(E.with):!A.isActive(E.without))?g(P.props.children,A,O,x):[]}if(O===void 0||O(P))return[P];if(x)throw new Error(x);return g(P.props.children,A,O,x)})}class c{selectByComponentData(A){const O=g(this.node,this.featureFlagsApi,x=>(0,d.I)(x,A.key)!==void 0,A.withStrictError);return new c(O,this.featureFlagsApi)}findComponentData(A){return g(this.node,this.featureFlagsApi,x=>(0,d.I)(x,A.key)!==void 0).map(x=>(0,d.I)(x,A.key)).filter(x=>x!==void 0)}getElements(){return g(this.node,this.featureFlagsApi)}constructor(A,O){(0,o._)(this,"node",void 0),(0,o._)(this,"featureFlagsApi",void 0),this.node=A,this.featureFlagsApi=O}}function f(C,A,O=[]){const x=(0,S.h_)(p.W),P=new c(C,x);return(0,i.useMemo)(()=>A(P),[C,...O])}},24797:function(Y,R,t){"use strict";t.d(R,{o:function(){return g},y:function(){return c}});var o=t(52322),i=t(29651),d=t(68993),S=t(2784);const p="plugin-context",g=f=>{const{children:C,plugin:A}=f,{Provider:O}=(0,i.CT)(p);return(0,o.jsx)(O,{value:(0,d.E)({1:{plugin:A}}),children:C})};function c(){const f=(0,i.Vt)(p);if(!f)throw new Error("Plugin Options context is not available");const C=f.atVersion(1);if(!C)throw new Error("Plugin Options v1 is not available");return C.plugin.getPluginOptions()}},15006:function(Y,R,t){"use strict";t.d(R,{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,g;return(g=(p=this.config.featureFlags)===null||p===void 0?void 0:p.slice())!==null&&g!==void 0?g:[]}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)}__experimentalReconfigure(p){this.config.__experimentalConfigure&&(this.options=this.config.__experimentalConfigure(p))}getPluginOptions(){this.config.__experimentalConfigure&&!this.options&&(this.options=this.config.__experimentalConfigure());var p;return(p=this.options)!==null&&p!==void 0?p:{}}toString(){return`plugin{${this.config.id}}`}constructor(p){(0,o._)(this,"config",void 0),(0,o._)(this,"options",void 0),this.config=p,this.options=void 0}}function d(S){return new i(S)}},30283:function(Y,R,t){"use strict";t.d(R,{N:function(){return g}});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(f,C){(0,o._)(this,"id",void 0),(0,o._)(this,"params",void 0),(0,o._)(this,S,void 0),this.id=f,this.params=C,this[d]="absolute"}}function g(c){var f;return new p(c.id,(f=c.params)!==null&&f!==void 0?f:[])}},92918:function(Y,R,t){"use strict";t.d(R,{K:function(){return i}});var o=t(96087);const i=(0,o.u)("route-ref-type",()=>Symbol("route-ref-type"))},37321:function(Y,R,t){"use strict";t.d(R,{t:function(){return S}});var o=t(2784),i=t(73557),d=t(29651);function S(p){const{pathname:g}=(0,i.TH)(),c=(0,d.Vt)("routing-context");if(!c)throw new Error("Routing context is not available");const f=c.atVersion(1),C=(0,o.useMemo)(()=>f&&f.resolve(p,{pathname:g}),[f,p,g]);if(!c)throw new Error("useRouteRef used outside of routing context");if(!f)throw new Error("RoutingContext v1 not available");const A="optional"in p&&p.optional;if(!C&&!A)throw new Error(`No path for ${p}`);return C}},41385:function(Y,R,t){"use strict";t.d(R,{V:function(){return S}});var o=t(87612),i=t(48998);async function d(p){try{const c=await p.text();if(c){var g;if(!((g=p.headers.get("content-type"))===null||g===void 0)&&g.startsWith("application/json"))try{const f=JSON.parse(c);if(f.error&&f.response)return f}catch{}return{error:{name:"Error",message:`Request failed with status ${p.status} ${p.statusText}, ${c}`},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(g){const c=await d(g),f=c.response.statusCode||g.status,C=c.error.name||g.statusText,A=`Request failed with ${f} ${C}`,O=(0,i.Fq)(c.error);return new S({message:A,response:g,data:c,cause:O})}constructor(g){super(g.message),(0,o._)(this,"response",void 0),(0,o._)(this,"body",void 0),(0,o._)(this,"cause",void 0),this.name="ResponseError",this.response=g.response,this.body=g.data,this.cause=g.cause}}},30474:function(Y,R,t){"use strict";t.d(R,{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(Y,R,t){"use strict";t.d(R,{Fq:function(){return p},n:function(){return g}});var o=t(24852),i=t.n(o),d=t(30474);function S(c,f){var C;const O={name:"Unknown",message:"<no reason given>",...serializeErrorInternal(c)};return!((C=f)===null||C===void 0)&&C.includeStack||delete O.stack,O}function p(c){const f=(0,o.deserializeError)(c);return c.stack||(f.stack=void 0),f}function g(c){if((0,d.V)(c)){const f=String(c);return f!=="[object Object]"?f:`${c.name}: ${c.message}`}return`unknown error '${c}'`}},91657:function(Y,R,t){"use strict";t.d(R,{a:function(){return _e},q:function(){return sn}});var o=t(87612),i=t(38264);const d="amazonaws.com";function S(D){const u=D.getOptionalString("endpoint");var U;const B=(U=D.getOptionalBoolean("s3ForcePathStyle"))!==null&&U!==void 0?U:!1;let ot,xt;if(u){try{const Jt=new URL(u);ot=Jt.host,xt=Jt.pathname}catch{throw new Error(`invalid awsS3 integration config, endpoint '${u}' is not a valid URL`)}if(xt!=="/")throw new Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${u}'`)}else ot=d;const St=D.getOptionalString("accessKeyId"),Mt=D.getOptionalString("secretAccessKey"),Ut=D.getOptionalString("roleArn"),ne=D.getOptionalString("externalId");return{host:ot,endpoint:u,s3ForcePathStyle:B,accessKeyId:St,secretAccessKey:Mt,roleArn:Ut,externalId:ne}}function p(D){const u=D.map(S);return u.some(U=>U.host===d)||u.push({host:d}),u}class g{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._)(g,"factory",({config:D})=>{var u;const U=p((u=D.getOptionalConfigArray("integrations.awsS3"))!==null&&u!==void 0?u:[]);return(0,i.gz)(U.map(B=>new g(B)),B=>B.config.host)});var c=t(88412),f=t(52475),C=t(80956);const A="GB";var O=new WeakMap,x=new WeakMap,P=new WeakMap,E=new WeakMap,M=new WeakMap,b=new WeakMap,L=new WeakMap;class ${static fromRepoUrl(u){const U=new URL(u);let B,ot,xt;const St=U.pathname.split("/").map(ce=>decodeURIComponent(ce));if(St[2]==="_git"?(B=St[1],ot=xt=St[3]):St[3]==="_git"?(B=St[1],ot=St[2],xt=St[4]):St[4]==="_git"&&(B=`${St[1]}/${St[2]}`,ot=St[3],xt=St[5]),!B||!ot||!xt)throw new Error("Azure URL must point to a git repository");var Mt;const Ut=(Mt=U.searchParams.get("path"))!==null&&Mt!==void 0?Mt:void 0;let ne;const Jt=U.searchParams.get("version");if(Jt){if(Jt.slice(0,2)!=="GB")throw new Error("Azure URL version must point to a git branch");ne=Jt.slice(2)}return new $(U.origin,B,ot,xt,Ut,ne)}toRepoUrl(){let u;return(0,c._)(this,P)===(0,c._)(this,E)?u=(0,c._)(this,L).call(this,(0,c._)(this,x),"_git",(0,c._)(this,E)):u=(0,c._)(this,L).call(this,(0,c._)(this,x),(0,c._)(this,P),"_git",(0,c._)(this,E)),(0,c._)(this,M)&&u.searchParams.set("path",(0,c._)(this,M)),(0,c._)(this,b)&&u.searchParams.set("version",A+(0,c._)(this,b)),u.toString()}toFileUrl(){if(!(0,c._)(this,M))throw new Error("Azure URL must point to a specific path to be able to download a file");const u=(0,c._)(this,L).call(this,(0,c._)(this,x),(0,c._)(this,P),"_apis","git","repositories",(0,c._)(this,E),"items");return u.searchParams.set("api-version","6.0"),u.searchParams.set("path",(0,c._)(this,M)),(0,c._)(this,b)&&u.searchParams.set("version",(0,c._)(this,b)),u.toString()}toArchiveUrl(){const u=(0,c._)(this,L).call(this,(0,c._)(this,x),(0,c._)(this,P),"_apis","git","repositories",(0,c._)(this,E),"items");return u.searchParams.set("recursionLevel","full"),u.searchParams.set("download","true"),u.searchParams.set("api-version","6.0"),(0,c._)(this,M)&&u.searchParams.set("scopePath",(0,c._)(this,M)),(0,c._)(this,b)&&u.searchParams.set("version",(0,c._)(this,b)),u.toString()}toCommitsUrl(){const u=(0,c._)(this,L).call(this,(0,c._)(this,x),(0,c._)(this,P),"_apis","git","repositories",(0,c._)(this,E),"commits");return u.searchParams.set("api-version","6.0"),(0,c._)(this,b)&&u.searchParams.set("searchCriteria.itemVersion.version",(0,c._)(this,b)),u.toString()}getOwner(){return(0,c._)(this,x)}getProject(){return(0,c._)(this,P)}getRepo(){return(0,c._)(this,E)}getPath(){return(0,c._)(this,M)}getRef(){return(0,c._)(this,b)}constructor(u,U,B,ot,xt,St){(0,f._)(this,O,{writable:!0,value:void 0}),(0,f._)(this,x,{writable:!0,value:void 0}),(0,f._)(this,P,{writable:!0,value:void 0}),(0,f._)(this,E,{writable:!0,value:void 0}),(0,f._)(this,M,{writable:!0,value:void 0}),(0,f._)(this,b,{writable:!0,value:void 0}),(0,f._)(this,L,{writable:!0,value:(...Mt)=>{const Ut=new URL((0,c._)(this,O));return Ut.pathname=Mt.map(ne=>encodeURIComponent(ne)).join("/"),Ut}}),(0,C._)(this,O,u),(0,C._)(this,x,U),(0,C._)(this,P,B),(0,C._)(this,E,ot),(0,C._)(this,M,xt),(0,C._)(this,b,St)}}const W="dev.azure.com",y=["clientId","clientSecret","tenantId","personalAccessToken"],N=new Map([["ClientSecret",["clientId","clientSecret","tenantId"]],["ManagedIdentity",["clientId"]],["PersonalAccessToken",["personalAccessToken"]]]);function at(D){for(const u of N.entries()){const[U,B]=u,ot=y.filter(xt=>!B.includes(xt));if(B.every(xt=>D[xt]!==void 0)&&ot.every(xt=>D[xt]===void 0))return{kind:U,organizations:D.organizations,...B.reduce((xt,St)=>(xt[St]=D[St],xt),{})}}throw new Error("is not a valid credential")}function J(D){var u,U;const B=(U=D.getOptionalString("host"))!==null&&U!==void 0?U:W;let ot=(u=D.getOptionalConfigArray("credentials"))===null||u===void 0?void 0:u.map(pe=>({organizations:pe.getOptionalStringArray("organizations"),personalAccessToken:pe.getOptionalString("personalAccessToken"),tenantId:pe.getOptionalString("tenantId"),clientId:pe.getOptionalString("clientId"),clientSecret:pe.getOptionalString("clientSecret")}));const xt=D.getOptionalString("token");if(D.getOptional("credential")!==void 0&&D.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'credential' and 'credentials' cannot be used together. Use 'credentials' instead.");if(D.getOptional("token")!==void 0&&D.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'token' and 'credentials' cannot be used together. Use 'credentials' instead.");if(xt!==void 0){var St;const pe=[{personalAccessToken:xt}];var Mt;ot=(Mt=(St=ot)===null||St===void 0?void 0:St.concat(pe))!==null&&Mt!==void 0?Mt:pe}if(D.getOptional("credential")!==void 0){var Ut;const pe=[{organizations:D.getOptionalStringArray("credential.organizations"),token:D.getOptionalString("credential.token"),tenantId:D.getOptionalString("credential.tenantId"),clientId:D.getOptionalString("credential.clientId"),clientSecret:D.getOptionalString("credential.clientSecret")}];var ne;ot=(ne=(Ut=ot)===null||Ut===void 0?void 0:Ut.concat(pe))!==null&&ne!==void 0?ne:pe}if(!(0,i.bK)(B))throw new Error(`Invalid Azure integration config, '${B}' is not a valid host`);let Jt;if(ot!==void 0){var ce,an;const pe=(ce=ot)===null||ce===void 0?void 0:ce.reduce((qt,je,Nt)=>{let oe;try{at(je)}catch(te){oe=te.message}return oe!==void 0&&qt.push(`credential at position ${Nt+1} ${oe}`),qt},Array.of()).concat(Object.entries(ot.filter(qt=>qt.organizations!==void 0&&qt.organizations.length>0).reduce((qt,je,Nt)=>{var oe;return(oe=je.organizations)===null||oe===void 0||oe.forEach(te=>{qt[te]||(qt[te]=[]),qt[te].push(Nt+1)}),qt},{})).filter(([qt,je])=>je.length>1).reduce((qt,[je,Nt])=>(qt.push(`organization ${je} is specified multiple times in credentials at positions ${Nt.slice(0,Nt.length-1).join(", ")} and ${Nt[Nt.length-1]}`),qt),Array.of()));if(((an=pe)===null||an===void 0?void 0:an.length)>0)throw new Error(`Invalid Azure integration config for ${B}: ${pe.join("; ")}`);if(Jt=ot.map(qt=>at(qt)),Jt.some(qt=>qt.kind!=="PersonalAccessToken")&&B!==W)throw new Error(`Invalid Azure integration config for ${B}, only personal access tokens can be used with hosts other than ${W}`);if(Jt.filter(qt=>qt.organizations===void 0||qt.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:Jt}}function G(D){const u=D.map(J);return u.some(U=>U.host===W)||u.push({host:W}),u}class K{get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const{url:U,base:B}=u;if((0,i.jv)(U))return U;try{const xt=$.fromRepoUrl(B),St=new URL(B);var ot;const Mt=new URL(`https://a.com${(ot=xt.getPath())!==null&&ot!==void 0?ot:""}`),Ut=new URL(U,Mt).pathname;return St.searchParams.set("path",Ut),u.lineNumber&&(St.searchParams.set("line",String(u.lineNumber)),St.searchParams.set("lineEnd",String(u.lineNumber+1)),St.searchParams.set("lineStartColumn","1"),St.searchParams.set("lineEndColumn","1")),St.toString()}catch{return new URL(U,B).toString()}}resolveEditUrl(u){return u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(K,"factory",({config:D})=>{var u;const U=G((u=D.getOptionalConfigArray("integrations.azure"))!==null&&u!==void 0?u:[]);return(0,i.gz)(U.map(B=>new K(B)),B=>B.config.host)});var z=t(82717),Q=t.n(z);const st="bitbucket.org",Ct="https://api.bitbucket.org/2.0";function Et(D){const u=st,U=Ct,B=D.getString("username"),ot=D.getString("appPassword");return{host:u,apiBaseUrl:U,username:B,appPassword:ot}}function mt(D){const u=D.map(Et);return u.length===0&&u.push({host:st,apiBaseUrl:Ct}),u}class bt{get type(){return"bitbucketCloud"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const U=(0,i.FI)(u);if(u.lineNumber){const B=new URL(U);return B.hash=`lines-${u.lineNumber}`,B.toString()}return U}resolveEditUrl(u){const U=Q()(u),B=new URL(u);return B.searchParams.set("mode","edit"),B.searchParams.set("at",U.ref),B.toString()}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(bt,"factory",({config:D})=>{var u;const U=mt((u=D.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&u!==void 0?u:[]);return(0,i.gz)(U.map(B=>new bt(B)),B=>B.config.host)});var gt=t(76635);const Pt="bitbucket.org",lt="https://api.bitbucket.org/2.0";function V(D){var u;const U=(u=D.getOptionalString("host"))!==null&&u!==void 0?u:Pt;let B=D.getOptionalString("apiBaseUrl");const ot=D.getOptionalString("token"),xt=D.getOptionalString("username"),St=D.getOptionalString("appPassword");if(!(0,i.bK)(U))throw new Error(`Invalid Bitbucket integration config, '${U}' is not a valid host`);return B?B=(0,gt.trimEnd)(B,"/"):U===Pt?B=lt:B=`https://${U}/rest/api/1.0`,{host:U,apiBaseUrl:B,token:ot,username:xt,appPassword:St}}function k(D){const u=D.map(V);return u.some(U=>U.host===Pt)||u.push({host:Pt,apiBaseUrl:lt}),u}class et{get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const U=(0,i.FI)(u);if(!u.lineNumber)return U;const B=new URL(U);return this.integrationConfig.host==="bitbucket.org"?B.hash=`lines-${u.lineNumber}`:B.hash=`${u.lineNumber}`,B.toString()}resolveEditUrl(u){const U=Q()(u),B=new URL(u);return B.searchParams.set("mode","edit"),B.searchParams.set("spa","0"),B.searchParams.set("at",U.ref),B.toString()}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(et,"factory",({config:D})=>{var u,U,B;const ot=k((B=D.getOptionalConfigArray("integrations.bitbucket"))!==null&&B!==void 0?B:[...(u=D.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&u!==void 0?u:[],...(U=D.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&U!==void 0?U:[]]);return(0,i.gz)(ot.map(xt=>new et(xt)),xt=>xt.config.host)});function it(D){const u=D.getString("host");let U=D.getOptionalString("apiBaseUrl");const B=D.getOptionalString("token"),ot=D.getOptionalString("username"),xt=D.getOptionalString("password");if(!(0,i.bK)(u))throw new Error(`Invalid Bitbucket Server integration config, '${u}' is not a valid host`);return U?U=(0,gt.trimEnd)(U,"/"):U=`https://${u}/rest/api/1.0`,{host:u,apiBaseUrl:U,token:B,username:ot,password:xt}}function ct(D){return D.map(it)}class F{get type(){return"bitbucketServer"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const U=(0,i.FI)(u);if(u.lineNumber){const B=new URL(U);return B.hash=u.lineNumber.toString(),B.toString()}return U}resolveEditUrl(u){return u.includes("?")?u.substring(0,u.indexOf("?")):u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(F,"factory",({config:D})=>{var u;const U=ct((u=D.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&u!==void 0?u:[]);return(0,i.gz)(U.map(B=>new F(B)),B=>B.config.host)});function H(D){const u=D.getString("host");let U=D.getOptionalString("baseUrl"),B=D.getOptionalString("cloneUrl"),ot=D.getOptionalString("gitilesBaseUrl");const xt=D.getOptionalString("username"),St=D.getOptionalString("password");if((0,i.bK)(u)){if(U&&!(0,i.jv)(U))throw new Error(`Invalid Gerrit integration config, '${U}' 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(ot&&!(0,i.jv)(ot))throw new Error(`Invalid Gerrit integration config, '${ot}' is not a valid gitilesBaseUrl`)}else throw new Error(`Invalid Gerrit integration config, '${u}' is not a valid host`);return U?U=(0,gt.trimEnd)(U,"/"):U=`https://${u}`,ot?ot=(0,gt.trimEnd)(ot,"/"):ot=`https://${u}`,B?B=(0,gt.trimEnd)(B,"/"):B=U,{host:u,baseUrl:U,cloneUrl:B,gitilesBaseUrl:ot,username:xt,password:St}}function ft(D){return D.map(H)}var ht=t(48834).lW;const dt=")]}'";function At(D,u){const U=new URL(D.gitilesBaseUrl),B=new URL(u),xt=B.pathname.substring(B.pathname.startsWith("/a/")?2:0).replace(U.pathname,"").split("/").filter(ce=>!!ce),St=xt.indexOf("+");if(St<=0)throw new Error(`Unable to parse project from url: ${u}`);const Mt=(0,gt.trimStart)(xt.slice(0,St).join("/"),"/"),Ut=xt.indexOf("heads");if(Ut<=0)throw new Error(`Unable to parse branch from url: ${u}`);const ne=xt[Ut+1],Jt=xt.slice(Ut+2).join("/");return{branch:ne,filePath:Jt===""?"/":Jt,project:Mt}}function vt(D,u,U,B){return`${D.gitilesBaseUrl}/${u}/+/refs/heads/${U}/${(0,gt.trimStart)(B,"/")}`}function It(D,u,U,B){const ot=B==="/"||B===""?".tar.gz":`/${B}.tar.gz`;return`${Lt(D)}/${u}/+archive/refs/heads/${U}${ot}`}function wt(D){return D.password?"/a/":"/"}function Lt(D){if(!D.baseUrl||!D.gitilesBaseUrl)throw new Error("Unexpected Gerrit config values. baseUrl or gitilesBaseUrl not set.");if(D.gitilesBaseUrl.startsWith(D.baseUrl))return D.gitilesBaseUrl.replace(D.baseUrl.concat("/"),D.baseUrl.concat(wt(D)));if(D.password)throw new Error("Since the baseUrl (Gerrit) is not part of the gitilesBaseUrl, an authentication URL could not be constructed.");return D.gitilesBaseUrl}function kt(D,u){const{branch:U,project:B}=At(D,u);return`${D.baseUrl}${wt(D)}projects/${encodeURIComponent(B)}/branches/${U}`}function Qt(D,u){const{project:U}=At(D,u);return`${D.cloneUrl}${wt(D)}${U}`}function ee(D,u){const{branch:U,filePath:B,project:ot}=At(D,u);return`${D.baseUrl}${wt(D)}projects/${encodeURIComponent(ot)}/branches/${U}/files/${encodeURIComponent(B)}/content`}function Zt(D){return`${D.baseUrl}${wt(D)}projects/`}function be(D){const u={};if(!D.password)return u;const U=ht.from(`${D.username}:${D.password}`,"utf8");return u.Authorization=`Basic ${U.toString("base64")}`,{headers:u}}async function Wt(D){const u=await D.text();if(u.startsWith(dt))try{return JSON.parse(u.slice(dt.length))}catch(U){throw new Error(`Invalid response from Gerrit: ${u.slice(0,10)} - ${U}`)}throw new Error(`Gerrit JSON body prefix missing. Found: ${u.slice(0,10)}`)}class zt{get type(){return"gerrit"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const{url:U,base:B,lineNumber:ot}=u;let xt;if(U.startsWith("/")){const{branch:St,project:Mt}=At(this.config,B);return vt(this.config,Mt,St,U)}return U?xt=new URL(U,B):xt=new URL(B),ot&&(xt.hash=ot.toString()),xt.toString()}resolveEditUrl(u){return u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(zt,"factory",({config:D})=>{var u;const U=ft((u=D.getOptionalConfigArray("integrations.gerrit"))!==null&&u!==void 0?u:[]);return(0,i.gz)(U.map(B=>new zt(B)),B=>B.config.host)});var ae=t(61800);const he="gitlab.com",Ke="https://gitlab.com/api/v4";function Xe(D){const u=D.getString("host");let U=D.getOptionalString("apiBaseUrl");const B=D.getOptionalString("token");let ot=D.getOptionalString("baseUrl");if(U?U=(0,gt.trimEnd)(U,"/"):u===he&&(U=Ke),ot?ot=(0,gt.trimEnd)(ot,"/"):ot=`https://${u}`,(0,i.bK)(u)){if(!U||!(0,i.jv)(U))throw new Error(`Invalid GitLab integration config, '${U}' is not a valid apiBaseUrl`);if(!(0,i.jv)(ot))throw new Error(`Invalid GitLab integration config, '${ot}' 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:U,baseUrl:ot}}function qe(D){const u=D.map(Xe);return u.some(U=>U.host===he)||u.push({host:he,apiBaseUrl:Ke,baseUrl:`https://${he}`}),u}function gn(D){let u="";return D.host!==he&&(u=new URL(D.baseUrl).pathname),trimEnd(u,"/")}class $e{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 ke(u,"edit")}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)($e,"factory",({config:D})=>{var u;const U=qe((u=D.getOptionalConfigArray("integrations.gitlab"))!==null&&u!==void 0?u:[]);return(0,i.gz)(U.map(B=>new $e(B)),B=>B.config.host)});function ke(D,u){return D.replace(/\/\-\/(blob|tree|edit)\//,`/-/${u}/`)}function ye(D){const u=D.getString("host");let U=D.getOptionalString("baseUrl");const B=D.getOptionalString("username"),ot=D.getOptionalString("password");if(!(0,i.bK)(u))throw new Error(`Invalid Gitea integration config, '${u}' is not a valid host`);return U?U=(0,gt.trimEnd)(U,"/"):U=`https://${u}`,{host:u,baseUrl:U,username:B,password:ot}}var rn=t(48834).lW;function le(D,u){try{var U;const B=(U=D.baseUrl)!==null&&U!==void 0?U:`https://${D.host}`,[ot,xt,St,Mt,Ut,ne,...Jt]=u.replace(B,"").split("/"),ce=Jt.join("/").replace(/^\//,"");return`${B}/${xt}/${St}/_edit/${ne}/${ce}`}catch(B){throw new Error(`Incorrect URL: ${u}, ${B}`)}}function tn(D,u){try{var U;const B=(U=D.baseUrl)!==null&&U!==void 0?U:`https://${D.host}`,[ot,xt,St,Mt,Ut,ne,...Jt]=u.replace(B,"").split("/"),ce=Jt.join("/").replace(/^\//,"");return`${B}/api/v1/repos/${xt}/${St}/contents/${ce}?ref=${ne}`}catch(B){throw new Error(`Incorrect URL: ${u}, ${B}`)}}function Me(D){const u={},{username:U,password:B}=D;return B?(U?u.Authorization=`basic ${rn.from(`${U}:${B}`).toString("base64")}`:u.Authorization=`token ${B}`,{headers:u}):u}class ze{get type(){return"gitea"}get title(){return this.config.host}resolveUrl(u){return(0,i.FI)(u)}resolveEditUrl(u){return le(this.config,u)}constructor(u){(0,o._)(this,"config",void 0),this.config=u}}(0,o._)(ze,"factory",({config:D})=>{var u;const B=((u=D.getOptionalConfigArray("integrations.gitea"))!==null&&u!==void 0?u:[]).map(ot=>ye(ot));return(0,i.gz)(B.map(ot=>new ze(ot)),ot=>ot.config.host)});class Le{static fromConfig(u){return new Le({awsS3:g.factory({config:u}),azure:K.factory({config:u}),bitbucket:et.factory({config:u}),bitbucketCloud:bt.factory({config:u}),bitbucketServer:F.factory({config:u}),gerrit:zt.factory({config:u}),github:ae.X.factory({config:u}),gitlab:$e.factory({config:u}),gitea:ze.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 U=Object.values(this.byType).map(B=>B.byUrl(u)).filter(Boolean);if(U.length>1){const B=U.filter(ot=>!(ot instanceof et));B.length!==0&&(U=B)}return U[0]}byHost(u){return Object.values(this.byType).map(U=>U.byHost(u)).find(Boolean)}resolveUrl(u){const U=this.byUrl(u.base);return U?U.resolveUrl(u):(0,i.FI)(u)}resolveEditUrl(u){const U=this.byUrl(u);return U?U.resolveEditUrl(u):u}constructor(u){(0,o._)(this,"byType",void 0),this.byType=u}}var fe=t(95965);class _e{static fromConfig(u){return Le.fromConfig(u)}}const sn=(0,fe.T)({id:"integration.scmintegrations"})},61800:function(Y,R,t){"use strict";t.d(R,{X:function(){return C},B:function(){return A}});var o=t(87612),i=t(38264),d=t(76635);const S="github.com",p="https://api.github.com",g="https://raw.githubusercontent.com";function c(O){var x,P;const E=(P=O.getOptionalString("host"))!==null&&P!==void 0?P:S;let M=O.getOptionalString("apiBaseUrl"),b=O.getOptionalString("rawBaseUrl");const L=O.getOptionalString("token"),$=(x=O.getOptionalConfigArray("apps"))===null||x===void 0?void 0:x.map(W=>({appId:W.getNumber("appId"),clientId:W.getString("clientId"),clientSecret:W.getString("clientSecret"),webhookSecret:W.getString("webhookSecret"),privateKey:W.getString("privateKey"),allowedInstallationOwners:W.getOptionalStringArray("allowedInstallationOwners")}));if(!(0,i.bK)(E))throw new Error(`Invalid GitHub integration config, '${E}' is not a valid host`);return M?M=(0,d.trimEnd)(M,"/"):E===S&&(M=p),b?b=(0,d.trimEnd)(b,"/"):E===S&&(b=g),{host:E,apiBaseUrl:M,rawBaseUrl:b,token:L,apps:$}}function f(O){const x=O.map(c);return x.some(P=>P.host===S)||x.push({host:S,apiBaseUrl:p,rawBaseUrl:g}),x}class C{get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(x){return A((0,i.FI)(x),"tree")}resolveEditUrl(x){return A(x,"edit")}constructor(x){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=x}}(0,o._)(C,"factory",({config:O})=>{var x;const P=f((x=O.getOptionalConfigArray("integrations.github"))!==null&&x!==void 0?x:[]);return(0,i.gz)(P.map(E=>new C(E)),E=>E.config.host)});function A(O,x){return O.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,(P,E,M,b)=>`//${E}/${M}/${b}/${x}/`)}},38264:function(Y,R,t){"use strict";t.d(R,{FI:function(){return f},bK:function(){return p},gz:function(){return c},jv:function(){return g}});var o=t(82717),i=t.n(o),d=t(76635),S=t.n(d);function p(A){const O=new URL("http://example.com");return O.host=A,O.host===A}function g(A){try{return new URL(A),!0}catch{return!1}}function c(A,O){return{list(){return A},byUrl(x){try{const P=typeof x=="string"?new URL(x):x;return A.find(E=>O(E)===P.host)}catch{return}},byHost(x){return A.find(P=>O(P)===x)}}}function f(A){const{url:O,base:x,lineNumber:P}=A;try{return new URL(O),O}catch{}let E;if(O.startsWith("/")){const{filepath:M}=i()(x);E=new URL(x);const b=(0,d.trimEnd)(E.pathname.substring(0,E.pathname.length-M.length),"/");E.pathname=`${b}${O}`}else E=new URL(O,x);return E.search=new URL(x).search,P&&(E.hash=`L${P}`),E.toString()}function C(A){beforeAll(()=>A.listen({onUnhandledRequest:"error"})),afterAll(()=>A.close()),afterEach(()=>A.resetHandlers())}},54567:function(Y,R,t){"use strict";var o={};t.r(o),t.d(o,{TechDocsPlugin:function(){return g.s4}});var i=t(52322),d=t(2784),S=t(28316),p=t(73557),g=t(4577),c=t(29895),f=t(2296),C=t(57058),A=t(77277),O=t(87435),x=t(74359),P=t(55015),E=t(71597);function M({children:r}){return(0,p.GV)()?(0,i.jsx)(i.Fragment,{children:r}):(0,i.jsx)(p.VA,{children:r})}const b=()=>(0,i.jsx)(O.m,{status:"404",statusMessage:"PAGE NOT FOUND"}),L=({step:r,error:e})=>{let n="";return r==="load-config"?n=`The configuration failed to load, someone should have a look at this error: ${e.message}`:r==="load-chunk"&&(n=`Lazy loaded chunk failed to load, try to reload the page: ${e.message}`),(0,i.jsx)(M,{children:(0,i.jsx)(O.m,{status:"501",statusMessage:n})})},$=({error:r,resetError:e,plugin:n})=>{var s;return(0,i.jsx)(x.y,{title:`Error in ${(s=n)===null||s===void 0?void 0:s.getId()}`,defaultExpanded:!0,error:r,children:(0,i.jsx)(A.Z,{variant:"outlined",onClick:e,children:"Retry"})})},W={Progress:P.E,Router:E.VK,NotFoundErrorPage:b,BootErrorPage:L,ErrorBoundaryFallback:$};var y=t(87612);const N="Invalid discovery URL pattern,";class at{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(`${N} URL '${s}' is invalid`)}if(a.hash)throw new Error(`${N} URL must not have a hash`);if(a.search)throw new Error(`${N} URL must not have a query`);if(s.endsWith("/"))throw new Error(`${N} URL must not end with a slash`);return new at(n)}async getBaseUrl(e){return this.parts.join(encodeURIComponent(e))}constructor(e){(0,y._)(this,"parts",void 0),this.parts=e}}var J=t(82394),G=t.n(J);let K=Symbol.observable;class z{[K](){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,y._)(this,"isClosed",!1),(0,y._)(this,"terminatingError",void 0),(0,y._)(this,"observable",new(G())(e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(this.subscribers.add(e),()=>{this.subscribers.delete(e)}))),(0,y._)(this,"subscribers",new Set)}}let Q=Symbol.observable;class st{[Q](){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,y._)(this,"isClosed",void 0),(0,y._)(this,"currentValue",void 0),(0,y._)(this,"terminatingError",void 0),(0,y._)(this,"observable",void 0),(0,y._)(this,"subscribers",new Set),this.isClosed=!1,this.currentValue=e,this.terminatingError=void 0,this.observable=new(G())(n=>this.isClosed?(this.terminatingError?n.error(this.terminatingError):n.complete(),()=>{}):(n.next(this.currentValue),this.subscribers.add(n),()=>{this.subscribers.delete(n)}))}}class Ct{post(e){this.subject.next(e)}alert$(){return this.subject}constructor(){(0,y._)(this,"subject",new z)}}class Et{captureEvent(e){}}class mt{post(e,n){var s;return!((s=n)===null||s===void 0)&&s.hidden||this.alertApi.post({message:e.message,severity:"error"}),this.errorApi.post(e,n)}error$(){return this.errorApi.error$()}constructor(e,n){(0,y._)(this,"alertApi",void 0),(0,y._)(this,"errorApi",void 0),this.alertApi=e,this.errorApi=n}}class bt{post(e,n){this.subject.next({error:e,context:n})}error$(){return this.subject}constructor(){(0,y._)(this,"subject",new z)}}class gt{static forward(e,n){window.addEventListener("unhandledrejection",s=>{e.post(s.reason,n)})}}const Pt=new Map;class lt{static create(e){var n;return new lt((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,(l,v)=>(typeof v=="object"&&v!==null&&Object.freeze(v),v)),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 lt(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 lt.hasSubscribed||(lt.addStorageEventListener(),lt.hasSubscribed=!0),this.observable.filter(({key:n})=>n===e)}handleStorageChange(e){var n,s;if(!(!((n=e)===null||n===void 0)&&n.startsWith(this.namespace)))return;const a=(s=e)===null||s===void 0?void 0:s.slice(`${this.namespace}/`.length);a.includes("/")||this.notifyChanges(decodeURIComponent(a))}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,y._)(this,"namespace",void 0),(0,y._)(this,"errorApi",void 0),(0,y._)(this,"subscribers",void 0),(0,y._)(this,"observable",void 0),this.namespace=e,this.errorApi=n,this.subscribers=new Set,this.observable=new(G())(s=>(this.subscribers.add(s),()=>{this.subscribers.delete(s)}))}}(0,y._)(lt,"hasSubscribed",!1);function V(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 k{static create(e){var n,s;const a=et(e),l=((n=e.header)===null||n===void 0?void 0:n.name)||"authorization",v=((s=e.header)===null||s===void 0?void 0:s.value)||(m=>`Bearer ${m}`);return new k(e.identityApi,a,l,v)}apply(e){return async(n,s)=>{const a=new Request(n,s),{token:l}=await this.identityApi.getCredentials();return a.headers.get(this.headerName)||typeof l!="string"||!l||!this.allowUrl(a.url)?e(n,s):(a.headers.set(this.headerName,this.headerValue(l)),e(a))}}constructor(e,n,s,a){(0,y._)(this,"identityApi",void 0),(0,y._)(this,"allowUrl",void 0),(0,y._)(this,"headerName",void 0),(0,y._)(this,"headerValue",void 0),this.identityApi=e,this.allowUrl=n,this.headerName=s,this.headerValue=a}}function et(r){return r.allowUrl?r.allowUrl:r.urlPrefixAllowlist?it(r.urlPrefixAllowlist):r.config?it([r.config.getString("backend.baseUrl")]):()=>!1}function it(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 F{apply(e){return async(n,s)=>{const a=new Request(n,s),l="plugin://";if(!a.url.startsWith(l))return e(n,s);const{hostname:v,pathname:m,search:w,hash:j,username:tt,password:X}=new URL(`http://${a.url.substring(l.length)}`);let ut=await this.discoveryApi.getBaseUrl(v);if(tt||X){const Ot=new URL(ut),$t=`${tt}${X?`:${X}`:""}@`;ut=`${Ot.protocol}//${$t}${Ot.host}${Ot.pathname}`}const nt=`${ct(ut,m)}${w}${j}`;return e(nt,typeof n=="string"||H(n)?s:n)}}constructor(e){(0,y._)(this,"discoveryApi",void 0),this.discoveryApi=e}}function H(r){var e;return typeof r=="object"&&((e=r)===null||e===void 0?void 0:e.constructor)===URL}class ft{static resolvePluginProtocol(e){return new F(e.discoveryApi)}static injectIdentityAuth(e){return k.create(e)}constructor(){}}function ht(r,e){for(const n of e)if(!r.has(n))return!1;return!0}function dt(r,...e){const n=new Set(r);for(const s of e)for(const a of s)n.add(a);return n}class At{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=>ht(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)=>dt(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,y._)(this,"requests",[]),(0,y._)(this,"subject",new st(this.getCurrentPending()))}}class vt{createAuthRequester(e){const n=new At,s=this.handlerCount;return this.handlerCount++,n.pending().subscribe({next:a=>{const l=this.currentRequests.slice(),v=this.makeAuthRequest(a,e);v?l[s]=v:delete l[s],this.currentRequests=l,this.subject.next(l.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,y._)(this,"subject",new st([])),(0,y._)(this,"currentRequests",[]),(0,y._)(this,"handlerCount",0)}}function It(r){return new Promise((e,n)=>{const s=r.width||500,a=r.height||700,l=window.screen.width/2-s/2,v=window.screen.height/2-a/2,m=window.open(r.url,r.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${s},height=${a},top=${v},left=${l}`);let w="";if(!m||typeof m.closed=="undefined"||m.closed){const ut=new Error("Failed to open auth popup.");ut.name="PopupRejectedError",n(ut);return}const j=ut=>{if(ut.source!==m||ut.origin!==r.origin)return;const{data:nt}=ut;if(nt.type==="config_info"){w=nt.targetOrigin;return}if(nt.type!=="authorization_response")return;const Ot=nt;if("error"in Ot){const $t=new Error(Ot.error.message);$t.name=Ot.error.name,n($t)}else e(Ot.response);X()},tt=setInterval(()=>{if(m.closed){const ut=`Login failed, ${w&&w!==window.location.origin?`Incorrect app origin, expected ${w}`:"popup was closed"}`,nt=new Error(ut);nt.name="PopupClosedError",n(nt),X()}},100);function X(){window.removeEventListener("message",j),clearInterval(tt)}window.addEventListener("message",j)})}let wt=!1;function Lt(r){return[...r].join(" ")}class kt{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,l,v,m,w,j;const tt=this.joinScopesFunc(e),X=await this.buildUrl("/start",{scope:tt,origin:window.location.origin,flow:"popup"}),ut=!((s=this.popupOptions)===null||s===void 0||(n=s.size)===null||n===void 0)&&n.fullscreen?window.screen.width:((l=this.popupOptions)===null||l===void 0||(a=l.size)===null||a===void 0?void 0:a.width)||450,nt=!((m=this.popupOptions)===null||m===void 0||(v=m.size)===null||v===void 0)&&v.fullscreen?window.screen.height:((j=this.popupOptions)===null||j===void 0||(w=j.size)===null||w===void 0?void 0:w.height)||730,Ot=await It({url:X,name:`${this.provider.title} Login`,origin:new URL(X).origin,width:ut,height:nt});return await this.sessionTransform(Ot)}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,y._)(this,"discoveryApi",void 0),(0,y._)(this,"environment",void 0),(0,y._)(this,"provider",void 0),(0,y._)(this,"joinScopesFunc",void 0),(0,y._)(this,"authRequester",void 0),(0,y._)(this,"sessionTransform",void 0),(0,y._)(this,"enableExperimentalRedirectFlow",void 0),(0,y._)(this,"popupOptions",void 0);const{configApi:n,discoveryApi:s,environment:a,provider:l,joinScopes:v=Lt,oauthRequestApi:m,sessionTransform:w=X=>X,popupOptions:j}=e;!wt&&!n&&(console.warn("DEPRECATION WARNING: Authentication providers require a configApi instance to configure the authentication flow. Please provide one to the authentication provider constructor."),wt=!0);var tt;this.enableExperimentalRedirectFlow=n&&(tt=n.getOptionalBoolean("enableExperimentalRedirectFlow"))!==null&&tt!==void 0?tt:!1,this.authRequester=m.createAuthRequester({provider:l,onAuthRequest:async X=>this.enableExperimentalRedirectFlow?this.executeRedirect(X):this.showPopup(X)}),this.discoveryApi=s,this.environment=a,this.provider=l,this.joinScopesFunc=v,this.sessionTransform=w,this.popupOptions=j}}function Qt(r,e){for(const n of e)if(!r.has(n))return!1;return!0}class ee{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 l of a)s.add(l)}if(n)for(const a of n)s.add(a);return s}constructor(e){(0,y._)(this,"options",void 0),this.options=e}}var Zt=t(95965),be;(function(r){r.SignedIn="SignedIn",r.SignedOut="SignedOut"})(be||(be={}));const Wt=(0,Zt.T)({id:"core.auth.google"}),zt=(0,Zt.T)({id:"core.auth.github"}),ae=(0,Zt.T)({id:"core.auth.okta"}),he=(0,Zt.T)({id:"core.auth.gitlab"}),Ke=(0,Zt.T)({id:"core.auth.microsoft"}),Xe=(0,Zt.T)({id:"core.auth.onelogin"}),qe=(0,Zt.T)({id:"core.auth.bitbucket"}),gn=(0,Zt.T)({id:"core.auth.bitbucket-server"}),$e=(0,Zt.T)({id:"core.auth.atlassian"});class ke{setIsSignedIn(e){this.signedIn!==e&&(this.signedIn=e,this.subject.next(this.signedIn?be.SignedIn:be.SignedOut))}sessionState$(){return this.subject}constructor(){(0,y._)(this,"subject",new st(be.SignedOut)),(0,y._)(this,"signedIn",!1)}}class ye{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),l=this.sessionScopesFunc(s);return Qt(l,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,y._)(this,"connector",void 0),(0,y._)(this,"helper",void 0),(0,y._)(this,"sessionScopesFunc",void 0),(0,y._)(this,"sessionShouldRefreshFunc",void 0),(0,y._)(this,"stateTracker",new ke),(0,y._)(this,"refreshPromise",void 0),(0,y._)(this,"currentSession",void 0);const{connector:n,defaultScopes:s=new Set,sessionScopes:a,sessionShouldRefresh:l}=e;this.connector=n,this.sessionScopesFunc=a,this.sessionShouldRefreshFunc=l,this.helper=new ee({sessionScopes:a,defaultScopes:s})}}const rn={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class le{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=rn,oauthRequestApi:v,defaultScopes:m=[],scopeTransform:w=ut=>ut,popupOptions:j}=e,tt=new kt({configApi:n,discoveryApi:s,environment:a,provider:l,oauthRequestApi:v,sessionTransform({backstageIdentity:ut,...nt}){const Ot={...nt,providerInfo:{idToken:nt.providerInfo.idToken,accessToken:nt.providerInfo.accessToken,scopes:le.normalizeScopes(w,nt.providerInfo.scope),expiresAt:nt.providerInfo.expiresInSeconds?new Date(Date.now()+nt.providerInfo.expiresInSeconds*1e3):void 0}};if(ut){var $t;const Bt=($t=ut.expiresInSeconds)!==null&&$t!==void 0?$t:nt.providerInfo.expiresInSeconds;Ot.backstageIdentity={token:ut.token,identity:ut.identity,expiresAt:Bt?new Date(Date.now()+Bt*1e3):void 0}}return Ot},popupOptions:j}),X=new ye({connector:tt,defaultScopes:new Set(m),sessionScopes:ut=>ut.providerInfo.scopes,sessionShouldRefresh:ut=>{var nt,Ot;let $t=1/0;return!((nt=ut.providerInfo)===null||nt===void 0)&&nt.expiresAt&&($t=Math.min($t,(ut.providerInfo.expiresAt.getTime()-Date.now())/1e3)),!((Ot=ut.backstageIdentity)===null||Ot===void 0)&&Ot.expiresAt&&($t=Math.min($t,(ut.backstageIdentity.expiresAt.getTime()-Date.now())/1e3)),$t<60*5}});return new le({sessionManager:X,scopeTransform:w})}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(e,n){var s;const a=le.normalizeScopes(this.scopeTransform,e),l=await this.sessionManager.getSession({...n,scopes:a});var v;return(v=(s=l)===null||s===void 0?void 0:s.providerInfo.accessToken)!==null&&v!==void 0?v:""}async getIdToken(e={}){var n;const s=await this.sessionManager.getSession({...e,scopes:new Set(["openid"])});var a;return(a=(n=s)===null||n===void 0?void 0:n.providerInfo.idToken)!==null&&a!==void 0?a:""}async getBackstageIdentity(e={}){var n;return(n=await this.sessionManager.getSession(e))===null||n===void 0?void 0:n.backstageIdentity}async getProfile(e={}){var n;return(n=await this.sessionManager.getSession(e))===null||n===void 0?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,y._)(this,"sessionManager",void 0),(0,y._)(this,"scopeTransform",void 0),this.sessionManager=e.sessionManager,this.scopeTransform=e.scopeTransform}}const tn={id:"google",title:"Google",icon:()=>null},Me="https://www.googleapis.com/auth/";class ze{static create(e){const{configApi:n,discoveryApi:s,oauthRequestApi:a,environment:l="development",provider:v=tn,defaultScopes:m=["openid",`${Me}userinfo.email`,`${Me}userinfo.profile`]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:a,provider:v,environment:l,defaultScopes:m,scopeTransform(w){return w.map(j=>j==="openid"?j:j==="profile"||j==="email"?`${Me}userinfo.${j}`:j.startsWith(Me)?j:`${Me}${j}`)}})}}const Le={id:"microsoft",title:"Microsoft",icon:()=>null};class fe{static create(e){return new fe(e)}microsoftGraph(){return this.oauth2[fe.MicrosoftGraphID]}static resourceForScopes(e){const n=[...new Set(e.split(" ").map(fe.resourceForScope).filter(l=>l!=="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:fe.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 fe.MicrosoftGraphID}}async getAccessToken(e,n){const s=e===void 0?fe.MicrosoftGraphID:await fe.resourceForScopes(Array.isArray(e)?e.join(" "):e);return s in this.oauth2||(this.oauth2[s]=le.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,y._)(this,"oauth2",void 0),(0,y._)(this,"configApi",void 0),(0,y._)(this,"environment",void 0),(0,y._)(this,"provider",void 0),(0,y._)(this,"oauthRequestApi",void 0),(0,y._)(this,"discoveryApi",void 0),(0,y._)(this,"scopeTransform",void 0);const{configApi:n,environment:s="development",provider:a=Le,oauthRequestApi:l,discoveryApi:v,defaultScopes:m=["openid","offline_access","profile","email","User.Read"],scopeTransform:w=j=>j.concat("offline_access")}=e;this.configApi=n,this.environment=s,this.provider=a,this.oauthRequestApi=l,this.discoveryApi=v,this.scopeTransform=w,this.oauth2={[fe.MicrosoftGraphID]:le.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform,defaultScopes:m})}}}(0,y._)(fe,"MicrosoftGraphID","00000003-0000-0000-c000-000000000000");const _e={id:"github",title:"GitHub",icon:()=>null};class sn{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=_e,oauthRequestApi:v,defaultScopes:m=["read:user"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:v,provider:l,environment:a,defaultScopes:m})}}const D={id:"okta",title:"Okta",icon:()=>null},u=new Set(["openid","profile","email","phone","address","groups","offline_access"]),U="okta.";class B{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=D,oauthRequestApi:v,defaultScopes:m=["openid","email","profile","offline_access"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:v,provider:l,environment:a,defaultScopes:m,scopeTransform(w){return w.map(j=>u.has(j)||j.startsWith(U)?j:`${U}${j}`)}})}}const ot={id:"gitlab",title:"GitLab",icon:()=>null};class xt{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=ot,oauthRequestApi:v,defaultScopes:m=["read_user"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:v,provider:l,environment:a,defaultScopes:m})}}const St={id:"onelogin",title:"onelogin",icon:()=>null},Mt=new Set(["openid","profile","email","phone","address","groups","offline_access"]),Ut="onelogin.";class ne{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=St,oauthRequestApi:v}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:v,provider:l,environment:a,defaultScopes:["openid","email","profile","offline_access"],scopeTransform(m){return m.map(w=>Mt.has(w)||w.startsWith(Ut)?w:`${Ut}${w}`)}})}}const Jt={id:"bitbucket",title:"Bitbucket",icon:()=>null};class ce{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=Jt,oauthRequestApi:v,defaultScopes:m=["team"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:v,provider:l,environment:a,defaultScopes:m})}}const an={id:"bitbucketServer",title:"Bitbucket Server",icon:()=>null};class pe{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=an,oauthRequestApi:v,defaultScopes:m=["PROJECT_ADMIN"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:v,provider:l,environment:a,defaultScopes:m})}}const qt={id:"atlassian",title:"Atlassian",icon:()=>null};class je{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=qt,oauthRequestApi:v}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:v,provider:l,environment:a})}}var Nt=t(42380),oe=t(96727),te=t(6542),Kn=t(78847),xe=t(86386),kn=t(58513);const zn=(0,Zt.T)({id:"core.storage"});var _n=t(85094),ln=t(77186);const we=(0,Zt.T)({id:"core.oauthrequest"}),mo=(0,Zt.T)({id:"plugin.permission.api"});var en=t(41385),yo=t(96279),Hn=t.n(yo),Eo=t(9571),Ht=t(30195),Fe;(function(r){r.DENY="DENY",r.ALLOW="ALLOW",r.CONDITIONAL="CONDITIONAL"})(Fe||(Fe={}));const cn=Ht.z.lazy(()=>Ht.z.object({rule:Ht.z.string(),resourceType:Ht.z.string(),params:Ht.z.record(Ht.z.any()).optional()}).or(Ht.z.object({anyOf:Ht.z.array(cn).nonempty()})).or(Ht.z.object({allOf:Ht.z.array(cn).nonempty()})).or(Ht.z.object({not:cn}))),xo=Ht.z.object({result:Ht.z.literal(Fe.ALLOW).or(Ht.z.literal(Fe.DENY))}),Co=Ht.z.union([Ht.z.object({result:Ht.z.literal(Fe.ALLOW).or(Ht.z.literal(Fe.DENY))}),Ht.z.object({result:Ht.z.literal(Fe.CONDITIONAL),pluginId:Ht.z.string(),resourceType:Ht.z.string(),conditions:cn})]),Ao=(r,e)=>Ht.z.object({items:Ht.z.array(Ht.z.intersection(Ht.z.object({id:Ht.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 Oo{async authorize(e,n){return this.makeRequest(e,xo,n)}async authorizeConditional(e,n){return this.makeRequest(e,Co,n)}async makeRequest(e,n,s){var a;if(!this.enabled)return e.map(X=>({result:Fe.ALLOW}));const l={items:e.map(X=>({id:Eo.Z(),...X}))},v=await this.discovery.getBaseUrl("permission"),m=await Hn()(`${v}/authorize`,{method:"POST",body:JSON.stringify(l),headers:{...this.getAuthorizationHeader((a=s)===null||a===void 0?void 0:a.token),"content-type":"application/json"}});if(!m.ok)throw await en.V.fromResponse(m);const w=await m.json(),tt=Ao(n,new Set(l.items.map(({id:X})=>X))).parse(w).items.reduce((X,ut)=>(X[ut.id]=ut,X),{});return l.items.map(X=>tt[X.id])}getAuthorizationHeader(e){return e?{Authorization:`Bearer ${e}`}:{}}constructor(e){(0,y._)(this,"enabled",void 0),(0,y._)(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,l=new Oo({discovery:s,config:n});return new Rn(l,a)}async authorize(e){return(await this.permissionClient.authorize([e],await this.identityApi.getCredentials()))[0]}constructor(e,n){(0,y._)(this,"permissionClient",void 0),(0,y._)(this,"identityApi",void 0),this.permissionClient=e,this.identityApi=n}}const Tn=[(0,Nt.n)({api:oe.N,deps:{configApi:te.D},factory:({configApi:r})=>at.compile(`${r.getString("backend.baseUrl")}/api/{{ pluginId }}`)}),(0,Nt.n)({api:Kn.$,deps:{},factory:()=>new Ct}),(0,Nt.n)({api:xe.v,deps:{},factory:()=>new Et}),(0,Nt.n)({api:kn.V,deps:{alertApi:Kn.$},factory:({alertApi:r})=>{const e=new mt(r,new bt);return gt.forward(e,{hidden:!1}),e}}),(0,Nt.n)({api:zn,deps:{errorApi:kn.V},factory:({errorApi:r})=>lt.create({errorApi:r})}),(0,Nt.n)({api:_n.g,deps:{configApi:te.D,identityApi:ln.$,discoveryApi:oe.N},factory:({configApi:r,identityApi:e,discoveryApi:n})=>V({middleware:[ft.resolvePluginProtocol({discoveryApi:n}),ft.injectIdentityAuth({identityApi:e,config:r})]})}),(0,Nt.n)({api:we,deps:{},factory:()=>new vt}),(0,Nt.n)({api:Wt,deps:{discoveryApi:oe.N,oauthRequestApi:we,configApi:te.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>ze.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Nt.n)({api:Ke,deps:{discoveryApi:oe.N,oauthRequestApi:we,configApi:te.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>fe.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Nt.n)({api:zt,deps:{discoveryApi:oe.N,oauthRequestApi:we,configApi:te.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>sn.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["read:user"],environment:n.getOptionalString("auth.environment")})}),(0,Nt.n)({api:ae,deps:{discoveryApi:oe.N,oauthRequestApi:we,configApi:te.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>B.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Nt.n)({api:he,deps:{discoveryApi:oe.N,oauthRequestApi:we,configApi:te.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>xt.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Nt.n)({api:Xe,deps:{discoveryApi:oe.N,oauthRequestApi:we,configApi:te.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>ne.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Nt.n)({api:qe,deps:{discoveryApi:oe.N,oauthRequestApi:we,configApi:te.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>ce.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["team"],environment:n.getOptionalString("auth.environment")})}),(0,Nt.n)({api:gn,deps:{discoveryApi:oe.N,oauthRequestApi:we,configApi:te.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>pe.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["REPO_READ"]})}),(0,Nt.n)({api:$e,deps:{discoveryApi:oe.N,oauthRequestApi:we,configApi:te.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>je.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Nt.n)({api:mo,deps:{discovery:oe.N,identity:ln.$,config:te.D},factory:({config:r,discovery:e,identity:n})=>Rn.create({config:r,discovery:e,identity:n})})];var So=t(43642),bo=t(80079),Po=t(90941),Ro=t(32915),To=t(40562),wo=t(21853),Io=t(60744),Do=t(66569),Mo=t(30254),Lo=t(13384),jo=t(15933),Bo=t(58838),Uo=t(86737),$o=t(4989),Fo=t(44407),Wo=t(18628),Gn=t(84219),Vn=t(98685),No=t(39781),Zo=t(39412);const Yn={brokenImage:bo.Z,catalog:Wo.Z,scaffolder:Ro.Z,techdocs:To.Z,search:wo.Z,chat:Io.Z,dashboard:Do.Z,docs:Mo.Z,email:Lo.Z,github:Bo.Z,group:Gn.Z,help:Uo.Z,"kind:api":jo.Z,"kind:component":Fo.Z,"kind:domain":So.Z,"kind:group":Gn.Z,"kind:location":$o.Z,"kind:system":Po.Z,"kind:user":Vn.Z,"kind:resource":Zo.Z,user:Vn.Z,warning:No.Z};var Ko=t(87561),ko=t(12536),zo=t(19219),_o=t(41547),wn=t(3493),Ho=t(81887);const In=(0,ko.Z)({productionPrefix:"jss4-"});function Qn(r){const{children:e,theme:n,noCssBaseline:s=!1}=r,a=n.getTheme("v4"),l=n.getTheme("v5");let v;s||(v=(0,i.jsx)(Ko.ZP,{}));let m=(0,i.jsxs)(i.Fragment,{children:[v,e]});return a&&(m=(0,i.jsx)(zo.ZP,{generateClassName:In,children:(0,i.jsx)(_o.Z,{theme:a,children:m})})),l&&(m=(0,i.jsx)(wn.Z,{injectFirst:!0,children:(0,i.jsx)(Ho.Z,{theme:l,children:m})})),m}const Jn={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 jt=t(88412),Ce=t(52475),h=t(80956),T=t(73689),I=t(93606);const Z={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")`},_={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 q(r){var e;const{colors:n,shape:s,options:a}=r,v=`linear-gradient(90deg, ${(n.length===1?[n[0],n[0]]:n).join(", ")})`,m=`${s}, ${v}`;var w;const j=(w=(e=a)===null||e===void 0?void 0:e.fontColor)!==null&&w!==void 0?w:"#FFFFFF";return{colors:n,shape:s,backgroundImage:m,fontColor:j}}const rt={home:q({colors:_.teal,shape:Z.wave}),documentation:q({colors:_.pinkSea,shape:Z.wave2}),tool:q({colors:_.purpleSky,shape:Z.round}),service:q({colors:_.marineBlue,shape:Z.wave}),website:q({colors:_.veryBlue,shape:Z.wave}),library:q({colors:_.rubyRed,shape:Z.wave}),other:q({colors:_.darkGrey,shape:Z.wave}),app:q({colors:_.toastyOrange,shape:Z.wave}),apis:q({colors:_.teal,shape:Z.wave2}),card:q({colors:_.greens,shape:Z.wave})},pt=16,yt='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif',Rt="home";function Dt(r){const{palette:e,htmlFontSize:n=pt,fontFamily:s=yt,defaultPageTheme:a=Rt,pageTheme:l=rt,typography:v}=r;if(!l[a])throw new Error(`${a} is not defined in pageTheme.`);const m={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}};var w;return{palette:e,typography:v!=null?v:m,page:l[a],getPageTheme:({themeId:j})=>(w=l[j])!==null&&w!==void 0?w:l[a]}}var Kt=t(47591);const Tt={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,Kt._j)(r.palette.link,.3),background:(0,Kt.$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"}}},se=r=>(...e)=>{const n=e.length===0?[1]:e,s=(a,l)=>typeof a=="string"?a:l*a;return n.map(a=>{const l=s(a,r);return typeof l=="number"?`${l}px`:l}).join(" ")};function de(r,e){if(!e||typeof e=="string")return;const n=typeof e=="function"?e(r):e;if(n)return{"@global":n}}function Gt(r,e){if(!(!e||typeof e=="string")){if(typeof e=="object"){const n={...r},s=r.spacing(1);return typeof s=="number"&&(n.spacing=se(s)),Object.fromEntries(Object.entries(e).map(([a,l])=>typeof l=="function"?[a,l({theme:n})]:[a,l]))}return e}}const _t=/^&.Mui-([\w-]+)$/;function Vt(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 l=a,v=l.match(_t);if(v){const[,m]=v,{[l]:w,...j}=s;w&&(e={...e,[n]:j,[m]:w})}}}return e}function re(r,e={}){const n={},s={};for(const a of Object.keys(e)){const l=e[a];l&&("styleOverrides"in l&&(a==="MuiCssBaseline"?n[a]=de(r,l.styleOverrides):n[a]=Vt(Gt(r,l.styleOverrides))),"defaultProps"in l&&(s[a]=l.defaultProps))}return{overrides:n,props:s}}var Ft=new WeakMap;class Yt{getTheme(e){return(0,jt._)(this,Ft).get(e)}constructor(e,n){(0,Ce._)(this,Ft,{writable:!0,value:new Map}),(0,h._)(this,Ft,new Map),e&&(0,jt._)(this,Ft).set("v4",e),n&&(0,jt._)(this,Ft).set("v5",n)}}function Xt(r){const e=Dt(r),n={...Tt,...r.components},s=(0,I.Z)({...e,components:n}),a=re(s,n),l={...(0,T.Z)(e),...a};return new Yt(l,s)}function me(r){const e=adaptV4Theme(r),n=createTheme(r);return new Yt(n,e)}const Ae={light:Xt({palette:Jn.light}),dark:Xt({palette:Jn.dark})};var ge=t(98192),He=t(15222);const ve=[{id:"light",title:"Light Theme",variant:"light",icon:(0,i.jsx)(He.Z,{}),Provider:({children:r})=>(0,i.jsx)(Qn,{theme:Ae.light,children:r})},{id:"dark",title:"Dark Theme",variant:"dark",icon:(0,i.jsx)(ge.Z,{}),Provider:({children:r})=>(0,i.jsx)(Qn,{theme:Ae.dark,children:r})}];var dn=t(64279),nn=t(13980),un=t.n(nn);class Go{get(e){for(const n of this.holders){const s=n.get(e);if(s)return s}}constructor(...e){(0,y._)(this,"holders",void 0),this.holders=e}}var vn=t(29651),Xn=t(68993);const gr=(0,vn.CT)("api-context"),Vo=r=>{var e;const{apis:n,children:s}=r,a=(e=(0,d.useContext)(gr))===null||e===void 0?void 0:e.atVersion(1),l=a?new Go(n,a):n;return(0,i.jsx)(gr.Provider,{value:(0,Xn.E)({1:l}),children:s})};Vo.propTypes={apis:un().shape({get:un().func.isRequired}).isRequired,children:un().node};var as=t(9850),ls=t.n(as),cs=t(12782),ds=t.n(cs);const us=/^[a-z][a-z0-9]*(?:[-_][a-z][a-z0-9]*)*$/i;function Dn(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function Yo(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 Ie={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 mn{static fromConfigs(e){return e.length===0?new mn(void 0):e.reduce((n,{data:s,context:a,filteredKeys:l,deprecatedKeys:v})=>{const m=new mn(s,a,n);if(m.filteredKeys=l,v)for(const{key:w,description:j}of v)console.warn(`The configuration key '${w}' of ${a} is deprecated and may be removed soon. ${j||""}`);return m},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(Ie.missing(this.fullKey(e!=null?e:"")));return n}getOptional(e){var n;const s=ls()(this.readValue(e)),a=(n=this.fallback)===null||n===void 0?void 0:n.getOptional(e);if(s===void 0){if(!1)var l;return a}else if(a===void 0)return s;return ds()({},{value:a},{value:s},(v,m)=>!Dn(m)||!Dn(v)?m:void 0).value}getConfig(e){const n=this.getOptionalConfig(e);if(n===void 0)throw new Error(Ie.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(Dn(s))return this.copy(s,e,a);if(s!==void 0)throw new TypeError(Ie.type(this.fullKey(e),this.context,Yo(s),"object"));return a}getConfigArray(e){const n=this.getOptionalConfigArray(e);if(n===void 0)throw new Error(Ie.missing(this.fullKey(e)));return n}getOptionalConfigArray(e){const n=this.readConfigValue(e,a=>{if(!Array.isArray(a))return{expected:"object-array"};for(const[l,v]of a.entries())if(!Dn(v))return{expected:"object-array",value:v,key:`${e}[${l}]`};return!0});if(!n){if(!1)var s;return}return n.map((a,l)=>this.copy(a,`${e}[${l}]`))}getNumber(e){const n=this.getOptionalNumber(e);if(n===void 0)throw new Error(Ie.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(Ie.convert(this.fullKey(e),this.context,"number"));return s}getBoolean(e){const n=this.getOptionalBoolean(e);if(n===void 0)throw new Error(Ie.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(Ie.convert(this.fullKey(e),this.context,"boolean"))}getString(e){const n=this.getOptionalString(e);if(n===void 0)throw new Error(Ie.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(Ie.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 mn(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 l;return(a=this.fallback)===null||a===void 0?void 0:a.readConfigValue(e,n)}const v=n(s);if(v!==!0){const{key:m=e,value:w=s,expected:j}=v;throw new TypeError(Ie.type(this.fullKey(m),this.context,Yo(w),j))}return s}readValue(e){const n=e?e.split("."):[];for(const a of n)if(!us.test(a))throw new TypeError(`Invalid config key '${e}'`);if(this.data===void 0)return;let s=this.data;for(const[a,l]of n.entries())if(Dn(s))s=s[l];else if(s!==void 0){const v=this.fullKey(n.slice(0,a).join("."));throw new TypeError(Ie.type(v,this.context,Yo(s),"object"))}return s}constructor(e,n="mock-config",s,a=""){(0,y._)(this,"data",void 0),(0,y._)(this,"context",void 0),(0,y._)(this,"fallback",void 0),(0,y._)(this,"prefix",void 0),(0,y._)(this,"filteredKeys",void 0),(0,y._)(this,"notifiedFilteredKeys",void 0),this.data=e,this.context=n,this.fallback=s,this.prefix=a,this.notifiedFilteredKeys=new Set}}const Mn="theme";class qn{static createWithStorage(e){const n=new qn(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(l=>{l?window.localStorage.setItem(Mn,l):window.localStorage.removeItem(Mn)}),window.addEventListener("storage",l=>{if(l.key===Mn){var v;const m=(v=localStorage.getItem(Mn))!==null&&v!==void 0?v:void 0;n.setActiveThemeId(m)}}),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,y._)(this,"themes",void 0),(0,y._)(this,"activeThemeId",void 0),(0,y._)(this,"subject",void 0),this.themes=e,this.subject=new st(void 0)}}var yn=t(82723);function vr(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 hs{registerFlag(e){vr(e.name),this.registeredFeatureFlags.push(e)}getRegisteredFlags(){return this.registeredFeatureFlags.slice()}isActive(e){return this.flags||(this.flags=this.load()),this.flags.get(e)===yn.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===yn.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,l])=>(vr(a),l===yn.C.Active));return new Map(s)}catch{return new Map}}constructor(){(0,y._)(this,"registeredFeatureFlags",[]),(0,y._)(this,"flags",void 0)}}const to=(0,Zt.T)({id:"core.apptheme"}),mr=(0,Zt.T)({id:"core.applanguage"}),fs=(0,Zt.T)({id:"core.translation"});class Qo{static validateFactories(e,n){for(const s of n){const a=[s],l=new Set;for(;a.length;){const v=a.shift(),m=e.get(v);if(m)for(const w of Object.values(m.deps)){if(w.id===s.id)throw new Error(`Circular dependency of api factory for ${s}`);l.has(w)||(l.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 l=this.loadDeps(e,a.deps,[...n,a.api]),v=a.factory(l);return this.apis.set(e.id,v),v}loadDeps(e,n,s){const a={};for(const l in n)if(n.hasOwnProperty(l)){const v=n[l],m=this.load(v,s);if(!m)throw new Error(`No API factory available for dependency ${v} of dependent ${e}`);a[l]=m}return a}constructor(e){(0,y._)(this,"factories",void 0),(0,y._)(this,"apis",void 0),this.factories=e,this.apis=new Map}}var Jo;(function(r){r[r.default=10]="default",r[r.app=50]="app",r[r.static=100]="static"})(Jo||(Jo={}));class ps{register(e,n){const s=Jo[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,y._)(this,"factories",new Map)}}function gs(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:l}=n.shift();d.Children.forEach(s,v=>{if(!(0,d.isValidElement)(v))return;const m={};for(const w in e)if(e.hasOwnProperty(w)){const j=e[w];m[w]=j.visit(j.accumulator,v,a,l[w])}for(const w of r.discoverers){const j=w(v);j&&n.push({node:j,parent:v,contexts:m})}})}return Object.fromEntries(Object.entries(e).map(([s,a])=>[s,a.accumulator]))}function eo(r,e){return()=>({accumulator:r(),visit:e})}function vs(r){var e;return(e=r.props)===null||e===void 0?void 0:e.children}function ms(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 Pe=t(62584);const ys=eo(()=>new Set,(r,e)=>{const n=(0,Pe.I)(e,"core.plugin");n&&r.add(n)});var Ln=t(44394);const yr=r=>{const{children:e}=r,n=(0,Ln.h_)(yn.W),s="with"in r?n.isActive(r.with):!n.isActive(r.without);return(0,i.jsx)(i.Fragment,{children:s?e:null})};(0,Pe.R)(yr,"core.featureFlagged",!0);const no={caseSensitive:!1,path:"*",element:"match-all",routeRefs:new Set,plugins:new Set};function oo(r){var e;const n=r;if(!((e=n)===null||e===void 0)&&e.type){var s,a;return(a=(s=n.type.displayName)!==null&&s!==void 0?s:n.type.name)!==null&&a!==void 0?a:String(n.type)}return String(n)}const Er=r=>{const e=new Set;return r&&e.add(r),e};function xr(r,e=new Array){return d.Children.forEach(r,n=>{if(!(0,d.isValidElement)(n))return;const s=(0,Pe.I)(n,"core.mountPoint");if(s){const a=(0,Pe.I)(n,"core.plugin");e.push({routeRef:s,plugin:a})}xr(n.props.children,e)}),e}const Es=eo(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,s)=>{var a,l,v,m,w;if(!((a=s)===null||a===void 0)&&a.isElementAncestor)return s;if(((l=n)===null||l===void 0?void 0:l.props.element)===e)return{...s,isElementAncestor:!0};const j=(v=e.props)===null||v===void 0?void 0:v.path,tt=(0,Pe.I)(e,"core.mountPoint");if(tt&&j)throw new Error(`Path property may not be set directly on a routable extension "${oo(e)}"`);var X;const ut=(X=(w=s)===null||w===void 0||(m=w.obj)===null||m===void 0?void 0:m.children)!==null&&X!==void 0?X:r.objects;if(j!==void 0){if(typeof j!="string")throw new Error(`Element path must be a string at "${oo(e)}"`);const Se=j.startsWith("/")?j.slice(1):j,Ze=e.props.element;if((0,Pe.I)(e,"core.gatherMountPoints")){var nt,Ot,$t;if(Ze)throw new Error(`Mount point gatherers may not have an element prop "${oo(e)}"`);const pn={path:Se,element:"gathered",routeRefs:new Set,caseSensitive:Boolean((nt=e.props)===null||nt===void 0?void 0:nt.caseSensitive),children:[no],plugins:new Set};return ut.push(pn),{obj:pn,gatherPath:Se,routeRef:(Ot=s)===null||Ot===void 0?void 0:Ot.routeRef,gatherRouteRef:($t=s)===null||$t===void 0?void 0:$t.routeRef}}if(Ze){var Bt,ie,Be,Qe;const[pn,...ga]=xr(Ze);if(ga.length>0)throw new Error(`Route element with path "${j}" may not contain multiple routable extensions`);if(!pn)return s;const{routeRef:Pn,plugin:va}=pn,is={path:Se,element:"mounted",routeRefs:new Set([Pn]),caseSensitive:Boolean((Bt=e.props)===null||Bt===void 0?void 0:Bt.caseSensitive),children:[no],plugins:Er(va)};return ut.push(is),r.paths.set(Pn,Se),r.parents.set(Pn,(ie=s)===null||ie===void 0?void 0:ie.routeRef),{obj:is,routeRef:Pn!=null?Pn:(Be=s)===null||Be===void 0?void 0:Be.routeRef,gatherPath:Se,gatherRouteRef:(Qe=s)===null||Qe===void 0?void 0:Qe.gatherRouteRef}}}if(tt){var De,Je,ue,Ne;if(((De=s)===null||De===void 0?void 0:De.gatherPath)===void 0)throw new Error(`Routable extension "${oo(e)}" with mount point "${tt}" must be assigned a path`);(ue=s)===null||ue===void 0||(Je=ue.obj)===null||Je===void 0||Je.routeRefs.add(tt);const Se=(0,Pe.I)(e,"core.plugin");if(Se){var bn,Ue;(Ue=s)===null||Ue===void 0||(bn=Ue.obj)===null||bn===void 0||bn.plugins.add(Se)}return r.paths.set(tt,s.gatherPath),r.parents.set(tt,(Ne=s)===null||Ne===void 0?void 0:Ne.gatherRouteRef),{...s,routeRef:tt}}return s}),xs=eo(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,s)=>{var a,l,v,m,w,j,tt,X,ut;if(((a=n)===null||a===void 0?void 0:a.props.element)===e)return s;let nt=(l=s)===null||l===void 0?void 0:l.obj,Ot=(v=s)===null||v===void 0?void 0:v.routeRef,$t=(m=s)===null||m===void 0?void 0:m.sticky;const Bt=(w=e.props)===null||w===void 0?void 0:w.path;var ie;const Be=(ie=(j=nt)===null||j===void 0?void 0:j.children)!==null&&ie!==void 0?ie:r.objects,Qe=Boolean((tt=e.props)===null||tt===void 0?void 0:tt.caseSensitive);let De=(X=s)===null||X===void 0?void 0:X.path;if((0,Pe.I)(e,"core.gatherMountPoints")){if(!Bt)throw new Error("Mount point gatherer must have a path");De=Bt}const Je=(ut=e.props)===null||ut===void 0?void 0:ut.element;let ue=(0,Pe.I)(e,"core.mountPoint");if(!ue&&(0,d.isValidElement)(Je)&&(ue=(0,Pe.I)(Je,"core.mountPoint")),ue){let Ze=Bt;if(De&&(Ze?De=void 0:Ze=De),!Ze)throw new Error("Mounted routable extension must have a path");if(r.paths.set(ue,Ze),Ot&&$t?(r.parents.set(ue,Ot),Bt&&(Ot=ue,$t=!1)):(r.parents.set(ue,Ot),Ot=ue),Bt)nt={caseSensitive:Qe,path:Bt,element:"mounted",routeRefs:new Set([ue]),children:[no],plugins:Er((0,Pe.I)(e.props.element,"core.plugin"))},Be.push(nt);else{var Ne;(Ne=nt)===null||Ne===void 0||Ne.routeRefs.add(ue)}}if((0,Pe.I)(e,"core.gatherMountPoints")&&($t=!0),(0,Pe.I)(e,"core.gatherMountPoints")){if(!Bt)throw new Error("Mount point gatherer must have a path");if(!ue){var Ue,Se;nt={caseSensitive:Qe,path:Bt,element:"gathered",routeRefs:new Set,children:[no],plugins:((Se=s)===null||Se===void 0||(Ue=Se.obj)===null||Ue===void 0?void 0:Ue.plugins)||new Set},Be.push(nt)}}return{obj:nt,path:De,routeRef:Ot,sticky:$t}}),Cs=eo(()=>new Set,(r,e)=>{if(e.type===yr){const n=e.props;r.add("with"in n?n.with:n.without)}});var jn=t(84800),As=t(96087);const Bn=(0,As.u)("route-ref-type",()=>Symbol("route-ref-type"));function Cr(r){return r[Bn]==="absolute"}function Ar(r){return r[Bn]==="sub"}function Os(r){return r[Bn]==="external"}function ro(...r){const e=r.join("/").replace(/\/\/+/g,"/");return e!=="/"&&e.endsWith("/")?e.slice(0,-1):e}function Ss(r,e,n){let s,a="";if(Cr(r))s=r;else if(Ar(r))s=r.parent,a=r.path;else if(Os(r)){const m=n.get(r);if(!m)return[void 0,""];if(Cr(m))s=m;else if(Ar(m))s=m.parent,a=m.path;else throw new Error(`ExternalRouteRef was bound to invalid target, ${m}`)}else throw r[Bn]?new Error(`Unknown or invalid route ref type, ${r[Bn]}`):new Error(`Unknown object passed to useRouteRef, got ${r}`);if(!s)return[void 0,""];const l=e.get(s);if(l===void 0)return[void 0,""];const v=ro(l,a);return[s,v]}function bs(r,e,n,s,a){var l;const v=(l=(0,jn.fp)(a,e))!==null&&l!==void 0?l:[],m=Array();let w=-1;for(let X=r;X&&(w=v.findIndex(ut=>ut.route.routeRefs.has(X)),w===-1);X=s.get(X))m.unshift(X);m.length===0&&(w-=1);const j=w===-1?"":v[w].pathname,tt=m.slice(0,-1).map(X=>{const ut=n.get(X);if(ut===void 0)throw new Error(`No path for ${X}`);if(ut.includes(":"))throw new Error(`Cannot route to ${r} with parent ${X} as it has parameters`);return ut});return`${ro(j,...tt)}/`}class Ps{resolve(e,n){const[s,a]=Ss(e,this.routePaths,this.routeBindings);if(!s)return;let l;typeof n=="string"?l=this.trimPath(n):n.pathname?l={...n,pathname:this.trimPath(n.pathname)}:l=n;const v=this.appBasePath+bs(s,l,this.routePaths,this.routeParents,this.routeObjects);return(...[w])=>ro(v,(0,jn.Gn)(a,w))}trimPath(e){return e&&(e.startsWith(this.appBasePath)?e.slice(this.appBasePath.length):e)}constructor(e,n,s,a,l){(0,y._)(this,"routePaths",void 0),(0,y._)(this,"routeParents",void 0),(0,y._)(this,"routeObjects",void 0),(0,y._)(this,"routeBindings",void 0),(0,y._)(this,"appBasePath",void 0),this.routePaths=e,this.routeParents=n,this.routeObjects=s,this.routeBindings=a,this.appBasePath=l}}const Rs=(0,vn.CT)("routing-context"),Ts=({routePaths:r,routeParents:e,routeObjects:n,routeBindings:s,basePath:a="",children:l})=>{const v=new Ps(r,e,n,s,a),m=(0,Xn.E)({1:v});return(0,i.jsx)(Rs.Provider,{value:m,children:l})};function ws(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,l="";for(;a;){const m=r.get(a);if(m===void 0)throw new Error(`No path for ${a}`);l=ro(m,l),a=e.get(a)}const v=l.match(/:(\w+)/g);if(v){for(let m=0;m<v.length;m++)for(let w=m+1;w<v.length;w++)if(v[w]===v[m])throw new Error(`Parameter ${v[w]} is duplicated in path ${l}`)}}}function Is(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 Ds=(0,vn.CT)("app-context"),Ms=({appContext:r,children:e})=>{const n=(0,Xn.E)({1:r});return(0,i.jsx)(Ds.Provider,{value:n,children:e})};function Or(r){return new Error(`Tried to access IdentityApi ${r} before app was loaded`)}function Xo(r){console.warn(`WARNING: Call to ${r} is deprecated and will break in the future`)}class Ls{setTarget(e,n){this.target=e,this.signOutTargetUrl=n.signOutTargetUrl,this.resolveTarget(e)}getUserId(){if(!this.target)throw Or("getUserId");if(!this.target.getUserId)throw new Error("IdentityApi does not implement getUserId");return Xo("getUserId"),this.target.getUserId()}getProfile(){if(!this.target)throw Or("getProfile");if(!this.target.getProfile)throw new Error("IdentityApi does not implement getProfile");return Xo("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 Xo("getIdToken"),e.getIdToken()})}async signOut(){await this.waitForTarget.then(e=>e.signOut()),window.location.href=this.signOutTargetUrl}constructor(){(0,y._)(this,"target",void 0),(0,y._)(this,"waitForTarget",void 0),(0,y._)(this,"resolveTarget",()=>{}),(0,y._)(this,"signOutTargetUrl","/"),this.waitForTarget=new Promise(e=>{this.resolveTarget=e})}}var js=t(72164);function Bs(r,e,n){if(r!==void 0){const a=n.find(l=>l.id===r);if(a)return a}if(e){const a=n.find(l=>l.variant==="dark");if(a)return a}const s=n.find(a=>a.variant==="light");return s||n[0]}const Us=()=>{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 Sr({children:r}){const e=(0,Ln.h_)(to),n=(0,js.Z)(e.activeThemeId$(),e.getActiveThemeId()),s=Boolean(window.matchMedia)?Us():!1,a=Bs(n,s,e.getInstalledThemes());if(!a)throw new Error("App has no themes");return(0,i.jsx)(a.Provider,{children:r})}const br=async()=>$s();function $s(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 Fs{add(e,n){return this.apis.push([e.id,n]),n}build(){return new En(new Map(this.apis))}constructor(){(0,y._)(this,"apis",[])}}class En{static builder(){return new Fs}static from(e){return new En(new Map(e.map(([n,s])=>[n.id,s])))}static with(e,n){return new En(new Map([[e.id,n]]))}with(e,n){return new En(new Map([...this.apis,[e.id,n]]))}get(e){return this.apis.get(e.id)}constructor(e){(0,y._)(this,"apis",void 0),this.apis=e}}function Ws(r){const e=new Map;return r&&r({bind:(s,a)=>{for(const[l,v]of Object.entries(a)){const m=s[l];if(!m)throw new Error(`Key ${l} is not an existing external route`);if(!v&&!m.optional)throw new Error(`External route ${l} is required but was undefined`);v&&e.set(m,v)}}}),e}function Un(){const[r]=(0,p.is)((0,i.jsx)(p.AW,{index:!0,element:(0,i.jsx)("div",{})}));return!r.index}const Pr=(0,d.createContext)(void 0);var Rr=t(80851),Tr=t(62369),Ns=t(72388);const Zs=(r,e)=>{try{var n,s,a,l;const m=(n=(0,jn.fp)(e,{pathname:r}))===null||n===void 0?void 0:n.filter(ut=>{var nt,Ot;return((Ot=ut)===null||Ot===void 0||(nt=Ot.route.routeRefs)===null||nt===void 0?void 0:nt.size)>0}).pop(),w=(s=m)===null||s===void 0?void 0:s.route;if(!w||w.path===""&&r!=="/")return;let j;w.routeRefs.size===1&&(j=w.routeRefs.values().next().value);let tt;w.plugins.size===1&&(tt=w.plugins.values().next().value);const X=Object.entries(((a=m)===null||a===void 0?void 0:a.params)||{}).reduce((ut,[nt,Ot])=>(Ot!==void 0&&nt!=="*"&&(ut[nt]=Ot),ut),{});return{extension:"App",pluginId:((l=tt)===null||l===void 0?void 0:l.getId())||"root",...j?{routeRef:j.id}:{},_routeNodeType:w.element,params:X}}catch{return}},Ks=({pathname:r,search:e,hash:n,attributes:s})=>{const a=(0,Tr.z)();return(0,d.useEffect)(()=>{a.captureEvent("navigate",`${r}${e}${n}`,{attributes:s})},[a,r,e,n,s]),null},so=({routeObjects:r})=>{const{pathname:e,search:n,hash:s}=(0,p.TH)(),{params:a,...l}=Zs(e,r)||{params:{}};return(0,i.jsx)(Ns.fC,{attributes:l,children:(0,i.jsx)(Ks,{pathname:e,search:n,hash:s,attributes:a})})};function wr(r){return Un()?Ir(r):""}function Ir(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 Dr({component:r,appIdentityProxy:e,children:n}){const[s,a]=(0,d.useState)(),l=(0,Ln.h_)(te.D),v=wr(l);return s?(e.setTarget(s,{signOutTargetUrl:v||"/"}),(0,i.jsx)(i.Fragment,{children:n})):(0,i.jsx)(r,{onSignInSuccess:a})}function ks(r){const{Router:e,SignInPage:n}=(0,Rr.q)().getComponents(),s=(0,Ln.h_)(te.D),a=Ir(s),l=`${a}/*`,v=(0,d.useContext)(Pr);if(!v)throw new Error("AppRouter must be rendered within the AppProvider");const{routeObjects:m,appIdentityProxy:w}=v;return n?Un()?(0,i.jsxs)(e,{children:[(0,i.jsx)(so,{routeObjects:m}),(0,i.jsx)(Dr,{component:n,appIdentityProxy:w,children:(0,i.jsx)(p.Z5,{children:(0,i.jsx)(p.AW,{path:l,element:(0,i.jsx)(i.Fragment,{children:r.children})})})})]}):(0,i.jsxs)(e,{basename:a,children:[(0,i.jsx)(so,{routeObjects:m}),(0,i.jsx)(Dr,{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||"/"}),Un()?(0,i.jsxs)(e,{children:[(0,i.jsx)(so,{routeObjects:m}),(0,i.jsx)(p.Z5,{children:(0,i.jsx)(p.AW,{path:l,element:(0,i.jsx)(i.Fragment,{children:r.children})})})]}):(0,i.jsxs)(e,{basename:a,children:[(0,i.jsx)(so,{routeObjects:m}),r.children]}))}const $n="language",Ge="en";var Fn=new WeakMap,xn=new WeakMap,io=new WeakMap;class ao{static create(e){var n,s,a;const l=(a=(n=e)===null||n===void 0?void 0:n.availableLanguages)!==null&&a!==void 0?a:[Ge];if(l.length!==new Set(l).size)throw new Error(`Supported languages may not contain duplicates, got '${l.join("', '")}'`);if(!l.includes(Ge))throw new Error(`Supported languages must include '${Ge}'`);var v;const m=(v=(s=e)===null||s===void 0?void 0:s.defaultLanguage)!==null&&v!==void 0?v:Ge;if(!l.includes(m))throw new Error(`Initial language must be one of the supported languages, got '${m}'`);return new ao(l,m)}static createWithStorage(e){const n=ao.create(e);if(!window.localStorage)return n;const s=window.localStorage.getItem($n),{languages:a}=n.getAvailableLanguages();return s&&a.includes(s)&&n.setLanguage(s),n.language$().subscribe(({language:l})=>{l!==window.localStorage.getItem($n)&&window.localStorage.setItem($n,l)}),window.addEventListener("storage",l=>{if(l.key===$n){var v;const m=(v=localStorage.getItem($n))!==null&&v!==void 0?v:void 0;m&&n.setLanguage(m)}}),n}getAvailableLanguages(){return{languages:(0,jt._)(this,Fn).slice()}}setLanguage(e){const n=e!=null?e:Ge;if(n!==(0,jt._)(this,xn)){if(n&&!(0,jt._)(this,Fn).includes(n))throw new Error(`Failed to change language to '${n}', available languages are '${(0,jt._)(this,Fn).join("', '")}'`);(0,h._)(this,xn,n),(0,jt._)(this,io).next({language:n})}}getLanguage(){return{language:(0,jt._)(this,xn)}}language$(){return(0,jt._)(this,io)}constructor(e,n){(0,Ce._)(this,Fn,{writable:!0,value:void 0}),(0,Ce._)(this,xn,{writable:!0,value:void 0}),(0,Ce._)(this,io,{writable:!0,value:void 0}),(0,h._)(this,Fn,e),(0,h._)(this,xn,n),(0,h._)(this,io,new st({language:(0,jt._)(this,xn)}))}}var Ve=t(29190),lo=t(15356),zs=t(24991);function _s(r){const e=r;if(e.$$type!=="@backstage/TranslationResource")throw new Error(`Invalid translation resource, bad type '${e.$$type}'`);if(e.version!=="v1")throw new Error(`Invalid translation resource, bad version '${e.version}'`);return e}function ma(r){return{$$type:"@backstage/TranslationResource",version:"v1",id:r.ref.id,resources:Object.entries(r.translations).map(([e,n])=>({language:e,loader:()=>n().then(s=>{var a;const l=s.default;return{messages:((a=l)===null||a===void 0?void 0:a.$$type)==="@backstage/TranslationMessages"?l.messages:l}})}))}}var qo=new WeakMap,tr=new WeakMap,er=new WeakMap;class Hs{get id(){return _class_private_field_get(this,qo)}get T(){throw new Error("Not implemented")}getDefaultMessages(){return _class_private_field_get(this,tr)}setDefaultResource(e){_class_private_field_set(this,er,e)}getDefaultResource(){return _class_private_field_get(this,er)}toString(){return`TranslationRef{id=${this.id}}`}constructor(e){_class_private_field_init(this,qo,{writable:!0,value:void 0}),_class_private_field_init(this,tr,{writable:!0,value:void 0}),_class_private_field_init(this,er,{writable:!0,value:void 0}),_define_property(this,"$$type","@backstage/TranslationRef"),_define_property(this,"version","v1"),_class_private_field_set(this,qo,e.id),_class_private_field_set(this,tr,e.messages)}}function ya(r){const e=new Hs(r);return r.translations&&e.setDefaultResource(createTranslationResource({ref:e,translations:r.translations})),e}function Mr(r){const e=r;if(e.$$type!=="@backstage/TranslationRef")throw new Error(`Invalid translation ref, bad type '${e.$$type}'`);if(e.version!=="v1")throw new Error(`Invalid translation ref, bad version '${e.version}'`);return e}function Lr(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==null))}var Cn=new WeakMap,co=new WeakMap,An=new WeakMap,uo=new WeakSet;class Gs{addTranslationResource(e){const n=_s(e);for(const s of n.resources){const a=(0,Ve._)(this,uo,nr).call(this,s.language,n.id);(0,jt._)(this,An).has(a)||(0,jt._)(this,An).set(a,s.loader)}}needsLoading(e,n){const s=(0,Ve._)(this,uo,nr).call(this,e,n);return(0,jt._)(this,An).get(s)?!(0,jt._)(this,Cn).has(s):!1}async load(e,n){const s=(0,Ve._)(this,uo,nr).call(this,e,n),a=(0,jt._)(this,An).get(s);if(!a||(0,jt._)(this,Cn).has(s))return;const l=(0,jt._)(this,co).get(s);if(l){await l;return}const v=a().then(m=>{this.onLoad({language:e,namespace:n,messages:m.messages}),(0,jt._)(this,Cn).add(s)},m=>{throw(0,jt._)(this,Cn).add(s),m});(0,jt._)(this,co).set(s,v),await v}constructor(e){(0,lo._)(this,uo),(0,y._)(this,"onLoad",void 0),(0,Ce._)(this,Cn,{writable:!0,value:void 0}),(0,Ce._)(this,co,{writable:!0,value:void 0}),(0,Ce._)(this,An,{writable:!0,value:void 0}),this.onLoad=e,(0,h._)(this,Cn,new Set),(0,h._)(this,co,new Map),(0,h._)(this,An,new Map)}}function nr(r,e){return`${r}/${e}`}var Wn=new WeakMap,On=new WeakMap,hn=new WeakMap,or=new WeakMap,ho=new WeakMap,jr=new WeakSet,fo=new WeakSet,rr=new WeakSet;class sr{static create(e){var n;const{languages:s}=e.languageApi.getAvailableLanguages(),a=(0,zs.Fs)({fallbackLng:Ge,supportedLngs:s,interpolation:{escapeValue:!1},ns:[],defaultNS:!1,fallbackNS:!1,initImmediate:!1});if(a.init(),!a.isInitialized)throw new Error("i18next was unexpectedly not initialized");const{language:l}=e.languageApi.getLanguage();l!==Ge&&a.changeLanguage(l);const v=new Gs(j=>{a.addResourceBundle(j.language,j.namespace,Lr(j.messages),!1,!0)}),m=((n=e)===null||n===void 0?void 0:n.resources)||[];for(let j=m.length-1;j>=0;j--){const tt=m[j];tt.$$type==="@backstage/TranslationResource"?v.addTranslationResource(tt):tt.$$type==="@backstage/TranslationMessages"&&a.addResourceBundle(Ge,tt.id,Lr(tt.messages),!0,!1)}const w=new sr(a,v,e.languageApi.getLanguage().language);return e.languageApi.language$().subscribe(({language:j})=>{(0,Ve._)(w,jr,Vs).call(w,j)}),w}getTranslation(e){const n=Mr(e);return(0,Ve._)(this,rr,Br).call(this,n),(0,Ve._)(this,fo,ir).call(this,n)}translation$(e){const n=Mr(e);return(0,Ve._)(this,rr,Br).call(this,n),new(G())(s=>{let a={},l=!1;const v=()=>{a={};const w=a;(0,jt._)(this,On).load((0,jt._)(this,hn),n.id).then(()=>{if(w===a){const j=(0,Ve._)(this,fo,ir).call(this,n);(j.ready||l)&&(l=j.ready,s.next(j))}},j=>{w===a&&s.error(Array.isArray(j)?j[0]:j)})},m=()=>{const w=(0,Ve._)(this,fo,ir).call(this,n);l&&!w.ready&&(l=w.ready,s.next(w)),w.ready||v()};return(0,jt._)(this,On).needsLoading((0,jt._)(this,hn),n.id)&&v(),(0,jt._)(this,ho).add(m),()=>{(0,jt._)(this,ho).delete(m)}})}constructor(e,n,s){(0,lo._)(this,jr),(0,lo._)(this,fo),(0,lo._)(this,rr),(0,Ce._)(this,Wn,{writable:!0,value:void 0}),(0,Ce._)(this,On,{writable:!0,value:void 0}),(0,Ce._)(this,hn,{writable:!0,value:void 0}),(0,Ce._)(this,or,{writable:!0,value:new Set}),(0,Ce._)(this,ho,{writable:!0,value:new Set}),(0,h._)(this,Wn,e),(0,h._)(this,On,n),(0,h._)(this,hn,s)}}function Vs(r){(0,jt._)(this,hn)!==r&&((0,h._)(this,hn,r),(0,jt._)(this,Wn).changeLanguage(r),(0,jt._)(this,ho).forEach(e=>e()))}function ir(r){return(0,jt._)(this,On).needsLoading((0,jt._)(this,hn),r.id)?{ready:!1}:{ready:!0,t:(0,jt._)(this,Wn).getFixedT(null,r.id)}}function Br(r){if((0,jt._)(this,or).has(r.id))return;(0,jt._)(this,or).add(r.id);const e=r.getDefaultMessages();(0,jt._)(this,Wn).addResourceBundle(Ge,r.id,e,!0,!1);const n=r.getDefaultResource();n&&(0,jt._)(this,On).addTranslationResource(n)}function Ur(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 Ys(r){const e=mn.fromConfigs(r),n=e.getOptionalString("app.baseUrl"),s=e.getOptionalString("backend.baseUrl");let a=r,l,v;if(n&&s){const m=new URL(n).origin,w=new URL(s).origin;if(m===w){const j=Ur(s);s!==j&&(l=j)}}if(n){const m=Ur(n);n!==m&&(v=m)}return(v||l)&&(a=a.concat({data:{app:v&&{baseUrl:v},backend:l&&{baseUrl:l}},context:"relative-resolver"})),a}function Qs(r,e,n){var s;const a=Boolean(r),l=(0,dn.default)(r||(()=>Promise.resolve([])));let v;if(a&&l.loading){const{Progress:j}=e;v=(0,i.jsx)(j,{})}else if(l.error){const{BootErrorPage:j}=e;v=(0,i.jsx)(j,{step:"load-config",error:l.error})}const{ThemeProvider:m=Sr}=e;return v?{node:(0,i.jsx)(Vo,{apis:En.with(to,n),children:(0,i.jsx)(m,{children:v})})}:{api:mn.fromConfigs(!((s=l.value)===null||s===void 0)&&s.length?Ys(l.value):[])}}class Js{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,y._)(this,"app",void 0),this.app=e}}var ar=new WeakMap;class Xs{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,jt._)(this,ar))throw new Error("app.getProvider() or app.createRoot() has already been called, and can only be called once");(0,h._)(this,ar,!0);const e=new Js(this);let n=!1;return({children:a})=>{const l=(0,d.useRef)(!0),v=(0,d.useMemo)(()=>qn.createWithStorage(this.themes),[]),{routing:m,featureFlags:w,routeBindings:j}=(0,d.useMemo)(()=>{const nt=gs({root:a,discoverers:[vs,ms],collectors:{routing:Un()?xs:Es,collectedPlugins:ys,featureFlags:Cs}});return nt.collectedPlugins.forEach(Ot=>this.plugins.add(Ot)),this.verifyPlugins(this.plugins),this.getApiHolder(),{...nt,routeBindings:Ws(this.bindRoutes)}},[a]);n||(n=!0,ws(m.paths,m.parents),Is(j,this.plugins));const tt=Qs(this.configLoader,this.components,v),X="api"in tt;if(X){const{api:nt}=tt;this.configApi=nt}if("node"in tt)return tt.node;if(X&&l.current){l.current=!1;const nt=this.getApiHolder().get(yn.W);if(nt){for(const Bt of this.featureFlags)nt.registerFlag({...Bt,pluginId:""});for(const Bt of this.plugins.values())if("getFeatureFlags"in Bt)for(const ie of Bt.getFeatureFlags())nt.registerFlag({name:ie.name,pluginId:Bt.getId()});else for(const ie of Bt.output())ie.type==="feature-flag"&&nt.registerFlag({name:ie.name,pluginId:Bt.getId()});const Ot=nt.getRegisteredFlags(),$t=new Set(Ot.map(Bt=>Bt.name));for(const Bt of w)$t.has(Bt)||nt.registerFlag({name:Bt,pluginId:""})}}const{ThemeProvider:ut=Sr}=this.components;return(0,i.jsx)(Vo,{apis:this.getApiHolder(),children:(0,i.jsx)(Ms,{appContext:e,children:(0,i.jsx)(ut,{children:(0,i.jsx)(Ts,{routePaths:m.paths,routeParents:m.parents,routeObjects:m.objects,routeBindings:j,basePath:wr(tt.api),children:(0,i.jsx)(Pr.Provider,{value:{routeObjects:m.objects,appIdentityProxy:this.appIdentityProxy},children:a})})})})})}}getRouter(){return ks}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 Qo.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder}this.apiFactoryRegistry.register("static",{api:to,deps:{},factory:()=>qn.createWithStorage(this.themes)}),this.apiFactoryRegistry.register("static",{api:te.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:ln.$,deps:{},factory:()=>this.appIdentityProxy}),this.apiFactoryRegistry.register("static",{api:mr,deps:{},factory:()=>this.appLanguageApi}),this.apiFactoryRegistry.register("default",{api:fs,deps:{languageApi:mr},factory:({languageApi:e})=>sr.create({languageApi:e,resources:this.translationResources})}),this.apiFactoryRegistry.register("default",{api:yn.W,deps:{},factory:()=>new hs});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 Qo.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder=new Qo(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,y._)(this,"apiHolder",void 0),(0,y._)(this,"configApi",void 0),(0,y._)(this,"apis",void 0),(0,y._)(this,"icons",void 0),(0,y._)(this,"plugins",void 0),(0,y._)(this,"featureFlags",void 0),(0,y._)(this,"components",void 0),(0,y._)(this,"themes",void 0),(0,y._)(this,"configLoader",void 0),(0,y._)(this,"defaultApis",void 0),(0,y._)(this,"bindRoutes",void 0),(0,y._)(this,"appLanguageApi",void 0),(0,y._)(this,"translationResources",void 0),(0,y._)(this,"appIdentityProxy",new Ls),(0,y._)(this,"apiFactoryRegistry",void 0),(0,Ce._)(this,ar,{writable:!0,value:!1});var l;this.apis=(l=e.apis)!==null&&l!==void 0?l:[],this.icons=e.icons;var v;this.plugins=new Set((v=e.plugins)!==null&&v!==void 0?v:[]);var m;this.featureFlags=(m=e.featureFlags)!==null&&m!==void 0?m:[],this.components=e.components,this.themes=e.themes;var w;this.configLoader=(w=e.configLoader)!==null&&w!==void 0?w:br;var j;this.defaultApis=(j=e.defaultApis)!==null&&j!==void 0?j:[],this.bindRoutes=e.bindRoutes,this.apiFactoryRegistry=new ps,this.appLanguageApi=ao.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 tt;this.translationResources=(tt=(a=e.__experimentalTranslations)===null||a===void 0?void 0:a.resources)!==null&&tt!==void 0?tt:[]}}function qs(r){return new Xs(r)}function ti(r){var e,n,s,a,l,v,m,w,j,tt,X,ut;return qs({...r,apis:(j=(e=r)===null||e===void 0?void 0:e.apis)!==null&&j!==void 0?j:[],bindRoutes:(n=r)===null||n===void 0?void 0:n.bindRoutes,components:{...W,...(s=r)===null||s===void 0?void 0:s.components},configLoader:(a=r)===null||a===void 0?void 0:a.configLoader,defaultApis:Tn,icons:{...Yn,...(l=r)===null||l===void 0?void 0:l.icons},plugins:(tt=(v=r)===null||v===void 0?void 0:v.plugins)!==null&&tt!==void 0?tt:[],featureFlags:(X=(m=r)===null||m===void 0?void 0:m.featureFlags)!==null&&X!==void 0?X:[],themes:(ut=(w=r)===null||w===void 0?void 0:w.themes)!==null&&ut!==void 0?ut:ve})}var po=t(2532);let $r=!1;const ei=r=>{const e=(0,Rr.q)(),{NotFoundErrorPage:n}=e.getComponents(),s=(0,d.useMemo)(()=>Un(),[]),l=[...(0,po.v)(r.children,v=>v.getElements().flatMap(m=>{var w;let j=m.props.path;if(j==="")return[];var tt;j=(tt=(w=j)===null||w===void 0?void 0:w.replace(/\/\*$/,""))!==null&&tt!==void 0?tt:"/";let X=s?m:m.props.element;return!s&&!X&&(X=m,$r||(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] />} />."),$r=!0)),[{path:j,element:X,children:m.props.children?[{path:j==="/"?"/":"*",element:m.props.children}]:void 0}]}).sort((m,w)=>w.path.localeCompare(m.path)).map(m=>({...m,path:m.path==="/"?"/":`${m.path}/*`}))),{path:"*",element:(0,i.jsx)(n,{})}];return(0,p.V$)(l)};var Nn=t(74314),ni=t(51547),oi=t(88797);function Fr(r){return!r.cursor}function Ea(r){return!Fr(r)}class ri{async getEntityAncestors(e,n){const{kind:s,namespace:a,name:l}=(0,Nn.of)(e.entityRef);return await this.requestRequired("GET",`/entities/by-name/${encodeURIComponent(s)}/${encodeURIComponent(a)}/${encodeURIComponent(l)}/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:l,offset:v,limit:m,after:w}=e!=null?e:{},j=this.getParams(s);if(a.length&&j.push(`fields=${a.map(encodeURIComponent).join(",")}`),l)for(const nt of[l].flat())nt&&j.push(`order=${encodeURIComponent(nt.order)}:${encodeURIComponent(nt.field)}`);v!==void 0&&j.push(`offset=${v}`),m!==void 0&&j.push(`limit=${m}`),w!==void 0&&j.push(`after=${encodeURIComponent(w)}`);const tt=j.length?`?${j.join("&")}`:"",X=await this.requestRequired("GET",`/entities${tt}`,n),ut=(nt,Ot)=>{var $t,Bt;if((($t=nt.metadata)===null||$t===void 0?void 0:$t.name)===void 0||nt.kind===void 0||((Bt=Ot.metadata)===null||Bt===void 0?void 0:Bt.name)===void 0||Ot.kind===void 0)return 0;const ie=(0,Nn.eE)(nt),Be=(0,Nn.eE)(Ot);return ie<Be?-1:ie>Be?1:0};return{items:X.sort(ut)}}async getEntitiesByRefs(e,n){var s,a,l;const v={entityRefs:e.entityRefs};!((s=e.fields)===null||s===void 0)&&s.length&&(v.fields=e.fields);const w=`${await this.discoveryApi.getBaseUrl("catalog")}/entities/by-refs`,j=await this.fetchApi.fetch(w,{headers:{"Content-Type":"application/json",...((a=n)===null||a===void 0?void 0:a.token)&&{Authorization:`Bearer ${(l=n)===null||l===void 0?void 0:l.token}`}},method:"POST",body:JSON.stringify(v)});if(!j.ok)throw await en.V.fromResponse(j);const{items:tt}=await j.json();return{items:tt.map(X=>X!=null?X:void 0)}}async queryEntities(e={},n){const s=[];if(Fr(e)){var a,l,v,m;const{fields:j=[],filter:tt,limit:X,orderFields:ut,fullTextFilter:nt}=e;s.push(...this.getParams(tt)),X!==void 0&&s.push(`limit=${X}`),ut!==void 0&&(Array.isArray(ut)?ut:[ut]).forEach(({field:$t,order:Bt})=>s.push(`orderField=${$t},${Bt}`)),j.length&&s.push(`fields=${j.map(encodeURIComponent).join(",")}`);const Ot=(l=nt)===null||l===void 0||(a=l.term)===null||a===void 0?void 0:a.trim();Ot&&s.push(`fullTextFilterTerm=${Ot}`),!((m=nt)===null||m===void 0||(v=m.fields)===null||v===void 0)&&v.length&&s.push(`fullTextFilterFields=${nt.fields.join(",")}`)}else{const{fields:j=[],limit:tt,cursor:X}=e;s.push(`cursor=${X}`),tt!==void 0&&s.push(`limit=${tt}`),j.length&&s.push(`fields=${j.map(encodeURIComponent).join(",")}`)}const w=s.length?`?${s.join("&")}`:"";return this.requestRequired("GET",`/entities/by-query${w}`,n)}async getEntityByRef(e,n){const{kind:s,namespace:a,name:l}=(0,Nn.of)(e);return this.requestOptional("GET",`/entities/by-name/${encodeURIComponent(s)}/${encodeURIComponent(a)}/${encodeURIComponent(l)}`,n)}async getEntityByName(e,n){const{kind:s,namespace:a="default",name:l}=e;return this.requestOptional("GET",`/entities/by-name/${encodeURIComponent(s)}/${encodeURIComponent(a)}/${encodeURIComponent(l)}`,n)}async refreshEntity(e,n){var s,a;const l=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/refresh`,{headers:{"Content-Type":"application/json",...((s=n)===null||s===void 0?void 0:s.token)&&{Authorization:`Bearer ${(a=n)===null||a===void 0?void 0:a.token}`}},method:"POST",body:JSON.stringify({entityRef:e})});if(l.status!==200)throw new Error(await l.text())}async getEntityFacets(e,n){const{filter:s=[],facets:a}=e,l=this.getParams(s);for(const m of a)l.push(`facet=${encodeURIComponent(m)}`);const v=l.length?`?${l.join("&")}`:"";return await this.requestOptional("GET",`/entity-facets${v}`,n)}async addLocation(e,n){var s,a;const{type:l="url",target:v,dryRun:m}=e,w=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/locations${m?"?dryRun=true":""}`,{headers:{"Content-Type":"application/json",...((s=n)===null||s===void 0?void 0:s.token)&&{Authorization:`Bearer ${(a=n)===null||a===void 0?void 0:a.token}`}},method:"POST",body:JSON.stringify({type:l,target:v})});if(w.status!==201)throw new Error(await w.text());const{location:j,entities:tt,exists:X}=await w.json();if(!j)throw new Error(`Location wasn't added: ${v}`);return{location:j,entities:tt,exists:X}}async getLocationByRef(e,n){return(await this.requestRequired("GET","/locations",n)).map(a=>a.data).find(a=>e===(0,ni.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){var a,l;const v=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/validate-entity`,{headers:{"Content-Type":"application/json",...((a=s)===null||a===void 0?void 0:a.token)&&{Authorization:`Bearer ${(l=s)===null||l===void 0?void 0:l.token}`}},method:"POST",body:JSON.stringify({entity:e,location:n})});if(v.ok)return{valid:!0};if(v.status!==400)throw await en.V.fromResponse(v);const{errors:m=[]}=await v.json();return{valid:!1,errors:m}}async requestIgnored(e,n,s){var a;const l=`${await this.discoveryApi.getBaseUrl("catalog")}${n}`,v=!((a=s)===null||a===void 0)&&a.token?{Authorization:`Bearer ${s.token}`}:{},m=await this.fetchApi.fetch(l,{method:e,headers:v});if(!m.ok)throw await en.V.fromResponse(m)}async requestRequired(e,n,s){var a;const l=`${await this.discoveryApi.getBaseUrl("catalog")}${n}`,v=!((a=s)===null||a===void 0)&&a.token?{Authorization:`Bearer ${s.token}`}:{},m=await this.fetchApi.fetch(l,{method:e,headers:v});if(!m.ok)throw await en.V.fromResponse(m);return m.json()}async requestOptional(e,n,s){var a;const l=`${await this.discoveryApi.getBaseUrl("catalog")}${n}`,v=!((a=s)===null||a===void 0)&&a.token?{Authorization:`Bearer ${s.token}`}:{},m=await this.fetchApi.fetch(l,{method:e,headers:v});if(!m.ok){if(m.status===404)return;throw await en.V.fromResponse(m)}return await m.json()}getParams(e=[]){const n=[];for(const s of[e].flat()){const a=[];for(const[l,v]of Object.entries(s))for(const m of[v].flat())m===oi.n?a.push(encodeURIComponent(l)):typeof m=="string"&&a.push(`${encodeURIComponent(l)}=${encodeURIComponent(m)}`);a.length&&n.push(`filter=${a.join(",")}`)}return n}constructor(e){(0,y._)(this,"discoveryApi",void 0),(0,y._)(this,"fetchApi",void 0),this.discoveryApi=e.discoveryApi,this.fetchApi=e.fetchApi||{fetch:Hn()}}}var si=t(88624),ii=t(36802),Wr=t(36434),Zn=t(65524),ai=t(15006),Re=t(82963),li=t(53945),Sn=t(76635);async function ci({storageApi:r}){const e=r.forBucket("settings"),n=r.forBucket("starredEntities"),s=e.snapshot("starredEntities").value;if(!(0,Sn.isArray)(s))return;var a;const l=new Set((a=n.snapshot("entityRefs").value)!==null&&a!==void 0?a:[]);s.filter(Sn.isString).map(v=>v.split(":")).filter(v=>v.length===4&&v[0]==="entity").map(([v,m,w,j])=>(0,Nn.eE)({kind:m,namespace:w,name:j})).forEach(v=>l.add(v)),await n.set("entityRefs",Array.from(l)),await e.remove("starredEntities")}class di{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,y._)(this,"settingsStore",void 0),(0,y._)(this,"starredEntities",void 0),(0,y._)(this,"subscribers",new Set),(0,y._)(this,"observable",new(G())(s=>(s.next(new Set(this.starredEntities)),this.subscribers.add(s),()=>{this.subscribers.delete(s)}))),ci(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 Oe=(0,ai.r)({id:"catalog",apis:[(0,Nt.n)({api:si.A,deps:{discoveryApi:oe.N,fetchApi:_n.g},factory:({discoveryApi:r,fetchApi:e})=>new ri({discoveryApi:r,fetchApi:e})}),(0,Nt.n)({api:ii.p,deps:{storageApi:zn},factory:({storageApi:r})=>new di({storageApi:r})})],routes:{catalogIndex:Zn._Z,catalogEntity:Wr.w},externalRoutes:{createComponent:Zn.yw,viewTechDoc:Zn.jU,createFromTemplate:Zn.ql},__experimentalConfigure(r){return{...{createButtonTitle:"Create"},...r}}}),xa=Oe.provide((0,Re.P4)({name:"CatalogIndexPage",component:()=>Promise.all([t.e(3893),t.e(9598)]).then(t.bind(t,69598)).then(r=>r.CatalogPage),mountPoint:Zn._Z})),ui=Oe.provide((0,Re.P4)({name:"CatalogEntityPage",component:()=>t.e(8951).then(t.bind(t,78951)).then(r=>r.CatalogEntityPage),mountPoint:Wr.w})),Ca=Oe.provide((0,Re.CO)({name:"EntityAboutCard",component:{lazy:()=>Promise.all([t.e(4966),t.e(7893)]).then(t.bind(t,37893)).then(r=>r.AboutCard)}})),Aa=Oe.provide((0,Re.CO)({name:"EntityLinksCard",component:{lazy:()=>t.e(7750).then(t.bind(t,17750)).then(r=>r.EntityLinksCard)}})),Oa=Oe.provide((0,Re.CO)({name:"EntityLabelsCard",component:{lazy:()=>t.e(5877).then(t.bind(t,85877)).then(r=>r.EntityLabelsCard)}})),Sa=Oe.provide((0,Re.CO)({name:"EntityHasSystemsCard",component:{lazy:()=>t.e(5458).then(t.bind(t,5458)).then(r=>r.HasSystemsCard)}})),ba=Oe.provide((0,Re.CO)({name:"EntityHasComponentsCard",component:{lazy:()=>t.e(1105).then(t.bind(t,1105)).then(r=>r.HasComponentsCard)}})),Pa=Oe.provide((0,Re.CO)({name:"EntityHasSubcomponentsCard",component:{lazy:()=>t.e(2440).then(t.bind(t,82440)).then(r=>r.HasSubcomponentsCard)}})),Ra=Oe.provide((0,Re.CO)({name:"EntityHasResourcesCard",component:{lazy:()=>t.e(9770).then(t.bind(t,79770)).then(r=>r.HasResourcesCard)}})),Ta=Oe.provide((0,Re.CO)({name:"EntityDependsOnComponentsCard",component:{lazy:()=>t.e(9545).then(t.bind(t,19545)).then(r=>r.DependsOnComponentsCard)}})),wa=Oe.provide((0,Re.CO)({name:"EntityDependencyOfComponentsCard",component:{lazy:()=>t.e(184).then(t.bind(t,40184)).then(r=>r.DependencyOfComponentsCard)}})),Ia=Oe.provide((0,Re.CO)({name:"EntityDependsOnResourcesCard",component:{lazy:()=>t.e(1032).then(t.bind(t,81032)).then(r=>r.DependsOnResourcesCard)}})),Da=Oe.provide((0,Re.CO)({name:"RelatedEntitiesCard",component:{lazy:()=>t.e(3487).then(t.bind(t,33487)).then(r=>r.RelatedEntitiesCard)}})),Ma=Oe.provide((0,li.E5)({name:"CatalogSearchResultListItem",component:()=>t.e(7670).then(t.bind(t,27670)).then(r=>r.CatalogSearchResultListItem),predicate:r=>r.type==="software-catalog"}));var Nr=t(91657),Zr=t(58496);class hi{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}`,l=await fetch(`${a.endsWith("/")?a:`${a}/`}index.html`);if(l.status===404)throw new Error("Page not found");return l.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,y._)(this,"configApi",void 0),(0,y._)(this,"discoveryApi",void 0),(0,y._)(this,"identityApi",void 0),this.configApi=e,this.discoveryApi=n,this.identityApi=s}}class fi{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,y._)(this,"configApi",void 0),(0,y._)(this,"discoveryApi",void 0),(0,y._)(this,"identityApi",void 0),this.configApi=e,this.discoveryApi=n,this.identityApi=s}}const pi=[(0,Nt.n)({api:Zr.D,deps:{configApi:te.D,discoveryApi:oe.N,identityApi:ln.$},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new hi({configApi:r,discoveryApi:e,identityApi:n})}),(0,Nt.n)({api:Zr.g,deps:{configApi:te.D,discoveryApi:oe.N,identityApi:ln.$},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new fi({configApi:r,discoveryApi:e,identityApi:n})}),(0,Nt.n)({api:Nr.q,deps:{configApi:te.D},factory:({configApi:r})=>Nr.a.fromConfig(r)})],gi={backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}},vi={backend:{baseUrl:"http://localhost:7007"},techdocs:{builder:"external"}};async function mi(){const r=await fetch("/.detect");return r.ok?(await r.text()).trim()==="techdocs-cli-server":!1}async function yi(){const r=await br(),e=await mi();return[...r,{context:"detected",data:e?gi:vi}]}var Ye=t(79692),Ei=t(58845);const xi=(0,Ye.Z)({svg:{width:"auto",height:30},path:{fill:"#7df3e1"}});var Ci=()=>{const r=xi();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 Ai=(0,Ye.Z)({svg:{width:"auto",height:28},path:{fill:"#7df3e1"}});var Oi=()=>{const r=Ai();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"})})},Ee=t(76921);const Kr={isOpen:!1,setOpen:()=>{}},kr=(0,d.createContext)(Kr),zr=(0,vn.CT)("sidebar-open-state-context");function _r(r){const{children:e,value:n}=r;return(0,i.jsx)(kr.Provider,{value:n,children:(0,i.jsx)(zr.Provider,{value:(0,Xn.E)({1:n}),children:e})})}const lr=()=>{const r=(0,d.useContext)(zr),e=(0,d.useContext)(kr);if(r===void 0)return e||Kr;const n=r.atVersion(1);if(n===void 0)throw new Error("No context found for version 1.");return n};var Hr=t(98864),Gr=t(44409),on=t(62774),Vr=t(41156),Si=t(72779),fn=t.n(Si),bi=t(50023),Yr=t(61837),Pi=t(4190),cr=t(90436),Ri=t(87685),Ti=t(44882),wi=t(57998);const Qr=(0,d.createContext)({selectedMenuItemIndex:-1,setSelectedMenuItemIndex:()=>{}});var dr=t(93539);const Ii=(0,Ye.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"}})),Di=r=>{const{to:e,label:n,icon:s,value:a}=r,{sidebarConfig:l}=(0,d.useContext)(Ee.kG),v=Ii({sidebarConfig:l}),m=(0,p.TH)(),{selectedMenuItemIndex:w,setSelectedMenuItemIndex:j}=(0,d.useContext)(Qr),tt=(ut,nt)=>{j(nt===w?-1:nt)},X=a===w&&w>=0||a!==w&&!(w>=0)&&e===m.pathname;return(0,i.jsx)(wi.Z,{"aria-label":n,label:n,icon:s,component:Hr.rU,to:e||m.pathname,onChange:tt,value:a,selected:X,classes:v})},Jr=r=>{const{children:e,to:n,label:s,icon:a,value:l}=r,{isMobile:v}=(0,dr.Pf)();return v?(0,i.jsx)(Di,{to:n,label:s,icon:a,value:l}):(0,i.jsx)(i.Fragment,{children:e})},Xr=(0,Ye.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.text.primary,alignItems:"center",justifyContent:"space-between",padding:r.spacing(2,3)},overlayHeaderClose:{color:r.palette.text.primary},marginMobileSidebar:e=>({marginBottom:`${e.sidebarConfig.mobileSidebarHeight}px`})})),Mi=r=>(0,Sn.orderBy)(r,({props:{priority:e}})=>Number.isInteger(e)?e:-1,"desc"),Li=d.createElement(Jr).type,ji=({children:r,label:e="Menu",open:n,onClose:s})=>{const{sidebarConfig:a}=(0,d.useContext)(Ee.kG),l=Xr({sidebarConfig:a});return(0,i.jsxs)(Pi.ZP,{anchor:"bottom",open:n,onClose:s,ModalProps:{BackdropProps:{classes:{root:l.marginMobileSidebar}}},classes:{root:l.marginMobileSidebar,paperAnchorBottom:l.overlay},children:[(0,i.jsxs)(on.Z,{className:l.overlayHeader,children:[(0,i.jsx)(cr.Z,{variant:"h3",children:e}),(0,i.jsx)(Yr.Z,{onClick:s,classes:{root:l.overlayHeaderClose},children:(0,i.jsx)(Ri.Z,{})})]}),(0,i.jsx)(on.Z,{component:"nav",children:r})]})},Bi=r=>{const{sidebarConfig:e}=(0,d.useContext)(Ee.kG),{children:n}=r,s=Xr({sidebarConfig:e}),a=(0,p.TH)(),[l,v]=(0,d.useState)(-1);(0,d.useEffect)(()=>{v(-1)},[a.pathname]);let m=(0,po.v)(n,j=>j.getElements().filter(tt=>tt.type===Li));if(n)m.length?m=Mi(m):m.push((0,i.jsx)(Jr,{icon:(0,i.jsx)(Ti.Z,{}),children:n},"default_menu"));else return null;const w=l>=0&&!m[l].props.to;return(0,i.jsx)(_r,{value:{isOpen:!0,setOpen:()=>{}},children:(0,i.jsxs)(Qr.Provider,{value:{selectedMenuItemIndex:l,setSelectedMenuItemIndex:v},children:[(0,i.jsx)(ji,{label:m[l]&&m[l].props.label,open:w,onClose:()=>v(-1),children:m[l]&&m[l].props.children}),(0,i.jsx)(bi.Z,{className:s.root,"data-testid":"mobile-sidebar-root",component:"nav",children:m})]})})},qr=(0,Ye.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 Te;(function(r){r[r.Closed=0]="Closed",r[r.Idle=1]="Idle",r[r.Open=2]="Open"})(Te||(Te={}));const Ui=r=>{const{sidebarConfig:e}=(0,d.useContext)(Ee.kG),{openDelayMs:n=e.defaultOpenDelayMs,closeDelayMs:s=e.defaultCloseDelayMs,disableExpandOnHover:a,children:l}=r,v=qr({sidebarConfig:e}),m=(0,Vr.Z)(ie=>ie.breakpoints.down("md"),{noSsr:!0}),[w,j]=(0,d.useState)(Te.Closed),tt=(0,d.useRef)(),{isPinned:X,toggleSidebarPinState:ut}=(0,dr.Pf)(),nt=()=>{X||a||(tt.current&&(clearTimeout(tt.current),tt.current=void 0),w!==Te.Open&&!m&&(tt.current=window.setTimeout(()=>{tt.current=void 0,j(Te.Open)},n),j(Te.Idle)))},Ot=()=>{X||a||(tt.current&&(clearTimeout(tt.current),tt.current=void 0),w===Te.Idle?j(Te.Closed):w===Te.Open&&(tt.current=window.setTimeout(()=>{tt.current=void 0,j(Te.Closed)},s)))},$t=w===Te.Open&&!m||X,Bt=ie=>{ie?(j(Te.Open),ut()):(j(Te.Closed),ut())};return(0,i.jsxs)("nav",{style:{},"aria-label":"sidebar nav",children:[(0,i.jsx)(Fi,{}),(0,i.jsx)(_r,{value:{isOpen:$t,setOpen:Bt},children:(0,i.jsx)(on.Z,{className:v.root,"data-testid":"sidebar-root",onMouseEnter:a?()=>{}:nt,onFocus:a?()=>{}:nt,onMouseLeave:a?()=>{}:Ot,onBlur:a?()=>{}:Ot,children:(0,i.jsx)(on.Z,{className:fn()(v.drawer,v.drawerWidth,{[v.drawerOpen]:$t}),children:l})})})]})},$i=r=>{var e;const n=(0,Ee.$E)((e=r.sidebarOptions)!==null&&e!==void 0?e:{});var s;const a=(0,Ee.rW)((s=r.submenuOptions)!==null&&s!==void 0?s:{}),{children:l,disableExpandOnHover:v,openDelayMs:m,closeDelayMs:w}=r,{isMobile:j}=(0,dr.Pf)();return j?(0,i.jsx)(Bi,{children:l}):(0,i.jsx)(Ee.kG.Provider,{value:{sidebarConfig:n,submenuConfig:a},children:(0,i.jsx)(Ui,{openDelayMs:m,closeDelayMs:w,disableExpandOnHover:v,children:l})})};function Fi(){var r;const{sidebarConfig:e}=(0,d.useContext)(Ee.kG),{focusContent:n,contentRef:s}=(0,Gr.r)(),a=qr({sidebarConfig:e});return!((r=s)===null||r===void 0)&&r.current?(0,i.jsx)(A.Z,{onClick:n,variant:"contained",className:fn()(a.visuallyHidden),children:"Skip to content"}):null}var Wi=t(26739),go=t(1667),Ni=t(83543),Zi=t(59797),ts=t(98989),ur;const Ki=(0,Ye.Z)(r=>({root:{zIndex:1e3,position:"relative",overflow:"visible",width:r.spacing(7)+1},drawer:e=>{var n;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:(ur=(n=r.palette.navigation.submenu)===null||n===void 0?void 0:n.background)!==null&&ur!==void 0?ur:"#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"}),ki=r=>{const{isOpen:e}=lr(),{sidebarConfig:n,submenuConfig:s}=(0,d.useContext)(Ee.kG),a=e?n.drawerWidthOpen:n.drawerWidthClosed,l=Ki({left:a,submenuConfig:s}),{isHoveredOn:v}=(0,d.useContext)(Ee.Ag),[m,w]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{w(v)},[v]),(0,i.jsxs)(on.Z,{className:fn()(l.drawer,{[l.drawerOpen]:m}),children:[(0,i.jsx)(cr.Z,{variant:"h5",component:"span",className:l.title,children:r.title}),r.children]})};var zi=t(19126),es=t.n(zi);function ns(r,e,n=!1){const s=new URLSearchParams(e.search).toString(),a=es().parse(s),l=new URLSearchParams(r.search).toString(),v=es().parse(l),m=n?Sn.isEqual:Sn.isMatch;return(0,Sn.isEqual)(e.pathname,r.pathname)&&m(v,a)}var hr,fr;const _i=r=>(0,Ye.Z)(e=>{var n,s;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:(hr=(n=e.palette.navigation.navItem)===null||n===void 0?void 0:n.hoverBackground)!==null&&hr!==void 0?hr:"#404040"}},highlighted:{background:(fr=(s=e.palette.navigation.navItem)===null||s===void 0?void 0:s.hoverBackground)!==null&&fr!==void 0?fr:"#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 vo(r){return(0,d.useMemo)(()=>_i(r),[r])()}const Hi=(r,e)=>(0,po.v)(r.props.children,n=>{let s=!1;return n.getElements().forEach(({props:{to:a,dropdownItems:l}})=>{if(!s){var v;if(!((v=l)===null||v===void 0)&&v.length){l.forEach(({to:m})=>s=s||ns(e,(0,jn.i3)(m)));return}a&&(s=ns(e,(0,jn.i3)(a)))}}),s},[e.pathname]);function pr(r){return r.to===void 0}const Gi=d.createElement(ki).type,Vi=d.forwardRef(function({to:e,end:n,style:s,className:a,activeStyle:l,caseSensitive:v,activeClassName:m="active","aria-current":w="page",...j},tt){let{pathname:X}=(0,p.TH)(),{pathname:ut}=(0,p.WU)(e);v||(X=X.toLocaleLowerCase("en-US"),ut=ut.toLocaleLowerCase("en-US"));let nt=X===ut;!nt&&!n&&(nt=X.startsWith(`${ut}/`));const Ot=nt?w:void 0;return(0,i.jsx)(E.rU,{...j,to:e,ref:tt,"aria-current":Ot,style:{...s,...nt?l:void 0},className:fn()([typeof a!="function"?a:void 0,nt?m:void 0])})}),os=(0,d.forwardRef)((r,e)=>{const{icon:n,text:s,hasNotifications:a=!1,hasSubmenu:l=!1,disableHighlight:v=!1,onClick:m,noTrack:w,children:j,className:tt,...X}=r,{sidebarConfig:ut}=(0,d.useContext)(Ee.kG),nt=vo(ut),{isOpen:Ot}=lr(),$t=!Ot&&l?{display:"flex",marginLeft:"20px"}:{lineHeight:"0"},Bt=(0,i.jsxs)(on.Z,{style:$t,children:[(0,i.jsx)(n,{fontSize:"small"}),!Ot&&l?(0,i.jsx)(ts.Z,{fontSize:"small"}):(0,i.jsx)(i.Fragment,{})]}),ie=(0,i.jsx)(Wi.Z,{color:"secondary",variant:"dot",overlap:"circular",invisible:!a,className:fn()({[nt.closedItemIcon]:!Ot}),children:Bt}),Be=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(on.Z,{"data-testid":"login-button",className:nt.iconContainer,children:ie}),s&&(0,i.jsx)(cr.Z,{variant:"subtitle2",component:"span",className:nt.label,children:s}),(0,i.jsx)("div",{className:nt.secondaryAction,children:j})]}),Qe=Ot?Be:ie,De={onClick:m,className:fn()(tt,nt.root,Ot?nt.open:nt.closed,pr(r)&&nt.buttonItem,{[nt.highlightable]:!v})},Je=(0,Tr.z)(),{pathname:ue}=(0,p.WU)(!pr(r)&&r.to?r.to:""),Ne=(0,d.useCallback)(bn=>{var Ue;if(!w){const Se="click",Ze=s!=null?s:"Sidebar Item",pn=ue?{attributes:{to:ue}}:void 0;Je.captureEvent(Se,Ze,pn)}(Ue=m)===null||Ue===void 0||Ue(bn)},[Je,s,ue,w,m]);return pr(r)?(0,i.jsx)(A.Z,{role:"button","aria-label":s,...De,ref:e,onClick:Ne,children:Qe}):(0,i.jsx)(Vi,{...De,activeClassName:nt.selected,to:r.to?r.to:"",ref:e,"aria-label":s||r.to,...X,onClick:Ne,children:Qe})}),Yi=({children:r,...e})=>{const{sidebarConfig:n}=(0,d.useContext)(Ee.kG),s=vo(n),[a,l]=(0,d.useState)(!1),v=(0,p.TH)(),m=Hi(r,v),w=(0,Vr.Z)(ut=>ut.breakpoints.down("sm")),j=()=>{l(!0)},tt=()=>{l(!1)},X=()=>w?a?(0,i.jsx)(Zi.Z,{fontSize:"small",className:s.submenuArrow}):(0,i.jsx)(Ni.Z,{fontSize:"small",className:s.submenuArrow}):!a&&(0,i.jsx)(ts.Z,{fontSize:"small",className:s.submenuArrow});return(0,i.jsx)(Ee.Ag.Provider,{value:{isHoveredOn:a,setIsHoveredOn:l},children:(0,i.jsxs)("div",{"data-testid":"item-with-submenu",onMouseLeave:tt,onTouchStart:a?tt:j,onMouseEnter:j,className:fn()(a&&s.highlighted),children:[(0,i.jsx)(os,{hasSubmenu:!0,className:m?s.selected:"",...e,children:X()}),a&&r]})})},rs=(0,d.forwardRef)((r,e)=>{const[n]=(0,po.v)(r.children,s=>s.getElements().filter(a=>a.type===Gi));return n?(0,i.jsx)(Yi,{...r,children:n}):(0,i.jsx)(os,{...r,ref:e})});function Ba(r){const{sidebarConfig:e}=useContext(SidebarConfigContext),[n,s]=useState(""),a=vo(e),l=r.icon?r.icon:SearchIcon,v=()=>{r.onSearch(n),s("")},m=X=>{X.key==="Enter"&&(X.preventDefault(),v())},w=X=>{s(X.target.value)},j=X=>{X.preventDefault(),X.stopPropagation()},tt=X=>{v(),X.preventDefault()};return _jsx(Box,{className:a.searchRoot,children:_jsx(rs,{icon:l,to:r.to,onClick:tt,disableHighlight:!0,children:_jsx(TextField,{placeholder:"Search",value:n,onClick:j,onChange:w,onKeyDown:m,className:a.searchContainer,InputProps:{disableUnderline:!0,className:a.searchField},inputProps:{className:a.searchFieldHTMLInput}})})})}const Ua=(0,go.Z)("div")({flex:1},{name:"BackstageSidebarSpace"}),$a=(0,go.Z)("div")({height:8},{name:"BackstageSidebarSpacer"}),Qi=(0,go.Z)("hr")(({theme:r})=>({height:1,width:"100%",background:"#383838",border:"none",margin:r.spacing(1.2,0)}),{name:"BackstageSidebarDivider"}),Ji=r=>({overflowY:"auto","&::-webkit-scrollbar":{backgroundColor:r.palette.background.default,width:"5px",borderRadius:"5px"},"&::-webkit-scrollbar-thumb":{backgroundColor:r.palette.text.secondary,borderRadius:"5px"}}),Fa=(0,go.Z)("div")(({theme:r})=>{const e=Ji(r);return{flex:"0 1 auto",overflowX:"hidden",width:"calc(100% - 5px)",minHeight:"48px",overflowY:"hidden","@media (hover: none)":e,"&:hover":e}}),Wa=()=>{const{sidebarConfig:r}=useContext(SidebarConfigContext),e=vo(r),{isOpen:n,setOpen:s}=useSidebarOpenState();if(useMediaQuery(v=>v.breakpoints.down("md"),{noSsr:!0}))return null;const l=()=>{s(!n)};return _jsx(Button,{role:"button",onClick:l,className:e.expandButton,"aria-label":"Expand Sidebar","data-testid":"sidebar-expand-button",children:_jsx(Box,{className:e.arrows,children:n?_jsx(DoubleArrowLeft,{}):_jsx(DoubleArrowRight,{})})})},Xi=(0,Ye.Z)({root:{width:Ee.po.drawerWidthClosed,height:3*Ee.po.logoHeight,display:"flex",flexFlow:"row nowrap",alignItems:"center",marginBottom:-14},link:{width:Ee.po.drawerWidthClosed,marginLeft:24}}),qi=()=>{const r=Xi(),{isOpen:e}=lr();return(0,i.jsx)("div",{className:r.root,children:(0,i.jsx)(Hr.rU,{to:"/docs/default/component/local/",underline:"none",className:r.link,children:e?(0,i.jsx)(Ci,{}):(0,i.jsx)(Oi,{})})})},ta=({children:r})=>(0,i.jsxs)(Gr.t,{children:[(0,i.jsxs)($i,{children:[(0,i.jsx)(qi,{}),(0,i.jsx)(Qi,{}),(0,i.jsx)(rs,{icon:Ei.Z,to:"/docs/default/component/local",text:"Docs Preview"})]}),r]});var ea=t(80030),na=t(32388),oa=t(4142),ra=t(65386),sa=t(45902);const ia=(0,Ye.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 We;(function(r){r.LIGHT="light",r.DARK="dark"})(We||(We={}));const aa=()=>{const r=(0,Ln.h_)(to),e=ia(),[n,s]=(0,d.useState)(r.getActiveThemeId()===We.DARK?We.DARK:We.LIGHT),a={[We.LIGHT]:{icon:oa.Z,title:"Dark theme"},[We.DARK]:{icon:na.Z,title:"Light theme"}},{title:l,icon:v}=a[n],m=()=>{s(w=>{const j=w===We.LIGHT?We.DARK:We.LIGHT;return r.setActiveThemeId(j),j})};return(0,i.jsx)(on.Z,{display:"flex",alignItems:"center",mr:2,children:(0,i.jsx)(ea.ZP,{title:l,arrow:!0,children:(0,i.jsx)(Yr.Z,{size:"small",onClick:m,children:(0,i.jsx)(v,{className:e.headerIcon})})})})},la=()=>(0,i.jsxs)(g.I6,{children:[(0,i.jsx)(ra.S,{}),(0,i.jsx)(sa.F,{withSearch:!1})]}),ca=(0,i.jsx)(la,{}),ss=ti({apis:pi,configLoader:yi,plugins:Object.values(o)}),da=ss.getProvider(),ua=ss.getRouter(),ha=g.s4.provide((0,f.KY)({name:"ThemeToggleAddon",component:aa,location:C.o.Header})),fa=(0,i.jsxs)(ei,{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)(ui,{})}),(0,i.jsx)(p.AW,{path:"/docs",element:(0,i.jsx)(g.Jl,{}),children:(0,i.jsx)(c.u,{})}),(0,i.jsxs)(p.AW,{path:"/docs/:namespace/:kind/:name/*",element:(0,i.jsx)(g.I6,{}),children:[ca,(0,i.jsx)(f.DR,{children:(0,i.jsx)(ha,{})})]})]});var pa=()=>(0,i.jsx)(da,{children:(0,i.jsx)(ua,{children:(0,i.jsx)(ta,{children:fa})})});S.render((0,i.jsx)(pa,{}),document.getElementById("root"))},29651:function(Y,R,t){"use strict";t.d(R,{CT:function(){return d},Vt:function(){return S}});var o=t(2784),i=t(96087);function d(g){return(0,i.u)(g,()=>(0,o.createContext)(void 0))}function S(g){return(0,o.useContext)(d(g))}function p(g){return{set(c){globalThis[`__@backstage/${g}__`]=createContext(createVersionedValueMap(c))},reset(){delete globalThis[`__@backstage/${g}__`]}}}},68993:function(Y,R,t){"use strict";t.d(R,{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(Y,R,t){"use strict";t.d(R,{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,g){const c=d(p);let f=i[c];return f||(f=g(),i[c]=f,f)}},88624:function(Y,R,t){"use strict";t.d(R,{A:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"plugin.catalog.service"})},36802:function(Y,R,t){"use strict";t.d(R,{p:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"catalog-react.starred-entities"})},30389:function(Y,R,t){"use strict";t.d(R,{_i:function(){return P}});var o=t(52322),i=t(2784),d=t(41156),S=t(60364),p=t(77277),g=t(4190),c=t(62774),f=t(90436),C=t(60905),A=t(36444);const O=E=>{var M,b;const L=(0,d.Z)(at=>{var J;return at.breakpoints.down((b=(J=E.options)===null||J===void 0?void 0:J.drawerBreakpoint)!==null&&b!==void 0?b:"md")}),$=(0,S.Z)(),[W,y]=(0,i.useState)(!1);var N;return L?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.Z,{style:{marginTop:$.spacing(1),marginLeft:$.spacing(1)},onClick:()=>y(!0),startIcon:(0,o.jsx)(A.Z,{}),children:"Filters"}),(0,o.jsx)(g.ZP,{open:W,onClose:()=>y(!1),anchor:(N=(M=E.options)===null||M===void 0?void 0:M.drawerAnchor)!==null&&N!==void 0?N:"left",disableAutoFocus:!0,keepMounted:!0,variant:"temporary",children:(0,o.jsxs)(c.Z,{m:2,children:[(0,o.jsx)(f.Z,{variant:"h6",component:"h2",style:{marginBottom:$.spacing(1)},children:"Filters"}),E.children]})})]}):(0,o.jsx)(C.Z,{item:!0,lg:2,children:E.children})},x=E=>(0,o.jsx)(C.Z,{item:!0,xs:12,lg:10,children:E.children}),P=E=>(0,o.jsx)(C.Z,{container:!0,style:{position:"relative"},children:E.children});P.Filters=O,P.Content=x},77605:function(Y,R,t){"use strict";t.d(R,{K:function(){return K}});var o=t(52322),i=t(62774),d=t(90436),S=t(38016),p=t(88013),g=t(2784),c=t(44394),f=t(64279),C=t(88624),A=t(21324),O=t(5806),x=t(19996),P=t(25505);const E=(0,o.jsx)(P.Z,{fontSize:"small"}),M=(0,o.jsx)(x.Z,{fontSize:"small"});function b({selected:z}){return(0,o.jsx)(A.Z,{icon:E,checkedIcon:M,checked:z})}const L=(0,g.memo)(z=>{var Q;const{selected:st,value:Ct,availableOptions:Et,showCounts:mt}=z,bt=mt?`${Ct} (${(Q=Et)===null||Q===void 0?void 0:Q[Ct]})`:Ct;return(0,o.jsx)(O.Z,{control:(0,o.jsx)(b,{selected:st}),label:bt,onClick:gt=>gt.preventDefault()})});var $=t(79692),W=t(86619),y=t(72779),N=t.n(y);const at=(0,$.Z)({input:{}},{name:"CatalogReactEntityAutocompletePickerInput"});function J(z){const Q=at();return(0,o.jsx)(W.Z,{variant:"outlined",...z,className:N()(Q.input,z.className)})}var G=t(25942);function K(z){var Q;const{label:st,name:Ct,path:Et,showCounts:mt,Filter:bt,InputProps:gt,initialSelectedOptions:Pt=[]}=z,{updateFilters:lt,filters:V,queryParameters:{[Ct]:k}}=(0,G.wp)(),et=(0,c.h_)(C.A),{value:it}=(0,f.default)(async()=>{var vt;const It=Et,{facets:wt}=await et.getEntityFacets({facets:[It],filter:(vt=V.kind)===null||vt===void 0?void 0:vt.getCatalogFilters()});return Object.fromEntries(wt[It].map(({value:Lt,count:kt})=>[Lt,kt]))},[V.kind]),ct=(0,g.useMemo)(()=>[k].flat().filter(Boolean),[k]);var F;const[H,ft]=(0,g.useState)(ct.length?ct:(F=(Q=V[Ct])===null||Q===void 0?void 0:Q.values)!==null&&F!==void 0?F:Pt);(0,g.useEffect)(()=>{ct.length&&ft(ct)},[ct]);const ht=Object.keys(it!=null?it:{}),dt=H.length&&ht.length;(0,g.useEffect)(()=>{lt({[Ct]:dt?new bt(H):void 0})},[Ct,dt,H,bt,lt]);const At=V[Ct];return At&&typeof At=="object"&&!("values"in At)||!ht.length||ht.length<=1?null:(0,o.jsx)(i.Z,{pb:1,pt:1,children:(0,o.jsxs)(d.Z,{variant:"button",component:"label",children:[st,(0,o.jsx)(p.ZP,{multiple:!0,disableCloseOnSelect:!0,options:ht,value:H,onChange:(vt,It)=>ft(It),renderOption:(vt,{selected:It})=>(0,o.jsx)(L,{selected:It,value:vt,availableOptions:it,showCounts:!!mt}),size:"small",popupIcon:(0,o.jsx)(S.Z,{"data-testid":`${String(Ct)}-picker-expand`}),renderInput:vt=>(0,o.jsx)(J,{...vt,...gt})})]})})}},63833:function(Y,R,t){"use strict";t.d(R,{d:function(){return lt}});var o=t(52322),i=t(74314),d=t(79692),S=t(62774),p=t(90436),g=t(5806),c=t(21324),f=t(86619),C=t(19996),A=t(25505),O=t(38016),x=t(88013),P=t(2784),E=t(25942),M=t(4967),b=t(6232),L=t(98685),$=t(62367),W=t(86540),y=t(44394),N=t(69294),at=t(88624);function J({enabled:V}){const k=(0,y.h_)(at.A),[et]=(0,P.useState)(async()=>{if(!V)return[];const it="relations.ownedBy";return k.getEntityFacets({facets:[it]}).then(ct=>ct.facets[it].map(F=>F.value).map(F=>{const{kind:H,name:ft,namespace:ht}=(0,i.of)(F);return{apiVersion:"backstage.io/v1beta1",kind:H,metadata:{name:ft,namespace:ht}}}).sort((F,H)=>(F.metadata.namespace||"").localeCompare(H.metadata.namespace||"","en-US")||F.metadata.name.localeCompare(H.metadata.name,"en-US")||F.kind.localeCompare(H.kind,"en-US"))).catch(()=>[])});return(0,N.default)(async(it,ct)=>{var F;const H=await et;if(!H)return{items:[]};var ft;const ht=(ft=(F=ct)===null||F===void 0?void 0:F.limit)!==null&&ft!==void 0?ft:20,{text:dt,start:At}=G(it),vt=H.filter(wt=>Q(dt,wt)),It=At+ht;return{items:vt.slice(0,It),...z({entities:vt,limit:It,payload:{text:dt,start:It}})}},[et],{loading:!0,value:{items:[]}})}function G(V){return K(V)&&V.cursor?JSON.parse(atob(V.cursor)):{text:V.text||"",start:0}}function K(V){return!!V.cursor}function z({entities:V,limit:k,payload:et}){return V.length>k?{cursor:btoa(JSON.stringify(et))}:{}}function Q(V,k){var et;const it=V.trim();return k.kind.includes(it)||((et=k.metadata.namespace)===null||et===void 0?void 0:et.includes(it))||k.metadata.name.includes(it)}function st(){const V=(0,y.h_)(at.A);return(0,N.default)(async(k,et)=>{var it;const ct=k,F=k;var H;const ft=(H=(it=et)===null||it===void 0?void 0:it.limit)!==null&&H!==void 0?H:20;if(F.cursor){const dt=await V.queryEntities({cursor:F.cursor,limit:ft});return{cursor:dt.pageInfo.nextCursor,items:[...F.items,...dt.items]}}const ht=await V.queryEntities({fullTextFilter:{term:ct.text||"",fields:["metadata.name","kind","spec.profile.displayname","metadata.title"]},filter:{kind:["User","Group"]},orderFields:[{field:"metadata.name",order:"asc"}],limit:ft});return{cursor:ht.pageInfo.nextCursor,items:ht.items}},[],{loading:!0})}var Ct=t(21638);function Et({mode:V,initialSelectedOwnersRefs:k}){const et=V==="owners-only",it=st(),ct=J({enabled:et}),[F,H]=et?ct:it;return[F,H,mt({enabled:!et,initialSelectedOwnersRefs:k})]}function mt({enabled:V,initialSelectedOwnersRefs:k}){const et=(0,P.useRef)({}),it=(0,y.h_)(at.A),[,ct]=(0,N.default)(async()=>{(await it.getEntitiesByRefs({entityRefs:k})).items.forEach(H=>{H&&(et.current[(0,i.eE)(H)]=H)})},[]);return(0,Ct.n)(()=>{V&&k.length>0&&ct()}),{getEntity:F=>et.current[F],setEntity:F=>{et.current[(0,i.eE)(F)]=F}}}const bt=(0,d.Z)({input:{}},{name:"CatalogReactEntityOwnerPicker"}),gt=(0,o.jsx)(A.Z,{fontSize:"small"}),Pt=(0,o.jsx)(C.Z,{fontSize:"small"}),lt=V=>{var k,et,it;const ct=bt(),{mode:F="owners-only"}=V||{},{updateFilters:H,filters:ft,queryParameters:{owners:ht}}=(0,E.wp)(),[dt,At]=(0,P.useState)(""),vt=(0,P.useMemo)(()=>[ht].flat().filter(Boolean),[ht]);var It;const[wt,Lt]=(0,P.useState)(vt.length?vt:(It=(k=ft.owners)===null||k===void 0?void 0:k.values)!==null&&It!==void 0?It:[]),[{value:kt,loading:Qt},ee,Zt]=Et({mode:F,initialSelectedOwnersRefs:wt});(0,b.b)(()=>ee({text:dt}),[dt,ee],250);const be=((et=kt)===null||et===void 0?void 0:et.items)||[];return(0,P.useEffect)(()=>{if(vt.length){const Wt=new M.rf(vt);Lt(Wt.values)}},[vt]),(0,P.useEffect)(()=>{H({owners:wt.length?new M.rf(wt):void 0})},[wt,H]),["user","group"].includes(((it=ft.kind)===null||it===void 0?void 0:it.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)(x.ZP,{multiple:!0,disableCloseOnSelect:!0,loading:Qt,options:be,value:wt,getOptionSelected:(Wt,zt)=>typeof zt=="string"?(0,i.eE)(Wt)===zt:Wt===zt,getOptionLabel:Wt=>{const zt=typeof Wt=="string"?Zt.getEntity(Wt)||(0,i.of)(Wt,{defaultKind:"group",defaultNamespace:"default"}):Wt;return(0,W.w)(zt,(0,W.$)(zt))},onChange:(Wt,zt)=>{At(""),Lt(zt.map(ae=>{const he=typeof ae=="string"?ae:(0,i.eE)(ae);return typeof ae!="string"&&Zt.setEntity(ae),he}))},filterOptions:Wt=>Wt,renderOption:(Wt,{selected:zt})=>{const ae=Wt.kind.toLocaleLowerCase("en-US")==="group";return(0,o.jsx)(g.Z,{control:(0,o.jsx)(c.Z,{icon:gt,checkedIcon:Pt,checked:zt}),onClick:he=>he.preventDefault(),label:(0,o.jsxs)(S.Z,{display:"flex",flexWrap:"wrap",alignItems:"center",children:[ae?(0,o.jsx)($.Z,{fontSize:"small"}):(0,o.jsx)(L.Z,{fontSize:"small"}),"\xA0",(0,W.w)(Wt,(0,W.$)(Wt,{defaultKind:Wt.kind}))]})})},size:"small",popupIcon:(0,o.jsx)(O.Z,{"data-testid":"owner-picker-expand"}),renderInput:Wt=>(0,o.jsx)(f.Z,{...Wt,className:ct.input,onChange:zt=>{At(zt.currentTarget.value)},variant:"outlined"}),ListboxProps:{onScroll:Wt=>{var zt;const ae=Wt.currentTarget;Math.abs(ae.scrollHeight-ae.clientHeight-ae.scrollTop)<1&&(!((zt=kt)===null||zt===void 0)&&zt.cursor)&&ee({items:kt.items,cursor:kt.cursor})},"data-testid":"owner-picker-listbox"}})]})})}},41748:function(Y,R,t){"use strict";t.d(R,{d:function(){return A}});var o=t(52322),i=t(74314),d=t(34106),S=t(2784),p=t(36434),g=t(86540),c=t(98864),f=t(37321),C=t(80030);const A=(0,S.forwardRef)((O,x)=>{var P;const{entityRef:E,defaultKind:M,title:b,children:L,...$}=O,W=(0,f.t)(p.w);let y,N,at;if(typeof E=="string"){const Q=(0,i.of)(E);y=Q.kind,N=Q.namespace,at=Q.name}else"metadata"in E?(y=E.kind,N=E.metadata.namespace,at=E.metadata.name):(y=E.kind,N=E.namespace,at=E.name);y=y.toLocaleLowerCase("en-US");var J;N=(J=(P=N)===null||P===void 0?void 0:P.toLocaleLowerCase("en-US"))!==null&&J!==void 0?J:d.zG;const G={kind:y,namespace:N,name:at},K=(0,g.$)({kind:y,namespace:N,name:at},{defaultKind:M}),z=(0,o.jsxs)(c.rU,{...$,ref:x,to:W(G),children:[L,!L&&(b!=null?b:K)]});return b?(0,o.jsx)(C.ZP,{title:K,children:z}):z})},68138:function(Y,R,t){"use strict";t.d(R,{r:function(){return O}});var o=t(52322),i=t(2784),d=t(41748),S=t(74314),p=t(55015),g=t(74359),c=t(64279),f=t(88624),C=t(44394);function A(x){const{entityRefs:P,defaultKind:E,getTitle:M,...b}=x,L=(0,C.h_)(f.A),{value:$=new Array,loading:W,error:y}=(0,c.default)(async()=>{const N=P.reduce((J,G)=>typeof G=="object"&&"metadata"in G?J:[...J,(0,S.of)(G)],new Array),at=P.filter(J=>typeof J=="object"&&"metadata"in J);return N.length>0?[...(await L.getEntities({filter:N.map(J=>({kind:J.kind,"metadata.namespace":J.namespace,"metadata.name":J.name}))})).items,...at]:at},[P]);return W?(0,o.jsx)(p.E,{}):y?(0,o.jsx)(g.y,{error:y}):(0,o.jsx)(o.Fragment,{children:$.map((N,at)=>(0,o.jsxs)(i.Fragment,{children:[at>0&&", ",(0,o.jsx)(d.d,{...b,defaultKind:E,entityRef:N,title:M(N)})]},at))})}function O(x){const{entityRefs:P,defaultKind:E,fetchEntities:M,getTitle:b,...L}=x;return M?(0,o.jsx)(A,{...L,defaultKind:E,entityRefs:P,getTitle:b}):(0,o.jsx)(o.Fragment,{children:P.map(($,W)=>(0,o.jsxs)(i.Fragment,{children:[W>0&&", ",(0,o.jsx)(d.d,{...L,defaultKind:E,entityRef:$,title:b?b($):void 0})]},W))})}},86540:function(Y,R,t){"use strict";t.d(R,{$:function(){return S},w:function(){return p}});var o=t(34106),i=t(72579),d=t.n(i);function S(g,c){var f,C;const A=(f=c)===null||f===void 0?void 0:f.defaultKind;let O,x,P;if("metadata"in g?(O=g.kind,x=g.metadata.namespace,P=g.metadata.name):(O=g.kind,x=g.namespace,P=g.name),(x===void 0||x==="")&&(x=o.zG),((C=c)===null||C===void 0?void 0:C.defaultNamespace)!==void 0){var E;((E=c)===null||E===void 0?void 0:E.defaultNamespace)===x&&(x=void 0)}else x===o.zG&&(x=void 0);return O=O.toLocaleLowerCase("en-US"),O=A&&A.toLocaleLowerCase("en-US")===O?void 0:O,`${O?`${O}:`:""}${x?`${x}/`:""}${P}`}function p(g,c){for(const f of["spec.profile.displayName","metadata.title"]){const C=d()(g,f);if(C&&typeof C=="string")return C}return c}},97894:function(Y,R,t){"use strict";t.d(R,{x:function(){return c}});var o=t(52322),i=t(79692),d=t(2784),S=t(4967),p=t(77605);const g=(0,i.Z)({input:{}},{name:"CatalogReactEntityTagPicker"}),c=f=>{const C=g();return(0,o.jsx)(p.K,{label:"Tags",name:"tags",path:"metadata.tags",Filter:S.Cu,showCounts:f.showCounts,InputProps:{className:C.input}})}},23433:function(Y,R,t){"use strict";t.d(R,{E:function(){return G}});var o=t(52322),i=t(44394),d=t(6542),S=t(79692),p=t(94339),g=t(90436),c=t(11776),f=t(12231),C=t(86136),A=t(49378),O=t(9520),x=t(47603),P=t(11640),E=t(76635),M=t.n(E),b=t(2784),L=t(4967),$=t(25942),W=t(42870),y=t(81269),N=t(64039);const at=(0,S.Z)(K=>({root:{backgroundColor:"rgba(0, 0, 0, .11)",boxShadow:"none",margin:K.spacing(1,0,1,0)},title:{margin:K.spacing(1,0,0,1),textTransform:"uppercase",fontSize:12,fontWeight:"bold"},listIcon:{minWidth:30,color:K.palette.text.primary},menuItem:{minHeight:K.spacing(6)},groupWrapper:{margin:K.spacing(1,1,2,1)}}),{name:"CatalogReactUserListPicker"});function J(K){return[{name:"Personal",items:[{id:"owned",label:"Owned",icon:x.Z},{id:"starred",label:"Starred",icon:P.Z}]},{name:K!=null?K:"Company",items:[{id:"all",label:"All"}]}]}const G=K=>{const{initialFilter:z,availableFilters:Q}=K,st=at(),Ct=(0,i.h_)(d.D);var Et;const mt=(Et=Ct.getOptionalString("organization.name"))!==null&&Et!==void 0?Et:"Company",{filters:bt,updateFilters:gt,backendEntities:Pt,queryParameters:{kind:lt,user:V},loading:k}=(0,$.wp)(),et=["starred","all"],it=J(mt).map(Qt=>({...Qt,items:Qt.items.filter(({id:ee})=>["group","user"].some(Zt=>Zt===lt)?et.includes(ee):!Q||Q.includes(ee))})).filter(({items:Qt})=>!!Qt.length),{isStarredEntity:ct}=(0,W.C)(),{isOwnedEntity:F,loading:H}=(0,y.Z)(),ft=k||H,ht=(0,b.useMemo)(()=>new L.IZ("owned",F,ct),[F,ct]),dt=(0,b.useMemo)(()=>new L.IZ("starred",F,ct),[F,ct]),At=(0,b.useMemo)(()=>[V].flat()[0],[V]),[vt,It]=(0,b.useState)(At!=null?At:z),wt=(0,b.useMemo)(()=>Pt.filter((0,N.G)((0,E.compact)(Object.values({...bt,user:void 0})))),[bt,Pt]),Lt=(0,b.useMemo)(()=>({all:wt.length,starred:wt.filter(Qt=>dt.filterEntity(Qt)).length,owned:wt.filter(Qt=>ht.filterEntity(Qt)).length}),[wt,dt,ht]);(0,b.useEffect)(()=>{At&&It(At)},[At]),(0,b.useEffect)(()=>{!ft&&vt&&vt!=="all"&&Lt[vt]===0&&It("all")},[ft,Lt,vt,It]),(0,b.useEffect)(()=>{gt({user:vt?new L.IZ(vt,F,ct):void 0})},[vt,F,ct,gt]);var kt;return(0,o.jsx)(p.Z,{className:st.root,children:it.map(Qt=>(0,o.jsxs)(b.Fragment,{children:[(0,o.jsx)(g.Z,{variant:"subtitle2",component:"span",className:st.title,children:Qt.name}),(0,o.jsx)(p.Z,{className:st.groupWrapper,children:(0,o.jsx)(c.Z,{disablePadding:!0,dense:!0,role:"menu","aria-label":Qt.name,children:Qt.items.map(ee=>{var Zt;return(0,o.jsxs)(f.Z,{role:"none presentation",button:!0,divider:!0,onClick:()=>It(ee.id),selected:ee.id===((Zt=bt.user)===null||Zt===void 0?void 0:Zt.value),className:st.menuItem,disabled:Lt[ee.id]===0,"data-testid":`user-picker-${ee.id}`,tabIndex:0,ContainerProps:{role:"menuitem"},children:[ee.icon&&(0,o.jsx)(C.Z,{className:st.listIcon,children:(0,o.jsx)(ee.icon,{fontSize:"small"})}),(0,o.jsx)(A.Z,{children:(0,o.jsxs)(g.Z,{variant:"body1",children:[ee.label," "]})}),(0,o.jsx)(O.Z,{children:(kt=Lt[ee.id])!==null&&kt!==void 0?kt:"-"})]},ee.id)})})})]},Qt.name))})}},4967:function(Y,R,t){"use strict";t.d(R,{A5:function(){return E},Bf:function(){return g},Cu:function(){return c},IZ:function(){return x},Qe:function(){return O},mM:function(){return P},rf:function(){return C},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(b){(0,o._)(this,"value",void 0),this.value=b}}class g{getTypes(){return Array.isArray(this.value)?this.value:[this.value]}getCatalogFilters(){return{"spec.type":this.getTypes()}}toQueryValue(){return this.getTypes()}constructor(b){(0,o._)(this,"value",void 0),this.value=b}}class c{filterEntity(b){var L;return this.values.every($=>((L=b.metadata.tags)!==null&&L!==void 0?L:[]).includes($))}toQueryValue(){return this.values}constructor(b){(0,o._)(this,"values",void 0),this.values=b}}class f{filterEntity(b){const L=this.toUpperArray(this.value.split(/\s/)),$=this.toUpperArray([b.metadata.tags]),W=this.toUpperArray([b.metadata.name,b.metadata.title]);for(const y of L)if($.every(N=>N!==y)&&W.every(N=>!N.includes(y)))return!1;return!0}toUpperArray(b){return b.flat().filter(L=>Boolean(L)).map(L=>L.toLocaleUpperCase("en-US"))}constructor(b){_define_property(this,"value",void 0),this.value=b}}class C{filterEntity(b){return this.values.some(L=>(0,S.h)(b,i.S4).some($=>(0,d.eE)($)===L))}toQueryValue(){return this.values}constructor(b){(0,o._)(this,"values",void 0),this.values=b.reduce((L,$)=>{try{return L.push((0,d.eE)((0,d.of)($,{defaultKind:"Group"}))),L}catch{return L}},[])}}class A{filterEntity(b){return this.values.some(L=>{var $;return(($=b.spec)===null||$===void 0?void 0:$.lifecycle)===L})}toQueryValue(){return this.values}constructor(b){(0,o._)(this,"values",void 0),this.values=b}}class O{filterEntity(b){return this.values.some(L=>b.metadata.namespace===L)}toQueryValue(){return this.values}constructor(b){(0,o._)(this,"values",void 0),this.values=b}}class x{filterEntity(b){switch(this.value){case"owned":return this.isOwnedEntity(b);case"starred":return this.isStarredEntity(b);default:return!0}}toQueryValue(){return this.value}constructor(b,L,$){(0,o._)(this,"value",void 0),(0,o._)(this,"isOwnedEntity",void 0),(0,o._)(this,"isStarredEntity",void 0),this.value=b,this.isOwnedEntity=L,this.isStarredEntity=$}}class P{filterEntity(b){var L;const $=(L=b.metadata.annotations)===null||L===void 0?void 0:L["backstage.io/orphan"];return $!==void 0&&this.value.toString()===$}constructor(b){(0,o._)(this,"value",void 0),this.value=b}}class E{filterEntity(b){var L,$,W;const y=((W=b)===null||W===void 0||($=W.status)===null||$===void 0||(L=$.items)===null||L===void 0?void 0:L.length)>0;return y!==void 0&&this.value===y}constructor(b){(0,o._)(this,"value",void 0),this.value=b}}},25942:function(Y,R,t){"use strict";t.d(R,{UO:function(){return M},wp:function(){return b}});var o=t(52322),i=t(76635),d=t.n(i),S=t(19126),p=t.n(S),g=t(2784),c=t(73557),f=t(69294),C=t(48760),A=t(90736),O=t(88624),x=t(64039),P=t(44394);const E=(0,g.createContext)(void 0),M=L=>{const $=(0,A.default)(),W=(0,P.h_)(O.A),[y,N]=(0,g.useState)({}),at=(0,c.TH)();var J;const G=(0,g.useMemo)(()=>(J=p().parse(at.search,{ignoreQueryPrefix:!0}).filters)!==null&&J!==void 0?J:{},[at]),[K,z]=(0,g.useState)(()=>({appliedFilters:{},entities:[],backendEntities:[]})),[{loading:Q,error:st},Ct]=(0,f.default)(async()=>{const bt=(0,i.compact)(Object.values(y)),gt=(0,x.G)(bt),Pt=(0,x.w)(bt),lt=(0,x.w)((0,i.compact)(Object.values(K.appliedFilters))),V=Object.keys(y).reduce((et,it)=>{var ct;const F=y[it];return!((ct=F)===null||ct===void 0)&&ct.toQueryValue&&(et[it]=F.toQueryValue()),et},{});if((0,i.isEqual)(lt,Pt))z({appliedFilters:y,backendEntities:K.backendEntities,entities:K.backendEntities.filter(gt)});else{const et=await W.getEntities({filter:Pt});z({appliedFilters:y,backendEntities:et.items,entities:et.items.filter(gt)})}if($()){var k;const et=p().parse(at.search,{ignoreQueryPrefix:!0}),it=p().stringify({...et,filters:V},{addQueryPrefix:!0,arrayFormat:"repeat"}),ct=`${window.location.pathname}${it}`;(k=window.history)===null||k===void 0||k.replaceState(null,document.title,ct)}},[W,G,y,K],{loading:!0});(0,C.Z)(Ct,10,[y]);const Et=(0,g.useCallback)(bt=>{N(gt=>{const Pt=typeof bt=="function"?bt(gt):bt;return{...gt,...Pt}})},[]),mt=(0,g.useMemo)(()=>({filters:K.appliedFilters,entities:K.entities,backendEntities:K.backendEntities,updateFilters:Et,queryParameters:G,loading:Q,error:st}),[K,Et,G,Q,st]);return(0,o.jsx)(E.Provider,{value:mt,children:L.children})};function b(){const L=(0,g.useContext)(E);if(!L)throw new Error("useEntityList must be used within EntityListProvider");return L}},81269:function(Y,R,t){"use strict";t.d(R,{Z:function(){return f}});var o=t(8709),i=t(74314),d=t(44394),S=t(77186),p=t(2784),g=t(64279),c=t(75435);function f(){const C=(0,d.h_)(S.$),{loading:A,value:O}=(0,g.default)(async()=>{const{ownershipEntityRefs:P}=await C.getBackstageIdentity();return P},[]),x=(0,p.useMemo)(()=>{const P=new Set(O!=null?O:[]);return E=>{const M=(0,c.h)(E,o.S4).map(i.eE);for(const b of M)if(P.has(b))return!0;return!1}},[O]);return(0,p.useMemo)(()=>({loading:A,isOwnedEntity:x}),[A,x])}},42870:function(Y,R,t){"use strict";t.d(R,{C:function(){return c}});var o=t(74314),i=t(44394),d=t(2784),S=t(72164),p=t(36802);function g(f){return typeof f=="string"?f:(0,o.eE)(f)}function c(){const f=(0,i.h_)(p.p),C=(0,S.Z)(f.starredEntitie$(),new Set),A=(0,d.useCallback)(x=>C.has(g(x)),[C]),O=(0,d.useCallback)(x=>f.toggleStarred(g(x)).then(),[f]);return{starredEntities:C,toggleStarredEntity:O,isStarredEntity:A}}},36434:function(Y,R,t){"use strict";t.d(R,{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 g,c;return{kind:p.kind.toLocaleLowerCase("en-US"),namespace:(c=(g=p.metadata.namespace)===null||g===void 0?void 0:g.toLocaleLowerCase("en-US"))!==null&&c!==void 0?c:DEFAULT_NAMESPACE,name:p.metadata.name}}},64039:function(Y,R,t){"use strict";t.d(R,{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(Y,R,t){"use strict";t.d(R,{h:function(){return i}});var o=t(74314);function i(d,S,p){var g,c,f;let C=((c=d)===null||c===void 0||(g=c.relations)===null||g===void 0?void 0:g.filter(A=>A.type===S).map(A=>(0,o.of)(A.targetRef)))||[];return!((f=p)===null||f===void 0)&&f.kind&&(C=C.filter(A=>A.kind.toLocaleLowerCase("en-US")===p.kind.toLocaleLowerCase("en-US"))),C}},65524:function(Y,R,t){"use strict";t.d(R,{yw:function(){return f},ql:function(){return A},_Z:function(){return O},jU:function(){return C}});var o=t(87612),i=t(92918);let d=i.K,S=d;class p{toString(){return`routeRef{type=external,id=${this.id}}`}constructor(P,E,M){(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=P,this.params=E,this.optional=M,this[d]="external"}}function g(x){var P;return new p(x.id,(P=x.params)!==null&&P!==void 0?P:[],Boolean(x.optional))}var c=t(30283);const f=g({id:"create-component",optional:!0}),C=g({id:"view-techdoc",optional:!0,params:["namespace","kind","name"]}),A=g({id:"create-from-template",optional:!0,params:["namespace","templateName"]}),O=(0,c.N)({id:"catalog"})},76079:function(Y,R,t){"use strict";t.d(R,{F:function(){return p}});var o=t(52322),i=t(2784),d=t(79692);const S=(0,d.Z)(()=>({highlight:{}}),{name:"BackstageHighlightedSearchResultText"}),p=g=>{const{text:c,preTag:f,postTag:C}=g,A=S(),O=(0,i.useMemo)(()=>c.split(new RegExp(`(${f}.+?${C})`)),[C,f,c]);return(0,o.jsx)(o.Fragment,{children:O.map((x,P)=>x.includes(f)?(0,o.jsx)("mark",{className:A.highlight,children:x.replace(new RegExp(`${f}|${C}`,"g"),"")},P):x)})}},53945:function(Y,R,t){"use strict";t.d(R,{E5:function(){return C}});var o=t(52322),i=t(2784),d=t(62369),S=t(82963),p=t(38402);const g="search.results.list.items.extensions.v1",c=(x,P)=>{for(const M of x){var E;if(!(!isValidElement(M)||!(!((E=getComponentData(M,g))===null||E===void 0)&&E(P))))return cloneElement(M,{rank:P.rank,highlight:P.highlight,result:P.document,...M.props})}return null},f=x=>{const{rank:P,result:E,noTrack:M,children:b,alignItems:L="flex-start",...$}=x,W=(0,d.z)(),y=(0,i.useCallback)(()=>{M||E&&W.captureEvent("discover",E.title,{attributes:{to:E.location},value:P})},[P,E,M,W]);return(0,o.jsx)(p.Z,{divider:!0,alignItems:L,onClickCapture:y,...$,children:b})},C=x=>{const{name:P,component:E,predicate:M=()=>!0}=x;return(0,S.YO)({name:P,component:{lazy:()=>E().then(b=>L=>(0,o.jsx)(f,{rank:L.rank,result:L.result,noTrack:L.noTrack,children:(0,i.createElement)(b,L)}))},data:{[g]:M}})},A=x=>{const P=useElementFilter(x,E=>E.selectByComponentData({key:g}).getElements(),[x]);return useCallback((E,M)=>{const b=c(P,E);return _jsx(Fragment,{children:b!=null?b:_jsx(f,{rank:E.rank,result:E.document,children:_jsx(DefaultResultListItem,{rank:E.rank,highlight:E.highlight,result:E.document})})},M)},[P])},O=x=>{const{results:P,children:E,...M}=x,b=A(E);return _jsx(List,{...M,children:P.map(b)})}},2296:function(Y,R,t){"use strict";t.d(R,{$L:function(){return M},DR:function(){return C},KY:function(){return O},Zz:function(){return f},jM:function(){return c}});var o=t(52322),i=t(2784),d=t(73557),S=t(62584),p=t(82963),g=t(2532);const c="techdocs.addons.addon.v1",f="techdocs.addons.wrapper.v1",C=()=>null;(0,S.R)(C,f,!0);const A=b=>`${c}.${b.toLocaleLowerCase("en-US")}`;function O(b){const{name:L,component:$}=b;return(0,p.YO)({name:L,component:{sync:W=>(0,o.jsx)($,{...W})},data:{[c]:b,[A(L)]:!0}})}const x=(b,L)=>b.selectByComponentData({key:L}).getElements()[0],P=b=>b.selectByComponentData({key:f}).selectByComponentData({key:c}),E=b=>b.selectByComponentData({key:f}).findComponentData({key:c}),M=()=>{const b=(0,d.pC)(),L=(0,g.v)(b,P),$=(0,g.v)(b,E),W=(0,i.useCallback)(at=>{if(!L||!at)return null;const J=A(at.name);var G;return(G=x(L,J))!==null&&G!==void 0?G:null},[L]),y=(0,i.useCallback)(at=>{const J=$.find(G=>G.name===at);return J?W(J):null},[$,W]),N=(0,i.useCallback)(at=>{const J=$.filter(G=>G.location===at);return J.length?J.map(W):null},[$,W]);return{renderComponentByName:y,renderComponentsByLocation:N}}},58496:function(Y,R,t){"use strict";t.d(R,{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(Y,R,t){"use strict";t.d(R,{Z:function(){return b},x:function(){return L}});var o=t(52322),i=t(2784),d=t(64279),S=t(77446),p=t(74314),g=t(29651),c=t(68993),f=t(44394),C=t(6542),A=t(72388),O=t(58496);function x($,W){return W.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")||($.kind=$.kind.toLocaleLowerCase(),$.name=$.name.toLocaleLowerCase(),$.namespace=$.namespace.toLocaleLowerCase()),$}const P=($,W)=>(0,p.eE)($)===(0,p.eE)(W),E={title:"",subtitle:"",setTitle:()=>{},setSubtitle:()=>{},setShadowRoot:()=>{},metadata:{loading:!0},entityMetadata:{loading:!0},entityRef:{kind:"",name:"",namespace:""}},M=(0,g.CT)("techdocs-reader-page-context"),b=(0,i.memo)($=>{const{entityRef:W,children:y}=$,N=(0,f.h_)(O.g),at=(0,f.h_)(C.D),J=(0,d.default)(async()=>N.getEntityMetadata(W),[W]),G=(0,S.Z)(async()=>N.getTechDocsMetadata(W),[W]),[K,z]=(0,i.useState)(E.title),[Q,st]=(0,i.useState)(E.subtitle),[Ct,Et]=(0,i.useState)(E.shadowRoot);(0,i.useEffect)(()=>{Ct&&!G.value&&!G.loading&&G.retry()},[G.value,G.loading,Ct,G.retry,G]);const mt={metadata:G,entityRef:x(W,at),entityMetadata:J,shadowRoot:Ct,setShadowRoot:Et,title:K,setTitle:z,subtitle:Q,setSubtitle:st},bt=(0,c.E)({1:mt});return(0,o.jsx)(A.fC,{attributes:{entityRef:(0,p.eE)(W)},children:(0,o.jsx)(M.Provider,{value:bt,children:y instanceof Function?y(mt):y})})},($,W)=>P($.entityRef,W.entityRef)),L=()=>{const $=(0,i.useContext)(M);if($===void 0)return E;const W=$.atVersion(1);if(W===void 0)throw new Error("No context found for version 1.");return W}},57058:function(Y,R,t){"use strict";t.d(R,{o:function(){return o}});const o=Object.freeze({Header:"Header",Subheader:"Subheader",Settings:"Settings",PrimarySidebar:"PrimarySidebar",SecondarySidebar:"SecondarySidebar",Content:"Content"})},51953:function(Y,R,t){"use strict";t.d(R,{D:function(){return o}});function o(i,d){return d.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")?i:i.toLocaleLowerCase("en-US")}},29895:function(Y,R,t){"use strict";t.d(R,{u:function(){return G}});var o=t(52322),i=t(2784),d=t(42398),S=t(30706),p=t(13788),g=t(25942),c=t(30389),f=t(23433),C=t(63833),A=t(97894),O=t(42081),x=t(88797);class P{getCatalogFilters(){return{"metadata.annotations.backstage.io/techdocs-ref":x.n}}}const E=()=>{const{updateFilters:K}=(0,g.wp)();return(0,i.useEffect)(()=>{K({techdocs:new P})},[K]),null};var M=t(95074),b=t(76635),L=t(538),$=t(9791),W=t(42870),y=t(16787),N=t(45342),at=t(49079);const J=K=>{var z;const{columns:Q,actions:st,options:Ct}=K,{loading:Et,error:mt,entities:bt,filters:gt}=(0,g.wp)(),{isStarredEntity:Pt,toggleStarredEntity:lt}=(0,W.C)(),[,V]=(0,M.Z)();var k;const et=(0,b.capitalize)((k=(z=gt.user)===null||z===void 0?void 0:z.value)!==null&&k!==void 0?k:"all"),it=[N.n.createCopyDocsUrlAction(V),N.n.createStarEntityAction(Pt,lt)];return mt?(0,o.jsx)(L.G,{severity:"error",title:"Could not load available documentation.",children:(0,o.jsx)($.O,{language:"text",text:mt.toString()})}):(0,o.jsx)(y.H,{title:et,entities:bt,loading:Et,actions:st||it,columns:Q,options:Ct})};J.columns=at.N,J.actions=N.n;const G=K=>{const{initialFilter:z="owned",columns:Q,actions:st}=K;return(0,o.jsx)(O.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)(g.UO,{children:(0,o.jsxs)(c._i,{children:[(0,o.jsxs)(c._i.Filters,{children:[(0,o.jsx)(E,{}),(0,o.jsx)(f.E,{initialFilter:z}),(0,o.jsx)(C.d,{}),(0,o.jsx)(A.x,{})]}),(0,o.jsx)(c._i.Content,{children:(0,o.jsx)(J,{actions:st,columns:Q})})]})})]})})}},16787:function(Y,R,t){"use strict";t.d(R,{H:function(){return L}});var o=t(52322),i=t(2784),d=t(95074),S=t(37321),p=t(44394),g=t(6542),c=t(8709),f=t(75435),C=t(86540),A=t(95573),O=t(84462),x=t(70249),P=t(15929),E=t(45342),M=t(49079),b=t(51953);const L=$=>{const{entities:W,title:y,loading:N,columns:at,actions:J,options:G}=$,[,K]=(0,d.Z)(),z=(0,S.t)(A.Fw),Q=(0,p.h_)(g.D);if(!W)return null;const st=W.map(mt=>{const bt=(0,f.h)(mt,c.S4);var gt;return{entity:mt,resolved:{docsUrl:z({namespace:(0,b.D)((gt=mt.metadata.namespace)!==null&&gt!==void 0?gt:"default",Q),kind:(0,b.D)(mt.kind,Q),name:(0,b.D)(mt.metadata.name,Q)}),ownedByRelations:bt,ownedByRelationsTitle:bt.map(Pt=>(0,C.$)(Pt,{defaultKind:"group"})).join(", ")}}}),Ct=[M.N.createNameColumn(),M.N.createOwnerColumn(),M.N.createTypeColumn()],Et=[E.n.createCopyDocsUrlAction(K)];return(0,o.jsx)(o.Fragment,{children:N||st&&st.length>0?(0,o.jsx)(O.i,{isLoading:N,options:{paging:!0,pageSize:20,search:!0,actionsColumnIndex:-1,...G},data:st,columns:at||Ct,actions:J||Et,title:y?`${y} (${st.length})`:`All (${st.length})`}):(0,o.jsx)(x.u,{missing:"data",title:"No documents to show",description:"Create your own document. Check out our Getting Started Information",action:(0,o.jsx)(P.Q,{color:"primary",to:"https://backstage.io/docs/features/techdocs/getting-started",variant:"contained",children:"DOCS"})})})};L.columns=M.N,L.actions=E.n},45342:function(Y,R,t){"use strict";t.d(R,{n:function(){return f}});var o=t(52322),i=t(2784),d=t(39981),S=t(2337),p=t(11640),g=t(28347);const c=(0,S.Z)({root:{color:"#f3ba37"}})(p.Z),f={createCopyDocsUrlAction(C){return A=>({icon:()=>(0,o.jsx)(d.Z,{fontSize:"small"}),tooltip:"Click to copy documentation link to clipboard",onClick:()=>C(`${window.location.origin}${A.resolved.docsUrl}`)})},createStarEntityAction(C,A){return O=>{const x=O.entity,P=C(x);return{cellStyle:{paddingLeft:"1em"},icon:()=>P?(0,o.jsx)(c,{}):(0,o.jsx)(g.Z,{}),tooltip:P?"Remove from favorites":"Add to favorites",onClick:()=>A(x)}}}}},49079:function(Y,R,t){"use strict";t.d(R,{N:function(){return A}});var o=t(52322),i=t(2784),d=t(62774),S=t(79692);const p=(0,S.Z)(O=>({value:{marginBottom:O.spacing(.75)},subvalue:{color:O.palette.textSubtle,fontWeight:"normal"}}),{name:"BackstageSubvalueCell"});function g(O){const{value:x,subvalue:P}=O,E=p();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Z,{className:E.value,children:x}),(0,o.jsx)(d.Z,{className:E.subvalue,children:P})]})}var c=t(98864),f=t(68138);function C(O){return O.metadata.title||O.metadata.name}const A={createNameColumn(){return{title:"Document",field:"entity.metadata.name",highlight:!0,render:O=>(0,o.jsx)(g,{value:(0,o.jsx)(c.rU,{to:O.resolved.docsUrl,children:C(O.entity)}),subvalue:O.entity.metadata.description})}},createOwnerColumn(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:O})=>(0,o.jsx)(f.r,{entityRefs:O.ownedByRelations,defaultKind:"group"})}},createTypeColumn(){return{title:"Type",field:"entity.spec.type"}}}},42081:function(Y,R,t){"use strict";t.d(R,{j:function(){return g}});var o=t(52322),i=t(2784),d=t(32166),S=t(44394),p=t(6542);const g=c=>{const{children:f}=c,C=(0,S.h_)(p.D);var A;const O=`Documentation available in ${(A=C.getOptionalString("organization.name"))!==null&&A!==void 0?A:"Backstage"}`;return(0,o.jsx)(d.g,{title:"Documentation",subtitle:O,themeId:"documentation",children:f})}},4577:function(Y,R,t){"use strict";t.d(R,{Jl:function(){return bt},I6:function(){return gt},s4:function(){return st}});var o=t(58496),i=t(87612),d=t(41385),S=t(48998),p=t(30474);class g extends Error{constructor(V,k){var et,it;let ct=V;if(k!==void 0){const F=(0,S.n)(k);ct?ct+=`; caused by ${F}`:ct=`caused by ${F}`}super(ct),(0,i._)(this,"cause",void 0),(et=(it=Error).captureStackTrace)===null||et===void 0||et.call(it,this,this.constructor),(!this.name||this.name==="Error")&&this.constructor.name!=="Error"&&(this.name=this.constructor.name),this.cause=(0,p.V)(k)?k:void 0}}class c extends null{constructor(...V){super(...V),_define_property(this,"name","InputError")}}class f extends null{constructor(...V){super(...V),_define_property(this,"name","AuthenticationError")}}class C extends null{constructor(...V){super(...V),_define_property(this,"name","NotAllowedError")}}class A extends g{constructor(...V){super(...V),(0,i._)(this,"name","NotFoundError")}}class O extends null{constructor(...V){super(...V),_define_property(this,"name","ConflictError")}}class x extends null{constructor(...V){super(...V),_define_property(this,"name","NotModifiedError")}}class P extends null{constructor(...V){super(...V),_define_property(this,"name","NotImplementedError")}}class E extends null{}class M extends null{constructor(V,k){super(V,k),this.name=isError(k)?k.name:"Error"}}var b=t(54847);class L{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getTechDocsMetadata(V){const{kind:k,namespace:et,name:it}=V,F=`${await this.getApiOrigin()}/metadata/techdocs/${et}/${k}/${it}`,H=await this.fetchApi.fetch(`${F}`);if(!H.ok)throw await d.V.fromResponse(H);return await H.json()}async getEntityMetadata(V){const{kind:k,namespace:et,name:it}=V,F=`${await this.getApiOrigin()}/metadata/entity/${et}/${k}/${it}`,H=await this.fetchApi.fetch(`${F}`);if(!H.ok)throw await d.V.fromResponse(H);return await H.json()}constructor(V){(0,i._)(this,"configApi",void 0),(0,i._)(this,"discoveryApi",void 0),(0,i._)(this,"fetchApi",void 0),this.configApi=V.configApi,this.discoveryApi=V.discoveryApi,this.fetchApi=V.fetchApi}}class ${async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){var V;return(V=this.configApi.getOptionalString("techdocs.storageUrl"))!==null&&V!==void 0?V:`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(V,k){const{kind:et,namespace:it,name:ct}=V,H=`${await this.getStorageUrl()}/${it}/${et}/${ct}/${k}`,ft=await this.fetchApi.fetch(`${H.endsWith("/")?H:`${H}/`}index.html`);let ht="";switch(ft.status){case 404:throw ht="Page not found. ",k||(ht+="This could be because there is no index.md file in the root of the docs directory of this repository."),new A(ht);case 500:throw ht="Could not generate documentation or an error in the TechDocs backend. ",new Error(ht);default:break}return ft.text()}async syncEntityDocs(V,k=()=>{}){const{kind:et,namespace:it,name:ct}=V,H=`${await this.getApiOrigin()}/sync/${it}/${et}/${ct}`,{token:ft}=await this.identityApi.getCredentials();return new Promise((ht,dt)=>{const At=new b.EventSourcePolyfill(H,{withCredentials:!0,headers:ft?{Authorization:`Bearer ${ft}`}:{}});At.addEventListener("log",vt=>{vt.data&&k(JSON.parse(vt.data))}),At.addEventListener("finish",vt=>{let It=!1;vt.data&&({updated:It}=JSON.parse(vt.data)),ht(It?"updated":"cached")}),At.onerror=vt=>{switch(At.close(),vt.status){case 404:dt(new A(vt.message));return;default:dt(new Error(vt.data));return}}})}async getBaseUrl(V,k,et){const{kind:it,namespace:ct,name:F}=k,ft=`${await this.getApiOrigin()}/static/docs/${ct}/${it}/${F}/${et}`;return new URL(V,ft.endsWith("/")?ft:`${ft}/`).toString()}constructor(V){(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=V.configApi,this.discoveryApi=V.discoveryApi,this.identityApi=V.identityApi,this.fetchApi=V.fetchApi}}var W=t(95573),y=t(15006),N=t(42380),at=t(6542),J=t(96727),G=t(77186),K=t(85094),z=t(82963),Q=t(53945);const st=(0,y.r)({id:"techdocs",apis:[(0,N.n)({api:o.D,deps:{configApi:at.D,discoveryApi:J.N,identityApi:G.$,fetchApi:K.g},factory:({configApi:lt,discoveryApi:V,identityApi:k,fetchApi:et})=>new $({configApi:lt,discoveryApi:V,identityApi:k,fetchApi:et})}),(0,N.n)({api:o.g,deps:{configApi:at.D,discoveryApi:J.N,fetchApi:K.g},factory:({configApi:lt,discoveryApi:V,fetchApi:k})=>new L({configApi:lt,discoveryApi:V,fetchApi:k})})],routes:{root:W._Z,docRoot:W.Fw,entityContent:W.pd}}),Ct=st.provide((0,z.P4)({name:"TechdocsPage",component:()=>t.e(967).then(t.bind(t,80967)).then(lt=>lt.Router),mountPoint:W._Z})),Et=st.provide((0,z.P4)({name:"EntityTechdocsContent",component:()=>t.e(967).then(t.bind(t,80967)).then(lt=>lt.EmbeddedDocsRouter),mountPoint:W.pd})),mt=st.provide((0,z.P4)({name:"TechDocsCustomHome",component:()=>t.e(2924).then(t.bind(t,12924)).then(lt=>lt.TechDocsCustomHome),mountPoint:W._Z})),bt=st.provide((0,z.P4)({name:"TechDocsIndexPage",component:()=>t.e(8662).then(t.bind(t,18662)).then(lt=>lt.TechDocsIndexPage),mountPoint:W._Z})),gt=st.provide((0,z.P4)({name:"TechDocsReaderPage",component:()=>t.e(5914).then(t.bind(t,35914)).then(lt=>lt.TechDocsReaderPage),mountPoint:W.Fw})),Pt=st.provide((0,Q.E5)({name:"TechDocsSearchResultListItem",component:()=>Promise.resolve().then(t.bind(t,55511)).then(lt=>lt.TechDocsSearchResultListItem),predicate:lt=>lt.type==="techdocs"}))},45902:function(Y,R,t){"use strict";t.d(R,{F:function(){return jt}});var o=t(52322),i=t(2784),d=t(79692),S=t(60905),p=t(68979),g=t(70882),c=t(50236),f=t(19219),C=t(55015);const A="TECH_DOCS_SHADOW_DOM_STYLE_LOAD",O=h=>{(0,i.useEffect)(()=>{var T,I;if(!h)return()=>{};const Z=h.querySelectorAll('head > link[rel="stylesheet"]');var _;let q=(_=(T=Z)===null||T===void 0?void 0:T.length)!==null&&_!==void 0?_:0;const rt=new CustomEvent(A);if(!q)return h.dispatchEvent(rt),()=>{};const pt=()=>{--q===0&&h.dispatchEvent(rt)};return(I=Z)===null||I===void 0||I.forEach(yt=>{yt.addEventListener("load",pt)}),()=>{var yt;(yt=Z)===null||yt===void 0||yt.forEach(Rt=>{Rt.removeEventListener("load",pt)})}},[h])},x=h=>{const[T,I]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!h)return()=>{};I(!0);const Z=h.style;Z.setProperty("opacity","0");const _=()=>{I(!1),Z.setProperty("opacity","1")};return h.addEventListener(A,_),()=>{h.removeEventListener(A,_)}},[h]),T},P=h=>{const{element:T,onAppend:I,children:Z}=h,[_,q]=(0,i.useState)((0,g.Ue)({...(0,c.Z)(),insertionPoint:void 0}));O(T);const rt=x(T),pt=(0,i.useCallback)(yt=>{if(!T||!yt)return;q((0,g.Ue)({...(0,c.Z)(),insertionPoint:T.querySelector("head")||void 0}));let Rt=yt.shadowRoot;Rt||(Rt=yt.attachShadow({mode:"open"})),Rt.replaceChildren(T),typeof I=="function"&&I(Rt)},[T,I]);return(0,o.jsxs)(o.Fragment,{children:[rt&&(0,o.jsx)(C.E,{}),(0,o.jsxs)(f.ZP,{jss:_,sheetsManager:new Map,children:[(0,o.jsx)("div",{ref:pt,"data-testid":"techdocs-native-shadowroot"}),Z]})]})};var E=t(87435),M=t(42398),b=t(76635),L=t(64279),$=t(1849),W=t(29651),y=t(68993),N=t(44394),at=t(72388),J=t(6542),G=t(95965);const K=(0,G.T)({id:"plugin.search.queryservice"});class z{query(){return Promise.resolve(this.mockedResults||{results:[]})}constructor(T){_define_property(this,"mockedResults",void 0),this.mockedResults=T}}const Q=(0,W.CT)("search-context"),st=()=>{const h=(0,i.useContext)(Q);if(!h)throw new Error("useSearch must be used within a SearchContextProvider");const T=h.atVersion(1);if(!T)throw new Error("No SearchContext v1 found");return T},Ct=()=>(0,i.useContext)(Q)!==void 0,Et={term:"",types:[],filters:{},pageLimit:void 0,pageCursor:void 0},mt=(h=Et)=>{var T,I,Z,_;const q=(0,N.h_)(K),[rt,pt]=(0,i.useState)(h.term),[yt,Rt]=(0,i.useState)(h.types),[Dt,Kt]=(0,i.useState)(h.filters),[Tt,se]=(0,i.useState)(h.pageLimit),[de,Gt]=(0,i.useState)(h.pageCursor),_t=(0,$.Z)(rt),Vt=(0,$.Z)(Dt),re=(0,L.default)(()=>q.query({term:rt,types:yt,filters:Dt,pageLimit:Tt,pageCursor:de}),[rt,yt,Dt,Tt,de]),Ft=!re.loading&&!re.error&&((T=re.value)===null||T===void 0?void 0:T.nextPageCursor),Yt=!re.loading&&!re.error&&((I=re.value)===null||I===void 0?void 0:I.previousPageCursor),Xt=(0,i.useCallback)(()=>{var ge;Gt((ge=re.value)===null||ge===void 0?void 0:ge.nextPageCursor)},[(Z=re.value)===null||Z===void 0?void 0:Z.nextPageCursor]),me=(0,i.useCallback)(()=>{var ge;Gt((ge=re.value)===null||ge===void 0?void 0:ge.previousPageCursor)},[(_=re.value)===null||_===void 0?void 0:_.previousPageCursor]);return(0,i.useEffect)(()=>{_t!==void 0&&rt!==_t&&Gt(void 0)},[rt,_t,Gt]),(0,i.useEffect)(()=>{Vt!==void 0&&!(0,b.isEqual)(Dt,Vt)&&Gt(void 0)},[Dt,Vt,Gt]),{result:re,term:rt,setTerm:pt,types:yt,setTypes:Rt,filters:Dt,setFilters:Kt,pageLimit:Tt,setPageLimit:se,pageCursor:de,setPageCursor:Gt,fetchNextPage:Ft?Xt:void 0,fetchPreviousPage:Yt?me:void 0}},bt=h=>{const{initialState:T,children:I}=h,Z=mt(T);return(0,o.jsx)(at.fC,{attributes:{searchTypes:Z.types.sort().join(",")},children:(0,o.jsx)(Q.Provider,{value:(0,y.E)({1:Z}),children:I})})},gt=h=>{const{initialState:T,inheritParentContextIfAvailable:I,children:Z}=h,_=Ct(),q=(0,N.h_)(J.D),rt=T!=null?T:{},pt=q.has("search.query.pageLimit")?{pageLimit:q.getNumber("search.query.pageLimit")}:{},yt={...Et,...rt,...pt};return _&&I?(0,o.jsx)(o.Fragment,{children:Z}):(0,o.jsx)(bt,{initialState:yt,children:Z})};var Pt=t(4614),lt=t(88013),V=t(50581),k=t(61837),et=t(86619),it=t(77277),ct=t(21853),F=t(48760),H=t(62369);const ft=({children:h})=>{var T;const I=Dt=>(0,$.Z)(Dt)!==Dt,Z=(0,H.z)(),{term:_,result:q}=st();var rt;const pt=(rt=(T=q.value)===null||T===void 0?void 0:T.numberOfResults)!==null&&rt!==void 0?rt:void 0,Rt=I(q.loading)&&!q.loading;return(0,i.useEffect)(()=>{_&&Rt&&Z.captureEvent("search",_,{value:pt})},[Z,_,pt,Rt]),(0,o.jsx)(o.Fragment,{children:h})};function ht(h){return(0,i.forwardRef)((T,I)=>(0,o.jsx)(gt,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(h,{...T,ref:I})}))}const dt=ht((0,i.forwardRef)((h,T)=>{const{onChange:I,onKeyDown:Z=()=>{},onClear:_=()=>{},onSubmit:q=()=>{},debounceTime:rt=200,clearButton:pt=!0,fullWidth:yt=!0,value:Rt,label:Dt,placeholder:Kt,inputProps:Tt={},InputProps:se={},endAdornment:de,...Gt}=h,_t=(0,N.h_)(J.D),[Vt,re]=(0,i.useState)("");(0,i.useEffect)(()=>{re(ve=>ve!==Rt?String(Rt):ve)},[Rt]),(0,F.Z)(()=>I(Vt),rt,[Vt]);const Ft=(0,i.useCallback)(ve=>{re(ve.target.value)},[re]),Yt=(0,i.useCallback)(ve=>{Z&&Z(ve),q&&ve.key==="Enter"&&q()},[Z,q]),Xt=(0,i.useCallback)(()=>{I(""),_&&_()},[I,_]),me=Dt?void 0:"Search",Ae=Kt!=null?Kt:`Search in ${_t.getOptionalString("app.title")||"Backstage"}`,ge=(0,o.jsx)(V.Z,{position:"start",children:(0,o.jsx)(k.Z,{"aria-label":"Query",size:"small",disabled:!0,children:(0,o.jsx)(ct.Z,{})})}),He=(0,o.jsx)(V.Z,{position:"end",children:(0,o.jsx)(it.Z,{"aria-label":"Clear",size:"small",onClick:Xt,onKeyDown:ve=>{ve.key==="Enter"&&ve.stopPropagation()},children:"Clear"})});return(0,o.jsx)(ft,{children:(0,o.jsx)(et.Z,{id:"search-bar-text-field","data-testid":"search-bar-next",variant:"outlined",margin:"normal",inputRef:T,value:Vt,label:Dt,placeholder:Ae,InputProps:{startAdornment:ge,endAdornment:pt?He:de,...se},inputProps:{"aria-label":me,...Tt},fullWidth:yt,onChange:Ft,onKeyDown:Yt,...Gt})})})),At=ht((0,i.forwardRef)((h,T)=>{const{value:I="",onChange:Z,..._}=h,{term:q,setTerm:rt}=st();(0,i.useEffect)(()=>{I&&rt(String(I))},[I,rt]);const pt=(0,i.useCallback)(yt=>{Z?Z(yt):rt(yt)},[Z,rt]);return(0,o.jsx)(at.fC,{attributes:{pluginId:"search",extension:"SearchBar"},children:(0,o.jsx)(dt,{..._,ref:T,value:q,onChange:pt})})})),vt=(0,d.Z)(h=>({loading:{right:h.spacing(1),position:"absolute"}})),It=h=>T=>(0,o.jsx)(gt,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(h,{...T})}),wt=()=>{const h=vt();return(0,o.jsx)(Pt.Z,{className:h.loading,"data-testid":"search-autocomplete-progressbar",color:"inherit",size:20})},Lt=It(function(T){const{loading:I,value:Z,onChange:_=()=>{},options:q=[],getOptionLabel:rt=Ft=>String(Ft),inputPlaceholder:pt,inputDebounceTime:yt,freeSolo:Rt=!0,fullWidth:Dt=!0,clearOnBlur:Kt=!1,"data-testid":Tt="search-autocomplete",...se}=T,{setTerm:de}=st(),Gt=(0,i.useCallback)(Ft=>Ft?typeof Ft=="string"?Ft:rt(Ft):"",[rt]),_t=(0,i.useMemo)(()=>Gt(Z),[Z,Gt]),Vt=(0,i.useCallback)((Ft,Yt,Xt,me)=>{de(Gt(Yt)),_(Ft,Yt,Xt,me)},[Gt,de,_]),re=(0,i.useCallback)(({InputProps:{ref:Ft,className:Yt,endAdornment:Xt},InputLabelProps:me,...Ae})=>(0,o.jsx)(At,{...Ae,ref:Ft,clearButton:!1,value:_t,placeholder:pt,debounceTime:yt,endAdornment:I?(0,o.jsx)(wt,{}):Xt,InputProps:{className:Yt}}),[I,_t,pt,yt]);return(0,o.jsx)(lt.ZP,{...se,"data-testid":Tt,value:Z,onChange:Vt,options:q,getOptionLabel:rt,renderInput:re,freeSolo:Rt,fullWidth:Dt,clearOnBlur:Kt})});var kt=t(73557),Qt=t(55511);const ee=h=>{var T;return(T=h)===null||T===void 0?void 0:T.document},Zt=h=>{const{entityId:T,entityTitle:I,debounceTime:Z=150}=h,[_,q]=(0,i.useState)(!1),rt=(0,kt.s0)(),{setFilters:pt,result:{loading:yt,value:Rt}}=st(),[Dt,Kt]=(0,i.useState)([]);(0,i.useEffect)(()=>{let _t=!0;if(_t&&Rt){const Vt=Rt.results.slice(0,10);Kt(Vt)}return()=>{_t=!1}},[yt,Rt]);const{kind:Tt,name:se,namespace:de}=T;(0,i.useEffect)(()=>{pt(_t=>({..._t,kind:Tt,namespace:de,name:se}))},[Tt,de,se,pt]);const Gt=(_t,Vt)=>{if(ee(Vt)){const{location:re}=Vt.document;rt(re)}};return(0,o.jsx)(Lt,{"data-testid":"techdocs-search-bar",size:"small",open:_,getOptionLabel:()=>"",filterOptions:_t=>_t,onClose:()=>{q(!1)},onFocus:()=>{q(!0)},onChange:Gt,blurOnSelect:!0,noOptionsText:"No results found",value:null,options:Dt,renderOption:({document:_t,highlight:Vt})=>(0,o.jsx)(Qt.TechDocsSearchResultListItem,{result:_t,lineClamp:3,asListItem:!1,asLink:!1,title:_t.title,highlight:Vt}),loading:yt,inputDebounceTime:Z,inputPlaceholder:`Search ${I||T.name} docs`,freeSolo:!1})},be=h=>{const T={term:"",types:["techdocs"],pageCursor:"",filters:h.entityId};return(0,o.jsx)(gt,{initialState:T,children:(0,o.jsx)(Zt,{...h})})};var Wt=t(99688),zt=t(80851);const ae=(0,i.lazy)(()=>Promise.all([t.e(8629),t.e(6051)]).then(t.bind(t,76051)).then(h=>({default:h.RealLogViewer})));function he(h){const{Progress:T}=(0,zt.q)().getComponents();return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(T,{}),children:(0,o.jsx)(ae,{...h})})}var Ke=t(42494),Xe=t(90436),qe=t(4190),gn=t(87685);const $e=(0,d.Z)(h=>(0,Ke.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}})),ke=({buildLog:h,onClose:T})=>{const I=$e(),Z=h.length===0?"Waiting for logs...":h.join(`
2
+ `);return(0,o.jsxs)(S.Z,{container:!0,direction:"column",className:I.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:T,color:"inherit",children:(0,o.jsx)(gn.Z,{})},"dismiss")]}),(0,o.jsx)(S.Z,{item:!0,xs:!0,children:(0,o.jsx)(he,{text:Z,classes:{root:I.logs}})})]})},ye=({buildLog:h})=>{const T=$e(),[I,Z]=(0,i.useState)(!1);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(it.Z,{color:"inherit",onClick:()=>Z(!0),children:"Show Build Logs"}),(0,o.jsx)(qe.ZP,{classes:{paper:T.paper},anchor:"right",open:I,onClose:()=>Z(!1),children:(0,o.jsx)(ke,{buildLog:h,onClose:()=>Z(!1)})})]})},rn=({errorMessage:h})=>{const T=(0,N.h_)(J.D).getOptionalString("techdocs.builder");let I="";return T!=="local"&&(I="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)(E.m,{status:"404",statusMessage:h||"Documentation not found",additionalInfo:I})};var le=t(77446),tn=t(58496);function Me({contentLoading:h,content:T,activeSyncState:I}){return h||I==="BUILD_READY_RELOAD"||!T&&I==="CHECKING"?"CHECKING":!T&&I==="BUILDING"?"INITIAL_BUILD":T?I==="BUILDING"?"CONTENT_STALE_REFRESHING":I==="BUILD_READY"?"CONTENT_STALE_READY":I==="ERROR"?"CONTENT_STALE_ERROR":"CONTENT_FRESH":"CONTENT_NOT_FOUND"}function ze(h,T){const I={...h};switch(T.type){case"sync":T.state==="CHECKING"&&(I.buildLog=[]),I.activeSyncState=T.state,I.syncError=T.syncError;break;case"contentLoading":I.contentLoading=!0,I.contentError=void 0;break;case"content":typeof T.path=="string"&&(I.path=T.path),I.contentLoading=!1,I.content=T.content,I.contentError=T.contentError;break;case"buildLog":I.buildLog=I.buildLog.concat(T.log);break;default:throw new Error}return["BUILD_READY","BUILD_READY_RELOAD"].includes(I.activeSyncState)&&["contentLoading","content"].includes(T.type)&&(I.activeSyncState="UP_TO_DATE",I.buildLog=[]),I}function Le(h,T,I,Z){var _,q;const[rt,pt]=(0,i.useReducer)(ze,{activeSyncState:"CHECKING",path:Z,contentLoading:!0,buildLog:[]}),yt=(0,N.h_)(tn.D),{retry:Rt}=(0,le.Z)(async()=>{pt({type:"contentLoading"});try{const Tt=await yt.getEntityDocs({kind:h,namespace:T,name:I},Z);return pt({type:"content",content:Tt,path:Z}),Tt}catch(Tt){pt({type:"content",contentError:Tt,path:Z})}},[yt,h,T,I,Z]),Dt=(0,i.useRef)({content:void 0,reload:()=>{}});return Dt.current={content:rt.content,reload:Rt},(0,L.default)(async()=>{pt({type:"sync",state:"CHECKING"});const Tt=setTimeout(()=>{pt({type:"sync",state:"BUILDING"})},1e3);try{switch(await yt.syncEntityDocs({kind:h,namespace:T,name:I},de=>{pt({type:"buildLog",log:de})})){case"updated":Dt.current.content?pt({type:"sync",state:"BUILD_READY"}):(Dt.current.reload(),pt({type:"sync",state:"BUILD_READY_RELOAD"}));break;case"cached":pt({type:"sync",state:"UP_TO_DATE"});break;default:pt({type:"sync",state:"ERROR",syncError:new Error("Unexpected return state")});break}}catch(se){pt({type:"sync",state:"ERROR",syncError:se})}finally{clearTimeout(Tt)}},[h,I,T,yt,pt,Dt]),{state:(0,i.useMemo)(()=>Me({activeSyncState:rt.activeSyncState,contentLoading:rt.contentLoading,content:rt.content}),[rt.activeSyncState,rt.content,rt.contentLoading]),contentReload:Rt,path:rt.path,content:rt.content,contentErrorMessage:(_=rt.contentError)===null||_===void 0?void 0:_.toString(),syncErrorMessage:(q=rt.syncError)===null||q===void 0?void 0:q.toString(),buildLog:rt.buildLog}}const fe=(0,i.createContext)({}),_e=()=>(0,i.useContext)(fe),sn=h=>{const{children:T}=h,{"*":I=""}=(0,kt.UO)(),{entityRef:Z}=(0,p.x)(),{kind:_,namespace:q,name:rt}=Z,pt=Le(_,q,rt,I);return(0,o.jsx)(fe.Provider,{value:pt,children:T instanceof Function?T(pt):T})},D=h=>T=>(0,o.jsx)(sn,{children:(0,o.jsx)(h,{...T})}),u=(0,d.Z)(h=>({root:{marginBottom:h.spacing(2)},message:{wordBreak:"break-word",overflowWrap:"anywhere"}})),U=()=>{let h=null;const T=u(),{state:I,contentReload:Z,contentErrorMessage:_,syncErrorMessage:q,buildLog:rt}=_e();return I==="INITIAL_BUILD"&&(h=(0,o.jsx)(Wt.Z,{classes:{root:T.root},variant:"outlined",severity:"info",icon:(0,o.jsx)(Pt.Z,{size:"24px"}),action:(0,o.jsx)(ye,{buildLog:rt}),children:"Documentation is accessed for the first time and is being prepared. The subsequent loads are much faster."})),I==="CONTENT_STALE_REFRESHING"&&(h=(0,o.jsx)(Wt.Z,{variant:"outlined",severity:"info",icon:(0,o.jsx)(Pt.Z,{size:"24px"}),action:(0,o.jsx)(ye,{buildLog:rt}),classes:{root:T.root},children:"A newer version of this documentation is being prepared and will be available shortly."})),I==="CONTENT_STALE_READY"&&(h=(0,o.jsx)(Wt.Z,{variant:"outlined",severity:"success",action:(0,o.jsx)(it.Z,{color:"inherit",onClick:()=>Z(),children:"Refresh"}),classes:{root:T.root},children:"A newer version of this documentation is now available, please refresh to view."})),I==="CONTENT_STALE_ERROR"&&(h=(0,o.jsxs)(Wt.Z,{variant:"outlined",severity:"error",action:(0,o.jsx)(ye,{buildLog:rt}),classes:{root:T.root,message:T.message},children:["Building a newer version of this documentation failed."," ",q]})),I==="CONTENT_NOT_FOUND"&&(h=(0,o.jsxs)(o.Fragment,{children:[q&&(0,o.jsxs)(Wt.Z,{variant:"outlined",severity:"error",action:(0,o.jsx)(ye,{buildLog:rt}),classes:{root:T.root,message:T.message},children:["Building a newer version of this documentation failed."," ",q]}),(0,o.jsx)(rn,{errorMessage:_})]})),h};var B=t(60364),ot=t(41156),xt=t(91657),St=t(35368),Mt=t.n(St);const Ut=/main\.[A-Fa-f0-9]{8}\.min\.css$/,ne=/^https:\/\/fonts\.googleapis\.com/,Jt=/^https:\/\/fonts\.gstatic\.com/,ce=h=>h.nodeName==="LINK",an=h=>{var T;const I=((T=h)===null||T===void 0?void 0:T.getAttribute("href"))||"",Z=I.match(Ut),_=I.match(ne),q=I.match(Jt);return Z||_||q},pe=h=>(ce(h)&&!an(h)&&h.remove(),h),qt=h=>h.nodeName==="IFRAME",je=(h,T)=>{const I=h.getAttribute("src")||"";try{const{host:Z}=new URL(I);return T.includes(Z)}catch{return!1}},Nt=h=>T=>(qt(T)&&!je(T,h)&&T.remove(),T),oe=()=>{const h=(0,N.h_)(J.D);return(0,i.useMemo)(()=>h.getOptionalConfig("techdocs.sanitizer"),[h])},te=()=>{const h=oe();return(0,i.useCallback)(async T=>{var I;const Z=(I=h)===null||I===void 0?void 0:I.getOptionalStringArray("allowedIframeHosts");Mt().addHook("beforeSanitizeElements",pe);const _=["link"];return Z&&(_.push("iframe"),Mt().addHook("beforeSanitizeElements",Nt(Z))),Mt().sanitize(T.outerHTML,{ADD_TAGS:_,FORBID_TAGS:["style"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0})},[h])};var Kn=t(93539),xe=t(41128),kn=({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,xe.$n)(h.palette.text.secondary,.7)};
14
+ --md-default-fg-color--lightest: ${(0,xe.$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,xe.$n)(h.palette.background.paper,.7)};
20
+ --md-default-bg-color--lightest: ${(0,xe.$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,xe.$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,xe.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,xe.Fq)(h.palette.error.dark,.5):(0,xe.Fq)(h.palette.error.light,.5)};
93
+ --md-typeset-ins-color: ${h.palette.type==="dark"?(0,xe.Fq)(h.palette.success.dark,.5):(0,xe.Fq)(h.palette.success.light,.5)};
94
+ --md-typeset-mark-color: ${h.palette.type==="dark"?(0,xe.Fq)(h.palette.warning.dark,.5):(0,xe.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
+ `,zn=({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 _n="224px";var ln=({theme:h,sidebar:T})=>`
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: ${T.isPinned?`calc(-12.1rem + ${_n})`:"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 we=["h1","h2","h3","h4","h5","h6"];var mo=({theme:h})=>`
340
+ /*================== Typeset ==================*/
341
+
342
+ .md-typeset {
343
+ font-size: var(--md-typeset-font-size);
344
+ }
345
+
346
+ ${we.reduce((T,I)=>{var Z;const _=(Z=h.typography.htmlFontSize)!==null&&Z!==void 0?Z:16,q=h.typography[I],{lineHeight:rt,fontFamily:pt,fontWeight:yt,fontSize:Rt}=q,Dt=Kt=>{let Tt=1;return typeof Kt=="number"&&(Tt=Kt/_*.6),typeof Kt=="string"&&(Tt=Kt.replace("rem","")),`calc(${Tt} * var(--md-typeset-font-size))`};return T.concat(`
347
+ .md-typeset ${I} {
348
+ color: var(--md-default-fg-color);
349
+ line-height: ${rt};
350
+ font-family: ${pt};
351
+ font-weight: ${yt};
352
+ font-size: ${Dt(Rt)};
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
+ `,en=()=>`
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
+ `,yo=({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 Hn=[kn,zn,ln,mo,en,yo],Eo=()=>(0,Kn.Pf)(),Ht=()=>{const h=Eo(),T=(0,B.Z)();return(0,i.useMemo)(()=>{const I={theme:T,sidebar:h};return Hn.reduce((Z,_)=>Z+_(I),"")},[T,h])},Fe=()=>{const h=Ht();return(0,i.useCallback)(T=>(T.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${h}</style>`),T),[h])},cn=async(h,T)=>{let I;if(typeof h=="string")I=new DOMParser().parseFromString(h,"text/html").documentElement;else if(h instanceof Element)I=h;else throw new Error("dom is not a recognized type");for(const Z of T)I=await Z(I);return I},xo=(h,T,I)=>{const Z=h==="src"&&T.endsWith(".svg"),_=!T.match(/^([a-z]*:)?\/\//i),q=T.startsWith(I);return Z&&(_||q)},Co=({techdocsStorageApi:h,entityId:T,path:I})=>async Z=>{const _=await h.getApiOrigin(),q=async(rt,pt)=>{for(const yt of rt)if(yt.hasAttribute(pt)){const Rt=yt.getAttribute(pt);if(!Rt)return;const Dt=await h.getBaseUrl(Rt,T,I);if(xo(pt,Rt,_))try{const Tt=await(await fetch(Dt,{credentials:"include"})).text();yt.setAttribute(pt,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(Tt)))}`)}catch{yt.setAttribute("alt",`Error: ${Rt}`)}else yt.setAttribute(pt,Dt)}};return await Promise.all([q(Z.querySelectorAll("img"),"src"),q(Z.querySelectorAll("script"),"src"),q(Z.querySelectorAll("source"),"src"),q(Z.querySelectorAll("link"),"href"),q(Z.querySelectorAll("a[download]"),"href")]),Z},Ao=()=>h=>(((I,Z)=>{Array.from(I).filter(_=>_.hasAttribute(Z)).forEach(_=>{const q=_.getAttribute(Z);if(q){q.match(/^https?:\/\//i)&&_.setAttribute("target","_blank");try{const rt=Oo(window.location.href);_.setAttribute(Z,new URL(q,rt).toString())}catch{_.replaceWith(_.textContent||q)}}})})(Array.from(h.getElementsByTagName("a")),"href"),h);function Oo(h){const T=new URL(h);return!T.pathname.endsWith("/")&&!T.pathname.endsWith(".html")&&(T.pathname+="/"),T.toString()}var Rn=t(44882),Tn=t(28316);const So=()=>h=>{var T;const I=h.querySelector('.md-header label[for="__drawer"]'),Z=h.querySelector("article");if(!I||!Z)return h;const _=I.cloneNode();return Tn.render(i.createElement(Rn.Z),_),_.id="toggle-sidebar",_.title="Toggle Sidebar",_.classList.add("md-content__button"),_.style.setProperty("padding","0 0 0 5px"),_.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),(T=Z)===null||T===void 0||T.prepend(_),h},bo=()=>h=>{var T;return(T=h.querySelector(".md-header"))===null||T===void 0||T.remove(),h},Po=()=>h=>{var T,I;return(T=h.querySelector(".md-footer .md-copyright"))===null||T===void 0||T.remove(),(I=h.querySelector(".md-footer-copyright"))===null||I===void 0||I.remove(),h};var Ro=t(61800),To=t(67097),wo=t(82717),Io=t.n(wo);const Do=h=>T=>{var I,Z,_,q,rt,pt;const yt=T.querySelector('[title="Edit this page"]');if(!yt||!yt.href)return T;const Rt=new URL(yt.href),Dt=h.byUrl(Rt);if(((I=Dt)===null||I===void 0?void 0:I.type)!=="github"&&((Z=Dt)===null||Z===void 0?void 0:Z.type)!=="gitlab")return T;const Kt=((_=T.querySelector("article>h1"))===null||_===void 0?void 0:_.childNodes[0].textContent)||"",Tt=encodeURIComponent(`Documentation Feedback: ${Kt}`),se=encodeURIComponent(`Page source:
483
+ ${yt.href}
484
+
485
+ Feedback:`),de=((q=Dt)===null||q===void 0?void 0:q.type)==="github"?(0,Ro.B)(Rt.href,"blob"):Rt.href,Gt=Io()(de),_t=`/${Gt.organization}/${Gt.name}`,Vt=yt.cloneNode();switch((rt=Dt)===null||rt===void 0?void 0:rt.type){case"gitlab":Vt.href=`${Rt.origin}${_t}/issues/new?issue[title]=${Tt}&issue[description]=${se}`;break;case"github":Vt.href=`${Rt.origin}${_t}/issues/new?title=${Tt}&body=${se}`;break;default:return T}return Tn.render(i.createElement(To.Z),Vt),Vt.style.paddingLeft="5px",Vt.title="Leave feedback for this page",Vt.id="git-feedback-link",(pt=yt)===null||pt===void 0||pt.insertAdjacentElement("beforebegin",Vt),T},Mo=()=>h=>(h.addEventListener(A,function T(){if(window.location.hash){var I,Z;const _=window.location.hash.slice(1);(Z=h)===null||Z===void 0||(I=Z.querySelector(`[id="${_}"]`))===null||I===void 0||I.scrollIntoView()}h.removeEventListener(A,T)}),h),Lo=()=>h=>(setTimeout(()=>{var T;const I=(T=h)===null||T===void 0?void 0:T.querySelectorAll("li.md-nav__item--active");I.length!==0&&(I.forEach(_=>{var q,rt;const pt=(q=_)===null||q===void 0?void 0:q.querySelector("input");if(!(!((rt=pt)===null||rt===void 0)&&rt.checked)){var yt;(yt=pt)===null||yt===void 0||yt.click()}}),I[I.length-1].scrollIntoView())},200),h);var jo=t(15459),Bo=t(80030),Uo=t(72379),$o=t(41547),Fo=t(95074);const Wo=(0,jo.Z)(h=>({tooltip:{fontSize:"inherit",color:h.palette.text.primary,margin:0,padding:h.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(Bo.ZP),Gn=()=>(0,o.jsx)(Uo.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"})}),Vn=({text:h})=>{const[T,I]=(0,i.useState)(!1),[,Z]=(0,Fo.Z)(),_=(0,i.useCallback)(()=>{Z(h),I(!0)},[h,Z]),q=(0,i.useCallback)(()=>{I(!1)},[I]);return(0,o.jsx)(Wo,{title:"Copied to clipboard",placement:"left",open:T,onClose:q,leaveDelay:1e3,children:(0,o.jsx)(k.Z,{style:{color:"inherit"},className:"md-clipboard md-icon",onClick:_,children:(0,o.jsx)(Gn,{})})})},No=h=>T=>{const I=T.querySelectorAll("pre > code");for(const q of I){var Z,_;const rt=q.textContent||"",pt=document.createElement("div");(_=q)===null||_===void 0||(Z=_.parentElement)===null||Z===void 0||Z.prepend(pt),Tn.render((0,o.jsx)($o.Z,{theme:h,children:(0,o.jsx)(Vn,{text:rt})}),pt)}return T},Zo=({baseUrl:h,onClick:T})=>I=>(Array.from(I.getElementsByTagName("a")).forEach(Z=>{Z.addEventListener("click",_=>{const rt=Z.getAttribute("href");rt&&rt.startsWith(h)&&!Z.hasAttribute("download")&&(_.preventDefault(),T(_,rt))})}),I),Yn=({onLoading:h,onLoaded:T})=>I=>(h(),I.addEventListener(A,function Z(){T(),I.removeEventListener(A,Z)}),I);function Ko(h,T){const I=new URL(T),Z=`${I.origin}${I.pathname.replace(/\/$/,"")}`,_=h.replace(Z,"").replace(/^\/+/,""),q=new URL(`http://localhost/${_}`);return`${q.pathname}${q.search}${q.hash}`}function ko(){const h=(0,kt.s0)(),I=(0,N.h_)(J.D).getOptionalString("app.baseUrl");return(0,i.useCallback)(_=>{let q=_;if(I)try{q=Ko(_,I)}catch{}h(q)},[h,I])}const zo="screen and (max-width: 76.1875em)",_o=h=>{const T=ko(),I=(0,B.Z)(),Z=(0,ot.Z)(zo),_=te(),q=Fe(),rt=(0,H.z)(),pt=(0,N.h_)(tn.D),yt=(0,N.h_)(xt.q),{state:Rt,path:Dt,content:Kt}=_e(),[Tt,se]=(0,i.useState)(null),de=x(Tt),Gt=(0,i.useCallback)(()=>{if(!Tt)return;Tt.querySelectorAll(".md-sidebar").forEach(Yt=>{if(Z)Yt.style.top="0px";else{var Xt,me,Ae;const dn=(Xt=document)===null||Xt===void 0?void 0:Xt.querySelector(".techdocs-reader-page");var ge;const nn=(ge=(me=dn)===null||me===void 0?void 0:me.getBoundingClientRect().top)!==null&&ge!==void 0?ge:0;var He;let un=(He=Tt.getBoundingClientRect().top)!==null&&He!==void 0?He:0;const Go=Tt.querySelector(".md-container > .md-tabs");var ve;const vn=(ve=(Ae=Go)===null||Ae===void 0?void 0:Ae.getBoundingClientRect().height)!==null&&ve!==void 0?ve:0;un<nn&&(un=nn),Yt.style.top=`${Math.max(un,0)+vn}px`}Yt.style.setProperty("opacity","1")})},[Tt,Z]);(0,i.useEffect)(()=>(window.addEventListener("resize",Gt),window.addEventListener("scroll",Gt,!0),()=>{window.removeEventListener("resize",Gt),window.removeEventListener("scroll",Gt,!0)}),[Tt,Gt]);const _t=(0,i.useCallback)(()=>{if(!Tt)return;const Ft=Tt.querySelector(".md-footer");Ft&&(Ft.style.width=`${Tt.getBoundingClientRect().width}px`)},[Tt]);(0,i.useEffect)(()=>(window.addEventListener("resize",_t),()=>{window.removeEventListener("resize",_t)}),[Tt,_t]),(0,i.useEffect)(()=>{de||(_t(),Gt())},[Rt,de,_t,Gt]);const Vt=(0,i.useCallback)((Ft,Yt)=>cn(Ft,[_,Co({techdocsStorageApi:pt,entityId:h,path:Yt}),Ao(),So(),bo(),Po(),Do(yt),q]),[h,yt,pt,_,q]),re=(0,i.useCallback)(async Ft=>cn(Ft,[Mo(),Lo(),No(I),Zo({baseUrl:window.location.origin,onClick:(Yt,Xt)=>{var me;const Ae=Yt.ctrlKey||Yt.metaKey,ge=new URL(Xt),He=((me=Yt.target)===null||me===void 0?void 0:me.innerText)||Xt,ve=Xt.replace(window.location.origin,"");if(rt.captureEvent("click",He,{attributes:{to:ve}}),ge.hash)if(Ae)window.open(Xt,"_blank");else{var dn,nn;T(Xt),(nn=Ft)===null||nn===void 0||(dn=nn.querySelector(`[id="${ge.hash.slice(1)}"]`))===null||dn===void 0||dn.scrollIntoView()}else Ae?window.open(Xt,"_blank"):T(Xt)}}),Yn({onLoading:()=>{},onLoaded:()=>{var Yt;(Yt=Ft.querySelector(".md-nav__title"))===null||Yt===void 0||Yt.removeAttribute("for")}}),Yn({onLoading:()=>{Array.from(Ft.querySelectorAll(".md-sidebar")).forEach(Xt=>{Xt.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[I,T,rt]);return(0,i.useEffect)(()=>{if(!Kt)return()=>{};let Ft=!0;return Vt(Kt,Dt).then(async Yt=>{var Xt;if(!(!((Xt=Yt)===null||Xt===void 0)&&Xt.innerHTML)||!Ft)return;window.scroll({top:0});const me=await re(Yt);se(me)}),()=>{Ft=!1}},[Kt,Dt,Vt,re]),Tt};var wn=t(8560),Ho=t(2296),In=t(57058);const Qn=()=>{var h,T,I,Z,_;const q=(0,Ho.$L)(),{shadowRoot:rt}=(0,p.x)(),pt=(h=rt)===null||h===void 0?void 0:h.querySelector('[data-md-component="content"]'),yt=(T=rt)===null||T===void 0?void 0:T.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let Rt=(I=yt)===null||I===void 0?void 0:I.querySelector('[data-techdocs-addons-location="primary sidebar"]');if(!Rt){var Dt;Rt=document.createElement("div"),Rt.setAttribute("data-techdocs-addons-location","primary sidebar"),(Dt=yt)===null||Dt===void 0||Dt.prepend(Rt)}const Kt=(Z=rt)===null||Z===void 0?void 0:Z.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let Tt=(_=Kt)===null||_===void 0?void 0:_.querySelector('[data-techdocs-addons-location="secondary sidebar"]');if(!Tt){var se;Tt=document.createElement("div"),Tt.setAttribute("data-techdocs-addons-location","secondary sidebar"),(se=Kt)===null||se===void 0||se.prepend(Tt)}return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(wn.Z,{container:Rt,children:q.renderComponentsByLocation(In.o.PrimarySidebar)}),(0,o.jsx)(wn.Z,{container:pt,children:q.renderComponentsByLocation(In.o.Content)}),(0,o.jsx)(wn.Z,{container:Tt,children:q.renderComponentsByLocation(In.o.SecondarySidebar)})]})},Jn=(0,d.Z)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),jt=D(h=>{var T,I;const{withSearch:Z=!0,onReady:_}=h,q=Jn(),{entityMetadata:{value:rt,loading:pt},entityRef:yt,setShadowRoot:Rt}=(0,p.x)(),Dt=_o(yt),Kt=(0,i.useCallback)(Tt=>{Rt(Tt),_ instanceof Function&&_()},[Rt,_]);return pt===!1&&!rt?(0,o.jsx)(E.m,{status:"404",statusMessage:"PAGE NOT FOUND"}):Dt?(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)(U,{})}),Z&&(0,o.jsx)(S.Z,{className:q.search,xs:"auto",item:!0,children:(0,o.jsx)(be,{entityId:yt,entityTitle:(I=rt)===null||I===void 0||(T=I.metadata)===null||T===void 0?void 0:T.title})}),(0,o.jsx)(S.Z,{xs:12,item:!0,children:(0,o.jsx)(P,{element:Dt,onAppend:Kt,children:(0,o.jsx)(Qn,{})})})]})}):(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)(U,{})})})})}),Ce=null},65386:function(Y,R,t){"use strict";t.d(R,{S:function(){return Ct}});var o=t(52322),i=t(2784),d=t(18671),S=t(60905),p=t(98069),g=t(60364),c=t(73250),f=t(2296),C=t(68979),A=t(57058),O=t(75435),x=t(41748),P=t(68138),E=t(8709),M=t(79692),b=t(41128),L=t(90436),$=t(98864);const W=(0,M.Z)(Et=>({root:{textAlign:"left"},label:{color:Et.page.fontColor,fontWeight:Et.typography.fontWeightBold,letterSpacing:0,fontSize:Et.typography.fontSize,marginBottom:Et.spacing(1)/2,lineHeight:1},value:{color:(0,b.Fq)(Et.page.fontColor,.8),fontSize:Et.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),y=({value:Et,className:mt})=>(0,o.jsx)(L.Z,{component:typeof Et=="string"?"p":"span",className:mt,children:Et});function N(Et){const{label:mt,value:bt,url:gt}=Et,Pt=W(),lt=(0,o.jsx)(y,{className:Pt.value,value:bt||"<Unknown>"});return(0,o.jsx)(S.Z,{item:!0,children:(0,o.jsxs)(L.Z,{component:"span",className:Pt.root,children:[(0,o.jsx)(L.Z,{className:Pt.label,children:mt}),gt?(0,o.jsx)($.rU,{to:gt,children:lt}):lt]})})}var at=t(48037),J=t(44394),G=t(6542),K=t(37321),z=t(76635),Q=t(95573);const st=(0,o.jsx)(p.Z,{animation:"wave",variant:"text",height:40}),Ct=Et=>{var mt,bt,gt;const{palette:{common:{white:Pt}}}=(0,g.Z)(),{children:lt}=Et,V=(0,f.$L)(),k=(0,J.h_)(G.D),{title:et,setTitle:it,subtitle:ct,setSubtitle:F,entityRef:H,metadata:{value:ft,loading:ht},entityMetadata:{value:dt,loading:At}}=(0,C.x)();(0,i.useEffect)(()=>{ft&&(it(ft.site_name),F(()=>{let{site_description:zt}=ft;return(!zt||zt==="None")&&(zt=""),zt}))},[ft,it,F]);const vt=k.getOptional("app.title")||"Backstage",It=[et,ct,vt].filter(Boolean).join(" | "),{locationMetadata:wt,spec:Lt}=dt||{},kt=(mt=Lt)===null||mt===void 0?void 0:mt.lifecycle,Qt=dt?(0,O.h)(dt,E.S4):[],ee=(0,K.t)(Q._Z)(),Zt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N,{label:(0,z.capitalize)(((bt=dt)===null||bt===void 0?void 0:bt.kind)||"entity"),value:(0,o.jsx)(x.d,{color:"inherit",entityRef:H,title:(gt=dt)===null||gt===void 0?void 0:gt.metadata.title,defaultKind:"Component"})}),Qt.length>0&&(0,o.jsx)(N,{label:"Owner",value:(0,o.jsx)(P.r,{color:"inherit",entityRefs:Qt,defaultKind:"group"})}),kt?(0,o.jsx)(N,{label:"Lifecycle",value:kt}):null,wt&&wt.type!=="dir"&&wt.type!=="file"?(0,o.jsx)(N,{label:"",value:(0,o.jsxs)(S.Z,{container:!0,direction:"column",alignItems:"center",style:{color:Pt},children:[(0,o.jsx)(S.Z,{style:{padding:0},item:!0,children:(0,o.jsx)(c.Z,{style:{marginTop:"-25px"}})}),(0,o.jsx)(S.Z,{style:{padding:0},item:!0,children:"Source"})]}),url:wt.target}):null]});return!At&&dt===void 0||!ht&&ft===void 0?null:(0,o.jsxs)(at.h,{type:"Documentation",typeLink:ee,title:et||st,subtitle:ct===""?void 0:ct||st,children:[(0,o.jsx)(d.Z,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:It})}),Zt,lt,V.renderComponentsByLocation(A.o.Header)]})}},95573:function(Y,R,t){"use strict";t.d(R,{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(Y,R,t){"use strict";t.r(R),t.d(R,{TechDocsSearchResultListItem:function(){return A}});var o=t(52322),i=t(2784),d=t(79692),S=t(49378),p=t(86136),g=t(90436),c=t(98864),f=t(76079);const C=(0,d.Z)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),A=O=>{const{result:x,highlight:P,lineClamp:E=5,asListItem:M=!0,asLink:b=!0,title:L,icon:$}=O,W=C(),y=({children:J})=>b?(0,o.jsx)(c.rU,{noTrack:!0,to:x.location,children:J}):(0,o.jsx)(o.Fragment,{children:J}),N=()=>{var J,G,K,z;const Q=!((J=P)===null||J===void 0)&&J.fields.title?(0,o.jsx)(f.F,{text:P.fields.title,preTag:P.preTag,postTag:P.postTag}):x.title,st=!((G=P)===null||G===void 0)&&G.fields.entityTitle?(0,o.jsx)(f.F,{text:P.fields.entityTitle,preTag:P.preTag,postTag:P.postTag}):x.entityTitle,Ct=!((K=P)===null||K===void 0)&&K.fields.name?(0,o.jsx)(f.F,{text:P.fields.name,preTag:P.preTag,postTag:P.postTag}):x.name;return x?(0,o.jsx)(S.Z,{className:W.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(y,{children:L||(0,o.jsxs)(o.Fragment,{children:[Q," | ",st!=null?st:Ct," docs"]})}),secondary:(0,o.jsx)(g.Z,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:E,overflow:"hidden"},color:"textSecondary",variant:"body2",children:!((z=P)===null||z===void 0)&&z.fields.text?(0,o.jsx)(f.F,{text:P.fields.text,preTag:P.preTag,postTag:P.postTag}):x.text})}):null},at=({children:J})=>M?(0,o.jsxs)(o.Fragment,{children:[$&&(0,o.jsx)(p.Z,{children:typeof $=="function"?$(x):$}),(0,o.jsx)("div",{className:W.flexContainer,children:J})]}):(0,o.jsx)(o.Fragment,{children:J});return(0,o.jsx)(at,{children:(0,o.jsx)(N,{})})}},53260:function(){}},function(Y){var R=function(o){return Y(Y.s=o)};Y.O(0,[2370,6202,9284,7012,427,242,5109,6816,1213,5218,4736],function(){return R(54567)});var t=Y.O()}]);})();
486
+
487
+ //# sourceMappingURL=main.04af2edd.js.map