@techdocs/cli 1.8.7 → 1.8.9-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/{serve-C91gBkLm.cjs.js → serve-Di1O6Sm4.cjs.js} +9 -1
  3. package/dist/cjs/serve-Di1O6Sm4.cjs.js.map +1 -0
  4. package/dist/embedded-app/.config-schema.json +539 -82
  5. package/dist/embedded-app/index.html +1 -1
  6. package/dist/embedded-app/static/{1833.4c60d008.chunk.js → 1833.22027501.chunk.js} +2 -2
  7. package/dist/embedded-app/static/{1833.4c60d008.chunk.js.map → 1833.22027501.chunk.js.map} +1 -1
  8. package/dist/embedded-app/static/233.35298ac1.chunk.js +3 -0
  9. package/dist/embedded-app/static/233.35298ac1.chunk.js.map +1 -0
  10. package/dist/embedded-app/static/4487.f1f04a33.chunk.js +3 -0
  11. package/dist/embedded-app/static/4487.f1f04a33.chunk.js.map +1 -0
  12. package/dist/embedded-app/static/5974.625a945e.chunk.js +3 -0
  13. package/dist/embedded-app/static/5974.625a945e.chunk.js.map +1 -0
  14. package/dist/embedded-app/static/main.d92320cd.js +497 -0
  15. package/dist/embedded-app/static/main.d92320cd.js.map +1 -0
  16. package/dist/embedded-app/static/{runtime.6a42e4f3.js → runtime.d92320cd.js} +2 -2
  17. package/dist/embedded-app/static/{runtime.6a42e4f3.js.map → runtime.d92320cd.js.map} +1 -1
  18. package/dist/embedded-app/static/vendor.d92320cd.js +160 -0
  19. package/dist/embedded-app/static/vendor.d92320cd.js.map +1 -0
  20. package/dist/index.cjs.js +2 -2
  21. package/package.json +4 -4
  22. package/dist/cjs/serve-C91gBkLm.cjs.js.map +0 -1
  23. package/dist/embedded-app/static/4487.bd1aa826.chunk.js +0 -3
  24. package/dist/embedded-app/static/4487.bd1aa826.chunk.js.map +0 -1
  25. package/dist/embedded-app/static/4992.cffa1169.chunk.js +0 -3
  26. package/dist/embedded-app/static/4992.cffa1169.chunk.js.map +0 -1
  27. package/dist/embedded-app/static/5011.7b676837.chunk.js +0 -3
  28. package/dist/embedded-app/static/5011.7b676837.chunk.js.map +0 -1
  29. package/dist/embedded-app/static/main.6a42e4f3.js +0 -497
  30. package/dist/embedded-app/static/main.6a42e4f3.js.map +0 -1
  31. package/dist/embedded-app/static/vendor.6a42e4f3.js +0 -160
  32. package/dist/embedded-app/static/vendor.6a42e4f3.js.map +0 -1
@@ -0,0 +1,497 @@
1
+ (()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8792],{86519:function(Y,T,t){"use strict";t.d(T,{c:function(){return o}});const o=Symbol.for("CATALOG_FILTER_EXISTS_0e15b590c0b343a2bae3e787e84c2111")},72348:function(Y,T,t){"use strict";t.d(T,{P:function(){return d},_P:function(){return i},oQ:function(){return o}});const o="default",i="backstage.io/view-url",d="backstage.io/edit-url",b="kubernetes.io/api-server",m="kubernetes.io/api-server-certificate-authority",p="kubernetes.io/auth-provider"},6820:function(Y,T,t){"use strict";t.d(T,{KU:function(){return b},U2:function(){return m},sM:function(){return d}});var o=t(72348);function i(p){let h=p.indexOf(":");const c=p.indexOf("/");c!==-1&&c<h&&(h=-1);const y=h===-1?void 0:p.slice(0,h),E=c===-1?void 0:p.slice(h+1,c),O=p.slice(Math.max(h+1,c+1));if(y===""||E===""||O==="")throw new TypeError(`Entity reference "${p}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:y,namespace:E,name:O}}function d(p){return{kind:p.kind,namespace:p.metadata.namespace||o.oQ,name:p.metadata.name}}function b(p,h){if(!p)throw new Error("Entity reference must not be empty");const c=h==null?void 0:h.defaultKind,y=(h==null?void 0:h.defaultNamespace)||o.oQ;let E,O,u;if(typeof p=="string"){const w=i(p);var S;E=(S=w.kind)!==null&&S!==void 0?S:c;var v;O=(v=w.namespace)!==null&&v!==void 0?v:y,u=w.name}else{var D;E=(D=p.kind)!==null&&D!==void 0?D:c;var P;O=(P=p.namespace)!==null&&P!==void 0?P:y,u=p.name}if(E)if(O){if(!u){const w=JSON.stringify(p);throw new Error(`Entity reference ${w} had missing or empty name`)}}else{const w=JSON.stringify(p);throw new Error(`Entity reference ${w} had missing or empty namespace`)}else{const w=JSON.stringify(p);throw new Error(`Entity reference ${w} had missing or empty kind (e.g. did not start with "component:" or similar)`)}return{kind:E,namespace:O,name:u}}function m(p){let h,c,y;if("metadata"in p){h=p.kind;var E;c=(E=p.metadata.namespace)!==null&&E!==void 0?E:o.oQ,y=p.metadata.name}else{h=p.kind;var O;c=(O=p.namespace)!==null&&O!==void 0?O:o.oQ,y=p.name}return`${h.toLocaleLowerCase("en-US")}:${c.toLocaleLowerCase("en-US")}/${y.toLocaleLowerCase("en-US")}`}},51372:function(Y,T,t){"use strict";t.d(T,{fT:function(){return c},jn:function(){return S},nC:function(){return h},sA:function(){return v},vv:function(){return o}});const o="ownedBy",i="ownerOf",d="consumesApi",b="apiConsumedBy",m="providesApi",p="apiProvidedBy",h="dependsOn",c="dependencyOf",y="parentOf",E="childOf",O="memberOf",u="hasMember",S="partOf",v="hasPart"},17736:function(Y,T,t){"use strict";t.d(T,{Eo:function(){return o},I4:function(){return d}});const o="backstage.io/managed-by-location",i="backstage.io/managed-by-origin-location",d="backstage.io/source-location"},78692:function(Y,T,t){"use strict";t.d(T,{Cr:function(){return p},KL:function(){return m},aY:function(){return b}});var o=t(6820),i=t(17736);const d=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;function b(h){if(typeof h!="string")throw new TypeError(`Unable to parse location ref '${h}', unexpected argument ${typeof h}`);const c=h.indexOf(":");if(c<0)throw new TypeError(`Unable to parse location ref '${h}', expected '<type>:<target>', e.g. 'url:https://host/path'`);const y=h.substring(0,c).trim(),E=h.substring(c+1).trim();if(!y||!E)throw new TypeError(`Unable to parse location ref '${h}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if(y==="http"||y==="https")throw new TypeError(`Invalid location ref '${h}', please prefix it with 'url:', e.g. 'url:${h}'`);if(d.test(E))throw new TypeError(`Invalid location ref '${h}', target is a javascript: URL`);return{type:y,target:E}}function m(h){const{type:c,target:y}=h;if(c){if(!y)throw new TypeError("Unable to stringify location ref, empty target")}else throw new TypeError("Unable to stringify location ref, empty type");if(d.test(y))throw new TypeError(`Invalid location ref '${c}:${y}', target is a javascript: URL`);return`${c}:${y}`}function p(h){var c,y,E,O,u;const S=(u=(y=h.metadata)===null||y===void 0||(c=y.annotations)===null||c===void 0?void 0:c[i.I4])!==null&&u!==void 0?u:(O=h.metadata)===null||O===void 0||(E=O.annotations)===null||E===void 0?void 0:E[i.Eo];if(!S)throw new Error(`Entity '${(0,o.U2)(h)}' is missing location`);return b(S)}},77310:function(Y,T,t){"use strict";t.d(T,{z:function(){return y}});var o=t(31085),i=t(10394),d=t(54917),b=t(14041),m=t(69578),p=t(40697),h=t(25577),c=t(37916);function y(E){const{text:O,language:u,showLineNumbers:S=!1,highlightedNumbers:v,customStyle:D,showCopyCodeButton:P=!1}=E,w=(0,d.A)(),L=w.palette.type==="dark"?p.A:h.A,I=w.palette.type==="dark"?"#256bf3":"#e6ffed";return(0,o.jsxs)(i.A,{position:"relative",children:[(0,o.jsx)(m.A,{customStyle:D,language:u,style:L,showLineNumbers:S,wrapLines:!0,lineNumberStyle:{color:w.palette.textVerySubtle},lineProps:A=>v!=null&&v.includes(A)?{style:{backgroundColor:I}}:{},children:O}),P&&(0,o.jsx)(i.A,{position:"absolute",top:0,right:0,children:(0,o.jsx)(c.l,{text:O})})]})}},37916:function(Y,T,t){"use strict";t.d(T,{l:function(){return O}});var o=t(31085),i=t(72427),d=t(39837),b=t(29365),m=t(71677),p=t(99594),h=t(14041),c=t(36338),y=t(10315),E=t(87849);function O(u){const{t:S}=(0,E.i)(y.O),{text:v,tooltipDelay:D=1e3,tooltipText:P=S("copyTextButton.tooltipText"),"aria-label":w="Copy text"}=u,L=(0,i.gf)(d.m),[I,A]=(0,h.useState)(!1),[{error:z},V]=(0,c.A)();(0,h.useEffect)(()=>{z&&L.post(z)},[z,L]);const q=k=>{k.stopPropagation(),A(!0),V(v)};return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(m.Ay,{id:"copy-test-tooltip",title:P,placement:"top",leaveDelay:D,onClose:()=>A(!1),open:I,children:(0,o.jsx)(b.A,{onClick:q,"aria-label":w,children:(0,o.jsx)(p.A,{})})})})}},44186:function(Y,T,t){"use strict";t.d(T,{p:function(){return S}});var o=t(31085),i=t(42899),d=t(58837),b=t(72501),m=t(14041),p=t.p+"static/missingAnnotation.67f79e98..svg",h=t.p+"static/noInformation.4b426325..svg",c=t.p+"static/createComponent.975d1e1e..svg",y=t.p+"static/noBuild.1715fa71..svg";const E=(0,d.A)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),O=({missing:v})=>{const D=E();switch(v){case"field":return(0,o.jsx)("img",{src:p,className:D.generalImg,alt:"annotation is missing"});case"info":return(0,o.jsx)("img",{src:h,alt:"no Information",className:D.generalImg});case"content":return(0,o.jsx)("img",{src:c,alt:"create Component",className:D.generalImg});case"data":return(0,o.jsx)("img",{src:y,alt:"no Build",className:D.generalImg});default:return null}},u=(0,d.A)(v=>({root:{backgroundColor:v.palette.background.default,padding:v.spacing(2,0,0,0)},action:{marginTop:v.spacing(2)},imageContainer:{position:"relative"}}),{name:"BackstageEmptyState"});function S(v){const{title:D,description:P,missing:w,action:L}=v,I=u();return(0,o.jsxs)(i.A,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:I.root,spacing:2,children:[(0,o.jsx)(i.A,{item:!0,xs:12,md:6,children:(0,o.jsxs)(i.A,{container:!0,direction:"column",children:[(0,o.jsx)(i.A,{item:!0,xs:!0,children:(0,o.jsx)(b.A,{variant:"h5",children:D})}),(0,o.jsx)(i.A,{item:!0,xs:!0,children:(0,o.jsx)(b.A,{variant:"body1",children:P})}),(0,o.jsx)(i.A,{item:!0,xs:!0,className:I.action,children:L})]})}),(0,o.jsx)(i.A,{item:!0,xs:12,md:6,className:I.imageContainer,children:typeof w=="string"?(0,o.jsx)(O,{missing:w}):w.customImage})]})}},22020:function(Y,T,t){"use strict";t.d(T,{b:function(){return O}});var o=t(31085),i=t(58837),d=t(58007),b=t(8109),m=t(5951),p=t(14041),h=t(37916),c=t(88640);const y=(0,i.A)(u=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:u.spacing(2)},divider:{margin:u.spacing(2)}}),{name:"BackstageErrorPanel"}),E=({error:u,message:S,stack:v,children:D})=>{const P=y();return(0,o.jsxs)(d.A,{dense:!0,children:[(0,o.jsxs)(b.A,{alignItems:"flex-start",children:[(0,o.jsx)(m.A,{classes:{secondary:P.text},primary:"Error",secondary:u}),(0,o.jsx)(h.l,{text:u})]}),(0,o.jsxs)(b.A,{alignItems:"flex-start",children:[(0,o.jsx)(m.A,{classes:{secondary:P.text},primary:"Message",secondary:S}),(0,o.jsx)(h.l,{text:S})]}),v&&(0,o.jsxs)(b.A,{alignItems:"flex-start",children:[(0,o.jsx)(m.A,{classes:{secondary:P.text},primary:"Stack Trace",secondary:v}),(0,o.jsx)(h.l,{text:v})]}),D]})};function O(u){const{title:S,error:v,defaultExpanded:D,titleFormat:P,children:w}=u;return(0,o.jsx)(c.B,{severity:"error",title:S!=null?S:v.message,defaultExpanded:D,titleFormat:P,children:(0,o.jsx)(E,{error:v.name,message:v.message,stack:v.stack,children:w})})}},72072:function(Y,T,t){"use strict";t.d(T,{N_:function(){return k}});var o=t(31085),i=t(72427),d=t(65461),b=t(93368),m=t(49203),p=t(58837),h=t(72501),c=t(53373),y=t.n(c),E=t(45250),O=t.n(E),u=t(14041),S=t(18690),v=t(73970);function D(){const[W]=(0,S.AV)((0,o.jsx)(S.qh,{index:!0,element:(0,o.jsx)("div",{})}));return!W.index}const P=(0,p.A)({visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",overflow:"hidden",position:"absolute",userSelect:"none",whiteSpace:"nowrap",height:1,width:1},externalLink:{position:"relative"}},{name:"Link"}),w=W=>/^([a-z+.-]+):/.test(W),L=/^[\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,I=window.open;if(I&&!I.__backstage){const W=function(...H){const tt=String(H[0]);if(L.test(tt))throw new Error("Rejected window.open() with a javascript: URL as a security precaution");return I.apply(this,H)};W.__backstage=!0,window.open=W}const A=()=>{try{return(0,i.gf)(d.U).getOptionalString("app.baseUrl")}catch{return}},z=()=>{const W="http://sample.dev";var X;const H=(X=A())!==null&&X!==void 0?X:"/",{pathname:tt}=new URL(H,W);return(0,E.trimEnd)(tt,"/")},V=W=>{let X=String(W);const H=z(),tt=w(X),et=X.startsWith(H);return!tt&&!et&&(X=H.concat(X)),X},q=W=>{if(W instanceof Array)return W.map(q).join(" ").trim();if(typeof W=="object"&&W){var X;return q(W==null||(X=W.props)===null||X===void 0?void 0:X.children)}return["string","number"].includes(typeof W)?String(W):""},k=u.forwardRef(({onClick:W,noTrack:X,...H},tt)=>{const et=P(),xt=(0,b.s)(),st=D()?V(H.to):H.to,Pt=q(H.children)||st,ft=w(st),mt=ft&&!!/^https?:/.exec(st);if(L.test(st))throw new Error("Link component rejected javascript: URL as a security precaution");const lt=it=>{W==null||W(it),X||xt.captureEvent("click",Pt,{attributes:{to:st}})};return ft?(0,o.jsxs)(m.A,{...mt?{target:"_blank",rel:"noopener"}:{},...H,...H["aria-label"]?{"aria-label":`${H["aria-label"]}, Opens in a new window`}:{},ref:tt,href:st,onClick:lt,className:y()(et.externalLink,H.className),children:[H.children,(0,o.jsx)(h.A,{component:"span",className:et.visuallyHidden,children:", Opens in a new window"})]}):(0,o.jsx)(m.A,{...H,ref:tt,component:v.N_,to:st,onClick:lt})})},73896:function(Y,T,t){"use strict";t.d(T,{z:function(){return p}});var o=t(31085),i=t(64947),d=t(14041),b=t(72072);const m=d.forwardRef((c,y)=>(0,o.jsx)(b.N_,{ref:y,...c,color:"initial"})),p=d.forwardRef((c,y)=>(0,o.jsx)(i.A,{ref:y,component:m,...c})),h=null},4650:function(Y,T,t){"use strict";t.d(T,{h:function(){return O}});var o=t(31085),i=t(58837),d=t(45872),b=t(61125),m=t(14041),p=t(77310);const h=(0,i.A)(u=>({markdown:{"& table":{borderCollapse:"collapse",border:`1px solid ${u.palette.border}`},"& th, & td":{border:`1px solid ${u.palette.border}`,padding:u.spacing(1)},"& td":{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:u.spacing(3,2,3,2.5),borderBottom:0},"& th":{backgroundColor:u.palette.background.paper},"& tr":{backgroundColor:u.palette.background.paper},"& tr:nth-child(odd)":{backgroundColor:u.palette.background.default},"& a":{color:u.palette.link},"& img":{maxWidth:"100%"}}}),{name:"BackstageMarkdownContent"}),c=(u,S)=>S?typeof S=="string"?u+S:m.Children.toArray(S.props.children).reduce(c,u):u,y=({level:u,children:S})=>{const P=m.Children.toArray(S).reduce(c,"").toLocaleLowerCase("en-US").replace(/\W/g,"-");return m.createElement(`h${u}`,{id:P},S)},E={code:({inline:u,className:S,children:v,...D})=>{const P=String(v).replace(/\n+$/,""),w=/language-(\w+)/.exec(S||"");return!u&&w?(0,o.jsx)(p.z,{language:w[1],text:P}):(0,o.jsx)("code",{className:S,...D,children:v})},h1:y,h2:y,h3:y,h4:y,h5:y,h6:y};function O(u){const{content:S,dialect:v="gfm",linkTarget:D,transformLinkUri:P,transformImageUri:w,className:L}=u,I=h();return(0,o.jsx)(d.$,{remarkPlugins:v==="gfm"?[b.A]:[],className:`${I.markdown} ${L}`,children:S,components:E,linkTarget:D,transformLinkUri:P,transformImageUri:w})}},68146:function(Y,T,t){"use strict";t.d(T,{k:function(){return p}});var o=t(31085),i=t(10394),d=t(88951),b=t(54917),m=t(14041);function p(h){const c=(0,b.A)(),[y,E]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{const O=setTimeout(()=>E(!0),c.transitions.duration.short);return()=>clearTimeout(O)},[c.transitions.duration.short]),y?(0,o.jsx)(d.A,{...h,"data-testid":"progress"}):(0,o.jsx)(i.A,{display:"none"})}},66917:function(Y,T,t){"use strict";t.d(T,{w:function(){return k}});var o=t(31085),i=t(10394),d=t(69076),b=t(67720),m=t(95061),p=t(41857),h=t(48543),c=t(26343),y=t(81215),E=t(87051),O=t(12398),u=t(58837),S=t(72501),v=t(14041),D=t(10437);const P=(0,u.A)(W=>(0,O.A)({icon:{position:"absolute",right:W.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageClosedDropdown"});var L=()=>{const W=P();return(0,o.jsx)(D.A,{className:W.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:"currentColor"})})};const I=(0,u.A)(W=>(0,O.A)({icon:{position:"absolute",right:W.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageOpenedDropdown"});var z=()=>{const W=I();return(0,o.jsx)(D.A,{className:W.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:"currentColor"})})};const V=(0,E.A)(W=>(0,O.A)({root:{"label + &":{marginTop:W.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:W.palette.primary.main}},input:{borderRadius:W.shape.borderRadius,position:"relative",backgroundColor:W.palette.background.paper,border:"1px solid #ced4da",fontSize:W.typography.body1.fontSize,padding:W.spacing(1.25,3.25,1.25,1.5),transition:W.transitions.create(["border-color","box-shadow"]),"&:focus":{background:W.palette.background.paper,borderRadius:W.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(p.A),q=(0,u.A)(W=>(0,O.A)({formControl:{margin:W.spacing(1,0),maxWidth:300},label:{transform:"initial",fontWeight:"bold",fontSize:W.typography.body2.fontSize,fontFamily:W.typography.fontFamily,color:W.palette.text.primary,"&.Mui-focused":{color:W.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:W.typography.body2.fontSize,fontFamily:W.typography.fontFamily,color:W.palette.text.primary,"&.Mui-focused":{color:W.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function k(W){const{multiple:X,items:H,label:tt,placeholder:et,selected:xt,onChange:st,triggerReset:Pt,native:ft=!1,disabled:mt=!1,margin:lt}=W,it=q(),[vt,_]=(0,v.useState)(xt||(X?[]:"")),[yt,gt]=(0,v.useState)(!1);(0,v.useEffect)(()=>{_(X?[]:"")},[Pt,X]),(0,v.useEffect)(()=>{_(xt||(X?[]:""))},[xt,X]);const ot=Et=>{_(Et.target.value),st(Et.target.value)},dt=Et=>{if(mt){Et.preventDefault();return}gt(N=>X&&!(Et.target instanceof HTMLElement)?!0:!N)},ct=()=>{gt(!1)},Tt=Et=>()=>{const N=vt.filter(G=>G!==Et);_(N),st(N)};return(0,o.jsx)(i.A,{className:it.root,children:(0,o.jsxs)(m.A,{className:it.formControl,children:[(0,o.jsx)(h.A,{className:it.formLabel,children:tt}),(0,o.jsxs)(y.A,{"aria-label":tt,value:vt,native:ft,disabled:mt,"data-testid":"select",displayEmpty:!0,multiple:X,margin:lt,onChange:ot,open:yt,onOpen:dt,onClose:ct,input:(0,o.jsx)(V,{}),label:tt,renderValue:Et=>{var N;return X&&vt.length!==0?(0,o.jsx)(i.A,{className:it.chips,children:Et.map(G=>{const pt=H.find(bt=>bt.value===G);return pt?(0,o.jsx)(b.A,{label:pt==null?void 0:pt.label,clickable:!0,onDelete:Tt(G),className:it.chip},pt==null?void 0:pt.value):!1})}):(0,o.jsx)(S.A,{children:vt.length===0?et||"":(N=H.find(G=>G.value===Et))===null||N===void 0?void 0:N.label})},IconComponent:()=>yt?(0,o.jsx)(z,{}):(0,o.jsx)(L,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[et&&!X&&(0,o.jsx)(c.A,{value:[],children:et}),ft?H&&H.map(Et=>(0,o.jsx)("option",{value:Et.value,children:Et.label},Et.value)):H&&H.map(Et=>(0,o.jsxs)(c.A,{value:Et.value,children:[X&&(0,o.jsx)(d.A,{color:"primary",checked:vt.includes(Et.value)||!1,className:it.checkbox}),Et.label]},Et.value))]})]})})}},3851:function(Y,T,t){"use strict";t.d(T,{Y:function(){return vt}});var o=t(31085),i=t(82266),d=t(10394),b=t(64947),m=t(93453),p=t(29365),h=t(46423),c=t(5951),y=t(26343),E=t(28233),O=t(55197),u=t(58837),S=t(72501),v=t(5893),D=t(14041),P=t(10795),w=t(27799);function L(_){const{id:yt,Fallback:gt=w.A,...ot}=_,dt=(0,i.n)();var ct;const Tt=(ct=dt.getSystemIcon(yt))!==null&&ct!==void 0?ct:gt;return(0,o.jsx)(Tt,{...ot})}function I(_){return _jsx(L,{id:"brokenImage",..._})}function A(_){return _jsx(L,{id:"catalog",..._})}function z(_){return _jsx(L,{id:"chat",..._})}function V(_){return _jsx(L,{id:"dashboard",..._})}function q(_){return _jsx(L,{id:"docs",..._})}function k(_){return _jsx(L,{id:"email",..._})}function W(_){return _jsx(L,{id:"github",..._})}function X(_){return _jsx(L,{id:"group",..._})}function H(_){return(0,o.jsx)(L,{id:"help",..._})}function tt(_){return _jsx(L,{id:"user",..._})}function et(_){return _jsx(L,{id:"warning",..._})}var xt=t(72072),st=t(10315),Pt=t(87849);const ft=(0,u.A)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),mt=({icon:_})=>{const yt=(0,i.n)();var gt;const ot=_&&(gt=yt.getSystemIcon(_))!==null&&gt!==void 0?gt:H;return(0,o.jsx)(ot,{})},lt=({link:_})=>{var yt;return(0,o.jsx)(xt.N_,{to:_.url,children:(yt=_.title)!==null&&yt!==void 0?yt:_.url})},it=({item:_})=>{var yt;return(0,o.jsxs)(y.A,{children:[(0,o.jsx)(h.A,{children:(0,o.jsx)(mt,{icon:_.icon})}),(0,o.jsx)(c.A,{primary:_.title,secondary:(yt=_.links)===null||yt===void 0?void 0:yt.reduce((gt,ot,dt)=>[...gt,dt>0&&(0,o.jsx)("br",{},dt),(0,o.jsx)(lt,{link:ot},ot.url)],[])})]})};function vt(_){const{t:yt}=(0,Pt.i)(st.O),{title:gt,items:ot,children:dt}=_,{items:ct}=(0,P.l)(),[Tt,Et]=(0,D.useState)(!1),[N,G]=(0,D.useState)(null),pt=ft(),bt=(0,v.A)(Ot=>Ot.breakpoints.down("sm")),Ut=Ot=>{G(Ot.currentTarget),Et(!0)},Rt=()=>{Et(!1)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.A,{display:"flex",ml:1,children:bt?(0,o.jsx)(p.A,{color:"primary",size:"small",onClick:Ut,"data-testid":"support-button","aria-label":"Support",children:(0,o.jsx)(H,{})}):(0,o.jsx)(b.A,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:Ut,startIcon:(0,o.jsx)(H,{}),children:yt("supportButton.title")})}),(0,o.jsxs)(O.Ay,{"data-testid":"support-button-popover",open:Tt,anchorEl:N,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:Rt,children:[(0,o.jsxs)(E.A,{className:pt.popoverList,autoFocusItem:!!N,children:[gt&&(0,o.jsx)(y.A,{alignItems:"flex-start",className:pt.menuItem,children:(0,o.jsx)(S.A,{variant:"subtitle1",children:gt})}),D.Children.map(dt,(Ot,Ft)=>(0,o.jsx)(y.A,{alignItems:"flex-start",className:pt.menuItem,children:Ot},`child-${Ft}`)),(ot!=null?ot:ct).map((Ot,Ft)=>(0,o.jsx)(it,{item:Ot},`item-${Ft}`))]}),(0,o.jsx)(m.A,{children:(0,o.jsx)(b.A,{color:"primary",onClick:Rt,"aria-label":"Close",children:yt("supportButton.close")})})]})]})}},14209:function(Y,T,t){"use strict";t.d(T,{X:function(){return ct}});var o=t(31085),i=t(25301),d=t(10394),b=t(29365),m=t(87051),p=t(58837),h=t(54917),c=t(72501),y=t(83313),E=t(89019),O=t(62461),u=t(68887),S=t(63798),v=t(64704),D=t(6774),P=t(75625),w=t(65859),L=t(5416),I=t(33494),A=t(80113),z=t(26229),V=t(46802),q=t(45250),k=t(14041),W=t(64947),X=t(66917),H=t(10315),tt=t(87849);const et=(0,p.A)(N=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:N.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:N.spacing(7.5),justifyContent:"space-between",borderBottom:`1px solid ${N.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:N.spacing(2)}}}),{name:"BackstageTableFilters"}),xt=N=>{var G;const pt=et(),{onChangeFilters:bt}=N,{t:Ut}=(0,tt.i)(H.O),[Rt,Ot]=(0,k.useState)({...N.selectedFilters}),[Ft,wt]=(0,k.useState)(!1),Nt=()=>{Ot({}),wt(Xt=>!Xt)};return(0,k.useEffect)(()=>{bt(Rt)},[Rt,bt]),(0,o.jsxs)(d.A,{className:pt.root,children:[(0,o.jsxs)(d.A,{className:pt.header,children:[(0,o.jsx)(d.A,{className:pt.value,children:Ut("table.filter.title")}),(0,o.jsx)(W.A,{color:"primary",onClick:Nt,children:Ut("table.filter.clearAll")})]}),(0,o.jsx)(d.A,{className:pt.filters,children:((G=N.filters)===null||G===void 0?void 0:G.length)&&N.filters.map(Xt=>(0,o.jsx)(X.w,{triggerReset:Ft,...Xt.element,selected:Rt[Xt.element.label],onChange:de=>Ot({...Rt,[Xt.element.label]:de})},Xt.element.label))})]})};var st=t(78467);function Pt(N){return(0,o.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:N.colSpan,children:(0,o.jsx)(d.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"15rem"},children:(0,o.jsx)(st.A,{size:"5rem"})})})})})}const ft={Add:(0,k.forwardRef)((N,G)=>(0,o.jsx)(y.A,{...N,ref:G})),Check:(0,k.forwardRef)((N,G)=>(0,o.jsx)(O.A,{...N,ref:G})),Clear:(0,k.forwardRef)((N,G)=>(0,o.jsx)(v.A,{...N,ref:G})),Delete:(0,k.forwardRef)((N,G)=>(0,o.jsx)(D.A,{...N,ref:G})),DetailPanel:(0,k.forwardRef)((N,G)=>(0,o.jsx)(S.A,{...N,ref:G})),Edit:(0,k.forwardRef)((N,G)=>(0,o.jsx)(P.A,{...N,ref:G})),Export:(0,k.forwardRef)((N,G)=>(0,o.jsx)(z.A,{...N,ref:G})),Filter:(0,k.forwardRef)((N,G)=>(0,o.jsx)(w.A,{...N,ref:G})),FirstPage:(0,k.forwardRef)((N,G)=>(0,o.jsx)(L.A,{...N,ref:G})),LastPage:(0,k.forwardRef)((N,G)=>(0,o.jsx)(I.A,{...N,ref:G})),NextPage:(0,k.forwardRef)((N,G)=>(0,o.jsx)(S.A,{...N,ref:G})),PreviousPage:(0,k.forwardRef)((N,G)=>(0,o.jsx)(u.A,{...N,ref:G})),ResetSearch:(0,k.forwardRef)((N,G)=>(0,o.jsx)(v.A,{...N,ref:G})),Search:(0,k.forwardRef)((N,G)=>(0,o.jsx)(w.A,{...N,ref:G})),SortArrow:(0,k.forwardRef)((N,G)=>(0,o.jsx)(E.A,{...N,ref:G})),ThirdStateCheck:(0,k.forwardRef)((N,G)=>(0,o.jsx)(A.A,{...N,ref:G})),ViewColumn:(0,k.forwardRef)((N,G)=>(0,o.jsx)(V.A,{...N,ref:G}))};function mt(N,G){const pt=G.split(".");let bt=N[pt[0]];for(let Ut=1;Ut<pt.length;++Ut){if(bt===void 0)return bt;const Rt=pt[Ut];bt=bt[Rt]}return bt}const lt=(0,m.A)(N=>({header:{padding:N.spacing(1,2,1,2.5),borderTop:`1px solid ${N.palette.grey.A100}`,borderBottom:`1px solid ${N.palette.grey.A100}`,fontWeight:N.typography.fontWeightBold,position:"static",wordBreak:"normal",textTransform:"uppercase"}}),{name:"BackstageTableHeader"})(i.rV),it=(0,m.A)(N=>({root:{padding:N.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:N.typography.fontWeightBold}},searchField:{paddingRight:N.spacing(2)}}),{name:"BackstageTableToolbar"})(i.Nb),vt=(0,p.A)(N=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:N.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),_=(0,p.A)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"});function yt(N,G){return N.map(pt=>{var bt;const Ut=(bt=pt.headerStyle)!==null&&bt!==void 0?bt:{};let Rt=pt.cellStyle||{};if(pt.highlight)if(Ut.color=G.palette.textContrast,typeof Rt=="object")Rt.fontWeight=G.typography.fontWeightBold;else{const Ot=Rt;Rt=(Ft,wt,Nt)=>({...Ot(Ft,wt,Nt),fontWeight:G.typography.fontWeightBold})}return{...pt,headerStyle:Ut,cellStyle:Rt}})}function gt(N,G){return(0,q.transform)(N,(pt,bt,Ut)=>{(0,q.isEqual)(bt,G[Ut])||(pt[Ut]=bt)})}const ot={search:"",filtersOpen:!1,filters:{}};function dt(N){const{toolbarRef:G,setSearch:pt,hasFilters:bt,selectedFiltersLength:Ut,toggleFilters:Rt}=N,Ot=vt(),Ft=(0,k.useCallback)(wt=>{N.onSearchChanged(wt),pt(wt)},[N,pt]);return bt?(0,o.jsxs)(d.A,{className:Ot.root,children:[(0,o.jsxs)(d.A,{className:Ot.root,children:[(0,o.jsx)(b.A,{onClick:Rt,"aria-label":"filter list",children:(0,o.jsx)(w.A,{})}),(0,o.jsxs)(c.A,{className:Ot.title,children:["Filters (",Ut,")"]})]}),(0,o.jsx)(it,{...N,ref:G,onSearchChanged:Ft})]}):(0,o.jsx)(it,{...N,ref:G,onSearchChanged:Ft})}function ct(N){const{data:G,columns:pt,emptyContent:bt,options:Ut,title:Rt,subtitle:Ot,localization:Ft,filters:wt,initialState:Nt,onStateChange:Xt,components:de,isLoading:ae,...le}=N,kt=_(),_t=(0,h.A)(),ge={...ot,...Nt},[ke,Ue]=(0,k.useState)(ge.filtersOpen),Ge=(0,k.useCallback)(()=>Ue(ue=>!ue),[Ue]),[Pe,sn]=(0,k.useState)(ge.filters),[_e,ne]=(0,k.useState)(ge.search);(0,k.useEffect)(()=>{if(Xt){const ue=gt({search:_e,filtersOpen:ke,filters:Pe},ot);Xt(ue)}},[_e,ke,Pe,Xt]);const Ke=(0,k.useCallback)(ue=>{var Re;return(Re=pt.find(He=>He.title===ue))===null||Re===void 0?void 0:Re.field},[pt]),ze=(0,k.useMemo)(()=>{if(typeof G=="function"||!Pe)return G;const ue=Object.values(Pe);return G&&ue.flat().length?G.filter(He=>!!Object.entries(Pe).filter(([,Qe])=>!!Qe.length).every(([Qe,Ie])=>{const Fe=mt(He,Ke(Qe));return Array.isArray(Fe)&&Array.isArray(Ie)?Fe.some(M=>Ie.includes(M)):Array.isArray(Fe)?Fe.includes(Ie):Array.isArray(Ie)?Ie.includes(Fe):Fe===Ie})):G},[G,Pe,Ke]),qe=Object.values(Pe).flat().length,Ye=!!(wt!=null&&wt.length),xe=(0,k.useCallback)(ue=>(0,o.jsx)(dt,{setSearch:ne,hasFilters:Ye,selectedFiltersLength:qe,toggleFilters:Ge,...ue}),[Ge,Ye,qe,ne]),an=typeof G!="function"&&G.length===0,ln=pt.length,cn=(0,k.useMemo)(()=>Tt({hasNoRows:an,emptyContent:bt,columnCount:ln,loading:ae}),[an,bt,ln,ae]);return(0,o.jsxs)(d.A,{className:kt.root,children:[ke&&G&&typeof G!="function"&&(wt==null?void 0:wt.length)&&(0,o.jsx)(xt,{filters:Et(wt,G,pt),selectedFilters:Pe,onChangeFilters:sn}),(0,o.jsx)(i.Ay,{components:{Header:lt,Body:cn,Toolbar:xe,...de},options:Ut,columns:yt(pt,_t),icons:ft,title:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.A,{variant:"h5",component:"h2",children:Rt}),Ot&&(0,o.jsx)(c.A,{color:"textSecondary",variant:"body1",children:Ot})]}),data:ze,style:{width:"100%"},localization:{toolbar:{searchPlaceholder:"Filter",searchTooltip:"Filter"},...Ft},...le})]})}ct.icons=Object.freeze(ft);function Tt({columnCount:N,emptyContent:G,hasNoRows:pt,loading:bt}){return Ut=>bt?(0,o.jsx)(Pt,{colSpan:N}):G&&pt?(0,o.jsx)("tbody",{children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:N,children:G})})}):(0,o.jsx)(i.C6,{...Ut})}function Et(N,G,pt){const bt=Rt=>{const Ot=new Set,Ft=wt=>{wt!=null&&Ot.add(wt)};return G&&G.forEach(wt=>{var Nt;const Xt=mt(wt,(Nt=pt.find(de=>de.title===Rt))===null||Nt===void 0?void 0:Nt.field);Array.isArray(Xt)?Xt.forEach(Ft):Ft(Xt)}),Ot},Ut=Rt=>({placeholder:"All results",label:Rt.column,multiple:Rt.type==="multiple-select",items:[...bt(Rt.column)].sort().map(Ot=>({label:Ot,value:Ot}))});return N.map(Rt=>({type:Rt.type,element:Ut(Rt)}))}},88640:function(Y,T,t){"use strict";t.d(T,{B:function(){return A}});var o=t(31085),i=t(268),d=t(58837),b=t(8973),m=t(29655),p=t(91567),h=t(42899),c=t(72501),y=t(9181),E=t(6924),O=t(14041),u=t(4650);const S=(z,V)=>(V.palette.type==="light"?i.e$:i.a)(V.palette[z].light,.6),v=(z,V)=>(V.palette.type==="light"?i.a:i.e$)(V.palette[z].light,.9),D=(0,d.A)(z=>({root:{marginRight:z.spacing(1),fill:({severity:V})=>S(V,z)}})),P=({severity:z})=>{const V=D({severity:z});return(0,o.jsx)(y.A,{classes:V})},w=({severity:z})=>{const V=D({severity:z});return(0,o.jsx)(E.A,{classes:V})},L=(0,d.A)(z=>({panel:{backgroundColor:({severity:V})=>v(V,z),color:({severity:V})=>S(V,z),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:V})=>S(V,z),fontWeight:z.typography.fontWeightBold},markdownContent:{"& p":{display:"inline"}},message:{width:"100%",display:"block",color:({severity:V})=>S(V,z),backgroundColor:({severity:V})=>v(V,z)},details:{width:"100%",display:"block",color:z.palette.textContrast,backgroundColor:z.palette.background.default,border:`1px solid ${z.palette.border}`,padding:z.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"}),I=z=>z.charAt(0).toLocaleUpperCase("en-US")+z.slice(1);function A(z){const{severity:V="warning",title:q,titleFormat:k,message:W,children:X,defaultExpanded:H}=z,tt=L({severity:V}),et=I(V)+(q?`: ${q}`:"");return(0,o.jsxs)(b.A,{defaultExpanded:H!=null?H:!1,className:tt.panel,role:"alert",children:[(0,o.jsxs)(m.A,{expandIcon:(0,o.jsx)(w,{severity:V}),className:tt.summary,children:[(0,o.jsx)(P,{severity:V}),(0,o.jsx)(c.A,{className:tt.summaryText,variant:"subtitle1",children:k==="markdown"?(0,o.jsx)(u.h,{content:et,className:tt.markdownContent}):et})]}),(W||X)&&(0,o.jsx)(p.A,{children:(0,o.jsxs)(h.A,{container:!0,children:[W&&(0,o.jsx)(h.A,{item:!0,xs:12,children:(0,o.jsx)(c.A,{className:tt.message,variant:"body1",children:W})}),X&&(0,o.jsx)(h.A,{item:!0,xs:12,className:tt.details,children:X})]})})]})}},10795:function(Y,T,t){"use strict";t.d(T,{l:function(){return p}});var o=t(72427),i=t(65461),d=t(10315),b=t(87849);const m=()=>{const{t:h}=(0,b.i)(d.O);return{url:"https://github.com/backstage/backstage/issues",items:[{title:h("supportConfig.default.title"),icon:"warning",links:[{title:h("supportConfig.default.linkTitle"),url:"https://github.com/backstage/backstage/blob/master/app-config.yaml"}]}]}};function p(){const c=(0,o.Q2)().get(i.U),y=c==null?void 0:c.getOptionalConfig("app.support"),E=m();return y?{url:y.getString("url"),items:y.getConfigArray("items").flatMap(O=>{var u;return{title:O.getString("title"),icon:O.getOptionalString("icon"),links:((u=O.getOptionalConfigArray("links"))!==null&&u!==void 0?u:[]).flatMap(S=>({url:S.getString("url"),title:S.getString("title")}))}})}:E}},26280:function(Y,T,t){"use strict";t.d(T,{U:function(){return h}});var o=t(31085),i=t(58837),d=t(53373),b=t.n(d),m=t(14041);const p=(0,i.A)(c=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:c.spacing(3),paddingBottom:c.spacing(3),paddingLeft:c.spacing(2),paddingRight:c.spacing(2),[c.breakpoints.up("sm")]:{paddingLeft:c.spacing(3),paddingRight:c.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function h(c){const{className:y,stretch:E,noPadding:O,children:u,...S}=c,v=p();return(0,o.jsx)("article",{...S,className:b()(v.root,y,{[v.stretch]:E,[v.noPadding]:O}),children:u})}},59428:function(Y,T,t){"use strict";t.d(T,{d:function(){return y}});var o=t(31085),i=t(10394),d=t(58837),b=t(72501),m=t(14041),p=t(93285);const h=E=>(0,d.A)(O=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:O.spacing(2),textAlign:E.textAlign},leftItemsBox:{flex:"1 1 auto",minWidth:0,overflow:"visible"},rightItemsBox:{flex:"0 1 auto",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginLeft:O.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}),c=({title:E="Unknown page",className:O})=>(0,o.jsx)(b.A,{variant:"h4",component:"h2",className:O,"data-testid":"header-title",children:E});function y(E){const{description:O,title:u,titleComponent:S=void 0,children:v,textAlign:D="left"}=E,P=h({textAlign:D})(),w=S||(0,o.jsx)(c,{title:u,className:P.title});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.m,{title:u}),(0,o.jsxs)(i.A,{className:P.container,children:[(0,o.jsxs)(i.A,{className:P.leftItemsBox,children:[w,O&&(0,o.jsx)(b.A,{className:P.description,variant:"body2",children:O})]}),(0,o.jsx)(i.A,{className:P.rightItemsBox,children:v})]})]})}},12173:function(Y,T,t){"use strict";t.d(T,{M:function(){return L}});var o=t(31085),i=t(42899),d=t(58837),b=t(72501),m=t(14041),p=t(18690),h=t(72072),c=t(10795),y=t.p+"static/mic-drop.fe3ef4d0..svg";const E=(0,d.A)(I=>({micDrop:{maxWidth:"60%",bottom:I.spacing(2),right:I.spacing(2),[I.breakpoints.down("xs")]:{maxWidth:"96%",bottom:"unset",right:"unset",margin:I.spacing(10,"auto",4)}}}),{name:"BackstageErrorPageMicDrop"}),O=()=>{const I=E();return(0,o.jsx)("img",{src:y,className:I.micDrop,alt:"Girl dropping mic from her hands"})};var u=t(77310),S=t(87849),v=t(10315);const D=(0,d.A)(I=>({title:{paddingBottom:I.spacing(5),[I.breakpoints.down("xs")]:{paddingBottom:I.spacing(4),fontSize:I.typography.h3.fontSize}}}),{name:"BackstageErrorPageStackDetails"});function P(I){const{stack:A}=I,z=D(),{t:V}=(0,S.i)(v.O),[q,k]=(0,m.useState)(!1);return q?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(b.A,{variant:"h6",className:z.title,children:(0,o.jsx)(h.N_,{to:"#",onClick:()=>k(!1),children:V("errorPage.showLessDetails")})}),(0,o.jsx)(u.z,{text:A,language:"text",showCopyCodeButton:!0,showLineNumbers:!0})]}):(0,o.jsx)(b.A,{variant:"h6",className:z.title,children:(0,o.jsx)(h.N_,{to:"#",onClick:()=>k(!0),children:V("errorPage.showMoreDetails")})})}const w=(0,d.A)(I=>({container:{padding:I.spacing(8),[I.breakpoints.down("xs")]:{padding:I.spacing(2)}},title:{paddingBottom:I.spacing(5),[I.breakpoints.down("xs")]:{paddingBottom:I.spacing(4),fontSize:I.typography.h3.fontSize}},subtitle:{color:I.palette.textSubtle}}),{name:"BackstageErrorPage"});function L(I){const{status:A="",statusMessage:z,additionalInfo:V,supportUrl:q,stack:k}=I,W=w(),X=(0,p.Zp)(),H=(0,c.l)(),{t:tt}=(0,S.i)(v.O);return(0,o.jsxs)(i.A,{container:!0,className:W.container,children:[(0,o.jsxs)(i.A,{item:!0,xs:12,sm:8,md:4,children:[(0,o.jsx)(b.A,{"data-testid":"error",variant:"body1",className:W.subtitle,children:tt("errorPage.subtitle",{status:A,statusMessage:z})}),(0,o.jsx)(b.A,{variant:"body1",className:W.subtitle,children:V}),(0,o.jsx)(b.A,{variant:"h2",className:W.title,children:tt("errorPage.title")}),(0,o.jsxs)(b.A,{variant:"h6",className:W.title,children:[(0,o.jsx)(h.N_,{to:"#","data-testid":"go-back-link",onClick:()=>X(-1),children:tt("errorPage.goBack")}),"... or please"," ",(0,o.jsx)(h.N_,{to:q||H.url,children:"contact support"})," if you think this is a bug."]}),k&&(0,o.jsx)(P,{stack:k})]}),(0,o.jsx)(O,{})]})}},69814:function(Y,T,t){"use strict";t.d(T,{Y:function(){return X}});var o=t(31085),i=t(72427),d=t(65461),b=t(10394),m=t(42899),p=t(58837),h=t(71677),c=t(72501),y=t(14041),E=t(93285),O=t(72072),u=t(45634),S=t(58007),v=t(8109),D=t(55197),P=t(87051);const w=(0,P.A)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(c.A),L=(0,P.A)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(b.A),I=(0,P.A)({root:{fontStyle:"italic"}},{name:"BreadcrumbsCurrentPage"})(b.A);function A(H){const{children:tt,...et}=H,[xt,st]=y.useState(null),Pt=y.Children.toArray(tt),[ft,mt,...lt]=Pt,it=lt.length?lt.pop():Pt[Pt.length-1],vt=Pt.length>3,_=ot=>{st(ot.currentTarget)},yt=()=>{st(null)},gt=!!xt;return(0,o.jsxs)(y.Fragment,{children:[(0,o.jsxs)(u.A,{"aria-label":"breadcrumb",...et,children:[Pt.length>1&&(0,o.jsx)(L,{clone:!0,children:ft}),Pt.length>2&&(0,o.jsx)(L,{clone:!0,children:mt}),vt&&(0,o.jsx)(w,{onClick:_,children:"..."}),(0,o.jsx)(I,{children:it})]}),(0,o.jsx)(D.Ay,{open:gt,anchorEl:xt,onClose:yt,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,o.jsx)(S.A,{children:lt.map((ot,dt)=>(0,o.jsx)(v.A,{button:!0,children:(0,o.jsx)(L,{clone:!0,children:ot})},dt))})})]})}var z=t(73524);const V=(0,p.A)(H=>({header:{gridArea:"pageHeader",padding:H.spacing(3),width:"100%",boxShadow:H.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:H.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[H.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:H.page.fontColor,wordBreak:"break-word",fontSize:H.typography.h3.fontSize,marginBottom:0},subtitle:{color:H.page.fontColor,opacity:.8,display:"inline-block",marginTop:H.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:H.spacing(1),color:H.page.fontColor},breadcrumb:{color:H.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-H.spacing(.3),marginBottom:H.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-H.spacing(.3),marginBottom:H.spacing(.3)}}),{name:"BackstageHeader"}),q=({type:H,typeLink:tt,classes:et,pageTitle:xt})=>H?tt?(0,o.jsxs)(A,{className:et.breadcrumb,children:[(0,o.jsx)(O.N_,{to:tt,children:H}),(0,o.jsx)(c.A,{children:xt})]}):(0,o.jsx)(c.A,{className:et.type,children:H}):null,k=({pageTitle:H,classes:tt,tooltip:et})=>{const{contentRef:xt}=(0,z.H)(),st=(0,o.jsx)(c.A,{ref:xt,tabIndex:-1,className:tt.title,variant:"h1",children:H});return et?(0,o.jsx)(h.Ay,{title:et,placement:"top-start",children:st}):st},W=({classes:H,subtitle:tt})=>tt?typeof tt!="string"?(0,o.jsx)(o.Fragment,{children:tt}):(0,o.jsx)(c.A,{className:H.subtitle,variant:"subtitle2",component:"span",children:tt}):null;function X(H){const{children:tt,pageTitleOverride:et,style:xt,subtitle:st,title:Pt,tooltip:ft,type:mt,typeLink:lt}=H,it=V(),_=(0,i.gf)(d.U).getOptionalString("app.title")||"Backstage",yt=et||Pt,gt=Pt||et,ot=`${yt} | %s | ${_}`,dt=`${yt} | ${_}`;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(E.m,{titleTemplate:ot,defaultTitle:dt}),(0,o.jsxs)("header",{style:xt,className:it.header,children:[(0,o.jsxs)(b.A,{className:it.leftItemsBox,children:[(0,o.jsx)(q,{classes:it,type:mt,typeLink:lt,pageTitle:gt}),(0,o.jsx)(k,{classes:it,pageTitle:gt,tooltip:ft}),(0,o.jsx)(W,{classes:it,subtitle:st})]}),(0,o.jsx)(m.A,{container:!0,className:it.rightItemsBox,spacing:4,children:tt})]})]})}},24504:function(Y,T,t){"use strict";t.d(T,{Y:function(){return p}});var o=t(31085),i=t(14041),d=t(58837),b=t(50868);const m=(0,d.A)(h=>({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",[h.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function p(h){const{themeId:c,children:y}=h,E=m();return(0,o.jsx)(b.A,{theme:O=>({...O,page:O.getPageTheme({themeId:c})}),children:(0,o.jsx)("main",{className:E.root,children:y})})}},27155:function(Y,T,t){"use strict";t.d(T,{d:function(){return m}});var o=t(31085),i=t(14041),d=t(69814),b=t(24504);function m(p){const{themeId:h,children:c,...y}=p;return(0,o.jsxs)(b.Y,{themeId:h,children:[(0,o.jsx)(d.Y,{...y}),c]})}},73524:function(Y,T,t){"use strict";t.d(T,{G:function(){return u},H:function(){return S}});var o=t(31085),i=t(10394),d=t(58837),b=t(5893),m=t(14041),p=t(72664),h;(function(v){v.SIDEBAR_PIN_STATE="sidebarPinState"})(h||(h={}));const c={getSidebarPinState(){let v;try{v=JSON.parse(window.localStorage.getItem("sidebarPinState")||"true")}catch{return!0}return!!v},setSidebarPinState(v){return window.localStorage.setItem("sidebarPinState",JSON.stringify(v))}};var y=t(34435);const E=(0,d.A)(v=>({root:{width:"100%",transition:"padding-left 0.1s ease-out",isolation:"isolate",[v.breakpoints.up("sm")]:{paddingLeft:D=>D.isPinned?D.sidebarConfig.drawerWidthOpen:D.sidebarConfig.drawerWidthClosed},[v.breakpoints.down("xs")]:{paddingBottom:D=>D.sidebarConfig.mobileSidebarHeight},"@media print":{padding:"0px !important"}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),O=(0,m.createContext)({content:{contentRef:void 0}});function u(v){const[D,P]=(0,m.useState)(()=>c.getSidebarPinState()),{sidebarConfig:w}=(0,m.useContext)(p.yY),L=(0,m.useRef)(null),I=(0,m.useMemo)(()=>({content:{contentRef:L}}),[L]);(0,m.useEffect)(()=>{c.setSidebarPinState(D)},[D]);const A=(0,b.A)(q=>q.breakpoints.down("xs"),{noSsr:!0}),z=()=>P(!D),V=E({isPinned:D,sidebarConfig:w});return(0,o.jsx)(y.qj,{value:{isPinned:D,toggleSidebarPinState:z,isMobile:A},children:(0,o.jsx)(O.Provider,{value:I,children:(0,o.jsx)(i.A,{className:V.root,children:v.children})})})}function S(){const{content:v}=(0,m.useContext)(O);return{focusContent:(0,m.useCallback)(()=>{var P,w;v==null||(w=v.contentRef)===null||w===void 0||(P=w.current)===null||P===void 0||P.focus()},[v]),contentRef:v==null?void 0:v.contentRef}}},34435:function(Y,T,t){"use strict";t.d(T,{Ut:function(){return y},qj:function(){return c}});var o=t(31085),i=t(43836),d=t(10602),b=t(14041);const m={isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1},p=(0,b.createContext)(m),h=(0,i.tK)("sidebar-pin-state-context");function c(E){const{children:O,value:u}=E;return(0,o.jsx)(p.Provider,{value:u,children:(0,o.jsx)(h.Provider,{value:(0,d.B)({1:u}),children:O})})}const y=()=>{const E=(0,b.useContext)(h),O=(0,b.useContext)(p);if(E===void 0)return O||m;const u=E.atVersion(1);if(u===void 0)throw new Error("No context found for version 1.");return u}},72664:function(Y,T,t){"use strict";t.d(T,{Rv:function(){return p},U1:function(){return O},hC:function(){return m},i8:function(){return c},yY:function(){return E}});var o=t(14041);const i=72,d=24,b=18,m={drawerWidthClosed:i,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:i,iconSize:i-d*2,iconPadding:d,selectedIndicatorWidth:3,userBadgePadding:b,userBadgeDiameter:i-b*2,mobileSidebarHeight:56},p=u=>({...m,...u,iconContainerWidth:m.drawerWidthClosed,iconSize:m.drawerWidthClosed-m.iconPadding*2,userBadgeDiameter:m.drawerWidthClosed-m.userBadgePadding*2}),h={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:m.defaultOpenDelayMs+200},c=u=>({...h,...u}),y="@backstage/core/sidebar-intro-dismissed",E=(0,o.createContext)({sidebarConfig:m,submenuConfig:h}),O=(0,o.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}})},10315:function(Y,T,t){"use strict";t.d(T,{O:function(){return i}});var o=t(93184);const i=(0,o.h)({id:"core-components",messages:{signIn:{title:"Sign In",loginFailed:"Login failed",customProvider:{title:"Custom User",subtitle:`Enter your own User ID and credentials.
2
+ This selection will not be stored.`,userId:"User ID",tokenInvalid:"Token is not a valid OpenID Connect JWT Token",continue:"Continue",idToken:"ID Token (optional)"},guestProvider:{title:"Guest",subtitle:`Enter as a Guest User.
3
+ You will not have a verified identity, meaning some features might be unavailable.`,enter:"Enter"}},skipToContent:"Skip to content",copyTextButton:{tooltipText:"Text copied to clipboard"},simpleStepper:{reset:"Reset",finish:"Finish",next:"Next",skip:"Skip",back:"Back"},errorPage:{subtitle:"ERROR {{status}}: {{statusMessage}}",title:"Looks like someone dropped the mic!",goBack:"Go back",showMoreDetails:"Show more details",showLessDetails:"Show less details"},emptyState:{missingAnnotation:{title:"Missing Annotation",actionTitle:"Add the annotation to your component YAML as shown in the highlighted example below:",readMore:"Read more"}},supportConfig:{default:{title:"Support Not Configured",linkTitle:"Add `app.support` config key"}},errorBoundary:{title:"Please contact {{slackChannel}} for help."},oauthRequestDialog:{title:"Login Required",authRedirectTitle:"This will trigger a http redirect to OAuth Login.",login:"Log in",rejectAll:"Reject All"},supportButton:{title:"Support",close:"Close"},table:{filter:{title:"Filters",clearAll:"Clear all"}},alertDisplay:{message_one:"({{ count }} older message)",message_other:"({{ count }} older messages)"},autoLogout:{stillTherePrompt:{title:"Logging out due to inactivity",buttonText:"Yes! Don't log me out"}},proxiedSignInPage:{title:"You do not appear to be signed in. Please try reloading the browser page."}}})},25862:function(Y,T,t){"use strict";t.d(T,{Ig:function(){return h},pn:function(){return p}});var o=t(31085),i=t(43836),d=t(10602),b=t(14041);const m=(0,i.tK)("analytics-context"),p=()=>{const y=(0,b.useContext)(m);if(y===void 0)return{routeRef:"unknown",pluginId:"root",extension:"App"};const E=y.atVersion(1);if(E===void 0)throw new Error("No context found for version 1.");return E},h=y=>{const{attributes:E,children:O}=y,S={...p(),...E},v=(0,d.B)({1:S});return(0,o.jsx)(m.Provider,{value:v,children:O})};function c(y,E){const O=u=>_jsx(h,{attributes:E,children:_jsx(y,{...u})});return O.displayName=`WithAnalyticsContext(${y.displayName||y.name||"Component"})`,O}},67237:function(Y,T,t){"use strict";t.d(T,{J:function(){return m},t:function(){return b}});var o=t(18990),i=t(63544);const d=(0,i.Q)("core-plugin-api:analytics-tracker-events",()=>({mostRecentGatheredNavigation:void 0,mostRecentRoutableExtensionRender:void 0,beforeUnloadRegistered:!1})),b="_ROUTABLE-EXTENSION-RENDERED";class m{setContext(h){this.context=h}captureEvent(h,c,{value:y,attributes:E}={}){const{_routeNodeType:O,...u}=this.context;if(h===b){d.mostRecentGatheredNavigation&&(d.mostRecentRoutableExtensionRender={context:{...u,extension:"App"}});return}if(d.mostRecentGatheredNavigation){try{this.analyticsApi.captureEvent({...d.mostRecentGatheredNavigation,...d.mostRecentRoutableExtensionRender})}catch(S){console.warn("Error during analytics event capture. %o",S)}d.mostRecentGatheredNavigation=void 0,d.mostRecentRoutableExtensionRender=void 0}if(h==="navigate"&&O==="gathered"&&u.pluginId==="root"){d.mostRecentGatheredNavigation={action:h,subject:c,value:y,attributes:E,context:u};return}try{this.analyticsApi.captureEvent({action:h,subject:c,value:y,attributes:E,context:u})}catch(S){console.warn("Error during analytics event capture. %o",S)}}constructor(h,c={routeRef:"unknown",pluginId:"root",extension:"App"}){(0,o._)(this,"analyticsApi",void 0),(0,o._)(this,"context",void 0),this.analyticsApi=h,this.context=c,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)}}},93368:function(Y,T,t){"use strict";t.d(T,{s:function(){return h}});var o=t(25862),i=t(72427),d=t(99303),b=t(14041),m=t(67237);function p(){try{return(0,i.gf)(d.c)}catch{return{captureEvent:()=>{}}}}function h(){const c=(0,b.useRef)(null),y=(0,o.pn)(),E=p();function O(){return c.current===null&&(c.current=new m.J(E)),c.current}const u=O();return u.setContext(y),u}},36017:function(Y,T,t){"use strict";t.d(T,{k:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.alert"})},99303:function(Y,T,t){"use strict";t.d(T,{c:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.analytics"})},65461:function(Y,T,t){"use strict";t.d(T,{U:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.config"})},57405:function(Y,T,t){"use strict";t.d(T,{I:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.discovery"})},39837:function(Y,T,t){"use strict";t.d(T,{m:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.error"})},63636:function(Y,T,t){"use strict";t.d(T,{B:function(){return d},S:function(){return i}});var o=t(55309),i;(function(b){b[b.None=0]="None",b[b.Active=1]="Active"})(i||(i={}));const d=(0,o.y)({id:"core.featureflags"})},70795:function(Y,T,t){"use strict";t.d(T,{a:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.fetch"})},16009:function(Y,T,t){"use strict";t.d(T,{K:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.identity"})},56038:function(Y,T,t){"use strict";t.d(T,{J:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.translation"})},55309:function(Y,T,t){"use strict";t.d(T,{y:function(){return d}});var o=t(18990);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(m){if((0,o._)(this,"config",void 0),this.config=m,!m.id.split(".").flatMap(h=>h.split("-")).every(h=>h.match(/^[a-z][a-z0-9]*$/)))throw new Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${m.id}'`)}}function d(b){return new i(b)}},12935:function(Y,T,t){"use strict";t.d(T,{b:function(){return o}});function o(i,d){return"id"in i?{api:i,deps:{},factory:()=>d}:i}},72427:function(Y,T,t){"use strict";t.d(T,{Q2:function(){return m},gf:function(){return p}});var o=t(31085),i=t(14041),d=t(43836),b=t(97142);function m(){const c=(0,d.qO)("api-context");if(!c)throw new b.EH("API context is not available");const y=c.atVersion(1);if(!y)throw new b.EH("ApiContext v1 not available");return y}function p(c){const E=m().get(c);if(!E)throw new b.EH(`No implementation available for ${c}`);return E}function h(c){return function(E){const O=S=>{const v=m(),D={};for(const P in c)if(c.hasOwnProperty(P)){const w=c[P],L=v.get(w);if(!L)throw new NotImplementedError(`No implementation available for ${w}`);D[P]=L}return _jsx(E,{...S,...D})},u=E.displayName||E.name||"Component";return O.displayName=`withApis(${u})`,O}}},82266:function(Y,T,t){"use strict";t.d(T,{n:function(){return i}});var o=t(43836);const i=()=>{const d=(0,o.qO)("app-context");if(!d)throw new Error("App context is not available");const b=d.atVersion(1);if(!b)throw new Error("AppContext v1 not available");return b}},19402:function(Y,T,t){"use strict";t.d(T,{E:function(){return m},h:function(){return b}});var o=t(63544);const i=(0,o.Q)("component-data-store",()=>new WeakMap),d="__backstage_data";function b(p,h,c){const y=p;var E;let O=(E=y[d])!==null&&E!==void 0?E:i.get(p);if(O||(O={map:new Map},Object.defineProperty(y,d,{enumerable:!1,configurable:!0,writable:!1,value:O}),i.set(p,O)),O.map.has(h)){const u=p.displayName||p.name;throw new Error(`Attempted to attach duplicate data "${h}" to component "${u}"`)}O.map.set(h,c)}function m(p,h){if(!p)return;const c=p.type;if(!c)return;var y;const E=(y=c[d])!==null&&y!==void 0?y:i.get(c);if(E)return E.map.get(h)}},88758:function(Y,T,t){"use strict";t.d(T,{NC:function(){return u},zZ:function(){return S},QJ:function(){return O}});var o=t(31085),i=t(14041),d=t(93368),b=t(25862),m=t(82266),p=t(9222),h=t(19402),c=t(18990);class y extends i.Component{static getDerivedStateFromError(D){return{error:D}}render(){const{error:D}=this.state,{app:P,plugin:w}=this.props,{ErrorBoundaryFallback:L}=P.getComponents();return D?(0,o.jsx)(L,{error:D,resetError:this.handleErrorReset,plugin:w}):this.props.children}constructor(...D){super(...D),(0,c._)(this,"state",{error:void 0}),(0,c._)(this,"handleErrorReset",()=>{this.setState({error:void 0})})}}var E=t(67237);function O(v){const{component:D,mountPoint:P,name:w}=v;return S({component:{lazy:()=>D().then(L=>{const I=z=>{const V=(0,d.s)();try{(0,p.S)(P)}catch(q){if(typeof q=="object"&&q!==null){const{message:k}=q;if(typeof k=="string"&&k.startsWith("No path for "))throw new Error(`Routable extension component with mount point ${P} was not discovered in the app element tree. Routable extension components may not be rendered by other components and must be directly available as an element within the App provider component.`)}throw q}return(0,i.useEffect)(()=>{V.captureEvent(E.t,"")},[V]),(0,o.jsx)(L,{...z})},A=w||L.displayName||L.name||"LazyComponent";return I.displayName=`RoutableExtension(${A})`,I},L=>A=>{const z=(0,m.n)(),{BootErrorPage:V}=z.getComponents();return(0,o.jsx)(V,{step:"load-chunk",error:L})})},data:{"core.mountPoint":P},name:w})}function u(v){const{component:D,name:P}=v;return S({component:D,name:P})}function S(v){const{data:D={},name:P}=v;P||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name.");let w;if("lazy"in v.component){const I=v.component.lazy;w=(0,i.lazy)(()=>I().then(A=>({default:A})))}else w=v.component.sync;const L=P||w.displayName||w.name||"Component";return{expose(I){const A=z=>{const V=(0,m.n)(),{Progress:q}=V.getComponents(),k=D==null?void 0:D["core.mountPoint"];return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(q,{}),children:(0,o.jsx)(y,{app:V,plugin:I,children:(0,o.jsx)(b.Ig,{attributes:{pluginId:I.getId(),...P&&{extension:P},...k&&{routeRef:k.id}},children:(0,o.jsx)(w,{...z})})})})};(0,h.h)(A,"core.plugin",I),(0,h.h)(A,"core.extensionName",P);for(const[z,V]of Object.entries(D))(0,h.h)(A,z,V);return A.displayName=`Extension(${L})`,A}}}},82442:function(Y,T,t){"use strict";t.d(T,{O:function(){return c}});var o=t(18990),i=t(14041),d=t(19402),b=t(72427),m=t(63636);function p(y,E,O,u){return i.Children.toArray(y).flatMap(S=>{if(!(0,i.isValidElement)(S))return[];if(S.type===i.Fragment)return p(S.props.children,E,O,u);if((0,d.E)(S,"core.featureFlagged")){const v=S.props;return("with"in v?E.isActive(v.with):!E.isActive(v.without))?p(S.props.children,E,O,u):[]}if(O===void 0||O(S))return[S];if(u)throw new Error(u);return p(S.props.children,E,O,u)})}class h{selectByComponentData(E){const O=p(this.node,this.featureFlagsApi,u=>(0,d.E)(u,E.key)!==void 0,E.withStrictError);return new h(O,this.featureFlagsApi)}findComponentData(E){return p(this.node,this.featureFlagsApi,u=>(0,d.E)(u,E.key)!==void 0).map(u=>(0,d.E)(u,E.key)).filter(u=>u!==void 0)}getElements(){return p(this.node,this.featureFlagsApi)}constructor(E,O){(0,o._)(this,"node",void 0),(0,o._)(this,"featureFlagsApi",void 0),this.node=E,this.featureFlagsApi=O}}function c(y,E,O=[]){const u=(0,b.gf)(m.B),S=new h(y,u);return(0,i.useMemo)(()=>E(S),[y,...O])}},9803:function(Y,T,t){"use strict";t.d(T,{i:function(){return d}});var o=t(18990);class i{getId(){return this.config.id}getApis(){var m;return(m=this.config.apis)!==null&&m!==void 0?m:[]}getFeatureFlags(){var m,p;return(p=(m=this.config.featureFlags)===null||m===void 0?void 0:m.slice())!==null&&p!==void 0?p:[]}get routes(){var m;return(m=this.config.routes)!==null&&m!==void 0?m:{}}get externalRoutes(){var m;return(m=this.config.externalRoutes)!==null&&m!==void 0?m:{}}provide(m){return m.expose(this)}toString(){return`plugin{${this.config.id}}`}constructor(m){(0,o._)(this,"config",void 0),this.config=m}}function d(b){return new i(b)}},34569:function(Y,T,t){"use strict";t.d(T,{H:function(){return p}});var o=t(18990),i=t(59598);let d=i.b,b=d;class m{get title(){return this.id}toString(){return`routeRef{type=absolute,id=${this.id}}`}constructor(c,y){(0,o._)(this,"id",void 0),(0,o._)(this,"params",void 0),(0,o._)(this,b,void 0),this.id=c,this.params=y,this[d]="absolute"}}function p(h){var c;return new m(h.id,(c=h.params)!==null&&c!==void 0?c:[])}},59598:function(Y,T,t){"use strict";t.d(T,{b:function(){return i}});var o=t(63544);const i=(0,o.Q)("route-ref-type",()=>Symbol("route-ref-type"))},9222:function(Y,T,t){"use strict";t.d(T,{S:function(){return b}});var o=t(14041),i=t(18690),d=t(43836);function b(m){const{pathname:p}=(0,i.zy)(),h=(0,d.qO)("routing-context");if(!h)throw new Error("Routing context is not available");const c=h.atVersion(1),y=(0,o.useMemo)(()=>c&&c.resolve(m,{pathname:p}),[c,m,p]);if(!h)throw new Error("useRouteRef used outside of routing context");if(!c)throw new Error("RoutingContext v1 not available");const E="optional"in m&&m.optional;if(!y&&!E)throw new Error(`No path for ${m}`);return y}},93184:function(Y,T,t){"use strict";t.d(T,{h:function(){return O},v:function(){return u}});var o=t(96324),i=t(87081),d=t(33284),b=t(18990),m=t(99833);function p(S){const v=new Array;function D(P,w){for(const[L,I]of Object.entries(P))typeof I=="string"?v.push([w+L,I]):D(I,`${w}${L}.`)}return D(S,""),Object.fromEntries(v)}var h=new WeakMap,c=new WeakMap,y=new WeakMap;class E{get id(){return(0,o._)(this,h)}get T(){throw new Error("Not implemented")}getDefaultMessages(){return(0,o._)(this,c)}setDefaultResource(v){(0,d._)(this,y,v)}getDefaultResource(){return(0,o._)(this,y)}toString(){return`TranslationRef{id=${this.id}}`}constructor(v){(0,i._)(this,h,{writable:!0,value:void 0}),(0,i._)(this,c,{writable:!0,value:void 0}),(0,i._)(this,y,{writable:!0,value:void 0}),(0,b._)(this,"$$type","@backstage/TranslationRef"),(0,b._)(this,"version","v1"),(0,d._)(this,h,v.id),(0,d._)(this,c,p(v.messages))}}function O(S){const v=new E(S);return S.translations&&v.setDefaultResource((0,m.o)({ref:v,translations:S.translations})),v}function u(S){const v=S;if(v.$$type!=="@backstage/TranslationRef")throw new Error(`Invalid translation ref, bad type '${v.$$type}'`);if(v.version!=="v1")throw new Error(`Invalid translation ref, bad version '${v.version}'`);return v}},99833:function(Y,T,t){"use strict";t.d(T,{Y:function(){return o},o:function(){return i}});function o(d){const b=d;if(b.$$type!=="@backstage/TranslationResource")throw new Error(`Invalid translation resource, bad type '${b.$$type}'`);if(b.version!=="v1")throw new Error(`Invalid translation resource, bad version '${b.version}'`);return b}function i(d){return{$$type:"@backstage/TranslationResource",version:"v1",id:d.ref.id,resources:Object.entries(d.translations).map(([b,m])=>({language:b,loader:()=>m().then(p=>{const h=p.default;return{messages:(h==null?void 0:h.$$type)==="@backstage/TranslationMessages"?h.messages:h}})}))}}},87849:function(Y,T,t){"use strict";t.d(T,{i:function(){return p}});var o=t(14041),i=t(72427),d=t(39837),b=t(56038);const m=new WeakSet,p=h=>{const c=(0,i.gf)(d.m),y=(0,i.gf)(b.J),[E,O]=(0,o.useState)(()=>y.getTranslation(h)),u=(0,o.useMemo)(()=>y.translation$(h),[y,h]),S=(0,o.useCallback)(D=>{if(!m.has(h)){const P=`Failed to load translation resource '${h.id}'; caused by ${D}`;console.error(P),c.post(new Error(P)),m.add(h)}},[c,h]);(0,o.useEffect)(()=>{const D=u.subscribe({next(P){P.ready&&O(P)},error(P){S(P)}});return()=>{D.unsubscribe()}},[u,S]);const v=(0,o.useRef)(!0);if((0,o.useEffect)(()=>{v.current?v.current=!1:O(y.getTranslation(h))},[y,h]),!E.ready)throw new Promise(D=>{const P=u.subscribe({next(w){w.ready&&(P.unsubscribe(),D())},error(w){P.unsubscribe(),S(w),D()}})});return{t:E.t}}},70835:function(Y,T,t){"use strict";t.d(T,{o:function(){return b}});var o=t(18990),i=t(59750);async function d(m){try{const h=await m.text();if(h){var p;if(!((p=m.headers.get("content-type"))===null||p===void 0)&&p.startsWith("application/json"))try{const c=JSON.parse(h);if(c.error&&c.response)return c}catch{}return{error:{name:"Error",message:`Request failed with status ${m.status} ${m.statusText}, ${h}`},response:{statusCode:m.status}}}}catch{}return{error:{name:"Error",message:`Request failed with status ${m.status} ${m.statusText}`},response:{statusCode:m.status}}}class b extends Error{static async fromResponse(p){const h=await d(p),c=h.response.statusCode||p.status,y=p.statusText,E=`Request failed with ${c} ${y}`,O=(0,i.cy)(h.error);return new b({message:E,response:p,data:h,cause:O,statusCode:c,statusText:y})}constructor(p){super(p.message),(0,o._)(this,"response",void 0),(0,o._)(this,"body",void 0),(0,o._)(this,"cause",void 0),(0,o._)(this,"statusCode",void 0),(0,o._)(this,"statusText",void 0),this.name="ResponseError",this.response=p.response,this.body=p.data,this.cause=p.cause,this.statusCode=p.statusCode,this.statusText=p.statusText}}},93007:function(Y,T,t){"use strict";t.d(T,{b:function(){return o}});function o(d){if(typeof d!="object"||d===null||Array.isArray(d))return!1;const b=d;return!(typeof b.name!="string"||b.name===""||typeof b.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 b=d;if(typeof b.name!="string"||b.name==="")throw new Error(`Encountered error object without a name, got '${d}'`);if(typeof b.message!="string")throw new Error(`Encountered error object without a message, got '${d}'`)}},97142:function(Y,T,t){"use strict";t.d(T,{m_:function(){return c},EH:function(){return O}});var o=t(18990),i=t(93007),d=t(59750);class b extends Error{constructor(D,P){var w,L;let I=D;if(P!==void 0){const A=(0,d.M5)(P);I?I+=`; caused by ${A}`:I=`caused by ${A}`}super(I),(0,o._)(this,"cause",void 0),(w=(L=Error).captureStackTrace)===null||w===void 0||w.call(L,this,this.constructor),(!this.name||this.name==="Error")&&this.constructor.name!=="Error"&&(this.name=this.constructor.name),this.cause=(0,i.b)(P)?P:void 0}}class m extends b{constructor(...D){super(...D),(0,o._)(this,"name","InputError")}}class p extends b{constructor(...D){super(...D),(0,o._)(this,"name","AuthenticationError")}}class h extends b{constructor(...D){super(...D),(0,o._)(this,"name","NotAllowedError")}}class c extends b{constructor(...D){super(...D),(0,o._)(this,"name","NotFoundError")}}class y extends b{constructor(...D){super(...D),(0,o._)(this,"name","ConflictError")}}class E extends b{constructor(...D){super(...D),(0,o._)(this,"name","NotModifiedError")}}class O extends b{constructor(...D){super(...D),(0,o._)(this,"name","NotImplementedError")}}class u extends null{}class S extends b{constructor(D,P){super(D,P),this.name=(0,i.b)(P)?P.name:"Error"}}},59750:function(Y,T,t){"use strict";t.d(T,{M5:function(){return p},cy:function(){return m}});var o=t(69655),i=t.n(o),d=t(93007);function b(h,c){const E={name:"Unknown",message:"<no reason given>",...serializeErrorInternal(h)};return c!=null&&c.includeStack||delete E.stack,E}function m(h){const c=(0,o.deserializeError)(h);return h.stack||(c.stack=void 0),c}function p(h){if((0,d.b)(h)){const c=String(h);return c!=="[object Object]"?c:`${h.name}: ${h.message}`}return`unknown error '${h}'`}},41158:function(Y,T,t){"use strict";t.d(T,{L:function(){return Ie},Y:function(){return Fe}});var o=t(18990),i=t(59869);const d="amazonaws.com";function b(M){var f;const B=M.getOptionalString("endpoint");var U;const ut=(U=M.getOptionalBoolean("s3ForcePathStyle"))!==null&&U!==void 0?U:!1;let nt,Dt;if(B){try{const $t=new URL(B);nt=$t.host,Dt=$t.pathname}catch{throw new Error(`invalid awsS3 integration config, endpoint '${B}' is not a valid URL`)}if(Dt!=="/")throw new Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${B}'`)}else nt=d;const qt=M.getOptionalString("accessKeyId"),oe=(f=M.getOptionalString("secretAccessKey"))===null||f===void 0?void 0:f.trim(),pe=M.getOptionalString("roleArn"),ve=M.getOptionalString("externalId");return{host:nt,endpoint:B,s3ForcePathStyle:ut,accessKeyId:qt,secretAccessKey:oe,roleArn:pe,externalId:ve}}function m(M){const f=M.map(b);return f.some(B=>B.host===d)||f.push({host:d}),f}class p{get type(){return"awsS3"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(f){return(0,i.ku)(f)}resolveEditUrl(f){return f}constructor(f){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=f}}(0,o._)(p,"factory",({config:M})=>{var f;const B=m((f=M.getOptionalConfigArray("integrations.awsS3"))!==null&&f!==void 0?f:[]);return(0,i.oS)(B.map(U=>new p(U)),U=>U.config.host)});const h="console.aws.amazon.com";function c(M){var f;const B=M.getOptionalString("accessKeyId"),U=(f=M.getOptionalString("secretAccessKey"))===null||f===void 0?void 0:f.trim(),ut=M.getOptionalString("roleArn"),nt=M.getOptionalString("externalId");return{host:h,accessKeyId:B,secretAccessKey:U,roleArn:ut,externalId:nt}}function y(M){const f=M.map(c);return f.some(B=>B.host===h)||f.push({host:h}),f}class E{get type(){return"awsCodeCommit"}get config(){return this.integrationConfig}get title(){return this.integrationConfig.host}resolveUrl(f){return(0,i.ku)(f)}resolveEditUrl(f){const U=new URL(f).pathname.match(/^\/codesuite\/codecommit\/repositories\/([^\/]+)\//);if(!U)throw new Error("");const[,ut]=U;return O(f,ut,"edit")}constructor(f){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=f}}(0,o._)(E,"factory",({config:M})=>{var f;const B=y((f=M.getOptionalConfigArray("integrations.awsCodeCommit"))!==null&&f!==void 0?f:[]);return(0,i.oS)(B.map(U=>new E(U)),U=>U.config.host)});function O(M,f,B){const U=B==="edit"?"files/edit":B;return M.replace(new RegExp(`/codesuite/codecommit/repositories/${f}/(browse|files/edit)/`),`/codesuite/codecommit/repositories/${f}/${U}/`)}var u=t(96324),S=t(87081),v=t(33284);const D="GB";var P=new WeakMap,w=new WeakMap,L=new WeakMap,I=new WeakMap,A=new WeakMap,z=new WeakMap,V=new WeakMap;class q{static fromRepoUrl(f){const B=new URL(f);let U,ut,nt;const Dt=B.pathname.split("/").map($t=>decodeURIComponent($t));if(Dt[2]==="_git"?(U=Dt[1],ut=nt=Dt[3]):Dt[3]==="_git"?(U=Dt[1],ut=Dt[2],nt=Dt[4]):Dt[4]==="_git"&&(U=`${Dt[1]}/${Dt[2]}`,ut=Dt[3],nt=Dt[5]),!U||!ut||!nt)throw new Error("Azure URL must point to a git repository");var qt;const oe=(qt=B.searchParams.get("path"))!==null&&qt!==void 0?qt:void 0;let pe;const ve=B.searchParams.get("version");if(ve){if(ve.slice(0,2)!=="GB")throw new Error("Azure URL version must point to a git branch");pe=ve.slice(2)}return new q(B.origin,U,ut,nt,oe,pe)}toRepoUrl(){let f;return(0,u._)(this,L)===(0,u._)(this,I)?f=(0,u._)(this,V).call(this,(0,u._)(this,w),"_git",(0,u._)(this,I)):f=(0,u._)(this,V).call(this,(0,u._)(this,w),(0,u._)(this,L),"_git",(0,u._)(this,I)),(0,u._)(this,A)&&f.searchParams.set("path",(0,u._)(this,A)),(0,u._)(this,z)&&f.searchParams.set("version",D+(0,u._)(this,z)),f.toString()}toFileUrl(){if(!(0,u._)(this,A))throw new Error("Azure URL must point to a specific path to be able to download a file");const f=(0,u._)(this,V).call(this,(0,u._)(this,w),(0,u._)(this,L),"_apis","git","repositories",(0,u._)(this,I),"items");return f.searchParams.set("api-version","6.0"),f.searchParams.set("path",(0,u._)(this,A)),(0,u._)(this,z)&&f.searchParams.set("version",(0,u._)(this,z)),f.toString()}toArchiveUrl(){const f=(0,u._)(this,V).call(this,(0,u._)(this,w),(0,u._)(this,L),"_apis","git","repositories",(0,u._)(this,I),"items");return f.searchParams.set("recursionLevel","full"),f.searchParams.set("download","true"),f.searchParams.set("api-version","6.0"),(0,u._)(this,A)&&f.searchParams.set("scopePath",(0,u._)(this,A)),(0,u._)(this,z)&&f.searchParams.set("version",(0,u._)(this,z)),f.toString()}toCommitsUrl(){const f=(0,u._)(this,V).call(this,(0,u._)(this,w),(0,u._)(this,L),"_apis","git","repositories",(0,u._)(this,I),"commits");return f.searchParams.set("api-version","6.0"),(0,u._)(this,z)&&f.searchParams.set("searchCriteria.itemVersion.version",(0,u._)(this,z)),f.toString()}getOwner(){return(0,u._)(this,w)}getProject(){return(0,u._)(this,L)}getRepo(){return(0,u._)(this,I)}getPath(){return(0,u._)(this,A)}getRef(){return(0,u._)(this,z)}constructor(f,B,U,ut,nt,Dt){(0,S._)(this,P,{writable:!0,value:void 0}),(0,S._)(this,w,{writable:!0,value:void 0}),(0,S._)(this,L,{writable:!0,value:void 0}),(0,S._)(this,I,{writable:!0,value:void 0}),(0,S._)(this,A,{writable:!0,value:void 0}),(0,S._)(this,z,{writable:!0,value:void 0}),(0,S._)(this,V,{writable:!0,value:(...qt)=>{const oe=new URL((0,u._)(this,P));return oe.pathname=qt.map(pe=>encodeURIComponent(pe)).join("/"),oe}}),(0,v._)(this,P,f),(0,v._)(this,w,B),(0,v._)(this,L,U),(0,v._)(this,I,ut),(0,v._)(this,A,nt),(0,v._)(this,z,Dt)}}const k="dev.azure.com",W=["clientId","clientSecret","tenantId","personalAccessToken"],X=new Map([["ClientSecret",["clientId","clientSecret","tenantId"]],["ManagedIdentity",["clientId"]],["PersonalAccessToken",["personalAccessToken"]]]);function H(M){for(const f of X.entries()){const[B,U]=f,ut=W.filter(nt=>!U.includes(nt));if(U.every(nt=>M[nt]!==void 0)&&ut.every(nt=>M[nt]===void 0))return{kind:B,organizations:M.organizations,...U.reduce((nt,Dt)=>(nt[Dt]=M[Dt],nt),{})}}throw new Error("is not a valid credential")}function tt(M){var f,B,U;const ut=(U=M.getOptionalString("host"))!==null&&U!==void 0?U:k;let nt=(f=M.getOptionalConfigArray("credentials"))===null||f===void 0?void 0:f.map(Kt=>{var Mt,Ce;return{organizations:Kt.getOptionalStringArray("organizations"),personalAccessToken:(Mt=Kt.getOptionalString("personalAccessToken"))===null||Mt===void 0?void 0:Mt.trim(),tenantId:Kt.getOptionalString("tenantId"),clientId:Kt.getOptionalString("clientId"),clientSecret:(Ce=Kt.getOptionalString("clientSecret"))===null||Ce===void 0?void 0:Ce.trim()}});const Dt=(B=M.getOptionalString("token"))===null||B===void 0?void 0:B.trim();if(M.getOptional("credential")!==void 0&&M.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'credential' and 'credentials' cannot be used together. Use 'credentials' instead.");if(M.getOptional("token")!==void 0&&M.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'token' and 'credentials' cannot be used together. Use 'credentials' instead.");if(Dt!==void 0){const Kt=[{personalAccessToken:Dt}];var qt;nt=(qt=nt==null?void 0:nt.concat(Kt))!==null&&qt!==void 0?qt:Kt}if(M.getOptional("credential")!==void 0){var oe,pe;const Kt=[{organizations:M.getOptionalStringArray("credential.organizations"),token:(oe=M.getOptionalString("credential.token"))===null||oe===void 0?void 0:oe.trim(),tenantId:M.getOptionalString("credential.tenantId"),clientId:M.getOptionalString("credential.clientId"),clientSecret:(pe=M.getOptionalString("credential.clientSecret"))===null||pe===void 0?void 0:pe.trim()}];var ve;nt=(ve=nt==null?void 0:nt.concat(Kt))!==null&&ve!==void 0?ve:Kt}if(!(0,i.HO)(ut))throw new Error(`Invalid Azure integration config, '${ut}' is not a valid host`);let $t;if(nt!==void 0){const Kt=nt==null?void 0:nt.reduce((Mt,Ce,De)=>{let re;try{H(Ce)}catch(Ve){re=Ve.message}return re!==void 0&&Mt.push(`credential at position ${De+1} ${re}`),Mt},Array.of()).concat(Object.entries(nt.filter(Mt=>Mt.organizations!==void 0&&Mt.organizations.length>0).reduce((Mt,Ce,De)=>{var re;return(re=Ce.organizations)===null||re===void 0||re.forEach(Ve=>{Mt[Ve]||(Mt[Ve]=[]),Mt[Ve].push(De+1)}),Mt},{})).filter(([Mt,Ce])=>Ce.length>1).reduce((Mt,[Ce,De])=>(Mt.push(`organization ${Ce} is specified multiple times in credentials at positions ${De.slice(0,De.length-1).join(", ")} and ${De[De.length-1]}`),Mt),Array.of()));if((Kt==null?void 0:Kt.length)>0)throw new Error(`Invalid Azure integration config for ${ut}: ${Kt.join("; ")}`);if($t=nt.map(Mt=>H(Mt)),$t.some(Mt=>Mt.kind!=="PersonalAccessToken")&&ut!==k)throw new Error(`Invalid Azure integration config for ${ut}, only personal access tokens can be used with hosts other than ${k}`);if($t.filter(Mt=>Mt.organizations===void 0||Mt.organizations.length===0).length>1)throw new Error(`Invalid Azure integration config for ${ut}, you cannot specify multiple credentials without organizations`)}return{host:ut,credentials:$t}}function et(M){const f=M.map(tt);return f.some(B=>B.host===k)||f.push({host:k}),f}class xt{get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(f){const{url:B,base:U}=f;if((0,i.AY)(B))return B;try{const nt=q.fromRepoUrl(U),Dt=new URL(U);var ut;const qt=new URL(`https://a.com${(ut=nt.getPath())!==null&&ut!==void 0?ut:""}`),oe=new URL(B,qt).pathname;return Dt.searchParams.set("path",oe),f.lineNumber&&(Dt.searchParams.set("line",String(f.lineNumber)),Dt.searchParams.set("lineEnd",String(f.lineNumber+1)),Dt.searchParams.set("lineStartColumn","1"),Dt.searchParams.set("lineEndColumn","1")),Dt.toString()}catch{return new URL(B,U).toString()}}resolveEditUrl(f){return f}constructor(f){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=f}}(0,o._)(xt,"factory",({config:M})=>{var f;const B=et((f=M.getOptionalConfigArray("integrations.azure"))!==null&&f!==void 0?f:[]);return(0,i.oS)(B.map(U=>new xt(U)),U=>U.config.host)});var st=t(52536),Pt=t.n(st);const ft="bitbucket.org",mt="https://api.bitbucket.org/2.0";function lt(M){var f;const B=ft,U=mt,ut=M.getString("username"),nt=(f=M.getString("appPassword"))===null||f===void 0?void 0:f.trim();return{host:B,apiBaseUrl:U,username:ut,appPassword:nt}}function it(M){const f=M.map(lt);return f.length===0&&f.push({host:ft,apiBaseUrl:mt}),f}class vt{get type(){return"bitbucketCloud"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(f){const B=(0,i.ku)(f);if(f.lineNumber){const U=new URL(B);return U.hash=`lines-${f.lineNumber}`,U.toString()}return B}resolveEditUrl(f){const B=Pt()(f),U=new URL(f);return U.searchParams.set("mode","edit"),U.searchParams.set("at",B.ref),U.toString()}constructor(f){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=f}}(0,o._)(vt,"factory",({config:M})=>{var f;const B=it((f=M.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&f!==void 0?f:[]);return(0,i.oS)(B.map(U=>new vt(U)),U=>U.config.host)});var _=t(45250);const yt="bitbucket.org",gt="https://api.bitbucket.org/2.0";function ot(M){var f,B,U;const ut=(U=M.getOptionalString("host"))!==null&&U!==void 0?U:yt;let nt=M.getOptionalString("apiBaseUrl");const Dt=(f=M.getOptionalString("token"))===null||f===void 0?void 0:f.trim(),qt=M.getOptionalString("username"),oe=(B=M.getOptionalString("appPassword"))===null||B===void 0?void 0:B.trim();if(!(0,i.HO)(ut))throw new Error(`Invalid Bitbucket integration config, '${ut}' is not a valid host`);return nt?nt=(0,_.trimEnd)(nt,"/"):ut===yt?nt=gt:nt=`https://${ut}/rest/api/1.0`,{host:ut,apiBaseUrl:nt,token:Dt,username:qt,appPassword:oe}}function dt(M){const f=M.map(ot);return f.some(B=>B.host===yt)||f.push({host:yt,apiBaseUrl:gt}),f}class ct{get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(f){const B=(0,i.ku)(f);if(!f.lineNumber)return B;const U=new URL(B);return this.integrationConfig.host==="bitbucket.org"?U.hash=`lines-${f.lineNumber}`:U.hash=`${f.lineNumber}`,U.toString()}resolveEditUrl(f){const B=Pt()(f),U=new URL(f);return U.searchParams.set("mode","edit"),U.searchParams.set("spa","0"),U.searchParams.set("at",B.ref),U.toString()}constructor(f){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=f}}(0,o._)(ct,"factory",({config:M})=>{var f,B,U;const ut=dt((U=M.getOptionalConfigArray("integrations.bitbucket"))!==null&&U!==void 0?U:[...(f=M.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&f!==void 0?f:[],...(B=M.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&B!==void 0?B:[]]);return(0,i.oS)(ut.map(nt=>new ct(nt)),nt=>nt.config.host)});function Tt(M){var f;const B=M.getString("host");let U=M.getOptionalString("apiBaseUrl");const ut=(f=M.getOptionalString("token"))===null||f===void 0?void 0:f.trim(),nt=M.getOptionalString("username"),Dt=M.getOptionalString("password");if(!(0,i.HO)(B))throw new Error(`Invalid Bitbucket Server integration config, '${B}' is not a valid host`);return U?U=(0,_.trimEnd)(U,"/"):U=`https://${B}/rest/api/1.0`,{host:B,apiBaseUrl:U,token:ut,username:nt,password:Dt}}function Et(M){return M.map(Tt)}class N{get type(){return"bitbucketServer"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(f){const B=(0,i.ku)(f);if(f.lineNumber){const U=new URL(B);return U.hash=f.lineNumber.toString(),U.toString()}return B}resolveEditUrl(f){return f.includes("?")?f.substring(0,f.indexOf("?")):f}constructor(f){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=f}}(0,o._)(N,"factory",({config:M})=>{var f;const B=Et((f=M.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&f!==void 0?f:[]);return(0,i.oS)(B.map(U=>new N(U)),U=>U.config.host)});function G(M){var f;const B=M.getString("host");let U=M.getOptionalString("baseUrl"),ut=M.getOptionalString("cloneUrl"),nt=M.getOptionalString("gitilesBaseUrl");const Dt=M.getOptionalString("username"),qt=(f=M.getOptionalString("password"))===null||f===void 0?void 0:f.trim();if((0,i.HO)(B)){if(U&&!(0,i.AY)(U))throw new Error(`Invalid Gerrit integration config, '${U}' is not a valid baseUrl`);if(ut&&!(0,i.AY)(ut))throw new Error(`Invalid Gerrit integration config, '${ut}' is not a valid cloneUrl`);if(nt&&!(0,i.AY)(nt))throw new Error(`Invalid Gerrit integration config, '${nt}' is not a valid gitilesBaseUrl`)}else throw new Error(`Invalid Gerrit integration config, '${B}' is not a valid host`);return U?U=(0,_.trimEnd)(U,"/"):U=`https://${B}`,nt?nt=(0,_.trimEnd)(nt,"/"):nt=`https://${B}`,ut?ut=(0,_.trimEnd)(ut,"/"):ut=U,{host:B,baseUrl:U,cloneUrl:ut,gitilesBaseUrl:nt,username:Dt,password:qt}}function pt(M){return M.map(G)}var bt=t(1048).hp;const Ut=")]}'";function Rt(M,f){const B=new URL(M.gitilesBaseUrl),U=new URL(f),nt=U.pathname.substring(U.pathname.startsWith("/a/")?2:0).replace(B.pathname,"").split("/").filter($t=>!!$t),Dt=nt.indexOf("+");if(Dt<=0)throw new Error(`Unable to parse project from url: ${f}`);const qt=(0,_.trimStart)(nt.slice(0,Dt).join("/"),"/"),oe=nt.indexOf("heads");if(oe<=0)throw new Error(`Unable to parse branch from url: ${f}`);const pe=nt[oe+1],ve=nt.slice(oe+2).join("/");return{branch:pe,filePath:ve===""?"/":ve,project:qt}}function Ot(M,f,B,U){return`${M.gitilesBaseUrl}/${f}/+/refs/heads/${B}/${(0,_.trimStart)(U,"/")}`}function Ft(M,f,B,U){const ut=U==="/"||U===""?".tar.gz":`/${U}.tar.gz`;return`${Nt(M)}/${f}/+archive/refs/heads/${B}${ut}`}function wt(M){return M.password?"/a/":"/"}function Nt(M){if(!M.baseUrl||!M.gitilesBaseUrl)throw new Error("Unexpected Gerrit config values. baseUrl or gitilesBaseUrl not set.");if(M.gitilesBaseUrl.startsWith(M.baseUrl))return M.gitilesBaseUrl.replace(M.baseUrl.concat("/"),M.baseUrl.concat(wt(M)));if(M.password)throw new Error("Since the baseUrl (Gerrit) is not part of the gitilesBaseUrl, an authentication URL could not be constructed.");return M.gitilesBaseUrl}function Xt(M,f){const{branch:B,project:U}=Rt(M,f);return`${M.baseUrl}${wt(M)}projects/${encodeURIComponent(U)}/branches/${B}`}function de(M,f){const{project:B}=Rt(M,f);return`${M.cloneUrl}${wt(M)}${B}`}function ae(M,f){const{branch:B,filePath:U,project:ut}=Rt(M,f);return`${M.baseUrl}${wt(M)}projects/${encodeURIComponent(ut)}/branches/${B}/files/${encodeURIComponent(U)}/content`}function le(M){return`${M.baseUrl}${wt(M)}projects/`}function kt(M){const f={};if(!M.password)return f;const B=bt.from(`${M.username}:${M.password}`,"utf8");return f.Authorization=`Basic ${B.toString("base64")}`,{headers:f}}async function _t(M){const f=await M.text();if(f.startsWith(Ut))try{return JSON.parse(f.slice(Ut.length))}catch(B){throw new Error(`Invalid response from Gerrit: ${f.slice(0,10)} - ${B}`)}throw new Error(`Gerrit JSON body prefix missing. Found: ${f.slice(0,10)}`)}class ge{get type(){return"gerrit"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(f){const{url:B,base:U,lineNumber:ut}=f;let nt;if(B.startsWith("/")){const{branch:Dt,project:qt}=Rt(this.config,U);return Ot(this.config,qt,Dt,B)}return B?nt=new URL(B,U):nt=new URL(U),ut&&(nt.hash=ut.toString()),nt.toString()}resolveEditUrl(f){return f}constructor(f){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=f}}(0,o._)(ge,"factory",({config:M})=>{var f;const B=pt((f=M.getOptionalConfigArray("integrations.gerrit"))!==null&&f!==void 0?f:[]);return(0,i.oS)(B.map(U=>new ge(U)),U=>U.config.host)});var ke=t(36021);const Ue="gitlab.com",Ge="https://gitlab.com/api/v4";function Pe(M){var f;const B=M.getString("host");let U=M.getOptionalString("apiBaseUrl");const ut=(f=M.getOptionalString("token"))===null||f===void 0?void 0:f.trim();let nt=M.getOptionalString("baseUrl");if(U?U=(0,_.trimEnd)(U,"/"):B===Ue&&(U=Ge),nt?nt=(0,_.trimEnd)(nt,"/"):nt=`https://${B}`,(0,i.HO)(B)){if(!U||!(0,i.AY)(U))throw new Error(`Invalid GitLab integration config, '${U}' is not a valid apiBaseUrl`);if(!(0,i.AY)(nt))throw new Error(`Invalid GitLab integration config, '${nt}' is not a valid baseUrl`)}else throw new Error(`Invalid GitLab integration config, '${B}' is not a valid host`);return{host:B,token:ut,apiBaseUrl:U,baseUrl:nt}}function sn(M){const f=M.map(Pe);return f.some(B=>B.host===Ue)||f.push({host:Ue,apiBaseUrl:Ge,baseUrl:`https://${Ue}`}),f}function _e(M){let f="";return M.host!==Ue&&(f=new URL(M.baseUrl).pathname),trimEnd(f,"/")}class ne{get type(){return"gitlab"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(f){return(0,i.ku)(f)}resolveEditUrl(f){return Ke(f,"edit")}constructor(f){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=f}}(0,o._)(ne,"factory",({config:M})=>{var f;const B=sn((f=M.getOptionalConfigArray("integrations.gitlab"))!==null&&f!==void 0?f:[]);return(0,i.oS)(B.map(U=>new ne(U)),U=>U.config.host)});function Ke(M,f){return M.replace(/\/\-\/(blob|tree|edit)\//,`/-/${f}/`)}function ze(M){var f;const B=M.getString("host");let U=M.getOptionalString("baseUrl");const ut=M.getOptionalString("username"),nt=(f=M.getOptionalString("password"))===null||f===void 0?void 0:f.trim();if((0,i.HO)(B)){if(U&&!(0,i.AY)(U))throw new Error(`Invalid Gitea integration config, '${U}' is not a valid baseUrl`)}else throw new Error(`Invalid Gitea integration config, '${B}' is not a valid host`);return U?U=(0,_.trimEnd)(U,"/"):U=`https://${B}`,{host:B,baseUrl:U,username:ut,password:nt}}var qe=t(1048).hp;function Ye(M,f){const B=ue(M,f);return`${B.url}/${B.owner}/${B.name}/_edit/${B.ref}/${B.path}`}function xe(M,f){const B=ue(M,f);return`${B.url}/api/v1/repos/${B.owner}/${B.name}/contents/${B.path}?ref=${B.ref}`}function an(M,f){const B=ue(M,f);return`${B.url}/api/v1/repos/${B.owner}/${B.name}/archive/${B.ref}.tar.gz`}function ln(M,f){const B=ue(M,f);return`${B.url}/api/v1/repos/${B.owner}/${B.name}/git/commits/${B.ref}`}function cn(M){const f={},{username:B,password:U}=M;return U?(B?f.Authorization=`basic ${qe.from(`${B}:${U}`).toString("base64")}`:f.Authorization=`token ${U}`,{headers:f}):f}function ue(M,f){var B;const U=(B=M.baseUrl)!==null&&B!==void 0?B:`https://${M.host}`;try{const[ut,nt,Dt,qt,oe,pe,...ve]=f.replace(U,"").split("/"),$t=ve.join("/").replace(/^\//,"");return{url:U,owner:nt,name:Dt,ref:pe,path:$t}}catch(ut){throw new Error(`Incorrect URL: ${f}, ${ut}`)}}class Re{get type(){return"gitea"}get title(){return this.config.host}resolveUrl(f){return(0,i.ku)(f)}resolveEditUrl(f){return Ye(this.config,f)}constructor(f){(0,o._)(this,"config",void 0),this.config=f}}(0,o._)(Re,"factory",({config:M})=>{var f;const U=((f=M.getOptionalConfigArray("integrations.gitea"))!==null&&f!==void 0?f:[]).map(ut=>ze(ut));return(0,i.oS)(U.map(ut=>new Re(ut)),ut=>ut.config.host)});class He{static fromConfig(f){return new He({awsS3:p.factory({config:f}),awsCodeCommit:E.factory({config:f}),azure:xt.factory({config:f}),bitbucket:ct.factory({config:f}),bitbucketCloud:vt.factory({config:f}),bitbucketServer:N.factory({config:f}),gerrit:ge.factory({config:f}),github:ke.U.factory({config:f}),gitlab:ne.factory({config:f}),gitea:Re.factory({config:f})})}get awsS3(){return this.byType.awsS3}get awsCodeCommit(){return this.byType.awsCodeCommit}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(f=>f.list())}byUrl(f){let B=Object.values(this.byType).map(U=>U.byUrl(f)).filter(Boolean);if(B.length>1){const U=B.filter(ut=>!(ut instanceof ct));U.length!==0&&(B=U)}return B[0]}byHost(f){return Object.values(this.byType).map(B=>B.byHost(f)).find(Boolean)}resolveUrl(f){const B=this.byUrl(f.base);return B?B.resolveUrl(f):(0,i.ku)(f)}resolveEditUrl(f){const B=this.byUrl(f);return B?B.resolveEditUrl(f):f}constructor(f){(0,o._)(this,"byType",void 0),this.byType=f}}var Qe=t(55309);class Ie{static fromConfig(f){return He.fromConfig(f)}}const Fe=(0,Qe.y)({id:"integration.scmintegrations"})},36021:function(Y,T,t){"use strict";t.d(T,{U:function(){return y},F:function(){return E}});var o=t(18990),i=t(59869),d=t(45250);const b="github.com",m="https://api.github.com",p="https://raw.githubusercontent.com";function h(O){var u,S,v;const D=(v=O.getOptionalString("host"))!==null&&v!==void 0?v:b;let P=O.getOptionalString("apiBaseUrl"),w=O.getOptionalString("rawBaseUrl");const L=(u=O.getOptionalString("token"))===null||u===void 0?void 0:u.trim(),I=(S=O.getOptionalConfigArray("apps"))===null||S===void 0?void 0:S.map(A=>({appId:A.getNumber("appId"),clientId:A.getString("clientId"),clientSecret:A.getString("clientSecret"),webhookSecret:A.getString("webhookSecret"),privateKey:A.getString("privateKey"),allowedInstallationOwners:A.getOptionalStringArray("allowedInstallationOwners")}));if(!(0,i.HO)(D))throw new Error(`Invalid GitHub integration config, '${D}' is not a valid host`);return P?P=(0,d.trimEnd)(P,"/"):D===b&&(P=m),w?w=(0,d.trimEnd)(w,"/"):D===b&&(w=p),{host:D,apiBaseUrl:P,rawBaseUrl:w,token:L,apps:I}}function c(O){const u=O.map(h);return u.some(S=>S.host===b)||u.push({host:b,apiBaseUrl:m,rawBaseUrl:p}),u}class y{get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){return E((0,i.ku)(u),"tree")}resolveEditUrl(u){return E(u,"edit")}parseRateLimitInfo(u){return{isRateLimited:u.status===429||u.status===403&&u.headers.get("x-ratelimit-remaining")==="0"}}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(y,"factory",({config:O})=>{var u;const S=c((u=O.getOptionalConfigArray("integrations.github"))!==null&&u!==void 0?u:[]);return(0,i.oS)(S.map(v=>new y(v)),v=>v.config.host)});function E(O,u){return O.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,(S,v,D,P)=>`//${v}/${D}/${P}/${u}/`)}},59869:function(Y,T,t){"use strict";t.d(T,{AY:function(){return p},HO:function(){return m},ku:function(){return c},oS:function(){return h}});var o=t(52536),i=t.n(o),d=t(45250),b=t.n(d);function m(E){const O=new URL("http://example.com");return O.host=E,O.host===E}function p(E){try{return new URL(E),!0}catch{return!1}}function h(E,O){return{list(){return E},byUrl(u){try{const S=typeof u=="string"?new URL(u):u;return E.find(v=>O(v)===S.host)}catch{return}},byHost(u){return E.find(S=>O(S)===u)}}}function c(E){const{url:O,base:u,lineNumber:S}=E;try{return new URL(O),O}catch{}let v;if(O.startsWith("/")){const{href:D,filepath:P}=i()(u);v=new URL(D);const w=(0,d.trimEnd)(v.pathname.substring(0,v.pathname.length-P.length),"/");v.pathname=`${w}${O}`}else v=new URL(O,u);return v.search=new URL(u).search,S&&(v.hash=`L${S}`),v.toString()}function y(E){beforeAll(()=>E.listen({onUnhandledRequest:"error"})),afterAll(()=>E.close()),afterEach(()=>E.resetHandlers())}},56041:function(Y,T,t){"use strict";var o={};t.r(o),t.d(o,{TechDocsPlugin:function(){return p.Ju}});var i=t(31085),d=t(14041),b=t(25873),m=t(18690),p=t(39278),h=t(85920),c=t(72020),y=t(99730),E=t(64947),O=t(12173),u=t(22020),S=t(68146),v=t(73970);function D({children:r}){return(0,m.Ri)()?(0,i.jsx)(i.Fragment,{children:r}):(0,i.jsx)(m.fS,{children:r})}const P=()=>(0,i.jsx)(O.M,{status:"404",statusMessage:"PAGE NOT FOUND"}),w=({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)(D,{children:(0,i.jsx)(O.M,{statusMessage:n,stack:e.stack})})},L=({error:r,resetError:e,plugin:n})=>(0,i.jsx)(u.b,{title:`Error in ${n==null?void 0:n.getId()}`,defaultExpanded:!0,error:r,children:(0,i.jsx)(E.A,{variant:"outlined",onClick:e,children:"Retry"})}),I={Progress:S.k,Router:v.Kd,NotFoundErrorPage:P,BootErrorPage:w,ErrorBoundaryFallback:L};var A=t(18990);const z="Invalid discovery URL pattern,";class V{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(`${z} URL '${s}' is invalid`)}if(a.hash)throw new Error(`${z} URL must not have a hash`);if(a.search)throw new Error(`${z} URL must not have a query`);if(s.endsWith("/"))throw new Error(`${z} URL must not end with a slash`);return new V(n)}async getBaseUrl(e){return this.parts.join(encodeURIComponent(e))}constructor(e){(0,A._)(this,"parts",void 0),this.parts=e}}var q=t(96403),k=t.n(q);let W=Symbol.observable;class X{[W](){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,A._)(this,"isClosed",!1),(0,A._)(this,"terminatingError",void 0),(0,A._)(this,"observable",new(k())(e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(this.subscribers.add(e),()=>{this.subscribers.delete(e)}))),(0,A._)(this,"subscribers",new Set)}}let H=Symbol.observable;class tt{[H](){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,A._)(this,"isClosed",void 0),(0,A._)(this,"currentValue",void 0),(0,A._)(this,"terminatingError",void 0),(0,A._)(this,"observable",void 0),(0,A._)(this,"subscribers",new Set),this.isClosed=!1,this.currentValue=e,this.terminatingError=void 0,this.observable=new(k())(n=>this.isClosed?(this.terminatingError?n.error(this.terminatingError):n.complete(),()=>{}):(n.next(this.currentValue),this.subscribers.add(n),()=>{this.subscribers.delete(n)}))}}class et{post(e){this.subject.next(e)}alert$(){return this.subject}constructor(){(0,A._)(this,"subject",new X)}}class xt{captureEvent(e){}}class st{post(e,n){return n!=null&&n.hidden||this.alertApi.post({message:e.message,severity:"error"}),this.errorApi.post(e,n)}error$(){return this.errorApi.error$()}constructor(e,n){(0,A._)(this,"alertApi",void 0),(0,A._)(this,"errorApi",void 0),this.alertApi=e,this.errorApi=n}}class Pt{post(e,n){this.subject.next({error:e,context:n})}error$(){return this.subject}constructor(){(0,A._)(this,"subject",new X)}}class ft{static forward(e,n){window.addEventListener("unhandledrejection",s=>{e.post(s.reason,n)})}}const mt=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 mt.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,C)=>(typeof C=="object"&&C!==null&&Object.freeze(C),C)),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 mt.has(n)||mt.set(n,new lt(n,this.errorApi)),mt.get(n)}async set(e,n){localStorage.setItem(this.getKeyName(e),JSON.stringify(n)),this.notifyChanges(e)}async remove(e){localStorage.removeItem(this.getKeyName(e)),this.notifyChanges(e)}observe$(e){return lt.hasSubscribed||(lt.addStorageEventListener(),lt.hasSubscribed=!0),this.observable.filter(({key:n})=>n===e)}handleStorageChange(e){if(!(e!=null&&e.startsWith(this.namespace)))return;const n=e==null?void 0:e.slice(`${this.namespace}/`.length);n.includes("/")||this.notifyChanges(decodeURIComponent(n))}getKeyName(e){return`${this.namespace}/${encodeURIComponent(e)}`}notifyChanges(e){const n=this.snapshot(e);for(const s of this.subscribers)s.next(n)}constructor(e,n){(0,A._)(this,"namespace",void 0),(0,A._)(this,"errorApi",void 0),(0,A._)(this,"subscribers",void 0),(0,A._)(this,"observable",void 0),this.namespace=e,this.errorApi=n,this.subscribers=new Set,this.observable=new(k())(s=>(this.subscribers.add(s),()=>{this.subscribers.delete(s)}))}}(0,A._)(lt,"hasSubscribed",!1);function it(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 vt{static create(e){var n,s;const a=_(e),l=((n=e.header)===null||n===void 0?void 0:n.name)||"authorization",C=((s=e.header)===null||s===void 0?void 0:s.value)||(x=>`Bearer ${x}`);return new vt(e.identityApi,a,l,C)}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,A._)(this,"identityApi",void 0),(0,A._)(this,"allowUrl",void 0),(0,A._)(this,"headerName",void 0),(0,A._)(this,"headerValue",void 0),this.identityApi=e,this.allowUrl=n,this.headerName=s,this.headerValue=a}}function _(r){return r.allowUrl?r.allowUrl:r.urlPrefixAllowlist?yt(r.urlPrefixAllowlist):r.config?yt([r.config.getString("backend.baseUrl")]):()=>!1}function yt(r){const e=r.map(n=>n.replace(/\/$/,""));return n=>e.some(s=>n===s||n.startsWith(`${s}/`))}function gt(r,e){return!e||e==="/"?r:`${r.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}class ot{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:C,pathname:x,search:j,hash:K,username:Z,password:rt}=new URL(`http://${a.url.substring(l.length)}`);let ht=await this.discoveryApi.getBaseUrl(C);if(Z||rt){const St=new URL(ht),Gt=`${Z}${rt?`:${rt}`:""}@`;ht=`${St.protocol}//${Gt}${St.host}${St.pathname}`}const At=`${gt(ht,x)}${j}${K}`;return e(At,typeof n=="string"||dt(n)?s:n)}}constructor(e){(0,A._)(this,"discoveryApi",void 0),this.discoveryApi=e}}function dt(r){return typeof r=="object"&&(r==null?void 0:r.constructor)===URL}class ct{static resolvePluginProtocol(e){return new ot(e.discoveryApi)}static injectIdentityAuth(e){return vt.create(e)}constructor(){}}function Tt(r,e){for(const n of e)if(!r.has(n))return!1;return!0}function Et(r,...e){const n=new Set(r);for(const s of e)for(const a of s)n.add(a);return n}class N{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=>Tt(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)=>Et(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,A._)(this,"requests",[]),(0,A._)(this,"subject",new tt(this.getCurrentPending()))}}class G{createAuthRequester(e){const n=new N,s=this.handlerCount;return this.handlerCount++,n.pending().subscribe({next:a=>{const l=this.currentRequests.slice(),C=this.makeAuthRequest(a,e);C?l[s]=C: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,A._)(this,"subject",new tt([])),(0,A._)(this,"currentRequests",[]),(0,A._)(this,"handlerCount",0)}}function pt(r){return new Promise((e,n)=>{const s=r.width||500,a=r.height||700,l=window.screen.width/2-s/2,C=window.screen.height/2-a/2,x=window.open(r.url,r.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${s},height=${a},top=${C},left=${l}`);let j="";if(!x||typeof x.closed=="undefined"||x.closed){const ht=new Error("Failed to open auth popup.");ht.name="PopupRejectedError",n(ht);return}const K=ht=>{if(ht.source!==x||ht.origin!==r.origin)return;const{data:At}=ht;if(At.type==="config_info"){j=At.targetOrigin;return}if(At.type!=="authorization_response")return;const St=At;if("error"in St){const Gt=new Error(St.error.message);Gt.name=St.error.name,n(Gt)}else e(St.response);rt()},Z=setInterval(()=>{if(x.closed){const ht=`Login failed, ${j&&j!==window.location.origin?`Incorrect app origin, expected ${j}`:"popup was closed"}`,At=new Error(ht);At.name="PopupClosedError",n(At),rt()}},100);function rt(){window.removeEventListener("message",K),clearInterval(Z)}window.addEventListener("message",K)})}let bt=!1;function Ut(r){return[...r].join(" ")}class Rt{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,C,x,j,K;const Z=this.joinScopesFunc(e),rt=await this.buildUrl("/start",{scope:Z,origin:window.location.origin,flow:"popup"}),ht=!((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,At=!((x=this.popupOptions)===null||x===void 0||(C=x.size)===null||C===void 0)&&C.fullscreen?window.screen.height:((K=this.popupOptions)===null||K===void 0||(j=K.size)===null||j===void 0?void 0:j.height)||730,St=await pt({url:rt,name:`${this.provider.title} Login`,origin:new URL(rt).origin,width:ht,height:At});return await this.sessionTransform(St)}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,A._)(this,"discoveryApi",void 0),(0,A._)(this,"environment",void 0),(0,A._)(this,"provider",void 0),(0,A._)(this,"joinScopesFunc",void 0),(0,A._)(this,"authRequester",void 0),(0,A._)(this,"sessionTransform",void 0),(0,A._)(this,"enableExperimentalRedirectFlow",void 0),(0,A._)(this,"popupOptions",void 0);const{configApi:n,discoveryApi:s,environment:a,provider:l,joinScopes:C=Ut,oauthRequestApi:x,sessionTransform:j=rt=>rt,popupOptions:K}=e;!bt&&!n&&(console.warn("DEPRECATION WARNING: Authentication providers require a configApi instance to configure the authentication flow. Please provide one to the authentication provider constructor."),bt=!0);var Z;this.enableExperimentalRedirectFlow=n&&(Z=n.getOptionalBoolean("enableExperimentalRedirectFlow"))!==null&&Z!==void 0?Z:!1,this.authRequester=x.createAuthRequester({provider:l,onAuthRequest:async rt=>this.enableExperimentalRedirectFlow?this.executeRedirect(rt):this.showPopup(rt)}),this.discoveryApi=s,this.environment=a,this.provider=l,this.joinScopesFunc=C,this.sessionTransform=j,this.popupOptions=K}}function Ot(r,e){for(const n of e)if(!r.has(n))return!1;return!0}class Ft{sessionExistsAndHasScope(e,n){if(!e)return!1;if(!n||this.options.sessionScopes===void 0)return!0;const s=this.options.sessionScopes(e);return Ot(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,A._)(this,"options",void 0),this.options=e}}var wt=t(55309),Nt;(function(r){r.SignedIn="SignedIn",r.SignedOut="SignedOut"})(Nt||(Nt={}));const Xt=(0,wt.y)({id:"core.auth.google"}),de=(0,wt.y)({id:"core.auth.github"}),ae=(0,wt.y)({id:"core.auth.okta"}),le=(0,wt.y)({id:"core.auth.gitlab"}),kt=(0,wt.y)({id:"core.auth.microsoft"}),_t=(0,wt.y)({id:"core.auth.onelogin"}),ge=(0,wt.y)({id:"core.auth.bitbucket"}),ke=(0,wt.y)({id:"core.auth.bitbucket-server"}),Ue=(0,wt.y)({id:"core.auth.atlassian"}),Ge=(0,wt.y)({id:"core.auth.vmware-cloud"});class Pe{setIsSignedIn(e){this.signedIn!==e&&(this.signedIn=e,this.subject.next(this.signedIn?Nt.SignedIn:Nt.SignedOut))}sessionState$(){return this.subject}constructor(){(0,A._)(this,"subject",new tt(Nt.SignedOut)),(0,A._)(this,"signedIn",!1)}}class sn{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 Ot(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(this.helper.getExtendedScope(this.currentSession,e));try{const n=await this.refreshPromise;return this.stateTracker.setIsSignedIn(!0),n}finally{delete this.refreshPromise}}constructor(e){(0,A._)(this,"connector",void 0),(0,A._)(this,"helper",void 0),(0,A._)(this,"sessionScopesFunc",void 0),(0,A._)(this,"sessionShouldRefreshFunc",void 0),(0,A._)(this,"stateTracker",new Pe),(0,A._)(this,"refreshPromise",void 0),(0,A._)(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 Ft({sessionScopes:a,defaultScopes:s})}}const _e={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class ne{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=_e,oauthRequestApi:C,defaultScopes:x=[],scopeTransform:j=ht=>ht,popupOptions:K}=e,Z=new Rt({configApi:n,discoveryApi:s,environment:a,provider:l,oauthRequestApi:C,sessionTransform({backstageIdentity:ht,...At}){const St={...At,providerInfo:{idToken:At.providerInfo.idToken,accessToken:At.providerInfo.accessToken,scopes:ne.normalizeScopes(j,At.providerInfo.scope),expiresAt:At.providerInfo.expiresInSeconds?new Date(Date.now()+At.providerInfo.expiresInSeconds*1e3):void 0}};if(ht){var Gt;const Yt=(Gt=ht.expiresInSeconds)!==null&&Gt!==void 0?Gt:At.providerInfo.expiresInSeconds;St.backstageIdentity={token:ht.token,identity:ht.identity,expiresAt:Yt?new Date(Date.now()+Yt*1e3):void 0}}return St},popupOptions:K}),rt=new sn({connector:Z,defaultScopes:new Set(x),sessionScopes:ht=>ht.providerInfo.scopes,sessionShouldRefresh:ht=>{var At,St;let Gt=1/0;return!((At=ht.providerInfo)===null||At===void 0)&&At.expiresAt&&(Gt=Math.min(Gt,(ht.providerInfo.expiresAt.getTime()-Date.now())/1e3)),!((St=ht.backstageIdentity)===null||St===void 0)&&St.expiresAt&&(Gt=Math.min(Gt,(ht.backstageIdentity.expiresAt.getTime()-Date.now())/1e3)),Gt<60*5}});return new ne({sessionManager:rt,scopeTransform:j})}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(e,n){const s=ne.normalizeScopes(this.scopeTransform,e),a=await this.sessionManager.getSession({...n,scopes:s});var l;return(l=a==null?void 0:a.providerInfo.accessToken)!==null&&l!==void 0?l:""}async getIdToken(e={}){const n=await this.sessionManager.getSession({...e,scopes:new Set(["openid"])});var s;return(s=n==null?void 0:n.providerInfo.idToken)!==null&&s!==void 0?s:""}async getBackstageIdentity(e={}){const n=await this.sessionManager.getSession(e);return n==null?void 0:n.backstageIdentity}async getProfile(e={}){const n=await this.sessionManager.getSession(e);return n==null?void 0:n.profile}static normalizeScopes(e,n){if(!n)return new Set;const s=Array.isArray(n)?n:n.split(/[\s|,]/).filter(Boolean);return new Set(e(s))}constructor(e){(0,A._)(this,"sessionManager",void 0),(0,A._)(this,"scopeTransform",void 0),this.sessionManager=e.sessionManager,this.scopeTransform=e.scopeTransform}}const Ke={id:"google",title:"Google",icon:()=>null},ze="https://www.googleapis.com/auth/";class qe{static create(e){const{configApi:n,discoveryApi:s,oauthRequestApi:a,environment:l="development",provider:C=Ke,defaultScopes:x=["openid",`${ze}userinfo.email`,`${ze}userinfo.profile`]}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:a,provider:C,environment:l,defaultScopes:x,scopeTransform(j){return j.map(K=>K==="openid"?K:K==="profile"||K==="email"?`${ze}userinfo.${K}`:K.startsWith(ze)?K:`${ze}${K}`)}})}}const Ye={id:"microsoft",title:"Microsoft",icon:()=>null};class xe{static create(e){return new xe(e)}microsoftGraph(){return this.oauth2[xe.MicrosoftGraphID]}static resourceForScopes(e){const n=[...new Set(e.split(" ").map(xe.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:xe.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 xe.MicrosoftGraphID}}async getAccessToken(e,n){const s=e===void 0?xe.MicrosoftGraphID:await xe.resourceForScopes(Array.isArray(e)?e.join(" "):e);return s in this.oauth2||(this.oauth2[s]=ne.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,A._)(this,"oauth2",void 0),(0,A._)(this,"configApi",void 0),(0,A._)(this,"environment",void 0),(0,A._)(this,"provider",void 0),(0,A._)(this,"oauthRequestApi",void 0),(0,A._)(this,"discoveryApi",void 0),(0,A._)(this,"scopeTransform",void 0);const{configApi:n,environment:s="development",provider:a=Ye,oauthRequestApi:l,discoveryApi:C,defaultScopes:x=["openid","offline_access","profile","email","User.Read"],scopeTransform:j=K=>K.concat("offline_access")}=e;this.configApi=n,this.environment=s,this.provider=a,this.oauthRequestApi=l,this.discoveryApi=C,this.scopeTransform=j,this.oauth2={[xe.MicrosoftGraphID]:ne.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform,defaultScopes:x})}}}(0,A._)(xe,"MicrosoftGraphID","00000003-0000-0000-c000-000000000000");const an={id:"github",title:"GitHub",icon:()=>null};class ln{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=an,oauthRequestApi:C,defaultScopes:x=["read:user"]}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:C,provider:l,environment:a,defaultScopes:x})}}const cn={id:"okta",title:"Okta",icon:()=>null},ue=new Set(["openid","profile","email","phone","address","groups","offline_access"]),Re="okta.";class He{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=cn,oauthRequestApi:C,defaultScopes:x=["openid","email","profile","offline_access"]}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:C,provider:l,environment:a,defaultScopes:x,scopeTransform(j){return j.map(K=>ue.has(K)||K.startsWith(Re)?K:`${Re}${K}`)}})}}const Qe={id:"gitlab",title:"GitLab",icon:()=>null};class Ie{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=Qe,oauthRequestApi:C,defaultScopes:x=["read_user"]}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:C,provider:l,environment:a,defaultScopes:x})}}const Fe={id:"onelogin",title:"onelogin",icon:()=>null},M=new Set(["openid","profile","email","phone","address","groups","offline_access"]),f="onelogin.";class B{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=Fe,oauthRequestApi:C}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:C,provider:l,environment:a,defaultScopes:["openid","email","profile","offline_access"],scopeTransform(x){return x.map(j=>M.has(j)||j.startsWith(f)?j:`${f}${j}`)}})}}const U={id:"bitbucket",title:"Bitbucket",icon:()=>null};class ut{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=U,oauthRequestApi:C,defaultScopes:x=["account"]}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:C,provider:l,environment:a,defaultScopes:x})}}const nt={id:"bitbucketServer",title:"Bitbucket Server",icon:()=>null};class Dt{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=nt,oauthRequestApi:C,defaultScopes:x=["PROJECT_ADMIN"]}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:C,provider:l,environment:a,defaultScopes:x})}}const qt={id:"atlassian",title:"Atlassian",icon:()=>null};class oe{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=qt,oauthRequestApi:C}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:C,provider:l,environment:a})}}const pe={id:"vmwareCloudServices",title:"VMware Cloud",icon:()=>null};class ve{static create(e){const{configApi:n,discoveryApi:s,oauthRequestApi:a,environment:l="development",provider:C=pe,defaultScopes:x=["openid"]}=e;return ne.create({configApi:n,discoveryApi:s,oauthRequestApi:a,provider:C,environment:l,defaultScopes:x})}}var $t=t(12935),Kt=t(57405),Mt=t(65461),Ce=t(36017),De=t(99303),re=t(39837);const Ve=(0,wt.y)({id:"core.storage"});var Vn=t(70795),dn=t(16009);const Le=(0,wt.y)({id:"core.oauthrequest"});var wo=t(96824),tn=t(70835),Po=t(10288),Gn=t.n(Po),To=t(52964),Zt=t(46195),en=t(54241);const gn=Zt.z.lazy(()=>Zt.z.object({rule:Zt.z.string(),resourceType:Zt.z.string(),params:Zt.z.record(Zt.z.any()).optional()}).or(Zt.z.object({anyOf:Zt.z.array(gn).nonempty()})).or(Zt.z.object({allOf:Zt.z.array(gn).nonempty()})).or(Zt.z.object({not:gn}))),Yn=Zt.z.object({result:Zt.z.literal(en.b.ALLOW).or(Zt.z.literal(en.b.DENY))}),Ro=Zt.z.union([Zt.z.object({result:Zt.z.literal(en.b.ALLOW).or(Zt.z.literal(en.b.DENY))}),Zt.z.object({result:Zt.z.literal(en.b.CONDITIONAL),pluginId:Zt.z.string(),resourceType:Zt.z.string(),conditions:gn})]),Io=(r,e)=>Zt.z.object({items:Zt.z.array(Zt.z.intersection(Zt.z.object({id:Zt.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 Do{async authorize(e,n){return this.makeRequest(e,Yn,n)}async authorizeConditional(e,n){return this.makeRequest(e,Ro,n)}async makeRequest(e,n,s){if(!this.enabled)return e.map(Z=>({result:en.b.ALLOW}));const a={items:e.map(Z=>({id:To.A(),...Z}))},l=await this.discovery.getBaseUrl("permission"),C=await Gn()(`${l}/authorize`,{method:"POST",body:JSON.stringify(a),headers:{...this.getAuthorizationHeader(s==null?void 0:s.token),"content-type":"application/json"}});if(!C.ok)throw await tn.o.fromResponse(C);const x=await C.json(),K=Io(n,new Set(a.items.map(({id:Z})=>Z))).parse(x).items.reduce((Z,rt)=>(Z[rt.id]=rt,Z),{});return a.items.map(Z=>K[Z.id])}getAuthorizationHeader(e){return e?{Authorization:`Bearer ${e}`}:{}}constructor(e){(0,A._)(this,"enabled",void 0),(0,A._)(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 On{static create(e){const{config:n,discovery:s,identity:a}=e,l=new Do({discovery:s,config:n});return new On(l,a)}async authorize(e){return(await this.permissionClient.authorize([e],await this.identityApi.getCredentials()))[0]}constructor(e,n){(0,A._)(this,"permissionClient",void 0),(0,A._)(this,"identityApi",void 0),this.permissionClient=e,this.identityApi=n}}const Lo=[(0,$t.b)({api:Kt.I,deps:{configApi:Mt.U},factory:({configApi:r})=>V.compile(`${r.getString("backend.baseUrl")}/api/{{ pluginId }}`)}),(0,$t.b)({api:Ce.k,deps:{},factory:()=>new et}),(0,$t.b)({api:De.c,deps:{},factory:()=>new xt}),(0,$t.b)({api:re.m,deps:{alertApi:Ce.k},factory:({alertApi:r})=>{const e=new st(r,new Pt);return ft.forward(e,{hidden:!1}),e}}),(0,$t.b)({api:Ve,deps:{errorApi:re.m},factory:({errorApi:r})=>lt.create({errorApi:r})}),(0,$t.b)({api:Vn.a,deps:{configApi:Mt.U,identityApi:dn.K,discoveryApi:Kt.I},factory:({configApi:r,identityApi:e,discoveryApi:n})=>it({middleware:[ct.resolvePluginProtocol({discoveryApi:n}),ct.injectIdentityAuth({identityApi:e,config:r})]})}),(0,$t.b)({api:Le,deps:{},factory:()=>new G}),(0,$t.b)({api:Xt,deps:{discoveryApi:Kt.I,oauthRequestApi:Le,configApi:Mt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>qe.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,$t.b)({api:kt,deps:{discoveryApi:Kt.I,oauthRequestApi:Le,configApi:Mt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>xe.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,$t.b)({api:de,deps:{discoveryApi:Kt.I,oauthRequestApi:Le,configApi:Mt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>ln.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["read:user"],environment:n.getOptionalString("auth.environment")})}),(0,$t.b)({api:ae,deps:{discoveryApi:Kt.I,oauthRequestApi:Le,configApi:Mt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>He.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,$t.b)({api:le,deps:{discoveryApi:Kt.I,oauthRequestApi:Le,configApi:Mt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Ie.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,$t.b)({api:_t,deps:{discoveryApi:Kt.I,oauthRequestApi:Le,configApi:Mt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>B.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,$t.b)({api:ge,deps:{discoveryApi:Kt.I,oauthRequestApi:Le,configApi:Mt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>ut.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["account"],environment:n.getOptionalString("auth.environment")})}),(0,$t.b)({api:ke,deps:{discoveryApi:Kt.I,oauthRequestApi:Le,configApi:Mt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Dt.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["REPO_READ"]})}),(0,$t.b)({api:Ue,deps:{discoveryApi:Kt.I,oauthRequestApi:Le,configApi:Mt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>oe.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,$t.b)({api:Ge,deps:{discoveryApi:Kt.I,oauthRequestApi:Le,configApi:Mt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>ve.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,$t.b)({api:wo.x,deps:{discovery:Kt.I,identity:dn.K,config:Mt.U},factory:({config:r,discovery:e,identity:n})=>On.create({config:r,discovery:e,identity:n})})];var wn=t(14451),Pn=t(27799),Qn=t(94389),Mo=t(20947),jo=t(20473),Bo=t(45917),Uo=t(39347),Fo=t(63309),$o=t(82451),No=t(85121),Zn=t(17400),Wo=t(42226),ko=t(69550),Jn=t(52755),Xn=t(89350),Ko=t(8911),Tn=t(33602),Rn=t(48108),zo=t(77225),_n=t(55700),qn=t(71865);const to={brokenImage:Pn.A,catalog:Ko.A,scaffolder:Mo.A,techdocs:jo.A,search:Bo.A,chat:Uo.A,dashboard:Fo.A,docs:$o.A,email:No.A,github:Wo.A,group:Tn.A,help:ko.A,"kind:api":Zn.A,"kind:component":Xn.A,"kind:domain":wn.A,"kind:group":Tn.A,"kind:location":Jn.A,"kind:system":Qn.A,"kind:user":Rn.A,"kind:resource":_n.A,"kind:template":qn.A,user:Rn.A,warning:zo.A};var Ho=t(58733),Vo=t(55288),Go=t(91360),Yo=t(50868),In=t(12285),Qo=t(65730);const Dn=(0,Vo.A)({productionPrefix:"jss4-"});function eo(r){const{children:e,theme:n,noCssBaseline:s=!1}=r,a=n.getTheme("v4"),l=n.getTheme("v5");let C;s||(C=(0,i.jsx)(Ho.Ay,{}));let x=(0,i.jsxs)(i.Fragment,{children:[C,e]});return a&&(x=(0,i.jsx)(Go.Ay,{generateClassName:Dn,children:(0,i.jsx)(Yo.A,{theme:a,children:x})})),l&&(x=(0,i.jsx)(In.A,{injectFirst:!0,children:(0,i.jsx)(Qo.A,{theme:l,children:x})})),x}const no={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 Lt=t(96324),he=t(87081),g=t(33284),R=t(98392),F=t(75679);const $={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")`},Q={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 J(r){const{colors:e,shape:n,options:s}=r,l=`linear-gradient(90deg, ${(e.length===1?[e[0],e[0]]:e).join(", ")})`,C=`${n}, ${l}`;var x;const j=(x=s==null?void 0:s.fontColor)!==null&&x!==void 0?x:"#FFFFFF";return{colors:e,shape:n,backgroundImage:C,fontColor:j}}const at={home:J({colors:Q.teal,shape:$.wave}),documentation:J({colors:Q.pinkSea,shape:$.wave2}),tool:J({colors:Q.purpleSky,shape:$.round}),service:J({colors:Q.marineBlue,shape:$.wave}),website:J({colors:Q.veryBlue,shape:$.wave}),library:J({colors:Q.rubyRed,shape:$.wave}),other:J({colors:Q.darkGrey,shape:$.wave}),app:J({colors:Q.toastyOrange,shape:$.wave}),apis:J({colors:Q.teal,shape:$.wave2}),card:J({colors:Q.greens,shape:$.wave})},Ct=16,Bt='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif',Wt="home",Qt={htmlFontSize:Ct,fontFamily:Bt,h1:{fontSize:54,fontWeight:700,marginBottom:10},h2:{fontSize:40,fontWeight:700,marginBottom:8},h3:{fontSize:32,fontWeight:700,marginBottom:6},h4:{fontWeight:700,fontSize:28,marginBottom:6},h5:{fontWeight:700,fontSize:24,marginBottom:4},h6:{fontWeight:700,fontSize:20,marginBottom:2}};function zt(r){const{palette:e,htmlFontSize:n=Ct,fontFamily:s=Bt,defaultPageTheme:a=Wt,pageTheme:l=at,typography:C}=r;if(!l[a])throw new Error(`${a} is not defined in pageTheme.`);return Qt.htmlFontSize=n,Qt.fontFamily=s,{palette:e,typography:C!=null?C:Qt,page:l[a],getPageTheme:({themeId:x})=>{var j;return(j=l[x])!==null&&j!==void 0?j:l[a]}}}var It=t(67936);const ce={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,It.e$)(r.palette.link,.3),background:(0,It.a)(r.palette.link,.95)},[r.breakpoints.up("md")]:{minWidth:120,fontSize:r.typography.pxToRem(14),fontWeight:500}}),textColorPrimary:({theme:r})=>({color:r.palette.link})}},MuiTableSortLabel:{styleOverrides:{root:{color:"inherit","&:hover":{color:"inherit"},"&:focus":{color:"inherit"},"&.Mui-active":{fontWeight:"bold",color:"inherit"}}}},MuiListItemText:{styleOverrides:{dense:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}},MuiButton:{styleOverrides:{text:{padding:void 0}}},MuiChip:{styleOverrides:{root:({theme:r})=>({marginRight:r.spacing(1),marginBottom:r.spacing(1)}),label:({theme:r})=>({lineHeight:r.spacing(2.5),fontWeight:r.typography.fontWeightMedium,fontSize:r.spacing(1.75)}),labelSmall:({theme:r})=>({fontSize:r.spacing(1.5)}),deleteIcon:({theme:r})=>({width:r.spacing(3),height:r.spacing(3),margin:r.spacing(0,.75,0,-.75)}),deleteIconSmall:({theme:r})=>({width:r.spacing(2),height:r.spacing(2),margin:r.spacing(0,.5,0,-.5)})}},MuiCard:{styleOverrides:{root:{display:"flex",flexDirection:"column"}}},MuiCardHeader:{styleOverrides:{root:{paddingBottom:0}}},MuiCardContent:{styleOverrides:{root:{flexGrow:1,"&:last-child":{paddingBottom:void 0}}}},MuiCardActions:{styleOverrides:{root:{justifyContent:"flex-end"}}},MuiLink:{defaultProps:{underline:"hover"}},MuiPaper:{styleOverrides:{root:{backgroundImage:"unset"}}}},me=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 Jt(r,e){if(!e||typeof e=="string")return;const n=typeof e=="function"?e(r):e;if(n)return{"@global":n}}function Ht(r,e){if(!(!e||typeof e=="string")){if(typeof e=="object"){const n={...r},s=r.spacing(1);return typeof s=="number"&&(n.spacing=me(s)),Object.fromEntries(Object.entries(e).map(([a,l])=>typeof l=="function"?[a,l({theme:n})]:[a,l]))}return e}}const ie=/^&.Mui-([\w-]+)$/;function ye(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,C=l.match(ie);if(C){const[,x]=C,{[l]:j,...K}=s;j&&(e={...e,[n]:K,[x]:j})}}}return e}function jt(r,e={}){const n={},s={};for(const a of Object.keys(e)){const l=e[a];l&&("styleOverrides"in l&&(a==="MuiCssBaseline"?n[a]=Jt(r,l.styleOverrides):n[a]=ye(Ht(r,l.styleOverrides))),"defaultProps"in l&&(s[a]=l.defaultProps))}return{overrides:n,props:s}}var Vt=new WeakMap;class te{getTheme(e){return(0,Lt._)(this,Vt).get(e)}constructor(e,n){(0,he._)(this,Vt,{writable:!0,value:new Map}),(0,g._)(this,Vt,new Map),e&&(0,Lt._)(this,Vt).set("v4",e),n&&(0,Lt._)(this,Vt).set("v5",n)}}function Ee(r){const e=zt(r),n={...ce,...r.components},s=(0,F.A)({...e,components:n}),a=jt(s,n),l={...(0,R.A)(e),...a};return new te(l,s)}function Me(r){const e=adaptV4Theme(r),n=createTheme(r);return new te(n,createV5Theme(e))}const $e={light:Ee({palette:no.light}),dark:Ee({palette:no.dark})};var fe=t(75962),je=t(87145);const se=[{id:"light",title:"Light Theme",variant:"light",icon:(0,i.jsx)(je.A,{}),Provider:({children:r})=>(0,i.jsx)(eo,{theme:$e.light,children:r})},{id:"dark",title:"Dark Theme",variant:"dark",icon:(0,i.jsx)(fe.A,{}),Provider:({children:r})=>(0,i.jsx)(eo,{theme:$e.dark,children:r})}];var Ln=t(73466),Mn=t(39067),jn=t.n(Mn);class oo{get(e){for(const n of this.holders){const s=n.get(e);if(s)return s}}constructor(...e){(0,A._)(this,"holders",void 0),this.holders=e}}var nn=t(43836),pn=t(10602);const vr=(0,nn.tK)("api-context"),Zo=r=>{var e;const{apis:n,children:s}=r,a=(e=(0,d.useContext)(vr))===null||e===void 0?void 0:e.atVersion(1),l=a?new oo(n,a):n;return(0,i.jsx)(vr.Provider,{value:(0,pn.B)({1:l}),children:s})};Zo.propTypes={apis:jn().shape({get:jn().func.isRequired}).isRequired,children:jn().node};const vs=/^[a-z][a-z0-9]*(?:[-_][a-z][a-z0-9]*)*$/i;function ro(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function Jo(r){return typeof r!="object"||r===null?r:Array.isArray(r)?r.map(Jo):Object.fromEntries(Object.entries(r).map(([e,n])=>[e,Jo(n)]))}function Bn(r,e){if(r===null)return;if(r===void 0)return e===void 0?void 0:Bn(e);if(typeof r!="object"||Array.isArray(r))return r;const n=ro(e)?e:{},s={};for(const a of new Set([...Object.keys(r),...Object.keys(n)])){const l=Bn(r[a],n[a]);l!==void 0&&(s[a]=l)}return s}function Xo(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 Ne={type(r,e,n,s){return`Invalid type in config for key '${r}' in '${e}', got ${n}, wanted ${s}`},missing(r,e){return`Missing required config value at '${r}' in '${e}'`},convert(r,e,n){return`Unable to convert config value for key '${r}' in '${e}' to a ${n}`}};class vn{static fromConfigs(e){return e.length===0?new vn(void 0):e.reduce((n,{data:s,context:a,filteredKeys:l,deprecatedKeys:C})=>{const x=new vn(s,a,n);if(x.filteredKeys=l,C)for(const{key:j,description:K}of C)console.warn(`The configuration key '${j}' of ${a} is deprecated and may be removed soon. ${K||""}`);return x},void 0)}has(e){var n;const s=this.readValue(e);if(s===null)return!1;if(s!==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])].filter(l=>{var C;return((C=this.data)===null||C===void 0?void 0:C[l])!==null})}get(e){const n=this.getOptional(e);if(n===void 0)throw new Error(Ne.missing(this.fullKey(e!=null?e:""),this.context));return n}getOptional(e){var n;const s=Jo(this.readValue(e)),a=(n=this.fallback)===null||n===void 0?void 0:n.getOptional(e);if(s!==null){if(s===void 0){if(0)var l;return Bn(a)}else if(a===void 0)return Bn(s);return Bn(s,a)}}getConfig(e){const n=this.getOptionalConfig(e);if(n===void 0)throw new Error(Ne.missing(this.fullKey(e),this.context));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(ro(s))return this.copy(s,e,a);if(s!==null){if(s!==void 0)throw new TypeError(Ne.type(this.fullKey(e),this.context,Xo(s),"object"));return a}}getConfigArray(e){const n=this.getOptionalConfigArray(e);if(n===void 0)throw new Error(Ne.missing(this.fullKey(e),this.context));return n}getOptionalConfigArray(e){const n=this.readConfigValue(e,a=>{if(!Array.isArray(a))return{expected:"object-array"};for(const[l,C]of a.entries())if(!ro(C))return{expected:"object-array",value:C,key:`${e}[${l}]`};return!0});if(!n){if(0)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(Ne.missing(this.fullKey(e),this.context));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(Ne.convert(this.fullKey(e),this.context,"number"));return s}getBoolean(e){const n=this.getOptionalBoolean(e);if(n===void 0)throw new Error(Ne.missing(this.fullKey(e),this.context));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(Ne.convert(this.fullKey(e),this.context,"boolean"))}getString(e){const n=this.getOptionalString(e);if(n===void 0)throw new Error(Ne.missing(this.fullKey(e),this.context));return n}getOptionalString(e){return this.readConfigValue(e,n=>typeof n=="string"&&n!==""||{expected:"string"})}getStringArray(e){const n=this.getOptionalStringArray(e);if(n===void 0)throw new Error(Ne.missing(this.fullKey(e),this.context));return n}getOptionalStringArray(e){return this.readConfigValue(e,n=>{if(!Array.isArray(n))return{expected:"string-array"};for(const[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 vn(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(0)var l;return(a=this.fallback)===null||a===void 0?void 0:a.readConfigValue(e,n)}if(s===null)return;const C=n(s);if(C!==!0){const{key:x=e,value:j=s,expected:K}=C;throw new TypeError(Ne.type(this.fullKey(x),this.context,Xo(j),K))}return s}readValue(e){const n=e?e.split("."):[];for(const a of n)if(!vs.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(ro(s))s=s[l];else if(s!=null){const C=this.fullKey(n.slice(0,a).join("."));throw new TypeError(Ne.type(C,this.context,Xo(s),"object"))}return s}constructor(e,n="mock-config",s,a=""){(0,A._)(this,"data",void 0),(0,A._)(this,"context",void 0),(0,A._)(this,"fallback",void 0),(0,A._)(this,"prefix",void 0),(0,A._)(this,"filteredKeys",void 0),(0,A._)(this,"notifiedFilteredKeys",void 0),this.data=e,this.context=n,this.fallback=s,this.prefix=a,this.notifiedFilteredKeys=new Set}}const Un="theme";class so{static createWithStorage(e){const n=new so(e);if(!window.localStorage)return n;var s;const a=(s=window.localStorage.getItem(Un))!==null&&s!==void 0?s:void 0;return n.setActiveThemeId(a),n.activeThemeId$().subscribe(l=>{l?window.localStorage.setItem(Un,l):window.localStorage.removeItem(Un)}),window.addEventListener("storage",l=>{if(l.key===Un){var C;const x=(C=localStorage.getItem(Un))!==null&&C!==void 0?C:void 0;n.setActiveThemeId(x)}}),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,A._)(this,"themes",void 0),(0,A._)(this,"activeThemeId",void 0),(0,A._)(this,"subject",void 0),this.themes=e,this.subject=new tt(void 0)}}var mn=t(63636);function mr(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 ms{registerFlag(e){mr(e.name),this.registeredFeatureFlags.push(e)}getRegisteredFlags(){return this.registeredFeatureFlags.slice()}isActive(e){return this.flags||(this.flags=this.load()),this.flags.get(e)===mn.S.Active}save(e){this.flags||(this.flags=this.load()),e.merge||this.flags.clear();for(const[s,a]of Object.entries(e.states))this.flags.set(s,a);const n=Array.from(this.flags.entries()).filter(([,s])=>s===mn.S.Active);window.localStorage.setItem("featureFlags",JSON.stringify(Object.fromEntries(n)))}load(){try{const e=window.localStorage.getItem("featureFlags");if(!e)return new Map;const n=JSON.parse(e);if(typeof n!="object"||n===null||Array.isArray(n))return new Map;const s=Object.entries(n).filter(([a,l])=>(mr(a),l===mn.S.Active));return new Map(s)}catch{return new Map}}constructor(){(0,A._)(this,"registeredFeatureFlags",[]),(0,A._)(this,"flags",void 0)}}const io=(0,wt.y)({id:"core.apptheme"}),yr=(0,wt.y)({id:"core.applanguage"});var ys=t(56038);class _o{static validateFactories(e,n){for(const s of n){const a=[s],l=new Set;for(;a.length;){const C=a.shift(),x=e.get(C);if(x)for(const j of Object.values(x.deps)){if(j.id===s.id)throw new Error(`Circular dependency of api factory for ${s}`);l.has(j)||(l.add(j),a.push(j))}}}}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]),C=a.factory(l);return this.apis.set(e.id,C),C}loadDeps(e,n,s){const a={};for(const l in n)if(n.hasOwnProperty(l)){const C=n[l],x=this.load(C,s);if(!x)throw new Error(`No API factory available for dependency ${C} of dependent ${e}`);a[l]=x}return a}constructor(e){(0,A._)(this,"factories",void 0),(0,A._)(this,"apis",void 0),this.factories=e,this.apis=new Map}}var qo;(function(r){r[r.default=10]="default",r[r.app=50]="app",r[r.static=100]="static"})(qo||(qo={}));class Es{register(e,n){const s=qo[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,A._)(this,"factories",new Map)}}function As(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,C=>{if(!(0,d.isValidElement)(C))return;const x={};for(const j in e)if(e.hasOwnProperty(j)){const K=e[j];x[j]=K.visit(K.accumulator,C,a,l[j])}for(const j of r.discoverers){const K=j(C);K&&n.push({node:K,parent:C,contexts:x})}})}return Object.fromEntries(Object.entries(e).map(([s,a])=>[s,a.accumulator]))}function ao(r,e){return()=>({accumulator:r(),visit:e})}function xs(r){var e;return(e=r.props)===null||e===void 0?void 0:e.children}function Cs(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 we=t(19402);const Ss=ao(()=>new Set,(r,e)=>{const n=(0,we.E)(e,"core.plugin");n&&r.add(n)});var Fn=t(72427);const Er=r=>{const{children:e}=r,n=(0,Fn.gf)(mn.B),s="with"in r?n.isActive(r.with):!n.isActive(r.without);return(0,i.jsx)(i.Fragment,{children:s?e:null})};(0,we.h)(Er,"core.featureFlagged",!0);const lo={caseSensitive:!1,path:"*",element:"match-all",routeRefs:new Set,plugins:new Set};function co(r){const e=r;if(e!=null&&e.type){var n,s;return(s=(n=e.type.displayName)!==null&&n!==void 0?n:e.type.name)!==null&&s!==void 0?s:String(e.type)}return String(e)}const Ar=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,we.E)(n,"core.mountPoint");if(s){const a=(0,we.E)(n,"core.plugin");e.push({routeRef:s,plugin:a})}xr(n.props.children,e)}),e}const bs=ao(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,s)=>{var a,l;if(s!=null&&s.isElementAncestor)return s;if((n==null?void 0:n.props.element)===e)return{...s,isElementAncestor:!0};const C=(a=e.props)===null||a===void 0?void 0:a.path,x=(0,we.E)(e,"core.mountPoint");if(x&&C)throw new Error(`Path property may not be set directly on a routable extension "${co(e)}"`);var j;const K=(j=s==null||(l=s.obj)===null||l===void 0?void 0:l.children)!==null&&j!==void 0?j:r.objects;if(C!==void 0){if(typeof C!="string")throw new Error(`Element path must be a string at "${co(e)}"`);const St=C.startsWith("/")?C.slice(1):C,Gt=e.props.element;if((0,we.E)(e,"core.gatherMountPoints")){var Z;if(Gt)throw new Error(`Mount point gatherers may not have an element prop "${co(e)}"`);const Yt={path:St,element:"gathered",routeRefs:new Set,caseSensitive:!!(!((Z=e.props)===null||Z===void 0)&&Z.caseSensitive),children:[lo],plugins:new Set};return K.push(Yt),{obj:Yt,gatherPath:St,routeRef:s==null?void 0:s.routeRef,gatherRouteRef:s==null?void 0:s.routeRef}}if(Gt){var rt;const[Yt,...ee]=xr(Gt);if(ee.length>0)throw new Error(`Route element with path "${C}" may not contain multiple routable extensions`);if(!Yt)return s;const{routeRef:Ae,plugin:Xe}=Yt,Hn={path:St,element:"mounted",routeRefs:new Set([Ae]),caseSensitive:!!(!((rt=e.props)===null||rt===void 0)&&rt.caseSensitive),children:[lo],plugins:Ar(Xe)};return K.push(Hn),r.paths.set(Ae,St),r.parents.set(Ae,s==null?void 0:s.routeRef),{obj:Hn,routeRef:Ae!=null?Ae:s==null?void 0:s.routeRef,gatherPath:St,gatherRouteRef:s==null?void 0:s.gatherRouteRef}}}if(x){var ht;if((s==null?void 0:s.gatherPath)===void 0)throw new Error(`Routable extension "${co(e)}" with mount point "${x}" must be assigned a path`);s==null||(ht=s.obj)===null||ht===void 0||ht.routeRefs.add(x);const St=(0,we.E)(e,"core.plugin");if(St){var At;s==null||(At=s.obj)===null||At===void 0||At.plugins.add(St)}return r.paths.set(x,s.gatherPath),r.parents.set(x,s==null?void 0:s.gatherRouteRef),{...s,routeRef:x}}return s}),Os=ao(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,s)=>{var a,l,C;if((n==null?void 0:n.props.element)===e)return s;let x=s==null?void 0:s.obj,j=s==null?void 0:s.routeRef,K=s==null?void 0:s.sticky;const Z=(a=e.props)===null||a===void 0?void 0:a.path;var rt;const ht=(rt=x==null?void 0:x.children)!==null&&rt!==void 0?rt:r.objects,At=!!(!((l=e.props)===null||l===void 0)&&l.caseSensitive);let St=s==null?void 0:s.path;if((0,we.E)(e,"core.gatherMountPoints")){if(!Z)throw new Error("Mount point gatherer must have a path");St=Z}const Gt=(C=e.props)===null||C===void 0?void 0:C.element;let Yt=(0,we.E)(e,"core.mountPoint");if(!Yt&&(0,d.isValidElement)(Gt)&&(Yt=(0,we.E)(Gt,"core.mountPoint")),Yt){let Xe=Z;if(St&&(Xe?St=void 0:Xe=St),!Xe)throw new Error("Mounted routable extension must have a path");r.paths.set(Yt,Xe),j&&K?(r.parents.set(Yt,j),Z&&(j=Yt,K=!1)):(r.parents.set(Yt,j),j=Yt),Z?(x={caseSensitive:At,path:Z,element:"mounted",routeRefs:new Set([Yt]),children:[lo],plugins:Ar((0,we.E)(e.props.element,"core.plugin"))},ht.push(x)):x==null||x.routeRefs.add(Yt)}if((0,we.E)(e,"core.gatherMountPoints")&&(K=!0),(0,we.E)(e,"core.gatherMountPoints")){if(!Z)throw new Error("Mount point gatherer must have a path");if(!Yt){var Ae;x={caseSensitive:At,path:Z,element:"gathered",routeRefs:new Set,children:[lo],plugins:(s==null||(Ae=s.obj)===null||Ae===void 0?void 0:Ae.plugins)||new Set},ht.push(x)}}return{obj:x,path:St,routeRef:j,sticky:K}}),ws=ao(()=>new Set,(r,e)=>{if(e.type===Er){const n=e.props;r.add("with"in n?n.with:n.without)}});var $n=t(74808),Ps=t(63544);const Nn=(0,Ps.Q)("route-ref-type",()=>Symbol("route-ref-type"));function Cr(r){return r[Nn]==="absolute"}function Sr(r){return r[Nn]==="sub"}function Ts(r){return r[Nn]==="external"}function uo(...r){const e=r.join("/").replace(/\/\/+/g,"/");return e!=="/"&&e.endsWith("/")?e.slice(0,-1):e}var Rs=t(46155),Is=t.n(Rs);function Ds(r,e,n){let s,a="";if(Cr(r))s=r;else if(Sr(r))s=r.parent,a=r.path;else if(Ts(r)){const x=n.get(r);if(!x)return[void 0,""];if(Cr(x))s=x;else if(Sr(x))s=x.parent,a=x.path;else throw new Error(`ExternalRouteRef was bound to invalid target, ${x}`)}else throw r[Nn]?new Error(`Unknown or invalid route ref type, ${r[Nn]}`):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 C=uo(l,a);return[s,C]}function Ls(r,e,n,s,a){var l;const C=(l=(0,$n.ue)(a,e))!==null&&l!==void 0?l:[],x=Array();let j=-1;for(let rt=r;rt&&(j=C.findIndex(ht=>ht.route.routeRefs.has(rt)),j===-1);rt=s.get(rt))x.unshift(rt);x.length===0&&(j-=1);const K=j===-1?"":C[j].pathname,Z=x.slice(0,-1).map(rt=>{const ht=n.get(rt);if(ht===void 0)throw new Error(`No path for ${rt}`);if(ht.includes(":"))throw new Error(`Cannot route to ${r} with parent ${rt} as it has parameters`);return ht});return`${uo(K,...Z)}/`}class Ms{resolve(e,n){const[s,a]=Ds(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 C=this.appBasePath+Ls(s,l,this.routePaths,this.routeParents,this.routeObjects);return(...[j])=>{const K=j&&Is()(j,Z=>typeof Z=="string"?Z.replaceAll(/[&?#;\/]/g,rt=>encodeURIComponent(rt)):Z);return uo(C,(0,$n.tW)(a,K))}}trimPath(e){return e&&(e.startsWith(this.appBasePath)?e.slice(this.appBasePath.length):e)}constructor(e,n,s,a,l){(0,A._)(this,"routePaths",void 0),(0,A._)(this,"routeParents",void 0),(0,A._)(this,"routeObjects",void 0),(0,A._)(this,"routeBindings",void 0),(0,A._)(this,"appBasePath",void 0),this.routePaths=e,this.routeParents=n,this.routeObjects=s,this.routeBindings=a,this.appBasePath=l}}const js=(0,nn.tK)("routing-context"),Bs=({routePaths:r,routeParents:e,routeObjects:n,routeBindings:s,basePath:a="",children:l})=>{const C=new Ms(r,e,n,s,a),x=(0,pn.B)({1:C});return(0,i.jsx)(js.Provider,{value:x,children:l})};function Us(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 x=r.get(a);if(x===void 0)throw new Error(`No path for ${a}`);l=uo(x,l),a=e.get(a)}const C=l.match(/:(\w+)/g);if(C){for(let x=0;x<C.length;x++)for(let j=x+1;j<C.length;j++)if(C[j]===C[x])throw new Error(`Parameter ${C[j]} is duplicated in path ${l}`)}}}function Fs(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 $s=(0,nn.tK)("app-context"),Ns=({appContext:r,children:e})=>{const n=(0,pn.B)({1:r});return(0,i.jsx)($s.Provider,{value:n,children:e})};function br(r){return new Error(`Tried to access IdentityApi ${r} before app was loaded`)}function tr(r){console.warn(`WARNING: Call to ${r} is deprecated and will break in the future`)}class Ws{setTarget(e,n){this.target=e,this.signOutTargetUrl=n.signOutTargetUrl,this.resolveTarget(e)}getUserId(){if(!this.target)throw br("getUserId");if(!this.target.getUserId)throw new Error("IdentityApi does not implement getUserId");return tr("getUserId"),this.target.getUserId()}getProfile(){if(!this.target)throw br("getProfile");if(!this.target.getProfile)throw new Error("IdentityApi does not implement getProfile");return tr("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 tr("getIdToken"),e.getIdToken()})}async signOut(){await this.waitForTarget.then(e=>e.signOut()),window.location.href=this.signOutTargetUrl}constructor(){(0,A._)(this,"target",void 0),(0,A._)(this,"waitForTarget",void 0),(0,A._)(this,"resolveTarget",()=>{}),(0,A._)(this,"signOutTargetUrl","/"),this.waitForTarget=new Promise(e=>{this.resolveTarget=e})}}var ks=t(1394);function Ks(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 zs=()=>{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 Or({children:r}){const e=(0,Fn.gf)(io),n=(0,ks.A)(e.activeThemeId$(),e.getActiveThemeId()),s=window.matchMedia?zs():!1,a=Ks(n,s,e.getInstalledThemes());if(!a)throw new Error("App has no themes");return(0,i.jsx)(a.Provider,{children:r})}const wr=async()=>Hs();function Hs(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 Vs{add(e,n){return this.apis.push([e.id,n]),n}build(){return new yn(new Map(this.apis))}constructor(){(0,A._)(this,"apis",[])}}class yn{static builder(){return new Vs}static from(e){return new yn(new Map(e.map(([n,s])=>[n.id,s])))}static with(e,n){return new yn(new Map([[e.id,n]]))}with(e,n){return new yn(new Map([...this.apis,[e.id,n]]))}get(e){return this.apis.get(e.id)}constructor(e){(0,A._)(this,"apis",void 0),this.apis=e}}function Gs(r){const e=new Map;return r&&r({bind:(s,a)=>{for(const[l,C]of Object.entries(a)){const x=s[l];if(!x)throw new Error(`Key ${l} is not an existing external route`);if(!C&&!x.optional)throw new Error(`External route ${l} is required but was undefined`);C&&e.set(x,C)}}}),e}function Wn(){const[r]=(0,m.AV)((0,i.jsx)(m.qh,{index:!0,element:(0,i.jsx)("div",{})}));return!r.index}const Pr=(0,d.createContext)(void 0);var Tr=t(82266),Rr=t(93368),Ys=t(25862);const Qs=(r,e)=>{try{const n=(0,$n.ue)(e,{pathname:r}),s=n==null?void 0:n.filter(j=>{var K;return(j==null||(K=j.route.routeRefs)===null||K===void 0?void 0:K.size)>0}).pop(),a=s==null?void 0:s.route;if(!a||a.path===""&&r!=="/")return;let l;a.routeRefs.size===1&&(l=a.routeRefs.values().next().value);let C;a.plugins.size===1&&(C=a.plugins.values().next().value);const x=Object.entries((s==null?void 0:s.params)||{}).reduce((j,[K,Z])=>(Z!==void 0&&K!=="*"&&(j[K]=Z),j),{});return{extension:"App",pluginId:(C==null?void 0:C.getId())||"root",...l?{routeRef:l.id}:{},_routeNodeType:a.element,params:x}}catch{return}},Zs=({pathname:r,search:e,hash:n,attributes:s})=>{const a=(0,Rr.s)();return(0,d.useEffect)(()=>{a.captureEvent("navigate",`${r}${e}${n}`,{attributes:s})},[a,r,e,n,s]),null},ho=({routeObjects:r})=>{const{pathname:e,search:n,hash:s}=(0,m.zy)(),{params:a,...l}=Qs(e,r)||{params:{}};return(0,i.jsx)(Ys.Ig,{attributes:l,children:(0,i.jsx)(Zs,{pathname:e,search:n,hash:s,attributes:a})})};function Js(r){return Wn()?er(r):""}function er(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 Ir({component:r,appIdentityProxy:e,children:n}){const[s,a]=(0,d.useState)(),l=(0,Fn.gf)(Mt.U),C=er(l);return s?(e.setTarget(s,{signOutTargetUrl:C||"/"}),(0,i.jsx)(i.Fragment,{children:n})):(0,i.jsx)(r,{onSignInSuccess:a})}function Dr(r){const{Router:e,SignInPage:n}=(0,Tr.n)().getComponents(),s=(0,Fn.gf)(Mt.U),a=er(s),l=`${a}/*`,C=(0,d.useContext)(Pr);if(!C)throw new Error("AppRouter must be rendered within the AppProvider");const{routeObjects:x,appIdentityProxy:j}=C;return n?Wn()?(0,i.jsxs)(e,{children:[(0,i.jsx)(ho,{routeObjects:x}),(0,i.jsx)(Ir,{component:n,appIdentityProxy:j,children:(0,i.jsx)(m.BV,{children:(0,i.jsx)(m.qh,{path:l,element:(0,i.jsx)(i.Fragment,{children:r.children})})})})]}):(0,i.jsxs)(e,{basename:a,children:[(0,i.jsx)(ho,{routeObjects:x}),(0,i.jsx)(Ir,{component:n,appIdentityProxy:j,children:r.children})]}):(j.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||"/"}),Wn()?(0,i.jsxs)(e,{children:[(0,i.jsx)(ho,{routeObjects:x}),(0,i.jsx)(m.BV,{children:(0,i.jsx)(m.qh,{path:l,element:(0,i.jsx)(i.Fragment,{children:r.children})})})]}):(0,i.jsxs)(e,{basename:a,children:[(0,i.jsx)(ho,{routeObjects:x}),r.children]}))}(0,we.h)(Dr,"core.type","AppRouter");const kn="language",Ze="en";var Kn=new WeakMap,En=new WeakMap,fo=new WeakMap;class go{static create(e){var n;const s=(n=e==null?void 0:e.availableLanguages)!==null&&n!==void 0?n:[Ze];if(s.length!==new Set(s).size)throw new Error(`Supported languages may not contain duplicates, got '${s.join("', '")}'`);if(!s.includes(Ze))throw new Error(`Supported languages must include '${Ze}'`);var a;const l=(a=e==null?void 0:e.defaultLanguage)!==null&&a!==void 0?a:Ze;if(!s.includes(l))throw new Error(`Initial language must be one of the supported languages, got '${l}'`);return new go(s,l)}static createWithStorage(e){const n=go.create(e);if(!window.localStorage)return n;const s=window.localStorage.getItem(kn),{languages:a}=n.getAvailableLanguages();return s&&a.includes(s)&&n.setLanguage(s),n.language$().subscribe(({language:l})=>{l!==window.localStorage.getItem(kn)&&window.localStorage.setItem(kn,l)}),window.addEventListener("storage",l=>{if(l.key===kn){var C;const x=(C=localStorage.getItem(kn))!==null&&C!==void 0?C:void 0;x&&n.setLanguage(x)}}),n}getAvailableLanguages(){return{languages:(0,Lt._)(this,Kn).slice()}}setLanguage(e){const n=e!=null?e:Ze;if(n!==(0,Lt._)(this,En)){if(n&&!(0,Lt._)(this,Kn).includes(n))throw new Error(`Failed to change language to '${n}', available languages are '${(0,Lt._)(this,Kn).join("', '")}'`);(0,g._)(this,En,n),(0,Lt._)(this,fo).next({language:n})}}getLanguage(){return{language:(0,Lt._)(this,En)}}language$(){return(0,Lt._)(this,fo)}constructor(e,n){(0,he._)(this,Kn,{writable:!0,value:void 0}),(0,he._)(this,En,{writable:!0,value:void 0}),(0,he._)(this,fo,{writable:!0,value:void 0}),(0,g._)(this,Kn,e),(0,g._)(this,En,n),(0,g._)(this,fo,new tt({language:(0,Lt._)(this,En)}))}}var We=t(75944),un=t(91196),Xs=t(47304),_s=t(99833),Lr=t(93184);function Mr(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==null))}var An=new WeakMap,po=new WeakMap,xn=new WeakMap,vo=new WeakSet;class qs{addTranslationResource(e){const n=(0,_s.Y)(e);for(const s of n.resources){const a=(0,We._)(this,vo,nr).call(this,s.language,n.id);(0,Lt._)(this,xn).has(a)||(0,Lt._)(this,xn).set(a,s.loader)}}needsLoading(e,n){const s=(0,We._)(this,vo,nr).call(this,e,n);return(0,Lt._)(this,xn).get(s)?!(0,Lt._)(this,An).has(s):!1}async load(e,n){const s=(0,We._)(this,vo,nr).call(this,e,n),a=(0,Lt._)(this,xn).get(s);if(!a||(0,Lt._)(this,An).has(s))return;const l=(0,Lt._)(this,po).get(s);if(l){await l;return}const C=a().then(x=>{this.onLoad({language:e,namespace:n,messages:x.messages}),(0,Lt._)(this,An).add(s)},x=>{throw(0,Lt._)(this,An).add(s),x});(0,Lt._)(this,po).set(s,C),await C}constructor(e){(0,un._)(this,vo),(0,A._)(this,"onLoad",void 0),(0,he._)(this,An,{writable:!0,value:void 0}),(0,he._)(this,po,{writable:!0,value:void 0}),(0,he._)(this,xn,{writable:!0,value:void 0}),this.onLoad=e,(0,g._)(this,An,new Set),(0,g._)(this,po,new Map),(0,g._)(this,xn,new Map)}}function nr(r,e){return`${r}/${e}`}var zn=new WeakMap,Cn=new WeakMap,hn=new WeakMap,or=new WeakMap,mo=new WeakMap,jr=new WeakSet,yo=new WeakSet,rr=new WeakSet;class sr{static create(e){const{languages:n}=e.languageApi.getAvailableLanguages(),s=(0,Xs.Q_)({fallbackLng:Ze,supportedLngs:n,interpolation:{escapeValue:!1},ns:[],defaultNS:!1,fallbackNS:!1,initImmediate:!1});if(s.init(),!s.isInitialized)throw new Error("i18next was unexpectedly not initialized");const{language:a}=e.languageApi.getLanguage();a!==Ze&&s.changeLanguage(a);const l=new qs(j=>{s.addResourceBundle(j.language,j.namespace,Mr(j.messages),!1,!0)}),C=(e==null?void 0:e.resources)||[];for(let j=C.length-1;j>=0;j--){const K=C[j];K.$$type==="@backstage/TranslationResource"?l.addTranslationResource(K):K.$$type==="@backstage/TranslationMessages"&&s.addResourceBundle(Ze,K.id,Mr(K.messages),!0,!1)}const x=new sr(s,l,e.languageApi.getLanguage().language);return e.languageApi.language$().subscribe(({language:j})=>{(0,We._)(x,jr,ti).call(x,j)}),x}getTranslation(e){const n=(0,Lr.v)(e);return(0,We._)(this,rr,Br).call(this,n),(0,We._)(this,yo,ir).call(this,n)}translation$(e){const n=(0,Lr.v)(e);return(0,We._)(this,rr,Br).call(this,n),new(k())(s=>{let a={};const l=()=>{a={};const x=a;(0,Lt._)(this,Cn).load((0,Lt._)(this,hn),n.id).then(()=>{if(x===a){const j=(0,We._)(this,yo,ir).call(this,n);j.ready&&s.next(j)}},j=>{x===a&&s.error(Array.isArray(j)?j[0]:j)})},C=()=>{const x=(0,We._)(this,yo,ir).call(this,n);x.ready?s.next(x):l()};return(0,Lt._)(this,Cn).needsLoading((0,Lt._)(this,hn),n.id)&&l(),(0,Lt._)(this,mo).add(C),()=>{(0,Lt._)(this,mo).delete(C)}})}constructor(e,n,s){(0,un._)(this,jr),(0,un._)(this,yo),(0,un._)(this,rr),(0,he._)(this,zn,{writable:!0,value:void 0}),(0,he._)(this,Cn,{writable:!0,value:void 0}),(0,he._)(this,hn,{writable:!0,value:void 0}),(0,he._)(this,or,{writable:!0,value:new Set}),(0,he._)(this,mo,{writable:!0,value:new Set}),(0,g._)(this,zn,e),(0,g._)(this,Cn,n),(0,g._)(this,hn,s)}}function ti(r){(0,Lt._)(this,hn)!==r&&((0,g._)(this,hn,r),(0,Lt._)(this,zn).changeLanguage(r),(0,Lt._)(this,mo).forEach(e=>e()))}function ir(r){return(0,Lt._)(this,Cn).needsLoading((0,Lt._)(this,hn),r.id)?{ready:!1}:{ready:!0,t:(0,Lt._)(this,zn).getFixedT(null,r.id)}}function Br(r){if((0,Lt._)(this,or).has(r.id))return;(0,Lt._)(this,or).add(r.id);const e=r.getDefaultMessages();(0,Lt._)(this,zn).addResourceBundle(Ze,r.id,e,!0,!1);const n=r.getDefaultResource();n&&(0,Lt._)(this,Cn).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 ei(r){const e=vn.fromConfigs(r),n=e.getOptionalString("app.baseUrl"),s=e.getOptionalString("backend.baseUrl");let a=r,l,C;if(n&&s){const x=new URL(n).origin,j=new URL(s).origin;if(x===j){const K=Ur(s);s!==K&&(l=K)}}if(n){const x=Ur(n);n!==x&&(C=x)}return(C||l)&&(a=a.concat({data:{app:C&&{baseUrl:C},backend:l&&{baseUrl:l}},context:"relative-resolver"})),a}function ni(r,e,n){var s;const a=!!r,l=(0,Ln.A)(r||(()=>Promise.resolve([])));let C;if(a&&l.loading){const{Progress:K}=e;C=(0,i.jsx)(K,{})}else if(l.error){const{BootErrorPage:K}=e;C=(0,i.jsx)(K,{step:"load-config",error:l.error})}const{ThemeProvider:x=Or}=e;return C?{node:(0,i.jsx)(Zo,{apis:yn.with(io,n),children:(0,i.jsx)(x,{children:C})})}:{api:vn.fromConfigs(!((s=l.value)===null||s===void 0)&&s.length?ei(l.value):[])}}class oi{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,A._)(this,"app",void 0),this.app=e}}var ar=new WeakMap;class ri{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,Lt._)(this,ar))throw new Error("app.getProvider() or app.createRoot() has already been called, and can only be called once");(0,g._)(this,ar,!0);const e=new oi(this);let n=!1;return({children:a})=>{const l=(0,d.useRef)(!0),C=(0,d.useMemo)(()=>so.createWithStorage(this.themes),[]),{routing:x,featureFlags:j,routeBindings:K}=(0,d.useMemo)(()=>{const St=Wn();St&&console.warn(`
4
+ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be removed in a future release.
5
+ Please migrate to use React Router v6 stable.
6
+ See https://backstage.io/docs/tutorials/react-router-stable-migration
7
+ `);const Gt=As({root:a,discoverers:[xs,Cs],collectors:{routing:St?Os:bs,collectedPlugins:Ss,featureFlags:ws}});return Gt.collectedPlugins.forEach(Yt=>this.plugins.add(Yt)),this.verifyPlugins(this.plugins),this.getApiHolder(),{...Gt,routeBindings:Gs(this.bindRoutes)}},[a]);n||(n=!0,Us(x.paths,x.parents),Fs(K,this.plugins));const Z=ni(this.configLoader,this.components,C),rt="api"in Z;if(rt){const{api:St}=Z;this.configApi=St}if("node"in Z)return Z.node;if(rt&&l.current){l.current=!1;const St=this.getApiHolder().get(mn.B);if(St){for(const ee of this.featureFlags)St.registerFlag({...ee,pluginId:""});for(const ee of this.plugins.values())if("getFeatureFlags"in ee)for(const Ae of ee.getFeatureFlags())St.registerFlag({name:Ae.name,pluginId:ee.getId()});else for(const Ae of ee.output())Ae.type==="feature-flag"&&St.registerFlag({name:Ae.name,pluginId:ee.getId()});const Gt=St.getRegisteredFlags(),Yt=new Set(Gt.map(ee=>ee.name));for(const ee of j)Yt.has(ee)||St.registerFlag({name:ee,pluginId:""})}}const{ThemeProvider:ht=Or,Progress:At}=this.components;return(0,i.jsx)(Zo,{apis:this.getApiHolder(),children:(0,i.jsx)(Ns,{appContext:e,children:(0,i.jsx)(ht,{children:(0,i.jsx)(Bs,{routePaths:x.paths,routeParents:x.parents,routeObjects:x.objects,routeBindings:K,basePath:Js(Z.api),children:(0,i.jsx)(Pr.Provider,{value:{routeObjects:x.objects,appIdentityProxy:this.appIdentityProxy},children:(0,i.jsx)(d.Suspense,{fallback:(0,i.jsx)(At,{}),children:a})})})})})})}}getRouter(){return Dr}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 _o.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder}this.apiFactoryRegistry.register("static",{api:io,deps:{},factory:()=>so.createWithStorage(this.themes)}),this.apiFactoryRegistry.register("static",{api:Mt.U,deps:{},factory:()=>{if(!this.configApi)throw new Error("Tried to access config API before config was loaded");return this.configApi}}),this.apiFactoryRegistry.register("static",{api:dn.K,deps:{},factory:()=>this.appIdentityProxy}),this.apiFactoryRegistry.register("static",{api:yr,deps:{},factory:()=>this.appLanguageApi}),this.apiFactoryRegistry.register("default",{api:ys.J,deps:{languageApi:yr},factory:({languageApi:e})=>sr.create({languageApi:e,resources:this.translationResources})}),this.apiFactoryRegistry.register("default",{api:mn.B,deps:{},factory:()=>new ms});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 _o.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder=new _o(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,A._)(this,"apiHolder",void 0),(0,A._)(this,"configApi",void 0),(0,A._)(this,"apis",void 0),(0,A._)(this,"icons",void 0),(0,A._)(this,"plugins",void 0),(0,A._)(this,"featureFlags",void 0),(0,A._)(this,"components",void 0),(0,A._)(this,"themes",void 0),(0,A._)(this,"configLoader",void 0),(0,A._)(this,"defaultApis",void 0),(0,A._)(this,"bindRoutes",void 0),(0,A._)(this,"appLanguageApi",void 0),(0,A._)(this,"translationResources",void 0),(0,A._)(this,"appIdentityProxy",new Ws),(0,A._)(this,"apiFactoryRegistry",void 0),(0,he._)(this,ar,{writable:!0,value:!1});var l;this.apis=(l=e.apis)!==null&&l!==void 0?l:[],this.icons=e.icons;var C;this.plugins=new Set((C=e.plugins)!==null&&C!==void 0?C:[]);var x;this.featureFlags=(x=e.featureFlags)!==null&&x!==void 0?x:[],this.components=e.components,this.themes=e.themes;var j;this.configLoader=(j=e.configLoader)!==null&&j!==void 0?j:wr;var K;this.defaultApis=(K=e.defaultApis)!==null&&K!==void 0?K:[],this.bindRoutes=e.bindRoutes,this.apiFactoryRegistry=new Es,this.appLanguageApi=go.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 Z;this.translationResources=(Z=(a=e.__experimentalTranslations)===null||a===void 0?void 0:a.resources)!==null&&Z!==void 0?Z:[]}}function si(r){return new ri(r)}function ii(r){var e,n,s,a;return si({...r,apis:(e=r==null?void 0:r.apis)!==null&&e!==void 0?e:[],bindRoutes:r==null?void 0:r.bindRoutes,components:{...I,...r==null?void 0:r.components},configLoader:r==null?void 0:r.configLoader,defaultApis:Lo,icons:{...to,...r==null?void 0:r.icons},plugins:(n=r==null?void 0:r.plugins)!==null&&n!==void 0?n:[],featureFlags:(s=r==null?void 0:r.featureFlags)!==null&&s!==void 0?s:[],themes:(a=r==null?void 0:r.themes)!==null&&a!==void 0?a:se})}var Eo=t(82442);let Fr=!1;const $r=r=>{const e=(0,Tr.n)(),{NotFoundErrorPage:n}=e.getComponents(),s=(0,d.useMemo)(()=>Wn(),[]),l=[...(0,Eo.O)(r.children,C=>C.getElements().flatMap(x=>{let j=x.props.path;if(j==="")return[];var K;j=(K=j==null?void 0:j.replace(/\/\*$/,""))!==null&&K!==void 0?K:"/";let Z=s?x:x.props.element;return!s&&!Z&&(Z=x,Fr||(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] />} />."),Fr=!0)),[{path:j,element:Z,children:x.props.children?[{path:j==="/"?"/":"*",element:x.props.children}]:void 0}]}).sort((x,j)=>j.path.localeCompare(x.path)).map(x=>({...x,path:x.path==="/"?"/":`${x.path}/*`}))),{path:"*",element:(0,i.jsx)(n,{})}];return(0,m.Ye)(l)};(0,we.h)($r,"core.type","FlatRoutes");var on=t(6820),ai=t(78692),li=t(86519);function Nr(r){return!r.cursor}function $a(r){return!Nr(r)}const Se="catalog";var be=t(94214);class ci{async analyzeLocation(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/analyze-location").expand({});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}async createLocation(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/locations{?dryRun}").expand({...e.query});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}async deleteEntityByUid(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/entities/by-uid/{uid}").expand({uid:e.path.uid});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"DELETE"})}async deleteLocation(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/locations/{id}").expand({id:e.path.id});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"DELETE"})}async getEntities(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/entities{?fields,limit,filter*,offset,after,order*}").expand({...e.query});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntitiesByQuery(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/entities/by-query{?fields,limit,orderField*,cursor,filter*,fullTextFilterTerm,fullTextFilterFields}").expand({...e.query});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntitiesByRefs(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/entities/by-refs/{?filter*}").expand({...e.query});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}async getEntityAncestryByName(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/entities/by-name/{kind}/{namespace}/{name}/ancestry").expand({kind:e.path.kind,namespace:e.path.namespace,name:e.path.name});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntityByName(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/entities/by-name/{kind}/{namespace}/{name}").expand({kind:e.path.kind,namespace:e.path.namespace,name:e.path.name});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntityByUid(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/entities/by-uid/{uid}").expand({uid:e.path.uid});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntityFacets(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/entity-facets{?facet*,filter*}").expand({...e.query});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getLocation(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/locations/{id}").expand({id:e.path.id});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getLocationByEntity(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/locations/by-entity/{kind}/{namespace}/{name}").expand({kind:e.path.kind,namespace:e.path.namespace,name:e.path.name});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getLocations(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/locations").expand({});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async refreshEntity(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/refresh").expand({});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}async validateEntity(e,n){const s=await this.discoveryApi.getBaseUrl(Se),l=be.parse("/validate-entity").expand({});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}constructor(e){(0,A._)(this,"discoveryApi",void 0),(0,A._)(this,"fetchApi",void 0),this.discoveryApi=e.discoveryApi,this.fetchApi=e.fetchApi||{fetch:Gn()}}}class di{async getEntityAncestors(e,n){return await this.requestRequired(await this.apiClient.getEntityAncestryByName({path:(0,on.KU)(e.entityRef)},n))}async getLocationById(e,n){return await this.requestOptional(await this.apiClient.getLocation({path:{id:e}},n))}async getLocationByEntity(e,n){return await this.requestOptional(await this.apiClient.getLocationByEntity({path:(0,on.KU)(e)},n))}async getEntities(e,n){const{filter:s=[],fields:a=[],order:l,offset:C,limit:x,after:j}=e!=null?e:{},K=[];if(l)for(const ht of[l].flat())ht&&K.push(`${ht.order}:${ht.field}`);const Z=await this.requestRequired(await this.apiClient.getEntities({query:{fields:a,limit:x,filter:this.getFilterValue(s),offset:C,after:j,order:l?K:void 0}},n)),rt=(ht,At)=>{var St,Gt;if(((St=ht.metadata)===null||St===void 0?void 0:St.name)===void 0||ht.kind===void 0||((Gt=At.metadata)===null||Gt===void 0?void 0:Gt.name)===void 0||At.kind===void 0)return 0;const Yt=(0,on.U2)(ht),ee=(0,on.U2)(At);return Yt<ee?-1:Yt>ee?1:0};return{items:Z.sort(rt)}}async getEntitiesByRefs(e,n){const s=await this.apiClient.getEntitiesByRefs({body:{entityRefs:e.entityRefs,fields:e.fields},query:{filter:this.getFilterValue(e.filter)}},n);if(!s.ok)throw await tn.o.fromResponse(s);const{items:a}=await s.json();return{items:a.map(l=>l!=null?l:void 0)}}async queryEntities(e={},n){const s={};if(Nr(e)){var a,l;const{fields:C=[],filter:x,limit:j,orderFields:K,fullTextFilter:Z}=e;s.filter=this.getFilterValue(x),j!==void 0&&(s.limit=j),K!==void 0&&(s.orderField=(Array.isArray(K)?K:[K]).map(({field:ht,order:At})=>`${ht},${At}`)),C.length&&(s.fields=C);const rt=Z==null||(a=Z.term)===null||a===void 0?void 0:a.trim();rt&&(s.fullTextFilterTerm=rt),!(Z==null||(l=Z.fields)===null||l===void 0)&&l.length&&(s.fullTextFilterFields=Z.fields)}else{const{fields:C=[],limit:x,cursor:j}=e;s.cursor=j,x!==void 0&&(s.limit=x),C.length&&(s.fields=C)}return this.apiClient.getEntitiesByQuery({query:s},n).then(C=>C.json())}async getEntityByRef(e,n){return this.requestOptional(await this.apiClient.getEntityByName({path:(0,on.KU)(e)},n))}async getEntityByName(e,n){const{kind:s,namespace:a="default",name:l}=e;return this.requestOptional(await this.apiClient.getEntityByName({path:{kind:s,namespace:a,name:l}},n))}async refreshEntity(e,n){const s=await this.apiClient.refreshEntity({body:{entityRef:e}},n);if(s.status!==200)throw new Error(await s.text())}async getEntityFacets(e,n){const{filter:s=[],facets:a}=e;return await this.requestOptional(await this.apiClient.getEntityFacets({query:{facet:a,filter:this.getFilterValue(s)}},n))}async addLocation(e,n){const{type:s="url",target:a,dryRun:l}=e,C=await this.apiClient.createLocation({body:{type:s,target:a},query:{dryRun:l?"true":void 0}},n);if(C.status!==201)throw new Error(await C.text());const{location:x,entities:j,exists:K}=await C.json();if(!x)throw new Error(`Location wasn't added: ${a}`);return{location:x,entities:j,exists:K}}async getLocationByRef(e,n){return(await this.requestRequired(await this.apiClient.getLocations({},n))).map(a=>a.data).find(a=>e===(0,ai.KL)(a))}async removeLocationById(e,n){await this.requestIgnored(await this.apiClient.deleteLocation({path:{id:e}},n))}async removeEntityByUid(e,n){await this.requestIgnored(await this.apiClient.deleteEntityByUid({path:{uid:e}},n))}async validateEntity(e,n,s){const a=await this.apiClient.validateEntity({body:{entity:e,location:n}},s);if(a.ok)return{valid:!0};if(a.status!==400)throw await tn.o.fromResponse(a);const{errors:l=[]}=await a.json();return{valid:!1,errors:l}}async requestIgnored(e){if(!e.ok)throw await tn.o.fromResponse(e)}async requestRequired(e){if(!e.ok)throw await tn.o.fromResponse(e);return e.json()}async requestOptional(e){if(!e.ok){if(e.status===404)return;throw await tn.o.fromResponse(e)}return await e.json()}getFilterValue(e=[]){const n=[];for(const s of[e].flat()){const a=[];for(const[l,C]of Object.entries(s))for(const x of[C].flat())x===li.c?a.push(l):typeof x=="string"&&a.push(`${l}=${x}`);a.length&&n.push(a.join(","))}return n}constructor(e){(0,A._)(this,"apiClient",void 0),this.apiClient=new ci(e)}}var Wr=t(7341),ui=t(18),hi=t(82292),kr=t(29207),Sn=t(95203),fi=t(9803),Be=t(88758),gi=t(54560),bn=t(45250);async function pi({storageApi:r}){const e=r.forBucket("settings"),n=r.forBucket("starredEntities"),s=e.snapshot("starredEntities").value;if(!(0,bn.isArray)(s))return;var a;const l=new Set((a=n.snapshot("entityRefs").value)!==null&&a!==void 0?a:[]);s.filter(bn.isString).map(C=>C.split(":")).filter(C=>C.length===4&&C[0]==="entity").map(([C,x,j,K])=>(0,on.U2)({kind:x,namespace:j,name:K})).forEach(C=>l.add(C)),await n.set("entityRefs",Array.from(l)),await e.remove("starredEntities")}class vi{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,A._)(this,"settingsStore",void 0),(0,A._)(this,"starredEntities",void 0),(0,A._)(this,"subscribers",new Set),(0,A._)(this,"observable",new(k())(s=>(s.next(new Set(this.starredEntities)),this.subscribers.add(s),()=>{this.subscribers.delete(s)}))),pi(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()}})}}function lr(r){const{years:e=0,months:n=0,weeks:s=0,days:a=0,hours:l=0,minutes:C=0,seconds:x=0,milliseconds:j=0}=r;return((((e*365+n*30+s*7+a)*24+l)*60+C)*60+x)*1e3+j}var mi=t(25033),yi=t.n(mi),Ei=t(25295),Ai=t.n(Ei),xi=t(88083);const Ci={seconds:10},Si={milliseconds:50},bi={api:Zn.A,component:Xn.A,system:Qn.A,resource:_n.A,domain:wn.A,location:Jn.A,user:Rn.A,group:Tn.A,template:qn.A};function Kr(r){return{async:r.async,render:({entityRef:e,entity:n,context:s})=>({snapshot:(0,xi.T)(n||e,s),loadEntity:r.async})}}var Ao=new WeakMap,cr=new WeakMap,xo=new WeakMap,dr=new WeakMap,Co=new WeakMap,zr=new WeakSet,Hr=new WeakSet,Vr=new WeakSet;class So{static createLocal(){return new So({renderer:Kr({async:!1})})}static create(e){return new So(e)}forEntity(e,n){const{entityRef:s,kind:a,entity:l,needsLoad:C}=(0,We._)(this,zr,Oi).call(this,e),x=Z=>{const{snapshot:rt}=(0,Lt._)(this,Co).render({entityRef:s,loading:Z.loading,entity:Z.entity,context:n||{}});return{...rt,entityRef:s,Icon:(0,We._)(this,Vr,Pi).call(this,rt.Icon,a)}};let j;try{j=x({loading:C,entity:l})}catch{j={primaryTitle:s,entityRef:s}}const K=C?new(k())(Z=>{let rt=!1;return Promise.resolve().then(()=>{var ht;return(ht=(0,Lt._)(this,xo))===null||ht===void 0?void 0:ht.load(s)}).then(ht=>{if(!rt&&ht&&ht.metadata.etag!==(l==null?void 0:l.metadata.etag)){const At=x({loading:!1,entity:ht});Z.next(At)}}).catch(()=>{}).finally(()=>{rt||Z.complete()}),()=>{rt=!0}}):void 0;return{snapshot:j,update$:K}}constructor(e){(0,un._)(this,zr),(0,un._)(this,Hr),(0,un._)(this,Vr),(0,he._)(this,Ao,{writable:!0,value:void 0}),(0,he._)(this,cr,{writable:!0,value:void 0}),(0,he._)(this,xo,{writable:!0,value:void 0}),(0,he._)(this,dr,{writable:!0,value:void 0}),(0,he._)(this,Co,{writable:!0,value:void 0});var n;const s=(n=e.cacheTtl)!==null&&n!==void 0?n:Ci;var a;const l=(a=e.batchDelay)!==null&&a!==void 0?a:Si;var C;const x=(C=e.renderer)!==null&&C!==void 0?C:Kr({async:!0}),j={};Object.entries(bi).forEach(([Z,rt])=>{j[Z.toLocaleLowerCase("en-US")]=rt});var K;if(Object.entries((K=e.kindIcons)!==null&&K!==void 0?K:{}).forEach(([Z,rt])=>{j[Z.toLocaleLowerCase("en-US")]=rt}),x.async){if(!e.catalogApi)throw new TypeError("Asynchronous rendering requires a catalog API");(0,g._)(this,xo,(0,We._)(this,Hr,wi).call(this,{cacheTtl:s,batchDelay:l,renderer:x,catalogApi:e.catalogApi}))}(0,g._)(this,cr,lr(s)),(0,g._)(this,Ao,new Map),(0,g._)(this,dr,j),(0,g._)(this,Co,x)}}function Oi(r){if(typeof r!="string")return{entity:r,kind:r.kind,entityRef:(0,on.U2)(r),needsLoad:!1};const e=(0,Lt._)(this,Ao).get(r),n=e==null?void 0:e.entity,a=(!e||Date.now()-e.updatedAt>(0,Lt._)(this,cr))&&(0,Lt._)(this,Co).async!==!1&&(0,Lt._)(this,xo)!==void 0;return{entity:n,kind:(0,on.KU)(r).kind,entityRef:r,needsLoad:a}}function wi(r){const e=lr(r.cacheTtl),n=lr(r.batchDelay);return new(yi())(async s=>{const{items:a}=await r.catalogApi.getEntitiesByRefs({entityRefs:s}),l=Date.now();return s.forEach((C,x)=>{(0,Lt._)(this,Ao).set(C,{updatedAt:l,entity:a[x]})}),a},{name:"DefaultEntityPresentationApi",cacheMap:new(Ai())(e),maxBatchSize:100,batchScheduleFn:n?s=>setTimeout(s,n):void 0})}function Pi(r,e){return r||(r===!1?!1:(0,Lt._)(this,dr)[e.toLocaleLowerCase("en-US")])}const Te=(0,fi.i)({id:"catalog",apis:[(0,$t.b)({api:Wr.v,deps:{discoveryApi:Kt.I,fetchApi:Vn.a},factory:({discoveryApi:r,fetchApi:e})=>new di({discoveryApi:r,fetchApi:e})}),(0,$t.b)({api:ui.a,deps:{storageApi:Ve},factory:({storageApi:r})=>new vi({storageApi:r})}),(0,$t.b)({api:hi.n,deps:{catalogApi:Wr.v},factory:({catalogApi:r})=>So.create({catalogApi:r})})],routes:{catalogIndex:Sn.rQ,catalogEntity:kr.s},externalRoutes:{createComponent:Sn.qP,viewTechDoc:Sn.UJ,createFromTemplate:Sn.Zg,unregisterRedirect:Sn.pS}}),Na=Te.provide((0,Be.QJ)({name:"CatalogIndexPage",component:()=>Promise.all([t.e(3720),t.e(233),t.e(5974)]).then(t.bind(t,5974)).then(r=>r.CatalogPage),mountPoint:Sn.rQ})),Ti=Te.provide((0,Be.QJ)({name:"CatalogEntityPage",component:()=>t.e(4516).then(t.bind(t,54516)).then(r=>r.CatalogEntityPage),mountPoint:kr.s})),Wa=Te.provide((0,Be.NC)({name:"EntityAboutCard",component:{lazy:()=>Promise.all([t.e(3720),t.e(5977),t.e(1833)]).then(t.bind(t,61833)).then(r=>r.AboutCard)}})),ka=Te.provide((0,Be.NC)({name:"EntityLinksCard",component:{lazy:()=>t.e(8307).then(t.bind(t,18307)).then(r=>r.EntityLinksCard)}})),Ka=Te.provide((0,Be.NC)({name:"EntityLabelsCard",component:{lazy:()=>t.e(3182).then(t.bind(t,63182)).then(r=>r.EntityLabelsCard)}})),za=Te.provide((0,Be.NC)({name:"EntityHasSystemsCard",component:{lazy:()=>t.e(9652).then(t.bind(t,9652)).then(r=>r.HasSystemsCard)}})),Ha=Te.provide((0,Be.NC)({name:"EntityHasComponentsCard",component:{lazy:()=>t.e(2420).then(t.bind(t,52420)).then(r=>r.HasComponentsCard)}})),Va=Te.provide((0,Be.NC)({name:"EntityHasSubcomponentsCard",component:{lazy:()=>t.e(8384).then(t.bind(t,78384)).then(r=>r.HasSubcomponentsCard)}})),Ga=Te.provide((0,Be.NC)({name:"EntityHasResourcesCard",component:{lazy:()=>t.e(6271).then(t.bind(t,56271)).then(r=>r.HasResourcesCard)}})),Ya=Te.provide((0,Be.NC)({name:"EntityDependsOnComponentsCard",component:{lazy:()=>t.e(3632).then(t.bind(t,3632)).then(r=>r.DependsOnComponentsCard)}})),Qa=Te.provide((0,Be.NC)({name:"EntityDependencyOfComponentsCard",component:{lazy:()=>t.e(124).then(t.bind(t,124)).then(r=>r.DependencyOfComponentsCard)}})),Za=Te.provide((0,Be.NC)({name:"EntityDependsOnResourcesCard",component:{lazy:()=>t.e(287).then(t.bind(t,20287)).then(r=>r.DependsOnResourcesCard)}})),Ja=Te.provide((0,Be.NC)({name:"RelatedEntitiesCard",component:{lazy:()=>t.e(2401).then(t.bind(t,52401)).then(r=>r.RelatedEntitiesCard)}})),Xa=Te.provide((0,gi.ec)({name:"CatalogSearchResultListItem",component:()=>t.e(1297).then(t.bind(t,61297)).then(r=>r.CatalogSearchResultListItem),predicate:r=>r.type==="software-catalog"}));var Gr=t(41158),Yr=t(26679);class Ri{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,A._)(this,"configApi",void 0),(0,A._)(this,"discoveryApi",void 0),(0,A._)(this,"identityApi",void 0),this.configApi=e,this.discoveryApi=n,this.identityApi=s}}class Ii{async getCookie(){return{expiresAt:new Date(Date.now()+6e5).toISOString()}}async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getEntityMetadata(e){return{apiVersion:"backstage.io/v1alpha1",kind:"Component",metadata:{name:"local"},spec:{owner:"test",lifecycle:"experimental"}}}async getTechDocsMetadata(e){return{site_name:"Live preview environment",site_description:""}}constructor({configApi:e,discoveryApi:n,identityApi:s}){(0,A._)(this,"configApi",void 0),(0,A._)(this,"discoveryApi",void 0),(0,A._)(this,"identityApi",void 0),this.configApi=e,this.discoveryApi=n,this.identityApi=s}}const Di=[(0,$t.b)({api:Yr.s,deps:{configApi:Mt.U,discoveryApi:Kt.I,identityApi:dn.K},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new Ri({configApi:r,discoveryApi:e,identityApi:n})}),(0,$t.b)({api:Yr.l,deps:{configApi:Mt.U,discoveryApi:Kt.I,identityApi:dn.K},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new Ii({configApi:r,discoveryApi:e,identityApi:n})}),(0,$t.b)({api:Gr.Y,deps:{configApi:Mt.U},factory:({configApi:r})=>Gr.L.fromConfig(r)})],Li={backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}},Mi={backend:{baseUrl:"http://localhost:7007"},techdocs:{builder:"external"}};async function ji(){const r=await fetch("/.detect");return r.ok?(await r.text()).trim()==="techdocs-cli-server":!1}async function Bi(){const r=await wr(),e=await ji();return[...r,{context:"detected",data:e?Li:Mi}]}var Je=t(58837),Ui=t(3210);const Fi=(0,Je.A)({svg:{width:"auto",height:30},path:{fill:"#7df3e1"}});var $i=()=>{const r=Fi();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 Ni=(0,Je.A)({svg:{width:"auto",height:28},path:{fill:"#7df3e1"}});var Wi=()=>{const r=Ni();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"})})},Oe=t(72664);const Qr={isOpen:!1,setOpen:()=>{}},Zr=(0,d.createContext)(Qr),Jr=(0,nn.tK)("sidebar-open-state-context");function Xr(r){const{children:e,value:n}=r;return(0,i.jsx)(Zr.Provider,{value:n,children:(0,i.jsx)(Jr.Provider,{value:(0,pn.B)({1:n}),children:e})})}const ur=()=>{const r=(0,d.useContext)(Jr),e=(0,d.useContext)(Zr);if(r===void 0)return e||Qr;const n=r.atVersion(1);if(n===void 0)throw new Error("No context found for version 1.");return n};var _r=t(72072),qr=t(73524),rn=t(10394),ts=t(5893),ki=t(53373),fn=t.n(ki),Ki=t(1125),es=t(29365),zi=t(73845),hr=t(72501),Hi=t(32881),Vi=t(27326),Gi=t(13085);const ns=(0,d.createContext)({selectedMenuItemIndex:-1,setSelectedMenuItemIndex:()=>{}});var fr=t(34435);const Yi=(0,Je.A)(r=>({root:{flexGrow:0,margin:r.spacing(0,2),color:r.palette.navigation.color},selected:e=>({color:`${r.palette.navigation.selectedColor}!important`,borderTop:`solid ${e.sidebarConfig.selectedIndicatorWidth}px ${r.palette.navigation.indicator}`,marginTop:"-1px"}),label:{display:"none"}})),Qi=r=>{const{to:e,label:n,icon:s,value:a}=r,{sidebarConfig:l}=(0,d.useContext)(Oe.yY),C=Yi({sidebarConfig:l}),x=(0,m.zy)(),{selectedMenuItemIndex:j,setSelectedMenuItemIndex:K}=(0,d.useContext)(ns),Z=(ht,At)=>{K(At===j?-1:At)},rt=a===j&&j>=0||a!==j&&!(j>=0)&&e===x.pathname;return(0,i.jsx)(Gi.A,{"aria-label":n,label:n,icon:s,component:_r.N_,to:e||x.pathname,onChange:Z,value:a,selected:rt,classes:C})},os=r=>{const{children:e,to:n,label:s,icon:a,value:l}=r,{isMobile:C}=(0,fr.Ut)();return C?(0,i.jsx)(Qi,{to:n,label:s,icon:a,value:l}):(0,i.jsx)(i.Fragment,{children:e})},rs=(0,Je.A)(r=>({root:{position:"fixed",backgroundColor:r.palette.navigation.background,color:r.palette.navigation.color,bottom:0,left:0,right:0,zIndex:r.zIndex.snackbar,borderTop:"1px solid #383838","@media print":{display:"none"}},overlay:e=>({background:r.palette.navigation.background,width:"100%",bottom:`${e.sidebarConfig.mobileSidebarHeight}px`,height:`calc(100% - ${e.sidebarConfig.mobileSidebarHeight}px)`,flex:"0 1 auto",overflow:"auto"}),overlayHeader:{display:"flex",color:r.palette.navigation.color,alignItems:"center",justifyContent:"space-between",padding:r.spacing(2,3)},overlayHeaderClose:{color:r.palette.navigation.color},marginMobileSidebar:e=>({marginBottom:`${e.sidebarConfig.mobileSidebarHeight}px`})})),Zi=r=>(0,bn.orderBy)(r,({props:{priority:e}})=>Number.isInteger(e)?e:-1,"desc"),Ji=d.createElement(os).type,Xi=({children:r,label:e="Menu",open:n,onClose:s})=>{const{sidebarConfig:a}=(0,d.useContext)(Oe.yY),l=rs({sidebarConfig:a});return(0,i.jsxs)(zi.Ay,{anchor:"bottom",open:n,onClose:s,ModalProps:{BackdropProps:{classes:{root:l.marginMobileSidebar}}},classes:{root:l.marginMobileSidebar,paperAnchorBottom:l.overlay},children:[(0,i.jsxs)(rn.A,{className:l.overlayHeader,children:[(0,i.jsx)(hr.A,{variant:"h3",children:e}),(0,i.jsx)(es.A,{onClick:s,classes:{root:l.overlayHeaderClose},children:(0,i.jsx)(Hi.A,{})})]}),(0,i.jsx)(rn.A,{component:"nav",children:r})]})},_i=r=>{const{sidebarConfig:e}=(0,d.useContext)(Oe.yY),{children:n}=r,s=rs({sidebarConfig:e}),a=(0,m.zy)(),[l,C]=(0,d.useState)(-1);(0,d.useEffect)(()=>{C(-1)},[a.pathname]);let x=(0,Eo.O)(n,K=>K.getElements().filter(Z=>Z.type===Ji));if(n)x.length?x=Zi(x):x.push((0,i.jsx)(os,{icon:(0,i.jsx)(Vi.A,{}),children:n},"default_menu"));else return null;const j=l>=0&&!x[l].props.to;return(0,i.jsx)(Xr,{value:{isOpen:!0,setOpen:()=>{}},children:(0,i.jsxs)(ns.Provider,{value:{selectedMenuItemIndex:l,setSelectedMenuItemIndex:C},children:[(0,i.jsx)(Xi,{label:x[l]&&x[l].props.label,open:j,onClose:()=>C(-1),children:x[l]&&x[l].props.children}),(0,i.jsx)(Ki.A,{className:s.root,"data-testid":"mobile-sidebar-root",component:"nav",children:x})]})})};var qi=t(87849),ta=t(10315);const ss=(0,Je.A)(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 is;(function(r){r[r.Closed=0]="Closed",r[r.Idle=1]="Idle",r[r.Open=2]="Open"})(is||(is={}));const ea=r=>{const{sidebarConfig:e}=(0,d.useContext)(Oe.yY),{openDelayMs:n=e.defaultOpenDelayMs,closeDelayMs:s=e.defaultCloseDelayMs,disableExpandOnHover:a,children:l}=r,C=ss({sidebarConfig:e}),x=(0,ts.A)(ee=>ee.breakpoints.down("md"),{noSsr:!0}),[j,K]=(0,d.useState)(0),Z=(0,d.useRef)(),{isPinned:rt,toggleSidebarPinState:ht}=(0,fr.Ut)(),At=()=>{rt||a||(Z.current&&(clearTimeout(Z.current),Z.current=void 0),j!==2&&!x&&(Z.current=window.setTimeout(()=>{Z.current=void 0,K(2)},n),K(1)))},St=()=>{rt||a||(Z.current&&(clearTimeout(Z.current),Z.current=void 0),j===1?K(0):j===2&&(Z.current=window.setTimeout(()=>{Z.current=void 0,K(0)},s)))},Gt=j===2&&!x||rt,Yt=ee=>{ee?(K(2),ht()):(K(0),ht())};return(0,i.jsxs)("nav",{style:{},"aria-label":"sidebar nav",children:[(0,i.jsx)(oa,{}),(0,i.jsx)(Xr,{value:{isOpen:Gt,setOpen:Yt},children:(0,i.jsx)(rn.A,{className:C.root,"data-testid":"sidebar-root",onMouseEnter:a?()=>{}:At,onFocus:a?()=>{}:At,onMouseLeave:a?()=>{}:St,onBlur:a?()=>{}:St,children:(0,i.jsx)(rn.A,{className:fn()(C.drawer,C.drawerWidth,{[C.drawerOpen]:Gt}),children:l})})})]})},na=r=>{var e;const n=(0,Oe.Rv)((e=r.sidebarOptions)!==null&&e!==void 0?e:{});var s;const a=(0,Oe.i8)((s=r.submenuOptions)!==null&&s!==void 0?s:{}),{children:l,disableExpandOnHover:C,openDelayMs:x,closeDelayMs:j}=r,{isMobile:K}=(0,fr.Ut)();return K?(0,i.jsx)(_i,{children:l}):(0,i.jsx)(Oe.yY.Provider,{value:{sidebarConfig:n,submenuConfig:a},children:(0,i.jsx)(ea,{openDelayMs:x,closeDelayMs:j,disableExpandOnHover:C,children:l})})};function oa(){const{sidebarConfig:r}=(0,d.useContext)(Oe.yY),{focusContent:e,contentRef:n}=(0,qr.H)(),s=ss({sidebarConfig:r}),{t:a}=(0,qi.i)(ta.O);return n!=null&&n.current?(0,i.jsx)(E.A,{onClick:e,variant:"contained",className:fn()(s.visuallyHidden),children:a("skipToContent")}):null}var ra=t(94509),bo=t(44209),sa=t(79065),ia=t(55704),as=t(62248);const aa=(0,Je.A)(r=>({root:{zIndex:1e3,position:"relative",overflow:"visible",width:r.spacing(7)+1},drawer:e=>{var n,s;return{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",[r.breakpoints.up("sm")]:{marginLeft:e.left,transition:r.transitions.create("margin-left",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.shortest})},top:0,bottom:0,padding:0,background:(s=(n=r.palette.navigation.submenu)===null||n===void 0?void 0:n.background)!==null&&s!==void 0?s:"#404040",overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",cursor:"default",width:e.submenuConfig.drawerWidthClosed,transitionDelay:`${e.submenuConfig.defaultOpenDelayMs}ms`,"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"}}},drawerOpen:e=>({width:e.submenuConfig.drawerWidthOpen,[r.breakpoints.down("xs")]:{width:"100%",position:"relative",paddingLeft:r.spacing(3),left:0,top:0}}),title:{fontSize:r.typography.h5.fontSize,fontWeight:r.typography.fontWeightMedium,color:r.palette.common.white,padding:r.spacing(2.5),[r.breakpoints.down("xs")]:{display:"none"}}}),{name:"BackstageSidebarSubmenu"}),la=r=>{const{isOpen:e}=ur(),{sidebarConfig:n,submenuConfig:s}=(0,d.useContext)(Oe.yY),a=e?n.drawerWidthOpen:n.drawerWidthClosed,l=aa({left:a,submenuConfig:s}),{isHoveredOn:C}=(0,d.useContext)(Oe.U1),[x,j]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{j(C)},[C]),(0,i.jsxs)(rn.A,{className:fn()(l.drawer,{[l.drawerOpen]:x}),children:[(0,i.jsx)(hr.A,{variant:"h5",component:"span",className:l.title,children:r.title}),r.children]})};var ca=t(45810),ls=t.n(ca);function cs(r,e,n=!1){const s=new URLSearchParams(e.search).toString(),a=ls().parse(s),l=new URLSearchParams(r.search).toString(),C=ls().parse(l),x=n?bn.isEqual:bn.isMatch;return(0,bn.isEqual)(e.pathname,r.pathname)&&x(C,a)}const da=r=>(0,Je.A)(e=>{var n,s,a,l;return{root:{color:e.palette.navigation.color,display:"flex",flexFlow:"row nowrap",alignItems:"center",height:48,cursor:"pointer"},buttonItem:{background:"none",border:"none",width:"100%",margin:0,padding:0,textAlign:"inherit",font:"inherit",textTransform:"none"},closed:{width:r.drawerWidthClosed,justifyContent:"center"},open:{[e.breakpoints.up("sm")]:{width:r.drawerWidthOpen}},highlightable:{"&:hover":{background:(a=(n=e.palette.navigation.navItem)===null||n===void 0?void 0:n.hoverBackground)!==null&&a!==void 0?a:"#404040"}},highlighted:{background:(l=(s=e.palette.navigation.navItem)===null||s===void 0?void 0:s.hoverBackground)!==null&&l!==void 0?l:"#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 Oo(r){return(0,d.useMemo)(()=>da(r),[r])()}const ua=(r,e)=>(0,Eo.O)(r.props.children,n=>{let s=!1;return n.getElements().forEach(({props:{to:a,dropdownItems:l}})=>{if(!s){if(l!=null&&l.length){l.forEach(({to:C})=>s=s||cs(e,(0,$n.o1)(C)));return}a&&(s=cs(e,(0,$n.o1)(a)))}}),s},[e.pathname]);function gr(r){return r.to===void 0}const ha=d.createElement(la).type,fa=d.forwardRef(function({to:e,end:n,style:s,className:a,activeStyle:l,caseSensitive:C,activeClassName:x="active","aria-current":j="page",...K},Z){let{pathname:rt}=(0,m.zy)(),{pathname:ht}=(0,m.x$)(e);C||(rt=rt.toLocaleLowerCase("en-US"),ht=ht.toLocaleLowerCase("en-US"));let At=rt===ht;!At&&!n&&(At=rt.startsWith(`${ht}/`));const St=At?j:void 0;return(0,i.jsx)(v.N_,{...K,to:e,ref:Z,"aria-current":St,style:{...s,...At?l:void 0},className:fn()([typeof a!="function"?a:void 0,At?x:void 0])})}),ds=(0,d.forwardRef)((r,e)=>{const{icon:n,text:s,hasNotifications:a=!1,hasSubmenu:l=!1,disableHighlight:C=!1,onClick:x,noTrack:j,children:K,className:Z,...rt}=r,{sidebarConfig:ht}=(0,d.useContext)(Oe.yY),At=Oo(ht),{isOpen:St}=ur(),Gt=!St&&l?{display:"flex",marginLeft:"20px"}:{lineHeight:"0"},Yt=(0,i.jsxs)(rn.A,{style:Gt,children:[(0,i.jsx)(n,{fontSize:"small"}),!St&&l?(0,i.jsx)(as.A,{fontSize:"small"}):(0,i.jsx)(i.Fragment,{})]}),ee=(0,i.jsx)(ra.A,{color:"secondary",variant:"dot",overlap:"circular",invisible:!a,className:fn()({[At.closedItemIcon]:!St}),children:Yt}),Ae=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(rn.A,{"data-testid":"login-button",className:At.iconContainer,children:ee}),s&&(0,i.jsx)(hr.A,{variant:"subtitle2",component:"span",className:At.label,children:s}),(0,i.jsx)("div",{className:At.secondaryAction,children:K})]}),Xe=St?Ae:ee,Hn={onClick:x,className:fn()(Z,At.root,St?At.open:At.closed,gr(r)&&At.buttonItem,{[At.highlightable]:!C})},gs=(0,Rr.s)(),{pathname:pr}=(0,m.x$)(!gr(r)&&r.to?r.to:""),ps=(0,d.useCallback)(ja=>{if(!j){const Ba="click",Ua=s!=null?s:"Sidebar Item",Fa=pr?{attributes:{to:pr}}:void 0;gs.captureEvent(Ba,Ua,Fa)}x==null||x(ja)},[gs,s,pr,j,x]);return gr(r)?(0,i.jsx)(E.A,{role:"button","aria-label":s,...Hn,ref:e,onClick:ps,children:Xe}):(0,i.jsx)(fa,{...Hn,activeClassName:At.selected,to:r.to?r.to:"",ref:e,"aria-label":s||r.to,...rt,onClick:ps,children:Xe})}),ga=({children:r,...e})=>{const{sidebarConfig:n}=(0,d.useContext)(Oe.yY),s=Oo(n),[a,l]=(0,d.useState)(!1),C=(0,m.zy)(),x=ua(r,C),j=(0,ts.A)(ht=>ht.breakpoints.down("sm")),K=()=>{l(!0)},Z=()=>{l(!1)},rt=()=>j?a?(0,i.jsx)(ia.A,{fontSize:"small",className:s.submenuArrow}):(0,i.jsx)(sa.A,{fontSize:"small",className:s.submenuArrow}):!a&&(0,i.jsx)(as.A,{fontSize:"small",className:s.submenuArrow});return(0,i.jsx)(Oe.U1.Provider,{value:{isHoveredOn:a,setIsHoveredOn:l},children:(0,i.jsxs)("div",{"data-testid":"item-with-submenu",onMouseLeave:Z,onTouchStart:a?Z:K,onMouseEnter:K,className:fn()(a&&s.highlighted),children:[(0,i.jsx)(ds,{hasSubmenu:!0,className:x?s.selected:"",...e,children:rt()}),a&&r]})})},us=(0,d.forwardRef)((r,e)=>{const[n]=(0,Eo.O)(r.children,s=>s.getElements().filter(a=>a.type===ha));return n?(0,i.jsx)(ga,{...r,children:n}):(0,i.jsx)(ds,{...r,ref:e})});function tl(r){const{sidebarConfig:e}=useContext(SidebarConfigContext),[n,s]=useState(""),a=Oo(e),l=r.icon?r.icon:SearchIcon,C=()=>{r.onSearch(n),s("")},x=rt=>{rt.key==="Enter"&&(rt.preventDefault(),C())},j=rt=>{s(rt.target.value)},K=rt=>{rt.preventDefault(),rt.stopPropagation()},Z=rt=>{C(),rt.preventDefault()};return _jsx(Box,{className:a.searchRoot,children:_jsx(us,{icon:l,to:r.to,onClick:Z,disableHighlight:!0,children:_jsx(TextField,{placeholder:"Search",value:n,onClick:K,onChange:j,onKeyDown:x,className:a.searchContainer,InputProps:{disableUnderline:!0,className:a.searchField},inputProps:{className:a.searchFieldHTMLInput}})})})}const el=(0,bo.A)("div")({flex:1},{name:"BackstageSidebarSpace"}),nl=(0,bo.A)("div")({height:8},{name:"BackstageSidebarSpacer"}),pa=(0,bo.A)("hr")(({theme:r})=>({height:1,width:"100%",background:"#383838",border:"none",margin:r.spacing(1.2,0)}),{name:"BackstageSidebarDivider"}),va=r=>({overflowY:"auto","&::-webkit-scrollbar":{backgroundColor:r.palette.background.default,width:"5px",borderRadius:"5px"},"&::-webkit-scrollbar-thumb":{backgroundColor:r.palette.text.secondary,borderRadius:"5px"}}),ol=(0,bo.A)("div")(({theme:r})=>{const e=va(r);return{flex:"0 1 auto",overflowX:"hidden",width:"100%",minHeight:"48px",overflowY:"hidden","@media (hover: none)":e,"&:hover":e}}),rl=()=>{const{sidebarConfig:r}=useContext(SidebarConfigContext),e=Oo(r),{isOpen:n,setOpen:s}=useSidebarOpenState();if(useMediaQuery(C=>C.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,{})})})},ma=(0,Je.A)({root:{width:Oe.hC.drawerWidthClosed,height:3*Oe.hC.logoHeight,display:"flex",flexFlow:"row nowrap",alignItems:"center",marginBottom:-14},link:{width:Oe.hC.drawerWidthClosed,marginLeft:24}}),ya=()=>{const r=ma(),{isOpen:e}=ur();return(0,i.jsx)("div",{className:r.root,children:(0,i.jsx)(_r.N_,{to:"/docs/default/component/local/",underline:"none",className:r.link,children:e?(0,i.jsx)($i,{}):(0,i.jsx)(Wi,{})})})},Ea=({children:r})=>(0,i.jsxs)(qr.G,{children:[(0,i.jsxs)(na,{children:[(0,i.jsx)(ya,{}),(0,i.jsx)(pa,{}),(0,i.jsx)(us,{icon:Ui.A,to:"/docs/default/component/local",text:"Docs Preview"})]}),r]});var Aa=t(71677),xa=t(62437),Ca=t(55484),Sa=t(45061),ba=t(16203);const Oa=(0,Je.A)(r=>({headerIcon:{color:r.palette.common.white,width:"32px",height:"32px"},content:{backgroundColor:r.palette.background.default},contentToolbar:{display:"flex",justifyContent:"flex-end",padding:0}}));var hs;(function(r){r.LIGHT="light",r.DARK="dark"})(hs||(hs={}));const wa=()=>{const r=(0,Fn.gf)(io),e=Oa(),[n,s]=(0,d.useState)(r.getActiveThemeId()==="dark"?"dark":"light"),a={light:{icon:Ca.A,title:"Dark theme"},dark:{icon:xa.A,title:"Light theme"}},{title:l,icon:C}=a[n],x=()=>{s(j=>{const K=j==="light"?"dark":"light";return r.setActiveThemeId(K),K})};return(0,i.jsx)(rn.A,{display:"flex",alignItems:"center",mr:2,children:(0,i.jsx)(Aa.Ay,{title:l,arrow:!0,children:(0,i.jsx)(es.A,{size:"small",onClick:x,children:(0,i.jsx)(C,{className:e.headerIcon})})})})},Pa=()=>(0,i.jsxs)(p.Wj,{children:[(0,i.jsx)(Sa.T,{}),(0,i.jsx)(ba.p,{withSearch:!1})]}),Ta=(0,i.jsx)(Pa,{}),fs=ii({apis:Di,configLoader:Bi,plugins:Object.values(o)}),Ra=fs.getProvider(),Ia=fs.getRouter(),Da=p.Ju.provide((0,c.Hr)({name:"ThemeToggleAddon",component:wa,location:y.e.Header})),La=(0,i.jsxs)($r,{children:[(0,i.jsx)(m.C5,{to:"/docs/default/component/local/"},"/"),(0,i.jsx)(m.qh,{path:"/catalog/:namespace/:kind/:name",element:(0,i.jsx)(Ti,{})}),(0,i.jsx)(m.qh,{path:"/docs",element:(0,i.jsx)(p.$j,{}),children:(0,i.jsx)(h.K,{})}),(0,i.jsxs)(m.qh,{path:"/docs/:namespace/:kind/:name/*",element:(0,i.jsx)(p.Wj,{}),children:[Ta,(0,i.jsx)(c.po,{children:(0,i.jsx)(Da,{})})]})]});var Ma=()=>(0,i.jsx)(Ra,{children:(0,i.jsx)(Ia,{children:(0,i.jsx)(Ea,{children:La})})});b.createRoot(document.getElementById("root")).render((0,i.jsx)(Ma,{}))},43836:function(Y,T,t){"use strict";t.d(T,{qO:function(){return b},tK:function(){return d}});var o=t(14041),i=t(63544);function d(p){return(0,i.Q)(p,()=>(0,o.createContext)(void 0))}function b(p){return(0,o.useContext)(d(p))}function m(p){return{set(h){globalThis[`__@backstage/${p}__`]=createContext(createVersionedValueMap(h))},reset(){delete globalThis[`__@backstage/${p}__`]}}}},10602:function(Y,T,t){"use strict";t.d(T,{B:function(){return o}});function o(i){Object.freeze(i);const d={atVersion(b){return i[b]}};return Object.defineProperty(d,"$map",{configurable:!0,enumerable:!0,get(){return i}}),d}},63544:function(Y,T,t){"use strict";t.d(T,{Q:function(){return b}});function o(){return typeof window!="undefined"&&window.Math===Math?window:typeof self!="undefined"&&self.Math===Math?self:Function("return this")()}const i=o(),d=m=>`__@backstage/${m}__`;function b(m,p){const h=d(m);let c=i[h];return c||(c=p(),i[h]=c,c)}},7341:function(Y,T,t){"use strict";t.d(T,{v:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"plugin.catalog.service"})},82292:function(Y,T,t){"use strict";t.d(T,{n:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"plugin.catalog.entity-presentation"})},88083:function(Y,T,t){"use strict";t.d(T,{T:function(){return m}});var o=t(6820),i=t(72348),d=t(46123),b=t.n(d);function m(c,y){const{kind:E,namespace:O,name:u,title:S,description:v,displayName:D,type:P}=p(c),w=(0,o.U2)({kind:E||"unknown",namespace:O||i.oQ,name:u||"unknown"}),L=h({kind:E,namespace:O,name:u,context:y}),I=[D,S,L].find(z=>z&&typeof z=="string"),A=[I!==w?w:void 0,P,v].filter(z=>z&&typeof z=="string").join(" | ");return{entityRef:w,primaryTitle:I,secondaryTitle:A||void 0,Icon:void 0}}function p(c){if(typeof c=="string"){let y=c.indexOf(":");const E=c.indexOf("/");E!==-1&&E<y&&(y=-1);const O=y===-1?void 0:c.slice(0,y),u=E===-1?void 0:c.slice(y+1,E),S=c.slice(Math.max(y+1,E+1));return{kind:O,namespace:u,name:S}}if(typeof c=="object"&&c!==null){const y=[b()(c,"kind")].find(P=>P&&typeof P=="string"),E=[b()(c,"metadata.namespace"),b()(c,"namespace")].find(P=>P&&typeof P=="string"),O=[b()(c,"metadata.name"),b()(c,"name")].find(P=>P&&typeof P=="string"),u=[b()(c,"metadata.title")].find(P=>P&&typeof P=="string"),S=[b()(c,"metadata.description")].find(P=>P&&typeof P=="string"),v=[b()(c,"spec.profile.displayName")].find(P=>P&&typeof P=="string"),D=[b()(c,"spec.type")].find(P=>P&&typeof P=="string");return{kind:y,namespace:E,name:O,title:u,description:S,displayName:v,type:D}}return{}}function h(c){var y,E,O,u,S;const v=((y=c.kind)===null||y===void 0?void 0:y.toLocaleLowerCase("en-US"))||"unknown",D=c.namespace||i.oQ,P=c.name||"unknown",w=(O=c.context)===null||O===void 0||(E=O.defaultKind)===null||E===void 0?void 0:E.toLocaleLowerCase("en-US"),L=(S=c.context)===null||S===void 0||(u=S.defaultNamespace)===null||u===void 0?void 0:u.toLocaleLowerCase("en-US");let I=P;return(L&&D.toLocaleLowerCase("en-US")!==L||D!==i.oQ)&&(I=`${D}/${I}`),w&&v.toLocaleLowerCase("en-US")!==w&&(I=`${v}:${I}`),I}},3169:function(Y,T,t){"use strict";t.d(T,{f:function(){return h}});var o=t(6820),i=t(72427),d=t(14041),b=t(82292),m=t(88083);function p(c,y,E){const[O,u]=(0,d.useState)(c);return(0,d.useEffect)(()=>{u(c);const S=y==null?void 0:y.subscribe({next:v=>{u(v)},complete:()=>{S==null||S.unsubscribe()}});return()=>{S==null||S.unsubscribe()}},E),O}function h(c,y){const O=(0,i.Q2)().get(b.n),u=[O,JSON.stringify(c),JSON.stringify(y||null)],S=(0,d.useMemo)(()=>O?O.forEntity(typeof c=="string"||"metadata"in c?c:(0,o.U2)(c),y):{snapshot:(0,m.T)(c,y)},u);return p(S.snapshot,S.update$,[S])}},18:function(Y,T,t){"use strict";t.d(T,{a:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"catalog-react.starred-entities"})},54203:function(Y,T,t){"use strict";t.d(T,{GI:function(){return S}});var o=t(31085),i=t(14041),d=t(5893),b=t(54917),m=t(64947),p=t(73845),h=t(10394),c=t(72501),y=t(42899),E=t(65859);const O=v=>{var D;const P=(0,d.A)(z=>{var V,q;return z.breakpoints.down((q=(V=v.options)===null||V===void 0?void 0:V.drawerBreakpoint)!==null&&q!==void 0?q:"md")}),w=(0,b.A)(),[L,I]=(0,i.useState)(!1);var A;return P?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m.A,{style:{marginTop:w.spacing(1),marginLeft:w.spacing(1)},onClick:()=>I(!0),startIcon:(0,o.jsx)(E.A,{}),children:"Filters"}),(0,o.jsx)(p.Ay,{open:L,onClose:()=>I(!1),anchor:(A=(D=v.options)===null||D===void 0?void 0:D.drawerAnchor)!==null&&A!==void 0?A:"left",disableAutoFocus:!0,keepMounted:!0,variant:"temporary",children:(0,o.jsxs)(h.A,{m:2,children:[(0,o.jsx)(c.A,{variant:"h6",component:"h2",style:{marginBottom:w.spacing(1)},children:"Filters"}),v.children]})})]}):(0,o.jsx)(y.A,{item:!0,lg:2,children:v.children})},u=v=>(0,o.jsx)(y.A,{item:!0,xs:12,lg:10,children:v.children}),S=v=>(0,o.jsx)(y.A,{container:!0,style:{position:"relative"},children:v.children});S.Filters=O,S.Content=u},50207:function(Y,T,t){"use strict";t.d(T,{y:function(){return H}});var o=t(31085),i=t(58837),d=t(10394),b=t(72501),m=t(6924),p=t(20577),h=t(14041),c=t(72427),y=t(73466),E=t(7341),O=t(69076),u=t(86901),S=t(44148),v=t(41260);const D=(0,o.jsx)(v.A,{fontSize:"small"}),P=(0,o.jsx)(S.A,{fontSize:"small"});function w({selected:tt}){return(0,o.jsx)(O.A,{icon:D,checkedIcon:P,checked:tt})}const L=(0,h.memo)(tt=>{const{selected:et,value:xt,availableOptions:st,showCounts:Pt}=tt,ft=Pt?`${xt} (${st==null?void 0:st[xt]})`:xt;return(0,o.jsx)(u.A,{control:(0,o.jsx)(w,{selected:et}),label:ft,onClick:mt=>mt.preventDefault()})});var I=t(16249),A=t(53373),z=t.n(A);const V=(0,i.A)({input:{}},{name:"CatalogReactEntityAutocompletePickerInput"});function q(tt){const et=V();return(0,o.jsx)(I.A,{variant:"outlined",...tt,className:z()(et.input,tt.className)})}var k=t(21405),W=t(26796);const X=(0,i.A)({root:{},label:{}},{name:"CatalogReactEntityAutocompletePicker"});function H(tt){var et;const{label:xt,name:st,path:Pt,showCounts:ft,Filter:mt,InputProps:lt,initialSelectedOptions:it=[],filtersForAvailableValues:vt=["kind"]}=tt,_=X(),{updateFilters:yt,filters:gt,queryParameters:{[st]:ot}}=(0,k.nK)(),dt=(0,c.gf)(E.v),ct=vt.map(Ot=>gt[Ot]),{value:Tt}=(0,y.A)(async()=>{const Ot=Pt,{facets:Ft}=await dt.getEntityFacets({facets:[Ot],filter:(0,W.Rr)(ct.filter(Boolean))});return Object.fromEntries(Ft[Ot].map(({value:wt,count:Nt})=>[wt,Nt]))},[...ct]),Et=(0,h.useMemo)(()=>[ot].flat().filter(Boolean),[ot]);var N;const[G,pt]=(0,h.useState)(Et.length?Et:(N=(et=gt[st])===null||et===void 0?void 0:et.values)!==null&&N!==void 0?N:it);(0,h.useEffect)(()=>{Et.length&&pt(Et)},[Et]);const bt=Object.keys(Tt!=null?Tt:{}),Ut=G.length&&bt.length;(0,h.useEffect)(()=>{yt({[st]:Ut?new mt(G):void 0})},[st,Ut,G,mt,yt]);const Rt=gt[st];return Rt&&typeof Rt=="object"&&!("values"in Rt)||!bt.length||bt.length<=1?null:(0,o.jsx)(d.A,{className:_.root,pb:1,pt:1,children:(0,o.jsxs)(b.A,{className:_.label,variant:"button",component:"label",children:[xt,(0,o.jsx)(p.Ay,{multiple:!0,disableCloseOnSelect:!0,options:bt,value:G,onChange:(Ot,Ft)=>pt(Ft),renderOption:(Ot,{selected:Ft})=>(0,o.jsx)(L,{selected:Ft,value:Ot,availableOptions:Tt,showCounts:!!ft}),size:"small",popupIcon:(0,o.jsx)(m.A,{"data-testid":`${String(st)}-picker-expand`}),renderInput:Ot=>(0,o.jsx)(q,{...Ot,...lt})})]})})}},72987:function(Y,T,t){"use strict";t.d(T,{t:function(){return gt}});var o=t(31085),i=t(6820),d=t(58837),b=t(86901),m=t(10394),p=t(69076),h=t(71677),c=t(72501),y=t(16249),E=t(44148),O=t(41260),u=t(6924),S=t(20577),v=t(14041),D=t(21405),P=t(92822),w=t(92367),L=t(48108),I=t(47966),A=t(90184),z=t(72427),V=t(87290),q=t(7341);function k({enabled:ot}){const dt=(0,z.gf)(q.v),[ct]=(0,v.useState)(async()=>{if(!ot)return[];const Tt="relations.ownedBy";return dt.getEntityFacets({facets:[Tt]}).then(Et=>Et.facets[Tt].map(N=>N.value).map(N=>{const{kind:G,name:pt,namespace:bt}=(0,i.KU)(N);return{apiVersion:"backstage.io/v1beta1",kind:G,metadata:{name:pt,namespace:bt}}}).sort((N,G)=>(N.metadata.namespace||"").localeCompare(G.metadata.namespace||"","en-US")||N.metadata.name.localeCompare(G.metadata.name,"en-US")||N.kind.localeCompare(G.kind,"en-US"))).catch(()=>[])});return(0,V.A)(async(Tt,Et)=>{const N=await ct;if(!N)return{items:[]};var G;const pt=(G=Et==null?void 0:Et.limit)!==null&&G!==void 0?G:20,{text:bt,start:Ut}=W(Tt),Rt=N.filter(Ft=>tt(bt,Ft)),Ot=Ut+pt;return{items:Rt.slice(0,Ot),...H({entities:Rt,limit:Ot,payload:{text:bt,start:Ot}})}},[ct],{loading:!0,value:{items:[]}})}function W(ot){return X(ot)&&ot.cursor?JSON.parse(atob(ot.cursor)):{text:ot.text||"",start:0}}function X(ot){return!!ot.cursor}function H({entities:ot,limit:dt,payload:ct}){return ot.length>dt?{cursor:btoa(JSON.stringify(ct))}:{}}function tt(ot,dt){var ct;const Tt=ot.trim();return dt.kind.includes(Tt)||((ct=dt.metadata.namespace)===null||ct===void 0?void 0:ct.includes(Tt))||dt.metadata.name.includes(Tt)}function et(){const ot=(0,z.gf)(q.v);return(0,V.A)(async(dt,ct)=>{const Tt=dt,Et=dt;var N;const G=(N=ct==null?void 0:ct.limit)!==null&&N!==void 0?N:20;if(Et.cursor){const bt=await ot.queryEntities({cursor:Et.cursor,limit:G});return{cursor:bt.pageInfo.nextCursor,items:[...Et.items,...bt.items]}}const pt=await ot.queryEntities({fullTextFilter:{term:Tt.text||"",fields:["metadata.name","kind","spec.profile.displayname","metadata.title"]},filter:{kind:["User","Group"]},orderFields:[{field:"metadata.name",order:"asc"}],limit:G});return{cursor:pt.pageInfo.nextCursor,items:pt.items}},[],{loading:!0})}var xt=t(76842);function st({mode:ot,initialSelectedOwnersRefs:dt}){const ct=ot==="owners-only",Tt=et(),Et=k({enabled:ct}),[N,G]=ct?Et:Tt;return[N,G,Pt({enabled:!ct,initialSelectedOwnersRefs:dt})]}function Pt({enabled:ot,initialSelectedOwnersRefs:dt}){const ct=(0,v.useRef)({}),Tt=(0,z.gf)(q.v),[,Et]=(0,V.A)(async()=>{(await Tt.getEntitiesByRefs({entityRefs:dt})).items.forEach(G=>{G&&(ct.current[(0,i.U2)(G)]=G)})},[]);return(0,xt.u)(()=>{ot&&dt.length>0&&Et()}),{getEntity:N=>ct.current[N],setEntity:N=>{ct.current[(0,i.U2)(N)]=N}}}var ft=t(87051),mt=t(3169);const lt=(0,d.A)({root:{},label:{},input:{},fullWidth:{width:"100%"},boxLabel:{width:"100%",textOverflow:"ellipsis",overflow:"hidden"}},{name:"CatalogReactEntityOwnerPicker"}),it=(0,ft.A)(ot=>({label:{width:"100%"},root:{width:"90%"}}),{name:"FixedWidthFormControlLabel"})(b.A),vt=(0,o.jsx)(O.A,{fontSize:"small"}),_=(0,o.jsx)(E.A,{fontSize:"small"});function yt(ot){const dt=lt(),ct=ot.entity.kind.toLocaleLowerCase("en-US")==="group",{primaryTitle:Tt}=(0,mt.f)(ot.entity);return(0,o.jsx)(m.A,{className:dt.fullWidth,children:(0,o.jsx)(it,{className:dt.fullWidth,control:(0,o.jsx)(p.A,{icon:vt,checkedIcon:_,checked:ot.isSelected}),onClick:Et=>Et.preventDefault(),label:(0,o.jsx)(h.Ay,{title:Tt,children:(0,o.jsxs)(m.A,{display:"flex",alignItems:"center",children:[ct?(0,o.jsx)(I.A,{fontSize:"small"}):(0,o.jsx)(L.A,{fontSize:"small"}),"\xA0",(0,o.jsx)(m.A,{className:dt.boxLabel,children:(0,o.jsx)(c.A,{noWrap:!0,children:Tt})})]})})})})}const gt=ot=>{var dt,ct;const Tt=lt(),{mode:Et="owners-only"}=ot||{},{updateFilters:N,filters:G,queryParameters:{owners:pt}}=(0,D.nK)(),[bt,Ut]=(0,v.useState)(""),Rt=(0,v.useMemo)(()=>[pt].flat().filter(Boolean),[pt]);var Ot;const[Ft,wt]=(0,v.useState)(Rt.length?Rt:(Ot=(dt=G.owners)===null||dt===void 0?void 0:dt.values)!==null&&Ot!==void 0?Ot:[]),[{value:Nt,loading:Xt},de,ae]=st({mode:Et,initialSelectedOwnersRefs:Ft});(0,w.s)(()=>de({text:bt}),[bt,de],250);const le=(Nt==null?void 0:Nt.items)||[];return(0,v.useEffect)(()=>{if(Rt.length){const kt=new P.N9(Rt);wt(kt.values)}},[Rt]),(0,v.useEffect)(()=>{N({owners:Ft.length?new P.N9(Ft):void 0})},[Ft,N]),["user","group"].includes(((ct=G.kind)===null||ct===void 0?void 0:ct.value.toLocaleLowerCase("en-US"))||"")?null:(0,o.jsx)(m.A,{className:Tt.root,pb:1,pt:1,children:(0,o.jsxs)(c.A,{className:Tt.label,variant:"button",component:"label",children:["Owner",(0,o.jsx)(S.Ay,{multiple:!0,disableCloseOnSelect:!0,loading:Xt,options:le,value:Ft,getOptionSelected:(kt,_t)=>typeof _t=="string"?(0,i.U2)(kt)===_t:kt===_t,getOptionLabel:kt=>{const _t=typeof kt=="string"?ae.getEntity(kt)||(0,i.KU)(kt,{defaultKind:"group",defaultNamespace:"default"}):kt;return(0,A.Z)(_t,(0,A.S)(_t))},onChange:(kt,_t)=>{Ut(""),wt(_t.map(ge=>{const ke=typeof ge=="string"?ge:(0,i.U2)(ge);return typeof ge!="string"&&ae.setEntity(ge),ke}))},filterOptions:kt=>kt,renderOption:(kt,{selected:_t})=>(0,o.jsx)(yt,{entity:kt,isSelected:_t}),size:"small",popupIcon:(0,o.jsx)(u.A,{"data-testid":"owner-picker-expand"}),renderInput:kt=>(0,o.jsx)(y.A,{...kt,className:Tt.input,onChange:_t=>{Ut(_t.currentTarget.value)},variant:"outlined"}),ListboxProps:{onScroll:kt=>{const _t=kt.currentTarget;Math.abs(_t.scrollHeight-_t.clientHeight-_t.scrollTop)<1&&(Nt!=null&&Nt.cursor)&&de({items:Nt.items,cursor:Nt.cursor})},"data-testid":"owner-picker-listbox"}})]})})}},8859:function(Y,T,t){"use strict";t.d(T,{z:function(){return v}});var o=t(31085),i=t(6820),d=t(72348),b=t(72072),m=t(9222),p=t(14041),h=t(29207),c=t(58837),y=t(10394),E=t(71677),O=t(3169);const u=(0,c.A)(P=>({root:{display:"inline-flex",alignItems:"center"},icon:{marginRight:P.spacing(.5),color:P.palette.text.secondary,lineHeight:0}}),{name:"CatalogReactEntityDisplayName"}),S=P=>{const{entityRef:w,hideIcon:L,disableTooltip:I,defaultKind:A,defaultNamespace:z}=P,V=u(),{primaryTitle:q,secondaryTitle:k,Icon:W}=(0,O.f)(w,{defaultKind:A,defaultNamespace:z});let X=(0,o.jsx)(o.Fragment,{children:q});return X=(0,o.jsxs)(y.A,{component:"span",className:V.root,children:[W&&!L?(0,o.jsx)(y.A,{component:"span",className:V.icon,children:(0,o.jsx)(W,{fontSize:"inherit"})}):null,X]}),k&&!I&&(X=(0,o.jsx)(E.Ay,{enterDelay:1500,title:k,children:X})),X},v=(0,p.forwardRef)((P,w)=>{const{entityRef:L,defaultKind:I,defaultNamespace:A,title:z,children:V,hideIcon:q,...k}=P,W=D(P.entityRef);var X;const H=(X=V!=null?V:z)!==null&&X!==void 0?X:(0,o.jsx)(S,{entityRef:L,defaultKind:I,defaultNamespace:A,hideIcon:q});return(0,o.jsx)(b.N_,{...k,ref:w,to:W,children:H})});function D(P){const w=(0,m.S)(h.s);let L,I,A;if(typeof P=="string"){const q=(0,i.KU)(P);L=q.kind,I=q.namespace,A=q.name}else"metadata"in P?(L=P.kind,I=P.metadata.namespace,A=P.metadata.name):(L=P.kind,I=P.namespace,A=P.name);L=L.toLocaleLowerCase("en-US");var z;I=(z=I==null?void 0:I.toLocaleLowerCase("en-US"))!==null&&z!==void 0?z:d.oQ;const V={kind:encodeURIComponent(L),namespace:encodeURIComponent(I),name:encodeURIComponent(A)};return w(V)}},34428:function(Y,T,t){"use strict";t.d(T,{i:function(){return m}});var o=t(31085),i=t(6820),d=t(14041),b=t(8859);function m(p){const{entityRefs:h,hideIcons:c,...y}=p;return(0,o.jsx)(o.Fragment,{children:h.map((E,O)=>{const u=typeof E=="string"?E:(0,i.U2)(E);return(0,o.jsxs)(d.Fragment,{children:[O>0&&", ",(0,o.jsx)(b.z,{...y,entityRef:E,hideIcon:c})]},`${O}.${u}`)})})}},90184:function(Y,T,t){"use strict";t.d(T,{S:function(){return b},Z:function(){return m}});var o=t(72348),i=t(46123),d=t.n(i);function b(p,h){const c=h==null?void 0:h.defaultKind;let y,E,O;return"metadata"in p?(y=p.kind,E=p.metadata.namespace,O=p.metadata.name):(y=p.kind,E=p.namespace,O=p.name),(E===void 0||E==="")&&(E=o.oQ),(h==null?void 0:h.defaultNamespace)!==void 0?(h==null?void 0:h.defaultNamespace)===E&&(E=void 0):E===o.oQ&&(E=void 0),y=y.toLocaleLowerCase("en-US"),y=c&&c.toLocaleLowerCase("en-US")===y?void 0:y,`${y?`${y}:`:""}${E?`${E}/`:""}${O}`}function m(p,h){for(const c of["spec.profile.displayName","metadata.title"]){const y=d()(p,c);if(y&&typeof y=="string")return y}return h}},91035:function(Y,T,t){"use strict";t.d(T,{m:function(){return h}});var o=t(31085),i=t(58837),d=t(14041),b=t(92822),m=t(50207);const p=(0,i.A)({input:{}},{name:"CatalogReactEntityTagPicker"}),h=c=>{const y=p();return(0,o.jsx)(m.y,{label:"Tags",name:"tags",path:"metadata.tags",Filter:b.q_,showCounts:c.showCounts,InputProps:{className:y.input}})}},67626:function(Y,T,t){"use strict";t.d(T,{y:function(){return Pt}});var o=t(31085),i=t(72427),d=t(65461),b=t(58837),m=t(40703),p=t(72501),h=t(58007),c=t(26343),y=t(46423),E=t(5951),O=t(65569),u=t(9684),S=t(80109),v=t(14041),D=t(92822),P=t(21405),w=t(16009),L=t(45250),I=t(73466),A=t(7341),z=t(26796),V=t(87290),q=t(48899);function k(){const ft=(0,i.gf)(w.K),mt=(0,i.gf)(A.v),{filters:lt}=(0,P.nK)(),{value:it,loading:vt}=(0,I.A)(async()=>(await ft.getBackstageIdentity()).ownershipEntityRefs,[]),{user:_,owners:yt,...gt}=lt,ot=(0,z.$3)((0,L.compact)(Object.values(gt))),[{value:dt,loading:ct},Tt]=(0,V.A)(async N=>{const G=W(N.owners,N.ownershipEntityRefs);if(G===void 0)return 0;const{["metadata.name"]:pt,...bt}=N.filter.filter,{totalItems:Ut}=await mt.queryEntities({...N.filter,filter:{...bt,"relations.ownedBy":G},limit:0});return Ut},[],{loading:!0});return(0,q.A)(()=>{Object.keys(ot.filter).length!==0&&it!==void 0&&Tt({ownershipEntityRefs:it,owners:yt,filter:ot})},[it,yt,ot]),{count:dt,loading:vt||ct,filter:(0,v.useMemo)(()=>D.tN.owned(it!=null?it:[]),[it]),ownershipEntityRefs:it}}function W(ft,mt){if(mt===void 0)return;var lt;const it=(lt=ft==null?void 0:ft.values)!==null&&lt!==void 0?lt:[];if(it.length){const vt=(0,L.intersection)(it,mt);return vt.length===0?void 0:vt}return mt}function X(){const ft=(0,i.gf)(A.v),{filters:mt}=(0,P.nK)(),lt=(0,v.useRef)(),it=(0,v.useMemo)(()=>{const{user:yt,...gt}=mt,ot=(0,L.compact)(Object.values(gt)),dt=(0,z.$3)(ot),ct={...dt,limit:0};return Object.keys(dt.filter).length===0?(lt.current=void 0,lt.current):(0,L.isEqual)(ct,lt.current)?lt.current:(lt.current=ct,ct)},[mt]),{value:vt,loading:_}=(0,I.A)(async()=>{if(it===void 0)return 0;const{totalItems:yt}=await ft.queryEntities(it);return yt},[it]);return{count:vt,loading:_}}var H=t(6820),tt=t(56889);function et(){const ft=(0,i.gf)(A.v),{filters:mt}=(0,P.nK)(),{starredEntities:lt}=(0,tt.I)(),it=(0,v.useRef)(),vt=(0,v.useMemo)(()=>{const{user:ot,...dt}=mt,ct=(0,L.compact)(Object.values(dt)),Tt=(0,z.$3)(ct),N={...Tt,filter:{...Tt.filter,["metadata.name"]:Array.from(lt).map(G=>(0,H.KU)(G).name)},limit:1e3};return(0,L.isEqual)(N,it.current)?it.current:(it.current=N,N)},[mt,lt]),{value:_,loading:yt}=(0,I.A)(async()=>lt.size?(await ft.queryEntities(vt)).items.map(dt=>(0,H.U2)({kind:dt.kind,namespace:dt.metadata.namespace,name:dt.metadata.name})).filter(dt=>lt.has(dt)).length:0,[vt,lt]),gt=(0,v.useMemo)(()=>D.tN.starred(Array.from(lt)),[lt]);return{count:_,loading:yt,filter:gt}}const xt=(0,b.A)(ft=>({root:{backgroundColor:"rgba(0, 0, 0, .11)",boxShadow:"none",margin:ft.spacing(1,0,1,0)},title:{margin:ft.spacing(1,0,0,1),textTransform:"uppercase",fontSize:12,fontWeight:"bold"},listIcon:{minWidth:30,color:ft.palette.text.primary},menuItem:{minHeight:ft.spacing(6)},groupWrapper:{margin:ft.spacing(1,1,2,1)}}),{name:"CatalogReactUserListPicker"});function st(ft){return[{name:"Personal",items:[{id:"owned",label:"Owned",icon:u.A},{id:"starred",label:"Starred",icon:S.A}]},{name:ft!=null?ft:"Company",items:[{id:"all",label:"All"}]}]}const Pt=ft=>{const{initialFilter:mt,availableFilters:lt}=ft,it=xt(),vt=(0,i.gf)(d.U);var _;const yt=(_=vt.getOptionalString("organization.name"))!==null&&_!==void 0?_:"Company",{filters:gt,updateFilters:ot,queryParameters:{kind:dt,user:ct}}=(0,P.nK)(),Tt=["starred","all"],Et=st(yt).map(ae=>({...ae,items:ae.items.filter(({id:le})=>["group","user"].some(kt=>kt===dt)?Tt.includes(le):!lt||lt.includes(le))})).filter(({items:ae})=>!!ae.length),{count:N,loading:G,filter:pt}=k(),{count:bt}=X(),{count:Ut,filter:Rt,loading:Ot}=et(),Ft=(0,v.useMemo)(()=>[ct].flat()[0],[ct]),[wt,Nt]=(0,v.useState)(Ft!=null?Ft:mt),Xt=(0,v.useMemo)(()=>({all:bt,starred:Ut,owned:N}),[Ut,N,bt]);(0,v.useEffect)(()=>{Ft&&Nt(Ft)},[Ft]);const de=G||Ot;return(0,v.useEffect)(()=>{!de&&wt&&wt!=="all"&&Xt[wt]===0&&Nt("all")},[de,Xt,wt,Nt]),(0,v.useEffect)(()=>{if(!wt||de)return;ot({user:wt==="owned"?pt:wt==="starred"?Rt:D.tN.all()})},[wt,Rt,pt,ot,de]),(0,o.jsx)(m.A,{className:it.root,children:Et.map(ae=>(0,o.jsxs)(v.Fragment,{children:[(0,o.jsx)(p.A,{variant:"subtitle2",component:"span",className:it.title,children:ae.name}),(0,o.jsx)(m.A,{className:it.groupWrapper,children:(0,o.jsx)(h.A,{disablePadding:!0,dense:!0,role:"menu","aria-label":ae.name,children:ae.items.map(le=>{var kt,_t;return(0,o.jsxs)(c.A,{role:"none presentation",divider:!0,onClick:()=>Nt(le.id),selected:le.id===((kt=gt.user)===null||kt===void 0?void 0:kt.value),className:it.menuItem,disabled:Xt[le.id]===0,"data-testid":`user-picker-${le.id}`,tabIndex:0,ContainerProps:{role:"menuitem"},children:[le.icon&&(0,o.jsx)(y.A,{className:it.listIcon,children:(0,o.jsx)(le.icon,{fontSize:"small"})}),(0,o.jsx)(E.A,{children:(0,o.jsxs)(p.A,{variant:"body1",children:[le.label," "]})}),(0,o.jsx)(O.A,{children:(_t=Xt[le.id])!==null&&_t!==void 0?_t:"-"})]},le.id)})})})]},ae.name))})}},92822:function(Y,T,t){"use strict";t.d(T,{I5:function(){return E},Kf:function(){return v},N9:function(){return y},V3:function(){return c},gM:function(){return m},gZ:function(){return S},mT:function(){return D},qA:function(){return p},q_:function(){return h},tN:function(){return u},z:function(){return O}});var o=t(18990),i=t(51372),d=t(6820),b=t(67871);class m{getCatalogFilters(){return{kind:this.value}}toQueryValue(){return this.value}constructor(w){(0,o._)(this,"value",void 0),this.value=w}}class p{getTypes(){return Array.isArray(this.value)?this.value:[this.value]}getCatalogFilters(){return{"spec.type":this.getTypes()}}toQueryValue(){return this.getTypes()}constructor(w){(0,o._)(this,"value",void 0),this.value=w}}class h{filterEntity(w){return this.values.every(L=>{var I;return((I=w.metadata.tags)!==null&&I!==void 0?I:[]).includes(L)})}getCatalogFilters(){return{"metadata.tags":this.values}}toQueryValue(){return this.values}constructor(w){(0,o._)(this,"values",void 0),this.values=w}}class c{filterEntity(w){const L=this.toUpperArray(this.value.split(/\s/)),I=this.toUpperArray([w.metadata.tags]),A=this.toUpperArray([w.metadata.name,w.metadata.title]);for(const z of L)if(I.every(V=>V!==z)&&A.every(V=>!V.includes(z)))return!1;return!0}getFullTextFilters(){return{term:this.value,fields:["metadata.name","metadata.title","spec.profile.displayName"]}}toQueryValue(){return this.value}toUpperArray(w){return w.flat().filter(L=>!!L).map(L=>L.toLocaleUpperCase("en-US"))}constructor(w){(0,o._)(this,"value",void 0),this.value=w}}class y{getCatalogFilters(){return{"relations.ownedBy":this.values}}filterEntity(w){return this.values.some(L=>(0,b.t)(w,i.vv).some(I=>(0,d.U2)(I)===L))}toQueryValue(){return this.values}constructor(w){(0,o._)(this,"values",void 0),this.values=w.reduce((L,I)=>{try{return L.push((0,d.U2)((0,d.KU)(I,{defaultKind:"Group"}))),L}catch{return L}},[])}}class E{getCatalogFilters(){return{"spec.lifecycle":this.values}}filterEntity(w){return this.values.some(L=>{var I;return((I=w.spec)===null||I===void 0?void 0:I.lifecycle)===L})}toQueryValue(){return this.values}constructor(w){(0,o._)(this,"values",void 0),this.values=w}}class O{getCatalogFilters(){return{"metadata.namespace":this.values}}filterEntity(w){return this.values.some(L=>w.metadata.namespace===L)}toQueryValue(){return this.values}constructor(w){(0,o._)(this,"values",void 0),this.values=w}}class u{static owned(w){return new u("owned",w)}static all(){return new u("all")}static starred(w){return new u("starred",w)}getCatalogFilters(){if(this.value==="owned"){var w;return{"relations.ownedBy":(w=this.refs)!==null&&w!==void 0?w:[]}}if(this.value==="starred"){var L,I;return{"metadata.name":(I=(L=this.refs)===null||L===void 0?void 0:L.map(A=>(0,d.KU)(A).name))!==null&&I!==void 0?I:[]}}return{}}filterEntity(w){if(this.value==="starred"){var L,I;return(I=(L=this.refs)===null||L===void 0?void 0:L.includes((0,d.U2)(w)))!==null&&I!==void 0?I:!0}if(this.value==="owned"){var A;const V=(0,b.t)(w,i.vv);var z;return(z=(A=this.refs)===null||A===void 0?void 0:A.some(q=>V.some(k=>(0,d.U2)(k)===q)))!==null&&z!==void 0?z:!1}return!0}toQueryValue(){return this.value}constructor(w,L){(0,o._)(this,"value",void 0),(0,o._)(this,"refs",void 0),this.value=w,this.refs=L}}class S{filterEntity(w){switch(this.value){case"owned":return this.isOwnedEntity(w);case"starred":return this.isStarredEntity(w);default:return!0}}toQueryValue(){return this.value}constructor(w,L,I){(0,o._)(this,"value",void 0),(0,o._)(this,"isOwnedEntity",void 0),(0,o._)(this,"isStarredEntity",void 0),this.value=w,this.isOwnedEntity=L,this.isStarredEntity=I}}class v{getCatalogFilters(){return this.value?{"metadata.annotations.backstage.io/orphan":String(this.value)}:{}}filterEntity(w){var L;const I=(L=w.metadata.annotations)===null||L===void 0?void 0:L["backstage.io/orphan"];return I!==void 0&&this.value.toString()===I}constructor(w){(0,o._)(this,"value",void 0),this.value=w}}class D{filterEntity(w){var L,I;const A=(w==null||(I=w.status)===null||I===void 0||(L=I.items)===null||L===void 0?void 0:L.length)>0;return A!==void 0&&this.value===A}constructor(w){(0,o._)(this,"value",void 0),this.value=w}}},21405:function(Y,T,t){"use strict";t.d(T,{B9:function(){return D},nK:function(){return P}});var o=t(31085),i=t(45250),d=t.n(i),b=t(45810),m=t.n(b),p=t(14041),h=t(18690),c=t(87290),y=t(22771),E=t(71581),O=t(7341),u=t(26796),S=t(72427);const v=(0,p.createContext)(void 0),D=w=>{const L=(0,E.A)(),I=(0,S.gf)(O.v),[A,z]=(0,p.useState)({}),V=(0,h.zy)(),q=w.pagination===!0||typeof w.pagination=="object",k=w.pagination&&typeof w.pagination=="object"&&typeof w.pagination.limit=="number"?w.pagination.limit:20,{queryParameters:W,cursor:X}=(0,p.useMemo)(()=>{const vt=m().parse(V.search,{ignoreQueryPrefix:!0});var _;return{queryParameters:(_=vt.filters)!==null&&_!==void 0?_:{},cursor:typeof vt.cursor=="string"?vt.cursor:void 0}},[V]),[H,tt]=(0,p.useState)(X),[et,xt]=(0,p.useState)(()=>({appliedFilters:{},entities:[],backendEntities:[],pageInfo:q?{}:void 0})),[{loading:st,error:Pt},ft]=(0,c.A)(async()=>{const vt=(0,i.compact)(Object.values(A)),_=Object.keys(A).reduce((gt,ot)=>{const dt=A[ot];return dt!=null&&dt.toQueryValue&&(gt[ot]=dt.toQueryValue()),gt},{});if(q)if(H){if(H!==et.appliedCursor){const gt=(0,u.be)(vt),ot=await I.queryEntities({cursor:H,limit:k});xt({appliedFilters:A,appliedCursor:H,backendEntities:ot.items,entities:ot.items.filter(gt),pageInfo:ot.pageInfo,totalItems:ot.totalItems})}}else{const gt=(0,u.be)(vt),ot=(0,u.$3)(vt),dt=(0,u.$3)((0,i.compact)(Object.values(et.appliedFilters)));if(!(0,i.isEqual)(dt,ot)){const ct=await I.queryEntities({...ot,limit:k,orderFields:[{field:"metadata.name",order:"asc"}]});xt({appliedFilters:A,backendEntities:ct.items,entities:ct.items.filter(gt),pageInfo:ct.pageInfo,totalItems:ct.totalItems})}}else{const gt=(0,u.be)(vt),ot=(0,u.Rr)(vt),dt=(0,u.Rr)((0,i.compact)(Object.values(et.appliedFilters)));if((0,i.isEqual)(dt,ot)){const ct=et.backendEntities.filter(gt);xt({appliedFilters:A,backendEntities:et.backendEntities,entities:ct,totalItems:ct.length})}else{const ct=await I.getEntities({filter:ot}),Tt=ct.items.filter(gt);xt({appliedFilters:A,backendEntities:ct.items,entities:Tt,totalItems:Tt.length})}}if(L()){var yt;const gt=m().parse(V.search,{ignoreQueryPrefix:!0}),ot=m().stringify({...gt,filters:_,cursor:H},{addQueryPrefix:!0,arrayFormat:"repeat"}),dt=`${window.location.pathname}${ot}`;(yt=window.history)===null||yt===void 0||yt.replaceState(null,document.title,dt)}},[I,W,A,et,H,q],{loading:!0});(0,y.A)(ft,10,[A,H]);const mt=(0,p.useCallback)(vt=>{tt(void 0),z(_=>{const yt=typeof vt=="function"?vt(_):vt;return{..._,...yt}})},[]),lt=(0,p.useMemo)(()=>{var vt,_;if(!q)return;const yt=(vt=et.pageInfo)===null||vt===void 0?void 0:vt.prevCursor,gt=(_=et.pageInfo)===null||_===void 0?void 0:_.nextCursor;return{prev:yt?()=>tt(yt):void 0,next:gt?()=>tt(gt):void 0}},[q,et.pageInfo]),it=(0,p.useMemo)(()=>({filters:et.appliedFilters,entities:et.entities,backendEntities:et.backendEntities,updateFilters:mt,queryParameters:W,loading:st,error:Pt,pageInfo:lt,totalItems:et.totalItems}),[et,mt,W,st,Pt,lt]);return(0,o.jsx)(v.Provider,{value:it,children:w.children})};function P(){const w=(0,p.useContext)(v);if(!w)throw new Error("useEntityList must be used within EntityListProvider");return w}},56889:function(Y,T,t){"use strict";t.d(T,{I:function(){return h}});var o=t(6820),i=t(72427),d=t(14041),b=t(1394),m=t(18);function p(c){return typeof c=="string"?c:(0,o.U2)(c)}function h(){const c=(0,i.gf)(m.a),y=(0,b.A)((0,d.useMemo)(()=>c.starredEntitie$(),[c]),new Set),E=(0,d.useCallback)(u=>y.has(p(u)),[y]),O=(0,d.useCallback)(u=>c.toggleStarred(p(u)).then(),[c]);return{starredEntities:y,toggleStarredEntity:O,isStarredEntity:E}}},29207:function(Y,T,t){"use strict";t.d(T,{s:function(){return d}});var o=t(34569),i=t(63544);const d=(0,i.Q)("catalog:entity-route-ref",()=>(0,o.H)({id:"catalog:entity",params:["namespace","kind","name"]}));function b(m){var p,h;return{kind:m.kind.toLocaleLowerCase("en-US"),namespace:(h=(p=m.metadata.namespace)===null||p===void 0?void 0:p.toLocaleLowerCase("en-US"))!==null&&h!==void 0?h:DEFAULT_NAMESPACE,name:m.metadata.name}}},26796:function(Y,T,t){"use strict";t.d(T,{$3:function(){return d},Rr:function(){return b},be:function(){return m}});var o=t(92822);function i(p){return!!p.getFullTextFilters}function d(p){var h;const c=p.reduce((E,O)=>({...E,...O.getCatalogFilters?O.getCatalogFilters():{}}),{}),y=(h=p.find(i))===null||h===void 0?void 0:h.getFullTextFilters();return{filter:c,fullTextFilter:y}}function b(p){const h={};return p.forEach(c=>{var y;c instanceof o.q_||c instanceof o.N9||c instanceof o.I5||c instanceof o.z||c instanceof o.tN||c instanceof o.Kf||c instanceof o.V3||c instanceof o.gZ||Object.assign(h,((y=c.getCatalogFilters)===null||y===void 0?void 0:y.call(c))||{})}),h}function m(p){return h=>p.every(c=>!c.filterEntity||c.filterEntity(h))}},67871:function(Y,T,t){"use strict";t.d(T,{t:function(){return i}});var o=t(6820);function i(d,b,m){var p;let h=(d==null||(p=d.relations)===null||p===void 0?void 0:p.filter(c=>c.type===b).map(c=>(0,o.KU)(c.targetRef)))||[];return m!=null&&m.kind&&(h=h.filter(c=>c.kind.toLocaleLowerCase("en-US")===m.kind.toLocaleLowerCase("en-US"))),h}},95203:function(Y,T,t){"use strict";t.d(T,{qP:function(){return c},Zg:function(){return E},rQ:function(){return u},pS:function(){return O},UJ:function(){return y}});var o=t(18990),i=t(59598);let d=i.b,b=d;class m{toString(){return`routeRef{type=external,id=${this.id}}`}constructor(v,D,P){(0,o._)(this,"id",void 0),(0,o._)(this,"params",void 0),(0,o._)(this,"optional",void 0),(0,o._)(this,b,void 0),this.id=v,this.params=D,this.optional=P,this[d]="external"}}function p(S){var v;return new m(S.id,(v=S.params)!==null&&v!==void 0?v:[],!!S.optional)}var h=t(34569);const c=p({id:"create-component",optional:!0}),y=p({id:"view-techdoc",optional:!0,params:["namespace","kind","name"]}),E=p({id:"create-from-template",optional:!0,params:["namespace","templateName"]}),O=p({id:"catalog:unregister-redirect",optional:!0}),u=(0,h.H)({id:"catalog"})},54241:function(Y,T,t){"use strict";t.d(T,{b:function(){return o}});var o;(function(i){i.DENY="DENY",i.ALLOW="ALLOW",i.CONDITIONAL="CONDITIONAL"})(o||(o={}))},96824:function(Y,T,t){"use strict";t.d(T,{x:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"plugin.permission.api"})},70734:function(Y,T,t){"use strict";t.d(T,{e:function(){return m}});var o=t(31085),i=t(14041),d=t(58837);const b=(0,d.A)(()=>({highlight:{}}),{name:"BackstageHighlightedSearchResultText"}),m=p=>{const{text:h,preTag:c,postTag:y}=p,E=b(),O=(0,i.useMemo)(()=>h.split(new RegExp(`(${c}.+?${y})`)),[y,c,h]);return(0,o.jsx)(o.Fragment,{children:O.map((u,S)=>u.includes(c)?(0,o.jsx)("mark",{className:E.highlight,children:u.replace(new RegExp(`${c}|${y}`,"g"),"")},S):u)})}},54560:function(Y,T,t){"use strict";t.d(T,{ec:function(){return y}});var o=t(31085),i=t(14041),d=t(93368),b=t(88758),m=t(8109);const p="search.results.list.items.extensions.v1",h=(u,S)=>{for(const v of u){if(!isValidElement(v))continue;const D=getComponentData(v,p);if(D!=null&&D(S))return cloneElement(v,{rank:S.rank,highlight:S.highlight,result:S.document,...v.props})}return null},c=u=>{const{rank:S,result:v,noTrack:D,children:P,alignItems:w="flex-start",...L}=u,I=(0,d.s)(),A=(0,i.useCallback)(()=>{D||v&&I.captureEvent("discover",v.title,{attributes:{to:v.location},value:S})},[S,v,D,I]);return(0,o.jsx)(m.A,{divider:!0,alignItems:w,onClickCapture:A,...L,children:P})},y=u=>{const{name:S,component:v,predicate:D=()=>!0}=u;return(0,b.zZ)({name:S,component:{lazy:()=>v().then(P=>w=>(0,o.jsx)(c,{rank:w.rank,result:w.result,noTrack:w.noTrack,children:(0,i.createElement)(P,w)}))},data:{[p]:D}})},E=u=>{const S=useElementFilter(u,v=>v.selectByComponentData({key:p}).getElements(),[u]);return useCallback((v,D)=>{const P=h(S,v);return _jsx(Fragment,{children:P!=null?P:_jsx(c,{rank:v.rank,result:v.document,children:_jsx(DefaultResultListItem,{rank:v.rank,highlight:v.highlight,result:v.document})})},D)},[S])},O=u=>{const{results:S,children:v,...D}=u,P=E(v);return _jsx(List,{...D,children:S.map(P)})}},72020:function(Y,T,t){"use strict";t.d(T,{AF:function(){return c},Hr:function(){return O},Wm:function(){return h},YR:function(){return D},po:function(){return y}});var o=t(31085),i=t(14041),d=t(18690),b=t(19402),m=t(88758),p=t(82442);const h="techdocs.addons.addon.v1",c="techdocs.addons.wrapper.v1",y=()=>null;(0,b.h)(y,c,!0);const E=P=>`${h}.${P.toLocaleLowerCase("en-US")}`;function O(P){const{name:w,component:L}=P;return(0,m.zZ)({name:w,component:{sync:I=>(0,o.jsx)(L,{...I})},data:{[h]:P,[E(w)]:!0}})}const u=(P,w)=>P.selectByComponentData({key:w}).getElements()[0],S=P=>P.selectByComponentData({key:c}).selectByComponentData({key:h}),v=P=>P.selectByComponentData({key:c}).findComponentData({key:h}),D=()=>{const P=(0,d.P1)(),w=(0,p.O)(P,S),L=(0,p.O)(P,v),I=(0,i.useCallback)(V=>{if(!w||!V)return null;const q=E(V.name);var k;return(k=u(w,q))!==null&&k!==void 0?k:null},[w]),A=(0,i.useCallback)(V=>{const q=L.find(k=>k.name===V);return q?I(q):null},[L,I]),z=(0,i.useCallback)(V=>{const q=L.filter(k=>k.location===V);return q.length?q.map(I):null},[L,I]);return{renderComponentByName:A,renderComponentsByLocation:z}}},26679:function(Y,T,t){"use strict";t.d(T,{l:function(){return i},s:function(){return d}});var o=t(55309);const i=(0,o.y)({id:"plugin.techdocs.service"}),d=(0,o.y)({id:"plugin.techdocs.storageservice"})},86892:function(Y,T,t){"use strict";t.d(T,{R:function(){return P},V:function(){return w}});var o=t(31085),i=t(14041),d=t(73466),b=t(28966),m=t(6820),p=t(43836),h=t(10602),c=t(72427),y=t(65461),E=t(25862),O=t(26679);function u(L,I){return I.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")||(L.kind=L.kind.toLocaleLowerCase(),L.name=L.name.toLocaleLowerCase(),L.namespace=L.namespace.toLocaleLowerCase()),L}const S=(L,I)=>(0,m.U2)(L)===(0,m.U2)(I),v={title:"",subtitle:"",setTitle:()=>{},setSubtitle:()=>{},setShadowRoot:()=>{},metadata:{loading:!0},entityMetadata:{loading:!0},entityRef:{kind:"",name:"",namespace:""}},D=(0,p.tK)("techdocs-reader-page-context"),P=(0,i.memo)(L=>{const{entityRef:I,children:A}=L,z=(0,c.gf)(O.l),V=(0,c.gf)(y.U),q=(0,d.A)(async()=>z.getEntityMetadata(I),[I]),k=(0,b.A)(async()=>z.getTechDocsMetadata(I),[I]),[W,X]=(0,i.useState)(v.title),[H,tt]=(0,i.useState)(v.subtitle),[et,xt]=(0,i.useState)(v.shadowRoot);(0,i.useEffect)(()=>{et&&!k.value&&!k.loading&&k.retry()},[k.value,k.loading,et,k.retry,k]);const st={metadata:k,entityRef:u(I,V),entityMetadata:q,shadowRoot:et,setShadowRoot:xt,title:W,setTitle:X,subtitle:H,setSubtitle:tt},Pt=(0,h.B)({1:st});return(0,o.jsx)(E.Ig,{attributes:{entityRef:(0,m.U2)(I)},children:(0,o.jsx)(D.Provider,{value:Pt,children:A instanceof Function?A(st):A})})},(L,I)=>S(L.entityRef,I.entityRef)),w=()=>{const L=(0,i.useContext)(D);if(L===void 0)return v;const I=L.atVersion(1);if(I===void 0)throw new Error("No context found for version 1.");return I}},99730:function(Y,T,t){"use strict";t.d(T,{e:function(){return o}});const o=Object.freeze({Header:"Header",Subheader:"Subheader",Settings:"Settings",PrimarySidebar:"PrimarySidebar",SecondarySidebar:"SecondarySidebar",Content:"Content"})},95768:function(Y,T,t){"use strict";t.d(T,{V:function(){return o}});function o(i,d){return d.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")?i:i.toLocaleLowerCase("en-US")}},85920:function(Y,T,t){"use strict";t.d(T,{K:function(){return k}});var o=t(31085),i=t(14041),d=t(26280),b=t(59428),m=t(3851),p=t(21405),h=t(54203),c=t(67626),y=t(72987),E=t(91035),O=t(81859),u=t(86519);class S{getCatalogFilters(){return{"metadata.annotations.backstage.io/techdocs-ref":u.c}}}const v=()=>{const{updateFilters:W}=(0,p.nK)();return(0,i.useEffect)(()=>{W({techdocs:new S})},[W]),null};var D=t(36338),P=t(45250),w=t(88640),L=t(77310),I=t(56889),A=t(27125),z=t(84295),V=t(42717);const q=W=>{var X;const{columns:H,actions:tt,options:et}=W,{loading:xt,error:st,entities:Pt,filters:ft}=(0,p.nK)(),{isStarredEntity:mt,toggleStarredEntity:lt}=(0,I.I)(),[,it]=(0,D.A)();var vt;const _=(0,P.capitalize)((vt=(X=ft.user)===null||X===void 0?void 0:X.value)!==null&&vt!==void 0?vt:"all"),yt=[z.f.createCopyDocsUrlAction(it),z.f.createStarEntityAction(mt,lt)];return st?(0,o.jsx)(w.B,{severity:"error",title:"Could not load available documentation.",children:(0,o.jsx)(L.z,{language:"text",text:st.toString()})}):(0,o.jsx)(A.o,{title:_,entities:Pt,loading:xt,actions:tt||yt,columns:H,options:et})};q.columns=V.B,q.actions=z.f;const k=W=>{const{initialFilter:X="owned",columns:H,actions:tt}=W;return(0,o.jsx)(O.S,{children:(0,o.jsxs)(d.U,{children:[(0,o.jsx)(b.d,{title:"",children:(0,o.jsx)(m.Y,{children:"Discover documentation in your ecosystem."})}),(0,o.jsx)(p.B9,{children:(0,o.jsxs)(h.GI,{children:[(0,o.jsxs)(h.GI.Filters,{children:[(0,o.jsx)(v,{}),(0,o.jsx)(c.y,{initialFilter:X}),(0,o.jsx)(y.t,{}),(0,o.jsx)(E.m,{})]}),(0,o.jsx)(h.GI.Content,{children:(0,o.jsx)(q,{actions:tt,columns:H})})]})})]})})}},27125:function(Y,T,t){"use strict";t.d(T,{o:function(){return w}});var o=t(31085),i=t(14041),d=t(36338),b=t(9222),m=t(72427),p=t(65461),h=t(51372),c=t(67871),y=t(90184),E=t(82779),O=t(14209),u=t(44186),S=t(73896),v=t(84295),D=t(42717),P=t(95768);const w=L=>{const{entities:I,title:A,loading:z,columns:V,actions:q,options:k}=L,[,W]=(0,d.A)(),X=(0,b.S)(E.Oc),H=(0,m.gf)(p.U);if(!I)return null;const tt=I.map(ft=>{const mt=(0,c.t)(ft,h.vv);var lt;return{entity:ft,resolved:{docsUrl:X({namespace:(0,P.V)((lt=ft.metadata.namespace)!==null&&lt!==void 0?lt:"default",H),kind:(0,P.V)(ft.kind,H),name:(0,P.V)(ft.metadata.name,H)}),ownedByRelations:mt,ownedByRelationsTitle:mt.map(it=>(0,y.S)(it,{defaultKind:"group"})).join(", ")}}}),et=[D.B.createNameColumn(),D.B.createOwnerColumn(),D.B.createKindColumn(),D.B.createTypeColumn()],xt=[v.f.createCopyDocsUrlAction(W)],st=20,Pt=tt&&tt.length>st;return(0,o.jsx)(o.Fragment,{children:z||tt&&tt.length>0?(0,o.jsx)(O.X,{isLoading:z,options:{paging:Pt,pageSize:st,search:!0,actionsColumnIndex:-1,...k},data:tt,columns:V||et,actions:q||xt,title:A?`${A} (${tt.length})`:`All (${tt.length})`}):(0,o.jsx)(u.p,{missing:"data",title:"No documents to show",description:"Create your own document. Check out our Getting Started Information",action:(0,o.jsx)(S.z,{color:"primary",to:"https://backstage.io/docs/features/techdocs/getting-started",variant:"contained",children:"DOCS"})})})};w.columns=D.B,w.actions=v.f},84295:function(Y,T,t){"use strict";t.d(T,{f:function(){return c}});var o=t(31085),i=t(14041),d=t(55290),b=t(87051),m=t(80109),p=t(15303);const h=(0,b.A)({root:{color:"#f3ba37"}})(m.A),c={createCopyDocsUrlAction(y){return E=>({icon:()=>(0,o.jsx)(d.A,{fontSize:"small"}),tooltip:"Click to copy documentation link to clipboard",onClick:()=>y(`${window.location.origin}${E.resolved.docsUrl}`)})},createStarEntityAction(y,E){return O=>{const u=O.entity,S=y(u);return{cellStyle:{paddingLeft:"1em"},icon:()=>S?(0,o.jsx)(h,{}):(0,o.jsx)(p.A,{}),tooltip:S?"Remove from favorites":"Add to favorites",onClick:()=>E(u)}}}}},42717:function(Y,T,t){"use strict";t.d(T,{B:function(){return E}});var o=t(31085),i=t(14041),d=t(10394),b=t(58837);const m=(0,b.A)(O=>({value:{marginBottom:O.spacing(.75)},subvalue:{color:O.palette.textSubtle,fontWeight:"normal"}}),{name:"BackstageSubvalueCell"});function p(O){const{value:u,subvalue:S}=O,v=m();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.A,{className:v.value,children:u}),(0,o.jsx)(d.A,{className:v.subvalue,children:S})]})}var h=t(72072),c=t(34428);function y(O){return O.metadata.title||O.metadata.name}const E={createNameColumn(){return{title:"Document",field:"entity.metadata.name",highlight:!0,render:O=>(0,o.jsx)(p,{value:(0,o.jsx)(h.N_,{to:O.resolved.docsUrl,children:y(O.entity)}),subvalue:O.entity.metadata.description})}},createOwnerColumn(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:O})=>(0,o.jsx)(c.i,{entityRefs:O.ownedByRelations,defaultKind:"group"})}},createKindColumn(){return{title:"Kind",field:"entity.kind"}},createTypeColumn(){return{title:"Type",field:"entity.spec.type"}}}},81859:function(Y,T,t){"use strict";t.d(T,{S:function(){return p}});var o=t(31085),i=t(14041),d=t(27155),b=t(72427),m=t(65461);const p=h=>{const{children:c}=h,y=(0,b.gf)(m.U);var E;const O=`Documentation available in ${(E=y.getOptionalString("organization.name"))!==null&&E!==void 0?E:"Backstage"}`;return(0,o.jsx)(d.d,{title:"Documentation",subtitle:O,themeId:"documentation",children:c})}},39278:function(Y,T,t){"use strict";t.d(T,{$j:function(){return z},Wj:function(){return V},Ju:function(){return w}});var o=t(26679),i=t(18990),d=t(70835),b=t(97142),m=t(50165);class p{async getCookie(){const X=`${await this.getApiOrigin()}/cookie`,H=await this.fetchApi.fetch(`${X}`,{credentials:"include"});if(!H.ok)throw await d.o.fromResponse(H);return await H.json()}async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getTechDocsMetadata(W){const{kind:X,namespace:H,name:tt}=W,xt=`${await this.getApiOrigin()}/metadata/techdocs/${H}/${X}/${tt}`,st=await this.fetchApi.fetch(`${xt}`);if(!st.ok)throw await d.o.fromResponse(st);return await st.json()}async getEntityMetadata(W){const{kind:X,namespace:H,name:tt}=W,xt=`${await this.getApiOrigin()}/metadata/entity/${H}/${X}/${tt}`,st=await this.fetchApi.fetch(`${xt}`);if(!st.ok)throw await d.o.fromResponse(st);return await st.json()}constructor(W){(0,i._)(this,"configApi",void 0),(0,i._)(this,"discoveryApi",void 0),(0,i._)(this,"fetchApi",void 0),this.configApi=W.configApi,this.discoveryApi=W.discoveryApi,this.fetchApi=W.fetchApi}}class h{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){var W;return(W=this.configApi.getOptionalString("techdocs.storageUrl"))!==null&&W!==void 0?W:`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(W,X){const{kind:H,namespace:tt,name:et}=W,st=`${await this.getStorageUrl()}/${tt}/${H}/${et}/${X}`,Pt=await this.fetchApi.fetch(`${st.endsWith("/")?st:`${st}/`}index.html`);let ft="";switch(Pt.status){case 404:throw ft="Page not found. ",X||(ft+="This could be because there is no index.md file in the root of the docs directory of this repository."),new b.m_(ft);case 500:throw ft="Could not generate documentation or an error in the TechDocs backend. ",new Error(ft);default:break}return Pt.text()}async syncEntityDocs(W,X=()=>{}){const{kind:H,namespace:tt,name:et}=W,st=`${await this.getApiOrigin()}/sync/${tt}/${H}/${et}`,{token:Pt}=await this.identityApi.getCredentials();return new Promise((ft,mt)=>{const lt=new m.EventSourcePolyfill(st,{withCredentials:!0,headers:Pt?{Authorization:`Bearer ${Pt}`}:{}});lt.addEventListener("log",it=>{it.data&&X(JSON.parse(it.data))}),lt.addEventListener("finish",it=>{let vt=!1;it.data&&({updated:vt}=JSON.parse(it.data)),ft(vt?"updated":"cached")}),lt.onerror=it=>{switch(lt.close(),it.status){case 404:mt(new b.m_(it.message));return;default:mt(new Error(it.data));return}}})}async getBaseUrl(W,X,H){const{kind:tt,namespace:et,name:xt}=X,Pt=`${await this.getApiOrigin()}/static/docs/${et}/${tt}/${xt}/${H}`;return new URL(W,Pt.endsWith("/")?Pt:`${Pt}/`).toString()}constructor(W){(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=W.configApi,this.discoveryApi=W.discoveryApi,this.identityApi=W.identityApi,this.fetchApi=W.fetchApi}}var c=t(82779),y=t(9803),E=t(12935),O=t(65461),u=t(57405),S=t(16009),v=t(70795),D=t(88758),P=t(54560);const w=(0,y.i)({id:"techdocs",apis:[(0,E.b)({api:o.s,deps:{configApi:O.U,discoveryApi:u.I,identityApi:S.K,fetchApi:v.a},factory:({configApi:k,discoveryApi:W,identityApi:X,fetchApi:H})=>new h({configApi:k,discoveryApi:W,identityApi:X,fetchApi:H})}),(0,E.b)({api:o.l,deps:{configApi:O.U,discoveryApi:u.I,fetchApi:v.a},factory:({configApi:k,discoveryApi:W,fetchApi:X})=>new p({configApi:k,discoveryApi:W,fetchApi:X})})],routes:{root:c.rQ,docRoot:c.Oc,entityContent:c.Ri}}),L=w.provide((0,D.QJ)({name:"TechdocsPage",component:()=>t.e(9605).then(t.bind(t,29605)).then(k=>k.Router),mountPoint:c.rQ})),I=w.provide((0,D.QJ)({name:"EntityTechdocsContent",component:()=>t.e(9605).then(t.bind(t,29605)).then(k=>k.EmbeddedDocsRouter),mountPoint:c.Ri})),A=w.provide((0,D.QJ)({name:"TechDocsCustomHome",component:()=>t.e(4487).then(t.bind(t,94487)).then(k=>k.TechDocsCustomHome),mountPoint:c.rQ})),z=w.provide((0,D.QJ)({name:"TechDocsIndexPage",component:()=>t.e(5788).then(t.bind(t,85788)).then(k=>k.TechDocsIndexPage),mountPoint:c.rQ})),V=w.provide((0,D.QJ)({name:"TechDocsReaderPage",component:()=>t.e(4036).then(t.bind(t,84036)).then(k=>k.TechDocsReaderPage),mountPoint:c.Oc})),q=w.provide((0,P.ec)({name:"TechDocsSearchResultListItem",component:()=>Promise.resolve().then(t.bind(t,27698)).then(k=>k.TechDocsSearchResultListItem),predicate:k=>k.type==="techdocs"}))},16203:function(Y,T,t){"use strict";t.d(T,{p:function(){return Lt}});var o=t(31085),i=t(14041),d=t(42899),b=t(58837),m=t(86892),p=t(9394),h=t(22856),c=t(91360),y=t(68146);const E="TECH_DOCS_SHADOW_DOM_STYLE_LOAD",O=g=>{(0,i.useEffect)(()=>{if(!g)return()=>{};const R=g.querySelectorAll('head > link[rel="stylesheet"]');var F;let $=(F=R==null?void 0:R.length)!==null&&F!==void 0?F:0;const Q=new CustomEvent(E);if(!$)return g.dispatchEvent(Q),()=>{};const J=()=>{--$===0&&g.dispatchEvent(Q)};return R==null||R.forEach(at=>{at.addEventListener("load",J)}),()=>{R==null||R.forEach(at=>{at.removeEventListener("load",J)})}},[g])},u=g=>{const[R,F]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!g)return()=>{};F(!0);const $=g.style;$.setProperty("opacity","0");const Q=()=>{F(!1),$.setProperty("opacity","1")};return g.addEventListener(E,Q),()=>{g.removeEventListener(E,Q)}},[g]),R},S=g=>{const{element:R,onAppend:F,children:$}=g,[Q,J]=(0,i.useState)((0,p.vt)({...(0,h.A)(),insertionPoint:void 0}));O(R);const at=u(R),Ct=(0,i.useCallback)(Bt=>{if(!R||!Bt)return;J((0,p.vt)({...(0,h.A)(),insertionPoint:R.querySelector("head")||void 0}));let Wt=Bt.shadowRoot;Wt||(Wt=Bt.attachShadow({mode:"open"})),Wt.replaceChildren(R),typeof F=="function"&&F(Wt)},[R,F]);return(0,o.jsxs)(o.Fragment,{children:[at&&(0,o.jsx)(y.k,{}),(0,o.jsxs)(c.Ay,{jss:Q,sheetsManager:new Map,children:[(0,o.jsx)("div",{ref:Ct,"data-testid":"techdocs-native-shadowroot"}),$]})]})};var v=t(12784);const D=()=>{const{shadowRoot:g}=(0,m.V)();return g},P=g=>{const R=D();return R?g.map(F=>R==null?void 0:R.querySelectorAll(F)).filter(F=>F.length).map(F=>Array.from(F)).flat():[]},w=g=>g.toString()&&g.rangeCount&&g.getRangeAt(0).getBoundingClientRect().top,L=(g=0)=>{const R=D(),[F,$]=useState(null),Q=useMemo(()=>debounce(()=>{const J=R,at=J.getSelection?J.getSelection():document.getSelection();at&&w(at)?$(at):$(null)},g),[R,$,g]);return useEffect(()=>(window.document.addEventListener("selectionchange",Q),()=>{Q.cancel(),window.document.removeEventListener("selectionchange",Q)}),[Q]),F};var I=t(12173),A=t(26280),z=t(45250),V=t(73466),q=t(5877),k=t(43836),W=t(10602),X=t(72427),H=t(93368),tt=t(25862),et=t(65461),xt=t(55309);const st=(0,xt.y)({id:"plugin.search.queryservice"});class Pt{query(){return Promise.resolve(this.mockedResults||{results:[]})}constructor(R){_define_property(this,"mockedResults",void 0),this.mockedResults=R}}const ft=(0,k.tK)("search-context"),mt=()=>{const g=(0,i.useContext)(ft);if(!g)throw new Error("useSearch must be used within a SearchContextProvider");const R=g.atVersion(1);if(!R)throw new Error("No SearchContext v1 found");return R},lt=()=>(0,i.useContext)(ft)!==void 0,it={term:"",types:[],filters:{},pageLimit:void 0,pageCursor:void 0},vt=(g=it)=>{var R,F,$,Q;const J=(0,X.gf)(st),at=(0,H.s)(),[Ct,Bt]=(0,i.useState)(g.term),[Wt,Qt]=(0,i.useState)(g.types),[zt,It]=(0,i.useState)(g.filters),[ce,me]=(0,i.useState)(g.pageLimit),[Jt,Ht]=(0,i.useState)(g.pageCursor),ie=(0,q.A)(Ct),ye=(0,q.A)(zt),jt=(0,V.A)(async()=>{const fe=await J.query({term:Ct,types:Wt,filters:zt,pageLimit:ce,pageCursor:Jt});if(Ct){var je,se;at.captureEvent("search",Ct,{value:(se=(je=jt.value)===null||je===void 0?void 0:je.numberOfResults)!==null&&se!==void 0?se:void 0})}return fe},[Ct,Wt,zt,ce,Jt]),Vt=!jt.loading&&!jt.error&&((R=jt.value)===null||R===void 0?void 0:R.nextPageCursor),te=!jt.loading&&!jt.error&&((F=jt.value)===null||F===void 0?void 0:F.previousPageCursor),Ee=(0,i.useCallback)(()=>{var fe;Ht((fe=jt.value)===null||fe===void 0?void 0:fe.nextPageCursor)},[($=jt.value)===null||$===void 0?void 0:$.nextPageCursor]),Me=(0,i.useCallback)(()=>{var fe;Ht((fe=jt.value)===null||fe===void 0?void 0:fe.previousPageCursor)},[(Q=jt.value)===null||Q===void 0?void 0:Q.previousPageCursor]);return(0,i.useEffect)(()=>{ie!==void 0&&Ct!==ie&&Ht(void 0)},[Ct,ie,Ht]),(0,i.useEffect)(()=>{ye!==void 0&&!(0,z.isEqual)(zt,ye)&&Ht(void 0)},[zt,ye,Ht]),{result:jt,term:Ct,setTerm:Bt,types:Wt,setTypes:Qt,filters:zt,setFilters:It,pageLimit:ce,setPageLimit:me,pageCursor:Jt,setPageCursor:Ht,fetchNextPage:Vt?Ee:void 0,fetchPreviousPage:te?Me:void 0}},_=g=>{const{initialState:R,children:F}=g,$=vt(R);return(0,o.jsx)(tt.Ig,{attributes:{searchTypes:$.types.sort().join(",")},children:(0,o.jsx)(ft.Provider,{value:(0,W.B)({1:$}),children:F})})},yt=g=>{const{initialState:R,inheritParentContextIfAvailable:F,children:$}=g,Q=lt(),J=(0,X.gf)(et.U),at=R!=null?R:{},Ct=J.has("search.query.pageLimit")?{pageLimit:J.getNumber("search.query.pageLimit")}:{},Bt={...it,...at,...Ct};return Q&&F?(0,o.jsx)(o.Fragment,{children:$}):(0,o.jsx)(_,{initialState:Bt,children:$})};var gt=t(78467),ot=t(20577),dt=t(34839),ct=t(29365),Tt=t(16249),Et=t(64947),N=t(45917),G=t(22771);function pt(g){return(0,i.forwardRef)((R,F)=>(0,o.jsx)(yt,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(g,{...R,ref:F})}))}const bt=pt((0,i.forwardRef)((g,R)=>{const{onChange:F,onKeyDown:$=()=>{},onClear:Q=()=>{},onSubmit:J=()=>{},debounceTime:at=200,clearButton:Ct=!0,fullWidth:Bt=!0,value:Wt,label:Qt,placeholder:zt,inputProps:It={},InputProps:ce={},endAdornment:me,...Jt}=g,Ht=(0,X.gf)(et.U),[ie,ye]=(0,i.useState)(""),jt=(0,i.useRef)("");(0,i.useEffect)(()=>{ye(se=>se===jt.current?String(Wt):se)},[Wt,jt]),(0,G.A)(()=>{jt.current=ie,F(ie)},at,[ie]);const Vt=(0,i.useCallback)(se=>{ye(se.target.value)},[ye]),te=(0,i.useCallback)(se=>{$&&$(se),J&&se.key==="Enter"&&J()},[$,J]),Ee=(0,i.useCallback)(()=>{jt.current="",F(""),ye(""),Q&&Q()},[F,Q]),Me=Qt?void 0:"Search",$e=zt!=null?zt:`Search in ${Ht.getOptionalString("app.title")||"Backstage"}`,fe=(0,o.jsx)(dt.A,{position:"start",children:(0,o.jsx)(ct.A,{"aria-label":"Query",size:"small",disabled:!0,children:(0,o.jsx)(N.A,{})})}),je=(0,o.jsx)(dt.A,{position:"end",children:(0,o.jsx)(Et.A,{"aria-label":"Clear",size:"small",onClick:Ee,onKeyDown:se=>{se.key==="Enter"&&se.stopPropagation()},children:"Clear"})});return(0,o.jsx)(Tt.A,{id:"search-bar-text-field","data-testid":"search-bar-next",variant:"outlined",margin:"normal",inputRef:R,value:ie,label:Qt,placeholder:$e,InputProps:{startAdornment:fe,endAdornment:Ct?je:me,...ce},inputProps:{"aria-label":Me,...It},fullWidth:Bt,onChange:Vt,onKeyDown:te,...Jt})})),Ut=pt((0,i.forwardRef)((g,R)=>{const{value:F="",onChange:$,...Q}=g,{term:J,setTerm:at}=mt();(0,i.useEffect)(()=>{F&&at(String(F))},[F,at]);const Ct=(0,i.useCallback)(Bt=>{$?$(Bt):at(Bt)},[$,at]);return(0,o.jsx)(tt.Ig,{attributes:{pluginId:"search",extension:"SearchBar"},children:(0,o.jsx)(bt,{...Q,ref:R,value:J,onChange:Ct})})})),Rt=(0,b.A)(g=>({loading:{right:g.spacing(1),position:"absolute"}})),Ot=g=>R=>(0,o.jsx)(yt,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(g,{...R})}),Ft=()=>{const g=Rt();return(0,o.jsx)(gt.A,{className:g.loading,"data-testid":"search-autocomplete-progressbar",color:"inherit",size:20})},wt=Ot(function(R){const{loading:F,value:$,onChange:Q=()=>{},options:J=[],getOptionLabel:at=jt=>String(jt),inputPlaceholder:Ct,inputDebounceTime:Bt,freeSolo:Wt=!0,fullWidth:Qt=!0,clearOnBlur:zt=!1,"data-testid":It="search-autocomplete",...ce}=R,{setTerm:me}=mt(),Jt=(0,i.useCallback)(jt=>jt?typeof jt=="string"?jt:at(jt):"",[at]),Ht=(0,i.useMemo)(()=>Jt($),[$,Jt]),ie=(0,i.useCallback)((jt,Vt,te,Ee)=>{me(Jt(Vt)),Q(jt,Vt,te,Ee)},[Jt,me,Q]),ye=(0,i.useCallback)(({InputProps:{ref:jt,className:Vt,endAdornment:te},InputLabelProps:Ee,...Me})=>(0,o.jsx)(Ut,{...Me,ref:jt,clearButton:!1,value:Ht,placeholder:Ct,debounceTime:Bt,endAdornment:F?(0,o.jsx)(Ft,{}):te,InputProps:{className:Vt}}),[F,Ht,Ct,Bt]);return(0,o.jsx)(ot.Ay,{...ce,"data-testid":It,value:$,onChange:ie,options:J,getOptionLabel:at,renderInput:ye,freeSolo:Wt,fullWidth:Qt,clearOnBlur:zt})});var Nt=t(18690),Xt=t(27698);const de=g=>g==null?void 0:g.document,ae=g=>{const{entityId:R,entityTitle:F,debounceTime:$=150}=g,[Q,J]=(0,i.useState)(!1),at=(0,Nt.Zp)(),{setFilters:Ct,result:{loading:Bt,value:Wt}}=mt(),[Qt,zt]=(0,i.useState)([]);(0,i.useEffect)(()=>{let Ht=!0;if(Ht&&Wt){const ie=Wt.results.slice(0,10);zt(ie)}return()=>{Ht=!1}},[Bt,Wt]);const{kind:It,name:ce,namespace:me}=R;(0,i.useEffect)(()=>{Ct(Ht=>({...Ht,kind:It,namespace:me,name:ce}))},[It,me,ce,Ct]);const Jt=(Ht,ie)=>{if(de(ie)){const{location:ye}=ie.document;at(ye)}};return(0,o.jsx)(wt,{"data-testid":"techdocs-search-bar",size:"small",open:Q,getOptionLabel:()=>"",filterOptions:Ht=>Ht,onClose:()=>{J(!1)},onFocus:()=>{J(!0)},onChange:Jt,blurOnSelect:!0,noOptionsText:"No results found",value:null,options:Qt,renderOption:({document:Ht,highlight:ie})=>(0,o.jsx)(Xt.TechDocsSearchResultListItem,{result:Ht,lineClamp:3,asListItem:!1,asLink:!1,title:Ht.title,highlight:ie}),loading:Bt,inputDebounceTime:$,inputPlaceholder:`Search ${F||R.name} docs`,freeSolo:!1})},le=g=>{const R={term:"",types:["techdocs"],pageCursor:"",filters:g.entityId};return(0,o.jsx)(yt,{initialState:R,children:(0,o.jsx)(ae,{...g})})};var kt=t(74219),_t=t(82266);const ge=(0,i.lazy)(()=>Promise.all([t.e(3308),t.e(9234)]).then(t.bind(t,99234)).then(g=>({default:g.RealLogViewer})));function ke(g){const{Progress:R}=(0,_t.n)().getComponents();return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(R,{}),children:(0,o.jsx)(ge,{...g})})}var Ue=t(73845),Ge=t(72501),Pe=t(12398),sn=t(32881);const _e=(0,b.A)(g=>(0,Pe.A)({paper:{width:"100%",[g.breakpoints.up("sm")]:{width:"75%"},[g.breakpoints.up("md")]:{width:"50%"},padding:g.spacing(2.5)},root:{height:"100%",overflow:"hidden"},logs:{background:g.palette.background.default}})),ne=({buildLog:g,onClose:R})=>{const F=_e(),$=g.length===0?"Waiting for logs...":g.join(`
8
+ `);return(0,o.jsxs)(d.A,{container:!0,direction:"column",className:F.root,spacing:0,wrap:"nowrap",children:[(0,o.jsxs)(d.A,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",spacing:0,wrap:"nowrap",children:[(0,o.jsx)(Ge.A,{variant:"h5",children:"Build Details"}),(0,o.jsx)(ct.A,{title:"Close the drawer",onClick:R,color:"inherit",children:(0,o.jsx)(sn.A,{})},"dismiss")]}),(0,o.jsx)(d.A,{item:!0,xs:!0,children:(0,o.jsx)(ke,{text:$,classes:{root:F.logs}})})]})},Ke=({buildLog:g})=>{const R=_e(),[F,$]=(0,i.useState)(!1);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Et.A,{color:"inherit",onClick:()=>$(!0),children:"Show Build Logs"}),(0,o.jsx)(Ue.Ay,{classes:{paper:R.paper},anchor:"right",open:F,onClose:()=>$(!1),children:(0,o.jsx)(ne,{buildLog:g,onClose:()=>$(!1)})})]})},ze=({errorMessage:g})=>{const R=(0,X.gf)(et.U).getOptionalString("techdocs.builder"),F=(0,H.s)(),{entityRef:$}=(0,m.V)(),Q=(0,Nt.zy)();(0,i.useEffect)(()=>{const{pathname:at,search:Ct,hash:Bt}=Q;F.captureEvent("not-found",`${at}${Ct}${Bt}`,{attributes:$})},[F,$,Q]);let J="";return R!=="local"&&(J="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)(I.M,{status:"404",statusMessage:g||"Documentation not found",additionalInfo:J})};var qe=t(28966),Ye=t(26679);function xe({contentLoading:g,content:R,activeSyncState:F}){return g||F==="BUILD_READY_RELOAD"||!R&&F==="CHECKING"?"CHECKING":!R&&F==="BUILDING"?"INITIAL_BUILD":R?F==="BUILDING"?"CONTENT_STALE_REFRESHING":F==="BUILD_READY"?"CONTENT_STALE_READY":F==="ERROR"?"CONTENT_STALE_ERROR":"CONTENT_FRESH":"CONTENT_NOT_FOUND"}function an(g,R){const F={...g};switch(R.type){case"sync":R.state==="CHECKING"&&(F.buildLog=[]),F.activeSyncState=R.state,F.syncError=R.syncError;break;case"contentLoading":F.contentLoading=!0,F.contentError=void 0;break;case"content":typeof R.path=="string"&&(F.path=R.path),F.contentLoading=!1,F.content=R.content,F.contentError=R.contentError;break;case"buildLog":F.buildLog=F.buildLog.concat(R.log);break;default:throw new Error}return["BUILD_READY","BUILD_READY_RELOAD"].includes(F.activeSyncState)&&["contentLoading","content"].includes(R.type)&&(F.activeSyncState="UP_TO_DATE",F.buildLog=[]),F}function ln(g,R,F,$){var Q,J;const[at,Ct]=(0,i.useReducer)(an,{activeSyncState:"CHECKING",path:$,contentLoading:!0,buildLog:[]}),Bt=(0,X.gf)(Ye.s),{retry:Wt}=(0,qe.A)(async()=>{Ct({type:"contentLoading"});try{const It=await Bt.getEntityDocs({kind:g,namespace:R,name:F},$);return Ct({type:"content",content:It,path:$}),It}catch(It){Ct({type:"content",contentError:It,path:$})}},[Bt,g,R,F,$]),Qt=(0,i.useRef)({content:void 0,reload:()=>{}});return Qt.current={content:at.content,reload:Wt},(0,V.A)(async()=>{Ct({type:"sync",state:"CHECKING"});const It=setTimeout(()=>{Ct({type:"sync",state:"BUILDING"})},1e3);try{switch(await Bt.syncEntityDocs({kind:g,namespace:R,name:F},me=>{Ct({type:"buildLog",log:me})})){case"updated":Qt.current.content?Ct({type:"sync",state:"BUILD_READY"}):(Qt.current.reload(),Ct({type:"sync",state:"BUILD_READY_RELOAD"}));break;case"cached":Ct({type:"sync",state:"UP_TO_DATE"});break;default:Ct({type:"sync",state:"ERROR",syncError:new Error("Unexpected return state")});break}}catch(ce){Ct({type:"sync",state:"ERROR",syncError:ce})}finally{clearTimeout(It)}},[g,F,R,Bt,Ct,Qt]),{state:(0,i.useMemo)(()=>xe({activeSyncState:at.activeSyncState,contentLoading:at.contentLoading,content:at.content}),[at.activeSyncState,at.content,at.contentLoading]),contentReload:Wt,path:at.path,content:at.content,contentErrorMessage:(Q=at.contentError)===null||Q===void 0?void 0:Q.toString(),syncErrorMessage:(J=at.syncError)===null||J===void 0?void 0:J.toString(),buildLog:at.buildLog}}const cn=(0,i.createContext)({}),ue=()=>(0,i.useContext)(cn),Re=g=>{const{children:R}=g,{"*":F=""}=(0,Nt.g)(),{entityRef:$}=(0,m.V)(),{kind:Q,namespace:J,name:at}=$,Ct=ln(Q,J,at,F);return(0,o.jsx)(cn.Provider,{value:Ct,children:R instanceof Function?R(Ct):R})},He=g=>R=>(0,o.jsx)(Re,{children:(0,o.jsx)(g,{...R})}),Qe=(0,b.A)(g=>({root:{marginBottom:g.spacing(2)},message:{wordBreak:"break-word",overflowWrap:"anywhere"}})),Ie=()=>{let g=null;const R=Qe(),{state:F,contentReload:$,contentErrorMessage:Q,syncErrorMessage:J,buildLog:at}=ue();return F==="INITIAL_BUILD"&&(g=(0,o.jsx)(kt.A,{classes:{root:R.root},variant:"outlined",severity:"info",icon:(0,o.jsx)(gt.A,{size:"24px"}),action:(0,o.jsx)(Ke,{buildLog:at}),children:"Documentation is accessed for the first time and is being prepared. The subsequent loads are much faster."})),F==="CONTENT_STALE_REFRESHING"&&(g=(0,o.jsx)(kt.A,{variant:"outlined",severity:"info",icon:(0,o.jsx)(gt.A,{size:"24px"}),action:(0,o.jsx)(Ke,{buildLog:at}),classes:{root:R.root},children:"A newer version of this documentation is being prepared and will be available shortly."})),F==="CONTENT_STALE_READY"&&(g=(0,o.jsx)(kt.A,{variant:"outlined",severity:"success",action:(0,o.jsx)(Et.A,{color:"inherit",onClick:()=>$(),children:"Refresh"}),classes:{root:R.root},children:"A newer version of this documentation is now available, please refresh to view."})),F==="CONTENT_STALE_ERROR"&&(g=(0,o.jsxs)(kt.A,{variant:"outlined",severity:"error",action:(0,o.jsx)(Ke,{buildLog:at}),classes:{root:R.root,message:R.message},children:["Building a newer version of this documentation failed."," ",J]})),F==="CONTENT_NOT_FOUND"&&(g=(0,o.jsxs)(o.Fragment,{children:[J&&(0,o.jsxs)(kt.A,{variant:"outlined",severity:"error",action:(0,o.jsx)(Ke,{buildLog:at}),classes:{root:R.root,message:R.message},children:["Building a newer version of this documentation failed."," ",J]}),(0,o.jsx)(ze,{errorMessage:Q})]})),g};var Fe=t(5893),M=t(54917),f=t(41158),B=t(71651),U=t.n(B);const ut=/main\.[A-Fa-f0-9]{8}\.min\.css$/,nt=/^https:\/\/fonts\.googleapis\.com/,Dt=/^https:\/\/fonts\.gstatic\.com/,qt=g=>g.nodeName==="LINK",oe=g=>{const R=(g==null?void 0:g.getAttribute("href"))||"",F=R.match(ut),$=R.match(nt),Q=R.match(Dt);return F||$||Q},pe=g=>(qt(g)&&!oe(g)&&g.remove(),g),ve=g=>g.nodeName==="IFRAME",$t=(g,R)=>{const F=g.getAttribute("src")||"";try{const{host:$}=new URL(F);return R.includes($)}catch{return!1}},Kt=g=>R=>(ve(R)&&!$t(R,g)&&R.remove(),R),Mt=()=>{const g=(0,X.gf)(et.U);return(0,i.useMemo)(()=>g.getOptionalConfig("techdocs.sanitizer"),[g])},Ce=()=>{const g=Mt();return(0,i.useCallback)(async R=>{const F=g==null?void 0:g.getOptionalStringArray("allowedIframeHosts");U().addHook("beforeSanitizeElements",pe);const $=["link"];return F&&($.push("iframe"),U().addHook("beforeSanitizeElements",Kt(F))),U().sanitize(R.outerHTML,{ADD_TAGS:$,FORBID_TAGS:["style"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0})},[g])};var De=t(34435),re=t(268),Ve=({theme:g})=>`
9
+ /*================== Variables ==================*/
10
+ /*
11
+ As the MkDocs output is rendered in shadow DOM, the CSS variable definitions on the root selector are not applied. Instead, they have to be applied on :host.
12
+ As there is no way to transform the served main*.css yet (for example in the backend), we have to copy from main*.css and modify them.
13
+ */
14
+
15
+ :host {
16
+ /* FONT */
17
+ --md-default-fg-color: ${g.palette.text.primary};
18
+ --md-default-fg-color--light: ${g.palette.text.secondary};
19
+ --md-default-fg-color--lighter: ${(0,re.a)(g.palette.text.secondary,.7)};
20
+ --md-default-fg-color--lightest: ${(0,re.a)(g.palette.text.secondary,.3)};
21
+
22
+ /* BACKGROUND */
23
+ --md-default-bg-color:${g.palette.background.default};
24
+ --md-default-bg-color--light: ${g.palette.background.paper};
25
+ --md-default-bg-color--lighter: ${(0,re.a)(g.palette.background.paper,.7)};
26
+ --md-default-bg-color--lightest: ${(0,re.a)(g.palette.background.paper,.3)};
27
+
28
+ /* PRIMARY */
29
+ --md-primary-fg-color: ${g.palette.primary.main};
30
+ --md-primary-fg-color--light: ${g.palette.primary.light};
31
+ --md-primary-fg-color--dark: ${g.palette.primary.dark};
32
+ --md-primary-bg-color: ${g.palette.primary.contrastText};
33
+ --md-primary-bg-color--light: ${(0,re.a)(g.palette.primary.contrastText,.7)};
34
+
35
+ /* ACCENT */
36
+ --md-accent-fg-color: var(--md-primary-fg-color);
37
+
38
+ /* SHADOW */
39
+ --md-shadow-z1: ${g.shadows[1]};
40
+ --md-shadow-z2: ${g.shadows[2]};
41
+ --md-shadow-z3: ${g.shadows[3]};
42
+
43
+ /* EXTENSIONS */
44
+ --md-admonition-fg-color: var(--md-default-fg-color);
45
+ --md-admonition-bg-color: var(--md-default-bg-color);
46
+ /* Admonitions and others are using SVG masks to define icons. These masks are defined as CSS variables. */
47
+ --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>');
48
+ --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>');
49
+ --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>');
50
+ --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>');
51
+ --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>');
52
+ --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>');
53
+ --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>');
54
+ --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>');
55
+ --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>');
56
+ --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>');
57
+ --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>');
58
+ --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>');
59
+ --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>');
60
+ --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>');
61
+ --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>');
62
+ --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>');
63
+ --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>');
64
+ --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>');
65
+ --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>');
66
+ --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>');
67
+ --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>');
68
+ --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>');
69
+ --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>');
70
+ --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>');
71
+ --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>');
72
+ --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>');
73
+ }
74
+
75
+ :host > * {
76
+ /* CODE */
77
+ --md-code-fg-color: ${g.palette.text.primary};
78
+ --md-code-bg-color: ${g.palette.background.paper};
79
+ --md-code-hl-color: ${(0,re.X4)(g.palette.warning.main,.5)};
80
+ --md-code-hl-keyword-color: ${g.palette.type==="dark"?g.palette.primary.light:g.palette.primary.dark};
81
+ --md-code-hl-function-color: ${g.palette.type==="dark"?g.palette.secondary.light:g.palette.secondary.dark};
82
+ --md-code-hl-string-color: ${g.palette.type==="dark"?g.palette.success.light:g.palette.success.dark};
83
+ --md-code-hl-number-color: ${g.palette.type==="dark"?g.palette.error.light:g.palette.error.dark};
84
+ --md-code-hl-constant-color: var(--md-code-hl-function-color);
85
+ --md-code-hl-special-color: var(--md-code-hl-function-color);
86
+ --md-code-hl-name-color: var(--md-code-fg-color);
87
+ --md-code-hl-comment-color: var(--md-default-fg-color--light);
88
+ --md-code-hl-generic-color: var(--md-default-fg-color--light);
89
+ --md-code-hl-variable-color: var(--md-default-fg-color--light);
90
+ --md-code-hl-operator-color: var(--md-default-fg-color--light);
91
+ --md-code-hl-punctuation-color: var(--md-default-fg-color--light);
92
+
93
+ /* TYPESET */
94
+ --md-typeset-font-size: 1rem;
95
+ --md-typeset-color: var(--md-default-fg-color);
96
+ --md-typeset-a-color: ${g.palette.link};
97
+ --md-typeset-table-color: ${g.palette.text.primary};
98
+ --md-typeset-del-color: ${g.palette.type==="dark"?(0,re.X4)(g.palette.error.dark,.5):(0,re.X4)(g.palette.error.light,.5)};
99
+ --md-typeset-ins-color: ${g.palette.type==="dark"?(0,re.X4)(g.palette.success.dark,.5):(0,re.X4)(g.palette.success.light,.5)};
100
+ --md-typeset-mark-color: ${g.palette.type==="dark"?(0,re.X4)(g.palette.warning.dark,.5):(0,re.X4)(g.palette.warning.light,.5)};
101
+ }
102
+
103
+ @media screen and (max-width: 76.1875em) {
104
+ :host > * {
105
+ /* TYPESET */
106
+ --md-typeset-font-size: .9rem;
107
+ }
108
+ }
109
+
110
+ @media screen and (max-width: 600px) {
111
+ :host > * {
112
+ /* TYPESET */
113
+ --md-typeset-font-size: .7rem;
114
+ }
115
+ }
116
+ `,Vn=({theme:g})=>`
117
+ /*================== Reset ==================*/
118
+
119
+ body {
120
+ --md-text-color: var(--md-default-fg-color);
121
+ --md-text-link-color: var(--md-accent-fg-color);
122
+ --md-text-font-family: ${g.typography.fontFamily};
123
+ font-family: var(--md-text-font-family);
124
+ background-color: unset;
125
+ }
126
+ `;const dn="224px";var Le=({theme:g,sidebar:R})=>`
127
+ /*================== Layout ==================*/
128
+
129
+ /* mkdocs material v9 compat */
130
+ .md-nav__title {
131
+ color: var(--md-default-fg-color);
132
+ }
133
+
134
+ .md-grid {
135
+ max-width: 100%;
136
+ margin: 0;
137
+ }
138
+
139
+ .md-nav {
140
+ font-size: calc(var(--md-typeset-font-size) * 0.9);
141
+ }
142
+ .md-nav__link {
143
+ display: flex;
144
+ align-items: center;
145
+ justify-content: space-between;
146
+ }
147
+ .md-nav__icon {
148
+ height: 20px !important;
149
+ width: 20px !important;
150
+ margin-left:${g.spacing(1)}px;
151
+ }
152
+ .md-nav__icon svg {
153
+ margin: 0;
154
+ width: 20px !important;
155
+ height: 20px !important;
156
+ }
157
+ .md-nav__icon:after {
158
+ width: 20px !important;
159
+ height: 20px !important;
160
+ }
161
+
162
+ .md-nav__item--active > .md-nav__link, a.md-nav__link--active {
163
+ text-decoration: underline;
164
+ color: var(--md-typeset-a-color);
165
+ }
166
+
167
+ .md-main__inner {
168
+ margin-top: 0;
169
+ }
170
+
171
+ .md-sidebar {
172
+ bottom: 75px;
173
+ position: fixed;
174
+ width: 16rem;
175
+ overflow-y: auto;
176
+ overflow-x: hidden;
177
+ scrollbar-color: rgb(193, 193, 193) #eee;
178
+ scrollbar-width: thin;
179
+ }
180
+ .md-sidebar .md-sidebar__scrollwrap {
181
+ width: calc(12.1rem);
182
+ }
183
+ .md-sidebar--secondary {
184
+ right: ${g.spacing(3)}px;
185
+ }
186
+ .md-sidebar::-webkit-scrollbar {
187
+ width: 5px;
188
+ }
189
+ .md-sidebar::-webkit-scrollbar-button {
190
+ width: 5px;
191
+ height: 5px;
192
+ }
193
+ .md-sidebar::-webkit-scrollbar-track {
194
+ background: #eee;
195
+ border: 1 px solid rgb(250, 250, 250);
196
+ box-shadow: 0px 0px 3px #dfdfdf inset;
197
+ border-radius: 3px;
198
+ }
199
+ .md-sidebar::-webkit-scrollbar-thumb {
200
+ width: 5px;
201
+ background: rgb(193, 193, 193);
202
+ border: transparent;
203
+ border-radius: 3px;
204
+ }
205
+ .md-sidebar::-webkit-scrollbar-thumb:hover {
206
+ background: rgb(125, 125, 125);
207
+ }
208
+
209
+ .md-content {
210
+ max-width: calc(100% - 16rem * 2);
211
+ margin-left: 16rem;
212
+ margin-bottom: 50px;
213
+ }
214
+
215
+ .md-footer {
216
+ position: fixed;
217
+ bottom: 0px;
218
+ pointer-events: none;
219
+ }
220
+
221
+ .md-footer-nav__link, .md-footer__link {
222
+ pointer-events: all;
223
+ }
224
+
225
+ .md-footer__title {
226
+ background-color: unset;
227
+ }
228
+ .md-footer-nav__link, .md-footer__link {
229
+ width: 16rem;
230
+ }
231
+
232
+ .md-dialog {
233
+ background-color: unset;
234
+ }
235
+
236
+ @media screen and (min-width: 76.25em) {
237
+ .md-sidebar {
238
+ height: auto;
239
+ }
240
+ }
241
+
242
+ @media screen and (max-width: 76.1875em) {
243
+ .md-nav {
244
+ transition: none !important;
245
+ background-color: var(--md-default-bg-color)
246
+ }
247
+ .md-nav--primary .md-nav__title {
248
+ cursor: auto;
249
+ color: var(--md-default-fg-color);
250
+ font-weight: 700;
251
+ white-space: normal;
252
+ line-height: 1rem;
253
+ height: auto;
254
+ display: flex;
255
+ flex-flow: column;
256
+ row-gap: 1.6rem;
257
+ padding: 1.2rem .8rem .8rem;
258
+ background-color: var(--md-default-bg-color);
259
+ }
260
+ .md-nav--primary .md-nav__title~.md-nav__list {
261
+ box-shadow: none;
262
+ }
263
+ .md-nav--primary .md-nav__title ~ .md-nav__list > :first-child {
264
+ border-top: none;
265
+ }
266
+ .md-nav--primary .md-nav__title .md-nav__button {
267
+ display: none;
268
+ }
269
+ .md-nav--primary .md-nav__title .md-nav__icon {
270
+ color: var(--md-default-fg-color);
271
+ position: static;
272
+ height: auto;
273
+ margin: 0 0 0 -0.2rem;
274
+ }
275
+ .md-nav--primary > .md-nav__title [for="none"] {
276
+ padding-top: 0;
277
+ }
278
+ .md-nav--primary .md-nav__item {
279
+ border-top: none;
280
+ }
281
+ .md-nav--primary :is(.md-nav__title,.md-nav__item) {
282
+ font-size : var(--md-typeset-font-size);
283
+ }
284
+ .md-nav .md-source {
285
+ display: none;
286
+ }
287
+
288
+ .md-sidebar {
289
+ height: 100%;
290
+ }
291
+ .md-sidebar--primary {
292
+ width: 12.1rem !important;
293
+ z-index: 200;
294
+ left: ${R.isPinned?`calc(-12.1rem + ${dn})`:"calc(-12.1rem + 72px)"} !important;
295
+ }
296
+ .md-sidebar--secondary:not([hidden]) {
297
+ display: none;
298
+ }
299
+
300
+ .md-content {
301
+ max-width: 100%;
302
+ margin-left: 0;
303
+ }
304
+
305
+ .md-header__button {
306
+ margin: 0.4rem 0;
307
+ margin-left: 0.4rem;
308
+ padding: 0;
309
+ }
310
+
311
+ .md-overlay {
312
+ left: 0;
313
+ }
314
+
315
+ .md-footer {
316
+ position: static;
317
+ padding-left: 0;
318
+ }
319
+ .md-footer-nav__link {
320
+ /* footer links begin to overlap at small sizes without setting width */
321
+ width: 50%;
322
+ }
323
+ }
324
+
325
+ @media screen and (max-width: 600px) {
326
+ .md-sidebar--primary {
327
+ left: -12.1rem !important;
328
+ width: 12.1rem;
329
+ }
330
+ }
331
+
332
+
333
+ @media print {
334
+ .md-sidebar,
335
+ #toggle-sidebar {
336
+ display: none;
337
+ }
338
+
339
+ .md-content {
340
+ margin: 0;
341
+ width: 100%;
342
+ max-width: 100%;
343
+ }
344
+ }
345
+ `;const wo=["h1","h2","h3","h4","h5","h6"];var tn=({theme:g})=>`
346
+ /*================== Typeset ==================*/
347
+
348
+ .md-typeset {
349
+ font-size: var(--md-typeset-font-size);
350
+ }
351
+
352
+ ${wo.reduce((R,F)=>{var $;const Q=($=g.typography.htmlFontSize)!==null&&$!==void 0?$:16,J=g.typography[F],{lineHeight:at,fontFamily:Ct,fontWeight:Bt,fontSize:Wt}=J,Qt=zt=>{let It=1;return typeof zt=="number"&&(It=zt/Q*.6),typeof zt=="string"&&(It=zt.replace("rem","")),`calc(${It} * var(--md-typeset-font-size))`};return R.concat(`
353
+ .md-typeset ${F} {
354
+ color: var(--md-default-fg-color);
355
+ line-height: ${at};
356
+ font-family: ${Ct};
357
+ font-weight: ${Bt};
358
+ font-size: ${Qt(Wt)};
359
+ }
360
+ `)},"")}
361
+
362
+ .md-typeset .md-content__button {
363
+ color: var(--md-default-fg-color);
364
+ }
365
+
366
+ .md-typeset hr {
367
+ border-bottom: 0.05rem dotted ${g.palette.divider};
368
+ }
369
+
370
+ .md-typeset details {
371
+ font-size: var(--md-typeset-font-size) !important;
372
+ }
373
+ .md-typeset details summary {
374
+ padding-left: 2.5rem !important;
375
+ }
376
+ .md-typeset details summary:before,
377
+ .md-typeset details summary:after {
378
+ top: 50% !important;
379
+ width: 20px !important;
380
+ height: 20px !important;
381
+ transform: rotate(0deg) translateY(-50%) !important;
382
+ }
383
+ .md-typeset details[open] > summary:after {
384
+ transform: rotate(90deg) translateX(-50%) !important;
385
+ }
386
+
387
+ .md-typeset blockquote {
388
+ color: var(--md-default-fg-color--light);
389
+ border-left: 0.2rem solid var(--md-default-fg-color--light);
390
+ }
391
+
392
+ .md-typeset table:not([class]) {
393
+ font-size: var(--md-typeset-font-size);
394
+ border: 1px solid var(--md-default-fg-color);
395
+ border-bottom: none;
396
+ border-collapse: collapse;
397
+ }
398
+ .md-typeset table:not([class]) th {
399
+ font-weight: bold;
400
+ }
401
+ .md-typeset table:not([class]) td, .md-typeset table:not([class]) th {
402
+ border-bottom: 1px solid var(--md-default-fg-color);
403
+ }
404
+
405
+ .md-typeset pre > code::-webkit-scrollbar-thumb {
406
+ background-color: hsla(0, 0%, 0%, 0.32);
407
+ }
408
+ .md-typeset pre > code::-webkit-scrollbar-thumb:hover {
409
+ background-color: hsla(0, 0%, 0%, 0.87);
410
+ }
411
+
412
+ .md-typeset code {
413
+ word-break: keep-all;
414
+ }
415
+ `,Po=()=>`
416
+ /*================== Animations ==================*/
417
+ /*
418
+ Disable CSS animations on link colors as they lead to issues in dark mode.
419
+ The dark mode color theme is applied later and theirfore there is always an animation from light to dark mode when navigation between pages.
420
+ */
421
+ .md-dialog, .md-nav__link, .md-footer__link, .md-typeset a, .md-typeset a::before, .md-typeset .headerlink {
422
+ transition: none;
423
+ }
424
+ `,Gn=({theme:g})=>`
425
+ /*================== Extensions ==================*/
426
+
427
+ /* HIGHLIGHT */
428
+ .highlight .md-clipboard:after {
429
+ content: unset;
430
+ }
431
+
432
+ .highlight .nx {
433
+ color: ${g.palette.type==="dark"?"#ff53a3":"#ec407a"};
434
+ }
435
+
436
+ /* CODE HILITE */
437
+ .codehilite .gd {
438
+ background-color: ${g.palette.type==="dark"?"rgba(248,81,73,0.65)":"#fdd"};
439
+ }
440
+
441
+ .codehilite .gi {
442
+ background-color: ${g.palette.type==="dark"?"rgba(46,160,67,0.65)":"#dfd"};
443
+ }
444
+
445
+ /* TABBED */
446
+ .tabbed-set>input:nth-child(1):checked~.tabbed-labels>:nth-child(1),
447
+ .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),
448
+ .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),
449
+ .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),
450
+ .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),
451
+ .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),
452
+ .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),
453
+ .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),
454
+ .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9),
455
+ .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),
456
+ .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),
457
+ .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),
458
+ .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),
459
+ .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),
460
+ .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),
461
+ .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),
462
+ .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),
463
+ .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),
464
+ .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),
465
+ .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20) {
466
+ color: var(--md-accent-fg-color);
467
+ border-color: var(--md-accent-fg-color);
468
+ }
469
+
470
+ /* TASK-LIST */
471
+ .task-list-control .task-list-indicator::before {
472
+ background-color: ${g.palette.action.disabledBackground};
473
+ }
474
+ .task-list-control [type="checkbox"]:checked + .task-list-indicator:before {
475
+ background-color: ${g.palette.success.main};
476
+ }
477
+
478
+ /* ADMONITION */
479
+ .admonition {
480
+ font-size: var(--md-typeset-font-size) !important;
481
+ }
482
+ .admonition .admonition-title {
483
+ padding-left: 2.5rem !important;
484
+ }
485
+
486
+ .admonition .admonition-title:before {
487
+ top: 50% !important;
488
+ width: 20px !important;
489
+ height: 20px !important;
490
+ transform: translateY(-50%) !important;
491
+ }
492
+ `;const To=[Ve,Vn,Le,tn,Po,Gn],Zt=()=>(0,De.Ut)(),en=()=>{const g=Zt(),R=(0,M.A)();return(0,i.useMemo)(()=>{const F={theme:R,sidebar:g};return To.reduce(($,Q)=>$+Q(F),"")},[R,g])},gn=()=>{const g=en();return(0,i.useCallback)(R=>(R.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${g}</style>`),R),[g])},Yn=async(g,R)=>{let F;if(typeof g=="string")F=new DOMParser().parseFromString(g,"text/html").documentElement;else if(g instanceof Element)F=g;else throw new Error("dom is not a recognized type");for(const $ of R)F=await $(F);return F},Ro=(g,R,F)=>{const $=g==="src"&&R.endsWith(".svg"),Q=!R.match(/^([a-z]*:)?\/\//i),J=R.startsWith(F);return $&&(Q||J)},Io=({techdocsStorageApi:g,entityId:R,path:F})=>async $=>{const Q=await g.getApiOrigin(),J=async(at,Ct)=>{for(const Bt of at)if(Bt.hasAttribute(Ct)){const Wt=Bt.getAttribute(Ct);if(!Wt)return;const Qt=await g.getBaseUrl(Wt,R,F);if(Ro(Ct,Wt,Q))try{const It=await(await fetch(Qt,{credentials:"include"})).text();Bt.setAttribute(Ct,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(It)))}`)}catch{Bt.setAttribute("alt",`Error: ${Wt}`)}else Bt.setAttribute(Ct,Qt)}};return await Promise.all([J($.querySelectorAll("img"),"src"),J($.querySelectorAll("script"),"src"),J($.querySelectorAll("source"),"src"),J($.querySelectorAll("link"),"href"),J($.querySelectorAll("a[download]"),"href")]),$},Do=()=>g=>(((F,$)=>{Array.from(F).filter(Q=>Q.hasAttribute($)).forEach(Q=>{const J=Q.getAttribute($);if(J){J.match(/^https?:\/\//i)&&Q.setAttribute("target","_blank");try{const at=On(window.location.href);Q.setAttribute($,new URL(J,at).toString())}catch{Q.replaceWith(Q.textContent||J)}}})})(Array.from(g.getElementsByTagName("a")),"href"),g);function On(g){const R=new URL(g);return!R.pathname.endsWith("/")&&!R.pathname.endsWith(".html")&&(R.pathname+="/"),R.toString()}var Lo=t(27326);let wn;wn=Promise.resolve().then(t.t.bind(t,25873,19));function Pn(g,R){wn.then(F=>{"createRoot"in F?F.createRoot(R).render(g):F.render(g,R)})}const Qn=()=>g=>{const R=g.querySelector('.md-header label[for="__drawer"]'),F=g.querySelector("article");if(!R||!F)return g;const $=R.cloneNode();return Pn(i.createElement(Lo.A),$),$.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"),F==null||F.prepend($),g},Mo=()=>g=>{var R;return(R=g.querySelector(".md-header"))===null||R===void 0||R.remove(),g},jo=()=>g=>{var R,F;return(R=g.querySelector(".md-footer .md-copyright"))===null||R===void 0||R.remove(),(F=g.querySelector(".md-footer-copyright"))===null||F===void 0||F.remove(),g};var Bo=t(36021),Uo=t(90292),Fo=t(52536),$o=t.n(Fo);const No=g=>R=>{var F;const $=R.querySelector('[title="Edit this page"]');if(!$||!$.href)return R;const Q=new URL($.href),J=g.byUrl(Q);if((J==null?void 0:J.type)!=="github"&&(J==null?void 0:J.type)!=="gitlab")return R;const at=((F=R.querySelector("article>h1"))===null||F===void 0?void 0:F.childNodes[0].textContent)||"",Ct=encodeURIComponent(`Documentation Feedback: ${at}`),Bt=encodeURIComponent(`Page source:
493
+ ${$.href}
494
+
495
+ Feedback:`),Wt=(J==null?void 0:J.type)==="github"?(0,Bo.F)(Q.href,"blob"):Q.href,Qt=$o()(Wt),zt=`/${Qt.organization}/${Qt.name}`,It=$.cloneNode();switch(J==null?void 0:J.type){case"gitlab":It.href=`${Q.origin}${zt}/issues/new?issue[title]=${Ct}&issue[description]=${Bt}`;break;case"github":It.href=`${Q.origin}${zt}/issues/new?title=${Ct}&body=${Bt}`;break;default:return R}return Pn(i.createElement(Uo.A),It),It.style.paddingLeft="5px",It.title="Leave feedback for this page",It.id="git-feedback-link",$==null||$.insertAdjacentElement("beforebegin",It),R},Zn=()=>g=>(setTimeout(()=>{const R=g==null?void 0:g.querySelectorAll("li.md-nav__item--active");R.length!==0&&(R.forEach($=>{const Q=$==null?void 0:$.querySelector("input");Q!=null&&Q.checked||Q==null||Q.click()}),R[R.length-1].scrollIntoView())},200),g);var Wo=t(50868),ko=t(10437),Jn=t(71677),Xn=t(87051),Ko=t(36338);const Tn=(0,Xn.A)(g=>({tooltip:{fontSize:"inherit",color:g.palette.text.primary,margin:0,padding:g.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(Jn.Ay),Rn=()=>(0,o.jsx)(ko.A,{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"})}),zo=({text:g})=>{const[R,F]=(0,i.useState)(!1),[,$]=(0,Ko.A)(),Q=(0,i.useCallback)(()=>{$(g),F(!0)},[g,$]),J=(0,i.useCallback)(()=>{F(!1)},[F]);return(0,o.jsx)(Tn,{title:"Copied to clipboard",placement:"left",open:R,onClose:J,leaveDelay:1e3,children:(0,o.jsx)(ct.A,{style:{color:"inherit"},className:"md-clipboard md-icon",onClick:Q,children:(0,o.jsx)(Rn,{})})})},_n=g=>R=>{const F=R.querySelectorAll("pre > code");for(const Q of F){var $;const J=Q.textContent||"",at=document.createElement("div");Q==null||($=Q.parentElement)===null||$===void 0||$.prepend(at),Pn((0,o.jsx)(Wo.A,{theme:g,children:(0,o.jsx)(zo,{text:J})}),at)}return R},qn=({baseUrl:g,onClick:R})=>F=>(Array.from(F.getElementsByTagName("a")).forEach($=>{$.addEventListener("click",Q=>{const at=$.getAttribute("href");at&&at.startsWith(g)&&!$.hasAttribute("download")&&(Q.preventDefault(),R(Q,at))})}),F),to=({onLoading:g,onLoaded:R})=>F=>(g(),F.addEventListener(E,function $(){R(),F.removeEventListener(E,$)}),F);function Ho(g,R){const F=new URL(R),$=`${F.origin}${F.pathname.replace(/\/$/,"")}`,Q=g.replace($,"").replace(/^\/+/,""),J=new URL(`http://localhost/${Q}`);return`${J.pathname}${J.search}${J.hash}`}function Vo(){const g=(0,Nt.Zp)(),F=(0,X.gf)(et.U).getOptionalString("app.baseUrl");return(0,i.useCallback)(Q=>{let J=Q;if(F)try{J=Ho(Q,F)}catch{}g(J)},[g,F])}const Go="screen and (max-width: 76.1875em)",Yo=g=>{const R=Vo(),F=(0,M.A)(),$=(0,Fe.A)(Go),Q=Ce(),J=gn(),at=(0,H.s)(),Ct=(0,X.gf)(Ye.s),Bt=(0,X.gf)(f.Y),{state:Wt,path:Qt,content:zt}=ue(),[It,ce]=(0,i.useState)(null),me=u(It),Jt=(0,i.useCallback)(()=>{if(!It)return;It.querySelectorAll(".md-sidebar").forEach(Vt=>{if($)Vt.style.top="0px";else{var te;const je=(te=document)===null||te===void 0?void 0:te.querySelector(".techdocs-reader-page");var Ee;const se=(Ee=je==null?void 0:je.getBoundingClientRect().top)!==null&&Ee!==void 0?Ee:0;var Me;let Ln=(Me=It.getBoundingClientRect().top)!==null&&Me!==void 0?Me:0;const Mn=It.querySelector(".md-container > .md-tabs");var $e;const jn=($e=Mn==null?void 0:Mn.getBoundingClientRect().height)!==null&&$e!==void 0?$e:0;Ln<se&&(Ln=se);const oo=Math.max(Ln,0)+jn;Vt.style.top=`${oo}px`;const nn=It.querySelector(".md-container > .md-footer");var fe;const pn=(fe=nn==null?void 0:nn.getBoundingClientRect().top)!==null&&fe!==void 0?fe:window.innerHeight;Vt.style.height=`${pn-oo}px`}Vt.style.setProperty("opacity","1")})},[It,$]);(0,i.useEffect)(()=>(window.addEventListener("resize",Jt),window.addEventListener("scroll",Jt,!0),()=>{window.removeEventListener("resize",Jt),window.removeEventListener("scroll",Jt,!0)}),[It,Jt]);const Ht=(0,i.useCallback)(()=>{if(!It)return;const jt=It.querySelector(".md-footer");jt&&(jt.style.width=`${It.getBoundingClientRect().width}px`)},[It]);(0,i.useEffect)(()=>(window.addEventListener("resize",Ht),()=>{window.removeEventListener("resize",Ht)}),[It,Ht]),(0,i.useEffect)(()=>{me||(Ht(),Jt())},[Wt,me,Ht,Jt]);const ie=(0,i.useCallback)((jt,Vt)=>Yn(jt,[Q,Io({techdocsStorageApi:Ct,entityId:g,path:Vt}),Do(),Qn(),Mo(),jo(),No(Bt),J]),[g,Bt,Ct,Q,J]),ye=(0,i.useCallback)(async jt=>Yn(jt,[Zn(),_n(F),qn({baseUrl:window.location.origin,onClick:(Vt,te)=>{var Ee;const Me=Vt.ctrlKey||Vt.metaKey,$e=new URL(te),fe=((Ee=Vt.target)===null||Ee===void 0?void 0:Ee.innerText)||te,je=te.replace(window.location.origin,"");if(at.captureEvent("click",fe,{attributes:{to:je}}),$e.hash)if(Me)window.open(te,"_blank");else{var se;R(te),jt==null||(se=jt.querySelector(`[id="${$e.hash.slice(1)}"]`))===null||se===void 0||se.scrollIntoView()}else Me?window.open(te,"_blank"):R(te)}}),to({onLoading:()=>{},onLoaded:()=>{var Vt;(Vt=jt.querySelector(".md-nav__title"))===null||Vt===void 0||Vt.removeAttribute("for")}}),to({onLoading:()=>{Array.from(jt.querySelectorAll(".md-sidebar")).forEach(te=>{te.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[F,R,at]);return(0,i.useEffect)(()=>{if(!zt)return()=>{};let jt=!0;return ie(zt,Qt).then(async Vt=>{if(!(Vt!=null&&Vt.innerHTML)||!jt)return;window.scroll({top:0});const te=await ye(Vt);ce(te)}),()=>{jt=!1}},[zt,Qt,ie,ye]),It};var In=t(41883),Qo=t(72020),Dn=t(99730);const eo=()=>{const g=(0,Qo.YR)(),{shadowRoot:R}=(0,m.V)(),F=R==null?void 0:R.querySelector('[data-md-component="content"]'),$=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let Q=$==null?void 0:$.querySelector('[data-techdocs-addons-location="primary sidebar"]');Q||(Q=document.createElement("div"),Q.setAttribute("data-techdocs-addons-location","primary sidebar"),$==null||$.prepend(Q));const J=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let at=J==null?void 0:J.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return at||(at=document.createElement("div"),at.setAttribute("data-techdocs-addons-location","secondary sidebar"),J==null||J.prepend(at)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(In.A,{container:Q,children:g.renderComponentsByLocation(Dn.e.PrimarySidebar)}),(0,o.jsx)(In.A,{container:F,children:g.renderComponentsByLocation(Dn.e.Content)}),(0,o.jsx)(In.A,{container:at,children:g.renderComponentsByLocation(Dn.e.SecondarySidebar)})]})},no=(0,b.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Lt=He(g=>{var R;const{withSearch:F=!0,onReady:$}=g,Q=no(),{entityMetadata:{value:J,loading:at},entityRef:Ct,setShadowRoot:Bt}=(0,m.V)(),Wt=Yo(Ct),Qt=window.location.pathname,zt=window.location.hash,It=u(Wt),[ce]=P([`[id="${zt.slice(1)}"]`]);(0,i.useEffect)(()=>{if(!It)if(zt)ce&&ce.scrollIntoView();else{var Jt,Ht;(Ht=document)===null||Ht===void 0||(Jt=Ht.querySelector("header"))===null||Jt===void 0||Jt.scrollIntoView()}},[Qt,zt,ce,It]);const me=(0,i.useCallback)(Jt=>{Bt(Jt),$ instanceof Function&&$()},[Bt,$]);return at===!1&&!J?(0,o.jsx)(I.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Wt?(0,o.jsx)(A.U,{children:(0,o.jsxs)(d.A,{container:!0,children:[(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(Ie,{})}),F&&(0,o.jsx)(d.A,{className:Q.search,xs:"auto",item:!0,children:(0,o.jsx)(le,{entityId:Ct,entityTitle:J==null||(R=J.metadata)===null||R===void 0?void 0:R.title})}),(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(S,{element:Wt,onAppend:me,children:(0,o.jsx)(eo,{})})})]})}):(0,o.jsx)(A.U,{children:(0,o.jsx)(d.A,{container:!0,children:(0,o.jsx)(d.A,{xs:12,item:!0,children:(0,o.jsx)(Ie,{})})})})}),he=null},45061:function(Y,T,t){"use strict";t.d(T,{T:function(){return tt}});var o=t(31085),i=t(14041),d=t(93285),b=t(42899),m=t(4387),p=t(13660),h=t(72020),c=t(86892),y=t(99730),E=t(67871),O=t(8859),u=t(34428),S=t(51372),v=t(58837),D=t(268),P=t(72501),w=t(72072);const L=(0,v.A)(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,D.X4)(et.page.fontColor,.8),fontSize:et.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),I=({value:et,className:xt,typographyRootComponent:st})=>(0,o.jsx)(P.A,{component:st!=null?st:typeof et=="string"?"p":"span",className:xt,children:et});function A(et){const{label:xt,value:st,url:Pt,contentTypograpyRootComponent:ft}=et,mt=L(),lt=(0,o.jsx)(I,{className:mt.value,value:st||"<Unknown>",typographyRootComponent:ft});return(0,o.jsx)(b.A,{item:!0,children:(0,o.jsxs)(P.A,{component:"span",className:mt.root,children:[(0,o.jsx)(P.A,{className:mt.label,children:xt}),Pt?(0,o.jsx)(w.N_,{to:Pt,children:lt}):lt]})})}var z=t(69814),V=t(72427),q=t(65461),k=t(9222),W=t(45250),X=t(82779);const H=(0,o.jsx)(m.A,{animation:"wave",variant:"text",height:40}),tt=et=>{const{children:xt}=et,st=(0,h.YR)(),Pt=(0,V.gf)(q.U),{title:ft,setTitle:mt,subtitle:lt,setSubtitle:it,entityRef:vt,metadata:{value:_,loading:yt},entityMetadata:{value:gt,loading:ot}}=(0,c.V)();(0,i.useEffect)(()=>{_&&(mt(_.site_name),it(()=>{let{site_description:Ot}=_;return(!Ot||Ot==="None")&&(Ot=""),Ot}))},[_,mt,it]);const dt=Pt.getOptional("app.title")||"Backstage",ct=[ft,lt,dt].filter(Boolean).join(" | "),{locationMetadata:Tt,spec:Et}=gt||{},N=Et==null?void 0:Et.lifecycle,G=gt?(0,E.t)(gt,S.vv):[],pt=(0,k.S)(X.rQ)(),bt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A,{label:(0,W.capitalize)((gt==null?void 0:gt.kind)||"entity"),value:(0,o.jsx)(O.z,{color:"inherit",entityRef:vt,title:gt==null?void 0:gt.metadata.title,defaultKind:"Component"})}),G.length>0&&(0,o.jsx)(A,{label:"Owner",value:(0,o.jsx)(u.i,{color:"inherit",entityRefs:G,defaultKind:"group"})}),N?(0,o.jsx)(A,{label:"Lifecycle",value:String(N)}):null,Tt&&Tt.type!=="dir"&&Tt.type!=="file"?(0,o.jsx)(A,{label:"",value:(0,o.jsxs)(b.A,{container:!0,direction:"column",alignItems:"center",children:[(0,o.jsx)(b.A,{style:{padding:0},item:!0,children:(0,o.jsx)(p.A,{style:{marginTop:"-25px"}})}),(0,o.jsx)(b.A,{style:{padding:0},item:!0,children:"Source"})]}),url:Tt.target}):null]});return!ot&&gt===void 0||!yt&&_===void 0?null:(0,o.jsxs)(z.Y,{type:"Documentation",typeLink:pt,title:ft||H,subtitle:lt===""?void 0:lt||H,children:[(0,o.jsx)(d.A,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:ct})}),bt,xt,st.renderComponentsByLocation(y.e.Header)]})}},82779:function(Y,T,t){"use strict";t.d(T,{Oc:function(){return d},Ri:function(){return b},rQ:function(){return i}});var o=t(34569);const i=(0,o.H)({id:"techdocs:index-page"}),d=(0,o.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),b=(0,o.H)({id:"techdocs:catalog-reader-view"})},27698:function(Y,T,t){"use strict";t.r(T),t.d(T,{TechDocsSearchResultListItem:function(){return E}});var o=t(31085),i=t(14041),d=t(46423),b=t(5951),m=t(58837),p=t(72501),h=t(72072),c=t(70734);const y=(0,m.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),E=O=>{const{result:u,highlight:S,lineClamp:v=5,asListItem:D=!0,asLink:P=!0,title:w,icon:L}=O,I=y(),A=({children:q})=>P?(0,o.jsx)(h.N_,{noTrack:!0,to:u.location,children:q}):(0,o.jsx)(o.Fragment,{children:q}),z=()=>{const q=S!=null&&S.fields.title?(0,o.jsx)(c.e,{text:S.fields.title,preTag:S.preTag,postTag:S.postTag}):u.title,k=S!=null&&S.fields.entityTitle?(0,o.jsx)(c.e,{text:S.fields.entityTitle,preTag:S.preTag,postTag:S.postTag}):u.entityTitle,W=S!=null&&S.fields.name?(0,o.jsx)(c.e,{text:S.fields.name,preTag:S.preTag,postTag:S.postTag}):u.name;return u?(0,o.jsx)(b.A,{className:I.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(A,{children:w||(0,o.jsxs)(o.Fragment,{children:[q," | ",k!=null?k:W," docs"]})}),secondary:(0,o.jsx)(p.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:v,overflow:"hidden"},color:"textSecondary",variant:"body2",children:S!=null&&S.fields.text?(0,o.jsx)(c.e,{text:S.fields.text,preTag:S.preTag,postTag:S.postTag}):u.text})}):null},V=({children:q})=>D?(0,o.jsxs)(o.Fragment,{children:[L&&(0,o.jsx)(d.A,{children:typeof L=="function"?L(u):L}),(0,o.jsx)("div",{className:I.flexContainer,children:q})]}):(0,o.jsx)(o.Fragment,{children:q});return(0,o.jsx)(V,{children:(0,o.jsx)(z,{})})}},86973:function(){}},function(Y){var T=function(o){return Y(Y.s=o)};Y.O(0,[1751,235,1888,6587,2754,9669,1975,5042,7400,4121],function(){return T(56041)});var t=Y.O()}]);})();
496
+
497
+ //# sourceMappingURL=main.d92320cd.js.map