mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
2 lines
19 KiB
JavaScript
2 lines
19 KiB
JavaScript
|
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){function t(t){for(var a,o,i=t[0],s=t[1],p=t[2],b=0,l=[];b<i.length;b++)o=i[b],Object.prototype.hasOwnProperty.call(c,o)&&c[o]&&l.push(c[o][0]),c[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,p||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],a=!0,i=1;i<n.length;i++){var s=n[i];0!==c[s]&&(a=!1)}a&&(r.splice(t--,1),e=o(o.s=n[0]))}return e}var a={},c={0:0},r=[];function o(t){if(a[t])return a[t].exports;var n=a[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=a,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 a in e)o.d(n,a,function(t){return e[t]}.bind(null,a));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 p=0;p<i.length;p++)t(i[p]);var u=s;return r.push([48,1]),n()}({48:function(e,t,n){"use strict";n.r(t);n(44);var a=n(22),c=n(50),r=n(54),o=n(36),i=(n(38),n(49)),s=n(39);function p(e,t=document){return t.querySelector(e)||void 0}function u(e,t=document){const n=p(e,t);if(void 0===n)throw new ReferenceError(`Missing element: expected "${e}" to be present`);return n}function b(e,t=document){return Array.from(t.querySelectorAll(e))}function l(e){return document.createElement(e)}function f(e,t){e.replaceWith(t)}var d=n(32),h=n(51);function j(e){return Object(c.a)(Object(i.a)(e,"focus"),Object(i.a)(e,"blur")).pipe(Object(d.a)(({type:e})=>"focus"===e),Object(h.a)(e===(document.activeElement instanceof HTMLElement?document.activeElement:void 0)))}var O=n(52),m=n(53),g=n(55),v=n(56),w=n(57),$=n(58);const x=new a.a,y=Object(O.a)(()=>Object(m.a)(new ResizeObserver(e=>{for(const t of e)x.next(t)}))).pipe(Object(o.a)(e=>r.a.pipe(Object(h.a)(e)).pipe(Object(g.a)(()=>e.disconnect()))),Object(v.a)(1));function _(e){return{width:e.offsetWidth,height:e.offsetHeight}}function E(e){return y.pipe(Object(w.a)(t=>t.observe(e)),Object(o.a)(t=>x.pipe(Object($.a)(({target:t})=>t===e),Object(g.a)(()=>t.unobserve(e)),Object(d.a)(({contentRect:e})=>({width:e.width,height:e.height})))),Object(h.a)(_(e)))}var A=n(40);n(59);function S(){return new URL(location.href)}function k(){return location.hash.substring(1)}function T(e){const t=matchMedia(e);return Object(i.a)(t,"change").pipe(Object(d.a)(e=>e.matches),Object(h.a)(t.matches))}const R={drawer:u("[data-md-toggle=drawer]"),search:u("[data-md-toggle=search]")};var M=n(43),C=n(60);function L(){return{x:Math.max(0,pageXOffset),y:Math.max(0,pageYOffset)}}function P(){return{width:innerWidth,height:innerHeight}}function U(e,{viewport$:t,header$:n}){const a=t.pipe(Object(C.a)("size")),c=Object(M.a)([a,n]).pipe(Object(d.a)(()=>({x:e.offsetLeft,y:e.offsetTop})));return Object(M.a)([n,t,c]).pipe(Object(d.a)(([{height:e},{offset:t,size:n},{x:a,y:c}])=>({offset:{x:t.x-a,y:t.y-c+e},size:n})))}var z=n(61),I=n(62);var N=n(25),Y=n.n(N),H=n(63);function q(e,t){e.setAttribute("data-md-state",t)}function F(e){e.removeAttribute("data-md-state")}function J(e,t){e.classList.toggle("md-nav__link--active",t)}function W(e){e.classList.remove("md-nav__link--active")}let Q=JSON.parse(u("#__config").textContent);function B(){return Q}function D(e,t){if(void 0===Q.translations[e])throw new ReferenceError("Invalid translation: "+e);return void 0!==t?Q.translations[e].replace("#",t.toString()):Q.translations[e]}function V(e,t){e.appendChild(t)}function X(e){e.rem
|
||
|
//# sourceMappingURL=bundle.5c26acfa.min.js.map
|