@abtnode/blocklet-services 1.16.38-beta-20250127-092551-3bb6da3b → 1.16.38-beta-20250206-084543-4d7b4331
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/api/socket/channel/did.js +2 -1
- package/dist/assets/{Add-0_yO_NcD.js → Add-DTHqaebJ.js} +1 -1
- package/dist/assets/{ArrowDropDown-CSe7vdhu.js → ArrowDropDown-DbyzWNvL.js} +1 -1
- package/dist/assets/{CheckCircle-C20J4AX-.js → CheckCircle-CFxGo9yf.js} +1 -1
- package/dist/assets/{ChevronLeft-CYpg5M_K.js → ChevronLeft-BfXQoYEz.js} +1 -1
- package/dist/assets/{ChevronRight-DORpkdoL.js → ChevronRight-CfoEIq_n.js} +1 -1
- package/dist/assets/{DeleteOutline-BaOxCgo3.js → DeleteOutline-BmH9ek4A.js} +1 -1
- package/dist/assets/{Done-Bsd0QwkQ.js → Done-EMi5bDwr.js} +1 -1
- package/dist/assets/{Download-BF8ec3kS.js → Download-Dhtefh1X.js} +1 -1
- package/dist/assets/{EditIcon-D6Lk4OxD.js → EditIcon-BGaX97FF.js} +1 -1
- package/dist/assets/{Error-CmnuwZkD.js → Error-Djqvk_X8.js} +1 -1
- package/dist/assets/{Google-F1HiAjHW.js → Google-MetxIaR3.js} +1 -1
- package/dist/assets/{InfoOutlined-DZAeG3v-.js → InfoOutlined-Bd6IN61C.js} +1 -1
- package/dist/assets/{Launch-DNY7Ut_B.js → Launch-DC2ZwJy0.js} +1 -1
- package/dist/assets/{LaunchOutlined-BUOyH9Rv.js → LaunchOutlined-CYryXNUL.js} +1 -1
- package/dist/assets/{LockIcon-BITD3hjp.js → LockIcon-BHLM_myO.js} +1 -1
- package/dist/assets/{Loop-gZ2g1v3i.js → Loop-Dwj655TP.js} +1 -1
- package/dist/assets/{MoreHoriz-CwoKs0Gg.js → MoreHoriz-B8ywH5RE.js} +1 -1
- package/dist/assets/{PlayArrow-C6dXJHO6.js → PlayArrow-vglCW7W4.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-SCPzvU7T.js → QuestionMarkCircle-BDO28oyM.js} +1 -1
- package/dist/assets/{ServerLogo-DRTZsm8x.js → ServerLogo-D3ppBqIq.js} +1 -1
- package/dist/assets/{ViewList-DfGpYdZ-.js → ViewList-BEBx2X_O.js} +1 -1
- package/dist/assets/{access-control-DWS7Lowo.js → access-control-C15ttx-y.js} +1 -1
- package/dist/assets/{actions-BvtS-2sJ.js → actions-D-mxVcNU.js} +1 -1
- package/dist/assets/{add-component-core-DZPE4BRe.js → add-component-core-DNqTsrPg.js} +1 -1
- package/dist/assets/add-resource-C6AMLerq.js +1 -0
- package/dist/assets/{addon-CDVN9YCj.js → addon-_m1gJFAF.js} +1 -1
- package/dist/assets/analytics-DvHwLQn7.js +11 -0
- package/dist/assets/{ar-DV4YJwQy.js → ar-C89hW7LF.js} +1 -1
- package/dist/assets/{audit-logs-CJvI5okV.js → audit-logs-BCbtyCHg.js} +1 -1
- package/dist/assets/{base32-Bl4ek2bl.js → base32-BFfp490K.js} +1 -1
- package/dist/assets/{branding-CfeUWBA7.js → branding-D8S6jsa0.js} +2 -2
- package/dist/assets/{bundle-avatar-TEUPlhi2.js → bundle-avatar-C9ats955.js} +1 -1
- package/dist/assets/button-BmPwSTan.js +1 -0
- package/dist/assets/{click-to-copy-Ck4RKrL7.js → click-to-copy-_Hi7Yhx3.js} +1 -1
- package/dist/assets/{complete-CPnz5QUF.js → complete-DUg7uJ4N.js} +1 -1
- package/dist/assets/{component-Srk2_SVH.js → component-D1agqLE_.js} +1 -1
- package/dist/assets/{config-Cp3L8D_L.js → config-S6WZ6U3Y.js} +2 -2
- package/dist/assets/{config-navigation-a3GJWM1m.js → config-navigation-CMi0YByE.js} +6 -6
- package/dist/assets/{config-space-piVzY5c1.js → config-space-BtoXeFsn.js} +1 -1
- package/dist/assets/{config-kJZsVZD6.js → config-xTynYj5F.js} +1 -1
- package/dist/assets/{confirm-D7n9Rzfx.js → confirm-yYw8jeh5.js} +1 -1
- package/dist/assets/{connect-BZUv1d-6.js → connect-CT8urDCb.js} +1 -1
- package/dist/assets/{connect-rdXbvbmJ.js → connect-DMnZDuPy.js} +1 -1
- package/dist/assets/{connect-to-BzfmK9yx.js → connect-to-BtXA2Q7q.js} +1 -1
- package/dist/assets/{content-layout-CzrxMNjA.js → content-layout-DRV8Bqu8.js} +1 -1
- package/dist/assets/dashboard-D7xokuFw.js +217 -0
- package/dist/assets/{de-C2Y_05d1.js → de-BScxb0zD.js} +1 -1
- package/dist/assets/{did-address-CLeqbWiu.js → did-address-DL8dQh4X.js} +1 -1
- package/dist/assets/{domain-DgPzyf2N.js → domain-WlHroGqS.js} +1 -1
- package/dist/assets/{domain-list-BiYGOOY3.js → domain-list-CID5R830.js} +2 -2
- package/dist/assets/{email-5azpRba_.js → email-XNK7Gwt2.js} +1 -1
- package/dist/assets/{es-DPVOSPPn.js → es-B9f-yiTL.js} +1 -1
- package/dist/assets/{exchange-passport-Cus1rYsJ.js → exchange-passport-BkvQV3O8.js} +1 -1
- package/dist/assets/{form-text-input-Cf1j6PeI.js → form-text-input-B1uYH91s.js} +2 -2
- package/dist/assets/{fr-C8dIIOc9.js → fr-BguXQaFu.js} +1 -1
- package/dist/assets/{fuel-BaqDy7AE.js → fuel-uFxFD3IR.js} +1 -1
- package/dist/assets/{fullpage-Dx8PYbvz.js → fullpage-Dc1dR2nf.js} +1 -1
- package/dist/assets/{get-safe-url-BF9qL1PD.js → get-safe-url-B9qOA7gB.js} +1 -1
- package/dist/assets/{get-safe-url-BsKINLVF.js → get-safe-url-BTwyxtCV.js} +1 -1
- package/dist/assets/{hi-C5r4WQDs.js → hi-7nPwxLb7.js} +1 -1
- package/dist/assets/{home-D42zu2I_.js → home-BfUTLxOL.js} +1 -1
- package/dist/assets/{id-BQK45J6o.js → id-gU7ysJNs.js} +1 -1
- package/dist/assets/{iframe-Cn--d9nR.js → iframe-CDk6_C57.js} +1 -1
- package/dist/assets/{index-6oQLUjq6.js → index-1NdG9dcQ.js} +7 -7
- package/dist/assets/index-BBlaG9rd.js +77 -0
- package/dist/assets/{index-DpNGP1ih.js → index-BNjqST1U.js} +12 -12
- package/dist/assets/{index-CXVY5UoP.js → index-BQ9qcXAM.js} +7 -7
- package/dist/assets/{index-C0uUrAqS.js → index-BzpSavwm.js} +1 -1
- package/dist/assets/{index-DpOEjWGx.js → index-C8bsu4NM.js} +1 -1
- package/dist/assets/index-CEYigfYv.js +228 -0
- package/dist/assets/{index-BgGF6utP.js → index-CIjk07iX.js} +2 -2
- package/dist/assets/{index-CEbjBHHi.js → index-CKIpILov.js} +1 -1
- package/dist/assets/{index-BvLMNAG0.js → index-CeDgfE-R.js} +1 -1
- package/dist/assets/{index-BDfZ8xEV.js → index-D0faGVLi.js} +3 -3
- package/dist/assets/{index-D5mFr1eo.js → index-D4b-IulH.js} +1 -1
- package/dist/assets/index-DBoRYbIw.js +1 -0
- package/dist/assets/{index-DE_r-gh_.js → index-DGE6IUiK.js} +1 -1
- package/dist/assets/{index-CFT-L0SZ.js → index-DUqnq1p0.js} +1 -1
- package/dist/assets/{index-kk2gduJr.js → index-DX_lvtWO.js} +1 -1
- package/dist/assets/{index-CKsz_iVM.js → index-Hq7kqq19.js} +1 -1
- package/dist/assets/{index-uosYiNLl.js → index-QX3ZQRUn.js} +16 -16
- package/dist/assets/{index-DTzPwoh8.js → index-cBCi42Bf.js} +1 -1
- package/dist/assets/{invitation-DpOgzXor.js → invitation-BkpzegkF.js} +1 -1
- package/dist/assets/{invite-DmpCzOPN.js → invite-DSfHEBpk.js} +1 -1
- package/dist/assets/{issue-passport--83QQUn2.js → issue-passport-DRO3fhhX.js} +1 -1
- package/dist/assets/{item-7Z8_UB5K.js → item-D9PJoNKZ.js} +1 -1
- package/dist/assets/{ja-DsJERrpD.js → ja-C4BURK37.js} +1 -1
- package/dist/assets/{ko-t760ZSCl.js → ko-CeKzLbt8.js} +1 -1
- package/dist/assets/{launch-result-message-C_UhVRcl.js → launch-result-message-0WH2fKJs.js} +1 -1
- package/dist/assets/{layout-Dv_7-Fpq.js → layout-KUVrIKnH.js} +1 -1
- package/dist/assets/list-BmQp9JBM.js +160 -0
- package/dist/assets/{list-header-CfBPZZEw.js → list-header-Cm2JzuBu.js} +1 -1
- package/dist/assets/localization-BUyqSLbi.js +1 -0
- package/dist/assets/{log-CNjGA-yl.js → log-VT6HCVkp.js} +2 -2
- package/dist/assets/{login-DWrSz67b.js → login-BXw8BSYh.js} +1 -1
- package/dist/assets/{login-oauth-callback-VNeZxFH0.js → login-oauth-callback-D_ULXKRT.js} +1 -1
- package/dist/assets/{logo-uploader-DZm2nb0s.js → logo-uploader-B0QGvHYx.js} +5 -5
- package/dist/assets/{lost-passport-DFh2B6Gl.js → lost-passport-CMs5A43o.js} +1 -1
- package/dist/assets/{open-window-BvyLumiN.js → open-window-DFVq0Vka.js} +1 -1
- package/dist/assets/{overview-DNQZ-tgj.js → overview-JoUamf5H.js} +2 -2
- package/dist/assets/{page-header-CJHCTtBc.js → page-header-B2kRYRXR.js} +1 -1
- package/dist/assets/{permission-B0xKCybj.js → permission-CtM69wEM.js} +1 -1
- package/dist/assets/{preferences-BMgF6Djl.js → preferences-BI2Qy7wd.js} +1 -1
- package/dist/assets/{pt-BkjUa7uv.js → pt-o1EeyLhb.js} +1 -1
- package/dist/assets/publish-resource-D5Rx9baz.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-DY38RjFx.js → react-beautiful-dnd.esm-C6Cs2eu-.js} +1 -1
- package/dist/assets/{relative-time-C36uWHLw.js → relative-time-D_pFZIBd.js} +1 -1
- package/dist/assets/{ru-1WsQFvuL.js → ru-BlfgKyTj.js} +1 -1
- package/dist/assets/sdk-DCjm9lEU.js +1 -0
- package/dist/assets/session-BTTAIWAT.js +1 -0
- package/dist/assets/{setup-lHrzljce.js → setup-C_n4S096.js} +3 -3
- package/dist/assets/{shorten-label-CYJeMT7h.js → shorten-label-BPVcqm_d.js} +1 -1
- package/dist/assets/{simple-select-CAyDBkK6.js → simple-select-Bly6GilY.js} +1 -1
- package/dist/assets/{slicedToArray-CV571vyX.js → slicedToArray--pkkXr1E.js} +2 -2
- package/dist/assets/{start-DNIWxyMi.js → start-B0Bo1ke7.js} +1 -1
- package/dist/assets/{step-actions-BYFwIhu4.js → step-actions-BdvB3K8O.js} +1 -1
- package/dist/assets/{studio-DBfgF1ck.js → studio-DADXtyow.js} +1 -1
- package/dist/assets/{switch-control-B8wYzo2_.js → switch-control-3273Ci8c.js} +1 -1
- package/dist/assets/{th-CecKmVWf.js → th-BHBtH1Zl.js} +1 -1
- package/dist/assets/{traffic-1TtyUzFO.js → traffic-CG1Pxqmj.js} +1 -1
- package/dist/assets/{transfer-Bh7VQuKL.js → transfer-O3YQ6b4a.js} +1 -1
- package/dist/assets/{unsubscribe-C_eX2N6S.js → unsubscribe-Dx2vvXHo.js} +1 -1
- package/dist/assets/{use-mobile-Bk8quGt9.js → use-mobile-CtFE3PKN.js} +1 -1
- package/dist/assets/{useAsyncRetry-EMRT9Ldq.js → useAsyncRetry-DO0NcRB-.js} +1 -1
- package/dist/assets/{useLocalStorage-tmIJr51I.js → useLocalStorage-BiHNUBhw.js} +1 -1
- package/dist/assets/user-center-LYxpEnYV.js +71 -0
- package/dist/assets/{util-BY6uUuCk.js → util-CB4v94Ia.js} +1 -1
- package/dist/assets/{util-CtKeCk_N.js → util-lgEyE78l.js} +1 -1
- package/dist/assets/{vendor-arcblock-Bf7AGBSd.js → vendor-arcblock-ZjreIevk.js} +3 -3
- package/dist/assets/{vendor-mui-core-CCMNKHtm.js → vendor-mui-core-DHnPlNQK.js} +8 -8
- package/dist/assets/{vendor-mui-x-DmPVvZFJ.js → vendor-mui-x-BcCkWIwf.js} +1 -1
- package/dist/assets/{vi-CDrTp7No.js → vi-CuGQRG8r.js} +1 -1
- package/dist/assets/wrap-locale-dvgNAAzE.js +1 -0
- package/dist/assets/zh-DfOtp2w7.js +4 -0
- package/dist/assets/{zh-tw-CUyoe2CD.js → zh-tw-DFpaHA6Z.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/service-worker.js +1 -1
- package/package.json +21 -21
- package/dist/assets/add-resource-CYNZTaOG.js +0 -1
- package/dist/assets/analytics-0lVXNyXs.js +0 -11
- package/dist/assets/button-CzSgwkGN.js +0 -1
- package/dist/assets/dashboard-B_hsqmQK.js +0 -86
- package/dist/assets/index-BWKYj-2X.js +0 -228
- package/dist/assets/index-CSkA6M4K.js +0 -1
- package/dist/assets/index-fel1gHRy.js +0 -61
- package/dist/assets/list-yjVo8vxH.js +0 -160
- package/dist/assets/localization-CRwVeETn.js +0 -1
- package/dist/assets/publish-resource-B_OOg2Om.js +0 -1
- package/dist/assets/sdk-VtyRZZVE.js +0 -1
- package/dist/assets/session-DutPZhUI.js +0 -1
- package/dist/assets/user-center-pv7oyGUu.js +0 -71
- package/dist/assets/wrap-locale-BjJvyHQM.js +0 -1
- package/dist/assets/zh-Bqr2c2To.js +0 -4
package/dist/service-worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
try{self["workbox:core:7.0.0"]&&_()}catch{}const ae=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},ne=ae;let y=class extends Error{constructor(e,t){const r=ne(e,t);super(r),this.name=e,this.details=t}};const ie=new Set,d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},N=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),ce=s=>{for(const e of Object.keys(d))s(e)},oe={updateDetails:s=>{ce(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||N(d.googleAnalytics),getPrecacheName:s=>s||N(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||N(d.runtime),getSuffix:()=>d.suffix};function q(s,e){const t=new URL(s);for(const r of e)t.searchParams.delete(r);return t.href}async function le(s,e,t,r){const a=q(e.url,t);if(e.url===a)return s.match(e,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),n=await s.keys(e,i);for(const c of n){const o=q(c.url,t);if(a===o)return s.match(c,r)}}let he=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};async function ue(){for(const s of ie)await s()}const fe=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function de(s){return new Promise(e=>setTimeout(e,s))}function pe(){self.addEventListener("activate",()=>self.clients.claim())}try{self["workbox:core:7.0.0"]&&_()}catch{}const ge=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},me=ge;let u=class extends Error{constructor(e,t){const r=me(e,t);super(r),this.name=e,this.details=t}};const p={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},M=s=>[p.prefix,s,p.suffix].filter(e=>e&&e.length>0).join("-"),we=s=>{for(const e of Object.keys(p))s(e)},j={updateDetails:s=>{we(e=>{typeof s[e]=="string"&&(p[e]=s[e])})},getGoogleAnalyticsName:s=>s||M(p.googleAnalytics),getPrecacheName:s=>s||M(p.precache),getPrefix:()=>p.prefix,getRuntimeName:s=>s||M(p.runtime),getSuffix:()=>p.suffix};function H(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:7.0.0"]&&_()}catch{}const ye="__WB_REVISION__";function _e(s){if(!s)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const i=new URL(s,location.href);return{cacheKey:i.href,url:i.href}}const{revision:e,url:t}=s;if(!t)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(!e){const i=new URL(t,location.href);return{cacheKey:i.href,url:i.href}}const r=new URL(t,location.href),a=new URL(t,location.href);return r.searchParams.set(ye,e),{cacheKey:r.href,url:a.href}}class Re{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:r})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;r?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return r}}}class be{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:r})=>{const a=(r==null?void 0:r.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let b;function Ce(){if(b===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),b=!0}catch{b=!1}b=!1}return b}async function xe(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 r=s.clone(),i={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},n=Ce()?r.body:await r.blob();return new Response(n,i)}const ke=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function B(s,e){const t=new URL(s);for(const r of e)t.searchParams.delete(r);return t.href}async function Ee(s,e,t,r){const a=B(e.url,t);if(e.url===a)return s.match(e,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),n=await s.keys(e,i);for(const c of n){const o=B(c.url,t);if(a===o)return s.match(c,r)}}class De{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const Ue=new Set;async function Le(){for(const s of Ue)await s()}function Pe(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function D(s){return typeof s=="string"?new Request(s):s}let ve=class{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new De,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=D(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new u("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=D(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=D(e);await Pe(0);const a=await this.getCacheKey(r,"write");if(!t)throw new u("cache-put-with-no-response",{url:ke(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await Ee(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await Le(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=D(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}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,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}},Ne=class{constructor(e={}){this.cacheName=j.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,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new ve(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,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(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}};class w extends Ne{constructor(e={}){e.cacheName=j.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(w.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const r=await t.cacheMatch(e);return r||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let r;const a=t.params||{};if(this._fallbackToNetwork){const i=a.integrity,n=e.integrity,c=!n||n===i;r=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?n||i:void 0})),i&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,r.clone()))}else throw new u("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return r}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const r=await t.fetch(e);if(!await t.cachePut(e,r.clone()))throw new u("bad-precaching-response",{url:e.url,status:r.status});return r}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[r,a]of this.plugins.entries())a!==w.copyRedirectedCacheableResponsesPlugin&&(a===w.defaultPrecacheCacheabilityPlugin&&(e=r),a.cacheWillUpdate&&t++);t===0?this.plugins.push(w.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}w.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};w.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await xe(s):s}};class Me{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:r=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new w({cacheName:j.getPrecacheName(e),plugins:[...t,new be({precacheController:this})],fallbackToNetwork:r}),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 r of e){typeof r=="string"?t.push(r):r&&r.revision===void 0&&t.push(r.url);const{cacheKey:a,url:i}=_e(r),n=typeof r!="string"&&r.revision?"reload":"default";if(this._urlsToCacheKeys.has(i)&&this._urlsToCacheKeys.get(i)!==a)throw new u("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(i),secondEntry:a});if(typeof r!="string"&&r.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==r.integrity)throw new u("add-to-cache-list-conflicting-integrities",{url:i});this._cacheKeysToIntegrities.set(a,r.integrity)}if(this._urlsToCacheKeys.set(i,a),this._urlsToCacheModes.set(i,n),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 H(e,async()=>{const t=new Re;this.strategy.plugins.push(t);for(const[i,n]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(i),l=new Request(i,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:l,event:e}))}const{updatedURLs:r,notUpdatedURLs:a}=t;return{updatedURLs:r,notUpdatedURLs:a}})}activate(e){return H(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),r=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),i=[];for(const n of r)a.has(n.url)||(await t.delete(n),i.push(n.url));return{deletedURLs:i}})}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,r=this.getCacheKeyForURL(t);if(r)return(await self.caches.open(this.strategy.cacheName)).match(r)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return r=>(r.request=new Request(e),r.params=Object.assign({cacheKey:t},r.params),this.strategy.handle(r))}}let T;const J=()=>(T||(T=new Me),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const z="GET",P=s=>s&&typeof s=="object"?s:{handle:s};let E=class{constructor(e,t,r=z){this.handler=P(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=P(e)}},Te=class extends E{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}},Oe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.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:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,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:n,params:c}}return{}}setDefaultHandler(e,t=z){this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(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")}},C;const Se=()=>(C||(C=new Oe,C.addFetchListener(),C.addCacheListener()),C);function Ae(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new E(n,e,t)}else if(s instanceof RegExp)r=new Te(s,e,t);else if(typeof s=="function")r=new E(s,e,t);else if(s instanceof E)r=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Se().registerRoute(r),r}function Ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(r=>r.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:r=!0,urlManipulation:a}={}){const i=new URL(s,location.href);i.hash="",yield i.href;const n=Ke(i,e);if(yield n.href,t&&n.pathname.endsWith("/")){const c=new URL(n.href);c.pathname+=t,yield c.href}if(r){const c=new URL(n.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:i});for(const o of c)yield o.href}}class We extends E{constructor(e,t){const r=({request:a})=>{const i=e.getURLsToCacheKeys();for(const n of Ie(a.url,t)){const c=i.get(n);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(r,e.strategy)}}function je(s){const e=J(),t=new We(e,s);Ae(t)}function $e(s){J().precache(s)}function qe(s,e){$e(s),je(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const He=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Be=He;class Fe extends Error{constructor(e,t){const r=Be(e,t);super(r),this.name=e,this.details=t}}function X(s){s.then(()=>{})}const Ve=(s,e)=>e.some(t=>s instanceof t);let F,V;function Ge(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qe(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,I=new WeakMap,Z=new WeakMap,O=new WeakMap,$=new WeakMap;function Je(s){const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("success",i),s.removeEventListener("error",n)},i=()=>{t(m(s.result)),a()},n=()=>{r(s.error),a()};s.addEventListener("success",i),s.addEventListener("error",n)});return e.then(t=>{t instanceof IDBCursor&&Y.set(t,s)}).catch(()=>{}),$.set(e,s),e}function ze(s){if(I.has(s))return;const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("complete",i),s.removeEventListener("error",n),s.removeEventListener("abort",n)},i=()=>{t(),a()},n=()=>{r(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",i),s.addEventListener("error",n),s.addEventListener("abort",n)});I.set(s,e)}let W={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return I.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Z.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 Xe(s){W=s(W)}function Ye(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=s.call(S(this),e,...t);return Z.set(r,e.sort?e.sort():[e]),m(r)}:Qe().includes(s)?function(...e){return s.apply(S(this),e),m(Y.get(this))}:function(...e){return m(s.apply(S(this),e))}}function Ze(s){return typeof s=="function"?Ye(s):(s instanceof IDBTransaction&&ze(s),Ve(s,Ge())?new Proxy(s,W):s)}function m(s){if(s instanceof IDBRequest)return Je(s);if(O.has(s))return O.get(s);const e=Ze(s);return e!==s&&(O.set(s,e),$.set(e,s)),e}const S=s=>$.get(s);function et(s,e,{blocked:t,upgrade:r,blocking:a,terminated:i}={}){const n=indexedDB.open(s,e),c=m(n);return r&&n.addEventListener("upgradeneeded",o=>{r(m(n.result),o.oldVersion,o.newVersion,m(n.transaction),o)}),t&&n.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{i&&o.addEventListener("close",()=>i()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function tt(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",r=>e(r.oldVersion,r)),m(t).then(()=>{})}const st=["get","getKey","getAll","getAllKeys","count"],rt=["put","add","delete","clear"],A=new Map;function G(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(A.get(e))return A.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,a=rt.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(a||st.includes(t)))return;const i=async function(n,...c){const o=this.transaction(n,a?"readwrite":"readonly");let l=o.store;return r&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return A.set(e,i),i}Xe(s=>({...s,get:(e,t,r)=>G(e,t)||s.get(e,t,r),has:(e,t)=>!!G(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const at="workbox-expiration",x="cache-entries",Q=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class nt{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(x,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&tt(this._cacheName)}async setTimestamp(e,t){e=Q(e);const r={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},i=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await i.store.put(r),await i.done}async getTimestamp(e){const r=await(await this.getDb()).get(x,this._getId(e));return r==null?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let a=await r.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let n=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&n>=t?i.push(a.value):n++),a=await a.continue()}const c=[];for(const o of i)await r.delete(x,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Q(e)}async getDb(){return this._db||(this._db=await et(at,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class it{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 nt(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),r=await self.caches.open(this._cacheName);for(const a of t)await r.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,X(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),r=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<r:!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:""},K=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),ct=s=>{for(const e of Object.keys(g))s(e)},ot={updateDetails:s=>{ct(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||K(g.googleAnalytics),getPrecacheName:s=>s||K(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||K(g.runtime),getSuffix:()=>g.suffix},lt=new Set;function ht(s){lt.add(s)}class ut{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:r,cacheName:a,cachedResponse:i})=>{if(!i)return null;const n=this._isResponseDateFresh(i),c=this._getCacheExpiration(a);X(c.expireEntries());const o=c.updateTimestamp(r.url);if(t)try{t.waitUntil(o)}catch{}return n?i:null},this.cacheDidUpdate=async({cacheName:t,request:r})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(r.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&ht(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===ot.getRuntimeName())throw new Fe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new it(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 r=Date.now();return t>=r-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 ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class L{constructor(e,t,r=ee){this.handler=v(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=v(e)}}class ft extends L{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}}class dt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.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:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,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:n,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 y("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 y("unregister-route-route-not-registered")}}let k;const pt=()=>(k||(k=new dt,k.addFetchListener(),k.addCacheListener()),k);function te(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new L(n,e,t)}else if(s instanceof RegExp)r=new ft(s,e,t);else if(typeof s=="function")r=new L(s,e,t);else if(s instanceof L)r=s;else throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pt().registerRoute(r),r}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}class gt{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new he,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=U(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=U(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=U(e);await de(0);const a=await this.getCacheKey(r,"write");if(!t)throw new y("cache-put-with-no-response",{url:fe(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await le(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ue(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}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,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}}class se{constructor(e={}){this.cacheName=oe.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,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new gt(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new y("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}}class mt extends se{async _handle(e,t){let r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(i){i instanceof Error&&(a=i)}if(!r)throw new y("no-response",{url:e.url,error:a});return r}}const wt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class yt extends se{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(wt)}async _handle(e,t){const r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),i;if(!a)try{a=await r}catch(n){n instanceof Error&&(i=n)}if(!a)throw new y("no-response",{url:e.url,error:i});return a}}qe(([{"revision":null,"url":"assets/access-control-DWS7Lowo.js"},{"revision":null,"url":"assets/actions-BvtS-2sJ.js"},{"revision":null,"url":"assets/Add-0_yO_NcD.js"},{"revision":null,"url":"assets/add-component-core-D-IRi6XF.css"},{"revision":null,"url":"assets/add-component-core-DZPE4BRe.js"},{"revision":null,"url":"assets/add-resource-CYNZTaOG.js"},{"revision":null,"url":"assets/addon-CDVN9YCj.js"},{"revision":null,"url":"assets/analytics-0lVXNyXs.js"},{"revision":null,"url":"assets/api-K65cLqol.js"},{"revision":null,"url":"assets/ar-DoIWDL3Q.js"},{"revision":null,"url":"assets/ar-DV4YJwQy.js"},{"revision":null,"url":"assets/ArrowDropDown-CSe7vdhu.js"},{"revision":null,"url":"assets/audit-logs-CJvI5okV.js"},{"revision":null,"url":"assets/base32-Bl4ek2bl.js"},{"revision":null,"url":"assets/branding-CfeUWBA7.js"},{"revision":null,"url":"assets/bundle-avatar-TEUPlhi2.js"},{"revision":null,"url":"assets/button-CzSgwkGN.js"},{"revision":null,"url":"assets/CheckCircle-C20J4AX-.js"},{"revision":null,"url":"assets/ChevronLeft-CYpg5M_K.js"},{"revision":null,"url":"assets/ChevronRight-DORpkdoL.js"},{"revision":null,"url":"assets/click-to-copy-Ck4RKrL7.js"},{"revision":null,"url":"assets/cloneDeep-BRiLvZjr.js"},{"revision":null,"url":"assets/complete-CPnz5QUF.js"},{"revision":null,"url":"assets/component-Srk2_SVH.js"},{"revision":null,"url":"assets/config-Cp3L8D_L.js"},{"revision":null,"url":"assets/config-kJZsVZD6.js"},{"revision":null,"url":"assets/config-navigation-a3GJWM1m.js"},{"revision":null,"url":"assets/config-space-piVzY5c1.js"},{"revision":null,"url":"assets/confirm-D7n9Rzfx.js"},{"revision":null,"url":"assets/connect-BZUv1d-6.js"},{"revision":null,"url":"assets/connect-rdXbvbmJ.js"},{"revision":null,"url":"assets/connect-to-BzfmK9yx.js"},{"revision":null,"url":"assets/content-layout-CzrxMNjA.js"},{"revision":null,"url":"assets/dashboard-B_hsqmQK.js"},{"revision":null,"url":"assets/de-BVgb1fEg.js"},{"revision":null,"url":"assets/de-C2Y_05d1.js"},{"revision":null,"url":"assets/DeleteOutline-BaOxCgo3.js"},{"revision":null,"url":"assets/did-address-CLeqbWiu.js"},{"revision":null,"url":"assets/domain-DgPzyf2N.js"},{"revision":null,"url":"assets/domain-list-BiYGOOY3.js"},{"revision":null,"url":"assets/Done-Bsd0QwkQ.js"},{"revision":null,"url":"assets/Download-BF8ec3kS.js"},{"revision":null,"url":"assets/EditIcon-D6Lk4OxD.js"},{"revision":null,"url":"assets/email-5azpRba_.js"},{"revision":null,"url":"assets/Error-CmnuwZkD.js"},{"revision":null,"url":"assets/es-CWcVPAna.js"},{"revision":null,"url":"assets/es-DPVOSPPn.js"},{"revision":null,"url":"assets/exchange-passport-Cus1rYsJ.js"},{"revision":null,"url":"assets/form-text-input-Cf1j6PeI.js"},{"revision":null,"url":"assets/format-error-C0Ke3VXF.js"},{"revision":null,"url":"assets/fr-C8dIIOc9.js"},{"revision":null,"url":"assets/fr-C8Jr_C8u.js"},{"revision":null,"url":"assets/fuel-BaqDy7AE.js"},{"revision":null,"url":"assets/fullpage-Dx8PYbvz.js"},{"revision":null,"url":"assets/get-safe-url-BF9qL1PD.js"},{"revision":null,"url":"assets/get-safe-url-BsKINLVF.js"},{"revision":null,"url":"assets/Google-F1HiAjHW.js"},{"revision":null,"url":"assets/hi-C5r4WQDs.js"},{"revision":null,"url":"assets/hi-DTqZQNNB.js"},{"revision":null,"url":"assets/home-D42zu2I_.js"},{"revision":null,"url":"assets/id-BQK45J6o.js"},{"revision":null,"url":"assets/id-CUsGyKYW.js"},{"revision":null,"url":"assets/iframe-Cn--d9nR.js"},{"revision":null,"url":"assets/index-6oQLUjq6.js"},{"revision":null,"url":"assets/index-AgKpYdvC.css"},{"revision":null,"url":"assets/index-BDfZ8xEV.js"},{"revision":null,"url":"assets/index-BgGF6utP.js"},{"revision":null,"url":"assets/index-BvLMNAG0.js"},{"revision":null,"url":"assets/index-BWKYj-2X.js"},{"revision":null,"url":"assets/index-C0uUrAqS.js"},{"revision":null,"url":"assets/index-C2fPoxDR.js"},{"revision":null,"url":"assets/index-CEbjBHHi.js"},{"revision":null,"url":"assets/index-CFT-L0SZ.js"},{"revision":null,"url":"assets/index-CKsz_iVM.js"},{"revision":null,"url":"assets/index-CSkA6M4K.js"},{"revision":null,"url":"assets/index-CXVY5UoP.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-D5mFr1eo.js"},{"revision":null,"url":"assets/index-DcfIKM1A.js"},{"revision":null,"url":"assets/index-DE_r-gh_.js"},{"revision":null,"url":"assets/index-DoZ2YM4T.js"},{"revision":null,"url":"assets/index-DpNGP1ih.js"},{"revision":null,"url":"assets/index-DpOEjWGx.js"},{"revision":null,"url":"assets/index-DTzPwoh8.js"},{"revision":null,"url":"assets/index-DVYdq7IA.js"},{"revision":null,"url":"assets/index-fel1gHRy.js"},{"revision":null,"url":"assets/index-kk2gduJr.js"},{"revision":null,"url":"assets/index-uosYiNLl.js"},{"revision":null,"url":"assets/InfoOutlined-DZAeG3v-.js"},{"revision":null,"url":"assets/invitation-DpOgzXor.js"},{"revision":null,"url":"assets/invite-DmpCzOPN.js"},{"revision":null,"url":"assets/isEmail-BWNRBSAy.js"},{"revision":null,"url":"assets/issue-passport--83QQUn2.js"},{"revision":null,"url":"assets/item-7Z8_UB5K.js"},{"revision":null,"url":"assets/ja-B0U7M2t1.js"},{"revision":null,"url":"assets/ja-DsJERrpD.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-CpDA9JjF.js"},{"revision":null,"url":"assets/ko-t760ZSCl.js"},{"revision":null,"url":"assets/Launch-DNY7Ut_B.js"},{"revision":null,"url":"assets/launch-result-message-C_UhVRcl.js"},{"revision":null,"url":"assets/LaunchOutlined-BUOyH9Rv.js"},{"revision":null,"url":"assets/layout-Dv_7-Fpq.js"},{"revision":null,"url":"assets/list-header-CfBPZZEw.js"},{"revision":null,"url":"assets/list-yjVo8vxH.js"},{"revision":null,"url":"assets/localization-CRwVeETn.js"},{"revision":null,"url":"assets/LockIcon-BITD3hjp.js"},{"revision":null,"url":"assets/log-CNjGA-yl.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/login-DWrSz67b.js"},{"revision":null,"url":"assets/login-oauth-callback-VNeZxFH0.js"},{"revision":null,"url":"assets/logo-uploader-DZm2nb0s.js"},{"revision":null,"url":"assets/Loop-gZ2g1v3i.js"},{"revision":null,"url":"assets/lost-passport-DFh2B6Gl.js"},{"revision":null,"url":"assets/lottie-react.esm-CHpXrEmm.js"},{"revision":null,"url":"assets/MoreHoriz-CwoKs0Gg.js"},{"revision":null,"url":"assets/open-window-BvyLumiN.js"},{"revision":null,"url":"assets/overview-DNQZ-tgj.js"},{"revision":null,"url":"assets/page-header-CJHCTtBc.js"},{"revision":null,"url":"assets/permission-B0xKCybj.js"},{"revision":null,"url":"assets/PlayArrow-C6dXJHO6.js"},{"revision":null,"url":"assets/preferences-BMgF6Djl.js"},{"revision":null,"url":"assets/pt-7r06GaNd.js"},{"revision":null,"url":"assets/pt-BkjUa7uv.js"},{"revision":null,"url":"assets/publish-resource-B_OOg2Om.js"},{"revision":null,"url":"assets/QuestionMarkCircle-SCPzvU7T.js"},{"revision":null,"url":"assets/raf-schd.esm-Cxhj8umC.js"},{"revision":null,"url":"assets/react-beautiful-dnd.esm-DY38RjFx.js"},{"revision":null,"url":"assets/relative-time-C36uWHLw.js"},{"revision":null,"url":"assets/ru-1WsQFvuL.js"},{"revision":null,"url":"assets/ru-MS-ksi2g.js"},{"revision":null,"url":"assets/sdk-VtyRZZVE.js"},{"revision":null,"url":"assets/ServerLogo-DRTZsm8x.js"},{"revision":null,"url":"assets/session-DutPZhUI.js"},{"revision":null,"url":"assets/setup-lHrzljce.js"},{"revision":null,"url":"assets/shorten-label-CYJeMT7h.js"},{"revision":null,"url":"assets/simple-select-CAyDBkK6.js"},{"revision":null,"url":"assets/slicedToArray-CV571vyX.js"},{"revision":null,"url":"assets/start-DNIWxyMi.js"},{"revision":null,"url":"assets/step-actions-BYFwIhu4.js"},{"revision":null,"url":"assets/studio-DBfgF1ck.js"},{"revision":null,"url":"assets/switch-control-B8wYzo2_.js"},{"revision":null,"url":"assets/th-CecKmVWf.js"},{"revision":null,"url":"assets/th-gcuRSNHo.js"},{"revision":null,"url":"assets/traffic-1TtyUzFO.js"},{"revision":null,"url":"assets/transfer-Bh7VQuKL.js"},{"revision":null,"url":"assets/unsubscribe-C_eX2N6S.js"},{"revision":null,"url":"assets/use-mobile-Bk8quGt9.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-Ua5iss51.js"},{"revision":null,"url":"assets/useAsyncRetry-EMRT9Ldq.js"},{"revision":null,"url":"assets/useLocalStorage-tmIJr51I.js"},{"revision":null,"url":"assets/user-center-pv7oyGUu.js"},{"revision":null,"url":"assets/useSetState-Crt4S51m.js"},{"revision":null,"url":"assets/util-BY6uUuCk.js"},{"revision":null,"url":"assets/util-CtKeCk_N.js"},{"revision":null,"url":"assets/vendor-arcblock-Bf7AGBSd.js"},{"revision":null,"url":"assets/vendor-arcblock-DhgPdlEj.css"},{"revision":null,"url":"assets/vendor-hooks-BKxTDk_P.js"},{"revision":null,"url":"assets/vendor-mui-core-CCMNKHtm.js"},{"revision":null,"url":"assets/vendor-mui-x-DmPVvZFJ.js"},{"revision":null,"url":"assets/vendor-react-D-afvo_7.js"},{"revision":null,"url":"assets/vendor-utils-5TjOM6td.js"},{"revision":null,"url":"assets/vi-CDrTp7No.js"},{"revision":null,"url":"assets/vi-CGYOhf_R.js"},{"revision":null,"url":"assets/ViewList-DfGpYdZ-.js"},{"revision":null,"url":"assets/wrap-locale-BjJvyHQM.js"},{"revision":null,"url":"assets/zh-Bqr2c2To.js"},{"revision":null,"url":"assets/zh-BYS_9r4v.js"},{"revision":null,"url":"assets/zh-tw-BR5CO3an.js"},{"revision":null,"url":"assets/zh-tw-CUyoe2CD.js"},{"revision":"793eaeff4ba43c1f69206f6acb612aa2","url":"index.html"},{"revision":"629a14a7e3397a134f5a30b5dc735183","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"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")));pe();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const re=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));te(({request:s})=>re(s)?!1:s.url.includes("/static/"),new mt({cacheName:`static-${self.registration.scope}`,plugins:[new ut({maxEntries:200})]}));te(({request:s})=>re(s)?!1:s.url.includes("/images/")||s.url.includes("/router/-template-styles/"),new yt({cacheName:`StaleWhileRevalidate-${self.registration.scope}`}));
|
|
2
|
+
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return H(e,async()=>{const t=new Re;this.strategy.plugins.push(t);for(const[i,n]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(i),l=new Request(i,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:l,event:e}))}const{updatedURLs:r,notUpdatedURLs:a}=t;return{updatedURLs:r,notUpdatedURLs:a}})}activate(e){return H(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),r=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),i=[];for(const n of r)a.has(n.url)||(await t.delete(n),i.push(n.url));return{deletedURLs:i}})}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,r=this.getCacheKeyForURL(t);if(r)return(await self.caches.open(this.strategy.cacheName)).match(r)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return r=>(r.request=new Request(e),r.params=Object.assign({cacheKey:t},r.params),this.strategy.handle(r))}}let T;const J=()=>(T||(T=new Me),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const z="GET",P=s=>s&&typeof s=="object"?s:{handle:s};let E=class{constructor(e,t,r=z){this.handler=P(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=P(e)}},Te=class extends E{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}},Oe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.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:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,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:n,params:c}}return{}}setDefaultHandler(e,t=z){this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(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")}},C;const Se=()=>(C||(C=new Oe,C.addFetchListener(),C.addCacheListener()),C);function Ae(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new E(n,e,t)}else if(s instanceof RegExp)r=new Te(s,e,t);else if(typeof s=="function")r=new E(s,e,t);else if(s instanceof E)r=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Se().registerRoute(r),r}function Ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(r=>r.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:r=!0,urlManipulation:a}={}){const i=new URL(s,location.href);i.hash="",yield i.href;const n=Ke(i,e);if(yield n.href,t&&n.pathname.endsWith("/")){const c=new URL(n.href);c.pathname+=t,yield c.href}if(r){const c=new URL(n.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:i});for(const o of c)yield o.href}}class We extends E{constructor(e,t){const r=({request:a})=>{const i=e.getURLsToCacheKeys();for(const n of Ie(a.url,t)){const c=i.get(n);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(r,e.strategy)}}function je(s){const e=J(),t=new We(e,s);Ae(t)}function $e(s){J().precache(s)}function qe(s,e){$e(s),je(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const He=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Be=He;class Fe extends Error{constructor(e,t){const r=Be(e,t);super(r),this.name=e,this.details=t}}function X(s){s.then(()=>{})}const Ve=(s,e)=>e.some(t=>s instanceof t);let F,V;function Ge(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qe(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,I=new WeakMap,Z=new WeakMap,O=new WeakMap,$=new WeakMap;function Je(s){const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("success",i),s.removeEventListener("error",n)},i=()=>{t(m(s.result)),a()},n=()=>{r(s.error),a()};s.addEventListener("success",i),s.addEventListener("error",n)});return e.then(t=>{t instanceof IDBCursor&&Y.set(t,s)}).catch(()=>{}),$.set(e,s),e}function ze(s){if(I.has(s))return;const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("complete",i),s.removeEventListener("error",n),s.removeEventListener("abort",n)},i=()=>{t(),a()},n=()=>{r(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",i),s.addEventListener("error",n),s.addEventListener("abort",n)});I.set(s,e)}let W={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return I.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Z.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 Xe(s){W=s(W)}function Ye(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=s.call(S(this),e,...t);return Z.set(r,e.sort?e.sort():[e]),m(r)}:Qe().includes(s)?function(...e){return s.apply(S(this),e),m(Y.get(this))}:function(...e){return m(s.apply(S(this),e))}}function Ze(s){return typeof s=="function"?Ye(s):(s instanceof IDBTransaction&&ze(s),Ve(s,Ge())?new Proxy(s,W):s)}function m(s){if(s instanceof IDBRequest)return Je(s);if(O.has(s))return O.get(s);const e=Ze(s);return e!==s&&(O.set(s,e),$.set(e,s)),e}const S=s=>$.get(s);function et(s,e,{blocked:t,upgrade:r,blocking:a,terminated:i}={}){const n=indexedDB.open(s,e),c=m(n);return r&&n.addEventListener("upgradeneeded",o=>{r(m(n.result),o.oldVersion,o.newVersion,m(n.transaction),o)}),t&&n.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{i&&o.addEventListener("close",()=>i()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function tt(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",r=>e(r.oldVersion,r)),m(t).then(()=>{})}const st=["get","getKey","getAll","getAllKeys","count"],rt=["put","add","delete","clear"],A=new Map;function G(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(A.get(e))return A.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,a=rt.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(a||st.includes(t)))return;const i=async function(n,...c){const o=this.transaction(n,a?"readwrite":"readonly");let l=o.store;return r&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return A.set(e,i),i}Xe(s=>({...s,get:(e,t,r)=>G(e,t)||s.get(e,t,r),has:(e,t)=>!!G(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const at="workbox-expiration",x="cache-entries",Q=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class nt{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(x,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&tt(this._cacheName)}async setTimestamp(e,t){e=Q(e);const r={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},i=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await i.store.put(r),await i.done}async getTimestamp(e){const r=await(await this.getDb()).get(x,this._getId(e));return r==null?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let a=await r.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let n=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&n>=t?i.push(a.value):n++),a=await a.continue()}const c=[];for(const o of i)await r.delete(x,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Q(e)}async getDb(){return this._db||(this._db=await et(at,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class it{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 nt(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),r=await self.caches.open(this._cacheName);for(const a of t)await r.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,X(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),r=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<r:!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:""},K=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),ct=s=>{for(const e of Object.keys(g))s(e)},ot={updateDetails:s=>{ct(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||K(g.googleAnalytics),getPrecacheName:s=>s||K(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||K(g.runtime),getSuffix:()=>g.suffix},lt=new Set;function ht(s){lt.add(s)}class ut{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:r,cacheName:a,cachedResponse:i})=>{if(!i)return null;const n=this._isResponseDateFresh(i),c=this._getCacheExpiration(a);X(c.expireEntries());const o=c.updateTimestamp(r.url);if(t)try{t.waitUntil(o)}catch{}return n?i:null},this.cacheDidUpdate=async({cacheName:t,request:r})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(r.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&ht(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===ot.getRuntimeName())throw new Fe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new it(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 r=Date.now();return t>=r-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 ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class L{constructor(e,t,r=ee){this.handler=v(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=v(e)}}class ft extends L{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}}class dt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.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:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,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:n,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 y("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 y("unregister-route-route-not-registered")}}let k;const pt=()=>(k||(k=new dt,k.addFetchListener(),k.addCacheListener()),k);function te(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new L(n,e,t)}else if(s instanceof RegExp)r=new ft(s,e,t);else if(typeof s=="function")r=new L(s,e,t);else if(s instanceof L)r=s;else throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pt().registerRoute(r),r}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}class gt{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new he,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=U(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=U(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=U(e);await de(0);const a=await this.getCacheKey(r,"write");if(!t)throw new y("cache-put-with-no-response",{url:fe(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await le(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ue(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}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,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}}class se{constructor(e={}){this.cacheName=oe.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,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new gt(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new y("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}}class mt extends se{async _handle(e,t){let r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(i){i instanceof Error&&(a=i)}if(!r)throw new y("no-response",{url:e.url,error:a});return r}}const wt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class yt extends se{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(wt)}async _handle(e,t){const r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),i;if(!a)try{a=await r}catch(n){n instanceof Error&&(i=n)}if(!a)throw new y("no-response",{url:e.url,error:i});return a}}qe(([{"revision":null,"url":"assets/access-control-C15ttx-y.js"},{"revision":null,"url":"assets/actions-D-mxVcNU.js"},{"revision":null,"url":"assets/add-component-core-D-IRi6XF.css"},{"revision":null,"url":"assets/add-component-core-DNqTsrPg.js"},{"revision":null,"url":"assets/Add-DTHqaebJ.js"},{"revision":null,"url":"assets/add-resource-C6AMLerq.js"},{"revision":null,"url":"assets/addon-_m1gJFAF.js"},{"revision":null,"url":"assets/analytics-DvHwLQn7.js"},{"revision":null,"url":"assets/api-K65cLqol.js"},{"revision":null,"url":"assets/ar-C89hW7LF.js"},{"revision":null,"url":"assets/ar-DoIWDL3Q.js"},{"revision":null,"url":"assets/ArrowDropDown-DbyzWNvL.js"},{"revision":null,"url":"assets/audit-logs-BCbtyCHg.js"},{"revision":null,"url":"assets/base32-BFfp490K.js"},{"revision":null,"url":"assets/branding-D8S6jsa0.js"},{"revision":null,"url":"assets/bundle-avatar-C9ats955.js"},{"revision":null,"url":"assets/button-BmPwSTan.js"},{"revision":null,"url":"assets/CheckCircle-CFxGo9yf.js"},{"revision":null,"url":"assets/ChevronLeft-BfXQoYEz.js"},{"revision":null,"url":"assets/ChevronRight-CfoEIq_n.js"},{"revision":null,"url":"assets/click-to-copy-_Hi7Yhx3.js"},{"revision":null,"url":"assets/cloneDeep-BRiLvZjr.js"},{"revision":null,"url":"assets/complete-DUg7uJ4N.js"},{"revision":null,"url":"assets/component-D1agqLE_.js"},{"revision":null,"url":"assets/config-navigation-CMi0YByE.js"},{"revision":null,"url":"assets/config-S6WZ6U3Y.js"},{"revision":null,"url":"assets/config-space-BtoXeFsn.js"},{"revision":null,"url":"assets/config-xTynYj5F.js"},{"revision":null,"url":"assets/confirm-yYw8jeh5.js"},{"revision":null,"url":"assets/connect-CT8urDCb.js"},{"revision":null,"url":"assets/connect-DMnZDuPy.js"},{"revision":null,"url":"assets/connect-to-BtXA2Q7q.js"},{"revision":null,"url":"assets/content-layout-DRV8Bqu8.js"},{"revision":null,"url":"assets/dashboard-D7xokuFw.js"},{"revision":null,"url":"assets/de-BScxb0zD.js"},{"revision":null,"url":"assets/de-BVgb1fEg.js"},{"revision":null,"url":"assets/DeleteOutline-BmH9ek4A.js"},{"revision":null,"url":"assets/did-address-DL8dQh4X.js"},{"revision":null,"url":"assets/domain-list-CID5R830.js"},{"revision":null,"url":"assets/domain-WlHroGqS.js"},{"revision":null,"url":"assets/Done-EMi5bDwr.js"},{"revision":null,"url":"assets/Download-Dhtefh1X.js"},{"revision":null,"url":"assets/EditIcon-BGaX97FF.js"},{"revision":null,"url":"assets/email-XNK7Gwt2.js"},{"revision":null,"url":"assets/Error-Djqvk_X8.js"},{"revision":null,"url":"assets/es-B9f-yiTL.js"},{"revision":null,"url":"assets/es-CWcVPAna.js"},{"revision":null,"url":"assets/exchange-passport-BkvQV3O8.js"},{"revision":null,"url":"assets/form-text-input-B1uYH91s.js"},{"revision":null,"url":"assets/format-error-C0Ke3VXF.js"},{"revision":null,"url":"assets/fr-BguXQaFu.js"},{"revision":null,"url":"assets/fr-C8Jr_C8u.js"},{"revision":null,"url":"assets/fuel-uFxFD3IR.js"},{"revision":null,"url":"assets/fullpage-Dc1dR2nf.js"},{"revision":null,"url":"assets/get-safe-url-B9qOA7gB.js"},{"revision":null,"url":"assets/get-safe-url-BTwyxtCV.js"},{"revision":null,"url":"assets/Google-MetxIaR3.js"},{"revision":null,"url":"assets/hi-7nPwxLb7.js"},{"revision":null,"url":"assets/hi-DTqZQNNB.js"},{"revision":null,"url":"assets/home-BfUTLxOL.js"},{"revision":null,"url":"assets/id-CUsGyKYW.js"},{"revision":null,"url":"assets/id-gU7ysJNs.js"},{"revision":null,"url":"assets/iframe-CDk6_C57.js"},{"revision":null,"url":"assets/index-1NdG9dcQ.js"},{"revision":null,"url":"assets/index-AgKpYdvC.css"},{"revision":null,"url":"assets/index-BBlaG9rd.js"},{"revision":null,"url":"assets/index-BNjqST1U.js"},{"revision":null,"url":"assets/index-BQ9qcXAM.js"},{"revision":null,"url":"assets/index-BzpSavwm.js"},{"revision":null,"url":"assets/index-C2fPoxDR.js"},{"revision":null,"url":"assets/index-C8bsu4NM.js"},{"revision":null,"url":"assets/index-cBCi42Bf.js"},{"revision":null,"url":"assets/index-CeDgfE-R.js"},{"revision":null,"url":"assets/index-CEYigfYv.js"},{"revision":null,"url":"assets/index-CIjk07iX.js"},{"revision":null,"url":"assets/index-CKIpILov.js"},{"revision":null,"url":"assets/index-D0faGVLi.js"},{"revision":null,"url":"assets/index-D4b-IulH.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-DBoRYbIw.js"},{"revision":null,"url":"assets/index-DcfIKM1A.js"},{"revision":null,"url":"assets/index-DGE6IUiK.js"},{"revision":null,"url":"assets/index-DoZ2YM4T.js"},{"revision":null,"url":"assets/index-DUqnq1p0.js"},{"revision":null,"url":"assets/index-DVYdq7IA.js"},{"revision":null,"url":"assets/index-DX_lvtWO.js"},{"revision":null,"url":"assets/index-Hq7kqq19.js"},{"revision":null,"url":"assets/index-QX3ZQRUn.js"},{"revision":null,"url":"assets/InfoOutlined-Bd6IN61C.js"},{"revision":null,"url":"assets/invitation-BkpzegkF.js"},{"revision":null,"url":"assets/invite-DSfHEBpk.js"},{"revision":null,"url":"assets/isEmail-BWNRBSAy.js"},{"revision":null,"url":"assets/issue-passport-DRO3fhhX.js"},{"revision":null,"url":"assets/item-D9PJoNKZ.js"},{"revision":null,"url":"assets/ja-B0U7M2t1.js"},{"revision":null,"url":"assets/ja-C4BURK37.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-CeKzLbt8.js"},{"revision":null,"url":"assets/ko-CpDA9JjF.js"},{"revision":null,"url":"assets/Launch-DC2ZwJy0.js"},{"revision":null,"url":"assets/launch-result-message-0WH2fKJs.js"},{"revision":null,"url":"assets/LaunchOutlined-CYryXNUL.js"},{"revision":null,"url":"assets/layout-KUVrIKnH.js"},{"revision":null,"url":"assets/list-BmQp9JBM.js"},{"revision":null,"url":"assets/list-header-Cm2JzuBu.js"},{"revision":null,"url":"assets/localization-BUyqSLbi.js"},{"revision":null,"url":"assets/LockIcon-BHLM_myO.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/log-VT6HCVkp.js"},{"revision":null,"url":"assets/login-BXw8BSYh.js"},{"revision":null,"url":"assets/login-oauth-callback-D_ULXKRT.js"},{"revision":null,"url":"assets/logo-uploader-B0QGvHYx.js"},{"revision":null,"url":"assets/Loop-Dwj655TP.js"},{"revision":null,"url":"assets/lost-passport-CMs5A43o.js"},{"revision":null,"url":"assets/lottie-react.esm-CHpXrEmm.js"},{"revision":null,"url":"assets/MoreHoriz-B8ywH5RE.js"},{"revision":null,"url":"assets/open-window-DFVq0Vka.js"},{"revision":null,"url":"assets/overview-JoUamf5H.js"},{"revision":null,"url":"assets/page-header-B2kRYRXR.js"},{"revision":null,"url":"assets/permission-CtM69wEM.js"},{"revision":null,"url":"assets/PlayArrow-vglCW7W4.js"},{"revision":null,"url":"assets/preferences-BI2Qy7wd.js"},{"revision":null,"url":"assets/pt-7r06GaNd.js"},{"revision":null,"url":"assets/pt-o1EeyLhb.js"},{"revision":null,"url":"assets/publish-resource-D5Rx9baz.js"},{"revision":null,"url":"assets/QuestionMarkCircle-BDO28oyM.js"},{"revision":null,"url":"assets/raf-schd.esm-Cxhj8umC.js"},{"revision":null,"url":"assets/react-beautiful-dnd.esm-C6Cs2eu-.js"},{"revision":null,"url":"assets/relative-time-D_pFZIBd.js"},{"revision":null,"url":"assets/ru-BlfgKyTj.js"},{"revision":null,"url":"assets/ru-MS-ksi2g.js"},{"revision":null,"url":"assets/sdk-DCjm9lEU.js"},{"revision":null,"url":"assets/ServerLogo-D3ppBqIq.js"},{"revision":null,"url":"assets/session-BTTAIWAT.js"},{"revision":null,"url":"assets/setup-C_n4S096.js"},{"revision":null,"url":"assets/shorten-label-BPVcqm_d.js"},{"revision":null,"url":"assets/simple-select-Bly6GilY.js"},{"revision":null,"url":"assets/slicedToArray--pkkXr1E.js"},{"revision":null,"url":"assets/start-B0Bo1ke7.js"},{"revision":null,"url":"assets/step-actions-BdvB3K8O.js"},{"revision":null,"url":"assets/studio-DADXtyow.js"},{"revision":null,"url":"assets/switch-control-3273Ci8c.js"},{"revision":null,"url":"assets/th-BHBtH1Zl.js"},{"revision":null,"url":"assets/th-gcuRSNHo.js"},{"revision":null,"url":"assets/traffic-CG1Pxqmj.js"},{"revision":null,"url":"assets/transfer-O3YQ6b4a.js"},{"revision":null,"url":"assets/unsubscribe-Dx2vvXHo.js"},{"revision":null,"url":"assets/use-mobile-CtFE3PKN.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-Ua5iss51.js"},{"revision":null,"url":"assets/useAsyncRetry-DO0NcRB-.js"},{"revision":null,"url":"assets/useLocalStorage-BiHNUBhw.js"},{"revision":null,"url":"assets/user-center-LYxpEnYV.js"},{"revision":null,"url":"assets/useSetState-Crt4S51m.js"},{"revision":null,"url":"assets/util-CB4v94Ia.js"},{"revision":null,"url":"assets/util-lgEyE78l.js"},{"revision":null,"url":"assets/vendor-arcblock-DhgPdlEj.css"},{"revision":null,"url":"assets/vendor-arcblock-ZjreIevk.js"},{"revision":null,"url":"assets/vendor-hooks-BKxTDk_P.js"},{"revision":null,"url":"assets/vendor-mui-core-DHnPlNQK.js"},{"revision":null,"url":"assets/vendor-mui-x-BcCkWIwf.js"},{"revision":null,"url":"assets/vendor-react-D-afvo_7.js"},{"revision":null,"url":"assets/vendor-utils-5TjOM6td.js"},{"revision":null,"url":"assets/vi-CGYOhf_R.js"},{"revision":null,"url":"assets/vi-CuGQRG8r.js"},{"revision":null,"url":"assets/ViewList-BEBx2X_O.js"},{"revision":null,"url":"assets/wrap-locale-dvgNAAzE.js"},{"revision":null,"url":"assets/zh-BYS_9r4v.js"},{"revision":null,"url":"assets/zh-DfOtp2w7.js"},{"revision":null,"url":"assets/zh-tw-BR5CO3an.js"},{"revision":null,"url":"assets/zh-tw-DFpaHA6Z.js"},{"revision":"a6da0e03a27733f272a6fbd8b2cd2f85","url":"index.html"},{"revision":"629a14a7e3397a134f5a30b5dc735183","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"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")));pe();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const re=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));te(({request:s})=>re(s)?!1:s.url.includes("/static/"),new mt({cacheName:`static-${self.registration.scope}`,plugins:[new ut({maxEntries:200})]}));te(({request:s})=>re(s)?!1:s.url.includes("/images/")||s.url.includes("/router/-template-styles/"),new yt({cacheName:`StaleWhileRevalidate-${self.registration.scope}`}));
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.38-beta-
|
|
6
|
+
"version": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
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.38-beta-
|
|
37
|
-
"@abtnode/auth": "1.16.38-beta-
|
|
38
|
-
"@abtnode/client": "1.16.38-beta-
|
|
39
|
-
"@abtnode/connect-storage": "1.16.38-beta-
|
|
40
|
-
"@abtnode/constant": "1.16.38-beta-
|
|
41
|
-
"@abtnode/core": "1.16.38-beta-
|
|
42
|
-
"@abtnode/cron": "1.16.38-beta-
|
|
43
|
-
"@abtnode/logger": "1.16.38-beta-
|
|
44
|
-
"@abtnode/models": "1.16.38-beta-
|
|
45
|
-
"@abtnode/router-templates": "1.16.38-beta-
|
|
46
|
-
"@abtnode/util": "1.16.38-beta-
|
|
36
|
+
"@abtnode/analytics": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
37
|
+
"@abtnode/auth": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
38
|
+
"@abtnode/client": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
39
|
+
"@abtnode/connect-storage": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
40
|
+
"@abtnode/constant": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
41
|
+
"@abtnode/core": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
42
|
+
"@abtnode/cron": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
43
|
+
"@abtnode/logger": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
44
|
+
"@abtnode/models": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
45
|
+
"@abtnode/router-templates": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
46
|
+
"@abtnode/util": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
47
47
|
"@arcblock/did": "^1.19.6",
|
|
48
48
|
"@arcblock/did-auth": "1.19.6",
|
|
49
49
|
"@arcblock/did-ext": "^1.19.6",
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
"@arcblock/jwt": "1.19.6",
|
|
53
53
|
"@arcblock/validator": "^1.19.6",
|
|
54
54
|
"@arcblock/ws": "1.19.6",
|
|
55
|
-
"@blocklet/constant": "1.16.38-beta-
|
|
55
|
+
"@blocklet/constant": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
56
56
|
"@blocklet/did-space-js": "^1.0.9",
|
|
57
|
-
"@blocklet/env": "1.16.38-beta-
|
|
57
|
+
"@blocklet/env": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
58
58
|
"@blocklet/form-builder": "^0.1.11",
|
|
59
59
|
"@blocklet/form-collector": "^0.1.8",
|
|
60
|
-
"@blocklet/images": "1.16.38-beta-
|
|
61
|
-
"@blocklet/js-sdk": "1.16.38-beta-
|
|
62
|
-
"@blocklet/meta": "1.16.38-beta-
|
|
63
|
-
"@blocklet/sdk": "1.16.38-beta-
|
|
60
|
+
"@blocklet/images": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
61
|
+
"@blocklet/js-sdk": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
62
|
+
"@blocklet/meta": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
63
|
+
"@blocklet/sdk": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
64
64
|
"@blocklet/uploader-server": "^0.1.76",
|
|
65
65
|
"@did-connect/authenticator": "^2.2.7",
|
|
66
66
|
"@did-connect/relay-adapter-express": "^2.2.7",
|
|
@@ -109,14 +109,14 @@
|
|
|
109
109
|
"whatwg-url": "14.0.0"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
|
-
"@abtnode/ux": "1.16.38-beta-
|
|
112
|
+
"@abtnode/ux": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
113
113
|
"@arcblock/bridge": "^2.11.30",
|
|
114
114
|
"@arcblock/did-connect": "^2.11.30",
|
|
115
115
|
"@arcblock/icons": "^2.11.30",
|
|
116
116
|
"@arcblock/react-hooks": "^2.11.30",
|
|
117
117
|
"@arcblock/ux": "^2.11.30",
|
|
118
118
|
"@blocklet/launcher-layout": "^2.11.30",
|
|
119
|
-
"@blocklet/tracker": "1.16.38-beta-
|
|
119
|
+
"@blocklet/tracker": "1.16.38-beta-20250206-084543-4d7b4331",
|
|
120
120
|
"@blocklet/ui-react": "^2.11.30",
|
|
121
121
|
"@blocklet/uploader": "^0.1.65",
|
|
122
122
|
"@emotion/react": "^11.11.4",
|
|
@@ -194,5 +194,5 @@
|
|
|
194
194
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
195
195
|
"email": "shijun@arcblock.io"
|
|
196
196
|
},
|
|
197
|
-
"gitHead": "
|
|
197
|
+
"gitHead": "933b2c2856240f2d78b3a392f8a3b4e8584860f0"
|
|
198
198
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as B,j as h}from"./vendor-mui-core-CCMNKHtm.js";import{l as L,r}from"./vendor-react-D-afvo_7.js";import{x as W,C as O}from"./vendor-utils-5TjOM6td.js";import{e as A,a5 as K}from"./vendor-arcblock-Bf7AGBSd.js";import{k as w,u as T,o as _}from"./vendor-hooks-BKxTDk_P.js";import{A as F,S as $}from"./add-component-core-DZPE4BRe.js";import{o as z,K as G}from"./index-uosYiNLl.js";import"./item-7Z8_UB5K.js";import"./Add-0_yO_NcD.js";import"./format-error-C0Ke3VXF.js";import"./Launch-DNY7Ut_B.js";import"./Done-Bsd0QwkQ.js";import"./DeleteOutline-BaOxCgo3.js";import"./click-to-copy-Ck4RKrL7.js";import"./shorten-label-CYJeMT7h.js";import"./confirm-D7n9Rzfx.js";import"./session-DutPZhUI.js";import"./get-safe-url-BsKINLVF.js";import"./did-address-CLeqbWiu.js";import"./launch-result-message-C_UhVRcl.js";import"./page-header-CJHCTtBc.js";import"./config-space-piVzY5c1.js";import"./api-K65cLqol.js";import"./logo-uploader-DZm2nb0s.js";import"./index-DoZ2YM4T.js";import"./index-BgGF6utP.js";import"./Google-F1HiAjHW.js";import"./cloneDeep-BRiLvZjr.js";import"./index-BvLMNAG0.js";import"./index-C2fPoxDR.js";import"./index-DTzPwoh8.js";import"./useLocalStorage-tmIJr51I.js";import"./util-CtKeCk_N.js";import"./use-mobile-Bk8quGt9.js";import"./content-layout-CzrxMNjA.js";import"./connect-to-BzfmK9yx.js";import"./ArrowDropDown-CSe7vdhu.js";import"./ChevronLeft-CYpg5M_K.js";import"./ChevronRight-DORpkdoL.js";function Me(){var u;const{t:f}=A(),{blocklet:i}=z(),{componentDid:s}=L(),g=B(e=>e.breakpoints.down("md")),o=new URL(window.location.href),C=o.searchParams.get("mode")==="dialog",c=o.searchParams.get("resourceType")||"",l=o.searchParams.get("resourceDid")||s,R=o.searchParams.get("store")||"",S=o.searchParams.get("showFromUrl")!=="false",y=o.searchParams.get("showResourcesSwitch")!=="false",E=o.searchParams.get("enableRunBackground")!=="false",P=o.searchParams.get("showCategory")!=="false",n=(u=i==null?void 0:i.meta)==null?void 0:u.did,m=R.split(",").filter(Boolean).map(e=>{try{return new URL(e.startsWith("http")?e:`https://${e}`).origin}catch(t){return console.error(t),null}}).filter(Boolean),[D,x]=r.useState(m.map(e=>({url:e,name:e.replace("https://","")}))),[U,b]=r.useState(null),[j,M]=r.useState("");r.useEffect(()=>{(async()=>{try{const e=await Promise.all(m.map(async t=>{const a=W(t,"/api/store.json"),{data:v}=await O.get(a);return{url:t,name:v.name}}));x(e||[])}catch(e){console.error(e)}})()},[m.join(",")]);const k=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")};r.useEffect(()=>{const e=G();return n&&e.connect(),()=>{n&&e.isConnected()&&e.disconnect()}},[n]),w(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:s},"*")});const p=T(e=>{var t,a;((t=e.data)==null?void 0:t.event)==="resourceDialog.select"&&((a=e.data)==null?void 0:a.componentDid)===s&&(b(e.data.data),M(e.data.storeUrl))});w(()=>{window.addEventListener("message",p)}),_(()=>{window.removeEventListener("message",p)});const d=({inDialog:e=!0}={})=>h.jsx(F,{stores:D,selectedMeta:U,storeUrl:j,resourceType:c,resourceDid:l,mode:"embed",inDialog:e,storageKey:$(`${c}+${l}`),showResourcesSwitch:y,showFromUrl:S,enableRunBackground:E,showCategory:P});return C?h.jsx(K,{className:"resource-dialog",title:f("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:g?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(e,t)=>{t!=="backdropClick"&&k()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:d()}):d({inDialog:!1})}export{Me as default};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{E as i,j as s,a3 as h,aa as B,T as j,bN as k,a4 as x}from"./vendor-mui-core-CCMNKHtm.js";import{r as f,u as N}from"./vendor-react-D-afvo_7.js";import{a0 as R,e as I,aq as $,ax as H,aR as M,af as U}from"./vendor-arcblock-Bf7AGBSd.js";import{I as D,T as w}from"./traffic-1TtyUzFO.js";import{p as S}from"./index-CSkA6M4K.js";import{ax as P,aw as g,B as F,f as v,aE as z,o as q}from"./index-uosYiNLl.js";import{B as O}from"./bundle-avatar-TEUPlhi2.js";import{B as A}from"./dashboard-B_hsqmQK.js";import"./vendor-utils-5TjOM6td.js";import"./vendor-hooks-BKxTDk_P.js";import"./useAsyncRetry-EMRT9Ldq.js";import"./useAsync-Ua5iss51.js";import"./iframe-Cn--d9nR.js";import"./LaunchOutlined-BUOyH9Rv.js";import"./ChevronLeft-CYpg5M_K.js";import"./ChevronRight-DORpkdoL.js";import"./index-D5mFr1eo.js";import"./format-error-C0Ke3VXF.js";import"./vendor-mui-x-DmPVvZFJ.js";import"./useLocalStorage-tmIJr51I.js";import"./confirm-D7n9Rzfx.js";import"./PlayArrow-C6dXJHO6.js";import"./get-safe-url-BsKINLVF.js";import"./session-DutPZhUI.js";import"./useSetState-Crt4S51m.js";const G=r=>`${r}%`;function L({cpus:r,currentLoad:u,history:a,empty:l}){const{t:c,locale:o}=f.useContext(R);return s.jsx(D,{id:"cpu-sparkline",title:c("common.cpu"),current:`${Math.floor(u||0)}%`,data:a,description:`${c("system.cores")}: ${(r==null?void 0:r.length)||0}`,dateFn:m=>P(m,"HH:mm:ss",o),valueFn:G,empty:l})}L.propTypes={cpus:i.array,currentLoad:i.number,history:i.array,empty:i.node};L.defaultProps={cpus:[],currentLoad:0,history:[],empty:null};function T({instanceCount:r,title:u,total:a,used:l,history:c,empty:o}){const{t:m,locale:y}=I(),n=!!a,t=a-l,e=n?`(${Math.floor(l/a*100)}%)`:"",p=[];return r&&p.push({title:m("system.instances"),metric:r}),p.push({title:m("system.used"),metric:g(l)}),n&&p.push({title:m("system.free"),metric:g(t)},{title:m("system.total"),metric:g(a)}),s.jsx(D,{id:"mem-sparkline",title:u||m("common.memory"),current:`${g(Math.floor(l||0))} ${e}`,empty:o,data:c,description:p.map((d,b)=>s.jsxs(h,{sx:{marginLeft:b===0?0:2},children:[d.title,": ",d.metric]},d.title)),dateFn:d=>P(d,"HH:mm:ss",y),valueFn:g})}T.propTypes={title:i.string,instanceCount:i.number,total:i.number,used:i.number,history:i.array,empty:i.node};T.defaultProps={title:"",instanceCount:null,total:null,used:null,history:[],empty:null};function C({blocklet:r,cpuHistory:u,memoryHistory:a,...l}){const{t:c}=I(),o=r.appRuntimeInfo||{},m=f.useCallback(y=>r.status!=="running"?s.jsx(j,{children:c("blocklet.runtimeInfo.noRunning")}):y.length?null:s.jsx($,{children:c("common.empty")}),[r.status,c]);return s.jsx(V,{component:"div",...l,children:s.jsxs(k,{className:"page-metrics",container:!0,spacing:5,children:[s.jsx(k,{item:!0,lg:4,md:6,sm:6,xs:12,children:s.jsx(L,{empty:m(u),currentLoad:o.cpuUsage||0,history:u,style:{height:150}})},"cpu"),s.jsx(k,{item:!0,lg:4,md:6,sm:6,xs:12,children:s.jsx(T,{empty:m(a),used:o.memoryUsage||0,history:a,style:{height:150}})},"memory")]})})}C.propTypes={blocklet:i.object.isRequired,cpuHistory:i.arrayOf(i.shape({date:i.number,value:i.number})),memoryHistory:i.arrayOf(i.shape({date:i.number,value:i.number}))};C.defaultProps={cpuHistory:[],memoryHistory:[]};const V=B(j)``;function E(){const{t:r,locale:u}=I(),{blocklet:a,runtimeHistory:l,actions:{refreshBlocklet:c}}=F(),o=f.useMemo(()=>{const n=[];return v.forEachBlockletSync(a,(t,{ancestors:e,id:p,level:d})=>{var b;(b=t==null?void 0:t.meta)!=null&&b.did&&t.meta.did!==a.meta.did&&n.push({type:"blocklet",groupId:a.meta.did,groupName:v.getDisplayName(a),id:p,name:v.getDisplayName(t,!0),blocklet:a,component:t,level:d-1>=0?d-1:0,runtimeInfo:t.runtimeInfo,ancestors:e})}),n},[a]);f.useEffect(()=>{const n=setInterval(()=>{c()},1e4);return()=>{clearInterval(n)}},[]);const m=n=>S(Number(n||0),{locale:z(u)}),y=[{label:r("common.name"),name:"name",options:{customBodyRenderLite(n){const{name:t,component:e,level:p,ancestors:d}=o[n];return s.jsxs(h,{display:"flex",alignItems:"center",pl:p*2,children:[s.jsx(O,{size:20,blocklet:e,ancestors:d}),s.jsx(h,{ml:1,children:t}),s.jsx(A,{variant:"pin",style:{marginLeft:8},status:e.status,source:e.source,progress:e.progress})]})}}},{label:r("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(n){const{runtimeInfo:t,component:e}=o[n];return!(e!=null&&e.status)||e.status!=="running"?s.jsx(x,{title:r("common.noData"),children:"--"}):m(t==null?void 0:t.uptime)}}},{label:r("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(n){const{runtimeInfo:t,component:e}=o[n];return!(e!=null&&e.status)||e.status!=="running"?s.jsx(x,{title:r("common.noData"),children:"--"}):g((t==null?void 0:t.memoryUsage)||0)}}},{label:r("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(n){const{runtimeInfo:t,component:e}=o[n];return!(e!=null&&e.status)||e.status!=="running"?s.jsx(x,{title:r("common.noData"),children:"--"}):`${((t==null?void 0:t.cpuUsage)||0).toFixed(1)}%`}}},{label:r("analytics.runtime"),name:"runtimeInfo.runtime",options:{customBodyRenderLite(n){const{runtimeInfo:t}=o[n];return t!=null&&t.uptime?s.jsxs(h,{display:"flex",alignItems:"center",children:[s.jsx(H,{icon:t!=null&&t.runningDocker?"catppuccin:docker-ignore":"logos:nodejs-icon"}),s.jsx(h,{ml:1,children:t!=null&&t.runningDocker?"Docker":"Nodejs"})]}):null}}},{label:r("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid",options:{customBodyRenderLite(n){const{runtimeInfo:t,component:e}=o[n];return!(e!=null&&e.status)||e.status!=="running"?s.jsx(x,{title:r("common.noData"),children:"--"}):t==null?void 0:t.pid}}},{label:r("blocklet.runtimeInfo.port"),name:"runtimeInfo.port",options:{customBodyRenderLite(n){const{runtimeInfo:t,component:e}=o[n];return!(e!=null&&e.status)||e.status!=="running"?s.jsx(x,{title:r("common.noData"),children:"--"}):t==null?void 0:t.port}}}];return s.jsxs(W,{component:"div",children:[s.jsx(j,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:2,children:r("analytics.trend")}),s.jsx(h,{children:s.jsx(C,{blocklet:a,cpuHistory:l.cpu,memoryHistory:l.memory})}),s.jsx(h,{mt:3,children:s.jsx(M,{title:r("analytics.detail"),className:"monitor-table",locale:u,data:o,columns:y,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]})}E.propTypes={};const W=B(j)``;function bt(){const{t:r}=f.useContext(R),{did:u,client:a}=q(),[l,c]=N(),[o,m]=f.useState(l.get("tab")||"traffic"),y=p=>{m(p)};f.useEffect(()=>{l.set("tab",o),c(l,{replace:!0})},[o]);const n=[{label:r("common.traffic"),value:"traffic"},{label:r("common.runtime"),value:"runtime"}],t={traffic:w,runtime:E},e=t[o]||t.traffic;return s.jsxs(J,{children:[s.jsx(U,{tabs:n,current:o,onChange:y}),s.jsx("div",{className:"page-content",children:f.isValidElement(e)?e:s.jsx(e,{client:a,did:u})})]},o)}const J=B.main`
|
|
2
|
-
.page-header {
|
|
3
|
-
display: flex;
|
|
4
|
-
justify-content: space-between;
|
|
5
|
-
align-items: center;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.page-content {
|
|
9
|
-
margin-top: 16px;
|
|
10
|
-
}
|
|
11
|
-
`;export{bt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./vendor-mui-core-CCMNKHtm.js";import{a1 as n}from"./vendor-arcblock-Bf7AGBSd.js";function m({...t}){return o.jsx(n,{className:"bottom-button",variant:"contained",color:"primary",...t})}export{m as S};
|