Files
intotheeast-com-content/plugins/admin2/app/_app/immutable/chunks/BSopV7IU.js
T

2 lines
5.7 KiB
JavaScript

import{o as b}from"./DukJHxi2.js";import{i as l,g as c,j as u}from"./krC2xWPP.js";import{w as A}from"./CddAxf8c.js";new URL("sveltekit-internal://");function Y(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function q(t){return t.split("%25").map(decodeURI).join("%25")}function D(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function B({href:t}){return t.split("#")[0]}function U(...t){let e=5381;for(const s of t)if(typeof s=="string"){let n=s.length;for(;n;)e=e*33^s.charCodeAt(--n)}else if(ArrayBuffer.isView(s)){const n=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);let r=n.length;for(;r;)e=e*33^n[--r]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}new TextEncoder;new TextDecoder;function I(t){const e=atob(t),s=new Uint8Array(e.length);for(let n=0;n<e.length;n++)s[n]=e.charCodeAt(n);return s}const N=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:e?.method||"GET")!=="GET"&&h.delete(p(t)),N(t,e));const h=new Map;function H(t,e){const s=p(t,e),n=document.querySelector(s);if(n?.textContent){n.remove();let{body:r,...i}=JSON.parse(n.textContent);const a=n.getAttribute("data-ttl");return a&&h.set(s,{body:r,init:i,ttl:1e3*Number(a)}),n.getAttribute("data-b64")!==null&&(r=I(r)),Promise.resolve(new Response(r,i))}return window.fetch(t,e)}function K(t,e,s){if(h.size>0){const n=p(t,s),r=h.get(n);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(s?.cache))return new Response(r.body,r.init);h.delete(n)}}return window.fetch(e,s)}function p(t,e){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e?.headers||e?.body){const r=[];e.headers&&r.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&r.push(e.body),n+=`[data-hash="${U(...r)}"]`}return n}const x=globalThis.__sveltekit_ew1uii?.base??"/__GRAV_ADMIN2_BASE__",L=globalThis.__sveltekit_ew1uii?.assets??x??"",O="1781630575640",M="sveltekit:snapshot",W="sveltekit:scroll",X="sveltekit:states",z="sveltekit:pageurl",J="sveltekit:history",F="sveltekit:navigation",w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},R=location.origin;function Q(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const s=document.getElementsByTagName("base");e=s.length?s[0].href:document.URL}return new URL(t,e)}function Z(){return{x:pageXOffset,y:pageYOffset}}function d(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const m={...w,"":w.hover};function S(t){let e=t.assignedSlot??t.parentNode;return e?.nodeType===11&&(e=e.host),e}function ee(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=S(t)}}function te(t,e,s){let n;try{if(n=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),s&&n.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";n.hash=`#${o}${n.hash}`}}catch{}const r=t instanceof SVGAElement?t.target.baseVal:t.target,i=!n||!!r||$(n,e,s)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),a=n?.origin===R&&t.hasAttribute("download");return{url:n,external:i,target:r,download:a}}function ne(t){let e=null,s=null,n=null,r=null,i=null,a=null,o=t;for(;o&&o!==document.documentElement;)n===null&&(n=d(o,"preload-code")),r===null&&(r=d(o,"preload-data")),e===null&&(e=d(o,"keepfocus")),s===null&&(s=d(o,"noscroll")),i===null&&(i=d(o,"reload")),a===null&&(a=d(o,"replacestate")),o=S(o);function f(E){switch(E){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:m[n??"off"],preload_data:m[r??"off"],keepfocus:f(e),noscroll:f(s),reload:f(i),replace_state:f(a)}}function se(t){const e=A(t);let s=!0;function n(){s=!0,e.update(a=>a)}function r(a){s=!1,e.set(a)}function i(a){let o;return e.subscribe(f=>{(o===void 0||s&&f!==o)&&a(o=f)})}return{notify:n,set:r,subscribe:i}}const T={v:()=>{}};function re(){const{set:t,subscribe:e}=A(!1),s=6e4;let n;async function r(){clearTimeout(n),n=setTimeout(r,s);try{const i=await fetch(`${L}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!i.ok)return!1;const o=(await i.json()).version!==O;return o&&(t(!0),T.v(),clearTimeout(n)),o}catch{return!1}}return n=setTimeout(r,s),{subscribe:e,check:r}}function $(t,e,s){return t.origin!==R||!t.pathname.startsWith(e)?!0:s?t.pathname!==location.pathname:!1}function oe(t){}const k=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...k];const V=new Set([...k]);[...V];let _,v,g;const j=b.toString().includes("$$")||/function \w+\(\) \{\}/.test(b.toString()),y="a:";j?(_={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(y)},v={current:null},g={current:!1}):(_=new class{#e=l({});get data(){return c(this.#e)}set data(e){u(this.#e,e)}#t=l(null);get form(){return c(this.#t)}set form(e){u(this.#t,e)}#n=l(null);get error(){return c(this.#n)}set error(e){u(this.#n,e)}#s=l({});get params(){return c(this.#s)}set params(e){u(this.#s,e)}#r=l({id:null});get route(){return c(this.#r)}set route(e){u(this.#r,e)}#o=l({});get state(){return c(this.#o)}set state(e){u(this.#o,e)}#a=l(-1);get status(){return c(this.#a)}set status(e){u(this.#a,e)}#i=l(new URL(y));get url(){return c(this.#i)}set url(e){u(this.#i,e)}},v=new class{#e=l(null);get current(){return c(this.#e)}set current(e){u(this.#e,e)}},g=new class{#e=l(!1);get current(){return c(this.#e)}set current(e){u(this.#e,e)}},T.v=()=>g.current=!0);function ce(t){Object.assign(_,t)}export{J as H,F as N,z as P,X as S,ne as a,x as b,re as c,B as d,D as e,ee as f,te as g,Y as h,$ as i,w as j,q as k,M as l,K as m,v as n,R as o,_ as p,H as q,Q as r,Z as s,W as t,g as u,se as v,ce as w,oe as x};