UNPKG

cui-server

Version:

Web UI Agent Platform based on Claude Code

2 lines (1 loc) 1.82 kB
if(!self.define){let e,i={};const n=(n,c)=>(n=new URL(n+".js",c).href,i[n]||new Promise(i=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=i,document.head.appendChild(e)}else e=n,importScripts(n),i()}).then(()=>{let e=i[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e}));self.define=(c,s)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(i[r])return;let o={};const t=e=>n(e,r),a={module:{uri:r},exports:o,require:t};i[r]=Promise.all(c.map(e=>a[e]||t(e))).then(e=>(s(...e),o))}}define(["./workbox-1ea6f077"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/main-GphHe07_.css",revision:null},{url:"assets/main-I8bPlH6O.js",revision:null},{url:"favicon.svg",revision:"c028f8e723e89e3948e9517304b2d921"},{url:"icon-192x192.png",revision:"5198f0816c9ff6681851cd29c7776d8c"},{url:"icon-512x512.png",revision:"84ff966aa326c4307dfc6eee4cda5afb"},{url:"index.html",revision:"0742cc8f9b7822a55ca362a001f4eafd"},{url:"manifest.json",revision:"a5bdb7f5929f2bc902ee9cb7c6e13c85"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"favicon.svg",revision:"c028f8e723e89e3948e9517304b2d921"},{url:"icon-192x192.png",revision:"5198f0816c9ff6681851cd29c7776d8c"},{url:"icon-512x512.png",revision:"84ff966aa326c4307dfc6eee4cda5afb"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(/^https:\/\/api\./,new e.NetworkFirst({cacheName:"api-cache",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/^https:\/\/localhost:\d+\/api\//,new e.NetworkFirst({cacheName:"local-api-cache",plugins:[new e.ExpirationPlugin({maxEntries:50,maxAgeSeconds:600})]}),"GET")});