rapids/latest/assets/javascripts/bundle.d371fdb2.min.js

1 line
32 KiB
JavaScript

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