PageSourceSearch

https://www.comarch.it/dist/js/chunks/TrainingSearch-D-f1tEHf.js

js comarch.it collected 2026-10-06 12:23:56 UTC 302,540 bytes, 766 lines download raw bytes

1import{T as ro,c as qc}from"../main-IQqeOzm7.js";import{i as X}from"./IconRenderer-BkRx-K7E.js";import{S as Ie,r as Gi,e as Gf,c as qi,_ as U,a as qe,i as Jf,b as Yf}from"./Subscriber-C5bwvPMt.js";import{a as Kf,D as Qf}from"./DateRangePicker-DtlWB-H8.js";import{P as gi}from"./PaginationRenderer-14-x3y_I.js";import{a as Zf,b as Xf,P as eh}from"./Pagination-BJ-GL264.js";import{a as th,S as rh}from"./Slider-BPXiuMoB.js";import{H as nh}from"./Header-CzerSYeI.js";import{T as ih}from"./TrainingTiles-VJOwTwfl.js";import{C as oh}from"./CheckboxField-bURoD1v_.js";import{T as sh}from"./TextField-4YyfPyyG.js";import"./AssetUrl-B5-qCeML.js";import"./jquery-BoRPd-fL.js";import"./_commonjsHelpers-CqkleIqs.js";import"./dayjs.min-yA6d0oLc.js";import"./swiper.esm.bundle-D1iY6l3P.js";/* empty css               *//* empty css                     */import"./Btn-mNwuUIh4.js";import"./FormBase-DxENdrze.js";import"./InputActions-DuSxCZt4.js";function ah(u){for(;u;){var e=u,i=e.closed,s=e.destination,c=e.isStopped;if(i||c)return!1;s&&s instanceof Ie?u=s:u=null}return!0}function uh(u,e,i){if(u){if(u instanceof Ie)return u;if(u[Gi])return u[Gi]()}return!u&&!e&&!i?new Ie(Gf):new Ie(u,e,i)}var ch=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function lh(u){return u}function fh(u){return u.length===0?lh:u.length===1?u[0]:function(i){return u.reduce(function(s,c){return c(s)},i)}}var ae=(function(){function u(e){this._isScalar=!1,e&&(this._subscribe=e)}return u.prototype.lift=function(e){var i=new u;return i.source=this,i.operator=e,i},u.prototype.subscribe=function(e,i,s){var c=this.operator,a=uh(e,i,s);if(c?a.add(c.call(a,this.source)):a.add(this.source||qi.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),qi.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},u.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(i){qi.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),ah(e)?e.error(i):console.warn(i)}},u.prototype.forEach=function(e,i){var s=this;return i=Lo(i),new i(function(c,a){var n;n=s.subscribe(function(t){try{e(t)}catch(r){a(r),n&&n.unsubscribe()}},a,c)})},u.prototype._subscribe=function(e){var i=this.source;return i&&i.subscribe(e)},u.prototype[ch]=function(){return this},u.prototype.pipe=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===0?this:fh(e)(this)},u.prototype.toPromise=function(e){var i=this;return e=Lo(e),new e(function(s,c){var a;i.subscribe(function(n){return a=n},function(n){return c(n)},function(){return s(a)})})},u.create=function(e){return new u(e)},u})();function Lo(u){if(u||(u=Promise),!u)throw new Error("no Promise impl found");return u}var hh=function(u){return function(e){for(var i=0,s=u.length;i<s&&!e.closed;i++)e.next(u[i]);e.complete()}},ph=(function(u){U(e,u);function e(i,s){return u.call(this)||this}return e.prototype.schedule=function(i,s){return this},e})(qe),dh=(function(u){U(e,u);function e(i,s){var c=u.call(this,i,s)||this;return c.scheduler=i,c.work=s,c.pending=!1,c}return e.prototype.schedule=function(i,s){if(s===void 0&&(s=0),this.closed)return this;this.state=i;var c=this.id,a=this.scheduler;return c!=null&&(this.id=this.recycleAsyncId(a,c,s)),this.pending=!0,this.delay=s,this.id=this.id||this.requestAsyncId(a,this.id,s),this},e.prototype.requestAsyncId=function(i,s,c){return c===void 0&&(c=0),setInterval(i.flush.bind(i,this),c)},e.prototype.recycleAsyncId=function(i,s,c){if(c===void 0&&(c=0),c!==null&&this.delay===c&&this.pending===!1)return s;clearInterval(s)},e.prototype.execute=function(i,s){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var c=this._execute(i,s);if(c)return c;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(i,s){var c=!1,a=void 0;try{this.work(i)}catch(n){c=!0,a=!!n&&n||new Error(n)}if(c)return this.unsubscribe(),a},e.prototype._unsubscribe=function(){var i=this.id,s=this.scheduler,c=s.actions,a=c.indexOf(this);
1this.work=null,this.state=null,this.pending=!1,this.scheduler=null,a!==-1&&c.splice(a,1),i!=null&&(this.id=this.recycleAsyncId(s,i,null)),this.delay=null},e})(ph),Fo=(function(){function u(e,i){i===void 0&&(i=u.now),this.SchedulerAction=e,this.now=i}return u.prototype.schedule=function(e,i,s){return i===void 0&&(i=0),new this.SchedulerAction(this,e).schedule(s,i)},u.now=function(){return Date.now()},u})(),bh=(function(u){U(e,u);function e(i,s){s===void 0&&(s=Fo.now);var c=u.call(this,i,function(){return e.delegate&&e.delegate!==c?e.delegate.now():s()})||this;return c.actions=[],c.active=!1,c.scheduled=void 0,c}return e.prototype.schedule=function(i,s,c){return s===void 0&&(s=0),e.delegate&&e.delegate!==this?e.delegate.schedule(i,s,c):u.prototype.schedule.call(this,i,s,c)},e.prototype.flush=function(i){var s=this.actions;if(this.active){s.push(i);return}var c;this.active=!0;do if(c=i.execute(i.state,i.delay))break;while(i=s.shift());if(this.active=!1,c){for(;i=s.shift();)i.unsubscribe();throw c}},e})(Fo);function vh(u){return u&&typeof u.schedule=="function"}function _h(u,e){return new ae(function(i){var s=new qe,c=0;return s.add(e.schedule(function(){if(c===u.length){i.complete();return}i.next(u[c++]),i.closed||s.add(this.schedule())})),s})}function mh(u,e){return new ae(hh(u))}function yh(){for(var u=[],e=0;e<arguments.length;e++)u[e]=arguments[e];var i=u[u.length-1];return vh(i)?(u.pop(),_h(u,i)):mh(u)}function gh(u,e){return function(s){if(typeof u!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return s.lift(new Sh(u,e))}}var Sh=(function(){function u(e,i){this.project=e,this.thisArg=i}return u.prototype.call=function(e,i){return i.subscribe(new wh(e,this.project,this.thisArg))},u})(),wh=(function(u){U(e,u);function e(i,s,c){var a=u.call(this,i)||this;return a.project=s,a.count=0,a.thisArg=c||a,a}return e.prototype._next=function(i){var s;try{s=this.project.call(this.thisArg,i,this.count++)}catch(c){this.destination.error(c);return}this.destination.next(s)},e})(Ie),Oh=new ae(function(u){return u.complete()});function xh(u){return u?Th(u):Oh}function Th(u){return new ae(function(e){return u.schedule(function(){return e.complete()})})}function Eh(u,e){return new ae(function(i){return i.error(u)})}var Ni=(function(){function u(e,i,s){this.kind=e,this.value=i,this.error=s,this.hasValue=e==="N"}return u.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},u.prototype.do=function(e,i,s){var c=this.kind;switch(c){case"N":return e&&e(this.value);case"E":return i&&i(this.error);case"C":return s&&s()}},u.prototype.accept=function(e,i,s){return e&&typeof e.next=="function"?this.observe(e):this.do(e,i,s)},u.prototype.toObservable=function(){var e=this.kind;switch(e){case"N":return yh(this.value);case"E":return Eh(this.error);case"C":return xh()}throw new Error("unexpected notification kind value")},u.createNext=function(e){return typeof e<"u"?new u("N",e):u.undefinedValueNotification},u.createError=function(e){return new u("E",void 0,e)},u.createComplete=function(){return u.completeNotification},u.completeNotification=new u("C"),u.undefinedValueNotification=new u("N",void 0),u})(),Ph=(function(){function u(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return u.prototype=Object.create(Error.prototype),u})(),ir=Ph,Nc=(function(u){U(e,u);function e(i,s){var c=u.call(this)||this;return c.subject=i,c.subscriber=s,c.closed=!1,c}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var i=this.subject,s=i.observers;if(this.subject=null,!(!s||s.length===0||i.isStopped||i.closed)){var c=s.indexOf(this.subscriber);c!==-1&&s.splice(c,1)}}},e})(qe),Ch=(function(u){U(e,u);function e(i){var s=u.call(this,i)||this;return s.destination=i,s}return e})(Ie),z=(function(u){U(e,u);function e(){var i=u.call(this)||this;return i.observers=[],i.closed=!1,i.isStopped=!1,i.hasError=!1,i.thrownError=null,i}return e.prototype[Gi]=function(){return new Ch(this)},e.prototype.lift=function(i){var s=new ko(this,this);return s.operator=i,s},e.prototype.next=function(i){if(this.closed)throw new ir;if(!this.isStopped)for(var s=this.observers,c=s.length,a=s.slice(),n=0;n<c;n++)a[n].next(i)},e.prototype.error=function(i){if(this.closed)throw new ir;this.hasError=!0,this.thrownError=i,this.isStopped=!0;for(var s=this.observers,c=s.length,a=s.slice(),n=0;n<c;n++)a[n].error(i);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new ir;this.isStopped=!0;for(var i=this.observers,s=i.length,c=i.slice(),a=0;a<s;a++)c[a].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(i){if(this.closed)throw new ir;return u.prototype._trySubscribe.call(this,i)},e.prototype._subscribe=function(i){if(this.closed)throw new ir;return this.hasError?(i.error(this.thrownError),qe.EMPTY):this.isStopped?(i.complete(),qe.EMPTY):(this.observers.push(i),new Nc(this,i))},e.prototype.asObservable=function(){var i=new ae;return i.source=this,i},e.create=function(i,s){return new ko(i,s)},e})(ae),ko=(function(u){U(e,u);function e(i,s){var c=u.call(this)||this;return c.destination=i,c.source=s,c}return e.prototype.next=function(i){var s=this.destination;s&&s.next&&s.next(i)},e.prototype.error=function(i){var s=this.destination;s&&s.error&&this.destination.error(i)},e.prototype.complete=function(){var i=this.destination;i&&i.complete&&this.destination.complete()},e.prototype._subscribe=function(i){var s=this.source;return s?this.source.subscribe(i):qe.EMPTY},e})(z),Rh=(function(u){U(e,u);function e(i,s,c){c===void 0&&(c=0);var a=u.call(this,i)||this;
1return a.scheduler=s,a.delay=c,a}return e.dispatch=function(i){var s=i.notification,c=i.destination;s.observe(c),this.unsubscribe()},e.prototype.scheduleMessage=function(i){var s=this.destination;s.add(this.scheduler.schedule(e.dispatch,this.delay,new Ah(i,this.destination)))},e.prototype._next=function(i){this.scheduleMessage(Ni.createNext(i))},e.prototype._error=function(i){this.scheduleMessage(Ni.createError(i)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(Ni.createComplete()),this.unsubscribe()},e})(Ie),Ah=(function(){function u(e,i){this.notification=e,this.destination=i}return u})(),jh=(function(u){U(e,u);function e(i,s){var c=u.call(this,i,s)||this;return c.scheduler=i,c.work=s,c}return e.prototype.schedule=function(i,s){return s===void 0&&(s=0),s>0?u.prototype.schedule.call(this,i,s):(this.delay=s,this.state=i,this.scheduler.flush(this),this)},e.prototype.execute=function(i,s){return s>0||this.closed?u.prototype.execute.call(this,i,s):this._execute(i,s)},e.prototype.requestAsyncId=function(i,s,c){return c===void 0&&(c=0),c!==null&&c>0||c===null&&this.delay>0?u.prototype.requestAsyncId.call(this,i,s,c):i.flush(this)},e})(dh),$h=(function(u){U(e,u);function e(){return u!==null&&u.apply(this,arguments)||this}return e})(bh),Ih=new $h(jh),Mh=Ih,Vo=(function(u){U(e,u);function e(i,s,c){i===void 0&&(i=Number.POSITIVE_INFINITY),s===void 0&&(s=Number.POSITIVE_INFINITY);var a=u.call(this)||this;return a.scheduler=c,a._events=[],a._infiniteTimeWindow=!1,a._bufferSize=i<1?1:i,a._windowTime=s<1?1:s,s===Number.POSITIVE_INFINITY?(a._infiniteTimeWindow=!0,a.next=a.nextInfiniteTimeWindow):a.next=a.nextTimeWindow,a}return e.prototype.nextInfiniteTimeWindow=function(i){if(!this.isStopped){var s=this._events;s.push(i),s.length>this._bufferSize&&s.shift()}u.prototype.next.call(this,i)},e.prototype.nextTimeWindow=function(i){this.isStopped||(this._events.push(new qh(this._getNow(),i)),this._trimBufferThenGetEvents()),u.prototype.next.call(this,i)},e.prototype._subscribe=function(i){var s=this._infiniteTimeWindow,c=s?this._events:this._trimBufferThenGetEvents(),a=this.scheduler,n=c.length,t;if(this.closed)throw new ir;if(this.isStopped||this.hasError?t=qe.EMPTY:(this.observers.push(i),t=new Nc(this,i)),a&&i.add(i=new Rh(i,a)),s)for(var r=0;r<n&&!i.closed;r++)i.next(c[r]);else for(var r=0;r<n&&!i.closed;r++)i.next(c[r].value);return this.hasError?i.error(this.thrownError):this.isStopped&&i.complete(),t},e.prototype._getNow=function(){return(this.scheduler||Mh).now()},e.prototype._trimBufferThenGetEvents=function(){for(var i=this._getNow(),s=this._bufferSize,c=this._windowTime,a=this._events,n=a.length,t=0;t<n&&!(i-a[t].time<c);)t++;return n>s&&(t=Math.max(t,n-s)),t>0&&a.splice(0,t),a},e})(z),qh=(function(){function u(e,i){this.time=e,this.value=i}return u})(),Sr=(u=>(u.Static="static",u.Dynamic="dynamic",u))(Sr||{}),no=(u=>(u.Div="div",u.Li="li",u.P="p",u))(no||{});/**
2 * @license
3 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4 * This code may only be used under the BSD style license found at
5 * http://polymer.github.io/LICENSE.txt
6 * The complete set of authors may be found at
7 * http://polymer.github.io/AUTHORS.txt
8 * The complete set of contributors may be found at
9 * http://polymer.github.io/CONTRIBUTORS.txt
10 * Code distributed by Google as part of the polymer project is also
11 * subject to an additional IP rights grant found at
12 * http://polymer.github.io/PATENTS.txt
13 */const Lc=new WeakMap,io=u=>((...e)=>{const i=u(...e);return Lc.set(i,!0),i}),wr=u=>typeof u=="function"&&Lc.has(u);/**
14 * @license
15 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
16 * This code may only be used under the BSD style license found at
17 * http://polymer.github.io/LICENSE.txt
18 * The complete set of authors may be found at
19 * http://polymer.github.io/AUTHORS.txt
20 * The complete set of contributors may be found at
21 * http://polymer.github.io/CONTRIBUTORS.txt
22 * Code distributed by Google as part of the polymer project is also
23 * subject to an additional IP rights grant found at
24 * http://polymer.github.io/PATENTS.txt
25 */const Do=typeof window<"u"&&window.customElements!=null&&window.customElements.polyfillWrapFlushCallback!==void 0,Nh=(u,e,i=null,
25s=null)=>{for(;e!==i;){const c=e.nextSibling;u.insertBefore(e,s),e=c}},Fc=(u,e,i=null)=>{for(;e!==i;){const s=e.nextSibling;u.removeChild(e),e=s}};/**
26 * @license
27 * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
28 * This code may only be used under the BSD style license found at
29 * http://polymer.github.io/LICENSE.txt
30 * The complete set of authors may be found at
31 * http://polymer.github.io/AUTHORS.txt
32 * The complete set of contributors may be found at
33 * http://polymer.github.io/CONTRIBUTORS.txt
34 * Code distributed by Google as part of the polymer project is also
35 * subject to an additional IP rights grant found at
36 * http://polymer.github.io/PATENTS.txt
37 */const H={},Wo={};/**
38 * @license
39 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
40 * This code may only be used under the BSD style license found at
41 * http://polymer.github.io/LICENSE.txt
42 * The complete set of authors may be found at
43 * http://polymer.github.io/AUTHORS.txt
44 * The complete set of contributors may be found at
45 * http://polymer.github.io/CONTRIBUTORS.txt
46 * Code distributed by Google as part of the polymer project is also
47 * subject to an additional IP rights grant found at
48 * http://polymer.github.io/PATENTS.txt
49 */const ge=`{{lit-${String(Math.random()).slice(2)}}}`,kc=`<!--${ge}-->`,Uo=new RegExp(`${ge}|${kc}`),gr="$lit$";class Lh{constructor(e,i){this.parts=[],this.element=i;const s=[],c=[],a=document.createTreeWalker(i.content,133,null,!1);let n=0,t=-1,r=0;const{strings:o,values:{length:l}}=e;for(;r<l;){const f=a.nextNode();if(f===null){a.currentNode=c.pop();continue}if(t++,f.nodeType===1){if(f.hasAttributes()){const h=f.attributes,{length:p}=h;let d=0;for(let b=0;b<p;b++)Bo(h[b].name,gr)&&d++;for(;d-- >0;){const b=o[r],v=Ji.exec(b)[2],m=v.toLowerCase()+gr,g=f.getAttribute(m);f.removeAttribute(m);const w=g.split(Uo);this.parts.push({type:"attribute",index:t,name:v,strings:w}),r+=w.length-1}}f.tagName==="TEMPLATE"&&(c.push(f),a.currentNode=f.content)}else if(f.nodeType===3){const h=f.data;if(h.indexOf(ge)>=0){const p=f.parentNode,d=h.split(Uo),b=d.length-1;for(let v=0;v<b;v++){let m,g=d[v];if(g==="")m=me();else{const w=Ji.exec(g);w!==null&&Bo(w[2],gr)&&(g=g.slice(0,w.index)+w[1]+w[2].slice(0,-gr.length)+w[3]),m=document.createTextNode(g)}p.insertBefore(m,f),this.parts.push({type:"node",index:++t})}d[b]===""?(p.insertBefore(me(),f),s.push(f)):f.data=d[b],r+=b}}else if(f.nodeType===8)if(f.data===ge){const h=f.parentNode;(f.previousSibling===null||t===n)&&(t++,h.insertBefore(me(),f)),n=t,this.parts.push({type:"node",index:t}),f.nextSibling===null?f.data="":(s.push(f),t--),r++}else{let h=-1;for(;(h=f.data.indexOf(ge,h+1))!==-1;)this.parts.push({type:"node",index:-1}),r++}}for(const f of s)f.parentNode.removeChild(f)}}const Bo=(u,e)=>{const i=u.length-e.length;return i>=0&&u.slice(i)===e},Fh=u=>u.index!==-1,me=()=>document.createComment(""),Ji=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;/**
50 * @license
51 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
52 * This code may only be used under the BSD style license found at
53 * http://polymer.github.io/LICENSE.txt
54 * The complete set of authors may be found at
55 * http://polymer.github.io/AUTHORS.txt
56 * The complete set of contributors may be found at
57 * http://polymer.github.io/CONTRIBUTORS.txt
58 * Code distributed by Google as part of the polymer project is also
59 * subject to an additional IP rights grant found at
60 * http://polymer.github.io/PATENTS.txt
61 */class zo{constructor(e,i,s){this.__parts=[],this.template=e,this.processor=i,this.options=s}update(e){let i=0;for(const s of this.__parts)s!==void 0&&s.setValue(e[i]),i++;for(const s of this.__parts)s!==void 0&&s.commit()}_clone(){const e=Do?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),i=[],s=this.template.parts,c=document.createTreeWalker(e,133,null,!1);let a=0,n=0,t,r=c.nextNode();for(;a<s.length;){if(t=s[a],!Fh(t)){this.__parts.push(void 0),a++;continue}for(;n<t.index;)n++,r.nodeName==="TEMPLATE"&&(i.push(r),c.currentNode=r.content),(r=c.nextNode())===null&&(c.currentNode=i.pop(),r=c.nextNode());if(t.type==="node"){const o=this.processor.handleTextExpression(this.options);o.insertAfterNode(r.previousSibling),this.__parts.push(o)}else this.__parts.push(...this.processor.handleAttributeExpressions(r,t.name,t.strings,this.options));a++}return Do&&(document.adoptNode(e),customElements.upgrade(e)),e}}/**
62 * @license
63 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
64 * This code may only be used under the BSD style license found at
65 * http://polymer.github.io/LICENSE.txt
66 * The complete set of authors may be found at
67 * http://polymer.github.io/AUTHORS.txt
68 * The complete set of contributors may be found at
69 * http://polymer.github.io/CONTRIBUTORS.txt
70 * Code distributed by Google as part of the polymer project is also
71 * subject to an additional IP rights grant found at
72 * http://polymer.github.io/PATENTS.txt
73 */const Ho=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:u=>u}),kh=` ${ge} `;class Vc{constructor(e,i,s,c){this.strings=e,this.values=i,this.type=s,this.processor=c}getHTML(){const e=this.strings.length-1;let i="",s=!1;for(let c=0;c<e;c++){const a=this.strings[c],n=a.lastIndexOf("<!--");s=(n>-1||s)&&a.indexOf("-->",n+1)===-1;const t=Ji.exec(a);t===null?i+=a+(s?kh:kc):i+=a.substr(0,t.index)+t[1]+t[2]+gr+t[3]+ge}return i+=this.strings[e],i}getTemplateElement(){const e=document.createElement("template");let i=this.getHTML();
73return Ho!==void 0&&(i=Ho.createHTML(i)),e.innerHTML=i,e}}/**
74 * @license
75 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
76 * This code may only be used under the BSD style license found at
77 * http://polymer.github.io/LICENSE.txt
78 * The complete set of authors may be found at
79 * http://polymer.github.io/AUTHORS.txt
80 * The complete set of contributors may be found at
81 * http://polymer.github.io/CONTRIBUTORS.txt
82 * Code distributed by Google as part of the polymer project is also
83 * subject to an additional IP rights grant found at
84 * http://polymer.github.io/PATENTS.txt
85 */const wi=u=>u===null||!(typeof u=="object"||typeof u=="function"),Yi=u=>Array.isArray(u)||!!(u&&u[Symbol.iterator]);class Dc{constructor(e,i,s){this.dirty=!0,this.element=e,this.name=i,this.strings=s,this.parts=[];for(let c=0;c<s.length-1;c++)this.parts[c]=this._createPart()}_createPart(){return new oo(this)}_getValue(){const e=this.strings,i=e.length-1,s=this.parts;if(i===1&&e[0]===""&&e[1]===""){const a=s[0].value;if(typeof a=="symbol")return String(a);if(typeof a=="string"||!Yi(a))return a}let c="";for(let a=0;a<i;a++){c+=e[a];const n=s[a];if(n!==void 0){const t=n.value;if(wi(t)||!Yi(t))c+=typeof t=="string"?t:String(t);else for(const r of t)c+=typeof r=="string"?r:String(r)}}return c+=e[i],c}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class oo{constructor(e){this.value=void 0,this.committer=e}setValue(e){e!==H&&(!wi(e)||e!==this.value)&&(this.value=e,wr(e)||(this.committer.dirty=!0))}commit(){for(;wr(this.value);){const e=this.value;this.value=H,e(this)}this.value!==H&&this.committer.commit()}}class sr{constructor(e){this.value=void 0,this.__pendingValue=void 0,this.options=e}appendInto(e){this.startNode=e.appendChild(me()),this.endNode=e.appendChild(me())}insertAfterNode(e){this.startNode=e,this.endNode=e.nextSibling}appendIntoPart(e){e.__insert(this.startNode=me()),e.__insert(this.endNode=me())}insertAfterPart(e){e.__insert(this.startNode=me()),this.endNode=e.endNode,e.endNode=this.startNode}setValue(e){this.__pendingValue=e}commit(){if(this.startNode.parentNode===null)return;for(;wr(this.__pendingValue);){const i=this.__pendingValue;this.__pendingValue=H,i(this)}const e=this.__pendingValue;e!==H&&(wi(e)?e!==this.value&&this.__commitText(e):e instanceof Vc?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):Yi(e)?this.__commitIterable(e):e===Wo?(this.value=Wo,this.clear()):this.__commitText(e))}__insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}__commitNode(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}__commitText(e){const i=this.startNode.nextSibling;e=e??"";const s=typeof e=="string"?e:String(e);i===this.endNode.previousSibling&&i.nodeType===3?i.data=s:this.__commitNode(document.createTextNode(s)),this.value=e}__commitTemplateResult(e){const i=this.options.templateFactory(e);if(this.value instanceof zo&&this.value.template===i)this.value.update(e.values);else{const s=new zo(i,e.processor,this.options),c=s._clone();s.update(e.values),this.__commitNode(c),this.value=s}}__commitIterable(e){Array.isArray(this.value)||(this.value=[],this.clear());const i=this.value;let s=0,c;for(const a of e)c=i[s],c===void 0&&(c=new sr(this.options),i.push(c),s===0?c.appendIntoPart(this):c.insertAfterPart(i[s-1])),c.setValue(a),c.commit(),s++;s<i.length&&(i.length=s,this.clear(c&&c.endNode))}clear(e=this.startNode){Fc(this.startNode.parentNode,e.nextSibling,this.endNode)}}class Wc{constructor(e,i,s){if(this.value=void 0,this.__pendingValue=void 0,s.length!==2||s[0]!==""||s[1]!=="")throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=i,this.strings=s}setValue(e){this.__pendingValue=e}commit(){for(;wr(this.__pendingValue);){const i=this.__pendingValue;this.__pendingValue=H,i(this)}if(this.__pendingValue===H)return;const e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=H}}class Vh extends Dc{constructor(e,i,s){super(e,i,s),this.single=s.length===2&&s[0]===""&&s[1]===""}_createPart(){return new Uc(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class Uc extends oo{}let Bc=!1;(()=>{try{const u={get capture(){return Bc=!0,!1}};window.addEventListener("test",u,u),window.removeEventListener("test",u,u)}catch{}})();class zc{constructor(e,i,s){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=i,this.eventContext=s,this.__boundHandleEvent=c=>this.handleEvent(c)}setValue(e){this.__pendingValue=e}commit(){for(;wr(this.__pendingValue);){const a=this.__pendingValue;this.__pendingValue=H,a(this)}if(this.__pendingValue===H)return;const e=this.__pendingValue,i=this.value,s=e==null||i!=null&&(e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive),c=e!=null&&(i==null||s);s&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),c&&(this.__options=Dh(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=H}handleEvent(e){typeof this.value=="function"?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const Dh=u=>u&&(Bc?{capture:u.capture,passive:u.passive,once:u.once}:u.capture);/**
86 * @license
87 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
88 * This code may only be used under the BSD style license found at
89 * http://polymer.github.io/LICENSE.txt
90 * The complete set of authors may be found at
91 * http://polymer.github.io/AUTHORS.txt
92 * The complete set of contributors may be found at
93 * http://polymer.github.io/CONTRIBUTORS.txt
94 * Code distributed by Google as part of the polymer project is also
95 * subject to an additional IP rights grant found at
96 * http://polymer.github.io/PATENTS.txt
97 */class Wh{handleAttributeExpressions(e,i,s,c){const a=i[0];return a==="."?new Vh(e,i.slice(1),s).parts:a==="@"?[new zc(e,i.slice(1),c.eventContext)]:a==="?"?[new Wc(e,i.slice(1),s)]:new Dc(e,i,s).parts}handleTextExpression(e){return new sr(e)}}const Uh=new Wh;/**
98 * @license
99 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
100 * This code may only be used under the BSD style license found at
101 * http://polymer.github.io/LICENSE.txt
102 * The complete set of authors may be found at
103 * http://polymer.github.io/AUTHORS.txt
104 * The complete set of contributors may be found at
105 * http://polymer.github.io/CONTRIBUTORS.txt
106 * Code distributed by Google as part of the polymer project is also
107 * subject to an additional IP rights grant found at
108 * http://polymer.github.io/PATENTS.txt
109 */function Bh(u){let e=Go.get(u.type);e===void 0&&(e={stringsArray:new WeakMap,keyString:new Map},Go.set(u.type,e));let i=e.stringsArray.get(u.strings);if(i!==void 0)return i;const s=u.strings.join(ge);return i=e.keyString.get(s),i===void 0&&(i=new Lh(u,u.getTemplateElement()),e.keyString.set(s,i)),e.stringsArray.set(u.strings,i),i}const Go=new Map;/**
110 * @license
111 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
112 * This code may only be used under the BSD style license found at
113 * http://polymer.github.io/LICENSE.txt
114 * The complete set of authors may be found at
115 * http://polymer.github.io/AUTHORS.txt
116 * The complete set of contributors may be found at
117 * http://polymer.github.io/CONTRIBUTORS.txt
118 * Code distributed by Google as part of the polymer project is also
119 * subject to an additional IP rights grant found at
120 * http://polymer.github.io/PATENTS.txt
121 */const Jo=new WeakMap,so=(u,e,i)=>{let s=Jo.get(e);s===void 0&&(Fc(e,e.firstChild),Jo.set(e,s=new sr(Object.assign({templateFactory:Bh},i))),s.appendInto(e)),s.setValue(u),s.commit()};/**
122 * @license
123 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
124 * This code may only be used under the BSD style license found at
125 * http://polymer.github.io/LICENSE.txt
126 * The complete set of authors may be found at
127 * http://polymer.github.io/AUTHORS.txt
128 * The complete set of contributors may be found at
129 * http://polymer.github.io/CONTRIBUTORS.txt
130 * Code distributed by Google as part of the polymer project is also
131 * subject to an additional IP rights grant found at
132 * http://polymer.github.io/PATENTS.txt
133 */typeof window<"u"&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const S=(u,...e)=>new Vc(u,e,"html",Uh);class Se{constructor(e){if(this.name=e.componentName,this.type=e.componentType?e.componentType:Sr.Dynamic,this.componentHostViewTag=e.componentHostViewTag?e.componentHostViewTag:no.Div,this.componentClass=e.componentClass?e.componentClass:null,this.template=this.getHostViewTemplate(),this.hostView=this.getHostView(),!this.hostView)throw new Error(`Component HTML node [data-component="${this.name}"] not found`)}appendChild(e,i){(i||this.hostView).appendChild(e)}renderContent(e){so(e,this.hostView)}addHostViewClass(e){this.hostView.classList.add(e)}removeHostViewClass(e){this.hostView.classList.remove(e)}clearContent(e){const i=e||this.hostView;i.innerHTML=""}getHostViewTemplate(){return`
134            <${this.componentHostViewTag}
135                data-component="${this.name}"
136                ${this.componentClass?'class="'+this.componentClass+'"':""}
137            ></${this.componentHostViewTag}>`}
137getHostView(){switch(this.type){case Sr.Static:return this.getStaticComponentDOMReference();case Sr.Dynamic:return this.getDynamicComponentDOMReference()}}getStaticComponentDOMReference(){try{return document.querySelector(`[data-component="${this.name}"]`)}catch{return console.error(`Component HTML node [data-component="${this.name}"] not found`),null}}getDynamicComponentDOMReference(){const e=new DOMParser;if(!this.template)throw new Error(`The dynamic component ${this.name} should have the template argument passed as a string`);return e.parseFromString(this.template,"text/html").body.childNodes[0]}translate(e){return ro.translate(e)}}var Hc=(u=>(u.info="info",u.success="success",u.warning="warning",u.error="error",u))(Hc||{});/**
138 * @license
139 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
140 * This code may only be used under the BSD style license found at
141 * http://polymer.github.io/LICENSE.txt
142 * The complete set of authors may be found at
143 * http://polymer.github.io/AUTHORS.txt
144 * The complete set of contributors may be found at
145 * http://polymer.github.io/CONTRIBUTORS.txt
146 * Code distributed by Google as part of the polymer project is also
147 * subject to an additional IP rights grant found at
148 * http://polymer.github.io/PATENTS.txt
149 */const Yo=new WeakMap,zh=window.navigator.userAgent.indexOf("Trident/")>0,ee=io(u=>e=>{if(!(e instanceof sr))throw new Error("unsafeSVG can only be used in text bindings");const i=Yo.get(e);if(i!==void 0&&wi(u)&&u===i.value&&e.value===i.fragment)return;const s=document.createElement("template"),c=s.content;let a;zh?(s.innerHTML=`<svg>${u}</svg>`,a=c.firstChild):(a=document.createElementNS("http://www.w3.org/2000/svg","svg"),c.appendChild(a),a.innerHTML=u),c.removeChild(a),Nh(c,a.firstChild);const n=document.importNode(c,!0);e.setValue(n),Yo.set(e,{value:u,fragment:n})});class we{constructor(){this.events={}}registerEvent(e,i){this.events[e]=i}translate(e){return ro.translate(e)}}class Hh extends we{getTemplate(e){return so?S`
150          <div class="toast__single toast__single--fadeout">
151            <div class="toast__single-container toast__single-container--${e.type}">
152              <div class="toast__title-container">
153                ${ee(X.render({name:"interface-icon-toast_info",class:"interface-icon interface-icon-interface_toast_info"}))}
154                <h4 class="toast__single-title">${this.translate(e.title)}</h4>
155              </div>
156              <p class="toast__single-description">${e.content}</p>
157              ${e.renderLink?S`
158                    <a href="${e.linkUrl}" class="toast__single-link"
159                      >${this.translate(e.linkTitle)}</a
160                    >
161                  `:S``}
162              <span @click=${i=>this.closeWindow(i)} class="toast__single-close"></span>
163              <div class="toast__single-timebar-wrapper">
164                <div class="toast__single-timebar"></div>
165              </div>
166            </div>
167          </div>
168        `:S``}createSingleToastContainer(){const e=document.createElement("div");return e.setAttribute("class","toast__container"),e}createToastContainer(){const e=document.createElement("div");return e.setAttribute("class","toast"),e}closeWindow(e){e.target.closest(".toast__single").closest(".toast__container").remove()}}const re={currentToasts:0,host:document.querySelector("body")};let Gh=class{constructor(){this.fadeoutDelay=500,this.timebarClass=".toast__single-timebar",this.toastTemplate=new Hh}renderMessage(e,i=5e3){this.appendContainer();const s=re.toastContainer.appendChild(this.toastTemplate.createSingleToastContainer());so(this.toastTemplate.getTemplate(e),s),this.setFadeoutTime(s,i),re.currentToasts++,setTimeout(()=>{s.remove(),re.currentToasts--,re.currentToasts===0&&(re.toastContainer.remove(),re.toastContainer=null)},i)}setFadeoutTime(e,i){const s=e.querySelector(this.timebarClass);s.style.animationDuration=`${this.secondsToCssProperty(i-this.fadeoutDelay)}`}appendContainer(){re.toastContainer||(re.toastContainer=re.host.appendChild(this.toastTemplate.createToastContainer()))}secondsToCssProperty(e){return`${this.millisecondsToSeconds(e)}s`}millisecondsToSeconds(e){return e/1e3}};var vi=(u=>(u.remove="remove",u.add="add",u))(vi||{}
168),Ki=(u=>(u.remove="TRAINING_REMOVED_FROM_FAVOURITES_MESSAGE",u.add="TRAINING_ADDED_TO_FAVOURITES_MESSAGE",u))(Ki||{});const Ko="saveTraining";class oe{constructor(){this.loadSavedTrainings(),this.toastComponent=new Gh,this.toastMessage={}}static getInstance(){return oe.instance||(oe.instance=new oe),oe.instance}addToClipboard(e,i,s){this.setClipboardItemState(e,i,s,vi.add)}removeFromClipboard(e,i,s){this.setClipboardItemState(e,i,s,vi.remove)}setClipboardItemState(e,i,s,c){const a=[e,i],n=c===vi.add;this.toastMessage.content=s,this.toastMessage.title=n?Ki.add:Ki.remove,this.toastMessage.type=Hc.info,this.toastMessage.renderLink=!1,n?(this.savedTrainings.push(a),this.clipboardLength++):(this.savedTrainings=this.savedTrainings.filter(t=>JSON.stringify(t)!==JSON.stringify(a)),this.clipboardLength--),localStorage.setItem(Ko,JSON.stringify(this.savedTrainings)),this.updateToolbarClipboardLength(),this.toastComponent.renderMessage(this.toastMessage)}isTrainingInClipboard(e,i){return JSON.stringify(this.savedTrainings).includes(JSON.stringify([e,i]))}updateToolbarClipboardLength(){document.querySelectorAll(".toolbar__menu-item-clipboard-text").forEach(i=>{i.innerHTML=`(${this.clipboardLength})`})}getSavedTrainings(){return this.savedTrainings}loadSavedTrainings(){const e=localStorage.getItem(Ko);e===""||e===null?(this.savedTrainings=[],this.clipboardLength=0):(this.savedTrainings=JSON.parse(e),this.clipboardLength=this.savedTrainings.length)}}var y={},Be={},Q={},Ee={},Vr={},Qo;function ao(){if(Qo)return Vr;Qo=1,Object.defineProperty(Vr,"__esModule",{value:!0});function u(e){return typeof e=="function"}return Vr.isFunction=u,Vr}var Dr={},Wr={},Zo;function uo(){if(Zo)return Wr;Zo=1,Object.defineProperty(Wr,"__esModule",{value:!0});var u=!1;return Wr.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var i=new Error;console.warn(`DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: 
169`+i.stack)}else u&&console.log("RxJS: Back to a better error behavior. Thank you. <3");u=e},get useDeprecatedSynchronousErrorHandling(){return u}},Wr}var Ur={},Xo;function co(){if(Xo)return Ur;
169Xo=1,Object.defineProperty(Ur,"__esModule",{value:!0});function u(e){setTimeout(function(){throw e},0)}return Ur.hostReportError=u,Ur}var es;function Gc(){if(es)return Dr;es=1,Object.defineProperty(Dr,"__esModule",{value:!0});var u=uo(),e=co();return Dr.empty={closed:!0,next:function(i){},error:function(i){if(u.config.useDeprecatedSynchronousErrorHandling)throw i;e.hostReportError(i)},complete:function(){}},Dr}var Br={},zr={},ts;function Oe(){return ts||(ts=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.isArray=(function(){return Array.isArray||(function(u){return u&&typeof u.length=="number"})})()),zr}var Hr={},rs;function Jc(){if(rs)return Hr;rs=1,Object.defineProperty(Hr,"__esModule",{value:!0});function u(e){return e!==null&&typeof e=="object"}return Hr.isObject=u,Hr}var Gr={},ns;function Jh(){if(ns)return Gr;ns=1,Object.defineProperty(Gr,"__esModule",{value:!0});var u=(function(){function e(i){return Error.call(this),this.message=i?i.length+` errors occurred during unsubscription:
170`+i.map(function(s,c){return c+1+") "+s.toString()}).join(`
171  `):"",this.name="UnsubscriptionError",this.errors=i,this}return e.prototype=Object.create(Error.prototype),e})();return Gr.UnsubscriptionError=u,Gr}var is;function M(){if(is)return Br;is=1,Object.defineProperty(Br,"__esModule",{value:!0});var u=Oe(),e=Jc(),i=ao(),s=Jh(),c=(function(){function n(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return n.prototype.unsubscribe=function(){var t;if(!this.closed){var r=this,o=r._parentOrParents,l=r._ctorUnsubscribe,f=r._unsubscribe,h=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,o instanceof n)o.remove(this);else if(o!==null)for(var p=0;p<o.length;++p){var d=o[p];d.remove(this)}if(i.isFunction(f)){l&&(this._unsubscribe=void 0);try{f.call(this)}catch(m){t=m instanceof s.UnsubscriptionError?a(m.errors):[m]}}if(u.isArray(h))for(var p=-1,b=h.length;++p<b;){var v=h[p];if(e.isObject(v))try{v.unsubscribe()}catch(g){t=t||[],g instanceof s.UnsubscriptionError?t=t.concat(a(g.errors)):t.push(g)}}if(t)throw new s.UnsubscriptionError(t)}},n.prototype.add=function(t){var r=t;if(!t)return n.EMPTY;switch(typeof t){case"function":r=new n(t);case"object":if(r===this||r.closed||typeof r.unsubscribe!="function")return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof n)){var o=r;r=new n,r._subscriptions=[o]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var l=r._parentOrParents;if(l===null)r._parentOrParents=this;else if(l instanceof n){if(l===this)return r;r._parentOrParents=[l,this]}else if(l.indexOf(this)===-1)l.push(this);else return r;var f=this._subscriptions;return f===null?this._subscriptions=[r]:f.push(r),r},n.prototype.remove=function(t){var r=this._subscriptions;if(r){var o=r.indexOf(t);o!==-1&&r.splice(o,1)}},n.EMPTY=(function(t){return t.closed=!0,t})(new n),n})();Br.Subscription=c;function a(n){return n.reduce(function(t,r){return t.concat(r instanceof s.UnsubscriptionError?r.errors:r)},[])}return Br}var Li={},os;function lo(){return os||(os=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.rxSubscriber=(function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()})(),u.$$rxSubscriber=u.rxSubscriber})(Li)),Li}var ss;function x(){if(ss)return Ee;ss=1;var u=Ee&&Ee.__extends||(function(){var o=function(l,f){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var d in p)p.hasOwnProperty(d)&&(h[d]=p[d])},o(l,f)};return function(l,f){o(l,f);function h(){this.constructor=l}l.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}})();Object.defineProperty(Ee,"__esModule",{value:!0});var e=ao(),i=Gc(),s=M(),c=lo(),a=uo(),n=co(),t=(function(o){u(l,o);function l(f,h,p){var d=o.call(this)||this;switch(d.syncErrorValue=null,d.syncErrorThrown=!1,d.syncErrorThrowable=!1,d.isStopped=!1,arguments.length){case 0:d.destination=i.empty;break;case 1:if(!f){d.destination=i.empty;break}if(typeof f=="object"){f instanceof l?(d.syncErrorThrowable=f.syncErrorThrowable,d.destination=f,f.add(d)):(d.syncErrorThrowable=!0,d.destination=new r(d,f));break}default:d.syncErrorThrowable=!0,d.destination=new r(d,f,h,p);break}return d}return l.prototype[c.rxSubscriber]=function(){return this},l.create=function(f,h,p){var d=new l(f,h,p);return d.syncErrorThrowable=!1,d},l.prototype.next=function(f){this.isStopped||this._next(f)},l.prototype.error=function(f){this.isStopped||(this.isStopped=!0,this._error(f))},l.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},l.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,o.prototype.unsubscribe.call(this))},l.prototype._next=function(f){this.destination.next(f)},l.prototype._error=function(f){this.destination.error(f),this.unsubscribe()},l.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},l.prototype._unsubscribeAndRecycle=function(){var f=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=f,this},l})(s.Subscription);Ee.Subscriber=t;var r=(function(o){u(l,o);function l(f,h,p,d){var b=o.call(this)||this;b._parentSubscriber=f;var v,m=b;return e.isFunction(h)?v=h:h&&(v=h.next,p=h.error,d=h.complete,h!==i.empty&&(m=Object.create(h),e.isFunction(m.unsubscribe)&&b.add(m.unsubscribe.bind(m)),m.unsubscribe=b.unsubscribe.bind(b))),b._context=m,b._next=v,b._error=p,b._complete=d,b}return l.prototype.next=function(f){if(!this.isStopped&&this._next){var h=this._parentSubscriber;!a.config.useDeprecatedSynchronousErrorHandling||!h.syncErrorThrowable?this.__tryOrUnsub(this._next,f):this.__tryOrSetError(h,this._next,f)&&this.unsubscribe()}},l.prototype.error=function(f){if(!this.isStopped){var h=this._parentSubscriber,p=a.config.useDeprecatedSynchronousErrorHandling;if(this._error)!p||!h.syncErrorThrowable?(this.__tryOrUnsub(this._error,f),this.unsubscribe()):(this.__tryOrSetError(h,this._error,f),this.unsubscribe());else if(h.syncErrorThrowable)p?(h.syncErrorValue=f,h.syncErrorThrown=!0):n.hostReportError(f),this.unsubscribe();else{if(this.unsubscribe(),p)throw f;n.hostReportError(f)}}},l.prototype.complete=function(){var f=this;if(!this.isStopped){var h=this._parentSubscriber;if(this._complete){var p=function(){return f._complete.call(f._context)};!a.config.useDeprecatedSynchronousErrorHandling||!h.syncErrorThrowable?(this.__tryOrUnsub(p),this.unsubscribe()):(this.__tryOrSetError(h,p),this.unsubscribe())}else this.unsubscribe()}},l.prototype.__tryOrUnsub=function(f,h){try{f.call(this._context,h)}catch(p){if(this.unsubscribe(),a.config.useDeprecatedSynchronousErrorHandling)throw p;n.hostReportError(p)}},l.prototype.__tryOrSetError=function(f,h,p){if(!a.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{h.call(this._context,p)}catch(d){return a.config.useDeprecatedSynchronousErrorHandling?(f.syncErrorValue=d,f.syncErrorThrown=!0,!0):(n.hostReportError(d),!0)}return!1},l.prototype._unsubscribe=function(){var f=this._parentSubscriber;this._context=null,this._parentSubscriber=null,f.unsubscribe()},l})(t);return Ee.SafeSubscriber=r,Ee}
171var Jr={},Yr={},as;function Yh(){if(as)return Yr;as=1,Object.defineProperty(Yr,"__esModule",{value:!0});var u=x();function e(i){for(;i;){var s=i,c=s.closed,a=s.destination,n=s.isStopped;if(c||n)return!1;a&&a instanceof u.Subscriber?i=a:i=null}return!0}return Yr.canReportError=e,Yr}var Kr={},us;function Kh(){if(us)return Kr;us=1,Object.defineProperty(Kr,"__esModule",{value:!0});var u=x(),e=lo(),i=Gc();function s(c,a,n){if(c){if(c instanceof u.Subscriber)return c;if(c[e.rxSubscriber])return c[e.rxSubscriber]()}return!c&&!a&&!n?new u.Subscriber(i.empty):new u.Subscriber(c,a,n)}return Kr.toSubscriber=s,Kr}var Qr={},cs;function Or(){return cs||(cs=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.observable=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})()),Qr}var hr={},Zr={},ls;function xr(){if(ls)return Zr;ls=1,Object.defineProperty(Zr,"__esModule",{value:!0});function u(e){return e}return Zr.identity=u,Zr}var fs;function Yc(){if(fs)return hr;fs=1,Object.defineProperty(hr,"__esModule",{value:!0});var u=xr();function e(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return i(s)}hr.pipe=e;function i(s){return s.length===0?u.identity:s.length===1?s[0]:function(a){return s.reduce(function(n,t){return t(n)},a)}}return hr.pipeFromArray=i,hr}var hs;function j(){if(hs)return Jr;hs=1,Object.defineProperty(Jr,"__esModule",{value:!0});var u=Yh(),e=Kh(),i=Or(),s=Yc(),c=uo(),a=(function(){function t(r){this._isScalar=!1,r&&(this._subscribe=r)}return t.prototype.lift=function(r){var o=new t;return o.source=this,o.operator=r,o},t.prototype.subscribe=function(r,o,l){var f=this.operator,h=e.toSubscriber(r,o,l);if(f?h.add(f.call(h,this.source)):h.add(this.source||c.config.useDeprecatedSynchronousErrorHandling&&!h.syncErrorThrowable?this._subscribe(h):this._trySubscribe(h)),c.config.useDeprecatedSynchronousErrorHandling&&h.syncErrorThrowable&&(h.syncErrorThrowable=!1,h.syncErrorThrown))throw h.syncErrorValue;return h},t.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(o){c.config.useDeprecatedSynchronousErrorHandling&&(r.syncErrorThrown=!0,r.syncErrorValue=o),u.canReportError(r)?r.error(o):console.warn(o)}},t.prototype.forEach=function(r,o){var l=this;return o=n(o),new o(function(f,h){var p;p=l.subscribe(function(d){try{r(d)}catch(b){h(b),p&&p.unsubscribe()}},h,f)})},t.prototype._subscribe=function(r){var o=this.source;return o&&o.subscribe(r)},t.prototype[i.observable]=function(){return this},t.prototype.pipe=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===0?this:s.pipeFromArray(r)(this)},t.prototype.toPromise=function(r){var o=this;return r=n(r),new r(function(l,f){var h;o.subscribe(function(p){return h=p},function(p){return f(p)},function(){return l(h)})})},t.create=function(r){return new t(r)},t})();Jr.Observable=a;function n(t){if(t||(t=c.config.Promise||Promise),!t)throw new Error("no Promise impl found");return t}return Jr}var Xr={},en={},ps;function Kc(){return ps||(ps=1,Object.defineProperty(en,"__esModule",{value:!0}),en.subscribeToArray=function(u){return function(e){for(var i=0,s=u.length;i<s&&!e.closed;i++)e.next(u[i]);e.complete()}}),en}var tn={},ds;function Qh(){if(ds)return tn;ds=1,Object.defineProperty(tn,"__esModule",{value:!0});var u=co();return tn.subscribeToPromise=function(e){return function(i){return e.then(function(s){i.closed||(i.next(s),i.complete())},function(s){return i.error(s)}).then(null,u.hostReportError),i}},tn}var rn={},Fi={},bs;function Tr(){return bs||(bs=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0});function e(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}u.getSymbolIterator=e,u.iterator=e(),u.$$iterator=u.iterator})(Fi)),Fi}var vs;function Zh(){if(vs)return rn;vs=1,Object.defineProperty(rn,"__esModule",{value:!0});var u=Tr();return rn.subscribeToIterable=function(e){return function(i){var s=e[u.iterator]();do{var c=void 0;try{c=s.next()}catch(a){return i.error(a),i}if(c.done){i.complete();break}if(i.next(c.value),i.closed)break}while(!0);return typeof s.return=="function"&&i.add(function(){s.return&&s.return()}),i}},rn}var nn={},_s;function Xh(){if(_s)return nn;_s=1,Object.defineProperty(nn,"__esModule",{value:!0});var u=Or();return nn.subscribeToObservable=function(e){return function(i){var s=e[u.observable]();if(typeof s.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return s.subscribe(i)}},nn}var on={},ms;function Qc(){return ms||(ms=1,Object.defineProperty(on,"__esModule",{value:!0}),on.isArrayLike=(function(u){return u&&typeof u.length=="number"&&typeof u!="function"})),on}var sn={},ys;function Zc(){if(ys)return sn;ys=1,Object.defineProperty(sn,"__esModule",{value:!0});function u(e){return!!e&&typeof e.subscribe!="function"&&typeof e.then=="function"}return sn.isPromise=u,sn}var gs;function fo(){if(gs)return Xr;
171gs=1,Object.defineProperty(Xr,"__esModule",{value:!0});var u=Kc(),e=Qh(),i=Zh(),s=Xh(),c=Qc(),a=Zc(),n=Jc(),t=Tr(),r=Or();return Xr.subscribeTo=function(o){if(o&&typeof o[r.observable]=="function")return s.subscribeToObservable(o);if(c.isArrayLike(o))return u.subscribeToArray(o);if(a.isPromise(o))return e.subscribeToPromise(o);if(o&&typeof o[t.iterator]=="function")return i.subscribeToIterable(o);var l=n.isObject(o)?"an invalid object":"'"+o+"'",f="You provided "+l+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(f)},Xr}var Ss;function R(){if(Ss)return Q;Ss=1;var u=Q&&Q.__extends||(function(){var o=function(l,f){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var d in p)p.hasOwnProperty(d)&&(h[d]=p[d])},o(l,f)};return function(l,f){o(l,f);function h(){this.constructor=l}l.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}})();Object.defineProperty(Q,"__esModule",{value:!0});var e=x(),i=j(),s=fo(),c=(function(o){u(l,o);function l(f){var h=o.call(this)||this;return h.parent=f,h}return l.prototype._next=function(f){this.parent.notifyNext(f)},l.prototype._error=function(f){this.parent.notifyError(f),this.unsubscribe()},l.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},l})(e.Subscriber);Q.SimpleInnerSubscriber=c;var a=(function(o){u(l,o);function l(f,h,p){var d=o.call(this)||this;return d.parent=f,d.outerValue=h,d.outerIndex=p,d}return l.prototype._next=function(f){this.parent.notifyNext(this.outerValue,f,this.outerIndex,this)},l.prototype._error=function(f){this.parent.notifyError(f),this.unsubscribe()},l.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},l})(e.Subscriber);Q.ComplexInnerSubscriber=a;var n=(function(o){u(l,o);function l(){return o!==null&&o.apply(this,arguments)||this}return l.prototype.notifyNext=function(f){this.destination.next(f)},l.prototype.notifyError=function(f){this.destination.error(f)},l.prototype.notifyComplete=function(){this.destination.complete()},l})(e.Subscriber);Q.SimpleOuterSubscriber=n;var t=(function(o){u(l,o);function l(){return o!==null&&o.apply(this,arguments)||this}return l.prototype.notifyNext=function(f,h,p,d){this.destination.next(h)},l.prototype.notifyError=function(f){this.destination.error(f)},l.prototype.notifyComplete=function(f){this.destination.complete()},l})(e.Subscriber);Q.ComplexOuterSubscriber=t;function r(o,l){if(!l.closed){if(o instanceof i.Observable)return o.subscribe(l);var f;try{f=s.subscribeTo(o)(l)}catch(h){l.error(h)}return f}}return Q.innerSubscribe=r,Q}var ws;function Xc(){if(ws)return Be;ws=1;var u=Be&&Be.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(Be,"__esModule",{value:!0});var e=R();function i(a){return function(t){return t.lift(new s(a))}}Be.audit=i;var s=(function(){function a(n){this.durationSelector=n}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.durationSelector))},a})(),c=(function(a){u(n,a);function n(t,r){var o=a.call(this,t)||this;return o.durationSelector=r,o.hasValue=!1,o}return n.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var r=void 0;try{var o=this.durationSelector;r=o(t)}catch(f){return this.destination.error(f)}var l=e.innerSubscribe(r,new e.SimpleInnerSubscriber(this));!l||l.closed?this.clearThrottle():this.add(this.throttled=l)}},n.prototype.clearThrottle=function(){var t=this,r=t.value,o=t.hasValue,l=t.throttled;l&&(this.remove(l),this.throttled=void 0,l.unsubscribe()),o&&(this.value=void 0,this.hasValue=!1,this.destination.next(r))},n.prototype.notifyNext=function(){this.clearThrottle()},n.prototype.notifyComplete=function(){this.clearThrottle()},n})(e.SimpleOuterSubscriber);return Be}var an={},ki={},ze={},He={},Os;function ep(){if(Os)return He;Os=1;var u=He&&He.__extends||(function(){var s=function(c,a){return s=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])},s(c,a)};return function(c,a){s(c,a);function n(){this.constructor=c}c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)}})();Object.defineProperty(He,"__esModule",{value:!0});var e=M(),i=(function(s){u(c,s);function c(a,n){return s.call(this)||this}return c.prototype.schedule=function(a,n){return this},c})(e.Subscription);return He.Action=i,He}var xs;function ho(){if(xs)return ze;xs=1;var u=ze&&ze.__extends||(function(){var s=function(c,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])},s(c,a)};return function(c,a){s(c,a);function n(){this.constructor=c}c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)}})();Object.defineProperty(ze,"__esModule",{value:!0});var e=ep(),i=(function(s){u(c,s);function c(a,n){var t=s.call(this,a,n)||this;return t.scheduler=a,t.work=n,t.pending=!1,t}return c.prototype.schedule=function(a,n){if(n===void 0&&(n=0),this.closed)return this;this.state=a;var t=this.id,r=this.scheduler;return t!=null&&(this.id=this.recycleAsyncId(r,t,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(r,this.id,n),this},c.prototype.requestAsyncId=function(a,n,t){return t===void 0&&(t=0),setInterval(a.flush.bind(a,this),t)},c.prototype.recycleAsyncId=function(a,n,t){if(t===void 0&&(t=0),t!==null&&this.delay===t&&this.pending===!1)return n;clearInterval(n)},c.prototype.execute=function(a,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var t=this._execute(a,n);if(t)return t;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},c.prototype._execute=function(a,n){var t=!1,r=void 0;try{this.work(a)}catch(o){t=!0,r=!!o&&o||new Error(o)}if(t)return this.unsubscribe(),r},c.prototype._unsubscribe=function(){var a=this.id,n=this.scheduler,t=n.actions,r=t.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,r!==-1&&t.splice(r,1),a!=null&&(this.id=this.recycleAsyncId(n,a,null)),this.delay=null},c})(e.Action);return ze.AsyncAction=i,ze}var Ge={},un={},Ts;function tp(){if(Ts)return un;Ts=1,Object.defineProperty(un,"__esModule",{value:!0});var u=(function(){function e(i,s){s===void 0&&(s=e.now),this.SchedulerAction=i,this.now=s}return e.prototype.schedule=function(i,s,c){return s===void 0&&(s=0),new this.SchedulerAction(this,i).schedule(c,s)},e.now=function(){return Date.now()},e})();return un.Scheduler=u,un}var Es;function po(){if(Es)return Ge;Es=1;var u=Ge&&Ge.__extends||(function(){var s=function(c,a){return s=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])},s(c,a)};return function(c,a){s(c,a);function n(){this.constructor=c}c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)}})();Object.defineProperty(Ge,"__esModule",{value:!0});var e=tp(),i=(function(s){u(c,s);function c(a,n){n===void 0&&(n=e.Scheduler.now);var t=s.call(this,a,function(){return c.delegate&&c.delegate!==t?c.delegate.now():n()})||this;return t.actions=[],t.active=!1,t.scheduled=void 0,t}return c.prototype.schedule=function(a,n,t){return n===void 0&&(n=0),c.delegate&&c.delegate!==this?c.delegate.schedule(a,n,t):s.prototype.schedule.call(this,a,n,t)},c.prototype.flush=function(a){var n=this.actions;if(this.active){n.push(a);return}var t;this.active=!0;do if(t=a.execute(a.state,a.delay))break;while(a=n.shift());if(this.active=!1,t){for(;a=n.shift();)a.unsubscribe();throw t}},c})(e.Scheduler);return Ge.AsyncScheduler=i,Ge}var Ps;function B(){return Ps||(Ps=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0});
171var e=ho(),i=po();u.asyncScheduler=new i.AsyncScheduler(e.AsyncAction),u.async=u.asyncScheduler})(ki)),ki}var cn={},ln={},Cs;function bo(){if(Cs)return ln;Cs=1,Object.defineProperty(ln,"__esModule",{value:!0});var u=Oe();function e(i){return!u.isArray(i)&&i-parseFloat(i)+1>=0}return ln.isNumeric=e,ln}var fn={},Rs;function Le(){if(Rs)return fn;Rs=1,Object.defineProperty(fn,"__esModule",{value:!0});function u(e){return e&&typeof e.schedule=="function"}return fn.isScheduler=u,fn}var As;function rp(){if(As)return cn;As=1,Object.defineProperty(cn,"__esModule",{value:!0});var u=j(),e=B(),i=bo(),s=Le();function c(n,t,r){n===void 0&&(n=0);var o=-1;return i.isNumeric(t)?o=Number(t)<1&&1||Number(t):s.isScheduler(t)&&(r=t),s.isScheduler(r)||(r=e.async),new u.Observable(function(l){var f=i.isNumeric(n)?n:+n-r.now();return r.schedule(a,f,{index:0,period:o,subscriber:l})})}cn.timer=c;function a(n){var t=n.index,r=n.period,o=n.subscriber;if(o.next(t),!o.closed){if(r===-1)return o.complete();n.index=t+1,this.schedule(n,r)}}return cn}var js;function np(){if(js)return an;js=1,Object.defineProperty(an,"__esModule",{value:!0});var u=B(),e=Xc(),i=rp();function s(c,a){return a===void 0&&(a=u.async),e.audit(function(){return i.timer(c,a)})}return an.auditTime=s,an}var Je={},$s;function ip(){if($s)return Je;$s=1;var u=Je&&Je.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(Je,"__esModule",{value:!0});var e=R();function i(a){return function(t){return t.lift(new s(a))}}Je.buffer=i;var s=(function(){function a(n){this.closingNotifier=n}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.closingNotifier))},a})(),c=(function(a){u(n,a);function n(t,r){var o=a.call(this,t)||this;return o.buffer=[],o.add(e.innerSubscribe(r,new e.SimpleInnerSubscriber(o))),o}return n.prototype._next=function(t){this.buffer.push(t)},n.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},n})(e.SimpleOuterSubscriber);return Je}var Ye={},Is;function op(){if(Is)return Ye;Is=1;var u=Ye&&Ye.__extends||(function(){var n=function(t,r){return n=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])},n(t,r)};return function(t,r){n(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})();Object.defineProperty(Ye,"__esModule",{value:!0});var e=x();function i(n,t){return t===void 0&&(t=null),function(o){return o.lift(new s(n,t))}}Ye.bufferCount=i;var s=(function(){function n(t,r){this.bufferSize=t,this.startBufferEvery=r,!r||t===r?this.subscriberClass=c:this.subscriberClass=a}return n.prototype.call=function(t,r){return r.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},n})(),c=(function(n){u(t,n);function t(r,o){var l=n.call(this,r)||this;return l.bufferSize=o,l.buffer=[],l}return t.prototype._next=function(r){var o=this.buffer;o.push(r),o.length==this.bufferSize&&(this.destination.next(o),this.buffer=[])},t.prototype._complete=function(){var r=this.buffer;r.length>0&&this.destination.next(r),n.prototype._complete.call(this)},t})(e.Subscriber),a=(function(n){u(t,n);function t(r,o,l){var f=n.call(this,r)||this;return f.bufferSize=o,f.startBufferEvery=l,f.buffers=[],f.count=0,f}return t.prototype._next=function(r){var o=this,l=o.bufferSize,f=o.startBufferEvery,h=o.buffers,p=o.count;this.count++,p%f===0&&h.push([]);for(var d=h.length;d--;){var b=h[d];b.push(r),b.length===l&&(h.splice(d,1),this.destination.next(b))}},t.prototype._complete=function(){for(var r=this,o=r.buffers,l=r.destination;o.length>0;){var f=o.shift();f.length>0&&l.next(f)}n.prototype._complete.call(this)},t})(e.Subscriber);return Ye}var Ke={},Ms;function sp(){if(Ms)return Ke;Ms=1;var u=Ke&&Ke.__extends||(function(){var f=function(h,p){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var v in b)b.hasOwnProperty(v)&&(d[v]=b[v])},f(h,p)};return function(h,p){f(h,p);function d(){this.constructor=h}h.prototype=p===null?Object.create(p):(d.prototype=p.prototype,new d)}})();Object.defineProperty(Ke,"__esModule",{value:!0});var e=B(),i=x(),s=Le();function c(f){var h=arguments.length,p=e.async;s.isScheduler(arguments[arguments.length-1])&&(p=arguments[arguments.length-1],h--);var d=null;h>=2&&(d=arguments[1]);var b=Number.POSITIVE_INFINITY;return h>=3&&(b=arguments[2]),function(m){return m.lift(new a(f,d,b,p))}}Ke.bufferTime=c;var a=(function(){function f(h,p,d,b){this.bufferTimeSpan=h,this.bufferCreationInterval=p,this.maxBufferSize=d,this.scheduler=b}return f.prototype.call=function(h,p){return p.subscribe(new t(h,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},f})(),n=(function(){function f(){this.buffer=[]}return f})(),t=(function(f){u(h,f);function h(p,d,b,v,m){var g=f.call(this,p)||this;g.bufferTimeSpan=d,g.bufferCreationInterval=b,g.maxBufferSize=v,g.scheduler=m,g.contexts=[];var w=g.openContext();if(g.timespanOnly=b==null||b<0,g.timespanOnly){var O={subscriber:g,context:w,bufferTimeSpan:d};g.add(w.closeAction=m.schedule(r,d,O))}else{var E={subscriber:g,context:w},F={bufferTimeSpan:d,bufferCreationInterval:b,subscriber:g,scheduler:m};g.add(w.closeAction=m.schedule(l,d,E)),g.add(m.schedule(o,b,F))}return g}return h.prototype._next=function(p){for(var d=this.contexts,b=d.length,v,m=0;m<b;m++){var g=d[m],w=g.buffer;w.push(p),w.length==this.maxBufferSize&&(v=g)}v&&this.onBufferFull(v)},h.prototype._error=function(p){this.contexts.length=0,f.prototype._error.call(this,p)},h.prototype._complete=function(){for(var p=this,d=p.contexts,b=p.destination;d.length>0;){var v=d.shift();b.next(v.buffer)}f.prototype._complete.call(this)},h.prototype._unsubscribe=function(){this.contexts=null},h.prototype.onBufferFull=function(p){this.closeContext(p);var d=p.closeAction;if(d.unsubscribe(),this.remove(d),!this.closed&&this.timespanOnly){p=this.openContext();var b=this.bufferTimeSpan,v={subscriber:this,context:p,bufferTimeSpan:b};this.add(p.closeAction=this.scheduler.schedule(r,b,v))}},h.prototype.openContext=function(){var p=new n;return this.contexts.push(p),p},h.prototype.closeContext=function(p){this.destination.next(p.buffer);var d=this.contexts,b=d?d.indexOf(p):-1;b>=0&&d.splice(d.indexOf(p),1)},h})(i.Subscriber);function r(f){var h=f.subscriber,p=f.context;p&&h.closeContext(p),h.closed||(f.context=h.openContext(),f.context.closeAction=this.schedule(f,f.bufferTimeSpan))}function o(f){var h=f.bufferCreationInterval,p=f.bufferTimeSpan,d=f.subscriber,b=f.scheduler,v=d.openContext(),m=this;d.closed||(d.add(v.closeAction=b.schedule(l,p,{subscriber:d,context:v})),m.schedule(f,h))}function l(f){var h=f.subscriber,p=f.context;h.closeContext(p)}return Ke}var Qe={},hn={},Ze={},qs;
171function ap(){if(qs)return Ze;qs=1;var u=Ze&&Ze.__extends||(function(){var s=function(c,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])},s(c,a)};return function(c,a){s(c,a);function n(){this.constructor=c}c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)}})();Object.defineProperty(Ze,"__esModule",{value:!0});var e=x(),i=(function(s){u(c,s);function c(a,n,t){var r=s.call(this)||this;return r.parent=a,r.outerValue=n,r.outerIndex=t,r.index=0,r}return c.prototype._next=function(a){this.parent.notifyNext(this.outerValue,a,this.outerIndex,this.index++,this)},c.prototype._error=function(a){this.parent.notifyError(a,this),this.unsubscribe()},c.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},c})(e.Subscriber);return Ze.InnerSubscriber=i,Ze}var Ns;function Fe(){if(Ns)return hn;Ns=1,Object.defineProperty(hn,"__esModule",{value:!0});var u=ap(),e=fo(),i=j();function s(c,a,n,t,r){if(r===void 0&&(r=new u.InnerSubscriber(c,n,t)),!r.closed)return a instanceof i.Observable?a.subscribe(r):e.subscribeTo(a)(r)}return hn.subscribeToResult=s,hn}var Xe={},Ls;function ke(){if(Ls)return Xe;Ls=1;var u=Xe&&Xe.__extends||(function(){var s=function(c,a){return s=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])},s(c,a)};return function(c,a){s(c,a);function n(){this.constructor=c}c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)}})();Object.defineProperty(Xe,"__esModule",{value:!0});var e=x(),i=(function(s){u(c,s);function c(){return s!==null&&s.apply(this,arguments)||this}return c.prototype.notifyNext=function(a,n,t,r,o){this.destination.next(n)},c.prototype.notifyError=function(a,n){this.destination.error(a)},c.prototype.notifyComplete=function(a){this.destination.complete()},c})(e.Subscriber);return Xe.OuterSubscriber=i,Xe}var Fs;function up(){if(Fs)return Qe;Fs=1;var u=Qe&&Qe.__extends||(function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,f){l.__proto__=f}||function(l,f){for(var h in f)f.hasOwnProperty(h)&&(l[h]=f[h])},t(r,o)};return function(r,o){t(r,o);function l(){this.constructor=r}r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}})();Object.defineProperty(Qe,"__esModule",{value:!0});var e=M(),i=Fe(),s=ke();function c(t,r){return function(l){return l.lift(new a(t,r))}}Qe.bufferToggle=c;var a=(function(){function t(r,o){this.openings=r,this.closingSelector=o}return t.prototype.call=function(r,o){return o.subscribe(new n(r,this.openings,this.closingSelector))},t})(),n=(function(t){u(r,t);function r(o,l,f){var h=t.call(this,o)||this;return h.closingSelector=f,h.contexts=[],h.add(i.subscribeToResult(h,l)),h}return r.prototype._next=function(o){for(var l=this.contexts,f=l.length,h=0;h<f;h++)l[h].buffer.push(o)},r.prototype._error=function(o){for(var l=this.contexts;l.length>0;){var f=l.shift();f.subscription.unsubscribe(),f.buffer=null,f.subscription=null}this.contexts=null,t.prototype._error.call(this,o)},r.prototype._complete=function(){for(var o=this.contexts;o.length>0;){var l=o.shift();this.destination.next(l.buffer),l.subscription.unsubscribe(),l.buffer=null,l.subscription=null}this.contexts=null,t.prototype._complete.call(this)},r.prototype.notifyNext=function(o,l){o?this.closeBuffer(o):this.openBuffer(l)},r.prototype.notifyComplete=function(o){this.closeBuffer(o.context)},r.prototype.openBuffer=function(o){try{var l=this.closingSelector,f=l.call(this,o);f&&this.trySubscribe(f)}catch(h){this._error(h)}},r.prototype.closeBuffer=function(o){var l=this.contexts;if(l&&o){var f=o.buffer,h=o.subscription;this.destination.next(f),l.splice(l.indexOf(o),1),this.remove(h),h.unsubscribe()}},r.prototype.trySubscribe=function(o){var l=this.contexts,f=[],h=new e.Subscription,p={buffer:f,subscription:h};l.push(p);var d=i.subscribeToResult(this,o,p);!d||d.closed?this.closeBuffer(p):(d.context=p,this.add(d),h.add(d))},r})(s.OuterSubscriber);return Qe}var et={},ks;function cp(){if(ks)return et;ks=1;var u=et&&et.__extends||(function(){var n=function(t,r){return n=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])},n(t,r)};return function(t,r){n(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})();Object.defineProperty(et,"__esModule",{value:!0});var e=M(),i=R();function s(n){return function(t){return t.lift(new c(n))}}et.bufferWhen=s;var c=(function(){function n(t){this.closingSelector=t}return n.prototype.call=function(t,r){return r.subscribe(new a(t,this.closingSelector))},n})(),a=(function(n){u(t,n);function t(r,o){var l=n.call(this,r)||this;return l.closingSelector=o,l.subscribing=!1,l.openBuffer(),l}return t.prototype._next=function(r){this.buffer.push(r)},t.prototype._complete=function(){var r=this.buffer;r&&this.destination.next(r),n.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},t.prototype.notifyNext=function(){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var r=this.closingSubscription;r&&(this.remove(r),r.unsubscribe());var o=this.buffer;this.buffer&&this.destination.next(o),this.buffer=[];var l;try{var f=this.closingSelector;l=f()}catch(h){return this.error(h)}r=new e.Subscription,this.closingSubscription=r,this.add(r),this.subscribing=!0,r.add(i.innerSubscribe(l,new i.SimpleInnerSubscriber(this))),this.subscribing=!1},t})(i.SimpleOuterSubscriber);return et}var tt={},Vs;function lp(){if(Vs)return tt;Vs=1;var u=tt&&tt.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(tt,"__esModule",{value:!0});var e=R();function i(a){return function(t){var r=new s(a),o=t.lift(r);return r.caught=o}}tt.catchError=i;var s=(function(){function a(n){this.selector=n}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.selector,this.caught))},a})(),c=(function(a){u(n,a);function n(t,r,o){var l=a.call(this,t)||this;return l.selector=r,l.caught=o,l}return n.prototype.error=function(t){if(!this.isStopped){var r=void 0;try{r=this.selector(t,this.caught)}catch(f){a.prototype.error.call(this,f);return}this._unsubscribeAndRecycle();var o=new e.SimpleInnerSubscriber(this);this.add(o);var l=e.innerSubscribe(r,o);l!==o&&this.add(l)}},n})(e.SimpleOuterSubscriber);return tt}var pn={},ce={},dn={},bn={},Ds;function vo(){if(Ds)return bn;Ds=1,Object.defineProperty(bn,"__esModule",{value:!0});var u=j(),e=M();function i(s,c){return new u.Observable(function(a){var n=new e.Subscription,t=0;return n.add(c.schedule(function(){if(t===s.length){a.complete();return}a.next(s[t++]),a.closed||n.add(this.schedule())})),n})}return bn.scheduleArray=i,bn}var Ws;function Er(){if(Ws)return dn;Ws=1,Object.defineProperty(dn,"__esModule",{value:!0});var u=j(),e=Kc(),i=vo();function s(c,a){return a?i.scheduleArray(c,a):new u.Observable(e.subscribeToArray(c))}return dn.fromArray=s,dn}var Us;function el(){if(Us)return ce;Us=1;var u=ce&&ce.__extends||(function(){var l=function(f,h){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var b in d)d.hasOwnProperty(b)&&(p[b]=d[b])},l(f,h)};return function(f,h){l(f,h);function p(){this.constructor=f}f.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}})();Object.defineProperty(ce,"__esModule",{value:!0});var e=Le(),i=Oe(),s=ke(),c=Fe(),a=Er(),n={};function t(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];var h=void 0,p=void 0;return e.isScheduler(l[l.length-1])&&(p=l.pop()),typeof l[l.length-1]=="function"&&(h=l.pop()),l.length===1&&i.isArray(l[0])&&(l=l[0]),a.fromArray(l,p).lift(new r(h))}ce.combineLatest=t;var r=(function(){function l(f){this.resultSelector=f}return l.prototype.call=function(f,h){return h.subscribe(new o(f,this.resultSelector))},l})();ce.CombineLatestOperator=r;var o=(function(l){u(f,l);function f(h,p){var d=l.call(this,h)||this;return d.resultSelector=p,d.active=0,d.values=[],d.observables=[],d}return f.prototype._next=function(h){this.values.push(n),this.observables.push(h)},f.prototype._complete=function(){var h=this.observables,p=h.length;if(p===0)this.destination.complete();else{this.active=p,this.toRespond=p;for(var d=0;d<p;d++){var b=h[d];this.add(c.subscribeToResult(this,b,void 0,d))}}},f.prototype.notifyComplete=function(h){(this.active-=1)===0&&this.destination.complete()},f.prototype.notifyNext=function(h,p,d){var b=this.values,v=b[d],m=this.toRespond?v===n?--this.toRespond:this.toRespond:0;b[d]=p,m===0&&(this.resultSelector?this._tryResultSelector(b):this.destination.next(b.slice()))},f.prototype._tryResultSelector=function(h){var p;try{p=this.resultSelector.apply(this,h)}catch(d){this.destination.error(d);return}this.destination.next(p)},f})(s.OuterSubscriber);return ce.CombineLatestSubscriber=o,ce}var Bs;function fp(){if(Bs)return pn;Bs=1,Object.defineProperty(pn,"__esModule",{value:!0});var u=el();function e(i){return function(s){return s.lift(new u.CombineLatestOperator(i))}}return pn.combineAll=e,pn}var vn={},_n={},mn={},yn={},zs;function hp(){if(zs)return yn;zs=1,Object.defineProperty(yn,"__esModule",{value:!0});var u=j(),e=M(),i=Or();function s(c,a){return new u.Observable(function(n){var t=new e.Subscription;return t.add(a.schedule(function(){var r=c[i.observable]();t.add(r.subscribe({next:function(o){t.add(a.schedule(function(){return n.next(o)}))},error:function(o){t.add(a.schedule(function(){return n.error(o)}))},complete:function(){t.add(a.schedule(function(){return n.complete()}
171))}}))})),t})}return yn.scheduleObservable=s,yn}var gn={},Hs;function pp(){if(Hs)return gn;Hs=1,Object.defineProperty(gn,"__esModule",{value:!0});var u=j(),e=M();function i(s,c){return new u.Observable(function(a){var n=new e.Subscription;return n.add(c.schedule(function(){return s.then(function(t){n.add(c.schedule(function(){a.next(t),n.add(c.schedule(function(){return a.complete()}))}))},function(t){n.add(c.schedule(function(){return a.error(t)}))})})),n})}return gn.schedulePromise=i,gn}var Sn={},Gs;function dp(){if(Gs)return Sn;Gs=1,Object.defineProperty(Sn,"__esModule",{value:!0});var u=j(),e=M(),i=Tr();function s(c,a){if(!c)throw new Error("Iterable cannot be null");return new u.Observable(function(n){var t=new e.Subscription,r;return t.add(function(){r&&typeof r.return=="function"&&r.return()}),t.add(a.schedule(function(){r=c[i.iterator](),t.add(a.schedule(function(){if(!n.closed){var o,l;try{var f=r.next();o=f.value,l=f.done}catch(h){n.error(h);return}l?n.complete():(n.next(o),this.schedule())}}))})),t})}return Sn.scheduleIterable=s,Sn}var wn={},Js;function bp(){if(Js)return wn;Js=1,Object.defineProperty(wn,"__esModule",{value:!0});var u=Or();function e(i){return i&&typeof i[u.observable]=="function"}return wn.isInteropObservable=e,wn}var On={},Ys;function vp(){if(Ys)return On;Ys=1,Object.defineProperty(On,"__esModule",{value:!0});var u=Tr();function e(i){return i&&typeof i[u.iterator]=="function"}return On.isIterable=e,On}var Ks;function _p(){if(Ks)return mn;Ks=1,Object.defineProperty(mn,"__esModule",{value:!0});var u=hp(),e=pp(),i=vo(),s=dp(),c=bp(),a=Zc(),n=Qc(),t=vp();function r(o,l){if(o!=null){if(c.isInteropObservable(o))return u.scheduleObservable(o,l);if(a.isPromise(o))return e.schedulePromise(o,l);if(n.isArrayLike(o))return i.scheduleArray(o,l);if(t.isIterable(o)||typeof o=="string")return s.scheduleIterable(o,l)}throw new TypeError((o!==null&&typeof o||o)+" is not observable")}return mn.scheduled=r,mn}var Qs;function ar(){if(Qs)return _n;Qs=1,Object.defineProperty(_n,"__esModule",{value:!0});var u=j(),e=fo(),i=_p();function s(c,a){return a?i.scheduled(c,a):c instanceof u.Observable?c:new u.Observable(e.subscribeTo(c))}return _n.from=s,_n}var Zs;function mp(){if(Zs)return vn;Zs=1,Object.defineProperty(vn,"__esModule",{value:!0});var u=Oe(),e=el(),i=ar();function s(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];var n=null;return typeof c[c.length-1]=="function"&&(n=c.pop()),c.length===1&&u.isArray(c[0])&&(c=c[0].slice()),function(t){return t.lift.call(i.from([t].concat(c)),new e.CombineLatestOperator(n))}}return vn.combineLatest=s,vn}var xn={},Tn={},En={},Xs;function _o(){if(Xs)return En;Xs=1,Object.defineProperty(En,"__esModule",{value:!0});var u=Le(),e=Er(),i=vo();function s(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];var n=c[c.length-1];return u.isScheduler(n)?(c.pop(),i.scheduleArray(c,n)):e.fromArray(c)}return En.of=s,En}var Pn={},Cn={},ne={},Pe={},ea;function Ve(){if(ea)return Pe;ea=1;var u=Pe&&Pe.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(Pe,"__esModule",{value:!0});var e=x();function i(a,n){return function(r){if(typeof a!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new s(a,n))}}Pe.map=i;var s=(function(){function a(n,t){this.project=n,this.thisArg=t}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.project,this.thisArg))},a})();Pe.MapOperator=s;var c=(function(a){u(n,a);function n(t,r,o){var l=a.call(this,t)||this;return l.project=r,l.count=0,l.thisArg=o||l,l}return n.prototype._next=function(t){var r;try{r=this.project.call(this.thisArg,t,this.count++)}catch(o){this.destination.error(o);return}this.destination.next(r)},n})(e.Subscriber);return Pe}var ta;function Oi(){if(ta)return ne;ta=1;var u=ne&&ne.__extends||(function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,f){l.__proto__=f}||function(l,f){for(var h in f)f.hasOwnProperty(h)&&(l[h]=f[h])},t(r,o)};return function(r,o){t(r,o);function l(){this.constructor=r}
171r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}})();Object.defineProperty(ne,"__esModule",{value:!0});var e=Ve(),i=ar(),s=R();function c(t,r,o){return o===void 0&&(o=Number.POSITIVE_INFINITY),typeof r=="function"?function(l){return l.pipe(c(function(f,h){return i.from(t(f,h)).pipe(e.map(function(p,d){return r(f,p,h,d)}))},o))}:(typeof r=="number"&&(o=r),function(l){return l.lift(new a(t,o))})}ne.mergeMap=c;var a=(function(){function t(r,o){o===void 0&&(o=Number.POSITIVE_INFINITY),this.project=r,this.concurrent=o}return t.prototype.call=function(r,o){return o.subscribe(new n(r,this.project,this.concurrent))},t})();ne.MergeMapOperator=a;var n=(function(t){u(r,t);function r(o,l,f){f===void 0&&(f=Number.POSITIVE_INFINITY);var h=t.call(this,o)||this;return h.project=l,h.concurrent=f,h.hasCompleted=!1,h.buffer=[],h.active=0,h.index=0,h}return r.prototype._next=function(o){this.active<this.concurrent?this._tryNext(o):this.buffer.push(o)},r.prototype._tryNext=function(o){var l,f=this.index++;try{l=this.project(o,f)}catch(h){this.destination.error(h);return}this.active++,this._innerSub(l)},r.prototype._innerSub=function(o){var l=new s.SimpleInnerSubscriber(this),f=this.destination;f.add(l);var h=s.innerSubscribe(o,l);h!==l&&f.add(h)},r.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&this.destination.complete(),this.unsubscribe()},r.prototype.notifyNext=function(o){this.destination.next(o)},r.prototype.notifyComplete=function(){var o=this.buffer;this.active--,o.length>0?this._next(o.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},r})(s.SimpleOuterSubscriber);return ne.MergeMapSubscriber=n,ne.flatMap=c,ne}var ra;function mo(){if(ra)return Cn;ra=1,Object.defineProperty(Cn,"__esModule",{value:!0});var u=Oi(),e=xr();function i(s){return s===void 0&&(s=Number.POSITIVE_INFINITY),u.mergeMap(e.identity,s)}return Cn.mergeAll=i,Cn}var na;function tl(){if(na)return Pn;na=1,Object.defineProperty(Pn,"__esModule",{value:!0});var u=mo();function e(){return u.mergeAll(1)}return Pn.concatAll=e,Pn}var ia;function yo(){if(ia)return Tn;ia=1,Object.defineProperty(Tn,"__esModule",{value:!0});var u=_o(),e=tl();function i(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return e.concatAll()(u.of.apply(void 0,s))}return Tn.concat=i,Tn}var oa;function yp(){if(oa)return xn;oa=1,Object.defineProperty(xn,"__esModule",{value:!0});var u=yo();function e(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return function(c){return c.lift.call(u.concat.apply(void 0,[c].concat(i)))}}return xn.concat=e,xn}var Rn={},sa;function rl(){if(sa)return Rn;sa=1,Object.defineProperty(Rn,"__esModule",{value:!0});var u=Oi();function e(i,s){return u.mergeMap(i,s,1)}return Rn.concatMap=e,Rn}var An={},aa;function gp(){if(aa)return An;aa=1,Object.defineProperty(An,"__esModule",{value:!0});var u=rl();function e(i,s){return u.concatMap(function(){return i},s)}return An.concatMapTo=e,An}var rt={},ua;function Sp(){if(ua)return rt;ua=1;var u=rt&&rt.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(rt,"__esModule",{value:!0});var e=x();function i(a){return function(n){return n.lift(new s(a,n))}}rt.count=i;var s=(function(){function a(n,t){this.predicate=n,this.source=t}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.predicate,this.source))},a})(),c=(function(a){u(n,a);function n(t,r,o){var l=a.call(this,t)||this;return l.predicate=r,l.source=o,l.count=0,l.index=0,l}return n.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},n.prototype._tryPredicate=function(t){var r;try{r=this.predicate(t,this.index++,this.source)}catch(o){this.destination.error(o);return}r&&this.count++},n.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},n})(e.Subscriber);return rt}var nt={},ca;function wp(){if(ca)return nt;ca=1;var u=nt&&nt.__extends||(function(){var a=function(n,t){return a=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(nt,"__esModule",{value:!0});var e=R();function i(a){return function(n){return n.lift(new s(a))}}nt.debounce=i;var s=(function(){function a(n){this.durationSelector=n}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.durationSelector))},a})(),c=(function(a){u(n,a);function n(t,r){var o=a.call(this,t)||this;return o.durationSelector=r,o.hasValue=!1,o}return n.prototype._next=function(t){try{var r=this.durationSelector.call(this,t);r&&this._tryNext(t,r)}catch(o){this.destination.error(o)}},n.prototype._complete=function(){this.emitValue(),this.destination.complete()},n.prototype._tryNext=function(t,r){var o=this.durationSubscription;this.value=t,this.hasValue=!0,o&&(o.unsubscribe(),this.remove(o)),o=e.innerSubscribe(r,new e.SimpleInnerSubscriber(this)),o&&!o.closed&&this.add(this.durationSubscription=o)},n.prototype.notifyNext=function(){this.emitValue()},n.prototype.notifyComplete=function(){this.emitValue()},n.prototype.emitValue=function(){if(this.hasValue){var t=this.value,r=this.durationSubscription;r&&(this.durationSubscription=void 0,r.unsubscribe(),this.remove(r)),this.value=void 0,this.hasValue=!1,a.prototype._next.call(this,t)}},n})(e.SimpleOuterSubscriber);return nt}var it={},la;function Op(){if(la)return it;la=1;var u=it&&it.__extends||(function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,f){l.__proto__=f}||function(l,f){for(var h in f)f.hasOwnProperty(h)&&(l[h]=f[h])},t(r,o)};return function(r,o){t(r,o);function l(){this.constructor=r}r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}})();Object.defineProperty(it,"__esModule",{value:!0});var e=x(),i=B();function s(t,r){return r===void 0&&(r=i.async),function(o){return o.lift(new c(t,r))}}it.debounceTime=s;var c=(function(){function t(r,o){this.dueTime=r,this.scheduler=o}return t.prototype.call=function(r,o){return o.subscribe(new a(r,this.dueTime,this.scheduler))},t})(),a=(function(t){u(r,t);function r(o,l,f){var h=t.call(this,o)||this;return h.dueTime=l,h.scheduler=f,h.debouncedSubscription=null,h.lastValue=null,h.hasValue=!1,h}return r.prototype._next=function(o){this.clearDebounce(),this.lastValue=o,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(n,this.dueTime,this))},r.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},r.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var o=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(o)}},r.prototype.clearDebounce=function(){var o=this.debouncedSubscription;o!==null&&(this.remove(o),o.unsubscribe(),this.debouncedSubscription=null)},r})(e.Subscriber);function n(t){t.debouncedNext()}return it}var ot={},fa;function Pr(){if(fa)return ot;fa=1;var u=ot&&ot.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();
171Object.defineProperty(ot,"__esModule",{value:!0});var e=x();function i(a){return a===void 0&&(a=null),function(n){return n.lift(new s(a))}}ot.defaultIfEmpty=i;var s=(function(){function a(n){this.defaultValue=n}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.defaultValue))},a})(),c=(function(a){u(n,a);function n(t,r){var o=a.call(this,t)||this;return o.defaultValue=r,o.isEmpty=!0,o}return n.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},n.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},n})(e.Subscriber);return ot}var st={},jn={},ha;function nl(){if(ha)return jn;ha=1,Object.defineProperty(jn,"__esModule",{value:!0});function u(e){return e instanceof Date&&!isNaN(+e)}return jn.isDate=u,jn}var Vi={},Di={},pa;function Cr(){return pa||(pa=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0});var e=j();u.EMPTY=new e.Observable(function(c){return c.complete()});function i(c){return c?s(c):u.EMPTY}u.empty=i;function s(c){return new e.Observable(function(a){return c.schedule(function(){return a.complete()})})}})(Di)),Di}var $n={},da;function il(){if(da)return $n;da=1,Object.defineProperty($n,"__esModule",{value:!0});var u=j();function e(s,c){return c?new u.Observable(function(a){return c.schedule(i,0,{error:s,subscriber:a})}):new u.Observable(function(a){return a.error(s)})}$n.throwError=e;function i(s){var c=s.error,a=s.subscriber;a.error(c)}return $n}var ba;function go(){return ba||(ba=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0});var e=Cr(),i=_o(),s=il();(function(a){a.NEXT="N",a.ERROR="E",a.COMPLETE="C"})(u.NotificationKind||(u.NotificationKind={}));var c=(function(){function a(n,t,r){this.kind=n,this.value=t,this.error=r,this.hasValue=n==="N"}return a.prototype.observe=function(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}},a.prototype.do=function(n,t,r){var o=this.kind;switch(o){case"N":return n&&n(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}},a.prototype.accept=function(n,t,r){return n&&typeof n.next=="function"?this.observe(n):this.do(n,t,r)},a.prototype.toObservable=function(){var n=this.kind;switch(n){case"N":return i.of(this.value);case"E":return s.throwError(this.error);case"C":return e.empty()}throw new Error("unexpected notification kind value")},a.createNext=function(n){return typeof n<"u"?new a("N",n):a.undefinedValueNotification},a.createError=function(n){return new a("E",void 0,n)},a.createComplete=function(){return a.completeNotification},a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0),a})();u.Notification=c})(Vi)),Vi}var va;function xp(){if(va)return st;va=1;var u=st&&st.__extends||(function(){var o=function(l,f){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var d in p)p.hasOwnProperty(d)&&(h[d]=p[d])},o(l,f)};return function(l,f){o(l,f);function h(){this.constructor=l}l.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}})();Object.defineProperty(st,"__esModule",{value:!0});var e=B(),i=nl(),s=x(),c=go();function a(o,l){l===void 0&&(l=e.async);var f=i.isDate(o),h=f?+o-l.now():Math.abs(o);return function(p){return p.lift(new n(h,l))}}st.delay=a;var n=(function(){function o(l,f){this.delay=l,this.scheduler=f}return o.prototype.call=function(l,f){return f.subscribe(new t(l,this.delay,this.scheduler))},o})(),t=(function(o){u(l,o);function l(f,h,p){var d=o.call(this,f)||this;return d.delay=h,d.scheduler=p,d.queue=[],d.active=!1,d.errored=!1,d}return l.dispatch=function(f){for(var h=f.source,p=h.queue,d=f.scheduler,b=f.destination;p.length>0&&p[0].time-d.now()<=0;)p.shift().notification.observe(b);if(p.length>0){var v=Math.max(0,p[0].time-d.now());this.schedule(f,v)}else this.unsubscribe(),h.active=!1},l.prototype._schedule=function(f){this.active=!0;var h=this.destination;
171h.add(f.schedule(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:f}))},l.prototype.scheduleNotification=function(f){if(this.errored!==!0){var h=this.scheduler,p=new r(h.now()+this.delay,f);this.queue.push(p),this.active===!1&&this._schedule(h)}},l.prototype._next=function(f){this.scheduleNotification(c.Notification.createNext(f))},l.prototype._error=function(f){this.errored=!0,this.queue=[],this.destination.error(f),this.unsubscribe()},l.prototype._complete=function(){this.scheduleNotification(c.Notification.createComplete()),this.unsubscribe()},l})(s.Subscriber),r=(function(){function o(l,f){this.time=l,this.notification=f}return o})();return st}var at={},_a;function Tp(){if(_a)return at;_a=1;var u=at&&at.__extends||(function(){var l=function(f,h){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var b in d)d.hasOwnProperty(b)&&(p[b]=d[b])},l(f,h)};return function(f,h){l(f,h);function p(){this.constructor=f}f.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}})();
171Object.defineProperty(at,"__esModule",{value:!0});var e=x(),i=j(),s=ke(),c=Fe();function a(l,f){return f?function(h){return new r(h,f).lift(new n(l))}:function(h){return h.lift(new n(l))}}at.delayWhen=a;var n=(function(){function l(f){this.delayDurationSelector=f}return l.prototype.call=function(f,h){return h.subscribe(new t(f,this.delayDurationSelector))},l})(),t=(function(l){u(f,l);function f(h,p){var d=l.call(this,h)||this;return d.delayDurationSelector=p,d.completed=!1,d.delayNotifierSubscriptions=[],d.index=0,d}return f.prototype.notifyNext=function(h,p,d,b,v){this.destination.next(h),this.removeSubscription(v),this.tryComplete()},f.prototype.notifyError=function(h,p){this._error(h)},f.prototype.notifyComplete=function(h){var p=this.removeSubscription(h);p&&this.destination.next(p),this.tryComplete()},f.prototype._next=function(h){var p=this.index++;try{var d=this.delayDurationSelector(h,p);d&&this.tryDelay(d,h)}catch(b){this.destination.error(b)}},f.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},f.prototype.removeSubscription=function(h){h.unsubscribe();var p=this.delayNotifierSubscriptions.indexOf(h);return p!==-1&&this.delayNotifierSubscriptions.splice(p,1),h.outerValue},f.prototype.tryDelay=function(h,p){var d=c.subscribeToResult(this,h,p);if(d&&!d.closed){var b=this.destination;b.add(d),this.delayNotifierSubscriptions.push(d)}},f.prototype.tryComplete=function(){this.completed&&this.delayNotifierSubscriptions.length===0&&this.destination.complete()},f})(s.OuterSubscriber),r=(function(l){u(f,l);function f(h,p){var d=l.call(this)||this;return d.source=h,d.subscriptionDelay=p,d}return f.prototype._subscribe=function(h){this.subscriptionDelay.subscribe(new o(h,this.source))},f})(i.Observable),o=(function(l){u(f,l);function f(h,p){var d=l.call(this)||this;return d.parent=h,d.source=p,d.sourceSubscribed=!1,d}return f.prototype._next=function(h){this.subscribeToSource()},f.prototype._error=function(h){this.unsubscribe(),this.parent.error(h)},f.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},f.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},f})(e.Subscriber);return at}var ut={},ma;function Ep(){if(ma)return ut;ma=1;var u=ut&&ut.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(ut,"__esModule",{value:!0});var e=x();function i(){return function(n){return n.lift(new s)}}ut.dematerialize=i;var s=(function(){function a(){}return a.prototype.call=function(n,t){return t.subscribe(new c(n))},a})(),c=(function(a){u(n,a);function n(t){return a.call(this,t)||this}return n.prototype._next=function(t){t.observe(this.destination)},n})(e.Subscriber);return ut}var Ce={},ya;function Pp(){if(ya)return Ce;ya=1;var u=Ce&&Ce.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(Ce,"__esModule",{value:!0});var e=R();function i(a,n){return function(t){return t.lift(new s(a,n))}}Ce.distinct=i;var s=(function(){function a(n,t){this.keySelector=n,this.flushes=t}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.keySelector,this.flushes))},a})(),c=(function(a){u(n,a);function n(t,r,o){var l=a.call(this,t)||this;return l.keySelector=r,l.values=new Set,o&&l.add(e.innerSubscribe(o,new e.SimpleInnerSubscriber(l))),l}return n.prototype.notifyNext=function(){this.values.clear()},n.prototype.notifyError=function(t){this._error(t)},n.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},n.prototype._useKeySelector=function(t){var r,o=this.destination;try{r=this.keySelector(t)}catch(l){o.error(l);return}this._finalizeNext(r,t)},n.prototype._finalizeNext=function(t,r){var o=this.values;o.has(t)||(o.add(t),this.destination.next(r))},n})(e.SimpleOuterSubscriber);return Ce.DistinctSubscriber=c,Ce}var ct={},ga;function ol(){if(ga)return ct;ga=1;var u=ct&&ct.__extends||(function(){var a=function(n,t){return a=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(ct,"__esModule",{value:!0});var e=x();function i(a,n){return function(t){return t.lift(new s(a,n))}}ct.distinctUntilChanged=i;var s=(function(){function a(n,t){this.compare=n,this.keySelector=t}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.compare,this.keySelector))},a})(),c=(function(a){u(n,a);function n(t,r,o){var l=a.call(this,t)||this;return l.keySelector=o,l.hasKey=!1,typeof r=="function"&&(l.compare=r),l}return n.prototype.compare=function(t,r){return t===r},n.prototype._next=function(t){var r;try{var o=this.keySelector;r=o?o(t):t}catch(h){return this.destination.error(h)}var l=!1;if(this.hasKey)try{var f=this.compare;l=f(this.key,r)}catch(h){return this.destination.error(h)}else this.hasKey=!0;l||(this.key=r,this.destination.next(t))},n})(e.Subscriber);return ct}var In={},Sa;function Cp(){if(Sa)return In;Sa=1,Object.defineProperty(In,"__esModule",{value:!0});var u=ol();function e(i,s){return u.distinctUntilChanged(function(c,a){return s?s(c[i],a[i]):c[i]===a[i]})}return In.distinctUntilKeyChanged=e,In}var Mn={},qn={},wa;function xi(){if(wa)return qn;wa=1,Object.defineProperty(qn,"__esModule",{value:!0});var u=(function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();return qn.ArgumentOutOfRangeError=u,qn}var lt={},Oa;function Rr(){if(Oa)return lt;Oa=1;var u=lt&&lt.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(lt,"__esModule",{value:!0});var e=x();function i(a,n){return function(r){return r.lift(new s(a,n))}}lt.filter=i;var s=(function(){function a(n,t){this.predicate=n,this.thisArg=t}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.predicate,this.thisArg))},a})(),c=(function(a){u(n,a);function n(t,r,o){var l=a.call(this,t)||this;return l.predicate=r,l.thisArg=o,l.count=0,l}return n.prototype._next=function(t){var r;try{r=this.predicate.call(this.thisArg,t,this.count++)}catch(o){this.destination.error(o);return}r&&this.destination.next(t)},n})(e.Subscriber);return lt}var ft={},Nn={},xa;function Ti(){if(xa)return Nn;xa=1,Object.defineProperty(Nn,"__esModule",{value:!0});var u=(function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})();return Nn.EmptyError=u,Nn}var Ta;function Ei(){if(Ta)return ft;Ta=1;var u=ft&&ft.__extends||(function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,f){l.__proto__=f}||function(l,f){for(var h in f)f.hasOwnProperty(h)&&(l[h]=f[h])},t(r,o)};return function(r,o){t(r,o);function l(){this.constructor=r}r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}})();Object.defineProperty(ft,"__esModule",{value:!0});var e=Ti(),i=x();function s(t){return t===void 0&&(t=n),function(r){return r.lift(new c(t))}}ft.throwIfEmpty=s;var c=(function(){function t(r){this.errorFactory=r}return t.prototype.call=function(r,o){return o.subscribe(new a(r,this.errorFactory))},t})(),a=(function(t){u(r,t);function r(o,l){var f=t.call(this,o)||this;return f.errorFactory=l,f.hasValue=!1,f}return r.prototype._next=function(o){this.hasValue=!0,this.destination.next(o)},r.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var o=void 0;try{o=this.errorFactory()}catch(l){o=l}this.destination.error(o)},r})(i.Subscriber);function n(){return new e.EmptyError}return ft}var ht={},Ea;
171function So(){if(Ea)return ht;Ea=1;var u=ht&&ht.__extends||(function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,f){l.__proto__=f}||function(l,f){for(var h in f)f.hasOwnProperty(h)&&(l[h]=f[h])},t(r,o)};return function(r,o){t(r,o);function l(){this.constructor=r}r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}})();Object.defineProperty(ht,"__esModule",{value:!0});var e=x(),i=xi(),s=Cr();function c(t){return function(r){return t===0?s.empty():r.lift(new a(t))}}ht.take=c;var a=(function(){function t(r){if(this.total=r,this.total<0)throw new i.ArgumentOutOfRangeError}return t.prototype.call=function(r,o){return o.subscribe(new n(r,this.total))},t})(),n=(function(t){u(r,t);function r(o,l){var f=t.call(this,o)||this;return f.total=l,f.count=0,f}return r.prototype._next=function(o){var l=this.total,f=++this.count;f<=l&&(this.destination.next(o),f===l&&(this.destination.complete(),this.unsubscribe()))},r})(e.Subscriber);return ht}var Pa;function Rp(){if(Pa)return Mn;Pa=1,Object.defineProperty(Mn,"__esModule",{value:!0});var u=xi(),e=Rr(),i=Ei(),s=Pr(),c=So();function a(n,t){if(n<0)throw new u.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(o){return o.pipe(e.filter(function(l,f){return f===n}),c.take(1),r?s.defaultIfEmpty(t):i.throwIfEmpty(function(){return new u.ArgumentOutOfRangeError}))}}return Mn.elementAt=a,Mn}var Ln={},Ca;function Ap(){if(Ca)return Ln;Ca=1,Object.defineProperty(Ln,"__esModule",{value:!0});var u=yo(),e=_o();function i(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return function(a){return u.concat(a,e.of.apply(void 0,s))}}return Ln.endWith=i,Ln}var pt={},Ra;function jp(){if(Ra)return pt;Ra=1;var u=pt&&pt.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(pt,"__esModule",{value:!0});var e=x();function i(a,n){return function(t){return t.lift(new s(a,n,t))}}pt.every=i;var s=(function(){function a(n,t,r){this.predicate=n,this.thisArg=t,this.source=r}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.predicate,this.thisArg,this.source))},a})(),c=(function(a){u(n,a);function n(t,r,o,l){var f=a.call(this,t)||this;return f.predicate=r,f.thisArg=o,f.source=l,f.index=0,f.thisArg=o||f,f}return n.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},n.prototype._next=function(t){var r=!1;try{r=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(o){this.destination.error(o);return}r||this.notifyComplete(!1)},n.prototype._complete=function(){this.notifyComplete(!0)},n})(e.Subscriber);return pt}var dt={},Aa;function $p(){if(Aa)return dt;Aa=1;var u=dt&&dt.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();
171Object.defineProperty(dt,"__esModule",{value:!0});var e=R();function i(){return function(a){return a.lift(new s)}}dt.exhaust=i;var s=(function(){function a(){}return a.prototype.call=function(n,t){return t.subscribe(new c(n))},a})(),c=(function(a){u(n,a);function n(t){var r=a.call(this,t)||this;return r.hasCompleted=!1,r.hasSubscription=!1,r}return n.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(e.innerSubscribe(t,new e.SimpleInnerSubscriber(this))))},n.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},n.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},n})(e.SimpleOuterSubscriber);return dt}var bt={},ja;function Ip(){if(ja)return bt;ja=1;var u=bt&&bt.__extends||(function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,f){l.__proto__=f}||function(l,f){for(var h in f)f.hasOwnProperty(h)&&(l[h]=f[h])},t(r,o)};return function(r,o){t(r,o);function l(){this.constructor=r}r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}})();Object.defineProperty(bt,"__esModule",{value:!0});var e=Ve(),i=ar(),s=R();function c(t,r){return r?function(o){return o.pipe(c(function(l,f){return i.from(t(l,f)).pipe(e.map(function(h,p){return r(l,h,f,p)}))}))}:function(o){return o.lift(new a(t))}}bt.exhaustMap=c;var a=(function(){function t(r){this.project=r}return t.prototype.call=function(r,o){return o.subscribe(new n(r,this.project))},t})(),n=(function(t){u(r,t);function r(o,l){var f=t.call(this,o)||this;return f.project=l,f.hasSubscription=!1,f.hasCompleted=!1,f.index=0,f}return r.prototype._next=function(o){this.hasSubscription||this.tryNext(o)},r.prototype.tryNext=function(o){var l,f=this.index++;try{l=this.project(o,f)}catch(h){this.destination.error(h);return}this.hasSubscription=!0,this._innerSub(l)},r.prototype._innerSub=function(o){var l=new s.SimpleInnerSubscriber(this),f=this.destination;f.add(l);var h=s.innerSubscribe(o,l);h!==l&&f.add(h)},r.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},r.prototype.notifyNext=function(o){this.destination.next(o)},r.prototype.notifyError=function(o){this.destination.error(o)},r.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},r})(s.SimpleOuterSubscriber);return bt}var le={},$a;function Mp(){if($a)return le;$a=1;var u=le&&le.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();
171Object.defineProperty(le,"__esModule",{value:!0});var e=R();function i(a,n,t){return n===void 0&&(n=Number.POSITIVE_INFINITY),n=(n||0)<1?Number.POSITIVE_INFINITY:n,function(r){return r.lift(new s(a,n,t))}}le.expand=i;var s=(function(){function a(n,t,r){this.project=n,this.concurrent=t,this.scheduler=r}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.project,this.concurrent,this.scheduler))},a})();le.ExpandOperator=s;var c=(function(a){u(n,a);function n(t,r,o,l){var f=a.call(this,t)||this;return f.project=r,f.concurrent=o,f.scheduler=l,f.index=0,f.active=0,f.hasCompleted=!1,o<Number.POSITIVE_INFINITY&&(f.buffer=[]),f}return n.dispatch=function(t){var r=t.subscriber,o=t.result,l=t.value,f=t.index;r.subscribeToProjection(o,l,f)},n.prototype._next=function(t){var r=this.destination;if(r.closed){this._complete();return}var o=this.index++;if(this.active<this.concurrent){r.next(t);try{var l=this.project,f=l(t,o);if(!this.scheduler)this.subscribeToProjection(f,t,o);else{var h={subscriber:this,result:f,value:t,index:o},p=this.destination;p.add(this.scheduler.schedule(n.dispatch,0,h))}}catch(d){r.error(d)}}else this.buffer.push(t)},n.prototype.subscribeToProjection=function(t,r,o){this.active++;var l=this.destination;l.add(e.innerSubscribe(t,new e.SimpleInnerSubscriber(this)))},n.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&this.active===0&&this.destination.complete(),this.unsubscribe()},n.prototype.notifyNext=function(t){this._next(t)},n.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&this.active===0&&this.destination.complete()},n})(e.SimpleOuterSubscriber);return le.ExpandSubscriber=c,le}var vt={},Ia;function qp(){if(Ia)return vt;Ia=1;var u=vt&&vt.__extends||(function(){var n=function(t,r){return n=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])},n(t,r)};return function(t,r){n(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})();Object.defineProperty(vt,"__esModule",{value:!0});var e=x(),i=M();function s(n){return function(t){return t.lift(new c(n))}}vt.finalize=s;var c=(function(){function n(t){this.callback=t}return n.prototype.call=function(t,r){return r.subscribe(new a(t,this.callback))},n})(),a=(function(n){u(t,n);function t(r,o){var l=n.call(this,r)||this;return l.add(new i.Subscription(o)),l}return t})(e.Subscriber);return vt}var fe={},Ma;function sl(){if(Ma)return fe;Ma=1;var u=fe&&fe.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(fe,"__esModule",{value:!0});var e=x();function i(a,n){if(typeof a!="function")throw new TypeError("predicate is not a function");return function(t){return t.lift(new s(a,t,!1,n))}}fe.find=i;var s=(function(){function a(n,t,r,o){this.predicate=n,this.source=t,this.yieldIndex=r,this.thisArg=o}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.predicate,this.source,this.yieldIndex,this.thisArg))},a})();fe.FindValueOperator=s;var c=(function(a){u(n,a);function n(t,r,o,l,f){var h=a.call(this,t)||this;return h.predicate=r,h.source=o,h.yieldIndex=l,h.thisArg=f,h.index=0,h}return n.prototype.notifyComplete=function(t){var r=this.destination;r.next(t),r.complete(),this.unsubscribe()},n.prototype._next=function(t){var r=this,o=r.predicate,l=r.thisArg,f=this.index++;try{var h=o.call(l||this,t,f,this.source);h&&this.notifyComplete(this.yieldIndex?f:t)}catch(p){this.destination.error(p)}},n.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},n})(e.Subscriber);return fe.FindValueSubscriber=c,fe}var Fn={},qa;function Np(){if(qa)return Fn;qa=1,Object.defineProperty(Fn,"__esModule",{value:!0});var u=sl();function e(i,s){return function(c){return c.lift(new u.FindValueOperator(i,c,!0,s))}}return Fn.findIndex=e,Fn}var kn={},Na;function Lp(){if(Na)return kn;Na=1,Object.defineProperty(kn,"__esModule",{value:!0});var u=Ti(),e=Rr(),i=So(),s=Pr(),c=Ei(),a=xr();function n(t,r){var o=arguments.length>=2;return function(l){return l.pipe(t?e.filter(function(f,h){return t(f,h,l)}):a.identity,i.take(1),o?s.defaultIfEmpty(r):c.throwIfEmpty(function(){return new u.EmptyError}))}}return kn.first=n,kn}var Re={},he={},Vn={},La;function wo(){if(La)return Vn;La=1,Object.defineProperty(Vn,"__esModule",{value:!0});var u=(function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();return Vn.ObjectUnsubscribedError=u,Vn}var _t={},Fa;function al(){if(Fa)return _t;Fa=1;var u=_t&&_t.__extends||(function(){var s=function(c,a){return s=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])},s(c,a)};return function(c,a){s(c,a);function n(){this.constructor=c}c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)}})();Object.defineProperty(_t,"__esModule",{value:!0});var e=M(),i=(function(s){u(c,s);function c(a,n){var t=s.call(this)||this;return t.subject=a,t.subscriber=n,t.closed=!1,t}return c.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this.subject,n=a.observers;if(this.subject=null,!(!n||n.length===0||a.isStopped||a.closed)){var t=n.indexOf(this.subscriber);t!==-1&&n.splice(t,1)}}},c})(e.Subscription);return _t.SubjectSubscription=i,_t}var ka;function L(){if(ka)return he;ka=1;var u=he&&he.__extends||(function(){var l=function(f,h){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var b in d)d.hasOwnProperty(b)&&(p[b]=d[b])},l(f,h)};return function(f,h){l(f,h);function p(){this.constructor=f}f.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}})();Object.defineProperty(he,"__esModule",{value:!0});var e=j(),i=x(),s=M(),c=wo(),a=al(),n=lo(),t=(function(l){u(f,l);function f(h){var p=l.call(this,h)||this;return p.destination=h,p}return f})(i.Subscriber);he.SubjectSubscriber=t;var r=(function(l){u(f,l);function f(){var h=l.call(this)||this;return h.observers=[],h.closed=!1,h.isStopped=!1,h.hasError=!1,h.thrownError=null,h}return f.prototype[n.rxSubscriber]=function(){return new t(this)},f.prototype.lift=function(h){var p=new o(this,this);return p.operator=h,p},f.prototype.next=function(h){if(this.closed)throw new c.ObjectUnsubscribedError;if(!this.isStopped)for(var p=this.observers,d=p.length,b=p.slice(),v=0;v<d;v++)b[v].next(h)},f.prototype.error=function(h){if(this.closed)throw new c.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=h,this.isStopped=!0;for(var p=this.observers,d=p.length,b=p.slice(),v=0;v<d;v++)b[v].error(h);this.observers.length=0},f.prototype.complete=function(){if(this.closed)throw new c.ObjectUnsubscribedError;this.isStopped=!0;for(var h=this.observers,p=h.length,d=h.slice(),b=0;b<p;b++)d[b].complete();this.observers.length=0},f.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},f.prototype._trySubscribe=function(h){if(this.closed)throw new c.ObjectUnsubscribedError;return l.prototype._trySubscribe.call(this,h)},f.prototype._subscribe=function(h){if(this.closed)throw new c.ObjectUnsubscribedError;return this.hasError?(h.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(h.complete(),s.Subscription.EMPTY):(this.observers.push(h),new a.SubjectSubscription(this,h))},f.prototype.asObservable=function(){var h=new e.Observable;return h.source=this,h},f.create=function(h,p){return new o(h,p)},f})(e.Observable);he.Subject=r;var o=(function(l){u(f,l);function f(h,p){var d=l.call(this)||this;return d.destination=h,d.source=p,d}return f.prototype.next=function(h){var p=this.destination;p&&p.next&&p.next(h)},f.prototype.error=function(h){var p=this.destination;p&&p.error&&this.destination.error(h)},f.prototype.complete=function(){var h=this.destination;h&&h.complete&&this.destination.complete()},f.prototype._subscribe=function(h){var p=this.source;return p?this.source.subscribe(h):s.Subscription.EMPTY},f})(r);return he.AnonymousSubject=o,he}var Va;function Fp(){if(Va)return Re;Va=1;var u=Re&&Re.__extends||(function(){var f=function(h,p){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var v in b)b.hasOwnProperty(v)&&(d[v]=b[v])},f(h,p)};return function(h,p){f(h,p);function d(){this.constructor=h}h.prototype=p===null?Object.create(p):(d.prototype=p.prototype,new d)}})();Object.defineProperty(Re,"__esModule",{value:!0});var e=x(),i=M(),s=j(),c=L();function a(f,h,p,d){return function(b){return b.lift(new n(f,h,p,d))}}Re.groupBy=a;var n=(function(){function f(h,p,d,b){this.keySelector=h,this.elementSelector=p,this.durationSelector=d,this.subjectSelector=b}return f.prototype.call=function(h,p){return p.subscribe(new t(h,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},f})(),t=(function(f){u(h,f);function h(p,d,b,v,m){var g=f.call(this,p)||this;return g.keySelector=d,g.elementSelector=b,g.durationSelector=v,g.subjectSelector=m,g.groups=null,g.attemptedToUnsubscribe=!1,g.count=0,g}return h.prototype._next=function(p){var d;try{d=this.keySelector(p)}catch(b){this.error(b);return}this._group(p,d)},h.prototype._group=function(p,d){var b=this.groups;b||(b=this.groups=new Map);var v=b.get(d),m;if(this.elementSelector)try{m=this.elementSelector(p)}catch(O){this.error(O)}else m=p;if(!v){v=this.subjectSelector?this.subjectSelector():new c.Subject,b.set(d,v);var g=new o(d,v,this);if(this.destination.next(g),this.durationSelector){var w=void 0;try{w=this.durationSelector(new o(d,v))}catch(O){this.error(O);return}this.add(w.subscribe(new r(d,v,this)))}}v.closed||v.next(m)},h.prototype._error=function(p){var d=this.groups;
171d&&(d.forEach(function(b,v){b.error(p)}),d.clear()),this.destination.error(p)},h.prototype._complete=function(){var p=this.groups;p&&(p.forEach(function(d,b){d.complete()}),p.clear()),this.destination.complete()},h.prototype.removeGroup=function(p){this.groups.delete(p)},h.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,this.count===0&&f.prototype.unsubscribe.call(this))},h})(e.Subscriber),r=(function(f){u(h,f);function h(p,d,b){var v=f.call(this,d)||this;return v.key=p,v.group=d,v.parent=b,v}return h.prototype._next=function(p){this.complete()},h.prototype._unsubscribe=function(){var p=this,d=p.parent,b=p.key;this.key=this.parent=null,d&&d.removeGroup(b)},h})(e.Subscriber),o=(function(f){u(h,f);function h(p,d,b){var v=f.call(this)||this;return v.key=p,v.groupSubject=d,v.refCountSubscription=b,v}return h.prototype._subscribe=function(p){var d=new i.Subscription,b=this,v=b.refCountSubscription,m=b.groupSubject;return v&&!v.closed&&d.add(new l(v)),d.add(m.subscribe(p)),d},h})(s.Observable);Re.GroupedObservable=o;var l=(function(f){u(h,f);function h(p){var d=f.call(this)||this;return d.parent=p,p.count++,d}return h.prototype.unsubscribe=function(){var p=this.parent;!p.closed&&!this.closed&&(f.prototype.unsubscribe.call(this),p.count-=1,p.count===0&&p.attemptedToUnsubscribe&&p.unsubscribe())},h})(i.Subscription);return Re}var mt={},Da;function kp(){if(Da)return mt;Da=1;var u=mt&&mt.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(mt,"__esModule",{value:!0});var e=x();function i(){return function(n){return n.lift(new s)}}mt.ignoreElements=i;var s=(function(){function a(){}return a.prototype.call=function(n,t){return t.subscribe(new c(n))},a})(),c=(function(a){u(n,a);function n(){return a!==null&&a.apply(this,arguments)||this}return n.prototype._next=function(t){},n})(e.Subscriber);return mt}var yt={},Wa;function Vp(){if(Wa)return yt;Wa=1;var u=yt&&yt.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(yt,"__esModule",{value:!0});var e=x();function i(){return function(a){return a.lift(new s)}}yt.isEmpty=i;var s=(function(){function a(){}return a.prototype.call=function(n,t){return t.subscribe(new c(n))},a})(),c=(function(a){u(n,a);function n(t){return a.call(this,t)||this}return n.prototype.notifyComplete=function(t){var r=this.destination;r.next(t),r.complete()},n.prototype._next=function(t){this.notifyComplete(!1)},n.prototype._complete=function(){this.notifyComplete(!0)},n})(e.Subscriber);return yt}var Dn={},gt={},Ua;function Oo(){if(Ua)return gt;Ua=1;var u=gt&&gt.__extends||(function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,f){l.__proto__=f}||function(l,f){for(var h in f)f.hasOwnProperty(h)&&(l[h]=f[h])},t(r,o)};return function(r,o){t(r,o);function l(){this.constructor=r}r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}})();Object.defineProperty(gt,"__esModule",{value:!0});var e=x(),i=xi(),s=Cr();function c(t){return function(o){return t===0?s.empty():o.lift(new a(t))}}gt.takeLast=c;var a=(function(){function t(r){if(this.total=r,this.total<0)throw new i.ArgumentOutOfRangeError}return t.prototype.call=function(r,o){return o.subscribe(new n(r,this.total))},t})(),n=(function(t){u(r,t);function r(o,l){var f=t.call(this,o)||this;return f.total=l,f.ring=new Array,f.count=0,f}return r.prototype._next=function(o){var l=this.ring,f=this.total,h=this.count++;if(l.length<f)l.push(o);else{var p=h%f;l[p]=o}},r.prototype._complete=function(){var o=this.destination,l=this.count;if(l>0)for(var f=this.count>=this.total?this.total:this.count,h=this.ring,p=0;p<f;p++){var d=l++%f;o.next(h[d])}o.complete()},r})(e.Subscriber);return gt}var Ba;function Dp(){if(Ba)return Dn;Ba=1,Object.defineProperty(Dn,"__esModule",{value:!0});var u=Ti(),e=Rr(),i=Oo(),s=Ei(),c=Pr(),a=xr();function n(t,r){var o=arguments.length>=2;return function(l){return l.pipe(t?e.filter(function(f,h){return t(f,h,l)}):a.identity,i.takeLast(1),o?c.defaultIfEmpty(r):s.throwIfEmpty(function(){return new u.EmptyError}))}}return Dn.last=n,Dn}var St={},za;function Wp(){if(za)return St;za=1;var u=St&&St.__extends||(function(){var a=function(n,t){return a=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(St,"__esModule",{value:!0});var e=x();function i(a){return function(n){return n.lift(new s(a))}}St.mapTo=i;var s=(function(){function a(n){this.value=n}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.value))},a})(),c=(function(a){u(n,a);function n(t,r){var o=a.call(this,t)||this;return o.value=r,o}return n.prototype._next=function(t){this.destination.next(this.value)},n})(e.Subscriber);return St}var wt={},Ha;function Up(){if(Ha)return wt;Ha=1;var u=wt&&wt.__extends||(function(){var n=function(t,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])},n(t,r)};return function(t,r){n(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})();Object.defineProperty(wt,"__esModule",{value:!0});var e=x(),i=go();function s(){return function(t){return t.lift(new c)}}wt.materialize=s;var c=(function(){function n(){}return n.prototype.call=function(t,r){return r.subscribe(new a(t))},n})(),a=(function(n){u(t,n);function t(r){return n.call(this,r)||this}return t.prototype._next=function(r){this.destination.next(i.Notification.createNext(r))},t.prototype._error=function(r){var o=this.destination;o.next(i.Notification.createError(r)),o.complete()},t.prototype._complete=function(){var r=this.destination;r.next(i.Notification.createComplete()),r.complete()},t})(e.Subscriber);return wt}var Wn={},Un={},Ot={},Ga;function xo(){if(Ga)return Ot;Ga=1;var u=Ot&&Ot.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(Ot,"__esModule",{value:!0});var e=x();function i(a,n){var t=!1;return arguments.length>=2&&(t=!0),function(o){return o.lift(new s(a,n,t))}}Ot.scan=i;var s=(function(){function a(n,t,r){r===void 0&&(r=!1),this.accumulator=n,this.seed=t,this.hasSeed=r}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.accumulator,this.seed,this.hasSeed))},a})(),c=(function(a){u(n,a);function n(t,r,o,l){var f=a.call(this,t)||this;return f.accumulator=r,f._seed=o,f.hasSeed=l,f.index=0,f}return Object.defineProperty(n.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),n.prototype._next=function(t){if(!this.hasSeed)this.seed=t,this.destination.next(t);else return this._tryNext(t)},n.prototype._tryNext=function(t){var r=this.index++,o;try{o=this.accumulator(this.seed,t,r)}catch(l){this.destination.error(l)}this.seed=o,this.destination.next(o)},n})(e.Subscriber);return Ot}var Ja;function Pi(){if(Ja)return Un;Ja=1,Object.defineProperty(Un,"__esModule",{value:!0});var u=xo(),e=Oo(),i=Pr(),s=Yc();function c(a,n){return arguments.length>=2?function(r){return s.pipe(u.scan(a,n),e.takeLast(1),i.defaultIfEmpty(n))(r)}:function(r){return s.pipe(u.scan(function(o,l,f){return a(o,l,f+1)}),e.takeLast(1))(r)}}return Un.reduce=c,Un}var Ya;function Bp(){if(Ya)return Wn;Ya=1,Object.defineProperty(Wn,"__esModule",{value:!0});var u=Pi();function e(i){var s=typeof i=="function"?function(c,a){return i(c,a)>0?c:a}:function(c,a){return c>a?c:a};return u.reduce(s)}return Wn.max=e,Wn}var Bn={},zn={},Ka;function zp(){if(Ka)return zn;Ka=1,Object.defineProperty(zn,"__esModule",{value:!0});var u=j(),e=Le(),i=mo(),s=Er();function c(){for(var a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];var t=Number.POSITIVE_INFINITY,r=null,o=a[a.length-1];return e.isScheduler(o)?(r=a.pop(),a.length>1&&typeof a[a.length-1]=="number"&&(t=a.pop())):typeof o=="number"&&(t=a.pop()),r===null&&a.length===1&&a[0]instanceof u.Observable?a[0]:i.mergeAll(t)(s.fromArray(a,r))}return zn.merge=c,zn}var Qa;function Hp(){if(Qa)return Bn;Qa=1,Object.defineProperty(Bn,"__esModule",{value:!0});var u=zp();function e(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return function(c){return c.lift.call(u.merge.apply(void 0,[c].concat(i)))}}return Bn.merge=e,Bn}var Hn={},Za;function Gp(){if(Za)return Hn;Za=1,Object.defineProperty(Hn,"__esModule",{value:!0});var u=Oi();function e(i,s,c){return c===void 0&&(c=Number.POSITIVE_INFINITY),typeof s=="function"?u.mergeMap(function(){return i},s,c):(typeof s=="number"&&(c=s),u.mergeMap(function(){return i},c))}return Hn.mergeMapTo=e,Hn}var pe={},Xa;function Jp(){if(Xa)return pe;Xa=1;var u=pe&&pe.__extends||(function(){var a=function(n,t){return a=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(pe,"__esModule",{value:!0});var e=R();function i(a,n,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),function(r){return r.lift(new s(a,n,t))}}pe.mergeScan=i;var s=(function(){function a(n,t,r){this.accumulator=n,this.seed=t,this.concurrent=r}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.accumulator,this.seed,this.concurrent))},a})();pe.MergeScanOperator=s;var c=(function(a){u(n,a);function n(t,r,o,l){var f=a.call(this,t)||this;return f.accumulator=r,f.acc=o,f.concurrent=l,f.hasValue=!1,f.hasCompleted=!1,f.buffer=[],f.active=0,f.index=0,f}return n.prototype._next=function(t){if(this.active<this.concurrent){var r=this.index++,o=this.destination,l=void 0;try{var f=this.accumulator;l=f(this.acc,t,r)}catch(h){return o.error(h)}this.active++,this._innerSub(l)}else this.buffer.push(t)},n.prototype._innerSub=function(t){var r=new e.SimpleInnerSubscriber(this),o=this.destination;o.add(r);var l=e.innerSubscribe(t,r);l!==r&&o.add(l)},n.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},n.prototype.notifyNext=function(t){var r=this.destination;this.acc=t,this.hasValue=!0,r.next(t)},n.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):this.active===0&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},n})(e.SimpleOuterSubscriber);return pe.MergeScanSubscriber=c,pe}var Gn={},eu;function Yp(){if(eu)return Gn;eu=1,Object.defineProperty(Gn,"__esModule",{value:!0});var u=Pi();function e(i){var s=typeof i=="function"?function(c,a){return i(c,a)<0?c:a}:function(c,a){return c<a?c:a};return u.reduce(s)}return Gn.min=e,Gn}var pr={},Ae={},xt={},tu;function To(){if(tu)return xt;tu=1;var u=xt&&xt.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(xt,"__esModule",{value:!0});var e=x();function i(){return function(n){return n.lift(new s(n))}}xt.refCount=i;var s=(function(){function a(n){this.connectable=n}return a.prototype.call=function(n,t){var r=this.connectable;r._refCount++;var o=new c(n,r),l=t.subscribe(o);return o.closed||(o.connection=r.connect()),l},a})(),c=(function(a){u(n,a);function n(t,r){var o=a.call(this,t)||this;return o.connectable=r,o}return n.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var r=t._refCount;if(r<=0){this.connection=null;return}if(t._refCount=r-1,r>1){this.connection=null;return}var o=this.connection,l=t._connection;this.connection=null,l&&(!o||l===o)&&l.unsubscribe()},n})(e.Subscriber);return xt}var ru;function Kp(){if(ru)return Ae;ru=1;var u=Ae&&Ae.__extends||(function(){var r=function(o,l){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var p in h)h.hasOwnProperty(p)&&(f[p]=h[p])},r(o,l)};return function(o,l){r(o,l);function f(){this.constructor=o}o.prototype=l===null?Object.create(l):(f.prototype=l.prototype,new f)}})();Object.defineProperty(Ae,"__esModule",{value:!0});var e=L(),i=j(),s=x(),c=M(),a=To(),n=(function(r){u(o,r);function o(l,f){var h=r.call(this)||this;return h.source=l,h.subjectFactory=f,h._refCount=0,h._isComplete=!1,h}return o.prototype._subscribe=function(l){return this.getSubject().subscribe(l)},o.prototype.getSubject=function(){var l=this._subject;return(!l||l.isStopped)&&(this._subject=this.subjectFactory()),this._subject},o.prototype.connect=function(){var l=this._connection;return l||(this._isComplete=!1,l=this._connection=new c.Subscription,l.add(this.source.subscribe(new t(this.getSubject(),this))),l.closed&&(this._connection=null,l=c.Subscription.EMPTY)),l},o.prototype.refCount=function(){return a.refCount()(this)},o})(i.Observable);Ae.ConnectableObservable=n,Ae.connectableObservableDescriptor=(function(){var r=n.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:r._subscribe},_isComplete:{value:r._isComplete,writable:!0},getSubject:{value:r.getSubject},connect:{value:r.connect},refCount:{value:r.refCount}}})();var t=(function(r){u(o,r);function o(l,f){var h=r.call(this,l)||this;return h.connectable=f,h}return o.prototype._error=function(l){this._unsubscribe(),r.prototype._error.call(this,l)},o.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),r.prototype._complete.call(this)},o.prototype._unsubscribe=function(){var l=this.connectable;if(l){this.connectable=null;var f=l._connection;l._refCount=0,l._subject=null,l._connection=null,f&&f.unsubscribe()}},o})(e.SubjectSubscriber);return(function(r){u(o,r);function o(l,f){var h=r.call(this,l)||this;return h.connectable=f,h}return o.prototype._unsubscribe=function(){var l=this.connectable;if(!l){this.connection=null;return}this.connectable=null;var f=l._refCount;if(f<=0){this.connection=null;return}if(l._refCount=f-1,f>1){this.connection=null;return}var h=this.connection,p=l._connection;this.connection=null,p&&(!h||p===h)&&p.unsubscribe()},o})(s.Subscriber),Ae}var nu;function ur(){if(nu)return pr;
171nu=1,Object.defineProperty(pr,"__esModule",{value:!0});var u=Kp();function e(s,c){return function(n){var t;if(typeof s=="function"?t=s:t=function(){return s},typeof c=="function")return n.lift(new i(t,c));var r=Object.create(n,u.connectableObservableDescriptor);return r.source=n,r.subjectFactory=t,r}}pr.multicast=e;var i=(function(){function s(c,a){this.subjectFactory=c,this.selector=a}return s.prototype.call=function(c,a){var n=this.selector,t=this.subjectFactory(),r=n(t).subscribe(c);return r.add(a.subscribe(t)),r},s})();return pr.MulticastOperator=i,pr}var ie={},iu;function ul(){if(iu)return ie;iu=1;var u=ie&&ie.__extends||(function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,f){l.__proto__=f}||function(l,f){for(var h in f)f.hasOwnProperty(h)&&(l[h]=f[h])},t(r,o)};return function(r,o){t(r,o);function l(){this.constructor=r}r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}})();Object.defineProperty(ie,"__esModule",{value:!0});var e=x(),i=go();function s(t,r){return r===void 0&&(r=0),function(l){return l.lift(new c(t,r))}}ie.observeOn=s;var c=(function(){function t(r,o){o===void 0&&(o=0),this.scheduler=r,this.delay=o}return t.prototype.call=function(r,o){return o.subscribe(new a(r,this.scheduler,this.delay))},t})();ie.ObserveOnOperator=c;var a=(function(t){u(r,t);function r(o,l,f){f===void 0&&(f=0);var h=t.call(this,o)||this;return h.scheduler=l,h.delay=f,h}return r.dispatch=function(o){var l=o.notification,f=o.destination;l.observe(f),this.unsubscribe()},r.prototype.scheduleMessage=function(o){var l=this.destination;l.add(this.scheduler.schedule(r.dispatch,this.delay,new n(o,this.destination)))},r.prototype._next=function(o){this.scheduleMessage(i.Notification.createNext(o))},r.prototype._error=function(o){this.scheduleMessage(i.Notification.createError(o)),this.unsubscribe()},r.prototype._complete=function(){this.scheduleMessage(i.Notification.createComplete()),this.unsubscribe()},r})(e.Subscriber);ie.ObserveOnSubscriber=a;var n=(function(){function t(r,o){this.notification=r,this.destination=o}return t})();return ie.ObserveOnMessage=n,ie}var je={},ou;function Qp(){if(ou)return je;ou=1;var u=je&&je.__extends||(function(){var r=function(o,l){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var p in h)h.hasOwnProperty(p)&&(f[p]=h[p])},r(o,l)};return function(o,l){r(o,l);function f(){this.constructor=o}o.prototype=l===null?Object.create(l):(f.prototype=l.prototype,new f)}})();Object.defineProperty(je,"__esModule",{value:!0});var e=ar(),i=Oe(),s=R();function c(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&i.isArray(r[0])&&(r=r[0]),function(l){return l.lift(new n(r))}}je.onErrorResumeNext=c;function a(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var l=void 0;return r.length===1&&i.isArray(r[0])&&(r=r[0]),l=r.shift(),e.from(l).lift(new n(r))}je.onErrorResumeNextStatic=a;var n=(function(){function r(o){this.nextSources=o}return r.prototype.call=function(o,l){return l.subscribe(new t(o,this.nextSources))},r})(),t=(function(r){u(o,r);function o(l,f){var h=r.call(this,l)||this;return h.destination=l,h.nextSources=f,h}return o.prototype.notifyError=function(){this.subscribeToNextSource()},o.prototype.notifyComplete=function(){this.subscribeToNextSource()},o.prototype._error=function(l){this.subscribeToNextSource(),this.unsubscribe()},o.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},o.prototype.subscribeToNextSource=function(){var l=this.nextSources.shift();if(l){var f=new s.SimpleInnerSubscriber(this),h=this.destination;h.add(f);var p=s.innerSubscribe(l,f);p!==f&&h.add(p)}else this.destination.complete()},o})(s.SimpleOuterSubscriber);return je}var Tt={},su;function Zp(){if(su)return Tt;su=1;var u=Tt&&Tt.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}
171n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(Tt,"__esModule",{value:!0});var e=x();function i(){return function(a){return a.lift(new s)}}Tt.pairwise=i;var s=(function(){function a(){}return a.prototype.call=function(n,t){return t.subscribe(new c(n))},a})(),c=(function(a){u(n,a);function n(t){var r=a.call(this,t)||this;return r.hasPrev=!1,r}return n.prototype._next=function(t){var r;this.hasPrev?r=[this.prev,t]:this.hasPrev=!0,this.prev=t,r&&this.destination.next(r)},n})(e.Subscriber);return Tt}var Jn={},Yn={},au;function Xp(){if(au)return Yn;au=1,Object.defineProperty(Yn,"__esModule",{value:!0});function u(e,i){function s(){return!s.pred.apply(s.thisArg,arguments)}return s.pred=e,s.thisArg=i,s}return Yn.not=u,Yn}var uu;function ed(){if(uu)return Jn;uu=1,Object.defineProperty(Jn,"__esModule",{value:!0});var u=Xp(),e=Rr();function i(s,c){return function(a){return[e.filter(s,c)(a),e.filter(u.not(s,c))(a)]}}return Jn.partition=i,Jn}var Kn={},cu;function td(){if(cu)return Kn;cu=1,Object.defineProperty(Kn,"__esModule",{value:!0});var u=Ve();function e(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];var a=s.length;if(a===0)throw new Error("list of properties cannot be empty.");return function(n){return u.map(i(s,a))(n)}}Kn.pluck=e;function i(s,c){var a=function(n){for(var t=n,r=0;r<c;r++){var o=t!=null?t[s[r]]:void 0;if(o!==void 0)t=o;else return}return t};return a}return Kn}var Qn={},lu;function rd(){if(lu)return Qn;lu=1,Object.defineProperty(Qn,"__esModule",{value:!0});var u=L(),e=ur();function i(s){return s?e.multicast(function(){return new u.Subject},s):e.multicast(new u.Subject)}return Qn.publish=i,Qn}var Zn={},Et={},fu;
171function nd(){if(fu)return Et;fu=1;var u=Et&&Et.__extends||(function(){var c=function(a,n){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},c(a,n)};return function(a,n){c(a,n);function t(){this.constructor=a}a.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}})();Object.defineProperty(Et,"__esModule",{value:!0});var e=L(),i=wo(),s=(function(c){u(a,c);function a(n){var t=c.call(this)||this;return t._value=n,t}return Object.defineProperty(a.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),a.prototype._subscribe=function(n){var t=c.prototype._subscribe.call(this,n);return t&&!t.closed&&n.next(this._value),t},a.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.ObjectUnsubscribedError;return this._value},a.prototype.next=function(n){c.prototype.next.call(this,this._value=n)},a})(e.Subject);return Et.BehaviorSubject=s,Et}var hu;function id(){if(hu)return Zn;hu=1,Object.defineProperty(Zn,"__esModule",{value:!0});var u=nd(),e=ur();function i(s){return function(c){return e.multicast(new u.BehaviorSubject(s))(c)}}return Zn.publishBehavior=i,Zn}var Xn={},Pt={},pu;function od(){if(pu)return Pt;pu=1;var u=Pt&&Pt.__extends||(function(){var c=function(a,n){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},c(a,n)};return function(a,n){c(a,n);function t(){this.constructor=a}a.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}})();Object.defineProperty(Pt,"__esModule",{value:!0});var e=L(),i=M(),s=(function(c){u(a,c);function a(){var n=c!==null&&c.apply(this,arguments)||this;return n.value=null,n.hasNext=!1,n.hasCompleted=!1,n}return a.prototype._subscribe=function(n){return this.hasError?(n.error(this.thrownError),i.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(n.next(this.value),n.complete(),i.Subscription.EMPTY):c.prototype._subscribe.call(this,n)},a.prototype.next=function(n){this.hasCompleted||(this.value=n,this.hasNext=!0)},a.prototype.error=function(n){this.hasCompleted||c.prototype.error.call(this,n)},a.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&c.prototype.next.call(this,this.value),c.prototype.complete.call(this)},a})(e.Subject);return Pt.AsyncSubject=s,Pt}var du;
171function sd(){if(du)return Xn;du=1,Object.defineProperty(Xn,"__esModule",{value:!0});var u=od(),e=ur();function i(){return function(s){return e.multicast(new u.AsyncSubject)(s)}}return Xn.publishLast=i,Xn}var ei={},Ct={},Wi={},Rt={},bu;function ad(){if(bu)return Rt;bu=1;var u=Rt&&Rt.__extends||(function(){var s=function(c,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])},s(c,a)};return function(c,a){s(c,a);function n(){this.constructor=c}c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)}})();Object.defineProperty(Rt,"__esModule",{value:!0});var e=ho(),i=(function(s){u(c,s);function c(a,n){var t=s.call(this,a,n)||this;return t.scheduler=a,t.work=n,t}return c.prototype.schedule=function(a,n){return n===void 0&&(n=0),n>0?s.prototype.schedule.call(this,a,n):(this.delay=n,this.state=a,this.scheduler.flush(this),this)},c.prototype.execute=function(a,n){return n>0||this.closed?s.prototype.execute.call(this,a,n):this._execute(a,n)},c.prototype.requestAsyncId=function(a,n,t){return t===void 0&&(t=0),t!==null&&t>0||t===null&&this.delay>0?s.prototype.requestAsyncId.call(this,a,n,t):a.flush(this)},c})(e.AsyncAction);return Rt.QueueAction=i,Rt}var At={},vu;function ud(){if(vu)return At;vu=1;var u=At&&At.__extends||(function(){var s=function(c,a){return s=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])},s(c,a)};return function(c,a){s(c,a);function n(){this.constructor=c}c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)}})();Object.defineProperty(At,"__esModule",{value:!0});var e=po(),i=(function(s){u(c,s);function c(){return s!==null&&s.apply(this,arguments)||this}return c})(e.AsyncScheduler);return At.QueueScheduler=i,At}var _u;function cd(){return _u||(_u=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0});var e=ad(),i=ud();u.queueScheduler=new i.QueueScheduler(e.QueueAction),u.queue=u.queueScheduler})(Wi)),Wi}var mu;function cl(){if(mu)return Ct;mu=1;var u=Ct&&Ct.__extends||(function(){var o=function(l,f){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var d in p)p.hasOwnProperty(d)&&(h[d]=p[d])},o(l,f)};return function(l,f){o(l,f);function h(){this.constructor=l}l.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}})();Object.defineProperty(Ct,"__esModule",{value:!0});var e=L(),i=cd(),s=M(),c=ul(),a=wo(),n=al(),t=(function(o){u(l,o);function l(f,h,p){f===void 0&&(f=Number.POSITIVE_INFINITY),h===void 0&&(h=Number.POSITIVE_INFINITY);var d=o.call(this)||this;return d.scheduler=p,d._events=[],d._infiniteTimeWindow=!1,d._bufferSize=f<1?1:f,d._windowTime=h<1?1:h,h===Number.POSITIVE_INFINITY?(d._infiniteTimeWindow=!0,d.next=d.nextInfiniteTimeWindow):d.next=d.nextTimeWindow,d}return l.prototype.nextInfiniteTimeWindow=function(f){if(!this.isStopped){var h=this._events;h.push(f),h.length>this._bufferSize&&h.shift()}o.prototype.next.call(this,f)},l.prototype.nextTimeWindow=function(f){this.isStopped||(this._events.push(new r(this._getNow(),f)),this._trimBufferThenGetEvents()),o.prototype.next.call(this,f)},l.prototype._subscribe=function(f){var h=this._infiniteTimeWindow,p=h?this._events:this._trimBufferThenGetEvents(),d=this.scheduler,b=p.length,v;if(this.closed)throw new a.ObjectUnsubscribedError;if(this.isStopped||this.hasError?v=s.Subscription.EMPTY:(this.observers.push(f),v=new n.SubjectSubscription(this,f)),d&&f.add(f=new c.ObserveOnSubscriber(f,d)),h)for(var m=0;m<b&&!f.closed;m++)f.next(p[m]);else for(var m=0;m<b&&!f.closed;m++)f.next(p[m].value);return this.hasError?f.error(this.thrownError):this.isStopped&&f.complete(),v},l.prototype._getNow=function(){return(this.scheduler||i.queue).now()},l.prototype._trimBufferThenGetEvents=function(){for(var f=this._getNow(),h=this._bufferSize,p=this._windowTime,d=this._events,b=d.length,v=0;v<b&&!(f-d[v].time<p);)v++;return b>h&&(v=Math.max(v,b-h)),v>0&&d.splice(0,v),d},l})(e.Subject);Ct.ReplaySubject=t;var r=(function(){function o(l,f){this.time=l,this.value=f}return o})();return Ct}var yu;function ld(){if(yu)return ei;yu=1,Object.defineProperty(ei,"__esModule",{value:!0});var u=cl(),e=ur();function i(s,c,a,n){a&&typeof a!="function"&&(n=a);var t=typeof a=="function"?a:void 0,r=new u.ReplaySubject(s,c,n);return function(o){return e.multicast(function(){return r},t)(o)}}return ei.publishReplay=i,ei}var ti={},de={},gu;function fd(){if(gu)return de;gu=1;var u=de&&de.__extends||(function(){var r=function(o,l){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var p in h)h.hasOwnProperty(p)&&(f[p]=h[p])},r(o,l)};return function(o,l){r(o,l);function f(){this.constructor=o}o.prototype=l===null?Object.create(l):(f.prototype=l.prototype,new f)}})();Object.defineProperty(de,"__esModule",{value:!0});var e=Oe(),i=Er(),s=ke(),c=Fe();function a(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(r.length===1)if(e.isArray(r[0]))r=r[0];else return r[0];return i.fromArray(r,void 0).lift(new n)}de.race=a;var n=(function(){function r(){}return r.prototype.call=function(o,l){return l.subscribe(new t(o))},r})();de.RaceOperator=n;var t=(function(r){u(o,r);function o(l){var f=r.call(this,l)||this;return f.hasFirst=!1,f.observables=[],f.subscriptions=[],f}return o.prototype._next=function(l){this.observables.push(l)},o.prototype._complete=function(){var l=this.observables,f=l.length;if(f===0)this.destination.complete();else{for(var h=0;h<f&&!this.hasFirst;h++){var p=l[h],d=c.subscribeToResult(this,p,void 0,h);this.subscriptions&&this.subscriptions.push(d),this.add(d)}this.observables=null}},o.prototype.notifyNext=function(l,f,h){if(!this.hasFirst){this.hasFirst=!0;for(var p=0;p<this.subscriptions.length;p++)if(p!==h){var d=this.subscriptions[p];d.unsubscribe(),this.remove(d)}this.subscriptions=null}this.destination.next(f)},o})(s.OuterSubscriber);return de.RaceSubscriber=t,de}var Su;function hd(){if(Su)return ti;Su=1,Object.defineProperty(ti,"__esModule",{value:!0});var u=Oe(),e=fd();function i(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return function(n){return s.length===1&&u.isArray(s[0])&&(s=s[0]),n.lift.call(e.race.apply(void 0,[n].concat(s)))}}return ti.race=i,ti}var jt={},wu;function pd(){if(wu)return jt;wu=1;var u=jt&&jt.__extends||(function(){var n=function(t,r){return n=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])},n(t,r)};return function(t,r){n(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})();Object.defineProperty(jt,"__esModule",{value:!0});var e=x(),i=Cr();function s(n){return n===void 0&&(n=-1),function(t){return n===0?i.empty():n<0?t.lift(new c(-1,t)):t.lift(new c(n-1,t))}}jt.repeat=s;var c=(function(){function n(t,r){this.count=t,this.source=r}return n.prototype.call=function(t,r){return r.subscribe(new a(t,this.count,this.source))},n})(),a=(function(n){u(t,n);function t(r,o,l){var f=n.call(this,r)||this;return f.count=o,f.source=l,f}return t.prototype.complete=function(){if(!this.isStopped){var r=this,o=r.source,l=r.count;if(l===0)return n.prototype.complete.call(this);l>-1&&(this.count=l-1),o.subscribe(this._unsubscribeAndRecycle())}},t})(e.Subscriber);return jt}var $t={},Ou;function dd(){if(Ou)return $t;Ou=1;var u=$t&&$t.__extends||(function(){var n=function(t,r){return n=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])},n(t,r)};return function(t,r){n(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})();Object.defineProperty($t,"__esModule",{value:!0});var e=L(),i=R();function s(n){return function(t){return t.lift(new c(n))}}$t.repeatWhen=s;var c=(function(){function n(t){this.notifier=t}return n.prototype.call=function(t,r){return r.subscribe(new a(t,this.notifier,r))},n})(),a=(function(n){u(t,n);function t(r,o,l){var f=n.call(this,r)||this;return f.notifier=o,f.source=l,f.sourceIsBeingSubscribedTo=!0,f}return t.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(){if(this.sourceIsBeingSubscribedTo===!1)return n.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return n.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},t.prototype._unsubscribe=function(){var r=this,o=r.notifications,l=r.retriesSubscription;o&&(o.unsubscribe(),this.notifications=void 0),l&&(l.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype._unsubscribeAndRecycle=function(){var r=this._unsubscribe;return this._unsubscribe=null,n.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=r,this},t.prototype.subscribeToRetries=function(){this.notifications=new e.Subject;var r;try{var o=this.notifier;r=o(this.notifications)}catch{return n.prototype.complete.call(this)}this.retries=r,this.retriesSubscription=i.innerSubscribe(r,new i.SimpleInnerSubscriber(this))},t})(i.SimpleOuterSubscriber);return $t}var It={},xu;function bd(){if(xu)return It;xu=1;var u=It&&It.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(It,"__esModule",{value:!0});var e=x();function i(a){return a===void 0&&(a=-1),function(n){return n.lift(new s(a,n))}}It.retry=i;var s=(function(){function a(n,t){this.count=n,this.source=t}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.count,this.source))},a})(),c=(function(a){u(n,a);function n(t,r,o){var l=a.call(this,t)||this;return l.count=r,l.source=o,l}return n.prototype.error=function(t){if(!this.isStopped){var r=this,o=r.source,l=r.count;if(l===0)return a.prototype.error.call(this,t);l>-1&&(this.count=l-1),o.subscribe(this._unsubscribeAndRecycle())}},n})(e.Subscriber);return It}var Mt={},Tu;function vd(){if(Tu)return Mt;Tu=1;var u=Mt&&Mt.__extends||(function(){var n=function(t,r){return n=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])},n(t,r)};return function(t,r){n(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})();Object.defineProperty(Mt,"__esModule",{value:!0});var e=L(),i=R();function s(n){return function(t){return t.lift(new c(n,t))}}Mt.retryWhen=s;var c=(function(){function n(t,r){this.notifier=t,this.source=r}return n.prototype.call=function(t,r){return r.subscribe(new a(t,this.notifier,this.source))},n})(),a=(function(n){u(t,n);function t(r,o,l){var f=n.call(this,r)||this;return f.notifier=o,f.source=l,f}return t.prototype.error=function(r){if(!this.isStopped){var o=this.errors,l=this.retries,f=this.retriesSubscription;if(l)this.errors=void 0,this.retriesSubscription=void 0;else{o=new e.Subject;try{var h=this.notifier;l=h(o)}catch(p){return n.prototype.error.call(this,p)}f=i.innerSubscribe(l,new i.SimpleInnerSubscriber(this))}this._unsubscribeAndRecycle(),this.errors=o,this.retries=l,this.retriesSubscription=f,o.next(r)}},t.prototype._unsubscribe=function(){var r=this,o=r.errors,l=r.retriesSubscription;o&&(o.unsubscribe(),this.errors=void 0),l&&(l.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype.notifyNext=function(){var r=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=r,this.source.subscribe(this)},t})(i.SimpleOuterSubscriber);return Mt}var qt={},Eu;function _d(){if(Eu)return qt;Eu=1;var u=qt&&qt.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(qt,"__esModule",{value:!0});var e=R();function i(a){return function(n){return n.lift(new s(a))}}qt.sample=i;var s=(function(){function a(n){this.notifier=n}return a.prototype.call=function(n,t){var r=new c(n),o=t.subscribe(r);return o.add(e.innerSubscribe(this.notifier,new e.SimpleInnerSubscriber(r))),o},a})(),c=(function(a){u(n,a);function n(){var t=a!==null&&a.apply(this,arguments)||this;return t.hasValue=!1,t}return n.prototype._next=function(t){this.value=t,this.hasValue=!0},n.prototype.notifyNext=function(){this.emitValue()},n.prototype.notifyComplete=function(){this.emitValue()},n.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},n})(e.SimpleOuterSubscriber);return qt}var Nt={},Pu;function md(){if(Pu)return Nt;Pu=1;var u=Nt&&Nt.__extends||(function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,f){l.__proto__=f}||function(l,f){for(var h in f)f.hasOwnProperty(h)&&(l[h]=f[h])},t(r,o)};return function(r,o){t(r,o);function l(){this.constructor=r}r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}})();Object.defineProperty(Nt,"__esModule",{value:!0});var e=x(),i=B();function s(t,r){return r===void 0&&(r=i.async),function(o){return o.lift(new c(t,r))}}Nt.sampleTime=s;var c=(function(){function t(r,o){this.period=r,this.scheduler=o}return t.prototype.call=function(r,o){return o.subscribe(new a(r,this.period,this.scheduler))},t})(),a=(function(t){u(r,t);function r(o,l,f){var h=t.call(this,o)||this;return h.period=l,h.scheduler=f,h.hasValue=!1,h.add(f.schedule(n,l,{subscriber:h,period:l})),h}return r.prototype._next=function(o){this.lastValue=o,this.hasValue=!0},r.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},r})(e.Subscriber);function n(t){var r=t.subscriber,o=t.period;r.notifyNext(),this.schedule(t,o)}return Nt}var be={},Cu;function yd(){if(Cu)return be;Cu=1;var u=be&&be.__extends||(function(){var n=function(t,r){return n=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])},n(t,r)};return function(t,r){n(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})();Object.defineProperty(be,"__esModule",{value:!0});var e=x();function i(n,t){return function(r){return r.lift(new s(n,t))}}be.sequenceEqual=i;var s=(function(){function n(t,r){this.compareTo=t,this.comparator=r}return n.prototype.call=function(t,r){return r.subscribe(new c(t,this.compareTo,this.comparator))},n})();be.SequenceEqualOperator=s;var c=(function(n){u(t,n);function t(r,o,l){var f=n.call(this,r)||this;return f.compareTo=o,f.comparator=l,f._a=[],f._b=[],f._oneComplete=!1,f.destination.add(o.subscribe(new a(r,f))),f}return t.prototype._next=function(r){this._oneComplete&&this._b.length===0?this.emit(!1):(this._a.push(r),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var r=this,o=r._a,l=r._b,f=r.comparator;o.length>0&&l.length>0;){var h=o.shift(),p=l.shift(),d=!1;try{d=f?f(h,p):h===p}catch(b){this.destination.error(b)}d||this.emit(!1)}},t.prototype.emit=function(r){var o=this.destination;o.next(r),o.complete()},t.prototype.nextB=function(r){this._oneComplete&&this._a.length===0?this.emit(!1):(this._b.push(r),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0},t})(e.Subscriber);be.SequenceEqualSubscriber=c;var a=(function(n){u(t,n);function t(r,o){var l=n.call(this,r)||this;return l.parent=o,l}return t.prototype._next=function(r){this.parent.nextB(r)},t.prototype._error=function(r){this.parent.error(r),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t})(e.Subscriber);return be}var ri={},Ru;function gd(){if(Ru)return ri;Ru=1,Object.defineProperty(ri,"__esModule",{value:!0});var u=ur(),e=To(),i=L();function s(){return new i.Subject}function c(){return function(a){return e.refCount()(u.multicast(s)(a))}}return ri.share=c,ri}var ni={},Au;function Sd(){if(Au)return ni;Au=1,Object.defineProperty(ni,"__esModule",{value:!0});var u=cl();function e(s,c,a){var n;return s&&typeof s=="object"?n=s:n={bufferSize:s,windowTime:c,refCount:!1,scheduler:a},function(t){return t.lift(i(n))}}ni.shareReplay=e;function i(s){var c=s.bufferSize,a=c===void 0?Number.POSITIVE_INFINITY:c,n=s.windowTime,t=n===void 0?Number.POSITIVE_INFINITY:n,r=s.refCount,o=s.scheduler,l,f=0,h,p=!1,d=!1;return function(v){f++;var m;!l||p?(p=!1,l=new u.ReplaySubject(a,t,o),m=l.subscribe(this),h=v.subscribe({next:function(g){l.next(g)},error:function(g){p=!0,l.error(g)},complete:function(){d=!0,h=void 0,l.complete()}}),d&&(h=void 0)):m=l.subscribe(this),this.add(function(){f--,m.unsubscribe(),m=void 0,h&&!d&&r&&f===0&&(h.unsubscribe(),h=void 0,l=void 0)})}}return ni}var Lt={},ju;function wd(){if(ju)return Lt;ju=1;var u=Lt&&Lt.__extends||(function(){var n=function(t,r){return n=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])},n(t,r)};return function(t,r){n(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})();Object.defineProperty(Lt,"__esModule",{value:!0});var e=x(),i=Ti();function s(n){return function(t){return t.lift(new c(n,t))}}Lt.single=s;var c=(function(){function n(t,r){this.predicate=t,this.source=r}return n.prototype.call=function(t,r){return r.subscribe(new a(t,this.predicate,this.source))},n})(),a=(function(n){u(t,n);function t(r,o,l){var f=n.call(this,r)||this;return f.predicate=o,f.source=l,f.seenValue=!1,f.index=0,f}return t.prototype.applySingleValue=function(r){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=r)},t.prototype._next=function(r){var o=this.index++;this.predicate?this.tryNext(r,o):this.applySingleValue(r)},t.prototype.tryNext=function(r,o){try{this.predicate(r,o,this.source)&&this.applySingleValue(r)}catch(l){this.destination.error(l)}},t.prototype._complete=function(){var r=this.destination;this.index>0?(r.next(this.seenValue?this.singleValue:void 0),r.complete()):r.error(new i.EmptyError)},t})(e.Subscriber);return Lt}var Ft={},$u;function Od(){if($u)return Ft;$u=1;var u=Ft&&Ft.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(Ft,"__esModule",{value:!0});var e=x();function i(a){return function(n){return n.lift(new s(a))}}Ft.skip=i;var s=(function(){function a(n){this.total=n}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.total))},a})(),c=(function(a){u(n,a);function n(t,r){var o=a.call(this,t)||this;return o.total=r,o.count=0,o}return n.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},n})(e.Subscriber);return Ft}var kt={},Iu;function xd(){if(Iu)return kt;Iu=1;var u=kt&&kt.__extends||(function(){var n=function(t,r){return n=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])},n(t,r)};return function(t,r){n(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})();Object.defineProperty(kt,"__esModule",{value:!0});var e=x(),i=xi();function s(n){return function(t){return t.lift(new c(n))}}kt.skipLast=s;var c=(function(){function n(t){if(this._skipCount=t,this._skipCount<0)throw new i.ArgumentOutOfRangeError}return n.prototype.call=function(t,r){return this._skipCount===0?r.subscribe(new e.Subscriber(t)):r.subscribe(new a(t,this._skipCount))},n})(),a=(function(n){u(t,n);function t(r,o){var l=n.call(this,r)||this;return l._skipCount=o,l._count=0,l._ring=new Array(o),l}return t.prototype._next=function(r){var o=this._skipCount,l=this._count++;if(l<o)this._ring[l]=r;else{var f=l%o,h=this._ring,p=h[f];h[f]=r,this.destination.next(p)}},t})(e.Subscriber);return kt}var Vt={},Mu;function Td(){if(Mu)return Vt;Mu=1;var u=Vt&&Vt.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(Vt,"__esModule",{value:!0});var e=R();function i(a){return function(n){return n.lift(new s(a))}}Vt.skipUntil=i;var s=(function(){function a(n){this.notifier=n}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.notifier))},a})(),c=(function(a){u(n,a);function n(t,r){var o=a.call(this,t)||this;o.hasValue=!1;var l=new e.SimpleInnerSubscriber(o);o.add(l),o.innerSubscription=l;var f=e.innerSubscribe(r,l);return f!==l&&(o.add(f),o.innerSubscription=f),o}return n.prototype._next=function(t){this.hasValue&&a.prototype._next.call(this,t)},n.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},n.prototype.notifyComplete=function(){},n})(e.SimpleOuterSubscriber);return Vt}var Dt={},qu;function Ed(){if(qu)return Dt;qu=1;var u=Dt&&Dt.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(Dt,"__esModule",{value:!0});var e=x();function i(a){return function(n){return n.lift(new s(a))}}Dt.skipWhile=i;var s=(function(){function a(n){this.predicate=n}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.predicate))},a})(),c=(function(a){u(n,a);function n(t,r){var o=a.call(this,t)||this;return o.predicate=r,o.skipping=!0,o.index=0,o}return n.prototype._next=function(t){var r=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||r.next(t)},n.prototype.tryCallPredicate=function(t){try{var r=this.predicate(t,this.index++);this.skipping=!!r}catch(o){this.destination.error(o)}},n})(e.Subscriber);return Dt}var ii={},Nu;function Pd(){if(Nu)return ii;Nu=1,Object.defineProperty(ii,"__esModule",{value:!0});var u=yo(),e=Le();function i(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];var a=s[s.length-1];return e.isScheduler(a)?(s.pop(),function(n){return u.concat(s,n,a)}):function(n){return u.concat(s,n)}}return ii.startWith=i,ii}var oi={},Wt={},Ui={},Ut={},dr={},Lu;function Cd(){if(Lu)return dr;Lu=1,Object.defineProperty(dr,"__esModule",{value:!0});var u=1,e=(function(){return Promise.resolve()})(),i={};function s(c){return c in i?(delete i[c],!0):!1}return dr.Immediate={setImmediate:function(c){var a=u++;return i[a]=!0,e.then(function(){return s(a)&&c()}),a},clearImmediate:function(c){s(c)}},dr.TestTools={pending:function(){return Object.keys(i).length}},dr}var Fu;function Rd(){if(Fu)return Ut;Fu=1;var u=Ut&&Ut.__extends||(function(){var c=function(a,n){return c=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},c(a,n)};return function(a,n){c(a,n);function t(){this.constructor=a}a.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}})();Object.defineProperty(Ut,"__esModule",{value:!0});var e=Cd(),i=ho(),s=(function(c){u(a,c);function a(n,t){var r=c.call(this,n,t)||this;return r.scheduler=n,r.work=t,r}return a.prototype.requestAsyncId=function(n,t,r){return r===void 0&&(r=0),r!==null&&r>0?c.prototype.requestAsyncId.call(this,n,t,r):(n.actions.push(this),n.scheduled||(n.scheduled=e.Immediate.setImmediate(n.flush.bind(n,null))))},a.prototype.recycleAsyncId=function(n,t,r){if(r===void 0&&(r=0),r!==null&&r>0||r===null&&this.delay>0)return c.prototype.recycleAsyncId.call(this,n,t,r);n.actions.length===0&&(e.Immediate.clearImmediate(t),n.scheduled=void 0)},a})(i.AsyncAction);return Ut.AsapAction=s,Ut}var Bt={},ku;function Ad(){if(ku)return Bt;ku=1;var u=Bt&&Bt.__extends||(function(){var s=function(c,a){return s=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])},s(c,a)};return function(c,a){s(c,a);function n(){this.constructor=c}c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)}})();Object.defineProperty(Bt,"__esModule",{value:!0});var e=po(),i=(function(s){u(c,s);function c(){return s!==null&&s.apply(this,arguments)||this}return c.prototype.flush=function(a){this.active=!0,this.scheduled=void 0;var n=this.actions,t,r=-1,o=n.length;a=a||n.shift();do if(t=a.execute(a.state,a.delay))break;while(++r<o&&(a=n.shift()));if(this.active=!1,t){for(;++r<o&&(a=n.shift());)a.unsubscribe();throw t}},c})(e.AsyncScheduler);return Bt.AsapScheduler=i,Bt}var Vu;function jd(){return Vu||(Vu=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0});var e=Rd(),i=Ad();u.asapScheduler=new i.AsapScheduler(e.AsapAction),u.asap=u.asapScheduler})(Ui)),Ui}var Du;function $d(){if(Du)return Wt;Du=1;var u=Wt&&Wt.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(Wt,"__esModule",{value:!0});var e=j(),i=jd(),s=bo(),c=(function(a){u(n,a);function n(t,r,o){r===void 0&&(r=0),o===void 0&&(o=i.asap);var l=a.call(this)||this;return l.source=t,l.delayTime=r,l.scheduler=o,(!s.isNumeric(r)||r<0)&&(l.delayTime=0),(!o||typeof o.schedule!="function")&&(l.scheduler=i.asap),l}return n.create=function(t,r,o){return r===void 0&&(r=0),o===void 0&&(o=i.asap),new n(t,r,o)},n.dispatch=function(t){var r=t.source,o=t.subscriber;return this.add(r.subscribe(o))},n.prototype._subscribe=function(t){var r=this.delayTime,o=this.source,l=this.scheduler;return l.schedule(n.dispatch,r,{source:o,subscriber:t})},n})(e.Observable);return Wt.SubscribeOnObservable=c,Wt}var Wu;function Id(){if(Wu)return oi;Wu=1,Object.defineProperty(oi,"__esModule",{value:!0});var u=$d();function e(s,c){return c===void 0&&(c=0),function(n){return n.lift(new i(s,c))}}oi.subscribeOn=e;var i=(function(){function s(c,a){this.scheduler=c,this.delay=a}return s.prototype.call=function(c,a){return new u.SubscribeOnObservable(a,this.delay,this.scheduler).subscribe(c)},s})();return oi}var si={},zt={},Uu;function Eo(){if(Uu)return zt;Uu=1;var u=zt&&zt.__extends||(function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,f){l.__proto__=f}||function(l,f){for(var h in f)f.hasOwnProperty(h)&&(l[h]=f[h])},t(r,o)};return function(r,o){t(r,o);function l(){this.constructor=r}r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}})();Object.defineProperty(zt,"__esModule",{value:!0});var e=Ve(),i=ar(),s=R();function c(t,r){return typeof r=="function"?function(o){return o.pipe(c(function(l,f){return i.from(t(l,f)).pipe(e.map(function(h,p){return r(l,h,f,p)}))}))}:function(o){return o.lift(new a(t))}}zt.switchMap=c;var a=(function(){function t(r){this.project=r}return t.prototype.call=function(r,o){return o.subscribe(new n(r,this.project))},t})(),n=(function(t){u(r,t);function r(o,l){var f=t.call(this,o)||this;return f.project=l,f.index=0,f}return r.prototype._next=function(o){var l,f=this.index++;try{l=this.project(o,f)}catch(h){this.destination.error(h);return}this._innerSub(l)},r.prototype._innerSub=function(o){var l=this.innerSubscription;l&&l.unsubscribe();var f=new s.SimpleInnerSubscriber(this),h=this.destination;h.add(f),this.innerSubscription=s.innerSubscribe(o,f),this.innerSubscription!==f&&h.add(this.innerSubscription)},r.prototype._complete=function(){var o=this.innerSubscription;(!o||o.closed)&&t.prototype._complete.call(this),this.unsubscribe()},r.prototype._unsubscribe=function(){this.innerSubscription=void 0},r.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&t.prototype._complete.call(this)},r.prototype.notifyNext=function(o){this.destination.next(o)},r})(s.SimpleOuterSubscriber);return zt}var Bu;function Md(){if(Bu)return si;Bu=1,Object.defineProperty(si,"__esModule",{value:!0});var u=Eo(),e=xr();function i(){return u.switchMap(e.identity)}return si.switchAll=i,si}var ai={},zu;function qd(){if(zu)return ai;zu=1,Object.defineProperty(ai,"__esModule",{value:!0});var u=Eo();function e(i,s){return s?u.switchMap(function(){return i},s):u.switchMap(function(){return i})}return ai.switchMapTo=e,ai}var Ht={},Hu;function Nd(){if(Hu)return Ht;Hu=1;var u=Ht&&Ht.__extends||(function(){var a=function(n,t){return a=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(Ht,"__esModule",{value:!0});var e=R();function i(a){return function(n){return n.lift(new s(a))}}Ht.takeUntil=i;var s=(function(){function a(n){this.notifier=n}return a.prototype.call=function(n,t){var r=new c(n),o=e.innerSubscribe(this.notifier,new e.SimpleInnerSubscriber(r));return o&&!r.seenValue?(r.add(o),t.subscribe(r)):r},a})(),c=(function(a){u(n,a);function n(t){var r=a.call(this,t)||this;return r.seenValue=!1,r}return n.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},n.prototype.notifyComplete=function(){},n})(e.SimpleOuterSubscriber);return Ht}var Gt={},Gu;function Ld(){if(Gu)return Gt;Gu=1;var u=Gt&&Gt.__extends||(function(){var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l])},a(n,t)};return function(n,t){a(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}})();Object.defineProperty(Gt,"__esModule",{value:!0});var e=x();function i(a,n){return n===void 0&&(n=!1),function(t){return t.lift(new s(a,n))}}Gt.takeWhile=i;var s=(function(){function a(n,t){this.predicate=n,this.inclusive=t}return a.prototype.call=function(n,t){return t.subscribe(new c(n,this.predicate,this.inclusive))},a})(),c=(function(a){u(n,a);function n(t,r,o){var l=a.call(this,t)||this;return l.predicate=r,l.inclusive=o,l.index=0,l}return n.prototype._next=function(t){var r=this.destination,o;try{o=this.predicate(t,this.index++)}catch(l){r.error(l);return}this.nextOrComplete(t,o)},n.prototype.nextOrComplete=function(t,r){var o=this.destination;r?o.next(t):(this.inclusive&&o.next(t),o.complete())},n})(e.Subscriber);return Gt}var Jt={},ui={},Ju;function Fd(){if(Ju)return ui;Ju=1,Object.defineProperty(ui,"__esModule",{value:!0});function u(){}return ui.noop=u,ui}var Yu;function kd(){if(Yu)return Jt;Yu=1;var u=Jt&&Jt.__extends||(function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,f){l.__proto__=f}||function(l,f){for(var h in f)f.hasOwnProperty(h)&&(l[h]=f[h])},t(r,o)};return function(r,o){t(r,o);function l(){this.constructor=r}r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}})();Object.defineProperty(Jt,"__esModule",{value:!0});var e=x(),i=Fd(),s=ao();function c(t,r,o){return function(f){return f.lift(new a(t,r,o))}}Jt.tap=c;var a=(function(){function t(r,o,l){this.nextOrObserver=r,this.error=o,this.complete=l}return t.prototype.call=function(r,o){return o.subscribe(new n(r,this.nextOrObserver,this.error,this.complete))},t})(),n=(function(t){u(r,t);function r(o,l,f,h){var p=t.call(this,o)||this;return p._tapNext=i.noop,p._tapError=i.noop,p._tapComplete=i.noop,p._tapError=f||i.noop,p._tapComplete=h||i.noop,s.isFunction(l)?(p._context=p,p._tapNext=l):l&&(p._context=l,p._tapNext=l.next||i.noop,p._tapError=l.error||i.noop,p._tapComplete=l.complete||i.noop),p}return r.prototype._next=function(o){try{this._tapNext.call(this._context,o)}catch(l){this.destination.error(l);return}this.destination.next(o)},r.prototype._error=function(o){try{this._tapError.call(this._context,o)}catch(l){this.destination.error(l);return}this.destination.error(o)},r.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(o){this.destination.error(o);return}return this.destination.complete()},r})(e.Subscriber);return Jt}var br={},Ku;function ll(){return Ku||(Ku=1,(function(u){var e=br&&br.__extends||(function(){var n=function(t,r){return n=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])},n(t,r)};return function(t,r){n(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})();Object.defineProperty(u,"__esModule",{value:!0});var i=R();u.defaultThrottleConfig={leading:!0,trailing:!1};function s(n,t){return t===void 0&&(t=u.defaultThrottleConfig),function(r){return r.lift(new c(n,!!t.leading,!!t.trailing))}}u.throttle=s;var c=(function(){function n(t,r,o){this.durationSelector=t,this.leading=r,this.trailing=o}return n.prototype.call=function(t,r){return r.subscribe(new a(t,this.durationSelector,this.leading,this.trailing))},n})(),a=(function(n){e(t,n);function t(r,o,l,f){var h=n.call(this,r)||this;return h.destination=r,h.durationSelector=o,h._leading=l,h._trailing=f,h._hasValue=!1,h}return t.prototype._next=function(r){this._hasValue=!0,this._sendValue=r,this._throttled||(this._leading?this.send():this.throttle(r))},t.prototype.send=function(){var r=this,o=r._hasValue,l=r._sendValue;o&&(this.destination.next(l),this.throttle(l)),this._hasValue=!1,this._sendValue=void 0},t.prototype.throttle=function(r){var o=this.tryDurationSelector(r);o&&this.add(this._throttled=i.innerSubscribe(o,new i.SimpleInnerSubscriber(this)))},t.prototype.tryDurationSelector=function(r){try{return this.durationSelector(r)}catch(o){return this.destination.error(o),null}},t.prototype.throttlingDone=function(){var r=this,o=r._throttled,l=r._trailing;o&&o.unsubscribe(),this._throttled=void 0,l&&this.send()},t.prototype.notifyNext=function(){this.throttlingDone()},t.prototype.notifyComplete=function(){this.throttlingDone()},t})(i.SimpleOuterSubscriber)})(br)),br}var Yt={},Qu;function Vd(){if(Qu)return Yt;Qu=1;var u=Yt&&Yt.__extends||(function(){var r=function(o,l){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var p in h)h.hasOwnProperty(p)&&(f[p]=h[p])},r(o,l)};return function(o,l){r(o,l);function f(){this.constructor=o}o.prototype=l===null?Object.create(l):(f.prototype=l.prototype,new f)}})();Object.defineProperty(Yt,"__esModule",{value:!0});var e=x(),i=B(),s=ll();function c(r,o,l){return o===void 0&&(o=i.async),l===void 0&&(l=s.defaultThrottleConfig),function(f){return f.lift(new a(r,o,l.leading,l.trailing))}}Yt.throttleTime=c;var a=(function(){function r(o,l,f,h){this.duration=o,this.scheduler=l,this.leading=f,this.trailing=h}return r.prototype.call=function(o,l){return l.subscribe(new n(o,this.duration,this.scheduler,this.leading,this.trailing))},r})(),n=(function(r){u(o,r);function o(l,f,h,p,d){var b=r.call(this,l)||this;return b.duration=f,b.scheduler=h,b.leading=p,b.trailing=d,b._hasTrailingValue=!1,b._trailingValue=null,b}return o.prototype._next=function(l){this.throttled?this.trailing&&(this._trailingValue=l,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(t,this.duration,{subscriber:this})),this.leading?this.destination.next(l):this.trailing&&(this._trailingValue=l,this._hasTrailingValue=!0))},o.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},o.prototype.clearThrottle=function(){var l=this.throttled;l&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),l.unsubscribe(),this.remove(l),this.throttled=null)},o})(e.Subscriber);function t(r){var o=r.subscriber;o.clearThrottle()}return Yt}var vr={},ci={},Zu;function Dd(){if(Zu)return ci;Zu=1,Object.defineProperty(ci,"__esModule",{value:!0});var u=j(),e=ar(),i=Cr();function s(c){return new u.Observable(function(a){var n;try{n=c()}catch(r){a.error(r);return}var t=n?e.from(n):i.empty();return t.subscribe(a)})}return ci.defer=s,ci}var Xu;function Wd(){if(Xu)return vr;Xu=1,Object.defineProperty(vr,"__esModule",{value:!0});var u=B(),e=xo(),i=Dd(),s=Ve();function c(n){return n===void 0&&(n=u.async),function(t){return i.defer(function(){return t.pipe(e.scan(function(r,o){var l=r.current;return{value:o,current:n.now(),last:l}},{current:n.now(),value:void 0,last:void 0}),s.map(function(r){var o=r.current,l=r.last,f=r.value;return new a(f,o-l)}))})}}vr.timeInterval=c;var a=(function(){function n(t,r){this.value=t,this.interval=r}return n})();return vr.TimeInterval=a,vr}var li={},fi={},ec;function Ud(){if(ec)return fi;ec=1,Object.defineProperty(fi,"__esModule",{value:!0});var u=(function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e})();return fi.TimeoutError=u,fi}var Kt={},tc;function fl(){if(tc)return Kt;tc=1;var u=Kt&&Kt.__extends||(function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,f){l.__proto__=f}||function(l,f){for(var h in f)f.hasOwnProperty(h)&&(l[h]=f[h])},t(r,o)};return function(r,o){t(r,o);function l(){this.constructor=r}
171r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}})();Object.defineProperty(Kt,"__esModule",{value:!0});var e=B(),i=nl(),s=R();function c(t,r,o){return o===void 0&&(o=e.async),function(l){var f=i.isDate(t),h=f?+t-o.now():Math.abs(t);return l.lift(new a(h,f,r,o))}}Kt.timeoutWith=c;var a=(function(){function t(r,o,l,f){this.waitFor=r,this.absoluteTimeout=o,this.withObservable=l,this.scheduler=f}return t.prototype.call=function(r,o){return o.subscribe(new n(r,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t})(),n=(function(t){u(r,t);function r(o,l,f,h,p){var d=t.call(this,o)||this;return d.absoluteTimeout=l,d.waitFor=f,d.withObservable=h,d.scheduler=p,d.scheduleTimeout(),d}return r.dispatchTimeout=function(o){var l=o.withObservable;o._unsubscribeAndRecycle(),o.add(s.innerSubscribe(l,new s.SimpleInnerSubscriber(o)))},r.prototype.scheduleTimeout=function(){var o=this.action;o?this.action=o.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(r.dispatchTimeout,this.waitFor,this))},r.prototype._next=function(o){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,o)},r.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},r})(s.SimpleOuterSubscriber);return Kt}var rc;function Bd(){if(rc)return li;rc=1,Object.defineProperty(li,"__esModule",{value:!0});var u=B(),e=Ud(),i=fl(),s=il();function c(a,n){return n===void 0&&(n=u.async),i.timeoutWith(a,s.throwError(new e.TimeoutError),n)}return li.timeout=c,li}var _r={},nc;function zd(){if(nc)return _r;nc=1,Object.defineProperty(_r,"__esModule",{value:!0});var u=B(),e=Ve();function i(c){return c===void 0&&(c=u.async),e.map(function(a){return new s(a,c.now())})}_r.timestamp=i;var s=(function(){function c(a,n){this.value=a,this.timestamp=n}return c})();return _r.Timestamp=s,_r}var hi={},ic;function Hd(){if(ic)return hi;ic=1,Object.defineProperty(hi,"__esModule",{value:!0});var u=Pi();function e(s,c,a){return a===0?[c]:(s.push(c),s)}function i(){return u.reduce(e,[])}return hi.toArray=i,hi}var Qt={},oc;function Gd(){if(oc)return Qt;oc=1;var u=Qt&&Qt.__extends||(function(){var n=function(t,r){return n=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])},n(t,r)};return function(t,r){n(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})();Object.defineProperty(Qt,"__esModule",{value:!0});var e=L(),i=R();function s(n){return function(r){return r.lift(new c(n))}}Qt.window=s;var c=(function(){function n(t){this.windowBoundaries=t}return n.prototype.call=function(t,r){var o=new a(t),l=r.subscribe(o);return l.closed||o.add(i.innerSubscribe(this.windowBoundaries,new i.SimpleInnerSubscriber(o))),l},n})(),a=(function(n){u(t,n);function t(r){var o=n.call(this,r)||this;return o.window=new e.Subject,r.next(o.window),o}return t.prototype.notifyNext=function(){this.openWindow()},t.prototype.notifyError=function(r){this._error(r)},t.prototype.notifyComplete=function(){this._complete()},t.prototype._next=function(r){this.window.next(r)},t.prototype._error=function(r){this.window.error(r),this.destination.error(r)},t.prototype._complete=function(){this.window.complete(),this.destination.complete()},t.prototype._unsubscribe=function(){this.window=null},t.prototype.openWindow=function(){var r=this.window;r&&r.complete();var o=this.destination,l=this.window=new e.Subject;o.next(l)},t})(i.SimpleOuterSubscriber);return Qt}var Zt={},sc;function Jd(){if(sc)return Zt;sc=1;var u=Zt&&Zt.__extends||(function(){var n=function(t,r){return n=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])},n(t,r)};return function(t,r){n(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})();Object.defineProperty(Zt,"__esModule",{value:!0});var e=x(),i=L();function s(n,t){return t===void 0&&(t=0),function(o){return o.lift(new c(n,t))}}Zt.windowCount=s;var c=(function(){function n(t,r){this.windowSize=t,this.startWindowEvery=r}return n.prototype.call=function(t,r){return r.subscribe(new a(t,this.windowSize,this.startWindowEvery))},n})(),a=(function(n){u(t,n);function t(r,o,l){var f=n.call(this,r)||this;return f.destination=r,f.windowSize=o,f.startWindowEvery=l,f.windows=[new i.Subject],f.count=0,r.next(f.windows[0]),f}return t.prototype._next=function(r){for(var o=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,l=this.destination,f=this.windowSize,h=this.windows,p=h.length,d=0;d<p&&!this.closed;d++)h[d].next(r);var b=this.count-f+1;if(b>=0&&b%o===0&&!this.closed&&h.shift().complete(),++this.count%o===0&&!this.closed){var v=new i.Subject;h.push(v),l.next(v)}},t.prototype._error=function(r){var o=this.windows;if(o)for(;o.length>0&&!this.closed;)o.shift().error(r);this.destination.error(r)},t.prototype._complete=function(){var r=this.windows;if(r)for(;r.length>0&&!this.closed;)r.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t})(e.Subscriber);return Zt}var Xt={},ac;function Yd(){if(ac)return Xt;ac=1;var u=Xt&&Xt.__extends||(function(){var p=function(d,b){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var g in m)m.hasOwnProperty(g)&&(v[g]=m[g])},p(d,b)};return function(d,b){p(d,b);function v(){this.constructor=d}d.prototype=b===null?Object.create(b):(v.prototype=b.prototype,new v)}})();Object.defineProperty(Xt,"__esModule",{value:!0});var e=L(),i=B(),s=x(),c=bo(),a=Le();function n(p){var d=i.async,b=null,v=Number.POSITIVE_INFINITY;return a.isScheduler(arguments[3])&&(d=arguments[3]),a.isScheduler(arguments[2])?d=arguments[2]:c.isNumeric(arguments[2])&&(v=Number(arguments[2])),a.isScheduler(arguments[1])?d=arguments[1]:c.isNumeric(arguments[1])&&(b=Number(arguments[1])),function(g){return g.lift(new t(p,b,v,d))}}Xt.windowTime=n;var t=(function(){function p(d,b,v,m){this.windowTimeSpan=d,this.windowCreationInterval=b,this.maxWindowSize=v,this.scheduler=m}return p.prototype.call=function(d,b){return b.subscribe(new o(d,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},p})(),r=(function(p){u(d,p);function d(){var b=p!==null&&p.apply(this,arguments)||this;return b._numberOfNextedValues=0,b}return d.prototype.next=function(b){this._numberOfNextedValues++,p.prototype.next.call(this,b)},Object.defineProperty(d.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),d})(e.Subject),o=(function(p){u(d,p);function d(b,v,m,g,w){var O=p.call(this,b)||this;O.destination=b,O.windowTimeSpan=v,O.windowCreationInterval=m,O.maxWindowSize=g,O.scheduler=w,O.windows=[];var E=O.openWindow();if(m!==null&&m>=0){var F={subscriber:O,window:E,context:null},$={windowTimeSpan:v,windowCreationInterval:m,subscriber:O,scheduler:w};O.add(w.schedule(h,v,F)),O.add(w.schedule(f,m,$))}else{var xe={subscriber:O,window:E,windowTimeSpan:v};O.add(w.schedule(l,v,xe))}return O}return d.prototype._next=function(b){for(var v=this.windows,m=v.length,g=0;g<m;g++){var w=v[g];w.closed||(w.next(b),w.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(w))}},d.prototype._error=function(b){for(var v=this.windows;v.length>0;)v.shift().error(b);this.destination.error(b)},d.prototype._complete=function(){for(var b=this.windows;b.length>0;){var v=b.shift();v.closed||v.complete()}this.destination.complete()},d.prototype.openWindow=function(){var b=new r;this.windows.push(b);var v=this.destination;return v.next(b),b},d.prototype.closeWindow=function(b){b.complete();var v=this.windows;v.splice(v.indexOf(b),1)},d})(s.Subscriber);function l(p){var d=p.subscriber,b=p.windowTimeSpan,v=p.window;v&&d.closeWindow(v),p.window=d.openWindow(),this.schedule(p,b)}function f(p){var d=p.windowTimeSpan,b=p.subscriber,v=p.scheduler,m=p.windowCreationInterval,g=b.openWindow(),w=this,O={action:w,subscription:null},E={subscriber:b,window:g,context:O};O.subscription=v.schedule(h,d,E),w.add(O.subscription),w.schedule(p,m)}function h(p){var d=p.subscriber,b=p.window,v=p.context;v&&v.action&&v.subscription&&v.action.remove(v.subscription),d.closeWindow(b)}return Xt}var er={},uc;function Kd(){if(uc)return er;uc=1;var u=er&&er.__extends||(function(){var r=function(o,l){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var p in h)h.hasOwnProperty(p)&&(f[p]=h[p])},r(o,l)};return function(o,l){r(o,l);function f(){this.constructor=o}
171o.prototype=l===null?Object.create(l):(f.prototype=l.prototype,new f)}})();Object.defineProperty(er,"__esModule",{value:!0});var e=L(),i=M(),s=ke(),c=Fe();function a(r,o){return function(l){return l.lift(new n(r,o))}}er.windowToggle=a;var n=(function(){function r(o,l){this.openings=o,this.closingSelector=l}return r.prototype.call=function(o,l){return l.subscribe(new t(o,this.openings,this.closingSelector))},r})(),t=(function(r){u(o,r);function o(l,f,h){var p=r.call(this,l)||this;return p.openings=f,p.closingSelector=h,p.contexts=[],p.add(p.openSubscription=c.subscribeToResult(p,f,f)),p}return o.prototype._next=function(l){var f=this.contexts;if(f)for(var h=f.length,p=0;p<h;p++)f[p].window.next(l)},o.prototype._error=function(l){var f=this.contexts;if(this.contexts=null,f)for(var h=f.length,p=-1;++p<h;){var d=f[p];d.window.error(l),d.subscription.unsubscribe()}r.prototype._error.call(this,l)},o.prototype._complete=function(){var l=this.contexts;if(this.contexts=null,l)for(var f=l.length,h=-1;++h<f;){var p=l[h];p.window.complete(),p.subscription.unsubscribe()}r.prototype._complete.call(this)},o.prototype._unsubscribe=function(){var l=this.contexts;if(this.contexts=null,l)for(var f=l.length,h=-1;++h<f;){var p=l[h];p.window.unsubscribe(),p.subscription.unsubscribe()}},o.prototype.notifyNext=function(l,f,h,p,d){if(l===this.openings){var b=void 0;try{var v=this.closingSelector;b=v(f)}catch(E){return this.error(E)}var m=new e.Subject,g=new i.Subscription,w={window:m,subscription:g};this.contexts.push(w);var O=c.subscribeToResult(this,b,w);O.closed?this.closeWindow(this.contexts.length-1):(O.context=w,g.add(O)),this.destination.next(m)}else this.closeWindow(this.contexts.indexOf(l))},o.prototype.notifyError=function(l){this.error(l)},o.prototype.notifyComplete=function(l){l!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(l.context))},o.prototype.closeWindow=function(l){if(l!==-1){var f=this.contexts,h=f[l],p=h.window,d=h.subscription;f.splice(l,1),p.complete(),d.unsubscribe()}},o})(s.OuterSubscriber);return er}var tr={},cc;function Qd(){if(cc)return tr;cc=1;var u=tr&&tr.__extends||(function(){var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,f){l.__proto__=f}||function(l,f){for(var h in f)f.hasOwnProperty(h)&&(l[h]=f[h])},t(r,o)};return function(r,o){t(r,o);function l(){this.constructor=r}r.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}})();Object.defineProperty(tr,"__esModule",{value:!0});var e=L(),i=ke(),s=Fe();function c(t){return function(o){return o.lift(new a(t))}}tr.windowWhen=c;var a=(function(){function t(r){this.closingSelector=r}return t.prototype.call=function(r,o){return o.subscribe(new n(r,this.closingSelector))},t})(),n=(function(t){u(r,t);function r(o,l){var f=t.call(this,o)||this;return f.destination=o,f.closingSelector=l,f.openWindow(),f}return r.prototype.notifyNext=function(o,l,f,h,p){this.openWindow(p)},r.prototype.notifyError=function(o){this._error(o)},r.prototype.notifyComplete=function(o){this.openWindow(o)},r.prototype._next=function(o){this.window.next(o)},r.prototype._error=function(o){this.window.error(o),this.destination.error(o),this.unsubscribeClosingNotification()},r.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},r.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},r.prototype.openWindow=function(o){o===void 0&&(o=null),o&&(this.remove(o),o.unsubscribe());var l=this.window;l&&l.complete();var f=this.window=new e.Subject;this.destination.next(f);var h;try{var p=this.closingSelector;h=p()}catch(d){this.destination.error(d),this.window.error(d);return}this.add(this.closingNotification=s.subscribeToResult(this,h))},r})(i.OuterSubscriber);return tr}var rr={},lc;function Zd(){if(lc)return rr;lc=1;var u=rr&&rr.__extends||(function(){var n=function(t,r){return n=Object.
171setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])},n(t,r)};return function(t,r){n(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})();Object.defineProperty(rr,"__esModule",{value:!0});var e=ke(),i=Fe();function s(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return function(r){var o;typeof n[n.length-1]=="function"&&(o=n.pop());var l=n;return r.lift(new c(l,o))}}rr.withLatestFrom=s;var c=(function(){function n(t,r){this.observables=t,this.project=r}return n.prototype.call=function(t,r){return r.subscribe(new a(t,this.observables,this.project))},n})(),a=(function(n){u(t,n);function t(r,o,l){var f=n.call(this,r)||this;f.observables=o,f.project=l,f.toRespond=[];var h=o.length;f.values=new Array(h);for(var p=0;p<h;p++)f.toRespond.push(p);for(var p=0;p<h;p++){var d=o[p];f.add(i.subscribeToResult(f,d,void 0,p))}return f}return t.prototype.notifyNext=function(r,o,l){this.values[l]=o;var f=this.toRespond;if(f.length>0){var h=f.indexOf(l);h!==-1&&f.splice(h,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(r){if(this.toRespond.length===0){var o=[r].concat(this.values);this.project?this._tryProject(o):this.destination.next(o)}},t.prototype._tryProject=function(r){var o;try{o=this.project.apply(this,r)}catch(l){this.destination.error(l);return}this.destination.next(o)},t})(e.OuterSubscriber);return rr}var pi={},ve={},fc;function hl(){if(fc)return ve;fc=1;var u=ve&&ve.__extends||(function(){var h=function(p,d){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var m in v)v.hasOwnProperty(m)&&(b[m]=v[m])},h(p,d)};return function(p,d){h(p,d);function b(){this.constructor=p}p.prototype=d===null?Object.create(d):(b.prototype=d.prototype,new b)}})();
171Object.defineProperty(ve,"__esModule",{value:!0});var e=Er(),i=Oe(),s=x(),c=Tr(),a=R();function n(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];var d=h[h.length-1];return typeof d=="function"&&h.pop(),e.fromArray(h,void 0).lift(new t(d))}ve.zip=n;var t=(function(){function h(p){this.resultSelector=p}return h.prototype.call=function(p,d){return d.subscribe(new r(p,this.resultSelector))},h})();ve.ZipOperator=t;var r=(function(h){u(p,h);function p(d,b,v){var m=h.call(this,d)||this;return m.resultSelector=b,m.iterators=[],m.active=0,m.resultSelector=typeof b=="function"?b:void 0,m}return p.prototype._next=function(d){var b=this.iterators;i.isArray(d)?b.push(new l(d)):typeof d[c.iterator]=="function"?b.push(new o(d[c.iterator]())):b.push(new f(this.destination,this,d))},p.prototype._complete=function(){var d=this.iterators,b=d.length;if(this.unsubscribe(),b===0){this.destination.complete();return}this.active=b;for(var v=0;v<b;v++){var m=d[v];if(m.stillUnsubscribed){var g=this.destination;g.add(m.subscribe())}else this.active--}},p.prototype.notifyInactive=function(){this.active--,this.active===0&&this.destination.complete()},p.prototype.checkIterators=function(){for(var d=this.iterators,b=d.length,v=this.destination,m=0;m<b;m++){var g=d[m];if(typeof g.hasValue=="function"&&!g.hasValue())return}for(var w=!1,O=[],m=0;m<b;m++){var g=d[m],E=g.next();if(g.hasCompleted()&&(w=!0),E.done){v.complete();return}O.push(E.value)}this.resultSelector?this._tryresultSelector(O):v.next(O),w&&v.complete()},p.prototype._tryresultSelector=function(d){var b;try{b=this.resultSelector.apply(this,d)}catch(v){this.destination.error(v);return}this.destination.next(b)},p})(s.Subscriber);ve.ZipSubscriber=r;var o=(function(){function h(p){this.iterator=p,this.nextResult=p.next()}return h.prototype.hasValue=function(){return!0},h.prototype.next=function(){var p=this.nextResult;return this.nextResult=this.iterator.next(),p},h.prototype.hasCompleted=function(){var p=this.nextResult;return!!(p&&p.done)},h})(),l=(function(){function h(p){this.array=p,this.index=0,this.length=0,this.length=p.length}return h.prototype[c.iterator]=function(){return this},h.prototype.next=function(p){var d=this.index++,b=this.array;return d<this.length?{value:b[d],done:!1}:{value:null,done:!0}},h.prototype.hasValue=function(){return this.array.length>this.index},h.prototype.hasCompleted=function(){return this.array.length===this.index},h})(),f=(function(h){u(p,h);function p(d,b,v){var m=h.call(this,d)||this;return m.parent=b,m.observable=v,m.stillUnsubscribed=!0,m.buffer=[],m.isComplete=!1,m}return p.prototype[c.iterator]=function(){return this},p.prototype.next=function(){var d=this.buffer;return d.length===0&&this.isComplete?{value:null,done:!0}:{value:d.shift(),done:!1}},p.prototype.hasValue=function(){return this.buffer.length>0},p.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},p.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},p.prototype.notifyNext=function(d){this.buffer.push(d),this.parent.checkIterators()},p.prototype.subscribe=function(){return a.innerSubscribe(this.observable,new a.SimpleInnerSubscriber(this))},p})(a.SimpleOuterSubscriber);return ve}var hc;function Xd(){if(hc)return pi;hc=1,Object.defineProperty(pi,"__esModule",{value:!0});var u=hl();function e(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return function(a){return a.lift.call(u.zip.apply(void 0,[a].concat(i)))}}return pi.zip=e,pi}var di={},pc;function eb(){if(pc)return di;pc=1,Object.defineProperty(di,"__esModule",{value:!0});var u=hl();function e(i){return function(s){return s.lift(new u.ZipOperator(i))}}return di.zipAll=e,di}var dc;function tb(){if(dc)return y;dc=1,Object.defineProperty(y,"__esModule",{value:!0});var u=Xc();y.audit=u.audit;var e=np();y.auditTime=e.auditTime;var i=ip();y.buffer=i.buffer;var s=op();y.bufferCount=s.bufferCount;var c=sp();y.bufferTime=c.bufferTime;var a=up();y.bufferToggle=a.bufferToggle;var n=cp();y.bufferWhen=n.bufferWhen;var t=lp();y.catchError=t.catchError;var r=fp();y.combineAll=r.combineAll;var o=mp();y.combineLatest=o.combineLatest;var l=yp();y.concat=l.concat;var f=tl();y.concatAll=f.concatAll;var h=rl();y.concatMap=h.concatMap;var p=gp();y.concatMapTo=p.concatMapTo;var d=Sp();y.count=d.count;var b=wp();y.debounce=b.debounce;var v=Op();y.debounceTime=v.debounceTime;var m=Pr();y.defaultIfEmpty=m.defaultIfEmpty;var g=xp();y.delay=g.delay;var w=Tp();y.delayWhen=w.delayWhen;var O=Ep();y.dematerialize=O.dematerialize;var E=Pp();y.distinct=E.distinct;var F=ol();y.distinctUntilChanged=F.distinctUntilChanged;var $=Cp();y.distinctUntilKeyChanged=$.distinctUntilKeyChanged;var xe=Rp();y.elementAt=xe.elementAt;var De=Ap();y.endWith=De.endWith;var Mr=jp();
vendor: 4,235 bytes, line 171
171y.every=Mr.every;var qr=$p();y.exhaust=qr.exhaust;var We=Ip();y.exhaustMap=We.exhaustMap;var Te=Mp();y.expand=Te.expand;var te=Rr();y.filter=te.filter;var Nr=qp();y.finalize=Nr.finalize;var W=sl();y.find=W.find;var Lr=Np();y.findIndex=Lr.findIndex;var Y=Lp();y.first=Y.first;var Fr=Fp();y.groupBy=Fr.groupBy;var Mi=kp();y.ignoreElements=Mi.ignoreElements;var K=Vp();y.isEmpty=K.isEmpty;var ue=Dp();y.last=ue.last;var fr=Ve();y.map=fr.map;var Ue=Wp();y.mapTo=Ue.mapTo;var kr=Up();y.materialize=kr.materialize;var Vl=Bp();y.max=Vl.max;var Dl=Hp();y.merge=Dl.merge;var Wl=mo();y.mergeAll=Wl.mergeAll;var No=Oi();y.mergeMap=No.mergeMap,y.flatMap=No.flatMap;var Ul=Gp();y.mergeMapTo=Ul.mergeMapTo;var Bl=Jp();y.mergeScan=Bl.mergeScan;var zl=Yp();y.min=zl.min;var Hl=ur();y.multicast=Hl.multicast;var Gl=ul();y.observeOn=Gl.observeOn;var Jl=Qp();y.onErrorResumeNext=Jl.onErrorResumeNext;var Yl=Zp();y.pairwise=Yl.pairwise;var Kl=ed();y.partition=Kl.partition;var Ql=td();y.pluck=Ql.pluck;var Zl=rd();y.publish=Zl.publish;var Xl=id();y.publishBehavior=Xl.publishBehavior;var ef=sd();y.publishLast=ef.publishLast;var tf=ld();y.publishReplay=tf.publishReplay;var rf=hd();y.race=rf.race;var nf=Pi();y.reduce=nf.reduce;var of=pd();y.repeat=of.repeat;var sf=dd();y.repeatWhen=sf.repeatWhen;var af=bd();y.retry=af.retry;var uf=vd();y.retryWhen=uf.retryWhen;var cf=To();y.refCount=cf.refCount;var lf=_d();y.sample=lf.sample;var ff=md();y.sampleTime=ff.sampleTime;var hf=xo();y.scan=hf.scan;var pf=yd();y.sequenceEqual=pf.sequenceEqual;var df=gd();y.share=df.share;var bf=Sd();y.shareReplay=bf.shareReplay;var vf=wd();y.single=vf.single;var _f=Od();y.skip=_f.skip;var mf=xd();y.skipLast=mf.skipLast;var yf=Td();y.skipUntil=yf.skipUntil;var gf=Ed();y.skipWhile=gf.skipWhile;var Sf=Pd();y.startWith=Sf.startWith;var wf=Id();y.subscribeOn=wf.subscribeOn;var Of=Md();y.switchAll=Of.switchAll;var xf=Eo();y.switchMap=xf.switchMap;var Tf=qd();y.switchMapTo=Tf.switchMapTo;var Ef=So();y.take=Ef.take;var Pf=Oo();y.takeLast=Pf.takeLast;var Cf=Nd();y.takeUntil=Cf.takeUntil;var Rf=Ld();y.takeWhile=Rf.takeWhile;var Af=kd();y.tap=Af.tap;var jf=ll();y.throttle=jf.throttle;var $f=Vd();y.throttleTime=$f.throttleTime;var If=Ei();y.throwIfEmpty=If.throwIfEmpty;var Mf=Wd();y.timeInterval=Mf.timeInterval;var qf=Bd();y.timeout=qf.timeout;var Nf=fl();y.timeoutWith=Nf.timeoutWith;var Lf=zd();y.timestamp=Lf.timestamp;var Ff=Hd();y.toArray=Ff.toArray;var kf=Gd();y.window=kf.window;var Vf=Jd();y.windowCount=Vf.windowCount;var Df=Yd();y.windowTime=Df.windowTime;var Wf=Kd();y.windowToggle=Wf.windowToggle;var Uf=Qd();y.windowWhen=Uf.windowWhen;var Bf=Zd();y.withLatestFrom=Bf.withLatestFrom;var zf=Xd();y.zip=zf.zip;var Hf=eb();return y.zipAll=Hf.zipAll,y}var V=tb();function pl(u,e){return function(){return u.apply(e,arguments)}}const{toString:rb}=Object.prototype,{getPrototypeOf:Po}=Object,{iterator:Ci,toStringTag:dl}=Symbol,Ri=(u=>e=>{const i=rb.call(e);return u[i]||(u[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),J=u=>(u=u.toLowerCase(),e=>Ri(e)===u),Ai=u=>e=>typeof e===u,{isArray:cr}=Array,or=Ai("undefined");function Ar(u){return u!==null&&!or(u)&&u.constructor!==null&&!or(u.constructor)&&q(u.constructor.isBuffer)&&u.constructor.isBuffer(u)}const bl=J("ArrayBuffer");function nb(u){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(u):e=u&&u.buffer&&bl(u.buffer),e}const ib=Ai("string"),q=Ai("function"),vl=Ai("number"),jr=u=>u!==null&&typeof u=="object",ob=u=>u===!0||u===!1,_i=u=>{if(Ri(u)!=="object")return!1;const e=Po(u);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(dl in u)&&!(Ci in u)},sb=u=>{if(!jr(u)||Ar(u))return!1;try{return Object.keys(u).length===0&&Object.getPrototypeOf(u)===Object.prototype}catch{return!1}},ab=J("Date"),ub=J("File"),cb=J("Blob"),lb=J("FileList"),fb=u=>jr(u)&&q(u.pipe),hb=u=>{let e;return u&&(typeof FormData=="function"&&u instanceof FormData||q(u.append)&&((e=Ri(u))==="formdata"||e==="object"&&q(u.toString)&&u.toString()==="[object FormData]"))},pb=J("URLSearchParams"),[db,bb,vb,_b]=["ReadableStream","Request","Response","Headers"].map(J),mb=u=>u.trim?u.trim():u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $r(u,e,{allOwnKeys:i=!1}
vendor: 4,987 bytes, line 171
171={}){if(u===null||typeof u>"u")return;let s,c;if(typeof u!="object"&&(u=[u]),cr(u))for(s=0,c=u.length;s<c;s++)e.call(null,u[s],s,u);else{if(Ar(u))return;const a=i?Object.getOwnPropertyNames(u):Object.keys(u),n=a.length;let t;for(s=0;s<n;s++)t=a[s],e.call(null,u[t],t,u)}}function _l(u,e){if(Ar(u))return null;e=e.toLowerCase();const i=Object.keys(u);let s=i.length,c;for(;s-- >0;)if(c=i[s],e===c.toLowerCase())return c;return null}const $e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ml=u=>!or(u)&&u!==$e;function Qi(){const{caseless:u,skipUndefined:e}=ml(this)&&this||{},i={},s=(c,a)=>{const n=u&&_l(i,a)||a;_i(i[n])&&_i(c)?i[n]=Qi(i[n],c):_i(c)?i[n]=Qi({},c):cr(c)?i[n]=c.slice():(!e||!or(c))&&(i[n]=c)};for(let c=0,a=arguments.length;c<a;c++)arguments[c]&&$r(arguments[c],s);return i}const yb=(u,e,i,{allOwnKeys:s}={})=>($r(e,(c,a)=>{i&&q(c)?u[a]=pl(c,i):u[a]=c},{allOwnKeys:s}),u),gb=u=>(u.charCodeAt(0)===65279&&(u=u.slice(1)),u),Sb=(u,e,i,s)=>{u.prototype=Object.create(e.prototype,s),u.prototype.constructor=u,Object.defineProperty(u,"super",{value:e.prototype}),i&&Object.assign(u.prototype,i)},wb=(u,e,i,s)=>{let c,a,n;const t={};if(e=e||{},u==null)return e;do{for(c=Object.getOwnPropertyNames(u),a=c.length;a-- >0;)n=c[a],(!s||s(n,u,e))&&!t[n]&&(e[n]=u[n],t[n]=!0);u=i!==!1&&Po(u)}while(u&&(!i||i(u,e))&&u!==Object.prototype);return e},Ob=(u,e,i)=>{u=String(u),(i===void 0||i>u.length)&&(i=u.length),i-=e.length;const s=u.indexOf(e,i);return s!==-1&&s===i},xb=u=>{if(!u)return null;if(cr(u))return u;let e=u.length;if(!vl(e))return null;const i=new Array(e);for(;e-- >0;)i[e]=u[e];return i},Tb=(u=>e=>u&&e instanceof u)(typeof Uint8Array<"u"&&Po(Uint8Array)),Eb=(u,e)=>{const s=(u&&u[Ci]).call(u);let c;for(;(c=s.next())&&!c.done;){const a=c.value;e.call(u,a[0],a[1])}},Pb=(u,e)=>{let i;const s=[];for(;(i=u.exec(e))!==null;)s.push(i);return s},Cb=J("HTMLFormElement"),Rb=u=>u.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,s,c){return s.toUpperCase()+c}),bc=(({hasOwnProperty:u})=>(e,i)=>u.call(e,i))(Object.prototype),Ab=J("RegExp"),yl=(u,e)=>{const i=Object.getOwnPropertyDescriptors(u),s={};$r(i,(c,a)=>{let n;(n=e(c,a,u))!==!1&&(s[a]=n||c)}),Object.defineProperties(u,s)},jb=u=>{yl(u,(e,i)=>{if(q(u)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const s=u[i];if(q(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},$b=(u,e)=>{const i={},s=c=>{c.forEach(a=>{i[a]=!0})};return cr(u)?s(u):s(String(u).split(e)),i},Ib=()=>{},Mb=(u,e)=>u!=null&&Number.isFinite(u=+u)?u:e;function qb(u){return!!(u&&q(u.append)&&u[dl]==="FormData"&&u[Ci])}const Nb=u=>{const e=new Array(10),i=(s,c)=>{if(jr(s)){if(e.indexOf(s)>=0)return;if(Ar(s))return s;if(!("toJSON"in s)){e[c]=s;const a=cr(s)?[]:{};return $r(s,(n,t)=>{const r=i(n,c+1);!or(r)&&(a[t]=r)}),e[c]=void 0,a}}return s};return i(u,0)},Lb=J("AsyncFunction"),Fb=u=>u&&(jr(u)||q(u))&&q(u.then)&&q(u.catch),gl=((u,e)=>u?setImmediate:e?((i,s)=>($e.addEventListener("message",({source:c,data:a})=>{c===$e&&a===i&&s.length&&s.shift()()},!1),c=>{s.push(c),$e.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",q($e.postMessage)),kb=typeof queueMicrotask<"u"?queueMicrotask.bind($e):typeof process<"u"&&process.nextTick||gl,Vb=u=>u!=null&&q(u[Ci]),_={isArray:cr,isArrayBuffer:bl,isBuffer:Ar,isFormData:hb,isArrayBufferView:nb,isString:ib,isNumber:vl,isBoolean:ob,isObject:jr,isPlainObject:_i,isEmptyObject:sb,isReadableStream:db,isRequest:bb,isResponse:vb,isHeaders:_b,isUndefined:or,isDate:ab,isFile:ub,isBlob:cb,isRegExp:Ab,isFunction:q,isStream:fb,isURLSearchParams:pb,isTypedArray:Tb,isFileList:lb,forEach:$r,merge:Qi,extend:yb,trim:mb,stripBOM:gb,inherits:Sb,toFlatObject:wb,kindOf:Ri,kindOfTest:J,endsWith:Ob,toArray:xb,forEachEntry:Eb,matchAll:Pb,isHTMLForm:Cb,hasOwnProperty:bc,hasOwnProp:bc,reduceDescriptors:yl,freezeMethods:jb,toObjectSet:$b,toCamelCase:Rb,noop:Ib,toFiniteNumber:Mb,findKey:_l,global:$e,isContextDefined:ml,isSpecCompliantForm:qb,toJSONObject:Nb,isAsyncFn:Lb,isThenable:Fb,setImmediate:gl,asap:kb,isIterable:Vb};function T(u,e,i,s,c){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=u,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),s&&(this.request=s),c&&(this.response=c,this.status=c.status?c.status:null)}_.inherits(T,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.status}}});const Sl=T.prototype,wl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","E
171RR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(u=>{wl[u]={value:u}});Object.defineProperties(T,wl);Object.defineProperty(Sl,"isAxiosError",{value:!0});T.from=(u,e,i,s,c,a)=>{const n=Object.create(Sl);_.toFlatObject(u,n,function(l){return l!==Error.prototype},o=>o!=="isAxiosError");const t=u&&u.message?u.message:"Error",r=e==null&&u?u.code:e;return T.call(n,t,r,i,s,c),u&&n.cause==null&&Object.defineProperty(n,"cause",{value:u,configurable:!0}),n.name=u&&u.name||"Error",a&&Object.assign(n,a),n};const Db=null;function Zi(u){return _.isPlainObject(u)||_.isArray(u)}function Ol(u){return _.endsWith(u,"[]")?u.slice(0,-2):u}function vc(u,e,i){return u?u.concat(e).map(function(c,a){return c=Ol(c),!i&&a?"["+c+"]":c}).join(i?".":""):e}function Wb(u){return _.isArray(u)&&!u.some(Zi)}const Ub=_.toFlatObject(_,{},null,function(e){return/^is[A-Z]/.test(e)});function ji(u,e,i){if(!_.isObject(u))throw new TypeError("target must be an object");e=e||new FormData,i=_.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,v){return!_.isUndefined(v[b])});const s=i.metaTokens,c=i.visitor||l,a=i.dots,n=i.indexes,r=(i.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(e);if(!_.isFunction(c))throw new TypeError("visitor must be a function");function o(d){if(d===null)return"";if(_.isDate(d))return d.toISOString();if(_.isBoolean(d))return d.toString();if(!r&&_.isBlob(d))throw new T("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(d)||_.isTypedArray(d)?r&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function l(d,b,v){let m=d;if(d&&!v&&typeof d=="object"){if(_.endsWith(b,"{}"))b=s?b:b.slice(0,-2),d=JSON.stringify(d);else if(_.isArray(d)&&Wb(d)||(_.isFileList(d)||_.endsWith(b,"[]"))&&(m=_.toArray(d)))return b=Ol(b),m.forEach(function(w,O){!(_.isUndefined(w)||w===null)&&e.append(n===!0?vc([b],O,a):n===null?b:b+"[]",o(w))}),!1}return Zi(d)?!0:(e.append(vc(v,b,a),o(d)),!1)}const f=[],h=Object.assign(Ub,{defaultVisitor:l,convertValue:o,isVisitable:Zi});function p(d,b){if(!_.isUndefined(d)){if(f.indexOf(d)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(d),_.forEach(d,function(m,g){(!(_.isUndefined(m)||m===null)&&c.call(e,m,_.isString(g)?g.trim():g,b,h))===!0&&p(m,b?b.concat(g):[g])}),f.pop()}}if(!_.isObject(u))throw new TypeError("data must be an object");return p(u),e}
vendor: 4,134 bytes, line 171
171function _c(u){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(u).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function Co(u,e){this._pairs=[],u&&ji(u,this,e)}const xl=Co.prototype;xl.append=function(e,i){this._pairs.push([e,i])};xl.toString=function(e){const i=e?function(s){return e.call(this,s,_c)}:_c;return this._pairs.map(function(c){return i(c[0])+"="+i(c[1])},"").join("&")};function Bb(u){return encodeURIComponent(u).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Tl(u,e,i){if(!e)return u;const s=i&&i.encode||Bb;_.isFunction(i)&&(i={serialize:i});const c=i&&i.serialize;let a;if(c?a=c(e,i):a=_.isURLSearchParams(e)?e.toString():new Co(e,i).toString(s),a){const n=u.indexOf("#");n!==-1&&(u=u.slice(0,n)),u+=(u.indexOf("?")===-1?"?":"&")+a}return u}class mc{constructor(){this.handlers=[]}use(e,i,s){return this.handlers.push({fulfilled:e,rejected:i,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){_.forEach(this.handlers,function(s){s!==null&&e(s)})}}const El={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zb=typeof URLSearchParams<"u"?URLSearchParams:Co,Hb=typeof FormData<"u"?FormData:null,Gb=typeof Blob<"u"?Blob:null,Jb={isBrowser:!0,classes:{URLSearchParams:zb,FormData:Hb,Blob:Gb},protocols:["http","https","file","blob","url","data"]},Ro=typeof window<"u"&&typeof document<"u",Xi=typeof navigator=="object"&&navigator||void 0,Yb=Ro&&(!Xi||["ReactNative","NativeScript","NS"].indexOf(Xi.product)<0),Kb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qb=Ro&&window.location.href||"http://localhost",Zb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ro,hasStandardBrowserEnv:Yb,hasStandardBrowserWebWorkerEnv:Kb,navigator:Xi,origin:Qb},Symbol.toStringTag,{value:"Module"})),I={...Zb,...Jb};function Xb(u,e){return ji(u,new I.classes.URLSearchParams,{visitor:function(i,s,c,a){return I.isNode&&_.isBuffer(i)?(this.append(s,i.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...e})}function ev(u){return _.matchAll(/\w+|\[(\w*)]/g,u).map(e=>e[0]==="[]"?"":e[1]||e[0])}function tv(u){const e={},i=Object.keys(u);let s;const c=i.length;let a;for(s=0;s<c;s++)a=i[s],e[a]=u[a];return e}function Pl(u){function e(i,s,c,a){let n=i[a++];if(n==="__proto__")return!0;const t=Number.isFinite(+n),r=a>=i.length;return n=!n&&_.isArray(c)?c.length:n,r?(_.hasOwnProp(c,n)?c[n]=[c[n],s]:c[n]=s,!t):((!c[n]||!_.isObject(c[n]))&&(c[n]=[]),e(i,s,c[n],a)&&_.isArray(c[n])&&(c[n]=tv(c[n])),!t)}if(_.isFormData(u)&&_.isFunction(u.entries)){const i={};return _.forEachEntry(u,(s,c)=>{e(ev(s),c,i,0)}),i}return null}function rv(u,e,i){if(_.isString(u))try{return(e||JSON.parse)(u),_.trim(u)}catch(s){if(s.name!=="SyntaxError")throw s}return(i||JSON.stringify)(u)}const Ir={transitional:El,adapter:["xhr","http","fetch"],transformRequest:[function(e,i){const s=i.getContentType()||"",c=s.indexOf("application/json")>-1,a=_.isObject(e);if(a&&_.isHTMLForm(e)&&(e=new FormData(e)),_.isFormData(e))return c?JSON.stringify(Pl(e)):e;if(_.isArrayBuffer(e)||_.isBuffer(e)||_.isStream(e)||_.isFile(e)||_.isBlob(e)||_.isReadableStream(e))return e;if(_.isArrayBufferView(e))return e.buffer;if(_.isURLSearchParams(e))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let t;if(a){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Xb(e,this.formSerializer).toString();if((t=_.isFileList(e))||s.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return ji(t?{"files[]":e}:e,r&&new r,this.formSerializer)}}return a||c?(i.setContentType("application/json",!1),rv(e)):e}],transformResponse:[function(e){const i=this.transitional||Ir.transitional,s=i&&i.forcedJSONParsing,c=this.responseType==="json";if(_.isResponse(e)||_.isReadableStream(e))return e;if(e&&_.isString(e)&&(s&&!this.responseType||c)){const n=!(i&&i.silentJSONParsing)&&
vendor: 11,002 bytes, lines 171-173
171c;try{return JSON.parse(e,this.parseReviver)}catch(t){if(n)throw t.name==="SyntaxError"?T.from(t,T.ERR_BAD_RESPONSE,this,null,this.response):t}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:I.classes.FormData,Blob:I.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],u=>{Ir.headers[u]={}});const nv=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iv=u=>{const e={};let i,s,c;return u&&u.split(`
172`).forEach(function(n){c=n.indexOf(":"),i=n.substring(0,c).trim().toLowerCase(),s=n.substring(c+1).trim(),!(!i||e[i]&&nv[i])&&(i==="set-cookie"?e[i]?e[i].push(s):e[i]=[s]:e[i]=e[i]?e[i]+", "+s:s)}),e},yc=Symbol("internals");function mr(u){return u&&String(u).trim().toLowerCase()}function mi(u){return u===!1||u==null?u:_.isArray(u)?u.map(mi):String(u)}function ov(u){const e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=i.exec(u);)e[s[1]]=s[2];return e}const sv=u=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(u.trim());function Bi(u,e,i,s,c){if(_.isFunction(s))return s.call(this,e,i);if(c&&(e=i),!!_.isString(e)){if(_.isString(s))return e.indexOf(s)!==-1;if(_.isRegExp(s))return s.test(e)}}function av(u){return u.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,i,s)=>i.toUpperCase()+s)}function uv(u,e){const i=_.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(u,s+i,{value:function(c,a,n){return this[s].call(this,e,c,a,n)},configurable:!0})})}let N=class{constructor(e){e&&this.set(e)}set(e,i,s){const c=this;function a(t,r,o){const l=mr(r);if(!l)throw new Error("header name must be a non-empty string");const f=_.findKey(c,l);(!f||c[f]===void 0||o===!0||o===void 0&&c[f]!==!1)&&(c[f||r]=mi(t))}const n=(t,r)=>_.forEach(t,(o,l)=>a(o,l,r));if(_.isPlainObject(e)||e instanceof this.constructor)n(e,i);else if(_.isString(e)&&(e=e.trim())&&!sv(e))n(iv(e),i);else if(_.isObject(e)&&_.isIterable(e)){let t={},r,o;for(const l of e){if(!_.isArray(l))throw TypeError("Object iterator must return a key-value pair");t[o=l[0]]=(r=t[o])?_.isArray(r)?[...r,l[1]]:[r,l[1]]:l[1]}n(t,i)}else e!=null&&a(i,e,s);return this}get(e,i){if(e=mr(e),e){const s=_.findKey(this,e);if(s){const c=this[s];if(!i)return c;if(i===!0)return ov(c);if(_.isFunction(i))return i.call(this,c,s);if(_.isRegExp(i))return i.exec(c);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,i){if(e=mr(e),e){const s=_.findKey(this,e);return!!(s&&this[s]!==void 0&&(!i||Bi(this,this[s],s,i)))}return!1}delete(e,i){const s=this;let c=!1;function a(n){if(n=mr(n),n){const t=_.findKey(s,n);t&&(!i||Bi(s,s[t],t,i))&&(delete s[t],c=!0)}}return _.isArray(e)?e.forEach(a):a(e),c}clear(e){const i=Object.keys(this);let s=i.length,c=!1;for(;s--;){const a=i[s];(!e||Bi(this,this[a],a,e,!0))&&(delete this[a],c=!0)}return c}normalize(e){const i=this,s={};return _.forEach(this,(c,a)=>{const n=_.findKey(s,a);if(n){i[n]=mi(c),delete i[a];return}const t=e?av(a):String(a).trim();t!==a&&delete i[a],i[t]=mi(c),s[t]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const i=Object.create(null);return _.forEach(this,(s,c)=>{s!=null&&s!==!1&&(i[c]=e&&_.isArray(s)?s.join(", "):s)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,i])=>e+": "+i).join(`
173`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...i){const s=new this(e);return i.forEach(c=>s.set(c)),s}static accessor(e){const s=(this[yc]=this[yc]={accessors:{}}).accessors,c=this.prototype;function a(n){const t=mr(n);s[t]||(uv(c,n),s[t]=!0)}return _.isArray(e)?e.forEach(a):a(e),this}};N.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(N.prototype,({value:u},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>u,set(s){this[i]=s}}});_.freezeMethods(N);function zi(u,e){const i=this||Ir,s=e||i,c=N.from(s.headers);let a=s.data;return _.forEach(u,function(t){a=t.call(i,a,c.normalize(),e?e.status:void 0)}),c.normalize(),a}function Cl(u){return!!(u&&u.__CANCEL__)}function lr(u,e,i){T.call(this,u??"canceled",T.ERR_CANCELED,e,i),this.name="CanceledError"}_.inherits(lr,T,{__CANCEL__:!0});function Rl(u,e,i){const s=i.config.validateStatus;!i.status||!s||s(i.status)?u(i):e(new T("Request failed with status code "+i.status,[T.ERR_BAD_REQUEST,T.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function cv(u){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(u);return e&&e[1]||""}function lv(u,e){u=u||10;const i=new Array(u),s=new Array(u);let c=0,a=0,n;return e=e!==void 0?e:1e3,function(r){const o=Date.now(),l=s[a];n||(n=o),i[c]=r,s[c]=o;let f=a,h=0;for(;f!==c;)h+=i[f++],f=f%u;if(c=(c+1)%u,c===a&&(a=(a+1)%u),o-n<e)return;const p=l&&o-l;return p?Math.round(h*1e3/p):void 0}}function fv(u,e){let i=0,s=1e3/e,c,a;const n=(o,l=Date.now())=>{i=l,c=null,a&&(clearTimeout(a),a=null),u(...o)};return[(...o)=>{const l=Date.now(),f=l-i;f>=s?n(o,l):(c=o,a||(a=setTimeout(()=>{a=null,n(c)},s-f)))},()=>c&&n(c)]}const Si=(u,e,i=3)=>{let s=0;const c=lv(50,250);return fv(a=>{const n=a.loaded,t=a.lengthComputable?a.total:void 0,r=n-s,o=c(r),l=n<=t;s=n;const f={loaded:n,total:t,progress:t?n/t:void 0,bytes:r,rate:o||void 0,estimated:o&&t&&l?(t-n)/o:void 0,event:a,lengthComputable:t!=null,[e?"download":"upload"]:!0};u(f)},i)},gc=(u,e)=>{const i=u!=null;return[s=>e[0]({lengthComputable:i,total:u,loaded:s}),e[1]]},Sc=u=>(...e)=>_.asap(()=>u(...e)),hv=I.hasStandardBrowserEnv?((u,e)=>i=>(i=new URL(i,I.origin),u.protocol===i.protocol&&u.host===i.host&&(e||u.port===i.port)))(new URL(I.origin),I.navigator&&/(msie|trident)/i.test(I.navigator.userAgent)):()=>!0,pv=I.hasStandardBrowserEnv?{write(u,e,i,s,c,a,n){if(typeof document>"u")return;const t=[`${u}=${encodeURIComponent(e)}`];_.isNumber(i)&&t.push(`expires=${new Date(i).toUTCString()}`),_.isString(s)&&t.push(`path=${s}`),_.isString(c)&&t.push(`domain=${c}`),a===!0&&t.push("secure"),_.isString(n)&&t.push(`SameSite=${n}`),document.cookie=t.join("; ")},read(u){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+u+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(u){this.write(u,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function dv(u){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(u)}function bv(u,e){return e?u.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):u}function Al(u,e,i){let s=!dv(e);return u&&(s||i==!1)?bv(u,e):e}const wc=u=>u instanceof N?{...u}:u;function Ne(u,e){e=e||{};const i={};function s(o,l,f,h){return _.isPlainObject(o)&&_.isPlainObject(l)?_.merge.call({caseless:h},o,l):_.isPlainObject(l)?_.merge({},l):_.isArray(l)?l.slice():l}function c(o,l,f,h){if(_.isUndefined(l)){if(!_.isUndefined(o))return s(void 0,o,f,h)}else return s(o,l,f,h)}function a(o,l){if(!_.isUndefined(l))return s(void 0,l)}function n(o,l){if(_.isUndefined(l)){if(!_.isUndefined(o))return s(void 0,o)}else return s(void 0,l)}function t(o,l,f){if(f in e)return s(o,l);if(f in u)return s(void 0,o)}const r={url:a,method:a,data:a,baseURL:n,transformRequest:n,transformResponse:n,paramsSerializer:n,timeout:n,timeoutMessage:n,withCredentials:n,withXSRFToken:n,adapter:n,responseType:n,xsrfCookieName:n,xsrfHeaderName:n,onUploadProgress:n,onDownloadProgress:n,decompress:n,maxContentLength:n,maxBodyLength:n,beforeRedirect:n,transport:n,httpAgent:n,httpsAgent:n,cancelToken:n,socketPath:n,responseEncoding:n,validateStatus:t,headers:(o,l,f)=>c(wc(o),wc(l),f,!0)};return _.forEach(Object.keys({...u,...e}),function(l){const f=r[l]||c,h=f(u[l],e[l],l);_.isUndefined(h)&&f!==t||(i[l]=h)}),i}const jl=u=>{const e=Ne({},u);let{data:i,withXSRFToken:s,xsrfHeaderName:c,xsrfCookieName:a,headers:n,auth:t}=e;if(e.headers=n=N.from(n),e.url=Tl(Al(e.baseURL,e.url,e.allowAbsoluteUrls),u.params,u.paramsSerializer),t&&n.set("Authorization","Basic "+btoa((t.username||"")+":"+(t.password?unescape(encodeURIComponent(t.password)):""))),_.isFormData(i)){if(I.hasStandardBrowserEnv||I.hasStandardBrowserWebWorkerEnv)n.setContentType(void 0);else if(_.isFunction(i.getHeaders)){const r=i.getHeaders(),o=["content-type","content-length"];Object.entries(r).forEach(([l,f])=>{o.includes(l.toLowerCase())&&n.set(l,f)})}}if(I.hasStandardBrowserEnv&&(s&&_.isFunction(s)&&(s=s(e)),s||s!==!1&&hv(e.url))){const r=c&&a&&pv.read(a);r&&n.set(c,r)}return e},vv=typeof XMLHttpRequest<"u",_v=vv&&function(u){return new Promise(function(i,s){const c=jl(u);let a=c.data;const n=N.from(c.headers).normalize();let{responseType:t,onUploadProgress:r,onDownloadProgress:o}=c,l,f,h,p,d;function b(){p&&p(),d&&d(),c.cancelToken&&c.cancelToken.unsubscribe(l),c.signal&&c.signal.removeEventListener("abort",l)}let v=new XMLHttpRequest;v.open(c.method.toUpperCase(),c.url,!0),v.timeout=c.timeout;function m(){if(!v)return;const w=N.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),E={data:!t||t==="text"||t==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:u,request:v};Rl(function($){i($),b()},function($){s($),b()},E),v=null}"onloadend"in v?v.onloadend=m:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(m)},v.onabort=function(){v&&(s(new T("Request aborted",T.ECONNABORTED,u,v)),v=null)},v.onerror=function(O){const E=O&&O.message?O.message:"Network Error",F=new T(E,T.ERR_NETWORK,u,v);F.event=O||null,s(F),v=null},v.ontimeout=function(){let O=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded";const E=c.transitional||El;c.timeoutErrorMessage&&(O=c.timeoutErrorMessage),s(new T(O,E.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,u,v)),v=null},a===void 0&&n.setContentType(null),"setRequestHeader"in v&&_.forEach(n.toJSON(),function(O,E){v.setRequestHeader(E,O)}),_.isUndefined(c.withCredentials)||(v.withCredentials=!!c.withCredentials),t&&t!=="json"&&(v.responseType=c.responseType),o&&([h,d]=Si(o,!0),v.addEventListener("progress",h)),r&&v.upload&&([f,p]=Si(r),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",p)),(c.cancelToken||c.signal)&&(l=w=>{v&&(s(!w||w.type?new lr(null,u,v):w),v.abort(),v=null)},c.cancelToken&&c.cancelToken.subscribe(l),c.signal&&(c.signal.aborted?l():c.signal.addEventListener("abort",l)));const g=cv(c.url);if(g&&I.protocols.indexOf(g)===-1){s(new T("Unsupported protocol "+g+":",T.ERR_BAD_REQUEST,u));return}v.send(a||null)})},mv=(u,e)=>{const{length:i}=u=u?u.filter(Boolean):[];if(e||i){let s=new AbortController,c;
vendor: 5,010 bytes, lines 173-175
173const a=function(o){if(!c){c=!0,t();const l=o instanceof Error?o:this.reason;s.abort(l instanceof T?l:new lr(l instanceof Error?l.message:l))}};let n=e&&setTimeout(()=>{n=null,a(new T(`timeout ${e} of ms exceeded`,T.ETIMEDOUT))},e);const t=()=>{u&&(n&&clearTimeout(n),n=null,u.forEach(o=>{o.unsubscribe?o.unsubscribe(a):o.removeEventListener("abort",a)}),u=null)};u.forEach(o=>o.addEventListener("abort",a));const{signal:r}=s;return r.unsubscribe=()=>_.asap(t),r}},yv=function*(u,e){let i=u.byteLength;if(i<e){yield u;return}let s=0,c;for(;s<i;)c=s+e,yield u.slice(s,c),s=c},gv=async function*(u,e){for await(const i of Sv(u))yield*yv(i,e)},Sv=async function*(u){if(u[Symbol.asyncIterator]){yield*u;return}const e=u.getReader();try{for(;;){const{done:i,value:s}=await e.read();if(i)break;yield s}}finally{await e.cancel()}},Oc=(u,e,i,s)=>{const c=gv(u,e);let a=0,n,t=r=>{n||(n=!0,s&&s(r))};return new ReadableStream({async pull(r){try{const{done:o,value:l}=await c.next();if(o){t(),r.close();return}let f=l.byteLength;if(i){let h=a+=f;i(h)}r.enqueue(new Uint8Array(l))}catch(o){throw t(o),o}},cancel(r){return t(r),c.return()}},{highWaterMark:2})},xc=64*1024,{isFunction:bi}=_,wv=(({Request:u,Response:e})=>({Request:u,Response:e}))(_.global),{ReadableStream:Tc,TextEncoder:Ec}=_.global,Pc=(u,...e)=>{try{return!!u(...e)}catch{return!1}},Ov=u=>{u=_.merge.call({skipUndefined:!0},wv,u);const{fetch:e,Request:i,Response:s}=u,c=e?bi(e):typeof fetch=="function",a=bi(i),n=bi(s);if(!c)return!1;const t=c&&bi(Tc),r=c&&(typeof Ec=="function"?(d=>b=>d.encode(b))(new Ec):async d=>new Uint8Array(await new i(d).arrayBuffer())),o=a&&t&&Pc(()=>{let d=!1;const b=new i(I.origin,{body:new Tc,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!b}),l=n&&t&&Pc(()=>_.isReadableStream(new s("").body)),f={stream:l&&(d=>d.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!f[d]&&(f[d]=(b,v)=>{let m=b&&b[d];if(m)return m.call(b);throw new T(`Response type '${d}' is not supported`,T.ERR_NOT_SUPPORT,v)})});const h=async d=>{if(d==null)return 0;if(_.isBlob(d))return d.size;if(_.isSpecCompliantForm(d))return(await new i(I.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(_.isArrayBufferView(d)||_.isArrayBuffer(d))return d.byteLength;if(_.isURLSearchParams(d)&&(d=d+""),_.isString(d))return(await r(d)).byteLength},p=async(d,b)=>{const v=_.toFiniteNumber(d.getContentLength());return v??h(b)};return async d=>{let{url:b,method:v,data:m,signal:g,cancelToken:w,timeout:O,onDownloadProgress:E,onUploadProgress:F,responseType:$,headers:xe,withCredentials:De="same-origin",fetchOptions:Mr}=jl(d),qr=e||fetch;$=$?($+"").toLowerCase():"text";let We=mv([g,w&&w.toAbortSignal()],O),Te=null;const te=We&&We.unsubscribe&&(()=>{We.unsubscribe()});let Nr;try{if(F&&o&&v!=="get"&&v!=="head"&&(Nr=await p(xe,m))!==0){let K=new i(b,{method:"POST",body:m,duplex:"half"}),ue;if(_.isFormData(m)&&(ue=K.headers.get("content-type"))&&xe.setContentType(ue),K.body){const[fr,Ue]=gc(Nr,Si(Sc(F)));m=Oc(K.body,xc,fr,Ue)}}_.isString(De)||(De=De?"include":"omit");const W=a&&"credentials"in i.prototype,Lr={...Mr,signal:We,method:v.toUpperCase(),headers:xe.normalize().toJSON(),body:m,duplex:"half",credentials:W?De:void 0};Te=a&&new i(b,Lr);let Y=await(a?qr(Te,Mr):qr(b,Lr));const Fr=l&&($==="stream"||$==="response");if(l&&(E||Fr&&te)){const K={};["status","statusText","headers"].forEach(kr=>{K[kr]=Y[kr]});const ue=_.toFiniteNumber(Y.headers.get("content-length")),[fr,Ue]=E&&gc(ue,Si(Sc(E),!0))||[];Y=new s(Oc(Y.body,xc,fr,()=>{Ue&&Ue(),te&&te()}),K)}$=$||"text";let Mi=await f[_.findKey(f,$)||"text"](Y,d);return!Fr&&te&&te(),await new Promise((K,ue)=>{Rl(K,ue,{data:Mi,headers:N.from(Y.headers),status:Y.status,statusText:Y.statusText,config:d,request:Te})})}catch(W){throw te&&te(),W&&W.name==="TypeError"&&/Load failed|fetch/i.test(W.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,d,Te),{cause:W.cause||W}):T.from(W,W&&W.code,d,Te)}}},xv=new Map,$l=u=>{let e=u&&u.env||{};const{fetch:i,Request:s,Response:c}=e,a=[s,c,i];let n=a.length,t=n,r,o,l=xv;for(;t--;)r=a[t],o=l.get(r),o===void 0&&l.set(r,o=t?new Map:Ov(e)),l=o;return o};$l();const Ao={http:Db,xhr:_v,fetch:{get:$l}};_.forEach(Ao,(u,e)=>{if(u){try{Object.defineProperty(u,"name",{value:e})}catch{}Object.defineProperty(u,"adapterName",{value:e})}});const Cc=u=>`- ${u}`,Tv=u=>_.isFunction(u)||u===null||u===!1;function Ev(u,e){u=_.isArray(u)?u:[u];const{length:i}=u;let s,c;const a={};for(let n=0;n<i;n++){s=u[n];let t;if(c=s,!Tv(s)&&(c=Ao[(t=String(s)).toLowerCase()],c===void 0))throw new T(`Unknown adapter '${t}'`);if(c&&(_.isFunction(c)||(c=c.get(e))))break;a[t||"#"+n]=c}if(!c){const n=Object.entries(a).map(([r,o])=>`adapter ${r} `+(o===!1?"is not supported by the environment":"is not available in the build"));let t=i?n.length>1?`since :
174`+n.map(Cc).join(`
175`):" "+Cc(n[0]):"as no adapter specified";throw new T("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return c}
vendor: 4,703 bytes, lines 175-176
175const Il={getAdapter:Ev,adapters:Ao};function Hi(u){if(u.cancelToken&&u.cancelToken.throwIfRequested(),u.signal&&u.signal.aborted)throw new lr(null,u)}function Rc(u){return Hi(u),u.headers=N.from(u.headers),u.data=zi.call(u,u.transformRequest),["post","put","patch"].indexOf(u.method)!==-1&&u.headers.setContentType("application/x-www-form-urlencoded",!1),Il.getAdapter(u.adapter||Ir.adapter,u)(u).then(function(s){return Hi(u),s.data=zi.call(u,u.transformResponse,s),s.headers=N.from(s.headers),s},function(s){return Cl(s)||(Hi(u),s&&s.response&&(s.response.data=zi.call(u,u.transformResponse,s.response),s.response.headers=N.from(s.response.headers))),Promise.reject(s)})}const Ml="1.13.2",$i={};["object","boolean","number","function","string","symbol"].forEach((u,e)=>{$i[u]=function(s){return typeof s===u||"a"+(e<1?"n ":" ")+u}});const Ac={};$i.transitional=function(e,i,s){function c(a,n){return"[Axios v"+Ml+"] Transitional option '"+a+"'"+n+(s?". "+s:"")}return(a,n,t)=>{if(e===!1)throw new T(c(n," has been removed"+(i?" in "+i:"")),T.ERR_DEPRECATED);return i&&!Ac[n]&&(Ac[n]=!0,console.warn(c(n," has been deprecated since v"+i+" and will be removed in the near future"))),e?e(a,n,t):!0}};$i.spelling=function(e){return(i,s)=>(console.warn(`${s} is likely a misspelling of ${e}`),!0)};function Pv(u,e,i){if(typeof u!="object")throw new T("options must be an object",T.ERR_BAD_OPTION_VALUE);const s=Object.keys(u);let c=s.length;for(;c-- >0;){const a=s[c],n=e[a];if(n){const t=u[a],r=t===void 0||n(t,a,u);if(r!==!0)throw new T("option "+a+" must be "+r,T.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new T("Unknown option "+a,T.ERR_BAD_OPTION)}}const yi={assertOptions:Pv,validators:$i},Z=yi.validators;let Me=class{constructor(e){this.defaults=e||{},this.interceptors={request:new mc,response:new mc}}async request(e,i){try{return await this._request(e,i)}catch(s){if(s instanceof Error){let c={};Error.captureStackTrace?Error.captureStackTrace(c):c=new Error;const a=c.stack?c.stack.replace(/^.+\n/,""):"";try{s.stack?a&&!String(s.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(s.stack+=`
176`+a):s.stack=a}catch{}}throw s}}_request(e,i){typeof e=="string"?(i=i||{},i.url=e):i=e||{},i=Ne(this.defaults,i);const{transitional:s,paramsSerializer:c,headers:a}=i;s!==void 0&&yi.assertOptions(s,{silentJSONParsing:Z.transitional(Z.boolean),forcedJSONParsing:Z.transitional(Z.boolean),clarifyTimeoutError:Z.transitional(Z.boolean)},!1),c!=null&&(_.isFunction(c)?i.paramsSerializer={serialize:c}:yi.assertOptions(c,{encode:Z.function,serialize:Z.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),yi.assertOptions(i,{baseUrl:Z.spelling("baseURL"),withXsrfToken:Z.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let n=a&&_.merge(a.common,a[i.method]);a&&_.forEach(["delete","get","head","post","put","patch","common"],d=>{delete a[d]}),i.headers=N.concat(n,a);const t=[];let r=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(i)===!1||(r=r&&b.synchronous,t.unshift(b.fulfilled,b.rejected))});const o=[];this.interceptors.response.forEach(function(b){o.push(b.fulfilled,b.rejected)});let l,f=0,h;if(!r){const d=[Rc.bind(this),void 0];for(d.unshift(...t),d.push(...o),h=d.length,l=Promise.resolve(i);f<h;)l=l.then(d[f++],d[f++]);return l}h=t.length;let p=i;for(;f<h;){const d=t[f++],b=t[f++];try{p=d(p)}catch(v){b.call(this,v);break}}try{l=Rc.call(this,p)}catch(d){return Promise.reject(d)}for(f=0,h=o.length;f<h;)l=l.then(o[f++],o[f++]);return l}getUri(e){e=Ne(this.defaults,e);const i=Al(e.baseURL,e.url,e.allowAbsoluteUrls);return Tl(i,e.params,e.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(e){Me.prototype[e]=function(i,s){return this.request(Ne(s||{},{method:e,url:i,data:(s||{}).data}))}});_.forEach(["post","put","patch"],function(e){function i(s){return function(a,n,t){return this.request(Ne(t||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:a,data:n}))}}Me.prototype[e]=i(),Me.prototype[e+"Form"]=i(!0)});let Cv=class ql{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(a){i=a});const s=this;this.promise.then(c=>{if(!s._listeners)return;let a=s._listeners.length;for(;a-- >0;)s._listeners[a](c);s._listeners=null}),this.promise.then=c=>{let a;const n=new Promise(t=>{s.subscribe(t),a=t}).then(c);return n.cancel=function(){s.unsubscribe(a)},n},e(function(a,n,t){s.reason||(s.reason=new lr(a,n,t),i(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
176subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const i=this._listeners.indexOf(e);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const e=new AbortController,i=s=>{e.abort(s)};return this.subscribe(i),e.signal.unsubscribe=()=>this.unsubscribe(i),e.signal}static source(){let e;return{token:new ql(function(c){e=c}),cancel:e}}};function Rv(u){return function(i){return u.apply(null,i)}}function Av(u){return _.isObject(u)&&u.isAxiosError===!0}const eo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(eo).forEach(([u,e])=>{eo[e]=u});function Nl(u){const e=new Me(u),i=pl(Me.prototype.request,e);return _.extend(i,Me.prototype,e,{allOwnKeys:!0}),_.extend(i,e,null,{allOwnKeys:!0}),i.create=function(c){return Nl(Ne(u,c))},i}const C=Nl(Ir);C.Axios=Me;C.CanceledError=lr;C.CancelToken=Cv;C.isCancel=Cl;C.VERSION=Ml;C.toFormData=ji;C.AxiosError=T;C.Cancel=C.CanceledError;C.all=function(e){return Promise.all(e)};C.spread=Rv;C.isAxiosError=Av;C.mergeConfig=Ne;C.AxiosHeaders=N;C.formToJSON=u=>Pl(_.isHTMLForm(u)?new FormData(u):u);C.getAdapter=Il.getAdapter;C.HttpStatusCode=eo;C.default=C;const{Axios:j_,AxiosError:$_,CanceledError:I_,isCancel:M_,CancelToken:q_,VERSION:N_,all:L_,Cancel:F_,isAxiosError:k_,spread:V_,toFormData:D_,AxiosHeaders:W_,HttpStatusCode:U_,formToJSON:B_,getAdapter:z_,mergeConfig:H_}=C;function Ll(u,e,i,s){return Jf(i)&&(s=i,i=void 0),s?Ll(u,e,i).pipe(gh(function(c){return Yf(c)?s.apply(void 0,c):s(c)})):new ae(function(c){function a(n){arguments.length>1?c.next(Array.prototype.slice.call(arguments)):c.next(n)}Fl(u,e,a,c,i)})}function Fl(u,e,i,s,c){var a;if(Iv(u)){var n=u;u.addEventListener(e,i,c),a=function(){return n.removeEventListener(e,i,c)}}else if($v(u)){var t=u;u.on(e,i),a=function(){return t.off(e,i)}}else if(jv(u)){var r=u;u.addListener(e,i),a=function(){return r.removeListener(e,i)}}else if(u&&u.length)for(var o=0,l=u.length;o<l;o++)Fl(u[o],e,i,s,c);else throw new TypeError("Invalid event target");s.add(a)}function jv(u){return u&&typeof u.addListener=="function"&&typeof u.removeListener=="function"}function $v(u){return u&&typeof u.on=="function"&&typeof u.off=="function"}function Iv(u){return u&&typeof u.addEventListener=="function"&&typeof u.removeEventListener=="function"}class se{static getInstance(){return se.instance||(se.instance=new se),se.instance}getTrainingsList(e,i){return this.fromRequest({method:"GET",url:`params/command/get-trainings/node-id/${e}/${i?`?${decodeURIComponent(i.toString())}`:""}`,headers:{"X-Requested-With":"XMLHttpRequest"}}).pipe(V.map(s=>s.data.data))}getTrainingsListByIds(e,i){return this.fromRequest({method:"GET",url:`params/command/get-trainings-by-ids/node-id/${e}/${i?`?${i.map(s=>`ids[]=${s}`).join("&")}`:""}`,headers:{"X-Requested-With":"XMLHttpRequest"}}).pipe(V.map(s=>s.data.data))}
176getTrainingsListAllCurrent(e){return this.fromRequest({method:"GET",url:`params/command/get-trainings-all-current/node-id/${e}/`,headers:{"X-Requested-With":"XMLHttpRequest"}}).pipe(V.map(i=>i.data.data))}fromRequest(e){return new ae(i=>{const s=C.CancelToken.source();i.add(()=>s.cancel()),C({...e,cancelToken:s.token}).then(c=>i.next(c),c=>!C.isCancel(c)&&i.error(c))})}}var jo=(u=>(u.Change="change",u))(jo||{}),kl=(u=>(u.guaranteedTooltip="TRAINING_TRANSLATE_KEY_TOOLTIP_MESSAGE",u))(kl||{}),G=(u=>(u.Change="change",u.Clear="clear",u.ClearGroup="clearGroup",u))(G||{}),k=(u=>(u.Tiles="tiles",u.List="list",u))(k||{}),$o=(u=>(u.Change="layoutChange",u))($o||{});function Mv(u,e,i,s,c){return S` <div class="${u}" data-js="${e}">
177    <div class="training__item-content">${i}</div>
178    <div class="training__list-side">${s} ${c}</div>
179  </div>`}function qv(u,e,i,s,c){return S` <div class="${u}" data-js="${e}">
180    <div class="training__item-content">${i} ${s}</div>
181    ${c}
182  </div>`}class Nv extends we{constructor(){super(),this.registerEvents()}getTemplate(e){const{training:i,layout:s}=e,c=document.documentElement.lang,a=this.truncate.apply((c==="pl"||c==="en")&&i.Nazwa?i.Nazwa:i.title,[85,!0]),n=i.Nazwa?i.Nazwa:i.title,t=this.getWrapperClass(e),r=JSON.stringify(e),o=this.renderTrainingContent(i,n),l=this.renderFeatureWrapper(i),f=this.renderCta(e,a,c);return s===k.List?Mv(t,r,o,l,f):qv(t,r,o,l,f)}renderTrainingContent(e,i){return S`<h3 class="training__subject" title="${i}">
183        <a href="${e.url_path}"> ${i} </a>
184      </h3>
185
186      ${e.GratisTemat&&e.GratisData&&Date.parse(e.GratisData)>Date.now()?S`<span class="training__subtext">${e.GratisTemat}</span>`:""}
187      ${e.Forma==="e-Learning"?S`<time class="training__date"></time>`:S`<time class="training__date"
188            >${e.DataRozpoczecia}
189            ${e.DataZakonczenia&&e.DataZakonczenia!=e.DataRozpoczecia?S`- ${e.DataZakonczenia}`:""}</time
190          >`}
191      ${this.hasLabels(e)?S`<div class="training__label-wrapper">
192            ${e.Gwarantowane?S`<span class="training__label training__label--guaranteed"
193                  >${this.translate("Minimum submissions reached")}
194                  <span
195                    data-js-tooltip="${this.translate(kl.guaranteedTooltip)}"
196                    @mouseover="${s=>this.toggleTooltip(s)}"
197                    class="training__label--tooltip"
198                  >
199                    ${ee(X.render({name:"interface-icon-info-tooltip",class:"interface-icon interface-icon-interface_info-tooltip"}))}
200                  </span>
201                </span>`:""}
202            ${e.new?S`<span class="training__label training__label--new"
203                  >${this.translate("New")}</span
204                >`:""}
205            ${e.Promocja?S`<span class="training__label training__label--promo"
206                  >${this.translate("Promotion")}</span
207                >`:""}
208            ${e.Forma=="Zdalne"?S`<span class="training__label training__label--remote"
209                  >${this.translate("Remote")}</span
210                >`:""}
211            ${e.Forma=="e-Learning"?S`<span class="training__label training__label--elearning"
212                  >${this.translate("e-Learning")}</span
213                >`:""}
214            ${e.Forma=="Stacjonarne"?S`<span class="training__label training__label--stationary"
215                  >${this.translate("Stationary")}</span
216                >`:""}
217            ${e.custom_label?e.custom_url?S`<a href="${e.custom_url}" class="training__label training__label--custom"
218                    >${e.custom_label}</a
219                  >`:S`<span class="training__label training__label--custom"
220                    >${e.custom_label}</span
221                  >`:""}
222          </div>`:""}`}renderFeatureWrapper(e){return S`<div class="training__feature-wrapper">
223      <div class="training__feature-points">
224        <span class="training__feature training-tiles__only">${this.translate("Place")}:</span>
225        <span class="training__feature-description">
226          ${e.Lokalizacja?e.Lokalizacja.trim()==="Szkolenie zdalne"?this.translate("Remote training"):e.Lokalizacja.trim()==="Platforma"?this.translate("Platform"):e.Ulica?S`${e.Lokalizacja}<br />${e.Ulica}`:e.Lokalizacja:""}
227        </span>
228      </div>
229      <div class="training__feature-points">
230        <span class="training__feature training-tiles__only">${this.translate("Duration")}:</span>
231        <span
232          class="training__feature-description training__feature-description--132px training__duration"
233        >
234          ${e.Czas?e.Czas.trim()=="1"?`${e.Czas} ${this.translate("day")}`:`${e.Czas} ${this.translate("days")}`:""}
235        </span>
236      </div>
237      <div
238        class="training__feature-points ${!e.LiczbaGodzin&&e.Czas&&e.Czas.trim()!="365"?"training__feature-points--hidden":""}"
239      >
240        <span class="training__feature training-tiles__only">${this.translate("Hours")}:</span>
241        <span class="training__feature-description">
242          ${e.Czas?e.Czas.trim()=="365"?this.translate("365 days access"):e.LiczbaGodzin?`${e.LiczbaGodzin} ${this.translate("training hours")}`:"-":""}
243        </span>
244      </div>
245
246      <div
247        class="training__feature-points ${e.GodzinaRozpoczecia?"":"training__feature-points--hidden"}"
248      >
249        <span class="training__feature training-tiles__only">${this.translate("Start")}:</span>
250        <span class="training__feature-description training__start"
251          >${e.GodzinaRozpoczecia?e.GodzinaRozpoczecia:"-"}</span
252        >
253      </div>
254    </div>`}renderCta(e,i,s){const{training:c,isTrainingInClipboard:a,registerFormLink:n}=e;return S`<div class="training__cta">
255      ${c.CenaNetto?S`<div class="training__feature-price">
256            ${c.CenaNetto} ${this.translate("zł")}
257            <span class="training__feature-price--tax">${this.translate("net")}</span> /
258            ${c.CenaBrutto} ${this.translate("zł")}
259            <span class="training__feature-price--tax">${this.translate("gross")}</span>
260          </div>`:""}
261      ${c.Promocja&&c.CenaDetalicznaNetto?S` <div class="training__feature-price training__feature-price--small">
262              ${this.translate("TRAINING_LOWEST_PRICE_30_DAYS")}:
263              ${c.MinimalnaCenaNetto30Dni}
264              <span class="training__feature-price--tax">${this.translate("net")}</span>
265            </div>`:""}
266      <div class="training__purchase-terms-wrapper">
267        <a
268          href="${this.getPurchaseTermsLink(s)}"
269          target="_blank"
270          rel="nofollow"
271          class="training__purchase-terms"
272        >
273          ${this.translate("Check terms and conditions of purchase")}
274        </a>
275      </div>
276      <div class="training__buttons">
277        <button
278          type="button"
279          class="training__star ${a?"training__star--active":""} training-list__only"
280          @click="${()=>this.emitChangeClipboardState(c.id,c.DataRozpoczecia,i,!a)}"
281        >
282          ${ee(X.render(a?{name:"ca-icon-favourite-filled",class:"ca-icon ca-icon-favourite-filled"}:{name:"ca-icon-favourite-border",class:"ca-icon ca-icon-favourite-border"}))}
283        </button>
284        ${n?S`<a
285              href="${n}"
286              title="Registration form"
287              @click="${()=>this.saveDataAsLocalStorage(c)}"
288              class="training__link c-btn c-btn--small h-ripple-effect"
289            >
290              ${this.translate("Registration form")}</a
291            >`:c.Url?S`<a
292                href="${c.Url}"
293                title="${this.translate("Order")}"
294                class="training__link c-btn c-btn--small h-ripple-effect"
295                >${this.translate("Order")}</a
296              >`:""}
297      </div>
298    </div>`}getWrapperClass(e){const{wrapperClass:i,isTrainingInClipboard:s}=e;return`training__item-wrapper ${i} ${i.includes("clipboard__training")&&!s?"clipboard__training--shadow":""}`.trim()}hasLabels(e){return!!(e.Gwarantowane||e.new||e.Promocja||e.Forma=="Stacjonarne"||e.Forma=="e-Learning"||e.Forma=="Zdalne"||e.custom_label)}toggleTooltip(e){const i=e.target,s=i.getAttribute("data-js-tooltip"),c=document.createElement("div");c.setAttribute("class","training__tooltip"),c.innerHTML=s,i.appendChild(c),i.addEventListener("mouseleave",()=>{c.remove()})}registerEvents(){this.registerEvent(jo.Change,this.clipboardState$=new z)}emitChangeClipboardState(e,i,s,c){this.clipboardState$.next({trainingId:e,date:i,trainingName:s,newState:c})}truncate(e,i){if(this.length<=e)return this;const s=this.substr(0,e-1);return`${i?s.substr(0,s.lastIndexOf(" ")):s}&hellip;`}truncateAsTemplate(e,i){if(this.length<=e)return S`${this}`;const s=this.substr(0,e-1);return S`${i?s.substr(0,s.lastIndexOf(" ")):s}&hellip;`}saveDataAsLocalStorage(e){const i={name:e.Nazwa,startDate:e.DataRozpoczecia,type:e.Forma,location:e.Lokalizacja,time:e.Czas,duration:e.LiczbaGodzin,startTime:e.GodzinaRozpoczecia,netto:e.CenaNetto,brutto:e.CenaBrutto};localStorage.setItem("trainingObj",JSON.stringify(i))}getPurchaseTermsLink(e){return e==="en"?"https://www.comarch.com/files-com/file_670/TRAINING_SERVICES_TERMS_AND_CONDITIONS_CSC_EN.pdf":"https://www.comarch.pl/szkolenia/regulamin-swiadczenia-uslug/"}}class Ii extends Se{constructor(e=""){super({componentName:"training-search-training",componentHostViewTag:no.Li,componentClass:e}),this.templateRef=new Nv,this.clipboardService=oe.getInstance()}renderWidget(e,i="",s="",c=k.Tiles){const a=this.clipboardService.isTrainingInClipboard(e.id,e.DataRozpoczecia);this.templateData={training:e,isTrainingInClipboard:a,wrapperClass:i,registerFormLink:s,layout:c},this.renderContent(this.templateRef.getTemplate(this.templateData)),this.initSubscriptions()}initSubscriptions(){this.templateRef.events[jo.Change].subscribe(e=>{e.newState?this.clipboardService.addToClipboard(e.trainingId,e.date,e.trainingName):this.clipboardService.removeFromClipboard(e.trainingId,e.date,e.trainingName),this.templateData.isTrainingInClipboard=e.newState,this.renderContent(this.templateRef.getTemplate(this.templateData))})}}var D=(u=>(u.noTrainingsAvailableMessage="TRAINING_SEARCH_NO_AVAILABLE_MESSAGE_KEY",u.noTrainingsContactEmail="TRAINING_SEARCH_NO_AVAILABLE_CONTACT_EMAIL_KEY",u.trainingsCurrencyText="TRAINING_CURRENCY_TEXT_KEY",u))(D||{});class Lv extends we{constructor(){super()}getTemplate(e,i=!1){return S` <section
299      id="widget-${e.widgetId}"
300      class="h-widget-margin training-search"
301    >
302      <article class="training-search__entries training">
303        <div class="grid__container">
304          ${i?S`<div class="h-spinner h-spinner--show"></div>`:e.trainings.length?S`<ul class="training-list__feature-list">
305                    <li>Grupa docelowa</li>
306                    <li>Miejsce</li>
307                    <li>Liczba dni</li>
308                    <li>Liczba godzin</li>
309                  </ul>
310                  <ul class="training training-tiles" data-content="trainings"></ul>`:S`<p>
311                  ${this.translate(D.noTrainingsAvailableMessage)}
312                  ${this.translate(D.noTrainingsContactEmail)}:
313                  <a class="c-btn--text-emerald" href="mailto:${e.contactEmail}"
314                    >${e.contactEmail}</a
315                  >
316                </p>`}
317        </div>
318      </article>
319    </section>`}}class Fv extends Se{constructor(){super({componentName:"training-search-clipboard-template"}),this.templateRef=new Lv,this.apiService=se.getInstance(),this.clipboardService=oe.getInstance()}renderWidget(e=document.body){this.widgetInputData={...e.dataset},e.appendChild(this.hostView),this.loadClipboardTrainings()}loadClipboardTrainings(){this.renderContent(this.templateRef.getTemplate(this.widgetInputData,!0)),this.fetchClipboardTrainings(this.widgetInputData.nodeId).subscribe(e=>{this.renderContent(this.templateRef.getTemplate({...this.widgetInputData,trainings:e},!1)),this.mountTrainings(e)})}mountTrainings(e){const i=this.hostView.querySelector('[data-content="trainings"]');e.forEach(s=>{const c=new Ii;c.renderWidget(s,"clipboard__training",this.widgetInputData.registerFormLink),i.appendChild(c.hostView)})}fetchClipboardTrainings(e){const i=this.clipboardService.getSavedTrainings(),s=i.map(a=>parseInt(a[0])),c=a=>i.find(n=>n[0]===a.id&&n[1]===a.DataRozpoczecia);return this.apiService.getTrainingsListByIds(e,s).pipe(V.map(a=>a.results.filter(n=>!!c(n))))}}const to=["page","phrase"];class ye{constructor(){this.searchParamsSource$=new Vo(1),this.currentFiltersCountersSource$=new Vo(1),this.searchParams$=this.searchParamsSource$.asObservable(),this.filtersCounters$=this.currentFiltersCountersSource$.asObservable(),this.activeFiltersCounter=0,this.baseUrl=this.getBaseUrl()}static getInstance(){return ye.instance||(ye.instance=new ye),ye.instance}getCurrentUrlSearchParams(){return this.currentUrlSearchParams}getActiveFiltersCounter(){return this.activeFiltersCounter}loadInitialQueryParams(e,i){const s=this.filterQueryParams(new URLSearchParams(window.location.search),i);Object.entries(e).filter(([a,n])=>
319n).forEach(([a,n])=>{!s.has(a)&&!s.has(`${a}[]`)&&s.append(`${a}[]`,n)});const c=this.getURLWithSearchParams(s);this.updateURL(c),this.emitSearchParams(s)}clearURLSearchParams(){const e=new URLSearchParams,i=this.getPhraseFromToolbarInput();i&&e.set("phrase",i);const s=this.getURLWithSearchParams(e);this.updateURL(s),this.emitSearchParams(e)}setSearchParam(e,i){const s=this.currentUrlSearchParams;s.set(e,i);const c=this.getURLWithSearchParams(s);this.updateURL(c),this.emitSearchParams(s)}removeSearchParam(e){const i=this.currentUrlSearchParams;i.delete(e);const s=this.getURLWithSearchParams(i);this.updateURL(s),this.emitSearchParams(i)}appendFilterParam(e,i){const s=this.currentUrlSearchParams;s.append(e,i),s.delete("page");const c=this.getURLWithSearchParams(s);this.updateURL(c),this.emitSearchParams(s)}removeFilterParamWithValue(e,i){const s=this.currentUrlSearchParams,c=this.getValuesOfURLSearchParamsKey(s,e);s.delete(e),c.filter(n=>n!==i).forEach(n=>{s.append(e,n)}),s.delete("page");const a=this.getURLWithSearchParams(s);this.updateURL(a),this.emitSearchParams(s)}registerSubmitToolbarPhraseEvent(){const e=document.querySelector(".toolbar form");e==null||e.addEventListener("submit",i=>{i.preventDefault();const s=this.getPhraseFromToolbarInput();s?this.setSearchParam("phrase",s):this.removeSearchParam("phrase")})}updateCurrentFiltersCounters(e){this.currentFiltersCountersSource$.next(e)}getPhraseToolbarInput(){return document.querySelector(".toolbar__search-input")}getPhraseFromToolbarInput(){return this.getPhraseToolbarInput().value.trim()}getValuesOfURLSearchParamsKey(e,i){const s=[];return e.forEach((c,a)=>{a===i&&s.push(c)}),s}updateURL(e){window.history.replaceState(null,null,e)}getURLWithSearchParams(e){const i=decodeURIComponent(e.toString());return`${this.baseUrl}${i?`?${i}`:""}`}updateActiveFiltersCounter(e){let i=0;e.forEach((s,c)=>{to.includes(c)||i++}),this.activeFiltersCounter=i}emitSearchParams(e){this.updateActiveFiltersCounter(e),this.currentUrlSearchParams=e,this.searchParamsSource$.next(e)}getBaseUrl(){return window.location.protocol+"//"+window.location.host+window.location.pathname}filterQueryParams(e,i){const s=Object.keys(i),c=[],a=this.getFilterValues(i),n=e.keys();return Array.from(n).forEach(t=>{if(c.includes(t))return;const r=t.replace("[]","");if(to.includes(r))return e;if(!s.includes(r))e.delete(t);else{const o=e.getAll(t),l=this.getParametersToStay(o,a);if(o.length===l.length){c.push(t);return}e.delete(t),l.length!==0&&l.forEach(f=>e.append(t,f))}c.push(t)}),e}getParametersToStay(e,i){return e.filter(s=>i.phraseArray.includes(s)||i.regexArray.some(c=>c.test(s)))}getFilterValues(e){const i=/^([23]\d{3})-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]) - ([23]\d{3})-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/,s=/^\d{0,5} - \d{0,5}$/;return{phraseArray:Object.values(e).reduce((n,t)=>n.concat(t)).map(n=>Object.values(n).pop()),regexArray:[i,s]}}}class kv extends we{constructor(){super()}getTemplate(e,i=""){return S` <section
320      id="widget-${e.widgetId}"
321      class="h-widget-margin training-search"
322    >
323      <div class="grid__container">
324        <h2 class="c-header training-search__title">
325          ${i?`„${i}”`:this.translate("Upcoming trainings")}
326        </h2>
327        <div class="grid__row">
328          <div class="training-search__sidebar-col" data-content="sidebar"></div>
329          <div class="training-search__results-col" data-content="search-results"></div>
330        </div>
331      </div>
332    </section>`}}var Io=(u=>(u.Change="layout-change",u))(Io||{});const _e=10;/**
333 * @license
334 * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
335 * This code may only be used under the BSD style license found at
336 * http://polymer.github.io/LICENSE.txt
337 * The complete set of authors may be found at
338 * http://polymer.github.io/AUTHORS.txt
339 * The complete set of contributors may be found at
340 * http://polymer.github.io/CONTRIBUTORS.txt
341 * Code distributed by Google as part of the polymer project is also
342 * subject to an additional IP rights grant found at
343 * http://polymer.github.io/PATENTS.txt
344 */const jc=io(u=>e=>{let i;if(e instanceof zc||e instanceof sr)throw new Error("The `live` directive is not allowed on text or event bindings");if(e instanceof Wc)$c(e.strings),i=e.element.hasAttribute(e.name),e.value=i;else{const{element:s,name:c,strings:a}=e.committer;
344if($c(a),e instanceof Uc){if(i=s[c],i===u)return}else e instanceof oo&&(i=s.getAttribute(c));if(i===String(u))return}e.setValue(u)}),$c=u=>{if(u.length!==2||u[0]!==""||u[1]!=="")throw new Error("`live` bindings can only contain a single expression")},Ic=new WeakMap,Vv=io((u,e={})=>i=>{const s=i.element||i.committer&&i.committer.element;if(s instanceof HTMLElement&&!Ic.has(s))try{const c=new u(s,e);Ic.set(s,c)}catch(c){console.error("Błąd inicjalizacji komponentu legacy:",c)}}),P={hiddenFilter:"training-search-sidebar__group-item--hidden",groupItem:"training-search-sidebar__group-item",clearBtn:"training-search-sidebar__item-filter-clear",clearBtnVisible:"training-search-sidebar__item-filter-clear--visible",filterInput:"training-search-sidebar__item-filter-input",filterPhrase:"training-search-sidebar__item-filter-phrase",filterInfo:"training-search-sidebar__item-filter-info",filterInfoHidden:"training-search-sidebar__item-filter-info--hidden",moreFiltersBtn:"training-search-sidebar__group-more-filters-btn",moreFiltersBtnHidden:"training-search-sidebar__group-more-filters-btn--hidden",groupContent:"training-search-sidebar__group-form-content",btnTextContext:"c-btn__text-content",rangeSliderContainer:"training-search-sidebar__range-slider-container"},yr={fromSlider:"fromSlider",toSlider:"toSlider",maxPrice:"max-price",minPrice:"min-price"},nr={PRICE_SLIDER_COLOR:"#939393",PRICE_SLIDER_ACTIVE_COLOR:"#02a78e"};class Dv extends we{constructor(){super(),this.dateRange=new Date().toISOString().slice(0,10)+" - "+(new Date().getFullYear()+1)+"-12-31",this.rangeSliderStyle="",this.timeout=null,this.timeoutTime=700,this.registerEvents()}getTemplate(e,i=0,s=!1,c=null){return this.filtersCounters=c,S` <button
345        class="c-btn c-btn--text c-btn--icon-left c-btn--no-padding training-search-show-sidebar-btn"
346        @click="${this.emitLayoutChangeEvent.bind(this,!0)}"
347      >
348        ${ee(X.render({name:"ca-icon-filters",class:"ca-icon ca-icon-filters"}))}
349        ${this.translate("Filter trainings")}
350      </button>
351      <aside
352        class="training-search-sidebar ${s?"training-search-sidebar--mobile-visible":""}"
353      >
354        ${this.getHeaderBar("Filter")}
355        <div class="training-search-sidebar__content-wrapper">
356          ${i>0?S`
357                <button
358                  class="training-search-sidebar__clear-btn"
359                  @click="${this.emitClearFiltersEvent.bind(this)}"
360                >
361                  <span class="training-search-sidebar__clear-btn-label"
362                    >${this.translate("Clear all filters")} (${i})</span
363                  >
364                  ${ee(X.render({name:"interface-icon-close",class:"interface-icon interface-icon-interface_close"}))}
365                </button>
366                <div class="training-search-sidebar__clear-btn-mobile-wrapper">
367                  <button
368                    class="c-btn c-btn--text training-search-sidebar__clear-btn-mobile"
369                    @click="${this.emitClearFiltersEvent.bind(this)}"
370                  >
371                    ${this.translate("Clear all")}
372                  </button>
373                </div>
374              `:""}
375          <form class="training-search-sidebar__form">
376            ${e.map((a,n)=>this.renderGroup(a,n))}
377          </form>
378        </div>
379      </aside>`}registerEvents(){this.registerEvent(G.Change,this.filterChange$=new z),this.registerEvent(G.Clear,this.clearFiltersEvent$=new z),this.registerEvent(G.ClearGroup,this.clearFiltersGroupEvent$=new z),this.registerEvent(Io.Change,this.layoutChange$=new z)}emitLayoutChangeEvent(e){this.layoutChange$.next(e)}emitClearFiltersEvent(e){this.clearFiltersEvent$.next(null)}emitFilterChangeEvent(e,i,s){this.filterChange$.next({filterName:e,option:i,value:s})}emitClearFilterGroupEvent(e,i,s){const a=i.target.value;e==="netprice"&&!/^\d{0,5} - \d{0,5}$/.test(a)||this.clearFiltersGroupEvent$.next({filterName:e,option:a,value:s})}setGroupFormVisibilityOnMobile(e,i){const s="training-search-sidebar__group-form--visible-mobile",c=document.querySelector(`[data-training-group="${e}"] > .training-search-sidebar__group-form`);
379i?c.classList.add(s):c.classList.remove(s)}runDateWatcher(e,i){const s=setInterval(()=>{let c=this.getDateInput();c.value&&this.dateRange!==c.value&&(this.dateRange=c.value,this.emitClearFilterGroupEvent(i,e,!0),clearInterval(s))},1e3)}updateHiddenInput(){const e=document.querySelector("#netprice");e&&(e.value=this.getPriceRange(),e.dispatchEvent(new Event("input",{bubbles:!0})))}updateMinPrice(e){const i=e.target;if(!i)return;const{value:s}=i,c=Number(s);isNaN(c)||(clearTimeout(this.timeout),this.timeout=setTimeout(()=>{c>this.currentMaxPrice?(i.value=`${this.currentMaxPrice}`,this.currentMinPrice=this.currentMaxPrice):this.currentMinPrice=c,this.updateHiddenInput()},this.timeoutTime))}updateMaxPrice(e){const i=e.target;if(!i)return;const{value:s}=i,c=Number(s);isNaN(c)||(clearTimeout(this.timeout),this.timeout=setTimeout(()=>{c<this.currentMinPrice?(i.value=`${this.currentMinPrice}`,this.currentMaxPrice=this.currentMinPrice):this.currentMaxPrice=c,this.updateHiddenInput()},this.timeoutTime))}controlMinPriceSlider(e){const i=e.target,s=i.closest(`.${P.rangeSliderContainer}`),c=s==null?void 0:s.querySelector(`#${yr.toSlider}`),a=s==null?void 0:s.querySelector(`#${yr.minPrice}`);if(!i||!c)return;let n=parseInt(i.value,10),t=parseInt(c.value,10);n>t&&(n=t,i.value=n.toString()),this.currentMinPrice=n,a.value=n.toString(),this.fillPriceSlider(),clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.updateHiddenInput()},this.timeoutTime)}controlMaxPriceSlider(e){const i=e.target,s=i.closest(`.${P.rangeSliderContainer}`),c=s==null?void 0:s.querySelector(`#${yr.fromSlider}`),a=s==null?void 0:s.querySelector(`#${yr.maxPrice}`);if(!i||!c)return;let n=parseInt(c.value,10),t=parseInt(i.value,10);t<n&&(t=n,i.value=t.toString()),this.currentMaxPrice=t,a.value=t.toString(),this.fillPriceSlider(),clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.updateHiddenInput()},this.timeoutTime)}fillPriceSlider(){const e=this.maxPrice-this.minPrice,i=this.currentMinPrice-this.minPrice,s=this.currentMaxPrice-this.minPrice,c=document.querySelector(`#${yr.toSlider}`),a=i/e,n=s/e;this.rangeSliderStyle=`linear-gradient(to right,
380      ${nr.PRICE_SLIDER_COLOR} 0%,
381      ${nr.PRICE_SLIDER_COLOR} ${Math.max(0,a*100-2)}%,
382      ${nr.PRICE_SLIDER_ACTIVE_COLOR} ${Math.max(0,a*100-2)}%,
383      ${nr.PRICE_SLIDER_ACTIVE_COLOR} ${Math.min(100,n*100+2)}%,
384      ${nr.PRICE_SLIDER_COLOR} ${Math.min(100,n*100+2)}%,
385      ${nr.PRICE_SLIDER_COLOR} 100%)`,c&&(c.style.background=this.rangeSliderStyle)}getParsedPrice(e,i){const s=parseInt(e.value,10),c=parseInt(i.value,10);return[s,c]}getPriceRange(){return`${this.currentMinPrice??this.minPrice} - ${this.currentMaxPrice??this.maxPrice}`}getDateInput(){return document.querySelector("#date-range")}renderGroup(e,i){var n;const s=e.filters.filter(t=>t.active),c=s.length,a=c>0?e.id==="netprice"?this.formatPriceRange(s[0]):s.map(t=>t.name).join(", "):"";return S` <div class="training-search-sidebar__group" data-training-group="${e.id}">
386      <div
387        class="training-search-sidebar__group-title-wrapper"
388        @click="${()=>this.setGroupFormVisibilityOnMobile(e.id,!0)}"
389      >
390        <span class="training-search-sidebar__group-title">
391          ${this.translate(`training_${e.id}_label`)}
392        </span>
393        ${c>0?S` <div class="training-search-sidebar__group-subtitle">
394          ${e.id!=="netprice"?S`<span class="training-search-sidebar__group-subtitle-counter">
395                ${c}
396              </span>`:""}
397            ${a}
398          </div>`:""}
399      </div>
400      <span @click="${()=>this.setGroupFormVisibilityOnMobile(e.id,!0)}">
401        ${ee(X.render({name:"interface-icon-arrow-small--right",class:"interface-icon interface-icon-interface_arrow-small--right training-search-sidebar__group-right-arrow"}))}
402      </span>
403      <div class="form__fieldset form__fieldset--default training-search-sidebar__group-form">
404        ${this.getHeaderBar(this.capitalizeFirstLetter(e.id),!0,e.id)}
405        <div
406          class="c-checkbox form__control-wrap form__control-check training-search-sidebar__group-form-content"
407        >
408          ${e.filterable?this.getFilterFinder(e):""}
409          <div class="form__check-wrap form__helper">
410            <div class="form__tooltip-trigger">
411              <ul class="training-search-sidebar__group-items">
412                ${e.filters.slice(0,_e).map((t,r)=>this.getFilter(e,i,t,r))}
413                ${e.filters.slice(_e).map((t,r)=>this.getFilter(e,i,t,r+_e,P.hiddenFilter))}
414              </ul>
415              ${(n=e.showMoreButton)!=null&&n.enabled?this.generateShowMoreButton(e):""}
416            </div>
417          </div>
418        </div>
419        <div class="training-search-sidebar__group-form-apply-btn-wrapper">
420          <button
421            class="c-btn training-search-sidebar__group-form-apply-btn"
422            @click="${t=>{t.preventDefault(),this.emitLayoutChangeEvent(!1)}}"
423          >
424            ${this.translate("Apply")}
425          </button>
426        </div>
427      </div>
428    </div>`}getFilter(e,i,s,c,a=""){switch(a=s.hidden?P.hiddenFilter:a,e.id){case"netprice":const{minPrice:n,maxPrice:t}=e,{currentMinPrice:r,currentMaxPrice:o}=s;return this.minPrice=n,this.maxPrice=t,this.currentMinPrice=r??n,this.currentMaxPrice=o??t,this.fillPriceSlider(),S`
429      <div class="training-search-sidebar__range-slider-container">
430        <div class="training-search-sidebar__price-input-container">
431          <div class="c-textfield training-search-sidebar__price-input-wrapper">
432            <input
433              type="number"
434              id="min-price"
435              placeholder="${this.translate("From")}"
436              class="form__control training-search-sidebar__price-input"
437              .min="${n}"
438              .max=${t}
439              .value="${this.currentMinPrice}"
440              @input="${f=>this.updateMinPrice(f)}"
441            />
442            <span class="training-search-sidebar__price-input-currency">
443              ${this.translate(D.trainingsCurrencyText)}
444            </span>
445          </div>
446          <div class="c-textfield training-search-sidebar__price-input-wrapper">
447            <input
448              type="number"
449              id="max-price"
450              placeholder="${this.translate("To")}"
451              class="form__control training-search-sidebar__price-input"
452              .min="${n}"
453              .max=${t}
454              .value="${this.currentMaxPrice}"
455              @input="${f=>this.updateMaxPrice(f)}"
456            />
457            <span class="training-search-sidebar__price-input-currency">
458              ${this.translate(D.trainingsCurrencyText)}
459            </span>
460          </div>
461        </div>
462        <div class="training-search-sidebar__range-slider-control">
463          <input
464            id="fromSlider"
465            class="training-search-sidebar__range-slider-input training-search-sidebar__range-slider-input--min"
466            type="range"
467            .value="${jc(this.currentMinPrice)}"
468            min="${n}"
469            max=${t}
470            @input="${f=>this.controlMinPriceSlider(f)}"
471          />
472          <input
473            id="toSlider"
474            class="training-search-sidebar__range-slider-input training-search-sidebar__range-slider-input--max"
475            .style="background: ${this.rangeSliderStyle};"
476            type="range"
477            .value="${jc(this.currentMaxPrice)}"
478            min="${n}"
479            max="${t}"
480            @input="${f=>this.controlMaxPriceSlider(f)}"
481          />
482        </div>
483      </div>
484      <input
485        type="hidden"
486        name="${e.id}"
487        style="margin-top: 24px;"
488        .value="${this.getPriceRange()}"
489        id="netprice"
490        @input="${f=>this.emitClearFilterGroupEvent(e.id,f,!0)}"
491      />
492    `;case"date":return S`<input
493      type="text"
494      id="date-range"
495      class="form__control training-search-sidebar__date-range"
496      name="${e.id}"
497      value="${this.dateRange}"
498      data-js="date_range_holder"
499      readonly
500      ._init="${Vv(Kf)}"
501      @click="${f=>this.runDateWatcher(f,e.id)}"
502    />`;default:const l=this.filtersCounters&&this.filtersCounters[e.id]?this.filtersCounters[e.id][s.name]??0:0;return S` <li class="training-search-sidebar__group-item ${a}">
503      <label
504        class="form__label form__label--choice ${l?"":"form__label--disabled"}"
505        for="checkbox_${i}_${c}"
506      >
507        <input
508          id="checkbox_${i}_${c}"
509          type="checkbox"
510          name="${e.id}[]"
511          value="${s.name}"
512          .checked=${s.active}
513          .disabled=${!l}
514          class="form__control form__control--check"
515          @click="${f=>this.emitFilterChangeEvent(e.id,s.name,f.target.checked)}"
516        />
517        <span class="form__checkmark--label training-search-sidebar__checkbox-label">
518          ${s.name==="Gwarantowane"?this.translate("Minimum submissions reached"):this.translate(s.name)}
519        </span>
520        <span class="training-search-sidebar__group-item-counter">
521            (${l})
522        </span>
523        <span class="form__checkmark form__checkmark--check form__checkmark--default"></span>
524      </label>
525    </li>`}}getHeaderBar(e,i=!1,s=null){return S`
526      <div class="training-search-sidebar__header-bar">
527        <span
528          class="interface-icon ${i?"interface-icon-interface_arrow--left":"interface-icon-interface_close"} training-search-sidebar__header-mobile-icon"
529          @click="${()=>{i?this.setGroupFormVisibilityOnMobile(s,!1):this.emitLayoutChangeEvent(!1)}}"
530        >
531        </span>
532        <span class="training-search-sidebar__title"> ${this.translate(e)} </span>
533      </div>
534    `}generateShowMoreButton(e){if(e.showMoreButton.enabled){const i=e.showMoreButton.showMoreAction?this.translate("Show more"):this.translate("Show less");return S` <button
535        class="c-btn c-btn--text c-btn--no-padding training-search-sidebar__group-more-filters-btn"
536        @click="${s=>this.showMoreFiltersBtnHandler(s,e)}"
537      >
538        <span class="${P.btnTextContext}">${i} (${e.filters.slice(_e).length})</span>
539      </button>`}}showMoreFiltersBtnHandler(e,i){e.preventDefault();const s=e.target,c=s.nodeName==="SPAN"?s.parentElement:s,a=c.parentElement.parentElement.querySelector(".training-search-sidebar__group-items"),n=i.filters.slice(_e).length;i.showMoreButton.showMoreAction?this.showMore(a,c,n):this.showLess(a,c,n),i.showMoreButton.showMoreAction=!i.showMoreButton.showMoreAction}showMore(e,i,s){e.querySelectorAll(`.${P.hiddenFilter}`).forEach(a=>{a.classList.remove(P.hiddenFilter)}),i.querySelector(`.${P.btnTextContext}`).textContent=`${this.translate("Show less")} (${s})`}showLess(e,i,s){[...e.querySelectorAll(`.${P.groupItem}`)].slice(_e).forEach(a=>a.classList.add(P.hiddenFilter)),i.querySelector(`.${P.btnTextContext}`).textContent=`${this.translate("Show more")} (${s})`}getFilterFinder(e){return S`
540      <div class="c-textfield form__helper training-search-sidebar__item-filter">
541        ${ee(X.render({name:"interface-icon-search",class:"interface-icon interface-icon-interface_search training-search-sidebar__item-filter-icon training-search-sidebar__item-filter-icon--left"}))}
542        <button
543          type="button"
544          class="training-search-sidebar__item-filter-clear training-search-sidebar__item-filter-clear--right"
545          @click=${i=>this.clearGroupFilterInput(i,e)}
546        >
547          ${ee(X.render({name:"interface-icon-close",class:"interface-icon interface-icon-interface_close"}))}
548        </button>
549          <input
550            type="text"
551            class="form__control training-search-sidebar__item-filter-input"
552            placeholder="${this.translate("Search filters")}..."
553            @input=${i=>this.filterGroupFilters(i.target,e)}
554          />
555        <p
556          class="training-search-sidebar__item-filter-info training-search-sidebar__item-filter-info--hidden"
557        >
558          ${this.translate("No filters for search phrase")} „<span
559            class="training-search-sidebar__item-filter-phrase"
560          ></span
561          >"
562        </p>
563      </div>
564    `}filterGroupFilters(e,i){const s=(e.value||"").trim(),c=e.closest(`.${P.groupContent}`),a=c.querySelectorAll(`.${P.groupItem}`),n=s.toLocaleLowerCase(),t=i.filters.map((l,f)=>l.name.toLocaleLowerCase().includes(n)?(i.filters[f].hidden=!1,f):(i.filters[f].hidden=!0,-1)).filter(l=>l!==-1),r=t.length;a.forEach((l,f)=>{l.classList.toggle(P.hiddenFilter,!t.includes(f))}),this.showFilterMessage(r,c,s),i.filter={value:s};const o=c.querySelector(`.${P.moreFiltersBtn}`);if(o.classList.toggle(P.moreFiltersBtnHidden,!!s),!s){const l=i.filters.slice(_e).length;i.showMoreButton.showMoreAction?this.showLess(c,o,l):this.showMore(c,o,l)}this.changeClearFilterBtnVisibility(c,s)}showFilterMessage(e,i,s){i.querySelector(`.${P.filterInfo}`).classList.toggle(P.filterInfoHidden,!!e);const a=s.replace(/[<>\/\?"=&\;#]/g,"");i.querySelector(`.${P.filterPhrase}`).textContent=a}changeClearFilterBtnVisibility(e,i){const s=e.querySelector(`.${P.clearBtn}`);s&&(i.length?s.classList.add(P.clearBtnVisible):s.classList.remove(P.clearBtnVisible))}clearGroupFilterInput(e,i){const c=e.target.closest(`.${P.groupContent}`).querySelector(`.${P.filterInput}`);c.value="",c.dispatchEvent(new Event("input",{bubbles:!0}))}capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}formatPriceRange(e){const i=this.translate(D.trainingsCurrencyText),s=e.currentMinPrice??0,c=e.currentMaxPrice??0;return`${s}${i} - ${c}${i}`}}class Wv extends Se{constructor(){super({componentName:"training-search-sidebar"}),this.mobileSidebarVisibility=!1,this.templateRef=new Dv,this.searchService=ye.getInstance(),this.filterableGroups=["technology"]}renderWidget(e){this.groups=this.decorateWithFilterableAttributes(this.convertFiltersToSidebarGroups(e));const i=this.getActiveFiltersCounter();this.renderContent(this.templateRef.getTemplate(this.groups,i,this.mobileSidebarVisibility,this.currentFiltersCounters)),this.initSubscriptions()}initSubscriptions(){this.templateRef.events[G.Change].subscribe(e=>{const i=`${e.filterName}[]`;e.value?this.searchService.appendFilterParam(i,e.option):this.searchService.removeFilterParamWithValue(i,e.option)}),this.templateRef.events[G.Clear].subscribe(e=>{this.searchService.clearURLSearchParams()}),this.templateRef.events[G.ClearGroup].subscribe(e=>{const i=`${e.filterName}[]`,s=`${e.option}`;this.searchService.removeSearchParam("page"),this.searchService.setSearchParam(i,s)}),this.templateRef.events[Io.Change].subscribe(e=>{const i=this.getActiveFiltersCounter();this.mobileSidebarVisibility=e,this.setBodyOverlayState(!this.mobileSidebarVisibility),this.renderContent(this.templateRef.getTemplate(this.groups,i,this.mobileSidebarVisibility,this.currentFiltersCounters))}),this.searchService.filtersCounters$.subscribe(e=>{const i=this.getActiveFiltersCounter();this.currentFiltersCounters=e,this.renderContent(this.templateRef.getTemplate(this.groups,i,this.mobileSidebarVisibility,this.currentFiltersCounters))}),this.searchService.searchParams$.subscribe(e=>{const i=this.getActiveFiltersCounter();this.groups.forEach(s=>
564{s.filters.forEach(c=>{var a,n;if(c.name==="netprice"){const t=e.get("netprice[]");if(c.active=t!==null,!t){c.currentMinPrice=s.minPrice,c.currentMaxPrice=s.maxPrice;return}c.currentMinPrice=(a=this.extractPrices(t))==null?void 0:a.minPrice,c.currentMaxPrice=(n=this.extractPrices(t))==null?void 0:n.maxPrice;return}c.active=this.shouldFilterBeActive(e,s.id,c.name)})}),this.renderContent(this.templateRef.getTemplate(this.groups,i,this.mobileSidebarVisibility,this.currentFiltersCounters))})}setBodyOverlayState(e){e?document.body.classList.remove("overlay-is-visible"):document.body.classList.add("overlay-is-visible")}shouldFilterBeActive(e,i,s){return Array.from(e.entries()).some(([c,a])=>c.slice(0,-2)===i&&a===s)}getActiveFiltersCounter(){return this.searchService.getActiveFiltersCounter()}convertFiltersToSidebarGroups(e){try{const i=JSON.parse(e);return Object.entries(i).map(c=>{var r,o;const a=c[0];if(a==="netprice"){const l=Object.values(c)[1],f=Math.floor(((r=l==null?void 0:l[0])==null?void 0:r.min_price)??0),h=Math.floor(((o=l==null?void 0:l[0])==null?void 0:o.max_price)??2e4);return{id:a,filters:[{name:a,active:!1}],minPrice:f,maxPrice:h}}const n=Object.values(c[1]).map(l=>({name:Object.values(l)[0],active:!1})),t=n.length>_e;return{id:a,filters:n,showMoreButton:{enabled:t,showMoreAction:t}}})}catch{return null}}extractPrices(e){const i=/^\d{0,5} - \d{0,5}$/;if(!e.match(i))return null;const[c,a]=e.split(" - ").map(Number);return{minPrice:c,maxPrice:a}}decorateWithFilterableAttributes(e){return e==null?null:e.map(i=>this.filterableGroups.includes(i.id)?{...i,filterable:!0}:i)}}class Mc{static setInputConfig(e){return{pagesMinRange:+e.getAttribute("min"),pagesMaxRange:+e.getAttribute("max"),pathPagination:e.getAttribute("path")||"",pathAjax:e.getAttribute("path-ajax")||!1,pathSlash:e.getAttribute("path-slash")||!1,pathParams:e.getAttribute("path-params")||!1,pathAnhor:e.getAttribute("path-anhor")||!1}}static buildPageUrl(e,i){if(!e&&e!==0)return;const{pagesMinRange:s,pagesMaxRange:c,pathPagination:a,pathAjax:n,pathSlash:t,pathParams:r,pathAnhor:o}=i,l=t==="true"?"/":"",f=r||"",h=o||"";return e<s&&(e=s),e>c&&(e=c),n==="true"?e:`${a}${e}${l}${f}${h}`}static goToPage(e){window.location.href=e}}class Uv{constructor(e,i){this.container=e,this.onPageChange=i,this.isProcessing=!1,this.initEvents()}setProcessing(e){if(this.isProcessing=e,gi.setOverlayOnList)gi.setOverlayOnList(this.container,e);else{const i=this.container.querySelector(".c-pagination__list");i&&(e?i.classList.add("c-pagination__list--overlay"):i.classList.remove("c-pagination__list--overlay"))}}initEvents(){this.container&&(this.container.addEventListener("click",e=>{const i=e.target.closest(".c-pagination__link");if(i&&!this.isProcessing){e.preventDefault();const s=i.dataset.page;s&&!i.classList.contains("c-pagination__link--active")&&this.triggerChange(parseInt(s,10))}}),this.container.addEventListener("change",e=>{e.target.matches(".c-pagination__input")&&!this.isProcessing&&this.handleInputChange(e.target)}),this.container.addEventListener("keypress",e=>{e.target.matches(".c-pagination__input")&&e.key==="Enter"&&e.target.blur()}))}handleInputChange(e){const i=Zf(e),s=Xf(e.value,i),c=parseInt(s,10);isNaN(c)||this.triggerChange(c)}triggerChange(e){this.onPageChange&&(this.setProcessing(!0),this.onPageChange(e))}}class Bv extends we{constructor(){super(),this.registerEvents()}getTemplate(e,i=null,s=k.Tiles,c=0,a=!1,n=0,t=0){return S`
565      ${this.renderChips(i,c)}
566      <div
567        class="training-search-results ${a?"training-search-results--loading":""}"
568      >
569        ${a?S`<div class="h-spinner h-spinner--show training-search-results__spinner"></div>`:""}
570        ${e.length?S` <div class="training-top-bar">
571                ${this.renderLayoutSelector(s)}
572                <ul
573                  class="training-list__feature-list ${s===k.List?"training-list__only":""}"
574                >
575                  <li>${this.translate("Place")}</li>
576                  <li>${this.translate("Duration")}</li>
577                  <li>${this.translate("Hours")}</li>
578                  <li>${this.translate("Start")}</li>
579                </ul>
580              </div>
581              <ul
582                class="training ${s===k.Tiles?"training-tiles":"training-list"}"
583                data-content="trainings"
584              ></ul>
585              ${n>0&&t>1?this.renderPagination(n,t):""}`:S`${!a&&n>0?this.getNoTrainingsFoundMessage():""}`}
586      </div>
587    `}getNoTrainingsFoundMessage(){const i={...document.body.querySelector("[data-component=training-search-app]").dataset};return S` <div class="training-search__no-trainings-message">
588      <p>${this.translate(D.noTrainingsAvailableMessage)}</p>
589      <p>
590        ${this.translate(D.noTrainingsContactEmail)}:
591        <a class="c-btn--text-emerald" href="mailto:${i.contactEmail}"
592          >${i.contactEmail}</a
593        >
594      </p>
595    </div>`}renderPagination(e,i){const s=gi.render(window.location.href,e,i,ro);
595return S`<div class="trainings-paginator" .innerHTML=${s}></div>`}renderLayoutSelector(e=k.Tiles){return S`
596        <div class="training__buttons-wrapper">
597            <button
598                @click="${()=>this.emitLayoutChangeEvent(k.Tiles)}"
599                class="training__tiles-button ${e===k.Tiles?"training__chosen-layout":""}"
600                : ''}"
601            type="button"
602            title="Widok kafelków"
603            ></button>
604            <button
605                @click="${()=>this.emitLayoutChangeEvent(k.List)}"
606                class="training__list-button ${e===k.List?"training__chosen-layout":""}"
607                type="button"
608                title="Widok listy"
609            ></button>
610        </div>
611    `}renderChips(e,i=0){if(e){const s=Object.entries(e);return S` ${s.length?S` <div class="training-chips">
612            <div class="training-chips__entries">
613              <div class="training-chips__item" @click="${this.emitClearFiltersEvent.bind(this)}">
614                <span class="training-chips__item-label"
615                  >${this.translate("Clear all filters")} (${i})</span
616                >
617                ${ee(X.render({name:"ca-icon-podcast-close",class:"ca-icon ca-icon-podcast-close training-chips__close-icon"}))}
618              </div>
619              ${s.map(([c,a])=>S`
620                  <span class="training-chips__name">
621                    ${this.translate(`training_${c}_label`)}
622                  </span>
623                  ${a.map(n=>S`
624                      <div
625                        class="training-chips__item"
626                        @click="${()=>this.emitFilterChangeEvent(c,n.label)}"
627                      >
628                        <span class="training-chips__item-label">
629                          ${n.label==="Gwarantowane"?this.translate("Minimum submissions reached"):this.translate(n.label)}</span
630                        >
631                        ${ee(X.render({name:"ca-icon-podcast-close",class:"ca-icon ca-icon-podcast-close training-chips__close-icon"}))}
632                      </div>
633                    `)}
634                `)}
635            </div>
636          </div>`:""}`}return S``}registerEvents(){this.registerEvent(G.Change,this.filterChange$=new z),this.registerEvent(G.Clear,this.clearFiltersEvent$=new z),this.registerEvent($o.Change,this.layoutChange$=new z)}emitClearFiltersEvent(e){this.clearFiltersEvent$.next(null)}emitFilterChangeEvent(e,i){this.filterChange$.next({filterName:e,option:e==="netprice"?this.getCleanPriceFilter(i):i,value:"0"})}emitLayoutChangeEvent(e){this.layoutChange$.next(e)}getCleanPriceFilter(e){const i=e.match(/(\d+)[^\d]+(\d+)/);return`${i[1]} - ${i[2]}`}}const zv='[data-js-clipboard-toggle="1"]',Hv='[data-js-register-link="1"]',Gv="[data-js-tooltip]",Jv="training__star--active",Yv="ca-icon-favourite-filled",Kv="ca-icon-favourite-border";function Mo(u=document){if(!u)return;const e=oe.getInstance();u.querySelectorAll(zv).forEach(a=>{if(a.dataset.jsHydrated==="1")return;a.dataset.jsHydrated="1";const n=Number(a.dataset.jsTrainingId),t=a.dataset.jsTrainingDate||"",r=a.dataset.jsTrainingName||"",o=l=>{const f=a.querySelector("i");a.classList.toggle(Jv,l),f&&(f.classList.toggle(Yv,l),f.classList.toggle(Kv,!l))};o(e.isTrainingInClipboard(n,t)),a.addEventListener("click",()=>{e.isTrainingInClipboard(n,t)?(e.removeFromClipboard(n,t,r),o(!1)):(e.addToClipboard(n,t,r),o(!0))})}),u.querySelectorAll(Hv).forEach(a=>{if(a.dataset.jsHydrated==="1")return;a.dataset.jsHydrated="1";const n=a.closest(".training__item-wrapper");if(!n||!n.dataset.js)return;let t=null;try{const r=JSON.parse(n.dataset.js);t=r&&r.training?r.training:null}catch{t=null}t&&a.addEventListener("click",()=>{const r={name:t.Nazwa,startDate:t.DataRozpoczecia,type:t.Forma,location:t.Lokalizacja,time:t.Czas,duration:t.LiczbaGodzin,startTime:t.GodzinaRozpoczecia,netto:t.CenaNetto,brutto:t.CenaBrutto};localStorage.setItem("trainingObj",JSON.stringify(r))})}),u.querySelectorAll(Gv).forEach(a=>{a.dataset.jsHydrated!=="1"&&(a.dataset.jsHydrated="1",a.addEventListener("mouseover",()=>{const n=a.getAttribute("data-js-tooltip")||"",t=document.createElement("div");t.setAttribute("class","training__tooltip"),t.innerHTML=n,a.appendChild(t),a.addEventListener("mouseleave",()=>{t.remove()},{once:!0})}))})}class Qv extends Se{constructor(){super({componentName:"training-search-results"}),this.templateRef=new Bv,this.searchService=ye.getInstance(),this.apiService=se.getInstance(),this.trainingsListLayout=k.Tiles,this.currentTrainings=[],this.currentPage=1}renderWidget(e,i=null){if(this.nodeId=e,i){const n=i.querySelector('[data-component="training-search-results"]');if(n){this.hostView=n,this.applyInitialStateFromSsr(i),Mo(this.hostView),this.bindSsrChipEvents(),this.bindSsrLayoutEvents(),this.initPaginatorEvents(),this.initSubscriptions(!0);return}}const s=this.searchService.getCurrentUrlSearchParams(),c=this.convertSearchParamsIntoChipsEntries(s),a=this.searchService.getActiveFiltersCounter();this.renderContent(this.templateRef.getTemplate(this.currentTrainings,c,this.trainingsListLayout,a,!0)),this.initSubscriptions()}applyInitialStateFromSsr(e){const i=e.closest('[data-component="training-search-app"]'),s=i?i.dataset.initialState:"";if(s)try{const c=JSON.parse(s);this.currentTrainings=Array.isArray(c.trainings)?c.trainings:[],this.currentPage=Number(c.page)||1,this.totalPages=Number(c.totalPages)||0,c.filtersCounters&&this.searchService.updateCurrentFiltersCounters(c.filtersCounters)}catch{}}bindSsrChipEvents(){const e=this.hostView.querySelector('[data-js-clear-all-filters="1"]');e&&e.addEventListener("click",()=>{this.searchService.clearURLSearchParams()}),this.hostView.querySelectorAll("[data-js-chip-name]").forEach(s=>{s.addEventListener("click",()=>{const c=s.dataset.jsChipName||"",a=s.dataset.jsChipValue||"",n=c==="netprice"?this.getCleanPriceFilter(a):a;this.searchService.removeFilterParamWithValue(`${c}[]`,n)})})}bindSsrLayoutEvents(){this.hostView.querySelectorAll("[data-js-layout]").forEach(i=>
636{i.addEventListener("click",()=>{const s=i.dataset.jsLayout;this.trainingsListLayout=s,this.rerenderTrainings()})})}getCleanPriceFilter(e){const i=e.match(/(\d+)[^\d]+(\d+)/);return i?`${i[1]} - ${i[2]}`:e}getTrainingsObservable(e=!1){let i,s;return(e?this.searchService.searchParams$.pipe(V.skip(1)):this.searchService.searchParams$).pipe(V.tap(a=>{i=this.convertSearchParamsIntoChipsEntries(a),s=this.searchService.getActiveFiltersCounter(),this.renderContent(this.templateRef.getTemplate(this.currentTrainings,i,this.trainingsListLayout,s,!0))}),V.debounceTime(200),V.switchMap(a=>this.fetchTrainings(a)),V.tap(a=>{const{totalPages:n,page:t,results:r,filtersCounters:o}=a;this.currentTrainings=r,this.searchService.updateCurrentFiltersCounters(o),this.currentPage=t,this.totalPages=n,this.renderContent(this.templateRef.getTemplate(this.currentTrainings,i,this.trainingsListLayout,s,!1,this.currentPage,this.totalPages)),this.mountTrainings(this.currentTrainings),this.initPaginatorEvents()}))}initPaginatorEvents(){const e=this.getPaginatorContainer();e&&(this.initPaginationChangeEvents(e),this.initPaginationClickEvents(e))}changePage(e){this.currentPage=e,this.searchService.setSearchParam("page",this.currentPage.toString())}initPaginationClickEvents(e){this.paginationHandler=new Uv(e,i=>{this.changePage(i)})}initPaginationChangeEvents(e){gi.setupChangeEvents(e,i=>{const s=+i.target.value,c=Mc.setInputConfig(i.target),a=Mc.buildPageUrl(s,c);this.changePage(a)})}initSubscriptions(e=!1){this.getTrainingsObservable(e).subscribe(),this.templateRef.events[G.Clear].subscribe(s=>{this.searchService.clearURLSearchParams()}),this.templateRef.events[G.Change].subscribe(s=>{this.searchService.removeFilterParamWithValue(`${s.filterName}[]`,s.option)}),this.templateRef.events[$o.Change].pipe(V.tap(s=>{this.trainingsListLayout=s,this.rerenderTrainings()})).subscribe(),this.forceTilesLayoutOnSmallerDevices()}rerenderTrainings(){const e=this.searchService.getCurrentUrlSearchParams(),i=this.convertSearchParamsIntoChipsEntries(e),s=this.searchService.getActiveFiltersCounter();this.renderContent(this.templateRef.getTemplate(this.currentTrainings,i,this.trainingsListLayout,s,!1,this.currentPage,this.totalPages)),this.mountTrainings(this.currentTrainings)}mountTrainings(e){const i=this.getTrainingsListHost(),s=document.body.querySelector("[data-component=training-search-app]");this.widgetInputData={...s.dataset},i&&(i.innerHTML="",e.forEach(c=>{const a=new Ii;a.renderWidget(c,"",this.widgetInputData.registerFormLink,this.trainingsListLayout),i.appendChild(a.hostView)}))}forceTilesLayoutOnSmallerDevices(){Ll(window,"resize").pipe(V.debounceTime(500)).subscribe(()=>{window.innerWidth<1200&&(this.trainingsListLayout=k.Tiles,this.rerenderTrainings())})}getPaginatorContainer(){return this.hostView.querySelector(".trainings-paginator")}getTrainingsListHost(){return this.hostView.querySelector('[data-content="trainings"]')}convertSearchParamsIntoChipsEntries(e){let i={};for(const s of e.entries()){if(to.includes(s[0]))continue;const c=s[0].slice(0,-2);let a=s[1];i[c]||(i[c]=[]),c==="netprice"&&(a=this.formatPriceRange(a,this.translate(D.trainingsCurrencyText))),i[c].push({label:a,value:a})}return i}fetchTrainings(e){return this.apiService.getTrainingsList(this.nodeId,e)}formatPriceRange(e,i){if(!/^\d{0,5} - \d{0,5}$/.test(e))return"";const[c,a]=e.split(" - ");return`${c}${i} - ${a}${i}`}}class Zv extends Se{constructor(){super({componentName:"training-search-search-template"}),this.templateRef=new kv,this.searchService=ye.getInstance()}renderWidget(e=document.body){this.widgetInputData={...e.dataset};const i=e.dataset.ssr==="1";let s=null;i&&(s=e.querySelector('[data-component="training-search-search-template"]'),s&&(this.hostView=s)),s||e.appendChild(this.hostView),this.searchService.loadInitialQueryParams(JSON.parse(this.widgetInputData.defaultFiltersValues),JSON.parse(this.widgetInputData.filters));const c=this.getCurrentPhrase();s||this.renderContent(this.templateRef.getTemplate(this.widgetInputData,c)),this.mountSidebar(),this.mountSearchResults(!!s),this.searchService.registerSubmitToolbarPhraseEvent(),this.initSubscriptions(!!s)}updateSsrTitleText(e){const i=this.hostView.querySelector(".training-search__title");i&&(i.textContent=e?`„${e}”`:this.translate("Upcoming trainings"))}initSubscriptions(e=!1){let i=!0;this.searchService.searchParams$.subscribe(s=>{if(e&&i){i=!1;return}i=!1;const c=s.get("phrase");if(e){this.updateSsrTitleText(c);return}this.renderContent(this.templateRef.getTemplate(this.widgetInputData,c))})}getCurrentPhrase(){return this.searchService.getCurrentUrlSearchParams().get("phrase")}mountSidebar(){const e=new Wv;e.renderWidget(this.widgetInputData.filters);const i=this.hostView.querySelector('[data-content="sidebar"]');i&&i.appendChild(e.hostView)}mountSearchResults(e=!1){const i=new Qv;i.renderWidget(this.widgetInputData.nodeId,e?this.hostView:null),e||this.hostView.querySelector('[data-content="search-results"]').appendChild(i.hostView)}}class Xv extends we{constructor(){super()}getTemplate(e,i=!1){return S` <section
637      id="widget-${e.widgetId}"
638      class="h-widget-margin c-slider training-search"
639      data-js-config='{
640            "grabCursor": "true",
641            "slidesPerView": "3",
642            "watchSlidesVisibility": true,
643            "breakpoints": {
644                "768": {
645                    "slidesPerView": "1"
646                },
647                "1199": {
648                    "slidesPerView": "2"
649                }
650            }
651        }'
652    >
653      <div class="grid__container">
654        <h2 class="c-slider__title">${this.translate("Upcoming trainings")}</h2>
655        ${i?S`<div class="h-spinner h-spinner--show"></div>`:e.trainings.length?S` <div class="c-slider__slider-container" data-js="slider-container">
656                <ul class="training training-tiles swiper-wrapper" data-content="trainings"></ul>
657                <div class="c-slider__arrows">
658                  <i
659                    class="c-slider__arrow c-slider__arrow--emerald c-slider__arrow--prev"
660                    data-js="prev"
661                  ></i>
662                  <i
663                    class="c-slider__arrow c-slider__arrow--emerald c-slider__arrow--next"
664                    data-js="next"
665                  ></i>
666                </div>
667              </div>`:S`<p>
668                ${this.translate(D.noTrainingsAvailableMessage)}
669                ${this.translate(D.noTrainingsContactEmail)}:
670                <a class="c-btn--text-emerald" href="mailto:${e.contactEmail}"
671                  >${e.contactEmail}</a
672                >
673              </p>`}
674      </div>
675    </section>`}}class e_ extends Se{constructor(){super({componentName:"training-search-slider-template"}),this.templateRef=new Xv,this.apiService=se.getInstance()}renderWidget(e=document.body){if(this.widgetInputData={...e.dataset},e.dataset.ssr==="1"){const i=e.querySelector('[data-component="training-search-slider-template"]');if(i){this.hostView=i,Mo(this.hostView),this.hostView.querySelector('[data-content="trainings"] > *')&&this.initializeSlider();return}}
675e.appendChild(this.hostView),this.loadTrainingList()}loadTrainingList(){this.renderContent(this.templateRef.getTemplate(this.widgetInputData,!0)),this.fetchTrainings().pipe(V.map(e=>e?e.results:[])).subscribe(e=>{this.renderContent(this.templateRef.getTemplate({...this.widgetInputData,trainings:e},!1)),this.mountTrainings(e),e.length&&this.initializeSlider()})}mountTrainings(e){const i=this.hostView.querySelector('[data-content="trainings"]');e.forEach(s=>{const c=new Ii("swiper-slide");c.renderWidget(s,"",this.widgetInputData.registerFormLink),i.appendChild(c.hostView)})}initializeSlider(){const e=this.hostView.querySelector(`#widget-${this.widgetInputData.widgetId}`);e&&new th(e)}fetchTrainings(){return this.apiService.getTrainingsListAllCurrent(this.widgetInputData.nodeId)}}var qo=(u=>(u.TabChange="tabChange",u))(qo||{}),A=(u=>(u.Default="",u.All="Wszystkie",u.Stationary="Stacjonarne",u.Remote="Zdalne",u.ELearning="e-Learning",u))(A||{});class t_ extends we{constructor(){super(),this.form$=new z,this.registerEvents()}getTemplate(e,i="",s=!1){return S`
676      <section id="widget-${e.widgetId}" class="h-widget-margin training-search">
677        <article class="training-search__entries training training-search--tabs">
678          <div class="grid__container">
679            <h2 class="c-header">${this.translate("Upcoming trainings")}</h2>
680            ${this.renderTabs(i,s)}
681            ${s?S`
682                  <div class="training-search__spinner">
683                    <div class="h-spinner h-spinner--show"></div>
684                  </div>
685                `:""}
686            ${e.trainings&&e.trainings.length?S`<ul class="training-list__feature-list">
687                    <li>Grupa docelowa</li>
688                    <li>Miejsce</li>
689                    <li>Liczba dni</li>
690                    <li>Liczba godzin</li>
691                  </ul>
692                  <ul class="training training-tiles" data-content="trainings"></ul>`:S`<p class="training-list__empty-info">
693                  ${this.translate(D.noTrainingsAvailableMessage)}
694                  ${this.translate(D.noTrainingsContactEmail)}:
695                  <a class="c-btn--text-emerald" href="mailto:${e.contactEmail}"
696                    >${e.contactEmail}</a
697                  >
698                </p>`}
699            ${e.trainings&&e.ctaLink?S`
700                  <div class="h-position--center training-search__read-more-container">
701                    <a href="${e.ctaLink}" type="button" class="c-btn">
702                      ${this.translate("See all training")}
703                    </a>
704                  </div>
705                `:""}
706          </div>
707        </article>
708      </section>
709    `}registerEvents(){this.registerEvent(qo.TabChange,this.form$)}changeForm(e){this.form$.next(e)}renderTabs(e,i=!1){return S` <div
710      class="training__toggle c-tabs training-search__tabs ${i?"training-search__tabs--loading":""}"
711      data-js="tabs"
712    >
713      <div class="c-tabs-nav-wrapper">
714        <div class="c-tabs-nav" role="tablist">
715          <button
716            @click=${()=>this.changeForm(A.All)}
717            class="training__toggle-option c-tabs-nav__item h-ripple-effect h-ripple-effect--fill 
718              ${e===A.Default?"training__toggle-option--select c-tabs-nav__item--active":""}"
719            role="tab"
720            tabindex="0"
721            data-tab-index="0"
722          >
723            <div class="c-tabs-nav__item-content">
724              <span class="c-tabs-nav__item-text">${this.translate("Wszystkie")}</span>
725            </div>
726          </button>
727          <button
728            @click=${()=>this.changeForm(A.Stationary)}
729            class="training__toggle-option c-tabs-nav__item h-ripple-effect h-ripple-effect--fill 
730              ${e===A.Stationary?"training__toggle-option--select c-tabs-nav__item--active":""}"
731            role="tab"
732            tabindex="0"
733            data-tab-index="1"
734          >
735            <div class="c-tabs-nav__item-content">
736              <span class="c-tabs-nav__item-text">${this.translate("Stacjonarne")}</span>
737            </div>
738          </button>
739          <button
740            @click=${()=>this.changeForm(A.Remote)}
741            class="training__toggle-option c-tabs-nav__item h-ripple-effect h-ripple-effect--fill 
742            ${e===A.Remote?"training__toggle-option--select c-tabs-nav__item--active":""}"
743            role="tab"
744            tabindex="0"
745            data-tab-index="2"
746          >
747            <div class="c-tabs-nav__item-content">
748              <span class="c-tabs-nav__item-text">${this.translate("Zdalne")}</span>
749            </div>
750          </button>
751          <button
752            @click=${()=>this.changeForm(A.ELearning)}
753            class="training__toggle-option c-tabs-nav__item h-ripple-effect h-ripple-effect--fill 
754              ${e===A.ELearning?"training__toggle-option--select c-tabs-nav__item--active":""}"
755            role="tab"
756            tabindex="0"
757            data-tab-index="3"
758          >
759            <div class="c-tabs-nav__item-content">
760              <span class="c-tabs-nav__item-text">${this.translate("e-Learningowe")}</span>
761            </div>
762          </button>
763          <span class="c-tabs-nav__active-indicator"></span>
764        </div>
765      </div>
766    </div>`}}class r_ extends Se{constructor(){super({componentName:"training-search-tabs-template"}),this.currentForm=A.Default,this.templateRef=new t_,this.apiService=se.getInstance(),this.indicatorRepaintingTimeout=null}renderWidget(e=document.body){this.widgetInputData={...e.dataset};const i=this.getFormParam();if(this.currentForm=i,e.dataset.ssr==="1"){const s=e.querySelector('[data-component="training-search-tabs-template"]');if(s){this.hostView=s,this.setupRepaintIndicatorOnWindowResize(),this.initTabChangeEvent(),this.hydrateSsrTabs(),Mo(this.hostView),this.repaintActiveIndicator();return}}e.appendChild(this.hostView),this.setupRepaintIndicatorOnWindowResize(),this.initTabChangeEvent(),this.loadTrainingList(i)}hydrateSsrTabs(){this.hostView.querySelectorAll("[data-js-tab-form]").forEach(i=>{i.addEventListener("click",()=>{const s=i.dataset.jsTabForm||"",c=s===""?A.All:s,a=c===A.All?A.Default:c;a!==this.currentForm&&(this.currentForm=a,this.updateUrl(c),this.loadTrainingList(a))})})}loadTrainingList(e){this.renderContent(this.templateRef.getTemplate(this.widgetInputData,e,!0)),this.repaintActiveIndicator(),this.fetchTrainings(e).pipe(V.map(i=>i?i.results:[])).subscribe(i=>{this.widgetInputData.trainings=i,this.renderContent(this.templateRef.getTemplate(this.widgetInputData,e,!1)),this.repaintActiveIndicator(),this.unmountTrainings(),this.mountTrainings(i)})}setupRepaintIndicatorOnWindowResize(){window.addEventListener("resize",()=>{window.clearTimeout(this.indicatorRepaintingTimeout),this.indicatorRepaintingTimeout=window.setTimeout(()=>{this.repaintActiveIndicator()},200)})}repaintActiveIndicator(){window.requestAnimationFrame(()=>{const e=this.hostView.querySelector(".c-tabs-nav"),i=e==null?void 0:e.querySelector(".c-tabs-nav__item--active[data-tab-index]"),s=e==null?void 0:e.querySelector(".c-tabs-nav__active-indicator");!i||!s||(s.style.left=`${i.offsetLeft}px`,s.style.width=`${i.offsetWidth}px`)})}initTabChangeEvent(){this.templateRef.events[qo.TabChange].subscribe(e=>{const i=e===A.All?A.Default:e;i!==this.currentForm&&(this.currentForm=i,this.updateUrl(e),this.loadTrainingList(i))})}updateUrl(e){window.history.replaceState(null,null,`?form=${e}`)}fetchTrainings(e){return this.apiService.getTrainingsList(this.widgetInputData.nodeId,this.getSearchParams(e))}getSearchParams(e){const i=new URLSearchParams;return i.set("form",e),i}mountTrainings(e){const i=this.hostView.querySelector('[data-content="trainings"]');e.forEach(s=>{const c=new Ii;c.renderWidget(s,"",this.widgetInputData.registerFormLink),i.appendChild(c.hostView)})}unmountTrainings(){const e=this.hostView.querySelector('[data-content="trainings"]');if(e)for(;e.lastElementChild;)e.removeChild(e.lastElementChild)}getFormParam(){const e=window.location.search;switch(new URLSearchParams(e).get("form")){case"Stacjonarne":return A.Stationary;case"Zdalne":return A.Remote;case"e-Learning":return A.ELearning;default:return A.Default}}}class n_ extends Se{constructor(){super({componentName:"training-search-app",componentType:Sr.Static}),this.clipboardService=oe.getInstance(),this.clipboardService.updateToolbarClipboardLength()}initApp(e){this.mountTemplate(e)}mountTemplate(e){switch(e){case"tabs":new r_().renderWidget(this.hostView);break;case"clipboard":new Fv().renderWidget(this.hostView);break;case"search":new Zv().renderWidget(this.hostView);break;case"slider":new e_().renderWidget(this.hostView);break;default:console.error(`template ${e} not exists!`);break}}}class i_{}const o_=qc(i_,".toast");class s_{constructor(e){this.element=e;const i=this.element.getAttribute("data-template");new n_().initApp(i)}}const G_=qc(s_,'[data-component="training-search-app"]',[nh,ih,rh,eh,oh,sh,Qf,o_]);export{s_ as TrainingSearchWidget,G_ as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.