function offset(t){var e=t.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,t=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+t,left:e.left+n}}function getIndex(t,e){for(var n=0;nt),document.documentElement.scrollTop>t||document.body.scrollTop>t?e.classList.add("fixed-head"):e.classList.remove("fixed-head")))}function showSpoiler(t){t.preventDefault();var e=this.parentNode.parentNode.querySelectorAll(".inner")[0],t=this.parentNode.parentNode.parentNode.querySelectorAll(".spoiler")[0];"none"==e.style.display?(e.style.display="",t.classList.add("open")):(e.style.display="none",t.classList.remove("open"))}function addEventListenerByClass(t,e,n){for(var i=document.querySelectorAll(t),o=0,r=i.length;o",Left:"<",Right:">"},rtl:{ArrowLeft:">",ArrowRight:"<",Left:">",Right:"<"},ttb:{ArrowUp:"<",ArrowDown:">",Up:"<",Down:">"}},ht="move.sync",gt="mouseup touchend",mt=[" ","Enter","Spacebar"],vt={Options:function(t){var e=C(t.root,"data-splide");if(e)try{t.options=JSON.parse(e)}catch(t){H(t.message)}return{mount:function(){t.State.is(F)&&(t.index=t.options.start)}}},Breakpoints:function(i){var o,r,s=i.options.breakpoints,e=et(t,50),a=[];function t(){var t,e,n=(e=a.filter(function(t){return t.mql.matches})[0])?e.point:-1;n!==r&&(r=n,t=i.State,(n=(e=s[n]||o).destroy)?(i.options=o,i.destroy("completely"===n)):(t.is(Y)&&i.mount(),i.options=e))}return{required:s&&matchMedia,mount:function(){a=Object.keys(s).sort(function(t,e){return t-e}).map(function(t){return{point:t,mql:matchMedia("(max-width:"+t+"px)")}}),this.destroy(!0),addEventListener("resize",e),o=i.options,t()},destroy:function(t){t&&removeEventListener("resize",e)}}},Controller:function(r,n){var s,i,a={mount:function(){s=r.options,i=r.is(B),r.on("move",function(t){r.index=t}).on("updated refresh",function(t){s=t||s,r.index=w(r.index,0,a.edgeIndex)})},go:function(t,e){t=this.trim(this.parse(t));n.Track.go(t,this.rewind(t),e)},parse:function(t){var e=r.index,n=String(t).match(/([+\-<>]+)(\d+)?/),i=n?n[1]:"",o=n?parseInt(n[2]):0;switch(i){case"+":e+=o||1;break;case"-":e-=o||1;break;case">":case"<":e=function(t,e){if(-1e.flickVelocityThreshold&&it(t.offset[h])d.perPage&&(e=function(){c.go(">")},n=d.interval,i=function(t){c.emit(f+":playing",t),h.bar&&k(h.bar,{width:100*t+"%"})},a=window.requestAnimationFrame,u=!0,p={pause:function(){u=!0,o=0},play:function(t){o=0,u&&(u=!1,t&&(s=0),a(l))}},t=c.options,d=c.sibling,d=[c.root,d?d.root:null],t.pauseOnHover&&(m(d,"mouseleave",1,!0),m(d,"mouseenter",1,!1)),t.pauseOnFocus&&(m(d,"focusout",2,!0),m(d,"focusin",2,!1)),h.play&&c.on("click",function(){g.play(2),g.play(3)},h.play),h.pause&&m([h.pause],"click",3,!1),c.on("move refresh",function(){g.play()}).on("destroy",function(){g.pause()}),this.play())},play:function(e){void 0===e&&(e=0),(n=n.filter(function(t){return t!==e})).length||(c.emit(f+":play"),p.play(c.options.resetProgress))},pause:function(t){void 0===t&&(t=0),p.pause(),-1===n.indexOf(t)&&n.push(t),1===n.length&&c.emit(f+":pause")}};function m(t,e,n,i){t.forEach(function(t){c.on(e,function(){g[i?"play":"pause"](n)},t)})}return g},Cover:function(t,n){function e(e){n.Elements.each(function(t){t=m(t.slide,"IMG")||m(t.container,"IMG");t&&t.src&&i(t,e)})}function i(t,e){k(t.parentElement,{background:e?"":'center/cover no-repeat url("'+t.src+'")'}),k(t,{display:e?"":"none"})}return{required:t.options.cover,mount:function(){t.on("lazyload:loaded",function(t){i(t,!1)}),t.on("mounted updated refresh",function(){return e(!1)})},destroy:function(){e(!0)}}},Arrows:function(i,o,r){var s,a,t,n=i.classes,u=i.root,d=o.Elements;function e(){var t=o.Controller,e=t.prevIndex,n=t.nextIndex,t=i.length>i.options.perPage||i.is(B);s.disabled=e<0||!t,a.disabled=n<0||!t,i.emit(r+":updated",s,a,e,n)}function l(t){return c('