!function(t,e){for(var r in e)t[r]=e[r]}(window,function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=7)}([,,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return o}));var n="undefined"!=typeof window&&window,i="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o=n||void 0!==t&&t||i}).call(this,r(5))},,,function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){},function(t,e,r){"use strict";function n(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function i(t){return function e(r){return 0===arguments.length||n(r)?e:t.apply(this,arguments)}}function o(t){return t}r.r(e);var s=i(o),u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function c(t,e){function r(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function a(t){return"function"==typeof t}var f=!1,l={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;f=t},get useDeprecatedSynchronousErrorHandling(){return f}};function h(t){setTimeout((function(){throw t}),0)}var p={closed:!0,next:function(t){},error:function(t){if(l.useDeprecatedSynchronousErrorHandling)throw t;h(t)},complete:function(){}},d=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function y(t){return null!==t&&"object"==typeof t}var b=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),v=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var r=this._parentOrParents,n=this._unsubscribe,i=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof t)r.remove(this);else if(null!==r)for(var o=0;o1?n.next(Array.prototype.slice.call(arguments)):n.next(t)}),n,r)}))}function R(t){return t&&"function"==typeof t.schedule}var H=function(t){function e(e,r,n){var i=t.call(this)||this;return i.parent=e,i.outerValue=r,i.outerIndex=n,i.index=0,i}return c(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(_),V=function(t){return function(e){for(var r=0,n=t.length;r0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(X);function Q(t){return t}function Z(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),function t(e,r,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof r?function(i){return i.pipe(t((function(t,n){return B(e(t,n)).pipe(k((function(e,i){return r(t,e,n,i)})))}),n))}:("number"==typeof r&&(n=r),function(t){return t.lift(new K(e,n))})}(Q,t)}function tt(t,e){return e?W(t,e):new O(V(t))}function et(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof i&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof O?t[0]:Z(r)(tt(t,n))}function rt(){for(var t=[],e=0;e0?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(ut),at=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}(),ft=function(t){function e(r,n){void 0===n&&(n=at.now);var i=t.call(this,r,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():n()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return c(e,t),e.prototype.schedule=function(r,n,i){return void 0===n&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(r,n,i):t.prototype.schedule.call(this,r,n,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(at),lt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e}(ft))(ct),ht=new O((function(t){return t.complete()}));function pt(t){return t?function(t){return new O((function(e){return t.schedule((function(){return e.complete()}))}))}(t):ht}function dt(){for(var t=[],e=0;ethis._bufferSize&&r.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new xt(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=n.length;if(this.closed)throw new I;if(this.isStopped||this.hasError?e=v.EMPTY:(this.observers.push(t),e=new N(this,t)),i&&t.add(t=new wt(t,i)),r)for(var s=0;se&&(o=Math.max(o,i-e)),o>0&&n.splice(0,o),n},e}(C),xt=function(){return function(t,e){this.time=t,this.value=e}}();function St(t,e,r){var n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:r},function(t){return t.lift(function(t){var e,r,n=t.bufferSize,i=void 0===n?Number.POSITIVE_INFINITY:n,o=t.windowTime,s=void 0===o?Number.POSITIVE_INFINITY:o,u=t.refCount,c=t.scheduler,a=0,f=!1,l=!1;return function(t){a++,e&&!f||(f=!1,e=new gt(i,s,c),r=t.subscribe({next:function(t){e.next(t)},error:function(t){f=!0,e.error(t)},complete:function(){l=!0,e.complete()}}));var n=e.subscribe(this);this.add((function(){a--,n.unsubscribe(),r&&!l&&u&&0===a&&(r.unsubscribe(),r=void 0,e=void 0)}))}}(n))}}function Et(t,e){return function(r){return r.lift(new Tt(t,e))}}var Tt=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Ot(t,this.compare,this.keySelector))},t}(),Ot=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.keySelector=n,i.hasKey=!1,"function"==typeof r&&(i.compare=r),i}return c(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var r=this.keySelector;e=r?r(t):t}catch(t){return this.destination.error(t)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))},e}(_);function jt(t,e){return Et((function(r,n){return e?e(r[t],n[t]):r[t]===n[t]}))}function It(t,e){return function(r){return r.lift(new Nt(t,e))}}var Nt=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new At(t,this.predicate,this.thisArg))},t}(),At=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return c(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(_),Ct=new ft(ut);function Pt(t,e){void 0===e&&(e=Ct);var r,n=(r=t)instanceof Date&&!isNaN(+r)?+t-e.now():Math.abs(t);return function(t){return t.lift(new kt(n,e))}}var kt=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new qt(t,this.delay,this.scheduler))},t}(),qt=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.delay=r,i.scheduler=n,i.queue=[],i.active=!1,i.errored=!1,i}return c(e,t),e.dispatch=function(t){for(var e=t.source,r=e.queue,n=t.scheduler,i=t.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){var o=Math.max(0,r[0].time-n.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,r=new Mt(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(bt.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(bt.createComplete()),this.unsubscribe()},e}(_),Mt=function(){return function(t,e){this.time=t,this.notification=e}}();function Dt(t,e,r){return function(n){return n.lift(new Rt(t,e,r))}}var Rt=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e.subscribe(new Ht(t,this.nextOrObserver,this.error,this.complete))},t}(),Ht=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o._tapNext=S,o._tapError=S,o._tapComplete=S,o._tapError=n||S,o._tapComplete=i||S,a(r)?(o._context=o,o._tapNext=r):r&&(o._context=r,o._tapNext=r.next||S,o._tapError=r.error||S,o._tapComplete=r.complete||S),o}return c(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(_);function Vt(t,e){return e?nt((function(){return t}),e):nt((function(){return t}))}var Lt=r(2);function Ut(t,e){return void 0===e&&(e=null),new Gt({method:"GET",url:t,headers:e})}function Ft(t,e,r){return new Gt({method:"POST",url:t,body:e,headers:r})}function $t(t,e){return new Gt({method:"DELETE",url:t,headers:e})}function Yt(t,e,r){return new Gt({method:"PUT",url:t,body:e,headers:r})}function zt(t,e,r){return new Gt({method:"PATCH",url:t,body:e,headers:r})}var Xt=k((function(t,e){return t.response}));function Wt(t,e){return Xt(new Gt({method:"GET",url:t,responseType:"json",headers:e}))}var Gt=function(t){function e(e){var r=t.call(this)||this,n={async:!0,createXHR:function(){return this.crossDomain?function(){if(Lt.a.XMLHttpRequest)return new Lt.a.XMLHttpRequest;if(Lt.a.XDomainRequest)return new Lt.a.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(Lt.a.XMLHttpRequest)return new Lt.a.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],r=0;r<3;r++)try{if(t=e[r],new Lt.a.ActiveXObject(t))break}catch(t){}return new Lt.a.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)n.url=e;else for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return r.request=n,r}var r;return c(e,t),e.prototype._subscribe=function(t){return new Bt(t,this.request)},e.create=((r=function(t){return new e(t)}).get=Ut,r.post=Ft,r.delete=$t,r.put=Yt,r.patch=zt,r.getJSON=Wt,r),e}(O),Bt=function(t){function e(e,r){var n=t.call(this,e)||this;n.request=r,n.done=!1;var i=r.headers=r.headers||{};return r.crossDomain||n.getHeader(i,"X-Requested-With")||(i["X-Requested-With"]="XMLHttpRequest"),n.getHeader(i,"Content-Type")||Lt.a.FormData&&r.body instanceof Lt.a.FormData||void 0===r.body||(i["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),r.body=n.serializeBody(r.body,n.getHeader(r.headers,"Content-Type")),n.send(),n}return c(e,t),e.prototype.next=function(t){this.done=!0;var e,r=this.xhr,n=this.request,i=this.destination;try{e=new Kt(t,r,n)}catch(t){return i.error(t)}i.next(e)},e.prototype.send=function(){var t=this.request,e=this.request,r=e.user,n=e.method,i=e.url,o=e.async,s=e.password,u=e.headers,c=e.body;try{var a=this.xhr=t.createXHR();this.setupEvents(a,t),r?a.open(n,i,o,r,s):a.open(n,i,o),o&&(a.timeout=t.timeout,a.responseType=t.responseType),"withCredentials"in a&&(a.withCredentials=!!t.withCredentials),this.setHeaders(a,u),c?a.send(c):a.send()}catch(t){this.error(t)}},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(Lt.a.FormData&&t instanceof Lt.a.FormData)return t;if(e){var r=e.indexOf(";");-1!==r&&(e=e.substring(0,r))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var r in e)e.hasOwnProperty(r)&&t.setRequestHeader(r,e[r])},e.prototype.getHeader=function(t,e){for(var r in t)if(r.toLowerCase()===e.toLowerCase())return t[r]},e.prototype.setupEvents=function(t,e){var r=e.progressSubscriber;function n(t){var e,r=n,i=r.subscriber,o=r.progressSubscriber,s=r.request;o&&o.error(t);try{e=new Zt(this,s)}catch(t){e=t}i.error(e)}if(t.ontimeout=n,n.request=e,n.subscriber=this,n.progressSubscriber=r,t.upload&&"withCredentials"in t){var i,o;if(r)i=function(t){i.progressSubscriber.next(t)},Lt.a.XDomainRequest?t.onprogress=i:t.upload.onprogress=i,i.progressSubscriber=r;o=function(t){var e,r=o,n=r.progressSubscriber,i=r.subscriber,s=r.request;n&&n.error(t);try{e=new Jt("ajax error",this,s)}catch(t){e=t}i.error(e)},t.onerror=o,o.request=e,o.subscriber=this,o.progressSubscriber=r}function s(t){}function u(t){var e=u,r=e.subscriber,n=e.progressSubscriber,i=e.request;if(4===this.readyState){var o=1223===this.status?204:this.status,s="text"===this.responseType?this.response||this.responseText:this.response;if(0===o&&(o=s?200:0),o<400)n&&n.complete(),r.next(t),r.complete();else{n&&n.error(t);var c=void 0;try{c=new Jt("ajax error "+o,this,i)}catch(t){c=t}r.error(c)}}}t.onreadystatechange=s,s.subscriber=this,s.progressSubscriber=r,s.request=e,t.onload=u,u.subscriber=this,u.progressSubscriber=r,u.request=e},e.prototype.unsubscribe=function(){var e=this.done,r=this.xhr;!e&&r&&4!==r.readyState&&"function"==typeof r.abort&&r.abort(),t.prototype.unsubscribe.call(this)},e}(_),Kt=function(){return function(t,e,r){this.originalEvent=t,this.xhr=e,this.request=r,this.status=e.status,this.responseType=e.responseType||r.responseType,this.response=Qt(this.responseType,e)}}(),Jt=function(){function t(t,e,r){return Error.call(this),this.message=t,this.name="AjaxError",this.xhr=e,this.request=r,this.status=e.status,this.responseType=e.responseType||r.responseType,this.response=Qt(this.responseType,e),this}return t.prototype=Object.create(Error.prototype),t}();function Qt(t,e){switch(t){case"json":return function(t){return"response"in t?t.responseType?t.response:JSON.parse(t.response||t.responseText||"null"):JSON.parse(t.responseText||"null")}(e);case"xml":return e.responseXML;case"text":default:return"response"in e?e.response:e.responseText}}var Zt=function(t,e){return Jt.call(this,"ajax timeout",t,e),this.name="AjaxTimeoutError",this},te=function(){return Gt.create}();function ee(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var re=Object.prototype.toString,ne=function(){return"[object Arguments]"===re.call(arguments)?function(t){return"[object Arguments]"===re.call(t)}:function(t){return ee("callee",t)}}(),ie=!{toString:null}.propertyIsEnumerable("toString"),oe=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],se=function(){return arguments.propertyIsEnumerable("length")}(),ue=function(t,e){for(var r=0;r=0;)ee(e=oe[r],t)&&!ue(n,e)&&(n[n.length]=e),r-=1;return n})):i((function(t){return Object(t)!==t?[]:Object.keys(t)})),ae=new O(S);var fe=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,e){return e.subscribe(new le(t,this.accumulator,this.seed,this.hasSeed))},t}(),le=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.accumulator=r,o._seed=n,o.hasSeed=i,o.index=0,o}return c(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.accumulator(this.seed,t,r)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(_);function he(t){return function(e){return e.lift(new pe(t))}}var pe=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new de(t,this.value))},t}(),de=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return c(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(_);function ye(){for(var t=[],e=0;e1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(_),xe=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return c(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new v).add(this.source.subscribe(new Ee(this.getSubject(),this))),t.closed&&(this._connection=null,t=v.EMPTY)),t},e.prototype.refCount=function(){return we()(this)},e}(O),Se=function(){var t=xe.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),Ee=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return c(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(A);var Te=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),i=r(n).subscribe(t);return i.add(e.subscribe(n)),i},t}();function Oe(){return new C}function je(){return function(t){return we()((e=Oe,function(t){var n;if(n="function"==typeof e?e:function(){return e},"function"==typeof r)return t.lift(new Te(n,r));var i=Object.create(t,Se);return i.source=t,i.subjectFactory=n,i})(t));var e,r}}var Ie=D(window,"hashchange"),Ne=D(window,"popstate");function Ae(t){var e=matchMedia(t);return function t(e,r,n){return n?t(e,r).pipe(k((function(t){return d(t)?n.apply(void 0,t):n(t)}))):new O((function(t){var n,i=function(){for(var e=[],r=0;rr){for(;" "!==t[r]&&--r>0;);return t.substring(0,r)+"..."}return t}var Le=function(){return(Le=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function Fe(t,e){return e.document$.pipe(k((function(e){return t.reduce((function(t,r){var n,i=me("[data-md-component="+r+"]",e);return Le(Le({},t),void 0!==i?((n={})[r]=i,n):{})}),{})})),function(t,e){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new fe(t,e,r))}}((function(t,e){var r,n;try{for(var i=Ue(ce(t)),o=i.next();!o.done;o=i.next()){var s=o.value;switch(s){case"title":case"container":s in t&&void 0!==t[s]&&(t[s].replaceWith(e[s]),t[s]=e[s]);break;default:t[s]=me("[data-md-component="+s+"]")}}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return t}))).pipe(St(1))}function $e(t){return e=function(){var e="fixed"===getComputedStyle(t).getPropertyValue("position");return dt({sticky:e,height:e?t.offsetHeight:0})},new O((function(t){var r;try{r=e()}catch(e){return void t.error(e)}return(r?B(r):pt()).subscribe(t)}));var e}var Ye={};function ze(){for(var t=[],e=0;e0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};function Be(t,e){var r=e.size$,n=e.offset$,i=e.header$;return ze([n,r.pipe(Vt(i),k((function(e){var r=e.height;return t.offsetTop-r})),Et())]).pipe(k((function(t){var e=Ge(t,2),r=e[0];return{x:r.x,y:r.y-e[1]}})),St(1))}var Ke=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return c(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(cancelAnimationFrame(r),e.scheduled=void 0)},e}(ut),Je=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n=e})),Et(),vt(Je),Dt((function(e){!function(t,e){t.setAttribute("data-md-state",e?"hidden":"")}(t,e)})),Qe((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}var rr=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};function nr(t){return D(t,"click").pipe(he(!0))}function ir(t){return function e(r,o){switch(arguments.length){case 0:return e;case 1:return n(r)?e:i((function(e){return t(r,e)}));default:return n(r)&&n(o)?e:n(r)?i((function(e){return t(e,o)})):n(o)?i((function(e){return t(r,e)})):t(r,o)}}}function or(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function sr(t,e,r){for(var n=0,i=r.length;n=0;){if(r[u]===t)return n[u]===e;u-=1}switch(s){case"Map":return t.size===e.size&&ar(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&ar(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=ce(t);if(c.length!==ce(e).length)return!1;var a=r.concat([t]),f=n.concat([e]);for(u=c.length-1;u>=0;){var l=c[u];if(!ee(l,e)||!fr(e[l],t[l],a,f))return!1;u-=1}return!0}var lr=ir((function(t,e){return fr(t,e,[],[])})),hr=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};function pr(t,e){var r=e.offset$,n=e.main$,i=parseFloat(getComputedStyle(t.parentElement).getPropertyValue("padding-top")),o=ze([r,n]).pipe(k((function(t){var e=hr(t,2),r=e[0].y,n=e[1],o=n.offset;return n.height-i+Math.min(i,Math.max(0,r-o))}))),s=ze([r,n]).pipe(k((function(t){var e=hr(t,2);return e[0].y>=e[1].offset+i})));return ze([o,s]).pipe(k((function(t){var e=hr(t,2);return{height:e[0],lock:e[1]}})),Et(lr),St(1))}function dr(t){return E(vt(Je),Dt((function(e){var r=e.height,n=e.lock;!function(t,e){t.style.height=e+"px"}(t,r),function(t,e){t.setAttribute("data-md-state",e?"lock":"")}(t,n)})),Qe((function(){!function(t){t.style.height=""}(t),function(t){t.removeAttribute("data-md-state")}(t)})))}r(6);var yr=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function br(t,e){var r,n;if("string"==typeof e||"number"==typeof e)t.appendChild(new Text(e.toString()));else if(e instanceof Node)t.appendChild(e);else if(Array.isArray(e))try{for(var i=yr(e),o=i.next();!o.done;o=i.next()){br(t,o.value)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}function vr(t,e){for(var r,n,i,o,s=[],u=2;u0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};function Sr(t,e){var r=t.pipe(It((function(t){return t}))),n=t.pipe(It((function(t){return!t})));return E(nt((function(t){return ze([dt(t),r])})),nt((function(t){var r,i=xr(t,2),o=i[0];return i[1]?e(o).pipe((r=n,function(t){return t.lift(new _r(r))})):ht})))}!function(t){t[t.STRING=0]="STRING",t[t.PACKED=1]="PACKED"}(mr||(mr={})),function(t){t[t.SETUP=0]="SETUP",t[t.DUMP=1]="DUMP",t[t.QUERY=2]="QUERY",t[t.RESULT=3]="RESULT"}(wr||(wr={}));var Er={link:"md-search-result__link",article:"md-search-result__article md-search-result__article--document",title:"md-search-result__title",teaser:"md-search-result__teaser"};var Tr={link:"md-search-result__link",article:"md-search-result__article",title:"md-search-result__title",teaser:"md-search-result__teaser"};function Or(t){var e=t.location,r=t.title,n=t.text;return vr("a",{href:e,title:r,class:Tr.link,tabIndex:-1},vr("article",{class:Tr.article},vr("h1",{class:Tr.title},r),n.length?vr("p",{class:Tr.teaser},Ve(n,320)):void 0))}var jr={item:"md-search-result__item"};function Ir(t){var e=t.article,r=t.sections;return vr("li",{class:jr.item},function(t){var e=t.location,r=t.title,n=t.text;return vr("a",{href:e,title:r,class:Er.link,tabIndex:-1},vr("article",{class:Er.article},vr("h1",{class:Er.title},r),n.length?vr("p",{class:Er.teaser},Ve(n,320)):void 0))}(e),r.map(Or))}r.d(e,"isConfig",(function(){return Ar})),r.d(e,"initialize",(function(){return Pr}));var Nr=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function Ar(t){return"object"==typeof t&&"string"==typeof t.base}var Cr=["header","title","search","query","reset","result","container","main","hero","tabs","navigation","toc"];function Pr(t){if(!Ar(t))throw new SyntaxError("Invalid configuration: "+JSON.stringify(t));var e=new Worker(t.worker.search),r=new Worker(t.worker.packer),n=new C;He(r,{message$:n}).subscribe((function(t){console.log("PACKER.MSG",t),console.log(t.data.length),localStorage.setItem("index",t.data)}));var i=new C;He(e,{message$:i}).subscribe((function(t){var e,r;if(t.type===wr.DUMP)console.log(t.data.length),n.next({type:mr.STRING,data:t.data});else if(t.type===wr.RESULT){console.log("RESULT",t);var i=document.querySelector(".md-search-result__list");i.innerHTML="";try{for(var o=Nr(t.data.map(Ir)),s=o.next();!s.done;s=o.next()){var u=s.value;i.appendChild(u)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}})),te({url:t.base+"/search/search_index.json",responseType:"json",withCredentials:!0}).pipe(rt("response"),k((function(t){return{type:wr.SETUP,data:t}}))).subscribe((function(t){i.next(t)}));var o=et(Ce,Pe).pipe(k(ke),be(ke()),St(1)),u=Pe.pipe(k(qe),be(qe()),St(1)),c=Ae("(min-width: 1220px)"),a=Ae("(min-width: 960px)"),f=function(){var t=new C;return Ne.pipe(k((function(){return location.href})),je()).subscribe(t),t}(),l=Ie.pipe(k((function(){return location.hash})),It((function(t){return t.length>0})),je()),h=ve.pipe(he(document),St(1)),p=Fe(Cr,{document$:h}),d=function(t){return p.pipe(function(t){return E(nt((function(e){return void 0!==e[t]?dt(e[t]):ae})))}(t))},y=d("header").pipe(nt($e)),b=d("main").pipe(nt((function(t){return function(t,e){var r=e.size$,n=e.offset$,i=e.header$.pipe(rt("height")),o=ze([n,r,i]).pipe(k((function(e){var r=rr(e,3),n=r[0].y,i=r[1].height,o=r[2],s=t.offsetTop,u=t.offsetHeight+s;return i-Math.max(0,s-n,o)-Math.max(0,i+n-u)})),Et()),s=ze([n,i]).pipe(k((function(e){var r=rr(e,2),n=r[0].y,i=r[1];return n>=t.offsetTop-i})),Et());return ze([o,i,s]).pipe(k((function(e){var r=rr(e,3),n=r[0],i=r[1],o=r[2];return{offset:t.offsetTop-i,height:n,active:o}})),St(1))}(t,{size$:u,offset$:o,header$:y})})),St(1));d("query").pipe(nt((function(t){return D(t,"keyup").pipe(k((function(){return{type:wr.QUERY,data:t.value}})),jt("data"))}))).subscribe((function(t){i.next(t)})),d("header").pipe(nt((function(t){return b.pipe(function(t){return E(jt("active"),vt(Je),Dt((function(e){var r=e.active;!function(t,e){t.setAttribute("data-md-state",e?"shadow":"")}(t,r)})),Qe((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}(t))}))).subscribe(),d("navigation").pipe(Sr(c,(function(t){return pr(t,{offset$:o,main$:b}).pipe(dr(t))})),St(1)).subscribe(),d("toc").pipe(Sr(a,(function(t){return pr(t,{offset$:o,main$:b}).pipe(dr(t))})),St(1)).subscribe(),d("tabs").pipe(Sr(c,(function(t){return Be(t,{size$:u,offset$:o,header$:y}).pipe(er(t,8))})),St(1)).subscribe(),d("hero").pipe(nt((function(t){return Be(t,{size$:u,offset$:o,header$:y}).pipe(er(t,20))})),St(1)).subscribe();me("[data-md-toggle=drawer]");var v,m=me("[data-md-toggle=search]");return et((v=m,D(v,"change").pipe(rt("checked"))).pipe(It(s),Pt(400)),d("reset").pipe(nt(nr))).pipe(Vt(d("query")),E(Dt((function(t){return t.focus()})))).subscribe(),{watchDocument:function(){return h},watchLocation:function(){return f},watchLocationFragment:function(){return l},watchMediaScreen:function(){return c},watchMediaTablet:function(){return a},watchViewportOffset:function(){return o},watchViewportSize:function(){return u}}}document.documentElement.classList.remove("no-js"),document.documentElement.classList.add("js")}])); //# sourceMappingURL=bundle.js.map