PageSourceSearch

https://jasoncameron.dev/_app/immutable/chunks/MEySzoKA.js

js jasoncameron.dev collected 2026-10-09 17:41:23 UTC 3,744 bytes, 1 lines download raw bytes

1import{payload as e}from"../entry/payload.DSmR2FwN.js";import{X as t,_t as n,ht as r,q as i}from"./CZrb8cCp.js";import{o as a,s as o}from"./CbADPH2h.js";import{t as s}from"./DYrviY11.js";var c=e.base??``,l=e.assets??c??``;function u(e){}function d(e){return e.replace(/[.*+?^${}()|[\]\\]/g,e=>`\\`+e)}var f=/^(\[)?(\.\.\.)?([\w-]+)(?:=([\w-]+))?(\])?$/,p=/^\/\((?:[^)]+)\)$/,m=/\[([ux])\+([^\]]+)\]/;function h(e){return String.fromCodePoint(...e.split(`-`).map(e=>parseInt(e,16)))}function g(e){let t=[];return{pattern:e===`/`||p.test(e)?/^\/$/:RegExp(`^${v(e).map(e=>{let n=/^\[\.\.\.([\w-]+)(?:=([\w-]+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[([\w-]+)(?:=([\w-]+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`)||e.startsWith(`u+`))return S(h(e.slice(2)));let[,r,a,o,s]=f.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return S(e)}).join(``)}).join(``)}/?$`),params:t}}function _(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function v(e){return e.slice(1).split(`/`).filter(_)}function y(e,t){let n=e[`~standard`].validate(t);if(n instanceof Promise&&a(),n.issues)return{success:!1};let r=n.value;return typeof r!=`string`&&typeof r!=`number`&&typeof r!=`boolean`&&typeof r!=`bigint`&&o(),{success:!0,value:r}}function b(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0){if(s.rest)c=``;else continue}let l=decodeURIComponent(c);if(s.matcher){let e=y(n[s.matcher],l);if(!e.success){if(s.optional&&s.chained){o++;continue}return}r[s.name]=e.value}else r[s.name]=l;let u=t[e+1],d=i[e+1];u&&!u.rest&&u.optional&&d&&s.chained&&(o=0),!u&&!d&&Object.keys(r).length===a.length&&(o=0)}if(!o)return r}var x={"%":`%25`,"/":`%2[Ff]`,"?":`%3[Ff]`,"#":`%23`};function S(e){return e.normalize().split(/([%/?#])/).map((e,t)=>t%2?x[e]:d(e)).join(``)}RegExp(`${m.source}|\\[(\\[)?(\\.\\.\\.)?([\\w-]+?)(?:=([\\w-]+))?\\]\\]?`,`g`);var C=new class{#e=n({});get data(){return i(this.#e)}set data(e){r(this.#e,e)}#t=n(null);get form(){return i(this.#t)}set form(e){r(this.#t,e)}#n=n(null);get error(){return i(this.#n)}set error(e){r(this.#n,e)}#r=n({});get params(){return i(this.#r)}set params(e){r(this.#r,e)}#i=n({id:null});get route(){return i(this.#i)}set route(e){r(this.#i,e)}#a=n(null);get shallow(){return i(this.#a)}set shallow(e){r(this.#a,e)}#o=n({});get state(){return i(this.#o)}set state(e){r(this.#o,e)}#s=n(-1);get status(){return i(this.#s)}set status(e){r(this.#s,e)}#c=n(new URL(`a:`));get url(){return i(this.#c)}set url(e){r(this.#c,e)}};function w(e){Object.assign(C,e)}var T={get data(){return C.data},get error(){return C.error},get form(){return C.form},get params(){return C.params},get route(){return C.route},get shallow(){return C.shallow},get state(){return C.state},get status(){return C.status},get url(){return C.url}},E=n(null);function D(e){r(E,e)}var O=36e5,k,A,j=n(!1),M={get current(){return i(j)},async check(){return window.clearTimeout(k),i(j)?Promise.resolve(!0):A??=(async()=>{try{let e=await fetch(`${l}/_app/version.json`,{headers:{"cache-control":`no-cache`}});if(!e.ok)return!1;let t=await e.json();return r(j,i(j)||t.version!==s)}catch{return!1}finally{A=void 0,i(j)||(k=window.setTimeout(M.check,O))}})()}};O&&(k=window.setTimeout(M.check,O));function N(e){e&&t(()=>r(j,i(j)||e!==s))}export{M as a,c,w as i,u as l,T as n,b as o,D as r,g as s,N 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.