1/* See licenses of bundled dependencies at /license.md */ 2var e={},t=[`ja`],n=[`url`,`baseLocale`],r=[],i,a;function o(t){if(r.length===0)return;let n=typeof t==`string`?t:t.href;if(i===n)return a;let o=new URL(n,`http://dummy.com`),s;for(let t of r)if(new e(t.match,o.href).exec(o.href)){s=t;break}return i=n,a=s,s}function s(e){let t=o(e);return t&&t.exclude!==!0&&Array.isArray(t.strategy)?t.strategy:n}var c=void 0;globalThis.__paraglide=globalThis.__paraglide??{},globalThis.__paraglide.ssr=globalThis.__paraglide.ssr??{};var l=!1,u=()=>{if(c){let e=c?.getStore()?.locale;if(e)return e}let e=n;typeof window<`u`&&window.location?.href&&(e=s(window.location.href));let t=d(e,typeof window<`u`?window.location?.href:void 0);if(t)return l||(l=!0,p(t,{reload:!1})),t;throw Error(`No locale found. Read the docs https://inlang.com/m/gerre34r/library-inlang-paraglideJs/errors#no-locale-found`)};function d(e,t){let n;for(let r of e){if(r===`baseLocale`)n=`ja`;else if(r===`url`&&typeof t==`string`)n=y(t);else if(D(r)&&E.has(r)){let e=E.get(r);if(e){let t=e.getLocale();if(t instanceof Promise)continue;if(t!==void 0)return g(t)}}let e=h(n);if(e)return e}}var f=e=>{e?window.location.href=e:window.location.reload()},p=(e,t)=>{let r={reload:!0,...t},i;try{i=u()}catch{}let a=[],o,c=n;typeof window<`u`&&window.location?.href&&(c=s(window.location.href));for(let t of c)if(t===`baseLocale`)continue;else if(t===`url`&&typeof window<`u`)o=x(window.location.href,{locale:e}).href;else if(D(t)&&E.has(t)){let n=E.get(t);if(n){let r=n.setLocale(e);r instanceof Promise&&(r=r.catch(e=>{throw Error(`Custom strategy "${t}" setLocale failed.`,{cause:e})}),a.push(r))}}let l=()=>{r.reload&&window.location&&e!==i&&f(o)};if(a.length)return Promise.all(a).then(()=>{l()});l()},m=()=>c?c.getStore()?.origin??`http://fallback.com`:typeof window<`u`?window.location.origin:`http://fallback.com`;function h(e){if(typeof e!=`string`)return;let n=e.toLowerCase();for(let e of t)if(e.toLowerCase()===n)return e}function g(e){let n=h(e);if(n)return n;throw Error(`Invalid locale: ${e}. Expected one of: ${t.join(`, `)}`)}var _,v;function y(e){let t=typeof e==`string`?e:e.href;if(_===t)return v;let n;return n=b(e),_=t,v=n,n}function b(e){return h(new URL(e,`http://dummy.com`).pathname.split(`/`).filter(Boolean)[0])||`ja`}function x(e,t){return S(e,t?.locale?g(t?.locale):u())}function S(e,t){let n=typeof e==`string`?new URL(e,m()):new URL(e);if(y(n)===t)return n;let r=n.pathname.split(`/`).filter(Boolean);return r.length>0&&h(r[0])&&r.shift(),t===`ja`?n.pathname=`/`+r.join(`/`):n.pathname=`/`+t+`/`+r.join(`/`),n}function C(e){return w(e)}function w(e){let t=typeof e==`string`?new URL(e,m()):new URL(e),n=t.pathname.split(`/`).filter(Boolean);return n.length>0&&h(n[0])&&(t.pathname=`/`+n.slice(1).join(`/`)),t}function T(e,t){let n=u(),r=t?.locale??n,i=new URL(e,m()),a=x(i,{locale:r});return e.startsWith(`/`)&&i.origin===a.origin?r!==n&&x(i,{locale:n}).origin!==a.origin?a.href:a.pathname+a.search+a.hash:a.href}var E=new Map;function D(e){return typeof e==`string`&&/^custom-[A-Za-z0-9_-]+$/.test(e)}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);export{u as n,T as r,C 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.