"use strict";function_typeof(a){"@babel/helpers - typeof";return_typeof="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(a){returntypeofa}:function(a){returna&&"function"==typeofSymbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeofa},_typeof(a)}function_objectDestructuringEmpty(a){if(null==a)thrownewTypeError("Cannot destructure undefined")}function_createForOfIteratorHelper(a,b){varc="undefined"!=typeofSymbol&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=_unsupportedIterableToArray(a))||b&&a&&"number"==typeofa.length){c&&(a=c);vard=0,e=function(){};return{s:e,n:functionn(){returnd>=a.length?{done:!0}:{done:!1,value:a[d++]}},e:functione(a){throwa},f:e}}thrownewTypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}varf,g=!0,h=!1;return{s:functions(){c=c.call(a)},n:functionn(){vara=c.next();returng=a.done,a},e:functione(a){h=!0,f=a},f:functionf(){try{g||null==c.return||c.return()}finally{if(h)throwf}}}}function_toConsumableArray(a){return_arrayWithoutHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableSpread()}function_nonIterableSpread(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function_unsupportedIterableToArray(a,b){if(a){if("string"==typeofa)return_arrayLikeToArray(a,b);varc=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(a):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_arrayLikeToArray(a,b):void0}}function_iterableToArray(a){if("undefined"!=typeofSymbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])returnArray.from(a)}function_arrayWithoutHoles(a){if(Array.isArray(a))return_arrayLikeToArray(a)}function_arrayLikeToArray(a,b){(null==b||b>a.length)&&(b=a.length);for(varc=0,d=Array(b);c<b;c++)d[c]=a[c];returnd}function_classCallCheck(a,b){if(!(ainstanceofb))thrownewTypeError("Cannot call a class as a function")}function_defineProperties(a,b){for(varc,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"inc&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function_createClass(a,b,c){returnb&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}varUtil=/*#__PURE__*/function(){functiona(){_classCallCheck(this,a)}return_createClass(a,[{key:"forEach",value:functionforEach(a,b){a=a||[];for(varc=0;c<a.length;c++)b(a[c])}},{key:"getScrollTop",value:functiongetScrollTop(){returndocument.documentElement&&document.documentElement.scrollTop||document.body.scrollTop}},{key:"isMobile",value:functionisMobile(){returnwindow.matchMedia("only screen and (max-width: 680px)").matches}},{key:"isTocStatic",value:functionisTocStatic(){returnwindow.matchMedia("only screen and (max-width: 960px)").matches}},{key:"animateCSS",value:functionanimateCSS(a,b,c,d){vare;Array.isArray(b)||(b=[b]),(e=a.classList).add.apply(e,["animated"].concat(_toConsumableArray(b)));varf=function(){varc;(c=a.classList).remove.apply(c,["animated"].concat(_toConsumableArray(b))),a.removeEventListener("animationend",f),"function"==typeofd&&d()};c||a.addEventListener("animationend",f,!1)}}]),a}(),Theme=/*#__PURE__*/function(){functiona(){_classCallCheck(this,a),this.config=window.config,this.data=this.config.data,this.isDark="dark"===document.body.getAttribute("theme"),this.util=newUtil,this.newScrollTop=this.util.getScrollTop(),this.oldScrollTop=this.newScrollTop,this.scrollEventSet=newSet,this.resizeEventSet=newSet,this.switchThemeEventSet=newSet,this.clickMaskEventSet=newSet,window.objectFitImages&&objectFitImages()}return_createClass(a,[{key:"initSVGIcon",value:functioninitSVGIcon(){this.util.forEach(document.querySelectorAll("[data-svg-src]"),function(a){fetch(a.getAttribute("data-svg-src")).then(function(a){returna.text()}).then(function(b){varc=document.cr