@techdocs/cli 0.8.10 → 0.8.12-next.1
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 +33 -0
- package/dist/index.cjs.js +1 -1
- package/dist/techdocs-preview-bundle/.config-schema.json +22 -21
- package/dist/techdocs-preview-bundle/index.html +1 -1
- package/dist/techdocs-preview-bundle/static/1110.b234ba69.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/1110.b234ba69.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/1553.0fa45296.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/1553.0fa45296.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/1959.b2315080.chunk.js +8 -0
- package/dist/techdocs-preview-bundle/static/1959.b2315080.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/2426.e436d3cc.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/2426.e436d3cc.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/3825.0c6049c9.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/3825.0c6049c9.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/390.477387a1.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/390.477387a1.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/4022.5ff535ec.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/4022.5ff535ec.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/4960.eeac5978.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/4960.eeac5978.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/6105.469318a2.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/6105.469318a2.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/6235.4e2fe119.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/6235.4e2fe119.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/6650.db09fdb2.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/6650.db09fdb2.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/8061.7ae8759a.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/8061.7ae8759a.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/8718.c2b73d89.chunk.js +4 -0
- package/dist/techdocs-preview-bundle/static/8718.c2b73d89.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/8792.e8f9d108.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/8792.e8f9d108.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/9028.f7aeead0.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/9028.f7aeead0.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/main.b4305a7b.js +152 -0
- package/dist/techdocs-preview-bundle/static/main.b4305a7b.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/module-ajv.b4b6f74e.js +10 -0
- package/dist/techdocs-preview-bundle/static/module-ajv.b4b6f74e.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/module-date-fns.5ead8da9.js +3 -0
- package/dist/techdocs-preview-bundle/static/module-date-fns.5ead8da9.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/module-lodash.a7aa0a73.js +29 -0
- package/dist/techdocs-preview-bundle/static/module-lodash.a7aa0a73.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/module-material-table.6251c462.js +3 -0
- package/dist/techdocs-preview-bundle/static/module-material-table.6251c462.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/module-material-ui.1332c429.js +51 -0
- package/dist/techdocs-preview-bundle/static/module-material-ui.1332c429.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/module-react-beautiful-dnd.c96d1412.js +67 -0
- package/dist/techdocs-preview-bundle/static/module-react-beautiful-dnd.c96d1412.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/module-react-dom.9dda0392.js +25 -0
- package/dist/techdocs-preview-bundle/static/module-react-dom.9dda0392.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter/lowlight-import.f36a62b1.chunk.js +6 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter/lowlight-import.f36a62b1.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_abnf.44180bf6.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_abnf.44180bf6.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_accesslog.16f76635.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_accesslog.16f76635.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_actionscript.d1324e25.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_actionscript.d1324e25.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ada.f3716916.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ada.f3716916.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_angelscript.dad71b89.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_angelscript.dad71b89.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_apache.f5ff04ee.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_apache.f5ff04ee.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_applescript.4e91aea1.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_applescript.4e91aea1.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_arcade.7895c4e9.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_arcade.7895c4e9.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_arduino.a19a43af.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_arduino.a19a43af.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_armasm.8c7ecdf5.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_armasm.8c7ecdf5.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_asciidoc.65fb9806.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_asciidoc.65fb9806.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_aspectj.904afe4e.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_aspectj.904afe4e.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_autohotkey.6c58b49d.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_autohotkey.6c58b49d.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_autoit.38d1e81b.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_autoit.38d1e81b.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_avrasm.c15fbc7f.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_avrasm.c15fbc7f.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_awk.f98852e2.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_awk.f98852e2.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_axapta.a87c16c7.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_axapta.a87c16c7.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_bash.97a6732d.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_bash.97a6732d.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_basic.5a8a2b0e.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_basic.5a8a2b0e.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_bnf.fd1cf84c.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_bnf.fd1cf84c.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_brainfuck.6a972fec.chunk.js +5 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_brainfuck.6a972fec.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_c.90e5b758.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_c.90e5b758.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cLike.e0b22dc1.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cLike.e0b22dc1.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cal.5371a489.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cal.5371a489.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_capnproto.22c82c14.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_capnproto.22c82c14.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ceylon.0e24759a.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ceylon.0e24759a.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clean.9d7c4d80.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clean.9d7c4d80.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clojure.7fe686e1.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clojure.7fe686e1.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clojureRepl.780991a1.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clojureRepl.780991a1.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cmake.47ab507c.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cmake.47ab507c.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_coffeescript.f5f72654.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_coffeescript.f5f72654.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_coq.13e3fdf1.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_coq.13e3fdf1.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cos.fde0a56d.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cos.fde0a56d.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cpp.c265ceb9.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cpp.c265ceb9.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_crmsh.6ea91d25.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_crmsh.6ea91d25.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_crystal.958e7cd8.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_crystal.958e7cd8.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_csharp.024a5882.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_csharp.024a5882.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_csp.a1f40901.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_csp.a1f40901.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_css.a6be3ec1.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_css.a6be3ec1.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_d.b5fbcc3b.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_d.b5fbcc3b.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dart.237b4a4d.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dart.237b4a4d.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_delphi.c6543d99.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_delphi.c6543d99.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_diff.b44d0d39.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_diff.b44d0d39.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_django.17fe3508.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_django.17fe3508.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dns.121f99a8.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dns.121f99a8.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dockerfile.4bc76caa.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dockerfile.4bc76caa.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dos.8fe7ec9c.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dos.8fe7ec9c.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dsconfig.2b3149cf.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dsconfig.2b3149cf.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dts.f7624110.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dts.f7624110.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dust.82c7c10a.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dust.82c7c10a.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ebnf.a17ea6c9.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ebnf.a17ea6c9.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_elixir.b80bc1a9.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_elixir.b80bc1a9.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_elm.72e1cc75.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_elm.72e1cc75.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erb.14a2c715.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erb.14a2c715.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erlang.c8065304.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erlang.c8065304.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erlangRepl.fe68db2d.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erlangRepl.fe68db2d.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_excel.958f6c8c.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_excel.958f6c8c.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fix.6dd35d09.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fix.6dd35d09.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_flix.36a9cb77.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_flix.36a9cb77.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fortran.8c0ab1fe.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fortran.8c0ab1fe.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fsharp.ed1f65da.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fsharp.ed1f65da.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gams.68b972c5.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gams.68b972c5.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gauss.ebf37b1b.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gauss.ebf37b1b.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gcode.2b01345a.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gcode.2b01345a.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gherkin.7bf1539a.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gherkin.7bf1539a.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_glsl.4799d894.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_glsl.4799d894.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gml.4e60f232.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gml.4e60f232.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_go.37fadd1d.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_go.37fadd1d.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_golo.7bb3cf46.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_golo.7bb3cf46.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gradle.3cbdd1bd.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gradle.3cbdd1bd.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_groovy.2e62c130.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_groovy.2e62c130.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haml.edb37c53.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haml.edb37c53.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_handlebars.b664c46b.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_handlebars.b664c46b.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haskell.1cef1b61.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haskell.1cef1b61.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haxe.26cdb0ea.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haxe.26cdb0ea.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_hsp.ba20053a.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_hsp.ba20053a.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_htmlbars.95d73e0d.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_htmlbars.95d73e0d.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_http.a0d144bd.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_http.a0d144bd.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_hy.3ac5599e.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_hy.3ac5599e.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_inform7.ead5c5d1.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_inform7.ead5c5d1.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ini.fdff89f2.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ini.fdff89f2.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_irpf90.c0eca5dd.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_irpf90.c0eca5dd.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_isbl.563560b4.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_isbl.563560b4.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_java.2d847185.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_java.2d847185.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_javascript.32f28256.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_javascript.32f28256.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_jbossCli.b5dee132.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_jbossCli.b5dee132.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_json.56f67ac3.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_json.56f67ac3.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_julia.8da0d423.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_julia.8da0d423.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_juliaRepl.a9e4de93.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_juliaRepl.a9e4de93.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_kotlin.73f7b652.chunk.js +4 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_kotlin.73f7b652.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lasso.a1ac2129.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lasso.a1ac2129.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_latex.c2641e0b.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_latex.c2641e0b.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ldif.64aa82a0.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ldif.64aa82a0.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_leaf.546938bd.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_leaf.546938bd.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_less.7e6677bd.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_less.7e6677bd.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lisp.9074eb13.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lisp.9074eb13.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_livecodeserver.7fdedcc3.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_livecodeserver.7fdedcc3.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_livescript.da3828b0.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_livescript.da3828b0.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_llvm.4c383ff9.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_llvm.4c383ff9.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lsl.b1aa17e6.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lsl.b1aa17e6.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lua.c4e557bf.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lua.c4e557bf.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_makefile.c494622b.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_makefile.c494622b.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_markdown.0a3d0f33.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_markdown.0a3d0f33.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mathematica.df8b4680.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mathematica.df8b4680.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_matlab.bd34736e.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_matlab.bd34736e.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_maxima.f315d0f9.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_maxima.f315d0f9.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mel.2bf58530.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mel.2bf58530.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mercury.737e7fad.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mercury.737e7fad.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mipsasm.aff7b417.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mipsasm.aff7b417.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mizar.55abb80f.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mizar.55abb80f.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mojolicious.2fef7889.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mojolicious.2fef7889.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_monkey.7cf01528.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_monkey.7cf01528.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_moonscript.fec6d855.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_moonscript.fec6d855.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_n1ql.ba9f23b6.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_n1ql.ba9f23b6.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nginx.f28e68e0.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nginx.f28e68e0.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nim.1da03ea0.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nim.1da03ea0.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nix.0e558e4f.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nix.0e558e4f.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nodeRepl.57d8e51c.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nodeRepl.57d8e51c.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nsis.9a904d67.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nsis.9a904d67.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_objectivec.db4c69d6.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_objectivec.db4c69d6.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ocaml.9c661b3f.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ocaml.9c661b3f.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_oneC.acdc66c6.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_oneC.acdc66c6.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_openscad.d20d1d04.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_openscad.d20d1d04.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_oxygene.e8434002.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_oxygene.e8434002.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_parser3.2c98c3aa.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_parser3.2c98c3aa.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_perl.10b0e035.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_perl.10b0e035.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pf.ac3abab7.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pf.ac3abab7.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pgsql.ceac2a60.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pgsql.ceac2a60.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_php.50b1ab1d.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_php.50b1ab1d.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_phpTemplate.9ec9887a.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_phpTemplate.9ec9887a.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_plaintext.77e11cdb.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_plaintext.77e11cdb.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pony.d0338388.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pony.d0338388.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_powershell.418902dc.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_powershell.418902dc.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_processing.6c2d3369.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_processing.6c2d3369.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_profile.69449bf7.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_profile.69449bf7.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_prolog.e34648ea.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_prolog.e34648ea.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_properties.47f3f865.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_properties.47f3f865.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_protobuf.763cdb4e.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_protobuf.763cdb4e.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_puppet.88196135.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_puppet.88196135.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_purebasic.419824e0.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_purebasic.419824e0.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_python.9744b6f8.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_python.9744b6f8.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pythonRepl.1b9472f3.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pythonRepl.1b9472f3.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_q.bfc365de.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_q.bfc365de.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_qml.c7e950a0.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_qml.c7e950a0.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_r.7651d544.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_r.7651d544.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_reasonml.3584fcd1.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_reasonml.3584fcd1.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rib.233d9368.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rib.233d9368.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_roboconf.438626a9.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_roboconf.438626a9.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_routeros.d3f48421.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_routeros.d3f48421.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rsl.f17424f7.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rsl.f17424f7.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ruby.27af1817.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ruby.27af1817.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ruleslanguage.bcf19c08.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ruleslanguage.bcf19c08.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rust.94f69df4.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rust.94f69df4.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sas.20007f93.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sas.20007f93.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scala.761ea769.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scala.761ea769.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scheme.ef3654e0.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scheme.ef3654e0.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scilab.0248cff3.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scilab.0248cff3.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scss.0c85d2e9.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scss.0c85d2e9.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_shell.4d8d4789.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_shell.4d8d4789.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_smali.87d2b24f.chunk.js +4 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_smali.87d2b24f.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_smalltalk.33a24317.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_smalltalk.33a24317.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sml.8c092018.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sml.8c092018.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sqf.9f31463b.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sqf.9f31463b.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sql.70ed7c81.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sql.70ed7c81.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stan.bfa01ef6.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stan.bfa01ef6.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stata.f4643ff4.chunk.js +5 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stata.f4643ff4.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_step21.645e7061.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_step21.645e7061.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stylus.9a7b42db.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stylus.9a7b42db.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_subunit.a0d8dd23.chunk.js +5 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_subunit.a0d8dd23.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_swift.48cf46ec.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_swift.48cf46ec.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_taggerscript.58eb604f.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_taggerscript.58eb604f.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tap.22b00786.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tap.22b00786.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tcl.7b87582b.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tcl.7b87582b.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_thrift.0e91a8da.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_thrift.0e91a8da.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tp.5209a7db.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tp.5209a7db.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_twig.3960e9fb.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_twig.3960e9fb.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_typescript.754aaa00.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_typescript.754aaa00.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vala.6810e476.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vala.6810e476.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbnet.f3f57718.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbnet.f3f57718.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbscript.6f5a7e18.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbscript.6f5a7e18.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbscriptHtml.ae890787.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbscriptHtml.ae890787.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_verilog.40403139.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_verilog.40403139.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vhdl.c856f6f8.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vhdl.c856f6f8.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vim.dea95e13.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vim.dea95e13.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_x86asm.6d17e6b7.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_x86asm.6d17e6b7.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xl.7e0544e6.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xl.7e0544e6.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xml.defcd651.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xml.defcd651.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xquery.40659368.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xquery.40659368.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_yaml.9a196f21.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_yaml.9a196f21.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_zephir.409e0095.chunk.js +3 -0
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_zephir.409e0095.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/runtime.b4305a7b.js +4 -0
- package/dist/techdocs-preview-bundle/static/runtime.b4305a7b.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/vendor.b4305a7b.js +142 -0
- package/dist/techdocs-preview-bundle/static/vendor.b4305a7b.js.map +1 -0
- package/package.json +9 -10
- package/dist/techdocs-preview-bundle/static/1553.ddfb7621.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/1553.ddfb7621.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/1959.da6d366a.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/1959.da6d366a.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/3825.93a6ad0c.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/3825.93a6ad0c.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/390.869680c7.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/390.869680c7.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/4022.28aef274.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/4022.28aef274.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/4960.25870a82.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/4960.25870a82.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/6105.b519076e.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/6105.b519076e.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/6235.ae19aeb4.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/6235.ae19aeb4.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/6650.cf219dec.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/6650.cf219dec.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/8015.07e09f1c.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/8015.07e09f1c.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/8061.0c10d2ee.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/8061.0c10d2ee.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/8718.87c92dac.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/8718.87c92dac.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/8792.46f21e7d.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/8792.46f21e7d.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/9028.fb060d2e.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/9028.fb060d2e.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/main.045916e2.js +0 -2
- package/dist/techdocs-preview-bundle/static/main.045916e2.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/module-ajv.1375df52.js +0 -8
- package/dist/techdocs-preview-bundle/static/module-ajv.1375df52.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/module-date-fns.c7ff5eb2.js +0 -2
- package/dist/techdocs-preview-bundle/static/module-date-fns.c7ff5eb2.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/module-hot-loader.ec8a2690.js +0 -3
- package/dist/techdocs-preview-bundle/static/module-hot-loader.ec8a2690.js.LICENSE.txt +0 -8
- package/dist/techdocs-preview-bundle/static/module-hot-loader.ec8a2690.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/module-lodash.5fc3fe8a.js +0 -3
- package/dist/techdocs-preview-bundle/static/module-lodash.5fc3fe8a.js.LICENSE.txt +0 -8
- package/dist/techdocs-preview-bundle/static/module-lodash.5fc3fe8a.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/module-material-table.ffd83fbb.js +0 -2
- package/dist/techdocs-preview-bundle/static/module-material-table.ffd83fbb.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/module-material-ui.ecd3d63b.js +0 -3
- package/dist/techdocs-preview-bundle/static/module-material-ui.ecd3d63b.js.LICENSE.txt +0 -8
- package/dist/techdocs-preview-bundle/static/module-material-ui.ecd3d63b.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/module-react-beautiful-dnd.da6c1d82.js +0 -2
- package/dist/techdocs-preview-bundle/static/module-react-beautiful-dnd.da6c1d82.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter/lowlight-import.c153f7b2.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter/lowlight-import.c153f7b2.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_abnf.3c863959.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_abnf.3c863959.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_accesslog.bcb4dd14.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_accesslog.bcb4dd14.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_actionscript.546f330d.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_actionscript.546f330d.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ada.2ea260bb.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ada.2ea260bb.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_angelscript.832cd7c0.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_angelscript.832cd7c0.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_apache.7ecbc80e.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_apache.7ecbc80e.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_applescript.7bd280ff.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_applescript.7bd280ff.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_arcade.bc574eb3.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_arcade.bc574eb3.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_arduino.ef919060.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_arduino.ef919060.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_armasm.cac5bc7a.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_armasm.cac5bc7a.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_asciidoc.30c7bf64.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_asciidoc.30c7bf64.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_aspectj.7eb7ad6a.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_aspectj.7eb7ad6a.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_autohotkey.60f64729.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_autohotkey.60f64729.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_autoit.0aa0b88a.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_autoit.0aa0b88a.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_avrasm.a8c8c76f.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_avrasm.a8c8c76f.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_awk.355eade4.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_awk.355eade4.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_axapta.09ffbce1.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_axapta.09ffbce1.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_bash.4e096af8.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_bash.4e096af8.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_basic.96913ebd.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_basic.96913ebd.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_bnf.3c484b56.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_bnf.3c484b56.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_brainfuck.2600896c.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_brainfuck.2600896c.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_c.b7f83581.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_c.b7f83581.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cLike.0613bb54.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cLike.0613bb54.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cal.eff1297f.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cal.eff1297f.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_capnproto.31069e34.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_capnproto.31069e34.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ceylon.1e053d59.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ceylon.1e053d59.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clean.aec8ac88.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clean.aec8ac88.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clojure.32952e2b.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clojure.32952e2b.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clojureRepl.9713fe99.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_clojureRepl.9713fe99.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cmake.6ef6acbe.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cmake.6ef6acbe.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_coffeescript.5108048a.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_coffeescript.5108048a.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_coq.9ae79979.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_coq.9ae79979.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cos.e0274111.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cos.e0274111.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cpp.9bbd380f.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_cpp.9bbd380f.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_crmsh.77d316ee.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_crmsh.77d316ee.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_crystal.445f29ca.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_crystal.445f29ca.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_csharp.05513175.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_csharp.05513175.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_csp.c7cdc118.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_csp.c7cdc118.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_css.3217847e.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_css.3217847e.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_d.0598d381.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_d.0598d381.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dart.31c09a0a.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dart.31c09a0a.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_delphi.a4486724.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_delphi.a4486724.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_diff.a5d13e10.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_diff.a5d13e10.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_django.5b5445ce.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_django.5b5445ce.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dns.e76865f2.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dns.e76865f2.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dockerfile.c233d069.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dockerfile.c233d069.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dos.413433af.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dos.413433af.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dsconfig.6ca786d6.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dsconfig.6ca786d6.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dts.0bf5baea.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dts.0bf5baea.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dust.30a34f73.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_dust.30a34f73.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ebnf.555bd2b2.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ebnf.555bd2b2.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_elixir.54c94a09.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_elixir.54c94a09.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_elm.b997ebf3.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_elm.b997ebf3.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erb.f9112afa.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erb.f9112afa.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erlang.832d3220.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erlang.832d3220.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erlangRepl.f2182c3a.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_erlangRepl.f2182c3a.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_excel.2a6a6093.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_excel.2a6a6093.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fix.bf03e804.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fix.bf03e804.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_flix.e0e53ac3.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_flix.e0e53ac3.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fortran.9291e1e7.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fortran.9291e1e7.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fsharp.15f80906.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_fsharp.15f80906.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gams.86a1c469.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gams.86a1c469.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gauss.fa6afc14.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gauss.fa6afc14.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gcode.f08b568e.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gcode.f08b568e.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gherkin.879d8bf3.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gherkin.879d8bf3.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_glsl.64f47980.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_glsl.64f47980.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gml.f4fdc6e6.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gml.f4fdc6e6.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_go.a2a5296b.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_go.a2a5296b.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_golo.a091574f.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_golo.a091574f.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gradle.0b7e64a5.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_gradle.0b7e64a5.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_groovy.f1cc7bb9.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_groovy.f1cc7bb9.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haml.ca36edd5.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haml.ca36edd5.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_handlebars.018282b6.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_handlebars.018282b6.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haskell.3b34b81e.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haskell.3b34b81e.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haxe.957f2237.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_haxe.957f2237.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_hsp.6cb82ddc.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_hsp.6cb82ddc.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_htmlbars.d96fb1a3.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_htmlbars.d96fb1a3.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_http.40939580.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_http.40939580.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_hy.7a142afd.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_hy.7a142afd.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_inform7.9f6e5953.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_inform7.9f6e5953.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ini.237d765b.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ini.237d765b.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_irpf90.3045cb6e.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_irpf90.3045cb6e.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_isbl.43778793.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_isbl.43778793.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_java.d50549f3.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_java.d50549f3.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_javascript.231600d1.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_javascript.231600d1.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_jbossCli.8059ddfd.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_jbossCli.8059ddfd.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_json.0c6d8661.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_json.0c6d8661.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_julia.f08b8fb2.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_julia.f08b8fb2.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_juliaRepl.86d35f50.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_juliaRepl.86d35f50.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_kotlin.ce0b9cab.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_kotlin.ce0b9cab.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lasso.cd8e995a.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lasso.cd8e995a.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_latex.fcae8799.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_latex.fcae8799.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ldif.dc640280.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ldif.dc640280.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_leaf.785c9642.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_leaf.785c9642.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_less.bf8a1ca4.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_less.bf8a1ca4.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lisp.cb63a53b.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lisp.cb63a53b.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_livecodeserver.68b98c60.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_livecodeserver.68b98c60.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_livescript.1c523e54.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_livescript.1c523e54.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_llvm.d857959c.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_llvm.d857959c.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lsl.b037ce4a.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lsl.b037ce4a.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lua.19e28054.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_lua.19e28054.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_makefile.468b2d77.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_makefile.468b2d77.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_markdown.576b5feb.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_markdown.576b5feb.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mathematica.3881d495.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mathematica.3881d495.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_matlab.8303567b.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_matlab.8303567b.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_maxima.c61b2bd1.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_maxima.c61b2bd1.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mel.f914d4a0.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mel.f914d4a0.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mercury.7b593d1e.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mercury.7b593d1e.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mipsasm.902c6a8d.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mipsasm.902c6a8d.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mizar.6245fd05.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mizar.6245fd05.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mojolicious.41bf50cf.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_mojolicious.41bf50cf.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_monkey.f539e9ee.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_monkey.f539e9ee.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_moonscript.c400e29b.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_moonscript.c400e29b.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_n1ql.c32bf5f0.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_n1ql.c32bf5f0.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nginx.002b01ed.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nginx.002b01ed.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nim.85088d70.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nim.85088d70.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nix.c396fd06.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nix.c396fd06.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nodeRepl.c0d0b6cb.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nodeRepl.c0d0b6cb.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nsis.cdab47a9.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_nsis.cdab47a9.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_objectivec.fdc20593.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_objectivec.fdc20593.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ocaml.5c674abc.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ocaml.5c674abc.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_oneC.99fa8ae3.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_oneC.99fa8ae3.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_openscad.3f108f71.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_openscad.3f108f71.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_oxygene.d2423b05.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_oxygene.d2423b05.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_parser3.dffda3fd.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_parser3.dffda3fd.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_perl.121d03e1.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_perl.121d03e1.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pf.24c2c4d7.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pf.24c2c4d7.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pgsql.dc2aefa3.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pgsql.dc2aefa3.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_php.ad4e465b.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_php.ad4e465b.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_phpTemplate.a1af7819.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_phpTemplate.a1af7819.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_plaintext.37016ae2.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_plaintext.37016ae2.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pony.15656e1c.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pony.15656e1c.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_powershell.06722daf.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_powershell.06722daf.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_processing.f0739aac.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_processing.f0739aac.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_profile.cea0ebae.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_profile.cea0ebae.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_prolog.52182a0d.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_prolog.52182a0d.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_properties.d9ba3998.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_properties.d9ba3998.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_protobuf.438d34a8.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_protobuf.438d34a8.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_puppet.0c4a16bc.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_puppet.0c4a16bc.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_purebasic.0452b782.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_purebasic.0452b782.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_python.5d1a12f4.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_python.5d1a12f4.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pythonRepl.d74384c9.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_pythonRepl.d74384c9.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_q.732bbc54.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_q.732bbc54.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_qml.389339c6.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_qml.389339c6.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_r.e462f415.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_r.e462f415.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_reasonml.04e0e1e3.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_reasonml.04e0e1e3.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rib.626c5f5d.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rib.626c5f5d.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_roboconf.04b09c52.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_roboconf.04b09c52.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_routeros.4980a0d9.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_routeros.4980a0d9.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rsl.0db0c257.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rsl.0db0c257.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ruby.d7c78236.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ruby.d7c78236.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ruleslanguage.4f161056.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_ruleslanguage.4f161056.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rust.bc5677c6.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_rust.bc5677c6.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sas.687f15a1.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sas.687f15a1.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scala.8f173d28.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scala.8f173d28.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scheme.6805068c.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scheme.6805068c.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scilab.b9da8ccf.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scilab.b9da8ccf.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scss.37adb5ae.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_scss.37adb5ae.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_shell.9db42b5c.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_shell.9db42b5c.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_smali.cbfa3793.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_smali.cbfa3793.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_smalltalk.0fe06044.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_smalltalk.0fe06044.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sml.ae6159aa.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sml.ae6159aa.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sqf.27552936.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sqf.27552936.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sql.fcc8ad20.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_sql.fcc8ad20.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stan.b894a3d7.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stan.b894a3d7.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stata.5e08ebd3.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stata.5e08ebd3.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_step21.fcba3764.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_step21.fcba3764.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stylus.6f7492fd.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_stylus.6f7492fd.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_subunit.6eca83c8.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_subunit.6eca83c8.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_swift.fd4e72c2.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_swift.fd4e72c2.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_taggerscript.78c4474c.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_taggerscript.78c4474c.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tap.f3712705.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tap.f3712705.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tcl.f0cc1751.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tcl.f0cc1751.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_thrift.5b16e18f.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_thrift.5b16e18f.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tp.fa2d3f79.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_tp.fa2d3f79.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_twig.d4c79b00.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_twig.d4c79b00.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_typescript.bd1220dd.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_typescript.bd1220dd.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vala.3ffd0e6c.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vala.3ffd0e6c.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbnet.57382f95.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbnet.57382f95.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbscript.7afc7c0b.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbscript.7afc7c0b.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbscriptHtml.4c9c1a62.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vbscriptHtml.4c9c1a62.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_verilog.eb18b638.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_verilog.eb18b638.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vhdl.768dfd00.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vhdl.768dfd00.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vim.511382e7.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_vim.511382e7.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_x86asm.dd0d279b.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_x86asm.dd0d279b.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xl.8cedb936.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xl.8cedb936.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xml.6f1b8d2e.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xml.6f1b8d2e.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xquery.41491171.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_xquery.41491171.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_yaml.17037b49.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_yaml.17037b49.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_zephir.713f9f0d.chunk.js +0 -2
- package/dist/techdocs-preview-bundle/static/react-syntax-highlighter_languages_highlight_zephir.713f9f0d.chunk.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/runtime.045916e2.js +0 -2
- package/dist/techdocs-preview-bundle/static/runtime.045916e2.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/vendor.045916e2.js +0 -3
- package/dist/techdocs-preview-bundle/static/vendor.045916e2.js.LICENSE.txt +0 -102
- package/dist/techdocs-preview-bundle/static/vendor.045916e2.js.map +0 -1
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
var ji=Object.defineProperty;var Gi=(J,o,e)=>o in J?ji(J,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):J[o]=e;var q=(J,o,e)=>(Gi(J,typeof o!="symbol"?o+"":o,e),e),ho=(J,o,e)=>{if(!o.has(J))throw TypeError("Cannot "+e)};var qe=(J,o,e)=>(ho(J,o,"read from private field"),e?e.call(J):o.get(J)),Rn=(J,o,e)=>{if(o.has(J))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(J):o.set(J,e)},Ln=(J,o,e,r)=>(ho(J,o,"write to private field"),r?r.call(J,e):o.set(J,e),e);(self.webpackChunkembedded_techdocs_app=self.webpackChunkembedded_techdocs_app||[]).push([[179],{30001:function(J,o,e){"use strict";e.d(o,{n3:function(){return E},MS:function(){return s}});var r=e(52890),t=e(10179),c=e(96279),f=e.n(c);const E=Symbol("CATALOG_FILTER_EXISTS");class s{constructor(h){q(this,"discoveryApi");q(this,"fetchApi");this.discoveryApi=h.discoveryApi,this.fetchApi=h.fetchApi||{fetch:f()}}async getEntityAncestors(h,m){const{kind:l,namespace:y,name:i}=(0,r.of)(h.entityRef);return await this.requestRequired("GET",`/entities/by-name/${encodeURIComponent(l)}/${encodeURIComponent(y)}/${encodeURIComponent(i)}/ancestry`,m)}async getLocationById(h,m){return await this.requestOptional("GET",`/locations/${encodeURIComponent(h)}`,m)}async getEntities(h,m){const{filter:l=[],fields:y=[],offset:i,limit:S,after:D}=h!=null?h:{},P=[l].flat(),G=[];for(const F of P){const K=[];for(const[ee,ie]of Object.entries(F))for(const pe of[ie].flat())pe===E?K.push(encodeURIComponent(ee)):typeof pe=="string"&&K.push(`${encodeURIComponent(ee)}=${encodeURIComponent(pe)}`);K.length&&G.push(`filter=${K.join(",")}`)}y.length&&G.push(`fields=${y.map(encodeURIComponent).join(",")}`),i!==void 0&&G.push(`offset=${i}`),S!==void 0&&G.push(`limit=${S}`),D!==void 0&&G.push(`after=${encodeURIComponent(D)}`);const L=G.length?`?${G.join("&")}`:"",I=await this.requestRequired("GET",`/entities${L}`,m),b=(F,K)=>{var pe,Le;if(((pe=F.metadata)==null?void 0:pe.name)===void 0||F.kind===void 0||((Le=K.metadata)==null?void 0:Le.name)===void 0||K.kind===void 0)return 0;const ee=(0,r.eE)(F),ie=(0,r.eE)(K);return ee<ie?-1:ee>ie?1:0};return{items:I.sort(b)}}async getEntityByName(h,m){const{kind:l,namespace:y="default",name:i}=h;return this.requestOptional("GET",`/entities/by-name/${encodeURIComponent(l)}/${encodeURIComponent(y)}/${encodeURIComponent(i)}`,m)}async refreshEntity(h,m){const l=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/refresh`,{headers:{"Content-Type":"application/json",...(m==null?void 0:m.token)&&{Authorization:`Bearer ${m==null?void 0:m.token}`}},method:"POST",body:JSON.stringify({entityRef:h})});if(l.status!==200)throw new Error(await l.text())}async addLocation({type:h="url",target:m,dryRun:l,presence:y},i){const S=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/locations${l?"?dryRun=true":""}`,{headers:{"Content-Type":"application/json",...(i==null?void 0:i.token)&&{Authorization:`Bearer ${i==null?void 0:i.token}`}},method:"POST",body:JSON.stringify({type:h,target:m,presence:y})});if(S.status!==201)throw new Error(await S.text());const{location:D,entities:P,exists:G}=await S.json();if(!D)throw new Error(`Location wasn't added: ${m}`);return{location:D,entities:P,exists:G}}async getOriginLocationByEntity(h,m){var i;const l=(i=h.metadata.annotations)==null?void 0:i[r.lb];return l?(await this.requestRequired("GET","/locations",m)).map(S=>S.data).find(S=>l===(0,r.Bt)(S)):void 0}async getLocationByEntity(h,m){var i;const l=(i=h.metadata.annotations)==null?void 0:i[r.Jl];return l?(await this.requestRequired("GET","/locations",m)).map(S=>S.data).find(S=>l===(0,r.Bt)(S)):void 0}async removeLocationById(h,m){await this.requestIgnored("DELETE",`/locations/${encodeURIComponent(h)}`,m)}async removeEntityByUid(h,m){await this.requestIgnored("DELETE",`/entities/by-uid/${encodeURIComponent(h)}`,m)}async requestIgnored(h,m,l){const y=`${await this.discoveryApi.getBaseUrl("catalog")}${m}`,i=(l==null?void 0:l.token)?{Authorization:`Bearer ${l.token}`}:{},S=await this.fetchApi.fetch(y,{method:h,headers:i});if(!S.ok)throw await t.VL.fromResponse(S)}async requestRequired(h,m,l){const y=`${await this.discoveryApi.getBaseUrl("catalog")}${m}`,i=(l==null?void 0:l.token)?{Authorization:`Bearer ${l.token}`}:{},S=await this.fetchApi.fetch(y,{method:h,headers:i});if(!S.ok)throw await t.VL.fromResponse(S);return await S.json()}async requestOptional(h,m,l){const y=`${await this.discoveryApi.getBaseUrl("catalog")}${m}`,i=(l==null?void 0:l.token)?{Authorization:`Bearer ${l.token}`}:{},S=await this.fetchApi.fetch(y,{method:h,headers:i});if(!S.ok){if(S.status===404)return;throw await t.VL.fromResponse(S)}return await S.json()}}},52890:function(J,o,e){"use strict";e.d(o,{J1:function(){return f},sk:function(){return r},Jl:function(){return A},lb:function(){return x},w$:function(){return Be},nP:function(){return ye},aS:function(){return ut},hr:function(){return Ee},S4:function(){return C},cz:function(){return St},M_:function(){return le},wX:function(){return z},wh:function(){return c},C_:function(){return Qe},of:function(){return et},Me:function(){return _},TH:function(){return gt},eE:function(){return rt},Bt:function(){return Oe}});const r="default",t=null,c="backstage.io/view-url",f="backstage.io/edit-url";var E=e(76635),s=e.n(E);class p{constructor(Z=ENTITY_DEFAULT_NAMESPACE){q(this,"namespace");this.namespace=Z}async enforce(Z){return Z.metadata.namespace?Z:lodash.merge({metadata:{namespace:this.namespace}},Z)}}class h{static isValidPrefixAndOrSuffix(Z,Q,he,we){if(typeof Z!="string")return!1;const je=Z.split(Q);return je.length===1?we(je[0]):je.length===2?he(je[0])&&we(je[1]):!1}static isJsonSafe(Z){try{return s().isEqual(Z,JSON.parse(JSON.stringify(Z)))}catch{return!1}}static isValidDnsSubdomain(Z){return typeof Z=="string"&&Z.length>=1&&Z.length<=253&&Z.split(".").every(h.isValidDnsLabel)}static isValidDnsLabel(Z){return typeof Z=="string"&&Z.length>=1&&Z.length<=63&&/^[a-z0-9]+(\-[a-z0-9]+)*$/.test(Z)}static isValidTag(Z){return typeof Z=="string"&&Z.length>=1&&Z.length<=63&&/^[a-z0-9+#]+(\-[a-z0-9+#]+)*$/.test(Z)}static isValidUrl(Z){if(typeof Z!="string")return!1;try{return new URL(Z),!0}catch{return!1}}static isValidString(Z){var Q;return typeof Z=="string"&&((Q=Z==null?void 0:Z.trim())==null?void 0:Q.length)>=1}}var m=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}}}}}'),l=e(48231),y=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"}}}`),i=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}}}}}}'),S=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 D=new Map,P=[m,y,i,S];function G(ne){if(!(ne==null?void 0:ne.length))throw new TypeError("Unknown error");const Z=ne[0];throw new TypeError(`${Z.dataPath||"<root>"} ${Z.message}${Z.params?` - ${Object.entries(Z.params).map(([Q,he])=>`${Q}: ${he}`).join(", ")}`:""}`)}function L(ne,Z={}){var xt;const Q=(xt=Z==null?void 0:Z.disableCache)!=null?xt:!1,he=Q?"":JSON.stringify(ne);if(!Q){const en=D.get(he);if(en)return en}const we=I(ne),je=new l.ZP({allowUnionTypes:!0,allErrors:!0,validateSchema:!0});we.length&&je.addSchema(we,void 0,void 0,!0);const nt=je.compile(ne);return Q||D.set(he,nt),nt}function I(ne){if(typeof ne!="object")return[];const Z=new Set;ne.$id&&Z.add(ne.$id);const Q=new Array,he=[ne];for(;he.length;){const we=he.pop();for(const je of b(we))if(!Z.has(je)){Z.add(je);const nt=P.find(xt=>xt.$id===je);nt&&(Q.push(nt),he.push(nt))}}return Q}function*b(ne){const Z=[ne];for(;Z.length;){const Q=Z.pop();if(typeof Q=="object"&&Q)for(const[he,we]of Object.entries(Q))he==="$ref"&&typeof we=="string"?yield we.split("#")[0]:Z.push(we)}}function F(ne){const Z=compileAjvSchema(ne||entityEnvelopeSchema);return Q=>{if(Z(Q)===!0)return Q;throw throwAjvError(Z.errors)}}function K(ne){const Z=L(ne);return Q=>{var je;if(Z(Q)===!0)return Q;const we=(je=Z.errors)==null?void 0:je.filter(nt=>["/kind","/apiVersion"].includes(nt.dataPath));if((we==null?void 0:we.length)&&we.every(nt=>nt.keyword==="enum"))return!1;throw G(Z.errors)}}function ee(ne){const Z=compileAjvSchema(ne||entitySchema);return Q=>{if(Z(Q)===!0)return Q;throw throwAjvError(Z.errors)}}class ie{static isValidApiVersion(Z){return h.isValidPrefixAndOrSuffix(Z,"/",h.isValidDnsSubdomain,Q=>Q.length>=1&&Q.length<=63&&/^[a-z0-9A-Z]+$/.test(Q))}static isValidKind(Z){return typeof Z=="string"&&Z.length>=1&&Z.length<=63&&/^[a-zA-Z][a-z0-9A-Z]*$/.test(Z)}static isValidObjectName(Z){return typeof Z=="string"&&Z.length>=1&&Z.length<=63&&/^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$/.test(Z)}static isValidNamespace(Z){return h.isValidDnsLabel(Z)}static isValidLabelKey(Z){return h.isValidPrefixAndOrSuffix(Z,"/",h.isValidDnsSubdomain,ie.isValidObjectName)}static isValidLabelValue(Z){return Z===""||ie.isValidObjectName(Z)}static isValidAnnotationKey(Z){return h.isValidPrefixAndOrSuffix(Z,"/",h.isValidDnsSubdomain,ie.isValidObjectName)}static isValidAnnotationValue(Z){return typeof Z=="string"}}const pe={isValidApiVersion:ie.isValidApiVersion,isValidKind:ie.isValidKind,isValidEntityName:ie.isValidObjectName,isValidNamespace:ie.isValidNamespace,isValidLabelKey:ie.isValidLabelKey,isValidLabelValue:ie.isValidLabelValue,isValidAnnotationKey:ie.isValidAnnotationKey,isValidAnnotationValue:ie.isValidAnnotationValue,isValidTag:h.isValidTag};function Le(ne={}){return{...pe,...ne}}class me{constructor(Z=makeValidator()){q(this,"validators");this.validators=Z}async enforce(Z){var nt,xt,en,ln,Zn,Sn,yn;function Q(yt,jt,fn){if(jt==null)throw new Error(`${yt} must have a value`);let On;try{On=fn(jt)}catch(Wt){throw new Error(`${yt} could not be validated, ${Wt}`)}if(!On){let Wt;switch(fn.name){case"isValidLabelValue":case"isValidObjectName":Wt="a string that is sequences of [a-zA-Z0-9] separated by any of [-_.], at most 63 characters in total";break;case"isValidLabelKey":case"isValidApiVersion":case"isValidAnnotationKey":Wt="a valid prefix and/or suffix";break;case"isValidNamespace":case"isValidDnsLabel":Wt="a string that is sequences of [a-z0-9] separated by [-], at most 63 characters in total";break;case"isValidTag":Wt="a string that is sequences of [a-z0-9+#] separated by [-], at most 63 characters in total";break;case"isValidAnnotationValue":Wt="a string";break;case"isValidKind":Wt="a string that is a sequence of [a-zA-Z][a-z0-9A-Z], at most 63 characters in total";break;case"isValidUrl":Wt="a string that is a valid url";break;case"isValidString":Wt="a non empty string";break;default:Wt=void 0;break}const $n=Wt?` expected ${Wt} but found "${jt}".`:"";throw new Error(`"${yt}" is not valid;${$n} To learn more about catalog file format, visit: https://github.com/backstage/backstage/blob/master/docs/architecture-decisions/adr002-default-catalog-file-format.md`)}}function he(yt,jt,fn){return jt===void 0||Q(yt,jt,fn)}Q("apiVersion",Z.apiVersion,this.validators.isValidApiVersion),Q("kind",Z.kind,this.validators.isValidKind),Q("metadata.name",Z.metadata.name,this.validators.isValidEntityName),he("metadata.namespace",Z.metadata.namespace,this.validators.isValidNamespace);for(const[yt,jt]of Object.entries((nt=Z.metadata.labels)!=null?nt:[]))Q(`labels.${yt}`,yt,this.validators.isValidLabelKey),Q(`labels.${yt}`,jt,this.validators.isValidLabelValue);for(const[yt,jt]of Object.entries((xt=Z.metadata.annotations)!=null?xt:[]))Q(`annotations.${yt}`,yt,this.validators.isValidAnnotationKey),Q(`annotations.${yt}`,jt,this.validators.isValidAnnotationValue);const we=(en=Z.metadata.tags)!=null?en:[];for(let yt=0;yt<we.length;++yt)Q(`tags.${yt}`,we[yt],this.validators.isValidTag);const je=(ln=Z.metadata.links)!=null?ln:[];for(let yt=0;yt<je.length;++yt)Q(`links.${yt}.url`,(Zn=je[yt])==null?void 0:Zn.url,CommonValidatorFunctions.isValidUrl),he(`links.${yt}.title`,(Sn=je[yt])==null?void 0:Sn.title,CommonValidatorFunctions.isValidString),he(`links.${yt}.icon`,(yn=je[yt])==null?void 0:yn.icon,KubernetesValidatorFunctions.isValidObjectName);return Z}}class ze{constructor(){q(this,"validate")}async enforce(Z){if(!this.validate){const we=new Ajv({allowUnionTypes:!0});this.validate=we.addSchema([commonSchema,entityMetaSchema],void 0,void 0,!0).compile(entitySchema)}if(this.validate(Z)===!0)return Z;const[he]=this.validate.errors||[];throw he?new Error(`Malformed envelope, ${he.dataPath||"<root>"} ${he.message}`):new Error("Malformed envelope, Unknown error")}}function Te(ne){var Q,he;const Z=/^([^:/]+:)?([^:/]+\/)?([^:/]+)$/.exec(ne.trim());if(!Z)throw new TypeError(`Entity reference "${ne}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:(Q=Z[1])==null?void 0:Q.slice(0,-1),namespace:(he=Z[2])==null?void 0:he.slice(0,-1),name:Z[3]}}function Qe(ne){return{kind:ne.kind,namespace:ne.metadata.namespace||r,name:ne.metadata.name}}function it(ne,Z={}){const{kind:Q,namespace:he,name:we}=et(ne,{defaultNamespace:ENTITY_DEFAULT_NAMESPACE,...Z});if(!Q)throw new Error(`Entity reference ${he}/${we} did not contain a kind`);return{kind:Q,namespace:he,name:we}}function et(ne,Z={}){var je,nt;if(!ne)throw new Error("Entity reference must not be empty");if(typeof ne=="string"){const xt=Te(ne);return{kind:(je=xt.kind)!=null?je:Z.defaultKind,namespace:(nt=xt.namespace)!=null?nt:Z.defaultNamespace,name:xt.name}}const{kind:Q,namespace:he,name:we}=ne;if(Q==="")throw new Error("Entity reference kinds must not be empty");if(he==="")throw new Error("Entity reference namespaces must not be empty");if(!we)throw new Error("Entity references must contain a name");return{kind:Q!=null?Q:Z.defaultKind,namespace:he!=null?he:Z.defaultNamespace,name:we}}function gt(ne){let Z,Q,he;return"metadata"in ne?(Z=ne.kind,Q=ne.metadata.namespace,he=ne.metadata.name):(Z=ne.kind,Q=ne.namespace,he=ne.name),(Z==null?void 0:Z.includes(":"))||(Z==null?void 0:Z.includes("/"))||(Q==null?void 0:Q.includes(":"))||(Q==null?void 0:Q.includes("/"))||he.includes(":")||he.includes("/")?{kind:Z,namespace:Q,name:he}:`${Z?`${Z}:`:""}${Q?`${Q}/`:""}${he}`}function rt(ne){var we,je;let Z,Q,he;return"metadata"in ne?(Z=ne.kind,Q=(we=ne.metadata.namespace)!=null?we:r,he=ne.metadata.name):(Z=ne.kind,Q=(je=ne.namespace)!=null?je:r,he=ne.name),`${Z.toLocaleLowerCase("en-US")}:${Q.toLocaleLowerCase("en-US")}/${he.toLocaleLowerCase("en-US")}`}function ot(ne,Z,Q){const he=ne.kind,we=ne.metadata.namespace||ENTITY_DEFAULT_NAMESPACE,je=ne.metadata.name;let nt,xt,en;if(typeof Z=="string"){const ln=Te(Z);nt=ln.kind||(Q==null?void 0:Q.defaultKind),xt=ln.namespace||(Q==null?void 0:Q.defaultNamespace)||ENTITY_DEFAULT_NAMESPACE,en=ln.name}else nt=Z.kind||(Q==null?void 0:Q.defaultKind),xt=Z.namespace||(Q==null?void 0:Q.defaultNamespace)||ENTITY_DEFAULT_NAMESPACE,en=Z.name;if(!nt||!xt)throw new Error("Entity reference or context did not contain kind and namespace");return he.toLocaleLowerCase("en-US")===nt.toLocaleLowerCase("en-US")&&we.toLocaleLowerCase("en-US")===xt.toLocaleLowerCase("en-US")&&je.toLocaleLowerCase("en-US")===en.toLocaleLowerCase("en-US")}var Rt=e(48834).Buffer;function wt(){return uuidv4()}function Lt(){return Rt.from(uuidv4(),"utf8").toString("base64").replace(/[^\w]/g,"")}function pt(ne,Z){const Q=lodash.cloneDeep(ne),he=lodash.cloneDeep(Z);return Q.metadata.labels||(Q.metadata.labels={}),he.metadata.labels||(he.metadata.labels={}),Q.metadata.annotations||(Q.metadata.annotations={}),he.metadata.annotations||(he.metadata.annotations={}),Q.metadata.tags||(Q.metadata.tags=[]),he.metadata.tags||(he.metadata.tags=[]),delete Q.metadata.uid,delete Q.metadata.etag,delete Q.metadata.generation,delete he.metadata.uid,delete he.metadata.etag,delete he.metadata.generation,delete Q.relations,delete Q.status,delete he.relations,delete he.status,!lodash.isEqual(Q,he)}function at(ne,Z){const{uid:Q,etag:he,generation:we}=ne.metadata;if(!Q||!he||!we)throw new Error("Previous entity must have uid, etag and generation");const je=lodash.cloneDeep(Z),nt=pt(ne,je),xt=!lodash.isEqual(ne.spec,je.spec);return je.metadata.uid=Q,je.metadata.etag=nt?Lt():he,je.metadata.generation=xt?we+1:we,je}class Tt{constructor(Z){this.policies=Z}async enforce(Z){let Q=Z;for(const he of this.policies){const we=await he.enforce(Q);if(!we)throw new Error(`Policy ${he.constructor.name} did not return a result`);Q=we}return Q}}class Pt{constructor(Z){this.policies=Z}async enforce(Z){for(const Q of this.policies){const he=await Q.enforce(Z);if(he)return he}throw new Error("The entity did not match any known policy")}}const Ot={allOf(ne){return new Tt(ne)},oneOf(ne){return new Pt(ne)}};var Ft=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}}}}}]}');function mt(ne){const Z=K(ne);return{async check(Q){return Z(Q)===Q}}}const It=mt(Ft);var Bt=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}}}}}}]}');const be=mt(Bt);var st=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}}}}}]}');const lt=mt(st);var Ct=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}}}}}}]}`);const ae=mt(Ct);var te=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 T=mt(te),C="ownedBy",B="ownerOf",H="consumesApi",Y="apiConsumedBy",le="providesApi",Ae="apiProvidedBy",ye="dependsOn",Be="dependencyOf",Ie="parentOf",ve="childOf",Ee="memberOf",Fe="hasMember",St="partOf",ut="hasPart";var Ve=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}}}}}]}');const oe=mt(Ve);var Ne=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}}}}}]}');const tt=mt(Ne);var Ue=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}}}}}]}');const Ze=mt(Ue);var Je=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 V=mt(Je),A="backstage.io/managed-by-location",x="backstage.io/managed-by-origin-location",z="backstage.io/source-location";function _(ne){if(typeof ne!="string")throw new TypeError(`Unable to parse location reference '${ne}', unexpected argument ${typeof ne}`);const Z=ne.indexOf(":");if(Z<0)throw new TypeError(`Unable to parse location reference '${ne}', expected '<type>:<target>', e.g. 'url:https://host/path'`);const Q=ne.substr(0,Z).trim(),he=ne.substr(Z+1).trim();if(!Q||!he)throw new TypeError(`Unable to parse location reference '${ne}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if(Q==="http"||Q==="https")throw new TypeError(`Invalid location reference '${ne}', please prefix it with 'url:', e.g. 'url:${ne}'`);return{type:Q,target:he}}function Oe(ne){const{type:Z,target:Q}=ne;if(Z){if(!Q)throw new TypeError("Unable to stringify location reference, empty target")}else throw new TypeError("Unable to stringify location reference, empty type");return`${Z}:${Q}`}function ge(ne){var Q,he,we,je,nt;const Z=(nt=(he=(Q=ne.metadata)==null?void 0:Q.annotations)==null?void 0:he[SOURCE_LOCATION_ANNOTATION])!=null?nt:(je=(we=ne.metadata)==null?void 0:we.annotations)==null?void 0:je[LOCATION_ANNOTATION];if(!Z)throw new Error(`Entity '${stringifyEntityRef(ne)}' is missing location`);return _(Z)}var Re=e(9699);const De=Re.Ry({type:Re.Z_().required(),target:Re.Z_().required(),presence:Re.nK().oneOf(["required","optional"])}).noUnknown().required(),$e=Re.Ry({id:Re.Z_().required(),type:Re.Z_().required(),target:Re.Z_().required(),presence:Re.nK().oneOf(["required","optional"])}).noUnknown().required(),Et=Re.Ry({location:De}).noUnknown().required()},23235:function(J,o,e){"use strict";e.d(o,{C:function(){return t}});var r=e(98005);class t{constructor(){q(this,"subject",new r.J)}post(f){this.subject.next(f)}alert$(){return this.subject}}},47150:function(J,o,e){"use strict";e.d(o,{g:function(){return r}});class r{captureEvent(c){}}},58652:function(J,o,e){"use strict";e.d(o,{C:function(){return c}});var r=e(98005);const t="theme";class c{constructor(E){q(this,"activeThemeId");q(this,"subject",new r.X(void 0));this.themes=E}static createWithStorage(E){var h;const s=new c(E);if(!window.localStorage)return s;const p=(h=window.localStorage.getItem(t))!=null?h:void 0;return s.setActiveThemeId(p),s.activeThemeId$().subscribe(m=>{m?window.localStorage.setItem(t,m):window.localStorage.removeItem(t)}),window.addEventListener("storage",m=>{var l;if(m.key===t){const y=(l=localStorage.getItem(t))!=null?l:void 0;s.setActiveThemeId(y)}}),s}getInstalledThemes(){return this.themes.slice()}activeThemeId$(){return this.subject}getActiveThemeId(){return this.activeThemeId}setActiveThemeId(E){this.activeThemeId=E,this.subject.next(E)}}},14721:function(J,o,e){"use strict";e.d(o,{m:function(){return m}});var r=e(9850),t=e.n(r),c=e(12782),f=e.n(c);const E=/^[a-z][a-z0-9]*(?:[-_][a-z][a-z0-9]*)*$/i;function s(l){return typeof l=="object"&&l!==null&&!Array.isArray(l)}function p(l){if(l===null)return"null";if(Array.isArray(l))return"array";const y=typeof l;return y==="number"&&isNaN(l)?"nan":y==="string"&&l===""?"empty-string":y}const h={type(l,y,i,S){return`Invalid type in config for key '${l}' in '${y}', got ${i}, wanted ${S}`},missing(l){return`Missing required config value at '${l}'`},convert(l,y,i){return`Unable to convert config value for key '${l}' in '${y}' to a ${i}`}};class m{constructor(y,i="mock-config",S,D=""){q(this,"filteredKeys");q(this,"notifiedFilteredKeys",new Set);this.data=y,this.context=i,this.fallback=S,this.prefix=D}static fromConfigs(y){return y.length===0?new m(void 0):y.reduce((i,{data:S,context:D,filteredKeys:P,deprecatedKeys:G})=>{const L=new m(S,D,i);if(L.filteredKeys=P,G)for(const{key:I,description:b}of G)console.warn(`The configuration key '${I}' of ${D} is deprecated and may be removed soon. ${b||""}`);return L},void 0)}has(y){var S,D;return this.readValue(y)!==void 0?!0:(D=(S=this.fallback)==null?void 0:S.has(y))!=null?D:!1}keys(){var S,D;const y=this.data?Object.keys(this.data):[],i=(D=(S=this.fallback)==null?void 0:S.keys())!=null?D:[];return[...new Set([...y,...i])]}get(y){const i=this.getOptional(y);if(i===void 0)throw new Error(h.missing(this.fullKey(y!=null?y:"")));return i}getOptional(y){var D;const i=t()(this.readValue(y)),S=(D=this.fallback)==null?void 0:D.getOptional(y);return i===void 0?S:S===void 0?i:f()({},{value:S},{value:i},(P,G)=>!s(G)||!s(P)?G:void 0).value}getConfig(y){const i=this.getOptionalConfig(y);if(i===void 0)throw new Error(h.missing(this.fullKey(y)));return i}getOptionalConfig(y){var D;const i=this.readValue(y),S=(D=this.fallback)==null?void 0:D.getOptionalConfig(y);if(s(i))return this.copy(i,y,S);if(i!==void 0)throw new TypeError(h.type(this.fullKey(y),this.context,p(i),"object"));return S}getConfigArray(y){const i=this.getOptionalConfigArray(y);if(i===void 0)throw new Error(h.missing(this.fullKey(y)));return i}getOptionalConfigArray(y){const i=this.readConfigValue(y,S=>{if(!Array.isArray(S))return{expected:"object-array"};for(const[D,P]of S.entries())if(!s(P))return{expected:"object-array",value:P,key:`${y}[${D}]`};return!0});if(!!i)return i.map((S,D)=>this.copy(S,`${y}[${D}]`))}getNumber(y){const i=this.getOptionalNumber(y);if(i===void 0)throw new Error(h.missing(this.fullKey(y)));return i}getOptionalNumber(y){const i=this.readConfigValue(y,D=>typeof D=="number"||typeof D=="string"||{expected:"number"});if(typeof i=="number"||i===void 0)return i;const S=Number(i);if(!Number.isFinite(S))throw new Error(h.convert(this.fullKey(y),this.context,"number"));return S}getBoolean(y){const i=this.getOptionalBoolean(y);if(i===void 0)throw new Error(h.missing(this.fullKey(y)));return i}getOptionalBoolean(y){return this.readConfigValue(y,i=>typeof i=="boolean"||{expected:"boolean"})}getString(y){const i=this.getOptionalString(y);if(i===void 0)throw new Error(h.missing(this.fullKey(y)));return i}getOptionalString(y){return this.readConfigValue(y,i=>typeof i=="string"&&i!==""||{expected:"string"})}getStringArray(y){const i=this.getOptionalStringArray(y);if(i===void 0)throw new Error(h.missing(this.fullKey(y)));return i}getOptionalStringArray(y){return this.readConfigValue(y,i=>{if(!Array.isArray(i))return{expected:"string-array"};for(const[S,D]of i.entries())if(typeof D!="string"||D==="")return{expected:"string-array",value:D,key:`${y}[${S}]`};return!0})}fullKey(y){return`${this.prefix}${this.prefix?".":""}${y}`}copy(y,i,S){const D=new m(y,this.context,S,this.fullKey(i));return D.filteredKeys=this.filteredKeys,D}readConfigValue(y,i){var P;const S=this.readValue(y);if(S===void 0)return(P=this.fallback)==null?void 0:P.readConfigValue(y,i);const D=i(S);if(D!==!0){const{key:G=y,value:L=S,expected:I}=D;throw new TypeError(h.type(this.fullKey(G),this.context,p(L),I))}return S}readValue(y){const i=y?y.split("."):[];for(const D of i)if(!E.test(D))throw new TypeError(`Invalid config key '${y}'`);if(this.data===void 0)return;let S=this.data;for(const[D,P]of i.entries())if(s(S))S=S[P];else if(S!==void 0){const G=this.fullKey(i.slice(0,D).join("."));throw new TypeError(h.type(G,this.context,p(S),"object"))}return S}}},4333:function(J,o,e){"use strict";e.d(o,{p:function(){return t}});const r="Invalid discovery URL pattern,";class t{static compile(f){const E=f.split(/\{\{\s*pluginId\s*\}\}/),s=E.join("pluginId");let p;try{p=new URL(s)}catch{throw new Error(`${r} URL '${s}' is invalid`)}if(p.hash)throw new Error(`${r} URL must not have a hash`);if(p.search)throw new Error(`${r} URL must not have a query`);if(s.endsWith("/"))throw new Error(`${r} URL must not end with a slash`);return new t(E)}constructor(f){this.parts=f}async getBaseUrl(f){return this.parts.join(f)}}},89536:function(J,o,e){"use strict";e.d(o,{KN:function(){return r},gr:function(){return c},Jv:function(){return f}});class r{constructor(s,p){this.alertApi=s,this.errorApi=p}post(s,p){return(p==null?void 0:p.hidden)||this.alertApi.post({message:s.message,severity:"error"}),this.errorApi.post(s,p)}error$(){return this.errorApi.error$()}}var t=e(98005);class c{constructor(){q(this,"subject",new t.J)}post(s,p){this.subject.next({error:s,context:p})}error$(){return this.subject}}class f{static forward(s,p){window.addEventListener("unhandledrejection",h=>{s.post(h.reason,p)})}}},14884:function(J,o,e){"use strict";e.d(o,{b:function(){return c}});var r=e(36964);function t(f){if(f.length<3)throw new Error(`The '${f}' feature flag must have a minimum length of three characters.`);if(f.length>150)throw new Error(`The '${f}' feature flag must not exceed 150 characters.`);if(!f.match(/^[a-z]+[a-z0-9-]+$/))throw new Error(`The '${f}' feature flag must start with a lowercase letter and only contain lowercase letters, numbers and hyphens. Examples: feature-flag-one, alpha, release-2020`)}class c{constructor(){q(this,"registeredFeatureFlags",[]);q(this,"flags")}registerFlag(E){t(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[p,h]of Object.entries(E.states))this.flags.set(p,h);const s=Array.from(this.flags.entries()).filter(([,p])=>p===r.FeatureFlagState.Active);window.localStorage.setItem("featureFlags",JSON.stringify(Object.fromEntries(s)))}load(){try{const E=window.localStorage.getItem("featureFlags");if(!E)return new Map;const s=JSON.parse(E);if(typeof s!="object"||s===null||Array.isArray(s))return new Map;const p=Object.entries(s).filter(([h,m])=>(t(h),m===r.FeatureFlagState.Active));return new Map(p)}catch{return new Map}}}},50160:function(J,o,e){"use strict";e.d(o,{I:function(){return p},j:function(){return r}});function r(h){var y;let m=h.baseImplementation||e.g.fetch;const l=[(y=h.middleware)!=null?y:[]].flat().reverse();for(const i of l)m=i.apply(m);return{fetch:m}}class t{static create(m){var S,D;const l=c(m),y=((S=m.header)==null?void 0:S.name)||"authorization",i=((D=m.header)==null?void 0:D.value)||(P=>`Bearer ${P}`);return new t(m.identityApi,l,y,i)}constructor(m,l,y,i){this.identityApi=m,this.allowUrl=l,this.headerName=y,this.headerValue=i}apply(m){return async(l,y)=>{const i=new Request(l,y),{token:S}=await this.identityApi.getCredentials();return i.headers.get(this.headerName)||typeof S!="string"||!S||!this.allowUrl(i.url)?m(l,y):(i.headers.set(this.headerName,this.headerValue(S)),m(i))}}}function c(h){return h.allowUrl?h.allowUrl:h.urlPrefixAllowlist?f(h.urlPrefixAllowlist):h.config?f([h.config.getString("backend.baseUrl")]):()=>!1}function f(h){const m=h.map(l=>l.replace(/\/$/,""));return l=>m.some(y=>l===y||l.startsWith(`${y}/`))}function E(h,m){return!m||m==="/"?h:`${h.replace(/\/$/,"")}/${m.replace(/^\//,"")}`}class s{constructor(m){this.discoveryApi=m}apply(m){return async(l,y)=>{const i=new Request(l,y),S="plugin://";if(!i.url.startsWith(S))return m(l,y);const{hostname:D,pathname:P,search:G,hash:L,username:I,password:b}=new URL(`http://${i.url.substring(S.length)}`);let F=await this.discoveryApi.getBaseUrl(D);if(I||b){const ee=new URL(F),ie=`${I}${b?`:${b}`:""}@`;F=`${ee.protocol}//${ie}${ee.host}${ee.pathname}`}const K=`${E(F,P)}${G}${L}`;return m(K,i)}}}class p{static resolvePluginProtocol(m){return new s(m.discoveryApi)}static injectIdentityAuth(m){return t.create(m)}constructor(){}}},11358:function(J,o,e){"use strict";e.d(o,{Y:function(){return E}});var r=e(98005);function t(s,p){for(const h of p)if(!s.has(h))return!1;return!0}function c(s,...p){const h=new Set(s);for(const m of p)for(const l of m)h.add(l);return h}class f{constructor(){q(this,"requests",[]);q(this,"subject",new r.X(this.getCurrentPending()))}request(p){return new Promise((h,m)=>{this.requests.push({scopes:p,resolve:h,reject:m}),this.subject.next(this.getCurrentPending())})}resolve(p,h){this.requests=this.requests.filter(m=>t(p,m.scopes)?(m.resolve(h),!1):!0),this.subject.next(this.getCurrentPending())}reject(p){this.requests.forEach(h=>h.reject(p)),this.requests=[],this.subject.next(this.getCurrentPending())}pending(){return this.subject}getCurrentPending(){const p=this.requests.length===0?void 0:this.requests.slice(1).reduce((h,m)=>c(h,m.scopes),this.requests[0].scopes);return{scopes:p,resolve:h=>{p&&this.resolve(p,h)},reject:h=>{p&&this.reject(h)}}}}class E{constructor(){q(this,"subject",new r.X([]));q(this,"currentRequests",[]);q(this,"handlerCount",0)}createAuthRequester(p){p.provider.id||console.warn("DEPRECATION WARNING: Not passing a provider id to createAuthRequester is deprecated, it will be required in the future");const h=new f,m=this.handlerCount;return this.handlerCount++,h.pending().subscribe({next:l=>{const y=this.currentRequests.slice(),i=this.makeAuthRequest(l,p);i?y[m]=i:delete y[m],this.currentRequests=y,this.subject.next(y.filter(Boolean))}}),l=>h.request(l)}makeAuthRequest(p,h){const{scopes:m}=p;if(!!m)return{provider:h.provider,trigger:async()=>{const l=await h.onAuthRequest(m);p.resolve(l)},reject:()=>{const l=new Error("Login failed, rejected by user");l.name="RejectedError",p.reject(l)}}}authRequest$(){return this.subject}}},56054:function(J,o,e){"use strict";e.d(o,{C:function(){return f}});var r=e(82394),t=e.n(r);const c=new Map;class f{constructor(s,p){q(this,"subscribers",new Set);q(this,"observable",new(t())(s=>(this.subscribers.add(s),()=>{this.subscribers.delete(s)})));this.namespace=s,this.errorApi=p}static create(s){var p;return new f((p=s.namespace)!=null?p:"",s.errorApi)}get(s){return this.snapshot(s).value}snapshot(s){let p,h="absent";try{const m=localStorage.getItem(this.getKeyName(s));m&&(p=JSON.parse(m,(l,y)=>(typeof y=="object"&&y!==null&&Object.freeze(y),y)),h="present")}catch{this.errorApi.post(new Error(`Error when parsing JSON config from storage for: ${s}`))}return{key:s,value:p,newValue:p,presence:h}}forBucket(s){const p=`${this.namespace}/${s}`;return c.has(p)||c.set(p,new f(p,this.errorApi)),c.get(p)}async set(s,p){localStorage.setItem(this.getKeyName(s),JSON.stringify(p)),this.notifyChanges(s)}async remove(s){localStorage.removeItem(this.getKeyName(s)),this.notifyChanges(s)}observe$(s){return this.observable.filter(({key:p})=>p===s)}getKeyName(s){return`${this.namespace}/${encodeURIComponent(s)}`}notifyChanges(s){const p=this.snapshot(s);for(const h of this.subscribers)h.next(p)}}},59589:function(J,o,e){"use strict";e.d(o,{u:function(){return c}});var r=e(91205);const t={id:"atlassian",title:"Atlassian",icon:()=>null};class c{static create(E){const{discoveryApi:s,environment:p="development",provider:h=t,oauthRequestApi:m}=E;return r.L.create({discoveryApi:s,oauthRequestApi:m,provider:h,environment:p})}}},92293:function(J,o,e){"use strict";e.d(o,{Z:function(){return c}});var r=e(91205);const t={id:"auth0",title:"Auth0",icon:()=>null};class c{static create(E){const{discoveryApi:s,environment:p="development",provider:h=t,oauthRequestApi:m,defaultScopes:l=["openid","email","profile"]}=E;return r.L.create({discoveryApi:s,oauthRequestApi:m,provider:h,environment:p,defaultScopes:l})}}},6098:function(J,o,e){"use strict";e.d(o,{Z:function(){return c}});var r=e(91205);const t={id:"bitbucket",title:"Bitbucket",icon:()=>null};class c{static create(E){const{discoveryApi:s,environment:p="development",provider:h=t,oauthRequestApi:m,defaultScopes:l=["team"]}=E;return r.L.create({discoveryApi:s,oauthRequestApi:m,provider:h,environment:p,defaultScopes:l})}}},44431:function(J,o,e){"use strict";e.d(o,{x:function(){return c.Z}});var r=e(19347),t=e.n(r);e.o(r,"AlertApiForwarder")&&e.d(o,{AlertApiForwarder:function(){return r.AlertApiForwarder}}),e.o(r,"AppThemeSelector")&&e.d(o,{AppThemeSelector:function(){return r.AppThemeSelector}}),e.o(r,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return r.AtlassianAuth}}),e.o(r,"ConfigReader")&&e.d(o,{ConfigReader:function(){return r.ConfigReader}}),e.o(r,"ErrorAlerter")&&e.d(o,{ErrorAlerter:function(){return r.ErrorAlerter}}),e.o(r,"ErrorApiForwarder")&&e.d(o,{ErrorApiForwarder:function(){return r.ErrorApiForwarder}}),e.o(r,"FetchMiddlewares")&&e.d(o,{FetchMiddlewares:function(){return r.FetchMiddlewares}}),e.o(r,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return r.FlatRoutes}}),e.o(r,"LocalStorageFeatureFlags")&&e.d(o,{LocalStorageFeatureFlags:function(){return r.LocalStorageFeatureFlags}}),e.o(r,"NoOpAnalyticsApi")&&e.d(o,{NoOpAnalyticsApi:function(){return r.NoOpAnalyticsApi}}),e.o(r,"OAuthRequestManager")&&e.d(o,{OAuthRequestManager:function(){return r.OAuthRequestManager}}),e.o(r,"UnhandledErrorForwarder")&&e.d(o,{UnhandledErrorForwarder:function(){return r.UnhandledErrorForwarder}}),e.o(r,"UrlPatternDiscovery")&&e.d(o,{UrlPatternDiscovery:function(){return r.UrlPatternDiscovery}}),e.o(r,"WebStorage")&&e.d(o,{WebStorage:function(){return r.WebStorage}}),e.o(r,"createFetchApi")&&e.d(o,{createFetchApi:function(){return r.createFetchApi}}),e.o(r,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return r.createSpecializedApp}});var c=e(6098)},19347:function(){},44474:function(J,o,e){"use strict";e.d(o,{T:function(){return c}});var r=e(91205);const t={id:"github",title:"GitHub",icon:()=>null};class c{static create(E){const{discoveryApi:s,environment:p="development",provider:h=t,oauthRequestApi:m,defaultScopes:l=["read:user"]}=E;return r.L.create({discoveryApi:s,oauthRequestApi:m,provider:h,environment:p,defaultScopes:l})}static normalizeScope(E){if(!E)return new Set;const s=Array.isArray(E)?E:E.split(/[\s|,]/).filter(Boolean);return new Set(s)}}},2922:function(J,o,e){"use strict";e.d(o,{a:function(){return c}});var r=e(91205);const t={id:"gitlab",title:"GitLab",icon:()=>null};class c{static create(E){const{discoveryApi:s,environment:p="development",provider:h=t,oauthRequestApi:m,defaultScopes:l=["read_user"]}=E;return r.L.create({discoveryApi:s,oauthRequestApi:m,provider:h,environment:p,defaultScopes:l})}}},59938:function(J,o,e){"use strict";e.d(o,{e:function(){return f}});var r=e(91205);const t={id:"google",title:"Google",icon:()=>null},c="https://www.googleapis.com/auth/";class f{static create(s){const{discoveryApi:p,oauthRequestApi:h,environment:m="development",provider:l=t,defaultScopes:y=["openid",`${c}userinfo.email`,`${c}userinfo.profile`]}=s;return r.L.create({discoveryApi:p,oauthRequestApi:h,provider:l,environment:m,defaultScopes:y,scopeTransform(i){return i.map(S=>S==="openid"?S:S==="profile"||S==="email"?`${c}userinfo.${S}`:S.startsWith(c)?S:`${c}${S}`)}})}}},91668:function(J,o,e){"use strict";e.d(o,{Td:function(){return r.T},aq:function(){return t.a},eE:function(){return c.e},OAuth2:function(){return f.L},OktaAuth:function(){return E.s},SamlAuth:function(){return s.n},Auth0Auth:function(){return p.Z},MicrosoftAuth:function(){return h._},OneLoginAuth:function(){return m.$},BitbucketAuth:function(){return l.x},AtlassianAuth:function(){return y.u}});var r=e(44474),t=e(2922),c=e(59938),f=e(91205);e.o(f,"AlertApiForwarder")&&e.d(o,{AlertApiForwarder:function(){return f.AlertApiForwarder}}),e.o(f,"AppThemeSelector")&&e.d(o,{AppThemeSelector:function(){return f.AppThemeSelector}}),e.o(f,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return f.AtlassianAuth}}),e.o(f,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return f.Auth0Auth}}),e.o(f,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return f.BitbucketAuth}}),e.o(f,"ConfigReader")&&e.d(o,{ConfigReader:function(){return f.ConfigReader}}),e.o(f,"ErrorAlerter")&&e.d(o,{ErrorAlerter:function(){return f.ErrorAlerter}}),e.o(f,"ErrorApiForwarder")&&e.d(o,{ErrorApiForwarder:function(){return f.ErrorApiForwarder}}),e.o(f,"FetchMiddlewares")&&e.d(o,{FetchMiddlewares:function(){return f.FetchMiddlewares}}),e.o(f,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return f.FlatRoutes}}),e.o(f,"LocalStorageFeatureFlags")&&e.d(o,{LocalStorageFeatureFlags:function(){return f.LocalStorageFeatureFlags}}),e.o(f,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return f.MicrosoftAuth}}),e.o(f,"NoOpAnalyticsApi")&&e.d(o,{NoOpAnalyticsApi:function(){return f.NoOpAnalyticsApi}}),e.o(f,"OAuthRequestManager")&&e.d(o,{OAuthRequestManager:function(){return f.OAuthRequestManager}}),e.o(f,"OktaAuth")&&e.d(o,{OktaAuth:function(){return f.OktaAuth}}),e.o(f,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return f.OneLoginAuth}}),e.o(f,"SamlAuth")&&e.d(o,{SamlAuth:function(){return f.SamlAuth}}),e.o(f,"UnhandledErrorForwarder")&&e.d(o,{UnhandledErrorForwarder:function(){return f.UnhandledErrorForwarder}}),e.o(f,"UrlPatternDiscovery")&&e.d(o,{UrlPatternDiscovery:function(){return f.UrlPatternDiscovery}}),e.o(f,"WebStorage")&&e.d(o,{WebStorage:function(){return f.WebStorage}}),e.o(f,"createFetchApi")&&e.d(o,{createFetchApi:function(){return f.createFetchApi}}),e.o(f,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return f.createSpecializedApp}});var E=e(26079),s=e(67578),p=e(92293),h=e(38482),m=e(58381),l=e(44431);e.o(l,"AlertApiForwarder")&&e.d(o,{AlertApiForwarder:function(){return l.AlertApiForwarder}}),e.o(l,"AppThemeSelector")&&e.d(o,{AppThemeSelector:function(){return l.AppThemeSelector}}),e.o(l,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return l.AtlassianAuth}}),e.o(l,"ConfigReader")&&e.d(o,{ConfigReader:function(){return l.ConfigReader}}),e.o(l,"ErrorAlerter")&&e.d(o,{ErrorAlerter:function(){return l.ErrorAlerter}}),e.o(l,"ErrorApiForwarder")&&e.d(o,{ErrorApiForwarder:function(){return l.ErrorApiForwarder}}),e.o(l,"FetchMiddlewares")&&e.d(o,{FetchMiddlewares:function(){return l.FetchMiddlewares}}),e.o(l,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return l.FlatRoutes}}),e.o(l,"LocalStorageFeatureFlags")&&e.d(o,{LocalStorageFeatureFlags:function(){return l.LocalStorageFeatureFlags}}),e.o(l,"NoOpAnalyticsApi")&&e.d(o,{NoOpAnalyticsApi:function(){return l.NoOpAnalyticsApi}}),e.o(l,"OAuthRequestManager")&&e.d(o,{OAuthRequestManager:function(){return l.OAuthRequestManager}}),e.o(l,"UnhandledErrorForwarder")&&e.d(o,{UnhandledErrorForwarder:function(){return l.UnhandledErrorForwarder}}),e.o(l,"UrlPatternDiscovery")&&e.d(o,{UrlPatternDiscovery:function(){return l.UrlPatternDiscovery}}),e.o(l,"WebStorage")&&e.d(o,{WebStorage:function(){return l.WebStorage}}),e.o(l,"createFetchApi")&&e.d(o,{createFetchApi:function(){return l.createFetchApi}}),e.o(l,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return l.createSpecializedApp}});var y=e(59589)},38482:function(J,o,e){"use strict";e.d(o,{_:function(){return c}});var r=e(91205);const t={id:"microsoft",title:"Microsoft",icon:()=>null};class c{static create(E){const{environment:s="development",provider:p=t,oauthRequestApi:h,discoveryApi:m,defaultScopes:l=["openid","offline_access","profile","email","User.Read"]}=E;return r.L.create({discoveryApi:m,oauthRequestApi:h,provider:p,environment:s,defaultScopes:l})}}},15104:function(J,o,e){"use strict";e.d(o,{Z:function(){return s}});var r=e(17678);function t(p){return[...p].join(" ")}class c{constructor(h){q(this,"discoveryApi");q(this,"environment");q(this,"provider");q(this,"joinScopesFunc");q(this,"authRequester");q(this,"sessionTransform");const{discoveryApi:m,environment:l,provider:y,joinScopes:i=t,oauthRequestApi:S,sessionTransform:D=P=>P}=h;this.authRequester=S.createAuthRequester({provider:y,onAuthRequest:P=>this.showPopup(P)}),this.discoveryApi=m,this.environment=l,this.provider=y,this.joinScopesFunc=i,this.sessionTransform=D}async createSession(h){return h.instantPopup?this.showPopup(h.scopes):this.authRequester(h.scopes)}async refreshSession(){const h=await fetch(await this.buildUrl("/refresh",{optional:!0}),{headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(l=>{throw new Error(`Auth refresh request failed, ${l}`)});if(!h.ok){const l=new Error(`Auth refresh request failed, ${h.statusText}`);throw l.status=h.status,l}const m=await h.json();if(m.error){const l=new Error(m.error.message);throw m.error.name&&(l.name=m.error.name),l}return await this.sessionTransform(m)}async removeSession(){const h=await fetch(await this.buildUrl("/logout"),{method:"POST",headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(m=>{throw new Error(`Logout request failed, ${m}`)});if(!h.ok){const m=new Error(`Logout request failed, ${h.statusText}`);throw m.status=h.status,m}}async showPopup(h){const m=this.joinScopesFunc(h),l=await this.buildUrl("/start",{scope:m,origin:location.origin}),y=await(0,r.d)({url:l,name:`${this.provider.title} Login`,origin:new URL(l).origin,width:450,height:730});return await this.sessionTransform(y)}async buildUrl(h,m){const l=await this.discoveryApi.getBaseUrl("auth"),y=this.buildQueryString({...m,env:this.environment});return`${l}/${this.provider.id}${h}${y}`}buildQueryString(h){if(!h)return"";const m=Object.entries(h).map(([l,y])=>{if(typeof y=="string")return`${encodeURIComponent(l)}=${encodeURIComponent(y)}`;if(y)return encodeURIComponent(l)}).filter(Boolean).join("&");return m?`?${m}`:""}}var f=e(55274);const E={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class s{constructor(h){q(this,"sessionManager");q(this,"scopeTransform");this.sessionManager=h.sessionManager,this.scopeTransform=h.scopeTransform}static create(h){const{discoveryApi:m,environment:l="development",provider:y=E,oauthRequestApi:i,defaultScopes:S=[],scopeTransform:D=L=>L}=h,P=new c({discoveryApi:m,environment:l,provider:y,oauthRequestApi:i,sessionTransform(L){return{...L,providerInfo:{idToken:L.providerInfo.idToken,accessToken:L.providerInfo.accessToken,scopes:s.normalizeScopes(D,L.providerInfo.scope),expiresAt:new Date(Date.now()+L.providerInfo.expiresInSeconds*1e3)}}}}),G=new f.q2({connector:P,defaultScopes:new Set(S),sessionScopes:L=>L.providerInfo.scopes,sessionShouldRefresh:L=>(L.providerInfo.expiresAt.getTime()-Date.now())/1e3<60*5});return new s({sessionManager:G,scopeTransform:D})}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(h,m){var i;const l=s.normalizeScopes(this.scopeTransform,h),y=await this.sessionManager.getSession({...m,scopes:l});return(i=y==null?void 0:y.providerInfo.accessToken)!=null?i:""}async getIdToken(h={}){var l;const m=await this.sessionManager.getSession(h);return(l=m==null?void 0:m.providerInfo.idToken)!=null?l:""}async getBackstageIdentity(h={}){const m=await this.sessionManager.getSession(h);return m==null?void 0:m.backstageIdentity}async getProfile(h={}){const m=await this.sessionManager.getSession(h);return m==null?void 0:m.profile}static normalizeScopes(h,m){if(!m)return new Set;const l=Array.isArray(m)?m:m.split(/[\s|,]/).filter(Boolean);return new Set(h(l))}}},91205:function(J,o,e){"use strict";e.d(o,{L:function(){return r.Z}});var r=e(15104),t=e(5973),c=e.n(t);e.o(t,"AlertApiForwarder")&&e.d(o,{AlertApiForwarder:function(){return t.AlertApiForwarder}}),e.o(t,"AppThemeSelector")&&e.d(o,{AppThemeSelector:function(){return t.AppThemeSelector}}),e.o(t,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return t.AtlassianAuth}}),e.o(t,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return t.Auth0Auth}}),e.o(t,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return t.BitbucketAuth}}),e.o(t,"ConfigReader")&&e.d(o,{ConfigReader:function(){return t.ConfigReader}}),e.o(t,"ErrorAlerter")&&e.d(o,{ErrorAlerter:function(){return t.ErrorAlerter}}),e.o(t,"ErrorApiForwarder")&&e.d(o,{ErrorApiForwarder:function(){return t.ErrorApiForwarder}}),e.o(t,"FetchMiddlewares")&&e.d(o,{FetchMiddlewares:function(){return t.FetchMiddlewares}}),e.o(t,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return t.FlatRoutes}}),e.o(t,"LocalStorageFeatureFlags")&&e.d(o,{LocalStorageFeatureFlags:function(){return t.LocalStorageFeatureFlags}}),e.o(t,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return t.MicrosoftAuth}}),e.o(t,"NoOpAnalyticsApi")&&e.d(o,{NoOpAnalyticsApi:function(){return t.NoOpAnalyticsApi}}),e.o(t,"OAuthRequestManager")&&e.d(o,{OAuthRequestManager:function(){return t.OAuthRequestManager}}),e.o(t,"OktaAuth")&&e.d(o,{OktaAuth:function(){return t.OktaAuth}}),e.o(t,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return t.OneLoginAuth}}),e.o(t,"SamlAuth")&&e.d(o,{SamlAuth:function(){return t.SamlAuth}}),e.o(t,"UnhandledErrorForwarder")&&e.d(o,{UnhandledErrorForwarder:function(){return t.UnhandledErrorForwarder}}),e.o(t,"UrlPatternDiscovery")&&e.d(o,{UrlPatternDiscovery:function(){return t.UrlPatternDiscovery}}),e.o(t,"WebStorage")&&e.d(o,{WebStorage:function(){return t.WebStorage}}),e.o(t,"createFetchApi")&&e.d(o,{createFetchApi:function(){return t.createFetchApi}}),e.o(t,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return t.createSpecializedApp}})},5973:function(){},26079:function(J,o,e){"use strict";e.d(o,{s:function(){return E}});var r=e(91205);const t={id:"okta",title:"Okta",icon:()=>null},c=new Set(["openid","profile","email","phone","address","groups","offline_access"]),f="okta.";class E{static create(p){const{discoveryApi:h,environment:m="development",provider:l=t,oauthRequestApi:y,defaultScopes:i=["openid","email","profile","offline_access"]}=p;return r.L.create({discoveryApi:h,oauthRequestApi:y,provider:l,environment:m,defaultScopes:i,scopeTransform(S){return S.map(D=>c.has(D)||D.startsWith(f)?D:`${f}${D}`)}})}}},58381:function(J,o,e){"use strict";e.d(o,{$:function(){return E}});var r=e(91205);const t={id:"onelogin",title:"onelogin",icon:()=>null},c=new Set(["openid","profile","email","phone","address","groups","offline_access"]),f="onelogin.";class E{static create(p){const{discoveryApi:h,environment:m="development",provider:l=t,oauthRequestApi:y}=p;return r.L.create({discoveryApi:h,oauthRequestApi:y,provider:l,environment:m,defaultScopes:["openid","email","profile","offline_access"],scopeTransform(i){return i.map(S=>c.has(S)||S.startsWith(f)?S:`${f}${S}`)}})}}},67578:function(J,o,e){"use strict";e.d(o,{n:function(){return p}});var r=e(17678);class t{constructor(m){q(this,"discoveryApi");q(this,"environment");q(this,"provider");const{discoveryApi:l,environment:y,provider:i}=m;this.discoveryApi=l,this.environment=y,this.provider=i}async createSession(){const m=await this.buildUrl("/start"),l=await(0,r.d)({url:m,name:`${this.provider.title} Login`,origin:new URL(m).origin,width:450,height:730});return{...l,id:l.profile.email}}async refreshSession(){}async removeSession(){const m=await fetch(await this.buildUrl("/logout"),{method:"POST",headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(l=>{throw new Error(`Logout request failed, ${l}`)});if(!m.ok){const l=new Error(`Logout request failed, ${m.statusText}`);throw l.status=m.status,l}}async buildUrl(m){return`${await this.discoveryApi.getBaseUrl("auth")}/${this.provider.id}${m}?env=${this.environment}`}}var c=e(55274),f=e(30195);const E=f.z.object({profile:f.z.object({email:f.z.string().optional(),displayName:f.z.string().optional(),picture:f.z.string().optional()}),backstageIdentity:f.z.object({id:f.z.string(),token:f.z.string(),identity:f.z.object({type:f.z.literal("user"),userEntityRef:f.z.string(),ownershipEntityRefs:f.z.array(f.z.string())})})}),s={id:"saml",title:"SAML",icon:()=>null};class p{static create(m){const{discoveryApi:l,environment:y="development",provider:i=s}=m,S=new t({discoveryApi:l,environment:y,provider:i}),D=new c.k1({connector:S}),P=new c.Hc({manager:D,storageKey:`${i.id}Session`,schema:E});return new p(P)}sessionState$(){return this.sessionManager.sessionState$()}constructor(m){this.sessionManager=m}async signIn(){await this.getBackstageIdentity({})}async signOut(){await this.sessionManager.removeSession()}async getBackstageIdentity(m={}){const l=await this.sessionManager.getSession(m);return l==null?void 0:l.backstageIdentity}async getProfile(m={}){const l=await this.sessionManager.getSession(m);return l==null?void 0:l.profile}}},91631:function(J,o,e){"use strict";e.d(o,{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 t.C},NoOpAnalyticsApi:function(){return c.g},AppThemeSelector:function(){return f.C},ConfigReader:function(){return E.m},UrlPatternDiscovery:function(){return s.p},ErrorAlerter:function(){return p.KN},ErrorApiForwarder:function(){return p.gr},UnhandledErrorForwarder:function(){return p.Jv},LocalStorageFeatureFlags:function(){return h.b},FetchMiddlewares:function(){return m.I},createFetchApi:function(){return m.j},OAuthRequestManager:function(){return l.Y},WebStorage:function(){return y.C}});var r=e(91668);e.o(r,"AlertApiForwarder")&&e.d(o,{AlertApiForwarder:function(){return r.AlertApiForwarder}}),e.o(r,"AppThemeSelector")&&e.d(o,{AppThemeSelector:function(){return r.AppThemeSelector}}),e.o(r,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return r.BitbucketAuth}}),e.o(r,"ConfigReader")&&e.d(o,{ConfigReader:function(){return r.ConfigReader}}),e.o(r,"ErrorAlerter")&&e.d(o,{ErrorAlerter:function(){return r.ErrorAlerter}}),e.o(r,"ErrorApiForwarder")&&e.d(o,{ErrorApiForwarder:function(){return r.ErrorApiForwarder}}),e.o(r,"FetchMiddlewares")&&e.d(o,{FetchMiddlewares:function(){return r.FetchMiddlewares}}),e.o(r,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return r.FlatRoutes}}),e.o(r,"LocalStorageFeatureFlags")&&e.d(o,{LocalStorageFeatureFlags:function(){return r.LocalStorageFeatureFlags}}),e.o(r,"NoOpAnalyticsApi")&&e.d(o,{NoOpAnalyticsApi:function(){return r.NoOpAnalyticsApi}}),e.o(r,"OAuth2")&&e.d(o,{OAuth2:function(){return r.OAuth2}}),e.o(r,"OAuthRequestManager")&&e.d(o,{OAuthRequestManager:function(){return r.OAuthRequestManager}}),e.o(r,"UnhandledErrorForwarder")&&e.d(o,{UnhandledErrorForwarder:function(){return r.UnhandledErrorForwarder}}),e.o(r,"UrlPatternDiscovery")&&e.d(o,{UrlPatternDiscovery:function(){return r.UrlPatternDiscovery}}),e.o(r,"WebStorage")&&e.d(o,{WebStorage:function(){return r.WebStorage}}),e.o(r,"createFetchApi")&&e.d(o,{createFetchApi:function(){return r.createFetchApi}}),e.o(r,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return r.createSpecializedApp}});var t=e(23235),c=e(47150),f=e(58652),E=e(14721),s=e(4333),p=e(89536),h=e(14884),m=e(50160),l=e(11358),y=e(56054)},56494:function(J,o,e){"use strict";e.d(o,{ApiProvider:function(){return r.gs},AlertApiForwarder:function(){return t.AlertApiForwarder},AppThemeSelector:function(){return t.AppThemeSelector},ConfigReader:function(){return t.ConfigReader},ErrorAlerter:function(){return t.ErrorAlerter},ErrorApiForwarder:function(){return t.ErrorApiForwarder},FetchMiddlewares:function(){return t.FetchMiddlewares},LocalStorageFeatureFlags:function(){return t.LocalStorageFeatureFlags},NoOpAnalyticsApi:function(){return t.NoOpAnalyticsApi},OAuthRequestManager:function(){return t.OAuthRequestManager},UnhandledErrorForwarder:function(){return t.UnhandledErrorForwarder},UrlPatternDiscovery:function(){return t.UrlPatternDiscovery},WebStorage:function(){return t.WebStorage},createFetchApi:function(){return t.createFetchApi}});var r=e(76105);e.o(r,"AlertApiForwarder")&&e.d(o,{AlertApiForwarder:function(){return r.AlertApiForwarder}}),e.o(r,"AppThemeSelector")&&e.d(o,{AppThemeSelector:function(){return r.AppThemeSelector}}),e.o(r,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return r.AtlassianAuth}}),e.o(r,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return r.Auth0Auth}}),e.o(r,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return r.BitbucketAuth}}),e.o(r,"ConfigReader")&&e.d(o,{ConfigReader:function(){return r.ConfigReader}}),e.o(r,"ErrorAlerter")&&e.d(o,{ErrorAlerter:function(){return r.ErrorAlerter}}),e.o(r,"ErrorApiForwarder")&&e.d(o,{ErrorApiForwarder:function(){return r.ErrorApiForwarder}}),e.o(r,"FetchMiddlewares")&&e.d(o,{FetchMiddlewares:function(){return r.FetchMiddlewares}}),e.o(r,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return r.FlatRoutes}}),e.o(r,"GithubAuth")&&e.d(o,{GithubAuth:function(){return r.GithubAuth}}),e.o(r,"GitlabAuth")&&e.d(o,{GitlabAuth:function(){return r.GitlabAuth}}),e.o(r,"GoogleAuth")&&e.d(o,{GoogleAuth:function(){return r.GoogleAuth}}),e.o(r,"LocalStorageFeatureFlags")&&e.d(o,{LocalStorageFeatureFlags:function(){return r.LocalStorageFeatureFlags}}),e.o(r,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return r.MicrosoftAuth}}),e.o(r,"NoOpAnalyticsApi")&&e.d(o,{NoOpAnalyticsApi:function(){return r.NoOpAnalyticsApi}}),e.o(r,"OAuth2")&&e.d(o,{OAuth2:function(){return r.OAuth2}}),e.o(r,"OAuthRequestManager")&&e.d(o,{OAuthRequestManager:function(){return r.OAuthRequestManager}}),e.o(r,"OktaAuth")&&e.d(o,{OktaAuth:function(){return r.OktaAuth}}),e.o(r,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return r.OneLoginAuth}}),e.o(r,"SamlAuth")&&e.d(o,{SamlAuth:function(){return r.SamlAuth}}),e.o(r,"UnhandledErrorForwarder")&&e.d(o,{UnhandledErrorForwarder:function(){return r.UnhandledErrorForwarder}}),e.o(r,"UrlPatternDiscovery")&&e.d(o,{UrlPatternDiscovery:function(){return r.UrlPatternDiscovery}}),e.o(r,"WebStorage")&&e.d(o,{WebStorage:function(){return r.WebStorage}}),e.o(r,"createFetchApi")&&e.d(o,{createFetchApi:function(){return r.createFetchApi}}),e.o(r,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return r.createSpecializedApp}});var t=e(91631);e.o(t,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return t.AtlassianAuth}}),e.o(t,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return t.Auth0Auth}}),e.o(t,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return t.BitbucketAuth}}),e.o(t,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return t.FlatRoutes}}),e.o(t,"GithubAuth")&&e.d(o,{GithubAuth:function(){return t.GithubAuth}}),e.o(t,"GitlabAuth")&&e.d(o,{GitlabAuth:function(){return t.GitlabAuth}}),e.o(t,"GoogleAuth")&&e.d(o,{GoogleAuth:function(){return t.GoogleAuth}}),e.o(t,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return t.MicrosoftAuth}}),e.o(t,"OAuth2")&&e.d(o,{OAuth2:function(){return t.OAuth2}}),e.o(t,"OktaAuth")&&e.d(o,{OktaAuth:function(){return t.OktaAuth}}),e.o(t,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return t.OneLoginAuth}}),e.o(t,"SamlAuth")&&e.d(o,{SamlAuth:function(){return t.SamlAuth}}),e.o(t,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return t.createSpecializedApp}})},80396:function(J,o,e){"use strict";e.d(o,{p:function(){return t}});var r;(function(c){c[c.default=10]="default";const f=50;c[c.app=f]="app",c[c.static=100]="static"})(r||(r={}));class t{constructor(){q(this,"factories",new Map)}register(f,E){const s=r[f],p=this.factories.get(E.api.id);return p&&p.priority>=s?!1:(this.factories.set(E.api.id,{priority:s,factory:E}),!0)}get(f){const E=this.factories.get(f.id);if(!!E)return E.factory}getAllApis(){const f=new Set;for(const{factory:E}of this.factories.values())f.add(E.api);return f}}},14406:function(J,o,e){"use strict";e.d(o,{g:function(){return p}});var r=e(2784),t=e(13980),c=e.n(t);class f{constructor(...m){q(this,"holders");this.holders=m}get(m){for(const l of this.holders){const y=l.get(m);if(y)return y}}}var E=e(76241);const s=(0,E.CT)("api-context"),p=h=>{var S;const{apis:m,children:l}=h,y=(S=(0,r.useContext)(s))==null?void 0:S.atVersion(1),i=y?new f(m,y):m;return r.createElement(s.Provider,{value:(0,E.EI)({1:i}),children:l})};p.propTypes={apis:c().shape({get:c().func.isRequired}).isRequired,children:c().node}},12132:function(J,o,e){"use strict";e.d(o,{M:function(){return r}});class r{constructor(c){q(this,"apis",new Map);this.factories=c}static validateFactories(c,f){for(const E of f){const s=[E],p=new Set;for(;s.length;){const h=s.shift(),m=c.get(h);if(!!m)for(const l of Object.values(m.deps)){if(l.id===E.id)throw new Error(`Circular dependency of api factory for ${E}`);p.has(l)||(p.add(l),s.push(l))}}}}get(c){return this.load(c)}load(c,f=[]){const E=this.apis.get(c.id);if(E)return E;const s=this.factories.get(c);if(!s)return;if(f.includes(s.api))throw new Error(`Circular dependency of api factory for ${s.api}`);const p=this.loadDeps(c,s.deps,[...f,s.api]),h=s.factory(p);return this.apis.set(c.id,h),h}loadDeps(c,f,E){const s={};for(const p in f)if(f.hasOwnProperty(p)){const h=f[p],m=this.load(h,E);if(!m)throw new Error(`No API factory available for dependency ${h} of dependent ${c}`);s[p]=m}return s}}},76105:function(J,o,e){"use strict";e.d(o,{gs:function(){return r.g},MM:function(){return t.M},pv:function(){return c.p}});var r=e(14406),t=e(12132),c=e(80396),f=e(82488),E=e.n(f);e.o(f,"AlertApiForwarder")&&e.d(o,{AlertApiForwarder:function(){return f.AlertApiForwarder}}),e.o(f,"AppThemeSelector")&&e.d(o,{AppThemeSelector:function(){return f.AppThemeSelector}}),e.o(f,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return f.AtlassianAuth}}),e.o(f,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return f.Auth0Auth}}),e.o(f,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return f.BitbucketAuth}}),e.o(f,"ConfigReader")&&e.d(o,{ConfigReader:function(){return f.ConfigReader}}),e.o(f,"ErrorAlerter")&&e.d(o,{ErrorAlerter:function(){return f.ErrorAlerter}}),e.o(f,"ErrorApiForwarder")&&e.d(o,{ErrorApiForwarder:function(){return f.ErrorApiForwarder}}),e.o(f,"FetchMiddlewares")&&e.d(o,{FetchMiddlewares:function(){return f.FetchMiddlewares}}),e.o(f,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return f.FlatRoutes}}),e.o(f,"GithubAuth")&&e.d(o,{GithubAuth:function(){return f.GithubAuth}}),e.o(f,"GitlabAuth")&&e.d(o,{GitlabAuth:function(){return f.GitlabAuth}}),e.o(f,"GoogleAuth")&&e.d(o,{GoogleAuth:function(){return f.GoogleAuth}}),e.o(f,"LocalStorageFeatureFlags")&&e.d(o,{LocalStorageFeatureFlags:function(){return f.LocalStorageFeatureFlags}}),e.o(f,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return f.MicrosoftAuth}}),e.o(f,"NoOpAnalyticsApi")&&e.d(o,{NoOpAnalyticsApi:function(){return f.NoOpAnalyticsApi}}),e.o(f,"OAuth2")&&e.d(o,{OAuth2:function(){return f.OAuth2}}),e.o(f,"OAuthRequestManager")&&e.d(o,{OAuthRequestManager:function(){return f.OAuthRequestManager}}),e.o(f,"OktaAuth")&&e.d(o,{OktaAuth:function(){return f.OktaAuth}}),e.o(f,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return f.OneLoginAuth}}),e.o(f,"SamlAuth")&&e.d(o,{SamlAuth:function(){return f.SamlAuth}}),e.o(f,"UnhandledErrorForwarder")&&e.d(o,{UnhandledErrorForwarder:function(){return f.UnhandledErrorForwarder}}),e.o(f,"UrlPatternDiscovery")&&e.d(o,{UrlPatternDiscovery:function(){return f.UrlPatternDiscovery}}),e.o(f,"WebStorage")&&e.d(o,{WebStorage:function(){return f.WebStorage}}),e.o(f,"createFetchApi")&&e.d(o,{createFetchApi:function(){return f.createFetchApi}}),e.o(f,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return f.createSpecializedApp}})},82488:function(){},69342:function(J,o,e){"use strict";e.d(o,{b:function(){return te}});var r=e(2784),t=e(10289),c=e(64279),f=e(56494),E=e(36964),s=e(76105);function p(T){const C={};for(const H in T.collectors)T.collectors.hasOwnProperty(H)&&(C[H]=T.collectors[H]());const B=[{node:r.Children.toArray(T.root),parent:void 0,contexts:{}}];for(;B.length!==0;){const{node:H,parent:Y,contexts:le}=B.shift();r.Children.forEach(H,Ae=>{if(!(0,r.isValidElement)(Ae))return;const ye={};for(const Be in C)if(C.hasOwnProperty(Be)){const Ie=C[Be];ye[Be]=Ie.visit(Ie.accumulator,Ae,Y,le[Be])}for(const Be of T.discoverers){const Ie=Be(Ae);Ie&&B.push({node:Ie,parent:Ae,contexts:ye})}})}return Object.fromEntries(Object.entries(C).map(([H,Y])=>[H,Y.accumulator]))}function h(T,C){return()=>({accumulator:T(),visit:C})}function m(T){var C;return(C=T.props)==null?void 0:C.children}function l(T){var C,B,H;if(((C=T.props)==null?void 0:C.path)&&((B=T.props)==null?void 0:B.element))return(H=T.props)==null?void 0:H.element}const y=h(()=>new Set,(T,C)=>{const B=(0,E.getComponentData)(C,"core.plugin");B&&T.add(B)});var i=e(88934);function S(T){var H;const C=(H=T.props)==null?void 0:H.element;let B=(0,E.getComponentData)(T,"core.mountPoint");return!B&&(0,r.isValidElement)(C)&&(B=(0,E.getComponentData)(C,"core.mountPoint")),B}const D=h(()=>new Map,(T,C,B,H)=>{var Ae,ye;let Y=H;if((B==null?void 0:B.props.element)===C)return Y;if((0,E.getComponentData)(C,"core.gatherMountPoints")){const Be=(Ae=C.props)==null?void 0:Ae.path;if(!Be)throw new Error("Mount point gatherer must have a path");Y=Be}const le=S(C);if(le){let Be=(ye=C.props)==null?void 0:ye.path;if(Y&&(Be?Y=void 0:Be=Y),!Be)throw new Error("Mounted routable extension must have a path");T.set(le,Be)}return Y}),P=h(()=>new Map,(T,C,B,H)=>{var Ae;if((B==null?void 0:B.props.element)===C)return H;let Y=H;const le=S(C);return le&&(H&&"sticky"in H?(T.set(le,H.sticky),((Ae=C.props)==null?void 0:Ae.path)?Y=le:Y=H):(T.set(le,H),Y=le)),(0,E.getComponentData)(C,"core.gatherMountPoints")?{sticky:Y}:Y}),G={caseSensitive:!1,path:"/*",element:"match-all",routeRefs:new Set},L=h(()=>Array(),(T,C,B,H)=>{var Ie,ve,Ee;const Y=(Ie=H==null?void 0:H.children)!=null?Ie:T;if((B==null?void 0:B.props.element)===C)return H;const le=(ve=C.props)==null?void 0:ve.path,Ae=Boolean((Ee=C.props)==null?void 0:Ee.caseSensitive),ye=S(C);if(ye){if(le){const Fe={caseSensitive:Ae,path:le,element:"mounted",routeRefs:new Set([ye]),children:[G],plugin:(0,E.getComponentData)(C.props.element,"core.plugin")};return Y.push(Fe),Fe}H==null||H.routeRefs.add(ye)}if((0,E.getComponentData)(C,"core.gatherMountPoints")){if(!le)throw new Error("Mount point gatherer must have a path");const Fe={caseSensitive:Ae,path:le,element:"gathered",routeRefs:new Set,children:[G],plugin:H==null?void 0:H.plugin};return Y.push(Fe),Fe}return H}),I=h(()=>new Set,(T,C)=>{if(C.type===i.L){const B=C.props;T.add("with"in B?B.with:B.without)}});var b=e(76241);const F=(0,b.uW)("route-ref-type",()=>Symbol("route-ref-type"));function K(T){return T[F]==="absolute"}function ee(T){return T[F]==="sub"}function ie(T){return T[F]==="external"}function pe(...T){const C=T.join("/").replace(/\/\/+/g,"/");return C!=="/"&&C.endsWith("/")?C.slice(0,-1):C}function Le(T,C,B){let H,Y="";if(K(T))H=T;else if(ee(T))H=T.parent,Y=T.path;else if(ie(T)){const ye=B.get(T);if(!ye)return[void 0,""];if(K(ye))H=ye;else if(ee(ye))H=ye.parent,Y=ye.path;else throw new Error(`ExternalRouteRef was bound to invalid target, ${ye}`)}else throw T[F]?new Error(`Unknown or invalid route ref type, ${T[F]}`):new Error(`Unknown object passed to useRouteRef, got ${T}`);if(!H)return[void 0,""];const le=C.get(H);if(!le)return[void 0,""];const Ae=pe(le,Y);return[H,Ae]}function me(T,C,B,H,Y){var ve;const le=(ve=(0,t.fp)(Y,C))!=null?ve:[],Ae=Array();let ye=-1;for(let Ee=T;Ee&&(ye=le.findIndex(Fe=>Fe.route.routeRefs.has(Ee)),ye===-1);Ee=H.get(Ee))Ae.unshift(Ee);Ae.length===0&&(ye-=1);const Be=ye===-1?"":le[ye].pathname,Ie=pe(...Ae.slice(0,-1).map(Ee=>{const Fe=B.get(Ee);if(!Fe)throw new Error(`No path for ${Ee}`);if(Fe.includes(":"))throw new Error(`Cannot route to ${T} with parent ${Ee} as it has parameters`);return Fe}));return Be+Ie}class ze{constructor(C,B,H,Y,le){this.routePaths=C,this.routeParents=B,this.routeObjects=H,this.routeBindings=Y,this.appBasePath=le}resolve(C,B){const[H,Y]=Le(C,this.routePaths,this.routeBindings);if(!H)return;let le;typeof B=="string"?le=this.trimPath(B):B.pathname?le={...B,pathname:this.trimPath(B.pathname)}:le=B;const Ae=this.appBasePath+me(H,le,this.routePaths,this.routeParents,this.routeObjects);return(...[Be])=>Ae+(0,t.Gn)(Y,Be)}trimPath(C){return C&&(C.startsWith(this.appBasePath)?C.slice(this.appBasePath.length):C)}}const Te=(0,b.CT)("routing-context"),Qe=({routePaths:T,routeParents:C,routeObjects:B,routeBindings:H,basePath:Y="",children:le})=>{const Ae=new ze(T,C,B,H,Y),ye=(0,b.EI)({1:Ae});return r.createElement(Te.Provider,{value:ye},le)},it=(T,C)=>{var B,H;try{const Y=(0,t.fp)(C,{pathname:T}),le=(B=Y==null?void 0:Y.filter(ye=>{var Be;return((Be=ye==null?void 0:ye.route.routeRefs)==null?void 0:Be.size)>0}).pop())==null?void 0:B.route;if(!le)return{};let Ae;return le.routeRefs.size===1&&(Ae=le.routeRefs.values().next().value),{extension:"App",pluginId:((H=le.plugin)==null?void 0:H.getId())||"root",...Ae?{routeRef:Ae.id}:{}}}catch{return{}}},et=({pathname:T,search:C,hash:B})=>{const H=(0,E.useAnalytics)();return(0,r.useEffect)(()=>{H.captureEvent("navigate",`${T}${C}${B}`)},[H,T,C,B]),null},gt=({tree:T})=>{const{pathname:C,search:B,hash:H}=(0,t.TH)(),{routeObjects:Y}=(0,r.useMemo)(()=>p({root:T,discoverers:[m,l],collectors:{routeObjects:L}}),[T]);return r.createElement(E.AnalyticsContext,{attributes:it(C,Y)},r.createElement(et,{pathname:C,search:B,hash:H}))};function rt(T,C){const B=new Set(C.values());B.delete(void 0);for(const H of C.keys()){if(B.has(H))continue;let Y=H,le="";for(;Y;){const ye=T.get(Y);if(!ye)throw new Error(`No path for ${Y}`);le=`${ye}${le}`,Y=C.get(Y)}const Ae=le.match(/:(\w+)/g);if(Ae){for(let ye=0;ye<Ae.length;ye++)for(let Be=ye+1;Be<Ae.length;Be++)if(Ae[Be]===Ae[ye])throw new Error(`Parameter ${Ae[Be]} is duplicated in path ${le}`)}}}function ot(T,C){for(const B of C)if(!!B.externalRoutes){for(const[H,Y]of Object.entries(B.externalRoutes))if(!Y.optional&&!T.has(Y))throw new Error(`External route '${H}' of the '${B.getId()}' plugin must be bound to a target route. See https://backstage.io/link?bind-routes for details.`)}}const Rt=(0,b.CT)("app-context"),wt=({appContext:T,children:C})=>{const B=(0,b.EI)({1:T});return r.createElement(Rt.Provider,{value:B,children:C})};function Lt(T){return new Error(`Tried to access IdentityApi ${T} before app was loaded`)}function pt(T){console.warn(`WARNING: Call to ${T} is deprecated and will break in the future`)}class at{constructor(){q(this,"target");q(this,"waitForTarget");q(this,"resolveTarget",()=>{});this.waitForTarget=new Promise(C=>{this.resolveTarget=C})}setTarget(C){this.target=C,this.resolveTarget(C)}getUserId(){if(!this.target)throw Lt("getUserId");if(!this.target.getUserId)throw new Error("IdentityApi does not implement getUserId");return pt("getUserId"),this.target.getUserId()}getProfile(){if(!this.target)throw Lt("getProfile");if(!this.target.getProfile)throw new Error("IdentityApi does not implement getProfile");return pt("getProfile"),this.target.getProfile()}async getProfileInfo(){return this.waitForTarget.then(C=>C.getProfileInfo())}async getBackstageIdentity(){const C=await this.waitForTarget.then(B=>B.getBackstageIdentity());return C.userEntityRef.match(/^.*:.*\/.*$/)||console.warn(`WARNING: The App IdentityApi provided an invalid userEntityRef, '${C.userEntityRef}'. It must be a full Entity Reference of the form '<kind>:<namespace>/<name>'.`),C}async getCredentials(){return this.waitForTarget.then(C=>C.getCredentials())}async getIdToken(){return this.waitForTarget.then(C=>{if(!C.getIdToken)throw new Error("IdentityApi does not implement getIdToken");return pt("getIdToken"),C.getIdToken()})}async signOut(){await this.waitForTarget.then(C=>C.signOut()),location.reload()}}var Tt=e(72164);function Pt(T,C,B){if(T!==void 0){const Y=B.find(le=>le.id===T);if(Y)return Y}if(C){const Y=B.find(le=>le.variant==="dark");if(Y)return Y}const H=B.find(Y=>Y.variant==="light");return H||B[0]}const Ot=()=>{const T=(0,r.useMemo)(()=>window.matchMedia("(prefers-color-scheme: dark)"),[]),[C,B]=(0,r.useState)(T.matches);return(0,r.useEffect)(()=>{const H=Y=>{B(Y.matches)};return T.addListener(H),()=>{T.removeListener(H)}},[T]),C};function Ft({children:T}){const C=(0,E.useApi)(E.appThemeApiRef),B=(0,Tt.Z)(C.activeThemeId$(),C.getActiveThemeId()),H=Boolean(window.matchMedia)?Ot():!1,Y=Pt(B,H,C.getInstalledThemes());if(!Y)throw new Error("App has no themes");return r.createElement(Y.Provider,{children:T})}const mt=async(T="__APP_INJECTED_RUNTIME_CONFIG__")=>{const C=[{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(!C)throw new Error("No static configuration provided");if(!Array.isArray(C))throw new Error("Static configuration has invalid format");const B=C.slice();if(T!=="__app_injected_runtime_config__".toLocaleUpperCase("en-US"))try{const Y=JSON.parse(T);Array.isArray(Y)?B.push(...Y):B.push({data:Y,context:"env"})}catch(Y){throw new Error(`Failed to load runtime configuration, ${Y}`)}const H=window.__APP_CONFIG__;return H&&B.push({context:"window",data:H}),B};class It{constructor(){q(this,"apis",[])}add(C,B){return this.apis.push([C.id,B]),B}build(){return new Bt(new Map(this.apis))}}class Bt{static builder(){return new It}static from(C){return new Bt(new Map(C.map(([B,H])=>[B.id,H])))}static with(C,B){return new Bt(new Map([[C.id,B]]))}constructor(C){this.apis=C}with(C,B){return new Bt(new Map([...this.apis,[C.id,B]]))}get(C){return this.apis.get(C.id)}}function be(T){const C=new Map;return T&&T({bind:(H,Y)=>{for(const[le,Ae]of Object.entries(Y)){const ye=H[le];if(!ye)throw new Error(`Key ${le} is not an existing external route`);if(!Ae&&!ye.optional)throw new Error(`External route ${le} is required but was undefined`);Ae&&C.set(ye,Ae)}}}),C}function st(T){var B;let{pathname:C}=new URL((B=T.getOptionalString("app.baseUrl"))!=null?B:"/","http://dummy.dev");return C=C.replace(/\/*$/,""),C}function lt(T,C,B){var Be;const H=Boolean(T),Y=(0,c.default)(T||(()=>Promise.resolve([])));let le;if(H&&Y.loading){const{Progress:Ie}=C;le=r.createElement(Ie,null)}else if(Y.error){const{BootErrorPage:Ie}=C;le=r.createElement(Ie,{step:"load-config",error:Y.error})}const{ThemeProvider:Ae=Ft}=C;return le?{node:r.createElement(f.ApiProvider,{apis:Bt.with(E.appThemeApiRef,B)},r.createElement(Ae,null,le))}:{api:f.ConfigReader.fromConfigs((Be=Y.value)!=null?Be:[])}}class Ct{constructor(C){this.app=C}getPlugins(){return this.app.getPlugins()}getSystemIcon(C){return this.app.getSystemIcon(C)}getComponents(){return this.app.getComponents()}}class ae{constructor(C){q(this,"apiHolder");q(this,"configApi");q(this,"apis");q(this,"icons");q(this,"plugins");q(this,"components");q(this,"themes");q(this,"configLoader");q(this,"defaultApis");q(this,"bindRoutes");q(this,"appIdentityProxy",new at);q(this,"apiFactoryRegistry");var B,H,Y,le;this.apis=(B=C.apis)!=null?B:[],this.icons=C.icons,this.plugins=new Set((H=C.plugins)!=null?H:[]),this.components=C.components,this.themes=C.themes,this.configLoader=(Y=C.configLoader)!=null?Y:mt,this.defaultApis=(le=C.defaultApis)!=null?le:[],this.bindRoutes=C.bindRoutes,this.apiFactoryRegistry=new s.pv}getPlugins(){return Array.from(this.plugins)}getSystemIcon(C){return this.icons[C]}getComponents(){return this.components}getProvider(){const C=new Ct(this);let B=!1;return({children:Y})=>{const le=(0,r.useMemo)(()=>f.AppThemeSelector.createWithStorage(this.themes),[]),{routePaths:Ae,routeParents:ye,routeObjects:Be,featureFlags:Ie,routeBindings:ve}=(0,r.useMemo)(()=>{const ut=p({root:Y,discoverers:[m,l],collectors:{routePaths:D,routeParents:P,routeObjects:L,collectedPlugins:y,featureFlags:I}});return ut.collectedPlugins.forEach(Ve=>this.plugins.add(Ve)),this.verifyPlugins(this.plugins),this.getApiHolder(),{...ut,routeBindings:be(this.bindRoutes)}},[Y]);B||(B=!0,rt(Ae,ye),ot(ve,this.plugins));const Ee=lt(this.configLoader,this.components,le),Fe="api"in Ee;if(Fe){const{api:ut}=Ee;this.configApi=ut}if((0,r.useEffect)(()=>{if(Fe){const ut=this.getApiHolder().get(E.featureFlagsApiRef);for(const Ve of this.plugins.values())if("getFeatureFlags"in Ve)for(const oe of Ve.getFeatureFlags())ut.registerFlag({name:oe.name,pluginId:Ve.getId()});else for(const oe of Ve.output())oe.type==="feature-flag"&&ut.registerFlag({name:oe.name,pluginId:Ve.getId()});for(const Ve of Ie)ut.registerFlag({name:Ve,pluginId:""})}},[Fe,Ee,Ie]),"node"in Ee)return Ee.node;const{ThemeProvider:St=Ft}=this.components;return r.createElement(f.ApiProvider,{apis:this.getApiHolder()},r.createElement(wt,{appContext:C},r.createElement(St,null,r.createElement(Qe,{routePaths:Ae,routeParents:ye,routeObjects:Be,routeBindings:ve,basePath:st(Ee.api)},Y))))}}getRouter(){const{Router:C,SignInPage:B}=this.components,H=({component:le,children:Ae})=>{const[ye,Be]=(0,r.useState)();return ye?(this.appIdentityProxy.setTarget(ye),Ae):r.createElement(le,{onSignInSuccess:Be})};return({children:le})=>{const Ae=(0,E.useApi)(E.configApiRef),ye=`${st(Ae)}/*`;return B?r.createElement(C,null,r.createElement(gt,{tree:le}),r.createElement(H,{component:B},r.createElement(t.Z5,null,r.createElement(t.AW,{path:ye,element:r.createElement(r.Fragment,null,le)})))):(this.appIdentityProxy.setTarget({getUserId:()=>"guest",getIdToken:async()=>{},getProfile:()=>({email:"guest@example.com",displayName:"Guest"}),getProfileInfo:async()=>({email:"guest@example.com",displayName:"Guest"}),getBackstageIdentity:async()=>({type:"user",userEntityRef:"user:default/guest",ownershipEntityRefs:["user:default/guest"]}),getCredentials:async()=>({}),signOut:async()=>{}}),r.createElement(C,null,r.createElement(gt,{tree:le}),r.createElement(t.Z5,null,r.createElement(t.AW,{path:ye,element:r.createElement(r.Fragment,null,le)}))))}}getApiHolder(){if(this.apiHolder){for(const C of this.plugins)for(const B of C.getApis())this.apiFactoryRegistry.get(B.api)||this.apiFactoryRegistry.register("default",B);return s.MM.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder}this.apiFactoryRegistry.register("static",{api:E.appThemeApiRef,deps:{},factory:()=>f.AppThemeSelector.createWithStorage(this.themes)}),this.apiFactoryRegistry.register("static",{api:E.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:E.identityApiRef,deps:{},factory:()=>this.appIdentityProxy}),this.apiFactoryRegistry.register("default",{api:E.featureFlagsApiRef,deps:{},factory:()=>new f.LocalStorageFeatureFlags});for(const C of this.defaultApis)this.apiFactoryRegistry.register("default",C);for(const C of this.plugins)for(const B of C.getApis())if(!this.apiFactoryRegistry.register("default",B))throw new Error(`Plugin ${C.getId()} tried to register duplicate or forbidden API factory for ${B.api}`);for(const C of this.apis)if(!this.apiFactoryRegistry.register("app",C))throw new Error(`Duplicate or forbidden API factory for ${C.api} in app`);return s.MM.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder=new s.MM(this.apiFactoryRegistry),this.apiHolder}verifyPlugins(C){const B=new Set;for(const H of C){const Y=H.getId();if(B.has(Y))throw new Error(`Duplicate plugin found '${Y}'`);B.add(Y)}}}function te(T){return new ae(T)}},44056:function(J,o,e){"use strict";e.d(o,{b:function(){return r.b}});var r=e(69342),t=e(73495),c=e.n(t);e.o(t,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return t.AtlassianAuth}}),e.o(t,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return t.Auth0Auth}}),e.o(t,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return t.BitbucketAuth}}),e.o(t,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return t.FlatRoutes}}),e.o(t,"GithubAuth")&&e.d(o,{GithubAuth:function(){return t.GithubAuth}}),e.o(t,"GitlabAuth")&&e.d(o,{GitlabAuth:function(){return t.GitlabAuth}}),e.o(t,"GoogleAuth")&&e.d(o,{GoogleAuth:function(){return t.GoogleAuth}}),e.o(t,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return t.MicrosoftAuth}}),e.o(t,"OAuth2")&&e.d(o,{OAuth2:function(){return t.OAuth2}}),e.o(t,"OktaAuth")&&e.d(o,{OktaAuth:function(){return t.OktaAuth}}),e.o(t,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return t.OneLoginAuth}}),e.o(t,"SamlAuth")&&e.d(o,{SamlAuth:function(){return t.SamlAuth}})},73495:function(){},49208:function(J,o,e){"use strict";e.d(o,{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 t.b},FlatRoutes:function(){return c.w}});var r=e(56494);e.o(r,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return r.AtlassianAuth}}),e.o(r,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return r.Auth0Auth}}),e.o(r,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return r.BitbucketAuth}}),e.o(r,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return r.FlatRoutes}}),e.o(r,"GithubAuth")&&e.d(o,{GithubAuth:function(){return r.GithubAuth}}),e.o(r,"GitlabAuth")&&e.d(o,{GitlabAuth:function(){return r.GitlabAuth}}),e.o(r,"GoogleAuth")&&e.d(o,{GoogleAuth:function(){return r.GoogleAuth}}),e.o(r,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return r.MicrosoftAuth}}),e.o(r,"OAuth2")&&e.d(o,{OAuth2:function(){return r.OAuth2}}),e.o(r,"OktaAuth")&&e.d(o,{OktaAuth:function(){return r.OktaAuth}}),e.o(r,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return r.OneLoginAuth}}),e.o(r,"SamlAuth")&&e.d(o,{SamlAuth:function(){return r.SamlAuth}}),e.o(r,"createSpecializedApp")&&e.d(o,{createSpecializedApp:function(){return r.createSpecializedApp}});var t=e(44056);e.o(t,"AtlassianAuth")&&e.d(o,{AtlassianAuth:function(){return t.AtlassianAuth}}),e.o(t,"Auth0Auth")&&e.d(o,{Auth0Auth:function(){return t.Auth0Auth}}),e.o(t,"BitbucketAuth")&&e.d(o,{BitbucketAuth:function(){return t.BitbucketAuth}}),e.o(t,"FlatRoutes")&&e.d(o,{FlatRoutes:function(){return t.FlatRoutes}}),e.o(t,"GithubAuth")&&e.d(o,{GithubAuth:function(){return t.GithubAuth}}),e.o(t,"GitlabAuth")&&e.d(o,{GitlabAuth:function(){return t.GitlabAuth}}),e.o(t,"GoogleAuth")&&e.d(o,{GoogleAuth:function(){return t.GoogleAuth}}),e.o(t,"MicrosoftAuth")&&e.d(o,{MicrosoftAuth:function(){return t.MicrosoftAuth}}),e.o(t,"OAuth2")&&e.d(o,{OAuth2:function(){return t.OAuth2}}),e.o(t,"OktaAuth")&&e.d(o,{OktaAuth:function(){return t.OktaAuth}}),e.o(t,"OneLoginAuth")&&e.d(o,{OneLoginAuth:function(){return t.OneLoginAuth}}),e.o(t,"SamlAuth")&&e.d(o,{SamlAuth:function(){return t.SamlAuth}});var c=e(63938)},55274:function(J,o,e){"use strict";e.d(o,{Hc:function(){return h},q2:function(){return s},k1:function(){return p}});function r(m,l){for(const y of l)if(!m.has(y))return!1;return!0}class t{constructor(l){this.options=l}sessionExistsAndHasScope(l,y){if(!l)return!1;if(!y||this.options.sessionScopes===void 0)return!0;const i=this.options.sessionScopes(l);return r(i,y)}getExtendedScope(l,y){const i=new Set(this.options.defaultScopes);if(l&&this.options.sessionScopes!==void 0){const S=this.options.sessionScopes(l);for(const D of S)i.add(D)}if(y)for(const S of y)i.add(S);return i}}var c=e(98005),f=e(36964);class E{constructor(){q(this,"subject",new c.X(f.SessionState.SignedOut));q(this,"signedIn",!1)}setIsSignedIn(l){this.signedIn!==l&&(this.signedIn=l,this.subject.next(this.signedIn?f.SessionState.SignedIn:f.SessionState.SignedOut))}sessionState$(){return this.subject}}class s{constructor(l){q(this,"connector");q(this,"helper");q(this,"sessionScopesFunc");q(this,"sessionShouldRefreshFunc");q(this,"stateTracker",new E);q(this,"refreshPromise");q(this,"currentSession");const{connector:y,defaultScopes:i=new Set,sessionScopes:S,sessionShouldRefresh:D}=l;this.connector=y,this.sessionScopesFunc=S,this.sessionShouldRefreshFunc=D,this.helper=new t({sessionScopes:S,defaultScopes:i})}async getSession(l){if(this.helper.sessionExistsAndHasScope(this.currentSession,l.scopes)){if(!this.sessionShouldRefreshFunc(this.currentSession))return this.currentSession;try{const i=await this.collapsedSessionRefresh(),S=this.sessionScopesFunc(this.currentSession),D=this.sessionScopesFunc(i);return r(D,S)&&(this.currentSession=i),i}catch(i){if(l.optional)return;throw i}}if(!this.currentSession&&!l.instantPopup)try{const y=await this.collapsedSessionRefresh();return this.currentSession=y,this.getSession(l)}catch{}if(!l.optional)return this.currentSession=await this.connector.createSession({...l,scopes:this.helper.getExtendedScope(this.currentSession,l.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 l=await this.refreshPromise;return this.stateTracker.setIsSignedIn(!0),l}finally{delete this.refreshPromise}}}class p{constructor(l){q(this,"connector");q(this,"helper");q(this,"stateTracker",new E);q(this,"currentSession");const{connector:y,defaultScopes:i=new Set,sessionScopes:S}=l;this.connector=y,this.helper=new t({sessionScopes:S,defaultScopes:i})}setSession(l){this.currentSession=l,this.stateTracker.setIsSignedIn(Boolean(l))}async getSession(l){if(this.helper.sessionExistsAndHasScope(this.currentSession,l.scopes))return this.currentSession;if(!l.optional)return this.currentSession=await this.connector.createSession({...l,scopes:this.helper.getExtendedScope(this.currentSession,l.scopes)}),this.stateTracker.setIsSignedIn(!0),this.currentSession}async removeSession(){this.currentSession=void 0,this.stateTracker.setIsSignedIn(!1)}sessionState$(){return this.stateTracker.sessionState$()}}class h{constructor(l){q(this,"manager");q(this,"storageKey");q(this,"schema");q(this,"sessionShouldRefreshFunc");q(this,"helper");const{manager:y,storageKey:i,schema:S,sessionScopes:D,sessionShouldRefresh:P=()=>!1}=l;this.manager=y,this.storageKey=i,this.schema=S,this.sessionShouldRefreshFunc=P,this.helper=new t({sessionScopes:D,defaultScopes:new Set})}setSession(l){this.manager.setSession(l),this.saveSession(l)}async getSession(l){const{scopes:y}=l,i=this.loadSession();if(this.helper.sessionExistsAndHasScope(i,y)&&!this.sessionShouldRefreshFunc(i))return this.manager.setSession(i),i;const S=await this.manager.getSession(l);return this.saveSession(S),S}async removeSession(){localStorage.removeItem(this.storageKey),await this.manager.removeSession()}sessionState$(){return this.manager.sessionState$()}loadSession(){try{const l=localStorage.getItem(this.storageKey);if(l){const y=JSON.parse(l,(i,S)=>(S==null?void 0:S.__type)==="Set"?new Set(S.__value):S);try{return this.schema.parse(y)}catch(i){throw console.log(`Failed to load session from local storage because it did not conform to the expected schema, ${i}`),i}}return}catch{localStorage.removeItem(this.storageKey);return}}saveSession(l){if(l===void 0){localStorage.removeItem(this.storageKey);return}try{this.schema.parse(l)}catch(y){console.warn(`Failed to save session to local storage because it did not conform to the expected schema, ${y}`);return}localStorage.setItem(this.storageKey,JSON.stringify(l,(y,i)=>i instanceof Set?{__type:"Set",__value:Array.from(i)}:i))}}},17678:function(J,o,e){"use strict";e.d(o,{d:function(){return r}});function r(t){return new Promise((c,f)=>{const E=t.width||500,s=t.height||700,p=window.screen.width/2-E/2,h=window.screen.height/2-s/2,m=window.open(t.url,t.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${E},height=${s},top=${h},left=${p}`);let l="";if(!m||typeof m.closed=="undefined"||m.closed){const D=new Error("Failed to open auth popup.");D.name="PopupRejectedError",f(D);return}const y=D=>{if(D.source!==m||D.origin!==t.origin)return;const{data:P}=D;if(P.type==="config_info"){l=P.targetOrigin;return}if(P.type!=="authorization_response")return;const G=P;if("error"in G){const L=new Error(G.error.message);L.name=G.error.name,f(L)}else c(G.response);S()},i=setInterval(()=>{if(m.closed){const D=`Login failed, ${l&&l!==window.location.origin?`Incorrect app origin, expected ${l}`:"popup was closed"}`,P=new Error(D);P.name="PopupClosedError",f(P),S()}},100);function S(){window.removeEventListener("message",y),clearInterval(i)}window.addEventListener("message",y)})}},98005:function(J,o,e){"use strict";e.d(o,{J:function(){return c},X:function(){return f}});var r=e(82394),t=e.n(r);class c{constructor(){q(this,"isClosed",!1);q(this,"terminatingError");q(this,"observable",new(t())(s=>this.isClosed?(this.terminatingError?s.error(this.terminatingError):s.complete(),()=>{}):(this.subscribers.add(s),()=>{this.subscribers.delete(s)})));q(this,"subscribers",new Set)}[Symbol.observable](){return this}get closed(){return this.isClosed}next(s){if(this.isClosed)throw new Error("PublishSubject is closed");this.subscribers.forEach(p=>p.next(s))}error(s){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.terminatingError=s,this.subscribers.forEach(p=>p.error(s))}complete(){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.subscribers.forEach(s=>s.complete())}subscribe(s,p,h){const m=typeof s=="function"?{next:s,error:p,complete:h}:s;return this.observable.subscribe(m)}}class f{constructor(s){q(this,"isClosed");q(this,"currentValue");q(this,"terminatingError");q(this,"observable");q(this,"subscribers",new Set);this.isClosed=!1,this.currentValue=s,this.terminatingError=void 0,this.observable=new(t())(p=>this.isClosed?(this.terminatingError?p.error(this.terminatingError):p.complete(),()=>{}):(p.next(this.currentValue),this.subscribers.add(p),()=>{this.subscribers.delete(p)}))}[Symbol.observable](){return this}get closed(){return this.isClosed}next(s){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.currentValue=s,this.subscribers.forEach(p=>p.next(s))}error(s){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.terminatingError=s,this.subscribers.forEach(p=>p.error(s))}complete(){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.subscribers.forEach(s=>s.complete())}subscribe(s,p,h){const m=typeof s=="function"?{next:s,error:p,complete:h}:s;return this.observable.subscribe(m)}}},88934:function(J,o,e){"use strict";e.d(o,{L:function(){return c}});var r=e(36964),t=e(2784);const c=f=>{const{children:E}=f,s=(0,r.useApi)(r.featureFlagsApiRef),p="with"in f?s.isActive(f.with):!s.isActive(f.without);return t.createElement(t.Fragment,null,p?E:null)};(0,r.attachComponentData)(c,"core.featureFlagged",!0)},63938:function(J,o,e){"use strict";e.d(o,{w:function(){return f}});var r=e(2784),t=e(10289),c=e(36964);const f=s=>{const p=(0,c.useApp)(),{NotFoundErrorPage:h}=p.getComponents(),m=(0,c.useElementFilter)(s.children,l=>l.getElements().flatMap(y=>{var S;let i=y.props.path;return i===""?[]:(i=(S=i==null?void 0:i.replace(/\/\*$/,""))!=null?S:"/",[{path:i,element:y,children:y.props.children?[{path:i==="/"?"/":"/*",element:y.props.children}]:void 0}])}).sort((y,i)=>i.path.localeCompare(y.path)).map(y=>(y.path=y.path==="/"?"/":`${y.path}/*`,y)));return m.push({element:r.createElement(h,null),path:"/*"}),(0,t.V$)(m)};var E=e(88934)},9118:function(J,o,e){"use strict";e.d(o,{Button:function(){return L},CodeSnippet:function(){return ze},Content:function(){return Ja},ContentHeader:function(){return ti},CreateButton:function(){return it},DependencyGraph:function(){return ve},DependencyGraphTypes:function(){return r},EmptyState:function(){return x},ErrorPage:function(){return si},ErrorPanel:function(){return jt},Header:function(){return ro},HeaderIconLinkRow:function(){return Cr},HeaderLabel:function(){return pi},HeaderTabs:function(){return Qa},InfoCard:function(){return He},ItemCardGrid:function(){return Ci},ItemCardHeader:function(){return vi},Link:function(){return P},LogViewer:function(){return Lr},MissingAnnotationEmptyState:function(){return Oe},OverflowTooltip:function(){return Mr},Page:function(){return oo},PageWithHeader:function(){return Ii},Progress:function(){return gr},ResponseErrorPanel:function(){return Wt},RoutedTabs:function(){return Xa},Select:function(){return $r},Sidebar:function(){return Xo},SidebarContext:function(){return yr},SidebarDivider:function(){return ds},SidebarItem:function(){return Ka},SidebarPage:function(){return Zo},SidebarPinStateContext:function(){return nr},SubvalueCell:function(){return Ts},SupportButton:function(){return No},Table:function(){return Gs},WarningPanel:function(){return Sn},sidebarConfig:function(){return Qt},useContent:function(){return ma},useQueryParamState:function(){return Oo}});var r={};e.r(r),e.d(r,{Nm:function(){return et},ht:function(){return ot},LJ:function(){return rt}});var t=e(2784),c=e(36964),f=e(19928);function E(n){const[a,u]=useState([]),d=useApi(alertApiRef);if(useEffect(()=>{const O=d.alert$().subscribe(U=>u(j=>j.concat(U)));return()=>{O.unsubscribe()}},[d]),a.length===0)return null;const[g]=a,R=()=>{u(O=>O.filter(U=>U!==g))};return React.createElement(Snackbar,{open:!0,anchorOrigin:{vertical:"top",horizontal:"center"}},React.createElement(Alert,{action:React.createElement(IconButton,{color:"inherit",size:"small",onClick:R,"data-testid":"error-button-close"},React.createElement(CloseIcon,null)),severity:g.severity},React.createElement("span",null,g.message.toString(),a.length>1&&React.createElement("em",null,` (${a.length-1} older ${pluralize("message",a.length-1)})`))))}var s=e(79692),p=e(12420);const h=(0,s.Z)(n=>(0,p.Z)({avatar:{width:"4rem",height:"4rem",color:"#fff",fontWeight:n.typography.fontWeightBold,letterSpacing:"1px",textTransform:"uppercase"}}),{name:"BackstageAvatar"});function m(n){const{displayName:a,picture:u,customStyles:d}=n,g=h();return React.createElement(MaterialAvatar,{alt:a,src:u,className:g.avatar,style:{backgroundColor:stringToColor(a||u||""),...d}},a&&extractInitials(a))}var l=e(77277),y=e(86689),i=e(62833);const S=n=>/^([a-z+.-]+):/.test(n),D=n=>{var a;return n instanceof Array?n.map(D).join(" ").trim():typeof n=="object"&&n?D((a=n==null?void 0:n.props)==null?void 0:a.children):["string","number"].includes(typeof n)?String(n):""},P=t.forwardRef(({onClick:n,noTrack:a,...u},d)=>{const g=(0,c.useAnalytics)(),R=String(u.to),O=D(u.children)||R,U=S(R),j=U&&!!/^https?:/.exec(R),W=re=>{n==null||n(re),a||g.captureEvent("click",O,{attributes:{to:R}})};return U?t.createElement(y.Z,{ref:d,href:R,onClick:W,...j?{target:"_blank",rel:"noopener"}:{},...u}):t.createElement(y.Z,{ref:d,component:i.rU,onClick:W,...u})}),G=t.forwardRef((n,a)=>t.createElement(P,{ref:a,...n,color:"initial"})),L=t.forwardRef((n,a)=>t.createElement(l.Z,{ref:a,component:G,...n}));var I=e(60364),b=e(61837),F=e(80030),K=e(19353),ee=e(95074);function ie(n){const{text:a,tooltipDelay:u=1e3,tooltipText:d="Text copied to clipboard"}=n,g=(0,c.useApi)(c.errorApiRef),[R,O]=(0,t.useState)(!1),[{error:U},j]=(0,ee.Z)();(0,t.useEffect)(()=>{U&&g.post(U)},[U,g]);const W=re=>{re.stopPropagation(),O(!0),j(a)};return t.createElement(t.Fragment,null,t.createElement(F.ZP,{id:"copy-test-tooltip",title:d,placement:"top",leaveDelay:u,onClose:()=>O(!1),open:R},t.createElement(b.Z,{onClick:W},t.createElement(K.Z,null))))}var pe=e(70813),Le=e(26639),me=e(39595);function ze(n){const{text:a,language:u,showLineNumbers:d=!1,highlightedNumbers:g,customStyle:R,showCopyCodeButton:O=!1}=n,U=(0,I.Z)(),j=U.palette.type==="dark"?Le.Z:me.Z,W=U.palette.type==="dark"?"#256bf3":"#e6ffed";return t.createElement("div",{style:{position:"relative"}},t.createElement(pe.Z,{customStyle:R,language:u,style:j,showLineNumbers:d,wrapLines:!0,lineNumberStyle:{color:U.palette.textVerySubtle},lineProps:re=>(g==null?void 0:g.includes(re))?{style:{backgroundColor:W}}:{}},a),O&&t.createElement("div",{style:{position:"absolute",top:0,right:0}},t.createElement(ie,{text:a})))}var Te=e(41156),Qe=e(88188);function it(n){const{title:a,to:u}=n,d=(0,Te.Z)(g=>g.breakpoints.down("xs"));return u?d?t.createElement(b.Z,{component:i.rU,color:"primary",title:a,size:"small",to:u},t.createElement(Qe.Z,null)):t.createElement(l.Z,{component:i.rU,variant:"contained",color:"primary",to:u},a):null}var et;(function(n){const a="TB";n.TOP_BOTTOM=a;const u="BT";n.BOTTOM_TOP=u;const d="LR";n.LEFT_RIGHT=d;const g="RL";n.RIGHT_LEFT=g})(et||(et={}));var gt;(function(n){const a="UL";n.UP_LEFT=a;const u="UR";n.UP_RIGHT=u;const d="DL";n.DOWN_LEFT=d;const g="DR";n.DOWN_RIGHT=g})(gt||(gt={}));var rt;(function(n){const a="network-simplex";n.NETWORK_SIMPLEX=a;const u="tight-tree";n.TIGHT_TREE=u;const d="longest-path";n.LONGEST_PATH=d})(rt||(rt={}));var ot;(function(n){const a="l";n.LEFT=a;const u="r";n.RIGHT=u;const d="c";n.CENTER=d})(ot||(ot={}));var Rt=e(13387),wt=e(11105),Lt=e(97963),pt=e(46506),at=e.n(pt),Tt=e(54073),Pt=e.n(Tt),Ot=e(10368);const Ft=(0,s.Z)(n=>({node:{fill:n.palette.primary.light,stroke:n.palette.primary.light},text:{fill:n.palette.primary.contrastText}}),{name:"BackstageDependencyGraphDefaultNode"});function mt({node:{id:n}}){const a=Ft(),[u,d]=t.useState(0),[g,R]=t.useState(0),O=t.useRef(null);t.useLayoutEffect(()=>{if(O.current){let{height:re,width:ce}=O.current.getBBox();re=Math.round(re),ce=Math.round(ce),(re!==g||ce!==u)&&(d(ce),R(re))}},[u,g]);const U=10,j=u+U*2,W=g+U*2;return t.createElement("g",null,t.createElement("rect",{className:a.node,width:j,height:W,rx:10}),t.createElement("text",{ref:O,className:a.text,y:W/2,x:j/2,textAnchor:"middle",alignmentBaseline:"middle"},n))}const It="arrow-marker",Bt="node",be="edge",st="label",lt=(0,Ot.Z)(n=>({node:{transition:`${n.transitions.duration.shortest}ms`}}),{name:"BackstageDependencyGraphNode"}),Ct=n=>t.createElement(mt,{...n});function ae({render:n=Ct,setNode:a,node:u}){const{width:d,height:g,x:R=0,y:O=0}=u,U=u,j=lt(),W=t.useRef(null);return t.useLayoutEffect(()=>{if(W.current){let{height:re,width:ce}=W.current.getBBox();re=Math.round(re),ce=Math.round(ce),(re!==g||ce!==d)&&a(u.id,{...u,height:re,width:ce})}},[u,d,g,a]),t.createElement("g",{ref:W,"data-testid":Bt,className:j.node,transform:`translate(${R-d/2},${O-g/2})`},n({node:U}))}var te=e(55876),T=e(66481),C=e(19574),B=e.n(C);const H=(0,Ot.Z)(n=>({text:{fill:n.palette.textContrast}}),{name:"BackstageDependencyGraphDefaultLabel"});function Y({edge:{label:n}}){const a=H();return t.createElement("text",{className:a.text,textAnchor:"middle"},n)}const le=(0,Ot.Z)(n=>({path:{strokeWidth:2,stroke:n.palette.textSubtle,fill:"none",transition:`${n.transitions.duration.shortest}ms`},label:{transition:`${n.transitions.duration.shortest}ms`}}),{name:"BackstageDependencyGraphEdge"}),Ae=n=>t.createElement(Y,{...n}),ye=te.Z().x(n=>n.x).y(n=>n.y).curve(T.Z);function Be({render:n=Ae,setEdge:a,id:u,edge:d}){const{x:g=0,y:R=0,width:O,height:U,points:j}=d,W=d,re=le(),ce=t.useRef(null);t.useLayoutEffect(()=>{if(ce.current){let{height:Ce,width:Pe}=ce.current.getBBox();Ce=Math.round(Ce),Pe=Math.round(Pe),(Ce!==U||Pe!==O)&&a(u,{...d,height:Ce,width:Pe})}},[d,U,O,a,u]);let Se="";if(j){const Ce=j.filter(Pe=>B()(Pe.x)&&B()(Pe.y));Se=ye(Ce)||""}return t.createElement(t.Fragment,null,Se&&t.createElement("path",{"data-testid":be,className:re.path,markerEnd:`url(#${It})`,d:Se}),W.label?t.createElement("g",{ref:ce,"data-testid":st,className:re.label,transform:`translate(${g},${R})`},n({edge:W})):null)}const Ie="workspace";function ve(n){var ar,mo;const{edges:a,nodes:u,renderNode:d,direction:g=et.TOP_BOTTOM,align:R,nodeMargin:O=50,edgeMargin:U=10,rankMargin:j=50,paddingX:W=0,paddingY:re=0,acyclicer:ce,ranker:Se=rt.NETWORK_SIMPLEX,labelPosition:Ce=ot.RIGHT,labelOffset:Pe=10,edgeRanks:ht=1,edgeWeight:Xt=1,renderLabel:dn,defs:tn,zoom:ke="enabled",...Ht}=n,bt=(0,Lt.Z)(),[sn,Gn]=t.useState(100),[gn,Jr]=t.useState(100),Mt=t.useRef(new(at()).graphlib.Graph),[Un,va]=t.useState(((ar=Mt.current.graph())==null?void 0:ar.width)||0),[Kn,Ra]=t.useState(((mo=Mt.current.graph())==null?void 0:mo.height)||0),[Qr,Xr]=t.useState([]),[Sa,an]=t.useState([]),pn=Math.max(Un,sn),vn=Math.max(Kn,gn),Yn=t.useMemo(()=>Pt()(Kt=>{if(!Kt)return;const on=wt.Z(Kt),Vt=wt.Z(Kt.getElementById(Ie));function Pn(){on.call(Rt.sP().scaleExtent([1,10]).on("zoom",bn=>{bn.transform.x=Math.min(0,Math.max(bn.transform.x,pn-pn*bn.transform.k)),bn.transform.y=Math.min(0,Math.max(bn.transform.y,vn-vn*bn.transform.k)),Vt.attr("transform",bn.transform)}))}ke==="enabled"?Pn():ke==="enable-on-click"&&on.on("click",()=>Pn());const{width:In,height:kr}=Kt.getBoundingClientRect();sn!==In&&Gn(In),gn!==kr&&Jr(kr)},100),[gn,sn,pn,vn,ke]),qt=t.useCallback(()=>{const Kt=Mt.current.nodes(),on=Mt.current.edges();Kt.forEach(Vt=>{u.some(In=>In.id===Vt)||Mt.current.removeNode(Vt)}),on.forEach(Vt=>{a.some(In=>In.from===Vt.v&&In.to===Vt.w)||Mt.current.removeEdge(Vt.v,Vt.w)}),u.forEach(Vt=>{const Pn=Mt.current.nodes().find(In=>Vt.id===In);if(Pn&&Mt.current.node(Pn)){const{width:In,height:kr,x:bn,y:Vi}=Mt.current.node(Pn);Mt.current.setNode(Pn,{...Vt,width:In,height:kr,x:bn,y:Vi})}else Mt.current.setNode(Vt.id,{...Vt,width:0,height:0})}),a.forEach(Vt=>{Mt.current.setEdge(Vt.from,Vt.to,{...Vt,label:Vt.label,width:0,height:0,labelpos:Ce,labeloffset:Pe,weight:Xt,minlen:ht})})},[a,u,Ce,Pe,Xt,ht]),_t=t.useMemo(()=>Pt()(()=>{at().layout(Mt.current);const{height:Kt,width:on}=Mt.current.graph(),Vt=Math.max(0,Kt||0),Pn=Math.max(0,on||0);va(Pn),Ra(Vt),Xr(Mt.current.nodes()),an(Mt.current.edges())},250,{leading:!0}),[]);t.useEffect(()=>(Mt.current.setGraph({rankdir:g,align:R,nodesep:O,edgesep:U,ranksep:j,marginx:W,marginy:re,acyclicer:ce,ranker:Se}),qt(),_t(),_t.cancel),[ce,R,g,U,W,re,O,j,Se,qt,_t]);function rr(Kt,on){return Mt.current.setNode(Kt,on),_t(),Mt.current}function Jn(Kt,on){return Mt.current.setEdge(Kt,on),_t(),Mt.current}return t.createElement("svg",{ref:Yn,...Ht,width:"100%",height:vn,viewBox:`0 0 ${pn} ${vn}`},t.createElement("defs",null,t.createElement("marker",{id:It,viewBox:"0 0 24 24",markerWidth:"14",markerHeight:"14",refX:"16",refY:"12",orient:"auto",markerUnits:"strokeWidth"},t.createElement("path",{fill:bt.palette.textSubtle,d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),tn),t.createElement("g",{id:Ie},t.createElement("svg",{width:Un,height:Kn,y:vn/2-Kn/2,x:pn/2-Un/2,viewBox:`0 0 ${Un} ${Kn}`},Sa.map(Kt=>{const on=Mt.current.edge(Kt);return on?t.createElement(Be,{key:`${Kt.v}-${Kt.w}`,id:Kt,setEdge:Jn,render:dn,edge:on}):null}),Qr.map(Kt=>{const on=Mt.current.node(Kt);return on?t.createElement(ae,{key:Kt,setNode:rr,render:d,node:on}):null}))))}var Ee=e(72779),Fe=e.n(Ee);const St=(0,s.Z)(n=>{var a;return{root:{padding:n.spacing(0),marginBottom:n.spacing(0),marginTop:n.spacing(0),display:"flex",flexFlow:"row nowrap"},topPosition:{position:"relative",marginBottom:n.spacing(6),marginTop:-n.spacing(3),zIndex:"unset"},icon:{fontSize:20},content:{width:"100%",maxWidth:"inherit",flexWrap:"nowrap"},message:{display:"flex",alignItems:"center",color:n.palette.banner.text,"& a":{color:n.palette.banner.link}},info:{backgroundColor:n.palette.banner.info},error:{backgroundColor:n.palette.banner.error},warning:{backgroundColor:(a=n.palette.banner.warning)!=null?a:n.palette.banner.error}}},{name:"BackstageDismissableBanner"}),ut=n=>{var Ce;const{variant:a,message:u,id:d,fixed:g=!1}=n,R=St(),U=useApi(storageApiRef).forBucket("notifications"),j=(Ce=U.get("dismissedBanners"))!=null?Ce:[],[W,re]=useState(new Set(j)),ce=useObservable(U.observe$("dismissedBanners"));useEffect(()=>{var Pe;if(ce==null?void 0:ce.newValue){const ht=(Pe=ce==null?void 0:ce.newValue)!=null?Pe:[];re(new Set(ht))}},[ce==null?void 0:ce.newValue]);const Se=()=>{U.set("dismissedBanners",[...W,d])};return React.createElement(Snackbar,{anchorOrigin:g?{vertical:"bottom",horizontal:"center"}:{vertical:"top",horizontal:"center"},open:!W.has(d),classes:{root:classNames(R.root,!g&&R.topPosition)}},React.createElement(SnackbarContent,{classes:{root:classNames(R.content,R[a]),message:R.message},message:u,action:[React.createElement(IconButton,{key:"dismiss",title:"Permanently dismiss this message",color:"inherit",onClick:Se},React.createElement(Close,{className:R.icon}))]}))};var Ve=e(60905),oe=e(90436),Ne=e(86284),tt=e(96465),Ue=e(19133),Ze=e(3871);const Je=(0,s.Z)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),V=({missing:n})=>{const a=Je();switch(n){case"field":return t.createElement("img",{src:Ne,className:a.generalImg,alt:"annotation is missing"});case"info":return t.createElement("img",{src:tt,alt:"no Information",className:a.generalImg});case"content":return t.createElement("img",{src:Ue,alt:"create Component",className:a.generalImg});case"data":return t.createElement("img",{src:Ze,alt:"no Build",className:a.generalImg});default:return null}},A=(0,s.Z)(n=>({root:{backgroundColor:n.palette.background.default,padding:n.spacing(2,0,0,0)},action:{marginTop:n.spacing(2)},imageContainer:{position:"relative"}}),{name:"BackstageEmptyState"});function x(n){const{title:a,description:u,missing:d,action:g}=n,R=A();return t.createElement(Ve.Z,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:R.root,spacing:2},t.createElement(Ve.Z,{item:!0,xs:12,md:6},t.createElement(Ve.Z,{container:!0,direction:"column"},t.createElement(Ve.Z,{item:!0,xs:!0},t.createElement(oe.Z,{variant:"h5"},a)),t.createElement(Ve.Z,{item:!0,xs:!0},t.createElement(oe.Z,{variant:"body1"},u)),t.createElement(Ve.Z,{item:!0,xs:!0,className:R.action},g))),t.createElement(Ve.Z,{item:!0,xs:12,md:6,className:R.imageContainer},t.createElement(V,{missing:d})))}const z=`apiVersion: backstage.io/v1alpha1
|
|
2
|
+
kind: Component
|
|
3
|
+
metadata:
|
|
4
|
+
name: example
|
|
5
|
+
description: example.com
|
|
6
|
+
annotations:
|
|
7
|
+
ANNOTATION: value
|
|
8
|
+
spec:
|
|
9
|
+
type: website
|
|
10
|
+
lifecycle: production
|
|
11
|
+
owner: user:guest`,_=(0,s.Z)(n=>({code:{borderRadius:6,margin:`${n.spacing(2)}px 0px`,background:n.palette.type==="dark"?"#444":"#fff"}}),{name:"BackstageMissingAnnotationEmptyState"});function Oe(n){const{annotation:a}=n,u=_(),d=t.createElement(t.Fragment,null,"The ",t.createElement("code",null,a)," annotation is missing. You need to add the annotation to your component if you want to enable this tool.");return t.createElement(x,{missing:"field",title:"Missing Annotation",description:d,action:t.createElement(t.Fragment,null,t.createElement(oe.Z,{variant:"body1"},"Add the annotation to your component YAML as shown in the highlighted example below:"),t.createElement("div",{className:u.code},t.createElement(ze,{text:z.replace("ANNOTATION",a),language:"yaml",showLineNumbers:!0,highlightedNumbers:[6,7],customStyle:{background:"inherit",fontSize:"115%"}})),t.createElement(l.Z,{color:"primary",component:P,to:"https://backstage.io/docs/features/software-catalog/well-known-annotations"},"Read more"))})}var ge=e(11776),Re=e(38402),De=e(49378),$e=e(41128),Et=e(27616),ne=e(8284),Z=e(70660),Q=e(91750),he=e(38016);const we=(n,a)=>(a.palette.type==="light"?$e._j:$e.$n)(a.palette[n].light,.6),je=(n,a)=>(a.palette.type==="light"?$e.$n:$e._j)(a.palette[n].light,.9),nt=(0,s.Z)(n=>({root:{marginRight:n.spacing(1),fill:({severity:a})=>we(a,n)}})),xt=({severity:n})=>{const a=nt({severity:n});return t.createElement(Q.Z,{classes:a})},en=({severity:n})=>{const a=nt({severity:n});return t.createElement(he.Z,{classes:a})},ln=(0,s.Z)(n=>({panel:{backgroundColor:({severity:a})=>je(a,n),color:({severity:a})=>we(a,n),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:a})=>we(a,n),fontWeight:"bold"},message:{width:"100%",display:"block",color:({severity:a})=>we(a,n),backgroundColor:({severity:a})=>je(a,n)},details:{width:"100%",display:"block",color:n.palette.textContrast,backgroundColor:n.palette.background.default,border:`1px solid ${n.palette.border}`,padding:n.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"}),Zn=n=>n.charAt(0).toLocaleUpperCase("en-US")+n.slice(1);function Sn(n){const{severity:a="warning",title:u,message:d,children:g,defaultExpanded:R}=n,O=ln({severity:a}),U=Zn(a)+(u?`: ${u}`:"");return t.createElement(Et.Z,{defaultExpanded:R!=null?R:!1,className:O.panel,role:"alert"},t.createElement(ne.Z,{expandIcon:t.createElement(en,{severity:a}),className:O.summary},t.createElement(xt,{severity:a}),t.createElement(oe.Z,{className:O.summaryText,variant:"subtitle1"},U)),(d||g)&&t.createElement(Z.Z,null,t.createElement(Ve.Z,{container:!0},d&&t.createElement(Ve.Z,{item:!0,xs:12},t.createElement(oe.Z,{className:O.message,variant:"body1"},d)),g&&t.createElement(Ve.Z,{item:!0,xs:12,className:O.details},g))))}const yn=(0,s.Z)(n=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:n.spacing(2)},divider:{margin:n.spacing(2)}}),{name:"BackstageErrorPanel"}),yt=({error:n,message:a,stack:u,children:d})=>{const g=yn();return t.createElement(ge.Z,{dense:!0},t.createElement(Re.Z,{alignItems:"flex-start"},t.createElement(De.Z,{classes:{secondary:g.text},primary:"Error",secondary:n}),t.createElement(ie,{text:n})),t.createElement(Re.Z,{alignItems:"flex-start"},t.createElement(De.Z,{classes:{secondary:g.text},primary:"Message",secondary:a}),t.createElement(ie,{text:a})),u&&t.createElement(Re.Z,{alignItems:"flex-start"},t.createElement(De.Z,{classes:{secondary:g.text},primary:"Stack Trace",secondary:u}),t.createElement(ie,{text:u})),d)};function jt(n){const{title:a,error:u,defaultExpanded:d,children:g}=n;return t.createElement(Sn,{severity:"error",title:a!=null?a:u.message,defaultExpanded:d},t.createElement(yt,{error:u.name,message:u.message,stack:u.stack,children:g}))}var fn=e(85256);const On=(0,s.Z)(n=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:n.spacing(2)},divider:{margin:n.spacing(2)}}),{name:"BackstageResponseErrorPanel"});function Wt(n){var Pe;const{title:a,error:u,defaultExpanded:d}=n,g=On();if(u.name!=="ResponseError")return t.createElement(jt,{title:a!=null?a:u.message,defaultExpanded:d,error:u});const{body:R,cause:O}=u,{request:U,response:j}=R,W=`${j.statusCode}: ${O.name}`,re=U&&`${U.method} ${U.url}`,ce=O.message.replace(/\\n/g,`
|
|
12
|
+
`),Se=(Pe=O.stack)==null?void 0:Pe.replace(/\\n/g,`
|
|
13
|
+
`),Ce=JSON.stringify(R,void 0,2);return t.createElement(jt,{title:a!=null?a:u.message,defaultExpanded:d,error:{name:W,message:ce,stack:Se}},re&&t.createElement(Re.Z,{alignItems:"flex-start"},t.createElement(De.Z,{classes:{secondary:g.text},primary:"Request",secondary:U?`${re}`:void 0}),t.createElement(ie,{text:re})),t.createElement(t.Fragment,null,t.createElement(fn.Z,{component:"li",className:g.divider}),t.createElement(Re.Z,{alignItems:"flex-start"},t.createElement(De.Z,{classes:{secondary:g.text},primary:"Full Error as JSON"})),t.createElement(ze,{language:"json",text:Ce,showCopyCodeButton:!0})))}var $n=e(28316);function or(n){const a=document.createElement("div");return a.setAttribute("id",n),a}function sr(n){document.body.insertBefore(n,document.body.lastElementChild.nextElementSibling)}function Ar(n){const a=useRef(null);useEffect(function(){const g=document.querySelector(`#${n}`),R=g||or(n);return g||sr(R),R.appendChild(a.current),function(){a.current.remove(),R.childNodes.length===-1&&R.remove()}},[n]);function u(){return a.current||(a.current=document.createElement("div")),a.current}return u()}var wn=null;const Fn="core.calloutSeen";function Qn(){const[n,a]=useState(()=>{const d=localStorage.getItem(Fn);return d?JSON.parse(d):{}}),u=useCallback((d,g)=>{const R=localStorage.getItem(Fn),U={...R?JSON.parse(R):{},[d]:g};a(U),localStorage.setItem(Fn,JSON.stringify(U))},[]);return{states:n,setState:u}}function ir(n){const{states:a,setState:u}=Qn(),d=useCallback(()=>{u(n,!0)},[u,n]);return{seen:a[n]===!0,markSeen:d}}function vr(n){const{seen:a,markSeen:u}=ir(n);return{show:a===!1,hide:u}}const Wn=(0,s.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"});function qr(n){const{featureId:a,title:u,description:d,children:g}=n,{show:R,hide:O}=useShowCallout(a),U=usePortal("core.callout"),j=useRef(null),[W,re]=useState(),ce=Wn(),Se=useCallback(()=>{if(j.current){const Ce=j.current.getBoundingClientRect(),Pe=Math.max(Ce.width,Ce.height),ht=800,Xt=Ce.x-(Pe-Ce.width)/2-ht,dn=Ce.y-(Pe-Ce.height)/2-ht,tn=Pe+2*ht,ke=450,Ht=Ce.x+Ce.width/2-ke,bt=Ce.y-(Pe-Ce.height)/2+Pe+20;re({dotLeft:Xt,dotTop:dn,dotSize:tn,borderWidth:ht,textTop:bt,textLeft:Ht,textWidth:ke})}},[]);return useEffect(()=>(window.addEventListener("resize",Se),window.addEventListener("scroll",Se),()=>{window.removeEventListener("resize",Se),window.removeEventListener("scroll",Se)}),[Se]),useLayoutEffect(Se,[j.current,Se]),R?React.createElement(React.Fragment,null,React.createElement("div",{className:ce.featureWrapper,ref:j},g),createPortal(React.createElement("div",{className:ce.backdrop},React.createElement(ClickAwayListener,{onClickAway:O},React.createElement(React.Fragment,null,React.createElement("div",{className:ce.dot,"data-testid":"dot",style:{left:W==null?void 0:W.dotLeft,top:W==null?void 0:W.dotTop,width:W==null?void 0:W.dotSize,height:W==null?void 0:W.dotSize,borderWidth:W==null?void 0:W.borderWidth},onClick:O,onKeyDown:O,role:"button",tabIndex:0},React.createElement("div",{className:ce.pulseCircle})),React.createElement("div",{className:ce.text,"data-testid":"text",style:{left:W==null?void 0:W.textLeft,top:W==null?void 0:W.textTop,width:W==null?void 0:W.textWidth}},React.createElement(Typography,{variant:"h2",paragraph:!0},u),React.createElement(Typography,null,d))))),U)):React.createElement(React.Fragment,null,g)}var Rr=e(35292);const lr=(0,s.Z)(n=>({link:{display:"grid",justifyItems:"center",gridGap:4,textAlign:"center"},disabled:{color:"gray",cursor:"default"},primary:{color:n.palette.primary.main},secondary:{color:n.palette.secondary.main},label:{fontSize:"0.7rem",textTransform:"uppercase",fontWeight:600,letterSpacing:1.2}}),{name:"BackstageIconLinkVertical"});function Sr({color:n="primary",disabled:a=!1,href:u="#",icon:d=t.createElement(Rr.Z,null),label:g,onClick:R,title:O}){const U=lr();return a?t.createElement(y.Z,{title:O,className:Fe()(U.link,U.disabled),underline:"none"},d,t.createElement("span",{className:U.label},g)):t.createElement(y.Z,{title:O,className:Fe()(U.link,U[n]),to:u,component:P,onClick:R},d,t.createElement("span",{className:U.label},g))}const Xn=(0,s.Z)(n=>({links:{margin:n.spacing(2,0),display:"grid",gridAutoFlow:"column",gridAutoColumns:"min-content",gridGap:n.spacing(3)}}),{name:"BackstageHeaderIconLinkRow"});function Cr(n){const{links:a}=n,u=Xn();return t.createElement("nav",{className:u.links},a.map((d,g)=>t.createElement(Sr,{key:g+1,...d})))}const kn=n=>{const a=n==="dark"?"16%":"97%";return`
|
|
14
|
+
hsl(0, 0%, ${a}) 0%,
|
|
15
|
+
hsla(0, 0%, ${a}, 0.987) 8.1%,
|
|
16
|
+
hsla(0, 0%, ${a}, 0.951) 15.5%,
|
|
17
|
+
hsla(0, 0%, ${a}, 0.896) 22.5%,
|
|
18
|
+
hsla(0, 0%, ${a}, 0.825) 29%,
|
|
19
|
+
hsla(0, 0%, ${a}, 0.741) 35.3%,
|
|
20
|
+
hsla(0, 0%, ${a}, 0.648) 41.2%,
|
|
21
|
+
hsla(0, 0%, ${a}, 0.55) 47.1%,
|
|
22
|
+
hsla(0, 0%, ${a}, 0.45) 52.9%,
|
|
23
|
+
hsla(0, 0%, ${a}, 0.352) 58.8%,
|
|
24
|
+
hsla(0, 0%, ${a}, 0.259) 64.7%,
|
|
25
|
+
hsla(0, 0%, ${a}, 0.175) 71%,
|
|
26
|
+
hsla(0, 0%, ${a}, 0.104) 77.5%,
|
|
27
|
+
hsla(0, 0%, ${a}, 0.049) 84.5%,
|
|
28
|
+
hsla(0, 0%, ${a}, 0.013) 91.9%,
|
|
29
|
+
hsla(0, 0%, ${a}, 0) 100%
|
|
30
|
+
`},qn=100,Bn=10,cr=(0,s.Z)(n=>({root:{position:"relative",display:"flex",flexFlow:"row nowrap",alignItems:"center"},container:{overflow:"auto",scrollbarWidth:0,"&::-webkit-scrollbar":{display:"none"}},fade:{position:"absolute",width:qn,height:`calc(100% + ${Bn}px)`,transition:"opacity 300ms",pointerEvents:"none"},fadeLeft:{left:-Bn,background:`linear-gradient(90deg, ${kn(n.palette.type)})`},fadeRight:{right:-Bn,background:`linear-gradient(270deg, ${kn(n.palette.type)})`},fadeHidden:{opacity:0},button:{position:"absolute"},buttonLeft:{left:-n.spacing(2)},buttonRight:{right:-n.spacing(2)}}),{name:"BackstageHorizontalScrollGrid"});function xn(n){const[[a,u],d]=React.useState([0,0]);return React.useLayoutEffect(()=>{const g=n.current;if(!g){d([0,0]);return}const R=()=>{const O=g.scrollLeft,U=g.scrollWidth-g.offsetWidth-g.scrollLeft;d([O,U])};return R(),g.addEventListener("scroll",R),window.addEventListener("resize",R),()=>{g.removeEventListener("scroll",R),window.removeEventListener("resize",R)}},[n]),[a,u]}function mn(n,a,u){const[d,g]=React.useState(0);return React.useLayoutEffect(()=>{if(d===0)return;const R=performance.now(),O=requestAnimationFrame(U=>{if(!n.current)return;const j=U-R,W=Math.abs(d)*j/a,ce=Math.max(u,W)*Math.sign(d);n.current.scrollBy({left:ce});const Se=d-ce;Math.sign(d)!==Math.sign(Se)?g(0):g(Se)});return()=>cancelAnimationFrame(O)},[n,d,a,u]),g}function nn(n){const{scrollStep:a=100,scrollSpeed:u=50,minScrollDistance:d=5,children:g,...R}=n,O=cr(n),U=React.useRef(),[j,W]=xn(U),re=mn(U,u,d),ce=Se=>{!U.current||re(Se?a:-a)};return React.createElement("div",{...R,className:O.root},React.createElement(Grid,{container:!0,direction:"row",wrap:"nowrap",className:O.container,ref:U},g),React.createElement("div",{className:classNames(O.fade,O.fadeLeft,{[O.fadeHidden]:j===0})}),React.createElement("div",{className:classNames(O.fade,O.fadeRight,{[O.fadeHidden]:W===0})}),j>0&&React.createElement(IconButton,{title:"Scroll Left",onClick:()=>ce(!1),className:classNames(O.button,O.buttonLeft,{})},React.createElement(ChevronLeftIcon,null)),W>0&&React.createElement(IconButton,{title:"Scroll Right",onClick:()=>ce(!0),className:classNames(O.button,O.buttonRight,{})},React.createElement(ChevronRightIcon,null)))}const Tr=(0,s.Z)({alpha:{color:"#ffffff",fontFamily:"serif",fontWeight:"normal",fontStyle:"italic"},beta:{color:"#4d65cc",fontFamily:"serif",fontWeight:"normal",fontStyle:"italic"}},{name:"BackstageLifecycle"});function Pr(n){const a=Tr(n),{shorthand:u,alpha:d}=n;return u?React.createElement("span",{className:a[d?"alpha":"beta"],style:{fontSize:"120%"}},d?React.createElement(React.Fragment,null,"\u03B1"):React.createElement(React.Fragment,null,"\u03B2")):React.createElement("span",{className:a[d?"alpha":"beta"]},d?"Alpha":"Beta")}const Ir=(0,t.lazy)(()=>Promise.all([e.e(1110),e.e(8718)]).then(e.bind(e,98718)).then(n=>({default:n.RealLogViewer})));function Lr(n){const{Progress:a}=(0,c.useApp)().getComponents();return t.createElement(t.Suspense,{fallback:t.createElement(a,null)},t.createElement(Ir,{...n}))}const ur=(0,s.Z)(n=>({markdown:{"& table":{borderCollapse:"collapse",border:`1px solid ${n.palette.border}`},"& th, & td":{border:`1px solid ${n.palette.border}`,padding:n.spacing(1)},"& td":{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:n.spacing(3,2,3,2.5),borderBottom:0},"& th":{backgroundColor:n.palette.background.paper},"& tr":{backgroundColor:n.palette.background.paper},"& tr:nth-child(odd)":{backgroundColor:n.palette.background.default},"& a":{color:n.palette.link},"& img":{maxWidth:"100%"}}}),{name:"BackstageMarkdownContent"}),Or={code:({inline:n,className:a,children:u,...d})=>{const g=String(u).replace(/\n+$/,""),R=/language-(\w+)/.exec(a||"");return!n&&R?t.createElement(ze,{language:R[1],text:g}):t.createElement("code",{className:a,...d},u)}};function xr(n){const{content:a,dialect:u="gfm",linkTarget:d}=n,g=ur();return React.createElement(ReactMarkdown,{remarkPlugins:u==="gfm"?[gfm]:[],className:g.markdown,children:a,components:Or,linkTarget:d})}var Dr=e(10179);const br=(0,s.Z)(n=>({root:{paddingLeft:n.spacing(3)}}),{name:"BackstageLoginRequestListItem"}),_r=({request:n,busy:a,setBusy:u})=>{const d=br(),[g,R]=useState(),O=async()=>{u(!0);try{await n.trigger()}catch(j){R(isError(j)?j.message:"An unspecified error occurred")}finally{u(!1)}},U=n.provider.icon;return React.createElement(ListItem,{button:!0,disabled:a,classes:{root:d.root}},React.createElement(ListItemAvatar,null,React.createElement(U,{fontSize:"large"})),React.createElement(ListItemText,{primary:n.provider.title,secondary:g&&React.createElement(Typography,{color:"error"},g)}),React.createElement(Button,{color:"primary",variant:"contained",onClick:O},"Log in"))};var Fr=null;const Br=(0,s.Z)(n=>({dialog:{paddingTop:n.spacing(1)},title:{minWidth:0},contentList:{padding:0},actionButtons:{padding:n.spacing(2,0)}}),{name:"OAuthRequestDialog"});function ea(n){const a=Br(),[u,d]=useState(!1),g=useApi(oauthRequestApiRef),R=useObservable(useMemo(()=>g.authRequest$(),[g]),[]),O=()=>{R.forEach(U=>U.reject())};return React.createElement(Dialog,{open:Boolean(R.length),fullWidth:!0,maxWidth:"xs",classes:{paper:a.dialog}},React.createElement(DialogTitle,{classes:{root:a.title}},"Login Required"),React.createElement(DialogContent,{dividers:!0,classes:{root:a.contentList}},React.createElement(List,null,R.map(U=>React.createElement(LoginRequestListItem,{key:U.provider.title,request:U,busy:u,setBusy:d})))),React.createElement(DialogActions,{classes:{root:a.actionButtons}},React.createElement(Button,{onClick:O},"Reject All")))}var Mn=e(15277),dr=e.n(Mn),fr=e(90736);const mr=(0,s.Z)({container:{overflow:"visible !important"}},{name:"BackstageOverflowTooltip"});function Mr(n){var O;const[a,u]=(0,t.useState)(!1),d=(0,fr.default)(),g=mr(),R=U=>{d()&&u(U)};return t.createElement(F.ZP,{title:(O=n.title)!=null?O:n.text||"",placement:n.placement,disableHoverListener:!a},t.createElement(dr(),{text:n.text,line:n.line,onToggled:R,containerClassName:g.container}))}var hr=e(67358);function gr(n){const[a,u]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{const d=setTimeout(()=>u(!0),250);return()=>clearTimeout(d)},[]),a?t.createElement(hr.Z,{...n,"data-testid":"progress"}):t.createElement("div",{style:{display:"none"}})}var Nr=e(94339),zn=e(14503),w=e(24579),N=e(32552),$=e(15459),X=e(95544),ue=e(27597);const se=(0,s.Z)(n=>({root:{maxWidth:"fit-content",padding:n.spacing(2,2,2,2.5)},boxTitle:{margin:0,color:n.palette.textSubtle},arrow:{color:n.palette.textSubtle}}),{name:"BackstageBottomLink"});function fe(n){const{link:a,title:u,onClick:d}=n,g=se();return t.createElement("div",null,t.createElement(fn.Z,null),t.createElement(P,{to:a,onClick:d,underline:"none"},t.createElement(X.Z,{display:"flex",alignItems:"center",className:g.root},t.createElement(X.Z,{className:g.boxTitle,fontWeight:"fontWeightBold",m:1},t.createElement(oe.Z,null,t.createElement("strong",null,u))),t.createElement(ue.Z,{className:g.arrow}))))}const Ge=n=>{const{slackChannel:a}=n;if(a){if(typeof a=="string")return t.createElement(t.Fragment,null,"Please contact ",a," for help.");if(!a.href)return t.createElement(t.Fragment,null,"Please contact ",a.name," for help.")}else return null;return t.createElement(L,{to:a.href,variant:"contained"},a.name)},We=class extends t.Component{constructor(a){super(a);this.state={error:void 0,errorInfo:void 0}}componentDidCatch(a,u){console.error(`ErrorBoundary, error: ${a}, info: ${u}`),this.setState({error:a,errorInfo:u})}render(){const{slackChannel:a,children:u}=this.props,{error:d}=this.state;return d?t.createElement(jt,{title:"Something Went Wrong",error:d},t.createElement(Ge,{slackChannel:a})):u}},Ke=(0,s.Z)(n=>({noPadding:{padding:0,"&:last-child":{paddingBottom:0}},header:{padding:n.spacing(2,2,2,2.5)},headerTitle:{fontWeight:700},headerSubheader:{paddingTop:n.spacing(1)},headerAvatar:{},headerAction:{},headerContent:{}}),{name:"BackstageInfoCard"}),ct=(0,$.Z)(n=>({root:{display:"inline-block",padding:n.spacing(8,8,0,0),float:"right"}}),{name:"BackstageInfoCardCardActionsTopRight"})(zn.Z),Ye={card:{flex:{display:"flex",flexDirection:"column"},fullHeight:{display:"flex",flexDirection:"column",height:"100%"},gridItem:{display:"flex",flexDirection:"column",height:"calc(100% - 10px)",marginBottom:"10px"}},cardContent:{fullHeight:{flex:1},gridItem:{flex:1}}};function He(n){const{title:a,subheader:u,divider:d=!0,deepLink:g,slackChannel:R,errorBoundaryProps:O,variant:U,children:j,headerStyle:W,headerProps:re,action:ce,actionsClassName:Se,actions:Ce,cardClassName:Pe,actionsTopRight:ht,className:Xt,noPadding:dn,titleTypographyProps:tn}=n,ke=Ke();let Ht={},bt={};U&&U.split(/[\s]+/g).forEach(gn=>{Ht={...Ht,...Ye.card[gn]},bt={...bt,...Ye.cardContent[gn]}});const sn=O||(R?{slackChannel:R}:{});return t.createElement(Nr.Z,{style:Ht,className:Xt},t.createElement(We,{...sn},a&&t.createElement(N.Z,{classes:{root:ke.header,title:ke.headerTitle,subheader:ke.headerSubheader,avatar:ke.headerAvatar,action:ke.headerAction,content:ke.headerContent},title:a,subheader:u,action:ce,style:{...W},titleTypographyProps:tn,...re}),ht&&t.createElement(ct,null,ht),d&&t.createElement(fn.Z,null),t.createElement(w.Z,{className:Fe()(Pe,{[ke.noPadding]:dn}),style:bt},j),Ce&&t.createElement(zn.Z,{className:Se},Ce),g&&t.createElement(fe,{...g})))}var At=e(39307);const Dt=(0,s.Z)(n=>({root:{position:"relative",lineHeight:0},overlay:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -60%)",fontSize:45,fontWeight:"bold",color:n.palette.textContrast},circle:{width:"80%",transform:"translate(10%, 0)"},colorUnknown:{}}),{name:"BackstageGauge"}),Nt={fractional:!0,inverse:!1,unit:"%",max:100},Ut=({palette:n,value:a,inverse:u,max:d})=>{if(isNaN(a))return"#ddd";const g=d||Nt.max,R=u?g-a:a;return R<g/3?n.status.error:R<g*(2/3)?n.status.warning:n.status.ok};function zt(n){const{getColor:a=Ut}=n,u=Dt(n),{palette:d}=useTheme(),{value:g,fractional:R,inverse:O,unit:U,max:j}={...Nt,...n},W=R?Math.round(g*j):g,re=j!==100?Math.round(g):W;return React.createElement("div",{className:u.root},React.createElement(Circle,{strokeLinecap:"butt",percent:W,strokeWidth:12,trailWidth:12,strokeColor:a({palette:d,value:re,inverse:O,max:j}),className:u.circle}),React.createElement("div",{className:u.overlay},isNaN(g)?"N/A":`${re}${U}`))}const kt=(0,s.Z)({root:{height:"100%",width:250}},{name:"BackstageGaugeCard"});function rn(n){const a=kt(n),{title:u,subheader:d,progress:g,inverse:R,deepLink:O,variant:U,getColor:j}=n,W={inverse:R,getColor:j,value:g};return React.createElement("div",{className:a.root},React.createElement(InfoCard,{title:u,subheader:d,deepLink:O,variant:U},React.createElement(Gauge,{...W})))}function Zt(n){const{value:a,getColor:u=getProgressColor}=n,{palette:d}=useTheme();if(isNaN(a))return null;let g=Math.round(a*100*100)/100;g>100&&(g=100);const R=u({palette:d,value:g,inverse:!1,max:100});return React.createElement(Tooltip,{title:`${g}%`},React.createElement("span",null,React.createElement(Line,{percent:g,strokeWidth:4,trailWidth:4,strokeColor:R})))}var Cn=e(21324),Gt=e(7089),Yt=e(1292),Dn=e(42494),_n=e(74603),ta=e(12231),na=e(73698),Ur=e(72379);const Ca=(0,s.Z)(()=>(0,p.Z)({icon:{position:"absolute",right:"4px",pointerEvents:"none"}}),{name:"BackstageClosedDropdown"});var ra=()=>{const n=Ca();return t.createElement(Ur.Z,{className:n.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M7.5 8L6 9.5L12.0703 15.5703L18.1406 9.5L16.6406 8L12.0703 12.5703L7.5 8Z",fill:"#616161"}))};const aa=(0,s.Z)(()=>(0,p.Z)({icon:{position:"absolute",right:"4px",pointerEvents:"none"}}),{name:"BackstageOpenedDropdown"});var oa=()=>{const n=aa();return t.createElement(Ur.Z,{className:n.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M16.5 16L18 14.5L11.9297 8.42969L5.85938 14.5L7.35938 16L11.9297 11.4297L16.5 16Z",fill:"#616161"}))};const sa=(0,$.Z)(n=>(0,p.Z)({root:{"label + &":{marginTop:n.spacing(3)}},input:{borderRadius:4,position:"relative",backgroundColor:n.palette.background.paper,border:"1px solid #ced4da",fontSize:16,padding:"10px 26px 10px 12px",transition:n.transitions.create(["border-color","box-shadow"]),fontFamily:"Helvetica Neue","&:focus":{background:n.palette.background.paper,borderRadius:4}}}),{name:"BackstageSelectInputBase"})(_n.Z),Zr=(0,s.Z)(n=>(0,p.Z)({formControl:{margin:`${n.spacing(1)} 0px`,maxWidth:300},label:{transform:"initial",fontWeight:"bold",fontSize:14,fontFamily:n.typography.fontFamily,color:n.palette.text.primary,"&.Mui-focused":{color:n.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function $r(n){const{multiple:a,items:u,label:d,placeholder:g,selected:R,onChange:O,triggerReset:U,native:j=!1,disabled:W=!1}=n,re=Zr(),[ce,Se]=(0,t.useState)(R||(a?[]:"")),[Ce,Pe]=(0,t.useState)(!1);(0,t.useEffect)(()=>{Se(a?[]:"")},[U,a]),(0,t.useEffect)(()=>{R!==void 0&&Se(R)},[R]);const ht=ke=>{Se(ke.target.value),O(ke.target.value)},Xt=ke=>{if(W){ke.preventDefault();return}Pe(Ht=>a&&!(ke.target instanceof HTMLElement)?!0:!Ht)},dn=()=>{Pe(!1)},tn=ke=>()=>{const Ht=ce.filter(bt=>bt!==ke);Se(Ht),O(Ht)};return t.createElement("div",{className:re.root},t.createElement(oe.Z,{variant:"button"},d),t.createElement(Yt.Z,{onClickAway:dn},t.createElement(Dn.Z,{className:re.formControl},t.createElement(na.Z,{value:ce,native:j,disabled:W,"data-testid":"select",displayEmpty:!0,multiple:a,onChange:ht,onClick:Xt,open:Ce,input:t.createElement(sa,null),renderValue:ke=>{var Ht;return a&&ce.length!==0?t.createElement("div",{className:re.chips},ke.map(bt=>{var sn,Gn;return t.createElement(Gt.Z,{key:(sn=u.find(gn=>gn.value===bt))==null?void 0:sn.value,label:(Gn=u.find(gn=>gn.value===bt))==null?void 0:Gn.label,clickable:!0,onDelete:tn(bt),className:re.chip})})):t.createElement(oe.Z,null,ce.length===0?g||"":(Ht=u.find(bt=>bt.value===ke))==null?void 0:Ht.label)},IconComponent:()=>Ce?t.createElement(oa,null):t.createElement(ra,null),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null}},g&&!a&&t.createElement(ta.Z,{value:[]},g),j?u&&u.map(ke=>t.createElement("option",{value:ke.value,key:ke.value},ke.label)):u&&u.map(ke=>t.createElement(ta.Z,{key:ke.value,value:ke.value},a&&t.createElement(Cn.Z,{color:"primary",checked:ce.includes(ke.value)||!1,className:re.checkbox}),ke.label))))))}const pr=()=>{},ia=t.createContext({stepperLength:0,stepIndex:0,setStepIndex:pr,stepHistory:[],setStepHistory:pr,onStepChange:pr});function go(n){const{children:a,elevated:u,onStepChange:d,activeStep:g=0}=n,[R,O]=useState(g),[U,j]=useState([0]);useEffect(()=>{O(g)},[g]);const W=[];let re;return Children.forEach(a,ce=>{isValidElement(ce)&&(ce.props.end?re=ce:W.push(ce))}),React.createElement(React.Fragment,null,React.createElement(ia.Provider,{value:{stepIndex:R,setStepIndex:O,stepHistory:U,setStepHistory:j,onStepChange:d,stepperLength:Children.count(a)}},React.createElement(MuiStepper,{activeStep:R,orientation:"vertical",elevation:u?2:0},W)),R>=Children.count(a)-1&&re)}const la=(0,s.Z)(n=>({root:{marginTop:n.spacing(3),"& button":{marginRight:n.spacing(1)}}}),{name:"BackstageSimpleStepperFooter"}),v=({text:n,handleClick:a})=>React.createElement(Button,{onClick:a},n||"Reset"),M=({text:n,handleClick:a,disabled:u,last:d,stepIndex:g})=>React.createElement(Button,{variant:"contained",color:"primary",disabled:u,"data-testid":`nextButton-${g}`,onClick:a},n||(d?"Finish":"Next")),k=({text:n,handleClick:a,disabled:u,stepIndex:d})=>React.createElement(Button,{onClick:a,"data-testid":`backButton-${d}`,disabled:u},n||"Back"),de=({actions:n={},children:a})=>{const u=la(),{stepperLength:d,stepIndex:g,setStepIndex:R,stepHistory:O,setStepHistory:U,onStepChange:j}=useContext(VerticalStepperContext),W=(Ce,Pe)=>{Pe&&Pe(),j&&j(g,Ce),R(Ce)},re=()=>{const Ce=n.nextStep?n.nextStep(g,d-1):g+1;W(Ce,n.onNext),U([...O,Ce])},ce=()=>{O.pop(),W(O[O.length-1],n.onBack),U([...O])},Se=()=>{W(0,n.onRestart),U([0])};return React.createElement("div",{className:u.root},[void 0,!0].includes(n.showBack)&&g!==0&&React.createElement(k,{text:n.backText,handleClick:ce,disabled:g===0,stepIndex:g}),[void 0,!0].includes(n.showNext)&&React.createElement(M,{text:n.nextText,handleClick:re,disabled:!!d&&g>=d||!!n.canNext&&!n.canNext(),stepIndex:g}),n.showRestart&&g!==0&&React.createElement(v,{text:n.restartText,handleClick:Se,stepIndex:g}),a)},Me=(0,s.Z)(n=>({end:{padding:n.spacing(3)}}),{name:"SimpleStepperStep"});function _e(n){const{title:a,children:u,end:d,actions:g,...R}=n,O=Me();return d?React.createElement("div",{className:O.end},React.createElement(Typography,{variant:"h6"},a),u,React.createElement(SimpleStepperFooter,{actions:{...g||{},showNext:!1}})):React.createElement(MuiStep,{...R},React.createElement(StepLabel,null,React.createElement(Typography,{variant:"h6"},a)),React.createElement(StepContent,null,u,React.createElement(SimpleStepperFooter,{actions:g})))}const xe=(0,s.Z)(n=>({status:{fontWeight:500,"&::before":{width:"0.7em",height:"0.7em",display:"inline-block",marginRight:8,borderRadius:"50%",content:'""'}},ok:{"&::before":{backgroundColor:n.palette.status.ok}},warning:{"&::before":{backgroundColor:n.palette.status.warning}},error:{"&::before":{backgroundColor:n.palette.status.error}},pending:{"&::before":{backgroundColor:n.palette.status.pending}},running:{"&::before":{backgroundColor:n.palette.status.running}},aborted:{"&::before":{backgroundColor:n.palette.status.aborted}}}),{name:"BackstageStatus"});function Xe(n){const a=xe(n);return React.createElement("span",{className:classNames(a.status,a.ok),"aria-label":"Status ok","aria-hidden":"true",...n})}function dt(n){const a=xe(n);return React.createElement("span",{className:classNames(a.status,a.warning),"aria-label":"Status warning","aria-hidden":"true",...n})}function ft(n){const a=xe(n);return React.createElement("span",{className:classNames(a.status,a.error),"aria-label":"Status error","aria-hidden":"true",...n})}function Jt(n){const a=xe(n);return React.createElement("span",{className:classNames(a.status,a.pending),"aria-label":"Status pending","aria-hidden":"true",...n})}function $t(n){const a=xe(n);return React.createElement("span",{className:classNames(a.status,a.running),"aria-label":"Status running","aria-hidden":"true",...n})}function vt(n){const a=xe(n);return React.createElement("span",{className:classNames(a.status,a.aborted),"aria-label":"Status aborted","aria-hidden":"true",...n})}var En=e(74600),cn=e(15584);const Nn=n=>(0,p.Z)({root:{fontWeight:"bolder",whiteSpace:"nowrap",paddingRight:n.spacing(4),border:"0",verticalAlign:"top"}}),er={root:{border:"0",verticalAlign:"top"}},Hn=n=>(0,p.Z)({root:{listStyle:"none",margin:n.spacing(0,0,-1,0),padding:"0"}}),Vn=n=>(0,p.Z)({root:{padding:n.spacing(0,0,1,0)},random:{}}),wr=(0,$.Z)(Nn,{name:"BackstageMetadataTableTitleCell"})(cn.Z),ca=(0,$.Z)(er,{name:"BackstageMetadataTableCell"})(cn.Z),jn=({dense:n,children:a})=>React.createElement(Table,{size:n?"small":"medium"},React.createElement(TableBody,null,a)),Ki=({title:n,children:a,...u})=>React.createElement(TableRow,null,n&&React.createElement(wr,null,n),React.createElement(ca,{colSpan:n?1:2,...u},a)),Ia=(0,$.Z)(Hn,{name:"BackstageMetadataTableList"})(({classes:n,children:a})=>t.createElement("ul",{className:n.root},a)),Yi=(0,$.Z)(Vn,{name:"BackstageMetadataTableListItem"})(({classes:n,children:a})=>t.createElement("li",{className:n.root},a)),La=(0,p.Z)({root:{margin:"0 0",listStyleType:"none"}}),po=n=>(0,p.Z)({root:{...La.root,paddingLeft:n.spacing(1)}}),Oa=(0,$.Z)(La,{name:"BackstageStructuredMetadataTableList"})(({classes:n,children:a})=>t.createElement(Ia,{classes:n},a)),xa=(0,$.Z)(po,{name:"BackstageStructuredMetadataTableNestedList"})(({classes:n,children:a})=>t.createElement(Ia,{classes:n},a));function yo(n,a){const u=n.map((d,g)=>React.createElement(MetadataListItem,{key:g},ua(d)));return a?React.createElement(xa,null,u):React.createElement(Oa,null,u)}function Eo(n,a,u){const d=Object.keys(n).map(g=>{const R=ua(n[g],!0),O=u&&u.titleFormat?u.titleFormat(g):startCase(g);return React.createElement(MetadataListItem,{key:g},`${O}: `,R)});return a?React.createElement(xa,null,d):React.createElement(Oa,null,d)}function ua(n,a,u){return React.isValidElement(n)?React.createElement(Fragment,null,n):typeof n=="object"&&!Array.isArray(n)?Eo(n,a,u):Array.isArray(n)?yo(n,u):typeof n=="boolean"?React.createElement(Fragment,null,n?"\u2705":"\u274C"):React.createElement(Fragment,null,n)}const Ao=({value:n,options:a})=>React.createElement(Fragment,null,ua(n,a)),vo=({title:n,value:a,options:u})=>React.createElement(MetadataTableItem,{title:u&&u.titleFormat?u.titleFormat(n):startCase(n)},React.createElement(Ao,{value:a,options:u}));function Ro(n,a){return Object.keys(n).map(u=>React.createElement(vo,{key:u,title:u,value:n[u],options:a}))}function Ji(n){const{metadata:a,dense:u=!0,options:d}=n,g=Ro(a,d||{});return React.createElement(MetadataTable,{dense:u},g)}var So=e(49429),Co=e(86136),Da=e(79784),tr=e(76635),To=e(19126),Wr=e.n(To),Po=e(48760);function Io(n){return Wr().stringify(n,{strictNullHandling:!0})}function ba(n){return Wr().parse(n,{ignoreQueryPrefix:!0,strictNullHandling:!0})}function Fa(n,a){return ba(n)[a]}function Lo(n,a,u){const d={...ba(n),[a]:u};return Io(d)}function Oo(n,a=250){const[u,d]=(0,i.lr)(),g=u.toString(),[R,O]=(0,t.useState)(Fa(g,n));return(0,t.useEffect)(()=>{const U=Fa(g,n);O(j=>(0,tr.isEqual)(U,j)?j:U)},[g,O,n]),(0,Po.Z)(()=>{const U=Lo(g,n,R);g!==U&&d(U,{replace:!0})},a,[d,R,g,n]),[R,O]}const xo={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 Ba(){const a=(0,c.useApi)(c.configApiRef).getOptionalConfig("app.support");return a?{url:a.getString("url"),items:a.getConfigArray("items").flatMap(u=>{var d;return{title:u.getString("title"),icon:u.getOptionalString("icon"),links:((d=u.getOptionalConfigArray("links"))!=null?d:[]).flatMap(g=>({url:g.getString("url"),title:g.getString("title")}))}})}:xo}var Do=e(80079);function Tn(n,a){const d=(0,c.useApp)().getSystemIcon(n);return d?t.createElement(d,{...a}):t.createElement(Do.Z,{...a})}function Qi(n){return Tn("brokenImage",n)}function Xi(n){return Tn("catalog",n)}function ki(n){return Tn("chat",n)}function qi(n){return Tn("dashboard",n)}function _i(n){return Tn("docs",n)}function el(n){return Tn("email",n)}function tl(n){return Tn("github",n)}function nl(n){return Tn("group",n)}function zr(n){return Tn("help",n)}function rl(n){return Tn("user",n)}function al(n){return Tn("warning",n)}const bo=(0,s.Z)({popoverList:{minWidth:260,maxWidth:400}},{name:"BackstageSupportButton"}),Fo=({icon:n})=>{var d;const a=(0,c.useApp)(),u=n&&(d=a.getSystemIcon(n))!=null?d:zr;return t.createElement(u,null)},Bo=({link:n})=>{var a;return t.createElement(P,{to:n.url},(a=n.title)!=null?a:n.url)},Mo=({item:n})=>{var a;return t.createElement(Re.Z,null,t.createElement(Co.Z,null,t.createElement(Fo,{icon:n.icon})),t.createElement(De.Z,{primary:n.title,secondary:(a=n.links)==null?void 0:a.reduce((u,d,g)=>[...u,g>0&&t.createElement("br",{key:g}),t.createElement(Bo,{link:d,key:d.url})],[])}))};function No(n){const{title:a,children:u}=n,{items:d}=Ba(),[g,R]=(0,t.useState)(!1),[O,U]=(0,t.useState)(null),j=bo(),W=(0,Te.Z)(Se=>Se.breakpoints.down("sm")),re=Se=>{U(Se.currentTarget),R(!0)},ce=()=>{R(!1)};return t.createElement(t.Fragment,null,t.createElement(X.Z,{display:"flex",ml:1},W?t.createElement(b.Z,{color:"primary",size:"small",onClick:re,"data-testid":"support-button"},t.createElement(zr,null)):t.createElement(l.Z,{"data-testid":"support-button",color:"primary",onClick:re,startIcon:t.createElement(zr,null)},"Support")),t.createElement(Da.ZP,{"data-testid":"support-button-popover",open:g,anchorEl:O,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:ce},t.createElement(ge.Z,{className:j.popoverList},a&&t.createElement(Re.Z,{alignItems:"flex-start"},t.createElement(oe.Z,{variant:"subtitle1"},a)),t.Children.map(u,(Se,Ce)=>t.createElement(Re.Z,{alignItems:"flex-start",key:`child-${Ce}`},Se)),d&&d.map((Se,Ce)=>t.createElement(Mo,{item:Se,key:`item-${Ce}`}))),t.createElement(So.Z,null,t.createElement(l.Z,{color:"primary",onClick:ce},"Close"))))}var da=e(18671),An=e(10289);const Hr=72,Ma=24,Na=18,Qt={drawerWidthClosed:Hr,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:Hr,iconSize:Hr-Ma*2,iconPadding:Ma,selectedIndicatorWidth:3,userBadgePadding:Na,userBadgeDiameter:Hr-Na*2,mobileSidebarHeight:56},fa={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:Qt.defaultOpenDelayMs+200},ol="@backstage/core/sidebar-intro-dismissed",yr=(0,t.createContext)({isOpen:!1,setOpen:()=>{}}),Ua=(0,t.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}});var Vr;(function(n){const a="sidebarPinState";n.SIDEBAR_PIN_STATE=a})(Vr||(Vr={}));const Za={getSidebarPinState(){let n;try{n=JSON.parse(window.localStorage.getItem(Vr.SIDEBAR_PIN_STATE)||"true")}catch{return!0}return!!n},setSidebarPinState(n){return window.localStorage.setItem(Vr.SIDEBAR_PIN_STATE,JSON.stringify(n))}},Uo=(0,s.Z)(n=>({root:{width:"100%",transition:"padding-left 0.1s ease-out",isolation:"isolate",[n.breakpoints.up("sm")]:{paddingLeft:({isPinned:a})=>a?Qt.drawerWidthOpen:Qt.drawerWidthClosed},[n.breakpoints.down("xs")]:{paddingBottom:Qt.mobileSidebarHeight}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),nr=(0,t.createContext)({isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1}),$a=(0,t.createContext)({content:{contentRef:void 0}});function Zo(n){const[a,u]=(0,t.useState)(()=>Za.getSidebarPinState()),d=(0,t.useRef)(null),g=(0,t.useMemo)(()=>({content:{contentRef:d}}),[d]);(0,t.useEffect)(()=>{Za.setSidebarPinState(a)},[a]);const R=(0,Te.Z)(j=>j.breakpoints.down("xs"),{noSsr:!0}),O=()=>u(!a),U=Uo({isPinned:a});return t.createElement(nr.Provider,{value:{isPinned:a,toggleSidebarPinState:O,isMobile:R}},t.createElement($a.Provider,{value:g},t.createElement("div",{className:U.root},n.children)))}function ma(){const{content:n}=(0,t.useContext)($a);return{focusContent:(0,t.useCallback)(()=>{var u,d;(d=(u=n==null?void 0:n.contentRef)==null?void 0:u.current)==null||d.focus()},[n]),contentRef:n==null?void 0:n.contentRef}}var $o=e(50023),wo=e(4190),Wo=e(87685),zo=e(44882),Ho=e(57998);const Vo=(0,s.Z)(n=>({root:{flexGrow:0,margin:n.spacing(0,2),color:n.palette.navigation.color},selected:{color:`${n.palette.navigation.selectedColor}!important`,borderTop:`solid ${Qt.selectedIndicatorWidth}px ${n.palette.navigation.indicator}`,marginTop:"-1px"},label:{display:"none"}})),jo=n=>{const{to:a,label:u,icon:d,value:g}=n,R=Vo(),O=(0,An.TH)(),{selectedMenuItemIndex:U,setSelectedMenuItemIndex:j}=(0,t.useContext)(za),W=(ce,Se)=>{j(Se===U?-1:Se)},re=g===U&&U>=0||g!==U&&!(U>=0)&&a===O.pathname;return t.createElement(Ho.Z,{label:u,icon:d,component:P,to:a||O.pathname,onChange:W,value:g,selected:re,classes:R})},wa=n=>{const{children:a,to:u,label:d,icon:g,value:R}=n,{isMobile:O}=(0,t.useContext)(nr);return O?t.createElement(jo,{to:u,label:d,icon:g,value:R}):t.createElement(t.Fragment,null,a)},Wa=(0,s.Z)(n=>({root:{position:"fixed",backgroundColor:n.palette.navigation.background,color:n.palette.navigation.color,bottom:0,left:0,right:0,zIndex:n.zIndex.snackbar,borderTop:"1px solid #383838"},overlay:{background:n.palette.navigation.background,width:"100%",bottom:`${Qt.mobileSidebarHeight}px`,height:`calc(100% - ${Qt.mobileSidebarHeight}px)`,flex:"0 1 auto",overflow:"auto"},overlayHeader:{display:"flex",color:n.palette.bursts.fontColor,alignItems:"center",justifyContent:"space-between",padding:n.spacing(2,3)},overlayHeaderClose:{color:n.palette.bursts.fontColor},marginMobileSidebar:{marginBottom:`${Qt.mobileSidebarHeight}px`}})),Go=n=>(0,tr.orderBy)(n,({props:{priority:a}})=>Number.isInteger(a)?a:-1,"desc"),Ko=t.createElement(wa).type,Yo=({children:n,label:a="Menu",open:u,onClose:d})=>{const g=Wa();return t.createElement(wo.ZP,{anchor:"bottom",open:u,onClose:d,ModalProps:{BackdropProps:{classes:{root:g.marginMobileSidebar}}},classes:{root:g.marginMobileSidebar,paperAnchorBottom:g.overlay}},t.createElement(X.Z,{className:g.overlayHeader},t.createElement(oe.Z,{variant:"h3"},a),t.createElement(b.Z,{onClick:d,classes:{root:g.overlayHeaderClose}},t.createElement(Wo.Z,null))),t.createElement(X.Z,null,n))},za=(0,t.createContext)({selectedMenuItemIndex:-1,setSelectedMenuItemIndex:()=>{}}),Jo=n=>{const{children:a}=n,u=Wa(),d=(0,An.TH)(),[g,R]=(0,t.useState)(-1);(0,t.useEffect)(()=>{R(-1)},[d.pathname]);let O=(0,c.useElementFilter)(a,j=>j.getElements().filter(W=>W.type===Ko));if(a)O.length?O=Go(O):O.push(t.createElement(wa,{key:"default_menu",icon:t.createElement(zo.Z,null)},a));else return null;const U=g>=0&&!O[g].props.to;return t.createElement(yr.Provider,{value:{isOpen:!0,setOpen:()=>{}}},t.createElement(za.Provider,{value:{selectedMenuItemIndex:g,setSelectedMenuItemIndex:R}},t.createElement(Yo,{label:O[g]&&O[g].props.label,open:U,onClose:()=>R(-1)},O[g]&&O[g].props.children),t.createElement($o.Z,{className:u.root,"data-testid":"mobile-sidebar-root"},O)))},Ha=(0,s.Z)(n=>({drawer:{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",left:0,top:0,bottom:0,zIndex:n.zIndex.appBar,background:n.palette.navigation.background,overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",width:Qt.drawerWidthClosed,transition:n.transitions.create("width",{easing:n.transitions.easing.sharp,duration:n.transitions.duration.shortest}),"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"}},drawerOpen:{width:Qt.drawerWidthOpen,transition:n.transitions.create("width",{easing:n.transitions.easing.sharp,duration:n.transitions.duration.shorter})},visuallyHidden:{top:0,position:"absolute",zIndex:1e3,transform:"translateY(-200%)","&:focus":{transform:"translateY(5px)"}}}),{name:"BackstageSidebar"});var hn;(function(n){const a=0;n[n.Closed=a]="Closed";const u=a+1;n[n.Idle=u]="Idle";const d=u+1;n[n.Open=d]="Open"})(hn||(hn={}));const Qo=n=>{const{openDelayMs:a=Qt.defaultOpenDelayMs,closeDelayMs:u=Qt.defaultCloseDelayMs,disableExpandOnHover:d,children:g}=n,R=Ha(),O=(0,Te.Z)(Xt=>Xt.breakpoints.down("md"),{noSsr:!0}),[U,j]=(0,t.useState)(hn.Closed),W=(0,t.useRef)(),{isPinned:re,toggleSidebarPinState:ce}=(0,t.useContext)(nr),Se=()=>{re||d||(W.current&&(clearTimeout(W.current),W.current=void 0),U!==hn.Open&&!O&&(W.current=window.setTimeout(()=>{W.current=void 0,j(hn.Open)},a),j(hn.Idle)))},Ce=()=>{re||d||(W.current&&(clearTimeout(W.current),W.current=void 0),U===hn.Idle?j(hn.Closed):U===hn.Open&&(W.current=window.setTimeout(()=>{W.current=void 0,j(hn.Closed)},u)))},Pe=U===hn.Open&&!O||re,ht=Xt=>{Xt?(j(hn.Open),ce()):(j(hn.Closed),ce())};return t.createElement("div",{style:{}},t.createElement(ko,null),t.createElement(yr.Provider,{value:{isOpen:Pe,setOpen:ht}},t.createElement("div",{className:R.root,"data-testid":"sidebar-root",onMouseEnter:d?()=>{}:Se,onFocus:d?()=>{}:Se,onMouseLeave:d?()=>{}:Ce,onBlur:d?()=>{}:Ce},t.createElement("div",{className:Fe()(R.drawer,{[R.drawerOpen]:Pe})},g))))},Xo=n=>{const{children:a,openDelayMs:u,closeDelayMs:d,disableExpandOnHover:g}=n,{isMobile:R}=(0,t.useContext)(nr);return R?t.createElement(Jo,null,a):t.createElement(Qo,{openDelayMs:u,closeDelayMs:d,disableExpandOnHover:g},a)};function ko(){const{focusContent:n,contentRef:a}=ma(),u=Ha();return(a==null?void 0:a.current)?t.createElement(l.Z,{onClick:n,variant:"contained",className:Fe()(u.visuallyHidden)},"Skip to content"):null}function Va(n,a){const u=new URLSearchParams(a.search).toString(),d=Wr().parse(u),g=new URLSearchParams(n.search).toString(),R=Wr().parse(g);return(0,tr.isEqual)(a.pathname,n.pathname)&&(0,tr.isMatch)(R,d)}const qo=(0,s.Z)(n=>({item:{height:48,width:"100%","&:hover":{background:"#6f6f6f",color:n.palette.navigation.selectedColor},display:"flex",alignItems:"center",color:n.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:n.palette.navigation.color,display:"flex",justifyContent:"center",[n.breakpoints.down("xs")]:{display:"block",paddingLeft:n.spacing(4)},fontSize:"14px"}})),sl=n=>{const{title:a,to:u,icon:d,dropdownItems:g}=n,R=qo(),{setIsHoveredOn:O}=useContext(SidebarItemWithSubmenuContext),U=()=>{O(!1)},j=useResolvedPath(u),W=useLocation();let re=isLocationMatch(W,j);const[ce,Se]=useState(!1),Ce=()=>{Se(!ce)};return g!==void 0?(g.some(Pe=>{const ht=resolvePath(Pe.to);return re=isLocationMatch(W,ht),re}),React.createElement("div",{className:R.itemContainer},React.createElement("button",{onClick:Ce,onTouchStart:Pe=>Pe.stopPropagation(),className:classnames(R.item,re?R.selected:void 0)},React.createElement(d,{fontSize:"small"}),React.createElement(Typography,{variant:"subtitle1",className:R.label},a),ce?React.createElement(ArrowDropUpIcon,{className:R.dropdownArrow}):React.createElement(ArrowDropDownIcon,{className:R.dropdownArrow})),g&&ce&&React.createElement("div",{className:R.dropdown},g.map((Pe,ht)=>React.createElement(Link,{component:NavLink,to:Pe.to,underline:"none",className:R.dropdownItem,onClick:U,onTouchStart:Xt=>Xt.stopPropagation(),key:ht},React.createElement(Typography,{className:R.textContent},Pe.title)))))):React.createElement("div",{className:R.itemContainer},React.createElement(Link,{component:NavLink,to:u,underline:"none",className:classnames(R.item,re?R.selected:void 0),onClick:U,onTouchStart:Pe=>Pe.stopPropagation()},React.createElement(d,{fontSize:"small"}),React.createElement(Typography,{variant:"subtitle1",className:R.label},a)))},_o=n=>(0,s.Z)(a=>{var u,d;return{root:{zIndex:1e3,position:"relative",overflow:"visible",width:a.spacing(7)+1},drawer:{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",[a.breakpoints.up("sm")]:{marginLeft:n.left,transition:a.transitions.create("margin-left",{easing:a.transitions.easing.sharp,duration:a.transitions.duration.shortest})},top:0,bottom:0,padding:0,background:(d=(u=a.palette.navigation.submenu)==null?void 0:u.background)!=null?d:"#404040",overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",cursor:"default",width:fa.drawerWidthClosed,transitionDelay:`${fa.defaultOpenDelayMs}ms`,"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"}},drawerOpen:{width:fa.drawerWidthOpen,[a.breakpoints.down("xs")]:{width:"100%",position:"relative",paddingLeft:a.spacing(3),left:0,top:0}},title:{fontSize:24,fontWeight:500,color:"#FFF",padding:20,[a.breakpoints.down("xs")]:{display:"none"}}}}),es=n=>{const{isOpen:a}=(0,t.useContext)(yr),u=a?Qt.drawerWidthOpen:Qt.drawerWidthClosed,d=_o({left:u})(),{isHoveredOn:g}=(0,t.useContext)(Ua),[R,O]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{O(g)},[g]),t.createElement("div",{className:Fe()(d.drawer,{[d.drawerOpen]:R})},t.createElement(oe.Z,{variant:"h5",className:d.title},n.title),n.children)};var jr=e(76600),ts=e(26739),ns=e(98989),rs=e(59797),as=e(83543);const os=(0,s.Z)({iconContainer:{display:"flex",position:"relative",width:"100%"},arrow1:{right:"6px",position:"absolute"}}),il=()=>{const n=os();return React.createElement("div",{className:n.iconContainer},React.createElement("div",{className:n.arrow1},React.createElement(ArrowBackIosIcon,{style:{fontSize:"12px"}})),React.createElement("div",null,React.createElement(ArrowBackIosIcon,{style:{fontSize:"12px"}})))};var ll=null;const ss=(0,s.Z)({iconContainer:{display:"flex",position:"relative",width:"100%"},arrow1:{right:"6px",position:"absolute"}}),cl=()=>{const n=ss();return React.createElement("div",{className:n.iconContainer},React.createElement("div",{className:n.arrow1},React.createElement(ArrowForwardIosIcon,{style:{fontSize:"12px"}})),React.createElement("div",null,React.createElement(ArrowForwardIosIcon,{style:{fontSize:"12px"}})))};var ul=null;const Gr=(0,s.Z)(n=>{var R,O,U,j;const{selectedIndicatorWidth:a,drawerWidthClosed:u,drawerWidthOpen:d,iconContainerWidth:g}=Qt;return{root:{color:n.palette.navigation.color,display:"flex",flexFlow:"row nowrap",alignItems:"center",height:48,cursor:"pointer"},buttonItem:{background:"none",border:"none",width:"100%",margin:0,padding:0,textAlign:"inherit",font:"inherit"},closed:{width:u,justifyContent:"center"},open:{[n.breakpoints.up("sm")]:{width:d}},highlightable:{"&:hover":{background:(O=(R=n.palette.navigation.navItem)==null?void 0:R.hoverBackground)!=null?O:"#404040"}},highlighted:{background:(j=(U=n.palette.navigation.navItem)==null?void 0:U.hoverBackground)!=null?j:"#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:g,marginRight:-n.spacing(2),display:"flex",alignItems:"center",justifyContent:"center"},searchRoot:{marginBottom:12},searchField:{color:"#b5b5b5",fontWeight:"bold",fontSize:n.typography.fontSize},searchFieldHTMLInput:{padding:n.spacing(2,0,2)},searchContainer:{width:d-g},secondaryAction:{width:n.spacing(6),textAlign:"center",marginRight:n.spacing(1)},closedItemIcon:{width:"100%",justifyContent:"center"},submenuArrow:{display:"flex"},expandButton:{background:"none",border:"none",color:n.palette.navigation.color,width:"100%",cursor:"pointer",position:"relative",height:48},arrows:{position:"absolute",right:10},selected:{"&$root":{borderLeft:`solid ${a}px ${n.palette.navigation.indicator}`,color:n.palette.navigation.selectedColor},"&$closed":{width:u},"& $closedItemIcon":{paddingRight:a},"& $iconContainer":{marginLeft:-a}}}},{name:"BackstageSidebarItem"}),is=(n,a)=>(0,c.useElementFilter)(n.props.children,u=>{let d=!1;return u.getElements().forEach(({props:{to:g,dropdownItems:R}})=>{if(!d){if(R==null?void 0:R.length){R.forEach(({to:O})=>d=d||Va(a,(0,An.i3)(O)));return}g&&(d=Va(a,(0,An.i3)(g)))}}),d},[a.pathname]);function ja(n){return n.to===void 0}const ls=t.createElement(es).type,cs=t.forwardRef(function({to:a,end:u,style:d,className:g,activeStyle:R,caseSensitive:O,activeClassName:U="active","aria-current":j="page",...W},re){let{pathname:ce}=(0,An.TH)(),{pathname:Se}=(0,An.WU)(a);O||(ce=ce.toLocaleLowerCase("en-US"),Se=Se.toLocaleLowerCase("en-US"));let Ce=ce===Se;!Ce&&!u&&(Ce=ce.startsWith(`${Se}/`));const Pe=Ce?j:void 0;return t.createElement(i.rU,{...W,to:a,ref:re,"aria-current":Pe,style:{...d,...Ce?R:void 0},className:Fe()([g,Ce?U:void 0])})}),Ga=(0,t.forwardRef)((n,a)=>{const{icon:u,text:d,hasNotifications:g=!1,disableHighlight:R=!1,onClick:O,children:U,className:j,...W}=n,re=Gr(),{isOpen:ce}=(0,t.useContext)(yr),Se=t.createElement(ts.Z,{color:"secondary",variant:"dot",overlap:"circular",invisible:!g,className:Fe()({[re.closedItemIcon]:!ce})},t.createElement(u,{fontSize:"small"})),Ce=t.createElement(t.Fragment,null,t.createElement("div",{"data-testid":"login-button",className:re.iconContainer},Se),d&&t.createElement(oe.Z,{variant:"subtitle2",className:re.label},d),t.createElement("div",{className:re.secondaryAction},U)),Pe=ce?Ce:Se,ht={onClick:O,className:Fe()(j,re.root,ce?re.open:re.closed,ja(n)&&re.buttonItem,{[re.highlightable]:!R})};return ja(n)?t.createElement("button",{"aria-label":d,...ht,ref:a},Pe):t.createElement(cs,{...ht,activeClassName:re.selected,to:n.to?n.to:"",ref:a,"aria-label":d||n.to,...W},Pe)}),us=({children:n,...a})=>{const u=Gr(),[d,g]=(0,t.useState)(!1),R=(0,An.TH)(),O=is(n,R),U=(0,Te.Z)(ce=>ce.breakpoints.down("sm")),j=()=>{g(!0)},W=()=>{g(!1)},re=()=>U?d?t.createElement(rs.Z,{fontSize:"small",className:u.submenuArrow}):t.createElement(as.Z,{fontSize:"small",className:u.submenuArrow}):!d&&t.createElement(ns.Z,{fontSize:"small",className:u.submenuArrow});return t.createElement(Ua.Provider,{value:{isHoveredOn:d,setIsHoveredOn:g}},t.createElement("div",{"data-testid":"item-with-submenu",onMouseLeave:W,onTouchStart:d?W:j,onMouseEnter:j,className:Fe()(d&&u.highlighted)},t.createElement(Ga,{className:O?u.selected:"",...a},re()),d&&n))},Ka=(0,t.forwardRef)((n,a)=>{const[u]=(0,c.useElementFilter)(n.children,d=>d.getElements().filter(g=>g.type===ls));return u?t.createElement(us,{...n},u):t.createElement(Ga,{...n,ref:a})});function dl(n){const[a,u]=useState(""),d=Gr(),g=n.icon?n.icon:SearchIcon,R=()=>{n.onSearch(a),u("")},O=re=>{re.key==="Enter"&&(re.preventDefault(),R())},U=re=>{u(re.target.value)},j=re=>{re.preventDefault(),re.stopPropagation()},W=re=>{R(),re.preventDefault()};return React.createElement("div",{className:d.searchRoot},React.createElement(Ka,{icon:g,to:n.to,onClick:W,disableHighlight:!0},React.createElement(TextField,{placeholder:"Search",value:a,onClick:j,onChange:U,onKeyDown:O,className:d.searchContainer,InputProps:{disableUnderline:!0,className:d.searchField},inputProps:{className:d.searchFieldHTMLInput}})))}const fl=(0,jr.Z)("div")({flex:1},{name:"BackstageSidebarSpace"}),ml=(0,jr.Z)("div")({height:8},{name:"BackstageSidebarSpacer"}),ds=(0,jr.Z)("hr")({height:1,width:"100%",background:"#383838",border:"none",margin:"12px 0px"},{name:"BackstageSidebarDivider"}),fs=n=>({overflowY:"auto","&::-webkit-scrollbar":{backgroundColor:n.palette.background.default,width:"5px",borderRadius:"5px"},"&::-webkit-scrollbar-thumb":{backgroundColor:n.palette.text.hint,borderRadius:"5px"}}),hl=(0,jr.Z)("div")(({theme:n})=>{const a=fs(n);return{flex:"0 1 auto",overflowX:"hidden",width:"calc(100% - 5px)",minHeight:"48px",overflowY:"hidden","@media (hover: none)":a,"&:hover":a}}),gl=()=>{const n=Gr(),{isOpen:a,setOpen:u}=useContext(SidebarContext);if(useMediaQuery(R=>R.breakpoints.down("md"),{noSsr:!0}))return null;const g=()=>{u(!a)};return React.createElement("button",{onClick:g,className:n.expandButton,"aria-label":"Expand Sidebar","data-testid":"sidebar-expand-button"},React.createElement("div",{className:n.arrows},a?React.createElement(DoubleArrowLeft,null):React.createElement(DoubleArrowRight,null)))},ms=(0,s.Z)(n=>({introCard:{color:"#b5b5b5",fontSize:12,width:Qt.drawerWidthOpen,marginTop:18,marginBottom:12,paddingLeft:Qt.iconPadding,paddingRight:Qt.iconPadding},introDismiss:{display:"flex",justifyContent:"flex-end",alignItems:"center",marginTop:12},introDismissLink:{color:"#dddddd",display:"flex",alignItems:"center",marginBottom:4,"&:hover":{color:n.palette.linkHover,transition:n.transitions.create("color",{easing:n.transitions.easing.sharp,duration:n.transitions.duration.shortest})}},introDismissText:{fontSize:"0.7rem",fontWeight:"bold",textTransform:"uppercase",letterSpacing:1},introDismissIcon:{width:18,height:18,marginRight:12}}),{name:"BackstageSidebarIntro"});function hs(n){const a=ms(),{text:u,onClose:d}=n,g=()=>d();return React.createElement("div",{className:a.introCard},React.createElement(Typography,{variant:"subtitle2"},u),React.createElement("div",{className:a.introDismiss},React.createElement(Link,{component:"button",onClick:g,underline:"none",className:a.introDismissLink},React.createElement(CloseIcon,{className:a.introDismissIcon}),React.createElement(Typography,{component:"span",className:a.introDismissText},"Dismiss"))))}const Ya=n=>{const{text:a,onDismiss:u}=n,[d,g]=useState(!1),R=()=>{g(!0)};return React.createElement(Collapse,{in:!d,onExited:u},React.createElement(hs,{text:a,onClose:R}))},gs=null,ps="And your recently viewed plugins will pop up here!";function pl(n){const{isOpen:a}=useContext(SidebarContext),u={starredItemsDismissed:!1,recentlyViewedItemsDismissed:!1},[d,g]=useLocalStorage(SIDEBAR_INTRO_LOCAL_STORAGE),{starredItemsDismissed:R,recentlyViewedItemsDismissed:O}=d!=null?d:{},U=()=>{g(W=>({...u,...W,starredItemsDismissed:!0}))},j=()=>{g(W=>({...u,...W,recentlyViewedItemsDismissed:!0}))};return a?React.createElement(React.Fragment,null,!R&&React.createElement(React.Fragment,null,React.createElement(Ya,{text:gs,onDismiss:U}),React.createElement(SidebarDivider,null)),!O&&React.createElement(Ya,{text:ps,onDismiss:j})):null}const ys=(0,s.Z)(n=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:n.spacing(3),paddingBottom:n.spacing(3),paddingLeft:n.spacing(2),paddingRight:n.spacing(2),[n.breakpoints.up("sm")]:{paddingLeft:n.spacing(3),paddingRight:n.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function Ja(n){const{className:a,stretch:u,noPadding:d,children:g,...R}=n,{contentRef:O}=ma(),U=ys();return t.createElement("article",{ref:O,tabIndex:-1,...R,className:Fe()(U.root,a,{[U.stretch]:u,[U.noPadding]:d})},g)}var Es=e(6487),As=e(99152);const vs=(0,s.Z)(n=>({tabsWrapper:{gridArea:"pageSubheader",backgroundColor:n.palette.background.paper,paddingLeft:n.spacing(3)},defaultTab:{padding:n.spacing(3,3),...n.typography.caption,textTransform:"uppercase",fontWeight:"bold",color:n.palette.text.secondary},selected:{color:n.palette.text.primary},tabRoot:{"&:hover":{backgroundColor:n.palette.background.default,color:n.palette.text.primary}}}),{name:"BackstageHeaderTabs"});function Qa(n){const{tabs:a,onChange:u,selectedIndex:d}=n,[g,R]=(0,t.useState)(d!=null?d:0),O=vs(),U=(j,W)=>{d===void 0&&R(W),u&&u(W)};return(0,t.useEffect)(()=>{d!==void 0&&R(d)},[d]),t.createElement("div",{className:O.tabsWrapper},t.createElement(As.Z,{selectionFollowsFocus:!0,indicatorColor:"primary",textColor:"inherit",variant:"scrollable",scrollButtons:"auto","aria-label":"scrollable auto tabs example",onChange:U,value:g},a.map((j,W)=>t.createElement(Es.Z,{...j.tabProps,"data-testid":`header-tab-${W}`,label:j.label,key:j.id,value:W,className:O.defaultTab,classes:{selected:O.selected,root:O.tabRoot}}))))}function Rs(n){var U,j,W;const a=(0,An.UO)(),d=n.map(({path:re,children:ce})=>({caseSensitive:!1,path:`${re}/*`,element:ce})).sort((re,ce)=>ce.path.replace(/\/\*$/,"").localeCompare(re.path.replace(/\/\*$/,""))),g=(U=(0,An.V$)(d))!=null?U:n[0].children,[R]=(j=(0,An.fp)(d,`/${a["*"]}`))!=null?j:[],O=R?n.findIndex(re=>`${re.path}/*`===R.route.path):0;return{index:O===-1?0:O,element:g,route:(W=n[O])!=null?W:n[0]}}function Xa(n){const{routes:a}=n,u=(0,An.s0)(),{index:d,route:g,element:R}=Rs(a),O=(0,t.useMemo)(()=>a.map(j=>({id:j.path,label:j.title,tabProps:j.tabProps})),[a]),U=j=>u(a[j].path.replace(/\/\*$/,"").replace(/^\//,""));return t.createElement(t.Fragment,null,t.createElement(Qa,{tabs:O,selectedIndex:d,onChange:U}),t.createElement(Ja,null,t.createElement(da.q,{title:g.title}),R))}const ha=()=>null;(0,c.attachComponentData)(ha,"core.gatherMountPoints",!0);function ka(n){const a=t.createElement(ha,{path:"",title:""},t.createElement("div",null)).type;return t.Children.toArray(n).flatMap(u=>{if(!(0,t.isValidElement)(u))return[];if(u.type===t.Fragment)return ka(u.props.children);if(u.type!==a)throw new Error("Child of TabbedLayout must be an TabbedLayout.Route");const{path:d,title:g,children:R,tabProps:O}=u.props;return[{path:d,title:g,children:R,tabProps:O}]})}function Ss(n){const a=ka(n.children);return t.createElement(Xa,{routes:a})}Ss.Route=ha;const Cs=(0,s.Z)(n=>({value:{marginBottom:"6px"},subvalue:{color:n.palette.textSubtle,fontWeight:"normal"}}),{name:"BackstageSubvalueCell"});function Ts(n){const{value:a,subvalue:u}=n,d=Cs();return t.createElement(t.Fragment,null,t.createElement("div",{className:d.value},a),t.createElement("div",{className:d.subvalue},u))}var Ps=e(21070),Is=e(90324),Ls=e(98281),Os=e(48049),qa=e(51209),_a=e(33375),xs=e(44233),Ds=e(27604),ga=e(36444),bs=e(37971),Fs=e(59709),Bs=e(17373),Ms=e(3702),Ns=e(93111),Kr=e(67222);const Us=(0,s.Z)(n=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:n.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:"60px",justifyContent:"space-between",borderBottom:`1px solid ${n.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:n.spacing(2)}}}),{name:"BackstageTableFilters"}),Zs=n=>{var j;const a=Us(),{onChangeFilters:u}=n,[d,g]=(0,t.useState)({...n.selectedFilters}),[R,O]=(0,t.useState)(!1),U=()=>{g({}),O(W=>!W)};return(0,t.useEffect)(()=>{u(d)},[d,u]),t.createElement("div",{className:a.root},t.createElement("div",{className:a.header},t.createElement("div",{className:a.value},"Filters"),t.createElement(l.Z,{color:"primary",onClick:U},"Clear all")),t.createElement("div",{className:a.filters},((j=n.filters)==null?void 0:j.length)&&n.filters.map(W=>t.createElement($r,{triggerReset:R,key:W.element.label,...W.element,selected:d[W.element.label],onChange:re=>g({...d,[W.element.label]:re})}))))},$s={Add:(0,t.forwardRef)((n,a)=>t.createElement(Ps.Z,{...n,ref:a})),Check:(0,t.forwardRef)((n,a)=>t.createElement(Ls.Z,{...n,ref:a})),Clear:(0,t.forwardRef)((n,a)=>t.createElement(_a.Z,{...n,ref:a})),Delete:(0,t.forwardRef)((n,a)=>t.createElement(xs.Z,{...n,ref:a})),DetailPanel:(0,t.forwardRef)((n,a)=>t.createElement(qa.Z,{...n,ref:a})),Edit:(0,t.forwardRef)((n,a)=>t.createElement(Ds.Z,{...n,ref:a})),Export:(0,t.forwardRef)((n,a)=>t.createElement(Ms.Z,{...n,ref:a})),Filter:(0,t.forwardRef)((n,a)=>t.createElement(ga.Z,{...n,ref:a})),FirstPage:(0,t.forwardRef)((n,a)=>t.createElement(bs.Z,{...n,ref:a})),LastPage:(0,t.forwardRef)((n,a)=>t.createElement(Fs.Z,{...n,ref:a})),NextPage:(0,t.forwardRef)((n,a)=>t.createElement(qa.Z,{...n,ref:a})),PreviousPage:(0,t.forwardRef)((n,a)=>t.createElement(Os.Z,{...n,ref:a})),ResetSearch:(0,t.forwardRef)((n,a)=>t.createElement(_a.Z,{...n,ref:a})),Search:(0,t.forwardRef)((n,a)=>t.createElement(ga.Z,{...n,ref:a})),SortArrow:(0,t.forwardRef)((n,a)=>t.createElement(Is.Z,{...n,ref:a})),ThirdStateCheck:(0,t.forwardRef)((n,a)=>t.createElement(Bs.Z,{...n,ref:a})),ViewColumn:(0,t.forwardRef)((n,a)=>t.createElement(Ns.Z,{...n,ref:a}))};function eo(n,a){const u=a.split(".");let d=n[u[0]];for(let g=1;g<u.length;++g){if(d===void 0)return d;const R=u[g];d=d[R]}return d}const ws=(0,$.Z)(n=>({header:{padding:n.spacing(1,2,1,2.5),borderTop:`1px solid ${n.palette.grey.A100}`,borderBottom:`1px solid ${n.palette.grey.A100}`,color:n.palette.textSubtle,fontWeight:n.typography.fontWeightBold,position:"static",wordBreak:"normal"}}),{name:"BackstageTableHeader"})(Kr.W$),to=(0,$.Z)(n=>({root:{padding:n.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:"bold"}},searchField:{paddingRight:n.spacing(2)}}),{name:"BackstageTableToolbar"})(Kr.UW),Ws=(0,s.Z)(()=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:"bold",fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),zs=(0,s.Z)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"});function Hs(n,a){return n.map(u=>{const d={};let g=u.cellStyle||{};if(u.highlight)if(d.color=a.palette.textContrast,typeof g=="object")g.fontWeight=a.typography.fontWeightBold;else{const R=g;g=(O,U,j)=>({...R(O,U,j),fontWeight:a.typography.fontWeightBold})}return{...u,headerStyle:d,cellStyle:g}})}function Vs(n,a){return(0,tr.transform)(n,(u,d,g)=>{(0,tr.isEqual)(d,a[g])||(u[g]=d)})}const no={search:"",filtersOpen:!1,filters:{}};function js(n){const{toolbarRef:a,setSearch:u,hasFilters:d,selectedFiltersLength:g,toggleFilters:R}=n,O=Ws(),U=(0,t.useCallback)(j=>{n.onSearchChanged(j),u(j)},[n,u]);return d?t.createElement("div",{className:O.root},t.createElement("div",{className:O.root},t.createElement(b.Z,{onClick:R,"aria-label":"filter list"},t.createElement(ga.Z,null)),t.createElement(oe.Z,{className:O.title},"Filters (",g,")")),t.createElement(to,{...n,ref:a,onSearchChanged:U})):t.createElement(to,{...n,ref:a,onSearchChanged:U})}function Gs(n){const{data:a,columns:u,options:d,title:g,subtitle:R,filters:O,initialState:U,emptyContent:j,onStateChange:W,...re}=n,ce=zs(),Se=(0,I.Z)(),Ce={...no,...U},[Pe,ht]=(0,t.useState)(Ce.filtersOpen),Xt=(0,t.useCallback)(()=>ht(an=>!an),[ht]),[dn,tn]=(0,t.useState)(0),[ke,Ht]=(0,t.useState)(a),[bt,sn]=(0,t.useState)(Ce.filters),Gn=Hs(u,Se),[gn,Jr]=(0,t.useState)(Ce.search);(0,t.useEffect)(()=>{if(W){const an=Vs({search:gn,filtersOpen:Pe,filters:bt},no);W(an)}},[gn,Pe,bt,W]);const Mt={headerStyle:{textTransform:"uppercase"}},Un=(0,t.useCallback)(an=>{var pn;return(pn=u.find(vn=>vn.title===an))==null?void 0:pn.field},[u]);(0,t.useEffect)(()=>{if(typeof a=="function")return;if(!bt){Ht(a);return}const an=Object.values(bt);if(a&&an.flat().length){const pn=a.filter(vn=>!!Object.entries(bt).filter(([,Yn])=>!!Yn.length).every(([Yn,qt])=>{const _t=eo(vn,Un(Yn));return Array.isArray(_t)&&Array.isArray(qt)?_t.some(rr=>qt.includes(rr)):Array.isArray(_t)?_t.includes(qt):Array.isArray(qt)?qt.includes(_t):_t===qt}));Ht(pn)}else Ht(a);tn(an.flat().length)},[a,bt,Un]);const va=(an,pn)=>{const vn=qt=>{const _t=new Set,rr=Jn=>{Jn!=null&&_t.add(Jn)};return pn&&pn.forEach(Jn=>{const ar=eo(Jn,Un(qt));Array.isArray(ar)?ar.forEach(rr):rr(ar)}),_t},Yn=qt=>({placeholder:"All results",label:qt.column,multiple:qt.type==="multiple-select",items:[...vn(qt.column)].sort().map(_t=>({label:_t,value:_t}))});return an.map(qt=>({type:qt.type,element:Yn(qt)}))},Kn=!!(O==null?void 0:O.length),Ra=(0,t.useCallback)(an=>t.createElement(js,{setSearch:Jr,hasFilters:Kn,selectedFiltersLength:dn,toggleFilters:Xt,...an}),[Xt,Kn,dn,Jr]),Qr=typeof a!="function"&&a.length===0,Xr=u.length,Sa=(0,t.useCallback)(an=>j&&Qr?t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",{colSpan:Xr},j))):t.createElement(Kr.os,{...an}),[Qr,j,Xr]);return t.createElement("div",{className:ce.root},Pe&&a&&typeof a!="function"&&(O==null?void 0:O.length)&&t.createElement(Zs,{filters:va(O,a),selectedFilters:bt,onChangeFilters:sn}),t.createElement(Kr.ZP,{components:{Header:ws,Toolbar:Ra,Body:Sa},options:{...Mt,...d},columns:Gn,icons:$s,title:t.createElement(t.Fragment,null,t.createElement(oe.Z,{variant:"h5",component:"h3"},g),R&&t.createElement(oe.Z,{color:"textSecondary",variant:"body1"},R)),data:typeof a=="function"?a:ke,style:{width:"100%"},localization:{toolbar:{searchPlaceholder:"Filter"}},...re}))}const yl=n=>{const{children:a,value:u,index:d,...g}=n;return React.createElement("div",{role:"tabpanel",hidden:u!==d,"aria-labelledby":`scrollable-auto-tab-${d}`,...g},u===d&&React.createElement(Box,{p:3},a))},Ks=(0,s.Z)(()=>({root:{color:"#6E6E6E",overflow:"visible",fontSize:"1.5rem",textAlign:"center",borderRadius:"50%",backgroundColor:"#E6E6E6",marginLeft:n=>n.isNext?"auto":"0",marginRight:n=>n.isNext?"0":"10px","&:hover":{backgroundColor:"#E6E6E6",opacity:"1"}}}),{name:"BackstageTabIcon"}),El=n=>{const a=Ks(n),{ariaLabel:u,onClick:d}=n;return React.createElement(IconButton,{onClick:d,className:a.root,size:"small",disableRipple:!0,disableFocusRipple:!0,"aria-label":u},n.children)},Ys=(n,a)=>a?n?"20px":"0":"40px",Js=(0,s.Z)(n=>({root:{textTransform:"none",height:"64px",fontWeight:n.typography.fontWeightBold,fontSize:n.typography.pxToRem(13),color:n.palette.textSubtle,marginLeft:a=>Ys(a.isFirstNav,a.isFirstIndex),width:"130px",minWidth:"130px","&:hover":{outline:"none",backgroundColor:"transparent",color:n.palette.textSubtle}}})),Al=n=>{const a=Js(n),{isFirstNav:u,isFirstIndex:d,...g}=n;return React.createElement(Tab,{className:a.root,disableRipple:!0,...g})},Qs=(0,s.Z)(n=>({indicator:{display:"flex",justifyContent:"center",backgroundColor:n.palette.tabbar.indicator,height:"4px"},flexContainer:{alignItems:"center"},root:{"&:last-child":{marginLeft:"auto"}}}),{name:"BackstageTabBar"}),vl=n=>{const a=Qs(n);return React.createElement(Tabs,{classes:a,...n,TabIndicatorProps:{children:React.createElement("span",null)}})},Xs=(0,s.Z)(n=>({root:{flexGrow:1,width:"100%"},styledTabs:{backgroundColor:n.palette.background.paper},appbar:{boxShadow:"none",backgroundColor:n.palette.background.paper,paddingLeft:"10px",paddingRight:"10px"}}),{name:"BackstageTabs"});function Rl(n){const{tabs:a}=n,u=Xs(),[d,g]=useState([0,0]),[R,O]=useState(0),[U,j]=useState(0),[W,re]=useState([[]]),ce=useRef(),{width:Se}=useWindowSize(),Ce=(tn,ke)=>{g([R,ke])},Pe=()=>{O(R-1)},ht=()=>{O(R+1)},Xt=()=>R+1<W.length;useEffect(()=>{const tn=20,ke=R===0?1:2,Ht=ce.current.offsetWidth-tn-ke*30,bt=d[0]*U+d[1],sn=Math.floor(Ht/170);j(sn),re(chunkArray(a,sn)),g([Math.floor(bt/sn),bt%sn])},[Se,a]);const dn=R===d[0]?d[1]:!1;return React.createElement("div",{className:u.root},React.createElement(AppBar,{ref:ce,className:u.appbar,position:"static"},React.createElement("div",null,React.createElement(StyledTabs,{value:dn,onChange:Ce,selectionFollowsFocus:!0},R!==0&&React.createElement(StyledIcon,{onClick:Pe,ariaLabel:"navigate-before"},React.createElement(NavigateBeforeIcon,null)),W[R].map((tn,ke)=>React.createElement(StyledTab,{value:ke,isFirstIndex:ke===0,isFirstNav:R===0,key:ke,icon:tn.icon||void 0,label:tn.label||void 0})),Xt()&&React.createElement(StyledIcon,{isNext:!0,onClick:ht,ariaLabel:"navigate-next"},React.createElement(NavigateNextIcon,null))))),dn!==!1?W[R].map((tn,ke)=>React.createElement(TabPanel,{key:ke,value:ke,index:dn},tn.content)):React.createElement(TabPanel,{key:"panel_outside_chunked_array",value:d[1],index:d[1]},W[d[0]][d[1]].content))}var Sl=e(44311);function ks(n,a){const u=n[n.length-1];if(!!u)return u>=.9?a.palette.status.ok:u>=.5?a.palette.status.warning:a.palette.status.error}function Cl(n){var u;const a=useTheme();return n.data?React.createElement(Sparklines,{width:120,height:30,min:0,max:1,...n},n.title&&React.createElement("title",null,n.title),React.createElement(SparklinesLine,{color:(u=n.color)!=null?u:ks(n.data,a)})):null}const _s=n=>(0,s.Z)(a=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:a.spacing(2),textAlign:n.textAlign},leftItemsBox:{flex:"1 1 auto",minWidth:0,overflow:"visible"},rightItemsBox:{flex:"0 1 auto",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginLeft:a.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}),ei=({title:n="Unknown page",className:a})=>t.createElement(oe.Z,{variant:"h4",component:"h2",className:a,"data-testid":"header-title"},n);function ti(n){const{description:a,title:u,titleComponent:d=void 0,children:g,textAlign:R="left"}=n,O=_s({textAlign:R})(),U=d||t.createElement(ei,{title:u,className:O.title});return t.createElement(t.Fragment,null,t.createElement(da.q,{title:u}),t.createElement("div",{className:O.container},t.createElement("div",{className:O.leftItemsBox},U,a&&t.createElement(oe.Z,{className:O.description,variant:"body2"},a)),t.createElement("div",{className:O.rightItemsBox},g)))}var ni=e(29788);const ri=(0,s.Z)(n=>({micDrop:{maxWidth:"60%",position:"absolute",bottom:n.spacing(2),right:n.spacing(2),[n.breakpoints.down("xs")]:{maxWidth:"96%",position:"relative",bottom:"unset",right:"unset",margin:`${n.spacing(10)}px auto ${n.spacing(4)}px`}}}),{name:"BackstageErrorPageMicDrop"}),ai=()=>{const n=ri();return t.createElement("img",{src:ni,className:n.micDrop,alt:"Girl dropping mic from her hands"})},oi=(0,s.Z)(n=>({container:{padding:n.spacing(8),[n.breakpoints.down("xs")]:{padding:n.spacing(2)}},title:{paddingBottom:n.spacing(5),[n.breakpoints.down("xs")]:{paddingBottom:n.spacing(4),fontSize:32}},subtitle:{color:n.palette.textSubtle}}),{name:"BackstageErrorPage"});function si(n){const{status:a,statusMessage:u,additionalInfo:d}=n,g=oi(),R=(0,An.s0)(),O=Ba();return t.createElement(Ve.Z,{container:!0,spacing:0,className:g.container},t.createElement(ai,null),t.createElement(Ve.Z,{item:!0,xs:12,sm:8,md:4},t.createElement(oe.Z,{"data-testid":"error",variant:"body1",className:g.subtitle},"ERROR ",a,": ",u),t.createElement(oe.Z,{variant:"body1",className:g.subtitle},d),t.createElement(oe.Z,{variant:"h2",className:g.title},"Looks like someone dropped the mic!"),t.createElement(oe.Z,{variant:"h6"},t.createElement(P,{to:"#","data-testid":"go-back-link",onClick:()=>R(-1)},"Go back"),"... or please ",t.createElement(P,{to:O.url},"contact support")," if you think this is a bug.")))}var ii=e(16173);const li=(0,$.Z)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(oe.Z),pa=(0,$.Z)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(X.Z);function ci(n){const{children:a,...u}=n,[d,g]=t.useState(null),R=t.Children.toArray(a),[O,U,...j]=R,W=j.length?j.pop():R[R.length-1],re=R.length>3,ce=Pe=>{g(Pe.currentTarget)},Se=()=>{g(null)},Ce=Boolean(d);return t.createElement(t.Fragment,null,t.createElement(ii.Z,{"aria-label":"breadcrumb",...u},R.length>1&&t.createElement(pa,{clone:!0},O),R.length>2&&t.createElement(pa,{clone:!0},U),re&&t.createElement(li,{onClick:ce},"..."),t.createElement(X.Z,{style:{fontStyle:"italic"}},W)),t.createElement(Da.ZP,{open:Ce,anchorEl:d,onClose:Se,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},t.createElement(ge.Z,null,j.map((Pe,ht)=>t.createElement(Re.Z,{key:ht,button:!0},t.createElement(pa,{clone:!0},Pe))))))}const ui=(0,s.Z)(n=>({header:{gridArea:"pageHeader",padding:n.spacing(3),width:"100%",boxShadow:n.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:n.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[n.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto"},title:{color:n.palette.bursts.fontColor,wordBreak:"break-all",fontSize:n.typography.h3.fontSize,marginBottom:0},subtitle:{color:n.palette.bursts.fontColor,opacity:.8,display:"inline-block",marginTop:n.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:n.spacing(1),color:n.palette.bursts.fontColor},breadcrumb:{color:n.palette.bursts.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-n.spacing(.3),marginBottom:n.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-n.spacing(.3),marginBottom:n.spacing(.3)}}),{name:"BackstageHeader"}),di=({type:n,typeLink:a,classes:u,pageTitle:d})=>n?a?t.createElement(ci,{className:u.breadcrumb},t.createElement(P,{to:a},n),t.createElement(oe.Z,null,d)):t.createElement(oe.Z,{className:u.type},n):null,fi=({pageTitle:n,classes:a,tooltip:u})=>{const d=t.createElement(oe.Z,{className:a.title,variant:"h1"},n);return u?t.createElement(F.ZP,{title:u,placement:"top-start"},d):d},mi=({classes:n,subtitle:a})=>a?typeof a!="string"?t.createElement(t.Fragment,null,a):t.createElement(oe.Z,{className:n.subtitle,variant:"subtitle2",component:"span"},a):null;function ro(n){const{children:a,pageTitleOverride:u,style:d,subtitle:g,title:R,tooltip:O,type:U,typeLink:j}=n,W=ui(),ce=(0,c.useApi)(c.configApiRef).getOptionalString("app.title")||"Backstage",Se=u||R,Ce=R||u,Pe=`${Se} | %s | ${ce}`,ht=`${Se} | ${ce}`;return t.createElement(t.Fragment,null,t.createElement(da.q,{titleTemplate:Pe,defaultTitle:ht}),t.createElement("header",{style:d,className:W.header},t.createElement(X.Z,{className:W.leftItemsBox},t.createElement(di,{classes:W,type:U,typeLink:j,pageTitle:Ce}),t.createElement(fi,{classes:W,pageTitle:Ce,tooltip:O}),t.createElement(mi,{classes:W,subtitle:g})),t.createElement(Ve.Z,{container:!0,className:W.rightItemsBox,spacing:4},a)))}const hi=(0,s.Z)(n=>({root:{textAlign:"left"},label:{color:n.palette.common.white,fontWeight:"bold",letterSpacing:0,fontSize:n.typography.fontSize,marginBottom:n.spacing(1)/2,lineHeight:1},value:{color:"rgba(255, 255, 255, 0.8)",fontSize:n.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),gi=({value:n,className:a})=>t.createElement(oe.Z,{className:a},n);function pi(n){const{label:a,value:u,url:d}=n,g=hi(),R=t.createElement(gi,{className:g.value,value:u||"<Unknown>"});return t.createElement(Ve.Z,{item:!0},t.createElement("span",{className:g.root},t.createElement(oe.Z,{className:g.label},a),d?t.createElement(P,{to:d},R):R))}const yi={hour:"2-digit",minute:"2-digit"};function ao(n){const a=new Date,u=window.navigator.language,d=[];if(!n.has("homepage.clocks"))return d;const g=n.getConfigArray("homepage.clocks");for(const R of g)if(R.has("label")&&R.has("timezone")){let O=R.getString("label");const U={timeZone:R.getString("timezone"),...yi};try{new Date().toLocaleString(u,U)}catch{console.warn(`The timezone ${U.timeZone} is invalid. Defaulting to GMT`),U.timeZone="GMT",O="GMT"}const j=a.toLocaleTimeString(u,U);d.push({time:j,label:O})}return d}function Tl(n){const a=useApi(configApiRef),u=[],[d,g]=React.useState(u);return React.useEffect(()=>{g(ao(a));const R=setInterval(()=>{g(ao(a))},1e3);return()=>{clearInterval(R)}},[a]),d.length!==0?React.createElement(React.Fragment,null,d.map(R=>React.createElement(HeaderLabel,{label:R.label,value:R.time,key:R.label}))):null}const Ei=n=>(0,p.Z)({root:{color:n.palette.common.white,padding:n.spacing(2,2,3),backgroundImage:n.palette.bursts.gradient.linear,backgroundPosition:0,backgroundSize:"inherit"}}),Ai=(0,s.Z)(Ei,{name:"BackstageItemCardHeader"});function vi(n){const{title:a,subtitle:u,children:d}=n,g=Ai(n);return t.createElement("div",{className:g.root},u&&t.createElement(oe.Z,{variant:"subtitle2",component:"h3"},u),a&&t.createElement(oe.Z,{variant:"h6",component:"h4"},a),d)}function Pl(n){const{description:a,tags:u,title:d,type:g,subtitle:R,label:O,onClick:U,href:j}=n;return React.createElement(Card,null,React.createElement(CardMedia,null,React.createElement(ItemCardHeader,{title:d,subtitle:R||g})),React.createElement(CardContent,null,(u==null?void 0:u.length)?React.createElement(Box,null,u.map((W,re)=>React.createElement(Chip,{size:"small",label:W,key:re}))):null,a),React.createElement(CardActions,null,!j&&React.createElement(Button,{to:"#",onClick:U,color:"primary"},O),j&&React.createElement(Button,{to:j,color:"primary"},O)))}const Ri=n=>(0,p.Z)({root:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(22em, 1fr))",gridAutoRows:"1fr",gridGap:n.spacing(2)}}),Si=(0,s.Z)(Ri,{name:"BackstageItemCardGrid"});function Ci(n){const{children:a,...u}=n,d=Si(u);return t.createElement("div",{className:d.root,...u},a)}var Ti=e(41547);const Pi=(0,s.Z)(()=>({root:({isMobile:n})=>({display:"grid",gridTemplateAreas:"'pageHeader pageHeader pageHeader' 'pageSubheader pageSubheader pageSubheader' 'pageNav pageContent pageSidebar'",gridTemplateRows:"max-content auto 1fr",gridTemplateColumns:"auto 1fr auto",height:n?"100%":"100vh",overflowY:"auto"})}),{name:"BackstagePage"});function oo(n){const{themeId:a,children:u}=n,{isMobile:d}=(0,t.useContext)(nr),g=Pi({isMobile:d});return t.createElement(Ti.Z,{theme:R=>({...R,page:R.getPageTheme({themeId:a})})},t.createElement("div",{className:g.root},u))}function Ii(n){const{themeId:a,children:u,...d}=n;return t.createElement(oo,{themeId:a},t.createElement(ro,{...d}),u)}var un=e(30195);const Il=un.z.object({providerInfo:un.z.object({}).catchall(un.z.unknown()).optional(),profile:un.z.object({email:un.z.string().optional(),displayName:un.z.string().optional(),picture:un.z.string().optional()}),backstageIdentity:un.z.object({token:un.z.string(),identity:un.z.object({type:un.z.literal("user"),userEntityRef:un.z.string(),ownershipEntityRefs:un.z.array(un.z.string())})})}),so={defaultTokenExpiryMillis:5*60*1e3,tokenExpiryMarginMillis:5*60*1e3};function Li(n){const a=new Date(Date.now()+so.defaultTokenExpiryMillis);if(!n)return a;const[u,d,g]=n.split("."),R=JSON.parse(atob(d));return typeof R.exp!="number"?a:new Date(R.exp*1e3-so.tokenExpiryMarginMillis)}class Ll{constructor(a){q(this,"options");q(this,"abortController");q(this,"state");this.options=a,this.abortController=new AbortController,this.state={type:"empty"}}async start(){await this.getSessionAsync()}getUserId(){const{backstageIdentity:a}=this.getSessionSync(),u=a.identity.userEntityRef,d=/^([^:/]+:)?([^:/]+\/)?([^:/]+)$/.exec(u);if(!d)throw new TypeError(`Invalid user entity reference "${u}"`);return d[3]}async getIdToken(){return(await this.getSessionAsync()).backstageIdentity.token}getProfile(){return this.getSessionSync().profile}async getProfileInfo(){return(await this.getSessionAsync()).profile}async getBackstageIdentity(){return(await this.getSessionAsync()).backstageIdentity.identity}async getCredentials(){return{token:(await this.getSessionAsync()).backstageIdentity.token}}async signOut(){this.abortController.abort()}getSessionSync(){if(this.state.type==="active")return this.state.session;if(this.state.type==="fetching"&&this.state.previous)return this.state.previous;throw new Error("No session available. Try reloading your browser page.")}async getSessionAsync(){if(this.state.type==="fetching")return this.state.promise;if(this.state.type==="active"&&new Date<this.state.expiresAt)return this.state.session;const a=this.state.type==="active"?this.state.session:void 0,u=this.fetchSession().then(d=>(this.state={type:"active",session:d,expiresAt:Li(d.backstageIdentity.token)},d),d=>{throw this.state={type:"failed",error:d},d});return this.state={type:"fetching",promise:u,previous:a},u}async fetchSession(){const a=await this.options.discoveryApi.getBaseUrl("auth"),u=await fetch(`${a}/${this.options.provider}/refresh`,{signal:this.abortController.signal,headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"});if(!u.ok)throw await ResponseError.fromResponse(u);return proxiedSessionSchema.parse(await u.json())}}const Ol=n=>{const a=useApi(discoveryApiRef),{loading:u,error:d}=useAsync(async()=>{const g=new ProxiedSignInIdentity({provider:n.provider,discoveryApi:a});await g.start(),n.onSignInSuccess(g)},[]);return u?React.createElement(Progress,null):d?React.createElement(ErrorPanel,{title:"You do not appear to be signed in. Please try reloading the browser page.",error:d}):null},Oi=(0,s.Z)({container:{padding:0,listStyle:"none"},item:{display:"flex",flexDirection:"column",width:"100%",maxWidth:"400px",margin:0,padding:0}},{name:"BackstageSignInPage"}),ya=({children:n})=>{const a=Oi();return t.createElement(Ve.Z,{component:"li",item:!0,classes:a},n)};class Ea{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 a="user:default/guest";return{type:"user",userEntityRef:a,ownershipEntityRefs:[a]}}async getCredentials(){return{}}async signOut(){}}function xi(n){const[a,u,d]=n.split(".");return JSON.parse(atob(u))}class Aa{constructor(a){this.result=a}getUserId(){return this.result.userId}static fromResult(a){return new Aa(a)}async getIdToken(){var a,u;return(u=(a=this.result).getIdToken)==null?void 0:u.call(a)}getProfile(){return this.result.profile}async getProfileInfo(){return this.result.profile}async getBackstageIdentity(){const a=await this.getIdToken();if(!a){const g=`user:default/${this.getUserId()}`;return{type:"user",userEntityRef:g,ownershipEntityRefs:[g]}}const{sub:u,ent:d}=xi(a);return{type:"user",userEntityRef:u,ownershipEntityRefs:d!=null?d:[]}}async getCredentials(){var u,d;return{token:await((d=(u=this.result).getIdToken)==null?void 0:d.call(u))}}async signOut(){var a,u;return(u=(a=this.result).signOut)==null?void 0:u.call(a)}}class Er{constructor(a,u,d){q(this,"profilePromise");this.identity=a,this.authApi=u,this.profile=d}static createGuest(){return new Ea}static fromLegacy(a){return Aa.fromResult(a)}static create(a){return new Er(a.identity,a.authApi,a.profile)}getUserId(){const a=this.identity.userEntityRef,u=/^([^:/]+:)?([^:/]+\/)?([^:/]+)$/.exec(a);if(!u)throw new TypeError(`Invalid user entity reference "${a}"`);return u[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(a){throw this.profilePromise=void 0,a}}async getBackstageIdentity(){return this.identity}async getCredentials(){return{token:(await this.authApi.getBackstageIdentity()).token}}async signOut(){return this.authApi.signOut()}}const Di={Component:({config:n,onSignInSuccess:a})=>{const{apiRef:u,title:d,message:g}=n,R=(0,c.useApi)(u),O=(0,c.useApi)(c.errorApiRef),U=async()=>{try{const j=await R.getBackstageIdentity({instantPopup:!0});if(!j)throw new Error(`The ${d} provider is not configured to support sign-in`);const W=await R.getProfile();a(Er.create({identity:j.identity,profile:W,authApi:R}))}catch(j){O.post(new Dr.SP("Login failed",j))}};return t.createElement(ya,null,t.createElement(He,{variant:"fullHeight",title:d,actions:t.createElement(l.Z,{color:"primary",variant:"outlined",onClick:U},"Sign In")},t.createElement(oe.Z,{variant:"body1"},g)))},loader:async(n,a)=>{const u=n.get(a),d=await u.getBackstageIdentity({optional:!0});if(!d)return;const g=await u.getProfile();return Er.create({identity:d.identity,profile:g,authApi:u})}},bi={Component:({onSignInSuccess:n})=>t.createElement(ya,null,t.createElement(He,{title:"Guest",variant:"fullHeight",actions:t.createElement(l.Z,{color:"primary",variant:"outlined",onClick:()=>n(new Ea)},"Enter")},t.createElement(oe.Z,{variant:"body1"},"Enter as a Guest User.",t.createElement("br",null),"You will not have a verified identity,",t.createElement("br",null),"meaning some features might be unavailable."))),loader:async()=>new Ea};var Fi=e(94106),io=e(86619),lo=e(74828),Bi=e(45455),Mi=e.n(Bi);const Ni=/^[a-z0-9_\-]+\.[a-z0-9_\-]+\.[a-z0-9_\-]+$/i,Ui=(0,s.Z)(n=>({form:{display:"flex",flexFlow:"column nowrap"},button:{alignSelf:"center",marginTop:n.spacing(2)}}),{name:"BackstageCustomProvider"}),co=n=>{const{ref:a,...u}=n;return{inputRef:a,...u}},Zi={Component:({onSignInSuccess:n})=>{const a=Ui(),{register:u,handleSubmit:d,formState:g}=(0,Fi.cI)({mode:"onChange"}),{errors:R}=g,O=({userId:U})=>{n(Er.fromLegacy({userId:U,profile:{email:`${U}@example.com`}}))};return t.createElement(ya,null,t.createElement(He,{title:"Custom User",variant:"fullHeight"},t.createElement(oe.Z,{variant:"body1"},"Enter your own User ID and credentials.",t.createElement("br",null),"This selection will not be stored."),t.createElement("form",{className:a.form,onSubmit:d(O)},t.createElement(Dn.Z,null,t.createElement(io.Z,{...co(u("userId",{required:!0})),label:"User ID",margin:"normal",error:Boolean(R.userId)}),R.userId&&t.createElement(lo.Z,{error:!0},R.userId.message)),t.createElement(Dn.Z,null,t.createElement(io.Z,{...co(u("idToken",{required:!1,validate:U=>!U||Ni.test(U)||"Token is not a valid OpenID Connect JWT Token"})),label:"ID Token (optional)",margin:"normal",autoComplete:"off",error:Boolean(R.idToken)}),R.idToken&&t.createElement(lo.Z,{error:!0},R.idToken.message)),t.createElement(l.Z,{type:"submit",color:"primary",variant:"outlined",className:a.button,disabled:!(g==null?void 0:g.isDirty)||!Mi()(R)},"Continue"))))},loader:async()=>{}},Yr="@backstage/core:SignInPage:provider",uo={guest:bi,custom:Zi,common:Di};function fo(n,a){if(n in a)throw new Error(`"${n}" ID is duplicated. IDs of identity providers have to be unique.`)}function Nl(n){return n.reduce((u,d)=>{if(typeof d=="string")return fo(d,u),u[d]={components:uo[d],id:d},u;const{id:g}=d;return fo(g,u),u[g]={components:uo.common,id:g,config:d},u},{})}const Ul=(n,a)=>{const u=useApi(errorApiRef),d=useApiHolder(),[g,R]=useState(!0),O=useCallback(j=>{a(IdentityApiSignOutProxy.from({identityApi:j,signOut:async()=>{var W;localStorage.removeItem(Yr),await((W=j.signOut)==null?void 0:W.call(j))}}))},[a]);useLayoutEffect(()=>{var ce;if(!g)return;const j=localStorage.getItem(Yr);if(j===null){R(!1);return}const W=n[j];if(!W){R(!1);return}let re=!1;return W.components.loader(d,(ce=W.config)==null?void 0:ce.apiRef).then(Se=>{re||(Se?O(Se):R(!1))}).catch(Se=>{re||(localStorage.removeItem(Yr),u.post(Se),R(!1))}),()=>{re=!0}},[g,u,a,d,n,O]);const U=useMemo(()=>Object.keys(n).map(j=>{const W=n[j],{Component:re}=W.components,ce=Se=>{localStorage.setItem(Yr,W.id),O(Se)};return React.createElement(re,{key:W.id,config:W.config,onSignInSuccess:ce})}),[n,O]);return[g,U]},$i=({onSignInSuccess:n,providers:a=[],title:u,align:d="left"})=>{const g=useApi(configApiRef),R=useStyles(),O=getSignInProviders(a),[U,j]=useSignInProviders(O,n);return U?React.createElement(Progress,null):React.createElement(Page,{themeId:"home"},React.createElement(Header,{title:g.getString("app.title")}),React.createElement(Content,null,u&&React.createElement(ContentHeader,{title:u,textAlign:d}),React.createElement(Grid,{container:!0,justifyContent:d==="center"?d:"flex-start",spacing:2,component:"ul",classes:R},j)))},wi=({provider:n,auto:a,onSignInSuccess:u})=>{const d=useStyles(),g=useApi(n.apiRef),R=useApi(configApiRef),[O,U]=useState(),[j,W]=useState(!1),re=async({checkExisting:ce,showPopup:Se})=>{try{let Ce;if(ce&&(Ce=await g.getBackstageIdentity({optional:!0})),!Ce&&(Se||a)&&(W(!0),Ce=await g.getBackstageIdentity({instantPopup:!0}),!Ce))throw new Error(`The ${n.title} provider is not configured to support sign-in`);if(!Ce){W(!0);return}const Pe=await g.getProfile();u(UserIdentity.create({identity:Ce.identity,authApi:g,profile:Pe}))}catch(Ce){U(Ce),W(!0)}};return useMount(()=>re({checkExisting:!0})),j?React.createElement(Page,{themeId:"home"},React.createElement(Header,{title:R.getString("app.title")}),React.createElement(Content,null,React.createElement(Grid,{container:!0,justifyContent:"center",spacing:2,component:"ul",classes:d},React.createElement(GridItem,null,React.createElement(InfoCard,{variant:"fullHeight",title:n.title,actions:React.createElement(Button,{color:"primary",variant:"outlined",onClick:()=>{re({showPopup:!0})}},"Sign In")},React.createElement(Typography,{variant:"body1"},n.message),O&&O.name!=="PopupRejectedError"&&React.createElement(Typography,{variant:"body1",color:"error"},O.message)))))):React.createElement(Progress,null)};function Zl(n){return"provider"in n?React.createElement(wi,{...n}):React.createElement($i,{...n})}const Wi=(0,s.Z)(n=>({root:{padding:n.spacing(0,2,0,2.5),minHeight:n.spacing(3)},indicator:{backgroundColor:n.palette.info.main,height:n.spacing(.3)}}),{name:"BackstageTabbedCard"}),zi=(0,$.Z)(n=>({root:{padding:n.spacing(2,2,2,2.5),display:"inline-block"},title:{fontWeight:700},subheader:{paddingTop:n.spacing(1)}}),{name:"BackstageTabbedCardBoldHeader"})(N.Z);function $l(n){const{slackChannel:a,errorBoundaryProps:u,children:d,title:g,deepLink:R,value:O,onChange:U}=n,j=Wi(),[W,re]=useState(0),ce=U||((Pe,ht)=>re(ht));let Se;O?React.Children.map(d,Pe=>{(Pe==null?void 0:Pe.props.value)===O&&(Se=Pe==null?void 0:Pe.props.children)}):React.Children.map(d,(Pe,ht)=>{ht===W&&(Se=Pe==null?void 0:Pe.props.children)});const Ce=u||(a?{slackChannel:a}:{});return React.createElement(Card,null,React.createElement(ErrorBoundary,{...Ce},g&&React.createElement(zi,{title:g}),React.createElement(Tabs,{selectionFollowsFocus:!0,classes:j,value:O||W,onChange:ce},d),React.createElement(Divider,null),React.createElement(CardContent,null,Se),R&&React.createElement(BottomLink,{...R})))}const Hi=(0,s.Z)(n=>({root:{minWidth:n.spacing(6),minHeight:n.spacing(3),margin:n.spacing(0,2,0,0),padding:n.spacing(.5,0,.5,0),textTransform:"none","&:hover":{opacity:1,backgroundColor:"transparent",color:n.palette.text.primary}},selected:{fontWeight:"bold"}}),{name:"BackstageCardTab"});function wl(n){const{children:a,...u}=n,d=Hi();return React.createElement(Tab,{disableRipple:!0,classes:d,...u})}},88609:function(J,o,e){"use strict";e.d(o,{Os:function(){return f},fC:function(){return E}});var r=e(76241),t=e(2784);const c=(0,r.CT)("analytics-context"),f=()=>{const p=(0,t.useContext)(c);if(p===void 0)return{routeRef:"unknown",pluginId:"root",extension:"App"};const h=p.atVersion(1);if(h===void 0)throw new Error("No context found for version 1.");return h},E=p=>{const{attributes:h,children:m}=p,y={...f(),...h},i=(0,r.EI)({1:y});return t.createElement(c.Provider,{value:i},m)};function s(p,h){const m=l=>React.createElement(E,{attributes:h},React.createElement(p,{...l}));return m.displayName=`WithAnalyticsContext(${p.displayName||p.name||"Component"})`,m}},28461:function(J,o,e){"use strict";e.d(o,{f:function(){return r.fC},z:function(){return s}});var r=e(88609),t=e(27399),c=e(2784);class f{constructor(h,m={routeRef:"unknown",pluginId:"root",extension:"App"}){this.analyticsApi=h,this.context=m}setContext(h){this.context=h}captureEvent(h,m,{value:l,attributes:y}={}){try{this.analyticsApi.captureEvent({action:h,subject:m,value:l,attributes:y,context:this.context})}catch(i){console.warn("Error during analytics event capture. %o",i)}}}function E(){try{return(0,t.useApi)(t.analyticsApiRef)}catch{return{captureEvent:()=>{}}}}function s(){const p=(0,c.useRef)(null),h=(0,r.Os)(),m=E();function l(){return p.current===null&&(p.current=new f(m)),p.current}const y=l();return y.setContext(h),y}},39135:function(J,o,e){"use strict";e.d(o,{CL:function(){return K},sM:function(){return t},$v:function(){return P},v_:function(){return G},hg:function(){return L},uB:function(){return D},iW:function(){return p},bq:function(){return S},Ds:function(){return I},NW:function(){return b},VE:function(){return F},W0:function(){return ee},gP:function(){return ie},F4:function(){return f},ux:function(){return s},Kp:function(){return c},$4:function(){return pe},p_:function(){return h},br:function(){return m},ZM:function(){return Le},eC:function(){return l},D:function(){return E},gW:function(){return i},Yp:function(){return y},E6:function(){return me}});var r=e(86833),t;(function(ze){const Te="SignedIn";ze.SignedIn=Te;const Qe="SignedOut";ze.SignedOut=Qe})(t||(t={}));const c=(0,r.T0)({id:"core.auth.google"}),f=(0,r.T0)({id:"core.auth.github"}),E=(0,r.T0)({id:"core.auth.okta"}),s=(0,r.T0)({id:"core.auth.gitlab"}),p=(0,r.T0)({id:"core.auth.auth0"}),h=(0,r.T0)({id:"core.auth.microsoft"}),m=(0,r.T0)({id:"core.auth.oauth2"}),l=(0,r.T0)({id:"core.auth.oidc"}),y=(0,r.T0)({id:"core.auth.saml"}),i=(0,r.T0)({id:"core.auth.onelogin"}),S=(0,r.T0)({id:"core.auth.bitbucket"}),D=(0,r.T0)({id:"core.auth.atlassian"}),P=(0,r.T0)({id:"core.alert"}),G=(0,r.T0)({id:"core.analytics"}),L=(0,r.T0)({id:"core.apptheme"}),I=(0,r.T0)({id:"core.config"}),b=(0,r.T0)({id:"core.discovery"}),F=(0,r.T0)({id:"core.error"});var K;(function(ze){const Te=0;ze[ze.None=Te]="None";const Qe=1;ze[ze.Active=Qe]="Active"})(K||(K={}));const ee=(0,r.T0)({id:"core.featureflags"}),ie=(0,r.T0)({id:"core.fetch"}),pe=(0,r.T0)({id:"core.identity"}),Le=(0,r.T0)({id:"core.oauthrequest"}),me=(0,r.T0)({id:"core.storage"})},27399:function(J,o,e){"use strict";e.d(o,{createApiFactory:function(){return r.createApiFactory},createApiRef:function(){return r.T0},useApi:function(){return r.h_},useApiHolder:function(){return r.I_},FeatureFlagState:function(){return t.CL},SessionState:function(){return t.sM},alertApiRef:function(){return t.$v},analyticsApiRef:function(){return t.v_},appThemeApiRef:function(){return t.hg},atlassianAuthApiRef:function(){return t.uB},auth0AuthApiRef:function(){return t.iW},bitbucketAuthApiRef:function(){return t.bq},configApiRef:function(){return t.Ds},discoveryApiRef:function(){return t.NW},errorApiRef:function(){return t.VE},featureFlagsApiRef:function(){return t.W0},fetchApiRef:function(){return t.gP},githubAuthApiRef:function(){return t.F4},gitlabAuthApiRef:function(){return t.ux},googleAuthApiRef:function(){return t.Kp},identityApiRef:function(){return t.$4},microsoftAuthApiRef:function(){return t.p_},oauth2ApiRef:function(){return t.br},oauthRequestApiRef:function(){return t.ZM},oidcAuthApiRef:function(){return t.eC},oktaAuthApiRef:function(){return t.D},oneloginAuthApiRef:function(){return t.gW},samlAuthApiRef:function(){return t.Yp},storageApiRef:function(){return t.E6}});var r=e(86833);e.o(r,"FeatureFlagState")&&e.d(o,{FeatureFlagState:function(){return r.FeatureFlagState}}),e.o(r,"SessionState")&&e.d(o,{SessionState:function(){return r.SessionState}}),e.o(r,"alertApiRef")&&e.d(o,{alertApiRef:function(){return r.alertApiRef}}),e.o(r,"analyticsApiRef")&&e.d(o,{analyticsApiRef:function(){return r.analyticsApiRef}}),e.o(r,"appThemeApiRef")&&e.d(o,{appThemeApiRef:function(){return r.appThemeApiRef}}),e.o(r,"atlassianAuthApiRef")&&e.d(o,{atlassianAuthApiRef:function(){return r.atlassianAuthApiRef}}),e.o(r,"attachComponentData")&&e.d(o,{attachComponentData:function(){return r.attachComponentData}}),e.o(r,"auth0AuthApiRef")&&e.d(o,{auth0AuthApiRef:function(){return r.auth0AuthApiRef}}),e.o(r,"bitbucketAuthApiRef")&&e.d(o,{bitbucketAuthApiRef:function(){return r.bitbucketAuthApiRef}}),e.o(r,"configApiRef")&&e.d(o,{configApiRef:function(){return r.configApiRef}}),e.o(r,"createComponentExtension")&&e.d(o,{createComponentExtension:function(){return r.createComponentExtension}}),e.o(r,"createExternalRouteRef")&&e.d(o,{createExternalRouteRef:function(){return r.createExternalRouteRef}}),e.o(r,"createPlugin")&&e.d(o,{createPlugin:function(){return r.createPlugin}}),e.o(r,"createRoutableExtension")&&e.d(o,{createRoutableExtension:function(){return r.createRoutableExtension}}),e.o(r,"createRouteRef")&&e.d(o,{createRouteRef:function(){return r.createRouteRef}}),e.o(r,"discoveryApiRef")&&e.d(o,{discoveryApiRef:function(){return r.discoveryApiRef}}),e.o(r,"errorApiRef")&&e.d(o,{errorApiRef:function(){return r.errorApiRef}}),e.o(r,"featureFlagsApiRef")&&e.d(o,{featureFlagsApiRef:function(){return r.featureFlagsApiRef}}),e.o(r,"fetchApiRef")&&e.d(o,{fetchApiRef:function(){return r.fetchApiRef}}),e.o(r,"getComponentData")&&e.d(o,{getComponentData:function(){return r.getComponentData}}),e.o(r,"githubAuthApiRef")&&e.d(o,{githubAuthApiRef:function(){return r.githubAuthApiRef}}),e.o(r,"gitlabAuthApiRef")&&e.d(o,{gitlabAuthApiRef:function(){return r.gitlabAuthApiRef}}),e.o(r,"googleAuthApiRef")&&e.d(o,{googleAuthApiRef:function(){return r.googleAuthApiRef}}),e.o(r,"identityApiRef")&&e.d(o,{identityApiRef:function(){return r.identityApiRef}}),e.o(r,"microsoftAuthApiRef")&&e.d(o,{microsoftAuthApiRef:function(){return r.microsoftAuthApiRef}}),e.o(r,"oauth2ApiRef")&&e.d(o,{oauth2ApiRef:function(){return r.oauth2ApiRef}}),e.o(r,"oauthRequestApiRef")&&e.d(o,{oauthRequestApiRef:function(){return r.oauthRequestApiRef}}),e.o(r,"oidcAuthApiRef")&&e.d(o,{oidcAuthApiRef:function(){return r.oidcAuthApiRef}}),e.o(r,"oktaAuthApiRef")&&e.d(o,{oktaAuthApiRef:function(){return r.oktaAuthApiRef}}),e.o(r,"oneloginAuthApiRef")&&e.d(o,{oneloginAuthApiRef:function(){return r.oneloginAuthApiRef}}),e.o(r,"samlAuthApiRef")&&e.d(o,{samlAuthApiRef:function(){return r.samlAuthApiRef}}),e.o(r,"storageApiRef")&&e.d(o,{storageApiRef:function(){return r.storageApiRef}}),e.o(r,"useApp")&&e.d(o,{useApp:function(){return r.useApp}}),e.o(r,"useElementFilter")&&e.d(o,{useElementFilter:function(){return r.useElementFilter}}),e.o(r,"useRouteRef")&&e.d(o,{useRouteRef:function(){return r.useRouteRef}}),e.o(r,"useRouteRefParams")&&e.d(o,{useRouteRefParams:function(){return r.useRouteRefParams}});var t=e(39135)},90515:function(J,o,e){"use strict";e.d(o,{T:function(){return t}});class r{constructor(f){if(this.config=f,!f.id.split(".").flatMap(s=>s.split("-")).every(s=>s.match(/^[a-z][a-z0-9]*$/)))throw new Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${f.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 t(c){return new r(c)}},25182:function(J,o,e){"use strict";e.d(o,{n:function(){return r}});function r(t,c){return"id"in t?{api:t,deps:{},factory:()=>c}:t}},86833:function(J,o,e){"use strict";e.d(o,{h_:function(){return r.h_},I_:function(){return r.I_},T0:function(){return t.T},createApiFactory:function(){return E.n}});var r=e(5761),t=e(90515),c=e(16362),f=e.n(c);e.o(c,"FeatureFlagState")&&e.d(o,{FeatureFlagState:function(){return c.FeatureFlagState}}),e.o(c,"SessionState")&&e.d(o,{SessionState:function(){return c.SessionState}}),e.o(c,"alertApiRef")&&e.d(o,{alertApiRef:function(){return c.alertApiRef}}),e.o(c,"analyticsApiRef")&&e.d(o,{analyticsApiRef:function(){return c.analyticsApiRef}}),e.o(c,"appThemeApiRef")&&e.d(o,{appThemeApiRef:function(){return c.appThemeApiRef}}),e.o(c,"atlassianAuthApiRef")&&e.d(o,{atlassianAuthApiRef:function(){return c.atlassianAuthApiRef}}),e.o(c,"attachComponentData")&&e.d(o,{attachComponentData:function(){return c.attachComponentData}}),e.o(c,"auth0AuthApiRef")&&e.d(o,{auth0AuthApiRef:function(){return c.auth0AuthApiRef}}),e.o(c,"bitbucketAuthApiRef")&&e.d(o,{bitbucketAuthApiRef:function(){return c.bitbucketAuthApiRef}}),e.o(c,"configApiRef")&&e.d(o,{configApiRef:function(){return c.configApiRef}}),e.o(c,"createApiFactory")&&e.d(o,{createApiFactory:function(){return c.createApiFactory}}),e.o(c,"createComponentExtension")&&e.d(o,{createComponentExtension:function(){return c.createComponentExtension}}),e.o(c,"createExternalRouteRef")&&e.d(o,{createExternalRouteRef:function(){return c.createExternalRouteRef}}),e.o(c,"createPlugin")&&e.d(o,{createPlugin:function(){return c.createPlugin}}),e.o(c,"createRoutableExtension")&&e.d(o,{createRoutableExtension:function(){return c.createRoutableExtension}}),e.o(c,"createRouteRef")&&e.d(o,{createRouteRef:function(){return c.createRouteRef}}),e.o(c,"discoveryApiRef")&&e.d(o,{discoveryApiRef:function(){return c.discoveryApiRef}}),e.o(c,"errorApiRef")&&e.d(o,{errorApiRef:function(){return c.errorApiRef}}),e.o(c,"featureFlagsApiRef")&&e.d(o,{featureFlagsApiRef:function(){return c.featureFlagsApiRef}}),e.o(c,"fetchApiRef")&&e.d(o,{fetchApiRef:function(){return c.fetchApiRef}}),e.o(c,"getComponentData")&&e.d(o,{getComponentData:function(){return c.getComponentData}}),e.o(c,"githubAuthApiRef")&&e.d(o,{githubAuthApiRef:function(){return c.githubAuthApiRef}}),e.o(c,"gitlabAuthApiRef")&&e.d(o,{gitlabAuthApiRef:function(){return c.gitlabAuthApiRef}}),e.o(c,"googleAuthApiRef")&&e.d(o,{googleAuthApiRef:function(){return c.googleAuthApiRef}}),e.o(c,"identityApiRef")&&e.d(o,{identityApiRef:function(){return c.identityApiRef}}),e.o(c,"microsoftAuthApiRef")&&e.d(o,{microsoftAuthApiRef:function(){return c.microsoftAuthApiRef}}),e.o(c,"oauth2ApiRef")&&e.d(o,{oauth2ApiRef:function(){return c.oauth2ApiRef}}),e.o(c,"oauthRequestApiRef")&&e.d(o,{oauthRequestApiRef:function(){return c.oauthRequestApiRef}}),e.o(c,"oidcAuthApiRef")&&e.d(o,{oidcAuthApiRef:function(){return c.oidcAuthApiRef}}),e.o(c,"oktaAuthApiRef")&&e.d(o,{oktaAuthApiRef:function(){return c.oktaAuthApiRef}}),e.o(c,"oneloginAuthApiRef")&&e.d(o,{oneloginAuthApiRef:function(){return c.oneloginAuthApiRef}}),e.o(c,"samlAuthApiRef")&&e.d(o,{samlAuthApiRef:function(){return c.samlAuthApiRef}}),e.o(c,"storageApiRef")&&e.d(o,{storageApiRef:function(){return c.storageApiRef}}),e.o(c,"useApp")&&e.d(o,{useApp:function(){return c.useApp}}),e.o(c,"useElementFilter")&&e.d(o,{useElementFilter:function(){return c.useElementFilter}}),e.o(c,"useRouteRef")&&e.d(o,{useRouteRef:function(){return c.useRouteRef}}),e.o(c,"useRouteRefParams")&&e.d(o,{useRouteRefParams:function(){return c.useRouteRefParams}});var E=e(25182)},16362:function(){},5761:function(J,o,e){"use strict";e.d(o,{I_:function(){return c},h_:function(){return f}});var r=e(2784),t=e(76241);function c(){const s=(0,t.Vt)("api-context");if(!s)throw new Error("API context is not available");const p=s.atVersion(1);if(!p)throw new Error("ApiContext v1 not available");return p}function f(s){const h=c().get(s);if(!h)throw new Error(`No implementation available for ${s}`);return h}function E(s){return function(h){const m=y=>{const i=c(),S={};for(const D in s)if(s.hasOwnProperty(D)){const P=s[D],G=i.get(P);if(!G)throw new Error(`No implementation available for ${P}`);S[D]=G}return React.createElement(h,{...y,...S})},l=h.displayName||h.name||"Component";return m.displayName=`withApis(${l})`,m}}},31311:function(J,o,e){"use strict";e.d(o,{q:function(){return r.q}});var r=e(32483),t=e(67229),c=e.n(t);e.o(t,"attachComponentData")&&e.d(o,{attachComponentData:function(){return t.attachComponentData}}),e.o(t,"createApiFactory")&&e.d(o,{createApiFactory:function(){return t.createApiFactory}}),e.o(t,"createApiRef")&&e.d(o,{createApiRef:function(){return t.createApiRef}}),e.o(t,"createComponentExtension")&&e.d(o,{createComponentExtension:function(){return t.createComponentExtension}}),e.o(t,"createExternalRouteRef")&&e.d(o,{createExternalRouteRef:function(){return t.createExternalRouteRef}}),e.o(t,"createPlugin")&&e.d(o,{createPlugin:function(){return t.createPlugin}}),e.o(t,"createRoutableExtension")&&e.d(o,{createRoutableExtension:function(){return t.createRoutableExtension}}),e.o(t,"createRouteRef")&&e.d(o,{createRouteRef:function(){return t.createRouteRef}}),e.o(t,"getComponentData")&&e.d(o,{getComponentData:function(){return t.getComponentData}}),e.o(t,"useApi")&&e.d(o,{useApi:function(){return t.useApi}}),e.o(t,"useApiHolder")&&e.d(o,{useApiHolder:function(){return t.useApiHolder}}),e.o(t,"useElementFilter")&&e.d(o,{useElementFilter:function(){return t.useElementFilter}}),e.o(t,"useRouteRef")&&e.d(o,{useRouteRef:function(){return t.useRouteRef}}),e.o(t,"useRouteRefParams")&&e.d(o,{useRouteRefParams:function(){return t.useRouteRefParams}})},67229:function(){},32483:function(J,o,e){"use strict";e.d(o,{q:function(){return t}});var r=e(76241);const t=()=>{const c=(0,r.Vt)("app-context");if(!c)throw new Error("App context is not available");const f=c.atVersion(1);if(!f)throw new Error("AppContext v1 not available");return f}},74181:function(J,o,e){"use strict";e.d(o,{R5:function(){return f},CO:function(){return i},P4:function(){return y},IY:function(){return E},vJ:function(){return L}});var r=e(76241);const t=(0,r.uW)("component-data-store",()=>new WeakMap),c="__backstage_data";function f(I,b,F){var ie;const K=I;let ee=(ie=K[c])!=null?ie:t.get(I);if(ee||(ee={map:new Map},Object.defineProperty(K,c,{enumerable:!1,configurable:!0,writable:!1,value:ee}),t.set(I,ee)),ee.map.has(b)){const pe=I.displayName||I.name;throw new Error(`Attempted to attach duplicate data "${b}" to component "${pe}"`)}ee.map.set(b,F)}function E(I,b){var ee;if(!I)return;const F=I.type;if(!F)return;const K=(ee=F[c])!=null?ee:t.get(F);if(!!K)return K.map.get(b)}var s=e(2784),p=e(88609),h=e(31311),m=e(82772);class l extends s.Component{constructor(){super(...arguments);q(this,"state",{error:void 0});q(this,"handleErrorReset",()=>{this.setState({error:void 0})})}static getDerivedStateFromError(b){return{error:b}}render(){const{error:b}=this.state,{app:F,plugin:K}=this.props,{ErrorBoundaryFallback:ee}=F.getComponents();return b?s.createElement(ee,{error:b,resetError:this.handleErrorReset,plugin:K}):this.props.children}}function y(I){const{component:b,mountPoint:F,name:K}=I;return S({component:{lazy:()=>b().then(ee=>{const ie=Le=>{try{(0,m.tg)(F)}catch(me){if(typeof me=="object"&&me!==null){const{message:ze}=me;if(typeof ze=="string"&&ze.startsWith("No path for "))throw new Error(`Routable extension component with mount point ${F} 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 me}return s.createElement(ee,{...Le})},pe=K||ee.displayName||ee.name||"LazyComponent";return ie.displayName=`RoutableExtension(${pe})`,ie},ee=>pe=>{const Le=(0,h.q)(),{BootErrorPage:me}=Le.getComponents();return s.createElement(me,{step:"load-chunk",error:ee})})},data:{"core.mountPoint":F},name:K})}function i(I){const{component:b,name:F}=I;return S({component:b,name:F})}function S(I){const{data:b={},name:F}=I;F||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name.");let K;if("lazy"in I.component){const ie=I.component.lazy;K=(0,s.lazy)(()=>ie().then(pe=>({default:pe})))}else K=I.component.sync;const ee=F||K.displayName||K.name||"Component";return{expose(ie){const pe=Le=>{const me=(0,h.q)(),{Progress:ze}=me.getComponents(),Te=b==null?void 0:b["core.mountPoint"];return s.createElement(s.Suspense,{fallback:s.createElement(ze,null)},s.createElement(l,{app:me,plugin:ie},s.createElement(p.fC,{attributes:{pluginId:ie.getId(),...F&&{extension:F},...Te&&{routeRef:Te.id}}},s.createElement(K,{...Le}))))};f(pe,"core.plugin",ie);for(const[Le,me]of Object.entries(b))f(pe,Le,me);return pe.displayName=`Extension(${ee})`,pe}}}var D=e(27399);function P(I,b,F,K){return s.Children.toArray(I).flatMap(ee=>{if(!(0,s.isValidElement)(ee))return[];if(ee.type===s.Fragment)return P(ee.props.children,b,F,K);if(E(ee,"core.featureFlagged")){const ie=ee.props;return("with"in ie?b.isActive(ie.with):!b.isActive(ie.without))?P(ee.props.children,b,F,K):[]}if(F===void 0||F(ee))return[ee];if(K)throw new Error(K);return P(ee.props.children,b,F,K)})}class G{constructor(b,F){this.node=b,this.featureFlagsApi=F}selectByComponentData(b){const F=P(this.node,this.featureFlagsApi,K=>E(K,b.key)!==void 0,b.withStrictError);return new G(F,this.featureFlagsApi)}findComponentData(b){return P(this.node,this.featureFlagsApi,K=>E(K,b.key)!==void 0).map(K=>E(K,b.key)).filter(K=>K!==void 0)}getElements(){return P(this.node,this.featureFlagsApi)}}function L(I,b,F=[]){const K=(0,D.useApi)(D.featureFlagsApiRef),ee=new G(I,K);return(0,s.useMemo)(()=>b(ee),[I,...F])}},80274:function(){},36964:function(J,o,e){"use strict";e.d(o,{AnalyticsContext:function(){return r.f},useAnalytics:function(){return r.z},FeatureFlagState:function(){return t.FeatureFlagState},SessionState:function(){return t.SessionState},alertApiRef:function(){return t.alertApiRef},analyticsApiRef:function(){return t.analyticsApiRef},appThemeApiRef:function(){return t.appThemeApiRef},atlassianAuthApiRef:function(){return t.atlassianAuthApiRef},auth0AuthApiRef:function(){return t.auth0AuthApiRef},bitbucketAuthApiRef:function(){return t.bitbucketAuthApiRef},configApiRef:function(){return t.configApiRef},discoveryApiRef:function(){return t.discoveryApiRef},errorApiRef:function(){return t.errorApiRef},featureFlagsApiRef:function(){return t.featureFlagsApiRef},fetchApiRef:function(){return t.fetchApiRef},githubAuthApiRef:function(){return t.githubAuthApiRef},gitlabAuthApiRef:function(){return t.gitlabAuthApiRef},googleAuthApiRef:function(){return t.googleAuthApiRef},identityApiRef:function(){return t.identityApiRef},microsoftAuthApiRef:function(){return t.microsoftAuthApiRef},oauth2ApiRef:function(){return t.oauth2ApiRef},oauthRequestApiRef:function(){return t.oauthRequestApiRef},oidcAuthApiRef:function(){return t.oidcAuthApiRef},oktaAuthApiRef:function(){return t.oktaAuthApiRef},oneloginAuthApiRef:function(){return t.oneloginAuthApiRef},samlAuthApiRef:function(){return t.samlAuthApiRef},storageApiRef:function(){return t.storageApiRef},useApp:function(){return c.q},attachComponentData:function(){return f.R5},createComponentExtension:function(){return f.CO},createRoutableExtension:function(){return f.P4},getComponentData:function(){return f.IY},useElementFilter:function(){return f.vJ},createPlugin:function(){return p.r},createExternalRouteRef:function(){return h.x8},createRouteRef:function(){return h.NT},useRouteRef:function(){return h.tg},useRouteRefParams:function(){return h.Oi}});var r=e(28461),t=e(27399);e.o(t,"attachComponentData")&&e.d(o,{attachComponentData:function(){return t.attachComponentData}}),e.o(t,"createApiFactory")&&e.d(o,{createApiFactory:function(){return t.createApiFactory}}),e.o(t,"createApiRef")&&e.d(o,{createApiRef:function(){return t.createApiRef}}),e.o(t,"createComponentExtension")&&e.d(o,{createComponentExtension:function(){return t.createComponentExtension}}),e.o(t,"createExternalRouteRef")&&e.d(o,{createExternalRouteRef:function(){return t.createExternalRouteRef}}),e.o(t,"createPlugin")&&e.d(o,{createPlugin:function(){return t.createPlugin}}),e.o(t,"createRoutableExtension")&&e.d(o,{createRoutableExtension:function(){return t.createRoutableExtension}}),e.o(t,"createRouteRef")&&e.d(o,{createRouteRef:function(){return t.createRouteRef}}),e.o(t,"getComponentData")&&e.d(o,{getComponentData:function(){return t.getComponentData}}),e.o(t,"useApi")&&e.d(o,{useApi:function(){return t.useApi}}),e.o(t,"useApiHolder")&&e.d(o,{useApiHolder:function(){return t.useApiHolder}}),e.o(t,"useApp")&&e.d(o,{useApp:function(){return t.useApp}}),e.o(t,"useElementFilter")&&e.d(o,{useElementFilter:function(){return t.useElementFilter}}),e.o(t,"useRouteRef")&&e.d(o,{useRouteRef:function(){return t.useRouteRef}}),e.o(t,"useRouteRefParams")&&e.d(o,{useRouteRefParams:function(){return t.useRouteRefParams}});var c=e(31311);e.o(c,"attachComponentData")&&e.d(o,{attachComponentData:function(){return c.attachComponentData}}),e.o(c,"createApiFactory")&&e.d(o,{createApiFactory:function(){return c.createApiFactory}}),e.o(c,"createApiRef")&&e.d(o,{createApiRef:function(){return c.createApiRef}}),e.o(c,"createComponentExtension")&&e.d(o,{createComponentExtension:function(){return c.createComponentExtension}}),e.o(c,"createExternalRouteRef")&&e.d(o,{createExternalRouteRef:function(){return c.createExternalRouteRef}}),e.o(c,"createPlugin")&&e.d(o,{createPlugin:function(){return c.createPlugin}}),e.o(c,"createRoutableExtension")&&e.d(o,{createRoutableExtension:function(){return c.createRoutableExtension}}),e.o(c,"createRouteRef")&&e.d(o,{createRouteRef:function(){return c.createRouteRef}}),e.o(c,"getComponentData")&&e.d(o,{getComponentData:function(){return c.getComponentData}}),e.o(c,"useApi")&&e.d(o,{useApi:function(){return c.useApi}}),e.o(c,"useApiHolder")&&e.d(o,{useApiHolder:function(){return c.useApiHolder}}),e.o(c,"useElementFilter")&&e.d(o,{useElementFilter:function(){return c.useElementFilter}}),e.o(c,"useRouteRef")&&e.d(o,{useRouteRef:function(){return c.useRouteRef}}),e.o(c,"useRouteRefParams")&&e.d(o,{useRouteRefParams:function(){return c.useRouteRefParams}});var f=e(74181),E=e(80274),s=e.n(E);e.o(E,"createApiFactory")&&e.d(o,{createApiFactory:function(){return E.createApiFactory}}),e.o(E,"createApiRef")&&e.d(o,{createApiRef:function(){return E.createApiRef}}),e.o(E,"createExternalRouteRef")&&e.d(o,{createExternalRouteRef:function(){return E.createExternalRouteRef}}),e.o(E,"createPlugin")&&e.d(o,{createPlugin:function(){return E.createPlugin}}),e.o(E,"createRouteRef")&&e.d(o,{createRouteRef:function(){return E.createRouteRef}}),e.o(E,"useApi")&&e.d(o,{useApi:function(){return E.useApi}}),e.o(E,"useApiHolder")&&e.d(o,{useApiHolder:function(){return E.useApiHolder}}),e.o(E,"useRouteRef")&&e.d(o,{useRouteRef:function(){return E.useRouteRef}}),e.o(E,"useRouteRefParams")&&e.d(o,{useRouteRefParams:function(){return E.useRouteRefParams}});var p=e(96896),h=e(82772)},96896:function(J,o,e){"use strict";e.d(o,{r:function(){return t}});class r{constructor(f){this.config=f}getId(){return this.config.id}getApis(){var f;return(f=this.config.apis)!=null?f:[]}getFeatureFlags(){var f,E;return(E=(f=this.config.featureFlags)==null?void 0:f.slice())!=null?E:[]}get routes(){var f;return(f=this.config.routes)!=null?f:{}}get externalRoutes(){var f;return(f=this.config.externalRoutes)!=null?f:{}}provide(f){return f.expose(this)}toString(){return`plugin{${this.config.id}}`}}function t(c){return new r(c)}},82772:function(J,o,e){var D,P,G;"use strict";e.d(o,{x8:function(){return m},NT:function(){return f},tg:function(){return i},Oi:function(){return S}});var r=e(76241);const t=(0,r.uW)("route-ref-type",()=>Symbol("route-ref-type"));class c{constructor(I,b){q(this,D,"absolute");this.id=I,this.params=b}get title(){return this.id}toString(){return`routeRef{type=absolute,id=${this.id}}`}}D=t;function f(L){var I;return new c(L.id,(I=L.params)!=null?I:[])}const E=/^\w+$/;class s{constructor(I,b,F,K){q(this,P,"sub");this.id=I,this.path=b,this.parent=F,this.params=K}toString(){return`routeRef{type=sub,id=${this.id}}`}}P=t;function p(L){const{id:I,path:b,parent:F}=L,K=b.split("/").filter(pe=>pe.startsWith(":")).map(pe=>pe.substring(1)),ee=[...F.params,...K];if(F.params.some(pe=>K.includes(pe)))throw new Error("SubRouteRef may not have params that overlap with its parent");if(!b.startsWith("/"))throw new Error(`SubRouteRef path must start with '/', got '${b}'`);if(b.endsWith("/"))throw new Error(`SubRouteRef path must not end with '/', got '${b}'`);for(const pe of K)if(!E.test(pe))throw new Error(`SubRouteRef path has invalid param, got '${pe}'`);return new s(I,b,F,ee)}class h{constructor(I,b,F){q(this,G,"external");this.id=I,this.params=b,this.optional=F}toString(){return`routeRef{type=external,id=${this.id}}`}}G=t;function m(L){var I;return new h(L.id,(I=L.params)!=null?I:[],Boolean(L.optional))}var l=e(2784),y=e(10289);function i(L){const I=(0,y.TH)(),b=(0,r.Vt)("routing-context");if(!b)throw new Error("Routing context is not available");const F=b.atVersion(1),K=(0,l.useMemo)(()=>F&&F.resolve(L,I),[F,L,I]);if(!b)throw new Error("useRouteRef used outside of routing context");if(!F)throw new Error("RoutingContext v1 not available");const ee="optional"in L&&L.optional;if(!K&&!ee)throw new Error(`No path for ${L}`);return K}function S(L){return(0,y.UO)()}},41333:function(J,o,e){"use strict";var r={};e.r(r),e.d(r,{TechDocsPlugin:function(){return Ke}});var t=e(2784),c=e(28316),f=e(10289),E=e(49208),s=e(36964),p=e(20221);const h=[(0,s.createApiFactory)({api:s.discoveryApiRef,deps:{configApi:s.configApiRef},factory:({configApi:v})=>E.UrlPatternDiscovery.compile(`${v.getString("backend.baseUrl")}/api/{{ pluginId }}`)}),(0,s.createApiFactory)({api:s.alertApiRef,deps:{},factory:()=>new E.AlertApiForwarder}),(0,s.createApiFactory)({api:s.analyticsApiRef,deps:{},factory:()=>new E.NoOpAnalyticsApi}),(0,s.createApiFactory)({api:s.errorApiRef,deps:{alertApi:s.alertApiRef},factory:({alertApi:v})=>{const M=new E.ErrorAlerter(v,new E.ErrorApiForwarder);return E.UnhandledErrorForwarder.forward(M,{hidden:!1}),M}}),(0,s.createApiFactory)({api:s.storageApiRef,deps:{errorApi:s.errorApiRef},factory:({errorApi:v})=>E.WebStorage.create({errorApi:v})}),(0,s.createApiFactory)({api:s.fetchApiRef,deps:{configApi:s.configApiRef,identityApi:s.identityApiRef,discoveryApi:s.discoveryApiRef},factory:({configApi:v,identityApi:M,discoveryApi:k})=>(0,E.createFetchApi)({middleware:[E.FetchMiddlewares.resolvePluginProtocol({discoveryApi:k}),E.FetchMiddlewares.injectIdentityAuth({identityApi:M,config:v})]})}),(0,s.createApiFactory)({api:s.oauthRequestApiRef,deps:{},factory:()=>new E.OAuthRequestManager}),(0,s.createApiFactory)({api:s.googleAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.GoogleAuth.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.microsoftAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.MicrosoftAuth.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.githubAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.GithubAuth.create({discoveryApi:v,oauthRequestApi:M,defaultScopes:["read:user"],environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.oktaAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.OktaAuth.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.gitlabAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.GitlabAuth.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.auth0AuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.Auth0Auth.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.oauth2ApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.OAuth2.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.samlAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,configApi:M})=>E.SamlAuth.create({discoveryApi:v,environment:M.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.oneloginAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.OneLoginAuth.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.oidcAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.OAuth2.create({discoveryApi:v,oauthRequestApi:M,provider:{id:"oidc",title:"Your Identity Provider",icon:()=>null},environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.bitbucketAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.BitbucketAuth.create({discoveryApi:v,oauthRequestApi:M,defaultScopes:["team"],environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:s.atlassianAuthApiRef,deps:{discoveryApi:s.discoveryApiRef,oauthRequestApi:s.oauthRequestApiRef,configApi:s.configApiRef},factory:({discoveryApi:v,oauthRequestApi:M,configApi:k})=>E.AtlassianAuth.create({discoveryApi:v,oauthRequestApi:M,environment:k.getOptionalString("auth.environment")})}),(0,s.createApiFactory)({api:p.RV,deps:{discovery:s.discoveryApiRef,identity:s.identityApiRef,config:s.configApiRef},factory:({config:v,discovery:M,identity:k})=>p.iM.create({config:v,discovery:M,identity:k})})];var m=e(77277),l=e(9118),y=e(62833);function i({children:v}){return(0,f.GV)()?t.createElement(t.Fragment,null,v):t.createElement(f.VA,null,v)}const S=()=>t.createElement(l.ErrorPage,{status:"404",statusMessage:"PAGE NOT FOUND"}),D=({step:v,error:M})=>{let k="";return v==="load-config"?k=`The configuration failed to load, someone should have a look at this error: ${M.message}`:v==="load-chunk"&&(k=`Lazy loaded chunk failed to load, try to reload the page: ${M.message}`),t.createElement(i,null,t.createElement(l.ErrorPage,{status:"501",statusMessage:k}))},P=({error:v,resetError:M,plugin:k})=>t.createElement(l.ErrorPanel,{title:`Error in ${k==null?void 0:k.getId()}`,defaultExpanded:!0,error:v},t.createElement(m.Z,{variant:"outlined",onClick:M},"Retry")),G={Progress:l.Progress,Router:y.VK,NotFoundErrorPage:S,BootErrorPage:D,ErrorBoundaryFallback:P};var L=e(43642),I=e(80079),b=e(90941),F=e(32915),K=e(40562),ee=e(21853),ie=e(60744),pe=e(66569),Le=e(30254),me=e(13384),ze=e(15933),Te=e(58838),Qe=e(86737),it=e(4989),et=e(44407),gt=e(18628),rt=e(84219),ot=e(98685),Rt=e(39781);const wt={brokenImage:I.Z,catalog:gt.Z,scaffolder:F.Z,techdocs:K.Z,search:ee.Z,chat:ie.Z,dashboard:pe.Z,docs:Le.Z,email:me.Z,github:Te.Z,group:rt.Z,help:Qe.Z,"kind:api":ze.Z,"kind:component":et.Z,"kind:domain":L.Z,"kind:group":rt.Z,"kind:location":it.Z,"kind:system":b.Z,"kind:user":ot.Z,user:ot.Z,warning:Rt.Z};var Lt=e(73689),pt=e(48032);const at={wave:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1368' height='401' x='0' y='0' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M437 116C223 116 112 0 112 0h1256v400c-82 0-225-21-282-109-112-175-436-175-649-175z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1368 400V282C891-29 788 40 711 161 608 324 121 372 0 361v39h1368z'/%3e%3cpath fill='url(%23paint2_linear)' d='M1368 244v156H0V94c92-24 198-46 375 0l135 41c176 51 195 109 858 109z'/%3e%3cpath fill='url(%23paint3_linear)' d='M1252 400h116c-14-7-35-14-116-16-663-14-837-128-1013-258l-85-61C98 28 46 8 0 0v400h1252z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M-172-98h1671v601H-172z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='602' x2='1093.5' y1='-960.5' y2='272' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='482' x2='480' y1='1058.5' y2='70.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='424' x2='446.1' y1='-587.5' y2='274.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='587' x2='349' y1='-1120.5' y2='341' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e")`,wave2:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1764' height='479' x='-229' y='-6' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M0 400h1350C1321 336 525 33 179-2c-345-34-395 236-408 402H0z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1378 177v223H0V217s219 75 327 52C436 246 717-35 965 45s254 144 413 132z'/%3e%3cpath fill='url(%23paint2_linear)' d='M26 400l-78-16c-170 205-44-6-137-30l-4-1 4 1 137 30c37-45 89-110 159-201 399-514-45 238 1176-50 275-65 354-39 91 267H26z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='431' x2='397.3' y1='-599' y2='372.8' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='236.5' x2='446.6' y1='-586' y2='381.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='851.8' x2='640.4' y1='-867.2' y2='363.7' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e")`,round:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='2269' height='1408' x='-610' y='-509' maskUnits='userSpaceOnUse'%3e%3ccircle cx='1212.8' cy='74.8' r='317.5' fill='url(%23paint0_linear)' transform='rotate(-52 1213 75)'/%3e%3ccircle cx='737.8' cy='445.8' r='317.5' fill='url(%23paint1_linear)' transform='rotate(-116 738 446)'/%3e%3ccircle cx='601.8' cy='52.8' r='418.6' fill='url(%23paint2_linear)' transform='rotate(-117 602 53)'/%3e%3ccircle cx='999.8' cy='364' r='389.1' fill='url(%23paint3_linear)' transform='rotate(31 1000 364)'/%3e%3cellipse cx='-109.2' cy='263.5' fill='url(%23paint4_linear)' rx='429.2' ry='465.8' transform='rotate(-85 -109 264)'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='1301.2' x2='161.4' y1='-1879.7' y2='-969.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='826.2' x2='-313.6' y1='-1508.7' y2='-598.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='718.4' x2='-784.3' y1='-2524' y2='-1324.2' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='1108.2' x2='-288.6' y1='-2031.1' y2='-915.9' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint4_linear' x1='10.4' x2='-1626.5' y1='-2603.8' y2='-1399.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e")`},Tt={darkGrey:["#171717","#383838"],marineBlue:["#006D8F","#0049A1"],veryBlue:["#0027AF","#270094"],rubyRed:["#98002B","#8D1134"],toastyOrange:["#BE2200","#A41D00"],purpleSky:["#8912CA","#3E00EA"],eveningSea:["#00FFF2","#035355"],teal:["#005B4B"],pinkSea:["#C8077A","#C2297D"]};function Pt(v,M){const de=`linear-gradient(90deg, ${(v.length===1?[v[0],v[0]]:v).join(", ")})`,Me=`${M}, ${de}`;return{colors:v,shape:M,backgroundImage:Me}}const Ot={home:Pt(Tt.teal,at.wave),documentation:Pt(Tt.pinkSea,at.wave2),tool:Pt(Tt.purpleSky,at.round),service:Pt(Tt.marineBlue,at.wave),website:Pt(Tt.veryBlue,at.wave),library:Pt(Tt.rubyRed,at.wave),other:Pt(Tt.darkGrey,at.wave),app:Pt(Tt.toastyOrange,at.wave),apis:Pt(Tt.teal,at.wave2)},Ft='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif';function mt(v){const{palette:M,fontFamily:k=Ft,defaultPageTheme:de,pageTheme:Me=Ot}=v;if(!Me[de])throw new Error(`${de} is not defined in pageTheme.`);return{palette:M,props:{MuiGrid:{spacing:2},MuiSwitch:{color:"primary"}},typography:{fontFamily:k,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:Me[de],getPageTheme:({themeId:_e})=>{var xe;return(xe=Me[_e])!=null?xe:Me[de]}}}function It(v){return{MuiCssBaseline:{"@global":{html:{height:"100%",fontFamily:v.typography.fontFamily},body:{height:"100%",fontFamily:v.typography.fontFamily,"overscroll-behavior-y":"none"},a:{color:"inherit",textDecoration:"none"}}},MuiTableRow:{root:{"&:nth-of-type(odd)":{backgroundColor:v.palette.background.default}},hover:{"&:hover":{cursor:"pointer"}},head:{"&:nth-of-type(odd)":{backgroundColor:v.palette.background.paper}}},MuiTableCell:{root:{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:v.spacing(3,2,3,2.5),borderBottom:0},sizeSmall:{padding:v.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:v.palette.link,minHeight:24,textTransform:"initial",letterSpacing:"0.07em","&:hover":{color:(0,pt.darken)(v.palette.link,.3),background:(0,pt.lighten)(v.palette.link,.95)},[v.breakpoints.up("md")]:{minWidth:120,fontSize:v.typography.pxToRem(14),fontWeight:500}},textColorPrimary:{color:v.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:v.spacing(1),marginBottom:v.spacing(1),color:v.palette.grey[900]},outlined:{color:v.palette.text.primary},label:{lineHeight:`${v.spacing(2.5)}px`,fontWeight:v.typography.fontWeightMedium,fontSize:`${v.spacing(1.75)}px`},labelSmall:{fontSize:`${v.spacing(1.5)}px`},deleteIcon:{color:v.palette.grey[500],width:`${v.spacing(3)}px`,height:`${v.spacing(3)}px`,margin:`0 ${v.spacing(.75)}px 0 -${v.spacing(.75)}px`},deleteIconSmall:{width:`${v.spacing(2)}px`,height:`${v.spacing(2)}px`,margin:`0 ${v.spacing(.5)}px 0 -${v.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"}}}}function Bt(v){const M=mt(v),k=(0,Lt.Z)(M),de=It(k);return{...k,overrides:de}}var be=e(34505);const st=Bt({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:be.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:Ot}),lt=Bt({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:be.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:Ot});var Ct=e(98192),ae=e(15222),te=e(41547),T=e(87561);const C=[{id:"light",title:"Light Theme",variant:"light",icon:t.createElement(ae.Z,null),Provider:({children:v})=>t.createElement(te.Z,{theme:st},t.createElement(T.ZP,null,v))},{id:"dark",title:"Dark Theme",variant:"dark",icon:t.createElement(Ct.Z,null),Provider:({children:v})=>t.createElement(te.Z,{theme:lt},t.createElement(T.ZP,null,v))}];function B(v){var M,k,de;return(0,E.createSpecializedApp)({...v,apis:(M=v==null?void 0:v.apis)!=null?M:[],bindRoutes:v==null?void 0:v.bindRoutes,components:{...G,...v==null?void 0:v.components},configLoader:v==null?void 0:v.configLoader,defaultApis:h,icons:{...wt,...v==null?void 0:v.icons},plugins:(k=v==null?void 0:v.plugins)!=null?k:[],themes:(de=v==null?void 0:v.themes)!=null?de:C})}var H=e(39398),Y=e(49782),le=e(79692);const Ae=(0,le.Z)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",wordBreak:"break-all",marginBottom:"1rem"}}),ye=({result:v})=>{const M=Ae();return React.createElement(Link,{to:v.location},React.createElement(ListItem,{alignItems:"flex-start",className:M.flexContainer},React.createElement(ListItemText,{className:M.itemText,primaryTypographyProps:{variant:"h6"},primary:v.title,secondary:v.text}),React.createElement(Box,null,v.kind&&React.createElement(Chip,{label:`Kind: ${v.kind}`,size:"small"}),v.lifecycle&&React.createElement(Chip,{label:`Lifecycle: ${v.lifecycle}`,size:"small"}))),React.createElement(Divider,{component:"li"}))};var Be=e(91730),Ie=e(17499),ve=e(52890),Ee=e(19139),Fe=e(95544),St=e(99688),ut=e(12231),Ve=e(86136),oe=e(49378),Ne=e(85256),tt=e(61837),Ue=e(79784),Ze=e(50758),Je=e(49166),V=e(43054);const A="catalog-entity",x={name:"catalog.entity.read",attributes:{action:"read"},resourceType:A},z={name:"catalog.entity.create",attributes:{action:"create"},resourceType:A},_={name:"catalog.entity.delete",attributes:{action:"delete"},resourceType:A},Oe={name:"catalog.entity.refresh",attributes:{action:"update"},resourceType:A},ge={name:"catalog.location.read",attributes:{action:"read"}},Re={name:"catalog.location.create",attributes:{action:"create"}},De={name:"catalog.location.delete",attributes:{action:"delete"}},$e=(0,le.Z)({button:{color:"white"}}),Et=({UNSTABLE_extraContextMenuItems:v,UNSTABLE_contextMenuOptions:M,onUnregisterEntity:k})=>{var $t;const[de,Me]=(0,t.useState)(),_e=$e(),xe=(0,Ee.useEntityPermission)(_),Xe=vt=>{Me(vt.currentTarget)},dt=()=>{Me(void 0)},ft=v&&[...v.map(vt=>t.createElement(ut.Z,{key:vt.title,onClick:()=>{dt(),vt.onClick()}},t.createElement(Ve.Z,null,t.createElement(vt.Icon,{fontSize:"small"})),t.createElement(oe.Z,{primary:vt.title}))),t.createElement(Ne.Z,{key:"the divider is here!"})],Jt=($t=!xe.allowed||(M==null?void 0:M.disableUnregister))!=null?$t:!1;return t.createElement(t.Fragment,null,t.createElement(tt.Z,{"aria-label":"more","aria-controls":"long-menu","aria-haspopup":"true",onClick:Xe,"data-testid":"menu-button",className:_e.button},t.createElement(V.Z,null)),t.createElement(Ue.ZP,{open:Boolean(de),onClose:dt,anchorEl:de,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},t.createElement(Ze.Z,null,ft,t.createElement(ut.Z,{onClick:()=>{dt(),k()},disabled:Jt},t.createElement(Ve.Z,null,t.createElement(Je.Z,{fontSize:"small"})),t.createElement(oe.Z,{primary:"Unregister entity"})))))},ne="plugin.catalog.entityLayoutRoute",Z=()=>null;(0,s.attachComponentData)(Z,ne,!0),(0,s.attachComponentData)(Z,"core.gatherMountPoints",!0);const Q=({entity:v,title:M})=>t.createElement(Fe.Z,{display:"inline-flex",alignItems:"center",height:"1em",maxWidth:"100%"},t.createElement(Fe.Z,{component:"span",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},M),v&&t.createElement(Ee.FavoriteEntity,{entity:v})),he=(v,M,k,de)=>{var Xe,dt,ft,Jt,$t;const Me=(Xe=v!=null?v:de==null?void 0:de.kind)!=null?Xe:"",_e=(dt=M!=null?M:de==null?void 0:de.metadata.namespace)!=null?dt:"";return{headerTitle:`${($t=(Jt=(ft=de==null?void 0:de.metadata.title)!=null?ft:k)!=null?Jt:de==null?void 0:de.metadata.name)!=null?$t:""}${_e&&_e!==ve.sk?` in ${_e}`:""}`,headerType:(()=>{let vt=Me.toLocaleLowerCase("en-US");return de&&de.spec&&"type"in de.spec&&(vt+=" \u2014 ",vt+=de.spec.type.toLocaleLowerCase("en-US")),vt})()}},we=({entity:v})=>{var k;const M=(0,Ee.getEntityRelations)(v,ve.S4);return t.createElement(t.Fragment,null,M.length>0&&t.createElement(l.HeaderLabel,{label:"Owner",value:t.createElement(Ee.EntityRefLinks,{entityRefs:M,defaultKind:"Group",color:"inherit"})}),((k=v.spec)==null?void 0:k.lifecycle)&&t.createElement(l.HeaderLabel,{label:"Lifecycle",value:v.spec.lifecycle}))},je=({UNSTABLE_extraContextMenuItems:v,UNSTABLE_contextMenuOptions:M,children:k})=>{var Hn,Vn,wr;const{kind:de,namespace:Me,name:_e}=(0,Ee.useEntityCompoundName)(),{entity:xe,loading:Xe,error:dt}=(0,t.useContext)(Ee.EntityContext),ft=(0,s.useElementFilter)(k,ca=>ca.selectByComponentData({key:ne,withStrictError:"Child of EntityLayout must be an EntityLayout.Route"}).getElements().flatMap(({props:jn})=>jn.if&&xe&&!jn.if(xe)?[]:[{path:jn.path,title:jn.title,children:jn.children,tabProps:jn.tabProps}]),[xe]),{headerTitle:Jt,headerType:$t}=he(de,Me,_e,xe),[vt,En]=(0,t.useState)(!1),cn=(0,f.s0)(),Nn=async()=>{En(!1),cn("/")},er=()=>En(!0);return t.createElement(l.Page,{themeId:(wr=(Vn=(Hn=xe==null?void 0:xe.spec)==null?void 0:Hn.type)==null?void 0:Vn.toString())!=null?wr:"home"},t.createElement(l.Header,{title:t.createElement(Q,{title:Jt,entity:xe}),pageTitleOverride:Jt,type:$t},xe&&t.createElement(t.Fragment,null,t.createElement(we,{entity:xe}),t.createElement(Et,{UNSTABLE_extraContextMenuItems:v,UNSTABLE_contextMenuOptions:M,onUnregisterEntity:er}))),Xe&&t.createElement(l.Progress,null),xe&&t.createElement(l.RoutedTabs,{routes:ft}),dt&&t.createElement(l.Content,null,t.createElement(St.Z,{severity:"error"},dt.toString())),!Xe&&!dt&&!xe&&t.createElement(l.Content,null,t.createElement(l.WarningPanel,{title:"Entity not found"},"There is no ",de," with the requested"," ",t.createElement(l.Link,{to:"https://backstage.io/docs/features/software-catalog/references"},"kind, namespace, and name"),".")),t.createElement(Ee.UnregisterEntityDialog,{open:vt,entity:xe,onConfirm:Nn,onClose:()=>En(!1)}))};je.Route=Z;var nt=e(10179);const xt=({open:v,onClose:M,onConfirm:k,entity:de})=>{const[Me,_e]=useState(!1),xe=useApi(catalogApiRef),Xe=useApi(alertApiRef),dt=async()=>{_e(!0);try{const ft=de.metadata.uid;await xe.removeEntityByUid(ft),k()}catch(ft){assertError(ft),Xe.post({message:ft.message})}finally{_e(!1)}};return React.createElement(Dialog,{open:v,onClose:M},React.createElement(DialogTitle,{id:"responsive-dialog-title"},"Are you sure you want to delete this entity?"),React.createElement(DialogActions,null,React.createElement(Button,{variant:"contained",color:"secondary",disabled:Me,onClick:dt},"Delete"),React.createElement(Button,{onClick:M,color:"primary"},"Cancel")))},en=v=>{var M,k;return((k=(M=v==null?void 0:v.metadata)==null?void 0:M.annotations)==null?void 0:k["backstage.io/orphan"])==="true"},ln=()=>{const v=useNavigate(),M=useRouteRef(catalogRouteRef),[k,de]=useState(!1),{entity:Me}=useEntity(),_e=async()=>{de(!1),v(M())};return React.createElement(React.Fragment,null,React.createElement(Alert,{severity:"warning",onClick:()=>de(!0)},"This entity is not referenced by any location and is therefore not receiving updates. Click here to delete."),React.createElement(DeleteEntityDialog,{open:k,entity:Me,onConfirm:_e,onClose:()=>de(!1)}))};var Zn=e(30001);const Sn=v=>v.error&&v.level==="error"&&v.type===ENTITY_STATUS_CATALOG_PROCESSING_TYPE;async function yn(v,M){return{items:(await M.getEntityAncestors({entityRef:v})).items.map(Me=>{var Xe,dt;return{errors:((dt=(Xe=Me.entity.status)==null?void 0:Xe.items)!=null?dt:[]).filter(Sn).map(ft=>ft.error).filter(ft=>Boolean(ft)),entity:Me.entity}}).filter(Me=>Me.errors.length>0)}}const yt=async(v,M)=>{const k=M.apis.get(catalogApiRef);if(!k)throw new Error(`No implementation available for ${catalogApiRef}`);return(await yn(stringifyEntityRef(v),k)).items.length>0},jt=()=>{const{entity:v}=useEntity(),M=stringifyEntityRef(v),k=useApi(catalogApiRef),{loading:de,error:Me,value:_e}=useAsync(async()=>yn(M,k),[M,k]);return Me?React.createElement(Box,{mb:1},React.createElement(ResponseErrorPanel,{error:Me})):de||!_e?null:React.createElement(React.Fragment,null,_e.items.map((xe,Xe)=>React.createElement(Box,{key:Xe,mb:1},!compareEntityToRef(v,stringifyEntityRef(xe.entity))&&React.createElement(Box,{p:1},"The error below originates from"," ",React.createElement(EntityRefLink,{entityRef:xe.entity})),xe.errors.map((dt,ft)=>React.createElement(ResponseErrorPanel,{key:ft,error:dt})))))};var fn=e(18671);const On=(v,M,k=0)=>{if(!v)return k;const de=M.findIndex(Me=>Me.id===v.route.path);return~de?de:k},Wt={Layout:({children:v})=>{var $t,vt,En;const M=[],k=[],de=(0,f.UO)(),Me=(0,f.s0)();t.Children.forEach(v,cn=>{if(!t.isValidElement(cn))return;if(cn.type!==Wt.Content)throw new Error("This component only accepts Content elements as direct children. Check the code of the EntityPage.");const Nn=cn.props.path;k.push({id:Nn,label:cn.props.title}),M.push({path:Nn,element:cn.props.element})}),((vt=($t=M==null?void 0:M[0])==null?void 0:$t.path)!=null?vt:"")!==""&&M.push({path:"/*",element:t.createElement(f.Fg,{to:M[0].path})});const[_e]=(En=(0,f.fp)(M,`/${de["*"]}`))!=null?En:[],xe=On(_e,k),Xe=k[xe],dt=Xe==null?void 0:Xe.label,ft=cn=>Me(k[cn].id.replace(/\/\*$/,"").replace(/^\//,"")),Jt=(0,f.V$)(M);return Xe?t.createElement(t.Fragment,null,t.createElement(l.HeaderTabs,{tabs:k,selectedIndex:xe,onChange:ft}),t.createElement(l.Content,null,t.createElement(fn.q,{title:dt}),Jt)):null},Content:v=>null},$n=({entity:v,title:M})=>t.createElement(Fe.Z,{display:"inline-flex",alignItems:"center",height:"1em"},M,v&&t.createElement(Ee.FavoriteEntity,{entity:v})),or=({entity:v})=>{var k;const M=(0,Ee.getEntityRelations)(v,ve.S4);return t.createElement(t.Fragment,null,M.length>0&&t.createElement(l.HeaderLabel,{label:"Owner",value:t.createElement(Ee.EntityRefLinks,{entityRefs:M,defaultKind:"Group",color:"inherit"})}),((k=v.spec)==null?void 0:k.lifecycle)&&t.createElement(l.HeaderLabel,{label:"Lifecycle",value:v.spec.lifecycle}))},sr=(v,M,k,de)=>({headerTitle:`${k}${M&&M!==ve.sk?` in ${M}`:""}`,headerType:(()=>{let Me=v.toLocaleLowerCase("en-US");return de&&de.spec&&"type"in de.spec&&(Me+=" \u2014 ",Me+=de.spec.type.toLocaleLowerCase("en-US")),Me})()}),Ar=({children:v,UNSTABLE_extraContextMenuItems:M,UNSTABLE_contextMenuOptions:k})=>{var er,Hn,Vn;const{kind:de,namespace:Me,name:_e}=(0,Ee.useEntityCompoundName)(),{entity:xe,loading:Xe,error:dt}=(0,t.useContext)(Ee.EntityContext),{headerTitle:ft,headerType:Jt}=sr(de,Me,_e,xe),[$t,vt]=(0,t.useState)(!1),En=(0,f.s0)(),cn=async()=>{vt(!1),En("/")},Nn=()=>vt(!0);return t.createElement(l.Page,{themeId:(Vn=(Hn=(er=xe==null?void 0:xe.spec)==null?void 0:er.type)==null?void 0:Hn.toString())!=null?Vn:"home"},t.createElement(l.Header,{title:t.createElement($n,{title:ft,entity:xe}),pageTitleOverride:ft,type:Jt},xe&&t.createElement(t.Fragment,null,t.createElement(or,{entity:xe}),t.createElement(Et,{UNSTABLE_extraContextMenuItems:M,UNSTABLE_contextMenuOptions:k,onUnregisterEntity:Nn}))),Xe&&t.createElement(l.Content,null,t.createElement(l.Progress,null)),xe&&t.createElement(Wt.Layout,null,v),dt&&t.createElement(l.Content,null,t.createElement(l.ResponseErrorPanel,{error:dt})),!Xe&&!dt&&!xe&&t.createElement(l.Content,null,t.createElement(l.WarningPanel,{title:"Entity not found"},"There is no ",de," with the requested"," ",t.createElement(l.Link,{to:"https://backstage.io/docs/features/software-catalog/references"},"kind, namespace, and name"),".")),t.createElement(Ee.UnregisterEntityDialog,{open:$t,entity:xe,onConfirm:cn,onClose:()=>vt(!1)}))};Ar.Content=Wt.Content;var wn=e(64279);const Fn="core.backstage.entitySwitch",Qn=v=>null;(0,s.attachComponentData)(Qn,Fn,!0);const ir=({children:v})=>{var _e,xe;const{entity:M}=(0,Ee.useEntity)(),k=(0,s.useApiHolder)(),de=(0,s.useElementFilter)(v,Xe=>Xe.selectByComponentData({key:Fn,withStrictError:"Child of EntitySwitch is not an EntitySwitch.Case"}).getElements().flatMap(dt=>{var $t;const{if:ft,children:Jt}=dt.props;return[{if:($t=ft==null?void 0:ft(M,{apis:k}))!=null?$t:!0,children:Jt}]}),[k,M]);return de.some(Xe=>typeof Xe.if=="object"&&"then"in Xe.if)?t.createElement(vr,{results:de}):(xe=(_e=de.find(Xe=>Xe.if))==null?void 0:_e.children)!=null?xe:null};function vr({results:v}){const{loading:M,value:k}=(0,wn.default)(async()=>{var Me;const de=v.map(async({if:_e,children:xe})=>{try{if(await _e)return xe}catch{}return null});return(Me=(await Promise.all(de)).find(Boolean))!=null?Me:null},[v]);return M||!k?null:k}ir.Case=Qn;var Wn=e(26997),qr=e(7758),Rr=e(219);const lr=(0,le.Z)(v=>({illo:{maxWidth:"60%",top:100,right:20,position:"absolute",[v.breakpoints.down("xs")]:{maxWidth:"96%",position:"relative",top:"unset",right:"unset",margin:`${v.spacing(10)}px auto ${v.spacing(4)}px`}}})),Sr=()=>{const v=lr();return React.createElement("img",{src:IlloSvgUrl,className:v.illo,alt:"Illustration on entity not found page"})},Xn=(0,le.Z)(v=>({container:{paddingTop:v.spacing(24),paddingLeft:v.spacing(8),[v.breakpoints.down("xs")]:{padding:v.spacing(2)}},title:{paddingBottom:v.spacing(2),[v.breakpoints.down("xs")]:{fontSize:32}},body:{paddingBottom:v.spacing(6),[v.breakpoints.down("xs")]:{paddingBottom:v.spacing(5)}}})),Cr=()=>{const v=Xn();return React.createElement(Grid,{container:!0,spacing:0,className:v.container},React.createElement(Illo,null),React.createElement(Grid,{item:!0,xs:12,sm:6},React.createElement(Typography,{variant:"h2",className:v.title},"Entity was not found"),React.createElement(Typography,{variant:"body1",className:v.body},"Want to help us build this? Check out our Getting Started documentation."),React.createElement(Button,{variant:"contained",color:"primary",href:"https://backstage.io/docs"},"DOCS")))},kn=()=>React.createElement(EntityPageLayout,null,React.createElement(EntityPageLayout.Content,{path:"/",title:"Overview",element:React.createElement(Content,null,React.createElement(Typography,{variant:"h2"},"This is the default entity page."),React.createElement(Typography,{variant:"body1"},"To override this component with your custom implementation, read docs on"," ",React.createElement(Link,{to:"https://backstage.io/docs"},"backstage.io/docs")))})),qn=({EntityPage:v})=>{const{entity:M,loading:k,error:de}=useEntity();return k?React.createElement(EntityPageLayout,null):de||!M?React.createElement(EntityNotFound,null):React.createElement(v,null)},Bn=()=>{var xe;const{optionalNamespaceAndName:v,"*":M}=useParams(),[k,de]=v.split(":").reverse(),Me=(xe=de==null?void 0:de.toLocaleLowerCase("en-US"))!=null?xe:ENTITY_DEFAULT_NAMESPACE,_e=M?`/${M}`:"";return React.createElement(Navigate,{to:`../../${Me}/component/${k}${_e}`})},cr=v=>React.createElement(AsyncEntityProvider,{...useEntityFromUrl(),...v}),xn=({EntityPage:v=kn})=>React.createElement(Routes,null,React.createElement(Route,{path:"/",element:React.createElement(CatalogPage,null)}),React.createElement(Route,{path:"/:namespace/:kind/:name",element:React.createElement(cr,null,React.createElement(qn,{EntityPage:v}))}),React.createElement(Route,{path:"Component/:optionalNamespaceAndName/*",element:React.createElement(Bn,null)}));var mn=e(47851);const nn=(0,s.createPlugin)({id:"catalog",apis:[(0,s.createApiFactory)({api:Ee.Ah,deps:{discoveryApi:s.discoveryApiRef,fetchApi:s.fetchApiRef},factory:({discoveryApi:v,fetchApi:M})=>new Zn.MS({discoveryApi:v,fetchApi:M})}),(0,s.createApiFactory)({api:Ee.starredEntitiesApiRef,deps:{storageApi:s.storageApiRef},factory:({storageApi:v})=>new Ee.DefaultStarredEntitiesApi({storageApi:v})})],routes:{catalogIndex:Ee.M4,catalogEntity:Ee.wi},externalRoutes:{createComponent:mn.y,viewTechDoc:mn.j}}),Tr=nn.provide((0,s.createRoutableExtension)({name:"CatalogIndexPage",component:()=>Promise.resolve().then(e.bind(e,7758)).then(v=>v.CatalogPage),mountPoint:Ee.M4})),Pr=nn.provide((0,s.createRoutableExtension)({name:"CatalogEntityPage",component:()=>e.e(6650).then(e.bind(e,76650)).then(v=>v.CatalogEntityPage),mountPoint:Ee.wi})),Ir=nn.provide((0,s.createComponentExtension)({name:"EntityAboutCard",component:{lazy:()=>Promise.resolve().then(e.bind(e,39398)).then(v=>v.AboutCard)}})),Lr=nn.provide((0,s.createComponentExtension)({name:"EntityLinksCard",component:{lazy:()=>e.e(1959).then(e.bind(e,81959)).then(v=>v.EntityLinksCard)}})),ur=nn.provide((0,s.createComponentExtension)({name:"EntityHasSystemsCard",component:{lazy:()=>e.e(390).then(e.bind(e,60390)).then(v=>v.HasSystemsCard)}})),Or=nn.provide((0,s.createComponentExtension)({name:"EntityHasComponentsCard",component:{lazy:()=>e.e(4022).then(e.bind(e,4022)).then(v=>v.HasComponentsCard)}})),xr=nn.provide((0,s.createComponentExtension)({name:"EntityHasSubcomponentsCard",component:{lazy:()=>e.e(8792).then(e.bind(e,38792)).then(v=>v.HasSubcomponentsCard)}})),Dr=nn.provide((0,s.createComponentExtension)({name:"EntityHasResourcesCard",component:{lazy:()=>e.e(1553).then(e.bind(e,11553)).then(v=>v.HasResourcesCard)}})),br=nn.provide((0,s.createComponentExtension)({name:"EntityDependsOnComponentsCard",component:{lazy:()=>e.e(8061).then(e.bind(e,48061)).then(v=>v.DependsOnComponentsCard)}})),_r=nn.provide((0,s.createComponentExtension)({name:"EntityDependencyOfComponentsCard",component:{lazy:()=>e.e(6235).then(e.bind(e,56235)).then(v=>v.DependencyOfComponentsCard)}})),Fr=nn.provide((0,s.createComponentExtension)({name:"EntityDependsOnResourcesCard",component:{lazy:()=>e.e(9028).then(e.bind(e,59028)).then(v=>v.DependsOnResourcesCard)}})),Br=nn.provide((0,s.createComponentExtension)({name:"EntitySystemDiagramCard",component:{lazy:()=>e.e(4960).then(e.bind(e,14960)).then(v=>v.SystemDiagramCard)}})),ea=nn.provide((0,s.createComponentExtension)({name:"RelatedEntitiesCard",component:{lazy:()=>e.e(2426).then(e.bind(e,62426)).then(v=>v.RelatedEntitiesCard)}}));var Mn=e(3337),dr=e(76372);class fr{constructor(M){q(this,"configApi");q(this,"discoveryApi");q(this,"fetchApi");this.configApi=M.configApi,this.discoveryApi=M.discoveryApi,this.fetchApi=M.fetchApi}async getApiOrigin(){var M;return(M=this.configApi.getOptionalString("techdocs.requestUrl"))!=null?M:await this.discoveryApi.getBaseUrl("techdocs")}async getTechDocsMetadata(M){const{kind:k,namespace:de,name:Me}=M,xe=`${await this.getApiOrigin()}/metadata/techdocs/${de}/${k}/${Me}`,Xe=await this.fetchApi.fetch(`${xe}`);if(!Xe.ok)throw await nt.VL.fromResponse(Xe);return await Xe.json()}async getEntityMetadata(M){const{kind:k,namespace:de,name:Me}=M,xe=`${await this.getApiOrigin()}/metadata/entity/${de}/${k}/${Me}`,Xe=await this.fetchApi.fetch(`${xe}`);if(!Xe.ok)throw await nt.VL.fromResponse(Xe);return await Xe.json()}}class mr{constructor(M){q(this,"configApi");q(this,"discoveryApi");q(this,"identityApi");q(this,"fetchApi");this.configApi=M.configApi,this.discoveryApi=M.discoveryApi,this.identityApi=M.identityApi,this.fetchApi=M.fetchApi}async getApiOrigin(){var M;return(M=this.configApi.getOptionalString("techdocs.requestUrl"))!=null?M:await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){var M;return(M=this.configApi.getOptionalString("techdocs.storageUrl"))!=null?M:`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(M,k){const{kind:de,namespace:Me,name:_e}=M,Xe=`${await this.getStorageUrl()}/${Me}/${de}/${_e}/${k}`,dt=await this.fetchApi.fetch(`${Xe.endsWith("/")?Xe:`${Xe}/`}index.html`);let ft="";switch(dt.status){case 404:throw ft="Page not found. ",k||(ft+="This could be because there is no index.md file in the root of the docs directory of this repository."),new nt.dR(ft);case 500:throw ft="Could not generate documentation or an error in the TechDocs backend. ",new Error(ft);default:break}return dt.text()}async syncEntityDocs(M,k=()=>{}){const{kind:de,namespace:Me,name:_e}=M,Xe=`${await this.getApiOrigin()}/sync/${Me}/${de}/${_e}`,{token:dt}=await this.identityApi.getCredentials();return new Promise((ft,Jt)=>{const $t=new dr.EventSourcePolyfill(Xe,{withCredentials:!0,headers:dt?{Authorization:`Bearer ${dt}`}:{}});$t.addEventListener("log",vt=>{vt.data&&k(JSON.parse(vt.data))}),$t.addEventListener("finish",vt=>{let En=!1;vt.data&&({updated:En}=JSON.parse(vt.data)),ft(En?"updated":"cached")}),$t.onerror=vt=>{switch($t.close(),vt.status){case 404:Jt(new nt.dR(vt.message));return;default:Jt(new Error(vt.data));return}}})}async getBaseUrl(M,k,de){const{kind:Me,namespace:_e,name:xe}=k,dt=`${await this.getApiOrigin()}/static/docs/${_e}/${Me}/${xe}/${de}`;return new URL(M,dt.endsWith("/")?dt:`${dt}/`).toString()}}var Mr=e(71226),hr=e(95074),gr=e(76635),Nr=e(83201),zn=e(50294),w=e(67430);const N=({columns:v,actions:M})=>{var $t,vt;const{loading:k,error:de,entities:Me,filters:_e}=(0,Ee.useEntityListProvider)(),{isStarredEntity:xe,toggleStarredEntity:Xe}=(0,Ee.useStarredEntities)(),[,dt]=(0,hr.Z)(),ft=(0,gr.capitalize)((vt=($t=_e.user)==null?void 0:$t.value)!=null?vt:"all"),Jt=[zn.createCopyDocsUrlAction(dt),zn.createStarEntityAction(xe,Xe)];return de?t.createElement(l.WarningPanel,{severity:"error",title:"Could not load available documentation."},t.createElement(l.CodeSnippet,{language:"text",text:de.toString()})):t.createElement(Nr.DocsTable,{title:ft,entities:Me,loading:k,actions:M||Jt,columns:v})};N.columns=w,N.actions=zn;var $=e(1114);class X{getCatalogFilters(){return{"metadata.annotations.backstage.io/techdocs-ref":Ee.n3}}}const ue=()=>{const{updateFilters:v}=(0,Ee.useEntityListProvider)();return(0,t.useEffect)(()=>{v({techdocs:new X})},[v]),null},se=({initialFilter:v="all",columns:M,actions:k})=>t.createElement($.j,null,t.createElement(l.Content,null,t.createElement(l.ContentHeader,{title:""},t.createElement(l.SupportButton,null,"Discover documentation in your ecosystem.")),t.createElement(Ee.EntityListProvider,null,t.createElement(Wn.q7,null,t.createElement(Wn.Gh,null,t.createElement(ue,null),t.createElement(Ee.UserListPicker,{initialFilter:v}),t.createElement(Ee.EntityOwnerPicker,null),t.createElement(Ee.EntityTagPicker,null)),t.createElement(Wn.Nz,null,t.createElement(N,{actions:k,columns:M}))))));var fe=e(10187);const Ge=()=>{const{loading:v,error:M,entities:k}=useEntityListProvider();return M?React.createElement(WarningPanel,{severity:"error",title:"Could not load available documentation."},React.createElement(CodeSnippet,{language:"text",text:M.toString()})):v||!k?React.createElement(Progress,null):(k.sort((de,Me)=>{var _e,xe;return((_e=de.metadata.title)!=null?_e:de.metadata.name).localeCompare((xe=Me.metadata.title)!=null?xe:Me.metadata.name)}),React.createElement(DocsCardGrid,{entities:k}))};var We=e(68725);const Ke=(0,s.createPlugin)({id:"techdocs",apis:[(0,s.createApiFactory)({api:Mn.D,deps:{configApi:s.configApiRef,discoveryApi:s.discoveryApiRef,identityApi:s.identityApiRef,fetchApi:s.fetchApiRef},factory:({configApi:v,discoveryApi:M,identityApi:k,fetchApi:de})=>new mr({configApi:v,discoveryApi:M,identityApi:k,fetchApi:de})}),(0,s.createApiFactory)({api:Mn.g,deps:{configApi:s.configApiRef,discoveryApi:s.discoveryApiRef,fetchApi:s.fetchApiRef},factory:({configApi:v,discoveryApi:M,fetchApi:k})=>new fr({configApi:v,discoveryApi:M,fetchApi:k})})],routes:{root:We._Z,docRoot:We.Fw,entityContent:We.pd}}),ct=Ke.provide((0,s.createRoutableExtension)({name:"TechdocsPage",component:()=>Promise.resolve().then(e.bind(e,94067)).then(v=>v.Router),mountPoint:We._Z})),Ye=Ke.provide((0,s.createRoutableExtension)({name:"EntityTechdocsContent",component:()=>Promise.resolve().then(e.bind(e,94067)).then(v=>v.EmbeddedDocsRouter),mountPoint:We.pd})),He=Ke.provide((0,s.createComponentExtension)({name:"DocsCardGrid",component:{lazy:()=>Promise.resolve().then(e.bind(e,10187)).then(v=>v.DocsCardGrid)}})),At=Ke.provide((0,s.createComponentExtension)({name:"DocsTable",component:{lazy:()=>Promise.resolve().then(e.bind(e,83201)).then(v=>v.DocsTable)}})),Dt=Ke.provide((0,s.createRoutableExtension)({name:"TechDocsCustomHome",component:()=>Promise.resolve().then(e.bind(e,57110)).then(v=>v.TechDocsCustomHome),mountPoint:We._Z})),Nt=Ke.provide((0,s.createRoutableExtension)({name:"TechDocsIndexPage",component:()=>Promise.resolve().then(e.bind(e,41481)).then(v=>v.TechDocsIndexPage),mountPoint:We._Z})),Ut=Ke.provide((0,s.createRoutableExtension)({name:"TechDocsReaderPage",component:()=>Promise.resolve().then(e.bind(e,31752)).then(v=>v.TechDocsPage),mountPoint:We.Fw}));var zt=e(73873),kt=e(94067),rn=e(36356);class Zt{constructor({configApi:M,discoveryApi:k,identityApi:de}){q(this,"configApi");q(this,"discoveryApi");q(this,"identityApi");this.configApi=M,this.discoveryApi=k,this.identityApi=de}async getApiOrigin(){var M;return(M=this.configApi.getOptionalString("techdocs.requestUrl"))!=null?M:await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){var M;return(M=this.configApi.getOptionalString("techdocs.storageUrl"))!=null?M:`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(M,k){const Me=`${await this.getApiOrigin()}/${k}`,_e=await fetch(`${Me.endsWith("/")?Me:`${Me}/`}index.html`);if(_e.status===404)throw new Error("Page not found");return _e.text()}async syncEntityDocs(M){return"cached"}async getBaseUrl(M,k,de){const Me=await this.getApiOrigin();return new URL(M,`${Me}/${de}`).toString()}}class Cn{constructor({configApi:M,discoveryApi:k,identityApi:de}){q(this,"configApi");q(this,"discoveryApi");q(this,"identityApi");this.configApi=M,this.discoveryApi=k,this.identityApi=de}async getApiOrigin(){var M;return(M=this.configApi.getOptionalString("techdocs.requestUrl"))!=null?M:await this.discoveryApi.getBaseUrl("techdocs")}async getEntityMetadata(M){return{apiVersion:"backstage.io/v1alpha1",kind:"Component",metadata:{name:"local"},spec:{owner:"test",lifecycle:"experimental"}}}async getTechDocsMetadata(M){return{site_name:"Live preview environment",site_description:""}}}const Gt=[(0,s.createApiFactory)({api:Mn.D,deps:{configApi:s.configApiRef,discoveryApi:s.discoveryApiRef,identityApi:s.identityApiRef},factory:({configApi:v,discoveryApi:M,identityApi:k})=>new Zt({configApi:v,discoveryApi:M,identityApi:k})}),(0,s.createApiFactory)({api:Mn.g,deps:{configApi:s.configApiRef,discoveryApi:s.discoveryApiRef,identityApi:s.identityApiRef},factory:({configApi:v,discoveryApi:M,identityApi:k})=>new Cn({configApi:v,discoveryApi:M,identityApi:k})}),(0,s.createApiFactory)({api:rn.q3,deps:{configApi:s.configApiRef},factory:({configApi:v})=>rn.ae.fromConfig(v)})];var Yt=e(86689),Dn=e(58845);const _n=(0,le.Z)({svg:{width:"auto",height:30},path:{fill:"#7df3e1"}});var na=()=>{const v=_n();return t.createElement("svg",{className:v.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2079.95 456.05"},t.createElement("path",{className:v.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 Ur=(0,le.Z)({svg:{width:"auto",height:28},path:{fill:"#7df3e1"}});var Ta=()=>{const v=Ur();return t.createElement("svg",{className:v.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 337.46 428.5"},t.createElement("path",{className:v.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 ra=(0,le.Z)({root:{width:l.sidebarConfig.drawerWidthClosed,height:3*l.sidebarConfig.logoHeight,display:"flex",flexFlow:"row nowrap",alignItems:"center",marginBottom:-14},link:{width:l.sidebarConfig.drawerWidthClosed,marginLeft:24}}),aa=()=>{const v=ra(),{isOpen:M}=(0,t.useContext)(l.SidebarContext);return t.createElement("div",{className:v.root},t.createElement(Yt.Z,{component:y.OL,to:"/docs/default/component/local/",underline:"none",className:v.link},M?t.createElement(na,null):t.createElement(Ta,null)))},Pa=({children:v})=>t.createElement(l.SidebarPage,null,t.createElement(l.Sidebar,null,t.createElement(aa,null),t.createElement(l.SidebarDivider,null),t.createElement(l.SidebarItem,{icon:Dn.Z,to:"docs/default/component/local/",text:"Docs Preview"})),v),oa=()=>{const v={site_name:"Live preview environment",site_description:""};return t.createElement(zt.EV,null,({entityRef:M,onReady:k})=>t.createElement(t.Fragment,null,t.createElement(zt.nN,{techDocsMetadata:v,entityRef:M}),t.createElement(l.Content,{"data-testid":"techdocs-content"},t.createElement(zt.Ej,{onReady:k,entityRef:M,withSearch:!1}))))},sa=t.createElement(oa,null),Zr=B({apis:Gt,plugins:Object.values(r)}),$r=Zr.getProvider(),pr=Zr.getRouter(),ia=t.createElement(E.FlatRoutes,null,t.createElement(f.Fg,{key:"/",to:"/docs/default/component/local/"}),t.createElement(f.AW,{path:"/catalog/:namespace/:kind/:name",element:t.createElement(Pr,null)}),t.createElement(f.AW,{path:"/docs",element:t.createElement(Nt,null)},t.createElement(se,null)),t.createElement(f.AW,{path:"/docs/:namespace/:kind/:name/*",element:t.createElement(Ut,null)},sa));var la=()=>t.createElement($r,null,t.createElement(pr,null,t.createElement(Pa,null,ia)));c.render(t.createElement(la,null),document.getElementById("root"))},10179:function(J,o,e){"use strict";e.d(o,{SP:function(){return D},dR:function(){return y},VL:function(){return G},BD:function(){return t}});function r(L){if(typeof L!="object"||L===null||Array.isArray(L))return!1;const I=L;return!(typeof I.name!="string"||I.name===""||typeof I.message!="string")}function t(L){if(typeof L!="object"||L===null||Array.isArray(L))throw new Error(`Encountered invalid error, not an object, got '${L}'`);const I=L;if(typeof I.name!="string"||I.name==="")throw new Error(`Encountered error object without a name, got '${L}'`);if(typeof I.message!="string")throw new Error(`Encountered error object without a message, got '${L}'`)}var c=e(24852);function f(L,I){const b=serializeErrorInternal(L),F={name:"Unknown",message:"<no reason given>",...b};return(I==null?void 0:I.includeStack)||delete F.stack,F}function E(L){const I=(0,c.deserializeError)(L);return L.stack||(I.stack=void 0),I}function s(L){if(r(L)){const I=String(L);return I!=="[object Object]"?I:`${L.name}: ${L.message}`}return`unknown error '${L}'`}class p extends Error{constructor(I,b){var K;let F=I;if(b!==void 0){const ee=s(b);F?F+=`; caused by ${ee}`:F=`caused by ${ee}`}super(F);q(this,"cause");(K=Error.captureStackTrace)==null||K.call(Error,this,this.constructor),this.name=this.constructor.name,this.cause=r(b)?b:void 0}}class h extends null{}class m extends null{}class l extends null{}class y extends p{}class i extends null{}class S extends null{}class D extends p{constructor(I,b){super(I,b);this.name=r(b)?b.name:"Error"}}async function P(L){var I;try{const b=await L.text();if(b){if((I=L.headers.get("content-type"))==null?void 0:I.startsWith("application/json"))try{const F=JSON.parse(b);if(F.error&&F.response)return F}catch{}return{error:{name:"Error",message:`Request failed with status ${L.status} ${L.statusText}, ${b}`},response:{statusCode:L.status}}}}catch{}return{error:{name:"Error",message:`Request failed with status ${L.status} ${L.statusText}`},response:{statusCode:L.status}}}class G extends Error{constructor(I){super(I.message);q(this,"response");q(this,"body");q(this,"cause");this.name="ResponseError",this.response=I.response,this.body=I.data,this.cause=I.cause}static async fromResponse(I){const b=await P(I),F=b.response.statusCode||I.status,K=b.error.name||I.statusText,ee=`Request failed with ${F} ${K}`,ie=E(b.error);return new G({message:ee,response:I,data:b,cause:ie})}}},36356:function(J,o,e){var y,i,S,D;"use strict";e.d(o,{nW:function(){return l},ae:function(){return s},q3:function(){return p}});var r=e(36964);const t=(0,r.createApiRef)({id:"core.scmauth"});class c{constructor(L){Rn(this,y,void 0);Ln(this,y,L)}async getCredentials(L){const I=new URL(L.url),b=qe(this,y).find(F=>F.isUrlSupported(I));if(!b)throw new Error(`No authentication provider available for access to '${L.url}'`);return b.getCredentials(L)}}y=new WeakMap;const P=class{constructor(L,I,b){Rn(this,i,void 0);Rn(this,S,void 0);Rn(this,D,void 0);Ln(this,i,L),Ln(this,S,I),Ln(this,D,b)}static createDefaultApiFactory(){return createApiFactory({api:scmAuthApiRef,deps:{github:githubAuthApiRef,gitlab:gitlabAuthApiRef,azure:microsoftAuthApiRef},factory:({github:L,gitlab:I,azure:b})=>P.merge(P.forGithub(L),P.forGitlab(I),P.forAzure(b))})}static forAuthApi(L,I){return new P(L,I.host,I.scopeMapping)}static forGithub(L,I){var F;const b=(F=I==null?void 0:I.host)!=null?F:"github.com";return new P(L,b,{default:["repo","read:org","read:user"],repoWrite:["gist"]})}static forGitlab(L,I){var F;const b=(F=I==null?void 0:I.host)!=null?F:"gitlab.com";return new P(L,b,{default:["read_user","read_api","read_repository"],repoWrite:["write_repository","api"]})}static forAzure(L,I){var F;const b=(F=I==null?void 0:I.host)!=null?F:"dev.azure.com";return new P(L,b,{default:["vso.build","vso.code","vso.graph","vso.project","vso.profile"],repoWrite:["vso.code_manage"]})}static forBitbucket(L,I){var F;const b=(F=I==null?void 0:I.host)!=null?F:"bitbucket.org";return new P(L,b,{default:["account","team","pullrequest","snippet","issue"],repoWrite:["pullrequest:write","snippet:write","issue:write"]})}static merge(...L){return new c(L)}isUrlSupported(L){return L.host===qe(this,S)}async getCredentials(L){const{url:I,additionalScope:b,...F}=L,K=qe(this,D).default.slice();(b==null?void 0:b.repoWrite)&&K.push(...qe(this,D).repoWrite);const ee=await qe(this,i).getAccessToken(K,F);return{token:ee,headers:{Authorization:`Bearer ${ee}`}}}};let f=P;i=new WeakMap,S=new WeakMap,D=new WeakMap;var E=e(63925);class s{static fromConfig(L){return E.Lx.fromConfig(L)}}const p=(0,r.createApiRef)({id:"integration.scmintegrations"});var h=e(73250),m=e(2784);const l=G=>{var K;const{type:L}=G,I=(0,r.useApp)(),b=h.Z,F=L&&(K=I.getSystemIcon(L))!=null?K:b;return m.createElement(F,null)}},63925:function(J,o,e){var Ie,ve,Ee,Fe,St,ut,Ve;"use strict";e.d(o,{Lx:function(){return Be},Pb:function(){return It}});var r=e(82717),t=e.n(r),c=e(76635);function f(V){const A=new URL("http://example.com");return A.host=V,A.host===V}function E(V){try{return new URL(V),!0}catch{return!1}}function s(V,A){return{list(){return V},byUrl(x){try{const z=typeof x=="string"?new URL(x):x;return V.find(_=>A(_)===z.host)}catch{return}},byHost(x){return V.find(z=>A(z)===x)}}}function p(V){const{url:A,base:x,lineNumber:z}=V;try{return new URL(A),A}catch{}let _;if(A.startsWith("/")){const{filepath:Oe}=t()(x);_=new URL(x);const ge=(0,c.trimEnd)(_.pathname.substring(0,_.pathname.length-Oe.length),"/");_.pathname=`${ge}${A}`}else _=new URL(A,x);return _.search=new URL(x).search,z&&(_.hash=`L${z}`),_.toString()}const h="GB",oe=class{constructor(A,x,z,_,Oe,ge){Rn(this,Ie,void 0);Rn(this,ve,void 0);Rn(this,Ee,void 0);Rn(this,Fe,void 0);Rn(this,St,void 0);Rn(this,ut,void 0);Rn(this,Ve,(...A)=>{const x=new URL(qe(this,Ie));return x.pathname=A.map(z=>encodeURIComponent(z)).join("/"),x});Ln(this,Ie,A),Ln(this,ve,x),Ln(this,Ee,z),Ln(this,Fe,_),Ln(this,St,Oe),Ln(this,ut,ge)}static fromRepoUrl(A){var Et;const x=new URL(A);let z,_,Oe;const ge=x.pathname.split("/").map(ne=>decodeURIComponent(ne));if(ge[2]==="_git"?(z=ge[1],_=Oe=ge[3]):ge[3]==="_git"&&(z=ge[1],_=ge[2],Oe=ge[4]),!z||!_||!Oe)throw new Error("Azure URL must point to a git repository");const Re=(Et=x.searchParams.get("path"))!=null?Et:void 0;let De;const $e=x.searchParams.get("version");if($e){if($e.slice(0,2)!=="GB")throw new Error("Azure URL version must point to a git branch");De=$e.slice(2)}return new oe(x.origin,z,_,Oe,Re,De)}toRepoUrl(){let A;return qe(this,Ee)===qe(this,Fe)?A=qe(this,Ve).call(this,qe(this,ve),"_git",qe(this,Fe)):A=qe(this,Ve).call(this,qe(this,ve),qe(this,Ee),"_git",qe(this,Fe)),qe(this,St)&&A.searchParams.set("path",qe(this,St)),qe(this,ut)&&A.searchParams.set("version",h+qe(this,ut)),A.toString()}toFileUrl(){if(!qe(this,St))throw new Error("Azure URL must point to a specific path to be able to download a file");const A=qe(this,Ve).call(this,qe(this,ve),qe(this,Ee),"_apis","git","repositories",qe(this,Fe),"items");return A.searchParams.set("api-version","6.0"),A.searchParams.set("path",qe(this,St)),qe(this,ut)&&A.searchParams.set("version",qe(this,ut)),A.toString()}toArchiveUrl(){const A=qe(this,Ve).call(this,qe(this,ve),qe(this,Ee),"_apis","git","repositories",qe(this,Fe),"items");return A.searchParams.set("recursionLevel","full"),A.searchParams.set("download","true"),A.searchParams.set("api-version","6.0"),qe(this,St)&&A.searchParams.set("scopePath",qe(this,St)),qe(this,ut)&&A.searchParams.set("version",qe(this,ut)),A.toString()}toCommitsUrl(){const A=qe(this,Ve).call(this,qe(this,ve),qe(this,Ee),"_apis","git","repositories",qe(this,Fe),"commits");return A.searchParams.set("api-version","6.0"),qe(this,ut)&&A.searchParams.set("searchCriteria.itemVersion.version",qe(this,ut)),A.toString()}getOwner(){return qe(this,ve)}getProject(){return qe(this,Ee)}getRepo(){return qe(this,Fe)}getPath(){return qe(this,St)}getRef(){return qe(this,ut)}};let m=oe;Ie=new WeakMap,ve=new WeakMap,Ee=new WeakMap,Fe=new WeakMap,St=new WeakMap,ut=new WeakMap,Ve=new WeakMap;const l="dev.azure.com";function y(V){var z;const A=(z=V.getOptionalString("host"))!=null?z:l,x=V.getOptionalString("token");if(!f(A))throw new Error(`Invalid Azure integration config, '${A}' is not a valid host`);return{host:A,token:x}}function i(V){const A=V.map(y);return A.some(x=>x.host===l)||A.push({host:l}),A}const Ne=class{constructor(A){this.integrationConfig=A}get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(A){var _;const{url:x,base:z}=A;if(E(x))return x;try{const Oe=m.fromRepoUrl(z),ge=new URL(z),Re=new URL(`https://a.com${(_=Oe.getPath())!=null?_:""}`),De=new URL(x,Re).pathname;return ge.searchParams.set("path",De),A.lineNumber&&(ge.searchParams.set("line",String(A.lineNumber)),ge.searchParams.set("lineEnd",String(A.lineNumber+1)),ge.searchParams.set("lineStartColumn","1"),ge.searchParams.set("lineEndColumn","1")),ge.toString()}catch{return new URL(x,z).toString()}}resolveEditUrl(A){return A}};let S=Ne;q(S,"factory",({config:A})=>{var z;const x=i((z=A.getOptionalConfigArray("integrations.azure"))!=null?z:[]);return s(x.map(_=>new Ne(_)),_=>_.config.host)});var D=e(48834).Buffer;function P(V){return AzureUrl.fromRepoUrl(V).toFileUrl()}function G(V){return AzureUrl.fromRepoUrl(V).toArchiveUrl()}function L(V){return AzureUrl.fromRepoUrl(V).toCommitsUrl()}function I(V,A){const x=A?{...A}:{};if(V.token){const z=D.from(`:${V.token}`,"utf8");x.Authorization=`Basic ${z.toString("base64")}`}return{headers:x}}const b="bitbucket.org",F="https://api.bitbucket.org/2.0";function K(V){var ge;const A=(ge=V.getOptionalString("host"))!=null?ge:b;let x=V.getOptionalString("apiBaseUrl");const z=V.getOptionalString("token"),_=V.getOptionalString("username"),Oe=V.getOptionalString("appPassword");if(!f(A))throw new Error(`Invalid Bitbucket integration config, '${A}' is not a valid host`);return x?x=(0,c.trimEnd)(x,"/"):A===b&&(x=F),{host:A,apiBaseUrl:x,token:z,username:_,appPassword:Oe}}function ee(V){const A=V.map(K);return A.some(x=>x.host===b)||A.push({host:b,apiBaseUrl:F}),A}const tt=class{constructor(A){this.integrationConfig=A}get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(A){const x=p(A);if(A.lineNumber){const z=new URL(x),_=z.pathname.split("/").slice(-1)[0];return z.hash=`${_}-${A.lineNumber}`,z.toString()}return x}resolveEditUrl(A){const x=t()(A),z=new URL(A);return z.searchParams.set("mode","edit"),z.searchParams.set("spa","0"),z.searchParams.set("at",x.ref),z.toString()}};let ie=tt;q(ie,"factory",({config:A})=>{var z;const x=ee((z=A.getOptionalConfigArray("integrations.bitbucket"))!=null?z:[]);return s(x.map(_=>new tt(_)),_=>_.config.host)});var pe=e(96279),Le=e(48834).Buffer;async function me(V,A){const{name:x,owner:z,resource:_}=parseGitUrl(V),Oe=_==="bitbucket.org";let ge=Oe?`${A.apiBaseUrl}/repositories/${z}/${x}`:`${A.apiBaseUrl}/projects/${z}/repos/${x}/default-branch`,Re=await fetch(ge,Qe(A));if(Re.status===404&&!Oe&&(ge=`${A.apiBaseUrl}/projects/${z}/repos/${x}/branches/default`,Re=await fetch(ge,Qe(A))),!Re.ok){const $e=`Failed to retrieve default branch from ${ge}, ${Re.status} ${Re.statusText}`;throw new Error($e)}let De;if(Oe)De=(await Re.json()).mainbranch.name;else{const{displayId:$e}=await Re.json();De=$e}if(!De)throw new Error(`Failed to read default branch from ${ge}. Response ${Re.status} ${Re.json()}`);return De}async function ze(V,A){const{name:x,owner:z,ref:_,protocol:Oe,resource:ge,filepath:Re}=parseGitUrl(V),De=ge==="bitbucket.org";let $e=_;$e||($e=await me(V,A));const Et=Re?`&path=${encodeURIComponent(Re)}`:"";return De?`${Oe}://${ge}/${z}/${x}/get/${$e}.tar.gz`:`${A.apiBaseUrl}/projects/${z}/repos/${x}/archive?format=tgz&at=${$e}&prefix=${z}-${x}${Et}`}function Te(V,A){try{const{owner:x,name:z,ref:_,filepathtype:Oe,filepath:ge}=parseGitUrl(V);if(!x||!z||Oe!=="browse"&&Oe!=="raw"&&Oe!=="src")throw new Error("Invalid Bitbucket URL or file path");const Re=ge.replace(/^\//,"");if(A.host==="bitbucket.org"){if(!_)throw new Error("Invalid Bitbucket URL or file path");return`${A.apiBaseUrl}/repositories/${x}/${z}/src/${_}/${Re}`}return`${A.apiBaseUrl}/projects/${x}/repos/${z}/raw/${Re}?at=${_}`}catch(x){throw new Error(`Incorrect URL: ${V}, ${x}`)}}function Qe(V){const A={};if(V.token)A.Authorization=`Bearer ${V.token}`;else if(V.username&&V.appPassword){const x=Le.from(`${V.username}:${V.appPassword}`,"utf8");A.Authorization=`Basic ${x.toString("base64")}`}return{headers:A}}const it="github.com",et="https://api.github.com",gt="https://raw.githubusercontent.com";function rt(V){var ge,Re;const A=(ge=V.getOptionalString("host"))!=null?ge:it;let x=V.getOptionalString("apiBaseUrl"),z=V.getOptionalString("rawBaseUrl");const _=V.getOptionalString("token"),Oe=(Re=V.getOptionalConfigArray("apps"))==null?void 0:Re.map(De=>({appId:De.getNumber("appId"),clientId:De.getString("clientId"),clientSecret:De.getString("clientSecret"),webhookSecret:De.getString("webhookSecret"),privateKey:De.getString("privateKey"),allowedInstallationOwners:De.getOptionalStringArray("allowedInstallationOwners")}));if(!f(A))throw new Error(`Invalid GitHub integration config, '${A}' is not a valid host`);return x?x=(0,c.trimEnd)(x,"/"):A===it&&(x=et),z?z=(0,c.trimEnd)(z,"/"):A===it&&(z=gt),{host:A,apiBaseUrl:x,rawBaseUrl:z,token:_,apps:Oe}}function ot(V){const A=V.map(rt);return A.some(x=>x.host===it)||A.push({host:it,apiBaseUrl:et,rawBaseUrl:gt}),A}function Rt(V,A,x){try{const{owner:z,name:_,ref:Oe,filepathtype:ge,filepath:Re}=parseGitUrl(V);if(!z||!_||!Oe||ge!=="blob"&&ge!=="raw"&&ge!=="tree")throw new Error("Invalid GitHub URL or file path");const De=Re.replace(/^\//,"");return Lt(A,x)==="api"?`${A.apiBaseUrl}/repos/${z}/${_}/contents/${De}?ref=${Oe}`:`${A.rawBaseUrl}/${z}/${_}/${Oe}/${De}`}catch(z){throw new Error(`Incorrect URL: ${V}, ${z}`)}}function wt(V,A){const x={};return Lt(V,A)==="api"&&(x.Accept="application/vnd.github.v3.raw"),A.token&&(x.Authorization=`token ${A.token}`),{headers:x}}function Lt(V,A){return V.apiBaseUrl&&(A.token||!V.rawBaseUrl)?"api":"raw"}class pt{constructor(){q(this,"tokenCache",new Map);q(this,"isNotExpired",A=>A.diff(DateTime.local(),"minutes").minutes>50)}async getOrCreateToken(A,x){const z=this.tokenCache.get(A);if(z&&this.isNotExpired(z.expiresAt))return{accessToken:z.token};const _=await x();return this.tokenCache.set(A,_),{accessToken:_.token}}}const at={Accept:"application/vnd.github.machine-man-preview+json"};class Tt{constructor(A,x){q(this,"appClient");q(this,"baseUrl");q(this,"baseAuthConfig");q(this,"cache",new pt);q(this,"allowedInstallationOwners");this.allowedInstallationOwners=A.allowedInstallationOwners,this.baseUrl=x,this.baseAuthConfig={appId:A.appId,privateKey:A.privateKey.replace(/\\n/gm,`
|
|
31
|
+
`)},this.appClient=new Octokit({baseUrl:x,headers:at,authStrategy:createAppAuth,auth:this.baseAuthConfig})}async getInstallationCredentials(A,x){var ge;const{installationId:z,suspended:_}=await this.getInstallationData(A);if(this.allowedInstallationOwners&&!((ge=this.allowedInstallationOwners)==null?void 0:ge.includes(A)))return{accessToken:void 0};if(_)throw new Error(`The GitHub application for ${A} is suspended`);const Oe=x?`${A}/${x}`:A;return this.cache.getOrCreateToken(Oe,async()=>{const Re=await this.appClient.apps.createInstallationAccessToken({installation_id:z,headers:at});if(x&&Re.data.repository_selection==="selected"){const De=new Octokit({baseUrl:this.baseUrl,auth:Re.data.token});if(!(await De.paginate(De.apps.listReposAccessibleToInstallation)).some(ne=>ne.name===x))throw new Error(`The Backstage GitHub application used in the ${A} organization does not have access to a repository with the name ${x}`)}return{token:Re.data.token,expiresAt:DateTime.fromISO(Re.data.expires_at)}})}getInstallations(){return this.appClient.paginate(this.appClient.apps.listInstallations)}async getInstallationData(A){const z=(await this.getInstallations()).find(Oe=>{var ge,Re;return((Re=(ge=Oe.account)==null?void 0:ge.login)==null?void 0:Re.toLocaleLowerCase("en-US"))===A.toLocaleLowerCase("en-US")});if(z)return{installationId:z.id,suspended:Boolean(z.suspended_by)};const _=new Error(`No app installation found for ${A} in ${this.baseAuthConfig.appId}`);throw _.name="NotFoundError",_}}class Pt{constructor(A){q(this,"apps");var x,z;this.apps=(z=(x=A.apps)==null?void 0:x.map(_=>new Tt(_,A.apiBaseUrl)))!=null?z:[]}async getAllInstallations(){return this.apps.length?(await Promise.all(this.apps.map(x=>x.getInstallations()))).flat():[]}async getAppToken(A,x){if(this.apps.length===0)return;const z=await Promise.all(this.apps.map(Re=>Re.getInstallationCredentials(A,x).then(De=>({credentials:De,error:void 0}),De=>({credentials:void 0,error:De})))),_=z.find(Re=>Re.credentials);if(_)return _.credentials.accessToken;const ge=z.map(Re=>Re.error).find(Re=>Re.name!=="NotFoundError");if(ge)throw ge}}class Ot{constructor(A,x){this.githubAppCredentialsMux=A,this.token=x}async getCredentials(A){const x=parseGitUrl(A.url),z=x.owner||x.name,_=x.owner?x.name:void 0;let Oe="app",ge=await this.githubAppCredentialsMux.getAppToken(z,_);return ge||(Oe="token",ge=this.token),{headers:ge?{Authorization:`Bearer ${ge}`}:void 0,token:ge,type:Oe}}}q(Ot,"create",null);class Ft{static fromIntegrations(A){const x=new Map;return A.github.list().forEach(z=>{const _=SingleInstanceGithubCredentialsProvider.create(z.config);x.set(z.config.host,_)}),new Ft(x)}constructor(A){this.providers=A}async getCredentials(A){const x=new URL(A.url),z=this.providers.get(x.host);if(!z)throw new Error(`There is no GitHub integration that matches ${A.url}. Please add a configuration for an integration.`);return z.getCredentials(A)}}const Ue=class{constructor(A){this.integrationConfig=A}get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(A){return It(p(A),"tree")}resolveEditUrl(A){return It(A,"edit")}};let mt=Ue;q(mt,"factory",({config:A})=>{var z;const x=ot((z=A.getOptionalConfigArray("integrations.github"))!=null?z:[]);return s(x.map(_=>new Ue(_)),_=>_.config.host)});function It(V,A){return V.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,(x,z,_,Oe)=>`//${z}/${_}/${Oe}/${A}/`)}const Bt="gitlab.com",be="https://gitlab.com/api/v4";function st(V){const A=V.getString("host");let x=V.getOptionalString("apiBaseUrl");const z=V.getOptionalString("token");let _=V.getOptionalString("baseUrl");if(x?x=(0,c.trimEnd)(x,"/"):A===Bt&&(x=be),_?_=(0,c.trimEnd)(_,"/"):_=`https://${A}`,A.includes(":"))throw new Error(`Invalid GitLab integration config, host '${A}' should just be the host name (e.g. "github.com"), not a URL`);if(f(A)){if(!x||!E(x))throw new Error(`Invalid GitLab integration config, '${x}' is not a valid apiBaseUrl`);if(!E(_))throw new Error(`Invalid GitLab integration config, '${_}' is not a valid baseUrl`)}else throw new Error(`Invalid GitLab integration config, '${A}' is not a valid host`);return{host:A,token:z,apiBaseUrl:x,baseUrl:_}}function lt(V){const A=V.map(st);return A.some(x=>x.host===Bt)||A.push({host:Bt,apiBaseUrl:be,baseUrl:`https://${Bt}`}),A}async function Ct(V,A){if(V.includes("/-/blob/")){const x=await C(V,A);return T(V,x).toString()}return te(V).toString()}function ae(V){const{token:A=""}=V;return{headers:{"PRIVATE-TOKEN":A}}}function te(V){try{const A=new URL(V),[x,z,_,Oe,...ge]=A.pathname.split("/");if(x!==""||z===""||_===""||Oe!=="blob"||!ge.join("/").match(/\.(yaml|yml)$/))throw new Error("Wrong GitLab URL");return A.pathname=[x,z,_,"raw",...ge].join("/"),A}catch(A){throw new Error(`Incorrect url: ${V}, ${A}`)}}function T(V,A){try{const x=new URL(V),z=x.pathname.split("/-/blob/")[1],[_,...Oe]=z.split("/");return x.pathname=["/api/v4/projects",A,"repository/files",encodeURIComponent(decodeURIComponent(Oe.join("/"))),"raw"].join("/"),x.search=`?ref=${_}`,x}catch(x){throw new Error(`Incorrect url: ${V}, ${x}`)}}async function C(V,A){const x=new URL(V);if(!x.pathname.includes("/-/blob/"))throw new Error("Please provide full path to yaml file from GitLab");try{const z=x.pathname.split("/-/blob/")[0],_=new URL(`${x.protocol+x.hostname}/api/v4/projects/${encodeURIComponent(z.replace(/^\//,""))}`),Oe=await fetch(_.toString(),ae(A)),ge=await Oe.json();if(!Oe.ok)throw new Error(`GitLab Error '${ge.error}', ${ge.error_description}`);return Number(ge.id)}catch(z){throw new Error(`Could not get GitLab project ID for: ${V}, ${z}`)}}const Ze=class{constructor(A){this.integrationConfig=A}get type(){return"gitlab"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(A){return p(A)}resolveEditUrl(A){return H(A,"edit")}};let B=Ze;q(B,"factory",({config:A})=>{var z;const x=lt((z=A.getOptionalConfigArray("integrations.gitlab"))!=null?z:[]);return s(x.map(_=>new Ze(_)),_=>_.config.host)});function H(V,A){return V.replace(/\/\-\/(blob|tree|edit)\//,`/-/${A}/`)}const Y="amazonaws.com";function le(V){var De;const A=V.getOptionalString("endpoint"),x=(De=V.getOptionalBoolean("s3ForcePathStyle"))!=null?De:!1;let z,_;if(A){try{const $e=new URL(A);z=$e.host,_=$e.pathname}catch{throw new Error(`invalid awsS3 integration config, endpoint '${A}' is not a valid URL`)}if(_!=="/")throw new Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${A}'`)}else z=Y;const Oe=V.getOptionalString("accessKeyId"),ge=V.getOptionalString("secretAccessKey"),Re=V.getOptionalString("roleArn");return{host:z,endpoint:A,s3ForcePathStyle:x,accessKeyId:Oe,secretAccessKey:ge,roleArn:Re}}function Ae(V){const A=V.map(le);return A.some(x=>x.host===Y)||A.push({host:Y}),A}const Je=class{get type(){return"awsS3"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}constructor(A){this.integrationConfig=A}resolveUrl(A){return p(A)}resolveEditUrl(A){return A}};let ye=Je;q(ye,"factory",({config:A})=>{var z;const x=Ae((z=A.getOptionalConfigArray("integrations.awsS3"))!=null?z:[]);return s(x.map(_=>new Je(_)),_=>_.config.host)});class Be{constructor(A){q(this,"byType");this.byType=A}static fromConfig(A){return new Be({awsS3:ye.factory({config:A}),azure:S.factory({config:A}),bitbucket:ie.factory({config:A}),github:mt.factory({config:A}),gitlab:B.factory({config:A})})}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(A=>A.list())}byUrl(A){return Object.values(this.byType).map(x=>x.byUrl(A)).find(Boolean)}byHost(A){return Object.values(this.byType).map(x=>x.byHost(A)).find(Boolean)}resolveUrl(A){const x=this.byUrl(A.base);return x?x.resolveUrl(A):p(A)}resolveEditUrl(A){const x=this.byUrl(A);return x?x.resolveEditUrl(A):A}}},76241:function(J,o,e){"use strict";e.d(o,{CT:function(){return s},EI:function(){return m},uW:function(){return f},Vt:function(){return p}});function r(){return typeof window!="undefined"&&window.Math===Math?window:typeof self!="undefined"&&self.Math===Math?self:Function("return this")()}const t=r(),c=l=>`__@backstage/${l}__`;function f(l,y){const i=c(l);let S=t[i];return S||(S=y(),t[i]=S,S)}var E=e(2784);function s(l){return f(l,()=>(0,E.createContext)(void 0))}function p(l){return(0,E.useContext)(s(l))}function h(l){return{set(y){globalThis[`__@backstage/${l}__`]=createContext(createVersionedValueMap(y))},reset(){delete globalThis[`__@backstage/${l}__`]}}}function m(l){return Object.freeze(l),{atVersion(y){return l[y]}}}},19139:function(J,o,e){"use strict";e.d(o,{AsyncEntityProvider:function(){return Le},n3:function(){return t.n3},DefaultStarredEntitiesApi:function(){return l},EntityContext:function(){return ee},EntityKindFilter:function(){return T},EntityLifecyclePicker:function(){return we},EntityListProvider:function(){return Ft},EntityOwnerPicker:function(){return en},EntityRefLink:function(){return ae},EntityRefLinks:function(){return te},EntityTable:function(){return wn},EntityTagPicker:function(){return vr},EntityTypePicker:function(){return Rr},FavoriteEntity:function(){return cr},UnregisterEntityDialog:function(){return _r},UserListPicker:function(){return gr},Ah:function(){return f},M4:function(){return L},wi:function(){return I},favoriteEntityIcon:function(){return Bn},favoriteEntityTooltip:function(){return qn},formatEntityRefTitle:function(){return st},getEntityMetadataEditUrl:function(){return pt},getEntityMetadataViewUrl:function(){return Lt},getEntityRelations:function(){return at},getEntitySourceLocation:function(){return Tt},isOwnerOf:function(){return Pt},starredEntitiesApiRef:function(){return y},useEntity:function(){return Qe},useEntityCompoundName:function(){return K},useEntityFromUrl:function(){return Te},useEntityKinds:function(){return Be},useEntityListProvider:function(){return mt},useEntityPermission:function(){return V},useOwnUser:function(){return Ie},useRelatedEntities:function(){return Ee},useStarredEntities:function(){return ut}});var r={};e.r(r),e.d(r,{createDomainColumn:function(){return jt},createEntityRefColumn:function(){return Sn},createEntityRelationColumn:function(){return yn},createMetadataDescriptionColumn:function(){return On},createOwnerColumn:function(){return yt},createSpecLifecycleColumn:function(){return Wt},createSpecTypeColumn:function(){return $n},createSystemColumn:function(){return fn}});var t=e(30001),c=e(36964);const f=(0,c.createApiRef)({id:"plugin.catalog.service"});var E=e(82394),s=e.n(E),p=e(52890),h=e(76635);async function m({storageApi:w}){var se;const N=w.forBucket("settings"),$=w.forBucket("starredEntities"),X=N.get("starredEntities");if(!(0,h.isArray)(X))return;const ue=new Set((se=$.get("entityRefs"))!=null?se:[]);X.filter(h.isString).map(fe=>fe.split(":")).filter(fe=>fe.length===4&&fe[0]==="entity").map(([fe,Ge,We,Ke])=>(0,p.eE)({kind:Ge,namespace:We,name:Ke})).forEach(fe=>ue.add(fe)),await $.set("entityRefs",Array.from(ue)),await N.remove("starredEntities")}class l{constructor(N){q(this,"settingsStore");q(this,"starredEntities");q(this,"subscribers",new Set);q(this,"observable",new(s())(N=>(N.next(this.starredEntities),this.subscribers.add(N),()=>{this.subscribers.delete(N)})));var $;m(N).then(),this.settingsStore=N.storageApi.forBucket("starredEntities"),this.starredEntities=new Set(($=this.settingsStore.get("entityRefs"))!=null?$:[]),this.settingsStore.observe$("entityRefs").subscribe({next:X=>{var ue;this.starredEntities=new Set((ue=X.newValue)!=null?ue:[]),this.notifyChanges()}})}async toggleStarred(N){this.starredEntities.has(N)?this.starredEntities.delete(N):this.starredEntities.add(N),await this.settingsStore.set("entityRefs",Array.from(this.starredEntities))}starredEntitie$(){return this.observable}isStarred(N){return this.starredEntities.has(N)}notifyChanges(){for(const N of this.subscribers)N.next(this.starredEntities)}}const y=(0,c.createApiRef)({id:"catalog-react.starred-entities"});var i=e(2784),S=e(76241),D=e(10289),P=e(77446);const L=(0,c.createRouteRef)({id:"catalog"}),I=(0,S.uW)("catalog:entity-route-ref",()=>(0,c.createRouteRef)({id:"catalog:entity",params:["namespace","kind","name"]})),b=null;function F(w){var N,$;return{kind:w.kind.toLocaleLowerCase("en-US"),namespace:($=(N=w.metadata.namespace)==null?void 0:N.toLocaleLowerCase("en-US"))!=null?$:ENTITY_DEFAULT_NAMESPACE,name:w.metadata.name}}const K=()=>{const{kind:w,namespace:N,name:$}=(0,c.useRouteRefParams)(I);return{kind:w,namespace:N,name:$}},ee=(0,i.createContext)({entity:void 0,loading:!0,error:void 0,refresh:()=>{}}),ie=ee.Provider,pe=(0,S.CT)("entity-context"),Le=({children:w,entity:N,loading:$,error:X,refresh:ue})=>{const se={entity:N,loading:$,error:X,refresh:ue};return i.createElement(ie,{value:se},i.createElement(pe.Provider,{value:(0,S.EI)({1:se})},w))},me=({entity:w,children:N})=>React.createElement(Le,{entity:w,loading:!Boolean(w),error:void 0,refresh:void 0,children:N}),ze=({value:w,children:N})=>i.createElement(Le,{...w,children:N});ee.Provider=ze;const Te=()=>{const{kind:w,namespace:N,name:$}=K(),X=(0,D.s0)(),ue=(0,c.useApi)(c.errorApiRef),se=(0,c.useApi)(f),{value:fe,error:Ge,loading:We,retry:Ke}=(0,P.Z)(()=>se.getEntityByName({kind:w,namespace:N,name:$}),[se,w,N,$]);return(0,i.useEffect)(()=>{$||(ue.post(new Error("No name provided!")),X("/"))},[ue,X,Ge,We,fe,$]),{entity:fe,loading:We,error:Ge,refresh:Ke}};function Qe(){const w=(0,S.Vt)("entity-context");if(!w)return{entity:void 0,loading:!0,error:void 0,refresh:()=>{}};const N=w.atVersion(1);if(!N)throw new Error("EntityContext v1 not available");const{entity:$,loading:X,error:ue,refresh:se}=N;return{entity:$,loading:X,error:ue,refresh:se}}var it=e(19126),et=e.n(it),gt=e(69294),rt=e(48760),ot=e(90736);function Rt(w){return w.reduce((N,$)=>({...N,...$.getCatalogFilters?$.getCatalogFilters():{}}),{})}function wt(w){return N=>w.every($=>!$.filterEntity||$.filterEntity(N))}function Lt(w){var N;return(N=w.metadata.annotations)==null?void 0:N[p.wh]}function pt(w){var N;return(N=w.metadata.annotations)==null?void 0:N[p.J1]}function at(w,N,$){var ue,se;let X=((se=(ue=w==null?void 0:w.relations)==null?void 0:ue.filter(fe=>fe.type===N))==null?void 0:se.map(fe=>fe.target))||[];return($==null?void 0:$.kind)&&(X=X==null?void 0:X.filter(fe=>fe.kind.toLocaleLowerCase("en-US")===$.kind.toLocaleLowerCase("en-US"))),X}function Tt(w,N){var X;const $=(X=w.metadata.annotations)==null?void 0:X[p.wX];if(!!$)try{const ue=(0,p.Me)($),se=N.byUrl(ue.target);return{locationTargetUrl:ue.target,integrationType:se==null?void 0:se.type}}catch{return}}function Pt(w,N){const $=new Set([...at(w,p.hr,{kind:"group"}),...w?[(0,p.C_)(w)]:[]].map(p.eE)),X=at(N,p.S4).map(p.eE);for(const ue of X)if($.has(ue))return!0;return!1}const Ot=(0,i.createContext)(void 0),Ft=({children:w})=>{const N=(0,ot.default)(),$=(0,c.useApi)(f),[X,ue]=(0,i.useState)({}),[se,fe]=(0,i.useState)(()=>{var At;const He=et().parse(window.location.search,{ignoreQueryPrefix:!0});return{appliedFilters:{},entities:[],backendEntities:[],queryParameters:(At=He.filters)!=null?At:{}}}),[{loading:Ge,error:We},Ke]=(0,gt.default)(async()=>{var zt;const He=(0,h.compact)(Object.values(X)),At=wt(He),Dt=Rt(He),Nt=Rt((0,h.compact)(Object.values(se.appliedFilters))),Ut=Object.keys(X).reduce((kt,rn)=>{const Zt=X[rn];return(Zt==null?void 0:Zt.toQueryValue)&&(kt[rn]=Zt.toQueryValue()),kt},{});if((0,h.isEqual)(Nt,Dt))fe({appliedFilters:X,backendEntities:se.backendEntities,entities:se.backendEntities.filter(At),queryParameters:Ut});else{const kt=await $.getEntities({filter:Dt});fe({appliedFilters:X,backendEntities:kt.items,entities:kt.items.filter(At),queryParameters:Ut})}if(N()){const kt=et().parse(window.location.search,{ignoreQueryPrefix:!0}),rn=et().stringify({...kt,filters:Ut},{addQueryPrefix:!0}),Zt=`${window.location.pathname}${rn}`;(zt=window.history)==null||zt.replaceState(null,document.title,Zt)}},[$,X,se],{loading:!0});(0,rt.Z)(Ke,10,[X]);const ct=(0,i.useCallback)(He=>{ue(At=>{const Dt=typeof He=="function"?He(At):He;return{...At,...Dt}})},[]),Ye=(0,i.useMemo)(()=>({filters:se.appliedFilters,entities:se.entities,backendEntities:se.backendEntities,updateFilters:ct,queryParameters:se.queryParameters,loading:Ge,error:We}),[se,ct,Ge,We]);return i.createElement(Ot.Provider,{value:Ye},w)};function mt(){const w=(0,i.useContext)(Ot);if(!w)throw new Error("useEntityListProvider must be used within EntityListProvider");return w}var It=e(64279),Bt=e(18149),be=e.n(Bt);function st(w,N){const $=N==null?void 0:N.defaultKind;let X,ue,se;return"metadata"in w?(X=w.kind,ue=w.metadata.namespace,se=w.metadata.name):(X=w.kind,ue=w.namespace,se=w.name),ue===p.sk&&(ue=void 0),X=X.toLocaleLowerCase("en-US"),`${(0,p.TH)({kind:$&&$.toLocaleLowerCase("en-US")===X?void 0:X,name:se,namespace:ue})}`}var lt=e(9118),Ct=e(80030);const ae=(0,i.forwardRef)((w,N)=>{var Dt;const{entityRef:$,defaultKind:X,title:ue,children:se,...fe}=w,Ge=(0,c.useRouteRef)(I);let We,Ke,ct;"metadata"in $?(We=$.kind,Ke=$.metadata.namespace,ct=$.metadata.name):(We=$.kind,Ke=$.namespace,ct=$.name),We=We.toLocaleLowerCase("en-US");const Ye={kind:We,namespace:(Dt=Ke==null?void 0:Ke.toLocaleLowerCase("en-US"))!=null?Dt:p.sk,name:ct},He=st($,{defaultKind:X}),At=i.createElement(lt.Link,{...fe,ref:N,to:Ge(Ye)},se,!se&&(ue!=null?ue:He));return ue?i.createElement(Ct.ZP,{title:He},At):At}),te=({entityRefs:w,defaultKind:N,...$})=>i.createElement(i.Fragment,null,w.map((X,ue)=>i.createElement(i.Fragment,{key:ue},ue>0&&", ",i.createElement(ae,{...$,entityRef:X,defaultKind:N}))));class T{constructor(N){this.value=N}getCatalogFilters(){return{kind:this.value}}toQueryValue(){return this.value}}class C{constructor(N){this.value=N}getTypes(){return Array.isArray(this.value)?this.value:[this.value]}getCatalogFilters(){return{"spec.type":this.getTypes()}}toQueryValue(){return this.getTypes()}}class B{constructor(N){this.values=N}filterEntity(N){return this.values.every($=>{var X;return((X=N.metadata.tags)!=null?X:[]).includes($)})}toQueryValue(){return this.values}}class H{constructor(N){this.value=N}filterEntity(N){var X;const $=this.value.toLocaleUpperCase("en-US");return N.metadata.name.toLocaleUpperCase("en-US").includes($)||`${N.metadata.title}`.toLocaleUpperCase("en-US").includes($)||((X=N.metadata.tags)==null?void 0:X.join("").toLocaleUpperCase("en-US").indexOf($))!==-1}}class Y{constructor(N){this.values=N}filterEntity(N){return this.values.some($=>at(N,p.S4).some(X=>st(X,{defaultKind:"group"})===$))}toQueryValue(){return this.values}}class le{constructor(N){this.values=N}filterEntity(N){return this.values.some($=>{var X;return((X=N.spec)==null?void 0:X.lifecycle)===$})}toQueryValue(){return this.values}}class Ae{constructor(N,$,X){this.value=N,this.isOwnedEntity=$,this.isStarredEntity=X}filterEntity(N){switch(this.value){case"owned":return this.isOwnedEntity(N);case"starred":return this.isStarredEntity(N);default:return!0}}toQueryValue(){return this.value}}function ye(){var Nt;const w=(0,c.useApi)(f),{filters:{kind:N,type:$},queryParameters:X,updateFilters:ue}=mt(),se=[X.type].flat().filter(Boolean),[fe,Ge]=(0,i.useState)(se.length?se:(Nt=$==null?void 0:$.getTypes())!=null?Nt:[]),[We,Ke]=(0,i.useState)([]),ct=(0,i.useMemo)(()=>N==null?void 0:N.value,[N]),{error:Ye,loading:He,value:At}=(0,It.default)(async()=>ct?await w.getEntities({filter:{kind:ct},fields:["spec.type"]}).then(zt=>zt.items):[],[ct,w]),Dt=(0,i.useRef)(At);return(0,i.useEffect)(()=>{const Ut=Dt.current;if(Dt.current=At,He||!ct||Ut===At||!At)return;const zt=At.reduce((Zt,Cn)=>{var Yt;if(typeof((Yt=Cn.spec)==null?void 0:Yt.type)!="string")return Zt;const Gt=Cn.spec.type.toLocaleLowerCase("en-US");return Zt[Gt]||(Zt[Gt]=0),Zt[Gt]+=1,Zt},{}),kt=Object.entries(zt).sort(([,Zt],[,Cn])=>Cn-Zt).map(([Zt])=>Zt);Ke(kt);const rn=fe.filter(Zt=>kt.includes(Zt));be()(fe,rn)||Ge(rn)},[He,ct,fe,Ge,At]),(0,i.useEffect)(()=>{ue({type:fe.length?new C(fe):void 0})},[fe,ue]),{loading:He,error:Ye,availableTypes:We,selectedTypes:fe,setSelectedTypes:Ge}}function Be(){const w=(0,c.useApi)(f),{error:N,loading:$,value:X}=(0,It.default)(async()=>{const ue=await w.getEntities({fields:["kind"]}).then(se=>se.items);return[...new Set(ue.map(se=>se.kind))].sort()});return{error:N,loading:$,kinds:X}}function Ie(){const w=(0,c.useApi)(f),N=(0,c.useApi)(c.identityApiRef);return(0,It.default)(async()=>{const $=await N.getBackstageIdentity();return w.getEntityByName((0,p.of)($.userEntityRef,{defaultKind:"User",defaultNamespace:p.sk}))},[w,N])}const ve=20;function Ee(w,{type:N,kind:$}){const X=(0,c.useApi)(f),{loading:ue,value:se,error:fe}=(0,It.default)(async()=>{const Ge=w.relations&&w.relations.filter(Ye=>(!N||Ye.type.toLocaleLowerCase("en-US")===N.toLocaleLowerCase("en-US"))&&(!$||Ye.target.kind.toLocaleLowerCase("en-US")===$.toLocaleLowerCase("en-US")));if(!Ge)return[];const We=Object.values((0,h.groupBy)(Ge,({target:Ye})=>`${Ye.kind}:${Ye.namespace}`.toLocaleLowerCase("en-US"))),Ke=[];for(const Ye of We)Ke.push({kind:Ye[0].target.kind,namespace:Ye[0].target.namespace,nameBatches:(0,h.chunk)(Ye.map(He=>He.target.name),ve)});return(await Promise.all(Ke.flatMap(Ye=>Ye.nameBatches.map(He=>X.getEntities({filter:{kind:Ye.kind,"metadata.namespace":Ye.namespace,"metadata.name":He}}))))).flatMap(Ye=>Ye.items)},[w,N]);return{entities:se,loading:ue,error:fe}}var Fe=e(72164);function St(w){return typeof w=="string"?w:(0,p.eE)(w)}function ut(){const w=(0,c.useApi)(y),N=(0,Fe.Z)(w.starredEntitie$(),new Set),$=(0,i.useCallback)(ue=>N.has(St(ue)),[N]),X=(0,i.useCallback)(ue=>w.toggleStarred(St(ue)).then(),[w]);return{starredEntities:N,toggleStarredEntity:X,isStarredEntity:$}}function Ve(w){return typeof w=="string"?w:(0,p.eE)(w)}function oe(w){const N=(0,c.useApi)(y),[$,X]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{const se=N.starredEntitie$().subscribe({next(fe){X(fe.has(Ve(w)))}});return()=>{se.unsubscribe()}},[w,N]),{toggleStarredEntity:(0,i.useCallback)(()=>N.toggleStarred(Ve(w)).then(),[w,N]),isStarredEntity:$}}async function Ne(w){return(await w.getBackstageIdentity()).ownershipEntityRefs}async function tt(w,N){const $=new Array,X=N.find(ue=>ue.startsWith("user:"));if(X){const ue=await w.getEntityByName((0,p.of)(X));if(ue){const se=at(ue,p.hr,{kind:"Group"});for(const fe of se)$.push((0,p.eE)(fe))}}return $}function Ue(){const w=(0,c.useApi)(c.identityApiRef),N=(0,c.useApi)(f),{loading:$,value:X}=(0,It.default)(async()=>{const{ownershipEntityRefs:se}=await w.getBackstageIdentity(),fe=await tt(N,se);return new Set([...se,...fe])},[]),ue=(0,i.useMemo)(()=>{const se=new Set(X!=null?X:[]);return fe=>{const Ge=("metadata"in fe?at(fe,p.S4):[fe]).map(p.eE);for(const We of Ge)if(se.has(We))return!0;return!1}},[X]);return(0,i.useMemo)(()=>({loading:$,isOwnedEntity:ue}),[$,ue])}function Ze(w){const N=useApi(identityApiRef),$=useApi(catalogApiRef),{loading:X,value:ue}=useAsync(async()=>{const fe=await loadIdentityOwnerRefs(N),Ge=await loadCatalogOwnerRefs($,fe);return await $.getEntities(w?{filter:{kind:w,[`relations.${RELATION_OWNED_BY}`]:[...fe,...Ge]}}:{filter:{[`relations.${RELATION_OWNED_BY}`]:[...fe,...Ge]}})},[]),se=useMemo(()=>ue,[ue]);return useMemo(()=>({loading:X,ownedEntities:se}),[X,se])}var Je=e(20221);function V(w){const{entity:N,loading:$,error:X}=Qe(),{allowed:ue,loading:se,error:fe}=(0,Je.gI)(w,N?(0,p.eE)(N):void 0);return $||se?{loading:!0,allowed:!1}:X?{loading:!1,allowed:!1,error:X}:{loading:!1,allowed:ue,error:fe}}const A=({initialFilter:w,hidden:N})=>{var se;const{updateFilters:$,queryParameters:X}=useEntityListProvider(),[ue]=useState((se=[X.kind].flat()[0])!=null?se:w);return useEffect(()=>{$({kind:ue?new EntityKindFilter(ue):void 0})},[ue,$]),N?null:React.createElement(Alert,{severity:"warning"},"Kind filter not yet available")};var x=e(79692),z=e(95544),_=e(90436),Oe=e(5806),ge=e(21324),Re=e(86619),De=e(19996),$e=e(25505),Et=e(38016),ne=e(88013);const Z=(0,x.Z)({input:{}},{name:"CatalogReactEntityLifecyclePicker"}),Q=i.createElement($e.Z,{fontSize:"small"}),he=i.createElement(De.Z,{fontSize:"small"}),we=()=>{var Ke,ct;const w=Z(),{updateFilters:N,backendEntities:$,filters:X,queryParameters:ue}=mt(),se=[ue.lifecycles].flat().filter(Boolean),[fe,Ge]=(0,i.useState)(se.length?se:(ct=(Ke=X.lifecycles)==null?void 0:Ke.values)!=null?ct:[]);(0,i.useEffect)(()=>{N({lifecycles:fe.length?new le(fe):void 0})},[fe,N]);const We=(0,i.useMemo)(()=>[...new Set($.map(Ye=>{var He;return(He=Ye.spec)==null?void 0:He.lifecycle}).filter(Boolean))].sort(),[$]);return We.length?i.createElement(z.Z,{pb:1,pt:1},i.createElement(_.Z,{variant:"button"},"Lifecycle"),i.createElement(ne.ZP,{"aria-label":"Lifecycle",multiple:!0,options:We,value:fe,onChange:(Ye,He)=>Ge(He),renderOption:(Ye,{selected:He})=>i.createElement(Oe.Z,{control:i.createElement(ge.Z,{icon:Q,checkedIcon:he,checked:He}),label:Ye}),size:"small",popupIcon:i.createElement(Et.Z,{"data-testid":"lifecycle-picker-expand"}),renderInput:Ye=>i.createElement(Re.Z,{...Ye,className:w.input,variant:"outlined"})})):null},je=(0,x.Z)({input:{}},{name:"CatalogReactEntityOwnerPicker"}),nt=i.createElement($e.Z,{fontSize:"small"}),xt=i.createElement(De.Z,{fontSize:"small"}),en=()=>{var Ke,ct;const w=je(),{updateFilters:N,backendEntities:$,filters:X,queryParameters:ue}=mt(),se=[ue.owners].flat().filter(Boolean),[fe,Ge]=(0,i.useState)(se.length?se:(ct=(Ke=X.owners)==null?void 0:Ke.values)!=null?ct:[]);(0,i.useEffect)(()=>{N({owners:fe.length?new Y(fe):void 0})},[fe,N]);const We=(0,i.useMemo)(()=>[...new Set($.flatMap(Ye=>at(Ye,p.S4).map(He=>st(He,{defaultKind:"group"}))).filter(Boolean))].sort(),[$]);return We.length?i.createElement(z.Z,{pb:1,pt:1},i.createElement(_.Z,{variant:"button"},"Owner"),i.createElement(ne.ZP,{multiple:!0,"aria-label":"Owner",options:We,value:fe,onChange:(Ye,He)=>Ge(He),renderOption:(Ye,{selected:He})=>i.createElement(Oe.Z,{control:i.createElement(ge.Z,{icon:nt,checkedIcon:xt,checked:He}),label:Ye}),size:"small",popupIcon:i.createElement(Et.Z,{"data-testid":"owner-picker-expand"}),renderInput:Ye=>i.createElement(Re.Z,{...Ye,className:w.input,variant:"outlined"})})):null},ln=(0,x.Z)(w=>({searchToolbar:{paddingLeft:0,paddingRight:0},input:{}}),{name:"CatalogReactEntitySearchBar"}),Zn=()=>{var se,fe;const w=ln(),{filters:N,updateFilters:$}=useEntityListProvider(),[X,ue]=useState((fe=(se=N.text)==null?void 0:se.value)!=null?fe:"");return useDebounce(()=>{$({text:X.length?new EntityTextFilter(X):void 0})},250,[X,$]),React.createElement(Toolbar,{className:w.searchToolbar},React.createElement(FormControl,null,React.createElement(Input,{id:"input-with-icon-adornment",className:w.input,placeholder:"Search",autoComplete:"off",onChange:Ge=>ue(Ge.target.value),value:X,startAdornment:React.createElement(InputAdornment,{position:"start"},React.createElement(Search,null)),endAdornment:React.createElement(InputAdornment,{position:"end"},React.createElement(IconButton,{"aria-label":"clear search",onClick:()=>ue(""),edge:"end",disabled:X.length===0},React.createElement(Clear,null)))})))};function Sn({defaultKind:w}){function N($){var X;return((X=$.metadata)==null?void 0:X.title)||st($,{defaultKind:w})}return{title:"Name",highlight:!0,customFilterAndSearch($,X){return N(X).includes($)},customSort($,X){return N($).localeCompare(N(X))},render:$=>{var X;return i.createElement(ae,{entityRef:$,defaultKind:w,title:(X=$.metadata)==null?void 0:X.title})}}}function yn({title:w,relation:N,defaultKind:$,filter:X}){function ue(fe){return at(fe,N,X)}function se(fe){return ue(fe).map(Ge=>st(Ge,{defaultKind:$})).join(", ")}return{title:w,customFilterAndSearch(fe,Ge){return se(Ge).includes(fe)},customSort(fe,Ge){return se(fe).localeCompare(se(Ge))},render:fe=>i.createElement(te,{entityRefs:ue(fe),defaultKind:$})}}function yt(){return yn({title:"Owner",relation:p.S4,defaultKind:"group"})}function jt(){return yn({title:"Domain",relation:p.cz,defaultKind:"domain",filter:{kind:"domain"}})}function fn(){return yn({title:"System",relation:p.cz,defaultKind:"system",filter:{kind:"system"}})}function On(){return{title:"Description",field:"metadata.description",render:w=>i.createElement(lt.OverflowTooltip,{text:w.metadata.description,placement:"bottom-start",line:2}),width:"auto"}}function Wt(){return{title:"Lifecycle",field:"spec.lifecycle"}}function $n(){return{title:"Type",field:"spec.type"}}const or=[Sn({defaultKind:"system"}),jt(),yt(),On()],sr=[Sn({defaultKind:"component"}),fn(),yt(),$n(),Wt(),On()],Ar=(0,x.Z)(w=>({empty:{padding:w.spacing(2),display:"flex",justifyContent:"center"}}));function wn({entities:w,title:N,emptyContent:$,variant:X="gridItem",columns:ue}){const se=Ar(),fe={minWidth:"0",width:"100%"};return X==="gridItem"&&(fe.height="calc(100% - 10px)"),i.createElement(lt.Table,{columns:ue,title:N,style:fe,emptyContent:$&&i.createElement("div",{className:se.empty},$),options:{search:!1,paging:!1,actionsColumnIndex:-1,padding:"dense"},data:w})}wn.columns=r,wn.systemEntityColumns=or,wn.componentEntityColumns=sr;const Fn=(0,x.Z)({input:{}},{name:"CatalogReactEntityTagPicker"}),Qn=i.createElement($e.Z,{fontSize:"small"}),ir=i.createElement(De.Z,{fontSize:"small"}),vr=()=>{var Ke,ct;const w=Fn(),{updateFilters:N,backendEntities:$,filters:X,queryParameters:ue}=mt(),se=[ue.tags].flat().filter(Boolean),[fe,Ge]=(0,i.useState)(se.length?se:(ct=(Ke=X.tags)==null?void 0:Ke.values)!=null?ct:[]);(0,i.useEffect)(()=>{N({tags:fe.length?new B(fe):void 0})},[fe,N]);const We=(0,i.useMemo)(()=>[...new Set($.flatMap(Ye=>Ye.metadata.tags).filter(Boolean))].sort(),[$]);return We.length?i.createElement(z.Z,{pb:1,pt:1},i.createElement(_.Z,{variant:"button"},"Tags"),i.createElement(ne.ZP,{multiple:!0,"aria-label":"Tags",options:We,value:fe,onChange:(Ye,He)=>Ge(He),renderOption:(Ye,{selected:He})=>i.createElement(Oe.Z,{control:i.createElement(ge.Z,{icon:Qn,checkedIcon:ir,checked:He}),label:Ye}),size:"small",popupIcon:i.createElement(Et.Z,{"data-testid":"tag-picker-expand"}),renderInput:Ye=>i.createElement(Re.Z,{...Ye,className:w.input,variant:"outlined"})})):null};var Wn=e(82108),qr=e.n(Wn);const Rr=w=>{var Ke;const{hidden:N,initialFilter:$}=w,X=(0,c.useApi)(c.alertApiRef),{error:ue,availableTypes:se,selectedTypes:fe,setSelectedTypes:Ge}=ye();if((0,i.useEffect)(()=>{ue&&X.post({message:"Failed to load entity types",severity:"error"}),$&&Ge([$])},[ue,X,$,Ge]),se.length===0||ue)return null;const We=[{value:"all",label:"All"},...se.map(ct=>({value:ct,label:qr()(ct)}))];return N?null:i.createElement(z.Z,{pb:1,pt:1},i.createElement(lt.Select,{label:"Type",items:We,selected:(Ke=We.length>1?fe[0]:void 0)!=null?Ke:"all",onChange:ct=>Ge(ct==="all"?[]:[String(ct)])}))};var lr=e(15459),Sr=e(61837),Xn=e(11640),Cr=e(28347);const kn=(0,lr.Z)({root:{color:"#f3ba37"}})(Xn.Z),qn=w=>w?"Remove from favorites":"Add to favorites",Bn=w=>w?i.createElement(kn,null):i.createElement(Cr.Z,null),cr=w=>{const{toggleStarredEntity:N,isStarredEntity:$}=oe(w.entity);return i.createElement(Sr.Z,{color:"inherit",...w,onClick:()=>N()},i.createElement(Ct.ZP,{title:qn($)},Bn($)))};var xn=e(77277),mn=e(55999),nn=e(85256),Tr=e(8629),Pr=e(79249),Ir=e(38724),Lr=e(49429),ur=e(99688);function Or(w){var At;const N=(0,c.useApi)(f),$=(At=w.metadata.annotations)==null?void 0:At[p.lb],X=w.metadata.uid,ue=$==="bootstrap:bootstrap",se=(0,It.default)(async()=>{const Dt=N.getOriginLocationByEntity(w);let Nt;if(!$)Nt=Promise.resolve([]);else{const Ut=`metadata.annotations.${p.lb}`;Nt=N.getEntities({filter:{[Ut]:$},fields:["kind","metadata.uid","metadata.name","metadata.namespace"]}).then(zt=>zt.items)}return Promise.all([Dt,Nt]).then(([Ut,zt])=>({location:Ut,colocatedEntities:zt}))},[N,w]),fe=(0,i.useCallback)(async function(){const{location:Nt,colocatedEntities:Ut}=se.value;await N.removeLocationById(Nt.id),await Promise.allSettled(Ut.map(zt=>N.removeEntityByUid(zt.metadata.uid)))},[N,se]),Ge=(0,i.useCallback)(async function(){await N.removeEntityByUid(X)},[N,X]);if(ue)return{type:"bootstrap",location:$,deleteEntity:Ge};const{loading:We,error:Ke,value:ct}=se;if(We)return{type:"loading"};if(Ke)return{type:"error",error:Ke};const{location:Ye,colocatedEntities:He}=ct;return Ye?{type:"unregister",location:$,colocatedEntities:He.map(p.C_),unregisterLocation:fe,deleteEntity:Ge}:{type:"only-delete",deleteEntity:Ge}}var xr=e(10179);const Dr=(0,x.Z)({advancedButton:{fontSize:"0.7em"}}),br=({entity:w,onConfirm:N})=>{var At;const $=(0,c.useApi)(c.alertApiRef),X=(0,c.useApi)(c.configApiRef),ue=Dr(),se=Or(w),[fe,Ge]=(0,i.useState)(!1),[We,Ke]=(0,i.useState)(!1),ct=(At=X.getOptionalString("app.title"))!=null?At:"Backstage",Ye=(0,i.useCallback)(async function(){if("unregisterLocation"in se){Ke(!0);try{await se.unregisterLocation(),N()}catch(Nt){(0,xr.BD)(Nt),$.post({message:Nt.message})}finally{Ke(!1)}}},[$,N,se]),He=(0,i.useCallback)(async function(){if("deleteEntity"in se){Ke(!0);try{await se.deleteEntity(),N()}catch(Nt){(0,xr.BD)(Nt),$.post({message:Nt.message})}finally{Ke(!1)}}},[$,N,se]);return se.type==="loading"?i.createElement(lt.Progress,null):se.type==="error"?i.createElement(lt.ResponseErrorPanel,{error:se.error}):se.type==="bootstrap"?i.createElement(i.Fragment,null,i.createElement(ur.Z,{severity:"info"},'You cannot unregister this entity, since it originates from a protected Backstage configuration (location "',se.location,'"). If you believe this is in error, please contact the ',ct," ","integrator."),i.createElement(z.Z,{marginTop:2},!fe&&i.createElement(xn.Z,{variant:"text",size:"small",color:"primary",className:ue.advancedButton,onClick:()=>Ge(!0)},"Advanced Options"),fe&&i.createElement(i.Fragment,null,i.createElement(mn.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."),i.createElement(xn.Z,{variant:"contained",color:"secondary",disabled:We,onClick:He},"Delete Entity")))):se.type==="only-delete"?i.createElement(i.Fragment,null,i.createElement(mn.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."),i.createElement(xn.Z,{variant:"contained",color:"secondary",disabled:We,onClick:He},"Delete Entity")):se.type==="unregister"?i.createElement(i.Fragment,null,i.createElement(mn.Z,null,"This action will unregister the following entities:"),i.createElement(mn.Z,{component:"ul"},se.colocatedEntities.map(Dt=>i.createElement("li",{key:`${Dt.kind}:${Dt.namespace}/${Dt.name}`},i.createElement(ae,{entityRef:Dt})))),i.createElement(mn.Z,null,"Located at the following location:"),i.createElement(mn.Z,{component:"ul"},i.createElement("li",null,se.location)),i.createElement(mn.Z,null,"To undo, just re-register the entity in ",ct,"."),i.createElement(z.Z,{marginTop:2},i.createElement(xn.Z,{variant:"contained",color:"secondary",disabled:We,onClick:Ye},"Unregister Location"),!fe&&i.createElement(z.Z,{component:"span",marginLeft:2},i.createElement(xn.Z,{variant:"text",size:"small",color:"primary",className:ue.advancedButton,onClick:()=>Ge(!0)},"Advanced Options"))),fe&&i.createElement(i.Fragment,null,i.createElement(z.Z,{paddingTop:4,paddingBottom:4},i.createElement(nn.Z,null)),i.createElement(mn.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."),i.createElement(xn.Z,{variant:"contained",color:"secondary",disabled:We,onClick:He},"Delete Entity"))):i.createElement(ur.Z,{severity:"error"},"Internal error: Unknown state")},_r=({open:w,onConfirm:N,onClose:$,entity:X})=>i.createElement(Tr.Z,{open:w,onClose:$},i.createElement(Pr.Z,{id:"responsive-dialog-title"},"Are you sure you want to unregister this entity?"),i.createElement(Ir.Z,null,i.createElement(br,{entity:X,onConfirm:N})),i.createElement(Lr.Z,null,i.createElement(xn.Z,{onClick:$,color:"primary"},"Cancel")));var Fr=e(94339),Br=e(11776),ea=e(12231),Mn=e(86136),dr=e(49378),fr=e(9520),mr=e(47603);const Mr=(0,x.Z)(w=>({root:{backgroundColor:"rgba(0, 0, 0, .11)",boxShadow:"none",margin:w.spacing(1,0,1,0)},title:{margin:w.spacing(1,0,0,1),textTransform:"uppercase",fontSize:12,fontWeight:"bold"},listIcon:{minWidth:30,color:w.palette.text.primary},menuItem:{minHeight:w.spacing(6)},groupWrapper:{margin:w.spacing(1,1,2,1)}}),{name:"CatalogReactUserListPicker"});function hr(w){return[{name:"Personal",items:[{id:"owned",label:"Owned",icon:mr.Z},{id:"starred",label:"Starred",icon:Xn.Z}]},{name:w!=null?w:"Company",items:[{id:"all",label:"All"}]}]}const gr=({initialFilter:w,availableFilters:N})=>{var Zt,Cn;const $=Mr(),ue=(Zt=(0,c.useApi)(c.configApiRef).getOptionalString("organization.name"))!=null?Zt:"Company",{filters:se,updateFilters:fe,backendEntities:Ge,queryParameters:We,loading:Ke}=mt(),ct=["starred","all"],Ye=hr(ue).map(Gt=>({...Gt,items:Gt.items.filter(({id:Yt})=>["group","user"].some(Dn=>Dn===We.kind)?ct.includes(Yt):!N||N.includes(Yt))})).filter(({items:Gt})=>!!Gt.length),{isStarredEntity:He}=ut(),{isOwnedEntity:At}=Ue(),Dt=(0,i.useMemo)(()=>new Ae("owned",At,He),[At,He]),Nt=(0,i.useMemo)(()=>new Ae("starred",At,He),[At,He]),[Ut,zt]=(0,i.useState)((Cn=[We.user].flat()[0])!=null?Cn:w),kt=(0,i.useMemo)(()=>Ge.filter(wt((0,h.compact)(Object.values({...se,user:void 0})))),[se,Ge]),rn=(0,i.useMemo)(()=>({all:kt.length,starred:kt.filter(Gt=>Nt.filterEntity(Gt)).length,owned:kt.filter(Gt=>Dt.filterEntity(Gt)).length}),[kt,Nt,Dt]);return(0,i.useEffect)(()=>{!Ke&&!!Ut&&Ut!=="all"&&rn[Ut]===0&&zt("all")},[Ke,rn,Ut,zt]),(0,i.useEffect)(()=>{fe({user:Ut?new Ae(Ut,At,He):void 0})},[Ut,At,He,fe]),i.createElement(Fr.Z,{className:$.root},Ye.map(Gt=>i.createElement(i.Fragment,{key:Gt.name},i.createElement(_.Z,{variant:"subtitle2",className:$.title},Gt.name),i.createElement(Fr.Z,{className:$.groupWrapper},i.createElement(Br.Z,{disablePadding:!0,dense:!0},Gt.items.map(Yt=>{var Dn,_n;return i.createElement(ea.Z,{key:Yt.id,button:!0,divider:!0,onClick:()=>zt(Yt.id),selected:Yt.id===((Dn=se.user)==null?void 0:Dn.value),className:$.menuItem,disabled:rn[Yt.id]===0,"data-testid":`user-picker-${Yt.id}`},Yt.icon&&i.createElement(Mn.Z,{className:$.listIcon},i.createElement(Yt.icon,{fontSize:"small"})),i.createElement(dr.Z,null,i.createElement(_.Z,{variant:"body1"},Yt.label)),i.createElement(fr.Z,null,(_n=rn[Yt.id])!=null?_n:"-"))}))))))},Nr=({children:w,value:N})=>{var We;const[$,X]=useState((We=N==null?void 0:N.filters)!=null?We:{}),ue=useCallback(Ke=>{X(ct=>{const Ye=typeof Ke=="function"?Ke(ct):Ke;return{...ct,...Ye}})},[]),se={entities:[],backendEntities:[],updateFilters:ue,filters:$,loading:!1,queryParameters:{}},{filters:fe,...Ge}=N!=null?N:{};return React.createElement(EntityListContext.Provider,{value:{...se,...Ge}},w)};var zn=e(92787)},92787:function(){},39398:function(J,o,e){"use strict";e.r(o),e.d(o,{AboutCard:function(){return Le},AboutContent:function(){return ie},AboutField:function(){return K}});var r=e(52890),t=e(9118),c=e(36964),f=e(36356),E=e(19139),s=e(79692),p=e(94339),h=e(32552),m=e(61837),l=e(85256),y=e(24579),i=e(52866),S=e(30254),D=e(27604),P=e(2784),G=e(47851),L=e(60905),I=e(90436),b=e(7089);const F=(0,s.Z)(me=>({value:{fontWeight:"bold",overflow:"hidden",lineHeight:"24px",wordBreak:"break-word"},label:{color:me.palette.text.secondary,textTransform:"uppercase",fontSize:"10px",fontWeight:"bold",letterSpacing:.5,overflow:"hidden",whiteSpace:"nowrap"}})),K=({label:me,value:ze,gridSizes:Te,children:Qe})=>{const it=F(),et=(0,c.useElementFilter)(Qe,rt=>rt.getElements()),gt=et.length>0?et:P.createElement(I.Z,{variant:"body2",className:it.value},ze||"unknown");return P.createElement(L.Z,{item:!0,...Te},P.createElement(I.Z,{variant:"subtitle2",className:it.label},me),gt)},ee=(0,s.Z)({description:{wordBreak:"break-word"}}),ie=({entity:me})=>{var at,Tt,Pt,Ot,Ft,mt;const ze=ee(),Te=me.kind.toLocaleLowerCase("en-US")==="system",Qe=me.kind.toLocaleLowerCase("en-US")==="resource",it=me.kind.toLocaleLowerCase("en-US")==="component",et=me.kind.toLocaleLowerCase("en-US")==="api",gt=me.kind.toLocaleLowerCase("en-US")==="template",rt=me.kind.toLocaleLowerCase("en-US")==="location",ot=me.kind.toLocaleLowerCase("en-US")==="group",Rt=(0,E.getEntityRelations)(me,r.cz,{kind:"system"}),wt=(0,E.getEntityRelations)(me,r.cz,{kind:"component"}),Lt=(0,E.getEntityRelations)(me,r.cz,{kind:"domain"}),pt=(0,E.getEntityRelations)(me,r.S4);return P.createElement(L.Z,{container:!0},P.createElement(K,{label:"Description",gridSizes:{xs:12}},P.createElement(I.Z,{variant:"body2",paragraph:!0,className:ze.description},((at=me==null?void 0:me.metadata)==null?void 0:at.description)||"No description")),P.createElement(K,{label:"Owner",value:"No Owner",gridSizes:{xs:12,sm:6,lg:4}},pt.length>0&&P.createElement(E.EntityRefLinks,{entityRefs:pt,defaultKind:"group"})),(Te||Lt.length>0)&&P.createElement(K,{label:"Domain",value:"No Domain",gridSizes:{xs:12,sm:6,lg:4}},Lt.length>0&&P.createElement(E.EntityRefLinks,{entityRefs:Lt,defaultKind:"domain"})),(et||it||Qe||Rt.length>0)&&P.createElement(K,{label:"System",value:"No System",gridSizes:{xs:12,sm:6,lg:4}},Rt.length>0&&P.createElement(E.EntityRefLinks,{entityRefs:Rt,defaultKind:"system"})),it&&wt.length>0&&P.createElement(K,{label:"Parent Component",value:"No Parent Component",gridSizes:{xs:12,sm:6,lg:4}},P.createElement(E.EntityRefLinks,{entityRefs:wt,defaultKind:"component"})),(et||it||Qe||gt||ot||rt||typeof((Tt=me==null?void 0:me.spec)==null?void 0:Tt.type)=="string")&&P.createElement(K,{label:"Type",value:(Pt=me==null?void 0:me.spec)==null?void 0:Pt.type,gridSizes:{xs:12,sm:6,lg:4}}),(et||it||typeof((Ot=me==null?void 0:me.spec)==null?void 0:Ot.lifecycle)=="string")&&P.createElement(K,{label:"Lifecycle",value:(Ft=me==null?void 0:me.spec)==null?void 0:Ft.lifecycle,gridSizes:{xs:12,sm:6,lg:4}}),P.createElement(K,{label:"Tags",value:"No Tags",gridSizes:{xs:12,sm:6,lg:4}},(((mt=me==null?void 0:me.metadata)==null?void 0:mt.tags)||[]).map(It=>P.createElement(b.Z,{key:It,size:"small",label:It}))))},pe=(0,s.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 Le({variant:me}){var Ot,Ft;const ze=pe(),{entity:Te}=(0,E.useEntity)(),Qe=(0,c.useApi)(f.q3),it=(0,c.useApi)(E.Ah),et=(0,c.useApi)(c.alertApiRef),gt=(0,c.useRouteRef)(G.j),rt=(0,E.getEntitySourceLocation)(Te,Qe),ot=(0,E.getEntityMetadataEditUrl)(Te),Rt={label:"View Source",disabled:!rt,icon:P.createElement(f.nW,{type:rt==null?void 0:rt.integrationType}),href:rt==null?void 0:rt.locationTargetUrl},wt={label:"View TechDocs",disabled:!((Ot=Te.metadata.annotations)==null?void 0:Ot["backstage.io/techdocs-ref"])||!gt,icon:P.createElement(S.Z,null),href:gt&>({namespace:Te.metadata.namespace||r.sk,kind:Te.kind,name:Te.metadata.name})};let Lt="";me==="gridItem"?Lt=ze.gridItemCard:me==="fullHeight"&&(Lt=ze.fullHeightCard);let pt="";me==="gridItem"?pt=ze.gridItemCardContent:me==="fullHeight"&&(pt=ze.fullHeightCardContent);const at=(Ft=Te.metadata.annotations)==null?void 0:Ft[r.Jl],Tt=(at==null?void 0:at.startsWith("url:"))||(at==null?void 0:at.startsWith("file:")),Pt=(0,P.useCallback)(async()=>{await it.refreshEntity((0,r.eE)(Te)),et.post({message:"Refresh scheduled",severity:"info"})},[it,et,Te]);return P.createElement(p.Z,{className:Lt},P.createElement(h.Z,{title:"About",action:P.createElement(P.Fragment,null,Tt&&P.createElement(m.Z,{"aria-label":"Refresh",title:"Schedule entity refresh",onClick:Pt},P.createElement(i.Z,null)),P.createElement(m.Z,{component:t.Link,"aria-label":"Edit",disabled:!ot,title:"Edit Metadata",to:ot!=null?ot:"#"},P.createElement(D.Z,null))),subheader:P.createElement(t.HeaderIconLinkRow,{links:[Rt,wt]})}),P.createElement(l.Z,null),P.createElement(y.Z,{className:pt},P.createElement(ie,{entity:Te})))}},49782:function(J,o,e){"use strict";e.d(o,{K:function(){return l}});var r=e(2784),t=e(79692),c=e(12420),f=e(97580),E=e(73698),s=e(74603),p=e(12231),h=e(19139);const m=(0,t.Z)(y=>(0,c.Z)({root:{...y.typography.h4}})),l=({initialFilter:y="component"})=>{var b;const i=m(),{kinds:S=[]}=(0,h.useEntityKinds)(),{updateFilters:D,queryParameters:P}=(0,h.useEntityListProvider)(),[G,L]=(0,r.useState)(((b=[P.kind].flat()[0])!=null?b:y).toLocaleLowerCase("en-US"));(0,r.useEffect)(()=>{D({kind:G?new h.EntityKindFilter(G):void 0})},[G,D]);const I=[(0,f.Z)(G)].concat(S).sort().reduce((F,K)=>(F[K.toLocaleLowerCase("en-US")]=K,F),{});return r.createElement(E.Z,{input:r.createElement(s.Z,{value:G}),value:G,onChange:F=>L(F.target.value),classes:i},Object.keys(I).map(F=>r.createElement(p.Z,{value:F,key:F},`${I[F]}s`)))}},7758:function(J,o,e){"use strict";e.r(o),e.d(o,{CatalogPage:function(){return y},DefaultCatalogPage:function(){return l}});var r=e(2784),t=e(10289),c=e(9118),f=e(36964),E=e(19139),s=e(47851),p=e(91730),h=e(26997),m=e(49782);const l=({columns:i,actions:S,initiallySelectedFilter:D="owned"})=>{var L;const P=(L=(0,f.useApi)(f.configApiRef).getOptionalString("organization.name"))!=null?L:"Backstage",G=(0,f.useRouteRef)(s.y);return r.createElement(c.PageWithHeader,{title:`${P} Catalog`,themeId:"home"},r.createElement(E.EntityListProvider,null,r.createElement(c.Content,null,r.createElement(c.ContentHeader,{titleComponent:r.createElement(m.K,null)},r.createElement(c.CreateButton,{title:"Create Component",to:G&&G()}),r.createElement(c.SupportButton,null,"All your software catalog entities")),r.createElement(h.q7,null,r.createElement(h.Gh,null,r.createElement(E.EntityTypePicker,null),r.createElement(E.UserListPicker,{initialFilter:D}),r.createElement(E.EntityOwnerPicker,null),r.createElement(E.EntityLifecyclePicker,null),r.createElement(E.EntityTagPicker,null)),r.createElement(h.Nz,null,r.createElement(p.E,{columns:i,actions:S}))))))},y=i=>(0,t.pC)()||r.createElement(l,{...i})},17499:function(J,o,e){"use strict";e.r(o),e.d(o,{createNameColumn:function(){return E},createSystemColumn:function(){return s},createOwnerColumn:function(){return p},createSpecTypeColumn:function(){return h},createSpecLifecycleColumn:function(){return m},createMetadataDescriptionColumn:function(){return l},createTagsColumn:function(){return y}});var r=e(2784),t=e(19139),c=e(7089),f=e(9118);function E(i){function S(D){var P;return((P=D.metadata)==null?void 0:P.title)||(0,t.formatEntityRefTitle)(D,{defaultKind:i==null?void 0:i.defaultKind})}return{title:"Name",field:"resolved.name",highlight:!0,customSort({entity:D},{entity:P}){return S(D).localeCompare(S(P))},render:({entity:D})=>{var P;return r.createElement(t.EntityRefLink,{entityRef:D,defaultKind:(i==null?void 0:i.defaultKind)||"Component",title:(P=D.metadata)==null?void 0:P.title})}}}function s(){return{title:"System",field:"resolved.partOfSystemRelationTitle",render:({resolved:i})=>r.createElement(t.EntityRefLinks,{entityRefs:i.partOfSystemRelations,defaultKind:"system"})}}function p(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:i})=>r.createElement(t.EntityRefLinks,{entityRefs:i.ownedByRelations,defaultKind:"group"})}}function h(){return{title:"Type",field:"entity.spec.type",hidden:!0}}function m(){return{title:"Lifecycle",field:"entity.spec.lifecycle"}}function l(){return{title:"Description",field:"entity.metadata.description",render:({entity:i})=>r.createElement(f.OverflowTooltip,{text:i.metadata.description,placement:"bottom-start"}),width:"auto"}}function y(){return{title:"Tags",field:"entity.metadata.tags",cellStyle:{padding:"0px 16px 0px 20px"},render:({entity:i})=>r.createElement(r.Fragment,null,i.metadata.tags&&i.metadata.tags.map(S=>r.createElement(c.Z,{key:S,label:S,size:"small",variant:"outlined",style:{marginBottom:"0px"}})))}}},91730:function(J,o,e){"use strict";e.d(o,{E:function(){return m}});var r=e(52890),t=e(19139),c=e(27604),f=e(2997),E=e(76635),s=e(2784),p=e(17499),h=e(9118);const m=({columns:l,actions:y})=>{var Le,me,ze;const{isStarredEntity:i,toggleStarredEntity:S}=(0,t.useStarredEntities)(),{loading:D,error:P,entities:G,filters:L}=(0,t.useEntityListProvider)(),I=(0,s.useMemo)(()=>{var Te;return[p.createNameColumn({defaultKind:(Te=L.kind)==null?void 0:Te.value}),p.createSystemColumn(),p.createOwnerColumn(),p.createSpecTypeColumn(),p.createSpecLifecycleColumn(),p.createMetadataDescriptionColumn(),p.createTagsColumn()]},[(Le=L.kind)==null?void 0:Le.value]),b=L.type===void 0,F=(0,E.capitalize)((ze=(me=L.user)==null?void 0:me.value)!=null?ze:"all");if(P)return s.createElement("div",null,s.createElement(h.WarningPanel,{severity:"error",title:"Could not fetch catalog entities."},s.createElement(h.CodeSnippet,{language:"text",text:P.toString()})));const K=[({entity:Te})=>{const Qe=(0,t.getEntityMetadataViewUrl)(Te);return{icon:()=>s.createElement(f.Z,{"aria-label":"View",fontSize:"small"}),tooltip:"View",disabled:!Qe,onClick:()=>{!Qe||window.open(Qe,"_blank")}}},({entity:Te})=>{const Qe=(0,t.getEntityMetadataEditUrl)(Te);return{icon:()=>s.createElement(c.Z,{"aria-label":"Edit",fontSize:"small"}),tooltip:"Edit",disabled:!Qe,onClick:()=>{!Qe||window.open(Qe,"_blank")}}},({entity:Te})=>{const Qe=i(Te);return{cellStyle:{paddingLeft:"1em"},icon:()=>(0,t.favoriteEntityIcon)(Qe),tooltip:(0,t.favoriteEntityTooltip)(Qe),onClick:()=>S(Te)}}],ee=G.map(Te=>{const Qe=(0,t.getEntityRelations)(Te,r.cz,{kind:"system"}),it=(0,t.getEntityRelations)(Te,r.S4);return{entity:Te,resolved:{name:(0,t.formatEntityRefTitle)(Te,{defaultKind:"Component"}),ownedByRelationsTitle:it.map(et=>(0,t.formatEntityRefTitle)(et,{defaultKind:"group"})).join(", "),ownedByRelations:it,partOfSystemRelationTitle:Qe.map(et=>(0,t.formatEntityRefTitle)(et,{defaultKind:"system"})).join(", "),partOfSystemRelations:Qe}}}),ie=(l||I).find(Te=>Te.title==="Type");ie&&(ie.hidden=!b);const pe=ee.length>20;return s.createElement(h.Table,{isLoading:D,columns:l||I,options:{paging:pe,pageSize:20,actionsColumnIndex:-1,loadingType:"linear",showEmptyDataSourceMessage:!D,padding:"dense",pageSizeOptions:[20,50,100]},title:`${F} (${G.length})`,data:ee,actions:y||K})};m.columns=p},26997:function(J,o,e){"use strict";e.d(o,{Nz:function(){return i},Gh:function(){return y},q7:function(){return c}});var r=e(60905),t=e(2784);const c=({children:S})=>t.createElement(r.Z,{container:!0,style:{position:"relative"}},S);var f=e(41156),E=e(60364),s=e(77277),p=e(4190),h=e(95544),m=e(90436),l=e(36444);const y=({children:S})=>{const D=(0,f.Z)(I=>I.breakpoints.down("md")),P=(0,E.Z)(),[G,L]=(0,t.useState)(!1);return D?t.createElement(t.Fragment,null,t.createElement(s.Z,{style:{marginTop:P.spacing(1),marginLeft:P.spacing(1)},onClick:()=>L(!0),startIcon:t.createElement(l.Z,null)},"Filters"),t.createElement(p.ZP,{open:G,onClose:()=>L(!1),anchor:"left",disableAutoFocus:!0,keepMounted:!0,variant:"temporary"},t.createElement(h.Z,{m:2},t.createElement(m.Z,{variant:"h6",component:"h2",style:{marginBottom:P.spacing(1)}},"Filters"),S))):t.createElement(r.Z,{item:!0,lg:2},S)},i=({children:S})=>t.createElement(r.Z,{item:!0,xs:12,lg:10},S)},47851:function(J,o,e){"use strict";e.d(o,{y:function(){return t},j:function(){return c}});var r=e(36964);const t=(0,r.createExternalRouteRef)({id:"create-component",optional:!0}),c=(0,r.createExternalRouteRef)({id:"view-techdoc",optional:!0,params:["namespace","kind","name"]})},20221:function(J,o,e){"use strict";e.d(o,{iM:function(){return S},RV:function(){return c},gI:function(){return P}});var r=e(2784),t=e(36964);const c=(0,t.createApiRef)({id:"plugin.permission.api"});var f;(function(L){const I="DENY";L.DENY=I;const b="ALLOW";L.ALLOW=b;const F="CONDITIONAL";L.CONDITIONAL=F})(f||(f={}));var E=e(10179),s=e(96279),p=e.n(s),h=e(9571),m=e(30195);const l=m.z.lazy(()=>m.z.object({rule:m.z.string(),params:m.z.array(m.z.unknown())}).or(m.z.object({anyOf:m.z.array(l)})).or(m.z.object({allOf:m.z.array(l)})).or(m.z.object({not:l}))),y=m.z.object({items:m.z.array(m.z.object({id:m.z.string(),result:m.z.literal(f.ALLOW).or(m.z.literal(f.DENY))}).or(m.z.object({id:m.z.string(),result:m.z.literal(f.CONDITIONAL),conditions:l})))});class i{constructor(I){q(this,"enabled");q(this,"discovery");var b;this.discovery=I.discovery,this.enabled=(b=I.config.getOptionalBoolean("permission.enabled"))!=null?b:!1}async authorize(I,b){if(!this.enabled)return I.map(Le=>({result:f.ALLOW}));const F={items:I.map(Le=>({id:h.Z(),...Le}))},K=await this.discovery.getBaseUrl("permission"),ee=await p()(`${K}/authorize`,{method:"POST",body:JSON.stringify(F),headers:{...this.getAuthorizationHeader(b==null?void 0:b.token),"content-type":"application/json"}});if(!ee.ok)throw await E.VL.fromResponse(ee);const ie=await ee.json();this.assertValidResponse(F,ie);const pe=ie.items.reduce((Le,me)=>(Le[me.id]=me,Le),{});return F.items.map(Le=>pe[Le.id])}getAuthorizationHeader(I){return I?{Authorization:`Bearer ${I}`}:{}}assertValidResponse(I,b){const K=y.parse(b).items.map(ie=>ie.id);if(!I.items.every(ie=>K.includes(ie.id)))throw new Error("Unexpected authorization response from permission-backend")}}class S{constructor(I,b){this.permissionClient=I,this.identityApi=b}static create(I){const{config:b,discovery:F,identity:K}=I,ee=new i({discovery:F,config:b});return new S(ee,K)}async authorize(I){return(await this.permissionClient.authorize([I],await this.identityApi.getCredentials()))[0]}}var D=e(85482);const P=(L,I)=>{const b=(0,t.useApi)(c),{data:F,error:K}=(0,D.ZP)({permission:L,resourceRef:I},async ee=>{const{result:ie}=await b.authorize(ee);return ie});return K?{error:K,loading:!1,allowed:!1}:F===void 0?{loading:!0,allowed:!1}:{loading:!1,allowed:F===f.ALLOW}},G=L=>{const{permission:I,resourceRef:b,errorComponent:F,...K}=L,ee=usePermission(I,b),ie=useApp(),{NotFoundErrorPage:pe}=ie.getComponents();let Le=F===void 0?React.createElement(pe,null):F;return ee.loading?Le=null:ee.allowed&&(Le=L.element),React.createElement(Route,{...K,element:Le})}},91512:function(J,o,e){"use strict";e.d(o,{g:function(){return E},w:function(){return s}});var r=e(36964),t=e(10179),c=e(19126),f=e.n(c);const E=(0,r.createApiRef)({id:"plugin.search.queryservice"});class s{constructor(h){q(this,"discoveryApi");q(this,"identityApi");this.discoveryApi=h.discoveryApi,this.identityApi=h.identityApi}async query(h){const{token:m}=await this.identityApi.getCredentials(),l=f().stringify(h),y=`${await this.discoveryApi.getBaseUrl("search/query")}?${l}`,i=await fetch(y,{headers:m?{Authorization:`Bearer ${m}`}:{}});if(!i.ok)throw await t.VL.fromResponse(i);return i.json()}}},19941:function(J,o,e){"use strict";e.r(o),e.d(o,{DefaultResultListItem:function(){return h}});var r=e(2784),t=e(38402),c=e(86136),f=e(49378),E=e(95544),s=e(85256),p=e(9118);const h=({result:m,icon:l,secondaryAction:y})=>r.createElement(p.Link,{to:m.location},r.createElement(t.Z,{alignItems:"center"},l&&r.createElement(c.Z,null,l),r.createElement(f.Z,{primaryTypographyProps:{variant:"h6"},primary:m.title,secondary:m.text}),y&&r.createElement(E.Z,{alignItems:"flex-end"},y)),r.createElement(s.Z,null))},1795:function(J,o,e){"use strict";e.r(o),e.d(o,{SearchBar:function(){return S},SearchBarBase:function(){return i}});var r=e(2784),t=e(48760),c=e(36964),f=e(50581),E=e(61837),s=e(74603),p=e(21853),h=e(33375),m=e(22313);const l=({children:D})=>{const P=(0,c.useAnalytics)(),{term:G}=(0,m.Rx)();return(0,r.useEffect)(()=>{G&&P.captureEvent("search",G)},[P,G]),r.createElement(r.Fragment,null,D)},y=()=>(0,r.useContext)(m.ci)!==void 0,i=({onChange:D,onKeyDown:P,onSubmit:G,debounceTime:L=200,clearButton:I=!0,fullWidth:b=!0,value:F,inputProps:K={},endAdornment:ee,...ie})=>{const pe=(0,c.useApi)(c.configApiRef),[Le,me]=(0,r.useState)(F),ze=y();(0,r.useEffect)(()=>{me(Rt=>Rt!==F?F:Rt)},[F]),(0,t.Z)(()=>D(Le),L,[Le]);const Te=(0,r.useCallback)(Rt=>{me(Rt.target.value)},[me]),Qe=(0,r.useCallback)(Rt=>{P&&P(Rt),G&&Rt.key==="Enter"&&G()},[P,G]),it=(0,r.useCallback)(()=>{D("")},[D]),et=`Search in ${pe.getOptionalString("app.title")||"Backstage"}`,gt=r.createElement(f.Z,{position:"start"},r.createElement(E.Z,{"aria-label":"Query",disabled:!0},r.createElement(p.Z,null))),rt=r.createElement(f.Z,{position:"end"},r.createElement(E.Z,{"aria-label":"Clear",onClick:it},r.createElement(h.Z,null))),ot=r.createElement(l,null,r.createElement(s.Z,{"data-testid":"search-bar-next",value:Le,placeholder:et,startAdornment:gt,endAdornment:I?rt:ee,inputProps:{"aria-label":"Search",...K},fullWidth:b,onChange:Te,onKeyDown:Qe,...ie}));return ze?ot:r.createElement(m.Nd,null,ot)},S=({onChange:D,...P})=>{const{term:G,setTerm:L}=(0,m.Rx)(),I=b=>{D?D(b):L(b)};return r.createElement(i,{value:G,onChange:I,...P})}},22313:function(J,o,e){"use strict";e.d(o,{ci:function(){return s},Nd:function(){return p},Rx:function(){return h}});var r=e(36964),t=e(2784),c=e(64279),f=e(1849),E=e(91512);const s=(0,t.createContext)(void 0),p=({initialState:m={term:"",pageCursor:void 0,filters:{},types:[]},children:l})=>{var it,et,gt,rt;const y=(0,r.useApi)(E.g),[i,S]=(0,t.useState)(m.pageCursor),[D,P]=(0,t.useState)(m.filters),[G,L]=(0,t.useState)(m.term),[I,b]=(0,t.useState)(m.types),[F,K]=(0,t.useState)(!1),ee=(0,t.useCallback)(()=>K(ot=>!ot),[]),ie=(0,f.Z)(G),pe=(0,c.default)(()=>y.query({term:G,filters:D,pageCursor:i,types:I}),[G,D,I,i]),Le=!pe.loading&&!pe.error&&((it=pe.value)==null?void 0:it.nextPageCursor),me=!pe.loading&&!pe.error&&((et=pe.value)==null?void 0:et.previousPageCursor),ze=(0,t.useCallback)(()=>{var ot;S((ot=pe.value)==null?void 0:ot.nextPageCursor)},[(gt=pe.value)==null?void 0:gt.nextPageCursor]),Te=(0,t.useCallback)(()=>{var ot;S((ot=pe.value)==null?void 0:ot.previousPageCursor)},[(rt=pe.value)==null?void 0:rt.previousPageCursor]);(0,t.useEffect)(()=>{G&&ie&&G!==ie&&S(void 0)},[G,ie,m.pageCursor]);const Qe={result:pe,filters:D,setFilters:P,open:F,toggleModal:ee,term:G,setTerm:L,types:I,setTypes:b,pageCursor:i,setPageCursor:S,fetchNextPage:Le?ze:void 0,fetchPreviousPage:me?Te:void 0};return t.createElement(r.AnalyticsContext,{attributes:{searchTypes:I.sort().join(",")}},t.createElement(s.Provider,{value:Qe,children:l}))},h=()=>{const m=(0,t.useContext)(s);if(m===void 0)throw new Error("useSearch must be used within a SearchContextProvider");return m}},65678:function(J,o,e){"use strict";e.d(o,{s:function(){return ie}});var r=e(2784),t=e(60364),c=e(8629),f=e(79249),E=e(27556),s=e(38724),p=e(60905),h=e(85256),m=e(11776),l=e(49429),y=e(69001),i=e(79692),S=e(1795),D=e(19941),P=e(39332),G=e(22313),L=e(8542),I=e(36964),b=e(9118),F=e(20863);const K=(0,i.Z)(pe=>({container:{borderRadius:30,display:"flex",height:"2.4em"},input:{flex:1},paperFullWidth:{height:"calc(100% - 128px)"},dialogActionsContainer:{padding:pe.spacing(1,3)},viewResultsLink:{verticalAlign:"0.5em"}})),ee=({open:pe=!0,toggleModal:Le})=>{const me=(0,I.useRouteRef)(F._Z),ze=K(),{term:Te}=(0,G.Rx)(),{focusContent:Qe}=(0,b.useContent)(),{transitions:it}=(0,t.Z)(),et=()=>{Le(),setTimeout(Qe,it.duration.leavingScreen)},gt=()=>{et()};return r.createElement(c.Z,{classes:{paperFullWidth:ze.paperFullWidth},onClose:Le,"aria-labelledby":"search-modal-title",open:pe,fullWidth:!0,maxWidth:"lg"},r.createElement(f.Z,null,r.createElement(E.Z,{className:ze.container},r.createElement(S.SearchBar,{className:ze.input}))),r.createElement(s.Z,null,r.createElement(p.Z,{container:!0,direction:"row-reverse",justifyContent:"flex-start",alignItems:"center"},r.createElement(p.Z,{item:!0},r.createElement(b.Link,{onClick:()=>{Le(),setTimeout(Qe,it.duration.leavingScreen)},to:`${me()}?query=${Te}`},r.createElement("span",{className:ze.viewResultsLink},"View Full Results"),r.createElement(y.Z,{color:"primary"})))),r.createElement(h.Z,null),r.createElement(P.SearchResult,null,({results:rt})=>r.createElement(m.Z,null,rt.map(({document:ot})=>r.createElement("div",{role:"button",tabIndex:0,key:`${ot.location}-btn`,onClick:et,onKeyPress:gt},r.createElement(D.DefaultResultListItem,{key:ot.location,result:ot})))))),r.createElement(l.Z,{className:ze.dialogActionsContainer},r.createElement(p.Z,{container:!0,direction:"row"},r.createElement(p.Z,{item:!0,xs:12},r.createElement(L.G,null)))))},ie=({open:pe=!0,toggleModal:Le})=>r.createElement(G.Nd,null,r.createElement(ee,{open:pe,toggleModal:Le}))},3992:function(J,o,e){"use strict";e.r(o),e.d(o,{SearchPage:function(){return Bt}});var r=e(2784),t=e(1849),c=e(19126),f=e.n(c),E=e(10289),s=e(22313),p=e(60905),h=e(48760),m=e(79692),l=e(27556),y=e(74603),i=e(61837),S=e(21853),D=e(33375);const P=(0,m.Z)(()=>({root:{display:"flex",alignItems:"center"},input:{flex:1}})),G=({searchQuery:be,handleSearch:st,handleClearSearchBar:lt})=>{const Ct=P();return r.createElement(l.Z,{component:"form",onSubmit:ae=>st(ae),className:Ct.root},r.createElement(i.Z,{disabled:!0,type:"submit","aria-label":"search"},r.createElement(S.Z,null)),r.createElement(y.Z,{className:Ct.input,placeholder:"Search in Backstage",value:be,onChange:ae=>st(ae),inputProps:{"aria-label":"search backstage"}}),r.createElement(i.Z,{"aria-label":"search",onClick:()=>lt()},r.createElement(D.Z,null)))};var L=e(85256),I=e(90436),b=e(99688),F=e(64279),K=e(19139),ee=e(36444);const ie=(0,m.Z)(be=>({filters:{width:"250px",display:"flex"},icon:{margin:be.spacing(-1,0,0,0)}})),pe=({numberOfSelectedFilters:be,handleToggleFilters:st})=>{const lt=ie();return r.createElement("div",{className:lt.filters},r.createElement(i.Z,{className:lt.icon,"aria-label":"settings",onClick:st},r.createElement(ee.Z,null)),r.createElement(I.Z,{variant:"h6"},"Filters (",be||0,")"))};var Le=e(94339),me=e(32552),ze=e(77277),Te=e(24579),Qe=e(73698),it=e(12231),et=e(11776),gt=e(38402),rt=e(21324),ot=e(49378);const Rt=(0,m.Z)(be=>({filters:{background:"transparent",boxShadow:"0px 0px 0px 0px"},checkbox:{padding:be.spacing(0,1,0,1)},dropdown:{width:"100%"}})),wt=({filters:be,filterOptions:st,resetFilters:lt,updateSelected:Ct,updateChecked:ae})=>{const te=Rt();return r.createElement(Le.Z,{className:te.filters},r.createElement(me.Z,{title:r.createElement(I.Z,{variant:"h6"},"Filters"),action:r.createElement(ze.Z,{color:"primary",onClick:()=>lt()},"CLEAR ALL")}),r.createElement(L.Z,null),st.kind.length===0&&st.lifecycle.length===0&&r.createElement(Te.Z,null,r.createElement(I.Z,{variant:"subtitle2"},"Filters cannot be applied to available results")),st.kind.length>0&&r.createElement(Te.Z,null,r.createElement(I.Z,{variant:"subtitle2"},"Kind"),r.createElement(Qe.Z,{id:"outlined-select",onChange:T=>{var C;return Ct((C=T==null?void 0:T.target)==null?void 0:C.value)},variant:"outlined",className:te.dropdown,value:be.selected},st.kind.map(T=>r.createElement(it.Z,{selected:T==="",dense:!0,key:T,value:T},T)))),st.lifecycle.length>0&&r.createElement(Te.Z,null,r.createElement(I.Z,{variant:"subtitle2"},"Lifecycle"),r.createElement(et.Z,{disablePadding:!0,dense:!0},st.lifecycle.map(T=>r.createElement(gt.Z,{key:T,dense:!0,button:!0,onClick:()=>ae(T)},r.createElement(rt.Z,{edge:"start",disableRipple:!0,className:te.checkbox,color:"primary",checked:be.checked.includes(T),tabIndex:-1,value:T,name:T}),r.createElement(ot.Z,{id:T,primary:T}))))))};var Lt=e(52890),pt=e(9118),at=e(36964);const Tt=(0,m.Z)(be=>({searchQuery:{color:be.palette.text.primary,background:be.palette.background.default,borderRadius:"10%"},tableHeader:{margin:be.spacing(1,0,0,0),display:"flex"},divider:{width:"1px",margin:be.spacing(0,2),padding:be.spacing(2,0)}})),Pt=[{title:"Name",field:"name",highlight:!0,render:be=>r.createElement(pt.Link,{to:be.url||""},be.name)},{title:"Description",field:"description"},{title:"Owner",field:"owner"},{title:"Kind",field:"kind"},{title:"LifeCycle",field:"lifecycle"}],Ot=({searchQuery:be,numberOfSelectedFilters:st,numberOfResults:lt,handleToggleFilters:Ct})=>{const ae=Tt();return r.createElement("div",{className:ae.tableHeader},r.createElement(pe,{numberOfSelectedFilters:st,handleToggleFilters:Ct}),r.createElement(L.Z,{className:ae.divider,orientation:"vertical"}),r.createElement(p.Z,{item:!0,xs:12},be?r.createElement(I.Z,{variant:"h6"},`${lt} `,lt>1?"results for ":"result for ",r.createElement("span",{className:ae.searchQuery},'"',be,'"')," "):r.createElement(I.Z,{variant:"h6"},`${lt} results`)))},Ft=({searchQuery:be})=>{const st=(0,at.useApi)(K.Ah),[lt,Ct]=(0,r.useState)(!1),[ae,te]=(0,r.useState)({selected:"",checked:[]}),[T,C]=(0,r.useState)([]),{loading:B,error:H,value:Y}=(0,F.default)(async()=>(await st.getEntities()).items.map(ve=>{var Ee,Fe,St,ut,Ve;return{name:ve.metadata.name,description:ve.metadata.description,owner:typeof((Ee=ve.spec)==null?void 0:Ee.owner)=="string"?(Fe=ve.spec)==null?void 0:Fe.owner:void 0,kind:ve.kind,lifecycle:typeof((St=ve.spec)==null?void 0:St.lifecycle)=="string"?(ut=ve.spec)==null?void 0:ut.lifecycle:void 0,url:`/catalog/${((Ve=ve.metadata.namespace)==null?void 0:Ve.toLocaleLowerCase("en-US"))||Lt.sk}/${ve.kind.toLocaleLowerCase("en-US")}/${ve.metadata.name}`}}),[]);if((0,r.useEffect)(()=>{if(Y){let Ie=Y;ae.selected!==""&&(Ie=Y.filter(ve=>ae.selected.includes(ve.kind))),ae.checked.length>0&&(Ie=Ie.filter(ve=>ve.lifecycle&&ae.checked.includes(ve.lifecycle))),be&&(Ie=Ie.filter(ve=>{var Ee,Fe,St;return((Ee=ve.name)==null?void 0:Ee.toLocaleLowerCase("en-US").includes(be))||((Fe=ve.name)==null?void 0:Fe.toLocaleLowerCase("en-US").includes(be.split(" ").join("-")))||((St=ve.description)==null?void 0:St.toLocaleLowerCase("en-US").includes(be))})),C(Ie)}},[ae,be,Y]),B)return r.createElement(pt.Progress,null);if(H)return r.createElement(b.Z,{severity:"error"},"Error encountered while fetching search results. ",H.toString());if(!Y||Y.length===0)return r.createElement(pt.EmptyState,{missing:"data",title:"Sorry, no results were found"});const le=()=>{te({selected:"",checked:[]})},Ae=Ie=>{te(ve=>({...ve,selected:Ie}))},ye=Ie=>{if(ae.checked.includes(Ie)){te(ve=>({...ve,checked:ve.checked.filter(Ee=>Ee!==Ie)}));return}te(ve=>({...ve,checked:[...ve.checked,Ie]}))},Be=Y.reduce((Ie,ve)=>(ve.kind&&Ie.kind.indexOf(ve.kind)<0&&Ie.kind.push(ve.kind),ve.lifecycle&&Ie.lifecycle.indexOf(ve.lifecycle)<0&&Ie.lifecycle.push(ve.lifecycle),Ie),{kind:[],lifecycle:[]});return r.createElement(r.Fragment,null,r.createElement(p.Z,{container:!0},lt&&r.createElement(p.Z,{item:!0,xs:3},r.createElement(wt,{filters:ae,filterOptions:Be,resetFilters:le,updateSelected:Ae,updateChecked:ye})),r.createElement(p.Z,{item:!0,xs:lt?9:12},r.createElement(pt.Table,{options:{paging:!0,pageSize:20,search:!1},data:T,columns:Pt,title:r.createElement(Ot,{searchQuery:be,numberOfResults:T.length,numberOfSelectedFilters:(ae.selected!==""?1:0)+ae.checked.length,handleToggleFilters:()=>Ct(!lt)})}))))},mt=()=>{const[be,st]=(0,pt.useQueryParamState)("query"),[lt,Ct]=(0,r.useState)(be!=null?be:""),ae=T=>{T.preventDefault(),Ct(T.target.value)};(0,r.useEffect)(()=>Ct(be!=null?be:""),[be]),(0,h.Z)(()=>{st(lt)},200,[lt]);const te=()=>{Ct("")};return r.createElement(pt.Page,{themeId:"home"},r.createElement(pt.Header,{title:"Search"}),r.createElement(pt.Content,null,r.createElement(p.Z,{container:!0,direction:"row"},r.createElement(p.Z,{item:!0,xs:12},r.createElement(G,{handleSearch:ae,handleClearSearchBar:te,searchQuery:lt})),r.createElement(p.Z,{item:!0,xs:12},r.createElement(Ft,{searchQuery:(be!=null?be:"").toLocaleLowerCase("en-US")})))))},It=()=>{const be=(0,E.TH)(),{term:st,setTerm:lt,types:Ct,setTypes:ae,pageCursor:te,setPageCursor:T,filters:C,setFilters:B}=(0,s.Rx)(),H=(0,t.Z)(be.search);return(0,r.useEffect)(()=>{if(be.search===H)return;const Y=f().parse(be.search.substring(1),{arrayLimit:0})||{};Y.filters&&B(Y.filters),Y.query&<(Y.query),Y.pageCursor&&T(Y.pageCursor),Y.types&&ae(Y.types)},[H,be,lt,ae,T,B]),(0,r.useEffect)(()=>{const Y=f().stringify({query:st,types:Ct,pageCursor:te,filters:C},{arrayFormat:"brackets"}),le=`${window.location.pathname}?${Y}`;window.history.replaceState(null,document.title,le)},[st,Ct,te,C]),null},Bt=()=>{const be=(0,E.pC)();return r.createElement(s.Nd,null,r.createElement(It,null),be||r.createElement(mt,null))}},39332:function(J,o,e){"use strict";e.r(o),e.d(o,{SearchResult:function(){return f}});var r=e(9118),t=e(2784),c=e(22313);const f=({children:E})=>{const{result:{loading:s,error:p,value:h}}=(0,c.Rx)();return s?t.createElement(r.Progress,null):p?t.createElement(r.ResponseErrorPanel,{title:"Error encountered while fetching search results",error:p}):(h==null?void 0:h.results.length)?t.createElement(t.Fragment,null,E({results:h.results})):t.createElement(r.EmptyState,{missing:"data",title:"Sorry, no results were found"})}},8542:function(J,o,e){"use strict";e.d(o,{G:function(){return h}});var r=e(79692),t=e(77277),c=e(35352),f=e(27742),E=e(2784),s=e(22313);const p=(0,r.Z)(m=>({root:{display:"flex",justifyContent:"space-between",gap:m.spacing(2),margin:m.spacing(2,0)}})),h=()=>{const{fetchNextPage:m,fetchPreviousPage:l}=(0,s.Rx)(),y=p();return!m&&!l?E.createElement(E.Fragment,null):E.createElement("nav",{"arial-label":"pagination navigation",className:y.root},E.createElement(t.Z,{"aria-label":"previous page",disabled:!l,onClick:l,startIcon:E.createElement(c.Z,null)},"Previous"),E.createElement(t.Z,{"aria-label":"next page",disabled:!m,onClick:m,endIcon:E.createElement(f.Z,null)},"Next"))}},20863:function(J,o,e){"use strict";e.d(o,{_Z:function(){return c}});var r=e(91512),t=e(36964);const c=(0,t.createRouteRef)({id:"search"}),f=(0,t.createRouteRef)({id:"search:next"}),E=(0,t.createPlugin)({id:"search",apis:[(0,t.createApiFactory)({api:r.g,deps:{discoveryApi:t.discoveryApiRef,identityApi:t.identityApiRef},factory:({discoveryApi:P,identityApi:G})=>new r.w({discoveryApi:P,identityApi:G})})],routes:{root:c,nextRoot:f}}),s=E.provide((0,t.createRoutableExtension)({name:"SearchPage",component:()=>Promise.resolve().then(e.bind(e,3992)).then(P=>P.SearchPage),mountPoint:c})),p=E.provide((0,t.createRoutableExtension)({name:"SearchPageNext",component:()=>Promise.resolve().then(e.bind(e,3992)).then(P=>P.SearchPage),mountPoint:f})),h=E.provide((0,t.createComponentExtension)({name:"SearchBar",component:{lazy:()=>Promise.resolve().then(e.bind(e,1795)).then(P=>P.SearchBar)}})),m=E.provide((0,t.createComponentExtension)({name:"SearchBarNext",component:{lazy:()=>Promise.resolve().then(e.bind(e,1795)).then(P=>P.SearchBar)}})),l=E.provide((0,t.createComponentExtension)({name:"SearchResult",component:{lazy:()=>Promise.resolve().then(e.bind(e,39332)).then(P=>P.SearchResult)}})),y=E.provide((0,t.createComponentExtension)({name:"SearchResultNext",component:{lazy:()=>Promise.resolve().then(e.bind(e,39332)).then(P=>P.SearchResult)}})),i=E.provide((0,t.createComponentExtension)({name:"SidebarSearchModal",component:{lazy:()=>e.e(3825).then(e.bind(e,43825)).then(P=>P.SidebarSearchModal)}})),S=E.provide((0,t.createComponentExtension)({name:"DefaultResultListItem",component:{lazy:()=>Promise.resolve().then(e.bind(e,19941)).then(P=>P.DefaultResultListItem)}})),D=E.provide((0,t.createComponentExtension)({name:"HomePageSearchBar",component:{lazy:()=>e.e(6105).then(e.bind(e,46105)).then(P=>P.HomePageSearchBar)}}))},94067:function(J,o,e){"use strict";e.r(o),e.d(o,{EmbeddedDocsRouter:function(){return D},Router:function(){return S},isTechDocsAvailable:function(){return i}});var r=e(2784),t=e(19139),c=e(10289),f=e(41481),E=e(31752),s=e(73873),p=e(97589),h=e(36964);const m=({entity:P})=>{var L;const G=(0,h.useApi)(h.configApiRef);return r.createElement(s.Ej,{withSearch:!1,entityRef:{namespace:(0,p.D)((L=P.metadata.namespace)!=null?L:"default",G),kind:(0,p.D)(P.kind,G),name:(0,p.D)(P.metadata.name,G)}})};var l=e(9118);const y="backstage.io/techdocs-ref",i=P=>{var G,L;return Boolean((L=(G=P==null?void 0:P.metadata)==null?void 0:G.annotations)==null?void 0:L[y])},S=()=>r.createElement(c.Z5,null,r.createElement(c.AW,{path:"/",element:r.createElement(f.TechDocsIndexPage,null)}),r.createElement(c.AW,{path:"/:namespace/:kind/:name/*",element:r.createElement(E.TechDocsPage,null)})),D=P=>{var I;const{entity:G}=(0,t.useEntity)();return((I=G.metadata.annotations)==null?void 0:I[y])?r.createElement(c.Z5,null,r.createElement(c.AW,{path:"/*",element:r.createElement(m,{entity:G})})):r.createElement(l.MissingAnnotationEmptyState,{annotation:y})}},3337:function(J,o,e){"use strict";e.d(o,{D:function(){return t},g:function(){return c}});var r=e(36964);const t=(0,r.createApiRef)({id:"plugin.techdocs.storageservice"}),c=(0,r.createApiRef)({id:"plugin.techdocs.service"})},71226:function(J,o,e){"use strict";e.d(o,{O:function(){return l}});var r=e(2784),t=e(79692),c=e(49378),f=e(38402),E=e(85256),s=e(9118),p=e(15277),h=e.n(p);const m=(0,t.Z)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),l=({result:y,lineClamp:i=5,asListItem:S=!0,asLink:D=!0,title:P})=>{const G=m(),L=()=>{var F;return r.createElement(c.Z,{className:G.itemText,primaryTypographyProps:{variant:"h6"},primary:P||`${y.title} | ${(F=y.entityTitle)!=null?F:y.name} docs`,secondary:r.createElement(h(),{line:i,truncateText:"\u2026",text:y.text,element:"span"})})},I=({children:F})=>D?r.createElement(s.Link,{to:y.location},F):r.createElement(r.Fragment,null,F),b=({children:F})=>S?r.createElement(r.Fragment,null,r.createElement(f.Z,{alignItems:"flex-start",className:G.flexContainer},F),r.createElement(E.Z,{component:"li"})):r.createElement(r.Fragment,null,F);return r.createElement(I,null,r.createElement(b,null,r.createElement(L,null)))}},97589:function(J,o,e){"use strict";e.d(o,{D:function(){return r}});function r(t,c){return c.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")?t:t.toLocaleLowerCase("en-US")}},10187:function(J,o,e){"use strict";e.r(o),e.d(o,{DocsCardGrid:function(){return l}});var r=e(2784),t=e(36964),c=e(94339),f=e(16111),E=e(24579),s=e(14503),p=e(68725),h=e(9118),m=e(97589);const l=({entities:y})=>{const i=(0,t.useRouteRef)(p.Fw),S=(0,t.useApi)(t.configApiRef);return y?r.createElement(h.ItemCardGrid,{"data-testid":"docs-explore"},(y==null?void 0:y.length)?y.map((D,P)=>{var G,L;return r.createElement(c.Z,{key:P},r.createElement(f.Z,null,r.createElement(h.ItemCardHeader,{title:(G=D.metadata.title)!=null?G:D.metadata.name})),r.createElement(E.Z,null,D.metadata.description),r.createElement(s.Z,null,r.createElement(h.Button,{to:i({namespace:(0,m.D)((L=D.metadata.namespace)!=null?L:"default",S),kind:(0,m.D)(D.kind,S),name:(0,m.D)(D.metadata.name,S)}),color:"primary","data-testid":"read_docs"},"Read Docs")))}):null):null}},83201:function(J,o,e){"use strict";e.r(o),e.d(o,{DocsTable:function(){return y}});var r=e(2784),t=e(95074),c=e(36964),f=e(52890),E=e(19139),s=e(68725),p=e(9118),h=e(50294),m=e(67430),l=e(97589);const y=({entities:i,title:S,loading:D,columns:P,actions:G})=>{const[,L]=(0,t.Z)(),I=(0,c.useRouteRef)(s.Fw),b=(0,c.useApi)(c.configApiRef);if(!i)return null;const F=i.map(ie=>{var Le;const pe=(0,E.getEntityRelations)(ie,f.S4);return{entity:ie,resolved:{docsUrl:I({namespace:(0,l.D)((Le=ie.metadata.namespace)!=null?Le:"default",b),kind:(0,l.D)(ie.kind,b),name:(0,l.D)(ie.metadata.name,b)}),ownedByRelations:pe,ownedByRelationsTitle:pe.map(me=>(0,E.formatEntityRefTitle)(me,{defaultKind:"group"})).join(", ")}}}),K=[m.createNameColumn(),m.createOwnerColumn(),m.createTypeColumn()],ee=[h.createCopyDocsUrlAction(L)];return r.createElement(r.Fragment,null,D||F&&F.length>0?r.createElement(p.Table,{isLoading:D,options:{paging:!0,pageSize:20,search:!0,actionsColumnIndex:-1},data:F,columns:P||K,actions:G||ee,title:S?`${S} (${F.length})`:`All (${F.length})`}):r.createElement(p.EmptyState,{missing:"data",title:"No documents to show",description:"Create your own document. Check out our Getting Started Information",action:r.createElement(p.Button,{color:"primary",to:"https://backstage.io/docs/features/techdocs/getting-started",variant:"contained"},"DOCS")}))}},57110:function(J,o,e){"use strict";e.r(o),e.d(o,{TechDocsCustomHome:function(){return i}});var r=e(2784),t=e(64279),c=e(79692),f=e(19139),E=e(83201),s=e(10187),p=e(1114),h=e(9118),m=e(36964);const l={DocsTable:E.DocsTable,DocsCardGrid:s.DocsCardGrid},y=({config:S,entities:D,index:P})=>{const L=(0,c.Z)({panelContainer:{marginBottom:"2rem",...S.panelCSS?S.panelCSS:{}}})(),{value:I}=(0,f.useOwnUser)(),b=l[S.panelType],F=D.filter(K=>S.filterPredicate==="ownedByUser"?I?(0,f.isOwnerOf)(I,K):!1:typeof S.filterPredicate=="function"&&S.filterPredicate(K));return r.createElement(r.Fragment,null,r.createElement(h.ContentHeader,{title:S.title,description:S.description},P===0?r.createElement(h.SupportButton,null,"Discover documentation in your ecosystem."):null),r.createElement("div",{className:L.panelContainer},r.createElement(b,{"data-testid":"techdocs-custom-panel",entities:F})))},i=({tabsConfig:S})=>{const[D,P]=(0,r.useState)(0),G=(0,m.useApi)(f.Ah),{value:L,loading:I,error:b}=(0,t.default)(async()=>(await G.getEntities({filter:{"metadata.annotations.backstage.io/techdocs-ref":f.n3},fields:["apiVersion","kind","metadata","relations","spec.owner","spec.type"]})).items.filter(ee=>{var ie;return!!((ie=ee.metadata.annotations)==null?void 0:ie["backstage.io/techdocs-ref"])})),F=S[D];return I?r.createElement(p.j,null,r.createElement(h.Content,null,r.createElement(h.Progress,null))):b?r.createElement(p.j,null,r.createElement(h.Content,null,r.createElement(h.WarningPanel,{severity:"error",title:"Could not load available documentation."},r.createElement(h.CodeSnippet,{language:"text",text:b.toString()})))):r.createElement(p.j,null,r.createElement(h.HeaderTabs,{selectedIndex:D,onChange:K=>P(K),tabs:S.map(({label:K},ee)=>({id:ee.toString(),label:K}))}),r.createElement(h.Content,{"data-testid":"techdocs-content"},F.panels.map((K,ee)=>r.createElement(y,{key:ee,config:K,entities:L||[],index:ee}))))}},41481:function(J,o,e){"use strict";e.r(o),e.d(o,{TechDocsIndexPage:function(){return E}});var r=e(2784),t=e(10289),c=e(57110);const f=()=>{const s=[{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"}]}];return r.createElement(c.TechDocsCustomHome,{tabsConfig:s})},E=()=>(0,t.pC)()||r.createElement(f,null)},1114:function(J,o,e){"use strict";e.d(o,{j:function(){return f}});var r=e(2784),t=e(9118),c=e(36964);const f=({children:E})=>{var h;const p=`Documentation available in ${(h=(0,c.useApi)(c.configApiRef).getOptionalString("organization.name"))!=null?h:"Backstage"}`;return r.createElement(t.PageWithHeader,{title:"Documentation",subtitle:p,themeId:"documentation"},E)}},50294:function(J,o,e){"use strict";e.r(o),e.d(o,{createCopyDocsUrlAction:function(){return f},createStarEntityAction:function(){return E}});var r=e(2784),t=e(39981),c=e(19139);function f(s){return p=>({icon:()=>r.createElement(t.Z,{fontSize:"small"}),tooltip:"Click to copy documentation link to clipboard",onClick:()=>s(`${window.location.origin}${p.resolved.docsUrl}`)})}function E(s,p){return({entity:h})=>{const m=s(h);return{cellStyle:{paddingLeft:"1em"},icon:()=>(0,c.favoriteEntityIcon)(m),tooltip:(0,c.favoriteEntityTooltip)(m),onClick:()=>p(h)}}}},67430:function(J,o,e){"use strict";e.r(o),e.d(o,{createNameColumn:function(){return E},createOwnerColumn:function(){return s},createTypeColumn:function(){return p}});var r=e(2784),t=e(9118),c=e(19139);function f(h){return h.metadata.title||h.metadata.name}function E(){return{title:"Document",field:"entity.metadata.name",highlight:!0,render:h=>r.createElement(t.SubvalueCell,{value:r.createElement(t.Link,{to:h.resolved.docsUrl},f(h.entity)),subvalue:h.entity.metadata.description})}}function s(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:h})=>r.createElement(c.EntityRefLinks,{entityRefs:h.ownedByRelations,defaultKind:"group"})}}function p(){return{title:"Type",field:"entity.spec.type"}}},80547:function(J,o,e){"use strict";e.d(o,{Ej:function(){return Ct},DK:function(){return be}});var r=e(2784),t=e(10289),c=e(79692),f=e(60364),E=e(60905),s=e(36964),p=e(36356),h=e(9118),m=e(3337);const l=(ae,te,T)=>{const C=ae==="src"&&te.endsWith(".svg"),B=!te.match(/^([a-z]*:)?\/\//i),H=te.startsWith(T);return C&&(B||H)},y=({techdocsStorageApi:ae,entityId:te,path:T})=>async C=>{const B=await ae.getApiOrigin(),H=async(Y,le)=>{for(const Ae of Y)if(Ae.hasAttribute(le)){const ye=Ae.getAttribute(le);if(!ye)return;const Be=await ae.getBaseUrl(ye,te,T);if(l(le,ye,B))try{const ve=await(await fetch(Be,{credentials:"include"})).text();Ae.setAttribute(le,`data:image/svg+xml;base64,${btoa(ve)}`)}catch{Ae.setAttribute("alt",`Error: ${ye}`)}else Ae.setAttribute(le,Be)}};return await Promise.all([H(C.querySelectorAll("img"),"src"),H(C.querySelectorAll("script"),"src"),H(C.querySelectorAll("source"),"src"),H(C.querySelectorAll("link"),"href"),H(C.querySelectorAll("a[download]"),"href")]),C};var i=e(63925),S=e(67097),D=e(28316),P=e(82717),G=e.n(P);const L=ae=>te=>{const T=te.querySelector('[title="Edit this page"]');if(!T||!T.href)return te;const C=new URL(T.href),B=ae.byUrl(C);if((B==null?void 0:B.type)!=="github"&&(B==null?void 0:B.type)!=="gitlab")return te;const H=te.querySelector("article>h1").childNodes[0].textContent,Y=encodeURIComponent(`Documentation Feedback: ${H}`),le=encodeURIComponent(`Page source:
|
|
32
|
+
${T.href}
|
|
33
|
+
|
|
34
|
+
Feedback:`),Ae=(B==null?void 0:B.type)==="github"?(0,i.Pb)(C.href,"blob"):C.href,ye=G()(Ae),Be=`/${ye.organization}/${ye.name}`,Ie=T.cloneNode();switch(B==null?void 0:B.type){case"gitlab":Ie.href=`${C.origin}${Be}/issues/new?issue[title]=${Y}&issue[description]=${le}`;break;case"github":Ie.href=`${C.origin}${Be}/issues/new?title=${Y}&body=${le}`;break;default:return te}return D.render(r.createElement(S.Z),Ie),Ie.style.paddingLeft="5px",Ie.title="Leave feedback for this page",Ie.id="git-feedback-link",T==null||T.insertAdjacentElement("beforebegin",Ie),te},I=()=>ae=>(((T,C)=>{Array.from(T).filter(B=>B.hasAttribute(C)).forEach(B=>{const H=B.getAttribute(C);if(H){H.match(/^https?:\/\//i)&&B.setAttribute("target","_blank");try{const Y=b(window.location.href);B.setAttribute(C,new URL(H,Y).toString())}catch{B.replaceWith(B.textContent||H)}}})})(Array.from(ae.getElementsByTagName("a")),"href"),ae);function b(ae){const te=new URL(ae);return!te.pathname.endsWith("/")&&!te.pathname.endsWith(".html")&&(te.pathname+="/"),te.toString()}const F=({baseUrl:ae,onClick:te})=>T=>(Array.from(T.getElementsByTagName("a")).forEach(C=>{C.addEventListener("click",B=>{const Y=C.getAttribute("href");!Y||Y.startsWith(ae)&&!C.hasAttribute("download")&&(B.preventDefault(),te(B,Y))})}),T),K=()=>ae=>(Array.from(ae.querySelectorAll("code")).forEach(te=>{var B;const T=document.createElement("button"),C=te.textContent||"";T.className="md-clipboard md-icon",T.title="Copy to clipboard",T.innerHTML='<svg viewBox="0 0 24 24"><path d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg>',T.addEventListener("click",()=>navigator.clipboard.writeText(C)),(B=te==null?void 0:te.parentElement)==null||B.prepend(T)}),ae),ee=()=>ae=>{var te;return(te=ae.querySelector(".md-header"))==null||te.remove(),ae},ie=()=>ae=>{var te;return(te=ae.querySelector(".md-footer-copyright"))==null||te.remove(),ae},pe=({docStorageUrl:ae,onLoading:te,onLoaded:T})=>C=>{const B=Array.from(C.querySelectorAll('head > link[rel="stylesheet"]')).filter(Y=>{var le;return(le=Y.getAttribute("href"))==null?void 0:le.startsWith(ae)});let H=B.length;return H>0&&te(C),B.forEach(Y=>Y.addEventListener("load",()=>{H-=1,H===0&&T(C)})),C};var Le=e(35368),me=e.n(Le);const ze=/main\.[A-Fa-f0-9]{8}\.min\.css$/,Te=/^https:\/\/fonts\.googleapis\.com/,Qe=/^https:\/\/fonts\.gstatic\.com/,it=ae=>{if(ae.nodeName&&ae.nodeName==="LINK"){const te=ae.getAttribute("href")||"";te.match(ze)&&ae.setAttribute("rel","stylesheet"),te.match(Te)&&ae.setAttribute("rel","stylesheet"),te.match(Qe)&&ae.setAttribute("rel","preconnect")}return ae},et=ae=>te=>{if(te.nodeName==="IFRAME"){const T=te.getAttribute("src");if(!T)return te.remove(),te;try{const C=new URL(T);ae.some(H=>C.host===H)||te.remove()}catch(C){console.warn(`Invalid iframe src, ${C}`),te.remove()}}return te},gt=ae=>{const te=(ae==null?void 0:ae.getOptionalStringArray("allowedIframeHosts"))||[];return T=>{me().addHook("afterSanitizeAttributes",it);const C=["link"];return te.length>0&&(me().addHook("beforeSanitizeElements",et(te)),C.push("iframe")),me().sanitize(T.innerHTML,{ADD_TAGS:C,FORBID_TAGS:["style"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0})}},rt=({css:ae})=>te=>(te.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${ae}</style>`),te),ot=()=>ae=>(setTimeout(()=>{var te;if(window.location.hash){const T=window.location.hash.slice(1);(te=ae==null?void 0:ae.querySelector(`#${T}`))==null||te.scrollIntoView()}},200),ae),Rt=async(ae,te)=>{let T;if(typeof ae=="string")T=new DOMParser().parseFromString(ae,"text/html").documentElement;else if(ae instanceof Element)T=ae;else throw new Error("dom is not a recognized type");for(const C of te)T=await C(T);return T};var wt=e(82957),Lt=e(25921),pt=e(64279),at=e(77446);function Tt({contentLoading:ae,content:te,activeSyncState:T}){return ae||T==="BUILD_READY_RELOAD"||!te&&T==="CHECKING"?"CHECKING":!te&&T==="BUILDING"?"INITIAL_BUILD":te?T==="BUILDING"?"CONTENT_STALE_REFRESHING":T==="BUILD_READY"?"CONTENT_STALE_READY":T==="ERROR"?"CONTENT_STALE_ERROR":"CONTENT_FRESH":"CONTENT_NOT_FOUND"}function Pt(ae,te){const T={...ae};switch(te.type){case"sync":te.state==="CHECKING"&&(T.buildLog=[]),T.activeSyncState=te.state,T.syncError=te.syncError;break;case"contentLoading":T.contentLoading=!0,T.contentError=void 0;break;case"content":typeof te.path=="string"&&(T.path=te.path),T.contentLoading=!1,T.content=te.content,T.contentError=te.contentError;break;case"buildLog":T.buildLog=T.buildLog.concat(te.log);break;default:throw new Error}return["BUILD_READY","BUILD_READY_RELOAD"].includes(T.activeSyncState)&&["contentLoading","content"].includes(te.type)&&(T.activeSyncState="UP_TO_DATE",T.buildLog=[]),T}function Ot(ae,te,T,C){var Be,Ie;const[B,H]=(0,r.useReducer)(Pt,{activeSyncState:"CHECKING",path:C,contentLoading:!0,buildLog:[]}),Y=(0,s.useApi)(m.D),{retry:le}=(0,at.Z)(async()=>{H({type:"contentLoading"});try{const ve=await Y.getEntityDocs({kind:ae,namespace:te,name:T},C);return H({type:"content",content:ve,path:C}),ve}catch(ve){H({type:"content",contentError:ve,path:C})}},[Y,ae,te,T,C]),Ae=(0,r.useRef)({content:void 0,reload:()=>{}});return Ae.current={content:B.content,reload:le},(0,pt.default)(async()=>{H({type:"sync",state:"CHECKING"});const ve=setTimeout(()=>{H({type:"sync",state:"BUILDING"})},1e3);try{switch(await Y.syncEntityDocs({kind:ae,namespace:te,name:T},Fe=>{H({type:"buildLog",log:Fe})})){case"updated":Ae.current.content?H({type:"sync",state:"BUILD_READY"}):(Ae.current.reload(),H({type:"sync",state:"BUILD_READY_RELOAD"}));break;case"cached":H({type:"sync",state:"UP_TO_DATE"});break;default:H({type:"sync",state:"ERROR",syncError:new Error("Unexpected return state")});break}}catch(Ee){H({type:"sync",state:"ERROR",syncError:Ee})}finally{clearTimeout(ve)}},[ae,T,te,Y,H,Ae]),{state:(0,r.useMemo)(()=>Tt({activeSyncState:B.activeSyncState,contentLoading:B.contentLoading,content:B.content}),[B.activeSyncState,B.content,B.contentLoading]),contentReload:le,path:B.path,content:B.content,contentErrorMessage:(Be=B.contentError)==null?void 0:Be.toString(),syncErrorMessage:(Ie=B.syncError)==null?void 0:Ie.toString(),buildLog:B.buildLog}}const Ft=(0,c.Z)(ae=>({searchBar:{marginLeft:"20rem",maxWidth:"calc(100% - 20rem * 2 - 3rem)",marginTop:ae.spacing(1),"@media screen and (max-width: 76.1875em)":{marginLeft:"10rem",maxWidth:"calc(100% - 10rem)"}}})),mt=(0,r.createContext)({}),It=({children:ae,entityRef:te})=>{const{"*":T}=(0,t.UO)(),{kind:C,namespace:B,name:H}=te,Y=Ot(C,B,H,T);return r.createElement(mt.Provider,{value:Y},ae)},Bt=(ae,te)=>T=>React.createElement(It,{entityRef:te},React.createElement(ae,{...T})),be=()=>(0,r.useContext)(mt),st=ae=>{const te=(0,t.s0)(),T=(0,f.Z)(),C=(0,s.useApi)(m.D),B=(0,s.useApi)(p.q3),H=(0,s.useApi)(s.configApiRef),{namespace:Y="",kind:le="",name:Ae=""}=ae,{state:ye,path:Be,content:Ie}=be(),[ve,Ee]=(0,r.useState)(),[Fe,St]=(0,r.useState)(null),{isPinned:ut}=(0,r.useContext)(h.SidebarPinStateContext),Ve=(0,r.useCallback)(()=>{if(!Fe||!ve)return;const Ue=Fe.querySelector(".md-container > .md-tabs");ve.forEach(Ze=>{const Je=Math.max(Fe.getBoundingClientRect().top,0);Ze.style.top=Ue?`${Je+Ue.getBoundingClientRect().height}px`:`${Je}px`})},[Fe,ve]);(0,r.useEffect)(()=>(Ve(),window.addEventListener("scroll",Ve,!0),window.addEventListener("resize",Ve),()=>{window.removeEventListener("scroll",Ve,!0),window.removeEventListener("resize",Ve)}),[Ve,ye]);const oe=(0,r.useCallback)(()=>{if(!Fe)return;const Ue=Fe.querySelector(".md-footer");Ue&&(Ue.style.width=`${Fe.getBoundingClientRect().width}px`)},[Fe]);(0,r.useEffect)(()=>(oe(),window.addEventListener("resize",oe),()=>{window.removeEventListener("resize",oe)}));const Ne=(0,r.useCallback)((Ue,Ze)=>Rt(Ue,[gt(H.getOptionalConfig("techdocs.sanitizer")),y({techdocsStorageApi:C,entityId:{kind:le,name:Ae,namespace:Y},path:Ze}),I(),ee(),ie(),L(B),rt({css:`
|
|
35
|
+
body {
|
|
36
|
+
font-family: ${T.typography.fontFamily};
|
|
37
|
+
--md-text-color: ${T.palette.text.primary};
|
|
38
|
+
--md-text-link-color: ${T.palette.primary.main};
|
|
39
|
+
|
|
40
|
+
--md-code-fg-color: ${T.palette.text.primary};
|
|
41
|
+
--md-code-bg-color: ${T.palette.background.paper};
|
|
42
|
+
--md-accent-fg-color: ${T.palette.primary.main};
|
|
43
|
+
--md-default-fg-color--lightest: ${T.palette.textVerySubtle};
|
|
44
|
+
}
|
|
45
|
+
.md-main__inner { margin-top: 0; }
|
|
46
|
+
.md-sidebar { position: fixed; bottom: 100px; width: 20rem; }
|
|
47
|
+
.md-sidebar--secondary { right: 2rem; }
|
|
48
|
+
.md-content { margin-bottom: 50px }
|
|
49
|
+
.md-footer { position: fixed; bottom: 0px; }
|
|
50
|
+
.md-footer-nav__link { width: 20rem;}
|
|
51
|
+
.md-content { margin-left: 20rem; max-width: calc(100% - 20rem * 2 - 3rem); }
|
|
52
|
+
.md-typeset { font-size: 1rem; }
|
|
53
|
+
.md-typeset h1, .md-typeset h2, .md-typeset h3 { font-weight: bold; }
|
|
54
|
+
.md-nav { font-size: 1rem; }
|
|
55
|
+
.md-grid { max-width: 90vw; margin: 0 }
|
|
56
|
+
.md-typeset blockquote {
|
|
57
|
+
color: ${T.palette.textSubtle};
|
|
58
|
+
border-left: 0.2rem solid ${T.palette.textVerySubtle};
|
|
59
|
+
}
|
|
60
|
+
.md-typeset hr {
|
|
61
|
+
border-bottom: 0.05rem dotted ${T.palette.textVerySubtle};
|
|
62
|
+
}
|
|
63
|
+
.md-typeset table:not([class]) {
|
|
64
|
+
font-size: 1rem;
|
|
65
|
+
border: 1px solid ${T.palette.text.primary};
|
|
66
|
+
border-bottom: none;
|
|
67
|
+
border-collapse: collapse;
|
|
68
|
+
}
|
|
69
|
+
.md-typeset table:not([class]) td, .md-typeset table:not([class]) th {
|
|
70
|
+
border-bottom: 1px solid ${T.palette.text.primary};
|
|
71
|
+
}
|
|
72
|
+
.md-typeset table:not([class]) th { font-weight: bold; }
|
|
73
|
+
.md-typeset .admonition, .md-typeset details {
|
|
74
|
+
font-size: 1rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* style the checkmarks of the task list */
|
|
78
|
+
.md-typeset .task-list-control .task-list-indicator::before {
|
|
79
|
+
background-color: ${T.palette.action.disabledBackground};
|
|
80
|
+
}
|
|
81
|
+
.md-typeset .task-list-control [type="checkbox"]:checked + .task-list-indicator:before {
|
|
82
|
+
background-color: ${T.palette.success.main};
|
|
83
|
+
}
|
|
84
|
+
/**/
|
|
85
|
+
|
|
86
|
+
@media screen and (max-width: 76.1875em) {
|
|
87
|
+
.md-nav {
|
|
88
|
+
background-color: ${T.palette.background.default};
|
|
89
|
+
transition: none !important
|
|
90
|
+
}
|
|
91
|
+
.md-sidebar--secondary { display: none; }
|
|
92
|
+
.md-sidebar--primary { left: ${ut?"242px":"72px"}; width: 10rem }
|
|
93
|
+
.md-content { margin-left: 10rem; max-width: calc(100% - 10rem); }
|
|
94
|
+
.md-content__inner { font-size: 0.9rem }
|
|
95
|
+
.md-footer {
|
|
96
|
+
position: static;
|
|
97
|
+
padding-left: 10rem;
|
|
98
|
+
}
|
|
99
|
+
.md-footer-nav__link {
|
|
100
|
+
/* footer links begin to overlap at small sizes without setting width */
|
|
101
|
+
width: 50%;
|
|
102
|
+
}
|
|
103
|
+
.md-nav--primary .md-nav__title {
|
|
104
|
+
white-space: normal;
|
|
105
|
+
height: auto;
|
|
106
|
+
line-height: 1rem;
|
|
107
|
+
cursor: auto;
|
|
108
|
+
}
|
|
109
|
+
.md-nav--primary > .md-nav__title [for="none"] {
|
|
110
|
+
padding-top: 0;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
`}),rt({css:`
|
|
114
|
+
.md-nav__link, .md-typeset a, .md-typeset a::before, .md-typeset .headerlink {
|
|
115
|
+
transition: none;
|
|
116
|
+
}
|
|
117
|
+
`}),rt({css:`
|
|
118
|
+
.md-typeset pre > code::-webkit-scrollbar-thumb {
|
|
119
|
+
background-color: hsla(0, 0%, 0%, 0.32);
|
|
120
|
+
}
|
|
121
|
+
.md-typeset pre > code::-webkit-scrollbar-thumb:hover {
|
|
122
|
+
background-color: hsla(0, 0%, 0%, 0.87);
|
|
123
|
+
}
|
|
124
|
+
`}),rt({css:`
|
|
125
|
+
:host {
|
|
126
|
+
--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>');
|
|
127
|
+
--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>');
|
|
128
|
+
--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>');
|
|
129
|
+
--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>');
|
|
130
|
+
--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>');
|
|
131
|
+
--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>');
|
|
132
|
+
--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>');
|
|
133
|
+
--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>');
|
|
134
|
+
--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>');
|
|
135
|
+
--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>');
|
|
136
|
+
--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>');
|
|
137
|
+
--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>');
|
|
138
|
+
}
|
|
139
|
+
:host {
|
|
140
|
+
--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>');
|
|
141
|
+
}
|
|
142
|
+
:host {
|
|
143
|
+
--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>');
|
|
144
|
+
}
|
|
145
|
+
:host {
|
|
146
|
+
--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>');
|
|
147
|
+
--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>');
|
|
148
|
+
}
|
|
149
|
+
`})]),[le,Ae,Y,B,C,H,T.palette.action.disabledBackground,T.palette.background.default,T.palette.background.paper,T.palette.primary.main,T.palette.success.main,T.palette.text.primary,T.palette.textSubtle,T.palette.textVerySubtle,T.typography.fontFamily,ut]),tt=(0,r.useCallback)(async Ue=>Rt(Ue,[ot(),K(),F({baseUrl:window.location.origin,onClick:(Ze,Je)=>{var x,z;const V=Ze.ctrlKey||Ze.metaKey,A=new URL(Je);A.hash?V?window.open(`${A.pathname}${A.hash}`,"_blank"):(te(`${A.pathname}${A.hash}`),(x=Ue==null?void 0:Ue.querySelector(`#${A.hash.slice(1)}`))==null||x.scrollIntoView()):V?window.open(A.pathname,"_blank"):(te(A.pathname),(z=Ue==null?void 0:Ue.querySelector(".md-content__inner"))==null||z.scrollIntoView())}}),pe({docStorageUrl:await C.getApiOrigin(),onLoading:Ze=>{Ze.style.setProperty("opacity","0")},onLoaded:Ze=>{var Je;Ze.style.removeProperty("opacity"),(Je=Ze.querySelector(".md-nav__title"))==null||Je.removeAttribute("for"),Ee(Array.from(Ze.querySelectorAll(".md-sidebar")))}})]),[te,C]);return(0,r.useEffect)(()=>{if(!Ie)return()=>{};let Ue=!0;return Ne(Ie,Be).then(async Ze=>{if(!(Ze==null?void 0:Ze.innerHTML)||!Ue)return;window.scroll({top:0});const Je=await tt(Ze);St(Je)}),()=>{Ue=!1}},[Ie,Be,Ne,tt]),Fe},lt=({entityRef:ae,onReady:te=()=>{},withSearch:T=!0})=>{var le,Ae;const C=Ft(),B=st(ae),H=(0,r.useRef)(null),Y=(0,r.useRef)(te);return(0,r.useEffect)(()=>{Y.current=te},[te]),(0,r.useEffect)(()=>{if(!B||!H.current)return;const ye=H.current,Be=ye.shadowRoot||ye.attachShadow({mode:"open"});Array.from(Be.children).forEach(Ie=>Be.removeChild(Ie)),Be.appendChild(B),Y.current()},[B]),r.createElement(r.Fragment,null,r.createElement(Lt.N,null),T&&((Ae=(le=H==null?void 0:H.current)==null?void 0:le.shadowRoot)==null?void 0:Ae.innerHTML)&&r.createElement(E.Z,{container:!0,className:C.searchBar},r.createElement(wt.S,{entityId:ae})),r.createElement("div",{"data-testid":"techdocs-content-shadowroot",ref:H}))},Ct=({entityRef:ae,onReady:te=()=>{},withSearch:T=!0})=>r.createElement(It,{entityRef:ae},r.createElement(lt,{entityRef:ae,onReady:te,withSearch:T}))},94252:function(J,o,e){"use strict";e.d(o,{T:function(){return f}});var r=e(2784),t=e(36964),c=e(9118);const f=({errorMessage:E})=>{const s=(0,t.useApi)(t.configApiRef).getOptionalString("techdocs.builder");let p="";return s!=="local"&&(p="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(c.ErrorPage,{status:"404",statusMessage:E||"Documentation not found",additionalInfo:p})}},31752:function(J,o,e){"use strict";e.r(o),e.d(o,{TechDocsPage:function(){return y}});var r=e(2784),t=e(10289),c=e(64279),f=e(3337),E=e(94252),s=e(36964),p=e(9118),h=e(80547),m=e(46025);const l=()=>{const[i,S]=(0,r.useState)(!1),{namespace:D,kind:P,name:G}=(0,t.UO)(),L=(0,s.useApi)(f.g),{value:I}=(0,c.default)(()=>i?L.getTechDocsMetadata({kind:P,namespace:D,name:G}):Promise.resolve(void 0),[P,D,G,L,i]),{value:b,error:F}=(0,c.default)(()=>L.getEntityMetadata({kind:P,namespace:D,name:G}),[P,D,G,L]),K=(0,r.useCallback)(()=>{S(!0)},[S]);return F?r.createElement(E.T,{errorMessage:F.message}):r.createElement(p.Page,{themeId:"documentation"},r.createElement(m.n,{techDocsMetadata:I,entityMetadata:b,entityRef:{kind:P,namespace:D,name:G}}),r.createElement(p.Content,{"data-testid":"techdocs-content"},r.createElement(h.Ej,{onReady:K,entityRef:{kind:P,namespace:D,name:G}})))},y=({children:i})=>{const S=(0,t.pC)(),[D,P]=(0,r.useState)(!1),{namespace:G,kind:L,name:I}=(0,t.UO)(),b=(0,s.useApi)(f.g),{value:F}=(0,c.default)(()=>D?b.getTechDocsMetadata({kind:L,namespace:G,name:I}):Promise.resolve(void 0),[L,G,I,b,D]),{value:K,error:ee}=(0,c.default)(()=>b.getEntityMetadata({kind:L,namespace:G,name:I}),[L,G,I,b]),ie=(0,r.useCallback)(()=>{P(!0)},[P]);return ee?r.createElement(E.T,{errorMessage:ee.message}):i?r.createElement(p.Page,{themeId:"documentation"},i instanceof Function?i({techdocsMetadataValue:F,entityMetadataValue:K,entityRef:{kind:L,namespace:G,name:I},onReady:ie}):i):S||r.createElement(l,null)}},46025:function(J,o,e){"use strict";e.d(o,{n:function(){return h}});var r=e(52890),t=e(9118),c=e(36964),f=e(19139),E=e(73250),s=e(2784),p=e(68725);const h=({entityRef:m,entityMetadata:l,techDocsMetadata:y})=>{const{name:i}=m,{site_name:S,site_description:D}=y||{},{locationMetadata:P,spec:G}=l||{},L=G==null?void 0:G.lifecycle,I=l?(0,f.getEntityRelations)(l,r.S4):[],b=(0,c.useRouteRef)(p._Z)(),F=s.createElement(s.Fragment,null,s.createElement(t.HeaderLabel,{label:"Component",value:s.createElement(f.EntityRefLink,{color:"inherit",entityRef:m,defaultKind:"Component"})}),I.length>0&&s.createElement(t.HeaderLabel,{label:"Owner",value:s.createElement(f.EntityRefLinks,{color:"inherit",entityRefs:I,defaultKind:"group"})}),L?s.createElement(t.HeaderLabel,{label:"Lifecycle",value:L}):null,P&&P.type!=="dir"&&P.type!=="file"?s.createElement(t.HeaderLabel,{label:"",value:s.createElement("a",{href:P.target,target:"_blank",rel:"noopener noreferrer"},s.createElement(E.Z,{style:{marginTop:"-25px",fill:"#fff"}}))}):null);return s.createElement(t.Header,{title:S||".",pageTitleOverride:S||i,subtitle:D&&D!=="None"?D:"",type:"Docs",typeLink:b},F)}},82957:function(J,o,e){"use strict";e.d(o,{S:function(){return Ve}});var r=e(91512),t=e(2784),c=e(79692);const f=(0,c.Z)(oe=>({filters:{width:"250px",display:"flex"},icon:{margin:oe.spacing(-1,0,0,0)}})),E=({numberOfSelectedFilters:oe,handleToggleFilters:Ne})=>{const tt=f();return React.createElement("div",{className:tt.filters},React.createElement(IconButton,{className:tt.icon,"aria-label":"settings",onClick:Ne},React.createElement(FilterListIcon,null)),React.createElement(Typography,{variant:"h6"},"Filters (",oe||0,")"))},s=(0,c.Z)(oe=>({filters:{background:"transparent",boxShadow:"0px 0px 0px 0px"},checkbox:{padding:oe.spacing(0,1,0,1)},dropdown:{width:"100%"}})),p=({filters:oe,filterOptions:Ne,resetFilters:tt,updateSelected:Ue,updateChecked:Ze})=>{const Je=s();return React.createElement(Card,{className:Je.filters},React.createElement(CardHeader,{title:React.createElement(Typography,{variant:"h6"},"Filters"),action:React.createElement(Button,{color:"primary",onClick:()=>tt()},"CLEAR ALL")}),React.createElement(Divider,null),Ne.kind.length===0&&Ne.lifecycle.length===0&&React.createElement(CardContent,null,React.createElement(Typography,{variant:"subtitle2"},"Filters cannot be applied to available results")),Ne.kind.length>0&&React.createElement(CardContent,null,React.createElement(Typography,{variant:"subtitle2"},"Kind"),React.createElement(Select,{id:"outlined-select",onChange:V=>{var A;return Ue((A=V==null?void 0:V.target)==null?void 0:A.value)},variant:"outlined",className:Je.dropdown,value:oe.selected},Ne.kind.map(V=>React.createElement(MenuItem,{selected:V==="",dense:!0,key:V,value:V},V)))),Ne.lifecycle.length>0&&React.createElement(CardContent,null,React.createElement(Typography,{variant:"subtitle2"},"Lifecycle"),React.createElement(List,{disablePadding:!0,dense:!0},Ne.lifecycle.map(V=>React.createElement(ListItem,{key:V,dense:!0,button:!0,onClick:()=>Ze(V)},React.createElement(Checkbox,{edge:"start",disableRipple:!0,className:Je.checkbox,color:"primary",checked:oe.checked.includes(V),tabIndex:-1,value:V,name:V}),React.createElement(ListItemText,{id:V,primary:V}))))))};var h=e(1795),m=e(22313),l=e(42494),y=e(84899),i=e(5806),S=e(21324),D=e(56939),P=e(73698),G=e(12231),L=e(86619),I=e(7089),b=e(88013),F=e(69294),K=e(48760);const ee=(oe,Ne,tt=[],Ue=250)=>{const Ze=(0,t.useRef)({}),Je=oe||(()=>Promise.resolve([])),[V,A]=(0,F.default)(Je,[Ne],{loading:!0});if((0,K.Z)(()=>{Ze.current[Ne]===void 0&&(Ze.current[Ne]=A(Ne).then(z=>(Ze.current[Ne]=z,z)))},Ue,[A,Ne]),tt.length)return{loading:!1,value:tt};const x=Ze.current[Ne];return Array.isArray(x)?{loading:!1,value:x}:V},ie=(oe,Ne)=>{const{setFilters:tt}=(0,m.Rx)();(0,t.useEffect)(()=>{Ne&&[Ne].flat().length>0&&tt(Ue=>({...Ue,[oe]:Ne}))},[])},pe=oe=>{const{className:Ne,defaultValue:tt,name:Ue,values:Ze,valuesDebounceMs:Je,label:V,filterSelectedOptions:A,limitTags:x,multiple:z}=oe,[_,Oe]=(0,t.useState)("");ie(Ue,tt);const ge=typeof Ze=="function"?Ze:void 0,Re=typeof Ze=="function"?void 0:Ze,{value:De,loading:$e}=ee(ge,_,Re,Je),{filters:Et,setFilters:ne}=(0,m.Rx)(),Z=Et[Ue]||(z?[]:null),Q=(je,nt)=>{ne(xt=>{const{[Ue]:en,...ln}=xt;return nt?{...ln,[Ue]:nt}:{...ln}})},he=je=>t.createElement(L.Z,{...je,name:"search",variant:"outlined",label:V,fullWidth:!0}),we=(je,nt)=>je.map((xt,en)=>t.createElement(I.Z,{label:xt,color:"primary",...nt({index:en})}));return t.createElement(b.ZP,{filterSelectedOptions:A,limitTags:x,multiple:z,className:Ne,id:`${z?"multi-":""}select-filter-${Ue}--select`,options:De||[],loading:$e,value:Z,onChange:Q,onInputChange:(je,nt)=>Oe(nt),renderInput:he,renderTags:we})},Le=(0,c.Z)({label:{textTransform:"capitalize"}}),me=oe=>{const{className:Ne,defaultValue:tt,label:Ue,name:Ze,values:Je=[],valuesDebounceMs:V}=oe,A=Le(),{filters:x,setFilters:z}=(0,m.Rx)();ie(Ze,tt);const _=typeof Je=="function"?Je:void 0,Oe=typeof Je=="function"?void 0:Je,{value:ge=[],loading:Re}=ee(_,"",Oe,V),De=$e=>{const{target:{value:Et,checked:ne}}=$e;z(Z=>{const{[Ze]:Q,...he}=Z,we=(Q||[]).filter(nt=>nt!==Et),je=ne?[...we,Et]:we;return je.length?{...he,[Ze]:je}:he})};return t.createElement(l.Z,{className:Ne,disabled:Re,fullWidth:!0,"data-testid":"search-checkboxfilter-next"},Ue?t.createElement(y.Z,{className:A.label},Ue):null,ge.map($e=>{var Et;return t.createElement(i.Z,{key:$e,control:t.createElement(S.Z,{color:"primary",tabIndex:-1,inputProps:{"aria-labelledby":$e},value:$e,name:$e,onChange:De,checked:((Et=x[Ze])!=null?Et:[]).includes($e)}),label:$e})}))},ze=oe=>{const{className:Ne,defaultValue:tt,label:Ue,name:Ze,values:Je,valuesDebounceMs:V}=oe,A=Le();ie(Ze,tt);const x=typeof Je=="function"?Je:void 0,z=typeof Je=="function"?void 0:Je,{value:_=[],loading:Oe}=ee(x,"",z,V),{filters:ge,setFilters:Re}=(0,m.Rx)(),De=$e=>{const{target:{value:Et}}=$e;Re(ne=>{const{[Ze]:Z,...Q}=ne;return Et?{...Q,[Ze]:Et}:Q})};return t.createElement(l.Z,{disabled:Oe,className:Ne,variant:"filled",fullWidth:!0,"data-testid":"search-selectfilter-next"},Ue?t.createElement(D.Z,{className:A.label,margin:"dense"},Ue):null,t.createElement(P.Z,{variant:"outlined",value:ge[Ze]||"",onChange:De},t.createElement(G.Z,{value:""},t.createElement("em",null,"All")),_.map($e=>t.createElement(G.Z,{key:$e,value:$e},$e))))},Te=({component:oe,...Ne})=>t.createElement(oe,{...Ne});Te.Checkbox=oe=>t.createElement(Te,{...oe,component:me}),Te.Select=oe=>t.createElement(Te,{...oe,component:ze}),Te.Autocomplete=oe=>t.createElement(Te,{...oe,component:pe});const Qe=null;var it=e(65678),et=e(3992),gt=e(8542),rt=e(49378),ot=e(62155),Rt=e(94339),wt=e(32552),Lt=e(24579),pt=e(27616),at=e(8284),Tt=e(70660),Pt=e(11776),Ot=e(85256),Ft=e(38402),mt=e(86136),It=e(38016),Bt=e(56881);const be=(0,c.Z)(oe=>({card:{backgroundColor:"rgba(0, 0, 0, .11)"},cardContent:{paddingTop:oe.spacing(1)},icon:{color:oe.palette.common.black},list:{width:"100%"},listItemIcon:{width:"24px",height:"24px"},accordion:{backgroundColor:oe.palette.background.paper},accordionSummary:{minHeight:"auto","&.Mui-expanded":{minHeight:"auto"}},accordionSummaryContent:{margin:oe.spacing(2,0),"&.Mui-expanded":{margin:oe.spacing(2,0)}},accordionDetails:{padding:oe.spacing(0,0,1)}})),st=oe=>{const Ne=be(),{setPageCursor:tt,setTypes:Ue,types:Ze}=(0,m.Rx)(),[Je,V]=(0,t.useState)(!0),{defaultValue:A,name:x,types:z}=oe,_=()=>V(De=>!De),Oe=De=>()=>{Ue(De!==""?[De]:[]),tt(void 0),V(!1)};(0,t.useEffect)(()=>{A&&Ue([A])},[]);const ge=[{value:"",name:"All",icon:t.createElement(Bt.Z,null)},...z],Re=Ze[0]||"";return t.createElement(Rt.Z,{className:Ne.card},t.createElement(wt.Z,{title:x,titleTypographyProps:{variant:"overline"}}),t.createElement(Lt.Z,{className:Ne.cardContent},t.createElement(pt.Z,{className:Ne.accordion,expanded:Je,onChange:_},t.createElement(at.Z,{classes:{root:Ne.accordionSummary,content:Ne.accordionSummaryContent},expandIcon:t.createElement(It.Z,{className:Ne.icon}),IconButtonProps:{size:"small"}},Je?"Collapse":ge.filter(De=>De.value===Re)[0].name),t.createElement(Tt.Z,{classes:{root:Ne.accordionDetails}},t.createElement(Pt.Z,{className:Ne.list,component:"nav","aria-label":"filter by type",disablePadding:!0,dense:!0},ge.map(De=>t.createElement(t.Fragment,{key:De.value},t.createElement(Ot.Z,null),t.createElement(Ft.Z,{selected:Ze[0]===De.value||Ze.length===0&&De.value==="",onClick:Oe(De.value),button:!0},t.createElement(mt.Z,null,(0,t.cloneElement)(De.icon,{className:Ne.listItemIcon})),t.createElement(rt.Z,{primary:De.name})))))))))};var lt=e(99152),Ct=e(6487);const ae=(0,c.Z)(oe=>({tabs:{borderBottom:`1px solid ${oe.palette.textVerySubtle}`,padding:oe.spacing(0,4)},tab:{height:"50px",fontWeight:oe.typography.fontWeightBold,fontSize:oe.typography.pxToRem(13),color:oe.palette.textSubtle,minWidth:"130px"}})),te=oe=>{const Ne=ae(),{setPageCursor:tt,setTypes:Ue,types:Ze}=(0,m.Rx)(),{defaultValue:Je,types:V}=oe,A=(z,_)=>{Ue(_!==""?[_]:[]),tt(void 0)};(0,t.useEffect)(()=>{Je&&Ue([Je])},[]);const x=[{value:"",name:"All"},...V];return t.createElement(lt.Z,{className:Ne.tabs,indicatorColor:"primary",value:Ze.length===0?"":Ze[0],onChange:A},x.map(z=>t.createElement(Ct.Z,{className:Ne.tab,disableRipple:!0,label:z.name,value:z.value})))},T=(0,c.Z)(oe=>({label:{textTransform:"capitalize"},chips:{display:"flex",flexWrap:"wrap",marginTop:oe.spacing(1)},chip:{margin:2}})),C=oe=>{const{className:Ne,defaultValue:tt,name:Ue,values:Ze=[]}=oe,Je=T(),{types:V,setTypes:A}=(0,m.Rx)();(0,ot.Z)(()=>{V.length||(tt&&Array.isArray(tt)?A(tt):tt&&A([tt]))});const x=z=>{const _=z.target.value;A(_)};return t.createElement(l.Z,{className:Ne,variant:"filled",fullWidth:!0,"data-testid":"search-typefilter-next"},t.createElement(D.Z,{className:Je.label,margin:"dense"},Ue),t.createElement(P.Z,{multiple:!0,variant:"outlined",value:V,onChange:x,placeholder:"All Results",renderValue:z=>t.createElement("div",{className:Je.chips},z.map(_=>t.createElement(I.Z,{key:_,label:_,className:Je.chip,size:"small"})))},Ze.map(z=>t.createElement(G.Z,{key:z,value:z},t.createElement(S.Z,{checked:V.indexOf(z)>-1}),t.createElement(rt.Z,{primary:z})))))};C.Accordion=oe=>t.createElement(st,{...oe}),C.Tabs=oe=>t.createElement(te,{...oe});var B=e(19126),H=e(20863),Y=e(36964),le=e(9118);const Ae=oe=>{const Ne=useRouteRef(rootRouteRef),{focusContent:tt}=useContent(),Ue=useNavigate(),Ze=useCallback(Je=>{const V=qs.stringify({query:Je},{addQueryPrefix:!0});tt(),Ue(`${Ne()}${V}`)},[tt,Ue,Ne]);return React.createElement(SidebarSearchField,{icon:oe.icon,onSearch:Ze,to:"/search"})};var ye=e(60905),Be=e(50581),Ie=e(61837),ve=e(4614),Ee=e(21853),Fe=e(10289),St=e(71226);const ut=({entityId:oe,debounceTime:Ne=150})=>{const[tt,Ue]=(0,t.useState)(!1),Ze=(0,Fe.s0)(),{term:Je,setTerm:V,result:{loading:A,value:x}}=(0,m.Rx)(),[z,_]=(0,t.useState)([]);(0,t.useEffect)(()=>{let $e=!0;if($e&&x){const Et=x.results.slice(0,10);_(Et)}return()=>{$e=!1}},[A,x]);const[Oe,ge]=(0,t.useState)(Je);(0,K.Z)(()=>V(Oe),Ne,[Oe]);const Re=$e=>{tt||Ue(!0),ge($e.target.value)},De=($e,Et)=>{if(Et==null?void 0:Et.document){const{location:ne}=Et.document;Ze(ne)}};return t.createElement(ye.Z,{item:!0,xs:12},t.createElement(b.ZP,{"data-testid":"techdocs-search-bar",size:"small",open:tt,getOptionLabel:()=>"",filterOptions:$e=>$e,onClose:()=>{Ue(!1)},onFocus:()=>{Ue(!0)},onChange:De,blurOnSelect:!0,noOptionsText:"No results found",value:null,options:z,renderOption:({document:$e})=>t.createElement(St.O,{result:$e,lineClamp:3,asListItem:!1,asLink:!1,title:$e.title}),loading:A,renderInput:$e=>t.createElement(L.Z,{...$e,"data-testid":"techdocs-search-bar-input",variant:"outlined",fullWidth:!0,placeholder:`Search ${oe.name} docs`,value:Oe,onChange:Re,InputProps:{...$e.InputProps,startAdornment:t.createElement(Be.Z,{position:"start"},t.createElement(Ie.Z,{"aria-label":"Query",disabled:!0},t.createElement(Ee.Z,null))),endAdornment:t.createElement(t.Fragment,null,A?t.createElement(ve.Z,{color:"inherit",size:20}):null,$e.InputProps.endAdornment)}})}))},Ve=oe=>{const Ne={term:"",types:["techdocs"],pageCursor:"",filters:oe.entityId};return t.createElement(m.Nd,{initialState:Ne},t.createElement(ut,{...oe}))}},25921:function(J,o,e){"use strict";e.d(o,{N:function(){return b}});var r=e(2784),t=e(9118),c=e(79692),f=e(4614),E=e(77277),s=e(99688),p=e(12420),h=e(60905),m=e(90436),l=e(61837),y=e(4190),i=e(87685);const S=(0,c.Z)(F=>(0,p.Z)({paper:{width:"100%",[F.breakpoints.up("sm")]:{width:"75%"},[F.breakpoints.up("md")]:{width:"50%"},padding:F.spacing(2.5)},root:{height:"100%",overflow:"hidden"},logs:{background:F.palette.background.default}})),D=({buildLog:F,onClose:K})=>{const ee=S(),ie=F.length===0?"Waiting for logs...":F.join(`
|
|
150
|
+
`);return r.createElement(h.Z,{container:!0,direction:"column",className:ee.root,spacing:0,wrap:"nowrap"},r.createElement(h.Z,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",spacing:0,wrap:"nowrap"},r.createElement(m.Z,{variant:"h5"},"Build Details"),r.createElement(l.Z,{key:"dismiss",title:"Close the drawer",onClick:K,color:"inherit"},r.createElement(i.Z,null))),r.createElement(t.LogViewer,{text:ie,classes:{root:ee.logs}}))},P=({buildLog:F})=>{const K=S(),[ee,ie]=(0,r.useState)(!1);return r.createElement(r.Fragment,null,r.createElement(E.Z,{color:"inherit",onClick:()=>ie(!0)},"Show Build Logs"),r.createElement(y.ZP,{classes:{paper:K.paper},anchor:"right",open:ee,onClose:()=>ie(!1)},r.createElement(D,{buildLog:F,onClose:()=>ie(!1)})))};var G=e(94252),L=e(80547);const I=(0,c.Z)(()=>({message:{wordBreak:"break-word",overflowWrap:"anywhere"}})),b=()=>{let F=null;const K=I(),{state:ee,contentReload:ie,contentErrorMessage:pe,syncErrorMessage:Le,buildLog:me}=(0,L.DK)(),ze=ee==="CHECKING"?r.createElement(t.Progress,null):null;return ee==="INITIAL_BUILD"&&(F=r.createElement(s.Z,{variant:"outlined",severity:"info",icon:r.createElement(f.Z,{size:"24px"}),action:r.createElement(P,{buildLog:me})},"Documentation is accessed for the first time and is being prepared. The subsequent loads are much faster.")),ee==="CONTENT_STALE_REFRESHING"&&(F=r.createElement(s.Z,{variant:"outlined",severity:"info",icon:r.createElement(f.Z,{size:"24px"}),action:r.createElement(P,{buildLog:me})},"A newer version of this documentation is being prepared and will be available shortly.")),ee==="CONTENT_STALE_READY"&&(F=r.createElement(s.Z,{variant:"outlined",severity:"success",action:r.createElement(E.Z,{color:"inherit",onClick:()=>ie()},"Refresh")},"A newer version of this documentation is now available, please refresh to view.")),ee==="CONTENT_STALE_ERROR"&&(F=r.createElement(s.Z,{variant:"outlined",severity:"error",action:r.createElement(P,{buildLog:me}),classes:{message:K.message}},"Building a newer version of this documentation failed."," ",Le)),ee==="CONTENT_NOT_FOUND"&&(F=r.createElement(r.Fragment,null,Le&&r.createElement(s.Z,{variant:"outlined",severity:"error",action:r.createElement(P,{buildLog:me}),classes:{message:K.message}},"Building a newer version of this documentation failed."," ",Le),r.createElement(G.T,{errorMessage:pe}))),r.createElement(r.Fragment,null,ze,F)}},73873:function(J,o,e){"use strict";e.d(o,{Ej:function(){return r.Ej},EV:function(){return t.TechDocsPage},nN:function(){return c.n}});var r=e(80547),t=e(31752),c=e(46025),f=e(25921),E=e(82957)},68725:function(J,o,e){"use strict";e.d(o,{_Z:function(){return t},Fw:function(){return c},pd:function(){return f}});var r=e(36964);const t=(0,r.createRouteRef)({id:"techdocs:index-page"}),c=(0,r.createRouteRef)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),f=(0,r.createRouteRef)({id:"techdocs:catalog-reader-view"})},19133:function(J,o,e){"use strict";J.exports=e.p+"static/createComponent.975d1e1e..svg"},86284:function(J,o,e){"use strict";J.exports=e.p+"static/missingAnnotation.67f79e98..svg"},3871:function(J,o,e){"use strict";J.exports=e.p+"static/noBuild.1715fa71..svg"},96465:function(J,o,e){"use strict";J.exports=e.p+"static/noInformation.4b426325..svg"},29788:function(J,o,e){"use strict";J.exports=e.p+"static/mic-drop.fe3ef4d0..svg"},219:function(J,o,e){"use strict";J.exports=e.p+"static/illo.7884c54f..svg"},53260:function(){}},function(J){var o=function(r){return J(J.s=r)};J.O(0,[2370,6202,9284,2126,7012,427,5218,4736],function(){return o(88649),o(41333)});var e=J.O()}]);
|
|
151
|
+
|
|
152
|
+
//# sourceMappingURL=main.b4305a7b.js.map
|