@techdocs/cli 0.8.8 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/index.cjs.js +1 -1
- package/dist/techdocs-preview-bundle/.config-schema.json +20 -0
- package/dist/techdocs-preview-bundle/index.html +1 -1
- package/dist/techdocs-preview-bundle/static/1553.ddfb7621.chunk.js +2 -0
- package/dist/techdocs-preview-bundle/static/{1553.d6c469d0.chunk.js.map → 1553.ddfb7621.chunk.js.map} +1 -1
- package/dist/techdocs-preview-bundle/static/1959.da6d366a.chunk.js +2 -0
- package/dist/techdocs-preview-bundle/static/{1959.e8b17392.chunk.js.map → 1959.da6d366a.chunk.js.map} +1 -1
- package/dist/techdocs-preview-bundle/static/390.869680c7.chunk.js +2 -0
- package/dist/techdocs-preview-bundle/static/{390.bec751d9.chunk.js.map → 390.869680c7.chunk.js.map} +1 -1
- package/dist/techdocs-preview-bundle/static/4022.28aef274.chunk.js +2 -0
- package/dist/techdocs-preview-bundle/static/{4022.9fd48756.chunk.js.map → 4022.28aef274.chunk.js.map} +1 -1
- package/dist/techdocs-preview-bundle/static/4960.25870a82.chunk.js +2 -0
- package/dist/techdocs-preview-bundle/static/{4960.72d48737.chunk.js.map → 4960.25870a82.chunk.js.map} +1 -1
- package/dist/techdocs-preview-bundle/static/6235.ae19aeb4.chunk.js +2 -0
- package/dist/techdocs-preview-bundle/static/{6235.c6038f55.chunk.js.map → 6235.ae19aeb4.chunk.js.map} +1 -1
- package/dist/techdocs-preview-bundle/static/{6650.c6449e3f.chunk.js → 6650.cf219dec.chunk.js} +2 -2
- package/dist/techdocs-preview-bundle/static/{6650.c6449e3f.chunk.js.map → 6650.cf219dec.chunk.js.map} +1 -1
- package/dist/techdocs-preview-bundle/static/8061.0c10d2ee.chunk.js +2 -0
- package/dist/techdocs-preview-bundle/static/{8061.16540ebf.chunk.js.map → 8061.0c10d2ee.chunk.js.map} +1 -1
- package/dist/techdocs-preview-bundle/static/{8718.5dc1c9b2.chunk.js → 8718.87c92dac.chunk.js} +1 -1
- package/dist/techdocs-preview-bundle/static/{8718.5dc1c9b2.chunk.js.map → 8718.87c92dac.chunk.js.map} +1 -1
- package/dist/techdocs-preview-bundle/static/8792.46f21e7d.chunk.js +2 -0
- package/dist/techdocs-preview-bundle/static/{8792.c0493394.chunk.js.map → 8792.46f21e7d.chunk.js.map} +1 -1
- package/dist/techdocs-preview-bundle/static/9028.fb060d2e.chunk.js +2 -0
- package/dist/techdocs-preview-bundle/static/{9028.de55c09a.chunk.js.map → 9028.fb060d2e.chunk.js.map} +1 -1
- package/dist/techdocs-preview-bundle/static/main.c65958ee.js +2 -0
- package/dist/techdocs-preview-bundle/static/main.c65958ee.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/module-lodash.5fc3fe8a.js +3 -0
- package/dist/techdocs-preview-bundle/static/{module-lodash.2161df9d.js.LICENSE.txt → module-lodash.5fc3fe8a.js.LICENSE.txt} +0 -0
- package/dist/techdocs-preview-bundle/static/module-lodash.5fc3fe8a.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/{runtime.b94cbfc7.js → runtime.c65958ee.js} +2 -2
- package/dist/techdocs-preview-bundle/static/runtime.c65958ee.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/vendor.c65958ee.js +3 -0
- package/dist/techdocs-preview-bundle/static/{vendor.b94cbfc7.js.LICENSE.txt → vendor.c65958ee.js.LICENSE.txt} +0 -0
- package/dist/techdocs-preview-bundle/static/{vendor.b94cbfc7.js.map → vendor.c65958ee.js.map} +1 -1
- package/package.json +6 -6
- package/dist/techdocs-preview-bundle/static/1553.d6c469d0.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/1959.e8b17392.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/390.bec751d9.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/4022.9fd48756.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/4960.72d48737.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/6105.f231cc00.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/6105.f231cc00.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/6235.c6038f55.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/8061.16540ebf.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/8792.c0493394.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/9028.de55c09a.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/main.b94cbfc7.js +0 -2
- package/dist/techdocs-preview-bundle/static/main.b94cbfc7.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/module-lodash.2161df9d.js +0 -3
- package/dist/techdocs-preview-bundle/static/module-lodash.2161df9d.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/runtime.b94cbfc7.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/vendor.b94cbfc7.js +0 -3
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunkembedded_techdocs_app=self.webpackChunkembedded_techdocs_app||[]).push([[179],{30001:function(e,t,n){"use strict";n.d(t,{n3:function(){return s},MS:function(){return c}});var r=n(52890),i=n(10179),a=n(96279),o=n.n(a);const s=Symbol("CATALOG_FILTER_EXISTS");class c{discoveryApi;fetchApi;constructor(e){this.discoveryApi=e.discoveryApi,this.fetchApi=e.fetchApi||{fetch:o()}}async getEntityAncestors(e,t){const{kind:n,namespace:i,name:a}=(0,r.of)(e.entityRef);return await this.requestRequired("GET",`/entities/by-name/${encodeURIComponent(n)}/${encodeURIComponent(i)}/${encodeURIComponent(a)}/ancestry`,t)}async getLocationById(e,t){return await this.requestOptional("GET",`/locations/${encodeURIComponent(e)}`,t)}async getEntities(e,t){const{filter:n=[],fields:i=[],offset:a,limit:o,after:c}=e??{},l=[n].flat(),u=[];for(const e of l){const t=[];for(const[n,r]of Object.entries(e))for(const e of[r].flat())e===s?t.push(encodeURIComponent(n)):"string"==typeof e&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(e)}`);t.length&&u.push(`filter=${t.join(",")}`)}i.length&&u.push(`fields=${i.map(encodeURIComponent).join(",")}`),void 0!==a&&u.push(`offset=${a}`),void 0!==o&&u.push(`limit=${o}`),void 0!==c&&u.push(`after=${encodeURIComponent(c)}`);const d=u.length?`?${u.join("&")}`:"";return{items:(await this.requestRequired("GET",`/entities${d}`,t)).sort(((e,t)=>{if(void 0===e.metadata?.name||void 0===e.kind||void 0===t.metadata?.name||void 0===t.kind)return 0;const n=(0,r.eE)(e),i=(0,r.eE)(t);return n<i?-1:n>i?1:0}))}}async getEntityByName(e,t){const{kind:n,namespace:r="default",name:i}=e;return this.requestOptional("GET",`/entities/by-name/${encodeURIComponent(n)}/${encodeURIComponent(r)}/${encodeURIComponent(i)}`,t)}async refreshEntity(e,t){const n=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/refresh`,{headers:{"Content-Type":"application/json",...t?.token&&{Authorization:`Bearer ${t?.token}`}},method:"POST",body:JSON.stringify({entityRef:e})});if(200!==n.status)throw new Error(await n.text())}async addLocation({type:e="url",target:t,dryRun:n,presence:r},i){const a=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/locations${n?"?dryRun=true":""}`,{headers:{"Content-Type":"application/json",...i?.token&&{Authorization:`Bearer ${i?.token}`}},method:"POST",body:JSON.stringify({type:e,target:t,presence:r})});if(201!==a.status)throw new Error(await a.text());const{location:o,entities:s,exists:c}=await a.json();if(!o)throw new Error(`Location wasn't added: ${t}`);return{location:o,entities:s,exists:c}}async getOriginLocationByEntity(e,t){const n=e.metadata.annotations?.[r.lb];if(n)return(await this.requestRequired("GET","/locations",t)).map((e=>e.data)).find((e=>n===(0,r.Bt)(e)))}async getLocationByEntity(e,t){const n=e.metadata.annotations?.[r.Jl];if(n)return(await this.requestRequired("GET","/locations",t)).map((e=>e.data)).find((e=>n===(0,r.Bt)(e)))}async removeLocationById(e,t){await this.requestIgnored("DELETE",`/locations/${encodeURIComponent(e)}`,t)}async removeEntityByUid(e,t){await this.requestIgnored("DELETE",`/entities/by-uid/${encodeURIComponent(e)}`,t)}async requestIgnored(e,t,n){const r=`${await this.discoveryApi.getBaseUrl("catalog")}${t}`,a=n?.token?{Authorization:`Bearer ${n.token}`}:{},o=await this.fetchApi.fetch(r,{method:e,headers:a});if(!o.ok)throw await i.VL.fromResponse(o)}async requestRequired(e,t,n){const r=`${await this.discoveryApi.getBaseUrl("catalog")}${t}`,a=n?.token?{Authorization:`Bearer ${n.token}`}:{},o=await this.fetchApi.fetch(r,{method:e,headers:a});if(!o.ok)throw await i.VL.fromResponse(o);return await o.json()}async requestOptional(e,t,n){const r=`${await this.discoveryApi.getBaseUrl("catalog")}${t}`,a=n?.token?{Authorization:`Bearer ${n.token}`}:{},o=await this.fetchApi.fetch(r,{method:e,headers:a});if(!o.ok){if(404===o.status)return;throw await i.VL.fromResponse(o)}return await o.json()}}},52890:function(e,t,n){"use strict";n.d(t,{J1:function(){return a},sk:function(){return r},Jl:function(){return L},lb:function(){return O},w$:function(){return C},nP:function(){return x},aS:function(){return Z},hr:function(){return F},S4:function(){return S},cz:function(){return T},M_:function(){return k},wX:function(){return P},wh:function(){return i},C_:function(){return v},of:function(){return b},Me:function(){return I},TH:function(){return E},eE:function(){return w},Bt:function(){return $}});const r="default",i="backstage.io/view-url",a="backstage.io/edit-url";var o=n(76635),s=n.n(o);class c{static isValidPrefixAndOrSuffix(e,t,n,r){if("string"!=typeof e)return!1;const i=e.split(t);return 1===i.length?r(i[0]):2===i.length&&n(i[0])&&r(i[1])}static isJsonSafe(e){try{return s().isEqual(e,JSON.parse(JSON.stringify(e)))}catch{return!1}}static isValidDnsSubdomain(e){return"string"==typeof e&&e.length>=1&&e.length<=253&&e.split(".").every(c.isValidDnsLabel)}static isValidDnsLabel(e){return"string"==typeof e&&e.length>=1&&e.length<=63&&/^[a-z0-9]+(\-[a-z0-9]+)*$/.test(e)}static isValidTag(e){return"string"==typeof e&&e.length>=1&&e.length<=63&&/^[a-z0-9+#]+(\-[a-z0-9+#]+)*$/.test(e)}static isValidUrl(e){if("string"!=typeof e)return!1;try{return new URL(e),!0}catch{return!1}}static isValidString(e){return"string"==typeof e&&e?.trim()?.length>=1}}var l=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"EntityEnvelope","description":"The envelope skeleton parts of an entity - whatever is necessary to be able to give it a ref and pass to further validation / policy checking.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Component","metadata":{"name":"LoremService"}}],"type":"object","required":["apiVersion","kind","metadata"],"additionalProperties":true,"properties":{"apiVersion":{"type":"string","description":"The version of specification format for this particular entity that this is written against.","minLength":1,"examples":["backstage.io/v1alpha1","my-company.net/v1","1.0"]},"kind":{"type":"string","description":"The high level entity type being described.","minLength":1,"examples":["API","Component","Domain","Group","Location","Resource","System","Template","User"]},"metadata":{"type":"object","required":["name"],"additionalProperties":true,"properties":{"name":{"type":"string","description":"The name of the entity. Must be unique within the catalog at any given point in time, for any given namespace + kind pair.","examples":["metadata-proxy"],"minLength":1},"namespace":{"type":"string","description":"The namespace that the entity belongs to.","default":"default","examples":["default","admin"],"minLength":1}}}}}'),u=n(48231),d=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"Entity","description":"The parts of the format that\'s common to all versions/kinds of entity.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Component","metadata":{"name":"LoremService","description":"Creates Lorems like a pro.","labels":{"product_name":"Random value Generator"},"annotations":{"docs":"https://github.com/..../tree/develop/doc"}},"spec":{"type":"service","lifecycle":"production","owner":"tools"}}],"type":"object","required":["apiVersion","kind","metadata"],"additionalProperties":false,"properties":{"apiVersion":{"type":"string","description":"The version of specification format for this particular entity that this is written against.","minLength":1,"examples":["backstage.io/v1alpha1","my-company.net/v1","1.0"]},"kind":{"type":"string","description":"The high level entity type being described.","minLength":1,"examples":["API","Component","Domain","Group","Location","Resource","System","Template","User"]},"metadata":{"$ref":"EntityMeta"},"spec":{"type":"object","description":"The specification data describing the entity itself."},"relations":{"type":"array","description":"The relations that this entity has with other entities.","items":{"$ref":"common#relation"}},"status":{"$ref":"common#status"}}}'),p=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"EntityMeta","description":"Metadata fields common to all versions/kinds of entity.","examples":[{"uid":"e01199ab-08cc-44c2-8e19-5c29ded82521","etag":"lsndfkjsndfkjnsdfkjnsd==","generation":13,"name":"my-component-yay","namespace":"the-namespace","labels":{"backstage.io/custom":"ValueStuff"},"annotations":{"example.com/bindings":"are-secret"},"tags":["java","data"]}],"type":"object","required":["name"],"additionalProperties":true,"properties":{"uid":{"type":"string","description":"A globally unique ID for the entity. This field can not be set by the user at creation time, and the server will reject an attempt to do so. The field will be populated in read operations. The field can (optionally) be specified when performing update or delete operations, but the server is free to reject requests that do so in such a way that it breaks semantics.","examples":["e01199ab-08cc-44c2-8e19-5c29ded82521"],"minLength":1},"etag":{"type":"string","description":"An opaque string that changes for each update operation to any part of the entity, including metadata. This field can not be set by the user at creation time, and the server will reject an attempt to do so. The field will be populated in read operations. The field can (optionally) be specified when performing update or delete operations, and the server will then reject the operation if it does not match the current stored value.","examples":["lsndfkjsndfkjnsdfkjnsd=="],"minLength":1},"generation":{"type":"integer","description":"A positive nonzero number that indicates the current generation of data for this entity; the value is incremented each time the spec changes. This field can not be set by the user at creation time, and the server will reject an attempt to do so. The field will be populated in read operations.","examples":[1],"minimum":1},"name":{"type":"string","description":"The name of the entity. Must be unique within the catalog at any given point in time, for any given namespace + kind pair.","examples":["metadata-proxy"],"minLength":1},"namespace":{"type":"string","description":"The namespace that the entity belongs to.","default":"default","examples":["default","admin"],"minLength":1},"title":{"type":"string","description":"A display name of the entity, to be presented in user interfaces instead of the name property, when available.","examples":["React SSR Template"],"minLength":1},"description":{"type":"string","description":"A short (typically relatively few words, on one line) description of the entity."},"labels":{"type":"object","description":"Key/value pairs of identifying information attached to the entity.","additionalProperties":true,"patternProperties":{"^.+$":{"type":"string"}}},"annotations":{"type":"object","description":"Key/value pairs of non-identifying auxiliary information attached to the entity.","additionalProperties":true,"patternProperties":{"^.+$":{"type":"string"}}},"tags":{"type":"array","description":"A list of single-valued strings, to for example classify catalog entities in various ways.","items":{"type":"string","minLength":1}},"links":{"type":"array","description":"A list of external hyperlinks related to the entity. Links can provide additional contextual information that may be located outside of Backstage itself. For example, an admin dashboard or external CMS page.","items":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"A url in a standard uri format.","examples":["https://admin.example-org.com"],"minLength":1},"title":{"type":"string","description":"A user friendly display name for the link.","examples":["Admin Dashboard"],"minLength":1},"icon":{"type":"string","description":"A key representing a visual icon to be displayed in the UI.","examples":["dashboard"],"minLength":1}}}}}}'),h=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"common","type":"object","description":"Common definitions to import from other schemas","definitions":{"reference":{"$id":"#reference","type":"object","description":"A reference by name to another entity.","required":["kind","namespace","name"],"additionalProperties":false,"properties":{"kind":{"type":"string","description":"The kind field of the entity.","minLength":1},"namespace":{"type":"string","description":"The metadata.namespace field of the entity.","minLength":1},"name":{"type":"string","description":"The metadata.name field of the entity.","minLength":1}}},"relation":{"$id":"#relation","type":"object","description":"A directed relation from one entity to another.","required":["type","target"],"additionalProperties":false,"properties":{"type":{"type":"string","minLength":1,"pattern":"^\\\\w+$","description":"The type of relation."},"target":{"$ref":"#reference"}}},"status":{"$id":"#status","type":"object","description":"The current status of the entity, as claimed by various sources.","required":[],"additionalProperties":true,"properties":{"items":{"type":"array","items":{"$ref":"#statusItem"}}}},"statusItem":{"$id":"#statusItem","type":"object","description":"A specific status item on a well known format.","required":["type","level","message"],"additionalProperties":true,"properties":{"type":{"type":"string","minLength":1},"level":{"$ref":"#statusLevel","description":"The status level / severity of the status item."},"message":{"type":"string","description":"A brief message describing the status, intended for human consumption."},"error":{"$ref":"#error","description":"An optional serialized error object related to the status."}}},"statusLevel":{"$id":"#statusLevel","type":"string","description":"A status level / severity.","enum":["info","warning","error"]},"error":{"$id":"#error","type":"object","description":"A serialized error object.","required":["name","message"],"additionalProperties":true,"properties":{"name":{"type":"string","examples":["Error","InputError"],"description":"The type name of the error","minLength":1},"message":{"type":"string","description":"The message of the error"},"code":{"type":"string","description":"An error code associated with the error"},"stack":{"type":"string","description":"An error stack trace"}}}}}');const f=new Map,m=[l,d,p,h];function*g(e){const t=[e];for(;t.length;){const e=t.pop();if("object"==typeof e&&e)for(const[n,r]of Object.entries(e))"$ref"===n&&"string"==typeof r?yield r.split("#")[0]:t.push(r)}}function y(e){const t=function(e,t={}){const n=t?.disableCache??!1,r=n?"":JSON.stringify(e);if(!n){const e=f.get(r);if(e)return e}const i=function(e){if("object"!=typeof e)return[];const t=new Set;e.$id&&t.add(e.$id);const n=new Array,r=[e];for(;r.length;){const e=r.pop();for(const i of g(e))if(!t.has(i)){t.add(i);const e=m.find((e=>e.$id===i));e&&(n.push(e),r.push(e))}}return n}(e),a=new u.ZP({allowUnionTypes:!0,allErrors:!0,validateSchema:!0});i.length&&a.addSchema(i,void 0,void 0,!0);const o=a.compile(e);return n||f.set(r,o),o}(e);return e=>{if(!0===t(e))return e;const n=t.errors?.filter((e=>["/kind","/apiVersion"].includes(e.dataPath)));if(n?.length&&n.every((e=>"enum"===e.keyword)))return!1;throw function(e){if(!e?.length)throw new TypeError("Unknown error");const t=e[0];throw new TypeError(`${t.dataPath||"<root>"} ${t.message}${t.params?` - ${Object.entries(t.params).map((([e,t])=>`${e}: ${t}`)).join(", ")}`:""}`)}(t.errors)}}class A{static isValidApiVersion(e){return c.isValidPrefixAndOrSuffix(e,"/",c.isValidDnsSubdomain,(e=>e.length>=1&&e.length<=63&&/^[a-z0-9A-Z]+$/.test(e)))}static isValidKind(e){return"string"==typeof e&&e.length>=1&&e.length<=63&&/^[a-zA-Z][a-z0-9A-Z]*$/.test(e)}static isValidObjectName(e){return"string"==typeof e&&e.length>=1&&e.length<=63&&/^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$/.test(e)}static isValidNamespace(e){return c.isValidDnsLabel(e)}static isValidLabelKey(e){return c.isValidPrefixAndOrSuffix(e,"/",c.isValidDnsSubdomain,A.isValidObjectName)}static isValidLabelValue(e){return""===e||A.isValidObjectName(e)}static isValidAnnotationKey(e){return c.isValidPrefixAndOrSuffix(e,"/",c.isValidDnsSubdomain,A.isValidObjectName)}static isValidAnnotationValue(e){return"string"==typeof e}}function v(e){return{kind:e.kind,namespace:e.metadata.namespace||r,name:e.metadata.name}}function b(e,t={}){if(!e)throw new Error("Entity reference must not be empty");if("string"==typeof e){const n=function(e){const t=/^([^:/]+:)?([^:/]+\/)?([^:/]+)$/.exec(e.trim());if(!t)throw new TypeError(`Entity reference "${e}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:t[1]?.slice(0,-1),namespace:t[2]?.slice(0,-1),name:t[3]}}(e);return{kind:n.kind??t.defaultKind,namespace:n.namespace??t.defaultNamespace,name:n.name}}const{kind:n,namespace:r,name:i}=e;if(""===n)throw new Error("Entity reference kinds must not be empty");if(""===r)throw new Error("Entity reference namespaces must not be empty");if(!i)throw new Error("Entity references must contain a name");return{kind:n??t.defaultKind,namespace:r??t.defaultNamespace,name:i}}function E(e){let t,n,r;return"metadata"in e?(t=e.kind,n=e.metadata.namespace,r=e.metadata.name):(t=e.kind,n=e.namespace,r=e.name),t?.includes(":")||t?.includes("/")||n?.includes(":")||n?.includes("/")||r.includes(":")||r.includes("/")?{kind:t,namespace:n,name:r}:`${t?`${t}:`:""}${n?`${n}/`:""}${r}`}function w(e){let t,n,i;return"metadata"in e?(t=e.kind,n=e.metadata.namespace??r,i=e.metadata.name):(t=e.kind,n=e.namespace??r,i=e.name),`${t.toLocaleLowerCase("en-US")}:${n.toLocaleLowerCase("en-US")}/${i.toLocaleLowerCase("en-US")}`}function R(e){const t=y(e);return{check:async e=>t(e)===e}}A.isValidApiVersion,A.isValidKind,A.isValidObjectName,A.isValidNamespace,A.isValidLabelKey,A.isValidLabelValue,A.isValidAnnotationKey,A.isValidAnnotationValue,c.isValidTag,n(48834).Buffer,R(JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"ApiV1alpha1","description":"An API describes an interface that can be exposed by a component. The API can be defined in different formats, like OpenAPI, AsyncAPI, GraphQL, gRPC, or other formats.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"API","metadata":{"name":"artist-api","description":"Retrieve artist details","labels":{"product_name":"Random value Generator"},"annotations":{"docs":"https://github.com/..../tree/develop/doc"}},"spec":{"type":"openapi","lifecycle":"production","owner":"artist-relations-team","system":"artist-engagement-portal","definition":"openapi: \\"3.0.0\\"\\ninfo:..."}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["API"]},"spec":{"type":"object","required":["type","lifecycle","owner","definition"],"properties":{"type":{"type":"string","description":"The type of the API definition.","examples":["openapi","asyncapi","graphql","grpc"],"minLength":1},"lifecycle":{"type":"string","description":"The lifecycle state of the API.","examples":["experimental","production","deprecated"],"minLength":1},"owner":{"type":"string","description":"An entity reference to the owner of the API.","examples":["artist-relations-team","user:john.johnson"],"minLength":1},"system":{"type":"string","description":"An entity reference to the system that the API belongs to.","minLength":1},"definition":{"type":"string","description":"The definition of the API, based on the format defined by the type.","minLength":1}}}}}]}')),R(JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"ComponentV1alpha1","description":"A Component describes a software component. It is typically intimately linked to the source code that constitutes the component, and should be what a developer may regard a \\"unit of software\\", usually with a distinct deployable or linkable artifact.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Component","metadata":{"name":"LoremService","description":"Creates Lorems like a pro.","labels":{"product_name":"Random value Generator"},"annotations":{"docs":"https://github.com/..../tree/develop/doc"}},"spec":{"type":"service","lifecycle":"production","owner":"tools"}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["Component"]},"spec":{"type":"object","required":["type","lifecycle","owner"],"properties":{"type":{"type":"string","description":"The type of component.","examples":["service","website","library"],"minLength":1},"lifecycle":{"type":"string","description":"The lifecycle state of the component.","examples":["experimental","production","deprecated"],"minLength":1},"owner":{"type":"string","description":"An entity reference to the owner of the component.","examples":["artist-relations-team","user:john.johnson"],"minLength":1},"system":{"type":"string","description":"An entity reference to the system that the component belongs to.","minLength":1},"subcomponentOf":{"type":"string","description":"An entity reference to another component of which the component is a part.","minLength":1},"providesApis":{"type":"array","description":"An array of entity references to the APIs that are provided by the component.","items":{"type":"string","minLength":1}},"consumesApis":{"type":"array","description":"An array of entity references to the APIs that are consumed by the component.","items":{"type":"string","minLength":1}},"dependsOn":{"type":"array","description":"An array of references to other entities that the component depends on to function.","items":{"type":"string","minLength":1}}}}}}]}')),R(JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"DomainV1alpha1","description":"A Domain groups a collection of systems that share terminology, domain models, business purpose, or documentation, i.e. form a bounded context.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Domain","metadata":{"name":"artists","description":"Everything about artists"},"spec":{"owner":"artist-relations-team"}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["Domain"]},"spec":{"type":"object","required":["owner"],"properties":{"owner":{"type":"string","description":"An entity reference to the owner of the component.","examples":["artist-relations-team","user:john.johnson"],"minLength":1}}}}}]}')),R(JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"GroupV1alpha1","description":"A group describes an organizational entity, such as for example a team, a business unit, or a loose collection of people in an interest group. Members of these groups are modeled in the catalog as kind User.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Group","metadata":{"name":"infrastructure","description":"The infra business unit"},"spec":{"type":"business-unit","profile":{"displayName":"Infrastructure","email":"infrastructure@example.com","picture":"https://example.com/groups/bu-infrastructure.jpeg"},"parent":"ops","children":["backstage","other"]}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["Group"]},"spec":{"type":"object","required":["type","children"],"properties":{"type":{"type":"string","description":"The type of group. There is currently no enforced set of values for this field, so it is left up to the adopting organization to choose a nomenclature that matches their org hierarchy.","examples":["team","business-unit","product-area","root"],"minLength":1},"profile":{"type":"object","description":"Optional profile information about the group, mainly for display purposes. All fields of this structure are also optional. The email would be a group email of some form, that the group may wish to be used for contacting them. The picture is expected to be a URL pointing to an image that\'s representative of the group, and that a browser could fetch and render on a group page or similar.","properties":{"displayName":{"type":"string","description":"A simple display name to present to users.","examples":["Infrastructure"],"minLength":1},"email":{"type":"string","description":"An email where this entity can be reached.","examples":["infrastructure@example.com"],"minLength":1},"picture":{"type":"string","description":"The URL of an image that represents this entity.","examples":["https://example.com/groups/bu-infrastructure.jpeg"],"minLength":1}}},"parent":{"type":"string","description":"The immediate parent group in the hierarchy, if any. Not all groups must have a parent; the catalog supports multi-root hierarchies. Groups may however not have more than one parent. This field is an entity reference.","examples":["ops"],"minLength":1},"children":{"type":"array","description":"The immediate child groups of this group in the hierarchy (whose parent field points to this group). The list must be present, but may be empty if there are no child groups. The items are not guaranteed to be ordered in any particular way. The entries of this array are entity references.","items":{"type":"string","examples":["backstage","other"],"minLength":1}},"members":{"type":"array","description":"The users that are members of this group. The entries of this array are entity references.","items":{"type":"string","examples":["jdoe"],"minLength":1}}}}}}]}')),R(JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"LocationV1alpha1","description":"A location is a marker that references other places to look for catalog data.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Location","metadata":{"name":"org-data"},"spec":{"type":"url","targets":["http://github.com/myorg/myproject/org-data-dump/catalog-info-staff.yaml","http://github.com/myorg/myproject/org-data-dump/catalog-info-consultants.yaml"]}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["Location"]},"spec":{"type":"object","required":[],"properties":{"type":{"type":"string","description":"The single location type, that\'s common to the targets specified in the spec. If it is left out, it is inherited from the location type that originally read the entity data.","examples":["url"],"minLength":1},"target":{"type":"string","description":"A single target as a string. Can be either an absolute path/URL (depending on the type), or a relative path such as ./details/catalog-info.yaml which is resolved relative to the location of this Location entity itself.","examples":["./details/catalog-info.yaml"],"minLength":1},"targets":{"type":"array","description":"A list of targets as strings. They can all be either absolute paths/URLs (depending on the type), or relative paths such as ./details/catalog-info.yaml which are resolved relative to the location of this Location entity itself.","items":{"type":"string","examples":["./details/catalog-info.yaml","http://github.com/myorg/myproject/org-data-dump/catalog-info-staff.yaml"],"minLength":1}},"presence":{"type":"string","description":"Whether the presence of the location target is required and it should be considered an error if it can not be found","default":"required","examples":["required"],"enum":["required","optional"]}}}}}]}'));const S="ownedBy",k="providesApi",x="dependsOn",C="dependencyOf",F="memberOf",T="partOf",Z="hasPart";R(JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"ResourceV1alpha1","description":"A resource describes the infrastructure a system needs to operate, like BigTable databases, Pub/Sub topics, S3 buckets or CDNs. Modelling them together with components and systems allows to visualize resource footprint, and create tooling around them.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Resource","metadata":{"name":"artists-db","description":"Stores artist details"},"spec":{"type":"database","owner":"artist-relations-team","system":"artist-engagement-portal"}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["Resource"]},"spec":{"type":"object","required":["type","owner"],"properties":{"type":{"type":"string","description":"The type of resource.","examples":["database","s3-bucket","cluster"],"minLength":1},"owner":{"type":"string","description":"An entity reference to the owner of the resource.","examples":["artist-relations-team","user:john.johnson"],"minLength":1},"dependsOn":{"type":"array","description":"An array of references to other entities that the resource depends on to function.","items":{"type":"string","minLength":1}},"system":{"type":"string","description":"An entity reference to the system that the resource belongs to.","minLength":1}}}}}]}')),R(JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"SystemV1alpha1","description":"A system is a collection of resources and components. The system may expose or consume one or several APIs. It is viewed as abstraction level that provides potential consumers insights into exposed features without needing a too detailed view into the details of all components. This also gives the owning team the possibility to decide about published artifacts and APIs.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"System","metadata":{"name":"artist-engagement-portal","description":"Handy tools to keep artists in the loop"},"spec":{"owner":"artist-relations-team","domain":"artists"}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["System"]},"spec":{"type":"object","required":["owner"],"properties":{"owner":{"type":"string","description":"An entity reference to the owner of the component.","examples":["artist-relations-team","user:john.johnson"],"minLength":1},"domain":{"type":"string","description":"An entity reference to the domain that the system belongs to.","examples":["artists"],"minLength":1}}}}}]}')),R(JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"TemplateV1beta2","description":"A Template describes a scaffolding task for use with the Scaffolder. It describes the required parameters as well as a series of steps that will be taken to execute the scaffolding task.","examples":[{"apiVersion":"backstage.io/v1beta2","kind":"Template","metadata":{"name":"react-ssr-template","title":"React SSR Template","description":"Next.js application skeleton for creating isomorphic web applications.","tags":["recommended","react"]},"spec":{"owner":"artist-relations-team","type":"website","parameters":{"required":["name","description"],"properties":{"name":{"title":"Name","type":"string","description":"Unique name of the component"},"description":{"title":"Description","type":"string","description":"Description of the component"}}},"steps":[{"id":"fetch","name":"Fetch","action":"fetch:plain","parameters":{"url":"./template"}},{"id":"publish","name":"Publish to GitHub","action":"publish:github","parameters":{"repoUrl":"{{ parameters.repoUrl }}"},"if":"{{ parameters.repoUrl }}"}],"output":{"catalogInfoUrl":"{{ steps.publish.output.catalogInfoUrl }}"}}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1beta2"]},"kind":{"enum":["Template"]},"spec":{"type":"object","required":["type","steps"],"properties":{"type":{"type":"string","description":"The type of component created by the template. The software catalog accepts any type value, but an organization should take great care to establish a proper taxonomy for these. Tools including Backstage itself may read this field and behave differently depending on its value. For example, a website type component may present tooling in the Backstage interface that is specific to just websites.","examples":["service","website","library"],"minLength":1},"parameters":{"oneOf":[{"type":"object","description":"The JSONSchema describing the inputs for the template."},{"type":"array","description":"A list of separate forms to collect parameters.","items":{"type":"object","description":"The JSONSchema describing the inputs for the template."}}]},"steps":{"type":"array","description":"A list of steps to execute.","items":{"type":"object","description":"A description of the step to execute.","required":["action"],"properties":{"id":{"type":"string","description":"The ID of the step, which can be used to refer to its outputs."},"name":{"type":"string","description":"The name of the step, which will be displayed in the UI during the scaffolding process."},"action":{"type":"string","description":"The name of the action to execute."},"input":{"type":"object","description":"A templated object describing the inputs to the action."},"if":{"type":["string","boolean"],"description":"A templated condition that skips the step when evaluated to false. If the condition is true or not defined, the step is executed. The condition is true, if the input is not `false`, `undefined`, `null`, `\\"\\"`, `0`, or `[]`."}}}},"output":{"type":"object","description":"A templated object describing the outputs of the scaffolding task.","properties":{"links":{"type":"array","description":"A list of external hyperlinks, typically pointing to resources created or updated by the template","items":{"type":"object","required":[],"properties":{"url":{"type":"string","description":"A url in a standard uri format.","examples":["https://github.com/my-org/my-new-repo"],"minLength":1},"entityRef":{"type":"string","description":"An entity reference to an entity in the catalog.","examples":["Component:default/my-app"],"minLength":1},"title":{"type":"string","description":"A user friendly display name for the link.","examples":["View new repo"],"minLength":1},"icon":{"type":"string","description":"A key representing a visual icon to be displayed in the UI.","examples":["dashboard"],"minLength":1}}}}},"additionalProperties":{"type":"string"}},"owner":{"type":"string","description":"The user (or group) owner of the template","minLength":1}}}}}]}')),R(JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"UserV1alpha1","description":"A user describes a person, such as an employee, a contractor, or similar. Users belong to Group entities in the catalog. These catalog user entries are connected to the way that authentication within the Backstage ecosystem works. See the auth section of the docs for a discussion of these concepts.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"User","metadata":{"name":"jdoe"},"spec":{"profile":{"displayName":"Jenny Doe","email":"jenny-doe@example.com","picture":"https://example.com/staff/jenny-with-party-hat.jpeg"},"memberOf":["team-b","employees"]}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["backstage.io/v1alpha1","backstage.io/v1beta1"]},"kind":{"enum":["User"]},"spec":{"type":"object","required":["memberOf"],"properties":{"profile":{"type":"object","description":"Optional profile information about the user, mainly for display purposes. All fields of this structure are also optional. The email would be a primary email of some form, that the user may wish to be used for contacting them. The picture is expected to be a URL pointing to an image that\'s representative of the user, and that a browser could fetch and render on a profile page or similar.","properties":{"displayName":{"type":"string","description":"A simple display name to present to users.","examples":["Jenny Doe"],"minLength":1},"email":{"type":"string","description":"An email where this user can be reached.","examples":["jenny-doe@example.com"],"minLength":1},"picture":{"type":"string","description":"The URL of an image that represents this user.","examples":["https://example.com/staff/jenny-with-party-hat.jpeg"],"minLength":1}}},"memberOf":{"type":"array","description":"The list of groups that the user is a direct member of (i.e., no transitive memberships are listed here). The list must be present, but may be empty if the user is not member of any groups. The items are not guaranteed to be ordered in any particular way. The entries of this array are entity references.","items":{"type":"string","examples":["team-b","employees"],"minLength":1}}}}}}]}'));const L="backstage.io/managed-by-location",O="backstage.io/managed-by-origin-location",P="backstage.io/source-location";function I(e){if("string"!=typeof e)throw new TypeError(`Unable to parse location reference '${e}', unexpected argument ${typeof e}`);const t=e.indexOf(":");if(t<0)throw new TypeError(`Unable to parse location reference '${e}', expected '<type>:<target>', e.g. 'url:https://host/path'`);const n=e.substr(0,t).trim(),r=e.substr(t+1).trim();if(!n||!r)throw new TypeError(`Unable to parse location reference '${e}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if("http"===n||"https"===n)throw new TypeError(`Invalid location reference '${e}', please prefix it with 'url:', e.g. 'url:${e}'`);return{type:n,target:r}}function $(e){const{type:t,target:n}=e;if(!t)throw new TypeError("Unable to stringify location reference, empty type");if(!n)throw new TypeError("Unable to stringify location reference, empty target");return`${t}:${n}`}var B=n(9699);const N=B.Ry({type:B.Z_().required(),target:B.Z_().required(),presence:B.nK().oneOf(["required","optional"])}).noUnknown().required();B.Ry({id:B.Z_().required(),type:B.Z_().required(),target:B.Z_().required(),presence:B.nK().oneOf(["required","optional"])}).noUnknown().required(),B.Ry({location:N}).noUnknown().required()},23235:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});var r=n(98005);class i{subject=new r.J;post(e){this.subject.next(e)}alert$(){return this.subject}}},47150:function(e,t,n){"use strict";n.d(t,{g:function(){return r}});class r{captureEvent(e){}}},58652:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(98005);const i="theme";class a{static createWithStorage(e){const t=new a(e);if(!window.localStorage)return t;const n=window.localStorage.getItem(i)??void 0;return t.setActiveThemeId(n),t.activeThemeId$().subscribe((e=>{e?window.localStorage.setItem(i,e):window.localStorage.removeItem(i)})),window.addEventListener("storage",(e=>{if(e.key===i){const e=localStorage.getItem(i)??void 0;t.setActiveThemeId(e)}})),t}activeThemeId;subject=new r.X(void 0);constructor(e){this.themes=e}getInstalledThemes(){return this.themes.slice()}activeThemeId$(){return this.subject}getActiveThemeId(){return this.activeThemeId}setActiveThemeId(e){this.activeThemeId=e,this.subject.next(e)}}},14721:function(e,t,n){"use strict";n.d(t,{m:function(){return h}});var r=n(9850),i=n.n(r),a=n(12782),o=n.n(a);const s=/^[a-z][a-z0-9]*(?:[-_][a-z][a-z0-9]*)*$/i;function c(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function l(e){if(null===e)return"null";if(Array.isArray(e))return"array";const t=typeof e;return"number"===t&&isNaN(e)?"nan":"string"===t&&""===e?"empty-string":t}const u=(e,t,n,r)=>`Invalid type in config for key '${e}' in '${t}', got ${n}, wanted ${r}`,d=e=>`Missing required config value at '${e}'`,p=(e,t,n)=>`Unable to convert config value for key '${e}' in '${t}' to a ${n}`;class h{filteredKeys;notifiedFilteredKeys=new Set;static fromConfigs(e){return 0===e.length?new h(void 0):e.reduce(((e,{data:t,context:n,filteredKeys:r})=>{const i=new h(t,n,e);return i.filteredKeys=r,i}),void 0)}constructor(e,t="mock-config",n,r=""){this.data=e,this.context=t,this.fallback=n,this.prefix=r}has(e){return void 0!==this.readValue(e)||(this.fallback?.has(e)??!1)}keys(){const e=this.data?Object.keys(this.data):[],t=this.fallback?.keys()??[];return[...new Set([...e,...t])]}get(e){const t=this.getOptional(e);if(void 0===t)throw new Error(d(this.fullKey(e??"")));return t}getOptional(e){const t=this.readValue(e),n=this.fallback?.getOptional(e);return void 0===t?n:void 0===n?t:o()({},{value:i()(n)},{value:t},((e,t)=>c(t)&&c(e)?void 0:t)).value}getConfig(e){const t=this.getOptionalConfig(e);if(void 0===t)throw new Error(d(this.fullKey(e)));return t}getOptionalConfig(e){const t=this.readValue(e),n=this.fallback?.getOptionalConfig(e);if(c(t))return this.copy(t,e,n);if(void 0!==t)throw new TypeError(u(this.fullKey(e),this.context,l(t),"object"));return n}getConfigArray(e){const t=this.getOptionalConfigArray(e);if(void 0===t)throw new Error(d(this.fullKey(e)));return t}getOptionalConfigArray(e){const t=this.readConfigValue(e,(t=>{if(!Array.isArray(t))return{expected:"object-array"};for(const[n,r]of t.entries())if(!c(r))return{expected:"object-array",value:r,key:`${e}[${n}]`};return!0}));if(t)return t.map(((t,n)=>this.copy(t,`${e}[${n}]`)))}getNumber(e){const t=this.getOptionalNumber(e);if(void 0===t)throw new Error(d(this.fullKey(e)));return t}getOptionalNumber(e){const t=this.readConfigValue(e,(e=>"number"==typeof e||"string"==typeof e||{expected:"number"}));if("number"==typeof t||void 0===t)return t;const n=Number(t);if(!Number.isFinite(n))throw new Error(p(this.fullKey(e),this.context,"number"));return n}getBoolean(e){const t=this.getOptionalBoolean(e);if(void 0===t)throw new Error(d(this.fullKey(e)));return t}getOptionalBoolean(e){return this.readConfigValue(e,(e=>"boolean"==typeof e||{expected:"boolean"}))}getString(e){const t=this.getOptionalString(e);if(void 0===t)throw new Error(d(this.fullKey(e)));return t}getOptionalString(e){return this.readConfigValue(e,(e=>"string"==typeof e&&""!==e||{expected:"string"}))}getStringArray(e){const t=this.getOptionalStringArray(e);if(void 0===t)throw new Error(d(this.fullKey(e)));return t}getOptionalStringArray(e){return this.readConfigValue(e,(t=>{if(!Array.isArray(t))return{expected:"string-array"};for(const[n,r]of t.entries())if("string"!=typeof r||""===r)return{expected:"string-array",value:r,key:`${e}[${n}]`};return!0}))}fullKey(e){return`${this.prefix}${this.prefix?".":""}${e}`}copy(e,t,n){const r=new h(e,this.context,n,this.fullKey(t));return r.filteredKeys=this.filteredKeys,r}readConfigValue(e,t){const n=this.readValue(e);if(void 0===n)return this.fallback?.readConfigValue(e,t);const r=t(n);if(!0!==r){const{key:t=e,value:i=n,expected:a}=r;throw new TypeError(u(this.fullKey(t),this.context,l(i),a))}return n}readValue(e){const t=e?e.split("."):[];for(const n of t)if(!s.test(n))throw new TypeError(`Invalid config key '${e}'`);if(void 0===this.data)return;let n=this.data;for(const[e,r]of t.entries())if(c(n))n=n[r];else if(void 0!==n){const r=this.fullKey(t.slice(0,e).join("."));throw new TypeError(u(r,this.context,l(n),"object"))}return n}}},4333:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});const r="Invalid discovery URL pattern,";class i{static compile(e){const t=e.split(/\{\{\s*pluginId\s*\}\}/),n=t.join("pluginId");let a;try{a=new URL(n)}catch{throw new Error(`${r} URL '${n}' is invalid`)}if(a.hash)throw new Error(`${r} URL must not have a hash`);if(a.search)throw new Error(`${r} URL must not have a query`);if(n.endsWith("/"))throw new Error(`${r} URL must not end with a slash`);return new i(t)}constructor(e){this.parts=e}async getBaseUrl(e){return this.parts.join(e)}}},89536:function(e,t,n){"use strict";n.d(t,{KN:function(){return r},gr:function(){return a},Jv:function(){return o}});class r{constructor(e,t){this.alertApi=e,this.errorApi=t}post(e,t){return t?.hidden||this.alertApi.post({message:e.message,severity:"error"}),this.errorApi.post(e,t)}error$(){return this.errorApi.error$()}}var i=n(98005);class a{subject=new i.J;post(e,t){this.subject.next({error:e,context:t})}error$(){return this.subject}}class o{static forward(e,t){window.addEventListener("unhandledrejection",(n=>{e.post(n.reason,t)}))}}},14884:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(36964);function i(e){if(e.length<3)throw new Error(`The '${e}' feature flag must have a minimum length of three characters.`);if(e.length>150)throw new Error(`The '${e}' feature flag must not exceed 150 characters.`);if(!e.match(/^[a-z]+[a-z0-9-]+$/))throw new Error(`The '${e}' feature flag must start with a lowercase letter and only contain lowercase letters, numbers and hyphens. Examples: feature-flag-one, alpha, release-2020`)}class a{registeredFeatureFlags=[];flags;registerFlag(e){i(e.name),this.registeredFeatureFlags.push(e)}getRegisteredFlags(){return this.registeredFeatureFlags.slice()}isActive(e){return this.flags||(this.flags=this.load()),this.flags.get(e)===r.FeatureFlagState.Active}save(e){this.flags||(this.flags=this.load()),e.merge||this.flags.clear();for(const[t,n]of Object.entries(e.states))this.flags.set(t,n);const t=Array.from(this.flags.entries()).filter((([,e])=>e===r.FeatureFlagState.Active));window.localStorage.setItem("featureFlags",JSON.stringify(Object.fromEntries(t)))}load(){try{const e=window.localStorage.getItem("featureFlags");if(!e)return new Map;const t=JSON.parse(e);if("object"!=typeof t||null===t||Array.isArray(t))return new Map;const n=Object.entries(t).filter((([e,t])=>(i(e),t===r.FeatureFlagState.Active)));return new Map(n)}catch{return new Map}}}},50160:function(e,t,n){"use strict";function r(e){let t=e.baseImplementation||n.g.fetch;const r=[e.middleware??[]].flat().reverse();for(const e of r)t=e.apply(t);return{fetch:t}}n.d(t,{I:function(){return o},j:function(){return r}});class i{static create(e){const t=[];e.urlPrefixAllowlist?t.push(...e.urlPrefixAllowlist):e.config&&t.push(e.config.getString("backend.baseUrl"));const n=e.header?.name||"authorization",r=e.header?.value||(e=>`Bearer ${e}`);return new i(e.identityApi,t.map((e=>e.replace(/\/$/,""))),n,r)}constructor(e,t,n,r){this.identityApi=e,this.urlPrefixAllowlist=t,this.headerName=n,this.headerValue=r}apply(e){return async(t,n)=>{const r=new Request(t,n),{token:i}=await this.identityApi.getCredentials();return!r.headers.get(this.headerName)&&this.urlPrefixAllowlist.some((e=>r.url===e||r.url.startsWith(`${e}/`)))&&"string"==typeof i&&i?(r.headers.set(this.headerName,this.headerValue(i)),e(r)):e(t,n)}}}class a{constructor(e){this.discoveryApi=e}apply(e){return async(t,n)=>{const r=new Request(t,n),i="plugin://";if(!r.url.startsWith(i))return e(t,n);const{hostname:a,pathname:o,search:s,hash:c,username:l,password:u}=new URL(`http://${r.url.substring(i.length)}`);let d=await this.discoveryApi.getBaseUrl(a);if(l||u){const e=new URL(d),t=`${l}${u?`:${u}`:""}@`;d=`${e.protocol}//${t}${e.host}${e.pathname}`}const p=`${h=d,f=o,f&&"/"!==f?`${h.replace(/\/$/,"")}/${f.replace(/^\//,"")}`:h}${s}${c}`;var h,f;return e(p,r)}}}class o{static resolvePluginProtocol(e){return new a(e.discoveryApi)}static injectIdentityAuth(e){return i.create(e)}constructor(){}}},11358:function(e,t,n){"use strict";n.d(t,{Y:function(){return a}});var r=n(98005);class i{requests=[];subject=new r.X(this.getCurrentPending());request(e){return new Promise(((t,n)=>{this.requests.push({scopes:e,resolve:t,reject:n}),this.subject.next(this.getCurrentPending())}))}resolve(e,t){this.requests=this.requests.filter((n=>!function(e,t){for(const n of t)if(!e.has(n))return!1;return!0}(e,n.scopes)||(n.resolve(t),!1))),this.subject.next(this.getCurrentPending())}reject(e){this.requests.forEach((t=>t.reject(e))),this.requests=[],this.subject.next(this.getCurrentPending())}pending(){return this.subject}getCurrentPending(){const e=0===this.requests.length?void 0:this.requests.slice(1).reduce(((e,t)=>function(e,...t){const n=new Set(e);for(const e of t)for(const t of e)n.add(t);return n}(e,t.scopes)),this.requests[0].scopes);return{scopes:e,resolve:t=>{e&&this.resolve(e,t)},reject:t=>{e&&this.reject(t)}}}}class a{subject=new r.X([]);currentRequests=[];handlerCount=0;createAuthRequester(e){e.provider.id||console.warn("DEPRECATION WARNING: Not passing a provider id to createAuthRequester is deprecated, it will be required in the future");const t=new i,n=this.handlerCount;return this.handlerCount++,t.pending().subscribe({next:t=>{const r=this.currentRequests.slice(),i=this.makeAuthRequest(t,e);i?r[n]=i:delete r[n],this.currentRequests=r,this.subject.next(r.filter(Boolean))}}),e=>t.request(e)}makeAuthRequest(e,t){const{scopes:n}=e;if(n)return{provider:t.provider,trigger:async()=>{const r=await t.onAuthRequest(n);e.resolve(r)},reject:()=>{const t=new Error("Login failed, rejected by user");t.name="RejectedError",e.reject(t)}}}authRequest$(){return this.subject}}},56054:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r=n(82394),i=n.n(r);const a=new Map;class o{constructor(e,t){this.namespace=e,this.errorApi=t}static create(e){return new o(e.namespace??"",e.errorApi)}get(e){return this.snapshot(e).value}snapshot(e){let t,n="absent";try{const r=localStorage.getItem(this.getKeyName(e));r&&(t=JSON.parse(r,((e,t)=>("object"==typeof t&&null!==t&&Object.freeze(t),t))),n="present")}catch(t){this.errorApi.post(new Error(`Error when parsing JSON config from storage for: ${e}`))}return{key:e,value:t,newValue:t,presence:n}}forBucket(e){const t=`${this.namespace}/${e}`;return a.has(t)||a.set(t,new o(t,this.errorApi)),a.get(t)}async set(e,t){localStorage.setItem(this.getKeyName(e),JSON.stringify(t)),this.notifyChanges(e)}async remove(e){localStorage.removeItem(this.getKeyName(e)),this.notifyChanges(e)}observe$(e){return this.observable.filter((({key:t})=>t===e))}getKeyName(e){return`${this.namespace}/${encodeURIComponent(e)}`}notifyChanges(e){const t=this.snapshot(e);for(const e of this.subscribers)e.next(t)}subscribers=new Set;observable=new(i())((e=>(this.subscribers.add(e),()=>{this.subscribers.delete(e)})))}},59589:function(e,t,n){"use strict";n.d(t,{u:function(){return a}});var r=n(91205);const i={id:"atlassian",title:"Atlassian",icon:()=>null};class a{static create(e){const{discoveryApi:t,environment:n="development",provider:a=i,oauthRequestApi:o}=e;return r.L.create({discoveryApi:t,oauthRequestApi:o,provider:a,environment:n})}}},92293:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(91205);const i={id:"auth0",title:"Auth0",icon:()=>null};class a{static create(e){const{discoveryApi:t,environment:n="development",provider:a=i,oauthRequestApi:o,defaultScopes:s=["openid","email","profile"]}=e;return r.L.create({discoveryApi:t,oauthRequestApi:o,provider:a,environment:n,defaultScopes:s})}}},6098:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(91205);const i={id:"bitbucket",title:"Bitbucket",icon:()=>null};class a{static create(e){const{discoveryApi:t,environment:n="development",provider:a=i,oauthRequestApi:o,defaultScopes:s=["team"]}=e;return r.L.create({discoveryApi:t,oauthRequestApi:o,provider:a,environment:n,defaultScopes:s})}}},44431:function(e,t,n){"use strict";n.d(t,{x:function(){return i.Z}});var r=n(19347);n.o(r,"AlertApiForwarder")&&n.d(t,{AlertApiForwarder:function(){return r.AlertApiForwarder}}),n.o(r,"AppThemeSelector")&&n.d(t,{AppThemeSelector:function(){return r.AppThemeSelector}}),n.o(r,"AtlassianAuth")&&n.d(t,{AtlassianAuth:function(){return r.AtlassianAuth}}),n.o(r,"ConfigReader")&&n.d(t,{ConfigReader:function(){return r.ConfigReader}}),n.o(r,"ErrorAlerter")&&n.d(t,{ErrorAlerter:function(){return r.ErrorAlerter}}),n.o(r,"ErrorApiForwarder")&&n.d(t,{ErrorApiForwarder:function(){return r.ErrorApiForwarder}}),n.o(r,"FetchMiddlewares")&&n.d(t,{FetchMiddlewares:function(){return r.FetchMiddlewares}}),n.o(r,"FlatRoutes")&&n.d(t,{FlatRoutes:function(){return r.FlatRoutes}}),n.o(r,"LocalStorageFeatureFlags")&&n.d(t,{LocalStorageFeatureFlags:function(){return r.LocalStorageFeatureFlags}}),n.o(r,"NoOpAnalyticsApi")&&n.d(t,{NoOpAnalyticsApi:function(){return r.NoOpAnalyticsApi}}),n.o(r,"OAuthRequestManager")&&n.d(t,{OAuthRequestManager:function(){return r.OAuthRequestManager}}),n.o(r,"UnhandledErrorForwarder")&&n.d(t,{UnhandledErrorForwarder:function(){return r.UnhandledErrorForwarder}}),n.o(r,"UrlPatternDiscovery")&&n.d(t,{UrlPatternDiscovery:function(){return r.UrlPatternDiscovery}}),n.o(r,"WebStorage")&&n.d(t,{WebStorage:function(){return r.WebStorage}}),n.o(r,"createFetchApi")&&n.d(t,{createFetchApi:function(){return r.createFetchApi}}),n.o(r,"createSpecializedApp")&&n.d(t,{createSpecializedApp:function(){return r.createSpecializedApp}});var i=n(6098)},19347:function(){},55551:function(e,t,n){"use strict";n.d(t,{T:function(){return u}});var r=n(96176),i=n(54842),a=n(91405);class o{stateTracker=new a.l;sessionCanRefresh;staticSessionManager;refreshingSessionManager;constructor(e){this.sessionCanRefresh=e.sessionCanRefresh,this.staticSessionManager=e.staticSessionManager,this.refreshingSessionManager=e.refreshingSessionManager}async getSession(e){const t=await this.staticSessionManager.getSession({...e,optional:!0});if(t)return this.stateTracker.setIsSignedIn(!0),t;const n=await this.refreshingSessionManager.getSession(e);if(n)return this.sessionCanRefresh(n)?(this.stateTracker.setIsSignedIn(!0),n):(this.staticSessionManager.setSession(n),this.stateTracker.setIsSignedIn(!0),n);this.stateTracker.setIsSignedIn(!1)}async removeSession(){await Promise.all([this.refreshingSessionManager.removeSession(),this.staticSessionManager.removeSession()]),this.stateTracker.setIsSignedIn(!1)}sessionState$(){return this.stateTracker.sessionState$()}}var s=n(30195);const c=s.z.object({providerInfo:s.z.object({accessToken:s.z.string(),scopes:s.z.set(s.z.string()),expiresAt:s.z.date().optional()}),profile:s.z.object({email:s.z.string().optional(),displayName:s.z.string().optional(),picture:s.z.string().optional()}),backstageIdentity:s.z.object({id:s.z.string(),token:s.z.string(),identity:s.z.object({type:s.z.literal("user"),userEntityRef:s.z.string(),ownershipEntityRefs:s.z.array(s.z.string())})})}),l={id:"github",title:"GitHub",icon:()=>null};class u{static create(e){const{discoveryApi:t,environment:n="development",provider:a=l,oauthRequestApi:s,defaultScopes:d=["read:user"]}=e,p=new r.y({discoveryApi:t,environment:n,provider:a,oauthRequestApi:s,sessionTransform:e=>({...e,providerInfo:{accessToken:e.providerInfo.accessToken,scopes:u.normalizeScope(e.providerInfo.scope),expiresAt:e.providerInfo.expiresInSeconds?new Date(Date.now()+1e3*e.providerInfo.expiresInSeconds):void 0}})}),h=new i.q2({connector:p,defaultScopes:new Set(d),sessionScopes:e=>e.providerInfo.scopes,sessionShouldRefresh:e=>{const{expiresAt:t}=e.providerInfo;return!!t&&(t.getTime()-Date.now())/1e3<300}}),f=new i.Hc({manager:new i.k1({connector:p,defaultScopes:new Set(d),sessionScopes:e=>e.providerInfo.scopes}),storageKey:`${a.id}Session`,schema:c,sessionScopes:e=>e.providerInfo.scopes}),m=new o({refreshingSessionManager:h,staticSessionManager:f,sessionCanRefresh:e=>void 0!==e.providerInfo.expiresAt});return new u(m)}constructor(e){this.sessionManager=e}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(e,t){return(await this.sessionManager.getSession({...t,scopes:u.normalizeScope(e)}))?.providerInfo.accessToken??""}async getBackstageIdentity(e={}){return(await this.sessionManager.getSession(e))?.backstageIdentity}async getProfile(e={}){return(await this.sessionManager.getSession(e))?.profile}static normalizeScope(e){if(!e)return new Set;const t=Array.isArray(e)?e:e.split(/[\s|,]/).filter(Boolean);return new Set(t)}}},2922:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var r=n(91205);const i={id:"gitlab",title:"GitLab",icon:()=>null};class a{static create(e){const{discoveryApi:t,environment:n="development",provider:a=i,oauthRequestApi:o,defaultScopes:s=["read_user"]}=e;return r.L.create({discoveryApi:t,oauthRequestApi:o,provider:a,environment:n,defaultScopes:s})}}},59938:function(e,t,n){"use strict";n.d(t,{e:function(){return o}});var r=n(91205);const i={id:"google",title:"Google",icon:()=>null},a="https://www.googleapis.com/auth/";class o{static create(e){const{discoveryApi:t,oauthRequestApi:n,environment:o="development",provider:s=i,defaultScopes:c=["openid",`${a}userinfo.email`,`${a}userinfo.profile`]}=e;return r.L.create({discoveryApi:t,oauthRequestApi:n,provider:s,environment:o,defaultScopes:c,scopeTransform:e=>e.map((e=>"openid"===e?e:"profile"===e||"email"===e?`${a}userinfo.${e}`:e.startsWith(a)?e:`${a}${e}`))})}}},91668:function(e,t,n){"use strict";n.d(t,{Td:function(){return r.T},aq:function(){return i.a},eE:function(){return a.e},OAuth2:function(){return o.L},OktaAuth:function(){return s.s},SamlAuth:function(){return c.n},Auth0Auth:function(){return l.Z},MicrosoftAuth:function(){return u._},OneLoginAuth:function(){return d.$},BitbucketAuth:function(){return p.x},AtlassianAuth:function(){return h.u}});var r=n(55551),i=n(2922),a=n(59938),o=n(91205);n.o(o,"AlertApiForwarder")&&n.d(t,{AlertApiForwarder:function(){return o.AlertApiForwarder}}),n.o(o,"AppThemeSelector")&&n.d(t,{AppThemeSelector:function(){return o.AppThemeSelector}}),n.o(o,"AtlassianAuth")&&n.d(t,{AtlassianAuth:function(){return o.AtlassianAuth}}),n.o(o,"Auth0Auth")&&n.d(t,{Auth0Auth:function(){return o.Auth0Auth}}),n.o(o,"BitbucketAuth")&&n.d(t,{BitbucketAuth:function(){return o.BitbucketAuth}}),n.o(o,"ConfigReader")&&n.d(t,{ConfigReader:function(){return o.ConfigReader}}),n.o(o,"ErrorAlerter")&&n.d(t,{ErrorAlerter:function(){return o.ErrorAlerter}}),n.o(o,"ErrorApiForwarder")&&n.d(t,{ErrorApiForwarder:function(){return o.ErrorApiForwarder}}),n.o(o,"FetchMiddlewares")&&n.d(t,{FetchMiddlewares:function(){return o.FetchMiddlewares}}),n.o(o,"FlatRoutes")&&n.d(t,{FlatRoutes:function(){return o.FlatRoutes}}),n.o(o,"LocalStorageFeatureFlags")&&n.d(t,{LocalStorageFeatureFlags:function(){return o.LocalStorageFeatureFlags}}),n.o(o,"MicrosoftAuth")&&n.d(t,{MicrosoftAuth:function(){return o.MicrosoftAuth}}),n.o(o,"NoOpAnalyticsApi")&&n.d(t,{NoOpAnalyticsApi:function(){return o.NoOpAnalyticsApi}}),n.o(o,"OAuthRequestManager")&&n.d(t,{OAuthRequestManager:function(){return o.OAuthRequestManager}}),n.o(o,"OktaAuth")&&n.d(t,{OktaAuth:function(){return o.OktaAuth}}),n.o(o,"OneLoginAuth")&&n.d(t,{OneLoginAuth:function(){return o.OneLoginAuth}}),n.o(o,"SamlAuth")&&n.d(t,{SamlAuth:function(){return o.SamlAuth}}),n.o(o,"UnhandledErrorForwarder")&&n.d(t,{UnhandledErrorForwarder:function(){return o.UnhandledErrorForwarder}}),n.o(o,"UrlPatternDiscovery")&&n.d(t,{UrlPatternDiscovery:function(){return o.UrlPatternDiscovery}}),n.o(o,"WebStorage")&&n.d(t,{WebStorage:function(){return o.WebStorage}}),n.o(o,"createFetchApi")&&n.d(t,{createFetchApi:function(){return o.createFetchApi}}),n.o(o,"createSpecializedApp")&&n.d(t,{createSpecializedApp:function(){return o.createSpecializedApp}});var s=n(26079),c=n(67578),l=n(92293),u=n(38482),d=n(58381),p=n(44431);n.o(p,"AlertApiForwarder")&&n.d(t,{AlertApiForwarder:function(){return p.AlertApiForwarder}}),n.o(p,"AppThemeSelector")&&n.d(t,{AppThemeSelector:function(){return p.AppThemeSelector}}),n.o(p,"AtlassianAuth")&&n.d(t,{AtlassianAuth:function(){return p.AtlassianAuth}}),n.o(p,"ConfigReader")&&n.d(t,{ConfigReader:function(){return p.ConfigReader}}),n.o(p,"ErrorAlerter")&&n.d(t,{ErrorAlerter:function(){return p.ErrorAlerter}}),n.o(p,"ErrorApiForwarder")&&n.d(t,{ErrorApiForwarder:function(){return p.ErrorApiForwarder}}),n.o(p,"FetchMiddlewares")&&n.d(t,{FetchMiddlewares:function(){return p.FetchMiddlewares}}),n.o(p,"FlatRoutes")&&n.d(t,{FlatRoutes:function(){return p.FlatRoutes}}),n.o(p,"LocalStorageFeatureFlags")&&n.d(t,{LocalStorageFeatureFlags:function(){return p.LocalStorageFeatureFlags}}),n.o(p,"NoOpAnalyticsApi")&&n.d(t,{NoOpAnalyticsApi:function(){return p.NoOpAnalyticsApi}}),n.o(p,"OAuthRequestManager")&&n.d(t,{OAuthRequestManager:function(){return p.OAuthRequestManager}}),n.o(p,"UnhandledErrorForwarder")&&n.d(t,{UnhandledErrorForwarder:function(){return p.UnhandledErrorForwarder}}),n.o(p,"UrlPatternDiscovery")&&n.d(t,{UrlPatternDiscovery:function(){return p.UrlPatternDiscovery}}),n.o(p,"WebStorage")&&n.d(t,{WebStorage:function(){return p.WebStorage}}),n.o(p,"createFetchApi")&&n.d(t,{createFetchApi:function(){return p.createFetchApi}}),n.o(p,"createSpecializedApp")&&n.d(t,{createSpecializedApp:function(){return p.createSpecializedApp}});var h=n(59589)},38482:function(e,t,n){"use strict";n.d(t,{_:function(){return a}});var r=n(91205);const i={id:"microsoft",title:"Microsoft",icon:()=>null};class a{static create(e){const{environment:t="development",provider:n=i,oauthRequestApi:a,discoveryApi:o,defaultScopes:s=["openid","offline_access","profile","email","User.Read"]}=e;return r.L.create({discoveryApi:o,oauthRequestApi:a,provider:n,environment:t,defaultScopes:s})}}},95792:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(96176),i=n(54842);const a={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class o{static create(e){const{discoveryApi:t,environment:n="development",provider:s=a,oauthRequestApi:c,defaultScopes:l=[],scopeTransform:u=(e=>e)}=e,d=new r.y({discoveryApi:t,environment:n,provider:s,oauthRequestApi:c,sessionTransform:e=>({...e,providerInfo:{idToken:e.providerInfo.idToken,accessToken:e.providerInfo.accessToken,scopes:o.normalizeScopes(u,e.providerInfo.scope),expiresAt:new Date(Date.now()+1e3*e.providerInfo.expiresInSeconds)}})}),p=new i.q2({connector:d,defaultScopes:new Set(l),sessionScopes:e=>e.providerInfo.scopes,sessionShouldRefresh:e=>(e.providerInfo.expiresAt.getTime()-Date.now())/1e3<300});return new o({sessionManager:p,scopeTransform:u})}sessionManager;scopeTransform;constructor(e){this.sessionManager=e.sessionManager,this.scopeTransform=e.scopeTransform}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(e,t){const n=o.normalizeScopes(this.scopeTransform,e);return(await this.sessionManager.getSession({...t,scopes:n}))?.providerInfo.accessToken??""}async getIdToken(e={}){return(await this.sessionManager.getSession(e))?.providerInfo.idToken??""}async getBackstageIdentity(e={}){return(await this.sessionManager.getSession(e))?.backstageIdentity}async getProfile(e={}){return(await this.sessionManager.getSession(e))?.profile}static normalizeScopes(e,t){if(!t)return new Set;const n=Array.isArray(t)?t:t.split(/[\s|,]/).filter(Boolean);return new Set(e(n))}}},91205:function(e,t,n){"use strict";n.d(t,{L:function(){return r.Z}});var r=n(95792),i=n(5973);n.o(i,"AlertApiForwarder")&&n.d(t,{AlertApiForwarder:function(){return i.AlertApiForwarder}}),n.o(i,"AppThemeSelector")&&n.d(t,{AppThemeSelector:function(){return i.AppThemeSelector}}),n.o(i,"AtlassianAuth")&&n.d(t,{AtlassianAuth:function(){return i.AtlassianAuth}}),n.o(i,"Auth0Auth")&&n.d(t,{Auth0Auth:function(){return i.Auth0Auth}}),n.o(i,"BitbucketAuth")&&n.d(t,{BitbucketAuth:function(){return i.BitbucketAuth}}),n.o(i,"ConfigReader")&&n.d(t,{ConfigReader:function(){return i.ConfigReader}}),n.o(i,"ErrorAlerter")&&n.d(t,{ErrorAlerter:function(){return i.ErrorAlerter}}),n.o(i,"ErrorApiForwarder")&&n.d(t,{ErrorApiForwarder:function(){return i.ErrorApiForwarder}}),n.o(i,"FetchMiddlewares")&&n.d(t,{FetchMiddlewares:function(){return i.FetchMiddlewares}}),n.o(i,"FlatRoutes")&&n.d(t,{FlatRoutes:function(){return i.FlatRoutes}}),n.o(i,"LocalStorageFeatureFlags")&&n.d(t,{LocalStorageFeatureFlags:function(){return i.LocalStorageFeatureFlags}}),n.o(i,"MicrosoftAuth")&&n.d(t,{MicrosoftAuth:function(){return i.MicrosoftAuth}}),n.o(i,"NoOpAnalyticsApi")&&n.d(t,{NoOpAnalyticsApi:function(){return i.NoOpAnalyticsApi}}),n.o(i,"OAuthRequestManager")&&n.d(t,{OAuthRequestManager:function(){return i.OAuthRequestManager}}),n.o(i,"OktaAuth")&&n.d(t,{OktaAuth:function(){return i.OktaAuth}}),n.o(i,"OneLoginAuth")&&n.d(t,{OneLoginAuth:function(){return i.OneLoginAuth}}),n.o(i,"SamlAuth")&&n.d(t,{SamlAuth:function(){return i.SamlAuth}}),n.o(i,"UnhandledErrorForwarder")&&n.d(t,{UnhandledErrorForwarder:function(){return i.UnhandledErrorForwarder}}),n.o(i,"UrlPatternDiscovery")&&n.d(t,{UrlPatternDiscovery:function(){return i.UrlPatternDiscovery}}),n.o(i,"WebStorage")&&n.d(t,{WebStorage:function(){return i.WebStorage}}),n.o(i,"createFetchApi")&&n.d(t,{createFetchApi:function(){return i.createFetchApi}}),n.o(i,"createSpecializedApp")&&n.d(t,{createSpecializedApp:function(){return i.createSpecializedApp}})},5973:function(){},26079:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var r=n(91205);const i={id:"okta",title:"Okta",icon:()=>null},a=new Set(["openid","profile","email","phone","address","groups","offline_access"]);class o{static create(e){const{discoveryApi:t,environment:n="development",provider:o=i,oauthRequestApi:s,defaultScopes:c=["openid","email","profile","offline_access"]}=e;return r.L.create({discoveryApi:t,oauthRequestApi:s,provider:o,environment:n,defaultScopes:c,scopeTransform:e=>e.map((e=>a.has(e)||e.startsWith("okta.")?e:`okta.${e}`))})}}},58381:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var r=n(91205);const i={id:"onelogin",title:"onelogin",icon:()=>null},a=new Set(["openid","profile","email","phone","address","groups","offline_access"]);class o{static create(e){const{discoveryApi:t,environment:n="development",provider:o=i,oauthRequestApi:s}=e;return r.L.create({discoveryApi:t,oauthRequestApi:s,provider:o,environment:n,defaultScopes:["openid","email","profile","offline_access"],scopeTransform:e=>e.map((e=>a.has(e)||e.startsWith("onelogin.")?e:`onelogin.${e}`))})}}},67578:function(e,t,n){"use strict";n.d(t,{n:function(){return l}});var r=n(17678);class i{discoveryApi;environment;provider;constructor(e){const{discoveryApi:t,environment:n,provider:r}=e;this.discoveryApi=t,this.environment=n,this.provider=r}async createSession(){const e=await this.buildUrl("/start"),t=await(0,r.d)({url:e,name:`${this.provider.title} Login`,origin:new URL(e).origin,width:450,height:730});return{...t,id:t.profile.email}}async refreshSession(){}async removeSession(){const e=await fetch(await this.buildUrl("/logout"),{method:"POST",headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch((e=>{throw new Error(`Logout request failed, ${e}`)}));if(!e.ok){const t=new Error(`Logout request failed, ${e.statusText}`);throw t.status=e.status,t}}async buildUrl(e){return`${await this.discoveryApi.getBaseUrl("auth")}/${this.provider.id}${e}?env=${this.environment}`}}var a=n(54842),o=n(30195);const s=o.z.object({userId:o.z.string(),profile:o.z.object({email:o.z.string().optional(),displayName:o.z.string().optional(),picture:o.z.string().optional()}),backstageIdentity:o.z.object({id:o.z.string(),token:o.z.string(),identity:o.z.object({type:o.z.literal("user"),userEntityRef:o.z.string(),ownershipEntityRefs:o.z.array(o.z.string())})})}),c={id:"saml",title:"SAML",icon:()=>null};class l{static create(e){const{discoveryApi:t,environment:n="development",provider:r=c}=e,o=new i({discoveryApi:t,environment:n,provider:r}),u=new a.k1({connector:o}),d=new a.Hc({manager:u,storageKey:`${r.id}Session`,schema:s});return new l(d)}sessionState$(){return this.sessionManager.sessionState$()}constructor(e){this.sessionManager=e}async signIn(){await this.getBackstageIdentity({})}async signOut(){await this.sessionManager.removeSession()}async getBackstageIdentity(e={}){return(await this.sessionManager.getSession(e))?.backstageIdentity}async getProfile(e={}){return(await this.sessionManager.getSession(e))?.profile}}},91631:function(e,t,n){"use strict";n.d(t,{AtlassianAuth:function(){return r.AtlassianAuth},Auth0Auth:function(){return r.Auth0Auth},GithubAuth:function(){return r.Td},GitlabAuth:function(){return r.aq},GoogleAuth:function(){return r.eE},MicrosoftAuth:function(){return r.MicrosoftAuth},OktaAuth:function(){return r.OktaAuth},OneLoginAuth:function(){return r.OneLoginAuth},SamlAuth:function(){return r.SamlAuth},AlertApiForwarder:function(){return i.C},NoOpAnalyticsApi:function(){return a.g},AppThemeSelector:function(){return o.C},ConfigReader:function(){return s.m},UrlPatternDiscovery:function(){return c.p},ErrorAlerter:function(){return l.KN},ErrorApiForwarder:function(){return l.gr},UnhandledErrorForwarder:function(){return l.Jv},LocalStorageFeatureFlags:function(){return u.b},FetchMiddlewares:function(){return d.I},createFetchApi:function(){return d.j},OAuthRequestManager:function(){return p.Y},WebStorage:function(){return h.C}});var r=n(91668);n.o(r,"AlertApiForwarder")&&n.d(t,{AlertApiForwarder:function(){return r.AlertApiForwarder}}),n.o(r,"AppThemeSelector")&&n.d(t,{AppThemeSelector:function(){return r.AppThemeSelector}}),n.o(r,"BitbucketAuth")&&n.d(t,{BitbucketAuth:function(){return r.BitbucketAuth}}),n.o(r,"ConfigReader")&&n.d(t,{ConfigReader:function(){return r.ConfigReader}}),n.o(r,"ErrorAlerter")&&n.d(t,{ErrorAlerter:function(){return r.ErrorAlerter}}),n.o(r,"ErrorApiForwarder")&&n.d(t,{ErrorApiForwarder:function(){return r.ErrorApiForwarder}}),n.o(r,"FetchMiddlewares")&&n.d(t,{FetchMiddlewares:function(){return r.FetchMiddlewares}}),n.o(r,"FlatRoutes")&&n.d(t,{FlatRoutes:function(){return r.FlatRoutes}}),n.o(r,"LocalStorageFeatureFlags")&&n.d(t,{LocalStorageFeatureFlags:function(){return r.LocalStorageFeatureFlags}}),n.o(r,"NoOpAnalyticsApi")&&n.d(t,{NoOpAnalyticsApi:function(){return r.NoOpAnalyticsApi}}),n.o(r,"OAuth2")&&n.d(t,{OAuth2:function(){return r.OAuth2}}),n.o(r,"OAuthRequestManager")&&n.d(t,{OAuthRequestManager:function(){return r.OAuthRequestManager}}),n.o(r,"UnhandledErrorForwarder")&&n.d(t,{UnhandledErrorForwarder:function(){return r.UnhandledErrorForwarder}}),n.o(r,"UrlPatternDiscovery")&&n.d(t,{UrlPatternDiscovery:function(){return r.UrlPatternDiscovery}}),n.o(r,"WebStorage")&&n.d(t,{WebStorage:function(){return r.WebStorage}}),n.o(r,"createFetchApi")&&n.d(t,{createFetchApi:function(){return r.createFetchApi}}),n.o(r,"createSpecializedApp")&&n.d(t,{createSpecializedApp:function(){return r.createSpecializedApp}});var i=n(23235),a=n(47150),o=n(58652),s=n(14721),c=n(4333),l=n(89536),u=n(14884),d=n(50160),p=n(11358),h=n(56054)},56494:function(e,t,n){"use strict";n.d(t,{ApiProvider:function(){return r.gs},ApiRegistry:function(){return r.GW},AlertApiForwarder:function(){return i.AlertApiForwarder},AppThemeSelector:function(){return i.AppThemeSelector},ConfigReader:function(){return i.ConfigReader},ErrorAlerter:function(){return i.ErrorAlerter},ErrorApiForwarder:function(){return i.ErrorApiForwarder},FetchMiddlewares:function(){return i.FetchMiddlewares},LocalStorageFeatureFlags:function(){return i.LocalStorageFeatureFlags},NoOpAnalyticsApi:function(){return i.NoOpAnalyticsApi},OAuthRequestManager:function(){return i.OAuthRequestManager},UnhandledErrorForwarder:function(){return i.UnhandledErrorForwarder},UrlPatternDiscovery:function(){return i.UrlPatternDiscovery},WebStorage:function(){return i.WebStorage},createFetchApi:function(){return i.createFetchApi}});var r=n(76105);n.o(r,"AlertApiForwarder")&&n.d(t,{AlertApiForwarder:function(){return r.AlertApiForwarder}}),n.o(r,"AppThemeSelector")&&n.d(t,{AppThemeSelector:function(){return r.AppThemeSelector}}),n.o(r,"AtlassianAuth")&&n.d(t,{AtlassianAuth:function(){return r.AtlassianAuth}}),n.o(r,"Auth0Auth")&&n.d(t,{Auth0Auth:function(){return r.Auth0Auth}}),n.o(r,"BitbucketAuth")&&n.d(t,{BitbucketAuth:function(){return r.BitbucketAuth}}),n.o(r,"ConfigReader")&&n.d(t,{ConfigReader:function(){return r.ConfigReader}}),n.o(r,"ErrorAlerter")&&n.d(t,{ErrorAlerter:function(){return r.ErrorAlerter}}),n.o(r,"ErrorApiForwarder")&&n.d(t,{ErrorApiForwarder:function(){return r.ErrorApiForwarder}}),n.o(r,"FetchMiddlewares")&&n.d(t,{FetchMiddlewares:function(){return r.FetchMiddlewares}}),n.o(r,"FlatRoutes")&&n.d(t,{FlatRoutes:function(){return r.FlatRoutes}}),n.o(r,"GithubAuth")&&n.d(t,{GithubAuth:function(){return r.GithubAuth}}),n.o(r,"GitlabAuth")&&n.d(t,{GitlabAuth:function(){return r.GitlabAuth}}),n.o(r,"GoogleAuth")&&n.d(t,{GoogleAuth:function(){return r.GoogleAuth}}),n.o(r,"LocalStorageFeatureFlags")&&n.d(t,{LocalStorageFeatureFlags:function(){return r.LocalStorageFeatureFlags}}),n.o(r,"MicrosoftAuth")&&n.d(t,{MicrosoftAuth:function(){return r.MicrosoftAuth}}),n.o(r,"NoOpAnalyticsApi")&&n.d(t,{NoOpAnalyticsApi:function(){return r.NoOpAnalyticsApi}}),n.o(r,"OAuth2")&&n.d(t,{OAuth2:function(){return r.OAuth2}}),n.o(r,"OAuthRequestManager")&&n.d(t,{OAuthRequestManager:function(){return r.OAuthRequestManager}}),n.o(r,"OktaAuth")&&n.d(t,{OktaAuth:function(){return r.OktaAuth}}),n.o(r,"OneLoginAuth")&&n.d(t,{OneLoginAuth:function(){return r.OneLoginAuth}}),n.o(r,"SamlAuth")&&n.d(t,{SamlAuth:function(){return r.SamlAuth}}),n.o(r,"UnhandledErrorForwarder")&&n.d(t,{UnhandledErrorForwarder:function(){return r.UnhandledErrorForwarder}}),n.o(r,"UrlPatternDiscovery")&&n.d(t,{UrlPatternDiscovery:function(){return r.UrlPatternDiscovery}}),n.o(r,"WebStorage")&&n.d(t,{WebStorage:function(){return r.WebStorage}}),n.o(r,"createFetchApi")&&n.d(t,{createFetchApi:function(){return r.createFetchApi}}),n.o(r,"createSpecializedApp")&&n.d(t,{createSpecializedApp:function(){return r.createSpecializedApp}});var i=n(91631);n.o(i,"AtlassianAuth")&&n.d(t,{AtlassianAuth:function(){return i.AtlassianAuth}}),n.o(i,"Auth0Auth")&&n.d(t,{Auth0Auth:function(){return i.Auth0Auth}}),n.o(i,"BitbucketAuth")&&n.d(t,{BitbucketAuth:function(){return i.BitbucketAuth}}),n.o(i,"FlatRoutes")&&n.d(t,{FlatRoutes:function(){return i.FlatRoutes}}),n.o(i,"GithubAuth")&&n.d(t,{GithubAuth:function(){return i.GithubAuth}}),n.o(i,"GitlabAuth")&&n.d(t,{GitlabAuth:function(){return i.GitlabAuth}}),n.o(i,"GoogleAuth")&&n.d(t,{GoogleAuth:function(){return i.GoogleAuth}}),n.o(i,"MicrosoftAuth")&&n.d(t,{MicrosoftAuth:function(){return i.MicrosoftAuth}}),n.o(i,"OAuth2")&&n.d(t,{OAuth2:function(){return i.OAuth2}}),n.o(i,"OktaAuth")&&n.d(t,{OktaAuth:function(){return i.OktaAuth}}),n.o(i,"OneLoginAuth")&&n.d(t,{OneLoginAuth:function(){return i.OneLoginAuth}}),n.o(i,"SamlAuth")&&n.d(t,{SamlAuth:function(){return i.SamlAuth}}),n.o(i,"createSpecializedApp")&&n.d(t,{createSpecializedApp:function(){return i.createSpecializedApp}})},80396:function(e,t,n){"use strict";var r;n.d(t,{p:function(){return i}}),function(e){e[e.default=10]="default",e[e.app=50]="app",e[e.static=100]="static"}(r||(r={}));class i{factories=new Map;register(e,t){const n=r[e],i=this.factories.get(t.api.id);return!(i&&i.priority>=n||(this.factories.set(t.api.id,{priority:n,factory:t}),0))}get(e){const t=this.factories.get(e.id);if(t)return t.factory}getAllApis(){const e=new Set;for(const{factory:t}of this.factories.values())e.add(t.api);return e}}},14406:function(e,t,n){"use strict";n.d(t,{g:function(){return l}});var r=n(2784),i=n(13980),a=n.n(i);class o{holders;constructor(...e){this.holders=e}get(e){for(const t of this.holders){const n=t.get(e);if(n)return n}}}var s=n(76241);const c=(0,s.CT)("api-context"),l=e=>{const{apis:t,children:n}=e,i=(0,r.useContext)(c)?.atVersion(1),a=i?new o(t,i):t;return r.createElement(c.Provider,{value:(0,s.EI)({1:a}),children:n})};l.propTypes={apis:a().shape({get:a().func.isRequired}).isRequired,children:a().node}},31964:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});class r{apis=[];add(e,t){return this.apis.push([e.id,t]),t}build(){return new i(new Map(this.apis))}}class i{static builder(){return new r}static from(e){return new i(new Map(e.map((([e,t])=>[e.id,t]))))}static with(e,t){return new i(new Map([[e.id,t]]))}constructor(e){this.apis=e}with(e,t){return new i(new Map([...this.apis,[e.id,t]]))}get(e){return this.apis.get(e.id)}}},12132:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});class r{static validateFactories(e,t){for(const n of t){const t=[n],r=new Set;for(;t.length;){const i=t.shift(),a=e.get(i);if(a)for(const e of Object.values(a.deps)){if(e.id===n.id)throw new Error(`Circular dependency of api factory for ${n}`);r.has(e)||(r.add(e),t.push(e))}}}}apis=new Map;constructor(e){this.factories=e}get(e){return this.load(e)}load(e,t=[]){const n=this.apis.get(e.id);if(n)return n;const r=this.factories.get(e);if(!r)return;if(t.includes(r.api))throw new Error(`Circular dependency of api factory for ${r.api}`);const i=this.loadDeps(e,r.deps,[...t,r.api]),a=r.factory(i);return this.apis.set(e.id,a),a}loadDeps(e,t,n){const r={};for(const i in t)if(t.hasOwnProperty(i)){const a=t[i],o=this.load(a,n);if(!o)throw new Error(`No API factory available for dependency ${a} of dependent ${e}`);r[i]=o}return r}}},76105:function(e,t,n){"use strict";n.d(t,{gs:function(){return r.g},GW:function(){return i.G},MM:function(){return a.M},pv:function(){return o.p}});var r=n(14406),i=n(31964),a=n(12132),o=n(80396),s=n(82488);n.o(s,"AlertApiForwarder")&&n.d(t,{AlertApiForwarder:function(){return s.AlertApiForwarder}}),n.o(s,"AppThemeSelector")&&n.d(t,{AppThemeSelector:function(){return s.AppThemeSelector}}),n.o(s,"AtlassianAuth")&&n.d(t,{AtlassianAuth:function(){return s.AtlassianAuth}}),n.o(s,"Auth0Auth")&&n.d(t,{Auth0Auth:function(){return s.Auth0Auth}}),n.o(s,"BitbucketAuth")&&n.d(t,{BitbucketAuth:function(){return s.BitbucketAuth}}),n.o(s,"ConfigReader")&&n.d(t,{ConfigReader:function(){return s.ConfigReader}}),n.o(s,"ErrorAlerter")&&n.d(t,{ErrorAlerter:function(){return s.ErrorAlerter}}),n.o(s,"ErrorApiForwarder")&&n.d(t,{ErrorApiForwarder:function(){return s.ErrorApiForwarder}}),n.o(s,"FetchMiddlewares")&&n.d(t,{FetchMiddlewares:function(){return s.FetchMiddlewares}}),n.o(s,"FlatRoutes")&&n.d(t,{FlatRoutes:function(){return s.FlatRoutes}}),n.o(s,"GithubAuth")&&n.d(t,{GithubAuth:function(){return s.GithubAuth}}),n.o(s,"GitlabAuth")&&n.d(t,{GitlabAuth:function(){return s.GitlabAuth}}),n.o(s,"GoogleAuth")&&n.d(t,{GoogleAuth:function(){return s.GoogleAuth}}),n.o(s,"LocalStorageFeatureFlags")&&n.d(t,{LocalStorageFeatureFlags:function(){return s.LocalStorageFeatureFlags}}),n.o(s,"MicrosoftAuth")&&n.d(t,{MicrosoftAuth:function(){return s.MicrosoftAuth}}),n.o(s,"NoOpAnalyticsApi")&&n.d(t,{NoOpAnalyticsApi:function(){return s.NoOpAnalyticsApi}}),n.o(s,"OAuth2")&&n.d(t,{OAuth2:function(){return s.OAuth2}}),n.o(s,"OAuthRequestManager")&&n.d(t,{OAuthRequestManager:function(){return s.OAuthRequestManager}}),n.o(s,"OktaAuth")&&n.d(t,{OktaAuth:function(){return s.OktaAuth}}),n.o(s,"OneLoginAuth")&&n.d(t,{OneLoginAuth:function(){return s.OneLoginAuth}}),n.o(s,"SamlAuth")&&n.d(t,{SamlAuth:function(){return s.SamlAuth}}),n.o(s,"UnhandledErrorForwarder")&&n.d(t,{UnhandledErrorForwarder:function(){return s.UnhandledErrorForwarder}}),n.o(s,"UrlPatternDiscovery")&&n.d(t,{UrlPatternDiscovery:function(){return s.UrlPatternDiscovery}}),n.o(s,"WebStorage")&&n.d(t,{WebStorage:function(){return s.WebStorage}}),n.o(s,"createFetchApi")&&n.d(t,{createFetchApi:function(){return s.createFetchApi}}),n.o(s,"createSpecializedApp")&&n.d(t,{createSpecializedApp:function(){return s.createSpecializedApp}})},82488:function(){},92166:function(e,t,n){"use strict";n.d(t,{b:function(){return W}});var r=n(2784),i=n(10289),a=n(4812),o=n(56494),s=n(36964),c=n(41682),l=n(76105);function u(e){const t={};for(const n in e.collectors)e.collectors.hasOwnProperty(n)&&(t[n]=e.collectors[n]());const n=[{node:r.Children.toArray(e.root),parent:void 0,contexts:{}}];for(;0!==n.length;){const{node:i,parent:a,contexts:o}=n.shift();r.Children.forEach(i,(i=>{if(!(0,r.isValidElement)(i))return;const s={};for(const e in t)if(t.hasOwnProperty(e)){const n=t[e];s[e]=n.visit(n.accumulator,i,a,o[e])}for(const t of e.discoverers){const e=t(i);e&&n.push({node:e,parent:i,contexts:s})}}))}return Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.accumulator])))}function d(e,t){return()=>({accumulator:e(),visit:t})}function p(e){return e.props?.children}function h(e){if(e.props?.path&&e.props?.element)return e.props?.element}const f=d((()=>new Set),((e,t)=>{const n=(0,s.getComponentData)(t,"core.plugin");n&&e.add(n)}));var m=n(88934);function g(e){const t=e.props?.element;let n=(0,s.getComponentData)(e,"core.mountPoint");return!n&&(0,r.isValidElement)(t)&&(n=(0,s.getComponentData)(t,"core.mountPoint")),n}const y=d((()=>new Map),((e,t,n,r)=>{let i=r;if(n?.props.element===t)return i;if((0,s.getComponentData)(t,"core.gatherMountPoints")){const e=t.props?.path;if(!e)throw new Error("Mount point gatherer must have a path");i=e}const a=g(t);if(a){let n=t.props?.path;if(i&&(n?i=void 0:n=i),!n)throw new Error("Mounted routable extension must have a path");e.set(a,n)}return i})),A=d((()=>new Map),((e,t,n,r)=>{if(n?.props.element===t)return r;let i=r;const a=g(t);return a&&(r&&"sticky"in r?(e.set(a,r.sticky),i=t.props?.path?a:r):(e.set(a,r),i=a)),(0,s.getComponentData)(t,"core.gatherMountPoints")?{sticky:i}:i})),v={caseSensitive:!1,path:"/*",element:"match-all",routeRefs:new Set},b=d((()=>Array()),((e,t,n,r)=>{const i=r?.children??e;if(n?.props.element===t)return r;const a=t.props?.path,o=Boolean(t.props?.caseSensitive),c=g(t);if(c){if(a){const e={caseSensitive:o,path:a,element:"mounted",routeRefs:new Set([c]),children:[v],plugin:(0,s.getComponentData)(t.props.element,"core.plugin")};return i.push(e),e}r?.routeRefs.add(c)}if((0,s.getComponentData)(t,"core.gatherMountPoints")){if(!a)throw new Error("Mount point gatherer must have a path");const e={caseSensitive:o,path:a,element:"gathered",routeRefs:new Set,children:[v],plugin:r?.plugin};return i.push(e),e}return r})),E=d((()=>new Set),((e,t)=>{if(t.type===m.L){const n=t.props;e.add("with"in n?n.with:n.without)}}));var w=n(76241);const R=(0,w.uW)("route-ref-type",(()=>Symbol("route-ref-type")));function S(e){return"absolute"===e[R]}function k(e){return"sub"===e[R]}function x(...e){const t=e.join("/").replace(/\/\/+/g,"/");return"/"!==t&&t.endsWith("/")?t.slice(0,-1):t}class C{constructor(e,t,n,r,i){this.routePaths=e,this.routeParents=t,this.routeObjects=n,this.routeBindings=r,this.appBasePath=i}resolve(e,t){const[n,r]=function(e,t,n){let r,i="";if(S(e))r=e;else if(k(e))r=e.parent,i=e.path;else{if("external"!==e[R])throw e[R]?new Error(`Unknown or invalid route ref type, ${e[R]}`):new Error(`Unknown object passed to useRouteRef, got ${e}`);{const t=n.get(e);if(!t)return[void 0,""];if(S(t))r=t;else{if(!k(t))throw new Error(`ExternalRouteRef was bound to invalid target, ${t}`);r=t.parent,i=t.path}}}if(!r)return[void 0,""];const a=t.get(r);return a?[r,x(a,i)]:[void 0,""]}(e,this.routePaths,this.routeBindings);if(!n)return;let a;a="string"==typeof t?this.trimPath(t):t.pathname?{...t,pathname:this.trimPath(t.pathname)}:t;const o=this.appBasePath+function(e,t,n,r,a){const o=(0,i.fp)(a,t)??[],s=Array();let c=-1;for(let t=e;t&&(c=o.findIndex((e=>e.route.routeRefs.has(t))),-1===c);t=r.get(t))s.unshift(t);return 0===s.length&&(c-=1),(-1===c?"":o[c].pathname)+x(...s.slice(0,-1).map((t=>{const r=n.get(t);if(!r)throw new Error(`No path for ${t}`);if(r.includes(":"))throw new Error(`Cannot route to ${e} with parent ${t} as it has parameters`);return r})))}(n,a,this.routePaths,this.routeParents,this.routeObjects);return(...[e])=>o+(0,i.Gn)(r,e)}trimPath(e){return e&&e.startsWith(this.appBasePath)?e.slice(this.appBasePath.length):e}}const F=(0,w.CT)("routing-context"),T=({routePaths:e,routeParents:t,routeObjects:n,routeBindings:i,basePath:a="",children:o})=>{const s=new C(e,t,n,i,a),c=(0,w.EI)({1:s});return r.createElement(F.Provider,{value:c},o)},Z=(e,t)=>{try{const n=(0,i.fp)(t,{pathname:e})?.filter((e=>e?.route.routeRefs?.size>0)).pop()?.route;if(!n)return{};let r;return 1===n.routeRefs.size&&(r=n.routeRefs.values().next().value),{extension:"App",pluginId:n.plugin?.getId()||"root",...r?{routeRef:r.id}:{}}}catch{return{}}},L=({pathname:e,search:t,hash:n})=>{const i=(0,s.useAnalytics)();return(0,r.useEffect)((()=>{i.captureEvent("navigate",`${e}${t}${n}`)}),[i,e,t,n]),null},O=({tree:e})=>{const{pathname:t,search:n,hash:a}=(0,i.TH)(),{routeObjects:o}=(0,r.useMemo)((()=>u({root:e,discoverers:[p,h],collectors:{routeObjects:b}})),[e]);return r.createElement(s.AnalyticsContext,{attributes:Z(t,o)},r.createElement(L,{pathname:t,search:n,hash:a}))},P=(0,w.CT)("app-context"),I=({appContext:e,children:t})=>{const n=(0,w.EI)({1:e});return r.createElement(P.Provider,{value:n,children:t})};function $(e){return new Error(`Tried to access IdentityApi ${e} before app was loaded`)}class B{target;setTarget(e){this.target=e}getUserId(){if(!this.target)throw $("getUserId");return this.target.getUserId()}getProfile(){if(!this.target)throw $("getProfile");return this.target.getProfile()}async getProfileInfo(){if(!this.target)throw $("getProfileInfo");return this.target.getProfileInfo()}async getBackstageIdentity(){if(!this.target)throw $("getBackstageIdentity");return this.target.getBackstageIdentity()}async getCredentials(){if(!this.target)throw $("getCredentials");return this.target.getCredentials()}async getIdToken(){if(!this.target)throw $("getIdToken");return this.target.getIdToken()}async signOut(){if(!this.target)throw $("signOut");await this.target.signOut(),location.reload()}}var N=n(44517);function U({children:e}){const t=(0,s.useApi)(s.appThemeApiRef),n=function(e,t,n){if(void 0!==e){const t=n.find((t=>t.id===e));if(t)return t}if(t){const e=n.find((e=>"dark"===e.variant));if(e)return e}return n.find((e=>"light"===e.variant))||n[0]}((0,N.Z)(t.activeThemeId$(),t.getActiveThemeId()),!!Boolean(window.matchMedia)&&(()=>{const e=(0,r.useMemo)((()=>window.matchMedia("(prefers-color-scheme: dark)")),[]),[t,n]=(0,r.useState)(e.matches);return(0,r.useEffect)((()=>{const t=e=>{n(e.matches)};return e.addListener(t),()=>{e.removeListener(t)}}),[e]),t})(),t.getInstalledThemes());if(!n)throw new Error("App has no themes");return r.createElement(n.Provider,{children:e})}const M=async(e="__APP_INJECTED_RUNTIME_CONFIG__")=>{const t=[{context:"app-config.yaml",data:{app:{title:"Techdocs Preview App",baseUrl:"http://localhost:3000"},backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external",requestUrl:"http://localhost:3000/api"}}}];if(!t)throw new Error("No static configuration provided");if(!Array.isArray(t))throw new Error("Static configuration has invalid format");const n=t.slice();if(e!=="__app_injected_runtime_config__".toLocaleUpperCase("en-US"))try{const t=JSON.parse(e);Array.isArray(t)?n.push(...t):n.push({data:t,context:"env"})}catch(e){throw new Error(`Failed to load runtime configuration, ${e}`)}const r=window.__APP_CONFIG__;return r&&n.push({context:"window",data:r}),n};function D(e){const t=new Map;return e&&e({bind:(e,n)=>{for(const[r,i]of Object.entries(n)){const n=e[r];if(!n)throw new Error(`Key ${r} is not an existing external route`);if(!i&&!n.optional)throw new Error(`External route ${r} is required but was undefined`);i&&t.set(n,i)}}}),t}function q(e){let{pathname:t}=new URL(e.getOptionalString("app.baseUrl")??"/","http://dummy.dev");return t=t.replace(/\/*$/,""),t}class z{constructor(e){this.app=e}getPlugins(){return this.app.getPlugins()}getSystemIcon(e){return this.app.getSystemIcon(e)}getComponents(){return this.app.getComponents()}}class j{apiHolder;configApi;apis;icons;plugins;components;themes;configLoader;defaultApis;bindRoutes;appIdentityProxy=new B;apiFactoryRegistry;constructor(e){this.apis=e.apis??[],this.icons=e.icons,this.plugins=new Set(e.plugins??[]),this.components=e.components,this.themes=e.themes,this.configLoader=e.configLoader??M,this.defaultApis=e.defaultApis??[],this.bindRoutes=e.bindRoutes,this.apiFactoryRegistry=new l.pv}getPlugins(){return Array.from(this.plugins)}getSystemIcon(e){return this.icons[e]}getComponents(){return this.components}getProvider(){const e=new z(this);return({children:t})=>{const n=(0,r.useMemo)((()=>o.AppThemeSelector.createWithStorage(this.themes)),[]),{routePaths:i,routeParents:c,routeObjects:l,featureFlags:d}=(0,r.useMemo)((()=>{const e=u({root:t,discoverers:[p,h],collectors:{routePaths:y,routeParents:A,routeObjects:b,collectedPlugins:f,featureFlags:E}});return function(e,t){const n=new Set(t.values());n.delete(void 0);for(const r of t.keys()){if(n.has(r))continue;let i=r,a="";for(;i;){const n=e.get(i);if(!n)throw new Error(`No path for ${i}`);a=`${n}${a}`,i=t.get(i)}const o=a.match(/:(\w+)/g);if(o)for(let e=0;e<o.length;e++)for(let t=e+1;t<o.length;t++)if(o[t]===o[e])throw new Error(`Parameter ${o[t]} is duplicated in path ${a}`)}}(e.routePaths,e.routeParents),e.collectedPlugins.forEach((e=>this.plugins.add(e))),this.verifyPlugins(this.plugins),this.getApiHolder(),e}),[t]),m=function(e,t,n){const i=Boolean(e),c=(0,a.Z)(e||(()=>Promise.resolve([])));let l;if(i&&c.loading){const{Progress:e}=t;l=r.createElement(e,null)}else if(c.error){const{BootErrorPage:e}=t;l=r.createElement(e,{step:"load-config",error:c.error})}const{ThemeProvider:u=U}=t;return l?{node:r.createElement(o.ApiProvider,{apis:o.ApiRegistry.from([[s.appThemeApiRef,n]])},r.createElement(u,null,l))}:{api:o.ConfigReader.fromConfigs(c.value??[])}}(this.configLoader,this.components,n),g="api"in m;if(g){const{api:e}=m;this.configApi=e}if((0,r.useEffect)((()=>{if(g){const e=this.getApiHolder().get(s.featureFlagsApiRef);for(const t of this.plugins.values())if("getFeatureFlags"in t)for(const n of t.getFeatureFlags())e.registerFlag({name:n.name,pluginId:t.getId()});else for(const n of t.output())"feature-flag"===n.type&&e.registerFlag({name:n.name,pluginId:t.getId()});for(const t of d)e.registerFlag({name:t,pluginId:""})}}),[g,m,d]),"node"in m)return m.node;const{ThemeProvider:v=U}=this.components;return r.createElement(o.ApiProvider,{apis:this.getApiHolder()},r.createElement(I,{appContext:e},r.createElement(v,null,r.createElement(T,{routePaths:i,routeParents:c,routeObjects:l,routeBindings:D(this.bindRoutes),basePath:q(m.api)},t))))}}getRouter(){const{Router:e,SignInPage:t}=this.components,n=({component:e,children:t})=>{const[n,i]=(0,r.useState)();return n?(this.appIdentityProxy.setTarget(n),t):r.createElement(e,{onSignInSuccess:i})};return({children:a})=>{const o=`${q((0,s.useApi)(s.configApiRef))}/*`;return t?r.createElement(e,null,r.createElement(O,{tree:a}),r.createElement(n,{component:t},r.createElement(i.Z5,null,r.createElement(i.AW,{path:o,element:r.createElement(r.Fragment,null,a)})))):(this.appIdentityProxy.setTarget(c.UserIdentity.createGuest()),r.createElement(e,null,r.createElement(O,{tree:a}),r.createElement(i.Z5,null,r.createElement(i.AW,{path:o,element:r.createElement(r.Fragment,null,a)}))))}}getApiHolder(){if(this.apiHolder){for(const e of this.plugins)for(const t of e.getApis())this.apiFactoryRegistry.get(t.api)||this.apiFactoryRegistry.register("default",t);return l.MM.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder}this.apiFactoryRegistry.register("static",{api:s.appThemeApiRef,deps:{},factory:()=>o.AppThemeSelector.createWithStorage(this.themes)}),this.apiFactoryRegistry.register("static",{api:s.configApiRef,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:s.identityApiRef,deps:{},factory:()=>this.appIdentityProxy}),this.apiFactoryRegistry.register("default",{api:s.featureFlagsApiRef,deps:{},factory:()=>new o.LocalStorageFeatureFlags});for(const e of this.defaultApis)this.apiFactoryRegistry.register("default",e);for(const e of this.plugins)for(const t of e.getApis())if(!this.apiFactoryRegistry.register("default",t))throw new Error(`Plugin ${e.getId()} tried to register duplicate or forbidden API factory for ${t.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 l.MM.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder=new l.MM(this.apiFactoryRegistry),this.apiHolder}verifyPlugins(e){const t=new Set;for(const n of e){const e=n.getId();if(t.has(e))throw new Error(`Duplicate plugin found '${e}'`);t.add(e)}}}function W(e){return new j(e)}},44056:function(e,t,n){"use strict";n.d(t,{b:function(){return r.b}});var r=n(92166),i=n(73495);n.o(i,"AtlassianAuth")&&n.d(t,{AtlassianAuth:function(){return i.AtlassianAuth}}),n.o(i,"Auth0Auth")&&n.d(t,{Auth0Auth:function(){return i.Auth0Auth}}),n.o(i,"BitbucketAuth")&&n.d(t,{BitbucketAuth:function(){return i.BitbucketAuth}}),n.o(i,"FlatRoutes")&&n.d(t,{FlatRoutes:function(){return i.FlatRoutes}}),n.o(i,"GithubAuth")&&n.d(t,{GithubAuth:function(){return i.GithubAuth}}),n.o(i,"GitlabAuth")&&n.d(t,{GitlabAuth:function(){return i.GitlabAuth}}),n.o(i,"GoogleAuth")&&n.d(t,{GoogleAuth:function(){return i.GoogleAuth}}),n.o(i,"MicrosoftAuth")&&n.d(t,{MicrosoftAuth:function(){return i.MicrosoftAuth}}),n.o(i,"OAuth2")&&n.d(t,{OAuth2:function(){return i.OAuth2}}),n.o(i,"OktaAuth")&&n.d(t,{OktaAuth:function(){return i.OktaAuth}}),n.o(i,"OneLoginAuth")&&n.d(t,{OneLoginAuth:function(){return i.OneLoginAuth}}),n.o(i,"SamlAuth")&&n.d(t,{SamlAuth:function(){return i.SamlAuth}})},73495:function(){},49208:function(e,t,n){"use strict";n.d(t,{AlertApiForwarder:function(){return r.AlertApiForwarder},ErrorAlerter:function(){return r.ErrorAlerter},ErrorApiForwarder:function(){return r.ErrorApiForwarder},FetchMiddlewares:function(){return r.FetchMiddlewares},NoOpAnalyticsApi:function(){return r.NoOpAnalyticsApi},OAuthRequestManager:function(){return r.OAuthRequestManager},UnhandledErrorForwarder:function(){return r.UnhandledErrorForwarder},UrlPatternDiscovery:function(){return r.UrlPatternDiscovery},WebStorage:function(){return r.WebStorage},createFetchApi:function(){return r.createFetchApi},createSpecializedApp:function(){return i.b},FlatRoutes:function(){return a.w}});var r=n(56494);n.o(r,"AtlassianAuth")&&n.d(t,{AtlassianAuth:function(){return r.AtlassianAuth}}),n.o(r,"Auth0Auth")&&n.d(t,{Auth0Auth:function(){return r.Auth0Auth}}),n.o(r,"BitbucketAuth")&&n.d(t,{BitbucketAuth:function(){return r.BitbucketAuth}}),n.o(r,"FlatRoutes")&&n.d(t,{FlatRoutes:function(){return r.FlatRoutes}}),n.o(r,"GithubAuth")&&n.d(t,{GithubAuth:function(){return r.GithubAuth}}),n.o(r,"GitlabAuth")&&n.d(t,{GitlabAuth:function(){return r.GitlabAuth}}),n.o(r,"GoogleAuth")&&n.d(t,{GoogleAuth:function(){return r.GoogleAuth}}),n.o(r,"MicrosoftAuth")&&n.d(t,{MicrosoftAuth:function(){return r.MicrosoftAuth}}),n.o(r,"OAuth2")&&n.d(t,{OAuth2:function(){return r.OAuth2}}),n.o(r,"OktaAuth")&&n.d(t,{OktaAuth:function(){return r.OktaAuth}}),n.o(r,"OneLoginAuth")&&n.d(t,{OneLoginAuth:function(){return r.OneLoginAuth}}),n.o(r,"SamlAuth")&&n.d(t,{SamlAuth:function(){return r.SamlAuth}}),n.o(r,"createSpecializedApp")&&n.d(t,{createSpecializedApp:function(){return r.createSpecializedApp}});var i=n(44056);n.o(i,"AtlassianAuth")&&n.d(t,{AtlassianAuth:function(){return i.AtlassianAuth}}),n.o(i,"Auth0Auth")&&n.d(t,{Auth0Auth:function(){return i.Auth0Auth}}),n.o(i,"BitbucketAuth")&&n.d(t,{BitbucketAuth:function(){return i.BitbucketAuth}}),n.o(i,"FlatRoutes")&&n.d(t,{FlatRoutes:function(){return i.FlatRoutes}}),n.o(i,"GithubAuth")&&n.d(t,{GithubAuth:function(){return i.GithubAuth}}),n.o(i,"GitlabAuth")&&n.d(t,{GitlabAuth:function(){return i.GitlabAuth}}),n.o(i,"GoogleAuth")&&n.d(t,{GoogleAuth:function(){return i.GoogleAuth}}),n.o(i,"MicrosoftAuth")&&n.d(t,{MicrosoftAuth:function(){return i.MicrosoftAuth}}),n.o(i,"OAuth2")&&n.d(t,{OAuth2:function(){return i.OAuth2}}),n.o(i,"OktaAuth")&&n.d(t,{OktaAuth:function(){return i.OktaAuth}}),n.o(i,"OneLoginAuth")&&n.d(t,{OneLoginAuth:function(){return i.OneLoginAuth}}),n.o(i,"SamlAuth")&&n.d(t,{SamlAuth:function(){return i.SamlAuth}});var a=n(63938)},96176:function(e,t,n){"use strict";n.d(t,{y:function(){return a}});var r=n(17678);function i(e){return[...e].join(" ")}class a{discoveryApi;environment;provider;joinScopesFunc;authRequester;sessionTransform;constructor(e){const{discoveryApi:t,environment:n,provider:r,joinScopes:a=i,oauthRequestApi:o,sessionTransform:s=(e=>e)}=e;this.authRequester=o.createAuthRequester({provider:r,onAuthRequest:e=>this.showPopup(e)}),this.discoveryApi=t,this.environment=n,this.provider=r,this.joinScopesFunc=a,this.sessionTransform=s}async createSession(e){return e.instantPopup?this.showPopup(e.scopes):this.authRequester(e.scopes)}async refreshSession(){const e=await fetch(await this.buildUrl("/refresh",{optional:!0}),{headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch((e=>{throw new Error(`Auth refresh request failed, ${e}`)}));if(!e.ok){const t=new Error(`Auth refresh request failed, ${e.statusText}`);throw t.status=e.status,t}const t=await e.json();if(t.error){const e=new Error(t.error.message);throw t.error.name&&(e.name=t.error.name),e}return await this.sessionTransform(t)}async removeSession(){const e=await fetch(await this.buildUrl("/logout"),{method:"POST",headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch((e=>{throw new Error(`Logout request failed, ${e}`)}));if(!e.ok){const t=new Error(`Logout request failed, ${e.statusText}`);throw t.status=e.status,t}}async showPopup(e){const t=this.joinScopesFunc(e),n=await this.buildUrl("/start",{scope:t,origin:location.origin}),i=await(0,r.d)({url:n,name:`${this.provider.title} Login`,origin:new URL(n).origin,width:450,height:730});return await this.sessionTransform(i)}async buildUrl(e,t){const n=await this.discoveryApi.getBaseUrl("auth"),r=this.buildQueryString({...t,env:this.environment});return`${n}/${this.provider.id}${e}${r}`}buildQueryString(e){if(!e)return"";const t=Object.entries(e).map((([e,t])=>"string"==typeof t?`${encodeURIComponent(e)}=${encodeURIComponent(t)}`:t?encodeURIComponent(e):void 0)).filter(Boolean).join("&");return t?`?${t}`:""}}},91405:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var r=n(98005),i=n(36964);class a{subject=new r.X(i.SessionState.SignedOut);signedIn=!1;setIsSignedIn(e){this.signedIn!==e&&(this.signedIn=e,this.subject.next(this.signedIn?i.SessionState.SignedIn:i.SessionState.SignedOut))}sessionState$(){return this.subject}}},54842:function(e,t,n){"use strict";function r(e,t){for(const n of t)if(!e.has(n))return!1;return!0}n.d(t,{Hc:function(){return c},q2:function(){return o},k1:function(){return s}});class i{constructor(e){this.options=e}sessionExistsAndHasScope(e,t){return!!e&&(!t||(void 0===this.options.sessionScopes||r(this.options.sessionScopes(e),t)))}getExtendedScope(e,t){const n=new Set(this.options.defaultScopes);if(e&&void 0!==this.options.sessionScopes){const t=this.options.sessionScopes(e);for(const e of t)n.add(e)}if(t)for(const e of t)n.add(e);return n}}var a=n(91405);class o{connector;helper;sessionScopesFunc;sessionShouldRefreshFunc;stateTracker=new a.l;refreshPromise;currentSession;constructor(e){const{connector:t,defaultScopes:n=new Set,sessionScopes:r,sessionShouldRefresh:a}=e;this.connector=t,this.sessionScopesFunc=r,this.sessionShouldRefreshFunc=a,this.helper=new i({sessionScopes:r,defaultScopes:n})}async getSession(e){if(this.helper.sessionExistsAndHasScope(this.currentSession,e.scopes)){if(!this.sessionShouldRefreshFunc(this.currentSession))return this.currentSession;try{const e=await this.collapsedSessionRefresh(),t=this.sessionScopesFunc(this.currentSession);return r(this.sessionScopesFunc(e),t)&&(this.currentSession=e),e}catch(t){if(e.optional)return;throw t}}if(!this.currentSession&&!e.instantPopup)try{const t=await this.collapsedSessionRefresh();return this.currentSession=t,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(){if(this.refreshPromise)return this.refreshPromise;this.refreshPromise=this.connector.refreshSession();try{const e=await this.refreshPromise;return this.stateTracker.setIsSignedIn(!0),e}finally{delete this.refreshPromise}}}class s{connector;helper;stateTracker=new a.l;currentSession;constructor(e){const{connector:t,defaultScopes:n=new Set,sessionScopes:r}=e;this.connector=t,this.helper=new i({sessionScopes:r,defaultScopes:n})}setSession(e){this.currentSession=e,this.stateTracker.setIsSignedIn(Boolean(e))}async getSession(e){return this.helper.sessionExistsAndHasScope(this.currentSession,e.scopes)?this.currentSession:e.optional?void 0:(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,this.stateTracker.setIsSignedIn(!1)}sessionState$(){return this.stateTracker.sessionState$()}}class c{manager;storageKey;schema;sessionShouldRefreshFunc;helper;constructor(e){const{manager:t,storageKey:n,schema:r,sessionScopes:a,sessionShouldRefresh:o=(()=>!1)}=e;this.manager=t,this.storageKey=n,this.schema=r,this.sessionShouldRefreshFunc=o,this.helper=new i({sessionScopes:a,defaultScopes:new Set})}setSession(e){this.manager.setSession(e),this.saveSession(e)}async getSession(e){const{scopes:t}=e,n=this.loadSession();if(this.helper.sessionExistsAndHasScope(n,t)&&!this.sessionShouldRefreshFunc(n))return this.manager.setSession(n),n;const r=await this.manager.getSession(e);return this.saveSession(r),r}async removeSession(){localStorage.removeItem(this.storageKey),await this.manager.removeSession()}sessionState$(){return this.manager.sessionState$()}loadSession(){try{const e=localStorage.getItem(this.storageKey);if(e){const t=JSON.parse(e,((e,t)=>"Set"===t?.__type?new Set(t.__value):t));try{return this.schema.parse(t)}catch(e){throw console.log(`Failed to load session from local storage because it did not conform to the expected schema, ${e}`),e}}return}catch(e){return void localStorage.removeItem(this.storageKey)}}saveSession(e){if(void 0!==e){try{this.schema.parse(e)}catch(e){return void console.warn(`Failed to save session to local storage because it did not conform to the expected schema, ${e}`)}localStorage.setItem(this.storageKey,JSON.stringify(e,((e,t)=>t instanceof Set?{__type:"Set",__value:Array.from(t)}:t)))}else localStorage.removeItem(this.storageKey)}}},17678:function(e,t,n){"use strict";function r(e){return new Promise(((t,n)=>{const r=e.width||500,i=e.height||700,a=window.screen.width/2-r/2,o=window.screen.height/2-i/2,s=window.open(e.url,e.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${r},height=${i},top=${o},left=${a}`);let c="";if(!s||void 0===s.closed||s.closed){const e=new Error("Failed to open auth popup.");return e.name="PopupRejectedError",void n(e)}const l=r=>{if(r.source!==s)return;if(r.origin!==e.origin)return;const{data:i}=r;if("config_info"===i.type)return void(c=i.targetOrigin);if("authorization_response"!==i.type)return;const a=i;if("error"in a){const e=new Error(a.error.message);e.name=a.error.name,n(e)}else t(a.response);d()},u=setInterval((()=>{if(s.closed){const e="Login failed, "+(c&&c!==window.location.origin?`Incorrect app origin, expected ${c}`:"popup was closed"),t=new Error(e);t.name="PopupClosedError",n(t),d()}}),100);function d(){window.removeEventListener("message",l),clearInterval(u)}window.addEventListener("message",l)}))}n.d(t,{d:function(){return r}})},98005:function(e,t,n){"use strict";n.d(t,{J:function(){return a},X:function(){return o}});var r=n(82394),i=n.n(r);class a{isClosed=!1;terminatingError;observable=new(i())((e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(this.subscribers.add(e),()=>{this.subscribers.delete(e)})));subscribers=new Set;[Symbol.observable](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.subscribers.forEach((t=>t.next(e)))}error(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach((t=>t.error(e)))}complete(){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.subscribers.forEach((e=>e.complete()))}subscribe(e,t,n){const r="function"==typeof e?{next:e,error:t,complete:n}:e;return this.observable.subscribe(r)}}class o{isClosed;currentValue;terminatingError;observable;constructor(e){this.isClosed=!1,this.currentValue=e,this.terminatingError=void 0,this.observable=new(i())((e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(e.next(this.currentValue),this.subscribers.add(e),()=>{this.subscribers.delete(e)})))}subscribers=new Set;[Symbol.observable](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.currentValue=e,this.subscribers.forEach((t=>t.next(e)))}error(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach((t=>t.error(e)))}complete(){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.subscribers.forEach((e=>e.complete()))}subscribe(e,t,n){const r="function"==typeof e?{next:e,error:t,complete:n}:e;return this.observable.subscribe(r)}}},88934:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(36964),i=n(2784);const a=e=>{const{children:t}=e,n=(0,r.useApi)(r.featureFlagsApiRef),a="with"in e?n.isActive(e.with):!n.isActive(e.without);return i.createElement(i.Fragment,null,a?t:null)};(0,r.attachComponentData)(a,"core.featureFlagged",!0)},63938:function(e,t,n){"use strict";n.d(t,{w:function(){return o}});var r=n(2784),i=n(10289),a=n(36964);const o=e=>{const t=(0,a.useApp)(),{NotFoundErrorPage:n}=t.getComponents(),o=(0,a.useElementFilter)(e.children,(e=>e.getElements().flatMap((e=>{let t=e.props.path;return""===t?[]:(t=t?.replace(/\/\*$/,"")??"/",[{path:t,element:e,children:e.props.children?[{path:"/"===t?"/":"/*",element:e.props.children}]:void 0}])})).sort(((e,t)=>t.path.localeCompare(e.path))).map((e=>(e.path="/"===e.path?"/":`${e.path}/*`,e)))));return o.push({element:r.createElement(n,null),path:"/*"}),(0,i.V$)(o)};n(88934)},41682:function(e,t,n){"use strict";n.d(t,{Button:function(){return f},CodeSnippet:function(){return S},Content:function(){return rn},ContentHeader:function(){return Mn},CreateButton:function(){return L},DependencyGraph:function(){return ne},DependencyGraphTypes:function(){return r},EmptyState:function(){return fe},ErrorPage:function(){return Wn},ErrorPanel:function(){return $e},Header:function(){return Xn},HeaderIconLinkRow:function(){return je},HeaderLabel:function(){return nr},HeaderTabs:function(){return cn},InfoCard:function(){return mt},ItemCardGrid:function(){return or},ItemCardHeader:function(){return ir},Link:function(){return p},LogViewer:function(){return Ve},MissingAnnotationEmptyState:function(){return ge},OverflowTooltip:function(){return Qe},Page:function(){return lr},PageWithHeader:function(){return ur},Progress:function(){return Xe},ResponseErrorPanel:function(){return Ue},RoutedTabs:function(){return ln},Select:function(){return Zt},Sidebar:function(){return Er},SidebarContext:function(){return pr},SidebarDivider:function(){return Lr},SidebarItem:function(){return Zr},SidebarPage:function(){return Ar},SubvalueCell:function(){return dn},SupportButton:function(){return Xt},Table:function(){return Nn},UserIdentity:function(){return Ir},WarningPanel:function(){return Oe},sidebarConfig:function(){return dr},useQueryParamState:function(){return Wt}});var r={};n.r(r),n.d(r,{Nm:function(){return k},ht:function(){return F},LJ:function(){return C}});var i=n(2784),a=n(36964);n(19928);var o=n(79692),s=n(12420);(0,o.Z)((e=>(0,s.Z)({avatar:{width:"4rem",height:"4rem",color:"#fff",fontWeight:e.typography.fontWeightBold,letterSpacing:"1px",textTransform:"uppercase"}})),{name:"BackstageAvatar"});var c=n(77277),l=n(86689),u=n(62833);const d=e=>e instanceof Array?e.map(d).join(" ").trim():"object"==typeof e&&e?d(e?.props?.children):["string","number"].includes(typeof e)?String(e):"",p=i.forwardRef((({onClick:e,...t},n)=>{const r=(0,a.useAnalytics)(),o=String(t.to),s=d(t.children)||o,c=/^([a-z+.-]+):/.test(o),p=c&&!!/^https?:/.exec(o),h=t=>{e?.(t),r.captureEvent("click",s,{attributes:{to:o}})};return c?i.createElement(l.Z,{ref:n,href:o,onClick:h,...p?{target:"_blank",rel:"noopener"}:{},...t}):i.createElement(l.Z,{ref:n,component:u.rU,onClick:h,...t})})),h=i.forwardRef(((e,t)=>i.createElement(p,{ref:t,...e,color:"initial"}))),f=i.forwardRef(((e,t)=>i.createElement(c.Z,{ref:t,component:h,...e})));var m=n(60364),g=n(61837),y=n(80030),A=n(19353),v=n(99949);function b(e){const{text:t,tooltipDelay:n=1e3,tooltipText:r="Text copied to clipboard"}=e,o=(0,a.useApi)(a.errorApiRef),[s,c]=(0,i.useState)(!1),[{error:l},u]=(0,v.Z)();return(0,i.useEffect)((()=>{l&&o.post(l)}),[l,o]),i.createElement(i.Fragment,null,i.createElement(y.ZP,{id:"copy-test-tooltip",title:r,placement:"top",leaveDelay:n,onClose:()=>c(!1),open:s},i.createElement(g.Z,{onClick:e=>{e.stopPropagation(),c(!0),u(t)}},i.createElement(A.Z,null))))}var E=n(70813),w=n(26639),R=n(39595);function S(e){const{text:t,language:n,showLineNumbers:r=!1,highlightedNumbers:a,customStyle:o,showCopyCodeButton:s=!1}=e,c=(0,m.Z)(),l="dark"===c.palette.type?w.Z:R.Z,u="dark"===c.palette.type?"#256bf3":"#e6ffed";return i.createElement("div",{style:{position:"relative"}},i.createElement(E.Z,{customStyle:o,language:n,style:l,showLineNumbers:r,wrapLines:!0,lineNumberStyle:{color:c.palette.textVerySubtle},lineProps:e=>a?.includes(e)?{style:{backgroundColor:u}}:{}},t),s&&i.createElement("div",{style:{position:"absolute",top:0,right:0}},i.createElement(b,{text:t})))}var k,x,C,F,T=n(41156),Z=n(88188);function L(e){const{title:t,to:n}=e,r=(0,T.Z)((e=>e.breakpoints.down("xs")));return n?r?i.createElement(g.Z,{component:u.rU,color:"primary",title:t,size:"small",to:n},i.createElement(Z.Z,null)):i.createElement(c.Z,{component:u.rU,variant:"contained",color:"primary",to:n},t):null}!function(e){e.TOP_BOTTOM="TB",e.BOTTOM_TOP="BT",e.LEFT_RIGHT="LR",e.RIGHT_LEFT="RL"}(k||(k={})),function(e){e.UP_LEFT="UL",e.UP_RIGHT="UR",e.DOWN_LEFT="DL",e.DOWN_RIGHT="DR"}(x||(x={})),function(e){e.NETWORK_SIMPLEX="network-simplex",e.TIGHT_TREE="tight-tree",e.LONGEST_PATH="longest-path"}(C||(C={})),function(e){e.LEFT="l",e.RIGHT="r",e.CENTER="c"}(F||(F={}));var O=n(66283),P=n(36538),I=n(97963),$=n(46506),B=n.n($),N=n(54073),U=n.n(N),M=n(10368);const D=(0,o.Z)((e=>({node:{fill:e.palette.primary.light,stroke:e.palette.primary.light},text:{fill:e.palette.primary.contrastText}})),{name:"BackstageDependencyGraphDefaultNode"});function q({node:{id:e}}){const t=D(),[n,r]=i.useState(0),[a,o]=i.useState(0),s=i.useRef(null);i.useLayoutEffect((()=>{if(s.current){let{height:e,width:t}=s.current.getBBox();e=Math.round(e),t=Math.round(t),e===a&&t===n||(r(t),o(e))}}),[n,a]);const c=n+20,l=a+20;return i.createElement("g",null,i.createElement("rect",{className:t.node,width:c,height:l,rx:10}),i.createElement("text",{ref:s,className:t.text,y:l/2,x:c/2,textAnchor:"middle",alignmentBaseline:"middle"},e))}const z=(0,M.Z)((e=>({node:{transition:`${e.transitions.duration.shortest}ms`}})),{name:"BackstageDependencyGraphNode"}),j=e=>i.createElement(q,{...e});function W({render:e=j,setNode:t,node:n}){const{width:r,height:a,x:o=0,y:s=0}=n,c=n,l=z(),u=i.useRef(null);return i.useLayoutEffect((()=>{if(u.current){let{height:e,width:i}=u.current.getBBox();e=Math.round(e),i=Math.round(i),e===a&&i===r||t(n.id,{...n,height:e,width:i})}}),[n,r,a,t]),i.createElement("g",{ref:u,"data-testid":"node",className:l.node,transform:`translate(${o-r/2},${s-a/2})`},e({node:c}))}var H=n(40408),V=n(49810),_=n(19574),G=n.n(_);const K=(0,M.Z)((e=>({text:{fill:e.palette.textContrast}})),{name:"BackstageDependencyGraphDefaultLabel"});function J({edge:{label:e}}){const t=K();return i.createElement("text",{className:t.text,textAnchor:"middle"},e)}const Q=(0,M.Z)((e=>({path:{strokeWidth:2,stroke:e.palette.textSubtle,fill:"none",transition:`${e.transitions.duration.shortest}ms`},label:{transition:`${e.transitions.duration.shortest}ms`}})),{name:"BackstageDependencyGraphEdge"}),Y=e=>i.createElement(J,{...e}),X=H.Z().x((e=>e.x)).y((e=>e.y)).curve(V.Z);function ee({render:e=Y,setEdge:t,id:n,edge:r}){const{x:a=0,y:o=0,width:s,height:c,points:l}=r,u=r,d=Q(),p=i.useRef(null);i.useLayoutEffect((()=>{if(p.current){let{height:e,width:i}=p.current.getBBox();e=Math.round(e),i=Math.round(i),e===c&&i===s||t(n,{...r,height:e,width:i})}}),[r,c,s,t,n]);let h="";if(l){const e=l.filter((e=>G()(e.x)&&G()(e.y)));h=X(e)||""}return i.createElement(i.Fragment,null,h&&i.createElement("path",{"data-testid":"edge",className:d.path,markerEnd:"url(#arrow-marker)",d:h}),u.label?i.createElement("g",{ref:p,"data-testid":"label",className:d.label,transform:`translate(${a},${o})`},e({edge:u})):null)}const te="workspace";function ne(e){const{edges:t,nodes:n,renderNode:r,direction:a=k.TOP_BOTTOM,align:o,nodeMargin:s=50,edgeMargin:c=10,rankMargin:l=50,paddingX:u=0,paddingY:d=0,acyclicer:p,ranker:h=C.NETWORK_SIMPLEX,labelPosition:f=F.RIGHT,labelOffset:m=10,edgeRanks:g=1,edgeWeight:y=1,renderLabel:A,defs:v,zoom:b="enabled",...E}=e,w=(0,I.Z)(),[R,S]=i.useState(100),[x,T]=i.useState(100),Z=i.useRef(new(B().graphlib.Graph)),[L,$]=i.useState(Z.current.graph()?.width||0),[N,M]=i.useState(Z.current.graph()?.height||0),[D,q]=i.useState([]),[z,j]=i.useState([]),H=Math.max(L,R),V=Math.max(N,x),_=i.useMemo((()=>U()((e=>{if(!e)return;const t=P.Z(e),n=P.Z(e.getElementById(te));function r(){t.call(O.sP().scaleExtent([1,10]).on("zoom",(e=>{e.transform.x=Math.min(0,Math.max(e.transform.x,H-H*e.transform.k)),e.transform.y=Math.min(0,Math.max(e.transform.y,V-V*e.transform.k)),n.attr("transform",e.transform)})))}"enabled"===b?r():"enable-on-click"===b&&t.on("click",(()=>r()));const{width:i,height:a}=e.getBoundingClientRect();R!==i&&S(i),x!==a&&T(a)}),100)),[x,R,H,V,b]),G=i.useCallback((()=>{const e=Z.current.nodes(),r=Z.current.edges();e.forEach((e=>{n.some((t=>t.id===e))||Z.current.removeNode(e)})),r.forEach((e=>{t.some((t=>t.from===e.v&&t.to===e.w))||Z.current.removeEdge(e.v,e.w)})),n.forEach((e=>{const t=Z.current.nodes().find((t=>e.id===t));if(t&&Z.current.node(t)){const{width:n,height:r,x:i,y:a}=Z.current.node(t);Z.current.setNode(t,{...e,width:n,height:r,x:i,y:a})}else Z.current.setNode(e.id,{...e,width:0,height:0})})),t.forEach((e=>{Z.current.setEdge(e.from,e.to,{...e,label:e.label,width:0,height:0,labelpos:f,labeloffset:m,weight:y,minlen:g})}))}),[t,n,f,m,y,g]),K=i.useMemo((()=>U()((()=>{B().layout(Z.current);const{height:e,width:t}=Z.current.graph(),n=Math.max(0,e||0),r=Math.max(0,t||0);$(r),M(n),q(Z.current.nodes()),j(Z.current.edges())}),250,{leading:!0})),[]);function J(e,t){return Z.current.setNode(e,t),K(),Z.current}function Q(e,t){return Z.current.setEdge(e,t),K(),Z.current}return i.useEffect((()=>(Z.current.setGraph({rankdir:a,align:o,nodesep:s,edgesep:c,ranksep:l,marginx:u,marginy:d,acyclicer:p,ranker:h}),G(),K(),K.cancel)),[p,o,a,c,u,d,s,l,h,G,K]),i.createElement("svg",{ref:_,...E,width:"100%",height:V,viewBox:`0 0 ${H} ${V}`},i.createElement("defs",null,i.createElement("marker",{id:"arrow-marker",viewBox:"0 0 24 24",markerWidth:"14",markerHeight:"14",refX:"16",refY:"12",orient:"auto",markerUnits:"strokeWidth"},i.createElement("path",{fill:w.palette.textSubtle,d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),v),i.createElement("g",{id:te},i.createElement("svg",{width:L,height:N,y:V/2-N/2,x:H/2-L/2,viewBox:`0 0 ${L} ${N}`},z.map((e=>{const t=Z.current.edge(e);return t?i.createElement(ee,{key:`${e.v}-${e.w}`,id:e,setEdge:Q,render:A,edge:t}):null})),D.map((e=>{const t=Z.current.node(e);return t?i.createElement(W,{key:e,setNode:J,render:r,node:t}):null})))))}var re=n(72779),ie=n.n(re);(0,o.Z)((e=>({root:{padding:e.spacing(0),marginBottom:e.spacing(0),marginTop:e.spacing(0),display:"flex",flexFlow:"row nowrap"},topPosition:{position:"relative",marginBottom:e.spacing(6),marginTop:-e.spacing(3),zIndex:"unset"},icon:{fontSize:20},content:{width:"100%",maxWidth:"inherit",flexWrap:"nowrap"},message:{display:"flex",alignItems:"center",color:e.palette.banner.text,"& a":{color:e.palette.banner.link}},info:{backgroundColor:e.palette.banner.info},error:{backgroundColor:e.palette.banner.error},warning:{backgroundColor:e.palette.banner.warning??e.palette.banner.error}})),{name:"BackstageDismissableBanner"});var ae=n(60905),oe=n(90436),se=n(86284),ce=n(96465),le=n(19133),ue=n(3871);const de=(0,o.Z)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),pe=({missing:e})=>{const t=de();switch(e){case"field":return i.createElement("img",{src:se,className:t.generalImg,alt:"annotation is missing"});case"info":return i.createElement("img",{src:ce,alt:"no Information",className:t.generalImg});case"content":return i.createElement("img",{src:le,alt:"create Component",className:t.generalImg});case"data":return i.createElement("img",{src:ue,alt:"no Build",className:t.generalImg});default:return null}},he=(0,o.Z)((e=>({root:{backgroundColor:e.palette.background.default,padding:e.spacing(2,0,0,0)},action:{marginTop:e.spacing(2)},imageContainer:{position:"relative"}})),{name:"BackstageEmptyState"});function fe(e){const{title:t,description:n,missing:r,action:a}=e,o=he();return i.createElement(ae.Z,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:o.root,spacing:2},i.createElement(ae.Z,{item:!0,xs:12,md:6},i.createElement(ae.Z,{container:!0,direction:"column"},i.createElement(ae.Z,{item:!0,xs:!0},i.createElement(oe.Z,{variant:"h5"},t)),i.createElement(ae.Z,{item:!0,xs:!0},i.createElement(oe.Z,{variant:"body1"},n)),i.createElement(ae.Z,{item:!0,xs:!0,className:o.action},a))),i.createElement(ae.Z,{item:!0,xs:12,md:6,className:o.imageContainer},i.createElement(pe,{missing:r})))}const me=(0,o.Z)((e=>({code:{borderRadius:6,margin:`${e.spacing(2)}px 0px`,background:"dark"===e.palette.type?"#444":"#fff"}})),{name:"BackstageMissingAnnotationEmptyState"});function ge(e){const{annotation:t}=e,n=me(),r=i.createElement(i.Fragment,null,"The ",i.createElement("code",null,t)," annotation is missing. You need to add the annotation to your component if you want to enable this tool.");return i.createElement(fe,{missing:"field",title:"Missing Annotation",description:r,action:i.createElement(i.Fragment,null,i.createElement(oe.Z,{variant:"body1"},"Add the annotation to your component YAML as shown in the highlighted example below:"),i.createElement("div",{className:n.code},i.createElement(S,{text:"apiVersion: backstage.io/v1alpha1\nkind: Component\nmetadata:\n name: example\n description: example.com\n annotations:\n ANNOTATION: value\nspec:\n type: website\n lifecycle: production\n owner: user:guest".replace("ANNOTATION",t),language:"yaml",showLineNumbers:!0,highlightedNumbers:[6,7],customStyle:{background:"inherit",fontSize:"115%"}})),i.createElement(c.Z,{color:"primary",component:p,to:"https://backstage.io/docs/features/software-catalog/well-known-annotations"},"Read more"))})}var ye=n(11776),Ae=n(38402),ve=n(49378),be=n(41128),Ee=n(27616),we=n(8284),Re=n(70660),Se=n(91750),ke=n(38016);const xe=(e,t)=>("light"===t.palette.type?be._j:be.$n)(t.palette[e].light,.6),Ce=(e,t)=>("light"===t.palette.type?be.$n:be._j)(t.palette[e].light,.9),Fe=(0,o.Z)((e=>({root:{marginRight:e.spacing(1),fill:({severity:t})=>xe(t,e)}}))),Te=({severity:e})=>{const t=Fe({severity:e});return i.createElement(Se.Z,{classes:t})},Ze=({severity:e})=>{const t=Fe({severity:e});return i.createElement(ke.Z,{classes:t})},Le=(0,o.Z)((e=>({panel:{backgroundColor:({severity:t})=>Ce(t,e),color:({severity:t})=>xe(t,e),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:t})=>xe(t,e),fontWeight:"bold"},message:{width:"100%",display:"block",color:({severity:t})=>xe(t,e),backgroundColor:({severity:t})=>Ce(t,e)},details:{width:"100%",display:"block",color:e.palette.textContrast,backgroundColor:e.palette.background.default,border:`1px solid ${e.palette.border}`,padding:e.spacing(2),fontFamily:"sans-serif"}})),{name:"BackstageWarningPanel"});function Oe(e){const{severity:t="warning",title:n,message:r,children:a,defaultExpanded:o}=e,s=Le({severity:t}),c=(l=t).charAt(0).toLocaleUpperCase("en-US")+l.slice(1)+(n?`: ${n}`:"");var l;return i.createElement(Ee.Z,{defaultExpanded:o??!1,className:s.panel,role:"alert"},i.createElement(we.Z,{expandIcon:i.createElement(Ze,{severity:t}),className:s.summary},i.createElement(Te,{severity:t}),i.createElement(oe.Z,{className:s.summaryText,variant:"subtitle1"},c)),(r||a)&&i.createElement(Re.Z,null,i.createElement(ae.Z,{container:!0},r&&i.createElement(ae.Z,{item:!0,xs:12},i.createElement(oe.Z,{className:s.message,variant:"body1"},r)),a&&i.createElement(ae.Z,{item:!0,xs:12,className:s.details},a))))}const Pe=(0,o.Z)((e=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:e.spacing(2)},divider:{margin:e.spacing(2)}})),{name:"BackstageErrorPanel"}),Ie=({error:e,message:t,stack:n,children:r})=>{const a=Pe();return i.createElement(ye.Z,{dense:!0},i.createElement(Ae.Z,{alignItems:"flex-start"},i.createElement(ve.Z,{classes:{secondary:a.text},primary:"Error",secondary:e}),i.createElement(b,{text:e})),i.createElement(Ae.Z,{alignItems:"flex-start"},i.createElement(ve.Z,{classes:{secondary:a.text},primary:"Message",secondary:t}),i.createElement(b,{text:t})),n&&i.createElement(Ae.Z,{alignItems:"flex-start"},i.createElement(ve.Z,{classes:{secondary:a.text},primary:"Stack Trace",secondary:n}),i.createElement(b,{text:n})),r)};function $e(e){const{title:t,error:n,defaultExpanded:r,children:a}=e;return i.createElement(Oe,{severity:"error",title:t??n.message,defaultExpanded:r},i.createElement(Ie,{error:n.name,message:n.message,stack:n.stack,children:a}))}var Be=n(85256);const Ne=(0,o.Z)((e=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:e.spacing(2)},divider:{margin:e.spacing(2)}})),{name:"BackstageResponseErrorPanel"});function Ue(e){const{title:t,error:n,defaultExpanded:r}=e,a=Ne();if("ResponseError"!==n.name)return i.createElement($e,{title:t??n.message,defaultExpanded:r,error:n});const{data:o,cause:s}=n,{request:c,response:l}=o,u=`${l.statusCode}: ${s.name}`,d=c&&`${c.method} ${c.url}`,p=s.message.replace(/\\n/g,"\n"),h=s.stack?.replace(/\\n/g,"\n"),f=JSON.stringify(o,void 0,2);return i.createElement($e,{title:t??n.message,defaultExpanded:r,error:{name:u,message:p,stack:h}},d&&i.createElement(Ae.Z,{alignItems:"flex-start"},i.createElement(ve.Z,{classes:{secondary:a.text},primary:"Request",secondary:c?`${d}`:void 0}),i.createElement(b,{text:d})),i.createElement(i.Fragment,null,i.createElement(Be.Z,{component:"li",className:a.divider}),i.createElement(Ae.Z,{alignItems:"flex-start"},i.createElement(ve.Z,{classes:{secondary:a.text},primary:"Full Error as JSON"})),i.createElement(S,{language:"json",text:f,showCopyCodeButton:!0})))}n(9832),(0,o.Z)({"@keyframes pulsateSlightly":{"0%":{transform:"scale(1.0)"},"100%":{transform:"scale(1.1)"}},"@keyframes pulsateAndFade":{"0%":{transform:"scale(1.0)",opacity:.9},"100%":{transform:"scale(1.5)",opacity:0}},featureWrapper:{position:"relative"},backdrop:{zIndex:2e3,position:"fixed",overflow:"hidden",left:0,right:0,top:0,bottom:0},dot:{position:"absolute",backgroundColor:"transparent",borderRadius:"100%",border:"1px solid rgba(103, 146, 180, 0.98)",boxShadow:"0px 0px 0px 20000px rgba(0, 0, 0, 0.5)",zIndex:2001,transformOrigin:"center center",animation:"$pulsateSlightly 1744ms 1.2s cubic-bezier(0.4, 0, 0.2, 1) alternate infinite"},pulseCircle:{width:"100%",height:"100%",backgroundColor:"transparent",borderRadius:"100%",border:"2px solid white",zIndex:2001,transformOrigin:"center center",animation:"$pulsateAndFade 872ms 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite"},text:{position:"absolute",color:"white",zIndex:2003}},{name:"BackstageFeatureCalloutCircular"});var Me=n(35292);const De=(0,o.Z)((e=>({link:{display:"grid",justifyItems:"center",gridGap:4,textAlign:"center"},disabled:{color:"gray",cursor:"default"},primary:{color:e.palette.primary.main},secondary:{color:e.palette.secondary.main},label:{fontSize:"0.7rem",textTransform:"uppercase",fontWeight:600,letterSpacing:1.2}})),{name:"BackstageIconLinkVertical"});function qe({color:e="primary",disabled:t=!1,href:n="#",icon:r=i.createElement(Me.Z,null),label:a,onClick:o,title:s}){const c=De();return t?i.createElement(l.Z,{title:s,className:ie()(c.link,c.disabled),underline:"none"},r,i.createElement("span",{className:c.label},a)):i.createElement(l.Z,{title:s,className:ie()(c.link,c[e]),to:n,component:p,onClick:o},r,i.createElement("span",{className:c.label},a))}const ze=(0,o.Z)((e=>({links:{margin:e.spacing(2,0),display:"grid",gridAutoFlow:"column",gridAutoColumns:"min-content",gridGap:e.spacing(3)}})),{name:"BackstageHeaderIconLinkRow"});function je(e){const{links:t}=e,n=ze();return i.createElement("nav",{className:n.links},t.map(((e,t)=>i.createElement(qe,{key:t+1,...e}))))}const We=e=>{const t="dark"===e?"16%":"97%";return`\n hsl(0, 0%, ${t}) 0%,\n hsla(0, 0%, ${t}, 0.987) 8.1%,\n hsla(0, 0%, ${t}, 0.951) 15.5%,\n hsla(0, 0%, ${t}, 0.896) 22.5%,\n hsla(0, 0%, ${t}, 0.825) 29%,\n hsla(0, 0%, ${t}, 0.741) 35.3%,\n hsla(0, 0%, ${t}, 0.648) 41.2%,\n hsla(0, 0%, ${t}, 0.55) 47.1%,\n hsla(0, 0%, ${t}, 0.45) 52.9%,\n hsla(0, 0%, ${t}, 0.352) 58.8%,\n hsla(0, 0%, ${t}, 0.259) 64.7%,\n hsla(0, 0%, ${t}, 0.175) 71%,\n hsla(0, 0%, ${t}, 0.104) 77.5%,\n hsla(0, 0%, ${t}, 0.049) 84.5%,\n hsla(0, 0%, ${t}, 0.013) 91.9%,\n hsla(0, 0%, ${t}, 0) 100%\n `};(0,o.Z)((e=>({root:{position:"relative",display:"flex",flexFlow:"row nowrap",alignItems:"center"},container:{overflow:"auto",scrollbarWidth:0,"&::-webkit-scrollbar":{display:"none"}},fade:{position:"absolute",width:100,height:"calc(100% + 10px)",transition:"opacity 300ms",pointerEvents:"none"},fadeLeft:{left:-10,background:`linear-gradient(90deg, ${We(e.palette.type)})`},fadeRight:{right:-10,background:`linear-gradient(270deg, ${We(e.palette.type)})`},fadeHidden:{opacity:0},button:{position:"absolute"},buttonLeft:{left:-e.spacing(2)},buttonRight:{right:-e.spacing(2)}})),{name:"BackstageHorizontalScrollGrid"}),(0,o.Z)({alpha:{color:"#ffffff",fontFamily:"serif",fontWeight:"normal",fontStyle:"italic"},beta:{color:"#4d65cc",fontFamily:"serif",fontWeight:"normal",fontStyle:"italic"}},{name:"BackstageLifecycle"});const He=(0,i.lazy)((()=>Promise.all([n.e(8015),n.e(8718)]).then(n.bind(n,98718)).then((e=>({default:e.RealLogViewer})))));function Ve(e){const{Progress:t}=(0,a.useApp)().getComponents();return i.createElement(i.Suspense,{fallback:i.createElement(t,null)},i.createElement(He,{...e}))}(0,o.Z)((e=>({markdown:{"& table":{borderCollapse:"collapse",border:`1px solid ${e.palette.border}`},"& th, & td":{border:`1px solid ${e.palette.border}`,padding:e.spacing(1)},"& td":{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:e.spacing(3,2,3,2.5),borderBottom:0},"& th":{backgroundColor:e.palette.background.paper},"& tr":{backgroundColor:e.palette.background.paper},"& tr:nth-child(odd)":{backgroundColor:e.palette.background.default},"& a":{color:e.palette.link},"& img":{maxWidth:"100%"}}})),{name:"BackstageMarkdownContent"}),n(10179),(0,o.Z)((e=>({root:{paddingLeft:e.spacing(3)}})),{name:"BackstageLoginRequestListItem"}),(0,o.Z)((e=>({dialog:{paddingTop:e.spacing(1)},title:{minWidth:0},contentList:{padding:0},actionButtons:{padding:e.spacing(2,0)}})),{name:"OAuthRequestDialog"});var _e=n(15277),Ge=n.n(_e),Ke=n(87438);const Je=(0,o.Z)({container:{overflow:"visible !important"}},{name:"BackstageOverflowTooltip"});function Qe(e){const[t,n]=(0,i.useState)(!1),r=(0,Ke.Z)(),a=Je();return i.createElement(y.ZP,{title:e.title??(e.text||""),placement:e.placement,disableHoverListener:!t},i.createElement(Ge(),{text:e.text,line:e.line,onToggled:e=>{r()&&n(e)},containerClassName:a.container}))}var Ye=n(67358);function Xe(e){const[t,n]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{const e=setTimeout((()=>n(!0)),250);return()=>clearTimeout(e)}),[]),t?i.createElement(Ye.Z,{...e,"data-testid":"progress"}):i.createElement("div",{style:{display:"none"}})}var et=n(94339),tt=n(14503),nt=n(24579),rt=n(32552),it=n(15459),at=n(95544),ot=n(27597);const st=(0,o.Z)((e=>({root:{maxWidth:"fit-content",padding:e.spacing(2,2,2,2.5)},boxTitle:{margin:0,color:e.palette.textSubtle},arrow:{color:e.palette.textSubtle}})),{name:"BackstageBottomLink"});function ct(e){const{link:t,title:n,onClick:r}=e,a=st();return i.createElement("div",null,i.createElement(Be.Z,null),i.createElement(p,{to:t,onClick:r,underline:"none"},i.createElement(at.Z,{display:"flex",alignItems:"center",className:a.root},i.createElement(at.Z,{className:a.boxTitle,fontWeight:"fontWeightBold",m:1},i.createElement(oe.Z,null,i.createElement("strong",null,n))),i.createElement(ot.Z,{className:a.arrow}))))}const lt=e=>{const{slackChannel:t}=e;return t?"string"==typeof t?i.createElement(i.Fragment,null,"Please contact ",t," for help."):t.href?i.createElement(f,{to:t.href,variant:"contained"},t.name):i.createElement(i.Fragment,null,"Please contact ",t.name," for help."):null},ut=class extends i.Component{constructor(e){super(e),this.state={error:void 0,errorInfo:void 0}}componentDidCatch(e,t){console.error(`ErrorBoundary, error: ${e}, info: ${t}`),this.setState({error:e,errorInfo:t})}render(){const{slackChannel:e,children:t}=this.props,{error:n}=this.state;return n?i.createElement($e,{title:"Something Went Wrong",error:n},i.createElement(lt,{slackChannel:e})):t}},dt=(0,o.Z)((e=>({noPadding:{padding:0,"&:last-child":{paddingBottom:0}},header:{padding:e.spacing(2,2,2,2.5)},headerTitle:{fontWeight:700},headerSubheader:{paddingTop:e.spacing(1)},headerAvatar:{},headerAction:{},headerContent:{}})),{name:"BackstageInfoCard"}),pt=(0,it.Z)((e=>({root:{display:"inline-block",padding:e.spacing(8,8,0,0),float:"right"}})),{name:"BackstageInfoCardCardActionsTopRight"})(tt.Z),ht={flex:{display:"flex",flexDirection:"column"},fullHeight:{display:"flex",flexDirection:"column",height:"100%"},gridItem:{display:"flex",flexDirection:"column",height:"calc(100% - 10px)",marginBottom:"10px"}},ft={fullHeight:{flex:1},gridItem:{flex:1}};function mt(e){const{title:t,subheader:n,divider:r=!0,deepLink:a,slackChannel:o,errorBoundaryProps:s,variant:c,children:l,headerStyle:u,headerProps:d,action:p,actionsClassName:h,actions:f,cardClassName:m,actionsTopRight:g,className:y,noPadding:A,titleTypographyProps:v}=e,b=dt();let E={},w={};c&&c.split(/[\s]+/g).forEach((e=>{E={...E,...ht[e]},w={...w,...ft[e]}}));const R=s||(o?{slackChannel:o}:{});return i.createElement(et.Z,{style:E,className:y},i.createElement(ut,{...R},t&&i.createElement(rt.Z,{classes:{root:b.header,title:b.headerTitle,subheader:b.headerSubheader,avatar:b.headerAvatar,action:b.headerAction,content:b.headerContent},title:t,subheader:n,action:p,style:{...u},titleTypographyProps:v,...d}),g&&i.createElement(pt,null,g),r&&i.createElement(Be.Z,null),i.createElement(nt.Z,{className:ie()(m,{[b.noPadding]:A}),style:w},l),f&&i.createElement(tt.Z,{className:h},f),a&&i.createElement(ct,{...a})))}n(94137),(0,o.Z)((e=>({root:{position:"relative",lineHeight:0},overlay:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -60%)",fontSize:45,fontWeight:"bold",color:e.palette.textContrast},circle:{width:"80%",transform:"translate(10%, 0)"},colorUnknown:{}})),{name:"BackstageGauge"}),(0,o.Z)({root:{height:"100%",width:250}},{name:"BackstageGaugeCard"});var gt=n(21324),yt=n(7089),At=n(1292),vt=n(42494),bt=n(74603),Et=n(12231),wt=n(73698),Rt=n(72379);const St=(0,o.Z)((()=>(0,s.Z)({icon:{position:"absolute",right:"4px",pointerEvents:"none"}})),{name:"BackstageClosedDropdown"});var kt=()=>{const e=St();return i.createElement(Rt.Z,{className:e.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.5 8L6 9.5L12.0703 15.5703L18.1406 9.5L16.6406 8L12.0703 12.5703L7.5 8Z",fill:"#616161"}))};const xt=(0,o.Z)((()=>(0,s.Z)({icon:{position:"absolute",right:"4px",pointerEvents:"none"}})),{name:"BackstageOpenedDropdown"});var Ct=()=>{const e=xt();return i.createElement(Rt.Z,{className:e.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M16.5 16L18 14.5L11.9297 8.42969L5.85938 14.5L7.35938 16L11.9297 11.4297L16.5 16Z",fill:"#616161"}))};const Ft=(0,it.Z)((e=>(0,s.Z)({root:{"label + &":{marginTop:e.spacing(3)}},input:{borderRadius:4,position:"relative",backgroundColor:e.palette.background.paper,border:"1px solid #ced4da",fontSize:16,padding:"10px 26px 10px 12px",transition:e.transitions.create(["border-color","box-shadow"]),fontFamily:"Helvetica Neue","&:focus":{background:e.palette.background.paper,borderRadius:4}}})),{name:"BackstageSelectInputBase"})(bt.Z),Tt=(0,o.Z)((e=>(0,s.Z)({formControl:{margin:`${e.spacing(1)} 0px`,maxWidth:300},label:{transform:"initial",fontWeight:"bold",fontSize:14,fontFamily:e.typography.fontFamily,color:e.palette.text.primary,"&.Mui-focused":{color:e.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}})),{name:"BackstageSelect"});function Zt(e){const{multiple:t,items:n,label:r,placeholder:a,selected:o,onChange:s,triggerReset:c,native:l=!1,disabled:u=!1}=e,d=Tt(),[p,h]=(0,i.useState)(o||(t?[]:"")),[f,m]=(0,i.useState)(!1);(0,i.useEffect)((()=>{h(t?[]:"")}),[c,t]),(0,i.useEffect)((()=>{void 0!==o&&h(o)}),[o]);const g=e=>()=>{const t=p.filter((t=>t!==e));h(t),s(t)};return i.createElement("div",{className:d.root},i.createElement(oe.Z,{variant:"button"},r),i.createElement(At.Z,{onClickAway:()=>{m(!1)}},i.createElement(vt.Z,{className:d.formControl},i.createElement(wt.Z,{value:p,native:l,disabled:u,"data-testid":"select",displayEmpty:!0,multiple:t,onChange:e=>{h(e.target.value),s(e.target.value)},onClick:e=>{u?e.preventDefault():m((n=>!(!t||e.target instanceof HTMLElement)||!n))},open:f,input:i.createElement(Ft,null),renderValue:e=>t&&0!==p.length?i.createElement("div",{className:d.chips},e.map((e=>i.createElement(yt.Z,{key:n.find((t=>t.value===e))?.value,label:n.find((t=>t.value===e))?.label,clickable:!0,onDelete:g(e),className:d.chip})))):i.createElement(oe.Z,null,0===p.length?a||"":n.find((t=>t.value===e))?.label),IconComponent:()=>f?i.createElement(Ct,null):i.createElement(kt,null),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null}},a&&!t&&i.createElement(Et.Z,{value:[]},a),l?n&&n.map((e=>i.createElement("option",{value:e.value,key:e.value},e.label))):n&&n.map((e=>i.createElement(Et.Z,{key:e.value,value:e.value},t&&i.createElement(gt.Z,{color:"primary",checked:p.includes(e.value)||!1,className:d.checkbox}),e.label)))))))}const Lt=()=>{};i.createContext({stepperLength:0,stepIndex:0,setStepIndex:Lt,stepHistory:[],setStepHistory:Lt,onStepChange:Lt}),(0,o.Z)((e=>({root:{marginTop:e.spacing(3),"& button":{marginRight:e.spacing(1)}}})),{name:"BackstageSimpleStepperFooter"}),(0,o.Z)((e=>({end:{padding:e.spacing(3)}})),{name:"SimpleStepperStep"}),(0,o.Z)((e=>({status:{fontWeight:500,"&::before":{width:"0.7em",height:"0.7em",display:"inline-block",marginRight:8,borderRadius:"50%",content:'""'}},ok:{"&::before":{backgroundColor:e.palette.status.ok}},warning:{"&::before":{backgroundColor:e.palette.status.warning}},error:{"&::before":{backgroundColor:e.palette.status.error}},pending:{"&::before":{backgroundColor:e.palette.status.pending}},running:{"&::before":{backgroundColor:e.palette.status.running}},aborted:{"&::before":{backgroundColor:e.palette.status.aborted}}})),{name:"BackstageStatus"}),n(74600);var Ot=n(15584);(0,it.Z)((e=>(0,s.Z)({root:{fontWeight:"bolder",whiteSpace:"nowrap",paddingRight:e.spacing(4),border:"0",verticalAlign:"top"}})),{name:"BackstageMetadataTableTitleCell"})(Ot.Z),(0,it.Z)({root:{border:"0",verticalAlign:"top"}},{name:"BackstageMetadataTableCell"})(Ot.Z);const Pt=(0,it.Z)((e=>(0,s.Z)({root:{listStyle:"none",margin:e.spacing(0,0,-1,0),padding:"0"}})),{name:"BackstageMetadataTableList"})((({classes:e,children:t})=>i.createElement("ul",{className:e.root},t))),It=((0,it.Z)((e=>(0,s.Z)({root:{padding:e.spacing(0,0,1,0)},random:{}})),{name:"BackstageMetadataTableListItem"})((({classes:e,children:t})=>i.createElement("li",{className:e.root},t))),(0,s.Z)({root:{margin:"0 0",listStyleType:"none"}}));(0,it.Z)(It,{name:"BackstageStructuredMetadataTableList"})((({classes:e,children:t})=>i.createElement(Pt,{classes:e},t))),(0,it.Z)((e=>(0,s.Z)({root:{...It.root,paddingLeft:e.spacing(1)}})),{name:"BackstageStructuredMetadataTableNestedList"})((({classes:e,children:t})=>i.createElement(Pt,{classes:e},t)));var $t=n(49429),Bt=n(86136),Nt=n(79784),Ut=n(76635),Mt=n(19126),Dt=n.n(Mt),qt=n(98331);function zt(e){return Dt().parse(e,{ignoreQueryPrefix:!0,strictNullHandling:!0})}function jt(e,t){return zt(e)[t]}function Wt(e,t=250){const[n,r]=(0,u.lr)(),a=n.toString(),[o,s]=(0,i.useState)(jt(a,e));return(0,i.useEffect)((()=>{const t=jt(a,e);s((e=>(0,Ut.isEqual)(t,e)?e:t))}),[a,s,e]),(0,qt.Z)((()=>{const t=function(e,t,n){return r={...zt(e),[t]:n},Dt().stringify(r,{strictNullHandling:!0});var r}(a,e,o);a!==t&&r(t,{replace:!0})}),t,[r,o,a,e]),[o,s]}const Ht={url:"https://github.com/backstage/backstage/issues",items:[{title:"Support Not Configured",icon:"warning",links:[{title:"Add `app.support` config key",url:"https://github.com/andrewthauer/backstage/blob/master/app-config.yaml"}]}]};function Vt(){const e=(0,a.useApi)(a.configApiRef).getOptionalConfig("app.support");return e?{url:e.getString("url"),items:e.getConfigArray("items").flatMap((e=>({title:e.getString("title"),icon:e.getOptionalString("icon"),links:(e.getOptionalConfigArray("links")??[]).flatMap((e=>({url:e.getString("url"),title:e.getString("title")})))})))}:Ht}var _t=n(80079);function Gt(e){return function(e,t){const n=(0,a.useApp)().getSystemIcon(e);return n?i.createElement(n,{...t}):i.createElement(_t.Z,{...t})}("help",e)}const Kt=(0,o.Z)({popoverList:{minWidth:260,maxWidth:400}},{name:"BackstageSupportButton"}),Jt=({icon:e})=>{const t=(0,a.useApp)(),n=e?t.getSystemIcon(e)??Gt:Gt;return i.createElement(n,null)},Qt=({link:e})=>i.createElement(p,{to:e.url},e.title??e.url),Yt=({item:e})=>i.createElement(Ae.Z,null,i.createElement(Bt.Z,null,i.createElement(Jt,{icon:e.icon})),i.createElement(ve.Z,{primary:e.title,secondary:e.links?.reduce(((e,t,n)=>[...e,n>0&&i.createElement("br",{key:n}),i.createElement(Qt,{link:t,key:t.url})]),[])}));function Xt(e){const{title:t,children:n}=e,{items:r}=Vt(),[a,o]=(0,i.useState)(!1),[s,l]=(0,i.useState)(null),u=Kt(),d=(0,T.Z)((e=>e.breakpoints.down("sm"))),p=e=>{l(e.currentTarget),o(!0)},h=()=>{o(!1)};return i.createElement(i.Fragment,null,i.createElement(at.Z,{display:"flex",ml:1},d?i.createElement(g.Z,{color:"primary",size:"small",onClick:p,"data-testid":"support-button"},i.createElement(Gt,null)):i.createElement(c.Z,{"data-testid":"support-button",color:"primary",onClick:p,startIcon:i.createElement(Gt,null)},"Support")),i.createElement(Nt.ZP,{"data-testid":"support-button-popover",open:a,anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:h},i.createElement(ye.Z,{className:u.popoverList},t&&i.createElement(Ae.Z,{alignItems:"flex-start"},i.createElement(oe.Z,{variant:"subtitle1"},t)),i.Children.map(n,((e,t)=>i.createElement(Ae.Z,{alignItems:"flex-start",key:`child-${t}`},e))),r&&r.map(((e,t)=>i.createElement(Yt,{item:e,key:`item-${t}`})))),i.createElement($t.Z,null,i.createElement(c.Z,{color:"primary",onClick:h},"Close"))))}var en=n(18671),tn=n(10289);const nn=(0,o.Z)((e=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:e.spacing(3),paddingBottom:e.spacing(3),paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}})),{name:"BackstageContent"});function rn(e){const{className:t,stretch:n,noPadding:r,children:a,...o}=e,s=nn();return i.createElement("article",{...o,className:ie()(s.root,t,{[s.stretch]:n,[s.noPadding]:r})},a)}var an=n(6487),on=n(99152);const sn=(0,o.Z)((e=>({tabsWrapper:{gridArea:"pageSubheader",backgroundColor:e.palette.background.paper,paddingLeft:e.spacing(3)},defaultTab:{padding:e.spacing(3,3),...e.typography.caption,textTransform:"uppercase",fontWeight:"bold",color:e.palette.text.secondary},selected:{color:e.palette.text.primary},tabRoot:{"&:hover":{backgroundColor:e.palette.background.default,color:e.palette.text.primary}}})),{name:"BackstageHeaderTabs"});function cn(e){const{tabs:t,onChange:n,selectedIndex:r}=e,[a,o]=(0,i.useState)(r??0),s=sn();return(0,i.useEffect)((()=>{void 0!==r&&o(r)}),[r]),i.createElement("div",{className:s.tabsWrapper},i.createElement(on.Z,{selectionFollowsFocus:!0,indicatorColor:"primary",textColor:"inherit",variant:"scrollable",scrollButtons:"auto","aria-label":"scrollable auto tabs example",onChange:(e,t)=>{void 0===r&&o(t),n&&n(t)},value:a},t.map(((e,t)=>i.createElement(an.Z,{...e.tabProps,"data-testid":`header-tab-${t}`,label:e.label,key:e.id,value:t,className:s.defaultTab,classes:{selected:s.selected,root:s.tabRoot}})))))}function ln(e){const{routes:t}=e,n=(0,tn.s0)(),{index:r,route:a,element:o}=function(e){const t=(0,tn.UO)(),n=e.map((({path:e,children:t})=>({caseSensitive:!1,path:`${e}/*`,element:t}))).sort(((e,t)=>t.path.replace(/\/\*$/,"").localeCompare(e.path.replace(/\/\*$/,"")))),r=(0,tn.V$)(n)??e[0].children,[i]=(0,tn.fp)(n,`/${t["*"]}`)??[],a=i?e.findIndex((e=>`${e.path}/*`===i.route.path)):0;return{index:-1===a?0:a,element:r,route:e[a]??e[0]}}(t),s=(0,i.useMemo)((()=>t.map((e=>({id:e.path,label:e.title,tabProps:e.tabProps})))),[t]);return i.createElement(i.Fragment,null,i.createElement(cn,{tabs:s,selectedIndex:r,onChange:e=>n(t[e].path.replace(/\/\*$/,"").replace(/^\//,""))}),i.createElement(rn,null,i.createElement(en.q,{title:a.title}),o))}(0,a.attachComponentData)((()=>null),"core.gatherMountPoints",!0);const un=(0,o.Z)((e=>({value:{marginBottom:"6px"},subvalue:{color:e.palette.textSubtle,fontWeight:"normal"}})),{name:"BackstageSubvalueCell"});function dn(e){const{value:t,subvalue:n}=e,r=un();return i.createElement(i.Fragment,null,i.createElement("div",{className:r.value},t),i.createElement("div",{className:r.subvalue},n))}var pn=n(21070),hn=n(90324),fn=n(98281),mn=n(48049),gn=n(51209),yn=n(33375),An=n(44233),vn=n(27604),bn=n(36444),En=n(37971),wn=n(59709),Rn=n(17373),Sn=n(3702),kn=n(93111),xn=n(67222);const Cn=(0,o.Z)((e=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:e.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:"60px",justifyContent:"space-between",borderBottom:`1px solid ${e.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:e.spacing(2)}}})),{name:"BackstageTableFilters"}),Fn=e=>{const t=Cn(),{onChangeFilters:n}=e,[r,a]=(0,i.useState)({...e.selectedFilters}),[o,s]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{n(r)}),[r,n]),i.createElement("div",{className:t.root},i.createElement("div",{className:t.header},i.createElement("div",{className:t.value},"Filters"),i.createElement(c.Z,{color:"primary",onClick:()=>{a({}),s((e=>!e))}},"Clear all")),i.createElement("div",{className:t.filters},e.filters?.length&&e.filters.map((e=>i.createElement(Zt,{triggerReset:o,key:e.element.label,...e.element,selected:r[e.element.label],onChange:t=>a({...r,[e.element.label]:t})})))))},Tn={Add:(0,i.forwardRef)(((e,t)=>i.createElement(pn.Z,{...e,ref:t}))),Check:(0,i.forwardRef)(((e,t)=>i.createElement(fn.Z,{...e,ref:t}))),Clear:(0,i.forwardRef)(((e,t)=>i.createElement(yn.Z,{...e,ref:t}))),Delete:(0,i.forwardRef)(((e,t)=>i.createElement(An.Z,{...e,ref:t}))),DetailPanel:(0,i.forwardRef)(((e,t)=>i.createElement(gn.Z,{...e,ref:t}))),Edit:(0,i.forwardRef)(((e,t)=>i.createElement(vn.Z,{...e,ref:t}))),Export:(0,i.forwardRef)(((e,t)=>i.createElement(Sn.Z,{...e,ref:t}))),Filter:(0,i.forwardRef)(((e,t)=>i.createElement(bn.Z,{...e,ref:t}))),FirstPage:(0,i.forwardRef)(((e,t)=>i.createElement(En.Z,{...e,ref:t}))),LastPage:(0,i.forwardRef)(((e,t)=>i.createElement(wn.Z,{...e,ref:t}))),NextPage:(0,i.forwardRef)(((e,t)=>i.createElement(gn.Z,{...e,ref:t}))),PreviousPage:(0,i.forwardRef)(((e,t)=>i.createElement(mn.Z,{...e,ref:t}))),ResetSearch:(0,i.forwardRef)(((e,t)=>i.createElement(yn.Z,{...e,ref:t}))),Search:(0,i.forwardRef)(((e,t)=>i.createElement(bn.Z,{...e,ref:t}))),SortArrow:(0,i.forwardRef)(((e,t)=>i.createElement(hn.Z,{...e,ref:t}))),ThirdStateCheck:(0,i.forwardRef)(((e,t)=>i.createElement(Rn.Z,{...e,ref:t}))),ViewColumn:(0,i.forwardRef)(((e,t)=>i.createElement(kn.Z,{...e,ref:t})))};function Zn(e,t){const n=t.split(".");let r=e[n[0]];for(let e=1;e<n.length;++e){if(void 0===r)return r;r=r[n[e]]}return r}const Ln=(0,it.Z)((e=>({header:{padding:e.spacing(1,2,1,2.5),borderTop:`1px solid ${e.palette.grey.A100}`,borderBottom:`1px solid ${e.palette.grey.A100}`,color:e.palette.textSubtle,fontWeight:e.typography.fontWeightBold,position:"static",wordBreak:"normal"}})),{name:"BackstageTableHeader"})(xn.W$),On=(0,it.Z)((e=>({root:{padding:e.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:"bold"}},searchField:{paddingRight:e.spacing(2)}})),{name:"BackstageTableToolbar"})(xn.UW),Pn=(0,o.Z)((()=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:"bold",fontSize:18,whiteSpace:"nowrap"}})),{name:"BackstageTableFiltersContainer"}),In=(0,o.Z)((()=>({root:{display:"flex",alignItems:"start"}})),{name:"BackstageTable"}),$n={search:"",filtersOpen:!1,filters:{}};function Bn(e){const{toolbarRef:t,setSearch:n,hasFilters:r,selectedFiltersLength:a,toggleFilters:o}=e,s=Pn(),c=(0,i.useCallback)((t=>{e.onSearchChanged(t),n(t)}),[e,n]);return r?i.createElement("div",{className:s.root},i.createElement("div",{className:s.root},i.createElement(g.Z,{onClick:o,"aria-label":"filter list"},i.createElement(bn.Z,null)),i.createElement(oe.Z,{className:s.title},"Filters (",a,")")),i.createElement(On,{...e,ref:t,onSearchChanged:c})):i.createElement(On,{...e,ref:t,onSearchChanged:c})}function Nn(e){const{data:t,columns:n,options:r,title:a,subtitle:o,filters:s,initialState:c,emptyContent:l,onStateChange:u,...d}=e,p=In(),h=(0,m.Z)(),f={...$n,...c},[g,y]=(0,i.useState)(f.filtersOpen),A=(0,i.useCallback)((()=>y((e=>!e))),[y]),[v,b]=(0,i.useState)(0),[E,w]=(0,i.useState)(t),[R,S]=(0,i.useState)(f.filters),k=function(e,t){return e.map((e=>{const n={};let r=e.cellStyle||{};if(e.highlight)if(n.color=t.palette.textContrast,"object"==typeof r)r.fontWeight=t.typography.fontWeightBold;else{const e=r;r=(n,r,i)=>({...e(n,r,i),fontWeight:t.typography.fontWeightBold})}return{...e,headerStyle:n,cellStyle:r}}))}(n,h),[x,C]=(0,i.useState)(f.search);(0,i.useEffect)((()=>{if(u){const e=function(e,t){return(0,Ut.transform)(e,((e,n,r)=>{(0,Ut.isEqual)(n,t[r])||(e[r]=n)}))}({search:x,filtersOpen:g,filters:R},$n);u(e)}}),[x,g,R,u]);const F=(0,i.useCallback)((e=>n.find((t=>t.title===e))?.field),[n]);(0,i.useEffect)((()=>{if("function"==typeof t)return;if(!R)return void w(t);const e=Object.values(R);if(t&&e.flat().length){const e=t.filter((e=>!!Object.entries(R).filter((([,e])=>!!e.length)).every((([t,n])=>{const r=Zn(e,F(t));return Array.isArray(r)&&Array.isArray(n)?r.some((e=>n.includes(e))):Array.isArray(r)?r.includes(n):Array.isArray(n)?n.includes(r):r===n}))));w(e)}else w(t);b(e.flat().length)}),[t,R,F]);const T=!!s?.length,Z=(0,i.useCallback)((e=>i.createElement(Bn,{setSearch:C,hasFilters:T,selectedFiltersLength:v,toggleFilters:A,...e})),[A,T,v,C]),L="function"!=typeof t&&0===t.length,O=n.length,P=(0,i.useCallback)((e=>l&&L?i.createElement("tbody",null,i.createElement("tr",null,i.createElement("td",{colSpan:O},l))):i.createElement(xn.os,{...e})),[L,l,O]);return i.createElement("div",{className:p.root},g&&t&&"function"!=typeof t&&s?.length&&i.createElement(Fn,{filters:((e,t)=>{const n=e=>{const n=new Set,r=e=>{null!=e&&n.add(e)};return t&&t.forEach((t=>{const n=Zn(t,F(e));Array.isArray(n)?n.forEach(r):r(n)})),n},r=e=>({placeholder:"All results",label:e.column,multiple:"multiple-select"===e.type,items:[...n(e.column)].sort().map((e=>({label:e,value:e})))});return e.map((e=>({type:e.type,element:r(e)})))})(s,t),selectedFilters:R,onChangeFilters:S}),i.createElement(xn.ZP,{components:{Header:Ln,Toolbar:Z,Body:P},options:{headerStyle:{textTransform:"uppercase"},...r},columns:k,icons:Tn,title:i.createElement(i.Fragment,null,i.createElement(oe.Z,{variant:"h5",component:"h3"},a),o&&i.createElement(oe.Z,{color:"textSecondary",variant:"body1"},o)),data:"function"==typeof t?t:E,style:{width:"100%"},localization:{toolbar:{searchPlaceholder:"Filter"}},...d}))}(0,o.Z)((()=>({root:{color:"#6E6E6E",overflow:"visible",fontSize:"1.5rem",textAlign:"center",borderRadius:"50%",backgroundColor:"#E6E6E6",marginLeft:e=>e.isNext?"auto":"0",marginRight:e=>e.isNext?"0":"10px","&:hover":{backgroundColor:"#E6E6E6",opacity:"1"}}})),{name:"BackstageTabIcon"}),(0,o.Z)((e=>({root:{textTransform:"none",height:"64px",fontWeight:e.typography.fontWeightBold,fontSize:e.typography.pxToRem(13),color:e.palette.textSubtle,marginLeft:e=>{return t=e.isFirstNav,e.isFirstIndex?t?"20px":"0":"40px";var t},width:"130px",minWidth:"130px","&:hover":{outline:"none",backgroundColor:"transparent",color:e.palette.textSubtle}}}))),(0,o.Z)((e=>({indicator:{display:"flex",justifyContent:"center",backgroundColor:e.palette.tabbar.indicator,height:"4px"},flexContainer:{alignItems:"center"},root:{"&:last-child":{marginLeft:"auto"}}})),{name:"BackstageTabBar"}),(0,o.Z)((e=>({root:{flexGrow:1,width:"100%"},styledTabs:{backgroundColor:e.palette.background.paper},appbar:{boxShadow:"none",backgroundColor:e.palette.background.paper,paddingLeft:"10px",paddingRight:"10px"}})),{name:"BackstageTabs"}),n(44311);const Un=({title:e="Unknown page",className:t})=>i.createElement(oe.Z,{variant:"h4",component:"h2",className:t,"data-testid":"header-title"},e);function Mn(e){const{description:t,title:n,titleComponent:r,children:a,textAlign:s="left"}=e,c=(e=>(0,o.Z)((t=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:t.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:t.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}})),{name:"BackstageContentHeader"}))({textAlign:s})(),l=r||i.createElement(Un,{title:n,className:c.title});return i.createElement(i.Fragment,null,i.createElement(en.q,{title:n}),i.createElement("div",{className:c.container},i.createElement("div",{className:c.leftItemsBox},l,t&&i.createElement(oe.Z,{className:c.description,variant:"body2"},t)),i.createElement("div",{className:c.rightItemsBox},a)))}var Dn=n(29788);const qn=(0,o.Z)((e=>({micDrop:{maxWidth:"60%",position:"absolute",bottom:e.spacing(2),right:e.spacing(2),[e.breakpoints.down("xs")]:{maxWidth:"96%",position:"relative",bottom:"unset",right:"unset",margin:`${e.spacing(10)}px auto ${e.spacing(4)}px`}}})),{name:"BackstageErrorPageMicDrop"}),zn=()=>{const e=qn();return i.createElement("img",{src:Dn,className:e.micDrop,alt:"Girl dropping mic from her hands"})},jn=(0,o.Z)((e=>({container:{padding:e.spacing(8),[e.breakpoints.down("xs")]:{padding:e.spacing(2)}},title:{paddingBottom:e.spacing(5),[e.breakpoints.down("xs")]:{paddingBottom:e.spacing(4),fontSize:32}},subtitle:{color:e.palette.textSubtle}})),{name:"BackstageErrorPage"});function Wn(e){const{status:t,statusMessage:n,additionalInfo:r}=e,a=jn(),o=(0,tn.s0)(),s=Vt();return i.createElement(ae.Z,{container:!0,spacing:0,className:a.container},i.createElement(zn,null),i.createElement(ae.Z,{item:!0,xs:12,sm:8,md:4},i.createElement(oe.Z,{"data-testid":"error",variant:"body1",className:a.subtitle},"ERROR ",t,": ",n),i.createElement(oe.Z,{variant:"body1",className:a.subtitle},r),i.createElement(oe.Z,{variant:"h2",className:a.title},"Looks like someone dropped the mic!"),i.createElement(oe.Z,{variant:"h6"},i.createElement(p,{to:"#","data-testid":"go-back-link",onClick:()=>o(-1)},"Go back"),"... or please ",i.createElement(p,{to:s.url},"contact support")," if you think this is a bug.")))}var Hn=n(16173);const Vn=(0,it.Z)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(oe.Z),_n=(0,it.Z)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(at.Z);function Gn(e){const{children:t,...n}=e,[r,a]=i.useState(null),o=i.Children.toArray(t),[s,c,...l]=o,u=l.length?l.pop():o[o.length-1],d=o.length>3,p=Boolean(r);return i.createElement(i.Fragment,null,i.createElement(Hn.Z,{"aria-label":"breadcrumb",...n},o.length>1&&i.createElement(_n,{clone:!0},s),o.length>2&&i.createElement(_n,{clone:!0},c),d&&i.createElement(Vn,{onClick:e=>{a(e.currentTarget)}},"..."),i.createElement(at.Z,{style:{fontStyle:"italic"}},u)),i.createElement(Nt.ZP,{open:p,anchorEl:r,onClose:()=>{a(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},i.createElement(ye.Z,null,l.map(((e,t)=>i.createElement(Ae.Z,{key:t,button:!0},i.createElement(_n,{clone:!0},e)))))))}const Kn=(0,o.Z)((e=>({header:{gridArea:"pageHeader",padding:e.spacing(3),width:"100%",boxShadow:e.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",backgroundImage:e.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover"},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto"},title:{color:e.palette.bursts.fontColor,wordBreak:"break-all",fontSize:e.typography.h3.fontSize,marginBottom:0},subtitle:{color:e.palette.common.white,opacity:.8,display:"inline-block",marginTop:e.spacing(1)},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:e.spacing(1),color:e.palette.bursts.fontColor},breadcrumb:{color:e.palette.bursts.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-e.spacing(.3),marginBottom:e.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-e.spacing(.3),marginBottom:e.spacing(.3)}})),{name:"BackstageHeader"}),Jn=({type:e,typeLink:t,classes:n,pageTitle:r})=>e?t?i.createElement(Gn,{className:n.breadcrumb},i.createElement(p,{to:t},e),i.createElement(oe.Z,null,r)):i.createElement(oe.Z,{className:n.type},e):null,Qn=({pageTitle:e,classes:t,tooltip:n})=>{const r=i.createElement(oe.Z,{className:t.title,variant:"h1"},e);return n?i.createElement(y.ZP,{title:n,placement:"top-start"},r):r},Yn=({classes:e,subtitle:t})=>t?"string"!=typeof t?i.createElement(i.Fragment,null,t):i.createElement(oe.Z,{className:e.subtitle,variant:"subtitle2",component:"span"},t):null;function Xn(e){const{children:t,pageTitleOverride:n,style:r,subtitle:o,title:s,tooltip:c,type:l,typeLink:u}=e,d=Kn(),p=(0,a.useApi)(a.configApiRef).getOptionalString("app.title")||"Backstage",h=n||s,f=s||n,m=`${h} | %s | ${p}`,g=`${h} | ${p}`;return i.createElement(i.Fragment,null,i.createElement(en.q,{titleTemplate:m,defaultTitle:g}),i.createElement("header",{style:r,className:d.header},i.createElement(at.Z,{className:d.leftItemsBox},i.createElement(Jn,{classes:d,type:l,typeLink:u,pageTitle:f}),i.createElement(Qn,{classes:d,pageTitle:f,tooltip:c}),i.createElement(Yn,{classes:d,subtitle:o})),i.createElement(ae.Z,{container:!0,className:d.rightItemsBox,spacing:4},t)))}const er=(0,o.Z)((e=>({root:{textAlign:"left"},label:{color:e.palette.common.white,fontWeight:"bold",letterSpacing:0,fontSize:e.typography.fontSize,marginBottom:e.spacing(1)/2,lineHeight:1},value:{color:"rgba(255, 255, 255, 0.8)",fontSize:e.typography.fontSize,lineHeight:1}})),{name:"BackstageHeaderLabel"}),tr=({value:e,className:t})=>i.createElement(oe.Z,{className:t},e);function nr(e){const{label:t,value:n,url:r}=e,a=er(),o=i.createElement(tr,{className:a.value,value:n||"<Unknown>"});return i.createElement(ae.Z,{item:!0},i.createElement("span",{className:a.root},i.createElement(oe.Z,{className:a.label},t),r?i.createElement(p,{to:r},o):o))}const rr=(0,o.Z)((e=>(0,s.Z)({root:{color:e.palette.common.white,padding:e.spacing(2,2,3),backgroundImage:e.palette.bursts.gradient.linear,backgroundPosition:0,backgroundSize:"inherit"}})),{name:"BackstageItemCardHeader"});function ir(e){const{title:t,subtitle:n,children:r}=e,a=rr(e);return i.createElement("div",{className:a.root},n&&i.createElement(oe.Z,{variant:"subtitle2",component:"h3"},n),t&&i.createElement(oe.Z,{variant:"h6",component:"h4"},t),r)}const ar=(0,o.Z)((e=>(0,s.Z)({root:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(22em, 1fr))",gridAutoRows:"1fr",gridGap:e.spacing(2)}})),{name:"BackstageItemCardGrid"});function or(e){const{children:t,...n}=e,r=ar(n);return i.createElement("div",{className:r.root,...n},t)}var sr=n(41547);const cr=(0,o.Z)((()=>({root:{display:"grid",gridTemplateAreas:"'pageHeader pageHeader pageHeader' 'pageSubheader pageSubheader pageSubheader' 'pageNav pageContent pageSidebar'",gridTemplateRows:"max-content auto 1fr",gridTemplateColumns:"auto 1fr auto",height:"100vh",overflowY:"auto"}})),{name:"BackstagePage"});function lr(e){const{themeId:t,children:n}=e,r=cr();return i.createElement(sr.Z,{theme:e=>({...e,page:e.getPageTheme({themeId:t})})},i.createElement("div",{className:r.root},n))}function ur(e){const{themeId:t,children:n,...r}=e;return i.createElement(lr,{themeId:t},i.createElement(Xn,{...r}),n)}const dr={drawerWidthClosed:72,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:72,iconSize:24,iconPadding:24,selectedIndicatorWidth:3,userBadgePadding:18,userBadgeDiameter:36},pr=(0,i.createContext)({isOpen:!1,setOpen:e=>{}}),hr=(0,i.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}});var fr;!function(e){e.SIDEBAR_PIN_STATE="sidebarPinState"}(fr||(fr={}));const mr={getSidebarPinState(){let e;try{e=JSON.parse(window.localStorage.getItem(fr.SIDEBAR_PIN_STATE)||"true")}catch{return!0}return!!e},setSidebarPinState:e=>window.localStorage.setItem(fr.SIDEBAR_PIN_STATE,JSON.stringify(e))},gr=(0,o.Z)({root:{width:"100%",minHeight:"100%",transition:"padding-left 0.1s ease-out",paddingLeft:({isPinned:e})=>e?dr.drawerWidthOpen:dr.drawerWidthClosed}},{name:"BackstageSidebarPage"}),yr=(0,i.createContext)({isPinned:!0,toggleSidebarPinState:()=>{}});function Ar(e){const[t,n]=(0,i.useState)((()=>mr.getSidebarPinState()));(0,i.useEffect)((()=>{mr.setSidebarPinState(t)}),[t]);const r=gr({isPinned:t});return i.createElement(yr.Provider,{value:{isPinned:t,toggleSidebarPinState:()=>n(!t)}},i.createElement("div",{className:r.root},e.children))}(0,o.Z)({iconContainer:{display:"flex",position:"relative",width:"100%"},arrow1:{right:"6px",position:"absolute"}}),(0,o.Z)({iconContainer:{display:"flex",position:"relative",width:"100%"},arrow1:{right:"6px",position:"absolute"}});const vr=(0,o.Z)((e=>({root:{zIndex:1e3,position:"relative",overflow:"visible",width:e.spacing(7)+1},drawer:{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",left:0,top:0,bottom:0,padding:0,background:e.palette.navigation.background,overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",width:dr.drawerWidthClosed,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.shortest}),"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"}},expandButton:{background:"none",border:"none",color:e.palette.navigation.color,width:"100%",cursor:"pointer",position:"relative",height:48},arrows:{position:"absolute",right:10},drawerOpen:{width:dr.drawerWidthOpen,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.shorter})}})),{name:"BackstageSidebar"});var br;function Er(e){const{disableExpandOnHover:t=!1,openDelayMs:n=dr.defaultOpenDelayMs,closeDelayMs:r=dr.defaultCloseDelayMs,children:a}=e,o=vr(),s=(0,T.Z)((e=>e.breakpoints.down("md"))),[c,l]=(0,i.useState)(br.Closed),u=(0,i.useRef)(),{isPinned:d}=(0,i.useContext)(yr),p=()=>{d||(u.current&&(clearTimeout(u.current),u.current=void 0),c===br.Open||s||(u.current=window.setTimeout((()=>{u.current=void 0,l(br.Open)}),n),l(br.Idle)))},h=()=>{d||(u.current&&(clearTimeout(u.current),u.current=void 0),c===br.Idle?l(br.Closed):c===br.Open&&(u.current=window.setTimeout((()=>{u.current=void 0,l(br.Closed)}),r)))},f=c===br.Open&&!s||d;return i.createElement("div",{className:o.root,"data-testid":"sidebar-root",onMouseEnter:t?()=>{}:p,onFocus:t?()=>{}:p,onMouseLeave:t?()=>{}:h,onBlur:t?()=>{}:h},i.createElement(pr.Provider,{value:{isOpen:f,setOpen:e=>{e?p():h()}}},i.createElement("div",{className:ie()(o.drawer,{[o.drawerOpen]:f})},a)))}!function(e){e[e.Closed=0]="Closed",e[e.Idle=1]="Idle",e[e.Open=2]="Open"}(br||(br={})),(0,o.Z)((e=>({item:{height:48,width:"100%","&:hover":{background:"#6f6f6f",color:e.palette.navigation.selectedColor},display:"flex",alignItems:"center",color:e.palette.navigation.color,padding:20,cursor:"pointer",position:"relative",background:"none",border:"none"},itemContainer:{width:"100%"},selected:{background:"#6f6f6f",color:"#FFF"},label:{margin:14,marginLeft:7,fontSize:14},dropdownArrow:{position:"absolute",right:21},dropdown:{display:"flex",flexDirection:"column",alignItems:"end"},dropdownItem:{width:"100%",padding:"10px 0 10px 0"},textContent:{color:e.palette.navigation.color,display:"flex",justifyContent:"center",fontSize:"14px"}})));const wr=e=>{const{isOpen:t}=(0,i.useContext)(pr),n=(e=>(0,o.Z)((t=>({root:{zIndex:1e3,position:"relative",overflow:"visible",width:t.spacing(7)+1},drawer:{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",left:e.left,top:0,bottom:0,padding:0,background:t.palette.navigation.submenu?.background??"#404040",overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",cursor:"default",width:0,borderRight:"1px solid #383838","& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"}},drawerOpen:{width:202},title:{fontSize:24,fontWeight:500,color:"#FFF",padding:20}}))))({left:t?dr.drawerWidthOpen:dr.drawerWidthClosed})(),{isHoveredOn:r}=(0,i.useContext)(hr);return i.createElement("div",{className:ie()(n.drawer,{[n.drawerOpen]:r})},i.createElement(oe.Z,{variant:"h5",className:n.title},e.title),e.children)};var Rr=n(76600),Sr=n(26739),kr=n(98989);const xr=(0,o.Z)((e=>{const{selectedIndicatorWidth:t,drawerWidthClosed:n,drawerWidthOpen:r,iconContainerWidth:i}=dr;return{root:{color:e.palette.navigation.color,display:"flex",flexFlow:"row nowrap",alignItems:"center",height:48,cursor:"pointer"},buttonItem:{background:"none",border:"none",width:"auto",margin:0,padding:0,textAlign:"inherit",font:"inherit"},closed:{width:n,justifyContent:"center"},open:{width:r},highlightable:{"&:hover":{background:e.palette.navigation.navItem?.hoverBackground??"#404040"}},highlighted:{background:e.palette.navigation.navItem?.hoverBackground??"#404040"},label:{fontWeight:"bold",whiteSpace:"nowrap",lineHeight:"auto",flex:"3 1 auto",width:"110px",overflow:"hidden","text-overflow":"ellipsis"},iconContainer:{boxSizing:"border-box",height:"100%",width:i,marginRight:-e.spacing(2),display:"flex",alignItems:"center",justifyContent:"center"},searchRoot:{marginBottom:12},searchField:{color:"#b5b5b5",fontWeight:"bold",fontSize:e.typography.fontSize},searchFieldHTMLInput:{padding:`${e.spacing(2)} 0 ${e.spacing(2)}`},searchContainer:{width:r-i},secondaryAction:{width:e.spacing(6),textAlign:"center",marginRight:e.spacing(1)},closedItemIcon:{width:"100%",justifyContent:"center"},submenuArrow:{position:"absolute",right:0},selected:{"&$root":{borderLeft:`solid ${t}px ${e.palette.navigation.indicator}`,color:e.palette.navigation.selectedColor},"&$closed":{width:n},"& $closedItemIcon":{paddingRight:t},"& $iconContainer":{marginLeft:-t}}}}),{name:"BackstageSidebarItem"});const Cr=({text:e,hasNotifications:t=!1,icon:n,children:r})=>{const a=xr(),[o,s]=(0,i.useState)(!1),c=function(e,t){const n=[];let r,a=!1;return i.Children.forEach(e,(e=>{i.isValidElement(e)&&(r=e.props.children)})),i.Children.forEach(r,(e=>{i.isValidElement(e)&&(e.props.dropdownItems?e.props.dropdownItems.map((e=>n.push(e.to))):e.props.to&&n.push(e.props.to))})),a=n.some((e=>{const n=(0,tn.i3)(e);return function(e,t){const n=new URLSearchParams(t.search).toString(),r=Dt().parse(n),i=new URLSearchParams(e.search).toString(),a=Dt().parse(i);return(0,Ut.isEqual)(t.pathname,e.pathname)&&(0,Ut.isMatch)(a,r)}(t,n)})),a}(r,(0,tn.TH)()),{isOpen:l}=(0,i.useContext)(pr),u=i.createElement(Sr.Z,{color:"secondary",variant:"dot",overlap:"circular",className:l?"":a.closedItemIcon,invisible:!t},i.createElement(n,{fontSize:"small"})),d=i.createElement(i.Fragment,null,i.createElement("div",{"data-testid":"login-button",className:a.iconContainer},u),e&&i.createElement(oe.Z,{variant:"subtitle2",className:a.label},e),i.createElement("div",{className:a.secondaryAction})),p=u;return i.createElement(hr.Provider,{value:{isHoveredOn:o,setIsHoveredOn:s}},i.createElement("div",{onMouseLeave:()=>{s(!1)},className:ie()(o&&a.highlighted)},i.createElement("div",{onMouseEnter:()=>{s(!0)},"data-testid":"item-with-submenu",className:ie()(a.root,l?a.open:a.closed,c&&a.selected,a.highlightable,o&&a.highlighted)},l?d:p,!o&&i.createElement(kr.Z,{fontSize:"small",className:a.submenuArrow})),o&&r))};function Fr(e){return void 0===e.to}const Tr=i.forwardRef((function({to:e,end:t,style:n,className:r,activeStyle:a,caseSensitive:o,activeClassName:s="active","aria-current":c="page",...l},d){let{pathname:p}=(0,tn.TH)(),{pathname:h}=(0,tn.WU)(e);o||(p=p.toLocaleLowerCase("en-US"),h=h.toLocaleLowerCase("en-US"));let f=p===h;f||t||(f=p.startsWith(`${h}/`));const m=f?c:void 0;return i.createElement(u.rU,{...l,to:e,ref:d,"aria-current":m,style:{...n,...f?a:void 0},className:ie()([r,f?s:void 0])})})),Zr=(0,i.forwardRef)(((e,t)=>{const{icon:n,text:r,hasNotifications:o=!1,disableHighlight:s=!1,onClick:c,children:l,className:u,...d}=e,p=xr(),{isOpen:h}=(0,i.useContext)(pr),f=i.createElement(Sr.Z,{color:"secondary",variant:"dot",overlap:"circular",invisible:!o,className:ie()({[p.closedItemIcon]:!h})},i.createElement(n,{fontSize:"small"})),m=f,g=i.createElement(i.Fragment,null,i.createElement("div",{"data-testid":"login-button",className:p.iconContainer},f),r&&i.createElement(oe.Z,{variant:"subtitle2",className:p.label},r),i.createElement("div",{className:p.secondaryAction},l)),y=h?g:m,A={onClick:c,className:ie()(u,p.root,h?p.open:p.closed,Fr(e)&&p.buttonItem,{[p.highlightable]:!s})};let v,b=!1;const E=i.createElement(wr,null,i.createElement(i.Fragment,null)).type,w=(0,a.useElementFilter)(l,(e=>e.getElements().filter((e=>e.type===E))));if(w.length>1)throw new Error("Cannot render more than one SidebarSubmenu inside a SidebarItem");return 1===w.length&&(b=!0,v=w[0]),b?i.createElement(Cr,{text:r,icon:n,hasNotifications:o},v):Fr(e)?i.createElement("button",{"aria-label":r,...A,ref:t},y):i.createElement(Tr,{...A,activeClassName:p.selected,to:e.to?e.to:"",ref:t,"aria-label":r||e.to,...d},y)}));(0,Rr.Z)("div")({flex:1},{name:"BackstageSidebarSpace"}),(0,Rr.Z)("div")({height:8},{name:"BackstageSidebarSpacer"});const Lr=(0,Rr.Z)("hr")({height:1,width:"100%",background:"#383838",border:"none",margin:"12px 0px"},{name:"BackstageSidebarDivider"});(0,Rr.Z)("div")((({theme:e})=>{const t=(e=>({overflowY:"auto","&::-webkit-scrollbar":{backgroundColor:e.palette.background.default,width:"5px",borderRadius:"5px"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.palette.text.hint,borderRadius:"5px"}}))(e);return{flex:"0 1 auto",overflowX:"hidden",width:"calc(100% - 5px)",minHeight:"48px",overflowY:"hidden","@media (hover: none)":t,"&:hover":t}})),(0,o.Z)((e=>({introCard:{color:"#b5b5b5",fontSize:12,width:dr.drawerWidthOpen,marginTop:18,marginBottom:12,paddingLeft:dr.iconPadding,paddingRight:dr.iconPadding},introDismiss:{display:"flex",justifyContent:"flex-end",alignItems:"center",marginTop:12},introDismissLink:{color:"#dddddd",display:"flex",alignItems:"center",marginBottom:4,"&:hover":{color:e.palette.linkHover,transition:e.transitions.create("color",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.shortest})}},introDismissText:{fontSize:"0.7rem",fontWeight:"bold",textTransform:"uppercase",letterSpacing:1},introDismissIcon:{width:18,height:18,marginRight:12}})),{name:"BackstageSidebarIntro"}),(0,o.Z)({container:{padding:0,listStyle:"none"},item:{display:"flex",flexDirection:"column",width:"100%",maxWidth:"400px",margin:0,padding:0}},{name:"BackstageSignInPage"});class Or{getUserId(){return"guest"}async getIdToken(){}getProfile(){return{email:"guest@example.com",displayName:"Guest"}}async getProfileInfo(){return{email:"guest@example.com",displayName:"Guest"}}async getBackstageIdentity(){const e="user:default/guest";return{type:"user",userEntityRef:e,ownershipEntityRefs:[e]}}async getCredentials(){return{}}async signOut(){}}class Pr{constructor(e){this.result=e}getUserId(){return this.result.userId}static fromResult(e){return new Pr(e)}async getIdToken(){return this.result.getIdToken?.()}getProfile(){return this.result.profile}async getProfileInfo(){return this.result.profile}async getBackstageIdentity(){const e=await this.getIdToken();if(!e){const e=`user:default/${this.getUserId()}`;return{type:"user",userEntityRef:e,ownershipEntityRefs:[e]}}const{sub:t,ent:n}=function(e){const[t,n,r]=e.split(".");return JSON.parse(atob(n))}(e);return{type:"user",userEntityRef:t,ownershipEntityRefs:n??[]}}async getCredentials(){return{token:await(this.result.getIdToken?.())}}async signOut(){return this.result.signOut?.()}}class Ir{profilePromise;static createGuest(){return new Or}static fromLegacy(e){return Pr.fromResult(e)}static create(e){return new Ir(e.identity,e.authApi,e.profile)}constructor(e,t,n){this.identity=e,this.authApi=t,this.profile=n}getUserId(){const e=this.identity.userEntityRef,t=/^([^:/]+:)?([^:/]+\/)?([^:/]+)$/.exec(e);if(!t)throw new TypeError(`Invalid user entity reference "${e}"`);return t[3]}async getIdToken(){return(await this.authApi.getBackstageIdentity()).token}getProfile(){if(!this.profile)throw new Error("The identity API does not implement synchronous profile fetching, use getProfileInfo() instead");return this.profile}async getProfileInfo(){if(this.profilePromise)return await this.profilePromise;try{return this.profilePromise=this.authApi.getProfile(),await this.profilePromise}catch(e){throw this.profilePromise=void 0,e}}async getBackstageIdentity(){return this.identity}async getCredentials(){return{token:(await this.authApi.getBackstageIdentity()).token}}async signOut(){return this.authApi.signOut()}}n(94106),n(86619),n(74828),n(45455),(0,o.Z)((e=>({form:{display:"flex",flexFlow:"column nowrap"},button:{alignSelf:"center",marginTop:e.spacing(2)}})),{name:"BackstageCustomProvider"}),(0,o.Z)((e=>({root:{padding:e.spacing(0,2,0,2.5),minHeight:e.spacing(3)},indicator:{backgroundColor:e.palette.info.main,height:e.spacing(.3)}})),{name:"BackstageTabbedCard"}),(0,it.Z)((e=>({root:{padding:e.spacing(2,2,2,2.5),display:"inline-block"},title:{fontWeight:700},subheader:{paddingTop:e.spacing(1)}})),{name:"BackstageTabbedCardBoldHeader"})(rt.Z),(0,o.Z)((e=>({root:{minWidth:e.spacing(6),minHeight:e.spacing(3),margin:e.spacing(0,2,0,0),padding:e.spacing(.5,0,.5,0),textTransform:"none","&:hover":{opacity:1,backgroundColor:"transparent",color:e.palette.text.primary}},selected:{fontWeight:"bold"}})),{name:"BackstageCardTab"})},88609:function(e,t,n){"use strict";n.d(t,{Os:function(){return o},fC:function(){return s}});var r=n(76241),i=n(2784);const a=(0,r.CT)("analytics-context"),o=()=>{const e=(0,i.useContext)(a);if(void 0===e)return{routeRef:"unknown",pluginId:"root",extension:"App"};const t=e.atVersion(1);if(void 0===t)throw new Error("No context found for version 1.");return t},s=e=>{const{attributes:t,children:n}=e,s={...o(),...t},c=(0,r.EI)({1:s});return i.createElement(a.Provider,{value:c},n)}},28461:function(e,t,n){"use strict";n.d(t,{f:function(){return r.fC},z:function(){return s}});var r=n(88609),i=n(27399),a=n(2784);class o{constructor(e,t={routeRef:"unknown",pluginId:"root",extension:"App"}){this.analyticsApi=e,this.context=t}setContext(e){this.context=e}captureEvent(e,t,{value:n,attributes:r}={}){try{this.analyticsApi.captureEvent({action:e,subject:t,value:n,attributes:r,context:this.context})}catch(e){console.warn("Error during analytics event capture. %o",e)}}}function s(){const e=(0,a.useRef)(null),t=(0,r.Os)(),n=function(){try{return(0,i.useApi)(i.analyticsApiRef)}catch{return{captureEvent:()=>{}}}}(),s=(null===e.current&&(e.current=new o(n)),e.current);return s.setContext(t),s}},39135:function(e,t,n){"use strict";n.d(t,{CL:function(){return R},sM:function(){return r},$v:function(){return y},v_:function(){return A},hg:function(){return v},uB:function(){return g},iW:function(){return l},bq:function(){return m},Ds:function(){return b},NW:function(){return E},VE:function(){return w},W0:function(){return S},gP:function(){return k},F4:function(){return o},ux:function(){return c},Kp:function(){return a},$4:function(){return x},p_:function(){return u},br:function(){return d},ZM:function(){return C},eC:function(){return p},D:function(){return s},gW:function(){return f},Yp:function(){return h},E6:function(){return F}});var r,i=n(86833);!function(e){e.SignedIn="SignedIn",e.SignedOut="SignedOut"}(r||(r={}));const a=(0,i.T0)({id:"core.auth.google"}),o=(0,i.T0)({id:"core.auth.github"}),s=(0,i.T0)({id:"core.auth.okta"}),c=(0,i.T0)({id:"core.auth.gitlab"}),l=(0,i.T0)({id:"core.auth.auth0"}),u=(0,i.T0)({id:"core.auth.microsoft"}),d=(0,i.T0)({id:"core.auth.oauth2"}),p=(0,i.T0)({id:"core.auth.oidc"}),h=(0,i.T0)({id:"core.auth.saml"}),f=(0,i.T0)({id:"core.auth.onelogin"}),m=(0,i.T0)({id:"core.auth.bitbucket"}),g=(0,i.T0)({id:"core.auth.atlassian"}),y=(0,i.T0)({id:"core.alert"}),A=(0,i.T0)({id:"core.analytics"}),v=(0,i.T0)({id:"core.apptheme"}),b=(0,i.T0)({id:"core.config"}),E=(0,i.T0)({id:"core.discovery"}),w=(0,i.T0)({id:"core.error"});var R;!function(e){e[e.None=0]="None",e[e.Active=1]="Active"}(R||(R={}));const S=(0,i.T0)({id:"core.featureflags"}),k=(0,i.T0)({id:"core.fetch"}),x=(0,i.T0)({id:"core.identity"}),C=(0,i.T0)({id:"core.oauthrequest"}),F=(0,i.T0)({id:"core.storage"})},27399:function(e,t,n){"use strict";n.d(t,{createApiFactory:function(){return r.createApiFactory},createApiRef:function(){return r.T0},useApi:function(){return r.h_},useApiHolder:function(){return r.I_},FeatureFlagState:function(){return i.CL},SessionState:function(){return i.sM},alertApiRef:function(){return i.$v},analyticsApiRef:function(){return i.v_},appThemeApiRef:function(){return i.hg},atlassianAuthApiRef:function(){return i.uB},auth0AuthApiRef:function(){return i.iW},bitbucketAuthApiRef:function(){return i.bq},configApiRef:function(){return i.Ds},discoveryApiRef:function(){return i.NW},errorApiRef:function(){return i.VE},featureFlagsApiRef:function(){return i.W0},fetchApiRef:function(){return i.gP},githubAuthApiRef:function(){return i.F4},gitlabAuthApiRef:function(){return i.ux},googleAuthApiRef:function(){return i.Kp},identityApiRef:function(){return i.$4},microsoftAuthApiRef:function(){return i.p_},oauth2ApiRef:function(){return i.br},oauthRequestApiRef:function(){return i.ZM},oidcAuthApiRef:function(){return i.eC},oktaAuthApiRef:function(){return i.D},oneloginAuthApiRef:function(){return i.gW},samlAuthApiRef:function(){return i.Yp},storageApiRef:function(){return i.E6}});var r=n(86833);n.o(r,"FeatureFlagState")&&n.d(t,{FeatureFlagState:function(){return r.FeatureFlagState}}),n.o(r,"SessionState")&&n.d(t,{SessionState:function(){return r.SessionState}}),n.o(r,"alertApiRef")&&n.d(t,{alertApiRef:function(){return r.alertApiRef}}),n.o(r,"analyticsApiRef")&&n.d(t,{analyticsApiRef:function(){return r.analyticsApiRef}}),n.o(r,"appThemeApiRef")&&n.d(t,{appThemeApiRef:function(){return r.appThemeApiRef}}),n.o(r,"atlassianAuthApiRef")&&n.d(t,{atlassianAuthApiRef:function(){return r.atlassianAuthApiRef}}),n.o(r,"attachComponentData")&&n.d(t,{attachComponentData:function(){return r.attachComponentData}}),n.o(r,"auth0AuthApiRef")&&n.d(t,{auth0AuthApiRef:function(){return r.auth0AuthApiRef}}),n.o(r,"bitbucketAuthApiRef")&&n.d(t,{bitbucketAuthApiRef:function(){return r.bitbucketAuthApiRef}}),n.o(r,"configApiRef")&&n.d(t,{configApiRef:function(){return r.configApiRef}}),n.o(r,"createComponentExtension")&&n.d(t,{createComponentExtension:function(){return r.createComponentExtension}}),n.o(r,"createExternalRouteRef")&&n.d(t,{createExternalRouteRef:function(){return r.createExternalRouteRef}}),n.o(r,"createPlugin")&&n.d(t,{createPlugin:function(){return r.createPlugin}}),n.o(r,"createRoutableExtension")&&n.d(t,{createRoutableExtension:function(){return r.createRoutableExtension}}),n.o(r,"createRouteRef")&&n.d(t,{createRouteRef:function(){return r.createRouteRef}}),n.o(r,"discoveryApiRef")&&n.d(t,{discoveryApiRef:function(){return r.discoveryApiRef}}),n.o(r,"errorApiRef")&&n.d(t,{errorApiRef:function(){return r.errorApiRef}}),n.o(r,"featureFlagsApiRef")&&n.d(t,{featureFlagsApiRef:function(){return r.featureFlagsApiRef}}),n.o(r,"fetchApiRef")&&n.d(t,{fetchApiRef:function(){return r.fetchApiRef}}),n.o(r,"getComponentData")&&n.d(t,{getComponentData:function(){return r.getComponentData}}),n.o(r,"githubAuthApiRef")&&n.d(t,{githubAuthApiRef:function(){return r.githubAuthApiRef}}),n.o(r,"gitlabAuthApiRef")&&n.d(t,{gitlabAuthApiRef:function(){return r.gitlabAuthApiRef}}),n.o(r,"googleAuthApiRef")&&n.d(t,{googleAuthApiRef:function(){return r.googleAuthApiRef}}),n.o(r,"identityApiRef")&&n.d(t,{identityApiRef:function(){return r.identityApiRef}}),n.o(r,"microsoftAuthApiRef")&&n.d(t,{microsoftAuthApiRef:function(){return r.microsoftAuthApiRef}}),n.o(r,"oauth2ApiRef")&&n.d(t,{oauth2ApiRef:function(){return r.oauth2ApiRef}}),n.o(r,"oauthRequestApiRef")&&n.d(t,{oauthRequestApiRef:function(){return r.oauthRequestApiRef}}),n.o(r,"oidcAuthApiRef")&&n.d(t,{oidcAuthApiRef:function(){return r.oidcAuthApiRef}}),n.o(r,"oktaAuthApiRef")&&n.d(t,{oktaAuthApiRef:function(){return r.oktaAuthApiRef}}),n.o(r,"oneloginAuthApiRef")&&n.d(t,{oneloginAuthApiRef:function(){return r.oneloginAuthApiRef}}),n.o(r,"samlAuthApiRef")&&n.d(t,{samlAuthApiRef:function(){return r.samlAuthApiRef}}),n.o(r,"storageApiRef")&&n.d(t,{storageApiRef:function(){return r.storageApiRef}}),n.o(r,"useApp")&&n.d(t,{useApp:function(){return r.useApp}}),n.o(r,"useElementFilter")&&n.d(t,{useElementFilter:function(){return r.useElementFilter}}),n.o(r,"useRouteRef")&&n.d(t,{useRouteRef:function(){return r.useRouteRef}}),n.o(r,"useRouteRefParams")&&n.d(t,{useRouteRefParams:function(){return r.useRouteRefParams}});var i=n(39135)},90515:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});class r{constructor(e){if(this.config=e,!e.id.split(".").flatMap((e=>e.split("-"))).every((e=>e.match(/^[a-z][a-z0-9]*$/))))throw new Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${e.id}'`)}get id(){return this.config.id}get T(){throw new Error(`tried to read ApiRef.T of ${this}`)}toString(){return`apiRef{${this.config.id}}`}}function i(e){return new r(e)}},25182:function(e,t,n){"use strict";function r(e,t){return"id"in e?{api:e,deps:{},factory:()=>t}:e}n.d(t,{n:function(){return r}})},86833:function(e,t,n){"use strict";n.d(t,{h_:function(){return r.h_},I_:function(){return r.I_},T0:function(){return i.T},createApiFactory:function(){return o.n}});var r=n(5761),i=n(90515),a=n(16362);n.o(a,"FeatureFlagState")&&n.d(t,{FeatureFlagState:function(){return a.FeatureFlagState}}),n.o(a,"SessionState")&&n.d(t,{SessionState:function(){return a.SessionState}}),n.o(a,"alertApiRef")&&n.d(t,{alertApiRef:function(){return a.alertApiRef}}),n.o(a,"analyticsApiRef")&&n.d(t,{analyticsApiRef:function(){return a.analyticsApiRef}}),n.o(a,"appThemeApiRef")&&n.d(t,{appThemeApiRef:function(){return a.appThemeApiRef}}),n.o(a,"atlassianAuthApiRef")&&n.d(t,{atlassianAuthApiRef:function(){return a.atlassianAuthApiRef}}),n.o(a,"attachComponentData")&&n.d(t,{attachComponentData:function(){return a.attachComponentData}}),n.o(a,"auth0AuthApiRef")&&n.d(t,{auth0AuthApiRef:function(){return a.auth0AuthApiRef}}),n.o(a,"bitbucketAuthApiRef")&&n.d(t,{bitbucketAuthApiRef:function(){return a.bitbucketAuthApiRef}}),n.o(a,"configApiRef")&&n.d(t,{configApiRef:function(){return a.configApiRef}}),n.o(a,"createApiFactory")&&n.d(t,{createApiFactory:function(){return a.createApiFactory}}),n.o(a,"createComponentExtension")&&n.d(t,{createComponentExtension:function(){return a.createComponentExtension}}),n.o(a,"createExternalRouteRef")&&n.d(t,{createExternalRouteRef:function(){return a.createExternalRouteRef}}),n.o(a,"createPlugin")&&n.d(t,{createPlugin:function(){return a.createPlugin}}),n.o(a,"createRoutableExtension")&&n.d(t,{createRoutableExtension:function(){return a.createRoutableExtension}}),n.o(a,"createRouteRef")&&n.d(t,{createRouteRef:function(){return a.createRouteRef}}),n.o(a,"discoveryApiRef")&&n.d(t,{discoveryApiRef:function(){return a.discoveryApiRef}}),n.o(a,"errorApiRef")&&n.d(t,{errorApiRef:function(){return a.errorApiRef}}),n.o(a,"featureFlagsApiRef")&&n.d(t,{featureFlagsApiRef:function(){return a.featureFlagsApiRef}}),n.o(a,"fetchApiRef")&&n.d(t,{fetchApiRef:function(){return a.fetchApiRef}}),n.o(a,"getComponentData")&&n.d(t,{getComponentData:function(){return a.getComponentData}}),n.o(a,"githubAuthApiRef")&&n.d(t,{githubAuthApiRef:function(){return a.githubAuthApiRef}}),n.o(a,"gitlabAuthApiRef")&&n.d(t,{gitlabAuthApiRef:function(){return a.gitlabAuthApiRef}}),n.o(a,"googleAuthApiRef")&&n.d(t,{googleAuthApiRef:function(){return a.googleAuthApiRef}}),n.o(a,"identityApiRef")&&n.d(t,{identityApiRef:function(){return a.identityApiRef}}),n.o(a,"microsoftAuthApiRef")&&n.d(t,{microsoftAuthApiRef:function(){return a.microsoftAuthApiRef}}),n.o(a,"oauth2ApiRef")&&n.d(t,{oauth2ApiRef:function(){return a.oauth2ApiRef}}),n.o(a,"oauthRequestApiRef")&&n.d(t,{oauthRequestApiRef:function(){return a.oauthRequestApiRef}}),n.o(a,"oidcAuthApiRef")&&n.d(t,{oidcAuthApiRef:function(){return a.oidcAuthApiRef}}),n.o(a,"oktaAuthApiRef")&&n.d(t,{oktaAuthApiRef:function(){return a.oktaAuthApiRef}}),n.o(a,"oneloginAuthApiRef")&&n.d(t,{oneloginAuthApiRef:function(){return a.oneloginAuthApiRef}}),n.o(a,"samlAuthApiRef")&&n.d(t,{samlAuthApiRef:function(){return a.samlAuthApiRef}}),n.o(a,"storageApiRef")&&n.d(t,{storageApiRef:function(){return a.storageApiRef}}),n.o(a,"useApp")&&n.d(t,{useApp:function(){return a.useApp}}),n.o(a,"useElementFilter")&&n.d(t,{useElementFilter:function(){return a.useElementFilter}}),n.o(a,"useRouteRef")&&n.d(t,{useRouteRef:function(){return a.useRouteRef}}),n.o(a,"useRouteRefParams")&&n.d(t,{useRouteRefParams:function(){return a.useRouteRefParams}});var o=n(25182)},16362:function(){},5761:function(e,t,n){"use strict";n.d(t,{I_:function(){return i},h_:function(){return a}}),n(2784);var r=n(76241);function i(){const e=(0,r.Vt)("api-context");if(!e)throw new Error("API context is not available");const t=e.atVersion(1);if(!t)throw new Error("ApiContext v1 not available");return t}function a(e){const t=i().get(e);if(!t)throw new Error(`No implementation available for ${e}`);return t}},31311:function(e,t,n){"use strict";n.d(t,{q:function(){return r.q}});var r=n(32483),i=n(67229);n.o(i,"attachComponentData")&&n.d(t,{attachComponentData:function(){return i.attachComponentData}}),n.o(i,"createApiFactory")&&n.d(t,{createApiFactory:function(){return i.createApiFactory}}),n.o(i,"createApiRef")&&n.d(t,{createApiRef:function(){return i.createApiRef}}),n.o(i,"createComponentExtension")&&n.d(t,{createComponentExtension:function(){return i.createComponentExtension}}),n.o(i,"createExternalRouteRef")&&n.d(t,{createExternalRouteRef:function(){return i.createExternalRouteRef}}),n.o(i,"createPlugin")&&n.d(t,{createPlugin:function(){return i.createPlugin}}),n.o(i,"createRoutableExtension")&&n.d(t,{createRoutableExtension:function(){return i.createRoutableExtension}}),n.o(i,"createRouteRef")&&n.d(t,{createRouteRef:function(){return i.createRouteRef}}),n.o(i,"getComponentData")&&n.d(t,{getComponentData:function(){return i.getComponentData}}),n.o(i,"useApi")&&n.d(t,{useApi:function(){return i.useApi}}),n.o(i,"useApiHolder")&&n.d(t,{useApiHolder:function(){return i.useApiHolder}}),n.o(i,"useElementFilter")&&n.d(t,{useElementFilter:function(){return i.useElementFilter}}),n.o(i,"useRouteRef")&&n.d(t,{useRouteRef:function(){return i.useRouteRef}}),n.o(i,"useRouteRefParams")&&n.d(t,{useRouteRefParams:function(){return i.useRouteRefParams}})},67229:function(){},32483:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(76241);const i=()=>{const e=(0,r.Vt)("app-context");if(!e)throw new Error("App context is not available");const t=e.atVersion(1);if(!t)throw new Error("AppContext v1 not available");return t}},74181:function(e,t,n){"use strict";n.d(t,{R5:function(){return i},CO:function(){return p},P4:function(){return d},IY:function(){return a},vJ:function(){return y}});const r=(0,n(76241).uW)("component-data-store",(()=>new WeakMap));function i(e,t,n){const i=e;let a=i.__backstage_data??r.get(e);if(a||(a={map:new Map},Object.defineProperty(i,"__backstage_data",{enumerable:!1,configurable:!0,writable:!1,value:a}),r.set(e,a)),a.map.has(t)){const n=e.displayName||e.name;throw new Error(`Attempted to attach duplicate data "${t}" to component "${n}"`)}a.map.set(t,n)}function a(e,t){if(!e)return;const n=e.type;if(!n)return;const i=n.__backstage_data??r.get(n);return i?i.map.get(t):void 0}var o=n(2784),s=n(88609),c=n(31311),l=n(82772);class u extends o.Component{static getDerivedStateFromError(e){return{error:e}}state={error:void 0};handleErrorReset=()=>{this.setState({error:void 0})};render(){const{error:e}=this.state,{app:t,plugin:n}=this.props,{ErrorBoundaryFallback:r}=t.getComponents();return e?o.createElement(r,{error:e,resetError:this.handleErrorReset,plugin:n}):this.props.children}}function d(e){const{component:t,mountPoint:n,name:r}=e;return h({component:{lazy:()=>t().then((e=>{const t=t=>{try{(0,l.tg)(n)}catch(e){if("object"==typeof e&&null!==e){const{message:t}=e;if("string"==typeof t&&t.startsWith("No path for "))throw new Error(`Routable extension component with mount point ${n} 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 e}return o.createElement(e,{...t})},i=r||e.displayName||e.name||"LazyComponent";return t.displayName=`RoutableExtension(${i})`,t}),(e=>t=>{const n=(0,c.q)(),{BootErrorPage:r}=n.getComponents();return o.createElement(r,{step:"load-chunk",error:e})}))},data:{"core.mountPoint":n},name:r})}function p(e){const{component:t,name:n}=e;return h({component:t,name:n})}function h(e){const{data:t={},name:n}=e;let r;if(n||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name."),"lazy"in e.component){const t=e.component.lazy;r=(0,o.lazy)((()=>t().then((e=>({default:e})))))}else r=e.component.sync;const a=n||r.displayName||r.name||"Component";return{expose(e){const l=i=>{const a=(0,c.q)(),{Progress:l}=a.getComponents(),d=t?.["core.mountPoint"];return o.createElement(o.Suspense,{fallback:o.createElement(l,null)},o.createElement(u,{app:a,plugin:e},o.createElement(s.fC,{attributes:{pluginId:e.getId(),...n&&{extension:n},...d&&{routeRef:d.id}}},o.createElement(r,{...i}))))};i(l,"core.plugin",e);for(const[e,n]of Object.entries(t))i(l,e,n);return l.displayName=`Extension(${a})`,l}}}var f=n(27399);function m(e,t,n,r){return o.Children.toArray(e).flatMap((e=>{if(!(0,o.isValidElement)(e))return[];if(e.type===o.Fragment)return m(e.props.children,t,n,r);if(a(e,"core.featureFlagged")){const i=e.props;return("with"in i?t.isActive(i.with):!t.isActive(i.without))?m(e.props.children,t,n,r):[]}if(void 0===n||n(e))return[e];if(r)throw new Error(r);return m(e.props.children,t,n,r)}))}class g{constructor(e,t){this.node=e,this.featureFlagsApi=t}selectByComponentData(e){const t=m(this.node,this.featureFlagsApi,(t=>void 0!==a(t,e.key)),e.withStrictError);return new g(t,this.featureFlagsApi)}findComponentData(e){return m(this.node,this.featureFlagsApi,(t=>void 0!==a(t,e.key))).map((t=>a(t,e.key))).filter((e=>void 0!==e))}getElements(){return m(this.node,this.featureFlagsApi)}}function y(e,t,n=[]){const r=(0,f.useApi)(f.featureFlagsApiRef),i=new g(e,r);return(0,o.useMemo)((()=>t(i)),[e,...n])}},80274:function(){},36964:function(e,t,n){"use strict";n.d(t,{AnalyticsContext:function(){return r.f},useAnalytics:function(){return r.z},FeatureFlagState:function(){return i.FeatureFlagState},SessionState:function(){return i.SessionState},alertApiRef:function(){return i.alertApiRef},analyticsApiRef:function(){return i.analyticsApiRef},appThemeApiRef:function(){return i.appThemeApiRef},atlassianAuthApiRef:function(){return i.atlassianAuthApiRef},auth0AuthApiRef:function(){return i.auth0AuthApiRef},bitbucketAuthApiRef:function(){return i.bitbucketAuthApiRef},configApiRef:function(){return i.configApiRef},discoveryApiRef:function(){return i.discoveryApiRef},errorApiRef:function(){return i.errorApiRef},featureFlagsApiRef:function(){return i.featureFlagsApiRef},fetchApiRef:function(){return i.fetchApiRef},githubAuthApiRef:function(){return i.githubAuthApiRef},gitlabAuthApiRef:function(){return i.gitlabAuthApiRef},googleAuthApiRef:function(){return i.googleAuthApiRef},identityApiRef:function(){return i.identityApiRef},microsoftAuthApiRef:function(){return i.microsoftAuthApiRef},oauth2ApiRef:function(){return i.oauth2ApiRef},oauthRequestApiRef:function(){return i.oauthRequestApiRef},oidcAuthApiRef:function(){return i.oidcAuthApiRef},oktaAuthApiRef:function(){return i.oktaAuthApiRef},oneloginAuthApiRef:function(){return i.oneloginAuthApiRef},samlAuthApiRef:function(){return i.samlAuthApiRef},storageApiRef:function(){return i.storageApiRef},useApp:function(){return a.q},attachComponentData:function(){return o.R5},createComponentExtension:function(){return o.CO},createRoutableExtension:function(){return o.P4},getComponentData:function(){return o.IY},useElementFilter:function(){return o.vJ},createPlugin:function(){return c.r},createExternalRouteRef:function(){return l.x8},createRouteRef:function(){return l.NT},useRouteRef:function(){return l.tg},useRouteRefParams:function(){return l.Oi}});var r=n(28461),i=n(27399);n.o(i,"attachComponentData")&&n.d(t,{attachComponentData:function(){return i.attachComponentData}}),n.o(i,"createApiFactory")&&n.d(t,{createApiFactory:function(){return i.createApiFactory}}),n.o(i,"createApiRef")&&n.d(t,{createApiRef:function(){return i.createApiRef}}),n.o(i,"createComponentExtension")&&n.d(t,{createComponentExtension:function(){return i.createComponentExtension}}),n.o(i,"createExternalRouteRef")&&n.d(t,{createExternalRouteRef:function(){return i.createExternalRouteRef}}),n.o(i,"createPlugin")&&n.d(t,{createPlugin:function(){return i.createPlugin}}),n.o(i,"createRoutableExtension")&&n.d(t,{createRoutableExtension:function(){return i.createRoutableExtension}}),n.o(i,"createRouteRef")&&n.d(t,{createRouteRef:function(){return i.createRouteRef}}),n.o(i,"getComponentData")&&n.d(t,{getComponentData:function(){return i.getComponentData}}),n.o(i,"useApi")&&n.d(t,{useApi:function(){return i.useApi}}),n.o(i,"useApiHolder")&&n.d(t,{useApiHolder:function(){return i.useApiHolder}}),n.o(i,"useApp")&&n.d(t,{useApp:function(){return i.useApp}}),n.o(i,"useElementFilter")&&n.d(t,{useElementFilter:function(){return i.useElementFilter}}),n.o(i,"useRouteRef")&&n.d(t,{useRouteRef:function(){return i.useRouteRef}}),n.o(i,"useRouteRefParams")&&n.d(t,{useRouteRefParams:function(){return i.useRouteRefParams}});var a=n(31311);n.o(a,"attachComponentData")&&n.d(t,{attachComponentData:function(){return a.attachComponentData}}),n.o(a,"createApiFactory")&&n.d(t,{createApiFactory:function(){return a.createApiFactory}}),n.o(a,"createApiRef")&&n.d(t,{createApiRef:function(){return a.createApiRef}}),n.o(a,"createComponentExtension")&&n.d(t,{createComponentExtension:function(){return a.createComponentExtension}}),n.o(a,"createExternalRouteRef")&&n.d(t,{createExternalRouteRef:function(){return a.createExternalRouteRef}}),n.o(a,"createPlugin")&&n.d(t,{createPlugin:function(){return a.createPlugin}}),n.o(a,"createRoutableExtension")&&n.d(t,{createRoutableExtension:function(){return a.createRoutableExtension}}),n.o(a,"createRouteRef")&&n.d(t,{createRouteRef:function(){return a.createRouteRef}}),n.o(a,"getComponentData")&&n.d(t,{getComponentData:function(){return a.getComponentData}}),n.o(a,"useApi")&&n.d(t,{useApi:function(){return a.useApi}}),n.o(a,"useApiHolder")&&n.d(t,{useApiHolder:function(){return a.useApiHolder}}),n.o(a,"useElementFilter")&&n.d(t,{useElementFilter:function(){return a.useElementFilter}}),n.o(a,"useRouteRef")&&n.d(t,{useRouteRef:function(){return a.useRouteRef}}),n.o(a,"useRouteRefParams")&&n.d(t,{useRouteRefParams:function(){return a.useRouteRefParams}});var o=n(74181),s=n(80274);n.o(s,"createApiFactory")&&n.d(t,{createApiFactory:function(){return s.createApiFactory}}),n.o(s,"createApiRef")&&n.d(t,{createApiRef:function(){return s.createApiRef}}),n.o(s,"createExternalRouteRef")&&n.d(t,{createExternalRouteRef:function(){return s.createExternalRouteRef}}),n.o(s,"createPlugin")&&n.d(t,{createPlugin:function(){return s.createPlugin}}),n.o(s,"createRouteRef")&&n.d(t,{createRouteRef:function(){return s.createRouteRef}}),n.o(s,"useApi")&&n.d(t,{useApi:function(){return s.useApi}}),n.o(s,"useApiHolder")&&n.d(t,{useApiHolder:function(){return s.useApiHolder}}),n.o(s,"useRouteRef")&&n.d(t,{useRouteRef:function(){return s.useRouteRef}}),n.o(s,"useRouteRefParams")&&n.d(t,{useRouteRefParams:function(){return s.useRouteRefParams}});var c=n(96896),l=n(82772)},96896:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});class r{storedOutput;constructor(e){this.config=e}getId(){return this.config.id}getApis(){return this.config.apis??[]}getFeatureFlags(){return this.output().filter((({type:e})=>"feature-flag"===e)).map((({name:e})=>({name:e})))}get routes(){return this.config.routes??{}}get externalRoutes(){return this.config.externalRoutes??{}}output(){if(this.storedOutput)return this.storedOutput;const e=new Array;if(this.storedOutput=e,this.config.featureFlags)for(const t of this.config.featureFlags)e.push({type:"feature-flag",name:t.name});return this.config.register?(this.config.register({featureFlags:{register(t){e.push({type:"feature-flag",name:t})}}}),this.storedOutput):e}provide(e){return e.expose(this)}toString(){return`plugin{${this.config.id}}`}}function i(e){return new r(e)}},82772:function(e,t,n){"use strict";n.d(t,{x8:function(){return c},NT:function(){return o},tg:function(){return d},Oi:function(){return p}});var r=n(76241);const i=(0,r.uW)("route-ref-type",(()=>Symbol("route-ref-type")));class a{[i]="absolute";constructor(e,t){this.id=e,this.params=t}get title(){return this.id}toString(){return`routeRef{type=absolute,id=${this.id}}`}}function o(e){return new a(e.id,e.params??[])}class s{[i]="external";constructor(e,t,n){this.id=e,this.params=t,this.optional=n}toString(){return`routeRef{type=external,id=${this.id}}`}}function c(e){return new s(e.id,e.params??[],Boolean(e.optional))}var l=n(2784),u=n(10289);function d(e){const t=(0,u.TH)(),n=(0,r.Vt)("routing-context");if(!n)throw new Error("Routing context is not available");const i=n.atVersion(1),a=(0,l.useMemo)((()=>i&&i.resolve(e,t)),[i,e,t]);if(!n)throw new Error("useRouteRef used outside of routing context");if(!i)throw new Error("RoutingContext v1 not available");const o="optional"in e&&e.optional;if(!a&&!o)throw new Error(`No path for ${e}`);return a}function p(e){return(0,u.UO)()}},63865:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,{TechDocsPlugin:function(){return Be}});var i=n(2784),a=n(9832),o=n(10289),s=n(49208),c=n(36964);const l=(0,c.createApiRef)({id:"plugin.permission.api"});var u,d;(d=u||(u={})).DENY="DENY",d.ALLOW="ALLOW",d.CONDITIONAL="CONDITIONAL";var p=n(10179),h=n(96279),f=n.n(h),m=n(9571),g=n(30195);const y=g.z.lazy((()=>g.z.object({rule:g.z.string(),params:g.z.array(g.z.unknown())}).or(g.z.object({anyOf:g.z.array(y)})).or(g.z.object({allOf:g.z.array(y)})).or(g.z.object({not:y})))),A=g.z.array(g.z.object({id:g.z.string(),result:g.z.literal(u.ALLOW).or(g.z.literal(u.DENY))}).or(g.z.object({id:g.z.string(),result:g.z.literal(u.CONDITIONAL),conditions:y})));class v{enabled;discovery;constructor(e){this.discovery=e.discovery,this.enabled=e.config.getOptionalBoolean("permission.enabled")??!1}async authorize(e,t){if(!this.enabled)return e.map((e=>({result:u.ALLOW})));const n=e.map((e=>({id:m.Z(),...e}))),r=await this.discovery.getBaseUrl("permission"),i=await f()(`${r}/authorize`,{method:"POST",body:JSON.stringify(n),headers:{...this.getAuthorizationHeader(t?.token),"content-type":"application/json"}});if(!i.ok)throw await p.VL.fromResponse(i);const a=await i.json();this.assertValidResponses(n,a);const o=a.reduce(((e,t)=>(e[t.id]=t,e)),{});return n.map((e=>o[e.id]))}getAuthorizationHeader(e){return e?{Authorization:`Bearer ${e}`}:{}}assertValidResponses(e,t){const n=A.parse(t).map((e=>e.id));if(!e.every((e=>n.includes(e.id))))throw new Error("Unexpected authorization response from permission-backend")}}class b{constructor(e,t){this.permissionClient=e,this.identityApi=t}static create(e){const{config:t,discovery:n,identity:r}=e,i=new v({discovery:n,config:t});return new b(i,r)}async authorize(e){return(await this.permissionClient.authorize([e],{token:await this.identityApi.getIdToken()}))[0]}}const E=[(0,c.createApiFactory)({api:c.discoveryApiRef,deps:{configApi:c.configApiRef},factory:({configApi:e})=>s.UrlPatternDiscovery.compile(`${e.getString("backend.baseUrl")}/api/{{ pluginId }}`)}),(0,c.createApiFactory)({api:c.alertApiRef,deps:{},factory:()=>new s.AlertApiForwarder}),(0,c.createApiFactory)({api:c.analyticsApiRef,deps:{},factory:()=>new s.NoOpAnalyticsApi}),(0,c.createApiFactory)({api:c.errorApiRef,deps:{alertApi:c.alertApiRef},factory:({alertApi:e})=>{const t=new s.ErrorAlerter(e,new s.ErrorApiForwarder);return s.UnhandledErrorForwarder.forward(t,{hidden:!1}),t}}),(0,c.createApiFactory)({api:c.storageApiRef,deps:{errorApi:c.errorApiRef},factory:({errorApi:e})=>s.WebStorage.create({errorApi:e})}),(0,c.createApiFactory)({api:c.fetchApiRef,deps:{configApi:c.configApiRef,identityApi:c.identityApiRef,discoveryApi:c.discoveryApiRef},factory:({configApi:e,identityApi:t,discoveryApi:n})=>(0,s.createFetchApi)({middleware:[s.FetchMiddlewares.resolvePluginProtocol({discoveryApi:n}),s.FetchMiddlewares.injectIdentityAuth({identityApi:t,config:e})]})}),(0,c.createApiFactory)({api:c.oauthRequestApiRef,deps:{},factory:()=>new s.OAuthRequestManager}),(0,c.createApiFactory)({api:c.googleAuthApiRef,deps:{discoveryApi:c.discoveryApiRef,oauthRequestApi:c.oauthRequestApiRef,configApi:c.configApiRef},factory:({discoveryApi:e,oauthRequestApi:t,configApi:n})=>s.GoogleAuth.create({discoveryApi:e,oauthRequestApi:t,environment:n.getOptionalString("auth.environment")})}),(0,c.createApiFactory)({api:c.microsoftAuthApiRef,deps:{discoveryApi:c.discoveryApiRef,oauthRequestApi:c.oauthRequestApiRef,configApi:c.configApiRef},factory:({discoveryApi:e,oauthRequestApi:t,configApi:n})=>s.MicrosoftAuth.create({discoveryApi:e,oauthRequestApi:t,environment:n.getOptionalString("auth.environment")})}),(0,c.createApiFactory)({api:c.githubAuthApiRef,deps:{discoveryApi:c.discoveryApiRef,oauthRequestApi:c.oauthRequestApiRef,configApi:c.configApiRef},factory:({discoveryApi:e,oauthRequestApi:t,configApi:n})=>s.GithubAuth.create({discoveryApi:e,oauthRequestApi:t,defaultScopes:["read:user"],environment:n.getOptionalString("auth.environment")})}),(0,c.createApiFactory)({api:c.oktaAuthApiRef,deps:{discoveryApi:c.discoveryApiRef,oauthRequestApi:c.oauthRequestApiRef,configApi:c.configApiRef},factory:({discoveryApi:e,oauthRequestApi:t,configApi:n})=>s.OktaAuth.create({discoveryApi:e,oauthRequestApi:t,environment:n.getOptionalString("auth.environment")})}),(0,c.createApiFactory)({api:c.gitlabAuthApiRef,deps:{discoveryApi:c.discoveryApiRef,oauthRequestApi:c.oauthRequestApiRef,configApi:c.configApiRef},factory:({discoveryApi:e,oauthRequestApi:t,configApi:n})=>s.GitlabAuth.create({discoveryApi:e,oauthRequestApi:t,environment:n.getOptionalString("auth.environment")})}),(0,c.createApiFactory)({api:c.auth0AuthApiRef,deps:{discoveryApi:c.discoveryApiRef,oauthRequestApi:c.oauthRequestApiRef,configApi:c.configApiRef},factory:({discoveryApi:e,oauthRequestApi:t,configApi:n})=>s.Auth0Auth.create({discoveryApi:e,oauthRequestApi:t,environment:n.getOptionalString("auth.environment")})}),(0,c.createApiFactory)({api:c.oauth2ApiRef,deps:{discoveryApi:c.discoveryApiRef,oauthRequestApi:c.oauthRequestApiRef,configApi:c.configApiRef},factory:({discoveryApi:e,oauthRequestApi:t,configApi:n})=>s.OAuth2.create({discoveryApi:e,oauthRequestApi:t,environment:n.getOptionalString("auth.environment")})}),(0,c.createApiFactory)({api:c.samlAuthApiRef,deps:{discoveryApi:c.discoveryApiRef,configApi:c.configApiRef},factory:({discoveryApi:e,configApi:t})=>s.SamlAuth.create({discoveryApi:e,environment:t.getOptionalString("auth.environment")})}),(0,c.createApiFactory)({api:c.oneloginAuthApiRef,deps:{discoveryApi:c.discoveryApiRef,oauthRequestApi:c.oauthRequestApiRef,configApi:c.configApiRef},factory:({discoveryApi:e,oauthRequestApi:t,configApi:n})=>s.OneLoginAuth.create({discoveryApi:e,oauthRequestApi:t,environment:n.getOptionalString("auth.environment")})}),(0,c.createApiFactory)({api:c.oidcAuthApiRef,deps:{discoveryApi:c.discoveryApiRef,oauthRequestApi:c.oauthRequestApiRef,configApi:c.configApiRef},factory:({discoveryApi:e,oauthRequestApi:t,configApi:n})=>s.OAuth2.create({discoveryApi:e,oauthRequestApi:t,provider:{id:"oidc",title:"Your Identity Provider",icon:()=>null},environment:n.getOptionalString("auth.environment")})}),(0,c.createApiFactory)({api:c.bitbucketAuthApiRef,deps:{discoveryApi:c.discoveryApiRef,oauthRequestApi:c.oauthRequestApiRef,configApi:c.configApiRef},factory:({discoveryApi:e,oauthRequestApi:t,configApi:n})=>s.BitbucketAuth.create({discoveryApi:e,oauthRequestApi:t,defaultScopes:["team"],environment:n.getOptionalString("auth.environment")})}),(0,c.createApiFactory)({api:c.atlassianAuthApiRef,deps:{discoveryApi:c.discoveryApiRef,oauthRequestApi:c.oauthRequestApiRef,configApi:c.configApiRef},factory:({discoveryApi:e,oauthRequestApi:t,configApi:n})=>s.AtlassianAuth.create({discoveryApi:e,oauthRequestApi:t,environment:n.getOptionalString("auth.environment")})}),(0,c.createApiFactory)({api:l,deps:{discovery:c.discoveryApiRef,identity:c.identityApiRef,config:c.configApiRef},factory:({config:e,discovery:t,identity:n})=>b.create({config:e,discovery:t,identity:n})})];var w=n(77277),R=n(41682),S=n(62833);function k({children:e}){return(0,o.GV)()?i.createElement(i.Fragment,null,e):i.createElement(o.VA,null,e)}const x={Progress:R.Progress,Router:S.VK,NotFoundErrorPage:()=>i.createElement(R.ErrorPage,{status:"404",statusMessage:"PAGE NOT FOUND"}),BootErrorPage:({step:e,error:t})=>{let n="";return"load-config"===e?n=`The configuration failed to load, someone should have a look at this error: ${t.message}`:"load-chunk"===e&&(n=`Lazy loaded chunk failed to load, try to reload the page: ${t.message}`),i.createElement(k,null,i.createElement(R.ErrorPage,{status:"501",statusMessage:n}))},ErrorBoundaryFallback:({error:e,resetError:t,plugin:n})=>i.createElement(R.ErrorPanel,{title:`Error in ${n?.getId()}`,defaultExpanded:!0,error:e},i.createElement(w.Z,{variant:"outlined",onClick:t},"Retry"))};var C=n(43642),F=n(80079),T=n(90941),Z=n(32915),L=n(40562),O=n(21853),P=n(60744),I=n(66569),$=n(30254),B=n(13384),N=n(15933),U=n(58838),M=n(86737),D=n(4989),q=n(44407),z=n(18628),j=n(84219),W=n(98685),H=n(39781);const V={brokenImage:F.Z,catalog:z.Z,scaffolder:Z.Z,techdocs:L.Z,search:O.Z,chat:P.Z,dashboard:I.Z,docs:$.Z,email:B.Z,github:U.Z,group:j.Z,help:M.Z,"kind:api":N.Z,"kind:component":q.Z,"kind:domain":C.Z,"kind:group":j.Z,"kind:location":D.Z,"kind:system":T.Z,"kind:user":W.Z,user:W.Z,warning:H.Z};var _=n(73689),G=n(48032);const K="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\")",J="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\")",Q="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\")",Y=["#005B4B"];function X(e,t){return{colors:e,shape:t,backgroundImage:`${t}, linear-gradient(90deg, ${(1===e.length?[e[0],e[0]]:e).join(", ")})`}}const ee={home:X(Y,K),documentation:X(["#C8077A","#C2297D"],J),tool:X(["#8912CA","#3E00EA"],Q),service:X(["#006D8F","#0049A1"],K),website:X(["#0027AF","#270094"],K),library:X(["#98002B","#8D1134"],K),other:X(["#171717","#383838"],K),app:X(["#BE2200","#A41D00"],K),apis:X(Y,J)},te='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif';function ne(e){const t=function(e){const{palette:t,fontFamily:n=te,defaultPageTheme:r,pageTheme:i=ee}=e;if(!i[r])throw new Error(`${r} is not defined in pageTheme.`);return{palette:t,props:{MuiGrid:{spacing:2},MuiSwitch:{color:"primary"}},typography:{fontFamily:n,h5:{fontWeight:700},h4:{fontWeight:700,fontSize:28,marginBottom:6},h3:{fontSize:32,fontWeight:700,marginBottom:6},h2:{fontSize:40,fontWeight:700,marginBottom:8},h1:{fontSize:54,fontWeight:700,marginBottom:10}},page:i[r],getPageTheme:({themeId:e})=>i[e]??i[r]}}(e),n=(0,_.Z)(t),r={MuiCssBaseline:{"@global":{html:{height:"100%",fontFamily:(i=n).typography.fontFamily},body:{height:"100%",fontFamily:i.typography.fontFamily,"overscroll-behavior-y":"none"},a:{color:"inherit",textDecoration:"none"}}},MuiTableRow:{root:{"&:nth-of-type(odd)":{backgroundColor:i.palette.background.default}},hover:{"&:hover":{cursor:"pointer"}},head:{"&:nth-of-type(odd)":{backgroundColor:i.palette.background.paper}}},MuiTableCell:{root:{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:i.spacing(3,2,3,2.5),borderBottom:0},sizeSmall:{padding:i.spacing(1.5,2,1.5,2.5)},head:{wordBreak:"break-word",overflow:"hidden",color:"rgb(179, 179, 179)",fontWeight:"normal",lineHeight:"1"}},MuiTabs:{root:{minHeight:24}},MuiTab:{root:{color:i.palette.link,minHeight:24,textTransform:"initial",letterSpacing:"0.07em","&:hover":{color:(0,G.darken)(i.palette.link,.3),background:(0,G.lighten)(i.palette.link,.95)},[i.breakpoints.up("md")]:{minWidth:120,fontSize:i.typography.pxToRem(14),fontWeight:500}},textColorPrimary:{color:i.palette.link}},MuiTableSortLabel:{root:{color:"inherit","&:hover":{color:"inherit"},"&:focus":{color:"inherit"}},active:{fontWeight:"bold",color:"inherit"}},MuiListItemText:{dense:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},MuiButton:{text:{padding:void 0}},MuiChip:{root:{backgroundColor:"#D9D9D9",marginRight:i.spacing(1),marginBottom:i.spacing(1),color:i.palette.grey[900]},outlined:{color:i.palette.text.primary},label:{lineHeight:`${i.spacing(2.5)}px`,fontWeight:i.typography.fontWeightMedium,fontSize:`${i.spacing(1.75)}px`},labelSmall:{fontSize:`${i.spacing(1.5)}px`},deleteIcon:{color:i.palette.grey[500],width:`${i.spacing(3)}px`,height:`${i.spacing(3)}px`,margin:`0 ${i.spacing(.75)}px 0 -${i.spacing(.75)}px`},deleteIconSmall:{width:`${i.spacing(2)}px`,height:`${i.spacing(2)}px`,margin:`0 ${i.spacing(.5)}px 0 -${i.spacing(.5)}px`}},MuiCard:{root:{display:"flex",flexDirection:"column"}},MuiCardHeader:{root:{paddingBottom:0}},MuiCardContent:{root:{flexGrow:1,"&:last-child":{paddingBottom:void 0}}},MuiCardActions:{root:{justifyContent:"flex-end"}}};var i;return{...n,overrides:r}}var re=n(34505);const ie=ne({palette:{type:"light",background:{default:"#F8F8F8"},status:{ok:"#1DB954",warning:"#FF9800",error:"#E22134",running:"#2E77D0",pending:"#FFED51",aborted:"#757575"},bursts:{fontColor:"#FEFEFE",slackChannelText:"#ddd",backgroundColor:{default:"#7C3699"},gradient:{linear:"linear-gradient(-137deg, #4BB8A5 0%, #187656 100%)"}},primary:{main:"#2E77D0"},banner:{info:"#2E77D0",error:"#E22134",text:"#FFFFFF",link:"#000000",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:re.Z.A700,navigation:{background:"#171717",indicator:"#9BF0E1",color:"#b5b5b5",selectedColor:"#FFF",navItem:{hoverBackground:"#404040"},submenu:{background:"#404040"}},pinSidebarButton:{icon:"#181818",background:"#BDBDBD"},tabbar:{indicator:"#9BF0E1"}},defaultPageTheme:"home",pageTheme:ee}),ae=ne({palette:{type:"dark",background:{default:"#333333"},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",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:re.Z.A700,navigation:{background:"#424242",indicator:"#9BF0E1",color:"#b5b5b5",selectedColor:"#FFF",navItem:{hoverBackground:"#404040"},submenu:{background:"#404040"}},pinSidebarButton:{icon:"#404040",background:"#BDBDBD"},tabbar:{indicator:"#9BF0E1"}},defaultPageTheme:"home",pageTheme:ee});var oe=n(98192),se=n(15222),ce=n(41547),le=n(87561);const ue=[{id:"light",title:"Light Theme",variant:"light",icon:i.createElement(se.Z,null),Provider:({children:e})=>i.createElement(ce.Z,{theme:ie},i.createElement(le.ZP,null,e))},{id:"dark",title:"Dark Theme",variant:"dark",icon:i.createElement(oe.Z,null),Provider:({children:e})=>i.createElement(ce.Z,{theme:ae},i.createElement(le.ZP,null,e))}];n(39398),n(49782);var de=n(79692);(0,de.Z)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),n(91730),n(17499);n(52890);var pe=n(85653);n(95544),n(99688),n(12231),n(86136),n(49378),n(85256),n(61837),n(79784),n(50758),n(49166),n(43054);(0,de.Z)({button:{color:"white"}});const he="plugin.catalog.entityLayoutRoute",fe=()=>null;(0,c.attachComponentData)(fe,he,!0),(0,c.attachComponentData)(fe,"core.gatherMountPoints",!0);var me=n(30001),ge=n(18671);const ye={Layout:({children:e})=>{const t=[],n=[],r=(0,o.UO)(),a=(0,o.s0)();i.Children.forEach(e,(e=>{if(!i.isValidElement(e))return;if(e.type!==ye.Content)throw new Error("This component only accepts Content elements as direct children. Check the code of the EntityPage.");const r=e.props.path;n.push({id:r,label:e.props.title}),t.push({path:r,element:e.props.element})})),""!==(t?.[0]?.path??"")&&t.push({path:"/*",element:i.createElement(o.Fg,{to:t[0].path})});const[s]=(0,o.fp)(t,`/${r["*"]}`)??[],c=((e,t,n=0)=>{if(!e)return n;const r=t.findIndex((t=>t.id===e.route.path));return~r?r:n})(s,n),l=n[c],u=l?.label,d=(0,o.V$)(t);return l?i.createElement(i.Fragment,null,i.createElement(R.HeaderTabs,{tabs:n,selectedIndex:c,onChange:e=>a(n[e].id.replace(/\/\*$/,"").replace(/^\//,""))}),i.createElement(R.Content,null,i.createElement(ge.q,{title:u}),d)):null},Content:e=>null};ye.Content,n(4812);(0,c.attachComponentData)((e=>null),"core.backstage.entitySwitch",!0);var Ae=n(26997);n(83786),n(219),(0,de.Z)((e=>({illo:{maxWidth:"60%",top:100,right:20,position:"absolute",[e.breakpoints.down("xs")]:{maxWidth:"96%",position:"relative",top:"unset",right:"unset",margin:`${e.spacing(10)}px auto ${e.spacing(4)}px`}}}))),(0,de.Z)((e=>({container:{paddingTop:e.spacing(24),paddingLeft:e.spacing(8),[e.breakpoints.down("xs")]:{padding:e.spacing(2)}},title:{paddingBottom:e.spacing(2),[e.breakpoints.down("xs")]:{fontSize:32}},body:{paddingBottom:e.spacing(6),[e.breakpoints.down("xs")]:{paddingBottom:e.spacing(5)}}})));var ve=n(47851);const be=(0,c.createPlugin)({id:"catalog",apis:[(0,c.createApiFactory)({api:pe.Ah,deps:{discoveryApi:c.discoveryApiRef,fetchApi:c.fetchApiRef},factory:({discoveryApi:e,fetchApi:t})=>new me.MS({discoveryApi:e,fetchApi:t})}),(0,c.createApiFactory)({api:pe.starredEntitiesApiRef,deps:{storageApi:c.storageApiRef},factory:({storageApi:e})=>new pe.DefaultStarredEntitiesApi({storageApi:e})})],routes:{catalogIndex:pe.M4,catalogEntity:pe.wi},externalRoutes:{createComponent:ve.y,viewTechDoc:ve.j}}),Ee=(be.provide((0,c.createRoutableExtension)({name:"CatalogIndexPage",component:()=>Promise.resolve().then(n.bind(n,83786)).then((e=>e.CatalogPage)),mountPoint:pe.M4})),be.provide((0,c.createRoutableExtension)({name:"CatalogEntityPage",component:()=>n.e(6650).then(n.bind(n,76650)).then((e=>e.CatalogEntityPage)),mountPoint:pe.wi})));be.provide((0,c.createComponentExtension)({name:"EntityAboutCard",component:{lazy:()=>Promise.resolve().then(n.bind(n,39398)).then((e=>e.AboutCard))}})),be.provide((0,c.createComponentExtension)({name:"EntityLinksCard",component:{lazy:()=>n.e(1959).then(n.bind(n,81959)).then((e=>e.EntityLinksCard))}})),be.provide((0,c.createComponentExtension)({name:"EntityHasSystemsCard",component:{lazy:()=>n.e(390).then(n.bind(n,60390)).then((e=>e.HasSystemsCard))}})),be.provide((0,c.createComponentExtension)({name:"EntityHasComponentsCard",component:{lazy:()=>n.e(4022).then(n.bind(n,4022)).then((e=>e.HasComponentsCard))}})),be.provide((0,c.createComponentExtension)({name:"EntityHasSubcomponentsCard",component:{lazy:()=>n.e(8792).then(n.bind(n,38792)).then((e=>e.HasSubcomponentsCard))}})),be.provide((0,c.createComponentExtension)({name:"EntityHasResourcesCard",component:{lazy:()=>n.e(1553).then(n.bind(n,11553)).then((e=>e.HasResourcesCard))}})),be.provide((0,c.createComponentExtension)({name:"EntityDependsOnComponentsCard",component:{lazy:()=>n.e(8061).then(n.bind(n,48061)).then((e=>e.DependsOnComponentsCard))}})),be.provide((0,c.createComponentExtension)({name:"EntityDependencyOfComponentsCard",component:{lazy:()=>n.e(6235).then(n.bind(n,56235)).then((e=>e.DependencyOfComponentsCard))}})),be.provide((0,c.createComponentExtension)({name:"EntityDependsOnResourcesCard",component:{lazy:()=>n.e(9028).then(n.bind(n,59028)).then((e=>e.DependsOnResourcesCard))}})),be.provide((0,c.createComponentExtension)({name:"EntitySystemDiagramCard",component:{lazy:()=>n.e(4960).then(n.bind(n,14960)).then((e=>e.SystemDiagramCard))}}));var we=n(3337),Re=n(76372);class Se{configApi;discoveryApi;identityApi;constructor({configApi:e,discoveryApi:t,identityApi:n}){this.configApi=e,this.discoveryApi=t,this.identityApi=n}async getApiOrigin(){return this.configApi.getOptionalString("techdocs.requestUrl")??await this.discoveryApi.getBaseUrl("techdocs")}async getTechDocsMetadata(e){const{kind:t,namespace:n,name:r}=e,i=`${await this.getApiOrigin()}/metadata/techdocs/${n}/${t}/${r}`,a=await this.identityApi.getIdToken(),o=await fetch(`${i}`,{headers:a?{Authorization:`Bearer ${a}`}:{}});if(!o.ok)throw await p.VL.fromResponse(o);return await o.json()}async getEntityMetadata(e){const{kind:t,namespace:n,name:r}=e,i=`${await this.getApiOrigin()}/metadata/entity/${n}/${t}/${r}`,a=await this.identityApi.getIdToken(),o=await fetch(`${i}`,{headers:a?{Authorization:`Bearer ${a}`}:{}});if(!o.ok)throw await p.VL.fromResponse(o);return await o.json()}}class ke{configApi;discoveryApi;identityApi;constructor({configApi:e,discoveryApi:t,identityApi:n}){this.configApi=e,this.discoveryApi=t,this.identityApi=n}async getApiOrigin(){return this.configApi.getOptionalString("techdocs.requestUrl")??await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){return this.configApi.getOptionalString("techdocs.storageUrl")??`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(e,t){const{kind:n,namespace:r,name:i}=e,a=`${await this.getStorageUrl()}/${r}/${n}/${i}/${t}`,o=await this.identityApi.getIdToken(),s=await fetch(`${a.endsWith("/")?a:`${a}/`}index.html`,{headers:o?{Authorization:`Bearer ${o}`}:{}});let c="";switch(s.status){case 404:throw c="Page not found. ",t||(c+="This could be because there is no index.md file in the root of the docs directory of this repository."),new p.dR(c);case 500:throw c="Could not generate documentation or an error in the TechDocs backend. ",new Error(c)}return s.text()}async syncEntityDocs(e,t=(()=>{})){const{kind:n,namespace:r,name:i}=e,a=`${await this.getApiOrigin()}/sync/${r}/${n}/${i}`,o=await this.identityApi.getIdToken();return new Promise(((e,n)=>{const r=new Re.EventSourcePolyfill(a,{withCredentials:!0,headers:o?{Authorization:`Bearer ${o}`}:{}});r.addEventListener("log",(e=>{e.data&&t(JSON.parse(e.data))})),r.addEventListener("finish",(t=>{let n=!1;t.data&&({updated:n}=JSON.parse(t.data)),e(n?"updated":"cached")})),r.onerror=e=>{r.close(),404!==e.status?n(new Error(e.data)):n(new p.dR(e.message))}}))}async getBaseUrl(e,t,n){const{kind:r,namespace:i,name:a}=t,o=`${await this.getApiOrigin()}/static/docs/${i}/${r}/${a}/${n}`;return new URL(e,o.endsWith("/")?o:`${o}/`).toString()}}n(71226);var xe=n(99949),Ce=n(76635),Fe=n(83201),Te=n(50294),Ze=n(67430);const Le=({columns:e,actions:t})=>{const{loading:n,error:r,entities:a,filters:o}=(0,pe.useEntityListProvider)(),{isStarredEntity:s,toggleStarredEntity:c}=(0,pe.useStarredEntities)(),[,l]=(0,xe.Z)(),u=(0,Ce.capitalize)(o.user?.value??"all"),d=[Te.createCopyDocsUrlAction(l),Te.createStarEntityAction(s,c)];return r?i.createElement(R.WarningPanel,{severity:"error",title:"Could not load available documentation."},i.createElement(R.CodeSnippet,{language:"text",text:r.toString()})):i.createElement(Fe.DocsTable,{title:u,entities:a,loading:n,actions:t||d,columns:e})};Le.columns=Ze,Le.actions=Te;var Oe=n(1114);class Pe{getCatalogFilters(){return{"metadata.annotations.backstage.io/techdocs-ref":pe.n3}}}const Ie=()=>{const{updateFilters:e}=(0,pe.useEntityListProvider)();return(0,i.useEffect)((()=>{e({techdocs:new Pe})}),[e]),null};n(10187);var $e=n(68725);const Be=(0,c.createPlugin)({id:"techdocs",apis:[(0,c.createApiFactory)({api:we.D,deps:{configApi:c.configApiRef,discoveryApi:c.discoveryApiRef,identityApi:c.identityApiRef},factory:({configApi:e,discoveryApi:t,identityApi:n})=>new ke({configApi:e,discoveryApi:t,identityApi:n})}),(0,c.createApiFactory)({api:we.g,deps:{configApi:c.configApiRef,discoveryApi:c.discoveryApiRef,identityApi:c.identityApiRef},factory:({configApi:e,discoveryApi:t,identityApi:n})=>new Se({configApi:e,discoveryApi:t,identityApi:n})})],routes:{root:$e._Z,docRoot:$e.Fw,entityContent:$e.pd}}),Ne=(Be.provide((0,c.createRoutableExtension)({name:"TechdocsPage",component:()=>Promise.resolve().then(n.bind(n,94067)).then((e=>e.Router)),mountPoint:$e._Z})),Be.provide((0,c.createRoutableExtension)({name:"EntityTechdocsContent",component:()=>Promise.resolve().then(n.bind(n,94067)).then((e=>e.EmbeddedDocsRouter)),mountPoint:$e.pd})),Be.provide((0,c.createComponentExtension)({name:"DocsCardGrid",component:{lazy:()=>Promise.resolve().then(n.bind(n,10187)).then((e=>e.DocsCardGrid))}})),Be.provide((0,c.createComponentExtension)({name:"DocsTable",component:{lazy:()=>Promise.resolve().then(n.bind(n,83201)).then((e=>e.DocsTable))}})),Be.provide((0,c.createRoutableExtension)({name:"TechDocsCustomHome",component:()=>Promise.resolve().then(n.bind(n,57110)).then((e=>e.TechDocsCustomHome)),mountPoint:$e._Z})),Be.provide((0,c.createRoutableExtension)({name:"TechDocsIndexPage",component:()=>Promise.resolve().then(n.bind(n,41481)).then((e=>e.TechDocsIndexPage)),mountPoint:$e._Z}))),Ue=Be.provide((0,c.createRoutableExtension)({name:"TechDocsReaderPage",component:()=>Promise.resolve().then(n.bind(n,31752)).then((e=>e.TechDocsPage)),mountPoint:$e.Fw}));var Me=n(73873),De=(n(94067),n(36356));class qe{configApi;discoveryApi;identityApi;constructor({configApi:e,discoveryApi:t,identityApi:n}){this.configApi=e,this.discoveryApi=t,this.identityApi=n}async getApiOrigin(){return this.configApi.getOptionalString("techdocs.requestUrl")??await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){return this.configApi.getOptionalString("techdocs.storageUrl")??`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(e,t){const n=`${await this.getApiOrigin()}/${t}`,r=await fetch(`${n.endsWith("/")?n:`${n}/`}index.html`);if(404===r.status)throw new Error("Page not found");return r.text()}async syncEntityDocs(e){return"cached"}async getBaseUrl(e,t,n){const r=await this.getApiOrigin();return new URL(e,`${r}/${n}`).toString()}}class ze{configApi;discoveryApi;identityApi;constructor({configApi:e,discoveryApi:t,identityApi:n}){this.configApi=e,this.discoveryApi=t,this.identityApi=n}async getApiOrigin(){return this.configApi.getOptionalString("techdocs.requestUrl")??await this.discoveryApi.getBaseUrl("techdocs")}async getEntityMetadata(e){return{apiVersion:"backstage.io/v1alpha1",kind:"Component",metadata:{name:"local"},spec:{owner:"test",lifecycle:"experimental"}}}async getTechDocsMetadata(e){return{site_name:"Live preview environment",site_description:""}}}const je=[(0,c.createApiFactory)({api:we.D,deps:{configApi:c.configApiRef,discoveryApi:c.discoveryApiRef,identityApi:c.identityApiRef},factory:({configApi:e,discoveryApi:t,identityApi:n})=>new qe({configApi:e,discoveryApi:t,identityApi:n})}),(0,c.createApiFactory)({api:we.g,deps:{configApi:c.configApiRef,discoveryApi:c.discoveryApiRef,identityApi:c.identityApiRef},factory:({configApi:e,discoveryApi:t,identityApi:n})=>new ze({configApi:e,discoveryApi:t,identityApi:n})}),(0,c.createApiFactory)({api:De.q3,deps:{configApi:c.configApiRef},factory:({configApi:e})=>De.ae.fromConfig(e)})];var We=n(86689),He=n(58845);const Ve=(0,de.Z)({svg:{width:"auto",height:30},path:{fill:"#7df3e1"}});var _e=()=>{const e=Ve();return i.createElement("svg",{className:e.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2079.95 456.05"},i.createElement("path",{className:e.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 Ge=(0,de.Z)({svg:{width:"auto",height:28},path:{fill:"#7df3e1"}});var Ke=()=>{const e=Ge();return i.createElement("svg",{className:e.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 337.46 428.5"},i.createElement("path",{className:e.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"}))};const Je=(0,de.Z)({root:{width:R.sidebarConfig.drawerWidthClosed,height:3*R.sidebarConfig.logoHeight,display:"flex",flexFlow:"row nowrap",alignItems:"center",marginBottom:-14},link:{width:R.sidebarConfig.drawerWidthClosed,marginLeft:24}}),Qe=()=>{const e=Je(),{isOpen:t}=(0,i.useContext)(R.SidebarContext);return i.createElement("div",{className:e.root},i.createElement(We.Z,{component:S.OL,to:"/docs/default/component/local/",underline:"none",className:e.link},t?i.createElement(_e,null):i.createElement(Ke,null)))},Ye=({children:e})=>i.createElement(R.SidebarPage,null,i.createElement(R.Sidebar,null,i.createElement(Qe,null),i.createElement(R.SidebarDivider,null),i.createElement(R.SidebarItem,{icon:He.Z,to:"docs/default/component/local/",text:"Docs Preview"})),e),Xe=i.createElement((()=>{const e={site_name:"Live preview environment",site_description:""};return i.createElement(Me.EV,null,(({entityRef:t,onReady:n})=>i.createElement(i.Fragment,null,i.createElement(Me.nN,{techDocsMetadata:e,entityRef:t}),i.createElement(R.Content,{"data-testid":"techdocs-content"},i.createElement(Me.Ej,{onReady:n,entityRef:t,withSearch:!1})))))}),null),et=(tt={apis:je,plugins:Object.values(r)},(0,s.createSpecializedApp)({...tt,apis:tt?.apis??[],bindRoutes:tt?.bindRoutes,components:{...x,...tt?.components},configLoader:tt?.configLoader,defaultApis:E,icons:{...V,...tt?.icons},plugins:tt?.plugins??[],themes:tt?.themes??ue}));var tt;const nt=et.getProvider(),rt=et.getRouter(),it=i.createElement(s.FlatRoutes,null,i.createElement(o.Fg,{key:"/",to:"/docs/default/component/local/"}),i.createElement(o.AW,{path:"/catalog/:namespace/:kind/:name",element:i.createElement(Ee,null)}),i.createElement(o.AW,{path:"/docs",element:i.createElement(Ne,null)},i.createElement((({initialFilter:e="all",columns:t,actions:n})=>i.createElement(Oe.j,null,i.createElement(R.Content,null,i.createElement(R.ContentHeader,{title:""},i.createElement(R.SupportButton,null,"Discover documentation in your ecosystem.")),i.createElement(pe.EntityListProvider,null,i.createElement(Ae.q7,null,i.createElement(Ae.Gh,null,i.createElement(Ie,null),i.createElement(pe.UserListPicker,{initialFilter:e}),i.createElement(pe.EntityOwnerPicker,null),i.createElement(pe.EntityTagPicker,null)),i.createElement(Ae.Nz,null,i.createElement(Le,{actions:n,columns:t}))))))),null)),i.createElement(o.AW,{path:"/docs/:namespace/:kind/:name/*",element:i.createElement(Ue,null)},Xe));a.render(i.createElement((()=>i.createElement(nt,null,i.createElement(rt,null,i.createElement(Ye,null,it)))),null),document.getElementById("root"))},10179:function(e,t,n){"use strict";function r(e){if("object"!=typeof e||null===e||Array.isArray(e))return!1;const t=e;return"string"==typeof t.name&&""!==t.name&&"string"==typeof t.message}function i(e){if("object"!=typeof e||null===e||Array.isArray(e))throw new Error(`Encountered invalid error, not an object, got '${e}'`);const t=e;if("string"!=typeof t.name||""===t.name)throw new Error(`Encountered error object without a name, got '${e}'`);if("string"!=typeof t.message)throw new Error(`Encountered error object without a message, got '${e}'`)}n.d(t,{SP:function(){return c},dR:function(){return s},VL:function(){return l},BD:function(){return i}});var a=n(24852);class o extends Error{cause;constructor(e,t){let n=e;if(void 0!==t){const e=function(e){if(r(e)){const t=String(e);return"[object Object]"!==t?t:`${e.name}: ${e.message}`}return`unknown error '${e}'`}(t);n?n+=`; caused by ${e}`:n=`caused by ${e}`}super(n),Error.captureStackTrace?.(this,this.constructor),this.name=this.constructor.name,this.cause=r(t)?t:void 0}}class s extends o{}class c extends o{constructor(e,t){super(e,t),this.name=r(t)?t.name:"Error"}}class l extends Error{response;body;cause;static async fromResponse(e){const t=await async function(e){try{const t=await e.text();if(t){if(e.headers.get("content-type")?.startsWith("application/json"))try{const e=JSON.parse(t);if(e.error&&e.response)return e}catch{}return{error:{name:"Error",message:`Request failed with status ${e.status} ${e.statusText}, ${t}`},response:{statusCode:e.status}}}}catch{}return{error:{name:"Error",message:`Request failed with status ${e.status} ${e.statusText}`},response:{statusCode:e.status}}}(e),n=`Request failed with ${t.response.statusCode||e.status} ${t.error.name||e.statusText}`,r=function(e){const t=(0,a.deserializeError)(e);return e.stack||(t.stack=void 0),t}(t.error);return new l({message:n,response:e,data:t,cause:r})}constructor(e){super(e.message),this.name="ResponseError",this.response=e.response,this.body=e.data,this.cause=e.cause}get data(){return console.warn("ErrorResponse.data is deprecated, use .body instead."),this.body}}},36356:function(e,t,n){"use strict";n.d(t,{nW:function(){return l},ae:function(){return a},q3:function(){return o}});var r=n(36964);(0,r.createApiRef)({id:"core.scmauth"});var i=n(76996);class a{static fromConfig(e){return i.Lx.fromConfig(e)}}const o=(0,r.createApiRef)({id:"integration.scmintegrations"});var s=n(73250),c=n(2784);const l=e=>{const{type:t}=e,n=(0,r.useApp)(),i=s.Z,a=t?n.getSystemIcon(t)??i:i;return c.createElement(a,null)}},76996:function(e,t,n){"use strict";n.d(t,{Lx:function(){return L},Pb:function(){return R}});var r=n(82717),i=n.n(r),a=n(76635);function o(e){const t=new URL("http://example.com");return t.host=e,t.host===e}function s(e){try{return new URL(e),!0}catch{return!1}}function c(e,t){return{list:()=>e,byUrl(n){try{const r="string"==typeof n?new URL(n):n;return e.find((e=>t(e)===r.host))}catch{return}},byHost:n=>e.find((e=>t(e)===n))}}function l(e){const{url:t,base:n,lineNumber:r}=e;try{return new URL(t),t}catch{}let o;if(t.startsWith("/")){const{filepath:e}=i()(n);o=new URL(n);const r=(0,a.trimEnd)(o.pathname.substring(0,o.pathname.length-e.length),"/");o.pathname=`${r}${t}`}else o=new URL(t,n);return o.search=new URL(n).search,r&&(o.hash=`L${r}`),o.toString()}class u{static fromRepoUrl(e){const t=new URL(e);let n,r,i;const a=t.pathname.split("/").map((e=>decodeURIComponent(e)));if("_git"===a[2]?(n=a[1],r=i=a[3]):"_git"===a[3]&&(n=a[1],r=a[2],i=a[4]),!n||!r||!i)throw new Error("Azure URL must point to a git repository");const o=t.searchParams.get("path")??void 0;let s;const c=t.searchParams.get("version");if(c){if("GB"!==c.slice(0,2))throw new Error("Azure URL version must point to a git branch");s=c.slice(2)}return new u(t.origin,n,r,i,o,s)}#e;#t;#n;#r;#i;#a;constructor(e,t,n,r,i,a){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.#i=i,this.#a=a}#o=(...e)=>{const t=new URL(this.#e);return t.pathname=e.map((e=>encodeURIComponent(e))).join("/"),t};toRepoUrl(){let e;return e=this.#n===this.#r?this.#o(this.#t,"_git",this.#r):this.#o(this.#t,this.#n,"_git",this.#r),this.#i&&e.searchParams.set("path",this.#i),this.#a&&e.searchParams.set("version","GB"+this.#a),e.toString()}toFileUrl(){if(!this.#i)throw new Error("Azure URL must point to a specific path to be able to download a file");const e=this.#o(this.#t,this.#n,"_apis","git","repositories",this.#r,"items");return e.searchParams.set("api-version","6.0"),e.searchParams.set("path",this.#i),this.#a&&e.searchParams.set("version",this.#a),e.toString()}toArchiveUrl(){const e=this.#o(this.#t,this.#n,"_apis","git","repositories",this.#r,"items");return e.searchParams.set("recursionLevel","full"),e.searchParams.set("download","true"),e.searchParams.set("api-version","6.0"),this.#i&&e.searchParams.set("scopePath",this.#i),this.#a&&e.searchParams.set("version",this.#a),e.toString()}toCommitsUrl(){const e=this.#o(this.#t,this.#n,"_apis","git","repositories",this.#r,"commits");return e.searchParams.set("api-version","6.0"),this.#a&&e.searchParams.set("searchCriteria.itemVersion.version",this.#a),e.toString()}getOwner(){return this.#t}getProject(){return this.#n}getRepo(){return this.#r}getPath(){return this.#i}getRef(){return this.#a}}const d="dev.azure.com";function p(e){const t=e.getOptionalString("host")??d,n=e.getOptionalString("token");if(!o(t))throw new Error(`Invalid Azure integration config, '${t}' is not a valid host`);return{host:t,token:n}}class h{static factory=({config:e})=>c(function(e){const t=e.map(p);return t.some((e=>e.host===d))||t.push({host:d}),t}(e.getOptionalConfigArray("integrations.azure")??[]).map((e=>new h(e))),(e=>e.config.host));constructor(e){this.integrationConfig=e}get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){const{url:t,base:n}=e;if(s(t))return t;try{const r=u.fromRepoUrl(n),i=new URL(n),a=new URL(`https://a.com${r.getPath()??""}`),o=new URL(t,a).pathname;return i.searchParams.set("path",o),e.lineNumber&&(i.searchParams.set("line",String(e.lineNumber)),i.searchParams.set("lineEnd",String(e.lineNumber+1)),i.searchParams.set("lineStartColumn","1"),i.searchParams.set("lineEndColumn","1")),i.toString()}catch{return new URL(t,n).toString()}}resolveEditUrl(e){return e}}n(48834).Buffer;const f="bitbucket.org",m="https://api.bitbucket.org/2.0";function g(e){const t=e.getOptionalString("host")??f;let n=e.getOptionalString("apiBaseUrl");const r=e.getOptionalString("token"),i=e.getOptionalString("username"),s=e.getOptionalString("appPassword");if(!o(t))throw new Error(`Invalid Bitbucket integration config, '${t}' is not a valid host`);return n?n=(0,a.trimEnd)(n,"/"):t===f&&(n=m),{host:t,apiBaseUrl:n,token:r,username:i,appPassword:s}}class y{static factory=({config:e})=>c(function(e){const t=e.map(g);return t.some((e=>e.host===f))||t.push({host:f,apiBaseUrl:m}),t}(e.getOptionalConfigArray("integrations.bitbucket")??[]).map((e=>new y(e))),(e=>e.config.host));constructor(e){this.integrationConfig=e}get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){const t=l(e);if(e.lineNumber){const n=new URL(t),r=n.pathname.split("/").slice(-1)[0];return n.hash=`${r}-${e.lineNumber}`,n.toString()}return t}resolveEditUrl(e){const t=i()(e),n=new URL(e);return n.searchParams.set("mode","edit"),n.searchParams.set("spa","0"),n.searchParams.set("at",t.ref),n.toString()}}n(96279),n(48834).Buffer;const A="github.com",v="https://api.github.com",b="https://raw.githubusercontent.com";function E(e){const t=e.getOptionalString("host")??A;let n=e.getOptionalString("apiBaseUrl"),r=e.getOptionalString("rawBaseUrl");const i=e.getOptionalString("token"),s=e.getOptionalConfigArray("apps")?.map((e=>({appId:e.getNumber("appId"),clientId:e.getString("clientId"),clientSecret:e.getString("clientSecret"),webhookSecret:e.getString("webhookSecret"),privateKey:e.getString("privateKey"),allowedInstallationOwners:e.getOptionalStringArray("allowedInstallationOwners")})));if(!o(t))throw new Error(`Invalid GitHub integration config, '${t}' is not a valid host`);return n?n=(0,a.trimEnd)(n,"/"):t===A&&(n=v),r?r=(0,a.trimEnd)(r,"/"):t===A&&(r=b),{host:t,apiBaseUrl:n,rawBaseUrl:r,token:i,apps:s}}class w{static factory=({config:e})=>c(function(e){const t=e.map(E);return t.some((e=>e.host===A))||t.push({host:A,apiBaseUrl:v,rawBaseUrl:b}),t}(e.getOptionalConfigArray("integrations.github")??[]).map((e=>new w(e))),(e=>e.config.host));constructor(e){this.integrationConfig=e}get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){return R(l(e),"tree")}resolveEditUrl(e){return R(e,"edit")}}function R(e,t){return e.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,((e,n,r,i)=>`//${n}/${r}/${i}/${t}/`))}const S="gitlab.com",k="https://gitlab.com/api/v4";function x(e){const t=e.getString("host");let n=e.getOptionalString("apiBaseUrl");const r=e.getOptionalString("token");let i=e.getOptionalString("baseUrl");if(n?n=(0,a.trimEnd)(n,"/"):t===S&&(n=k),i=i?(0,a.trimEnd)(i,"/"):`https://${t}`,t.includes(":"))throw new Error(`Invalid GitLab integration config, host '${t}' should just be the host name (e.g. "github.com"), not a URL`);if(!o(t))throw new Error(`Invalid GitLab integration config, '${t}' is not a valid host`);if(!n||!s(n))throw new Error(`Invalid GitLab integration config, '${n}' is not a valid apiBaseUrl`);if(!s(i))throw new Error(`Invalid GitLab integration config, '${i}' is not a valid baseUrl`);return{host:t,token:r,apiBaseUrl:n,baseUrl:i}}class C{static factory=({config:e})=>c(function(e){const t=e.map(x);return t.some((e=>e.host===S))||t.push({host:S,apiBaseUrl:k,baseUrl:"https://gitlab.com"}),t}(e.getOptionalConfigArray("integrations.gitlab")??[]).map((e=>new C(e))),(e=>e.config.host));constructor(e){this.integrationConfig=e}get type(){return"gitlab"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){return l(e)}resolveEditUrl(e){return function(e,t){return e.replace(/\/\-\/(blob|tree|edit)\//,"/-/edit/")}(e)}}const F="amazonaws.com";function T(e){const t=e.getOptionalString("host")??F,n=e.getOptionalString("accessKeyId"),r=e.getOptionalString("secretAccessKey"),i=e.getOptionalString("roleArn");if(!o(t))throw new Error(`Invalid awsS3 integration config, '${t}' is not a valid host`);return{host:t,accessKeyId:n,secretAccessKey:r,roleArn:i}}class Z{static factory=({config:e})=>c(function(e){const t=e.map(T);return t.some((e=>e.host===F))||t.push({host:F}),t}(e.getOptionalConfigArray("integrations.awsS3")??[]).map((e=>new Z(e))),(e=>e.config.host));get type(){return"awsS3"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}constructor(e){this.integrationConfig=e}resolveUrl(e){return l(e)}resolveEditUrl(e){return e}}class L{byType;static fromConfig(e){return new L({awsS3:Z.factory({config:e}),azure:h.factory({config:e}),bitbucket:y.factory({config:e}),github:w.factory({config:e}),gitlab:C.factory({config:e})})}constructor(e){this.byType=e}get awsS3(){return this.byType.awsS3}get azure(){return this.byType.azure}get bitbucket(){return this.byType.bitbucket}get github(){return this.byType.github}get gitlab(){return this.byType.gitlab}list(){return Object.values(this.byType).flatMap((e=>e.list()))}byUrl(e){return Object.values(this.byType).map((t=>t.byUrl(e))).find(Boolean)}byHost(e){return Object.values(this.byType).map((t=>t.byHost(e))).find(Boolean)}resolveUrl(e){const t=this.byUrl(e.base);return t?t.resolveUrl(e):l(e)}resolveEditUrl(e){const t=this.byUrl(e);return t?t.resolveEditUrl(e):e}}},76241:function(e,t,n){"use strict";n.d(t,{CT:function(){return o},EI:function(){return c},uW:function(){return i},Vt:function(){return s}});const r="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")();function i(e,t){const n=(e=>`__@backstage/${e}__`)(e);let i=r[n];return i||(i=t(),r[n]=i,i)}var a=n(2784);function o(e){return i(e,(()=>(0,a.createContext)(void 0)))}function s(e){return(0,a.useContext)(o(e))}function c(e){return Object.freeze(e),{atVersion:t=>e[t]}}},85653:function(e,t,n){"use strict";n.d(t,{AsyncEntityProvider:function(){return R},n3:function(){return i.n3},DefaultStarredEntitiesApi:function(){return d},EntityContext:function(){return b},EntityKindFilter:function(){return K},EntityLifecyclePicker:function(){return Re},EntityListProvider:function(){return M},EntityOwnerPicker:function(){return Ce},EntityRefLink:function(){return _},EntityRefLinks:function(){return G},EntityTable:function(){return Me},EntityTagPicker:function(){return je},EntityTypePicker:function(){return Ve},FavoriteEntity:function(){return et},UnregisterEntityDialog:function(){return pt},UserListPicker:function(){return Et},Ah:function(){return o},M4:function(){return y},wi:function(){return A},favoriteEntityIcon:function(){return Xe},favoriteEntityTooltip:function(){return Ye},formatEntityRefTitle:function(){return W},getEntityMetadataEditUrl:function(){return I},getEntityMetadataViewUrl:function(){return P},getEntityRelations:function(){return $},getEntitySourceLocation:function(){return B},isOwnerOf:function(){return N},starredEntitiesApiRef:function(){return p},useEntity:function(){return k},useEntityCompoundName:function(){return v},useEntityFromUrl:function(){return S},useEntityKinds:function(){return te},useEntityListProvider:function(){return D},useOwnUser:function(){return ne},useRelatedEntities:function(){return re},useStarredEntities:function(){return oe}});var r={};n.r(r),n.d(r,{createDomainColumn:function(){return Le},createEntityRefColumn:function(){return Fe},createEntityRelationColumn:function(){return Te},createMetadataDescriptionColumn:function(){return Pe},createOwnerColumn:function(){return Ze},createSpecLifecycleColumn:function(){return Ie},createSpecTypeColumn:function(){return $e},createSystemColumn:function(){return Oe}});var i=n(30001),a=n(36964);const o=(0,a.createApiRef)({id:"plugin.catalog.service"});var s=n(82394),c=n.n(s),l=n(52890),u=n(76635);class d{settingsStore;starredEntities;constructor(e){(async function({storageApi:e}){const t=e.forBucket("settings"),n=e.forBucket("starredEntities"),r=t.get("starredEntities");if(!(0,u.isArray)(r))return;const i=new Set(n.get("entityRefs")??[]);r.filter(u.isString).map((e=>e.split(":"))).filter((e=>4===e.length&&"entity"===e[0])).map((([e,t,n,r])=>(0,l.eE)({kind:t,namespace:n,name:r}))).forEach((e=>i.add(e))),await n.set("entityRefs",Array.from(i)),await t.remove("starredEntities")})(e).then(),this.settingsStore=e.storageApi.forBucket("starredEntities"),this.starredEntities=new Set(this.settingsStore.get("entityRefs")??[]),this.settingsStore.observe$("entityRefs").subscribe({next:e=>{this.starredEntities=new Set(e.newValue??[]),this.notifyChanges()}})}async toggleStarred(e){this.starredEntities.has(e)?this.starredEntities.delete(e):this.starredEntities.add(e),await this.settingsStore.set("entityRefs",Array.from(this.starredEntities))}starredEntitie$(){return this.observable}isStarred(e){return this.starredEntities.has(e)}subscribers=new Set;observable=new(c())((e=>(e.next(this.starredEntities),this.subscribers.add(e),()=>{this.subscribers.delete(e)})));notifyChanges(){for(const e of this.subscribers)e.next(this.starredEntities)}}const p=(0,a.createApiRef)({id:"catalog-react.starred-entities"});var h=n(2784),f=n(76241),m=n(10289),g=n(84767);const y=(0,a.createRouteRef)({id:"catalog"}),A=(0,a.createRouteRef)({id:"catalog:entity",params:["namespace","kind","name"]}),v=()=>{const{kind:e,namespace:t,name:n}=(0,a.useRouteRefParams)(A);return{kind:e,namespace:t,name:n}},b=(0,h.createContext)({entity:void 0,loading:!0,error:void 0,refresh:()=>{}}),E=b.Provider,w=(0,f.CT)("entity-context"),R=({children:e,entity:t,loading:n,error:r,refresh:i})=>{const a={entity:t,loading:n,error:r,refresh:i};return h.createElement(E,{value:a},h.createElement(w.Provider,{value:(0,f.EI)({1:a})},e))};b.Provider=({value:e,children:t})=>h.createElement(R,{...e,children:t});const S=()=>{const{kind:e,namespace:t,name:n}=v(),r=(0,m.s0)(),i=(0,a.useApi)(a.errorApiRef),s=(0,a.useApi)(o),{value:c,error:l,loading:u,retry:d}=(0,g.Z)((()=>s.getEntityByName({kind:e,namespace:t,name:n})),[s,e,t,n]);return(0,h.useEffect)((()=>{n||(i.post(new Error("No name provided!")),r("/"))}),[i,r,l,u,c,n]),{entity:c,loading:u,error:l,refresh:d}};function k(){const e=(0,f.Vt)("entity-context");if(!e)return{entity:void 0,loading:!0,error:void 0,refresh:()=>{}};const t=e.atVersion(1);if(!t)throw new Error("EntityContext v1 not available");const{entity:n,loading:r,error:i,refresh:a}=t;return{entity:n,loading:r,error:i,refresh:a}}var x=n(19126),C=n.n(x),F=n(87438),T=n(66088),Z=n(98331);function L(e){return e.reduce(((e,t)=>({...e,...t.getCatalogFilters?t.getCatalogFilters():{}})),{})}function O(e){return t=>e.every((e=>!e.filterEntity||e.filterEntity(t)))}function P(e){return e.metadata.annotations?.[l.wh]}function I(e){return e.metadata.annotations?.[l.J1]}function $(e,t,n){let r=e?.relations?.filter((e=>e.type===t))?.map((e=>e.target))||[];return n?.kind&&(r=r?.filter((e=>e.kind.toLocaleLowerCase("en-US")===n.kind.toLocaleLowerCase("en-US")))),r}function B(e,t){const n=e.metadata.annotations?.[l.wX];if(n)try{const e=(0,l.Me)(n),r=t.byUrl(e.target);return{locationTargetUrl:e.target,integrationType:r?.type}}catch{return}}function N(e,t){const n=new Set([...$(e,l.hr,{kind:"group"}),...e?[(0,l.C_)(e)]:[]].map(l.eE)),r=$(t,l.S4).map(l.eE);for(const e of r)if(n.has(e))return!0;return!1}const U=(0,h.createContext)(void 0),M=({children:e})=>{const t=(0,F.Z)(),n=(0,a.useApi)(o),[r,i]=(0,h.useState)({}),[s,c]=(0,h.useState)((()=>({appliedFilters:{},entities:[],backendEntities:[],queryParameters:C().parse(window.location.search,{ignoreQueryPrefix:!0}).filters??{}}))),[{loading:l,error:d},p]=(0,T.Z)((async()=>{const e=(0,u.compact)(Object.values(r)),i=O(e),a=L(e),o=L((0,u.compact)(Object.values(s.appliedFilters))),l=Object.keys(r).reduce(((e,t)=>{const n=r[t];return n?.toQueryValue&&(e[t]=n.toQueryValue()),e}),{});if((0,u.isEqual)(o,a))c({appliedFilters:r,backendEntities:s.backendEntities,entities:s.backendEntities.filter(i),queryParameters:l});else{const e=await n.getEntities({filter:a});c({appliedFilters:r,backendEntities:e.items,entities:e.items.filter(i),queryParameters:l})}if(t()){const e=C().parse(window.location.search,{ignoreQueryPrefix:!0}),t=C().stringify({...e,filters:l},{addQueryPrefix:!0}),n=`${window.location.pathname}${t}`;window.history?.replaceState(null,document.title,n)}}),[n,r,s],{loading:!0});(0,Z.Z)(p,10,[r]);const f=(0,h.useCallback)((e=>{i((t=>{const n="function"==typeof e?e(t):e;return{...t,...n}}))}),[]),m=(0,h.useMemo)((()=>({filters:s.appliedFilters,entities:s.entities,backendEntities:s.backendEntities,updateFilters:f,queryParameters:s.queryParameters,loading:l,error:d})),[s,f,l,d]);return h.createElement(U.Provider,{value:m},e)};function D(){const e=(0,h.useContext)(U);if(!e)throw new Error("useEntityListProvider must be used within EntityListProvider");return e}var q=n(4812),z=n(18149),j=n.n(z);function W(e,t){const n=t?.defaultKind;let r,i,a;return"metadata"in e?(r=e.kind,i=e.metadata.namespace,a=e.metadata.name):(r=e.kind,i=e.namespace,a=e.name),i===l.sk&&(i=void 0),r=r.toLocaleLowerCase("en-US"),`${(0,l.TH)({kind:n&&n.toLocaleLowerCase("en-US")===r?void 0:r,name:a,namespace:i})}`}var H=n(41682),V=n(80030);const _=(0,h.forwardRef)(((e,t)=>{const{entityRef:n,defaultKind:r,title:i,children:o,...s}=e,c=(0,a.useRouteRef)(A);let u,d,p;"metadata"in n?(u=n.kind,d=n.metadata.namespace,p=n.metadata.name):(u=n.kind,d=n.namespace,p=n.name),u=u.toLocaleLowerCase("en-US");const f={kind:u,namespace:d?.toLocaleLowerCase("en-US")??l.sk,name:p},m=W(n,{defaultKind:r}),g=h.createElement(H.Link,{...s,ref:t,to:c(f)},o,!o&&(i??m));return i?h.createElement(V.ZP,{title:m},g):g})),G=({entityRefs:e,defaultKind:t,...n})=>h.createElement(h.Fragment,null,e.map(((e,r)=>h.createElement(h.Fragment,{key:r},r>0&&", ",h.createElement(_,{...n,entityRef:e,defaultKind:t})))));class K{constructor(e){this.value=e}getCatalogFilters(){return{kind:this.value}}toQueryValue(){return this.value}}class J{constructor(e){this.value=e}getTypes(){return Array.isArray(this.value)?this.value:[this.value]}getCatalogFilters(){return{"spec.type":this.getTypes()}}toQueryValue(){return this.getTypes()}}class Q{constructor(e){this.values=e}filterEntity(e){return this.values.every((t=>(e.metadata.tags??[]).includes(t)))}toQueryValue(){return this.values}}class Y{constructor(e){this.values=e}filterEntity(e){return this.values.some((t=>$(e,l.S4).some((e=>W(e,{defaultKind:"group"})===t))))}toQueryValue(){return this.values}}class X{constructor(e){this.values=e}filterEntity(e){return this.values.some((t=>e.spec?.lifecycle===t))}toQueryValue(){return this.values}}class ee{constructor(e,t,n){this.value=e,this.isOwnedEntity=t,this.isStarredEntity=n}filterEntity(e){switch(this.value){case"owned":return this.isOwnedEntity(e);case"starred":return this.isStarredEntity(e);default:return!0}}toQueryValue(){return this.value}}function te(){const e=(0,a.useApi)(o),{error:t,loading:n,value:r}=(0,q.Z)((async()=>{const t=await e.getEntities({fields:["kind"]}).then((e=>e.items));return[...new Set(t.map((e=>e.kind)))].sort()}));return{error:t,loading:n,kinds:r}}function ne(){const e=(0,a.useApi)(o),t=(0,a.useApi)(a.identityApiRef);return(0,q.Z)((()=>e.getEntityByName({kind:"User",namespace:"default",name:t.getUserId()})),[e,t])}function re(e,{type:t,kind:n}){const r=(0,a.useApi)(o),{loading:i,value:s,error:c}=(0,q.Z)((async()=>{const i=e.relations&&e.relations.filter((e=>!(t&&e.type.toLocaleLowerCase("en-US")!==t.toLocaleLowerCase("en-US")||n&&e.target.kind.toLocaleLowerCase("en-US")!==n.toLocaleLowerCase("en-US"))));if(!i)return[];const a=Object.values((0,u.groupBy)(i,(({target:e})=>`${e.kind}:${e.namespace}`.toLocaleLowerCase("en-US")))),o=[];for(const e of a)o.push({kind:e[0].target.kind,namespace:e[0].target.namespace,nameBatches:(0,u.chunk)(e.map((e=>e.target.name)),20)});return(await Promise.all(o.flatMap((e=>e.nameBatches.map((t=>r.getEntities({filter:{kind:e.kind,"metadata.namespace":e.namespace,"metadata.name":t}}))))))).flatMap((e=>e.items))}),[e,t]);return{entities:s,loading:i,error:c}}var ie=n(44517);function ae(e){return"string"==typeof e?e:(0,l.eE)(e)}function oe(){const e=(0,a.useApi)(p),t=(0,ie.Z)(e.starredEntitie$(),new Set),n=(0,h.useCallback)((e=>t.has(ae(e))),[t]),r=(0,h.useCallback)((t=>e.toggleStarred(ae(t)).then()),[e]);return{starredEntities:t,toggleStarredEntity:r,isStarredEntity:n}}function se(e){return"string"==typeof e?e:(0,l.eE)(e)}var ce=n(51949);function le(){const e=(0,a.useApi)(a.identityApiRef),t=(0,a.useApi)(o),{loading:n,value:r}=(0,q.Z)((async()=>{const n=await async function(e){const t=e.getUserId(),n=await e.getIdToken(),r=[];if(t&&r.push(function(e){try{const t=(0,l.of)(e,{defaultKind:"User",defaultNamespace:"default"});return(0,l.eE)(t)}catch{return e}}(t)),n)try{const e=(0,ce.Z)(n);e?.ent&&[e.ent].flat().filter((e=>"string"==typeof e)).map((e=>e.toLocaleLowerCase("en-US"))).forEach((e=>r.push(e)))}catch{}return r}(e),r=await async function(e,t){const n=new Array,r=t.find((e=>e.startsWith("user:")));if(r){const t=await e.getEntityByName((0,l.of)(r));if(t){const e=$(t,l.hr,{kind:"Group"});for(const t of e)n.push((0,l.eE)(t))}}return n}(t,n);return new Set([...n,...r])}),[]),i=(0,h.useMemo)((()=>{const e=new Set(r??[]);return t=>{const n=("metadata"in t?$(t,l.S4):[t]).map(l.eE);for(const t of n)if(e.has(t))return!0;return!1}}),[r]);return(0,h.useMemo)((()=>({loading:n,isOwnedEntity:i})),[n,i])}var ue=n(79692),de=n(95544),pe=n(90436),he=n(5806),fe=n(21324),me=n(86619),ge=n(19996),ye=n(25505),Ae=n(38016),ve=n(88013);const be=(0,ue.Z)({input:{}},{name:"CatalogReactEntityLifecyclePicker"}),Ee=h.createElement(ye.Z,{fontSize:"small"}),we=h.createElement(ge.Z,{fontSize:"small"}),Re=()=>{const e=be(),{updateFilters:t,backendEntities:n,filters:r,queryParameters:i}=D(),a=[i.lifecycles].flat().filter(Boolean),[o,s]=(0,h.useState)(a.length?a:r.lifecycles?.values??[]);(0,h.useEffect)((()=>{t({lifecycles:o.length?new X(o):void 0})}),[o,t]);const c=(0,h.useMemo)((()=>[...new Set(n.map((e=>e.spec?.lifecycle)).filter(Boolean))].sort()),[n]);return c.length?h.createElement(de.Z,{pb:1,pt:1},h.createElement(pe.Z,{variant:"button"},"Lifecycle"),h.createElement(ve.ZP,{"aria-label":"Lifecycle",multiple:!0,options:c,value:o,onChange:(e,t)=>s(t),renderOption:(e,{selected:t})=>h.createElement(he.Z,{control:h.createElement(fe.Z,{icon:Ee,checkedIcon:we,checked:t}),label:e}),size:"small",popupIcon:h.createElement(Ae.Z,{"data-testid":"lifecycle-picker-expand"}),renderInput:t=>h.createElement(me.Z,{...t,className:e.input,variant:"outlined"})})):null},Se=(0,ue.Z)({input:{}},{name:"CatalogReactEntityOwnerPicker"}),ke=h.createElement(ye.Z,{fontSize:"small"}),xe=h.createElement(ge.Z,{fontSize:"small"}),Ce=()=>{const e=Se(),{updateFilters:t,backendEntities:n,filters:r,queryParameters:i}=D(),a=[i.owners].flat().filter(Boolean),[o,s]=(0,h.useState)(a.length?a:r.owners?.values??[]);(0,h.useEffect)((()=>{t({owners:o.length?new Y(o):void 0})}),[o,t]);const c=(0,h.useMemo)((()=>[...new Set(n.flatMap((e=>$(e,l.S4).map((e=>W(e,{defaultKind:"group"}))))).filter(Boolean))].sort()),[n]);return c.length?h.createElement(de.Z,{pb:1,pt:1},h.createElement(pe.Z,{variant:"button"},"Owner"),h.createElement(ve.ZP,{multiple:!0,"aria-label":"Owner",options:c,value:o,onChange:(e,t)=>s(t),renderOption:(e,{selected:t})=>h.createElement(he.Z,{control:h.createElement(fe.Z,{icon:ke,checkedIcon:xe,checked:t}),label:e}),size:"small",popupIcon:h.createElement(Ae.Z,{"data-testid":"owner-picker-expand"}),renderInput:t=>h.createElement(me.Z,{...t,className:e.input,variant:"outlined"})})):null};function Fe({defaultKind:e}){function t(t){return t.metadata?.title||W(t,{defaultKind:e})}return{title:"Name",highlight:!0,customFilterAndSearch:(e,n)=>t(n).includes(e),customSort:(e,n)=>t(e).localeCompare(t(n)),render:t=>h.createElement(_,{entityRef:t,defaultKind:e,title:t.metadata?.title})}}function Te({title:e,relation:t,defaultKind:n,filter:r}){function i(e){return $(e,t,r)}function a(e){return i(e).map((e=>W(e,{defaultKind:n}))).join(", ")}return{title:e,customFilterAndSearch:(e,t)=>a(t).includes(e),customSort:(e,t)=>a(e).localeCompare(a(t)),render:e=>h.createElement(G,{entityRefs:i(e),defaultKind:n})}}function Ze(){return Te({title:"Owner",relation:l.S4,defaultKind:"group"})}function Le(){return Te({title:"Domain",relation:l.cz,defaultKind:"domain",filter:{kind:"domain"}})}function Oe(){return Te({title:"System",relation:l.cz,defaultKind:"system",filter:{kind:"system"}})}function Pe(){return{title:"Description",field:"metadata.description",render:e=>h.createElement(H.OverflowTooltip,{text:e.metadata.description,placement:"bottom-start",line:2}),width:"auto"}}function Ie(){return{title:"Lifecycle",field:"spec.lifecycle"}}function $e(){return{title:"Type",field:"spec.type"}}(0,ue.Z)((e=>({searchToolbar:{paddingLeft:0,paddingRight:0},input:{}})),{name:"CatalogReactEntitySearchBar"});const Be=[Fe({defaultKind:"system"}),Le(),Ze(),Pe()],Ne=[Fe({defaultKind:"component"}),Oe(),Ze(),{title:"Type",field:"spec.type"},{title:"Lifecycle",field:"spec.lifecycle"},Pe()],Ue=(0,ue.Z)((e=>({empty:{padding:e.spacing(2),display:"flex",justifyContent:"center"}})));function Me({entities:e,title:t,emptyContent:n,variant:r="gridItem",columns:i}){const a=Ue(),o={minWidth:"0",width:"100%"};return"gridItem"===r&&(o.height="calc(100% - 10px)"),h.createElement(H.Table,{columns:i,title:t,style:o,emptyContent:n&&h.createElement("div",{className:a.empty},n),options:{search:!1,paging:!1,actionsColumnIndex:-1,padding:"dense"},data:e})}Me.columns=r,Me.systemEntityColumns=Be,Me.componentEntityColumns=Ne;const De=(0,ue.Z)({input:{}},{name:"CatalogReactEntityTagPicker"}),qe=h.createElement(ye.Z,{fontSize:"small"}),ze=h.createElement(ge.Z,{fontSize:"small"}),je=()=>{const e=De(),{updateFilters:t,backendEntities:n,filters:r,queryParameters:i}=D(),a=[i.tags].flat().filter(Boolean),[o,s]=(0,h.useState)(a.length?a:r.tags?.values??[]);(0,h.useEffect)((()=>{t({tags:o.length?new Q(o):void 0})}),[o,t]);const c=(0,h.useMemo)((()=>[...new Set(n.flatMap((e=>e.metadata.tags)).filter(Boolean))].sort()),[n]);return c.length?h.createElement(de.Z,{pb:1,pt:1},h.createElement(pe.Z,{variant:"button"},"Tags"),h.createElement(ve.ZP,{multiple:!0,"aria-label":"Tags",options:c,value:o,onChange:(e,t)=>s(t),renderOption:(e,{selected:t})=>h.createElement(he.Z,{control:h.createElement(fe.Z,{icon:qe,checkedIcon:ze,checked:t}),label:e}),size:"small",popupIcon:h.createElement(Ae.Z,{"data-testid":"tag-picker-expand"}),renderInput:t=>h.createElement(me.Z,{...t,className:e.input,variant:"outlined"})})):null};var We=n(82108),He=n.n(We);const Ve=e=>{const{hidden:t,initialFilter:n}=e,r=(0,a.useApi)(a.alertApiRef),{error:i,availableTypes:s,selectedTypes:c,setSelectedTypes:l}=function(){const e=(0,a.useApi)(o),{filters:{kind:t,type:n},queryParameters:r,updateFilters:i}=D(),s=[r.type].flat().filter(Boolean),[c,l]=(0,h.useState)(s.length?s:n?.getTypes()??[]),[u,d]=(0,h.useState)([]),p=(0,h.useMemo)((()=>t?.value),[t]),{error:f,loading:m,value:g}=(0,q.Z)((async()=>p?await e.getEntities({filter:{kind:p},fields:["spec.type"]}).then((e=>e.items)):[]),[p,e]),y=(0,h.useRef)(g);return(0,h.useEffect)((()=>{const e=y.current;if(y.current=g,m||!p||e===g)return;if(!g)return;const t=g.reduce(((e,t)=>{if("string"!=typeof t.spec?.type)return e;const n=t.spec.type.toLocaleLowerCase("en-US");return e[n]||(e[n]=0),e[n]+=1,e}),{}),n=Object.entries(t).sort((([,e],[,t])=>t-e)).map((([e])=>e));d(n);const r=c.filter((e=>n.includes(e)));j()(c,r)||l(r)}),[m,p,c,l,g]),(0,h.useEffect)((()=>{i({type:c.length?new J(c):void 0})}),[c,i]),{loading:m,error:f,availableTypes:u,selectedTypes:c,setSelectedTypes:l}}();if((0,h.useEffect)((()=>{i&&r.post({message:"Failed to load entity types",severity:"error"}),n&&l([n])}),[i,r,n,l]),0===s.length||i)return null;const u=[{value:"all",label:"All"},...s.map((e=>({value:e,label:He()(e)})))];return t?null:h.createElement(de.Z,{pb:1,pt:1},h.createElement(H.Select,{label:"Type",items:u,selected:(u.length>1?c[0]:void 0)??"all",onChange:e=>l("all"===e?[]:[String(e)])}))};var _e=n(15459),Ge=n(61837),Ke=n(11640),Je=n(28347);const Qe=(0,_e.Z)({root:{color:"#f3ba37"}})(Ke.Z),Ye=e=>e?"Remove from favorites":"Add to favorites",Xe=e=>e?h.createElement(Qe,null):h.createElement(Je.Z,null),et=e=>{const{toggleStarredEntity:t,isStarredEntity:n}=function(e){const t=(0,a.useApi)(p),[n,r]=(0,h.useState)(!1);return(0,h.useEffect)((()=>{const n=t.starredEntitie$().subscribe({next(t){r(t.has(se(e)))}});return()=>{n.unsubscribe()}}),[e,t]),{toggleStarredEntity:(0,h.useCallback)((()=>t.toggleStarred(se(e)).then()),[e,t]),isStarredEntity:n}}(e.entity);return h.createElement(Ge.Z,{color:"inherit",...e,onClick:()=>t()},h.createElement(V.ZP,{title:Ye(n)},Xe(n)))};var tt=n(77277),nt=n(55999),rt=n(85256),it=n(8629),at=n(79249),ot=n(38724),st=n(49429),ct=n(99688),lt=n(10179);const ut=(0,ue.Z)({advancedButton:{fontSize:"0.7em"}}),dt=({entity:e,onConfirm:t})=>{const n=(0,a.useApi)(a.alertApiRef),r=(0,a.useApi)(a.configApiRef),i=ut(),s=function(e){const t=(0,a.useApi)(o),n=e.metadata.annotations?.[l.lb],r=e.metadata.uid,i="bootstrap:bootstrap"===n,s=(0,q.Z)((async()=>{const r=t.getOriginLocationByEntity(e);let i;if(n){const e=`metadata.annotations.${l.lb}`;i=t.getEntities({filter:{[e]:n},fields:["kind","metadata.uid","metadata.name","metadata.namespace"]}).then((e=>e.items))}else i=Promise.resolve([]);return Promise.all([r,i]).then((([e,t])=>({location:e,colocatedEntities:t})))}),[t,e]),c=(0,h.useCallback)((async function(){const{location:e,colocatedEntities:n}=s.value;await t.removeLocationById(e.id),await Promise.allSettled(n.map((e=>t.removeEntityByUid(e.metadata.uid))))}),[t,s]),u=(0,h.useCallback)((async function(){await t.removeEntityByUid(r)}),[t,r]);if(i)return{type:"bootstrap",location:n,deleteEntity:u};const{loading:d,error:p,value:f}=s;if(d)return{type:"loading"};if(p)return{type:"error",error:p};const{location:m,colocatedEntities:g}=f;return m?{type:"unregister",location:n,colocatedEntities:g.map(l.C_),unregisterLocation:c,deleteEntity:u}:{type:"only-delete",deleteEntity:u}}(e),[c,u]=(0,h.useState)(!1),[d,p]=(0,h.useState)(!1),f=r.getOptionalString("app.title")??"Backstage",m=(0,h.useCallback)((async function(){if("unregisterLocation"in s){p(!0);try{await s.unregisterLocation(),t()}catch(e){(0,lt.BD)(e),n.post({message:e.message})}finally{p(!1)}}}),[n,t,s]),g=(0,h.useCallback)((async function(){if("deleteEntity"in s){p(!0);try{await s.deleteEntity(),t()}catch(e){(0,lt.BD)(e),n.post({message:e.message})}finally{p(!1)}}}),[n,t,s]);return"loading"===s.type?h.createElement(H.Progress,null):"error"===s.type?h.createElement(H.ResponseErrorPanel,{error:s.error}):"bootstrap"===s.type?h.createElement(h.Fragment,null,h.createElement(ct.Z,{severity:"info"},'You cannot unregister this entity, since it originates from a protected Backstage configuration (location "',s.location,'"). If you believe this is in error, please contact the ',f," ","integrator."),h.createElement(de.Z,{marginTop:2},!c&&h.createElement(tt.Z,{variant:"text",size:"small",color:"primary",className:i.advancedButton,onClick:()=>u(!0)},"Advanced Options"),c&&h.createElement(h.Fragment,null,h.createElement(nt.Z,null,"You have the option to delete the entity itself from the catalog. Note that this should only be done if you know that the catalog file has been deleted at, or moved from, its origin location. If that is not the case, the entity will reappear shortly as the next refresh round is performed by the catalog."),h.createElement(tt.Z,{variant:"contained",color:"secondary",disabled:d,onClick:g},"Delete Entity")))):"only-delete"===s.type?h.createElement(h.Fragment,null,h.createElement(nt.Z,null,"This entity does not seem to originate from a registered location. You therefore only have the option to delete it outright from the catalog."),h.createElement(tt.Z,{variant:"contained",color:"secondary",disabled:d,onClick:g},"Delete Entity")):"unregister"===s.type?h.createElement(h.Fragment,null,h.createElement(nt.Z,null,"This action will unregister the following entities:"),h.createElement(nt.Z,{component:"ul"},s.colocatedEntities.map((e=>h.createElement("li",{key:`${e.kind}:${e.namespace}/${e.name}`},h.createElement(_,{entityRef:e}))))),h.createElement(nt.Z,null,"Located at the following location:"),h.createElement(nt.Z,{component:"ul"},h.createElement("li",null,s.location)),h.createElement(nt.Z,null,"To undo, just re-register the entity in ",f,"."),h.createElement(de.Z,{marginTop:2},h.createElement(tt.Z,{variant:"contained",color:"secondary",disabled:d,onClick:m},"Unregister Location"),!c&&h.createElement(de.Z,{component:"span",marginLeft:2},h.createElement(tt.Z,{variant:"text",size:"small",color:"primary",className:i.advancedButton,onClick:()=>u(!0)},"Advanced Options"))),c&&h.createElement(h.Fragment,null,h.createElement(de.Z,{paddingTop:4,paddingBottom:4},h.createElement(rt.Z,null)),h.createElement(nt.Z,null,"You also have the option to delete the entity itself from the catalog. Note that this should only be done if you know that the catalog file has been deleted at, or moved from, its origin location. If that is not the case, the entity will reappear shortly as the next refresh round is performed by the catalog."),h.createElement(tt.Z,{variant:"contained",color:"secondary",disabled:d,onClick:g},"Delete Entity"))):h.createElement(ct.Z,{severity:"error"},"Internal error: Unknown state")},pt=({open:e,onConfirm:t,onClose:n,entity:r})=>h.createElement(it.Z,{open:e,onClose:n},h.createElement(at.Z,{id:"responsive-dialog-title"},"Are you sure you want to unregister this entity?"),h.createElement(ot.Z,null,h.createElement(dt,{entity:r,onConfirm:t})),h.createElement(st.Z,null,h.createElement(tt.Z,{onClick:n,color:"primary"},"Cancel")));var ht=n(94339),ft=n(11776),mt=n(12231),gt=n(86136),yt=n(49378),At=n(9520),vt=n(47603);const bt=(0,ue.Z)((e=>({root:{backgroundColor:"rgba(0, 0, 0, .11)",boxShadow:"none",margin:e.spacing(1,0,1,0)},title:{margin:e.spacing(1,0,0,1),textTransform:"uppercase",fontSize:12,fontWeight:"bold"},listIcon:{minWidth:30,color:e.palette.text.primary},menuItem:{minHeight:e.spacing(6)},groupWrapper:{margin:e.spacing(1,1,2,1)}})),{name:"CatalogReactUserListPicker"}),Et=({initialFilter:e,availableFilters:t})=>{const n=bt(),r=(y=(0,a.useApi)(a.configApiRef).getOptionalString("organization.name")??"Company",[{name:"Personal",items:[{id:"owned",label:"Owned",icon:vt.Z},{id:"starred",label:"Starred",icon:Ke.Z}]},{name:y??"Company",items:[{id:"all",label:"All"}]}]).map((e=>({...e,items:e.items.filter((({id:e})=>!t||t.includes(e)))}))).filter((({items:e})=>!!e.length)),{filters:i,updateFilters:o,backendEntities:s,queryParameters:c}=D(),{isStarredEntity:l}=oe(),{isOwnedEntity:d}=le(),[p,f]=(0,h.useState)([c.user].flat()[0]??e),m=(0,h.useMemo)((()=>new ee("owned",d,l)),[d,l]),g=(0,h.useMemo)((()=>new ee("starred",d,l)),[d,l]);var y;(0,h.useEffect)((()=>{o({user:p?new ee(p,d,l):void 0})}),[p,d,l,o]);const[A,v]=(0,h.useState)(s);return(0,h.useEffect)((()=>{const e=O((0,u.compact)(Object.values({...i,user:void 0})));v(s.filter(e))}),[i,s]),h.createElement(ht.Z,{className:n.root},r.map((e=>h.createElement(h.Fragment,{key:e.name},h.createElement(pe.Z,{variant:"subtitle2",className:n.title},e.name),h.createElement(ht.Z,{className:n.groupWrapper},h.createElement(ft.Z,{disablePadding:!0,dense:!0},e.items.map((e=>h.createElement(mt.Z,{key:e.id,button:!0,divider:!0,onClick:()=>f(e.id),selected:e.id===i.user?.value,className:n.menuItem},e.icon&&h.createElement(gt.Z,{className:n.listIcon},h.createElement(e.icon,{fontSize:"small"})),h.createElement(yt.Z,null,h.createElement(pe.Z,{variant:"body1","data-testid":`user-picker-${e.id}`},e.label)),h.createElement(At.Z,null,function(e){switch(e){case"owned":return A.filter((e=>m.filterEntity(e))).length;case"starred":return A.filter((e=>g.filterEntity(e))).length;default:return A.length}}(e.id)??"-"))))))))))};n(92787)},92787:function(){},39398:function(e,t,n){"use strict";n.r(t),n.d(t,{AboutCard:function(){return C},AboutContent:function(){return k},AboutField:function(){return R}});var r=n(52890),i=n(41682),a=n(36964),o=n(36356),s=n(85653),c=n(79692),l=n(94339),u=n(32552),d=n(61837),p=n(85256),h=n(24579),f=n(52866),m=n(30254),g=n(27604),y=n(2784),A=n(47851),v=n(60905),b=n(90436),E=n(7089);const w=(0,c.Z)((e=>({value:{fontWeight:"bold",overflow:"hidden",lineHeight:"24px",wordBreak:"break-word"},label:{color:e.palette.text.secondary,textTransform:"uppercase",fontSize:"10px",fontWeight:"bold",letterSpacing:.5,overflow:"hidden",whiteSpace:"nowrap"}}))),R=({label:e,value:t,gridSizes:n,children:r})=>{const i=w(),o=(0,a.useElementFilter)(r,(e=>e.getElements())),s=o.length>0?o:y.createElement(b.Z,{variant:"body2",className:i.value},t||"unknown");return y.createElement(v.Z,{item:!0,...n},y.createElement(b.Z,{variant:"subtitle2",className:i.label},e),s)},S=(0,c.Z)({description:{wordBreak:"break-word"}}),k=({entity:e})=>{const t=S(),n="system"===e.kind.toLocaleLowerCase("en-US"),i="resource"===e.kind.toLocaleLowerCase("en-US"),a="component"===e.kind.toLocaleLowerCase("en-US"),o="api"===e.kind.toLocaleLowerCase("en-US"),c="template"===e.kind.toLocaleLowerCase("en-US"),l="location"===e.kind.toLocaleLowerCase("en-US"),u="group"===e.kind.toLocaleLowerCase("en-US"),d=(0,s.getEntityRelations)(e,r.cz,{kind:"system"}),p=(0,s.getEntityRelations)(e,r.cz,{kind:"component"}),h=(0,s.getEntityRelations)(e,r.cz,{kind:"domain"}),f=(0,s.getEntityRelations)(e,r.S4);return y.createElement(v.Z,{container:!0},y.createElement(R,{label:"Description",gridSizes:{xs:12}},y.createElement(b.Z,{variant:"body2",paragraph:!0,className:t.description},e?.metadata?.description||"No description")),y.createElement(R,{label:"Owner",value:"No Owner",gridSizes:{xs:12,sm:6,lg:4}},f.length>0&&y.createElement(s.EntityRefLinks,{entityRefs:f,defaultKind:"group"})),(n||h.length>0)&&y.createElement(R,{label:"Domain",value:"No Domain",gridSizes:{xs:12,sm:6,lg:4}},h.length>0&&y.createElement(s.EntityRefLinks,{entityRefs:h,defaultKind:"domain"})),(o||a||i||d.length>0)&&y.createElement(R,{label:"System",value:"No System",gridSizes:{xs:12,sm:6,lg:4}},d.length>0&&y.createElement(s.EntityRefLinks,{entityRefs:d,defaultKind:"system"})),a&&p.length>0&&y.createElement(R,{label:"Parent Component",value:"No Parent Component",gridSizes:{xs:12,sm:6,lg:4}},y.createElement(s.EntityRefLinks,{entityRefs:p,defaultKind:"component"})),(o||a||i||c||u||l||"string"==typeof e?.spec?.type)&&y.createElement(R,{label:"Type",value:e?.spec?.type,gridSizes:{xs:12,sm:6,lg:4}}),(o||a||"string"==typeof e?.spec?.lifecycle)&&y.createElement(R,{label:"Lifecycle",value:e?.spec?.lifecycle,gridSizes:{xs:12,sm:6,lg:4}}),y.createElement(R,{label:"Tags",value:"No Tags",gridSizes:{xs:12,sm:6,lg:4}},(e?.metadata?.tags||[]).map((e=>y.createElement(E.Z,{key:e,size:"small",label:e})))))},x=(0,c.Z)({gridItemCard:{display:"flex",flexDirection:"column",height:"calc(100% - 10px)",marginBottom:"10px"},fullHeightCard:{display:"flex",flexDirection:"column",height:"100%"},gridItemCardContent:{flex:1},fullHeightCardContent:{flex:1}});function C({variant:e}){const t=x(),{entity:n}=(0,s.useEntity)(),c=(0,a.useApi)(o.q3),v=(0,a.useApi)(s.Ah),b=(0,a.useApi)(a.alertApiRef),E=(0,a.useRouteRef)(A.j),w=(0,s.getEntitySourceLocation)(n,c),R=(0,s.getEntityMetadataEditUrl)(n),S={label:"View Source",disabled:!w,icon:y.createElement(o.nW,{type:w?.integrationType}),href:w?.locationTargetUrl},C={label:"View TechDocs",disabled:!n.metadata.annotations?.["backstage.io/techdocs-ref"]||!E,icon:y.createElement(m.Z,null),href:E&&E({namespace:n.metadata.namespace||r.sk,kind:n.kind,name:n.metadata.name})};let F="";"gridItem"===e?F=t.gridItemCard:"fullHeight"===e&&(F=t.fullHeightCard);let T="";"gridItem"===e?T=t.gridItemCardContent:"fullHeight"===e&&(T=t.fullHeightCardContent);const Z=n.metadata.annotations?.[r.Jl]?.startsWith("url:"),L=(0,y.useCallback)((async()=>{await v.refreshEntity((0,r.eE)(n)),b.post({message:"Refresh scheduled",severity:"info"})}),[v,b,n]);return y.createElement(l.Z,{className:F},y.createElement(u.Z,{title:"About",action:y.createElement(y.Fragment,null,Z&&y.createElement(d.Z,{"aria-label":"Refresh",title:"Schedule entity refresh",onClick:L},y.createElement(f.Z,null)),y.createElement(d.Z,{component:i.Link,"aria-label":"Edit",disabled:!R,title:"Edit Metadata",to:R??"#"},y.createElement(g.Z,null))),subheader:y.createElement(i.HeaderIconLinkRow,{links:[S,C]})}),y.createElement(p.Z,null),y.createElement(h.Z,{className:T},y.createElement(k,{entity:n})))}},49782:function(e,t,n){"use strict";n.d(t,{K:function(){return p}});var r=n(2784),i=n(79692),a=n(12420),o=n(97580),s=n(73698),c=n(74603),l=n(12231),u=n(85653);const d=(0,i.Z)((e=>(0,a.Z)({root:{...e.typography.h4}}))),p=({initialFilter:e="component"})=>{const t=d(),{kinds:n=[]}=(0,u.useEntityKinds)(),{updateFilters:i,queryParameters:a}=(0,u.useEntityListProvider)(),[p,h]=(0,r.useState)(([a.kind].flat()[0]??e).toLocaleLowerCase("en-US"));(0,r.useEffect)((()=>{i({kind:p?new u.EntityKindFilter(p):void 0})}),[p,i]);const f=[(0,o.Z)(p)].concat(n).sort().reduce(((e,t)=>(e[t.toLocaleLowerCase("en-US")]=t,e)),{});return r.createElement(s.Z,{input:r.createElement(c.Z,{value:p}),value:p,onChange:e=>h(e.target.value),classes:t},Object.keys(f).map((e=>r.createElement(l.Z,{value:e,key:e},`${f[e]}s`))))}},83786:function(e,t,n){"use strict";n.r(t),n.d(t,{CatalogPage:function(){return d}});var r=n(41682),i=n(36964),a=n(85653),o=n(2784),s=n(47851),c=n(91730),l=n(26997),u=n(49782);const d=({columns:e,actions:t,initiallySelectedFilter:n="owned"})=>{const d=(0,i.useApi)(i.configApiRef).getOptionalString("organization.name")??"Backstage",p=(0,i.useRouteRef)(s.y);return o.createElement(r.PageWithHeader,{title:`${d} Catalog`,themeId:"home"},o.createElement(a.EntityListProvider,null,o.createElement(r.Content,null,o.createElement(r.ContentHeader,{titleComponent:o.createElement(u.K,null)},o.createElement(r.CreateButton,{title:"Create Component",to:p&&p()}),o.createElement(r.SupportButton,null,"All your software catalog entities")),o.createElement(l.q7,null,o.createElement(l.Gh,null,o.createElement(a.EntityTypePicker,null),o.createElement(a.UserListPicker,{initialFilter:n}),o.createElement(a.EntityOwnerPicker,null),o.createElement(a.EntityLifecyclePicker,null),o.createElement(a.EntityTagPicker,null)),o.createElement(l.Nz,null,o.createElement(c.E,{columns:e,actions:t}))))))}},17499:function(e,t,n){"use strict";n.r(t),n.d(t,{createNameColumn:function(){return s},createSystemColumn:function(){return c},createOwnerColumn:function(){return l},createSpecTypeColumn:function(){return u},createSpecLifecycleColumn:function(){return d},createMetadataDescriptionColumn:function(){return p},createTagsColumn:function(){return h}});var r=n(2784),i=n(85653),a=n(7089),o=n(41682);function s(e){function t(t){return t.metadata?.title||(0,i.formatEntityRefTitle)(t,{defaultKind:e?.defaultKind})}return{title:"Name",field:"resolved.name",highlight:!0,customSort:({entity:e},{entity:n})=>t(e).localeCompare(t(n)),render:({entity:t})=>r.createElement(i.EntityRefLink,{entityRef:t,defaultKind:e?.defaultKind||"Component",title:t.metadata?.title})}}function c(){return{title:"System",field:"resolved.partOfSystemRelationTitle",render:({resolved:e})=>r.createElement(i.EntityRefLinks,{entityRefs:e.partOfSystemRelations,defaultKind:"system"})}}function l(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:e})=>r.createElement(i.EntityRefLinks,{entityRefs:e.ownedByRelations,defaultKind:"group"})}}function u(){return{title:"Type",field:"entity.spec.type",hidden:!0}}function d(){return{title:"Lifecycle",field:"entity.spec.lifecycle"}}function p(){return{title:"Description",field:"entity.metadata.description",render:({entity:e})=>r.createElement(o.OverflowTooltip,{text:e.metadata.description,placement:"bottom-start"}),width:"auto"}}function h(){return{title:"Tags",field:"entity.metadata.tags",cellStyle:{padding:"0px 16px 0px 20px"},render:({entity:e})=>r.createElement(r.Fragment,null,e.metadata.tags&&e.metadata.tags.map((e=>r.createElement(a.Z,{key:e,label:e,size:"small",variant:"outlined",style:{marginBottom:"0px"}}))))}}},91730:function(e,t,n){"use strict";n.d(t,{E:function(){return d}});var r=n(52890),i=n(85653),a=n(27604),o=n(2997),s=n(76635),c=n(2784),l=n(17499),u=n(41682);const d=({columns:e,actions:t})=>{const{isStarredEntity:n,toggleStarredEntity:d}=(0,i.useStarredEntities)(),{loading:p,error:h,entities:f,filters:m}=(0,i.useEntityListProvider)(),g=(0,c.useMemo)((()=>[l.createNameColumn({defaultKind:m.kind?.value}),l.createSystemColumn(),l.createOwnerColumn(),l.createSpecTypeColumn(),l.createSpecLifecycleColumn(),l.createMetadataDescriptionColumn(),l.createTagsColumn()]),[m.kind?.value]),y=void 0===m.type,A=(0,s.capitalize)(m.user?.value??"all");if(h)return c.createElement("div",null,c.createElement(u.WarningPanel,{severity:"error",title:"Could not fetch catalog entities."},c.createElement(u.CodeSnippet,{language:"text",text:h.toString()})));const v=[({entity:e})=>{const t=(0,i.getEntityMetadataViewUrl)(e);return{icon:()=>c.createElement(o.Z,{"aria-label":"View",fontSize:"small"}),tooltip:"View",disabled:!t,onClick:()=>{t&&window.open(t,"_blank")}}},({entity:e})=>{const t=(0,i.getEntityMetadataEditUrl)(e);return{icon:()=>c.createElement(a.Z,{"aria-label":"Edit",fontSize:"small"}),tooltip:"Edit",disabled:!t,onClick:()=>{t&&window.open(t,"_blank")}}},({entity:e})=>{const t=n(e);return{cellStyle:{paddingLeft:"1em"},icon:()=>(0,i.favoriteEntityIcon)(t),tooltip:(0,i.favoriteEntityTooltip)(t),onClick:()=>d(e)}}],b=f.map((e=>{const t=(0,i.getEntityRelations)(e,r.cz,{kind:"system"}),n=(0,i.getEntityRelations)(e,r.S4);return{entity:e,resolved:{name:(0,i.formatEntityRefTitle)(e,{defaultKind:"Component"}),ownedByRelationsTitle:n.map((e=>(0,i.formatEntityRefTitle)(e,{defaultKind:"group"}))).join(", "),ownedByRelations:n,partOfSystemRelationTitle:t.map((e=>(0,i.formatEntityRefTitle)(e,{defaultKind:"system"}))).join(", "),partOfSystemRelations:t}}})),E=(e||g).find((e=>"Type"===e.title));E&&(E.hidden=!y);const w=b.length>20;return c.createElement(u.Table,{isLoading:p,columns:e||g,options:{paging:w,pageSize:20,actionsColumnIndex:-1,loadingType:"linear",showEmptyDataSourceMessage:!p,padding:"dense",pageSizeOptions:[20,50,100]},title:`${A} (${f.length})`,data:b,actions:t||v})};d.columns=l},26997:function(e,t,n){"use strict";n.d(t,{Nz:function(){return f},Gh:function(){return h},q7:function(){return a}});var r=n(60905),i=n(2784);const a=({children:e})=>i.createElement(r.Z,{container:!0,style:{position:"relative"}},e);var o=n(41156),s=n(60364),c=n(77277),l=n(4190),u=n(95544),d=n(90436),p=n(36444);const h=({children:e})=>{const t=(0,o.Z)((e=>e.breakpoints.down("md"))),n=(0,s.Z)(),[a,h]=(0,i.useState)(!1);return t?i.createElement(i.Fragment,null,i.createElement(c.Z,{style:{marginTop:n.spacing(1),marginLeft:n.spacing(1)},onClick:()=>h(!0),startIcon:i.createElement(p.Z,null)},"Filters"),i.createElement(l.ZP,{open:a,onClose:()=>h(!1),anchor:"left",disableAutoFocus:!0,keepMounted:!0,variant:"temporary"},i.createElement(u.Z,{m:2},i.createElement(d.Z,{variant:"h6",component:"h2",style:{marginBottom:n.spacing(1)}},"Filters"),e))):i.createElement(r.Z,{item:!0,lg:2},e)},f=({children:e})=>i.createElement(r.Z,{item:!0,xs:12,lg:10},e)},47851:function(e,t,n){"use strict";n.d(t,{y:function(){return i},j:function(){return a}});var r=n(36964);const i=(0,r.createExternalRouteRef)({id:"create-component",optional:!0}),a=(0,r.createExternalRouteRef)({id:"view-techdoc",optional:!0,params:["namespace","kind","name"]})},91512:function(e,t,n){"use strict";n.d(t,{g:function(){return s},w:function(){return c}});var r=n(36964),i=n(10179),a=n(19126),o=n.n(a);const s=(0,r.createApiRef)({id:"plugin.search.queryservice"});class c{discoveryApi;identityApi;constructor(e){this.discoveryApi=e.discoveryApi,this.identityApi=e.identityApi}async query(e){const t=await this.identityApi.getIdToken(),n=o().stringify(e),r=`${await this.discoveryApi.getBaseUrl("search/query")}?${n}`,a=await fetch(r,{headers:t?{Authorization:`Bearer ${t}`}:{}});if(!a.ok)throw await i.VL.fromResponse(a);return a.json()}}},19941:function(e,t,n){"use strict";n.r(t),n.d(t,{DefaultResultListItem:function(){return u}});var r=n(2784),i=n(38402),a=n(86136),o=n(49378),s=n(95544),c=n(85256),l=n(41682);const u=({result:e,icon:t,secondaryAction:n})=>r.createElement(l.Link,{to:e.location},r.createElement(i.Z,{alignItems:"center"},t&&r.createElement(a.Z,null,t),r.createElement(o.Z,{primaryTypographyProps:{variant:"h6"},primary:e.title,secondary:e.text}),n&&r.createElement(s.Z,{alignItems:"flex-end"},n)),r.createElement(c.Z,null))},46105:function(e,t,n){"use strict";n.r(t),n.d(t,{HomePageSearchBar:function(){return p}});var r=n(2784),i=n(79692),a=n(23695),o=n(19126),s=n.n(o),c=n(10289),l=n(20863),u=n(36964);const d=(0,i.Z)({searchBar:{border:"1px solid #555",borderRadius:"6px",fontSize:"1.5em"}}),p=({className:e,...t})=>{const n=d(),[i,o]=(0,r.useState)(""),p=(()=>{const e=(0,u.useRouteRef)(l._Z),t=(0,c.s0)();return(0,r.useCallback)((({query:n})=>{const r=s().stringify({query:n},{addQueryPrefix:!0});t(`${e()}${r}`)}),[t,e])})(),h=e?`${n.searchBar} ${e}`:n.searchBar,f=(0,r.useCallback)((e=>{o(e)}),[o]);return r.createElement(a.SearchBarBase,{className:h,value:i,onSubmit:()=>{p({query:i})},onChange:f,...t})}},23695:function(e,t,n){"use strict";n.r(t),n.d(t,{SearchBar:function(){return h},SearchBarBase:function(){return p}});var r=n(2784),i=n(98331),a=n(36964),o=n(50581),s=n(61837),c=n(74603),l=n(21853),u=n(33375),d=n(22313);const p=({onChange:e,onKeyDown:t,onSubmit:n,debounceTime:d=200,clearButton:p=!0,fullWidth:h=!0,value:f,inputProps:m={},endAdornment:g,...y})=>{const A=(0,a.useApi)(a.configApiRef),[v,b]=(0,r.useState)(f);(0,r.useEffect)((()=>{b((e=>e!==f?f:e))}),[f]),(0,i.Z)((()=>e(v)),d,[v]);const E=(0,r.useCallback)((e=>{b(e.target.value)}),[b]),w=(0,r.useCallback)((e=>{t&&t(e),n&&"Enter"===e.key&&n()}),[t,n]),R=(0,r.useCallback)((()=>{e("")}),[e]),S=`Search in ${A.getOptionalString("app.title")||"Backstage"}`,k=r.createElement(o.Z,{position:"start"},r.createElement(s.Z,{"aria-label":"Query",disabled:!0},r.createElement(l.Z,null))),x=r.createElement(o.Z,{position:"end"},r.createElement(s.Z,{"aria-label":"Clear",onClick:R},r.createElement(u.Z,null)));return r.createElement(c.Z,{"data-testid":"search-bar-next",value:v,placeholder:S,startAdornment:k,endAdornment:p?x:g,inputProps:{"aria-label":"Search",...m},fullWidth:h,onChange:E,onKeyDown:w,...y})},h=({onChange:e,...t})=>{const{term:n,setTerm:i}=(0,d.Rx)();return r.createElement(p,{value:n,onChange:t=>{i(t),e&&e(t)},...t})}},22313:function(e,t,n){"use strict";n.d(t,{Nd:function(){return l},Rx:function(){return u}});var r=n(36964),i=n(2784),a=n(76539),o=n(4812),s=n(91512);const c=(0,i.createContext)(void 0),l=({initialState:e={term:"",pageCursor:void 0,filters:{},types:[]},children:t})=>{const n=(0,r.useApi)(s.g),[l,u]=(0,i.useState)(e.pageCursor),[d,p]=(0,i.useState)(e.filters),[h,f]=(0,i.useState)(e.term),[m,g]=(0,i.useState)(e.types),[y,A]=(0,i.useState)(!1),v=(0,i.useCallback)((()=>A((e=>!e))),[]),b=(0,a.Z)(h),E=(0,o.Z)((()=>n.query({term:h,filters:d,pageCursor:l,types:m})),[h,d,m,l]),w=!E.loading&&!E.error&&E.value?.nextPageCursor,R=!E.loading&&!E.error&&E.value?.previousPageCursor,S=(0,i.useCallback)((()=>{u(E.value?.nextPageCursor)}),[E.value?.nextPageCursor]),k=(0,i.useCallback)((()=>{u(E.value?.previousPageCursor)}),[E.value?.previousPageCursor]);(0,i.useEffect)((()=>{h&&b&&h!==b&&u(void 0)}),[h,b,e.pageCursor]);const x={result:E,filters:d,setFilters:p,open:y,toggleModal:v,term:h,setTerm:f,types:m,setTypes:g,pageCursor:l,setPageCursor:u,fetchNextPage:w?S:void 0,fetchPreviousPage:R?k:void 0};return i.createElement(c.Provider,{value:x,children:t})},u=()=>{const e=(0,i.useContext)(c);if(void 0===e)throw new Error("useSearch must be used within a SearchContextProvider");return e}},65678:function(e,t,n){"use strict";n.d(t,{s:function(){return S}});var r=n(2784),i=n(8629),a=n(79249),o=n(27556),s=n(38724),c=n(60905),l=n(85256),u=n(11776),d=n(49429),p=n(91136),h=n(79692),f=n(23695),m=n(19941),g=n(39332),y=n(22313),A=n(8542),v=n(36964),b=n(41682),E=n(20863);const w=(0,h.Z)((e=>({container:{borderRadius:30,display:"flex",height:"2.4em"},input:{flex:1},paperFullWidth:{height:"calc(100% - 128px)"},dialogActionsContainer:{padding:e.spacing(1,3)},viewResultsLink:{verticalAlign:"0.5em"}}))),R=({open:e=!0,toggleModal:t})=>{const n=(0,v.useRouteRef)(E._Z),h=w(),{term:R}=(0,y.Rx)(),S=()=>{t()},k=()=>{S()};return r.createElement(i.Z,{classes:{paperFullWidth:h.paperFullWidth},onClose:t,"aria-labelledby":"search-modal-title",open:e,fullWidth:!0,maxWidth:"lg"},r.createElement(a.Z,null,r.createElement(o.Z,{className:h.container},r.createElement(f.SearchBar,{className:h.input}))),r.createElement(s.Z,null,r.createElement(c.Z,{container:!0,direction:"row-reverse",justifyContent:"flex-start",alignItems:"center"},r.createElement(c.Z,{item:!0},r.createElement(b.Link,{onClick:t,to:`${n()}?query=${R}`},r.createElement("span",{className:h.viewResultsLink},"View Full Results"),r.createElement(p.Z,{color:"primary"})))),r.createElement(l.Z,null),r.createElement(g.SearchResult,null,(({results:e})=>r.createElement(u.Z,null,e.map((({document:e})=>r.createElement("div",{role:"button",tabIndex:0,key:`${e.location}-btn`,onClick:S,onKeyPress:k},r.createElement(m.DefaultResultListItem,{key:e.location,result:e})))))))),r.createElement(d.Z,{className:h.dialogActionsContainer},r.createElement(c.Z,{container:!0,direction:"row"},r.createElement(c.Z,{item:!0,xs:12},r.createElement(A.G,null)))))},S=({open:e=!0,toggleModal:t})=>r.createElement(y.Nd,null,r.createElement(R,{open:e,toggleModal:t}))},3992:function(e,t,n){"use strict";n.r(t),n.d(t,{SearchPage:function(){return G}});var r=n(2784),i=n(76539),a=n(19126),o=n.n(a),s=n(10289),c=n(22313),l=n(60905),u=n(98331),d=n(79692),p=n(27556),h=n(74603),f=n(61837),m=n(21853),g=n(33375);const y=(0,d.Z)((()=>({root:{display:"flex",alignItems:"center"},input:{flex:1}}))),A=({searchQuery:e,handleSearch:t,handleClearSearchBar:n})=>{const i=y();return r.createElement(p.Z,{component:"form",onSubmit:e=>t(e),className:i.root},r.createElement(f.Z,{disabled:!0,type:"submit","aria-label":"search"},r.createElement(m.Z,null)),r.createElement(h.Z,{className:i.input,placeholder:"Search in Backstage",value:e,onChange:e=>t(e),inputProps:{"aria-label":"search backstage"}}),r.createElement(f.Z,{"aria-label":"search",onClick:()=>n()},r.createElement(g.Z,null)))};var v=n(85256),b=n(90436),E=n(99688),w=n(4812),R=n(85653),S=n(36444);const k=(0,d.Z)((e=>({filters:{width:"250px",display:"flex"},icon:{margin:e.spacing(-1,0,0,0)}}))),x=({numberOfSelectedFilters:e,handleToggleFilters:t})=>{const n=k();return r.createElement("div",{className:n.filters},r.createElement(f.Z,{className:n.icon,"aria-label":"settings",onClick:t},r.createElement(S.Z,null)),r.createElement(b.Z,{variant:"h6"},"Filters (",e||0,")"))};var C=n(94339),F=n(32552),T=n(77277),Z=n(24579),L=n(73698),O=n(12231),P=n(11776),I=n(38402),$=n(21324),B=n(49378);const N=(0,d.Z)((e=>({filters:{background:"transparent",boxShadow:"0px 0px 0px 0px"},checkbox:{padding:e.spacing(0,1,0,1)},dropdown:{width:"100%"}}))),U=({filters:e,filterOptions:t,resetFilters:n,updateSelected:i,updateChecked:a})=>{const o=N();return r.createElement(C.Z,{className:o.filters},r.createElement(F.Z,{title:r.createElement(b.Z,{variant:"h6"},"Filters"),action:r.createElement(T.Z,{color:"primary",onClick:()=>n()},"CLEAR ALL")}),r.createElement(v.Z,null),0===t.kind.length&&0===t.lifecycle.length&&r.createElement(Z.Z,null,r.createElement(b.Z,{variant:"subtitle2"},"Filters cannot be applied to available results")),t.kind.length>0&&r.createElement(Z.Z,null,r.createElement(b.Z,{variant:"subtitle2"},"Kind"),r.createElement(L.Z,{id:"outlined-select",onChange:e=>i(e?.target?.value),variant:"outlined",className:o.dropdown,value:e.selected},t.kind.map((e=>r.createElement(O.Z,{selected:""===e,dense:!0,key:e,value:e},e))))),t.lifecycle.length>0&&r.createElement(Z.Z,null,r.createElement(b.Z,{variant:"subtitle2"},"Lifecycle"),r.createElement(P.Z,{disablePadding:!0,dense:!0},t.lifecycle.map((t=>r.createElement(I.Z,{key:t,dense:!0,button:!0,onClick:()=>a(t)},r.createElement($.Z,{edge:"start",disableRipple:!0,className:o.checkbox,color:"primary",checked:e.checked.includes(t),tabIndex:-1,value:t,name:t}),r.createElement(B.Z,{id:t,primary:t})))))))};var M=n(52890),D=n(41682),q=n(36964);const z=(0,d.Z)((e=>({searchQuery:{color:e.palette.text.primary,background:e.palette.background.default,borderRadius:"10%"},tableHeader:{margin:e.spacing(1,0,0,0),display:"flex"},divider:{width:"1px",margin:e.spacing(0,2),padding:e.spacing(2,0)}}))),j=[{title:"Name",field:"name",highlight:!0,render:e=>r.createElement(D.Link,{to:e.url||""},e.name)},{title:"Description",field:"description"},{title:"Owner",field:"owner"},{title:"Kind",field:"kind"},{title:"LifeCycle",field:"lifecycle"}],W=({searchQuery:e,numberOfSelectedFilters:t,numberOfResults:n,handleToggleFilters:i})=>{const a=z();return r.createElement("div",{className:a.tableHeader},r.createElement(x,{numberOfSelectedFilters:t,handleToggleFilters:i}),r.createElement(v.Z,{className:a.divider,orientation:"vertical"}),r.createElement(l.Z,{item:!0,xs:12},e?r.createElement(b.Z,{variant:"h6"},`${n} `,n>1?"results for ":"result for ",r.createElement("span",{className:a.searchQuery},'"',e,'"')," "):r.createElement(b.Z,{variant:"h6"},`${n} results`)))},H=({searchQuery:e})=>{const t=(0,q.useApi)(R.Ah),[n,i]=(0,r.useState)(!1),[a,o]=(0,r.useState)({selected:"",checked:[]}),[s,c]=(0,r.useState)([]),{loading:u,error:d,value:p}=(0,w.Z)((async()=>(await t.getEntities()).items.map((e=>({name:e.metadata.name,description:e.metadata.description,owner:"string"==typeof e.spec?.owner?e.spec?.owner:void 0,kind:e.kind,lifecycle:"string"==typeof e.spec?.lifecycle?e.spec?.lifecycle:void 0,url:`/catalog/${e.metadata.namespace?.toLocaleLowerCase("en-US")||M.sk}/${e.kind.toLocaleLowerCase("en-US")}/${e.metadata.name}`})))),[]);if((0,r.useEffect)((()=>{if(p){let t=p;""!==a.selected&&(t=p.filter((e=>a.selected.includes(e.kind)))),a.checked.length>0&&(t=t.filter((e=>e.lifecycle&&a.checked.includes(e.lifecycle)))),e&&(t=t.filter((t=>t.name?.toLocaleLowerCase("en-US").includes(e)||t.name?.toLocaleLowerCase("en-US").includes(e.split(" ").join("-"))||t.description?.toLocaleLowerCase("en-US").includes(e)))),c(t)}}),[a,e,p]),u)return r.createElement(D.Progress,null);if(d)return r.createElement(E.Z,{severity:"error"},"Error encountered while fetching search results. ",d.toString());if(!p||0===p.length)return r.createElement(D.EmptyState,{missing:"data",title:"Sorry, no results were found"});const h=p.reduce(((e,t)=>(t.kind&&e.kind.indexOf(t.kind)<0&&e.kind.push(t.kind),t.lifecycle&&e.lifecycle.indexOf(t.lifecycle)<0&&e.lifecycle.push(t.lifecycle),e)),{kind:[],lifecycle:[]});return r.createElement(r.Fragment,null,r.createElement(l.Z,{container:!0},n&&r.createElement(l.Z,{item:!0,xs:3},r.createElement(U,{filters:a,filterOptions:h,resetFilters:()=>{o({selected:"",checked:[]})},updateSelected:e=>{o((t=>({...t,selected:e})))},updateChecked:e=>{a.checked.includes(e)?o((t=>({...t,checked:t.checked.filter((t=>t!==e))}))):o((t=>({...t,checked:[...t.checked,e]})))}})),r.createElement(l.Z,{item:!0,xs:n?9:12},r.createElement(D.Table,{options:{paging:!0,pageSize:20,search:!1},data:s,columns:j,title:r.createElement(W,{searchQuery:e,numberOfResults:s.length,numberOfSelectedFilters:(""!==a.selected?1:0)+a.checked.length,handleToggleFilters:()=>i(!n)})}))))},V=()=>{const[e,t]=(0,D.useQueryParamState)("query"),[n,i]=(0,r.useState)(e??"");return(0,r.useEffect)((()=>i(e??"")),[e]),(0,u.Z)((()=>{t(n)}),200,[n]),r.createElement(D.Page,{themeId:"home"},r.createElement(D.Header,{title:"Search"}),r.createElement(D.Content,null,r.createElement(l.Z,{container:!0,direction:"row"},r.createElement(l.Z,{item:!0,xs:12},r.createElement(A,{handleSearch:e=>{e.preventDefault(),i(e.target.value)},handleClearSearchBar:()=>{i("")},searchQuery:n})),r.createElement(l.Z,{item:!0,xs:12},r.createElement(H,{searchQuery:(e??"").toLocaleLowerCase("en-US")})))))},_=()=>{const e=(0,s.TH)(),{term:t,setTerm:n,types:a,setTypes:l,pageCursor:u,setPageCursor:d,filters:p,setFilters:h}=(0,c.Rx)(),f=(0,i.Z)(e.search);return(0,r.useEffect)((()=>{if(e.search===f)return;const t=o().parse(e.search.substring(1),{arrayLimit:0})||{};t.filters&&h(t.filters),t.query&&n(t.query),t.pageCursor&&d(t.pageCursor),t.types&&l(t.types)}),[f,e,n,l,d,h]),(0,r.useEffect)((()=>{const e=o().stringify({query:t,types:a,pageCursor:u,filters:p},{arrayFormat:"brackets"}),n=`${window.location.pathname}?${e}`;window.history.replaceState(null,document.title,n)}),[t,a,u,p]),null},G=()=>{const e=(0,s.pC)();return r.createElement(c.Nd,null,r.createElement(_,null),e||r.createElement(V,null))}},39332:function(e,t,n){"use strict";n.r(t),n.d(t,{SearchResult:function(){return o}});var r=n(41682),i=n(2784),a=n(22313);const o=({children:e})=>{const{result:{loading:t,error:n,value:o}}=(0,a.Rx)();return t?i.createElement(r.Progress,null):n?i.createElement(r.ResponseErrorPanel,{title:"Error encountered while fetching search results",error:n}):o?.results.length?i.createElement(i.Fragment,null,e({results:o.results})):i.createElement(r.EmptyState,{missing:"data",title:"Sorry, no results were found"})}},8542:function(e,t,n){"use strict";n.d(t,{G:function(){return u}});var r=n(79692),i=n(77277),a=n(35352),o=n(27742),s=n(2784),c=n(22313);const l=(0,r.Z)((e=>({root:{display:"flex",justifyContent:"space-between",gap:e.spacing(2),margin:e.spacing(2,0)}}))),u=()=>{const{fetchNextPage:e,fetchPreviousPage:t}=(0,c.Rx)(),n=l();return e||t?s.createElement("nav",{"arial-label":"pagination navigation",className:n.root},s.createElement(i.Z,{"aria-label":"previous page",disabled:!t,onClick:t,startIcon:s.createElement(a.Z,null)},"Previous"),s.createElement(i.Z,{"aria-label":"next page",disabled:!e,onClick:e,endIcon:s.createElement(o.Z,null)},"Next")):s.createElement(s.Fragment,null)}},43825:function(e,t,n){"use strict";n.r(t),n.d(t,{SidebarSearchModal:function(){return c}});var r=n(2784),i=n(21853),a=n(41682),o=n(65678),s=n(22313);const c=e=>{const{open:t,toggleModal:n}=(0,s.Rx)(),c=e.icon?e.icon:i.Z;return r.createElement(r.Fragment,null,r.createElement(a.SidebarItem,{className:"search-icon",icon:c,text:"Search",onClick:n}),r.createElement(o.s,{open:t,toggleModal:n}))}},20863:function(e,t,n){"use strict";n.d(t,{_Z:function(){return a}});var r=n(91512),i=n(36964);const a=(0,i.createRouteRef)({id:"search"}),o=(0,i.createRouteRef)({id:"search:next"}),s=(0,i.createPlugin)({id:"search",apis:[(0,i.createApiFactory)({api:r.g,deps:{discoveryApi:i.discoveryApiRef,identityApi:i.identityApiRef},factory:({discoveryApi:e,identityApi:t})=>new r.w({discoveryApi:e,identityApi:t})})],routes:{root:a,nextRoot:o}});s.provide((0,i.createRoutableExtension)({name:"SearchPage",component:()=>Promise.resolve().then(n.bind(n,3992)).then((e=>e.SearchPage)),mountPoint:a})),s.provide((0,i.createRoutableExtension)({name:"SearchPageNext",component:()=>Promise.resolve().then(n.bind(n,3992)).then((e=>e.SearchPage)),mountPoint:o})),s.provide((0,i.createComponentExtension)({name:"SearchBar",component:{lazy:()=>Promise.resolve().then(n.bind(n,23695)).then((e=>e.SearchBar))}})),s.provide((0,i.createComponentExtension)({name:"SearchBarNext",component:{lazy:()=>Promise.resolve().then(n.bind(n,23695)).then((e=>e.SearchBar))}})),s.provide((0,i.createComponentExtension)({name:"SearchResult",component:{lazy:()=>Promise.resolve().then(n.bind(n,39332)).then((e=>e.SearchResult))}})),s.provide((0,i.createComponentExtension)({name:"SearchResultNext",component:{lazy:()=>Promise.resolve().then(n.bind(n,39332)).then((e=>e.SearchResult))}})),s.provide((0,i.createComponentExtension)({name:"SidebarSearchModal",component:{lazy:()=>Promise.resolve().then(n.bind(n,43825)).then((e=>e.SidebarSearchModal))}})),s.provide((0,i.createComponentExtension)({name:"DefaultResultListItem",component:{lazy:()=>Promise.resolve().then(n.bind(n,19941)).then((e=>e.DefaultResultListItem))}})),s.provide((0,i.createComponentExtension)({name:"HomePageSearchBar",component:{lazy:()=>Promise.resolve().then(n.bind(n,46105)).then((e=>e.HomePageSearchBar))}}))},94067:function(e,t,n){"use strict";n.r(t),n.d(t,{EmbeddedDocsRouter:function(){return g},Router:function(){return m},isTechDocsAvailable:function(){return f}});var r=n(2784),i=n(85653),a=n(10289),o=n(41481),s=n(31752),c=n(73873),l=n(97589),u=n(36964);const d=({entity:e})=>{const t=(0,u.useApi)(u.configApiRef);return r.createElement(c.Ej,{withSearch:!1,entityRef:{namespace:(0,l.D)(e.metadata.namespace??"default",t),kind:(0,l.D)(e.kind,t),name:(0,l.D)(e.metadata.name,t)}})};var p=n(41682);const h="backstage.io/techdocs-ref",f=e=>Boolean(e?.metadata?.annotations?.[h]),m=()=>r.createElement(a.Z5,null,r.createElement(a.AW,{path:"/",element:r.createElement(o.TechDocsIndexPage,null)}),r.createElement(a.AW,{path:"/:namespace/:kind/:name/*",element:r.createElement(s.TechDocsPage,null)})),g=e=>{const{entity:t}=(0,i.useEntity)(),n=t.metadata.annotations?.[h];return n?r.createElement(a.Z5,null,r.createElement(a.AW,{path:"/*",element:r.createElement(d,{entity:t})})):r.createElement(p.MissingAnnotationEmptyState,{annotation:h})}},3337:function(e,t,n){"use strict";n.d(t,{D:function(){return i},g:function(){return a}});var r=n(36964);const i=(0,r.createApiRef)({id:"plugin.techdocs.storageservice"}),a=(0,r.createApiRef)({id:"plugin.techdocs.service"})},71226:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r=n(2784),i=n(79692),a=n(49378),o=n(38402),s=n(85256),c=n(41682),l=n(15277),u=n.n(l);const d=(0,i.Z)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),p=({result:e,lineClamp:t=5,asListItem:n=!0,asLink:i=!0,title:l})=>{const p=d();return r.createElement((({children:t})=>i?r.createElement(c.Link,{to:e.location},t):r.createElement(r.Fragment,null,t)),null,r.createElement((({children:e})=>n?r.createElement(r.Fragment,null,r.createElement(o.Z,{alignItems:"flex-start",className:p.flexContainer},e),r.createElement(s.Z,{component:"li"})):r.createElement(r.Fragment,null,e)),null,r.createElement((()=>r.createElement(a.Z,{className:p.itemText,primaryTypographyProps:{variant:"h6"},primary:l||`${e.title} | ${e.entityTitle??e.name} docs`,secondary:r.createElement(u(),{line:t,truncateText:"…",text:e.text,element:"span"})})),null)))}},97589:function(e,t,n){"use strict";function r(e,t){return t.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")?e:e.toLocaleLowerCase("en-US")}n.d(t,{D:function(){return r}})},10187:function(e,t,n){"use strict";n.r(t),n.d(t,{DocsCardGrid:function(){return p}});var r=n(2784),i=n(36964),a=n(94339),o=n(16111),s=n(24579),c=n(14503),l=n(68725),u=n(41682),d=n(97589);const p=({entities:e})=>{const t=(0,i.useRouteRef)(l.Fw),n=(0,i.useApi)(i.configApiRef);return e?r.createElement(u.ItemCardGrid,{"data-testid":"docs-explore"},e?.length?e.map(((e,i)=>r.createElement(a.Z,{key:i},r.createElement(o.Z,null,r.createElement(u.ItemCardHeader,{title:e.metadata.title??e.metadata.name})),r.createElement(s.Z,null,e.metadata.description),r.createElement(c.Z,null,r.createElement(u.Button,{to:t({namespace:(0,d.D)(e.metadata.namespace??"default",n),kind:(0,d.D)(e.kind,n),name:(0,d.D)(e.metadata.name,n)}),color:"primary","data-testid":"read_docs"},"Read Docs"))))):null):null}},83201:function(e,t,n){"use strict";n.r(t),n.d(t,{DocsTable:function(){return h}});var r=n(2784),i=n(99949),a=n(36964),o=n(52890),s=n(85653),c=n(68725),l=n(41682),u=n(50294),d=n(67430),p=n(97589);const h=({entities:e,title:t,loading:n,columns:h,actions:f})=>{const[,m]=(0,i.Z)(),g=(0,a.useRouteRef)(c.Fw),y=(0,a.useApi)(a.configApiRef);if(!e)return null;const A=e.map((e=>{const t=(0,s.getEntityRelations)(e,o.S4);return{entity:e,resolved:{docsUrl:g({namespace:(0,p.D)(e.metadata.namespace??"default",y),kind:(0,p.D)(e.kind,y),name:(0,p.D)(e.metadata.name,y)}),ownedByRelations:t,ownedByRelationsTitle:t.map((e=>(0,s.formatEntityRefTitle)(e,{defaultKind:"group"}))).join(", ")}}})),v=[d.createNameColumn(),d.createOwnerColumn(),d.createTypeColumn()],b=[u.createCopyDocsUrlAction(m)];return r.createElement(r.Fragment,null,n||A&&A.length>0?r.createElement(l.Table,{isLoading:n,options:{paging:!0,pageSize:20,search:!0,actionsColumnIndex:-1},data:A,columns:h||v,actions:f||b,title:t?`${t} (${A.length})`:`All (${A.length})`}):r.createElement(l.EmptyState,{missing:"data",title:"No documents to show",description:"Create your own document. Check out our Getting Started Information",action:r.createElement(l.Button,{color:"primary",to:"https://backstage.io/docs/features/techdocs/getting-started",variant:"contained"},"DOCS")}))}},57110:function(e,t,n){"use strict";n.r(t),n.d(t,{TechDocsCustomHome:function(){return f}});var r=n(2784),i=n(4812),a=n(79692),o=n(85653),s=n(83201),c=n(10187),l=n(1114),u=n(41682),d=n(36964);const p={DocsTable:s.DocsTable,DocsCardGrid:c.DocsCardGrid},h=({config:e,entities:t,index:n})=>{const i=(0,a.Z)({panelContainer:{marginBottom:"2rem",...e.panelCSS?e.panelCSS:{}}})(),{value:s}=(0,o.useOwnUser)(),c=p[e.panelType],l=t.filter((t=>"ownedByUser"===e.filterPredicate?!!s&&(0,o.isOwnerOf)(s,t):"function"==typeof e.filterPredicate&&e.filterPredicate(t)));return r.createElement(r.Fragment,null,r.createElement(u.ContentHeader,{title:e.title,description:e.description},0===n?r.createElement(u.SupportButton,null,"Discover documentation in your ecosystem."):null),r.createElement("div",{className:i.panelContainer},r.createElement(c,{"data-testid":"techdocs-custom-panel",entities:l})))},f=({tabsConfig:e})=>{const[t,n]=(0,r.useState)(0),a=(0,d.useApi)(o.Ah),{value:s,loading:c,error:p}=(0,i.Z)((async()=>(await a.getEntities({filter:{"metadata.annotations.backstage.io/techdocs-ref":o.n3},fields:["apiVersion","kind","metadata","relations","spec.owner","spec.type"]})).items.filter((e=>!!e.metadata.annotations?.["backstage.io/techdocs-ref"])))),f=e[t];return c?r.createElement(l.j,null,r.createElement(u.Content,null,r.createElement(u.Progress,null))):p?r.createElement(l.j,null,r.createElement(u.Content,null,r.createElement(u.WarningPanel,{severity:"error",title:"Could not load available documentation."},r.createElement(u.CodeSnippet,{language:"text",text:p.toString()})))):r.createElement(l.j,null,r.createElement(u.HeaderTabs,{selectedIndex:t,onChange:e=>n(e),tabs:e.map((({label:e},t)=>({id:t.toString(),label:e})))}),r.createElement(u.Content,{"data-testid":"techdocs-content"},f.panels.map(((e,t)=>r.createElement(h,{key:t,config:e,entities:s||[],index:t})))))}},41481:function(e,t,n){"use strict";n.r(t),n.d(t,{TechDocsIndexPage:function(){return s}});var r=n(2784),i=n(10289),a=n(57110);const o=()=>r.createElement(a.TechDocsCustomHome,{tabsConfig:[{label:"Overview",panels:[{title:"Overview",description:"Explore your internal technical ecosystem through documentation.",panelType:"DocsCardGrid",filterPredicate:()=>!0}]},{label:"Owned Documents",panels:[{title:"Owned documents",description:"Access your documentation.",panelType:"DocsTable",filterPredicate:"ownedByUser"}]}]}),s=()=>(0,i.pC)()||r.createElement(o,null)},1114:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(2784),i=n(41682),a=n(36964);const o=({children:e})=>{const t=`Documentation available in ${(0,a.useApi)(a.configApiRef).getOptionalString("organization.name")??"Backstage"}`;return r.createElement(i.PageWithHeader,{title:"Documentation",subtitle:t,themeId:"documentation"},e)}},50294:function(e,t,n){"use strict";n.r(t),n.d(t,{createCopyDocsUrlAction:function(){return o},createStarEntityAction:function(){return s}});var r=n(2784),i=n(39981),a=n(85653);function o(e){return t=>({icon:()=>r.createElement(i.Z,{fontSize:"small"}),tooltip:"Click to copy documentation link to clipboard",onClick:()=>e(`${window.location.origin}${t.resolved.docsUrl}`)})}function s(e,t){return({entity:n})=>{const r=e(n);return{cellStyle:{paddingLeft:"1em"},icon:()=>(0,a.favoriteEntityIcon)(r),tooltip:(0,a.favoriteEntityTooltip)(r),onClick:()=>t(n)}}}},67430:function(e,t,n){"use strict";n.r(t),n.d(t,{createNameColumn:function(){return o},createOwnerColumn:function(){return s},createTypeColumn:function(){return c}});var r=n(2784),i=n(41682),a=n(85653);function o(){return{title:"Document",field:"entity.metadata.name",highlight:!0,render:e=>{return r.createElement(i.SubvalueCell,{value:r.createElement(i.Link,{to:e.resolved.docsUrl},(t=e.entity,t.metadata.title||t.metadata.name)),subvalue:e.entity.metadata.description});var t}}}function s(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:e})=>r.createElement(a.EntityRefLinks,{entityRefs:e.ownedByRelations,defaultKind:"group"})}}function c(){return{title:"Type",field:"entity.spec.type"}}},75448:function(e,t,n){"use strict";n.d(t,{Ej:function(){return M},DK:function(){return N}});var r=n(2784),i=n(10289),a=n(79692),o=n(60364),s=n(60905),c=n(36964),l=n(36356),u=n(3337);const d=(e,t,n)=>{const r="src"===e&&t.endsWith(".svg"),i=!t.match(/^([a-z]*:)?\/\//i),a=t.startsWith(n);return r&&(i||a)},p=({techdocsStorageApi:e,entityId:t,path:n})=>async r=>{const i=await e.getApiOrigin(),a=async(r,a)=>{for(const o of r)if(o.hasAttribute(a)){const r=o.getAttribute(a);if(!r)return;const s=await e.getBaseUrl(r,t,n);if(d(a,r,i))try{const e=await fetch(s,{credentials:"include"}),t=await e.text();o.setAttribute(a,`data:image/svg+xml;base64,${btoa(t)}`)}catch(e){o.setAttribute("alt",`Error: ${r}`)}else o.setAttribute(a,s)}};return await Promise.all([a(r.querySelectorAll("img"),"src"),a(r.querySelectorAll("script"),"src"),a(r.querySelectorAll("link"),"href"),a(r.querySelectorAll("a[download]"),"href")]),r};var h=n(76996),f=n(67097),m=n(9832),g=n(82717),y=n.n(g);const A=e=>t=>{const n=t.querySelector('[title="Edit this page"]');if(!n||!n.href)return t;const i=new URL(n.href),a=e.byUrl(i);if("github"!==a?.type&&"gitlab"!==a?.type)return t;const o=t.querySelector("article>h1").childNodes[0].textContent,s=encodeURIComponent(`Documentation Feedback: ${o}`),c=encodeURIComponent(`Page source:\n${n.href}\n\nFeedback:`),l="github"===a?.type?(0,h.Pb)(i.href,"blob"):i.href,u=y()(l),d=`/${u.organization}/${u.name}`,p=n.cloneNode();switch(a?.type){case"gitlab":p.href=`${i.origin}${d}/issues/new?issue[title]=${s}&issue[description]=${c}`;break;case"github":p.href=`${i.origin}${d}/issues/new?title=${s}&body=${c}`;break;default:return t}return m.render(r.createElement(f.Z),p),p.style.paddingLeft="5px",p.title="Leave feedback for this page",p.id="git-feedback-link",n?.insertAdjacentElement("beforebegin",p),t},v=({baseUrl:e,onClick:t})=>n=>(Array.from(n.getElementsByTagName("a")).forEach((n=>{n.addEventListener("click",(r=>{const i=n.getAttribute("href");i&&i.startsWith(e)&&(r.preventDefault(),t(r,i))}))})),n),b=({docStorageUrl:e,onLoading:t,onLoaded:n})=>r=>{const i=Array.from(r.querySelectorAll('head > link[rel="stylesheet"]')).filter((t=>t.getAttribute("href")?.startsWith(e)));let a=i.length;return a>0&&t(r),i.forEach((e=>e.addEventListener("load",(()=>{a-=1,0===a&&n(r)})))),r};var E=n(35368),w=n.n(E);const R=/main\.[A-Fa-f0-9]{8}\.min\.css$/,S=/^https:\/\/fonts\.googleapis\.com/,k=/^https:\/\/fonts\.gstatic\.com/,x=e=>{if(e.nodeName&&"LINK"===e.nodeName){const t=e.getAttribute("href")||"";t.match(R)&&e.setAttribute("rel","stylesheet"),t.match(S)&&e.setAttribute("rel","stylesheet"),t.match(k)&&e.setAttribute("rel","preconnect")}return e},C=({css:e})=>t=>(t.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${e}</style>`),t),F=async(e,t)=>{let n;if("string"==typeof e)n=(new DOMParser).parseFromString(e,"text/html").documentElement;else{if(!(e instanceof Element))throw new Error("dom is not a recognized type");n=e}for(const e of t)n=await e(n);return n};var T=n(41049),Z=n(25921),L=n(84767),O=n(4812);function P(e,t){const n={...e};switch(t.type){case"sync":"CHECKING"===t.state&&(n.buildLog=[]),n.activeSyncState=t.state,n.syncError=t.syncError;break;case"contentLoading":n.contentLoading=!0,n.contentError=void 0;break;case"content":"string"==typeof t.path&&(n.path=t.path),n.contentLoading=!1,n.content=t.content,n.contentError=t.contentError;break;case"buildLog":n.buildLog=n.buildLog.concat(t.log);break;default:throw new Error}return["BUILD_READY","BUILD_READY_RELOAD"].includes(n.activeSyncState)&&["contentLoading","content"].includes(t.type)&&(n.activeSyncState="UP_TO_DATE",n.buildLog=[]),n}const I=(0,a.Z)((e=>({searchBar:{marginLeft:"20rem",maxWidth:"calc(100% - 20rem * 2 - 3rem)",marginTop:e.spacing(1),"@media screen and (max-width: 76.1875em)":{marginLeft:"10rem",maxWidth:"calc(100% - 10rem)"}}}))),$=(0,r.createContext)({}),B=({children:e,entityRef:t})=>{const{"*":n}=(0,i.UO)(),{kind:a,namespace:o,name:s}=t,l=function(e,t,n,i){const[a,o]=(0,r.useReducer)(P,{activeSyncState:"CHECKING",path:i,contentLoading:!0,buildLog:[]}),s=(0,c.useApi)(u.D),{retry:l}=(0,L.Z)((async()=>{o({type:"contentLoading"});try{const r=await s.getEntityDocs({kind:e,namespace:t,name:n},i);return o({type:"content",content:r,path:i}),r}catch(e){o({type:"content",contentError:e,path:i})}}),[s,e,t,n,i]),d=(0,r.useRef)({content:void 0,reload:()=>{}});return d.current={content:a.content,reload:l},(0,O.Z)((async()=>{o({type:"sync",state:"CHECKING"});const r=setTimeout((()=>{o({type:"sync",state:"BUILDING"})}),1e3);try{switch(await s.syncEntityDocs({kind:e,namespace:t,name:n},(e=>{o({type:"buildLog",log:e})}))){case"updated":d.current.content?o({type:"sync",state:"BUILD_READY"}):(d.current.reload(),o({type:"sync",state:"BUILD_READY_RELOAD"}));break;case"cached":o({type:"sync",state:"UP_TO_DATE"});break;default:o({type:"sync",state:"ERROR",syncError:new Error("Unexpected return state")})}}catch(e){o({type:"sync",state:"ERROR",syncError:e})}finally{clearTimeout(r)}}),[e,n,t,s,o,d]),{state:(0,r.useMemo)((()=>function({contentLoading:e,content:t,activeSyncState:n}){return e||"BUILD_READY_RELOAD"===n?"CHECKING":t||"CHECKING"!==n?t||"BUILDING"!==n?t?"BUILDING"===n?"CONTENT_STALE_REFRESHING":"BUILD_READY"===n?"CONTENT_STALE_READY":"ERROR"===n?"CONTENT_STALE_ERROR":"CONTENT_FRESH":"CONTENT_NOT_FOUND":"INITIAL_BUILD":"CHECKING"}({activeSyncState:a.activeSyncState,contentLoading:a.contentLoading,content:a.content})),[a.activeSyncState,a.content,a.contentLoading]),contentReload:l,path:a.path,content:a.content,contentErrorMessage:a.contentError?.toString(),syncErrorMessage:a.syncError?.toString(),buildLog:a.buildLog}}(a,o,s,n);return r.createElement($.Provider,{value:l},e)},N=()=>(0,r.useContext)($),U=({entityRef:e,onReady:t=(()=>{}),withSearch:n=!0})=>{const a=I(),d=(e=>{const t=(0,i.s0)(),n=(0,o.Z)(),a=(0,c.useApi)(u.D),s=(0,c.useApi)(l.q3),{namespace:d="",kind:h="",name:f=""}=e,{state:m,path:g,content:y}=N(),[E,R]=(0,r.useState)(),[S,k]=(0,r.useState)(null),T=(0,r.useCallback)((()=>{if(!S||!E)return;const e=S.querySelector(".md-container > .md-tabs");E.forEach((t=>{const n=Math.max(S.getBoundingClientRect().top,0);t.style.top=e?`${n+e.getBoundingClientRect().height}px`:`${n}px`}))}),[S,E]);(0,r.useEffect)((()=>(T(),window.addEventListener("scroll",T,!0),window.addEventListener("resize",T),()=>{window.removeEventListener("scroll",T,!0),window.removeEventListener("resize",T)})),[T,m]);const Z=(0,r.useCallback)(((e,t)=>F(e,[e=>(w().addHook("afterSanitizeAttributes",x),w().sanitize(e.innerHTML,{ADD_TAGS:["link"],FORBID_TAGS:["style"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0})),p({techdocsStorageApi:a,entityId:{kind:h,name:f,namespace:d},path:t}),e=>{var t,n;return t=Array.from(e.getElementsByTagName("a")),n="href",Array.from(t).filter((e=>e.hasAttribute(n))).forEach((e=>{const t=e.getAttribute(n);if(t){t.match(/^https?:\/\//i)&&e.setAttribute("target","_blank");try{const r=function(e){const t=new URL(e);return t.pathname.endsWith("/")||t.pathname.endsWith(".html")||(t.pathname+="/"),t.toString()}(window.location.href);e.setAttribute(n,new URL(t,r).toString())}catch(n){e.replaceWith(e.textContent||t)}}})),e},e=>(e.querySelector(".md-header")?.remove(),e),e=>(e.querySelector(".md-footer-copyright")?.remove(),e),A(s),C({css:`\n body {\n font-family: ${n.typography.fontFamily};\n --md-text-color: ${n.palette.text.primary};\n --md-text-link-color: ${n.palette.primary.main};\n\n --md-code-fg-color: ${n.palette.text.primary};\n --md-code-bg-color: ${n.palette.background.paper};\n }\n .md-main__inner { margin-top: 0; }\n .md-sidebar { position: fixed; bottom: 100px; width: 20rem; }\n .md-sidebar--secondary { right: 2rem; }\n .md-content { margin-bottom: 50px }\n .md-footer { position: fixed; bottom: 0px; width: 100vw; }\n .md-footer-nav__link { width: 20rem;}\n .md-content { margin-left: 20rem; max-width: calc(100% - 20rem * 2 - 3rem); }\n .md-typeset { font-size: 1rem; }\n .md-typeset h1, .md-typeset h2, .md-typeset h3 { font-weight: bold; }\n .md-nav { font-size: 1rem; }\n .md-grid { max-width: 90vw; margin: 0 }\n .md-typeset table:not([class]) {\n font-size: 1rem;\n border: 1px solid ${n.palette.text.primary};\n border-bottom: none;\n border-collapse: collapse;\n }\n .md-typeset table:not([class]) td, .md-typeset table:not([class]) th {\n border-bottom: 1px solid ${n.palette.text.primary};\n }\n .md-typeset table:not([class]) th { font-weight: bold; }\n .md-typeset .admonition, .md-typeset details {\n font-size: 1rem;\n }\n \n /* style the checkmarks of the task list */\n .md-typeset .task-list-control .task-list-indicator::before {\n background-color: ${n.palette.action.disabledBackground};\n }\n .md-typeset .task-list-control [type="checkbox"]:checked + .task-list-indicator:before {\n background-color: ${n.palette.success.main};\n }\n /**/\n\n @media screen and (max-width: 76.1875em) {\n .md-nav {\n background-color: ${n.palette.background.default};\n transition: none !important\n }\n .md-sidebar--secondary { display: none; }\n .md-sidebar--primary { left: 72px; width: 10rem }\n .md-content { margin-left: 10rem; max-width: calc(100% - 10rem); }\n .md-content__inner { font-size: 0.9rem }\n .md-footer {\n position: static;\n margin-left: 10rem;\n width: calc(100% - 10rem);\n }\n .md-nav--primary .md-nav__title {\n white-space: normal;\n height: auto;\n line-height: 1rem;\n cursor: auto;\n }\n .md-nav--primary > .md-nav__title [for="none"] {\n padding-top: 0;\n }\n }\n `}),C({css:"\n .md-nav__link, .md-typeset a, .md-typeset a::before, .md-typeset .headerlink {\n transition: none;\n }\n "}),C({css:"\n .md-typeset pre > code::-webkit-scrollbar-thumb {\n background-color: hsla(0, 0%, 0%, 0.32);\n }\n .md-typeset pre > code::-webkit-scrollbar-thumb:hover {\n background-color: hsla(0, 0%, 0%, 0.87);\n }\n "}),C({css:'\n :host {\n --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>\');\n --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>\');\n --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>\');\n --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>\');\n --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>\');\n --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>\');\n --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>\');\n --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>\');\n --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>\');\n --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>\');\n --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>\');\n --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>\');\n }\n :host {\n --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>\');\n }\n :host {\n --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.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>\');\n }\n :host {\n --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>\');\n --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>\');\n }\n '})])),[h,f,d,s,a,n.palette.action.disabledBackground,n.palette.background.default,n.palette.background.paper,n.palette.primary.main,n.palette.success.main,n.palette.text.primary,n.typography.fontFamily]),L=(0,r.useCallback)((async e=>F(e,[e=>(setTimeout((()=>{if(window.location.hash){const t=window.location.hash.slice(1);e?.querySelector(`#${t}`)?.scrollIntoView()}}),200),e),v({baseUrl:window.location.origin,onClick:(n,r)=>{const i=new URL(r);i.hash?(t(`${i.pathname}${i.hash}`),e?.querySelector(`#${i.hash.slice(1)}`)?.scrollIntoView()):(t(i.pathname),e?.querySelector(".md-content__inner")?.scrollIntoView())}}),b({docStorageUrl:await a.getApiOrigin(),onLoading:e=>{e.style.setProperty("opacity","0")},onLoaded:e=>{e.style.removeProperty("opacity"),e.querySelector(".md-nav__title")?.removeAttribute("for"),R(Array.from(e.querySelectorAll(".md-sidebar")))}})])),[t,a]);return(0,r.useEffect)((()=>{if(!y)return()=>{};let e=!0;return Z(y,g).then((async t=>{if(!t?.innerHTML)return;if(!e)return;window.scroll({top:0});const n=await L(t);k(n)})),()=>{e=!1}}),[y,g,Z,L]),S})(e),h=(0,r.useRef)(null),f=(0,r.useRef)(t);return(0,r.useEffect)((()=>{f.current=t}),[t]),(0,r.useEffect)((()=>{if(!d||!h.current)return;const e=h.current,t=e.shadowRoot||e.attachShadow({mode:"open"});Array.from(t.children).forEach((e=>t.removeChild(e))),t.appendChild(d),f.current()}),[d]),r.createElement(r.Fragment,null,r.createElement(Z.N,null),n&&h?.current?.shadowRoot?.innerHTML&&r.createElement(s.Z,{container:!0,className:a.searchBar},r.createElement(T.S,{entityId:e})),r.createElement("div",{"data-testid":"techdocs-content-shadowroot",ref:h}))},M=({entityRef:e,onReady:t=(()=>{}),withSearch:n=!0})=>r.createElement(B,{entityRef:e},r.createElement(U,{entityRef:e,onReady:t,withSearch:n}))},94252:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(2784),i=n(36964),a=n(41682);const o=({errorMessage:e})=>{let t="";return"local"!==(0,i.useApi)(i.configApiRef).getOptionalString("techdocs.builder")&&(t="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."),r.createElement(a.ErrorPage,{status:"404",statusMessage:e||"Documentation not found",additionalInfo:t})}},31752:function(e,t,n){"use strict";n.r(t),n.d(t,{TechDocsPage:function(){return h}});var r=n(2784),i=n(10289),a=n(4812),o=n(3337),s=n(94252),c=n(36964),l=n(41682),u=n(75448),d=n(46025);const p=()=>{const[e,t]=(0,r.useState)(!1),{namespace:n,kind:p,name:h}=(0,i.UO)(),f=(0,c.useApi)(o.g),{value:m}=(0,a.Z)((()=>e?f.getTechDocsMetadata({kind:p,namespace:n,name:h}):Promise.resolve(void 0)),[p,n,h,f,e]),{value:g,error:y}=(0,a.Z)((()=>f.getEntityMetadata({kind:p,namespace:n,name:h})),[p,n,h,f]),A=(0,r.useCallback)((()=>{t(!0)}),[t]);return y?r.createElement(s.T,{errorMessage:y.message}):r.createElement(l.Page,{themeId:"documentation"},r.createElement(d.n,{techDocsMetadata:m,entityMetadata:g,entityRef:{kind:p,namespace:n,name:h}}),r.createElement(l.Content,{"data-testid":"techdocs-content"},r.createElement(u.Ej,{onReady:A,entityRef:{kind:p,namespace:n,name:h}})))},h=({children:e})=>{const t=(0,i.pC)(),[n,u]=(0,r.useState)(!1),{namespace:d,kind:h,name:f}=(0,i.UO)(),m=(0,c.useApi)(o.g),{value:g}=(0,a.Z)((()=>n?m.getTechDocsMetadata({kind:h,namespace:d,name:f}):Promise.resolve(void 0)),[h,d,f,m,n]),{value:y,error:A}=(0,a.Z)((()=>m.getEntityMetadata({kind:h,namespace:d,name:f})),[h,d,f,m]),v=(0,r.useCallback)((()=>{u(!0)}),[u]);return A?r.createElement(s.T,{errorMessage:A.message}):e?r.createElement(l.Page,{themeId:"documentation"},e instanceof Function?e({techdocsMetadataValue:g,entityMetadataValue:y,entityRef:{kind:h,namespace:d,name:f},onReady:v}):e):t||r.createElement(p,null)}},46025:function(e,t,n){"use strict";n.d(t,{n:function(){return u}});var r=n(52890),i=n(41682),a=n(36964),o=n(85653),s=n(73250),c=n(2784),l=n(68725);const u=({entityRef:e,entityMetadata:t,techDocsMetadata:n})=>{const{name:u}=e,{site_name:d,site_description:p}=n||{},{locationMetadata:h,spec:f}=t||{},m=f?.lifecycle,g=t?(0,o.getEntityRelations)(t,r.S4):[],y=(0,a.useRouteRef)(l._Z)(),A=c.createElement(c.Fragment,null,c.createElement(i.HeaderLabel,{label:"Component",value:c.createElement(o.EntityRefLink,{color:"inherit",entityRef:e,defaultKind:"Component"})}),g.length>0&&c.createElement(i.HeaderLabel,{label:"Owner",value:c.createElement(o.EntityRefLinks,{color:"inherit",entityRefs:g,defaultKind:"group"})}),m?c.createElement(i.HeaderLabel,{label:"Lifecycle",value:m}):null,h&&"dir"!==h.type&&"file"!==h.type?c.createElement(i.HeaderLabel,{label:"",value:c.createElement("a",{href:h.target,target:"_blank",rel:"noopener noreferrer"},c.createElement(s.Z,{style:{marginTop:"-25px",fill:"#fff"}}))}):null);return c.createElement(i.Header,{title:d||".",pageTitleOverride:d||u,subtitle:p&&"None"!==p?p:"",type:"Docs",typeLink:y},A)}},41049:function(e,t,n){"use strict";n.d(t,{S:function(){return F}}),n(91512),n(19941);var r=n(2784),i=n(79692);(0,i.Z)((e=>({filters:{width:"250px",display:"flex"},icon:{margin:e.spacing(-1,0,0,0)}}))),(0,i.Z)((e=>({filters:{background:"transparent",boxShadow:"0px 0px 0px 0px"},checkbox:{padding:e.spacing(0,1,0,1)},dropdown:{width:"100%"}}))),n(23695);var a=n(22313),o=n(42494),s=n(84899),c=n(5806),l=n(21324),u=n(56939),d=n(73698),p=n(12231);const h=(0,i.Z)({label:{textTransform:"capitalize"}}),f=({className:e,name:t,defaultValue:n,values:i=[]})=>{const u=h(),{filters:d,setFilters:p}=(0,a.Rx)();(0,r.useEffect)((()=>{Array.isArray(n)&&p((e=>({...e,[t]:n})))}),[]);const f=e=>{const{target:{value:n,checked:r}}=e;p((e=>{const{[t]:i,...a}=e,o=(i||[]).filter((e=>e!==n)),s=r?[...o,n]:o;return s.length?{...a,[t]:s}:a}))};return r.createElement(o.Z,{className:e,fullWidth:!0,"data-testid":"search-checkboxfilter-next"},r.createElement(s.Z,{className:u.label},t),i.map((e=>r.createElement(c.Z,{key:e,control:r.createElement(l.Z,{color:"primary",tabIndex:-1,inputProps:{"aria-labelledby":e},value:e,name:e,onChange:f,checked:(d[t]??[]).includes(e)}),label:e}))))},m=({className:e,name:t,defaultValue:n,values:i=[]})=>{const s=h(),{filters:c,setFilters:l}=(0,a.Rx)();return(0,r.useEffect)((()=>{"string"==typeof n&&l((e=>({...e,[t]:n})))}),[]),r.createElement(o.Z,{className:e,variant:"filled",fullWidth:!0,"data-testid":"search-selectfilter-next"},r.createElement(u.Z,{className:s.label,margin:"dense"},t),r.createElement(d.Z,{variant:"outlined",value:c[t]||"",onChange:e=>{const{target:{value:n}}=e;l((e=>{const{[t]:r,...i}=e;return n?{...i,[t]:n}:i}))}},r.createElement(p.Z,{value:""},r.createElement("em",null,"All")),i.map((e=>r.createElement(p.Z,{key:e,value:e},e)))))},g=({component:e,...t})=>r.createElement(e,{...t});g.Checkbox=e=>r.createElement(g,{...e,component:f}),g.Select=e=>r.createElement(g,{...e,component:m}),n(65678),n(3992),n(39332),n(8542),(0,i.Z)((e=>({label:{textTransform:"capitalize"},chips:{display:"flex",flexWrap:"wrap",marginTop:e.spacing(1)},chip:{margin:2}}))),n(19126),n(20863),n(41682),n(36964),n(43825),n(46105);var y=n(60905),A=n(86619),v=n(50581),b=n(61837),E=n(4614),w=n(21853),R=n(88013),S=n(10289),k=n(98331),x=n(71226);const C=({entityId:e,debounceTime:t=150})=>{const[n,i]=(0,r.useState)(!1),o=(0,S.s0)(),{term:s,setTerm:c,result:{loading:l,value:u}}=(0,a.Rx)(),[d,p]=(0,r.useState)([]);(0,r.useEffect)((()=>{let e=!0;if(e&&u){const e=u.results.slice(0,10);p(e)}return()=>{e=!1}}),[l,u]);const[h,f]=(0,r.useState)(s);(0,k.Z)((()=>c(h)),t,[h]);const m=e=>{n||i(!0),f(e.target.value)};return r.createElement(y.Z,{item:!0,xs:12},r.createElement(R.ZP,{"data-testid":"techdocs-search-bar",size:"small",open:n,getOptionLabel:()=>"",filterOptions:e=>e,onClose:()=>{i(!1)},onFocus:()=>{i(!0)},onChange:(e,t)=>{if(t?.document){const{location:e}=t.document;o(e)}},blurOnSelect:!0,noOptionsText:"No results found",value:null,options:d,renderOption:({document:e})=>r.createElement(x.O,{result:e,lineClamp:3,asListItem:!1,asLink:!1,title:e.title}),loading:l,renderInput:t=>r.createElement(A.Z,{...t,"data-testid":"techdocs-search-bar-input",variant:"outlined",fullWidth:!0,placeholder:`Search ${e.name} docs`,value:h,onChange:m,InputProps:{...t.InputProps,startAdornment:r.createElement(v.Z,{position:"start"},r.createElement(b.Z,{"aria-label":"Query",disabled:!0},r.createElement(w.Z,null))),endAdornment:r.createElement(r.Fragment,null,l?r.createElement(E.Z,{color:"inherit",size:20}):null,t.InputProps.endAdornment)}})}))},F=e=>{const t={term:"",types:["techdocs"],pageCursor:"",filters:e.entityId};return r.createElement(a.Nd,{initialState:t},r.createElement(C,{...e}))}},25921:function(e,t,n){"use strict";n.d(t,{N:function(){return E}});var r=n(2784),i=n(41682),a=n(79692),o=n(4614),s=n(77277),c=n(99688),l=n(12420),u=n(60905),d=n(90436),p=n(61837),h=n(4190),f=n(87685);const m=(0,a.Z)((e=>(0,l.Z)({paper:{width:"100%",[e.breakpoints.up("sm")]:{width:"75%"},[e.breakpoints.up("md")]:{width:"50%"},padding:e.spacing(2.5)},root:{height:"100%",overflow:"hidden"},logs:{background:e.palette.background.default}}))),g=({buildLog:e,onClose:t})=>{const n=m(),a=0===e.length?"Waiting for logs...":e.join("\n");return r.createElement(u.Z,{container:!0,direction:"column",className:n.root,spacing:0,wrap:"nowrap"},r.createElement(u.Z,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",spacing:0,wrap:"nowrap"},r.createElement(d.Z,{variant:"h5"},"Build Details"),r.createElement(p.Z,{key:"dismiss",title:"Close the drawer",onClick:t,color:"inherit"},r.createElement(f.Z,null))),r.createElement(i.LogViewer,{text:a,classes:{root:n.logs}}))},y=({buildLog:e})=>{const t=m(),[n,i]=(0,r.useState)(!1);return r.createElement(r.Fragment,null,r.createElement(s.Z,{color:"inherit",onClick:()=>i(!0)},"Show Build Logs"),r.createElement(h.ZP,{classes:{paper:t.paper},anchor:"right",open:n,onClose:()=>i(!1)},r.createElement(g,{buildLog:e,onClose:()=>i(!1)})))};var A=n(94252),v=n(75448);const b=(0,a.Z)((()=>({message:{wordBreak:"break-word",overflowWrap:"anywhere"}}))),E=()=>{let e=null;const t=b(),{state:n,contentReload:a,contentErrorMessage:l,syncErrorMessage:u,buildLog:d}=(0,v.DK)(),p="CHECKING"===n?r.createElement(i.Progress,null):null;return"INITIAL_BUILD"===n&&(e=r.createElement(c.Z,{variant:"outlined",severity:"info",icon:r.createElement(o.Z,{size:"24px"}),action:r.createElement(y,{buildLog:d})},"Documentation is accessed for the first time and is being prepared. The subsequent loads are much faster.")),"CONTENT_STALE_REFRESHING"===n&&(e=r.createElement(c.Z,{variant:"outlined",severity:"info",icon:r.createElement(o.Z,{size:"24px"}),action:r.createElement(y,{buildLog:d})},"A newer version of this documentation is being prepared and will be available shortly.")),"CONTENT_STALE_READY"===n&&(e=r.createElement(c.Z,{variant:"outlined",severity:"success",action:r.createElement(s.Z,{color:"inherit",onClick:()=>a()},"Refresh")},"A newer version of this documentation is now available, please refresh to view.")),"CONTENT_STALE_ERROR"===n&&(e=r.createElement(c.Z,{variant:"outlined",severity:"error",action:r.createElement(y,{buildLog:d}),classes:{message:t.message}},"Building a newer version of this documentation failed."," ",u)),"CONTENT_NOT_FOUND"===n&&(e=r.createElement(r.Fragment,null,u&&r.createElement(c.Z,{variant:"outlined",severity:"error",action:r.createElement(y,{buildLog:d}),classes:{message:t.message}},"Building a newer version of this documentation failed."," ",u),r.createElement(A.T,{errorMessage:l}))),r.createElement(r.Fragment,null,p,e)}},73873:function(e,t,n){"use strict";n.d(t,{Ej:function(){return r.Ej},EV:function(){return i.TechDocsPage},nN:function(){return a.n}});var r=n(75448),i=n(31752),a=n(46025);n(25921),n(41049)},68725:function(e,t,n){"use strict";n.d(t,{_Z:function(){return i},Fw:function(){return a},pd:function(){return o}});var r=n(36964);const i=(0,r.createRouteRef)({id:"techdocs:index-page"}),a=(0,r.createRouteRef)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),o=(0,r.createRouteRef)({id:"techdocs:catalog-reader-view"})},19133:function(e,t,n){"use strict";e.exports=n.p+"static/createComponent.975d1e1e..svg"},86284:function(e,t,n){"use strict";e.exports=n.p+"static/missingAnnotation.67f79e98..svg"},3871:function(e,t,n){"use strict";e.exports=n.p+"static/noBuild.1715fa71..svg"},96465:function(e,t,n){"use strict";e.exports=n.p+"static/noInformation.4b426325..svg"},29788:function(e,t,n){"use strict";e.exports=n.p+"static/mic-drop.fe3ef4d0..svg"},219:function(e,t,n){"use strict";e.exports=n.p+"static/illo.7884c54f..svg"},53260:function(){}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[2370,6202,9284,2126,7012,5218,4983,4736],(function(){return t(88649),t(63865)})),e.O()}]);
|
|
2
|
+
//# sourceMappingURL=main.c65958ee.js.map
|