1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-29 07:43:17 +01:00
mkdocs-material/material/overrides/assets/javascripts/custom.4e50d00f.min.js

6 lines
50 KiB
JavaScript
Raw Normal View History

2024-08-26 10:57:35 +02:00
"use strict";(()=>{var go=Object.create;var Ar=Object.defineProperty;var wo=Object.getOwnPropertyDescriptor;var So=Object.getOwnPropertyNames,et=Object.getOwnPropertySymbols,Eo=Object.getPrototypeOf,tt=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable;var rt=(e,r,t)=>r in e?Ar(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Je=(e,r)=>{for(var t in r||(r={}))tt.call(r,t)&&rt(e,t,r[t]);if(et)for(var t of et(r))Oo.call(r,t)&&rt(e,t,r[t]);return e};var Me=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var To=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of So(r))!tt.call(e,n)&&n!==t&&Ar(e,n,{get:()=>r[n],enumerable:!(o=wo(r,n))||o.enumerable});return e};var ot=(e,r,t)=>(t=e!=null?go(Eo(e)):{},To(r||!e||!e.__esModule?Ar(t,"default",{value:e,enumerable:!0}):t,e));var De=Me(Z=>{(function(){var e,r,t,o,n,i,f,u,c,a,s,p,d,l,m,h,b,w,E,k;k=150,a=20,E=150,c=.75,Z.score=function(v,x,S){var T,y,g,_;return y=S.preparedQuery,T=S.allowErrors,T||n(v,y.core_lw,y.core_up)?(_=v.toLowerCase(),g=r(v,_,y),Math.ceil(g)):0},Z.isMatch=n=function(v,x,S){var T,y,g,_,W,U,L;if(g=v.length,_=x.length,!g||_>g)return!1;for(T=-1,y=-1;++y<_;){for(W=x.charCodeAt(y),U=S.charCodeAt(y);++T<g&&(L=v.charCodeAt(T),!(L===W||L===U)););if(T===g)return!1}return!0},Z.computeScore=r=function(v,x,S){var T,y,g,_,W,U,L,j,M,N,V,re,Q,fe,de,te,ye,ce,Er,Ae,Ke,Or,Tr,_r;if(de=S.query,te=S.query_lw,N=v.length,Q=de.length,T=s(v,x,de,te),y=T.score,T.count===Q)return l(Q,N,y,T.pos);if(fe=x.indexOf(te),fe>-1)return m(v,x,de,te,fe,Q,N);for(Ae=new Array(Q),W=new Array(Q),_r=w(Q,N),V=Math.ceil(c*Q)+5,re=V,L=!0,M=-1;++M<Q;)Ae[M]=0,W[M]=0;for(j=-1;++j<N;){if(Or=x[j],!Or.charCodeAt(0)in S.charCodes){if(L){for(M=-1;++M<Q;)W[M]=0;L=!1}continue}for(ce=0,Er=0,_=0,ye=!0,L=!0,M=-1;++M<Q;){if(Ke=Ae[M],Ke>ce&&(ce=Ke),U=0,te[M]===Or)if(Tr=u(j,v,x),U=_>0?_:d(v,x,de,te,j,M,Tr),g=Er+p(j,M,Tr,y,U),g>ce)ce=g,re=V;else{if(ye&&--re<=0)return Math.max(ce,Ae[Q-1])*_r;ye=!1}Er=Ke,_=W[M],W[M]=U,Ae[M]=ce}}return ce=Ae[Q-1],ce*_r},Z.isWordStart=u=function(v,x,S){var T,y;return v===0?!0:(T=x[v],y=x[v-1],i(y)||T!==S[v]&&y===S[v-1])},Z.isWordEnd=f=function(v,x,S,T){var y,g;return v===T-1?!0:(y=x[v],g=x[v+1],i(g)||y===S[v]&&g!==S[v+1])},i=function(v){return v===" "||v==="."||v==="-"||v==="_"||v==="/"||v==="\\"},b=function(v){var x;return v<a?(x=a-v,100+x*x):Math.max(100+a-v,0)},Z.scoreSize=w=function(v,x){return E/(E+Math.abs(x-v))},l=function(v,x,S,T){return 2*v*(k*S+b(T))*w(v,x)},Z.scorePattern=h=function(v,x,S,T,y){var g,_;return _=v,g=6,S===v&&(g+=2),T&&(g+=3),y&&(g+=1),v===x&&(T&&(S===x?_+=2:_+=1),y&&(g+=1)),S+_*(_+g)},Z.scoreCharacter=p=function(v,x,S,T,y){var g;return g=b(v),S?g+k*((T>y?T:y)+10):g+k*y},Z.scoreConsecutives=d=function(v,x,S,T,y,g,_){var W,U,L,j,M,N,V;for(U=v.length,j=S.length,L=U-y,M=j-g,W=L<M?L:M,N=0,V=0,S[g]===v[y]&&N++;++V<W&&T[++g]===x[++y];)S[g]===v[y]&&N++;return V<W&&y--,V===1?1+2*N:h(V,j,N,_,f(y,v,x,U))},Z.scoreExactMatch=m=function(v,x,S,T,y,g,_){var W,U,L,j,M;for(M=u(y,v,x),M||(L=x.indexOf(T,y+1),L>-1&&(M=u(L,v,x),M&&(y=L))),U=-1,j=0;++U<g;)S[y+U]===v[U]&&j++;return W=f(y+g-1,v,x,_),l(g,_,h(g,g,j,M,W),y)},e=function(){function v(x,S,T){this.score=x,this.pos=S,this.count=T}return v}(),t=new e(0,.1,0),Z.scoreAcronyms=s=function(v,x,S,T){var y,g,_,W,U,L,j,M,N,V,re;if(U=v.length,L=S.length,!(U>1&&L>1))return t;for(y=0,V=0,re=0,M=0,_=-1,W=-1;++W<L;){if(j=T[W],i(j))if(_=x.indexOf(j,_+1),_>-1){V++;continue}else break;for(;++_<U;)if(j===x[_]&&u(_,v,x)){S[W]===v[_]&&M++,re+=_,y++;break}if(_===U)break}return y<2?t:(g=y===L?o(v,x,S,y):!1,N=h(y,L,M,!0,g),new e(N,re/y,y+V))},o=function(v,x,S,T){var y,g,_,W;if(_=v.length,W=S.length,y=0,_>12*W)return!1;for(g=-1;++g<_;)if(u(g,v,x)&&++y>T)return!1;return!0}}).call(Z)});var wr=Me(Qe=>{(function(){var e,r,t,o,n,i,f,u,c,a;a=De(),i=a.isMatch,e=a.computeScore,u=a.scoreSize,c=20,t=2.5,Qe.score=function(s,p,d){var l,m,h,b;return m=d.preparedQuery,l=d.allowErrors,l||i(s,m.core_lw,m.core_up)?(b=s.toLowerCase(),h=e(s,b,m),h=f(s,b,h,d),Math.ceil(h)):0},f=function(s,p,d,l){var m,h,b,w,E,k,v,x
`+t.map(function(o,n){return n+1+") "+o.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=t}});function se(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var oe=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,t,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=X(f),c=u.next();!c.done;c=u.next()){var a=c.value;a.remove(this)}}catch(h){r={error:h}}finally{try{c&&!c.done&&(t=u.return)&&t.call(u)}finally{if(r)throw r.error}}else f.remove(this);var s=this.initialTeardown;if(O(s))try{s()}catch(h){i=h instanceof Ge?h.errors:[h]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var d=X(p),l=d.next();!l.done;l=d.next()){var m=l.value;try{ft(m)}catch(h){i=i!=null?i:[],h instanceof Ge?i=H(H([],R(i)),R(h.errors)):i.push(h)}}}catch(h){o={error:h}}finally{try{l&&!l.done&&(n=d.return)&&n.call(d)}finally{if(o)throw o.error}}}if(i)throw new Ge(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)ft(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},e.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},e.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},e.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&se(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&se(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}();var Ir=oe.EMPTY;function Be(e){return e instanceof oe||e&&"closed"in e&&O(e.remove)&&O(e.add)&&O(e.unsubscribe)}function ft(e){O(e)?e():e.unsubscribe()}var ee={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ie={setTimeout:function(e,r){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var n=Ie.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,H([e,r],R(t))):setTimeout.apply(void 0,H([e,r],R(t)))},clearTimeout:function(e){var r=Ie.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ze(e){Ie.setTimeout(function(){var r=ee.onUnhandledError;if(r)r(e);else throw e})}function ue(){}var ct=function(){return Cr("C",void 0,void 0)}();function st(e){return Cr("E",void 0,e)}function ut(e){return Cr("N",e,void 0)}function Cr(e,r,t){return{kind:e,value:r,error:t}}var we=null;function Ce(e){if(ee.useDeprecatedSynchronousErrorHandling){var r=!we;if(r&&(we={errorThrown:!1,error:null}),e(),r){var t=we,o=t.errorThrown,n=t.error;if(we=null,o)throw n}}else e()}function pt(e){ee.useDeprecatedSynchronousErrorHandling&&we&&(we.errorThrown=!0,we.error=e)}var Ue=function(e){z(r,e);function r(t){var o=e.call(this)||this;return o.isStopped=!1,t?(o.destination=t,Be(t)&&t.add(o)):o.destination=Io,o}return r.create=function(t,o,n){return new Se(t,o,n)},r.prototype.next=function(t){this.isStopped?Pr(ut(t),this):this._next(t)},r.prototype.error=function(t){this.isStopped?Pr(st(t),this):(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped?Pr(ct,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(oe);var _o=Function.prototype.bind;function Lr(e,r){return _o.call(e,r)}var Ao=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(o){er(o)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(o){er(o)}else er(r)},e.prot
//# sourceMappingURL=custom.4e50d00f.min.js.map