mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
19 lines
29 KiB
JavaScript
19 lines
29 KiB
JavaScript
"use strict";(()=>{/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var _r=function(r,t){return _r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])},_r(r,t)};function y(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");_r(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Yr(r,t,e,o){function n(i){return i instanceof e?i:new e(function(f){f(i)})}return new(e||(e=Promise))(function(i,f){function u(p){try{c(o.next(p))}catch(h){f(h)}}function a(p){try{c(o.throw(p))}catch(h){f(h)}}function c(p){p.done?i(p.value):n(p.value).then(u,a)}c((o=o.apply(r,t||[])).next())})}function X(r,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,f;return f={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function u(c){return function(p){return a([c,p])}}function a(c){if(o)throw new TypeError("Generator is already executing.");for(;e;)try{if(o=1,n&&(i=c[0]&2?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,n=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){e.label=c[1];break}if(c[0]===6&&e.label<i[1]){e.label=i[1],i=c;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(c);break}i[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(r,e)}catch(p){c=[6,p],n=0}finally{o=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function P(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],o=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var o=e.call(r),n,i=[],f;try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(u){f={error:u}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(f)throw f.error}}return i}function S(r,t,e){if(e||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return r.concat(i||Array.prototype.slice.call(t))}function j(r){return this instanceof j?(this.v=r,this):new j(r)}function zr(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=e.apply(r,t||[]),n,i=[];return n={},f("next"),f("throw"),f("return"),n[Symbol.asyncIterator]=function(){return this},n;function f(m){o[m]&&(n[m]=function(w){return new Promise(function(T,b){i.push([m,w,T,b])>1||u(m,w)})})}function u(m,w){try{a(o[m](w))}catch(T){h(i[0][3],T)}}function a(m){m.value instanceof j?Promise.resolve(m.value.v).then(c,p):h(i[0][2],m)}function c(m){u("next",m)}function p(m){u("throw",m)}function h(m,w){m(w),i.shift(),i.length&&u(i[0][0],i[0][1])}}function qr(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof P=="function"?P(r):r[Symbol.iterator](),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(i){e[i]=r[i]&&function(f){return new Promise(function(u,a){f=r[i](f),n(u,a,f.done,f.value)})}}function n(i,f,u,a){Promise.resolve(a).then(function(c){i({value:c,done:u})},f)}}function s(r){return typeof r=="function"}function Z(r){var t=function(o){Error.call(o),o.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var rr=Z(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
`+e.map(function(o,n){return n+1+") "+o.toString()}).join(`
|
|
`):"",this.name="UnsubscriptionError",this.errors=e}});function C(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var F=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,o,n,i;if(!this.closed){this.closed=!0;var f=this._parentage;if(f)if(this._parentage=null,Array.isArray(f))try{for(var u=P(f),a=u.next();!a.done;a=u.next()){var c=a.value;c.remove(this)}}catch(b){t={error:b}}finally{try{a&&!a.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else f.remove(this);var p=this.initialTeardown;if(s(p))try{p()}catch(b){i=b instanceof rr?b.errors:[b]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var m=P(h),w=m.next();!w.done;w=m.next()){var T=w.value;try{Br(T)}catch(b){i=i!=null?i:[],b instanceof rr?i=S(S([],_(i)),_(b.errors)):i.push(b)}}}catch(b){o={error:b}}finally{try{w&&!w.done&&(n=m.return)&&n.call(m)}finally{if(o)throw o.error}}}if(i)throw new rr(i)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Br(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&C(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&C(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}();var wr=F.EMPTY;function er(r){return r instanceof F||r&&"closed"in r&&s(r.remove)&&s(r.add)&&s(r.unsubscribe)}function Br(r){s(r)?r():r.unsubscribe()}var E={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var M={setTimeout:function(r,t){for(var e=[],o=2;o<arguments.length;o++)e[o-2]=arguments[o];var n=M.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,S([r,t],_(e))):setTimeout.apply(void 0,S([r,t],_(e)))},clearTimeout:function(r){var t=M.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(r)},delegate:void 0};function tr(r){M.setTimeout(function(){var t=E.onUnhandledError;if(t)t(r);else throw r})}function O(){}var Gr=function(){return Sr("C",void 0,void 0)}();function Hr(r){return Sr("E",void 0,r)}function Kr(r){return Sr("N",r,void 0)}function Sr(r,t,e){return{kind:r,value:t,error:e}}var L=null;function R(r){if(E.useDeprecatedSynchronousErrorHandling){var t=!L;if(t&&(L={errorThrown:!1,error:null}),r(),t){var e=L,o=e.errorThrown,n=e.error;if(L=null,o)throw n}}else r()}function Jr(r){E.useDeprecatedSynchronousErrorHandling&&L&&(L.errorThrown=!0,L.error=r)}var G=function(r){y(t,r);function t(e){var o=r.call(this)||this;return o.isStopped=!1,e?(o.destination=e,er(e)&&e.add(o)):o.destination=Oe,o}return t.create=function(e,o,n){return new nr(e,o,n)},t.prototype.next=function(e){this.isStopped?Er(Kr(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?Er(Hr(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?Er(Gr,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(F);var Se=Function.prototype.bind;function gr(r,t){return Se.call(r,t)}var ge=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(o){or(o)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(o){or(o)}else or(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){or(e)}},r}(),nr=function(r){y(t,r);function t(e,o,n){var i=r.call(this)||this,f;if(s(e)||!e)f={next:e!=null?e:void 0,error:o!=null?o:void 0,complete:n!=null?n:void 0};else{var u;i&&E.useDeprecatedNextContext?(u=Object.create(e),u.unsubscribe=function(){return i.unsubscribe()},f={next:e.next&&gr(e.next,u),error:e.error&&gr(e.error,u),complete:e.complete&&gr(e.complete,u)}):f=e}return i.destination=new ge(f),i}return t}(G);function or(r){E.useDeprecatedSynchronousErrorHandling?Jr(r):tr(r)}function Ee(r){throw r}function Er(r,t){var e=E.onStoppedNotification;e&&M.setTimeout(function(){return e(r,t)})}var Oe={closed:!0,next:O,error:Ee,complete:O};var U=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function I(r){return r}function $r(r){return r.length===0?I:r.length===1?r[0]:function(e){return r.reduce(function(o,n){return n(o)},e)}}var v=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,o){var n=this,i=Ae(t)?t:new nr(t,e,o);return R(function(){var f=n,u=f.operator,a=f.source;i.add(u?u.call(i,a):a?n._subscribe(i):n._trySubscribe(i))}),i},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var o=this;return e=Qr(e),new e(function(n,i){var f=new nr({next:function(u){try{t(u)}catch(a){i(a),f.unsubscribe()}},error:i,complete:n});o.subscribe(f)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[U]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return $r(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Qr(t),new t(function(o,n){var i;e.subscribe(function(f){return i=f},function(f){return n(f)},function(){return o(i)})})},r.create=function(t){return new r(t)},r}();function Qr(r){var t;return(t=r!=null?r:E.Promise)!==null&&t!==void 0?t:Promise}function Ie(r){return r&&s(r.next)&&s(r.error)&&s(r.complete)}function Ae(r){return r&&r instanceof G||Ie(r)&&er(r)}function Te(r){return s(r==null?void 0:r.lift)}function l(r){return function(t){if(Te(t))return t.lift(function(e){try{return r(e,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function d(r,t,e,o,n){return new Pe(r,t,e,o,n)}var Pe=function(r){y(t,r);function t(e,o,n,i,f,u){var a=r.call(this,e)||this;return a.onFinalize=f,a.shouldUnsubscribe=u,a._next=o?function(c){try{o(c)}catch(p){e.error(p)}}:r.prototype._next,a._error=i?function(c){try{i(c)}catch(p){e.error(p)}finally{this.unsubscribe()}}:r.prototype._error,a._complete=n?function(){try{n()}catch(c){e.error(c)}finally{this.unsubscribe()}}:r.prototype._complete,a}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;r.prototype.unsubscribe.call(this),!o&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(G);var Xr=Z(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var Or=function(r){y(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var o=new Zr(this,this);return o.operator=e,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new Xr},t.prototype.next=function(e){var o=this;R(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var f=P(o.currentObservers),u=f.next();!u.done;u=f.next()){var a=u.value;a.next(e)}}catch(c){n={error:c}}finally{try{u&&!u.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var o=this;R(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=e;for(var n=o.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;R(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var o=e.observers;o.length;)o.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var o=this,n=this,i=n.hasError,f=n.isStopped,u=n.observers;return i||f?wr:(this.currentObservers=null,u.push(e),new F(function(){o.currentObservers=null,C(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var o=this,n=o.hasError,i=o.thrownError,f=o.isStopped;n?e.error(i):f&&e.complete()},t.prototype.asObservable=function(){var e=new v;return e.source=this,e},t.create=function(e,o){return new Zr(e,o)},t}(v);var Zr=function(r){y(t,r);function t(e,o){var n=r.call(this)||this;return n.destination=e,n.source=o,n}return t.prototype.next=function(e){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,e)},t.prototype.error=function(e){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,e)},t.prototype.complete=function(){var e,o;(o=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||o===void 0||o.call(e)},t.prototype._subscribe=function(e){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(e))!==null&&n!==void 0?n:wr},t}(Or);var H={now:function(){return(H.delegate||Date).now()},delegate:void 0};var Ir=function(r){y(t,r);function t(e,o,n){e===void 0&&(e=1/0),o===void 0&&(o=1/0),n===void 0&&(n=H);var i=r.call(this)||this;return i._bufferSize=e,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,o),i}return t.prototype.next=function(e){var o=this,n=o.isStopped,i=o._buffer,f=o._infiniteTimeWindow,u=o._timestampProvider,a=o._windowTime;n||(i.push(e),!f&&i.push(u.now()+a)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(e),n=this,i=n._infiniteTimeWindow,f=n._buffer,u=f.slice(),a=0;a<u.length&&!e.closed;a+=i?1:2)e.next(u[a]);return this._checkFinalizedStatuses(e),o},t.prototype._trimBuffer=function(){var e=this,o=e._bufferSize,n=e._timestampProvider,i=e._buffer,f=e._infiniteTimeWindow,u=(f?1:2)*o;if(o<1/0&&u<i.length&&i.splice(0,i.length-u),!f){for(var a=n.now(),c=0,p=1;p<i.length&&i[p]<=a;p+=2)c=p;c&&i.splice(0,c+1)}},t}(Or);var re=function(r){y(t,r);function t(e,o){return r.call(this)||this}return t.prototype.schedule=function(e,o){return o===void 0&&(o=0),this},t}(F);var K={setInterval:function(r,t){for(var e=[],o=2;o<arguments.length;o++)e[o-2]=arguments[o];var n=K.delegate;return n!=null&&n.setInterval?n.setInterval.apply(n,S([r,t],_(e))):setInterval.apply(void 0,S([r,t],_(e)))},clearInterval:function(r){var t=K.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(r)},delegate:void 0};var ee=function(r){y(t,r);function t(e,o){var n=r.call(this,e,o)||this;return n.scheduler=e,n.work=o,n.pending=!1,n}return t.prototype.schedule=function(e,o){var n;if(o===void 0&&(o=0),this.closed)return this;this.state=e;var i=this.id,f=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(f,i,o)),this.pending=!0,this.delay=o,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(f,this.id,o),this},t.prototype.requestAsyncId=function(e,o,n){return n===void 0&&(n=0),K.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,o,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return o;o!=null&&K.clearInterval(o)},t.prototype.execute=function(e,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,o);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,o){var n=!1,i;try{this.work(e)}catch(f){n=!0,i=f||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var e=this,o=e.id,n=e.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,C(i,this),o!=null&&(this.id=this.recycleAsyncId(n,o,null)),this.delay=null,r.prototype.unsubscribe.call(this)}},t}(re);var Ar=function(){function r(t,e){e===void 0&&(e=r.now),this.schedulerActionCtor=t,this.now=e}return r.prototype.schedule=function(t,e,o){return e===void 0&&(e=0),new this.schedulerActionCtor(this,t).schedule(o,e)},r.now=H.now,r}();var te=function(r){y(t,r);function t(e,o){o===void 0&&(o=Ar.now);var n=r.call(this,e,o)||this;return n.actions=[],n._active=!1,n}return t.prototype.flush=function(e){var o=this.actions;if(this._active){o.push(e);return}var n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=o.shift());if(this._active=!1,n){for(;e=o.shift();)e.unsubscribe();throw n}},t}(Ar);var J=new te(ee),oe=J;var k=new v(function(r){return r.complete()});function ir(r){return r&&s(r.schedule)}function Tr(r){return r[r.length-1]}function ne(r){return s(Tr(r))?r.pop():void 0}function W(r){return ir(Tr(r))?r.pop():void 0}function ie(r,t){return typeof Tr(r)=="number"?r.pop():t}var D=function(r){return r&&typeof r.length=="number"&&typeof r!="function"};function fr(r){return s(r==null?void 0:r.then)}function ur(r){return s(r[U])}function ar(r){return Symbol.asyncIterator&&s(r==null?void 0:r[Symbol.asyncIterator])}function cr(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Fe(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var pr=Fe();function sr(r){return s(r==null?void 0:r[pr])}function mr(r){return zr(this,arguments,function(){var e,o,n,i;return X(this,function(f){switch(f.label){case 0:e=r.getReader(),f.label=1;case 1:f.trys.push([1,,9,10]),f.label=2;case 2:return[4,j(e.read())];case 3:return o=f.sent(),n=o.value,i=o.done,i?[4,j(void 0)]:[3,5];case 4:return[2,f.sent()];case 5:return[4,j(n)];case 6:return[4,f.sent()];case 7:return f.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function lr(r){return s(r==null?void 0:r.getReader)}function x(r){if(r instanceof v)return r;if(r!=null){if(ur(r))return je(r);if(D(r))return Ce(r);if(fr(r))return Le(r);if(ar(r))return fe(r);if(sr(r))return Me(r);if(lr(r))return Re(r)}throw cr(r)}function je(r){return new v(function(t){var e=r[U]();if(s(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ce(r){return new v(function(t){for(var e=0;e<r.length&&!t.closed;e++)t.next(r[e]);t.complete()})}function Le(r){return new v(function(t){r.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,tr)})}function Me(r){return new v(function(t){var e,o;try{for(var n=P(r),i=n.next();!i.done;i=n.next()){var f=i.value;if(t.next(f),t.closed)return}}catch(u){e={error:u}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(e)throw e.error}}t.complete()})}function fe(r){return new v(function(t){Ue(r,t).catch(function(e){return t.error(e)})})}function Re(r){return fe(mr(r))}function Ue(r,t){var e,o,n,i;return Yr(this,void 0,void 0,function(){var f,u;return X(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),e=qr(r),a.label=1;case 1:return[4,e.next()];case 2:if(o=a.sent(),!!o.done)return[3,4];if(f=o.value,t.next(f),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=a.sent(),n={error:u},[3,11];case 6:return a.trys.push([6,,9,10]),o&&!o.done&&(i=e.return)?[4,i.call(e)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function g(r,t,e,o,n){o===void 0&&(o=0),n===void 0&&(n=!1);var i=t.schedule(function(){e(),n?r.add(this.schedule(null,o)):this.unsubscribe()},o);if(r.add(i),!n)return i}function dr(r,t){return t===void 0&&(t=0),l(function(e,o){e.subscribe(d(o,function(n){return g(o,r,function(){return o.next(n)},t)},function(){return g(o,r,function(){return o.complete()},t)},function(n){return g(o,r,function(){return o.error(n)},t)}))})}function hr(r,t){return t===void 0&&(t=0),l(function(e,o){o.add(r.schedule(function(){return e.subscribe(o)},t))})}function ue(r,t){return x(r).pipe(hr(t),dr(t))}function ae(r,t){return x(r).pipe(hr(t),dr(t))}function ce(r,t){return new v(function(e){var o=0;return t.schedule(function(){o===r.length?e.complete():(e.next(r[o++]),e.closed||this.schedule())})})}function pe(r,t){return new v(function(e){var o;return g(e,t,function(){o=r[pr](),g(e,t,function(){var n,i,f;try{n=o.next(),i=n.value,f=n.done}catch(u){e.error(u);return}f?e.complete():e.next(i)},0,!0)}),function(){return s(o==null?void 0:o.return)&&o.return()}})}function vr(r,t){if(!r)throw new Error("Iterable cannot be null");return new v(function(e){g(e,t,function(){var o=r[Symbol.asyncIterator]();g(e,t,function(){o.next().then(function(n){n.done?e.complete():e.next(n.value)})},0,!0)})})}function se(r,t){return vr(mr(r),t)}function me(r,t){if(r!=null){if(ur(r))return ue(r,t);if(D(r))return ce(r,t);if(fr(r))return ae(r,t);if(ar(r))return vr(r,t);if(sr(r))return pe(r,t);if(lr(r))return se(r,t)}throw cr(r)}function N(r,t){return t?me(r,t):x(r)}function Pr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=W(r);return N(r,e)}function le(r){return r instanceof Date&&!isNaN(r)}function V(r,t){return l(function(e,o){var n=0;e.subscribe(d(o,function(i){o.next(r.call(t,i,n++))}))})}var ke=Array.isArray;function We(r,t){return ke(t)?r.apply(void 0,S([],_(t))):r(t)}function de(r){return V(function(t){return We(r,t)})}function he(r,t,e,o,n,i,f,u){var a=[],c=0,p=0,h=!1,m=function(){h&&!a.length&&!c&&t.complete()},w=function(b){return c<o?T(b):a.push(b)},T=function(b){i&&t.next(b),c++;var Vr=!1;x(e(b,p++)).subscribe(d(t,function(B){n==null||n(B),i?w(B):t.next(B)},function(){Vr=!0},void 0,function(){if(Vr)try{c--;for(var B=function(){var Q=a.shift();f?g(t,f,function(){return T(Q)}):T(Q)};a.length&&c<o;)B();m()}catch(Q){t.error(Q)}}))};return r.subscribe(d(t,w,function(){h=!0,m()})),function(){u==null||u()}}function A(r,t,e){return e===void 0&&(e=1/0),s(t)?A(function(o,n){return V(function(i,f){return t(o,i,n,f)})(x(r(o,n)))},e):(typeof t=="number"&&(e=t),l(function(o,n){return he(o,n,r,e)}))}function xr(r){return r===void 0&&(r=1/0),A(I,r)}function ve(){return xr(1)}function xe(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve()(N(r,W(r)))}var De=["addListener","removeListener"],Ne=["addEventListener","removeEventListener"],Ve=["on","off"];function Y(r,t,e,o){if(s(e)&&(o=e,e=void 0),o)return Y(r,t,e).pipe(de(o));var n=_(qe(r)?Ne.map(function(u){return function(a){return r[u](t,a,e)}}):Ye(r)?De.map(be(r,t)):ze(r)?Ve.map(be(r,t)):[],2),i=n[0],f=n[1];if(!i&&D(r))return A(function(u){return Y(u,t,e)})(x(r));if(!i)throw new TypeError("Invalid event target");return new v(function(u){var a=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];return u.next(1<c.length?c:c[0])};return i(a),function(){return f(a)}})}function be(r,t){return function(e){return function(o){return r[e](t,o)}}}function Ye(r){return s(r.addListener)&&s(r.removeListener)}function ze(r){return s(r.on)&&s(r.off)}function qe(r){return s(r.addEventListener)&&s(r.removeEventListener)}function z(r,t,e){r===void 0&&(r=0),e===void 0&&(e=oe);var o=-1;return t!=null&&(ir(t)?e=t:o=t),new v(function(n){var i=le(r)?+r-e.now():r;i<0&&(i=0);var f=0;return e.schedule(function(){n.closed||(n.next(f++),0<=o?this.schedule(void 0,o):n.complete())},i)})}function Fr(r,t){return r===void 0&&(r=0),t===void 0&&(t=J),r<0&&(r=0),z(r,r,t)}function jr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=W(r),o=ie(r,1/0),n=r;return n.length?n.length===1?x(n[0]):xr(o)(N(n,e)):k}var Cr=new v(O);function $(r,t){return l(function(e,o){var n=0;e.subscribe(d(o,function(i){return r.call(t,i,n++)&&o.next(i)}))})}function q(r){return r<=0?function(){return k}:l(function(t,e){var o=0;t.subscribe(d(e,function(n){++o<=r&&(e.next(n),r<=o&&e.complete())}))})}function ye(){return l(function(r,t){r.subscribe(d(t,O))})}function _e(r){return V(function(){return r})}function Lr(r,t){return t?function(e){return xe(t.pipe(q(1),ye()),e.pipe(Lr(r)))}:A(function(e,o){return r(e,o).pipe(q(1),_e(e))})}function Mr(r,t){t===void 0&&(t=J);var e=z(r,t);return Lr(function(){return e})}function Rr(r,t){return t===void 0&&(t=I),r=r!=null?r:Be,l(function(e,o){var n,i=!0;e.subscribe(d(o,function(f){var u=t(f);(i||!r(n,u))&&(i=!1,n=u,o.next(f))}))})}function Be(r,t){return r===t}function Ur(r){return l(function(t,e){try{t.subscribe(e)}finally{e.add(r)}})}function kr(r){var t,e=1/0,o;return r!=null&&(typeof r=="object"?(t=r.count,e=t===void 0?1/0:t,o=r.delay):e=r),e<=0?function(){return k}:l(function(n,i){var f=0,u,a=function(){if(u==null||u.unsubscribe(),u=null,o!=null){var p=typeof o=="number"?z(o):x(o(f)),h=d(i,function(){h.unsubscribe(),c()});p.subscribe(h)}else c()},c=function(){var p=!1;u=n.subscribe(d(i,void 0,function(){++f<e?u?a():p=!0:i.complete()})),p&&a()};c()})}function Wr(r,t){return l(function(e,o){var n=null,i=0,f=!1,u=function(){return f&&!n&&o.complete()};e.subscribe(d(o,function(a){n==null||n.unsubscribe();var c=0,p=i++;x(r(a,p)).subscribe(n=d(o,function(h){return o.next(t?t(a,h,p,c++):h)},function(){n=null,u()}))},function(){f=!0,u()}))})}function br(r){return l(function(t,e){x(r).subscribe(d(e,function(){return e.complete()},O)),!e.closed&&t.subscribe(e)})}function yr(r,t,e){var o=s(r)||t||e?{next:r,error:t,complete:e}:r;return o?l(function(n,i){var f;(f=o.subscribe)===null||f===void 0||f.call(o);var u=!0;n.subscribe(d(i,function(a){var c;(c=o.next)===null||c===void 0||c.call(o,a),i.next(a)},function(){var a;u=!1,(a=o.complete)===null||a===void 0||a.call(o),i.complete()},function(a){var c;u=!1,(c=o.error)===null||c===void 0||c.call(o,a),i.error(a)},function(){var a,c;u&&((a=o.unsubscribe)===null||a===void 0||a.call(o)),(c=o.finalize)===null||c===void 0||c.call(o)}))}):I}function Dr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=ne(r);return l(function(o,n){for(var i=r.length,f=new Array(i),u=r.map(function(){return!1}),a=!1,c=function(h){x(r[h]).subscribe(d(n,function(m){f[h]=m,!a&&!u[h]&&(u[h]=!0,(a=u.every(I))&&(u=null))},O))},p=0;p<i;p++)c(p);o.subscribe(d(n,function(h){if(a){var m=S([h],_(f));n.next(e?e.apply(void 0,S([],_(m))):m)}}))})}var we=document.createElement("div");document.body.appendChild(we);var Nr=document.querySelector(".md-header__title");if(Nr){let r=document.createElement("button");r.className="md-header__button md-icon \u1D34\u2092\u1D34\u2092\u1D34\u2092__button",Nr.parentElement&&Nr.insertAdjacentElement("afterend",r);let t=new Ir(1);t.pipe(Rr()).subscribe(e=>{sessionStorage.setItem("\u1D34\u2092\u1D34\u2092\u1D34\u2092",`${e}`),r.hidden=!e}),t.next(JSON.parse(sessionStorage.getItem("\u1D34\u2092\u1D34\u2092\u1D34\u2092")||"true")),Y(r,"click").pipe(Dr(t)).subscribe(([,e])=>t.next(!e)),Fr(250).pipe(br(t.pipe($(e=>!e))),q(75),kr({delay:()=>t.pipe($(e=>e))}),A(()=>{let e=document.createElement("div");return e.className="\u1D34\u2092\u1D34\u2092\u1D34\u2092",e.ariaHidden="true",we.appendChild(e),jr(Cr,Pr(e)).pipe(Ur(()=>e.remove()),br(t.pipe($(o=>!o))),Wr(o=>Y(o,"click").pipe(yr(()=>o.classList.add("\u1D34\u2092\u1D34\u2092\u1D34\u2092--\u1D4D\u2092\u1D57\uA700\u1D34\u2090")),Mr(1e3),yr(()=>o.classList.remove("\u1D34\u2092\u1D34\u2092\u1D34\u2092--\u1D4D\u2092\u1D57\uA700\u1D34\u2090")))))})).subscribe()}})();
|
|
//# sourceMappingURL=bundle.cfb3feee.min.js.map
|
|
|