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