mkdocs-material/material/assets/javascripts/bundle.js

2 lines
69 KiB
JavaScript

!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 u=i(o),s=function(t,e){return(s=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}s(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 v=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}(),b=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;o<r.length;++o){r[o].remove(this)}if(a(n))try{n.call(this)}catch(t){e=t instanceof v?m(t.errors):[t]}if(d(i)){o=-1;for(var u=i.length;++o<u;){var s=i[o];if(y(s))try{s.unsubscribe()}catch(t){e=e||[],t instanceof v?e=e.concat(m(t.errors)):e.push(t)}}}if(e)throw new v(e)}},t.prototype.add=function(e){var r=e;if(!e)return t.EMPTY;switch(typeof e){case"function":r=new t(e);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof t)){var n=r;(r=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof t){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[r]:o.push(r),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function m(t){return t.reduce((function(t,e){return t.concat(e instanceof v?e.errors:e)}),[])}var w=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),_=function(t){function e(r,n,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=p;break;case 1:if(!r){o.destination=p;break}if("object"==typeof r){r instanceof e?(o.syncErrorThrowable=r.syncErrorThrowable,o.destination=r,r.add(o)):(o.syncErrorThrowable=!0,o.destination=new g(o,r));break}default:o.syncErrorThrowable=!0,o.destination=new g(o,r,n,i)}return o}return c(e,t),e.prototype[w]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(b),g=function(t){function e(e,r,n,i){var o,u=t.call(this)||this;u._parentSubscriber=e;var s=u;return a(r)?o=r:r&&(o=r.next,n=r.error,i=r.complete,r!==p&&(a((s=Object.create(r)).unsubscribe)&&u.add(s.unsubscribe.bind(s)),s.unsubscribe=u.unsubscribe.bind(u))),u._context=s,u._next=o,u._error=n,u._complete=i,u}return c(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;l.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=l.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):h(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;h(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};l.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),l.useDeprecatedSynchronousErrorHandling)throw t;h(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!l.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(e){return l.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(h(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(_);var x=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function S(){}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return T(t)}function T(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:S}var O=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=function(t,e,r){if(t){if(t instanceof _)return t;if(t[w])return t[w]()}return t||e||r?new _(t,e,r):new _(p)}(t,e,r);if(n?i.add(n.call(i,this.source)):i.add(this.source||l.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),l.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){l.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,r=e.closed,n=e.destination,i=e.isStopped;if(r||i)return!1;t=n&&n instanceof _?n:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=j(e))((function(e,n){var i;i=r.subscribe((function(e){try{t(e)}catch(t){n(t),i&&i.unsubscribe()}}),n,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[x]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:T(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=j(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function j(t){if(t||(t=l.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var I=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),N=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return c(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(b),A=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return c(e,t),e}(_),k=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return c(e,t),e.prototype[w]=function(){return new A(this)},e.prototype.lift=function(t){var e=new P(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new I;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new I;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new I;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new I;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new I;return this.hasError?(t.error(this.thrownError),b.EMPTY):this.isStopped?(t.complete(),b.EMPTY):(this.observers.push(t),new N(this,t))},e.prototype.asObservable=function(){var t=new O;return t.source=this,t},e.create=function(t,e){return new P(t,e)},e}(O),P=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return c(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):b.EMPTY},e}(k);function C(t){return t&&"function"==typeof t.schedule}var q=function(t){return function(e){for(var r=0,n=t.length;r<n&&!e.closed;r++)e.next(t[r]);e.complete()}};function $(t,e){return new O((function(r){var n=new b,i=0;return n.add(e.schedule((function(){i!==t.length?(r.next(t[i++]),r.closed||n.add(this.schedule())):r.complete()}))),n}))}function M(t,e){return e?$(t,e):new O(q(t))}function R(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return C(r)?(t.pop(),$(t,r)):M(t)}var H=new O((function(t){return t.complete()}));function D(t){return t?function(t){return new O((function(e){return t.schedule((function(){return e.complete()}))}))}(t):H}function L(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new V(t,e))}}var V=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new U(t,this.project,this.thisArg))},t}(),U=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return c(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(_);function Y(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var F=Y(),z=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function X(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var W=function(t){if(t&&"function"==typeof t[x])return n=t,function(t){var e=n[x]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(z(t))return q(t);if(X(t))return r=t,function(t){return r.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,h),t};if(t&&"function"==typeof t[F])return e=t,function(t){for(var r=e[F]();;){var n=r.next();if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof r.return&&t.add((function(){r.return&&r.return()})),t};var e,r,n,i=y(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+i+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function B(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[x]}(t))return function(t,e){return new O((function(r){var n=new b;return n.add(e.schedule((function(){var i=t[x]();n.add(i.subscribe({next:function(t){n.add(e.schedule((function(){return r.next(t)})))},error:function(t){n.add(e.schedule((function(){return r.error(t)})))},complete:function(){n.add(e.schedule((function(){return r.complete()})))}}))}))),n}))}(t,e);if(X(t))return function(t,e){return new O((function(r){var n=new b;return n.add(e.schedule((function(){return t.then((function(t){n.add(e.schedule((function(){r.next(t),n.add(e.schedule((function(){return r.complete()})))})))}),(function(t){n.add(e.schedule((function(){return r.error(t)})))}))}))),n}))}(t,e);if(z(t))return $(t,e);if(function(t){return t&&"function"==typeof t[F]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new O((function(r){var n,i=new b;return i.add((function(){n&&"function"==typeof n.return&&n.return()})),i.add(e.schedule((function(){n=t[F](),i.add(e.schedule((function(){if(!r.closed){var t,e;try{var i=n.next();t=i.value,e=i.done}catch(t){return void r.error(t)}e?r.complete():(r.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function G(t,e){return e?B(t,e):t instanceof O?t:new O(W(t))}function J(t,e){return new O((function(r){var n=t.length;if(0!==n)for(var i=new Array(n),o=0,u=0,s=function(s){var c=G(t[s]),a=!1;r.add(c.subscribe({next:function(t){a||(a=!0,u++),i[s]=t},error:function(t){return r.error(t)},complete:function(){++o!==n&&a||(u===n&&r.next(e?e.reduce((function(t,e,r){return t[e]=i[r],t}),{}):i),r.complete())}}))},c=0;c<n;c++)s(c);else r.complete()}))}function K(t,e,r,n){return a(r)&&(n=r,r=void 0),n?K(t,e,r).pipe(L((function(t){return d(t)?n.apply(void 0,t):n(t)}))):new O((function(n){!function t(e,r,n,i,o){var u;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(r,n,o),u=function(){return s.removeEventListener(r,n,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var c=e;e.on(r,n),u=function(){return c.off(r,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var a=e;e.addListener(r,n),u=function(){return a.removeListener(r,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var f=0,l=e.length;f<l;f++)t(e[f],r,n,i,o)}i.add(u)}(t,e,(function(t){arguments.length>1?n.next(Array.prototype.slice.call(arguments)):n.next(t)}),n,r)}))}var Q=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}(_);function Z(t,e,r,n,i){if(void 0===i&&(i=new Q(t,r,n)),!i.closed)return e instanceof O?e.subscribe(i):W(e)(i)}var tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(_);var et=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new rt(t,this.project,this.concurrent))},t}(),rt=function(t){function e(e,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return c(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){var n=new Q(this,void 0,void 0);this.destination.add(n),Z(this,t,e,r,n)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(tt);function nt(t){return t}function it(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 G(e(t,n)).pipe(L((function(e,i){return r(t,e,n,i)})))}),n))}:("number"==typeof r&&(n=r),function(t){return t.lift(new et(e,n))})}(nt,t)}function ot(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return C(i)?(n=t.pop(),t.length>1&&"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]:it(r)(M(t,n))}function ut(t,e){return function(r){return r.lift(new st(t,e))}}var st=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new ct(t,this.predicate,this.thisArg))},t}(),ct=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}(_);function at(t,e,r){return function(n){return n.lift(new ft(t,e,r))}}var ft=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 lt(t,this.nextOrObserver,this.error,this.complete))},t}(),lt=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 ht(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.length;if(0===r)throw new Error("list of properties cannot be empty.");return function(e){return L(function(t,e){return function(r){for(var n=r,i=0;i<e;i++){var o=n[t[i]];if(void 0===o)return;n=o}return n}}(t,r))(e)}}var pt=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}();var dt=function(){function t(t){if(this.total=t,this.total<0)throw new pt}return t.prototype.call=function(t,e){return e.subscribe(new yt(t,this.total))},t}(),yt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.count=0,n}return c(e,t),e.prototype._next=function(t){var e=this.total,r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))},e}(_);function vt(t,e){return"function"==typeof e?function(r){return r.pipe(vt((function(r,n){return G(t(r,n)).pipe(L((function(t,i){return e(r,t,n,i)})))})))}:function(e){return e.lift(new bt(t))}}var bt=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new mt(t,this.project))},t}(),mt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.project=r,n.index=0,n}return c(e,t),e.prototype._next=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){var n=this.innerSubscription;n&&n.unsubscribe();var i=new Q(this,void 0,void 0);this.destination.add(i),this.innerSubscription=Z(this,t,e,r,i)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e}(tt);function wt(t,e){return function(r){return r.lift(new _t(t,e))}}var _t=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new gt(t,this.compare,this.keySelector))},t}(),gt=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 xt(t,e){return wt((function(r,n){return e?e(r[t],n[t]):r[t]===n[t]}))}var St,Et=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n.pending=!1,n}return c(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,r){return t.call(this)||this}return c(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(b)),Tt=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}(),Ot=function(t){function e(r,n){void 0===n&&(n=Tt.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}(Tt),jt=new Ot(Et);function It(t){var e=t.error;t.subscriber.error(e)}St||(St={});var Nt=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return R(this.value);case"E":return t=this.error,new O(e?function(r){return e.schedule(It,0,{error:t,subscriber:r})}:function(e){return e.error(t)});case"C":return D()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();function At(t,e){void 0===e&&(e=jt);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 Pt(t,this.delay,this.scheduler))},t}(),Pt=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 Ct(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(Nt.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(Nt.createComplete()),this.unsubscribe()},e}(_),Ct=function(){return function(t,e){this.time=t,this.notification=e}}();function qt(t,e){return e?vt((function(){return t}),e):vt((function(){return t}))}var $t=r(2);function Mt(t,e){return void 0===e&&(e=null),new Yt({method:"GET",url:t,headers:e})}function Rt(t,e,r){return new Yt({method:"POST",url:t,body:e,headers:r})}function Ht(t,e){return new Yt({method:"DELETE",url:t,headers:e})}function Dt(t,e,r){return new Yt({method:"PUT",url:t,body:e,headers:r})}function Lt(t,e,r){return new Yt({method:"PATCH",url:t,body:e,headers:r})}var Vt=L((function(t,e){return t.response}));function Ut(t,e){return Vt(new Yt({method:"GET",url:t,responseType:"json",headers:e}))}var Yt=function(t){function e(e){var r=t.call(this)||this,n={async:!0,createXHR:function(){return this.crossDomain?function(){if($t.a.XMLHttpRequest)return new $t.a.XMLHttpRequest;if($t.a.XDomainRequest)return new $t.a.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if($t.a.XMLHttpRequest)return new $t.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 $t.a.ActiveXObject(t))break}catch(t){}return new $t.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 Ft(t,this.request)},e.create=((r=function(t){return new e(t)}).get=Mt,r.post=Rt,r.delete=Ht,r.put=Dt,r.patch=Lt,r.getJSON=Ut,r),e}(O),Ft=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")||$t.a.FormData&&r.body instanceof $t.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 zt(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,u=e.password,s=e.headers,c=e.body;try{var a=this.xhr=t.createXHR();this.setupEvents(a,t),r?a.open(n,i,o,r,u):a.open(n,i,o),o&&(a.timeout=t.timeout,a.responseType=t.responseType),"withCredentials"in a&&(a.withCredentials=!!t.withCredentials),this.setHeaders(a,s),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($t.a.FormData&&t instanceof $t.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,u=r.request;o&&o.error(t);try{e=new Bt(this,u)}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)},$t.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,u=r.request;n&&n.error(t);try{e=new Xt("ajax error",this,u)}catch(t){e=t}i.error(e)},t.onerror=o,o.request=e,o.subscriber=this,o.progressSubscriber=r}function u(t){}function s(t){var e=s,r=e.subscriber,n=e.progressSubscriber,i=e.request;if(4===this.readyState){var o=1223===this.status?204:this.status,u="text"===this.responseType?this.response||this.responseText:this.response;if(0===o&&(o=u?200:0),o<400)n&&n.complete(),r.next(t),r.complete();else{n&&n.error(t);var c=void 0;try{c=new Xt("ajax error "+o,this,i)}catch(t){c=t}r.error(c)}}}t.onreadystatechange=u,u.subscriber=this,u.progressSubscriber=r,u.request=e,t.onload=s,s.subscriber=this,s.progressSubscriber=r,s.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}(_),zt=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=Wt(this.responseType,e)}}(),Xt=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=Wt(this.responseType,e),this}return t.prototype=Object.create(Error.prototype),t}();function Wt(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 Bt=function(t,e){return Xt.call(this,"ajax timeout",t,e),this.name="AjaxTimeoutError",this},Gt=function(){return Yt.create}();function Jt(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var Kt=Object.prototype.toString,Qt=function(){return"[object Arguments]"===Kt.call(arguments)?function(t){return"[object Arguments]"===Kt.call(t)}:function(t){return Jt("callee",t)}}(),Zt=!{toString:null}.propertyIsEnumerable("toString"),te=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ee=function(){return arguments.propertyIsEnumerable("length")}(),re=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1},ne="function"!=typeof Object.keys||ee?i((function(t){if(Object(t)!==t)return[];var e,r,n=[],i=ee&&Qt(t);for(e in t)!Jt(e,t)||i&&"length"===e||(n[n.length]=e);if(Zt)for(r=te.length-1;r>=0;)Jt(e=te[r],t)&&!re(n,e)&&(n[n.length]=e),r-=1;return n})):i((function(t){return Object(t)!==t?[]:Object.keys(t)})),ie=new O(S);function oe(t,e){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new ue(t,e,r))}}var ue=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 se(t,this.accumulator,this.seed,this.hasSeed))},t}(),se=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}(_),ce=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.schedule=function(e,r){return void 0===r&&(r=0),r>0?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}(Et),ae=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e}(Ot))(ce);function fe(t,e){return void 0===e&&(e=0),function(r){return r.lift(new le(t,e))}}var le=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new he(t,this.scheduler,this.delay))},t}(),he=function(t){function e(e,r,n){void 0===n&&(n=0);var i=t.call(this,e)||this;return i.scheduler=r,i.delay=n,i}return c(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new pe(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Nt.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Nt.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(Nt.createComplete()),this.unsubscribe()},e}(_),pe=function(){return function(t,e){this.notification=t,this.destination=e}}(),de=function(t){function e(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return c(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var r=this._events;r.push(e),r.length>this._bufferSize&&r.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new ye(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=b.EMPTY:(this.observers.push(t),e=new N(this,t)),i&&t.add(t=new he(t,i)),r)for(var u=0;u<o&&!t.closed;u++)t.next(n[u]);else for(u=0;u<o&&!t.closed;u++)t.next(n[u].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||ae).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,r=this._windowTime,n=this._events,i=n.length,o=0;o<i&&!(t-n[o].time<r);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&n.splice(0,o),n},e}(k),ye=function(){return function(t,e){this.time=t,this.value=e}}();function ve(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,u=void 0===o?Number.POSITIVE_INFINITY:o,s=t.refCount,c=t.scheduler,a=0,f=!1,l=!1;return function(t){a++,e&&!f||(f=!1,e=new de(i,u,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&&s&&0===a&&(r.unsubscribe(),r=void 0,e=void 0)}))}}(n))}}function be(t){return function(e){return e.lift(new me(t))}}var me=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new we(t,this.value))},t}(),we=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 _e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return it(1)(R.apply(void 0,t))}function ge(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return C(r)?(t.pop(),function(e){return _e(t,e,r)}):function(e){return _e(t,e)}}var xe=K(document,"DOMContentLoaded");function Se(){return xe.pipe(be(document),ve(1))}function Ee(t,e){return void 0===e&&(e=document),e.querySelector(t)||void 0}function Te(t){return{x:t.scrollLeft,y:t.scrollTop}}function Oe(){return function(t){return t.lift(new je(t))}}var je=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new Ie(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),Ie=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return c(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)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}(_),Ne=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 b).add(this.source.subscribe(new ke(this.getSubject(),this))),t.closed&&(this._connection=null,t=b.EMPTY)),t},e.prototype.refCount=function(){return Oe()(this)},e}(O),Ae=function(){var t=Ne.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}}}(),ke=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 Pe=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 Ce(){return new k}function qe(){return function(t){return Oe()((e=Ce,function(t){var n;if(n="function"==typeof e?e:function(){return e},"function"==typeof r)return t.lift(new Pe(n,r));var i=Object.create(t,Ae);return i.source=t,i.subjectFactory=n,i})(t));var e,r}}var $e=K(window,"hashchange"),Me=K(window,"popstate");function Re(){var t=new k;return Me.pipe(L((function(){return location.href})),qe()).subscribe(t),t}function He(){return $e.pipe(L((function(){return location.hash})),ut((function(t){return t.length>0})),qe())}function De(t){var e=matchMedia(t);return function t(e,r,n){return n?t(e,r).pipe(L((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;r<arguments.length;r++)e[r]=arguments[r];return t.next(1===e.length?e[0]:e)};try{n=e(i)}catch(e){return void t.error(e)}if(a(r))return function(){return r(i,n)}}))}((function(t){return e.addListener((function(){return t(e.matches)}))})).pipe(ge(e.matches),ve(1))}var Le=K(window,"scroll"),Ve=K(window,"resize");function Ue(){return{x:pageXOffset,y:pageYOffset}}function Ye(){return{width:innerWidth,height:innerHeight}}function Fe(){return ot(Le,Ve).pipe(L(Ue),ge(Ue()),ve(1))}function ze(){return Ve.pipe(L(Ye),ge(Ye()),ve(1))}var Xe={leading:!0,trailing:!1};var We=function(){function t(t,e,r){this.durationSelector=t,this.leading=e,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new Be(t,this.durationSelector,this.leading,this.trailing))},t}(),Be=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=r,o._leading=n,o._trailing=i,o._hasValue=!1,o}return c(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=Z(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,r,n,i){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(tt);function Ge(t,e){var r,n,i=e.send$,o=K(t,"message").pipe(ht("data"),qe());return i.pipe((r=function(){return o},void 0===(n={leading:!0,trailing:!0})&&(n=Xe),function(t){return t.lift(new We(r,n.leading,n.trailing))}),at((function(e){return t.postMessage(e)})),qt(o),qe())}var Je=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}(Et),Ke=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<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(Ot))(Je);function Qe(t){return function(e){return e.lift(new tr(t))}}var Ze,tr=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new er(t,this.callback))},t}(),er=function(t){function e(e,r){var n=t.call(this,e)||this;return n.add(new b(r)),n}return c(e,t),e}(_);function rr(t,e){t.setAttribute("data-md-state",e?"blur":"")}function nr(t){t.removeAttribute("data-md-state")}function ir(t,e){t.classList.toggle("md-nav__link--active",e)}function or(t){t.classList.remove("md-nav__link--active")}function ur(t,e){t.appendChild(e)}function sr(t,e){return void 0===e&&(e=0),E(L((function(t){return t.y>=e})),wt(),fe(Ke),at((function(e){!function(t,e){t.setAttribute("data-md-state",e?"hidden":"")}(t,e)})),Qe((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}function cr(t,e){var r=e;if(t.length>r){for(;" "!==t[r]&&--r>0;);return t.substring(0,r)+"..."}return t}function ar(t,e){if(void 0===Ze){var r=Ee("#__lang");Ze=JSON.parse(r.innerText)}if(void 0===Ze[t])throw new ReferenceError("Invalid translation: "+t);return void 0!==e?Ze[t].replace("#",e):Ze[t]}var fr=function(){return(fr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},lr=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 hr(t){return e=function(){var e="fixed"===getComputedStyle(t).getPropertyValue("position");return R({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?G(r):D()).subscribe(t)}));var e}var pr={};function dr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=null,n=null;return C(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&d(t[0])&&(t=t[0]),M(t,n).lift(new yr(r))}var yr=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new vr(t,this.resultSelector))},t}(),vr=function(t){function e(e,r){var n=t.call(this,e)||this;return n.resultSelector=r,n.active=0,n.values=[],n.observables=[],n}return c(e,t),e.prototype._next=function(t){this.values.push(pr),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var n=t[r];this.add(Z(this,n,n,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,i){var o=this.values,u=o[r],s=this.toRespond?u===pr?--this.toRespond:this.toRespond:0;o[r]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(tt),br=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)u.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 u};function mr(t,e,r){var n=e.viewport,i=r.header$,o=n.size$.pipe(qt(i),L((function(e){var r=e.height;return t.offsetTop-r})),wt());return dr([n.offset$,o]).pipe(L((function(t){var e=br(t,2),r=e[0];return{x:r.x,y:r.y-e[1]}})),ve(1))}r(6);var wr=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 _r(t,e){var r,n;if("string"==typeof e||"number"==typeof e)t.innerHTML+=e.toString();else if(e instanceof Node)t.appendChild(e);else if(Array.isArray(e))try{for(var i=wr(e),o=i.next();!o.done;o=i.next()){_r(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 gr(t,e){for(var r,n,i,o,u=[],s=2;s<arguments.length;s++)u[s-2]=arguments[s];var c=document.createElement(t);if(e)try{for(var a=wr(ne(e)),f=a.next();!f.done;f=a.next()){var l=f.value;"boolean"!=typeof e[l]?c.setAttribute(l,e[l]):e[l]&&c.setAttribute(l,"")}}catch(t){r={error:t}}finally{try{f&&!f.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}try{for(var h=wr(u),p=h.next();!p.done;p=h.next()){_r(c,p.value)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}return c}var xr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var r=new Sr(t),n=Z(r,this.notifier);return n&&!r.seenValue?(r.add(n),e.subscribe(r)):r},t}(),Sr=function(t){function e(e){var r=t.call(this,e)||this;return r.seenValue=!1,r}return c(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(tt),Er=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)u.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 u};function Tr(t,e){var r=t.pipe(ut((function(t){return t}))),n=t.pipe(ut((function(t){return!t})));return E(vt((function(t){return dr([R(t),r])})),vt((function(t){var r,i=Er(t,2),o=i[0];return i[1]?e(o).pipe((r=n,function(t){return t.lift(new xr(r))})):H})))}var Or=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)u.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 u};function jr(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 Ir(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function Nr(t,e,r){for(var n=0,i=r.length;n<i;){if(t(e,r[n]))return!0;n+=1}return!1}var Ar="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},kr=i((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function Pr(t,e,r,n){var i=Ir(t);function o(t,e){return Cr(t,e,r.slice(),n.slice())}return!Nr((function(t,e){return!Nr(o,e,t)}),Ir(e),i)}function Cr(t,e,r,n){if(Ar(t,e))return!0;var i,o,u=kr(t);if(u!==kr(e))return!1;if(null==t||null==e)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(i=t.constructor,null==(o=String(i).match(/^function (\w*)/))?"":o[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!Ar(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!Ar(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var s=r.length-1;s>=0;){if(r[s]===t)return n[s]===e;s-=1}switch(u){case"Map":return t.size===e.size&&Pr(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&Pr(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=ne(t);if(c.length!==ne(e).length)return!1;var a=r.concat([t]),f=n.concat([e]);for(s=c.length-1;s>=0;){var l=c[s];if(!Jt(l,e)||!Cr(e[l],t[l],a,f))return!1;s-=1}return!0}var qr=jr((function(t,e){return Cr(t,e,[],[])})),$r=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)u.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 u};function Mr(t,e,r){var n=e.viewport,i=r.main$,o=parseFloat(getComputedStyle(t.parentElement).getPropertyValue("padding-top")),u=dr([n.offset$,i]).pipe(L((function(t){var e=$r(t,2),r=e[0].y,n=e[1],i=n.offset;return n.height-o+Math.min(o,Math.max(0,r-i))}))),s=dr([n.offset$,i]).pipe(L((function(t){var e=$r(t,2);return e[0].y>=e[1].offset+o})));return dr([u,s]).pipe(L((function(t){var e=$r(t,2);return{height:e[0],lock:e[1]}})),wt(qr),ve(1))}function Rr(t){return E(fe(Ke),at((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)})))}function Hr(t){return K(t,"click").pipe(be(!0))}var Dr={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 Lr={link:"md-search-result__link",article:"md-search-result__article",title:"md-search-result__title",teaser:"md-search-result__teaser"};function Vr(t){var e=t.location,r=t.title,n=t.text;return gr("a",{href:e,title:r,class:Lr.link,tabIndex:-1},gr("article",{class:Lr.article},gr("h1",{class:Lr.title},r),n.length?gr("p",{class:Lr.teaser},cr(n,320)):void 0))}var Ur={item:"md-search-result__item"};function Yr(t){var e=t.article,r=t.sections;return gr("li",{class:Ur.item},function(t){var e=t.location,r=t.title,n=t.text;return gr("a",{href:e,title:r,class:Dr.link,tabIndex:-1},gr("article",{class:Dr.article},gr("h1",{class:Dr.title},r),n.length?gr("p",{class:Dr.teaser},cr(n,320)):void 0))}(e),r.map(Vr))}var Fr=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new zr(t,this.observables,this.project))},t}(),zr=function(t){function e(e,r,n){var i=t.call(this,e)||this;i.observables=r,i.project=n,i.toRespond=[];var o=r.length;i.values=new Array(o);for(var u=0;u<o;u++)i.toRespond.push(u);for(u=0;u<o;u++){var s=r[u];i.add(Z(i,s,s,u))}return i}return c(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.values[r]=e;var o=this.toRespond;if(o.length>0){var u=o.indexOf(r);-1!==u&&o.splice(u,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(tt),Xr=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)u.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 u};function Wr(t,e){var r=e.query$,n=Ee(".md-search-result__meta",t);return E(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var r;"function"==typeof t[t.length-1]&&(r=t.pop());var n=t;return e.lift(new Fr(n,r))}}(r),L((function(t){var e=Xr(t,2),r=e[0];return e[1]?function(t,e){t.textContent=e>1?ar("search.result.other",e.toString()):ar(1===e?"search.result.one":"search.result.none")}(n,r.length):function(t){t.textContent=ar("search.result.placeholder")}(n),r})))}function Br(t,e){var r=e.result$,n=e.query$;return E(vt((function(e){var i=e.parentElement,o=function(t,e){var r=e.viewport;return ot(K(t,"scroll"),r.size$).pipe(L((function(){return Te(t)})),ge(Te(t)),ve(1))}(i,t).pipe(L((function(t){return t.y>=i.scrollHeight-i.offsetHeight-16})),wt(),ut(u));return r.pipe(Wr(e,{query$:n}),function(t,e){var r=e.render$,n=t.parentElement,i=Ee(".md-search-result__list",t);return E(vt((function(t){return r.pipe(fe(Ke),oe((function(e){for(;e<t.length&&(ur(i,Yr(t[e++])),!(n.scrollHeight-n.offsetHeight>16)););return e}),0),be(t),Qe((function(){!function(t){t.innerHTML=""}(i)})))})))}(e,{render$:o}))})))}var Gr=i((function(t){return e=t,"[object String]"===Object.prototype.toString.call(e)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse();var e}));function Jr(t,e){return function(t,e,r){var n,i;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(n=1/e;r<t.length;){if(0===(i=t[r])&&1/i===n)return r;r+=1}return-1}if(e!=e){for(;r<t.length;){if("number"==typeof(i=t[r])&&i!=i)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(null===e)return t.indexOf(e,r)}for(;r<t.length;){if(qr(t[r],e))return r;r+=1}return-1}(e,t,0)>=0}function Kr(t,e,r){var n,i=typeof t;switch(i){case"string":case"number":return 0===t&&1/t==-1/0?!!r._items["-0"]||(e&&(r._items["-0"]=!0),!1):null!==r._nativeSet?e?(n=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===n):r._nativeSet.has(t):i in r._items?t in r._items[i]||(e&&(r._items[i][t]=!0),!1):(e&&(r._items[i]={},r._items[i][t]=!0),!1);case"boolean":if(i in r._items){var o=t?1:0;return!!r._items[i][o]||(e&&(r._items[i][o]=!0),!1)}return e&&(r._items[i]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?e?(n=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===n):r._nativeSet.has(t):i in r._items?!!Jr(t,r._items[i])||(e&&r._items[i].push(t),!1):(e&&(r._items[i]=[t]),!1);case"undefined":return!!r._items[i]||(e&&(r._items[i]=!0),!1);case"object":if(null===t)return!!r._items.null||(e&&(r._items.null=!0),!1);default:return(i=Object.prototype.toString.call(t))in r._items?!!Jr(t,r._items[i])||(e&&r._items[i].push(t),!1):(e&&(r._items[i]=[t]),!1)}}var Qr=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!Kr(t,!0,this)},t.prototype.has=function(t){return Kr(t,!1,this)},t}(),Zr=jr((function(t,e){for(var r=[],n=0,i=t.length,o=e.length,u=new Qr,s=0;s<o;s+=1)u.add(e[s]);for(;n<i;)u.add(t[n])&&(r[r.length]=t[n]),n+=1;return r})),tn=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.")},en=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)u.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 u},rn=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(en(arguments[e]));return t};var nn,on,un=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)u.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 u};function sn(t,e){var r=e.header$,n=e.main$;return E(Tr(t.media.tablet$,(function(e){var i,o,u=Mr(e,t,{main$:n}).pipe(Rr(e)),s=(i=".md-nav__link",void 0===(o=e)&&(o=document),Array.from(o.querySelectorAll(i))),c=function(t,e,r){var n,i,o=e.viewport,u=r.header$,s=new Map;try{for(var c=tn(t),a=c.next();!a.done;a=c.next()){var f=a.value,l=Ee('[id="'+decodeURIComponent(f.hash.substring(1))+'"]');void 0!==l&&s.set(f,l)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}var h=u.pipe(L((function(t){return 18+t.height})));return o.size$.pipe(L((function(){var t=[];return rn(s).reduce((function(e,r){for(var n=en(r,2),i=n[0],o=n[1];t.length;){if(!(s.get(t[t.length-1]).tagName>=o.tagName))break;t.pop()}return e.set(Gr(t=rn(t,[i])),o.offsetTop)}),new Map)})),vt((function(t){return dr(o.offset$,h).pipe(oe((function(t,e){for(var r=en(t,2),n=r[0],i=r[1],o=en(e,2),u=o[0].y,s=o[1];i.length;){if(!(en(i[0],2)[1]-s<u))break;n=rn(n,[i.shift()])}for(;n.length;){if(!(en(n[n.length-1],2)[1]-s>=u))break;i=rn([n.pop()],i)}return[n,i]}),[[],rn(t)]),wt((function(t,e){return t[0]===e[0]&&t[1]===e[1]})))}))).pipe(L((function(t){var e=en(t,2),r=e[0],n=e[1];return{prev:r.map((function(t){return en(t,1)[0]})),next:n.map((function(t){return en(t,1)[0]}))}})),oe((function(t,e){var r=Math.max(0,Math.min(e.prev.length,t.prev.length)-1),n=Math.max(e.prev.length,t.prev.length);return{prev:e.prev.slice(r,n+1),next:Zr(e.next,t.next)}}),{prev:[],next:[]})).pipe(ve(1))}(s,t,{header$:r}).pipe(function(t){return E(fe(Ke),at((function(t){var e,r,n,i,o=t.prev,u=t.next;try{for(var s=tn(u),c=s.next();!c.done;c=s.next()){or(l=en(c.value,1)[0]),nr(l)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}try{for(var a=tn(o.entries()),f=a.next();!f.done;f=a.next()){var l,h=en(f.value,2),p=h[0];ir(l=en(h[1],1)[0],p===o.length-1),rr(l,!0)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}})),Qe((function(){var e,r;try{for(var n=tn(t),i=n.next();!i.done;i=n.next()){var o=i.value;or(o),nr(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}})))}(s));return dr([u,c]).pipe(L((function(t){var e=un(t,2);return{sidebar:e[0],anchors:e[1]}})))})),ve(1))}function cn(t){return t.type===on.DUMP}function an(t){return t.type===on.RESULT}!function(t){t[t.STRING=0]="STRING",t[t.BINARY=1]="BINARY"}(nn||(nn={})),function(t){t[t.SETUP=0]="SETUP",t[t.DUMP=1]="DUMP",t[t.QUERY=2]="QUERY",t[t.RESULT=3]="RESULT"}(on||(on={})),r.d(e,"isConfig",(function(){return hn})),r.d(e,"initialize",(function(){return dn}));var fn=function(){return(fn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},ln=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)u.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 u};function hn(t){return"object"==typeof t&&"string"==typeof t.base}var pn=["header","title","search","query","reset","result","container","main","hero","tabs","navigation","toc"];function dn(t){if(!hn(t))throw new SyntaxError("Invalid configuration: "+JSON.stringify(t));var e={document:{load$:Se()},location:{href$:Re(),hash$:He()},media:{screen$:De("(min-width: 1220px)"),tablet$:De("(min-width: 960px)")},viewport:{offset$:Fe(),size$:ze()}},r=new Worker(t.worker.search),n=new Worker(t.worker.packer),i=new k,o=Ge(n,{send$:i});o.subscribe((function(t){console.log("PACKER.MSG",t.data.length),t.type===nn.BINARY&&"{"!==t.data[0]&&localStorage.setItem("index",t.data)}));var s=new k,c=Ge(r,{send$:s});c.pipe(ut(cn),L((function(t){return{type:nn.STRING,data:t.data}})),at((function(t){return i.next(t)}))).subscribe();var a,f=Gt({url:t.base+"/search/search_index.json",responseType:"json",withCredentials:!0}).pipe(ht("response")),l=localStorage.getItem("index");(l?R({type:nn.BINARY,data:localStorage.getItem("index")}):H).subscribe((function(t){i.next(t)})),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var r=t[0];if(d(r))return J(r,null);if(y(r)&&Object.getPrototypeOf(r)===Object.prototype){var n=Object.keys(r);return J(n.map((function(t){return r[t]})),n)}}if("function"==typeof t[t.length-1]){var i=t.pop();return J(t=1===t.length&&d(t[0])?t[0]:t,null).pipe(L((function(t){return i.apply(void 0,t)})))}return J(t,null)}([f,l?o.pipe(ht("data"),(a=1,function(t){return 0===a?D():t.lift(new dt(a))})):R(void 0)]).pipe(L((function(t){var e=ln(t,2),r=e[0],n=e[1];return{type:on.SETUP,data:fn(fn({},r),{index:n})}}))).subscribe((function(t){s.next(t)}));Fe(),ze(),De("(min-width: 1220px)"),De("(min-width: 960px)"),Re(),He();var h,p=Se(),v=(h=pn,{document$:p}.document$.pipe(L((function(t){return h.reduce((function(e,r){var n,i=Ee("[data-md-component="+r+"]",t);return fr(fr({},e),void 0!==i?((n={})[r]=i,n):{})}),{})})),oe((function(t,e){var r,n;try{for(var i=lr(ne(t)),o=i.next();!o.done;o=i.next()){var u=o.value;switch(u){case"title":case"container":u in t&&void 0!==t[u]&&(t[u].replaceWith(e[u]),t[u]=e[u]);break;default:t[u]=Ee("[data-md-component="+u+"]")}}}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(ve(1))),b=function(t){return v.pipe(function(t){return E(vt((function(e){return void 0!==e[t]?R(e[t]):ie})))}(t))},m=b("header").pipe(vt(hr)),w=b("main").pipe(function(t,e){var r=t.viewport,n=e.header$;return E(vt((function(t){var e=n.pipe(ht("height")),i=dr([r.offset$,r.size$,e]).pipe(L((function(e){var r=Or(e,3),n=r[0].y,i=r[1].height,o=r[2],u=t.offsetTop,s=t.offsetHeight+u;return i-Math.max(0,u-n,o)-Math.max(0,i+n-s)})),wt()),o=dr([r.offset$,e]).pipe(L((function(e){var r=Or(e,2),n=r[0].y,i=r[1];return n>=t.offsetTop-i})),wt());return dr([i,e,o]).pipe(L((function(e){var r=Or(e,3),n=r[0],i=r[1],o=r[2];return{offset:t.offsetTop-i,height:n,active:o}})))})),ve(1))}(e,{header$:m}));b("header").pipe(vt((function(t){return w.pipe(function(t){return E(xt("active"),fe(Ke),at((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();var _=c.pipe(ut(an),ht("data")),g=b("query").pipe(vt((function(t){return K(t,"keyup").pipe(L((function(){return e=t.value,(r=e.replace(/(?:^|\s+)[*+-:^~]+(?=\s+|$)/g,"").trim())?r.replace(/\s+|$/g,"* "):"";var e,r})))})));b("result").pipe(Br(e,{result$:_,query$:g})).subscribe(),g.pipe(L((function(t){return{type:on.QUERY,data:t}})),xt("data")).subscribe((function(t){s.next(t)})),b("query").pipe(vt((function(t){return K(t,"focus").pipe(at((function(){S.checked||S.click()})))}))).subscribe(),b("navigation").pipe(function(t,e){var r=e.main$;return E(Tr(t.media.screen$,(function(e){return Mr(e,t,{main$:r}).pipe(Rr(e)).pipe(L((function(t){return{sidebar:t}})))})),ve(1))}(e,{main$:w})).subscribe(),b("toc").pipe(sn(e,{header$:m,main$:w})).subscribe(),b("tabs").pipe(function(t,e){var r=e.header$;return E(Tr(t.media.screen$,(function(e){return mr(e,t,{header$:r}).pipe(sr(e,8)).pipe(L((function(t){return{hidden:t}})))})),ve(1))}(e,{header$:m})).subscribe(),b("hero").pipe(function(t,e){var r=e.header$;return E(Tr(t.media.screen$,(function(e){return mr(e,t,{header$:r}).pipe(sr(e,20)).pipe(L((function(t){return{hidden:t}})))})),ve(1))}(e,{header$:m})).subscribe();Ee("[data-md-toggle=drawer]");var x,S=Ee("[data-md-toggle=search]");return ot((x=S,K(x,"change").pipe(ht("checked"))).pipe(ut(u),At(400)),b("reset").pipe(vt(Hr))).pipe(qt(b("query")),E(at((function(t){return t.focus()})))).subscribe(),{}}document.documentElement.classList.remove("no-js"),document.documentElement.classList.add("js")}]));
//# sourceMappingURL=bundle.js.map