mkdocs-material/material/assets/javascripts/bundle.379e8f0f.min.js

24 lines
91 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=9)}([,,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){t.exports=JSON.parse('"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"')},function(t){t.exports=JSON.parse('"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H13C12.59,21.75 12.2,21.44 11.86,21.1C11.53,20.77 11.25,20.4 11,20H6V4H13V9H18V10.18C18.71,10.34 19.39,10.61 20,11V8L14,2M20.31,18.9C21.64,16.79 21,14 18.91,12.68C16.8,11.35 14,12 12.69,14.08C11.35,16.19 12,18.97 14.09,20.3C15.55,21.23 17.41,21.23 18.88,20.32L22,23.39L23.39,22L20.31,18.9M16.5,19A2.5,2.5 0 0,1 14,16.5A2.5,2.5 0 0,1 16.5,14A2.5,2.5 0 0,1 19,16.5A2.5,2.5 0 0,1 16.5,19Z"')},function(t,e,n){"use strict";n.r(e);
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var r=function(t,e){return(r=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 i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=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)};function u(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function s(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 c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}function a(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function l(t){return function e(n){return 0===arguments.length||a(n)?e:t.apply(this,arguments)}}function f(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var h=Object.prototype.toString,p=function(){return"[object Arguments]"===h.call(arguments)?function(t){return"[object Arguments]"===h.call(t)}:function(t){return f("callee",t)}}(),d=!{toString:null}.propertyIsEnumerable("toString"),v=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],y=function(){return arguments.propertyIsEnumerable("length")}(),b=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},m="function"!=typeof Object.keys||y?l((function(t){if(Object(t)!==t)return[];var e,n,r=[],i=y&&p(t);for(e in t)!f(e,t)||i&&"length"===e||(r[r.length]=e);if(d)for(n=v.length-1;n>=0;)f(e=v[n],t)&&!b(r,e)&&(r[r.length]=e),n-=1;return r})):l((function(t){return Object(t)!==t?[]:Object.keys(t)})),w=l((function(t){for(var e=m(t),n=e.length,r=[],i=0;i<n;)r[i]=t[e[i]],i+=1;return r}));function g(t){return t&&"function"==typeof t.schedule}var x=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function _(t){return"function"==typeof t}var S=!1,E={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;S=t},get useDeprecatedSynchronousErrorHandling(){return S}};function T(t){setTimeout((function(){throw t}),0)}var k={closed:!0,next:function(t){},error:function(t){if(E.useDeprecatedSynchronousErrorHandling)throw t;T(t)},complete:function(){}};function O(t){return null!==t&&"object"==typeof t}var j=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}(),$=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(_(r))try{r.call(this)}catch(t){e=t instanceof j?A(t.errors):[t]}if(x(i)){o=-1;for(var u=i.length;++o<u;){var s=i[o];if(O(s))try{s.unsubscribe()}catch(t){e=e||[],t instanceof j?e=e.concat(A(t.errors)):e.push(t)}}}if(e)throw new j(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 A(t){return t.reduce((function(t,e){return t.concat(e instanceof j?e.errors:e)}),[])}var C=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),N=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=k;break;case 1:if(!n){o.destination=k;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new I(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new I(o,n,r,i)}return o}return i(e,t),e.prototype[C]=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}($),I=function(t){function e(e,n,r,i){var o,u=t.call(this)||this;u._parentSubscriber=e;var s=u;return _(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==k&&(_((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 i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;E.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=E.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):T(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;T(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)};E.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(),E.useDeprecatedSynchronousErrorHandling)throw t;T(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!E.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return E.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(T(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(N),P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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}(N),M=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 i(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}(N),H=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}};function L(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var q=L(),R=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}(),V=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function D(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var F=function(t){if(t&&"function"==typeof t[R])return r=t,function(t){var e=r[R]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(V(t))return H(t);if(D(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,T),t};if(t&&"function"==typeof t[q])return e=t,function(t){for(var n=e[q]();;){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=O(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 U(){}function z(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Y(t)}function Y(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:U}var X=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 N)return t;if(t[C])return t[C]()}return t||e||n?new N(t,e,n):new N(k)}(t,e,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||E.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),E.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){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 N?r:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=W(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[R]=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:Y(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=W(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 W(t){if(t||(t=E.Promise||Promise),!t)throw new Error("no Promise impl found");return t}function B(t,e,n,r,i){if(void 0===i&&(i=new M(t,n,r)),!i.closed)return e instanceof X?e.subscribe(i):F(e)(i)}function J(t,e){return new X((function(n){var r=new $,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 G(t,e){return e?J(t,e):new X(H(t))}var K={};function Q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return g(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&x(t[0])&&(t=t[0]),G(t,r).lift(new Z(n))}var Z=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new tt(t,this.resultSelector))},t}(),tt=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 i(e,t),e.prototype._next=function(t){this.values.push(K),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(B(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===K?--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}(P),et=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 i(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 i(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}($)),nt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return i(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}(et),rt=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}(),it=function(t){function e(n,r){void 0===r&&(r=rt.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 i(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}(rt),ot=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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}(it))(nt);function ut(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 st(t,e))}}var st=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new ct(t,this.project,this.thisArg))},t}(),ct=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 i(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}(N);function at(t,e,n,r){return _(n)&&(r=n,n=void 0),r?at(t,e,n).pipe(ut((function(t){return x(t)?r.apply(void 0,t):r(t)}))):new X((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)}))}function lt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return g(n)?(t.pop(),J(t,n)):G(t)}var ft=new X(U);function ht(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[R]}(t))return function(t,e){return new X((function(n){var r=new $;return r.add(e.schedule((function(){var i=t[R]();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(D(t))return function(t,e){return new X((function(n){var r=new $;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(V(t))return J(t,e);if(function(t){return t&&"function"==typeof t[q]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new X((function(n){var r,i=new $;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[q](),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 pt(t,e){return e?ht(t,e):t instanceof X?t:new X(F(t))}var dt=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 vt(t,this.project,this.concurrent))},t}(),vt=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 i(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 M(this,void 0,void 0);this.destination.add(r),B(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}(P);function yt(t){return t}function bt(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 pt(e(t,r)).pipe(ut((function(e,i){return n(t,e,r,i)})))}),r))}:("number"==typeof n&&(r=n),function(t){return t.lift(new dt(e,r))})}(yt,t)}function mt(){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 g(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 X?t[0]:bt(n)(G(t,r))}var wt,gt=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),xt=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return i(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}($),_t=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return i(e,t),e}(N),St=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 i(e,t),e.prototype[C]=function(){return new _t(this)},e.prototype.lift=function(t){var e=new Et(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new gt;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 gt;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 gt;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 gt;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new gt;return this.hasError?(t.error(this.thrownError),$.EMPTY):this.isStopped?(t.complete(),$.EMPTY):(this.observers.push(t),new xt(this,t))},e.prototype.asObservable=function(){var t=new X;return t.source=this,t},e.create=function(t,e){return new Et(t,e)},e}(X),Et=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return i(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):$.EMPTY},e}(St),Tt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return i(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}(et),kt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(it))(Tt),Ot=new X((function(t){return t.complete()}));function jt(t){return t?function(t){return new X((function(e){return t.schedule((function(){return e.complete()}))}))}(t):Ot}function $t(t){var e=t.error;t.subscriber.error(e)}wt||(wt={});var At=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 lt(this.value);case"E":return t=this.error,new X(e?function(n){return e.schedule($t,0,{error:t,subscriber:n})}:function(e){return e.error(t)});case"C":return jt()}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 Ct(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Nt(t,e))}}var Nt=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 It(t,this.scheduler,this.delay))},t}(),It=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 i(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 Pt(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(At.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(At.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(At.createComplete()),this.unsubscribe()},e}(N),Pt=function(){return function(t,e){this.notification=t,this.destination=e}}(),Mt=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 i(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 Ht(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 gt;if(this.isStopped||this.hasError?e=$.EMPTY:(this.observers.push(t),e=new xt(this,t)),i&&t.add(t=new It(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||kt).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}(St),Ht=function(){return function(t,e){this.time=t,this.value=e}}();function Lt(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 Mt(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 qt(t,e){return"function"==typeof e?function(n){return n.pipe(qt((function(n,r){return pt(t(n,r)).pipe(ut((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new Rt(t))}}var Rt=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Vt(t,this.project))},t}(),Vt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return i(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 M(this,void 0,void 0);this.destination.add(i),this.innerSubscription=B(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}(P);function Dt(t,e){return function(n){return n.lift(new Ft(t,e))}}var Ft=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Ut(t,this.predicate,this.thisArg))},t}(),Ut=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 i(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}(N);function zt(t,e,n){return function(r){return r.lift(new Yt(t,e,n))}}var Yt=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 Xt(t,this.nextOrObserver,this.error,this.complete))},t}(),Xt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=U,o._tapError=U,o._tapComplete=U,o._tapError=r||U,o._tapComplete=i||U,_(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||U,o._tapError=n.error||U,o._tapComplete=n.complete||U),o}return i(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}(N),Wt=new it(et);function Bt(t,e){void 0===e&&(e=Wt);var n,r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new Jt(r,e))}}var Jt=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Gt(t,this.delay,this.scheduler))},t}(),Gt=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 i(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 Kt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(At.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(At.createComplete()),this.unsubscribe()},e}(N),Kt=function(){return function(t,e){this.time=t,this.notification=e}}();function Qt(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 te(t,this.value))},t}(),te=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return i(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(N);function ee(){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 ne(r,n))}}var ne=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new re(t,this.observables,this.project))},t}(),re=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(B(i,s,s,u))}return i}return i(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}(P);function ie(t,e){return function(n){return n.lift(new oe(t,e))}}var oe=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new ue(t,this.compare,this.keySelector))},t}(),ue=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 i(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}(N);function se(){return function(t){return t.lift(new ce(t))}}var ce=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new ae(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),ae=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return i(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}(N),le=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 i(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 $).add(this.source.subscribe(new he(this.getSubject(),this))),t.closed&&(this._connection=null,t=$.EMPTY)),t},e.prototype.refCount=function(){return se()(this)},e}(X),fe=function(){var t=le.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}}}(),he=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return i(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}(_t);var pe=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 de(){return new St}function ve(){return function(t){return se()((e=de,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new pe(r,n));var i=Object.create(t,fe);return i.source=t,i.subjectFactory=r,i})(t));var e,n}}function ye(){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 ut(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)}}function be(t,e){return void 0===e&&(e=null),function(n){return n.lift(new me(t,e))}}var me=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?ge:we}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),we=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return i(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(N),ge=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return i(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var u=r[o];u.push(t),u.length===e&&(r.splice(o,1),this.destination.next(u))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(N);var xe=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new _e(t,this.dueTime,this.scheduler))},t}(),_e=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return i(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Se,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(N);function Se(t){t.debouncedNext()}function Ee(t,e){return ie((function(n,r){return e?e(n[t],r[t]):n[t]===r[t]}))}var Te=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new ke(t),r=e.subscribe(n);return r.add(B(n,this.notifier)),r},t}(),ke=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return i(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(P),Oe=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}();function je(t){return function(e){return 0===t?jt():e.lift(new $e(t))}}var $e=function(){function t(t){if(this.total=t,this.total<0)throw new Oe}return t.prototype.call=function(t,e){return e.subscribe(new Ae(t,this.total))},t}(),Ae=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return i(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}(N),Ce=n(2);function Ne(t,e){return void 0===e&&(e=null),new Re({method:"GET",url:t,headers:e})}function Ie(t,e,n){return new Re({method:"POST",url:t,body:e,headers:n})}function Pe(t,e){return new Re({method:"DELETE",url:t,headers:e})}function Me(t,e,n){return new Re({method:"PUT",url:t,body:e,headers:n})}function He(t,e,n){return new Re({method:"PATCH",url:t,body:e,headers:n})}var Le=ut((function(t,e){return t.response}));function qe(t,e){return Le(new Re({method:"GET",url:t,responseType:"json",headers:e}))}var Re=function(t){function e(e){var n=t.call(this)||this,r={async:!0,createXHR:function(){return this.crossDomain?function(){if(Ce.a.XMLHttpRequest)return new Ce.a.XMLHttpRequest;if(Ce.a.XDomainRequest)return new Ce.a.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(Ce.a.XMLHttpRequest)return new Ce.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 Ce.a.ActiveXObject(t))break}catch(t){}return new Ce.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 i(e,t),e.prototype._subscribe=function(t){return new Ve(t,this.request)},e.create=((n=function(t){return new e(t)}).get=Ne,n.post=Ie,n.delete=Pe,n.put=Me,n.patch=He,n.getJSON=qe,n),e}(X),Ve=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")||Ce.a.FormData&&n.body instanceof Ce.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 i(e,t),e.prototype.next=function(t){this.done=!0;var e,n=this.xhr,r=this.request,i=this.destination;try{e=new De(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(Ce.a.FormData&&t instanceof Ce.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 ze(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)},Ce.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 Fe("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 Fe("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}(N),De=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=Ue(this.responseType,e)}}(),Fe=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=Ue(this.responseType,e),this}return t.prototype=Object.create(Error.prototype),t}();function Ue(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 ze=function(t,e){return Fe.call(this,"ajax timeout",t,e),this.name="AjaxTimeoutError",this},Ye=function(){return Re.create}();function Xe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return bt(1)(lt.apply(void 0,t))}function We(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return g(n)?(t.pop(),function(e){return Xe(t,e,n)}):function(e){return Xe(t,e)}}var Be=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Je(t,this.total))},t}(),Je=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return i(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(N);function Ge(t){return function(e){var n=new Ke(t),r=e.lift(n);return n.caught=r}}var Ke=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Qe(t,this.selector,this.caught))},t}(),Qe=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new M(this,void 0,void 0);this.add(r),B(this,n,void 0,void 0,r)}},e}(P);function Ze(){return new URL(location.href)}function tn(){return location.hash.substring(1)}function en(t){var e;return t.location$.pipe(We(Ze()),Ee("pathname"),(e=1,function(t){return t.lift(new Be(e))}),qt((function(t){return Ye({url:t.href,responseType:"document",withCredentials:!0}).pipe(ye("response"),Ge((function(){return function(t){location.href=t.href}(t),ft})))})),ve())}function nn(t){var e=(void 0===t?{}:t).location$;return mt(at(document,"DOMContentLoaded").pipe(Qt(document)),void 0!==e?en({location$:e}):ft).pipe(Lt(1))}function rn(t,e){return void 0===e&&(e=document),e.querySelector(t)||void 0}function on(t,e){void 0===e&&(e=document);var n=rn(t,e);if(void 0===n)throw new ReferenceError('Missing element: expected "'+t+'" to be present');return n}function un(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}function sn(t,e){return void 0===e&&(e=document),Array.from(e.querySelectorAll(t))}function cn(t,e){void 0===e&&(e=!0),e?t.focus():t.blur()}function an(t){return{x:t.scrollLeft,y:t.scrollTop}}function ln(t,e,n){return n?ln(t,e).pipe(ut((function(t){return x(t)?n.apply(void 0,t):n(t)}))):new X((function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){return void n.error(t)}if(_(e))return function(){return e(i,r)}}))}function fn(t){var e=matchMedia(t);return ln((function(t){return e.addListener((function(){return t(e.matches)}))})).pipe(We(e.matches),Lt(1))}function hn(){return{x:Math.max(0,pageXOffset),y:Math.max(0,pageYOffset)}}function pn(t){var e=t.x,n=t.y;window.scrollTo(e||0,n||0)}function dn(){return{width:innerWidth,height:innerHeight}}function vn(t,e){var n=e.header$,r=e.viewport$,i=r.pipe(Ee("size"),ut((function(){return{x:t.offsetLeft,y:t.offsetTop}})));return Q([n,r,i]).pipe(ut((function(t){var e=s(t,3),n=e[0].height,r=e[1],i=r.offset,o=r.size,u=e[2],c=u.x,a=u.y;return{offset:{x:i.x-c,y:i.y-a+n},size:o}})),Lt(1))}var yn={leading:!0,trailing:!1};var bn=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 mn(t,this.durationSelector,this.leading,this.trailing))},t}(),mn=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 i(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=B(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}(P);function wn(t,e){return e?qt((function(){return t}),e):qt((function(){return t}))}function gn(t,e){var n,r,i=e.tx$,o=ln((function(e){return t.addEventListener("message",e)})).pipe(ye("data"));return i.pipe((n=function(){return o},void 0===(r={leading:!0,trailing:!0})&&(r=yn),function(t){return t.lift(new bn(n,r.leading,r.trailing))}),zt((function(e){return t.postMessage(e)})),wn(o),ve())}var xn=l((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 _n(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Sn(t,e,n))}}var Sn=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 En(t,this.accumulator,this.seed,this.hasSeed))},t}(),En=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 i(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}(N);function Tn(t){return function(e){return e.lift(new On(t))}}var kn,On=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new jn(t,this.callback))},t}(),jn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new $(n)),r}return i(e,t),e}(N);function $n(t,e){t.setAttribute("data-md-state",e?"blur":"")}function An(t){t.removeAttribute("data-md-state")}function Cn(t,e){t.classList.toggle("md-nav__link--active",e)}function Nn(t){t.classList.remove("md-nav__link--active")}function In(t){t.style.top=""}function Pn(t){t.style.webkitOverflowScrolling=""}function Mn(t,e,n){switch(e){case"xmlns":break;case"viewBox":case"d":"boolean"!=typeof n?t.setAttributeNS(null,e,n):n&&t.setAttributeNS(null,e,"");break;default:"boolean"!=typeof n?t.setAttribute(e,n):n&&t.setAttribute(e,"")}}function Hn(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=u(e),o=i.next();!o.done;o=i.next()){Hn(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 Ln(t,e){for(var n,r,i,o,s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];var a=function(t){switch(t){case"svg":case"path":return document.createElementNS("http://www.w3.org/2000/svg",t);default:return document.createElement(t)}}(t);if(e)try{for(var l=u(m(e)),f=l.next();!f.done;f=l.next()){var h=f.value;Mn(a,h,e[h])}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}try{for(var p=u(s),d=p.next();!d.done;d=p.next()){Hn(a,d.value)}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}return a}function qn(t,e){return n=function(){var n=sessionStorage.getItem(t);if(n)return lt(JSON.parse(n));var r=e();return r.subscribe((function(e){try{sessionStorage.setItem(t,JSON.stringify(e))}catch(t){}})),r},new X((function(t){var e;try{e=n()}catch(e){return void t.error(e)}return(e?pt(e):jt()).subscribe(t)}));var n}function Rn(t,e){if(void 0===kn){var n=on("#__lang");kn=JSON.parse(n.innerText)}if(void 0===kn[t])throw new ReferenceError("Invalid translation: "+t);return void 0!==e?kn[t].replace("#",e):kn[t]}function Vn(t){return t>999?((t+1)/1e3).toFixed(+((t-950)%1e3>99))+"k":t.toString()}function Dn(t,e){t.appendChild(e)}function Fn(t,e){return void 0===e&&(e=0),z(ut((function(t){return t.offset.y>=e})),ie(),Ct(ot),zt((function(e){!function(t,e){t.setAttribute("data-md-state",e?"hidden":"")}(t,e)})),Tn((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}function Un(t,e){var n=e.main$,r=e.viewport$,i=r.pipe(Ee("size"),ut((function(){return parseFloat(getComputedStyle(t.parentElement).getPropertyValue("padding-top"))})),ie());return Q([r.pipe(ee(i,n),ut((function(t){var e=s(t,3),n=e[0].offset.y,r=e[1],i=e[2],o=i.offset;return i.height+Math.min(r,Math.max(0,n-o))-r})),ie()),r.pipe(ee(i,n),ut((function(t){var e=s(t,3),n=e[0].offset.y,r=e[1];return n>=e[2].offset+r})),ie())]).pipe(ut((function(t){var e=s(t,2);return{height:e[0],lock:e[1]}})))}function zn(t,e){var n=e.header$;return z(Ct(ot),ee(n),zt((function(e){var n=s(e,2),r=n[0],i=r.height,o=r.lock,u=n[1].height;!function(t,e){t.style.height=e+"px"}(t,i),function(t,e){t.setAttribute("data-md-state",e?"lock":"")}(t,o),o?function(t,e){t.style.top=e+"px"}(t,u):In(t)})),ut((function(t){return s(t,1)[0]})),Tn((function(){In(t),function(t){t.style.height=""}(t),function(t){t.removeAttribute("data-md-state")}(t)})))}function Yn(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return a(n)?e:l((function(e){return t(n,e)}));default:return a(n)&&a(r)?e:a(n)?l((function(e){return t(e,r)})):a(r)?l((function(e){return t(n,e)})):t(n,r)}}}var Xn=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function Wn(t){return null!=t&&"function"==typeof t["@@transducer/step"]}function Bn(t,e,n){return function(){if(0===arguments.length)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!Xn(i)){for(var o=0;o<t.length;){if("function"==typeof i[t[o]])return i[t[o]].apply(i,r);o+=1}if(Wn(i)){var u=e.apply(null,r);return u(i)}}return n.apply(this,arguments)}}var Jn=function(){return this.xf["@@transducer/init"]()},Gn=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Jn,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}(),Kn=Yn(Bn([],Yn((function(t,e){return new Gn(t,e)})),(function(t,e){for(var n=e.length-1;n>=0;){if(t(e[n]))return e[n];n-=1}})));function Qn(t){return t.replace(/(?:^|\s+)[*+-:^~]+(?=\s+|$)/g,"").trim().replace(/\s+|\b$/g,"* ")}function Zn(t,e){var n=(void 0===e?{}:e).transform||Qn;return Q([mt(at(t,"keyup"),at(t,"focus").pipe(Bt(1))).pipe(ut((function(){return n(t.value)})),We(n(t.value)),ie()),function(t){var e=at(t,"focus"),n=at(t,"blur");return mt(e.pipe(Qt(!0)),n.pipe(Qt(!1))).pipe(We(t===un()),Lt(1))}(t)]).pipe(ut((function(t){var e=s(t,2);return{value:e[0],focus:e[1]}})))}var tr={container:"md-clipboard md-icon"};var er={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 nr(t){var e=t.article,r=t.sections,i=n(8),o=c([e],r).map((function(t){var e=t.location,n=t.title,r=t.text;return Ln("a",{href:e,class:er.link,tabIndex:-1},Ln("article",{class:"parent"in t?er.section:er.article},"parent"in t?null:Ln("div",{class:"md-search-result__icon md-icon__button md-icon"},Ln("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ln("path",{d:i}))),Ln("h1",{class:er.title},n),r.length?Ln("p",{class:er.teaser},function(t,e){var n=e;if(t.length>n){for(;" "!==t[n]&&--n>0;);return t.substring(0,n)+"..."}return t}(r,320)):void 0))}));return Ln("li",{class:er.item},o)}var rr={facts:"md-source__facts",fact:"md-source__fact"};function ir(t){var e=t.map((function(t){return Ln("li",{class:rr.fact},t)}));return Ln("ul",{class:rr.facts},e)}var or,ur,sr,cr={wrapper:"md-typeset__scrollwrap",table:"md-typeset__table"};function ar(t,e){var n=e.query$,r=e.fetch$,i=on(".md-search-result__list",t),o=on(".md-search-result__meta",t);return z(ee(n),ut((function(t){var e=s(t,2),n=e[0];return e[1].value?function(t,e){switch(e){case 0:t.textContent=Rn("search.result.none");break;case 1:t.textContent=Rn("search.result.one");break;default:t.textContent=Rn("search.result.other",e.toString())}}(o,n.length):function(t){t.textContent=Rn("search.result.placeholder")}(o),n})),qt((function(e){return r.pipe(Ct(ot),_n((function(n){for(var r=t.parentElement;n<e.length&&(Dn(i,nr(e[n++])),!(r.scrollHeight-r.offsetHeight>16)););return n}),0),Qt(e),Tn((function(){!function(t){t.innerHTML=""}(i)})))})))}function lr(t){return or.pipe(qt((function(e){return void 0!==e[t]?lt(e[t]):ft})),ie())}function fr(t,e){t.checked!==e&&t.click()}function hr(t){return at(t,"change").pipe(ut((function(){return t.checked})),We(t.checked))}function pr(t){return t.type===ur.RESULT}function dr(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=location.pathname.replace(t.pathname,"").replace(/[^\/]+/g,"..");return console.log(t,location,r,e),c([r],e).join("")}function vr(t){return sr.pipe(qt((function(e){return void 0!==e[t]?lt(e[t]):ft})),ie())}function yr(t){var e=t.viewport$;return z(qt((function(t){return function(t,e){return e.viewport$.pipe(Ee("size"),qt((function(){var e=getComputedStyle(t),n=["sticky","-webkit-sticky"].includes(e.position);return lt({sticky:n,height:n?t.offsetHeight:0})})))}(t,{viewport$:e})})))}function br(t){var e=t.header$,n=t.viewport$;return z(qt((function(t){return vr("main").pipe(ut((function(t){return rn("h1, h2, h3, h4, h5, h6",t)})),Dt((function(t){return void 0!==t})),qt((function(r){return vn(r,{header$:e,viewport$:n}).pipe(ut((function(t){return t.offset.y>=r.offsetHeight})),function(t){return z(Ct(ot),zt((function(e){!function(t,e){t.setAttribute("data-md-state",e?"active":"")}(t,e)})),Tn((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}(t))})))})))}function mr(t){var e=t.header$,n=t.viewport$,r=new St;return vr("header").pipe(qt((function(t){return r.pipe(Ee("active"),(e=t,z(Ct(ot),zt((function(t){var n=t.active;!function(t,e){t.setAttribute("data-md-state",e?"shadow":"")}(e,n)})),Tn((function(){!function(t){t.removeAttribute("data-md-state")}(e)})))));var e}))).subscribe(),z(qt((function(t){return function(t,e){var n=e.header$,r=e.viewport$,i=n.pipe(ye("height")),o=Q([i,r]).pipe(ut((function(e){var n=s(e,2),r=n[0],i=n[1],o=i.offset.y,u=i.size.height,c=t.offsetTop,a=t.offsetHeight+c;return u-Math.max(0,c-o,r)-Math.max(0,u+o-a)})),ut((function(t){return Math.max(0,t)})),ie()),u=Q([i,r]).pipe(ut((function(e){var n=s(e,2),r=n[0];return n[1].offset.y>=t.offsetTop-r})),ie());return Q([i,o,u]).pipe(ut((function(e){var n=s(e,3),r=n[0],i=n[1],o=n[2];return{offset:t.offsetTop-r,height:i,active:o}})))}(t,{header$:e,viewport$:n})})),zt((function(t){return r.next(t)})))}function wr(t){var e=t.header$,n=t.main$,r=t.viewport$,i=t.screen$;return z(qt((function(t){return i.pipe(qt((function(i){if(i)return Un(t,{main$:n,viewport$:r}).pipe(zn(t,{header$:e}),ut((function(t){return{sidebar:t}})));var o=sn("nav",t);return function(t){var e,n,r=new Map;try{for(var i=u(t),o=i.next();!o.done;o=i.next()){var s=o.value,a=rn("label",s);if(void 0!==a){var l=on("#"+a.htmlFor);r.set(l,s)}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return mt.apply(void 0,c(c(r.keys()).map((function(t){return at(t,"change")})))).pipe(ut((function(){return on(".md-nav__list",r.get(Kn((function(t){return t.checked}),c(r.keys()))))}))).pipe(ut((function(t){return{next:t}})),_n((function(t,e){return{prev:t.next,next:e.next}})))}(o).pipe(function(t){return z(Ct(ot),zt((function(t){var e=t.prev;e&&Pn(e)})),Bt(250),Ct(ot),zt((function(t){var e=t.next;e.style.webkitOverflowScrolling="touch"})),Tn((function(){var e,n;try{for(var r=u(t),i=r.next();!i.done;i=r.next()){Pn(on(".md-nav__list",i.value))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}})))}(o),ut((function(t){return{layer:t}})))})))})))}function gr(){return z(qt((function(t){return function(t){return at(t,"click").pipe(Qt(void 0))}(t).pipe(wn(vr("search-query")),zt(cn),Qt(void 0))})),We(void 0))}function xr(t){return t}!function(t){t[t.SETUP=0]="SETUP",t[t.DUMP=1]="DUMP",t[t.QUERY=2]="QUERY",t[t.RESULT=3]="RESULT"}(ur||(ur={}));var _r=l(xr);function Sr(t,e){var n=t.rx$,r=e.query$;return z(qt((function(t){var e=t.parentElement,i=function(t){return mt(at(t,"scroll"),at(window,"resize")).pipe(ut((function(){return an(t)})),We(an(t)),Lt(1))}(e).pipe(ut((function(t){return t.y>=e.scrollHeight-e.offsetHeight-16})),ie(),Dt(_r));return n.pipe(Dt(pr),ye("data"),ar(t,{query$:r,fetch$:i}))})))}function Er(t){var e=t.header$,n=t.main$,r=t.viewport$,i=t.tablet$;return z(qt((function(t){return i.pipe(qt((function(i){if(i){var o=sn(".md-nav__link",t),a=Un(t,{main$:n,viewport$:r}).pipe(zn(t,{header$:e})),l=function(t,e){var n,r,i=e.header$,o=e.viewport$,a=new Map;try{for(var l=u(t),f=l.next();!f.done;f=l.next()){var h=f.value,p=rn('[id="'+decodeURIComponent(h.hash.substring(1))+'"]');void 0!==p&&a.set(h,p)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}var d=i.pipe(ut((function(t){return 18+t.height})));return o.pipe(Ee("size"),ut((function(){var t=[];return c(a).reduce((function(e,n){for(var r=s(n,2),i=r[0],o=r[1];t.length;){if(!(a.get(t[t.length-1]).tagName>=o.tagName))break;t.pop()}for(var u=o.offsetTop;!u&&o.parentElement;)u=(o=o.parentElement).offsetTop;return e.set(xn(t=c(t,[i])),u)}),new Map)})),qt((function(t){return Q([d,o]).pipe(_n((function(t,e){for(var n=s(t,2),r=n[0],i=n[1],o=s(e,2),u=o[0],a=o[1].offset.y;i.length;){if(!(s(i[0],2)[1]-u<a))break;r=c(r,[i.shift()])}for(;r.length;){if(!(s(r[r.length-1],2)[1]-u>=a))break;i=c([r.pop()],i)}return[r,i]}),[[],c(t)]),ie((function(t,e){return t[0]===e[0]&&t[1]===e[1]})))}))).pipe(ut((function(t){var e=s(t,2),n=e[0],r=e[1];return{prev:n.map((function(t){return s(t,1)[0]})),next:r.map((function(t){return s(t,1)[0]}))}})),We({prev:[],next:[]}),be(2,1),ut((function(t){var e=s(t,2),n=e[0],r=e[1];return n.prev.length<r.prev.length?{prev:r.prev.slice(Math.max(0,n.prev.length-1),r.prev.length),next:[]}:{prev:r.prev.slice(-1),next:r.next.slice(0,r.next.length-n.next.length)}})))}(o,{header$:e,viewport$:r}).pipe(function(t){return z(Ct(ot),zt((function(t){var e,n,r,i,o=t.prev,c=t.next;try{for(var a=u(c),l=a.next();!l.done;l=a.next()){Nn(p=s(l.value,1)[0]),An(p)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}try{for(var f=u(o.entries()),h=f.next();!h.done;h=f.next()){var p,d=s(h.value,2),v=d[0];Cn(p=s(d[1],1)[0],v===o.length-1),$n(p,!0)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}})),Tn((function(){var e,n;try{for(var r=u(t),i=r.next();!i.done;i=r.next()){var o=i.value;Nn(o),An(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 Q([a,l]).pipe(ut((function(t){var e=s(t,2);return{sidebar:e[0],anchors:e[1]}})))}return lt({})})))})))}var Tr=n(5);function kr(){var t=lr("search"),e=t.pipe(qt(hr)),n=at(window,"keydown").pipe(Dt((function(t){return!(t.metaKey||t.ctrlKey)})),ut((function(t){return{type:t.key,claim:function(){t.preventDefault(),t.stopPropagation()}}})),ve()).pipe(ee(e),ut((function(t){var e=s(t,2),n=e[0],r=e[1];return o({mode:r?"search":"global"},n)})),ve());return n.pipe(Dt((function(t){return"search"===t.mode})),ee(t,vr("search-query"),vr("search-result"))).subscribe((function(t){var e=s(t,4),n=e[0],r=e[1],i=e[2],o=e[3],u=un();switch(n.type){case"Enter":u===i&&n.claim();break;case"Escape":case"Tab":fr(r,!1),cn(i,!1);break;case"ArrowUp":case"ArrowDown":if(void 0===u)cn(i);else{var a=c([i],sn("[href]",o)),l=Math.max(0,(Math.max(0,a.indexOf(u))+a.length+("ArrowUp"===n.type?-1:1))%a.length);cn(a[l])}n.claim();break;default:i!==un()&&cn(i)}})),n.pipe(Dt((function(t){if("global"===t.mode){var e=un();if(void 0!==e)return!function(t){switch(t.tagName){case"INPUT":case"SELECT":case"TEXTAREA":return!0;default:return t.isContentEditable}}(e)}return!1})),ee(vr("search-query"))).subscribe((function(t){var e=s(t,2),n=e[0],r=e[1];switch(n.type){case"f":case"s":cn(r),n.claim();break;case"p":case",":var i=rn("[href][rel=prev]");void 0!==i&&i.click();break;case"n":case".":var o=rn("[href][rel=next]");void 0!==o&&o.click()}})),n}function Or(t){switch(s(t.match(/(git(?:hub|lab))/i)||[],1)[0].toLowerCase()){case"github":var e=s(t.match(/^.+github\.com\/([^\/]+)\/?([^\/]+)/i),3);return function(t,e){return Ye({url:void 0!==e?"https://api.github.com/repos/"+t+"/"+e:"https://api.github.com/users/"+t,responseType:"json"}).pipe(Dt((function(t){return 200===t.status})),ye("response"),qt((function(t){if(void 0!==e){var n=t.stargazers_count,r=t.forks_count;return lt([Vn(n||0)+" Stars",Vn(r||0)+" Forks"])}return lt([Vn(t.public_repos||0)+" Repositories"])})))}(e[1],e[2]);case"gitlab":var n=s(t.match(/^.+?([^\/]*gitlab[^\/]+)\/(.+)/i),3);return function(t,e){return Ye({url:"https://"+t+"/api/v4/projects/"+encodeURIComponent(e),responseType:"json"}).pipe(Dt((function(t){return 200===t.status})),ye("response"),ut((function(t){var e=t.star_count,n=t.forks_count;return[Vn(e)+" Stars",Vn(n)+" Forks"]})))}(n[1],n[2]);default:return ft}}function jr(t){var e,r,i,a;if(!function(t){return"object"==typeof t&&"string"==typeof t.base&&"object"==typeof t.worker&&"string"==typeof t.worker.search}(t))throw new SyntaxError("Invalid configuration: "+JSON.stringify(t));var l=new St,f=at(window,"hashchange").pipe(ut(tn),We(tn()),Dt((function(t){return t.length>0})),ve()),h=Q([mt(at(window,"scroll"),at(window,"resize")).pipe(ut(hn),We(hn())),at(window,"resize").pipe(ut(dn),We(dn()))]).pipe(ut((function(t){var e=s(t,2);return{offset:e[0],size:e[1]}})),Lt(1)),p=fn("(min-width: 960px)"),d=fn("(min-width: 1220px)"),v=t.feature.instant?nn({location$:l}):nn();!function(t,e){var n=e.document$;or=n.pipe(je(1),ut((function(e){return t.reduce((function(t,n){var r,i=rn("[data-md-toggle="+n+"]",e);return o(o({},t),void 0!==i?((r={})[n]=i,r):{})}),{})})),Lt(1))}(["drawer","search"],{document$:v}),function(t,e){var n=e.document$;sr=n.pipe(ut((function(e){return t.reduce((function(t,n){var r,i=rn("[data-md-component="+n+"]",e);return o(o({},t),void 0!==i?((r={})[n]=i,r):{})}),{})})),_n((function(t,e){var n,r;try{for(var i=u(m(t)),o=i.next();!o.done;o=i.next()){var s=o.value;switch(s){case"header-title":case"container":s in t&&void 0!==t[s]&&(t[s].replaceWith(e[s]),t[s]=e[s]);break;default:t[s]=rn("[data-md-component="+s+"]")}}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t})),Lt(1))}(["container","header","header-title","hero","main","navigation","search","search-query","search-reset","search-result","tabs","toc"],{document$:v});var y=function(t,e){var n=e.base,r=e.index,i=new Worker(t),o=new URL(n,Ze());console.log(Ze());var s=new St,c=gn(i,{tx$:s}).pipe(ut((function(t){var e,n,r,i;if(pr(t))try{for(var s=u(t.data),c=s.next();!c.done;c=s.next()){var a=c.value,l=a.article,f=a.sections;l.location=dr(o,l.location);try{for(var h=(r=void 0,u(f)),p=h.next();!p.done;p=h.next()){var d=p.value;d.location=dr(o,d.location)}}catch(t){r={error:t}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return t})),Lt(1));return(void 0!==r?pt(r):Ye({url:dr(o,"search/search_index.json"),responseType:"json",withCredentials:!0}).pipe(ye("response"))).pipe(ut((function(t){return{type:ur.SETUP,data:t}}))).subscribe(s.next.bind(s)),{tx$:s,rx$:c}}(t.worker.search,{base:t.base}),b=vr("header").pipe(yr({viewport$:h}),Lt(1)),g=vr("main").pipe(mr({header$:b,viewport$:h}),Lt(1)),x=vr("search-query").pipe(function(t,e){var n=t.tx$;void 0===e&&(e={});var r=lr("search");return z(qt((function(t){var i=Zn(t,e);return i.pipe(Ee("value"),ut((function(t){var e=t.value;return{type:ur.QUERY,data:e}}))).subscribe(n.next.bind(n)),i.pipe(Ee("focus"),ee(r)).subscribe((function(t){var e=s(t,2),n=e[0].focus,r=e[1];n&&fr(r,n)})),i})))}(y),Lt(1)),_=vr("search-reset").pipe(gr(),Lt(1)),S=vr("search-result").pipe(Sr(y,{query$:x}),Lt(1)),E=vr("search").pipe(function(t){var e=t.query$,n=t.reset$,r=t.result$;return z(qt((function(){return Q([e,r,n]).pipe(ut((function(t){var e=s(t,2);return{query:e[0],result:e[1]}})))})))}({query$:x,reset$:_,result$:S}),Lt(1)),T=vr("navigation").pipe(wr({header$:b,main$:g,viewport$:h,screen$:d}),Lt(1)),k=vr("toc").pipe(Er({header$:b,main$:g,viewport$:h,tablet$:p}),Lt(1)),O=vr("tabs").pipe(function(t){var e=t.header$,n=t.viewport$,r=t.screen$;return z(qt((function(t){return r.pipe(qt((function(r){return r?vn(t,{header$:e,viewport$:n}).pipe(Fn(t,10),ut((function(t){return{hidden:t}}))):lt({hidden:!0})})))})))}({header$:b,viewport$:h,screen$:d}),Lt(1)),j=vr("hero").pipe(function(t){var e=t.header$,n=t.viewport$;return z(qt((function(t){return vn(t,{header$:e,viewport$:n}).pipe(Fn(t,20),ut((function(t){return{hidden:t}})))})))}({header$:b,viewport$:h}),Lt(1)),$=vr("header-title").pipe(br({header$:b,viewport$:h}),Lt(1)),A=kr();!function(t){var e=t.document$,n=document.createElement("table");e.pipe(ut((function(){return sn("table:not([class])")}))).subscribe((function(t){var e,r,i;try{for(var o=u(t),s=o.next();!s.done;s=o.next()){var c=s.value;c.replaceWith(n),n.replaceWith((i=c,Ln("div",{class:cr.wrapper},Ln("div",{class:cr.table},i))))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}))}({document$:v}),function(t){var e=t.document$,n=t.hash$,r=e.pipe(ut((function(){return sn("details")})));mt(fn("print").pipe(Dt(_r)),at(window,"beforeprint")).pipe(wn(r)).subscribe((function(t){var e,n;try{for(var r=u(t),i=r.next();!i.done;i=r.next()){i.value.setAttribute("open","")}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}})),n.pipe(ut((function(t){return rn('[id="'+t+'"]')})),Dt((function(t){return void 0!==t})),zt((function(t){var e=t.closest("details");e&&!e.open&&e.setAttribute("open","")}))).subscribe((function(t){return t.scrollIntoView()}))}({document$:v,hash$:f}),function(t){t.document$.pipe(ut((function(){return on(".md-source[href]")})),je(1),qt((function(t){var e=t.href;return qn(""+function(t){for(var e=0,n=0,r=t.length;n<r;n++)e=(e<<5)-e+t.charCodeAt(n),e|=0;return e}(e),(function(){return Or(e)}))})),Ge((function(){return ft}))).subscribe((function(t){var e,n;try{for(var r=u(sn(".md-source__repository")),i=r.next();!i.done;i=r.next()){var o=i.value;o.setAttribute("data-md-state","done"),o.appendChild(ir(t))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}}))}({document$:v}),navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&function(t){t.document$.pipe(ut((function(){return sn("[data-md-scrollfix]")})),qt((function(t){return mt.apply(void 0,c(t.map((function(t){return at(t,"touchstart").pipe(Qt(t))}))))}))).subscribe((function(t){var e=t.scrollTop;0===e?t.scrollTop=1:e+t.offsetHeight===t.scrollHeight&&(t.scrollTop=e-1)}))}({document$:v});var C,N,I,P=function(t){var e=(void 0===t?{}:t).duration,n=new St,r=document.createElement("div");return r.classList.add("md-dialog","md-typeset"),n.pipe(qt((function(t){return vr("container").pipe(ut((function(t){return t.appendChild(r)})),Ct(ot),Bt(1),zt((function(e){e.innerHTML=t,e.setAttribute("data-md-state","open")})),Bt(e||2e3),zt((function(t){return t.removeAttribute("data-md-state")})),Bt(400),zt((function(t){t.innerHTML="",t.remove()})))}))).subscribe(),n}(),M=function(t){var e=t.document$,r=t.dialog$;if(!Tr.isSupported())return ft;e.subscribe((function(){var t,e,r,i,o=sn("pre > code");try{for(var c=u(o.entries()),a=c.next();!a.done;a=c.next()){var l=s(a.value,2),f=l[0],h=l[1],p=h.parentElement;p.id="__code_"+f,p.insertBefore((r=p.id,i=void 0,i=n(7),Ln("button",{class:tr.container,title:Rn("clipboard.copy"),"data-clipboard-target":"#"+r+" code"},Ln("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ln("path",{d:i})))),h)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}}));var i=ln((function(t){new Tr(".md-clipboard").on("success",t)})).pipe(ve());return i.pipe(zt((function(t){return t.clearSelection()})),Qt(Rn("clipboard.copied"))).subscribe(r),i}({document$:v,dialog$:P});function H(t){return t.hash.length>0}if(f.subscribe((function(){lr("drawer").subscribe((function(t){fr(t,!1)}))})),f.pipe(qt((function(t){return lr("search").pipe(Dt((function(t){return t.checked})),zt((function(t){return fr(t,!1)})),Bt(125),Qt(t))}))).subscribe((function(t){rn('[id="'+t+'"]').scrollIntoView()})),Q([lr("search").pipe(qt(hr)),p]).pipe(ee(h),qt((function(t){var e=s(t,2),n=s(e[0],2),r=n[0],i=n[1],o=e[1].offset.y,u=r&&!i;return v.pipe(Bt(u?400:100),Ct(ot),zt((function(t){var e=t.body;return u?function(t,e){t.setAttribute("data-md-state","lock"),t.style.top="-"+e+"px"}(e,o):function(t){var e=-1*parseInt(t.style.top,10);t.removeAttribute("data-md-state"),t.style.top="",e&&window.scrollTo(0,e)}(e)})))}))).subscribe(),t.feature.instant){"scrollRestoration"in history&&(history.scrollRestoration="manual");try{for(var L=u(['link[rel="shortcut icon"]','link[rel="stylesheet"]']),q=L.next();!q.done;q=L.next()){var R=q.value;try{for(var V=(i=void 0,u(sn(R))),D=V.next();!D.done;D=V.next()){var F=D.value;F.href=F.href}}catch(t){i={error:t}}finally{try{D&&!D.done&&(a=V.return)&&a.call(V)}finally{if(i)throw i.error}}}}catch(t){e={error:t}}finally{try{q&&!q.done&&(r=L.return)&&r.call(L)}finally{if(e)throw e.error}}var U=at(document.body,"click").pipe(Dt((function(t){return!(t.metaKey||t.ctrlKey)})),qt((function(t){if(t.target instanceof HTMLElement){var e=t.target.closest("a");if(e&&function(t){return t.hostname===location.hostname&&!/\.\w+?$/i.test(t.pathname)}(e))return H(e)||t.preventDefault(),lt(e.href)}return ft})),ie(),ut((function(t){return{url:new URL(t)}})),ve()),Y=U.pipe(Dt((function(t){return!H(t.url)})),ve()),X=at(window,"popstate").pipe(Dt((function(t){return null!==t.state})),ut((function(t){return{url:new URL(location.href),data:t.state}})),ve());mt(Y,X).pipe(ye("url")).subscribe(l),U.pipe(ie((function(t,e){var n=t.url,r=e.url;return n.href===r.href})),Dt((function(t){return!H(t.url)}))).subscribe((function(t){var e=t.url;history.pushState({},"",e.toString())})),mt(U,X).pipe(be(2,1)).subscribe((function(t){var e=s(t,2),n=e[0],r=e[1];console.log("<- "+n.url),console.log("-> "+r.url),null!==n.url.href.match(r.url.href)&&H(n.url)&&(P.next("Potential Candidate: "+JSON.stringify(r.data)),pn(r.data||{y:0}))})),h.pipe((N=250,void 0===I&&(I=Wt),function(t){return t.lift(new xe(N,I))}),Ee("offset")).subscribe((function(t){var e=t.offset;history.replaceState(e,"")})),mt(Y,X).pipe((C=v,function(t){return t.lift(new Te(C))}),ee(v)).subscribe((function(t){var e,n,r=s(t,2),i=r[0],o=i.url,c=i.data,a=r[1],l=a.title,f=a.head;console.log("Done",o.href,c),document.title=l;try{for(var h=u(['link[rel="canonical"]','meta[name="author"]','meta[name="description"]']),p=h.next();!p.done;p=h.next()){var d=p.value,v=rn(d,f),y=rn(d,document.head);void 0!==v&&void 0!==y&&y.replaceWith(v)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(e)throw e.error}}pn(c||{y:0})})),X.subscribe((function(t){var e=t.url;console.log("Popstate "+e.href,e)}))}A.pipe(Dt((function(t){return"global"===t.mode&&["Tab"].includes(t.type)})),je(1)).subscribe((function(){var t,e;try{for(var n=u(sn(".headerlink")),r=n.next();!r.done;r=n.next()){r.value.style.visibility="visible"}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}));var W={search$:E,clipboard$:M,location$:l,hash$:f,keyboard$:A,dialog$:P,main$:g,navigation$:T,toc$:k,tabs$:O,hero$:j,title$:$},B=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}(W,[]);return mt.apply(void 0,c(w(B))).subscribe(),{state:W}}n.d(e,"initialize",(function(){return jr})),document.documentElement.classList.remove("no-js"),document.documentElement.classList.add("js"),navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&document.documentElement.classList.add("ios")}]));
//# sourceMappingURL=bundle.379e8f0f.min.js.map