1import{t as e}from"./vite-env--luZOIDi.js";var t=`localhost`;function n(e){return e.replace(/^\[(.*)\]$/,`$1`).toLowerCase()}function r(e){let t=n(e);return t===`localhost`||t===`127.0.0.1`||t===`::1`||t===`0.0.0.0`}function i(e){let i=n(e);return r(i)?t:i}var a=`klappt-api-base`;function o(e){let t=(e??``).trim().replace(/\/+$/,``);if(!t)return``;try{let e=new URL(t);return e.hostname=i(e.hostname),e.toString().replace(/\/+$/,``)}catch{return t}}function s(){let t=o(e().VITE_API_BASE_URL);if(t)return t;if(typeof document<`u`){let e=o(document.querySelector(`meta[name="${a}"]`)?.getAttribute(`content`));if(e)return e}return typeof window<`u`&&window.location?.origin?o(window.location.origin):``}function c(){if(typeof window<`u`&&window.location?.origin){let e=o(window.location.origin),t=window.location.hostname;if(!t)try{t=new URL(e).hostname}catch{t=``}if(r(t))return e}let t=e();return o(t.VITE_APP_BASE_URL||t.VITE_FRONTEND_BASE_URL)||(typeof window>`u`||!window.location?.origin?``:o(window.location.origin))}function l(e){let t=e.startsWith(`/`)?e:`/${e}`,n=c();return n?`${n}${t}`:t}function u(){return s().length>0}function d(e){let t=e.startsWith(`/`)?e:`/${e}`;return`${s()}${t}`}function f(){if(typeof document>`u`)return;let e=document.querySelector(`meta[name="${a}"]`);e||(e=document.createElement(`meta`),e.name=a,e.id=a,document.head.appendChild(e)),e.content=s()}export{f as a,u as i,l as n,r as o,s as r,d as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.