!function(t,e){for(var n in e)t[n]=e[n]}(window,function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=7)}([,,function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o}));var r="undefined"!=typeof window&&window,i="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o=r||void 0!==t&&t||i}).call(this,n(6))},,function(t,e,n){ /*! * clipboard.js v2.0.4 * https://zenorocha.github.io/clipboard.js * * Licensed MIT © Zeno Rocha */ var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n0&&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 f("action",t)}},{key:"defaultTarget",value:function(t){var e=f("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return f("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 f(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;n0&&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=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=0;)l(e=y[n],t)&&!b(r,e)&&(r[r.length]=e),n-=1;return r})):f((function(t){return Object(t)!==t?[]:Object.keys(t)})),g=f((function(t){for(var e=m(t),n=e.length,r=[],i=0;i0?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}(it),ut=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}(),st=function(t){function e(n,r){void 0===r&&(r=ut.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}(ut),ct=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(++r0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(X);function vt(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(at((function(e,i){return n(t,e,r,i)})))}),r))}:("number"==typeof n&&(r=n),function(t){return t.lift(new dt(e,r))})}(vt,t)}function mt(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof L?t[0]:bt(n)(V(t,r))}function gt(t,e,n){return function(r){return r.lift(new wt(t,e,n))}}var wt=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new _t(t,this.nextOrObserver,this.error,this.complete))},t}(),_t=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=P,o._tapError=P,o._tapComplete=P,o._tapError=r||P,o._tapComplete=i||P,w(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||P,o._tapError=n.error||P,o._tapComplete=n.complete||P),o}return 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);function xt(t,e){return"function"==typeof e?function(n){return n.pipe(xt((function(n,r){return pt(t(n,r)).pipe(at((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new St(t))}}var St=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Et(t,this.project))},t}(),Et=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 W(this,void 0,void 0);this.destination.add(i),this.innerSubscription=Z(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}(X);function Tt(t,e){return function(n){return n.lift(new Ot(t,e))}}var kt,Ot=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new jt(t,this.predicate,this.thisArg))},t}(),jt=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),At=new st(it);function It(t){var e=t.error;t.subscriber.error(e)}kt||(kt={});var Nt=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 Y(this.value);case"E":return t=this.error,new L(e?function(n){return e.schedule(It,0,{error:t,subscriber:n})}:function(e){return e.error(t)});case"C":return F()}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 $t(t,e){void 0===e&&(e=At);var n,r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new Ct(r,e))}}var Ct=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Pt(t,this.delay,this.scheduler))},t}(),Pt=function(t){function e(e,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 Mt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(Nt.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(Nt.createComplete()),this.unsubscribe()},e}(N),Mt=function(){return function(t,e){this.time=t,this.notification=e}}();function qt(){for(var t=[],e=0;e0){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}(X);function Ht(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Ft(t,e))}}var Ft=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 Dt(t,this.scheduler,this.delay))},t}(),Dt=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 Ut(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Nt.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Nt.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(Nt.createComplete()),this.unsubscribe()},e}(N),Ut=function(){return function(t,e){this.notification=t,this.destination=e}}();function zt(t,e,n,r){return w(n)&&(r=n,n=void 0),r?zt(t,e,n).pipe(at((function(t){return T(t)?r.apply(void 0,t):r(t)}))):new L((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 f=0,l=e.length;f1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}function Vt(t){return function(e){return e.lift(new Yt(t))}}var Yt=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Xt(t,this.value))},t}(),Xt=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),Wt=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),Bt=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}(j),Gt=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return i(e,t),e}(N),Jt=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[I]=function(){return new Gt(this)},e.prototype.lift=function(t){var e=new Kt(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new Wt;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i0?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}(it),Zt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(st))(Qt),te=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 ee(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 Wt;if(this.isStopped||this.hasError?e=j.EMPTY:(this.observers.push(t),e=new Bt(this,t)),i&&t.add(t=new Dt(t,i)),n)for(var u=0;ue&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(Jt),ee=function(){return function(t,e){this.time=t,this.value=e}}();function ne(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,f=!1,l=!1;return function(t){a++,e&&!f||(f=!1,e=new te(i,u,c),n=t.subscribe({next:function(t){e.next(t)},error:function(t){f=!0,e.error(t)},complete:function(){l=!0,e.complete()}}));var r=e.subscribe(this);this.add((function(){a--,r.unsubscribe(),n&&!l&&s&&0===a&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}var re=n(2);function ie(t,e){return void 0===e&&(e=null),new le({method:"GET",url:t,headers:e})}function oe(t,e,n){return new le({method:"POST",url:t,body:e,headers:n})}function ue(t,e){return new le({method:"DELETE",url:t,headers:e})}function se(t,e,n){return new le({method:"PUT",url:t,body:e,headers:n})}function ce(t,e,n){return new le({method:"PATCH",url:t,body:e,headers:n})}var ae=at((function(t,e){return t.response}));function fe(t,e){return ae(new le({method:"GET",url:t,responseType:"json",headers:e}))}var le=function(t){function e(e){var n=t.call(this)||this,r={async:!0,createXHR:function(){return this.crossDomain?function(){if(re.a.XMLHttpRequest)return new re.a.XMLHttpRequest;if(re.a.XDomainRequest)return new re.a.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(re.a.XMLHttpRequest)return new re.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 re.a.ActiveXObject(t))break}catch(t){}return new re.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 he(t,this.request)},e.create=((n=function(t){return new e(t)}).get=ie,n.post=oe,n.delete=ue,n.put=se,n.patch=ce,n.getJSON=fe,n),e}(L),he=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")||re.a.FormData&&n.body instanceof re.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 pe(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(re.a.FormData&&t instanceof re.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 ve(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)},re.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 de("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 de("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),pe=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=ye(this.responseType,e)}}(),de=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=ye(this.responseType,e),this}return t.prototype=Object.create(Error.prototype),t}();function ye(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 ve=function(t,e){return de.call(this,"ajax timeout",t,e),this.name="AjaxTimeoutError",this},be=function(){return le.create}();function me(){for(var t=[],e=0;e1)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),Ce=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 j).add(this.source.subscribe(new Me(this.getSubject(),this))),t.closed&&(this._connection=null,t=j.EMPTY)),t},e.prototype.refCount=function(){return Ie()(this)},e}(L),Pe=function(){var t=Ce.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}}}(),Me=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}(Gt);var qe=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();function Le(){return new Jt}function Re(){return function(t){return Ie()((e=Le,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new qe(r,n));var i=Object.create(t,Pe);return i.source=t,i.subjectFactory=r,i})(t));var e,n}}function He(t,e,n){return n?He(t,e).pipe(at((function(t){return T(t)?n.apply(void 0,t):n(t)}))):new L((function(n){var r,i=function(){for(var t=[],e=0;e=0;){if(n[s]===t)return r[s]===e;s-=1}switch(u){case"Map":return t.size===e.size&&en(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&en(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=m(t);if(c.length!==m(e).length)return!1;var a=n.concat([t]),f=r.concat([e]);for(s=c.length-1;s>=0;){var h=c[s];if(!l(h,e)||!nn(e[h],t[h],a,f))return!1;s-=1}return!0}var rn=Je((function(t,e){return nn(t,e,[],[])}));function on(t,e){return function(t,e,n){var r,i;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;n=0}function un(t,e,n){var r,i=typeof t;switch(i){case"string":case"number":return 0===t&&1/t==-1/0?!!n._items["-0"]||(e&&(n._items["-0"]=!0),!1):null!==n._nativeSet?e?(r=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===r):n._nativeSet.has(t):i in n._items?t in n._items[i]||(e&&(n._items[i][t]=!0),!1):(e&&(n._items[i]={},n._items[i][t]=!0),!1);case"boolean":if(i in n._items){var o=t?1:0;return!!n._items[i][o]||(e&&(n._items[i][o]=!0),!1)}return e&&(n._items[i]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?e?(r=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===r):n._nativeSet.has(t):i in n._items?!!on(t,n._items[i])||(e&&n._items[i].push(t),!1):(e&&(n._items[i]=[t]),!1);case"undefined":return!!n._items[i]||(e&&(n._items[i]=!0),!1);case"object":if(null===t)return!!n._items.null||(e&&(n._items.null=!0),!1);default:return(i=Object.prototype.toString.call(t))in n._items?!!on(t,n._items[i])||(e&&n._items[i].push(t),!1):(e&&(n._items[i]=[t]),!1)}}var sn=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!un(t,!0,this)},t.prototype.has=function(t){return un(t,!1,this)},t}(),cn=Je((function(t,e){for(var n=[],r=0,i=t.length,o=e.length,u=new sn,s=0;s=2&&(n=!0),function(r){return r.lift(new ln(t,e,n))}}var ln=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 hn(t,this.accumulator,this.seed,this.hasSeed))},t}(),hn=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 pn(t){return function(e){return e.lift(new yn(t))}}var dn,yn=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new vn(t,this.callback))},t}(),vn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new j(n)),r}return i(e,t),e}(N);function bn(t,e){t.setAttribute("data-md-state",e?"blur":"")}function mn(t){t.removeAttribute("data-md-state")}function gn(t,e){t.classList.toggle("md-nav__link--active",e)}function wn(t){t.classList.remove("md-nav__link--active")}function _n(t){t.style.webkitOverflowScrolling=""}function xn(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()){xn(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 Sn(t,e){for(var n,r,i,o,s=[],c=2;c=e})),we(),Ht(ct),gt((function(e){!function(t,e){t.setAttribute("data-md-state",e?"hidden":"")}(t,e)})),pn((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}function In(t,e){var n=e.main$,r=e.viewport$,i=parseFloat(getComputedStyle(t.parentElement).getPropertyValue("padding-top")),o=et([r,n]).pipe(at((function(t){var e=s(t,2),n=e[0].offset.y,r=e[1],o=r.offset;return r.height-i+Math.min(i,Math.max(0,n-o))}))),u=et([r,n]).pipe(at((function(t){var e=s(t,2);return e[0].offset.y>=e[1].offset+i})));return et([o,u]).pipe(at((function(t){var e=s(t,2);return{height:e[0],lock:e[1]}})),we(rn),ne(1))}function Nn(t){return M(Ht(ct),gt((function(e){var n=e.height,r=e.lock;!function(t,e){t.style.height=e+"px"}(t,n),function(t,e){t.setAttribute("data-md-state",e?"lock":"")}(t,r)})),pn((function(){!function(t){t.style.height=""}(t),function(t){t.removeAttribute("data-md-state")}(t)})))}var $n=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function Cn(t){return null!=t&&"function"==typeof t["@@transducer/step"]}function Pn(t,e,n){return function(){if(0===arguments.length)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!$n(i)){for(var o=0;o=0;){if(t(e[n]))return e[n];n-=1}})));function Rn(t){return t.replace(/(?:^|\s+)[*+-:^~]+(?=\s+|$)/g,"").trim().replace(/\s+|\b$/g,"* ")}function Hn(t,e){var n=(void 0===e?{}:e).transform,r=void 0===n?Rn:n;return et([mt(zt(t,"keyup"),zt(t,"focus").pipe($t(1))).pipe(at((function(){return r(t.value)})),ge(r(t.value)),we()),function(t){var e=zt(t,"focus"),n=zt(t,"blur");return mt(e.pipe(Vt(!0)),n.pipe(Vt(!1))).pipe(ge(t===ke()),ne(1))}(t)]).pipe(at((function(t){var e=s(t,2);return{value:e[0],focus:e[1]}})),ne(1))}var Fn={container:"md-clipboard md-icon"};var Dn={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 Un(t){var e=c([t.article],t.sections).map((function(t){var e=t.location,n=t.title,r=t.text;return Sn("a",{href:e,class:Dn.link,tabIndex:-1},Sn("article",{class:"parent"in t?Dn.section:Dn.article},Sn("h1",{class:Dn.title},n),r.length?Sn("p",{class:Dn.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 Sn("li",{class:Dn.item},e)}var zn={facts:"md-source__facts",fact:"md-source__fact"};var Vn={wrapper:"md-typeset__scrollwrap",table:"md-typeset__table"};function Yn(t,e){var n=e.query$,r=e.fetch$,i=Te(".md-search-result__list",t),o=Te(".md-search-result__meta",t);return M(qt(n),at((function(t){var e=s(t,2),n=e[0];return e[1].value?function(t,e){switch(e){case 0:t.textContent=Tn("search.result.none");break;case 1:t.textContent=Tn("search.result.one");break;default:t.textContent=Tn("search.result.other",e.toString())}}(o,n.length):function(t){t.textContent=Tn("search.result.placeholder")}(o),n})),xt((function(e){return r.pipe(Ht(ct),fn((function(n){for(var r=t.parentElement;n16)););return n}),0),Vt(e),pn((function(){!function(t){t.innerHTML=""}(i)})))})))}var Xn=new L(P);var Wn=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}();var Bn,Gn,Jn,Kn,Qn=function(){function t(t){if(this.total=t,this.total<0)throw new Wn}return t.prototype.call=function(t,e){return e.subscribe(new Zn(t,this.total))},t}(),Zn=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);function tr(t,e){var n,r=e.document$;return(Bn=r.pipe((n=1,function(t){return 0===n?F():t.lift(new Qn(n))}),at((function(e){return t.reduce((function(t,n){var r,i=Ee("[data-md-toggle="+n+"]",e);return o(o({},t),void 0!==i?((r={})[n]=i,r):{})}),{})})))).pipe(ne(1))}function er(t){return Bn.pipe(xt((function(e){return void 0!==e[t]?Y(e[t]):Xn})))}function nr(t){return zt(t,"change").pipe(at((function(){return t.checked})),ge(t.checked))}function rr(t){return t.type===Jn.RESULT}function ir(t){for(var e=[],n=1;n=r.offsetHeight})),function(t){return M(Ht(ct),gt((function(e){!function(t,e){t.setAttribute("data-md-state",e?"active":"")}(t,e)})),pn((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}(t))})))})))}function cr(t){var e=t.header$,n=t.viewport$;return M(xt((function(t){return ur("header").pipe(xt((function(r){var i=function(t,e){var n=e.header$,r=e.viewport$,i=n.pipe(Se("height")),o=et([r,i]).pipe(at((function(e){var n=s(e,2),r=n[0],i=r.offset.y,o=r.size.height,u=n[1],c=t.offsetTop,a=t.offsetHeight+c;return o-Math.max(0,c-i,u)-Math.max(0,o+i-a)})),we()),u=et([r,i]).pipe(at((function(e){var n=s(e,2),r=n[0].offset.y,i=n[1];return r>=t.offsetTop-i})),we());return et([o,i,u]).pipe(at((function(e){var n=s(e,3),r=n[0],i=n[1],o=n[2];return{offset:t.offsetTop-i,height:r,active:o}})),ne(1))}(t,{header$:e,viewport$:n});return i.pipe(an("active"),function(t){return M(Ht(ct),gt((function(e){var n=e.active;!function(t,e){t.setAttribute("data-md-state",e?"shadow":"")}(t,n)})),pn((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}(r)).subscribe(),i})))})),ne(1))}function ar(t){var e=t.main$,n=t.viewport$,r=t.screen$;return M(xt((function(t){return r.pipe(xt((function(r){if(r)return In(t,{main$:e,viewport$:n}).pipe(Nn(t),at((function(t){return{sidebar:t}})));var i=Oe("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=Ee("label",s);if(void 0!==a){var f=Te("#"+a.htmlFor);r.set(f,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 zt(t,"change")})))).pipe(at((function(){return Te(".md-nav__list",r.get(Ln((function(t){return t.checked}),c(r.keys()))))}))).pipe(at((function(t){return{next:t}})),fn((function(t,e){return{prev:t.next,next:e.next}})),ne(1))}(i).pipe(function(t){return M(Ht(ct),gt((function(t){var e=t.prev;e&&_n(e)})),$t(250),Ht(ct),gt((function(t){var e=t.next;e.style.webkitOverflowScrolling="touch"})),pn((function(){var e,n;try{for(var r=u(t),i=r.next();!i.done;i=r.next()){_n(Te(".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}}})))}(i),at((function(t){return{layer:t}})))})))})),ne(1))}function fr(){return M(xt((function(t){return function(t){return zt(t,"click").pipe(Vt(void 0))}(t).pipe(We(ur("search-query")),gt(je),Vt(void 0))})))}function lr(t){return t}!function(t){t[t.STRING=0]="STRING",t[t.BINARY=1]="BINARY"}(Gn||(Gn={})),function(t){t[t.SETUP=0]="SETUP",t[t.DUMP=1]="DUMP",t[t.QUERY=2]="QUERY",t[t.RESULT=3]="RESULT"}(Jn||(Jn={}));var hr=f(lr);function pr(t,e){var n=t.rx$,r=e.query$,i=e.keyboard$,o=er("search");return M(xt((function(t){var e=t.parentElement,u=function(t){return mt(zt(t,"scroll"),zt(window,"resize")).pipe(at((function(){return Ae(t)})),ge(Ae(t)),ne(1))}(e).pipe(at((function(t){return t.y>=e.scrollHeight-e.offsetHeight-16})),we(),Tt(hr));return i.pipe(En(o.pipe(xt(nr))),qt(o,ur("search-query"))).subscribe((function(e){var n=s(e,3),r=n[0],i=n[1],o=n[2],u=ke();switch(r.type){case"Enter":u===o&&r.claim();break;case"Escape":case"Tab":On(i,!1),je(o,!1);break;case"ArrowUp":case"ArrowDown":if(void 0===u)je(o);else{var a=c([o],Oe("[href]",t)),f=Math.max(0,(Math.max(0,a.indexOf(u))+a.length+("ArrowUp"===r.type?-1:1))%a.length);je(a[f])}r.claim();break;default:o!==ke()&&je(o)}})),n.pipe(Tt(rr),Se("data"),Yn(t,{query$:r,fetch$:u}))})),ne(1))}function dr(t,e){var n=e.keyboard$;return M(xt((function(){var e=ur("search-reset").pipe(fr()),r=ur("search-query").pipe(function(t){var e=t.tx$,n=er("search");return M(xt((function(t){var r=Hn(t);return r.pipe(at((function(t){var e=t.value;return{type:Jn.QUERY,data:e}}))).subscribe(e.next.bind(e)),r.pipe(an("focus"),qt(n)).subscribe((function(t){var e=s(t,2),n=e[0].focus,r=e[1];n&&On(r,n)})),r})))}(t),ne(1));return et([r,ur("search-result").pipe(pr(t,{query$:r,keyboard$:n})),e]).pipe(at((function(t){var e=s(t,2);return{query:e[0],result:e[1]}})),ne(1))})))}function yr(t){var e=t.header$,n=t.main$,r=t.viewport$,i=t.tablet$;return M(xt((function(t){return i.pipe(xt((function(i){if(i){var o=Oe(".md-nav__link",t),a=In(t,{main$:n,viewport$:r}).pipe(Nn(t)),f=function(t,e){var n,r,i=e.header$,o=e.viewport$,a=new Map;try{for(var f=u(t),l=f.next();!l.done;l=f.next()){var h=l.value,p=Ee('[id="'+decodeURIComponent(h.hash.substring(1))+'"]');void 0!==p&&a.set(h,p)}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}var d=i.pipe(at((function(t){return 18+t.height})));return o.pipe(an("size"),at((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()}return e.set(Ge(t=c(t,[i])),o.offsetTop)}),new Map)})),xt((function(t){return et(o,d).pipe(fn((function(t,e){for(var n=s(t,2),r=n[0],i=n[1],o=s(e,2),u=o[0].offset.y,a=o[1];i.length;){if(!(s(i[0],2)[1]-a=u))break;i=c([r.pop()],i)}return[r,i]}),[[],c(t)]),we((function(t,e){return t[0]===e[0]&&t[1]===e[1]})))}))).pipe(at((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]}))}})),fn((function(t,e){var n=Math.max(0,Math.min(e.prev.length,t.prev.length)-1),r=Math.max(e.prev.length,t.prev.length);return{prev:e.prev.slice(n,r+1),next:cn(e.next,t.next)}}),{prev:[],next:[]})).pipe(ne(1))}(o,{header$:e,viewport$:r}).pipe(function(t){return M(Ht(ct),gt((function(t){var e,n,r,i,o=t.prev,c=t.next;try{for(var a=u(c),f=a.next();!f.done;f=a.next()){wn(p=s(f.value,1)[0]),mn(p)}}catch(t){e={error:t}}finally{try{f&&!f.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}try{for(var l=u(o.entries()),h=l.next();!h.done;h=l.next()){var p,d=s(h.value,2),y=d[0];gn(p=s(d[1],1)[0],y===o.length-1),bn(p,!0)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}})),pn((function(){var e,n;try{for(var r=u(t),i=r.next();!i.done;i=r.next()){var o=i.value;wn(o),mn(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 et([a,f]).pipe(at((function(t){var e=s(t,2);return{sidebar:e[0],anchors:e[1]}})))}return Y({})})))})),ne(1))}var vr=n(4);function br(t){if(!function(t){return"object"==typeof t&&"string"==typeof t.base&&"object"==typeof t.worker&&"string"==typeof t.worker.search&&"string"==typeof t.worker.packer}(t))throw new SyntaxError("Invalid configuration: "+JSON.stringify(t));var e=zt(document,"DOMContentLoaded").pipe(Vt(document),ne(1)),n=(function(){var t=new Jt;zt(window,"popstate").pipe(at((function(){return location.href}))).subscribe(t)}(),zt(window,"hashchange").pipe(at((function(){return location.hash})),Tt((function(t){return t.length>0})),Re())),r=zt(window,"keydown").pipe(Tt((function(t){return!(t.metaKey||t.ctrlKey)})),at((function(t){return{type:t.key,claim:function(){t.preventDefault(),t.stopPropagation()}}})),Re()),i=et([mt(zt(window,"scroll"),zt(window,"resize")).pipe(at(De),ge(De())),zt(window,"resize").pipe(at(Ue),ge(Ue()))]).pipe(at((function(t){var e=s(t,2);return{offset:e[0],size:e[1]}})),ne(1)),a=Fe("(min-width: 960px)"),f=Fe("(min-width: 1220px)"),l=function(t,e){var n=e.base,r=e.index,i=new Worker(t),o=new URL(n,location.href),s=new Jt,c=Be(i,{tx$:s}).pipe(at((function(t){var e,n,r,i;if(rr(t))try{for(var s=u(t.data),c=s.next();!c.done;c=s.next()){var a=c.value,f=a.article,l=a.sections;f.location=ir(o,f.location);try{for(var h=(r=void 0,u(l)),p=h.next();!p.done;p=h.next()){var d=p.value;d.location=ir(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})));return(void 0!==r?pt(r):be({url:ir(o,"search/search_index.json"),responseType:"json",withCredentials:!0}).pipe(Se("response"))).pipe(at((function(t){return{type:Jn.SETUP,data:t}}))).subscribe(s.next.bind(s)),{tx$:s,rx$:c}}(t.worker.search,{base:t.base});tr(["drawer","search"],{document$:e}),function(t,e){var n=e.document$;(Kn=n.pipe(at((function(e){return t.reduce((function(t,n){var r,i=Ee("[data-md-component="+n+"]",e);return o(o({},t),void 0!==i?((r={})[n]=i,r):{})}),{})})),fn((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]=Ee("[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})))).pipe(ne(1))}(["container","header","header-title","hero","main","navigation","search","search-query","search-reset","search-result","tabs","toc"],{document$:e});var h,p=ur("header").pipe(M(xt(jn),ne(1))),d=ur("main").pipe(cr({header$:p,viewport$:i})),y=ur("search").pipe(dr(l,{keyboard$:r})),v=ur("navigation").pipe(ar({main$:d,viewport$:i,screen$:f})),b=ur("toc").pipe(yr({header$:p,main$:d,viewport$:i,tablet$:a})),w=ur("tabs").pipe(function(t){var e=t.header$,n=t.viewport$,r=t.screen$;return M(xt((function(t){return r.pipe(xt((function(r){return r?ze(t,{header$:e,viewport$:n}).pipe(An(t,10),at((function(t){return{hidden:t}}))):Y({hidden:r})})))})),ne(1))}({header$:p,viewport$:i,screen$:f})),_=ur("hero").pipe(function(t){var e=t.header$,n=t.viewport$;return M(xt((function(t){return ze(t,{header$:e,viewport$:n}).pipe(An(t,20),at((function(t){return{hidden:t}})))})),ne(1))}({header$:p,viewport$:i})),x=ur("header-title").pipe(sr({header$:p,viewport$:i}));(function(t){var e=t.document$;return vr.isSupported()?e.pipe(gt((function(){var t,e,n,r=Oe("pre > code");try{for(var i=u(r.entries()),o=i.next();!o.done;o=i.next()){var c=s(o.value,2),a=c[0],f=c[1],l=f.parentElement;l.id="__code_"+a,l.insertBefore((n=l.id,Sn("button",{class:Fn.container,title:Tn("clipboard.copy"),"data-clipboard-target":"#"+n+" code"},"")),f)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}})),xt((function(){return He((function(t){new vr(".md-clipboard").on("success",t)}))})),ne(1)):Xn})({document$:e}).subscribe(),function(t){var e=t.document$,n=document.createElement("table");return e.pipe(at((function(){return Oe("table:not([class])")})),gt((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,Sn("div",{class:Vn.wrapper},Sn("div",{class:Vn.table},i))))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}})),ne(1))}({document$:e}).subscribe(),function(t){var e=t.document$;return mt(Fe("print").pipe(Tt(hr)),zt(window,"beforeprint")).pipe(We(e),at((function(){return Oe("details")})),gt((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}}})),ne(1))}({document$:e}).subscribe(),navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&(h={document$:e},h.document$.pipe(at((function(){return Oe("[data-md-scrollfix]")})),xt((function(t){return mt.apply(void 0,c(t.map((function(t){return zt(t,"touchstart").pipe(Vt(t))}))))})),gt((function(t){var e=t.scrollTop;0===e?t.scrollTop=1:e+t.offsetHeight===t.scrollHeight&&(t.scrollTop=e-1)})),ne(1))).subscribe(),n.subscribe((function(t){er("drawer").subscribe((function(t){On(t,!1)}))})),n.pipe(xt((function(t){return er("search").pipe(Tt((function(t){return t.checked})),gt((function(t){return On(t,!1)})),$t(125),gt((function(){location.hash=" ",location.hash=t})))}))).subscribe();var S=er("search");et([S.pipe(xt(nr)),a]).pipe(qt(i),xt((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 Y(document.body).pipe($t(u?400:100),Ht(ct),gt((function(t){return u?function(t,e){t.setAttribute("data-md-state","lock"),t.style.top="-"+e+"px"}(t,o):function(t){var e=-1*parseInt(t.style.top,10);t.removeAttribute("data-md-state"),t.style.top="",e&&window.scrollTo(0,e)}(t)})))}))).subscribe(),r.pipe(En(function(t){return t.pipe(at((function(t){return!t})))}(S.pipe(xt(nr)))),Tt((function(t){return["s","f"].includes(t.type)})),qt(S)).subscribe((function(t){var e=s(t,2),n=e[0],r=e[1],i=ke();i&&function(t){switch(t.tagName){case"INPUT":case"SELECT":case"TEXTAREA":return!0;default:return t.isContentEditable}}(i)||(On(r,!0),n.claim())})),function(){var t=Ee(".md-source[href]");if(!t)return H;var e=sessionStorage.getItem("repository");if(e)return Y(JSON.parse(e));function n(t){if(t>999){var e=+((t-950)%1e3>99);return(++t/1e3).toFixed(e)+"k"}return t.toString()}var r=s(t.href.match(/^.+github\.com\/([^\/]+)\/?([^\/]+)?.*$/i),3),i=r[1],o=r[2];return i&&o?or(i,o).pipe(at((function(t){var e=t.stargazers_count,r=t.forks_count;return[n(e||0)+" Stars",n(r||0)+" Forks"]})),gt((function(t){return sessionStorage.setItem("repository",JSON.stringify(t))}))):i?or(i).pipe(at((function(t){return[n(t.public_repos||0)+" Repositories"]})),gt((function(t){return sessionStorage.setItem("repository",JSON.stringify(t))}))):Y([])}().subscribe((function(t){t.length&&Oe(".md-source__repository").forEach((function(e){e.dataset.mdState="done",e.appendChild(function(t){return Sn("ul",{class:zn.facts},t.map((function(t){return Sn("li",{class:zn.fact},t)})))}(t))}))}));var E={search$:y,main$:d,navigation$:v,toc$:b,tabs$:w,hero$:_,title$:x},T=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