@juliantanx/aiusage 1.3.4 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +124 -535
- package/dist/index.js +6514 -2343
- package/dist/web/_app/immutable/assets/0.BYjLgame.css +1 -0
- package/dist/web/_app/immutable/assets/11.4MyEKiO6.css +1 -0
- package/dist/web/_app/immutable/assets/12.nNHFRI35.css +1 -0
- package/dist/web/_app/immutable/assets/13.CAQKz1hf.css +1 -0
- package/dist/web/_app/immutable/assets/14.Bcofmxqa.css +1 -0
- package/dist/web/_app/immutable/assets/15.F0aA4smG.css +1 -0
- package/dist/web/_app/immutable/assets/2.GIkI4O03.css +1 -0
- package/dist/web/_app/immutable/assets/3.H3-dDI9U.css +1 -0
- package/dist/web/_app/immutable/assets/4.BOWlKC54.css +1 -0
- package/dist/web/_app/immutable/assets/5.CLn2x9cs.css +1 -0
- package/dist/web/_app/immutable/assets/6.C1lxHTyi.css +1 -0
- package/dist/web/_app/immutable/assets/7.oxd6PqWk.css +1 -0
- package/dist/web/_app/immutable/assets/8.9jvt5Dym.css +1 -0
- package/dist/web/_app/immutable/assets/9.DsmA__AV.css +1 -0
- package/dist/web/_app/immutable/assets/ToolSelector.BewzNVhC.css +1 -0
- package/dist/web/_app/immutable/assets/ToolSelector.BqfI2BMz.css +1 -0
- package/dist/web/_app/immutable/assets/_layout.D8R7GvV-.css +1 -0
- package/dist/web/_app/immutable/assets/_page.4MyEKiO6.css +1 -0
- package/dist/web/_app/immutable/assets/_page.9jvt5Dym.css +1 -0
- package/dist/web/_app/immutable/assets/_page.BOWlKC54.css +1 -0
- package/dist/web/_app/immutable/assets/_page.Bcofmxqa.css +1 -0
- package/dist/web/_app/immutable/assets/_page.C1lxHTyi.css +1 -0
- package/dist/web/_app/immutable/assets/_page.CFfU6gQq.css +1 -0
- package/dist/web/_app/immutable/assets/_page.CLn2x9cs.css +1 -0
- package/dist/web/_app/immutable/assets/_page.CMG6gS2t.css +1 -0
- package/dist/web/_app/immutable/assets/_page.DXX8tyXM.css +1 -0
- package/dist/web/_app/immutable/assets/_page.F0aA4smG.css +1 -0
- package/dist/web/_app/immutable/assets/_page.H3-dDI9U.css +1 -0
- package/dist/web/_app/immutable/assets/_page.ZSDsIDry.css +1 -0
- package/dist/web/_app/immutable/assets/_page.oxd6PqWk.css +1 -0
- package/dist/web/_app/immutable/chunks/ToolSelector.CofvKVw2.js +2 -0
- package/dist/web/_app/immutable/chunks/api.Mv_KcGhp.js +1 -0
- package/dist/web/_app/immutable/chunks/entry.PDoHFbXz.js +3 -0
- package/dist/web/_app/immutable/chunks/i18n.CwV3KceS.js +1 -0
- package/dist/web/_app/immutable/chunks/index.66Vu9Sio.js +1 -0
- package/dist/web/_app/immutable/chunks/{index.CPsgU-fv.js → index.m3oCcA6N.js} +1 -1
- package/dist/web/_app/immutable/chunks/scheduler.DsWd5xup.js +1 -0
- package/dist/web/_app/immutable/chunks/stores.BSI_cVy6.js +1 -0
- package/dist/web/_app/immutable/chunks/{stores.DIJRlQaL.js → stores.Botc0ioY.js} +1 -1
- package/dist/web/_app/immutable/entry/app.CoPtpbXI.js +2 -0
- package/dist/web/_app/immutable/entry/start.CaOJNprV.js +1 -0
- package/dist/web/_app/immutable/nodes/0.CZMa2uzk.js +142 -0
- package/dist/web/_app/immutable/nodes/{1.ClCXLnt8.js → 1.DJI2NNga.js} +1 -1
- package/dist/web/_app/immutable/nodes/10.DTaETIM6.js +1 -0
- package/dist/web/_app/immutable/nodes/11.CScZqjVc.js +1 -0
- package/dist/web/_app/immutable/nodes/12.DeLNKhlw.js +1 -0
- package/dist/web/_app/immutable/nodes/13.BFaBQy6e.js +1 -0
- package/dist/web/_app/immutable/nodes/14.BgJEC28r.js +1 -0
- package/dist/web/_app/immutable/nodes/15.DjuCO6OE.js +1 -0
- package/dist/web/_app/immutable/nodes/2.CoxR54dV.js +3 -0
- package/dist/web/_app/immutable/nodes/3.Bua2oewW.js +1 -0
- package/dist/web/_app/immutable/nodes/4.DJwmYYKI.js +1 -0
- package/dist/web/_app/immutable/nodes/5.CXmtjVJL.js +1 -0
- package/dist/web/_app/immutable/nodes/6.kpxBlrHt.js +1 -0
- package/dist/web/_app/immutable/nodes/7.LSfdx4vz.js +9 -0
- package/dist/web/_app/immutable/nodes/8.ByAI01dT.js +1 -0
- package/dist/web/_app/immutable/nodes/9.Ubt4Bfxd.js +1 -0
- package/dist/web/_app/version.json +1 -1
- package/dist/web/index.html +10 -10
- package/dist/web/wechat-support-qr.jpg +0 -0
- package/package.json +3 -4
- package/dist/web/_app/immutable/assets/0.bPTGJZag.css +0 -1
- package/dist/web/_app/immutable/assets/10.C9BKssg5.css +0 -1
- package/dist/web/_app/immutable/assets/11.DoWxheGb.css +0 -1
- package/dist/web/_app/immutable/assets/12.MAt3PLLc.css +0 -1
- package/dist/web/_app/immutable/assets/13.CYY7rvzI.css +0 -1
- package/dist/web/_app/immutable/assets/2.CLCMeZwn.css +0 -1
- package/dist/web/_app/immutable/assets/3.BB9nMGBG.css +0 -1
- package/dist/web/_app/immutable/assets/4.D4N7n6x9.css +0 -1
- package/dist/web/_app/immutable/assets/5.BvcBvBEs.css +0 -1
- package/dist/web/_app/immutable/assets/6.CcFk1fVK.css +0 -1
- package/dist/web/_app/immutable/assets/7.BeGOLIpG.css +0 -1
- package/dist/web/_app/immutable/assets/8.yw0F4oCm.css +0 -1
- package/dist/web/_app/immutable/assets/ToolSelector.BRqFUj1Q.css +0 -1
- package/dist/web/_app/immutable/assets/ToolSelector.Bqx3ytrl.css +0 -1
- package/dist/web/_app/immutable/assets/_layout.QS8Tu4KK.css +0 -1
- package/dist/web/_app/immutable/assets/_page.BB9nMGBG.css +0 -1
- package/dist/web/_app/immutable/assets/_page.BLq-3aJQ.css +0 -1
- package/dist/web/_app/immutable/assets/_page.BeGOLIpG.css +0 -1
- package/dist/web/_app/immutable/assets/_page.BvEGYIGb.css +0 -1
- package/dist/web/_app/immutable/assets/_page.BvcBvBEs.css +0 -1
- package/dist/web/_app/immutable/assets/_page.C9BKssg5.css +0 -1
- package/dist/web/_app/immutable/assets/_page.CGsCDBRD.css +0 -1
- package/dist/web/_app/immutable/assets/_page.CYY7rvzI.css +0 -1
- package/dist/web/_app/immutable/assets/_page.CcFk1fVK.css +0 -1
- package/dist/web/_app/immutable/assets/_page.D4N7n6x9.css +0 -1
- package/dist/web/_app/immutable/assets/_page.MAt3PLLc.css +0 -1
- package/dist/web/_app/immutable/chunks/ToolSelector.D-ihlQCZ.js +0 -2
- package/dist/web/_app/immutable/chunks/api.BR248OCH.js +0 -1
- package/dist/web/_app/immutable/chunks/entry.Bw49Judx.js +0 -3
- package/dist/web/_app/immutable/chunks/index.B0Aytz_K.js +0 -1
- package/dist/web/_app/immutable/chunks/scheduler.DFD7qxcZ.js +0 -1
- package/dist/web/_app/immutable/chunks/stores.B1g8D8DV.js +0 -1
- package/dist/web/_app/immutable/entry/app.C3JWF8LV.js +0 -2
- package/dist/web/_app/immutable/entry/start.DJaQZyhE.js +0 -1
- package/dist/web/_app/immutable/nodes/0.BGBMbwBp.js +0 -1
- package/dist/web/_app/immutable/nodes/10.a_45vAk_.js +0 -1
- package/dist/web/_app/immutable/nodes/11.Uz-0jVL7.js +0 -1
- package/dist/web/_app/immutable/nodes/12.DoQ9E1LV.js +0 -1
- package/dist/web/_app/immutable/nodes/13.6lDoUYy7.js +0 -1
- package/dist/web/_app/immutable/nodes/2.BB8OyOCP.js +0 -3
- package/dist/web/_app/immutable/nodes/3.Cfms9ru5.js +0 -1
- package/dist/web/_app/immutable/nodes/4.BRcdKGbJ.js +0 -1
- package/dist/web/_app/immutable/nodes/5.BvbSC3f6.js +0 -1
- package/dist/web/_app/immutable/nodes/6.B4H7Hfou.js +0 -9
- package/dist/web/_app/immutable/nodes/7.Civ32duh.js +0 -1
- package/dist/web/_app/immutable/nodes/8.TXFmgrFA.js +0 -1
- package/dist/web/_app/immutable/nodes/9.B9_1-2xn.js +0 -1
- /package/dist/web/_app/immutable/assets/{9.DpWloLoX.css → 10.DpWloLoX.css} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var mt=Object.defineProperty;var wt=(e,n,t)=>n in e?mt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var P=(e,n,t)=>wt(e,typeof n!="symbol"?n+"":n,t);import{o as je,t as yt}from"./scheduler.DsWd5xup.js";import{w as ye}from"./index.m3oCcA6N.js";new URL("sveltekit-internal://");function _t(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function vt(e){return e.split("%25").map(decodeURI).join("%25")}function bt(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function ue({href:e}){return e.split("#")[0]}function At(e,n,t,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(o,c){if(c==="get"||c==="getAll"||c==="has")return f=>(t(f),o[c](f));n();const i=Reflect.get(o,c);return typeof i=="function"?i.bind(o):i}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const o of s)Object.defineProperty(a,o,{get(){return n(),e[o]},enumerable:!0,configurable:!0});return a}const Et="/__data.json",kt=".html__data.json";function St(e){return e.endsWith(".html")?e.replace(/\.html$/,kt):e.replace(/\/$/,"")+Et}function Rt(...e){let n=5381;for(const t of e)if(typeof t=="string"){let r=t.length;for(;r;)n=n*33^t.charCodeAt(--r)}else if(ArrayBuffer.isView(t)){const r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);let a=r.length;for(;a;)n=n*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function It(e){const n=atob(e),t=new Uint8Array(n.length);for(let r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t.buffer}const He=window.fetch;window.fetch=(e,n)=>((e instanceof Request?e.method:(n==null?void 0:n.method)||"GET")!=="GET"&&M.delete(_e(e)),He(e,n));const M=new Map;function Ut(e,n){const t=_e(e,n),r=document.querySelector(t);if(r!=null&&r.textContent){let{body:a,...s}=JSON.parse(r.textContent);const o=r.getAttribute("data-ttl");return o&&M.set(t,{body:a,init:s,ttl:1e3*Number(o)}),r.getAttribute("data-b64")!==null&&(a=It(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,n)}function Tt(e,n,t){if(M.size>0){const r=_e(e,t),a=M.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(t==null?void 0:t.cache))return new Response(a.body,a.init);M.delete(r)}}return window.fetch(n,t)}function _e(e,n){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(n!=null&&n.headers||n!=null&&n.body){const a=[];n.headers&&a.push([...new Headers(n.headers)].join(",")),n.body&&(typeof n.body=="string"||ArrayBuffer.isView(n.body))&&a.push(n.body),r+=`[data-hash="${Rt(...a)}"]`}return r}const Lt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Pt(e){const n=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${jt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return n.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return n.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const o=r.split(/\[(.+?)\](?!\])/);return"/"+o.map((i,f)=>{if(f%2){if(i.startsWith("x+"))return de(String.fromCharCode(parseInt(i.slice(2),16)));if(i.startsWith("u+"))return de(String.fromCharCode(...i.slice(2).split("-").map(l=>parseInt(l,16))));const h=Lt.exec(i),[,u,g,p,d]=h;return n.push({name:p,matcher:d,optional:!!u,rest:!!g,chained:g?f===1&&o[0]==="":!1}),g?"(.*?)":u?"([^/]*)?":"([^/]+?)"}return de(i)}).join("")}).join("")}/?$`),params:n}}function Ot(e){return!/^\([^)]+\)$/.test(e)}function jt(e){return e.slice(1).split("/").filter(Ot)}function Nt(e,n,t){const r={},a=e.slice(1),s=a.filter(c=>c!==void 0);let o=0;for(let c=0;c<n.length;c+=1){const i=n[c];let f=a[c-o];if(i.chained&&i.rest&&o&&(f=a.slice(c-o,c+1).filter(h=>h).join("/"),o=0),f===void 0){i.rest&&(r[i.name]="");continue}if(!i.matcher||t[i.matcher](f)){r[i.name]=f;const h=n[c+1],u=a[c+1];h&&!h.rest&&h.optional&&u&&i.chained&&(o=0),!h&&!u&&Object.keys(r).length===s.length&&(o=0);continue}if(i.optional&&i.chained){o++;continue}return}if(!o)return r}function de(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function $t({nodes:e,server_loads:n,dictionary:t,matchers:r}){const a=new Set(n);return Object.entries(t).map(([c,[i,f,h]])=>{const{pattern:u,params:g}=Pt(c),p={id:c,exec:d=>{const l=u.exec(d);if(l)return Nt(l,g,r)},errors:[1,...h||[]].map(d=>e[d]),layouts:[0,...f||[]].map(o),leaf:s(i)};return p.errors.length=p.layouts.length=Math.max(p.errors.length,p.layouts.length),p});function s(c){const i=c<0;return i&&(c=~c),[i,e[c]]}function o(c){return c===void 0?c:[a.has(c),e[c]]}}function Ke(e,n=JSON.parse){try{return n(sessionStorage[e])}catch{}}function Ne(e,n,t=JSON.stringify){const r=t(n);try{sessionStorage[e]=r}catch{}}var Me;const L=((Me=globalThis.__sveltekit_pqd7un)==null?void 0:Me.base)??"";var qe;const xt=((qe=globalThis.__sveltekit_pqd7un)==null?void 0:qe.assets)??L,Ct="1780826637758",We="sveltekit:snapshot",Ye="sveltekit:scroll",Je="sveltekit:states",Dt="sveltekit:pageurl",C="sveltekit:history",H="sveltekit:navigation",z={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},J=location.origin;function ze(e){if(e instanceof URL)return e;let n=document.baseURI;if(!n){const t=document.getElementsByTagName("base");n=t.length?t[0].href:document.URL}return new URL(e,n)}function ve(){return{x:pageXOffset,y:pageYOffset}}function x(e,n){return e.getAttribute(`data-sveltekit-${n}`)}const $e={...z,"":z.hover};function Xe(e){let n=e.assignedSlot??e.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function Ze(e,n){for(;e&&e!==n;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Xe(e)}}function ge(e,n,t){let r;try{r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||oe(r,n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(r==null?void 0:r.origin)===J&&e.hasAttribute("download");return{url:r,external:s,target:a,download:o}}function X(e){let n=null,t=null,r=null,a=null,s=null,o=null,c=e;for(;c&&c!==document.documentElement;)r===null&&(r=x(c,"preload-code")),a===null&&(a=x(c,"preload-data")),n===null&&(n=x(c,"keepfocus")),t===null&&(t=x(c,"noscroll")),s===null&&(s=x(c,"reload")),o===null&&(o=x(c,"replacestate")),c=Xe(c);function i(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:$e[r??"off"],preload_data:$e[a??"off"],keepfocus:i(n),noscroll:i(t),reload:i(s),replace_state:i(o)}}function xe(e){const n=ye(e);let t=!0;function r(){t=!0,n.update(o=>o)}function a(o){t=!1,n.set(o)}function s(o){let c;return n.subscribe(i=>{(c===void 0||t&&i!==c)&&o(c=i)})}return{notify:r,set:a,subscribe:s}}const Qe={v:()=>{}};function Bt(){const{set:e,subscribe:n}=ye(!1);let t;async function r(){clearTimeout(t);try{const a=await fetch(`${xt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==Ct;return o&&(e(!0),Qe.v(),clearTimeout(t)),o}catch{return!1}}return{subscribe:n,check:r}}function oe(e,n,t){return e.origin!==J||!e.pathname.startsWith(n)?!0:t?!(e.pathname===n+"/"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===n):!1}function Ft(e){return Uint8Array.fromBase64(e).buffer}function Vt(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function Mt(e){const n=atob(e),t=n.length,r=new Uint8Array(t);for(let a=0;a<t;a++)r[a]=n.charCodeAt(a);return r.buffer}const qt=typeof Uint8Array.fromBase64=="function";var Ge;const Gt=typeof process=="object"&&((Ge=process.versions)==null?void 0:Ge.node)!==void 0,Ht=qt?Ft:Gt?Vt:Mt,Kt=-1,Wt=-2,Yt=-3,Jt=-4,zt=-5,Xt=-6,Zt=-7;function Qt(e,n){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,r=Array(t.length);let a=null;function s(o,c=!1){if(o===Kt)return;if(o===Yt)return NaN;if(o===Jt)return 1/0;if(o===zt)return-1/0;if(o===Xt)return-0;if(c||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const i=t[o];if(!i||typeof i!="object")r[o]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const f=i[0],h=n&&Object.hasOwn(n,f)?n[f]:void 0;if(h){let u=i[1];if(typeof u!="number"&&(u=t.push(i[1])-1),a??(a=new Set),a.has(u))throw new Error("Invalid circular reference");return a.add(u),r[o]=h(s(u)),a.delete(u),r[o]}switch(f){case"Date":r[o]=new Date(i[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;d<i.length;d+=1)u.add(s(i[d]));break;case"Map":const g=new Map;r[o]=g;for(let d=1;d<i.length;d+=2)g.set(s(i[d]),s(i[d+1]));break;case"RegExp":r[o]=new RegExp(i[1],i[2]);break;case"Object":{const d=i[1];if(typeof t[d]=="object"&&t[d][0]!=="BigInt")throw new Error("Invalid input");r[o]=Object(s(d));break}case"BigInt":r[o]=BigInt(i[1]);break;case"null":const p=Object.create(null);r[o]=p;for(let d=1;d<i.length;d+=2){if(i[d]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");p[i[d]]=s(i[d+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(t[i[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const d=globalThis[f],l=s(i[1]);r[o]=i[2]!==void 0?new d(l,i[2],i[3]):new d(l);break}case"ArrayBuffer":{const d=i[1];if(typeof d!="string")throw new Error("Invalid ArrayBuffer encoding");const l=Ht(d);r[o]=l;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const d=f.slice(9);r[o]=Temporal[d].from(i[1]);break}case"URL":{const d=new URL(i[1]);r[o]=d;break}case"URLSearchParams":{const d=new URLSearchParams(i[1]);r[o]=d;break}default:throw new Error(`Unknown type ${f}`)}}else if(i[0]===Zt){const f=i[1];if(!Number.isInteger(f)||f<0)throw new Error("Invalid input");const h=new Array(f);r[o]=h;for(let u=2;u<i.length;u+=2){const g=i[u];if(!Number.isInteger(g)||g<0||g>=f)throw new Error("Invalid input");h[g]=s(i[u+1])}}else{const f=new Array(i.length);r[o]=f;for(let h=0;h<i.length;h+=1){const u=i[h];u!==Wt&&(f[h]=s(u))}}else{const f={};r[o]=f;for(const h of Object.keys(i)){if(h==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const u=i[h];f[h]=s(u)}}return r[o]}return s(0)}const et=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...et];const en=new Set([...et]);[...en];function tn(e){return e.filter(n=>n!=null)}class se{constructor(n,t){this.status=n,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class be{constructor(n,t){this.status=n,this.location=t}}class Ae extends Error{constructor(n,t,r){super(r),this.status=n,this.text=t}}const nn="x-sveltekit-invalidated",rn="x-sveltekit-trailing-slash";function Z(e){return e instanceof se||e instanceof Ae?e.status:500}function an(e){return e instanceof Ae?e.text:"Internal Error"}let I,K,he;const on=je.toString().includes("$$")||/function \w+\(\) \{\}/.test(je.toString());on?(I={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},K={current:null},he={current:!1}):(I=new class{constructor(){P(this,"data",$state.raw({}));P(this,"form",$state.raw(null));P(this,"error",$state.raw(null));P(this,"params",$state.raw({}));P(this,"route",$state.raw({id:null}));P(this,"state",$state.raw({}));P(this,"status",$state.raw(-1));P(this,"url",$state.raw(new URL("https://example.com")))}},K=new class{constructor(){P(this,"current",$state.raw(null))}},he=new class{constructor(){P(this,"current",$state.raw(!1))}},Qe.v=()=>he.current=!0);function sn(e){Object.assign(I,e)}const cn=new Set(["icon","shortcut icon","apple-touch-icon"]),$=Ke(Ye)??{},W=Ke(We)??{},j={url:xe({}),page:xe({}),navigating:ye(null),updated:Bt()};function Ee(e){$[e]=ve()}function ln(e,n){let t=e+1;for(;$[t];)delete $[t],t+=1;for(t=n+1;W[t];)delete W[t],t+=1}function B(e){return location.href=e.href,new Promise(()=>{})}async function tt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}function Ce(){}let ie,me,Q,O,we,A;const nt=[],ee=[];let U=null;const rt=new Set,fn=new Set,q=new Set;let y={branch:[],error:null,url:null},ke=!1,te=!1,De=!0,Y=!1,F=!1,at=!1,Se=!1,ot,R,T,ne;const G=new Set;async function Rn(e,n,t){var a,s,o,c;document.URL!==location.href&&(location.href=location.href),A=e,await((s=(a=e.hooks).init)==null?void 0:s.call(a)),ie=$t(e),O=document.documentElement,we=n,me=e.nodes[0],Q=e.nodes[1],me(),Q(),R=(o=history.state)==null?void 0:o[C],T=(c=history.state)==null?void 0:c[H],R||(R=T=Date.now(),history.replaceState({...history.state,[C]:R,[H]:T},""));const r=$[R];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),t?await yn(we,t):mn(location.href,{replaceState:!0}),wn()}function un(){nt.length=0,Se=!1}function st(e){ee.some(n=>n==null?void 0:n.snapshot)&&(W[e]=ee.map(n=>{var t;return(t=n==null?void 0:n.snapshot)==null?void 0:t.capture()}))}function it(e){var n;(n=W[e])==null||n.forEach((t,r)=>{var a,s;(s=(a=ee[r])==null?void 0:a.snapshot)==null||s.restore(t)})}function Be(){Ee(R),Ne(Ye,$),st(T),Ne(We,W)}async function Re(e,n,t,r){return V({type:"goto",url:ze(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:t,nav_token:r,accept:()=>{n.invalidateAll&&(Se=!0)}})}async function dn(e){if(e.id!==(U==null?void 0:U.id)){const n={};G.add(n),U={id:e.id,token:n,promise:lt({...e,preload:n}).then(t=>(G.delete(n),t.type==="loaded"&&t.state.error&&(U=null),t))}}return U.promise}async function pe(e){const n=ie.find(t=>t.exec(ft(e)));n&&await Promise.all([...n.layouts,n.leaf].map(t=>t==null?void 0:t[1]()))}function ct(e,n,t){var s;y=e.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),Object.assign(I,e.props.page),ot=new A.root({target:n,props:{...e.props,stores:j,components:ee},hydrate:t,sync:!1}),it(T);const a={from:null,to:{params:y.params,route:{id:((s=y.route)==null?void 0:s.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};q.forEach(o=>o(a)),te=!0}function re({url:e,params:n,branch:t,status:r,error:a,route:s,form:o}){let c="never";if(L&&(e.pathname===L||e.pathname===L+"/"))c="always";else for(const p of t)(p==null?void 0:p.slash)!==void 0&&(c=p.slash);e.pathname=_t(e.pathname,c),e.search=e.search;const i={type:"loaded",state:{url:e,params:n,branch:t,error:a,route:s},props:{constructors:tn(t).map(p=>p.node.component),page:Le(I)}};o!==void 0&&(i.props.form=o);let f={},h=!I,u=0;for(let p=0;p<Math.max(t.length,y.branch.length);p+=1){const d=t[p],l=y.branch[p];(d==null?void 0:d.data)!==(l==null?void 0:l.data)&&(h=!0),d&&(f={...f,...d.data},h&&(i.props[`data_${u}`]=f),u+=1)}return(!y.url||e.href!==y.url.href||y.error!==a||o!==void 0&&o!==I.form||h)&&(i.props.page={error:a,params:n,route:{id:(s==null?void 0:s.id)??null},state:{},status:r,url:new URL(e),form:o??null,data:h?f:I.data}),i}async function Ie({loader:e,parent:n,url:t,params:r,route:a,server_data_node:s}){var h,u,g;let o=null,c=!0;const i={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},f=await e();if((h=f.universal)!=null&&h.load){let p=function(...l){for(const m of l){const{href:b}=new URL(m,t);i.dependencies.add(b)}};const d={route:new Proxy(a,{get:(l,m)=>(c&&(i.route=!0),l[m])}),params:new Proxy(r,{get:(l,m)=>(c&&i.params.add(m),l[m])}),data:(s==null?void 0:s.data)??null,url:At(t,()=>{c&&(i.url=!0)},l=>{c&&i.search_params.add(l)},A.hash),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:[...l.headers].length?l.headers:void 0,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const k=new URL(b,t);return c&&p(k.href),k.origin===t.origin&&(b=k.href.slice(t.origin.length)),te?Tt(b,k.href,m):Ut(b,m)},setHeaders:()=>{},depends:p,parent(){return c&&(i.parent=!0),n()},untrack(l){c=!1;try{return l()}finally{c=!0}}};o=await f.universal.load.call(null,d)??null}return{node:f,loader:e,server:s,universal:(u=f.universal)!=null&&u.load?{type:"data",data:o,uses:i}:null,data:o??(s==null?void 0:s.data)??null,slash:((g=f.universal)==null?void 0:g.trailingSlash)??(s==null?void 0:s.slash)}}function Fe(e,n,t,r,a,s){if(Se)return!0;if(!a)return!1;if(a.parent&&e||a.route&&n||a.url&&t)return!0;for(const o of a.search_params)if(r.has(o))return!0;for(const o of a.params)if(s[o]!==y.params[o])return!0;for(const o of a.dependencies)if(nt.some(c=>c(new URL(o))))return!0;return!1}function Ue(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}function hn(e,n){if(!e)return new Set(n.searchParams.keys());const t=new Set([...e.searchParams.keys(),...n.searchParams.keys()]);for(const r of t){const a=e.searchParams.getAll(r),s=n.searchParams.getAll(r);a.every(o=>s.includes(o))&&s.every(o=>a.includes(o))&&t.delete(r)}return t}function Ve({error:e,url:n,route:t,params:r}){return{type:"loaded",state:{error:e,url:n,route:t,params:r,branch:[]},props:{page:Le(I),constructors:[]}}}async function lt({id:e,invalidating:n,url:t,params:r,route:a,preload:s}){if((U==null?void 0:U.id)===e)return G.delete(U.token),U.promise;const{errors:o,layouts:c,leaf:i}=a,f=[...c,i];o.forEach(w=>w==null?void 0:w().catch(()=>{})),f.forEach(w=>w==null?void 0:w[1]().catch(()=>{}));let h=null;const u=y.url?e!==ae(y.url):!1,g=y.route?a.id!==y.route.id:!1,p=hn(y.url,t);let d=!1;const l=f.map((w,_)=>{var N;const E=y.branch[_],S=!!(w!=null&&w[0])&&((E==null?void 0:E.loader)!==w[1]||Fe(d,g,u,p,(N=E.server)==null?void 0:N.uses,r));return S&&(d=!0),S});if(l.some(Boolean)){try{h=await ht(t,l)}catch(w){const _=await D(w,{url:t,params:r,route:{id:e}});return G.has(s)?Ve({error:_,url:t,params:r,route:a}):ce({status:Z(w),error:_,url:t,route:a})}if(h.type==="redirect")return h}const m=h==null?void 0:h.nodes;let b=!1;const k=f.map(async(w,_)=>{var le;if(!w)return;const E=y.branch[_],S=m==null?void 0:m[_];if((!S||S.type==="skip")&&w[1]===(E==null?void 0:E.loader)&&!Fe(b,g,u,p,(le=E.universal)==null?void 0:le.uses,r))return E;if(b=!0,(S==null?void 0:S.type)==="error")throw S;return Ie({loader:w[1],url:t,params:r,route:a,parent:async()=>{var Oe;const Pe={};for(let fe=0;fe<_;fe+=1)Object.assign(Pe,(Oe=await k[fe])==null?void 0:Oe.data);return Pe},server_data_node:Ue(S===void 0&&w[0]?{type:"skip"}:S??null,w[0]?E==null?void 0:E.server:void 0)})});for(const w of k)w.catch(()=>{});const v=[];for(let w=0;w<f.length;w+=1)if(f[w])try{v.push(await k[w])}catch(_){if(_ instanceof be)return{type:"redirect",location:_.location};if(G.has(s))return Ve({error:await D(_,{params:r,url:t,route:{id:a.id}}),url:t,params:r,route:a});let E=Z(_),S;if(m!=null&&m.includes(_))E=_.status??E,S=_.error;else if(_ instanceof se)S=_.body;else{if(await j.updated.check())return await tt(),await B(t);S=await D(_,{params:r,url:t,route:{id:a.id}})}const N=await pn(w,v,o);return N?re({url:t,params:r,branch:v.slice(0,N.idx).concat(N.node),status:E,error:S,route:a}):await dt(t,{id:a.id},S,E)}else v.push(void 0);return re({url:t,params:r,branch:v,status:200,error:null,route:a,form:n?void 0:null})}async function pn(e,n,t){for(;e--;)if(t[e]){let r=e;for(;!n[r];)r-=1;try{return{idx:r+1,node:{node:await t[e](),loader:t[e],data:{},server:null,universal:null}}}catch{continue}}}async function ce({status:e,error:n,url:t,route:r}){const a={};let s=null;if(A.server_loads[0]===0)try{const c=await ht(t,[!0]);if(c.type!=="data"||c.nodes[0]&&c.nodes[0].type!=="data")throw 0;s=c.nodes[0]??null}catch{(t.origin!==J||t.pathname!==location.pathname||ke)&&await B(t)}try{const c=await Ie({loader:me,url:t,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Ue(s)}),i={node:await Q(),loader:Q,universal:null,server:null,data:null};return re({url:t,params:a,branch:[c,i],status:e,error:n,route:null})}catch(c){if(c instanceof be)return Re(new URL(c.location,location.href),{},0);throw c}}function Te(e,n){if(!e||oe(e,L,A.hash))return;let t;try{if(t=A.hooks.reroute({url:new URL(e)})??e,typeof t=="string"){const a=new URL(e);A.hash?a.hash=t:a.pathname=t,t=a}}catch{return}const r=ft(t);for(const a of ie){const s=a.exec(r);if(s)return{id:ae(e),invalidating:n,route:a,params:bt(s),url:e}}}function ft(e){return vt(A.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ae(e){return(A.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ut({url:e,type:n,intent:t,delta:r}){let a=!1;const s=gt(y,t,e,n);r!==void 0&&(s.navigation.delta=r);const o={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Y||rt.forEach(c=>c(o)),a?null:s}async function V({type:e,url:n,popped:t,keepfocus:r,noscroll:a,replace_state:s,state:o={},redirect_count:c=0,nav_token:i={},accept:f=Ce,block:h=Ce}){const u=Te(n,!1),g=ut({url:n,type:e,delta:t==null?void 0:t.delta,intent:u});if(!g){h();return}const p=R,d=T;f(),Y=!0,te&&j.navigating.set(K.current=g.navigation),ne=i;let l=u&&await lt(u);if(!l){if(oe(n,L,A.hash))return await B(n);l=await dt(n,{id:null},await D(new Ae(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(u==null?void 0:u.url)||n,ne!==i)return g.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(c>=20)l=await ce({status:500,error:await D(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return Re(new URL(l.location,n).href,{},c+1,i),!1;else l.props.page.status>=400&&await j.updated.check()&&(await tt(),await B(n));if(un(),Ee(p),st(d),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),o=t?t.state:o,!t){const v=s?0:1,w={[C]:R+=v,[H]:T+=v,[Je]:o};(s?history.replaceState:history.pushState).call(history,w,"",n),s||ln(R,T)}if(U=null,l.props.page.state=o,te){y=l.state,l.props.page&&(l.props.page.url=n);const v=(await Promise.all(Array.from(fn,w=>w(g.navigation)))).filter(w=>typeof w=="function");if(v.length>0){let w=function(){v.forEach(_=>{q.delete(_)})};v.push(w),v.forEach(_=>{q.add(_)})}ot.$set(l.props),sn(l.props.page),at=!0}else ct(l,we,!1);const{activeElement:m}=document;await yt();const b=t?t.scroll:a?ve():null;if(De){const v=n.hash&&document.getElementById(decodeURIComponent(A.hash?n.hash.split("#")[2]??"":n.hash.slice(1)));b?scrollTo(b.x,b.y):v?v.scrollIntoView():scrollTo(0,0)}const k=document.activeElement!==m&&document.activeElement!==document.body;!r&&!k&&_n(),De=!0,l.props.page&&Object.assign(I,l.props.page),Y=!1,e==="popstate"&&it(T),g.fulfil(void 0),q.forEach(v=>v(g.navigation)),j.navigating.set(K.current=null)}async function dt(e,n,t,r){return e.origin===J&&e.pathname===location.pathname&&!ke?await ce({status:r,error:t,url:e,route:n}):await B(e)}function gn(){let e;O.addEventListener("mousemove",s=>{const o=s.target;clearTimeout(e),e=setTimeout(()=>{r(o,2)},20)});function n(s){s.defaultPrevented||r(s.composedPath()[0],1)}O.addEventListener("mousedown",n),O.addEventListener("touchstart",n,{passive:!0});const t=new IntersectionObserver(s=>{for(const o of s)o.isIntersecting&&(pe(new URL(o.target.href)),t.unobserve(o.target))},{threshold:0});function r(s,o){const c=Ze(s,O);if(!c)return;const{url:i,external:f,download:h}=ge(c,L,A.hash);if(f||h)return;const u=X(c),g=i&&ae(y.url)===ae(i);if(!u.reload&&!g)if(o<=u.preload_data){const p=Te(i,!1);p&&dn(p)}else o<=u.preload_code&&pe(i)}function a(){t.disconnect();for(const s of O.querySelectorAll("a")){const{url:o,external:c,download:i}=ge(s,L,A.hash);if(c||i)continue;const f=X(s);f.reload||(f.preload_code===z.viewport&&t.observe(s),f.preload_code===z.eager&&pe(o))}}q.add(a),a()}function D(e,n){if(e instanceof se)return e.body;const t=Z(e),r=an(e);return A.hooks.handleError({error:e,event:n,status:t,message:r})??{message:r}}function mn(e,n={}){return e=new URL(ze(e)),e.origin!==J?Promise.reject(new Error("goto: invalid URL")):Re(e,n,0)}function wn(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Be(),!Y){const a=gt(y,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};rt.forEach(o=>o(s))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Be()}),(n=navigator.connection)!=null&&n.saveData||gn(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=Ze(t.composedPath()[0],O);if(!r)return;const{url:a,external:s,target:o,download:c}=ge(r,L,A.hash);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const i=X(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||c)return;const[h,u]=(A.hash?a.hash.replace(/^#/,""):a.href).split("#"),g=h===ue(location);if(s||i.reload&&(!g||!u)){ut({url:a,type:"link"})?Y=!0:t.preventDefault();return}if(u!==void 0&&g){const[,p]=y.url.href.split("#");if(p===u){if(t.preventDefault(),u===""||u==="top"&&r.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const d=r.ownerDocument.getElementById(decodeURIComponent(u));d&&(d.scrollIntoView(),d.focus())}return}if(F=!0,Ee(R),e(a),!i.replace_state)return;F=!1}t.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),V({type:"link",url:a,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??a.href===location.href})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const c=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(oe(c,L,!1))return;const i=t.target,f=X(i);if(f.reload)return;t.preventDefault(),t.stopPropagation();const h=new FormData(i),u=a==null?void 0:a.getAttribute("name");u&&h.append(u,(a==null?void 0:a.getAttribute("value"))??""),c.search=new URLSearchParams(h).toString(),V({type:"form",url:c,keepfocus:f.keepfocus,noscroll:f.noscroll,replace_state:f.replace_state??c.href===location.href})}),addEventListener("popstate",async t=>{var r;if((r=t.state)!=null&&r[C]){const a=t.state[C];if(ne={},a===R)return;const s=$[a],o=t.state[Je]??{},c=new URL(t.state[Dt]??location.href),i=t.state[H],f=y.url?ue(location)===ue(y.url):!1;if(i===T&&(at||f)){o!==I.state&&(I.state=o),e(c),$[R]=ve(),s&&scrollTo(s.x,s.y),R=a;return}const u=a-R;await V({type:"popstate",url:c,popped:{state:o,scroll:s,delta:u},accept:()=>{R=a,T=i},block:()=>{history.go(-u)},nav_token:ne})}else if(!F){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{F?(F=!1,history.replaceState({...history.state,[C]:++R,[H]:T},"",location.href)):A.hash&&y.url.hash===location.hash&&V({type:"goto",url:y.url})});for(const t of document.querySelectorAll("link"))cn.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&j.navigating.set(K.current=null)});function e(t){y.url=I.url=t,j.page.set(Le(I)),j.page.notify()}}async function yn(e,{status:n=200,error:t,node_ids:r,params:a,route:s,data:o,form:c}){ke=!0;const i=new URL(location.href);({params:a={},route:s={id:null}}=Te(i,!1)||{});let f,h=!0;try{const u=r.map(async(d,l)=>{const m=o[l];return m!=null&&m.uses&&(m.uses=pt(m.uses)),Ie({loader:A.nodes[d],url:i,params:a,route:s,parent:async()=>{const b={};for(let k=0;k<l;k+=1)Object.assign(b,(await u[k]).data);return b},server_data_node:Ue(m)})}),g=await Promise.all(u),p=ie.find(({id:d})=>d===s.id);if(p){const d=p.layouts;for(let l=0;l<d.length;l++)d[l]||g.splice(l,0,void 0)}f=re({url:i,params:a,branch:g,status:n,error:t,form:c,route:p??null})}catch(u){if(u instanceof be){await B(new URL(u.location,location.href));return}f=await ce({status:Z(u),error:await D(u,{url:i,params:a,route:s}),url:i,route:s}),e.textContent="",h=!1}f.props.page&&(f.props.page.state={}),ct(f,e,h)}async function ht(e,n){var a;const t=new URL(e);t.pathname=St(e.pathname),e.pathname.endsWith("/")&&t.searchParams.append(rn,"1"),t.searchParams.append(nn,n.map(s=>s?"1":"0").join(""));const r=await He(t.href);if(!r.ok){let s;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?s=await r.json():r.status===404?s="Not Found":r.status===500&&(s="Internal Error"),new se(r.status,s)}return new Promise(async s=>{var u;const o=new Map,c=r.body.getReader(),i=new TextDecoder;function f(g){return Qt(g,{...A.decoders,Promise:p=>new Promise((d,l)=>{o.set(p,{fulfil:d,reject:l})})})}let h="";for(;;){const{done:g,value:p}=await c.read();if(g&&!h)break;for(h+=!p&&h?`
|
|
2
|
+
`:i.decode(p,{stream:!0});;){const d=h.indexOf(`
|
|
3
|
+
`);if(d===-1)break;const l=JSON.parse(h.slice(0,d));if(h=h.slice(d+1),l.type==="redirect")return s(l);if(l.type==="data")(u=l.nodes)==null||u.forEach(m=>{(m==null?void 0:m.type)==="data"&&(m.uses=pt(m.uses),m.data=f(m.data))}),s(l);else if(l.type==="chunk"){const{id:m,data:b,error:k}=l,v=o.get(m);o.delete(m),k?v.reject(f(k)):v.fulfil(f(b))}}}})}function pt(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function _n(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const n=document.body,t=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),t!==null?n.setAttribute("tabindex",t):n.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const o=a[s],c=r.getRangeAt(s);if(o.commonAncestorContainer!==c.commonAncestorContainer||o.startContainer!==c.startContainer||o.endContainer!==c.endContainer||o.startOffset!==c.startOffset||o.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function gt(e,n,t,r){var i,f;let a,s;const o=new Promise((h,u)=>{a=h,s=u});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((i=e.route)==null?void 0:i.id)??null},url:e.url},to:t&&{params:(n==null?void 0:n.params)??null,route:{id:((f=n==null?void 0:n.route)==null?void 0:f.id)??null},url:t},willUnload:!n,type:r,complete:o},fulfil:a,reject:s}}function Le(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}export{Rn as a,j as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{w as r,d}from"./index.m3oCcA6N.js";const n={en:{nav:{home:"Home",overview:"Overview",tokens:"Tokens",cost:"Cost",models:"Models",toolCalls:"Tool Calls",projects:"Projects",sessions:"Sessions",quotas:"Quotas",leaderboard:"Leaderboard",pricing:"Pricing",support:"Support",settings:"Settings",docs:"Docs",collapse:"Collapse",expand:"Expand",group:{overview:"Overview",analytics:"Analytics",activity:"Activity",system:"System"}},common:{loading:"Loading...",error:"Error",noData:"No data available",noDataHint:"Start using AI tools to see statistics here.",apply:"Apply",all:"All",previous:"Previous",next:"Next",page:"Page",of:"of"},range:{today:"Today",week:"This Week",month:"This Month",last30:"Last 30d",allTime:"All Time",from:"From",to:"To",pickMonth:"Month..."},overview:{title:"Overview",desc:"Aggregated token, cost and session stats across all AI tools.",totalTokens:"Total Tokens",totalCost:"Total Cost",activeDays:"Active Days",totalSessions:"Sessions",inputTokens:"Input",outputTokens:"Output",cacheRead:"Cache Read",cacheWrite:"Cache Write",byTool:"By AI Assistant",byProject:"By Project",topToolCalls:"Top Tool Calls",tool:"Tool",tokens:"Tokens",cost:"Cost",noToolData:"No data",noToolCalls:"No tool calls recorded",topMcpServers:"MCP Servers",noMcpCalls:"No MCP calls recorded",tabAll:"All",tabMcp:"MCP Servers"},tokens:{title:"Tokens",desc:"Daily token usage breakdown by type.",chartTitle:"Token Usage by Day",input:"Input",output:"Output",cacheRead:"Cache Read",cacheWrite:"Cache Write",thinking:"Thinking",date:"Date",total:"Total",modeBreakdown:"Breakdown",modeTotal:"Total",noData:"No token data",noDataHint:"No token usage recorded for this period."},projects:{title:"Projects",desc:"Token usage and cost ranked by project directory.",project:"Project",sessions:"Sessions",tokens:"Tokens",cost:"Cost",share:"Share",noData:"No project data",noDataHint:"No project usage recorded for this period."},cost:{title:"Cost",desc:"Daily spending trends and cost breakdown by tool and model.",totalCost:"Total Cost",chartTitle:"Cost by Day",byTool:"By AI Assistant",byModel:"By Model",noData:"No cost data",noDataHint:"No costs recorded for this period."},models:{title:"Models",desc:"Usage ranking across all AI models.",chartTitle:"Model Ranking",modeTokens:"Tokens",modeCost:"Cost",model:"Model",provider:"Provider",calls:"Calls",tokens:"Tokens",input:"Input",output:"Output",cacheRead:"Cache Read",cacheWrite:"Cache Write",thinking:"Thinking",total:"Total",cost:"Cost",share:"Share",noData:"No model data",noDataHint:"No model usage recorded for this period."},toolCalls:{title:"Tool Calls",desc:"Most frequently invoked tools by AI assistants.",noData:"No tool call data",noDataHint:"No tool calls recorded for this period.",typeAll:"All",typeBuiltin:"Built-in",typeMcp:"MCP",typeSkill:"Skill",badgeMcp:"mcp",badgeSkill:"skill",noToolCallData:"Tool call data is not available in this tool's data source."},sessions:{title:"Sessions",desc:"Per-session log with token and cost details.",assistant:"AI Assistant",time:"Time",tool:"Tool",model:"Model",input:"Input",output:"Output",cost:"Cost",duration:"Duration",toolCalls:"Tools",noData:"No sessions",noDataHint:"No sessions recorded for this period.",detail:{back:"← Sessions",title:"Session Detail",meta:{duration:"Duration",tokens:"Tokens",cost:"Cost",apiCalls:"API Calls",toolCalls:"Tool Calls",model:"Model",path:"Path",input:"Input",output:"Output",cacheRead:"Cache Read",cacheWrite:"Cache Write",thinking:"Thinking",totalTokens:"Total",sessionId:"Session"},gap:"gap",noToolCalls:"No tool calls",record:"API Call",toolCall:"Tool"}},theme:{system:"System",dark:"Dark",light:"Light"},pricing:{title:"Pricing",model:"Model",input:"Input",output:"Output",cacheRead:"Cache Read",cacheWrite:"Cache Write",thinking:"Thinking",status:"Status",actions:"Actions",edit:"Edit",save:"Save",cancel:"Cancel",reset:"Reset",recalc:"Recalculate Costs",recalcDone:"Recalculated",costsUpdating:"Updating costs...",costsUpdated:"Costs updated",default:"Default",override:"Custom",matched:"Matched by prefix",noPrice:"No pricing",perMillion:"/ 1M tokens"},sync:{trigger:"Sync",syncing:"Syncing...",started:"Sync started",inProgress:"Sync already running",complete:"Synced",failed:"Sync failed",notConfigured:"Not configured",lastSync:"Last sync",never:"Never",phase:{pulling:"Pulling",merging:"Merging",uploading:"Uploading",finalizing:"Finalizing"}},device:{allDevices:"All Devices",loading:"Loading..."},tool:{allTools:"All tools"},settings:{title:"Settings",save:"Save",saved:"Saved",general:"General",detectedTools:"Detected Tools",detectedToolsHint:"Auto-detected AI tools on this system. Override paths via AIUSAGE_*_PATH environment variables.",toolFound:"Found",toolNotFound:"Not found",toolEmpty:"Empty",toolFiles:"files",sync:"Multi-device Sync",syncBackendCloudDesc:"Encrypted, fast, automatic. Sync usage data across all your devices with zero configuration.",syncCloudSetup:"Setup required",syncCloudStep1:"Bind your GitHub account",syncCloudStep2:"Star the repository",syncCloudReady:"Cloud Sync is ready",syncStarRequired:"Star the repository to activate Cloud Sync.",syncGithubBindingRequired:"Bind your GitHub account first.",syncBackendGithubDesc:"Keep usage data in sync across your devices via a private GitHub repository. Requires a personal access token.",syncBackendS3Desc:"Keep usage data in sync across your devices via S3-compatible storage (AWS S3, MinIO, R2, etc.).",syncBackendNoneDesc:"Select a backend to enable multi-device sync.",device:"Device Alias",deviceHint:"Optional alias; hostname is used if blank",weekStart:"Week Starts On",weekStartSunday:"Sunday",weekStartMonday:"Monday (ISO)",refreshInterval:"Refresh Interval (ms)",retentionDays:"Local Data Retention (days)",retentionHint:"Days to keep local data (0 or empty = keep forever)",retentionPlaceholder:"Forever",syncBackend:"Backend",syncBackendNone:"Disabled",cloudLoggedIn:"Device authorized. Ready to sync.",cloudNotLoggedIn:'Not logged in. Run "aiusage login" in the terminal first.',syncRepo:"Repository (owner/repo)",syncBucket:"Bucket",syncPrefix:"S3 Object Prefix",syncEndpoint:"Endpoint",syncRegion:"Region",syncCredentialRef:"Credential Key Name",syncCredentialValue:"Credential Value",syncStatus:"Status",syncLastSync:"Last Sync",syncNextSync:"Next Sync",syncStatusLabel:"Status",syncPulled:"Pulled records",syncUploaded:"Uploaded records",syncCountHint:"Shows usage records processed in the latest sync.",syncError:"Error",syncDuration:"Duration",syncNow:"Sync Now",syncNever:"Never",syncUnsavedHint:"Please save your sync settings before syncing.",autoSync:"Auto sync",syncFrequency:"Every",syncMinutes:"min",syncHour:"hour",syncHours:"hours",credentialSet:"Set — leave empty to keep",credentialNotSet:"Not set",credentialStoredAs:"Stored as",syncRepoRequired:"Repository is required for GitHub sync.",syncRepoInvalid:"Repository must use the owner/repo format.",syncGithubTokenRequired:"GitHub token is required for GitHub sync.",syncBucketRequired:"Bucket is required for S3 sync.",syncS3AccessKeyRequired:"Access Key ID is required for S3 sync.",syncS3SecretKeyRequired:"Secret Access Key is required for S3 sync.",showCredential:"Show",hideCredential:"Hide",currency:"Currency",displayCurrency:"Display Currency",exchangeRate:"Exchange Rate",exchangeRateHint:"Leave empty to use auto-fetched rate",refreshRate:"Refresh",rateLastUpdated:"Last updated"},home:{counterLabel:"AI Tokens Consumed",cfgTitle:"Display Config",timeRange:"Time Range",numFormat:"Number Format",numExact:"Exact",numExactEx:"1,234,567",numShort:"Short",numShortEx:"1.234M",nextRefresh:"next refresh in",seconds:"s",refreshing:"refreshing…",manualMode:"manual mode",refreshNow:"↺ now",refreshBtn:"↺ refresh",refreshInfo:"Refresh interval set in",input:"Input",output:"Output",cache:"Cache",quotaWarning:"Quota Warning",quotaWarningDesc:"quota used",quotaWarningLink:"View Quotas"},quotas:{title:"Quotas",desc:"Official subscription quota usage for each AI tool.",refresh:"Refresh",refreshing:"Refreshing...",lastUpdated:"Updated",never:"Never",noCredentials:"No credentials found",noCredentialsHint:"Log in with the AI tool's CLI to enable quota tracking.",expired:"Credentials expired",expiredHint:"Re-login with the CLI to refresh your credentials.",queryFailed:"Query failed",noTiers:"No quota data available",fiveHour:"5h Window",sevenDay:"7d Window",sevenDayOpus:"7d Opus",sevenDaySonnet:"7d Sonnet",sevenDayOmelette:"7d Design",weeklyLimit:"Weekly",resetsIn:"resets in {time}",toolLabels:{"claude-code":"Claude Code",codex:"Codex (OpenAI)"}},leaderboard:{title:"Leaderboard",desc:"Manage leaderboard sign-in and uploads. Public rankings live on the site.",publicView:"Public view",privacyTitle:"Uploaded data",account:"Account",device:"Device",authorizedDevice:"Authorized device",authorizedAt:"Authorized",uploadStatus:"Upload status",noUploads:"No uploads yet",noUploadTime:"No upload time yet",nextUpload:"Next upload",afterFirstUpload:"After the first upload",autoUploadOff:"Off",enableAutoUploadHint:"Enable auto upload to schedule it",openLeaderboard:"Open public leaderboard",period:"Period",showing:"Showing",periodStart:"Period start",user:"User",updated:"Updated",loadMore:"Load more",loadingMore:"Loading...",noEntries:"No public entries yet.",openSite:"Open Leaderboard",authTitle:"Upload account",loggedIn:"CLI and web are signed in",notLoggedIn:"Not authorized",webLoginHint:"Authorize in the browser. The local CLI will use the same credentials.",loginInWeb:"Sign in on this device",authorizing:"Authorizing...",uploadInWeb:"Upload data",uploading:"Uploading...",autoUpload:"Auto upload",autoUploadHint:"The local server periodically parses and uploads aggregate totals.",autoUploadRequiresLogin:"Sign in on this device before enabling auto upload.",uploadEvery:"Frequency",autoUploadIntervals:{daily:"Daily",weekly:"Weekly",monthly:"Monthly"},uploadLimits:"Limits",uploadLimitsSummary:"At most one scheduled upload per interval. Each run submits aggregate totals only.",uploadResult:"Upload result",uploadResultHint:"Accepted / flagged / rejected",uploadSuccess:"Upload successful",logout:"Log out locally",verifyCode:"Verification code",openVerify:"Open authorization page",lastUpload:"Latest upload",privacy:"Uploads include aggregate token totals only. Prompts, completions, source code, file paths, model breakdowns, project data, and local cost estimates stay out of the leaderboard payload.",periods:{daily:"Daily",weekly:"Weekly",monthly:"Monthly",yearly:"Yearly",all_time:"All time"}},auth:{locked:"Dashboard locked",lockedHint:"Enter the dashboard password to view this page.",unlock:"Unlock",unlocking:"Unlocking...",unlockDashboard:"Unlock dashboard",unlockHint:"Enter the dashboard password to show navigation and protected pages.",password:"Password",backHome:"Back to public home",checking:"Checking access...",loginFailed:"Login failed"},support:{title:"Service & Support",desc:"Stable contact channels for product questions, support, and community discussion.",personal:"Direct contact",community:"Community",wechat:"WeChat",wechatHint:"Scan the QR code and include your request in the note. Use it for product questions, feedback, or community group access.",qrExpand:"Click to enlarge QR code",qrScanHint:"Scan with WeChat to add",email:"Email",discord:"Discord",discordHint:"Join the community for discussion and support.",telegram:"Telegram",telegramHint:"Updates and community discussion.",open:"Open"}},zh:{nav:{home:"首页",overview:"概览",tokens:"Token",cost:"费用",models:"模型",toolCalls:"工具调用",projects:"项目",sessions:"会话",quotas:"配额",leaderboard:"排行榜",pricing:"定价",support:"服务与支持",settings:"设置",docs:"文档",collapse:"收起",expand:"展开",group:{overview:"概览",analytics:"统计",activity:"活动",system:"系统"}},common:{loading:"加载中...",error:"错误",noData:"暂无数据",noDataHint:"开始使用 AI 工具后,统计数据将显示在此处。",apply:"应用",all:"全部",previous:"上一页",next:"下一页",page:"第",of:"页,共"},range:{today:"今天",week:"本周",month:"本月",last30:"近 30 天",allTime:"全部",from:"开始",to:"结束",pickMonth:"选择月份..."},overview:{title:"概览",desc:"所有 AI 工具的 Token、费用和会话聚合统计。",totalTokens:"总 Token",totalCost:"总费用",activeDays:"活跃天数",totalSessions:"会话数",inputTokens:"输入",outputTokens:"输出",cacheRead:"缓存读取",cacheWrite:"缓存写入",byTool:"按 AI 助手",byProject:"按项目",topToolCalls:"常用工具",tool:"工具",tokens:"Token",cost:"费用",noToolData:"暂无数据",noToolCalls:"暂无工具调用记录",topMcpServers:"MCP 服务器",noMcpCalls:"暂无 MCP 调用记录",tabAll:"全部",tabMcp:"MCP 服务器"},tokens:{title:"Token",desc:"按类型分类的每日 Token 用量趋势。",chartTitle:"每日 Token 用量",input:"输入",output:"输出",cacheRead:"缓存读取",cacheWrite:"缓存写入",thinking:"思考",date:"日期",total:"合计",modeBreakdown:"分类",modeTotal:"总量",noData:"暂无 Token 数据",noDataHint:"当前时间段内无 Token 使用记录。"},projects:{title:"项目",desc:"按项目目录排列的 Token 用量和费用排名。",project:"项目",sessions:"会话",tokens:"Token",cost:"费用",share:"占比",noData:"暂无项目数据",noDataHint:"当前时间段内无项目使用记录。"},cost:{title:"费用",desc:"每日费用趋势及按工具、模型的费用分布。",totalCost:"总费用",chartTitle:"每日费用",byTool:"按 AI 助手",byModel:"按模型",noData:"暂无费用数据",noDataHint:"当前时间段内无费用记录。"},models:{title:"模型",desc:"各 AI 模型的用量排名。",chartTitle:"模型排名",modeTokens:"Token",modeCost:"费用",model:"模型",provider:"提供商",calls:"调用次数",tokens:"Token",input:"输入",output:"输出",cacheRead:"缓存读取",cacheWrite:"缓存写入",thinking:"思考",total:"合计",cost:"费用",share:"占比",noData:"暂无模型数据",noDataHint:"当前时间段内无模型使用记录。"},toolCalls:{title:"工具调用",desc:"AI 助手最常调用的工具排名。",noData:"暂无工具调用数据",noDataHint:"当前时间段内无工具调用记录。",typeAll:"全部",typeBuiltin:"内置",typeMcp:"MCP",typeSkill:"Skill",badgeMcp:"mcp",badgeSkill:"skill",noToolCallData:"该工具的数据源中不包含工具调用记录。"},sessions:{title:"会话",desc:"每条会话的 Token 用量和费用详细记录。",assistant:"AI 助手",time:"时间",tool:"工具",model:"模型",input:"输入",output:"输出",cost:"费用",duration:"时长",toolCalls:"工具调用",noData:"暂无会话",noDataHint:"当前时间段内无会话记录。",detail:{back:"← 会话列表",title:"会话详情",meta:{duration:"时长",tokens:"Token",cost:"费用",apiCalls:"API 调用",toolCalls:"工具调用",model:"模型",path:"路径",input:"输入",output:"输出",cacheRead:"缓存读取",cacheWrite:"缓存写入",thinking:"思考",totalTokens:"合计",sessionId:"会话"},gap:"间隔",noToolCalls:"无工具调用",record:"API 调用",toolCall:"工具"}},theme:{system:"跟随系统",dark:"深色",light:"浅色"},pricing:{title:"定价管理",model:"模型",input:"输入",output:"输出",cacheRead:"缓存读取",cacheWrite:"缓存写入",thinking:"思考",status:"状态",actions:"操作",edit:"编辑",save:"保存",cancel:"取消",reset:"重置",recalc:"重新计算费用",recalcDone:"已重新计算",costsUpdating:"费用更新中...",costsUpdated:"费用已自动更新",default:"默认",override:"自定义",matched:"前缀匹配",noPrice:"无定价",perMillion:"/ 1M tokens"},sync:{trigger:"同步",syncing:"同步中...",started:"已开始同步",inProgress:"同步已在进行中",complete:"已同步",failed:"同步失败",notConfigured:"未配置",lastSync:"上次同步",never:"从未",phase:{pulling:"拉取中",merging:"合并中",uploading:"上传中",finalizing:"完成中"}},device:{allDevices:"全部设备",loading:"加载中..."},tool:{allTools:"全部工具"},settings:{title:"设置",save:"保存",saved:"已保存",general:"通用",detectedTools:"已检测工具",detectedToolsHint:"系统上自动检测到的 AI 工具。可通过 AIUSAGE_*_PATH 环境变量覆盖路径。",toolFound:"已检测",toolNotFound:"未检测到",toolEmpty:"空",toolFiles:"个文件",sync:"多设备同步",syncBackendCloudDesc:"加密传输、极速同步、自动化。零配置跨设备同步用量数据。",syncCloudSetup:"需要完成以下设置",syncCloudStep1:"绑定 GitHub 账号",syncCloudStep2:"Star 仓库",syncCloudReady:"Cloud Sync 已就绪",syncStarRequired:"请先 Star 仓库以激活 Cloud Sync。",syncGithubBindingRequired:"请先绑定 GitHub 账号。",syncBackendGithubDesc:"通过私有 GitHub 仓库在多台设备之间同步用量数据。需要个人访问令牌。",syncBackendS3Desc:"通过 S3 兼容存储(AWS S3、MinIO、R2 等)在多台设备之间同步用量数据。",syncBackendNoneDesc:"选择同步后端以启用多设备同步。",device:"设备别名",deviceHint:"可选别名;留空则使用主机名",weekStart:"每周起始日",weekStartSunday:"周日",weekStartMonday:"周一(ISO)",refreshInterval:"刷新间隔(ms)",retentionDays:"本地数据保留天数",retentionHint:"0 或留空表示永久保留本地数据",retentionPlaceholder:"永久",syncBackend:"后端类型",syncBackendNone:"已禁用",cloudLoggedIn:"设备已授权,可以同步。",cloudNotLoggedIn:'未登录。请先在终端运行 "aiusage login"。',syncRepo:"仓库(owner/repo)",syncBucket:"存储桶",syncPrefix:"S3 对象前缀",syncEndpoint:"Endpoint",syncRegion:"Region",syncCredentialRef:"凭据引用名",syncCredentialValue:"凭据值",syncStatus:"状态",syncLastSync:"上次同步",syncNextSync:"下次同步",syncStatusLabel:"状态",syncPulled:"拉取记录",syncUploaded:"上传记录",syncCountHint:"显示最近一次同步处理的用量记录数。",syncError:"错误",syncDuration:"耗时",syncNow:"立即同步",syncNever:"从未",syncUnsavedHint:"请先保存同步配置,再点击立即同步。",autoSync:"自动同步",syncFrequency:"每隔",syncMinutes:"分钟",syncHour:"小时",syncHours:"小时",credentialSet:"已设置,留空则不修改",credentialNotSet:"未设置",credentialStoredAs:"存储为",syncRepoRequired:"GitHub 同步需要填写仓库。",syncRepoInvalid:"仓库必须使用 owner/repo 格式。",syncGithubTokenRequired:"GitHub 同步需要填写 GitHub Token。",syncBucketRequired:"S3 同步需要填写存储桶。",syncS3AccessKeyRequired:"S3 同步需要填写 Access Key ID。",syncS3SecretKeyRequired:"S3 同步需要填写 Secret Access Key。",showCredential:"显示",hideCredential:"隐藏",currency:"货币",displayCurrency:"显示货币",exchangeRate:"汇率",exchangeRateHint:"留空使用自动获取的汇率",refreshRate:"刷新",rateLastUpdated:"上次更新"},home:{counterLabel:"AI Token 消耗",cfgTitle:"显示配置",timeRange:"时间范围",numFormat:"数字格式",numExact:"精确",numExactEx:"1,234,567",numShort:"简短",numShortEx:"1.234M",nextRefresh:"下次刷新",seconds:"s",refreshing:"刷新中…",manualMode:"手动模式",refreshNow:"↺ 立即",refreshBtn:"↺ 刷新",refreshInfo:"刷新间隔在",input:"输入",output:"输出",cache:"缓存",quotaWarning:"配额警告",quotaWarningDesc:"配额已使用",quotaWarningLink:"查看配额"},quotas:{title:"配额",desc:"各 AI 工具的官方订阅配额使用情况。",refresh:"刷新",refreshing:"刷新中...",lastUpdated:"更新于",never:"从未",noCredentials:"未找到凭据",noCredentialsHint:"请先用 AI 工具的 CLI 登录,以启用配额追踪。",expired:"凭据已过期",expiredHint:"请重新使用 CLI 登录以刷新凭据。",queryFailed:"查询失败",noTiers:"暂无配额数据",fiveHour:"5 小时窗口",sevenDay:"7 天窗口",sevenDayOpus:"7 天 Opus",sevenDaySonnet:"7 天 Sonnet",sevenDayOmelette:"7 天 Design",weeklyLimit:"每周限额",resetsIn:"{time} 后重置",toolLabels:{"claude-code":"Claude Code",codex:"Codex(OpenAI)"}},leaderboard:{title:"排行榜",desc:"管理排行榜登录与上传。公开排名在官网查看。",publicView:"公开浏览",privacyTitle:"上传内容",account:"账号",device:"设备",authorizedDevice:"已授权设备",authorizedAt:"授权时间",uploadStatus:"上传状态",noUploads:"暂无上传记录",noUploadTime:"暂无上传时间",nextUpload:"下次上传",afterFirstUpload:"首次上传后计算",autoUploadOff:"未开启",enableAutoUploadHint:"开启自动上传后会按频率执行",openLeaderboard:"打开公开排行榜",period:"周期",showing:"已显示",periodStart:"周期开始",user:"用户",updated:"更新",loadMore:"加载更多",loadingMore:"加载中...",noEntries:"暂无公开数据。",openSite:"打开排行榜",authTitle:"上传账号",loggedIn:"CLI 与界面已登录",notLoggedIn:"未授权",webLoginHint:"可直接在浏览器授权,本地 CLI 会使用同一份凭证。",loginInWeb:"在本机登录",authorizing:"授权中...",uploadInWeb:"上传数据",uploading:"上传中...",autoUpload:"自动上传",autoUploadHint:"本地服务会定时解析并上传聚合总量。",autoUploadRequiresLogin:"请先在本机登录后再开启自动上传。",uploadEvery:"频率",autoUploadIntervals:{daily:"每天",weekly:"每周",monthly:"每月"},uploadLimits:"上传限制",uploadLimitsSummary:"每个频率周期最多自动上传一次。每次只提交聚合总量。",uploadResult:"上传结果",uploadResultHint:"已接受 / 待审核 / 已拒绝",uploadSuccess:"上传成功",logout:"退出本机登录",verifyCode:"验证码",openVerify:"打开授权页面",lastUpload:"最近上传",privacy:"上传内容仅包含聚合 Token 总量。prompt、completion、源码、文件路径、模型分布、项目数据和本地费用估算不会进入排行榜 payload。",periods:{daily:"今日",weekly:"本周",monthly:"本月",yearly:"今年",all_time:"累计"}},auth:{locked:"仪表盘已锁定",lockedHint:"请输入仪表盘密码以查看此页面。",unlock:"解锁",unlocking:"解锁中...",unlockDashboard:"解锁仪表盘",unlockHint:"请输入仪表盘密码以显示导航和受保护的页面。",password:"密码",backHome:"返回公开首页",checking:"正在检查访问权限...",loginFailed:"登录失败"},support:{title:"服务与支持",desc:"产品问题、使用支持和社区交流的稳定联系方式。",personal:"直接联系",community:"社区",wechat:"微信",wechatHint:"扫码添加时请备注来意,可咨询使用问题、反馈建议或加入交流群。",qrExpand:"点击放大二维码",qrScanHint:"使用微信扫码添加",email:"邮件",discord:"Discord",discordHint:"加入社区,交流使用心得、获取帮助。",telegram:"Telegram",telegramHint:"获取更新通知,参与讨论。",open:"打开"}}};function c(){return typeof window>"u"?"en":localStorage.getItem("aiusage-lang")||"en"}const s=r(c());function p(){s.update(o=>{const t=o==="en"?"zh":"en";return typeof window<"u"&&localStorage.setItem("aiusage-lang",t),t})}const y=d(s,o=>{const t=n[o]||n.en;return a=>{const i=a.split(".");let e=t;for(const l of i)e=e==null?void 0:e[l];return e||a}});export{p as a,s as l,y as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var C=Object.defineProperty;var D=(e,t,n)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $=(e,t,n)=>D(e,typeof t!="symbol"?t+"":t,n);import{r as h,n as y,i as E,j as T,k as j,l as w,m as B,p as N,q as H,d as b,u as I,v as L,w as q}from"./scheduler.DsWd5xup.js";let p=!1;function P(){p=!0}function M(){p=!1}function O(e,t,n,i){for(;e<t;){const r=e+(t-e>>1);n(r)<=i?e=r+1:t=r}return e}function R(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if(e.nodeName==="HEAD"){const s=[];for(let l=0;l<t.length;l++){const o=t[l];o.claim_order!==void 0&&s.push(o)}t=s}const n=new Int32Array(t.length+1),i=new Int32Array(t.length);n[0]=-1;let r=0;for(let s=0;s<t.length;s++){const l=t[s].claim_order,o=(r>0&&t[n[r]].claim_order<=l?r+1:O(1,r,d=>t[n[d]].claim_order,l))-1;i[s]=n[o]+1;const f=o+1;n[f]=s,r=Math.max(f,r)}const u=[],a=[];let c=t.length-1;for(let s=n[r]+1;s!=0;s=i[s-1]){for(u.push(t[s-1]);c>=s;c--)a.push(t[c]);c--}for(;c>=0;c--)a.push(t[c]);u.reverse(),a.sort((s,l)=>s.claim_order-l.claim_order);for(let s=0,l=0;s<a.length;s++){for(;l<u.length&&a[s].claim_order>=u[l].claim_order;)l++;const o=l<u.length?u[l]:null;e.insertBefore(a[s],o)}}function z(e,t){if(p){for(R(e),(e.actual_end_child===void 0||e.actual_end_child!==null&&e.actual_end_child.parentNode!==e)&&(e.actual_end_child=e.firstChild);e.actual_end_child!==null&&e.actual_end_child.claim_order===void 0;)e.actual_end_child=e.actual_end_child.nextSibling;t!==e.actual_end_child?(t.claim_order!==void 0||t.parentNode!==e)&&e.insertBefore(t,e.actual_end_child):e.actual_end_child=t.nextSibling}else(t.parentNode!==e||t.nextSibling!==null)&&e.appendChild(t)}function ne(e,t,n){p&&!n?z(e,t):(t.parentNode!==e||t.nextSibling!=n)&&e.insertBefore(t,n||null)}function F(e){e.parentNode&&e.parentNode.removeChild(e)}function ie(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function G(e){return document.createElement(e)}function J(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function x(e){return document.createTextNode(e)}function re(){return x(" ")}function se(){return x("")}function le(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function ae(e){return function(t){return t.preventDefault(),e.call(this,t)}}function K(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function ue(e,t){for(const n in t)K(e,n,t[n])}function ce(e){return e.dataset.svelteH}function fe(e){return e===""?null:+e}function U(e){return Array.from(e.childNodes)}function V(e){e.claim_info===void 0&&(e.claim_info={last_index:0,total_claimed:0})}function A(e,t,n,i,r=!1){V(e);const u=(()=>{for(let a=e.claim_info.last_index;a<e.length;a++){const c=e[a];if(t(c)){const s=n(c);return s===void 0?e.splice(a,1):e[a]=s,r||(e.claim_info.last_index=a),c}}for(let a=e.claim_info.last_index-1;a>=0;a--){const c=e[a];if(t(c)){const s=n(c);return s===void 0?e.splice(a,1):e[a]=s,r?s===void 0&&e.claim_info.last_index--:e.claim_info.last_index=a,c}}return i()})();return u.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,u}function S(e,t,n,i){return A(e,r=>r.nodeName===t,r=>{const u=[];for(let a=0;a<r.attributes.length;a++){const c=r.attributes[a];n[c.name]||u.push(c.name)}u.forEach(a=>r.removeAttribute(a))},()=>i(t))}function oe(e,t,n){return S(e,t,n,G)}function _e(e,t,n){return S(e,t,n,J)}function W(e,t){return A(e,n=>n.nodeType===3,n=>{const i=""+t;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>x(t),!0)}function de(e){return W(e," ")}function me(e,t){t=""+t,e.data!==t&&(e.data=t)}function he(e,t){e.value=t??""}function pe(e,t,n,i){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,"")}function $e(e,t,n){for(let i=0;i<e.options.length;i+=1){const r=e.options[i];if(r.__value===t){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function ye(e){const t=e.querySelector(":checked");return t&&t.__value}function xe(e,t,n){e.classList.toggle(t,!!n)}function ge(e,t){const n=[];let i=0;for(const r of t.childNodes)if(r.nodeType===8){const u=r.textContent.trim();u===`HEAD_${e}_END`?(i-=1,n.push(r)):u===`HEAD_${e}_START`&&(i+=1,n.push(r))}else i>0&&n.push(r);return n}function ve(e,t){return new e(t)}const m=new Set;let _;function we(){_={r:0,c:[],p:_}}function Ne(){_.r||h(_.c),_=_.p}function k(e,t){e&&e.i&&(m.delete(e),e.i(t))}function be(e,t,n,i){if(e&&e.o){if(m.has(e))return;m.add(e),_.c.push(()=>{m.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Ee(e){e&&e.c()}function Ae(e,t){e&&e.l(t)}function Q(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),b(()=>{const u=e.$$.on_mount.map(I).filter(E);e.$$.on_destroy?e.$$.on_destroy.push(...u):h(u),e.$$.on_mount=[]}),r.forEach(b)}function X(e,t){const n=e.$$;n.fragment!==null&&(H(n.after_update),h(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Y(e,t){e.$$.dirty[0]===-1&&(L.push(e),q(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Se(e,t,n,i,r,u,a=null,c=[-1]){const s=j;N(e);const l=e.$$={fragment:null,ctx:[],props:u,update:y,not_equal:r,bound:w(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(s?s.$$.context:[])),callbacks:w(),dirty:c,skip_bound:!1,root:t.target||s.$$.root};a&&a(l.root);let o=!1;if(l.ctx=n?n(e,t.props||{},(f,d,...g)=>{const v=g.length?g[0]:d;return l.ctx&&r(l.ctx[f],l.ctx[f]=v)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](v),o&&Y(e,f)),d}):[],l.update(),o=!0,h(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){P();const f=U(t.target);l.fragment&&l.fragment.l(f),f.forEach(F)}else l.fragment&&l.fragment.c();t.intro&&k(e.$$.fragment),Q(e,t.target,t.anchor),M(),B()}N(s)}class Ce{constructor(){$(this,"$$");$(this,"$$set")}$destroy(){X(this,1),this.$destroy=y}$on(t,n){if(!E(n))return y;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!T(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Z="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Z);export{he as A,ye as B,ce as C,fe as D,we as E,Ne as F,ve as G,ue as H,_e as I,J,ae as K,Ce as S,ne as a,z as b,oe as c,F as d,U as e,W as f,de as g,G as h,Se as i,re as j,X as k,be as l,k as m,Q as n,K as o,ge as p,Ae as q,se as r,me as s,x as t,Ee as u,ie as v,le as w,pe as x,$e as y,xe as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as f,s as w,a as m,r as q,i as x}from"./scheduler.
|
|
1
|
+
import{n as f,s as w,a as m,r as q,i as x}from"./scheduler.DsWd5xup.js";const a=[];function z(e,o){return{subscribe:A(e,o).subscribe}}function A(e,o=f){let r;const n=new Set;function u(t){if(w(e,t)&&(e=t,r)){const i=!a.length;for(const s of n)s[1](),a.push(s,e);if(i){for(let s=0;s<a.length;s+=2)a[s][0](a[s+1]);a.length=0}}}function l(t){u(t(e))}function b(t,i=f){const s=[t,i];return n.add(s),n.size===1&&(r=o(u,l)||f),t(e),()=>{n.delete(s),n.size===0&&r&&(r(),r=null)}}return{set:u,update:l,subscribe:b}}function E(e,o,r){const n=!Array.isArray(e),u=n?[e]:e;if(!u.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=o.length<2;return z(r,(b,t)=>{let i=!1;const s=[];let d=0,p=f;const h=()=>{if(d)return;p();const c=o(n?s[0]:s,b,t);l?b(c):p=x(c)?c:f},y=u.map((c,g)=>m(c,_=>{s[g]=_,d&=~(1<<g),i&&h()},()=>{d|=1<<g}));return i=!0,h(),function(){q(y),p(),i=!1}})}export{E as d,A as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function k(){}const D=t=>t;function w(t,n){for(const e in n)t[e]=n[e];return t}function E(t){return t()}function S(){return Object.create(null)}function v(t){t.forEach(E)}function A(t){return typeof t=="function"}function B(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let a;function C(t,n){return t===n?!0:(a||(a=document.createElement("a")),a.href=n,t===a.href)}function F(t){return Object.keys(t).length===0}function b(t,...n){if(t==null){for(const o of n)o(void 0);return k}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function M(t){let n;return b(t,e=>n=e)(),n}function P(t,n,e){t.$$.on_destroy.push(b(n,e))}function U(t,n,e,o){if(t){const u=g(t,n,e,o);return t[0](u)}}function g(t,n,e,o){return t[1]&&o?w(e.ctx.slice(),t[1](o(n))):e.ctx}function G(t,n,e,o){return t[2],n.dirty}function H(t,n,e,o,u,y){if(u){const x=g(n,e,o,y);t.p(x,u)}}function I(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let o=0;o<e;o++)n[o]=-1;return n}return-1}function J(t){const n={};for(const e in t)e[0]!=="$"&&(n[e]=t[e]);return n}function K(t,n){const e={};n=new Set(n);for(const o in t)!n.has(o)&&o[0]!=="$"&&(e[o]=t[o]);return e}let i;function l(t){i=t}function h(){if(!i)throw new Error("Function called outside component initialization");return i}function L(t){h().$$.on_mount.push(t)}function N(t){h().$$.after_update.push(t)}function Q(t){h().$$.on_destroy.push(t)}const s=[],d=[];let c=[];const p=[],m=Promise.resolve();let _=!1;function j(){_||(_=!0,m.then(O))}function R(){return j(),m}function q(t){c.push(t)}const f=new Set;let r=0;function O(){if(r!==0)return;const t=i;do{try{for(;r<s.length;){const n=s[r];r++,l(n),z(n.$$)}}catch(n){throw s.length=0,r=0,n}for(l(null),s.length=0,r=0;d.length;)d.pop()();for(let n=0;n<c.length;n+=1){const e=c[n];f.has(e)||(f.add(e),e())}c.length=0}while(s.length);for(;p.length;)p.pop()();_=!1,f.clear(),l(t)}function z(t){if(t.fragment!==null){t.update(),v(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(q)}}function T(t){const n=[],e=[];c.forEach(o=>t.indexOf(o)===-1?n.push(o):e.push(o)),e.forEach(o=>o()),c=n}export{H as A,I as B,G as C,K as D,J as E,b as a,d as b,P as c,q as d,Q as e,C as f,M as g,N as h,A as i,F as j,i as k,S as l,O as m,k as n,L as o,l as p,T as q,v as r,B as s,R as t,E as u,s as v,j as w,w as x,D as y,U as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{w as n}from"./index.m3oCcA6N.js";import{g as i}from"./scheduler.DsWd5xup.js";function a(t,s){if(typeof window>"u")return n(s);let e=s;try{const r=localStorage.getItem(t);r!==null&&(e=JSON.parse(r))}catch{}const o=n(e);return o.subscribe(r=>{try{localStorage.setItem(t,JSON.stringify(r))}catch{}}),o}const c=a("aiusage-dateRange",{range:"day"}),u=a("aiusage-selectedDevice","");function _(t){u.set(t)}const f=a("aiusage-selectedTool","");function x(t){f.set(t)}const S=n("idle"),d=n("USD"),l=n(.137);function $(t){c.set({range:t,month:void 0})}function p(t,s,e){c.set({from:t,to:s,month:e||void 0})}function y(t){return new Date(t).toLocaleDateString()}function D(t){return t.toLocaleString()}function F(t){if(i(d)==="CNY"){const e=i(l),o=t/e;return o<.01?`¥${o.toFixed(4)}`:`¥${o.toFixed(2)}`}return t<.01?`$${t.toFixed(4)}`:`$${t.toFixed(2)}`}function h(t){return t>=1e9?`${(t/1e9).toFixed(1)}B`:t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toString()}export{u as a,h as b,D as c,c as d,l as e,F as f,d as g,y as h,$ as i,p as j,_ as k,x as l,S as r,f as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./entry.
|
|
1
|
+
import{s as e}from"./entry.PDoHFbXz.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CZMa2uzk.js","../chunks/scheduler.DsWd5xup.js","../chunks/index.66Vu9Sio.js","../chunks/api.Mv_KcGhp.js","../chunks/stores.Botc0ioY.js","../chunks/entry.PDoHFbXz.js","../chunks/index.m3oCcA6N.js","../chunks/i18n.CwV3KceS.js","../chunks/stores.BSI_cVy6.js","../assets/0.BYjLgame.css","../nodes/1.DJI2NNga.js","../nodes/2.CoxR54dV.js","../assets/2.GIkI4O03.css","../nodes/3.Bua2oewW.js","../chunks/ToolSelector.CofvKVw2.js","../assets/ToolSelector.BewzNVhC.css","../assets/3.H3-dDI9U.css","../nodes/4.DJwmYYKI.js","../assets/4.BOWlKC54.css","../nodes/5.CXmtjVJL.js","../assets/5.CLn2x9cs.css","../nodes/6.kpxBlrHt.js","../assets/6.C1lxHTyi.css","../nodes/7.LSfdx4vz.js","../assets/7.oxd6PqWk.css","../nodes/8.ByAI01dT.js","../assets/8.9jvt5Dym.css","../nodes/9.Ubt4Bfxd.js","../assets/9.DsmA__AV.css","../nodes/10.DTaETIM6.js","../assets/10.DpWloLoX.css","../nodes/11.CScZqjVc.js","../assets/11.4MyEKiO6.css","../nodes/12.DeLNKhlw.js","../assets/12.nNHFRI35.css","../nodes/13.BFaBQy6e.js","../assets/13.CAQKz1hf.css","../nodes/14.BgJEC28r.js","../assets/14.Bcofmxqa.css","../nodes/15.DjuCO6OE.js","../assets/15.F0aA4smG.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{s as C,h as N,o as B,t as U,b as T}from"../chunks/scheduler.DsWd5xup.js";import{S as F,i as G,d as h,l as E,m as g,E as I,F as D,a as k,g as W,r as w,j as z,G as R,k as L,u as O,n as A,q as y,o as V,x as d,c as H,e as J,h as K,s as Q,f as X,t as Y}from"../chunks/index.66Vu9Sio.js";const Z="modulepreload",M=function(s,e){return new URL(s,e).href},S={},u=function(e,n,i){let o=Promise.resolve();if(n&&n.length>0){const t=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),l=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));o=Promise.allSettled(n.map(_=>{if(_=M(_,i),_ in S)return;S[_]=!0;const a=_.endsWith(".css"),m=a?'[rel="stylesheet"]':"";if(!!i)for(let b=t.length-1;b>=0;b--){const P=t[b];if(P.href===_&&(!a||P.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${m}`))return;const p=document.createElement("link");if(p.rel=a?"stylesheet":Z,a||(p.as="script"),p.crossOrigin="",p.href=_,l&&p.setAttribute("nonce",l),document.head.appendChild(p),a)return new Promise((b,P)=>{p.addEventListener("load",b),p.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${_}`)))})}))}function f(t){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=t,window.dispatchEvent(r),!r.defaultPrevented)throw t}return o.then(t=>{for(const r of t||[])r.status==="rejected"&&f(r.reason);return e().catch(f)})},ae={};function $(s){let e,n,i;var o=s[1][0];function f(t,r){return{props:{data:t[3],form:t[2]}}}return o&&(e=R(o,f(s)),s[12](e)),{c(){e&&O(e.$$.fragment),n=w()},l(t){e&&y(e.$$.fragment,t),n=w()},m(t,r){e&&A(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&o!==(o=t[1][0])){if(e){I();const l=e;E(l.$$.fragment,1,0,()=>{L(l,1)}),D()}o?(e=R(o,f(t)),t[12](e),O(e.$$.fragment),g(e.$$.fragment,1),A(e,n.parentNode,n)):e=null}else if(o){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&E(e.$$.fragment,t),i=!1},d(t){t&&h(n),s[12](null),e&&L(e,t)}}}function x(s){let e,n,i;var o=s[1][0];function f(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return o&&(e=R(o,f(s)),s[11](e)),{c(){e&&O(e.$$.fragment),n=w()},l(t){e&&y(e.$$.fragment,t),n=w()},m(t,r){e&&A(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&o!==(o=t[1][0])){if(e){I();const l=e;E(l.$$.fragment,1,0,()=>{L(l,1)}),D()}o?(e=R(o,f(t)),t[11](e),O(e.$$.fragment),g(e.$$.fragment,1),A(e,n.parentNode,n)):e=null}else if(o){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&E(e.$$.fragment,t),i=!1},d(t){t&&h(n),s[11](null),e&&L(e,t)}}}function ee(s){let e,n,i;var o=s[1][1];function f(t,r){return{props:{data:t[4],form:t[2]}}}return o&&(e=R(o,f(s)),s[10](e)),{c(){e&&O(e.$$.fragment),n=w()},l(t){e&&y(e.$$.fragment,t),n=w()},m(t,r){e&&A(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&o!==(o=t[1][1])){if(e){I();const l=e;E(l.$$.fragment,1,0,()=>{L(l,1)}),D()}o?(e=R(o,f(t)),t[10](e),O(e.$$.fragment),g(e.$$.fragment,1),A(e,n.parentNode,n)):e=null}else if(o){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&E(e.$$.fragment,t),i=!1},d(t){t&&h(n),s[10](null),e&&L(e,t)}}}function j(s){let e,n=s[6]&&q(s);return{c(){e=K("div"),n&&n.c(),this.h()},l(i){e=H(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var o=J(e);n&&n.l(o),o.forEach(h),this.h()},h(){V(e,"id","svelte-announcer"),V(e,"aria-live","assertive"),V(e,"aria-atomic","true"),d(e,"position","absolute"),d(e,"left","0"),d(e,"top","0"),d(e,"clip","rect(0 0 0 0)"),d(e,"clip-path","inset(50%)"),d(e,"overflow","hidden"),d(e,"white-space","nowrap"),d(e,"width","1px"),d(e,"height","1px")},m(i,o){k(i,e,o),n&&n.m(e,null)},p(i,o){i[6]?n?n.p(i,o):(n=q(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&h(e),n&&n.d()}}}function q(s){let e;return{c(){e=Y(s[7])},l(n){e=X(n,s[7])},m(n,i){k(n,e,i)},p(n,i){i&128&&Q(e,n[7])},d(n){n&&h(e)}}}function te(s){let e,n,i,o,f;const t=[x,$],r=[];function l(a,m){return a[1][1]?0:1}e=l(s),n=r[e]=t[e](s);let _=s[5]&&j(s);return{c(){n.c(),i=z(),_&&_.c(),o=w()},l(a){n.l(a),i=W(a),_&&_.l(a),o=w()},m(a,m){r[e].m(a,m),k(a,i,m),_&&_.m(a,m),k(a,o,m),f=!0},p(a,[m]){let v=e;e=l(a),e===v?r[e].p(a,m):(I(),E(r[v],1,1,()=>{r[v]=null}),D(),n=r[e],n?n.p(a,m):(n=r[e]=t[e](a),n.c()),g(n,1),n.m(i.parentNode,i)),a[5]?_?_.p(a,m):(_=j(a),_.c(),_.m(o.parentNode,o)):_&&(_.d(1),_=null)},i(a){f||(g(n),f=!0)},o(a){E(n),f=!1},d(a){a&&(h(i),h(o)),r[e].d(a),_&&_.d(a)}}}function ne(s,e,n){let{stores:i}=e,{page:o}=e,{constructors:f}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:_=null}=e;N(i.page.notify);let a=!1,m=!1,v=null;B(()=>{const c=i.page.subscribe(()=>{a&&(n(6,m=!0),U().then(()=>{n(7,v=document.title||"untitled page")}))});return n(5,a=!0),c});function p(c){T[c?"unshift":"push"](()=>{t[1]=c,n(0,t)})}function b(c){T[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}function P(c){T[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}return s.$$set=c=>{"stores"in c&&n(8,i=c.stores),"page"in c&&n(9,o=c.page),"constructors"in c&&n(1,f=c.constructors),"components"in c&&n(0,t=c.components),"form"in c&&n(2,r=c.form),"data_0"in c&&n(3,l=c.data_0),"data_1"in c&&n(4,_=c.data_1)},s.$$.update=()=>{s.$$.dirty&768&&i.page.set(o)},[t,f,r,l,_,a,m,v,i,o,p,b,P]}class le extends F{constructor(e){super(),G(this,e,ne,te,C,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const _e=[()=>u(()=>import("../nodes/0.CZMa2uzk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url),()=>u(()=>import("../nodes/1.DJI2NNga.js"),__vite__mapDeps([10,1,2,4,5,6]),import.meta.url),()=>u(()=>import("../nodes/2.CoxR54dV.js"),__vite__mapDeps([11,1,2,3,6,7,8,12]),import.meta.url),()=>u(()=>import("../nodes/3.Bua2oewW.js"),__vite__mapDeps([13,1,2,3,8,6,7,14,15,16]),import.meta.url),()=>u(()=>import("../nodes/4.DJwmYYKI.js"),__vite__mapDeps([17,1,2,3,7,6,18]),import.meta.url),()=>u(()=>import("../nodes/5.CXmtjVJL.js"),__vite__mapDeps([19,1,2,3,8,6,7,14,15,20]),import.meta.url),()=>u(()=>import("../nodes/6.kpxBlrHt.js"),__vite__mapDeps([21,1,2,3,8,6,7,14,15,22]),import.meta.url),()=>u(()=>import("../nodes/7.LSfdx4vz.js"),__vite__mapDeps([23,1,2,3,7,6,8,24]),import.meta.url),()=>u(()=>import("../nodes/8.ByAI01dT.js"),__vite__mapDeps([25,1,2,3,8,6,7,14,15,26]),import.meta.url),()=>u(()=>import("../nodes/9.Ubt4Bfxd.js"),__vite__mapDeps([27,1,2,3,7,6,28]),import.meta.url),()=>u(()=>import("../nodes/10.DTaETIM6.js"),__vite__mapDeps([29,1,2,3,8,6,7,14,15,30]),import.meta.url),()=>u(()=>import("../nodes/11.CScZqjVc.js"),__vite__mapDeps([31,1,2,3,4,5,6,8,7,32]),import.meta.url),()=>u(()=>import("../nodes/12.DeLNKhlw.js"),__vite__mapDeps([33,1,2,3,7,6,8,34]),import.meta.url),()=>u(()=>import("../nodes/13.BFaBQy6e.js"),__vite__mapDeps([35,1,2,7,6,36]),import.meta.url),()=>u(()=>import("../nodes/14.BgJEC28r.js"),__vite__mapDeps([37,1,2,3,8,6,7,14,15,38]),import.meta.url),()=>u(()=>import("../nodes/15.DjuCO6OE.js"),__vite__mapDeps([39,1,2,3,8,6,7,14,15,40]),import.meta.url)],ce=[],fe={"/":[2],"/cost":[3],"/leaderboard":[4],"/models":[5],"/overview":[6],"/pricing":[7],"/projects":[8],"/quotas":[9],"/sessions":[10],"/sessions/[sessionId]":[11],"/settings":[12],"/support":[13],"/tokens":[14],"/tool-calls":[15]},re={handleError:({error:s})=>{console.error(s)},reroute:()=>{},transport:{}},ie=Object.fromEntries(Object.entries(re.transport).map(([s,e])=>[s,e.decode])),ue=!1,me=(s,e)=>ie[s](e);export{me as decode,ie as decoders,fe as dictionary,ue as hash,re as hooks,ae as matchers,_e as nodes,le as root,ce as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"../chunks/entry.PDoHFbXz.js";export{t as start};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import{s as x,z as ee,x as w,A as te,B as le,C as ne,D as Yt,E as I,c as ft,o as Nl,e as wl,n as lt,r as dt}from"../chunks/scheduler.DsWd5xup.js";import{S as se,i as ae,d as c,v as Mt,l as q,m as E,H as ct,a as Z,b as u,I as Me,e as v,r as Ue,J as Ae,k as j,n as R,q as J,u as F,F as Re,g as B,j as P,w as ke,o as r,c as k,h as N,s as ce,A as ht,K as gl,C as Ye,f as he,t as de,G as Xe,z as ye,E as Fe}from"../chunks/index.66Vu9Sio.js";import{e as xe,a as Gt,E as El,F as ql}from"../chunks/api.Mv_KcGhp.js";import{p as Ml}from"../chunks/stores.Botc0ioY.js";import{a as Et,t as Al,l as Sl}from"../chunks/i18n.CwV3KceS.js";import{w as pl}from"../chunks/index.m3oCcA6N.js";import{g as Tl,e as Kt}from"../chunks/stores.BSI_cVy6.js";const Cl=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function oe(a,e){const s={},t={},n={$$scope:1};let l=a.length;for(;l--;){const o=a[l],i=e[l];if(i){for(const $ in o)$ in i||(t[$]=1);for(const $ in i)n[$]||(s[$]=i[$],n[$]=1);a[l]=i}else for(const $ in o)n[$]=1}for(const o in t)o in s||(s[o]=void 0);return s}function _e(a){return typeof a=="object"&&a!==null?a:{}}const vl="aiusage-theme";function qt(){return typeof window>"u"?"system":localStorage.getItem(vl)||"system"}function bl(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const At=pl(qt()),Il=pl(bl());function Zt(){At.update(a=>a==="system"?"dark":a==="dark"?"light":"system")}function Hl(){if(typeof window>"u")return;const a=window.matchMedia("(prefers-color-scheme: dark)");function e(s){const t=s==="system"?bl():s;document.documentElement.setAttribute("data-theme",t),Il.set(t)}e(qt()),At.subscribe(s=>{localStorage.setItem(vl,s),e(s)}),a.addEventListener("change",()=>{qt()==="system"&&e("system")})}function Dl({pathname:a,authEnabled:e,authenticated:s,authLoading:t}){const n=a==="/";return t?n?"public-home":"loading":!e||s?"shell":n?"public-home":"login-page"}/**
|
|
2
|
+
* @license lucide-svelte v1.0.1 - ISC
|
|
3
|
+
*
|
|
4
|
+
* ISC License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2026 Lucide Icons and Contributors
|
|
7
|
+
*
|
|
8
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
9
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
10
|
+
* copyright notice and this permission notice appear in all copies.
|
|
11
|
+
*
|
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
13
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
14
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
15
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
16
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
17
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
18
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
19
|
+
*
|
|
20
|
+
* ---
|
|
21
|
+
*
|
|
22
|
+
* The following Lucide icons are derived from the Feather project:
|
|
23
|
+
*
|
|
24
|
+
* airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
25
|
+
*
|
|
26
|
+
* The MIT License (MIT) (for the icons listed above)
|
|
27
|
+
*
|
|
28
|
+
* Copyright (c) 2013-present Cole Bemis
|
|
29
|
+
*
|
|
30
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
31
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
32
|
+
* in the Software without restriction, including without limitation the rights
|
|
33
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
34
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
35
|
+
* furnished to do so, subject to the following conditions:
|
|
36
|
+
*
|
|
37
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
38
|
+
* copies or substantial portions of the Software.
|
|
39
|
+
*
|
|
40
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
41
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
42
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
43
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
44
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
45
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
46
|
+
* SOFTWARE.
|
|
47
|
+
*
|
|
48
|
+
*/const Jt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
49
|
+
* @license lucide-svelte v1.0.1 - ISC
|
|
50
|
+
*
|
|
51
|
+
* ISC License
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) 2026 Lucide Icons and Contributors
|
|
54
|
+
*
|
|
55
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
56
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
57
|
+
* copyright notice and this permission notice appear in all copies.
|
|
58
|
+
*
|
|
59
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
60
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
61
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
62
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
63
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
64
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
65
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
66
|
+
*
|
|
67
|
+
* ---
|
|
68
|
+
*
|
|
69
|
+
* The following Lucide icons are derived from the Feather project:
|
|
70
|
+
*
|
|
71
|
+
* airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
72
|
+
*
|
|
73
|
+
* The MIT License (MIT) (for the icons listed above)
|
|
74
|
+
*
|
|
75
|
+
* Copyright (c) 2013-present Cole Bemis
|
|
76
|
+
*
|
|
77
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
78
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
79
|
+
* in the Software without restriction, including without limitation the rights
|
|
80
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
81
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
82
|
+
* furnished to do so, subject to the following conditions:
|
|
83
|
+
*
|
|
84
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
85
|
+
* copies or substantial portions of the Software.
|
|
86
|
+
*
|
|
87
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
88
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
89
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
90
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
91
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
92
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
93
|
+
* SOFTWARE.
|
|
94
|
+
*
|
|
95
|
+
*/const Qt=a=>{for(const e in a)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};/**
|
|
96
|
+
* @license lucide-svelte v1.0.1 - ISC
|
|
97
|
+
*
|
|
98
|
+
* ISC License
|
|
99
|
+
*
|
|
100
|
+
* Copyright (c) 2026 Lucide Icons and Contributors
|
|
101
|
+
*
|
|
102
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
103
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
104
|
+
* copyright notice and this permission notice appear in all copies.
|
|
105
|
+
*
|
|
106
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
107
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
108
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
109
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
110
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
111
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
112
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
113
|
+
*
|
|
114
|
+
* ---
|
|
115
|
+
*
|
|
116
|
+
* The following Lucide icons are derived from the Feather project:
|
|
117
|
+
*
|
|
118
|
+
* airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
119
|
+
*
|
|
120
|
+
* The MIT License (MIT) (for the icons listed above)
|
|
121
|
+
*
|
|
122
|
+
* Copyright (c) 2013-present Cole Bemis
|
|
123
|
+
*
|
|
124
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
125
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
126
|
+
* in the Software without restriction, including without limitation the rights
|
|
127
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
128
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
129
|
+
* furnished to do so, subject to the following conditions:
|
|
130
|
+
*
|
|
131
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
132
|
+
* copies or substantial portions of the Software.
|
|
133
|
+
*
|
|
134
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
135
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
136
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
137
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
138
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
139
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
140
|
+
* SOFTWARE.
|
|
141
|
+
*
|
|
142
|
+
*/const Xt=(...a)=>a.filter((e,s,t)=>!!e&&e.trim()!==""&&t.indexOf(e)===s).join(" ").trim();function yt(a,e,s){const t=a.slice();return t[10]=e[s][0],t[11]=e[s][1],t}function wt(a){let e,s=[a[11]],t={};for(let n=0;n<s.length;n+=1)t=w(t,s[n]);return{c(){e=Ae(a[10]),this.h()},l(n){e=Me(n,a[10],{}),v(e).forEach(c),this.h()},h(){ct(e,t)},m(n,l){Z(n,e,l)},p(n,l){ct(e,t=oe(s,[l&32&&n[11]]))},d(n){n&&c(e)}}}function xt(a){let e=a[10],s,t=a[10]&&wt(a);return{c(){t&&t.c(),s=Ue()},l(n){t&&t.l(n),s=Ue()},m(n,l){t&&t.m(n,l),Z(n,s,l)},p(n,l){n[10]?e?x(e,n[10])?(t.d(1),t=wt(n),e=n[10],t.c(),t.m(s.parentNode,s)):t.p(n,l):(t=wt(n),e=n[10],t.c(),t.m(s.parentNode,s)):e&&(t.d(1),t=null,e=n[10])},d(n){n&&c(s),t&&t.d(n)}}}function Bl(a){let e,s,t,n,l,o=xe(a[5]),i=[];for(let d=0;d<o.length;d+=1)i[d]=xt(yt(a,o,d));const $=a[9].default,h=ee($,a,a[8],null);let f=[Jt,Qt(a[6])?void 0:{"aria-hidden":"true"},a[6],{width:a[2]},{height:a[2]},{stroke:a[1]},{"stroke-width":t=a[4]?Number(a[3])*24/Number(a[2]):a[3]},{class:n=Xt("lucide-icon","lucide",a[0]?`lucide-${a[0]}`:"",a[7].class)}],_={};for(let d=0;d<f.length;d+=1)_=w(_,f[d]);return{c(){e=Ae("svg");for(let d=0;d<i.length;d+=1)i[d].c();s=Ue(),h&&h.c(),this.h()},l(d){e=Me(d,"svg",{width:!0,height:!0,stroke:!0,"stroke-width":!0,class:!0});var A=v(e);for(let b=0;b<i.length;b+=1)i[b].l(A);s=Ue(),h&&h.l(A),A.forEach(c),this.h()},h(){ct(e,_)},m(d,A){Z(d,e,A);for(let b=0;b<i.length;b+=1)i[b]&&i[b].m(e,null);u(e,s),h&&h.m(e,null),l=!0},p(d,[A]){if(A&32){o=xe(d[5]);let b;for(b=0;b<o.length;b+=1){const T=yt(d,o,b);i[b]?i[b].p(T,A):(i[b]=xt(T),i[b].c(),i[b].m(e,s))}for(;b<i.length;b+=1)i[b].d(1);i.length=o.length}h&&h.p&&(!l||A&256)&&te(h,$,d,d[8],l?ne($,d[8],A,null):le(d[8]),null),ct(e,_=oe(f,[Jt,A&64&&(Qt(d[6])?void 0:{"aria-hidden":"true"}),A&64&&d[6],(!l||A&4)&&{width:d[2]},(!l||A&4)&&{height:d[2]},(!l||A&2)&&{stroke:d[1]},(!l||A&28&&t!==(t=d[4]?Number(d[3])*24/Number(d[2]):d[3]))&&{"stroke-width":t},(!l||A&129&&n!==(n=Xt("lucide-icon","lucide",d[0]?`lucide-${d[0]}`:"",d[7].class)))&&{class:n}]))},i(d){l||(E(h,d),l=!0)},o(d){q(h,d),l=!1},d(d){d&&c(e),Mt(i,d),h&&h.d(d)}}}function Pl(a,e,s){const t=["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"];let n=Yt(e,t),{$$slots:l={},$$scope:o}=e,{name:i=void 0}=e,{color:$="currentColor"}=e,{size:h=24}=e,{strokeWidth:f=2}=e,{absoluteStrokeWidth:_=!1}=e,{iconNode:d=[]}=e;return a.$$set=A=>{s(7,e=w(w({},e),I(A))),s(6,n=Yt(e,t)),"name"in A&&s(0,i=A.name),"color"in A&&s(1,$=A.color),"size"in A&&s(2,h=A.size),"strokeWidth"in A&&s(3,f=A.strokeWidth),"absoluteStrokeWidth"in A&&s(4,_=A.absoluteStrokeWidth),"iconNode"in A&&s(5,d=A.iconNode),"$$scope"in A&&s(8,o=A.$$scope)},e=I(e),[i,$,h,f,_,d,n,e,o,l]}class me extends se{constructor(e){super(),ae(this,e,Pl,Bl,x,{name:0,color:1,size:2,strokeWidth:3,absoluteStrokeWidth:4,iconNode:5})}}function Ul(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Vl(a){let e,s;const t=[{name:"box"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Ul]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Ol(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"}],["path",{d:"m3.3 7 8.7 5 8.7-5"}],["path",{d:"M12 22V12"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Wl extends se{constructor(e){super(),ae(this,e,Ol,Vl,x,{})}}function zl(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Ll(a){let e,s;const t=[{name:"circle-question-mark"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[zl]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function jl(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Rl extends se{constructor(e){super(),ae(this,e,jl,Ll,x,{})}}function Fl(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Yl(a){let e,s;const t=[{name:"coins"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Fl]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Gl(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48"}],["path",{d:"M15 6h1v4"}],["path",{d:"m6.134 14.768.866-.5 2 3.464"}],["circle",{cx:"16",cy:"8",r:"6"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Kl extends se{constructor(e){super(),ae(this,e,Gl,Yl,x,{})}}function Zl(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Jl(a){let e,s;const t=[{name:"dollar-sign"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Zl]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Ql(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["line",{x1:"12",x2:"12",y1:"2",y2:"22"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Xl extends se{constructor(e){super(),ae(this,e,Ql,Jl,x,{})}}function yl(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function xl(a){let e,s;const t=[{name:"external-link"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[yl]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function en(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class tn extends se{constructor(e){super(),ae(this,e,en,xl,x,{})}}function ln(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function nn(a){let e,s;const t=[{name:"folder-kanban"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[ln]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function sn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z"}],["path",{d:"M8 10v4"}],["path",{d:"M12 10v2"}],["path",{d:"M16 10v6"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class an extends se{constructor(e){super(),ae(this,e,sn,nn,x,{})}}function on(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function rn(a){let e,s;const t=[{name:"gauge"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[on]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function un(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class fn extends se{constructor(e){super(),ae(this,e,un,rn,x,{})}}function cn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function hn(a){let e,s;const t=[{name:"house"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[cn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function dn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class _n extends se{constructor(e){super(),ae(this,e,dn,hn,x,{})}}function mn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function gn(a){let e,s;const t=[{name:"layout-dashboard"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[mn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function pn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class vn extends se{constructor(e){super(),ae(this,e,pn,gn,x,{})}}function bn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function $n(a){let e,s;const t=[{name:"message-square"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[bn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function kn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Nn extends se{constructor(e){super(),ae(this,e,kn,$n,x,{})}}function wn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function En(a){let e,s;const t=[{name:"monitor-cog"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[wn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function qn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M12 17v4"}],["path",{d:"m14.305 7.53.923-.382"}],["path",{d:"m15.228 4.852-.923-.383"}],["path",{d:"m16.852 3.228-.383-.924"}],["path",{d:"m16.852 8.772-.383.923"}],["path",{d:"m19.148 3.228.383-.924"}],["path",{d:"m19.53 9.696-.382-.924"}],["path",{d:"m20.772 4.852.924-.383"}],["path",{d:"m20.772 7.148.924.383"}],["path",{d:"M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7"}],["path",{d:"M8 21h8"}],["circle",{cx:"18",cy:"6",r:"3"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Mn extends se{constructor(e){super(),ae(this,e,qn,En,x,{})}}function An(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Sn(a){let e,s;const t=[{name:"moon"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[An]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Tn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Cn extends se{constructor(e){super(),ae(this,e,Tn,Sn,x,{})}}function In(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Hn(a){let e,s;const t=[{name:"panel-left-close"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[In]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Dn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m16 15-3-3 3-3"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Bn extends se{constructor(e){super(),ae(this,e,Dn,Hn,x,{})}}function Pn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Un(a){let e,s;const t=[{name:"panel-left-open"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Pn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Vn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m14 9 3 3-3 3"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class On extends se{constructor(e){super(),ae(this,e,Vn,Un,x,{})}}function Wn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function zn(a){let e,s;const t=[{name:"settings"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Wn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Ln(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"}],["circle",{cx:"12",cy:"12",r:"3"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class jn extends se{constructor(e){super(),ae(this,e,Ln,zn,x,{})}}function Rn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Fn(a){let e,s;const t=[{name:"sun"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Rn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Yn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Gn extends se{constructor(e){super(),ae(this,e,Yn,Fn,x,{})}}function Kn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function Zn(a){let e,s;const t=[{name:"tag"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Kn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function Jn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class Qn extends se{constructor(e){super(),ae(this,e,Jn,Zn,x,{})}}function Xn(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function yn(a){let e,s;const t=[{name:"trophy"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[Xn]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function xn(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18"}],["path",{d:"M4 22h16"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class es extends se{constructor(e){super(),ae(this,e,xn,yn,x,{})}}function ts(a){let e;const s=a[2].default,t=ee(s,a,a[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&8)&&te(t,s,n,n[3],e?ne(s,n[3],l,null):le(n[3]),null)},i(n){e||(E(t,n),e=!0)},o(n){q(t,n),e=!1},d(n){t&&t.d(n)}}}function ls(a){let e,s;const t=[{name:"wrench"},a[1],{iconNode:a[0]}];let n={$$slots:{default:[ts]},$$scope:{ctx:a}};for(let l=0;l<t.length;l+=1)n=w(n,t[l]);return e=new me({props:n}),{c(){F(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){R(e,l,o),s=!0},p(l,[o]){const i=o&3?oe(t,[t[0],o&2&&_e(l[1]),o&1&&{iconNode:l[0]}]):{};o&8&&(i.$$scope={dirty:o,ctx:l}),e.$set(i)},i(l){s||(E(e.$$.fragment,l),s=!0)},o(l){q(e.$$.fragment,l),s=!1},d(l){j(e,l)}}}function ns(a,e,s){let{$$slots:t={},$$scope:n}=e;const l=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z"}]];return a.$$set=o=>{s(1,e=w(w({},e),I(o))),"$$scope"in o&&s(3,n=o.$$scope)},e=I(e),[l,e,t,n]}class ss extends se{constructor(e){super(),ae(this,e,ns,ls,x,{})}}const{Boolean:$l}=Cl;function el(a,e,s){const t=a.slice();return t[30]=e[s],t}function tl(a,e,s){const t=a.slice();return t[33]=e[s],t}function ll(a){let e,s,t;return{c(){e=N("div"),this.h()},l(n){e=k(n,"DIV",{class:!0}),v(e).forEach(c),this.h()},h(){r(e,"class","mobile-backdrop svelte-4sq9id")},m(n,l){Z(n,e,l),s||(t=ke(e,"click",a[17]),s=!0)},p:lt,d(n){n&&c(e),s=!1,t()}}}function as(a){let e,s,t,n,l,o,i,$,h,f,_,d,A,b,T,Y,H,V,C,K,W,O,z=a[11]==="en"?"中":"EN",y,re,ue,G,D,g,m,M,S,fe,Ne,Q,qe,Te,_t,mt,Ie,Ce,He,St='<span class="svelte-4sq9id"></span><span class="svelte-4sq9id"></span><span class="svelte-4sq9id"></span>',gt,De,Tt='<svg class="brand-logo svelte-4sq9id" width="20" height="20" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="64" height="64" rx="14" fill="currentColor"></rect><rect x="10" y="38" width="12" height="16" rx="3" fill="white"></rect><rect x="26" y="26" width="12" height="28" rx="3" fill="white"></rect><rect x="42" y="14" width="12" height="40" rx="3" fill="white"></rect></svg> <span class="brand-name svelte-4sq9id">AIUsage</span>',pt,Be,Ve,Oe,ie,vt,We,Ge,et=a[11]==="en"?"中":"EN",nt,bt,Ke,we,$t,Ct,$e=!a[2]&&nl(),ze=xe(a[13]),X=[];for(let p=0;p<ze.length;p+=1)X[p]=il(el(a,ze,p));const kl=p=>q(X[p],1,1,()=>{X[p]=null});var Ze=a[14][a[12]];function It(p,U){return{props:{size:14,strokeWidth:1.75}}}Ze&&(H=Xe(Ze,It()));let ge=!a[2]&&rl(a),pe=!a[2]&&ul(a);const Ht=[fs,us],Le=[];function Dt(p,U){return p[2]?0:1}m=Dt(a),M=Le[m]=Ht[m](a);let ve=!a[2]&&fl(a);Te=new tn({props:{size:14,strokeWidth:1.75}});let be=!a[2]&&cl(a);var Je=a[14][a[12]];function Bt(p,U){return{props:{size:14,strokeWidth:1.75}}}Je&&(ie=Xe(Je,Bt()));const kt=a[24].default,Ee=ee(kt,a,a[23],null);return{c(){e=N("div"),s=N("aside"),t=N("div"),n=N("a"),l=Ae("svg"),o=Ae("rect"),i=Ae("rect"),$=Ae("rect"),h=Ae("rect"),f=P(),$e&&$e.c(),_=P(),d=N("nav");for(let p=0;p<X.length;p+=1)X[p].c();A=P(),b=N("div"),T=N("button"),Y=N("span"),H&&F(H.$$.fragment),V=P(),ge&&ge.c(),K=P(),W=N("button"),O=N("span"),y=de(z),re=P(),pe&&pe.c(),G=P(),D=N("button"),g=N("span"),M.c(),S=P(),ve&&ve.c(),Ne=P(),Q=N("a"),qe=N("span"),F(Te.$$.fragment),_t=P(),be&&be.c(),mt=P(),Ie=N("div"),Ce=N("header"),He=N("button"),He.innerHTML=St,gt=P(),De=N("a"),De.innerHTML=Tt,pt=P(),Be=N("div"),Ve=N("button"),Oe=N("span"),ie&&F(ie.$$.fragment),vt=P(),We=N("button"),Ge=N("span"),nt=de(et),bt=P(),Ke=N("main"),Ee&&Ee.c(),this.h()},l(p){e=k(p,"DIV",{class:!0});var U=v(e);s=k(U,"ASIDE",{class:!0});var Se=v(s);t=k(Se,"DIV",{class:!0});var L=v(t);n=k(L,"A",{href:!0,class:!0});var je=v(n);l=Me(je,"svg",{class:!0,width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0,"aria-hidden":!0});var tt=v(l);o=Me(tt,"rect",{width:!0,height:!0,rx:!0,fill:!0}),v(o).forEach(c),i=Me(tt,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0}),v(i).forEach(c),$=Me(tt,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0}),v($).forEach(c),h=Me(tt,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0}),v(h).forEach(c),tt.forEach(c),f=B(je),$e&&$e.l(je),je.forEach(c),_=B(L),d=k(L,"NAV",{class:!0});var Pt=v(d);for(let Nt=0;Nt<X.length;Nt+=1)X[Nt].l(Pt);Pt.forEach(c),A=B(L),b=k(L,"DIV",{class:!0});var Pe=v(b);T=k(Pe,"BUTTON",{class:!0,title:!0});var st=v(T);Y=k(st,"SPAN",{class:!0});var Ut=v(Y);H&&J(H.$$.fragment,Ut),Ut.forEach(c),V=B(st),ge&&ge.l(st),st.forEach(c),K=B(Pe),W=k(Pe,"BUTTON",{class:!0,title:!0});var at=v(W);O=k(at,"SPAN",{class:!0});var Vt=v(O);y=he(Vt,z),Vt.forEach(c),re=B(at),pe&&pe.l(at),at.forEach(c),G=B(Pe),D=k(Pe,"BUTTON",{class:!0,title:!0});var ot=v(D);g=k(ot,"SPAN",{class:!0});var Ot=v(g);M.l(Ot),Ot.forEach(c),S=B(ot),ve&&ve.l(ot),ot.forEach(c),Ne=B(Pe),Q=k(Pe,"A",{class:!0,href:!0,target:!0,rel:!0,title:!0});var it=v(Q);qe=k(it,"SPAN",{class:!0});var Wt=v(qe);J(Te.$$.fragment,Wt),Wt.forEach(c),_t=B(it),be&&be.l(it),it.forEach(c),Pe.forEach(c),L.forEach(c),Se.forEach(c),mt=B(U),Ie=k(U,"DIV",{class:!0});var rt=v(Ie);Ce=k(rt,"HEADER",{class:!0});var Qe=v(Ce);He=k(Qe,"BUTTON",{class:!0,"data-svelte-h":!0}),Ye(He)!=="svelte-tgxof7"&&(He.innerHTML=St),gt=B(Qe),De=k(Qe,"A",{href:!0,class:!0,"data-svelte-h":!0}),Ye(De)!=="svelte-dv0i7k"&&(De.innerHTML=Tt),pt=B(Qe),Be=k(Qe,"DIV",{class:!0});var ut=v(Be);Ve=k(ut,"BUTTON",{class:!0});var zt=v(Ve);Oe=k(zt,"SPAN",{class:!0});var Lt=v(Oe);ie&&J(ie.$$.fragment,Lt),Lt.forEach(c),zt.forEach(c),vt=B(ut),We=k(ut,"BUTTON",{class:!0});var jt=v(We);Ge=k(jt,"SPAN",{class:!0});var Rt=v(Ge);nt=he(Rt,et),Rt.forEach(c),jt.forEach(c),ut.forEach(c),Qe.forEach(c),bt=B(rt),Ke=k(rt,"MAIN",{class:!0});var Ft=v(Ke);Ee&&Ee.l(Ft),Ft.forEach(c),rt.forEach(c),U.forEach(c),this.h()},h(){r(o,"width","64"),r(o,"height","64"),r(o,"rx","14"),r(o,"fill","currentColor"),r(i,"x","10"),r(i,"y","38"),r(i,"width","12"),r(i,"height","16"),r(i,"rx","3"),r(i,"fill","white"),r($,"x","26"),r($,"y","26"),r($,"width","12"),r($,"height","28"),r($,"rx","3"),r($,"fill","white"),r(h,"x","42"),r(h,"y","14"),r(h,"width","12"),r(h,"height","40"),r(h,"rx","3"),r(h,"fill","white"),r(l,"class","brand-logo svelte-4sq9id"),r(l,"width","20"),r(l,"height","20"),r(l,"viewBox","0 0 64 64"),r(l,"fill","none"),r(l,"xmlns","http://www.w3.org/2000/svg"),r(l,"aria-hidden","true"),r(n,"href","/"),r(n,"class","brand svelte-4sq9id"),r(d,"class","sidebar-nav svelte-4sq9id"),r(Y,"class","ctrl-icon svelte-4sq9id"),r(T,"class","ctrl-btn svelte-4sq9id"),r(T,"title",C=a[10](`theme.${a[12]}`)),r(O,"class","ctrl-icon lang-icon svelte-4sq9id"),r(W,"class","ctrl-btn svelte-4sq9id"),r(W,"title",ue=a[11]==="en"?"中文":"EN"),r(g,"class","ctrl-icon svelte-4sq9id"),r(D,"class","ctrl-btn collapse-btn svelte-4sq9id"),r(D,"title",fe=a[10](a[2]?"nav.expand":"nav.collapse")),r(qe,"class","ctrl-icon svelte-4sq9id"),r(Q,"class","ctrl-btn svelte-4sq9id"),r(Q,"href","https://aiusage.jtanx.com"),r(Q,"target","_blank"),r(Q,"rel","noopener"),r(Q,"title","aiusage.jtanx.com"),r(b,"class","sidebar-footer svelte-4sq9id"),r(t,"class","sidebar-inner svelte-4sq9id"),r(s,"class","sidebar svelte-4sq9id"),ye(s,"open",a[3]),r(He,"class","hamburger svelte-4sq9id"),r(De,"href","/"),r(De,"class","brand brand-mobile svelte-4sq9id"),r(Oe,"class","ctrl-icon svelte-4sq9id"),r(Ve,"class","ctrl-btn svelte-4sq9id"),r(Ge,"class","ctrl-icon lang-icon svelte-4sq9id"),r(We,"class","ctrl-btn svelte-4sq9id"),r(Be,"class","mobile-controls svelte-4sq9id"),r(Ce,"class","mobile-header svelte-4sq9id"),r(Ke,"class","page-content svelte-4sq9id"),r(Ie,"class","main-area svelte-4sq9id"),r(e,"class","app svelte-4sq9id"),ye(e,"collapsed",a[2])},m(p,U){Z(p,e,U),u(e,s),u(s,t),u(t,n),u(n,l),u(l,o),u(l,i),u(l,$),u(l,h),u(n,f),$e&&$e.m(n,null),u(t,_),u(t,d);for(let Se=0;Se<X.length;Se+=1)X[Se]&&X[Se].m(d,null);u(t,A),u(t,b),u(b,T),u(T,Y),H&&R(H,Y,null),u(T,V),ge&&ge.m(T,null),u(b,K),u(b,W),u(W,O),u(O,y),u(W,re),pe&&pe.m(W,null),u(b,G),u(b,D),u(D,g),Le[m].m(g,null),u(D,S),ve&&ve.m(D,null),u(b,Ne),u(b,Q),u(Q,qe),R(Te,qe,null),u(Q,_t),be&&be.m(Q,null),u(e,mt),u(e,Ie),u(Ie,Ce),u(Ce,He),u(Ce,gt),u(Ce,De),u(Ce,pt),u(Ce,Be),u(Be,Ve),u(Ve,Oe),ie&&R(ie,Oe,null),u(Be,vt),u(Be,We),u(We,Ge),u(Ge,nt),u(Ie,bt),u(Ie,Ke),Ee&&Ee.m(Ke,null),we=!0,$t||(Ct=[ke(T,"click",Zt),ke(W,"click",Et),ke(D,"click",a[16]),ke(He,"click",a[17]),ke(Ve,"click",Zt),ke(We,"click",Et)],$t=!0)},p(p,U){if(p[2]?$e&&($e.d(1),$e=null):$e||($e=nl(),$e.c(),$e.m(n,null)),U[0]&9222){ze=xe(p[13]);let L;for(L=0;L<ze.length;L+=1){const je=el(p,ze,L);X[L]?(X[L].p(je,U),E(X[L],1)):(X[L]=il(je),X[L].c(),E(X[L],1),X[L].m(d,null))}for(Fe(),L=ze.length;L<X.length;L+=1)kl(L);Re()}if(U[0]&4096&&Ze!==(Ze=p[14][p[12]])){if(H){Fe();const L=H;q(L.$$.fragment,1,0,()=>{j(L,1)}),Re()}Ze?(H=Xe(Ze,It()),F(H.$$.fragment),E(H.$$.fragment,1),R(H,Y,null)):H=null}p[2]?ge&&(ge.d(1),ge=null):ge?ge.p(p,U):(ge=rl(p),ge.c(),ge.m(T,null)),(!we||U[0]&5120&&C!==(C=p[10](`theme.${p[12]}`)))&&r(T,"title",C),(!we||U[0]&2048)&&z!==(z=p[11]==="en"?"中":"EN")&&ce(y,z),p[2]?pe&&(pe.d(1),pe=null):pe?pe.p(p,U):(pe=ul(p),pe.c(),pe.m(W,null)),(!we||U[0]&2048&&ue!==(ue=p[11]==="en"?"中文":"EN"))&&r(W,"title",ue);let Se=m;if(m=Dt(p),m!==Se&&(Fe(),q(Le[Se],1,1,()=>{Le[Se]=null}),Re(),M=Le[m],M||(M=Le[m]=Ht[m](p),M.c()),E(M,1),M.m(g,null)),p[2]?ve&&(ve.d(1),ve=null):ve?ve.p(p,U):(ve=fl(p),ve.c(),ve.m(D,null)),(!we||U[0]&1028&&fe!==(fe=p[10](p[2]?"nav.expand":"nav.collapse")))&&r(D,"title",fe),p[2]?be&&(be.d(1),be=null):be?be.p(p,U):(be=cl(p),be.c(),be.m(Q,null)),(!we||U[0]&8)&&ye(s,"open",p[3]),U[0]&4096&&Je!==(Je=p[14][p[12]])){if(ie){Fe();const L=ie;q(L.$$.fragment,1,0,()=>{j(L,1)}),Re()}Je?(ie=Xe(Je,Bt()),F(ie.$$.fragment),E(ie.$$.fragment,1),R(ie,Oe,null)):ie=null}(!we||U[0]&2048)&&et!==(et=p[11]==="en"?"中":"EN")&&ce(nt,et),Ee&&Ee.p&&(!we||U[0]&8388608)&&te(Ee,kt,p,p[23],we?ne(kt,p[23],U,null):le(p[23]),null),(!we||U[0]&4)&&ye(e,"collapsed",p[2])},i(p){if(!we){for(let U=0;U<ze.length;U+=1)E(X[U]);H&&E(H.$$.fragment,p),E(M),E(Te.$$.fragment,p),ie&&E(ie.$$.fragment,p),E(Ee,p),we=!0}},o(p){X=X.filter($l);for(let U=0;U<X.length;U+=1)q(X[U]);H&&q(H.$$.fragment,p),q(M),q(Te.$$.fragment,p),ie&&q(ie.$$.fragment,p),q(Ee,p),we=!1},d(p){p&&c(e),$e&&$e.d(),Mt(X,p),H&&j(H),ge&&ge.d(),pe&&pe.d(),Le[m].d(),ve&&ve.d(),j(Te),be&&be.d(),ie&&j(ie),Ee&&Ee.d(p),$t=!1,dt(Ct)}}}function os(a){let e,s,t,n,l,o,i,$,h,f,_="AIUsage",d,A,b,T=a[11]==="en"?"中":"EN",Y,H,V,C,K,W,O,z,y,re;const ue=a[24].default,G=ee(ue,a,a[23],null);let D=a[7]&&hl(a);return{c(){e=N("div"),s=N("header"),t=N("button"),n=Ae("svg"),l=Ae("rect"),o=Ae("rect"),i=Ae("rect"),$=Ae("rect"),h=P(),f=N("span"),f.textContent=_,A=P(),b=N("button"),Y=de(T),V=P(),C=N("main"),K=N("div"),G&&G.c(),W=P(),D&&D.c(),O=Ue(),this.h()},l(g){e=k(g,"DIV",{class:!0});var m=v(e);s=k(m,"HEADER",{class:!0});var M=v(s);t=k(M,"BUTTON",{class:!0,type:!0,"aria-label":!0});var S=v(t);n=Me(S,"svg",{class:!0,width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0,"aria-hidden":!0});var fe=v(n);l=Me(fe,"rect",{width:!0,height:!0,rx:!0,fill:!0}),v(l).forEach(c),o=Me(fe,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0}),v(o).forEach(c),i=Me(fe,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0}),v(i).forEach(c),$=Me(fe,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0}),v($).forEach(c),fe.forEach(c),h=B(S),f=k(S,"SPAN",{"data-svelte-h":!0}),Ye(f)!=="svelte-3yic45"&&(f.textContent=_),S.forEach(c),A=B(M),b=k(M,"BUTTON",{class:!0,type:!0,title:!0});var Ne=v(b);Y=he(Ne,T),Ne.forEach(c),M.forEach(c),V=B(m),C=k(m,"MAIN",{class:!0});var Q=v(C);K=k(Q,"DIV",{class:!0});var qe=v(K);G&&G.l(qe),qe.forEach(c),Q.forEach(c),m.forEach(c),W=B(g),D&&D.l(g),O=Ue(),this.h()},h(){r(l,"width","64"),r(l,"height","64"),r(l,"rx","14"),r(l,"fill","currentColor"),r(o,"x","10"),r(o,"y","38"),r(o,"width","12"),r(o,"height","16"),r(o,"rx","3"),r(o,"fill","white"),r(i,"x","26"),r(i,"y","26"),r(i,"width","12"),r(i,"height","28"),r(i,"rx","3"),r(i,"fill","white"),r($,"x","42"),r($,"y","14"),r($,"width","12"),r($,"height","40"),r($,"rx","3"),r($,"fill","white"),r(n,"class","brand-logo svelte-4sq9id"),r(n,"width","20"),r(n,"height","20"),r(n,"viewBox","0 0 64 64"),r(n,"fill","none"),r(n,"xmlns","http://www.w3.org/2000/svg"),r(n,"aria-hidden","true"),r(t,"class","public-unlock svelte-4sq9id"),r(t,"type","button"),r(t,"aria-label",d=a[10]("auth.unlockDashboard")),r(b,"class","public-lang svelte-4sq9id"),r(b,"type","button"),r(b,"title",H=a[11]==="en"?"中文":"EN"),r(s,"class","public-header svelte-4sq9id"),r(K,"class","public-page-inner svelte-4sq9id"),r(C,"class","public-page-content svelte-4sq9id"),r(e,"class","public-shell svelte-4sq9id")},m(g,m){Z(g,e,m),u(e,s),u(s,t),u(t,n),u(n,l),u(n,o),u(n,i),u(n,$),u(t,h),u(t,f),u(s,A),u(s,b),u(b,Y),u(e,V),u(e,C),u(C,K),G&&G.m(K,null),Z(g,W,m),D&&D.m(g,m),Z(g,O,m),z=!0,y||(re=[ke(t,"click",a[18]),ke(b,"click",Et)],y=!0)},p(g,m){(!z||m[0]&1024&&d!==(d=g[10]("auth.unlockDashboard")))&&r(t,"aria-label",d),(!z||m[0]&2048)&&T!==(T=g[11]==="en"?"中":"EN")&&ce(Y,T),(!z||m[0]&2048&&H!==(H=g[11]==="en"?"中文":"EN"))&&r(b,"title",H),G&&G.p&&(!z||m[0]&8388608)&&te(G,ue,g,g[23],z?ne(ue,g[23],m,null):le(g[23]),null),g[7]?D?D.p(g,m):(D=hl(g),D.c(),D.m(O.parentNode,O)):D&&(D.d(1),D=null)},i(g){z||(E(G,g),z=!0)},o(g){q(G,g),z=!1},d(g){g&&(c(e),c(W),c(O)),G&&G.d(g),D&&D.d(g),y=!1,dt(re)}}}function is(a){let e,s,t,n=a[10]("auth.checking")+"",l;return{c(){e=N("main"),s=N("section"),t=N("div"),l=de(n),this.h()},l(o){e=k(o,"MAIN",{class:!0});var i=v(e);s=k(i,"SECTION",{class:!0});var $=v(s);t=k($,"DIV",{class:!0});var h=v(t);l=he(h,n),h.forEach(c),$.forEach(c),i.forEach(c),this.h()},h(){r(t,"class","auth-loading svelte-4sq9id"),r(s,"class","auth-card svelte-4sq9id"),r(e,"class","auth-page svelte-4sq9id")},m(o,i){Z(o,e,i),u(e,s),u(s,t),u(t,l)},p(o,i){i[0]&1024&&n!==(n=o[10]("auth.checking")+"")&&ce(l,n)},i:lt,o:lt,d(o){o&&c(e)}}}function rs(a){let e,s,t,n='<svg class="brand-logo svelte-4sq9id" width="24" height="24" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="64" height="64" rx="14" fill="currentColor"></rect><rect x="10" y="38" width="12" height="16" rx="3" fill="white"></rect><rect x="26" y="26" width="12" height="28" rx="3" fill="white"></rect><rect x="42" y="14" width="12" height="40" rx="3" fill="white"></rect></svg> <span class="brand-name svelte-4sq9id">AIUsage</span>',l,o,i=a[10]("auth.locked")+"",$,h,f,_=a[10]("auth.lockedHint")+"",d,A,b,T,Y,H,V,C=(a[6]?a[10]("auth.unlocking"):a[10]("auth.unlock"))+"",K,W,O,z,y,re=a[10]("auth.backHome")+"",ue,G,D,g=a[5]&&_l(a);return{c(){e=N("main"),s=N("section"),t=N("a"),t.innerHTML=n,l=P(),o=N("h1"),$=de(i),h=P(),f=N("p"),d=de(_),A=P(),b=N("form"),T=N("input"),H=P(),V=N("button"),K=de(C),O=P(),g&&g.c(),z=P(),y=N("a"),ue=de(re),this.h()},l(m){e=k(m,"MAIN",{class:!0});var M=v(e);s=k(M,"SECTION",{class:!0});var S=v(s);t=k(S,"A",{href:!0,class:!0,"data-svelte-h":!0}),Ye(t)!=="svelte-9cdv68"&&(t.innerHTML=n),l=B(S),o=k(S,"H1",{class:!0});var fe=v(o);$=he(fe,i),fe.forEach(c),h=B(S),f=k(S,"P",{class:!0});var Ne=v(f);d=he(Ne,_),Ne.forEach(c),A=B(S),b=k(S,"FORM",{class:!0});var Q=v(b);T=k(Q,"INPUT",{type:!0,placeholder:!0,autocomplete:!0,class:!0}),H=B(Q),V=k(Q,"BUTTON",{type:!0,class:!0});var qe=v(V);K=he(qe,C),qe.forEach(c),Q.forEach(c),O=B(S),g&&g.l(S),z=B(S),y=k(S,"A",{class:!0,href:!0});var Te=v(y);ue=he(Te,re),Te.forEach(c),S.forEach(c),M.forEach(c),this.h()},h(){r(t,"href","/"),r(t,"class","brand auth-brand svelte-4sq9id"),r(o,"class","svelte-4sq9id"),r(f,"class","svelte-4sq9id"),r(T,"type","password"),r(T,"placeholder",Y=a[10]("auth.password")),r(T,"autocomplete","current-password"),T.autofocus=!0,r(T,"class","svelte-4sq9id"),r(V,"type","submit"),V.disabled=W=a[6]||!a[4],r(V,"class","svelte-4sq9id"),r(b,"class","svelte-4sq9id"),r(y,"class","auth-home svelte-4sq9id"),r(y,"href","/"),r(s,"class","auth-card svelte-4sq9id"),r(e,"class","auth-page svelte-4sq9id")},m(m,M){Z(m,e,M),u(e,s),u(s,t),u(s,l),u(s,o),u(o,$),u(s,h),u(s,f),u(f,d),u(s,A),u(s,b),u(b,T),ht(T,a[4]),u(b,H),u(b,V),u(V,K),u(s,O),g&&g.m(s,null),u(s,z),u(s,y),u(y,ue),T.focus(),G||(D=[ke(T,"input",a[25]),ke(b,"submit",gl(a[15]))],G=!0)},p(m,M){M[0]&1024&&i!==(i=m[10]("auth.locked")+"")&&ce($,i),M[0]&1024&&_!==(_=m[10]("auth.lockedHint")+"")&&ce(d,_),M[0]&1024&&Y!==(Y=m[10]("auth.password"))&&r(T,"placeholder",Y),M[0]&16&&T.value!==m[4]&&ht(T,m[4]),M[0]&1088&&C!==(C=(m[6]?m[10]("auth.unlocking"):m[10]("auth.unlock"))+"")&&ce(K,C),M[0]&80&&W!==(W=m[6]||!m[4])&&(V.disabled=W),m[5]?g?g.p(m,M):(g=_l(m),g.c(),g.m(s,z)):g&&(g.d(1),g=null),M[0]&1024&&re!==(re=m[10]("auth.backHome")+"")&&ce(ue,re)},i:lt,o:lt,d(m){m&&c(e),g&&g.d(),G=!1,dt(D)}}}function nl(a){let e,s="AIUsage";return{c(){e=N("span"),e.textContent=s,this.h()},l(t){e=k(t,"SPAN",{class:!0,"data-svelte-h":!0}),Ye(e)!=="svelte-u9et1t"&&(e.textContent=s),this.h()},h(){r(e,"class","brand-name svelte-4sq9id")},m(t,n){Z(t,e,n)},d(t){t&&c(e)}}}function sl(a){let e,s=a[10](a[30].key)+"",t;return{c(){e=N("div"),t=de(s),this.h()},l(n){e=k(n,"DIV",{class:!0});var l=v(e);t=he(l,s),l.forEach(c),this.h()},h(){r(e,"class","group-label svelte-4sq9id")},m(n,l){Z(n,e,l),u(e,t)},p(n,l){l[0]&1024&&s!==(s=n[10](n[30].key)+"")&&ce(t,s)},d(n){n&&c(e)}}}function al(a){let e,s=a[10](a[33].key)+"",t;return{c(){e=N("span"),t=de(s),this.h()},l(n){e=k(n,"SPAN",{class:!0});var l=v(e);t=he(l,s),l.forEach(c),this.h()},h(){r(e,"class","nav-label svelte-4sq9id")},m(n,l){Z(n,e,l),u(e,t)},p(n,l){l[0]&1024&&s!==(s=n[10](n[33].key)+"")&&ce(t,s)},d(n){n&&c(e)}}}function ol(a){let e,s,t,n,l,o;var i=a[33].icon;function $(f,_){return{props:{size:16,strokeWidth:1.75}}}i&&(t=Xe(i,$()));let h=!a[2]&&al(a);return{c(){e=N("a"),s=N("span"),t&&F(t.$$.fragment),n=P(),h&&h.c(),this.h()},l(f){e=k(f,"A",{href:!0,class:!0,title:!0});var _=v(e);s=k(_,"SPAN",{class:!0});var d=v(s);t&&J(t.$$.fragment,d),d.forEach(c),n=B(_),h&&h.l(_),_.forEach(c),this.h()},h(){r(s,"class","nav-icon svelte-4sq9id"),r(e,"href",a[33].path),r(e,"class","nav-item svelte-4sq9id"),r(e,"title",l=a[2]?a[10](a[33].key):void 0),ye(e,"active",a[1].url.pathname===a[33].path)},m(f,_){Z(f,e,_),u(e,s),t&&R(t,s,null),u(e,n),h&&h.m(e,null),o=!0},p(f,_){if(i!==(i=f[33].icon)){if(t){Fe();const d=t;q(d.$$.fragment,1,0,()=>{j(d,1)}),Re()}i?(t=Xe(i,$()),F(t.$$.fragment),E(t.$$.fragment,1),R(t,s,null)):t=null}f[2]?h&&(h.d(1),h=null):h?h.p(f,_):(h=al(f),h.c(),h.m(e,null)),(!o||_[0]&1028&&l!==(l=f[2]?f[10](f[33].key):void 0))&&r(e,"title",l),(!o||_[0]&8194)&&ye(e,"active",f[1].url.pathname===f[33].path)},i(f){o||(t&&E(t.$$.fragment,f),o=!0)},o(f){t&&q(t.$$.fragment,f),o=!1},d(f){f&&c(e),t&&j(t),h&&h.d()}}}function il(a){let e,s,t,n,l=!a[2]&&sl(a),o=xe(a[30].items),i=[];for(let h=0;h<o.length;h+=1)i[h]=ol(tl(a,o,h));const $=h=>q(i[h],1,1,()=>{i[h]=null});return{c(){e=N("div"),l&&l.c(),s=P();for(let h=0;h<i.length;h+=1)i[h].c();t=P(),this.h()},l(h){e=k(h,"DIV",{class:!0});var f=v(e);l&&l.l(f),s=B(f);for(let _=0;_<i.length;_+=1)i[_].l(f);t=B(f),f.forEach(c),this.h()},h(){r(e,"class","nav-group svelte-4sq9id")},m(h,f){Z(h,e,f),l&&l.m(e,null),u(e,s);for(let _=0;_<i.length;_+=1)i[_]&&i[_].m(e,null);u(e,t),n=!0},p(h,f){if(h[2]?l&&(l.d(1),l=null):l?l.p(h,f):(l=sl(h),l.c(),l.m(e,s)),f[0]&9222){o=xe(h[30].items);let _;for(_=0;_<o.length;_+=1){const d=tl(h,o,_);i[_]?(i[_].p(d,f),E(i[_],1)):(i[_]=ol(d),i[_].c(),E(i[_],1),i[_].m(e,t))}for(Fe(),_=o.length;_<i.length;_+=1)$(_);Re()}},i(h){if(!n){for(let f=0;f<o.length;f+=1)E(i[f]);n=!0}},o(h){i=i.filter($l);for(let f=0;f<i.length;f+=1)q(i[f]);n=!1},d(h){h&&c(e),l&&l.d(),Mt(i,h)}}}function rl(a){let e,s=a[10](`theme.${a[12]}`)+"",t;return{c(){e=N("span"),t=de(s),this.h()},l(n){e=k(n,"SPAN",{class:!0});var l=v(e);t=he(l,s),l.forEach(c),this.h()},h(){r(e,"class","ctrl-label svelte-4sq9id")},m(n,l){Z(n,e,l),u(e,t)},p(n,l){l[0]&5120&&s!==(s=n[10](`theme.${n[12]}`)+"")&&ce(t,s)},d(n){n&&c(e)}}}function ul(a){let e,s=a[11]==="en"?"中文":"English",t;return{c(){e=N("span"),t=de(s),this.h()},l(n){e=k(n,"SPAN",{class:!0});var l=v(e);t=he(l,s),l.forEach(c),this.h()},h(){r(e,"class","ctrl-label svelte-4sq9id")},m(n,l){Z(n,e,l),u(e,t)},p(n,l){l[0]&2048&&s!==(s=n[11]==="en"?"中文":"English")&&ce(t,s)},d(n){n&&c(e)}}}function us(a){let e,s;return e=new Bn({props:{size:14,strokeWidth:1.75}}),{c(){F(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,n){R(e,t,n),s=!0},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){j(e,t)}}}function fs(a){let e,s;return e=new On({props:{size:14,strokeWidth:1.75}}),{c(){F(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,n){R(e,t,n),s=!0},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){j(e,t)}}}function fl(a){let e,s=a[10]("nav.collapse")+"",t;return{c(){e=N("span"),t=de(s),this.h()},l(n){e=k(n,"SPAN",{class:!0});var l=v(e);t=he(l,s),l.forEach(c),this.h()},h(){r(e,"class","ctrl-label svelte-4sq9id")},m(n,l){Z(n,e,l),u(e,t)},p(n,l){l[0]&1024&&s!==(s=n[10]("nav.collapse")+"")&&ce(t,s)},d(n){n&&c(e)}}}function cl(a){let e,s=a[11]==="en"?"Website":"官网",t;return{c(){e=N("span"),t=de(s),this.h()},l(n){e=k(n,"SPAN",{class:!0});var l=v(e);t=he(l,s),l.forEach(c),this.h()},h(){r(e,"class","ctrl-label svelte-4sq9id")},m(n,l){Z(n,e,l),u(e,t)},p(n,l){l[0]&2048&&s!==(s=n[11]==="en"?"Website":"官网")&&ce(t,s)},d(n){n&&c(e)}}}function hl(a){let e,s,t,n,l="×",o,i,$='<svg class="brand-logo svelte-4sq9id" width="24" height="24" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="64" height="64" rx="14" fill="currentColor"></rect><rect x="10" y="38" width="12" height="16" rx="3" fill="white"></rect><rect x="26" y="26" width="12" height="28" rx="3" fill="white"></rect><rect x="42" y="14" width="12" height="40" rx="3" fill="white"></rect></svg> <span class="brand-name svelte-4sq9id">AIUsage</span>',h,f,_=a[10]("auth.unlockDashboard")+"",d,A,b,T=a[10]("auth.unlockHint")+"",Y,H,V,C,K,W,O,z=(a[6]?a[10]("auth.unlocking"):a[10]("auth.unlock"))+"",y,re,ue,G,D,g=a[5]&&dl(a);return{c(){e=N("div"),s=P(),t=N("section"),n=N("button"),n.textContent=l,o=P(),i=N("div"),i.innerHTML=$,h=P(),f=N("h1"),d=de(_),A=P(),b=N("p"),Y=de(T),H=P(),V=N("form"),C=N("input"),W=P(),O=N("button"),y=de(z),ue=P(),g&&g.c(),this.h()},l(m){e=k(m,"DIV",{class:!0}),v(e).forEach(c),s=B(m),t=k(m,"SECTION",{class:!0,role:!0,"aria-modal":!0,"aria-labelledby":!0});var M=v(t);n=k(M,"BUTTON",{class:!0,type:!0,"aria-label":!0,"data-svelte-h":!0}),Ye(n)!=="svelte-1irhmtp"&&(n.textContent=l),o=B(M),i=k(M,"DIV",{class:!0,"data-svelte-h":!0}),Ye(i)!=="svelte-1dvmegl"&&(i.innerHTML=$),h=B(M),f=k(M,"H1",{id:!0,class:!0});var S=v(f);d=he(S,_),S.forEach(c),A=B(M),b=k(M,"P",{class:!0});var fe=v(b);Y=he(fe,T),fe.forEach(c),H=B(M),V=k(M,"FORM",{class:!0});var Ne=v(V);C=k(Ne,"INPUT",{type:!0,placeholder:!0,autocomplete:!0,class:!0}),W=B(Ne),O=k(Ne,"BUTTON",{type:!0,class:!0});var Q=v(O);y=he(Q,z),Q.forEach(c),Ne.forEach(c),ue=B(M),g&&g.l(M),M.forEach(c),this.h()},h(){r(e,"class","auth-modal-backdrop svelte-4sq9id"),r(n,"class","auth-close svelte-4sq9id"),r(n,"type","button"),r(n,"aria-label","Close"),r(i,"class","brand auth-brand svelte-4sq9id"),r(f,"id","unlock-title"),r(f,"class","svelte-4sq9id"),r(b,"class","svelte-4sq9id"),r(C,"type","password"),r(C,"placeholder",K=a[10]("auth.password")),r(C,"autocomplete","current-password"),C.autofocus=!0,r(C,"class","svelte-4sq9id"),r(O,"type","submit"),O.disabled=re=a[6]||!a[4],r(O,"class","svelte-4sq9id"),r(V,"class","svelte-4sq9id"),r(t,"class","auth-card auth-modal svelte-4sq9id"),r(t,"role","dialog"),r(t,"aria-modal","true"),r(t,"aria-labelledby","unlock-title")},m(m,M){Z(m,e,M),Z(m,s,M),Z(m,t,M),u(t,n),u(t,o),u(t,i),u(t,h),u(t,f),u(f,d),u(t,A),u(t,b),u(b,Y),u(t,H),u(t,V),u(V,C),ht(C,a[4]),u(V,W),u(V,O),u(O,y),u(t,ue),g&&g.m(t,null),C.focus(),G||(D=[ke(e,"click",a[19]),ke(n,"click",a[19]),ke(C,"input",a[26]),ke(V,"submit",gl(a[15]))],G=!0)},p(m,M){M[0]&1024&&_!==(_=m[10]("auth.unlockDashboard")+"")&&ce(d,_),M[0]&1024&&T!==(T=m[10]("auth.unlockHint")+"")&&ce(Y,T),M[0]&1024&&K!==(K=m[10]("auth.password"))&&r(C,"placeholder",K),M[0]&16&&C.value!==m[4]&&ht(C,m[4]),M[0]&1088&&z!==(z=(m[6]?m[10]("auth.unlocking"):m[10]("auth.unlock"))+"")&&ce(y,z),M[0]&80&&re!==(re=m[6]||!m[4])&&(O.disabled=re),m[5]?g?g.p(m,M):(g=dl(m),g.c(),g.m(t,null)):g&&(g.d(1),g=null)},d(m){m&&(c(e),c(s),c(t)),g&&g.d(),G=!1,dt(D)}}}function dl(a){let e,s;return{c(){e=N("div"),s=de(a[5]),this.h()},l(t){e=k(t,"DIV",{class:!0});var n=v(e);s=he(n,a[5]),n.forEach(c),this.h()},h(){r(e,"class","auth-error svelte-4sq9id")},m(t,n){Z(t,e,n),u(e,s)},p(t,n){n[0]&32&&ce(s,t[5])},d(t){t&&c(e)}}}function _l(a){let e,s;return{c(){e=N("div"),s=de(a[5]),this.h()},l(t){e=k(t,"DIV",{class:!0});var n=v(e);s=he(n,a[5]),n.forEach(c),this.h()},h(){r(e,"class","auth-error svelte-4sq9id")},m(t,n){Z(t,e,n),u(e,s)},p(t,n){n[0]&32&&ce(s,t[5])},d(t){t&&c(e)}}}function cs(a){let e,s,t,n,l,o=a[3]&&a[0]==="shell"&&ll(a);const i=[rs,is,os,as],$=[];function h(f,_){return f[9]?0:f[0]==="loading"?1:f[8]?2:3}return s=h(a),t=$[s]=i[s](a),{c(){o&&o.c(),e=P(),t.c(),n=Ue()},l(f){o&&o.l(f),e=B(f),t.l(f),n=Ue()},m(f,_){o&&o.m(f,_),Z(f,e,_),$[s].m(f,_),Z(f,n,_),l=!0},p(f,_){f[3]&&f[0]==="shell"?o?o.p(f,_):(o=ll(f),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);let d=s;s=h(f),s===d?$[s].p(f,_):(Fe(),q($[d],1,1,()=>{$[d]=null}),Re(),t=$[s],t?t.p(f,_):(t=$[s]=i[s](f),t.c()),E(t,1),t.m(n.parentNode,n))},i(f){l||(E(t),l=!0)},o(f){q(t),l=!1},d(f){f&&(c(e),c(n)),o&&o.d(f),$[s].d(f)}}}const ml="aiusage-sidebar-collapsed";function hs(a,e,s){let t,n,l,o,i,$,h;ft(a,Ml,S=>s(1,o=S)),ft(a,Al,S=>s(10,i=S)),ft(a,Sl,S=>s(11,$=S)),ft(a,At,S=>s(12,h=S));let{$$slots:f={},$$scope:_}=e;const d=[{key:"nav.group.overview",items:[{path:"/",key:"nav.home",icon:_n},{path:"/overview",key:"nav.overview",icon:vn}]},{key:"nav.group.analytics",items:[{path:"/tokens",key:"nav.tokens",icon:Kl},{path:"/cost",key:"nav.cost",icon:Xl},{path:"/models",key:"nav.models",icon:Wl}]},{key:"nav.group.activity",items:[{path:"/sessions",key:"nav.sessions",icon:Nn},{path:"/projects",key:"nav.projects",icon:an},{path:"/tool-calls",key:"nav.toolCalls",icon:ss}]},{key:"nav.group.system",items:[{path:"/quotas",key:"nav.quotas",icon:fn},{path:"/pricing",key:"nav.pricing",icon:Qn},{path:"/leaderboard",key:"nav.leaderboard",icon:es},{path:"/settings",key:"nav.settings",icon:jn},{path:"/support",key:"nav.support",icon:Rl}]}];let A=!1,b=!1;const T={system:Mn,dark:Cn,light:Gn};let Y=!0,H=!1,V=!1,C="",K="",W=!1,O=!1;async function z(){try{const S=await El();s(21,H=!!S.enabled),s(22,V=!!S.authenticated)}catch{s(21,H=!1),s(22,V=!1)}finally{s(20,Y=!1)}}async function y(){s(5,K=""),s(6,W=!0);try{await ql(C),s(22,V=!0),s(4,C=""),s(7,O=!1),Gt().then(g).catch(()=>{})}catch(S){s(5,K=S instanceof Error?S.message:i("auth.loginFailed"))}finally{s(6,W=!1)}}function re(){s(2,A=!A),typeof window<"u"&&localStorage.setItem(ml,String(A))}function ue(){s(3,b=!b)}function G(){Y||(s(7,O=!0),s(5,K=""))}function D(){s(7,O=!1),s(5,K=""),s(4,C="")}function g(S){var fe;S.displayCurrency&&Tl.set(S.displayCurrency),(fe=S.exchangeRateCache)!=null&&fe.CNY_USD&&Kt.set(S.exchangeRateCache.CNY_USD),S.exchangeRate&&Kt.set(S.exchangeRate)}Nl(()=>{Hl(),z(),Gt().then(g).catch(()=>{}),typeof window<"u"&&s(2,A=localStorage.getItem(ml)==="true")}),wl(()=>{});function m(){C=this.value,s(4,C)}function M(){C=this.value,s(4,C)}return a.$$set=S=>{"$$scope"in S&&s(23,_=S.$$scope)},a.$$.update=()=>{a.$$.dirty[0]&2&&o.url.pathname,a.$$.dirty[0]&7340034&&s(0,t=Dl({pathname:o.url.pathname,authEnabled:H,authenticated:V,authLoading:Y})),a.$$.dirty[0]&1&&s(9,n=t==="login-page"),a.$$.dirty[0]&1&&s(8,l=t==="public-home"),a.$$.dirty[0]&2&&s(3,b=!1)},[t,o,A,b,C,K,W,O,l,n,i,$,h,d,T,y,re,ue,G,D,Y,H,V,_,f,m,M]}class $s extends se{constructor(e){super(),ae(this,e,hs,cs,x,{},null,[-1,-1])}}export{$s as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as x,n as u,c as S}from"../chunks/scheduler.
|
|
1
|
+
import{s as x,n as u,c as S}from"../chunks/scheduler.DsWd5xup.js";import{S as j,i as q,d as c,s as h,a as _,b as d,c as v,e as g,f as b,g as y,h as E,t as $,j as C}from"../chunks/index.66Vu9Sio.js";import{p as H}from"../chunks/stores.Botc0ioY.js";function P(p){var f;let a,s=p[0].status+"",r,o,n,i=((f=p[0].error)==null?void 0:f.message)+"",m;return{c(){a=E("h1"),r=$(s),o=C(),n=E("p"),m=$(i)},l(e){a=v(e,"H1",{});var t=g(a);r=b(t,s),t.forEach(c),o=y(e),n=v(e,"P",{});var l=g(n);m=b(l,i),l.forEach(c)},m(e,t){_(e,a,t),d(a,r),_(e,o,t),_(e,n,t),d(n,m)},p(e,[t]){var l;t&1&&s!==(s=e[0].status+"")&&h(r,s),t&1&&i!==(i=((l=e[0].error)==null?void 0:l.message)+"")&&h(m,i)},i:u,o:u,d(e){e&&(c(a),c(o),c(n))}}}function k(p,a,s){let r;return S(p,H,o=>s(0,r=o)),[r]}class B extends j{constructor(a){super(),q(this,a,k,P,x,{})}}export{B as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as rt,c as Se,r as it}from"../chunks/scheduler.DsWd5xup.js";import{S as ft,i as ut,d as n,k as Be,l as Me,m as Ne,s as b,a as W,b as e,n as Oe,o as B,p as ct,g as p,c as u,e as c,f as m,q as Le,r as et,j as g,h,t as v,u as ze,v as ht,w as Fe}from"../chunks/index.66Vu9Sio.js";import{q as dt,e as tt}from"../chunks/api.Mv_KcGhp.js";import{h as st,b as Ce,f as lt,a as _t,s as mt,d as vt}from"../chunks/stores.BSI_cVy6.js";import{t as pt}from"../chunks/i18n.CwV3KceS.js";import{D as gt,a as Et,T as bt}from"../chunks/ToolSelector.CofvKVw2.js";function ot(t,s,o){const a=t.slice();return a[13]=s[o],a}function Tt(t){let s,o,a,l,_,k=t[4]("sessions.time")+"",D,C,E,f=t[4]("sessions.tool")+"",R,H,q,A=t[4]("sessions.model")+"",V,T,P,U=t[4]("sessions.duration")+"",M,L,X,N=t[4]("sessions.toolCalls")+"",j,r,S,$=t[4]("sessions.input")+"",K,y,z,Z=t[4]("sessions.output")+"",x,le,te,se=t[4]("sessions.cost")+"",ne,_e,G,d,J,Q,fe,oe=t[4]("common.previous")+"",re,ie,ue,Y,me=t[4]("common.page")+"",be,je,Te,we,ve=t[4]("common.of")+"",De,Pe,pe=Math.ceil(t[1].total/de)+"",ke,Re,ee,ge=t[4]("common.next")+"",He,Ve,Ie,Ue,Ye,ce=tt(t[1].sessions),O=[];for(let i=0;i<ce.length;i+=1)O[i]=at(ot(t,ce,i));return{c(){s=h("div"),o=h("table"),a=h("thead"),l=h("tr"),_=h("th"),D=v(k),C=g(),E=h("th"),R=v(f),H=g(),q=h("th"),V=v(A),T=g(),P=h("th"),M=v(U),L=g(),X=h("th"),j=v(N),r=g(),S=h("th"),K=v($),y=g(),z=h("th"),x=v(Z),le=g(),te=h("th"),ne=v(se),_e=g(),G=h("tbody");for(let i=0;i<O.length;i+=1)O[i].c();d=g(),J=h("div"),Q=h("button"),fe=v("← "),re=v(oe),ue=g(),Y=h("span"),be=v(me),je=g(),Te=v(t[0]),we=g(),De=v(ve),Pe=g(),ke=v(pe),Re=g(),ee=h("button"),He=v(ge),Ve=v(" →"),this.h()},l(i){s=u(i,"DIV",{class:!0});var I=c(s);o=u(I,"TABLE",{});var w=c(o);a=u(w,"THEAD",{});var Ee=c(a);l=u(Ee,"TR",{});var F=c(l);_=u(F,"TH",{});var Ge=c(_);D=m(Ge,k),Ge.forEach(n),C=p(F),E=u(F,"TH",{});var Je=c(E);R=m(Je,f),Je.forEach(n),H=p(F),q=u(F,"TH",{});var Ke=c(q);V=m(Ke,A),Ke.forEach(n),T=p(F),P=u(F,"TH",{});var Qe=c(P);M=m(Qe,U),Qe.forEach(n),L=p(F),X=u(F,"TH",{});var We=c(X);j=m(We,N),We.forEach(n),r=p(F),S=u(F,"TH",{});var Xe=c(S);K=m(Xe,$),Xe.forEach(n),y=p(F),z=u(F,"TH",{});var Ze=c(z);x=m(Ze,Z),Ze.forEach(n),le=p(F),te=u(F,"TH",{});var ye=c(te);ne=m(ye,se),ye.forEach(n),F.forEach(n),Ee.forEach(n),_e=p(w),G=u(w,"TBODY",{});var xe=c(G);for(let Ae=0;Ae<O.length;Ae+=1)O[Ae].l(xe);xe.forEach(n),w.forEach(n),I.forEach(n),d=p(i),J=u(i,"DIV",{class:!0});var he=c(J);Q=u(he,"BUTTON",{class:!0});var $e=c(Q);fe=m($e,"← "),re=m($e,oe),$e.forEach(n),ue=p(he),Y=u(he,"SPAN",{class:!0});var ae=c(Y);be=m(ae,me),je=p(ae),Te=m(ae,t[0]),we=p(ae),De=m(ae,ve),Pe=p(ae),ke=m(ae,pe),ae.forEach(n),Re=p(he),ee=u(he,"BUTTON",{class:!0});var qe=c(ee);He=m(qe,ge),Ve=m(qe," →"),qe.forEach(n),he.forEach(n),this.h()},h(){B(s,"class","card"),Q.disabled=ie=t[0]<=1,B(Q,"class","svelte-4jls37"),B(Y,"class","page-info mono svelte-4jls37"),ee.disabled=Ie=t[0]*de>=t[1].total,B(ee,"class","svelte-4jls37"),B(J,"class","pagination svelte-4jls37")},m(i,I){W(i,s,I),e(s,o),e(o,a),e(a,l),e(l,_),e(_,D),e(l,C),e(l,E),e(E,R),e(l,H),e(l,q),e(q,V),e(l,T),e(l,P),e(P,M),e(l,L),e(l,X),e(X,j),e(l,r),e(l,S),e(S,K),e(l,y),e(l,z),e(z,x),e(l,le),e(l,te),e(te,ne),e(o,_e),e(o,G);for(let w=0;w<O.length;w+=1)O[w]&&O[w].m(G,null);W(i,d,I),W(i,J,I),e(J,Q),e(Q,fe),e(Q,re),e(J,ue),e(J,Y),e(Y,be),e(Y,je),e(Y,Te),e(Y,we),e(Y,De),e(Y,Pe),e(Y,ke),e(J,Re),e(J,ee),e(ee,He),e(ee,Ve),Ue||(Ye=[Fe(Q,"click",t[6]),Fe(ee,"click",t[5])],Ue=!0)},p(i,I){if(I&16&&k!==(k=i[4]("sessions.time")+"")&&b(D,k),I&16&&f!==(f=i[4]("sessions.tool")+"")&&b(R,f),I&16&&A!==(A=i[4]("sessions.model")+"")&&b(V,A),I&16&&U!==(U=i[4]("sessions.duration")+"")&&b(M,U),I&16&&N!==(N=i[4]("sessions.toolCalls")+"")&&b(j,N),I&16&&$!==($=i[4]("sessions.input")+"")&&b(K,$),I&16&&Z!==(Z=i[4]("sessions.output")+"")&&b(x,Z),I&16&&se!==(se=i[4]("sessions.cost")+"")&&b(ne,se),I&130){ce=tt(i[1].sessions);let w;for(w=0;w<ce.length;w+=1){const Ee=ot(i,ce,w);O[w]?O[w].p(Ee,I):(O[w]=at(Ee),O[w].c(),O[w].m(G,null))}for(;w<O.length;w+=1)O[w].d(1);O.length=ce.length}I&16&&oe!==(oe=i[4]("common.previous")+"")&&b(re,oe),I&1&&ie!==(ie=i[0]<=1)&&(Q.disabled=ie),I&16&&me!==(me=i[4]("common.page")+"")&&b(be,me),I&1&&b(Te,i[0]),I&16&&ve!==(ve=i[4]("common.of")+"")&&b(De,ve),I&2&&pe!==(pe=Math.ceil(i[1].total/de)+"")&&b(ke,pe),I&16&&ge!==(ge=i[4]("common.next")+"")&&b(He,ge),I&3&&Ie!==(Ie=i[0]*de>=i[1].total)&&(ee.disabled=Ie)},d(i){i&&(n(s),n(d),n(J)),ht(O,i),Ue=!1,it(Ye)}}}function Dt(t){let s,o,a=t[4]("sessions.noData")+"",l,_,k,D=t[4]("sessions.noDataHint")+"",C;return{c(){s=h("div"),o=h("h2"),l=v(a),_=g(),k=h("p"),C=v(D),this.h()},l(E){s=u(E,"DIV",{class:!0});var f=c(s);o=u(f,"H2",{});var R=c(o);l=m(R,a),R.forEach(n),_=p(f),k=u(f,"P",{});var H=c(k);C=m(H,D),H.forEach(n),f.forEach(n),this.h()},h(){B(s,"class","state-msg")},m(E,f){W(E,s,f),e(s,o),e(o,l),e(s,_),e(s,k),e(k,C)},p(E,f){f&16&&a!==(a=E[4]("sessions.noData")+"")&&b(l,a),f&16&&D!==(D=E[4]("sessions.noDataHint")+"")&&b(C,D)},d(E){E&&n(s)}}}function kt(t){let s,o;return{c(){s=h("div"),o=v(t[2]),this.h()},l(a){s=u(a,"DIV",{class:!0});var l=c(s);o=m(l,t[2]),l.forEach(n),this.h()},h(){B(s,"class","state-msg error")},m(a,l){W(a,s,l),e(s,o)},p(a,l){l&4&&b(o,a[2])},d(a){a&&n(s)}}}function Ht(t){let s,o=t[4]("common.loading")+"",a;return{c(){s=h("div"),a=v(o),this.h()},l(l){s=u(l,"DIV",{class:!0});var _=c(s);a=m(_,o),_.forEach(n),this.h()},h(){B(s,"class","state-msg")},m(l,_){W(l,s,_),e(s,a)},p(l,_){_&16&&o!==(o=l[4]("common.loading")+"")&&b(a,o)},d(l){l&&n(s)}}}function at(t){let s,o,a=st(t[13].ts)+"",l,_,k,D=t[13].tool+"",C,E,f,R=t[13].model+"",H,q,A,V=nt(t[13].duration)+"",T,P,U,M=(t[13].toolCallCount??0)+"",L,X,N,j=Ce(t[13].inputTokens)+"",r,S,$,K=Ce(t[13].outputTokens)+"",y,z,Z,x=lt(t[13].cost)+"",le,te,se,ne;function _e(){return t[11](t[13])}return{c(){s=h("tr"),o=h("td"),l=v(a),_=g(),k=h("td"),C=v(D),E=g(),f=h("td"),H=v(R),q=g(),A=h("td"),T=v(V),P=g(),U=h("td"),L=v(M),X=g(),N=h("td"),r=v(j),S=g(),$=h("td"),y=v(K),z=g(),Z=h("td"),le=v(x),te=g(),this.h()},l(G){s=u(G,"TR",{class:!0});var d=c(s);o=u(d,"TD",{class:!0});var J=c(o);l=m(J,a),J.forEach(n),_=p(d),k=u(d,"TD",{});var Q=c(k);C=m(Q,D),Q.forEach(n),E=p(d),f=u(d,"TD",{class:!0});var fe=c(f);H=m(fe,R),fe.forEach(n),q=p(d),A=u(d,"TD",{class:!0});var oe=c(A);T=m(oe,V),oe.forEach(n),P=p(d),U=u(d,"TD",{class:!0});var re=c(U);L=m(re,M),re.forEach(n),X=p(d),N=u(d,"TD",{class:!0});var ie=c(N);r=m(ie,j),ie.forEach(n),S=p(d),$=u(d,"TD",{class:!0});var ue=c($);y=m(ue,K),ue.forEach(n),z=p(d),Z=u(d,"TD",{class:!0});var Y=c(Z);le=m(Y,x),Y.forEach(n),te=p(d),d.forEach(n),this.h()},h(){B(o,"class","mono"),B(f,"class","mono model svelte-4jls37"),B(A,"class","mono muted svelte-4jls37"),B(U,"class","mono"),B(N,"class","mono green"),B($,"class","mono blue"),B(Z,"class","mono accent"),B(s,"class","clickable svelte-4jls37")},m(G,d){W(G,s,d),e(s,o),e(o,l),e(s,_),e(s,k),e(k,C),e(s,E),e(s,f),e(f,H),e(s,q),e(s,A),e(A,T),e(s,P),e(s,U),e(U,L),e(s,X),e(s,N),e(N,r),e(s,S),e(s,$),e($,y),e(s,z),e(s,Z),e(Z,le),e(s,te),se||(ne=Fe(s,"click",_e),se=!0)},p(G,d){t=G,d&2&&a!==(a=st(t[13].ts)+"")&&b(l,a),d&2&&D!==(D=t[13].tool+"")&&b(C,D),d&2&&R!==(R=t[13].model+"")&&b(H,R),d&2&&V!==(V=nt(t[13].duration)+"")&&b(T,V),d&2&&M!==(M=(t[13].toolCallCount??0)+"")&&b(L,M),d&2&&j!==(j=Ce(t[13].inputTokens)+"")&&b(r,j),d&2&&K!==(K=Ce(t[13].outputTokens)+"")&&b(y,K),d&2&&x!==(x=lt(t[13].cost)+"")&&b(le,x)},d(G){G&&n(s),se=!1,ne()}}}function It(t){let s,o,a,l,_=t[4]("sessions.title")+"",k,D,C,E=t[4]("sessions.desc")+"",f,R,H,q,A,V,T,P,U,M,L;document.title=s=t[4]("sessions.title")+" — AIUsage",q=new gt({}),V=new Et({}),P=new bt({});function X(r,S){var $;return r[3]?Ht:r[2]?kt:($=r[1])!=null&&$.sessions.length?Tt:Dt}let N=X(t),j=N(t);return{c(){o=g(),a=h("div"),l=h("h1"),k=v(_),D=g(),C=h("p"),f=v(E),R=g(),H=h("div"),ze(q.$$.fragment),A=g(),ze(V.$$.fragment),T=g(),ze(P.$$.fragment),U=g(),j.c(),M=et(),this.h()},l(r){ct("svelte-1qvtsma",document.head).forEach(n),o=p(r),a=u(r,"DIV",{class:!0});var $=c(a);l=u($,"H1",{});var K=c(l);k=m(K,_),K.forEach(n),D=p($),C=u($,"P",{});var y=c(C);f=m(y,E),y.forEach(n),$.forEach(n),R=p(r),H=u(r,"DIV",{class:!0});var z=c(H);Le(q.$$.fragment,z),A=p(z),Le(V.$$.fragment,z),T=p(z),Le(P.$$.fragment,z),z.forEach(n),U=p(r),j.l(r),M=et(),this.h()},h(){B(a,"class","page-header"),B(H,"class","filter-bar")},m(r,S){W(r,o,S),W(r,a,S),e(a,l),e(l,k),e(a,D),e(a,C),e(C,f),W(r,R,S),W(r,H,S),Oe(q,H,null),e(H,A),Oe(V,H,null),e(H,T),Oe(P,H,null),W(r,U,S),j.m(r,S),W(r,M,S),L=!0},p(r,[S]){(!L||S&16)&&s!==(s=r[4]("sessions.title")+" — AIUsage")&&(document.title=s),(!L||S&16)&&_!==(_=r[4]("sessions.title")+"")&&b(k,_),(!L||S&16)&&E!==(E=r[4]("sessions.desc")+"")&&b(f,E),N===(N=X(r))&&j?j.p(r,S):(j.d(1),j=N(r),j&&(j.c(),j.m(M.parentNode,M)))},i(r){L||(Ne(q.$$.fragment,r),Ne(V.$$.fragment,r),Ne(P.$$.fragment,r),L=!0)},o(r){Me(q.$$.fragment,r),Me(V.$$.fragment,r),Me(P.$$.fragment,r),L=!1},d(r){r&&(n(o),n(a),n(R),n(H),n(U),n(M)),Be(q),Be(V),Be(P),j.d(r)}}}const de=50;function nt(t){if(!t||t<1e3)return"< 1s";const s=Math.floor(t/1e3),o=Math.floor(s/60);return o===0?`${s}s`:`${o}m ${s%60}s`}function St(t,s,o){let a,l,_,k;Se(t,_t,T=>o(8,a=T)),Se(t,mt,T=>o(9,l=T)),Se(t,vt,T=>o(10,_=T)),Se(t,pt,T=>o(4,k=T));let D=null,C=null,E=!0,f=1;async function R(){o(3,E=!0),o(2,C=null);try{o(1,D=await dt({..._,device:a,tool:l,page:f,pageSize:de}))}catch(T){o(2,C=T instanceof Error?T.message:"Failed to load data"),o(1,D=null)}finally{o(3,E=!1)}}function H(){D&&f*de<D.total&&o(0,f++,f)}function q(){f>1&&o(0,f--,f)}function A(T){const P=new URLSearchParams;l&&P.set("tool",l),a&&P.set("device",a);const U=P.toString();window.location.href=`/sessions/${encodeURIComponent(T.sessionId)}${U?`?${U}`:""}`}const V=T=>A(T);return t.$$.update=()=>{t.$$.dirty&512&&o(0,f=1),t.$$.dirty&1793&&R()},[f,D,C,E,k,H,q,A,a,l,_,V]}class Ut extends ft{constructor(s){super(),ut(this,s,St,It,rt,{})}}export{Ut as component};
|