@abtnode/blocklet-services 1.16.44-beta-20250523-232943-369d21c5 → 1.16.44-beta-20250524-065731-c62fd374
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/dist/assets/{access-control-EYKfTdyZ.js → access-control-CHRw2bbp.js} +1 -1
- package/dist/assets/{add-component-core-CKSc86QZ.js → add-component-core-eEjKF53n.js} +31 -31
- package/dist/assets/{add-resource-DFFU3s6r.js → add-resource-W-ML3m5q.js} +1 -1
- package/dist/assets/{advanced-dEhSilIC.js → advanced-CPhRkaAJ.js} +1 -1
- package/dist/assets/{appearance-fl_Qmz60.js → appearance-Bgtb4-LE.js} +1 -1
- package/dist/assets/{audit-logs-T_rQofLT.js → audit-logs-DCTnwVQT.js} +1 -1
- package/dist/assets/{authorize-BAWXv5fL.js → authorize-0cAl16_K.js} +1 -1
- package/dist/assets/{branding-BaN8vHON.js → branding-6OsQw5QJ.js} +2 -2
- package/dist/assets/{branding-BTvktwMq.js → branding-Bv8Tk-Am.js} +1 -1
- package/dist/assets/{bundle-avatar-Bn82ny8E.js → bundle-avatar-WoSDDX0E.js} +1 -1
- package/dist/assets/{complete-B3gpz2H0.js → complete-BJLGhmnP.js} +1 -1
- package/dist/assets/{component-CxESL3Iu.js → component-BFi7evus.js} +1 -1
- package/dist/assets/{config-CKVskCpr.js → config-BfjiZ8-q.js} +1 -1
- package/dist/assets/{config-navigation-C40INCPl.js → config-navigation-BkfKynqT.js} +3 -3
- package/dist/assets/{config-space-CPPhaFPB.js → config-space-DID86BbB.js} +1 -1
- package/dist/assets/{confirm-Dg7hYCJT.js → confirm-BnRcXvxs.js} +1 -1
- package/dist/assets/{connect-Ctst7unk.js → connect-DJCBGsCy.js} +1 -1
- package/dist/assets/connect-DyhNsjIB.js +5 -0
- package/dist/assets/{connect-to-DOaPjxw6.js → connect-to-BYS6M9JU.js} +1 -1
- package/dist/assets/{dashboard-i-yx5Pql.js → dashboard-RTzIKcnI.js} +3 -3
- package/dist/assets/{delete-confirm-BvvDet1u.js → delete-confirm-2yiel8lV.js} +1 -1
- package/dist/assets/domain-B7QeQ3KX.js +9 -0
- package/dist/assets/{domain-action-card-DRQUwMj6.js → domain-action-card-CLEjpu-P.js} +1 -1
- package/dist/assets/domains-Bu0iN_az.js +1 -0
- package/dist/assets/dot-itVN8XTt.js +7 -0
- package/dist/assets/{email-B00NK4Kp.js → email-9sDMxuoB.js} +1 -1
- package/dist/assets/{exchange-passport-DZ1Omnfv.js → exchange-passport-CzmhafoN.js} +1 -1
- package/dist/assets/{fuel-DkJB9TXk.js → fuel-D_QIEw1n.js} +1 -1
- package/dist/assets/{gen-access-key-DME0XOB3.js → gen-access-key-BmDWpAif.js} +1 -1
- package/dist/assets/{index-C9-sIzmv.js → index-B4CzEaVv.js} +1 -1
- package/dist/assets/{index-Cf3pTZQS.js → index-B4rUFDP9.js} +1 -1
- package/dist/assets/{index-Ck-L27nB.js → index-B6g_NzxF.js} +2 -2
- package/dist/assets/{index-Diy9mBRc.js → index-BctwEFbW.js} +1 -1
- package/dist/assets/{index-DWV8Jczt.js → index-Bhwq-PC6.js} +1 -1
- package/dist/assets/{index-v_V1vBsu.js → index-Bw-rbXJI.js} +1 -1
- package/dist/assets/{index-BGbF_TCU.js → index-CGHej0Ek.js} +3 -3
- package/dist/assets/{index-Dmcajroh.js → index-CT4keHaK.js} +1 -1
- package/dist/assets/{index-BOrnIOJA.js → index-CtxraYdM.js} +1 -1
- package/dist/assets/{index-CXjHuFcg.js → index-D45FqXMt.js} +1 -1
- package/dist/assets/{index-AMPo4oen.js → index-DBBjaba5.js} +1 -1
- package/dist/assets/{index-Ddqbpb3u.js → index-DLdz4ykT.js} +1 -1
- package/dist/assets/{index-D669bu3T.js → index-DdKYu9HL.js} +4 -4
- package/dist/assets/{index-BAVIVYtT.js → index-Dq_lSUqL.js} +1 -1
- package/dist/assets/{index-C2FIN4Ee.js → index-DtsBFtZP.js} +1 -1
- package/dist/assets/{index-BnFkiSCK.js → index-Z_7QgoWt.js} +1 -1
- package/dist/assets/{invitation-DgyvRGj7.js → invitation-DG9MWQbS.js} +1 -1
- package/dist/assets/{invite-CpiILEDC.js → invite-DLCj8sz9.js} +1 -1
- package/dist/assets/{issue-passport-BtYhvb89.js → issue-passport-BWxVIA89.js} +1 -1
- package/dist/assets/{item-JiENn3N2.js → item-CUEEdtq7.js} +1 -1
- package/dist/assets/{layout-D40Fy8O5.js → layout-BpHPXY7v.js} +1 -1
- package/dist/assets/{list-vUoPUWDO.js → list-95F7XaG9.js} +1 -1
- package/dist/assets/{list-Dm4NCtd2.js → list-TUiipUoi.js} +2 -2
- package/dist/assets/{log-B2MHND50.js → log-aS7wDHYq.js} +1 -1
- package/dist/assets/{login-CGPNIfmK.js → login-BEhRbdo1.js} +1 -1
- package/dist/assets/{logo-uploader-PUDZmwys.js → logo-uploader-CLz5RPTu.js} +2 -2
- package/dist/assets/{lost-passport-CPgs6iwG.js → lost-passport-C2TUuANu.js} +1 -1
- package/dist/assets/{overview-DnOgyK55.js → overview-CSLXBT0F.js} +1 -1
- package/dist/assets/{passport-item-BugDNovJ.js → passport-item-hLzOrz7-.js} +1 -1
- package/dist/assets/{publish-resource-3814heud.js → publish-resource-BImGOxGu.js} +1 -1
- package/dist/assets/{runtime-DiYnPWFr.js → runtime-BdS45sOH.js} +1 -1
- package/dist/assets/{security-B9_Hq9IS.js → security-bFZAakv0.js} +1 -1
- package/dist/assets/setup-DMmxE-ov.js +30 -0
- package/dist/assets/{start-CGbnYNse.js → start-BXBhW0EF.js} +1 -1
- package/dist/assets/{status-Bcm8tb3P.js → status-CIwF9IiE.js} +1 -1
- package/dist/assets/{step-actions-Cg48h78A.js → step-actions-Cy_Wn9XZ.js} +1 -1
- package/dist/assets/table-tips-BP0JTpDH.js +1 -1
- package/dist/assets/{traffic-B6tOFf5s.js → traffic-Bz2-5BjC.js} +1 -1
- package/dist/assets/{transfer-DgLkTH8K.js → transfer-CZ88q7e8.js} +1 -1
- package/dist/assets/{unsubscribe-BqDBVi9S.js → unsubscribe-Dc0yE6SM.js} +1 -1
- package/dist/assets/{use-blocklet-logo-7IVWq7WH.js → use-blocklet-logo-DeL5Lmpn.js} +1 -1
- package/dist/assets/use-server-logo-CxuMvwKh.js +1 -1
- package/dist/assets/useAsync-510ntT1B.js +1 -0
- package/dist/assets/{user-center-Sntfjt65.js → user-center-3TxDrG6m.js} +1 -1
- package/dist/assets/{util-D9dsxEYk.js → util-KGAW0YJ4.js} +1 -1
- package/dist/assets/{wrap-locale-Q616uqhq.js → wrap-locale-BjqARXGJ.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +21 -21
- package/dist/assets/connect-C3we9ebX.js +0 -5
- package/dist/assets/domain-CuSKFz52.js +0 -9
- package/dist/assets/domains-QTRMAE0S.js +0 -1
- package/dist/assets/dot-DX56IFTM.js +0 -7
- package/dist/assets/setup-BaybnOtz.js +0 -30
- package/dist/assets/useAsync-Dv214fz8.js +0 -1
- package/dist/assets/useAsync-KYUBhVsb.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ay as _,_ as e,aq as i}from"./vendor-ux-did-connect-DprdyYny.js";import{C as a}from"./index-
|
|
1
|
+
import{ay as _,_ as e,aq as i}from"./vendor-ux-did-connect-DprdyYny.js";import{C as a}from"./index-B6g_NzxF.js";import{j as r}from"./vendor-mui-core-BV2FUxWJ.js";const u={en:_(a),ar:()=>e(()=>import("./ar-T0OvMFDJ.js"),[]).then(t=>_(t.default)),de:()=>e(()=>import("./de-WYW4JJdA.js"),[]).then(t=>_(t.default)),es:()=>e(()=>import("./es-DaHPJdAX.js"),[]).then(t=>_(t.default)),fr:()=>e(()=>import("./fr-Sdn9hi8k.js"),[]).then(t=>_(t.default)),hi:()=>e(()=>import("./hi-dJuR0lt2.js"),[]).then(t=>_(t.default)),id:()=>e(()=>import("./id-DuYS34H0.js"),[]).then(t=>_(t.default)),ja:()=>e(()=>import("./ja-Dh60q0r5.js"),[]).then(t=>_(t.default)),ko:()=>e(()=>import("./ko-CoqvBZUf.js"),[]).then(t=>_(t.default)),pt:()=>e(()=>import("./pt-DCcbs0d0.js"),[]).then(t=>_(t.default)),ru:()=>e(()=>import("./ru-WYTV5VzH.js"),[]).then(t=>_(t.default)),th:()=>e(()=>import("./th-Da4lMKTX.js"),[]).then(t=>_(t.default)),vi:()=>e(()=>import("./vi-BxzaqoH9.js"),[]).then(t=>_(t.default)),"zh-TW":()=>e(()=>import("./zh-tw-BNgoHsYW.js"),[]).then(t=>_(t.default)),zh:()=>e(()=>import("./zh-Do6onry4.js"),[]).then(t=>_(t.default))};function l(t){return function(o){return r.jsx(i,{translations:u,children:r.jsx(t,{...o})})}}export{l as w};
|
package/dist/index.html
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
background-color: transparent;
|
|
16
16
|
}
|
|
17
17
|
</style>
|
|
18
|
-
<script type="module" crossorigin src="/.well-known/service/static/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/.well-known/service/static/assets/index-B6g_NzxF.js"></script>
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-react-DEoibe3W.js">
|
|
20
20
|
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-mui-core-BV2FUxWJ.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-utils-rHXShPKm.js">
|
package/dist/service-worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
try{self["workbox:core:7.0.0"]&&_()}catch{}const ue=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},fe=ue;let R=class extends Error{constructor(e,t){const n=fe(e,t);super(n),this.name=e,this.details=t}};const de=new Set,d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},M=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),pe=s=>{for(const e of Object.keys(d))s(e)},ge={updateDetails:s=>{pe(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||M(d.googleAnalytics),getPrecacheName:s=>s||M(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||M(d.runtime),getSuffix:()=>d.suffix};function q(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function me(s,e,t,n){const a=q(e.url,t);if(e.url===a)return s.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,r);for(const c of i){const o=q(c.url,t);if(a===o)return s.match(c,n)}}let we=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};async function ye(){for(const s of de)await s()}const _e=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function Re(s){return new Promise(e=>setTimeout(e,s))}function be(){self.addEventListener("activate",()=>self.clients.claim())}try{self["workbox:core:7.0.0"]&&_()}catch{}const Ce=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},xe=Ce;let u=class extends Error{constructor(e,t){const n=xe(e,t);super(n),this.name=e,this.details=t}};const p={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},A=s=>[p.prefix,s,p.suffix].filter(e=>e&&e.length>0).join("-"),ke=s=>{for(const e of Object.keys(p))s(e)},B={updateDetails:s=>{ke(e=>{typeof s[e]=="string"&&(p[e]=s[e])})},getGoogleAnalyticsName:s=>s||A(p.googleAnalytics),getPrecacheName:s=>s||A(p.precache),getPrefix:()=>p.prefix,getRuntimeName:s=>s||A(p.runtime),getSuffix:()=>p.suffix};function V(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:7.0.0"]&&_()}catch{}const Ee="__WB_REVISION__";function De(s){if(!s)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const r=new URL(s,location.href);return{cacheKey:r.href,url:r.href}}const{revision:e,url:t}=s;if(!t)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(!e){const r=new URL(t,location.href);return{cacheKey:r.href,url:r.href}}const n=new URL(t,location.href),a=new URL(t,location.href);return n.searchParams.set(Ee,e),{cacheKey:n.href,url:a.href}}class Ue{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;n?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return n}}}class Le{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:n})=>{const a=(n==null?void 0:n.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let C;function Pe(){if(C===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),C=!0}catch{C=!1}C=!1}return C}async function ve(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new u("cross-origin-copy-response",{origin:t});const n=s.clone(),r={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},i=Pe()?n.body:await n.blob();return new Response(i,r)}const Te=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function G(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function Ne(s,e,t,n){const a=G(e.url,t);if(e.url===a)return s.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,r);for(const c of i){const o=G(c.url,t);if(a===o)return s.match(c,n)}}class Me{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const Ae=new Set;async function Oe(){for(const s of Ae)await s()}function Se(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}let Ie=class{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new Me,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=U(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new u("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=U(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=U(e);await Se(0);const a=await this.getCacheKey(n,"write");if(!t)throw new u("cache-put-with-no-response",{url:Te(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),f=l?await Ne(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?r.clone():r)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await Oe(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:i,oldResponse:f,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}},Ke=class{constructor(e={}){this.cacheName=B.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new Ie(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new u("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}};class y extends Ke{constructor(e={}){e.cacheName=B.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(y.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const n=await t.cacheMatch(e);return n||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let n;const a=t.params||{};if(this._fallbackToNetwork){const r=a.integrity,i=e.integrity,c=!i||i===r;n=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?i||r:void 0})),r&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,n.clone()))}else throw new u("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const n=await t.fetch(e);if(!await t.cachePut(e,n.clone()))throw new u("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[n,a]of this.plugins.entries())a!==y.copyRedirectedCacheableResponsesPlugin&&(a===y.defaultPrecacheCacheabilityPlugin&&(e=n),a.cacheWillUpdate&&t++);t===0?this.plugins.push(y.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}y.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};y.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await ve(s):s}};class We{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new y({cacheName:B.getPrecacheName(e),plugins:[...t,new Le({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const n of e){typeof n=="string"?t.push(n):n&&n.revision===void 0&&t.push(n.url);const{cacheKey:a,url:r}=De(n),i=typeof n!="string"&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(r)&&this._urlsToCacheKeys.get(r)!==a)throw new u("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(r),secondEntry:a});if(typeof n!="string"&&n.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==n.integrity)throw new u("add-to-cache-list-conflicting-integrities",{url:r});this._cacheKeysToIntegrities.set(a,n.integrity)}if(this._urlsToCacheKeys.set(r,a),this._urlsToCacheModes.set(r,i),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")}
|
|
2
|
-
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return V(e,async()=>{const t=new Ue;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),l=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:l,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return V(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let O;const Z=()=>(O||(O=new We),O);try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};let D=class{constructor(e,t,n=ee){this.handler=v(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=v(e)}},$e=class extends D{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}},je=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=ee){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},x;const He=()=>(x||(x=new je,x.addFetchListener(),x.addCacheListener()),x);function Be(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new D(i,e,t)}else if(s instanceof RegExp)n=new $e(s,e,t);else if(typeof s=="function")n=new D(s,e,t);else if(s instanceof D)n=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return He().registerRoute(n),n}function Fe(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*qe(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=Fe(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class Ve extends D{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of qe(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function Ge(s){const e=Z(),t=new Ve(e,s);Be(t)}function Je(s){Z().precache(s)}function Qe(s,e){Je(s),Ge(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const ze=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Ye=ze;class Xe extends Error{constructor(e,t){const n=Ye(e,t);super(n),this.name=e,this.details=t}}function te(s){s.then(()=>{})}const Ze=(s,e)=>e.some(t=>s instanceof t);let J,Q;function et(){return J||(J=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function tt(){return Q||(Q=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const se=new WeakMap,$=new WeakMap,ne=new WeakMap,S=new WeakMap,F=new WeakMap;function st(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(m(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&se.set(t,s)}).catch(()=>{}),F.set(e,s),e}function nt(s){if($.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});$.set(s,e)}let j={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return $.get(s);if(e==="objectStoreNames")return s.objectStoreNames||ne.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function at(s){j=s(j)}function rt(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(I(this),e,...t);return ne.set(n,e.sort?e.sort():[e]),m(n)}:tt().includes(s)?function(...e){return s.apply(I(this),e),m(se.get(this))}:function(...e){return m(s.apply(I(this),e))}}function it(s){return typeof s=="function"?rt(s):(s instanceof IDBTransaction&&nt(s),Ze(s,et())?new Proxy(s,j):s)}function m(s){if(s instanceof IDBRequest)return st(s);if(S.has(s))return S.get(s);const e=it(s);return e!==s&&(S.set(s,e),F.set(e,s)),e}const I=s=>F.get(s);function ct(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=m(i);return n&&i.addEventListener("upgradeneeded",o=>{n(m(i.result),o.oldVersion,o.newVersion,m(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function ot(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),m(t).then(()=>{})}const lt=["get","getKey","getAll","getAllKeys","count"],ht=["put","add","delete","clear"],K=new Map;function z(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(K.get(e))return K.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=ht.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||lt.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let l=o.store;return n&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return K.set(e,r),r}at(s=>({...s,get:(e,t,n)=>z(e,t)||s.get(e,t,n),has:(e,t)=>!!z(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const ut="workbox-expiration",k="cache-entries",Y=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class ft{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(k,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&ot(this._cacheName)}async setTimestamp(e,t){e=Y(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(k,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(k,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(k).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&i>=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(k,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Y(e)}async getDb(){return this._db||(this._db=await ct(ut,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class dt{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new ft(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,te(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<n:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},W=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),pt=s=>{for(const e of Object.keys(g))s(e)},gt={updateDetails:s=>{pt(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||W(g.googleAnalytics),getPrecacheName:s=>s||W(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||W(g.runtime),getSuffix:()=>g.suffix},mt=new Set;function wt(s){mt.add(s)}class yt{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:n,cacheName:a,cachedResponse:r})=>{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);te(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&wt(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===gt.getRuntimeName())throw new Xe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new dt(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ae="GET",T=s=>s&&typeof s=="object"?s:{handle:s};class P{constructor(e,t,n=ae){this.handler=T(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=T(e)}}class _t extends P{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class Rt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=ae){this._defaultHandlerMap.set(t,T(e))}setCatchHandler(e){this._catchHandler=T(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new R("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new R("unregister-route-route-not-registered")}}let E;const bt=()=>(E||(E=new Rt,E.addFetchListener(),E.addCacheListener()),E);function N(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new P(i,e,t)}else if(s instanceof RegExp)n=new _t(s,e,t);else if(typeof s=="function")n=new P(s,e,t);else if(s instanceof P)n=s;else throw new R("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return bt().registerRoute(n),n}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function L(s){return typeof s=="string"?new Request(s):s}class Ct{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new we,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=L(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new R("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=L(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=L(e);await Re(0);const a=await this.getCacheKey(n,"write");if(!t)throw new R("cache-put-with-no-response",{url:_e(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),f=l?await me(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?r.clone():r)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ye(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:i,oldResponse:f,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=L(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class re{constructor(e={}){this.cacheName=ge.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new Ct(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new R("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}}class ie extends re{async _handle(e,t){let n=await t.cacheMatch(e),a;if(!n)try{n=await t.fetchAndCachePut(e)}catch(r){r instanceof Error&&(a=r)}if(!n)throw new R("no-response",{url:e.url,error:a});return n}}const xt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class ce extends re{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(xt)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new R("no-response",{url:e.url,error:r});return a}}const H="sw-update-reload-times",oe="/lastUpdateMsgTimestamps",kt=10,Et=20*1e3;let le=!1;function Dt(s,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>{s.apply(this,n)},e)}}function Ut(s,e=50,t=5e3){return new Promise(n=>{const a=Date.now(),r=()=>{s()||Date.now()-a>=t?n():setTimeout(r,e)};r()})}self.addEventListener("message",s=>{s.data&&s.data.type==="CLIENT_UPDATE_READY"&&(console.log("Service Worker: client ready"),le=!0)});async function Lt(s){const t=await(await caches.open(H)).match(`${oe}-${s}`);if(t)try{const n=await t.text();return JSON.parse(n)}catch{return[]}return[]}async function Pt(s,e){const t=await caches.open(H);if((await t.keys()).length>100){await caches.delete(H);return}const a=new Response(JSON.stringify(s));await t.put(`${oe}-${e}`,a)}const vt=Dt(async()=>{(await self.clients.matchAll()).forEach(e=>{e.postMessage({type:"SW_DOCUMENT_UPDATED"})})},100),X=/updatedAt:\s*\d+,/g,Tt={cacheDidUpdate:async({request:s,oldResponse:e,newResponse:t})=>{if(e)try{let n=await e.clone().text(),a=await t.clone().text();if(s.url.includes("__blocklet__.js")&&(n=n.replace(X,"updatedAt: ,"),a=a.replace(X,"updatedAt: ,")),n!==a){const r=Date.now(),c=(await Lt(s.url)).filter(o=>r-o<Et);if(c.length>=kt){console.warn("[SW] update too frequent, skip:",s.url);return}await Ut(()=>le),await Pt(c,s.url),console.log("[SW] document version or session updated",s.url),vt()}}catch(n){console.error("[SW] Error comparing document responses:",n)}}};Qe(([{"revision":null,"url":"assets/access-control-EYKfTdyZ.js"},{"revision":null,"url":"assets/actions-XNIU_ion.js"},{"revision":null,"url":"assets/AdapterDayjs-DnsMePpQ.js"},{"revision":null,"url":"assets/add-component-core-CKSc86QZ.js"},{"revision":null,"url":"assets/add-component-core-D-IRi6XF.css"},{"revision":null,"url":"assets/add-resource-DFFU3s6r.js"},{"revision":null,"url":"assets/addon-DGwzoD-f.js"},{"revision":null,"url":"assets/advanced-dEhSilIC.js"},{"revision":null,"url":"assets/api-BjteVZFg.js"},{"revision":null,"url":"assets/appearance-fl_Qmz60.js"},{"revision":null,"url":"assets/ar-CHiV3Onz.js"},{"revision":null,"url":"assets/ar-T0OvMFDJ.js"},{"revision":null,"url":"assets/ArrowDropDown-Dzy2X1bv.js"},{"revision":null,"url":"assets/audit-logs-T_rQofLT.js"},{"revision":null,"url":"assets/authorize-BAWXv5fL.js"},{"revision":null,"url":"assets/base-chart-D6qRW4Yg.js"},{"revision":null,"url":"assets/base32-DEQDAhbh.js"},{"revision":null,"url":"assets/branding-BaN8vHON.js"},{"revision":null,"url":"assets/branding-BTvktwMq.js"},{"revision":null,"url":"assets/bundle-avatar-Bn82ny8E.js"},{"revision":null,"url":"assets/button-D7WVH4Bm.js"},{"revision":null,"url":"assets/CheckCircle-DA1-Q3VQ.js"},{"revision":null,"url":"assets/ChevronLeft-C7-bj_BM.js"},{"revision":null,"url":"assets/ChevronRight-CA18V4hg.js"},{"revision":null,"url":"assets/click-to-copy-DsH0RQVg.js"},{"revision":null,"url":"assets/cloneDeep-UpFQ2VNg.js"},{"revision":null,"url":"assets/collapse-DRHShQoZ.js"},{"revision":null,"url":"assets/Community-BnAsVqMr.js"},{"revision":null,"url":"assets/complete-B3gpz2H0.js"},{"revision":null,"url":"assets/component-CxESL3Iu.js"},{"revision":null,"url":"assets/config-C77UXU2G.js"},{"revision":null,"url":"assets/config-CKVskCpr.js"},{"revision":null,"url":"assets/config-navigation-C40INCPl.js"},{"revision":null,"url":"assets/config-space-CPPhaFPB.js"},{"revision":null,"url":"assets/confirm-Dg7hYCJT.js"},{"revision":null,"url":"assets/connect-C3we9ebX.js"},{"revision":null,"url":"assets/connect-Ctst7unk.js"},{"revision":null,"url":"assets/connect-to-DOaPjxw6.js"},{"revision":null,"url":"assets/content-layout-fV4nyVb5.js"},{"revision":null,"url":"assets/dark-animation-DhFa8I7D.js"},{"revision":null,"url":"assets/dashboard-i-yx5Pql.js"},{"revision":null,"url":"assets/de-BWtUXhCw.js"},{"revision":null,"url":"assets/de-WYW4JJdA.js"},{"revision":null,"url":"assets/default-animation-DARmPWCI.js"},{"revision":null,"url":"assets/delete-confirm-BvvDet1u.js"},{"revision":null,"url":"assets/DeleteOutline-DIXSGJ49.js"},{"revision":null,"url":"assets/did-address-2a_50VlM.js"},{"revision":null,"url":"assets/domain-action-card-DRQUwMj6.js"},{"revision":null,"url":"assets/domain-CuSKFz52.js"},{"revision":null,"url":"assets/domains-QTRMAE0S.js"},{"revision":null,"url":"assets/Done-BHbsILFJ.js"},{"revision":null,"url":"assets/dot-DX56IFTM.js"},{"revision":null,"url":"assets/Download-CmhNaqwS.js"},{"revision":null,"url":"assets/Edit-CNRD5aKM.js"},{"revision":null,"url":"assets/EditIcon-8BXW1OHp.js"},{"revision":null,"url":"assets/email-B00NK4Kp.js"},{"revision":null,"url":"assets/Email-BirbvqZ3.js"},{"revision":null,"url":"assets/empty-spinner-BdaCO6xq.js"},{"revision":null,"url":"assets/Error-DDQf7Wzw.js"},{"revision":null,"url":"assets/es-B6GuFK3b.js"},{"revision":null,"url":"assets/es-DaHPJdAX.js"},{"revision":null,"url":"assets/exchange-passport-DZ1Omnfv.js"},{"revision":null,"url":"assets/ExpandLess-D15nWpBQ.js"},{"revision":null,"url":"assets/fr-DjhyyiEi.js"},{"revision":null,"url":"assets/fr-Sdn9hi8k.js"},{"revision":null,"url":"assets/fuel-DkJB9TXk.js"},{"revision":null,"url":"assets/gen-access-key-DME0XOB3.js"},{"revision":null,"url":"assets/get-safe-url-BdFxF8pA.js"},{"revision":null,"url":"assets/get-safe-url-DfW-qoLB.js"},{"revision":null,"url":"assets/Google-BEEvQjkX.js"},{"revision":null,"url":"assets/hi-CtKbt1J4.js"},{"revision":null,"url":"assets/hi-dJuR0lt2.js"},{"revision":null,"url":"assets/Holiday-C4KRd5t6.js"},{"revision":null,"url":"assets/Home-C8za96Ud.js"},{"revision":null,"url":"assets/home-DtVAZY8s.js"},{"revision":null,"url":"assets/id-CCuL3FP-.js"},{"revision":null,"url":"assets/id-DuYS34H0.js"},{"revision":null,"url":"assets/iframe-dmrNn49R.js"},{"revision":null,"url":"assets/index-8eXqqyHQ.js"},{"revision":null,"url":"assets/index-AgKpYdvC.css"},{"revision":null,"url":"assets/index-AMPo4oen.js"},{"revision":null,"url":"assets/index-BAVIVYtT.js"},{"revision":null,"url":"assets/index-BGbF_TCU.js"},{"revision":null,"url":"assets/index-BmXcRfZR.js"},{"revision":null,"url":"assets/index-BnFkiSCK.js"},{"revision":null,"url":"assets/index-BOrnIOJA.js"},{"revision":null,"url":"assets/index-Bs1kxR8_.js"},{"revision":null,"url":"assets/index-C0Iiqot3.css"},{"revision":null,"url":"assets/index-C2FIN4Ee.js"},{"revision":null,"url":"assets/index-C2wxmxz2.js"},{"revision":null,"url":"assets/index-C5N0NjEs.js"},{"revision":null,"url":"assets/index-C9-sIzmv.js"},{"revision":null,"url":"assets/index-CBALX7k4.js"},{"revision":null,"url":"assets/index-Cf3pTZQS.js"},{"revision":null,"url":"assets/index-Ck-L27nB.js"},{"revision":null,"url":"assets/index-CPE8Apzb.js"},{"revision":null,"url":"assets/index-CXjHuFcg.js"},{"revision":null,"url":"assets/index-D2uDBC1o.js"},{"revision":null,"url":"assets/index-D669bu3T.js"},{"revision":null,"url":"assets/index-Ddqbpb3u.js"},{"revision":null,"url":"assets/index-Diy9mBRc.js"},{"revision":null,"url":"assets/index-Dmcajroh.js"},{"revision":null,"url":"assets/index-DOq-_YXu.css"},{"revision":null,"url":"assets/index-DVQCgvFb.js"},{"revision":null,"url":"assets/index-DWV8Jczt.js"},{"revision":null,"url":"assets/index-iB7JyXwh.js"},{"revision":null,"url":"assets/index-iphP5FWX.js"},{"revision":null,"url":"assets/index-J3Tqz9ZT.js"},{"revision":null,"url":"assets/index-RsjqbOR7.js"},{"revision":null,"url":"assets/index-v_V1vBsu.js"},{"revision":null,"url":"assets/InfoOutlined-Cxpk0UTX.js"},{"revision":null,"url":"assets/invitation-DgyvRGj7.js"},{"revision":null,"url":"assets/invite-CpiILEDC.js"},{"revision":null,"url":"assets/issue-passport-BtYhvb89.js"},{"revision":null,"url":"assets/item-JiENn3N2.js"},{"revision":null,"url":"assets/ja-ACgKScTi.js"},{"revision":null,"url":"assets/ja-Dh60q0r5.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-CoqvBZUf.js"},{"revision":null,"url":"assets/ko-gvJH4zFR.js"},{"revision":null,"url":"assets/landing-page-DErP-951.js"},{"revision":null,"url":"assets/Launch-CKr_eo1b.js"},{"revision":null,"url":"assets/launch-result-message-FuvJDCvp.js"},{"revision":null,"url":"assets/LaunchOutlined-Drryv7vp.js"},{"revision":null,"url":"assets/layout-D40Fy8O5.js"},{"revision":null,"url":"assets/list-Dm4NCtd2.js"},{"revision":null,"url":"assets/list-header-xt282ZMS.js"},{"revision":null,"url":"assets/list-vUoPUWDO.js"},{"revision":null,"url":"assets/localization-Dale72UG.js"},{"revision":null,"url":"assets/Location-DxPzfR_p.js"},{"revision":null,"url":"assets/LockIcon-DFb6sSpT.js"},{"revision":null,"url":"assets/log-B2MHND50.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/logger-DRlJhYNs.js"},{"revision":null,"url":"assets/login-CGPNIfmK.js"},{"revision":null,"url":"assets/login-oauth-callback-T6cLlJXo.js"},{"revision":null,"url":"assets/logo-uploader-PUDZmwys.js"},{"revision":null,"url":"assets/lost-passport-CPgs6iwG.js"},{"revision":null,"url":"assets/lottie-error-CMOXHtBH.js"},{"revision":null,"url":"assets/lottie-loading-o-GBrhM9.js"},{"revision":null,"url":"assets/lottie-react.esm-D2t-u0YU.js"},{"revision":null,"url":"assets/lottie-web-jYmAQWuC.js"},{"revision":null,"url":"assets/lottie-welcome-C9B95FIi.js"},{"revision":null,"url":"assets/Meeting-DCL_ygud.js"},{"revision":null,"url":"assets/MoreHoriz-CKCGMlB8.js"},{"revision":null,"url":"assets/OffSick-DvgkmCUP.js"},{"revision":null,"url":"assets/omit-D2k92RIF.js"},{"revision":null,"url":"assets/open-window-xER4N-kf.js"},{"revision":null,"url":"assets/overview-DnOgyK55.js"},{"revision":null,"url":"assets/page-header-IRqa6Qvs.js"},{"revision":null,"url":"assets/passport-item-BugDNovJ.js"},{"revision":null,"url":"assets/permission-BkpeOUF9.js"},{"revision":null,"url":"assets/Phone-BkOMNOMO.js"},{"revision":null,"url":"assets/PlayArrow-CrmMAssx.js"},{"revision":null,"url":"assets/preferences-CaXn4vHX.js"},{"revision":null,"url":"assets/profile-embed-DP-NpR-H.js"},{"revision":null,"url":"assets/pt-DCcbs0d0.js"},{"revision":null,"url":"assets/pt-DzswFIpl.js"},{"revision":null,"url":"assets/publish-resource-3814heud.js"},{"revision":null,"url":"assets/QuestionMarkCircle-DTGyWFVS.js"},{"revision":null,"url":"assets/raf-schd.esm-B3j6BePR.js"},{"revision":null,"url":"assets/react-beautiful-dnd.esm-CXMxXaUW.js"},{"revision":null,"url":"assets/ru-EZJWVu3M.js"},{"revision":null,"url":"assets/ru-WYTV5VzH.js"},{"revision":null,"url":"assets/runtime-DiYnPWFr.js"},{"revision":null,"url":"assets/sdk-DeUOtvaE.js"},{"revision":null,"url":"assets/section-BB6hVmdO.js"},{"revision":null,"url":"assets/security-B9_Hq9IS.js"},{"revision":null,"url":"assets/session-E0e-X6-a.js"},{"revision":null,"url":"assets/setup-BaybnOtz.js"},{"revision":null,"url":"assets/shorten-label-DPIZ5X7v.js"},{"revision":null,"url":"assets/simple-select-CN3fsa56.js"},{"revision":null,"url":"assets/slicedToArray-DmqXMnHT.js"},{"revision":null,"url":"assets/spaces-BKlIkPYo.js"},{"revision":null,"url":"assets/start-CGbnYNse.js"},{"revision":null,"url":"assets/starting-progress-CyKicFZc.js"},{"revision":null,"url":"assets/status-Bcm8tb3P.js"},{"revision":null,"url":"assets/step-actions-Cg48h78A.js"},{"revision":null,"url":"assets/studio-BSiEg8xP.js"},{"revision":null,"url":"assets/switch-control-DzZXz9Ks.js"},{"revision":null,"url":"assets/table-tips-BP0JTpDH.js"},{"revision":null,"url":"assets/th-Bn3Ch7SK.js"},{"revision":null,"url":"assets/th-Da4lMKTX.js"},{"revision":null,"url":"assets/Timezone-D91Of94T.js"},{"revision":null,"url":"assets/traffic-B6tOFf5s.js"},{"revision":null,"url":"assets/transfer-DgLkTH8K.js"},{"revision":null,"url":"assets/TuneOutlined-Dp4gMD_8.js"},{"revision":null,"url":"assets/unsubscribe-BqDBVi9S.js"},{"revision":null,"url":"assets/use-blocklet-logo-7IVWq7WH.js"},{"revision":null,"url":"assets/use-mobile-BAa0wi8o.js"},{"revision":null,"url":"assets/use-mobile-C21X4TYN.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/use-server-logo-CxuMvwKh.js"},{"revision":null,"url":"assets/useAsync-Dv214fz8.js"},{"revision":null,"url":"assets/useAsync-KYUBhVsb.js"},{"revision":null,"url":"assets/useLocalStorage-DvcK7KsP.js"},{"revision":null,"url":"assets/user-center-Sntfjt65.js"},{"revision":null,"url":"assets/useSetState-CWq0AVWn.js"},{"revision":null,"url":"assets/util-D9dsxEYk.js"},{"revision":null,"url":"assets/util-IzAdTupy.js"},{"revision":null,"url":"assets/vendor-arcblock-CUb0jDdY.js"},{"revision":null,"url":"assets/vendor-hooks-BgUTpb6X.js"},{"revision":null,"url":"assets/vendor-mui-core-BV2FUxWJ.js"},{"revision":null,"url":"assets/vendor-mui-x-Bo-XOtzq.js"},{"revision":null,"url":"assets/vendor-react-DEoibe3W.js"},{"revision":null,"url":"assets/vendor-utils-rHXShPKm.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-DprdyYny.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-DpSGLE7B.css"},{"revision":null,"url":"assets/vi-BxzaqoH9.js"},{"revision":null,"url":"assets/vi-CgnGroV4.js"},{"revision":null,"url":"assets/ViewList-ByzGtByR.js"},{"revision":null,"url":"assets/WorkingRemotely-CpchWcXV.js"},{"revision":null,"url":"assets/wrap-locale-Q616uqhq.js"},{"revision":null,"url":"assets/zh-BWgwGxeZ.js"},{"revision":null,"url":"assets/zh-Do6onry4.js"},{"revision":null,"url":"assets/zh-tw-BNgoHsYW.js"},{"revision":null,"url":"assets/zh-tw-Ciod1pFs.js"},{"revision":"ffff6b152f70cb693e552f9089aa3fbe","url":"index.html"},{"revision":"629a14a7e3397a134f5a30b5dc735183","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"8f9b8997bf5804519b8e9f8dd1bb6ef9","url":"share/shared-bridge.html"},{"revision":"3c1549cff96a2d2baec44397663c083e","url":"share/shared-service-worker.js"},{"revision":"19d4c6a99cb8ed11e68209a612e7ec44","url":"share/workbox-v7.3.0/workbox-background-sync.prod.js"},{"revision":"d9d631014689e2b4b0e343c129671749","url":"share/workbox-v7.3.0/workbox-broadcast-update.prod.js"},{"revision":"bdb39ceb7380dcb1483c543e8856242b","url":"share/workbox-v7.3.0/workbox-cacheable-response.prod.js"},{"revision":"b84dd900eb18e8bc842666bbb740604e","url":"share/workbox-v7.3.0/workbox-core.prod.js"},{"revision":"c582a61c037234d8283eea0b97693b1b","url":"share/workbox-v7.3.0/workbox-expiration.prod.js"},{"revision":"866ba7d03bd871fa990976e4db312ab3","url":"share/workbox-v7.3.0/workbox-navigation-preload.prod.js"},{"revision":"0c55bb581ea7ce5ebfac1ce95cdda21f","url":"share/workbox-v7.3.0/workbox-offline-ga.prod.js"},{"revision":"770d183cf1f189a1ceb11ba8b5d808fa","url":"share/workbox-v7.3.0/workbox-precaching.prod.js"},{"revision":"295decbe1eb3b073a2a8d67cfbdf5692","url":"share/workbox-v7.3.0/workbox-range-requests.prod.js"},{"revision":"0bcb90677f3508ebc8a3571d14194478","url":"share/workbox-v7.3.0/workbox-recipes.prod.js"},{"revision":"4af96b70b2d20b041e2edd7ef1a8ef27","url":"share/workbox-v7.3.0/workbox-routing.prod.js"},{"revision":"c78c21b4058a1134ad3e12286c57cb2f","url":"share/workbox-v7.3.0/workbox-strategies.prod.js"},{"revision":"7eeb2d820d409221e076d31951fdcf79","url":"share/workbox-v7.3.0/workbox-streams.prod.js"},{"revision":"aa7368887577b9719a46b585d5dcc7a5","url":"share/workbox-v7.3.0/workbox-sw.js"},{"revision":"e768668db4eeefde11b58542900ab2ad","url":"share/workbox-v7.3.0/workbox-window.prod.umd.js"},{"revision":"f272d080151aa40322ce1603c6261ec1","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));be();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const he=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));N(({request:s})=>he(s)?!1:s.url.includes("/static/"),new ie({cacheName:`static-${self.registration.scope}`,plugins:[new yt({maxEntries:200})]}));N(({request:s,url:e})=>{var t,n;return(n=(t=self.blocklet)==null?void 0:t.canCache)!=null&&n.call(t,{url:e})?["image","font","style","script"].includes(s.destination):!1},new ie({cacheName:`static-resources-${self.registration.scope}`}));N(({request:s})=>he(s)?!1:s.url.includes("/images/")||s.url.includes("/router/-template-styles/"),new ce({cacheName:`StaleWhileRevalidate-${self.registration.scope}`}));const Nt={cacheKeyWillBeUsed({request:s}){const e=new URL(s.url);return s.destination==="document"&&e.pathname.startsWith("/.well-known/service/admin")?(e.pathname="/.well-known/service/admin",e.search="",e.toString()):s.url}},w={};N(({request:s})=>{const e=new URL(s.url);return s.destination==="document"&&e.pathname.startsWith("/.well-known/service/admin")?(Object.keys(w).forEach(t=>delete w[t]),!0):!w.env&&s.url.includes(".well-known/service/api/env")?(w.env=!0,!0):!w.session&&s.url.includes(".well-known/service/api/did/session")?(w.session=!0,!0):!w.blocklet&&s.url.endsWith("__blocklet__.js")?(w.blocklet=!0,!0):!1},new ce({cacheName:`documents-${self.registration.scope}`,plugins:[Tt,Nt]}));
|
|
2
|
+
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return V(e,async()=>{const t=new Ue;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),l=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:l,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return V(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let O;const Z=()=>(O||(O=new We),O);try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};let D=class{constructor(e,t,n=ee){this.handler=v(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=v(e)}},$e=class extends D{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}},je=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=ee){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},x;const He=()=>(x||(x=new je,x.addFetchListener(),x.addCacheListener()),x);function Be(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new D(i,e,t)}else if(s instanceof RegExp)n=new $e(s,e,t);else if(typeof s=="function")n=new D(s,e,t);else if(s instanceof D)n=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return He().registerRoute(n),n}function Fe(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*qe(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=Fe(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class Ve extends D{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of qe(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function Ge(s){const e=Z(),t=new Ve(e,s);Be(t)}function Je(s){Z().precache(s)}function Qe(s,e){Je(s),Ge(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const ze=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Ye=ze;class Xe extends Error{constructor(e,t){const n=Ye(e,t);super(n),this.name=e,this.details=t}}function te(s){s.then(()=>{})}const Ze=(s,e)=>e.some(t=>s instanceof t);let J,Q;function et(){return J||(J=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function tt(){return Q||(Q=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const se=new WeakMap,$=new WeakMap,ne=new WeakMap,S=new WeakMap,F=new WeakMap;function st(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(m(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&se.set(t,s)}).catch(()=>{}),F.set(e,s),e}function nt(s){if($.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});$.set(s,e)}let j={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return $.get(s);if(e==="objectStoreNames")return s.objectStoreNames||ne.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function at(s){j=s(j)}function rt(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(I(this),e,...t);return ne.set(n,e.sort?e.sort():[e]),m(n)}:tt().includes(s)?function(...e){return s.apply(I(this),e),m(se.get(this))}:function(...e){return m(s.apply(I(this),e))}}function it(s){return typeof s=="function"?rt(s):(s instanceof IDBTransaction&&nt(s),Ze(s,et())?new Proxy(s,j):s)}function m(s){if(s instanceof IDBRequest)return st(s);if(S.has(s))return S.get(s);const e=it(s);return e!==s&&(S.set(s,e),F.set(e,s)),e}const I=s=>F.get(s);function ct(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=m(i);return n&&i.addEventListener("upgradeneeded",o=>{n(m(i.result),o.oldVersion,o.newVersion,m(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function ot(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),m(t).then(()=>{})}const lt=["get","getKey","getAll","getAllKeys","count"],ht=["put","add","delete","clear"],K=new Map;function z(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(K.get(e))return K.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=ht.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||lt.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let l=o.store;return n&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return K.set(e,r),r}at(s=>({...s,get:(e,t,n)=>z(e,t)||s.get(e,t,n),has:(e,t)=>!!z(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const ut="workbox-expiration",k="cache-entries",Y=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class ft{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(k,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&ot(this._cacheName)}async setTimestamp(e,t){e=Y(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(k,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(k,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(k).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&i>=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(k,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Y(e)}async getDb(){return this._db||(this._db=await ct(ut,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class dt{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new ft(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,te(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<n:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},W=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),pt=s=>{for(const e of Object.keys(g))s(e)},gt={updateDetails:s=>{pt(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||W(g.googleAnalytics),getPrecacheName:s=>s||W(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||W(g.runtime),getSuffix:()=>g.suffix},mt=new Set;function wt(s){mt.add(s)}class yt{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:n,cacheName:a,cachedResponse:r})=>{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);te(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&wt(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===gt.getRuntimeName())throw new Xe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new dt(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ae="GET",T=s=>s&&typeof s=="object"?s:{handle:s};class P{constructor(e,t,n=ae){this.handler=T(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=T(e)}}class _t extends P{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class Rt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=ae){this._defaultHandlerMap.set(t,T(e))}setCatchHandler(e){this._catchHandler=T(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new R("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new R("unregister-route-route-not-registered")}}let E;const bt=()=>(E||(E=new Rt,E.addFetchListener(),E.addCacheListener()),E);function N(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new P(i,e,t)}else if(s instanceof RegExp)n=new _t(s,e,t);else if(typeof s=="function")n=new P(s,e,t);else if(s instanceof P)n=s;else throw new R("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return bt().registerRoute(n),n}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function L(s){return typeof s=="string"?new Request(s):s}class Ct{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new we,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=L(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new R("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=L(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=L(e);await Re(0);const a=await this.getCacheKey(n,"write");if(!t)throw new R("cache-put-with-no-response",{url:_e(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),f=l?await me(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?r.clone():r)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ye(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:i,oldResponse:f,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=L(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class re{constructor(e={}){this.cacheName=ge.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new Ct(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new R("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}}class ie extends re{async _handle(e,t){let n=await t.cacheMatch(e),a;if(!n)try{n=await t.fetchAndCachePut(e)}catch(r){r instanceof Error&&(a=r)}if(!n)throw new R("no-response",{url:e.url,error:a});return n}}const xt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class ce extends re{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(xt)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new R("no-response",{url:e.url,error:r});return a}}const H="sw-update-reload-times",oe="/lastUpdateMsgTimestamps",kt=10,Et=20*1e3;let le=!1;function Dt(s,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>{s.apply(this,n)},e)}}function Ut(s,e=50,t=5e3){return new Promise(n=>{const a=Date.now(),r=()=>{s()||Date.now()-a>=t?n():setTimeout(r,e)};r()})}self.addEventListener("message",s=>{s.data&&s.data.type==="CLIENT_UPDATE_READY"&&(console.log("Service Worker: client ready"),le=!0)});async function Lt(s){const t=await(await caches.open(H)).match(`${oe}-${s}`);if(t)try{const n=await t.text();return JSON.parse(n)}catch{return[]}return[]}async function Pt(s,e){const t=await caches.open(H);if((await t.keys()).length>100){await caches.delete(H);return}const a=new Response(JSON.stringify(s));await t.put(`${oe}-${e}`,a)}const vt=Dt(async()=>{(await self.clients.matchAll()).forEach(e=>{e.postMessage({type:"SW_DOCUMENT_UPDATED"})})},100),X=/updatedAt:\s*\d+,/g,Tt={cacheDidUpdate:async({request:s,oldResponse:e,newResponse:t})=>{if(e)try{let n=await e.clone().text(),a=await t.clone().text();if(s.url.includes("__blocklet__.js")&&(n=n.replace(X,"updatedAt: ,"),a=a.replace(X,"updatedAt: ,")),n!==a){const r=Date.now(),c=(await Lt(s.url)).filter(o=>r-o<Et);if(c.length>=kt){console.warn("[SW] update too frequent, skip:",s.url);return}await Ut(()=>le),await Pt(c,s.url),console.log("[SW] document version or session updated",s.url),vt()}}catch(n){console.error("[SW] Error comparing document responses:",n)}}};Qe(([{"revision":null,"url":"assets/access-control-CHRw2bbp.js"},{"revision":null,"url":"assets/actions-XNIU_ion.js"},{"revision":null,"url":"assets/AdapterDayjs-DnsMePpQ.js"},{"revision":null,"url":"assets/add-component-core-D-IRi6XF.css"},{"revision":null,"url":"assets/add-component-core-eEjKF53n.js"},{"revision":null,"url":"assets/add-resource-W-ML3m5q.js"},{"revision":null,"url":"assets/addon-DGwzoD-f.js"},{"revision":null,"url":"assets/advanced-CPhRkaAJ.js"},{"revision":null,"url":"assets/api-BjteVZFg.js"},{"revision":null,"url":"assets/appearance-Bgtb4-LE.js"},{"revision":null,"url":"assets/ar-CHiV3Onz.js"},{"revision":null,"url":"assets/ar-T0OvMFDJ.js"},{"revision":null,"url":"assets/ArrowDropDown-Dzy2X1bv.js"},{"revision":null,"url":"assets/audit-logs-DCTnwVQT.js"},{"revision":null,"url":"assets/authorize-0cAl16_K.js"},{"revision":null,"url":"assets/base-chart-D6qRW4Yg.js"},{"revision":null,"url":"assets/base32-DEQDAhbh.js"},{"revision":null,"url":"assets/branding-6OsQw5QJ.js"},{"revision":null,"url":"assets/branding-Bv8Tk-Am.js"},{"revision":null,"url":"assets/bundle-avatar-WoSDDX0E.js"},{"revision":null,"url":"assets/button-D7WVH4Bm.js"},{"revision":null,"url":"assets/CheckCircle-DA1-Q3VQ.js"},{"revision":null,"url":"assets/ChevronLeft-C7-bj_BM.js"},{"revision":null,"url":"assets/ChevronRight-CA18V4hg.js"},{"revision":null,"url":"assets/click-to-copy-DsH0RQVg.js"},{"revision":null,"url":"assets/cloneDeep-UpFQ2VNg.js"},{"revision":null,"url":"assets/collapse-DRHShQoZ.js"},{"revision":null,"url":"assets/Community-BnAsVqMr.js"},{"revision":null,"url":"assets/complete-BJLGhmnP.js"},{"revision":null,"url":"assets/component-BFi7evus.js"},{"revision":null,"url":"assets/config-BfjiZ8-q.js"},{"revision":null,"url":"assets/config-C77UXU2G.js"},{"revision":null,"url":"assets/config-navigation-BkfKynqT.js"},{"revision":null,"url":"assets/config-space-DID86BbB.js"},{"revision":null,"url":"assets/confirm-BnRcXvxs.js"},{"revision":null,"url":"assets/connect-DJCBGsCy.js"},{"revision":null,"url":"assets/connect-DyhNsjIB.js"},{"revision":null,"url":"assets/connect-to-BYS6M9JU.js"},{"revision":null,"url":"assets/content-layout-fV4nyVb5.js"},{"revision":null,"url":"assets/dark-animation-DhFa8I7D.js"},{"revision":null,"url":"assets/dashboard-RTzIKcnI.js"},{"revision":null,"url":"assets/de-BWtUXhCw.js"},{"revision":null,"url":"assets/de-WYW4JJdA.js"},{"revision":null,"url":"assets/default-animation-DARmPWCI.js"},{"revision":null,"url":"assets/delete-confirm-2yiel8lV.js"},{"revision":null,"url":"assets/DeleteOutline-DIXSGJ49.js"},{"revision":null,"url":"assets/did-address-2a_50VlM.js"},{"revision":null,"url":"assets/domain-action-card-CLEjpu-P.js"},{"revision":null,"url":"assets/domain-B7QeQ3KX.js"},{"revision":null,"url":"assets/domains-Bu0iN_az.js"},{"revision":null,"url":"assets/Done-BHbsILFJ.js"},{"revision":null,"url":"assets/dot-itVN8XTt.js"},{"revision":null,"url":"assets/Download-CmhNaqwS.js"},{"revision":null,"url":"assets/Edit-CNRD5aKM.js"},{"revision":null,"url":"assets/EditIcon-8BXW1OHp.js"},{"revision":null,"url":"assets/email-9sDMxuoB.js"},{"revision":null,"url":"assets/Email-BirbvqZ3.js"},{"revision":null,"url":"assets/empty-spinner-BdaCO6xq.js"},{"revision":null,"url":"assets/Error-DDQf7Wzw.js"},{"revision":null,"url":"assets/es-B6GuFK3b.js"},{"revision":null,"url":"assets/es-DaHPJdAX.js"},{"revision":null,"url":"assets/exchange-passport-CzmhafoN.js"},{"revision":null,"url":"assets/ExpandLess-D15nWpBQ.js"},{"revision":null,"url":"assets/fr-DjhyyiEi.js"},{"revision":null,"url":"assets/fr-Sdn9hi8k.js"},{"revision":null,"url":"assets/fuel-D_QIEw1n.js"},{"revision":null,"url":"assets/gen-access-key-BmDWpAif.js"},{"revision":null,"url":"assets/get-safe-url-BdFxF8pA.js"},{"revision":null,"url":"assets/get-safe-url-DfW-qoLB.js"},{"revision":null,"url":"assets/Google-BEEvQjkX.js"},{"revision":null,"url":"assets/hi-CtKbt1J4.js"},{"revision":null,"url":"assets/hi-dJuR0lt2.js"},{"revision":null,"url":"assets/Holiday-C4KRd5t6.js"},{"revision":null,"url":"assets/Home-C8za96Ud.js"},{"revision":null,"url":"assets/home-DtVAZY8s.js"},{"revision":null,"url":"assets/id-CCuL3FP-.js"},{"revision":null,"url":"assets/id-DuYS34H0.js"},{"revision":null,"url":"assets/iframe-dmrNn49R.js"},{"revision":null,"url":"assets/index-8eXqqyHQ.js"},{"revision":null,"url":"assets/index-AgKpYdvC.css"},{"revision":null,"url":"assets/index-B4CzEaVv.js"},{"revision":null,"url":"assets/index-B4rUFDP9.js"},{"revision":null,"url":"assets/index-B6g_NzxF.js"},{"revision":null,"url":"assets/index-BctwEFbW.js"},{"revision":null,"url":"assets/index-Bhwq-PC6.js"},{"revision":null,"url":"assets/index-BmXcRfZR.js"},{"revision":null,"url":"assets/index-Bs1kxR8_.js"},{"revision":null,"url":"assets/index-Bw-rbXJI.js"},{"revision":null,"url":"assets/index-C0Iiqot3.css"},{"revision":null,"url":"assets/index-C2wxmxz2.js"},{"revision":null,"url":"assets/index-C5N0NjEs.js"},{"revision":null,"url":"assets/index-CBALX7k4.js"},{"revision":null,"url":"assets/index-CGHej0Ek.js"},{"revision":null,"url":"assets/index-CPE8Apzb.js"},{"revision":null,"url":"assets/index-CT4keHaK.js"},{"revision":null,"url":"assets/index-CtxraYdM.js"},{"revision":null,"url":"assets/index-D2uDBC1o.js"},{"revision":null,"url":"assets/index-D45FqXMt.js"},{"revision":null,"url":"assets/index-DBBjaba5.js"},{"revision":null,"url":"assets/index-DdKYu9HL.js"},{"revision":null,"url":"assets/index-DLdz4ykT.js"},{"revision":null,"url":"assets/index-DOq-_YXu.css"},{"revision":null,"url":"assets/index-Dq_lSUqL.js"},{"revision":null,"url":"assets/index-DtsBFtZP.js"},{"revision":null,"url":"assets/index-DVQCgvFb.js"},{"revision":null,"url":"assets/index-iB7JyXwh.js"},{"revision":null,"url":"assets/index-iphP5FWX.js"},{"revision":null,"url":"assets/index-J3Tqz9ZT.js"},{"revision":null,"url":"assets/index-RsjqbOR7.js"},{"revision":null,"url":"assets/index-Z_7QgoWt.js"},{"revision":null,"url":"assets/InfoOutlined-Cxpk0UTX.js"},{"revision":null,"url":"assets/invitation-DG9MWQbS.js"},{"revision":null,"url":"assets/invite-DLCj8sz9.js"},{"revision":null,"url":"assets/issue-passport-BWxVIA89.js"},{"revision":null,"url":"assets/item-CUEEdtq7.js"},{"revision":null,"url":"assets/ja-ACgKScTi.js"},{"revision":null,"url":"assets/ja-Dh60q0r5.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-CoqvBZUf.js"},{"revision":null,"url":"assets/ko-gvJH4zFR.js"},{"revision":null,"url":"assets/landing-page-DErP-951.js"},{"revision":null,"url":"assets/Launch-CKr_eo1b.js"},{"revision":null,"url":"assets/launch-result-message-FuvJDCvp.js"},{"revision":null,"url":"assets/LaunchOutlined-Drryv7vp.js"},{"revision":null,"url":"assets/layout-BpHPXY7v.js"},{"revision":null,"url":"assets/list-95F7XaG9.js"},{"revision":null,"url":"assets/list-header-xt282ZMS.js"},{"revision":null,"url":"assets/list-TUiipUoi.js"},{"revision":null,"url":"assets/localization-Dale72UG.js"},{"revision":null,"url":"assets/Location-DxPzfR_p.js"},{"revision":null,"url":"assets/LockIcon-DFb6sSpT.js"},{"revision":null,"url":"assets/log-aS7wDHYq.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/logger-DRlJhYNs.js"},{"revision":null,"url":"assets/login-BEhRbdo1.js"},{"revision":null,"url":"assets/login-oauth-callback-T6cLlJXo.js"},{"revision":null,"url":"assets/logo-uploader-CLz5RPTu.js"},{"revision":null,"url":"assets/lost-passport-C2TUuANu.js"},{"revision":null,"url":"assets/lottie-error-CMOXHtBH.js"},{"revision":null,"url":"assets/lottie-loading-o-GBrhM9.js"},{"revision":null,"url":"assets/lottie-react.esm-D2t-u0YU.js"},{"revision":null,"url":"assets/lottie-web-jYmAQWuC.js"},{"revision":null,"url":"assets/lottie-welcome-C9B95FIi.js"},{"revision":null,"url":"assets/Meeting-DCL_ygud.js"},{"revision":null,"url":"assets/MoreHoriz-CKCGMlB8.js"},{"revision":null,"url":"assets/OffSick-DvgkmCUP.js"},{"revision":null,"url":"assets/omit-D2k92RIF.js"},{"revision":null,"url":"assets/open-window-xER4N-kf.js"},{"revision":null,"url":"assets/overview-CSLXBT0F.js"},{"revision":null,"url":"assets/page-header-IRqa6Qvs.js"},{"revision":null,"url":"assets/passport-item-hLzOrz7-.js"},{"revision":null,"url":"assets/permission-BkpeOUF9.js"},{"revision":null,"url":"assets/Phone-BkOMNOMO.js"},{"revision":null,"url":"assets/PlayArrow-CrmMAssx.js"},{"revision":null,"url":"assets/preferences-CaXn4vHX.js"},{"revision":null,"url":"assets/profile-embed-DP-NpR-H.js"},{"revision":null,"url":"assets/pt-DCcbs0d0.js"},{"revision":null,"url":"assets/pt-DzswFIpl.js"},{"revision":null,"url":"assets/publish-resource-BImGOxGu.js"},{"revision":null,"url":"assets/QuestionMarkCircle-DTGyWFVS.js"},{"revision":null,"url":"assets/raf-schd.esm-B3j6BePR.js"},{"revision":null,"url":"assets/react-beautiful-dnd.esm-CXMxXaUW.js"},{"revision":null,"url":"assets/ru-EZJWVu3M.js"},{"revision":null,"url":"assets/ru-WYTV5VzH.js"},{"revision":null,"url":"assets/runtime-BdS45sOH.js"},{"revision":null,"url":"assets/sdk-DeUOtvaE.js"},{"revision":null,"url":"assets/section-BB6hVmdO.js"},{"revision":null,"url":"assets/security-bFZAakv0.js"},{"revision":null,"url":"assets/session-E0e-X6-a.js"},{"revision":null,"url":"assets/setup-DMmxE-ov.js"},{"revision":null,"url":"assets/shorten-label-DPIZ5X7v.js"},{"revision":null,"url":"assets/simple-select-CN3fsa56.js"},{"revision":null,"url":"assets/slicedToArray-DmqXMnHT.js"},{"revision":null,"url":"assets/spaces-BKlIkPYo.js"},{"revision":null,"url":"assets/start-BXBhW0EF.js"},{"revision":null,"url":"assets/starting-progress-CyKicFZc.js"},{"revision":null,"url":"assets/status-CIwF9IiE.js"},{"revision":null,"url":"assets/step-actions-Cy_Wn9XZ.js"},{"revision":null,"url":"assets/studio-BSiEg8xP.js"},{"revision":null,"url":"assets/switch-control-DzZXz9Ks.js"},{"revision":null,"url":"assets/table-tips-BP0JTpDH.js"},{"revision":null,"url":"assets/th-Bn3Ch7SK.js"},{"revision":null,"url":"assets/th-Da4lMKTX.js"},{"revision":null,"url":"assets/Timezone-D91Of94T.js"},{"revision":null,"url":"assets/traffic-Bz2-5BjC.js"},{"revision":null,"url":"assets/transfer-CZ88q7e8.js"},{"revision":null,"url":"assets/TuneOutlined-Dp4gMD_8.js"},{"revision":null,"url":"assets/unsubscribe-Dc0yE6SM.js"},{"revision":null,"url":"assets/use-blocklet-logo-DeL5Lmpn.js"},{"revision":null,"url":"assets/use-mobile-BAa0wi8o.js"},{"revision":null,"url":"assets/use-mobile-C21X4TYN.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/use-server-logo-CxuMvwKh.js"},{"revision":null,"url":"assets/useAsync-510ntT1B.js"},{"revision":null,"url":"assets/useLocalStorage-DvcK7KsP.js"},{"revision":null,"url":"assets/user-center-3TxDrG6m.js"},{"revision":null,"url":"assets/useSetState-CWq0AVWn.js"},{"revision":null,"url":"assets/util-IzAdTupy.js"},{"revision":null,"url":"assets/util-KGAW0YJ4.js"},{"revision":null,"url":"assets/vendor-arcblock-CUb0jDdY.js"},{"revision":null,"url":"assets/vendor-hooks-BgUTpb6X.js"},{"revision":null,"url":"assets/vendor-mui-core-BV2FUxWJ.js"},{"revision":null,"url":"assets/vendor-mui-x-Bo-XOtzq.js"},{"revision":null,"url":"assets/vendor-react-DEoibe3W.js"},{"revision":null,"url":"assets/vendor-utils-rHXShPKm.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-DprdyYny.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-DpSGLE7B.css"},{"revision":null,"url":"assets/vi-BxzaqoH9.js"},{"revision":null,"url":"assets/vi-CgnGroV4.js"},{"revision":null,"url":"assets/ViewList-ByzGtByR.js"},{"revision":null,"url":"assets/WorkingRemotely-CpchWcXV.js"},{"revision":null,"url":"assets/wrap-locale-BjqARXGJ.js"},{"revision":null,"url":"assets/zh-BWgwGxeZ.js"},{"revision":null,"url":"assets/zh-Do6onry4.js"},{"revision":null,"url":"assets/zh-tw-BNgoHsYW.js"},{"revision":null,"url":"assets/zh-tw-Ciod1pFs.js"},{"revision":"055ee41b4fc8297330a60559ff59f894","url":"index.html"},{"revision":"629a14a7e3397a134f5a30b5dc735183","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"8f9b8997bf5804519b8e9f8dd1bb6ef9","url":"share/shared-bridge.html"},{"revision":"3c1549cff96a2d2baec44397663c083e","url":"share/shared-service-worker.js"},{"revision":"19d4c6a99cb8ed11e68209a612e7ec44","url":"share/workbox-v7.3.0/workbox-background-sync.prod.js"},{"revision":"d9d631014689e2b4b0e343c129671749","url":"share/workbox-v7.3.0/workbox-broadcast-update.prod.js"},{"revision":"bdb39ceb7380dcb1483c543e8856242b","url":"share/workbox-v7.3.0/workbox-cacheable-response.prod.js"},{"revision":"b84dd900eb18e8bc842666bbb740604e","url":"share/workbox-v7.3.0/workbox-core.prod.js"},{"revision":"c582a61c037234d8283eea0b97693b1b","url":"share/workbox-v7.3.0/workbox-expiration.prod.js"},{"revision":"866ba7d03bd871fa990976e4db312ab3","url":"share/workbox-v7.3.0/workbox-navigation-preload.prod.js"},{"revision":"0c55bb581ea7ce5ebfac1ce95cdda21f","url":"share/workbox-v7.3.0/workbox-offline-ga.prod.js"},{"revision":"770d183cf1f189a1ceb11ba8b5d808fa","url":"share/workbox-v7.3.0/workbox-precaching.prod.js"},{"revision":"295decbe1eb3b073a2a8d67cfbdf5692","url":"share/workbox-v7.3.0/workbox-range-requests.prod.js"},{"revision":"0bcb90677f3508ebc8a3571d14194478","url":"share/workbox-v7.3.0/workbox-recipes.prod.js"},{"revision":"4af96b70b2d20b041e2edd7ef1a8ef27","url":"share/workbox-v7.3.0/workbox-routing.prod.js"},{"revision":"c78c21b4058a1134ad3e12286c57cb2f","url":"share/workbox-v7.3.0/workbox-strategies.prod.js"},{"revision":"7eeb2d820d409221e076d31951fdcf79","url":"share/workbox-v7.3.0/workbox-streams.prod.js"},{"revision":"aa7368887577b9719a46b585d5dcc7a5","url":"share/workbox-v7.3.0/workbox-sw.js"},{"revision":"e768668db4eeefde11b58542900ab2ad","url":"share/workbox-v7.3.0/workbox-window.prod.umd.js"},{"revision":"f272d080151aa40322ce1603c6261ec1","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));be();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const he=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));N(({request:s})=>he(s)?!1:s.url.includes("/static/"),new ie({cacheName:`static-${self.registration.scope}`,plugins:[new yt({maxEntries:200})]}));N(({request:s,url:e})=>{var t,n;return(n=(t=self.blocklet)==null?void 0:t.canCache)!=null&&n.call(t,{url:e})?["image","font","style","script"].includes(s.destination):!1},new ie({cacheName:`static-resources-${self.registration.scope}`}));N(({request:s})=>he(s)?!1:s.url.includes("/images/")||s.url.includes("/router/-template-styles/"),new ce({cacheName:`StaleWhileRevalidate-${self.registration.scope}`}));const Nt={cacheKeyWillBeUsed({request:s}){const e=new URL(s.url);return s.destination==="document"&&e.pathname.startsWith("/.well-known/service/admin")?(e.pathname="/.well-known/service/admin",e.search="",e.toString()):s.url}},w={};N(({request:s})=>{const e=new URL(s.url);return s.destination==="document"&&e.pathname.startsWith("/.well-known/service/admin")?(Object.keys(w).forEach(t=>delete w[t]),!0):!w.env&&s.url.includes(".well-known/service/api/env")?(w.env=!0,!0):!w.session&&s.url.includes(".well-known/service/api/did/session")?(w.session=!0,!0):!w.blocklet&&s.url.endsWith("__blocklet__.js")?(w.blocklet=!0,!0):!1},new ce({cacheName:`documents-${self.registration.scope}`,plugins:[Tt,Nt]}));
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.44-beta-
|
|
6
|
+
"version": "1.16.44-beta-20250524-065731-c62fd374",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@abtnode/analytics": "1.16.44-beta-
|
|
37
|
-
"@abtnode/auth": "1.16.44-beta-
|
|
38
|
-
"@abtnode/client": "1.16.44-beta-
|
|
39
|
-
"@abtnode/connect-storage": "1.16.44-beta-
|
|
40
|
-
"@abtnode/constant": "1.16.44-beta-
|
|
41
|
-
"@abtnode/core": "1.16.44-beta-
|
|
42
|
-
"@abtnode/cron": "1.16.44-beta-
|
|
43
|
-
"@abtnode/logger": "1.16.44-beta-
|
|
44
|
-
"@abtnode/models": "1.16.44-beta-
|
|
45
|
-
"@abtnode/router-templates": "1.16.44-beta-
|
|
46
|
-
"@abtnode/util": "1.16.44-beta-
|
|
36
|
+
"@abtnode/analytics": "1.16.44-beta-20250524-065731-c62fd374",
|
|
37
|
+
"@abtnode/auth": "1.16.44-beta-20250524-065731-c62fd374",
|
|
38
|
+
"@abtnode/client": "1.16.44-beta-20250524-065731-c62fd374",
|
|
39
|
+
"@abtnode/connect-storage": "1.16.44-beta-20250524-065731-c62fd374",
|
|
40
|
+
"@abtnode/constant": "1.16.44-beta-20250524-065731-c62fd374",
|
|
41
|
+
"@abtnode/core": "1.16.44-beta-20250524-065731-c62fd374",
|
|
42
|
+
"@abtnode/cron": "1.16.44-beta-20250524-065731-c62fd374",
|
|
43
|
+
"@abtnode/logger": "1.16.44-beta-20250524-065731-c62fd374",
|
|
44
|
+
"@abtnode/models": "1.16.44-beta-20250524-065731-c62fd374",
|
|
45
|
+
"@abtnode/router-templates": "1.16.44-beta-20250524-065731-c62fd374",
|
|
46
|
+
"@abtnode/util": "1.16.44-beta-20250524-065731-c62fd374",
|
|
47
47
|
"@arcblock/did": "1.20.11",
|
|
48
48
|
"@arcblock/did-auth": "1.20.11",
|
|
49
49
|
"@arcblock/did-ext": "1.20.11",
|
|
@@ -53,18 +53,18 @@
|
|
|
53
53
|
"@arcblock/jwt": "1.20.11",
|
|
54
54
|
"@arcblock/validator": "1.20.11",
|
|
55
55
|
"@arcblock/ws": "1.20.11",
|
|
56
|
-
"@blocklet/constant": "1.16.44-beta-
|
|
56
|
+
"@blocklet/constant": "1.16.44-beta-20250524-065731-c62fd374",
|
|
57
57
|
"@blocklet/dbhub": "^0.2.9",
|
|
58
58
|
"@blocklet/did-space-js": "^1.0.56",
|
|
59
|
-
"@blocklet/env": "1.16.44-beta-
|
|
59
|
+
"@blocklet/env": "1.16.44-beta-20250524-065731-c62fd374",
|
|
60
60
|
"@blocklet/error": "^0.2.4",
|
|
61
61
|
"@blocklet/form-builder": "^0.1.11",
|
|
62
62
|
"@blocklet/form-collector": "^0.1.8",
|
|
63
|
-
"@blocklet/images": "1.16.44-beta-
|
|
64
|
-
"@blocklet/js-sdk": "1.16.44-beta-
|
|
63
|
+
"@blocklet/images": "1.16.44-beta-20250524-065731-c62fd374",
|
|
64
|
+
"@blocklet/js-sdk": "1.16.44-beta-20250524-065731-c62fd374",
|
|
65
65
|
"@blocklet/mcp": "^1.10.2",
|
|
66
|
-
"@blocklet/meta": "1.16.44-beta-
|
|
67
|
-
"@blocklet/sdk": "1.16.44-beta-
|
|
66
|
+
"@blocklet/meta": "1.16.44-beta-20250524-065731-c62fd374",
|
|
67
|
+
"@blocklet/sdk": "1.16.44-beta-20250524-065731-c62fd374",
|
|
68
68
|
"@blocklet/theme": "^2.13.47",
|
|
69
69
|
"@blocklet/theme-builder": "^0.1.18",
|
|
70
70
|
"@blocklet/uploader-server": "^0.1.99",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"whatwg-url": "14.0.0"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
|
-
"@abtnode/ux": "1.16.44-beta-
|
|
123
|
+
"@abtnode/ux": "1.16.44-beta-20250524-065731-c62fd374",
|
|
124
124
|
"@arcblock/bridge": "^2.13.47",
|
|
125
125
|
"@arcblock/did-connect": "^2.13.47",
|
|
126
126
|
"@arcblock/icons": "^2.13.47",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"@arcblock/ux": "^2.13.47",
|
|
129
129
|
"@blocklet/launcher-layout": "^2.13.47",
|
|
130
130
|
"@blocklet/payment-react": "^1.18.46",
|
|
131
|
-
"@blocklet/tracker": "1.16.44-beta-
|
|
131
|
+
"@blocklet/tracker": "1.16.44-beta-20250524-065731-c62fd374",
|
|
132
132
|
"@blocklet/ui-react": "^2.13.47",
|
|
133
133
|
"@blocklet/uploader": "^0.1.93",
|
|
134
134
|
"@emotion/react": "^11.11.4",
|
|
@@ -206,5 +206,5 @@
|
|
|
206
206
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
207
207
|
"email": "shijun@arcblock.io"
|
|
208
208
|
},
|
|
209
|
-
"gitHead": "
|
|
209
|
+
"gitHead": "812c62f29aefa6760946a0c3e8c3e3181b6d2f3f"
|
|
210
210
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as r,ab as f,T as y,H as h,ah as x}from"./vendor-mui-core-BV2FUxWJ.js";import"./vendor-react-DEoibe3W.js";import{A as g}from"./vendor-utils-rHXShPKm.js";import{u as w}from"./useAsync-KYUBhVsb.js";import{a as C,aQ as T,C as i,b1 as j,Z as k,ao as v}from"./vendor-ux-did-connect-DprdyYny.js";import{u as P,s as S}from"./index-Ck-L27nB.js";import"./useAsync-Dv214fz8.js";import"./vendor-hooks-BgUTpb6X.js";import"./lottie-web-jYmAQWuC.js";import"./vendor-arcblock-CUb0jDdY.js";function U({children:p}){const{t:n,locale:u}=C(),{api:c,session:o}=P(),{encryptKey:l,decrypt:m}=T(),t=w(async()=>{var s;const e=new URL(window.location.href);e.pathname=g(((s=window==null?void 0:window.env)==null?void 0:s.apiPrefix)??"/","/api/did/setup/token"),e.searchParams.set("_ek_",l);const{data:a}=await c.get(e.href);return a}),d=async e=>{const a=Array.isArray(e)?e.find(s=>s.sessionToken):e;S(m(a.sessionToken));try{await o.refresh()}catch(s){k.error(s.message)}};return!t.value||t.loading||o.loading?r.jsx(i,{relative:"parent",children:r.jsx(f,{})}):o.user?p:t.error?r.jsx(i,{relative:"parent",children:r.jsx(y,{children:t.error.message})}):r.jsx(b,{popup:!0,open:!0,hideCloseButton:!0,action:"pre-setup",checkFn:c.get,checkTimeout:10*60*1e3,webWalletUrl:j(),onSuccess:d,locale:u,messages:{title:n("setup.connect.title"),scan:n("setup.connect.scan"),confirm:n("setup.connect.confirm"),success:n("setup.connect.success")},extraParams:{setup:!0,nw:t.value.url}})}U.propTypes={children:h.any.isRequired};const b=x(v)`
|
|
2
|
-
.action-info-desc {
|
|
3
|
-
padding: 0 72px;
|
|
4
|
-
}
|
|
5
|
-
`;export{U as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as o,aa as e,H as h,ah as v}from"./vendor-mui-core-BV2FUxWJ.js";import{k as C,f as k,am as b,d as B}from"./index-Ck-L27nB.js";import{D as w,a as I,b as E}from"./domain-action-card-DRQUwMj6.js";import{b2 as T}from"./vendor-ux-did-connect-DprdyYny.js";import{P as A}from"./page-header-IRqa6Qvs.js";import{r}from"./vendor-react-DEoibe3W.js";import{_ as L}from"./useSetState-CWq0AVWn.js";import{S as x}from"./button-D7WVH4Bm.js";import{S as W}from"./layout-D40Fy8O5.js";import{S as H}from"./step-actions-Cg48h78A.js";import"./vendor-utils-rHXShPKm.js";import"./vendor-arcblock-CUb0jDdY.js";import"./vendor-hooks-BgUTpb6X.js";import"./lottie-web-jYmAQWuC.js";import"./ExpandLess-D15nWpBQ.js";import"./permission-BkpeOUF9.js";import"./session-E0e-X6-a.js";import"./dot-DX56IFTM.js";import"./useAsync-Dv214fz8.js";import"./confirm-Dg7hYCJT.js";import"./index-8eXqqyHQ.js";import"./actions-XNIU_ion.js";import"./MoreHoriz-CKCGMlB8.js";import"./delete-confirm-BvvDet1u.js";import"./click-to-copy-DsH0RQVg.js";import"./util-D9dsxEYk.js";import"./InfoOutlined-Cxpk0UTX.js";import"./useAsync-KYUBhVsb.js";import"./index-CBALX7k4.js";import"./CheckCircle-DA1-Q3VQ.js";import"./content-layout-fV4nyVb5.js";import"./use-mobile-C21X4TYN.js";function d({onNext:s,onPrevious:D}){var u,f;const{t:n}=r.useContext(T),[S,p]=r.useState(!1),{blocklet:i}=C(),[l,j]=r.useState(""),y=(((i==null?void 0:i.site)||{}).domainAliases||[]).map(t=>k.replaceSlotToIp(t.value,l)),[a,m]=L({domain:"",invalidDNSDomain:null,type:"",addDomainState:{text:""}}),c=(f=(u=i.environments)==null?void 0:u.find(t=>t.key==="BLOCKLET_APP_PK"))==null?void 0:f.value,P=y.find(t=>b.isDidDomain(t));return r.useEffect(()=>{B.get(`/dns-resolve?hostname=${window.location.hostname}`).then(({data:t})=>{j(t.address||"")}).catch(t=>{console.error(t.message)})},[]),o.jsxs(_,{children:[o.jsx(e,{className:"header",children:o.jsx(A,{title:n("setup.domain.title"),subTitle:n("setup.domain.subTitle"),onClickBack:D})}),o.jsxs(e,{className:"form",sx:{display:"flex",flexDirection:"column",gap:3,overflowY:"auto"},children:[o.jsxs(e,{children:[o.jsx(e,{color:"text.primary",fontWeight:"fontWeightBold",fontSize:"1.125rem",children:o.jsx(e,{display:"inline",children:`${n("setup.domain.buyOrConnect")} (${n("common.optional")})`})}),o.jsx(e,{mt:1,children:o.jsx(I,{blocklet:i,bugDidDomainProps:{appPk:c,appId:i.appPid,siteId:i.site.id,teamDid:i.meta.did,inBlockletSetup:!0},connectDomainProps:{autoFocus:!1,appPk:c,appId:i.appPid,siteId:i.site.id,teamDid:i.meta.did,cnameDomain:P,currentIp:l,inBlockletSetup:!0,shouldCheckDomain:!0,onInputDomain:t=>{m({domain:t.domain,type:t.type}),p(t.error)},onStateChange:t=>m({addDomainState:t}),onSuccess:t=>{const g={domain:t.domain,type:t.type,nftDid:t.nftDid,chainHost:t.chainHost};m(g),s()},onError:p}})})]}),o.jsx(e,{children:o.jsx(E,{inSetup:!0,showAllDomains:!0,systemTips:o.jsx(e,{color:"text.primary",fontWeight:"fontWeightBold",fontSize:"1.125rem",mb:1,children:o.jsx(e,{display:"inline",children:n("setup.domain.skipDescription")})})})})]}),o.jsx(H,{mt:8,disabled:!!a.addDomainState.text,blocklet:i,onStartNow:()=>s("complete"),children:a.domain?o.jsx(x,{variant:"contained",loading:!!a.addDomainState.text,disabled:S||!!a.addDomainState.text||!a.domain,onClick:()=>s(),children:a.addDomainState.text||n("setup.continue")}):o.jsx(x,{variant:"contained",disabled:!!a.addDomainState.text,onClick:()=>s(),children:n("setup.continue")})})]})}function Dt(s){return o.jsx(w,{children:o.jsx(d,{...s})})}d.propTypes={onNext:h.func,onPrevious:h.func};d.defaultProps={onNext:()=>{},onPrevious:()=>{}};const _=v(W)`
|
|
2
|
-
height: 100%;
|
|
3
|
-
overflow-y: hidden;
|
|
4
|
-
|
|
5
|
-
.form {
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 100%;
|
|
8
|
-
}
|
|
9
|
-
`;export{Dt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as m}from"./vendor-react-DEoibe3W.js";import{a as n}from"./vendor-ux-did-connect-DprdyYny.js";import{G as p,D as l,M as c,f as u}from"./index-Ck-L27nB.js";import{a as x,b as d}from"./domain-action-card-DRQUwMj6.js";import{j as t,aa as k,al as f,ak as D}from"./vendor-mui-core-BV2FUxWJ.js";import"./vendor-utils-rHXShPKm.js";import"./vendor-hooks-BgUTpb6X.js";import"./lottie-web-jYmAQWuC.js";import"./vendor-arcblock-CUb0jDdY.js";import"./ExpandLess-D15nWpBQ.js";import"./permission-BkpeOUF9.js";import"./session-E0e-X6-a.js";import"./dot-DX56IFTM.js";import"./useAsync-Dv214fz8.js";import"./confirm-Dg7hYCJT.js";import"./index-8eXqqyHQ.js";import"./actions-XNIU_ion.js";import"./MoreHoriz-CKCGMlB8.js";import"./delete-confirm-BvvDet1u.js";import"./click-to-copy-DsH0RQVg.js";import"./util-D9dsxEYk.js";import"./useSetState-CWq0AVWn.js";import"./InfoOutlined-Cxpk0UTX.js";import"./useAsync-KYUBhVsb.js";import"./index-CBALX7k4.js";import"./CheckCircle-DA1-Q3VQ.js";function h(){const{blocklet:o,actions:{updateBlockletDomainAliases:s}}=p(),{inService:r}=l(),{t:e}=n(),a=m.useMemo(()=>{let i=!0;return c(o)&&(i=i&&r),i},[r,o]);return t.jsxs(k,{component:f,sx:{maxWidth:820},gap:3,children:[t.jsxs(t.Fragment,{children:[u.isAccessible(o.status)===!1&&t.jsx(D,{severity:"warning",children:e("blocklet.router.noRunning")}),a&&t.jsx(x,{blocklet:o,updateBlockletDomainAliases:s,connectDomainProps:{shouldCheckDomain:!0}})]}),t.jsx(d,{showAllDomains:!0,updateBlockletDomainAliases:s})]})}h.propTypes={};export{h as default};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{z as m}from"./vendor-hooks-BgUTpb6X.js";import{r as v}from"./vendor-react-DEoibe3W.js";import{r as y}from"./useAsync-Dv214fz8.js";import{ah as p}from"./vendor-mui-core-BV2FUxWJ.js";var c={};Object.defineProperty(c,"__esModule",{value:!0});var e=m,i=v,b=e.__importDefault(y()),A=function(r,t){t===void 0&&(t=[]);var a=i.useState(0),l=a[0],_=a[1],s=b.default(r,e.__spreadArrays(t,[l])),o=s.loading,d=i.useCallback(function(){o||_(function(f){return f+1})},e.__spreadArrays(t,[o]));return e.__assign(e.__assign({},s),{retry:d})},D=c.default=A;const n={success:"#3ab39d",error:"#D0021B"},u="10px",k=p.div`
|
|
2
|
-
display: inline-block;
|
|
3
|
-
min-width: ${r=>r.size||u};
|
|
4
|
-
min-height: ${r=>r.size||u};
|
|
5
|
-
background-color: ${r=>n[r.color]||r.color||n.success};
|
|
6
|
-
border-radius: 100%;
|
|
7
|
-
`;export{k as D,D as _};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/connect-C3we9ebX.js","assets/vendor-mui-core-BV2FUxWJ.js","assets/vendor-react-DEoibe3W.js","assets/vendor-utils-rHXShPKm.js","assets/useAsync-KYUBhVsb.js","assets/useAsync-Dv214fz8.js","assets/vendor-hooks-BgUTpb6X.js","assets/vendor-ux-did-connect-DprdyYny.js","assets/lottie-web-jYmAQWuC.js","assets/vendor-ux-did-connect-DpSGLE7B.css","assets/index-Ck-L27nB.js","assets/vendor-arcblock-CUb0jDdY.js","assets/index-DOq-_YXu.css","assets/config-CKVskCpr.js","assets/index-BnFkiSCK.js","assets/Done-BHbsILFJ.js","assets/collapse-DRHShQoZ.js","assets/Google-BEEvQjkX.js","assets/cloneDeep-UpFQ2VNg.js","assets/logo-uploader-PUDZmwys.js","assets/index-DVQCgvFb.js","assets/page-header-IRqa6Qvs.js","assets/layout-D40Fy8O5.js","assets/content-layout-fV4nyVb5.js","assets/step-actions-Cg48h78A.js","assets/use-mobile-C21X4TYN.js","assets/button-D7WVH4Bm.js","assets/index-Ddqbpb3u.js","assets/config-space-CPPhaFPB.js","assets/spaces-BKlIkPYo.js","assets/api-BjteVZFg.js","assets/connect-to-DOaPjxw6.js","assets/index-8eXqqyHQ.js","assets/DeleteOutline-DIXSGJ49.js","assets/domain-CuSKFz52.js","assets/domain-action-card-DRQUwMj6.js","assets/ExpandLess-D15nWpBQ.js","assets/permission-BkpeOUF9.js","assets/session-E0e-X6-a.js","assets/dot-DX56IFTM.js","assets/confirm-Dg7hYCJT.js","assets/actions-XNIU_ion.js","assets/MoreHoriz-CKCGMlB8.js","assets/delete-confirm-BvvDet1u.js","assets/click-to-copy-DsH0RQVg.js","assets/util-D9dsxEYk.js","assets/useSetState-CWq0AVWn.js","assets/InfoOutlined-Cxpk0UTX.js","assets/index-CBALX7k4.js","assets/CheckCircle-DA1-Q3VQ.js","assets/access-control-EYKfTdyZ.js","assets/config-C77UXU2G.js","assets/fuel-DkJB9TXk.js","assets/Launch-CKr_eo1b.js","assets/did-address-2a_50VlM.js","assets/complete-B3gpz2H0.js","assets/launch-result-message-FuvJDCvp.js","assets/get-safe-url-DfW-qoLB.js","assets/starting-progress-CyKicFZc.js","assets/addon-DGwzoD-f.js","assets/QuestionMarkCircle-DTGyWFVS.js","assets/use-server-logo-CxuMvwKh.js","assets/use-mobile-BAa0wi8o.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a as U,aT as q,j as N,_ as m}from"./vendor-ux-did-connect-DprdyYny.js";import{j as e,a7 as X,ah as V,e as G,bD as J,aa as Y,ab as ee,b6 as te}from"./vendor-mui-core-BV2FUxWJ.js";import{r as i,h as se,f as ae,i as ne,j as h,k as oe}from"./vendor-react-DEoibe3W.js";import{B as re,z as ie,A as n,_ as le,ad as ce}from"./vendor-utils-rHXShPKm.js";import{C as pe}from"./config-space-CPPhaFPB.js";import{H as ue}from"./addon-DGwzoD-f.js";import{S as de,L as he,c as S}from"./vendor-arcblock-CUb0jDdY.js";import{r as me,k as fe,u as _e,t as g,v as Le,w as xe,x as $,N as Ce,f as ge,S as Ee}from"./index-Ck-L27nB.js";import{g as ye}from"./get-safe-url-DfW-qoLB.js";import{y as ve}from"./vendor-hooks-BgUTpb6X.js";import{u as Pe}from"./use-server-logo-CxuMvwKh.js";const Se=s=>i.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},i.createElement("path",{d:"M4.00572 31C3.25866 31 2.53839 30.7217 1.98537 30.2194C1.43235 29.7171 1.08623 29.0269 1.01451 28.2833L1.00049 27.9948V5.95637C1.00052 5.2093 1.27881 4.48903 1.78109 3.93601C2.28336 3.38299 2.9736 3.03688 3.71722 2.96516L4.00572 2.95113H13.0214C13.7682 2.95112 14.4882 3.22913 15.0412 3.73099C15.5941 4.23285 15.9405 4.92261 16.0126 5.66586L16.0267 5.95637V6.46526L20.4123 1.91934C20.9292 1.38325 21.6267 1.05817 22.3696 1.00708C23.1125 0.956001 23.8479 1.18256 24.4333 1.64285L24.6657 1.84521L30.1893 7.30472C30.7197 7.82899 31.0362 8.53173 31.0773 9.27635C31.1184 10.021 30.8812 10.7543 30.4117 11.3337L30.2054 11.5661L25.5753 15.9738H26.0441C26.7909 15.9738 27.5109 16.2518 28.0639 16.7537C28.6168 17.2555 28.9631 17.9453 29.0353 18.6886L29.0494 18.9791V27.9948C29.0494 28.7415 28.7714 29.4615 28.2695 30.0145C27.7676 30.5675 27.0779 30.9138 26.3346 30.986L26.0441 31H4.00572ZM14.0232 17.9773H3.00398V27.9948C3.00388 28.1993 3.06641 28.399 3.18317 28.567C3.29993 28.735 3.46533 28.8632 3.65712 28.9344L3.82541 28.9805L4.00572 28.9965H14.0232V17.9773ZM26.0441 17.9773H16.0267V28.9965H26.0441C26.2786 28.9966 26.5056 28.9144 26.6858 28.7643C26.8659 28.6142 26.9876 28.4057 27.0298 28.1751L27.0459 27.9948V18.9791C27.0459 18.7446 26.9638 18.5175 26.8137 18.3374C26.6636 18.1573 26.4551 18.0355 26.2244 17.9933L26.0441 17.9773ZM16.0267 12.3876V15.9738H19.6129L16.0267 12.3876ZM13.0214 4.95462H4.00572C3.77126 4.95455 3.5442 5.03671 3.36409 5.18681C3.18397 5.3369 3.06221 5.54542 3.02001 5.77605L3.00398 5.95637V15.9738H14.0232V5.95637C14.0233 5.75179 13.9607 5.55209 13.844 5.38411C13.7272 5.21613 13.5618 5.08792 13.37 5.01673L13.2017 4.97065L13.0214 4.95462ZM23.2833 3.29774C23.1148 3.13081 22.8929 3.02865 22.6565 3.00922C22.4202 2.9898 22.1845 3.05436 21.9911 3.19155L21.8548 3.31176L16.6137 8.74723C16.4555 8.91127 16.358 9.12433 16.3373 9.35125C16.3165 9.57817 16.3737 9.80539 16.4995 9.99541L16.6257 10.1517L21.8668 15.3908C22.0273 15.5515 22.2377 15.653 22.4634 15.6785C22.6891 15.7039 22.9167 15.652 23.109 15.531L23.2653 15.4088L28.7909 10.1457C28.9556 9.97892 29.0567 9.7597 29.0764 9.52614C29.0962 9.29259 29.0334 9.0595 28.8991 8.86744L28.7809 8.7292L23.2833 3.29774Z"})),O="https://launcher.arcblock.io",je=s=>{if(!s)return O;const{protocol:t,host:f}=le(ce(s));return`${t}//${f}`},we=s=>s?{"__did-connect__":re.from(JSON.stringify({switchBehavior:"auto",forceConnected:s,showClose:!1}),"utf8").toString("base64")}:{};function Re(s,t=O,f=""){const{t:_}=U(),E=we(f),{loading:u,value:p,error:a,retry:l}=ve(async()=>{if(s!=="serverless")return null;const y=je(t),L=await me(y),v=ie(n(L,"/u/apps"),E);return{text:_("launchBlocklet.nav.myApps"),appText:_("launchBlocklet.nav.viewMyApps"),link:v,buttonProps:{sx:{fontSize:"1rem"}},icon:e.jsx(X,{component:Se,fontSize:"small",viewBox:"0 0 32 32"})}},[s,t,f,_]);return s!=="serverless"||p===null?{}:u?{loading:!0}:a?{error:a,retry:l}:p||{}}const Ae=V.span`
|
|
3
|
-
color: ${s=>s.theme.palette.error.main};
|
|
4
|
-
&::before {
|
|
5
|
-
content: '*';
|
|
6
|
-
}
|
|
7
|
-
`,j=Ae,Ie=i.lazy(()=>m(()=>import("./connect-C3we9ebX.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),ke=i.lazy(()=>m(()=>import("./config-CKVskCpr.js"),__vite__mapDeps([13,1,2,3,7,6,8,9,14,15,16,17,18,10,11,12,19,20,21,22,23,24,25,26]))),Te=i.lazy(()=>m(()=>import("./index-Ddqbpb3u.js"),__vite__mapDeps([27,1,2,7,3,6,8,9,21,10,11,12,28,29,30,31,32,33,24,25,22,23]))),Be=i.lazy(()=>m(()=>import("./domain-CuSKFz52.js"),__vite__mapDeps([34,1,2,10,7,3,6,8,9,11,12,35,36,37,38,39,5,40,32,41,42,43,44,45,46,47,4,48,49,21,26,22,23,24,25]))),Ne=i.lazy(()=>m(()=>import("./access-control-EYKfTdyZ.js"),__vite__mapDeps([50,1,2,7,3,6,8,9,51,21,10,11,12,22,23,24,25,26]))),$e=i.lazy(()=>m(()=>import("./fuel-DkJB9TXk.js"),__vite__mapDeps([52,1,2,3,53,7,6,8,9,54,21,10,11,12,22,23,24,25,26]))),Ue=i.lazy(()=>m(()=>import("./complete-B3gpz2H0.js"),__vite__mapDeps([55,1,2,7,3,6,8,9,10,11,12,56,57,26,22,23,58,28,29,30,59,60,61,62])));function Ve(){var k,T,B;const s=G(),{t,locale:f}=U(),[_,E]=se(),u=ae(),{meta:p,blocklet:a,actions:l,loading:y,launcherSession:L}=fe(),v=localStorage.getItem("blocklet-server-url"),{session:w}=_e(),b=Pe({onClick:()=>{window.open(ye(v,{allowDomains:null}))}}),H=g("fromLauncher"),D=g("launcherUrl"),M=g("launchType"),R=g("visitorId"),z=Re(M,D,L==null?void 0:L.userDid);R&&(q(R),_.delete("visitorId"),E(_)),i.useEffect(()=>{Le(),w.user&&(l==null||l.refreshMeta(),l==null||l.refreshBlocklet({showError:!1}))},[w.user]),i.useEffect(()=>{l.refreshFuel({showError:!1})},[(k=a==null?void 0:a.meta)==null?void 0:k.did]);const o=`${N.WELLKNOWN_SERVICE_PATH_PREFIX}/setup`,F=c=>{var C;const r=(C=c==null?void 0:c.capabilities)==null?void 0:C.didSpace;return r?r===S.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||r===S.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP?{key:"did-space",name:e.jsxs(e.Fragment,{children:[t("setup.steps.didSpace")," ",e.jsx(j,{})]}),path:n(o,"did-space")}:r===S.BLOCKLET_APP_SPACE_REQUIREMENT.OPTIONAL?{key:"did-space",name:e.jsx(e.Fragment,{children:t("setup.steps.didSpace")}),path:n(o,"did-space")}:(console.warn(`capabilities.didSpace cannot take the value ${r}`),null):null},d=[{key:"access",name:t("setup.steps.access"),path:n(o,"access")},{key:"domain",name:t("setup.domain.title"),path:n(o,"domain")},F(a),{key:"config",name:e.jsxs(e.Fragment,{children:[t("setup.steps.config")," ",xe(p)&&e.jsx(j,{})]}),path:n(o,"config")},(B=(T=p==null?void 0:p.requirements)==null?void 0:T.fuels)!=null&&B.length?{key:"fuel",name:e.jsxs(e.Fragment,{children:[t("setup.steps.fuel")," ",e.jsx(j,{})]}),path:n(o,"fuel")}:null].filter(Boolean),P=d.findIndex(c=>`${$.replace(/\/$/,"")}${o}/${c.key}`===window.location.pathname),Q=n($,N.WELLKNOWN_SERVICE_PATH_PREFIX,`/blocklet/logo?v=${a==null?void 0:a.updatedAt}`),W=async c=>{const{search:r}=new URL(window.location.href);if(!c)d[P+1]?u(`${n(o,d[P+1].key)}${r}`):u(`${n(o,"complete")}${r}`);else{const C=d.findIndex(K=>K.key===c);C>-1?u(`${n(o,d[C].key)}${r}`):u(`${n(o,"complete")}${r}`)}await l.refreshBlocklet()},Z=()=>{u(-1)};function x(c,r){return e.jsxs(Ie,{children:[!a&&e.jsx(Y,{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",children:e.jsx(ee,{})}),a&&e.jsx(c,{blocklet:a,...r,onNext:W,onPrevious:Z,buttonText:P===d.length-1?t("setup.startNow"):""})]})}const A=[{key:"install",name:t("launchBlocklet.steps.installApp"),path:n(o,"install")},{key:"setup",name:t("setup.steps.launchApp"),children:d}];let I=[{key:"agreement",name:t("launchBlocklet.introduction"),path:n(o,"agreement")},...A];return H&&(I=[{key:"purchase-space",name:t("launchBlocklet.steps.purchaseSpace")},{key:"prepare-space",name:t("launchBlocklet.steps.prepareSpace")},...A]),e.jsx(de,{steps:I,children:e.jsx(Ce,{children:e.jsxs(pe,{children:[e.jsx(J,{styles:Oe}),e.jsx(be,{children:e.jsx(he,{locale:f,loading:y,blockletMeta:{...p,title:ge.getDisplayName({...a,meta:p})},navLogo:b,pcWidth:"80%",style:{height:"100%"},logoUrl:Q,useOfSkeleton:!1,extraNav:z,headerEndAddons:e.jsx(ue,{SessionContext:Ee,sessionManagerProps:{disableLogout:!0}}),theme:s,launchingText:t("setup.title"),children:e.jsxs(ne,{children:[e.jsx(h,{path:"access",element:x(Ne)}),e.jsx(h,{path:"domain",element:x(Be)}),e.jsx(h,{path:"did-space",element:x(Te)}),e.jsx(h,{path:"config",element:x(ke)}),e.jsx(h,{path:"fuel",element:x($e)}),e.jsx(h,{path:"complete",element:x(Ue,{launcherSession:L})}),e.jsx(h,{path:"*",element:e.jsx(oe,{to:`access${window.location.search}`,replace:!0})})]})})})]})})})}const Oe=te`
|
|
8
|
-
html,
|
|
9
|
-
body,
|
|
10
|
-
#app,
|
|
11
|
-
#app > .wrapper {
|
|
12
|
-
height: 100%;
|
|
13
|
-
}
|
|
14
|
-
`,be=V("div")`
|
|
15
|
-
/* display: flex;
|
|
16
|
-
min-width: 0;
|
|
17
|
-
flex: 1 1 0; */
|
|
18
|
-
height: 100%;
|
|
19
|
-
|
|
20
|
-
& .layout-content {
|
|
21
|
-
min-width: 0;
|
|
22
|
-
flex: 1 1 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
& .ll-header {
|
|
26
|
-
@media (max-width: 960px) {
|
|
27
|
-
padding: 0 12px;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
`,Ge=Object.freeze(Object.defineProperty({__proto__:null,default:Ve},Symbol.toStringTag,{value:"Module"}));export{we as a,je as g,Ge as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{z as R}from"./vendor-hooks-BgUTpb6X.js";import{r as g}from"./vendor-react-DEoibe3W.js";var i={},l={},v={},M;function h(){if(M)return v;M=1,Object.defineProperty(v,"__esModule",{value:!0});var e=g;function r(){var t=e.useRef(!1),s=e.useCallback(function(){return t.current},[]);return e.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]),s}return v.default=r,v}var p;function F(){if(p)return l;p=1,Object.defineProperty(l,"__esModule",{value:!0});var e=R,r=g,t=e.__importDefault(h());function s(d,u,a){u===void 0&&(u=[]),a===void 0&&(a={loading:!1});var f=r.useRef(0),o=t.default(),y=r.useState(a),b=y[0],_=y[1],U=r.useCallback(function(){for(var m=[],c=0;c<arguments.length;c++)m[c]=arguments[c];var A=++f.current;return b.loading||_(function(n){return e.__assign(e.__assign({},n),{loading:!0})}),d.apply(void 0,m).then(function(n){return o()&&A===f.current&&_({value:n,loading:!1}),n},function(n){return o()&&A===f.current&&_({error:n,loading:!1}),n})},u);return[b,U]}return l.default=s,l}var q;function S(){if(q)return i;q=1,Object.defineProperty(i,"__esModule",{value:!0});var e=R,r=g,t=e.__importDefault(F());function s(d,u){u===void 0&&(u=[]);var a=t.default(d,u,{loading:!0}),f=a[0],o=a[1];return r.useEffect(function(){o()},[o]),f}return i.default=s,i}export{S as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as r}from"./vendor-react-DEoibe3W.js";import{r as s}from"./useAsync-Dv214fz8.js";var o=s();const a=r(o);export{a as u};
|