@abtnode/blocklet-services 1.16.17-beta-5d4664f8 → 1.16.17-beta-ce49fe0e

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "/.well-known/service/static/static/css/main.7ea79dc8.css",
4
- "main.js": "/.well-known/service/static/static/js/main.57389c61.js",
4
+ "main.js": "/.well-known/service/static/static/js/main.ee013f15.js",
5
5
  "static/js/4716.bd8bed1b.chunk.js": "/.well-known/service/static/static/js/4716.bd8bed1b.chunk.js",
6
6
  "static/js/6856.2eb98754.chunk.js": "/.well-known/service/static/static/js/6856.2eb98754.chunk.js",
7
7
  "static/js/3025.7dc2fe04.chunk.js": "/.well-known/service/static/static/js/3025.7dc2fe04.chunk.js",
@@ -10,7 +10,7 @@
10
10
  "static/js/1760.1e5aaa46.chunk.js": "/.well-known/service/static/static/js/1760.1e5aaa46.chunk.js",
11
11
  "static/js/9620.301493bc.chunk.js": "/.well-known/service/static/static/js/9620.301493bc.chunk.js",
12
12
  "static/js/1480.88c590c2.chunk.js": "/.well-known/service/static/static/js/1480.88c590c2.chunk.js",
13
- "static/js/6186.c68316fd.chunk.js": "/.well-known/service/static/static/js/6186.c68316fd.chunk.js",
13
+ "static/js/6186.1f08318c.chunk.js": "/.well-known/service/static/static/js/6186.1f08318c.chunk.js",
14
14
  "static/js/4682.f90d26fd.chunk.js": "/.well-known/service/static/static/js/4682.f90d26fd.chunk.js",
15
15
  "static/js/6711.fa6dfc37.chunk.js": "/.well-known/service/static/static/js/6711.fa6dfc37.chunk.js",
16
16
  "static/js/8437.13d39ce4.chunk.js": "/.well-known/service/static/static/js/8437.13d39ce4.chunk.js",
@@ -33,7 +33,7 @@
33
33
  "static/js/5982.0abe67c3.chunk.js": "/.well-known/service/static/static/js/5982.0abe67c3.chunk.js",
34
34
  "static/js/6139.c781eea4.chunk.js": "/.well-known/service/static/static/js/6139.c781eea4.chunk.js",
35
35
  "static/js/4023.8cfc3ec6.chunk.js": "/.well-known/service/static/static/js/4023.8cfc3ec6.chunk.js",
36
- "static/js/6452.c06d87b7.chunk.js": "/.well-known/service/static/static/js/6452.c06d87b7.chunk.js",
36
+ "static/js/8792.fa2c5f5e.chunk.js": "/.well-known/service/static/static/js/8792.fa2c5f5e.chunk.js",
37
37
  "static/js/1565.cf381434.chunk.js": "/.well-known/service/static/static/js/1565.cf381434.chunk.js",
38
38
  "static/js/2393.528e5343.chunk.js": "/.well-known/service/static/static/js/2393.528e5343.chunk.js",
39
39
  "static/css/5547.5f9be15f.chunk.css": "/.well-known/service/static/static/css/5547.5f9be15f.chunk.css",
@@ -104,7 +104,7 @@
104
104
  "index.html": "/.well-known/service/static/index.html",
105
105
  "static/media/space-connected.svg": "/.well-known/service/static/static/media/space-connected.9a4e18fd2bc7d065191b0d241a131c28.svg",
106
106
  "main.7ea79dc8.css.map": "/.well-known/service/static/static/css/main.7ea79dc8.css.map",
107
- "main.57389c61.js.map": "/.well-known/service/static/static/js/main.57389c61.js.map",
107
+ "main.ee013f15.js.map": "/.well-known/service/static/static/js/main.ee013f15.js.map",
108
108
  "4716.bd8bed1b.chunk.js.map": "/.well-known/service/static/static/js/4716.bd8bed1b.chunk.js.map",
109
109
  "6856.2eb98754.chunk.js.map": "/.well-known/service/static/static/js/6856.2eb98754.chunk.js.map",
110
110
  "3025.7dc2fe04.chunk.js.map": "/.well-known/service/static/static/js/3025.7dc2fe04.chunk.js.map",
@@ -113,7 +113,7 @@
113
113
  "1760.1e5aaa46.chunk.js.map": "/.well-known/service/static/static/js/1760.1e5aaa46.chunk.js.map",
114
114
  "9620.301493bc.chunk.js.map": "/.well-known/service/static/static/js/9620.301493bc.chunk.js.map",
115
115
  "1480.88c590c2.chunk.js.map": "/.well-known/service/static/static/js/1480.88c590c2.chunk.js.map",
116
- "6186.c68316fd.chunk.js.map": "/.well-known/service/static/static/js/6186.c68316fd.chunk.js.map",
116
+ "6186.1f08318c.chunk.js.map": "/.well-known/service/static/static/js/6186.1f08318c.chunk.js.map",
117
117
  "4682.f90d26fd.chunk.js.map": "/.well-known/service/static/static/js/4682.f90d26fd.chunk.js.map",
118
118
  "6711.fa6dfc37.chunk.js.map": "/.well-known/service/static/static/js/6711.fa6dfc37.chunk.js.map",
119
119
  "8437.13d39ce4.chunk.js.map": "/.well-known/service/static/static/js/8437.13d39ce4.chunk.js.map",
@@ -136,7 +136,7 @@
136
136
  "5982.0abe67c3.chunk.js.map": "/.well-known/service/static/static/js/5982.0abe67c3.chunk.js.map",
137
137
  "6139.c781eea4.chunk.js.map": "/.well-known/service/static/static/js/6139.c781eea4.chunk.js.map",
138
138
  "4023.8cfc3ec6.chunk.js.map": "/.well-known/service/static/static/js/4023.8cfc3ec6.chunk.js.map",
139
- "6452.c06d87b7.chunk.js.map": "/.well-known/service/static/static/js/6452.c06d87b7.chunk.js.map",
139
+ "8792.fa2c5f5e.chunk.js.map": "/.well-known/service/static/static/js/8792.fa2c5f5e.chunk.js.map",
140
140
  "1565.cf381434.chunk.js.map": "/.well-known/service/static/static/js/1565.cf381434.chunk.js.map",
141
141
  "2393.528e5343.chunk.js.map": "/.well-known/service/static/static/js/2393.528e5343.chunk.js.map",
142
142
  "5547.5f9be15f.chunk.css.map": "/.well-known/service/static/static/css/5547.5f9be15f.chunk.css.map",
@@ -186,6 +186,6 @@
186
186
  },
187
187
  "entrypoints": [
188
188
  "static/css/main.7ea79dc8.css",
189
- "static/js/main.57389c61.js"
189
+ "static/js/main.ee013f15.js"
190
190
  ]
191
191
  }
package/build/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico?imageFilter=resize&w=32"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"/><meta name="theme-color" content="#000000"/><title>Blocklet Service</title><link rel="manifest" href="/.well-known/service/manifest.json"/><script src="/.well-known/service/api/env"></script><script src="/__blocklet__.js"></script><script defer="defer" src="/.well-known/service/static/static/js/main.57389c61.js"></script><link href="/.well-known/service/static/static/css/main.7ea79dc8.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico?imageFilter=resize&w=32"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"/><meta name="theme-color" content="#000000"/><title>Blocklet Service</title><link rel="manifest" href="/.well-known/service/manifest.json"/><script src="/.well-known/service/api/env"></script><script src="/__blocklet__.js"></script><script defer="defer" src="/.well-known/service/static/static/js/main.ee013f15.js"></script><link href="/.well-known/service/static/static/css/main.7ea79dc8.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see service-worker.js.LICENSE.txt */
2
- !function(){"use strict";var e={838:function(){try{self["workbox:core:6.5.3"]&&_()}catch(e){}},404:function(){try{self["workbox:expiration:6.5.3"]&&_()}catch(e){}},362:function(){try{self["workbox:precaching:6.5.3"]&&_()}catch(e){}},161:function(){try{self["workbox:routing:6.5.3"]&&_()}catch(e){}},880:function(){try{self["workbox:strategies:6.5.3"]&&_()}catch(e){}}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}!function(){r(838);var e=null;function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,r||"default");if("object"!==t(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===t(r)?r:String(r)}function a(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,n(a.key),a)}}function i(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function h(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(e,r){if(r&&("object"===t(r)||"function"===typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){var t=h();return function(){var r,n=u(e);if(t){var a=u(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function p(e,t,r){return p=h()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return r&&c(a,r.prototype),a},p.apply(null,arguments)}function v(e){var t="function"===typeof Map?new Map:void 0;return v=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return p(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)},v(e)}var d=function(e){for(var t=e,r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return n.length>0&&(t+=" :: ".concat(JSON.stringify(n))),t},y=function(e){o(r,e);var t=f(r);function r(e,n){var a;s(this,r);var i=d(e,n);return(a=t.call(this,i)).name=e,a.details=n,a}return i(r)}(v(Error)),b=new Set;var g,x={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!==typeof registration?registration.scope:""},m=function(e){return[x.prefix,e,x.suffix].filter((function(e){return e&&e.length>0})).join("-")},w=function(e){return e||m(x.precache)},k=function(e){return e||m(x.runtime)};function _(){_=function(){return r};var e,r={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(e){h=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var a=t&&t.prototype instanceof g?t:g,s=Object.create(a.prototype),c=new P(n||[]);return i(s,"_invoke",{value:O(e,r,c)}),s}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=l;var p="suspendedStart",v="suspendedYield",d="executing",y="completed",b={};function g(){}function x(){}function m(){}var w={};h(w,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(q([])));E&&E!==n&&a.call(E,c)&&(w=E);var R=m.prototype=g.prototype=Object.create(w);function L(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,r){function n(i,s,c,o){var u=f(e[i],e,s);if("throw"!==u.type){var h=u.arg,l=h.value;return l&&"object"==t(l)&&a.call(l,"__await")?r.resolve(l.__await).then((function(e){n("next",e,c,o)}),(function(e){n("throw",e,c,o)})):r.resolve(l).then((function(e){h.value=e,c(h)}),(function(e){return n("throw",e,c,o)}))}o(u.arg)}var s;i(this,"_invoke",{value:function(e,t){function a(){return new r((function(r,a){n(e,t,r,a)}))}return s=s?s.then(a,a):a()}})}function O(t,r,n){var a=p;return function(i,s){if(a===d)throw new Error("Generator is already running");if(a===y){if("throw"===i)throw s;return{value:e,done:!0}}for(n.method=i,n.arg=s;;){var c=n.delegate;if(c){var o=j(c,n);if(o){if(o===b)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var u=f(t,r,n);if("normal"===u.type){if(a=n.done?y:v,u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=y,n.method="throw",n.arg=u.arg)}}}function j(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,j(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=f(a,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var s=i.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function q(r){if(r||""===r){var n=r[c];if(n)return n.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var i=-1,s=function t(){for(;++i<r.length;)if(a.call(r,i))return t.value=r[i],t.done=!1,t;return t.value=e,t.done=!0,t};return s.next=s}}throw new TypeError(t(r)+" is not iterable")}return x.prototype=m,i(R,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:x,configurable:!0}),x.displayName=h(m,u,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,h(e,u,"GeneratorFunction")),e.prototype=Object.create(R),e},r.awrap=function(e){return{__await:e}},L(C.prototype),h(C.prototype,o,(function(){return this})),r.AsyncIterator=C,r.async=function(e,t,n,a,i){void 0===i&&(i=Promise);var s=new C(l(e,t,n,a),i);return r.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},L(R),h(R,u,"Generator"),h(R,c,(function(){return this})),h(R,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=q,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],c=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var o=a.call(s,"catchLoc"),u=a.call(s,"finallyLoc");if(o&&u){if(this.prev<s.catchLoc)return n(s.catchLoc,!0);if(this.prev<s.finallyLoc)return n(s.finallyLoc)}else if(o){if(this.prev<s.catchLoc)return n(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return n(s.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:q(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},r}function E(e,t,r,n,a,i,s){try{var c=e[i](s),o=c.value}catch(u){return void r(u)}c.done?t(o):Promise.resolve(o).then(n,a)}function R(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function s(e){E(i,n,a,s,c,"next",e)}function c(e){E(i,n,a,s,c,"throw",e)}s(void 0)}))}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){if(e){if("string"===typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}function O(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=C(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw i}}}}function j(e,t){var r,n=new URL(e),a=O(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;n.searchParams.delete(i)}}catch(s){a.e(s)}finally{a.f()}return n.href}function S(e,t,r,n){return T.apply(this,arguments)}function T(){return(T=R(_().mark((function e(t,r,n,a){var i,s,c,o,u,h,l;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=j(r.url,n),r.url!==i){e.next=3;break}return e.abrupt("return",t.match(r,a));case 3:return s=Object.assign(Object.assign({},a),{ignoreSearch:!0}),e.next=6,t.keys(r,s);case 6:c=e.sent,o=O(c),e.prev=8,o.s();case 10:if((u=o.n()).done){e.next=17;break}if(h=u.value,l=j(h.url,n),i!==l){e.next=15;break}return e.abrupt("return",t.match(h,a));case 15:e.next=10;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(8),o.e(e.t0);case 22:return e.prev=22,o.f(),e.finish(22);case 25:return e.abrupt("return");case 26:case"end":return e.stop()}}),e,null,[[8,19,22,25]])})))).apply(this,arguments)}function P(){if(void 0===g){var e=new Response("");if("body"in e)try{new Response(e.body),g=!0}catch(t){g=!1}g=!1}return g}function q(e){e.then((function(){}))}var D=i((function e(){var t=this;s(this,e),this.promise=new Promise((function(e,r){t.resolve=e,t.reject=r}))}));function U(){return N.apply(this,arguments)}function N(){return(N=R(_().mark((function e(){var t,r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,t=O(b),e.prev=2,t.s();case 4:if((r=t.n()).done){e.next=11;break}return n=r.value,e.next=8,n();case 8:0;case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),t.e(e.t0);case 16:return e.prev=16,t.f(),e.finish(16);case 19:0;case 20:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})))).apply(this,arguments)}var I=function(e){return new URL(String(e),location.href).href.replace(new RegExp("^".concat(location.origin)),"")};function A(e){return new Promise((function(t){return setTimeout(t,e)}))}function M(e,t){var r=t();return e.waitUntil(r),r}function K(e,t){return W.apply(this,arguments)}function W(){return(W=R(_().mark((function e(t,r){var n,a,i,s,c,o;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null,t.url&&(a=new URL(t.url),n=a.origin),n===self.location.origin){e.next=4;break}throw new y("cross-origin-copy-response",{origin:n});case 4:if(i=t.clone(),s={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},c=r?r(s):s,!P()){e.next=11;break}e.t0=i.body,e.next=14;break;case 11:return e.next=13,i.blob();case 13:e.t0=e.sent;case 14:return o=e.t0,e.abrupt("return",new Response(o,c));case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,s,c=[],o=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){u=!0,a=e}finally{try{if(!o&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return c}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r(362);function H(e){if(!e)throw new y("add-to-cache-list-unexpected-type",{entry:e});if("string"===typeof e){var t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}var r=e.revision,n=e.url;if(!n)throw new y("add-to-cache-list-unexpected-type",{entry:e});if(!r){var a=new URL(n,location.href);return{cacheKey:a.href,url:a.href}}var i=new URL(n,location.href),s=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",r),{cacheKey:i.href,url:s.href}}var V=i((function e(){var t=this;s(this,e),this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=function(){var e=R(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.request,(n=t.state)&&(n.originalRequest=r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.cachedResponseWillBeUsed=function(){var e=R(_().mark((function e(r){var n,a,i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.event,a=r.state,i=r.cachedResponse,"install"===n.type&&a&&a.originalRequest&&a.originalRequest instanceof Request&&(s=a.originalRequest.url,i?t.notUpdatedURLs.push(s):t.updatedURLs.push(s)),e.abrupt("return",i);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),G=i((function e(t){var r=this,n=t.precacheController;s(this,e),this.cacheKeyWillBeUsed=function(){var e=R(_().mark((function e(t){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.request,a=t.params,i=(null===a||void 0===a?void 0:a.cacheKey)||r._precacheController.getCacheKeyForURL(n.url),e.abrupt("return",i?new Request(i,{headers:n.headers}):n);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._precacheController=n}));r(880);function Y(e){return"string"===typeof e?new Request(e):e}var $=function(){function t(e,r){s(this,t),this._cacheKeys={},Object.assign(this,r),this.event=r.event,this._strategy=e,this._handlerDeferred=new D,this._extendLifetimePromises=[],this._plugins=F(e.plugins),this._pluginStateMap=new Map;var n,a=O(this._plugins);try{for(a.s();!(n=a.n()).done;){var i=n.value;this._pluginStateMap.set(i,{})}}catch(c){a.e(c)}finally{a.f()}this.event.waitUntil(this._handlerDeferred.promise)}return i(t,[{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=R(_().mark((function e(t){var r,n,a,i,s,c,o,u,h,l,f,p;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.event,!("navigate"===(n=Y(t)).mode&&r instanceof FetchEvent&&r.preloadResponse)){e.next=9;break}return e.next=5,r.preloadResponse;case 5:if(!(a=e.sent)){e.next=9;break}return e.abrupt("return",a);case 9:i=this.hasCallback("fetchDidFail")?n.clone():null,e.prev=10,s=O(this.iterateCallbacks("requestWillFetch")),e.prev=12,s.s();case 14:if((c=s.n()).done){e.next=21;break}return o=c.value,e.next=18,o({request:n.clone(),event:r});case 18:n=e.sent;case 19:e.next=14;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(12),s.e(e.t0);case 26:return e.prev=26,s.f(),e.finish(26);case 29:e.next=35;break;case 31:if(e.prev=31,e.t1=e.catch(10),!(e.t1 instanceof Error)){e.next=35;break}throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:e.t1.message});case 35:return u=n.clone(),e.prev=36,e.next=39,fetch(n,"navigate"===n.mode?void 0:this._strategy.fetchOptions);case 39:h=e.sent,l=O(this.iterateCallbacks("fetchDidSucceed")),e.prev=42,l.s();case 44:if((f=l.n()).done){e.next=51;break}return p=f.value,e.next=48,p({event:r,request:u,response:h});case 48:h=e.sent;case 49:e.next=44;break;case 51:e.next=56;break;case 53:e.prev=53,e.t2=e.catch(42),l.e(e.t2);case 56:return e.prev=56,l.f(),e.finish(56);case 59:return e.abrupt("return",h);case 62:if(e.prev=62,e.t3=e.catch(36),!i){e.next=68;break}return e.next=68,this.runCallbacks("fetchDidFail",{error:e.t3,event:r,originalRequest:i.clone(),request:u.clone()});case 68:throw e.t3;case 69:case"end":return e.stop()}}),e,this,[[10,31],[12,23,26,29],[36,62],[42,53,56,59]])})));return function(t){return e.apply(this,arguments)}}())},{key:"fetchAndCachePut",value:function(){var e=R(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetch(t);case 2:return r=e.sent,n=r.clone(),this.waitUntil(this.cachePut(t,n)),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"cacheMatch",value:function(){var e=R(_().mark((function e(t){var r,n,a,i,s,c,o,u,h,l;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Y(t),a=this._strategy,i=a.cacheName,s=a.matchOptions,e.next=4,this.getCacheKey(r,"read");case 4:return c=e.sent,o=Object.assign(Object.assign({},s),{cacheName:i}),e.next=8,caches.match(c,o);case 8:n=e.sent,u=O(this.iterateCallbacks("cachedResponseWillBeUsed")),e.prev=11,u.s();case 13:if((h=u.n()).done){e.next=23;break}return l=h.value,e.next=17,l({cacheName:i,matchOptions:s,cachedResponse:n,request:c,event:this.event});case 17:if(e.t0=e.sent,e.t0){e.next=20;break}e.t0=void 0;case 20:n=e.t0;case 21:e.next=13;break;case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(11),u.e(e.t1);case 28:return e.prev=28,u.f(),e.finish(28);case 31:return e.abrupt("return",n);case 32:case"end":return e.stop()}}),e,this,[[11,25,28,31]])})));return function(t){return e.apply(this,arguments)}}()},{key:"cachePut",value:function(){var t=R(_().mark((function t(r,n){var a,i,s,c,o,u,h,l,f,p,v,d,b;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=Y(r),t.next=3,A(0);case 3:return t.next=5,this.getCacheKey(a,"write");case 5:i=t.sent,t.next=11;break;case 9:(s=n.headers.get("Vary"))&&e.debug("The response for ".concat(I(i.url)," ")+"has a 'Vary: ".concat(s,"' header. ")+"Consider setting the {ignoreVary: true} option on your strategy to ensure cache matching and deletion works as expected.");case 11:if(n){t.next=14;break}throw new y("cache-put-with-no-response",{url:I(i.url)});case 14:return t.next=16,this._ensureResponseSafeToCache(n);case 16:if(c=t.sent){t.next=20;break}return t.abrupt("return",!1);case 20:return o=this._strategy,u=o.cacheName,h=o.matchOptions,t.next=23,self.caches.open(u);case 23:if(l=t.sent,!(f=this.hasCallback("cacheDidUpdate"))){t.next=31;break}return t.next=28,S(l,i.clone(),["__WB_REVISION__"],h);case 28:t.t0=t.sent,t.next=32;break;case 31:t.t0=null;case 32:return p=t.t0,t.prev=34,t.next=37,l.put(i,f?c.clone():c);case 37:t.next=46;break;case 39:if(t.prev=39,t.t1=t.catch(34),!(t.t1 instanceof Error)){t.next=46;break}if("QuotaExceededError"!==t.t1.name){t.next=45;break}return t.next=45,U();case 45:throw t.t1;case 46:v=O(this.iterateCallbacks("cacheDidUpdate")),t.prev=47,v.s();case 49:if((d=v.n()).done){t.next=55;break}return b=d.value,t.next=53,b({cacheName:u,oldResponse:p,newResponse:c.clone(),request:i,event:this.event});case 53:t.next=49;break;case 55:t.next=60;break;case 57:t.prev=57,t.t2=t.catch(47),v.e(t.t2);case 60:return t.prev=60,v.f(),t.finish(60);case 63:return t.abrupt("return",!0);case 64:case"end":return t.stop()}}),t,this,[[34,39],[47,57,60,63]])})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getCacheKey",value:function(){var e=R(_().mark((function e(t,r){var n,a,i,s,c;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="".concat(t.url," | ").concat(r),this._cacheKeys[n]){e.next=24;break}a=t,i=O(this.iterateCallbacks("cacheKeyWillBeUsed")),e.prev=4,i.s();case 6:if((s=i.n()).done){e.next=15;break}return c=s.value,e.t0=Y,e.next=11,c({mode:r,request:a,event:this.event,params:this.params});case 11:e.t1=e.sent,a=(0,e.t0)(e.t1);case 13:e.next=6;break;case 15:e.next=20;break;case 17:e.prev=17,e.t2=e.catch(4),i.e(e.t2);case 20:return e.prev=20,i.f(),e.finish(20);case 23:this._cacheKeys[n]=a;case 24:return e.abrupt("return",this._cacheKeys[n]);case 25:case"end":return e.stop()}}),e,this,[[4,17,20,23]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"hasCallback",value:function(e){var t,r=O(this._strategy.plugins);try{for(r.s();!(t=r.n()).done;){if(e in t.value)return!0}}catch(n){r.e(n)}finally{r.f()}return!1}},{key:"runCallbacks",value:function(){var e=R(_().mark((function e(t,r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=O(this.iterateCallbacks(t)),e.prev=1,n.s();case 3:if((a=n.n()).done){e.next=9;break}return i=a.value,e.next=7,i(r);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"iterateCallbacks",value:_().mark((function e(t){var r,n,a,i=this;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=O(this._strategy.plugins),e.prev=1,a=_().mark((function e(){var r,a,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof(r=n.value)[t]){e.next=6;break}return a=i._pluginStateMap.get(r),s=function(e){var n=Object.assign(Object.assign({},e),{state:a});return r[t](n)},e.next=6,s;case 6:case"end":return e.stop()}}),e)})),r.s();case 4:if((n=r.n()).done){e.next=8;break}return e.delegateYield(a(),"t0",6);case 6:e.next=4;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e.catch(1),r.e(e.t1);case 13:return e.prev=13,r.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,10,13,16]])}))},{key:"waitUntil",value:function(e){return this._extendLifetimePromises.push(e),e}},{key:"doneWaiting",value:function(){var e=R(_().mark((function e(){var t;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=this._extendLifetimePromises.shift())){e.next=5;break}return e.next=3,t;case 3:e.next=0;break;case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"destroy",value:function(){this._handlerDeferred.resolve(null)}},{key:"_ensureResponseSafeToCache",value:function(){var e=R(_().mark((function e(t){var r,n,a,i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t,n=!1,a=O(this.iterateCallbacks("cacheWillUpdate")),e.prev=3,a.s();case 5:if((i=a.n()).done){e.next=18;break}return s=i.value,e.next=9,s({request:this.request,response:r,event:this.event});case 9:if(e.t0=e.sent,e.t0){e.next=12;break}e.t0=void 0;case 12:if(r=e.t0,n=!0,r){e.next=16;break}return e.abrupt("break",18);case 16:e.next=5;break;case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(3),a.e(e.t1);case 23:return e.prev=23,a.f(),e.finish(23);case 26:return n||r&&200!==r.status&&(r=void 0),e.abrupt("return",r);case 28:case"end":return e.stop()}}),e,this,[[3,20,23,26]])})));return function(t){return e.apply(this,arguments)}}()}]),t}(),Q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.cacheName=k(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}return i(e,[{key:"handle",value:function(e){return B(this.handleAll(e),1)[0]}},{key:"handleAll",value:function(e){e instanceof FetchEvent&&(e={event:e,request:e.request});var t=e.event,r="string"===typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new $(this,{event:t,request:r,params:n}),i=this._getResponse(a,r,t);return[i,this._awaitComplete(i,a,r,t)]}},{key:"_getResponse",value:function(){var e=R(_().mark((function e(t,r,n){var a,i,s,c,o,u,h;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.runCallbacks("handlerWillStart",{event:n,request:r});case 2:return a=void 0,e.prev=3,e.next=6,this._handle(r,t);case 6:if((a=e.sent)&&"error"!==a.type){e.next=9;break}throw new y("no-response",{url:r.url});case 9:e.next=39;break;case 11:if(e.prev=11,e.t0=e.catch(3),!(e.t0 instanceof Error)){e.next=34;break}i=O(t.iterateCallbacks("handlerDidError")),e.prev=15,i.s();case 17:if((s=i.n()).done){e.next=26;break}return c=s.value,e.next=21,c({error:e.t0,event:n,request:r});case 21:if(!(a=e.sent)){e.next=24;break}return e.abrupt("break",26);case 24:e.next=17;break;case 26:e.next=31;break;case 28:e.prev=28,e.t1=e.catch(15),i.e(e.t1);case 31:return e.prev=31,i.f(),e.finish(31);case 34:if(a){e.next=38;break}throw e.t0;case 38:0;case 39:o=O(t.iterateCallbacks("handlerWillRespond")),e.prev=40,o.s();case 42:if((u=o.n()).done){e.next=49;break}return h=u.value,e.next=46,h({event:n,request:r,response:a});case 46:a=e.sent;case 47:e.next=42;break;case 49:e.next=54;break;case 51:e.prev=51,e.t2=e.catch(40),o.e(e.t2);case 54:return e.prev=54,o.f(),e.finish(54);case 57:return e.abrupt("return",a);case 58:case"end":return e.stop()}}),e,this,[[3,11],[15,28,31,34],[40,51,54,57]])})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"_awaitComplete",value:function(){var e=R(_().mark((function e(t,r,n,a){var i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:i=e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:return e.prev=8,e.next=11,r.runCallbacks("handlerDidRespond",{event:a,request:n,response:i});case 11:return e.next=13,r.doneWaiting();case 13:e.next=18;break;case 15:e.prev=15,e.t1=e.catch(8),e.t1 instanceof Error&&(s=e.t1);case 18:return e.next=20,r.runCallbacks("handlerDidComplete",{event:a,request:n,response:i,error:s});case 20:if(r.destroy(),!s){e.next=23;break}throw s;case 23:case"end":return e.stop()}}),e,null,[[0,6],[8,15]])})));return function(t,r,n,a){return e.apply(this,arguments)}}()}]),e}(),J=function(t){o(n,t);var r=f(n);function n(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),t.cacheName=w(t.cacheName),(e=r.call(this,t))._fallbackToNetwork=!1!==t.fallbackToNetwork,e.plugins.push(n.copyRedirectedCacheableResponsesPlugin),e}return i(n,[{key:"_handle",value:function(){var e=R(_().mark((function e(t,r){var n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.cacheMatch(t);case 2:if(!(n=e.sent)){e.next=5;break}return e.abrupt("return",n);case 5:if(!r.event||"install"!==r.event.type){e.next=9;break}return e.next=8,this._handleInstall(t,r);case 8:case 11:return e.abrupt("return",e.sent);case 9:return e.next=11,this._handleFetch(t,r);case 12:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_handleFetch",value:function(){var t=R(_().mark((function t(r,n){var a,i,s,c,o,u;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.params||{},!this._fallbackToNetwork){t.next=17;break}return s=i.integrity,c=r.integrity,o=!c||c===s,t.next=8,n.fetch(new Request(r,{integrity:"no-cors"!==r.mode?c||s:void 0}));case 8:if(a=t.sent,!s||!o||"no-cors"===r.mode){t.next=15;break}return this._useDefaultCacheabilityPluginIfNeeded(),t.next=13,n.cachePut(r,a.clone());case 13:t.sent;case 15:t.next=18;break;case 17:throw new y("missing-precache-entry",{cacheName:this.cacheName,url:r.url});case 18:t.next=34;break;case 23:t.t0=t.sent;case 24:u=t.t0,e.groupCollapsed("Precaching is responding to: "+I(r.url)),e.log("Serving the precached url: ".concat(I(u instanceof Request?u.url:u))),e.groupCollapsed("View request details here."),e.log(r),e.groupEnd(),e.groupCollapsed("View response details here."),e.log(a),e.groupEnd(),e.groupEnd();case 34:return t.abrupt("return",a);case 35:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"_handleInstall",value:function(){var e=R(_().mark((function e(t,r){var n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._useDefaultCacheabilityPluginIfNeeded(),e.next=3,r.fetch(t);case 3:return n=e.sent,e.next=6,r.cachePut(t,n.clone());case 6:if(e.sent){e.next=9;break}throw new y("bad-precaching-response",{url:t.url,status:n.status});case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_useDefaultCacheabilityPluginIfNeeded",value:function(){var e,t=null,r=0,a=O(this.plugins.entries());try{for(a.s();!(e=a.n()).done;){var i=B(e.value,2),s=i[0],c=i[1];c!==n.copyRedirectedCacheableResponsesPlugin&&(c===n.defaultPrecacheCacheabilityPlugin&&(t=s),c.cacheWillUpdate&&r++)}}catch(o){a.e(o)}finally{a.f()}0===r?this.plugins.push(n.defaultPrecacheCacheabilityPlugin):r>1&&null!==t&&this.plugins.splice(t,1)}}]),n}(Q);J.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:function(e){return R(_().mark((function t(){var r;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=e.response)&&!(r.status>=400)){t.next=3;break}return t.abrupt("return",null);case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()}},J.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:function(e){return R(_().mark((function t(){var r;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.response).redirected){t.next=7;break}return t.next=4,K(r);case 4:t.t0=t.sent,t.next=8;break;case 7:t.t0=r;case 8:return t.abrupt("return",t.t0);case 9:case"end":return t.stop()}}),t)})))()}};var z,X=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.cacheName,n=t.plugins,a=void 0===n?[]:n,i=t.fallbackToNetwork,c=void 0===i||i;s(this,e),this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new J({cacheName:w(r),plugins:[].concat(F(a),[new G({precacheController:this})]),fallbackToNetwork:c}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}return i(e,[{key:"strategy",get:function(){return this._strategy}},{key:"precache",value:function(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}},{key:"addToCacheList",value:function(e){var t,r=[],n=O(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;"string"===typeof a?r.push(a):a&&void 0===a.revision&&r.push(a.url);var i=H(a),s=i.cacheKey,c=i.url,o="string"!==typeof a&&a.revision?"reload":"default";if(this._urlsToCacheKeys.has(c)&&this._urlsToCacheKeys.get(c)!==s)throw new y("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(c),secondEntry:s});if("string"!==typeof a&&a.integrity){if(this._cacheKeysToIntegrities.has(s)&&this._cacheKeysToIntegrities.get(s)!==a.integrity)throw new y("add-to-cache-list-conflicting-integrities",{url:c});this._cacheKeysToIntegrities.set(s,a.integrity)}if(this._urlsToCacheKeys.set(c,s),this._urlsToCacheModes.set(c,o),r.length>0){var u="Workbox is precaching URLs without revision "+"info: ".concat(r.join(", "),"\nThis is generally NOT safe. ")+"Learn more at https://bit.ly/wb-precache";console.warn(u)}}}catch(h){n.e(h)}finally{n.f()}}},{key:"install",value:function(e){var t=this;return M(e,R(_().mark((function r(){var n,a,i,s,c,o,u,h,l,f,p;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=new V,t.strategy.plugins.push(n),a=O(t._urlsToCacheKeys),r.prev=3,a.s();case 5:if((i=a.n()).done){r.next=14;break}return s=B(i.value,2),c=s[0],o=s[1],u=t._cacheKeysToIntegrities.get(o),h=t._urlsToCacheModes.get(c),l=new Request(c,{integrity:u,cache:h,credentials:"same-origin"}),r.next=12,Promise.all(t.strategy.handleAll({params:{cacheKey:o},request:l,event:e}));case 12:r.next=5;break;case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(3),a.e(r.t0);case 19:return r.prev=19,a.f(),r.finish(19);case 22:return f=n.updatedURLs,p=n.notUpdatedURLs,r.abrupt("return",{updatedURLs:f,notUpdatedURLs:p});case 25:case"end":return r.stop()}}),r,null,[[3,16,19,22]])}))))}},{key:"activate",value:function(e){var t=this;return M(e,R(_().mark((function e(){var r,n,a,i,s,c,o;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,self.caches.open(t.strategy.cacheName);case 2:return r=e.sent,e.next=5,r.keys();case 5:n=e.sent,a=new Set(t._urlsToCacheKeys.values()),i=[],s=O(n),e.prev=9,s.s();case 11:if((c=s.n()).done){e.next=19;break}if(o=c.value,a.has(o.url)){e.next=17;break}return e.next=16,r.delete(o);case 16:i.push(o.url);case 17:e.next=11;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(9),s.e(e.t0);case 24:return e.prev=24,s.f(),e.finish(24);case 27:return e.abrupt("return",{deletedURLs:i});case 29:case"end":return e.stop()}}),e,null,[[9,21,24,27]])}))))}},{key:"getURLsToCacheKeys",value:function(){return this._urlsToCacheKeys}},{key:"getCachedURLs",value:function(){return F(this._urlsToCacheKeys.keys())}},{key:"getCacheKeyForURL",value:function(e){var t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}},{key:"getIntegrityForCacheKey",value:function(e){return this._cacheKeysToIntegrities.get(e)}},{key:"matchPrecache",value:function(){var e=R(_().mark((function e(t){var r,n,a;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t instanceof Request?t.url:t,!(n=this.getCacheKeyForURL(r))){e.next=7;break}return e.next=5,self.caches.open(this.strategy.cacheName);case 5:return a=e.sent,e.abrupt("return",a.match(n));case 7:return e.abrupt("return",void 0);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"createHandlerBoundToURL",value:function(e){var t=this,r=this.getCacheKeyForURL(e);if(!r)throw new y("non-precached-url",{url:e});return function(n){return n.request=new Request(e),n.params=Object.assign({cacheKey:r},n.params),t.strategy.handle(n)}}}]),e}(),Z=function(){return z||(z=new X),z};r(161);var ee,te=function(e){return e&&"object"===typeof e?e:{handle:e}},re=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";s(this,e),this.handler=te(r),this.match=t,this.method=n}return i(e,[{key:"setCatchHandler",value:function(e){this.catchHandler=te(e)}}]),e}(),ne=function(e){o(r,e);var t=f(r);function r(e,n,a){s(this,r);return t.call(this,(function(t){var r=t.url,n=e.exec(r.href);if(n&&(r.origin===location.origin||0===n.index))return n.slice(1)}),n,a)}return i(r)}(re),ae=function(){function e(){s(this,e),this._routes=new Map,this._defaultHandlerMap=new Map}return i(e,[{key:"routes",get:function(){return this._routes}},{key:"addFetchListener",value:function(){var e=this;self.addEventListener("fetch",(function(t){var r=t.request,n=e.handleRequest({request:r,event:t});n&&t.respondWith(n)}))}},{key:"addCacheListener",value:function(){var e=this;self.addEventListener("message",(function(t){if(t.data&&"CACHE_URLS"===t.data.type){var r=t.data.payload;0;var n=Promise.all(r.urlsToCache.map((function(r){"string"===typeof r&&(r=[r]);var n=p(Request,F(r));return e.handleRequest({request:n,event:t})})));t.waitUntil(n),t.ports&&t.ports[0]&&n.then((function(){return t.ports[0].postMessage(!0)}))}}))}},{key:"handleRequest",value:function(e){var t=this,r=e.request,n=e.event;var a=new URL(r.url,location.href);if(a.protocol.startsWith("http")){var i=a.origin===location.origin,s=this.findMatchingRoute({event:n,request:r,sameOrigin:i,url:a}),c=s.params,o=s.route,u=o&&o.handler;0;var h=r.method;if(!u&&this._defaultHandlerMap.has(h)&&(u=this._defaultHandlerMap.get(h)),u){var l;0;try{l=u.handle({url:a,request:r,event:n,params:c})}catch(p){l=Promise.reject(p)}var f=o&&o.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(function(){var e=R(_().mark((function e(i){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!f){e.next=11;break}return e.prev=2,e.next=5,f.handle({url:a,request:r,event:n,params:c});case 5:return e.abrupt("return",e.sent);case 8:e.prev=8,e.t0=e.catch(2),e.t0 instanceof Error&&(i=e.t0);case 11:if(!t._catchHandler){e.next=14;break}return e.abrupt("return",t._catchHandler.handle({url:a,request:r,event:n}));case 14:throw i;case 15:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t){return e.apply(this,arguments)}}())),l}}}},{key:"findMatchingRoute",value:function(e){var t,r=e.url,n=e.sameOrigin,a=e.request,i=e.event,s=O(this._routes.get(a.method)||[]);try{for(s.s();!(t=s.n()).done;){var c=t.value,o=void 0,u=c.match({url:r,sameOrigin:n,request:a,event:i});if(u)return o=u,(Array.isArray(o)&&0===o.length||u.constructor===Object&&0===Object.keys(u).length||"boolean"===typeof u)&&(o=void 0),{route:c,params:o}}}catch(h){s.e(h)}finally{s.f()}return{}}},{key:"setDefaultHandler",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";this._defaultHandlerMap.set(t,te(e))}},{key:"setCatchHandler",value:function(e){this._catchHandler=te(e)}},{key:"registerRoute",value:function(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}},{key:"unregisterRoute",value:function(e){if(!this._routes.has(e.method))throw new y("unregister-route-but-not-found-with-method",{method:e.method});var t=this._routes.get(e.method).indexOf(e);if(!(t>-1))throw new y("unregister-route-route-not-registered");this._routes.get(e.method).splice(t,1)}}]),e}(),ie=function(){return ee||((ee=new ae).addFetchListener(),ee.addCacheListener()),ee};function se(e,t,r){var n;if("string"===typeof e){var a=new URL(e,location.href);n=new re((function(e){return e.url.href===a.href}),t,r)}else if(e instanceof RegExp)n=new ne(e,t,r);else if("function"===typeof e)n=new re(e,t,r);else{if(!(e instanceof re))throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});n=e}return ie().registerRoute(n),n}function ce(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function(){var r=a[n];t.some((function(e){return e.test(r)}))&&e.searchParams.delete(r)},n=0,a=F(e.searchParams.keys());n<a.length;n++)r();return e}var oe=function(e){o(r,e);var t=f(r);function r(e,n){s(this,r);return t.call(this,(function(t){var r,a=t.request,i=e.getURLsToCacheKeys(),s=O(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ignoreURLParametersMatching,n=void 0===r?[/^utm_/,/^fbclid$/]:r,a=t.directoryIndex,i=void 0===a?"index.html":a,s=t.cleanURLs,c=void 0===s||s,o=t.urlManipulation;return _().mark((function t(){var r,a,s,u,h,l,f,p;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=new URL(e,location.href)).hash="",t.next=4,r.href;case 4:return a=ce(r,n),t.next=7,a.href;case 7:if(!i||!a.pathname.endsWith("/")){t.next=12;break}return(s=new URL(a.href)).pathname+=i,t.next=12,s.href;case 12:if(!c){t.next=17;break}return(u=new URL(a.href)).pathname+=".html",t.next=17,u.href;case 17:if(!o){t.next=36;break}h=o({url:r}),l=O(h),t.prev=20,l.s();case 22:if((f=l.n()).done){t.next=28;break}return p=f.value,t.next=26,p.href;case 26:t.next=22;break;case 28:t.next=33;break;case 30:t.prev=30,t.t0=t.catch(20),l.e(t.t0);case 33:return t.prev=33,l.f(),t.finish(33);case 36:case"end":return t.stop()}}),t,null,[[20,30,33,36]])}))()}(a.url,n));try{for(s.s();!(r=s.n()).done;){var c=r.value,o=i.get(c);if(o)return{cacheKey:o,integrity:e.getIntegrityForCacheKey(o)}}}catch(u){s.e(u)}finally{s.f()}}),e.strategy)}return i(r)}(re);function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(r),!0).forEach((function(t){var a,i,s;a=e,i=t,s=r[t],(i=n(i))in a?Object.defineProperty(a,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[i]=s})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var le,fe,pe=function(e,t){return t.some((function(t){return e instanceof t}))};var ve=new WeakMap,de=new WeakMap,ye=new WeakMap,be=new WeakMap,ge=new WeakMap;var xe={get:function(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return de.get(e);if("objectStoreNames"===t)return e.objectStoreNames||ye.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return ke(e[t])},set:function(e,t,r){return e[t]=r,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function me(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(fe||(fe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(_e(this),r),ke(ve.get(this))}:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ke(e.apply(_e(this),r))}:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var i=e.call.apply(e,[_e(this),t].concat(n));return ye.set(i,t.sort?t.sort():[t]),ke(i)}}function we(e){return"function"===typeof e?me(e):(e instanceof IDBTransaction&&function(e){if(!de.has(e)){var t=new Promise((function(t,r){var n=function(){e.removeEventListener("complete",a),e.removeEventListener("error",i),e.removeEventListener("abort",i)},a=function(){t(),n()},i=function(){r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",i),e.addEventListener("abort",i)}));de.set(e,t)}}(e),pe(e,le||(le=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,xe):e)}function ke(e){if(e instanceof IDBRequest)return function(e){var t=new Promise((function(t,r){var n=function(){e.removeEventListener("success",a),e.removeEventListener("error",i)},a=function(){t(ke(e.result)),n()},i=function(){r(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",i)}));return t.then((function(t){t instanceof IDBCursor&&ve.set(t,e)})).catch((function(){})),ge.set(t,e),t}(e);if(be.has(e))return be.get(e);var t=we(e);return t!==e&&(be.set(e,t),ge.set(t,e)),t}var _e=function(e){return ge.get(e)};function Ee(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.blocked,a=r.upgrade,i=r.blocking,s=r.terminated,c=indexedDB.open(e,t),o=ke(c);return a&&c.addEventListener("upgradeneeded",(function(e){a(ke(c.result),e.oldVersion,e.newVersion,ke(c.transaction),e)})),n&&c.addEventListener("blocked",(function(e){return n(e.oldVersion,e.newVersion,e)})),o.then((function(e){s&&e.addEventListener("close",(function(){return s()})),i&&e.addEventListener("versionchange",(function(e){return i(e.oldVersion,e.newVersion,e)}))})).catch((function(){})),o}var Re=["get","getKey","getAll","getAllKeys","count"],Le=["put","add","delete","clear"],Ce=new Map;function Oe(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"===typeof t){if(Ce.get(t))return Ce.get(t);var r=t.replace(/FromIndex$/,""),n=t!==r,a=Le.includes(r);if(r in(n?IDBIndex:IDBObjectStore).prototype&&(a||Re.includes(r))){var i=function(){var e=R(_().mark((function e(t){var i,s,c,o,u,h,l=arguments;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(s=this.transaction(t,a?"readwrite":"readonly"),c=s.store,o=l.length,u=new Array(o>1?o-1:0),h=1;h<o;h++)u[h-1]=l[h];return n&&(c=c.index(u.shift())),e.next=6,Promise.all([(i=c)[r].apply(i,u),a&&s.done]);case 6:return e.abrupt("return",e.sent[0]);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();return Ce.set(t,i),i}}}xe=function(e){return he(he({},e),{},{get:function(t,r,n){return Oe(t,r)||e.get(t,r,n)},has:function(t,r){return!!Oe(t,r)||e.has(t,r)}})}(xe);r(404);var je="cache-entries",Se=function(e){var t=new URL(e,location.href);return t.hash="",t.href},Te=function(){function e(t){s(this,e),this._db=null,this._cacheName=t}return i(e,[{key:"_upgradeDb",value:function(e){var t=e.createObjectStore(je,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}},{key:"_upgradeDbAndDeleteOldDbs",value:function(e){this._upgradeDb(e),this._cacheName&&function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).blocked,r=indexedDB.deleteDatabase(e);t&&r.addEventListener("blocked",(function(e){return t(e.oldVersion,e)})),ke(r).then((function(){}))}(this._cacheName)}},{key:"setTimestamp",value:function(){var e=R(_().mark((function e(t,r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Se(t),n={url:t,timestamp:r,cacheName:this._cacheName,id:this._getId(t)},e.next=4,this.getDb();case 4:return a=e.sent,i=a.transaction(je,"readwrite",{durability:"relaxed"}),e.next=8,i.store.put(n);case 8:return e.next=10,i.done;case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getTimestamp",value:function(){var e=R(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getDb();case 2:return r=e.sent,e.next=5,r.get(je,this._getId(t));case 5:return n=e.sent,e.abrupt("return",null===n||void 0===n?void 0:n.timestamp);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"expireEntries",value:function(){var e=R(_().mark((function e(t,r){var n,a,i,s,c,o,u,h,l;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getDb();case 2:return n=e.sent,e.next=5,n.transaction(je).store.index("timestamp").openCursor(null,"prev");case 5:a=e.sent,i=[],s=0;case 8:if(!a){e.next=16;break}return(c=a.value).cacheName===this._cacheName&&(t&&c.timestamp<t||r&&s>=r?i.push(a.value):s++),e.next=13,a.continue();case 13:a=e.sent,e.next=8;break;case 16:o=[],u=0,h=i;case 18:if(!(u<h.length)){e.next=26;break}return l=h[u],e.next=22,n.delete(je,l.id);case 22:o.push(l.url);case 23:u++,e.next=18;break;case 26:return e.abrupt("return",o);case 27:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_getId",value:function(e){return this._cacheName+"|"+Se(e)}},{key:"getDb",value:function(){var e=R(_().mark((function e(){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._db){e.next=4;break}return e.next=3,Ee("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)});case 3:this._db=e.sent;case 4:return e.abrupt("return",this._db);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Pe=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=r.maxEntries,this._maxAgeSeconds=r.maxAgeSeconds,this._matchOptions=r.matchOptions,this._cacheName=t,this._timestampModel=new Te(t)}return i(e,[{key:"expireEntries",value:function(){var e=R(_().mark((function e(){var t,r,n,a,i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isRunning){e.next=3;break}return this._rerunRequested=!0,e.abrupt("return");case 3:return this._isRunning=!0,t=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,e.next=7,this._timestampModel.expireEntries(t,this._maxEntries);case 7:return r=e.sent,e.next=10,self.caches.open(this._cacheName);case 10:n=e.sent,a=O(r),e.prev=12,a.s();case 14:if((i=a.n()).done){e.next=20;break}return s=i.value,e.next=18,n.delete(s,this._matchOptions);case 18:e.next=14;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(12),a.e(e.t0);case 25:return e.prev=25,a.f(),e.finish(25);case 28:0,this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,q(this.expireEntries()));case 31:case"end":return e.stop()}}),e,this,[[12,22,25,28]])})));return function(){return e.apply(this,arguments)}}()},{key:"updateTimestamp",value:function(){var e=R(_().mark((function e(t){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this._timestampModel.setTimestamp(t,Date.now());case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"isURLExpired",value:function(){var e=R(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._maxAgeSeconds){e.next=6;break}e.next=3;break;case 3:return e.abrupt("return",!1);case 6:return e.next=8,this._timestampModel.getTimestamp(t);case 8:return r=e.sent,n=Date.now()-1e3*this._maxAgeSeconds,e.abrupt("return",void 0===r||r<n);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=R(_().mark((function e(){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._rerunRequested=!1,e.next=3,this._timestampModel.expireEntries(1/0);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),qe=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.cachedResponseWillBeUsed=function(){var e=R(_().mark((function e(r){var n,a,i,s,c,o,u;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.event,a=r.request,i=r.cacheName,s=r.cachedResponse){e.next=3;break}return e.abrupt("return",null);case 3:if(c=t._isResponseDateFresh(s),q((o=t._getCacheExpiration(i)).expireEntries()),u=o.updateTimestamp(a.url),n)try{n.waitUntil(u)}catch(h){0}return e.abrupt("return",c?s:null);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.cacheDidUpdate=function(){var e=R(_().mark((function e(r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.cacheName,a=r.request,i=t._getCacheExpiration(n),e.next=5,i.updateTimestamp(a.url);case 5:return e.next=7,i.expireEntries();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._config=r,this._maxAgeSeconds=r.maxAgeSeconds,this._cacheExpirations=new Map,r.purgeOnQuotaError&&function(e){b.add(e)}((function(){return t.deleteCacheAndMetadata()}))}return i(e,[{key:"_getCacheExpiration",value:function(e){if(e===k())throw new y("expire-custom-caches-only");var t=this._cacheExpirations.get(e);return t||(t=new Pe(e,this._config),this._cacheExpirations.set(e,t)),t}},{key:"_isResponseDateFresh",value:function(e){if(!this._maxAgeSeconds)return!0;var t=this._getDateHeaderTimestamp(e);return null===t||t>=Date.now()-1e3*this._maxAgeSeconds}},{key:"_getDateHeaderTimestamp",value:function(e){if(!e.headers.has("date"))return null;var t=e.headers.get("date"),r=new Date(t).getTime();return isNaN(r)?null:r}},{key:"deleteCacheAndMetadata",value:function(){var e=R(_().mark((function e(){var t,r,n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=O(this._cacheExpirations),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=11;break}return n=B(r.value,2),a=n[0],i=n[1],e.next=7,self.caches.delete(a);case 7:return e.next=9,i.delete();case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),t.e(e.t0);case 16:return e.prev=16,t.f(),e.finish(16);case 19:this._cacheExpirations=new Map;case 20:case"end":return e.stop()}}),e,this,[[1,13,16,19]])})));return function(){return e.apply(this,arguments)}}()}]),e}();var De,Ue=function(e){o(r,e);var t=f(r);function r(){return s(this,r),t.apply(this,arguments)}return i(r,[{key:"_handle",value:function(){var e=R(_().mark((function e(t,r){var n,a;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return[],e.next=4,r.cacheMatch(t);case 4:if(n=e.sent,a=void 0,n){e.next=20;break}return e.prev=8,e.next=11,r.fetchAndCachePut(t);case 11:n=e.sent,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(8),e.t0 instanceof Error&&(a=e.t0);case 17:0,e.next=21;break;case 20:0;case 21:if(n){e.next=24;break}throw new y("no-response",{url:t.url,error:a});case 24:return e.abrupt("return",n);case 25:case"end":return e.stop()}}),e,this,[[8,14]])})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(Q),Ne={cacheWillUpdate:function(){var e=R(_().mark((function e(t){var r;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(200!==(r=t.response).status&&0!==r.status){e.next=3;break}return e.abrupt("return",r);case 3:return e.abrupt("return",null);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},Ie=function(e){o(r,e);var t=f(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,r),(e=t.call(this,n)).plugins.some((function(e){return"cacheWillUpdate"in e}))||e.plugins.unshift(Ne),e}return i(r,[{key:"_handle",value:function(){var e=R(_().mark((function e(t,r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return[],n=r.fetchAndCachePut(t).catch((function(){})),r.waitUntil(n),e.next=6,r.cacheMatch(t);case 6:if(!(a=e.sent)){e.next=11;break}0,e.next=21;break;case 11:return e.prev=12,e.next=15,n;case 15:a=e.sent,e.next=21;break;case 18:e.prev=18,e.t0=e.catch(12),e.t0 instanceof Error&&(i=e.t0);case 21:if(a){e.next=24;break}throw new y("no-response",{url:t.url,error:i});case 24:return e.abrupt("return",a);case 25:case"end":return e.stop()}}),e,this,[[12,18]])})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(Q);(function(e){Z().precache(e)})(([{'revision':'7289cf5f014b3a40da1f2785317ade9a','url':'/.well-known/service/static/index.html'},{'revision':'0e898c13dd6acc261bd8e1c685957057','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-400-normal.woff'},{'revision':'e1b3b5908c9cf23dfb2b9c52b9a023ab','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-400-normal.woff2'},{'revision':'cf01af70a3ae9a494a729f504c43804e','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-ext-400-normal.woff'},{'revision':'4bde07f991ba6af69a1e009fd7ce9d1a','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-ext-400-normal.woff2'},{'revision':'6a0b64dd716576afb1ef9217bfe20439','url':'/.well-known/service/static/router-template-styles/styles.css'},{'revision':null,'url':'/.well-known/service/static/static/css/3154.e954fcda.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/4802.bf353f58.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/5547.5f9be15f.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/5982.ac464505.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/807.65f26433.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/main.7ea79dc8.css'},{'revision':null,'url':'/.well-known/service/static/static/js/1431.3379c73c.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1480.88c590c2.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1565.cf381434.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1760.1e5aaa46.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2093.185a5563.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2291.7ffdc7df.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2393.528e5343.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2631.54f86f84.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2653.3873eb86.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2686.890b32ed.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2836.f3dbcb77.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2838.fcdea2fa.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3025.7dc2fe04.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3038.40d611d1.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3255.2cf7c752.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3490.4d3a51ea.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3593.4d68c718.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3688.15a9bdc4.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4023.8cfc3ec6.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4164.5adbbbba.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4319.8d9e189e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4355.f459ab57.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4420.8b69d6e7.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4461.02f584b7.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4682.f90d26fd.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4716.bd8bed1b.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/476.f196e88a.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4764.51208c0d.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4802.534357c1.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4917.6e72ef28.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4932.c7c954aa.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5176.7e91bc3b.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5434.523d071d.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5465.dd0f7a20.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5509.a196d497.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5547.2e5aa64f.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5628.a4620fa6.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5645.3c5c0f93.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5673.0dd67df6.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5683.47011724.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5960.35db200d.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5969.2791e4e5.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5982.0abe67c3.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6139.c781eea4.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6186.c68316fd.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6378.29466d9e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6452.c06d87b7.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6465.e704f56b.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6498.698608f8.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6576.8f9d786f.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6629.376863d2.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6711.fa6dfc37.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6737.53cccea9.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6771.a1510398.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6856.2eb98754.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6868.881bd141.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7006.8f0645e5.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7226.4eca7c02.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7367.15383006.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7606.25231f8c.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7648.955e20c7.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/807.249d2d01.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8437.13d39ce4.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8497.e83aa0c8.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8604.a8ef404e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9102.ff87def5.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9409.7d4a802c.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/941.94668382.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9529.c7112fae.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9620.301493bc.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9657.b03b88e5.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9899.277d673f.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9997.540afd6e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/main.57389c61.js'},{'revision':'e3bc0515e1d125463e42435a231a6aa2','url':'/.well-known/service/static/static/media/empty-space-nft.3878bc5c8ba6490ef5075fdda24be921.svg'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-all-400-normal.3dc1eff492ab1f598560.woff'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-all-700-normal.1e7707c9ec98d9b97e7f.woff'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-400-normal.be36596da218e1eec01c.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-700-normal.8f28e0e1fdb195149f1c.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-ext-400-normal.361f3dbb9db6a5980326.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-ext-700-normal.9c8812eaec45956201e1.woff2'},{'revision':'893e153699e6c3cbf74132eacdb77fa6','url':'/.well-known/service/static/static/media/space-connected.9a4e18fd2bc7d065191b0d241a131c28.svg'},{'revision':'1eb1b65118c541eb7f5453294a9d8e77','url':'/.well-known/service/static/static/media/studio.f849ff5763d19a78ada7fdeea249f819.svg'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-all-400-normal.c879328bc62e9c68268f.woff'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-cyrillic-400-normal.c367f416832eb8f1b846.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-cyrillic-ext-400-normal.eda1c4946b1f7bf58386.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-greek-400-normal.22f3bfc91f79c342bdf4.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-greek-ext-400-normal.b3459900ea8a25d1f7c2.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-latin-400-normal.18e32d9d743af28f913e.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-latin-ext-400-normal.b56e2315611d10838ad5.woff2'}]||[]).filter((function(e){return"/"!==e.url&&!e.url.includes("index.html")}))),function(e){var t=Z();se(new oe(t,e))}(De),self.addEventListener("activate",(function(){return self.clients.claim()})),self.addEventListener("activate",(function(){console.log("Service Worker activated")})),self.addEventListener("install",(function(e){console.log("Service Worker installed"),e.waitUntil(self.skipWaiting())}));var Ae=function(e){return"GET"!==e.method||(!!e.url.includes("/api")||(!!e.url.includes("__meta__.js")||!!e.url.includes("__blocklet__.js")))};se((function(e){var t=e.request;return!Ae(t)&&t.url.includes("/static/")}),new Ue({cacheName:"static",plugins:[new qe({maxEntries:200})]})),se((function(e){var t=e.request;return!Ae(t)&&(t.url.includes("/images/")||t.url.includes("/router/-template-styles/"))}),new Ie)}()}();
2
+ !function(){"use strict";var e={838:function(){try{self["workbox:core:6.5.3"]&&_()}catch(e){}},404:function(){try{self["workbox:expiration:6.5.3"]&&_()}catch(e){}},362:function(){try{self["workbox:precaching:6.5.3"]&&_()}catch(e){}},161:function(){try{self["workbox:routing:6.5.3"]&&_()}catch(e){}},880:function(){try{self["workbox:strategies:6.5.3"]&&_()}catch(e){}}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}!function(){r(838);var e=null;function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,r||"default");if("object"!==t(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===t(r)?r:String(r)}function a(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,n(a.key),a)}}function i(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function h(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(e,r){if(r&&("object"===t(r)||"function"===typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){var t=h();return function(){var r,n=u(e);if(t){var a=u(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function p(e,t,r){return p=h()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return r&&c(a,r.prototype),a},p.apply(null,arguments)}function v(e){var t="function"===typeof Map?new Map:void 0;return v=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return p(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)},v(e)}var d=function(e){for(var t=e,r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return n.length>0&&(t+=" :: ".concat(JSON.stringify(n))),t},y=function(e){o(r,e);var t=f(r);function r(e,n){var a;s(this,r);var i=d(e,n);return(a=t.call(this,i)).name=e,a.details=n,a}return i(r)}(v(Error)),b=new Set;var g,x={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!==typeof registration?registration.scope:""},m=function(e){return[x.prefix,e,x.suffix].filter((function(e){return e&&e.length>0})).join("-")},w=function(e){return e||m(x.precache)},k=function(e){return e||m(x.runtime)};function _(){_=function(){return r};var e,r={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(e){h=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var a=t&&t.prototype instanceof g?t:g,s=Object.create(a.prototype),c=new P(n||[]);return i(s,"_invoke",{value:O(e,r,c)}),s}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=l;var p="suspendedStart",v="suspendedYield",d="executing",y="completed",b={};function g(){}function x(){}function m(){}var w={};h(w,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(q([])));E&&E!==n&&a.call(E,c)&&(w=E);var R=m.prototype=g.prototype=Object.create(w);function L(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,r){function n(i,s,c,o){var u=f(e[i],e,s);if("throw"!==u.type){var h=u.arg,l=h.value;return l&&"object"==t(l)&&a.call(l,"__await")?r.resolve(l.__await).then((function(e){n("next",e,c,o)}),(function(e){n("throw",e,c,o)})):r.resolve(l).then((function(e){h.value=e,c(h)}),(function(e){return n("throw",e,c,o)}))}o(u.arg)}var s;i(this,"_invoke",{value:function(e,t){function a(){return new r((function(r,a){n(e,t,r,a)}))}return s=s?s.then(a,a):a()}})}function O(t,r,n){var a=p;return function(i,s){if(a===d)throw new Error("Generator is already running");if(a===y){if("throw"===i)throw s;return{value:e,done:!0}}for(n.method=i,n.arg=s;;){var c=n.delegate;if(c){var o=j(c,n);if(o){if(o===b)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var u=f(t,r,n);if("normal"===u.type){if(a=n.done?y:v,u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=y,n.method="throw",n.arg=u.arg)}}}function j(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,j(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=f(a,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var s=i.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function q(r){if(r||""===r){var n=r[c];if(n)return n.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var i=-1,s=function t(){for(;++i<r.length;)if(a.call(r,i))return t.value=r[i],t.done=!1,t;return t.value=e,t.done=!0,t};return s.next=s}}throw new TypeError(t(r)+" is not iterable")}return x.prototype=m,i(R,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:x,configurable:!0}),x.displayName=h(m,u,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,h(e,u,"GeneratorFunction")),e.prototype=Object.create(R),e},r.awrap=function(e){return{__await:e}},L(C.prototype),h(C.prototype,o,(function(){return this})),r.AsyncIterator=C,r.async=function(e,t,n,a,i){void 0===i&&(i=Promise);var s=new C(l(e,t,n,a),i);return r.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},L(R),h(R,u,"Generator"),h(R,c,(function(){return this})),h(R,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=q,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],c=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var o=a.call(s,"catchLoc"),u=a.call(s,"finallyLoc");if(o&&u){if(this.prev<s.catchLoc)return n(s.catchLoc,!0);if(this.prev<s.finallyLoc)return n(s.finallyLoc)}else if(o){if(this.prev<s.catchLoc)return n(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return n(s.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:q(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},r}function E(e,t,r,n,a,i,s){try{var c=e[i](s),o=c.value}catch(u){return void r(u)}c.done?t(o):Promise.resolve(o).then(n,a)}function R(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function s(e){E(i,n,a,s,c,"next",e)}function c(e){E(i,n,a,s,c,"throw",e)}s(void 0)}))}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){if(e){if("string"===typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}function O(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=C(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw i}}}}function j(e,t){var r,n=new URL(e),a=O(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;n.searchParams.delete(i)}}catch(s){a.e(s)}finally{a.f()}return n.href}function S(e,t,r,n){return T.apply(this,arguments)}function T(){return(T=R(_().mark((function e(t,r,n,a){var i,s,c,o,u,h,l;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=j(r.url,n),r.url!==i){e.next=3;break}return e.abrupt("return",t.match(r,a));case 3:return s=Object.assign(Object.assign({},a),{ignoreSearch:!0}),e.next=6,t.keys(r,s);case 6:c=e.sent,o=O(c),e.prev=8,o.s();case 10:if((u=o.n()).done){e.next=17;break}if(h=u.value,l=j(h.url,n),i!==l){e.next=15;break}return e.abrupt("return",t.match(h,a));case 15:e.next=10;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(8),o.e(e.t0);case 22:return e.prev=22,o.f(),e.finish(22);case 25:return e.abrupt("return");case 26:case"end":return e.stop()}}),e,null,[[8,19,22,25]])})))).apply(this,arguments)}function P(){if(void 0===g){var e=new Response("");if("body"in e)try{new Response(e.body),g=!0}catch(t){g=!1}g=!1}return g}function q(e){e.then((function(){}))}var D=i((function e(){var t=this;s(this,e),this.promise=new Promise((function(e,r){t.resolve=e,t.reject=r}))}));function U(){return N.apply(this,arguments)}function N(){return(N=R(_().mark((function e(){var t,r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,t=O(b),e.prev=2,t.s();case 4:if((r=t.n()).done){e.next=11;break}return n=r.value,e.next=8,n();case 8:0;case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),t.e(e.t0);case 16:return e.prev=16,t.f(),e.finish(16);case 19:0;case 20:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})))).apply(this,arguments)}var I=function(e){return new URL(String(e),location.href).href.replace(new RegExp("^".concat(location.origin)),"")};function A(e){return new Promise((function(t){return setTimeout(t,e)}))}function M(e,t){var r=t();return e.waitUntil(r),r}function K(e,t){return W.apply(this,arguments)}function W(){return(W=R(_().mark((function e(t,r){var n,a,i,s,c,o;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null,t.url&&(a=new URL(t.url),n=a.origin),n===self.location.origin){e.next=4;break}throw new y("cross-origin-copy-response",{origin:n});case 4:if(i=t.clone(),s={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},c=r?r(s):s,!P()){e.next=11;break}e.t0=i.body,e.next=14;break;case 11:return e.next=13,i.blob();case 13:e.t0=e.sent;case 14:return o=e.t0,e.abrupt("return",new Response(o,c));case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,s,c=[],o=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){u=!0,a=e}finally{try{if(!o&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return c}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r(362);function H(e){if(!e)throw new y("add-to-cache-list-unexpected-type",{entry:e});if("string"===typeof e){var t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}var r=e.revision,n=e.url;if(!n)throw new y("add-to-cache-list-unexpected-type",{entry:e});if(!r){var a=new URL(n,location.href);return{cacheKey:a.href,url:a.href}}var i=new URL(n,location.href),s=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",r),{cacheKey:i.href,url:s.href}}var V=i((function e(){var t=this;s(this,e),this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=function(){var e=R(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.request,(n=t.state)&&(n.originalRequest=r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.cachedResponseWillBeUsed=function(){var e=R(_().mark((function e(r){var n,a,i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.event,a=r.state,i=r.cachedResponse,"install"===n.type&&a&&a.originalRequest&&a.originalRequest instanceof Request&&(s=a.originalRequest.url,i?t.notUpdatedURLs.push(s):t.updatedURLs.push(s)),e.abrupt("return",i);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),G=i((function e(t){var r=this,n=t.precacheController;s(this,e),this.cacheKeyWillBeUsed=function(){var e=R(_().mark((function e(t){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.request,a=t.params,i=(null===a||void 0===a?void 0:a.cacheKey)||r._precacheController.getCacheKeyForURL(n.url),e.abrupt("return",i?new Request(i,{headers:n.headers}):n);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._precacheController=n}));r(880);function Y(e){return"string"===typeof e?new Request(e):e}var $=function(){function t(e,r){s(this,t),this._cacheKeys={},Object.assign(this,r),this.event=r.event,this._strategy=e,this._handlerDeferred=new D,this._extendLifetimePromises=[],this._plugins=F(e.plugins),this._pluginStateMap=new Map;var n,a=O(this._plugins);try{for(a.s();!(n=a.n()).done;){var i=n.value;this._pluginStateMap.set(i,{})}}catch(c){a.e(c)}finally{a.f()}this.event.waitUntil(this._handlerDeferred.promise)}return i(t,[{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=R(_().mark((function e(t){var r,n,a,i,s,c,o,u,h,l,f,p;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.event,!("navigate"===(n=Y(t)).mode&&r instanceof FetchEvent&&r.preloadResponse)){e.next=9;break}return e.next=5,r.preloadResponse;case 5:if(!(a=e.sent)){e.next=9;break}return e.abrupt("return",a);case 9:i=this.hasCallback("fetchDidFail")?n.clone():null,e.prev=10,s=O(this.iterateCallbacks("requestWillFetch")),e.prev=12,s.s();case 14:if((c=s.n()).done){e.next=21;break}return o=c.value,e.next=18,o({request:n.clone(),event:r});case 18:n=e.sent;case 19:e.next=14;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(12),s.e(e.t0);case 26:return e.prev=26,s.f(),e.finish(26);case 29:e.next=35;break;case 31:if(e.prev=31,e.t1=e.catch(10),!(e.t1 instanceof Error)){e.next=35;break}throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:e.t1.message});case 35:return u=n.clone(),e.prev=36,e.next=39,fetch(n,"navigate"===n.mode?void 0:this._strategy.fetchOptions);case 39:h=e.sent,l=O(this.iterateCallbacks("fetchDidSucceed")),e.prev=42,l.s();case 44:if((f=l.n()).done){e.next=51;break}return p=f.value,e.next=48,p({event:r,request:u,response:h});case 48:h=e.sent;case 49:e.next=44;break;case 51:e.next=56;break;case 53:e.prev=53,e.t2=e.catch(42),l.e(e.t2);case 56:return e.prev=56,l.f(),e.finish(56);case 59:return e.abrupt("return",h);case 62:if(e.prev=62,e.t3=e.catch(36),!i){e.next=68;break}return e.next=68,this.runCallbacks("fetchDidFail",{error:e.t3,event:r,originalRequest:i.clone(),request:u.clone()});case 68:throw e.t3;case 69:case"end":return e.stop()}}),e,this,[[10,31],[12,23,26,29],[36,62],[42,53,56,59]])})));return function(t){return e.apply(this,arguments)}}())},{key:"fetchAndCachePut",value:function(){var e=R(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetch(t);case 2:return r=e.sent,n=r.clone(),this.waitUntil(this.cachePut(t,n)),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"cacheMatch",value:function(){var e=R(_().mark((function e(t){var r,n,a,i,s,c,o,u,h,l;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Y(t),a=this._strategy,i=a.cacheName,s=a.matchOptions,e.next=4,this.getCacheKey(r,"read");case 4:return c=e.sent,o=Object.assign(Object.assign({},s),{cacheName:i}),e.next=8,caches.match(c,o);case 8:n=e.sent,u=O(this.iterateCallbacks("cachedResponseWillBeUsed")),e.prev=11,u.s();case 13:if((h=u.n()).done){e.next=23;break}return l=h.value,e.next=17,l({cacheName:i,matchOptions:s,cachedResponse:n,request:c,event:this.event});case 17:if(e.t0=e.sent,e.t0){e.next=20;break}e.t0=void 0;case 20:n=e.t0;case 21:e.next=13;break;case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(11),u.e(e.t1);case 28:return e.prev=28,u.f(),e.finish(28);case 31:return e.abrupt("return",n);case 32:case"end":return e.stop()}}),e,this,[[11,25,28,31]])})));return function(t){return e.apply(this,arguments)}}()},{key:"cachePut",value:function(){var t=R(_().mark((function t(r,n){var a,i,s,c,o,u,h,l,f,p,v,d,b;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=Y(r),t.next=3,A(0);case 3:return t.next=5,this.getCacheKey(a,"write");case 5:i=t.sent,t.next=11;break;case 9:(s=n.headers.get("Vary"))&&e.debug("The response for ".concat(I(i.url)," ")+"has a 'Vary: ".concat(s,"' header. ")+"Consider setting the {ignoreVary: true} option on your strategy to ensure cache matching and deletion works as expected.");case 11:if(n){t.next=14;break}throw new y("cache-put-with-no-response",{url:I(i.url)});case 14:return t.next=16,this._ensureResponseSafeToCache(n);case 16:if(c=t.sent){t.next=20;break}return t.abrupt("return",!1);case 20:return o=this._strategy,u=o.cacheName,h=o.matchOptions,t.next=23,self.caches.open(u);case 23:if(l=t.sent,!(f=this.hasCallback("cacheDidUpdate"))){t.next=31;break}return t.next=28,S(l,i.clone(),["__WB_REVISION__"],h);case 28:t.t0=t.sent,t.next=32;break;case 31:t.t0=null;case 32:return p=t.t0,t.prev=34,t.next=37,l.put(i,f?c.clone():c);case 37:t.next=46;break;case 39:if(t.prev=39,t.t1=t.catch(34),!(t.t1 instanceof Error)){t.next=46;break}if("QuotaExceededError"!==t.t1.name){t.next=45;break}return t.next=45,U();case 45:throw t.t1;case 46:v=O(this.iterateCallbacks("cacheDidUpdate")),t.prev=47,v.s();case 49:if((d=v.n()).done){t.next=55;break}return b=d.value,t.next=53,b({cacheName:u,oldResponse:p,newResponse:c.clone(),request:i,event:this.event});case 53:t.next=49;break;case 55:t.next=60;break;case 57:t.prev=57,t.t2=t.catch(47),v.e(t.t2);case 60:return t.prev=60,v.f(),t.finish(60);case 63:return t.abrupt("return",!0);case 64:case"end":return t.stop()}}),t,this,[[34,39],[47,57,60,63]])})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getCacheKey",value:function(){var e=R(_().mark((function e(t,r){var n,a,i,s,c;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="".concat(t.url," | ").concat(r),this._cacheKeys[n]){e.next=24;break}a=t,i=O(this.iterateCallbacks("cacheKeyWillBeUsed")),e.prev=4,i.s();case 6:if((s=i.n()).done){e.next=15;break}return c=s.value,e.t0=Y,e.next=11,c({mode:r,request:a,event:this.event,params:this.params});case 11:e.t1=e.sent,a=(0,e.t0)(e.t1);case 13:e.next=6;break;case 15:e.next=20;break;case 17:e.prev=17,e.t2=e.catch(4),i.e(e.t2);case 20:return e.prev=20,i.f(),e.finish(20);case 23:this._cacheKeys[n]=a;case 24:return e.abrupt("return",this._cacheKeys[n]);case 25:case"end":return e.stop()}}),e,this,[[4,17,20,23]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"hasCallback",value:function(e){var t,r=O(this._strategy.plugins);try{for(r.s();!(t=r.n()).done;){if(e in t.value)return!0}}catch(n){r.e(n)}finally{r.f()}return!1}},{key:"runCallbacks",value:function(){var e=R(_().mark((function e(t,r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=O(this.iterateCallbacks(t)),e.prev=1,n.s();case 3:if((a=n.n()).done){e.next=9;break}return i=a.value,e.next=7,i(r);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"iterateCallbacks",value:_().mark((function e(t){var r,n,a,i=this;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=O(this._strategy.plugins),e.prev=1,a=_().mark((function e(){var r,a,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof(r=n.value)[t]){e.next=6;break}return a=i._pluginStateMap.get(r),s=function(e){var n=Object.assign(Object.assign({},e),{state:a});return r[t](n)},e.next=6,s;case 6:case"end":return e.stop()}}),e)})),r.s();case 4:if((n=r.n()).done){e.next=8;break}return e.delegateYield(a(),"t0",6);case 6:e.next=4;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e.catch(1),r.e(e.t1);case 13:return e.prev=13,r.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,10,13,16]])}))},{key:"waitUntil",value:function(e){return this._extendLifetimePromises.push(e),e}},{key:"doneWaiting",value:function(){var e=R(_().mark((function e(){var t;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=this._extendLifetimePromises.shift())){e.next=5;break}return e.next=3,t;case 3:e.next=0;break;case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"destroy",value:function(){this._handlerDeferred.resolve(null)}},{key:"_ensureResponseSafeToCache",value:function(){var e=R(_().mark((function e(t){var r,n,a,i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t,n=!1,a=O(this.iterateCallbacks("cacheWillUpdate")),e.prev=3,a.s();case 5:if((i=a.n()).done){e.next=18;break}return s=i.value,e.next=9,s({request:this.request,response:r,event:this.event});case 9:if(e.t0=e.sent,e.t0){e.next=12;break}e.t0=void 0;case 12:if(r=e.t0,n=!0,r){e.next=16;break}return e.abrupt("break",18);case 16:e.next=5;break;case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(3),a.e(e.t1);case 23:return e.prev=23,a.f(),e.finish(23);case 26:return n||r&&200!==r.status&&(r=void 0),e.abrupt("return",r);case 28:case"end":return e.stop()}}),e,this,[[3,20,23,26]])})));return function(t){return e.apply(this,arguments)}}()}]),t}(),Q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.cacheName=k(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}return i(e,[{key:"handle",value:function(e){return B(this.handleAll(e),1)[0]}},{key:"handleAll",value:function(e){e instanceof FetchEvent&&(e={event:e,request:e.request});var t=e.event,r="string"===typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new $(this,{event:t,request:r,params:n}),i=this._getResponse(a,r,t);return[i,this._awaitComplete(i,a,r,t)]}},{key:"_getResponse",value:function(){var e=R(_().mark((function e(t,r,n){var a,i,s,c,o,u,h;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.runCallbacks("handlerWillStart",{event:n,request:r});case 2:return a=void 0,e.prev=3,e.next=6,this._handle(r,t);case 6:if((a=e.sent)&&"error"!==a.type){e.next=9;break}throw new y("no-response",{url:r.url});case 9:e.next=39;break;case 11:if(e.prev=11,e.t0=e.catch(3),!(e.t0 instanceof Error)){e.next=34;break}i=O(t.iterateCallbacks("handlerDidError")),e.prev=15,i.s();case 17:if((s=i.n()).done){e.next=26;break}return c=s.value,e.next=21,c({error:e.t0,event:n,request:r});case 21:if(!(a=e.sent)){e.next=24;break}return e.abrupt("break",26);case 24:e.next=17;break;case 26:e.next=31;break;case 28:e.prev=28,e.t1=e.catch(15),i.e(e.t1);case 31:return e.prev=31,i.f(),e.finish(31);case 34:if(a){e.next=38;break}throw e.t0;case 38:0;case 39:o=O(t.iterateCallbacks("handlerWillRespond")),e.prev=40,o.s();case 42:if((u=o.n()).done){e.next=49;break}return h=u.value,e.next=46,h({event:n,request:r,response:a});case 46:a=e.sent;case 47:e.next=42;break;case 49:e.next=54;break;case 51:e.prev=51,e.t2=e.catch(40),o.e(e.t2);case 54:return e.prev=54,o.f(),e.finish(54);case 57:return e.abrupt("return",a);case 58:case"end":return e.stop()}}),e,this,[[3,11],[15,28,31,34],[40,51,54,57]])})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"_awaitComplete",value:function(){var e=R(_().mark((function e(t,r,n,a){var i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:i=e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:return e.prev=8,e.next=11,r.runCallbacks("handlerDidRespond",{event:a,request:n,response:i});case 11:return e.next=13,r.doneWaiting();case 13:e.next=18;break;case 15:e.prev=15,e.t1=e.catch(8),e.t1 instanceof Error&&(s=e.t1);case 18:return e.next=20,r.runCallbacks("handlerDidComplete",{event:a,request:n,response:i,error:s});case 20:if(r.destroy(),!s){e.next=23;break}throw s;case 23:case"end":return e.stop()}}),e,null,[[0,6],[8,15]])})));return function(t,r,n,a){return e.apply(this,arguments)}}()}]),e}(),J=function(t){o(n,t);var r=f(n);function n(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),t.cacheName=w(t.cacheName),(e=r.call(this,t))._fallbackToNetwork=!1!==t.fallbackToNetwork,e.plugins.push(n.copyRedirectedCacheableResponsesPlugin),e}return i(n,[{key:"_handle",value:function(){var e=R(_().mark((function e(t,r){var n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.cacheMatch(t);case 2:if(!(n=e.sent)){e.next=5;break}return e.abrupt("return",n);case 5:if(!r.event||"install"!==r.event.type){e.next=9;break}return e.next=8,this._handleInstall(t,r);case 8:case 11:return e.abrupt("return",e.sent);case 9:return e.next=11,this._handleFetch(t,r);case 12:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_handleFetch",value:function(){var t=R(_().mark((function t(r,n){var a,i,s,c,o,u;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.params||{},!this._fallbackToNetwork){t.next=17;break}return s=i.integrity,c=r.integrity,o=!c||c===s,t.next=8,n.fetch(new Request(r,{integrity:"no-cors"!==r.mode?c||s:void 0}));case 8:if(a=t.sent,!s||!o||"no-cors"===r.mode){t.next=15;break}return this._useDefaultCacheabilityPluginIfNeeded(),t.next=13,n.cachePut(r,a.clone());case 13:t.sent;case 15:t.next=18;break;case 17:throw new y("missing-precache-entry",{cacheName:this.cacheName,url:r.url});case 18:t.next=34;break;case 23:t.t0=t.sent;case 24:u=t.t0,e.groupCollapsed("Precaching is responding to: "+I(r.url)),e.log("Serving the precached url: ".concat(I(u instanceof Request?u.url:u))),e.groupCollapsed("View request details here."),e.log(r),e.groupEnd(),e.groupCollapsed("View response details here."),e.log(a),e.groupEnd(),e.groupEnd();case 34:return t.abrupt("return",a);case 35:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"_handleInstall",value:function(){var e=R(_().mark((function e(t,r){var n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._useDefaultCacheabilityPluginIfNeeded(),e.next=3,r.fetch(t);case 3:return n=e.sent,e.next=6,r.cachePut(t,n.clone());case 6:if(e.sent){e.next=9;break}throw new y("bad-precaching-response",{url:t.url,status:n.status});case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_useDefaultCacheabilityPluginIfNeeded",value:function(){var e,t=null,r=0,a=O(this.plugins.entries());try{for(a.s();!(e=a.n()).done;){var i=B(e.value,2),s=i[0],c=i[1];c!==n.copyRedirectedCacheableResponsesPlugin&&(c===n.defaultPrecacheCacheabilityPlugin&&(t=s),c.cacheWillUpdate&&r++)}}catch(o){a.e(o)}finally{a.f()}0===r?this.plugins.push(n.defaultPrecacheCacheabilityPlugin):r>1&&null!==t&&this.plugins.splice(t,1)}}]),n}(Q);J.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:function(e){return R(_().mark((function t(){var r;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=e.response)&&!(r.status>=400)){t.next=3;break}return t.abrupt("return",null);case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()}},J.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:function(e){return R(_().mark((function t(){var r;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.response).redirected){t.next=7;break}return t.next=4,K(r);case 4:t.t0=t.sent,t.next=8;break;case 7:t.t0=r;case 8:return t.abrupt("return",t.t0);case 9:case"end":return t.stop()}}),t)})))()}};var z,X=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.cacheName,n=t.plugins,a=void 0===n?[]:n,i=t.fallbackToNetwork,c=void 0===i||i;s(this,e),this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new J({cacheName:w(r),plugins:[].concat(F(a),[new G({precacheController:this})]),fallbackToNetwork:c}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}return i(e,[{key:"strategy",get:function(){return this._strategy}},{key:"precache",value:function(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}},{key:"addToCacheList",value:function(e){var t,r=[],n=O(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;"string"===typeof a?r.push(a):a&&void 0===a.revision&&r.push(a.url);var i=H(a),s=i.cacheKey,c=i.url,o="string"!==typeof a&&a.revision?"reload":"default";if(this._urlsToCacheKeys.has(c)&&this._urlsToCacheKeys.get(c)!==s)throw new y("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(c),secondEntry:s});if("string"!==typeof a&&a.integrity){if(this._cacheKeysToIntegrities.has(s)&&this._cacheKeysToIntegrities.get(s)!==a.integrity)throw new y("add-to-cache-list-conflicting-integrities",{url:c});this._cacheKeysToIntegrities.set(s,a.integrity)}if(this._urlsToCacheKeys.set(c,s),this._urlsToCacheModes.set(c,o),r.length>0){var u="Workbox is precaching URLs without revision "+"info: ".concat(r.join(", "),"\nThis is generally NOT safe. ")+"Learn more at https://bit.ly/wb-precache";console.warn(u)}}}catch(h){n.e(h)}finally{n.f()}}},{key:"install",value:function(e){var t=this;return M(e,R(_().mark((function r(){var n,a,i,s,c,o,u,h,l,f,p;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=new V,t.strategy.plugins.push(n),a=O(t._urlsToCacheKeys),r.prev=3,a.s();case 5:if((i=a.n()).done){r.next=14;break}return s=B(i.value,2),c=s[0],o=s[1],u=t._cacheKeysToIntegrities.get(o),h=t._urlsToCacheModes.get(c),l=new Request(c,{integrity:u,cache:h,credentials:"same-origin"}),r.next=12,Promise.all(t.strategy.handleAll({params:{cacheKey:o},request:l,event:e}));case 12:r.next=5;break;case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(3),a.e(r.t0);case 19:return r.prev=19,a.f(),r.finish(19);case 22:return f=n.updatedURLs,p=n.notUpdatedURLs,r.abrupt("return",{updatedURLs:f,notUpdatedURLs:p});case 25:case"end":return r.stop()}}),r,null,[[3,16,19,22]])}))))}},{key:"activate",value:function(e){var t=this;return M(e,R(_().mark((function e(){var r,n,a,i,s,c,o;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,self.caches.open(t.strategy.cacheName);case 2:return r=e.sent,e.next=5,r.keys();case 5:n=e.sent,a=new Set(t._urlsToCacheKeys.values()),i=[],s=O(n),e.prev=9,s.s();case 11:if((c=s.n()).done){e.next=19;break}if(o=c.value,a.has(o.url)){e.next=17;break}return e.next=16,r.delete(o);case 16:i.push(o.url);case 17:e.next=11;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(9),s.e(e.t0);case 24:return e.prev=24,s.f(),e.finish(24);case 27:return e.abrupt("return",{deletedURLs:i});case 29:case"end":return e.stop()}}),e,null,[[9,21,24,27]])}))))}},{key:"getURLsToCacheKeys",value:function(){return this._urlsToCacheKeys}},{key:"getCachedURLs",value:function(){return F(this._urlsToCacheKeys.keys())}},{key:"getCacheKeyForURL",value:function(e){var t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}},{key:"getIntegrityForCacheKey",value:function(e){return this._cacheKeysToIntegrities.get(e)}},{key:"matchPrecache",value:function(){var e=R(_().mark((function e(t){var r,n,a;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t instanceof Request?t.url:t,!(n=this.getCacheKeyForURL(r))){e.next=7;break}return e.next=5,self.caches.open(this.strategy.cacheName);case 5:return a=e.sent,e.abrupt("return",a.match(n));case 7:return e.abrupt("return",void 0);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"createHandlerBoundToURL",value:function(e){var t=this,r=this.getCacheKeyForURL(e);if(!r)throw new y("non-precached-url",{url:e});return function(n){return n.request=new Request(e),n.params=Object.assign({cacheKey:r},n.params),t.strategy.handle(n)}}}]),e}(),Z=function(){return z||(z=new X),z};r(161);var ee,te=function(e){return e&&"object"===typeof e?e:{handle:e}},re=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";s(this,e),this.handler=te(r),this.match=t,this.method=n}return i(e,[{key:"setCatchHandler",value:function(e){this.catchHandler=te(e)}}]),e}(),ne=function(e){o(r,e);var t=f(r);function r(e,n,a){s(this,r);return t.call(this,(function(t){var r=t.url,n=e.exec(r.href);if(n&&(r.origin===location.origin||0===n.index))return n.slice(1)}),n,a)}return i(r)}(re),ae=function(){function e(){s(this,e),this._routes=new Map,this._defaultHandlerMap=new Map}return i(e,[{key:"routes",get:function(){return this._routes}},{key:"addFetchListener",value:function(){var e=this;self.addEventListener("fetch",(function(t){var r=t.request,n=e.handleRequest({request:r,event:t});n&&t.respondWith(n)}))}},{key:"addCacheListener",value:function(){var e=this;self.addEventListener("message",(function(t){if(t.data&&"CACHE_URLS"===t.data.type){var r=t.data.payload;0;var n=Promise.all(r.urlsToCache.map((function(r){"string"===typeof r&&(r=[r]);var n=p(Request,F(r));return e.handleRequest({request:n,event:t})})));t.waitUntil(n),t.ports&&t.ports[0]&&n.then((function(){return t.ports[0].postMessage(!0)}))}}))}},{key:"handleRequest",value:function(e){var t=this,r=e.request,n=e.event;var a=new URL(r.url,location.href);if(a.protocol.startsWith("http")){var i=a.origin===location.origin,s=this.findMatchingRoute({event:n,request:r,sameOrigin:i,url:a}),c=s.params,o=s.route,u=o&&o.handler;0;var h=r.method;if(!u&&this._defaultHandlerMap.has(h)&&(u=this._defaultHandlerMap.get(h)),u){var l;0;try{l=u.handle({url:a,request:r,event:n,params:c})}catch(p){l=Promise.reject(p)}var f=o&&o.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(function(){var e=R(_().mark((function e(i){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!f){e.next=11;break}return e.prev=2,e.next=5,f.handle({url:a,request:r,event:n,params:c});case 5:return e.abrupt("return",e.sent);case 8:e.prev=8,e.t0=e.catch(2),e.t0 instanceof Error&&(i=e.t0);case 11:if(!t._catchHandler){e.next=14;break}return e.abrupt("return",t._catchHandler.handle({url:a,request:r,event:n}));case 14:throw i;case 15:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t){return e.apply(this,arguments)}}())),l}}}},{key:"findMatchingRoute",value:function(e){var t,r=e.url,n=e.sameOrigin,a=e.request,i=e.event,s=O(this._routes.get(a.method)||[]);try{for(s.s();!(t=s.n()).done;){var c=t.value,o=void 0,u=c.match({url:r,sameOrigin:n,request:a,event:i});if(u)return o=u,(Array.isArray(o)&&0===o.length||u.constructor===Object&&0===Object.keys(u).length||"boolean"===typeof u)&&(o=void 0),{route:c,params:o}}}catch(h){s.e(h)}finally{s.f()}return{}}},{key:"setDefaultHandler",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";this._defaultHandlerMap.set(t,te(e))}},{key:"setCatchHandler",value:function(e){this._catchHandler=te(e)}},{key:"registerRoute",value:function(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}},{key:"unregisterRoute",value:function(e){if(!this._routes.has(e.method))throw new y("unregister-route-but-not-found-with-method",{method:e.method});var t=this._routes.get(e.method).indexOf(e);if(!(t>-1))throw new y("unregister-route-route-not-registered");this._routes.get(e.method).splice(t,1)}}]),e}(),ie=function(){return ee||((ee=new ae).addFetchListener(),ee.addCacheListener()),ee};function se(e,t,r){var n;if("string"===typeof e){var a=new URL(e,location.href);n=new re((function(e){return e.url.href===a.href}),t,r)}else if(e instanceof RegExp)n=new ne(e,t,r);else if("function"===typeof e)n=new re(e,t,r);else{if(!(e instanceof re))throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});n=e}return ie().registerRoute(n),n}function ce(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function(){var r=a[n];t.some((function(e){return e.test(r)}))&&e.searchParams.delete(r)},n=0,a=F(e.searchParams.keys());n<a.length;n++)r();return e}var oe=function(e){o(r,e);var t=f(r);function r(e,n){s(this,r);return t.call(this,(function(t){var r,a=t.request,i=e.getURLsToCacheKeys(),s=O(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ignoreURLParametersMatching,n=void 0===r?[/^utm_/,/^fbclid$/]:r,a=t.directoryIndex,i=void 0===a?"index.html":a,s=t.cleanURLs,c=void 0===s||s,o=t.urlManipulation;return _().mark((function t(){var r,a,s,u,h,l,f,p;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=new URL(e,location.href)).hash="",t.next=4,r.href;case 4:return a=ce(r,n),t.next=7,a.href;case 7:if(!i||!a.pathname.endsWith("/")){t.next=12;break}return(s=new URL(a.href)).pathname+=i,t.next=12,s.href;case 12:if(!c){t.next=17;break}return(u=new URL(a.href)).pathname+=".html",t.next=17,u.href;case 17:if(!o){t.next=36;break}h=o({url:r}),l=O(h),t.prev=20,l.s();case 22:if((f=l.n()).done){t.next=28;break}return p=f.value,t.next=26,p.href;case 26:t.next=22;break;case 28:t.next=33;break;case 30:t.prev=30,t.t0=t.catch(20),l.e(t.t0);case 33:return t.prev=33,l.f(),t.finish(33);case 36:case"end":return t.stop()}}),t,null,[[20,30,33,36]])}))()}(a.url,n));try{for(s.s();!(r=s.n()).done;){var c=r.value,o=i.get(c);if(o)return{cacheKey:o,integrity:e.getIntegrityForCacheKey(o)}}}catch(u){s.e(u)}finally{s.f()}}),e.strategy)}return i(r)}(re);function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(r),!0).forEach((function(t){var a,i,s;a=e,i=t,s=r[t],(i=n(i))in a?Object.defineProperty(a,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[i]=s})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var le,fe,pe=function(e,t){return t.some((function(t){return e instanceof t}))};var ve=new WeakMap,de=new WeakMap,ye=new WeakMap,be=new WeakMap,ge=new WeakMap;var xe={get:function(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return de.get(e);if("objectStoreNames"===t)return e.objectStoreNames||ye.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return ke(e[t])},set:function(e,t,r){return e[t]=r,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function me(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(fe||(fe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(_e(this),r),ke(ve.get(this))}:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ke(e.apply(_e(this),r))}:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var i=e.call.apply(e,[_e(this),t].concat(n));return ye.set(i,t.sort?t.sort():[t]),ke(i)}}function we(e){return"function"===typeof e?me(e):(e instanceof IDBTransaction&&function(e){if(!de.has(e)){var t=new Promise((function(t,r){var n=function(){e.removeEventListener("complete",a),e.removeEventListener("error",i),e.removeEventListener("abort",i)},a=function(){t(),n()},i=function(){r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",i),e.addEventListener("abort",i)}));de.set(e,t)}}(e),pe(e,le||(le=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,xe):e)}function ke(e){if(e instanceof IDBRequest)return function(e){var t=new Promise((function(t,r){var n=function(){e.removeEventListener("success",a),e.removeEventListener("error",i)},a=function(){t(ke(e.result)),n()},i=function(){r(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",i)}));return t.then((function(t){t instanceof IDBCursor&&ve.set(t,e)})).catch((function(){})),ge.set(t,e),t}(e);if(be.has(e))return be.get(e);var t=we(e);return t!==e&&(be.set(e,t),ge.set(t,e)),t}var _e=function(e){return ge.get(e)};function Ee(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.blocked,a=r.upgrade,i=r.blocking,s=r.terminated,c=indexedDB.open(e,t),o=ke(c);return a&&c.addEventListener("upgradeneeded",(function(e){a(ke(c.result),e.oldVersion,e.newVersion,ke(c.transaction),e)})),n&&c.addEventListener("blocked",(function(e){return n(e.oldVersion,e.newVersion,e)})),o.then((function(e){s&&e.addEventListener("close",(function(){return s()})),i&&e.addEventListener("versionchange",(function(e){return i(e.oldVersion,e.newVersion,e)}))})).catch((function(){})),o}var Re=["get","getKey","getAll","getAllKeys","count"],Le=["put","add","delete","clear"],Ce=new Map;function Oe(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"===typeof t){if(Ce.get(t))return Ce.get(t);var r=t.replace(/FromIndex$/,""),n=t!==r,a=Le.includes(r);if(r in(n?IDBIndex:IDBObjectStore).prototype&&(a||Re.includes(r))){var i=function(){var e=R(_().mark((function e(t){var i,s,c,o,u,h,l=arguments;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(s=this.transaction(t,a?"readwrite":"readonly"),c=s.store,o=l.length,u=new Array(o>1?o-1:0),h=1;h<o;h++)u[h-1]=l[h];return n&&(c=c.index(u.shift())),e.next=6,Promise.all([(i=c)[r].apply(i,u),a&&s.done]);case 6:return e.abrupt("return",e.sent[0]);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();return Ce.set(t,i),i}}}xe=function(e){return he(he({},e),{},{get:function(t,r,n){return Oe(t,r)||e.get(t,r,n)},has:function(t,r){return!!Oe(t,r)||e.has(t,r)}})}(xe);r(404);var je="cache-entries",Se=function(e){var t=new URL(e,location.href);return t.hash="",t.href},Te=function(){function e(t){s(this,e),this._db=null,this._cacheName=t}return i(e,[{key:"_upgradeDb",value:function(e){var t=e.createObjectStore(je,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}},{key:"_upgradeDbAndDeleteOldDbs",value:function(e){this._upgradeDb(e),this._cacheName&&function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).blocked,r=indexedDB.deleteDatabase(e);t&&r.addEventListener("blocked",(function(e){return t(e.oldVersion,e)})),ke(r).then((function(){}))}(this._cacheName)}},{key:"setTimestamp",value:function(){var e=R(_().mark((function e(t,r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Se(t),n={url:t,timestamp:r,cacheName:this._cacheName,id:this._getId(t)},e.next=4,this.getDb();case 4:return a=e.sent,i=a.transaction(je,"readwrite",{durability:"relaxed"}),e.next=8,i.store.put(n);case 8:return e.next=10,i.done;case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getTimestamp",value:function(){var e=R(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getDb();case 2:return r=e.sent,e.next=5,r.get(je,this._getId(t));case 5:return n=e.sent,e.abrupt("return",null===n||void 0===n?void 0:n.timestamp);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"expireEntries",value:function(){var e=R(_().mark((function e(t,r){var n,a,i,s,c,o,u,h,l;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getDb();case 2:return n=e.sent,e.next=5,n.transaction(je).store.index("timestamp").openCursor(null,"prev");case 5:a=e.sent,i=[],s=0;case 8:if(!a){e.next=16;break}return(c=a.value).cacheName===this._cacheName&&(t&&c.timestamp<t||r&&s>=r?i.push(a.value):s++),e.next=13,a.continue();case 13:a=e.sent,e.next=8;break;case 16:o=[],u=0,h=i;case 18:if(!(u<h.length)){e.next=26;break}return l=h[u],e.next=22,n.delete(je,l.id);case 22:o.push(l.url);case 23:u++,e.next=18;break;case 26:return e.abrupt("return",o);case 27:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_getId",value:function(e){return this._cacheName+"|"+Se(e)}},{key:"getDb",value:function(){var e=R(_().mark((function e(){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._db){e.next=4;break}return e.next=3,Ee("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)});case 3:this._db=e.sent;case 4:return e.abrupt("return",this._db);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Pe=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=r.maxEntries,this._maxAgeSeconds=r.maxAgeSeconds,this._matchOptions=r.matchOptions,this._cacheName=t,this._timestampModel=new Te(t)}return i(e,[{key:"expireEntries",value:function(){var e=R(_().mark((function e(){var t,r,n,a,i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isRunning){e.next=3;break}return this._rerunRequested=!0,e.abrupt("return");case 3:return this._isRunning=!0,t=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,e.next=7,this._timestampModel.expireEntries(t,this._maxEntries);case 7:return r=e.sent,e.next=10,self.caches.open(this._cacheName);case 10:n=e.sent,a=O(r),e.prev=12,a.s();case 14:if((i=a.n()).done){e.next=20;break}return s=i.value,e.next=18,n.delete(s,this._matchOptions);case 18:e.next=14;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(12),a.e(e.t0);case 25:return e.prev=25,a.f(),e.finish(25);case 28:0,this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,q(this.expireEntries()));case 31:case"end":return e.stop()}}),e,this,[[12,22,25,28]])})));return function(){return e.apply(this,arguments)}}()},{key:"updateTimestamp",value:function(){var e=R(_().mark((function e(t){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this._timestampModel.setTimestamp(t,Date.now());case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"isURLExpired",value:function(){var e=R(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._maxAgeSeconds){e.next=6;break}e.next=3;break;case 3:return e.abrupt("return",!1);case 6:return e.next=8,this._timestampModel.getTimestamp(t);case 8:return r=e.sent,n=Date.now()-1e3*this._maxAgeSeconds,e.abrupt("return",void 0===r||r<n);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=R(_().mark((function e(){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._rerunRequested=!1,e.next=3,this._timestampModel.expireEntries(1/0);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),qe=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.cachedResponseWillBeUsed=function(){var e=R(_().mark((function e(r){var n,a,i,s,c,o,u;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.event,a=r.request,i=r.cacheName,s=r.cachedResponse){e.next=3;break}return e.abrupt("return",null);case 3:if(c=t._isResponseDateFresh(s),q((o=t._getCacheExpiration(i)).expireEntries()),u=o.updateTimestamp(a.url),n)try{n.waitUntil(u)}catch(h){0}return e.abrupt("return",c?s:null);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.cacheDidUpdate=function(){var e=R(_().mark((function e(r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.cacheName,a=r.request,i=t._getCacheExpiration(n),e.next=5,i.updateTimestamp(a.url);case 5:return e.next=7,i.expireEntries();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._config=r,this._maxAgeSeconds=r.maxAgeSeconds,this._cacheExpirations=new Map,r.purgeOnQuotaError&&function(e){b.add(e)}((function(){return t.deleteCacheAndMetadata()}))}return i(e,[{key:"_getCacheExpiration",value:function(e){if(e===k())throw new y("expire-custom-caches-only");var t=this._cacheExpirations.get(e);return t||(t=new Pe(e,this._config),this._cacheExpirations.set(e,t)),t}},{key:"_isResponseDateFresh",value:function(e){if(!this._maxAgeSeconds)return!0;var t=this._getDateHeaderTimestamp(e);return null===t||t>=Date.now()-1e3*this._maxAgeSeconds}},{key:"_getDateHeaderTimestamp",value:function(e){if(!e.headers.has("date"))return null;var t=e.headers.get("date"),r=new Date(t).getTime();return isNaN(r)?null:r}},{key:"deleteCacheAndMetadata",value:function(){var e=R(_().mark((function e(){var t,r,n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=O(this._cacheExpirations),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=11;break}return n=B(r.value,2),a=n[0],i=n[1],e.next=7,self.caches.delete(a);case 7:return e.next=9,i.delete();case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),t.e(e.t0);case 16:return e.prev=16,t.f(),e.finish(16);case 19:this._cacheExpirations=new Map;case 20:case"end":return e.stop()}}),e,this,[[1,13,16,19]])})));return function(){return e.apply(this,arguments)}}()}]),e}();var De,Ue=function(e){o(r,e);var t=f(r);function r(){return s(this,r),t.apply(this,arguments)}return i(r,[{key:"_handle",value:function(){var e=R(_().mark((function e(t,r){var n,a;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return[],e.next=4,r.cacheMatch(t);case 4:if(n=e.sent,a=void 0,n){e.next=20;break}return e.prev=8,e.next=11,r.fetchAndCachePut(t);case 11:n=e.sent,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(8),e.t0 instanceof Error&&(a=e.t0);case 17:0,e.next=21;break;case 20:0;case 21:if(n){e.next=24;break}throw new y("no-response",{url:t.url,error:a});case 24:return e.abrupt("return",n);case 25:case"end":return e.stop()}}),e,this,[[8,14]])})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(Q),Ne={cacheWillUpdate:function(){var e=R(_().mark((function e(t){var r;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(200!==(r=t.response).status&&0!==r.status){e.next=3;break}return e.abrupt("return",r);case 3:return e.abrupt("return",null);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},Ie=function(e){o(r,e);var t=f(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,r),(e=t.call(this,n)).plugins.some((function(e){return"cacheWillUpdate"in e}))||e.plugins.unshift(Ne),e}return i(r,[{key:"_handle",value:function(){var e=R(_().mark((function e(t,r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return[],n=r.fetchAndCachePut(t).catch((function(){})),r.waitUntil(n),e.next=6,r.cacheMatch(t);case 6:if(!(a=e.sent)){e.next=11;break}0,e.next=21;break;case 11:return e.prev=12,e.next=15,n;case 15:a=e.sent,e.next=21;break;case 18:e.prev=18,e.t0=e.catch(12),e.t0 instanceof Error&&(i=e.t0);case 21:if(a){e.next=24;break}throw new y("no-response",{url:t.url,error:i});case 24:return e.abrupt("return",a);case 25:case"end":return e.stop()}}),e,this,[[12,18]])})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(Q);(function(e){Z().precache(e)})(([{'revision':'d4577b101a49b47baaddb5634ace242d','url':'/.well-known/service/static/index.html'},{'revision':'0e898c13dd6acc261bd8e1c685957057','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-400-normal.woff'},{'revision':'e1b3b5908c9cf23dfb2b9c52b9a023ab','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-400-normal.woff2'},{'revision':'cf01af70a3ae9a494a729f504c43804e','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-ext-400-normal.woff'},{'revision':'4bde07f991ba6af69a1e009fd7ce9d1a','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-ext-400-normal.woff2'},{'revision':'6a0b64dd716576afb1ef9217bfe20439','url':'/.well-known/service/static/router-template-styles/styles.css'},{'revision':null,'url':'/.well-known/service/static/static/css/3154.e954fcda.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/4802.bf353f58.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/5547.5f9be15f.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/5982.ac464505.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/807.65f26433.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/main.7ea79dc8.css'},{'revision':null,'url':'/.well-known/service/static/static/js/1431.3379c73c.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1480.88c590c2.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1565.cf381434.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1760.1e5aaa46.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2093.185a5563.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2291.7ffdc7df.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2393.528e5343.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2631.54f86f84.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2653.3873eb86.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2686.890b32ed.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2836.f3dbcb77.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2838.fcdea2fa.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3025.7dc2fe04.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3038.40d611d1.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3255.2cf7c752.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3490.4d3a51ea.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3593.4d68c718.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3688.15a9bdc4.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4023.8cfc3ec6.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4164.5adbbbba.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4319.8d9e189e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4355.f459ab57.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4420.8b69d6e7.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4461.02f584b7.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4682.f90d26fd.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4716.bd8bed1b.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/476.f196e88a.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4764.51208c0d.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4802.534357c1.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4917.6e72ef28.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4932.c7c954aa.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5176.7e91bc3b.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5434.523d071d.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5465.dd0f7a20.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5509.a196d497.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5547.2e5aa64f.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5628.a4620fa6.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5645.3c5c0f93.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5673.0dd67df6.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5683.47011724.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5960.35db200d.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5969.2791e4e5.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5982.0abe67c3.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6139.c781eea4.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6186.1f08318c.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6378.29466d9e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6465.e704f56b.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6498.698608f8.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6576.8f9d786f.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6629.376863d2.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6711.fa6dfc37.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6737.53cccea9.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6771.a1510398.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6856.2eb98754.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6868.881bd141.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7006.8f0645e5.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7226.4eca7c02.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7367.15383006.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7606.25231f8c.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7648.955e20c7.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/807.249d2d01.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8437.13d39ce4.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8497.e83aa0c8.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8604.a8ef404e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8792.fa2c5f5e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9102.ff87def5.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9409.7d4a802c.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/941.94668382.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9529.c7112fae.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9620.301493bc.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9657.b03b88e5.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9899.277d673f.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9997.540afd6e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/main.ee013f15.js'},{'revision':'e3bc0515e1d125463e42435a231a6aa2','url':'/.well-known/service/static/static/media/empty-space-nft.3878bc5c8ba6490ef5075fdda24be921.svg'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-all-400-normal.3dc1eff492ab1f598560.woff'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-all-700-normal.1e7707c9ec98d9b97e7f.woff'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-400-normal.be36596da218e1eec01c.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-700-normal.8f28e0e1fdb195149f1c.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-ext-400-normal.361f3dbb9db6a5980326.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-ext-700-normal.9c8812eaec45956201e1.woff2'},{'revision':'893e153699e6c3cbf74132eacdb77fa6','url':'/.well-known/service/static/static/media/space-connected.9a4e18fd2bc7d065191b0d241a131c28.svg'},{'revision':'1eb1b65118c541eb7f5453294a9d8e77','url':'/.well-known/service/static/static/media/studio.f849ff5763d19a78ada7fdeea249f819.svg'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-all-400-normal.c879328bc62e9c68268f.woff'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-cyrillic-400-normal.c367f416832eb8f1b846.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-cyrillic-ext-400-normal.eda1c4946b1f7bf58386.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-greek-400-normal.22f3bfc91f79c342bdf4.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-greek-ext-400-normal.b3459900ea8a25d1f7c2.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-latin-400-normal.18e32d9d743af28f913e.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-latin-ext-400-normal.b56e2315611d10838ad5.woff2'}]||[]).filter((function(e){return"/"!==e.url&&!e.url.includes("index.html")}))),function(e){var t=Z();se(new oe(t,e))}(De),self.addEventListener("activate",(function(){return self.clients.claim()})),self.addEventListener("activate",(function(){console.log("Service Worker activated")})),self.addEventListener("install",(function(e){console.log("Service Worker installed"),e.waitUntil(self.skipWaiting())}));var Ae=function(e){return"GET"!==e.method||(!!e.url.includes("/api")||(!!e.url.includes("__meta__.js")||!!e.url.includes("__blocklet__.js")))};se((function(e){var t=e.request;return!Ae(t)&&t.url.includes("/static/")}),new Ue({cacheName:"static",plugins:[new qe({maxEntries:200})]})),se((function(e){var t=e.request;return!Ae(t)&&(t.url.includes("/images/")||t.url.includes("/router/-template-styles/"))}),new Ie)}()}();
3
3
  //# sourceMappingURL=service-worker.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[6186],{5954:function(e,n,t){t.d(n,{cK:function(){return d},h6:function(){return p}});var r=t(30969),o=t(41395),a=t(20244),i=t(48952),c=t(90781),s=t(99042),l=t(37574),u=o.sy.Provider;o.sy.Consumer;function d(e){var n=e.children,t="".concat(a.WELLKNOWN_SERVICE_PATH_PREFIX,"/static/images"),r=window.env,o=r.serverDid,d=r.serverVersion,p=r.mode,f={imgPrefix:t,api:i.Z,restApi:s.Z,ws:{getWsClient:c.ZP,create:c.Ue,useSubscription:c.mU},type:"service",info:{did:o,version:d,mode:p}};return(0,l.jsx)(u,{value:{node:f},children:n})}function p(){return(0,r.useContext)(o.sy).node}},6186:function(e,n,t){t.r(n),t.d(n,{default:function(){return an}});var r,o=t(71171),a=t(16380),i=t(30969),c=t(30734),s=t(238),l=t(38361),u=t(51711),d=t(26022),p=t(19865),f=t(7017),v=t(20244),m=t(24891),h=t(43820),g=t(94282),Z=t(33028),x=t(32723),b=t(34795),k=t(96234),y=t(59740),w=t(24974),C=t.n(w),P=t(86822),E=t(17708),j=t(94551),D=t(48082),S=t(75295),R=t(27265),B=t(94308),_=t(2689),L=t(37973),T=t(93310),U=t(86008),I=t(33359),N=t(76492),A=t(97517),O=t(49884),G=t(18877),F=t(29996),z=t(59505),K=t(1986),M=t(90617),q=t(41395),V=t(8479),W=t(55008),X=t(45008),H=t(37574),J=["blocklet","onStart","onComplete","variant","hasPermission","useBlockletUrlEvaluation"];function Y(e){var n,t,r,o,a=e.blocklet,s=e.onStart,l=e.onComplete,u=e.variant,p=e.hasPermission,h=e.useBlockletUrlEvaluation,g=(0,y.Z)(e,J),w=(0,c.useNavigate)(),C=(0,q.h6)(),Y=(0,i.useState)(null),Q=(0,k.Z)(Y,2),ee=Q[0],ne=Q[1],te=(0,i.useState)(null),re=(0,k.Z)(te,2),oe=re[0],ae=re[1],ie=(0,i.useState)(!1),ce=(0,k.Z)(ie,2),se=ce[0],le=ce[1],ue=(0,i.useState)(null),de=(0,k.Z)(ue,2),pe=de[0],fe=de[1],ve=(0,i.useContext)(d.RD).t,me=(0,E.Z)("skip-blocklet-setup",!1),he=(0,k.Z)(me,1)[0],ge=h(a),Ze=ge.loading,xe=ge.recommendedUrl,be=(0,X.y0)().nftState,ke=(0,f.isInProgress)(a.status),ye=(null===a||void 0===a||null===(n=a.controller)||void 0===n||null===(t=n.status)||void 0===t?void 0:t.value)===z.BLOCKLET_CONTROLLER_STATUS.suspended;null!==be&&void 0!==be&&be.expired||(null===a||void 0===a||null===(r=a.controller)||void 0===r||null===(o=r.status)||void 0===o?void 0:o.reason)!==z.SUSPENDED_REASON.expired||(ye=!1);var we=C.inService,Ce=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,b.Z)((0,x.Z)().mark((function r(){var o,i,c,u,d;return(0,x.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=function(){var t=(0,b.Z)((0,x.Z)().mark((function t(r){var o,i,c,u,d,p,v,h,g,Z;return(0,x.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s({action:e,blocklet:a}),le(!0),ae(e),fe(null),o=!1,t.prev=5,"remove"!==e){t.next=11;break}return t.next=9,n(r);case 9:t.next=38;break;case 11:if("start"!==e){t.next=28;break}if((0,f.hasRunnableComponent)(a)){t.next=15;break}return K.Z.error(ve("blocklet.noComponent")),t.abrupt("return");case 15:if(we||he||null!==(i=a.settings)&&void 0!==i&&i.initialized||a.mode===z.BLOCKLET_MODES.DEVELOPMENT){t.next=22;break}return c=(0,M.RU)(C.info),(u=new URL(xe)).searchParams.set("serverUrl",c),window.open(u.href),l({action:e,blocklet:a}),t.abrupt("return");case 22:return d=a.children.filter((function(e){return!(0,f.isInProgress)(e.status)&&"running"!==e.status})).map((function(e){return e.meta.did})),p={did:a.meta.did,componentDids:d},t.next=26,n({input:p});case 26:t.next=38;break;case 28:if(!["stop","restart","reload"].includes(e)){t.next=35;break}return v=a.children.filter((function(e){return"running"===e.status})).map((function(e){return e.meta.did})),h={did:a.meta.did,componentDids:v},t.next=33,n({input:h});case 33:t.next=38;break;case 35:return g={did:a.meta.did},t.next=38,n({input:g});case 38:if("remove"!==e){t.next=42;break}o=!0,t.next=44;break;case 42:return t.next=44,(0,m._v)(1e3);case 44:"reload"===e&&K.Z.success(ve("blocklet.reloadSuccess")),l({action:e,blocklet:a}),t.next=52;break;case 48:t.prev=48,t.t0=t.catch(5),Z="Blocklet ".concat(e," failed: ").concat((0,m.Z)(t.t0)),l({action:e,blocklet:a,error:new Error(Z)});case 52:return t.prev=52,o||le(!1),t.finish(52);case 55:case"end":return t.stop()}}),t,null,[[5,48,52,55]])})));return function(e){return t.apply(this,arguments)}}(),i=function(){le(!1),fe(null)},c=(0,f.getDisplayName)(a,!0),u=a.mode===z.BLOCKLET_MODES.DEVELOPMENT?{description:function(){return(0,H.jsx)(I.Z,{component:"div",children:(0,H.jsx)(I.Z,{gutterBottom:!0,children:ve("blocklet.action.removeApplicationDescription")})})},params:{removeType:"complete"}}:{description:function(e,n){return(0,H.jsxs)(I.Z,{component:"div",children:[(0,H.jsx)(I.Z,{gutterBottom:!0,children:ve("blocklet.action.removeApplicationDescription")}),(0,H.jsxs)(A.Z,{name:"removeType",value:e.removeType,onChange:function(t){return n((0,Z.Z)((0,Z.Z)({},e),{},{removeType:t.target.value}))},children:[(0,H.jsx)(O.Z,{value:"backup",control:(0,H.jsx)(N.Z,{}),label:ve("blocklet.action.removeApplicationAfterBackup")}),(0,H.jsx)(O.Z,{value:"complete",control:(0,H.jsx)(N.Z,{}),label:ve("blocklet.action.removeApplicationComplete")})]})]})},params:{removeType:"backup"}},d={stop:{title:"".concat(ve("common.stop")," ").concat(c),description:ve("blocklet.action.stopDescription"),confirm:ve("blocklet.action.confirmStop"),cancel:ve("common.cancel"),onConfirm:o,onCancel:i},restart:{title:"".concat(ve("common.restart")," ").concat(c),description:ve("blocklet.action.restartDescription"),confirm:ve("blocklet.action.confirmRestart"),cancel:ve("common.cancel"),onConfirm:o,onCancel:i},remove:(0,Z.Z)({title:"".concat(ve("common.remove")," ").concat(c),confirm:ve("blocklet.action.confirmRemove"),cancel:ve("common.cancel"),onConfirm:o,onCancel:i},u),cancelDownload:{title:"".concat(ve("common.cancel")),description:ve("blocklet.action.cancelDownloadDescription",{name:c}),confirm:ve("common.confirm"),cancel:ve("common.cancel"),onConfirm:o,onCancel:i}},!t){r.next=9;break}fe(d[e]),r.next=11;break;case 9:return r.next=11,o();case 11:case"end":return r.stop()}}),r)})))},Pe=Boolean(ee),Ee=function(){var e=(0,b.Z)((0,x.Z)().mark((function e(n,t){return(0,x.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{t.stopPropagation(),t.preventDefault()}catch(r){}if(ne(null),"function"!==typeof n.handler){e.next=16;break}return e.prev=3,le(!0),ae(n.action),e.next=8,n.handler();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error("Blocklet ".concat(n.name," failed: "),e.t0);case 13:return e.prev=13,le(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[3,10,13,16]])})));return function(n,t){return e.apply(this,arguments)}}(),je=!we&&(0,f.isDeletableBlocklet)(a)&&a.structVersion===v.APP_STRUCT_VERSION?{action:"remove",icon:W.Z.Remove,name:ve("common.remove"),handler:Ce("remove",function(){var e=(0,b.Z)((0,x.Z)().mark((function e(n){return(0,x.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("backup"!==n.removeType){e.next=4;break}return e.next=4,C.api.backupBlocklet({input:{appDid:a.appDid,to:"disk"}});case 4:return e.next=6,C.api.deleteBlocklet({input:{did:a.meta.did,keepData:!1}});case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),!0),disabled:ke}:null,De={action:"remove",icon:W.Z.Remove,name:ve("common.cancel"),handler:Ce("cancelDownload",C.api.cancelDownloadBlocklet,!0)},Se=(0,f.getAppMissingConfigs)(a),Re=[{action:"start",icon:W.Z.Start,name:ve("common.start"),handler:Ce("start",C.api.startBlocklet),disabled:ye||a.children.every((function(e){return"running"===e.status}))||(0,m.XN)(a.status)||Ze||ke},{action:"stop",icon:W.Z.Stop,name:ve("common.stop"),handler:Ce("stop",C.api.stopBlocklet,!0),disabled:!["running","starting"].includes(a.status)},{action:"restart",icon:W.Z.Restart,name:ve("common.restart"),handler:Ce("restart",C.api.restartBlocklet,!0),disabled:ye||"running"!==a.status},{action:"reload",icon:W.Z.Reload,name:ve("common.reload"),handler:Ce("reload",C.api.reloadBlocklet),disabled:ye||"running"!==a.status},(0,m.XN)(a.status)?De:je,{separator:!0},{onlyInMenu:!0,action:"config",icon:W.Z.Config,name:ve("common.config"),handler:function(){w("/blocklets/".concat(a.meta.did,"/configuration"))},disabled:(0,m.XN)(a.status)},{onlyInMenu:!0,action:"team",icon:W.Z.Group,name:ve("common.manageTeam"),handler:function(){w("/blocklets/".concat(a.meta.did,"/members"))},disabled:(0,m.XN)(a.status)},{onlyInMenu:!0,action:"log",icon:W.Z.Log,name:ve("common.log"),handler:function(){w("/logs/blocklet-".concat(a.meta.did))},disabled:(0,m.XN)(a.status)}].filter(Boolean);return"menu"===u?(0,H.jsxs)($,{"data-cy":"blocklet-actions",children:[(0,H.jsx)(j.Z,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":a.meta.did,onClick:function(e){try{e.stopPropagation(),e.preventDefault()}catch(n){}ne(e.currentTarget)},size:"small",disabled:!p||!(0,m.XN)(a.status)&&se,children:(0,H.jsx)(L.Z,{})}),(0,H.jsxs)(D.Z,{id:"actions-menu",anchorEl:ee,keepMounted:!0,open:Pe,onClose:function(e){try{e.stopPropagation(),e.preventDefault()}catch(n){}ne(null)},PaperProps:{},children:[Se.length>0&&(0,H.jsxs)(G.Z,{style:{maxWidth:"400px"},severity:"error",children:[ve("blocklet.config.missingRequired"),(0,H.jsx)("br",{}),(0,H.jsx)(P.rU,{to:"/blocklets/".concat(a.meta.did,"/components"),children:ve("blocklet.config.gotoFix")})]}),Re.map((function(e,n){return e.separator?(0,H.jsx)(S.Z,{},"separator-".concat(n)):(0,H.jsxs)(_.Z,{dense:!0,onClick:function(n){return Ee(e,n)},disabled:e.disabled,"data-cy":"".concat(e.action,"-blocklet"),children:[(0,H.jsx)(T.Z,{style:{minWidth:24},children:(0,H.jsx)(e.icon,{fontSize:"small"})}),(0,H.jsx)(U.Z,{primary:e.name})]},e.name)}))]}),pe&&(0,H.jsx)(V.Z,{title:pe.title,description:pe.description,confirm:pe.confirm,cancel:pe.cancel,params:pe.params,onConfirm:pe.onConfirm,onCancel:pe.onCancel})]}):(0,H.jsxs)($,(0,Z.Z)((0,Z.Z)({"data-cy":"blocklet-actions"},g),{},{children:[(0,H.jsx)(R.Z,{children:Re.filter((function(e){return!e.separator&&!e.onlyInMenu})).map((function(e){return(0,H.jsxs)(F.Z,{title:e.name,"data-cy":"".concat(e.action,"-blocklet"),onClick:function(){return Ee(e)},disabled:Boolean(e.disabled)||se,children:[oe===e.action&&se&&ke?(0,H.jsx)(B.Z,{size:16}):(0,H.jsx)(e.icon,{}),(0,H.jsx)("span",{className:"blocklet-action-text",children:e.name})]},e.name)}))}),pe&&(0,H.jsx)(V.Z,{title:pe.title,description:pe.description,confirm:pe.confirm,cancel:pe.cancel,params:pe.params,onConfirm:pe.onConfirm,onCancel:pe.onCancel})]}))}Y.propTypes={blocklet:C().object.isRequired,onStart:C().func.isRequired,onComplete:C().func.isRequired,variant:C().oneOf(["menu","group"]),hasPermission:C().bool,useBlockletUrlEvaluation:C().func},Y.defaultProps={variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:function(){var e,n;return{loading:!1,recommendedUrl:null===(e=window)||void 0===e||null===(n=e.location)||void 0===n?void 0:n.href}}};var $=a.Z.div(r||(r=(0,o.Z)(["\n display: flex;\n align-items: center;\n\n @media (max-width: ","px) {\n .MuiButton-root {\n padding: 4px;\n font-size: 10px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.values.sm})),Q=t(84802),ee=t(23299),ne=t(72836),te=t(77370),re=function(e){var n={},t=null;return(0,f.forEachBlockletSync)(e,(function(e){n[e.meta.bundleDid]?t=(0,f.getDisplayName)(e,!0):e.meta.bundleDid&&(n[e.meta.bundleDid]=!0)})),t},oe=function(e,n,t){var r=e.hostname,o=e.href;if(!n)return o;if(t){var a,i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;var c=i[0],s=(((null===(a=n.site)||void 0===a?void 0:a.domainAliases)||[]).map((function(e){return e.value})).filter(Boolean).find((function(e){return e.endsWith(v.DEFAULT_DID_DOMAIN)}))||"").replace(".".concat(v.DEFAULT_DID_DOMAIN),"");return s?o.replace(r,"".concat(s,"-").concat(c,".").concat(v.DEFAULT_IP_DOMAIN_SUFFIX)):o}return o.replace(n.meta.bundleDid,n.appPid)};function ae(){var e=(0,d.PE)().t,n=(0,te.T)().api,t=(0,X.y0)().blocklet,r=(0,q.h6)().inService,o=(0,i.useState)(!1),a=(0,k.Z)(o,2),c=a[0],s=a[1],u=(0,i.useState)(5),p=(0,k.Z)(u,2),h=p[0],g=p[1],Z=t&&t.structVersion!==v.APP_STRUCT_VERSION;return[Z&&(0,H.jsxs)(ee.Z,{type:"warning",style:{margin:"12px 0"},children:[(0,H.jsxs)(l.Z,{display:"flex",alignItems:"center",children:[(0,H.jsx)(F.Z,{variant:"contained",size:"small",color:"primary",onClick:function(){return function(){try{if("running"===t.status)return void K.Z.error(e("blocklet.migrate.tip.running"));var n=re(t);if(n)return void K.Z.error(e("blocklet.migrate.tip.duplicate",{name:n}));s(!0)}catch(r){K.Z.error((0,m.Z)(r))}}()},style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),(0,H.jsx)("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map((function(n){return(0,H.jsx)(l.Z,{display:"flex",alignItems:"center",children:e("blocklet.migrate.intro.".concat(n))},n)}))]},"alert"),t&&(0,H.jsx)(ne.default,{popup:!0,open:c,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:n.get,checkTimeout:3e5,onSuccess:function(){var e=oe(window.location,t,r);setTimeout((function(){window.location.href=e}),5e3),g(5),setInterval((function(){g((function(e){return e-1}))}),1e3)},extraParams:{appDid:t.appDid,did:t.meta.did,wt:(0,M.iK)(t,!0),title:(0,f.getDisplayName)(t)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:h>=0?e("blocklet.migrate.success",{sec:h}):"Redirecting..."},onClose:function(){return s(!1)}},"connect")]}ae.propTypes={};var ie=t(99030),ce=t(90781),se=t(64864),le=t(5954),ue=t(80670),de=t(48952),pe=ue.Gy.Provider,fe=(ue.Gy.Consumer,window.env),ve=fe.did,me=fe.appId;function he(e){var n,t,r=e.children,o=(0,se.y0)().blocklet,a=(0,i.useState)([]),c=(0,k.Z)(a,2),s=c[0],l=c[1],u=(0,i.useState)([]),d=(0,k.Z)(u,2),p=d[0],m=d[1],h=(0,i.useState)([]),g=(0,k.Z)(h,2),Z=g[0],y=g[1],w=(0,f.getDisplayName)(o),C=(null===(n=((null===o||void 0===o?void 0:o.environments)||[]).find((function(e){return e.key===z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR})))||void 0===n?void 0:n.value)||"auto",P=(null===o||void 0===o?void 0:o.trustedPassports)||[],E=(null===o||void 0===o?void 0:o.trustedFactories)||[],j=!1!==(null===o||void 0===o?void 0:o.enablePassportIssuance),D=function(){var e=(0,b.Z)((0,x.Z)().mark((function e(){var n;return(0,x.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,de.Z.doBatchQuery({getRoles:{input:{teamDid:ve}},getPermissions:{input:{teamDid:ve}},getInvitations:{input:{teamDid:ve}}});case 3:n=e.sent,m((n.getRoles.roles||[]).filter((function(e){return!v.RBAC_CONFIG.roles.some((function(n){return n.name===e.name&&(!n.passport||n.ci)}))})).map((function(e){return e.description=e.description||"Use this passport to connect ".concat(w," as ").concat(e.title),e}))),y(n.getPermissions.permissions||[]),l(n.getInvitations.invitations||[]),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),K.Z.error(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}();(0,i.useEffect)((function(){var e;null!==o&&void 0!==o&&null!==(e=o.meta)&&void 0!==e&&e.did&&D()}),[null===o||void 0===o||null===(t=o.meta)||void 0===t?void 0:t.did]);var S=function(e){e.teamDid===ve&&D(ve)};(0,ce.mU)(v.EVENTS.USER_ADDED,S,[ve]),(0,ce.mU)(v.EVENTS.USER_REMOVED,S,[ve]),(0,ce.mU)(v.EVENTS.USER_UPDATED,S,[ve]);var R={teamDid:ve,teamIssuerDid:me,teamName:w,invitations:s,roles:p,permissions:Z,trustedPassports:P,trustedFactories:E,isNodeTeam:!1,enablePassportIssuance:j,refresh:function(){return D()},passportColor:C,endpoint:window.location.origin,blocklet:o,api:{getUser:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).did,n={teamDid:ve,user:{did:e}};return de.Z.getUser({input:n})},getUsers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.query,t=e.paging,r={teamDid:ve};return t&&(r.paging=t),n&&(r.query=n),r.sort={lastLoginAt:-1},de.Z.getUsers({input:r})},getUsersCountPerRole:function(){return de.Z.getUsersCountPerRole({input:{teamDid:ve}})}}};return(0,H.jsx)(pe,{value:R,children:r})}t(53420);var ge=t(25177),Ze=t(75255),xe=t(51921),be=t(40817),ke=t(28915),ye=t(19638),we=t(13328);function Ce(e){var n=e.infos,t=(0,d.PE)().t,r=n.map((function(e){return"* ".concat(e.label,": ").concat(e.value)})).join("\n"),o=new URL("https://github.com/blocklet/blocklet-site/issues/new");return o.searchParams.set("title","[Feedback]"),o.searchParams.set("body","\x3c!-- [Enter feedback here] --\x3e\n\n\n\n\x3c!--\nDocument Details\n".concat(r,"\n* Page: ").concat(window.location.href,"\n--\x3e\n")),(0,we.tZ)(l.Z,{sx:{mx:{xs:0,md:2}},children:(0,we.tZ)(ye.Z,{sx:{color:"text.primary"},target:"_blank",href:o.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}Ce.propTypes={infos:C().arrayOf(C().shape({label:C().string,value:C().string}))},Ce.defaultProps={infos:[]};var Pe=t(37433),Ee=t(39563),je=t(63771),De=t(19886),Se=t.n(De),Re=t(91380),Be=t(7173),_e=t(83176),Le=t(93033),Te=t.n(Le),Ue=t(22073),Ie=t(43178),Ne=["launcherUrl","chainHost","nftId","retention"],Ae=["sx"];function Oe(e){var n,t,r=e.launcherUrl,o=e.chainHost,a=e.nftId,c=(e.retention,(0,y.Z)(e,Ne)),s=(0,d.PE)(),u=s.t,p=s.locale,f=(0,Ie.Z)({safeIframeRef:null,popoverAnchorEl:null}),v=(0,k.Z)(f,2),h=v[0],g=v[1],w=(0,i.useRef)(null),C=c.sx,P=void 0===C?{}:C,E=(0,y.Z)(c,Ae),j=(0,Ue.Z)((0,b.Z)((0,x.Z)().mark((function e(){var n,t,i,c;return(0,x.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([(0,m.Nh)(o,a),(0,m.qZ)({launcherUrl:r||"https://launcher.arcblock.io/",nftId:a,locale:p})]);case 2:return n=e.sent,t=(0,k.Z)(n,2),i=t[0],c=t[1],e.abrupt("return",{asset:i,subscriptionURL:c});case 7:case"end":return e.stop()}}),e)}))),[p]);if(j.loading)return(0,H.jsxs)(l.Z,(0,Z.Z)((0,Z.Z)({sx:(0,Z.Z)({display:"flex",alignItems:"center",color:"grey",gap:1},P)},E),{},{children:[(0,H.jsx)(B.Z,{size:16}),u("expiration.loading")]}));if(j.error)return console.error(j.error),(0,H.jsx)(Be.Z,(0,Z.Z)((0,Z.Z)({label:u("expiration.loadFailed"),color:"error",variant:"success",sx:(0,Z.Z)({cursor:"pointer"},P)},E),{},{onClick:function(){return j.retry()}}));var D=(0,m.D9)(null===(n=j.value)||void 0===n?void 0:n.asset),S=Se()(D).isBefore(Se()()),R=Se()(D).diff(Se()(),"ms"),_="success";R<=2592e6&&(_="warning"),S&&(_="error");return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Be.Z,(0,Z.Z)((0,Z.Z)({label:(0,H.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,H.jsx)(Re.Z,{sx:{mr:"4px"},fontSize:"small"}),u("expiration.tips.".concat(_),{validity:Te()(R,{locale:(0,m.tA)(p),compact:!0,verbose:!0})})]}),color:_,variant:"success"!==_?"contained":"outlined",sx:(0,Z.Z)({cursor:"pointer"},P)},E),{},{onClick:function(e){g({popoverAnchorEl:e.currentTarget})}})),(0,H.jsx)(_e.ZP,{id:"popover-info",open:Boolean(h.popoverAnchorEl),anchorEl:h.popoverAnchorEl,onClose:function(){g({popoverAnchorEl:null})},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,H.jsx)("iframe",{ref:w,title:u("common.subscription"),width:"360px",height:"600px",style:{border:0},src:null===(t=j.value)||void 0===t?void 0:t.subscriptionURL})})]})}Oe.propTypes={chainHost:C().string.isRequired,nftId:C().string.isRequired,sx:C().object,retention:C().number,launcherUrl:C().string.isRequired},Oe.defaultProps={sx:{},retention:0};var Ge,Fe=Oe;function ze(){var e=(0,je.gP)(),n=e.inFullPage,t=e.toggleFullPage;return(0,we.tZ)(j.Z,{onClick:t,children:n?(0,we.tZ)(ke.Z,{}):(0,we.tZ)(be.Z,{})})}function Ke(e){var n,t=e.children,r=(0,d.PE)().t,o=(0,se.y0)(),a=o.loading,i=o.error,u=o.actions.refreshBlocklet,p=o.env,f=o.blocklet,h=(0,le.h6)().info,g=(0,c.useLocation)(),Z=(0,Ze.Z)((function(e){return e.breakpoints.down("md")})),x=[{label:"App ID",value:p.appId},{label:"App Version",value:p.version},{label:"App Bundle Name",value:null===f||void 0===f||null===(n=f.meta)||void 0===n?void 0:n.bundleName},{label:"Server Id",value:h.did},{label:"Server Version",value:h.version}],b={};return Z&&(b.logo=null),(0,we.BX)(qe,{legacy:!1,fullWidth:!0,headerAddons:function(e){var n,t,r,o=Array.isArray(e)?e:[e];return o.unshift((0,we.tZ)(ze,{})),(0,M.ep)(f)?(o.unshift((0,we.tZ)(Fe,{chainHost:null===f||void 0===f||null===(n=f.controller)||void 0===n?void 0:n.chainHost,nftId:null===f||void 0===f||null===(t=f.controller)||void 0===t?void 0:t.nftId,launcherUrl:null===f||void 0===f||null===(r=f.controller)||void 0===r?void 0:r.launcherUrl,retention:v.EXPIRED_BLOCKLET_DATA_RETENTION_DAYS,sx:{cursor:"pointer",marginRight:{xs:"8px",md:"48px"}}})),o):o},headerProps:b,footerProps:{addon:(0,we.tZ)(Ce,{infos:x})},children:[!f&&a&&(0,we.tZ)(s.Z,{relative:"parent",children:(0,we.tZ)(B.Z,{})}),!f&&i&&(0,we.BX)(s.Z,{relative:"parent",children:[(0,we.BX)(l.Z,{display:"flex",alignItems:"center",children:[(0,we.tZ)(ge.Z,{color:"error",sx:{marginRight:1}}),(0,m.Z)(i)]}),(0,we.tZ)(F.Z,{onClick:function(){return u()},children:(0,we.tZ)("span",{style:{textDecoration:"underline"},children:r("common.retry")})})]}),!!f&&(0,we.tZ)(l.Z,{flex:1,padding:"16px",display:"flex",flexDirection:"column",children:(0,we.tZ)(xe.ErrorBoundary,{FallbackComponent:Pe.H,resetKeys:[g.pathname],children:t})})]})}Ke.defaultProps={children:null};var Me,qe=(0,a.Z)(Ee.Z)(Ge||(Ge=(0,o.Z)([""]))),Ve=t(38507),We=(0,i.lazy)((function(){return Promise.all([t.e(5683),t.e(7006),t.e(8497),t.e(3688)]).then(t.bind(t,13688))})),Xe=(0,i.lazy)((function(){return Promise.all([t.e(5683),t.e(7006),t.e(5960),t.e(2631),t.e(4355),t.e(2291),t.e(6465),t.e(2653)]).then(t.bind(t,92653))})),He=(0,i.lazy)((function(){return Promise.all([t.e(5683),t.e(7006),t.e(4319),t.e(8604),t.e(3593)]).then(t.bind(t,23593))})),Je=(0,i.lazy)((function(){return Promise.all([t.e(5683),t.e(7006),t.e(5960),t.e(2631),t.e(4355),t.e(2291),t.e(4764),t.e(9529),t.e(3255),t.e(6868),t.e(4802)]).then(t.bind(t,121))})),Ye=(0,i.lazy)((function(){return Promise.all([t.e(5683),t.e(7606),t.e(3154),t.e(6771)]).then(t.bind(t,26771))})),$e=(0,i.lazy)((function(){return Promise.all([t.e(5683),t.e(5645),t.e(5982)]).then(t.bind(t,25205))})),Qe=(0,i.lazy)((function(){return Promise.all([t.e(5683),t.e(7006),t.e(5960),t.e(2631),t.e(4355),t.e(2291),t.e(5969),t.e(6139)]).then(t.bind(t,16139))})),en=(0,i.lazy)((function(){return Promise.all([t.e(5683),t.e(7006),t.e(5960),t.e(2631),t.e(2838),t.e(4764),t.e(4917),t.e(7648),t.e(4023)]).then(t.bind(t,4023))})),nn=(0,i.lazy)((function(){return Promise.all([t.e(5683),t.e(7006),t.e(5960),t.e(2631),t.e(4355),t.e(2291),t.e(4164),t.e(6498),t.e(7367),t.e(9657),t.e(8792)]).then(t.bind(t,58792))})),tn=(0,i.lazy)((function(){return Promise.all([t.e(5683),t.e(7006),t.e(5960),t.e(4355),t.e(4164),t.e(4319),t.e(6629),t.e(9997),t.e(2838),t.e(5465),t.e(7606),t.e(476),t.e(6498),t.e(807),t.e(6868),t.e(1565)]).then(t.bind(t,31565))})),rn=(0,i.lazy)((function(){return Promise.all([t.e(5683),t.e(7006),t.e(5960),t.e(2631),t.e(4355),t.e(2291),t.e(5465),t.e(4932),t.e(2393)]).then(t.bind(t,2393))}));function on(){var e,n,t=(0,c.useNavigate)(),r=(0,c.useParams)().tab,o=void 0===r?"overview":r,a=(0,se.y0)(),Z=a.blocklet,x=a.actions.refreshBlocklet,b=(0,d.PE)().t,k=null===Z||void 0===Z||null===(e=Z.meta)||void 0===e?void 0:e.did,y=!Z||(0,m.wS)(Z.status)?[]:(0,f.getAppMissingConfigs)(Z),w=[{label:b("common.overview"),value:"overview"},{label:(0,H.jsx)(u.Z,{color:"error",variant:"dot",invisible:!y.length,children:b("common.components")}),value:"components"}];(0,m.wS)(null===Z||void 0===Z?void 0:Z.status)||w.push({label:b("common.configuration"),value:"configuration"}),w.push({label:b("common.auditLogs"),value:"audit-logs"}),Z&&null!==(n=Z.children)&&void 0!==n&&n.length&&Z.structVersion===v.APP_STRUCT_VERSION&&w.push({label:b("common.logs"),value:"logs"}),w.push({label:b("common.configNavigation"),value:"navigation"}),w.push({label:b("common.storage"),value:"storage"}),w.push({label:b("common.publish"),value:"publish"});var C=(0,H.jsx)(Ye,{scope:k,categories:["blocklet","team","security","certificates","gateway"]});(0,ce.mU)(v.EVENTS.NOTIFICATION_CREATE,(function(e){var n=e||{},t=n.severity,r=n.title,o=n.description;"error"===t?K.Z.error(o||r):K.Z.success(o||r)}),[k]);var P={overview:(0,H.jsx)(We,{}),members:(0,H.jsx)(l.Z,{mt:-5,children:(0,H.jsx)(Xe,{type:"blocklet",createPassportSvg:Ve.Ju})}),passports:(0,H.jsx)(l.Z,{mt:-4.5,children:(0,H.jsx)(He,{createPassportSvg:Ve.Ju})}),components:tn,configuration:(0,H.jsx)(Je,{blocklet:Z,onUpdate:function(){x()}}),"audit-logs":C,logs:$e,navigation:en,storage:(0,H.jsx)(nn,{}),analytics:(0,H.jsx)(l.Z,{mt:-5,children:(0,H.jsx)(rn,{})}),publish:(0,H.jsx)(Qe,{})},E=P[o]||P.overview,j=!["members","passports","analytics"].includes(o),D=Z?(0,H.jsxs)(h.g,{type:"components",children:[j&&(0,H.jsx)(p.Z,{style:{marginLeft:-16},tabs:w,current:o,onChange:function(e){t("".concat(v.WELLKNOWN_SERVICE_PATH_PREFIX,"/admin/").concat(e))},scrollButtons:"auto"}),(0,H.jsx)("div",{className:"page-content",children:(0,H.jsx)(i.Suspense,{fallback:(0,H.jsx)(s.Z,{children:(0,H.jsx)(B.Z,{})}),children:(0,i.isValidElement)(E)?E:(0,H.jsx)(E,{blocklet:Z})})})]}):(0,H.jsx)(s.Z,{children:(0,H.jsx)(B.Z,{})});return(0,H.jsx)(le.cK,{children:(0,H.jsx)(he,{children:(0,H.jsx)(Ke,{children:(0,H.jsx)(ie.wV,{children:(0,H.jsxs)(cn,{children:[j&&(0,H.jsxs)(l.Z,{component:"div",className:"page-header",children:[(0,H.jsxs)(l.Z,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[Z?(0,H.jsx)(Q.Z,{blocklet:Z,style:{marginRight:16}}):null,Z?(0,H.jsxs)(l.Z,{display:"flex",alignItems:"center",children:[(0,H.jsx)(l.Z,{children:(0,f.getDisplayName)(Z)}),"unknown"!==(null===Z||void 0===Z?void 0:Z.status)&&(0,H.jsx)(g.Z,{size:"12px",style:{marginLeft:8},status:Z.status,source:Z.source})]}):"".concat(b("common.blocklet")," ").concat(b("common.detail"))]}),Z?(0,H.jsx)(Y,{className:"page-actions",hasPermission:!0,blocklet:Z,onStart:function(){},onComplete:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).error;e&&K.Z.error(e.message)},variant:"group"}):null]}),(0,H.jsx)(ae,{}),D]})})})})})}function an(){var e,n=(0,se.y0)().blocklet,t=null===n||void 0===n||null===(e=n.meta)||void 0===e?void 0:e.did;return(0,i.useEffect)((function(){var e=(0,ce.ZP)();return t&&e.connect(),function(){t&&e.isConnected()&&e.disconnect()}}),[t]),(0,H.jsx)(on,{})}var cn=a.Z.main(Me||(Me=(0,o.Z)(["\n .page-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .page-title {\n display: flex;\n align-items: center;\n\n .page-link {\n font-size: 15px;\n margin-top: 8px;\n margin-left: 8px;\n }\n }\n\n .page-content {\n margin-top: 18px;\n }\n\n @media (max-width: ","px) {\n .page-header {\n flex-direction: column;\n align-items: flex-start;\n .page-actions,\n .MuiButtonGroup-root {\n width: 100%;\n }\n .MuiButtonGroup-root {\n .MuiButtonBase-root {\n flex: 1;\n }\n .blocklet-action-text {\n display: none;\n }\n }\n }\n\n .page-title {\n margin-bottom: 15px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.values.md}))},84802:function(e,n,t){t.d(n,{Z:function(){return f}});var r=t(33028),o=t(59740),a=t(24974),i=t.n(a),c=t(59467),s=t(62399),l=t(59505),u=t(15300),d=t(37574),p=["blocklet","style","size"];function f(e){var n,t=e.blocklet,a=e.style,i=e.size,f=(0,o.Z)(e,p),v=(0,u.Z)({blocklet:t}).logoUrl,m=f.variant,h=(0,d.jsx)("img",{src:v,alt:"",style:{width:i}});t.meta.logo||((null===(n=(t.configs||[]).find((function(e){return e.key===l.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE})))||void 0===n?void 0:n.value)||(h=(0,d.jsx)(s.Z,{did:t.meta.did||"",responsive:!0})));return(0,d.jsx)(c.Z,(0,r.Z)((0,r.Z)({variant:m||"square",style:Object.assign({backgroundColor:"transparent",width:i,height:i,borderRadius:10},a)},f),{},{children:h}))}f.propTypes={blocklet:i().object.isRequired,style:i().object,size:i().oneOfType([i().number,i().string])},f.defaultProps={style:{},size:40}},55008:function(e,n,t){var r=t(10814),o=t(8825),a=t(60003),i=t(13875),c=t(57256),s=t(14079),l=t(51389),u=t(98127);n.Z={Start:o.Z,Stop:a.Z,Restart:i.default,Reload:c.Z,Remove:r.default,Config:s.Z,Log:l.Z,Group:u.Z}},94282:function(e,n,t){t.d(n,{Z:function(){return g}});var r=t(33028),o=t(59740),a=t(30969),i=t(24974),c=t.n(i),s=t(94308),l=t(6779),u=t(26022),d=t(7017),p=t(19708),f=t(61472),v=t(37574),m=["status","variant","source"],h={yellow:"#FFCF71",grey:"#888888"};function g(e){var n=e.status,t=e.variant,i=(e.source,(0,o.Z)(e,m)),c=(0,a.useContext)(u.RD).t,g={added:h.grey,waiting:h.yellow,downloading:h.yellow,downloaded:h.grey,installing:h.yellow,installed:h.grey,starting:h.yellow,running:"success",stopping:h.yellow,stopped:h.grey,error:"error",upgrading:h.yellow,restarting:h.yellow,corrupted:"error",deleting:h.yellow},Z=(0,d.isInProgress)(n),x=c("blocklet.status.".concat(n));return"dot"===t?(0,v.jsx)(l.Z,{title:c("blocklet.statusTip",{status:x}),children:(0,v.jsx)(p.Z,(0,r.Z)({color:g[n]},i))}):(0,v.jsxs)(f.Z,(0,r.Z)((0,r.Z)({type:{added:"primary",waiting:"warning",downloading:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning"}[n]},i),{},{children:[Z&&(0,v.jsx)(s.Z,{size:12,color:"inherit",style:{marginRight:5}}),x]}))}g.propTypes={status:c().string.isRequired,variant:c().oneOf(["dot","tag"]),source:c().string},g.defaultProps={variant:"tag",source:""}},8479:function(e,n,t){t.d(n,{Z:function(){return R}});var r=t(71171),o=t(33028),a=t(32723),i=t(34795),c=t(96234),s=t(59740),l=t(30969),u=t(24974),d=t.n(u),p=t(16380),f=t(84636),v=t(94308),m=t(91862),h=t(87130),g=t(43207),Z=t(38357),x=t(18877),b=t(94702),k=t(75255),y=t(26022),w=t(29996),C=t(24891),P=t(45555);var E,j=function(){var e=(0,P.Z)();return{minWidth:(0,k.Z)(e.breakpoints.down("md"))?300:e.breakpoints.values.sm}},D=t(37574),S=["title","description","showCancel","cancel","confirm","color","params","onCancel","onConfirm","loading"];function R(e){var n=e.title,t=e.description,r=e.showCancel,u=e.cancel,d=e.confirm,p=e.color,f=e.params,P=e.onCancel,E=e.onConfirm,R=e.loading,_=(0,s.Z)(e,S),L=(0,l.useState)(f),T=(0,c.Z)(L,2),U=T[0],I=T[1],N=(0,l.useState)(!0),A=(0,c.Z)(N,2),O=A[0],G=A[1],F=(0,l.useState)(!1),z=(0,c.Z)(F,2),K=z[0],M=z[1],q=(0,l.useState)(""),V=(0,c.Z)(q,2),W=V[0],X=V[1],H=(0,y.PE)().t,J=(0,b.Z)(),Y=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(n){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof n){e.next=17;break}return M(!0),e.prev=2,e.next=5,n(U);case 5:G(!1),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(2),X((0,C.Z)(e.t0)),console.error(e.t0);case 12:return e.prev=12,M(!1),e.finish(12);case 15:e.next=18;break;case 17:G(!1);case 18:case"end":return e.stop()}}),e,null,[[2,8,12,15]])})));return function(n){return e.apply(this,arguments)}}(),$="function"===typeof n?n():n,Q="function"===typeof t?t(U,I,X):t,ee=(0,k.Z)(J.breakpoints.down("md")),ne=j().minWidth;return(0,D.jsxs)(B,(0,o.Z)((0,o.Z)({onClick:function(e){e.stopPropagation()},fullScreen:ee,open:O,style:{minWidth:ne}},_),{},{children:[(0,D.jsx)(Z.Z,{children:$}),(0,D.jsxs)(h.Z,{style:{minWidth:ne},children:[(0,D.jsx)(g.Z,{component:"div",children:Q}),!!W&&(0,D.jsx)(x.Z,{severity:"error",style:{width:"100%",marginTop:8},children:W})]}),(0,D.jsxs)(m.Z,{className:"delete-actions",style:{padding:"8px 24px 24px"},children:[r&&(0,D.jsx)(w.Z,{onClick:function(e){e.stopPropagation(),Y(P)},color:"inherit","data-cy":"cancel-confirm-dialog",children:u||H("common.cancel")}),(0,D.jsxs)(w.Z,{onClick:function(e){e.stopPropagation(),Y(E)},color:p,disabled:U.__disableConfirm||K||R,variant:"contained","data-cy":"submit-confirm-dialog",autoFocus:!0,children:[(K||R)&&(0,D.jsx)(v.Z,{size:16}),d]})]})]}))}R.propTypes={title:d().any.isRequired,description:d().any.isRequired,showCancel:d().bool,cancel:d().string,color:d().string,confirm:d().string,params:d().object,onCancel:d().func,onConfirm:d().func.isRequired,loading:d().bool},R.defaultProps={onCancel:function(){},showCancel:!0,cancel:"",confirm:"Confirm",color:"error",params:{},loading:!1};var B=(0,p.Z)(f.Z)(E||(E=(0,r.Z)(["\n .delete-actions .Mui-disabled {\n color: rgba(0, 0, 0, 0.26) !important;\n box-shadow: none;\n background-color: rgba(0, 0, 0, 0.12) !important;\n }\n"])))},99030:function(e,n,t){t.d(n,{wV:function(){return j},XN:function(){return D}});var r=t(32723),o=t(33028),a=t(34795),i=t(96234),c=t(30969),s=t(24974),l=t.n(s),u=t(1986),d=t(26022),p=t(59505),f=t(45008),v=t(30134),m=t(57982),h=t(41395),g=t(50576);function Z(e){return x.apply(this,arguments)}function x(){return x=(0,a.Z)((0,r.Z)().mark((function e(n){var t,i,c,s,l;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.blockletDid,i=n.nodeApi,c=n.spaceGateways,s=!1,e.next=4,Promise.all(c.map(function(){var e=(0,a.Z)((0,r.Z)().mark((function e(n){var t,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.name,e.next=3,(0,v.nU)(n.endpoint);case 3:return a=e.sent,(0,g.isEmpty)(a)||a===t||(t=a,s=!0),e.abrupt("return",(0,o.Z)((0,o.Z)({},n),{},{name:t}));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:if(l=e.sent,!s){e.next=8;break}return e.next=8,Promise.all(l.filter((function(e){return e.did})).map((function(e){return i.updateBlockletSpaceGateway({input:{did:t,where:{did:e.did},spaceGateway:(0,o.Z)({},e)}})})));case 8:return e.abrupt("return",l);case 9:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}var b=t(85710);var k=t(24891);function y(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{deps:[],setLoading:function(){}},t=n.deps,o=n.setLoading,s=(0,f.y0)().blocklet,l=(0,c.useState)([]),d=(0,i.Z)(l,2),p=d[0],v=d[1],Z=(0,h.h6)().api,x=(0,g.debounce)((0,a.Z)((0,r.Z)().mark((function e(){var n,t;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o(!0),s){e.next=5;break}return v([]),e.abrupt("return");case 5:return e.next=7,Z.getBlockletBackups({input:{did:s.meta.did}});case 7:n=e.sent,t=n.backups,v(null!==t&&void 0!==t?t:[]),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(0),console.error(e.t0),u.Z.error((0,k.Z)(e.t0));case 16:return e.prev=16,o(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[0,12,16,19]])}))),2e3);return(0,m.Z)((0,a.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x();case 1:case"end":return e.stop()}}),e)}))),[null===s||void 0===s||null===(e=s.meta)||void 0===e?void 0:e.did].concat(t)),{backups:p}}var w=function(e){var n=e.appDid,t=y().backups,r=(0,c.useState)({message:"",progress:0,completed:!1}),a=(0,i.Z)(r,2),s=a[0],l=a[1];return(0,(0,h.h6)().ws.useSubscription)(p.BlockletEvents.backupProgress,(function(e){n===(null===e||void 0===e?void 0:e.appDid)&&l((function(){return(0,o.Z)({},e)}))}),[n]),(0,c.useEffect)((function(){var e;if(null!==t&&void 0!==t&&t.length&&(0,g.isNull)(null===(e=t[0])||void 0===e?void 0:e.status)){var n=(0,i.Z)(t,1)[0];l((function(){return{message:n.message,progress:n.progress,completed:Boolean(n.progress>=100)}}))}}),[t]),s};var C=t(37574),P=(0,c.createContext)({}),E=P.Provider;P.Consumer;function j(e){var n=e.children,t=(0,d.PE)().t,s=(0,h.h6)().api,l=(0,f.y0)().blocklet,g=(0,c.useState)(!1),x=(0,i.Z)(g,2),k=x[0],P=x[1],j=(0,c.useState)(!1),D=(0,i.Z)(j,2),S=D[0],R=D[1],B=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.setLoading,o=n.refresh,s=(0,f.y0)(),l=s.blocklet,d=s.actions.refreshBlocklet,p=null===l||void 0===l||null===(e=l.meta)||void 0===e?void 0:e.did,v=(0,c.useState)([]),g=(0,i.Z)(v,2),x=g[0],k=g[1],y=(0,h.h6)().api;return(0,m.Z)((0,a.Z)((0,r.Z)().mark((function e(){var n,o,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,p){e.next=4;break}return k([]),e.abrupt("return");case 4:return null===t||void 0===t||t(!0),e.next=7,y.getBlockletSpaceGateways({input:{did:p}});case 7:return n=e.sent,o=n.spaceGateways,e.next=11,Z({blockletDid:p,nodeApi:y,spaceGateways:o});case 11:a=e.sent,k(null!==a&&void 0!==a?a:[]),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),console.error(e.t0),u.Z.error((0,b.Z)(e.t0));case 19:return e.prev=19,null===t||void 0===t||t(!1),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[0,15,19,22]])}))),[p,d,o]),{spaceGateways:x}}({refresh:S,setLoading:P}),_=B.spaceGateways,L=w({appDid:null===l||void 0===l?void 0:l.appDid}),T=(0,c.useState)(!1),U=(0,i.Z)(T,2),I=U[0],N=U[1],A=(0,c.useMemo)((function(){return(0,v.mo)(null===l||void 0===l?void 0:l.environments)}),[l,S,I]),O=(0,c.useState)(!1),G=(0,i.Z)(O,2),F=G[0],z=y({deps:[L],setLoading:G[1]}).backups,K=(0,c.useState)(null===_||void 0===_?void 0:_.find((function(e){return e.endpoint===A}))),M=(0,i.Z)(K,2),q=M[0],V=M[1],W=(0,c.useState)(!1),X=(0,i.Z)(W,2),H=X[0],J=X[1],Y=function(){var e,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{deps:[]}).deps,t=(0,f.y0)().blocklet,o=(0,h.h6)().api,s=(0,c.useState)(null),l=(0,i.Z)(s,2),u=l[0],d=l[1];return(0,m.Z)((0,a.Z)((0,r.Z)().mark((function e(){var n,a,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===t||void 0===t||null===(n=t.meta)||void 0===n||!n.did){e.next=6;break}return e.next=3,o.getAutoBackup({input:{did:t.meta.did}});case 3:a=e.sent,i=a.autoBackup,d(i);case 6:case"end":return e.stop()}}),e)}))),[null===t||void 0===t||null===(e=t.meta)||void 0===e?void 0:e.did].concat(n)),u}({deps:[H]}),$=function(){var e=(0,a.Z)((0,r.Z)().mark((function e(n,t){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _.push((0,o.Z)((0,o.Z)({},n),{},{loading:!0})),e.next=3,s.addBlockletSpaceGateway({input:{did:l.meta.did,spaceGateway:n}});case 3:if(A===t){e.next=6;break}return e.next=6,s.configBlocklet({input:{did:[l.meta.did],configs:[{key:p.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t}]}});case 6:ne(),V(n);case 8:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Q=function(){var e=(0,a.Z)((0,r.Z)().mark((function e(n){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return");case 2:if(n.endpoint!==A){e.next=5;break}return u.Z.warning(t("storage.spaces.gateway.delete.failedForConnected")),e.abrupt("return");case 5:return e.next=7,s.deleteBlockletSpaceGateway({input:{did:l.meta.did,spaceGatewayDid:null===n||void 0===n?void 0:n.did}});case 7:ne(),V(n);case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ee=function(){var e=(0,a.Z)((0,r.Z)().mark((function e(n){var o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.updateBlockletSpaceGateway({input:{did:l.meta.did,where:{did:n.did},spaceGateway:n}});case 2:if(A===n.endpoint){e.next=5;break}return e.next=5,s.configBlocklet({input:{did:[l.meta.did],configs:[{key:p.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:n.endpoint}]}});case 5:u.Z.success(t("storage.spaces.connectedWithName",{name:null!==(o=null===n||void 0===n?void 0:n.name)&&void 0!==o?o:"DID Spaces"})),ne();case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ne=function(){R((function(e){return!e}))},te=function(){var e=(0,a.Z)((0,r.Z)().mark((function e(n){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.updateAutoBackup({input:{did:l.meta.did,autoBackup:n}});case 2:re();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),re=function(){J((function(e){return!e}))};return(0,C.jsx)(E,{value:{spaceGateways:_,selectedSpaceGateway:q,addSpaceGateway:$,deleteSpaceGateway:Q,updateSpaceGateway:ee,refreshSpaceGateways:ne,spaceGatewaysLoading:k,spaceGatewayIsSelected:function(e){return(null===e||void 0===e?void 0:e.endpoint)===A},updateAutoBackup:te,backupEndpoint:A,backupProgress:L,backups:z,backupsLoading:F,refreshBackupEndpoint:function(){N((function(e){return!e}))},autoBackup:Y},children:n})}function D(){return(0,c.useContext)(P)}j.propTypes={children:l().any.isRequired},j.defaultProps={}},43820:function(e,n,t){t.d(n,{K:function(){return f},g:function(){return p}});var r=t(68079),o=t(96234),a=t(30969),i=t(24974),c=t.n(i),s=t(16986),l=t.n(s),u=t(37574),d=(0,a.createContext)({});function p(e){var n=e.children,t=e.type,i=(0,a.useState)([]),c=(0,o.Z)(i,2),s=c[0],p=c[1],f=(0,a.useRef)([]),v=function(e){if(f.current.includes(e)){var n=f.current.filter((function(n){return n!==e}));p(n),f.current=n}};return(0,u.jsx)(d.Provider,{value:{type:t,deletingBlocklets:s,addDeletingDid:function(e){if(!f.current.includes(e)){var n=[].concat((0,r.Z)(f.current),[e]);p(n),f.current=n}},removeDeletingDid:v,matchDeletingDid:function(e){var n=s.filter((function(n){return e.find((function(e){return e===n}))}));l()(n,s).forEach((function(e){return v(e)}))}},children:n})}function f(){return(0,a.useContext)(d)}p.propTypes={type:c().string,children:c().node.isRequired},p.defaultProps={type:"blocklets"}},41395:function(e,n,t){t.d(n,{h6:function(){return i},sy:function(){return a}});var r=t(33028),o=t(30969),a=(0,o.createContext)({});a.Provider,a.Consumer;function i(){var e=(0,o.useContext)(a).node;return(0,r.Z)((0,r.Z)({},e),{},{inService:"service"===e.type,inDaemon:"daemon"===e.type})}},77370:function(e,n,t){t.d(n,{B:function(){return o.B3},T:function(){return a}});var r=t(30969),o=t(82972);function a(){return(0,r.useContext)(o.B3)}},80670:function(e,n,t){t.d(n,{DJ:function(){return a},Gy:function(){return o}});var r=t(30969),o=(0,r.createContext)({});o.Provider,o.Consumer;function a(){return(0,r.useContext)(o)}},19708:function(e,n,t){var r,o=t(71171),a=t(16380),i={success:"#3ab39d",error:"#D0021B"},c="10px",s=a.Z.div(r||(r=(0,o.Z)(["\n display: inline-block;\n width: ",";\n height: ",";\n background: ",";\n border-radius: 100%;\n"])),(function(e){return e.size||c}),(function(e){return e.size||c}),(function(e){return i[e.color]||e.color||i.success}));n.Z=s},15300:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(19611),o=t.n(r),a=t(41395),i=t(24891);function c(e){var n,t,r=e.blocklet,c=(0,a.h6)().inService,s=(null===(n=window.env)||void 0===n?void 0:n.apiPrefix)||"/",l="?v=".concat(null===r||void 0===r||null===(t=r.meta)||void 0===t?void 0:t.version).concat((0,i.wS)(null===r||void 0===r?void 0:r.status)?"~":"");return{logoUrl:o()(s,"/blocklet/logo/".concat(c?"":r.meta.did),l)}}},61472:function(e,n,t){t.d(n,{Z:function(){return u}});var r=t(33028),o=t(59740),a=t(24974),i=t.n(a),c=t(9715),s=t(37574),l=["children","style"];function u(e){var n=e.children,t=e.style,a=(0,o.Z)(e,l);return(0,s.jsx)(c.Z,(0,r.Z)((0,r.Z)({style:t},a),{},{children:n}))}u.propTypes={children:i().any.isRequired,style:i().object},u.defaultProps={style:{}}},54559:function(e,n,t){t.d(n,{hi:function(){return a},od:function(){return o.a}});var r=t(95803),o=t.n(r);o().defaults.timeout=1e4;var a=o().create()},30134:function(e,n,t){t.d(n,{EJ:function(){return w},Jf:function(){return y},LQ:function(){return f},Nb:function(){return v},Xv:function(){return d},ag:function(){return g},mo:function(){return h},nD:function(){return p},nU:function(){return b},w2:function(){return Z}});var r=t(32723),o=t(34795),a=t(92522),i=t.n(a),c=t(59505),s=t(50576),l=t(43430),u=t(54559);function d(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/"),r=t.at(-4),o=t.at(-2);return(0,l.xn)(n,"space",r,"apps",o,"explorer?key=/apps/".concat(o,"/.did-objects/").concat(o,"/"))}function p(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/").at(-4);return(0,l.xn)(n,"space",t)}function f(e){return e.replace(/\/$/,"").split("/").at(-4)}function v(e){return m.apply(this,arguments)}function m(){return(m=(0,o.Z)((0,r.Z)().mark((function e(n){var t,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i()(n)){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,u.hi.head(n,{timeout:5e3});case 5:return t=e.sent,o=t.headers,e.abrupt("return","true"===o["x-listable"]&&"true"===o["x-readable"]&&"true"===o["x-writeable"]);case 10:return e.prev=10,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function h(e){var n;return(null===e||void 0===e||null===(n=e.find((function(e){return e.key===c.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT})))||void 0===n?void 0:n.value)||""}function g(e){var n=new URL(e);return(0,l.xn)(n.origin,n.pathname)}function Z(e){return x.apply(this,arguments)}function x(){return(x=(0,o.Z)((0,r.Z)().mark((function e(n){var t,o,a,c,d;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i()(n)){e.next=3;break}return e.abrupt("return",!1);case 3:return t=g(n),o=(0,l.xn)(t,"space/api/did/one-click-authorization/token"),e.next=7,u.hi.get(o,{timeout:5e3});case 7:return a=e.sent,c=a.status,d=a.data,e.abrupt("return",200===c&&(0,s.isObject)(d));case 13:return e.prev=13,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",!1);case 17:case"end":return e.stop()}}),e,null,[[0,13]])})))).apply(this,arguments)}function b(e){return k.apply(this,arguments)}function k(){return(k=(0,o.Z)((0,r.Z)().mark((function e(n){var t,o,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i()(n)){e.next=3;break}return e.abrupt("return","");case 3:return e.next=5,u.hi.head(n,{timeout:3e3});case 5:return t=e.sent,o=t.headers,a=o["x-space-name"],e.abrupt("return",a?decodeURIComponent(a):"");case 11:return e.prev=11,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return","");case 15:case"end":return e.stop()}}),e,null,[[0,11]])})))).apply(this,arguments)}function y(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/").at(-4);return(0,l.xn)(n,"/api/space/nft/display?spaceDid=".concat(t))}var w=function(e){var n,t;return(null===e||void 0===e||null===(n=e.configs)||void 0===n||null===(t=n.find((function(e){return e.key===c.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT})))||void 0===t?void 0:t.value)||null}},85710:function(e,n,t){var r=t(73408).default,o=t(27609).default,a=t(91461).default,i=t(43681).default;Object.defineProperty(n,"Z",{enumerable:!0,get:function(){return x.default}});var c,s=t(20244),l=P(t(99237)),u=P(t(63784)),d=P(t(92522)),p=P(t(46292)),f=P(t(99985)),v=P(t(18930)),m=P(t(61301)),h=P(t(19611)),g=P(t(31419)),Z=P(t(19886)),x=P(t(39882)),b=P(t(6399)),k=t(67615),y=P(t(67626)),w=t(59505),C=P(t(88617));function P(e){return e&&e.__esModule?e:{default:e}}function E(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!e)return"";var r="http";"https:"===window.location.protocol&&((0,k.isIpEcho)(e)||(0,k.isSlpDomain)(e)||(0,k.isDidDomain)(e))&&(r="https");var o="",a=Number(window.location.port);a&&![80,443].includes(a)&&(o=":".concat(a));var i=new URL("".concat(r,"://").concat(e).concat(o));i.pathname=n;var c=i.href.replace(/\/$/,"");if(!t||!Object.keys(t))return c;var s=new URLSearchParams;return Object.keys(t).forEach((function(e){s.append(e,t[e])})),"".concat(c).concat("/"===i.pathname?"/":"","?").concat(s.toString())}var j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return"tw"===e?"zh":e};var D=function(e){return e.replace(/^\?/,"").split("&").map((function(e){return e.split("=")})).filter((function(e){return!!i(e,1)[0]})).reduce((function(e,n){var t=n[0],r=decodeURIComponent(n[1])||!0;return e[t]=r,e}),{})};var S=function(e,n){return n.startsWith("/assets")?n:"/assets/".concat(e,"/").concat(n)};var R=function(){var e=a(o().mark((function e(n){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,k.evaluateURLs)(n);case 3:return t=e.sent,e.abrupt("return",t[0].url);case 7:return e.prev=7,e.t0=e.catch(0),console.warn("get accessible url failed"),e.abrupt("return","");case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(n){return e.apply(this,arguments)}}();function B(e){for(var n=decodeURIComponent(e);n!==decodeURIComponent(n);)n=decodeURIComponent(n);return n}function _(){return(_=a(o().mark((function e(n,t){var r,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.default.post((0,h.default)(n,"/api/gql/"),JSON.stringify({query:'{\n getAssetState(address: "'.concat(t,'") {\n state {\n address\n data {\n typeUrl\n value\n }\n issuer\n owner\n parent\n }\n }\n }')}),{headers:{"Content-Type":"application/json",Accept:"application/json"},timeout:6e4});case 2:return r=e.sent,(a=(0,p.default)(r.data,"data.getAssetState.state"))&&"json"===a.data.typeUrl&&(a.data.value=JSON.parse(a.data.value)),e.abrupt("return",a);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}null===(c=window.env)||void 0===c||c.groupPathPrefix,s.ROLES.ADMIN,s.ROLES.OWNER;var L=function(e){return!!e&&(e.endsWith(s.DEFAULT_DID_DOMAIN)||e.endsWith(s.DEFAULT_IP_DOMAIN_SUFFIX)||e.endsWith(s.DEFAULT_SLP_DOMAIN))};var T=function(){var e=a(o().mark((function e(n){var t,r,a,i,c,s,l,u,d,p,f,v;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.launcherUrl,r=void 0===t?"":t,a=n.nftId,i=void 0===a?"":a,c=n.locale,s=void 0===c?"en":c,r){e.next=3;break}return e.abrupt("return","");case 3:return l=(0,h.default)(r,"/instances"),e.prev=4,e.next=7,g.default.get((0,h.default)(r,"__blocklet__.js?type=json"),{timeout:5e3});case 7:d=e.sent,p=d.data,f=null===(u=p.componentMountPoints)||void 0===u?void 0:u.find((function(e){return"z8iZy4P83i6AgnNdNUexsh2kBcsDHoqcwPavn"===e.did})),v=new URL(r),l=(0,h.default)(v.origin,null===f||void 0===f?void 0:f.mountPoint,"/nfts"),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),console.error(e.t0);case 17:return e.abrupt("return",(0,h.default)(l,"/".concat(i,"/subscription?locale=").concat(s,"&return-url=").concat(encodeURIComponent(window.location.href))));case 18:case"end":return e.stop()}}),e,null,[[4,14]])})));return function(n){return e.apply(this,arguments)}}()}}]);
2
+ //# sourceMappingURL=6186.1f08318c.chunk.js.map