window.onload=function(){const e=new URLSearchParams(window.location.search).get("basePath")||"",n=n=>{const a=window.localStorage.getItem("ontotext.gdb.auth.jwt");if(null!==a&&(n.headers.Authorization=a),e&&!n.url.includes(e)){const a=new URL(n.url);a.pathname=e+a.pathname,n.url=a.toString()}return n};window.uiRdf4j=SwaggerUIBundle({url:`${e}/rest/api/rdf4j`,name:"RDF4J API",dom_id:"#swagger-ui-container-rdf4j",validatorUrl:null,deepLinking:!0,docExpansion:"none",defaultModelRendering:"example",requestInterceptor:n,presets:[SwaggerUIBundle.presets.apis,SwaggerUIStandalonePreset],plugins:[SwaggerUIBundle.plugins.DownloadUrl],layout:"StandaloneLayout"}),window.uiWB=SwaggerUIBundle({url:`${e}/rest/api/workbench`,name:"GraphDB API",dom_id:"#swagger-ui-container-graphdb",validatorUrl:null,deepLinking:!0,docExpansion:"none",defaultModelRendering:"example",requestInterceptor:n,presets:[SwaggerUIBundle.presets.apis,SwaggerUIStandalonePreset],plugins:[SwaggerUIBundle.plugins.DownloadUrl],layout:"StandaloneLayout"})};