rapids/0.3/assets/javascripts/bundle.f4f0c901.min.js

1 line
32 KiB
JavaScript

!function(e,t){for(var a in t)e[a]=t[a]}(window,function(e){function t(t){for(var c,o,i=t[0],s=t[1],b=t[2],p=0,l=[];p<i.length;p++)o=i[p],Object.prototype.hasOwnProperty.call(n,o)&&n[o]&&l.push(n[o][0]),n[o]=0;for(c in s)Object.prototype.hasOwnProperty.call(s,c)&&(e[c]=s[c]);for(u&&u(t);l.length;)l.shift()();return r.push.apply(r,b||[]),a()}function a(){for(var e,t=0;t<r.length;t++){for(var a=r[t],c=!0,i=1;i<a.length;i++){var s=a[i];0!==n[s]&&(c=!1)}c&&(r.splice(t--,1),e=o(o.s=a[0]))}return e}var c={},n={0:0},r=[];function o(t){if(c[t])return c[t].exports;var a=c[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=e,o.c=c,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)o.d(a,c,function(t){return e[t]}.bind(null,c));return a},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 u=s;return r.push([50,1]),a()}({50:function(e,t,a){"use strict";a.r(t),a.d(t,"setScrollLock",(function(){return it})),a.d(t,"resetScrollLock",(function(){return st})),a.d(t,"initialize",(function(){return bt}));a(45);var c=a(26),n=a(56),r=a(40),o=a(6),i=a(44),s=a(55),b=a(51),u=a(23),p=a(75),l=a(53),f=a(58),d=a(36),h=a(41),j=a(66),O=a(64),m=a(30),g=a(43),v=a(69),$=a(59),y=a(76),w=a(42),x=a(70),S=a(61),k=a(52),_=a(79),E=a(38);function T(e,t=document){return t.querySelector(e)||void 0}function A(e,t=document){const a=T(e,t);if(void 0===a)throw new ReferenceError(`Missing element: expected "${e}" to be present`);return a}function C(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}function M(e,t=document){return Array.from(t.querySelectorAll(e))}function L(e){return document.createElement(e)}function R(e,t){e.replaceWith(t)}var P=a(54);function z(e,t=!0){t?e.focus():e.blur()}function H(e){return{x:e.scrollLeft,y:e.scrollTop}}var q=a(39),N=a(24),U=a(57);const I=new N.a,W=Object(r.a)(()=>Object(s.a)(new q.a(e=>{for(const t of e)I.next(t)}))).pipe(Object(d.a)(e=>Object(l.a)(Object(s.a)(e),n.a).pipe(Object(U.a)(()=>e.disconnect()))),Object(f.a)({bufferSize:1,refCount:!0}));function D(e){return W.pipe(Object($.a)(t=>t.observe(e)),Object(d.a)(t=>I.pipe(Object(h.a)(({target:t})=>t===e),Object(U.a)(()=>t.unobserve(e)),Object(m.a)(({contentRect:e})=>({width:e.width,height:e.height})))),Object(P.a)(function(e){return{width:e.offsetWidth,height:e.offsetHeight}}(e)))}var F=a(74);var J=a(60);function Y(e,t=location){return e.host===t.host&&/^(?:\/[\w-]+)*(?:\/?|\.html)$/i.test(e.pathname)}function K(e,t=location){return e.pathname===t.pathname&&e.hash.length>0}function B(){return new J.a(new URL(location.href))}function Q(){return location.hash.substring(1)}function X(e){const t=L("a");t.href=e,t.addEventListener("click",e=>e.stopPropagation()),t.click()}var V=a(5);function G(e){const t=matchMedia(e);return new V.a(e=>{t.addListener(t=>e.next(t.matches))}).pipe(Object(P.a)(t.matches),Object(f.a)({bufferSize:1,refCount:!0}))}const Z={drawer:A("[data-md-toggle=drawer]"),search:A("[data-md-toggle=search]")};function ee(e,t){Z[e].checked!==t&&Z[e].click()}function te(e){const t=Z[e];return Object(b.a)(t,"change").pipe(Object(m.a)(()=>t.checked),Object(P.a)(t.checked))}function ae(){return{x:Math.max(0,pageXOffset),y:Math.max(0,pageYOffset)}}function ce({x:e,y:t}){window.scrollTo(e||0,t||0)}function ne(){return{width:innerWidth,height:innerHeight}}function re(e,{header$:t,viewport$:a}){const c=a.pipe(Object(S.a)("size")),n=Object(i.a)([c,t]).pipe(Object(m.a)(()=>({x:e.offsetLeft,y:e.offsetTop})));return Object(i.a)([t,a,n]).pipe(Object(m.a)(([{height:e},{offset:t,size:a},{x:c,y:n}])=>({offset:{x:t.x-c,y:t.y-n+e},size:a})))}var oe=a(62),ie=a(63);var se=a(12),be=a(77);let ue;function pe(e){return ue.pipe(Object(d.a)(t=>void 0!==t[e]?Object(s.a)(t[e]):se.a),Object(g.a)())}var le=a(28),fe=a(65);function de({document$:e,viewport$:t}){return Object(le.a)(Object(d.a)(a=>{const c=function(e,{document$:t}){return t.pipe(Object(m.a)(()=>{const t=getComputedStyle(e);return["sticky","-webkit-sticky"].includes(t.position)}),Object(g.a)(),Object(d.a)(t=>t?D(e).pipe(Object(m.a)(({height:e})=>({sticky:!0,height:e}))):Object(s.a)({sticky:!1,height:0})),Object(f.a)({bufferSize:1,refCount:!0}))}(a,{document$:e}),n=pe("main").pipe(Object(m.a)(e=>T("h1, h2, h3, h4, h5, h6",e)),Object(h.a)(e=>void 0!==e),Object(fe.a)(pe("header-title")),Object(d.a)(([e,a])=>re(e,{header$:c,viewport$:t}).pipe(Object(m.a)(({offset:{y:t}})=>t>=e.offsetHeight?"page":"site"),Object(g.a)(),function(e){return Object(le.a)(Object(O.a)(p.a),Object($.a)(t=>{!function(e,t){e.setAttribute("data-md-state",t?"active":"")}(e,"page"===t)}),Object(U.a)(()=>{!function(e){e.removeAttribute("data-md-state")}(e)}))}(a))),Object(P.a)("site"));return Object(i.a)([c,n]).pipe(Object(m.a)(([e,t])=>Object.assign({type:t},e)))}))}var he=a(10);function je({header$:e,viewport$:t}){const a=new N.a;return pe("header").pipe(Object(d.a)(e=>{return a.pipe(Object(S.a)("active"),(t=e,Object(le.a)(Object(O.a)(p.a),Object($.a)(({active:e})=>{!function(e,t){e.setAttribute("data-md-state",t?"shadow":"")}(t,e)}),Object(U.a)(()=>{!function(e){e.removeAttribute("data-md-state")}(t)}))));var t})).subscribe(he.a),Object(le.a)(Object(d.a)(a=>function(e,{header$:t,viewport$:a}){const c=t.pipe(Object(m.a)(({height:e})=>e),Object(g.a)()),n=c.pipe(Object(d.a)(()=>D(e).pipe(Object(m.a)(({height:t})=>({top:e.offsetTop,bottom:e.offsetTop+t})),Object(S.a)("bottom"))));return Object(i.a)([c,n,a]).pipe(Object(m.a)(([e,{top:t,bottom:a},{offset:{y:c},size:{height:n}}])=>({offset:t-e,height:n=Math.max(0,n-Math.max(0,t-c,e)-Math.max(0,n+c-a)),active:t-e<=c})),Object(g.a)((e,t)=>e.offset===t.offset&&e.height===t.height&&e.active===t.active))}(a,{header$:e,viewport$:t})),Object($.a)(e=>a.next(e)),Object(U.a)(()=>a.complete()))}function Oe(e){e.style.top=""}function me(e,{main$:t,viewport$:a}){const c=e.parentElement.offsetTop-e.parentElement.parentElement.offsetTop;return Object(i.a)([t,a]).pipe(Object(m.a)(([{offset:e,height:t},{offset:{y:a}}])=>({height:t=t+Math.min(c,Math.max(0,a-e))-c,lock:a>=e+c})),Object(g.a)((e,t)=>e.height===t.height&&e.lock===t.lock))}function ge(e,{header$:t}){return Object(le.a)(Object(O.a)(p.a),Object(j.a)(t),Object($.a)(([{height:t,lock:a},{height:c}])=>{!function(e,t){const a=e.firstElementChild;a.style.height=t-2*a.offsetTop+"px"}(e,t),a?function(e,t){e.style.top=t+"px"}(e,c):Oe(e)}),Object(m.a)(([e])=>e),Object(U.a)(()=>{Oe(e),function(e){e.firstElementChild.style.height=""}(e)}))}var ve=a(67);function $e(e){const t=new RegExp(e.separator,"img"),a=(e,t,a)=>`${t}<mark data-md-highlight>${a}</mark>`;return c=>{c=c.replace(/[\s*+\-:~^]+/g," ").trim();const n=new RegExp(`(^|${e.separator})(${c.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(t,"|")})`,"img");return e=>e.replace(n,a).replace(/<\/mark>(\s+)<mark[^>]*>/gim,"$1")}}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 we(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 a of t)we(e,a)}function xe(e,t,...a){const c=document.createElement(e);if(t)for(const e of Object.keys(t))"boolean"!=typeof t[e]?c.setAttribute(e,t[e]):t[e]&&c.setAttribute(e,"");for(const e of a)we(c,e);return c}let Se;function ke(e,t){if(void 0===Se){const e=A("#__lang");Se=JSON.parse(e.textContent)}if(void 0===Se[e])throw new ReferenceError("Invalid translation: "+e);return void 0!==t?Se[e].replace("#",t.toString()):Se[e]}function _e(e){if(e>999){return((e+1e-6)/1e3).toFixed(+((e-950)%1e3>99))+"k"}return e.toString()}var Ee;function Te(e){return e.type===Ee.READY}function Ae(e){return e.type===Ee.QUERY}function Ce(e){return e.type===Ee.RESULT}function Me({config:e,docs:t,index:a,options:c}){1===e.lang.length&&"en"===e.lang[0]&&(e.lang=[ke("search.config.lang")]),"[\\s\\-]+"===e.separator&&(e.separator=ke("search.config.separator"));const n=ke("search.config.pipeline").split(/\s*,\s*/).filter(Boolean);return{config:e,docs:t,index:a,options:Object.assign(Object.assign({},c),{pipeline:n,suggestions:!0})}}function Le(e,{index$:t,base$:a}){const c=new Worker(e),n=new N.a,r=function(e,{tx$:t}){const a=Object(b.a)(e,"message").pipe(Object(m.a)(({data:e})=>e));return t.pipe(Object(oe.a)(()=>a,{leading:!0,trailing:!0}),Object($.a)(t=>e.postMessage(t)),Object(ie.a)(a),Object(F.a)())}(c,{tx$:n}).pipe(Object(j.a)(a),Object(m.a)(([e,t])=>{if(Ce(e))for(const a of e.data.items)for(const e of a)e.location=`${t}/${e.location}`;return e}),Object(F.a)());return t.pipe(Object(m.a)(e=>({type:Ee.SETUP,data:Me(e)})),Object(O.a)(u.b)).subscribe(n.next.bind(n)),{tx$:n,rx$:r}}!function(e){e[e.SETUP=0]="SETUP",e[e.READY=1]="READY",e[e.QUERY=2]="QUERY",e[e.RESULT=3]="RESULT"}(Ee||(Ee={}));var Re,Pe=a(37);function ze(e,t){const a=t&Re.PARENT,c=t&Re.TEASER,n=Object.keys(e.terms).filter(t=>!e.terms[t]).map(e=>[xe("del",null,e)," "]).flat().slice(0,-1),r=new URL(e.location);r.searchParams.append("h",Object.entries(e.terms).reduce((e,[t,a])=>`${e} ${a?t:""}`,"").replace(/%20/g,"+"));return xe("a",{href:""+r,class:"md-search-result__link",tabIndex:-1},xe("article",{class:["md-search-result__article",...a?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},a>0&&xe("div",{class:"md-search-result__icon md-icon"}),xe("h1",{class:"md-search-result__title"},e.title),c>0&&e.text.length>0&&xe("p",{class:"md-search-result__teaser"},function(e,t){let a=t;if(e.length>a){for(;" "!==e[a]&&--a>0;);return e.substring(0,a)+"..."}return e}(e.text,320)),c>0&&n.length>0&&xe("p",{class:"md-search-result__terms"},ke("search.result.term.missing"),": ",n)))}function He(e,t=1/0){const a=[...e],c=a.findIndex(e=>!e.location.includes("#")),[n]=a.splice(c,1);let r=a.findIndex(e=>e.score<t);-1===r&&(r=a.length);const o=a.slice(0,r),i=a.slice(r),s=[ze(n,Re.PARENT|+(!c&&0===r)),...o.map(e=>ze(e,Re.TEASER)),...i.length?[xe("details",{class:"md-search-result__more"},xe("summary",{tabIndex:-1},i.length>0&&1===i.length?ke("search.result.more.one"):ke("search.result.more.other",i.length)),i.map(e=>ze(e,Re.TEASER)))]:[]];return xe("li",{class:"md-search-result__item"},s)}function qe(e){return xe("ul",{class:"md-source__facts"},e.map(e=>xe("li",{class:"md-source__fact"},e)))}function Ne({document$:e,dialog$:t}){if(!Pe.isSupported())return n.a;e.subscribe(()=>{M("pre > code").forEach((e,t)=>{const a=e.parentElement;var c;a.id="__code_"+t,a.insertBefore((c=a.id,xe("button",{class:"md-clipboard md-icon",title:ke("clipboard.copy"),"data-clipboard-target":`#${c} > code`})),e)})});const a=new V.a(e=>{new Pe(".md-clipboard").on("success",t=>e.next(t))}).pipe(Object(F.a)());return a.pipe(Object($.a)(e=>e.clearSelection()),Object(k.a)(ke("clipboard.copied"))).subscribe(t),a}!function(e){e[e.TEASER=1]="TEASER",e[e.PARENT=2]="PARENT"}(Re||(Re={}));var Ue=a(68),Ie=a(78);function We(e,{document$:t,viewport$:a,location$:c}){"scrollRestoration"in history&&(history.scrollRestoration="manual"),Object(b.a)(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"});const r=T('link[rel="shortcut icon"]');void 0!==r&&(r.href=r.href);const i=Object(b.a)(document.body,"click").pipe(Object(h.a)(e=>!(e.metaKey||e.ctrlKey)),Object(d.a)(t=>{if(t.target instanceof HTMLElement){const a=t.target.closest("a");if(a&&!a.target&&Y(a)&&e.includes(a.href))return K(a)||t.preventDefault(),Object(s.a)(a)}return n.a}),Object(m.a)(e=>({url:new URL(e.href)})),Object(F.a)());i.subscribe(()=>{ee("search",!1)});const u=i.pipe(Object(h.a)(({url:e})=>!K(e)),Object(F.a)()),p=Object(b.a)(window,"popstate").pipe(Object(h.a)(e=>null!==e.state),Object(m.a)(e=>({url:new URL(location.href),offset:e.state})),Object(F.a)());Object(l.a)(u,p).pipe(Object(g.a)((e,t)=>e.url.href===t.url.href),Object(m.a)(({url:e})=>e)).subscribe(c);const f=c.pipe(Object(S.a)("pathname"),Object(Ue.a)(1),Object(d.a)(e=>Object(o.a)(fetch(e.href,{credentials:"same-origin"}).then(e=>e.text())).pipe(Object(v.a)(()=>(function(e){location.href=e.href}(e),n.a)))),Object(F.a)());u.pipe(Object(ve.a)(f)).subscribe(({url:e})=>{history.pushState({},"",e.toString())});const j=new DOMParser;f.pipe(Object(m.a)(e=>j.parseFromString(e,"text/html"))).subscribe(t);Object(l.a)(u,p).pipe(Object(ve.a)(t)).subscribe(({url:e,offset:t})=>{e.hash&&!t?X(e.hash):ce(t||{y:0})}),t.pipe(Object(Ue.a)(1)).subscribe(({title:e,head:t})=>{document.title=e;for(const e of['link[rel="canonical"]','meta[name="author"]','meta[name="description"]']){const a=T(e,t),c=T(e,document.head);void 0!==a&&void 0!==c&&R(c,a)}document.dispatchEvent(new CustomEvent("DOMContentSwitch"))}),a.pipe(Object(Ie.a)(250),Object(S.a)("offset")).subscribe(({offset:e})=>{history.replaceState(e,"")}),Object(l.a)(i,p).pipe(Object(x.a)(2,1),Object(h.a)(([e,t])=>e.url.pathname===t.url.pathname&&!K(t.url)),Object(m.a)(([,e])=>e)).subscribe(({offset:e})=>{ce(e||{y:0})})}function De(){const e=Object(b.a)(window,"keydown").pipe(Object(h.a)(e=>!(e.metaKey||e.ctrlKey)),Object(m.a)(e=>({type:e.key,claim(){e.preventDefault(),e.stopPropagation()}})),Object(F.a)()).pipe(Object(m.a)(e=>{return Object.assign({mode:(t="search",Z[t].checked?"search":"global")},e);var t}),Object(h.a)(({mode:e})=>{if("global"===e){const e=C();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(F.a)());return e.pipe(Object(h.a)(({mode:e})=>"search"===e),Object(j.a)(pe("search-query"),pe("search-result"),pe("search-suggest"))).subscribe(([e,t,a,c])=>{const n=C();switch(e.type){case"Enter":if(n===t){const t=new Map;for(const e of M(":first-child [href]",a)){const a=e.firstElementChild;t.set(e,parseFloat(a.getAttribute("data-md-score")))}if(t.size){const[[e]]=[...t].sort(([,e],[,t])=>t-e);e.click()}e.claim()}break;case"Escape":case"Tab":ee("search",!1),z(t,!1);break;case"ArrowUp":case"ArrowDown":if(void 0===n)z(t);else{const c=[t,...M(":not(details) > [href], summary, details[open] [href]",a)],r=Math.max(0,(Math.max(0,c.indexOf(n))+c.length+("ArrowUp"===e.type?-1:1))%c.length);z(c[r])}e.claim();break;case"ArrowRight":c.innerText.length&&t.selectionStart===t.value.length&&(t.value=c.innerText);break;default:t!==C()&&z(t)}}),e.pipe(Object(h.a)(({mode:e})=>"global"===e),Object(j.a)(pe("search-query"))).subscribe(([e,t])=>{switch(e.type){case"f":case"s":case"/":z(t),function(e){if(!(e instanceof HTMLInputElement))throw new Error("Not implemented");e.select()}(t),e.claim();break;case"p":case",":const a=T("[href][rel=prev]");void 0!==a&&a.click();break;case"n":case".":const c=T("[href][rel=next]");void 0!==c&&c.click()}}),e}function Fe(e){e.placeholder=ke("search.placeholder")}function Je(e,{transform:t}={}){const a=t||ye,c=Object(l.a)(Object(b.a)(e,"keyup"),Object(b.a)(e,"focus").pipe(Object(y.a)(1))).pipe(Object(m.a)(()=>a(e.value)),Object(P.a)(a(e.value)),Object(g.a)()),n=function(e){return Object(l.a)(Object(b.a)(e,"focus"),Object(b.a)(e,"blur")).pipe(Object(m.a)(({type:e})=>"focus"===e),Object(P.a)(e===C()))}(e);return Object(i.a)([c,n]).pipe(Object(m.a)(([e,t])=>({value:e,focus:t})))}function Ye({tx$:e},t={}){return Object(le.a)(Object(d.a)(a=>{const c=Je(a,t);return c.pipe(Object(S.a)("value"),Object(m.a)(({value:e})=>({type:Ee.QUERY,data:e}))).subscribe(e.next.bind(e)),c.pipe(Object(S.a)("focus")).subscribe(({focus:e})=>{e&&ee("search",e)}),c.pipe(function(e){return Object(le.a)(Object($.a)(({focus:t})=>{t?function(e,t){e.placeholder=t}(e,""):Fe(e)}),Object(U.a)(()=>{Fe(e)}))}(a))}))}function Ke(){return Object(le.a)(Object(d.a)(e=>function(e){return Object(b.a)(e,"click").pipe(Object(k.a)(void 0))}(e).pipe(Object(ie.a)(pe("search-query")),Object($.a)(z),Object(k.a)(void 0))),Object(P.a)(void 0))}function Be(e,t){e.appendChild(t)}function Qe(e,{query$:t,fetch$:a}){const c=A(".md-search-result__list",e),n=A(".md-search-result__meta",e);return Object(le.a)(Object(j.a)(t),Object(m.a)(([e,t])=>{const{items:a}=e;return t.value?function(e,t){switch(t){case 0:e.textContent=ke("search.result.none");break;case 1:e.textContent=ke("search.result.one");break;default:e.textContent=ke("search.result.other",t)}}(n,a.length):function(e){e.textContent=ke("search.result.placeholder")}(n),e}),Object(d.a)(t=>{const{items:n}=t,r=[...n.map(([e])=>e.score),0];return a.pipe(Object(O.a)(p.a),Object(be.a)(t=>{const a=e.parentElement;for(;t<n.length&&(Be(c,He(n[t++],r[t])),!(a.scrollHeight-a.offsetHeight>16)););return t},0),Object(k.a)(t),Object(U.a)(()=>{!function(e){e.innerHTML=""}(c)}))}))}function Xe({rx$:e},{query$:t}){return Object(le.a)(Object(d.a)(a=>{const c=a.parentElement,n=function(e){return Object(l.a)(Object(b.a)(e,"scroll"),Object(b.a)(window,"resize")).pipe(Object(m.a)(()=>H(e)),Object(P.a)(H(e)))}(c).pipe(Object(m.a)(({y:e})=>e>=c.scrollHeight-c.offsetHeight-16),Object(g.a)(),Object(h.a)(Boolean));return e.pipe(Object(h.a)(Ce),Object(m.a)(({data:e})=>e),Qe(a,{query$:t,fetch$:n}))}))}function Ve({header$:e,viewport$:t,screen$:a}){return Object(le.a)(Object(d.a)(c=>a.pipe(Object(d.a)(a=>a?re(c,{header$:e,viewport$:t}).pipe(Object(m.a)(({offset:{y:e}})=>({hidden:e>=10})),Object(S.a)("hidden"),function(e){return Object(le.a)(Object(O.a)(p.a),Object($.a)(({hidden:t})=>{!function(e,t){e.setAttribute("data-md-state",t?"hidden":"")}(e,t)}),Object(U.a)(()=>{!function(e){e.removeAttribute("data-md-state")}(e)}))}(c)):Object(s.a)({hidden:!0})))))}function Ge(e){e.removeAttribute("data-md-state")}function Ze(e){e.classList.remove("md-nav__link--active")}function et({header$:e,main$:t,viewport$:a,tablet$:c}){return Object(le.a)(Object(d.a)(n=>c.pipe(Object(d.a)(c=>{if(c){const c=M(".md-nav__link",n),r=me(n,{main$:t,viewport$:a}).pipe(ge(n,{header$:e})),o=function(e,{header$:t,viewport$:a}){const c=new Map;for(const t of e){const e=T(`[id="${decodeURIComponent(t.hash.substring(1))}"]`);void 0!==e&&c.set(t,e)}const n=t.pipe(Object(m.a)(e=>18+e.height));return D(document.body).pipe(Object(S.a)("height"),Object(m.a)(()=>{let e=[];return[...c].reduce((t,[a,n])=>{for(;e.length;){if(!(c.get(e[e.length-1]).tagName>=n.tagName))break;e.pop()}let r=n.offsetTop;for(;!r&&n.parentElement;)r=(n=n.parentElement).offsetTop;return t.set([...e=[...e,a]].reverse(),r)},new Map)}),Object(d.a)(e=>Object(i.a)([n,a]).pipe(Object(be.a)(([e,t],[a,{offset:{y:c}}])=>{for(;t.length;){const[,n]=t[0];if(!(n-a<c))break;e=[...e,t.shift()]}for(;e.length;){const[,n]=e[e.length-1];if(!(n-a>=c))break;t=[e.pop(),...t]}return[e,t]},[[],[...e]]),Object(g.a)((e,t)=>e[0]===t[0]&&e[1]===t[1])))).pipe(Object(m.a)(([e,t])=>({prev:e.map(([e])=>e),next:t.map(([e])=>e)})),Object(P.a)({prev:[],next:[]}),Object(x.a)(2,1),Object(m.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)}))}(c,{header$:e,viewport$:a}).pipe(function(e){return Object(le.a)(Object(O.a)(p.a),Object($.a)(({prev:e,next:t})=>{for(const[e]of t)Ze(e),Ge(e);e.forEach(([t],a)=>{!function(e,t){e.classList.toggle("md-nav__link--active",t)}(t,a===e.length-1),function(e,t){e.setAttribute("data-md-state",t?"blur":"")}(t,!0)})}),Object(U.a)(()=>{for(const t of e)Ze(t),Ge(t)}))}(c));return Object(i.a)([r,o]).pipe(Object(m.a)(([e,t])=>({sidebar:e,anchors:t})))}return Object(s.a)({})}))))}var tt=a(71);var at=a(72);function ct(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}var nt=a(73);function rt(e){const[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":const[,t,a]=e.match(/^.+github\.com\/([^\/]+)\/?([^\/]+)?/i);return function(e,t){const a=void 0!==t?`https://api.github.com/repos/${e}/${t}`:"https://api.github.com/users/"+e;return Object(o.a)(fetch(a)).pipe(Object(h.a)(e=>200===e.status),Object(d.a)(e=>e.json()),Object(m.a)(e=>{if(void 0!==t){const{stargazers_count:t,forks_count:a}=e;return[_e(t)+" Stars",_e(a)+" Forks"]}{const{public_repos:t}=e;return[_e(t)+" Repositories"]}}),Object(nt.a)([]),Object(F.a)())}(t,a);case"gitlab":const[,c,r]=e.match(/^.+?([^\/]*gitlab[^\/]+)\/(.+?)\/?$/i);return function(e,t){const a=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Object(o.a)(fetch(a)).pipe(Object(h.a)(e=>200===e.status),Object(d.a)(e=>e.json()),Object(m.a)(({star_count:e,forks_count:t})=>[_e(e)+" Stars",_e(t)+" Forks"]),Object(nt.a)([]),Object(F.a)())}(c,r);default:return n.a}}function ot({document$:e}){e.pipe(Object(m.a)(()=>A(".md-source[href]")),Object(d.a)(({href:e})=>{return t=""+function(e){let t=0;for(let a=0,c=e.length;a<c;a++)t=(t<<5)-t+e.charCodeAt(a),t|=0;return t}(e),a=()=>rt(e),Object(r.a)(()=>{const e=sessionStorage.getItem(t);if(e)return Object(s.a)(JSON.parse(e));{const e=a();return e.subscribe(e=>{try{sessionStorage.setItem(t,JSON.stringify(e))}catch(e){}}),e}});var t,a}),Object(h.a)(e=>e.length>0),Object(v.a)(()=>n.a)).subscribe(e=>{for(const t of M(".md-source__repository"))t.hasAttribute("data-md-state")||(t.setAttribute("data-md-state","done"),t.appendChild(qe(e)))})}function it(e,t){e.setAttribute("data-md-state","lock"),e.style.top=`-${t}px`}function st(e){const t=-1*parseInt(e.style.top,10);e.removeAttribute("data-md-state"),e.style.top="",t&&window.scrollTo(0,t)}function bt(e){if(!function(e){return"object"==typeof e&&"string"==typeof e.base&&"object"==typeof e.features&&"object"==typeof e.search}(e))throw new SyntaxError("Invalid configuration: "+JSON.stringify(e));const t=function(){const e=new E.a;return Object(b.a)(document,"DOMContentLoaded").pipe(Object(k.a)(document)).subscribe(e),e}(),a=B(),A=function(e,{location$:t}){return t.pipe(Object(w.a)(1),Object(m.a)(({href:t})=>new URL(e,t).toString().replace(/\/$/,"")),Object(f.a)({bufferSize:1,refCount:!0}))}(e.base,{location$:a}),C=Object(b.a)(window,"hashchange").pipe(Object(m.a)(Q),Object(P.a)(Q()),Object(h.a)(e=>e.length>0),Object(F.a)()),z=Object(i.a)([Object(l.a)(Object(b.a)(window,"scroll",{passive:!0}),Object(b.a)(window,"resize",{passive:!0})).pipe(Object(m.a)(ae),Object(P.a)(ae())),Object(b.a)(window,"resize",{passive:!0}).pipe(Object(m.a)(ne),Object(P.a)(ne()))]).pipe(Object(m.a)(([e,t])=>({offset:e,size:t})),Object(f.a)({bufferSize:1,refCount:!0})),H=G("(min-width: 960px)"),q=G("(min-width: 1220px)");!function(e,{document$:t}){ue=t.pipe(Object(m.a)(t=>e.reduce((e,a)=>{const c=T(`[data-md-component=${a}]`,t);return Object.assign(Object.assign({},e),void 0!==c?{[a]:c}:{})},{})),Object(be.a)((t,a)=>{for(const c of e)switch(c){case"announce":case"header-topic":case"container":case"skip":c in t&&void 0!==t[c]&&(R(t[c],a[c]),t[c]=a[c]);break;default:void 0!==a[c]?t[c]=T(`[data-md-component=${c}]`):delete t[c]}return t}),Object(f.a)({bufferSize:1,refCount:!0}))}(["announce","container","header","header-title","header-topic","main","navigation","search","search-query","search-reset","search-result","search-suggest","skip","tabs","toc"],{document$:t});const U=De();matchMedia("(hover)").matches&&function({document$:e,viewport$:t}){const a=e.pipe(Object(m.a)(()=>M("pre > code"))),c=t.pipe(Object(S.a)("size"));Object(i.a)([a,c]).subscribe(([e])=>{for(const t of e)t.scrollWidth>t.clientWidth?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")})}({document$:t,viewport$:z}),function({document$:e,hash$:t}){const a=e.pipe(Object(m.a)(()=>M("details")));Object(l.a)(G("print").pipe(Object(h.a)(Boolean)),Object(b.a)(window,"beforeprint")).pipe(Object(ie.a)(a)).subscribe(e=>{for(const t of e)t.setAttribute("open","")}),t.pipe(Object(m.a)(e=>T(`[id="${e}"]`)),Object(h.a)(e=>void 0!==e),Object($.a)(e=>{const t=e.closest("details");t&&!t.open&&t.setAttribute("open","")})).subscribe(e=>e.scrollIntoView())}({document$:t,hash$:C}),function({document$:e}){e.pipe(Object(Ue.a)(1),Object(j.a)(pe("container")),Object(m.a)(([,e])=>M("script",e))).pipe(Object(d.a)(e=>Object(s.a)(...e)),Object(tt.a)(e=>{const t=L("script");return e.src?(t.src=e.src,R(e,t),new V.a(e=>{t.onload=()=>e.complete()})):(t.textContent=e.textContent,R(e,t),se.a)})).subscribe(he.a)}({document$:t}),ot({document$:t}),function({document$:e}){const t=L("table");e.pipe(Object(m.a)(()=>M("table:not([class])"))).subscribe(e=>{for(const a of e)R(a,t),R(t,xe("div",{class:"md-typeset__scrollwrap"},xe("div",{class:"md-typeset__table"},a)))})}({document$:t}),function({document$:e}){const t=e.pipe(Object(m.a)(()=>M("[data-md-scrollfix]")),Object(f.a)({bufferSize:1,refCount:!0}));t.subscribe(e=>{for(const t of e)t.removeAttribute("data-md-scrollfix")}),Object(at.a)(ct,t,n.a).pipe(Object(d.a)(e=>Object(l.a)(...e.map(e=>Object(b.a)(e,"touchstart").pipe(Object(k.a)(e)))))).subscribe(e=>{const t=e.scrollTop;0===t?e.scrollTop=1:t+e.offsetHeight===e.scrollHeight&&(e.scrollTop=t-1)})}({document$:t});const I=function({duration:e}={}){const t=new N.a,a=L("div");return a.classList.add("md-dialog","md-typeset"),t.pipe(Object(d.a)(t=>Object(s.a)(document.body).pipe(Object(m.a)(e=>e.appendChild(a)),Object(O.a)(p.a),Object(y.a)(1),Object($.a)(e=>{e.innerHTML=t,e.setAttribute("data-md-state","open")}),Object(y.a)(e||2e3),Object($.a)(e=>e.removeAttribute("data-md-state")),Object(y.a)(400),Object($.a)(e=>{e.innerHTML="",e.remove()})))).subscribe(he.a),t}(),W=Ne({document$:t,dialog$:I}),D=pe("header").pipe(de({document$:t,viewport$:z}),Object(f.a)({bufferSize:1,refCount:!0})),J=pe("main").pipe(je({header$:D,viewport$:z}),Object(f.a)({bufferSize:1,refCount:!0})),K=pe("navigation").pipe(function({header$:e,main$:t,viewport$:a,screen$:c}){return Object(le.a)(Object(d.a)(n=>c.pipe(Object(d.a)(c=>c?me(n,{main$:t,viewport$:a}).pipe(ge(n,{header$:e}),Object(m.a)(e=>({sidebar:e}))):Object(s.a)({})))))}({header$:D,main$:J,viewport$:z,screen$:q}),Object(f.a)({bufferSize:1,refCount:!0})),Z=pe("toc").pipe(et({header$:D,main$:J,viewport$:z,tablet$:H}),Object(f.a)({bufferSize:1,refCount:!0})),ce=e.features.includes("navigation.tabs.sticky")?n.a:pe("tabs").pipe(Ve({header$:D,viewport$:z,screen$:q}),Object(f.a)({bufferSize:1,refCount:!0})),re=pe("search").pipe(Object(d.a)(()=>Object(r.a)(()=>{const t=e.search&&e.search.index?e.search.index:void 0,n=void 0!==t?Object(o.a)(t):A.pipe(Object(d.a)(e=>fetch(e+"/search/search_index.json",{credentials:"same-origin"}).then(e=>e.json())));return e.features.includes("search.highlight")&&Object(i.a)([a,n]).subscribe(([e,t])=>{if(!e.searchParams.has("h"))return;const a=$e(t.config)(e.searchParams.get("h"));let n=e.hash?T(`[id="${e.hash.slice(1)}"]`):T("article");if(void 0!==n)for(;n;){const e=document.createNodeIterator(n,NodeFilter.SHOW_TEXT),t=[];for(;;){const a=e.nextNode();if(!a)break;t.push(a)}for(const e of t)e.textContent.trim()&&e.replaceWith(xe("span",null,a(c(e.textContent))));if("article"===n.tagName)break;{const e=n.nextSibling;if(e instanceof HTMLElement&&e.tagName.match(/^H[1-6]/))break;n=e}}}),Object(s.a)(Le(e.search.worker,{base$:A,index$:n}))}))).pipe(Object(d.a)(t=>{const a=new URLSearchParams(document.location.search);a.get("q")&&(pe("search-suggest").subscribe(e=>{e.innerText=a.get("q"),pe("search-query").subscribe(e=>e.focus())}),t.rx$.pipe(Object(h.a)(Te),Object(d.a)(()=>pe("search-query"))).subscribe(e=>{e.blur(),e.value=a.get("q"),e.focus()}));const c=pe("search-query").pipe(Ye(t,{transform:e.search.transform}),Object(f.a)({bufferSize:1,refCount:!0})),n=pe("search-reset").pipe(Ke(),Object(f.a)({bufferSize:1,refCount:!0})),r=pe("search-result").pipe(Xe(t,{query$:c}),Object(f.a)({bufferSize:1,refCount:!0}));return e.features.includes("search.suggest")&&(r.pipe(Object(j.a)(c)).subscribe(([{suggestions:e},t])=>{if(void 0!==e){const a=document.querySelector(".md-search__suggest"),c=t.value.split(/([\s-]+)/);if(e.length){const[n]=e.slice(-1);if(e.length>=t.value.split(/[\s-]+/).length&&n.startsWith(c[c.length-1])){const e=document.createElement("span");e.innerHTML=[...c.slice(0,-1),n].join(""),a.innerHTML="",a.appendChild(e)}else a.innerHTML=""}else a.innerHTML=""}}),pe("search-query").pipe(Object(d.a)(e=>Object(b.a)(e,"keydown").pipe(Object(O.a)(u.b),Object(m.a)(()=>e.value),Object(g.a)(),Object(m.a)(()=>{const t=document.querySelector(".md-search__suggest span");t&&(t.innerHTML.startsWith(e.value)&&!e.value.endsWith(" ")&&0!==e.value.length||(t.innerHTML=""))})))).subscribe()),pe("search").pipe(function({rx$:e,tx$:t},{query$:a,reset$:c,result$:n}){return Object(le.a)(Object(d.a)(()=>{const r=e.pipe(Object(h.a)(Te),Object(k.a)("ready"),Object(P.a)("waiting"));return t.pipe(Object(h.a)(Ae),Object(ve.a)(r),Object(w.a)(1)).subscribe(t.next.bind(t)),Object(i.a)([r,a,n,c]).pipe(Object(m.a)(([e,t,a])=>({status:e,query:t,result:a})))}))}(t,{query$:c,reset$:n,result$:r}))}),Object(v.a)(()=>(pe("search").subscribe(e=>e.hidden=!0),n.a)),Object(f.a)({bufferSize:1,refCount:!0}));if(C.pipe(Object($.a)(()=>ee("search",!1)),Object(y.a)(125)).subscribe(e=>X("#"+e)),Object(i.a)([te("search"),H]).pipe(Object(j.a)(z),Object(d.a)(([[e,a],{offset:{y:c}}])=>{const n=e&&!a;return t.pipe(Object(y.a)(n?400:100),Object(O.a)(p.a),Object($.a)(({body:e})=>n?it(e,c):st(e)))})).subscribe(),Object(b.a)(document.body,"click").pipe(Object(h.a)(e=>!(e.metaKey||e.ctrlKey)),Object(h.a)(e=>{if(e.target instanceof HTMLElement){const t=e.target.closest("a");if(t&&Y(t))return!0}return!1})).subscribe(()=>{ee("drawer",!1)}),e.features.includes("navigation.instant")&&"file:"!==location.protocol){const e=new DOMParser;A.pipe(Object(d.a)(t=>Object(o.a)(fetch(t+"/sitemap.xml").then(e=>e.text()).then(t=>e.parseFromString(t,"text/xml")))),Object(j.a)(A),Object(m.a)(([e,t])=>{const a=M("loc",e).map(e=>e.textContent);if(a.length>1){const[e,c]=a.sort((e,t)=>e.length-t.length);let n=0;if(e===c)n=e.length;else for(;e.charAt(n)===c.charAt(n);)n++;for(let c=0;c<a.length;c++)a[c]=a[c].replace(e.slice(0,n),t+"/")}return a})).subscribe(e=>{We(e,{document$:t,location$:a,viewport$:z})})}U.pipe(Object(h.a)(e=>"global"===e.mode&&"Tab"===e.type),Object(w.a)(1)).subscribe(()=>{for(const e of M(".headerlink"))e.style.visibility="visible"}),t.subscribe(()=>{const e=M("[data-md-state=indeterminate]");for(const t of e)t.dataset.mdState="",t.indeterminate=!0,t.checked=!1});const oe=M("[data-md-option=palette]");for(let e=0;e<oe.length;e++){const t=oe[e];Object(b.a)(t,"click").subscribe(()=>{for(const e of["mdColorScheme","mdColorPrimary","mdColorAccent"])t.dataset[e]&&(document.body.dataset[e]=t.dataset[e]);oe[e].dataset.mdState="hidden";const a=oe[(e+1)%oe.length];a.dataset.mdState="",a.focus(),localStorage.setItem("__palette",JSON.stringify({index:e,color:{scheme:t.dataset.mdColorScheme,primary:t.dataset.mdColorPrimary,accent:t.dataset.mdColorAccent}}))})}if(oe.length){const{index:e}=JSON.parse(localStorage.getItem("__palette")||'{ "index": 0 }');oe[(+e+1)%oe.length].dataset.mdState=""}if(e.features.includes("header.autohide")&&z.pipe(Object(m.a)(({offset:e})=>e.y),Object(x.a)(2,1),Object(m.a)(([e,t])=>[e<t,t]),Object(S.a)(0),Object(d.a)(([e,t])=>z.pipe(Object(m.a)(({offset:e})=>e.y),Object(h.a)(e=>e>400),Object(m.a)(e=>Math.abs(t-e)),Object(h.a)(e=>e>100),Object(k.a)(e),Object(w.a)(1)))).subscribe(e=>{const t=T("[data-md-component=header]");null==t||t.setAttribute("data-md-state",e?"hidden":"shadow")}),void 0!==e.version&&"mike"===e.version.method){const e=A.pipe(Object(d.a)(e=>fetch(e+"/../versions.json",{credentials:"same-origin"}).then(e=>e.json())),Object(v.a)(()=>(console.log("Couldn't load versions.json"),n.a)));pe("header-title").pipe(Object(m.a)(e=>e.querySelector(".md-header-nav__topic")),Object(_.a)(A,e)).subscribe(([e,t,a])=>{e.appendChild(function(e,t){const[,a]=e.match(/([^\/]+)\/?$/);return xe("div",{class:"md-version"},xe("span",{class:"md-version__current"},(t.find(({version:e})=>e===a)||t[0]).version),xe("ul",{class:"md-version__list"},t.map(t=>xe("li",{class:"md-version__item"},xe("a",{class:"md-version__link",href:`${e}/../${t.version}/`},t.title)))))}(t,a))})}const fe={document$:t,location$:a,viewport$:z,header$:D,main$:J,navigation$:K,search$:re,tabs$:ce,toc$:Z,clipboard$:W,keyboard$:U,dialog$:I};return Object(l.a)(...Object.values(fe)).subscribe(),fe}document.documentElement.classList.remove("no-js"),document.documentElement.classList.add("js"),navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&document.documentElement.classList.add("ios")}}));