mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
9 lines
91 KiB
JavaScript
9 lines
91 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 o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));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 i}));var n="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=n||void 0!==t&&t||o}).call(this,r(6))},,function(t,e,r){
|
|
/*!
|
|
* clipboard.js v2.0.4
|
|
* https://zenorocha.github.io/clipboard.js
|
|
*
|
|
* Licensed MIT © Zeno Rocha
|
|
*/
|
|
var n;n=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));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=0)}([function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=s(r(1)),u=s(r(3)),c=s(r(4));function s(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(t,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.resolveOptions(r),n.listenClick(t),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===n(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,c.default)(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new i.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return l("action",t)}},{key:"defaultTarget",value:function(t){var e=l("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return l("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,r=!!document.queryCommandSupported;return e.forEach((function(t){r=r&&!!document.queryCommandSupported(t)})),r}}]),e}(u.default);function l(t,e){var r="data-clipboard-"+t;if(e.hasAttribute(r))return e.getAttribute(r)}t.exports=a},function(t,e,r){"use strict";var n,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),u=r(2),c=(n=u)&&n.__esModule?n:{default:n},s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}return i(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=r+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=s},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var r=t.hasAttribute("readonly");r||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),r||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var n=window.getSelection(),o=document.createRange();o.selectNodeContents(t),n.removeAllRanges(),n.addRange(o),e=n.toString()}return e}},function(t,e){function r(){}r.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){var n=this;function o(){n.off(t,o),e.apply(r,arguments)}return o._=e,this.on(t,o,r)},emit:function(t){for(var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,o=r.length;n<o;n++)r[n].fn.apply(r[n].ctx,e);return this},off:function(t,e){var r=this.e||(this.e={}),n=r[t],o=[];if(n&&e)for(var i=0,u=n.length;i<u;i++)n[i].fn!==e&&n[i].fn._!==e&&o.push(n[i]);return o.length?r[t]=o:delete r[t],this}},t.exports=r},function(t,e,r){var n=r(5),o=r(6);t.exports=function(t,e,r){if(!t&&!e&&!r)throw new Error("Missing required arguments");if(!n.string(e))throw new TypeError("Second argument must be a String");if(!n.fn(r))throw new TypeError("Third argument must be a Function");if(n.node(t))return function(t,e,r){return t.addEventListener(e,r),{destroy:function(){t.removeEventListener(e,r)}}}(t,e,r);if(n.nodeList(t))return function(t,e,r){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,r)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,r)}))}}}(t,e,r);if(n.string(t))return function(t,e,r){return o(document.body,t,e,r)}(t,e,r);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var r=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===r||"[object HTMLCollection]"===r)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,r){var n=r(7);function o(t,e,r,n,o){var u=i.apply(this,arguments);return t.addEventListener(r,u,o),{destroy:function(){t.removeEventListener(r,u,o)}}}function i(t,e,r,o){return function(r){r.delegateTarget=n(r.target,e),r.delegateTarget&&o.call(t,r)}}t.exports=function(t,e,r,n,i){return"function"==typeof t.addEventListener?o.apply(null,arguments):"function"==typeof r?o.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return o(t,e,r,n,i)})))}},function(t,e){var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&t.nodeType!==r;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}}])},t.exports=n()},,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,r){"use strict";r.r(e);function n(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function o(t){return function e(r){return 0===arguments.length||n(r)?e:t.apply(this,arguments)}}function i(t){return t}var u=o(i);function c(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var s=Object.prototype.toString,a=function(){return"[object Arguments]"===s.call(arguments)?function(t){return"[object Arguments]"===s.call(t)}:function(t){return c("callee",t)}}(),l=!{toString:null}.propertyIsEnumerable("toString"),f=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],h=function(){return arguments.propertyIsEnumerable("length")}(),p=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1},d="function"!=typeof Object.keys||h?o((function(t){if(Object(t)!==t)return[];var e,r,n=[],o=h&&a(t);for(e in t)!c(e,t)||o&&"length"===e||(n[n.length]=e);if(l)for(r=f.length-1;r>=0;)c(e=f[r],t)&&!p(n,e)&&(n[n.length]=e),r-=1;return n})):o((function(t){return Object(t)!==t?[]:Object.keys(t)})),y=o((function(t){for(var e=d(t),r=e.length,n=[],o=0;o<r;)n[o]=t[e[o]],o+=1;return n})),v=function(t,e){return(v=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 b(t,e){function r(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function m(t){return"function"==typeof t}var w=!1,g={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;w=t},get useDeprecatedSynchronousErrorHandling(){return w}};function _(t){setTimeout((function(){throw t}),0)}var x={closed:!0,next:function(t){},error:function(t){if(g.useDeprecatedSynchronousErrorHandling)throw t;_(t)},complete:function(){}},S=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function E(t){return null!==t&&"object"==typeof t}var T=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}(),O=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,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof t)r.remove(this);else if(null!==r)for(var i=0;i<r.length;++i){r[i].remove(this)}if(m(n))try{n.call(this)}catch(t){e=t instanceof T?k(t.errors):[t]}if(S(o)){i=-1;for(var u=o.length;++i<u;){var c=o[i];if(E(c))try{c.unsubscribe()}catch(t){e=e||[],t instanceof T?e=e.concat(k(t.errors)):e.push(t)}}}if(e)throw new T(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 o=r._parentOrParents;if(null===o)r._parentOrParents=this;else if(o instanceof t){if(o===this)return r;r._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return r;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[r]:i.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 k(t){return t.reduce((function(t,e){return t.concat(e instanceof T?e.errors:e)}),[])}var j=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),A=function(t){function e(r,n,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=x;break;case 1:if(!r){i.destination=x;break}if("object"==typeof r){r instanceof e?(i.syncErrorThrowable=r.syncErrorThrowable,i.destination=r,r.add(i)):(i.syncErrorThrowable=!0,i.destination=new I(i,r));break}default:i.syncErrorThrowable=!0,i.destination=new I(i,r,n,o)}return i}return b(e,t),e.prototype[j]=function(){return this},e.create=function(t,r,n){var o=new e(t,r,n);return o.syncErrorThrowable=!1,o},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}(O),I=function(t){function e(e,r,n,o){var i,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return m(r)?i=r:r&&(i=r.next,n=r.error,o=r.complete,r!==x&&(m((c=Object.create(r)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=i,u._error=n,u._complete=o,u}return b(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;g.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=g.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):_(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;_(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)};g.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(),g.useDeprecatedSynchronousErrorHandling)throw t;_(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!g.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(e){return g.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(_(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(A);var N=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function C(){}function P(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return $(t)}function $(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:C}var M=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,o=function(t,e,r){if(t){if(t instanceof A)return t;if(t[j])return t[j]()}return t||e||r?new A(t,e,r):new A(x)}(t,e,r);if(n?o.add(n.call(o,this.source)):o.add(this.source||g.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),g.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){g.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,r=e.closed,n=e.destination,o=e.isStopped;if(r||o)return!1;t=n&&n instanceof A?n:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=q(e))((function(e,n){var o;o=r.subscribe((function(e){try{t(e)}catch(t){n(t),o&&o.unsubscribe()}}),n,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[N]=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)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=q(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 q(t){if(t||(t=g.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var L=new M((function(t){return t.complete()}));function R(t){return t?function(t){return new M((function(e){return t.schedule((function(){return e.complete()}))}))}(t):L}function H(t){return t&&"function"==typeof t.schedule}var F=function(t){return function(e){for(var r=0,n=t.length;r<n&&!e.closed;r++)e.next(t[r]);e.complete()}};function D(t,e){return new M((function(r){var n=new O,o=0;return n.add(e.schedule((function(){o!==t.length?(r.next(t[o++]),r.closed||n.add(this.schedule())):r.complete()}))),n}))}function V(t,e){return e?D(t,e):new M(F(t))}function U(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return H(r)?(t.pop(),D(t,r)):V(t)}var z=function(t){function e(e,r,n){var o=t.call(this)||this;return o.parent=e,o.outerValue=r,o.outerIndex=n,o.index=0,o}return b(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}(A);function Y(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var X=Y(),W=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function B(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var G=function(t){if(t&&"function"==typeof t[N])return n=t,function(t){var e=n[N]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(W(t))return F(t);if(B(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,_),t};if(t&&"function"==typeof t[X])return e=t,function(t){for(var r=e[X]();;){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,o=E(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+o+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function J(t,e,r,n,o){if(void 0===o&&(o=new z(t,r,n)),!o.closed)return e instanceof M?e.subscribe(o):G(e)(o)}var K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.notifyNext=function(t,e,r,n,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(A);function Q(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 Z(t,e))}}var Z=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new tt(t,this.project,this.thisArg))},t}(),tt=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.project=r,o.count=0,o.thisArg=n||o,o}return b(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}(A);function et(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[N]}(t))return function(t,e){return new M((function(r){var n=new O;return n.add(e.schedule((function(){var o=t[N]();n.add(o.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(B(t))return function(t,e){return new M((function(r){var n=new O;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(W(t))return D(t,e);if(function(t){return t&&"function"==typeof t[X]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new M((function(r){var n,o=new O;return o.add((function(){n&&"function"==typeof n.return&&n.return()})),o.add(e.schedule((function(){n=t[X](),o.add(e.schedule((function(){if(!r.closed){var t,e;try{var o=n.next();t=o.value,e=o.done}catch(t){return void r.error(t)}e?r.complete():(r.next(t),this.schedule())}})))}))),o}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function rt(t,e){return e?et(t,e):t instanceof M?t:new M(G(t))}var nt=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 ot(t,this.project,this.concurrent))},t}(),ot=function(t){function e(e,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=r,o.concurrent=n,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return b(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 z(this,void 0,void 0);this.destination.add(n),J(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,o){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}(K);function it(t){return t}function ut(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(o){return o.pipe(t((function(t,n){return rt(e(t,n)).pipe(Q((function(e,o){return r(t,e,n,o)})))}),n))}:("number"==typeof r&&(n=r),function(t){return t.lift(new nt(e,n))})}(it,t)}function ct(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Number.POSITIVE_INFINITY,n=null,o=t[t.length-1];return H(o)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof M?t[0]:ut(r)(V(t,n))}function st(t,e,r,n){return m(r)&&(n=r,r=void 0),n?st(t,e,r).pipe(Q((function(t){return S(t)?n.apply(void 0,t):n(t)}))):new M((function(n){!function t(e,r,n,o,i){var u;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var c=e;e.addEventListener(r,n,i),u=function(){return c.removeEventListener(r,n,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var s=e;e.on(r,n),u=function(){return s.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 l=0,f=e.length;l<f;l++)t(e[l],r,n,o,i)}o.add(u)}(t,e,(function(t){arguments.length>1?n.next(Array.prototype.slice.call(arguments)):n.next(t)}),n,r)}))}function at(t,e,r){return function(n){return n.lift(new lt(t,e,r))}}var lt=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 ft(t,this.nextOrObserver,this.error,this.complete))},t}(),ft=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i._tapNext=C,i._tapError=C,i._tapComplete=C,i._tapError=n||C,i._tapComplete=o||C,m(r)?(i._context=i,i._tapNext=r):r&&(i._context=r,i._tapNext=r.next||C,i._tapError=r.error||C,i._tapComplete=r.complete||C),i}return b(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}(A);function ht(t,e){return function(r){return r.lift(new pt(t,e))}}var pt=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new dt(t,this.predicate,this.thisArg))},t}(),dt=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.predicate=r,o.thisArg=n,o.count=0,o}return b(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}(A);function yt(t,e){return"function"==typeof e?function(r){return r.pipe(yt((function(r,n){return rt(t(r,n)).pipe(Q((function(t,o){return e(r,t,n,o)})))})))}:function(e){return e.lift(new bt(t))}}var vt,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 b(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 o=new z(this,void 0,void 0);this.destination.add(o),this.innerSubscription=J(this,t,e,r,o)},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,o){this.destination.next(e)},e}(K),wt=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 b(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 b(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(O)),gt=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}(),_t=function(t){function e(r,n){void 0===n&&(n=gt.now);var o=t.call(this,r,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():n()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return b(e,t),e.prototype.schedule=function(r,n,o){return void 0===n&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(r,n,o):t.prototype.schedule.call(this,r,n,o)},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}(gt),xt=new _t(wt);function St(t){var e=t.error;t.subscriber.error(e)}vt||(vt={});var Et=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 U(this.value);case"E":return t=this.error,new M(e?function(r){return e.schedule(St,0,{error:t,subscriber:r})}:function(e){return e.error(t)});case"C":return R()}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 Tt(t,e){void 0===e&&(e=xt);var r,n=(r=t)instanceof Date&&!isNaN(+r)?+t-e.now():Math.abs(t);return function(t){return t.lift(new Ot(n,e))}}var Ot=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new kt(t,this.delay,this.scheduler))},t}(),kt=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.delay=r,o.scheduler=n,o.queue=[],o.active=!1,o.errored=!1,o}return b(e,t),e.dispatch=function(t){for(var e=t.source,r=e.queue,n=t.scheduler,o=t.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(o);if(r.length>0){var i=Math.max(0,r[0].time-n.now());this.schedule(t,i)}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 jt(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(Et.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(Et.createComplete()),this.unsubscribe()},e}(A),jt=function(){return function(t,e){this.time=t,this.notification=e}}(),At=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),It=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return b(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}(O),Nt=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return b(e,t),e}(A),Ct=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 b(e,t),e.prototype[j]=function(){return new Nt(this)},e.prototype.lift=function(t){var e=new Pt(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new At;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),o=0;o<r;o++)n[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new At;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),o=0;o<r;o++)n[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new At;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 At;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new At;return this.hasError?(t.error(this.thrownError),O.EMPTY):this.isStopped?(t.complete(),O.EMPTY):(this.observers.push(t),new It(this,t))},e.prototype.asObservable=function(){var t=new M;return t.source=this,t},e.create=function(t,e){return new Pt(t,e)},e}(M),Pt=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return b(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):O.EMPTY},e}(Ct),$t=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return b(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}(wt),Mt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e}(_t))($t);function qt(t,e){return void 0===e&&(e=0),function(r){return r.lift(new Lt(t,e))}}var Lt=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 Rt(t,this.scheduler,this.delay))},t}(),Rt=function(t){function e(e,r,n){void 0===n&&(n=0);var o=t.call(this,e)||this;return o.scheduler=r,o.delay=n,o}return b(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 Ht(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Et.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Et.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(Et.createComplete()),this.unsubscribe()},e}(A),Ht=function(){return function(t,e){this.notification=t,this.destination=e}}(),Ft=function(t){function e(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this)||this;return o.scheduler=n,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=e<1?1:e,o._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return b(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 Dt(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(),o=this.scheduler,i=n.length;if(this.closed)throw new At;if(this.isStopped||this.hasError?e=O.EMPTY:(this.observers.push(t),e=new It(this,t)),o&&t.add(t=new Rt(t,o)),r)for(var u=0;u<i&&!t.closed;u++)t.next(n[u]);else for(u=0;u<i&&!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||Mt).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,r=this._windowTime,n=this._events,o=n.length,i=0;i<o&&!(t-n[i].time<r);)i++;return o>e&&(i=Math.max(i,o-e)),i>0&&n.splice(0,i),n},e}(Ct),Dt=function(){return function(t,e){this.time=t,this.value=e}}();function Vt(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,o=void 0===n?Number.POSITIVE_INFINITY:n,i=t.windowTime,u=void 0===i?Number.POSITIVE_INFINITY:i,c=t.refCount,s=t.scheduler,a=0,l=!1,f=!1;return function(t){a++,e&&!l||(l=!1,e=new Ft(o,u,s),r=t.subscribe({next:function(t){e.next(t)},error:function(t){l=!0,e.error(t)},complete:function(){f=!0,e.complete()}}));var n=e.subscribe(this);this.add((function(){a--,n.unsubscribe(),r&&!f&&c&&0===a&&(r.unsubscribe(),r=void 0,e=void 0)}))}}(n))}}function Ut(t){return function(e){return e.lift(new zt(t))}}var zt=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Yt(t,this.value))},t}(),Yt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return b(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(A);var Xt=r(2);function Wt(t,e){return void 0===e&&(e=null),new te({method:"GET",url:t,headers:e})}function Bt(t,e,r){return new te({method:"POST",url:t,body:e,headers:r})}function Gt(t,e){return new te({method:"DELETE",url:t,headers:e})}function Jt(t,e,r){return new te({method:"PUT",url:t,body:e,headers:r})}function Kt(t,e,r){return new te({method:"PATCH",url:t,body:e,headers:r})}var Qt=Q((function(t,e){return t.response}));function Zt(t,e){return Qt(new te({method:"GET",url:t,responseType:"json",headers:e}))}var te=function(t){function e(e){var r=t.call(this)||this,n={async:!0,createXHR:function(){return this.crossDomain?function(){if(Xt.a.XMLHttpRequest)return new Xt.a.XMLHttpRequest;if(Xt.a.XDomainRequest)return new Xt.a.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(Xt.a.XMLHttpRequest)return new Xt.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 Xt.a.ActiveXObject(t))break}catch(t){}return new Xt.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 o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);return r.request=n,r}var r;return b(e,t),e.prototype._subscribe=function(t){return new ee(t,this.request)},e.create=((r=function(t){return new e(t)}).get=Wt,r.post=Bt,r.delete=Gt,r.put=Jt,r.patch=Kt,r.getJSON=Zt,r),e}(M),ee=function(t){function e(e,r){var n=t.call(this,e)||this;n.request=r,n.done=!1;var o=r.headers=r.headers||{};return r.crossDomain||n.getHeader(o,"X-Requested-With")||(o["X-Requested-With"]="XMLHttpRequest"),n.getHeader(o,"Content-Type")||Xt.a.FormData&&r.body instanceof Xt.a.FormData||void 0===r.body||(o["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 b(e,t),e.prototype.next=function(t){this.done=!0;var e,r=this.xhr,n=this.request,o=this.destination;try{e=new re(t,r,n)}catch(t){return o.error(t)}o.next(e)},e.prototype.send=function(){var t=this.request,e=this.request,r=e.user,n=e.method,o=e.url,i=e.async,u=e.password,c=e.headers,s=e.body;try{var a=this.xhr=t.createXHR();this.setupEvents(a,t),r?a.open(n,o,i,r,u):a.open(n,o,i),i&&(a.timeout=t.timeout,a.responseType=t.responseType),"withCredentials"in a&&(a.withCredentials=!!t.withCredentials),this.setHeaders(a,c),s?a.send(s):a.send()}catch(t){this.error(t)}},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(Xt.a.FormData&&t instanceof Xt.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,o=r.subscriber,i=r.progressSubscriber,u=r.request;i&&i.error(t);try{e=new ie(this,u)}catch(t){e=t}o.error(e)}if(t.ontimeout=n,n.request=e,n.subscriber=this,n.progressSubscriber=r,t.upload&&"withCredentials"in t){var o,i;if(r)o=function(t){o.progressSubscriber.next(t)},Xt.a.XDomainRequest?t.onprogress=o:t.upload.onprogress=o,o.progressSubscriber=r;i=function(t){var e,r=i,n=r.progressSubscriber,o=r.subscriber,u=r.request;n&&n.error(t);try{e=new ne("ajax error",this,u)}catch(t){e=t}o.error(e)},t.onerror=i,i.request=e,i.subscriber=this,i.progressSubscriber=r}function u(t){}function c(t){var e=c,r=e.subscriber,n=e.progressSubscriber,o=e.request;if(4===this.readyState){var i=1223===this.status?204:this.status,u="text"===this.responseType?this.response||this.responseText:this.response;if(0===i&&(i=u?200:0),i<400)n&&n.complete(),r.next(t),r.complete();else{n&&n.error(t);var s=void 0;try{s=new ne("ajax error "+i,this,o)}catch(t){s=t}r.error(s)}}}t.onreadystatechange=u,u.subscriber=this,u.progressSubscriber=r,u.request=e,t.onload=c,c.subscriber=this,c.progressSubscriber=r,c.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}(A),re=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=oe(this.responseType,e)}}(),ne=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=oe(this.responseType,e),this}return t.prototype=Object.create(Error.prototype),t}();function oe(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 ie=function(t,e){return ne.call(this,"ajax timeout",t,e),this.name="AjaxTimeoutError",this},ue=function(){return te.create}();function ce(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ut(1)(U.apply(void 0,t))}function se(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return H(r)?(t.pop(),function(e){return ce(t,e,r)}):function(e){return ce(t,e)}}function ae(t,e){return function(r){return r.lift(new le(t,e))}}var le=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new fe(t,this.compare,this.keySelector))},t}(),fe=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.keySelector=n,o.hasKey=!1,"function"==typeof r&&(o.compare=r),o}return b(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}(A);function he(){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 Q(function(t,e){return function(r){for(var n=r,o=0;o<e;o++){var i=n[t[o]];if(void 0===i)return;n=i}return n}}(t,r))(e)}}function pe(t,e){return void 0===e&&(e=document),e.querySelector(t)||void 0}function de(t,e){void 0===e&&(e=document);var r=pe(t,e);if(void 0===r)throw new ReferenceError('Missing element: expected "'+t+'" to match an element');return r}function ye(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}function ve(t,e){return void 0===e&&(e=document),Array.from(e.querySelectorAll(t))}function be(t,e){void 0===e&&(e=!0),e?t.focus():t.blur()}function me(t,e){return ae((function(r,n){return e?e(r[t],n[t]):r[t]===n[t]}))}function we(t){return{x:t.scrollLeft,y:t.scrollTop}}function ge(){return function(t){return t.lift(new _e(t))}}var _e=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new xe(t,r),o=e.subscribe(n);return n.closed||(n.connection=r.connect()),o},t}(),xe=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return b(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}(A),Se=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 b(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 O).add(this.source.subscribe(new Te(this.getSubject(),this))),t.closed&&(this._connection=null,t=O.EMPTY)),t},e.prototype.refCount=function(){return ge()(this)},e}(M),Ee=function(){var t=Se.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}}}(),Te=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return b(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}(Nt);var Oe=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(),o=r(n).subscribe(t);return o.add(e.subscribe(n)),o},t}();function ke(){return new Ct}function je(){return function(t){return ge()((e=ke,function(t){var n;if(n="function"==typeof e?e:function(){return e},"function"==typeof r)return t.lift(new Oe(n,r));var o=Object.create(t,Ee);return o.source=t,o.subjectFactory=n,o})(t));var e,r}}function Ae(t,e,r){return r?Ae(t,e).pipe(Q((function(t){return S(t)?r.apply(void 0,t):r(t)}))):new M((function(r){var n,o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.next(1===t.length?t[0]:t)};try{n=t(o)}catch(t){return void r.error(t)}if(m(e))return function(){return e(o,n)}}))}function Ie(t){var e=matchMedia(t);return Ae((function(t){return e.addListener((function(){return t(e.matches)}))})).pipe(se(e.matches),Vt(1))}var Ne={};function Ce(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=null,n=null;return H(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&S(t[0])&&(t=t[0]),V(t,n).lift(new Pe(r))}var Pe=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new $e(t,this.resultSelector))},t}(),$e=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 b(e,t),e.prototype._next=function(t){this.values.push(Ne),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(J(this,n,n,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,o){var i=this.values,u=i[r],c=this.toRespond?u===Ne?--this.toRespond:this.toRespond:0;i[r]=e,0===c&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.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}(K),Me=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function qe(){return{x:pageXOffset,y:pageYOffset}}function Le(){return{width:innerWidth,height:innerHeight}}var Re=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function He(t,e){var r=e.header$;return Ce([e.viewport$,r]).pipe(Q((function(e){var r=Re(e,2),n=r[0],o=n.offset,i=n.size,u=r[1].height;return{offset:{x:o.x-t.offsetLeft,y:o.y-t.offsetTop+u},size:i}})),Vt(1))}var Fe={leading:!0,trailing:!1};var De=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 Ve(t,this.durationSelector,this.leading,this.trailing))},t}(),Ve=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.destination=e,i.durationSelector=r,i._leading=n,i._trailing=o,i._hasValue=!1,i}return b(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=J(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,o){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(K);function Ue(t,e){return e?yt((function(){return t}),e):yt((function(){return t}))}function ze(t,e){var r,n,o=e.tx$,i=st(t,"message").pipe(he("data"));return o.pipe((r=function(){return i},void 0===(n={leading:!0,trailing:!0})&&(n=Fe),function(t){return t.lift(new De(r,n.leading,n.trailing))}),at((function(e){return t.postMessage(e)})),Ue(i),je())}var Ye=o((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 Xe(t){return function e(r,i){switch(arguments.length){case 0:return e;case 1:return n(r)?e:o((function(e){return t(r,e)}));default:return n(r)&&n(i)?e:n(r)?o((function(e){return t(e,i)})):n(i)?o((function(e){return t(r,e)})):t(r,i)}}}function We(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function Be(t,e,r){for(var n=0,o=r.length;n<o;){if(t(e,r[n]))return!0;n+=1}return!1}var Ge="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},Je=o((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function Ke(t,e,r,n){var o=We(t);function i(t,e){return Qe(t,e,r.slice(),n.slice())}return!Be((function(t,e){return!Be(i,e,t)}),We(e),o)}function Qe(t,e,r,n){if(Ge(t,e))return!0;var o,i,u=Je(t);if(u!==Je(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"===(o=t.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!Ge(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!Ge(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&&Ke(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&Ke(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 a=d(t);if(a.length!==d(e).length)return!1;var l=r.concat([t]),f=n.concat([e]);for(s=a.length-1;s>=0;){var h=a[s];if(!c(h,e)||!Qe(e[h],t[h],l,f))return!1;s-=1}return!0}var Ze=Xe((function(t,e){return Qe(t,e,[],[])}));function tr(t,e){return function(t,e,r){var n,o;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(n=1/e;r<t.length;){if(0===(o=t[r])&&1/o===n)return r;r+=1}return-1}if(e!=e){for(;r<t.length;){if("number"==typeof(o=t[r])&&o!=o)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(Ze(t[r],e))return r;r+=1}return-1}(e,t,0)>=0}function er(t,e,r){var n,o=typeof t;switch(o){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):o in r._items?t in r._items[o]||(e&&(r._items[o][t]=!0),!1):(e&&(r._items[o]={},r._items[o][t]=!0),!1);case"boolean":if(o in r._items){var i=t?1:0;return!!r._items[o][i]||(e&&(r._items[o][i]=!0),!1)}return e&&(r._items[o]=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):o in r._items?!!tr(t,r._items[o])||(e&&r._items[o].push(t),!1):(e&&(r._items[o]=[t]),!1);case"undefined":return!!r._items[o]||(e&&(r._items[o]=!0),!1);case"object":if(null===t)return!!r._items.null||(e&&(r._items.null=!0),!1);default:return(o=Object.prototype.toString.call(t))in r._items?!!tr(t,r._items[o])||(e&&r._items[o].push(t),!1):(e&&(r._items[o]=[t]),!1)}}var rr=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!er(t,!0,this)},t.prototype.has=function(t){return er(t,!1,this)},t}(),nr=Xe((function(t,e){for(var r=[],n=0,o=t.length,i=e.length,u=new rr,c=0;c<i;c+=1)u.add(e[c]);for(;n<o;)u.add(t[n])&&(r[r.length]=t[n]),n+=1;return r})),or=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return b(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}(wt),ir=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,o=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<o&&(t=r.shift()));if(this.active=!1,e){for(;++n<o&&(t=r.shift());)t.unsubscribe();throw e}},e}(_t))(or);function ur(t,e){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new cr(t,e,r))}}var cr=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 sr(t,this.accumulator,this.seed,this.hasSeed))},t}(),sr=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.accumulator=r,i._seed=n,i.hasSeed=o,i.index=0,i}return b(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}(A);function ar(t){return function(e){return e.lift(new lr(t))}}var lr=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new fr(t,this.callback))},t}(),fr=function(t){function e(e,r){var n=t.call(this,e)||this;return n.add(new O(r)),n}return b(e,t),e}(A);function hr(t,e){t.setAttribute("data-md-state",e?"blur":"")}function pr(t){t.removeAttribute("data-md-state")}function dr(t,e){t.classList.toggle("md-nav__link--active",e)}function yr(t){t.classList.remove("md-nav__link--active")}function vr(t){t.style.backgroundColor="",t.style.webkitOverflowScrolling=""}var br=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 mr(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 o=br(e),i=o.next();!i.done;i=o.next()){mr(t,i.value)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}function wr(t,e){for(var r,n,o,i,u=[],c=2;c<arguments.length;c++)u[c-2]=arguments[c];var s=document.createElement(t);if(e)try{for(var a=br(d(e)),l=a.next();!l.done;l=a.next()){var f=l.value;"boolean"!=typeof e[f]?s.setAttribute(f,e[f]):e[f]&&s.setAttribute(f,"")}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}try{for(var h=br(u),p=h.next();!p.done;p=h.next()){mr(s,p.value)}}catch(t){o={error:t}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}return s}var gr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var r=new _r(t),n=J(r,this.notifier);return n&&!r.seenValue?(r.add(n),e.subscribe(r)):r},t}(),_r=function(t){function e(e){var r=t.call(this,e)||this;return r.seenValue=!1,r}return b(e,t),e.prototype.notifyNext=function(t,e,r,n,o){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(K);function xr(){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 Er(n,r))}}var Sr,Er=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new Tr(t,this.observables,this.project))},t}(),Tr=function(t){function e(e,r,n){var o=t.call(this,e)||this;o.observables=r,o.project=n,o.toRespond=[];var i=r.length;o.values=new Array(i);for(var u=0;u<i;u++)o.toRespond.push(u);for(u=0;u<i;u++){var c=r[u];o.add(J(o,c,c,u))}return o}return b(e,t),e.prototype.notifyNext=function(t,e,r,n,o){this.values[r]=e;var i=this.toRespond;if(i.length>0){var u=i.indexOf(r);-1!==u&&i.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}(K),Or=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function kr(t,e){var r=t.pipe(ht((function(t){return t}))),n=t.pipe(ht((function(t){return!t})));return P(yt((function(t){return Ce([U(t),r])})),yt((function(t){var r,o=Or(t,2),i=o[0];return o[1]?e(i).pipe((r=n,function(t){return t.lift(new gr(r))})):L})))}function jr(t,e){if(void 0===Sr){var r=de("#__lang");Sr=JSON.parse(r.innerText)}if(void 0===Sr[t])throw new ReferenceError("Invalid translation: "+t);return void 0!==e?Sr[t].replace("#",e):Sr[t]}function Ar(t,e){t.appendChild(e)}function Ir(t,e){t.checked!==e&&t.click()}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.")},Cr=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},Pr=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Cr(arguments[e]));return t};function $r(t){var e="sticky"===getComputedStyle(t).position;return U({sticky:e,height:e?t.offsetHeight:0})}var Mr=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function qr(t,e){return void 0===e&&(e=0),P(Q((function(t){return t.offset.y>=e})),ae(),qt(ir),at((function(e){!function(t,e){t.setAttribute("data-md-state",e?"hidden":"")}(t,e)})),ar((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}var Lr=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function Rr(t,e){var r=e.main$,n=e.viewport$,o=parseFloat(getComputedStyle(t.parentElement).getPropertyValue("padding-top")),i=Ce([n,r]).pipe(Q((function(t){var e=Lr(t,2),r=e[0].offset.y,n=e[1],i=n.offset;return n.height-o+Math.min(o,Math.max(0,r-i))}))),u=Ce([n,r]).pipe(Q((function(t){var e=Lr(t,2);return e[0].offset.y>=e[1].offset+o})));return Ce([i,u]).pipe(Q((function(t){var e=Lr(t,2);return{height:e[0],lock:e[1]}})),ae(Ze),Vt(1))}function Hr(t){return P(qt(ir),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)})),ar((function(){!function(t){t.style.height=""}(t),function(t){t.removeAttribute("data-md-state")}(t)})))}var Fr=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function Dr(t){return null!=t&&"function"==typeof t["@@transducer/step"]}function Vr(t,e,r){return function(){if(0===arguments.length)return r();var n=Array.prototype.slice.call(arguments,0),o=n.pop();if(!Fr(o)){for(var i=0;i<t.length;){if("function"==typeof o[t[i]])return o[t[i]].apply(o,n);i+=1}if(Dr(o)){var u=e.apply(null,n);return u(o)}}return r.apply(this,arguments)}}var Ur=function(){return this.xf["@@transducer/init"]()},zr=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Ur,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.last=e),t},t}(),Yr=Xe(Vr([],Xe((function(t,e){return new zr(t,e)})),(function(t,e){for(var r=e.length-1;r>=0;){if(t(e[r]))return e[r];r-=1}}))),Xr=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.")},Wr=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},Br=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Wr(arguments[e]));return t};var Gr=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function Jr(t){return t.replace(/(?:^|\s+)[*+-:^~]+(?=\s+|$)/g,"").trim().replace(/\s+|\b$/g,"* ")}function Kr(t,e){var r=(void 0===e?{}:e).transform,n=void 0===r?Jr:r;return Ce([st(t,"keyup").pipe(Q((function(){return n(t.value)})),se(n(t.value)),ae()),function(t){var e=st(t,"focus"),r=st(t,"blur");return ct(e.pipe(Ut(!0)),r.pipe(Ut(!1))).pipe(se(t===ye()),Vt(1))}(t)]).pipe(Q((function(t){var e=Gr(t,2);return{value:e[0],focus:e[1]}})),Vt(1))}function Qr(t){return st(t,"click").pipe(Ut(void 0))}var Zr={container:"md-clipboard md-icon"};var tn=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},en=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(tn(arguments[e]));return t},rn={item:"md-search-result__item",link:"md-search-result__link",article:"md-search-result__article md-search-result__article--document",section:"md-search-result__article",title:"md-search-result__title",teaser:"md-search-result__teaser"};function nn(t){var e=t.article,r=t.sections,n=en([e],r).map((function(t){var e=t.location,r=t.title,n=t.text;return wr("a",{href:e,class:rn.link,tabIndex:-1},wr("article",{class:"parent"in t?rn.section:rn.article},wr("h1",{class:rn.title},r),n.length?wr("p",{class:rn.teaser},function(t,e){var r=e;if(t.length>r){for(;" "!==t[r]&&--r>0;);return t.substring(0,r)+"..."}return t}(n,320)):void 0))}));return wr("li",{class:rn.item},n)}var on={facts:"md-source__facts",fact:"md-source__fact"};var un={wrapper:"md-typeset__scrollwrap",table:"md-typeset__table"};var cn=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function sn(t,e){var r=e.query$,n=e.fetch$,o=de(".md-search-result__list",t),i=de(".md-search-result__meta",t);return P(xr(r),Q((function(t){var e=cn(t,2),r=e[0];return e[1].value?function(t,e){switch(e){case 0:t.textContent=jr("search.result.none");break;case 1:t.textContent=jr("search.result.one");break;default:t.textContent=jr("search.result.other",e.toString())}}(i,r.length):function(t){t.textContent=jr("search.result.placeholder")}(i),r})),yt((function(e){return n.pipe(qt(ir),ur((function(r){for(var n=t.parentElement;r<e.length&&(Ar(o,nn(e[r++])),!(n.scrollHeight-n.offsetHeight>16)););return r}),0),Ut(e),ar((function(){!function(t){t.innerHTML=""}(o)})))})))}var an=new M(C);var ln=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 fn,hn,pn,dn=function(){function t(t){if(this.total=t,this.total<0)throw new ln}return t.prototype.call=function(t,e){return e.subscribe(new yn(t,this.total))},t}(),yn=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.count=0,n}return b(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}(A),vn=function(){return(vn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function bn(t,e){var r,n=e.document$;return(fn=n.pipe((r=1,function(t){return 0===r?R():t.lift(new dn(r))}),Q((function(e){return t.reduce((function(t,r){var n,o=pe("[data-md-toggle="+r+"]",e);return vn(vn({},t),void 0!==o?((n={})[r]=o,n):{})}),{})})))).pipe(Vt(1))}function mn(t){return fn.pipe(yt((function(e){return void 0!==e[t]?U(e[t]):an})))}function wn(t){return st(t,"change").pipe(Q((function(){return t.checked})),se(t.checked))}function gn(t){return P(yt((function(e){return function(t,e){return He(t,e).pipe(qr(t,20)).pipe(Q((function(t){return{hidden:t}})))}(e,t)})),Vt(1))}function _n(t){return P(kr(t.screen$,(function(e){return function(t,e){return He(t,e).pipe(qr(t,8)).pipe(Q((function(t){return{hidden:t}})))}(e,t)})),Vt(1))}function xn(t){return t.type===pn.RESULT}!function(t){t[t.STRING=0]="STRING",t[t.BINARY=1]="BINARY"}(hn||(hn={})),function(t){t[t.SETUP=0]="SETUP",t[t.DUMP=1]="DUMP",t[t.QUERY=2]="QUERY",t[t.RESULT=3]="RESULT"}(pn||(pn={}));var Sn=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},En=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Sn(arguments[e]));return t},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.")};function On(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return En([t],e).join("")}function kn(t,e){return ue({url:"https://api.github.com/"+(void 0!==e?"repos/"+t+"/"+e:"users/"+t),responseType:"json"}).pipe(ht((function(t){return 200===t.status})),he("response"),Vt(1))}var jn,An=function(){return(An=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},In=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 Nn(t){return jn.pipe(yt((function(e){return void 0!==e[t]?U(e[t]):an})))}function Cn(t){var e=t.header$,r=t.viewport$;return P(yt((function(t){return Nn("header").pipe(yt((function(n){var o=function(t,e){var r=e.header$,n=e.viewport$,o=r.pipe(he("height")),i=Ce([n,o]).pipe(Q((function(e){var r=Mr(e,2),n=r[0],o=n.offset.y,i=n.size.height,u=r[1],c=t.offsetTop,s=t.offsetHeight+c;return i-Math.max(0,c-o,u)-Math.max(0,i+o-s)})),ae()),u=Ce([n,o]).pipe(Q((function(e){var r=Mr(e,2),n=r[0].offset.y,o=r[1];return n>=t.offsetTop-o})),ae());return Ce([i,o,u]).pipe(Q((function(e){var r=Mr(e,3),n=r[0],o=r[1],i=r[2];return{offset:t.offsetTop-o,height:n,active:i}})),Vt(1))}(t,{header$:e,viewport$:r});return o.pipe(me("active"),function(t){return P(qt(ir),at((function(e){var r=e.active;!function(t,e){t.setAttribute("data-md-state",e?"shadow":"")}(t,r)})),ar((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}(n)).subscribe(),o})))})),Vt(1))}function Pn(t){var e=t.main$,r=t.viewport$,n=t.screen$;return P(yt((function(t){return n.pipe(yt((function(n){if(n)return Rr(t,{main$:e,viewport$:r}).pipe(Hr(t),Q((function(t){return{sidebar:t}})));var o=ve("nav",t);return function(t){var e,r,n=new Map;try{for(var o=Xr(t),i=o.next();!i.done;i=o.next()){var u=i.value,c=pe("label",u);if(void 0!==c){var s=de("#"+c.htmlFor);n.set(s,u)}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return ct.apply(void 0,Br(Br(n.keys()).map((function(t){return st(t,"change")})))).pipe(Q((function(){return de(".md-nav__list",n.get(Yr((function(t){return t.checked}),Br(n.keys()))))}))).pipe(Q((function(t){return{next:t}})),ur((function(t,e){return{prev:t.next,next:e.next}})),Vt(1))}(o).pipe(function(t){return P(qt(ir),at((function(t){var e=t.prev;e&&vr(e)})),Tt(250),qt(ir),at((function(t){var e,r=t.next;(e=r).style.backgroundColor="yellow",e.style.webkitOverflowScrolling="touch"})),ar((function(){var e,r;try{for(var n=Xr(t),o=n.next();!o.done;o=n.next()){vr(de(".md-nav__list",o.value))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}})))}(o),Q((function(t){return{layer:t}})))})))})),Vt(1))}var $n=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};var Mn=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},qn=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Mn(arguments[e]));return t};function Ln(t,e){var r=t.rx$,n=e.query$,o=e.viewport$,i=e.keyboard$,c=mn("search");return P(yt((function(t){var e=t.parentElement,s=function(t,e){var r=e.viewport$;return ct(st(t,"scroll"),r.pipe(me("size"))).pipe(Q((function(){return we(t)})),se(we(t)),Vt(1))}(e,{viewport$:o}).pipe(Q((function(t){return t.y>=e.scrollHeight-e.offsetHeight-16})),ae(),ht(u));return i.pipe(function(t){return P(xr(t),ht((function(t){return Or(t,2)[1]})),Q((function(t){return Or(t,1)[0]})))}(c.pipe(yt(wn))),xr(c,Nn("search-query"))).subscribe((function(e){var r=Mn(e,3),n=r[0],o=r[1],i=r[2],u=ye();switch(n.type){case"Enter":u===i&&n.claim();break;case"Escape":case"Tab":Ir(o,!1),be(i,!1);break;case"ArrowUp":case"ArrowDown":if(void 0===u)be(i);else{var c=qn([i],ve("[href]",t)),s=Math.max(0,(Math.max(0,c.indexOf(u))+c.length+("ArrowUp"===n.type?-1:1))%c.length);be(c[s])}n.claim();break;default:i!==ye()&&be(i)}})),r.pipe(ht(xn),he("data"),sn(t,{query$:n,fetch$:s}))})),Vt(1))}var Rn=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function Hn(t,e){var r=e.viewport$,n=e.keyboard$;return P(yt((function(){var e=Nn("search-query").pipe(function(t){var e=t.tx$,r=mn("search");return P(yt((function(t){var n=Kr(t);return n.pipe(me("value"),Q((function(t){var e=t.value;return{type:pn.QUERY,data:e}}))).subscribe(e.next.bind(e)),n.pipe(me("focus"),xr(r)).subscribe((function(t){var e=$n(t,2),r=e[0].focus,n=e[1];r&&Ir(n,r)})),n})))}(t),Vt(1)),o=Nn("search-reset").pipe(function(){var t=Nn("search-query");return P(yt(Qr),Ue(t),at(be),Ut(void 0),se(void 0))}());return Ce([e,Nn("search-result").pipe(Ln(t,{query$:e,viewport$:r,keyboard$:n})),o]).pipe(Q((function(t){var e=Rn(t,2);return{query:e[0],result:e[1]}})),Vt(1))})))}var Fn=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function Dn(t){var e=t.header$,r=t.main$,n=t.viewport$,o=t.tablet$;return P(yt((function(t){return o.pipe(yt((function(o){if(o){var i=ve(".md-nav__link",t),u=Rr(t,{main$:r,viewport$:n}).pipe(Hr(t)),c=function(t,e){var r,n,o=e.header$,i=e.viewport$,u=new Map;try{for(var c=Nr(t),s=c.next();!s.done;s=c.next()){var a=s.value,l=pe('[id="'+decodeURIComponent(a.hash.substring(1))+'"]');void 0!==l&&u.set(a,l)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}var f=o.pipe(Q((function(t){return 18+t.height})));return i.pipe(me("size"),Q((function(){var t=[];return Pr(u).reduce((function(e,r){for(var n=Cr(r,2),o=n[0],i=n[1];t.length;){if(!(u.get(t[t.length-1]).tagName>=i.tagName))break;t.pop()}return e.set(Ye(t=Pr(t,[o])),i.offsetTop)}),new Map)})),yt((function(t){return Ce(i,f).pipe(ur((function(t,e){for(var r=Cr(t,2),n=r[0],o=r[1],i=Cr(e,2),u=i[0].offset.y,c=i[1];o.length;){if(!(Cr(o[0],2)[1]-c<u))break;n=Pr(n,[o.shift()])}for(;n.length;){if(!(Cr(n[n.length-1],2)[1]-c>=u))break;o=Pr([n.pop()],o)}return[n,o]}),[[],Pr(t)]),ae((function(t,e){return t[0]===e[0]&&t[1]===e[1]})))}))).pipe(Q((function(t){var e=Cr(t,2),r=e[0],n=e[1];return{prev:r.map((function(t){return Cr(t,1)[0]})),next:n.map((function(t){return Cr(t,1)[0]}))}})),ur((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:nr(e.next,t.next)}}),{prev:[],next:[]})).pipe(Vt(1))}(i,{header$:e,viewport$:n}).pipe(function(t){return P(qt(ir),at((function(t){var e,r,n,o,i=t.prev,u=t.next;try{for(var c=Nr(u),s=c.next();!s.done;s=c.next()){yr(f=Cr(s.value,1)[0]),pr(f)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}try{for(var a=Nr(i.entries()),l=a.next();!l.done;l=a.next()){var f,h=Cr(l.value,2),p=h[0];dr(f=Cr(h[1],1)[0],p===i.length-1),hr(f,!0)}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}})),ar((function(){var e,r;try{for(var n=Nr(t),o=n.next();!o.done;o=n.next()){var i=o.value;yr(i),pr(i)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}})))}(i));return Ce([u,c]).pipe(Q((function(t){var e=Fn(t,2);return{sidebar:e[0],anchors:e[1]}})))}return U({})})))})),Vt(1))}var Vn=r(4),Un=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.")},zn=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};var Yn=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.")};var Xn=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.")};r.d(e,"initialize",(function(){return Qn}));var Wn=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r},Bn=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},Gn=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.")},Jn=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Bn(arguments[e]));return t};document.documentElement.classList.remove("no-js"),document.documentElement.classList.add("js"),navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&document.documentElement.classList.add("ios");var Kn=["container","header","header-title","hero","main","navigation","search","search-query","search-reset","search-result","tabs","toc"];function Qn(t){if(!function(t){return"object"==typeof t&&"string"==typeof t.base&&"object"==typeof t.worker&&"string"==typeof t.worker.search&&"string"==typeof t.worker.packer}(t))throw new SyntaxError("Invalid configuration: "+JSON.stringify(t));var e=st(document,"DOMContentLoaded").pipe(Ut(document),Vt(1)),r=st(window,"hashchange").pipe(Q((function(){return location.hash})),ht((function(t){return t.length>0})),je()),n=st(window,"keydown").pipe(ht((function(t){return!(t.shiftKey||t.metaKey||t.ctrlKey)})),Q((function(t){return{type:t.key,claim:function(){t.preventDefault(),t.stopPropagation()}}})),je()),o=Ce([ct(st(window,"scroll"),st(window,"resize")).pipe(Q(qe),se(qe())),st(window,"resize").pipe(Q(Le),se(Le()))]).pipe(Q((function(t){var e=Me(t,2);return{offset:e[0],size:e[1]}})),Vt(1)),i=Ie("(min-width: 960px)"),c=Ie("(min-width: 1220px)");!function(t,e){var r=e.document$;(jn=r.pipe(Q((function(e){return t.reduce((function(t,r){var n,o=pe("[data-md-component="+r+"]",e);return An(An({},t),void 0!==o?((n={})[r]=o,n):{})}),{})})),ur((function(t,e){var r,n;try{for(var o=In(d(t)),i=o.next();!i.done;i=o.next()){var u=i.value;switch(u){case"header-title":case"container":u in t&&void 0!==t[u]&&(t[u].replaceWith(e[u]),t[u]=e[u]);break;default:t[u]=pe("[data-md-component="+u+"]")}}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return t})))).pipe(Vt(1))}(Kn,{document$:e}),bn(["drawer","search"],{document$:e});var s,a,l,f,h,p,v,b=Nn("header").pipe(P(yt($r),Vt(1))),m=Nn("main").pipe(Cn({header$:b,viewport$:o})),w=(s=t.worker.search,a={base:t.base},l=a.base,f=new Worker(s),h=new URL(l,location.href),p=new Ct,v=ze(f,{tx$:p}).pipe(Q((function(t){var e,r,n,o;if(xn(t))try{for(var i=Tn(t.data),u=i.next();!u.done;u=i.next()){var c=u.value,s=c.article,a=c.sections;s.location=On(h,s.location);try{for(var l=(n=void 0,Tn(a)),f=l.next();!f.done;f=l.next()){var p=f.value;p.location=On(h,p.location)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return t}))),ue({url:On(h,"search/search_index.json"),responseType:"json",withCredentials:!0}).pipe(he("response"),Q((function(t){return{type:pn.SETUP,data:t}}))).subscribe(p.next.bind(p)),{tx$:p,rx$:v}),g=Nn("search").pipe(Hn(w,{viewport$:o,keyboard$:n})),_=Nn("navigation").pipe(Pn({main$:m,viewport$:o,screen$:c})),x=Nn("toc").pipe(Dn({header$:b,main$:m,viewport$:o,tablet$:i})),S=Nn("tabs").pipe(_n({header$:b,viewport$:o,screen$:c})),E=Nn("hero").pipe(gn({header$:b,viewport$:o,screen$:c})),T=pe("[data-md-toggle=search]");ct(Ie("print").pipe(ht(u)),st(window,"beforeprint")).subscribe((function(){var t,e;try{for(var r=Gn(ve("details")),n=r.next();!n.done;n=r.next()){n.value.setAttribute("open","")}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}})),r.subscribe((function(){mn("drawer").subscribe((function(t){Ir(t,!1)})),mn("search").subscribe((function(t){Ir(t,!1)}))})),function(t){var e=t.document$;return Vn.isSupported()?e.pipe(at((function(){var t,e,r,n=ve("pre > code");try{for(var o=Un(n.entries()),i=o.next();!i.done;i=o.next()){var u=zn(i.value,2),c=u[0],s=u[1],a=s.parentElement;a.id="__code_"+c,a.insertBefore((r=a.id,wr("button",{class:Zr.container,title:jr("clipboard.copy"),"data-clipboard-target":"#"+r+" code"},"")),s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}})),yt((function(){return Ae((function(t){new Vn(".md-clipboard").on("success",t)}))})),Vt(1)):an}({document$:e}).subscribe(console.log),function(){var t=pe(".md-source[href]");if(console.log(t),!t)return L;var e=sessionStorage.getItem("repository");if(e)return U(JSON.parse(e));function r(t){if(t>999){var e=+((t-950)%1e3>99);return(++t/1e3).toFixed(e)+"k"}return t.toString()}var n=Bn(t.href.match(/^.+github\.com\/([^\/]+)\/?([^\/]+)?.*$/i),3),o=n[1],i=n[2];return o&&i?kn(o,i).pipe(Q((function(t){var e=t.stargazers_count,n=t.forks_count;return[r(e||0)+" Stars",r(n||0)+" Forks"]})),at((function(t){return sessionStorage.setItem("repository",JSON.stringify(t))}))):o?kn(o).pipe(Q((function(t){return[r(t.public_repos||0)+" Repositories"]})),at((function(t){return sessionStorage.setItem("repository",JSON.stringify(t))}))):U([])}().subscribe((function(t){t.length&&ve(".md-source__repository").forEach((function(e){e.dataset.mdState="done",e.appendChild(function(t){return wr("ul",{class:on.facts},t.map((function(t){return wr("li",{class:on.fact},t)})))}(t))}))})),function(t){var e=t.document$,r=document.createElement("table");return e.pipe(Q((function(){return ve("table:not([class])")})),at((function(t){var e,n,o;try{for(var i=Xn(t),u=i.next();!u.done;u=i.next()){var c=u.value;c.replaceWith(r),r.replaceWith((o=c,wr("div",{class:un.wrapper},wr("div",{class:un.table},o))))}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}})),Vt(1))}({document$:e}).subscribe(console.log),function(t){var e=t.document$;return ct(Ie("print").pipe(ht(u)),st(window,"beforeprint")).pipe(Ue(e),Q((function(){return ve("details")})),at((function(t){var e,r;try{for(var n=Yn(t),o=n.next();!o.done;o=n.next()){o.value.setAttribute("open","")}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}})),Vt(1))}({document$:e}).subscribe(console.log);var O=0;i.pipe(yt((function(t){return t?L:wn(T)})),yt((function(t){return t?(console.log("ACTIVE"),U(document.body).pipe(at((function(){return O=window.pageYOffset})),Tt(400),at((function(){window.scrollTo(0,0),console.log("scrolled... to top, locked body"),document.body.dataset.mdState="lock"})))):(console.log("INACTIVE"),U(document.body).pipe(at((function(){return document.body.dataset.mdState=""})),Tt(100),at((function(){window.scrollTo(0,O)}))))}))).subscribe((function(t){return console.log("SEARCHLOCK",t)}));var k={search$:g,main$:m,navigation$:_,toc$:x,tabs$:S,hero$:E},j=Wn(k,[]);return ct.apply(void 0,Jn(y(j))).subscribe(),{state:k}}}]));
|
|
//# sourceMappingURL=bundle.419ace03.min.js.map
|