mkdocs-material/material/assets/javascripts/bundle.e8ecd72e.min.js
2021-02-16 18:23:57 +01:00

2 lines
26 KiB
JavaScript

!function(e,t){for(var c in t)e[c]=t[c]}(window,function(e){function t(t){for(var n,o,i=t[0],s=t[1],b=t[2],u=0,l=[];u<i.length;u++)o=i[u],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&l.push(a[o][0]),a[o]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(p&&p(t);l.length;)l.shift()();return r.push.apply(r,b||[]),c()}function c(){for(var e,t=0;t<r.length;t++){for(var c=r[t],n=!0,i=1;i<c.length;i++){var s=c[i];0!==a[s]&&(n=!1)}n&&(r.splice(t--,1),e=o(o.s=c[0]))}return e}var n={},a={0:0},r=[];function o(t){if(n[t])return n[t].exports;var c=n[t]={i:t,l:!1,exports:{}};return e[t].call(c.exports,c,c.exports,o),c.l=!0,c.exports}o.m=e,o.c=n,o.d=function(e,t,c){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(o.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(c,n,function(t){return e[t]}.bind(null,n));return c},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="";var i=window.webpackJsonp=window.webpackJsonp||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var b=0;b<i.length;b++)t(i[b]);var p=s;return r.push([50,1]),c()}({50:function(e,t,c){"use strict";c.r(t),c.d(t,"document$",(function(){return lt})),c.d(t,"location$",(function(){return ft})),c.d(t,"target$",(function(){return dt})),c.d(t,"keyboard$",(function(){return Ot})),c.d(t,"viewport$",(function(){return jt})),c.d(t,"tablet$",(function(){return ht})),c.d(t,"screen$",(function(){return mt})),c.d(t,"print$",(function(){return gt})),c.d(t,"component$",(function(){return kt}));c(47);var n=c(24),a=c(52),r=c(54),o=c(43),i=c(33),s=c(38),b=c(58),p=c(65),u=c(40),l=c(51),f=c(41);function d(e,t=document){return t.querySelector(e)||void 0}function O(e,t=document){const c=d(e,t);if(void 0===c)throw new ReferenceError(`Missing element: expected "${e}" to be present`);return c}function j(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}function h(e,t=document){return Array.from(t.querySelectorAll(e))}function m(e){return document.createElement(e)}function g(e,t){e.replaceWith(t)}var v=c(53);function w(e,t=!0){t?e.focus():e.blur()}var $=c(44),y=c(55),x=c(56),_=c(57),E=c(59);const k=new n.a,A=Object(r.a)(()=>Object(y.a)(new ResizeObserver(e=>{for(const t of e)k.next(t)}))).pipe(Object(s.a)(e=>x.a.pipe(Object(v.a)(e)).pipe(Object(_.a)(()=>e.disconnect()))),Object(b.a)(1));function T(e){return{width:e.offsetWidth,height:e.offsetHeight}}function S(e){return{width:e.scrollWidth,height:e.scrollHeight}}function R(e){return A.pipe(Object(E.a)(t=>t.observe(e)),Object(s.a)(t=>k.pipe(Object(o.a)(({target:t})=>t===e),Object(_.a)(()=>t.unobserve(e)),Object(i.a)(({contentRect:e})=>({width:e.width,height:e.height})))),Object(v.a)(T(e)))}function M(e){return{x:e.scrollLeft,y:e.scrollTop}}function C(e,t=16){return function(e){return Object(a.a)(Object(l.a)(e,"scroll"),Object(l.a)(window,"resize")).pipe(Object(i.a)(()=>M(e)),Object(v.a)(M(e)))}(e).pipe(Object(i.a)(({y:c})=>{const n=T(e);return c>=S(e).height-n.height-t}),Object($.a)())}var L=c(42);const P={drawer:O("[data-md-toggle=drawer]"),search:O("[data-md-toggle=search]")};function U(e,t){P[e].checked!==t&&P[e].click()}var N=c(60);function H(){return new URL(location.href)}function z(){return location.hash.substring(1)}function I(e){const t=matchMedia(e);return Object(l.a)(t,"change").pipe(Object(i.a)(e=>e.matches),Object(v.a)(t.matches))}function D(e,t){return e.pipe(Object(s.a)(e=>e?t():x.a))}var Y=c(6);function F(e,t={credentials:"same-origin"}){return Object(Y.a)(fetch(e,t)).pipe(Object(o.a)(e=>200===e.status))}function q(e,t){return F(e,t).pipe(Object(s.a)(e=>e.json()),Object(b.a)(1))}var J=c(46),W=c(61);function B(){return{x:Math.max(0,pageXOffset),y:Math.max(0,pageYOffset)}}function K({x:e,y:t}){window.scrollTo(e||0,t||0)}function Q(){return{width:innerWidth,height:innerHeight}}function X(e,{viewport$:t,header$:c}){const n=t.pipe(Object(W.a)("size")),a=Object(J.a)([n,c]).pipe(Object(i.a)(()=>({x:e.offsetLeft,y:e.offsetTop})));return Object(J.a)([c,t,a]).pipe(Object(i.a)(([{height:e},{offset:t,size:c},{x:n,y:a}])=>({offset:{x:t.x-n,y:t.y-a+e},size:c})))}var V=c(62),G=c(63);const Z=O("#__config"),ee=JSON.parse(Z.textContent);function te(){return ee}function ce(e){return ee.features.includes(e)}function ne(e,t){return void 0!==t?ee.translations[e].replace("#",t.toString()):ee.translations[e]}function ae(e,t=document){return O(`[data-md-component=${e}]`,t)}function re(e,t=document){return h(`[data-md-component=${e}]`,t)}ee.base=new URL(ee.base,H()).toString().replace(/\/$/,"");var oe,ie=c(26),se=c.n(ie),be=c(64);function pe(e,t){e.setAttribute("data-md-state",t)}function ue(e){e.removeAttribute("data-md-state")}function le(e,t){e.classList.toggle("md-nav__link--active",t)}function fe(e){e.classList.remove("md-nav__link--active")}function de(e,t){if("string"==typeof t||"number"==typeof t)e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(const c of t)de(e,c)}function Oe(e,t,...c){const n=document.createElement(e);if(t)for(const e of Object.keys(t))"boolean"!=typeof t[e]?n.setAttribute(e,t[e]):t[e]&&n.setAttribute(e,"");for(const e of c)de(n,e);return n}function je(e){if(e>999){return((e+1e-6)/1e3).toFixed(+((e-950)%1e3>99))+"k"}return e.toString()}function he(e){e.removeAttribute("data-md-state")}function me(e,t){const c=t&oe.PARENT,n=t&oe.TEASER,a=Object.keys(e.terms).filter(t=>!e.terms[t]).map(e=>[Oe("del",null,e)," "]).flat().slice(0,-1);return Oe("a",{href:e.location,class:"md-search-result__link",tabIndex:-1},Oe("article",{class:["md-search-result__article",...c?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},c>0&&Oe("div",{class:"md-search-result__icon md-icon"}),Oe("h1",{class:"md-search-result__title"},e.title),n>0&&e.text.length>0&&Oe("p",{class:"md-search-result__teaser"},function(e,t){let c=t;if(e.length>c){for(;" "!==e[c]&&--c>0;);return e.substring(0,c)+"..."}return e}(e.text,320)),n>0&&a.length>0&&Oe("p",{class:"md-search-result__terms"},ne("search.result.term.missing"),": ",a)))}!function(e){e[e.TEASER=1]="TEASER",e[e.PARENT=2]="PARENT"}(oe||(oe={}));let ge=0;function ve(e,t){const c=new n.a;if(c.pipe(Object(be.a)(I("(hover)"))).subscribe(([{scroll:t},c])=>{t&&c?function(e,t=0){e.setAttribute("tabindex",t.toString())}(e):function(e){e.removeAttribute("tabindex")}(e)}),se.a.isSupported()){const t=e.closest("pre");t.id="__code_"+ge++,t.insertBefore((r=t.id,Oe("button",{class:"md-clipboard md-icon",title:ne("clipboard.copy"),"data-clipboard-target":`#${r} > code`})),e)}var r;return function(e,{viewport$:t}){const c=Object(y.a)(e).pipe(Object(s.a)(e=>{const t=e.closest("[data-tabs]");return t instanceof HTMLElement?Object(a.a)(...h("input",t).map(e=>Object(l.a)(e,"change"))):x.a}));return Object(a.a)(t.pipe(Object(W.a)("size")),c).pipe(Object(i.a)(()=>{const t=T(e);return{scroll:S(e).width>t.width}}),Object(W.a)("scroll"))}(e,t).pipe(Object(E.a)(c),Object(_.a)(()=>c.complete()),Object(i.a)(t=>Object.assign({ref:e},t)))}function we(e,t){const c=new n.a;return c.subscribe(()=>{e.setAttribute("open",""),e.scrollIntoView()}),function(e,{target$:t,print$:c}){return t.pipe(Object(i.a)(e=>e.closest("details:not([open])")),Object(o.a)(t=>e===t),Object(p.a)(c),Object(f.a)(e))}(e,t).pipe(Object(E.a)(c),Object(_.a)(()=>c.complete()),Object(f.a)({ref:e}))}const $e=m("table");function ye(e){return g(e,$e),g($e,Oe("div",{class:"md-typeset__scrollwrap"},Oe("div",{class:"md-typeset__table"},e))),Object(y.a)({ref:e})}var xe=c(77),_e=c(78),Ee=c(66);function ke(e,t){const c=new n.a;return c.pipe(Object(Ee.a)(xe.a)).subscribe(({message:t,open:c})=>{!function(e,t){e.firstElementChild.innerHTML=t}(e,t),c?function(e,t){e.setAttribute("data-md-state",t)}(e,"open"):function(e){e.removeAttribute("data-md-state")}(e)}),function(e,{alert$:t}){return t.pipe(Object(s.a)(e=>Object(a.a)(Object(y.a)(!0),Object(y.a)(!1).pipe(Object(_e.a)(2e3))).pipe(Object(i.a)(t=>({message:e,open:t})))))}(0,t).pipe(Object(E.a)(c),Object(_.a)(()=>c.complete()),Object(i.a)(t=>Object.assign({ref:e},t)))}var Ae=c(67),Te=c(68);function Se({viewport$:e}){if(!ce("header.autohide"))return Object(y.a)(!1);const t=e.pipe(Object(i.a)(({offset:{y:e}})=>e),Object(Ae.a)(2,1),Object(i.a)(([e,t])=>[e<t,t]),Object(W.a)(0)),c=Object(J.a)([e,t]).pipe(Object(o.a)(([{offset:e},[,t]])=>Math.abs(t-e.y)>100),Object(i.a)(([,[e]])=>e),Object($.a)()),n=function(e){const t=P[e];return Object(l.a)(t,"change").pipe(Object(i.a)(()=>t.checked),Object(v.a)(t.checked))}("search");return Object(J.a)([e,n]).pipe(Object(i.a)(([{offset:e},t])=>e.y>400&&!t),Object($.a)(),Object(s.a)(e=>e?c:Object(y.a)(!1)),Object(v.a)(!1))}function Re(e,t){const c=new n.a;c.pipe(Object(Ee.a)(xe.a)).subscribe(({active:t})=>{t?function(e,t){e.setAttribute("data-md-state",t)}(e,"active"):function(e){e.removeAttribute("data-md-state")}(e)});const a=d("article h1");return void 0===a?x.a:function(e,{viewport$:t,header$:c}){return X(e,{header$:c,viewport$:t}).pipe(Object(i.a)(({offset:{y:t}})=>{const{height:c}=T(e);return{active:t>=c}}),Object(W.a)("active"))}(a,t).pipe(Object(E.a)(c),Object(_.a)(()=>c.complete()),Object(i.a)(t=>Object.assign({ref:e},t)))}var Me=c(71),Ce=c(39),Le=c(3);var Pe=c(17),Ue=c(69),Ne=c(70),He=c(72),ze=c(73),Ie=c(79);var De;c(45);function Ye(e){return e.split(/"([^"]+)"/g).map((e,t)=>1&t?e.replace(/^\b|^(?![^\x00-\x7F]|$)|\s+/g," +"):e).join("").replace(/"|(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g,"").trim()}function Fe(e){return e.type===De.READY}function qe(e){return e.type===De.QUERY}function Je(e){return e.type===De.RESULT}function We({config:e,docs:t,index:c}){1===e.lang.length&&"en"===e.lang[0]&&(e.lang=[ne("search.config.lang")]),"[\\s\\-]+"===e.separator&&(e.separator=ne("search.config.separator"));return{config:e,docs:t,index:c,pipeline:ne("search.config.pipeline").split(/\s*,\s*/).filter(Boolean)}}function Be(e,t){const c=te(),a=new Worker(e),r=new n.a,o=function(e,{tx$:t}){const c=Object(l.a)(e,"message").pipe(Object(i.a)(({data:e})=>e));return t.pipe(Object(V.a)(()=>c,{leading:!0,trailing:!0}),Object(E.a)(t=>e.postMessage(t)),Object(G.a)(c),Object(L.a)())}(a,{tx$:r}).pipe(Object(i.a)(e=>{if(Je(e))for(const t of e.data)for(const e of t)e.location=`${c.base}/${e.location}`;return e}),Object(L.a)());return Object(Y.a)(t).pipe(Object(i.a)(e=>({type:De.SETUP,data:We(e)}))).subscribe(r.next.bind(r)),{tx$:r,rx$:o}}!function(e){e[e.SETUP=0]="SETUP",e[e.READY=1]="READY",e[e.QUERY=2]="QUERY",e[e.RESULT=3]="RESULT"}(De||(De={}));var Ke=c(74),Qe=c(75);function Xe(e){const t=(null===__search||void 0===__search?void 0:__search.transform)||Ye,c=function(e){return Object(a.a)(Object(l.a)(e,"focus"),Object(l.a)(e,"blur")).pipe(Object(i.a)(({type:e})=>"focus"===e),Object(v.a)(e===j()))}(e),n=Object(a.a)(Object(l.a)(e,"keyup"),Object(l.a)(e,"focus").pipe(Object(_e.a)(1))).pipe(Object(i.a)(()=>t(e.value)),Object(v.a)(t(e.value)),Object($.a)());return Object(J.a)([n,c]).pipe(Object(i.a)(([e,t])=>({value:e,focus:t})))}function Ve(e,{tx$:t}){const c=new n.a;return c.pipe(Object(W.a)("value"),Object(i.a)(({value:e})=>({type:De.QUERY,data:e}))).subscribe(t.next.bind(t)),c.pipe(Object(W.a)("focus")).subscribe(({focus:t})=>{t?(U("search",t),function(e,t){e.placeholder=t}(e,"")):function(e){e.placeholder=ne("search.placeholder")}(e)}),Object(l.a)(e.form,"reset").pipe(Object(Ke.a)(c.pipe(Object(Qe.a)(1)))).subscribe(()=>w(e)),Xe(e).pipe(Object(E.a)(c),Object(_.a)(()=>c.complete()),Object(i.a)(t=>Object.assign({ref:e},t)))}var Ge=c(80);function Ze(e,{rx$:t},{query$:c}){const r=new n.a,b=C(e.parentElement).pipe(Object(o.a)(Boolean)),p=O(":scope > :first-child",e);r.pipe(Object(Ee.a)(xe.a),Object(be.a)(c)).subscribe(([{data:e},{value:t}])=>{t?function(e,t){switch(t){case 0:e.textContent=ne("search.result.none");break;case 1:e.textContent=ne("search.result.one");break;default:e.textContent=ne("search.result.other",je(t))}}(p,e.length):function(e){e.textContent=ne("search.result.placeholder")}(p)});const u=O(":scope > :last-child",e);r.pipe(Object(Ee.a)(xe.a),Object(E.a)(()=>function(e){e.innerHTML=""}(u)),Object(s.a)(({data:e})=>Object(a.a)(Object(y.a)(...e.slice(0,10)),Object(y.a)(...e.slice(10)).pipe(Object(Ae.a)(4),Object(Ge.a)(b),Object(s.a)(([e])=>Object(y.a)(...e)))))).subscribe(e=>{!function(e,t){e.appendChild(t)}(u,function(e){const t=e[0].score,c=[...e],n=c.findIndex(e=>!e.location.includes("#")),[a]=c.splice(n,1);let r=c.findIndex(e=>e.score<t);-1===r&&(r=c.length);const o=c.slice(0,r),i=c.slice(r),s=[me(a,oe.PARENT|+(!n&&0===r)),...o.map(e=>me(e,oe.TEASER)),...i.length?[Oe("details",{class:"md-search-result__more"},Oe("summary",{tabIndex:-1},i.length>0&&1===i.length?ne("search.result.more.one"):ne("search.result.more.other",i.length)),i.map(e=>me(e,oe.TEASER)))]:[]];return Oe("li",{class:"md-search-result__item"},s)}(e))});return t.pipe(Object(o.a)(Je),Object(i.a)(({data:e})=>({data:e})),Object(v.a)({data:[]})).pipe(Object(E.a)(r),Object(_.a)(()=>r.complete()),Object(i.a)(t=>Object.assign({ref:e},t)))}function et(e,{keyboard$:t}){if("file:"===location.protocol)return x.a;const c=te(),n=Be(c.search,(r=c.base+"/search/search_index.json",(null===__search||void 0===__search?void 0:__search.index)||q(r)));var r;const i=ae("search-query",e),s=ae("search-result",e),{tx$:b,rx$:p}=n;b.pipe(Object(o.a)(qe),Object(Me.a)(p.pipe(Object(o.a)(Fe))),Object(Ce.a)(1)).subscribe(b.next.bind(b)),t.pipe(Object(o.a)(({mode:e})=>"search"===e)).subscribe(e=>{const t=j();switch(e.type){case"Enter":t===i&&e.claim();break;case"Escape":case"Tab":U("search",!1),w(i,!1);break;case"ArrowUp":case"ArrowDown":if(void 0===t)w(i);else{const c=[i,...h(":not(details) > [href], summary, details[open] [href]",s)],n=Math.max(0,(Math.max(0,c.indexOf(t))+c.length+("ArrowUp"===e.type?-1:1))%c.length);w(c[n])}e.claim();break;default:i!==j()&&w(i)}}),t.pipe(Object(o.a)(({mode:e})=>"global"===e)).subscribe(e=>{switch(e.type){case"f":case"s":case"/":w(i),function(e){if(!(e instanceof HTMLInputElement))throw new Error("Not implemented");e.select()}(i),e.claim()}});const u=Ve(i,n);return Object(a.a)(u,Ze(s,n,{query$:u}))}var tt=c(25);function ct(e,t){var{header$:c}=t,a=Object(tt.c)(t,["header$"]);const r=new n.a;return r.pipe(Object(Ee.a)(xe.a),Object(be.a)(c)).subscribe({next([{height:t},{height:c}]){!function(e,t){const c=e.firstElementChild;c.style.height=t-2*c.offsetTop+"px"}(e,t),function(e,t){e.style.top=t+"px"}(e,c)},complete(){!function(e){e.style.top=""}(e),function(e){e.firstElementChild.style.height=""}(e)}}),function(e,{viewport$:t,main$:c}){const n=e.parentElement.offsetTop-e.parentElement.parentElement.offsetTop;return Object(J.a)([c,t]).pipe(Object(i.a)(([{offset:e,height:t},{offset:{y:c}}])=>({height:t=t+Math.min(n,Math.max(0,c-e))-n,locked:c>=e+n})),Object($.a)((e,t)=>e.height===t.height&&e.locked===t.locked))}(e,a).pipe(Object(E.a)(r),Object(_.a)(()=>r.complete()),Object(i.a)(t=>Object.assign({ref:e},t)))}var nt=c(76);function at(e){const[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":const[,t,c]=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);return function(e,t){return q(void 0!==t?`https://api.github.com/repos/${e}/${t}`:"https://api.github.com/users/"+e).pipe(Object(i.a)(e=>{if(void 0!==t){const{stargazers_count:t,forks_count:c}=e;return[je(t)+" Stars",je(c)+" Forks"]}{const{public_repos:t}=e;return[je(t)+" Repositories"]}}),Object(nt.a)([]))}(t,c);case"gitlab":const[,n,a]=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i);return function(e,t){return q(`https://${e}/api/v4/projects/${encodeURIComponent(t)}`).pipe(Object(i.a)(({star_count:e,forks_count:t})=>[je(e)+" Stars",je(t)+" Forks"]),Object(nt.a)([]))}(n,a);default:return x.a}}let rt;function ot(e){const t=new n.a;return t.subscribe(({facts:t})=>{!function(e,t){e.lastElementChild.appendChild(t)}(e,function(e){return Oe("ul",{class:"md-source__facts"},e.map(e=>Oe("li",{class:"md-source__fact"},e)))}(t)),function(e,t){e.lastElementChild.setAttribute("data-md-state",t)}(e,"done")}),function(e){const t=function(e){let t=0;for(let c=0,n=e.length;c<n;c++)t=(t<<5)-t+e.charCodeAt(c),t|=0;return t}(e.href).toString();return rt||(rt=Object(r.a)(()=>{const c=sessionStorage.getItem(t);if(c)return Object(y.a)(JSON.parse(c));{const c=at(e.href);return c.subscribe(e=>{try{sessionStorage.setItem(t,JSON.stringify(e))}catch(e){}}),c}}).pipe(Object(Ne.a)(()=>x.a),Object(o.a)(e=>e.length>0),Object(i.a)(e=>({facts:e})),Object(b.a)(1)))}(e).pipe(Object(E.a)(t),Object(_.a)(()=>t.complete()),Object(i.a)(t=>Object.assign({ref:e},t)))}function it(e,t){const c=new n.a;return c.pipe(Object(Ee.a)(xe.a)).subscribe({next({hidden:t}){t?function(e,t){e.setAttribute("data-md-state",t)}(e,"hidden"):he(e)},complete(){he(e)}}),function(e,{viewport$:t,header$:c}){return X(e,{header$:c,viewport$:t}).pipe(Object(i.a)(({offset:{y:e}})=>({hidden:e>=10})),Object(W.a)("hidden"))}(e,t).pipe(Object(E.a)(c),Object(_.a)(()=>c.complete()),Object(i.a)(t=>Object.assign({ref:e},t)))}var st=c(81);function bt(e,t){const c=new n.a;c.pipe(Object(Ee.a)(xe.a)).subscribe(({prev:e,next:t})=>{for(const[e]of t)fe(e),ue(e);for(const[t,[c]]of e.entries())le(c,t===e.length-1),pe(c,"blur")});return function(e,{viewport$:t,header$:c}){const n=new Map;for(const t of e){const e=d(`[id="${decodeURIComponent(t.hash.substring(1))}"]`);void 0!==e&&n.set(t,e)}const a=c.pipe(Object(i.a)(e=>24+e.height));return R(document.body).pipe(Object(W.a)("height"),Object(i.a)(()=>{let e=[];return[...n].reduce((t,[c,a])=>{for(;e.length;){if(!(n.get(e[e.length-1]).tagName>=a.tagName))break;e.pop()}let r=a.offsetTop;for(;!r&&a.parentElement;)r=(a=a.parentElement).offsetTop;return t.set([...e=[...e,c]].reverse(),r)},new Map)}),Object(s.a)(e=>Object(J.a)([a,t]).pipe(Object(st.a)(([e,t],[c,{offset:{y:n}}])=>{for(;t.length;){const[,a]=t[0];if(!(a-c<n))break;e=[...e,t.shift()]}for(;e.length;){const[,a]=e[e.length-1];if(!(a-c>=n))break;t=[e.pop(),...t]}return[e,t]},[[],[...e]]),Object($.a)((e,t)=>e[0]===t[0]&&e[1]===t[1])))).pipe(Object(i.a)(([e,t])=>({prev:e.map(([e])=>e),next:t.map(([e])=>e)})),Object(v.a)({prev:[],next:[]}),Object(Ae.a)(2,1),Object(i.a)(([e,t])=>e.prev.length<t.prev.length?{prev:t.prev.slice(Math.max(0,e.prev.length-1),t.prev.length),next:[]}:{prev:t.prev.slice(-1),next:t.next.slice(0,t.next.length-e.next.length)}))}(h("[href^=\\#]",e),t).pipe(Object(E.a)(c),Object(_.a)(()=>c.complete()),Object(i.a)(t=>Object.assign({ref:e},t)))}var pt=c(14);function ut(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}document.documentElement.classList.remove("no-js"),document.documentElement.classList.add("js");const lt=function(){const e=new u.a;return Object(l.a)(document,"DOMContentLoaded").pipe(Object(f.a)(document)).subscribe(e),e}(),ft=new N.a(H()),dt=Object(l.a)(window,"hashchange").pipe(Object(i.a)(z),Object(v.a)(z()),Object(o.a)(e=>e.length>0),Object(L.a)()).pipe(Object(s.a)(e=>Object(y.a)(d(`[id="${e}"]`)))),Ot=Object(l.a)(window,"keydown").pipe(Object(o.a)(e=>!(e.metaKey||e.ctrlKey)),Object(i.a)(e=>{return{mode:(t="search",P[t].checked?"search":"global"),type:e.key,claim(){e.preventDefault(),e.stopPropagation()}};var t}),Object(o.a)(({mode:e})=>{if("global"===e){const e=j();if(void 0!==e)return!function(e){switch(e.tagName){case"INPUT":case"SELECT":case"TEXTAREA":return!0;default:return e.isContentEditable}}(e)}return!0}),Object(L.a)()),jt=Object(J.a)([Object(a.a)(Object(l.a)(window,"scroll",{passive:!0}),Object(l.a)(window,"resize",{passive:!0})).pipe(Object(i.a)(B),Object(v.a)(B())),Object(l.a)(window,"resize",{passive:!0}).pipe(Object(i.a)(Q),Object(v.a)(Q()))]).pipe(Object(i.a)(([e,t])=>({offset:e,size:t})),Object(b.a)(1)),ht=I("(min-width: 960px)"),mt=I("(min-width: 1220px)"),gt=Object(a.a)(I("print").pipe(Object(o.a)(Boolean)),Object(l.a)(window,"beforeprint")).pipe(Object(f.a)(void 0)),vt=new n.a;!function({alert$:e}){se.a.isSupported()&&new Le.a(e=>{new se.a("[data-clipboard-target], [data-clipboard-text]").on("success",t=>e.next(t))}).subscribe(()=>e.next(ne("clipboard.copied")))}({alert$:vt}),ce("navigation.instant")&&function({document$:e,location$:t,viewport$:c}){const n=te();if("file:"===location.protocol)return;"scrollRestoration"in history&&(history.scrollRestoration="manual",Object(l.a)(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));const r=d("link[rel='shortcut icon']");void 0!==r&&(r.href=r.href);const p=function(e,t){const c=new DOMParser;return F(e,t).pipe(Object(s.a)(e=>e.text()),Object(i.a)(e=>c.parseFromString(e,"text/xml")),Object(b.a)(1))}(n.base+"/sitemap.xml").pipe(Object(i.a)(e=>function(e){if(e.length<2)return e;const[t,c]=e.sort((e,t)=>e.length-t.length);let n=0;if(t===c)n=t.length;else for(;t.charCodeAt(n)==t.charCodeAt(n);)n++;const a=te();return e.map(e=>e.replace(t.slice(0,n),a.base+"/"))}(h("loc",e).map(e=>e.textContent))),Object(s.a)(e=>Object(l.a)(document.body,"click").pipe(Object(o.a)(e=>!e.metaKey&&!e.ctrlKey),Object(s.a)(t=>{if(t.target instanceof HTMLElement){const c=t.target.closest("a");if(c&&!c.target&&e.includes(c.href))return t.preventDefault(),Object(y.a)({url:new URL(c.href)})}return x.a}))),Object(L.a)()),u=Object(l.a)(window,"popstate").pipe(Object(o.a)(e=>null!==e.state),Object(i.a)(e=>({url:new URL(location.href),offset:e.state})),Object(L.a)());Object(a.a)(p,u).pipe(Object($.a)((e,t)=>e.url.href===t.url.href),Object(i.a)(({url:e})=>e)).subscribe(t);const f=t.pipe(Object(W.a)("pathname"),Object(Ue.a)(1),Object(s.a)(e=>F(e.href).pipe(Object(Ne.a)(()=>(function(e){location.href=e.href}(e),x.a)))),Object(L.a)());p.pipe(Object(Me.a)(f)).subscribe(({url:e})=>{history.pushState({},"",e.toString())});const O=new DOMParser;f.pipe(Object(s.a)(e=>e.text()),Object(i.a)(e=>O.parseFromString(e,"text/html"))).subscribe(e),Object(a.a)(p,u).pipe(Object(Me.a)(e)).subscribe(({url:e,offset:t})=>{e.hash&&!t?function(e){const t=m("a");t.href=e,t.addEventListener("click",e=>e.stopPropagation()),t.click()}(e.hash):K(t||{y:0})}),e.pipe(Object(Ue.a)(1)).subscribe(e=>{for(const t of["title","link[rel='canonical']","meta[name='author']","meta[name='description']","[data-md-component=announce]","[data-md-component=header-title]","[data-md-component=container]","[data-md-component=skip]"]){const c=d(t),n=d(t,e);void 0!==c&&void 0!==n&&g(c,n)}}),e.pipe(Object(Ue.a)(1),Object(i.a)(()=>ae("container")),Object(s.a)(e=>Object(y.a)(...h("script",e))),Object(He.a)(e=>{const t=m("script");return e.src?(t.src=e.src,g(e,t),new Le.a(e=>{t.onload=()=>e.complete()})):(t.textContent=e.textContent,g(e,t),Pe.a)})).subscribe(),c.pipe(Object(ze.a)(p),Object(Ie.a)(250),Object(W.a)("offset")).subscribe(({offset:e})=>{history.replaceState(e,"")}),Object(a.a)(p,u).pipe(Object(Ae.a)(2,1),Object(o.a)(([e,t])=>e.url.pathname===t.url.pathname),Object(i.a)(([,e])=>e)).subscribe(({offset:e})=>{K(e||{y:0})})}({document$:lt,location$:ft,viewport$:jt}),Object(a.a)(ft,dt).subscribe(()=>U("drawer",!1)),Ot.pipe(Object(o.a)(({mode:e})=>"global"===e)).subscribe(e=>{switch(e.type){case"p":case",":const e=d("[href][rel=prev]");void 0!==e&&e.click();break;case"n":case".":const t=d("[href][rel=next]");void 0!==t&&t.click()}}),function({document$:e}){e.subscribe(()=>{for(const e of h("[data-md-state=indeterminate]"))e.setAttribute("data-md-state",""),e.indeterminate=!0,e.checked=!1})}({document$:lt}),function({document$:e}){e.pipe(Object(s.a)(()=>Object(y.a)(...h("[data-md-scrollfix]"))),Object(E.a)(e=>e.removeAttribute("data-md-scrollfix")),Object(o.a)(ut),Object(pt.a)(e=>Object(l.a)(e,"touchstart").pipe(Object(f.a)(e)))).subscribe(e=>{const t=e.scrollTop;0===t?e.scrollTop=1:t+e.offsetHeight===e.scrollHeight&&(e.scrollTop=t-1)})}({document$:lt});const wt=($t=ae("header"),yt={viewport$:jt},Object(r.a)(()=>{const e=getComputedStyle($t);return Object(y.a)("sticky"===e.position||"-webkit-sticky"===e.position)}).pipe(Object(Te.a)(R($t),Se(yt)),Object(i.a)(([e,{height:t},c])=>({height:e?t:0,sticky:e,hidden:c})),Object($.a)((e,t)=>e.sticky===t.sticky&&e.height===t.height&&e.hidden===t.hidden),Object(b.a)(1)));var $t,yt;const xt=lt.pipe(Object(i.a)(()=>ae("main")),Object(s.a)(e=>function(e,{viewport$:t,header$:c}){const n=c.pipe(Object(i.a)(({height:e})=>e),Object($.a)()),a=n.pipe(Object(s.a)(()=>R(e).pipe(Object(i.a)(({height:t})=>({top:e.offsetTop,bottom:e.offsetTop+t})),Object(W.a)("bottom"))));return Object(J.a)([n,a,t]).pipe(Object(i.a)(([e,{top:t,bottom:c},{offset:{y:n},size:{height:a}}])=>({offset:t-e,height:a=Math.max(0,a-Math.max(0,t-n,e)-Math.max(0,a+n-c)),active:t-e<=n})),Object($.a)((e,t)=>e.offset===t.offset&&e.height===t.height&&e.active===t.active))}(e,{viewport$:jt,header$:wt})),Object(b.a)(1)),_t=Object(a.a)(...re("dialog").map(e=>ke(e,{alert$:vt})),...re("header").map(e=>function(e,{header$:t,main$:c}){const a=new n.a;return a.pipe(Object(W.a)("active"),Object(Te.a)(t),Object(Ee.a)(xe.a)).subscribe(([{active:t},{hidden:c}])=>{t?function(e,t){e.setAttribute("data-md-state",t)}(e,c?"hidden":"shadow"):function(e){e.removeAttribute("data-md-state")}(e)}),c.subscribe(e=>a.next(e)),t.pipe(Object(i.a)(t=>Object.assign({ref:e},t)))}(e,{viewport$:jt,header$:wt,main$:xt})),...re("search").map(e=>et(e,{keyboard$:Ot})),...re("source").map(e=>ot(e)),...re("tabs").map(e=>it(e,{viewport$:jt,header$:wt}))),Et=Object(r.a)(()=>Object(a.a)(...re("content").map(e=>function(e,{target$:t,viewport$:c,print$:n}){return Object(a.a)(...h("pre > code",e).map(e=>ve(e,{viewport$:c})),...h("table:not([class])",e).map(e=>ye(e)),...h("details",e).map(e=>we(e,{target$:t,print$:n})))}(e,{target$:dt,viewport$:jt,print$:gt})),...re("header-title").map(e=>Re(e,{viewport$:jt,header$:wt})),...re("sidebar").map(e=>"navigation"===e.getAttribute("data-md-type")?D(mt,()=>ct(e,{viewport$:jt,header$:wt,main$:xt})):D(ht,()=>ct(e,{viewport$:jt,header$:wt,main$:xt}))),...re("toc").map(e=>bt(e,{viewport$:jt,header$:wt})))),kt=lt.pipe(Object(s.a)(()=>Et),Object(p.a)(_t),Object(b.a)(1));kt.subscribe()}}));
//# sourceMappingURL=bundle.e8ecd72e.min.js.map