(function () { 'use strict'; var g = typeof globalThis !== 'undefined' ? globalThis : (typeof window !== 'undefined' ? window : this); if (g.soonAsset) return; function computeAssetBase() { if (typeof window === 'undefined' || !window.location) { return '../assets/images/'; } var p = window.location.pathname || '/'; if (p.indexOf('/pages/') !== -1 || /\.html$/i.test(p)) { return '../assets/images/'; } return 'assets/images/'; } function computeJsBase() { if (typeof window === 'undefined' || !window.location) { return '../js/'; } var p = window.location.pathname || '/'; if (p.indexOf('/pages/') !== -1 || /\.html$/i.test(p)) { return '../js/'; } return 'js/'; } g.SOON_ASSET_BASE = computeAssetBase(); g.SOON_JS_BASE = computeJsBase(); g.soonAsset = function (name) { var n = String(name || '').replace(/^\/+/, ''); return g.SOON_ASSET_BASE + n; }; g.soonJs = function (rel) { var n = String(rel || '').replace(/^\/+/, ''); return g.SOON_JS_BASE + n; }; })();