!function(t,e){for(var r in e)t[r]=e[r]}(window,function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=7)}([,,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return i}));var n="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=n||void 0!==t&&t||o}).call(this,r(6))},,function(t,e,r){ /*! * clipboard.js v2.0.4 * https://zenorocha.github.io/clipboard.js * * Licensed MIT © Zeno Rocha */ var n;n=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===n(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,c.default)(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new i.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return l("action",t)}},{key:"defaultTarget",value:function(t){var e=l("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return l("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,r=!!document.queryCommandSupported;return e.forEach((function(t){r=r&&!!document.queryCommandSupported(t)})),r}}]),e}(u.default);function l(t,e){var r="data-clipboard-"+t;if(e.hasAttribute(r))return e.getAttribute(r)}t.exports=a},function(t,e,r){"use strict";var n,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=r+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=s},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var r=t.hasAttribute("readonly");r||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),r||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var n=window.getSelection(),o=document.createRange();o.selectNodeContents(t),n.removeAllRanges(),n.addRange(o),e=n.toString()}return e}},function(t,e){function r(){}r.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){var n=this;function o(){n.off(t,o),e.apply(r,arguments)}return o._=e,this.on(t,o,r)},emit:function(t){for(var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,o=r.length;n=0;)i(e=a[r],t)&&!f(n,e)&&(n[n.length]=e),r-=1;return n})):o((function(t){return Object(t)!==t?[]:Object.keys(t)})),p=o((function(t){for(var e=h(t),r=e.length,n=[],o=0;o0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(G);function nt(t){return t}function ot(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),function t(e,r,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof r?function(o){return o.pipe(t((function(t,n){return tt(e(t,n)).pipe(J((function(e,o){return r(t,e,n,o)})))}),n))}:("number"==typeof r&&(n=r),function(t){return t.lift(new et(e,n))})}(nt,t)}function it(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof C?t[0]:ot(r)(F(t,n))}function ut(t,e,r){return function(n){return n.lift(new ct(t,e,r))}}var ct=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e.subscribe(new st(t,this.nextOrObserver,this.error,this.complete))},t}(),st=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i._tapNext=I,i._tapError=I,i._tapComplete=I,i._tapError=n||I,i._tapComplete=o||I,v(r)?(i._context=i,i._tapNext=r):r&&(i._context=r,i._tapNext=r.next||I,i._tapError=r.error||I,i._tapComplete=r.complete||I),i}return y(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}(k);function at(t,e){return"function"==typeof e?function(r){return r.pipe(at((function(r,n){return tt(t(r,n)).pipe(J((function(t,o){return e(r,t,n,o)})))})))}:function(e){return e.lift(new lt(t))}}var lt=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new ft(t,this.project))},t}(),ft=function(t){function e(e,r){var n=t.call(this,e)||this;return n.project=r,n.index=0,n}return y(e,t),e.prototype._next=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){var n=this.innerSubscription;n&&n.unsubscribe();var o=new U(this,void 0,void 0);this.destination.add(o),this.innerSubscription=B(this,t,e,r,o)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,r,n,o){this.destination.next(e)},e}(G);function ht(){for(var t=[],e=0;e0){var u=i.indexOf(r);-1!==u&&i.splice(u,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(G);function yt(t,e,r,n){return v(r)&&(n=r,r=void 0),n?yt(t,e,r).pipe(J((function(t){return _(t)?n.apply(void 0,t):n(t)}))):new C((function(n){!function t(e,r,n,o,i){var u;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var c=e;e.addEventListener(r,n,i),u=function(){return c.removeEventListener(r,n,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var s=e;e.on(r,n),u=function(){return s.off(r,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var a=e;e.addListener(r,n),u=function(){return a.removeListener(r,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,f=e.length;l1?n.next(Array.prototype.slice.call(arguments)):n.next(t)}),n,r)}))}function vt(t){return function(e){return e.lift(new mt(t))}}var bt,mt=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new wt(t,this.value))},t}(),wt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return y(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(k),gt=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),_t=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return y(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(E),xt=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return y(e,t),e}(k),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 y(e,t),e.prototype[O]=function(){return new xt(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,r=e.length,n=e.slice(),o=0;o0?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(Tt),kt=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}(),jt=function(t){function e(r,n){void 0===n&&(n=kt.now);var o=t.call(this,r,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():n()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return y(e,t),e.prototype.schedule=function(r,n,o){return void 0===n&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(r,n,o):t.prototype.schedule.call(this,r,n,o)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(kt),At=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e}(jt))(Ot);function It(t){var e=t.error;t.subscriber.error(e)}bt||(bt={});var Nt=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return D(this.value);case"E":return t=this.error,new C(e?function(r){return e.schedule(It,0,{error:t,subscriber:r})}:function(e){return e.error(t)});case"C":return q()}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){return void 0===e&&(e=0),function(r){return r.lift(new Ct(t,e))}}var Ct=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 Pt(t,this.scheduler,this.delay))},t}(),Pt=function(t){function e(e,r,n){void 0===n&&(n=0);var o=t.call(this,e)||this;return o.scheduler=r,o.delay=n,o}return y(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new Mt(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}(k),Mt=function(){return function(t,e){this.notification=t,this.destination=e}}(),qt=function(t){function e(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this)||this;return o.scheduler=n,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=e<1?1:e,o._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return y(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var r=this._events;r.push(e),r.length>this._bufferSize&&r.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Lt(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=n.length;if(this.closed)throw new gt;if(this.isStopped||this.hasError?e=E.EMPTY:(this.observers.push(t),e=new _t(this,t)),o&&t.add(t=new Pt(t,o)),r)for(var u=0;ue&&(i=Math.max(i,o-e)),i>0&&n.splice(0,i),n},e}(St),Lt=function(){return function(t,e){this.time=t,this.value=e}}();function Rt(t,e,r){var n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:r},function(t){return t.lift(function(t){var e,r,n=t.bufferSize,o=void 0===n?Number.POSITIVE_INFINITY:n,i=t.windowTime,u=void 0===i?Number.POSITIVE_INFINITY:i,c=t.refCount,s=t.scheduler,a=0,l=!1,f=!1;return function(t){a++,e&&!l||(l=!1,e=new qt(o,u,s),r=t.subscribe({next:function(t){e.next(t)},error:function(t){l=!0,e.error(t)},complete:function(){f=!0,e.complete()}}));var n=e.subscribe(this);this.add((function(){a--,n.unsubscribe(),r&&!f&&c&&0===a&&(r.unsubscribe(),r=void 0,e=void 0)}))}}(n))}}var Ht=r(2);function Ft(t,e){return void 0===e&&(e=null),new Wt({method:"GET",url:t,headers:e})}function Dt(t,e,r){return new Wt({method:"POST",url:t,body:e,headers:r})}function Ut(t,e){return new Wt({method:"DELETE",url:t,headers:e})}function zt(t,e,r){return new Wt({method:"PUT",url:t,body:e,headers:r})}function Vt(t,e,r){return new Wt({method:"PATCH",url:t,body:e,headers:r})}var Yt=J((function(t,e){return t.response}));function Xt(t,e){return Yt(new Wt({method:"GET",url:t,responseType:"json",headers:e}))}var Wt=function(t){function e(e){var r=t.call(this)||this,n={async:!0,createXHR:function(){return this.crossDomain?function(){if(Ht.a.XMLHttpRequest)return new Ht.a.XMLHttpRequest;if(Ht.a.XDomainRequest)return new Ht.a.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(Ht.a.XMLHttpRequest)return new Ht.a.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],r=0;r<3;r++)try{if(t=e[r],new Ht.a.ActiveXObject(t))break}catch(t){}return new Ht.a.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)n.url=e;else for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);return r.request=n,r}var r;return y(e,t),e.prototype._subscribe=function(t){return new Bt(t,this.request)},e.create=((r=function(t){return new e(t)}).get=Ft,r.post=Dt,r.delete=Ut,r.put=zt,r.patch=Vt,r.getJSON=Xt,r),e}(C),Bt=function(t){function e(e,r){var n=t.call(this,e)||this;n.request=r,n.done=!1;var o=r.headers=r.headers||{};return r.crossDomain||n.getHeader(o,"X-Requested-With")||(o["X-Requested-With"]="XMLHttpRequest"),n.getHeader(o,"Content-Type")||Ht.a.FormData&&r.body instanceof Ht.a.FormData||void 0===r.body||(o["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),r.body=n.serializeBody(r.body,n.getHeader(r.headers,"Content-Type")),n.send(),n}return y(e,t),e.prototype.next=function(t){this.done=!0;var e,r=this.xhr,n=this.request,o=this.destination;try{e=new Gt(t,r,n)}catch(t){return o.error(t)}o.next(e)},e.prototype.send=function(){var t=this.request,e=this.request,r=e.user,n=e.method,o=e.url,i=e.async,u=e.password,c=e.headers,s=e.body;try{var a=this.xhr=t.createXHR();this.setupEvents(a,t),r?a.open(n,o,i,r,u):a.open(n,o,i),i&&(a.timeout=t.timeout,a.responseType=t.responseType),"withCredentials"in a&&(a.withCredentials=!!t.withCredentials),this.setHeaders(a,c),s?a.send(s):a.send()}catch(t){this.error(t)}},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(Ht.a.FormData&&t instanceof Ht.a.FormData)return t;if(e){var r=e.indexOf(";");-1!==r&&(e=e.substring(0,r))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var r in e)e.hasOwnProperty(r)&&t.setRequestHeader(r,e[r])},e.prototype.getHeader=function(t,e){for(var r in t)if(r.toLowerCase()===e.toLowerCase())return t[r]},e.prototype.setupEvents=function(t,e){var r=e.progressSubscriber;function n(t){var e,r=n,o=r.subscriber,i=r.progressSubscriber,u=r.request;i&&i.error(t);try{e=new Qt(this,u)}catch(t){e=t}o.error(e)}if(t.ontimeout=n,n.request=e,n.subscriber=this,n.progressSubscriber=r,t.upload&&"withCredentials"in t){var o,i;if(r)o=function(t){o.progressSubscriber.next(t)},Ht.a.XDomainRequest?t.onprogress=o:t.upload.onprogress=o,o.progressSubscriber=r;i=function(t){var e,r=i,n=r.progressSubscriber,o=r.subscriber,u=r.request;n&&n.error(t);try{e=new Jt("ajax error",this,u)}catch(t){e=t}o.error(e)},t.onerror=i,i.request=e,i.subscriber=this,i.progressSubscriber=r}function u(t){}function c(t){var e=c,r=e.subscriber,n=e.progressSubscriber,o=e.request;if(4===this.readyState){var i=1223===this.status?204:this.status,u="text"===this.responseType?this.response||this.responseText:this.response;if(0===i&&(i=u?200:0),i<400)n&&n.complete(),r.next(t),r.complete();else{n&&n.error(t);var s=void 0;try{s=new Jt("ajax error "+i,this,o)}catch(t){s=t}r.error(s)}}}t.onreadystatechange=u,u.subscriber=this,u.progressSubscriber=r,u.request=e,t.onload=c,c.subscriber=this,c.progressSubscriber=r,c.request=e},e.prototype.unsubscribe=function(){var e=this.done,r=this.xhr;!e&&r&&4!==r.readyState&&"function"==typeof r.abort&&r.abort(),t.prototype.unsubscribe.call(this)},e}(k),Gt=function(){return function(t,e,r){this.originalEvent=t,this.xhr=e,this.request=r,this.status=e.status,this.responseType=e.responseType||r.responseType,this.response=Kt(this.responseType,e)}}(),Jt=function(){function t(t,e,r){return Error.call(this),this.message=t,this.name="AjaxError",this.xhr=e,this.request=r,this.status=e.status,this.responseType=e.responseType||r.responseType,this.response=Kt(this.responseType,e),this}return t.prototype=Object.create(Error.prototype),t}();function Kt(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 Qt=function(t,e){return Jt.call(this,"ajax timeout",t,e),this.name="AjaxTimeoutError",this},Zt=function(){return Wt.create}();function te(){for(var t=[],e=0;e1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(k),we=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return y(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 E).add(this.source.subscribe(new _e(this.getSubject(),this))),t.closed&&(this._connection=null,t=E.EMPTY)),t},e.prototype.refCount=function(){return ve()(this)},e}(C),ge=function(){var t=we.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}}}(),_e=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return y(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}(xt);var xe=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),o=r(n).subscribe(t);return o.add(e.subscribe(n)),o},t}();function Se(){return new St}function Ee(){return function(t){return ve()((e=Se,function(t){var n;if(n="function"==typeof e?e:function(){return e},"function"==typeof r)return t.lift(new xe(n,r));var o=Object.create(t,ge);return o.source=t,o.subjectFactory=n,o})(t));var e,r}}function Te(t,e,r){return r?Te(t,e).pipe(J((function(t){return _(t)?r.apply(void 0,t):r(t)}))):new C((function(r){var n,o=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function Pe(t,e){var r=e.header$;return je([e.viewport$,r]).pipe(J((function(e){var r=Ce(e,2),n=r[0],o=n.offset,i=n.size,u=r[1].height;return{offset:{x:o.x-t.offsetLeft,y:o.y-t.offsetTop+u},size:i}})),Rt(1))}var Me={leading:!0,trailing:!1};var qe=function(){function t(t,e,r){this.durationSelector=t,this.leading=e,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new Le(t,this.durationSelector,this.leading,this.trailing))},t}(),Le=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.destination=e,i.durationSelector=r,i._leading=n,i._trailing=o,i._hasValue=!1,i}return y(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,r,n,o){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(G);function Re(t,e){return e?at((function(){return t}),e):at((function(){return t}))}function He(t,e){var r,n,o=e.tx$,i=yt(t,"message").pipe(ie("data"));return o.pipe((r=function(){return i},void 0===(n={leading:!0,trailing:!0})&&(n=Me),function(t){return t.lift(new qe(r,n.leading,n.trailing))}),ut((function(e){return t.postMessage(e)})),Re(i),Ee())}var Fe=o((function(t){return e=t,"[object String]"===Object.prototype.toString.call(e)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse();var e}));function De(t){return function e(r,i){switch(arguments.length){case 0:return e;case 1:return n(r)?e:o((function(e){return t(r,e)}));default:return n(r)&&n(i)?e:n(r)?o((function(e){return t(e,i)})):n(i)?o((function(e){return t(r,e)})):t(r,i)}}}function Ue(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function ze(t,e,r){for(var n=0,o=r.length;n=0;){if(r[s]===t)return n[s]===e;s-=1}switch(c){case"Map":return t.size===e.size&&Xe(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&Xe(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=h(t);if(a.length!==h(e).length)return!1;var l=r.concat([t]),f=n.concat([e]);for(s=a.length-1;s>=0;){var p=a[s];if(!i(p,e)||!We(e[p],t[p],l,f))return!1;s-=1}return!0}var Be=De((function(t,e){return We(t,e,[],[])}));function Ge(t,e){return function(t,e,r){var n,o;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(n=1/e;r=0}function Je(t,e,r){var n,o=typeof t;switch(o){case"string":case"number":return 0===t&&1/t==-1/0?!!r._items["-0"]||(e&&(r._items["-0"]=!0),!1):null!==r._nativeSet?e?(n=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===n):r._nativeSet.has(t):o in r._items?t in r._items[o]||(e&&(r._items[o][t]=!0),!1):(e&&(r._items[o]={},r._items[o][t]=!0),!1);case"boolean":if(o in r._items){var i=t?1:0;return!!r._items[o][i]||(e&&(r._items[o][i]=!0),!1)}return e&&(r._items[o]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?e?(n=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===n):r._nativeSet.has(t):o in r._items?!!Ge(t,r._items[o])||(e&&r._items[o].push(t),!1):(e&&(r._items[o]=[t]),!1);case"undefined":return!!r._items[o]||(e&&(r._items[o]=!0),!1);case"object":if(null===t)return!!r._items.null||(e&&(r._items.null=!0),!1);default:return(o=Object.prototype.toString.call(t))in r._items?!!Ge(t,r._items[o])||(e&&r._items[o].push(t),!1):(e&&(r._items[o]=[t]),!1)}}var Ke=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!Je(t,!0,this)},t.prototype.has=function(t){return Je(t,!1,this)},t}(),Qe=De((function(t,e){for(var r=[],n=0,o=t.length,i=e.length,u=new Ke,c=0;c0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(cancelAnimationFrame(r),e.scheduled=void 0)},e}(Tt),tr=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,o=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n=2&&(r=!0),function(n){return n.lift(new rr(t,e,r))}}var rr=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,e){return e.subscribe(new nr(t,this.accumulator,this.seed,this.hasSeed))},t}(),nr=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.accumulator=r,i._seed=n,i.hasSeed=o,i.index=0,i}return y(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.accumulator(this.seed,t,r)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(k);function or(t){return function(e){return e.lift(new ir(t))}}var ir=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new ur(t,this.callback))},t}(),ur=function(t){function e(e,r){var n=t.call(this,e)||this;return n.add(new E(r)),n}return y(e,t),e}(k);function cr(t,e){t.setAttribute("data-md-state",e?"blur":"")}function sr(t){t.removeAttribute("data-md-state")}function ar(t,e){t.classList.toggle("md-nav__link--active",e)}function lr(t){t.classList.remove("md-nav__link--active")}function fr(t){t.style.webkitOverflowScrolling=""}var hr=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function pr(t,e){var r,n;if("string"==typeof e||"number"==typeof e)t.innerHTML+=e.toString();else if(e instanceof Node)t.appendChild(e);else if(Array.isArray(e))try{for(var o=hr(e),i=o.next();!i.done;i=o.next()){pr(t,i.value)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}function dr(t,e){for(var r,n,o,i,u=[],c=2;c0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function br(t,e){if(void 0===yr){var r=ce("#__lang");yr=JSON.parse(r.innerText)}if(void 0===yr[t])throw new ReferenceError("Invalid translation: "+t);return void 0!==e?yr[t].replace("#",e):yr[t]}function mr(t,e){t.appendChild(e)}function wr(t,e){t.checked!==e&&t.click()}var gr=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_r=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},xr=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function Tr(t,e){return void 0===e&&(e=0),N(J((function(t){return t.offset.y>=e})),re(),$t(tr),ut((function(e){!function(t,e){t.setAttribute("data-md-state",e?"hidden":"")}(t,e)})),or((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}var Or=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function kr(t,e){var r=e.main$,n=e.viewport$,o=parseFloat(getComputedStyle(t.parentElement).getPropertyValue("padding-top")),i=je([n,r]).pipe(J((function(t){var e=Or(t,2),r=e[0].offset.y,n=e[1],i=n.offset;return n.height-o+Math.min(o,Math.max(0,r-i))}))),u=je([n,r]).pipe(J((function(t){var e=Or(t,2);return e[0].offset.y>=e[1].offset+o})));return je([i,u]).pipe(J((function(t){var e=Or(t,2);return{height:e[0],lock:e[1]}})),re(Be),Rt(1))}function jr(t){return N($t(tr),ut((function(e){var r=e.height,n=e.lock;!function(t,e){t.style.height=e+"px"}(t,r),function(t,e){t.setAttribute("data-md-state",e?"lock":"")}(t,n)})),or((function(){!function(t){t.style.height=""}(t),function(t){t.removeAttribute("data-md-state")}(t)})))}var Ar=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function Ir(t){return null!=t&&"function"==typeof t["@@transducer/step"]}function Nr(t,e,r){return function(){if(0===arguments.length)return r();var n=Array.prototype.slice.call(arguments,0),o=n.pop();if(!Ar(o)){for(var i=0;i=0;){if(t(e[r]))return e[r];r-=1}}))),Mr=new jt(Tt);function qr(t,e){void 0===e&&(e=Mr);var r,n=(r=t)instanceof Date&&!isNaN(+r)?+t-e.now():Math.abs(t);return function(t){return t.lift(new Lr(n,e))}}var Lr=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Rr(t,this.delay,this.scheduler))},t}(),Rr=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.delay=r,o.scheduler=n,o.queue=[],o.active=!1,o.errored=!1,o}return y(e,t),e.dispatch=function(t){for(var e=t.source,r=e.queue,n=t.scheduler,o=t.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(o);if(r.length>0){var i=Math.max(0,r[0].time-n.now());this.schedule(t,i)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,r=new Hr(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(Nt.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(Nt.createComplete()),this.unsubscribe()},e}(k),Hr=function(){return function(t,e){this.time=t,this.notification=e}}(),Fr=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Dr=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},Ur=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function Vr(t){return t.replace(/(?:^|\s+)[*+-:^~]+(?=\s+|$)/g,"").trim().replace(/\s+|\b$/g,"* ")}function Yr(t,e){var r=(void 0===e?{}:e).transform,n=void 0===r?Vr:r;return je([yt(t,"keyup").pipe(J((function(){return n(t.value)})),ee(n(t.value)),re()),function(t){var e=yt(t,"focus"),r=yt(t,"blur");return it(e.pipe(vt(!0)),r.pipe(vt(!1))).pipe(ee(t===se()),Rt(1))}(t)]).pipe(J((function(t){var e=zr(t,2);return{value:e[0],focus:e[1]}})),Rt(1))}function Xr(t){return yt(t,"click").pipe(vt(void 0))}var Wr={container:"md-clipboard md-icon"};var Br=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},Gr=function(){for(var t=[],e=0;er){for(;" "!==t[r]&&--r>0;);return t.substring(0,r)+"..."}return t}(n,320)):void 0))}));return dr("li",{class:Jr.item},n)}var Qr={facts:"md-source__facts",fact:"md-source__fact"};var Zr={wrapper:"md-typeset__scrollwrap",table:"md-typeset__table"};var tn=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function en(t,e){var r=e.query$,n=e.fetch$,o=ce(".md-search-result__list",t),i=ce(".md-search-result__meta",t);return N(ht(r),J((function(t){var e=tn(t,2),r=e[0];return e[1].value?function(t,e){switch(e){case 0:t.textContent=br("search.result.none");break;case 1:t.textContent=br("search.result.one");break;default:t.textContent=br("search.result.other",e.toString())}}(i,r.length):function(t){t.textContent=br("search.result.placeholder")}(i),r})),at((function(e){return n.pipe($t(tr),er((function(r){for(var n=t.parentElement;r16)););return r}),0),vt(e),or((function(){!function(t){t.innerHTML=""}(o)})))})))}var rn=new C(I);var nn=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 on,un,cn,sn=function(){function t(t){if(this.total=t,this.total<0)throw new nn}return t.prototype.call=function(t,e){return e.subscribe(new an(t,this.total))},t}(),an=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.count=0,n}return y(e,t),e.prototype._next=function(t){var e=this.total,r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))},e}(k),ln=function(){return(ln=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},vn=function(){for(var t=[],e=0;e=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function mn(t){for(var e=[],r=1;r=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function Sn(t){return gn.pipe(at((function(e){return void 0!==e[t]?D(e[t]):rn})))}function En(t){var e=t.header$,r=t.viewport$;return N(at((function(t){return Sn("header").pipe(at((function(n){var o=function(t,e){var r=e.header$,n=e.viewport$,o=r.pipe(ie("height")),i=je([n,o]).pipe(J((function(e){var r=Er(e,2),n=r[0],o=n.offset.y,i=n.size.height,u=r[1],c=t.offsetTop,s=t.offsetHeight+c;return i-Math.max(0,c-o,u)-Math.max(0,i+o-s)})),re()),u=je([n,o]).pipe(J((function(e){var r=Er(e,2),n=r[0].offset.y,o=r[1];return n>=t.offsetTop-o})),re());return je([i,o,u]).pipe(J((function(e){var r=Er(e,3),n=r[0],o=r[1],i=r[2];return{offset:t.offsetTop-o,height:n,active:i}})),Rt(1))}(t,{header$:e,viewport$:r});return o.pipe(fe("active"),function(t){return N($t(tr),ut((function(e){var r=e.active;!function(t,e){t.setAttribute("data-md-state",e?"shadow":"")}(t,r)})),or((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}(n)).subscribe(),o})))})),Rt(1))}function Tn(t){var e=t.main$,r=t.viewport$,n=t.screen$;return N(at((function(t){return n.pipe(at((function(n){if(n)return kr(t,{main$:e,viewport$:r}).pipe(jr(t),J((function(t){return{sidebar:t}})));var o=ae("nav",t);return function(t){var e,r,n=new Map;try{for(var o=Fr(t),i=o.next();!i.done;i=o.next()){var u=i.value,c=ue("label",u);if(void 0!==c){var s=ce("#"+c.htmlFor);n.set(s,u)}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return it.apply(void 0,Ur(Ur(n.keys()).map((function(t){return yt(t,"change")})))).pipe(J((function(){return ce(".md-nav__list",n.get(Pr((function(t){return t.checked}),Ur(n.keys()))))}))).pipe(J((function(t){return{next:t}})),er((function(t,e){return{prev:t.next,next:e.next}})),Rt(1))}(o).pipe(function(t){return N($t(tr),ut((function(t){var e=t.prev;e&&fr(e)})),qr(250),$t(tr),ut((function(t){var e=t.next;e.style.webkitOverflowScrolling="touch"})),or((function(){var e,r;try{for(var n=Fr(t),o=n.next();!o.done;o=n.next()){fr(ce(".md-nav__list",o.value))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}})))}(o),J((function(t){return{layer:t}})))})))})),Rt(1))}var On=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function kn(t){return t}var jn=o(kn),An=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},In=function(){for(var t=[],e=0;e=e.scrollHeight-e.offsetHeight-16})),re(),pe(jn));return i.pipe(function(t){return N(ht(t),pe((function(t){return vr(t,2)[1]})),J((function(t){return vr(t,1)[0]})))}(u.pipe(at(pn))),ht(u,Sn("search-query"))).subscribe((function(e){var r=An(e,3),n=r[0],o=r[1],i=r[2],u=se();switch(n.type){case"Enter":u===i&&n.claim();break;case"Escape":case"Tab":wr(o,!1),le(i,!1);break;case"ArrowUp":case"ArrowDown":if(void 0===u)le(i);else{var c=In([i],ae("[href]",t)),s=Math.max(0,(Math.max(0,c.indexOf(u))+c.length+("ArrowUp"===n.type?-1:1))%c.length);le(c[s])}n.claim();break;default:i!==se()&&le(i)}})),r.pipe(pe(dn),ie("data"),en(t,{query$:n,fetch$:c}))})),Rt(1))}var $n=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function Cn(t,e){var r=e.viewport$,n=e.keyboard$;return N(at((function(){var e=Sn("search-query").pipe(function(t){var e=t.tx$,r=hn("search");return N(at((function(t){var n=Yr(t);return n.pipe(fe("value"),J((function(t){var e=t.value;return{type:cn.QUERY,data:e}}))).subscribe(e.next.bind(e)),n.pipe(fe("focus"),ht(r)).subscribe((function(t){var e=On(t,2),r=e[0].focus,n=e[1];r&&wr(n,r)})),n})))}(t),Rt(1)),o=Sn("search-reset").pipe(function(){var t=Sn("search-query");return N(at(Xr),Re(t),ut(le),vt(void 0),ee(void 0))}());return je([e,Sn("search-result").pipe(Nn(t,{query$:e,viewport$:r,keyboard$:n})),o]).pipe(J((function(t){var e=$n(t,2);return{query:e[0],result:e[1]}})),Rt(1))})))}var Pn=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function Mn(t){var e=t.header$,r=t.main$,n=t.viewport$,o=t.tablet$;return N(at((function(t){return o.pipe(at((function(o){if(o){var i=ae(".md-nav__link",t),u=kr(t,{main$:r,viewport$:n}).pipe(jr(t)),c=function(t,e){var r,n,o=e.header$,i=e.viewport$,u=new Map;try{for(var c=gr(t),s=c.next();!s.done;s=c.next()){var a=s.value,l=ue('[id="'+decodeURIComponent(a.hash.substring(1))+'"]');void 0!==l&&u.set(a,l)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}var f=o.pipe(J((function(t){return 18+t.height})));return i.pipe(fe("size"),J((function(){var t=[];return xr(u).reduce((function(e,r){for(var n=_r(r,2),o=n[0],i=n[1];t.length;){if(!(u.get(t[t.length-1]).tagName>=i.tagName))break;t.pop()}return e.set(Fe(t=xr(t,[o])),i.offsetTop)}),new Map)})),at((function(t){return je(i,f).pipe(er((function(t,e){for(var r=_r(t,2),n=r[0],o=r[1],i=_r(e,2),u=i[0].offset.y,c=i[1];o.length;){if(!(_r(o[0],2)[1]-c=u))break;o=xr([n.pop()],o)}return[n,o]}),[[],xr(t)]),re((function(t,e){return t[0]===e[0]&&t[1]===e[1]})))}))).pipe(J((function(t){var e=_r(t,2),r=e[0],n=e[1];return{prev:r.map((function(t){return _r(t,1)[0]})),next:n.map((function(t){return _r(t,1)[0]}))}})),er((function(t,e){var r=Math.max(0,Math.min(e.prev.length,t.prev.length)-1),n=Math.max(e.prev.length,t.prev.length);return{prev:e.prev.slice(r,n+1),next:Qe(e.next,t.next)}}),{prev:[],next:[]})).pipe(Rt(1))}(i,{header$:e,viewport$:n}).pipe(function(t){return N($t(tr),ut((function(t){var e,r,n,o,i=t.prev,u=t.next;try{for(var c=gr(u),s=c.next();!s.done;s=c.next()){lr(f=_r(s.value,1)[0]),sr(f)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}try{for(var a=gr(i.entries()),l=a.next();!l.done;l=a.next()){var f,h=_r(l.value,2),p=h[0];ar(f=_r(h[1],1)[0],p===i.length-1),cr(f,!0)}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}})),or((function(){var e,r;try{for(var n=gr(t),o=n.next();!o.done;o=n.next()){var i=o.value;lr(i),sr(i)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}})))}(i));return je([u,c]).pipe(J((function(t){var e=Pn(t,2);return{sidebar:e[0],anchors:e[1]}})))}return D({})})))})),Rt(1))}var qn=r(4),Ln=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Rn=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};var Hn=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var Fn=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};r.d(e,"initialize",(function(){return Vn}));var Dn=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},zn=function(){for(var t=[],e=0;e0})),Ee()),n=yt(window,"keydown").pipe(pe((function(t){return!(t.metaKey||t.ctrlKey)})),J((function(t){return{type:t.key,claim:function(){t.preventDefault(),t.stopPropagation()}}})),Ee()),o=je([it(yt(window,"scroll"),yt(window,"resize")).pipe(J(Ne),ee(Ne())),yt(window,"resize").pipe(J($e),ee($e()))]).pipe(J((function(t){var e=Ce(t,2);return{offset:e[0],size:e[1]}})),Rt(1)),i=Oe("(min-width: 960px)"),u=Oe("(min-width: 1220px)"),c=function(t,e){var r=e.base,n=new Worker(t),o=new URL(r,location.href),i=new St,u=He(n,{tx$:i}).pipe(J((function(t){var e,r,n,i;if(dn(t))try{for(var u=bn(t.data),c=u.next();!c.done;c=u.next()){var s=c.value,a=s.article,l=s.sections;a.location=mn(o,a.location);try{for(var f=(n=void 0,bn(l)),h=f.next();!h.done;h=f.next()){var p=h.value;p.location=mn(o,p.location)}}catch(t){n={error:t}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}return t})));return Zt({url:mn(o,"search/search_index.json"),responseType:"json",withCredentials:!0}).pipe(ie("response"),J((function(t){return{type:cn.SETUP,data:t}}))).subscribe(i.next.bind(i)),{tx$:i,rx$:u}}(t.worker.search,{base:t.base});fn(["drawer","search"],{document$:e}),function(t,e){var r=e.document$;(gn=r.pipe(J((function(e){return t.reduce((function(t,r){var n,o=ue("[data-md-component="+r+"]",e);return _n(_n({},t),void 0!==o?((n={})[r]=o,n):{})}),{})})),er((function(t,e){var r,n;try{for(var o=xn(h(t)),i=o.next();!i.done;i=o.next()){var u=i.value;switch(u){case"header-title":case"container":u in t&&void 0!==t[u]&&(t[u].replaceWith(e[u]),t[u]=e[u]);break;default:t[u]=ue("[data-md-component="+u+"]")}}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return t})))).pipe(Rt(1))}(["container","header","header-title","hero","main","navigation","search","search-query","search-reset","search-result","tabs","toc"],{document$:e});var s=Sn("header").pipe(N(at(Sr),Rt(1))),a=Sn("main").pipe(En({header$:s,viewport$:o})),l=Sn("search").pipe(Cn(c,{viewport$:o,keyboard$:n})),f=Sn("navigation").pipe(Tn({main$:a,viewport$:o,screen$:u})),d=Sn("toc").pipe(Mn({header$:s,main$:a,viewport$:o,tablet$:i})),y=Sn("tabs").pipe(function(t){var e=t.header$,r=t.viewport$,n=t.screen$;return N(at((function(t){return n.pipe(at((function(n){return n?Pe(t,{header$:e,viewport$:r}).pipe(Tr(t,10),J((function(t){return{hidden:t}}))):D({hidden:n})})))})),Rt(1))}({header$:s,viewport$:o,screen$:u})),v=Sn("hero").pipe(function(t){var e=t.header$,r=t.viewport$;return N(at((function(t){return Pe(t,{header$:e,viewport$:r}).pipe(Tr(t,20),J((function(t){return{hidden:t}})))})),Rt(1))}({header$:s,viewport$:o}));Sn("main").pipe(J((function(t){return ce("h1",t)})),at((function(t){return Pe(t,{header$:s,viewport$:o}).pipe(J((function(e){return e.offset.y>=t.offsetHeight})),ht(Sn("header-title")),ut((function(t){var e=Un(t,2),r=e[0];e[1].dataset.mdState=r?"active":""})))}))).subscribe(),r.subscribe((function(){hn("drawer").subscribe((function(t){wr(t,!1)})),hn("search").subscribe((function(t){wr(t,!1)}))})),function(t){var e=t.document$;return qn.isSupported()?e.pipe(ut((function(){var t,e,r,n=ae("pre > code");try{for(var o=Ln(n.entries()),i=o.next();!i.done;i=o.next()){var u=Rn(i.value,2),c=u[0],s=u[1],a=s.parentElement;a.id="__code_"+c,a.insertBefore((r=a.id,dr("button",{class:Wr.container,title:br("clipboard.copy"),"data-clipboard-target":"#"+r+" code"},"")),s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}})),at((function(){return Te((function(t){new qn(".md-clipboard").on("success",t)}))})),Rt(1)):rn}({document$:e}).subscribe(console.log),function(){var t=ue(".md-source[href]");if(console.log(t),!t)return M;var e=sessionStorage.getItem("repository");if(e)return D(JSON.parse(e));function r(t){if(t>999){var e=+((t-950)%1e3>99);return(++t/1e3).toFixed(e)+"k"}return t.toString()}var n=Un(t.href.match(/^.+github\.com\/([^\/]+)\/?([^\/]+)?.*$/i),3),o=n[1],i=n[2];return o&&i?wn(o,i).pipe(J((function(t){var e=t.stargazers_count,n=t.forks_count;return[r(e||0)+" Stars",r(n||0)+" Forks"]})),ut((function(t){return sessionStorage.setItem("repository",JSON.stringify(t))}))):o?wn(o).pipe(J((function(t){return[r(t.public_repos||0)+" Repositories"]})),ut((function(t){return sessionStorage.setItem("repository",JSON.stringify(t))}))):D([])}().subscribe((function(t){t.length&&ae(".md-source__repository").forEach((function(e){e.dataset.mdState="done",e.appendChild(function(t){return dr("ul",{class:Qr.facts},t.map((function(t){return dr("li",{class:Qr.fact},t)})))}(t))}))})),function(t){var e=t.document$,r=document.createElement("table");return e.pipe(J((function(){return ae("table:not([class])")})),ut((function(t){var e,n,o;try{for(var i=Fn(t),u=i.next();!u.done;u=i.next()){var c=u.value;c.replaceWith(r),r.replaceWith((o=c,dr("div",{class:Zr.wrapper},dr("div",{class:Zr.table},o))))}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}})),Rt(1))}({document$:e}).subscribe(console.log),function(t){var e=t.document$;return it(Oe("print").pipe(pe(jn)),yt(window,"beforeprint")).pipe(Re(e),J((function(){return ae("details")})),ut((function(t){var e,r;try{for(var n=Hn(t),o=n.next();!o.done;o=n.next()){o.value.setAttribute("open","")}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}})),Rt(1))}({document$:e}).subscribe(console.log);var b={search$:l,main$:a,navigation$:f,toc$:d,tabs$:y,hero$:v},m=Dn(b,[]);return it.apply(void 0,zn(p(m))).subscribe(),{state:b}}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.676c670f.min.js.map