1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/v4.0.0/assets/javascripts/bundle.0421a6ad.min.js

1 line
43 KiB
JavaScript

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