@micro-lc/preview 0.5.0-rc4 → 0.5.0-rc5

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,7 @@
17
17
  </style>
18
18
  <script src="https://unpkg.com/zone.js"></script>
19
19
 
20
- <script type="module" crossorigin src="./index.js"></script>
20
+ <script type="module" crossorigin src="./assets/index-1fa72460.js"></script>
21
21
  </head>
22
22
  <body></body>
23
23
  </html>
@@ -8,13 +8,8 @@
8
8
  "dynamicImports": [
9
9
  "../../.yarn/__virtual__/@micro-lc-composer-virtual-1e9d239e46/0/cache/@micro-lc-composer-npm-2.0.3-7d85cea61f-88452090ec.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
10
10
  ],
11
- "file": "index.js",
11
+ "file": "assets/index-1fa72460.js",
12
12
  "isEntry": true,
13
13
  "src": "index.html"
14
- },
15
- "service-worker.ts": {
16
- "file": "service-worker.js",
17
- "isEntry": true,
18
- "src": "service-worker.ts"
19
14
  }
20
15
  }
@@ -1 +1,3 @@
1
- const k=new Map,S=new Map,w=new Map,y=(e,r)=>{const t=r.keys();let i,{done:s=!1,value:a}=t.next();for(;!s&&i===void 0;){a!==void 0&&e.startsWith(a)&&(i=a,s=!0);const{value:d,done:n=!1}=t.next();s=n,a=d}return i},v=(e,r)=>{self.clients.get(e).then(t=>t==null?void 0:t.postMessage(r)).catch(t=>console.error(`[SW]: error on ${e} - ${String(t)}`))},x=e=>e!==null&&"id"in e;self.addEventListener("install",()=>{self.skipWaiting().catch(e=>console.error(`[SW] error while skipWaiting - ${String(e)}`))});self.addEventListener("activate",e=>{e.waitUntil(self.clients.claim())});self.addEventListener("message",({data:e,source:r})=>{if(!x(r))return;const{id:t}=r,i=e;switch(i.type){case"set-source-map":{const{content:{scope:s,dictionary:a}}=i,d=s??t,n=Object.entries(a).reduce((u,[l,c])=>{const{clientSourceMap:g,clientTosMap:p}=u;return Object.keys(c.headers).length>0&&p.set(c.to,c.headers),g.set(l,c),u},{clientSourceMap:new Map,clientTosMap:new Map});s?w.set(t,s):w.delete(t),k.set(d,n.clientSourceMap),S.set(d,n.clientTosMap),v(t,{content:{clientId:t},type:"source-map-ack"});break}case"unload-client":{w.delete(t);break}}});self.addEventListener("fetch",e=>{var r,t,i;const s=e.clientId!==""?e.clientId:e.resultingClientId,a=w.get(s),d=a??s,n=k.get(d);if(!n)return e.respondWith(self.fetch(e.request));const u=S.get(d);let{request:{url:l}}=e;const c=y(l,n),g=y(l,u),p=new Headers(e.request.headers);let b={};if(c!==void 0){const o=(r=n.get(c))==null?void 0:r.to,h=(t=n.get(c))==null?void 0:t.headers,f=l.substring(c.length);b=(i=n.get(c))==null?void 0:i.query,l=`${o}${f}`,Object.entries(h).forEach(([I,W])=>p.set(I,W))}if(g!==void 0){const o=u.get(g);Object.entries(o).forEach(([h,f])=>p.set(h,f))}let M;try{const o=new URL(l);Object.entries(b).forEach(([h,f])=>o.searchParams.set(h,f)),M=o.href}catch{M=l}console.log({clientId:s,clientSourceMap:n,finalUrl:M}),e.respondWith(self.fetch(M,{...e.request,headers:p}).catch(o=>(console.error(o),Promise.reject(o))))});
1
+ "use strict";(()=>{var Z=function(r,t){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])},Z(r,t)};function v(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Z(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function dr(r,t,e,o){function n(i){return i instanceof e?i:new e(function(s){s(i)})}return new(e||(e=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(h){s(h)}}function f(u){try{c(o.throw(u))}catch(h){s(h)}}function c(u){u.done?i(u.value):n(u.value).then(a,f)}c((o=o.apply(r,t||[])).next())})}function N(r,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return f([c,u])}}function f(c){if(o)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(e=0)),e;)try{if(o=1,n&&(i=c[0]&2?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,n=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){e.label=c[1];break}if(c[0]===6&&e.label<i[1]){e.label=i[1],i=c;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(c);break}i[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(r,e)}catch(u){c=[6,u],n=0}finally{o=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function E(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],o=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function x(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var o=e.call(r),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(s)throw s.error}}return i}function _(r,t,e){if(e||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return r.concat(i||Array.prototype.slice.call(t))}function I(r){return this instanceof I?(this.v=r,this):new I(r)}function hr(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=e.apply(r,t||[]),n,i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(l){o[l]&&(n[l]=function(m){return new Promise(function(y,d){i.push([l,m,y,d])>1||a(l,m)})})}function a(l,m){try{f(o[l](m))}catch(y){h(i[0][3],y)}}function f(l){l.value instanceof I?Promise.resolve(l.value.v).then(c,u):h(i[0][2],l)}function c(l){a("next",l)}function u(l){a("throw",l)}function h(l,m){l(m),i.shift(),i.length&&a(i[0][0],i[0][1])}}function vr(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof E=="function"?E(r):r[Symbol.iterator](),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(i){e[i]=r[i]&&function(s){return new Promise(function(a,f){s=r[i](s),n(a,f,s.done,s.value)})}}function n(i,s,a,f){Promise.resolve(f).then(function(c){i({value:c,done:a})},s)}}function p(r){return typeof r=="function"}function j(r){var t=function(o){Error.call(o),o.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var z=j(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
2
+ `+e.map(function(o,n){return n+1+") "+o.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function P(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var g=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,o,n,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=E(s),f=a.next();!f.done;f=a.next()){var c=f.value;c.remove(this)}}catch(d){t={error:d}}finally{try{f&&!f.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(p(u))try{u()}catch(d){i=d instanceof z?d.errors:[d]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var l=E(h),m=l.next();!m.done;m=l.next()){var y=m.value;try{br(y)}catch(d){i=i??[],d instanceof z?i=_(_([],x(i)),x(d.errors)):i.push(d)}}}catch(d){o={error:d}}finally{try{m&&!m.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}}if(i)throw new z(i)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)br(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&P(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&P(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}();var rr=g.EMPTY;function G(r){return r instanceof g||r&&"closed"in r&&p(r.remove)&&p(r.add)&&p(r.unsubscribe)}function br(r){p(r)?r():r.unsubscribe()}var w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var C={setTimeout:function(r,t){for(var e=[],o=2;o<arguments.length;o++)e[o-2]=arguments[o];var n=C.delegate;return n?.setTimeout?n.setTimeout.apply(n,_([r,t],x(e))):setTimeout.apply(void 0,_([r,t],x(e)))},clearTimeout:function(r){var t=C.delegate;return(t?.clearTimeout||clearTimeout)(r)},delegate:void 0};function K(r){C.setTimeout(function(){var t=w.onUnhandledError;if(t)t(r);else throw r})}function er(){}var yr=function(){return tr("C",void 0,void 0)}();function xr(r){return tr("E",void 0,r)}function _r(r){return tr("N",r,void 0)}function tr(r,t,e){return{kind:r,value:t,error:e}}var A=null;function k(r){if(w.useDeprecatedSynchronousErrorHandling){var t=!A;if(t&&(A={errorThrown:!1,error:null}),r(),t){var e=A,o=e.errorThrown,n=e.error;if(A=null,o)throw n}}else r()}function gr(r){w.useDeprecatedSynchronousErrorHandling&&A&&(A.errorThrown=!0,A.error=r)}var $=function(r){v(t,r);function t(e){var o=r.call(this)||this;return o.isStopped=!1,e?(o.destination=e,G(e)&&e.add(o)):o.destination=ne,o}return t.create=function(e,o,n){return new R(e,o,n)},t.prototype.next=function(e){this.isStopped?nr(_r(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?nr(xr(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?nr(yr,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(g);var ee=Function.prototype.bind;function or(r,t){return ee.call(r,t)}var te=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(o){J(o)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(o){J(o)}else J(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){J(e)}},r}(),R=function(r){v(t,r);function t(e,o,n){var i=r.call(this)||this,s;if(p(e)||!e)s={next:e??void 0,error:o??void 0,complete:n??void 0};else{var a;i&&w.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return i.unsubscribe()},s={next:e.next&&or(e.next,a),error:e.error&&or(e.error,a),complete:e.complete&&or(e.complete,a)}):s=e}return i.destination=new te(s),i}return t}($);function J(r){w.useDeprecatedSynchronousErrorHandling?gr(r):K(r)}function oe(r){throw r}function nr(r,t){var e=w.onStoppedNotification;e&&C.setTimeout(function(){return e(r,t)})}var ne={closed:!0,next:er,error:oe,complete:er};var W=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function wr(r){return r}function Sr(r){return r.length===0?wr:r.length===1?r[0]:function(e){return r.reduce(function(o,n){return n(o)},e)}}var b=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,o){var n=this,i=se(t)?t:new R(t,e,o);return k(function(){var s=n,a=s.operator,f=s.source;i.add(a?a.call(i,f):f?n._subscribe(i):n._trySubscribe(i))}),i},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var o=this;return e=Er(e),new e(function(n,i){var s=new R({next:function(a){try{t(a)}catch(f){i(f),s.unsubscribe()}},error:i,complete:n});o.subscribe(s)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[W]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Sr(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Er(t),new t(function(o,n){var i;e.subscribe(function(s){return i=s},function(s){return n(s)},function(){return o(i)})})},r.create=function(t){return new r(t)},r}();function Er(r){var t;return(t=r??w.Promise)!==null&&t!==void 0?t:Promise}function ie(r){return r&&p(r.next)&&p(r.error)&&p(r.complete)}function se(r){return r&&r instanceof $||ie(r)&&G(r)}function ae(r){return p(r?.lift)}function M(r){return function(t){if(ae(t))return t.lift(function(e){try{return r(e,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function O(r,t,e,o,n){return new ce(r,t,e,o,n)}var ce=function(r){v(t,r);function t(e,o,n,i,s,a){var f=r.call(this,e)||this;return f.onFinalize=s,f.shouldUnsubscribe=a,f._next=o?function(c){try{o(c)}catch(u){e.error(u)}}:r.prototype._next,f._error=i?function(c){try{i(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:r.prototype._error,f._complete=n?function(){try{n()}catch(c){e.error(c)}finally{this.unsubscribe()}}:r.prototype._complete,f}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;r.prototype.unsubscribe.call(this),!o&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}($);var Or=j(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var ir=function(r){v(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var o=new Tr(this,this);return o.operator=e,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new Or},t.prototype.next=function(e){var o=this;k(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var s=E(o.currentObservers),a=s.next();!a.done;a=s.next()){var f=a.value;f.next(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var o=this;k(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=e;for(var n=o.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;k(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var o=e.observers;o.length;)o.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var o=this,n=this,i=n.hasError,s=n.isStopped,a=n.observers;return i||s?rr:(this.currentObservers=null,a.push(e),new g(function(){o.currentObservers=null,P(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var o=this,n=o.hasError,i=o.thrownError,s=o.isStopped;n?e.error(i):s&&e.complete()},t.prototype.asObservable=function(){var e=new b;return e.source=this,e},t.create=function(e,o){return new Tr(e,o)},t}(b);var Tr=function(r){v(t,r);function t(e,o){var n=r.call(this)||this;return n.destination=e,n.source=o,n}return t.prototype.next=function(e){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,e)},t.prototype.error=function(e){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,e)},t.prototype.complete=function(){var e,o;(o=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||o===void 0||o.call(e)},t.prototype._subscribe=function(e){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(e))!==null&&n!==void 0?n:rr},t}(ir);var q={now:function(){return(q.delegate||Date).now()},delegate:void 0};var F=function(r){v(t,r);function t(e,o,n){e===void 0&&(e=1/0),o===void 0&&(o=1/0),n===void 0&&(n=q);var i=r.call(this)||this;return i._bufferSize=e,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,o),i}return t.prototype.next=function(e){var o=this,n=o.isStopped,i=o._buffer,s=o._infiniteTimeWindow,a=o._timestampProvider,f=o._windowTime;n||(i.push(e),!s&&i.push(a.now()+f)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(e),n=this,i=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),f=0;f<a.length&&!e.closed;f+=i?1:2)e.next(a[f]);return this._checkFinalizedStatuses(e),o},t.prototype._trimBuffer=function(){var e=this,o=e._bufferSize,n=e._timestampProvider,i=e._buffer,s=e._infiniteTimeWindow,a=(s?1:2)*o;if(o<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var f=n.now(),c=0,u=1;u<i.length&&i[u]<=f;u+=2)c=u;c&&i.splice(0,c+1)}},t}(ir);var Mr=function(r){v(t,r);function t(e,o){return r.call(this)||this}return t.prototype.schedule=function(e,o){return o===void 0&&(o=0),this},t}(g);var V={setInterval:function(r,t){for(var e=[],o=2;o<arguments.length;o++)e[o-2]=arguments[o];var n=V.delegate;return n?.setInterval?n.setInterval.apply(n,_([r,t],x(e))):setInterval.apply(void 0,_([r,t],x(e)))},clearInterval:function(r){var t=V.delegate;return(t?.clearInterval||clearInterval)(r)},delegate:void 0};var Ir=function(r){v(t,r);function t(e,o){var n=r.call(this,e,o)||this;return n.scheduler=e,n.work=o,n.pending=!1,n}return t.prototype.schedule=function(e,o){var n;if(o===void 0&&(o=0),this.closed)return this;this.state=e;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,o)),this.pending=!0,this.delay=o,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(s,this.id,o),this},t.prototype.requestAsyncId=function(e,o,n){return n===void 0&&(n=0),V.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,o,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return o;o!=null&&V.clearInterval(o)},t.prototype.execute=function(e,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,o);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,o){var n=!1,i;try{this.work(e)}catch(s){n=!0,i=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var e=this,o=e.id,n=e.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,P(i,this),o!=null&&(this.id=this.recycleAsyncId(n,o,null)),this.delay=null,r.prototype.unsubscribe.call(this)}},t}(Mr);var sr=function(){function r(t,e){e===void 0&&(e=r.now),this.schedulerActionCtor=t,this.now=e}return r.prototype.schedule=function(t,e,o){return e===void 0&&(e=0),new this.schedulerActionCtor(this,t).schedule(o,e)},r.now=q.now,r}();var Pr=function(r){v(t,r);function t(e,o){o===void 0&&(o=sr.now);var n=r.call(this,e,o)||this;return n.actions=[],n._active=!1,n}return t.prototype.flush=function(e){var o=this.actions;if(this._active){o.push(e);return}var n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=o.shift());if(this._active=!1,n){for(;e=o.shift();)e.unsubscribe();throw n}},t}(sr);var ar=new Pr(Ir),Ar=ar;var jr=new b(function(r){return r.complete()});function Cr(r){return r&&p(r.schedule)}var Q=function(r){return r&&typeof r.length=="number"&&typeof r!="function"};function kr(r){return p(r?.then)}function Rr(r){return p(r[W])}function Wr(r){return Symbol.asyncIterator&&p(r?.[Symbol.asyncIterator])}function Fr(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function fe(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ur=fe();function Lr(r){return p(r?.[Ur])}function Dr(r){return hr(this,arguments,function(){var e,o,n,i;return N(this,function(s){switch(s.label){case 0:e=r.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,I(e.read())];case 3:return o=s.sent(),n=o.value,i=o.done,i?[4,I(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,I(n)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function $r(r){return p(r?.getReader)}function U(r){if(r instanceof b)return r;if(r!=null){if(Rr(r))return ue(r);if(Q(r))return pe(r);if(kr(r))return le(r);if(Wr(r))return qr(r);if(Lr(r))return me(r);if($r(r))return de(r)}throw Fr(r)}function ue(r){return new b(function(t){var e=r[W]();if(p(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function pe(r){return new b(function(t){for(var e=0;e<r.length&&!t.closed;e++)t.next(r[e]);t.complete()})}function le(r){return new b(function(t){r.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,K)})}function me(r){return new b(function(t){var e,o;try{for(var n=E(r),i=n.next();!i.done;i=n.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(a){e={error:a}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(e)throw e.error}}t.complete()})}function qr(r){return new b(function(t){he(r,t).catch(function(e){return t.error(e)})})}function de(r){return qr(Dr(r))}function he(r,t){var e,o,n,i;return dr(this,void 0,void 0,function(){var s,a;return N(this,function(f){switch(f.label){case 0:f.trys.push([0,5,6,11]),e=vr(r),f.label=1;case 1:return[4,e.next()];case 2:if(o=f.sent(),!!o.done)return[3,4];if(s=o.value,t.next(s),t.closed)return[2];f.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=f.sent(),n={error:a},[3,11];case 6:return f.trys.push([6,,9,10]),o&&!o.done&&(i=e.return)?[4,i.call(e)]:[3,8];case 7:f.sent(),f.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Vr(r,t,e,o,n){o===void 0&&(o=0),n===void 0&&(n=!1);var i=t.schedule(function(){e(),n?r.add(this.schedule(null,o)):this.unsubscribe()},o);if(r.add(i),!n)return i}var Hr=j(function(r){return function(){r(this),this.name="EmptyError",this.message="no elements in sequence"}});function cr(r,t){var e=typeof t=="object";return new Promise(function(o,n){var i=new R({next:function(s){o(s),i.unsubscribe()},error:n,complete:function(){e?o(t.defaultValue):n(new Hr)}});r.subscribe(i)})}function Yr(r){return r instanceof Date&&!isNaN(r)}function T(r,t){return M(function(e,o){var n=0;e.subscribe(O(o,function(i){o.next(r.call(t,i,n++))}))})}var ve=Array.isArray;function be(r,t){return ve(t)?r.apply(void 0,_([],x(t))):r(t)}function Br(r){return T(function(t){return be(r,t)})}function Nr(r,t,e,o,n,i,s,a){var f=[],c=0,u=0,h=!1,l=function(){h&&!f.length&&!c&&t.complete()},m=function(d){return c<o?y(d):f.push(d)},y=function(d){i&&t.next(d),c++;var Y=!1;U(e(d,u++)).subscribe(O(t,function(D){n?.(D),i?m(D):t.next(D)},function(){Y=!0},void 0,function(){if(Y)try{c--;for(var D=function(){var B=f.shift();s?Vr(t,s,function(){return y(B)}):y(B)};f.length&&c<o;)D();l()}catch(B){t.error(B)}}))};return r.subscribe(O(t,m,function(){h=!0,l()})),function(){a?.()}}function fr(r,t,e){return e===void 0&&(e=1/0),p(t)?fr(function(o,n){return T(function(i,s){return t(o,i,n,s)})(U(r(o,n)))},e):(typeof t=="number"&&(e=t),M(function(o,n){return Nr(o,n,r,e)}))}var ye=["addListener","removeListener"],xe=["addEventListener","removeEventListener"],_e=["on","off"];function H(r,t,e,o){if(p(e)&&(o=e,e=void 0),o)return H(r,t,e).pipe(Br(o));var n=x(Se(r)?xe.map(function(a){return function(f){return r[a](t,f,e)}}):ge(r)?ye.map(zr(r,t)):we(r)?_e.map(zr(r,t)):[],2),i=n[0],s=n[1];if(!i&&Q(r))return fr(function(a){return H(a,t,e)})(U(r));if(!i)throw new TypeError("Invalid event target");return new b(function(a){var f=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return a.next(1<c.length?c:c[0])};return i(f),function(){return s(f)}})}function zr(r,t){return function(e){return function(o){return r[e](t,o)}}}function ge(r){return p(r.addListener)&&p(r.removeListener)}function we(r){return p(r.on)&&p(r.off)}function Se(r){return p(r.addEventListener)&&p(r.removeEventListener)}function Gr(r,t,e){r===void 0&&(r=0),e===void 0&&(e=Ar);var o=-1;return t!=null&&(Cr(t)?e=t:o=t),new b(function(n){var i=Yr(r)?+r-e.now():r;i<0&&(i=0);var s=0;return e.schedule(function(){n.closed||(n.next(s++),0<=o?this.schedule(void 0,o):n.complete())},i)})}function ur(r,t){return r===void 0&&(r=0),t===void 0&&(t=ar),r<0&&(r=0),Gr(r,r,t)}function S(r,t){return M(function(e,o){var n=0;e.subscribe(O(o,function(i){return r.call(t,i,n++)&&o.next(i)}))})}function L(r){return r<=0?function(){return jr}:M(function(t,e){var o=0;t.subscribe(O(e,function(n){++o<=r&&(e.next(n),r<=o&&e.complete())}))})}var Kr=(r,t)=>e=>({postMessage:o=>{let{errorCatcher:n=()=>()=>{},...i}=t??{};r.clients.get(e).then(s=>s?.postMessage(o,i)).catch(n(e,o))}});var Jr=(r=>(r.Ack="ack",r.Syn="syn",r))(Jr||{}),Ee=Object.values(Jr),pr=r=>r.data,lr=r=>t=>t.type===r.toString(),Oe=r=>{let t=r.data;return typeof t=="object"&&t!==null&&"type"in t&&typeof t.type=="string"&&"instance"in t&&typeof t.instance=="string"&&"content"in t},Te=()=>{let r="#";for(let t=0;t<3;t++)r+=`0${Math.floor(Math.random()*Math.pow(16,2)/2).toString(16)}`.slice(-2);return r},Me=class{__generateId;__instance;__colors;__listener;__log;__receiver;__subscription;__okToWrite;__write$;__recv$;__connect(r,t){let e=ur(t).subscribe(()=>this.__receiver.postMessage({content:r,instance:r,type:"syn".toString()}));this.__subscription.add(e),this.__subscription.add(this.__recv$.pipe(T(pr),S(lr("ack")),S(({content:o})=>o===r),L(1)).subscribe(({instance:o})=>{this.__okToWrite.next(0),this.__subscription.add(this.__recv$.pipe(S(({data:{type:n,instance:i}})=>!Ee.includes(n)&&i===o)).subscribe(n=>{this.__listener(n);let{data:i}=n;i._id!==void 0&&this.__receiver.postMessage({...i,content:i,instance:r,type:"ack"})})),e.unsubscribe()})),this.__subscription.add(this.__recv$.pipe(T(pr),S(lr("syn")),S(({instance:o})=>o!==r),L(1)).subscribe(({content:o})=>{this.__receiver.postMessage({content:o,instance:r,type:"ack"})}))}__write(r,t){let e={};t!==void 0&&(e._id=t),this.__subscription.add(this.__write$.subscribe(()=>{let o=Object.assign(r,{instance:this.__instance,...e});this.__receiver.postMessage(o),this.__log?.(o)}))}constructor(r,t,e,o){this.__generateId=()=>globalThis.crypto.randomUUID();let n=this.__generateId(),i=new F,s=H(t,"message").pipe(S(Oe)).subscribe(i);this.__subscription=new g,this.__subscription.add(s),this.__okToWrite=new F(1),this.__write$=this.__okToWrite.pipe(L(1)),this.__recv$=i.asObservable(),this.__listener=r,this.__log=o?.log&&o.log.bind(this),this.__instance=n;let a=Te();this.__colors={bg:a,fg:`${a}22`},this.__receiver=e,this.__connect(n,o?.period?o.period:10)}disconnect(){this.__subscription.unsubscribe()}send(r){this.__write(r)}ackSend(r){let t,e=new Promise(n=>{t=n}),o=this.__generateId();return this.__subscription.add(this.__recv$.pipe(T(pr),S(lr("ack")),S(({_id:n})=>n===o),L(1)).subscribe(()=>t())),this.__write(r,o),e}get instance(){return this.__instance}get colors(){return this.__colors}get ready(){return cr(this.__write$).then(()=>{})}},Qr=Me;var mr=new Map,X=new Map,Zr=new Map,re=new Map,Xr=(r,t)=>{let e=t.keys(),o,{done:n=!1,value:i}=e.next();for(;!n&&o===void 0;){i!==void 0&&r.startsWith(i)&&(o=i,n=!0);let{value:s,done:a=!1}=e.next();n=a,i=s}return o},Ie=r=>r!==null&&"id"in r,Pe=r=>t=>console.error(`[SW]: error on ${r} - ${String(t)}`),Ae=Kr(self,{errorCatcher:Pe}),je=r=>function({data:e}){let o=e;switch(o.type){case"set-source-map":{let{content:{scope:n,dictionary:i}}=o,s=n??r,a=Object.entries(i).reduce((f,[c,u])=>{let{clientSourceMap:h,clientTosMap:l}=f;return Object.keys(u.headers).length>0&&l.set(encodeURI(u.to),u.headers),h.set(encodeURI(c),u),f},{clientSourceMap:new Map,clientTosMap:new Map});n?X.set(r,n):X.delete(r),Zr.set(s,a.clientSourceMap),re.set(s,a.clientTosMap);break}case"unload-client":{X.delete(r),mr.delete(r),this.disconnect();break}default:break}},Ce=r=>{let t=new Map,e=new F,o={addEventListener(n,i){t.set(i,e.subscribe(s=>i(s)))},removeEventListener(n,i){t.get(i)?.unsubscribe(),t.delete(i)}};return{buffer:e,channel:new Qr(je(r),o,Ae(r))}},ke=r=>{let t=mr.get(r);return t||(t=Ce(r),mr.set(r,t)),t};self.addEventListener("install",()=>{self.skipWaiting().catch(r=>console.error(`[SW] error while skipWaiting - ${String(r)}`))});self.addEventListener("activate",r=>{r.waitUntil(self.clients.claim())});self.addEventListener("message",r=>{let{source:t}=r;if(!Ie(t))return;let{id:e}=t;ke(e).buffer.next(r)});self.addEventListener("fetch",r=>{let t=r.clientId!==""?r.clientId:r.resultingClientId,o=X.get(t)??t,n=Zr.get(o);if(!n)return r.respondWith(self.fetch(r.request));let i=re.get(o),{request:{url:s}}=r,a=Xr(s,n),f=Xr(s,i),c=new Headers(r.request.headers),u={};if(a!==void 0){let l=n.get(a)?.to,m=n.get(a)?.headers,y=s.substring(a.length);u=n.get(a)?.query,s=`${l}${y}`,Object.entries(m).forEach(([d,Y])=>c.set(d,Y))}if(f!==void 0){let l=i.get(f);Object.entries(l).forEach(([m,y])=>c.set(m,y))}let h;try{let l=new URL(s);Object.entries(u).forEach(([m,y])=>l.searchParams.set(m,y)),h=l.href}catch{h=s}console.log({clientId:t,clientSourceMap:n,finalUrl:h}),r.respondWith(self.fetch(h,{...r.request,headers:c}).catch(l=>(console.error(l),Promise.reject(l))))});})();
@@ -1,28 +0,0 @@
1
- interface UrlMatchPair {
2
- headers: Record<string, string>;
3
- originalFrom: `${string}/`;
4
- query: Record<string, string>;
5
- to: `${string}/`;
6
- }
7
- interface SourceMapItems {
8
- dictionary: Record<`${string}/`, UrlMatchPair>;
9
- scope?: string;
10
- }
11
- type WorkerMessage = {
12
- content: SourceMapItems;
13
- type: 'set-source-map';
14
- } | {
15
- content: {
16
- clientId: string;
17
- };
18
- type: 'source-map-ack';
19
- } | {
20
- content: {
21
- status: 'ready';
22
- };
23
- type: 'service-worker';
24
- } | {
25
- content: Record<string, never>;
26
- type: 'unload-client';
27
- };
28
- export type { SourceMapItems, UrlMatchPair, WorkerMessage, };
@@ -1 +0,0 @@
1
- export {};
package/website/index.js DELETED
@@ -1,13 +0,0 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var no=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){const t=typeof window<"u",e=typeof document<"u",n=()=>{},r=e?document.querySelector("script[type=esms-options]"):void 0,o=r?JSON.parse(r.innerHTML):{};Object.assign(o,self.esmsInitOptions||{});let s=e?!!o.shimMode:!0;const c=N(s&&o.onimport),h=N(s&&o.resolve);let f=o.fetch?N(o.fetch):fetch;const d=o.meta?N(s&&o.meta):n,g=o.mapOverrides;let w=o.nonce;if(!w&&e){const l=document.querySelector("script[nonce]");l&&(w=l.nonce||l.getAttribute("nonce"))}const S=N(o.onerror||n),I=o.onpolyfill?N(o.onpolyfill):()=>{console.log("%c^^ Module TypeError above is polyfilled and can be ignored ^^","font-weight:900;color:#391")},{revokeBlobURLs:R,noLoadEventRetriggers:C,enforceIntegrity:V}=o;function N(l){return typeof l=="string"?self[l]:l}const j=Array.isArray(o.polyfillEnable)?o.polyfillEnable:[],F=j.includes("css-modules"),q=j.includes("json-modules"),ft=!navigator.userAgentData&&!!navigator.userAgent.match(/Edge\/\d+\.\d+/),ie=e?document.baseURI:`${location.protocol}//${location.host}${location.pathname.includes("/")?location.pathname.slice(0,location.pathname.lastIndexOf("/")+1):location.pathname}`,Q=(l,p="text/javascript")=>URL.createObjectURL(new Blob([l],{type:p}));let{skip:ve}=o;if(Array.isArray(ve)){const l=ve.map(p=>new URL(p,ie).href);ve=p=>l.some(b=>b[b.length-1]==="/"&&p.startsWith(b)||p===b)}else if(typeof ve=="string"){const l=new RegExp(ve);ve=p=>l.test(p)}const vi=l=>setTimeout(()=>{throw l}),Lt=l=>{(self.reportError||t&&window.safari&&console.error||vi)(l),S(l)};function De(l){return l?` imported from ${l}`:""}let ht=!1;function bi(){ht=!0}if(!s)if(document.querySelectorAll("script[type=module-shim],script[type=importmap-shim],link[rel=modulepreload-shim]").length)s=!0;else{let l=!1;for(const p of document.querySelectorAll("script[type=module],script[type=importmap]"))if(!l)p.type==="module"&&!p.ep&&(l=!0);else if(p.type==="importmap"&&l){ht=!0;break}}const yi=/\\/g;function Tt(l){if(l.indexOf(":")===-1)return!1;try{return new URL(l),!0}catch{return!1}}function An(l,p){return ke(l,p)||(Tt(l)?l:ke("./"+l,p))}function ke(l,p){const b=p.indexOf("#"),A=p.indexOf("?");if(b+A>-2&&(p=p.slice(0,b===-1?A:A===-1||A>b?b:A)),l.indexOf("\\")!==-1&&(l=l.replace(yi,"/")),l[0]==="/"&&l[1]==="/")return p.slice(0,p.indexOf(":")+1)+l;if(l[0]==="."&&(l[1]==="/"||l[1]==="."&&(l[2]==="/"||l.length===2&&(l+="/"))||l.length===1&&(l+="/"))||l[0]==="/"){const k=p.slice(0,p.indexOf(":")+1);let $;if(p[k.length+1]==="/"?k!=="file:"?($=p.slice(k.length+2),$=$.slice($.indexOf("/")+1)):$=p.slice(8):$=p.slice(k.length+(p[k.length]==="/")),l[0]==="/")return p.slice(0,p.length-$.length-1)+l;const E=$.slice(0,$.lastIndexOf("/")+1)+l,O=[];let T=-1;for(let x=0;x<E.length;x++){if(T!==-1){E[x]==="/"&&(O.push(E.slice(T,x+1)),T=-1);continue}else if(E[x]==="."){if(E[x+1]==="."&&(E[x+2]==="/"||x+2===E.length)){O.pop(),x+=2;continue}else if(E[x+1]==="/"||x+1===E.length){x+=1;continue}}for(;E[x]==="/";)x++;T=x}return T!==-1&&O.push(E.slice(T)),p.slice(0,p.length-$.length)+O.join("")}}function Sn(l,p,b){const A={imports:Object.assign({},b.imports),scopes:Object.assign({},b.scopes)};if(l.imports&&xn(l.imports,A.imports,p,b),l.scopes)for(let k in l.scopes){const $=An(k,p);xn(l.scopes[k],A.scopes[$]||(A.scopes[$]={}),p,b)}return A}function Pt(l,p){if(p[l])return l;let b=l.length;do{const A=l.slice(0,b+1);if(A in p)return A}while((b=l.lastIndexOf("/",b-1))!==-1)}function En(l,p){const b=Pt(l,p);if(b){const A=p[b];return A===null?void 0:A+l.slice(b.length)}}function Rt(l,p,b){let A=b&&Pt(b,l.scopes);for(;A;){const k=En(p,l.scopes[A]);if(k)return k;A=Pt(A.slice(0,A.lastIndexOf("/")),l.scopes)}return En(p,l.imports)||p.indexOf(":")!==-1&&p}function xn(l,p,b,A){for(let k in l){const $=ke(k,b)||k;if((!s||!g)&&p[$]&&p[$]!==l[$])throw Error(`Rejected map override "${$}" from ${p[$]} to ${l[$]}.`);let E=l[k];if(typeof E!="string")continue;const O=Rt(A,ke(E,b)||E,b);if(O){p[$]=O;continue}console.warn(`Mapping "${k}" -> "${l[k]}" does not resolve`)}}let he=!e&&(0,eval)("u=>import(u)"),Ve;const _i=e&&new Promise(l=>{const p=Object.assign(document.createElement("script"),{src:Q("self._d=u=>import(u)"),ep:!0});p.setAttribute("nonce",w),p.addEventListener("load",()=>{if(!(Ve=!!(he=self._d))){let b;window.addEventListener("error",A=>b=A),he=(A,k)=>new Promise(($,E)=>{const O=Object.assign(document.createElement("script"),{type:"module",src:Q(`import*as m from'${A}';self._esmsi=m`)});b=void 0,O.ep=!0,w&&O.setAttribute("nonce",w),O.addEventListener("error",T),O.addEventListener("load",T);function T(x){document.head.removeChild(O),self._esmsi?($(self._esmsi,ie),self._esmsi=void 0):(E(!(x instanceof Event)&&x||b&&b.error||new Error(`Error loading ${k&&k.errUrl||A} (${O.src}).`)),b=void 0)}document.head.appendChild(O)})}document.head.removeChild(p),delete self._d,l()}),document.head.appendChild(p)});let dt=!1,pt=!1;const jt=e&&HTMLScriptElement.supports;let Te=jt&&jt.name==="supports"&&jt("importmap"),mt=Ve;const On="import.meta",In='import"x"assert{type:"css"}',wi='import"x"assert{type:"json"}';let gi=Promise.resolve(_i).then(()=>{if(Ve)return e?new Promise(l=>{const p=document.createElement("iframe");p.style.display="none",p.setAttribute("nonce",w);function b({data:O}){Array.isArray(O)&&O[0]==="esms"&&(Te=O[1],mt=O[2],pt=O[3],dt=O[4],l(),document.head.removeChild(p),window.removeEventListener("message",b,!1))}window.addEventListener("message",b,!1);const A=`<script nonce=${w||""}>b=(s,type='text/javascript')=>URL.createObjectURL(new Blob([s],{type}));document.head.appendChild(Object.assign(document.createElement('script'),{type:'importmap',nonce:"${w}",innerText:\`{"imports":{"x":"\${b('')}"}}\`}));Promise.all([${Te?"true,true":`'x',b('${On}')`}, ${F?`b('${In}'.replace('x',b('','text/css')))`:"false"}, ${q?`b('${wi}'.replace('x',b('{}','text/json')))`:"false"}].map(x =>typeof x==='string'?import(x).then(x =>!!x,()=>false):x)).then(a=>parent.postMessage(['esms'].concat(a),'*'))<\/script>`;let k=!1,$=!1;function E(){if(!k){$=!0;return}const O=p.contentDocument;if(O&&O.head.childNodes.length===0){const T=O.createElement("script");w&&T.setAttribute("nonce",w),T.innerHTML=A.slice(15+(w?w.length:0),-9),O.head.appendChild(T)}}p.onload=E,document.head.appendChild(p),k=!0,"srcdoc"in p?p.srcdoc=A:p.contentDocument.write(A),$&&E()}):Promise.all([Te||he(Q(On)).then(()=>mt=!0,n),F&&he(Q(In.replace("x",Q("","text/css")))).then(()=>pt=!0,n),q&&he(Q(jsonModulescheck.replace("x",Q("{}","text/json")))).then(()=>dt=!0,n)])}),B,vt,Mt,qe=2<<19;const Cn=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(l,p){const b=l.length;let A=0;for(;A<b;)p[A]=l.charCodeAt(A++)}:function(l,p){const b=l.length;let A=0;for(;A<b;){const k=l.charCodeAt(A);p[A++]=(255&k)<<8|k>>>8}},ki="xportmportlassetaromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileforifcatcfinallels";let W,Ln,M;function $i(l,p="@"){W=l,Ln=p;const b=2*W.length+(2<<18);if(b>qe||!B){for(;b>qe;)qe*=2;vt=new ArrayBuffer(qe),Cn(ki,new Uint16Array(vt,16,105)),B=function(E,O,T){var x=new E.Int8Array(T),_=new E.Int16Array(T),a=new E.Int32Array(T),ne=new E.Uint8Array(T),de=new E.Uint16Array(T),te=1024;function Y(){var i=0,u=0,m=0,y=0,v=0,L=0,ye=0;ye=te,te=te+10240|0,x[795]=1,_[395]=0,_[396]=0,a[67]=a[2],x[796]=0,a[66]=0,x[794]=0,a[68]=ye+2048,a[69]=ye,x[797]=0,i=(a[3]|0)+-2|0,a[70]=i,u=i+(a[64]<<1)|0,a[71]=u;e:for(;;){if(m=i+2|0,a[70]=m,i>>>0>=u>>>0){v=18;break}n:do switch(_[m>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(_[396]|0)&&Ze(m)|0&&!(J(i+4|0,16,10)|0)&&(Ae(),(x[795]|0)==0)){v=9;break e}else v=17;break}case 105:{Ze(m)|0&&!(J(i+4|0,26,10)|0)&&Qe(),v=17;break}case 59:{v=17;break}case 47:switch(_[i+4>>1]|0){case 47:{Jt();break n}case 42:{zt(1);break n}default:{v=16;break e}}default:{v=16;break e}}while(0);(v|0)==17&&(v=0,a[67]=a[70]),i=a[70]|0,u=a[71]|0}(v|0)==9?(i=a[70]|0,a[67]=i,v=19):(v|0)==16?(x[795]=0,a[70]=i,v=19):(v|0)==18&&(x[794]|0?i=0:(i=m,v=19));do if((v|0)==19){e:for(;;){if(u=i+2|0,a[70]=u,y=u,i>>>0>=(a[71]|0)>>>0){v=82;break}n:do switch(_[u>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(_[396]|0)&&Ze(u)|0&&!(J(i+4|0,16,10)|0)&&Ae(),v=81;break}case 105:{Ze(u)|0&&!(J(i+4|0,26,10)|0)&&Qe(),v=81;break}case 99:{Ze(u)|0&&!(J(i+4|0,36,8)|0)&&et(_[i+12>>1]|0)|0&&(x[797]=1),v=81;break}case 40:{y=a[68]|0,u=_[396]|0,v=u&65535,a[y+(v<<3)>>2]=1,m=a[67]|0,_[396]=u+1<<16>>16,a[y+(v<<3)+4>>2]=m,v=81;break}case 41:{if(u=_[396]|0,!(u<<16>>16)){v=36;break e}u=u+-1<<16>>16,_[396]=u,m=_[395]|0,m<<16>>16&&(L=a[(a[69]|0)+((m&65535)+-1<<2)>>2]|0,(a[L+20>>2]|0)==(a[(a[68]|0)+((u&65535)<<3)+4>>2]|0))&&(u=L+4|0,a[u>>2]|0||(a[u>>2]=y),a[L+12>>2]=i+4,_[395]=m+-1<<16>>16),v=81;break}case 123:{v=a[67]|0,y=a[61]|0,i=v;do if((_[v>>1]|0)==41&(y|0)!=0&&(a[y+4>>2]|0)==(v|0))if(u=a[62]|0,a[61]=u,u){a[u+28>>2]=0;break}else{a[57]=0;break}while(0);y=a[68]|0,m=_[396]|0,v=m&65535,a[y+(v<<3)>>2]=x[797]|0?6:2,_[396]=m+1<<16>>16,a[y+(v<<3)+4>>2]=i,x[797]=0,v=81;break}case 125:{if(i=_[396]|0,!(i<<16>>16)){v=49;break e}y=a[68]|0,v=i+-1<<16>>16,_[396]=v,(a[y+((v&65535)<<3)>>2]|0)==4&&Re(),v=81;break}case 39:{X(39),v=81;break}case 34:{X(34),v=81;break}case 47:switch(_[i+4>>1]|0){case 47:{Jt();break n}case 42:{zt(1);break n}default:{i=a[67]|0,y=_[i>>1]|0;t:do if(ji(y)|0)switch(y<<16>>16){case 46:if(((_[i+-2>>1]|0)+-48&65535)<10){v=66;break t}else{v=69;break t}case 43:if((_[i+-2>>1]|0)==43){v=66;break t}else{v=69;break t}case 45:if((_[i+-2>>1]|0)==45){v=66;break t}else{v=69;break t}default:{v=69;break t}}else{switch(y<<16>>16){case 41:if(Hi(a[(a[68]|0)+(de[396]<<3)+4>>2]|0)|0){v=69;break t}else{v=66;break t}case 125:break;default:{v=66;break t}}u=a[68]|0,m=de[396]|0,!(Ri(a[u+(m<<3)+4>>2]|0)|0)&&(a[u+(m<<3)>>2]|0)!=6?v=66:v=69}while(0);t:do if((v|0)==66)if(v=0,Se(i)|0)v=69;else{switch(y<<16>>16){case 0:{v=69;break t}case 47:{if(x[796]|0){v=69;break t}break}default:}m=a[3]|0,u=y;do{if(i>>>0<=m>>>0)break;i=i+-2|0,a[67]=i,u=_[i>>1]|0}while(!(Kt(u)|0));if(wt(u)|0){do{if(i>>>0<=m>>>0)break;i=i+-2|0,a[67]=i}while(wt(_[i>>1]|0)|0);if(Ni(i)|0){er(),x[796]=0,v=81;break n}else i=1}else i=1}while(0);(v|0)==69&&(er(),i=0),x[796]=i,v=81;break n}}case 96:{y=a[68]|0,m=_[396]|0,v=m&65535,a[y+(v<<3)+4>>2]=a[67],_[396]=m+1<<16>>16,a[y+(v<<3)>>2]=3,Re(),v=81;break}default:v=81}while(0);(v|0)==81&&(v=0,a[67]=a[70]),i=a[70]|0}if((v|0)==36){Z(),i=0;break}else if((v|0)==49){Z(),i=0;break}else if((v|0)==82){i=x[794]|0?0:(_[395]|_[396])<<16>>16==0;break}}while(0);return te=ye,i|0}function Ae(){var i=0,u=0,m=0,y=0,v=0,L=0,ye=0,xe=0,Qt=0,Xt=0,Zt=0,en=0,H=0,D=0;xe=a[70]|0,Qt=a[63]|0,D=xe+12|0,a[70]=D,m=P(1)|0,i=a[70]|0,(i|0)==(D|0)&&!(_t(m)|0)||(H=3);e:do if((H|0)==3){n:do switch(m<<16>>16){case 123:{for(a[70]=i+2,i=P(1)|0,m=a[70]|0;;){if(tt(i)|0?(X(i),i=(a[70]|0)+2|0,a[70]=i):(Ee(i)|0,i=a[70]|0),P(1)|0,i=Zn(m,i)|0,i<<16>>16==44&&(a[70]=(a[70]|0)+2,i=P(1)|0),u=m,m=a[70]|0,i<<16>>16==125){H=15;break}if((m|0)==(u|0)){H=12;break}if(m>>>0>(a[71]|0)>>>0){H=14;break}}if((H|0)==12){Z();break e}else if((H|0)==14){Z();break e}else if((H|0)==15){a[70]=m+2;break n}break}case 42:{a[70]=i+2,P(1)|0,D=a[70]|0,Zn(D,D)|0;break}default:{switch(x[795]=0,m<<16>>16){case 100:{switch(xe=i+14|0,a[70]=xe,(P(1)|0)<<16>>16){case 97:{u=a[70]|0,!(J(u+2|0,56,8)|0)&&(v=u+10|0,wt(_[v>>1]|0)|0)&&(a[70]=v,P(0)|0,H=22);break}case 102:{H=22;break}case 99:{u=a[70]|0,!(J(u+2|0,36,8)|0)&&(y=u+10|0,D=_[y>>1]|0,et(D)|0|D<<16>>16==123)&&(a[70]=y,L=P(1)|0,L<<16>>16!=123)&&(en=L,H=31);break}default:}t:do if((H|0)==22&&(ye=a[70]|0,(J(ye+2|0,64,14)|0)==0)){if(m=ye+16|0,u=_[m>>1]|0,!(et(u)|0))switch(u<<16>>16){case 40:case 42:break;default:break t}a[70]=m,u=P(1)|0,u<<16>>16==42&&(a[70]=(a[70]|0)+2,u=P(1)|0),u<<16>>16!=40&&(en=u,H=31)}while(0);if((H|0)==31&&(Xt=a[70]|0,Ee(en)|0,Zt=a[70]|0,Zt>>>0>Xt>>>0)){je(i,xe,Xt,Zt),a[70]=(a[70]|0)+-2;break e}je(i,xe,0,0),a[70]=i+12;break e}case 97:{a[70]=i+10,P(0)|0,i=a[70]|0,H=35;break}case 102:{H=35;break}case 99:{if(!(J(i+2|0,36,8)|0)&&(u=i+10|0,Kt(_[u>>1]|0)|0)){a[70]=u,D=P(1)|0,H=a[70]|0,Ee(D)|0,D=a[70]|0,je(H,D,H,D),a[70]=(a[70]|0)+-2;break e}i=i+4|0,a[70]=i;break}case 108:case 118:break;default:break e}if((H|0)==35){a[70]=i+16,i=P(1)|0,i<<16>>16==42&&(a[70]=(a[70]|0)+2,i=P(1)|0),H=a[70]|0,Ee(i)|0,D=a[70]|0,je(H,D,H,D),a[70]=(a[70]|0)+-2;break e}i=i+4|0,a[70]=i,x[795]=0;t:for(;;){switch(a[70]=i+2,D=P(1)|0,i=a[70]|0,(Ee(D)|0)<<16>>16){case 91:case 123:break t;default:}if(u=a[70]|0,(u|0)==(i|0))break e;if(je(i,u,i,u),(P(1)|0)<<16>>16!=44)break;i=a[70]|0}a[70]=(a[70]|0)+-2;break e}}while(0);if(D=(P(1)|0)<<16>>16==102,i=a[70]|0,D&&!(J(i+2|0,50,6)|0))for(a[70]=i+8,oe(xe,P(1)|0),i=Qt|0?Qt+16|0:232;;){if(i=a[i>>2]|0,!i)break e;a[i+12>>2]=0,a[i+8>>2]=0,i=i+16|0}a[70]=i+-2}while(0)}function Qe(){var i=0,u=0,m=0,y=0,v=0,L=0;v=a[70]|0,i=v+12|0,a[70]=i;e:do switch((P(1)|0)<<16>>16){case 40:{if(u=a[68]|0,L=_[396]|0,m=L&65535,a[u+(m<<3)>>2]=5,i=a[70]|0,_[396]=L+1<<16>>16,a[u+(m<<3)+4>>2]=i,(_[a[67]>>1]|0)!=46){switch(a[70]=i+2,L=P(1)|0,Yt(v,a[70]|0,0,i),u=a[61]|0,m=a[69]|0,v=_[395]|0,_[395]=v+1<<16>>16,a[m+((v&65535)<<2)>>2]=u,L<<16>>16){case 39:{X(39);break}case 34:{X(34);break}default:{a[70]=(a[70]|0)+-2;break e}}switch(i=(a[70]|0)+2|0,a[70]=i,(P(1)|0)<<16>>16){case 44:{a[70]=(a[70]|0)+2,P(1)|0,v=a[61]|0,a[v+4>>2]=i,L=a[70]|0,a[v+16>>2]=L,x[v+24>>0]=1,a[70]=L+-2;break e}case 41:{_[396]=(_[396]|0)+-1<<16>>16,L=a[61]|0,a[L+4>>2]=i,a[L+12>>2]=(a[70]|0)+2,x[L+24>>0]=1,_[395]=(_[395]|0)+-1<<16>>16;break e}default:{a[70]=(a[70]|0)+-2;break e}}}break}case 46:{if(a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16==109&&(u=a[70]|0,(J(u+2|0,44,6)|0)==0)){if(i=a[67]|0,!(nr(i)|0)&&(_[i>>1]|0)==46)break e;Yt(v,v,u+8|0,2)}break}case 42:case 39:case 34:{y=18;break}case 123:{if(i=a[70]|0,_[396]|0){a[70]=i+-2;break e}for(;!(i>>>0>=(a[71]|0)>>>0);){if(i=P(1)|0,tt(i)|0)X(i);else if(i<<16>>16==125){y=33;break}i=(a[70]|0)+2|0,a[70]=i}if((y|0)==33&&(a[70]=(a[70]|0)+2),L=(P(1)|0)<<16>>16==102,i=a[70]|0,L&&J(i+2|0,50,6)|0){Z();break e}if(a[70]=i+8,i=P(1)|0,tt(i)|0){oe(v,i);break e}else{Z();break e}}default:(a[70]|0)==(i|0)?a[70]=v+10:y=18}while(0);do if((y|0)==18){if(_[396]|0){a[70]=(a[70]|0)+-2;break}for(i=a[71]|0,u=a[70]|0;;){if(u>>>0>=i>>>0){y=25;break}if(m=_[u>>1]|0,tt(m)|0){y=23;break}L=u+2|0,a[70]=L,u=L}if((y|0)==23){oe(v,m);break}else if((y|0)==25){Z();break}}while(0)}function oe(i,u){i=i|0,u=u|0;var m=0,y=0;switch(m=(a[70]|0)+2|0,u<<16>>16){case 39:{X(39),y=5;break}case 34:{X(34),y=5;break}default:Z()}do if((y|0)==5){if(Yt(i,m,a[70]|0,1),a[70]=(a[70]|0)+2,u=P(0)|0,i=u<<16>>16==97,i?(m=a[70]|0,J(m+2|0,78,10)|0&&(y=11)):(m=a[70]|0,u<<16>>16==119&&(_[m+2>>1]|0)==105&&(_[m+4>>1]|0)==116&&(_[m+6>>1]|0)==104||(y=11)),(y|0)==11){a[70]=m+-2;break}if(a[70]=m+((i?6:4)<<1),(P(1)|0)<<16>>16!=123){a[70]=m;break}i=a[70]|0,u=i;e:for(;;){switch(a[70]=u+2,u=P(1)|0,u<<16>>16){case 39:{X(39),a[70]=(a[70]|0)+2,u=P(1)|0;break}case 34:{X(34),a[70]=(a[70]|0)+2,u=P(1)|0;break}default:u=Ee(u)|0}if(u<<16>>16!=58){y=20;break}switch(a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16){case 39:{X(39);break}case 34:{X(34);break}default:{y=24;break e}}switch(a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16){case 125:{y=29;break e}case 44:break;default:{y=28;break e}}if(a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16==125){y=29;break}u=a[70]|0}if((y|0)==20){a[70]=m;break}else if((y|0)==24){a[70]=m;break}else if((y|0)==28){a[70]=m;break}else if((y|0)==29){y=a[61]|0,a[y+16>>2]=i,a[y+12>>2]=(a[70]|0)+2;break}}while(0)}function Se(i){i=i|0;e:do switch(_[i>>1]|0){case 100:switch(_[i+-2>>1]|0){case 105:{i=G(i+-4|0,88,2)|0;break e}case 108:{i=G(i+-4|0,92,3)|0;break e}default:{i=0;break e}}case 101:switch(_[i+-2>>1]|0){case 115:switch(_[i+-4>>1]|0){case 108:{i=Xe(i+-6|0,101)|0;break e}case 97:{i=Xe(i+-6|0,99)|0;break e}default:{i=0;break e}}case 116:{i=G(i+-4|0,98,4)|0;break e}case 117:{i=G(i+-4|0,106,6)|0;break e}default:{i=0;break e}}case 102:{if((_[i+-2>>1]|0)==111&&(_[i+-4>>1]|0)==101)switch(_[i+-6>>1]|0){case 99:{i=G(i+-8|0,118,6)|0;break e}case 112:{i=G(i+-8|0,130,2)|0;break e}default:{i=0;break e}}else i=0;break}case 107:{i=G(i+-2|0,134,4)|0;break}case 110:{i=i+-2|0,Xe(i,105)|0?i=1:i=G(i,142,5)|0;break}case 111:{i=Xe(i+-2|0,100)|0;break}case 114:{i=G(i+-2|0,152,7)|0;break}case 116:{i=G(i+-2|0,166,4)|0;break}case 119:switch(_[i+-2>>1]|0){case 101:{i=Xe(i+-4|0,110)|0;break e}case 111:{i=G(i+-4|0,174,3)|0;break e}default:{i=0;break e}}default:i=0}while(0);return i|0}function Re(){var i=0,u=0,m=0,y=0;u=a[71]|0,m=a[70]|0;e:for(;;){if(i=m+2|0,m>>>0>=u>>>0){u=10;break}switch(_[i>>1]|0){case 96:{u=7;break e}case 36:{if((_[m+4>>1]|0)==123){u=6;break e}break}case 92:{i=m+4|0;break}default:}m=i}(u|0)==6?(i=m+4|0,a[70]=i,u=a[68]|0,y=_[396]|0,m=y&65535,a[u+(m<<3)>>2]=4,_[396]=y+1<<16>>16,a[u+(m<<3)+4>>2]=i):(u|0)==7?(a[70]=i,m=a[68]|0,y=(_[396]|0)+-1<<16>>16,_[396]=y,(a[m+((y&65535)<<3)>>2]|0)!=3&&Z()):(u|0)==10&&(a[70]=i,Z())}function P(i){i=i|0;var u=0,m=0,y=0;m=a[70]|0;e:do{u=_[m>>1]|0;n:do if(u<<16>>16!=47)if(i){if(et(u)|0)break;break e}else{if(wt(u)|0)break;break e}else switch(_[m+2>>1]|0){case 47:{Jt();break n}case 42:{zt(i);break n}default:{u=47;break e}}while(0);y=a[70]|0,m=y+2|0,a[70]=m}while(y>>>0<(a[71]|0)>>>0);return u|0}function X(i){i=i|0;var u=0,m=0,y=0,v=0;for(v=a[71]|0,u=a[70]|0;;){if(y=u+2|0,u>>>0>=v>>>0){u=9;break}if(m=_[y>>1]|0,m<<16>>16==i<<16>>16){u=10;break}if(m<<16>>16==92)m=u+4|0,(_[m>>1]|0)==13?(u=u+6|0,u=(_[u>>1]|0)==10?u:m):u=m;else if(rr(m)|0){u=9;break}else u=y}(u|0)==9?(a[70]=y,Z()):(u|0)==10&&(a[70]=y)}function Zn(i,u){i=i|0,u=u|0;var m=0,y=0,v=0,L=0;return m=a[70]|0,y=_[m>>1]|0,L=(i|0)==(u|0),v=L?0:i,L=L?0:u,y<<16>>16==97&&(a[70]=m+4,m=P(1)|0,i=a[70]|0,tt(m)|0?(X(m),u=(a[70]|0)+2|0,a[70]=u):(Ee(m)|0,u=a[70]|0),y=P(1)|0,m=a[70]|0),(m|0)!=(i|0)&&je(i,u,v,L),y|0}function Yt(i,u,m,y){i=i|0,u=u|0,m=m|0,y=y|0;var v=0,L=0;v=a[65]|0,a[65]=v+32,L=a[61]|0,a[(L|0?L+28|0:228)>>2]=v,a[62]=L,a[61]=v,a[v+8>>2]=i,(y|0)==2?i=m:i=(y|0)==1?m+2|0:0,a[v+12>>2]=i,a[v>>2]=u,a[v+4>>2]=m,a[v+16>>2]=0,a[v+20>>2]=y,x[v+24>>0]=(y|0)==1&1,a[v+28>>2]=0}function Pi(){var i=0,u=0,m=0;m=a[71]|0,u=a[70]|0;e:for(;;){if(i=u+2|0,u>>>0>=m>>>0){u=6;break}switch(_[i>>1]|0){case 13:case 10:{u=6;break e}case 93:{u=7;break e}case 92:{i=u+4|0;break}default:}u=i}return(u|0)==6?(a[70]=i,Z(),i=0):(u|0)==7&&(a[70]=i,i=93),i|0}function er(){var i=0,u=0,m=0;e:for(;;){if(i=a[70]|0,u=i+2|0,a[70]=u,i>>>0>=(a[71]|0)>>>0){m=7;break}switch(_[u>>1]|0){case 13:case 10:{m=7;break e}case 47:break e;case 91:{Pi()|0;break}case 92:{a[70]=i+4;break}default:}}(m|0)==7&&Z()}function Ri(i){switch(i=i|0,_[i>>1]|0){case 62:{i=(_[i+-2>>1]|0)==61;break}case 41:case 59:{i=1;break}case 104:{i=G(i+-2|0,200,4)|0;break}case 121:{i=G(i+-2|0,208,6)|0;break}case 101:{i=G(i+-2|0,220,3)|0;break}default:i=0}return i|0}function zt(i){i=i|0;var u=0,m=0,y=0,v=0,L=0;for(v=(a[70]|0)+2|0,a[70]=v,m=a[71]|0;u=v+2|0,!(v>>>0>=m>>>0||(y=_[u>>1]|0,!i&&rr(y)|0));){if(y<<16>>16==42&&(_[v+4>>1]|0)==47){L=8;break}v=u}(L|0)==8&&(a[70]=u,u=v+4|0),a[70]=u}function J(i,u,m){i=i|0,u=u|0,m=m|0;var y=0,v=0;e:do if(!m)i=0;else{for(;y=x[i>>0]|0,v=x[u>>0]|0,y<<24>>24==v<<24>>24;)if(m=m+-1|0,m)i=i+1|0,u=u+1|0;else{i=0;break e}i=(y&255)-(v&255)|0}while(0);return i|0}function _t(i){i=i|0;e:do switch(i<<16>>16){case 38:case 37:case 33:{i=1;break}default:if((i&-8)<<16>>16==40|(i+-58&65535)<6)i=1;else{switch(i<<16>>16){case 91:case 93:case 94:{i=1;break e}default:}i=(i+-123&65535)<4}}while(0);return i|0}function ji(i){i=i|0;e:do switch(i<<16>>16){case 38:case 37:case 33:break;default:if(!((i+-58&65535)<6|(i+-40&65535)<7&i<<16>>16!=41)){switch(i<<16>>16){case 91:case 94:break e;default:}return i<<16>>16!=125&(i+-123&65535)<4|0}}while(0);return 1}function tr(i){i=i|0;var u=0;u=_[i>>1]|0;e:do if((u+-9&65535)>=5){switch(u<<16>>16){case 160:case 32:{u=1;break e}default:}if(_t(u)|0)return u<<16>>16!=46|(nr(i)|0)|0;u=0}else u=1;while(0);return u|0}function Mi(i){i=i|0;var u=0,m=0,y=0,v=0;return m=te,te=te+16|0,y=m,a[y>>2]=0,a[64]=i,u=a[3]|0,v=u+(i<<1)|0,i=v+2|0,_[v>>1]=0,a[y>>2]=i,a[65]=i,a[57]=0,a[61]=0,a[59]=0,a[58]=0,a[63]=0,a[60]=0,te=m,u|0}function G(i,u,m){i=i|0,u=u|0,m=m|0;var y=0,v=0;return y=i+(0-m<<1)|0,v=y+2|0,i=a[3]|0,v>>>0>=i>>>0&&!(J(v,u,m<<1)|0)?(v|0)==(i|0)?i=1:i=tr(y)|0:i=0,i|0}function je(i,u,m,y){i=i|0,u=u|0,m=m|0,y=y|0;var v=0,L=0;v=a[65]|0,a[65]=v+20,L=a[63]|0,a[(L|0?L+16|0:232)>>2]=v,a[63]=v,a[v>>2]=i,a[v+4>>2]=u,a[v+8>>2]=m,a[v+12>>2]=y,a[v+16>>2]=0}function Ni(i){switch(i=i|0,_[i>>1]|0){case 107:{i=G(i+-2|0,134,4)|0;break}case 101:{(_[i+-2>>1]|0)==117?i=G(i+-4|0,106,6)|0:i=0;break}default:i=0}return i|0}function Xe(i,u){i=i|0,u=u|0;var m=0;return m=a[3]|0,m>>>0<=i>>>0&&(_[i>>1]|0)==u<<16>>16?(m|0)==(i|0)?m=1:m=Kt(_[i+-2>>1]|0)|0:m=0,m|0}function Kt(i){i=i|0;e:do if((i+-9&65535)<5)i=1;else{switch(i<<16>>16){case 32:case 160:{i=1;break e}default:}i=i<<16>>16!=46&(_t(i)|0)}while(0);return i|0}function Jt(){var i=0,u=0,m=0;i=a[71]|0,m=a[70]|0;e:for(;u=m+2|0,!(m>>>0>=i>>>0);)switch(_[u>>1]|0){case 13:case 10:break e;default:m=u}a[70]=u}function Ee(i){for(i=i|0;!(et(i)|0||_t(i)|0);)if(i=(a[70]|0)+2|0,a[70]=i,i=_[i>>1]|0,!(i<<16>>16)){i=0;break}return i|0}function Fi(){var i=0;switch(i=a[(a[59]|0)+20>>2]|0,i|0){case 1:{i=-1;break}case 2:{i=-2;break}default:i=i-(a[3]|0)>>1}return i|0}function Hi(i){return i=i|0,!(G(i,180,5)|0)&&!(G(i,190,3)|0)?i=G(i,196,2)|0:i=1,i|0}function wt(i){switch(i=i|0,i<<16>>16){case 160:case 32:case 12:case 11:case 9:{i=1;break}default:i=0}return i|0}function nr(i){return i=i|0,(_[i>>1]|0)==46&&(_[i+-2>>1]|0)==46?i=(_[i+-4>>1]|0)==46:i=0,i|0}function Ze(i){return i=i|0,(a[3]|0)==(i|0)?i=1:i=tr(i+-2|0)|0,i|0}function Wi(){var i=0;return i=a[(a[60]|0)+12>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function Ui(){var i=0;return i=a[(a[59]|0)+12>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function Bi(){var i=0;return i=a[(a[60]|0)+8>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function Di(){var i=0;return i=a[(a[59]|0)+16>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function Vi(){var i=0;return i=a[(a[59]|0)+4>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function qi(){var i=0;return i=a[59]|0,i=a[(i|0?i+28|0:228)>>2]|0,a[59]=i,(i|0)!=0|0}function Gi(){var i=0;return i=a[60]|0,i=a[(i|0?i+16|0:232)>>2]|0,a[60]=i,(i|0)!=0|0}function Z(){x[794]=1,a[66]=(a[70]|0)-(a[3]|0)>>1,a[70]=(a[71]|0)+2}function et(i){return i=i|0,(i|128)<<16>>16==160|(i+-9&65535)<5|0}function tt(i){return i=i|0,i<<16>>16==39|i<<16>>16==34|0}function Yi(){return(a[(a[59]|0)+8>>2]|0)-(a[3]|0)>>1|0}function zi(){return(a[(a[60]|0)+4>>2]|0)-(a[3]|0)>>1|0}function rr(i){return i=i|0,i<<16>>16==13|i<<16>>16==10|0}function Ki(){return(a[a[59]>>2]|0)-(a[3]|0)>>1|0}function Ji(){return(a[a[60]>>2]|0)-(a[3]|0)>>1|0}function Qi(){return ne[(a[59]|0)+24>>0]|0|0}function Xi(i){i=i|0,a[3]=i}function Zi(){return(x[795]|0)!=0|0}function eo(){return a[66]|0}function to(i){return i=i|0,te=i+992+15&-16,992}return{su:to,ai:Di,e:eo,ee:zi,ele:Wi,els:Bi,es:Ji,f:Zi,id:Fi,ie:Vi,ip:Qi,is:Ki,p:Y,re:Gi,ri:qi,sa:Mi,se:Ui,ses:Xi,ss:Yi}}(typeof self<"u"?self:no,{},vt),Mt=B.su(qe-(2<<17))}const A=W.length+1;B.ses(Mt),B.sa(A-1),Cn(W,new Uint16Array(vt,Mt,A)),B.p()||(M=B.e(),be());const k=[],$=[];for(;B.ri();){const E=B.is(),O=B.ie(),T=B.ai(),x=B.id(),_=B.ss(),a=B.se();let ne;B.ip()&&(ne=Nt(x===-1?E:E+1,W.charCodeAt(x===-1?E-1:E))),k.push({n:ne,s:E,e:O,ss:_,se:a,d:x,a:T})}for(;B.re();){const E=B.es(),O=B.ee(),T=B.els(),x=B.ele(),_=W.charCodeAt(E),a=T>=0?W.charCodeAt(T):-1;$.push({s:E,e:O,ls:T,le:x,n:_===34||_===39?Nt(E+1,_):W.slice(E,O),ln:T<0?void 0:a===34||a===39?Nt(T+1,a):W.slice(T,x)})}return[k,$,!!B.f()]}function Nt(l,p){M=l;let b="",A=M;for(;;){M>=W.length&&be();const k=W.charCodeAt(M);if(k===p)break;k===92?(b+=W.slice(A,M),b+=Ai(),A=M):(k===8232||k===8233||Tn(k)&&be(),++M)}return b+=W.slice(A,M++),b}function Ai(){let l=W.charCodeAt(++M);switch(++M,l){case 110:return`
2
- `;case 114:return"\r";case 120:return String.fromCharCode(Ft(2));case 117:return function(){const p=W.charCodeAt(M);let b;return p===123?(++M,b=Ft(W.indexOf("}",M)-M),++M,b>1114111&&be()):b=Ft(4),b<=65535?String.fromCharCode(b):(b-=65536,String.fromCharCode(55296+(b>>10),56320+(1023&b)))}();case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:W.charCodeAt(M)===10&&++M;case 10:return"";case 56:case 57:be();default:if(l>=48&&l<=55){let p=W.substr(M-1,3).match(/^[0-7]+/)[0],b=parseInt(p,8);return b>255&&(p=p.slice(0,-1),b=parseInt(p,8)),M+=p.length-1,l=W.charCodeAt(M),p==="0"&&l!==56&&l!==57||be(),String.fromCharCode(b)}return Tn(l)?"":String.fromCharCode(l)}}function Ft(l){const p=M;let b=0,A=0;for(let k=0;k<l;++k,++M){let $,E=W.charCodeAt(M);if(E!==95){if(E>=97)$=E-97+10;else if(E>=65)$=E-65+10;else{if(!(E>=48&&E<=57))break;$=E-48}if($>=16)break;A=E,b=16*b+$}else A!==95&&k!==0||be(),A=E}return A!==95&&M-p===l||be(),b}function Tn(l){return l===13||l===10}function be(){throw Object.assign(Error(`Parse error ${Ln}:${W.slice(0,M).split(`
3
- `).length}:${M-W.lastIndexOf(`
4
- `,M-1)}`),{idx:M})}async function Pn(l,p){const b=ke(l,p);return{r:Rt($e,b||l,p)||jn(l,p),b:!b&&!Tt(l)}}const Rn=h?async(l,p)=>{let b=h(l,p,Ht);return b&&b.then&&(b=await b),b?{r:b,b:!ke(l,p)&&!Tt(l)}:Pn(l,p)}:Pn;async function Ge(l,...p){let b=p[p.length-1];return typeof b!="string"&&(b=ie),await ze,c&&await c(l,typeof p[1]!="string"?p[1]:{},b),(Ke||s||!Pe)&&(e&&Bt(!0),s||(Ke=!1)),await bt,Hn((await Rn(l,b)).r,{credentials:"same-origin"})}self.importShim=Ge;function Ht(l,p){return Rt($e,ke(l,p)||l,p)||jn(l,p)}function jn(l,p){throw Error(`Unable to resolve specifier '${l}'${De(p)}`)}const Mn=(l,p=ie)=>{p=`${p}`;const b=h&&h(l,p,Ht);return b&&!b.then?b:Ht(l,p)};function Si(l,p=this.url){return Mn(l,p)}Ge.resolve=Mn,Ge.getImportMap=()=>JSON.parse(JSON.stringify($e)),Ge.addImportMap=l=>{if(!s)throw new Error("Unsupported in polyfill mode.");$e=Sn(l,ie,$e)};const Ye=Ge._r={};async function Nn(l,p){l.b||p[l.u]||(p[l.u]=1,await l.L,await Promise.all(l.d.map(b=>Nn(b,p))),l.n||(l.n=l.d.some(b=>b.n)))}let $e={imports:{},scopes:{}},Pe;const ze=gi.then(()=>{if(Pe=o.polyfillEnable!==!0&&Ve&&mt&&Te&&(!q||dt)&&(!F||pt)&&!ht,e){if(!Te){const l=HTMLScriptElement.supports||(p=>p==="classic"||p==="module");HTMLScriptElement.supports=p=>p==="importmap"||l(p)}if(s||!Pe)if(new MutationObserver(l=>{for(const p of l)if(p.type==="childList")for(const b of p.addedNodes)b.tagName==="SCRIPT"?(b.type===(s?"module-shim":"module")&&Qn(b,!0),b.type===(s?"importmap-shim":"importmap")&&Jn(b,!0)):b.tagName==="LINK"&&b.rel===(s?"modulepreload-shim":"modulepreload")&&Xn(b)}).observe(document,{childList:!0,subtree:!0}),Bt(),document.readyState==="complete")qt();else{async function l(){await ze,Bt(),document.readyState==="complete"&&(qt(),document.removeEventListener("readystatechange",l))}document.addEventListener("readystatechange",l)}}});let bt=ze,Fn=!0,Ke=!0;async function Hn(l,p,b,A,k){if(s||(Ke=!1),await ze,await bt,c&&await c(l,typeof p!="string"?p:{},""),!s&&Pe)return A?null:(await k,he(b?Q(b):l,{errUrl:l||b}));const $=qn(l,p,null,b),E={};if(await Nn($,E),yt=void 0,Un($,E),await k,b&&!s&&!$.n)return A?void 0:(R&&Wn(Object.keys(E)),await he(Q(b),{errUrl:b}));Fn&&!s&&$.n&&A&&(I(),Fn=!1);const O=await he(!s&&!$.n&&A?$.u:$.b,{errUrl:$.u});return $.s&&(await he($.s)).u$_(O),R&&Wn(Object.keys(E)),O}function Wn(l){let p=0;const b=l.length,A=self.requestIdleCallback?self.requestIdleCallback:self.requestAnimationFrame;A(k);function k(){const $=p*100;if(!($>b)){for(const E of l.slice($,$+100)){const O=Ye[E];O&&URL.revokeObjectURL(O.b)}p++,A(k)}}}function Wt(l){return`'${l.replace(/'/g,"\\'")}'`}let yt;function Un(l,p){if(l.b||!p[l.u])return;p[l.u]=0;for(const O of l.d)Un(O,p);const[b,A]=l.a,k=l.S;let $=ft&&yt?`import '${yt}';`:"";if(!b.length)$+=k;else{let _=function(a){for(;x[x.length-1]<a;){const ne=x.pop();$+=`${k.slice(O,ne)}, ${Wt(l.r)}`,O=ne}$+=k.slice(O,a),O=a},O=0,T=0,x=[];for(const{s:a,ss:ne,se:de,d:te}of b)if(te===-1){let Y=l.d[T++],Ae=Y.b,Qe=!Ae;Qe&&((Ae=Y.s)||(Ae=Y.s=Q(`export function u$_(m){${Y.a[1].map(({s:oe,e:Se},Re)=>{const P=Y.S[oe]==='"'||Y.S[oe]==="'";return`e$_${Re}=m${P?"[":"."}${Y.S.slice(oe,Se)}${P?"]":""}`}).join(",")}}${Y.a[1].length?`let ${Y.a[1].map((oe,Se)=>`e$_${Se}`).join(",")};`:""}export {${Y.a[1].map(({s:oe,e:Se},Re)=>`e$_${Re} as ${Y.S.slice(oe,Se)}`).join(",")}}
5
- //# sourceURL=${Y.r}?cycle`))),_(a-1),$+=`/*${k.slice(a-1,de)}*/${Wt(Ae)}`,!Qe&&Y.s&&($+=`;import*as m$_${T} from'${Y.b}';import{u$_ as u$_${T}}from'${Y.s}';u$_${T}(m$_${T})`,Y.s=void 0),O=de}else te===-2?(l.m={url:l.r,resolve:Si},d(l.m,l.u),_(a),$+=`importShim._r[${Wt(l.u)}].m`,O=de):(_(ne+6),$+="Shim(",x.push(de-1),O=a);l.s&&($+=`
6
- ;import{u$_}from'${l.s}';try{u$_({${A.filter(a=>a.ln).map(({s:a,e:ne,ln:de})=>`${k.slice(a,ne)}:${de}`).join(",")}})}catch(_){};
7
- `),_(k.length)}let E=!1;$=$.replace(Ei,(O,T,x)=>(E=!T,O.replace(x,()=>new URL(x,l.r)))),E||($+=`
8
- //# sourceURL=`+l.r),l.b=yt=Q($),l.S=void 0}const Ei=/\n\/\/# source(Mapping)?URL=([^\n]+)\s*((;|\/\/[^#][^\n]*)\s*)*$/,xi=/^(text|application)\/(x-)?javascript(;|$)/,Oi=/^(text|application)\/json(;|$)/,Ii=/^(text|application)\/css(;|$)/,Ci=/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g;let Ut=[],Bn=0;function Li(){if(++Bn>100)return new Promise(l=>Ut.push(l))}function Ti(){Bn--,Ut.length&&Ut.shift()()}async function Dn(l,p,b){if(V&&!p.integrity)throw Error(`No integrity for ${l}${De(b)}.`);const A=Li();A&&await A;try{var k=await f(l,p)}catch($){throw $.message=`Unable to fetch ${l}${De(b)} - see network log for details.
9
- `+$.message,$}finally{Ti()}if(!k.ok)throw Error(`${k.status} ${k.statusText} ${k.url}${De(b)}`);return k}async function Vn(l,p,b){const A=await Dn(l,p,b),k=A.headers.get("content-type");if(xi.test(k))return{r:A.url,s:await A.text(),t:"js"};if(Oi.test(k))return{r:A.url,s:`export default ${await A.text()}`,t:"json"};if(Ii.test(k))return{r:A.url,s:`var s=new CSSStyleSheet();s.replaceSync(${JSON.stringify((await A.text()).replace(Ci,($,E="",O,T)=>`url(${E}${An(O||T,l)}${E})`))});export default s;`,t:"css"};throw Error(`Unsupported Content-Type "${k}" loading ${l}${De(b)}. Modules must be served with a valid MIME type like application/javascript.`)}function qn(l,p,b,A){let k=Ye[l];if(k&&!A)return k;if(k={u:l,r:A?l:void 0,f:void 0,S:void 0,L:void 0,a:void 0,d:void 0,b:void 0,s:void 0,n:!1,t:null,m:null},Ye[l]){let $=0;for(;Ye[k.u+ ++$];);k.u+=$}return Ye[k.u]=k,k.f=(async()=>{if(!A){let $;if({r:k.r,s:A,t:$}=await(Gt[l]||Vn(l,p,b)),$&&!s){if($==="css"&&!F||$==="json"&&!q)throw Error(`${$}-modules require <script type="esms-options">{ "polyfillEnable": ["${$}-modules"] }<\/script>`);($==="css"&&!pt||$==="json"&&!dt)&&(k.n=!0)}}try{k.a=$i(A,k.u)}catch($){Lt($),k.a=[[],[],!1]}return k.S=A,k})(),k.L=k.f.then(async()=>{let $=p;k.d=(await Promise.all(k.a[0].map(async({n:E,d:O})=>{if((O>=0&&!Ve||O===-2&&!mt)&&(k.n=!0),O!==-1||!E)return;const{r:T,b:x}=await Rn(E,k.r||k.u);if(x&&(!Te||ht)&&(k.n=!0),O===-1)return ve&&ve(T)?{b:T}:($.integrity&&($=Object.assign({},$,{integrity:void 0})),qn(T,$,k.r).f)}))).filter(E=>E)}),k}function Bt(l=!1){if(!l)for(const p of document.querySelectorAll(s?"link[rel=modulepreload-shim]":"link[rel=modulepreload]"))Xn(p);for(const p of document.querySelectorAll(s?"script[type=importmap-shim]":"script[type=importmap]"))Jn(p);if(!l)for(const p of document.querySelectorAll(s?"script[type=module-shim]":"script[type=module]"))Qn(p)}function Dt(l){const p={};return l.integrity&&(p.integrity=l.integrity),l.referrerPolicy&&(p.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?p.credentials="include":l.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}let Gn=Promise.resolve(),Vt=1;function Yn(){--Vt===0&&!C&&(s||!Pe)&&document.dispatchEvent(new Event("DOMContentLoaded"))}e&&document.addEventListener("DOMContentLoaded",async()=>{await ze,Yn()});let Je=1;function qt(){--Je===0&&!C&&(s||!Pe)&&document.dispatchEvent(new Event("readystatechange"))}const zn=l=>l.nextSibling||l.parentNode&&zn(l.parentNode),Kn=(l,p)=>l.ep||!p&&(!l.src&&!l.innerHTML||!zn(l))||l.getAttribute("noshim")!==null||!(l.ep=!0);function Jn(l,p=Je>0){if(!Kn(l,p)){if(l.src){if(!s)return;bi()}Ke&&(bt=bt.then(async()=>{$e=Sn(l.src?await(await Dn(l.src,Dt(l))).json():JSON.parse(l.innerHTML),l.src||ie,$e)}).catch(b=>{console.log(b),b instanceof SyntaxError&&(b=new Error(`Unable to parse import map ${b.message} in: ${l.src||l.innerHTML}`)),Lt(b)}),s||(Ke=!1))}}function Qn(l,p=Je>0){if(Kn(l,p))return;const b=l.getAttribute("async")===null&&Je>0,A=Vt>0;b&&Je++,A&&Vt++;const k=Hn(l.src||ie,Dt(l),!l.src&&l.innerHTML,!s,b&&Gn).then(()=>{s&&l.dispatchEvent(new Event("load"))}).catch(Lt);b&&(Gn=k.then(qt)),A&&k.then(Yn)}const Gt={};function Xn(l){l.ep||(l.ep=!0,!Gt[l.href]&&(Gt[l.href]=Vn(l.href,Dt(l))))}})();var ln=function(t,e){return ln=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},ln(t,e)};function ue(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ln(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function ro(t,e,n,r){function o(s){return s instanceof n?s:new n(function(c){c(s)})}return new(n||(n=Promise))(function(s,c){function h(g){try{d(r.next(g))}catch(w){c(w)}}function f(g){try{d(r.throw(g))}catch(w){c(w)}}function d(g){g.done?s(g.value):o(g.value).then(h,f)}d((r=r.apply(t,e||[])).next())})}function Ir(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,c;return c={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function h(d){return function(g){return f([d,g])}}function f(d){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(n=0)),n;)try{if(r=1,o&&(s=d[0]&2?o.return:d[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,d[1])).done)return s;switch(o=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,o=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){n.label=d[1];break}if(d[0]===6&&n.label<s[1]){n.label=s[1],s=d;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(d);break}s[2]&&n.ops.pop(),n.trys.pop();continue}d=e.call(t,n)}catch(g){d=[6,g],o=0}finally{r=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Le(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ae(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,s=[],c;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(h){c={error:h}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return s}function ce(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,s;r<o;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}function Me(t){return this instanceof Me?(this.v=t,this):new Me(t)}function io(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),o,s=[];return o={},c("next"),c("throw"),c("return"),o[Symbol.asyncIterator]=function(){return this},o;function c(S){r[S]&&(o[S]=function(I){return new Promise(function(R,C){s.push([S,I,R,C])>1||h(S,I)})})}function h(S,I){try{f(r[S](I))}catch(R){w(s[0][3],R)}}function f(S){S.value instanceof Me?Promise.resolve(S.value.v).then(d,g):w(s[0][2],S)}function d(S){h("next",S)}function g(S){h("throw",S)}function w(S,I){S(I),s.shift(),s.length&&h(s[0][0],s[0][1])}}function oo(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof Le=="function"?Le(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=t[s]&&function(c){return new Promise(function(h,f){c=t[s](c),o(h,f,c.done,c.value)})}}function o(s,c,h,f){Promise.resolve(f).then(function(d){s({value:d,done:h})},c)}}function U(t){return typeof t=="function"}function vn(t){var e=function(r){Error.call(r),r.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var tn=vn(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
10
- `+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
11
- `):"",this.name="UnsubscriptionError",this.errors=n}});function rt(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var me=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,r,o,s;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var h=Le(c),f=h.next();!f.done;f=h.next()){var d=f.value;d.remove(this)}}catch(C){e={error:C}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(e)throw e.error}}else c.remove(this);var g=this.initialTeardown;if(U(g))try{g()}catch(C){s=C instanceof tn?C.errors:[C]}var w=this._finalizers;if(w){this._finalizers=null;try{for(var S=Le(w),I=S.next();!I.done;I=S.next()){var R=I.value;try{ir(R)}catch(C){s=s??[],C instanceof tn?s=ce(ce([],ae(s)),ae(C.errors)):s.push(C)}}}catch(C){r={error:C}}finally{try{I&&!I.done&&(o=S.return)&&o.call(S)}finally{if(r)throw r.error}}}if(s)throw new tn(s)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)ir(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&rt(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&rt(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Cr=me.EMPTY;function Lr(t){return t instanceof me||t&&"closed"in t&&U(t.remove)&&U(t.add)&&U(t.unsubscribe)}function ir(t){U(t)?t():t.unsubscribe()}var Tr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},un={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=un.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,ce([t,e],ae(n))):setTimeout.apply(void 0,ce([t,e],ae(n)))},clearTimeout:function(t){var e=un.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Pr(t){un.setTimeout(function(){throw t})}function or(){}function At(t){t()}var bn=function(t){ue(e,t);function e(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Lr(n)&&n.add(r)):r.destination=lo,r}return e.create=function(n,r,o){return new fn(n,r,o)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(me),so=Function.prototype.bind;function nn(t,e){return so.call(t,e)}var ao=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(r){gt(r)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(r){gt(r)}else gt(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){gt(n)}},t}(),fn=function(t){ue(e,t);function e(n,r,o){var s=t.call(this)||this,c;if(U(n)||!n)c={next:n??void 0,error:r??void 0,complete:o??void 0};else{var h;s&&Tr.useDeprecatedNextContext?(h=Object.create(n),h.unsubscribe=function(){return s.unsubscribe()},c={next:n.next&&nn(n.next,h),error:n.error&&nn(n.error,h),complete:n.complete&&nn(n.complete,h)}):c=n}return s.destination=new ao(c),s}return e}(bn);function gt(t){Pr(t)}function co(t){throw t}var lo={closed:!0,next:or,error:co,complete:or},yn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function _n(t){return t}function uo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Rr(t)}function Rr(t){return t.length===0?_n:t.length===1?t[0]:function(n){return t.reduce(function(r,o){return o(r)},n)}}var ee=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,r){var o=this,s=ho(e)?e:new fn(e,n,r);return At(function(){var c=o,h=c.operator,f=c.source;s.add(h?h.call(s,f):f?o._subscribe(s):o._trySubscribe(s))}),s},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var r=this;return n=sr(n),new n(function(o,s){var c=new fn({next:function(h){try{e(h)}catch(f){s(f),c.unsubscribe()}},error:s,complete:o});r.subscribe(c)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[yn]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Rr(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=sr(e),new e(function(r,o){var s;n.subscribe(function(c){return s=c},function(c){return o(c)},function(){return r(s)})})},t.create=function(e){return new t(e)},t}();function sr(t){var e;return(e=t??Tr.Promise)!==null&&e!==void 0?e:Promise}function fo(t){return t&&U(t.next)&&U(t.error)&&U(t.complete)}function ho(t){return t&&t instanceof bn||fo(t)&&Lr(t)}function po(t){return U(t==null?void 0:t.lift)}function fe(t){return function(e){if(po(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function le(t,e,n,r,o){return new mo(t,e,n,r,o)}var mo=function(t){ue(e,t);function e(n,r,o,s,c,h){var f=t.call(this,n)||this;return f.onFinalize=c,f.shouldUnsubscribe=h,f._next=r?function(d){try{r(d)}catch(g){n.error(g)}}:t.prototype._next,f._error=s?function(d){try{s(d)}catch(g){n.error(g)}finally{this.unsubscribe()}}:t.prototype._error,f._complete=o?function(){try{o()}catch(d){n.error(d)}finally{this.unsubscribe()}}:t.prototype._complete,f}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e}(bn),vo=vn(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),It=function(t){ue(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var r=new ar(this,this);return r.operator=n,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new vo},e.prototype.next=function(n){var r=this;At(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var c=Le(r.currentObservers),h=c.next();!h.done;h=c.next()){var f=h.value;f.next(n)}}catch(d){o={error:d}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(o)throw o.error}}}})},e.prototype.error=function(n){var r=this;At(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},e.prototype.complete=function(){var n=this;At(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var r=this,o=this,s=o.hasError,c=o.isStopped,h=o.observers;return s||c?Cr:(this.currentObservers=null,h.push(n),new me(function(){r.currentObservers=null,rt(h,n)}))},e.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,s=r.thrownError,c=r.isStopped;o?n.error(s):c&&n.complete()},e.prototype.asObservable=function(){var n=new ee;return n.source=this,n},e.create=function(n,r){return new ar(n,r)},e}(ee),ar=function(t){ue(e,t);function e(n,r){var o=t.call(this)||this;return o.destination=n,o.source=r,o}return e.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},e.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},e.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},e.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:Cr},e}(It),cr=function(t){ue(e,t);function e(n){var r=t.call(this)||this;return r._value=n,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(n){var r=t.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},e.prototype.getValue=function(){var n=this,r=n.hasError,o=n.thrownError,s=n._value;if(r)throw o;return this._throwIfClosed(),s},e.prototype.next=function(n){t.prototype.next.call(this,this._value=n)},e}(It),wn={now:function(){return(wn.delegate||Date).now()},delegate:void 0},Ie=function(t){ue(e,t);function e(n,r,o){n===void 0&&(n=1/0),r===void 0&&(r=1/0),o===void 0&&(o=wn);var s=t.call(this)||this;return s._bufferSize=n,s._windowTime=r,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,n),s._windowTime=Math.max(1,r),s}return e.prototype.next=function(n){var r=this,o=r.isStopped,s=r._buffer,c=r._infiniteTimeWindow,h=r._timestampProvider,f=r._windowTime;o||(s.push(n),!c&&s.push(h.now()+f)),this._trimBuffer(),t.prototype.next.call(this,n)},e.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),o=this,s=o._infiniteTimeWindow,c=o._buffer,h=c.slice(),f=0;f<h.length&&!n.closed;f+=s?1:2)n.next(h[f]);return this._checkFinalizedStatuses(n),r},e.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,o=n._timestampProvider,s=n._buffer,c=n._infiniteTimeWindow,h=(c?1:2)*r;if(r<1/0&&h<s.length&&s.splice(0,s.length-h),!c){for(var f=o.now(),d=0,g=1;g<s.length&&s[g]<=f;g+=2)d=g;d&&s.splice(0,d+1)}},e}(It),bo=function(t){ue(e,t);function e(n,r){return t.call(this)||this}return e.prototype.schedule=function(n,r){return this},e}(me),St={setInterval:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=St.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,ce([t,e],ae(n))):setInterval.apply(void 0,ce([t,e],ae(n)))},clearInterval:function(t){var e=St.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},yo=function(t){ue(e,t);function e(n,r){var o=t.call(this,n,r)||this;return o.scheduler=n,o.work=r,o.pending=!1,o}return e.prototype.schedule=function(n,r){var o;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var s=this.id,c=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(c,s,r)),this.pending=!0,this.delay=r,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(c,this.id,r),this},e.prototype.requestAsyncId=function(n,r,o){return o===void 0&&(o=0),St.setInterval(n.flush.bind(n,this),o)},e.prototype.recycleAsyncId=function(n,r,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return r;r!=null&&St.clearInterval(r)},e.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(n,r);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,r){var o=!1,s;try{this.work(n)}catch(c){o=!0,s=c||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,o=n.scheduler,s=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,rt(s,this),r!=null&&(this.id=this.recycleAsyncId(o,r,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(bo),lr=function(){function t(e,n){n===void 0&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(e,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,e).schedule(r,n)},t.now=wn.now,t}(),_o=function(t){ue(e,t);function e(n,r){r===void 0&&(r=lr.now);var o=t.call(this,n,r)||this;return o.actions=[],o._active=!1,o}return e.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var o;this._active=!0;do if(o=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,o){for(;n=r.shift();)n.unsubscribe();throw o}},e}(lr),gn=new _o(yo),wo=gn,go=new ee(function(t){return t.complete()});function jr(t){return t&&U(t.schedule)}function Mr(t){return t[t.length-1]}function ko(t){return U(Mr(t))?t.pop():void 0}function Nr(t){return jr(Mr(t))?t.pop():void 0}var Fr=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function Hr(t){return U(t==null?void 0:t.then)}function Wr(t){return U(t[yn])}function Ur(t){return Symbol.asyncIterator&&U(t==null?void 0:t[Symbol.asyncIterator])}function Br(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function $o(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Dr=$o();function Vr(t){return U(t==null?void 0:t[Dr])}function qr(t){return io(this,arguments,function(){var n,r,o,s;return Ir(this,function(c){switch(c.label){case 0:n=t.getReader(),c.label=1;case 1:c.trys.push([1,,9,10]),c.label=2;case 2:return[4,Me(n.read())];case 3:return r=c.sent(),o=r.value,s=r.done,s?[4,Me(void 0)]:[3,5];case 4:return[2,c.sent()];case 5:return[4,Me(o)];case 6:return[4,c.sent()];case 7:return c.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function Gr(t){return U(t==null?void 0:t.getReader)}function ct(t){if(t instanceof ee)return t;if(t!=null){if(Wr(t))return Ao(t);if(Fr(t))return So(t);if(Hr(t))return Eo(t);if(Ur(t))return Yr(t);if(Vr(t))return xo(t);if(Gr(t))return Oo(t)}throw Br(t)}function Ao(t){return new ee(function(e){var n=t[yn]();if(U(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function So(t){return new ee(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function Eo(t){return new ee(function(e){t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,Pr)})}function xo(t){return new ee(function(e){var n,r;try{for(var o=Le(t),s=o.next();!s.done;s=o.next()){var c=s.value;if(e.next(c),e.closed)return}}catch(h){n={error:h}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}e.complete()})}function Yr(t){return new ee(function(e){Io(t,e).catch(function(n){return e.error(n)})})}function Oo(t){return Yr(qr(t))}function Io(t,e){var n,r,o,s;return ro(this,void 0,void 0,function(){var c,h;return Ir(this,function(f){switch(f.label){case 0:f.trys.push([0,5,6,11]),n=oo(t),f.label=1;case 1:return[4,n.next()];case 2:if(r=f.sent(),!!r.done)return[3,4];if(c=r.value,e.next(c),e.closed)return[2];f.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return h=f.sent(),o={error:h},[3,11];case 6:return f.trys.push([6,,9,10]),r&&!r.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:f.sent(),f.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function re(t,e,n,r,o){r===void 0&&(r=0),o===void 0&&(o=!1);var s=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(s),!o)return s}function zr(t,e){return e===void 0&&(e=0),fe(function(n,r){n.subscribe(le(r,function(o){return re(r,t,function(){return r.next(o)},e)},function(){return re(r,t,function(){return r.complete()},e)},function(o){return re(r,t,function(){return r.error(o)},e)}))})}function Kr(t,e){return e===void 0&&(e=0),fe(function(n,r){r.add(t.schedule(function(){return n.subscribe(r)},e))})}function Co(t,e){return ct(t).pipe(Kr(e),zr(e))}function Lo(t,e){return ct(t).pipe(Kr(e),zr(e))}function To(t,e){return new ee(function(n){var r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function Po(t,e){return new ee(function(n){var r;return re(n,e,function(){r=t[Dr](),re(n,e,function(){var o,s,c;try{o=r.next(),s=o.value,c=o.done}catch(h){n.error(h);return}c?n.complete():n.next(s)},0,!0)}),function(){return U(r==null?void 0:r.return)&&r.return()}})}function Jr(t,e){if(!t)throw new Error("Iterable cannot be null");return new ee(function(n){re(n,e,function(){var r=t[Symbol.asyncIterator]();re(n,e,function(){r.next().then(function(o){o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ro(t,e){return Jr(qr(t),e)}function jo(t,e){if(t!=null){if(Wr(t))return Co(t,e);if(Fr(t))return To(t,e);if(Hr(t))return Lo(t,e);if(Ur(t))return Jr(t,e);if(Vr(t))return Po(t,e);if(Gr(t))return Ro(t,e)}throw Br(t)}function lt(t,e){return e?jo(t,e):ct(t)}function Mo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Nr(t);return lt(t,n)}var No=vn(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function kt(t,e){var n=typeof e=="object";return new Promise(function(r,o){var s=!1,c;t.subscribe({next:function(h){c=h,s=!0},error:o,complete:function(){s?r(c):n?r(e.defaultValue):o(new No)}})})}function Fo(t){return t instanceof Date&&!isNaN(t)}function ge(t,e){return fe(function(n,r){var o=0;n.subscribe(le(r,function(s){r.next(t.call(e,s,o++))}))})}var Ho=Array.isArray;function Wo(t,e){return Ho(e)?t.apply(void 0,ce([],ae(e))):t(e)}function Uo(t){return ge(function(e){return Wo(t,e)})}function Bo(t,e,n){return n===void 0&&(n=_n),function(r){ur(e,function(){for(var o=t.length,s=new Array(o),c=o,h=o,f=function(g){ur(e,function(){var w=lt(t[g],e),S=!1;w.subscribe(le(r,function(I){s[g]=I,S||(S=!0,h--),h||r.next(n(s.slice()))},function(){--c||r.complete()}))},r)},d=0;d<o;d++)f(d)},r)}}function ur(t,e,n){t?re(n,t,e):e()}function Do(t,e,n,r,o,s,c,h){var f=[],d=0,g=0,w=!1,S=function(){w&&!f.length&&!d&&e.complete()},I=function(C){return d<r?R(C):f.push(C)},R=function(C){s&&e.next(C),d++;var V=!1;ct(n(C,g++)).subscribe(le(e,function(N){o==null||o(N),s?I(N):e.next(N)},function(){V=!0},void 0,function(){if(V)try{d--;for(var N=function(){var j=f.shift();c?re(e,c,function(){return R(j)}):R(j)};f.length&&d<r;)N();S()}catch(j){e.error(j)}}))};return t.subscribe(le(e,I,function(){w=!0,S()})),function(){h==null||h()}}function Fe(t,e,n){return n===void 0&&(n=1/0),U(e)?Fe(function(r,o){return ge(function(s,c){return e(r,s,o,c)})(ct(t(r,o)))},n):(typeof e=="number"&&(n=e),fe(function(r,o){return Do(r,o,t,n)}))}function hn(t,e,n){t===void 0&&(t=0),n===void 0&&(n=wo);var r=-1;return e!=null&&(jr(e)?n=e:r=e),new ee(function(o){var s=Fo(t)?+t-n.now():t;s<0&&(s=0);var c=0;return n.schedule(function(){o.closed||(o.next(c++),0<=r?this.schedule(void 0,r):o.complete())},s)})}function Vo(t,e){return t===void 0&&(t=0),e===void 0&&(e=gn),t<0&&(t=0),hn(t,t,e)}var qo=Array.isArray;function Go(t){return t.length===1&&qo(t[0])?t[0]:t}function Ce(t,e){return fe(function(n,r){var o=0;n.subscribe(le(r,function(s){return t.call(e,s,o++)&&r.next(s)}))})}function Yo(t){for(var e,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var s=(e=Nr(r))!==null&&e!==void 0?e:gn,c=(n=r[0])!==null&&n!==void 0?n:null,h=r[1]||1/0;return fe(function(f,d){var g=[],w=!1,S=function(C){var V=C.buffer,N=C.subs;N.unsubscribe(),rt(g,C),d.next(V),w&&I()},I=function(){if(g){var C=new me;d.add(C);var V=[],N={buffer:V,subs:C};g.push(N),re(C,s,function(){return S(N)},t)}};c!==null&&c>=0?re(d,s,I,c,!0):w=!0,I();var R=le(d,function(C){var V,N,j=g.slice();try{for(var F=Le(j),q=F.next();!q.done;q=F.next()){var ft=q.value,ie=ft.buffer;ie.push(C),h<=ie.length&&S(ft)}}catch(Q){V={error:Q}}finally{try{q&&!q.done&&(N=F.return)&&N.call(F)}finally{if(V)throw V.error}}},function(){for(;g!=null&&g.length;)d.next(g.shift().buffer);R==null||R.unsubscribe(),d.complete(),d.unsubscribe()},void 0,function(){return g=null});f.subscribe(R)})}function Qr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=ko(t);return n?uo(Qr.apply(void 0,ce([],ae(t))),Uo(n)):fe(function(r,o){Bo(ce([r],ae(Go(t))))(o)})}function zo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Qr.apply(void 0,ce([],ae(t)))}function Ko(t,e){return U(e)?Fe(t,e,1):Fe(t,1)}function Et(t){return t<=0?function(){return go}:fe(function(e,n){var r=0;e.subscribe(le(n,function(o){++r<=t&&(n.next(o),t<=r&&n.complete())}))})}function Jo(){return fe(function(t,e){var n,r=!1;t.subscribe(le(e,function(o){var s=n;n=o,r&&e.next([s,o]),r=!0}))})}function Qo(t,e,n){var r=U(t)||e||n?{next:t,error:e,complete:n}:t;return r?fe(function(o,s){var c;(c=r.subscribe)===null||c===void 0||c.call(r);var h=!0;o.subscribe(le(s,function(f){var d;(d=r.next)===null||d===void 0||d.call(r,f),s.next(f)},function(){var f;h=!1,(f=r.complete)===null||f===void 0||f.call(r),s.complete()},function(f){var d;h=!1,(d=r.error)===null||d===void 0||d.call(r,f),s.error(f)},function(){var f,d;h&&((f=r.unsubscribe)===null||f===void 0||f.call(r)),(d=r.finalize)===null||d===void 0||d.call(r)}))}):_n}var Xo=Object.defineProperty,Zo=(t,e,n)=>e in t?Xo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_e=(t,e,n)=>(Zo(t,typeof e!="symbol"?e+"":e,n),n);let es=class{constructor(e){_e(this,"_input"),_e(this,"_length"),_e(this,"_idx",0),_e(this,"_mode",0),_e(this,"_literals",[]),_e(this,"_variables",[]),_e(this,"_braketCount",0),_e(this,"_done",!1),this._input=e,this._length=e.length}concatToLastLiteral(e){this._literals.push(this._literals.pop().concat(e))}concatToLastVariable(e){this._variables.push(this._variables.pop().concat(e))}get(){const e=[...this._literals],n=Object.assign([],e);return Object.defineProperty(n,"raw",{value:e,writable:!1}),{literals:n,variables:this._variables}}run(){for(this._length===0&&this._literals.push("");this._idx<this._length;){const e=this._input.charAt(this._idx);switch(this._mode){case 0:{this._literals.length===0&&this._literals.push(""),e==="{"&&this._idx+1!==this._length&&this._input.charAt(this._idx+1)==="{"?(this._literals.push(""),this._variables.push(""),this._mode=1,this._idx+=1):this.concatToLastLiteral(e);break}case 1:e==="}"&&this._input.charAt(this._idx+1)==="}"?(this._mode=0,this._idx+=1):this.concatToLastVariable(e);break}this._idx+=1}this._mode===1&&(this._literals.pop(),this.concatToLastLiteral(`{{${this._variables.pop()}`)),this._done=!0}};const ts=t=>{const e=t.trim();if(!(e.startsWith("[")&&e.endsWith("]")))return!1;const n=e.slice(1).slice(0,-1).trim();return Number.parseInt(n).toString(10)===n},ns=t=>Number.parseInt(t.trim().slice(1).slice(0,-1).trim());function rs(t,e,n){if(!e.trim())return n?`{{${e}}}`:"";const r=e.trim().split(".").reduce((o,s)=>{if(Array.isArray(o)&&ts(s))return o[ns(s)];if(typeof o=="object"&&o!==null&&s in o)return o[s]},{...t});return typeof r=="string"?r:n?`{{${e}}}`:""}function is(t,e,n=!1){const r=new es(t);r.run();const o=r.get();let[s]=o.literals;for(let c=0;c<o.variables.length;c++)s=s.concat(rs(e,o.variables[c],n)).concat(o.literals[c+1]);return s}const os=(t,e)=>Object.fromEntries(Object.entries(t).map(([n,r])=>[n,is(r,e)]));var ss=Object.defineProperty,as=(t,e,n)=>e in t?ss(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$t=(t,e,n)=>(as(t,typeof e!="symbol"?e+"":e,n),n);const dn="__mia_preview_id",cs=1e6,Xr={"click-element":1,"ctrl-space":1,"focus-element":0,mousedown:1,mousemove:1,"new-configuration":0,notification:1,options:1,"request-resource":1,"service-worker":1,"set-source-map":0,"tag-info":1,update:1,updated:1},ls=t=>Object.keys(Xr).includes(t);function us(t,e){if(t===null||typeof t!="object"||!("type"in t)||typeof t.type!="string")return!1;const{type:n}=t;if(!n.startsWith(e))return!1;const r=n.substring(e.length);return!!ls(r)}const fs=(t,e)=>({...e,type:`${t}${e.type}`}),hs=(t,e)=>{let{type:n}=e;return n.startsWith(t)&&(n=n.substring(t.length)),{...e,type:n}},kn=()=>{let t="#";for(let e=0;e<3;e++)t+=`0${Math.floor(Math.random()*Math.pow(16,2)/2).toString(16)}`.slice(-2);return t};class ds{constructor(e){$t(this,"__instance"),$t(this,"__handler"),$t(this,"__window"),$t(this,"__randomColor"),this.__instance="",this.__handler=e,this.__window=window,this.__randomColor=kn()}postMessage(e,n,r){if(this.__window.__BACKOFFICE_CONFIGURATOR_LOG_LEVEL__==="debug"&&console.assert(e!==this.__window),Xr[n.type]!==1){const o=this.__randomColor,c={background:`${o}22`,color:o},h=this.__window.top!==this.__window;console.groupCollapsed(`%c Msg from ${this.__window.origin} ${h?"(inner)":"(top)"} `,Object.entries(c).map(([f,d])=>`${f}: ${d}`).join("; ")),console.info(`window '${this.__window.origin}' is sending a message of type %c ${n.type} `,"background: lightgreen; color: darkgreen"),console.log("to",e),console.log(n.content),console.groupEnd()}e.postMessage(fs(this.__instance,n),r)}set instance(e){this.__instance=e}get window(){return this.__window}set window(e){this.__window=e}send(e,n,r="*"){this.__window!==e&&this.postMessage(e,n,r)}recv(e,n=null){const r=({data:o,source:s})=>{if((n===null||s===n)&&us(o,this.__instance)){const c=hs(this.__instance,o);this.__handler(c)}};return e.addEventListener("message",r),()=>e.removeEventListener("message",r)}}var ps=Object.defineProperty,ms=(t,e,n)=>e in t?ps(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rn=(t,e,n)=>(ms(t,typeof e!="symbol"?e+"":e,n),n);function vs(){return{configuration:new Ie,focus:new cr(void 0),infos:new Ie,mocks:new Ie,mode:new cr("select"),notification:new Ie,setSourceMap:new Ie,swReady:new Ie(1),updated:new It,uppercaseTags:new Set}}const Zr=t=>{let e=0;const n=t.getValue();return n==="interact"?e="select":n==="select"&&(e="interact"),t.next(e),e},K=vs();function bs(t){switch(t.type){case"options":{const{content:{disableOverlay:e,redirectTo:n,timeout:r}}=t;e&&(Object.defineProperty(this.window,"__BACKOFFICE_CONFIGURATOR_DISABLE_OVERLAY__",{value:!0}),K.mode.next("interact")),r!==void 0&&Object.defineProperty(this.window,"__BACKOFFICE_CONFIGURATOR_PREVIEW_TIMEOUT__",{value:r});const{window:{history:o}}=this;this.window.navigator.serviceWorker.ready.then(()=>n&&o.pushState(o.state,"",n)).catch(()=>{});break}case"ctrl-space":Zr(K.mode);break;case"new-configuration":K.configuration.next({...t.content,type:"reset"});break;case"update":K.configuration.next({...t.content,type:"update"});break;case"focus-element":K.focus.next(t.content);break;case"set-source-map":{const{content:{dictionary:e}}=t;K.setSourceMap.next({...t.content,dictionary:Object.entries(e).reduce((n,[r,o])=>{try{const{href:s}=new URL(r,this.window.location.href),c=typeof o=="string"?{headers:{},query:{},to:o}:o;n[s]={originalFrom:r,...c}}catch{}return n},{})});break}}}class ys{constructor(e){rn(this,"__handler"),rn(this,"__window"),rn(this,"__randomColor"),this.__handler=e,this.__window=window,this.__randomColor=kn()}send(e,n){if(this.__window.__BACKOFFICE_CONFIGURATOR_LOG_LEVEL__==="debug"){const r=this.__randomColor,s={background:`${r}22`,color:r};console.groupCollapsed("%c Msg to Service Worker ",Object.entries(s).map(([c,h])=>`${c}: ${h}`).join("; ")),console.info(`window '${this.__window.origin}' is sending a message of type %c ${n.type} `,"background: lightgreen; color: darkgreen"),console.log(n.content),console.groupEnd()}e.postMessage(n)}get window(){return this.__window}set window(e){this.__window=e}recv(){const e=({data:r})=>{this.__handler(r)},{__window:{navigator:n}}=this;return n.serviceWorker.addEventListener("message",e),()=>n.serviceWorker.removeEventListener("message",e)}}const _s=t=>{switch(t.type){case"source-map-ack":K.swReady.next(0);break}},se=new ds(bs),xt=new ys(_s),ws="en",gs=(t,e=ws)=>typeof t=="string"?t:t==null?void 0:t[e];function ks(t){return Object.entries(t).reduce((e,[n,r])=>(e[n]=gs(r),e),{})}const He=(...t)=>{},ei=t=>Array.isArray(t)?t:[t],ti=({document:{baseURI:t},location:{href:e}})=>n=>new URL(n,new URL(t,e)),ni=(t,e)=>{let n=e;return e instanceof URL||(n=t(typeof e=="string"?e:e.url)),n},$s=(t,e)=>{const{href:n,origin:r}=e;return t===r?n.substring(t.length):n},As=(t,e,n=0)=>{const{selectors:r}=e;return t.querySelector(r[n])};function Ss(t){return document.querySelector(t)}const Es=(t,e)=>{const n=e.get(t.getAttribute("__mia_preview_id"));if(n){const{css:r,rest:o,subscription:s}=n;o.forEach(c=>{var h;return(h=c.__unfocus_handler)==null?void 0:h.call(c)}),s.unsubscribe(),n.elementToFocus.forEach((c,h)=>{Object.assign(c.style,r[h])})}e.delete(t.getAttribute("__mia_preview_id"))},xs=t=>t!==void 0;function Os(t,e,n){const r=new Map,o=Ss.bind(t),s=e.pipe(Jo(),Qo(([c])=>{var h;if(c!==void 0){const f=As(t,c);f!==null&&((h=f.__unfocus_handler)==null||h.call(f),Es(f,r))}}),ge(([,c])=>c),Ce(xs),ge(c=>{const[h,...f]=c.selectors,d=f.reduce((g,w)=>{var S;const I=o(w);if(I){g.push(I);const R=(S=I.__focus_handler)==null?void 0:S.call(I);R&&"then"in R&&R.catch(He)}return g},[]);return{first:h,next:c,otherElements:d}}),ge(c=>({...c,firstElement:o(c.first)})),Ce(c=>c.firstElement!==null),ge(c=>{var h,f;return{...c,focus:(f=(h=c.firstElement).__focus_handler)==null?void 0:f.call(h)}}),Ko(({focus:c,...h})=>(c&&"then"in c?c:Promise.resolve(c??h.firstElement)).then(d=>({focus:d,...h})).catch(()=>({focus:void 0,...h})))).subscribe(({otherElements:c,next:h,firstElement:f,focus:d})=>{const g=Object.keys(h.style),w=new me,S=ei(d??f).filter(Boolean),I={css:[],elementToFocus:S,rest:c,subscription:w},R=g.reduce((C,V)=>(S.forEach((N,j)=>{var F;C.css[j]=Object.assign((F=C.css[j])!=null?F:{},{[V]:N.style[V]})}),C),I);w.add(n.pipe(Ce(C=>C==="select"),Et(1)).subscribe(()=>{S.forEach(C=>{Object.assign(C.style,h.style)})})),r.set(f.getAttribute("__mia_preview_id"),R)});return()=>s.unsubscribe()}var on;const Ot=window,We=Ot.trustedTypes,fr=We?We.createPolicy("lit-html",{createHTML:t=>t}):void 0,pn="$lit$",we=`lit$${(Math.random()+"").slice(9)}$`,ri="?"+we,Is=`<${ri}>`,Ue=document,it=()=>Ue.createComment(""),ot=t=>t===null||typeof t!="object"&&typeof t!="function",ii=Array.isArray,Cs=t=>ii(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",sn=`[
12
- \f\r]`,nt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hr=/-->/g,dr=/>/g,Oe=RegExp(`>|${sn}(?:([^\\s"'>=/]+)(${sn}*=${sn}*(?:[^
13
- \f\r"'\`<>=]|("|')|))|$)`,"g"),pr=/'/g,mr=/"/g,oi=/^(?:script|style|textarea|title)$/i,Ls=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),Ts=Ls(1),st=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),vr=new WeakMap,Ne=Ue.createTreeWalker(Ue,129,null,!1),Ps=(t,e)=>{const n=t.length-1,r=[];let o,s=e===2?"<svg>":"",c=nt;for(let f=0;f<n;f++){const d=t[f];let g,w,S=-1,I=0;for(;I<d.length&&(c.lastIndex=I,w=c.exec(d),w!==null);)I=c.lastIndex,c===nt?w[1]==="!--"?c=hr:w[1]!==void 0?c=dr:w[2]!==void 0?(oi.test(w[2])&&(o=RegExp("</"+w[2],"g")),c=Oe):w[3]!==void 0&&(c=Oe):c===Oe?w[0]===">"?(c=o??nt,S=-1):w[1]===void 0?S=-2:(S=c.lastIndex-w[2].length,g=w[1],c=w[3]===void 0?Oe:w[3]==='"'?mr:pr):c===mr||c===pr?c=Oe:c===hr||c===dr?c=nt:(c=Oe,o=void 0);const R=c===Oe&&t[f+1].startsWith("/>")?" ":"";s+=c===nt?d+Is:S>=0?(r.push(g),d.slice(0,S)+pn+d.slice(S)+we+R):d+we+(S===-2?(r.push(void 0),f):R)}const h=s+(t[n]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[fr!==void 0?fr.createHTML(h):h,r]};class at{constructor({strings:e,_$litType$:n},r){let o;this.parts=[];let s=0,c=0;const h=e.length-1,f=this.parts,[d,g]=Ps(e,n);if(this.el=at.createElement(d,r),Ne.currentNode=this.el.content,n===2){const w=this.el.content,S=w.firstChild;S.remove(),w.append(...S.childNodes)}for(;(o=Ne.nextNode())!==null&&f.length<h;){if(o.nodeType===1){if(o.hasAttributes()){const w=[];for(const S of o.getAttributeNames())if(S.endsWith(pn)||S.startsWith(we)){const I=g[c++];if(w.push(S),I!==void 0){const R=o.getAttribute(I.toLowerCase()+pn).split(we),C=/([.?@])?(.*)/.exec(I);f.push({type:1,index:s,name:C[2],strings:R,ctor:C[1]==="."?js:C[1]==="?"?Ns:C[1]==="@"?Fs:Ct})}else f.push({type:6,index:s})}for(const S of w)o.removeAttribute(S)}if(oi.test(o.tagName)){const w=o.textContent.split(we),S=w.length-1;if(S>0){o.textContent=We?We.emptyScript:"";for(let I=0;I<S;I++)o.append(w[I],it()),Ne.nextNode(),f.push({type:2,index:++s});o.append(w[S],it())}}}else if(o.nodeType===8)if(o.data===ri)f.push({type:2,index:s});else{let w=-1;for(;(w=o.data.indexOf(we,w+1))!==-1;)f.push({type:7,index:s}),w+=we.length-1}s++}}static createElement(e,n){const r=Ue.createElement("template");return r.innerHTML=e,r}}function Be(t,e,n=t,r){var o,s,c,h;if(e===st)return e;let f=r!==void 0?(o=n._$Co)===null||o===void 0?void 0:o[r]:n._$Cl;const d=ot(e)?void 0:e._$litDirective$;return(f==null?void 0:f.constructor)!==d&&((s=f==null?void 0:f._$AO)===null||s===void 0||s.call(f,!1),d===void 0?f=void 0:(f=new d(t),f._$AT(t,n,r)),r!==void 0?((c=(h=n)._$Co)!==null&&c!==void 0?c:h._$Co=[])[r]=f:n._$Cl=f),f!==void 0&&(e=Be(t,f._$AS(t,e.values),f,r)),e}class Rs{constructor(e,n){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var n;const{el:{content:r},parts:o}=this._$AD,s=((n=e==null?void 0:e.creationScope)!==null&&n!==void 0?n:Ue).importNode(r,!0);Ne.currentNode=s;let c=Ne.nextNode(),h=0,f=0,d=o[0];for(;d!==void 0;){if(h===d.index){let g;d.type===2?g=new ut(c,c.nextSibling,this,e):d.type===1?g=new d.ctor(c,d.name,d.strings,this,e):d.type===6&&(g=new Hs(c,this,e)),this.u.push(g),d=o[++f]}h!==(d==null?void 0:d.index)&&(c=Ne.nextNode(),h++)}return s}p(e){let n=0;for(const r of this.u)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,n),n+=r.strings.length-2):r._$AI(e[n])),n++}}class ut{constructor(e,n,r,o){var s;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=o,this._$Cm=(s=o==null?void 0:o.isConnected)===null||s===void 0||s}get _$AU(){var e,n;return(n=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&n!==void 0?n:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=Be(this,e,n),ot(e)?e===z||e==null||e===""?(this._$AH!==z&&this._$AR(),this._$AH=z):e!==this._$AH&&e!==st&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Cs(e)?this.k(e):this.g(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}g(e){this._$AH!==z&&ot(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ue.createTextNode(e)),this._$AH=e}$(e){var n;const{values:r,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=at.createElement(o.h,this.options)),o);if(((n=this._$AH)===null||n===void 0?void 0:n._$AD)===s)this._$AH.p(r);else{const c=new Rs(s,this),h=c.v(this.options);c.p(r),this.T(h),this._$AH=c}}_$AC(e){let n=vr.get(e.strings);return n===void 0&&vr.set(e.strings,n=new at(e)),n}k(e){ii(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,o=0;for(const s of e)o===n.length?n.push(r=new ut(this.S(it()),this.S(it()),this,this.options)):r=n[o],r._$AI(s),o++;o<n.length&&(this._$AR(r&&r._$AB.nextSibling,o),n.length=o)}_$AR(e=this._$AA.nextSibling,n){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,n);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var n;this._$AM===void 0&&(this._$Cm=e,(n=this._$AP)===null||n===void 0||n.call(this,e))}}class Ct{constructor(e,n,r,o,s){this.type=1,this._$AH=z,this._$AN=void 0,this.element=e,this.name=n,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,n=this,r,o){const s=this.strings;let c=!1;if(s===void 0)e=Be(this,e,n,0),c=!ot(e)||e!==this._$AH&&e!==st,c&&(this._$AH=e);else{const h=e;let f,d;for(e=s[0],f=0;f<s.length-1;f++)d=Be(this,h[r+f],n,f),d===st&&(d=this._$AH[f]),c||(c=!ot(d)||d!==this._$AH[f]),d===z?e=z:e!==z&&(e+=(d??"")+s[f+1]),this._$AH[f]=d}c&&!o&&this.j(e)}j(e){e===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class js extends Ct{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===z?void 0:e}}const Ms=We?We.emptyScript:"";class Ns extends Ct{constructor(){super(...arguments),this.type=4}j(e){e&&e!==z?this.element.setAttribute(this.name,Ms):this.element.removeAttribute(this.name)}}class Fs extends Ct{constructor(e,n,r,o,s){super(e,n,r,o,s),this.type=5}_$AI(e,n=this){var r;if((e=(r=Be(this,e,n,0))!==null&&r!==void 0?r:z)===st)return;const o=this._$AH,s=e===z&&o!==z||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,c=e!==z&&(o===z||s);s&&this.element.removeEventListener(this.name,this,o),c&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var n,r;typeof this._$AH=="function"?this._$AH.call((r=(n=this.options)===null||n===void 0?void 0:n.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e)}}class Hs{constructor(e,n,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Be(this,e)}}const br=Ot.litHtmlPolyfillSupport;br==null||br(at,ut),((on=Ot.litHtmlVersions)!==null&&on!==void 0?on:Ot.litHtmlVersions=[]).push("2.7.0");const Ws=(t,e,n)=>{var r,o;const s=(r=n==null?void 0:n.renderBefore)!==null&&r!==void 0?r:e;let c=s._$litPart$;if(c===void 0){const h=(o=n==null?void 0:n.renderBefore)!==null&&o!==void 0?o:null;s._$litPart$=c=new ut(e.insertBefore(it(),h),h,void 0,n??{})}return c._$AI(t),c};const Us=t=>{const e=t.charAt(0);return!(e!==t.charAt(t.length-1)||e!=="'"&&e!=='"')};function Bs(t){const e=t.match(/([^.]+)/g);return n=>e.reduce((r,o)=>{let s=o;if(o.startsWith("[")&&o.endsWith("]")){const c=o.slice(1,-1),h=Number.parseInt(c);!Number.isNaN(h)&&h.toString()===c?s=h:(c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'"))&&(s=c.slice(1,-1))}if(s==="")throw new TypeError("42",{cause:t});return typeof r=="object"&&r!==null?r[s]:void 0},n)}function Ds(t,e={}){return t.reduce((n,r,o)=>{const s=r.trim(),c=Number.parseInt(s),h=Number.parseFloat(s);if(s==="")n[o]=s;else if(Us(s))n[o]=s.slice(1,-1);else if(["true","false"].includes(s))n[o]=s==="true";else if(!Number.isNaN(c)&&c.toString()===s)n[o]=c;else if(!Number.isNaN(h)&&h.toString()===s)n[o]=h;else if(s.startsWith("{")||s.startsWith("["))try{n[o]=JSON.parse(s)}catch(f){if(f instanceof SyntaxError)throw new TypeError("43",{cause:f.message})}else n[o]=Bs(s)(e);return n},[])}function si(t){return Array.isArray(t)?t:[t]}function Vs(t){const e=typeof t=="string"?[t]:t;return Array.isArray(e)?e:si(e.uris)}const qs=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function Gs(t){return qs.includes(t.tag)}function Ys(t){return Array.isArray(t)?t:[t]}function ai(t,e,n){if(typeof e!="object"){t.push(`${e}`);return}Ys(e).forEach(r=>{if(typeof r!="object"){t.push(`${r}`);return}const{tag:o,attributes:s={},booleanAttributes:c=[],properties:h={}}=r,f=Gs(r),d=`<${o}`,g=f?"/>":">",w=`</${o}>`,S=Object.entries(s).reduce((j,[F,q])=>(j.push(`${F}="${q}"`),j),[]),I=si(c),{override:R,props:C}=Object.entries(h).reduce((j,[F,q])=>(n.has(F)?typeof q=="string"&&(j.override[F]=q):j.props[F]=q,j),{override:{},props:{}}),V=Array.from(n.keys()).map(j=>{var F;return`.${j}=\${${(F=R[j])!=null?F:j}}`}),N=Object.entries(C).reduce((j,[F,q])=>{switch(typeof q){case"object":case"number":case"boolean":j.push(`.${F}=\${${JSON.stringify(q)}}`);break;case"string":j.push(`.${F}=\${"${q}"}`);break}return j},[]);if(t.push([d,S.join(" "),I.join(" "),V.join(" "),N.join(" "),g].join(" ")),!f){const{content:j}=r;j!==void 0&&ai(t,j,n),t.push(w)}})}function zs(t,e=new Set){const n=[];return ai(n,t,e),n.join(" ")}const Ks="modulepreload",Js=function(t,e){return new URL(t,e).href},yr={},Qs=function(e,n,r){if(!n||n.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Js(s,r),s in yr)return;yr[s]=!0;const c=s.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(!!r)for(let g=o.length-1;g>=0;g--){const w=o[g];if(w.href===s&&(!c||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${h}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Ks,c||(d.as="script",d.crossOrigin=""),d.href=s,document.head.appendChild(d),c)return new Promise((g,w)=>{d.addEventListener("load",g),d.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e())};function ci(t,...e){Qs(()=>import("./assets/errors-af3a2945.js"),[],import.meta.url).then(({default:n})=>{const r=n[t];r?console.error(r(...e)):console.error(...e)}).catch(n=>{console.error(`[micro-lc][composer]: Dynamic import error while importing logger utils - ${n.message}`)})}function Xs(t){return e=>{ci("0",t,e.message)}}const Zs=Object.freeze(Object.defineProperty({__proto__:null,dynamicImportError:Xs,error:ci},Symbol.toStringTag,{value:"Module"}));var _r=Zs;var ea=Object.defineProperty,ta=(t,e,n)=>e in t?ea(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,pe=(t,e,n)=>(ta(t,typeof e!="symbol"?e+"":e,n),n);class na{constructor(e){pe(this,"_i",0),pe(this,"_s"),pe(this,"_l"),pe(this,"_d",!1),pe(this,"_m",0),pe(this,"_st",[]),pe(this,"_n",0),pe(this,"_li",[]),pe(this,"_v",[]),this._s=e,this._l=e.length,e.length===0&&(this._d=!0)}_sw(e){this._m=e}_fst(){this._st=[]}_fn(){this._v.push(this._st.join("")),this._fst()}_fs(){this._li.push(this._st.join("")),this._fst()}_fpn(){this._li.push(this._st.slice(0,-1).join("")),this._fst()}_nx(){const e=this._s.charAt(this._i);switch(this._m){case 1:{e==="{"?(this._n+=1,this._st.push(e)):e==="}"&&this._n===0?(this._fn(),this._sw(0)):e==="}"&&this._n>0?(this._st.push(e),this._n-=1):this._st.push(e);break}case 2:{e==="{"?(this._fpn(),this._sw(1)):(this._sw(0),this._st.push(e));break}case 0:default:{e==="$"&&this._sw(2),this._st.push(e);break}}if(this._i+=1,this._i===this._l){if(this._m===2)this._sw(0);else if(this._m===1)throw new TypeError("41",{cause:`${this._i}`});this._fs(),this._d=!0}}_c(){const e=[...this._li],n=Object.assign([],e);return Object.defineProperty(n,"raw",{value:e,writable:!1}),{literals:n,variables:this._v}}run(){for(;!this._d;)this._nx();return this._c()}}const ra=async(t,e="SHA-1")=>window.crypto.subtle.digest(e,new TextEncoder().encode(t)),an=new Map;async function ia(t){const e=await ra(t).catch(n=>{_r.error("40",t,n.message)});if(!e||!an.has(e)){let n;try{n=new na(t).run(),e&&an.set(e,n)}catch(r){r instanceof TypeError&&_r.error(r.message,t,r.cause);const o=[];Object.defineProperty(o,"raw",{value:o,writable:!1}),n={literals:o,variables:[]}}return n}return an.get(e)}class cn extends Ie{}function oa(){const t=[],e=new Proxy({},{get(n,r,o){return typeof r=="string"&&!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=new cn),Reflect.get(n,r,o)}});return new Proxy(new cn,{get(n,r,o){if(r==="pool")return e;const s=typeof r=="string"?Number.parseInt(r,10):Number.NaN;return Number.isNaN(s)?Reflect.get(n,r,o):(t.at(s)===void 0&&(t[s]=new cn),t[s])}})}async function sa(t,{extraProperties:e,context:n={}}={}){const r=Array.isArray(e)?new Set(e):e,o=zs(t,r),s=await ia(o),c=Ds(s.variables,n),h=Ts(s.literals,...c);return(f,d)=>Ws(h,f,d)}async function aa(t,e=window,n=console.error){var r;let o=[],s,c=Promise.resolve();if(t.sources){const{sources:h}=t;s=!Array.isArray(h)&&typeof h!="string"?(r=h.importmap)!=null?r:{}:{};try{e.importShim.addImportMap(s)}catch(f){n(f)}o=Vs(h),o.length>0&&(c=Promise.all(o.map(f=>e.importShim(f).catch(n))))}return c.then(()=>({...t,sources:{importmap:s,uris:o}}))}async function ca(t,e,n={}){return sa(t.content,{context:n,extraProperties:new Set(Object.keys(n))}).then(o=>(o(e),null))}const la=t=>{var e;return{data:{message:t.message,name:t.name,stack:(e=t.stack)!=null?e:""},description:"preview.notifications.error.description",message:"preview.notifications.error.message",status:"error"}},li=(t,e)=>se.send(t.parent,{content:la(e),type:"notification"}),ui=t=>"clientX"in t&&"clientY"in t;function wr(t,e){return n=>{ui(n)&&se.send(t.parent,{content:{bubbles:!0,cancelable:!1,clientX:n.clientX,clientY:n.clientY},type:e})}}const ua=(t,e)=>t.has(e.tagName)&&e.hasAttribute(dn),fa=(t,e)=>{const{document:n}=t;return r=>{let o;if(ui(r)){const{clientX:s,clientY:c}=r;o=n.elementsFromPoint(s,c).reduce((h,f)=>{if(ua(e.uppercaseTags,f)){const d=f.getAttribute(dn);h.ids.push(d),h.selectors.push(`[${dn}="${d}"]`)}return h},{ids:[],selectors:[]})}(e.mode.getValue()==="select"||o===void 0)&&se.send(t.parent,{content:o&&(o.ids.length>0?o:void 0),type:"click-element"})}},ha=t=>e=>{e.ctrlKey&&e.key===" "&&(e.preventDefault(),Zr(t.mode),t.focus.next(void 0))},da=([t,e])=>lt(e.then(n=>[t,n])),pa=([t,e])=>{const n={label:t,properties:{},type:"layout"},{__manifest:r=Promise.resolve(n)}=e,o=r.then(s=>[e,{__manifest:{...n,...s},tag:t}]).catch(()=>[e,{__manifest:n,tag:t}]);return lt(o)},ma=(t,e)=>lt(e.map(n=>[n,t.whenDefined(n)])).pipe(Fe(da),Fe(pa)),va=500;function $n(t){t instanceof Error&&li(this,t)}function ba(t,e){const n=$n.bind(this);return t.pipe(Fe(([,{__manifest:{label:r,description:o,...s},tag:c}])=>(delete s.mocks,Mo({info:{...ks({description:o,label:r}),...s},tag:c}))),Yo(va),Ce(r=>r.length>0)).subscribe({error:n,next:r=>e(r)})}function ya(t){const e=$n.bind(this);return t.pipe(ge(([,{__manifest:{mocks:n={}},tag:r}])=>[r,n])).subscribe({error:e,next:n=>{K.mocks.next(n)}})}async function fi(t,{addInfo:e,tags:n}){const{subscription:r}=this,o=$n.bind(this);if(t){const s=ma(this.customElements,n);return aa(t,this,o).then(()=>{r.add(ba.call(this,s,e)),r.add(ya.call(this,s))})}}const hi=(t,e)=>{const{document:n}=t;let r=e.firstElementChild;return r===null&&(r=n.createElement("div"),r.style.height="100%",r.style.width="100%",r.style.overflow="auto",r.style.display="flex",e.appendChild(r)),r};async function mn(t,e){const n=oa(),{proxyWindow:r=this}=this;return ca({content:t,sources:{importmap:{},uris:[]}},hi(this,e),{eventBus:n,proxyWindow:r})}function di(t){hi(this,t).remove()}var _a=Object.defineProperty,wa=(t,e,n)=>e in t?_a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,gr=(t,e,n)=>(wa(t,typeof e!="symbol"?e+"":e,n),n);function kr(t,e,n){const{properties:r,attributes:o,booleanAttributes:s=[]}=t,c=Object.assign(Object.fromEntries(ei(s).map(f=>[f,!0])),{...o,...r});return e(c).map(({url:f,method:d="GET",notify:g=!1,handler:w=()=>Promise.resolve(new Response)})=>{var S;const I=os({...f,method:d},c),R=new URL(I.pathname,(S=I.origin)!=null?S:n);return[R.href,d,(C,V)=>w(C,V).finally(()=>{g&&this.notify(pi(d,R))})]})}const ga=(t,e)=>{const{href:n,search:r}=t;return n.replace(/\?$/,"").substring(0,n.length-r.length).match(new RegExp(`^${e}$`))!==null},ka=(t,e)=>{const{href:n}=t;return n.match(new RegExp(`^${e.replace(/\/$/,"")}/`))!==null};class $a extends Map{constructor(e){super(),gr(this,"notify"),gr(this,"__urlMap",new Map),this.notify=e}add(e,n){var r,o;const{method:s,url:c}=e,h=(r=this.get(s))!=null?r:new Map,f=(o=this.__urlMap.get(s))!=null?o:[];h.set(c,n),f.push(c),this.set(s,h),this.__urlMap.set(s,f)}match(e){var n;const{method:r,url:o}=e,s=this.__urlMap.get(r);if(s===void 0)return;const c=s.reduce((h,f,d,g)=>{if(ga(o,f)||ka(o,f)){if(h===void 0)return d;if(g[h].length<f.length)return d}return h},void 0);if(c!==void 0)return(n=this.get(r))==null?void 0:n.get(s[c])}}const Aa=t=>([e,n,r])=>t.add({method:n,url:e},r);async function $r(t,e,n,r){const o=Aa(t);return Array.isArray(e)?Promise.all(e.map(s=>kr.call(t,s,n,r)).flat().map(o)).then(He):Promise.all(kr.call(t,e,n,r).map(o)).then(He)}var Ar;const Sr=(Ar=window.__BACKOFFICE_CONFIGURATOR_PREVIEW_TIMEOUT__)!=null?Ar:5e3,Sa=t=>t.includes("-"),Er=t=>({data:{tag:t},description:"preview.notifications.no-webcomponent-definition.description",message:"preview.notifications.no-webcomponent-definition.message",status:"warning"});async function Ea(t,e=[]){const{location:{href:n},fetch:r}=this,o=ti(this),s=new $a(this.notify.bind(this));await Promise.all(e.map(async h=>{var f;let d=()=>[];const g=await Promise.race([kt(hn(Sr)),kt(K.mocks.pipe(Ce(([S])=>S===h),Et(1)))]);if(g===0)this.notify(Er(h));else{const[,{fetch:S}]=g;S!==void 0&&(d=S)}const w=(f=t.get(h))!=null?f:[];return $r(s,w,d,n)})).catch(h=>h instanceof Error&&li(this,h));const c=async(h,f)=>{var d;const g=ni(o,h),w=s.match({method:(d=f==null?void 0:f.method)!=null?d:"GET",url:g});return w!==void 0?w(g,f).then(S=>S):r(h,f)};if(this.proxyWindow){const h=Object.assign(c,{update:async f=>{let d=()=>[];if(Sa(f.tag)){const g=await Promise.race([kt(hn(Sr)),kt(K.mocks.pipe(Ce(([w])=>w===f.tag),Et(1)))]);if(g===0)this.notify(Er(f.tag));else{const[,{fetch:w}]=g;w!==void 0&&(d=w)}}return $r(s,f,d,n)}});this.fetch=h,this.proxyWindow.fetch=h}}function xa(t,e){const{href:n,origin:r,pathname:o}=new URL(t??"",this.location.href);let s=n;return r===this.location.origin&&(s=`{ your domain }${o}`),this.notify({data:{nextUrl:s,target:e??"[undefined]"},description:"preview.notifications.navigation-event.description.open",message:"preview.notifications.navigation-event.message",status:"default"}),this}function Oa(t,e,n){const{href:r,origin:o,pathname:s}=new URL(n);let c=r;o===this.location.origin&&(c=`${s}`),this.notify({data:{nextUrl:c},description:"preview.notifications.navigation-event.description.pushState",message:"preview.notifications.navigation-event.message",status:"default"})}function Ia(t,e,n){const{href:r,origin:o,pathname:s,search:c}=new URL(n);let h=r;o===this.location.origin&&(h=`${s}${c}`),this.notify({data:{nextUrl:h},description:"preview.notifications.navigation-event.description.replaceState",message:"preview.notifications.navigation-event.message",status:"info"})}function Ca(t){return new Proxy(t,{get:(e,n)=>n==="pushState"?(r,o,s)=>{Oa.call(this,r,o,new URL(s??"",new URL(this.document.baseURI,this.location.href)))}:n==="replaceState"?(r,o,s)=>{Ia.call(this,r,o,new URL(s??"",new URL(this.document.baseURI,this.location.href)))}:e[n]})}class xr extends Map{get length(){return this.size}clear(){super.clear()}getItem(e){var n;return(n=super.get(e))!=null?n:null}key(){return null}removeItem(e){super.delete(e)}setItem(e,n){super.set(e,n)}}const La=t=>t.tagName==="A";function Ta(t){const{prototype:{createElement:e}}=Document;return Document.prototype.createElement=function(r,o){const s=e.call(this,r,o);if(La(s)){const c=()=>{var h;return t.notify({data:{href:$s(t.location.origin,new URL(s.href,t.location.href)),target:(h=s.getAttribute("target"))!=null?h:"_self"},description:"preview.notifications.anchor.description",message:"preview.notifications.anchor.message",status:"info"})};Object.defineProperty(s,"click",{get(){return c},set:He})}return s},()=>{Document.prototype.createElement=e}}function Pa(t,e){let n=t.fetch.bind(t);const r={notify:g=>e.next(g)},o=new xr,s=new xr,c=Object.assign(t,r),h=new Proxy(c,{get(g,w,S){if(w==="fetch")return n;if(w==="history")return Ca.call(g,g.history);if(w==="open")return xa.bind(g);if(w==="localStorage")return o;if(w==="sessionStorage")return s;const I=Reflect.get(g,w);return typeof I!="function"?I:function(...C){return Reflect.apply(I,this===S?t:this,C)}},set(g,w,S){return w==="fetch"?(n=S,!0):Reflect.set(g,w,S)}}),f=Object.assign(c,{proxyWindow:h}),d=Ta(f);return{sandbox:f,unpatch:d}}var Ra=Object.defineProperty,ja=(t,e,n)=>e in t?Ra(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Or=(t,e,n)=>(ja(t,typeof e!="symbol"?e+"":e,n),n);function Ma(t,e){const{document:n}=t,r=n.createElement("div"),o="";r.style.display=o,r.style.position="fixed",r.style.width="100vw",r.style.height="100%",r.style.backgroundColor="rgba(0, 0, 0, 0.05)",r.style.zIndex=`${cs}`;const s=()=>r.style.display===o,c=()=>s()?r.style.display="none":r.style.display=o,h=e.pipe(Ce(f=>t.__BACKOFFICE_CONFIGURATOR_DISABLE_OVERLAY__?f==="interact":!0)).subscribe(f=>{switch(f){case"interact":t.dispatchEvent(new Event("mousedown")),r.style.display="none";break;case"select":r.style.display=o;break;case 0:default:c();break}});return n.body.appendChild(r),{cleanup:()=>h.unsubscribe(),overlay:r}}const Na=t=>{const e=t.createElement("div");return e.style.height="inherit",e.style.width="inherit",t.body.appendChild(e),e};function Fa(t){const e=t;return Object.assign(t,{bootstrap:fi.bind(e),mocks:{fetch:new Map},subscription:new me,unmount:di.bind(e),update:mn.bind(e)})}class Ha{constructor(){Or(this,"_results",new Map),Or(this,"_queue",Promise.resolve())}add(e){const r=[...e].map(o=>{let s,c;const h=new Promise((f,d)=>{s=f,c=d});return this._queue=this._queue.then(()=>o()).then(f=>{s(f)}).catch(f=>c(f)),h});return Promise.allSettled(r)}get(e){return this._results.get(e)}}const Wa=t=>e=>{e.forEach(n=>{n.status==="rejected"&&t.next({data:{reason:n.reason},description:"preview.notifications.lifecycle.description",message:"preview.notifications.lifecycle.message",status:"error"})})},Ua=t=>e=>{t.infos.next(e),e.forEach(({tag:n})=>t.uppercaseTags.add(n.toUpperCase()))},Ba=(t,e,n)=>{const r=new Ha,o=n.configuration.pipe(zo(K.swReady.pipe(Et(1))),ge(([s])=>s)).subscribe(s=>{const{configuration:c}=s,{content:h}=c;let f;if(s.type==="reset"){const{contexts:d,tags:g}=s;f=r.add([()=>di.call(t,e),()=>fi.call(t,c,{addInfo:Ua(n),tags:g}),()=>Ea.call(t,d,s.tags),()=>mn.call(t,h,e).finally(()=>n.updated.next(0))])}else{const{context:d}=s;f=r.add([()=>{var g,w,S;return(S=(g=t.proxyWindow)==null?void 0:(w=g.fetch).update)==null?void 0:S.call(w,d)},()=>mn.call(t,h,e).finally(()=>n.updated.next(0))])}f.then(Wa(n.notification)).catch(He)});return()=>o.unsubscribe()},Da=t=>{const{body:e}=t;e.style.height="100%",e.style.padding="0",e.style.margin="0"},Va=(t,e)=>{const{location:{origin:n,port:r,protocol:o}}=t;return!(n!==e.origin||r!==e.port||o!==e.protocol)},pi=(t,e)=>({data:{method:t,url:e.href.substring(e.origin.length)},description:"preview.notifications.fetch-event.description",message:"preview.notifications.fetch-event.message",status:"info"}),qa=(t,e)=>{const n=ti(t),{document:r,parent:o}=t;if(o===t)return;const s=t.fetch.bind(t);t.fetch=(c,h)=>{var f;const d=ni(n,c);return Va(r,d)&&e.next(pi((f=h==null?void 0:h.method)!=null?f:"GET",d)),s(c,h)}};function Ga(t,e){Da(t.document),qa(t,e.notification);const{cleanup:n}=Ma(t,e.mode.asObservable()),r=Os(t.document,e.focus.asObservable(),e.mode.asObservable()),o=Na(t.document),s=Fa(t),{sandbox:c,unpatch:h}=Pa(s,e.notification),f=Ba(c,o,e);return{cleanup:()=>{f(),h(),r(),n()},sandboxedWindow:c}}function mi(t,...e){if(this.__BACKOFFICE_CONFIGURATOR_LOG_LEVEL__==="debug"){const n=kn(),o={background:`${n}22`,color:n};console.groupCollapsed(`%c Preview ${this.location.href}`,Object.entries(o).map(([s,c])=>`${s}: ${c}`).join("; ")),console[t](...e),console.groupEnd()}}function Ya(t){const e=mi.bind(this);t.installing?e("info","Service worker installing"):t.waiting?e("info","Service worker installed"):t.active&&e("info","Service worker active")}const za=async t=>{const{navigator:e}=t;if("serviceWorker"in e)return e.serviceWorker.register("./service-worker.js",{scope:"./"}).then(n=>Ya.call(t,n)).catch(n=>console.error(n)),e.serviceWorker.ready.then(n=>{var r;return(r=n.active)!=null?r:Promise.reject(new TypeError("serviceWorker not active"))});mi.call(t,"error","serviceWorker is not available")},Ka=async t=>(se.window=t,xt.window=t,za(t));function Ja(t,e){const n=new me;return e&&n.add(t.setSourceMap.subscribe(r=>xt.send(e,{content:r,type:"set-source-map"}))),n.add(t.updated.subscribe(()=>{se.send(window.parent,{content:{},type:"updated"})})),n.add(t.infos.subscribe(r=>{se.send(window.parent,{content:r,type:"tag-info"})})),n.add(t.notification.subscribe(r=>{se.send(window.parent,{content:r,type:"notification"})})),n.add(t.mode.subscribe(r=>{se.send(window.parent,{content:{mode:r},type:"ctrl-space"})})),()=>n.unsubscribe()}function Qa(t,...e){const n=e.map(({type:r,handler:o})=>(t.addEventListener(r,o),()=>t.removeEventListener(r,o)));return()=>{n.forEach(r=>r())}}function Xa(t,e){t.addEventListener("unload",()=>{t.subscription.unsubscribe(),e.forEach(n=>n())})}(async t=>{const e=await Ka(t);let n=He;const r=se.recv(t,t.top);if(e){const f=xt.recv(),d=Vo(100).subscribe(()=>se.send(t.parent,{content:{status:"ready"},type:"service-worker"}));n=()=>{f(),d.unsubscribe(),xt.send(e,{content:{},type:"unload-client"})}}const o=Ja(K,e),s=Qa(t,{handler:ha(K),type:"keydown"},{handler:wr(t,"mousemove"),type:"mousemove"},{handler:wr(t,"mousedown"),type:"mousedown"},{handler:fa(t,K),type:"mousedown"}),{cleanup:c,sandboxedWindow:h}=Ga(t,K);Xa(h,[c,s,o,n,r])})(window).catch(t=>{throw t});