1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
![]() |
!function(t,e){for(var n in e)t[n]=e[n]}(window,function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}({6:function(t,e,n){"use strict";function i(t){return u(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||r()}function o(t,e){return u(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,o,r=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(r.push(i.value),!e||r.length!==e);s=!0);}catch(t){a=!0,o=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return r}(t,e)||s(t,e)||r()}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function u(t){if(Array.isArray(t))return t}n.r(e),n.d(e,"Helpers",(function(){return f}));var l=["transitionend","webkitTransitionEnd","oTransitionEnd"],c=["transition","MozTransition","webkitTransition","WebkitTransition","OTransition"],d="\n.layout-menu-fixed .layout-navbar-full .layout-menu,\n.layout-page {\n padding-top: {navbarHeight}px !important;\n}\n.content-wrapper {\n padding-bottom: {footerHeight}px !important;\n}";function h(t){throw new Error("Parameter required".concat(t?": `".concat(t,"`"):""))}var f={ROOT_EL:"undefined"!=typeof window?document.documentElement:null,LAYOUT_BREAKPOINT:1200,RESIZE_DELAY:200,menuPsScroll:null,mainMenu:null,_curStyle:null,_styleEl:null,_resizeTimeout:null,_resizeCallback:null,_transitionCallback:null,_transitionCallbackTimeout:null,_listeners:[],_initialized:!1,_autoUpdate:!1,_lastWindowHeight:0,_scrollToActive:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=this.getLayoutMenu();if(n){var i=n.querySelector("li.menu-item.active:not(.open)");if(i){var o=function(t,e,n,i){return(t/=i/2)<1?n/2*t*t+e:-n/2*((t-=1)*(t-2)-1)+e},r=this.getLayoutMenu().querySelector(".menu-inner");if("string"==typeof i&&(i=document.querySelector(i)),"number"!=typeof i&&(i=i.getBoundingClientRect().top+r.scrollTop),i<parseInt(2*r.clientHeight/3,10))return;var s=r.scrollTop,a=i-s-parseInt(r.clientHeight/2,10),u=+new Date;if(!0===t){var l=function t(){var n=+new Date-u,i=o(n,s,a,e);r.scrollTop=i,n<e?requestAnimationFrame(t):r.scrollTop=a};l()}else r.scrollTop=a}}},_addClass:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ROOT_EL;void 0!==e.length?e.forEach((function(e){t.split(" ").forEach((function(t){return e.classList.add(t)}))})):t.split(" ").forEach((function(t){return e.classList.add(t)}))},_removeClass:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ROOT_EL;void 0!==e.length?e.forEach((function(e){t.split(" ").fo
|